chat/assets/index-71ZZmCGz.js
2025-06-19 22:14:16 +02:00

125 lines
3.5 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ReactPrism-BzyPOlMS.js","assets/ReactPrism-GaPGjdOJ.css"])))=>i.map(i=>d[i]);
var pGe=Object.defineProperty;var Ioe=Qn=>{throw TypeError(Qn)};var fGe=(Qn,Xn,Zr)=>Xn in Qn?pGe(Qn,Xn,{enumerable:!0,configurable:!0,writable:!0,value:Zr}):Qn[Xn]=Zr;var Roe=(Qn,Xn,Zr)=>fGe(Qn,typeof Xn!="symbol"?Xn+"":Xn,Zr),kI=(Qn,Xn,Zr)=>Xn.has(Qn)||Ioe("Cannot "+Zr);var be=(Qn,Xn,Zr)=>(kI(Qn,Xn,"read from private field"),Zr?Zr.call(Qn):Xn.get(Qn)),Ht=(Qn,Xn,Zr)=>Xn.has(Qn)?Ioe("Cannot add the same private member more than once"):Xn instanceof WeakSet?Xn.add(Qn):Xn.set(Qn,Zr),yt=(Qn,Xn,Zr,hl)=>(kI(Qn,Xn,"write to private field"),hl?hl.call(Qn,Zr):Xn.set(Qn,Zr),Zr),Sn=(Qn,Xn,Zr)=>(kI(Qn,Xn,"access private method"),Zr);var tx=(Qn,Xn,Zr,hl)=>({set _(o2){yt(Qn,Xn,o2,Zr)},get _(){return be(Qn,Xn,hl)}});let $D,Ooe,Moe,Jn,SI,Ce,ul,Poe,zi,nx,Un,an,Loe,Se,eu,rx,ox,Noe,zoe,Cc,Cr,Uoe,jI,Vn,E1,BI,R0,I,Z,AI,Voe,Qe,y1,lt,WD,Rr,ix,ax,a,TI,Y,x1,sx,Ec,KD,ll,f,yc,or,tn,Do,II,RI,GD,qoe,_Ge=(async()=>{var k0,D1,AD,Eoe,TD,g1,ID,yoe,S0,xoe,RD,OD,Ds,p1,gs,Go,J_,j0,Li,ux,xc,woe,ol,koe,il,X_,ja,MD,al,w1,Soe,ps,Q_,B0,joe,Lo,f1,_1,PD,LD,v1,ND,zD,Boe,ua,Tr,e2,Ni,A0,UD,sl,t2,VD,qD,T0,I0,b1,HD,rr,r2,OI,MI,PI,LI,NI,zI,UI,Hoe,Aoe;function Qn(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function e(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(r){if(r.ep)return;r.ep=!0;const o=e(r);fetch(r.href,o)}})(),Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rr=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t};function Xn(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var Zr={exports:{}},hl={},o2={exports:{}},Tn={},YD=Symbol.for("react.element"),Yoe=Symbol.for("react.portal"),Zoe=Symbol.for("react.fragment"),Joe=Symbol.for("react.strict_mode"),Xoe=Symbol.for("react.profiler"),Qoe=Symbol.for("react.provider"),eie=Symbol.for("react.context"),tie=Symbol.for("react.forward_ref"),nie=Symbol.for("react.suspense"),rie=Symbol.for("react.memo"),oie=Symbol.for("react.lazy"),HI=Symbol.iterator;function iie(t){return t===null||typeof t!="object"?null:(t=HI&&t[HI]||t["@@iterator"],typeof t=="function"?t:null)}var $I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},WI=Object.assign,KI={};function O0(t,e,n){this.props=t,this.context=e,this.refs=KI,this.updater=n||$I}O0.prototype.isReactComponent={},O0.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},O0.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function GI(){}GI.prototype=O0.prototype;function cx(t,e,n){this.props=t,this.context=e,this.refs=KI,this.updater=n||$I}var dx=cx.prototype=new GI;dx.constructor=cx,WI(dx,O0.prototype),dx.isPureReactComponent=!0;var YI=Array.isArray,ZI=Object.prototype.hasOwnProperty,hx={current:null},JI={key:!0,ref:!0,__self:!0,__source:!0};function XI(t,e,n){var r,o={},i=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(i=""+e.key),e)ZI.call(e,r)&&!JI.hasOwnProperty(r)&&(o[r]=e[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(t&&t.defaultProps)for(r in u=t.defaultProps,u)o[r]===void 0&&(o[r]=u[r]);return{$$typeof:YD,type:t,key:i,ref:s,props:o,_owner:hx.current}}function aie(t,e){return{$$typeof:YD,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Fx(t){return typeof t=="object"&&t!==null&&t.$$typeof===YD}function sie(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var QI=/\/+/g;function mx(t,e){return typeof t=="object"&&t!==null&&t.key!=null?sie(""+t.key):e.toString(36)}function i2(t,e,n,r,o){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case YD:case Yoe:s=!0}}if(s)return s=t,o=o(s),t=r===""?"."+mx(s,0):r,YI(o)?(n="",t!=null&&(n=t.replace(QI,"$&/")+"/"),i2(o,e,n,"",function(c){return c})):o!=null&&(Fx(o)&&(o=aie(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(QI,"$&/")+"/")+t)),e.push(o)),1;if(s=0,r=r===""?".":r+":",YI(t))for(var u=0;u<t.length;u++){i=t[u];var l=r+mx(i,u);s+=i2(i,e,n,l,o)}else if(l=iie(t),typeof l=="function")for(t=l.call(t),u=0;!(i=t.next()).done;)i=i.value,l=r+mx(i,u++),s+=i2(i,e,n,l,o);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function a2(t,e,n){if(t==null)return t;var r=[],o=0;return i2(t,r,"","",function(i){return e.call(n,i,o++)}),r}function uie(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var yi={current:null},s2={transition:null},lie={ReactCurrentDispatcher:yi,ReactCurrentBatchConfig:s2,ReactCurrentOwner:hx};Tn.Children={map:a2,forEach:function(t,e,n){a2(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return a2(t,function(){e++}),e},toArray:function(t){return a2(t,function(e){return e})||[]},only:function(t){if(!Fx(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Tn.Component=O0,Tn.Fragment=Zoe,Tn.Profiler=Xoe,Tn.PureComponent=cx,Tn.StrictMode=Joe,Tn.Suspense=nie,Tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lie,Tn.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=WI({},t.props),o=t.key,i=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,s=hx.current),e.key!==void 0&&(o=""+e.key),t.type&&t.type.defaultProps)var u=t.type.defaultProps;for(l in e)ZI.call(e,l)&&!JI.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&u!==void 0?u[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];r.children=u}return{$$typeof:YD,type:t.type,key:o,ref:i,props:r,_owner:s}},Tn.createContext=function(t){return t={$$typeof:eie,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Qoe,_context:t},t.Consumer=t},Tn.createElement=XI,Tn.createFactory=function(t){var e=XI.bind(null,t);return e.type=t,e},Tn.createRef=function(){return{current:null}},Tn.forwardRef=function(t){return{$$typeof:tie,render:t}},Tn.isValidElement=Fx,Tn.lazy=function(t){return{$$typeof:oie,_payload:{_status:-1,_result:t},_init:uie}},Tn.memo=function(t,e){return{$$typeof:rie,type:t,compare:e===void 0?null:e}},Tn.startTransition=function(t){var e=s2.transition;s2.transition={};try{t()}finally{s2.transition=e}},Tn.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Tn.useCallback=function(t,e){return yi.current.useCallback(t,e)},Tn.useContext=function(t){return yi.current.useContext(t)},Tn.useDebugValue=function(){},Tn.useDeferredValue=function(t){return yi.current.useDeferredValue(t)},Tn.useEffect=function(t,e){return yi.current.useEffect(t,e)},Tn.useId=function(){return yi.current.useId()},Tn.useImperativeHandle=function(t,e,n){return yi.current.useImperativeHandle(t,e,n)},Tn.useInsertionEffect=function(t,e){return yi.current.useInsertionEffect(t,e)},Tn.useLayoutEffect=function(t,e){return yi.current.useLayoutEffect(t,e)},Tn.useMemo=function(t,e){return yi.current.useMemo(t,e)},Tn.useReducer=function(t,e,n){return yi.current.useReducer(t,e,n)},Tn.useRef=function(t){return yi.current.useRef(t)},Tn.useState=function(t){return yi.current.useState(t)},Tn.useSyncExternalStore=function(t,e,n){return yi.current.useSyncExternalStore(t,e,n)},Tn.useTransition=function(){return yi.current.useTransition()},Tn.version="18.2.0",o2.exports=Tn,f=o2.exports;const ft=Rr(f),cie=Qn({__proto__:null,default:ft},[f]);var die=f,hie=Symbol.for("react.element"),Fie=Symbol.for("react.fragment"),mie=Object.prototype.hasOwnProperty,Die=die.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gie={key:!0,ref:!0,__self:!0,__source:!0};function eR(t,e,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)mie.call(e,r)&&!gie.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)o[r]===void 0&&(o[r]=e[r]);return{$$typeof:hie,type:t,key:i,ref:s,props:o,_owner:Die.current}}hl.Fragment=Fie,hl.jsx=eR,hl.jsxs=eR,Zr.exports=hl;let Dx,Ui,gx,px;a=Zr.exports,Dx={exports:{}},Ui={},gx={exports:{}},px={},function(t){function e(U,te){var ae=U.length;U.push(te);e:for(;0<ae;){var Fe=ae-1>>>1,re=U[Fe];if(0<o(re,te))U[Fe]=te,U[ae]=re,ae=Fe;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var te=U[0],ae=U.pop();if(ae!==te){U[0]=ae;e:for(var Fe=0,re=U.length,ce=re>>>1;Fe<ce;){var K=2*(Fe+1)-1,H=U[K],q=K+1,V=U[q];if(0>o(H,ae))q<re&&0>o(V,H)?(U[Fe]=V,U[q]=ae,Fe=q):(U[Fe]=H,U[K]=ae,Fe=K);else if(q<re&&0>o(V,ae))U[Fe]=V,U[q]=ae,Fe=q;else break e}}return te}function o(U,te){var ae=U.sortIndex-te.sortIndex;return ae!==0?ae:U.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],d=1,F=null,h=3,m=!1,D=!1,g=!1,p=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(U){for(var te=n(c);te!==null;){if(te.callback===null)r(c);else if(te.startTime<=U)r(c),te.sortIndex=te.expirationTime,e(l,te);else break;te=n(c)}}function b(U){if(g=!1,E(U),!D)if(n(l)!==null)D=!0,P(k);else{var te=n(c);te!==null&&L(b,te.startTime-U)}}function k(U,te){D=!1,g&&(g=!1,_(w),w=-1),m=!0;var ae=h;try{for(E(te),F=n(l);F!==null&&(!(F.expirationTime>te)||U&&!j());){var Fe=F.callback;if(typeof Fe=="function"){F.callback=null,h=F.priorityLevel;var re=Fe(F.expirationTime<=te);te=t.unstable_now(),typeof re=="function"?F.callback=re:F===n(l)&&r(l),E(te)}else r(l);F=n(l)}if(F!==null)var ce=!0;else{var K=n(c);K!==null&&L(b,K.startTime-te),ce=!1}return ce}finally{F=null,h=ae,m=!1}}var C=!1,S=null,w=-1,A=5,O=-1;function j(){return!(t.unstable_now()-O<A)}function R(){if(S!==null){var U=t.unstable_now();O=U;var te=!0;try{te=S(!0,U)}finally{te?M():(C=!1,S=null)}}else C=!1}var M;if(typeof v=="function")M=function(){v(R)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,T=z.port2;z.port1.onmessage=R,M=function(){T.postMessage(null)}}else M=function(){p(R,0)};function P(U){S=U,C||(C=!0,M())}function L(U,te){w=p(function(){U(t.unstable_now())},te)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(U){U.callback=null},t.unstable_continueExecution=function(){D||m||(D=!0,P(k))},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(U){switch(h){case 1:case 2:case 3:var te=3;break;default:te=h}var ae=h;h=te;try{return U()}finally{h=ae}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(U,te){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ae=h;h=U;try{return te()}finally{h=ae}},t.unstable_scheduleCallback=function(U,te,ae){var Fe=t.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?Fe+ae:Fe):ae=Fe,U){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=ae+re,U={id:d++,callback:te,priorityLevel:U,startTime:ae,expirationTime:re,sortIndex:-1},ae>Fe?(U.sortIndex=ae,e(c,U),n(l)===null&&U===n(c)&&(g?(_(w),w=-1):g=!0,L(b,ae-Fe))):(U.sortIndex=re,e(l,U),D||m||(D=!0,P(k))),U},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(U){var te=h;return function(){var ae=h;h=te;try{return U.apply(this,arguments)}finally{h=ae}}}}(px),gx.exports=px;var pie=gx.exports,tR=f,la=pie;function Je(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var nR=new Set,ZD={};function k1(t,e){M0(t,e),M0(t+"Capture",e)}function M0(t,e){for(ZD[t]=e,t=0;t<e.length;t++)nR.add(e[t])}var Fl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fx=Object.prototype.hasOwnProperty,fie=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},oR={};function _ie(t){return fx.call(oR,t)?!0:fx.call(rR,t)?!1:fie.test(t)?oR[t]=!0:(rR[t]=!0,!1)}function vie(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function bie(t,e,n,r){if(e===null||typeof e>"u"||vie(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function xi(t,e,n,r,o,i,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=s}var Zo={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Zo[t]=new xi(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Zo[e]=new xi(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Zo[t]=new xi(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Zo[t]=new xi(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Zo[t]=new xi(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Zo[t]=new xi(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Zo[t]=new xi(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Zo[t]=new xi(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Zo[t]=new xi(t,5,!1,t.toLowerCase(),null,!1,!1)});var _x=/[\-:]([a-z])/g;function vx(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(_x,vx);Zo[e]=new xi(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(_x,vx);Zo[e]=new xi(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(_x,vx);Zo[e]=new xi(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Zo[t]=new xi(t,1,!1,t.toLowerCase(),null,!1,!1)}),Zo.xlinkHref=new xi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Zo[t]=new xi(t,1,!1,t.toLowerCase(),null,!0,!0)});function bx(t,e,n,r){var o=Zo.hasOwnProperty(e)?Zo[e]:null;(o!==null?o.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(bie(e,n,o,r)&&(n=null),r||o===null?_ie(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):o.mustUseProperty?t[o.propertyName]=n===null?o.type===3?!1:"":n:(e=o.attributeName,r=o.attributeNamespace,n===null?t.removeAttribute(e):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var ml=tR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,u2=Symbol.for("react.element"),P0=Symbol.for("react.portal"),L0=Symbol.for("react.fragment"),Cx=Symbol.for("react.strict_mode"),Ex=Symbol.for("react.profiler"),iR=Symbol.for("react.provider"),aR=Symbol.for("react.context"),yx=Symbol.for("react.forward_ref"),xx=Symbol.for("react.suspense"),wx=Symbol.for("react.suspense_list"),kx=Symbol.for("react.memo"),wc=Symbol.for("react.lazy"),sR=Symbol.for("react.offscreen"),uR=Symbol.iterator;function JD(t){return t===null||typeof t!="object"?null:(t=uR&&t[uR]||t["@@iterator"],typeof t=="function"?t:null)}var zr=Object.assign,Sx;function XD(t){if(Sx===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Sx=e&&e[1]||""}return`
`+Sx+t}var jx=!1;function Bx(t,e){if(!t||jx)return"";jx=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var r=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){r=c}t.call(e.prototype)}else{try{throw Error()}catch(c){r=c}t()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
`),i=r.stack.split(`
`),s=o.length-1,u=i.length-1;1<=s&&0<=u&&o[s]!==i[u];)u--;for(;1<=s&&0<=u;s--,u--)if(o[s]!==i[u]){if(s!==1||u!==1)do if(s--,u--,0>u||o[s]!==i[u]){var l=`
`+o[s].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=s&&0<=u);break}}}finally{jx=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?XD(t):""}function Cie(t){switch(t.tag){case 5:return XD(t.type);case 16:return XD("Lazy");case 13:return XD("Suspense");case 19:return XD("SuspenseList");case 0:case 2:case 15:return t=Bx(t.type,!1),t;case 11:return t=Bx(t.type.render,!1),t;case 1:return t=Bx(t.type,!0),t;default:return""}}function Ax(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L0:return"Fragment";case P0:return"Portal";case Ex:return"Profiler";case Cx:return"StrictMode";case xx:return"Suspense";case wx:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case aR:return(t.displayName||"Context")+".Consumer";case iR:return(t._context.displayName||"Context")+".Provider";case yx:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case kx:return e=t.displayName||null,e!==null?e:Ax(t.type)||"Memo";case wc:e=t._payload,t=t._init;try{return Ax(t(e))}catch{}}return null}function Eie(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ax(e);case 8:return e===Cx?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function kc(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function lR(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function yie(t){var e=lR(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function l2(t){t._valueTracker||(t._valueTracker=yie(t))}function cR(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=lR(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function c2(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Tx(t,e){var n=e.checked;return zr({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function dR(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=kc(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function hR(t,e){e=e.checked,e!=null&&bx(t,"checked",e,!1)}function Ix(t,e){hR(t,e);var n=kc(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Rx(t,e.type,n):e.hasOwnProperty("defaultValue")&&Rx(t,e.type,kc(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function FR(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Rx(t,e,n){(e!=="number"||c2(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var QD=Array.isArray;function N0(t,e,n,r){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&r&&(t[n].defaultSelected=!0)}else{for(n=""+kc(n),e=null,o=0;o<t.length;o++){if(t[o].value===n){t[o].selected=!0,r&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Ox(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(Je(91));return zr({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function mR(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(Je(92));if(QD(n)){if(1<n.length)throw Error(Je(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:kc(n)}}function DR(t,e){var n=kc(e.value),r=kc(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function gR(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function pR(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Mx(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?pR(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var d2,fR=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,o){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,o)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(d2=d2||document.createElement("div"),d2.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=d2.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function eg(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var tg={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},xie=["Webkit","ms","Moz","O"];Object.keys(tg).forEach(function(t){xie.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),tg[e]=tg[t]})});function _R(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||tg.hasOwnProperty(t)&&tg[t]?(""+e).trim():e+"px"}function vR(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=_R(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,o):t[n]=o}}var wie=zr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Px(t,e){if(e){if(wie[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Je(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Je(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Je(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Je(62))}}function Lx(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Nx=null;function zx(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ux=null,z0=null,U0=null;function bR(t){if(t=Eg(t)){if(typeof Ux!="function")throw Error(Je(280));var e=t.stateNode;e&&(e=R2(e),Ux(t.stateNode,t.type,e))}}function CR(t){z0?U0?U0.push(t):U0=[t]:z0=t}function ER(){if(z0){var t=z0,e=U0;if(U0=z0=null,bR(t),e)for(t=0;t<e.length;t++)bR(e[t])}}function yR(t,e){return t(e)}function xR(){}var Vx=!1;function wR(t,e,n){if(Vx)return t(e,n);Vx=!0;try{return yR(t,e,n)}finally{Vx=!1,(z0!==null||U0!==null)&&(xR(),ER())}}function ng(t,e){var n=t.stateNode;if(n===null)return null;var r=R2(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(Je(231,e,typeof n));return n}var qx=!1;if(Fl)try{var rg={};Object.defineProperty(rg,"passive",{get:function(){qx=!0}}),window.addEventListener("test",rg,rg),window.removeEventListener("test",rg,rg)}catch{qx=!1}function kie(t,e,n,r,o,i,s,u,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(d){this.onError(d)}}var og=!1,h2=null,F2=!1,Hx=null,Sie={onError:function(t){og=!0,h2=t}};function jie(t,e,n,r,o,i,s,u,l){og=!1,h2=null,kie.apply(Sie,arguments)}function Bie(t,e,n,r,o,i,s,u,l){if(jie.apply(this,arguments),og){if(og){var c=h2;og=!1,h2=null}else throw Error(Je(198));F2||(F2=!0,Hx=c)}}function S1(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function kR(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function SR(t){if(S1(t)!==t)throw Error(Je(188))}function Aie(t){var e=t.alternate;if(!e){if(e=S1(t),e===null)throw Error(Je(188));return e!==t?null:t}for(var n=t,r=e;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return SR(o),t;if(i===r)return SR(o),e;i=i.sibling}throw Error(Je(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s)throw Error(Je(189))}}if(n.alternate!==r)throw Error(Je(190))}if(n.tag!==3)throw Error(Je(188));return n.stateNode.current===n?t:e}function jR(t){return t=Aie(t),t!==null?BR(t):null}function BR(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=BR(t);if(e!==null)return e;t=t.sibling}return null}var AR=la.unstable_scheduleCallback,TR=la.unstable_cancelCallback,Tie=la.unstable_shouldYield,Iie=la.unstable_requestPaint,to=la.unstable_now,Rie=la.unstable_getCurrentPriorityLevel,$x=la.unstable_ImmediatePriority,IR=la.unstable_UserBlockingPriority,m2=la.unstable_NormalPriority,Oie=la.unstable_LowPriority,RR=la.unstable_IdlePriority,D2=null,tu=null;function Mie(t){if(tu&&typeof tu.onCommitFiberRoot=="function")try{tu.onCommitFiberRoot(D2,t,void 0,(t.current.flags&128)===128)}catch{}}var fs=Math.clz32?Math.clz32:Nie,Pie=Math.log,Lie=Math.LN2;function Nie(t){return t>>>=0,t===0?32:31-(Pie(t)/Lie|0)|0}var g2=64,p2=4194304;function ig(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function f2(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,o=t.suspendedLanes,i=t.pingedLanes,s=n&268435455;if(s!==0){var u=s&~o;u!==0?r=ig(u):(i&=s,i!==0&&(r=ig(i)))}else s=n&~o,s!==0?r=ig(s):i!==0&&(r=ig(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&o)&&(o=r&-r,i=e&-e,o>=i||o===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-fs(e),o=1<<n,r|=t[n],e&=~o;return r}function zie(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Uie(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,o=t.expirationTimes,i=t.pendingLanes;0<i;){var s=31-fs(i),u=1<<s,l=o[s];l===-1?(!(u&n)||u&r)&&(o[s]=zie(u,e)):l<=e&&(t.expiredLanes|=u),i&=~u}}function Wx(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function OR(){var t=g2;return g2<<=1,!(g2&4194240)&&(g2=64),t}function Kx(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ag(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-fs(e),t[e]=n}function Vie(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var o=31-fs(n),i=1<<o;e[o]=0,r[o]=-1,t[o]=-1,n&=~i}}function Gx(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-fs(n),o=1<<r;o&e|t[r]&e&&(t[r]|=e),n&=~o}}var ir=0;function MR(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var PR,Yx,LR,NR,zR,Zx=!1,_2=[],Sc=null,jc=null,Bc=null,sg=new Map,ug=new Map,Ac=[],qie="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function UR(t,e){switch(t){case"focusin":case"focusout":Sc=null;break;case"dragenter":case"dragleave":jc=null;break;case"mouseover":case"mouseout":Bc=null;break;case"pointerover":case"pointerout":sg.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ug.delete(e.pointerId)}}function lg(t,e,n,r,o,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},e!==null&&(e=Eg(e),e!==null&&Yx(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function Hie(t,e,n,r,o){switch(e){case"focusin":return Sc=lg(Sc,t,e,n,r,o),!0;case"dragenter":return jc=lg(jc,t,e,n,r,o),!0;case"mouseover":return Bc=lg(Bc,t,e,n,r,o),!0;case"pointerover":var i=o.pointerId;return sg.set(i,lg(sg.get(i)||null,t,e,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ug.set(i,lg(ug.get(i)||null,t,e,n,r,o)),!0}return!1}function VR(t){var e=j1(t.target);if(e!==null){var n=S1(e);if(n!==null){if(e=n.tag,e===13){if(e=kR(n),e!==null){t.blockedOn=e,zR(t.priority,function(){LR(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function v2(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Xx(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);Nx=r,n.target.dispatchEvent(r),Nx=null}else return e=Eg(n),e!==null&&Yx(e),t.blockedOn=n,!1;e.shift()}return!0}function qR(t,e,n){v2(t)&&n.delete(e)}function $ie(){Zx=!1,Sc!==null&&v2(Sc)&&(Sc=null),jc!==null&&v2(jc)&&(jc=null),Bc!==null&&v2(Bc)&&(Bc=null),sg.forEach(qR),ug.forEach(qR)}function cg(t,e){t.blockedOn===e&&(t.blockedOn=null,Zx||(Zx=!0,la.unstable_scheduleCallback(la.unstable_NormalPriority,$ie)))}function dg(t){function e(o){return cg(o,t)}if(0<_2.length){cg(_2[0],t);for(var n=1;n<_2.length;n++){var r=_2[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Sc!==null&&cg(Sc,t),jc!==null&&cg(jc,t),Bc!==null&&cg(Bc,t),sg.forEach(e),ug.forEach(e),n=0;n<Ac.length;n++)r=Ac[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Ac.length&&(n=Ac[0],n.blockedOn===null);)VR(n),n.blockedOn===null&&Ac.shift()}var V0=ml.ReactCurrentBatchConfig,b2=!0;function Wie(t,e,n,r){var o=ir,i=V0.transition;V0.transition=null;try{ir=1,Jx(t,e,n,r)}finally{ir=o,V0.transition=i}}function Kie(t,e,n,r){var o=ir,i=V0.transition;V0.transition=null;try{ir=4,Jx(t,e,n,r)}finally{ir=o,V0.transition=i}}function Jx(t,e,n,r){if(b2){var o=Xx(t,e,n,r);if(o===null)Dw(t,e,r,C2,n),UR(t,r);else if(Hie(o,t,e,n,r))r.stopPropagation();else if(UR(t,r),e&4&&-1<qie.indexOf(t)){for(;o!==null;){var i=Eg(o);if(i!==null&&PR(i),i=Xx(t,e,n,r),i===null&&Dw(t,e,r,C2,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Dw(t,e,r,null,n)}}var C2=null;function Xx(t,e,n,r){if(C2=null,t=zx(r),t=j1(t),t!==null)if(e=S1(t),e===null)t=null;else if(n=e.tag,n===13){if(t=kR(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return C2=t,null}function HR(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Rie()){case $x:return 1;case IR:return 4;case m2:case Oie:return 16;case RR:return 536870912;default:return 16}default:return 16}}var Tc=null,Qx=null,E2=null;function $R(){if(E2)return E2;var t,e=Qx,n=e.length,r,o="value"in Tc?Tc.value:Tc.textContent,i=o.length;for(t=0;t<n&&e[t]===o[t];t++);var s=n-t;for(r=1;r<=s&&e[n-r]===o[i-r];r++);return E2=o.slice(t,1<r?1-r:void 0)}function y2(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function x2(){return!0}function WR(){return!1}function ca(t){function e(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var u in t)t.hasOwnProperty(u)&&(n=t[u],this[u]=n?n(i):i[u]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?x2:WR,this.isPropagationStopped=WR,this}return zr(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=x2)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=x2)},persist:function(){},isPersistent:x2}),e}var q0={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ew=ca(q0),hg=zr({},q0,{view:0,detail:0}),Gie=ca(hg),tw,nw,Fg,w2=zr({},hg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ow,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fg&&(Fg&&t.type==="mousemove"?(tw=t.screenX-Fg.screenX,nw=t.screenY-Fg.screenY):nw=tw=0,Fg=t),tw)},movementY:function(t){return"movementY"in t?t.movementY:nw}}),KR=ca(w2),Yie=zr({},w2,{dataTransfer:0}),Zie=ca(Yie),Jie=zr({},hg,{relatedTarget:0}),rw=ca(Jie),Xie=zr({},q0,{animationName:0,elapsedTime:0,pseudoElement:0}),Qie=ca(Xie),eae=zr({},q0,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),tae=ca(eae),nae=zr({},q0,{data:0}),GR=ca(nae),rae={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oae={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},iae={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aae(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=iae[t])?!!e[t]:!1}function ow(){return aae}var sae=zr({},hg,{key:function(t){if(t.key){var e=rae[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=y2(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?oae[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ow,charCode:function(t){return t.type==="keypress"?y2(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?y2(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),uae=ca(sae),lae=zr({},w2,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),YR=ca(lae),cae=zr({},hg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ow}),dae=ca(cae),hae=zr({},q0,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fae=ca(hae),mae=zr({},w2,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Dae=ca(mae),gae=[9,13,27,32],iw=Fl&&"CompositionEvent"in window,mg=null;Fl&&"documentMode"in document&&(mg=document.documentMode);var pae=Fl&&"TextEvent"in window&&!mg,ZR=Fl&&(!iw||mg&&8<mg&&11>=mg),JR=" ",XR=!1;function QR(t,e){switch(t){case"keyup":return gae.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eO(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var H0=!1;function fae(t,e){switch(t){case"compositionend":return eO(e);case"keypress":return e.which!==32?null:(XR=!0,JR);case"textInput":return t=e.data,t===JR&&XR?null:t;default:return null}}function _ae(t,e){if(H0)return t==="compositionend"||!iw&&QR(t,e)?(t=$R(),E2=Qx=Tc=null,H0=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ZR&&e.locale!=="ko"?null:e.data;default:return null}}var vae={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tO(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!vae[t.type]:e==="textarea"}function nO(t,e,n,r){CR(r),e=A2(e,"onChange"),0<e.length&&(n=new ew("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Dg=null,gg=null;function bae(t){vO(t,0)}function k2(t){var e=Y0(t);if(cR(e))return t}function Cae(t,e){if(t==="change")return e}var rO=!1;if(Fl){var aw;if(Fl){var sw="oninput"in document;if(!sw){var oO=document.createElement("div");oO.setAttribute("oninput","return;"),sw=typeof oO.oninput=="function"}aw=sw}else aw=!1;rO=aw&&(!document.documentMode||9<document.documentMode)}function iO(){Dg&&(Dg.detachEvent("onpropertychange",aO),gg=Dg=null)}function aO(t){if(t.propertyName==="value"&&k2(gg)){var e=[];nO(e,gg,t,zx(t)),wR(bae,e)}}function Eae(t,e,n){t==="focusin"?(iO(),Dg=e,gg=n,Dg.attachEvent("onpropertychange",aO)):t==="focusout"&&iO()}function yae(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return k2(gg)}function xae(t,e){if(t==="click")return k2(e)}function wae(t,e){if(t==="input"||t==="change")return k2(e)}function kae(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _s=typeof Object.is=="function"?Object.is:kae;function pg(t,e){if(_s(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!fx.call(e,o)||!_s(t[o],e[o]))return!1}return!0}function sO(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function uO(t,e){var n=sO(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sO(n)}}function lO(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?lO(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function cO(){for(var t=window,e=c2();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=c2(t.document)}return e}function uw(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Sae(t){var e=cO(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&lO(n.ownerDocument.documentElement,n)){if(r!==null&&uw(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!t.extend&&i>r&&(o=r,r=i,i=o),o=uO(n,i);var s=uO(n,r);o&&s&&(t.rangeCount!==1||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var jae=Fl&&"documentMode"in document&&11>=document.documentMode,$0=null,lw=null,fg=null,cw=!1;function dO(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cw||$0==null||$0!==c2(r)||(r=$0,"selectionStart"in r&&uw(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),fg&&pg(fg,r)||(fg=r,r=A2(lw,"onSelect"),0<r.length&&(e=new ew("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=$0)))}function S2(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var W0={animationend:S2("Animation","AnimationEnd"),animationiteration:S2("Animation","AnimationIteration"),animationstart:S2("Animation","AnimationStart"),transitionend:S2("Transition","TransitionEnd")},dw={},hO={};Fl&&(hO=document.createElement("div").style,"AnimationEvent"in window||(delete W0.animationend.animation,delete W0.animationiteration.animation,delete W0.animationstart.animation),"TransitionEvent"in window||delete W0.transitionend.transition);function j2(t){if(dw[t])return dw[t];if(!W0[t])return t;var e=W0[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in hO)return dw[t]=e[n];return t}var FO=j2("animationend"),mO=j2("animationiteration"),DO=j2("animationstart"),gO=j2("transitionend"),pO=new Map,fO="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ic(t,e){pO.set(t,e),k1(e,[t])}for(var hw=0;hw<fO.length;hw++){var Fw=fO[hw],Bae=Fw.toLowerCase(),Aae=Fw[0].toUpperCase()+Fw.slice(1);Ic(Bae,"on"+Aae)}Ic(FO,"onAnimationEnd"),Ic(mO,"onAnimationIteration"),Ic(DO,"onAnimationStart"),Ic("dblclick","onDoubleClick"),Ic("focusin","onFocus"),Ic("focusout","onBlur"),Ic(gO,"onTransitionEnd"),M0("onMouseEnter",["mouseout","mouseover"]),M0("onMouseLeave",["mouseout","mouseover"]),M0("onPointerEnter",["pointerout","pointerover"]),M0("onPointerLeave",["pointerout","pointerover"]),k1("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),k1("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),k1("onBeforeInput",["compositionend","keypress","textInput","paste"]),k1("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),k1("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),k1("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _g="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tae=new Set("cancel close invalid load scroll toggle".split(" ").concat(_g));function _O(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,Bie(r,e,void 0,t),t.currentTarget=null}function vO(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],o=r.event;r=r.listeners;e:{var i=void 0;if(e)for(var s=r.length-1;0<=s;s--){var u=r[s],l=u.instance,c=u.currentTarget;if(u=u.listener,l!==i&&o.isPropagationStopped())break e;_O(o,u,c),i=l}else for(s=0;s<r.length;s++){if(u=r[s],l=u.instance,c=u.currentTarget,u=u.listener,l!==i&&o.isPropagationStopped())break e;_O(o,u,c),i=l}}}if(F2)throw t=Hx,F2=!1,Hx=null,t}function Sr(t,e){var n=e[bw];n===void 0&&(n=e[bw]=new Set);var r=t+"__bubble";n.has(r)||(bO(e,t,2,!1),n.add(r))}function mw(t,e,n){var r=0;e&&(r|=4),bO(n,t,r,e)}var B2="_reactListening"+Math.random().toString(36).slice(2);function vg(t){if(!t[B2]){t[B2]=!0,nR.forEach(function(n){n!=="selectionchange"&&(Tae.has(n)||mw(n,!1,t),mw(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[B2]||(e[B2]=!0,mw("selectionchange",!1,e))}}function bO(t,e,n,r){switch(HR(e)){case 1:var o=Wie;break;case 4:o=Kie;break;default:o=Jx}n=o.bind(null,e,n,t),o=void 0,!qx||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),r?o!==void 0?t.addEventListener(e,n,{capture:!0,passive:o}):t.addEventListener(e,n,!0):o!==void 0?t.addEventListener(e,n,{passive:o}):t.addEventListener(e,n,!1)}function Dw(t,e,n,r,o){var i=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var u=r.stateNode.containerInfo;if(u===o||u.nodeType===8&&u.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;u!==null;){if(s=j1(u),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}u=u.parentNode}}r=r.return}wR(function(){var c=i,d=zx(n),F=[];e:{var h=pO.get(t);if(h!==void 0){var m=ew,D=t;switch(t){case"keypress":if(y2(n)===0)break e;case"keydown":case"keyup":m=uae;break;case"focusin":D="focus",m=rw;break;case"focusout":D="blur",m=rw;break;case"beforeblur":case"afterblur":m=rw;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=KR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Zie;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=dae;break;case FO:case mO:case DO:m=Qie;break;case gO:m=Fae;break;case"scroll":m=Gie;break;case"wheel":m=Dae;break;case"copy":case"cut":case"paste":m=tae;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=YR}var g=(e&4)!==0,p=!g&&t==="scroll",_=g?h!==null?h+"Capture":null:h;g=[];for(var v=c,E;v!==null;){E=v;var b=E.stateNode;if(E.tag===5&&b!==null&&(E=b,_!==null&&(b=ng(v,_),b!=null&&g.push(bg(v,b,E)))),p)break;v=v.return}0<g.length&&(h=new m(h,D,null,n,d),F.push({event:h,listeners:g}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",h&&n!==Nx&&(D=n.relatedTarget||n.fromElement)&&(j1(D)||D[Dl]))break e;if((m||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,m?(D=n.relatedTarget||n.toElement,m=c,D=D?j1(D):null,D!==null&&(p=S1(D),D!==p||D.tag!==5&&D.tag!==6)&&(D=null)):(m=null,D=c),m!==D)){if(g=KR,b="onMouseLeave",_="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(g=YR,b="onPointerLeave",_="onPointerEnter",v="pointer"),p=m==null?h:Y0(m),E=D==null?h:Y0(D),h=new g(b,v+"leave",m,n,d),h.target=p,h.relatedTarget=E,b=null,j1(d)===c&&(g=new g(_,v+"enter",D,n,d),g.target=E,g.relatedTarget=p,b=g),p=b,m&&D)t:{for(g=m,_=D,v=0,E=g;E;E=K0(E))v++;for(E=0,b=_;b;b=K0(b))E++;for(;0<v-E;)g=K0(g),v--;for(;0<E-v;)_=K0(_),E--;for(;v--;){if(g===_||_!==null&&g===_.alternate)break t;g=K0(g),_=K0(_)}g=null}else g=null;m!==null&&CO(F,h,m,g,!1),D!==null&&p!==null&&CO(F,p,D,g,!0)}}e:{if(h=c?Y0(c):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var k=Cae;else if(tO(h))if(rO)k=wae;else{k=yae;var C=Eae}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(k=xae);if(k&&(k=k(t,c))){nO(F,k,n,d);break e}C&&C(t,h,c),t==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&Rx(h,"number",h.value)}switch(C=c?Y0(c):window,t){case"focusin":(tO(C)||C.contentEditable==="true")&&($0=C,lw=c,fg=null);break;case"focusout":fg=lw=$0=null;break;case"mousedown":cw=!0;break;case"contextmenu":case"mouseup":case"dragend":cw=!1,dO(F,n,d);break;case"selectionchange":if(jae)break;case"keydown":case"keyup":dO(F,n,d)}var S;if(iw)e:{switch(t){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else H0?QR(t,n)&&(w="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(ZR&&n.locale!=="ko"&&(H0||w!=="onCompositionStart"?w==="onCompositionEnd"&&H0&&(S=$R()):(Tc=d,Qx="value"in Tc?Tc.value:Tc.textContent,H0=!0)),C=A2(c,w),0<C.length&&(w=new GR(w,t,null,n,d),F.push({event:w,listeners:C}),S?w.data=S:(S=eO(n),S!==null&&(w.data=S)))),(S=pae?fae(t,n):_ae(t,n))&&(c=A2(c,"onBeforeInput"),0<c.length&&(d=new GR("onBeforeInput","beforeinput",null,n,d),F.push({event:d,listeners:c}),d.data=S))}vO(F,e)})}function bg(t,e,n){return{instance:t,listener:e,currentTarget:n}}function A2(t,e){for(var n=e+"Capture",r=[];t!==null;){var o=t,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=ng(t,n),i!=null&&r.unshift(bg(t,i,o)),i=ng(t,e),i!=null&&r.push(bg(t,i,o))),t=t.return}return r}function K0(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function CO(t,e,n,r,o){for(var i=e._reactName,s=[];n!==null&&n!==r;){var u=n,l=u.alternate,c=u.stateNode;if(l!==null&&l===r)break;u.tag===5&&c!==null&&(u=c,o?(l=ng(n,i),l!=null&&s.unshift(bg(n,l,u))):o||(l=ng(n,i),l!=null&&s.push(bg(n,l,u)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}var Iae=/\r\n?/g,Rae=/\u0000|\uFFFD/g;function EO(t){return(typeof t=="string"?t:""+t).replace(Iae,`
`).replace(Rae,"")}function T2(t,e,n){if(e=EO(e),EO(t)!==e&&n)throw Error(Je(425))}function I2(){}var gw=null,pw=null;function fw(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var _w=typeof setTimeout=="function"?setTimeout:void 0,Oae=typeof clearTimeout=="function"?clearTimeout:void 0,yO=typeof Promise=="function"?Promise:void 0,Mae=typeof queueMicrotask=="function"?queueMicrotask:typeof yO<"u"?function(t){return yO.resolve(null).then(t).catch(Pae)}:_w;function Pae(t){setTimeout(function(){throw t})}function vw(t,e){var n=e,r=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){t.removeChild(o),dg(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);dg(e)}function Rc(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function xO(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var G0=Math.random().toString(36).slice(2),nu="__reactFiber$"+G0,Cg="__reactProps$"+G0,Dl="__reactContainer$"+G0,bw="__reactEvents$"+G0,Lae="__reactListeners$"+G0,Nae="__reactHandles$"+G0;function j1(t){var e=t[nu];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Dl]||n[nu]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=xO(t);t!==null;){if(n=t[nu])return n;t=xO(t)}return e}t=n,n=t.parentNode}return null}function Eg(t){return t=t[nu]||t[Dl],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Y0(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(Je(33))}function R2(t){return t[Cg]||null}var Cw=[],Z0=-1;function Oc(t){return{current:t}}function jr(t){0>Z0||(t.current=Cw[Z0],Cw[Z0]=null,Z0--)}function Er(t,e){Z0++,Cw[Z0]=t.current,t.current=e}var Mc={},di=Oc(Mc),Vi=Oc(!1),B1=Mc;function J0(t,e){var n=t.type.contextTypes;if(!n)return Mc;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function qi(t){return t=t.childContextTypes,t!=null}function O2(){jr(Vi),jr(di)}function wO(t,e,n){if(di.current!==Mc)throw Error(Je(168));Er(di,e),Er(Vi,n)}function kO(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in e))throw Error(Je(108,Eie(t)||"Unknown",o));return zr({},n,r)}function M2(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Mc,B1=di.current,Er(di,t),Er(Vi,Vi.current),!0}function SO(t,e,n){var r=t.stateNode;if(!r)throw Error(Je(169));n?(t=kO(t,e,B1),r.__reactInternalMemoizedMergedChildContext=t,jr(Vi),jr(di),Er(di,t)):jr(Vi),Er(Vi,n)}var gl=null,P2=!1,Ew=!1;function jO(t){gl===null?gl=[t]:gl.push(t)}function zae(t){P2=!0,jO(t)}function Pc(){if(!Ew&&gl!==null){Ew=!0;var t=0,e=ir;try{var n=gl;for(ir=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}gl=null,P2=!1}catch(o){throw gl!==null&&(gl=gl.slice(t+1)),AR($x,Pc),o}finally{ir=e,Ew=!1}}return null}var X0=[],Q0=0,L2=null,N2=0,Ba=[],Aa=0,A1=null,pl=1,fl="";function T1(t,e){X0[Q0++]=N2,X0[Q0++]=L2,L2=t,N2=e}function BO(t,e,n){Ba[Aa++]=pl,Ba[Aa++]=fl,Ba[Aa++]=A1,A1=t;var r=pl;t=fl;var o=32-fs(r)-1;r&=~(1<<o),n+=1;var i=32-fs(e)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,pl=1<<32-fs(e)+o|n<<o|r,fl=i+t}else pl=1<<i|n<<o|r,fl=t}function yw(t){t.return!==null&&(T1(t,1),BO(t,1,0))}function xw(t){for(;t===L2;)L2=X0[--Q0],X0[Q0]=null,N2=X0[--Q0],X0[Q0]=null;for(;t===A1;)A1=Ba[--Aa],Ba[Aa]=null,fl=Ba[--Aa],Ba[Aa]=null,pl=Ba[--Aa],Ba[Aa]=null}var da=null,ha=null,Or=!1,vs=null;function AO(t,e){var n=Oa(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function TO(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,da=t,ha=Rc(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,da=t,ha=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=A1!==null?{id:pl,overflow:fl}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=Oa(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,da=t,ha=null,!0):!1;default:return!1}}function ww(t){return(t.mode&1)!==0&&(t.flags&128)===0}function kw(t){if(Or){var e=ha;if(e){var n=e;if(!TO(t,e)){if(ww(t))throw Error(Je(418));e=Rc(n.nextSibling);var r=da;e&&TO(t,e)?AO(r,n):(t.flags=t.flags&-4097|2,Or=!1,da=t)}}else{if(ww(t))throw Error(Je(418));t.flags=t.flags&-4097|2,Or=!1,da=t}}}function IO(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;da=t}function z2(t){if(t!==da)return!1;if(!Or)return IO(t),Or=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!fw(t.type,t.memoizedProps)),e&&(e=ha)){if(ww(t))throw RO(),Error(Je(418));for(;e;)AO(t,e),e=Rc(e.nextSibling)}if(IO(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Je(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){ha=Rc(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}ha=null}}else ha=da?Rc(t.stateNode.nextSibling):null;return!0}function RO(){for(var t=ha;t;)t=Rc(t.nextSibling)}function eF(){ha=da=null,Or=!1}function Sw(t){vs===null?vs=[t]:vs.push(t)}var Uae=ml.ReactCurrentBatchConfig;function bs(t,e){if(t&&t.defaultProps){e=zr({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var U2=Oc(null),V2=null,tF=null,jw=null;function Bw(){jw=tF=V2=null}function Aw(t){var e=U2.current;jr(U2),t._currentValue=e}function Tw(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function nF(t,e){V2=t,jw=tF=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Hi=!0),t.firstContext=null)}function Ta(t){var e=t._currentValue;if(jw!==t)if(t={context:t,memoizedValue:e,next:null},tF===null){if(V2===null)throw Error(Je(308));tF=t,V2.dependencies={lanes:0,firstContext:t}}else tF=tF.next=t;return e}var I1=null;function Iw(t){I1===null?I1=[t]:I1.push(t)}function OO(t,e,n,r){var o=e.interleaved;return o===null?(n.next=n,Iw(e)):(n.next=o.next,o.next=n),e.interleaved=n,_l(t,r)}function _l(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Lc=!1;function Rw(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function MO(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function vl(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Nc(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Hn&2){var o=r.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),r.pending=e,_l(t,n)}return o=r.interleaved,o===null?(e.next=e,Iw(r)):(e.next=o.next,o.next=e),r.interleaved=e,_l(t,n)}function q2(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Gx(t,n)}}function PO(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=e:i=i.next=e}else o=i=e;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function H2(t,e,n,r){var o=t.updateQueue;Lc=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var l=u,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var d=t.alternate;d!==null&&(d=d.updateQueue,u=d.lastBaseUpdate,u!==s&&(u===null?d.firstBaseUpdate=c:u.next=c,d.lastBaseUpdate=l))}if(i!==null){var F=o.baseState;s=0,d=c=l=null,u=i;do{var h=u.lane,m=u.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:m,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var D=t,g=u;switch(h=e,m=n,g.tag){case 1:if(D=g.payload,typeof D=="function"){F=D.call(m,F,h);break e}F=D;break e;case 3:D.flags=D.flags&-65537|128;case 0:if(D=g.payload,h=typeof D=="function"?D.call(m,F,h):D,h==null)break e;F=zr({},F,h);break e;case 2:Lc=!0}}u.callback!==null&&u.lane!==0&&(t.flags|=64,h=o.effects,h===null?o.effects=[u]:h.push(u))}else m={eventTime:m,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},d===null?(c=d=m,l=F):d=d.next=m,s|=h;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;h=u,u=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(d===null&&(l=F),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=d,e=o.shared.interleaved,e!==null){o=e;do s|=o.lane,o=o.next;while(o!==e)}else i===null&&(o.shared.lanes=0);M1|=s,t.lanes=s,t.memoizedState=F}}function LO(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Je(191,o));o.call(r)}}}var NO=new tR.Component().refs;function Ow(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:zr({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var $2={isMounted:function(t){return(t=t._reactInternals)?S1(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=ki(),o=qc(t),i=vl(r,o);i.payload=e,n!=null&&(i.callback=n),e=Nc(t,i,o),e!==null&&(ys(e,t,o,r),q2(e,t,o))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=ki(),o=qc(t),i=vl(r,o);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=Nc(t,i,o),e!==null&&(ys(e,t,o,r),q2(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=ki(),r=qc(t),o=vl(n,r);o.tag=2,e!=null&&(o.callback=e),e=Nc(t,o,r),e!==null&&(ys(e,t,r,n),q2(e,t,r))}};function zO(t,e,n,r,o,i,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,i,s):e.prototype&&e.prototype.isPureReactComponent?!pg(n,r)||!pg(o,i):!0}function UO(t,e,n){var r=!1,o=Mc,i=e.contextType;return typeof i=="object"&&i!==null?i=Ta(i):(o=qi(e)?B1:di.current,r=e.contextTypes,i=(r=r!=null)?J0(t,o):Mc),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=$2,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=i),e}function VO(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&$2.enqueueReplaceState(e,e.state,null)}function Mw(t,e,n,r){var o=t.stateNode;o.props=n,o.state=t.memoizedState,o.refs=NO,Rw(t);var i=e.contextType;typeof i=="object"&&i!==null?o.context=Ta(i):(i=qi(e)?B1:di.current,o.context=J0(t,i)),o.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Ow(t,e,i,n),o.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(e=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),e!==o.state&&$2.enqueueReplaceState(o,o.state,null),H2(t,n,o,r),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308)}function yg(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Je(309));var r=n.stateNode}if(!r)throw Error(Je(147,t));var o=r,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(s){var u=o.refs;u===NO&&(u=o.refs={}),s===null?delete u[i]:u[i]=s},e._stringRef=i,e)}if(typeof t!="string")throw Error(Je(284));if(!n._owner)throw Error(Je(290,t))}return t}function W2(t,e){throw t=Object.prototype.toString.call(e),Error(Je(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function qO(t){var e=t._init;return e(t._payload)}function HO(t){function e(_,v){if(t){var E=_.deletions;E===null?(_.deletions=[v],_.flags|=16):E.push(v)}}function n(_,v){if(!t)return null;for(;v!==null;)e(_,v),v=v.sibling;return null}function r(_,v){for(_=new Map;v!==null;)v.key!==null?_.set(v.key,v):_.set(v.index,v),v=v.sibling;return _}function o(_,v){return _=$c(_,v),_.index=0,_.sibling=null,_}function i(_,v,E){return _.index=E,t?(E=_.alternate,E!==null?(E=E.index,E<v?(_.flags|=2,v):E):(_.flags|=2,v)):(_.flags|=1048576,v)}function s(_){return t&&_.alternate===null&&(_.flags|=2),_}function u(_,v,E,b){return v===null||v.tag!==6?(v=f6(E,_.mode,b),v.return=_,v):(v=o(v,E),v.return=_,v)}function l(_,v,E,b){var k=E.type;return k===L0?d(_,v,E.props.children,b,E.key):v!==null&&(v.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===wc&&qO(k)===v.type)?(b=o(v,E.props),b.ref=yg(_,v,E),b.return=_,b):(b=dv(E.type,E.key,E.props,null,_.mode,b),b.ref=yg(_,v,E),b.return=_,b)}function c(_,v,E,b){return v===null||v.tag!==4||v.stateNode.containerInfo!==E.containerInfo||v.stateNode.implementation!==E.implementation?(v=_6(E,_.mode,b),v.return=_,v):(v=o(v,E.children||[]),v.return=_,v)}function d(_,v,E,b,k){return v===null||v.tag!==7?(v=z1(E,_.mode,b,k),v.return=_,v):(v=o(v,E),v.return=_,v)}function F(_,v,E){if(typeof v=="string"&&v!==""||typeof v=="number")return v=f6(""+v,_.mode,E),v.return=_,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case u2:return E=dv(v.type,v.key,v.props,null,_.mode,E),E.ref=yg(_,null,v),E.return=_,E;case P0:return v=_6(v,_.mode,E),v.return=_,v;case wc:var b=v._init;return F(_,b(v._payload),E)}if(QD(v)||JD(v))return v=z1(v,_.mode,E,null),v.return=_,v;W2(_,v)}return null}function h(_,v,E,b){var k=v!==null?v.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return k!==null?null:u(_,v,""+E,b);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case u2:return E.key===k?l(_,v,E,b):null;case P0:return E.key===k?c(_,v,E,b):null;case wc:return k=E._init,h(_,v,k(E._payload),b)}if(QD(E)||JD(E))return k!==null?null:d(_,v,E,b,null);W2(_,E)}return null}function m(_,v,E,b,k){if(typeof b=="string"&&b!==""||typeof b=="number")return _=_.get(E)||null,u(v,_,""+b,k);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case u2:return _=_.get(b.key===null?E:b.key)||null,l(v,_,b,k);case P0:return _=_.get(b.key===null?E:b.key)||null,c(v,_,b,k);case wc:var C=b._init;return m(_,v,E,C(b._payload),k)}if(QD(b)||JD(b))return _=_.get(E)||null,d(v,_,b,k,null);W2(v,b)}return null}function D(_,v,E,b){for(var k=null,C=null,S=v,w=v=0,A=null;S!==null&&w<E.length;w++){S.index>w?(A=S,S=null):A=S.sibling;var O=h(_,S,E[w],b);if(O===null){S===null&&(S=A);break}t&&S&&O.alternate===null&&e(_,S),v=i(O,v,w),C===null?k=O:C.sibling=O,C=O,S=A}if(w===E.length)return n(_,S),Or&&T1(_,w),k;if(S===null){for(;w<E.length;w++)S=F(_,E[w],b),S!==null&&(v=i(S,v,w),C===null?k=S:C.sibling=S,C=S);return Or&&T1(_,w),k}for(S=r(_,S);w<E.length;w++)A=m(S,_,w,E[w],b),A!==null&&(t&&A.alternate!==null&&S.delete(A.key===null?w:A.key),v=i(A,v,w),C===null?k=A:C.sibling=A,C=A);return t&&S.forEach(function(j){return e(_,j)}),Or&&T1(_,w),k}function g(_,v,E,b){var k=JD(E);if(typeof k!="function")throw Error(Je(150));if(E=k.call(E),E==null)throw Error(Je(151));for(var C=k=null,S=v,w=v=0,A=null,O=E.next();S!==null&&!O.done;w++,O=E.next()){S.index>w?(A=S,S=null):A=S.sibling;var j=h(_,S,O.value,b);if(j===null){S===null&&(S=A);break}t&&S&&j.alternate===null&&e(_,S),v=i(j,v,w),C===null?k=j:C.sibling=j,C=j,S=A}if(O.done)return n(_,S),Or&&T1(_,w),k;if(S===null){for(;!O.done;w++,O=E.next())O=F(_,O.value,b),O!==null&&(v=i(O,v,w),C===null?k=O:C.sibling=O,C=O);return Or&&T1(_,w),k}for(S=r(_,S);!O.done;w++,O=E.next())O=m(S,_,w,O.value,b),O!==null&&(t&&O.alternate!==null&&S.delete(O.key===null?w:O.key),v=i(O,v,w),C===null?k=O:C.sibling=O,C=O);return t&&S.forEach(function(R){return e(_,R)}),Or&&T1(_,w),k}function p(_,v,E,b){if(typeof E=="object"&&E!==null&&E.type===L0&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case u2:e:{for(var k=E.key,C=v;C!==null;){if(C.key===k){if(k=E.type,k===L0){if(C.tag===7){n(_,C.sibling),v=o(C,E.props.children),v.return=_,_=v;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===wc&&qO(k)===C.type){n(_,C.sibling),v=o(C,E.props),v.ref=yg(_,C,E),v.return=_,_=v;break e}n(_,C);break}else e(_,C);C=C.sibling}E.type===L0?(v=z1(E.props.children,_.mode,b,E.key),v.return=_,_=v):(b=dv(E.type,E.key,E.props,null,_.mode,b),b.ref=yg(_,v,E),b.return=_,_=b)}return s(_);case P0:e:{for(C=E.key;v!==null;){if(v.key===C)if(v.tag===4&&v.stateNode.containerInfo===E.containerInfo&&v.stateNode.implementation===E.implementation){n(_,v.sibling),v=o(v,E.children||[]),v.return=_,_=v;break e}else{n(_,v);break}else e(_,v);v=v.sibling}v=_6(E,_.mode,b),v.return=_,_=v}return s(_);case wc:return C=E._init,p(_,v,C(E._payload),b)}if(QD(E))return D(_,v,E,b);if(JD(E))return g(_,v,E,b);W2(_,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,v!==null&&v.tag===6?(n(_,v.sibling),v=o(v,E),v.return=_,_=v):(n(_,v),v=f6(E,_.mode,b),v.return=_,_=v),s(_)):n(_,v)}return p}var rF=HO(!0),$O=HO(!1),xg={},ru=Oc(xg),wg=Oc(xg),kg=Oc(xg);function R1(t){if(t===xg)throw Error(Je(174));return t}function Pw(t,e){switch(Er(kg,e),Er(wg,t),Er(ru,xg),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Mx(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Mx(e,t)}jr(ru),Er(ru,e)}function oF(){jr(ru),jr(wg),jr(kg)}function WO(t){R1(kg.current);var e=R1(ru.current),n=Mx(e,t.type);e!==n&&(Er(wg,t),Er(ru,n))}function Lw(t){wg.current===t&&(jr(ru),jr(wg))}var Ur=Oc(0);function K2(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Nw=[];function zw(){for(var t=0;t<Nw.length;t++)Nw[t]._workInProgressVersionPrimary=null;Nw.length=0}var G2=ml.ReactCurrentDispatcher,Uw=ml.ReactCurrentBatchConfig,O1=0,Vr=null,jo=null,zo=null,Y2=!1,Sg=!1,jg=0,Vae=0;function hi(){throw Error(Je(321))}function Vw(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!_s(t[n],e[n]))return!1;return!0}function qw(t,e,n,r,o,i){if(O1=i,Vr=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,G2.current=t===null||t.memoizedState===null?Wae:Kae,t=n(r,o),Sg){i=0;do{if(Sg=!1,jg=0,25<=i)throw Error(Je(301));i+=1,zo=jo=null,e.updateQueue=null,G2.current=Gae,t=n(r,o)}while(Sg)}if(G2.current=X2,e=jo!==null&&jo.next!==null,O1=0,zo=jo=Vr=null,Y2=!1,e)throw Error(Je(300));return t}function Hw(){var t=jg!==0;return jg=0,t}function ou(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zo===null?Vr.memoizedState=zo=t:zo=zo.next=t,zo}function Ia(){if(jo===null){var t=Vr.alternate;t=t!==null?t.memoizedState:null}else t=jo.next;var e=zo===null?Vr.memoizedState:zo.next;if(e!==null)zo=e,jo=t;else{if(t===null)throw Error(Je(310));jo=t,t={memoizedState:jo.memoizedState,baseState:jo.baseState,baseQueue:jo.baseQueue,queue:jo.queue,next:null},zo===null?Vr.memoizedState=zo=t:zo=zo.next=t}return zo}function Bg(t,e){return typeof e=="function"?e(t):e}function $w(t){var e=Ia(),n=e.queue;if(n===null)throw Error(Je(311));n.lastRenderedReducer=t;var r=jo,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var u=s=null,l=null,c=i;do{var d=c.lane;if((O1&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:t(r,c.action);else{var F={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(u=l=F,s=r):l=l.next=F,Vr.lanes|=d,M1|=d}c=c.next}while(c!==null&&c!==i);l===null?s=r:l.next=u,_s(r,e.memoizedState)||(Hi=!0),e.memoizedState=r,e.baseState=s,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){o=t;do i=o.lane,Vr.lanes|=i,M1|=i,o=o.next;while(o!==t)}else o===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Ww(t){var e=Ia(),n=e.queue;if(n===null)throw Error(Je(311));n.lastRenderedReducer=t;var r=n.dispatch,o=n.pending,i=e.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=t(i,s.action),s=s.next;while(s!==o);_s(i,e.memoizedState)||(Hi=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,r]}function KO(){}function GO(t,e){var n=Vr,r=Ia(),o=e(),i=!_s(r.memoizedState,o);if(i&&(r.memoizedState=o,Hi=!0),r=r.queue,Kw(JO.bind(null,n,r,t),[t]),r.getSnapshot!==e||i||zo!==null&&zo.memoizedState.tag&1){if(n.flags|=2048,Ag(9,ZO.bind(null,n,r,o,e),void 0,null),Uo===null)throw Error(Je(349));O1&30||YO(n,e,o)}return o}function YO(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Vr.updateQueue,e===null?(e={lastEffect:null,stores:null},Vr.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function ZO(t,e,n,r){e.value=n,e.getSnapshot=r,XO(e)&&QO(t)}function JO(t,e,n){return n(function(){XO(e)&&QO(t)})}function XO(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!_s(t,n)}catch{return!0}}function QO(t){var e=_l(t,1);e!==null&&ys(e,t,1,-1)}function eM(t){var e=ou();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bg,lastRenderedState:t},e.queue=t,t=t.dispatch=$ae.bind(null,Vr,t),[e.memoizedState,t]}function Ag(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Vr.updateQueue,e===null?(e={lastEffect:null,stores:null},Vr.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function tM(){return Ia().memoizedState}function Z2(t,e,n,r){var o=ou();Vr.flags|=t,o.memoizedState=Ag(1|e,n,void 0,r===void 0?null:r)}function J2(t,e,n,r){var o=Ia();r=r===void 0?null:r;var i=void 0;if(jo!==null){var s=jo.memoizedState;if(i=s.destroy,r!==null&&Vw(r,s.deps)){o.memoizedState=Ag(e,n,i,r);return}}Vr.flags|=t,o.memoizedState=Ag(1|e,n,i,r)}function nM(t,e){return Z2(8390656,8,t,e)}function Kw(t,e){return J2(2048,8,t,e)}function rM(t,e){return J2(4,2,t,e)}function oM(t,e){return J2(4,4,t,e)}function iM(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function aM(t,e,n){return n=n!=null?n.concat([t]):null,J2(4,4,iM.bind(null,e,t),n)}function Gw(){}function sM(t,e){var n=Ia();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Vw(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function uM(t,e){var n=Ia();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Vw(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function lM(t,e,n){return O1&21?(_s(n,e)||(n=OR(),Vr.lanes|=n,M1|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Hi=!0),t.memoizedState=n)}function qae(t,e){var n=ir;ir=n!==0&&4>n?n:4,t(!0);var r=Uw.transition;Uw.transition={};try{t(!1),e()}finally{ir=n,Uw.transition=r}}function cM(){return Ia().memoizedState}function Hae(t,e,n){var r=qc(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dM(t))hM(e,n);else if(n=OO(t,e,n,r),n!==null){var o=ki();ys(n,t,r,o),FM(n,e,r)}}function $ae(t,e,n){var r=qc(t),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dM(t))hM(e,o);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var s=e.lastRenderedState,u=i(s,n);if(o.hasEagerState=!0,o.eagerState=u,_s(u,s)){var l=e.interleaved;l===null?(o.next=o,Iw(e)):(o.next=l.next,l.next=o),e.interleaved=o;return}}catch{}finally{}n=OO(t,e,o,r),n!==null&&(o=ki(),ys(n,t,r,o),FM(n,e,r))}}function dM(t){var e=t.alternate;return t===Vr||e!==null&&e===Vr}function hM(t,e){Sg=Y2=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function FM(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Gx(t,n)}}var X2={readContext:Ta,useCallback:hi,useContext:hi,useEffect:hi,useImperativeHandle:hi,useInsertionEffect:hi,useLayoutEffect:hi,useMemo:hi,useReducer:hi,useRef:hi,useState:hi,useDebugValue:hi,useDeferredValue:hi,useTransition:hi,useMutableSource:hi,useSyncExternalStore:hi,useId:hi,unstable_isNewReconciler:!1},Wae={readContext:Ta,useCallback:function(t,e){return ou().memoizedState=[t,e===void 0?null:e],t},useContext:Ta,useEffect:nM,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Z2(4194308,4,iM.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Z2(4194308,4,t,e)},useInsertionEffect:function(t,e){return Z2(4,2,t,e)},useMemo:function(t,e){var n=ou();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=ou();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=Hae.bind(null,Vr,t),[r.memoizedState,t]},useRef:function(t){var e=ou();return t={current:t},e.memoizedState=t},useState:eM,useDebugValue:Gw,useDeferredValue:function(t){return ou().memoizedState=t},useTransition:function(){var t=eM(!1),e=t[0];return t=qae.bind(null,t[1]),ou().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Vr,o=ou();if(Or){if(n===void 0)throw Error(Je(407));n=n()}else{if(n=e(),Uo===null)throw Error(Je(349));O1&30||YO(r,e,n)}o.memoizedState=n;var i={value:n,getSnapshot:e};return o.queue=i,nM(JO.bind(null,r,i,t),[t]),r.flags|=2048,Ag(9,ZO.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=ou(),e=Uo.identifierPrefix;if(Or){var n=fl,r=pl;n=(r&~(1<<32-fs(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=jg++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=Vae++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},Kae={readContext:Ta,useCallback:sM,useContext:Ta,useEffect:Kw,useImperativeHandle:aM,useInsertionEffect:rM,useLayoutEffect:oM,useMemo:uM,useReducer:$w,useRef:tM,useState:function(){return $w(Bg)},useDebugValue:Gw,useDeferredValue:function(t){var e=Ia();return lM(e,jo.memoizedState,t)},useTransition:function(){var t=$w(Bg)[0],e=Ia().memoizedState;return[t,e]},useMutableSource:KO,useSyncExternalStore:GO,useId:cM,unstable_isNewReconciler:!1},Gae={readContext:Ta,useCallback:sM,useContext:Ta,useEffect:Kw,useImperativeHandle:aM,useInsertionEffect:rM,useLayoutEffect:oM,useMemo:uM,useReducer:Ww,useRef:tM,useState:function(){return Ww(Bg)},useDebugValue:Gw,useDeferredValue:function(t){var e=Ia();return jo===null?e.memoizedState=t:lM(e,jo.memoizedState,t)},useTransition:function(){var t=Ww(Bg)[0],e=Ia().memoizedState;return[t,e]},useMutableSource:KO,useSyncExternalStore:GO,useId:cM,unstable_isNewReconciler:!1};function iF(t,e){try{var n="",r=e;do n+=Cie(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:t,source:e,stack:o,digest:null}}function Yw(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Zw(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var Yae=typeof WeakMap=="function"?WeakMap:Map;function mM(t,e,n){n=vl(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){iv||(iv=!0,c6=r),Zw(t,e)},n}function DM(t,e,n){n=vl(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var o=e.value;n.payload=function(){return r(o)},n.callback=function(){Zw(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Zw(t,e),typeof r!="function"&&(Uc===null?Uc=new Set([this]):Uc.add(this));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}function gM(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new Yae;var o=new Set;r.set(e,o)}else o=r.get(e),o===void 0&&(o=new Set,r.set(e,o));o.has(n)||(o.add(n),t=lse.bind(null,t,e,n),e.then(t,t))}function pM(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function fM(t,e,n,r,o){return t.mode&1?(t.flags|=65536,t.lanes=o,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=vl(-1,1),e.tag=2,Nc(n,e,1))),n.lanes|=1),t)}var Zae=ml.ReactCurrentOwner,Hi=!1;function wi(t,e,n,r){e.child=t===null?$O(e,null,n,r):rF(e,t.child,n,r)}function _M(t,e,n,r,o){n=n.render;var i=e.ref;return nF(e,o),r=qw(t,e,n,r,i,o),n=Hw(),t!==null&&!Hi?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,bl(t,e,o)):(Or&&n&&yw(e),e.flags|=1,wi(t,e,r,o),e.child)}function vM(t,e,n,r,o){if(t===null){var i=n.type;return typeof i=="function"&&!p6(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,bM(t,e,i,r,o)):(t=dv(n.type,null,r,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:pg,n(s,r)&&t.ref===e.ref)return bl(t,e,o)}return e.flags|=1,t=$c(i,r),t.ref=e.ref,t.return=e,e.child=t}function bM(t,e,n,r,o){if(t!==null){var i=t.memoizedProps;if(pg(i,r)&&t.ref===e.ref)if(Hi=!1,e.pendingProps=r=i,(t.lanes&o)!==0)t.flags&131072&&(Hi=!0);else return e.lanes=t.lanes,bl(t,e,o)}return Jw(t,e,n,r,o)}function CM(t,e,n){var r=e.pendingProps,o=r.children,i=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Er(sF,Fa),Fa|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Er(sF,Fa),Fa|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Er(sF,Fa),Fa|=r}else i!==null?(r=i.baseLanes|n,e.memoizedState=null):r=n,Er(sF,Fa),Fa|=r;return wi(t,e,o,n),e.child}function EM(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Jw(t,e,n,r,o){var i=qi(n)?B1:di.current;return i=J0(e,i),nF(e,o),n=qw(t,e,n,r,i,o),r=Hw(),t!==null&&!Hi?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,bl(t,e,o)):(Or&&r&&yw(e),e.flags|=1,wi(t,e,n,o),e.child)}function yM(t,e,n,r,o){if(qi(n)){var i=!0;M2(e)}else i=!1;if(nF(e,o),e.stateNode===null)ev(t,e),UO(e,n,r),Mw(e,n,r,o),r=!0;else if(t===null){var s=e.stateNode,u=e.memoizedProps;s.props=u;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ta(c):(c=qi(n)?B1:di.current,c=J0(e,c));var d=n.getDerivedStateFromProps,F=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";F||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==r||l!==c)&&VO(e,s,r,c),Lc=!1;var h=e.memoizedState;s.state=h,H2(e,r,s,o),l=e.memoizedState,u!==r||h!==l||Vi.current||Lc?(typeof d=="function"&&(Ow(e,n,d,r),l=e.memoizedState),(u=Lc||zO(e,n,u,r,h,l,c))?(F||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),s.props=r,s.state=l,s.context=c,r=u):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{s=e.stateNode,MO(t,e),u=e.memoizedProps,c=e.type===e.elementType?u:bs(e.type,u),s.props=c,F=e.pendingProps,h=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ta(l):(l=qi(n)?B1:di.current,l=J0(e,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==F||h!==l)&&VO(e,s,r,l),Lc=!1,h=e.memoizedState,s.state=h,H2(e,r,s,o);var D=e.memoizedState;u!==F||h!==D||Vi.current||Lc?(typeof m=="function"&&(Ow(e,n,m,r),D=e.memoizedState),(c=Lc||zO(e,n,c,r,h,D,l)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,D,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,D,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=D),s.props=r,s.state=D,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return Xw(t,e,n,r,i,o)}function Xw(t,e,n,r,o,i){EM(t,e);var s=(e.flags&128)!==0;if(!r&&!s)return o&&SO(e,n,!1),bl(t,e,i);r=e.stateNode,Zae.current=e;var u=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&s?(e.child=rF(e,t.child,null,i),e.child=rF(e,null,u,i)):wi(t,e,u,i),e.memoizedState=r.state,o&&SO(e,n,!0),e.child}function xM(t){var e=t.stateNode;e.pendingContext?wO(t,e.pendingContext,e.pendingContext!==e.context):e.context&&wO(t,e.context,!1),Pw(t,e.containerInfo)}function wM(t,e,n,r,o){return eF(),Sw(o),e.flags|=256,wi(t,e,n,r),e.child}var Qw={dehydrated:null,treeContext:null,retryLane:0};function e6(t){return{baseLanes:t,cachePool:null,transitions:null}}function kM(t,e,n){var r=e.pendingProps,o=Ur.current,i=!1,s=(e.flags&128)!==0,u;if((u=s)||(u=t!==null&&t.memoizedState===null?!1:(o&2)!==0),u?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(o|=1),Er(Ur,o&1),t===null)return kw(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(s=r.children,t=r.fallback,i?(r=e.mode,i=e.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=hv(s,r,0,null),t=z1(t,r,n,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=e6(n),e.memoizedState=Qw,t):t6(e,s));if(o=t.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return Jae(t,e,s,r,u,o,n);if(i){i=r.fallback,s=e.mode,o=t.child,u=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&e.child!==o?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=$c(o,l),r.subtreeFlags=o.subtreeFlags&14680064),u!==null?i=$c(u,i):(i=z1(i,s,n,null),i.flags|=2),i.return=e,r.return=e,r.sibling=i,e.child=r,r=i,i=e.child,s=t.child.memoizedState,s=s===null?e6(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=t.childLanes&~n,e.memoizedState=Qw,r}return i=t.child,t=i.sibling,r=$c(i,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function t6(t,e){return e=hv({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Q2(t,e,n,r){return r!==null&&Sw(r),rF(e,t.child,null,n),t=t6(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Jae(t,e,n,r,o,i,s){if(n)return e.flags&256?(e.flags&=-257,r=Yw(Error(Je(422))),Q2(t,e,s,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=r.fallback,o=e.mode,r=hv({mode:"visible",children:r.children},o,0,null),i=z1(i,o,s,null),i.flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,e.mode&1&&rF(e,t.child,null,s),e.child.memoizedState=e6(s),e.memoizedState=Qw,i);if(!(e.mode&1))return Q2(t,e,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(Je(419)),r=Yw(i,r,void 0),Q2(t,e,s,r)}if(u=(s&t.childLanes)!==0,Hi||u){if(r=Uo,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,_l(t,o),ys(r,t,o,-1))}return g6(),r=Yw(Error(Je(421))),Q2(t,e,s,r)}return o.data==="$?"?(e.flags|=128,e.child=t.child,e=cse.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,ha=Rc(o.nextSibling),da=e,Or=!0,vs=null,t!==null&&(Ba[Aa++]=pl,Ba[Aa++]=fl,Ba[Aa++]=A1,pl=t.id,fl=t.overflow,A1=e),e=t6(e,r.children),e.flags|=4096,e)}function SM(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Tw(t.return,e,n)}function n6(t,e,n,r,o){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function jM(t,e,n){var r=e.pendingProps,o=r.revealOrder,i=r.tail;if(wi(t,e,r.children,n),r=Ur.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&SM(t,n,e);else if(t.tag===19)SM(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Er(Ur,r),!(e.mode&1))e.memoizedState=null;else switch(o){case"forwards":for(n=e.child,o=null;n!==null;)t=n.alternate,t!==null&&K2(t)===null&&(o=n),n=n.sibling;n=o,n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),n6(e,!1,o,n,i);break;case"backwards":for(n=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&K2(t)===null){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}n6(e,!0,n,null,i);break;case"together":n6(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function ev(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function bl(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),M1|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(Je(153));if(e.child!==null){for(t=e.child,n=$c(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=$c(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Xae(t,e,n){switch(e.tag){case 3:xM(e),eF();break;case 5:WO(e);break;case 1:qi(e.type)&&M2(e);break;case 4:Pw(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,o=e.memoizedProps.value;Er(U2,r._currentValue),r._currentValue=o;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Er(Ur,Ur.current&1),e.flags|=128,null):n&e.child.childLanes?kM(t,e,n):(Er(Ur,Ur.current&1),t=bl(t,e,n),t!==null?t.sibling:null);Er(Ur,Ur.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return jM(t,e,n);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Er(Ur,Ur.current),r)break;return null;case 22:case 23:return e.lanes=0,CM(t,e,n)}return bl(t,e,n)}var BM,r6,AM,TM;BM=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},r6=function(){},AM=function(t,e,n,r){var o=t.memoizedProps;if(o!==r){t=e.stateNode,R1(ru.current);var i=null;switch(n){case"input":o=Tx(t,o),r=Tx(t,r),i=[];break;case"select":o=zr({},o,{value:void 0}),r=zr({},r,{value:void 0}),i=[];break;case"textarea":o=Ox(t,o),r=Ox(t,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=I2)}Px(n,r);var s;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var u=o[c];for(s in u)u.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ZD.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(u=o==null?void 0:o[c],r.hasOwnProperty(c)&&l!==u&&(l!=null||u!=null))if(c==="style")if(u){for(s in u)!u.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&u[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,u=u?u.__html:void 0,l!=null&&u!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ZD.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Sr("scroll",t),i||u===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(e.updateQueue=c)&&(e.flags|=4)}},TM=function(t,e,n,r){n!==r&&(e.flags|=4)};function Tg(t,e){if(!Or)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Fi(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var o=t.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function Qae(t,e,n){var r=e.pendingProps;switch(xw(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fi(e),null;case 1:return qi(e.type)&&O2(),Fi(e),null;case 3:return r=e.stateNode,oF(),jr(Vi),jr(di),zw(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(z2(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,vs!==null&&(F6(vs),vs=null))),r6(t,e),Fi(e),null;case 5:Lw(e);var o=R1(kg.current);if(n=e.type,t!==null&&e.stateNode!=null)AM(t,e,n,r,o),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(Je(166));return Fi(e),null}if(t=R1(ru.current),z2(e)){r=e.stateNode,n=e.type;var i=e.memoizedProps;switch(r[nu]=e,r[Cg]=i,t=(e.mode&1)!==0,n){case"dialog":Sr("cancel",r),Sr("close",r);break;case"iframe":case"object":case"embed":Sr("load",r);break;case"video":case"audio":for(o=0;o<_g.length;o++)Sr(_g[o],r);break;case"source":Sr("error",r);break;case"img":case"image":case"link":Sr("error",r),Sr("load",r);break;case"details":Sr("toggle",r);break;case"input":dR(r,i),Sr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Sr("invalid",r);break;case"textarea":mR(r,i),Sr("invalid",r)}Px(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var u=i[s];s==="children"?typeof u=="string"?r.textContent!==u&&(i.suppressHydrationWarning!==!0&&T2(r.textContent,u,t),o=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(i.suppressHydrationWarning!==!0&&T2(r.textContent,u,t),o=["children",""+u]):ZD.hasOwnProperty(s)&&u!=null&&s==="onScroll"&&Sr("scroll",r)}switch(n){case"input":l2(r),FR(r,i,!0);break;case"textarea":l2(r),gR(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=I2)}r=o,e.updateQueue=r,r!==null&&(e.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=pR(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[nu]=e,t[Cg]=r,BM(t,e,!1,!1),e.stateNode=t;e:{switch(s=Lx(n,r),n){case"dialog":Sr("cancel",t),Sr("close",t),o=r;break;case"iframe":case"object":case"embed":Sr("load",t),o=r;break;case"video":case"audio":for(o=0;o<_g.length;o++)Sr(_g[o],t);o=r;break;case"source":Sr("error",t),o=r;break;case"img":case"image":case"link":Sr("error",t),Sr("load",t),o=r;break;case"details":Sr("toggle",t),o=r;break;case"input":dR(t,r),o=Tx(t,r),Sr("invalid",t);break;case"option":o=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},o=zr({},r,{value:void 0}),Sr("invalid",t);break;case"textarea":mR(t,r),o=Ox(t,r),Sr("invalid",t);break;default:o=r}Px(n,o),u=o;for(i in u)if(u.hasOwnProperty(i)){var l=u[i];i==="style"?vR(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&fR(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&eg(t,l):typeof l=="number"&&eg(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ZD.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Sr("scroll",t):l!=null&&bx(t,i,l,s))}switch(n){case"input":l2(t),FR(t,r,!1);break;case"textarea":l2(t),gR(t);break;case"option":r.value!=null&&t.setAttribute("value",""+kc(r.value));break;case"select":t.multiple=!!r.multiple,i=r.value,i!=null?N0(t,!!r.multiple,i,!1):r.defaultValue!=null&&N0(t,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(t.onclick=I2)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Fi(e),null;case 6:if(t&&e.stateNode!=null)TM(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(Je(166));if(n=R1(kg.current),R1(ru.current),z2(e)){if(r=e.stateNode,n=e.memoizedProps,r[nu]=e,(i=r.nodeValue!==n)&&(t=da,t!==null))switch(t.tag){case 3:T2(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&T2(r.nodeValue,n,(t.mode&1)!==0)}i&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[nu]=e,e.stateNode=r}return Fi(e),null;case 13:if(jr(Ur),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Or&&ha!==null&&e.mode&1&&!(e.flags&128))RO(),eF(),e.flags|=98560,i=!1;else if(i=z2(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(Je(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Je(317));i[nu]=e}else eF(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Fi(e),i=!1}else vs!==null&&(F6(vs),vs=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||Ur.current&1?Bo===0&&(Bo=3):g6())),e.updateQueue!==null&&(e.flags|=4),Fi(e),null);case 4:return oF(),r6(t,e),t===null&&vg(e.stateNode.containerInfo),Fi(e),null;case 10:return Aw(e.type._context),Fi(e),null;case 17:return qi(e.type)&&O2(),Fi(e),null;case 19:if(jr(Ur),i=e.memoizedState,i===null)return Fi(e),null;if(r=(e.flags&128)!==0,s=i.rendering,s===null)if(r)Tg(i,!1);else{if(Bo!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(s=K2(t),s!==null){for(e.flags|=128,Tg(i,!1),r=s.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)i=n,t=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,t=s.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Er(Ur,Ur.current&1|2),e.child}t=t.sibling}i.tail!==null&&to()>uF&&(e.flags|=128,r=!0,Tg(i,!1),e.lanes=4194304)}else{if(!r)if(t=K2(s),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Tg(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Or)return Fi(e),null}else 2*to()-i.renderingStartTime>uF&&n!==1073741824&&(e.flags|=128,r=!0,Tg(i,!1),e.lanes=4194304);i.isBackwards?(s.sibling=e.child,e.child=s):(n=i.last,n!==null?n.sibling=s:e.child=s,i.last=s)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=to(),e.sibling=null,n=Ur.current,Er(Ur,r?n&1|2:n&1),e):(Fi(e),null);case 22:case 23:return D6(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Fa&1073741824&&(Fi(e),e.subtreeFlags&6&&(e.flags|=8192)):Fi(e),null;case 24:return null;case 25:return null}throw Error(Je(156,e.tag))}function ese(t,e){switch(xw(e),e.tag){case 1:return qi(e.type)&&O2(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return oF(),jr(Vi),jr(di),zw(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Lw(e),null;case 13:if(jr(Ur),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Je(340));eF()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return jr(Ur),null;case 4:return oF(),null;case 10:return Aw(e.type._context),null;case 22:case 23:return D6(),null;case 24:return null;default:return null}}var tv=!1,mi=!1,tse=typeof WeakSet=="function"?WeakSet:Set,kt=null;function aF(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Jr(t,e,r)}else n.current=null}function IM(t,e,n){try{n()}catch(r){Jr(t,e,r)}}var RM=!1;function nse(t,e){if(gw=b2,t=cO(),uw(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,u=-1,l=-1,c=0,d=0,F=t,h=null;t:for(;;){for(var m;F!==n||o!==0&&F.nodeType!==3||(u=s+o),F!==i||r!==0&&F.nodeType!==3||(l=s+r),F.nodeType===3&&(s+=F.nodeValue.length),(m=F.firstChild)!==null;)h=F,F=m;for(;;){if(F===t)break t;if(h===n&&++c===o&&(u=s),h===i&&++d===r&&(l=s),(m=F.nextSibling)!==null)break;F=h,h=F.parentNode}F=m}n=u===-1||l===-1?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(pw={focusedElem:t,selectionRange:n},b2=!1,kt=e;kt!==null;)if(e=kt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,kt=t;else for(;kt!==null;){e=kt;try{var D=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(D!==null){var g=D.memoizedProps,p=D.memoizedState,_=e.stateNode,v=_.getSnapshotBeforeUpdate(e.elementType===e.type?g:bs(e.type,g),p);_.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var E=e.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Je(163))}}catch(b){Jr(e,e.return,b)}if(t=e.sibling,t!==null){t.return=e.return,kt=t;break}kt=e.return}return D=RM,RM=!1,D}function Ig(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var i=o.destroy;o.destroy=void 0,i!==void 0&&IM(e,n,i)}o=o.next}while(o!==r)}}function nv(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function o6(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function OM(t){var e=t.alternate;e!==null&&(t.alternate=null,OM(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[nu],delete e[Cg],delete e[bw],delete e[Lae],delete e[Nae])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function MM(t){return t.tag===5||t.tag===3||t.tag===4}function PM(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||MM(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function i6(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=I2));else if(r!==4&&(t=t.child,t!==null))for(i6(t,e,n),t=t.sibling;t!==null;)i6(t,e,n),t=t.sibling}function a6(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(a6(t,e,n),t=t.sibling;t!==null;)a6(t,e,n),t=t.sibling}var Jo=null,Cs=!1;function zc(t,e,n){for(n=n.child;n!==null;)LM(t,e,n),n=n.sibling}function LM(t,e,n){if(tu&&typeof tu.onCommitFiberUnmount=="function")try{tu.onCommitFiberUnmount(D2,n)}catch{}switch(n.tag){case 5:mi||aF(n,e);case 6:var r=Jo,o=Cs;Jo=null,zc(t,e,n),Jo=r,Cs=o,Jo!==null&&(Cs?(t=Jo,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Jo.removeChild(n.stateNode));break;case 18:Jo!==null&&(Cs?(t=Jo,n=n.stateNode,t.nodeType===8?vw(t.parentNode,n):t.nodeType===1&&vw(t,n),dg(t)):vw(Jo,n.stateNode));break;case 4:r=Jo,o=Cs,Jo=n.stateNode.containerInfo,Cs=!0,zc(t,e,n),Jo=r,Cs=o;break;case 0:case 11:case 14:case 15:if(!mi&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&IM(n,e,s),o=o.next}while(o!==r)}zc(t,e,n);break;case 1:if(!mi&&(aF(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Jr(n,e,u)}zc(t,e,n);break;case 21:zc(t,e,n);break;case 22:n.mode&1?(mi=(r=mi)||n.memoizedState!==null,zc(t,e,n),mi=r):zc(t,e,n);break;default:zc(t,e,n)}}function NM(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new tse),e.forEach(function(r){var o=dse.bind(null,t,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Es(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=t,s=e,u=s;e:for(;u!==null;){switch(u.tag){case 5:Jo=u.stateNode,Cs=!1;break e;case 3:Jo=u.stateNode.containerInfo,Cs=!0;break e;case 4:Jo=u.stateNode.containerInfo,Cs=!0;break e}u=u.return}if(Jo===null)throw Error(Je(160));LM(i,s,o),Jo=null,Cs=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Jr(o,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)zM(e,t),e=e.sibling}function zM(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Es(e,t),iu(t),r&4){try{Ig(3,t,t.return),nv(3,t)}catch(g){Jr(t,t.return,g)}try{Ig(5,t,t.return)}catch(g){Jr(t,t.return,g)}}break;case 1:Es(e,t),iu(t),r&512&&n!==null&&aF(n,n.return);break;case 5:if(Es(e,t),iu(t),r&512&&n!==null&&aF(n,n.return),t.flags&32){var o=t.stateNode;try{eg(o,"")}catch(g){Jr(t,t.return,g)}}if(r&4&&(o=t.stateNode,o!=null)){var i=t.memoizedProps,s=n!==null?n.memoizedProps:i,u=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{u==="input"&&i.type==="radio"&&i.name!=null&&hR(o,i),Lx(u,s);var c=Lx(u,i);for(s=0;s<l.length;s+=2){var d=l[s],F=l[s+1];d==="style"?vR(o,F):d==="dangerouslySetInnerHTML"?fR(o,F):d==="children"?eg(o,F):bx(o,d,F,c)}switch(u){case"input":Ix(o,i);break;case"textarea":DR(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?N0(o,!!i.multiple,m,!1):h!==!!i.multiple&&(i.defaultValue!=null?N0(o,!!i.multiple,i.defaultValue,!0):N0(o,!!i.multiple,i.multiple?[]:"",!1))}o[Cg]=i}catch(g){Jr(t,t.return,g)}}break;case 6:if(Es(e,t),iu(t),r&4){if(t.stateNode===null)throw Error(Je(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(g){Jr(t,t.return,g)}}break;case 3:if(Es(e,t),iu(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{dg(e.containerInfo)}catch(g){Jr(t,t.return,g)}break;case 4:Es(e,t),iu(t);break;case 13:Es(e,t),iu(t),o=t.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(l6=to())),r&4&&NM(t);break;case 22:if(d=n!==null&&n.memoizedState!==null,t.mode&1?(mi=(c=mi)||d,Es(e,t),mi=c):Es(e,t),iu(t),r&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!d&&t.mode&1)for(kt=t,d=t.child;d!==null;){for(F=kt=d;kt!==null;){switch(h=kt,m=h.child,h.tag){case 0:case 11:case 14:case 15:Ig(4,h,h.return);break;case 1:aF(h,h.return);var D=h.stateNode;if(typeof D.componentWillUnmount=="function"){r=h,n=h.return;try{e=r,D.props=e.memoizedProps,D.state=e.memoizedState,D.componentWillUnmount()}catch(g){Jr(r,n,g)}}break;case 5:aF(h,h.return);break;case 22:if(h.memoizedState!==null){qM(F);continue}}m!==null?(m.return=h,kt=m):qM(F)}d=d.sibling}e:for(d=null,F=t;;){if(F.tag===5){if(d===null){d=F;try{o=F.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(u=F.stateNode,l=F.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,u.style.display=_R("display",s))}catch(g){Jr(t,t.return,g)}}}else if(F.tag===6){if(d===null)try{F.stateNode.nodeValue=c?"":F.memoizedProps}catch(g){Jr(t,t.return,g)}}else if((F.tag!==22&&F.tag!==23||F.memoizedState===null||F===t)&&F.child!==null){F.child.return=F,F=F.child;continue}if(F===t)break e;for(;F.sibling===null;){if(F.return===null||F.return===t)break e;d===F&&(d=null),F=F.return}d===F&&(d=null),F.sibling.return=F.return,F=F.sibling}}break;case 19:Es(e,t),iu(t),r&4&&NM(t);break;case 21:break;default:Es(e,t),iu(t)}}function iu(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(MM(n)){var r=n;break e}n=n.return}throw Error(Je(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(eg(o,""),r.flags&=-33);var i=PM(t);a6(t,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,u=PM(t);i6(t,u,s);break;default:throw Error(Je(161))}}catch(l){Jr(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function rse(t,e,n){kt=t,UM(t)}function UM(t,e,n){for(var r=(t.mode&1)!==0;kt!==null;){var o=kt,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||tv;if(!s){var u=o.alternate,l=u!==null&&u.memoizedState!==null||mi;u=tv;var c=mi;if(tv=s,(mi=l)&&!c)for(kt=o;kt!==null;)s=kt,l=s.child,s.tag===22&&s.memoizedState!==null?HM(o):l!==null?(l.return=s,kt=l):HM(o);for(;i!==null;)kt=i,UM(i),i=i.sibling;kt=o,tv=u,mi=c}VM(t)}else o.subtreeFlags&8772&&i!==null?(i.return=o,kt=i):VM(t)}}function VM(t){for(;kt!==null;){var e=kt;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:mi||nv(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!mi)if(n===null)r.componentDidMount();else{var o=e.elementType===e.type?n.memoizedProps:bs(e.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&LO(e,i,r);break;case 3:var s=e.updateQueue;if(s!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}LO(e,s,n)}break;case 5:var u=e.stateNode;if(n===null&&e.flags&4){n=u;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var F=d.dehydrated;F!==null&&dg(F)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Je(163))}mi||e.flags&512&&o6(e)}catch(h){Jr(e,e.return,h)}}if(e===t){kt=null;break}if(n=e.sibling,n!==null){n.return=e.return,kt=n;break}kt=e.return}}function qM(t){for(;kt!==null;){var e=kt;if(e===t){kt=null;break}var n=e.sibling;if(n!==null){n.return=e.return,kt=n;break}kt=e.return}}function HM(t){for(;kt!==null;){var e=kt;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{nv(4,e)}catch(l){Jr(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var o=e.return;try{r.componentDidMount()}catch(l){Jr(e,o,l)}}var i=e.return;try{o6(e)}catch(l){Jr(e,i,l)}break;case 5:var s=e.return;try{o6(e)}catch(l){Jr(e,s,l)}}}catch(l){Jr(e,e.return,l)}if(e===t){kt=null;break}var u=e.sibling;if(u!==null){u.return=e.return,kt=u;break}kt=e.return}}var ose=Math.ceil,rv=ml.ReactCurrentDispatcher,s6=ml.ReactCurrentOwner,Ra=ml.ReactCurrentBatchConfig,Hn=0,Uo=null,go=null,Xo=0,Fa=0,sF=Oc(0),Bo=0,Rg=null,M1=0,ov=0,u6=0,Og=null,$i=null,l6=0,uF=1/0,Cl=null,iv=!1,c6=null,Uc=null,av=!1,Vc=null,sv=0,Mg=0,d6=null,uv=-1,lv=0;function ki(){return Hn&6?to():uv!==-1?uv:uv=to()}function qc(t){return t.mode&1?Hn&2&&Xo!==0?Xo&-Xo:Uae.transition!==null?(lv===0&&(lv=OR()),lv):(t=ir,t!==0||(t=window.event,t=t===void 0?16:HR(t.type)),t):1}function ys(t,e,n,r){if(50<Mg)throw Mg=0,d6=null,Error(Je(185));ag(t,n,r),(!(Hn&2)||t!==Uo)&&(t===Uo&&(!(Hn&2)&&(ov|=n),Bo===4&&Hc(t,Xo)),Wi(t,r),n===1&&Hn===0&&!(e.mode&1)&&(uF=to()+500,P2&&Pc()))}function Wi(t,e){var n=t.callbackNode;Uie(t,e);var r=f2(t,t===Uo?Xo:0);if(r===0)n!==null&&TR(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&TR(n),e===1)t.tag===0?zae(WM.bind(null,t)):jO(WM.bind(null,t)),Mae(function(){!(Hn&6)&&Pc()}),n=null;else{switch(MR(r)){case 1:n=$x;break;case 4:n=IR;break;case 16:n=m2;break;case 536870912:n=RR;break;default:n=m2}n=eP(n,$M.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function $M(t,e){if(uv=-1,lv=0,Hn&6)throw Error(Je(327));var n=t.callbackNode;if(lF()&&t.callbackNode!==n)return null;var r=f2(t,t===Uo?Xo:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=cv(t,r);else{e=r;var o=Hn;Hn|=2;var i=GM();(Uo!==t||Xo!==e)&&(Cl=null,uF=to()+500,L1(t,e));do try{sse();break}catch(u){KM(t,u)}while(!0);Bw(),rv.current=i,Hn=o,go!==null?e=0:(Uo=null,Xo=0,e=Bo)}if(e!==0){if(e===2&&(o=Wx(t),o!==0&&(r=o,e=h6(t,o))),e===1)throw n=Rg,L1(t,0),Hc(t,r),Wi(t,to()),n;if(e===6)Hc(t,r);else{if(o=t.current.alternate,!(r&30)&&!ise(o)&&(e=cv(t,r),e===2&&(i=Wx(t),i!==0&&(r=i,e=h6(t,i))),e===1))throw n=Rg,L1(t,0),Hc(t,r),Wi(t,to()),n;switch(t.finishedWork=o,t.finishedLanes=r,e){case 0:case 1:throw Error(Je(345));case 2:N1(t,$i,Cl);break;case 3:if(Hc(t,r),(r&130023424)===r&&(e=l6+500-to(),10<e)){if(f2(t,0)!==0)break;if(o=t.suspendedLanes,(o&r)!==r){ki(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=_w(N1.bind(null,t,$i,Cl),e);break}N1(t,$i,Cl);break;case 4:if(Hc(t,r),(r&4194240)===r)break;for(e=t.eventTimes,o=-1;0<r;){var s=31-fs(r);i=1<<s,s=e[s],s>o&&(o=s),r&=~i}if(r=o,r=to()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ose(r/1960))-r,10<r){t.timeoutHandle=_w(N1.bind(null,t,$i,Cl),r);break}N1(t,$i,Cl);break;case 5:N1(t,$i,Cl);break;default:throw Error(Je(329))}}}return Wi(t,to()),t.callbackNode===n?$M.bind(null,t):null}function h6(t,e){var n=Og;return t.current.memoizedState.isDehydrated&&(L1(t,e).flags|=256),t=cv(t,e),t!==2&&(e=$i,$i=n,e!==null&&F6(e)),t}function F6(t){$i===null?$i=t:$i.push.apply($i,t)}function ise(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!_s(i(),o))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Hc(t,e){for(e&=~u6,e&=~ov,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-fs(e),r=1<<n;t[n]=-1,e&=~r}}function WM(t){if(Hn&6)throw Error(Je(327));lF();var e=f2(t,0);if(!(e&1))return Wi(t,to()),null;var n=cv(t,e);if(t.tag!==0&&n===2){var r=Wx(t);r!==0&&(e=r,n=h6(t,r))}if(n===1)throw n=Rg,L1(t,0),Hc(t,e),Wi(t,to()),n;if(n===6)throw Error(Je(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,N1(t,$i,Cl),Wi(t,to()),null}function m6(t,e){var n=Hn;Hn|=1;try{return t(e)}finally{Hn=n,Hn===0&&(uF=to()+500,P2&&Pc())}}function P1(t){Vc!==null&&Vc.tag===0&&!(Hn&6)&&lF();var e=Hn;Hn|=1;var n=Ra.transition,r=ir;try{if(Ra.transition=null,ir=1,t)return t()}finally{ir=r,Ra.transition=n,Hn=e,!(Hn&6)&&Pc()}}function D6(){Fa=sF.current,jr(sF)}function L1(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,Oae(n)),go!==null)for(n=go.return;n!==null;){var r=n;switch(xw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&O2();break;case 3:oF(),jr(Vi),jr(di),zw();break;case 5:Lw(r);break;case 4:oF();break;case 13:jr(Ur);break;case 19:jr(Ur);break;case 10:Aw(r.type._context);break;case 22:case 23:D6()}n=n.return}if(Uo=t,go=t=$c(t.current,null),Xo=Fa=e,Bo=0,Rg=null,u6=ov=M1=0,$i=Og=null,I1!==null){for(e=0;e<I1.length;e++)if(n=I1[e],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}I1=null}return t}function KM(t,e){do{var n=go;try{if(Bw(),G2.current=X2,Y2){for(var r=Vr.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Y2=!1}if(O1=0,zo=jo=Vr=null,Sg=!1,jg=0,s6.current=null,n===null||n.return===null){Bo=1,Rg=e,go=null;break}e:{var i=t,s=n.return,u=n,l=e;if(e=Xo,u.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=u,F=d.tag;if(!(d.mode&1)&&(F===0||F===11||F===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=pM(s);if(m!==null){m.flags&=-257,fM(m,s,u,i,e),m.mode&1&&gM(i,c,e),e=m,l=c;var D=e.updateQueue;if(D===null){var g=new Set;g.add(l),e.updateQueue=g}else D.add(l);break e}else{if(!(e&1)){gM(i,c,e),g6();break e}l=Error(Je(426))}}else if(Or&&u.mode&1){var p=pM(s);if(p!==null){!(p.flags&65536)&&(p.flags|=256),fM(p,s,u,i,e),Sw(iF(l,u));break e}}i=l=iF(l,u),Bo!==4&&(Bo=2),Og===null?Og=[i]:Og.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var _=mM(i,l,e);PO(i,_);break e;case 1:u=l;var v=i.type,E=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Uc===null||!Uc.has(E)))){i.flags|=65536,e&=-e,i.lanes|=e;var b=DM(i,u,e);PO(i,b);break e}}i=i.return}while(i!==null)}ZM(n)}catch(k){e=k,go===n&&n!==null&&(go=n=n.return);continue}break}while(!0)}function GM(){var t=rv.current;return rv.current=X2,t===null?X2:t}function g6(){(Bo===0||Bo===3||Bo===2)&&(Bo=4),Uo===null||!(M1&268435455)&&!(ov&268435455)||Hc(Uo,Xo)}function cv(t,e){var n=Hn;Hn|=2;var r=GM();(Uo!==t||Xo!==e)&&(Cl=null,L1(t,e));do try{ase();break}catch(o){KM(t,o)}while(!0);if(Bw(),Hn=n,rv.current=r,go!==null)throw Error(Je(261));return Uo=null,Xo=0,Bo}function ase(){for(;go!==null;)YM(go)}function sse(){for(;go!==null&&!Tie();)YM(go)}function YM(t){var e=QM(t.alternate,t,Fa);t.memoizedProps=t.pendingProps,e===null?ZM(t):go=e,s6.current=null}function ZM(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=ese(n,e),n!==null){n.flags&=32767,go=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Bo=6,go=null;return}}else if(n=Qae(n,e,Fa),n!==null){go=n;return}if(e=e.sibling,e!==null){go=e;return}go=e=t}while(e!==null);Bo===0&&(Bo=5)}function N1(t,e,n){var r=ir,o=Ra.transition;try{Ra.transition=null,ir=1,use(t,e,n,r)}finally{Ra.transition=o,ir=r}return null}function use(t,e,n,r){do lF();while(Vc!==null);if(Hn&6)throw Error(Je(327));n=t.finishedWork;var o=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(Je(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(Vie(t,i),t===Uo&&(go=Uo=null,Xo=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||av||(av=!0,eP(m2,function(){return lF(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Ra.transition,Ra.transition=null;var s=ir;ir=1;var u=Hn;Hn|=4,s6.current=null,nse(t,n),zM(n,t),Sae(pw),b2=!!gw,pw=gw=null,t.current=n,rse(n),Iie(),Hn=u,ir=s,Ra.transition=i}else t.current=n;if(av&&(av=!1,Vc=t,sv=o),i=t.pendingLanes,i===0&&(Uc=null),Mie(n.stateNode),Wi(t,to()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)o=e[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(iv)throw iv=!1,t=c6,c6=null,t;return sv&1&&t.tag!==0&&lF(),i=t.pendingLanes,i&1?t===d6?Mg++:(Mg=0,d6=t):Mg=0,Pc(),null}function lF(){if(Vc!==null){var t=MR(sv),e=Ra.transition,n=ir;try{if(Ra.transition=null,ir=16>t?16:t,Vc===null)var r=!1;else{if(t=Vc,Vc=null,sv=0,Hn&6)throw Error(Je(331));var o=Hn;for(Hn|=4,kt=t.current;kt!==null;){var i=kt,s=i.child;if(kt.flags&16){var u=i.deletions;if(u!==null){for(var l=0;l<u.length;l++){var c=u[l];for(kt=c;kt!==null;){var d=kt;switch(d.tag){case 0:case 11:case 15:Ig(8,d,i)}var F=d.child;if(F!==null)F.return=d,kt=F;else for(;kt!==null;){d=kt;var h=d.sibling,m=d.return;if(OM(d),d===c){kt=null;break}if(h!==null){h.return=m,kt=h;break}kt=m}}}var D=i.alternate;if(D!==null){var g=D.child;if(g!==null){D.child=null;do{var p=g.sibling;g.sibling=null,g=p}while(g!==null)}}kt=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,kt=s;else e:for(;kt!==null;){if(i=kt,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ig(9,i,i.return)}var _=i.sibling;if(_!==null){_.return=i.return,kt=_;break e}kt=i.return}}var v=t.current;for(kt=v;kt!==null;){s=kt;var E=s.child;if(s.subtreeFlags&2064&&E!==null)E.return=s,kt=E;else e:for(s=v;kt!==null;){if(u=kt,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:nv(9,u)}}catch(k){Jr(u,u.return,k)}if(u===s){kt=null;break e}var b=u.sibling;if(b!==null){b.return=u.return,kt=b;break e}kt=u.return}}if(Hn=o,Pc(),tu&&typeof tu.onPostCommitFiberRoot=="function")try{tu.onPostCommitFiberRoot(D2,t)}catch{}r=!0}return r}finally{ir=n,Ra.transition=e}}return!1}function JM(t,e,n){e=iF(n,e),e=mM(t,e,1),t=Nc(t,e,1),e=ki(),t!==null&&(ag(t,1,e),Wi(t,e))}function Jr(t,e,n){if(t.tag===3)JM(t,t,n);else for(;e!==null;){if(e.tag===3){JM(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Uc===null||!Uc.has(r))){t=iF(n,t),t=DM(e,t,1),e=Nc(e,t,1),t=ki(),e!==null&&(ag(e,1,t),Wi(e,t));break}}e=e.return}}function lse(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=ki(),t.pingedLanes|=t.suspendedLanes&n,Uo===t&&(Xo&n)===n&&(Bo===4||Bo===3&&(Xo&130023424)===Xo&&500>to()-l6?L1(t,0):u6|=n),Wi(t,e)}function XM(t,e){e===0&&(t.mode&1?(e=p2,p2<<=1,!(p2&130023424)&&(p2=4194304)):e=1);var n=ki();t=_l(t,e),t!==null&&(ag(t,e,n),Wi(t,n))}function cse(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),XM(t,n)}function dse(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(Je(314))}r!==null&&r.delete(e),XM(t,n)}var QM;QM=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Vi.current)Hi=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Hi=!1,Xae(t,e,n);Hi=!!(t.flags&131072)}else Hi=!1,Or&&e.flags&1048576&&BO(e,N2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;ev(t,e),t=e.pendingProps;var o=J0(e,di.current);nF(e,n),o=qw(null,e,r,t,o,n);var i=Hw();return e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,qi(r)?(i=!0,M2(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Rw(e),o.updater=$2,e.stateNode=o,o._reactInternals=e,Mw(e,r,t,n),e=Xw(null,e,r,!0,i,n)):(e.tag=0,Or&&i&&yw(e),wi(null,e,o,n),e=e.child),e;case 16:r=e.elementType;e:{switch(ev(t,e),t=e.pendingProps,o=r._init,r=o(r._payload),e.type=r,o=e.tag=Fse(r),t=bs(r,t),o){case 0:e=Jw(null,e,r,t,n);break e;case 1:e=yM(null,e,r,t,n);break e;case 11:e=_M(null,e,r,t,n);break e;case 14:e=vM(null,e,r,bs(r.type,t),n);break e}throw Error(Je(306,r,""))}return e;case 0:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:bs(r,o),Jw(t,e,r,o,n);case 1:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:bs(r,o),yM(t,e,r,o,n);case 3:e:{if(xM(e),t===null)throw Error(Je(387));r=e.pendingProps,i=e.memoizedState,o=i.element,MO(t,e),H2(e,r,null,n);var s=e.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){o=iF(Error(Je(423)),e),e=wM(t,e,r,n,o);break e}else if(r!==o){o=iF(Error(Je(424)),e),e=wM(t,e,r,n,o);break e}else for(ha=Rc(e.stateNode.containerInfo.firstChild),da=e,Or=!0,vs=null,n=$O(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(eF(),r===o){e=bl(t,e,n);break e}wi(t,e,r,n)}e=e.child}return e;case 5:return WO(e),t===null&&kw(e),r=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,s=o.children,fw(r,o)?s=null:i!==null&&fw(r,i)&&(e.flags|=32),EM(t,e),wi(t,e,s,n),e.child;case 6:return t===null&&kw(e),null;case 13:return kM(t,e,n);case 4:return Pw(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=rF(e,null,r,n):wi(t,e,r,n),e.child;case 11:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:bs(r,o),_M(t,e,r,o,n);case 7:return wi(t,e,e.pendingProps,n),e.child;case 8:return wi(t,e,e.pendingProps.children,n),e.child;case 12:return wi(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,o=e.pendingProps,i=e.memoizedProps,s=o.value,Er(U2,r._currentValue),r._currentValue=s,i!==null)if(_s(i.value,s)){if(i.children===o.children&&!Vi.current){e=bl(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){s=i.child;for(var l=u.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=vl(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Tw(i.return,n,e),u.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===e.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Je(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Tw(s,n,e),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}wi(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,r=e.pendingProps.children,nF(e,n),o=Ta(o),r=r(o),e.flags|=1,wi(t,e,r,n),e.child;case 14:return r=e.type,o=bs(r,e.pendingProps),o=bs(r.type,o),vM(t,e,r,o,n);case 15:return bM(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:bs(r,o),ev(t,e),e.tag=1,qi(r)?(t=!0,M2(e)):t=!1,nF(e,n),UO(e,r,o),Mw(e,r,o,n),Xw(null,e,r,!0,t,n);case 19:return jM(t,e,n);case 22:return CM(t,e,n)}throw Error(Je(156,e.tag))};function eP(t,e){return AR(t,e)}function hse(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oa(t,e,n,r){return new hse(t,e,n,r)}function p6(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Fse(t){if(typeof t=="function")return p6(t)?1:0;if(t!=null){if(t=t.$$typeof,t===yx)return 11;if(t===kx)return 14}return 2}function $c(t,e){var n=t.alternate;return n===null?(n=Oa(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function dv(t,e,n,r,o,i){var s=2;if(r=t,typeof t=="function")p6(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case L0:return z1(n.children,o,i,e);case Cx:s=8,o|=8;break;case Ex:return t=Oa(12,n,e,o|2),t.elementType=Ex,t.lanes=i,t;case xx:return t=Oa(13,n,e,o),t.elementType=xx,t.lanes=i,t;case wx:return t=Oa(19,n,e,o),t.elementType=wx,t.lanes=i,t;case sR:return hv(n,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case iR:s=10;break e;case aR:s=9;break e;case yx:s=11;break e;case kx:s=14;break e;case wc:s=16,r=null;break e}throw Error(Je(130,t==null?t:typeof t,""))}return e=Oa(s,n,e,o),e.elementType=t,e.type=r,e.lanes=i,e}function z1(t,e,n,r){return t=Oa(7,t,r,e),t.lanes=n,t}function hv(t,e,n,r){return t=Oa(22,t,r,e),t.elementType=sR,t.lanes=n,t.stateNode={isHidden:!1},t}function f6(t,e,n){return t=Oa(6,t,null,e),t.lanes=n,t}function _6(t,e,n){return e=Oa(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function mse(t,e,n,r,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kx(0),this.expirationTimes=Kx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kx(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function v6(t,e,n,r,o,i,s,u,l){return t=new mse(t,e,n,u,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Oa(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rw(i),t}function Dse(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P0,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function tP(t){if(!t)return Mc;t=t._reactInternals;e:{if(S1(t)!==t||t.tag!==1)throw Error(Je(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(qi(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(Je(171))}if(t.tag===1){var n=t.type;if(qi(n))return kO(t,n,e)}return e}function nP(t,e,n,r,o,i,s,u,l){return t=v6(n,r,!0,t,o,i,s,u,l),t.context=tP(null),n=t.current,r=ki(),o=qc(n),i=vl(r,o),i.callback=e??null,Nc(n,i,o),t.current.lanes=o,ag(t,o,r),Wi(t,r),t}function Fv(t,e,n,r){var o=e.current,i=ki(),s=qc(o);return n=tP(n),e.context===null?e.context=n:e.pendingContext=n,e=vl(i,s),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Nc(o,e,s),t!==null&&(ys(t,o,s,i),q2(t,o,s)),s}function mv(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function rP(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function b6(t,e){rP(t,e),(t=t.alternate)&&rP(t,e)}var oP=typeof reportError=="function"?reportError:function(t){console.error(t)};function C6(t){this._internalRoot=t}Dv.prototype.render=C6.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Je(409));Fv(t,e,null,null)},Dv.prototype.unmount=C6.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;P1(function(){Fv(null,t,null,null)}),e[Dl]=null}};function Dv(t){this._internalRoot=t}Dv.prototype.unstable_scheduleHydration=function(t){if(t){var e=NR();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ac.length&&e!==0&&e<Ac[n].priority;n++);Ac.splice(n,0,t),n===0&&VR(t)}};function E6(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function gv(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function iP(){}function gse(t,e,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var c=mv(s);i.call(c)}}var s=nP(e,r,t,0,null,!1,!1,"",iP);return t._reactRootContainer=s,t[Dl]=s.current,vg(t.nodeType===8?t.parentNode:t),P1(),s}for(;o=t.lastChild;)t.removeChild(o);if(typeof r=="function"){var u=r;r=function(){var c=mv(l);u.call(c)}}var l=v6(t,0,!1,null,null,!1,!1,"",iP);return t._reactRootContainer=l,t[Dl]=l.current,vg(t.nodeType===8?t.parentNode:t),P1(function(){Fv(e,l,n,r)}),l}function pv(t,e,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var u=o;o=function(){var l=mv(s);u.call(l)}}Fv(e,s,t,o)}else s=gse(n,e,t,o,r);return mv(s)}PR=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=ig(e.pendingLanes);n!==0&&(Gx(e,n|1),Wi(e,to()),!(Hn&6)&&(uF=to()+500,Pc()))}break;case 13:P1(function(){var r=_l(t,1);if(r!==null){var o=ki();ys(r,t,1,o)}}),b6(t,1)}},Yx=function(t){if(t.tag===13){var e=_l(t,134217728);if(e!==null){var n=ki();ys(e,t,134217728,n)}b6(t,134217728)}},LR=function(t){if(t.tag===13){var e=qc(t),n=_l(t,e);if(n!==null){var r=ki();ys(n,t,e,r)}b6(t,e)}},NR=function(){return ir},zR=function(t,e){var n=ir;try{return ir=t,e()}finally{ir=n}},Ux=function(t,e,n){switch(e){case"input":if(Ix(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var o=R2(r);if(!o)throw Error(Je(90));cR(r),Ix(r,o)}}}break;case"textarea":DR(t,n);break;case"select":e=n.value,e!=null&&N0(t,!!n.multiple,e,!1)}},yR=m6,xR=P1;var pse={usingClientEntryPoint:!1,Events:[Eg,Y0,R2,CR,ER,m6]},Pg={findFiberByHostInstance:j1,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},fse={bundleType:Pg.bundleType,version:Pg.version,rendererPackageName:Pg.rendererPackageName,rendererConfig:Pg.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ml.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=jR(t),t===null?null:t.stateNode},findFiberByHostInstance:Pg.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fv.isDisabled&&fv.supportsFiber)try{D2=fv.inject(fse),tu=fv}catch{}}Ui.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pse,Ui.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E6(e))throw Error(Je(200));return Dse(t,e,null,n)},Ui.createRoot=function(t,e){if(!E6(t))throw Error(Je(299));var n=!1,r="",o=oP;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=v6(t,1,!1,null,null,n,!1,r,o),t[Dl]=e.current,vg(t.nodeType===8?t.parentNode:t),new C6(e)},Ui.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Je(188)):(t=Object.keys(t).join(","),Error(Je(268,t)));return t=jR(e),t=t===null?null:t.stateNode,t},Ui.flushSync=function(t){return P1(t)},Ui.hydrate=function(t,e,n){if(!gv(e))throw Error(Je(200));return pv(null,t,e,!0,n)},Ui.hydrateRoot=function(t,e,n){if(!E6(t))throw Error(Je(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=oP;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),e=nP(e,null,t,1,n??null,o,!1,i,s),t[Dl]=e.current,vg(t),r)for(t=0;t<r.length;t++)n=r[t],o=n._getVersion,o=o(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,o]:e.mutableSourceEagerHydrationData.push(n,o);return new Dv(e)},Ui.render=function(t,e,n){if(!gv(e))throw Error(Je(200));return pv(null,t,e,!1,n)},Ui.unmountComponentAtNode=function(t){if(!gv(t))throw Error(Je(40));return t._reactRootContainer?(P1(function(){pv(null,null,t,!1,function(){t._reactRootContainer=null,t[Dl]=null})}),!0):!1},Ui.unstable_batchedUpdates=m6,Ui.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!gv(n))throw Error(Je(200));if(t==null||t._reactInternals===void 0)throw Error(Je(38));return pv(t,e,n,!1,r)},Ui.version="18.2.0-next-9e3b772b8-20220608";function aP(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(aP)}catch(t){console.error(t)}}aP(),Dx.exports=Ui;var Wc=Dx.exports;const sP=Rr(Wc),_se=Qn({__proto__:null,default:sP},[Wc]);var uP,lP=Wc;uP=lP.createRoot,lP.hydrateRoot;function Ma(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function cF(t){return!!t&&!!t[er]}function El(t){var e;return!!t&&(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)===jse}(t)||Array.isArray(t)||!!t[fP]||!!(!((e=t.constructor)===null||e===void 0)&&e[fP])||x6(t)||w6(t))}function dF(t,e,n){n===void 0&&(n=!1),hF(t)===0?(n?Object.keys:M6)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function hF(t){var e=t[er];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:x6(t)?2:w6(t)?3:0}function y6(t,e){return hF(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function vse(t,e){return hF(t)===2?t.get(e):t[e]}function cP(t,e,n){var r=hF(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function bse(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function x6(t){return kse&&t instanceof Map}function w6(t){return Sse&&t instanceof Set}function Vo(t){return t.o||t.t}function k6(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Bse(t);delete e[er];for(var n=M6(e),r=0;r<n.length;r++){var o=n[r],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function S6(t,e){return e===void 0&&(e=!1),j6(t)||cF(t)||!El(t)||(hF(t)>1&&(t.set=t.add=t.clear=t.delete=Cse),Object.freeze(t),e&&dF(t,function(n,r){return S6(r,!0)},!0)),t}function Cse(){Ma(2)}function j6(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function au(t){var e=P6[t];return e||Ma(18,t),e}function Ese(t,e){P6[t]||(P6[t]=e)}function _v(){return Ng}function B6(t,e){e&&(au("Patches"),t.u=[],t.s=[],t.v=e)}function vv(t){A6(t),t.p.forEach(yse),t.p=null}function A6(t){t===Ng&&(Ng=t.l)}function dP(t){return Ng={p:[],l:Ng,h:t,m:!0,_:0}}function yse(t){var e=t[er];e.i===0||e.i===1?e.j():e.O=!0}function T6(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||au("ES5").S(e,t,r),r?(n[er].P&&(vv(e),Ma(4)),El(t)&&(t=bv(e,t),e.l||Cv(e,t)),e.u&&au("Patches").M(n[er].t,t,e.u,e.s)):t=bv(e,n,[]),vv(e),e.u&&e.v(e.u,e.s),t!==pP?t:void 0}function bv(t,e,n){if(j6(e))return e;var r=e[er];if(!r)return dF(e,function(i,s){return hP(t,r,e,i,s,n)},!0),e;if(r.A!==t)return e;if(!r.P)return Cv(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=k6(r.k):r.o;dF(r.i===3?new Set(o):o,function(i,s){return hP(t,r,o,i,s,n)}),Cv(t,o,!1),n&&t.u&&au("Patches").R(r,n,t.u,t.s)}return r.o}function hP(t,e,n,r,o,i){if(cF(o)){var s=bv(t,o,i&&e&&e.i!==3&&!y6(e.D,r)?i.concat(r):void 0);if(cP(n,r,s),!cF(s))return;t.m=!1}if(El(o)&&!j6(o)){if(!t.h.F&&t._<1)return;bv(t,o),e&&e.A.l||Cv(t,o)}}function Cv(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&S6(e,n)}function I6(t,e){var n=t[er];return(n?Vo(n):t)[e]}function FP(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function yl(t){t.P||(t.P=!0,t.l&&yl(t.l))}function R6(t){t.o||(t.o=k6(t.t))}function Lg(t,e,n){var r=x6(e)?au("MapSet").N(e,n):w6(e)?au("MapSet").T(e,n):t.g?function(o,i){var s=Array.isArray(o),u={i:s?1:0,A:i?i.A:_v(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=u,c=L6;s&&(l=[u],c=zg);var d=Proxy.revocable(l,c),F=d.revoke,h=d.proxy;return u.k=h,u.j=F,h}(e,n):au("ES5").J(e,n);return(n?n.A:_v()).p.push(r),r}function xse(t){return cF(t)||Ma(22,t),function e(n){if(!El(n))return n;var r,o=n[er],i=hF(n);if(o){if(!o.P&&(o.i<4||!au("ES5").K(o)))return o.t;o.I=!0,r=mP(n,i),o.I=!1}else r=mP(n,i);return dF(r,function(s,u){o&&vse(o.t,s)===u||cP(r,s,e(u))}),i===3?new Set(r):r}(t)}function mP(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return k6(t)}function wse(){function t(u,l){function c(){this.constructor=u}o(u,l),u.prototype=(c.prototype=l.prototype,new c)}function e(u){u.o||(u.D=new Map,u.o=new Map(u.t))}function n(u){u.o||(u.o=new Set,u.t.forEach(function(l){if(El(l)){var c=Lg(u.A.h,l,u);u.p.set(l,c),u.o.add(c)}else u.o.add(l)}))}function r(u){u.O&&Ma(3,JSON.stringify(Vo(u)))}var o=function(u,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])})(u,l)},i=function(){function u(c,d){return this[er]={i:2,l:d,A:d?d.A:_v(),P:!1,I:!1,o:void 0,D:void 0,t:c,k:this,C:!1,O:!1},this}t(u,Map);var l=u.prototype;return Object.defineProperty(l,"size",{get:function(){return Vo(this[er]).size}}),l.has=function(c){return Vo(this[er]).has(c)},l.set=function(c,d){var F=this[er];return r(F),Vo(F).has(c)&&Vo(F).get(c)===d||(e(F),yl(F),F.D.set(c,!0),F.o.set(c,d),F.D.set(c,!0)),this},l.delete=function(c){if(!this.has(c))return!1;var d=this[er];return r(d),e(d),yl(d),d.t.has(c)?d.D.set(c,!1):d.D.delete(c),d.o.delete(c),!0},l.clear=function(){var c=this[er];r(c),Vo(c).size&&(e(c),yl(c),c.D=new Map,dF(c.t,function(d){c.D.set(d,!1)}),c.o.clear())},l.forEach=function(c,d){var F=this;Vo(this[er]).forEach(function(h,m){c.call(d,F.get(m),m,F)})},l.get=function(c){var d=this[er];r(d);var F=Vo(d).get(c);if(d.I||!El(F)||F!==d.t.get(c))return F;var h=Lg(d.A.h,F,d);return e(d),d.o.set(c,h),h},l.keys=function(){return Vo(this[er]).keys()},l.values=function(){var c,d=this,F=this.keys();return(c={})[Ev]=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={})[Ev]=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[Ev]=function(){return this.entries()},u}(),s=function(){function u(c,d){return this[er]={i:3,l:d,A:d?d.A:_v(),P:!1,I:!1,o:void 0,t:c,k:this,p:new Map,O:!1,C:!1},this}t(u,Set);var l=u.prototype;return Object.defineProperty(l,"size",{get:function(){return Vo(this[er]).size}}),l.has=function(c){var d=this[er];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[er];return r(d),this.has(c)||(n(d),yl(d),d.o.add(c)),this},l.delete=function(c){if(!this.has(c))return!1;var d=this[er];return r(d),n(d),yl(d),d.o.delete(c)||!!d.p.has(c)&&d.o.delete(d.p.get(c))},l.clear=function(){var c=this[er];r(c),Vo(c).size&&(n(c),yl(c),c.o.clear())},l.values=function(){var c=this[er];return r(c),n(c),c.o.values()},l.entries=function(){var c=this[er];return r(c),n(c),c.o.entries()},l.keys=function(){return this.values()},l[Ev]=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()},u}();Ese("MapSet",{N:function(u,l){return new i(u,l)},T:function(u,l){return new s(u,l)}})}var DP,Ng,O6=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",kse=typeof Map<"u",Sse=typeof Set<"u",gP=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",pP=O6?Symbol.for("immer-nothing"):((DP={})["immer-nothing"]=!0,DP),fP=O6?Symbol.for("immer-draftable"):"__$immer_draftable",er=O6?Symbol.for("immer-state"):"__$immer_state",Ev=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",jse=""+Object.prototype.constructor,M6=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Bse=Object.getOwnPropertyDescriptors||function(t){var e={};return M6(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},P6={},L6={get:function(t,e){if(e===er)return t;var n=Vo(t);if(!y6(n,e))return function(o,i,s){var u,l=FP(i,s);return l?"value"in l?l.value:(u=l.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!El(r)?r:r===I6(t.t,e)?(R6(t),t.o[e]=Lg(t.A.h,r,t)):r},has:function(t,e){return e in Vo(t)},ownKeys:function(t){return Reflect.ownKeys(Vo(t))},set:function(t,e,n){var r=FP(Vo(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=I6(Vo(t),e),i=o==null?void 0:o[er];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(bse(n,o)&&(n!==void 0||y6(t.t,e)))return!0;R6(t),yl(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return I6(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,R6(t),yl(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Vo(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Ma(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ma(12)}},zg={};dF(L6,function(t,e){zg[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),zg.deleteProperty=function(t,e){return zg.set.call(this,t,e,void 0)},zg.set=function(t,e,n){return L6.set.call(this,t[0],e,n,t[0])};var Ase=function(){function t(n){var r=this;this.g=gP,this.F=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var l=r;return function(g){var p=this;g===void 0&&(g=u);for(var _=arguments.length,v=Array(_>1?_-1:0),E=1;E<_;E++)v[E-1]=arguments[E];return l.produce(g,function(b){var k;return(k=i).call.apply(k,[p,b].concat(v))})}}var c;if(typeof i!="function"&&Ma(6),s!==void 0&&typeof s!="function"&&Ma(7),El(o)){var d=dP(r),F=Lg(r,o,void 0),h=!0;try{c=i(F),h=!1}finally{h?vv(d):A6(d)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(g){return B6(d,s),T6(g,d)},function(g){throw vv(d),g}):(B6(d,s),T6(c,d))}if(!o||typeof o!="object"){if((c=i(o))===void 0&&(c=o),c===pP&&(c=void 0),r.F&&S6(c,!0),s){var m=[],D=[];au("Patches").M(o,c,m,D),s(m,D)}return c}Ma(21,o)},this.produceWithPatches=function(o,i){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 s,u,l=r.produce(o,i,function(c,d){s=c,u=d});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,s,u]}):[l,s,u]},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 e=t.prototype;return e.createDraft=function(n){El(n)||Ma(8),cF(n)&&(n=xse(n));var r=dP(this),o=Lg(this,n,void 0);return o[er].C=!0,A6(r),o},e.finishDraft=function(n,r){var o=n&&n[er],i=o.A;return B6(i,r),T6(void 0,i)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!gP&&Ma(20),this.g=n},e.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=au("Patches").$;return cF(n)?s(n,r):this.produce(n,function(u){return s(u,r)})},t}(),ma=new Ase,po=ma.produce;ma.produceWithPatches.bind(ma),ma.setAutoFreeze.bind(ma),ma.setUseProxies.bind(ma),ma.applyPatches.bind(ma),ma.createDraft.bind(ma),ma.finishDraft.bind(ma);var _P={exports:{}};(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var u=n.apply(null,i);u&&r.push(u)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)e.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(_P);var Tse=_P.exports;const Ve=Rr(Tse);var ct={Background:{Container:"var(--oq6d070)",ContainerHover:"var(--oq6d071)",ContainerActive:"var(--oq6d072)",ContainerLine:"var(--oq6d073)",OnContainer:"var(--oq6d074)"},Surface:{Container:"var(--oq6d075)",ContainerHover:"var(--oq6d076)",ContainerActive:"var(--oq6d077)",ContainerLine:"var(--oq6d078)",OnContainer:"var(--oq6d079)"},SurfaceVariant:{Container:"var(--oq6d07a)",ContainerHover:"var(--oq6d07b)",ContainerActive:"var(--oq6d07c)",ContainerLine:"var(--oq6d07d)",OnContainer:"var(--oq6d07e)"},Primary:{Main:"var(--oq6d07f)",MainHover:"var(--oq6d07g)",MainActive:"var(--oq6d07h)",MainLine:"var(--oq6d07i)",OnMain:"var(--oq6d07j)",Container:"var(--oq6d07k)",ContainerHover:"var(--oq6d07l)",ContainerActive:"var(--oq6d07m)",ContainerLine:"var(--oq6d07n)",OnContainer:"var(--oq6d07o)"},Secondary:{Main:"var(--oq6d07p)",MainHover:"var(--oq6d07q)",MainActive:"var(--oq6d07r)",MainLine:"var(--oq6d07s)",OnMain:"var(--oq6d07t)",Container:"var(--oq6d07u)",ContainerHover:"var(--oq6d07v)",ContainerActive:"var(--oq6d07w)",ContainerLine:"var(--oq6d07x)",OnContainer:"var(--oq6d07y)"},Success:{Main:"var(--oq6d07z)",MainHover:"var(--oq6d0710)",MainActive:"var(--oq6d0711)",MainLine:"var(--oq6d0712)",OnMain:"var(--oq6d0713)",Container:"var(--oq6d0714)",ContainerHover:"var(--oq6d0715)",ContainerActive:"var(--oq6d0716)",ContainerLine:"var(--oq6d0717)",OnContainer:"var(--oq6d0718)"},Warning:{Main:"var(--oq6d0719)",MainHover:"var(--oq6d071a)",MainActive:"var(--oq6d071b)",MainLine:"var(--oq6d071c)",OnMain:"var(--oq6d071d)",Container:"var(--oq6d071e)",ContainerHover:"var(--oq6d071f)",ContainerActive:"var(--oq6d071g)",ContainerLine:"var(--oq6d071h)",OnContainer:"var(--oq6d071i)"},Critical:{Main:"var(--oq6d071j)",MainHover:"var(--oq6d071k)",MainActive:"var(--oq6d071l)",MainLine:"var(--oq6d071m)",OnMain:"var(--oq6d071n)",Container:"var(--oq6d071o)",ContainerHover:"var(--oq6d071p)",ContainerActive:"var(--oq6d071q)",ContainerLine:"var(--oq6d071r)",OnContainer:"var(--oq6d071s)"},Other:{FocusRing:"var(--oq6d071t)",Shadow:"var(--oq6d071u)",Overlay:"var(--oq6d071v)"}},Ise="oq6d071w",le={font:{Inter:"var(--_164xfge1)"},fontSize:{D400:"var(--_164xfge2)",H1:"var(--_164xfge3)",H2:"var(--_164xfge4)",H3:"var(--_164xfge5)",H4:"var(--_164xfge6)",H5:"var(--_164xfge7)",H6:"var(--_164xfge8)",T500:"var(--_164xfge9)",T400:"var(--_164xfgea)",T300:"var(--_164xfgeb)",T200:"var(--_164xfgec)",B500:"var(--_164xfged)",B400:"var(--_164xfgee)",B300:"var(--_164xfgef)",L400:"var(--_164xfgeg)",O400:"var(--_164xfgeh)",C400:"var(--_164xfgei)"},lineHeight:{D400:"var(--_164xfgej)",H1:"var(--_164xfgek)",H2:"var(--_164xfgel)",H3:"var(--_164xfgem)",H4:"var(--_164xfgen)",H5:"var(--_164xfgeo)",H6:"var(--_164xfgep)",T500:"var(--_164xfgeq)",T400:"var(--_164xfger)",T300:"var(--_164xfges)",T200:"var(--_164xfget)",B500:"var(--_164xfgeu)",B400:"var(--_164xfgev)",B300:"var(--_164xfgew)",L400:"var(--_164xfgex)",O400:"var(--_164xfgey)",C400:"var(--_164xfgez)"},letterSpacing:{D400:"var(--_164xfge10)",H1:"var(--_164xfge11)",H2:"var(--_164xfge12)",H3:"var(--_164xfge13)",H4:"var(--_164xfge14)",H5:"var(--_164xfge15)",H6:"var(--_164xfge16)",T500:"var(--_164xfge17)",T400:"var(--_164xfge18)",T300:"var(--_164xfge19)",T200:"var(--_164xfge1a)",B500:"var(--_164xfge1b)",B400:"var(--_164xfge1c)",B300:"var(--_164xfge1d)",L400:"var(--_164xfge1e)",O400:"var(--_164xfge1f)",C400:"var(--_164xfge1g)"},fontWeight:{W100:"var(--_164xfge1h)",W200:"var(--_164xfge1i)",W300:"var(--_164xfge1j)",W400:"var(--_164xfge1k)",W500:"var(--_164xfge1l)",W600:"var(--_164xfge1m)",W700:"var(--_164xfge1n)",W800:"var(--_164xfge1o)",W900:"var(--_164xfge1p)"},space:{S0:"var(--_164xfge1q)",S100:"var(--_164xfge1r)",S200:"var(--_164xfge1s)",S300:"var(--_164xfge1t)",S400:"var(--_164xfge1u)",S500:"var(--_164xfge1v)",S600:"var(--_164xfge1w)",S700:"var(--_164xfge1x)"},radii:{R0:"var(--_164xfge1y)",R300:"var(--_164xfge1z)",R400:"var(--_164xfge20)",R500:"var(--_164xfge21)",Round:"var(--_164xfge22)",Pill:"var(--_164xfge23)"},borderWidth:{B0:"var(--_164xfge24)",B300:"var(--_164xfge25)",B400:"var(--_164xfge26)",B500:"var(--_164xfge27)",B600:"var(--_164xfge28)",B700:"var(--_164xfge29)"},zIndex:{Z100:"var(--_164xfge2a)",Z200:"var(--_164xfge2b)",Z300:"var(--_164xfge2c)",Z400:"var(--_164xfge2d)",Max:"var(--_164xfge2e)"},shadow:{E100:"var(--_164xfge2f)",E200:"var(--_164xfge2g)",E300:"var(--_164xfge2h)",E400:"var(--_164xfge2i)"},size:{XInherit:"var(--_164xfge2j)",X50:"var(--_164xfge2k)",X100:"var(--_164xfge2l)",X200:"var(--_164xfge2m)",X300:"var(--_164xfge2n)",X400:"var(--_164xfge2o)",X500:"var(--_164xfge2p)",X600:"var(--_164xfge2q)",DialogWidth:"var(--_164xfge2r)",ModalHeight300:"var(--_164xfge2s)",ModalHeight400:"var(--_164xfge2t)",ModalHeight500:"var(--_164xfge2u)",ModalWidth300:"var(--_164xfge2v)",ModalWidth400:"var(--_164xfge2w)",ModalWidth500:"var(--_164xfge2x)",ModalDrawerWidth:"var(--_164xfge2y)"},transition:{},opacity:{P500:"var(--_164xfge2z)",P400:"var(--_164xfge30)",P300:"var(--_164xfge31)",Placeholder:"var(--_164xfge32)",Disabled:"var(--_164xfge33)"}},N6="_164xfge0",z6="dw378b0";const Rse=t=>parseFloat((t/16).toFixed(4)),Dt=t=>`${Rse(t)}rem`,vP=(t,e,n)=>t.x+n+e.width<=document.documentElement.clientWidth,bP=(t,e,n)=>{const r=t.x+t.width/2-e.width/2;return r<0?!1:r+n+e.width<=document.documentElement.clientWidth},CP=(t,e,n)=>t.x+t.width-(e.width+n)>=0,EP=(t,e,n)=>t.y+n+e.height<=document.documentElement.clientHeight,yP=(t,e,n)=>{const r=t.y+t.height/2-e.height/2;return r<0?!1:r+n+e.height<=document.documentElement.clientHeight},xP=(t,e,n)=>t.y+t.height-(e.height+n)>=0,wP=(t,e)=>({left:`${t.x+e}px`}),kP=(t,e,n)=>({left:`${t.x+t.width/2-e.width/2+n}px`}),SP=(t,e)=>{const n=t.x+t.width;return{right:`${document.documentElement.clientWidth-n+e}px`}},Ose=(t,e,n)=>{if(bP(t,e,n))return kP(t,e,n);if(vP(t,e,n))return wP(t,n);if(CP(t,e,n))return SP(t,n)},Ug=(t,e,n,r)=>t==="Start"&&vP(e,n,r)?wP(e,r):t==="Center"&&bP(e,n,r)?kP(e,n,r):t==="End"&&CP(e,n,r)?SP(e,r):Ose(e,n,r),jP=(t,e)=>({top:`${t.y+e}px`}),BP=(t,e,n)=>({top:`${t.y+t.height/2-e.height/2+n}px`}),AP=(t,e)=>{const n=t.y+t.height;return{bottom:`${document.documentElement.clientHeight-n+e}px`}},Mse=(t,e,n)=>{if(yP(t,e,n))return BP(t,e,n);if(EP(t,e,n))return jP(t,n);if(xP(t,e,n))return AP(t,n)},yv=(t,e,n,r)=>t==="Start"&&EP(e,n,r)?jP(e,r):t==="Center"&&yP(e,n,r)?BP(e,n,r):t==="End"&&xP(e,n,r)?AP(e,r):Mse(e,n,r),TP=(t,e,n)=>e.height+n<=t.y,IP=(t,e,n)=>t.x+t.width+n+e.width<=document.documentElement.clientWidth,RP=(t,e,n)=>t.y+t.height+n+e.height<=document.documentElement.clientHeight,OP=(t,e,n)=>e.width+n<=t.x,MP=(t,e)=>({bottom:`${document.documentElement.clientHeight-t.y+e}px`}),PP=(t,e)=>({left:`${t.x+t.width+e}px`}),LP=(t,e)=>({top:`${t.y+t.height+e}px`}),NP=(t,e)=>({right:`${document.documentElement.clientWidth-t.x+e}px`}),Pse=(t,e,n,r,o)=>IP(e,n,r)?{...PP(e,r),...yv(t,e,n,o)}:RP(e,n,r)?{...LP(e,r),...Ug(t,e,n,o)}:OP(e,n,r)?{...NP(e,r),...yv(t,e,n,o)}:TP(e,n,r)?{...MP(e,r),...Ug(t,e,n,o)}:{...Ug(t,e,n,o)},zP=(t,e,n,r,o,i)=>n==="Top"&&TP(t,e,o)?{...MP(t,o),...Ug(r,t,e,i)}:n==="Right"&&IP(t,e,o)?{...PP(t,o),...yv(r,t,e,i)}:n==="Bottom"&&RP(t,e,o)?{...LP(t,o),...Ug(r,t,e,i)}:n==="Left"&&OP(t,e,o)?{...NP(t,o),...yv(r,t,e,i)}:Pse(r,t,e,o,i),Vg=(t,e,n)=>(n-t)/(e-t)*100,Ie=t=>f.forwardRef(t);function Lse(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function UP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function VP(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?UP(Object(n),!0).forEach(function(r){Lse(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Nse=(t,e,n)=>{for(var r of Object.keys(t)){var o;if(t[r]!==((o=e[r])!==null&&o!==void 0?o:n[r]))return!1}return!0},qr=t=>e=>{var n=t.defaultClassName,r=VP(VP({},t.defaultVariants),e);for(var o in r){var i,s=(i=r[o])!==null&&i!==void 0?i:t.defaultVariants[o];if(s!=null){var u=s;typeof u=="boolean"&&(u=u===!0?"true":"false");var l=t.variantClassNames[o][u];l&&(n+=" "+l)}}for(var[c,d]of t.compoundVariants)Nse(c,r,t.defaultVariants)&&(n+=" "+d);return n},zse=qr({defaultClassName:"_1684mq51 _1mqalmd1 _1mqalmd0 _1bugis90 _1bugis91",variantClassNames:{size:{200:"_1684mq52",300:"_1684mq53",400:"_1684mq54",500:"_1684mq55"},radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"}},defaultVariants:{size:"400",radii:"400"},compoundVariants:[]}),Use="_1684mq5d _1mqalmd1 _1mqalmd0",Vse="_1684mq5c _1mqalmd1 _1mqalmd0";const Rt=Ie(({as:t="span",size:e,radii:n,className:r,...o},i)=>a.jsx(t,{className:Ve(zse({size:e,radii:n}),r),...o,ref:i})),xl=Ie(({as:t="img",className:e,...n},r)=>a.jsx(t,{className:Ve(Vse,e),...n,ref:r})),U1=Ie(({as:t="span",className:e,...n},r)=>a.jsx(t,{className:Ve(Use,e),...n,ref:r}));var qse=qr({defaultClassName:"_13qe89m6 _1mqalmd1 _1mqalmd0 _1bugis90 _1bugis91",variantClassNames:{size:{200:"_13qe89m7",300:"_13qe89m8",400:"_13qe89m9",500:"_13qe89ma"},variant:{Primary:"_13qe89mb",Secondary:"_13qe89mc",Success:"_13qe89md",Warning:"_13qe89me",Critical:"_13qe89mf"},fill:{Solid:"_13qe89mg",Soft:"_13qe89mh",None:"_13qe89mi"},outlined:{true:"_13qe89mj"},radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"}},defaultVariants:{size:"400",variant:"Primary",fill:"Soft",radii:"300"},compoundVariants:[]});const Bt=Ie(({as:t="span",className:e,size:n,variant:r,fill:o,radii:i,outlined:s,...u},l)=>a.jsx(t,{className:Ve(qse({size:n,variant:r,fill:o,radii:i,outlined:s}),e),...u,ref:l}));var Hse=qr({defaultClassName:"prxiv40 _1mqalmd1 _1mqalmd0",variantClassNames:{display:{Flex:"prxiv41",InlineFlex:"prxiv42"},direction:{Inherit:"prxiv43",Row:"prxiv44",RowReverse:"prxiv45",Column:"prxiv46",ColumnReverse:"prxiv47"},wrap:{Inherit:"prxiv48",NoWrap:"prxiv49",Wrap:"prxiv4a",WrapReverse:"prxiv4b"},justifyContent:{Inherit:"prxiv4c",Start:"prxiv4d",End:"prxiv4e",Stretch:"prxiv4f",Center:"prxiv4g",Baseline:"prxiv4h",SpaceBetween:"prxiv4i",SpaceAround:"prxiv4j",SpaceEvenly:"prxiv4k"},justifyItems:{Inherit:"prxiv4l",Start:"prxiv4m",End:"prxiv4n",Stretch:"prxiv4o",Center:"prxiv4p",Baseline:"prxiv4q"},justifySelf:{Inherit:"prxiv4r",Start:"prxiv4s",End:"prxiv4t",Stretch:"prxiv4u",Center:"prxiv4v",Baseline:"prxiv4w"},alignContent:{Inherit:"prxiv4x",Start:"prxiv4y",End:"prxiv4z",Stretch:"prxiv410",Center:"prxiv411",Baseline:"prxiv412",SpaceBetween:"prxiv413",SpaceAround:"prxiv414",SpaceEvenly:"prxiv415"},alignItems:{Inherit:"prxiv416",Start:"prxiv417",End:"prxiv418",Stretch:"prxiv419",Center:"prxiv41a",Baseline:"prxiv41b"},alignSelf:{Inherit:"prxiv41c",Start:"prxiv41d",End:"prxiv41e",Stretch:"prxiv41f",Center:"prxiv41g",Baseline:"prxiv41h"},gap:{0:"prxiv41i",100:"prxiv41j",200:"prxiv41k",300:"prxiv41l",400:"prxiv41m",500:"prxiv41n",600:"prxiv41o",700:"prxiv41p",Inherit:"prxiv41q"},grow:{No:"prxiv41r",Yes:"prxiv41s"},shrink:{No:"prxiv41t",Yes:"prxiv41u"},basis:{No:"prxiv41v",Yes:"prxiv41w"}},defaultVariants:{display:"Flex"},compoundVariants:[]});const y=Ie(({as:t="div",className:e,display:n,direction:r,wrap:o,justifyContent:i,justifyItems:s,justifySelf:u,alignContent:l,alignItems:c,alignSelf:d,gap:F,grow:h,shrink:m,basis:D,...g},p)=>a.jsx(t,{className:Ve(Hse({display:n,direction:r,wrap:o,justifyContent:i,justifyItems:s,justifySelf:u,alignContent:l,alignItems:c,alignSelf:d,gap:F,grow:h,shrink:m,basis:D}),e),...g,ref:p}));var $se=qr({defaultClassName:"epr39zd _1mqalmd1 _1mqalmd0 _1bugis90 _1bugis91",variantClassNames:{size:{300:"epr39ze",400:"epr39zf",500:"epr39zg"},variant:{Primary:"epr39zh",Secondary:"epr39zi",Success:"epr39zj",Warning:"epr39zk",Critical:"epr39zl"},fill:{Solid:"epr39zm",Soft:"epr39zn",None:"epr39zo"},outlined:{true:"epr39zp"},radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"}},defaultVariants:{size:"400",variant:"Primary",fill:"Solid",radii:"400"},compoundVariants:[]});const Ee=Ie(({as:t="button",className:e,size:n,variant:r,fill:o,outlined:i,radii:s,before:u,after:l,children:c,...d},F)=>a.jsxs(t,{className:Ve($se({size:n,variant:r,fill:o,outlined:i,radii:s}),e),"data-ui-before":u?!0:void 0,"data-ui-after":l?!0:void 0,...d,ref:F,children:[u,c,l]}));var Wse=qr({defaultClassName:"_19nrl2w0 _1mqalmd1 _1mqalmd0",variantClassNames:{size:{50:"cpipac7",100:"cpipac8",200:"cpipac9",300:"cpipaca",400:"cpipacb",500:"cpipacc",600:"cpipacd",Inherit:"cpipac6"}},defaultVariants:{size:"400"},compoundVariants:[]});const Q=f.forwardRef(({className:t,size:e,filled:n=!1,src:r,...o},i)=>a.jsx("svg",{className:Ve(Wse({size:e}),t),focusable:"false",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,ref:i,children:r(n)})),$={Home:t=>t?a.jsx("path",{d:"M3 10V21H9V18.5C9 16.8431 10.3431 15.5 12 15.5C13.6569 15.5 15 16.8431 15 18.5V21H21V10L12 2L3 10Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 10.6736V19.5H8.5V17.5C8.5 15.567 10.067 14 12 14C13.933 14 15.5 15.567 15.5 17.5V19.5H19.5V10.6736L12 4.00693L4.5 10.6736ZM3 10V21H10V17.5C10 16.3954 10.8954 15.5 12 15.5C13.1046 15.5 14 16.3954 14 17.5V21H21V10L12 2L3 10Z",fill:"currentColor"}),User:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"12",cy:"7",r:"4",fill:"currentColor"}),a.jsx("path",{d:"M4 18C4 15.2386 6.23858 13 9 13H15C17.7614 13 20 15.2386 20 18V21H4V18Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 9.5C13.3807 9.5 14.5 8.38071 14.5 7C14.5 5.61929 13.3807 4.5 12 4.5C10.6193 4.5 9.5 5.61929 9.5 7C9.5 8.38071 10.6193 9.5 12 9.5ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 14.5H9C7.067 14.5 5.5 16.067 5.5 18V19.5H18.5V18C18.5 16.067 16.933 14.5 15 14.5ZM9 13C6.23858 13 4 15.2386 4 18V21H20V18C20 15.2386 17.7614 13 15 13H9Z",fill:"currentColor"})]}),UserPlus:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"14",cy:"7",r:"4",fill:"currentColor"}),a.jsx("path",{d:"M5 3H3V6H0V8H3V11H5V8H8V6H5V3Z",fill:"currentColor"}),a.jsx("path",{d:"M6 18C6 15.2386 8.23858 13 11 13H17C19.7614 13 22 15.2386 22 18V21H6V18Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 9.5C15.3807 9.5 16.5 8.38071 16.5 7C16.5 5.61929 15.3807 4.5 14 4.5C12.6193 4.5 11.5 5.61929 11.5 7C11.5 8.38071 12.6193 9.5 14 9.5ZM14 11C16.2091 11 18 9.20914 18 7C18 4.79086 16.2091 3 14 3C11.7909 3 10 4.79086 10 7C10 9.20914 11.7909 11 14 11Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 14.5H11C9.067 14.5 7.5 16.067 7.5 18V19.5H20.5V18C20.5 16.067 18.933 14.5 17 14.5ZM11 13C8.23858 13 6 15.2386 6 18V21H22V18C22 15.2386 19.7614 13 17 13H11Z",fill:"currentColor"}),a.jsx("path",{d:"M5 3H3V6H0V8H3V11H5V8H8V6H5V3Z",fill:"currentColor"})]}),Mail:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M22 6.76393V4H2V6.76393L12 11.7639L22 6.76393Z",fill:"currentColor"}),a.jsx("path",{d:"M2 9V20H22V9L12 14L2 9Z",fill:"currentColor"})]}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4H22V20H2V4ZM3.5 8.07295L12 12.3229L20.5 8.07295V5.5H3.5V8.07295ZM20.5 9.75L12 14L3.5 9.75V18.5H20.5V9.75Z",fill:"currentColor"}),MailPlus:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M22 6.76393V4H2V6.76393L12 11.7639L22 6.76393Z",fill:"currentColor"}),a.jsx("path",{d:"M2 9V20H14C14 16.6863 16.6863 14 20 14C20.7013 14 21.3744 14.1203 22 14.3414V9L12 14L2 9Z",fill:"currentColor"}),a.jsx("path",{d:"M19 16H21V24H19V16Z",fill:"currentColor"}),a.jsx("path",{d:"M24 19L24 21L16 21L16 19L24 19Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M19 16H21V24H19V16Z",fill:"currentColor"}),a.jsx("path",{d:"M24 19L24 21L16 21L16 19L24 19Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 4H2V20H14V18.5H3.5V9.75L12 14L20.5 9.75V14H22V4ZM12 12.3229L3.5 8.07295V5.5H20.5V8.07295L12 12.3229Z",fill:"currentColor"})]}),Star:t=>t?a.jsx("path",{d:"M12 2L14.9095 8.99537L22.4616 9.60081L16.7077 14.5296L18.4656 21.8992L12 17.95L5.53437 21.8992L7.29228 14.5296L1.53839 9.60081L9.09048 8.99537L12 2Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9095 8.99537L12 2L9.09048 8.99537L1.53839 9.60081L7.29228 14.5296L5.53437 21.8992L12 17.95L18.4656 21.8992L16.7077 14.5296L22.4616 9.60081L14.9095 8.99537ZM18.7469 10.8078L13.8764 10.4174L12 5.90594L10.1236 10.4174L5.25316 10.8078L8.96393 13.9865L7.83023 18.7392L12 16.1923L16.1698 18.7392L15.0361 13.9865L18.7469 10.8078Z",fill:"currentColor"}),PlusCircle:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2ZM11 7H13V11H17V13H13V17H11V13H7V11H11V7Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.32843 3.5 3.5 7.32843 3.5 12C3.5 16.6716 7.32843 20.5 12 20.5C16.6716 20.5 20.5 16.6716 20.5 12C20.5 7.32843 16.6716 3.5 12 3.5ZM2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12Z",fill:"currentColor"}),a.jsx("rect",{x:"11",y:"7",width:"2",height:"10",fill:"currentColor"}),a.jsx("rect",{x:"7",y:"11",width:"10",height:"2",fill:"currentColor"})]}),Explore:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12ZM9.87866 9.87866L7.05023 16.9497L14.1213 14.1213L16.9497 7.05023L9.87866 9.87866ZM13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.32843 3.5 3.5 7.32843 3.5 12C3.5 16.6716 7.32843 20.5 12 20.5C16.6716 20.5 20.5 16.6716 20.5 12C20.5 7.32843 16.6716 3.5 12 3.5ZM2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.05023 16.9497L9.87866 9.87866L16.9497 7.05023L14.1213 14.1213L7.05023 16.9497ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",fill:"currentColor"})]}),Smile:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12ZM8.5 11C9.32843 11 10 10.3284 10 9.5C10 8.67157 9.32843 8 8.5 8C7.67157 8 7 8.67157 7 9.5C7 10.3284 7.67157 11 8.5 11ZM15.5 11C16.3284 11 17 10.3284 17 9.5C17 8.67157 16.3284 8 15.5 8C14.6716 8 14 8.67157 14 9.5C14 10.3284 14.6716 11 15.5 11ZM7 14C7 16.2 9.25 18 12 18C14.75 18 17 16.2 17 14H7Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.32843 3.5 3.5 7.32843 3.5 12C3.5 16.6716 7.32843 20.5 12 20.5C16.6716 20.5 20.5 16.6716 20.5 12C20.5 7.32843 16.6716 3.5 12 3.5ZM2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12Z",fill:"currentColor"}),a.jsx("path",{d:"M8.5 11C9.32843 11 10 10.3284 10 9.5C10 8.67157 9.32843 8 8.5 8C7.67157 8 7 8.67157 7 9.5C7 10.3284 7.67157 11 8.5 11Z",fill:"currentColor"}),a.jsx("path",{d:"M15.5 11C16.3284 11 17 10.3284 17 9.5C17 8.67157 16.3284 8 15.5 8C14.6716 8 14 8.67157 14 9.5C14 10.3284 14.6716 11 15.5 11Z",fill:"currentColor"}),a.jsx("path",{d:"M17 14H7C7 16.2 9.25 18 12 18C14.75 18 17 16.2 17 14Z",fill:"currentColor"})]}),SmilePlus:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2566 2.25849C14.0897 2.80965 14 3.39435 14 4C14 5.53683 14.5778 6.93872 15.528 8.00026C15.5187 8.00009 15.5094 8 15.5 8C14.6716 8 14 8.67157 14 9.5C14 10.3284 14.6716 11 15.5 11C16.3284 11 17 10.3284 17 9.5C17 9.3891 16.988 9.28102 16.9651 9.17698C17.8555 9.70005 18.8927 10 20 10C20.6057 10 21.1903 9.91026 21.7415 9.74336C21.9106 10.4692 22 11.2246 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12C2 6.5 6.5 2 12 2C12.7754 2 13.5308 2.08943 14.2566 2.25849ZM10 9.5C10 10.3284 9.32843 11 8.5 11C7.67157 11 7 10.3284 7 9.5C7 8.67157 7.67157 8 8.5 8C9.32843 8 10 8.67157 10 9.5ZM12 18C9.25 18 7 16.2 7 14H17C17 16.2 14.75 18 12 18Z",fill:"currentColor"}),a.jsx("path",{d:"M19 0H21V8H19V0Z",fill:"currentColor"}),a.jsx("path",{d:"M24 3L24 5L16 5L16 3L24 3Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M14 2.2023C13.3533 2.06968 12.6844 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22C17.5 22 22 17.5 22 12C22 11.3156 21.9303 10.6467 21.7977 10H20.2603C20.4169 10.642 20.5 11.3119 20.5 12C20.5 16.6716 16.6716 20.5 12 20.5C7.32843 20.5 3.5 16.6716 3.5 12C3.5 7.32843 7.32843 3.5 12 3.5C12.6881 3.5 13.358 3.58307 14 3.73967V2.2023Z",fill:"currentColor"}),a.jsx("path",{d:"M8.5 11C9.32843 11 10 10.3284 10 9.5C10 8.67157 9.32843 8 8.5 8C7.67157 8 7 8.67157 7 9.5C7 10.3284 7.67157 11 8.5 11Z",fill:"currentColor"}),a.jsx("path",{d:"M15.5 11C16.3284 11 17 10.3284 17 9.5C17 8.67157 16.3284 8 15.5 8C14.6716 8 14 8.67157 14 9.5C14 10.3284 14.6716 11 15.5 11Z",fill:"currentColor"}),a.jsx("path",{d:"M17 14H7C7 16.2 9.25 18 12 18C14.75 18 17 16.2 17 14Z",fill:"currentColor"}),a.jsx("path",{d:"M19 0H21V8H19V0Z",fill:"currentColor"}),a.jsx("path",{d:"M24 3L24 5L16 5L16 3L24 3Z",fill:"currentColor"})]}),Leaf:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 15V18.9393L2.46967 20.4697L3.53033 21.5303L5.06065 20H9C15.6274 20 21 14.6274 21 8V3H16C9.37258 3 4 8.37258 4 15ZM7.53033 17.5303L16.5303 8.53033L15.4697 7.46967L6.46967 16.4697L7.53033 17.5303Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 18.9393V15C4 8.37258 9.37258 3 16 3H21V8C21 14.6274 15.6274 20 9 20H5.06065L3.53033 21.5303L2.46967 20.4697L4 18.9393ZM5.5 17.4393V15C5.5 9.20101 10.201 4.5 16 4.5H19.5V8C19.5 13.799 14.799 18.5 9 18.5H6.56065L16.5303 8.53033L15.4697 7.46967L5.5 17.4393Z",fill:"currentColor"}),Sticker:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 3H3V21H21V10H14V3ZM15 13C15 14.1046 13.6569 15 12 15C10.3431 15 9 14.1046 9 13H7C7 15.2091 9.23858 17 12 17C14.7614 17 17 15.2091 17 13H15Z",fill:"currentColor"}),a.jsx("path",{d:"M21 8L16 8V3L21 8Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M17 13H15C15 14.1046 13.6569 15 12 15C10.3431 15 9 14.1046 9 13H7C7 15.2091 9.23858 17 12 17C14.7614 17 17 15.2091 17 13Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 3L21 8V21H3V3H16ZM19.5 9H15V4.5H4.5V19.5H19.5V9Z",fill:"currentColor"})]}),Delete:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 2H8V4H3V5.5H5V22H19V5.5H21V4H16V2ZM11 9H9V17H11V9ZM15 9H13V17H15V9Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"9",y:"9",width:"2",height:"8",fill:"currentColor"}),a.jsx("rect",{x:"13",y:"9",width:"2",height:"8",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 2H8V4H3V5.5H5V22H19V5.5H21V4H16V2ZM17.5 5.5V20.5H6.5V5.5H17.5Z",fill:"currentColor"})]}),Phone:t=>t?a.jsx("path",{d:"M2 5L5 2L12 9L9 12L12 15L15 12L22 19L19 22V22C9.61116 22 2 14.3888 2 5V5Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 9L5 2L2 5C2 14.3888 9.61116 22 19 22L22 19L15 12L12 15L9 12L12 9ZM15 14.1213L12 17.1213L6.87868 12L9.87868 9.00001L5 4.12132L3.51177 5.60955C3.82406 13.6852 10.3148 20.176 18.3904 20.4883L19.8787 19L15 14.1213Z",fill:"currentColor"}),Headphone:t=>t?a.jsx("path",{d:"M19.5 12C19.5 7.85786 16.1421 4.5 12 4.5C7.85786 4.5 4.5 7.85786 4.5 12V13H10V21H3V12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12V21H14V13H19.5V12Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12C19.5 7.85786 16.1421 4.5 12 4.5C7.85786 4.5 4.5 7.85786 4.5 12V13H10V21H3V12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12V21H14V13H19.5V12ZM4.5 14.5H8.5V19.5H4.5V14.5ZM19.5 14.5V19.5H15.5V14.5H19.5Z",fill:"currentColor"}),Send:t=>t?a.jsx("path",{d:"M3 22L23 12L3 2V11H11V13H3V22Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12L3 2V22L23 12ZM19.6459 12L4.5 4.42705V19.5729L19.6459 12Z",fill:"currentColor"}),a.jsx("rect",{x:"3",y:"11",width:"8",height:"2",fill:"currentColor"})]}),Bell:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M6 9C6 5.68629 8.68629 3 12 3C15.3137 3 18 5.68629 18 9V16.5H20V18H4V16.5H6V9Z",fill:"currentColor"}),a.jsx("path",{d:"M10 20H14C14 21.1046 13.1046 22 12 22C10.8954 22 10 21.1046 10 20Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 16.5H4V18H20V16.5H18V9C18 5.68629 15.3137 3 12 3C8.68629 3 6 5.68629 6 9V16.5ZM16.5 16.5V9C16.5 6.51472 14.4853 4.5 12 4.5C9.51472 4.5 7.5 6.51472 7.5 9V16.5H16.5Z",fill:"currentColor"}),a.jsx("path",{d:"M10 20H14C14 21.1046 13.1046 22 12 22C10.8954 22 10 21.1046 10 20Z",fill:"currentColor"})]}),BellRing:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 16.571H4V18.071H20V16.571H18V9.07104C18 5.75734 15.3137 3.07104 12 3.07104C8.68629 3.07104 6 5.75734 6 9.07104V16.571Z",fill:"currentColor"}),a.jsx("path",{d:"M10 20.071H14C14 21.1756 13.1046 22.071 12 22.071C10.8954 22.071 10 21.1756 10 20.071Z",fill:"currentColor"}),a.jsx("path",{d:"M5.98959 3.06066C4.4514 4.59886 3.5 6.72386 3.5 9.07107H2C2 6.30964 3.11929 3.80964 4.92893 2L5.98959 3.06066Z",fill:"currentColor"}),a.jsx("path",{d:"M18.0104 3.06066C19.5486 4.59886 20.5 6.72386 20.5 9.07107H22C22 6.30964 20.8807 3.80964 19.0711 2L18.0104 3.06066Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 16.571H4V18.071H20V16.571H18V9.07104C18 5.75734 15.3137 3.07104 12 3.07104C8.68629 3.07104 6 5.75734 6 9.07104V16.571ZM16.5 16.571V9.07104C16.5 6.58576 14.4853 4.57104 12 4.57104C9.51472 4.57104 7.5 6.58576 7.5 9.07104V16.571H16.5Z",fill:"currentColor"}),a.jsx("path",{d:"M10 20.071H14C14 21.1756 13.1046 22.071 12 22.071C10.8954 22.071 10 21.1756 10 20.071Z",fill:"currentColor"}),a.jsx("path",{d:"M5.98959 3.06066C4.4514 4.59886 3.5 6.72386 3.5 9.07107H2C2 6.30964 3.11929 3.80964 4.92893 2L5.98959 3.06066Z",fill:"currentColor"}),a.jsx("path",{d:"M18.0104 3.06066C19.5486 4.59886 20.5 6.72386 20.5 9.07107H22C22 6.30964 20.8807 3.80964 19.0711 2L18.0104 3.06066Z",fill:"currentColor"})]}),BellPing:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M10 20.071H14C14 21.1756 13.1046 22.071 12 22.071C10.8954 22.071 10 21.1756 10 20.071Z",fill:"currentColor"}),a.jsx("path",{d:"M5.98959 3.06066C4.4514 4.59886 3.5 6.72386 3.5 9.07107H2C2 6.30964 3.11929 3.80964 4.92893 2L5.98959 3.06066Z",fill:"currentColor"}),a.jsx("path",{d:"M21 6C21 7.65685 19.6569 9 18 9C16.3431 9 15 7.65685 15 6C15 4.34315 16.3431 3 18 3C19.6569 3 21 4.34315 21 6Z",fill:"currentColor"}),a.jsx("path",{d:"M13.7681 3.33582C13.2092 3.1637 12.6154 3.07104 12 3.07104C8.68629 3.07104 6 5.75734 6 9.07104V16.571H4V18.071H20V16.571H18V11C15.2386 11 13 8.76142 13 6C13 5.02067 13.2816 4.1071 13.7681 3.33582Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M10 20H14C14 21.1046 13.1046 22 12 22C10.8954 22 10 21.1046 10 20Z",fill:"currentColor"}),a.jsx("path",{d:"M5.98959 2.98962C4.4514 4.52781 3.5 6.65281 3.5 9.00002H2C2 6.2386 3.11929 3.7386 4.92893 1.92896L5.98959 2.98962Z",fill:"currentColor"}),a.jsx("path",{d:"M21 6C21 7.65685 19.6569 9 18 9C16.3431 9 15 7.65685 15 6C15 4.34315 16.3431 3 18 3C19.6569 3 21 4.34315 21 6Z",fill:"currentColor"}),a.jsx("path",{d:"M13.8061 3.2766C13.2361 3.0969 12.6294 3 12 3C8.68629 3 6 5.68629 6 9V16.5H4V18H20V16.5H18V11C17.4774 11 16.9735 10.9198 16.5 10.7711V16.5H7.5V9C7.5 6.51472 9.51472 4.5 12 4.5C12.4092 4.5 12.8056 4.55462 13.1824 4.65696C13.3202 4.16162 13.5324 3.69724 13.8061 3.2766Z",fill:"currentColor"})]}),BellMute:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M10 20H14C14 21.1046 13.1046 22 12 22C10.8954 22 10 21.1046 10 20Z",fill:"currentColor"}),a.jsx("path",{d:"M18 9V14.111L8.22509 4.33605C9.25608 3.50055 10.5696 3 12 3C15.3137 3 18 5.68629 18 9Z",fill:"currentColor"}),a.jsx("path",{d:"M20.3085 19.2479L19.2478 20.3085L16.9393 18H4V16.5H6V9C6 8.41093 6.08489 7.84169 6.24311 7.30384L3.69147 4.7522L4.75213 3.69154L20.3085 19.2479Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M10 20H14C14 21.1046 13.1046 22 12 22C10.8954 22 10 21.1046 10 20Z",fill:"currentColor"}),a.jsx("path",{d:"M16.5 9V12.611L18 14.111V9C18 5.68629 15.3137 3 12 3C10.5696 3 9.25608 3.50055 8.22509 4.33605L9.29356 5.40452C10.0468 4.83667 10.9841 4.5 12 4.5C14.4853 4.5 16.5 6.51472 16.5 9Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.3085 19.2479L19.2478 20.3085L16.9393 18H4V16.5H6V9C6 8.41093 6.08489 7.84169 6.24311 7.30384L3.69147 4.7522L4.75213 3.69154L20.3085 19.2479ZM7.51934 8.58007C7.50654 8.71833 7.5 8.8584 7.5 9V16.5H15.4393L7.51934 8.58007Z",fill:"currentColor"})]}),Message:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4V18H16L21 21V4H3ZM7 8H17V10H7V8ZM7 12H17V14H7V12Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.4155 16.5L19.5 18.3507V5.5H4.5V16.5H16.4155ZM3 18V4H21V21L16 18H3Z",fill:"currentColor"}),a.jsx("rect",{x:"7",y:"8",width:"10",height:"2",fill:"currentColor"}),a.jsx("rect",{x:"7",y:"12",width:"10",height:"2",fill:"currentColor"})]}),MessageUnread:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.416 4H3V18H16L21 21V10.0004C20.1643 10.6281 19.1256 11 18 11C16.8742 11 15.8353 10.6279 14.9995 10H7V8H13.416C13.1484 7.38754 13 6.7111 13 6C13 5.2889 13.1484 4.61246 13.416 4ZM17 12H7V14H17V12Z",fill:"currentColor"}),a.jsx("circle",{cx:"18",cy:"6",r:"3",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M21 10.0004V21L16 18H3V4H13.416C13.2119 4.46712 13.0772 4.97145 13.0247 5.5H4.5V16.5H16.4155L19.5 18.3507V10.7711C20.0464 10.5995 20.5523 10.3366 21 10.0004Z",fill:"currentColor"}),a.jsx("path",{d:"M13.416 8C13.7639 8.79625 14.3132 9.48438 14.9995 10H7V8H13.416Z",fill:"currentColor"}),a.jsx("path",{d:"M17 12H7V14H17V12Z",fill:"currentColor"}),a.jsx("circle",{cx:"18",cy:"6",r:"3",fill:"currentColor"})]}),Setting:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00001 2H15V4.58152C15.6948 4.86278 16.3411 5.23882 16.9229 5.69361L19.1603 4.40186L22.1603 9.59801L19.9235 10.8894C19.9739 11.2524 20 11.6231 20 12C20 12.3768 19.9739 12.7475 19.9235 13.1105L22.1603 14.4019L19.1603 19.598L16.923 18.3063C16.3412 18.7611 15.6949 19.1372 15 19.4185V22H9.00001V19.4185C8.30516 19.1372 7.65881 18.7612 7.07702 18.3063L4.83978 19.598L1.83978 14.4019L4.07646 13.1105C4.02605 12.7476 4 12.3768 4 12C4 11.6231 4.02606 11.2524 4.07647 10.8894L1.83978 9.59801L4.83978 4.40186L7.07712 5.69358C7.65889 5.2388 8.3052 4.86276 9.00001 4.58151V2ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 4.58152V2H9.00001V4.58151C8.3052 4.86276 7.65889 5.2388 7.07712 5.69358L4.83978 4.40186L1.83978 9.59801L4.07647 10.8894C4.02606 11.2524 4 11.6231 4 12C4 12.3768 4.02605 12.7476 4.07646 13.1105L1.83978 14.4019L4.83978 19.598L7.07702 18.3063C7.65881 18.7612 8.30516 19.1372 9.00001 19.4185V22H15V19.4185C15.6949 19.1372 16.3412 18.7611 16.923 18.3063L19.1603 19.598L22.1603 14.4019L19.9235 13.1105C19.9739 12.7475 20 12.3768 20 12C20 11.6231 19.9739 11.2524 19.9235 10.8894L22.1603 9.59801L19.1603 4.40186L16.9229 5.69361C16.3411 5.23882 15.6948 4.86278 15 4.58152ZM18.6113 6.45089L16.7964 7.49868L15.9991 6.87537C15.5259 6.50544 15.0008 6.20008 14.4372 5.97193L13.5 5.59257V3.5H10.5V5.59256L9.56283 5.97192C8.99921 6.20007 8.47415 6.50542 8.00093 6.87535L7.20358 7.49865L5.38882 6.4509L3.88882 9.04897L5.70115 10.0953L5.56221 11.0957C5.52127 11.3905 5.5 11.6924 5.5 12C5.5 12.3076 5.52126 12.6094 5.5622 12.9042L5.70112 13.9046L3.88882 14.9509L5.38882 17.549L7.2035 16.5013L8.00085 17.1246C8.47409 17.4945 8.99918 17.7999 9.56283 18.0281L10.5 18.4074V20.5H13.5V18.4074L14.4372 18.0281C15.0008 17.7999 15.5259 17.4945 15.9992 17.1246L16.7965 16.5012L18.6113 17.549L20.1113 14.9509L18.2989 13.9045L18.4378 12.9042C18.4787 12.6094 18.5 12.3076 18.5 12C18.5 11.6924 18.4787 11.3906 18.4378 11.0957L18.2989 10.0954L20.1113 9.04897L18.6113 6.45089Z",fill:"currentColor"}),a.jsx("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor"})]}),Search:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"10",cy:"10",r:"4",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 16.5C13.5899 16.5 16.5 13.5899 16.5 10C16.5 6.41015 13.5899 3.5 10 3.5C6.41015 3.5 3.5 6.41015 3.5 10C3.5 13.5899 6.41015 16.5 10 16.5ZM10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18Z",fill:"currentColor"}),a.jsx("rect",{x:"15.4142",y:"14",width:"9",height:"1.5",transform:"rotate(45 15.4142 14)",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 16.5C13.5899 16.5 16.5 13.5899 16.5 10C16.5 6.41015 13.5899 3.5 10 3.5C6.41015 3.5 3.5 6.41015 3.5 10C3.5 13.5899 6.41015 16.5 10 16.5ZM10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18Z",fill:"currentColor"}),a.jsx("rect",{x:"15.4142",y:"14",width:"9",height:"1.5",transform:"rotate(45 15.4142 14)",fill:"currentColor"})]}),Heart:t=>t?a.jsx("path",{d:"M12.0208 5.48522L11.6673 5.13166C9.5194 2.98378 6.03699 2.98378 3.88911 5.13166C1.74123 7.27955 1.74123 10.762 3.88911 12.9098L12.0208 21.0416L20.1526 12.9098C22.3005 10.762 22.3005 7.27955 20.1526 5.13166C18.0047 2.98378 14.5223 2.98378 12.3744 5.13166L12.0208 5.48522Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0208 7.60654L10.6066 6.19232C9.04453 4.63023 6.51187 4.63023 4.94977 6.19232C3.38767 7.75442 3.38767 10.2871 4.94977 11.8492L12.0208 18.9202L19.0919 11.8492C20.654 10.2871 20.654 7.75442 19.0919 6.19232C17.5298 4.63023 14.9971 4.63023 13.4351 6.19232L12.0208 7.60654ZM11.6673 5.13166C9.5194 2.98378 6.03699 2.98378 3.88911 5.13166C1.74123 7.27955 1.74123 10.762 3.88911 12.9098L12.0208 21.0416L20.1526 12.9098C22.3005 10.762 22.3005 7.27955 20.1526 5.13166C18.0047 2.98378 14.5223 2.98378 12.3744 5.13166L12.0208 5.48522L11.6673 5.13166Z",fill:"currentColor"}),Play:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12ZM16 12L10 8V16L16 12Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.32843 3.5 3.5 7.32843 3.5 12C3.5 16.6716 7.32843 20.5 12 20.5C16.6716 20.5 20.5 16.6716 20.5 12C20.5 7.32843 16.6716 3.5 12 3.5ZM2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12Z",fill:"currentColor"}),a.jsx("path",{d:"M10 16V8L16 12L10 16Z",fill:"currentColor"})]}),Pause:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12ZM9 8H11V16H9V8ZM13 8H15V16H13V8Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.32843 3.5 3.5 7.32843 3.5 12C3.5 16.6716 7.32843 20.5 12 20.5C16.6716 20.5 20.5 16.6716 20.5 12C20.5 7.32843 16.6716 3.5 12 3.5ZM2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12Z",fill:"currentColor"}),a.jsx("rect",{x:"9",y:"8",width:"2",height:"8",fill:"currentColor"}),a.jsx("rect",{x:"13",y:"8",width:"2",height:"8",fill:"currentColor"})]}),Sun:t=>a.jsxs(a.Fragment,{children:[t?a.jsx("path",{d:"M12 7C9.2 7 7 9.2 7 12C7 14.8 9.2 17 12 17C14.8 17 17 14.8 17 12C17 9.2 14.8 7 12 7Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 8.5C10.0284 8.5 8.5 10.0284 8.5 12C8.5 13.9716 10.0284 15.5 12 15.5C13.9716 15.5 15.5 13.9716 15.5 12C15.5 10.0284 13.9716 8.5 12 8.5ZM7 12C7 9.2 9.2 7 12 7C14.8 7 17 9.2 17 12C17 14.8 14.8 17 12 17C9.2 17 7 14.8 7 12Z",fill:"currentColor"}),a.jsx("path",{d:"M11 2H13V5H11V2Z",fill:"currentColor"}),a.jsx("path",{d:"M19 11H22V13H19V11Z",fill:"currentColor"}),a.jsx("path",{d:"M13 19H11V22H13V19Z",fill:"currentColor"}),a.jsx("path",{d:"M2 11H5V13H2V11Z",fill:"currentColor"}),a.jsx("path",{d:"M7.58059 6.52L5.45927 4.39868L4.39861 5.45934L6.51992 7.58066L7.58059 6.52Z",fill:"currentColor"}),a.jsx("path",{d:"M6.51996 16.4195L4.39856 18.5409L5.45922 19.6016L7.58062 17.4802L6.51996 16.4195Z",fill:"currentColor"}),a.jsx("path",{d:"M16.4194 17.4802L18.5407 19.6015L19.6014 18.5408L17.4801 16.4195L16.4194 17.4802Z",fill:"currentColor"}),a.jsx("path",{d:"M17.4801 7.5807L19.6014 5.45946L18.5407 4.3988L16.4195 6.52004L17.4801 7.5807Z",fill:"currentColor"})]}),Photo:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"14.5",cy:"8.5",r:"1.5",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H21V21H3V3ZM4.5 4.5H19.5V19.5L10.5 10.5L4.5 16.5V4.5Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"14.5",cy:"8.5",r:"1.5",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H21V21H3V3ZM4.5 4.5H19.5V19.5L10.5 10.5L4.5 16.5V4.5ZM4.5 18.6213V19.5H17.3787L10.5 12.6213L4.5 18.6213Z",fill:"currentColor"})]}),Lock:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 9V7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7V9H20V21H4V9H7ZM15.5 7V9H8.5V7C8.5 5.067 10.067 3.5 12 3.5C13.933 3.5 15.5 5.067 15.5 7ZM12 17C13.1046 17 14 16.1046 14 15C14 13.8954 13.1046 13 12 13C10.8954 13 10 13.8954 10 15C10 16.1046 10.8954 17 12 17Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 9V7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7V9H20V21H4V9H7ZM15.5 7V9H8.5V7C8.5 5.067 10.067 3.5 12 3.5C13.933 3.5 15.5 5.067 15.5 7ZM5.5 10.5V19.5H18.5V10.5H5.5Z",fill:"currentColor"}),a.jsx("path",{d:"M12 17C13.1046 17 14 16.1046 14 15C14 13.8954 13.1046 13 12 13C10.8954 13 10 13.8954 10 15C10 16.1046 10.8954 17 12 17Z",fill:"currentColor"})]}),Vlc:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M2 20.5V22H22V20.5H20L18.8649 17H5.13514L4 20.5H2Z",fill:"currentColor"}),a.jsx("path",{d:"M5.78378 15H18.2162L17.2432 12H6.75676L5.78378 15Z",fill:"currentColor"}),a.jsx("path",{d:"M7.40541 10H16.5946L14 2H10L7.40541 10Z",fill:"currentColor"})]}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2L20 20.5H22V22H2V20.5H4L10 2H14ZM18.4231 20.5H5.57692L6.71205 17H17.2879L18.4231 20.5ZM16.6393 15H7.3607L8.33367 12H15.6663L16.6393 15ZM11.0904 3.5L8.98232 10H15.0177L12.9096 3.5H11.0904Z",fill:"currentColor"}),Flag:t=>t?a.jsx("path",{d:"M3 3H21V5L17 9L21 13V15H4.5V21H3V3Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 5V3H3V21H4.5V15H21V13L17 9L21 5ZM19.3787 13.5L14.8787 9L19.3787 4.5H4.5V13.5H19.3787Z",fill:"currentColor"}),Ball:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M5.5 19.5996C7.64233 17.7655 9 15.0413 9 12C9 8.9587 7.64233 6.2345 5.5 4.40041C7.24803 2.9039 9.51846 2 12 2C14.4815 2 16.752 2.9039 18.5 4.40041C16.3577 6.2345 15 8.9587 15 12C15 15.0413 16.3577 17.7655 18.5 19.5996C16.752 21.0961 14.4815 22 12 22C9.51846 22 7.24803 21.0961 5.5 19.5996Z",fill:"currentColor"}),a.jsx("path",{d:"M4.11517 5.84871C2.78981 7.54518 2 9.68035 2 12C2 14.3196 2.78981 16.4548 4.11517 18.1513C5.87794 16.6838 7 14.4729 7 12C7 9.52705 5.87794 7.31618 4.11517 5.84871Z",fill:"currentColor"}),a.jsx("path",{d:"M19.8848 5.84871C21.2102 7.54518 22 9.68035 22 12C22 14.3196 21.2102 16.4548 19.8848 18.1513C18.1221 16.6838 17 14.4729 17 12C17 9.52705 18.1221 7.31618 19.8848 5.84871Z",fill:"currentColor"})]}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM18.5 17.4775C19.7479 15.9982 20.5 14.0869 20.5 12C20.5 9.91309 19.7479 8.00184 18.5 6.5225C17.2521 8.00184 16.5 9.9131 16.5 12C16.5 14.0869 17.2521 15.9982 18.5 17.4775ZM17.4327 18.5375C15.9597 19.763 14.0659 20.5 12 20.5C9.93412 20.5 8.04038 19.763 6.56736 18.5376C8.08313 16.7846 9.00003 14.4994 9.00003 12.0001C9.00003 9.50072 8.08309 7.21551 6.56725 5.46249C8.0403 4.23703 9.93408 3.5 12 3.5C14.0659 3.5 15.9597 4.23702 17.4327 5.46248C15.9169 7.21548 15 9.50067 15 12C15 14.4994 15.9169 16.7845 17.4327 18.5375ZM3.5 12C3.5 9.9131 4.25207 8.00186 5.49997 6.52252C6.74792 8.00187 7.50003 9.91316 7.50003 12.0001C7.50003 14.087 6.74796 15.9982 5.50006 17.4776C4.25211 15.9982 3.5 14.0869 3.5 12Z",fill:"currentColor"}),Bulb:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 10C20 12.9611 18.3912 15.5465 16 16.9297V22H8V16.9297C5.60879 15.5465 4 12.9611 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10ZM9.91421 8.08569L8.5 9.49991L11 11.9999V13.9999H13V12.071L15.5711 9.49991L14.1569 8.08569L12.0355 10.207L9.91421 8.08569Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 16.0646L15.2489 15.6313C17.1957 14.5052 18.5 12.404 18.5 10C18.5 6.41015 15.5899 3.5 12 3.5C8.41015 3.5 5.5 6.41015 5.5 10C5.5 12.404 6.80432 14.5052 8.75109 15.6313L9.5 16.0646V20.5H14.5V16.0646ZM16 16.9297C18.3912 15.5465 20 12.9611 20 10C20 5.58172 16.4183 2 12 2C7.58172 2 4 5.58172 4 10C4 12.9611 5.60879 15.5465 8 16.9297V22H16V16.9297Z",fill:"currentColor"}),a.jsx("path",{d:"M8.5 9.49991L9.91421 8.08569L12.0355 10.207L14.1569 8.08569L15.5711 9.49991L13 12.071V13.9999H11V11.9999L8.5 9.49991Z",fill:"currentColor"})]}),Terminal:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 4H2V20H22V4ZM7.74264 7.75732L6.32843 9.17154L9.15686 12L6.32843 14.8284L7.74264 16.2426L11.9853 12L7.74264 7.75732ZM13 14H18V16H13V14Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 5.5H3.5V18.5H20.5V5.5ZM2 4V20H22V4H2Z",fill:"currentColor"}),a.jsx("path",{d:"M13 14H18V16H13V14Z",fill:"currentColor"}),a.jsx("path",{d:"M7.74264 7.75736L6.32843 9.17157L9.15685 12L6.32843 14.8284L7.74264 16.2426L11.9853 12L7.74264 7.75736Z",fill:"currentColor"})]}),Pencil:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M3 17V21H7L17.2929 10.7071L13.2929 6.70709L3 17Z",fill:"currentColor"}),a.jsx("path",{d:"M14.7071 5.29288L18.7071 9.29288L22.5 5.5L18.5 1.5L14.7071 5.29288Z",fill:"currentColor"})]}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 16V21H8L23 6L18 1L3 16ZM16.7322 10.1465L7.37868 19.5H4.5V16.6213L13.8535 7.26781L16.7322 10.1465ZM18.1464 8.73228L20.8787 6L18 3.12132L15.2677 5.8536L18.1464 8.73228Z",fill:"currentColor"}),Info:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12ZM11 8V6H13V8H11ZM13 15V10H10V11.5H11V15H9.5V17H14.5L14.5 15H13Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.32843 3.5 3.5 7.32843 3.5 12C3.5 16.6716 7.32843 20.5 12 20.5C16.6716 20.5 20.5 16.6716 20.5 12C20.5 7.32843 16.6716 3.5 12 3.5ZM2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12Z",fill:"currentColor"}),a.jsx("path",{d:"M13 15.5V10H10V11.5H11V15.5H9.5V17H14.5L14.5 15.5H13Z",fill:"currentColor"}),a.jsx("rect",{x:"11",y:"6",width:"2",height:"2",fill:"currentColor"})]}),Shield:t=>t?a.jsx("path",{d:"M12 2L3 7V13C3 17.9706 7.02944 22 12 22C16.9706 22 21 17.9706 21 13V7L12 2Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 7.88261V13C4.5 17.1421 7.85786 20.5 12 20.5C16.1421 20.5 19.5 17.1421 19.5 13V7.88261L12 3.71594L4.5 7.88261ZM12 2L3 7V13C3 17.9706 7.02944 22 12 22C16.9706 22 21 17.9706 21 13V7L12 2Z",fill:"currentColor"}),ShieldLock:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7L12 2L21 7V13C21 17.9706 16.9706 22 12 22C7.02944 22 3 17.9706 3 13V7ZM11 12.7C10.4 12.4 10 11.7 10 11C10 9.9 10.9 9 12 9C13.1 9 14 9.9 14 11C14 11.7 13.6 12.4 13 12.7V16H11V12.7Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 7.88261V13C4.5 17.1421 7.85786 20.5 12 20.5C16.1421 20.5 19.5 17.1421 19.5 13V7.88261L12 3.71594L4.5 7.88261ZM12 2L3 7V13C3 17.9706 7.02944 22 12 22C16.9706 22 21 17.9706 21 13V7L12 2Z",fill:"currentColor"}),a.jsx("path",{d:"M10 11C10 11.7 10.4 12.4 11 12.7V16H13V12.7C13.6 12.4 14 11.7 14 11C14 9.9 13.1 9 12 9C10.9 9 10 9.9 10 11Z",fill:"currentColor"})]}),ShieldUser:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7L12 2L21 7V13C21 17.9706 16.9706 22 12 22C7.02944 22 3 17.9706 3 13V7ZM12 12C13.1046 12 14 11.1046 14 10C14 8.89543 13.1046 8 12 8C10.8954 8 10 8.89543 10 10C10 11.1046 10.8954 12 12 12ZM9 16C9 14.3431 10.3431 13 12 13C13.6569 13 15 14.3431 15 16V17H9V16Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M12 12C13.1046 12 14 11.1046 14 10C14 8.89543 13.1046 8 12 8C10.8954 8 10 8.89543 10 10C10 11.1046 10.8954 12 12 12Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 7.88261V13C4.5 17.1421 7.85786 20.5 12 20.5C16.1421 20.5 19.5 17.1421 19.5 13V7.88261L12 3.71594L4.5 7.88261ZM12 2L3 7V13C3 17.9706 7.02944 22 12 22C16.9706 22 21 17.9706 21 13V7L12 2Z",fill:"currentColor"}),a.jsx("path",{d:"M9 16C9 14.3431 10.3431 13 12 13C13.6569 13 15 14.3431 15 16V17H9V16Z",fill:"currentColor"})]}),Cup:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 3H3V15C3 18.3137 5.68629 21 9 21H13C16.3137 21 19 18.3137 19 15C21.2091 15 23 13.2091 23 11V7H19V3ZM19 8.5V13.5C20.3807 13.5 21.5 12.3807 21.5 11V8.5H19Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 15C19 18.3137 16.3137 21 13 21H9C5.68629 21 3 18.3137 3 15V3H19V7H23V11C23 13.2091 21.2091 15 19 15ZM4.5 4.5H17.5V15C17.5 17.4853 15.4853 19.5 13 19.5H9C6.51472 19.5 4.5 17.4853 4.5 15V4.5ZM19 8.5V13.5C20.3807 13.5 21.5 12.3807 21.5 11V8.5H19Z",fill:"currentColor"}),Pin:t=>t?a.jsx("path",{d:"M9.05547 13.884L5.34316 10.1717L6.40382 9.11099L7.11093 9.8181L12.0607 8.40389L15.2427 5.22191L14.182 4.16125L15.2427 3.10059L20.8995 8.75744L19.8389 9.8181L18.7782 8.75744L15.5962 11.9394L14.182 16.8892L14.8891 17.5963L13.8284 18.6569L10.1161 14.9446L4.45928 20.6015L3.39862 19.5408L9.05547 13.884Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9686 15.6758L14.2607 11.1536L17.7175 7.69678L16.3033 6.28257L12.8465 9.73939L8.32428 11.0315L12.9686 15.6758ZM20.8995 8.75744L19.8389 9.8181L18.7782 8.75744L15.5962 11.9394L14.182 16.8892L14.8891 17.5963L13.8284 18.6569L10.1161 14.9446L4.45928 20.6015L3.39862 19.5408L9.05547 13.884L5.34316 10.1717L6.40382 9.11099L7.11093 9.8181L12.0607 8.40389L15.2427 5.22191L14.182 4.16125L15.2427 3.10059L20.8995 8.75744Z",fill:"currentColor"}),VolumeHigh:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M2 16V8H6L12 3V21L6 16H2Z",fill:"currentColor"}),a.jsx("path",{d:"M14 16C16.2091 16 18 14.2091 18 12C18 9.79086 16.2091 8 14 8V9.5C15.3807 9.5 16.5 10.6193 16.5 12C16.5 13.3807 15.3807 14.5 14 14.5V16Z",fill:"currentColor"}),a.jsx("path",{d:"M14 20C18.4183 20 22 16.4183 22 12C22 7.58172 18.4183 4 14 4V5.5C17.5899 5.5 20.5 8.41015 20.5 12C20.5 15.5899 17.5899 18.5 14 18.5V20Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 8H2V16H6L12 21V3L6 8ZM10.5 6.20256L6.54308 9.5H3.5V14.5H6.54308L10.5 17.7974V6.20256Z",fill:"currentColor"}),a.jsx("path",{d:"M14 16C16.2091 16 18 14.2091 18 12C18 9.79086 16.2091 8 14 8V9.5C15.3807 9.5 16.5 10.6193 16.5 12C16.5 13.3807 15.3807 14.5 14 14.5V16Z",fill:"currentColor"}),a.jsx("path",{d:"M14 20C18.4183 20 22 16.4183 22 12C22 7.58172 18.4183 4 14 4V5.5C17.5899 5.5 20.5 8.41015 20.5 12C20.5 15.5899 17.5899 18.5 14 18.5V20Z",fill:"currentColor"})]}),VolumeMute:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M2 16V8H6L12 3V21L6 16H2Z",fill:"currentColor"}),a.jsx("rect",{x:"20.2981",y:"8.64111",width:"1.5",height:"8",transform:"rotate(45 20.2981 8.64111)",fill:"currentColor"}),a.jsx("rect",{x:"21.3588",y:"14.2983",width:"1.5",height:"8",transform:"rotate(135 21.3588 14.2983)",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 8H2V16H6L12 21V3L6 8ZM10.5 6.20256L6.54308 9.5H3.5V14.5H6.54308L10.5 17.7974V6.20256Z",fill:"currentColor"}),a.jsx("rect",{x:"20.2981",y:"8.64111",width:"1.5",height:"8",transform:"rotate(45 20.2981 8.64111)",fill:"currentColor"}),a.jsx("rect",{x:"21.3588",y:"14.2983",width:"1.5",height:"8",transform:"rotate(135 21.3588 14.2983)",fill:"currentColor"})]}),File:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M12 2H4V22H20V10H12V2Z",fill:"currentColor"}),a.jsx("path",{d:"M20 8L14 8V2L20 8Z",fill:"currentColor"})]}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2L20 8V22H4V2H14ZM18.5 10H12V3.5H5.5V20.5H18.5V10Z",fill:"currentColor"}),Category:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"3",y:"3",width:"8",height:"8",fill:"currentColor"}),a.jsx("rect",{x:"3",y:"13",width:"8",height:"8",fill:"currentColor"}),a.jsx("rect",{x:"13",y:"3",width:"8",height:"8",fill:"currentColor"}),a.jsx("rect",{x:"13",y:"13",width:"8",height:"8",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 4.5H4.5V9.5H9.5V4.5ZM3 3V11H11V3H3Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 14.5H4.5V19.5H9.5V14.5ZM3 13V21H11V13H3Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 4.5H14.5V9.5H19.5V4.5ZM13 3V11H21V3H13Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 14.5H14.5V19.5H19.5V14.5ZM13 13V21H21V13H13Z",fill:"currentColor"})]}),Peace:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M11.25 2.02783C6.07745 2.41136 2 6.72957 2 12.0001C2 14.236 2.73379 16.3005 3.97368 17.9659L11.25 10.6896V2.02783Z",fill:"currentColor"}),a.jsx("path",{d:"M4.95939 19.1015C6.60053 20.7287 8.8027 21.791 11.25 21.9724V12.8109L4.95939 19.1015Z",fill:"currentColor"}),a.jsx("path",{d:"M12.75 21.9724C15.1973 21.791 17.3995 20.7287 19.0406 19.1015L12.75 12.8109V21.9724Z",fill:"currentColor"}),a.jsx("path",{d:"M20.0263 17.9659L12.75 10.6896V2.02783C17.9226 2.41136 22 6.72958 22 12.0001C22 14.236 21.2662 16.3005 20.0263 17.9659Z",fill:"currentColor"})]}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM11.25 12.8108V20.4674C9.2171 20.2896 7.38933 19.3963 6.02005 18.0407L11.25 12.8108ZM11.25 10.6894L5.04777 16.8917C4.07268 15.5084 3.5 13.8211 3.5 12C3.5 7.55831 6.90686 3.91233 11.25 3.53263V10.6894ZM12.75 12.8108V20.4674C14.7829 20.2896 16.6107 19.3963 17.9799 18.0407L12.75 12.8108ZM18.9522 16.8917L12.75 10.6895V3.53263C17.0931 3.91233 20.5 7.55831 20.5 12C20.5 13.8211 19.9273 15.5084 18.9522 16.8917Z",fill:"currentColor"}),Eye:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C18.0751 19 23 12 23 12C23 12 18.0751 5 12 5C5.92487 5 1 12 1 12C1 12 5.92487 19 12 19ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12C1 12 5.92487 19 12 19C18.0751 19 23 12 23 12C23 12 18.0751 5 12 5C5.92487 5 1 12 1 12ZM2.90443 12C2.93793 12.0401 2.97258 12.0813 3.00836 12.1235C3.53083 12.7395 4.28523 13.5585 5.21221 14.3734C7.11461 16.0459 9.51515 17.5 12 17.5C14.4849 17.5 16.8854 16.0459 18.7878 14.3734C19.7148 13.5585 20.4692 12.7395 20.9916 12.1235C21.0274 12.0813 21.0621 12.0401 21.0956 12C21.0621 11.9599 21.0274 11.9187 20.9916 11.8765C20.4692 11.2605 19.7148 10.4415 18.7878 9.62656C16.8854 7.9541 14.4849 6.5 12 6.5C9.51515 6.5 7.11461 7.9541 5.21221 9.62656C4.28523 10.4415 3.53083 11.2605 3.00836 11.8765C2.97258 11.9187 2.93793 11.9599 2.90443 12ZM2.22578 11.1354C2.22576 11.1354 2.22572 11.1354 2.22578 11.1354Z",fill:"currentColor"})]}),EyeBlind:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.75213 3.69141L3.69147 4.75207L6.02989 7.09048C3.00297 9.15318 1 12.0001 1 12.0001C1 12.0001 5.92487 19.0001 12 19.0001C13.663 19.0001 15.2399 18.4756 16.6531 17.7137L19.2478 20.3084L20.3085 19.2478L4.75213 3.69141ZM13.5241 14.5847L9.41543 10.476C9.15147 10.9227 9 11.4437 9 12.0001C9 13.657 10.3431 15.0001 12 15.0001C12.5564 15.0001 13.0774 14.8486 13.5241 14.5847Z",fill:"currentColor"}),a.jsx("path",{d:"M13.0954 9.2064C13.8712 9.5108 14.4893 10.129 14.7937 10.9047L19.5699 15.6808C21.6825 13.8727 23 12.0001 23 12.0001C23 12.0001 18.0751 5.00011 12 5.00011C11.0772 5.00011 10.181 5.16161 9.32458 5.43554L13.0954 9.2064Z",fill:"currentColor"})]}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.75213 3.69141L3.69147 4.75207L6.02989 7.09049C3.00297 9.15318 1 12.0001 1 12.0001C1 12.0001 5.92487 19.0001 12 19.0001C13.663 19.0001 15.2399 18.4756 16.6531 17.7137L19.2478 20.3084L20.3085 19.2478L4.75213 3.69141ZM15.5394 16.6L13.5242 14.5848C13.0775 14.8488 12.5565 15.0003 12 15.0003C10.3431 15.0003 9 13.6572 9 12.0003C9 11.4439 9.1515 10.9228 9.4155 10.4761L7.11135 8.17195C6.4387 8.61141 5.80156 9.10856 5.21221 9.62667C4.28523 10.4416 3.53083 11.2607 3.00836 11.8766C2.97258 11.9188 2.93793 11.96 2.90443 12.0001C2.93793 12.0402 2.97258 12.0814 3.00836 12.1236C3.53083 12.7396 4.28523 13.5586 5.21221 14.3736C7.11461 16.046 9.51515 17.5001 12 17.5001C13.2162 17.5001 14.4122 17.1518 15.5394 16.6ZM18.5058 14.6167C18.6009 14.5363 18.6949 14.4552 18.7878 14.3736C19.7148 13.5586 20.4692 12.7396 20.9916 12.1236C21.0274 12.0814 21.0621 12.0402 21.0956 12.0001C21.0621 11.96 21.0274 11.9188 20.9916 11.8766C20.4692 11.2607 19.7148 10.4416 18.7878 9.62667C16.8854 7.95422 14.4849 6.50011 12 6.50011C11.5118 6.50011 11.0268 6.55625 10.5482 6.65915L9.32458 5.43554C10.181 5.16161 11.0772 5.00011 12 5.00011C18.0751 5.00011 23 12.0001 23 12.0001C23 12.0001 21.6825 13.8727 19.5699 15.6808L18.5058 14.6167Z",fill:"currentColor"}),Warning:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM11 14V6H13V14H11ZM11 18V16H13V18H11Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20.5C16.6944 20.5 20.5 16.6944 20.5 12C20.5 7.30558 16.6944 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"}),a.jsx("rect",{x:"11",y:"6",width:"2",height:"8",fill:"currentColor"}),a.jsx("rect",{x:"11",y:"16",width:"2",height:"2",fill:"currentColor"})]}),Funnel:t=>t?a.jsx("path",{d:"M2 4H22V5.5L14 13.5V21H10V13.5L2 5.5V4Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 12.5L22 5.5V4H2V5.5L9 12.5V21H15V12.5ZM13.5 19.5V11.8787L19.8787 5.5H4.12132L10.5 11.8787V19.5H13.5Z",fill:"currentColor"}),Bookmark:t=>t?a.jsx("path",{d:"M6 3H18V21L12 15L6 21V3Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 21V3H6V21L12 15L18 21ZM7.5 17.3787L12 12.8787L16.5 17.3787V4.5H7.5V17.3787Z",fill:"currentColor"}),Inbox:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 3V14H21V21H3V14H5V3H19ZM6.5 14V4.5H17.5V14H15C15 15.6569 13.6569 17 12 17C10.3431 17 9 15.6569 9 14H6.5Z",fill:"currentColor"}):a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 3V14H21V21H3V14H5V3H19ZM6.5 14V4.5H17.5V14H14C14 15.1046 13.1046 16 12 16C10.8954 16 10 15.1046 10 14H6.5ZM19.5 15.5V19.5H4.5V15.5H6.5L8.83682 15.5C9.39855 16.6825 10.6038 17.5 12 17.5C13.3962 17.5 14.6015 16.6825 15.1632 15.5L17.5 15.5H19.5Z",fill:"currentColor"}),Thread:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 2C18.7614 2 21 4.23858 21 7V22L16 20H8C5.23858 20 3 17.7614 3 15V7C3 4.23858 5.23858 2 8 2H16ZM8 12V14H16V12H8ZM8 10H16V8H8V10Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 20H8C5.23858 20 3 17.7614 3 15V7C3 4.23858 5.23858 2 8 2H16C18.7614 2 21 4.23858 21 7V22L16 20ZM19.5 19.7845L16.2889 18.5H8C6.067 18.5 4.5 16.933 4.5 15V7C4.5 5.067 6.067 3.5 8 3.5H16C17.933 3.5 19.5 5.067 19.5 7V19.7845Z",fill:"currentColor"}),a.jsx("rect",{x:"8",y:"8",width:"8",height:"2",fill:"currentColor"}),a.jsx("rect",{x:"8",y:"12",width:"8",height:"2",fill:"currentColor"})]}),ThreadPlus:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 2C18.7614 2 21 4.23858 21 7V22L16 20H8C5.23858 20 3 17.7614 3 15V7C3 4.23858 5.23858 2 8 2H16ZM11 7V10H8V12H11V15H13V12H16V10H13V7H11Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 20H8C5.23858 20 3 17.7614 3 15V7C3 4.23858 5.23858 2 8 2H16C18.7614 2 21 4.23858 21 7V22L16 20ZM19.5 19.7845L16.2889 18.5H8C6.067 18.5 4.5 16.933 4.5 15V7C4.5 5.067 6.067 3.5 8 3.5H16C17.933 3.5 19.5 5.067 19.5 7V19.7845Z",fill:"currentColor"}),a.jsx("rect",{x:"11",y:"7",width:"2",height:"8",fill:"currentColor"}),a.jsx("rect",{x:"16",y:"10",width:"2",height:"8",transform:"rotate(90 16 10)",fill:"currentColor"})]}),ThreadUnread:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("circle",{cx:"6",cy:"18",r:"4",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 2C18.7614 2 21 4.23858 21 7V22L16 20H11.6572C11.8784 19.3743 12 18.7014 12 18C12 16.4629 11.4212 15.0616 10.4707 14H16V12H8V12.3418C7.37441 12.1207 6.70132 12 6 12C4.90696 12 3.88262 12.293 3 12.8037V7C3 4.23858 5.23858 2 8 2H16ZM8 10H16V8H8V10Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"8",y:"8",width:"8",height:"2",fill:"currentColor"}),a.jsx("circle",{cx:"6",cy:"18",r:"4",fill:"currentColor"}),a.jsx("path",{d:"M16 2C18.7614 2 21 4.23858 21 7V22L16 20H11.6572C11.8253 19.5246 11.9345 19.0219 11.9775 18.5H16.2891L19.5 19.7842V7C19.5 5.067 17.933 3.5 16 3.5H8C6.067 3.5 4.5 5.067 4.5 7V12.1885C3.96763 12.3255 3.46442 12.535 3 12.8037V7C3 4.23858 5.23858 2 8 2H16Z",fill:"currentColor"}),a.jsx("path",{d:"M16 14H10.4707C9.80576 13.2573 8.95921 12.6809 8 12.3418V12H16V14Z",fill:"currentColor"})]}),Monitor:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"8",y:"20",width:"8",height:"2",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 3C20.2091 3 22 4.79086 22 7V15C22 17.2091 20.2091 19 18 19H6C3.79086 19 2 17.2091 2 15V7C2 4.79086 3.79086 3 6 3H18ZM12 14C11.4477 14 11 14.4477 11 15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15C13 14.4477 12.5523 14 12 14Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"8",y:"19",width:"8",height:"3",fill:"currentColor"}),a.jsx("path",{d:"M18 17.5V19H6V17.5H18ZM20.5 15V7C20.5 5.61929 19.3807 4.5 18 4.5H6C4.61929 4.5 3.5 5.61929 3.5 7V15C3.5 16.3807 4.61929 17.5 6 17.5V19L5.79395 18.9951C3.68056 18.8879 2 17.14 2 15V7C2 4.79086 3.79086 3 6 3H18C20.2091 3 22 4.79086 22 7V15C22 17.2091 20.2091 19 18 19V17.5C19.3807 17.5 20.5 16.3807 20.5 15Z",fill:"currentColor"}),a.jsx("circle",{cx:"12",cy:"15",r:"1",fill:"currentColor"})]}),Server:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M22 11H2V3H22V11ZM5 6V8H7V6H5ZM13 8H19V6H13V8Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 21H2V13H22V21ZM5 16V18H7V16H5ZM13 18H19V16H13V18Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M2 13L22 13L22 21L2 21L2 13ZM20.5 19.5L20.5 14.5L3.5 14.5L3.5 19.5L20.5 19.5Z",fill:"currentColor"}),a.jsx("path",{d:"M2 3L22 3L22 11L2 11L2 3ZM20.5 9.5L20.5 4.5L3.5 4.5L3.5 9.5L20.5 9.5Z",fill:"currentColor"}),a.jsx("rect",{x:"5",y:"6",width:"2",height:"2",fill:"currentColor"}),a.jsx("rect",{x:"13",y:"6",width:"6",height:"2",fill:"currentColor"}),a.jsx("rect",{x:"5",y:"16",width:"2",height:"2",fill:"currentColor"}),a.jsx("rect",{x:"13",y:"16",width:"6",height:"2",fill:"currentColor"})]}),Prohibited:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM5.63574 7.0498L16.9502 18.3643L18.3643 16.9502L7.0498 5.63574L5.63574 7.0498Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M20.5 12C20.5 7.30558 16.6944 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5V22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22V20.5C16.6944 20.5 20.5 16.6944 20.5 12Z",fill:"currentColor"}),a.jsx("rect",{x:"6.34314",y:"4.92871",width:"18",height:"2",transform:"rotate(45 6.34314 4.92871)",fill:"currentColor"})]}),NoEntry:t=>t?a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM6 11V13H18V11H6Z",fill:"currentColor"}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M20.5 12C20.5 7.30558 16.6944 3.5 12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5V22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22V20.5C16.6944 20.5 20.5 16.6944 20.5 12Z",fill:"currentColor"}),a.jsx("rect",{x:"6",y:"11",width:"12",height:"2",fill:"currentColor"})]}),Mic:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"11",y:"19",width:"2",height:"3",fill:"currentColor"}),a.jsx("path",{d:"M21 11C21 15.9706 16.9706 20 12 20C7.18468 20 3.25264 16.2183 3.01172 11.4629L3 11H4.5C4.5 15.1421 7.85786 18.5 12 18.5C16.0128 18.5 19.2895 15.3486 19.4902 11.3857L19.5 11H21Z",fill:"currentColor"}),a.jsx("path",{d:"M7 7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7V11C17 13.7614 14.7614 16 12 16C9.23858 16 7 13.7614 7 11V7Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"11",y:"19",width:"2",height:"3",fill:"currentColor"}),a.jsx("path",{d:"M21 11C21 15.9706 16.9706 20 12 20C7.18468 20 3.25264 16.2183 3.01172 11.4629L3 11H4.5C4.5 15.1421 7.85786 18.5 12 18.5C16.0128 18.5 19.2895 15.3486 19.4902 11.3857L19.5 11H21Z",fill:"currentColor"}),a.jsx("path",{d:"M15.5 11V7C15.5 5.067 13.933 3.5 12 3.5C10.067 3.5 8.5 5.067 8.5 7V11C8.5 12.933 10.067 14.5 12 14.5V16C9.32472 16 7.14053 13.8989 7.00684 11.2568L7 11V7C7 4.23858 9.23858 2 12 2C14.7614 2 17 4.23858 17 7V11L16.9932 11.2568C16.8595 13.8989 14.6753 16 12 16V14.5C13.933 14.5 15.5 12.933 15.5 11Z",fill:"currentColor"})]}),MicMute:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"11",y:"19",width:"2",height:"3",fill:"currentColor"}),a.jsx("path",{d:"M4.5 11C4.5 15.1421 7.85786 18.5 12 18.5C13.9175 18.5 15.6652 17.7786 16.9912 16.5947L18.0547 17.6582C16.456 19.1128 14.3317 20 12 20C7.18468 20 3.25264 16.2183 3.01172 11.4629L3 11H4.5Z",fill:"currentColor"}),a.jsx("path",{d:"M21 11C21 12.917 20.3985 14.6925 19.377 16.1523L18.2979 15.0732C18.9926 14.0013 19.4216 12.7412 19.4902 11.3857L19.5 11H21Z",fill:"currentColor"}),a.jsx("path",{d:"M15.2197 14.8232C14.3497 15.5567 13.227 16 12 16C9.23858 16 7 13.7614 7 11V7C7 6.87183 7.00615 6.74489 7.01562 6.61914L15.2197 14.8232Z",fill:"currentColor"}),a.jsx("path",{d:"M12 2C14.7614 2 17 4.23858 17 7V11C17 11.8069 16.8072 12.5684 16.4678 13.2432L7.68945 4.46484C8.55887 2.98975 10.1638 2 12 2Z",fill:"currentColor"}),a.jsx("rect",{x:"2.27728",y:"4.00195",width:"1.5",height:"24",transform:"rotate(-45 2.27728 4.00195)",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"11",y:"19",width:"2",height:"3",fill:"currentColor"}),a.jsx("path",{d:"M4.5 11C4.5 15.1421 7.85786 18.5 12 18.5C13.9175 18.5 15.6652 17.7786 16.9912 16.5947L18.0547 17.6582C16.456 19.1128 14.3317 20 12 20C7.18468 20 3.25264 16.2183 3.01172 11.4629L3 11H4.5Z",fill:"currentColor"}),a.jsx("path",{d:"M21 11C21 12.917 20.3985 14.6925 19.377 16.1523L18.2979 15.0732C18.9926 14.0013 19.4216 12.7412 19.4902 11.3857L19.5 11H21Z",fill:"currentColor"}),a.jsx("path",{d:"M8.5 8.10352V11C8.5 12.933 10.067 14.5 12 14.5C12.8126 14.5 13.5593 14.2215 14.1533 13.7568L15.2197 14.8232C14.3498 15.5567 13.2271 16 12 16C9.32472 16 7.14053 13.8989 7.00684 11.2568L7 11V7C7 6.87183 7.00615 6.74489 7.01562 6.61914L8.5 8.10352Z",fill:"currentColor"}),a.jsx("path",{d:"M12 2C14.7614 2 17 4.23858 17 7V11L16.9932 11.2568C16.9571 11.9686 16.7709 12.6404 16.4678 13.2432L15.3232 12.0986C15.4374 11.753 15.5 11.3839 15.5 11V7C15.5 5.067 13.933 3.5 12 3.5C10.5737 3.5 9.34704 4.35332 8.80176 5.57715L7.68945 4.46484C8.55887 2.98975 10.1638 2 12 2Z",fill:"currentColor"}),a.jsx("rect",{x:"2.27728",y:"4.00195",width:"1.5",height:"24",transform:"rotate(-45 2.27728 4.00195)",fill:"currentColor"})]}),VideoCamera:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M15 4C16.6569 4 18 5.34315 18 7L18 17C18 18.6569 16.6569 20 15 20L5 20C3.34315 20 2 18.6569 2 17L2 7C2 5.34315 3.34315 4 5 4L15 4Z",fill:"currentColor"}),a.jsx("path",{d:"M22 7L18 11V13L22 17V7Z",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M3.5 17L2 17L2 7L3.5 7L3.5 17ZM5 18.5L15 18.5C15.8284 18.5 16.5 17.8284 16.5 17L16.5 7C16.5 6.17157 15.8284 5.5 15 5.5L5 5.5C4.17157 5.5 3.5 6.17157 3.5 7L2 7L2.00391 6.8457C2.08163 5.31166 3.31166 4.08163 4.8457 4.00391L5 4L15 4C16.6569 4 18 5.34315 18 7L18 17C18 18.6569 16.6569 20 15 20L5 20L4.8457 19.9961C3.31166 19.9184 2.08163 18.6883 2.00391 17.1543L2 17L3.5 17C3.5 17.8284 4.17157 18.5 5 18.5Z",fill:"currentColor"}),a.jsx("path",{d:"M22 7L18 11V13L22 17V7Z",fill:"currentColor"})]}),VideoCameraMute:t=>t?a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M22 7L18 11V13L22 17V7Z",fill:"currentColor"}),a.jsx("path",{d:"M17.6992 18.3027C17.214 19.3063 16.1894 20 15 20H5C3.34315 20 2 18.6569 2 17V7C2 5.81074 2.69298 4.78512 3.69629 4.2998L17.6992 18.3027Z",fill:"currentColor"}),a.jsx("path",{d:"M15 4C16.6569 4 18 5.34315 18 7V15.7754L6.22461 4H15Z",fill:"currentColor"}),a.jsx("rect",{x:"2.33795",y:"2.94141",width:"24",height:"1.5",transform:"rotate(45 2.33795 2.94141)",fill:"currentColor"})]}):a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M22 7L18 11V13L22 17V7Z",fill:"currentColor"}),a.jsx("path",{d:"M3.5 17C3.5 17.8284 4.17157 18.5 5 18.5H15C15.7956 18.5 16.4437 17.8805 16.4941 17.0977L17.6992 18.3027C17.214 19.3063 16.1894 20 15 20H5L4.8457 19.9961C3.31166 19.9184 2.08163 18.6883 2.00391 17.1543L2 17V7L2.00391 6.8457C2.06082 5.72233 2.73664 4.764 3.69629 4.2998L4.90137 5.50488C4.11897 5.55573 3.5 6.20475 3.5 7V17Z",fill:"currentColor"}),a.jsx("path",{d:"M15 4C16.6569 4 18 5.34315 18 7V15.7754L16.5 14.2754V7C16.5 6.17157 15.8284 5.5 15 5.5H7.72461L6.22461 4H15Z",fill:"currentColor"}),a.jsx("rect",{x:"2.33795",y:"2.94141",width:"24",height:"1.5",transform:"rotate(45 2.33795 2.94141)",fill:"currentColor"})]}),Hash:()=>a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.5 3H8V8L3 8V9.5H8V14.5H3V16H8V21H9.5V16L14.5 16V21H16V16H21V14.5H16V9.5H21V8L16 8V3H14.5V8H9.5V3ZM14.5 14.5V9.5L9.5 9.5V14.5L14.5 14.5Z",fill:"currentColor"}),HashLock:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M12 8L9.5 8V3H8V8L3 8V9.5H8V14.5H3V16H8V21H9.5V16L14.5 16V21H16V16H21V14.5H16V12H14.5V14.5L9.5 14.5V9.5L12 9.5V8Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 4V3C15 1.34315 16.3431 0 18 0C19.6569 0 21 1.34315 21 3V4H22V10H14V4H15ZM19.5 3V4H16.5V3C16.5 2.17157 17.1716 1.5 18 1.5C18.8284 1.5 19.5 2.17157 19.5 3Z",fill:"currentColor"})]}),HashGlobe:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 5C24 7.76142 21.7614 10 19 10C16.2386 10 14 7.76142 14 5C14 2.23858 16.2386 0 19 0C21.7614 0 24 2.23858 24 5ZM17 7.87266V5L15.7354 3.73543C15.5834 4.12764 15.5 4.55408 15.5 5C15.5 6.18937 16.0933 7.24018 17 7.87266ZM22.5 5C22.5 6.18937 21.9067 7.24018 21 7.87266V6.5H19V5H20V3.5H21V2.12734C21.9067 2.75982 22.5 3.81063 22.5 5Z",fill:"currentColor"}),a.jsx("path",{d:"M12 8L9.5 8V3H8V8L3 8V9.5H8V14.5H3V16H8V21H9.5V16L14.5 16V21H16V16H21V14.5H16V12H14.5V14.5L9.5 14.5V9.5L12 9.5V8Z",fill:"currentColor"})]}),HashSearch:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M12 8L9.5 8V3H8V8L3 8V9.5H8V14.5H3V16H8V21H9.5V16L14.5 16V21H16V16H21V14.5H16V12H14.5V14.5L9.5 14.5V9.5L12 9.5V8Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0322 7.44642C18.4983 8.35236 16.4895 8.14636 15.1716 6.82843C13.6095 5.26633 13.6095 2.73367 15.1716 1.17157C16.7337 -0.390524 19.2663 -0.390524 20.8284 1.17157C22.2708 2.61393 22.3813 4.88377 21.1601 6.45299L23.3033 8.59619L22.2427 9.65685L20.0322 7.44642ZM19.7678 5.76777C18.7915 6.74408 17.2085 6.74408 16.2322 5.76777C15.2559 4.79146 15.2559 3.20854 16.2322 2.23223C17.2085 1.25592 18.7915 1.25592 19.7678 2.23223C20.7441 3.20854 20.7441 4.79146 19.7678 5.76777Z",fill:"currentColor"})]}),HashPlus:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M12 8L9.5 8V3H8V8L3 8V9.5H8V14.5H3V16H8V21H9.5V16L14.5 16V21H16V16H21V14.5H16V12H14.5V14.5L9.5 14.5V9.5L12 9.5V8Z",fill:"currentColor"}),a.jsx("path",{d:"M19 2H17V5H14V7H17V10H19V7H22V5H19V2Z",fill:"currentColor"})]}),Space:()=>a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4055 9.59452L14.2338 8.5223C13.9568 6.79272 13.4927 5.41447 12.9703 4.51403C12.4033 3.53675 12.013 3.5 12 3.5C11.987 3.5 11.5967 3.53675 11.0297 4.51403C10.5073 5.41447 10.0432 6.79272 9.76623 8.5223L9.59452 9.59452L8.5223 9.76623C6.79272 10.0432 5.41447 10.5073 4.51403 11.0297C3.53675 11.5967 3.5 11.987 3.5 12C3.5 12.013 3.53675 12.4033 4.51403 12.9703C5.41447 13.4927 6.79272 13.9568 8.5223 14.2338L9.59452 14.4055L9.76623 15.4777C10.0432 17.2073 10.5073 18.5855 11.0297 19.486C11.5967 20.4633 11.987 20.5 12 20.5C12.013 20.5 12.4033 20.4633 12.9703 19.486C13.4927 18.5855 13.9568 17.2073 14.2338 15.4777L14.4055 14.4055L15.4777 14.2338C17.2073 13.9568 18.5855 13.4927 19.486 12.9703C20.4633 12.4033 20.5 12.013 20.5 12C20.5 11.987 20.4633 11.5967 19.486 11.0297C18.5855 10.5073 17.2073 10.0432 15.4777 9.76623L14.4055 9.59452ZM15.7149 15.7149C19.3983 15.125 22 13.684 22 12C22 10.316 19.3983 8.87498 15.7149 8.28511C15.125 4.60173 13.684 2 12 2C10.316 2 8.87498 4.60173 8.28511 8.28511C4.60173 8.87498 2 10.316 2 12C2 13.684 4.60173 15.125 8.28511 15.7149C8.87498 19.3983 10.316 22 12 22C13.684 22 15.125 19.3983 15.7149 15.7149Z",fill:"currentColor"}),SpaceLock:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M12 2C10.316 2 8.87498 4.60173 8.28511 8.28511C4.60173 8.87498 2 10.316 2 12C2 13.684 4.60173 15.125 8.28511 15.7149C8.87498 19.3983 10.316 22 12 22C13.684 22 15.125 19.3983 15.7149 15.7149C19.3983 15.125 22 13.684 22 12H20.5C20.5 12.013 20.4633 12.4033 19.486 12.9703C18.5855 13.4927 17.2073 13.9568 15.4777 14.2338L14.4055 14.4055L14.2338 15.4777C13.9568 17.2073 13.4927 18.5855 12.9703 19.486C12.4033 20.4633 12.013 20.5 12 20.5C11.987 20.5 11.5967 20.4633 11.0297 19.486C10.5073 18.5855 10.0432 17.2073 9.76623 15.4777L9.59452 14.4055L8.5223 14.2338C6.79272 13.9568 5.41447 13.4927 4.51403 12.9703C3.53675 12.4033 3.5 12.013 3.5 12C3.5 11.987 3.53675 11.5967 4.51403 11.0297C5.41447 10.5073 6.79272 10.0432 8.5223 9.76623L9.59452 9.59452L9.76623 8.5223C10.0432 6.79272 10.5073 5.41447 11.0297 4.51403C11.5967 3.53675 11.987 3.5 12 3.5V2Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 4V3C15 1.34315 16.3431 0 18 0C19.6569 0 21 1.34315 21 3V4H22V10H14V4H15ZM19.5 3V4H16.5V3C16.5 2.17157 17.1716 1.5 18 1.5C18.8284 1.5 19.5 2.17157 19.5 3Z",fill:"currentColor"})]}),SpaceGlobe:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 5C24 7.76142 21.7614 10 19 10C16.2386 10 14 7.76142 14 5C14 2.23858 16.2386 0 19 0C21.7614 0 24 2.23858 24 5ZM17 7.87266V5L15.7354 3.73543C15.5834 4.12764 15.5 4.55408 15.5 5C15.5 6.18937 16.0933 7.24018 17 7.87266ZM22.5 5C22.5 6.18937 21.9067 7.24018 21 7.87266V6.5H19V5H20V3.5H21V2.12734C21.9067 2.75982 22.5 3.81063 22.5 5Z",fill:"currentColor"}),a.jsx("path",{d:"M12 2C10.316 2 8.87498 4.60173 8.28511 8.28511C4.60173 8.87498 2 10.316 2 12C2 13.684 4.60173 15.125 8.28511 15.7149C8.87498 19.3983 10.316 22 12 22C13.684 22 15.125 19.3983 15.7149 15.7149C19.3983 15.125 22 13.684 22 12H20.5C20.5 12.013 20.4633 12.4033 19.486 12.9703C18.5855 13.4927 17.2073 13.9568 15.4777 14.2338L14.4055 14.4055L14.2338 15.4777C13.9568 17.2073 13.4927 18.5855 12.9703 19.486C12.4033 20.4633 12.013 20.5 12 20.5C11.987 20.5 11.5967 20.4633 11.0297 19.486C10.5073 18.5855 10.0432 17.2073 9.76623 15.4777L9.59452 14.4055L8.5223 14.2338C6.79272 13.9568 5.41447 13.4927 4.51403 12.9703C3.53675 12.4033 3.5 12.013 3.5 12C3.5 11.987 3.53675 11.5967 4.51403 11.0297C5.41447 10.5073 6.79272 10.0432 8.5223 9.76623L9.59452 9.59452L9.76623 8.5223C10.0432 6.79272 10.5073 5.41447 11.0297 4.51403C11.5967 3.53675 11.987 3.5 12 3.5V2Z",fill:"currentColor"})]}),SpaceSearch:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M12 2C10.316 2 8.87498 4.60173 8.28511 8.28511C4.60173 8.87498 2 10.316 2 12C2 13.684 4.60173 15.125 8.28511 15.7149C8.87498 19.3983 10.316 22 12 22C13.684 22 15.125 19.3983 15.7149 15.7149C19.3983 15.125 22 13.684 22 12H20.5C20.5 12.013 20.4633 12.4033 19.486 12.9703C18.5855 13.4927 17.2073 13.9568 15.4777 14.2338L14.4055 14.4055L14.2338 15.4777C13.9568 17.2073 13.4927 18.5855 12.9703 19.486C12.4033 20.4633 12.013 20.5 12 20.5C11.987 20.5 11.5967 20.4633 11.0297 19.486C10.5073 18.5855 10.0432 17.2073 9.76623 15.4777L9.59452 14.4055L8.5223 14.2338C6.79272 13.9568 5.41447 13.4927 4.51403 12.9703C3.53675 12.4033 3.5 12.013 3.5 12C3.5 11.987 3.53675 11.5967 4.51403 11.0297C5.41447 10.5073 6.79272 10.0432 8.5223 9.76623L9.59452 9.59452L9.76623 8.5223C10.0432 6.79272 10.5073 5.41447 11.0297 4.51403C11.5967 3.53675 11.987 3.5 12 3.5V2Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.0322 7.44642C18.4983 8.35236 16.4895 8.14636 15.1716 6.82843C13.6095 5.26633 13.6095 2.73367 15.1716 1.17157C16.7337 -0.390524 19.2663 -0.390524 20.8284 1.17157C22.2708 2.61393 22.3813 4.88377 21.1601 6.45299L23.3033 8.59619L22.2427 9.65685L20.0322 7.44642ZM19.7678 5.76777C18.7915 6.74408 17.2085 6.74408 16.2322 5.76777C15.2559 4.79146 15.2559 3.20854 16.2322 2.23223C17.2085 1.25592 18.7915 1.25592 19.7678 2.23223C20.7441 3.20854 20.7441 4.79146 19.7678 5.76777Z",fill:"currentColor"})]}),SpacePlus:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M12 2C10.316 2 8.87498 4.60173 8.28511 8.28511C4.60173 8.87498 2 10.316 2 12C2 13.684 4.60173 15.125 8.28511 15.7149C8.87498 19.3983 10.316 22 12 22C13.684 22 15.125 19.3983 15.7149 15.7149C19.3983 15.125 22 13.684 22 12H20.5C20.5 12.013 20.4633 12.4033 19.486 12.9703C18.5855 13.4927 17.2073 13.9568 15.4777 14.2338L14.4055 14.4055L14.2338 15.4777C13.9568 17.2073 13.4927 18.5855 12.9703 19.486C12.4033 20.4633 12.013 20.5 12 20.5C11.987 20.5 11.5967 20.4633 11.0297 19.486C10.5073 18.5855 10.0432 17.2073 9.76623 15.4777L9.59452 14.4055L8.5223 14.2338C6.79272 13.9568 5.41447 13.4927 4.51403 12.9703C3.53675 12.4033 3.5 12.013 3.5 12C3.5 11.987 3.53675 11.5967 4.51403 11.0297C5.41447 10.5073 6.79272 10.0432 8.5223 9.76623L9.59452 9.59452L9.76623 8.5223C10.0432 6.79272 10.5073 5.41447 11.0297 4.51403C11.5967 3.53675 11.987 3.5 12 3.5V2Z",fill:"currentColor"}),a.jsx("path",{d:"M19 2H17V5H14V7H17V10H19V7H22V5H19V2Z",fill:"currentColor"})]}),ChevronRight:()=>a.jsx("path",{d:"M16.1421 12L9.07107 4.92893L8.01041 5.98959L14.0208 12L8.01041 18.0104L9.07107 19.0711L16.1421 12Z",fill:"currentColor"}),ChevronLeft:()=>a.jsx("path",{d:"M6.85786 12L13.9289 19.0711L14.9896 18.0104L8.97918 12L14.9896 5.98959L13.9289 4.92893L6.85786 12Z",fill:"currentColor"}),ChevronTop:()=>a.jsx("path",{d:"M12 6.85786L4.92893 13.9289L5.98959 14.9896L12 8.97918L18.0104 14.9896L19.0711 13.9289L12 6.85786Z",fill:"currentColor"}),ChevronBottom:()=>a.jsx("path",{d:"M12 17.1421L19.0711 10.0711L18.0104 9.01041L12 15.0208L5.98959 9.01041L4.92893 10.0711L12 17.1421Z",fill:"currentColor"}),Plus:()=>a.jsx("path",{d:"M13 5H11V11H5V13H11V19H13V13H19V11H13V5Z",fill:"currentColor"}),Minus:()=>a.jsx("rect",{x:"5",y:"11",width:"14",height:"2",fill:"currentColor"}),Cross:()=>a.jsx("path",{d:"M7.58056 6.51993L6.5199 7.58059L10.9393 12L6.5199 16.4194L7.58056 17.4801L12 13.0607L16.4194 17.4801L17.4801 16.4194L13.0606 12L17.4801 7.58059L16.4194 6.51993L12 10.9393L7.58056 6.51993Z",fill:"currentColor"}),VerticalDots:()=>a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"10",y:"3",width:"4",height:"4",fill:"currentColor"}),a.jsx("rect",{x:"10",y:"10",width:"4",height:"4",fill:"currentColor"}),a.jsx("rect",{x:"10",y:"17",width:"4",height:"4",fill:"currentColor"})]}),HorizontalDots:()=>a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"3",y:"10",width:"4",height:"4",fill:"currentColor"}),a.jsx("rect",{x:"10",y:"10",width:"4",height:"4",fill:"currentColor"}),a.jsx("rect",{x:"17",y:"10",width:"4",height:"4",fill:"currentColor"})]}),Check:()=>a.jsx("path",{d:"M9.52513 17.9246L4.57538 12.9749L5.63604 11.9142L9.52513 15.8033L18.364 6.96448L19.4246 8.02514L9.52513 17.9246Z",fill:"currentColor"}),CheckTwice:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M2.95404 12.4749L7.90379 17.4246L8.96445 16.364L4.0147 11.4142L2.95404 12.4749Z",fill:"currentColor"}),a.jsx("path",{d:"M11.0858 12.1213L12.1464 13.182L17.8033 7.52514L16.7426 6.46448L11.0858 12.1213Z",fill:"currentColor"}),a.jsx("path",{d:"M12.1465 17.4246L7.19672 12.4749L8.25738 11.4142L12.1465 15.3033L20.9853 6.46448L22.046 7.52514L12.1465 17.4246Z",fill:"currentColor"})]}),Download:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M3 14H4.5V19.5H19.5V14H21V21H3V14Z",fill:"currentColor"}),a.jsx("path",{d:"M11.25 3H12.75V15H11.25V3Z",fill:"currentColor"}),a.jsx("path",{d:"M8.82067 11.6993L7.76001 12.76L12.0027 17.0027L16.2453 12.76L15.1846 11.6993L12.0027 14.8813L8.82067 11.6993Z",fill:"currentColor"})]}),External:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M12 3H3V21H21V12H19.5V19.5H4.5V4.5H12V3Z",fill:"currentColor"}),a.jsx("path",{d:"M14 4.5V3H21V10L19.5 10V4.5H14Z",fill:"currentColor"}),a.jsx("rect",{x:"11.9341",y:"11.0052",width:"10",height:"1.5",transform:"rotate(-45 11.9341 11.0052)",fill:"currentColor"})]}),RecentClock:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M20.5 12C20.5 16.6944 16.6944 20.5 12 20.5C7.30558 20.5 3.5 16.6944 3.5 12H2C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C8.29859 2 5.06687 4.01099 3.33782 7H5.1254C6.67093 4.87867 9.17446 3.5 12 3.5C16.6944 3.5 20.5 7.30558 20.5 12Z",fill:"currentColor"}),a.jsx("path",{d:"M4.5 3H3V8H8V6.5H4.5V3Z",fill:"currentColor"}),a.jsx("path",{d:"M11 7L13 6.99997L13 11.5858L16.9498 15.5355L15.5355 16.9497L11 12.4142L11 7Z",fill:"currentColor"})]}),Power:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M17.3033 6.69671C18.6605 8.05394 19.5 9.92894 19.5 12C19.5 16.1421 16.1421 19.5 12 19.5C7.85786 19.5 4.5 16.1421 4.5 12C4.5 9.92894 5.33947 8.05394 6.6967 6.69671L5.63604 5.63605C4.00736 7.26473 3 9.51473 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 9.51473 19.9926 7.26473 18.364 5.63605L17.3033 6.69671Z",fill:"currentColor"}),a.jsx("rect",{x:"11",y:"2",width:"2",height:"10",fill:"currentColor"})]}),ReplyArrow:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M21 9.5V8H7V16H8.5V9.5H21Z",fill:"currentColor"}),a.jsx("path",{d:"M4.56066 12.6993L3.5 13.76L7.74264 18.0027L11.9853 13.76L10.9246 12.6993L7.74264 15.8813L4.56066 12.6993Z",fill:"currentColor"})]}),ArrowGoRight:()=>a.jsx("path",{d:"M18.124 13H8C5.23858 13 3 10.7614 3 8C3 5.23858 5.23858 3 8 3V4.5C6.067 4.5 4.5 6.067 4.5 8C4.5 9.933 6.067 11.5 8 11.5H18.1387L15.6993 9.06067L16.76 8.00001L21.0027 12.2427L16.76 16.4853L15.6993 15.4246L18.124 13Z",fill:"currentColor"}),ArrowGoRightPlus:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M18.124 13H8C5.23858 13 3 10.7614 3 8C3 5.23858 5.23858 3 8 3V4.5C6.067 4.5 4.5 6.067 4.5 8C4.5 9.933 6.067 11.5 8 11.5H18.1387L15.6993 9.06067L16.76 8.00001L21.0027 12.2427L16.76 16.4853L15.6993 15.4246L18.124 13Z",fill:"currentColor"}),a.jsx("path",{d:"M4 15H6V23H4V15Z",fill:"currentColor"}),a.jsx("path",{d:"M9 18L9 20L1 20L1 18L9 18Z",fill:"currentColor"})]}),ArrowGoRightCross:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M2.7019 14.6412L1.64124 15.7019L3.93933 18L1.64124 20.2981L2.7019 21.3587L4.99999 19.0607L7.29809 21.3587L8.35875 20.2981L6.06065 18L8.35875 15.7019L7.29809 14.6412L4.99999 16.9393L2.7019 14.6412Z",fill:"currentColor"}),a.jsx("path",{d:"M18.124 13H8C5.23858 13 3 10.7614 3 8C3 5.23858 5.23858 3 8 3V4.5C6.067 4.5 4.5 6.067 4.5 8C4.5 9.933 6.067 11.5 8 11.5H18.1387L15.6993 9.06067L16.76 8.00001L21.0027 12.2427L16.76 16.4853L15.6993 15.4246L18.124 13Z",fill:"currentColor"})]}),ArrowGoLeft:()=>a.jsx("path",{d:"M5.87871 13H16.0027C18.7641 13 21.0027 10.7614 21.0027 8C21.0027 5.23858 18.7641 3 16.0027 3V4.5C17.9357 4.5 19.5027 6.067 19.5027 8C19.5027 9.933 17.9357 11.5 16.0027 11.5H5.86401L8.30334 9.06067L7.24268 8.00001L3.00003 12.2427L7.24268 16.4853L8.30334 15.4246L5.87871 13Z",fill:"currentColor"}),Markdown:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M17.25 13V8H15.75V13H14L16.5 15.5L19 13H17.25Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 5.5H3.5V18.5H20.5V5.5ZM2 4V20H22V4H2Z",fill:"currentColor"}),a.jsx("path",{d:"M6.5 11L9 12.875L11.5 11V15.5H13V8L9 11L5 8V15.5H6.5V11Z",fill:"currentColor"})]}),Attachment:()=>a.jsx("path",{d:"M9.17158 4.92891L2.80762 11.2929L3.86828 12.3535L10.2322 5.98957C12.3801 3.84169 15.8625 3.84169 18.0104 5.98957C20.1583 8.13746 20.1583 11.6199 18.0104 13.7677L12.3536 19.4246C10.9867 20.7914 8.77065 20.7914 7.40381 19.4246C6.03698 18.0578 6.03698 15.8417 7.40381 14.4749L13.0607 8.818C13.6465 8.23222 14.5962 8.23222 15.182 8.818C15.7678 9.40379 15.7678 10.3535 15.182 10.9393L9.52513 16.5962L10.5858 17.6568L16.2426 12C17.4142 10.8284 17.4142 8.92892 16.2426 7.75734C15.0711 6.58577 13.1716 6.58577 12 7.75734L6.34315 13.4142C4.39053 15.3668 4.39053 18.5326 6.34315 20.4853C8.29577 22.4379 11.4616 22.4379 13.4142 20.4853L19.0711 14.8284C21.8047 12.0947 21.8047 7.66258 19.0711 4.92891C16.3374 2.19524 11.9052 2.19524 9.17158 4.92891Z",fill:"currentColor"}),Alphabet:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 18L7 5H9L13 18H11.5L10.4348 14.5H5.56522L4.5 18H3ZM6.02174 13H9.97826L8 6.5L6.02174 13Z",fill:"currentColor"}),a.jsx("path",{d:"M16.9773 18.0455C16.4242 18.0455 15.9223 17.9413 15.4716 17.733C15.0208 17.5208 14.6629 17.2159 14.3977 16.8182C14.1326 16.4167 14 15.9318 14 15.3636C14 14.8636 14.0985 14.4583 14.2955 14.1477C14.4924 13.8333 14.7557 13.5871 15.0852 13.4091C15.4148 13.2311 15.7784 13.0985 16.1761 13.0114C16.5777 12.9205 16.9811 12.8485 17.3864 12.7955C17.9167 12.7273 18.3466 12.6761 18.6761 12.642C19.0095 12.6042 19.2519 12.5417 19.4034 12.4545C19.5587 12.3674 19.6364 12.2159 19.6364 12V11.9545C19.6364 11.3939 19.483 10.9583 19.1761 10.6477C18.8731 10.3371 18.4129 10.1818 17.7955 10.1818C17.1553 10.1818 16.6534 10.322 16.2898 10.6023C15.9261 10.8826 15.6705 11.1818 15.5227 11.5L14.25 11.0455C14.4773 10.5152 14.7803 10.1023 15.1591 9.80682C15.5417 9.50758 15.9583 9.29924 16.4091 9.18182C16.8636 9.06061 17.3106 9 17.75 9C18.0303 9 18.3523 9.03409 18.7159 9.10227C19.0833 9.16667 19.4375 9.30114 19.7784 9.50568C20.1231 9.71023 20.4091 10.0189 20.6364 10.4318C20.8636 10.8447 20.9773 11.3977 20.9773 12.0909V17.8409H19.6364V16.6591H19.5682C19.4773 16.8485 19.3258 17.0511 19.1136 17.267C18.9015 17.483 18.6193 17.6667 18.267 17.8182C17.9148 17.9697 17.4848 18.0455 16.9773 18.0455ZM17.1818 16.8409C17.7121 16.8409 18.1591 16.7367 18.5227 16.5284C18.8902 16.3201 19.1667 16.0511 19.3523 15.7216C19.5417 15.392 19.6364 15.0455 19.6364 14.6818V13.4545C19.5795 13.5227 19.4545 13.5852 19.2614 13.642C19.072 13.6951 18.8523 13.7424 18.6023 13.7841C18.3561 13.822 18.1155 13.8561 17.8807 13.8864C17.6496 13.9129 17.4621 13.9356 17.3182 13.9545C16.9697 14 16.6439 14.0739 16.3409 14.1761C16.0417 14.2746 15.7992 14.4242 15.6136 14.625C15.4318 14.822 15.3409 15.0909 15.3409 15.4318C15.3409 15.8977 15.5133 16.25 15.858 16.4886C16.2064 16.7235 16.6477 16.8409 17.1818 16.8409Z",fill:"currentColor"})]}),AlphabetUnderline:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 17L7 4H9L13 17H11.5L10.4348 13.5H5.56522L4.5 17H3ZM6.02174 12H9.97826L8 5.5L6.02174 12Z",fill:"currentColor"}),a.jsx("path",{d:"M16.9773 17.0455C16.4242 17.0455 15.9223 16.9413 15.4716 16.733C15.0208 16.5208 14.6629 16.2159 14.3977 15.8182C14.1326 15.4167 14 14.9318 14 14.3636C14 13.8636 14.0985 13.4583 14.2955 13.1477C14.4924 12.8333 14.7557 12.5871 15.0852 12.4091C15.4148 12.2311 15.7784 12.0985 16.1761 12.0114C16.5777 11.9205 16.9811 11.8485 17.3864 11.7955C17.9167 11.7273 18.3466 11.6761 18.6761 11.642C19.0095 11.6042 19.2519 11.5417 19.4034 11.4545C19.5587 11.3674 19.6364 11.2159 19.6364 11V10.9545C19.6364 10.3939 19.483 9.95833 19.1761 9.64773C18.8731 9.33712 18.4129 9.18182 17.7955 9.18182C17.1553 9.18182 16.6534 9.32197 16.2898 9.60227C15.9261 9.88258 15.6705 10.1818 15.5227 10.5L14.25 10.0455C14.4773 9.51515 14.7803 9.10227 15.1591 8.80682C15.5417 8.50758 15.9583 8.29924 16.4091 8.18182C16.8636 8.06061 17.3106 8 17.75 8C18.0303 8 18.3523 8.03409 18.7159 8.10227C19.0833 8.16667 19.4375 8.30114 19.7784 8.50568C20.1231 8.71023 20.4091 9.01894 20.6364 9.43182C20.8636 9.8447 20.9773 10.3977 20.9773 11.0909V16.8409H19.6364V15.6591H19.5682C19.4773 15.8485 19.3258 16.0511 19.1136 16.267C18.9015 16.483 18.6193 16.6667 18.267 16.8182C17.9148 16.9697 17.4848 17.0455 16.9773 17.0455ZM17.1818 15.8409C17.7121 15.8409 18.1591 15.7367 18.5227 15.5284C18.8902 15.3201 19.1667 15.0511 19.3523 14.7216C19.5417 14.392 19.6364 14.0455 19.6364 13.6818V12.4545C19.5795 12.5227 19.4545 12.5852 19.2614 12.642C19.072 12.6951 18.8523 12.7424 18.6023 12.7841C18.3561 12.822 18.1155 12.8561 17.8807 12.8864C17.6496 12.9129 17.4621 12.9356 17.3182 12.9545C16.9697 13 16.6439 13.0739 16.3409 13.1761C16.0417 13.2746 15.7992 13.4242 15.6136 13.625C15.4318 13.822 15.3409 14.0909 15.3409 14.4318C15.3409 14.8977 15.5133 15.25 15.858 15.4886C16.2064 15.7235 16.6477 15.8409 17.1818 15.8409Z",fill:"currentColor"}),a.jsx("path",{d:"M2 18.5H22V20H2V18.5Z",fill:"currentColor"})]}),Text:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M6 5.5V4H18V5.5H6Z",fill:"currentColor"}),a.jsx("path",{d:"M11.25 5H12.75V19H11.25V5Z",fill:"currentColor"})]}),Heading1:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M20 20H18.5V13H17V12L20 11V20Z",fill:"currentColor"}),a.jsx("path",{d:"M3 20V4H4.5V11H12.5V4H14V20H12.5V12.5H4.5V20H3Z",fill:"currentColor"})]}),Heading2:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M3 20V4H4.5V11H12.5V4H14V20H12.5V12.5H4.5V20H3Z",fill:"currentColor"}),a.jsx("path",{d:"M21 20V18.5H18L20.0072 16.1583C20.6478 15.4109 21 14.4589 21 13.4744C21 12.1078 19.8794 11 18.5129 11C17.1321 11 16 12.1193 16 13.5V14H17.5V13.5C17.5 12.9477 17.9477 12.5 18.5 12.5C19.0523 12.5 19.5 12.9477 19.5 13.5V13.7485C19.5 14.233 19.3242 14.701 19.0052 15.0655L16 18.5V20H21Z",fill:"currentColor"})]}),Heading3:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M3 20V4H4.5V11H12.5V4H14V20H12.5V12.5H4.5V20H3Z",fill:"currentColor"}),a.jsx("path",{d:"M18.5 11C17.2905 11 16.2816 11.8589 16.05 13L17.6338 13C17.8067 12.7011 18.1298 12.5 18.5 12.5C19.0523 12.5 19.5 12.9477 19.5 13.5V13.75C19.5 14.3023 19.0523 14.75 18.5 14.75H18V16.25H18.5C19.0523 16.25 19.5 16.6977 19.5 17.25V17.5C19.5 18.0523 19.0523 18.5 18.5 18.5C18.1298 18.5 17.8067 18.2989 17.6338 18L16.05 18C16.2816 19.1411 17.2905 20 18.5 20C19.8807 20 21 18.8807 21 17.5V17.25C21 16.5686 20.7274 15.9509 20.2853 15.5C20.7274 15.0491 21 14.4314 21 13.75V13.5C21 12.1193 19.8807 11 18.5 11Z",fill:"currentColor"})]}),Bold:()=>a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5013 11.6717C15.4198 10.8697 16 9.69009 16 8.375C16 5.95875 14.0412 4 11.625 4H7V20H12.625C15.0412 20 17 18.0412 17 15.625C17 13.8803 15.9787 12.3741 14.5013 11.6717ZM8.5 5.5H11.625C13.2128 5.5 14.5 6.78718 14.5 8.375C14.5 9.96282 13.2128 11.25 11.625 11.25H8.5V5.5ZM8.5 12.75V18.5H12.625C14.2128 18.5 15.5 17.2128 15.5 15.625C15.5 14.0372 14.2128 12.75 12.625 12.75H8.5Z",fill:"currentColor"}),Italic:()=>a.jsx("path",{d:"M18 4H10V5.5H13.5L9 18.5H6V20H14V18.5H10.5L15 5.5H18V4Z",fill:"currentColor"}),Underline:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M8.5 5H7V12C7 14.7614 9.23858 17 12 17C14.7614 17 17 14.7614 17 12V5H15.5V12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12V5Z",fill:"currentColor"}),a.jsx("path",{d:"M5 18.5V20H19V18.5H5Z",fill:"currentColor"})]}),Strike:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M6.75 8.25C6.75 5.90279 8.65279 4 11 4H12.75C14.6622 4 16.2794 5.26283 16.8132 7H15.2001C14.745 6.10958 13.8187 5.5 12.75 5.5H11C9.48122 5.5 8.25 6.73122 8.25 8.25C8.25 9.76878 9.48122 11 11 11H20V12.5H4V11H7.75952C7.12987 10.2588 6.75 9.29875 6.75 8.25Z",fill:"currentColor"}),a.jsx("path",{d:"M14.8714 14H16.6241C16.8656 14.5337 17 15.1261 17 15.75C17 18.0972 15.0972 20 12.75 20H11C9.08782 20 7.47058 18.7372 6.9368 17H8.54985C9.00503 17.8904 9.93133 18.5 11 18.5H12.75C14.2688 18.5 15.5 17.2688 15.5 15.75C15.5 15.0852 15.2641 14.4755 14.8714 14Z",fill:"currentColor"})]}),Link:()=>a.jsxs(a.Fragment,{children:[a.jsx("rect",{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"}),a.jsx("path",{d:"M11 7H8C5.23858 7 3 9.23858 3 12C3 14.7614 5.23858 17 8 17H11V15.5H8C6.067 15.5 4.5 13.933 4.5 12C4.5 10.067 6.067 8.5 8 8.5H11V7Z",fill:"currentColor"}),a.jsx("path",{d:"M13 15.5H16C17.933 15.5 19.5 13.933 19.5 12C19.5 10.067 17.933 8.5 16 8.5H13V7H16C18.7614 7 21 9.23858 21 12C21 14.7614 18.7614 17 16 17H13V15.5Z",fill:"currentColor"})]}),Code:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M8.30334 8.82067L7.24268 7.76001L3.00004 12.0027L7.24268 16.2453L8.30334 15.1846L5.12136 12.0027L8.30334 8.82067Z",fill:"currentColor"}),a.jsx("path",{d:"M15.6993 8.82067L16.76 7.76001L21.0027 12.0027L16.76 16.2453L15.6993 15.1846L18.8813 12.0027L15.6993 8.82067Z",fill:"currentColor"}),a.jsx("path",{d:"M12.5 6L10 18H11.5L14 6H12.5Z",fill:"currentColor"})]}),BlockCode:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M10 3H7C5.34315 3 4 4.34315 4 6V10C4 10.5523 3.55228 11 3 11H2V12.5H3C3.55228 12.5 4 12.9477 4 13.5V17.5C4 19.1569 5.34315 20.5 7 20.5H10V19H7C6.17157 19 5.5 18.3284 5.5 17.5V13.5C5.5 12.8186 5.22742 12.2009 4.78536 11.75C5.22742 11.2991 5.5 10.6814 5.5 10V6C5.5 5.17157 6.17157 4.5 7 4.5H10V3Z",fill:"currentColor"}),a.jsx("path",{d:"M13 3H16C17.6569 3 19 4.34315 19 6V10C19 10.5523 19.4477 11 20 11H21V12.5H20C19.4477 12.5 19 12.9477 19 13.5V17.5C19 19.1569 17.6569 20.5 16 20.5H13V19H16C16.8284 19 17.5 18.3284 17.5 17.5V13.5C17.5 12.8186 17.7726 12.2009 18.2146 11.75C17.7726 11.2991 17.5 10.6814 17.5 10V6C17.5 5.17157 16.8284 4.5 16 4.5H13V3Z",fill:"currentColor"})]}),BlockQuote:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 6H18C15.2386 6 13 8.23858 13 11V20H21V12H14.5V11C14.5 9.067 16.067 7.5 18 7.5H21V6ZM19.5 13.5H14.5V18.5H19.5V13.5Z",fill:"currentColor"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 20H11V12H4.5V11C4.5 9.067 6.067 7.5 8 7.5H11V6H8C5.23858 6 3 8.23858 3 11V20ZM9.5 13.5H4.5V18.5H9.5V13.5Z",fill:"currentColor"})]}),OrderList:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M8 5H22V6.5H8V5Z",fill:"currentColor"}),a.jsx("path",{d:"M8 11H22V12.5H8V11Z",fill:"currentColor"}),a.jsx("path",{d:"M8 17.5H22V19H8V17.5Z",fill:"currentColor"}),a.jsx("path",{d:"M4 11H3V5.55556H2V4.77778L4 4V11Z",fill:"currentColor"}),a.jsx("path",{d:"M6 20V18.8333H3.6L5.20573 17.012C5.71827 16.4307 6 15.6902 6 14.9245C6 13.8617 5.10355 13 4.01028 13C2.90571 13 2 13.8706 2 14.9444V15.3333H3.2V14.9444C3.2 14.5149 3.55817 14.1667 4 14.1667C4.44183 14.1667 4.8 14.5149 4.8 14.9444V15.1377C4.8 15.5145 4.65933 15.8785 4.40412 16.1621L2 18.8333V20H6Z",fill:"currentColor"})]}),UnorderList:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M8 5H22V6.5H8V5Z",fill:"currentColor"}),a.jsx("path",{d:"M8 11H22V12.5H8V11Z",fill:"currentColor"}),a.jsx("path",{d:"M8 17.5H22V19H8V17.5Z",fill:"currentColor"}),a.jsx("rect",{x:"3",y:"5",width:"2",height:"2",fill:"currentColor"}),a.jsx("rect",{x:"3",y:"11",width:"2",height:"2",fill:"currentColor"}),a.jsx("rect",{x:"3",y:"17",width:"2",height:"2",fill:"currentColor"})]}),Mention:()=>a.jsx("path",{d:"M12.4105 21.527C10.8892 21.527 9.54441 21.3182 8.37608 20.9006C7.20776 20.488 6.22587 19.8789 5.43041 19.0735C4.63496 18.2681 4.0334 17.2813 3.62573 16.113C3.21806 14.9446 3.01422 13.6073 3.01422 12.1009C3.01422 10.6442 3.22054 9.34165 3.63318 8.19321C4.0508 7.04478 4.65485 6.07035 5.44533 5.26992C6.24078 4.46452 7.20527 3.85053 8.3388 3.42795C9.47729 3.00536 10.7649 2.79407 12.2017 2.79407C13.5987 2.79407 14.8217 3.02276 15.8708 3.48015C16.9247 3.93256 17.8047 4.54655 18.5107 5.32212C19.2216 6.09272 19.7536 6.96026 20.1066 7.92475C20.4645 8.88924 20.6435 9.88356 20.6435 10.9077C20.6435 11.6286 20.6087 12.3594 20.5391 13.1002C20.4695 13.8409 20.3228 14.5221 20.0991 15.1435C19.8754 15.76 19.5298 16.2571 19.0625 16.635C18.6002 17.0128 17.9737 17.2017 17.1833 17.2017C16.8352 17.2017 16.4524 17.1471 16.0348 17.0377C15.6172 16.9283 15.2468 16.7468 14.9237 16.4933C14.6005 16.2397 14.4091 15.8992 14.3494 15.4716H14.26C14.1406 15.76 13.9567 16.0334 13.7081 16.2919C13.4645 16.5505 13.1438 16.7568 12.7461 16.9109C12.3534 17.065 11.8736 17.1321 11.3068 17.1122C10.6605 17.0874 10.0913 16.9432 9.59909 16.6797C9.10691 16.4113 8.69426 16.0483 8.36117 15.5909C8.03304 15.1286 7.78446 14.5941 7.61543 13.9876C7.45137 13.3761 7.36933 12.7174 7.36933 12.0114C7.36933 11.3402 7.46877 10.7262 7.66763 10.1694C7.86649 9.6126 8.14242 9.12539 8.4954 8.70777C8.85336 8.29016 9.27097 7.95706 9.74824 7.70849C10.2305 7.45493 10.75 7.29833 11.3068 7.23867C11.804 7.18895 12.2564 7.21133 12.6641 7.30579C13.0717 7.39528 13.4073 7.53199 13.6708 7.71594C13.9343 7.89492 14.1009 8.09378 14.1705 8.31253H14.26V7.47731H15.8409V14.2188C15.8409 14.6364 15.9578 15.0043 16.1914 15.3225C16.4251 15.6407 16.7656 15.7997 17.2131 15.7997C17.7202 15.7997 18.108 15.6257 18.3764 15.2777C18.6499 14.9297 18.8363 14.3928 18.9357 13.6669C19.0401 12.9411 19.0923 12.0114 19.0923 10.8779C19.0923 10.2117 19.0004 9.55543 18.8164 8.90912C18.6374 8.25785 18.364 7.64883 17.9961 7.08207C17.6332 6.5153 17.1733 6.01566 16.6165 5.58313C16.0597 5.1506 15.4059 4.81253 14.6552 4.56893C13.9095 4.32035 13.0618 4.19606 12.1122 4.19606C10.9439 4.19606 9.89739 4.37752 8.97267 4.74045C8.05293 5.0984 7.2699 5.6229 6.6236 6.31395C5.98226 7.00003 5.49256 7.83526 5.15449 8.81964C4.82139 9.79904 4.65485 10.9127 4.65485 12.1605C4.65485 13.4283 4.82139 14.5544 5.15449 15.5387C5.49256 16.5231 5.98972 17.3534 6.64597 18.0295C7.30719 18.7056 8.12502 19.2177 9.09945 19.5657C10.0739 19.9187 11.1975 20.0952 12.4702 20.0952C13.0171 20.0952 13.5565 20.043 14.0884 19.9386C14.6204 19.8342 15.0902 19.7198 15.4979 19.5956C15.9056 19.4713 16.1989 19.3793 16.3779 19.3196L16.7955 20.6918C16.4872 20.8211 16.0845 20.9503 15.5874 21.0796C15.0952 21.2088 14.5682 21.3157 14.0064 21.4002C13.4496 21.4848 12.9176 21.527 12.4105 21.527ZM11.5455 15.5909C12.2117 15.5909 12.7511 15.4567 13.1637 15.1882C13.5764 14.9198 13.8771 14.5146 14.0661 13.9727C14.255 13.4308 14.3494 12.7472 14.3494 11.9219C14.3494 11.0867 14.245 10.4354 14.0362 9.96807C13.8274 9.50074 13.5192 9.17262 13.1115 8.9837C12.7039 8.79478 12.2017 8.70032 11.6051 8.70032C11.0384 8.70032 10.5536 8.84947 10.1509 9.14776C9.75321 9.44108 9.44746 9.83384 9.23368 10.326C9.02488 10.8132 8.92047 11.3452 8.92047 11.9219C8.92047 12.5583 9.00499 13.1573 9.17402 13.7191C9.34306 14.276 9.61898 14.7284 10.0018 15.0764C10.3846 15.4194 10.8992 15.5909 11.5455 15.5909Z",fill:"currentColor"}),Filter:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M3 5H21V6.5H3V5Z",fill:"currentColor"}),a.jsx("path",{d:"M6 11H18V12.5H6V11Z",fill:"currentColor"}),a.jsx("path",{d:"M9 17.5H15V19H9V17.5Z",fill:"currentColor"})]}),Sort:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M3 5H21V6.5H3V5Z",fill:"currentColor"}),a.jsx("path",{d:"M3 11H15V12.5H3V11Z",fill:"currentColor"}),a.jsx("path",{d:"M3 17.5H9V19H3V17.5Z",fill:"currentColor"})]}),ArrowUpDown:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M7.99999 5.87868L7.99998 16L6.49999 16L6.49999 5.86398L4.06066 8.30331L3 7.24264L7.24264 3.00001L11.4853 7.24264L10.4246 8.30331L7.99999 5.87868Z",fill:"currentColor"}),a.jsx("path",{d:"M16 18.1213L16 8.00002L17.5 8L17.5 18.136L19.9393 15.6967L21 16.7574L16.7574 21L12.5147 16.7574L13.5754 15.6967L16 18.1213Z",fill:"currentColor"})]}),ArrowRight:()=>a.jsx("path",{d:"M18.124 12.6993H3.00002L3 11.1993L18.1387 11.1993L13 6.06064L14.0607 4.99998L21.0027 11.942L14.0607 18.8839L13 17.8233L18.124 12.6993Z",fill:"currentColor"}),ArrowLeft:()=>a.jsx("path",{d:"M5.8787 11.244L21.0027 11.244L21.0027 12.744L5.864 12.744L11.0027 17.8827L9.94203 18.9434L3.00003 12.0014L9.94203 5.05943L11.0027 6.12009L5.8787 11.244Z",fill:"currentColor"}),ArrowTop:()=>a.jsx("path",{d:"M12.7587 5.81938L12.7587 20.9433L11.2587 20.9434L11.2587 5.80467L6.12003 10.9434L5.05937 9.8827L12.0014 2.94071L18.9433 9.8827L17.8827 10.9434L12.7587 5.81938Z",fill:"currentColor"}),ArrowBottom:()=>a.jsx("path",{d:"M11.244 18.124L11.244 3.00002L12.744 3L12.744 18.1387L17.8827 13L18.9433 14.0607L12.0013 21.0027L5.05936 14.0607L6.12003 13L11.244 18.124Z",fill:"currentColor"}),ArrowDropRight:()=>a.jsx("path",{d:"M16.1421 12L9.07108 4.92892L9.00001 4.99999L9.07108 19.0711L16.1421 12Z",fill:"currentColor"}),ArrowDropLeft:()=>a.jsx("path",{d:"M7.85785 12L14.9289 19.0711L15 19L14.9289 4.92894L7.85785 12Z",fill:"currentColor"}),ArrowDropTop:()=>a.jsx("path",{d:"M12 7.85785L4.92892 14.9289L4.99999 15L19.0711 14.9289L12 7.85785Z",fill:"currentColor"}),ArrowDropBottom:()=>a.jsx("path",{d:"M12 16.1421L19.0711 9.07108L19 9.00001L4.92894 9.07108L12 16.1421Z",fill:"currentColor"}),Reload:()=>a.jsxs(a.Fragment,{children:[a.jsx("path",{d:"M20.5 12C20.5 16.6944 16.6944 20.5 12 20.5C7.30558 20.5 3.5 16.6944 3.5 12H2C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C8.29859 2 5.06687 4.01099 3.33782 7H5.1254C6.67093 4.87867 9.17446 3.5 12 3.5C16.6944 3.5 20.5 7.30558 20.5 12Z",fill:"currentColor"}),a.jsx("path",{d:"M4.5 3H3V8H8V6.5H4.5V3Z",fill:"currentColor"})]})};var Kse=qr({defaultClassName:"_1ke4j9q2 _1mqalmd1 _1mqalmd0",variantClassNames:{size:{50:"cpipac7",100:"cpipac8",200:"cpipac9",300:"cpipaca",400:"cpipacb",500:"cpipacc",600:"cpipacd",Inherit:"cpipac6"},variant:{Primary:"_1ke4j9qb",Secondary:"_1ke4j9qc",Success:"_1ke4j9qd",Warning:"_1ke4j9qe",Critical:"_1ke4j9qf"}},defaultVariants:{size:"400",variant:"Secondary"},compoundVariants:[]}),Gse="_1ke4j9qh",Yse="_1ke4j9qg _1mqalmd1 _1mqalmd0 _1bugis90 _1bugis91";const U6=f.forwardRef(({className:t,variant:e,size:n,style:r,...o},i)=>a.jsxs("span",{className:Ve(Kse({variant:e,size:n}),t),style:r,children:[a.jsx("input",{className:Yse,type:"checkbox",...o,ref:i}),a.jsx(Q,{className:Gse,"aria-hidden":!0,size:n,src:$.Check})]}));var Zse=qr({defaultClassName:"_1bv8u1w6 _1mqalmd1 _1mqalmd0 _1bugis90 _1bugis91",variantClassNames:{variant:{Background:"_1bv8u1w7",Surface:"_1bv8u1w8",SurfaceVariant:"_1bv8u1w9",Primary:"_1bv8u1wa",Secondary:"_1bv8u1wb",Success:"_1bv8u1wc",Warning:"_1bv8u1wd",Critical:"_1bv8u1we"},size:{400:"_1bv8u1wf",500:"_1bv8u1wg"},fill:{Soft:"_1bv8u1wh",None:"_1bv8u1wi"},outlined:{true:"_1bv8u1wj"},radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"}},defaultVariants:{variant:"Surface",fill:"Soft",size:"400",radii:"400"},compoundVariants:[]});const We=Ie(({as:t="button",className:e,variant:n,fill:r,size:o,outlined:i,radii:s,before:u,after:l,children:c,...d},F)=>a.jsxs(t,{className:Ve(Zse({variant:n,fill:r,size:o,outlined:i,radii:s}),e),"data-ui-before":u?!0:void 0,"data-ui-after":l?!0:void 0,...d,ref:F,children:[u,c,l]}));var Jse=qr({defaultClassName:"_5z5e2h1 _1mqalmd1 _1mqalmd0",variantClassNames:{variant:{Background:"_5z5e2h2",Surface:"_5z5e2h3",SurfaceVariant:"_5z5e2h4",Primary:"_5z5e2h5",Secondary:"_5z5e2h6",Success:"_5z5e2h7",Warning:"_5z5e2h8",Critical:"_5z5e2h9"}},defaultVariants:{variant:"Surface"},compoundVariants:[]});const cr=Ie(({as:t="div",className:e,variant:n,...r},o)=>a.jsx(t,{className:Ve(Jse({variant:n}),e),...r,ref:o}));var Xse=qr({defaultClassName:"hru6be0 _1mqalmd1 _1mqalmd0",variantClassNames:{variant:{Background:"hru6be1",Surface:"hru6be2",SurfaceVariant:"hru6be3",Primary:"hru6be4",Secondary:"hru6be5",Success:"hru6be6",Warning:"hru6be7",Critical:"hru6be8"},size:{300:"hru6be9",400:"hru6bea",500:"hru6beb",600:"hru6bec",700:"hru6bed"}},defaultVariants:{variant:"Surface",size:"400"},compoundVariants:[]});const In=Ie(({as:t="header",className:e,variant:n,size:r,...o},i)=>a.jsx(t,{className:Ve(Xse({variant:n,size:r}),e),...o,ref:i}));var Qse=qr({defaultClassName:"brs7ce5 _1mqalmd1 _1mqalmd0 _1bugis90 _1bugis91",variantClassNames:{size:{300:"brs7ce6",400:"brs7ce7",500:"brs7ce8",600:"brs7ce9"},variant:{Background:"brs7cea",Surface:"brs7ceb",SurfaceVariant:"brs7cec",Primary:"brs7ced",Secondary:"brs7cee",Success:"brs7cef",Warning:"brs7ceg",Critical:"brs7ceh"},fill:{Soft:"brs7cei",None:"brs7cej"},outlined:{true:"brs7cek"},radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"}},defaultVariants:{size:"400",variant:"Surface",fill:"Soft",radii:"400"},compoundVariants:[]});const Me=Ie(({as:t="button",className:e,size:n,variant:r,fill:o,radii:i,outlined:s,...u},l)=>a.jsx(t,{className:Ve(Qse({variant:r,fill:o,size:n,radii:i,outlined:s}),e),...u,ref:l}));var eue=qr({defaultClassName:"_1rrvnjm8 _1mqalmd1 _1mqalmd0",variantClassNames:{variant:{Background:"_1rrvnjm9",Surface:"_1rrvnjma",SurfaceVariant:"_1rrvnjmb",Primary:"_1rrvnjmc",Secondary:"_1rrvnjmd",Success:"_1rrvnjme",Warning:"_1rrvnjmf",Critical:"_1rrvnjmg"},size:{300:"_1rrvnjmh",400:"_1rrvnjmi",500:"_1rrvnjmj"},outlined:{true:"_1rrvnjmk"},radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"}},defaultVariants:{variant:"Background",size:"400",radii:"400"},compoundVariants:[]}),tue="_1rrvnjmr _1mqalmd1 _1mqalmd0 _1bugis91";const En=f.forwardRef(({className:t,style:e,variant:n,size:r,inputSize:o=1,outlined:i,radii:s,before:u,after:l,...c},d)=>a.jsxs("div",{className:Ve(eue({variant:n,size:r,outlined:i,radii:s}),t),style:e,"data-ui-before":u?!0:void 0,"data-ui-after":l?!0:void 0,children:[u,a.jsx("input",{className:tue,size:o,...c,ref:d}),l]}));var nue=qr({defaultClassName:"_1yan8dd1 _1mqalmd1 _1mqalmd0",variantClassNames:{variant:{Inherit:"_1yan8dd2",Background:"_1yan8dd3",Surface:"_1yan8dd4",SurfaceVariant:"_1yan8dd5",Primary:"_1yan8dd6",Secondary:"_1yan8dd7",Success:"_1yan8dd8",Warning:"_1yan8dd9",Critical:"_1yan8dda"},direction:{Horizontal:"_1yan8ddb",Vertical:"_1yan8ddc"},size:{300:"_1yan8ddd",400:"_1yan8dde",500:"_1yan8ddf",600:"_1yan8ddg",700:"_1yan8ddh"}},defaultVariants:{variant:"Surface",direction:"Horizontal",size:"400"},compoundVariants:[]});const jn=Ie(({as:t="div",className:e,variant:n,direction:r,size:o,...i},s)=>a.jsx(t,{className:Ve(nue({variant:n,direction:r,size:o}),e),...i,ref:s}));var rue=qr({defaultClassName:"_13tt0gb6 _1mqalmd1 _1mqalmd0 _1bugis90 _1bugis91",variantClassNames:{variant:{Background:"_13tt0gb7",Surface:"_13tt0gb8",SurfaceVariant:"_13tt0gb9",Primary:"_13tt0gba",Secondary:"_13tt0gbb",Success:"_13tt0gbc",Warning:"_13tt0gbd",Critical:"_13tt0gbe"},fill:{Soft:"_13tt0gbf",None:"_13tt0gbg"},size:{300:"_13tt0gbh",400:"_13tt0gbi"},radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"}},defaultVariants:{variant:"Surface",fill:"Soft",size:"400",radii:"0"},compoundVariants:[]});const tt=Ie(({as:t="button",className:e,variant:n,fill:r,size:o,radii:i,before:s,after:u,children:l,...c},d)=>a.jsxs(t,{className:Ve(rue({variant:n,fill:r,size:o,radii:i}),e),"data-ui-before":s?!0:void 0,"data-ui-after":u?!0:void 0,...c,ref:d,children:[s,l,u]}));var oue=qr({defaultClassName:"_1fptcza0 _1mqalmd1 _1mqalmd0",variantClassNames:{variant:{Background:"_1fptcza1",Surface:"_1fptcza2",SurfaceVariant:"_1fptcza3",Primary:"_1fptcza4",Secondary:"_1fptcza5",Success:"_1fptcza6",Warning:"_1fptcza7",Critical:"_1fptcza8"}},defaultVariants:{variant:"Surface"},compoundVariants:[]});const zt=Ie(({as:t="div",className:e,variant:n,...r},o)=>a.jsx(t,{className:Ve(oue({variant:n}),e),...r,ref:o}));var iue=qr({defaultClassName:"_1fc5sz51 _1mqalmd1 _1mqalmd0",variantClassNames:{variant:{Background:"_1fc5sz52",Surface:"_1fc5sz53",SurfaceVariant:"_1fc5sz54",Primary:"_1fc5sz55",Secondary:"_1fc5sz56",Success:"_1fc5sz57",Warning:"_1fc5sz58",Critical:"_1fc5sz59"},size:{300:"_1fc5sz5a",400:"_1fc5sz5b",500:"_1fc5sz5c"},flexHeight:{true:"_1fc5sz5d"}},defaultVariants:{variant:"Surface",size:"400"},compoundVariants:[]});const xs=Ie(({as:t="div",className:e,variant:n,size:r,flexHeight:o,...i},s)=>a.jsx(t,{className:Ve(iue({variant:n,size:r,flexHeight:o}),e),...i,ref:s}));var aue="_1oc5jl80 _1mqalmd1 _1mqalmd0",sue="_1oc5jl82 _1mqalmd1 _1mqalmd0",uue="_1oc5jl83 _1mqalmd1 _1mqalmd0";const V6=({container:t,children:e})=>a.jsx(a.Fragment,{children:Wc.createPortal(e,t??document.body)}),Rn=Ie(({as:t="div",className:e,open:n,container:r,backdrop:o,children:i,...s},u)=>a.jsx(V6,{container:r,children:n?a.jsxs(t,{className:Ve(aue,e),...s,ref:u,children:[o,i]}):null})),On=Ie(({as:t="div",className:e,...n},r)=>a.jsx(t,{className:Ve(sue,e),...n,ref:r})),zn=Ie(({as:t="div",className:e,...n},r)=>a.jsx(t,{className:Ve(uue,e),...n,ref:r}));var lue="_1v6ozra0",cue="_1v6ozra1";const Ut=Ie(({as:t="div",className:e,anchor:n,position:r="Bottom",align:o="Center",offset:i=10,alignOffset:s=0,content:u,children:l,...c},d)=>{const F=f.useRef(null),h=f.useCallback(()=>{const m=F.current;if(!m||!n)return;const D=zP(n,m.getBoundingClientRect(),r,o,i,s);m.style.top=D.top??"unset",m.style.bottom=D.bottom??"unset",m.style.left=D.left??"unset",m.style.right=D.right??"unset"},[n,r,o,i,s]);return f.useEffect(()=>(window.addEventListener("resize",h),()=>{window.removeEventListener("resize",h)}),[h]),f.useLayoutEffect(()=>{h()},[h]),a.jsxs(a.Fragment,{children:[l,n&&a.jsx(V6,{children:a.jsx(t,{className:Ve(lue,e),...c,ref:d,children:a.jsx("div",{ref:F,className:cue,children:u})})})]})});var due=qr({defaultClassName:"w2djj94 _1mqalmd1 _1mqalmd0 _1bugis91",variantClassNames:{size:{300:"w2djj95",400:"w2djj96",500:"w2djj97"},variant:{Primary:"w2djj98",Secondary:"w2djj99",Success:"w2djj9a",Warning:"w2djj9b",Critical:"w2djj9c"},fill:{Solid:"w2djj9d",Soft:"w2djj9e",None:"w2djj9f"},radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"},outlined:{true:"w2djj9m"}},defaultVariants:{variant:"Secondary",size:"400",fill:"Soft",radii:"Pill"},compoundVariants:[]}),hue="w2djj9n _1mqalmd1 _1mqalmd0";const FF=Ie(({as:t="span",className:e,variant:n,size:r,fill:o,radii:i,outlined:s,value:u,min:l=0,max:c,...d},F)=>a.jsx(t,{className:Ve(due({variant:n,size:r,fill:o,radii:i,outlined:s}),e),role:"progressbar","aria-valuenow":u,"aria-valuemin":l,"aria-valuemax":c,...d,ref:F,children:a.jsx("span",{className:hue,style:{width:`${Vg(l,c,u)}%`}})}));var Fue=qr({defaultClassName:"_1agxj9w0 _1mqalmd1 _1mqalmd0 _1bugis90 _1bugis91",variantClassNames:{variant:{Primary:"_1agxj9w1",Secondary:"_1agxj9w2",Success:"_1agxj9w3",Warning:"_1agxj9w4",Critical:"_1agxj9w5"},size:{50:"cpipac7",100:"cpipac8",200:"cpipac9",300:"cpipaca",400:"cpipacb",500:"cpipacc",600:"cpipacd",Inherit:"cpipac6"}},defaultVariants:{variant:"Secondary",size:"400"},compoundVariants:[]});f.forwardRef(({className:t,variant:e,size:n,...r},o)=>a.jsx("input",{className:Ve(Fue({variant:e,size:n}),t),...r,type:"radio",ref:o}));var mue=qr({defaultClassName:"_4yxtfd2 _1mqalmd1 _1mqalmd0",variantClassNames:{variant:{Background:"_4yxtfd3",Surface:"_4yxtfd4",SurfaceVariant:"_4yxtfd5",Primary:"_4yxtfd6",Secondary:"_4yxtfd7",Success:"_4yxtfd8",Warning:"_4yxtfd9",Critical:"_4yxtfda"},visibility:{Always:"_4yxtfdb",Hover:"_4yxtfdc"},hideTrack:{true:"_4yxtfdd"},size:{0:"_4yxtfde",300:"_4yxtfdf",400:"_4yxtfdg"},direction:{Horizontal:"_4yxtfdh",Vertical:"_4yxtfdi",Both:"_4yxtfdj"}},defaultVariants:{variant:"Surface",visibility:"Always",size:"400",direction:"Vertical"},compoundVariants:[[{direction:"Horizontal",size:"300"},"_4yxtfdk"],[{direction:"Horizontal",size:"400"},"_4yxtfdl"],[{direction:"Vertical",size:"300"},"_4yxtfdm"],[{direction:"Vertical",size:"400"},"_4yxtfdn"],[{direction:"Both",size:"300"},"_4yxtfdo"],[{direction:"Both",size:"400"},"_4yxtfdp"]]});const Mt=Ie(({as:t="div",className:e,variant:n,visibility:r,hideTrack:o,size:i,direction:s,...u},l)=>{const c=f.useRef();return f.useLayoutEffect(()=>{if(c.current){const d=c.current;if(i==="0")d.setAttribute("data-x-scrollbar-width","0"),d.setAttribute("data-y-scrollbar-width","0");else{const F=d.offsetHeight-d.clientHeight,h=d.offsetWidth-d.clientWidth;d.setAttribute("data-x-scrollbar-width",`${F}`),d.setAttribute("data-y-scrollbar-width",`${h}`)}}},[i]),a.jsx(t,{className:Ve(mue({variant:n,visibility:r,hideTrack:o,size:i,direction:s}),e),...u,ref:d=>{if(d&&(c.current=d),l){if("current"in l){const F=l;F.current=d}typeof l=="function"&&l(d)}}})});var Due=qr({defaultClassName:"_31czpk7 _1mqalmd1 _1mqalmd0",variantClassNames:{size:{50:"cpipac7",100:"cpipac8",200:"cpipac9",300:"cpipaca",400:"cpipacb",500:"cpipacc",600:"cpipacd",Inherit:"cpipac6"},variant:{Primary:"_31czpkg",Secondary:"_31czpkh",Success:"_31czpki",Warning:"_31czpkj",Critical:"_31czpkk"},fill:{Solid:"_31czpkl",Soft:"_31czpkm"}},defaultVariants:{size:"400",variant:"Secondary",fill:"Soft"},compoundVariants:[]}),gue="_31czpkp",pue="_31czpko",fue="_31czpkn _1mqalmd1 _1mqalmd0";const _ue=()=>a.jsxs("svg",{className:fue,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{className:pue,d:"M5.98986 18.0104C7.52806 19.5486 9.65306 20.5 12.0003 20.5C16.6947 20.5 20.5003 16.6944 20.5003 12C20.5003 7.30558 16.6947 3.5 12.0003 3.5C9.65306 3.5 7.52806 4.45139 5.98986 5.98959L4.9292 4.92893C6.73884 3.11929 9.23884 2 12.0003 2C17.5231 2 22.0003 6.47715 22.0003 12C22.0003 17.5228 17.5231 22 12.0003 22C9.23884 22 6.73884 20.8807 4.9292 19.0711L5.98986 18.0104Z"}),a.jsx("path",{className:gue,d:"M4.92908 19.0711C3.1204 17.2624 2.00134 14.7641 2.00015 12.0044L2.00015 11.9956C2.00134 9.23593 3.1204 6.73763 4.92909 4.92896L5.98975 5.98962C4.45155 7.52781 3.50015 9.65281 3.50015 12C3.50015 14.3472 4.45155 16.4722 5.98975 18.0104L4.92908 19.0711Z"})]}),ot=Ie(({as:t="span",className:e,size:n,variant:r,fill:o,...i},s)=>a.jsx(t,{className:Ve(Due({size:n,variant:r,fill:o}),e),...i,ref:s,children:a.jsx(_ue,{})}));var vue=qr({defaultClassName:"_1mqalmd1 _1mqalmd0 _1gp7uix2 _1bugis90 _1bugis91",variantClassNames:{variant:{Primary:"_1gp7uix4",Secondary:"_1gp7uix5",Success:"_1gp7uix6",Warning:"_1gp7uix7",Critical:"_1gp7uix8"}},defaultVariants:{variant:"Primary"},compoundVariants:[]}),bue="_1gp7uix9 _1mqalmd1 _1mqalmd0";const qo=f.forwardRef(({className:t,variant:e,value:n=!1,onChange:r,...o},i)=>{const s=()=>r==null?void 0:r(!n);return a.jsx("button",{className:Ve(vue({variant:e}),t),role:"switch",type:"button","aria-checked":n,onClick:s,...o,ref:i,children:a.jsx("span",{className:bue,"aria-hidden":!0,children:a.jsx(Q,{src:$.Check,size:"100"})})})});var Cue=qr({defaultClassName:"_1xny9xl0 _1mqalmd1 _1mqalmd0",variantClassNames:{size:{Inherit:"_1xny9xl1",D400:"_1xny9xl2",H1:"_1xny9xl3",H2:"_1xny9xl4",H3:"_1xny9xl5",H4:"_1xny9xl6",H5:"_1xny9xl7",H6:"_1xny9xl8",T500:"_1xny9xl9",T400:"_1xny9xla",T300:"_1xny9xlb",T200:"_1xny9xlc",B500:"_1xny9xld",B400:"_1xny9xle",B300:"_1xny9xlf",L400:"_1xny9xlg",O400:"_1xny9xlh",C400:"_1xny9xli"},align:{Left:"_1xny9xlj",Center:"_1xny9xlk",Right:"_1xny9xll",Justify:"_1xny9xlm"},truncate:{true:"_1xny9xln"},priority:{300:"_1xny9xlo",400:"_1xny9xlp",500:"_1xny9xlq",Inherit:"_1xny9xlr",Initial:"_1xny9xls"}},defaultVariants:{size:"T400",priority:"Inherit"},compoundVariants:[]});const x=Ie(({as:t="p",className:e,size:n,truncate:r,align:o,priority:i,...s},u)=>a.jsx(t,{className:Ve(Cue({size:n,truncate:r,align:o,priority:i}),e),...s,ref:u}));var Eue=qr({defaultClassName:"ay20pp9 _1mqalmd1 _1mqalmd0 _1bugis91",variantClassNames:{variant:{Background:"ay20ppa",Surface:"ay20ppb",SurfaceVariant:"ay20ppc",Primary:"ay20ppd",Secondary:"ay20ppe",Success:"ay20ppf",Warning:"ay20ppg",Critical:"ay20pph"},size:{300:"ay20ppi",400:"ay20ppj",500:"ay20ppk"},outlined:{true:"ay20ppl"},radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"},resize:{Vertical:"ay20pps",Horizontal:"ay20ppt",Both:"ay20ppu",None:"ay20ppv",Block:"ay20ppw",Inline:"ay20ppx"}},defaultVariants:{variant:"Background",size:"400",radii:"400",resize:"Vertical"},compoundVariants:[]});const qg=f.forwardRef(({className:t,variant:e,size:n,outlined:r,radii:o,resize:i,...s},u)=>a.jsx("textarea",{className:Ve(Eue({variant:e,size:n,outlined:r,radii:o,resize:i}),t),...s,ref:u}));var yue=qr({defaultClassName:"_6plmi21 _1mqalmd1 _1mqalmd0",variantClassNames:{variant:{Background:"_6plmi22",Surface:"_6plmi23",SurfaceVariant:"_6plmi24",Primary:"_6plmi25",Secondary:"_6plmi26",Success:"_6plmi27",Warning:"_6plmi28",Critical:"_6plmi29"},radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"}},defaultVariants:{variant:"Surface",radii:"400"},compoundVariants:[]}),xue="_6plmi2g";const Ao=Ie(({as:t="div",className:e,variant:n,radii:r,...o},i)=>a.jsx(t,{className:Ve(yue({variant:n,radii:r}),e),...o,ref:i})),wue=(t,e,n,r,o)=>{const i=f.useRef(null),s=f.useRef(null),[u,l]=f.useState(!1),c=f.useCallback(()=>{const h=i.current,m=s.current;if(!h||!m)return;const D=zP(h.getBoundingClientRect(),m.getBoundingClientRect(),t,e,n,r);m.style.top=D.top??"unset",m.style.bottom=D.bottom??"unset",m.style.left=D.left??"unset",m.style.right=D.right??"unset"},[t,e,n,r]);f.useEffect(()=>{const h=i.current;let m;const D=_=>{m||(_.type==="focus"?l(!0):m=window.setTimeout(()=>l(!0),o))},g=()=>{clearTimeout(m),m=void 0,l(!1)},p=_=>{_.key==="Escape"&&document.activeElement===h&&(_.preventDefault(),clearTimeout(m),l(!1))};return h==null||h.addEventListener("mouseenter",D),h==null||h.addEventListener("mouseleave",g),h==null||h.addEventListener("focus",D),h==null||h.addEventListener("blur",g),document.addEventListener("keydown",p),h==null||h.addEventListener("click",g),()=>{clearTimeout(m),h==null||h.removeEventListener("mouseenter",D),h==null||h.removeEventListener("mouseleave",g),h==null||h.removeEventListener("focus",D),h==null||h.removeEventListener("blur",g),document.removeEventListener("keydown",p),h==null||h.removeEventListener("click",g)}},[t,e,n,r,o]),f.useLayoutEffect(()=>{u&&c()},[u,c]);const d=f.useCallback(h=>{i.current=h},[]),F=f.useCallback(h=>{s.current=h},[]);return{triggerRef:d,baseRef:F,open:u}},Br=Ie(({as:t="div",className:e,position:n="Top",align:r="Center",offset:o=10,alignOffset:i=0,delay:s=200,tooltip:u,children:l,...c},d)=>{const{open:F,triggerRef:h,baseRef:m}=wue(n,r,o,i,s);return a.jsxs(a.Fragment,{children:[l(h),F&&a.jsx(V6,{children:a.jsx(t,{role:"tooltip",className:Ve(xue,e),...c,ref:D=>{m(D),d&&(typeof d=="function"?d(D):d.current=D)},children:u})})]})}),V1=t=>{const e=["Bytes","KB","MB","GB","TB"];if(t===0)return"0KB";let n=Math.floor(Math.log(t)/Math.log(1e3));return n===0&&(n=1),`${(t/1e3**n).toFixed(1)} ${e[n]}`},kue=t=>{const e=Math.floor(t/1e3),n=Math.floor(e/60),r=Math.round(e%60);return`${n}:${r<10?"0":""}${r}`},qP=t=>{const e=Math.floor(t/60),n=Math.round(t%60);return`${e}:${n<10?"0":""}${n}`},HP=(t,e)=>{const n=e.toLowerCase();return n.startsWith("audio")?t.Play:n.startsWith("video")?t.Vlc:n.startsWith("image")?t.Photo:t.File},q6=t=>t.reduce((e,n)=>(n.status==="fulfilled"&&e.push(n.value),e),[]),H6=t=>{if(t.status==="fulfilled")return t.value},Sue=t=>{if(t.status==="rejected")return t.reason},mF=(t,e)=>Math.floor(Math.random()*(e-t+1))+t,Hg=(t,e,n)=>e/t*n,jue=t=>{const[,e]=t.split(":"),[n]=e.split(";"),[r,o]=n.split(",");return{latitude:r,longitude:o}},Bue=/^\/+/g,Aue=/\/+$/g,$g=t=>t.replace(Bue,""),Ki=t=>t.replace(Aue,""),$6=t=>$g(Ki(t)),Gi=(t,e=1)=>t&&[...t].slice(0,e).join("")||"\uFFFD",$P=(t=12)=>{let e="";for(let n=0;n<t;n+=1){const r=Math.floor(Math.random()*26+65);e+=String.fromCharCode(r)}return e},W6=(t,e)=>{let n=1,r=t;do r=t+n,n+=1;while(e(r));return r},K6=t=>t.replace(/ /g,"-"),Da=t=>{const e=t.trim();return e===""?[]:e.split(" ")};let Tue=0;function Bn(t,e){const n=`atom${++Tue}`,r={toString:()=>n};return typeof t=="function"?r.read=t:(r.init=t,r.read=function(o){return o(this)},r.write=function(o,i,s){return i(this,typeof s=="function"?s(o(this)):s)}),e&&(r.write=e),r}const WP=t=>"init"in t,KP=t=>!!t.write,xv=new WeakMap,Iue=(t,e)=>{xv.set(t,e),t.catch(()=>{}).finally(()=>xv.delete(t))},GP=(t,e)=>{const n=xv.get(t);n&&(xv.delete(t),n(e))},YP=(t,e)=>{t.status="fulfilled",t.value=e},ZP=(t,e)=>{t.status="rejected",t.reason=e},Rue=t=>typeof(t==null?void 0:t.then)=="function",Wg=(t,e)=>!!t&&"v"in t&&"v"in e&&Object.is(t.v,e.v),JP=(t,e)=>!!t&&"e"in t&&"e"in e&&Object.is(t.e,e.e),DF=t=>!!t&&"v"in t&&t.v instanceof Promise,Oue=(t,e)=>"v"in t&&"v"in e&&t.v.orig&&t.v.orig===e.v.orig,wv=t=>{if("e"in t)throw t.e;return t.v},XP=()=>{const t=new WeakMap,e=new WeakMap,n=new Map,r=k=>t.get(k),o=(k,C)=>{const S=t.get(k);if(t.set(k,C),n.has(k)||n.set(k,S),DF(S)){const w="v"in C?C.v instanceof Promise?C.v:Promise.resolve(C.v):Promise.reject(C.e);S.v!==w&&GP(S.v,w)}},i=(k,C,S)=>{const w=new Map;let A=!1;S.forEach((O,j)=>{!O&&j===k&&(O=C),O&&(w.set(j,O),C.d.get(j)!==O&&(A=!0))}),(A||C.d.size!==w.size)&&(C.d=w)},s=(k,C,S)=>{const w=r(k),A={d:(w==null?void 0:w.d)||new Map,v:C};if(S&&i(k,A,S),Wg(w,A)&&w.d===A.d)return w;if(DF(w)&&DF(A)&&Oue(w,A)){if(w.d===A.d)return w;A.v=w.v}return o(k,A),A},u=(k,C,S,w)=>{if(Rue(C)){let A;const O=()=>{const R=r(k);if(!DF(R)||R.v!==j)return;const M=s(k,j,S);e.has(k)&&R.d!==M.d&&E(k,M,R.d)},j=new Promise((R,M)=>{let z=!1;C.then(T=>{z||(z=!0,YP(j,T),R(T),O())},T=>{z||(z=!0,ZP(j,T),M(T),O())}),A=T=>{z||(z=!0,T.then(P=>YP(j,P),P=>ZP(j,P)),R(T))}});return j.orig=C,j.status="pending",Iue(j,R=>{R&&A(R),w==null||w()}),s(k,j,S)}return s(k,C,S)},l=(k,C,S)=>{const w=r(k),A={d:(w==null?void 0:w.d)||new Map,e:C};return S&&i(k,A,S),JP(w,A)&&w.d===A.d?w:(o(k,A),A)},c=(k,C)=>{const S=r(k);if(!C&&S&&(e.has(k)||Array.from(S.d).every(([z,T])=>{if(z===k)return!0;const P=c(z);return P===T||Wg(P,T)})))return S;const w=new Map;let A=!0;const O=z=>{if(z===k){const P=r(z);if(P)return w.set(z,P),wv(P);if(WP(z))return w.set(z,void 0),z.init;throw new Error("no atom init")}const T=c(z);return w.set(z,T),wv(T)};let j,R;const M={get signal(){return j||(j=new AbortController),j.signal},get setSelf(){return!R&&KP(k)&&(R=(...z)=>{if(!A)return p(k,...z)}),R}};try{const z=k.read(O,M);return u(k,z,w,()=>j==null?void 0:j.abort())}catch(z){return l(k,z,w)}finally{A=!1}},d=k=>wv(c(k)),F=k=>{let C=e.get(k);return C||(C=_(k)),C},h=(k,C)=>!C.l.size&&(!C.t.size||C.t.size===1&&C.t.has(k)),m=k=>{const C=e.get(k);C&&h(k,C)&&v(k)},D=k=>{const C=new Map,S=new WeakMap,w=j=>{var R;const M=new Set((R=e.get(j))==null?void 0:R.t);return n.forEach((z,T)=>{var P;(P=r(T))!=null&&P.d.has(j)&&M.add(T)}),M},A=j=>{w(j).forEach(R=>{R!==j&&(C.set(R,(C.get(R)||new Set).add(j)),S.set(R,(S.get(R)||0)+1),A(R))})};A(k);const O=j=>{w(j).forEach(R=>{var M;if(R!==j){let z=S.get(R);if(z&&S.set(R,--z),!z){let T=!!((M=C.get(R))!=null&&M.size);if(T){const P=r(R),L=c(R,!0);T=!Wg(P,L)}T||C.forEach(P=>P.delete(R))}O(R)}})};O(k)},g=(k,...C)=>{let S=!0;const w=j=>wv(c(j)),A=(j,...R)=>{let M;if(j===k){if(!WP(j))throw new Error("atom not writable");const z=r(j),T=u(j,R[0]);Wg(z,T)||D(j)}else M=g(j,...R);return S||b(),M},O=k.write(w,A,...C);return S=!1,O},p=(k,...C)=>{const S=g(k,...C);return b(),S},_=(k,C,S)=>{var w;const A=S||[];(w=r(k))==null||w.d.forEach((j,R)=>{const M=e.get(R);M?M.t.add(k):R!==k&&_(R,k,A)}),c(k);const O={t:new Set(C&&[C]),l:new Set};if(e.set(k,O),KP(k)&&k.onMount){const{onMount:j}=k;A.push(()=>{const R=j((...M)=>p(k,...M));R&&(O.u=R)})}return S||A.forEach(j=>j()),O},v=k=>{var C;const S=(C=e.get(k))==null?void 0:C.u;S&&S(),e.delete(k);const w=r(k);w&&(DF(w)&&GP(w.v),w.d.forEach((A,O)=>{if(O!==k){const j=e.get(O);j&&(j.t.delete(k),h(O,j)&&v(O))}}))},E=(k,C,S)=>{const w=new Set(C.d.keys());S==null||S.forEach((A,O)=>{if(w.has(O)){w.delete(O);return}const j=e.get(O);j&&(j.t.delete(k),h(O,j)&&v(O))}),w.forEach(A=>{const O=e.get(A);O?O.t.add(k):e.has(k)&&_(A,k)})},b=()=>{for(;n.size;){const k=Array.from(n);n.clear(),k.forEach(([C,S])=>{const w=r(C);if(w){const A=e.get(C);A&&w.d!==(S==null?void 0:S.d)&&E(C,w,S==null?void 0:S.d),A&&!(!DF(S)&&(Wg(S,w)||JP(S,w)))&&A.l.forEach(O=>O())}})}};return{get:d,set:p,sub:(k,C)=>{const S=F(k);b();const w=S.l;return w.add(C),()=>{w.delete(C),m(k)}}}};let G6;const Mue=()=>(G6||(G6=XP()),G6),QP=f.createContext(void 0),eL=t=>f.useContext(QP)||Mue(),Pue=({children:t,store:e})=>{const n=f.useRef();return!e&&!n.current&&(n.current=XP()),f.createElement(QP.Provider,{value:e||n.current},t)},Lue=t=>typeof(t==null?void 0:t.then)=="function",Nue=ft.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t)});function _t(t,e){const n=eL(),[[r,o,i],s]=f.useReducer(l=>{const c=n.get(t);return Object.is(l[0],c)&&l[1]===n&&l[2]===t?l:[c,n,t]},void 0,()=>[n.get(t),n,t]);let u=r;return(o!==n||i!==t)&&(s(),u=n.get(t)),f.useEffect(()=>{const l=n.sub(t,()=>{s()});return s(),l},[n,t,void 0]),f.useDebugValue(u),Lue(u)?Nue(u):u}function Di(t,e){const n=eL();return f.useCallback((...r)=>n.set(t,...r),[n,t])}function Yi(t,e){return[_t(t),Di(t)]}function Hr(){return Hr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Hr.apply(this,arguments)}var fo;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(fo||(fo={}));const tL="popstate";function zue(t){t===void 0&&(t={});function e(r,o){let{pathname:i,search:s,hash:u}=r.location;return gF("",{pathname:i,search:s,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Kc(o)}return rL(e,n,null,t)}function Uue(t){t===void 0&&(t={});function e(o,i){let{pathname:s="/",search:u="",hash:l=""}=kl(o.location.hash.substr(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),gF("",{pathname:s,search:u,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let s=o.document.querySelector("base"),u="";if(s&&s.getAttribute("href")){let l=o.location.href,c=l.indexOf("#");u=c===-1?l:l.slice(0,c)}return u+"#"+(typeof i=="string"?i:Kc(i))}function r(o,i){wl(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return rL(e,n,r,t)}function pn(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function wl(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Vue(){return Math.random().toString(36).substr(2,8)}function nL(t,e){return{usr:t.state,key:t.key,idx:e}}function gF(t,e,n,r){return n===void 0&&(n=null),Hr({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?kl(e):e,{state:n,key:e&&e.key||r||Vue()})}function Kc(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function kl(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function rL(t,e,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,u=fo.Pop,l=null,c=d();c==null&&(c=0,s.replaceState(Hr({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function F(){u=fo.Pop;let p=d(),_=p==null?null:p-c;c=p,l&&l({action:u,location:g.location,delta:_})}function h(p,_){u=fo.Push;let v=gF(g.location,p,_);n&&n(v,p),c=d()+1;let E=nL(v,c),b=g.createHref(v);try{s.pushState(E,"",b)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(b)}i&&l&&l({action:u,location:g.location,delta:1})}function m(p,_){u=fo.Replace;let v=gF(g.location,p,_);n&&n(v,p),c=d();let E=nL(v,c),b=g.createHref(v);s.replaceState(E,"",b),i&&l&&l({action:u,location:g.location,delta:0})}function D(p){let _=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof p=="string"?p:Kc(p);return pn(_,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,_)}let g={get action(){return u},get location(){return t(o,s)},listen(p){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(tL,F),l=p,()=>{o.removeEventListener(tL,F),l=null}},createHref(p){return e(o,p)},createURL:D,encodeLocation(p){let _=D(p);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:h,replace:m,go(p){return s.go(p)}};return g}var no;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(no||(no={}));const que=new Set(["lazy","caseSensitive","path","id","index","children"]);function Hue(t){return t.index===!0}function Y6(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((o,i)=>{let s=[...n,i],u=typeof o.id=="string"?o.id:s.join("-");if(pn(o.index!==!0||!o.children,"Cannot specify children on an index route"),pn(!r[u],'Found a route id collision on id "'+u+`". Route id's must be globally unique within Data Router usages`),Hue(o)){let l=Hr({},o,e(o),{id:u});return r[u]=l,l}else{let l=Hr({},o,e(o),{id:u,children:void 0});return r[u]=l,o.children&&(l.children=Y6(o.children,e,s,r)),l}})}function pF(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?kl(e):e,o=fF(r.pathname||"/",n);if(o==null)return null;let i=oL(t);Wue(i);let s=null;for(let u=0;s==null&&u<i.length;++u)s=tle(i[u],rle(o));return s}function $ue(t,e){let{route:n,pathname:r,params:o}=t;return{id:n.id,pathname:r,params:o,data:e[n.id],handle:n.handle}}function oL(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,u)=>{let l={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(pn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Sl([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(pn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),oL(i.children,e,d,c)),!(i.path==null&&!i.index)&&e.push({path:c,score:Que(c,i.index),routesMeta:d})};return t.forEach((i,s)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,s);else for(let l of iL(i.path))o(i,s,l)}),e}function iL(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=iL(r.join("/")),u=[];return u.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&u.push(...s),u.map(l=>t.startsWith("/")&&l===""?"/":l)}function Wue(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:ele(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Kue=/^:\w+$/,Gue=3,Yue=2,Zue=1,Jue=10,Xue=-2,aL=t=>t==="*";function Que(t,e){let n=t.split("/"),r=n.length;return n.some(aL)&&(r+=Xue),e&&(r+=Yue),n.filter(o=>!aL(o)).reduce((o,i)=>o+(Kue.test(i)?Gue:i===""?Zue:Jue),r)}function ele(t,e){return t.length===e.length&&t.slice(0,-1).every((n,r)=>n===e[r])?t[t.length-1]-e[e.length-1]:0}function tle(t,e){let{routesMeta:n}=t,r={},o="/",i=[];for(let s=0;s<n.length;++s){let u=n[s],l=s===n.length-1,c=o==="/"?e:e.slice(o.length)||"/",d=su({path:u.relativePath,caseSensitive:u.caseSensitive,end:l},c);if(!d)return null;Object.assign(r,d.params);let F=u.route;i.push({params:r,pathname:Sl([o,d.pathname]),pathnameBase:sle(Sl([o,d.pathnameBase])),route:F}),d.pathnameBase!=="/"&&(o=Sl([o,d.pathnameBase]))}return i}function Pa(t,e){e===void 0&&(e={});let n=t;n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")&&(wl(!1,'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".')),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",o=s=>s==null?"":typeof s=="string"?s:String(s),i=n.split(/\/+/).map((s,u,l)=>{if(u===l.length-1&&s==="*")return o(e["*"]);const c=s.match(/^:(\w+)(\??)$/);if(c){const[,d,F]=c;let h=e[d];return pn(F==="?"||h!=null,'Missing ":'+d+'" param'),o(h)}return s.replace(/\?$/g,"")}).filter(s=>!!s);return r+i.join("/")}function su(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=nle(t.path,t.caseSensitive,t.end),o=e.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:r.reduce((l,c,d)=>{let{paramName:F,isOptional:h}=c;if(F==="*"){let D=u[d]||"";s=i.slice(0,i.length-D.length).replace(/(.)\/+$/,"$1")}const m=u[d];return h&&!m?l[F]=void 0:l[F]=ole(m||"",F),l},{}),pathname:i,pathnameBase:s,pattern:t}}function nle(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),wl(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),r]}function rle(t){try{return decodeURI(t)}catch(e){return wl(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function ole(t,e){try{return decodeURIComponent(t)}catch(n){return wl(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function fF(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function ile(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:o=""}=typeof t=="string"?kl(t):t;return{pathname:n?n.startsWith("/")?n:ale(n,e):e,search:ule(r),hash:lle(o)}}function ale(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Z6(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function sL(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function J6(t){return sL(t).map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function X6(t,e,n,r){r===void 0&&(r=!1);let o;typeof t=="string"?o=kl(t):(o=Hr({},t),pn(!o.pathname||!o.pathname.includes("?"),Z6("?","pathname","search",o)),pn(!o.pathname||!o.pathname.includes("#"),Z6("#","pathname","hash",o)),pn(!o.search||!o.search.includes("#"),Z6("#","search","hash",o)));let i=t===""||o.pathname==="",s=i?"/":o.pathname,u;if(s==null)u=n;else if(r){let F=e[e.length-1].replace(/^\//,"").split("/");if(s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),F.pop();o.pathname=h.join("/")}u="/"+F.join("/")}else{let F=e.length-1;if(s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),F-=1;o.pathname=h.join("/")}u=F>=0?e[F]:"/"}let l=ile(o,u),c=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Sl=t=>t.join("/").replace(/\/\/+/g,"/"),sle=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),ule=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,lle=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,q1=function(t,e){e===void 0&&(e=302);let n=e;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let r=new Headers(n.headers);return r.set("Location",t),new Response(null,Hr({},n,{headers:r}))};class Q6{constructor(e,n,r,o){o===void 0&&(o=!1),this.status=e,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function uL(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const lL=["post","put","patch","delete"],cle=new Set(lL),dle=["get",...lL],hle=new Set(dle),Fle=new Set([301,302,303,307,308]),mle=new Set([307,308]),ek={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Dle={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Kg={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},cL=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gle=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),dL="remix-router-transitions";function hL(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!n;pn(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(t.mapRouteProperties)o=t.mapRouteProperties;else if(t.detectErrorBoundary){let ve=t.detectErrorBoundary;o=we=>({hasErrorBoundary:ve(we)})}else o=gle;let i={},s=Y6(t.routes,o,void 0,i),u,l=t.basename||"/",c=Hr({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),d=null,F=new Set,h=null,m=null,D=null,g=t.hydrationData!=null,p=pF(s,t.history.location,l),_=null;if(p==null){let ve=La(404,{pathname:t.history.location.pathname}),{matches:we,route:Te}=bL(s);p=we,_={[Te.id]:ve}}let v=!p.some(ve=>ve.route.lazy)&&(!p.some(ve=>ve.route.loader)||t.hydrationData!=null),E,b={historyAction:t.history.action,location:t.history.location,matches:p,initialized:v,navigation:ek,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||_,fetchers:new Map,blockers:new Map},k=fo.Pop,C=!1,S,w=!1,A=new Map,O=null,j=!1,R=!1,M=[],z=[],T=new Map,P=0,L=-1,U=new Map,te=new Set,ae=new Map,Fe=new Map,re=new Set,ce=new Map,K=new Map,H=!1;function q(){if(d=t.history.listen(ve=>{let{action:we,location:Te,delta:ht}=ve;if(H){H=!1;return}wl(K.size===0||ht!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Et=se({currentLocation:b.location,nextLocation:Te,historyAction:we});if(Et&&ht!=null){H=!0,t.history.go(ht*-1),me(Et,{state:"blocked",location:Te,proceed(){me(Et,{state:"proceeding",proceed:void 0,reset:void 0,location:Te}),t.history.go(ht)},reset(){let Qt=new Map(b.blockers);Qt.set(Et,Kg),ee({blockers:Qt})}});return}return De(we,Te)}),n){kle(e,A);let ve=()=>Sle(e,A);e.addEventListener("pagehide",ve),O=()=>e.removeEventListener("pagehide",ve)}return b.initialized||De(fo.Pop,b.location),E}function V(){d&&d(),O&&O(),F.clear(),S&&S.abort(),b.fetchers.forEach((ve,we)=>Ze(we)),b.blockers.forEach((ve,we)=>ne(we))}function X(ve){return F.add(ve),()=>F.delete(ve)}function ee(ve,we){we===void 0&&(we={}),b=Hr({},b,ve);let Te=[],ht=[];c.v7_fetcherPersist&&b.fetchers.forEach((Et,Qt)=>{Et.state==="idle"&&(re.has(Qt)?ht.push(Qt):Te.push(Qt))}),[...F].forEach(Et=>Et(b,{deletedFetchers:ht,unstable_viewTransitionOpts:we.viewTransitionOpts,unstable_flushSync:we.flushSync===!0})),c.v7_fetcherPersist&&(Te.forEach(Et=>b.fetchers.delete(Et)),ht.forEach(Et=>Ze(Et)))}function J(ve,we,Te){var ht,Et;let{flushSync:Qt}=Te===void 0?{}:Te,Ot=b.actionData!=null&&b.navigation.formMethod!=null&&ws(b.navigation.formMethod)&&b.navigation.state==="loading"&&((ht=ve.state)==null?void 0:ht._isRedirect)!==!0,It;we.actionData?Object.keys(we.actionData).length>0?It=we.actionData:It=null:Ot?It=b.actionData:It=null;let jt=we.loaderData?vL(b.loaderData,we.loaderData,we.matches||[],we.errors):b.loaderData,on=b.blockers;on.size>0&&(on=new Map(on),on.forEach((Zn,Ir)=>on.set(Ir,Kg)));let So=C===!0||b.navigation.formMethod!=null&&ws(b.navigation.formMethod)&&((Et=ve.state)==null?void 0:Et._isRedirect)!==!0;u&&(s=u,u=void 0),j||k===fo.Pop||(k===fo.Push?t.history.push(ve,ve.state):k===fo.Replace&&t.history.replace(ve,ve.state));let mn;if(k===fo.Pop){let Zn=A.get(b.location.pathname);Zn&&Zn.has(ve.pathname)?mn={currentLocation:b.location,nextLocation:ve}:A.has(ve.pathname)&&(mn={currentLocation:ve,nextLocation:b.location})}else if(w){let Zn=A.get(b.location.pathname);Zn?Zn.add(ve.pathname):(Zn=new Set([ve.pathname]),A.set(b.location.pathname,Zn)),mn={currentLocation:b.location,nextLocation:ve}}ee(Hr({},we,{actionData:It,loaderData:jt,historyAction:k,location:ve,initialized:!0,navigation:ek,revalidation:"idle",restoreScrollPosition:Fn(ve,we.matches||b.matches),preventScrollReset:So,blockers:on}),{viewTransitionOpts:mn,flushSync:Qt===!0}),k=fo.Pop,C=!1,w=!1,j=!1,R=!1,M=[],z=[]}async function de(ve,we){if(typeof ve=="number"){t.history.go(ve);return}let Te=tk(b.location,b.matches,l,c.v7_prependBasename,ve,we==null?void 0:we.fromRouteId,we==null?void 0:we.relative),{path:ht,submission:Et,error:Qt}=FL(c.v7_normalizeFormMethod,!1,Te,we),Ot=b.location,It=gF(b.location,ht,we&&we.state);It=Hr({},It,t.history.encodeLocation(It));let jt=we&&we.replace!=null?we.replace:void 0,on=fo.Push;jt===!0?on=fo.Replace:jt===!1||Et!=null&&ws(Et.formMethod)&&Et.formAction===b.location.pathname+b.location.search&&(on=fo.Replace);let So=we&&"preventScrollReset"in we?we.preventScrollReset===!0:void 0,mn=(we&&we.unstable_flushSync)===!0,Zn=se({currentLocation:Ot,nextLocation:It,historyAction:on});if(Zn){me(Zn,{state:"blocked",location:It,proceed(){me(Zn,{state:"proceeding",proceed:void 0,reset:void 0,location:It}),de(ve,we)},reset(){let Ir=new Map(b.blockers);Ir.set(Zn,Kg),ee({blockers:Ir})}});return}return await De(on,It,{submission:Et,pendingError:Qt,preventScrollReset:So,replace:we&&we.replace,enableViewTransition:we&&we.unstable_viewTransition,flushSync:mn})}function ue(){if(nt(),ee({revalidation:"loading"}),b.navigation.state!=="submitting"){if(b.navigation.state==="idle"){De(b.historyAction,b.location,{startUninterruptedRevalidation:!0});return}De(k||b.historyAction,b.navigation.location,{overrideNavigation:b.navigation})}}async function De(ve,we,Te){S&&S.abort(),S=null,k=ve,j=(Te&&Te.startUninterruptedRevalidation)===!0,Ye(b.location,b.matches),C=(Te&&Te.preventScrollReset)===!0,w=(Te&&Te.enableViewTransition)===!0;let ht=u||s,Et=Te&&Te.overrideNavigation,Qt=pF(ht,we,l),Ot=(Te&&Te.flushSync)===!0;if(!Qt){let Ir=La(404,{pathname:we.pathname}),{matches:Yo,route:$e}=bL(ht);xe(),J(we,{matches:Yo,loaderData:{},errors:{[$e.id]:Ir}},{flushSync:Ot});return}if(b.initialized&&!R&&ble(b.location,we)&&!(Te&&Te.submission&&ws(Te.submission.formMethod))){J(we,{matches:Qt},{flushSync:Ot});return}S=new AbortController;let It=Yg(t.history,we,S.signal,Te&&Te.submission),jt,on;if(Te&&Te.pendingError)on={[Zg(Qt).route.id]:Te.pendingError};else if(Te&&Te.submission&&ws(Te.submission.formMethod)){let Ir=await Ae(It,we,Te.submission,Qt,{replace:Te.replace,flushSync:Ot});if(Ir.shortCircuited)return;jt=Ir.pendingActionData,on=Ir.pendingActionError,Et=ik(we,Te.submission),Ot=!1,It=new Request(It.url,{signal:It.signal})}let{shortCircuited:So,loaderData:mn,errors:Zn}=await ye(It,we,Qt,Et,Te&&Te.submission,Te&&Te.fetcherSubmission,Te&&Te.replace,Ot,jt,on);So||(S=null,J(we,Hr({matches:Qt},jt?{actionData:jt}:{},{loaderData:mn,errors:Zn})))}async function Ae(ve,we,Te,ht,Et){Et===void 0&&(Et={}),nt();let Qt=xle(we,Te);ee({navigation:Qt},{flushSync:Et.flushSync===!0});let Ot,It=ok(ht,we);if(!It.route.action&&!It.route.lazy)Ot={type:no.error,error:La(405,{method:ve.method,pathname:we.pathname,routeId:It.route.id})};else if(Ot=await Gg("action",ve,It,ht,i,o,l),ve.signal.aborted)return{shortCircuited:!0};if(_F(Ot)){let jt;return Et&&Et.replace!=null?jt=Et.replace:jt=Ot.location===b.location.pathname+b.location.search,await Oe(b,Ot,{submission:Te,replace:jt}),{shortCircuited:!0}}if(Jg(Ot)){let jt=Zg(ht,It.route.id);return(Et&&Et.replace)!==!0&&(k=fo.Push),{pendingActionData:{},pendingActionError:{[jt.route.id]:Ot.error}}}if(H1(Ot))throw La(400,{type:"defer-action"});return{pendingActionData:{[It.route.id]:Ot.data}}}async function ye(ve,we,Te,ht,Et,Qt,Ot,It,jt,on){let So=ht||ik(we,Et),mn=Et||Qt||wL(So),Zn=u||s,[Ir,Yo]=mL(t.history,b,Te,mn,we,R,M,z,re,ae,te,Zn,l,jt,on);if(xe(Cn=>!(Te&&Te.some(mo=>mo.route.id===Cn))||Ir&&Ir.some(mo=>mo.route.id===Cn)),L=++P,Ir.length===0&&Yo.length===0){let Cn=W();return J(we,Hr({matches:Te,loaderData:{},errors:on||null},jt?{actionData:jt}:{},Cn?{fetchers:new Map(b.fetchers)}:{}),{flushSync:It}),{shortCircuited:!0}}if(!j){Yo.forEach(mo=>{let Kn=b.fetchers.get(mo.key),ci=Xg(void 0,Kn?Kn.data:void 0);b.fetchers.set(mo.key,ci)});let Cn=jt||b.actionData;ee(Hr({navigation:So},Cn?Object.keys(Cn).length===0?{actionData:null}:{actionData:Cn}:{},Yo.length>0?{fetchers:new Map(b.fetchers)}:{}),{flushSync:It})}Yo.forEach(Cn=>{T.has(Cn.key)&&B(Cn.key),Cn.controller&&T.set(Cn.key,Cn.controller)});let $e=()=>Yo.forEach(Cn=>B(Cn.key));S&&S.signal.addEventListener("abort",$e);let{results:je,loaderResults:St,fetcherResults:Kt}=await Ue(b.matches,Te,Ir,Yo,ve);if(ve.signal.aborted)return{shortCircuited:!0};S&&S.signal.removeEventListener("abort",$e),Yo.forEach(Cn=>T.delete(Cn.key));let wt=CL(je);if(wt){if(wt.idx>=Ir.length){let Cn=Yo[wt.idx-Ir.length].key;te.add(Cn)}return await Oe(b,wt.result,{replace:Ot}),{shortCircuited:!0}}let{loaderData:qt,errors:kn}=_L(b,Te,Ir,St,on,Yo,Kt,ce);ce.forEach((Cn,mo)=>{Cn.subscribe(Kn=>{(Kn||Cn.done)&&ce.delete(mo)})});let Ei=W(),Nr=oe(L),No=Ei||Nr||Yo.length>0;return Hr({loaderData:qt,errors:kn},No?{fetchers:new Map(b.fetchers)}:{})}function He(ve,we,Te,ht){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");T.has(ve)&&B(ve);let Et=(ht&&ht.unstable_flushSync)===!0,Qt=u||s,Ot=tk(b.location,b.matches,l,c.v7_prependBasename,Te,we,ht==null?void 0:ht.relative),It=pF(Qt,Ot,l);if(!It){xt(ve,we,La(404,{pathname:Ot}),{flushSync:Et});return}let{path:jt,submission:on,error:So}=FL(c.v7_normalizeFormMethod,!0,Ot,ht);if(So){xt(ve,we,So,{flushSync:Et});return}let mn=ok(It,jt);if(C=(ht&&ht.preventScrollReset)===!0,on&&ws(on.formMethod)){ze(ve,we,jt,mn,It,Et,on);return}ae.set(ve,{routeId:we,path:jt}),Ne(ve,we,jt,mn,It,Et,on)}async function ze(ve,we,Te,ht,Et,Qt,Ot){if(nt(),ae.delete(ve),!ht.route.action&&!ht.route.lazy){let Kn=La(405,{method:Ot.formMethod,pathname:Te,routeId:we});xt(ve,we,Kn,{flushSync:Qt});return}let It=b.fetchers.get(ve);_e(ve,wle(Ot,It),{flushSync:Qt});let jt=new AbortController,on=Yg(t.history,Te,jt.signal,Ot);T.set(ve,jt);let So=P,mn=await Gg("action",on,ht,Et,i,o,l);if(on.signal.aborted){T.get(ve)===jt&&T.delete(ve);return}if(re.has(ve)){_e(ve,Gc(void 0));return}if(_F(mn))if(T.delete(ve),L>So){_e(ve,Gc(void 0));return}else return te.add(ve),_e(ve,Xg(Ot)),Oe(b,mn,{fetcherSubmission:Ot});if(Jg(mn)){xt(ve,we,mn.error);return}if(H1(mn))throw La(400,{type:"defer-action"});let Zn=b.navigation.location||b.location,Ir=Yg(t.history,Zn,jt.signal),Yo=u||s,$e=b.navigation.state!=="idle"?pF(Yo,b.navigation.location,l):b.matches;pn($e,"Didn't find any matches after fetcher action");let je=++P;U.set(ve,je);let St=Xg(Ot,mn.data);b.fetchers.set(ve,St);let[Kt,wt]=mL(t.history,b,$e,Ot,Zn,R,M,z,re,ae,te,Yo,l,{[ht.route.id]:mn.data},void 0);wt.filter(Kn=>Kn.key!==ve).forEach(Kn=>{let ci=Kn.key,C1=b.fetchers.get(ci),n2=Xg(void 0,C1?C1.data:void 0);b.fetchers.set(ci,n2),T.has(ci)&&B(ci),Kn.controller&&T.set(ci,Kn.controller)}),ee({fetchers:new Map(b.fetchers)});let qt=()=>wt.forEach(Kn=>B(Kn.key));jt.signal.addEventListener("abort",qt);let{results:kn,loaderResults:Ei,fetcherResults:Nr}=await Ue(b.matches,$e,Kt,wt,Ir);if(jt.signal.aborted)return;jt.signal.removeEventListener("abort",qt),U.delete(ve),T.delete(ve),wt.forEach(Kn=>T.delete(Kn.key));let No=CL(kn);if(No){if(No.idx>=Kt.length){let Kn=wt[No.idx-Kt.length].key;te.add(Kn)}return Oe(b,No.result)}let{loaderData:Cn,errors:mo}=_L(b,b.matches,Kt,Ei,void 0,wt,Nr,ce);if(b.fetchers.has(ve)){let Kn=Gc(mn.data);b.fetchers.set(ve,Kn)}oe(je),b.navigation.state==="loading"&&je>L?(pn(k,"Expected pending action"),S&&S.abort(),J(b.navigation.location,{matches:$e,loaderData:Cn,errors:mo,fetchers:new Map(b.fetchers)})):(ee({errors:mo,loaderData:vL(b.loaderData,Cn,$e,mo),fetchers:new Map(b.fetchers)}),R=!1)}async function Ne(ve,we,Te,ht,Et,Qt,Ot){let It=b.fetchers.get(ve);_e(ve,Xg(Ot,It?It.data:void 0),{flushSync:Qt});let jt=new AbortController,on=Yg(t.history,Te,jt.signal);T.set(ve,jt);let So=P,mn=await Gg("loader",on,ht,Et,i,o,l);if(H1(mn)&&(mn=await xL(mn,on.signal,!0)||mn),T.get(ve)===jt&&T.delete(ve),!on.signal.aborted){if(re.has(ve)){_e(ve,Gc(void 0));return}if(_F(mn))if(L>So){_e(ve,Gc(void 0));return}else{te.add(ve),await Oe(b,mn);return}if(Jg(mn)){xt(ve,we,mn.error);return}pn(!H1(mn),"Unhandled fetcher deferred data"),_e(ve,Gc(mn.data))}}async function Oe(ve,we,Te){let{submission:ht,fetcherSubmission:Et,replace:Qt}=Te===void 0?{}:Te;we.revalidate&&(R=!0);let Ot=gF(ve.location,we.location,{_isRedirect:!0});if(pn(Ot,"Expected a location on the redirect navigation"),n){let Zn=!1;if(we.reloadDocument)Zn=!0;else if(cL.test(we.location)){const Ir=t.history.createURL(we.location);Zn=Ir.origin!==e.location.origin||fF(Ir.pathname,l)==null}if(Zn){Qt?e.location.replace(we.location):e.location.assign(we.location);return}}S=null;let It=Qt===!0?fo.Replace:fo.Push,{formMethod:jt,formAction:on,formEncType:So}=ve.navigation;!ht&&!Et&&jt&&on&&So&&(ht=wL(ve.navigation));let mn=ht||Et;if(mle.has(we.status)&&mn&&ws(mn.formMethod))await De(It,Ot,{submission:Hr({},mn,{formAction:we.location}),preventScrollReset:C});else{let Zn=ik(Ot,ht);await De(It,Ot,{overrideNavigation:Zn,fetcherSubmission:Et,preventScrollReset:C})}}async function Ue(ve,we,Te,ht,Et){let Qt=await Promise.all([...Te.map(jt=>Gg("loader",Et,jt,we,i,o,l)),...ht.map(jt=>jt.matches&&jt.match&&jt.controller?Gg("loader",Yg(t.history,jt.path,jt.controller.signal),jt.match,jt.matches,i,o,l):{type:no.error,error:La(404,{pathname:jt.path})})]),Ot=Qt.slice(0,Te.length),It=Qt.slice(Te.length);return await Promise.all([yL(ve,Te,Ot,Ot.map(()=>Et.signal),!1,b.loaderData),yL(ve,ht.map(jt=>jt.match),It,ht.map(jt=>jt.controller?jt.controller.signal:null),!0)]),{results:Qt,loaderResults:Ot,fetcherResults:It}}function nt(){R=!0,M.push(...xe()),ae.forEach((ve,we)=>{T.has(we)&&(z.push(we),B(we))})}function _e(ve,we,Te){Te===void 0&&(Te={}),b.fetchers.set(ve,we),ee({fetchers:new Map(b.fetchers)},{flushSync:(Te&&Te.flushSync)===!0})}function xt(ve,we,Te,ht){ht===void 0&&(ht={});let Et=Zg(b.matches,we);Ze(ve),ee({errors:{[Et.route.id]:Te},fetchers:new Map(b.fetchers)},{flushSync:(ht&&ht.flushSync)===!0})}function hn(ve){return c.v7_fetcherPersist&&(Fe.set(ve,(Fe.get(ve)||0)+1),re.has(ve)&&re.delete(ve)),b.fetchers.get(ve)||Dle}function Ze(ve){let we=b.fetchers.get(ve);T.has(ve)&&!(we&&we.state==="loading"&&U.has(ve))&&B(ve),ae.delete(ve),U.delete(ve),te.delete(ve),re.delete(ve),b.fetchers.delete(ve)}function dt(ve){if(c.v7_fetcherPersist){let we=(Fe.get(ve)||0)-1;we<=0?(Fe.delete(ve),re.add(ve)):Fe.set(ve,we)}else Ze(ve);ee({fetchers:new Map(b.fetchers)})}function B(ve){let we=T.get(ve);pn(we,"Expected fetch controller: "+ve),we.abort(),T.delete(ve)}function N(ve){for(let we of ve){let Te=hn(we),ht=Gc(Te.data);b.fetchers.set(we,ht)}}function W(){let ve=[],we=!1;for(let Te of te){let ht=b.fetchers.get(Te);pn(ht,"Expected fetcher: "+Te),ht.state==="loading"&&(te.delete(Te),ve.push(Te),we=!0)}return N(ve),we}function oe(ve){let we=[];for(let[Te,ht]of U)if(ht<ve){let Et=b.fetchers.get(Te);pn(Et,"Expected fetcher: "+Te),Et.state==="loading"&&(B(Te),U.delete(Te),we.push(Te))}return N(we),we.length>0}function ie(ve,we){let Te=b.blockers.get(ve)||Kg;return K.get(ve)!==we&&K.set(ve,we),Te}function ne(ve){b.blockers.delete(ve),K.delete(ve)}function me(ve,we){let Te=b.blockers.get(ve)||Kg;pn(Te.state==="unblocked"&&we.state==="blocked"||Te.state==="blocked"&&we.state==="blocked"||Te.state==="blocked"&&we.state==="proceeding"||Te.state==="blocked"&&we.state==="unblocked"||Te.state==="proceeding"&&we.state==="unblocked","Invalid blocker state transition: "+Te.state+" -> "+we.state);let ht=new Map(b.blockers);ht.set(ve,we),ee({blockers:ht})}function se(ve){let{currentLocation:we,nextLocation:Te,historyAction:ht}=ve;if(K.size===0)return;K.size>1&&wl(!1,"A router only supports one blocker at a time");let Et=Array.from(K.entries()),[Qt,Ot]=Et[Et.length-1],It=b.blockers.get(Qt);if(!(It&&It.state==="proceeding")&&Ot({currentLocation:we,nextLocation:Te,historyAction:ht}))return Qt}function xe(ve){let we=[];return ce.forEach((Te,ht)=>{(!ve||ve(ht))&&(Te.cancel(),we.push(ht),ce.delete(ht))}),we}function ke(ve,we,Te){if(h=ve,D=we,m=Te||null,!g&&b.navigation===ek){g=!0;let ht=Fn(b.location,b.matches);ht!=null&&ee({restoreScrollPosition:ht})}return()=>{h=null,D=null,m=null}}function qe(ve,we){return m&&m(ve,we.map(Te=>$ue(Te,b.loaderData)))||ve.key}function Ye(ve,we){if(h&&D){let Te=qe(ve,we);h[Te]=D()}}function Fn(ve,we){if(h){let Te=qe(ve,we),ht=h[Te];if(typeof ht=="number")return ht}return null}function wn(ve){i={},u=Y6(ve,o,void 0,i)}return E={get basename(){return l},get state(){return b},get routes(){return s},get window(){return e},initialize:q,subscribe:X,enableScrollRestoration:ke,navigate:de,fetch:He,revalidate:ue,createHref:ve=>t.history.createHref(ve),encodeLocation:ve=>t.history.encodeLocation(ve),getFetcher:hn,deleteFetcher:dt,dispose:V,getBlocker:ie,deleteBlocker:ne,_internalFetchControllers:T,_internalActiveDeferreds:ce,_internalSetRoutes:wn},E}function ple(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function tk(t,e,n,r,o,i,s){let u,l;if(i){u=[];for(let d of e)if(u.push(d),d.route.id===i){l=d;break}}else u=e,l=e[e.length-1];let c=X6(o||".",J6(u),fF(t.pathname,n)||t.pathname,s==="path");return o==null&&(c.search=t.search,c.hash=t.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!rk(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Sl([n,c.pathname])),Kc(c)}function FL(t,e,n,r){if(!r||!ple(r))return{path:n};if(r.formMethod&&!yle(r.formMethod))return{path:n,error:La(405,{method:r.formMethod})};let o=()=>({path:n,error:La(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=t?i.toUpperCase():i.toLowerCase(),u=EL(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ws(s))return o();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((m,D)=>{let[g,p]=D;return""+m+g+"="+p+`
`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!ws(s))return o();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:u,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return o()}}}pn(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=nk(r.formData),c=r.formData;else if(r.body instanceof FormData)l=nk(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=fL(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=fL(l)}catch{return o()}let d={formMethod:s,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(ws(d.formMethod))return{path:n,submission:d};let F=kl(n);return e&&F.search&&rk(F.search)&&l.append("index",""),F.search="?"+l,{path:Kc(F),submission:d}}function fle(t,e){let n=t;if(e){let r=t.findIndex(o=>o.route.id===e);r>=0&&(n=t.slice(0,r))}return n}function mL(t,e,n,r,o,i,s,u,l,c,d,F,h,m,D){let g=D?Object.values(D)[0]:m?Object.values(m)[0]:void 0,p=t.createURL(e.location),_=t.createURL(o),v=D?Object.keys(D)[0]:void 0,E=fle(n,v).filter((k,C)=>{if(k.route.lazy)return!0;if(k.route.loader==null)return!1;if(_le(e.loaderData,e.matches[C],k)||s.some(A=>A===k.route.id))return!0;let S=e.matches[C],w=k;return gL(k,Hr({currentUrl:p,currentParams:S.params,nextUrl:_,nextParams:w.params},r,{actionResult:g,defaultShouldRevalidate:i||p.pathname+p.search===_.pathname+_.search||p.search!==_.search||DL(S,w)}))}),b=[];return c.forEach((k,C)=>{if(!n.some(j=>j.route.id===k.routeId)||l.has(C))return;let S=pF(F,k.path,h);if(!S){b.push({key:C,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let w=e.fetchers.get(C),A=ok(S,k.path),O=!1;d.has(C)?O=!1:u.includes(C)?O=!0:w&&w.state!=="idle"&&w.data===void 0?O=i:O=gL(A,Hr({currentUrl:p,currentParams:e.matches[e.matches.length-1].params,nextUrl:_,nextParams:n[n.length-1].params},r,{actionResult:g,defaultShouldRevalidate:i})),O&&b.push({key:C,routeId:k.routeId,path:k.path,matches:S,match:A,controller:new AbortController})}),[E,b]}function _le(t,e,n){let r=!e||n.route.id!==e.route.id,o=t[n.route.id]===void 0;return r||o}function DL(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function gL(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}async function pL(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let o=n[t.id];pn(o,"No route found in manifest");let i={};for(let s in r){let u=o[s]!==void 0&&s!=="hasErrorBoundary";wl(!u,'Route "'+o.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!u&&!que.has(s)&&(i[s]=r[s])}Object.assign(o,i),Object.assign(o,Hr({},e(o),{lazy:void 0}))}async function Gg(t,e,n,r,o,i,s,u){u===void 0&&(u={});let l,c,d,F=D=>{let g,p=new Promise((_,v)=>g=v);return d=()=>g(),e.signal.addEventListener("abort",d),Promise.race([D({request:e,params:n.params,context:u.requestContext}),p])};try{let D=n.route[t];if(n.route.lazy)if(D){let g,p=await Promise.all([F(D).catch(_=>{g=_}),pL(n.route,i,o)]);if(g)throw g;c=p[0]}else if(await pL(n.route,i,o),D=n.route[t],D)c=await F(D);else if(t==="action"){let g=new URL(e.url),p=g.pathname+g.search;throw La(405,{method:e.method,pathname:p,routeId:n.route.id})}else return{type:no.data,data:void 0};else if(D)c=await F(D);else{let g=new URL(e.url),p=g.pathname+g.search;throw La(404,{pathname:p})}pn(c!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(D){l=no.error,c=D}finally{d&&e.signal.removeEventListener("abort",d)}if(Ele(c)){let D=c.status;if(Fle.has(D)){let _=c.headers.get("Location");if(pn(_,"Redirects returned/thrown from loaders/actions must have a Location header"),!cL.test(_))_=tk(new URL(e.url),r.slice(0,r.indexOf(n)+1),s,!0,_);else if(!u.isStaticRequest){let v=new URL(e.url),E=_.startsWith("//")?new URL(v.protocol+_):new URL(_),b=fF(E.pathname,s)!=null;E.origin===v.origin&&b&&(_=E.pathname+E.search+E.hash)}if(u.isStaticRequest)throw c.headers.set("Location",_),c;return{type:no.redirect,status:D,location:_,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:l===no.error?no.error:no.data,response:c};let g,p=c.headers.get("Content-Type");return p&&/\bapplication\/json\b/.test(p)?g=await c.json():g=await c.text(),l===no.error?{type:l,error:new Q6(D,c.statusText,g),headers:c.headers}:{type:no.data,data:g,statusCode:c.status,headers:c.headers}}if(l===no.error)return{type:l,error:c};if(Cle(c)){var h,m;return{type:no.deferred,deferredData:c,statusCode:(h=c.init)==null?void 0:h.status,headers:((m=c.init)==null?void 0:m.headers)&&new Headers(c.init.headers)}}return{type:no.data,data:c}}function Yg(t,e,n,r){let o=t.createURL(EL(e)).toString(),i={signal:n};if(r&&ws(r.formMethod)){let{formMethod:s,formEncType:u}=r;i.method=s.toUpperCase(),u==="application/json"?(i.headers=new Headers({"Content-Type":u}),i.body=JSON.stringify(r.json)):u==="text/plain"?i.body=r.text:u==="application/x-www-form-urlencoded"&&r.formData?i.body=nk(r.formData):i.body=r.formData}return new Request(o,i)}function nk(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function fL(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function vle(t,e,n,r,o){let i={},s=null,u,l=!1,c={};return n.forEach((d,F)=>{let h=e[F].route.id;if(pn(!_F(d),"Cannot handle redirect results in processLoaderData"),Jg(d)){let m=Zg(t,h),D=d.error;r&&(D=Object.values(r)[0],r=void 0),s=s||{},s[m.route.id]==null&&(s[m.route.id]=D),i[h]=void 0,l||(l=!0,u=uL(d.error)?d.error.status:500),d.headers&&(c[h]=d.headers)}else H1(d)?(o.set(h,d.deferredData),i[h]=d.deferredData.data):i[h]=d.data,d.statusCode!=null&&d.statusCode!==200&&!l&&(u=d.statusCode),d.headers&&(c[h]=d.headers)}),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:u||200,loaderHeaders:c}}function _L(t,e,n,r,o,i,s,u){let{loaderData:l,errors:c}=vle(e,n,r,o,u);for(let d=0;d<i.length;d++){let{key:F,match:h,controller:m}=i[d];pn(s!==void 0&&s[d]!==void 0,"Did not find corresponding fetcher result");let D=s[d];if(!(m&&m.signal.aborted))if(Jg(D)){let g=Zg(t.matches,h==null?void 0:h.route.id);c&&c[g.route.id]||(c=Hr({},c,{[g.route.id]:D.error})),t.fetchers.delete(F)}else if(_F(D))pn(!1,"Unhandled fetcher revalidation redirect");else if(H1(D))pn(!1,"Unhandled fetcher deferred data");else{let g=Gc(D.data);t.fetchers.set(F,g)}}return{loaderData:l,errors:c}}function vL(t,e,n,r){let o=Hr({},e);for(let i of n){let s=i.route.id;if(e.hasOwnProperty(s)?e[s]!==void 0&&(o[s]=e[s]):t[s]!==void 0&&i.route.loader&&(o[s]=t[s]),r&&r.hasOwnProperty(s))break}return o}function Zg(t,e){return(e?t.slice(0,t.findIndex(n=>n.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function bL(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function La(t,e){let{pathname:n,routeId:r,method:o,type:i}=e===void 0?{}:e,s="Unknown Server Error",u="Unknown @remix-run/router error";return t===400?(s="Bad Request",o&&n&&r?u="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?u="defer() is not supported in actions":i==="invalid-body"&&(u="Unable to encode submission body")):t===403?(s="Forbidden",u='Route "'+r+'" does not match URL "'+n+'"'):t===404?(s="Not Found",u='No route matches URL "'+n+'"'):t===405&&(s="Method Not Allowed",o&&n&&r?u="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(u='Invalid request method "'+o.toUpperCase()+'"')),new Q6(t||500,s,new Error(u),!0)}function CL(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(_F(n))return{result:n,idx:e}}}function EL(t){let e=typeof t=="string"?kl(t):t;return Kc(Hr({},e,{hash:""}))}function ble(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function H1(t){return t.type===no.deferred}function Jg(t){return t.type===no.error}function _F(t){return(t&&t.type)===no.redirect}function Cle(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function Ele(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function yle(t){return hle.has(t.toLowerCase())}function ws(t){return cle.has(t.toLowerCase())}async function yL(t,e,n,r,o,i){for(let s=0;s<n.length;s++){let u=n[s],l=e[s];if(!l)continue;let c=t.find(F=>F.route.id===l.route.id),d=c!=null&&!DL(c,l)&&(i&&i[l.route.id])!==void 0;if(H1(u)&&(o||d)){let F=r[s];pn(F,"Expected an AbortSignal for revalidating fetcher deferred result"),await xL(u,F,o).then(h=>{h&&(n[s]=h||n[s])})}}}async function xL(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:no.data,data:t.deferredData.unwrappedData}}catch(r){return{type:no.error,error:r}}return{type:no.data,data:t.deferredData.data}}}function rk(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function ok(t,e){let n=typeof e=="string"?kl(e).search:e.search;if(t[t.length-1].route.index&&rk(n||""))return t[t.length-1];let r=sL(t);return r[r.length-1]}function wL(t){let{formMethod:e,formAction:n,formEncType:r,text:o,formData:i,json:s}=t;if(!(!e||!n||!r)){if(o!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:e,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function ik(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function xle(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function Xg(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function wle(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Gc(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function kle(t,e){try{let n=t.sessionStorage.getItem(dL);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&e.set(o,new Set(i||[]))}}catch{}}function Sle(t,e){if(e.size>0){let n={};for(let[r,o]of e)n[r]=[...o];try{t.sessionStorage.setItem(dL,JSON.stringify(n))}catch(r){wl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}function ak(){return ak=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ak.apply(this,arguments)}const kv=f.createContext(null),kL=f.createContext(null),vF=f.createContext(null),sk=f.createContext(null),jl=f.createContext({outlet:null,matches:[],isDataRoute:!1}),SL=f.createContext(null);function jle(t,e){let{relative:n}=e===void 0?{}:e;bF()||pn(!1);let{basename:r,navigator:o}=f.useContext(vF),{hash:i,pathname:s,search:u}=BL(t,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Sl([r,s])),o.createHref({pathname:l,search:u,hash:i})}function bF(){return f.useContext(sk)!=null}function Bl(){return bF()||pn(!1),f.useContext(sk).location}function gi(t){bF()||pn(!1);let{pathname:e}=Bl();return f.useMemo(()=>su(t,e),[e,t])}function jL(t){f.useContext(vF).static||f.useLayoutEffect(t)}function Xr(){let{isDataRoute:t}=f.useContext(jl);return t?qle():Ble()}function Ble(){bF()||pn(!1);let t=f.useContext(kv),{basename:e,navigator:n}=f.useContext(vF),{matches:r}=f.useContext(jl),{pathname:o}=Bl(),i=JSON.stringify(J6(r)),s=f.useRef(!1);return jL(()=>{s.current=!0}),f.useCallback(function(u,l){if(l===void 0&&(l={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let c=X6(u,JSON.parse(i),o,l.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:Sl([e,c.pathname])),(l.replace?n.replace:n.push)(c,l.state,l)},[e,n,i,o,t])}const Ale=f.createContext(null);function Tle(t){let e=f.useContext(jl).outlet;return e&&f.createElement(Ale.Provider,{value:t},e)}function uu(){let{matches:t}=f.useContext(jl),e=t[t.length-1];return e?e.params:{}}function BL(t,e){let{relative:n}=e===void 0?{}:e,{matches:r}=f.useContext(jl),{pathname:o}=Bl(),i=JSON.stringify(J6(r));return f.useMemo(()=>X6(t,JSON.parse(i),o,n==="path"),[t,i,o,n])}function Ile(t,e,n){bF()||pn(!1);let{navigator:r}=f.useContext(vF),{matches:o}=f.useContext(jl),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let l=Bl(),c;c=l;let d=c.pathname||"/",F=u==="/"?d:d.slice(u.length)||"/",h=pF(t,{pathname:F});return Lle(h&&h.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:Sl([u,r.encodeLocation?r.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?u:Sl([u,r.encodeLocation?r.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,n)}function Rle(){let t=Vle(),e=uL(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},e),n?f.createElement("pre",{style:r},n):null,null)}const Ole=f.createElement(Rle,null);class Mle extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error?f.createElement(jl.Provider,{value:this.props.routeContext},f.createElement(SL.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ple(t){let{routeContext:e,match:n,children:r}=t,o=f.useContext(kv);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(jl.Provider,{value:e},r)}function Lle(t,e,n){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),t==null){var o;if((o=n)!=null&&o.errors)t=n.matches;else return null}let i=t,s=(r=n)==null?void 0:r.errors;if(s!=null){let u=i.findIndex(l=>l.route.id&&(s==null?void 0:s[l.route.id]));u>=0||pn(!1),i=i.slice(0,Math.min(i.length,u+1))}return i.reduceRight((u,l,c)=>{let d=l.route.id?s==null?void 0:s[l.route.id]:null,F=null;n&&(F=l.route.errorElement||Ole);let h=e.concat(i.slice(0,c+1)),m=()=>{let D;return d?D=F:l.route.Component?D=f.createElement(l.route.Component,null):l.route.element?D=l.route.element:D=u,f.createElement(Ple,{match:l,routeContext:{outlet:u,matches:h,isDataRoute:n!=null},children:D})};return n&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?f.createElement(Mle,{location:n.location,revalidation:n.revalidation,component:F,error:d,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var AL=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(AL||{}),Sv=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Sv||{});function Nle(t){let e=f.useContext(kv);return e||pn(!1),e}function zle(t){let e=f.useContext(kL);return e||pn(!1),e}function Ule(t){let e=f.useContext(jl);return e||pn(!1),e}function TL(t){let e=Ule(),n=e.matches[e.matches.length-1];return n.route.id||pn(!1),n.route.id}function Vle(){var t;let e=f.useContext(SL),n=zle(Sv.UseRouteError),r=TL(Sv.UseRouteError);return e||((t=n.errors)==null?void 0:t[r])}function qle(){let{router:t}=Nle(AL.UseNavigateStable),e=TL(Sv.UseNavigateStable),n=f.useRef(!1);return jL(()=>{n.current=!0}),f.useCallback(function(r,o){o===void 0&&(o={}),n.current&&(typeof r=="number"?t.navigate(r):t.navigate(r,ak({fromRouteId:e},o)))},[t,e])}function $1(t){return Tle(t.context)}function Gn(t){pn(!1)}function Hle(t){let{basename:e="/",children:n=null,location:r,navigationType:o=fo.Pop,navigator:i,static:s=!1}=t;bF()&&pn(!1);let u=e.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:u,navigator:i,static:s}),[u,i,s]);typeof r=="string"&&(r=kl(r));let{pathname:c="/",search:d="",hash:F="",state:h=null,key:m="default"}=r,D=f.useMemo(()=>{let g=fF(c,u);return g==null?null:{location:{pathname:g,search:d,hash:F,state:h,key:m},navigationType:o}},[u,c,d,F,h,m,o]);return D==null?null:f.createElement(vF.Provider,{value:l},f.createElement(sk.Provider,{children:n,value:D}))}new Promise(()=>{});function uk(t,e){e===void 0&&(e=[]);let n=[];return f.Children.forEach(t,(r,o)=>{if(!f.isValidElement(r))return;let i=[...e,o];if(r.type===f.Fragment){n.push.apply(n,uk(r.props.children,i));return}r.type!==Gn&&pn(!1),!r.props.index||!r.props.children||pn(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=uk(r.props.children,i)),n.push(s)}),n}function IL(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:f.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:f.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}function CF(){return CF=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},CF.apply(this,arguments)}function $le(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Wle(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Kle(t,e){return t.button===0&&(!e||e==="_self")&&!Wle(t)}function lk(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Gle(t,e){let n=lk(t);return e&&e.forEach((r,o)=>{n.has(o)||e.getAll(o).forEach(i=>{n.append(o,i)})}),n}const Yle=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];function Zle(t,e){return hL({basename:e==null?void 0:e.basename,future:CF({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:zue({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||RL(),routes:t,mapRouteProperties:IL,window:e==null?void 0:e.window}).initialize()}function Jle(t,e){return hL({basename:e==null?void 0:e.basename,future:CF({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:Uue({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||RL(),routes:t,mapRouteProperties:IL,window:e==null?void 0:e.window}).initialize()}function RL(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=CF({},e,{errors:Xle(e.errors)})),e}function Xle(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,o]of e)if(o&&o.__type==="RouteErrorResponse")n[r]=new Q6(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let s=new i(o.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const Qle=f.createContext({isTransitioning:!1}),ece=f.createContext(new Map),tce="startTransition",OL=cie[tce],nce="flushSync",ML=_se[nce];function rce(t){OL?OL(t):t()}function Qg(t){ML?ML(t):t()}class oce{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function ice(t){let{fallbackElement:e,router:n,future:r}=t,[o,i]=f.useState(n.state),[s,u]=f.useState(),[l,c]=f.useState({isTransitioning:!1}),[d,F]=f.useState(),[h,m]=f.useState(),[D,g]=f.useState(),p=f.useRef(new Map),{v7_startTransition:_}=r||{},v=f.useCallback(S=>{_?rce(S):S()},[_]),E=f.useCallback((S,w)=>{let{deletedFetchers:A,unstable_flushSync:O,unstable_viewTransitionOpts:j}=w;A.forEach(M=>p.current.delete(M)),S.fetchers.forEach((M,z)=>{M.data!==void 0&&p.current.set(z,M.data)});let R=n.window==null||typeof n.window.document.startViewTransition!="function";if(!j||R){O?Qg(()=>i(S)):v(()=>i(S));return}if(O){Qg(()=>{h&&(d&&d.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:j.currentLocation,nextLocation:j.nextLocation})});let M=n.window.document.startViewTransition(()=>{Qg(()=>i(S))});M.finished.finally(()=>{Qg(()=>{F(void 0),m(void 0),u(void 0),c({isTransitioning:!1})})}),Qg(()=>m(M));return}h?(d&&d.resolve(),h.skipTransition(),g({state:S,currentLocation:j.currentLocation,nextLocation:j.nextLocation})):(u(S),c({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}))},[n.window,h,d,p,v]);f.useLayoutEffect(()=>n.subscribe(E),[n,E]),f.useEffect(()=>{l.isTransitioning&&!l.flushSync&&F(new oce)},[l]),f.useEffect(()=>{if(d&&s&&n.window){let S=s,w=d.promise,A=n.window.document.startViewTransition(async()=>{v(()=>i(S)),await w});A.finished.finally(()=>{F(void 0),m(void 0),u(void 0),c({isTransitioning:!1})}),m(A)}},[v,s,d,n.window]),f.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,h,o.location,s]),f.useEffect(()=>{!l.isTransitioning&&D&&(u(D.state),c({isTransitioning:!0,flushSync:!1,currentLocation:D.currentLocation,nextLocation:D.nextLocation}),g(void 0))},[l.isTransitioning,D]);let b=f.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:S=>n.navigate(S),push:(S,w,A)=>n.navigate(S,{state:w,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(S,w,A)=>n.navigate(S,{replace:!0,state:w,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),k=n.basename||"/",C=f.useMemo(()=>({router:n,navigator:b,static:!1,basename:k}),[n,b,k]);return f.createElement(f.Fragment,null,f.createElement(kv.Provider,{value:C},f.createElement(kL.Provider,{value:o},f.createElement(ece.Provider,{value:p.current},f.createElement(Qle.Provider,{value:l},f.createElement(Hle,{basename:k,location:o.location,navigationType:o.historyAction,navigator:b},o.initialized?f.createElement(ace,{routes:n.routes,state:o}):e))))),null)}function ace(t){let{routes:e,state:n}=t;return Ile(e,void 0,n)}const sce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ep=f.forwardRef(function(t,e){let{onClick:n,relative:r,reloadDocument:o,replace:i,state:s,target:u,to:l,preventScrollReset:c,unstable_viewTransition:d}=t,F=$le(t,Yle),{basename:h}=f.useContext(vF),m,D=!1;if(typeof l=="string"&&uce.test(l)&&(m=l,sce))try{let v=new URL(window.location.href),E=l.startsWith("//")?new URL(v.protocol+l):new URL(l),b=fF(E.pathname,h);E.origin===v.origin&&b!=null?l=b+E.search+E.hash:D=!0}catch{}let g=jle(l,{relative:r}),p=lce(l,{replace:i,state:s,target:u,preventScrollReset:c,relative:r,unstable_viewTransition:d});function _(v){n&&n(v),v.defaultPrevented||p(v)}return f.createElement("a",CF({},F,{href:m||g,onClick:D||o?n:_,ref:e,target:u}))});var PL;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(PL||(PL={}));var LL;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(LL||(LL={}));function lce(t,e){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:u}=e===void 0?{}:e,l=Xr(),c=Bl(),d=BL(t,{relative:s});return f.useCallback(F=>{if(Kle(F,n)){F.preventDefault();let h=r!==void 0?r:Kc(c)===Kc(d);l(t,{replace:h,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:u})}},[c,l,d,r,o,n,t,i,s,u])}function Yc(t){let e=f.useRef(lk(t)),n=f.useRef(!1),r=Bl(),o=f.useMemo(()=>Gle(r.search,n.current?null:e.current),[r.search]),i=Xr(),s=f.useCallback((u,l)=>{const c=lk(typeof u=="function"?u(o):u);n.current=!0,i("?"+c,l)},[i,o]);return[o,s]}var tp=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},EF=typeof window>"u"||"Deno"in window;function Na(){}function cce(t,e){return typeof t=="function"?t(e):t}function ck(t){return typeof t=="number"&&t>=0&&t!==1/0}function NL(t,e){return Math.max(t+(e||0)-Date.now(),0)}function zL(t,e){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:u}=t;if(s){if(r){if(e.queryHash!==dk(s,e.options))return!1}else if(!rp(e.queryKey,s))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof u=="boolean"&&e.isStale()!==u||typeof o<"u"&&o!==e.state.fetchStatus||i&&!i(e))}function UL(t,e){const{exact:n,status:r,predicate:o,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(np(e.options.mutationKey)!==np(i))return!1}else if(!rp(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||o&&!o(e))}function dk(t,e){return((e==null?void 0:e.queryKeyHashFn)||np)(t)}function np(t){return JSON.stringify(t,(e,n)=>Fk(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function rp(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!rp(t[n],e[n])):!1}function VL(t,e){if(t===e)return t;const n=qL(t)&&qL(e);if(n||Fk(t)&&Fk(e)){const r=n?t:Object.keys(t),o=r.length,i=n?e:Object.keys(e),s=i.length,u=n?[]:{};let l=0;for(let c=0;c<s;c++){const d=n?c:i[c];!n&&t[d]===void 0&&e[d]===void 0&&r.includes(d)?(u[d]=void 0,l++):(u[d]=VL(t[d],e[d]),u[d]===t[d]&&t[d]!==void 0&&l++)}return o===s&&l===o?t:u}return e}function hk(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function qL(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Fk(t){if(!HL(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const n=e.prototype;return!(!HL(n)||!n.hasOwnProperty("isPrototypeOf"))}function HL(t){return Object.prototype.toString.call(t)==="[object Object]"}function dce(t){return new Promise(e=>{setTimeout(e,t)})}function mk(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?VL(t,e):e}function hce(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Fce(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var mce=(Eoe=class extends tp{constructor(){super();Ht(this,k0);Ht(this,D1);Ht(this,AD);yt(this,AD,e=>{if(!EF&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){be(this,D1)||this.setEventListener(be(this,AD))}onUnsubscribe(){var e;this.hasListeners()||((e=be(this,D1))==null||e.call(this),yt(this,D1,void 0))}setEventListener(e){var n;yt(this,AD,e),(n=be(this,D1))==null||n.call(this),yt(this,D1,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){be(this,k0)!==e&&(yt(this,k0,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return typeof be(this,k0)=="boolean"?be(this,k0):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},k0=new WeakMap,D1=new WeakMap,AD=new WeakMap,Eoe),jv=new mce,Dce=(yoe=class extends tp{constructor(){super();Ht(this,TD,!0);Ht(this,g1);Ht(this,ID);yt(this,ID,e=>{if(!EF&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){be(this,g1)||this.setEventListener(be(this,ID))}onUnsubscribe(){var e;this.hasListeners()||((e=be(this,g1))==null||e.call(this),yt(this,g1,void 0))}setEventListener(e){var n;yt(this,ID,e),(n=be(this,g1))==null||n.call(this),yt(this,g1,e(this.setOnline.bind(this)))}setOnline(e){be(this,TD)!==e&&(yt(this,TD,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return be(this,TD)}},TD=new WeakMap,g1=new WeakMap,ID=new WeakMap,yoe),Bv=new Dce;function gce(t){return Math.min(1e3*2**t,3e4)}function Av(t){return(t??"online")==="online"?Bv.isOnline():!0}var $L=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Dk(t){return t instanceof $L}function WL(t){let e=!1,n=0,r=!1,o,i,s;const u=new Promise((p,_)=>{i=p,s=_}),l=p=>{var _;r||(m(new $L(p)),(_=t.abort)==null||_.call(t))},c=()=>{e=!0},d=()=>{e=!1},F=()=>!jv.isFocused()||t.networkMode!=="always"&&!Bv.isOnline(),h=p=>{var _;r||(r=!0,(_=t.onSuccess)==null||_.call(t,p),o==null||o(),i(p))},m=p=>{var _;r||(r=!0,(_=t.onError)==null||_.call(t,p),o==null||o(),s(p))},D=()=>new Promise(p=>{var _;o=v=>{const E=r||!F();return E&&p(v),E},(_=t.onPause)==null||_.call(t)}).then(()=>{var p;o=void 0,r||((p=t.onContinue)==null||p.call(t))}),g=()=>{if(r)return;let p;try{p=t.fn()}catch(_){p=Promise.reject(_)}Promise.resolve(p).then(h).catch(_=>{var C;if(r)return;const v=t.retry??(EF?0:3),E=t.retryDelay??gce,b=typeof E=="function"?E(n,_):E,k=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,_);if(e||!k){m(_);return}n++,(C=t.onFail)==null||C.call(t,n,_),dce(b).then(()=>{if(F())return D()}).then(()=>{e?m(_):g()})})};return Av(t.networkMode)?g():D().then(g),{promise:u,cancel:l,continue:()=>o!=null&&o()?u:Promise.resolve(),cancelRetry:c,continueRetry:d}}function pce(){let t=[],e=0,n=d=>{d()},r=d=>{d()},o=d=>setTimeout(d,0);const i=d=>{o=d},s=d=>{let F;e++;try{F=d()}finally{e--,e||c()}return F},u=d=>{e?t.push(d):o(()=>{n(d)})},l=d=>(...F)=>{u(()=>{d(...F)})},c=()=>{const d=t;t=[],d.length&&o(()=>{r(()=>{d.forEach(F=>{n(F)})})})};return{batch:s,batchCalls:l,schedule:u,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:i}}var Qo=pce(),KL=(xoe=class{constructor(){Ht(this,S0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ck(this.gcTime)&&yt(this,S0,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(EF?1/0:5*60*1e3))}clearGcTimeout(){be(this,S0)&&(clearTimeout(be(this,S0)),yt(this,S0,void 0))}},S0=new WeakMap,xoe),fce=(woe=class extends KL{constructor(e){super();Ht(this,Li);Ht(this,RD);Ht(this,OD);Ht(this,Ds);Ht(this,p1);Ht(this,gs);Ht(this,Go);Ht(this,J_);Ht(this,j0);yt(this,j0,!1),yt(this,J_,e.defaultOptions),Sn(this,Li,ux).call(this,e.options),yt(this,Go,[]),yt(this,Ds,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,yt(this,RD,e.state||_ce(this.options)),this.state=be(this,RD),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!be(this,Go).length&&this.state.fetchStatus==="idle"&&be(this,Ds).remove(this)}setData(e,n){const r=mk(this.state.data,e,this.options);return Sn(this,Li,xc).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(e,n){Sn(this,Li,xc).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var r;const n=be(this,p1);return(r=be(this,gs))==null||r.cancel(e),n?n.then(Na).catch(Na):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(be(this,RD))}isActive(){return be(this,Go).some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||be(this,Go).some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!NL(this.state.dataUpdatedAt,e)}onFocus(){var e,n;(e=be(this,Go).find(r=>r.shouldFetchOnWindowFocus()))==null||e.refetch({cancelRefetch:!1}),(n=be(this,gs))==null||n.continue()}onOnline(){var e,n;(e=be(this,Go).find(r=>r.shouldFetchOnReconnect()))==null||e.refetch({cancelRefetch:!1}),(n=be(this,gs))==null||n.continue()}addObserver(e){be(this,Go).includes(e)||(be(this,Go).push(e),this.clearGcTimeout(),be(this,Ds).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){be(this,Go).includes(e)&&(yt(this,Go,be(this,Go).filter(n=>n!==e)),be(this,Go).length||(be(this,gs)&&(be(this,j0)?be(this,gs).cancel({revert:!0}):be(this,gs).cancelRetry()),this.scheduleGc()),be(this,Ds).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return be(this,Go).length}invalidate(){this.state.isInvalidated||Sn(this,Li,xc).call(this,{type:"invalidate"})}fetch(e,n){var c,d,F,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(be(this,p1))return(c=be(this,gs))==null||c.continueRetry(),be(this,p1)}if(e&&Sn(this,Li,ux).call(this,e),!this.options.queryFn){const m=be(this,Go).find(D=>D.options.queryFn);m&&Sn(this,Li,ux).call(this,m.options)}const r=new AbortController,o={queryKey:this.queryKey,meta:this.meta},i=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(yt(this,j0,!0),r.signal)})};i(o);const s=()=>this.options.queryFn?(yt(this,j0,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),u={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(u),(d=this.options.behavior)==null||d.onFetch(u,this),yt(this,OD,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((F=u.fetchOptions)==null?void 0:F.meta))&&Sn(this,Li,xc).call(this,{type:"fetch",meta:(h=u.fetchOptions)==null?void 0:h.meta});const l=m=>{var D,g,p,_;Dk(m)&&m.silent||Sn(this,Li,xc).call(this,{type:"error",error:m}),Dk(m)||((g=(D=be(this,Ds).config).onError)==null||g.call(D,m,this),(_=(p=be(this,Ds).config).onSettled)==null||_.call(p,this.state.data,m,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return yt(this,gs,WL({fn:u.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var D,g,p,_;if(typeof m>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(m),(g=(D=be(this,Ds).config).onSuccess)==null||g.call(D,m,this),(_=(p=be(this,Ds).config).onSettled)==null||_.call(p,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(m,D)=>{Sn(this,Li,xc).call(this,{type:"failed",failureCount:m,error:D})},onPause:()=>{Sn(this,Li,xc).call(this,{type:"pause"})},onContinue:()=>{Sn(this,Li,xc).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode})),yt(this,p1,be(this,gs).promise),be(this,p1)}},RD=new WeakMap,OD=new WeakMap,Ds=new WeakMap,p1=new WeakMap,gs=new WeakMap,Go=new WeakMap,J_=new WeakMap,j0=new WeakMap,Li=new WeakSet,ux=function(e){this.options={...be(this,J_),...e},this.updateGcTime(this.options.gcTime)},xc=function(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:Av(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return Dk(o)&&o.revert&&be(this,OD)?{...be(this,OD),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Qo.batch(()=>{be(this,Go).forEach(r=>{r.onQueryUpdate()}),be(this,Ds).notify({query:this,type:"updated",action:e})})},woe);function _ce(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=typeof e<"u",r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var vce=(koe=class extends tp{constructor(e={}){super();Ht(this,ol);this.config=e,yt(this,ol,new Map)}build(e,n,r){const o=n.queryKey,i=n.queryHash??dk(o,n);let s=this.get(i);return s||(s=new fce({cache:this,queryKey:o,queryHash:i,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){be(this,ol).has(e.queryHash)||(be(this,ol).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=be(this,ol).get(e.queryHash);n&&(e.destroy(),n===e&&be(this,ol).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Qo.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return be(this,ol).get(e)}getAll(){return[...be(this,ol).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>zL(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>zL(e,r)):n}notify(e){Qo.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Qo.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Qo.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ol=new WeakMap,koe),bce=(Soe=class extends KL{constructor(e){super();Ht(this,al);Ht(this,il);Ht(this,X_);Ht(this,ja);Ht(this,MD);this.mutationId=e.mutationId,yt(this,X_,e.defaultOptions),yt(this,ja,e.mutationCache),yt(this,il,[]),this.state=e.state||Cce(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...be(this,X_),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){be(this,il).includes(e)||(be(this,il).push(e),this.clearGcTimeout(),be(this,ja).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){yt(this,il,be(this,il).filter(n=>n!==e)),this.scheduleGc(),be(this,ja).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){be(this,il).length||(this.state.status==="pending"?this.scheduleGc():be(this,ja).remove(this))}continue(){var e;return((e=be(this,MD))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,i,s,u,l,c,d,F,h,m,D,g,p,_,v,E,b,k,C,S;const n=()=>(yt(this,MD,WL({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(w,A)=>{Sn(this,al,w1).call(this,{type:"failed",failureCount:w,error:A})},onPause:()=>{Sn(this,al,w1).call(this,{type:"pause"})},onContinue:()=>{Sn(this,al,w1).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),be(this,MD).promise),r=this.state.status==="pending";try{if(!r){Sn(this,al,w1).call(this,{type:"pending",variables:e}),await((i=(o=be(this,ja).config).onMutate)==null?void 0:i.call(o,e,this));const A=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,e));A!==this.state.context&&Sn(this,al,w1).call(this,{type:"pending",context:A,variables:e})}const w=await n();return await((c=(l=be(this,ja).config).onSuccess)==null?void 0:c.call(l,w,e,this.state.context,this)),await((F=(d=this.options).onSuccess)==null?void 0:F.call(d,w,e,this.state.context)),await((m=(h=be(this,ja).config).onSettled)==null?void 0:m.call(h,w,null,this.state.variables,this.state.context,this)),await((g=(D=this.options).onSettled)==null?void 0:g.call(D,w,null,e,this.state.context)),Sn(this,al,w1).call(this,{type:"success",data:w}),w}catch(w){try{throw await((_=(p=be(this,ja).config).onError)==null?void 0:_.call(p,w,e,this.state.context,this)),await((E=(v=this.options).onError)==null?void 0:E.call(v,w,e,this.state.context)),await((k=(b=be(this,ja).config).onSettled)==null?void 0:k.call(b,void 0,w,this.state.variables,this.state.context,this)),await((S=(C=this.options).onSettled)==null?void 0:S.call(C,void 0,w,e,this.state.context)),w}finally{Sn(this,al,w1).call(this,{type:"error",error:w})}}}},il=new WeakMap,X_=new WeakMap,ja=new WeakMap,MD=new WeakMap,al=new WeakSet,w1=function(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Av(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qo.batch(()=>{be(this,il).forEach(r=>{r.onMutationUpdate(e)}),be(this,ja).notify({mutation:this,type:"updated",action:e})})},Soe);function Cce(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ece=(joe=class extends tp{constructor(e={}){super();Ht(this,ps);Ht(this,Q_);Ht(this,B0);this.config=e,yt(this,ps,[]),yt(this,Q_,0)}build(e,n,r){const o=new bce({mutationCache:this,mutationId:++tx(this,Q_)._,options:e.defaultMutationOptions(n),state:r});return this.add(o),o}add(e){be(this,ps).push(e),this.notify({type:"added",mutation:e})}remove(e){yt(this,ps,be(this,ps).filter(n=>n!==e)),this.notify({type:"removed",mutation:e})}clear(){Qo.batch(()=>{be(this,ps).forEach(e=>{this.remove(e)})})}getAll(){return be(this,ps)}find(e){const n={exact:!0,...e};return be(this,ps).find(r=>UL(n,r))}findAll(e={}){return be(this,ps).filter(n=>UL(e,n))}notify(e){Qo.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){return yt(this,B0,(be(this,B0)??Promise.resolve()).then(()=>{const e=be(this,ps).filter(n=>n.state.isPaused);return Qo.batch(()=>e.reduce((n,r)=>n.then(()=>r.continue().catch(Na)),Promise.resolve()))}).then(()=>{yt(this,B0,void 0)})),be(this,B0)}},ps=new WeakMap,Q_=new WeakMap,B0=new WeakMap,joe);function gk(t){return{onFetch:(e,n)=>{const r=async()=>{var D,g,p,_,v;const o=e.options,i=(p=(g=(D=e.fetchOptions)==null?void 0:D.meta)==null?void 0:g.fetchMore)==null?void 0:p.direction,s=((_=e.state.data)==null?void 0:_.pages)||[],u=((v=e.state.data)==null?void 0:v.pageParams)||[],l={pages:[],pageParams:[]};let c=!1;const d=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},F=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),h=async(E,b,k)=>{if(c)return Promise.reject();if(b==null&&E.pages.length)return Promise.resolve(E);const C={queryKey:e.queryKey,pageParam:b,direction:k?"backward":"forward",meta:e.options.meta};d(C);const S=await F(C),{maxPages:w}=e.options,A=k?Fce:hce;return{pages:A(E.pages,S,w),pageParams:A(E.pageParams,b,w)}};let m;if(i&&s.length){const E=i==="backward",b=E?GL:pk,k={pages:s,pageParams:u},C=b(o,k);m=await h(k,C,E)}else{m=await h(l,u[0]??o.initialPageParam);const E=t??s.length;for(let b=1;b<E;b++){const k=pk(o,m);m=await h(m,k)}}return m};e.options.persister?e.fetchFn=()=>{var o,i;return(i=(o=e.options).persister)==null?void 0:i.call(o,r,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=r}}}function pk(t,{pages:e,pageParams:n}){const r=e.length-1;return t.getNextPageParam(e[r],e,n[r],n)}function GL(t,{pages:e,pageParams:n}){var r;return(r=t.getPreviousPageParam)==null?void 0:r.call(t,e[0],e,n[0],n)}function yce(t,e){return e?pk(t,e)!=null:!1}function xce(t,e){return!e||!t.getPreviousPageParam?!1:GL(t,e)!=null}var wce=(Boe=class{constructor(t={}){Ht(this,Lo);Ht(this,f1);Ht(this,_1);Ht(this,PD);Ht(this,LD);Ht(this,v1);Ht(this,ND);Ht(this,zD);yt(this,Lo,t.queryCache||new vce),yt(this,f1,t.mutationCache||new Ece),yt(this,_1,t.defaultOptions||{}),yt(this,PD,new Map),yt(this,LD,new Map),yt(this,v1,0)}mount(){tx(this,v1)._++,be(this,v1)===1&&(yt(this,ND,jv.subscribe(()=>{jv.isFocused()&&(this.resumePausedMutations(),be(this,Lo).onFocus())})),yt(this,zD,Bv.subscribe(()=>{Bv.isOnline()&&(this.resumePausedMutations(),be(this,Lo).onOnline())})))}unmount(){var t,e;tx(this,v1)._--,be(this,v1)===0&&((t=be(this,ND))==null||t.call(this),yt(this,ND,void 0),(e=be(this,zD))==null||e.call(this),yt(this,zD,void 0))}isFetching(t){return be(this,Lo).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return be(this,f1).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=be(this,Lo).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);return e!==void 0?Promise.resolve(e):this.fetchQuery(t)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){var s;const r=this.defaultQueryOptions({queryKey:t}),o=(s=be(this,Lo).get(r.queryHash))==null?void 0:s.state.data,i=cce(e,o);if(!(typeof i>"u"))return be(this,Lo).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(t,e,n){return Qo.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=be(this,Lo).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=be(this,Lo);Qo.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=be(this,Lo),r={type:"active",...t};return Qo.batch(()=>(n.findAll(t).forEach(o=>{o.reset()}),this.refetchQueries(r,e)))}cancelQueries(t={},e={}){const n={revert:!0,...e},r=Qo.batch(()=>be(this,Lo).findAll(t).map(o=>o.cancel(n)));return Promise.all(r).then(Na).catch(Na)}invalidateQueries(t={},e={}){return Qo.batch(()=>{if(be(this,Lo).findAll(t).forEach(r=>{r.invalidate()}),t.refetchType==="none")return Promise.resolve();const n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)})}refetchQueries(t={},e){const n={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},r=Qo.batch(()=>be(this,Lo).findAll(t).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Na)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Na)}fetchQuery(t){const e=this.defaultQueryOptions(t);typeof e.retry>"u"&&(e.retry=!1);const n=be(this,Lo).build(this,e);return n.isStaleByTime(e.staleTime)?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Na).catch(Na)}fetchInfiniteQuery(t){return t.behavior=gk(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Na).catch(Na)}resumePausedMutations(){return be(this,f1).resumePausedMutations()}getQueryCache(){return be(this,Lo)}getMutationCache(){return be(this,f1)}getDefaultOptions(){return be(this,_1)}setDefaultOptions(t){yt(this,_1,t)}setQueryDefaults(t,e){be(this,PD).set(np(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...be(this,PD).values()];let n={};return e.forEach(r=>{rp(t,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(t,e){be(this,LD).set(np(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...be(this,LD).values()];let n={};return e.forEach(r=>{rp(t,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...be(this,_1).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=dk(e.queryKey,e)),typeof e.refetchOnReconnect>"u"&&(e.refetchOnReconnect=e.networkMode!=="always"),typeof e.throwOnError>"u"&&(e.throwOnError=!!e.suspense),typeof e.networkMode>"u"&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...be(this,_1).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){be(this,Lo).clear(),be(this,f1).clear()}},Lo=new WeakMap,f1=new WeakMap,_1=new WeakMap,PD=new WeakMap,LD=new WeakMap,v1=new WeakMap,ND=new WeakMap,zD=new WeakMap,Boe),YL=(Aoe=class extends tp{constructor(e,n){super();Ht(this,rr);Ht(this,ua);Ht(this,Tr);Ht(this,e2);Ht(this,Ni);Ht(this,A0);Ht(this,UD);Ht(this,sl);Ht(this,t2);Ht(this,VD);Ht(this,qD);Ht(this,T0);Ht(this,I0);Ht(this,b1);Ht(this,HD,new Set);this.options=n,yt(this,ua,e),yt(this,sl,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(be(this,Tr).addObserver(this),ZL(be(this,Tr),this.options)?Sn(this,rr,r2).call(this):this.updateResult(),Sn(this,rr,LI).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fk(be(this,Tr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fk(be(this,Tr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Sn(this,rr,NI).call(this),Sn(this,rr,zI).call(this),be(this,Tr).removeObserver(this)}setOptions(e,n){const r=this.options,o=be(this,Tr);if(this.options=be(this,ua).defaultQueryOptions(e),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");Sn(this,rr,UI).call(this),hk(this.options,r)||be(this,ua).getQueryCache().notify({type:"observerOptionsUpdated",query:be(this,Tr),observer:this});const i=this.hasListeners();i&&JL(be(this,Tr),o,this.options,r)&&Sn(this,rr,r2).call(this),this.updateResult(n),i&&(be(this,Tr)!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&Sn(this,rr,OI).call(this);const s=Sn(this,rr,MI).call(this);i&&(be(this,Tr)!==o||this.options.enabled!==r.enabled||s!==be(this,b1))&&Sn(this,rr,PI).call(this,s)}getOptimisticResult(e){const n=be(this,ua).getQueryCache().build(be(this,ua),e),r=this.createResult(n,e);return Sce(this,r)&&(yt(this,Ni,r),yt(this,UD,this.options),yt(this,A0,be(this,Tr).state)),r}getCurrentResult(){return be(this,Ni)}trackResult(e){const n={};return Object.keys(e).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(be(this,HD).add(r),e[r])})}),n}getCurrentQuery(){return be(this,Tr)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=be(this,ua).defaultQueryOptions(e),r=be(this,ua).getQueryCache().build(be(this,ua),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(e){return Sn(this,rr,r2).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),be(this,Ni)))}createResult(e,n){var b;const r=be(this,Tr),o=this.options,i=be(this,Ni),s=be(this,A0),u=be(this,UD),l=e!==r?e.state:be(this,e2),{state:c}=e;let{error:d,errorUpdatedAt:F,fetchStatus:h,status:m}=c,D=!1,g;if(n._optimisticResults){const k=this.hasListeners(),C=!k&&ZL(e,n),S=k&&JL(e,r,n,o);(C||S)&&(h=Av(e.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(m="pending")),n._optimisticResults==="isRestoring"&&(h="idle")}if(n.select&&typeof c.data<"u")if(i&&c.data===(s==null?void 0:s.data)&&n.select===be(this,t2))g=be(this,VD);else try{yt(this,t2,n.select),g=n.select(c.data),g=mk(i==null?void 0:i.data,g,n),yt(this,VD,g),yt(this,sl,null)}catch(k){yt(this,sl,k)}else g=c.data;if(typeof n.placeholderData<"u"&&typeof g>"u"&&m==="pending"){let k;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))k=i.data;else if(k=typeof n.placeholderData=="function"?n.placeholderData((b=be(this,qD))==null?void 0:b.state.data,be(this,qD)):n.placeholderData,n.select&&typeof k<"u")try{k=n.select(k),yt(this,sl,null)}catch(C){yt(this,sl,C)}typeof k<"u"&&(m="success",g=mk(i==null?void 0:i.data,k,n),D=!0)}be(this,sl)&&(d=be(this,sl),g=be(this,VD),F=Date.now(),m="error");const p=h==="fetching",_=m==="pending",v=m==="error",E=_&&p;return{status:m,fetchStatus:h,isPending:_,isSuccess:m==="success",isError:v,isInitialLoading:E,isLoading:E,data:g,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:F,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:p,isRefetching:p&&!_,isLoadingError:v&&c.dataUpdatedAt===0,isPaused:h==="paused",isPlaceholderData:D,isRefetchError:v&&c.dataUpdatedAt!==0,isStale:_k(e,n),refetch:this.refetch}}updateResult(e){const n=be(this,Ni),r=this.createResult(be(this,Tr),this.options);if(yt(this,A0,be(this,Tr).state),yt(this,UD,this.options),be(this,A0).data!==void 0&&yt(this,qD,be(this,Tr)),hk(r,n))return;yt(this,Ni,r);const o={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!be(this,HD).size)return!0;const l=new Set(u??be(this,HD));return this.options.throwOnError&&l.add("error"),Object.keys(be(this,Ni)).some(c=>{const d=c;return be(this,Ni)[d]!==n[d]&&l.has(d)})};(e==null?void 0:e.listeners)!==!1&&i()&&(o.listeners=!0),Sn(this,rr,Hoe).call(this,{...o,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Sn(this,rr,LI).call(this)}},ua=new WeakMap,Tr=new WeakMap,e2=new WeakMap,Ni=new WeakMap,A0=new WeakMap,UD=new WeakMap,sl=new WeakMap,t2=new WeakMap,VD=new WeakMap,qD=new WeakMap,T0=new WeakMap,I0=new WeakMap,b1=new WeakMap,HD=new WeakMap,rr=new WeakSet,r2=function(e){Sn(this,rr,UI).call(this);let n=be(this,Tr).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(Na)),n},OI=function(){if(Sn(this,rr,NI).call(this),EF||be(this,Ni).isStale||!ck(this.options.staleTime))return;const e=NL(be(this,Ni).dataUpdatedAt,this.options.staleTime)+1;yt(this,T0,setTimeout(()=>{be(this,Ni).isStale||this.updateResult()},e))},MI=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(be(this,Tr)):this.options.refetchInterval)??!1},PI=function(e){Sn(this,rr,zI).call(this),yt(this,b1,e),!(EF||this.options.enabled===!1||!ck(be(this,b1))||be(this,b1)===0)&&yt(this,I0,setInterval(()=>{(this.options.refetchIntervalInBackground||jv.isFocused())&&Sn(this,rr,r2).call(this)},be(this,b1)))},LI=function(){Sn(this,rr,OI).call(this),Sn(this,rr,PI).call(this,Sn(this,rr,MI).call(this))},NI=function(){be(this,T0)&&(clearTimeout(be(this,T0)),yt(this,T0,void 0))},zI=function(){be(this,I0)&&(clearInterval(be(this,I0)),yt(this,I0,void 0))},UI=function(){const e=be(this,ua).getQueryCache().build(be(this,ua),this.options);if(e===be(this,Tr))return;const n=be(this,Tr);yt(this,Tr,e),yt(this,e2,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},Hoe=function(e){Qo.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(be(this,Ni))}),be(this,ua).getQueryCache().notify({query:be(this,Tr),type:"observerResultsUpdated"})})},Aoe);function kce(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function ZL(t,e){return kce(t,e)||t.state.dataUpdatedAt>0&&fk(t,e,e.refetchOnMount)}function fk(t,e,n){if(e.enabled!==!1){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&_k(t,e)}return!1}function JL(t,e,n,r){return n.enabled!==!1&&(t!==e||r.enabled===!1)&&(!n.suspense||t.state.status!=="error")&&_k(t,n)}function _k(t,e){return t.isStaleByTime(e.staleTime)}function Sce(t,e){return!hk(t.getCurrentResult(),e)}var jce=class extends YL{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:gk()},e)}getOptimisticResult(t){return t.behavior=gk(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){var l,c,d,F;const{state:n}=t,r=super.createResult(t,e),{isFetching:o,isRefetching:i}=r,s=o&&((c=(l=n.fetchMeta)==null?void 0:l.fetchMore)==null?void 0:c.direction)==="forward",u=o&&((F=(d=n.fetchMeta)==null?void 0:d.fetchMore)==null?void 0:F.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:yce(e,n.data),hasPreviousPage:xce(e,n.data),isFetchingNextPage:s,isFetchingPreviousPage:u,isRefetching:i&&!s&&!u}}},XL=f.createContext(void 0),Bce=t=>{const e=f.useContext(XL);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Ace=({client:t,children:e})=>(f.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),a.jsx(XL.Provider,{value:t,children:e})),QL=f.createContext(!1),Tce=()=>f.useContext(QL);QL.Provider;function Ice(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Rce=f.createContext(Ice()),Oce=()=>f.useContext(Rce);function Mce(t,e){return typeof t=="function"?t(...e):!!t}var Pce=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},Lce=t=>{f.useEffect(()=>{t.clearReset()},[t])},Nce=({result:t,errorResetBoundary:e,throwOnError:n,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&Mce(n,[t.error,r]),zce=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},Uce=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Vce=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function eN(t,e,n){const r=Bce(),o=Tce(),i=Oce(),s=r.defaultQueryOptions(t);s._optimisticResults=o?"isRestoring":"optimistic",zce(s),Pce(s,i),Lce(i);const[u]=f.useState(()=>new e(r,s)),l=u.getOptimisticResult(s);if(f.useSyncExternalStore(f.useCallback(c=>{const d=o?()=>{}:u.subscribe(Qo.batchCalls(c));return u.updateResult(),d},[u,o]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),f.useEffect(()=>{u.setOptions(s,{listeners:!1})},[s,u]),Uce(s,l))throw Vce(s,u,i);if(Nce({result:l,errorResetBoundary:i,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:u.trackResult(l)}function op(t,e){return eN(t,YL)}function tN(t,e){return eN(t,jce)}let nN,rN,vk;nN="modulepreload",rN=function(t){return"/"+t},vk={},$D=function(t,e,n){let r=Promise.resolve();if(e&&e.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.allSettled(e.map(u=>{if(u=rN(u),u in vk)return;vk[u]=!0;const l=u.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":nN,l||(d.as="script"),d.crossOrigin="",d.href=u,s&&d.setAttribute("nonce",s),document.head.appendChild(d),l)return new Promise((F,h)=>{d.addEventListener("load",F),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return r.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};var qce=function(){return null};const yr=()=>{const t=f.useRef(!0);return f.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),f.useCallback(()=>t.current,[])};var he=(t=>(t.Idle="idle",t.Loading="loading",t.Success="success",t.Error="error",t))(he||{});const bk=(t,e)=>{const n=yr(),r=f.useRef(0);return f.useCallback(async(...o)=>{queueMicrotask(()=>{Wc.flushSync(()=>{e({status:"loading"})})}),r.current+=1;const i=r.current;try{const s=await t(...o);if(i!==r.current)throw new Error("AsyncCallbackHook: Request replaced!");return n()&&queueMicrotask(()=>{e({status:"success",data:s})}),s}catch(s){throw i!==r.current?new Error("AsyncCallbackHook: Request replaced!"):(n()&&queueMicrotask(()=>{e({status:"error",error:s})}),s)}},[t,n,e])},et=t=>{const[e,n]=f.useState({status:"idle"}),r=bk(t,n);return[e,r]},Hce=t=>{const[e,n]=et(t);return f.useEffect(()=>{n()},[n]),[e,n]},$ce=async()=>{const t=`${Ki("/")}/config.json`;return(await fetch(t,{method:"GET"})).json()};function Wce({fallback:t,error:e,children:n}){const[r,o]=et($ce),[i,s]=f.useState(!1),u=f.useCallback(()=>s(!0),[]);if(f.useEffect(()=>{o()},[o]),r.status===he.Idle||r.status===he.Loading)return t==null?void 0:t();if(!i&&r.status===he.Error)return e==null?void 0:e(r.error,o,u);const l=r.status===he.Success?r.data:{};return n(l)}const oN=f.createContext(null),Kce=oN.Provider;function W1(){const t=f.useContext(oN);if(!t)throw new Error("Client config are not provided!");return t}const Gce=t=>{var e;return((e=t.homeserverList)==null?void 0:e[t.defaultHomeserver??0])??"matrix.org"},iN=(t,e)=>{const{homeserverList:n,allowCustomHomeservers:r}=t;return r?!0:(n==null?void 0:n.includes(e))===!0};var aN="_4lbgaj0",Yce="_1xwzt1x0",Zce="_1xwzt1x1";function K1({children:t}){return a.jsxs(y,{className:Ve(Yce,aN),direction:"Column",children:[t,a.jsx(y,{className:Zce,shrink:"No",alignItems:"Center",justifyContent:"Center",children:a.jsx(x,{size:"H2",align:"Center",children:"Cinny"})})]})}function Jce(){return a.jsx(K1,{children:a.jsxs(y,{grow:"Yes",direction:"Column",gap:"400",alignItems:"Center",justifyContent:"Center",children:[a.jsx(ot,{variant:"Secondary",size:"600"}),a.jsx(x,{children:"Heating up"})]})})}function Xce({error:t,retry:e,ignore:n}){return a.jsx(K1,{children:a.jsx(y,{grow:"Yes",direction:"Column",gap:"400",alignItems:"Center",justifyContent:"Center",children:a.jsx(cr,{children:a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{children:"Failed to load client configuration file."}),typeof t=="object"&&t&&"message"in t&&typeof t.message=="string"&&a.jsx(x,{size:"T300",style:{color:ct.Critical.Main},children:t.message})]}),a.jsx(Ee,{variant:"Critical",onClick:e,children:a.jsx(x,{as:"span",size:"B400",children:"Retry"})}),a.jsx(Ee,{variant:"Critical",onClick:n,fill:"Soft",children:a.jsx(x,{as:"span",size:"B400",children:"Continue"})})]})})})})}const Qce=async()=>{const t=`checkIndexedDBSupport-${new Date().getTime()}`;return new Promise(e=>{let n;try{n=indexedDB.open(t)}catch{e(!1);return}n.onsuccess=()=>{e(!0),indexedDB.deleteDatabase(t)},n.onerror=()=>{e(!1),indexedDB.deleteDatabase(t)}})};function ede({children:t}){const[e,n]=et(Qce);return f.useEffect(()=>{n()},[n]),e.status===he.Success&&e.data===!1?a.jsx(K1,{children:a.jsx(y,{grow:"Yes",alignItems:"Center",justifyContent:"Center",children:a.jsx(cr,{children:a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsx(x,{children:"Missing Browser Feature"}),a.jsx(x,{size:"T300",priority:"400",children:"No IndexedDB support found. This application requires IndexedDB to store session data locally. Please make sure your browser support IndexedDB and have it enabled."}),a.jsx(x,{size:"T200",children:a.jsx("a",{href:"https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API",rel:"noreferrer noopener",target:"_blank",children:"What is IndexedDB?"})})]})})})}):t}var tde="_15upz2y1",nde="_15upz2y4",rde="_15upz2y5",ode="_15upz2y3",ide="_15upz2y0",ade="_15upz2y2 _1mqalmd1 _1mqalmd0";function sde(){return a.jsxs(y,{className:rde,justifyContent:"Center",gap:"400",wrap:"Wrap",children:[a.jsx(x,{as:"a",size:"T300",href:"https://cinny.in",target:"_blank",rel:"noreferrer",children:"About"}),a.jsx(x,{as:"a",size:"T300",href:"https://github.com/ajbura/cinny/releases",target:"_blank",rel:"noreferrer",children:"v4.8.1"}),a.jsx(x,{as:"a",size:"T300",href:"https://twitter.com/cinnyapp",target:"_blank",rel:"noreferrer",children:"Twitter"}),a.jsx(x,{as:"a",size:"T300",href:"https://matrix.org",target:"_blank",rel:"noreferrer",children:"Powered by Matrix"})]})}const ip="/login/:server?/",Tv="/register/:server?/",Iv="/reset-password/:server?/",sN="create/",ude="join/",uN="lobby/",Rv="search/",yF=":roomIdOrAlias/:eventId?/",ap="/home/",lde=`/home/${Rv}`,cde=`/home/${yF}`,sp="/direct/",dde=`/direct/${yF}`,up="/:spaceIdOrAlias/",hde=`/:spaceIdOrAlias/${uN}`,Fde=`/:spaceIdOrAlias/${Rv}`,mde=`/:spaceIdOrAlias/${yF}`,lN="featured/",cN=":server/",lp="/explore/",Dde=`/explore/${lN}`,gde=`/explore/${cN}`,dN="notifications/",hN="invites/",cp="/inbox/",pde=`/inbox/${dN}`,fde=`/inbox/${hN}`,xF="data:image/svg+xml,%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20--%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:a='http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/'%20x='0px'%20y='0px'%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20enable-background='new%200%200%2018%2018'%20xml:space='preserve'%3e%3cdefs%3e%3c/defs%3e%3cg%3e%3cg%3e%3ccircle%20fill='%23FFFFFF'%20cx='9'%20cy='9'%20r='8.5'/%3e%3c/g%3e%3cg%3e%3cpath%20d='M9,0C4,0,0,4,0,9c0,5,4,9,9,9c5,0,9-4,9-9C18,4,14,0,9,0z%20M1.2,10.8l3.5-2.3c0-0.1,0-0.2,0-0.3c0-1.8,1.3-3.2,3.1-3.4%20c0.1,0,0.2,0,0.4,0c1.2,0,2.3,0.6,2.9,1.6c0.3-0.1,0.6-0.1,0.9-0.1c0.4,0,0.8,0,1.2,0.1c0.7,0.2,1.4,0.5,2,0.9%20C14.6,7.1,14,7,13.3,7c-1.2,0-2.2,0.4-2.9,1.4c-0.7,0.9-1.1,2-1.1,3.2c0,1.5-0.4,2.9-1.3,4.2c-0.3,0.4-0.5,0.7-0.8,1%20C4.2,16.1,1.9,13.8,1.2,10.8z'/%3e%3ccircle%20cx='9.5'%20cy='6.4'%20r='0.5'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";var FN={exports:{}},_de="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",vde=_de,bde=vde;function mN(){}function DN(){}DN.resetWarningCache=mN;var Cde=function(){function t(r,o,i,s,u,l){if(l!==bde){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:DN,resetWarningCache:mN};return n.PropTypes=n,n};FN.exports=Cde();var dp=FN.exports;const fe=Rr(dp);var gN=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ov=gN.join(","),pN=typeof Element>"u",G1=pN?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Mv=!pN&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Pv=function t(e,n){var r;n===void 0&&(n=!0);var o=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),i=o===""||o==="true",s=i||n&&e&&t(e.parentNode);return s},Ede=function(t){var e,n=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return n===""||n==="true"},fN=function(t,e,n){if(Pv(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(Ov));return e&&G1.call(t,Ov)&&r.unshift(t),r=r.filter(n),r},_N=function t(e,n,r){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!Pv(s,!1))if(s.tagName==="SLOT"){var u=s.assignedElements(),l=u.length?u:s.children,c=t(l,!0,r);r.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var d=G1.call(s,Ov);d&&r.filter(s)&&(n||!e.includes(s))&&o.push(s);var F=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),h=!Pv(F,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(F&&h){var m=t(F===!0?s.children:F.children,!0,r);r.flatten?o.push.apply(o,m):o.push({scopeParent:s,candidates:m})}else i.unshift.apply(i,s.children)}}return o},vN=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Zc=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Ede(t))&&!vN(t)?0:t.tabIndex},yde=function(t,e){var n=Zc(t);return n<0&&e&&!vN(t)?0:n},xde=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},bN=function(t){return t.tagName==="INPUT"},wde=function(t){return bN(t)&&t.type==="hidden"},kde=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return e},Sde=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]},jde=function(t){if(!t.name)return!0;var e=t.form||Mv(t),n=function(i){return e.querySelectorAll('input[type="radio"][name="'+i+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=n(window.CSS.escape(t.name));else try{r=n(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=Sde(r,t.form);return!o||o===t},Bde=function(t){return bN(t)&&t.type==="radio"},Ade=function(t){return Bde(t)&&!jde(t)},Tde=function(t){var e,n=t&&Mv(t),r=(e=n)===null||e===void 0?void 0:e.host,o=!1;if(n&&n!==t){var i,s,u;for(o=!!((i=r)!==null&&i!==void 0&&(s=i.ownerDocument)!==null&&s!==void 0&&s.contains(r)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!o&&r;){var l,c,d;n=Mv(r),r=(l=n)===null||l===void 0?void 0:l.host,o=!!((c=r)!==null&&c!==void 0&&(d=c.ownerDocument)!==null&&d!==void 0&&d.contains(r))}}return o},CN=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height;return n===0&&r===0},Ide=function(t,e){var n=e.displayCheck,r=e.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=G1.call(t,"details>summary:first-of-type"),i=o?t.parentElement:t;if(G1.call(i,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof r=="function"){for(var s=t;t;){var u=t.parentElement,l=Mv(t);if(u&&!u.shadowRoot&&r(u)===!0)return CN(t);t.assignedSlot?t=t.assignedSlot:!u&&l!==t.ownerDocument?t=l.host:t=u}t=s}if(Tde(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return CN(t);return!1},Rde=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var n=0;n<e.children.length;n++){var r=e.children.item(n);if(r.tagName==="LEGEND")return G1.call(e,"fieldset[disabled] *")?!0:!r.contains(t)}return!0}e=e.parentElement}return!1},Lv=function(t,e){return!(e.disabled||Pv(e)||wde(e)||Ide(e,t)||kde(e)||Rde(e))},Ck=function(t,e){return!(Ade(e)||Zc(e)<0||!Lv(t,e))},Ode=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Mde=function t(e){var n=[],r=[];return e.forEach(function(o,i){var s=!!o.scopeParent,u=s?o.scopeParent:o,l=yde(u,s),c=s?t(o.candidates):u;l===0?s?n.push.apply(n,c):n.push(u):r.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:c})}),r.sort(xde).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},EN=function(t,e){e=e||{};var n;return e.getShadowRoot?n=_N([t],e.includeContainer,{filter:Ck.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Ode}):n=fN(t,e.includeContainer,Ck.bind(null,e)),Mde(n)},yN=function(t,e){e=e||{};var n;return e.getShadowRoot?n=_N([t],e.includeContainer,{filter:Lv.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):n=fN(t,e.includeContainer,Lv.bind(null,e)),n},Y1=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return G1.call(t,Ov)===!1?!1:Ck(e,t)},Pde=gN.concat("iframe").join(","),Nv=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return G1.call(t,Pde)===!1?!1:Lv(e,t)};const Lde=Object.freeze(Object.defineProperty({__proto__:null,focusable:yN,getTabIndex:Zc,isFocusable:Nv,isTabbable:Y1,tabbable:EN},Symbol.toStringTag,{value:"Module"}));function Ek(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Nde(t){if(Array.isArray(t))return Ek(t)}function zde(t,e,n){return(e=$de(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ude(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Vde(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function wN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xN(Object(n),!0).forEach(function(r){zde(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qde(t){return Nde(t)||Ude(t)||Wde(t)||Vde()}function Hde(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $de(t){var e=Hde(t,"string");return typeof e=="symbol"?e:e+""}function Wde(t,e){if(t){if(typeof t=="string")return Ek(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ek(t,e):void 0}}var kN={activateTrap:function(t,e){if(t.length>0){var n=t[t.length-1];n!==e&&n._setPausedState(!0)}var r=t.indexOf(e);r===-1||t.splice(r,1),t.push(e)},deactivateTrap:function(t,e){var n=t.indexOf(e);n!==-1&&t.splice(n,1),t.length>0&&!t[t.length-1]._isManuallyPaused()&&t[t.length-1]._setPausedState(!1)}},Kde=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Gde=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},hp=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},Yde=function(t){return hp(t)&&!t.shiftKey},Zde=function(t){return hp(t)&&t.shiftKey},SN=function(t){return setTimeout(t,0)},Fp=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return typeof t=="function"?t.apply(void 0,n):t},zv=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Jde=[],Xde=function(t,e){var n=(e==null?void 0:e.document)||document,r=(e==null?void 0:e.trapStack)||Jde,o=wN({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Yde,isKeyBackward:Zde},e),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,u=function(j,R,M){return j&&j[R]!==void 0?j[R]:o[M||R]},l=function(j,R){var M=typeof(R==null?void 0:R.composedPath)=="function"?R.composedPath():void 0;return i.containerGroups.findIndex(function(z){var T=z.container,P=z.tabbableNodes;return T.contains(j)||(M==null?void 0:M.includes(T))||P.find(function(L){return L===j})})},c=function(j){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=R.hasFallback,z=M===void 0?!1:M,T=R.params,P=T===void 0?[]:T,L=o[j];if(typeof L=="function"&&(L=L.apply(void 0,qde(P))),L===!0&&(L=void 0),!L){if(L===void 0||L===!1)return L;throw new Error("`".concat(j,"` was specified but was not a node, or did not return a node"))}var U=L;if(typeof L=="string"){try{U=n.querySelector(L)}catch(te){throw new Error("`".concat(j,'` appears to be an invalid selector; error="').concat(te.message,'"'))}if(!U&&!z)throw new Error("`".concat(j,"` as selector refers to no known node"))}return U},d=function(){var j=c("initialFocus",{hasFallback:!0});if(j===!1)return!1;if(j===void 0||j&&!Nv(j,o.tabbableOptions))if(l(n.activeElement)>=0)j=n.activeElement;else{var R=i.tabbableGroups[0],M=R&&R.firstTabbableNode;j=M||c("fallbackFocus")}else j===null&&(j=c("fallbackFocus"));if(!j)throw new Error("Your focus-trap needs to have at least one focusable element");return j},F=function(){if(i.containerGroups=i.containers.map(function(j){var R=EN(j,o.tabbableOptions),M=yN(j,o.tabbableOptions),z=R.length>0?R[0]:void 0,T=R.length>0?R[R.length-1]:void 0,P=M.find(function(te){return Y1(te)}),L=M.slice().reverse().find(function(te){return Y1(te)}),U=!!R.find(function(te){return Zc(te)>0});return{container:j,tabbableNodes:R,focusableNodes:M,posTabIndexesFound:U,firstTabbableNode:z,lastTabbableNode:T,firstDomTabbableNode:P,lastDomTabbableNode:L,nextTabbableNode:function(te){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Fe=R.indexOf(te);return Fe<0?ae?M.slice(M.indexOf(te)+1).find(function(re){return Y1(re)}):M.slice(0,M.indexOf(te)).reverse().find(function(re){return Y1(re)}):R[Fe+(ae?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(j){return j.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(j){return j.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function(j){var R=j.activeElement;if(R)return R.shadowRoot&&R.shadowRoot.activeElement!==null?h(R.shadowRoot):R},m=function(j){if(j!==!1&&j!==h(document)){if(!j||!j.focus){m(d());return}j.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=j,Kde(j)&&j.select()}},D=function(j){var R=c("setReturnFocus",{params:[j]});return R||(R===!1?!1:j)},g=function(j){var R=j.target,M=j.event,z=j.isBackward,T=z===void 0?!1:z;R=R||zv(M),F();var P=null;if(i.tabbableGroups.length>0){var L=l(R,M),U=L>=0?i.containerGroups[L]:void 0;if(L<0)T?P=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:P=i.tabbableGroups[0].firstTabbableNode;else if(T){var te=i.tabbableGroups.findIndex(function(H){var q=H.firstTabbableNode;return R===q});if(te<0&&(U.container===R||Nv(R,o.tabbableOptions)&&!Y1(R,o.tabbableOptions)&&!U.nextTabbableNode(R,!1))&&(te=L),te>=0){var ae=te===0?i.tabbableGroups.length-1:te-1,Fe=i.tabbableGroups[ae];P=Zc(R)>=0?Fe.lastTabbableNode:Fe.lastDomTabbableNode}else hp(M)||(P=U.nextTabbableNode(R,!1))}else{var re=i.tabbableGroups.findIndex(function(H){var q=H.lastTabbableNode;return R===q});if(re<0&&(U.container===R||Nv(R,o.tabbableOptions)&&!Y1(R,o.tabbableOptions)&&!U.nextTabbableNode(R))&&(re=L),re>=0){var ce=re===i.tabbableGroups.length-1?0:re+1,K=i.tabbableGroups[ce];P=Zc(R)>=0?K.firstTabbableNode:K.firstDomTabbableNode}else hp(M)||(P=U.nextTabbableNode(R))}}else P=c("fallbackFocus");return P},p=function(j){var R=zv(j);if(!(l(R,j)>=0)){if(Fp(o.clickOutsideDeactivates,j)){s.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Fp(o.allowOutsideClick,j)||j.preventDefault()}},_=function(j){var R=zv(j),M=l(R,j)>=0;if(M||R instanceof Document)M&&(i.mostRecentlyFocusedNode=R);else{j.stopImmediatePropagation();var z,T=!0;if(i.mostRecentlyFocusedNode)if(Zc(i.mostRecentlyFocusedNode)>0){var P=l(i.mostRecentlyFocusedNode),L=i.containerGroups[P].tabbableNodes;if(L.length>0){var U=L.findIndex(function(te){return te===i.mostRecentlyFocusedNode});U>=0&&(o.isKeyForward(i.recentNavEvent)?U+1<L.length&&(z=L[U+1],T=!1):U-1>=0&&(z=L[U-1],T=!1))}}else i.containerGroups.some(function(te){return te.tabbableNodes.some(function(ae){return Zc(ae)>0})})||(T=!1);else T=!1;T&&(z=g({target:i.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(i.recentNavEvent)})),m(z||i.mostRecentlyFocusedNode||d())}i.recentNavEvent=void 0},v=function(j){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=j;var M=g({event:j,isBackward:R});M&&(hp(j)&&j.preventDefault(),m(M))},E=function(j){(o.isKeyForward(j)||o.isKeyBackward(j))&&v(j,o.isKeyBackward(j))},b=function(j){Gde(j)&&Fp(o.escapeDeactivates,j)!==!1&&(j.preventDefault(),s.deactivate())},k=function(j){var R=zv(j);l(R,j)>=0||Fp(o.clickOutsideDeactivates,j)||Fp(o.allowOutsideClick,j)||(j.preventDefault(),j.stopImmediatePropagation())},C=function(){if(i.active)return kN.activateTrap(r,s),i.delayInitialFocusTimer=o.delayInitialFocus?SN(function(){m(d())}):m(d()),n.addEventListener("focusin",_,!0),n.addEventListener("mousedown",p,{capture:!0,passive:!1}),n.addEventListener("touchstart",p,{capture:!0,passive:!1}),n.addEventListener("click",k,{capture:!0,passive:!1}),n.addEventListener("keydown",E,{capture:!0,passive:!1}),n.addEventListener("keydown",b),s},S=function(){if(i.active)return n.removeEventListener("focusin",_,!0),n.removeEventListener("mousedown",p,!0),n.removeEventListener("touchstart",p,!0),n.removeEventListener("click",k,!0),n.removeEventListener("keydown",E,!0),n.removeEventListener("keydown",b),s},w=function(j){var R=j.some(function(M){var z=Array.from(M.removedNodes);return z.some(function(T){return T===i.mostRecentlyFocusedNode})});R&&m(d())},A=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(w):void 0,O=function(){A&&(A.disconnect(),i.active&&!i.paused&&i.containers.map(function(j){A.observe(j,{subtree:!0,childList:!0})}))};return s={get active(){return i.active},get paused(){return i.paused},activate:function(j){if(i.active)return this;var R=u(j,"onActivate"),M=u(j,"onPostActivate"),z=u(j,"checkCanFocusTrap");z||F(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,R==null||R();var T=function(){z&&F(),C(),O(),M==null||M()};return z?(z(i.containers.concat()).then(T,T),this):(T(),this)},deactivate:function(j){if(!i.active)return this;var R=wN({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},j);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,S(),i.active=!1,i.paused=!1,O(),kN.deactivateTrap(r,s);var M=u(R,"onDeactivate"),z=u(R,"onPostDeactivate"),T=u(R,"checkCanReturnFocus"),P=u(R,"returnFocus","returnFocusOnDeactivate");M==null||M();var L=function(){SN(function(){P&&m(D(i.nodeFocusedBeforeActivation)),z==null||z()})};return P&&T?(T(D(i.nodeFocusedBeforeActivation)).then(L,L),this):(L(),this)},pause:function(j){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,j)):this},unpause:function(j){return i.active?(i.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,j)):this},updateContainerElements:function(j){var R=[].concat(j).filter(Boolean);return i.containers=R.map(function(M){return typeof M=="string"?n.querySelector(M):M}),i.active&&F(),O(),this}},Object.defineProperties(s,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(j,R){if(i.paused===j)return this;if(i.paused=j,j){var M=u(R,"onPause"),z=u(R,"onPostPause");M==null||M(),S(),O(),z==null||z()}else{var T=u(R,"onUnpause"),P=u(R,"onPostUnpause");T==null||T(),F(),C(),O(),P==null||P()}return this}}}),s.updateContainerElements(t),s};const Qde=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:Xde},Symbol.toStringTag,{value:"Module"})),e1e=Xn(Qde),t1e=Xn(Lde);function wF(t){"@babel/helpers - typeof";return wF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wF(t)}function n1e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r1e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,jN(r.key),r)}}function o1e(t,e,n){return r1e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function i1e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yk(t,e)}function yk(t,e){return yk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yk(t,e)}function a1e(t){var e=u1e();return function(){var n=Uv(t),r;if(e){var o=Uv(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s1e(this,r)}}function s1e(t,e){if(e&&(wF(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mp(t)}function mp(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u1e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Uv(t){return Uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uv(t)}function l1e(t,e,n){return e=jN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jN(t){var e=c1e(t,"string");return wF(e)==="symbol"?e:String(e)}function c1e(t,e){if(wF(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(wF(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Vv=f,$t=dp,d1e=e1e,h1e=d1e.createFocusTrap,F1e=t1e,m1e=F1e.isFocusable,xk=function(t){i1e(n,t);var e=a1e(n);function n(r){var o;n1e(this,n),o=e.call(this,r),l1e(mp(o),"getNodeForOption",function(u){var l,c=(l=this.internalOptions[u])!==null&&l!==void 0?l:this.originalOptions[u];if(typeof c=="function"){for(var d=arguments.length,F=new Array(d>1?d-1:0),h=1;h<d;h++)F[h-1]=arguments[h];c=c.apply(void 0,F)}if(c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var m=c;if(typeof c=="string"){var D;if(m=(D=this.getDocument())===null||D===void 0?void 0:D.querySelector(c),!m)throw new Error("`".concat(u,"` as selector refers to no known node"))}return m}),o.handleDeactivate=o.handleDeactivate.bind(mp(o)),o.handlePostDeactivate=o.handlePostDeactivate.bind(mp(o)),o.handleClickOutsideDeactivates=o.handleClickOutsideDeactivates.bind(mp(o)),o.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:o.handleDeactivate,onPostDeactivate:o.handlePostDeactivate,clickOutsideDeactivates:o.handleClickOutsideDeactivates},o.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var i=r.focusTrapOptions;for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){if(s==="returnFocusOnDeactivate"||s==="onDeactivate"||s==="onPostDeactivate"||s==="checkCanReturnFocus"||s==="clickOutsideDeactivates"){o.originalOptions[s]=i[s];continue}o.internalOptions[s]=i[s]}return o.outsideClick=null,o.focusTrapElements=r.containerElements||[],o.updatePreviousElement(),o}return o1e(n,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var r=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return r||(r===!1?!1:this.previouslyFocusedElement)}},{key:"updatePreviousElement",value:function(){var r=this.getDocument();r&&(this.previouslyFocusedElement=r.activeElement)}},{key:"deactivateTrap",value:function(){!this.focusTrap||!this.focusTrap.active||this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(r){var o=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,r):this.originalOptions.clickOutsideDeactivates;return o&&(this.outsideClick={target:r.target,allowDeactivation:o}),o}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var r=this,o=function(){var i=r.getReturnFocusNode(),s=!!(r.originalOptions.returnFocusOnDeactivate&&i!==null&&i!==void 0&&i.focus&&(!r.outsideClick||r.outsideClick.allowDeactivation&&!m1e(r.outsideClick.target,r.internalOptions.tabbableOptions))),u=r.internalOptions.preventScroll,l=u===void 0?!1:u;s&&i.focus({preventScroll:l}),r.originalOptions.onPostDeactivate&&r.originalOptions.onPostDeactivate.call(null),r.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(o,o):o()}},{key:"setupFocusTrap",value:function(){if(this.focusTrap)this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause());else{var r=this.focusTrapElements.some(Boolean);r&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(r){if(this.focusTrap){r.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var o=!r.active&&this.props.active,i=r.active&&!this.props.active,s=!r.paused&&this.props.paused,u=r.paused&&!this.props.paused;if(o&&(this.updatePreviousElement(),this.focusTrap.activate()),i){this.deactivateTrap();return}s&&this.focusTrap.pause(),u&&this.focusTrap.unpause()}else r.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var r=this,o=this.props.children?Vv.Children.only(this.props.children):void 0;if(o){if(o.type&&o.type===Vv.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");var i=function(u){var l=r.props.containerElements;o&&(typeof o.ref=="function"?o.ref(u):o.ref&&(o.ref.current=u)),r.focusTrapElements=l||[u]},s=Vv.cloneElement(o,{ref:i});return s}return null}}]),n}(Vv.Component),Dp=typeof Element>"u"?Function:Element;xk.propTypes={active:$t.bool,paused:$t.bool,focusTrapOptions:$t.shape({document:$t.object,onActivate:$t.func,onPostActivate:$t.func,checkCanFocusTrap:$t.func,onDeactivate:$t.func,onPostDeactivate:$t.func,checkCanReturnFocus:$t.func,initialFocus:$t.oneOfType([$t.instanceOf(Dp),$t.string,$t.bool,$t.func]),fallbackFocus:$t.oneOfType([$t.instanceOf(Dp),$t.string,$t.func]),escapeDeactivates:$t.oneOfType([$t.bool,$t.func]),clickOutsideDeactivates:$t.oneOfType([$t.bool,$t.func]),returnFocusOnDeactivate:$t.bool,setReturnFocus:$t.oneOfType([$t.instanceOf(Dp),$t.string,$t.bool,$t.func]),allowOutsideClick:$t.oneOfType([$t.bool,$t.func]),preventScroll:$t.bool,tabbableOptions:$t.shape({displayCheck:$t.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:$t.oneOfType([$t.bool,$t.func])}),trapStack:$t.array,isKeyForward:$t.func,isKeyBackward:$t.func}),containerElements:$t.arrayOf($t.instanceOf(Dp)),children:$t.oneOfType([$t.element,$t.instanceOf(Dp)])},xk.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:h1e};var D1e=xk;const pt=Rr(D1e);function Z1(t,e){const n=f.useRef(),{wait:r,immediate:o}=e??{};return f.useCallback((...i)=>{n.current?(clearTimeout(n.current),n.current=void 0):o&&t(...i),n.current=window.setTimeout(()=>{t(...i),n.current=void 0},r)},[t,r,o])}var Al={};Object.defineProperty(Al,"__esModule",{value:!0});for(var g1e=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),wk={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},BN={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:g1e?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},kk={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},qv=1;qv<20;qv++)kk["f"+qv]=111+qv;function Hv(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=t.map(function(s){return AN(s,e)}),o=function(s){return r.some(function(u){return TN(u,s)})},i=n==null?o:o(n);return i}function p1e(t,e){return Hv(t,e)}function f1e(t,e){return Hv(t,{byKey:!0},e)}function AN(t,e){var n=e&&e.byKey,r={};t=t.replace("++","+add");var o=t.split("+"),i=o.length;for(var s in wk)r[wk[s]]=!1;var u=!0,l=!1,c=void 0;try{for(var d=o[Symbol.iterator](),F;!(u=(F=d.next()).done);u=!0){var h=F.value,m=h.endsWith("?")&&h.length>1;m&&(h=h.slice(0,-1));var D=Sk(h),g=wk[D];if(h.length>1&&!g&&!BN[h]&&!kk[D])throw new TypeError('Unknown modifier: "'+h+'"');(i===1||!g)&&(n?r.key=D:r.which=IN(h)),g&&(r[g]=m?null:!0)}}catch(p){l=!0,c=p}finally{try{!u&&d.return&&d.return()}finally{if(l)throw c}}return r}function TN(t,e){for(var n in t){var r=t[n],o=void 0;if(r!=null&&(n==="key"&&e.key!=null?o=e.key.toLowerCase():n==="which"?o=r===91&&e.which===93?91:e.which:o=e[n],!(o==null&&r===!1)&&o!==r))return!1}return!0}function IN(t){t=Sk(t);var e=kk[t]||t.toUpperCase().charCodeAt(0);return e}function Sk(t){return t=t.toLowerCase(),t=BN[t]||t,t}Al.default=Hv;var jk=Al.isHotkey=Hv;Al.isCodeHotkey=p1e;var Mn=Al.isKeyHotkey=f1e;Al.parseHotkey=AN,Al.compareHotkey=TN,Al.toKeyCode=IN,Al.toKeyName=Sk;const lu=(t,e)=>{Mn("tab",t)&&(t.preventDefault(),e())},RN=t=>{Mn(["arrowup","arrowright","arrowdown","arrowleft"],t)&&t.preventDefault()},gp=t=>e=>{(Mn("enter",e)||Mn("space",e))&&(e.preventDefault(),t(e))},vt=t=>{const e=document.activeElement;return e&&(e.nodeName.toLowerCase()==="input"||e.nodeName.toLowerCase()==="textarea"||e.getAttribute("contenteditable")==="true")?!1:(t.stopPropagation(),!0)};function _1e({server:t,serverList:e,allowCustomServer:n,onServerChange:r}){const[o,i]=f.useState(),s=f.useRef(null);f.useEffect(()=>{s.current&&s.current.value!==t&&(s.current.value=t)},[t]);const u=Z1(r,{wait:700}),l=h=>{const m=h.target.value.trim();m&&u(m)},c=h=>{if(h.key==="ArrowDown"&&(h.preventDefault(),i(void 0)),h.key==="Enter"){h.preventDefault();const m=h.currentTarget.value.trim();m&&r(m)}},d=h=>{const m=h.currentTarget.getAttribute("data-server");m&&r(m),i(void 0)},F=h=>{const m=h.currentTarget.parentElement??h.currentTarget;i(m.getBoundingClientRect())};return a.jsx(En,{ref:s,style:{paddingRight:le.space.S200},variant:n?"Background":"Surface",outlined:!0,defaultValue:t,onChange:l,onKeyDown:c,size:"500",readOnly:!n,onClick:n?void 0:F,after:e.length===0||e.length===1&&!n?void 0:a.jsx(Ut,{anchor:o,position:"Bottom",align:"End",offset:4,content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>i(void 0),clickOutsideDeactivates:!0,isKeyForward:h=>h.key==="ArrowDown",isKeyBackward:h=>h.key==="ArrowUp",escapeDeactivates:vt},children:a.jsxs(zt,{children:[a.jsx(In,{size:"300",style:{padding:`0 ${le.space.S200}`},children:a.jsx(x,{size:"L400",children:"Homeserver List"})}),a.jsx("div",{style:{padding:le.space.S100,paddingTop:0},children:e==null?void 0:e.map(h=>a.jsx(tt,{radii:"300","aria-pressed":h===t,"data-server":h,onClick:d,children:a.jsx(x,{children:h})},h))})]})}),children:a.jsx(Me,{onClick:F,variant:n?"Background":"Surface",size:"300","aria-pressed":!!o,radii:"300",children:a.jsx(Q,{src:$.ChevronBottom})})})})}function ei(t,e){return t.then(function(n){return[null,n]}).catch(function(n){return[n,void 0]})}var Bk=(t=>(t.PROMPT="PROMPT",t.IGNORE="IGNORE",t.FAIL_PROMPT="FAIL_PROMPT",t.FAIL_ERROR="FAIL_ERROR",t))(Bk||{});const ON=async(t,e)=>{var c;const n=/^https?:\/\//.test(e)?Ki(e):`https://${e}`,r=`${n}/.well-known/matrix/client`,[o,i]=await ei(t(r,{method:"GET"}));if(o||i.status===404)return[void 0,{"m.homeserver":{base_url:n}}];if(i.status!==200)return[{host:n,action:"FAIL_PROMPT"},void 0];const[s,u]=await ei(i.json());if(s||typeof u!="object")return[{host:n,action:"FAIL_PROMPT"},void 0];const l=(c=u["m.homeserver"])==null?void 0:c.base_url;return typeof l!="string"?[{host:n,action:"FAIL_PROMPT"},void 0]:/^https?:\/\//.test(l)===!1?[{host:n,action:"FAIL_ERROR"},void 0]:(u["m.homeserver"].base_url=Ki(l),u["m.identity_server"]&&(u["m.identity_server"].base_url=Ki(u["m.identity_server"].base_url)),[void 0,u])},MN=async(t,e)=>{const n=await(await t(`${Ki(e)}/_matrix/client/versions`)).json();if(n&&typeof n=="object"&&"versions"in n&&Array.isArray(n.versions))return n;throw new Error("Homeserver URL does not appear to be a valid Matrix homeserver")};function PN({baseUrl:t,fallback:e,error:n,children:r}){const[o,i]=et(f.useCallback(()=>MN(fetch,t),[t])),[s,u]=f.useState(!1),l=f.useCallback(()=>u(!0),[]);return f.useEffect(()=>{i()},[i]),o.status===he.Idle||o.status===he.Loading?e==null?void 0:e():!s&&o.status===he.Error?n==null?void 0:n(o.error,i,l):r(o.status===he.Success?o.data:{versions:[]})}const LN=f.createContext(null),NN=LN.Provider;function zN(){const t=f.useContext(LN);if(!t)throw new Error("Server versions are not provided!");return t}const UN=f.createContext(null),v1e=UN.Provider,kF=()=>{const t=f.useContext(UN);if(!t)throw new Error("Auto Discovery Info not loaded");return t};function VN(t,e,n,r,o,i,s){try{var u=t[i](s),l=u.value}catch(c){return void n(c)}u.done?e(l):Promise.resolve(l).then(r,o)}Z=function(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(l){VN(i,r,o,s,u,"next",l)}function u(l){VN(i,r,o,s,u,"throw",l)}s(void 0)})}};function pp(t){"@babel/helpers - typeof";return pp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pp(t)}function b1e(t,e){if(pp(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function C1e(t){var e=b1e(t,"string");return pp(e)=="symbol"?e:e+""}I=function(t,e,n){return(e=C1e(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t};var qN={0:"O",1:"l","\u05AD":"\u0596","\u05AE":"\u0598","\u05A8":"\u0599","\u05A4":"\u059A","\u1AB4":"\u06DB","\u20DB":"\u06DB","\u0619":"\u0313","\u08F3":"\u0313","\u0343":"\u0313","\u0315":"\u0313","\u064F":"\u0313","\u065D":"\u0314","\u059C":"\u0301","\u059D":"\u0301","\u0618":"\u0301","\u0747":"\u0301","\u0341":"\u0301","\u0954":"\u0301","\u064E":"\u0301","\u0340":"\u0300","\u0953":"\u0300","\u030C":"\u0306","\uA67C":"\u0306","\u0658":"\u0306","\u065A":"\u0306","\u036E":"\u0306","\u06E8":"\u0306\u0307","\u0310":"\u0306\u0307","\u0901":"\u0306\u0307","\u0981":"\u0306\u0307","\u0A81":"\u0306\u0307","\u0B01":"\u0306\u0307","\u0C00":"\u0306\u0307","\u0C81":"\u0306\u0307","\u0D01":"\u0306\u0307","\u{114BF}":"\u0306\u0307","\u1CD0":"\u0302","\u0311":"\u0302","\u065B":"\u0302","\u07EE":"\u0302","\uA6F0":"\u0302","\u05AF":"\u030A","\u06DF":"\u030A","\u17D3":"\u030A","\u309A":"\u030A","\u0652":"\u030A","\u0B82":"\u030A","\u1036":"\u030A","\u17C6":"\u030A","\u{11300}":"\u030A","\u0E4D":"\u030A","\u0ECD":"\u030A","\u0366":"\u030A","\u2DEA":"\u030A","\u08EB":"\u0308","\u07F3":"\u0308","\u064B":"\u030B","\u08F0":"\u030B","\u0342":"\u0303","\u0653":"\u0303","\u05C4":"\u0307","\u06EC":"\u0307","\u0740":"\u0307","\u08EA":"\u0307","\u0741":"\u0307","\u0358":"\u0307","\u05B9":"\u0307","\u05BA":"\u0307","\u05C2":"\u0307","\u05C1":"\u0307","\u07ED":"\u0307","\u0902":"\u0307","\u0A02":"\u0307","\u0A82":"\u0307","\u0BCD":"\u0307","\u0337":"\u0338","\u1AB7":"\u0328","\u0322":"\u0328","\u0345":"\u0328","\u1CD2":"\u0304","\u0305":"\u0304","\u0659":"\u0304","\u07EB":"\u0304","\uA6F1":"\u0304","\u1CDA":"\u030E","\u0657":"\u0312","\u0357":"\u0350","\u08FF":"\u0350","\u08F8":"\u0350","\u0900":"\u0352","\u1CED":"\u0316","\u1CDC":"\u0329","\u0656":"\u0329","\u1CD5":"\u032B","\u0347":"\u0333","\u08F9":"\u0354","\u08FA":"\u0355","\u309B":"\uFF9E","\u309C":"\uFF9F","\u0336":"\u0335","\u302C":"\u0309","\u05C5":"\u0323","\u08ED":"\u0323","\u1CDD":"\u0323","\u05B4":"\u0323","\u065C":"\u0323","\u093C":"\u0323","\u09BC":"\u0323","\u0A3C":"\u0323","\u0ABC":"\u0323","\u0B3C":"\u0323","\u{111CA}":"\u0323","\u{114C3}":"\u0323","\u{10A3A}":"\u0323","\u08EE":"\u0324","\u1CDE":"\u0324","\u0F37":"\u0325","\u302D":"\u0325","\u0327":"\u0326","\u0321":"\u0326","\u0339":"\u0326","\u1CD9":"\u032D","\u1CD8":"\u032E","\u0952":"\u0331","\u0320":"\u0331","\u08F1":"\u064C","\u08E8":"\u064C","\u08E5":"\u064C",\uFC5E:"\uFE72\u0651","\u08F2":"\u064D",\uFC5F:"\uFE74\u0651",\uFCF2:"\uFE77\u0651",\uFC60:"\uFE76\u0651",\uFCF3:"\uFE79\u0651",\uFC61:"\uFE78\u0651","\u061A":"\u0650","\u0317":"\u0650",\uFCF4:"\uFE7B\u0651",\uFC62:"\uFE7A\u0651",\uFC63:"\uFE7C\u0670","\u065F":"\u0655","\u030D":"\u0670","\u0742":"\u073C","\u0A03":"\u0983","\u0C03":"\u0983","\u0C83":"\u0983","\u0D03":"\u0983","\u0D83":"\u0983","\u1038":"\u0983","\u{114C1}":"\u0983","\u17CB":"\u0E48","\u0EC8":"\u0E48","\u0EC9":"\u0E49","\u0ECA":"\u0E4A","\u0ECB":"\u0E4B","\uA66F":"\u20E9","\u2028":" ","\u2029":" ","\u1680":" ","\u2000":" ","\u2001":" ","\u2002":" ","\u2003":" ","\u2004":" ","\u2005":" ","\u2006":" ","\u2008":" ","\u2009":" ","\u200A":" ","\u205F":" ","\xA0":" ","\u2007":" ","\u202F":" ","\u07FA":"_","\uFE4D":"_","\uFE4E":"_","\uFE4F":"_","\u2010":"-","\u2011":"-","\u2012":"-","\u2013":"-","\uFE58":"-","\u06D4":"-","\u2043":"-","\u02D7":"-","\u2212":"-","\u2796":"-","\u2CBA":"-","\u2A29":"-\u0313","\u2E1A":"-\u0308","\uFB29":"-\u0307","\u2238":"-\u0307","\u2A2A":"-\u0323","\uA4FE":"-.","\uFF5E":"\u301C","\u060D":",","\u066B":",","\u201A":",","\xB8":",","\uA4F9":",","\u2E32":"\u060C","\u066C":"\u060C","\u037E":";","\u2E35":"\u061B","\u0903":":","\u0A83":":","\uFF1A":":","\u0589":":","\u0703":":","\u0704":":","\u16EC":":","\uFE30":":","\u1803":":","\u1809":":","\u205A":":","\u05C3":":","\u02F8":":","\uA789":":","\u2236":":",\u02D0:":","\uA4FD":":","\u2A74":"::=","\u29F4":":\u2192","\uFF01":"!",\u01C3:"!","\u2D51":"!","\u203C":"!!","\u2049":"!?",\u0294:"?","\u0241":"?","\u097D":"?",\u13AE:"?","\uA6EB":"?","\u2048":"?!","\u2047":"??","\u2E2E":"\u061F","\u{1D16D}":".","\u2024":".","\u0701":".","\u0702":".","\uA60E":".","\u{10A50}":".","\u0660":".","\u06F0":".","\uA4F8":".","\uA4FB":".,","\u2025":"..","\uA4FA":"..","\u2026":"...","\uA6F4":"\uA6F3\uA6F3","\u30FB":"\xB7","\uFF65":"\xB7","\u16EB":"\xB7","\u0387":"\xB7","\u2E31":"\xB7","\u{10101}":"\xB7","\u2022":"\xB7","\u2027":"\xB7","\u2219":"\xB7","\u22C5":"\xB7","\uA78F":"\xB7",\u1427:"\xB7","\u22EF":"\xB7\xB7\xB7","\u2D48":"\xB7\xB7\xB7",\u1444:"\xB7<","\u22D7":"\xB7>",\u1437:"\xB7>",\u1440:"\xB7>",\u152F:"\xB74",\u147E:"\xB7b",\u1480:"\xB7b\u0307",\u147A:"\xB7d",\u1498:"\xB7J",\u14B6:"\xB7L",\u1476:"\xB7P",\u1457:"\xB7U",\u143A:"\xB7V",\u143C:"\xB7\u0245",\u14AE:"\xB7\u0393",\u140E:"\xB7\u0394",\u1459:"\xB7\u0548",\u140C:"\xB7\u1401",\u1410:"\xB7\u1404",\u1412:"\xB7\u1405",\u1414:"\xB7\u1406",\u1417:"\xB7\u140A",\u1419:"\xB7\u140B",\u143E:"\xB7\u1432",\u1442:"\xB7\u1434",\u1446:"\xB7\u1439",\u145B:"\xB7\u144F",\u1454:"\xB7\u1450",\u145D:"\xB7\u1450",\u145F:"\xB7\u1451",\u1461:"\xB7\u1455",\u1463:"\xB7\u1456",\u1474:"\xB7\u146B",\u1478:"\xB7\u146E",\u147C:"\xB7\u1470",\u1492:"\xB7\u1489",\u1494:"\xB7\u148B",\u1496:"\xB7\u148C",\u149A:"\xB7\u148E",\u149C:"\xB7\u1490",\u149E:"\xB7\u1491",\u14AC:"\xB7\u14A3",\u14B0:"\xB7\u14A6",\u14B2:"\xB7\u14A7",\u14B4:"\xB7\u14A8",\u14B8:"\xB7\u14AB",\u14C9:"\xB7\u14C0","\u18C6":"\xB7\u14C2","\u18C8":"\xB7\u14C3","\u18CA":"\xB7\u14C4","\u18CC":"\xB7\u14C5",\u14CB:"\xB7\u14C7",\u14CD:"\xB7\u14C8",\u14DC:"\xB7\u14D3",\u14DE:"\xB7\u14D5",\u14E0:"\xB7\u14D6",\u14E2:"\xB7\u14D7",\u14E4:"\xB7\u14D8",\u14E6:"\xB7\u14DA",\u14E8:"\xB7\u14DB",\u14F6:"\xB7\u14ED",\u14F8:"\xB7\u14EF",\u14FA:"\xB7\u14F0",\u14FC:"\xB7\u14F1",\u14FE:"\xB7\u14F2",\u1500:"\xB7\u14F4",\u1502:"\xB7\u14F5",\u1517:"\xB7\u1510",\u1519:"\xB7\u1511",\u151B:"\xB7\u1512",\u151D:"\xB7\u1513",\u151F:"\xB7\u1514",\u1521:"\xB7\u1515",\u1523:"\xB7\u1516",\u1531:"\xB7\u1528",\u1533:"\xB7\u1529",\u1535:"\xB7\u152A",\u1537:"\xB7\u152B",\u1539:"\xB7\u152D",\u153B:"\xB7\u152E","\u18CE":"\xB7\u1543","\u18CF":"\xB7\u1546","\u18D0":"\xB7\u1547","\u18D1":"\xB7\u1548","\u18D2":"\xB7\u1549","\u18D3":"\xB7\u154B",\u154E:"\xB7\u154C",\u155B:"\xB7\u155A",\u1568:"\xB7\u1567","\u18B3":"\xB7\u18B1","\u18B6":"\xB7\u18B4","\u18B9":"\xB7\u18B8","\u18C2":"\xB7\u18C0","\uA830":"\u0964","\u0965":"\u0964\u0964","\u1C3C":"\u1C3B\u1C3B","\u104B":"\u104A\u104A","\u1AA9":"\u1AA8\u1AA8","\u1AAB":"\u1AAA\u1AA8","\u1B5F":"\u1B5E\u1B5E","\u{10A57}":"\u{10A56}\u{10A56}","\u{1144C}":"\u{1144B}\u{1144B}","\u{11642}":"\u{11641}\u{11641}","\u{11C42}":"\u{11C41}\u{11C41}","\u1C7F":"\u1C7E\u1C7E","\u055D":"'","\uFF07":"'","\u2018":"'","\u2019":"'","\u201B":"'","\u2032":"'","\u2035":"'","\u055A":"'","\u05F3":"'","`":"'","\u1FEF":"'","\uFF40":"'","\xB4":"'","\u0384":"'","\u1FFD":"'","\u1FBD":"'","\u1FBF":"'","\u1FFE":"'","\u02B9":"'","\u0374":"'","\u02C8":"'","\u02CA":"'","\u02CB":"'","\u02F4":"'",\u02BB:"'",\u02BD:"'",\u02BC:"'",\u02BE:"'","\uA78C":"'",\u05D9:"'","\u07F4":"'","\u07F5":"'",\u144A:"'",\u16CC:"'","\u{16F51}":"'","\u{16F52}":"'","\u1CD3":"''",'"':"''","\uFF02":"''","\u201C":"''","\u201D":"''","\u201F":"''","\u2033":"''","\u2036":"''","\u3003":"''","\u05F4":"''","\u02DD":"''","\u02BA":"''","\u02F6":"''",\u02EE:"''",\u05F2:"''","\u2034":"'''","\u2037":"'''","\u2057":"''''",\u0181:"'B",\u018A:"'D",\u0149:"'n",\u01A4:"'P",\u01AC:"'T",\u01B3:"'Y","\uFF3B":"(","\u2768":"(","\u2772":"(","\u3014":"(","\uFD3E":"(","\u2E28":"((","\u3220":"(\u30FC)","\u2475":"(2)","\u2487":"(2O)","\u2476":"(3)","\u2477":"(4)","\u2478":"(5)","\u2479":"(6)","\u247A":"(7)","\u247B":"(8)","\u247C":"(9)","\u249C":"(a)","\u{1F110}":"(A)","\u249D":"(b)","\u{1F111}":"(B)","\u249E":"(c)","\u{1F112}":"(C)","\u249F":"(d)","\u{1F113}":"(D)","\u24A0":"(e)","\u{1F114}":"(E)","\u24A1":"(f)","\u{1F115}":"(F)","\u24A2":"(g)","\u{1F116}":"(G)","\u24A3":"(h)","\u{1F117}":"(H)","\u24A4":"(i)","\u24A5":"(j)","\u{1F119}":"(J)","\u24A6":"(k)","\u{1F11A}":"(K)","\u2474":"(l)","\u{1F118}":"(l)","\u24A7":"(l)","\u{1F11B}":"(L)","\u247F":"(l2)","\u2480":"(l3)","\u2481":"(l4)","\u2482":"(l5)","\u2483":"(l6)","\u2484":"(l7)","\u2485":"(l8)","\u2486":"(l9)","\u247E":"(ll)","\u247D":"(lO)","\u{1F11C}":"(M)","\u24A9":"(n)","\u{1F11D}":"(N)","\u24AA":"(o)","\u{1F11E}":"(O)","\u24AB":"(p)","\u{1F11F}":"(P)","\u24AC":"(q)","\u{1F120}":"(Q)","\u24AD":"(r)","\u{1F121}":"(R)","\u24A8":"(rn)","\u24AE":"(s)","\u{1F122}":"(S)","\u{1F12A}":"(S)","\u24AF":"(t)","\u{1F123}":"(T)","\u24B0":"(u)","\u{1F124}":"(U)","\u24B1":"(v)","\u{1F125}":"(V)","\u24B2":"(w)","\u{1F126}":"(W)","\u24B3":"(x)","\u{1F127}":"(X)","\u24B4":"(y)","\u{1F128}":"(Y)","\u24B5":"(z)","\u{1F129}":"(Z)","\u3200":"(\u1100)","\u320E":"(\uAC00)","\u3201":"(\u1102)","\u320F":"(\uB098)","\u3202":"(\u1103)","\u3210":"(\uB2E4)","\u3203":"(\u1105)","\u3211":"(\uB77C)","\u3204":"(\u1106)","\u3212":"(\uB9C8)","\u3205":"(\u1107)","\u3213":"(\uBC14)","\u3206":"(\u1109)","\u3214":"(\uC0AC)","\u3207":"(\u110B)","\u3215":"(\uC544)","\u321D":"(\uC624\uC804)","\u321E":"(\uC624\uD6C4)","\u3208":"(\u110C)","\u3216":"(\uC790)","\u321C":"(\uC8FC)","\u3209":"(\u110E)","\u3217":"(\uCC28)","\u320A":"(\u110F)","\u3218":"(\uCE74)","\u320B":"(\u1110)","\u3219":"(\uD0C0)","\u320C":"(\u1111)","\u321A":"(\uD30C)","\u320D":"(\u1112)","\u321B":"(\uD558)","\u3226":"(\u4E03)","\u3222":"(\u4E09)","\u{1F241}":"(\u4E09)","\u3228":"(\u4E5D)","\u3221":"(\u4E8C)","\u{1F242}":"(\u4E8C)","\u3224":"(\u4E94)","\u3239":"(\u4EE3)","\u323D":"(\u4F01)","\u3241":"(\u4F11)","\u3227":"(\u516B)","\u3225":"(\u516D)","\u3238":"(\u52B4)","\u{1F247}":"(\u52DD)","\u3229":"(\u5341)","\u323F":"(\u5354)","\u3234":"(\u540D)","\u323A":"(\u547C)","\u3223":"(\u56DB)","\u322F":"(\u571F)","\u323B":"(\u5B66)","\u{1F243}":"(\u5B89)","\u{1F245}":"(\u6253)","\u{1F248}":"(\u6557)","\u3230":"(\u65E5)","\u322A":"(\u6708)","\u3232":"(\u6709)","\u322D":"(\u6728)","\u{1F240}":"(\u672C)","\u3231":"(\u682A)","\u322C":"(\u6C34)","\u322B":"(\u706B)","\u{1F244}":"(\u70B9)","\u3235":"(\u7279)","\u{1F246}":"(\u76D7)","\u323C":"(\u76E3)","\u3233":"(\u793E)","\u3237":"(\u795D)","\u3240":"(\u796D)","\u3242":"(\u81EA)","\u3243":"(\u81F3)","\u3236":"(\u8CA1)","\u323E":"(\u8CC7)","\u322E":"(\u91D1)","\uFF3D":")","\u2769":")","\u2773":")","\u3015":")","\uFD3F":")","\u2E29":"))","\u2774":"{","\u{1D114}":"{","\u2775":"}","\u301A":"\u27E6","\u301B":"\u27E7","\u27E8":"\u276C","\u2329":"\u276C","\u3008":"\u276C","\u31DB":"\u276C",\u304F:"\u276C","\u{21FE8}":"\u276C","\u27E9":"\u276D","\u232A":"\u276D","\u3009":"\u276D","\uFF3E":"\uFE3F","\u2E3F":"\xB6","\u204E":"*","\u066D":"*","\u2217":"*","\u{1031F}":"*","\u1735":"/","\u2041":"/","\u2215":"/","\u2044":"/","\u2571":"/","\u27CB":"/","\u29F8":"/","\u{1D23A}":"/","\u31D3":"/",\u3033:"/","\u2CC6":"/",\u30CE:"/",\u4E3F:"/","\u2F03":"/","\u29F6":"/\u0304","\u2AFD":"//","\u2AFB":"///","\uFF3C":"\\","\uFE68":"\\","\u2216":"\\","\u27CD":"\\","\u29F5":"\\","\u29F9":"\\","\u{1D20F}":"\\","\u{1D23B}":"\\","\u31D4":"\\",\u4E36:"\\","\u2F02":"\\","\u2CF9":"\\\\","\u244A":"\\\\","\u27C8":"\\\u1455","\uA778":"&","\u0AF0":"\u0970","\u{110BB}":"\u0970","\u{111C7}":"\u0970","\u26AC":"\u0970","\u{111DB}":"\uA8FC","\u17D9":"\u0E4F","\u17D5":"\u0E5A","\u17DA":"\u0E5B","\u0F0C":"\u0F0B","\u0F0E":"\u0F0D\u0F0D","\u02C4":"^","\u02C6":"^","\uA67E":"\u02C7","\u02D8":"\u02C7","\u203E":"\u02C9","\uFE49":"\u02C9","\uFE4A":"\u02C9","\uFE4B":"\u02C9","\uFE4C":"\u02C9","\xAF":"\u02C9","\uFFE3":"\u02C9","\u2594":"\u02C9",\u044A:"\u02C9b","\uA651":"\u02C9bi","\u0375":"\u02CF","\u02FB":"\u02EA","\uA716":"\u02EA","\uA714":"\u02EB","\u3002":"\u02F3","\u2E30":"\xB0","\u02DA":"\xB0","\u2218":"\xB0","\u25CB":"\xB0","\u25E6":"\xB0","\u235C":"\xB0\u0332","\u2364":"\xB0\u0308","\u2103":"\xB0C","\u2109":"\xB0F","\u0BF5":"\u0BF3","\u0F1B":"\u0F1A\u0F1A","\u0F1F":"\u0F1A\u0F1D","\u0FCE":"\u0F1D\u0F1A","\u0F1E":"\u0F1D\u0F1D","\u24B8":"\xA9","\u24C7":"\xAE","\u24C5":"\u2117","\u{1D21B}":"\u2144","\u2BEC":"\u219E","\u2BED":"\u219F","\u2BEE":"\u21A0","\u2BEF":"\u21A1","\u21B5":"\u21B2","\u2965":"\u21C3\u21C2","\u296F":"\u21C3\u16DA","\u{1D6DB}":"\u2202","\u{1D715}":"\u2202","\u{1D74F}":"\u2202","\u{1D789}":"\u2202","\u{1D7C3}":"\u2202","\u{1E8CC}":"\u2202","\u{1E8CD}":"\u2202\u0335",\u00F0:"\u2202\u0335","\u2300":"\u2205","\u{1D6C1}":"\u2207","\u{1D6FB}":"\u2207","\u{1D735}":"\u2207","\u{1D76F}":"\u2207","\u{1D7A9}":"\u2207","\u{118A8}":"\u2207","\u2362":"\u2207\u0308","\u236B":"\u2207\u0334","\u2588":"\u220E","\u25A0":"\u220E","\u2A3F":"\u2210","\u16ED":"+","\u2795":"+","\u{1029B}":"+","\u2A23":"+\u0302","\u2A22":"+\u030A","\u2A24":"+\u0303","\u2214":"+\u0307","\u2A25":"+\u0323","\u2A26":"+\u0330","\u2A27":"+\u2082","\u2797":"\xF7","\u2039":"<","\u276E":"<","\u02C2":"<","\u{1D236}":"<",\u1438:"<",\u16B2:"<","\u22D6":"<\xB7","\u2CB4":"<\xB7",\u1445:"<\xB7","\u226A":"<<","\u22D8":"<<<","\u1400":"=","\u2E40":"=","\u30A0":"=","\uA4FF":"=","\u225A":"=\u0306","\u2259":"=\u0302","\u2257":"=\u030A","\u2250":"=\u0307","\u2251":"=\u0307\u0323","\u2A6E":"=\u20F0","\u2A75":"==","\u2A76":"===","\u225E":"=\u036B","\u203A":">","\u276F":">","\u02C3":">","\u{1D237}":">",\u1433:">","\u{16F3F}":">",\u1441:">\xB7","\u2AA5":"><","\u226B":">>","\u2A20":">>","\u22D9":">>>","\u2053":"~","\u02DC":"~","\u1FC0":"~","\u223C":"~","\u2368":"~\u0308","\u2E1E":"~\u0307","\u2A6A":"~\u0307","\u2E1F":"~\u0323","\u{1E8C8}":"\u2220","\u22C0":"\u2227","\u222F":"\u222E\u222E","\u2230":"\u222E\u222E\u222E","\u2E2B":"\u2234","\u2E2A":"\u2235","\u2E2C":"\u2237","\u{111DE}":"\u2248","\u264E":"\u224F","\u{1F75E}":"\u224F","\u2263":"\u2261","\u2A03":"\u228D","\u2A04":"\u228E","\u{1D238}":"\u228F","\u{1D239}":"\u2290","\u2A05":"\u2293","\u2A06":"\u2294","\u2A02":"\u2297","\u235F":"\u229B","\u{1F771}":"\u22A0","\u{1F755}":"\u22A1","\u25C1":"\u22B2","\u25B7":"\u22B3","\u2363":"\u22C6\u0308","\uFE34":"\u2307","\u25E0":"\u2312","\u2A3D":"\u2319","\u2325":"\u2324","\u29C7":"\u233B","\u25CE":"\u233E","\u29BE":"\u233E","\u29C5":"\u2342","\u29B0":"\u2349","\u23C3":"\u234B","\u23C2":"\u234E","\u23C1":"\u2355","\u23C6":"\u236D","\u2638":"\u2388","\uFE35":"\u23DC","\uFE36":"\u23DD","\uFE37":"\u23DE","\uFE38":"\u23DF","\uFE39":"\u23E0","\uFE3A":"\u23E1","\u25B1":"\u23E5","\u23FC":"\u23FB","\uFE31":"\u2502","\uFF5C":"\u2502","\u2503":"\u2502","\u250F":"\u250C","\u2523":"\u251C","\u2590":"\u258C","\u2597":"\u2596","\u259D":"\u2598","\u2610":"\u25A1","\uFFED":"\u25AA","\u25B8":"\u25B6","\u25BA":"\u25B6","\u2CE9":"\u2627","\u{1F70A}":"\u2629","\u{1F312}":"\u263D","\u{1F319}":"\u263D","\u23FE":"\u263E","\u{1F318}":"\u263E","\u29D9":"\u299A","\u{1F73A}":"\u29DF","\u2A3E":"\u2A1F","\u{101A0}":"\u2CE8","\u2669":"\u{1D158}\u{1D165}","\u266A":"\u{1D158}\u{1D165}\u{1D16E}","\u24EA":"\u{1F10D}","\u21BA":"\u{1F10E}","\u02D9":"\u0971","\u0D4E":"\u0971","\uFF0D":"\u30FC","\u2014":"\u30FC","\u2015":"\u30FC","\u2500":"\u30FC","\u2501":"\u30FC","\u31D0":"\u30FC","\uA7F7":"\u30FC",\u1173:"\u30FC",\u3161:"\u30FC",\u4E00:"\u30FC","\u2F00":"\u30FC",\u1196:"\u30FC\u30FC","\uD7B9":"\u30FC\u1161","\uD7BA":"\u30FC\u1165","\uD7BB":"\u30FC\u1165\u4E28","\uD7BC":"\u30FC\u1169",\u1195:"\u30FC\u116E",\u1174:"\u30FC\u4E28",\u3162:"\u30FC\u4E28",\u1197:"\u30FC\u4E28\u116E","\u{1F10F}":"$\u20E0","\u20A4":"\xA3","\u3012":"\u20B8","\u3036":"\u20B8","\u1B5C":"\u1B50","\uA9C6":"\uA9D0","\u{114D1}":"\u09E7","\u0CE7":"\u0C67","\u1065":"\u1041","\u2460":"\u2780","\u2469":"\u2789","\u23E8":"\u2081\u2080","\u{1D7D0}":"2","\u{1D7DA}":"2","\u{1D7E4}":"2","\u{1D7EE}":"2","\u{1D7F8}":"2","\u{1FBF2}":"2","\uA75A":"2",\u01A7:"2",\u03E8:"2","\uA644":"2",\u14BF:"2","\uA6EF":"2","\uA9CF":"\u0662","\u06F2":"\u0662","\u0AE8":"\u0968","\u{114D2}":"\u09E8","\u0CE8":"\u0C68","\u2461":"\u2781",\u01BB:"2\u0335","\u{1F103}":"2,","\u2489":"2.","\u33F5":"22\u65E5","\u336E":"22\u70B9","\u33F6":"23\u65E5","\u336F":"23\u70B9","\u33F7":"24\u65E5","\u3370":"24\u70B9","\u33F8":"25\u65E5","\u33F9":"26\u65E5","\u33FA":"27\u65E5","\u33FB":"28\u65E5","\u33FC":"29\u65E5","\u33F4":"2l\u65E5","\u336D":"2l\u70B9","\u249B":"2O.","\u33F3":"2O\u65E5","\u336C":"2O\u70B9","\u0DE9":"\u0DE8\u0DCF","\u0DEF":"\u0DE8\u0DD3","\u33E1":"2\u65E5","\u32C1":"2\u6708","\u335A":"2\u70B9","\u{1D206}":"3","\u{1D7D1}":"3","\u{1D7DB}":"3","\u{1D7E5}":"3","\u{1D7EF}":"3","\u{1D7F9}":"3","\u{1FBF3}":"3","\uA7AB":"3",\u021C:"3",\u01B7:"3","\uA76A":"3","\u2CCC":"3",\u0417:"3",\u04E0:"3","\u{16F3B}":"3","\u{118CA}":"3","\u06F3":"\u0663","\u{1E8C9}":"\u0663","\u0AE9":"\u0969","\u2462":"\u2782",\u0498:"3\u0326","\u{1F104}":"3,","\u248A":"3.","\u33FE":"3l\u65E5","\u33FD":"3O\u65E5","\u33E2":"3\u65E5","\u32C2":"3\u6708","\u335B":"3\u70B9","\u{1D7D2}":"4","\u{1D7DC}":"4","\u{1D7E6}":"4","\u{1D7F0}":"4","\u{1D7FA}":"4","\u{1FBF4}":"4",\u13CE:"4","\u{118AF}":"4","\u06F4":"\u0664","\u0AEA":"\u096A","\u2463":"\u2783","\u{1F105}":"4,","\u248B":"4.",\u1530:"4\xB7","\u33E3":"4\u65E5","\u32C3":"4\u6708","\u335C":"4\u70B9","\u{1D7D3}":"5","\u{1D7DD}":"5","\u{1D7E7}":"5","\u{1D7F1}":"5","\u{1D7FB}":"5","\u{1FBF5}":"5",\u01BC:"5","\u{118BB}":"5","\u2464":"\u2784","\u{1F106}":"5,","\u248C":"5.","\u33E4":"5\u65E5","\u32C4":"5\u6708","\u335D":"5\u70B9","\u{1D7D4}":"6","\u{1D7DE}":"6","\u{1D7E8}":"6","\u{1D7F2}":"6","\u{1D7FC}":"6","\u{1FBF6}":"6","\u2CD2":"6",\u0431:"6",\u13EE:"6","\u{118D5}":"6","\u06F6":"\u0666","\u{114D6}":"\u09EC","\u2465":"\u2785","\u{1F107}":"6,","\u248D":"6.","\u33E5":"6\u65E5","\u32C5":"6\u6708","\u335E":"6\u70B9","\u{1D212}":"7","\u{1D7D5}":"7","\u{1D7DF}":"7","\u{1D7E9}":"7","\u{1D7F3}":"7","\u{1D7FD}":"7","\u{1FBF7}":"7","\u{104D2}":"7","\u{118C6}":"7","\u2466":"\u2786","\u{1F108}":"7,","\u248E":"7.","\u33E6":"7\u65E5","\u32C6":"7\u6708","\u335F":"7\u70B9","\u0B03":"8","\u09EA":"8","\u0A6A":"8","\u{1E8CB}":"8","\u{1D7D6}":"8","\u{1D7E0}":"8","\u{1D7EA}":"8","\u{1D7F4}":"8","\u{1D7FE}":"8","\u{1FBF8}":"8",\u0223:"8",\u0222:"8","\u{1031A}":"8","\u0AEE":"\u096E","\u2467":"\u2787","\u{1F109}":"8,","\u248F":"8.","\u33E7":"8\u65E5","\u32C7":"8\u6708","\u3360":"8\u70B9","\u0A67":"9","\u0B68":"9","\u09ED":"9","\u0D6D":"9","\u{1D7D7}":"9","\u{1D7E1}":"9","\u{1D7EB}":"9","\u{1D7F5}":"9","\u{1D7FF}":"9","\u{1FBF9}":"9","\uA76E":"9","\u2CCA":"9","\u{118CC}":"9","\u{118AC}":"9","\u{118D6}":"9","\u0967":"\u0669","\u{118E4}":"\u0669","\u06F9":"\u0669","\u0CEF":"\u0C6F","\u2468":"\u2788","\u{1F10A}":"9,","\u2490":"9.","\u33E8":"9\u65E5","\u32C8":"9\u6708","\u3361":"9\u70B9","\u237A":"a",\uFF41:"a","\u{1D41A}":"a","\u{1D44E}":"a","\u{1D482}":"a","\u{1D4B6}":"a","\u{1D4EA}":"a","\u{1D51E}":"a","\u{1D552}":"a","\u{1D586}":"a","\u{1D5BA}":"a","\u{1D5EE}":"a","\u{1D622}":"a","\u{1D656}":"a","\u{1D68A}":"a",\u0251:"a",\u03B1:"a","\u{1D6C2}":"a","\u{1D6FC}":"a","\u{1D736}":"a","\u{1D770}":"a","\u{1D7AA}":"a",\u0430:"a","\u2DF6":"\u0363",\uFF21:"A","\u{1D400}":"A","\u{1D434}":"A","\u{1D468}":"A","\u{1D49C}":"A","\u{1D4D0}":"A","\u{1D504}":"A","\u{1D538}":"A","\u{1D56C}":"A","\u{1D5A0}":"A","\u{1D5D4}":"A","\u{1D608}":"A","\u{1D63C}":"A","\u{1D670}":"A",\u0391:"A","\u{1D6A8}":"A","\u{1D6E2}":"A","\u{1D71C}":"A","\u{1D756}":"A","\u{1D790}":"A",\u0410:"A",\u13AA:"A",\u15C5:"A","\uA4EE":"A","\u{16F40}":"A","\u{102A0}":"A","\u2376":"a\u0332",\u01CE:"\u0103",\u01CD:"\u0102",\u0227:"\xE5",\u0226:"\xC5",\u1E9A:"\u1EA3","\u2100":"a/c","\u2101":"a/s","\uA733":"aa","\uA732":"AA",\u00E6:"ae",\u04D5:"ae",\u00C6:"AE",\u04D4:"AE","\uA735":"ao","\uA734":"AO","\u{1F707}":"AR","\uA737":"au","\uA736":"AU","\uA739":"av","\uA73B":"av","\uA738":"AV","\uA73A":"AV","\uA73D":"ay","\uA73C":"AY","\uAB7A":"\u1D00","\u2200":"\u2C6F","\u{1D217}":"\u2C6F",\u15C4:"\u2C6F","\uA4EF":"\u2C6F","\u{1041F}":"\u2C70","\u{1D41B}":"b","\u{1D44F}":"b","\u{1D483}":"b","\u{1D4B7}":"b","\u{1D4EB}":"b","\u{1D51F}":"b","\u{1D553}":"b","\u{1D587}":"b","\u{1D5BB}":"b","\u{1D5EF}":"b","\u{1D623}":"b","\u{1D657}":"b","\u{1D68B}":"b",\u0184:"b",\u042C:"b",\u13CF:"b",\u1472:"b",\u15AF:"b",\uFF22:"B",\u212C:"B","\u{1D401}":"B","\u{1D435}":"B","\u{1D469}":"B","\u{1D4D1}":"B","\u{1D505}":"B","\u{1D539}":"B","\u{1D56D}":"B","\u{1D5A1}":"B","\u{1D5D5}":"B","\u{1D609}":"B","\u{1D63D}":"B","\u{1D671}":"B","\uA7B4":"B",\u0392:"B","\u{1D6A9}":"B","\u{1D6E3}":"B","\u{1D71D}":"B","\u{1D757}":"B","\u{1D791}":"B",\u0412:"B",\u13F4:"B",\u15F7:"B","\uA4D0":"B","\u{10282}":"B","\u{102A1}":"B","\u{10301}":"B",\u0253:"b\u0314",\u1473:"b\u0307",\u0183:"b\u0304",\u0182:"b\u0304",\u0411:"b\u0304",\u0180:"b\u0335",\u048D:"b\u0335",\u048C:"b\u0335",\u0463:"b\u0335",\u0462:"b\u0335",\u147F:"b\xB7",\u1481:"b\u0307\xB7",\u1488:"b'",\u042B:"bl",\u0432:"\u0299","\u13FC":"\u0299",\uFF43:"c","\u217D":"c","\u{1D41C}":"c","\u{1D450}":"c","\u{1D484}":"c","\u{1D4B8}":"c","\u{1D4EC}":"c","\u{1D520}":"c","\u{1D554}":"c","\u{1D588}":"c","\u{1D5BC}":"c","\u{1D5F0}":"c","\u{1D624}":"c","\u{1D658}":"c","\u{1D68C}":"c","\u1D04":"c",\u03F2:"c","\u2CA5":"c",\u0441:"c","\uABAF":"c","\u{1043D}":"c","\u2DED":"\u0368","\u{1F74C}":"C","\u{118F2}":"C","\u{118E9}":"C",\uFF23:"C","\u216D":"C",\u2102:"C",\u212D:"C","\u{1D402}":"C","\u{1D436}":"C","\u{1D46A}":"C","\u{1D49E}":"C","\u{1D4D2}":"C","\u{1D56E}":"C","\u{1D5A2}":"C","\u{1D5D6}":"C","\u{1D60A}":"C","\u{1D63E}":"C","\u{1D672}":"C","\u03F9":"C","\u2CA4":"C",\u0421:"C",\u13DF:"C","\uA4DA":"C","\u{102A2}":"C","\u{10302}":"C","\u{10415}":"C","\u{1051C}":"C","\xA2":"c\u0338","\u023C":"c\u0338","\u20A1":"C\u20EB","\u{1F16E}":"C\u20E0",\u00E7:"c\u0326",\u04AB:"c\u0326",\u00C7:"C\u0326",\u04AA:"C\u0326",\u0187:"C'","\u2105":"c/o","\u2106":"c/u","\u{1F16D}":"\u33C4 \u20DD","\u22F4":"\uA793",\u025B:"\uA793",\u03B5:"\uA793","\u03F5":"\uA793","\u{1D6C6}":"\uA793","\u{1D6DC}":"\uA793","\u{1D700}":"\uA793","\u{1D716}":"\uA793","\u{1D73A}":"\uA793","\u{1D750}":"\uA793","\u{1D774}":"\uA793","\u{1D78A}":"\uA793","\u{1D7AE}":"\uA793","\u{1D7C4}":"\uA793","\u2C89":"\uA793",\u0454:"\uA793","\u0511":"\uA793","\uAB9B":"\uA793","\u{118CE}":"\uA793","\u{10429}":"\uA793","\u20AC":"\uA792","\u2C88":"\uA792",\u0404:"\uA792","\u2377":"\uA793\u0332","\u037D":"\uA73F","\u03FF":"\uA73E","\u217E":"d","\u2146":"d","\u{1D41D}":"d","\u{1D451}":"d","\u{1D485}":"d","\u{1D4B9}":"d","\u{1D4ED}":"d","\u{1D521}":"d","\u{1D555}":"d","\u{1D589}":"d","\u{1D5BD}":"d","\u{1D5F1}":"d","\u{1D625}":"d","\u{1D659}":"d","\u{1D68D}":"d","\u0501":"d",\u13E7:"d",\u146F:"d","\uA4D2":"d","\u216E":"D","\u2145":"D","\u{1D403}":"D","\u{1D437}":"D","\u{1D46B}":"D","\u{1D49F}":"D","\u{1D4D3}":"D","\u{1D507}":"D","\u{1D53B}":"D","\u{1D56F}":"D","\u{1D5A3}":"D","\u{1D5D7}":"D","\u{1D60B}":"D","\u{1D63F}":"D","\u{1D673}":"D",\u13A0:"D",\u15DE:"D",\u15EA:"D","\uA4D3":"D",\u0257:"d\u0314",\u0256:"d\u0328",\u018C:"d\u0304",\u0111:"d\u0335",\u0110:"D\u0335",\u00D0:"D\u0335",\u0189:"D\u0335","\u20AB":"d\u0335\u0331","\uA77A":"\uA779",\u147B:"d\xB7",\u1487:"d'",\u02A4:"d\u021D",\u01F3:"dz",\u02A3:"dz",\u01F2:"Dz",\u01F1:"DZ",\u01C6:"d\u017E",\u01C5:"D\u017E",\u01C4:"D\u017D",\u02A5:"d\u0291","\uAB70":"\u1D05","\u2E39":"\u1E9F",\u03B4:"\u1E9F","\u{1D6C5}":"\u1E9F","\u{1D6FF}":"\u1E9F","\u{1D739}":"\u1E9F","\u{1D773}":"\u1E9F","\u{1D7AD}":"\u1E9F",\u056E:"\u1E9F",\u1577:"\u1E9F","\u212E":"e",\uFF45:"e",\u212F:"e","\u2147":"e","\u{1D41E}":"e","\u{1D452}":"e","\u{1D486}":"e","\u{1D4EE}":"e","\u{1D522}":"e","\u{1D556}":"e","\u{1D58A}":"e","\u{1D5BE}":"e","\u{1D5F2}":"e","\u{1D626}":"e","\u{1D65A}":"e","\u{1D68E}":"e","\uAB32":"e",\u0435:"e",\u04BD:"e","\u2DF7":"\u0364","\u22FF":"E",\uFF25:"E",\u2130:"E","\u{1D404}":"E","\u{1D438}":"E","\u{1D46C}":"E","\u{1D4D4}":"E","\u{1D508}":"E","\u{1D53C}":"E","\u{1D570}":"E","\u{1D5A4}":"E","\u{1D5D8}":"E","\u{1D60C}":"E","\u{1D640}":"E","\u{1D674}":"E",\u0395:"E","\u{1D6AC}":"E","\u{1D6E6}":"E","\u{1D720}":"E","\u{1D75A}":"E","\u{1D794}":"E",\u0415:"E","\u2D39":"E",\u13AC:"E","\uA4F0":"E","\u{118A6}":"E","\u{118AE}":"E","\u{10286}":"E",\u011B:"\u0115",\u011A:"\u0114","\u0247":"e\u0338","\u0246":"E\u0338",\u04BF:"e\u0328","\uAB7C":"\u1D07",\u0259:"\u01DD",\u04D9:"\u01DD","\u2203":"\u018E","\u2D3A":"\u018E","\uA4F1":"\u018E",\u025A:"\u01DD\u02DE","\u1D14":"\u01DDo","\uAB41":"\u01DDo\u0338","\uAB42":"\u01DDo\u0335",\u04D8:"\u018F","\u{1D221}":"\u0190",\u2107:"\u0190","\u0510":"\u0190",\u13CB:"\u0190","\u{16F2D}":"\u0190","\u{10401}":"\u0190","\u1D9F":"\u1D4B","\u1D08":"\u025C",\u0437:"\u025C",\u0499:"\u025C\u0326","\u{10442}":"\u025E","\uA79D":"\u029A","\u{1042A}":"\u029A","\u{1D41F}":"f","\u{1D453}":"f","\u{1D487}":"f","\u{1D4BB}":"f","\u{1D4EF}":"f","\u{1D523}":"f","\u{1D557}":"f","\u{1D58B}":"f","\u{1D5BF}":"f","\u{1D5F3}":"f","\u{1D627}":"f","\u{1D65B}":"f","\u{1D68F}":"f","\uAB35":"f","\uA799":"f",\u017F:"f","\u1E9D":"f",\u0584:"f","\u{1D213}":"F",\u2131:"F","\u{1D405}":"F","\u{1D439}":"F","\u{1D46D}":"F","\u{1D4D5}":"F","\u{1D509}":"F","\u{1D53D}":"F","\u{1D571}":"F","\u{1D5A5}":"F","\u{1D5D9}":"F","\u{1D60D}":"F","\u{1D641}":"F","\u{1D675}":"F","\uA798":"F",\u03DC:"F","\u{1D7CA}":"F",\u15B4:"F","\uA4DD":"F","\u{118C2}":"F","\u{118A2}":"F","\u{10287}":"F","\u{102A5}":"F","\u{10525}":"F",\u0192:"f\u0326",\u0191:"F\u0326","\u1D6E":"f\u0334","\u213B":"FAX",\uFB00:"ff",\uFB03:"ffi",\uFB04:"ffl",\uFB01:"fi",\uFB02:"fl",\u02A9:"f\u014B",\u15B5:"\u2132","\uA4DE":"\u2132","\u{1D230}":"\uA7FB",\u15B7:"\uA7FB",\uFF47:"g",\u210A:"g","\u{1D420}":"g","\u{1D454}":"g","\u{1D488}":"g","\u{1D4F0}":"g","\u{1D524}":"g","\u{1D558}":"g","\u{1D58C}":"g","\u{1D5C0}":"g","\u{1D5F4}":"g","\u{1D628}":"g","\u{1D65C}":"g","\u{1D690}":"g",\u0261:"g","\u1D83":"g",\u018D:"g",\u0581:"g","\u{1D406}":"G","\u{1D43A}":"G","\u{1D46E}":"G","\u{1D4A2}":"G","\u{1D4D6}":"G","\u{1D50A}":"G","\u{1D53E}":"G","\u{1D572}":"G","\u{1D5A6}":"G","\u{1D5DA}":"G","\u{1D60E}":"G","\u{1D642}":"G","\u{1D676}":"G","\u050C":"G",\u13C0:"G",\u13F3:"G","\uA4D6":"G","\u1DA2":"\u1D4D",\u0260:"g\u0314",\u01E7:"\u011F",\u01E6:"\u011E",\u01F5:"\u0123",\u01E5:"g\u0335",\u01E4:"G\u0335",\u0193:"G'","\u050D":"\u0262","\uAB90":"\u0262","\u13FB":"\u0262",\uFF48:"h",\u210E:"h","\u{1D421}":"h","\u{1D489}":"h","\u{1D4BD}":"h","\u{1D4F1}":"h","\u{1D525}":"h","\u{1D559}":"h","\u{1D58D}":"h","\u{1D5C1}":"h","\u{1D5F5}":"h","\u{1D629}":"h","\u{1D65D}":"h","\u{1D691}":"h",\u04BB:"h",\u0570:"h",\u13C2:"h",\uFF28:"H",\u210B:"H",\u210C:"H",\u210D:"H","\u{1D407}":"H","\u{1D43B}":"H","\u{1D46F}":"H","\u{1D4D7}":"H","\u{1D573}":"H","\u{1D5A7}":"H","\u{1D5DB}":"H","\u{1D60F}":"H","\u{1D643}":"H","\u{1D677}":"H",\u0397:"H","\u{1D6AE}":"H","\u{1D6E8}":"H","\u{1D722}":"H","\u{1D75C}":"H","\u{1D796}":"H","\u2C8E":"H",\u041D:"H",\u13BB:"H",\u157C:"H","\uA4E7":"H","\u{102CF}":"H","\u1D78":"\u1D34",\u0266:"h\u0314","\uA695":"h\u0314",\u13F2:"h\u0314","\u2C67":"H\u0329",\u04A2:"H\u0329",\u0127:"h\u0335",\u210F:"h\u0335",\u045B:"h\u0335",\u0126:"H\u0335","\u04C9":"H\u0326",\u04C7:"H\u0326",\u043D:"\u029C","\uAB8B":"\u029C",\u04A3:"\u029C\u0329","\u04CA":"\u029C\u0326",\u04C8:"\u029C\u0326","\u050A":"\u01F6","\uAB80":"\u2C76","\u0370":"\u2C75",\u13A8:"\u2C75",\u13B0:"\u2C75","\uA6B1":"\u2C75","\uA795":"\uA727","\u02DB":"i","\u2373":"i",\uFF49:"i","\u2170":"i",\u2139:"i","\u2148":"i","\u{1D422}":"i","\u{1D456}":"i","\u{1D48A}":"i","\u{1D4BE}":"i","\u{1D4F2}":"i","\u{1D526}":"i","\u{1D55A}":"i","\u{1D58E}":"i","\u{1D5C2}":"i","\u{1D5F6}":"i","\u{1D62A}":"i","\u{1D65E}":"i","\u{1D692}":"i",\u0131:"i","\u{1D6A4}":"i",\u026A:"i",\u0269:"i",\u03B9:"i",\u1FBE:"i",\u037A:"i","\u{1D6CA}":"i","\u{1D704}":"i","\u{1D73E}":"i","\u{1D778}":"i","\u{1D7B2}":"i",\u0456:"i","\uA647":"i","\u04CF":"i","\uAB75":"i",\u13A5:"i","\u{118C3}":"i","\u24DB":"\u24BE","\u2378":"i\u0332",\u01D0:"\u012D",\u01CF:"\u012C",\u0268:"i\u0335","\u1D7B":"i\u0335","\u1D7C":"i\u0335","\u2171":"ii","\u2172":"iii",\u0133:"ij","\u2173":"iv","\u2178":"ix",\uFF4A:"j","\u2149":"j","\u{1D423}":"j","\u{1D457}":"j","\u{1D48B}":"j","\u{1D4BF}":"j","\u{1D4F3}":"j","\u{1D527}":"j","\u{1D55B}":"j","\u{1D58F}":"j","\u{1D5C3}":"j","\u{1D5F7}":"j","\u{1D62B}":"j","\u{1D65F}":"j","\u{1D693}":"j",\u03F3:"j",\u0458:"j",\uFF2A:"J","\u{1D409}":"J","\u{1D43D}":"J","\u{1D471}":"J","\u{1D4A5}":"J","\u{1D4D9}":"J","\u{1D50D}":"J","\u{1D541}":"J","\u{1D575}":"J","\u{1D5A9}":"J","\u{1D5DD}":"J","\u{1D611}":"J","\u{1D645}":"J","\u{1D679}":"J","\uA7B2":"J","\u037F":"J",\u0408:"J",\u13AB:"J",\u148D:"J","\uA4D9":"J","\u0249":"j\u0335","\u0248":"J\u0335",\u1499:"J\xB7","\u{1D6A5}":"\u0237",\u0575:"\u0237","\uAB7B":"\u1D0A","\u{1D424}":"k","\u{1D458}":"k","\u{1D48C}":"k","\u{1D4C0}":"k","\u{1D4F4}":"k","\u{1D528}":"k","\u{1D55C}":"k","\u{1D590}":"k","\u{1D5C4}":"k","\u{1D5F8}":"k","\u{1D62C}":"k","\u{1D660}":"k","\u{1D694}":"k",\u212A:"K",\uFF2B:"K","\u{1D40A}":"K","\u{1D43E}":"K","\u{1D472}":"K","\u{1D4A6}":"K","\u{1D4DA}":"K","\u{1D50E}":"K","\u{1D542}":"K","\u{1D576}":"K","\u{1D5AA}":"K","\u{1D5DE}":"K","\u{1D612}":"K","\u{1D646}":"K","\u{1D67A}":"K",\u039A:"K","\u{1D6B1}":"K","\u{1D6EB}":"K","\u{1D725}":"K","\u{1D75F}":"K","\u{1D799}":"K","\u2C94":"K",\u041A:"K",\u13E6:"K",\u16D5:"K","\uA4D7":"K","\u{10518}":"K",\u0199:"k\u0314","\u2C69":"K\u0329",\u049A:"K\u0329","\u20AD":"K\u0335","\uA740":"K\u0335",\u049E:"K\u0335",\u0198:"K'","\u05C0":"l","|":"l","\u2223":"l","\u23FD":"l","\uFFE8":"l","\u0661":"l","\u06F1":"l","\u{10320}":"l","\u{1E8C7}":"l","\u{1D7CF}":"l","\u{1D7D9}":"l","\u{1D7E3}":"l","\u{1D7ED}":"l","\u{1D7F7}":"l","\u{1FBF1}":"l",I:"l",\uFF29:"l","\u2160":"l",\u2110:"l",\u2111:"l","\u{1D408}":"l","\u{1D43C}":"l","\u{1D470}":"l","\u{1D4D8}":"l","\u{1D540}":"l","\u{1D574}":"l","\u{1D5A8}":"l","\u{1D5DC}":"l","\u{1D610}":"l","\u{1D644}":"l","\u{1D678}":"l",\u0196:"l",\uFF4C:"l","\u217C":"l",\u2113:"l","\u{1D425}":"l","\u{1D459}":"l","\u{1D48D}":"l","\u{1D4C1}":"l","\u{1D4F5}":"l","\u{1D529}":"l","\u{1D55D}":"l","\u{1D591}":"l","\u{1D5C5}":"l","\u{1D5F9}":"l","\u{1D62D}":"l","\u{1D661}":"l","\u{1D695}":"l",\u01C0:"l",\u0399:"l","\u{1D6B0}":"l","\u{1D6EA}":"l","\u{1D724}":"l","\u{1D75E}":"l","\u{1D798}":"l","\u2C92":"l",\u0406:"l",\u04C0:"l",\u05D5:"l",\u05DF:"l",\u0627:"l","\u{1EE00}":"l","\u{1EE80}":"l",\uFE8E:"l",\uFE8D:"l","\u07CA":"l","\u2D4F":"l",\u16C1:"l","\uA4F2":"l","\u{16F28}":"l","\u{1028A}":"l","\u{10309}":"l","\u{1D22A}":"L","\u216C":"L",\u2112:"L","\u{1D40B}":"L","\u{1D43F}":"L","\u{1D473}":"L","\u{1D4DB}":"L","\u{1D50F}":"L","\u{1D543}":"L","\u{1D577}":"L","\u{1D5AB}":"L","\u{1D5DF}":"L","\u{1D613}":"L","\u{1D647}":"L","\u{1D67B}":"L","\u2CD0":"L",\u13DE:"L",\u14AA:"L","\uA4E1":"L","\u{16F16}":"L","\u{118A3}":"L","\u{118B2}":"L","\u{1041B}":"L","\u{10526}":"L",\uFD3C:"l\u030B",\uFD3D:"l\u030B",\u0142:"l\u0338",\u0141:"L\u0338",\u026D:"l\u0328",\u0197:"l\u0335",\u019A:"l\u0335",\u026B:"l\u0334",\u0625:"l\u0655",\uFE88:"l\u0655",\uFE87:"l\u0655",\u0673:"l\u0655",\u0140:"l\xB7",\u013F:"l\xB7",\u14B7:"l\xB7","\u{1F102}":"l,","\u2488":"l.",\u05F1:"l'","\u2493":"l2.","\u33EB":"l2\u65E5","\u32CB":"l2\u6708","\u3364":"l2\u70B9","\u2494":"l3.","\u33EC":"l3\u65E5","\u3365":"l3\u70B9","\u2495":"l4.","\u33ED":"l4\u65E5","\u3366":"l4\u70B9","\u2496":"l5.","\u33EE":"l5\u65E5","\u3367":"l5\u70B9","\u2497":"l6.","\u33EF":"l6\u65E5","\u3368":"l6\u70B9","\u2498":"l7.","\u33F0":"l7\u65E5","\u3369":"l7\u70B9","\u2499":"l8.","\u33F1":"l8\u65E5","\u336A":"l8\u70B9","\u249A":"l9.","\u33F2":"l9\u65E5","\u336B":"l9\u70B9",\u01C9:"lj",\u0132:"lJ",\u01C8:"Lj",\u01C7:"LJ","\u2016":"ll","\u2225":"ll","\u2161":"ll",\u01C1:"ll",\u05F0:"ll","\u{10199}":"l\u0335l\u0335","\u2492":"ll.","\u2162":"lll","\u{10198}":"l\u0335l\u0335S\u0335","\u33EA":"ll\u65E5","\u32CA":"ll\u6708","\u3363":"ll\u70B9",\u042E:"lO","\u2491":"lO.","\u33E9":"lO\u65E5","\u32C9":"lO\u6708","\u3362":"lO\u70B9",\u02AA:"ls","\u20B6":"lt","\u2163":"lV","\u2168":"lX",\u026E:"l\u021D",\u02AB:"lz",\u0623:"l\u0674",\uFE84:"l\u0674",\uFE83:"l\u0674",\u0672:"l\u0674",\u0675:"l\u0674",\uFDF3:"l\u0643\u0628\u0631",\uFDF2:"l\u0644\u0644\u0651\u0670o","\u33E0":"l\u65E5","\u32C0":"l\u6708","\u3359":"l\u70B9","\u2CD1":"\u029F","\uABAE":"\u029F","\u{10443}":"\u029F",\uFF2D:"M","\u216F":"M",\u2133:"M","\u{1D40C}":"M","\u{1D440}":"M","\u{1D474}":"M","\u{1D4DC}":"M","\u{1D510}":"M","\u{1D544}":"M","\u{1D578}":"M","\u{1D5AC}":"M","\u{1D5E0}":"M","\u{1D614}":"M","\u{1D648}":"M","\u{1D67C}":"M",\u039C:"M","\u{1D6B3}":"M","\u{1D6ED}":"M","\u{1D727}":"M","\u{1D761}":"M","\u{1D79B}":"M","\u03FA":"M","\u2C98":"M",\u041C:"M",\u13B7:"M",\u15F0:"M",\u16D6:"M","\uA4DF":"M","\u{102B0}":"M","\u{10311}":"M","\u04CD":"M\u0326","\u{1F76B}":"MB","\u2DE8":"\u1DDF","\u{1D427}":"n","\u{1D45B}":"n","\u{1D48F}":"n","\u{1D4C3}":"n","\u{1D4F7}":"n","\u{1D52B}":"n","\u{1D55F}":"n","\u{1D593}":"n","\u{1D5C7}":"n","\u{1D5FB}":"n","\u{1D62F}":"n","\u{1D663}":"n","\u{1D697}":"n",\u0578:"n",\u057C:"n",\uFF2E:"N",\u2115:"N","\u{1D40D}":"N","\u{1D441}":"N","\u{1D475}":"N","\u{1D4A9}":"N","\u{1D4DD}":"N","\u{1D511}":"N","\u{1D579}":"N","\u{1D5AD}":"N","\u{1D5E1}":"N","\u{1D615}":"N","\u{1D649}":"N","\u{1D67D}":"N",\u039D:"N","\u{1D6B4}":"N","\u{1D6EE}":"N","\u{1D728}":"N","\u{1D762}":"N","\u{1D79C}":"N","\u2C9A":"N","\uA4E0":"N","\u{10513}":"N","\u{1018E}":"N\u030A",\u0273:"n\u0328",\u019E:"n\u0329",\u03B7:"n\u0329","\u{1D6C8}":"n\u0329","\u{1D702}":"n\u0329","\u{1D73C}":"n\u0329","\u{1D776}":"n\u0329","\u{1D7B0}":"n\u0329",\u019D:"N\u0326","\u1D70":"n\u0334",\u01CC:"nj",\u01CB:"Nj",\u01CA:"NJ","\u2116":"No","\u0377":"\u1D0E",\u0438:"\u1D0E","\u{1044D}":"\u1D0E",\u0146:"\u0272","\u0C02":"o","\u0C82":"o","\u0D02":"o","\u0D82":"o","\u0966":"o","\u0A66":"o","\u0AE6":"o","\u0BE6":"o","\u0C66":"o","\u0CE6":"o","\u0D66":"o","\u0E50":"o","\u0ED0":"o","\u1040":"o","\u0665":"o","\u06F5":"o",\uFF4F:"o",\u2134:"o","\u{1D428}":"o","\u{1D45C}":"o","\u{1D490}":"o","\u{1D4F8}":"o","\u{1D52C}":"o","\u{1D560}":"o","\u{1D594}":"o","\u{1D5C8}":"o","\u{1D5FC}":"o","\u{1D630}":"o","\u{1D664}":"o","\u{1D698}":"o","\u1D0F":"o","\u1D11":"o","\uAB3D":"o",\u03BF:"o","\u{1D6D0}":"o","\u{1D70A}":"o","\u{1D744}":"o","\u{1D77E}":"o","\u{1D7B8}":"o",\u03C3:"o","\u{1D6D4}":"o","\u{1D70E}":"o","\u{1D748}":"o","\u{1D782}":"o","\u{1D7BC}":"o","\u2C9F":"o",\u043E:"o","\u10FF":"o",\u0585:"o",\u05E1:"o",\u0647:"o","\u{1EE24}":"o","\u{1EE64}":"o","\u{1EE84}":"o",\uFEEB:"o",\uFEEC:"o",\uFEEA:"o",\uFEE9:"o",\u06BE:"o",\uFBAC:"o",\uFBAD:"o",\uFBAB:"o",\uFBAA:"o",\u06C1:"o",\uFBA8:"o",\uFBA9:"o",\uFBA7:"o",\uFBA6:"o",\u06D5:"o",\u0D20:"o",\u101D:"o","\u{104EA}":"o","\u{118C8}":"o","\u{118D7}":"o","\u{1042C}":"o","\u07C0":"O","\u09E6":"O","\u0B66":"O","\u3007":"O","\u{114D0}":"O","\u{118E0}":"O","\u{1D7CE}":"O","\u{1D7D8}":"O","\u{1D7E2}":"O","\u{1D7EC}":"O","\u{1D7F6}":"O","\u{1FBF0}":"O",\uFF2F:"O","\u{1D40E}":"O","\u{1D442}":"O","\u{1D476}":"O","\u{1D4AA}":"O","\u{1D4DE}":"O","\u{1D512}":"O","\u{1D546}":"O","\u{1D57A}":"O","\u{1D5AE}":"O","\u{1D5E2}":"O","\u{1D616}":"O","\u{1D64A}":"O","\u{1D67E}":"O",\u039F:"O","\u{1D6B6}":"O","\u{1D6F0}":"O","\u{1D72A}":"O","\u{1D764}":"O","\u{1D79E}":"O","\u2C9E":"O",\u041E:"O",\u0555:"O","\u2D54":"O",\u12D0:"O",\u0B20:"O","\u{104C2}":"O","\uA4F3":"O","\u{118B5}":"O","\u{10292}":"O","\u{102AB}":"O","\u{10404}":"O","\u{10516}":"O","\u2070":"\xBA","\u1D52":"\xBA",\u01D2:"\u014F",\u01D1:"\u014E","\u06FF":"o\u0302",\u0150:"\xD6",\u00F8:"o\u0338","\uAB3E":"o\u0338",\u00D8:"O\u0338","\u2D41":"O\u0338",\u01FE:"O\u0338\u0301",\u0275:"o\u0335","\uA74B":"o\u0335",\u04E9:"o\u0335",\u0473:"o\u0335","\uAB8E":"o\u0335","\uABBB":"o\u0335","\u2296":"O\u0335","\u229D":"O\u0335","\u236C":"O\u0335","\u{1D21A}":"O\u0335","\u{1F714}":"O\u0335",\u019F:"O\u0335","\uA74A":"O\u0335",\u03B8:"O\u0335",\u03D1:"O\u0335","\u{1D6C9}":"O\u0335","\u{1D6DD}":"O\u0335","\u{1D703}":"O\u0335","\u{1D717}":"O\u0335","\u{1D73D}":"O\u0335","\u{1D751}":"O\u0335","\u{1D777}":"O\u0335","\u{1D78B}":"O\u0335","\u{1D7B1}":"O\u0335","\u{1D7C5}":"O\u0335",\u0398:"O\u0335","\u03F4":"O\u0335","\u{1D6AF}":"O\u0335","\u{1D6B9}":"O\u0335","\u{1D6E9}":"O\u0335","\u{1D6F3}":"O\u0335","\u{1D723}":"O\u0335","\u{1D72D}":"O\u0335","\u{1D75D}":"O\u0335","\u{1D767}":"O\u0335","\u{1D797}":"O\u0335","\u{1D7A1}":"O\u0335",\u04E8:"O\u0335",\u0472:"O\u0335","\u2D31":"O\u0335",\u13BE:"O\u0335",\u13EB:"O\u0335","\uAB74":"o\u031B",\uFCD9:"o\u0670","\u{1F101}":"O,","\u{1F100}":"O.",\u01A1:"o'",\u01A0:"O'",\u13A4:"O'","%":"\xBA/\u2080","\u066A":"\xBA/\u2080","\u2052":"\xBA/\u2080","\u2030":"\xBA/\u2080\u2080","\u0609":"\xBA/\u2080\u2080","\u2031":"\xBA/\u2080\u2080\u2080","\u060A":"\xBA/\u2080\u2080\u2080",\u0153:"oe",\u0152:"OE",\u0276:"o\u1D07","\u221E":"oo","\uA74F":"oo","\uA699":"oo","\uA74E":"OO","\uA698":"OO",\uFCD7:"o\u062C",\uFC51:"o\u062C",\uFCD8:"o\u0645",\uFC52:"o\u0645",\uFD93:"o\u0645\u062C",\uFD94:"o\u0645\u0645",\uFC53:"o\u0649",\uFC54:"o\u0649","\u0D5F":"o\u0D30o",\u1010:"o\u102C","\u3358":"O\u70B9","\u2184":"\u0254","\u1D10":"\u0254","\u037B":"\u0254","\u{1044B}":"\u0254","\u2183":"\u0186","\u03FD":"\u0186","\uA4DB":"\u0186","\u{10423}":"\u0186","\uAB3F":"\u0254\u0338","\uAB62":"\u0254e","\u{1043F}":"\u0277","\u2374":"p",\uFF50:"p","\u{1D429}":"p","\u{1D45D}":"p","\u{1D491}":"p","\u{1D4C5}":"p","\u{1D4F9}":"p","\u{1D52D}":"p","\u{1D561}":"p","\u{1D595}":"p","\u{1D5C9}":"p","\u{1D5FD}":"p","\u{1D631}":"p","\u{1D665}":"p","\u{1D699}":"p",\u03C1:"p",\u03F1:"p","\u{1D6D2}":"p","\u{1D6E0}":"p","\u{1D70C}":"p","\u{1D71A}":"p","\u{1D746}":"p","\u{1D754}":"p","\u{1D780}":"p","\u{1D78E}":"p","\u{1D7BA}":"p","\u{1D7C8}":"p","\u2CA3":"p",\u0440:"p",\uFF30:"P",\u2119:"P","\u{1D40F}":"P","\u{1D443}":"P","\u{1D477}":"P","\u{1D4AB}":"P","\u{1D4DF}":"P","\u{1D513}":"P","\u{1D57B}":"P","\u{1D5AF}":"P","\u{1D5E3}":"P","\u{1D617}":"P","\u{1D64B}":"P","\u{1D67F}":"P",\u03A1:"P","\u{1D6B8}":"P","\u{1D6F2}":"P","\u{1D72C}":"P","\u{1D766}":"P","\u{1D7A0}":"P","\u2CA2":"P",\u0420:"P",\u13E2:"P",\u146D:"P","\uA4D1":"P","\u{10295}":"P",\u01A5:"p\u0314","\u1D7D":"p\u0335",\u1477:"p\xB7",\u1486:"P'","\u1D29":"\u1D18","\uABB2":"\u1D18",\u03C6:"\u0278",\u03D5:"\u0278","\u{1D6D7}":"\u0278","\u{1D6DF}":"\u0278","\u{1D711}":"\u0278","\u{1D719}":"\u0278","\u{1D74B}":"\u0278","\u{1D753}":"\u0278","\u{1D785}":"\u0278","\u{1D78D}":"\u0278","\u{1D7BF}":"\u0278","\u{1D7C7}":"\u0278","\u2CAB":"\u0278",\u0444:"\u0278","\u{1D42A}":"q","\u{1D45E}":"q","\u{1D492}":"q","\u{1D4C6}":"q","\u{1D4FA}":"q","\u{1D52E}":"q","\u{1D562}":"q","\u{1D596}":"q","\u{1D5CA}":"q","\u{1D5FE}":"q","\u{1D632}":"q","\u{1D666}":"q","\u{1D69A}":"q","\u051B":"q",\u0563:"q",\u0566:"q",\u211A:"Q","\u{1D410}":"Q","\u{1D444}":"Q","\u{1D478}":"Q","\u{1D4AC}":"Q","\u{1D4E0}":"Q","\u{1D514}":"Q","\u{1D57C}":"Q","\u{1D5B0}":"Q","\u{1D5E4}":"Q","\u{1D618}":"Q","\u{1D64C}":"Q","\u{1D680}":"Q","\u2D55":"Q",\u02A0:"q\u0314","\u{1F700}":"QE","\u1D90":"\u024B","\u1D0B":"\u0138",\u03BA:"\u0138",\u03F0:"\u0138","\u{1D6CB}":"\u0138","\u{1D6DE}":"\u0138","\u{1D705}":"\u0138","\u{1D718}":"\u0138","\u{1D73F}":"\u0138","\u{1D752}":"\u0138","\u{1D779}":"\u0138","\u{1D78C}":"\u0138","\u{1D7B3}":"\u0138","\u{1D7C6}":"\u0138","\u2C95":"\u0138",\u043A:"\u0138","\uABB6":"\u0138",\u049B:"\u0138\u0329",\u049F:"\u0138\u0335","\u{1D42B}":"r","\u{1D45F}":"r","\u{1D493}":"r","\u{1D4C7}":"r","\u{1D4FB}":"r","\u{1D52F}":"r","\u{1D563}":"r","\u{1D597}":"r","\u{1D5CB}":"r","\u{1D5FF}":"r","\u{1D633}":"r","\u{1D667}":"r","\u{1D69B}":"r","\uAB47":"r","\uAB48":"r","\u1D26":"r","\u2C85":"r",\u0433:"r","\uAB81":"r","\u{1D216}":"R",\u211B:"R",\u211C:"R",\u211D:"R","\u{1D411}":"R","\u{1D445}":"R","\u{1D479}":"R","\u{1D4E1}":"R","\u{1D57D}":"R","\u{1D5B1}":"R","\u{1D5E5}":"R","\u{1D619}":"R","\u{1D64D}":"R","\u{1D681}":"R",\u01A6:"R",\u13A1:"R",\u13D2:"R","\u{104B4}":"R",\u1587:"R","\uA4E3":"R","\u{16F35}":"R",\u027D:"r\u0328",\u027C:"r\u0329","\u024D":"r\u0335",\u0493:"r\u0335","\u1D72":"r\u0334",\u0491:"r'","\u{118E3}":"rn",m:"rn","\u217F":"rn","\u{1D426}":"rn","\u{1D45A}":"rn","\u{1D48E}":"rn","\u{1D4C2}":"rn","\u{1D4F6}":"rn","\u{1D52A}":"rn","\u{1D55E}":"rn","\u{1D592}":"rn","\u{1D5C6}":"rn","\u{1D5FA}":"rn","\u{1D62E}":"rn","\u{1D662}":"rn","\u{1D696}":"rn","\u{11700}":"rn","\u20A5":"rn\u0338",\u0271:"rn\u0326","\u1D6F":"rn\u0334","\u20A8":"Rs","\uAB71":"\u0280","\uABA2":"\u0280",\u044F:"\u1D19","\u1D73":"\u027E\u0334","\u2129":"\u027F",\uFF53:"s","\u{1D42C}":"s","\u{1D460}":"s","\u{1D494}":"s","\u{1D4C8}":"s","\u{1D4FC}":"s","\u{1D530}":"s","\u{1D564}":"s","\u{1D598}":"s","\u{1D5CC}":"s","\u{1D600}":"s","\u{1D634}":"s","\u{1D668}":"s","\u{1D69C}":"s","\uA731":"s",\u01BD:"s",\u0455:"s","\uABAA":"s","\u{118C1}":"s","\u{10448}":"s",\uFF33:"S","\u{1D412}":"S","\u{1D446}":"S","\u{1D47A}":"S","\u{1D4AE}":"S","\u{1D4E2}":"S","\u{1D516}":"S","\u{1D54A}":"S","\u{1D57E}":"S","\u{1D5B2}":"S","\u{1D5E6}":"S","\u{1D61A}":"S","\u{1D64E}":"S","\u{1D682}":"S",\u0405:"S",\u054F:"S",\u13D5:"S",\u13DA:"S","\uA4E2":"S","\u{16F3A}":"S","\u{10296}":"S","\u{10420}":"S",\u0282:"s\u0328","\u1D74":"s\u0334","\uA7B5":"\xDF",\u03B2:"\xDF",\u03D0:"\xDF","\u{1D6C3}":"\xDF","\u{1D6FD}":"\xDF","\u{1D737}":"\xDF","\u{1D771}":"\xDF","\u{1D7AB}":"\xDF",\u13F0:"\xDF","\u{1F75C}":"sss",\uFB06:"st","\u222B":"\u0283","\uAB4D":"\u0283","\u2211":"\u01A9","\u2140":"\u01A9",\u03A3:"\u01A9","\u{1D6BA}":"\u01A9","\u{1D6F4}":"\u01A9","\u{1D72E}":"\u01A9","\u{1D768}":"\u01A9","\u{1D7A2}":"\u01A9","\u2D49":"\u01A9","\u222C":"\u0283\u0283","\u222D":"\u0283\u0283\u0283","\u2A0C":"\u0283\u0283\u0283\u0283","\u{1D42D}":"t","\u{1D461}":"t","\u{1D495}":"t","\u{1D4C9}":"t","\u{1D4FD}":"t","\u{1D531}":"t","\u{1D565}":"t","\u{1D599}":"t","\u{1D5CD}":"t","\u{1D601}":"t","\u{1D635}":"t","\u{1D669}":"t","\u{1D69D}":"t","\u22A4":"T","\u27D9":"T","\u{1F768}":"T",\uFF34:"T","\u{1D413}":"T","\u{1D447}":"T","\u{1D47B}":"T","\u{1D4AF}":"T","\u{1D4E3}":"T","\u{1D517}":"T","\u{1D54B}":"T","\u{1D57F}":"T","\u{1D5B3}":"T","\u{1D5E7}":"T","\u{1D61B}":"T","\u{1D64F}":"T","\u{1D683}":"T",\u03A4:"T","\u{1D6BB}":"T","\u{1D6F5}":"T","\u{1D72F}":"T","\u{1D769}":"T","\u{1D7A3}":"T","\u2CA6":"T",\u0422:"T",\u13A2:"T","\uA4D4":"T","\u{16F0A}":"T","\u{118BC}":"T","\u{10297}":"T","\u{102B1}":"T","\u{10315}":"T",\u01AD:"t\u0314","\u2361":"T\u0308","\u023E":"T\u0338",\u021A:"\u0162",\u01AE:"T\u0328",\u04AC:"T\u0329","\u20AE":"T\u20EB",\u0167:"t\u0335",\u0166:"T\u0335","\u1D75":"t\u0334",\u10A0:"\uA786","\uA728":"T3",\u02A8:"t\u0255","\u2121":"TEL","\uA777":"tf",\u02A6:"ts",\u02A7:"t\u0283","\uA729":"t\u021D",\u03C4:"\u1D1B","\u{1D6D5}":"\u1D1B","\u{1D70F}":"\u1D1B","\u{1D749}":"\u1D1B","\u{1D783}":"\u1D1B","\u{1D7BD}":"\u1D1B",\u0442:"\u1D1B","\uAB72":"\u1D1B",\u04AD:"\u1D1B\u0329",\u0163:"\u01AB",\u021B:"\u01AB",\u13BF:"\u01AB","\u{1D42E}":"u","\u{1D462}":"u","\u{1D496}":"u","\u{1D4CA}":"u","\u{1D4FE}":"u","\u{1D532}":"u","\u{1D566}":"u","\u{1D59A}":"u","\u{1D5CE}":"u","\u{1D602}":"u","\u{1D636}":"u","\u{1D66A}":"u","\u{1D69E}":"u","\uA79F":"u","\u1D1C":"u","\uAB4E":"u","\uAB52":"u",\u028B:"u",\u03C5:"u","\u{1D6D6}":"u","\u{1D710}":"u","\u{1D74A}":"u","\u{1D784}":"u","\u{1D7BE}":"u",\u057D:"u","\u{104F6}":"u","\u{118D8}":"u","\u222A":"U","\u22C3":"U","\u{1D414}":"U","\u{1D448}":"U","\u{1D47C}":"U","\u{1D4B0}":"U","\u{1D4E4}":"U","\u{1D518}":"U","\u{1D54C}":"U","\u{1D580}":"U","\u{1D5B4}":"U","\u{1D5E8}":"U","\u{1D61C}":"U","\u{1D650}":"U","\u{1D684}":"U",\u054D:"U",\u1200:"U","\u{104CE}":"U",\u144C:"U","\uA4F4":"U","\u{16F42}":"U","\u{118B8}":"U",\u01D4:"\u016D",\u01D3:"\u016C","\u1D7E":"u\u0335","\uAB9C":"u\u0335","\u0244":"U\u0335",\u13CC:"U\u0335",\u1458:"U\xB7",\u1467:"U'","\u1D6B":"ue","\uAB63":"uo",\u1E43:"\uAB51",\u057A:"\u0270",\u1223:"\u0270","\u2127":"\u01B1",\u162E:"\u01B1",\u1634:"\u01B1","\u1D7F":"\u028A\u0335","\u2228":"v","\u22C1":"v",\uFF56:"v","\u2174":"v","\u{1D42F}":"v","\u{1D463}":"v","\u{1D497}":"v","\u{1D4CB}":"v","\u{1D4FF}":"v","\u{1D533}":"v","\u{1D567}":"v","\u{1D59B}":"v","\u{1D5CF}":"v","\u{1D603}":"v","\u{1D637}":"v","\u{1D66B}":"v","\u{1D69F}":"v","\u1D20":"v",\u03BD:"v","\u{1D6CE}":"v","\u{1D708}":"v","\u{1D742}":"v","\u{1D77C}":"v","\u{1D7B6}":"v",\u0475:"v",\u05D8:"v","\u{11706}":"v","\uABA9":"v","\u{118C0}":"v","\u{1D20D}":"V","\u0667":"V","\u06F7":"V","\u2164":"V","\u{1D415}":"V","\u{1D449}":"V","\u{1D47D}":"V","\u{1D4B1}":"V","\u{1D4E5}":"V","\u{1D519}":"V","\u{1D54D}":"V","\u{1D581}":"V","\u{1D5B5}":"V","\u{1D5E9}":"V","\u{1D61D}":"V","\u{1D651}":"V","\u{1D685}":"V",\u0474:"V","\u2D38":"V",\u13D9:"V",\u142F:"V","\uA6DF":"V","\uA4E6":"V","\u{16F08}":"V","\u{118A0}":"V","\u{1051D}":"V","\u{10197}":"V\u0335",\u143B:"V\xB7","\u{1F76C}":"VB","\u2175":"vi","\u2176":"vii","\u2177":"viii","\u2165":"Vl","\u2166":"Vll","\u2167":"Vlll","\u{1F708}":"V\u1DE4","\u1D27":"\u028C","\u{104D8}":"\u028C","\u0668":"\u0245","\u06F8":"\u0245",\u039B:"\u0245","\u{1D6B2}":"\u0245","\u{1D6EC}":"\u0245","\u{1D726}":"\u0245","\u{1D760}":"\u0245","\u{1D79A}":"\u0245",\u041B:"\u0245","\u2D37":"\u0245","\u{104B0}":"\u0245",\u1431:"\u0245","\uA6CE":"\u0245","\uA4E5":"\u0245","\u{16F3D}":"\u0245","\u{1028D}":"\u0245","\u04C5":"\u0245\u0326",\u143D:"\u0245\xB7",\u026F:"w","\u{1D430}":"w","\u{1D464}":"w","\u{1D498}":"w","\u{1D4CC}":"w","\u{1D500}":"w","\u{1D534}":"w","\u{1D568}":"w","\u{1D59C}":"w","\u{1D5D0}":"w","\u{1D604}":"w","\u{1D638}":"w","\u{1D66C}":"w","\u{1D6A0}":"w","\u1D21":"w",\u0461:"w","\u051D":"w",\u0561:"w","\u{1170A}":"w","\u{1170E}":"w","\u{1170F}":"w","\uAB83":"w","\u{118EF}":"W","\u{118E6}":"W","\u{1D416}":"W","\u{1D44A}":"W","\u{1D47E}":"W","\u{1D4B2}":"W","\u{1D4E6}":"W","\u{1D51A}":"W","\u{1D54E}":"W","\u{1D582}":"W","\u{1D5B6}":"W","\u{1D5EA}":"W","\u{1D61E}":"W","\u{1D652}":"W","\u{1D686}":"W","\u051C":"W",\u13B3:"W",\u13D4:"W","\uA4EA":"W",\u047D:"w\u0486\u0487","\u{114C5}":"w\u0307","\u20A9":"W\u0335","\uA761":"w\u0326","\u1D0D":"\u028D",\u043C:"\u028D","\uAB87":"\u028D","\u04CE":"\u028D\u0326","\u166E":"x","\xD7":"x","\u292B":"x","\u292C":"x","\u2A2F":"x",\uFF58:"x","\u2179":"x","\u{1D431}":"x","\u{1D465}":"x","\u{1D499}":"x","\u{1D4CD}":"x","\u{1D501}":"x","\u{1D535}":"x","\u{1D569}":"x","\u{1D59D}":"x","\u{1D5D1}":"x","\u{1D605}":"x","\u{1D639}":"x","\u{1D66D}":"x","\u{1D6A1}":"x",\u0445:"x",\u1541:"x",\u157D:"x","\u2DEF":"\u036F","\u166D":"X","\u2573":"X","\u{10322}":"X","\u{118EC}":"X",\uFF38:"X","\u2169":"X","\u{1D417}":"X","\u{1D44B}":"X","\u{1D47F}":"X","\u{1D4B3}":"X","\u{1D4E7}":"X","\u{1D51B}":"X","\u{1D54F}":"X","\u{1D583}":"X","\u{1D5B7}":"X","\u{1D5EB}":"X","\u{1D61F}":"X","\u{1D653}":"X","\u{1D687}":"X","\uA7B3":"X",\u03A7:"X","\u{1D6BE}":"X","\u{1D6F8}":"X","\u{1D732}":"X","\u{1D76C}":"X","\u{1D7A6}":"X","\u2CAC":"X",\u0425:"X","\u2D5D":"X",\u16B7:"X","\uA4EB":"X","\u{10290}":"X","\u{102B4}":"X","\u{10317}":"X","\u{10527}":"X","\u2A30":"x\u0307",\u04B2:"X\u0329","\u{10196}":"X\u0335","\u217A":"xi","\u217B":"xii","\u216A":"Xl","\u216B":"Xll",\u0263:"y","\u1D8C":"y",\uFF59:"y","\u{1D432}":"y","\u{1D466}":"y","\u{1D49A}":"y","\u{1D4CE}":"y","\u{1D502}":"y","\u{1D536}":"y","\u{1D56A}":"y","\u{1D59E}":"y","\u{1D5D2}":"y","\u{1D606}":"y","\u{1D63A}":"y","\u{1D66E}":"y","\u{1D6A2}":"y",\u028F:"y","\u1EFF":"y","\uAB5A":"y",\u03B3:"y","\u213D":"y","\u{1D6C4}":"y","\u{1D6FE}":"y","\u{1D738}":"y","\u{1D772}":"y","\u{1D7AC}":"y",\u0443:"y",\u04AF:"y",\u10E7:"y","\u{118DC}":"y",\uFF39:"Y","\u{1D418}":"Y","\u{1D44C}":"Y","\u{1D480}":"Y","\u{1D4B4}":"Y","\u{1D4E8}":"Y","\u{1D51C}":"Y","\u{1D550}":"Y","\u{1D584}":"Y","\u{1D5B8}":"Y","\u{1D5EC}":"Y","\u{1D620}":"Y","\u{1D654}":"Y","\u{1D688}":"Y",\u03A5:"Y",\u03D2:"Y","\u{1D6BC}":"Y","\u{1D6F6}":"Y","\u{1D730}":"Y","\u{1D76A}":"Y","\u{1D7A4}":"Y","\u2CA8":"Y",\u0423:"Y",\u04AE:"Y",\u13A9:"Y",\u13BD:"Y","\uA4EC":"Y","\u{16F43}":"Y","\u{118A4}":"Y","\u{102B2}":"Y",\u01B4:"y\u0314","\u024F":"y\u0335",\u04B1:"y\u0335","\xA5":"Y\u0335","\u024E":"Y\u0335",\u04B0:"Y\u0335",\u0292:"\u021D","\uA76B":"\u021D","\u2CCD":"\u021D",\u04E1:"\u021D",\u10F3:"\u021D","\u{1D433}":"z","\u{1D467}":"z","\u{1D49B}":"z","\u{1D4CF}":"z","\u{1D503}":"z","\u{1D537}":"z","\u{1D56B}":"z","\u{1D59F}":"z","\u{1D5D3}":"z","\u{1D607}":"z","\u{1D63B}":"z","\u{1D66F}":"z","\u{1D6A3}":"z","\u1D22":"z","\uAB93":"z","\u{118C4}":"z","\u{102F5}":"Z","\u{118E5}":"Z",\uFF3A:"Z",\u2124:"Z",\u2128:"Z","\u{1D419}":"Z","\u{1D44D}":"Z","\u{1D481}":"Z","\u{1D4B5}":"Z","\u{1D4E9}":"Z","\u{1D585}":"Z","\u{1D5B9}":"Z","\u{1D5ED}":"Z","\u{1D621}":"Z","\u{1D655}":"Z","\u{1D689}":"Z",\u0396:"Z","\u{1D6AD}":"Z","\u{1D6E7}":"Z","\u{1D721}":"Z","\u{1D75B}":"Z","\u{1D795}":"Z",\u13C3:"Z","\uA4DC":"Z","\u{118A9}":"Z",\u0290:"z\u0328",\u01B6:"z\u0335",\u01B5:"Z\u0335",\u0225:"z\u0326",\u0224:"Z\u0326","\u1D76":"z\u0334",\u01BF:"\xFE","\u03F8":"\xFE","\u03F7":"\xDE","\u{104C4}":"\xDE","\u2079":"\uA770","\u1D24":"\u01A8",\u03E9:"\u01A8","\uA645":"\u01A8",\u044C:"\u0185","\uAB9F":"\u0185",\u044B:"\u0185i","\uAB7E":"\u0242",\u02E4:"\u02C1","\uA6CD":"\u02A1","\u2299":"\u0298","\u2609":"\u0298","\u2A00":"\u0298","\uA668":"\u0298","\u2D59":"\u0298","\u{104C3}":"\u0298","\u213E":"\u0393","\u{1D6AA}":"\u0393","\u{1D6E4}":"\u0393","\u{1D71E}":"\u0393","\u{1D758}":"\u0393","\u{1D792}":"\u0393","\u2C84":"\u0393",\u0413:"\u0393",\u13B1:"\u0393",\u14A5:"\u0393","\u{16F07}":"\u0393",\u0492:"\u0393\u0335",\u14AF:"\u0393\xB7",\u0490:"\u0393'","\u2206":"\u0394","\u25B3":"\u0394","\u{1F702}":"\u0394","\u{1D6AB}":"\u0394","\u{1D6E5}":"\u0394","\u{1D71F}":"\u0394","\u{1D759}":"\u0394","\u{1D793}":"\u0394","\u2C86":"\u0394","\u2D60":"\u0394",\u1403:"\u0394","\u{16F1A}":"\u0394","\u{10285}":"\u0394","\u{102A3}":"\u0394","\u2359":"\u0394\u0332",\u140F:"\u0394\xB7",\u142C:"\u0394\u1420","\u{1D7CB}":"\u03DD","\u{1D6C7}":"\u03B6","\u{1D701}":"\u03B6","\u{1D73B}":"\u03B6","\u{1D775}":"\u03B6","\u{1D7AF}":"\u03B6","\u2CE4":"\u03D7","\u{1D6CC}":"\u03BB","\u{1D706}":"\u03BB","\u{1D740}":"\u03BB","\u{1D77A}":"\u03BB","\u{1D7B4}":"\u03BB","\u2C96":"\u03BB","\u{104DB}":"\u03BB",\u00B5:"\u03BC","\u{1D6CD}":"\u03BC","\u{1D707}":"\u03BC","\u{1D741}":"\u03BC","\u{1D77B}":"\u03BC","\u{1D7B5}":"\u03BC","\u{1D6CF}":"\u03BE","\u{1D709}":"\u03BE","\u{1D743}":"\u03BE","\u{1D77D}":"\u03BE","\u{1D7B7}":"\u03BE","\u{1D6B5}":"\u039E","\u{1D6EF}":"\u039E","\u{1D729}":"\u039E","\u{1D763}":"\u039E","\u{1D79D}":"\u039E",\u03D6:"\u03C0","\u213C":"\u03C0","\u{1D6D1}":"\u03C0","\u{1D6E1}":"\u03C0","\u{1D70B}":"\u03C0","\u{1D71B}":"\u03C0","\u{1D745}":"\u03C0","\u{1D755}":"\u03C0","\u{1D77F}":"\u03C0","\u{1D78F}":"\u03C0","\u{1D7B9}":"\u03C0","\u{1D7C9}":"\u03C0","\u1D28":"\u03C0",\u043F:"\u03C0","\u220F":"\u03A0","\u213F":"\u03A0","\u{1D6B7}":"\u03A0","\u{1D6F1}":"\u03A0","\u{1D72B}":"\u03A0","\u{1D765}":"\u03A0","\u{1D79F}":"\u03A0","\u2CA0":"\u03A0",\u041F:"\u03A0","\uA6DB":"\u03A0","\u{102AD}":"\u03D8","\u{10312}":"\u03D8",\u03DB:"\u03C2","\u{1D6D3}":"\u03C2","\u{1D70D}":"\u03C2","\u{1D747}":"\u03C2","\u{1D781}":"\u03C2","\u{1D7BB}":"\u03C2","\u{1D6BD}":"\u03A6","\u{1D6F7}":"\u03A6","\u{1D731}":"\u03A6","\u{1D76B}":"\u03A6","\u{1D7A5}":"\u03A6","\u2CAA":"\u03A6",\u0424:"\u03A6",\u0553:"\u03A6",\u1240:"\u03A6","\u16F0":"\u03A6","\u{102B3}":"\u03A6","\uAB53":"\u03C7","\uAB55":"\u03C7","\u{1D6D8}":"\u03C7","\u{1D712}":"\u03C7","\u{1D74C}":"\u03C7","\u{1D786}":"\u03C7","\u{1D7C0}":"\u03C7","\u2CAD":"\u03C7","\u{1D6D9}":"\u03C8","\u{1D713}":"\u03C8","\u{1D74D}":"\u03C8","\u{1D787}":"\u03C8","\u{1D7C1}":"\u03C8",\u0471:"\u03C8","\u{104F9}":"\u03C8","\u{1D6BF}":"\u03A8","\u{1D6F9}":"\u03A8","\u{1D733}":"\u03A8","\u{1D76D}":"\u03A8","\u{1D7A7}":"\u03A8","\u2CAE":"\u03A8",\u0470:"\u03A8","\u{104D1}":"\u03A8",\u16D8:"\u03A8","\u{102B5}":"\u03A8","\u2375":"\u03C9","\uA7B7":"\u03C9","\u{1D6DA}":"\u03C9","\u{1D714}":"\u03C9","\u{1D74E}":"\u03C9","\u{1D788}":"\u03C9","\u{1D7C2}":"\u03C9","\u2CB1":"\u03C9","\uA64D":"\u03C9",\u2126:"\u03A9","\u{1D6C0}":"\u03A9","\u{1D6FA}":"\u03A9","\u{1D734}":"\u03A9","\u{1D76E}":"\u03A9","\u{1D7A8}":"\u03A9",\u162F:"\u03A9",\u1635:"\u03A9","\u{102B6}":"\u03A9","\u2379":"\u03C9\u0332",\u1F7D:"\u1FF4","\u2630":"\u2CB6","\u2CDC":"\u03EC",\u0497:"\u0436\u0329",\u0496:"\u0416\u0329","\u{1D20B}":"\u0418","\u0376":"\u0418","\uA6A1":"\u0418","\u{10425}":"\u0418",\u0419:"\u040D","\u048A":"\u040D\u0326",\u045D:"\u0439","\u048B":"\u0439\u0326","\u{104BC}":"\u04C3","\u1D2B":"\u043B","\u04C6":"\u043B\u0326","\uAB60":"\u0459","\u{104EB}":"\uA669","\u1DEE":"\u2DEC","\u{104CD}":"\u040B","\u{1D202}":"\u04FE","\u{1D222}":"\u0460",\u13C7:"\u0460",\u15EF:"\u0460",\u047C:"\u0460\u0486\u0487","\u18ED":"\u0460\xB7","\uA7B6":"\uA64C",\u04CC:"\u04B7",\u04CB:"\u04B6",\u04BE:"\u04BC\u0328","\u2CBD":"\u0448","\u2CBC":"\u0428","\uA650":"\u042Al","\u2108":"\u042D","\u{1F701}":"\uA658","\u{16F1C}":"\uA658","\uA992":"\u2C3F",\u0587:"\u0565\u0582",\u1294:"\u0571",\uFB14:"\u0574\u0565",\uFB15:"\u0574\u056B",\uFB17:"\u0574\u056D",\uFB13:"\u0574\u0576","\u2229":"\u0548","\u22C2":"\u0548","\u{1D245}":"\u0548",\u1260:"\u0548",\u144E:"\u0548","\uA4F5":"\u0548",\u145A:"\u0548\xB7",\u1468:"\u0548'",\uFB16:"\u057E\u0576","\u20BD":"\u0554","\u02D3":"\u0559",\u02BF:"\u0559",\u2135:"\u05D0",\uFB21:"\u05D0",\uFB2F:"\uFB2E",\uFB30:"\uFB2E",\uFB4F:"\u05D0\u05DC",\u2136:"\u05D1",\u2137:"\u05D2",\u2138:"\u05D3",\uFB22:"\u05D3",\uFB23:"\u05D4",\uFB39:"\uFB1D",\uFB24:"\u05DB",\uFB25:"\u05DC",\uFB26:"\u05DD",\uFB20:"\u05E2",\uFB27:"\u05E8",\uFB2B:"\uFB2A",\uFB49:"\uFB2A",\uFB2D:"\uFB2C",\uFB28:"\u05EA",\uFE80:"\u0621","\u06FD":"\u0621\u0348",\uFE82:"\u0622",\uFE81:"\u0622",\uFB51:"\u0671",\uFB50:"\u0671","\u{1EE01}":"\u0628","\u{1EE21}":"\u0628","\u{1EE61}":"\u0628","\u{1EE81}":"\u0628","\u{1EEA1}":"\u0628",\uFE91:"\u0628",\uFE92:"\u0628",\uFE90:"\u0628",\uFE8F:"\u0628","\u0751":"\u0628\u06DB","\u08B6":"\u0628\u06E2","\u08A1":"\u0628\u0654",\uFCA0:"\u0628o",\uFCE2:"\u0628o",\uFC9C:"\u0628\u062C",\uFC05:"\u0628\u062C",\uFC9D:"\u0628\u062D",\uFC06:"\u0628\u062D",\uFDC2:"\u0628\u062D\u0649",\uFC9E:"\u0628\u062E",\uFC07:"\u0628\u062E",\uFCD2:"\u0628\u062E",\uFC4B:"\u0628\u062E",\uFD9E:"\u0628\u062E\u0649",\uFC6A:"\u0628\u0631",\uFC6B:"\u0628\u0632",\uFC9F:"\u0628\u0645",\uFCE1:"\u0628\u0645",\uFC6C:"\u0628\u0645",\uFC08:"\u0628\u0645",\uFC6D:"\u0628\u0646",\uFC6E:"\u0628\u0649",\uFC09:"\u0628\u0649",\uFC6F:"\u0628\u0649",\uFC0A:"\u0628\u0649",\uFB54:"\u067B",\uFB55:"\u067B",\uFB53:"\u067B",\uFB52:"\u067B",\u06D0:"\u067B",\uFBE6:"\u067B",\uFBE7:"\u067B",\uFBE5:"\u067B",\uFBE4:"\u067B",\uFB5C:"\u0680",\uFB5D:"\u0680",\uFB5B:"\u0680",\uFB5A:"\u0680","\u08A9":"\u0754","\u0767":"\u0754","\u2365":"\u0629",\u00F6:"\u0629",\uFE94:"\u0629",\uFE93:"\u0629",\u06C3:"\u0629","\u{1EE15}":"\u062A","\u{1EE35}":"\u062A","\u{1EE75}":"\u062A","\u{1EE95}":"\u062A","\u{1EEB5}":"\u062A",\uFE97:"\u062A",\uFE98:"\u062A",\uFE96:"\u062A",\uFE95:"\u062A",\uFCA5:"\u062Ao",\uFCE4:"\u062Ao",\uFCA1:"\u062A\u062C",\uFC0B:"\u062A\u062C",\uFD50:"\u062A\u062C\u0645",\uFDA0:"\u062A\u062C\u0649",\uFD9F:"\u062A\u062C\u0649",\uFCA2:"\u062A\u062D",\uFC0C:"\u062A\u062D",\uFD52:"\u062A\u062D\u062C",\uFD51:"\u062A\u062D\u062C",\uFD53:"\u062A\u062D\u0645",\uFCA3:"\u062A\u062E",\uFC0D:"\u062A\u062E",\uFD54:"\u062A\u062E\u0645",\uFDA2:"\u062A\u062E\u0649",\uFDA1:"\u062A\u062E\u0649",\uFC70:"\u062A\u0631",\uFC71:"\u062A\u0632",\uFCA4:"\u062A\u0645",\uFCE3:"\u062A\u0645",\uFC72:"\u062A\u0645",\uFC0E:"\u062A\u0645",\uFD55:"\u062A\u0645\u062C",\uFD56:"\u062A\u0645\u062D",\uFD57:"\u062A\u0645\u062E",\uFDA4:"\u062A\u0645\u0649",\uFDA3:"\u062A\u0645\u0649",\uFC73:"\u062A\u0646",\uFC74:"\u062A\u0649",\uFC0F:"\u062A\u0649",\uFC75:"\u062A\u0649",\uFC10:"\u062A\u0649",\uFB60:"\u067A",\uFB61:"\u067A",\uFB5F:"\u067A",\uFB5E:"\u067A",\uFB64:"\u067F",\uFB65:"\u067F",\uFB63:"\u067F",\uFB62:"\u067F","\u{1EE02}":"\u062C","\u{1EE22}":"\u062C","\u{1EE42}":"\u062C","\u{1EE62}":"\u062C","\u{1EE82}":"\u062C","\u{1EEA2}":"\u062C",\uFE9F:"\u062C",\uFEA0:"\u062C",\uFE9E:"\u062C",\uFE9D:"\u062C",\uFCA7:"\u062C\u062D",\uFC15:"\u062C\u062D",\uFDA6:"\u062C\u062D\u0649",\uFDBE:"\u062C\u062D\u0649",\uFDFB:"\u062C\u0644 \u062C\u0644l\u0644o",\uFCA8:"\u062C\u0645",\uFC16:"\u062C\u0645",\uFD59:"\u062C\u0645\u062D",\uFD58:"\u062C\u0645\u062D",\uFDA7:"\u062C\u0645\u0649",\uFDA5:"\u062C\u0645\u0649",\uFD1D:"\u062C\u0649",\uFD01:"\u062C\u0649",\uFD1E:"\u062C\u0649",\uFD02:"\u062C\u0649",\uFB78:"\u0683",\uFB79:"\u0683",\uFB77:"\u0683",\uFB76:"\u0683",\uFB74:"\u0684",\uFB75:"\u0684",\uFB73:"\u0684",\uFB72:"\u0684",\uFB7C:"\u0686",\uFB7D:"\u0686",\uFB7B:"\u0686",\uFB7A:"\u0686",\uFB80:"\u0687",\uFB81:"\u0687",\uFB7F:"\u0687",\uFB7E:"\u0687","\u{1EE07}":"\u062D","\u{1EE27}":"\u062D","\u{1EE47}":"\u062D","\u{1EE67}":"\u062D","\u{1EE87}":"\u062D","\u{1EEA7}":"\u062D",\uFEA3:"\u062D",\uFEA4:"\u062D",\uFEA2:"\u062D",\uFEA1:"\u062D",\u0685:"\u062D\u06DB",\u0681:"\u062D\u0654","\u0772":"\u062D\u0654",\uFCA9:"\u062D\u062C",\uFC17:"\u062D\u062C",\uFDBF:"\u062D\u062C\u0649",\uFCAA:"\u062D\u0645",\uFC18:"\u062D\u0645",\uFD5B:"\u062D\u0645\u0649",\uFD5A:"\u062D\u0645\u0649",\uFD1B:"\u062D\u0649",\uFCFF:"\u062D\u0649",\uFD1C:"\u062D\u0649",\uFD00:"\u062D\u0649","\u{1EE17}":"\u062E","\u{1EE37}":"\u062E","\u{1EE57}":"\u062E","\u{1EE77}":"\u062E","\u{1EE97}":"\u062E","\u{1EEB7}":"\u062E",\uFEA7:"\u062E",\uFEA8:"\u062E",\uFEA6:"\u062E",\uFEA5:"\u062E",\uFCAB:"\u062E\u062C",\uFC19:"\u062E\u062C",\uFC1A:"\u062E\u062D",\uFCAC:"\u062E\u0645",\uFC1B:"\u062E\u0645",\uFD1F:"\u062E\u0649",\uFD03:"\u062E\u0649",\uFD20:"\u062E\u0649",\uFD04:"\u062E\u0649","\u{102E1}":"\u062F","\u{1EE03}":"\u062F","\u{1EE83}":"\u062F","\u{1EEA3}":"\u062F",\uFEAA:"\u062F",\uFEA9:"\u062F",\u0688:"\u062F\u0615",\uFB89:"\u062F\u0615",\uFB88:"\u062F\u0615",\u068E:"\u062F\u06DB",\uFB87:"\u062F\u06DB",\uFB86:"\u062F\u06DB","\u06EE":"\u062F\u0302","\u08AE":"\u062F\u0324\u0323","\u{1EE18}":"\u0630","\u{1EE98}":"\u0630","\u{1EEB8}":"\u0630",\uFEAC:"\u0630",\uFEAB:"\u0630",\uFC5B:"\u0630\u0670",\u068B:"\u068A\u0615",\uFB85:"\u068C",\uFB84:"\u068C",\uFB83:"\u068D",\uFB82:"\u068D","\u{1EE13}":"\u0631","\u{1EE93}":"\u0631","\u{1EEB3}":"\u0631",\uFEAE:"\u0631",\uFEAD:"\u0631",\u0691:"\u0631\u0615",\uFB8D:"\u0631\u0615",\uFB8C:"\u0631\u0615",\u0698:"\u0631\u06DB",\uFB8B:"\u0631\u06DB",\uFB8A:"\u0631\u06DB",\u0692:"\u0631\u0306","\u08B9":"\u0631\u0306\u0307","\u06EF":"\u0631\u0302","\u076C":"\u0631\u0654",\uFC5C:"\u0631\u0670",\uFDF6:"\u0631\u0633\u0648\u0644","\uFDFC":"\u0631\u0649l\u0644","\u{1EE06}":"\u0632","\u{1EE86}":"\u0632","\u{1EEA6}":"\u0632",\uFEB0:"\u0632",\uFEAF:"\u0632","\u08B2":"\u0632\u0302","\u0771":"\u0697\u0615","\u{1EE0E}":"\u0633","\u{1EE2E}":"\u0633","\u{1EE4E}":"\u0633","\u{1EE6E}":"\u0633","\u{1EE8E}":"\u0633","\u{1EEAE}":"\u0633",\uFEB3:"\u0633",\uFEB4:"\u0633",\uFEB2:"\u0633",\uFEB1:"\u0633",\u0634:"\u0633\u06DB","\u{1EE14}":"\u0633\u06DB","\u{1EE34}":"\u0633\u06DB","\u{1EE54}":"\u0633\u06DB","\u{1EE74}":"\u0633\u06DB","\u{1EE94}":"\u0633\u06DB","\u{1EEB4}":"\u0633\u06DB",\uFEB7:"\u0633\u06DB",\uFEB8:"\u0633\u06DB",\uFEB6:"\u0633\u06DB",\uFEB5:"\u0633\u06DB","\u077E":"\u0633\u0302",\uFD31:"\u0633o",\uFCE8:"\u0633o",\uFD32:"\u0633\u06DBo",\uFCEA:"\u0633\u06DBo",\uFCAD:"\u0633\u062C",\uFD34:"\u0633\u062C",\uFC1C:"\u0633\u062C",\uFD2D:"\u0633\u06DB\u062C",\uFD37:"\u0633\u06DB\u062C",\uFD25:"\u0633\u06DB\u062C",\uFD09:"\u0633\u06DB\u062C",\uFD5D:"\u0633\u062C\u062D",\uFD5E:"\u0633\u062C\u0649",\uFD69:"\u0633\u06DB\u062C\u0649",\uFCAE:"\u0633\u062D",\uFD35:"\u0633\u062D",\uFC1D:"\u0633\u062D",\uFD2E:"\u0633\u06DB\u062D",\uFD38:"\u0633\u06DB\u062D",\uFD26:"\u0633\u06DB\u062D",\uFD0A:"\u0633\u06DB\u062D",\uFD5C:"\u0633\u062D\u062C",\uFD68:"\u0633\u06DB\u062D\u0645",\uFD67:"\u0633\u06DB\u062D\u0645",\uFDAA:"\u0633\u06DB\u062D\u0649",\uFCAF:"\u0633\u062E",\uFD36:"\u0633\u062E",\uFC1E:"\u0633\u062E",\uFD2F:"\u0633\u06DB\u062E",\uFD39:"\u0633\u06DB\u062E",\uFD27:"\u0633\u06DB\u062E",\uFD0B:"\u0633\u06DB\u062E",\uFDA8:"\u0633\u062E\u0649",\uFDC6:"\u0633\u062E\u0649",\uFD2A:"\u0633\u0631",\uFD0E:"\u0633\u0631",\uFD29:"\u0633\u06DB\u0631",\uFD0D:"\u0633\u06DB\u0631",\uFCB0:"\u0633\u0645",\uFCE7:"\u0633\u0645",\uFC1F:"\u0633\u0645",\uFD30:"\u0633\u06DB\u0645",\uFCE9:"\u0633\u06DB\u0645",\uFD28:"\u0633\u06DB\u0645",\uFD0C:"\u0633\u06DB\u0645",\uFD61:"\u0633\u0645\u062C",\uFD60:"\u0633\u0645\u062D",\uFD5F:"\u0633\u0645\u062D",\uFD6B:"\u0633\u06DB\u0645\u062E",\uFD6A:"\u0633\u06DB\u0645\u062E",\uFD63:"\u0633\u0645\u0645",\uFD62:"\u0633\u0645\u0645",\uFD6D:"\u0633\u06DB\u0645\u0645",\uFD6C:"\u0633\u06DB\u0645\u0645",\uFD17:"\u0633\u0649",\uFCFB:"\u0633\u0649",\uFD18:"\u0633\u0649",\uFCFC:"\u0633\u0649",\uFD19:"\u0633\u06DB\u0649",\uFCFD:"\u0633\u06DB\u0649",\uFD1A:"\u0633\u06DB\u0649",\uFCFE:"\u0633\u06DB\u0649","\u{102F2}":"\u0635","\u{1EE11}":"\u0635","\u{1EE31}":"\u0635","\u{1EE51}":"\u0635","\u{1EE71}":"\u0635","\u{1EE91}":"\u0635","\u{1EEB1}":"\u0635",\uFEBB:"\u0635",\uFEBC:"\u0635",\uFEBA:"\u0635",\uFEB9:"\u0635",\u069E:"\u0635\u06DB","\u08AF":"\u0635\u0324\u0323",\uFCB1:"\u0635\u062D",\uFC20:"\u0635\u062D",\uFD65:"\u0635\u062D\u062D",\uFD64:"\u0635\u062D\u062D",\uFDA9:"\u0635\u062D\u0649",\uFCB2:"\u0635\u062E",\uFD2B:"\u0635\u0631",\uFD0F:"\u0635\u0631",\uFDF5:"\u0635\u0644\u0639\u0645",\uFDF9:"\u0635\u0644\u0649",\uFDF0:"\u0635\u0644\u0649",\uFDFA:"\u0635\u0644\u0649 l\u0644\u0644o \u0639\u0644\u0649o \u0648\u0633\u0644\u0645",\uFCB3:"\u0635\u0645",\uFC21:"\u0635\u0645",\uFDC5:"\u0635\u0645\u0645",\uFD66:"\u0635\u0645\u0645",\uFD21:"\u0635\u0649",\uFD05:"\u0635\u0649",\uFD22:"\u0635\u0649",\uFD06:"\u0635\u0649","\u{1EE19}":"\u0636","\u{1EE39}":"\u0636","\u{1EE59}":"\u0636","\u{1EE79}":"\u0636","\u{1EE99}":"\u0636","\u{1EEB9}":"\u0636",\uFEBF:"\u0636",\uFEC0:"\u0636",\uFEBE:"\u0636",\uFEBD:"\u0636",\uFCB4:"\u0636\u062C",\uFC22:"\u0636\u062C",\uFCB5:"\u0636\u062D",\uFC23:"\u0636\u062D",\uFD6E:"\u0636\u062D\u0649",\uFDAB:"\u0636\u062D\u0649",\uFCB6:"\u0636\u062E",\uFC24:"\u0636\u062E",\uFD70:"\u0636\u062E\u0645",\uFD6F:"\u0636\u062E\u0645",\uFD2C:"\u0636\u0631",\uFD10:"\u0636\u0631",\uFCB7:"\u0636\u0645",\uFC25:"\u0636\u0645",\uFD23:"\u0636\u0649",\uFD07:"\u0636\u0649",\uFD24:"\u0636\u0649",\uFD08:"\u0636\u0649","\u{102E8}":"\u0637","\u{1EE08}":"\u0637","\u{1EE68}":"\u0637","\u{1EE88}":"\u0637","\u{1EEA8}":"\u0637",\uFEC3:"\u0637",\uFEC4:"\u0637",\uFEC2:"\u0637",\uFEC1:"\u0637",\u069F:"\u0637\u06DB",\uFCB8:"\u0637\u062D",\uFC26:"\u0637\u062D",\uFD33:"\u0637\u0645",\uFD3A:"\u0637\u0645",\uFC27:"\u0637\u0645",\uFD72:"\u0637\u0645\u062D",\uFD71:"\u0637\u0645\u062D",\uFD73:"\u0637\u0645\u0645",\uFD74:"\u0637\u0645\u0649",\uFD11:"\u0637\u0649",\uFCF5:"\u0637\u0649",\uFD12:"\u0637\u0649",\uFCF6:"\u0637\u0649","\u{1EE1A}":"\u0638","\u{1EE7A}":"\u0638","\u{1EE9A}":"\u0638","\u{1EEBA}":"\u0638",\uFEC7:"\u0638",\uFEC8:"\u0638",\uFEC6:"\u0638",\uFEC5:"\u0638",\uFCB9:"\u0638\u0645",\uFD3B:"\u0638\u0645",\uFC28:"\u0638\u0645","\u060F":"\u0639","\u{1EE0F}":"\u0639","\u{1EE2F}":"\u0639","\u{1EE4F}":"\u0639","\u{1EE6F}":"\u0639","\u{1EE8F}":"\u0639","\u{1EEAF}":"\u0639",\uFECB:"\u0639",\uFECC:"\u0639",\uFECA:"\u0639",\uFEC9:"\u0639",\uFCBA:"\u0639\u062C",\uFC29:"\u0639\u062C",\uFDC4:"\u0639\u062C\u0645",\uFD75:"\u0639\u062C\u0645",\uFDF7:"\u0639\u0644\u0649o",\uFCBB:"\u0639\u0645",\uFC2A:"\u0639\u0645",\uFD77:"\u0639\u0645\u0645",\uFD76:"\u0639\u0645\u0645",\uFD78:"\u0639\u0645\u0649",\uFDB6:"\u0639\u0645\u0649",\uFD13:"\u0639\u0649",\uFCF7:"\u0639\u0649",\uFD14:"\u0639\u0649",\uFCF8:"\u0639\u0649","\u{1EE1B}":"\u063A","\u{1EE3B}":"\u063A","\u{1EE5B}":"\u063A","\u{1EE7B}":"\u063A","\u{1EE9B}":"\u063A","\u{1EEBB}":"\u063A",\uFECF:"\u063A",\uFED0:"\u063A",\uFECE:"\u063A",\uFECD:"\u063A",\uFCBC:"\u063A\u062C",\uFC2B:"\u063A\u062C",\uFCBD:"\u063A\u0645",\uFC2C:"\u063A\u0645",\uFD79:"\u063A\u0645\u0645",\uFD7B:"\u063A\u0645\u0649",\uFD7A:"\u063A\u0645\u0649",\uFD15:"\u063A\u0649",\uFCF9:"\u063A\u0649",\uFD16:"\u063A\u0649",\uFCFA:"\u063A\u0649","\u{1EE10}":"\u0641","\u{1EE30}":"\u0641","\u{1EE70}":"\u0641","\u{1EE90}":"\u0641","\u{1EEB0}":"\u0641",\uFED3:"\u0641",\uFED4:"\u0641",\uFED2:"\u0641",\uFED1:"\u0641",\u06A7:"\u0641",\uFCBE:"\u0641\u062C",\uFC2D:"\u0641\u062C",\uFCBF:"\u0641\u062D",\uFC2E:"\u0641\u062D",\uFCC0:"\u0641\u062E",\uFC2F:"\u0641\u062E",\uFD7D:"\u0641\u062E\u0645",\uFD7C:"\u0641\u062E\u0645",\uFCC1:"\u0641\u0645",\uFC30:"\u0641\u0645",\uFDC1:"\u0641\u0645\u0649",\uFC7C:"\u0641\u0649",\uFC31:"\u0641\u0649",\uFC7D:"\u0641\u0649",\uFC32:"\u0641\u0649","\u{1EE1E}":"\u06A1","\u{1EE7E}":"\u06A1","\u08BB":"\u06A1","\u066F":"\u06A1","\u{1EE1F}":"\u06A1","\u{1EE5F}":"\u06A1","\u08BC":"\u06A1",\u06A4:"\u06A1\u06DB",\uFB6C:"\u06A1\u06DB",\uFB6D:"\u06A1\u06DB",\uFB6B:"\u06A1\u06DB",\uFB6A:"\u06A1\u06DB",\u06A8:"\u06A1\u06DB","\u08A4":"\u06A2\u06DB",\uFB70:"\u06A6",\uFB71:"\u06A6",\uFB6F:"\u06A6",\uFB6E:"\u06A6","\u{1EE12}":"\u0642","\u{1EE32}":"\u0642","\u{1EE52}":"\u0642","\u{1EE72}":"\u0642","\u{1EE92}":"\u0642","\u{1EEB2}":"\u0642",\uFED7:"\u0642",\uFED8:"\u0642",\uFED6:"\u0642",\uFED5:"\u0642",\uFCC2:"\u0642\u062D",\uFC33:"\u0642\u062D",\uFDF1:"\u0642\u0644\u0649",\uFCC3:"\u0642\u0645",\uFC34:"\u0642\u0645",\uFDB4:"\u0642\u0645\u062D",\uFD7E:"\u0642\u0645\u062D",\uFD7F:"\u0642\u0645\u0645",\uFDB2:"\u0642\u0645\u0649",\uFC7E:"\u0642\u0649",\uFC35:"\u0642\u0649",\uFC7F:"\u0642\u0649",\uFC36:"\u0642\u0649","\u{1EE0A}":"\u0643","\u{1EE2A}":"\u0643","\u{1EE6A}":"\u0643",\uFEDB:"\u0643",\uFEDC:"\u0643",\uFEDA:"\u0643",\uFED9:"\u0643",\u06A9:"\u0643",\uFB90:"\u0643",\uFB91:"\u0643",\uFB8F:"\u0643",\uFB8E:"\u0643",\u06AA:"\u0643",\u06AD:"\u0643\u06DB",\uFBD5:"\u0643\u06DB",\uFBD6:"\u0643\u06DB",\uFBD4:"\u0643\u06DB",\uFBD3:"\u0643\u06DB","\u0763":"\u0643\u06DB",\uFC80:"\u0643l",\uFC37:"\u0643l",\uFCC4:"\u0643\u062C",\uFC38:"\u0643\u062C",\uFCC5:"\u0643\u062D",\uFC39:"\u0643\u062D",\uFCC6:"\u0643\u062E",\uFC3A:"\u0643\u062E",\uFCC7:"\u0643\u0644",\uFCEB:"\u0643\u0644",\uFC81:"\u0643\u0644",\uFC3B:"\u0643\u0644",\uFCC8:"\u0643\u0645",\uFCEC:"\u0643\u0645",\uFC82:"\u0643\u0645",\uFC3C:"\u0643\u0645",\uFDC3:"\u0643\u0645\u0645",\uFDBB:"\u0643\u0645\u0645",\uFDB7:"\u0643\u0645\u0649",\uFC83:"\u0643\u0649",\uFC3D:"\u0643\u0649",\uFC84:"\u0643\u0649",\uFC3E:"\u0643\u0649","\u0762":"\u06AC",\uFB94:"\u06AF",\uFB95:"\u06AF",\uFB93:"\u06AF",\uFB92:"\u06AF","\u08B0":"\u06AF",\u06B4:"\u06AF\u06DB",\uFB9C:"\u06B1",\uFB9D:"\u06B1",\uFB9B:"\u06B1",\uFB9A:"\u06B1",\uFB98:"\u06B3",\uFB99:"\u06B3",\uFB97:"\u06B3",\uFB96:"\u06B3","\u{1EE0B}":"\u0644","\u{1EE2B}":"\u0644","\u{1EE4B}":"\u0644","\u{1EE8B}":"\u0644","\u{1EEAB}":"\u0644",\uFEDF:"\u0644",\uFEE0:"\u0644",\uFEDE:"\u0644",\uFEDD:"\u0644",\u06B7:"\u0644\u06DB",\u06B5:"\u0644\u0306",\uFEFC:"\u0644l",\uFEFB:"\u0644l",\uFEFA:"\u0644l\u0655",\uFEF9:"\u0644l\u0655",\uFEF8:"\u0644l\u0674",\uFEF7:"\u0644l\u0674",\uFCCD:"\u0644o",\uFEF6:"\u0644\u0622",\uFEF5:"\u0644\u0622",\uFCC9:"\u0644\u062C",\uFC3F:"\u0644\u062C",\uFD83:"\u0644\u062C\u062C",\uFD84:"\u0644\u062C\u062C",\uFDBA:"\u0644\u062C\u0645",\uFDBC:"\u0644\u062C\u0645",\uFDAC:"\u0644\u062C\u0649",\uFCCA:"\u0644\u062D",\uFC40:"\u0644\u062D",\uFDB5:"\u0644\u062D\u0645",\uFD80:"\u0644\u062D\u0645",\uFD82:"\u0644\u062D\u0649",\uFD81:"\u0644\u062D\u0649",\uFCCB:"\u0644\u062E",\uFC41:"\u0644\u062E",\uFD86:"\u0644\u062E\u0645",\uFD85:"\u0644\u062E\u0645",\uFCCC:"\u0644\u0645",\uFCED:"\u0644\u0645",\uFC85:"\u0644\u0645",\uFC42:"\u0644\u0645",\uFD88:"\u0644\u0645\u062D",\uFD87:"\u0644\u0645\u062D",\uFDAD:"\u0644\u0645\u0649",\uFC86:"\u0644\u0649",\uFC43:"\u0644\u0649",\uFC87:"\u0644\u0649",\uFC44:"\u0644\u0649","\u{1EE0C}":"\u0645","\u{1EE2C}":"\u0645","\u{1EE6C}":"\u0645","\u{1EE8C}":"\u0645","\u{1EEAC}":"\u0645",\uFEE3:"\u0645",\uFEE4:"\u0645",\uFEE2:"\u0645",\uFEE1:"\u0645","\u08A7":"\u0645\u06DB","\u06FE":"\u0645\u0348",\uFC88:"\u0645l",\uFCCE:"\u0645\u062C",\uFC45:"\u0645\u062C",\uFD8C:"\u0645\u062C\u062D",\uFD92:"\u0645\u062C\u062E",\uFD8D:"\u0645\u062C\u0645",\uFDC0:"\u0645\u062C\u0649",\uFCCF:"\u0645\u062D",\uFC46:"\u0645\u062D",\uFD89:"\u0645\u062D\u062C",\uFD8A:"\u0645\u062D\u0645",\uFDF4:"\u0645\u062D\u0645\u062F",\uFD8B:"\u0645\u062D\u0649",\uFCD0:"\u0645\u062E",\uFC47:"\u0645\u062E",\uFD8E:"\u0645\u062E\u062C",\uFD8F:"\u0645\u062E\u0645",\uFDB9:"\u0645\u062E\u0649",\uFCD1:"\u0645\u0645",\uFC89:"\u0645\u0645",\uFC48:"\u0645\u0645",\uFDB1:"\u0645\u0645\u0649",\uFC49:"\u0645\u0649",\uFC4A:"\u0645\u0649","\u{1EE0D}":"\u0646","\u{1EE2D}":"\u0646","\u{1EE4D}":"\u0646","\u{1EE6D}":"\u0646","\u{1EE8D}":"\u0646","\u{1EEAD}":"\u0646",\uFEE7:"\u0646",\uFEE8:"\u0646",\uFEE6:"\u0646",\uFEE5:"\u0646","\u0768":"\u0646\u0615","\u0769":"\u0646\u0306",\uFCD6:"\u0646o",\uFCEF:"\u0646o",\uFDB8:"\u0646\u062C\u062D",\uFDBD:"\u0646\u062C\u062D",\uFD98:"\u0646\u062C\u0645",\uFD97:"\u0646\u062C\u0645",\uFD99:"\u0646\u062C\u0649",\uFDC7:"\u0646\u062C\u0649",\uFCD3:"\u0646\u062D",\uFC4C:"\u0646\u062D",\uFD95:"\u0646\u062D\u0645",\uFD96:"\u0646\u062D\u0649",\uFDB3:"\u0646\u062D\u0649",\uFCD4:"\u0646\u062E",\uFC4D:"\u0646\u062E",\uFC8A:"\u0646\u0631",\uFC8B:"\u0646\u0632",\uFCD5:"\u0646\u0645",\uFCEE:"\u0646\u0645",\uFC8C:"\u0646\u0645",\uFC4E:"\u0646\u0645",\uFD9B:"\u0646\u0645\u0649",\uFD9A:"\u0646\u0645\u0649",\uFC8D:"\u0646\u0646",\uFC8E:"\u0646\u0649",\uFC4F:"\u0646\u0649",\uFC8F:"\u0646\u0649",\uFC50:"\u0646\u0649",\u06C2:"\u06C0",\uFBA5:"\u06C0",\uFBA4:"\u06C0","\u{102E4}":"\u0648","\u{1EE05}":"\u0648","\u{1EE85}":"\u0648","\u{1EEA5}":"\u0648",\uFEEE:"\u0648",\uFEED:"\u0648","\u08B1":"\u0648",\u06CB:"\u0648\u06DB",\uFBDF:"\u0648\u06DB",\uFBDE:"\u0648\u06DB",\u06C7:"\u0648\u0313",\uFBD8:"\u0648\u0313",\uFBD7:"\u0648\u0313",\u06C6:"\u0648\u0306",\uFBDA:"\u0648\u0306",\uFBD9:"\u0648\u0306",\u06C9:"\u0648\u0302",\uFBE3:"\u0648\u0302",\uFBE2:"\u0648\u0302",\u06C8:"\u0648\u0670",\uFBDC:"\u0648\u0670",\uFBDB:"\u0648\u0670",\u0624:"\u0648\u0674",\uFE86:"\u0648\u0674",\uFE85:"\u0648\u0674",\u0676:"\u0648\u0674",\u0677:"\u0648\u0313\u0674",\uFBDD:"\u0648\u0313\u0674",\uFDF8:"\u0648\u0633\u0644\u0645",\uFBE1:"\u06C5",\uFBE0:"\u06C5","\u066E":"\u0649","\u{1EE1C}":"\u0649","\u{1EE7C}":"\u0649",\u06BA:"\u0649","\u{1EE1D}":"\u0649","\u{1EE5D}":"\u0649",\uFB9F:"\u0649",\uFB9E:"\u0649","\u08BD":"\u0649",\uFBE8:"\u0649",\uFBE9:"\u0649",\uFEF0:"\u0649",\uFEEF:"\u0649",\u064A:"\u0649","\u{1EE09}":"\u0649","\u{1EE29}":"\u0649","\u{1EE49}":"\u0649","\u{1EE69}":"\u0649","\u{1EE89}":"\u0649","\u{1EEA9}":"\u0649",\uFEF3:"\u0649",\uFEF4:"\u0649",\uFEF2:"\u0649",\uFEF1:"\u0649",\u06CC:"\u0649",\uFBFE:"\u0649",\uFBFF:"\u0649",\uFBFD:"\u0649",\uFBFC:"\u0649",\u06D2:"\u0649",\uFBAF:"\u0649",\uFBAE:"\u0649",\u0679:"\u0649\u0615",\uFB68:"\u0649\u0615",\uFB69:"\u0649\u0615",\uFB67:"\u0649\u0615",\uFB66:"\u0649\u0615",\u06BB:"\u0649\u0615",\uFBA2:"\u0649\u0615",\uFBA3:"\u0649\u0615",\uFBA1:"\u0649\u0615",\uFBA0:"\u0649\u0615",\u067E:"\u0649\u06DB",\uFB58:"\u0649\u06DB",\uFB59:"\u0649\u06DB",\uFB57:"\u0649\u06DB",\uFB56:"\u0649\u06DB",\u062B:"\u0649\u06DB","\u{1EE16}":"\u0649\u06DB","\u{1EE36}":"\u0649\u06DB","\u{1EE76}":"\u0649\u06DB","\u{1EE96}":"\u0649\u06DB","\u{1EEB6}":"\u0649\u06DB",\uFE9B:"\u0649\u06DB",\uFE9C:"\u0649\u06DB",\uFE9A:"\u0649\u06DB",\uFE99:"\u0649\u06DB",\u06BD:"\u0649\u06DB",\u06D1:"\u0649\u06DB","\u063F":"\u0649\u06DB","\u08B7":"\u0649\u06DB\u06E2","\u0756":"\u0649\u0306",\u06CE:"\u0649\u0306","\u08BA":"\u0649\u0306\u0307","\u063D":"\u0649\u0302","\u08A8":"\u0649\u0654",\uFC90:"\u0649\u0670",\uFC5D:"\u0649\u0670",\uFCDE:"\u0649o",\uFCF1:"\u0649o",\uFCE6:"\u0649\u06DBo",\u0626:"\u0649\u0674",\uFE8B:"\u0649\u0674",\uFE8C:"\u0649\u0674",\uFE8A:"\u0649\u0674",\uFE89:"\u0649\u0674",\u0678:"\u0649\u0674",\uFBEB:"\u0649\u0674l",\uFBEA:"\u0649\u0674l",\uFC9B:"\u0649\u0674o",\uFCE0:"\u0649\u0674o",\uFBED:"\u0649\u0674o",\uFBEC:"\u0649\u0674o",\uFBF8:"\u0649\u0674\u067B",\uFBF7:"\u0649\u0674\u067B",\uFBF6:"\u0649\u0674\u067B",\uFC97:"\u0649\u0674\u062C",\uFC00:"\u0649\u0674\u062C",\uFC98:"\u0649\u0674\u062D",\uFC01:"\u0649\u0674\u062D",\uFC99:"\u0649\u0674\u062E",\uFC64:"\u0649\u0674\u0631",\uFC65:"\u0649\u0674\u0632",\uFC9A:"\u0649\u0674\u0645",\uFCDF:"\u0649\u0674\u0645",\uFC66:"\u0649\u0674\u0645",\uFC02:"\u0649\u0674\u0645",\uFC67:"\u0649\u0674\u0646",\uFBEF:"\u0649\u0674\u0648",\uFBEE:"\u0649\u0674\u0648",\uFBF1:"\u0649\u0674\u0648\u0313",\uFBF0:"\u0649\u0674\u0648\u0313",\uFBF3:"\u0649\u0674\u0648\u0306",\uFBF2:"\u0649\u0674\u0648\u0306",\uFBF5:"\u0649\u0674\u0648\u0670",\uFBF4:"\u0649\u0674\u0648\u0670",\uFBFB:"\u0649\u0674\u0649",\uFBFA:"\u0649\u0674\u0649",\uFC68:"\u0649\u0674\u0649",\uFBF9:"\u0649\u0674\u0649",\uFC03:"\u0649\u0674\u0649",\uFC69:"\u0649\u0674\u0649",\uFC04:"\u0649\u0674\u0649",\uFCDA:"\u0649\u062C",\uFC55:"\u0649\u062C",\uFC11:"\u0649\u06DB\u062C",\uFDAF:"\u0649\u062C\u0649",\uFCDB:"\u0649\u062D",\uFC56:"\u0649\u062D",\uFDAE:"\u0649\u062D\u0649",\uFCDC:"\u0649\u062E",\uFC57:"\u0649\u062E",\uFC91:"\u0649\u0631",\uFC76:"\u0649\u06DB\u0631",\uFC92:"\u0649\u0632",\uFC77:"\u0649\u06DB\u0632",\uFCDD:"\u0649\u0645",\uFCF0:"\u0649\u0645",\uFC93:"\u0649\u0645",\uFC58:"\u0649\u0645",\uFCA6:"\u0649\u06DB\u0645",\uFCE5:"\u0649\u06DB\u0645",\uFC78:"\u0649\u06DB\u0645",\uFC12:"\u0649\u06DB\u0645",\uFD9D:"\u0649\u0645\u0645",\uFD9C:"\u0649\u0645\u0645",\uFDB0:"\u0649\u0645\u0649",\uFC94:"\u0649\u0646",\uFC79:"\u0649\u06DB\u0646",\uFC95:"\u0649\u0649",\uFC59:"\u0649\u0649",\uFC96:"\u0649\u0649",\uFC5A:"\u0649\u0649",\uFC7A:"\u0649\u06DB\u0649",\uFC13:"\u0649\u06DB\u0649",\uFC7B:"\u0649\u06DB\u0649",\uFC14:"\u0649\u06DB\u0649",\uFBB1:"\u06D3",\uFBB0:"\u06D3","\u{102B8}":"\u2D40","\u205E":"\u2D42","\u2E3D":"\u2D42","\u2999":"\u2D42","\uFE19":"\u2D57","\u205D":"\u2D57","\u22EE":"\u2D57",\u0544:"\u1206",\u054C:"\u1261",\u053B:"\u12AE",\u054A:"\u1323",\u0906:"\u0905\u093E",\u0912:"\u0905\u093E\u0946",\u0913:"\u0905\u093E\u0947",\u0914:"\u0905\u093E\u0948","\u0904":"\u0905\u0946",\u0911:"\u0905\u0949",\u090D:"\u090F\u0945",\u090E:"\u090F\u0946",\u0910:"\u090F\u0947",\u0908:"\u0930\u094D\u0907",\u0ABD:"\u093D","\u{111DC}":"\uA8FB","\u{111CB}":"\u093A","\u0AC1":"\u0941","\u0AC2":"\u0942","\u0A4B":"\u0946","\u0A4D":"\u094D","\u0ACD":"\u094D",\u0986:"\u0985\u09BE",\u09E0:"\u098B\u09C3",\u09E1:"\u098B\u09C3","\u{11492}":"\u0998","\u{11494}":"\u099A","\u{11496}":"\u099C","\u{11498}":"\u099E","\u{11499}":"\u099F","\u{1149B}":"\u09A1","\u{114AA}":"\u09A3","\u{1149E}":"\u09A4","\u{1149F}":"\u09A5","\u{114A0}":"\u09A6","\u{114A1}":"\u09A7","\u{114A2}":"\u09A8","\u{114A3}":"\u09AA","\u{114A9}":"\u09AC","\u{114A7}":"\u09AE","\u{114A8}":"\u09AF","\u{114AB}":"\u09B0","\u{1149D}":"\u09B2","\u{114AD}":"\u09B7","\u{114AE}":"\u09B8","\u{114C4}":"\u09BD","\u{114B0}":"\u09BE","\u{114B1}":"\u09BF","\u{114B9}":"\u09C7","\u{114BC}":"\u09CB","\u{114BE}":"\u09CC","\u{114C2}":"\u09CD","\u{114BD}":"\u09D7",\u0A09:"\u0A73\u0A41",\u0A0A:"\u0A73\u0A42",\u0A06:"\u0A05\u0A3E",\u0A10:"\u0A05\u0A48",\u0A14:"\u0A05\u0A4C",\u0A07:"\u0A72\u0A3F",\u0A08:"\u0A72\u0A40",\u0A0F:"\u0A72\u0A47",\u0A86:"\u0A85\u0ABE",\u0A91:"\u0A85\u0ABE\u0AC5",\u0A93:"\u0A85\u0ABE\u0AC7",\u0A94:"\u0A85\u0ABE\u0AC8",\u0A8D:"\u0A85\u0AC5",\u0A8F:"\u0A85\u0AC7",\u0A90:"\u0A85\u0AC8",\u0B06:"\u0B05\u0B3E","\u0BEE":"\u0B85",\u0BB0:"\u0B88","\u0BBE":"\u0B88","\u0BEB":"\u0B88\u0BC1","\u0BE8":"\u0B89",\u0D09:"\u0B89",\u0B8A:"\u0B89\u0BB3",\u0D0A:"\u0B89\u0D57","\u0BED":"\u0B8E","\u0BF7":"\u0B8E\u0BB5",\u0B9C:"\u0B90",\u0D1C:"\u0B90","\u0BE7":"\u0B95","\u0BEA":"\u0B9A","\u0BEC":"\u0B9A\u0BC1","\u0BF2":"\u0B9A\u0BC2","\u0D3A":"\u0B9F\u0BBF",\u0D23:"\u0BA3","\u0BFA":"\u0BA8\u0BC0","\u0BF4":"\u0BAE\u0BC0","\u0BF0":"\u0BAF",\u0D34:"\u0BB4","\u0BD7":"\u0BB3","\u0BC8":"\u0BA9",\u0D36:"\u0BB6","\u0BF8":"\u0BB7","\u0D3F":"\u0BBF","\u0D40":"\u0BBF","\u0BCA":"\u0BC6\u0B88","\u0BCC":"\u0BC6\u0BB3","\u0BCB":"\u0BC7\u0B88",\u0C85:"\u0C05",\u0C86:"\u0C06",\u0C87:"\u0C07",\u0C60:"\u0C0B\u0C3E",\u0C61:"\u0C0C\u0C3E",\u0C92:"\u0C12",\u0C14:"\u0C12\u0C4C",\u0C94:"\u0C12\u0C4C",\u0C13:"\u0C12\u0C55",\u0C93:"\u0C12\u0C55",\u0C9C:"\u0C1C",\u0C9E:"\u0C1E",\u0C22:"\u0C21\u0323",\u0CA3:"\u0C23",\u0C25:"\u0C27\u05BC",\u0C2D:"\u0C2C\u0323",\u0CAF:"\u0C2F",\u0C20:"\u0C30\u05BC",\u0CB1:"\u0C31",\u0CB2:"\u0C32",\u0C37:"\u0C35\u0323",\u0C39:"\u0C35\u0C3E",\u0C2E:"\u0C35\u0C41","\u0C42":"\u0C41\u0C3E","\u0C44":"\u0C43\u0C3E",\u0CE1:"\u0C8C\u0CBE",\u0D08:"\u0D07\u0D57",\u0D10:"\u0D0E\u0D46",\u0D13:"\u0D12\u0D3E",\u0D14:"\u0D12\u0D57",\u0D61:"\u0D1E","\u0D6B":"\u0D26\u0D4D\u0D30","\u0D79":"\u0D28\u0D41",\u0D0C:"\u0D28\u0D41",\u0D19:"\u0D28\u0D41","\u0D6F":"\u0D28\u0D4D","\u0D7B":"\u0D28\u0D4D","\u0D6C":"\u0D28\u0D4D\u0D28","\u0D5A":"\u0D28\u0D4D\u0D2E",\u0D31:"\u0D30","\u0D6A":"\u0D30\u0D4D","\u0D7C":"\u0D30\u0D4D","\u0D6E":"\u0D35\u0D4D\u0D30","\u0D76":"\u0D39\u0D4D\u0D2E","\u0D42":"\u0D41","\u0D43":"\u0D41","\u0D48":"\u0D46\u0D46","\u0DEA":"\u0DA2","\u0DEB":"\u0DAF","\u{11413}":"\u{11434}\u{11442}\u{11412}","\u{11419}":"\u{11434}\u{11442}\u{11418}","\u{11424}":"\u{11434}\u{11442}\u{11423}","\u{1142A}":"\u{11434}\u{11442}\u{11429}","\u{1142D}":"\u{11434}\u{11442}\u{1142C}","\u{1142F}":"\u{11434}\u{11442}\u{1142E}","\u{115D8}":"\u{11582}","\u{115D9}":"\u{11582}","\u{115DA}":"\u{11583}","\u{115DB}":"\u{11584}","\u{115DC}":"\u{115B2}","\u{115DD}":"\u{115B3}",\u0E03:"\u0E02",\u0E14:"\u0E04",\u0E15:"\u0E04",\u0E21:"\u0E06",\u0E88:"\u0E08",\u0E0B:"\u0E0A",\u0E0F:"\u0E0E",\u0E17:"\u0E11",\u0E9A:"\u0E1A",\u0E9B:"\u0E1B",\u0E9D:"\u0E1D",\u0E9E:"\u0E1E",\u0E9F:"\u0E1F",\u0E26:"\u0E20",\u0E8D:"\u0E22","\u17D4":"\u0E2F",\u0E45:"\u0E32",\u0E33:"\u030A\u0E32","\u17B7":"\u0E34","\u17B8":"\u0E35","\u17B9":"\u0E36","\u17BA":"\u0E37","\u0EB8":"\u0E38","\u0EB9":"\u0E39",\u0E41:"\u0E40\u0E40",\u0EDC:"\u0EAB\u0E99",\u0EDD:"\u0EAB\u0EA1",\u0EB3:"\u030A\u0EB2","\u0F02":"\u0F60\u0F74\u0F82\u0F7F","\u0F03":"\u0F60\u0F74\u0F82\u0F14",\u0F6A:"\u0F62",\u0F00:"\u0F68\u0F7C\u0F7E","\u0F77":"\u0FB2\u0F71\u0F80","\u0F79":"\u0FB3\u0F71\u0F80","\u{11CB2}":"\u{11CAA}","\u1081":"\u1002\u103E",\u1000:"\u1002\u102C","\u1070":"\u1003\u103E","\u1066":"\u1015\u103E",\u101F:"\u1015\u102C","\u106F":"\u1015\u102C\u103E","\u107E":"\u107D\u103E",\u1029:"\u101E\u103C",\u102A:"\u101E\u103C\u1031\u102C\u103A","\u109E":"\u1083\u030A",\u17A3:"\u17A2","\u19D0":"\u199E","\u19D1":"\u19B1","\u1A80":"\u1A45","\u1A90":"\u1A45","\uAA53":"\uAA01","\uAA56":"\uAA23","\u1B52":"\u1B0D","\u1B53":"\u1B11","\u1B58":"\u1B28","\uA9A3":"\uA99D",\u1896:"\u185C",\u1855:"\u1835",\u1FF6:"\u13EF",\u140D:"\u1401\xB7",\u142B:"\u1401\u1420",\u1411:"\u1404\xB7",\u1413:"\u1405\xB7",\u142D:"\u1405\u1420",\u1415:"\u1406\xB7",\u1418:"\u140A\xB7",\u142E:"\u140A\u1420",\u141A:"\u140B\xB7","\u18DD":"\u141E\u18DF",\u14D1:"\u1421",\u1540:"\u1429",\u143F:"\u1432\xB7",\u1443:"\u1434\xB7","\u2369":"\u1435",\u1447:"\u1439\xB7",\u145C:"\u144F\xB7","\u2E27":"\u1450","\u2283":"\u1450",\u145E:"\u1450\xB7",\u1469:"\u1450'","\u27C9":"\u1450/","\u2AD7":"\u1450\u1455",\u1460:"\u1451\xB7","\u2E26":"\u1455","\u2282":"\u1455",\u1462:"\u1455\xB7",\u146A:"\u1455'",\u1464:"\u1456\xB7",\u1475:"\u146B\xB7",\u1485:"\u146B'",\u1479:"\u146E\xB7",\u147D:"\u1470\xB7",\u1603:"\u1489",\u1493:"\u1489\xB7",\u1495:"\u148B\xB7",\u1497:"\u148C\xB7",\u149B:"\u148E\xB7",\u1602:"\u1490",\u149D:"\u1490\xB7",\u149F:"\u1491\xB7",\u14AD:"\u14A3\xB7",\u14B1:"\u14A6\xB7",\u14B3:"\u14A7\xB7",\u14B5:"\u14A8\xB7",\u14B9:"\u14AB\xB7",\u14CA:"\u14C0\xB7","\u18C7":"\u14C2\xB7","\u18C9":"\u14C3\xB7","\u18CB":"\u14C4\xB7","\u18CD":"\u14C5\xB7",\u14CC:"\u14C7\xB7",\u14CE:"\u14C8\xB7",\u1604:"\u14D3",\u14DD:"\u14D3\xB7",\u14DF:"\u14D5\xB7",\u14E1:"\u14D6\xB7",\u14E3:"\u14D7\xB7",\u14E5:"\u14D8\xB7",\u1607:"\u14DA",\u14E7:"\u14DA\xB7",\u14E9:"\u14DB\xB7",\u14F7:"\u14ED\xB7",\u14F9:"\u14EF\xB7",\u14FB:"\u14F0\xB7",\u14FD:"\u14F1\xB7",\u14FF:"\u14F2\xB7",\u1501:"\u14F4\xB7",\u1503:"\u14F5\xB7",\u150C:"\u150B<",\u150E:"\u150Bb",\u150D:"\u150B\u1455",\u150F:"\u150B\u1490",\u1518:"\u1510\xB7",\u151A:"\u1511\xB7",\u151C:"\u1512\xB7",\u151E:"\u1513\xB7",\u1520:"\u1514\xB7",\u1522:"\u1515\xB7",\u1524:"\u1516\xB7",\u1532:"\u1528\xB7",\u1534:"\u1529\xB7",\u1536:"\u152A\xB7",\u1538:"\u152B\xB7",\u153A:"\u152D\xB7",\u153C:"\u152E\xB7",\u1622:"\u1543","\u18E0":"\u1543\xB7",\u1623:"\u1546",\u1624:"\u154A",\u154F:"\u154C\xB7",\u1583:"\u1550b",\u1584:"\u1550b\u0307",\u1581:"\u1550d",\u157F:"\u1550P",\u166F:"\u1550\u146B",\u157E:"\u1550\u146C",\u1580:"\u1550\u146E",\u1582:"\u1550\u1470",\u1585:"\u1550\u1483",\u155C:"\u155A\xB7","\u18E3":"\u155E\xB7","\u18E4":"\u1566\xB7",\u1569:"\u1567\xB7","\u18E5":"\u156B\xB7","\u18E8":"\u1586\xB7",\u1591:"\u1595J",\u1670:"\u1595\u1489",\u158E:"\u1595\u148A",\u158F:"\u1595\u148B",\u1590:"\u1595\u148C",\u1592:"\u1595\u148E",\u1593:"\u1595\u1490",\u1594:"\u1595\u1491",\u1673:"\u1596J",\u1671:"\u1596\u148B",\u1672:"\u1596\u148C",\u1674:"\u1596\u148E",\u1675:"\u1596\u1490",\u1676:"\u1596\u1491","\u18EA":"\u1597\xB7","\u1677":"\u15A7\xB7","\u1678":"\u15A8\xB7","\u1679":"\u15A9\xB7","\u167A":"\u15AA\xB7","\u167B":"\u15AB\xB7","\u167C":"\u15AC\xB7","\u167D":"\u15AD\xB7","\u2AAB":"\u15D2","\u2AAA":"\u15D5","\uA4F7":"\u15E1","\u18F0":"\u15F4\xB7","\u18F2":"\u161B\xB7","\u1DBB":"\u1646","\uA4ED":"\u1660","\u1DBA":"\u18D4","\u1D3E":"\u18D6","\u18DC":"\u18DF\u141E",\u02E1:"\u18F3",\u02B3:"\u18F4",\u02E2:"\u18F5","\u18DB":"\u18F5","\uA6B0":"\u16B9",\u16E1:"\u16BC","\u237F":"\u16BD",\u16C2:"\u16BD","\u{1D23F}":"\u16CB","\u2191":"\u16CF","\u21BF":"\u16D0","\u296E":"\u16D0\u21C2","\u2963":"\u16D0\u16DA","\u2D63":"\u16EF","\u21BE":"\u16DA","\u2A21":"\u16DA","\u22C4":"\u16DC","\u25C7":"\u16DC","\u25CA":"\u16DC","\u2662":"\u16DC","\u{1F754}":"\u16DC","\u{118B7}":"\u16DC","\u{10294}":"\u16DC","\u235A":"\u16DC\u0332","\u22C8":"\u16DE","\u2A1D":"\u16DE","\u{104D0}":"\u16E6","\u2195":"\u16E8","\u{10CFC}":"\u{10C82}","\u{10CFA}":"\u{10CA5}",\u3131:"\u1100",\u11A8:"\u1100",\u1101:"\u1100\u1100",\u3132:"\u1100\u1100",\u11A9:"\u1100\u1100","\u11FA":"\u1100\u1102","\u115A":"\u1100\u1103",\u11C3:"\u1100\u1105","\u11FB":"\u1100\u1107",\u11AA:"\u1100\u1109",\u3133:"\u1100\u1109",\u11C4:"\u1100\u1109\u1100","\u11FC":"\u1100\u110E","\u11FD":"\u1100\u110F","\u11FE":"\u1100\u1112",\u3134:"\u1102",\u11AB:"\u1102",\u1113:"\u1102\u1100",\u11C5:"\u1102\u1100",\u1114:"\u1102\u1102",\u3165:"\u1102\u1102","\u11FF":"\u1102\u1102",\u1115:"\u1102\u1103",\u3166:"\u1102\u1103",\u11C6:"\u1102\u1103","\uD7CB":"\u1102\u1105",\u1116:"\u1102\u1107","\u115B":"\u1102\u1109",\u11C7:"\u1102\u1109",\u3167:"\u1102\u1109","\u115C":"\u1102\u110C",\u11AC:"\u1102\u110C",\u3135:"\u1102\u110C","\uD7CC":"\u1102\u110E",\u11C9:"\u1102\u1110","\u115D":"\u1102\u1112",\u11AD:"\u1102\u1112",\u3136:"\u1102\u1112",\u11C8:"\u1102\u1140",\u3168:"\u1102\u1140",\u3137:"\u1103",\u11AE:"\u1103",\u1117:"\u1103\u1100",\u11CA:"\u1103\u1100",\u1104:"\u1103\u1103",\u3138:"\u1103\u1103","\uD7CD":"\u1103\u1103","\uD7CE":"\u1103\u1103\u1107","\u115E":"\u1103\u1105",\u11CB:"\u1103\u1105","\uA960":"\u1103\u1106","\uA961":"\u1103\u1107","\uD7CF":"\u1103\u1107","\uA962":"\u1103\u1109","\uD7D0":"\u1103\u1109","\uD7D1":"\u1103\u1109\u1100","\uA963":"\u1103\u110C","\uD7D2":"\u1103\u110C","\uD7D3":"\u1103\u110E","\uD7D4":"\u1103\u1110",\u3139:"\u1105",\u11AF:"\u1105","\uA964":"\u1105\u1100",\u11B0:"\u1105\u1100",\u313A:"\u1105\u1100","\uA965":"\u1105\u1100\u1100","\uD7D5":"\u1105\u1100\u1100",\u11CC:"\u1105\u1100\u1109",\u3169:"\u1105\u1100\u1109","\uD7D6":"\u1105\u1100\u1112",\u1118:"\u1105\u1102",\u11CD:"\u1105\u1102","\uA966":"\u1105\u1103",\u11CE:"\u1105\u1103",\u316A:"\u1105\u1103","\uA967":"\u1105\u1103\u1103",\u11CF:"\u1105\u1103\u1112",\u1119:"\u1105\u1105",\u11D0:"\u1105\u1105","\uD7D7":"\u1105\u1105\u110F","\uA968":"\u1105\u1106",\u11B1:"\u1105\u1106",\u313B:"\u1105\u1106",\u11D1:"\u1105\u1106\u1100",\u11D2:"\u1105\u1106\u1109","\uD7D8":"\u1105\u1106\u1112","\uA969":"\u1105\u1107",\u11B2:"\u1105\u1107",\u313C:"\u1105\u1107","\uD7D9":"\u1105\u1107\u1103","\uA96A":"\u1105\u1107\u1107",\u11D3:"\u1105\u1107\u1109",\u316B:"\u1105\u1107\u1109","\uA96B":"\u1105\u1107\u110B",\u11D5:"\u1105\u1107\u110B","\uD7DA":"\u1105\u1107\u1111",\u11D4:"\u1105\u1107\u1112","\uA96C":"\u1105\u1109",\u11B3:"\u1105\u1109",\u313D:"\u1105\u1109",\u11D6:"\u1105\u1109\u1109",\u111B:"\u1105\u110B","\uD7DD":"\u1105\u110B","\uA96D":"\u1105\u110C","\uA96E":"\u1105\u110F",\u11D8:"\u1105\u110F",\u11B4:"\u1105\u1110",\u313E:"\u1105\u1110",\u11B5:"\u1105\u1111",\u313F:"\u1105\u1111",\u111A:"\u1105\u1112",\u3140:"\u1105\u1112",\u113B:"\u1105\u1112",\u11B6:"\u1105\u1112","\uD7F2":"\u1105\u1112",\u11D7:"\u1105\u1140",\u316C:"\u1105\u1140","\uD7DB":"\u1105\u114C",\u11D9:"\u1105\u1159",\u316D:"\u1105\u1159","\uD7DC":"\u1105\u1159\u1112",\u3141:"\u1106",\u11B7:"\u1106","\uA96F":"\u1106\u1100",\u11DA:"\u1106\u1100","\uD7DE":"\u1106\u1102","\uD7DF":"\u1106\u1102\u1102","\uA970":"\u1106\u1103",\u11DB:"\u1106\u1105","\uD7E0":"\u1106\u1106",\u111C:"\u1106\u1107",\u316E:"\u1106\u1107",\u11DC:"\u1106\u1107","\uD7E1":"\u1106\u1107\u1109","\uA971":"\u1106\u1109",\u11DD:"\u1106\u1109",\u316F:"\u1106\u1109",\u11DE:"\u1106\u1109\u1109",\u111D:"\u1106\u110B",\u3171:"\u1106\u110B",\u11E2:"\u1106\u110B","\uD7E2":"\u1106\u110C",\u11E0:"\u1106\u110E",\u11E1:"\u1106\u1112",\u11DF:"\u1106\u1140",\u3170:"\u1106\u1140",\u3142:"\u1107",\u11B8:"\u1107",\u111E:"\u1107\u1100",\u3172:"\u1107\u1100",\u111F:"\u1107\u1102",\u1120:"\u1107\u1103",\u3173:"\u1107\u1103","\uD7E3":"\u1107\u1103",\u11E3:"\u1107\u1105","\uD7E4":"\u1107\u1105\u1111","\uD7E5":"\u1107\u1106",\u1108:"\u1107\u1107",\u3143:"\u1107\u1107","\uD7E6":"\u1107\u1107",\u112C:"\u1107\u1107\u110B",\u3179:"\u1107\u1107\u110B",\u1121:"\u1107\u1109",\u3144:"\u1107\u1109",\u11B9:"\u1107\u1109",\u1122:"\u1107\u1109\u1100",\u3174:"\u1107\u1109\u1100",\u1123:"\u1107\u1109\u1103",\u3175:"\u1107\u1109\u1103","\uD7E7":"\u1107\u1109\u1103",\u1124:"\u1107\u1109\u1107",\u1125:"\u1107\u1109\u1109",\u1126:"\u1107\u1109\u110C","\uA972":"\u1107\u1109\u1110",\u112B:"\u1107\u110B",\u3178:"\u1107\u110B",\u11E6:"\u1107\u110B",\u1127:"\u1107\u110C",\u3176:"\u1107\u110C","\uD7E8":"\u1107\u110C",\u1128:"\u1107\u110E","\uD7E9":"\u1107\u110E","\uA973":"\u1107\u110F",\u1129:"\u1107\u1110",\u3177:"\u1107\u1110",\u112A:"\u1107\u1111",\u11E4:"\u1107\u1111","\uA974":"\u1107\u1112",\u11E5:"\u1107\u1112",\u3145:"\u1109",\u11BA:"\u1109",\u112D:"\u1109\u1100",\u317A:"\u1109\u1100",\u11E7:"\u1109\u1100",\u112E:"\u1109\u1102",\u317B:"\u1109\u1102",\u112F:"\u1109\u1103",\u317C:"\u1109\u1103",\u11E8:"\u1109\u1103",\u1130:"\u1109\u1105",\u11E9:"\u1109\u1105",\u1131:"\u1109\u1106","\uD7EA":"\u1109\u1106",\u1132:"\u1109\u1107",\u317D:"\u1109\u1107",\u11EA:"\u1109\u1107",\u1133:"\u1109\u1107\u1100","\uD7EB":"\u1109\u1107\u110B",\u110A:"\u1109\u1109",\u3146:"\u1109\u1109",\u11BB:"\u1109\u1109","\uD7EC":"\u1109\u1109\u1100","\uD7ED":"\u1109\u1109\u1103","\uA975":"\u1109\u1109\u1107",\u1134:"\u1109\u1109\u1109",\u1135:"\u1109\u110B",\u1136:"\u1109\u110C",\u317E:"\u1109\u110C","\uD7EF":"\u1109\u110C",\u1137:"\u1109\u110E","\uD7F0":"\u1109\u110E",\u1138:"\u1109\u110F",\u1139:"\u1109\u1110","\uD7F1":"\u1109\u1110",\u113A:"\u1109\u1111","\uD7EE":"\u1109\u1140",\u3147:"\u110B",\u11BC:"\u110B",\u1141:"\u110B\u1100",\u11EC:"\u110B\u1100",\u11ED:"\u110B\u1100\u1100",\u1142:"\u110B\u1103","\uA976":"\u110B\u1105",\u1143:"\u110B\u1106",\u1144:"\u110B\u1107",\u1145:"\u110B\u1109",\u11F1:"\u110B\u1109",\u3182:"\u110B\u1109",\u1147:"\u110B\u110B",\u3180:"\u110B\u110B",\u11EE:"\u110B\u110B",\u1148:"\u110B\u110C",\u1149:"\u110B\u110E",\u11EF:"\u110B\u110F",\u114A:"\u110B\u1110",\u114B:"\u110B\u1111","\uA977":"\u110B\u1112",\u1146:"\u110B\u1140",\u11F2:"\u110B\u1140",\u3183:"\u110B\u1140",\u3148:"\u110C",\u11BD:"\u110C","\uD7F7":"\u110C\u1107","\uD7F8":"\u110C\u1107\u1107",\u114D:"\u110C\u110B",\u110D:"\u110C\u110C",\u3149:"\u110C\u110C","\uD7F9":"\u110C\u110C","\uA978":"\u110C\u110C\u1112",\u314A:"\u110E",\u11BE:"\u110E",\u1152:"\u110E\u110F",\u1153:"\u110E\u1112",\u314B:"\u110F",\u11BF:"\u110F",\u314C:"\u1110",\u11C0:"\u1110","\uA979":"\u1110\u1110",\u314D:"\u1111",\u11C1:"\u1111",\u1156:"\u1111\u1107",\u11F3:"\u1111\u1107","\uD7FA":"\u1111\u1109",\u1157:"\u1111\u110B",\u3184:"\u1111\u110B",\u11F4:"\u1111\u110B","\uD7FB":"\u1111\u1110","\uA97A":"\u1111\u1112",\u314E:"\u1112",\u11C2:"\u1112",\u11F5:"\u1112\u1102",\u11F6:"\u1112\u1105",\u11F7:"\u1112\u1106",\u11F8:"\u1112\u1107","\uA97B":"\u1112\u1109",\u1158:"\u1112\u1112",\u3185:"\u1112\u1112",\u113D:"\u113C\u113C",\u113F:"\u113E\u113E",\u317F:"\u1140",\u11EB:"\u1140","\uD7F3":"\u1140\u1107","\uD7F4":"\u1140\u1107\u110B",\u3181:"\u114C",\u11F0:"\u114C","\uD7F5":"\u114C\u1106","\uD7F6":"\u114C\u1112",\u114F:"\u114E\u114E",\u1151:"\u1150\u1150",\u3186:"\u1159",\u11F9:"\u1159","\uA97C":"\u1159\u1159",\u3164:"\u1160",\u314F:"\u1161","\u11A3":"\u1161\u30FC",\u1176:"\u1161\u1169",\u1177:"\u1161\u116E",\u1162:"\u1161\u4E28",\u3150:"\u1161\u4E28",\u3151:"\u1163",\u1178:"\u1163\u1169",\u1179:"\u1163\u116D","\u11A4":"\u1163\u116E",\u1164:"\u1163\u4E28",\u3152:"\u1163\u4E28",\u3153:"\u1165",\u117C:"\u1165\u30FC",\u117A:"\u1165\u1169",\u117B:"\u1165\u116E",\u1166:"\u1165\u4E28",\u3154:"\u1165\u4E28",\u3155:"\u1167","\u11A5":"\u1167\u1163",\u117D:"\u1167\u1169",\u117E:"\u1167\u116E",\u1168:"\u1167\u4E28",\u3156:"\u1167\u4E28",\u3157:"\u1169",\u116A:"\u1169\u1161",\u3158:"\u1169\u1161",\u116B:"\u1169\u1161\u4E28",\u3159:"\u1169\u1161\u4E28","\u11A6":"\u1169\u1163","\u11A7":"\u1169\u1163\u4E28",\u117F:"\u1169\u1165",\u1180:"\u1169\u1165\u4E28","\uD7B0":"\u1169\u1167",\u1181:"\u1169\u1167\u4E28",\u1182:"\u1169\u1169","\uD7B1":"\u1169\u1169\u4E28",\u1183:"\u1169\u116E",\u116C:"\u1169\u4E28",\u315A:"\u1169\u4E28",\u315B:"\u116D","\uD7B2":"\u116D\u1161","\uD7B3":"\u116D\u1161\u4E28",\u1184:"\u116D\u1163",\u3187:"\u116D\u1163",\u1186:"\u116D\u1163",\u1185:"\u116D\u1163\u4E28",\u3188:"\u116D\u1163\u4E28","\uD7B4":"\u116D\u1165",\u1187:"\u116D\u1169",\u1188:"\u116D\u4E28",\u3189:"\u116D\u4E28",\u315C:"\u116E",\u1189:"\u116E\u1161",\u118A:"\u116E\u1161\u4E28",\u116F:"\u116E\u1165",\u315D:"\u116E\u1165",\u118B:"\u116E\u1165\u30FC",\u1170:"\u116E\u1165\u4E28",\u315E:"\u116E\u1165\u4E28","\uD7B5":"\u116E\u1167",\u118C:"\u116E\u1167\u4E28",\u118D:"\u116E\u116E",\u1171:"\u116E\u4E28",\u315F:"\u116E\u4E28","\uD7B6":"\u116E\u4E28\u4E28",\u3160:"\u1172",\u118E:"\u1172\u1161","\uD7B7":"\u1172\u1161\u4E28",\u118F:"\u1172\u1165",\u1190:"\u1172\u1165\u4E28",\u1191:"\u1172\u1167",\u318A:"\u1172\u1167",\u1192:"\u1172\u1167\u4E28",\u318B:"\u1172\u1167\u4E28","\uD7B8":"\u1172\u1169",\u1193:"\u1172\u116E",\u1194:"\u1172\u4E28",\u318C:"\u1172\u4E28",\u318D:"\u119E","\uD7C5":"\u119E\u1161",\u119F:"\u119E\u1165","\uD7C6":"\u119E\u1165\u4E28",\u11A0:"\u119E\u116E",\u11A2:"\u119E\u119E",\u11A1:"\u119E\u4E28",\u318E:"\u119E\u4E28",\u30D8:"\u3078","\u2341":"\u303C","\u29C4":"\u303C","\uA49E":"\uA04A","\uA4AC":"\uA050","\uA49C":"\uA0C0","\uA4A8":"\uA132","\uA4BF":"\uA259","\uA4BE":"\uA2B1","\uA494":"\uA2CD","\uA4C0":"\uA3AB","\uA4C2":"\uA3B5","\uA4BA":"\uA3BF","\uA4B0":"\uA3C2","\uA4A7":"\uA458","\u22A5":"\uA4D5","\u27C2":"\uA4D5","\u{1D21C}":"\uA4D5","\uA7B1":"\uA4D5","\uA79E":"\uA4E4","\u2141":"\uA4E8","\u2142":"\uA4F6","\u{1D215}":"\uA4F6","\u{1D22B}":"\uA4F6","\u{16F26}":"\uA4F6","\u{10411}":"\uA4F6","\u2143":"\u{16F00}","\u{11AE6}":"\u{11AE5}\u{11AEF}","\u{11AE8}":"\u{11AE5}\u{11AE5}","\u{11AE9}":"\u{11AE5}\u{11AE5}\u{11AEF}","\u{11AEA}":"\u{11AE5}\u{11AE5}\u{11AF0}","\u{11AE7}":"\u{11AE5}\u{11AF0}","\u{11AF4}":"\u{11AF3}\u{11AEF}","\u{11AF6}":"\u{11AF3}\u{11AF3}","\u{11AF7}":"\u{11AF3}\u{11AF3}\u{11AEF}","\u{11AF8}":"\u{11AF3}\u{11AF3}\u{11AF0}","\u{11AF5}":"\u{11AF3}\u{11AF0}","\u{11AEC}":"\u{11AEB}\u{11AEF}","\u{11AED}":"\u{11AEB}\u{11AEB}","\u{11AEE}":"\u{11AEB}\u{11AEB}\u{11AEF}","\u2295":"\u{102A8}","\u2A01":"\u{102A8}","\u{1F728}":"\u{102A8}","\uA69A":"\u{102A8}","\u25BD":"\u{102BC}","\u{1D214}":"\u{102BC}","\u{1F704}":"\u{102BC}","\u29D6":"\u{102C0}","\uA79B":"\u{1043A}","\uA79A":"\u{10412}","\u{104A0}":"\u{10486}","\u{103D1}":"\u{10382}","\u{103D3}":"\u{10393}","\u{12038}":"\u{1039A}","\u2625":"\u{1099E}","\u{132F9}":"\u{1099E}","\u3039":"\u5344",\uF967:"\u4E0D","\u{2F800}":"\u4E3D","\uFA70":"\u4E26","\u239C":"\u4E28","\u239F":"\u4E28","\u23A2":"\u4E28","\u23A5":"\u4E28","\u23AA":"\u4E28","\u23AE":"\u4E28","\u31D1":"\u4E28",\u1175:"\u4E28",\u3163:"\u4E28","\u2F01":"\u4E28",\u119C:"\u4E28\u30FC",\u1198:"\u4E28\u1161",\u1199:"\u4E28\u1163","\uD7BD":"\u4E28\u1163\u1169","\uD7BE":"\u4E28\u1163\u4E28","\uD7BF":"\u4E28\u1167","\uD7C0":"\u4E28\u1167\u4E28",\u119A:"\u4E28\u1169","\uD7C1":"\u4E28\u1169\u4E28","\uD7C2":"\u4E28\u116D",\u119B:"\u4E28\u116E","\uD7C3":"\u4E28\u1172",\u119D:"\u4E28\u119E","\uD7C4":"\u4E28\u4E28",\uF905:"\u4E32","\u{2F801}":"\u4E38",\uF95E:"\u4E39","\u{2F802}":"\u4E41","\u31E0":"\u4E59","\u2F04":"\u4E59","\u31DF":"\u4E5A","\u2E83":"\u4E5A","\u31D6":"\u4E5B","\u2E82":"\u4E5B","\u2EF2":"\u4E80",\uF91B:"\u4E82","\u31DA":"\u4E85","\u2F05":"\u4E85",\uF9BA:"\u4E86",\u30CB:"\u4E8C","\u2F06":"\u4E8C","\u{2F803}":"\u{20122}","\u2F07":"\u4EA0",\uF977:"\u4EAE","\u2F08":"\u4EBA",\u30A4:"\u4EBB","\u2E85":"\u4EBB",\uF9FD:"\u4EC0","\u{2F819}":"\u4ECC",\uF9A8:"\u4EE4","\u{2F804}":"\u4F60",\u5002:"\u4F75","\u{2F807}":"\u4F75","\uFA73":"\u4F80",\uF92D:"\u4F86",\uF9B5:"\u4F8B","\uFA30":"\u4FAE","\u{2F805}":"\u4FAE","\u{2F806}":"\u4FBB",\uF965:"\u4FBF",\u503C:"\u5024",\uF9D4:"\u502B","\u{2F808}":"\u507A","\u{2F809}":"\u5099","\u{2F80B}":"\u50CF",\uF9BB:"\u50DA","\uFA31":"\u50E7","\u{2F80A}":"\u50E7","\u{2F80C}":"\u349E","\u2F09":"\u513F",\uFA0C:"\u5140","\u2E8E":"\u5140","\uFA74":"\u5145","\uFA32":"\u514D","\u{2F80E}":"\u514D","\u{2F80F}":"\u5154","\u{2F810}":"\u5164","\u2F0A":"\u5165","\u{2F814}":"\u5167","\uFA72":"\u5168",\uF978:"\u5169",\u30CF:"\u516B","\u2F0B":"\u516B",\uF9D1:"\u516D","\u{2F811}":"\u5177","\u{2F812}":"\u{2051C}","\u{2F91B}":"\u{20525}","\uFA75":"\u5180","\u{2F813}":"\u34B9","\u2F0C":"\u5182","\u{2F815}":"\u518D","\u{2F816}":"\u{2054B}","\u{2F8D2}":"\u5192","\u{2F8D3}":"\u5195","\u{2F9CA}":"\u34BB","\u{2F8D4}":"\u6700","\u2F0D":"\u5196","\u{2F817}":"\u5197","\u{2F818}":"\u51A4","\u2F0E":"\u51AB","\u{2F81A}":"\u51AC","\uFA71":"\u51B5","\u{2F81B}":"\u51B5",\uF92E:"\u51B7",\uF979:"\u51C9",\uF955:"\u51CC",\uF954:"\u51DC",\uFA15:"\u51DE","\u2F0F":"\u51E0","\u{2F80D}":"\u{2063A}","\u{2F81D}":"\u51F5","\u2F10":"\u51F5","\u2F11":"\u5200","\u2E89":"\u5202","\u{2F81E}":"\u5203",\uFA00:"\u5207","\u{2F850}":"\u5207",\uF99C:"\u5217",\uF9DD:"\u5229","\u{2F81F}":"\u34DF",\uF9FF:"\u523A","\u{2F820}":"\u523B","\u{2F821}":"\u5246","\u{2F822}":"\u5272","\u{2F823}":"\u5277",\uF9C7:"\u5289","\u{2F9D9}":"\u{20804}",\u30AB:"\u529B",\uF98A:"\u529B","\u2F12":"\u529B",\uF99D:"\u52A3","\u{2F824}":"\u3515","\u{2F992}":"\u52B3","\uFA76":"\u52C7","\u{2F825}":"\u52C7","\uFA33":"\u52C9","\u{2F826}":"\u52C9",\uF952:"\u52D2",\uF92F:"\u52DE","\uFA34":"\u52E4","\u{2F827}":"\u52E4",\uF97F:"\u52F5","\u2F13":"\u52F9","\uFA77":"\u52FA","\u{2F828}":"\u52FA","\u{2F829}":"\u5305","\u{2F82A}":"\u5306","\u{2F9DD}":"\u{208DE}","\u2F14":"\u5315",\uF963:"\u5317","\u{2F82B}":"\u5317","\u2F15":"\u531A","\u2F16":"\u5338",\uF9EB:"\u533F","\u2F17":"\u5341","\u3038":"\u5341","\u303A":"\u5345","\u{2F82C}":"\u5349","\u0FD6":"\u534D","\u0FD5":"\u5350","\uFA35":"\u5351","\u{2F82D}":"\u5351","\u{2F82E}":"\u535A",\u30C8:"\u535C","\u2F18":"\u535C","\u2F19":"\u5369","\u2E8B":"\u353E","\u{2F82F}":"\u5373",\uF91C:"\u5375","\u{2F830}":"\u537D","\u{2F831}":"\u537F","\u{2F832}":"\u537F","\u{2F833}":"\u537F","\u2F1A":"\u5382","\u{2F834}":"\u{20A2C}","\u2F1B":"\u53B6",\uF96B:"\u53C3","\u2F1C":"\u53C8","\u{2F836}":"\u53CA","\u{2F837}":"\u53DF","\u{2F838}":"\u{20B63}",\u30ED:"\u53E3","\u2F1D":"\u53E3",\u56D7:"\u53E3","\u2F1E":"\u53E3",\uF906:"\u53E5","\u{2F839}":"\u53EB","\u{2F83A}":"\u53F1","\u{2F83B}":"\u5406",\uF9DE:"\u540F",\uF9ED:"\u541D","\u{2F83D}":"\u5438",\uF980:"\u5442","\u{2F83E}":"\u5448","\u{2F83F}":"\u5468","\u{2F83C}":"\u549E","\u{2F840}":"\u54A2",\uF99E:"\u54BD",\u439B:"\u3588","\u{2F841}":"\u54F6","\u{2F842}":"\u5510","\u{2F843}":"\u5553",\u555F:"\u5553","\uFA79":"\u5555","\u{2F844}":"\u5563","\u{2F845}":"\u5584","\u{2F846}":"\u5584",\uF90B:"\u5587","\uFA7A":"\u5599","\u{2F847}":"\u5599","\uFA36":"\u559D","\uFA78":"\u559D","\u{2F848}":"\u55AB","\u{2F849}":"\u55B3",\uFA0D:"\u55C0","\u{2F84A}":"\u55C2","\uFA7B":"\u55E2","\uFA37":"\u5606","\u{2F84C}":"\u5606","\u{2F84E}":"\u5651","\u{2F84F}":"\u5674","\uFA38":"\u5668",\uF9A9:"\u56F9","\u{2F84B}":"\u5716","\u{2F84D}":"\u5717","\u2F1F":"\u571F",\u58EB:"\u571F","\u2F20":"\u571F","\u{2F855}":"\u578B","\u{2F852}":"\u57CE",\u39B3:"\u363D","\u{2F853}":"\u57F4","\u{2F854}":"\u580D","\u{2F857}":"\u5831","\u{2F856}":"\u5832","\uFA39":"\u5840",\uFA10:"\u585A","\uFA7C":"\u585A",\uF96C:"\u585E",\u586B:"\u5861",\u58FF:"\u58AB","\u{2F858}":"\u58AC","\uFA7D":"\u58B3",\uF94A:"\u58D8",\uF942:"\u58DF","\u{2F859}":"\u{214E4}","\u{2F851}":"\u58EE","\u{2F85A}":"\u58F2","\u{2F85B}":"\u58F7","\u2F21":"\u5902","\u{2F85C}":"\u5906","\u2F22":"\u590A",\u30BF:"\u5915","\u2F23":"\u5915","\u{2F85D}":"\u591A","\u{2F85E}":"\u5922","\u2F24":"\u5927","\uFA7E":"\u5944",\uF90C:"\u5948",\uF909:"\u5951","\uFA7F":"\u5954","\u{2F85F}":"\u5962",\uF981:"\u5973","\u2F25":"\u5973","\u{2F860}":"\u{216A8}","\u{2F861}":"\u{216EA}","\u{2F865}":"\u59D8","\u{2F862}":"\u59EC","\u{2F863}":"\u5A1B","\u{2F864}":"\u5A27","\uFA80":"\u5A62","\u{2F866}":"\u5A66",\u5B00:"\u5AAF","\u{2F867}":"\u36EE","\u{2F868}":"\u36FC","\u{2F986}":"\u5AB5","\u{2F869}":"\u5B08","\uFA81":"\u5B28","\u{2F86A}":"\u5B3E","\u{2F86B}":"\u5B3E","\u2F26":"\u5B50","\u2F27":"\u5B80",\uFA04:"\u5B85","\u{2F86C}":"\u{219C8}","\u{2F86D}":"\u5BC3","\u{2F86E}":"\u5BD8",\uF95F:"\u5BE7",\uF9AA:"\u5BE7","\u{2F86F}":"\u5BE7",\uF9BC:"\u5BEE","\u{2F870}":"\u5BF3","\u{2F871}":"\u{21B18}","\u2F28":"\u5BF8","\u{2F872}":"\u5BFF","\u{2F873}":"\u5C06","\u2F29":"\u5C0F","\u{2F875}":"\u5C22","\u2E90":"\u5C22","\u2F2A":"\u5C22","\u2E8F":"\u5C23","\u{2F876}":"\u3781","\u2F2B":"\u5C38",\uF9BD:"\u5C3F","\u{2F877}":"\u5C60",\uF94B:"\u5C62","\uFA3B":"\u5C64",\uF9DF:"\u5C65","\uFA3C":"\u5C6E","\u{2F878}":"\u5C6E","\u2F2C":"\u5C6E","\u{2F8F8}":"\u{21D0B}","\u2F2D":"\u5C71","\u{2F879}":"\u5CC0","\u{2F87A}":"\u5C8D","\u{2F87B}":"\u{21DE4}","\u{2F87D}":"\u{21DE6}",\uF9D5:"\u5D19","\u{2F87C}":"\u5D43",\uF921:"\u5D50","\u{2F87F}":"\u5D6B","\u{2F87E}":"\u5D6E","\u{2F880}":"\u5D7C","\u{2F9F4}":"\u5DB2",\uF9AB:"\u5DBA","\u2F2E":"\u5DDB","\u{2F882}":"\u5DE2",\u30A8:"\u5DE5","\u2F2F":"\u5DE5","\u2F30":"\u5DF1","\u2E92":"\u5DF3","\u{2F883}":"\u382F","\u{2F884}":"\u5DFD","\u2F31":"\u5DFE",\u5E32:"\u5E21","\u{2F885}":"\u5E28","\u{2F886}":"\u5E3D","\u{2F887}":"\u5E69","\u{2F888}":"\u3862","\u{2F889}":"\u{22183}","\u2F32":"\u5E72",\uF98E:"\u5E74","\u{2F939}":"\u{2219F}","\u2E93":"\u5E7A","\u2F33":"\u5E7A","\u2F34":"\u5E7F",\uFA01:"\u5EA6","\u{2F88A}":"\u387C","\u{2F88B}":"\u5EB0","\u{2F88C}":"\u5EB3","\u{2F88D}":"\u5EB6",\uF928:"\u5ECA","\u{2F88E}":"\u5ECA",\uF9A2:"\u5EC9","\uFA82":"\u5ED2",\uFA0B:"\u5ED3","\uFA83":"\u5ED9",\uF982:"\u5EEC","\u2F35":"\u5EF4","\u{2F890}":"\u5EFE","\u2F36":"\u5EFE","\u{2F891}":"\u{22331}","\u{2F892}":"\u{22331}",\uF943:"\u5F04","\u2F37":"\u5F0B","\u2F38":"\u5F13","\u{2F894}":"\u5F22","\u{2F895}":"\u5F22","\u2F39":"\u5F50","\u2E94":"\u5F51","\u{2F874}":"\u5F53","\u{2F896}":"\u38C7","\u2F3A":"\u5F61","\u{2F899}":"\u5F62","\uFA84":"\u5F69","\u{2F89A}":"\u5F6B","\u2F3B":"\u5F73",\uF9D8:"\u5F8B","\u{2F89B}":"\u38E3","\u{2F89C}":"\u5F9A",\uF966:"\u5FA9","\uFA85":"\u5FAD","\u2F3C":"\u5FC3","\u2E96":"\u5FC4","\u2E97":"\u38FA","\u{2F89D}":"\u5FCD","\u{2F89E}":"\u5FD7",\uF9A3:"\u5FF5","\u{2F89F}":"\u5FF9",\uF960:"\u6012",\uF9AC:"\u601C","\uFA6B":"\u6075","\u{2F8A2}":"\u391C","\u{2F8A1}":"\u393A","\u{2F8A0}":"\u6081","\uFA3D":"\u6094","\u{2F8A3}":"\u6094","\u{2F8A5}":"\u60C7","\uFA86":"\u60D8",\uF9B9:"\u60E1","\u{2F8A4}":"\u{226D4}","\uFA88":"\u6108","\uFA3E":"\u6168",\uF9D9:"\u6144","\u{2F8A6}":"\u6148","\u{2F8A7}":"\u614C","\u{2F8A9}":"\u614C","\uFA87":"\u614E","\u{2F8A8}":"\u614E","\uFA8A":"\u6160","\u{2F8AA}":"\u617A","\uFA3F":"\u618E","\uFA89":"\u618E","\u{2F8AB}":"\u618E",\uF98F:"\u6190","\u{2F8AD}":"\u61A4","\u{2F8AE}":"\u61AF","\u{2F8AC}":"\u61B2","\uFAD0":"\u{22844}","\uFACF":"\u{2284A}","\u{2F8AF}":"\u61DE","\uFA40":"\u61F2","\uFA8B":"\u61F2","\u{2F8B0}":"\u61F2",\uF90D:"\u61F6","\u{2F8B1}":"\u61F6",\uF990:"\u6200","\u2F3D":"\u6208","\u{2F8B2}":"\u6210","\u{2F8B3}":"\u621B",\uF9D2:"\u622E","\uFA8C":"\u6234","\u2F3E":"\u6236",\u6238:"\u6236","\u2F3F":"\u624B","\u2E98":"\u624C","\u{2F8B4}":"\u625D","\u{2F8B5}":"\u62B1",\uF925:"\u62C9",\uF95B:"\u62CF",\uFA02:"\u62D3","\u{2F8B6}":"\u62D4","\u{2F8BA}":"\u62FC",\uF973:"\u62FE","\u{2F8B8}":"\u{22B0C}","\u{2F8B9}":"\u633D","\u{2F8B7}":"\u6350","\u{2F8BB}":"\u6368",\uF9A4:"\u637B","\u{2F8BC}":"\u6383",\uF975:"\u63A0","\u{2F8C1}":"\u63A9","\uFA8D":"\u63C4","\u{2F8BD}":"\u63E4","\uFA8F":"\u6452","\u{2F8BE}":"\u{22BF1}","\uFA8E":"\u641C","\u{2F8BF}":"\u6422","\u{2F8C0}":"\u63C5","\u{2F8C3}":"\u6469","\u{2F8C6}":"\u6477","\u{2F8C4}":"\u647E","\u{2F8C2}":"\u3A2E",\u6409:"\u3A41",\uF991:"\u649A","\u{2F8C5}":"\u649D",\uF930:"\u64C4","\u{2F8C7}":"\u3A6C","\u2F40":"\u652F","\u2F41":"\u6534","\u2E99":"\u6535","\uFA41":"\u654F","\u{2F8C8}":"\u654F","\uFA90":"\u6556","\u{2F8C9}":"\u656C",\uF969:"\u6578","\u{2F8CA}":"\u{2300A}","\u2F42":"\u6587","\u2EEB":"\u6589","\u2F43":"\u6597",\uF9BE:"\u6599","\u2F44":"\u65A4","\u2F45":"\u65B9",\uF983:"\u65C5","\u2F46":"\u65E0","\u2E9B":"\u65E1","\uFA42":"\u65E2","\u{2F8CB}":"\u65E3","\u2F47":"\u65E5",\uF9E0:"\u6613",\u66F6:"\u3ADA","\u{2F8D1}":"\u3AE4","\u{2F8CD}":"\u6649",\u6669:"\u665A",\uFA12:"\u6674","\uFA91":"\u6674","\uFA43":"\u6691","\u{2F8CF}":"\u6691",\uF9C5:"\u6688","\u{2F8D0}":"\u3B08","\u{2F8D5}":"\u669C",\uFA06:"\u66B4",\uF98B:"\u66C6","\u{2F8CE}":"\u3B19","\u{2F897}":"\u{232B8}","\u2F48":"\u66F0",\uF901:"\u66F4","\u{2F8CC}":"\u66F8","\u2F49":"\u6708","\u{2F980}":"\u{2335F}",\u80A6:"\u670C",\u80D0:"\u670F",\u80CA:"\u6710",\u8101:"\u6713",\u80F6:"\u3B35",\uF929:"\u6717","\uFA92":"\u6717","\u{2F8D8}":"\u6717",\u8127:"\u6718","\uFA93":"\u671B","\u{2F8D9}":"\u671B",\u5E50:"\u3B3A",\u4420:"\u3B3B","\u{2F989}":"\u{23393}",\u81A7:"\u6723","\u{2F98A}":"\u{2339C}","\u2F4A":"\u6728",\uF9E1:"\u674E","\u{2F8DC}":"\u6753","\uFA94":"\u6756","\u{2F8DB}":"\u675E","\u{2F8DD}":"\u{233C3}",\u67FF:"\u676E",\uF9C8:"\u677B","\u{2F8E0}":"\u6785",\uF9F4:"\u6797","\u{2F8DE}":"\u3B49","\uFAD1":"\u{233D5}",\uF9C9:"\u67F3","\u{2F8DF}":"\u67FA",\uF9DA:"\u6817","\u{2F8E5}":"\u681F","\u{2F8E1}":"\u6852","\u{2F8E3}":"\u{2346D}",\uF97A:"\u6881","\uFA44":"\u6885","\u{2F8E2}":"\u6885","\u{2F8E4}":"\u688E",\uF9E2:"\u68A8","\u{2F8E6}":"\u6914","\u{2F8E8}":"\u6942","\uFAD2":"\u3B9D","\u{2F8E7}":"\u3B9D",\u69E9:"\u3BA3",\u6A27:"\u699D","\u{2F8E9}":"\u69A3","\u{2F8EA}":"\u69EA",\uF914:"\u6A02",\uF95C:"\u6A02",\uF9BF:"\u6A02",\uF94C:"\u6A13","\u{2F8EC}":"\u{236A3}","\u{2F8EB}":"\u6AA8",\uF931:"\u6AD3","\u{2F8ED}":"\u6ADB",\uF91D:"\u6B04","\u{2F8EE}":"\u3C18","\u2F4B":"\u6B20","\u{2F8EF}":"\u6B21","\u{2F8F0}":"\u{238A7}","\u{2F8F1}":"\u6B54","\u{2F8F2}":"\u3C4E","\u2F4C":"\u6B62","\u2EED":"\u6B6F","\u{2F8F3}":"\u6B72",\uF98C:"\u6B77","\uFA95":"\u6B79","\u2F4D":"\u6B79","\u2E9E":"\u6B7A","\u{2F8F4}":"\u6B9F",\uF9A5:"\u6BAE","\u2F4E":"\u6BB3",\uF970:"\u6BBA","\uFA96":"\u6BBA","\u{2F8F5}":"\u6BBA","\u{2F8F6}":"\u6BBB","\u{2F8F7}":"\u{23A8D}","\u2F4F":"\u6BCB","\u2E9F":"\u6BCD","\u{2F8F9}":"\u{23AFA}","\u2F50":"\u6BD4","\u2F51":"\u6BDB","\u2F52":"\u6C0F","\u2EA0":"\u6C11","\u2F53":"\u6C14","\u2F54":"\u6C34","\u2EA1":"\u6C35","\u2EA2":"\u6C3A","\u{2F8FA}":"\u6C4E","\u{2F8FE}":"\u6C67",\uF972:"\u6C88","\u{2F8FC}":"\u6CBF",\uF968:"\u6CCC","\u{2F8FD}":"\u6CCD",\uF9E3:"\u6CE5","\u{2F8FB}":"\u{23CBC}",\uF915:"\u6D1B",\uFA05:"\u6D1E","\u{2F907}":"\u6D34","\u{2F900}":"\u6D3E",\uF9CA:"\u6D41","\uFA97":"\u6D41","\u{2F902}":"\u6D41","\u{2F8FF}":"\u6D16","\u{2F903}":"\u6D69",\uF92A:"\u6D6A","\uFA45":"\u6D77","\u{2F901}":"\u6D77","\u{2F904}":"\u6D78","\u{2F905}":"\u6D85","\u{2F906}":"\u{23D1E}",\uF9F5:"\u6DCB",\uF94D:"\u6DDA",\uF9D6:"\u6DEA","\u{2F90E}":"\u6DF9","\uFA46":"\u6E1A","\u{2F908}":"\u6E2F","\u{2F909}":"\u6E6E",\u6F59:"\u6E88","\uFA99":"\u6ECB","\u{2F90B}":"\u6ECB",\uF9CB:"\u6E9C",\uF9EC:"\u6EBA","\u{2F90C}":"\u6EC7",\uF904:"\u6ED1","\uFA98":"\u6EDB","\u{2F90A}":"\u3D33",\uF94E:"\u6F0F","\uFA47":"\u6F22","\uFA9A":"\u6F22",\uF992:"\u6F23","\u{2F90D}":"\u{23ED1}","\u{2F90F}":"\u6F6E","\u{2F910}":"\u{23F5E}","\u{2F911}":"\u{23F8E}","\u{2F912}":"\u6FC6",\uF922:"\u6FEB",\uF984:"\u6FFE","\u{2F915}":"\u701B","\uFA9B":"\u701E","\u{2F914}":"\u701E","\u{2F913}":"\u7039","\u{2F917}":"\u704A","\u{2F916}":"\u3D96","\u2F55":"\u706B","\u2EA3":"\u706C","\u{2F835}":"\u7070","\u{2F919}":"\u7077","\u{2F918}":"\u707D",\uF9FB:"\u7099","\u{2F91A}":"\u70AD",\uF99F:"\u70C8",\uF916:"\u70D9","\uFA48":"\u716E","\uFA9C":"\u716E","\u{2F91D}":"\u{24263}","\u{2F91C}":"\u7145",\uF993:"\u7149","\uFA6C":"\u{242EE}","\u{2F91E}":"\u719C",\uF9C0:"\u71CE",\uF9EE:"\u71D0","\u{2F91F}":"\u{243AB}",\uF932:"\u7210",\uF91E:"\u721B","\u{2F920}":"\u7228","\u2F56":"\u722A","\uFA49":"\u722B","\u2EA4":"\u722B","\uFA9E":"\u7235","\u{2F921}":"\u7235","\u2F57":"\u7236","\u2F58":"\u723B","\u2EA6":"\u4E2C","\u2F59":"\u723F","\u2F5A":"\u7247","\u{2F922}":"\u7250","\u2F5B":"\u7259","\u{2F923}":"\u{24608}","\u2F5C":"\u725B",\uF946:"\u7262","\u{2F924}":"\u7280","\u{2F925}":"\u7295","\u2F5D":"\u72AC","\u2EA8":"\u72AD","\uFA9F":"\u72AF",\uF9FA:"\u72C0","\u{2F926}":"\u{24735}",\uF92B:"\u72FC",\uFA16:"\u732A","\uFAA0":"\u732A","\u{2F927}":"\u{24814}",\uF9A7:"\u7375","\u{2F928}":"\u737A","\u2F5E":"\u7384",\uF961:"\u7387",\uF9DB:"\u7387","\u2F5F":"\u7389","\u{2F929}":"\u738B","\u{2F92A}":"\u3EAC","\u{2F92B}":"\u73A5",\uF9AD:"\u73B2","\u{2F92C}":"\u3EB8","\u{2F92D}":"\u3EB8",\uF917:"\u73DE",\uF9CC:"\u7409",\uF9E4:"\u7406","\uFA4A":"\u7422","\u{2F92E}":"\u7447","\u{2F92F}":"\u745C",\uF9AE:"\u7469","\uFAA1":"\u7471","\u{2F930}":"\u7471","\u{2F931}":"\u7485",\uF994:"\u7489",\uF9EF:"\u7498","\u{2F932}":"\u74CA","\u2F60":"\u74DC","\u2F61":"\u74E6","\u{2F933}":"\u3F1B","\uFAA2":"\u7506","\u2F62":"\u7518","\u2F63":"\u751F","\u{2F934}":"\u7524","\u2F64":"\u7528","\u2F65":"\u7530","\uFAA3":"\u753B","\u{2F936}":"\u753E","\u{2F935}":"\u{24C36}",\uF9CD:"\u7559",\uF976:"\u7565",\uF962:"\u7570","\u{2F938}":"\u7570","\u{2F937}":"\u{24C92}","\u2F66":"\u758B","\u2F67":"\u7592",\uF9E5:"\u75E2","\u{2F93A}":"\u7610","\uFAA5":"\u761F","\uFAA4":"\u761D",\uF9C1:"\u7642",\uF90E:"\u7669","\u2F68":"\u7676","\u2F69":"\u767D","\u{2F93B}":"\u{24FA1}","\u{2F93C}":"\u{24FB8}","\u2F6A":"\u76AE","\u2F6B":"\u76BF","\u{2F93D}":"\u{25044}","\u{2F93E}":"\u3FFC",\uFA17:"\u76CA","\uFAA6":"\u76CA","\uFAA7":"\u76DB",\uF933:"\u76E7","\u{2F93F}":"\u4008","\u2F6C":"\u76EE","\uFAA8":"\u76F4","\u{2F940}":"\u76F4","\u{2F942}":"\u{250F2}","\u{2F941}":"\u{250F3}",\uF96D:"\u7701","\uFAD3":"\u4018","\u{2F943}":"\u{25119}","\u{2F945}":"\u771E","\u{2F946}":"\u771F","\u{2F947}":"\u771F","\u{2F944}":"\u{25133}","\uFAAA":"\u7740","\uFAA9":"\u774A","\u{2F948}":"\u774A","\u9FC3":"\u4039","\uFAD4":"\u4039","\u{2F949}":"\u4039",\u6663:"\u403F","\u{2F94B}":"\u4046","\u{2F94A}":"\u778B","\uFAD5":"\u{25249}","\uFA9D":"\u77A7","\u2F6D":"\u77DB","\u2F6E":"\u77E2","\u2F6F":"\u77F3","\u{2F94C}":"\u4096","\u{2F94D}":"\u{2541D}",\u784F:"\u7814","\u{2F94E}":"\u784E",\uF9CE:"\u786B",\uF93B:"\u788C","\u{2F94F}":"\u788C","\uFA4B":"\u7891",\uF947:"\u78CA","\uFAAB":"\u78CC","\u{2F950}":"\u78CC",\uF964:"\u78FB","\u{2F951}":"\u40E3",\uF985:"\u792A","\u2F70":"\u793A","\u2EAD":"\u793B",\uFA18:"\u793C","\uFA4C":"\u793E","\uFA4E":"\u7948","\uFA4D":"\u7949","\u{2F952}":"\u{25626}","\uFA4F":"\u7950","\uFA50":"\u7956","\u{2F953}":"\u7956","\uFA51":"\u795D",\uFA19:"\u795E",\uFA1A:"\u7965","\uFA61":"\u8996","\uFAB8":"\u8996",\uF93C:"\u797F","\u{2F954}":"\u{2569A}","\uFA52":"\u798D","\uFA53":"\u798E",\uFA1B:"\u798F","\u{2F956}":"\u798F","\u{2F955}":"\u{256C5}",\uF9B6:"\u79AE","\u2F71":"\u79B8","\u2F72":"\u79BE",\uF995:"\u79CA","\u{2F958}":"\u412F","\u{2F957}":"\u79EB",\uF956:"\u7A1C","\u{2F95A}":"\u7A4A","\uFA54":"\u7A40","\u{2F959}":"\u7A40","\u{2F95B}":"\u7A4F","\u2F73":"\u7A74","\uFA55":"\u7A81","\u{2F95C}":"\u{2597C}","\uFAAC":"\u7AB1",\uF9F7:"\u7ACB","\u2F74":"\u7ACB","\u2EEF":"\u7ADC","\u{2F95D}":"\u{25AA7}","\u{2F95E}":"\u{25AA7}","\u{2F95F}":"\u7AEE","\u2F75":"\u7AF9",\uF9F8:"\u7B20","\uFA56":"\u7BC0","\uFAAD":"\u7BC0","\u{2F960}":"\u4202","\u{2F961}":"\u{25BAB}","\u{2F962}":"\u7BC6","\u{2F964}":"\u4227","\u{2F963}":"\u7BC9","\u{2F965}":"\u{25C80}","\uFAD6":"\u{25CD0}",\uF9A6:"\u7C3E",\uF944:"\u7C60","\u2F76":"\u7C73","\uFAAE":"\u7C7B",\uF9F9:"\u7C92",\uFA1D:"\u7CBE","\u{2F966}":"\u7CD2",\uFA03:"\u7CD6","\u{2F968}":"\u7CE8","\u{2F967}":"\u42A0","\u{2F969}":"\u7CE3",\uF97B:"\u7CE7","\u2F77":"\u7CF8","\u2EAF":"\u7CF9","\u{2F96B}":"\u{25F86}","\u{2F96A}":"\u7D00",\uF9CF:"\u7D10",\uF96A:"\u7D22",\uF94F:"\u7D2F",\u7D76:"\u7D55","\u{2F96C}":"\u7D63","\uFAAF":"\u7D5B",\uF93D:"\u7DA0",\uF957:"\u7DBE","\u{2F96E}":"\u7DC7",\uF996:"\u7DF4","\uFA57":"\u7DF4","\uFAB0":"\u7DF4","\u{2F96F}":"\u7E02","\u{2F96D}":"\u4301","\uFA58":"\u7E09",\uF950:"\u7E37","\uFA59":"\u7E41","\u{2F970}":"\u7E45","\u{2F898}":"\u{261DA}","\u{2F971}":"\u4334","\u2F78":"\u7F36","\u{2F972}":"\u{26228}","\uFAB1":"\u7F3E","\u{2F973}":"\u{26247}","\u2F79":"\u7F51","\u2EAB":"\u7F52","\u2EB2":"\u7F52","\u2EB1":"\u7F53","\u{2F974}":"\u4359","\uFA5A":"\u7F72","\u{2F975}":"\u{262D9}",\uF9E6:"\u7F79","\u{2F976}":"\u7F7A",\uF90F:"\u7F85","\u{2F977}":"\u{2633E}","\u2F7A":"\u7F8A","\u{2F978}":"\u7F95",\uF9AF:"\u7F9A",\uFA1E:"\u7FBD","\u2F7B":"\u7FBD","\u{2F979}":"\u7FFA",\uF934:"\u8001","\u2F7C":"\u8001","\u2EB9":"\u8002","\uFA5B":"\u8005","\uFAB2":"\u8005","\u{2F97A}":"\u8005","\u2F7D":"\u800C","\u{2F97B}":"\u{264DA}","\u2F7E":"\u8012","\u{2F97C}":"\u{26523}","\u2F7F":"\u8033",\uF9B0:"\u8046","\u{2F97D}":"\u8060","\u{2F97E}":"\u{265A8}",\uF997:"\u806F","\u{2F97F}":"\u8070",\uF945:"\u807E","\u2F80":"\u807F","\u2EBA":"\u8080","\u2F81":"\u8089",\uF953:"\u808B","\u{2F8D6}":"\u80AD","\u{2F982}":"\u80B2","\u{2F981}":"\u43D5","\u{2F8D7}":"\u43D9",\u8141:"\u80FC","\u{2F983}":"\u8103","\u{2F985}":"\u813E","\u{2F984}":"\u440B","\u{2F8DA}":"\u6721","\u{2F987}":"\u{267A7}","\u{2F988}":"\u{267B5}",\u6726:"\u4443",\uF926:"\u81D8","\u2F82":"\u81E3",\uF9F6:"\u81E8","\u2F83":"\u81EA","\uFA5C":"\u81ED","\u2F84":"\u81F3","\u2F85":"\u81FC","\u{2F893}":"\u8201","\u{2F98B}":"\u8201","\u{2F98C}":"\u8204","\u2F86":"\u820C","\uFA6D":"\u8218","\u2F87":"\u821B","\u2F88":"\u821F","\u{2F98E}":"\u446B","\u2F89":"\u826E",\uF97C:"\u826F","\u2F8A":"\u8272","\u2F8B":"\u8278","\uFA5D":"\u8279","\uFA5E":"\u8279","\u2EBE":"\u8279","\u2EBF":"\u8279","\u2EC0":"\u8279","\u{2F990}":"\u828B","\u{2F98F}":"\u8291","\u{2F991}":"\u829D","\u{2F993}":"\u82B1","\u{2F994}":"\u82B3","\u{2F995}":"\u82BD",\uF974:"\u82E5","\u{2F998}":"\u82E5","\u{2F996}":"\u82E6","\u{2F997}":"\u{26B3C}",\uF9FE:"\u8336","\uFAB3":"\u8352","\u{2F99A}":"\u8363","\u{2F999}":"\u831D","\u{2F99C}":"\u8323","\u{2F99D}":"\u83BD","\u{2F9A0}":"\u8353",\uF93E:"\u83C9","\u{2F9A1}":"\u83CA","\u{2F9A2}":"\u83CC","\u{2F9A3}":"\u83DC","\u{2F99E}":"\u83E7","\uFAB4":"\u83EF",\uF958:"\u83F1","\uFA5F":"\u8457","\u{2F99F}":"\u8457","\u{2F9A4}":"\u{26C36}","\u{2F99B}":"\u83AD",\uF918:"\u843D",\uF96E:"\u8449",\u853F:"\u848D","\u{2F9A6}":"\u{26CD5}","\u{2F9A5}":"\u{26D6B}",\uF999:"\u84EE","\u{2F9A8}":"\u84F1","\u{2F9A9}":"\u84F3",\uF9C2:"\u84FC","\u{2F9AA}":"\u8516","\u{2F9A7}":"\u452B","\u{2F9AC}":"\u8564","\u{2F9AD}":"\u{26F2C}",\uF923:"\u85CD","\u{2F9AE}":"\u455D","\u{2F9B0}":"\u{26FB1}","\u{2F9AF}":"\u4561",\uF9F0:"\u85FA",\uF935:"\u8606","\u{2F9B2}":"\u456B",\uFA20:"\u8612",\uF91F:"\u862D","\u{2F9B1}":"\u{270D2}",\u8641:"\u8637",\uF910:"\u863F","\u2F8C":"\u864D","\u2EC1":"\u864E","\u{2F9B3}":"\u8650",\uF936:"\u865C","\u{2F9B4}":"\u865C","\u{2F9B5}":"\u8667","\u{2F9B6}":"\u8669","\u2F8D":"\u866B","\u{2F9B7}":"\u86A9","\u{2F9B8}":"\u8688","\u{2F9BA}":"\u86E2","\u{2F9B9}":"\u870E","\u{2F9BC}":"\u8728","\u{2F9BD}":"\u876B","\u{2F9C0}":"\u87E1","\uFAB5":"\u8779","\u{2F9BB}":"\u8779","\u{2F9BE}":"\u8786","\u{2F9BF}":"\u45D7","\u{2F9AB}":"\u{273CA}",\uF911:"\u87BA","\u{2F9C1}":"\u8801","\u{2F9C2}":"\u45F9",\uF927:"\u881F","\u2F8E":"\u8840",\uFA08:"\u884C","\u2F8F":"\u884C","\u{2F9C3}":"\u8860","\u{2F9C4}":"\u8863","\u2F90":"\u8863","\u2EC2":"\u8864",\uF9A0:"\u88C2","\u{2F9C5}":"\u{27667}",\uF9E7:"\u88CF","\u{2F9C6}":"\u88D7","\u{2F9C7}":"\u88DE",\uF9E8:"\u88E1",\uF912:"\u88F8","\u{2F9C9}":"\u88FA","\u{2F9C8}":"\u4635","\uFA60":"\u8910","\uFAB6":"\u8941",\uF924:"\u8964","\u2F91":"\u897E","\u2EC4":"\u897F","\u2EC3":"\u8980","\uFAB7":"\u8986",\uFA0A:"\u898B","\u2F92":"\u898B","\u{2F9CB}":"\u{278AE}","\u2EC5":"\u89C1","\u2F93":"\u89D2","\u2F94":"\u8A00","\u{2F9CC}":"\u{27966}",\u8A7D:"\u8A2E",\u8A1E:"\u46B6","\u{2F9CD}":"\u46BE","\u{2F9CE}":"\u46C7","\u{2F9CF}":"\u8AA0",\uF96F:"\u8AAA",\uF9A1:"\u8AAA","\uFAB9":"\u8ABF","\uFABB":"\u8ACB",\uF97D:"\u8AD2",\uF941:"\u8AD6","\uFABE":"\u8AED","\u{2F9D0}":"\u8AED",\uFA22:"\u8AF8","\uFABA":"\u8AF8",\uF95D:"\u8AFE","\uFABD":"\u8AFE","\uFA62":"\u8B01","\uFABC":"\u8B01","\uFA63":"\u8B39","\uFABF":"\u8B39",\uF9FC:"\u8B58",\uF95A:"\u8B80",\u8B8F:"\u8B86","\uFAC0":"\u8B8A","\u{2F9D1}":"\u8B8A","\u2EC8":"\u8BA0","\u2F95":"\u8C37","\u2F96":"\u8C46",\uF900:"\u8C48","\u{2F9D2}":"\u8C55","\u2F97":"\u8C55",\u8C63:"\u8C5C","\u2F98":"\u8C78","\u{2F9D3}":"\u{27CA8}","\u2F99":"\u8C9D","\u{2F9D4}":"\u8CAB","\u{2F9D5}":"\u8CC1",\uF948:"\u8CC2",\uF903:"\u8CC8","\uFA64":"\u8CD3","\uFA65":"\u8D08","\uFAC1":"\u8D08","\u{2F9D6}":"\u8D1B","\u2EC9":"\u8D1D","\u2F9A":"\u8D64","\u2F9B":"\u8D70","\u{2F9D7}":"\u8D77",\u8D86:"\u8D7F","\uFAD7":"\u{27ED3}","\u{2F9D8}":"\u{27F2F}","\u2F9C":"\u8DB3","\u{2F9DA}":"\u8DCB","\u{2F9DB}":"\u8DBC",\u8DFA:"\u8DE5",\uF937:"\u8DEF","\u{2F9DC}":"\u8DF0",\u8E9B:"\u8E97","\u2F9D":"\u8EAB",\uF902:"\u8ECA","\u2F9E":"\u8ECA","\u{2F9DE}":"\u8ED4",\u8F27:"\u8EFF",\uF998:"\u8F26",\uF9D7:"\u8F2A","\uFAC2":"\u8F38","\u{2F9DF}":"\u8F38",\uFA07:"\u8F3B",\uF98D:"\u8F62","\u2ECB":"\u8F66","\u2F9F":"\u8F9B","\u{2F98D}":"\u8F9E",\uF971:"\u8FB0","\u2FA0":"\u8FB0","\u2FA1":"\u8FB5","\uFA66":"\u8FB6","\u2ECC":"\u8FB6","\u2ECD":"\u8FB6","\u{2F881}":"\u5DE1",\uF99A:"\u9023",\uFA25:"\u9038","\uFA67":"\u9038","\uFAC3":"\u9072",\uF9C3:"\u907C","\u{2F9E0}":"\u{285D2}","\u{2F9E1}":"\u{285ED}",\uF913:"\u908F","\u2FA2":"\u9091","\u{2F9E2}":"\u9094",\uF92C:"\u90CE",\u90DE:"\u90CE","\uFA2E":"\u90CE","\u{2F9E3}":"\u90F1",\uFA26:"\u90FD","\u{2F9E5}":"\u{2872E}","\u{2F9E4}":"\u9111","\u{2F9E6}":"\u911B","\u2FA3":"\u9149",\uF919:"\u916A","\uFAC4":"\u9199",\uF9B7:"\u91B4","\u2FA4":"\u91C6",\uF9E9:"\u91CC","\u2FA5":"\u91CC",\uF97E:"\u91CF",\uF90A:"\u91D1","\u2FA6":"\u91D1",\uF9B1:"\u9234","\u{2F9E7}":"\u9238","\uFAC5":"\u9276","\u{2F9E8}":"\u92D7","\u{2F9E9}":"\u92D8","\u{2F9EA}":"\u927C",\uF93F:"\u9304",\uF99B:"\u934A",\u93AE:"\u93AD","\u{2F9EB}":"\u93F9","\u{2F9EC}":"\u9415","\u{2F9ED}":"\u{28BFA}","\u2ED0":"\u9485","\u2ED1":"\u9577","\u2FA7":"\u9577","\u2ED2":"\u9578","\u2ED3":"\u957F","\u2FA8":"\u9580","\u{2F9EE}":"\u958B","\u{2F9EF}":"\u4995",\uF986:"\u95AD","\u{2F9F0}":"\u95B7","\u{2F9F1}":"\u{28D77}","\u2ED4":"\u95E8","\u2FA9":"\u961C","\u2ECF":"\u961D","\u2ED6":"\u961D",\uF9C6:"\u962E",\uF951:"\u964B",\uFA09:"\u964D",\uF959:"\u9675",\uF9D3:"\u9678","\uFAC6":"\u967C",\uF9DC:"\u9686",\uF9F1:"\u96A3","\u{2F9F2}":"\u49E6","\u2FAA":"\u96B6","\uFA2F":"\u96B7",\u96B8:"\u96B7",\uF9B8:"\u96B7","\u2FAB":"\u96B9","\u{2F9F3}":"\u96C3",\uF9EA:"\u96E2","\uFA68":"\u96E3","\uFAC7":"\u96E3","\u2FAC":"\u96E8",\uF9B2:"\u96F6",\uF949:"\u96F7","\u{2F9F5}":"\u9723","\u{2F9F6}":"\u{29145}",\uF938:"\u9732",\uF9B3:"\u9748","\u2FAD":"\u9751","\u2ED8":"\u9752",\uFA1C:"\u9756","\uFAC8":"\u9756","\u{2F81C}":"\u{291DF}","\u2FAE":"\u975E","\u2FAF":"\u9762","\u{2F9F7}":"\u{2921A}","\u2FB0":"\u9769","\u{2F9F8}":"\u4A6E","\u{2F9F9}":"\u4A76","\u2FB1":"\u97CB","\uFAC9":"\u97DB","\u{2F9FA}":"\u97E0","\u2ED9":"\u97E6","\u2FB2":"\u97ED","\u{2F9FB}":"\u{2940A}","\u2FB3":"\u97F3","\uFA69":"\u97FF","\uFACA":"\u97FF","\u2FB4":"\u9801","\u{2F9FC}":"\u4AB2","\uFACB":"\u980B","\u{2F9FE}":"\u980B","\u{2F9FF}":"\u980B",\uF9B4:"\u9818","\u{2FA00}":"\u9829","\u{2F9FD}":"\u{29496}","\uFA6A":"\u983B","\uFACC":"\u983B",\uF9D0:"\u985E","\u2EDA":"\u9875","\u2FB5":"\u98A8","\u{2FA01}":"\u{295B6}","\u2EDB":"\u98CE","\u2FB6":"\u98DB","\u2EDC":"\u98DE","\u2EDD":"\u98DF","\u2FB7":"\u98DF","\u2EDF":"\u98E0","\u{2FA02}":"\u98E2",\uFA2A:"\u98EF",\uFA2B:"\u98FC","\u{2FA03}":"\u4B33",\uFA2C:"\u9928","\u{2FA04}":"\u9929","\u2EE0":"\u9963","\u2FB8":"\u9996","\u2FB9":"\u9999","\u{2FA05}":"\u99A7","\u2FBA":"\u99AC","\u{2FA06}":"\u99C2",\uF91A:"\u99F1","\u{2FA07}":"\u99FE",\uF987:"\u9A6A","\u2EE2":"\u9A6C","\u2FBB":"\u9AA8","\u{2FA08}":"\u4BCE","\u2FBC":"\u9AD8","\u2FBD":"\u9ADF","\u{2FA09}":"\u{29B30}","\uFACD":"\u9B12","\u{2FA0A}":"\u9B12","\u2FBE":"\u9B25","\u2FBF":"\u9B2F","\u2FC0":"\u9B32","\u2FC1":"\u9B3C","\u2EE4":"\u9B3C","\u2FC2":"\u9B5A",\uF939:"\u9B6F","\u{2FA0B}":"\u9C40",\uF9F2:"\u9C57","\u2EE5":"\u9C7C","\u2FC3":"\u9CE5","\u{2FA0C}":"\u9CFD","\u{2FA0D}":"\u4CCE","\u{2FA0F}":"\u9D67","\u{2FA0E}":"\u4CED","\u{2FA10}":"\u{2A0CE}",\uFA2D:"\u9DB4","\u{2FA12}":"\u{2A105}","\u{2FA11}":"\u4CF8",\uF93A:"\u9DFA","\u{2FA13}":"\u{2A20E}",\uF920:"\u9E1E",\u9E43:"\u9E42","\u2FC4":"\u9E75",\uF940:"\u9E7F","\u2FC5":"\u9E7F","\u{2FA14}":"\u{2A291}",\uF988:"\u9E97",\uF9F3:"\u9E9F","\u2FC6":"\u9EA5","\u2EE8":"\u9EA6","\u{2FA15}":"\u9EBB","\u2FC7":"\u9EBB","\u{2F88F}":"\u{2A392}","\u2FC8":"\u9EC3","\u2EE9":"\u9EC4","\u2FC9":"\u9ECD",\uF989:"\u9ECE","\u{2FA16}":"\u4D56","\u2FCA":"\u9ED1",\u9ED2:"\u9ED1","\uFA3A":"\u58A8","\u{2FA17}":"\u9EF9","\u2FCB":"\u9EF9","\u2FCC":"\u9EFD","\u{2FA19}":"\u9F05","\u{2FA18}":"\u9EFE","\u2FCD":"\u9F0E","\u{2FA1A}":"\u9F0F","\u2FCE":"\u9F13","\u{2FA1B}":"\u9F16","\u2FCF":"\u9F20","\u{2FA1C}":"\u9F3B","\u2FD0":"\u9F3B","\uFAD8":"\u9F43","\u2FD1":"\u9F4A","\u2EEC":"\u9F50","\u2FD2":"\u9F52","\u{2FA1D}":"\u{2A600}","\u2EEE":"\u9F7F",\uF9C4:"\u9F8D","\u2FD3":"\u9F8D","\uFAD9":"\u9F8E","\u2EF0":"\u9F99",\uF907:"\u9F9C",\uF908:"\u9F9C","\uFACE":"\u9F9C","\u2FD4":"\u9F9C","\u2EF3":"\u9F9F","\u2FD5":"\u9FA0"};function E1e(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}var y1e=RegExp(Object.keys(qN).map(E1e).join("|"),"g");function x1e(t){return qN[t]}function w1e(t){return t.replace(y1e,x1e)}var k1e=w1e;const S1e=Rr(k1e);var $v={exports:{}},HN={};function za(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var j1e=za;za.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},za.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},za.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},n),this._options.unref&&this._timer.unref(),!0},za.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},za.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},za.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},za.prototype.start=za.prototype.try,za.prototype.errors=function(){return this._errors},za.prototype.attempts=function(){return this._attempts},za.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,n=0,r=0;r<this._errors.length;r++){var o=this._errors[r],i=o.message,s=(t[i]||0)+1;t[i]=s,s>=n&&(e=o,n=s)}return e},function(t){var e=j1e;t.operation=function(n){var r=t.timeouts(n);return new e(r,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},t.timeouts=function(n){if(n instanceof Array)return[].concat(n);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var o in n)r[o]=n[o];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],s=0;s<r.retries;s++)i.push(this.createTimeout(s,r));return n&&n.forever&&!i.length&&i.push(this.createTimeout(s,r)),i.sort(function(u,l){return u-l}),i},t.createTimeout=function(n,r){var o=r.randomize?Math.random()+1:1,i=Math.round(o*Math.max(r.minTimeout,1)*Math.pow(r.factor,n));return i=Math.min(i,r.maxTimeout),i},t.wrap=function(n,r,o){if(r instanceof Array&&(o=r,r=null),!o){o=[];for(var i in n)typeof n[i]=="function"&&o.push(i)}for(var s=0;s<o.length;s++){var u=o[s],l=n[u];n[u]=(function(c){var d=t.operation(r),F=Array.prototype.slice.call(arguments,1),h=F.pop();F.push(function(m){d.retry(m)||(m&&(arguments[0]=d.mainError()),h.apply(this,arguments))}),d.attempt(function(){c.apply(n,F)})}).bind(n,l),n[u].options=r}}}(HN);var B1e=HN;const A1e=B1e,T1e=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class $N extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,{message:e}=e):(this.originalError=new Error(e),this.originalError.stack=this.stack),this.name="AbortError",this.message=e}}const I1e=(t,e,n)=>{const r=n.retries-(e-1);return t.attemptNumber=e,t.retriesLeft=r,t},R1e=t=>T1e.includes(t),WN=(t,e)=>new Promise((n,r)=>{e={onFailedAttempt:()=>{},retries:10,...e};const o=A1e.operation(e);o.attempt(async i=>{try{n(await t(i))}catch(s){if(!(s instanceof Error)){r(new TypeError(`Non-error was thrown: "${s}". You should only throw errors.`));return}if(s instanceof $N)o.stop(),r(s.originalError);else if(s instanceof TypeError&&!R1e(s.message))o.stop(),r(s);else{I1e(s,i,e);try{await e.onFailedAttempt(s)}catch(u){r(u);return}o.retry(s)||r(o.mainError())}}})});$v.exports=WN,$v.exports.default=WN,$v.exports.AbortError=$N;var O1e=$v.exports;const KN=Rr(O1e);let fp=class{constructor(t,e){if(this.stable=t,this.unstable=e,!this.unstable&&!this.stable)throw new Error("One of stable or unstable values must be supplied")}get name(){return this.stable?this.stable:this.unstable}get altName(){return this.stable?this.unstable:null}get names(){var t=[this.name],e=this.altName;return e&&t.push(e),t}matches(t){return this.name===t||this.altName===t}findIn(t){var e=void 0;return this.name&&(e=t==null?void 0:t[this.name]),!e&&this.altName&&(e=t==null?void 0:t[this.altName]),e}includedIn(t){var e=!1;return this.name&&(e=t.includes(this.name)),!e&&this.altName&&(e=t.includes(this.altName)),e}};class Wv extends fp{constructor(){super(...arguments),I(this,"preferUnstable",!1)}setPreferUnstable(e){this.preferUnstable=e}get name(){return this.stable&&!this.preferUnstable?this.stable:this.unstable}}let ro=class extends fp{constructor(t,e){if(super(t,e),!this.unstable)throw new Error("Unstable value must be supplied")}get name(){return this.unstable}get altName(){return this.stable}};var SF=function(t){return t.Self="m.self",t.Pin="m.pin",t}({}),_p=new ro("m.asset","org.matrix.msc3488.asset"),Jc=new ro("m.ts","org.matrix.msc3488.ts"),vp=new ro("m.location","org.matrix.msc3488.location"),ti=function(t){return t.Read="m.read",t.FullyRead="m.fully_read",t.ReadPrivate="m.read.private",t}({}),bp="main";function GN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function YN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?GN(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):GN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ak=new Map;function Tk(t){return t instanceof String&&(t=t.toString()),Ak.has(t)||Ak.set(t,t),Ak.get(t)}function Ik(t,e){var n=e??new URLSearchParams,r=function(s){i!=null&&(Array.isArray(i)?i.forEach(u=>{n.append(s,String(u))}):n.append(s,String(i)))};for(var[o,i]of Object.entries(t))r(o);return n}function ZN(t,e,n){var r=YN(YN({},n),{},{[e]:n[t]});return delete r[t],r}lt=function(t,e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];r!=null&&(t=t.replace(n,encodeURIComponent(r)))}return t};function Kv(t,e,n){var r;if(n){for(r=t.length-1;r>=0;r--)if(e(t[r],r,t))return t.splice(r,1),!0}else for(r=0;r<t.length;r++)if(e(t[r],r,t))return t.splice(r,1),!0;return!1}function JN(t,e){for(var n of e)if(!t.hasOwnProperty(n))throw new Error("Missing required key: "+n)}function Cp(t){return JSON.parse(JSON.stringify(t))}function jF(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="number"&&isNaN(t)&&isNaN(e))return!0;if(t===null||e===null)return t===e;if(!(t instanceof Object)||t.constructor!==e.constructor||t.prototype!==e.prototype)return!1;if(t instanceof RegExp||t instanceof Date)return t.toString()===e.toString();if(Array.isArray(t)){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!jF(t[n],e[n]))return!1}else{for(var r in e)if(e.hasOwnProperty(r)!==t.hasOwnProperty(r))return!1;for(var o in t)if(e.hasOwnProperty(o)!==t.hasOwnProperty(o)||!jF(t[o],e[o]))return!1}return!0}function Rk(t){if(typeof t!="object"||t==null||Array.isArray(t))return t;var e=[];for(var[n,r]of Object.entries(t))e.push([n,Rk(r)]);return e.sort((o,i)=>Yv(o[0],i[0])),e}function XN(t){return typeof t=="number"&&isFinite(t)}function J1(t){return typeof t=="string"?S1e(t.normalize("NFD").replace(P1e,"")):""}function Ok(t){return typeof t=="string"?t.replace(/[\u202d-\u202e]/g,""):""}function M1e(t){return J1(t.toLowerCase()).replace(/[\\'!"#$%&()*+,\-./:;<=>?@[\]^_`{|}~\u2000-\u206f\u2e00-\u2e7f]/g,"").toLowerCase()}var P1e=/[\u2000-\u200F\u202A-\u202F\u0300-\u036F\uFEFF\u061C\u2800\u2062-\u2063\s]/g;function QN(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ez(t){return QN(t).replace(/\\\*/g,".*").replace(/\?/g,".")}function Mk(t){return t!=null&&t.endsWith("/")?t.slice(0,-1):t}yc=function(t,e){return new Promise(n=>{setTimeout(n,t,e)})},Voe=function(t,e,n){return Pk.apply(this,arguments)};function Pk(){return Pk=Z(function*(t,e,n){var r=Date.now();try{return yield n()}finally{var o=Date.now();t.debug("[Perf]: ".concat(e," took ").concat(o-r,"ms"))}}),Pk.apply(this,arguments)}function L1e(t,e,n){var r=Date.now();try{return n()}finally{var o=Date.now();t.debug("[Perf]: ".concat(e," took ").concat(o-r,"ms"))}}function tz(t){return t==null}ll=function(){var t,e,n=new Promise((r,o)=>{t=r,e=o});return{resolve:t,reject:e,promise:n}};function BF(t,e){return Lk.apply(this,arguments)}function Lk(){return Lk=Z(function*(t,e){for(var n of t)yield e(yield n)}),Lk.apply(this,arguments)}function AF(t){return Promise.resolve(t())}function N1e(t){return KN(e=>t(e),{forever:!0,factor:2,minTimeout:3e3,maxTimeout:15e3})}var Xc=(()=>{for(var t="",e=32;e<=126;e++)t+=String.fromCharCode(e);return t})();function nz(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xc;return t.padEnd(e,n[0])}function Ep(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xc,n=BigInt(e.length);if(t<=n){var r;return(r=e[Number(t)-1])!==null&&r!==void 0?r:""}var o=t/n,i=Number(t%n)-1;return i<0&&(o-=BigInt(Math.abs(i)),i=Number(n)-1),Ep(o,e)+e[i]}function Gv(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xc,n=BigInt(e.length),r=BigInt(0),o=t.length-1,i=BigInt(0);o>=0;o--,i++){var s=t.charCodeAt(o)-e.charCodeAt(0);r+=BigInt(1+s)*n**i}return r}function z1e(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xc,r=Math.max(t.length,e.length),o=Gv(nz(t,r,n),n),i=Gv(nz(e,r,n),n),s=(o+i)/BigInt(2);return s===o||s==i?Ep(s,n)+n[0]:Ep(s,n)}function yp(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xc;return Ep(Gv(t,e)+BigInt(1),e)}function rz(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xc;return Ep(Gv(t,e)-BigInt(1),e)}function Yv(t,e){return t<e?-1:t>e?1:0}function oz(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var[r,o]of Object.entries(e)){if(t[r]instanceof Object&&o){oz(t[r],o);continue}if(o!=null||!n){Zv(t,r,o);continue}}return t}function iz(t){var e;return(e=Jc.findIn(t.getContent()))!==null&&e!==void 0?e:-1}function U1e(t,e){return iz(e)-iz(t)}function Nk(t){return[ti.Read,ti.ReadPrivate].includes(t)}function az(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:(s,u)=>s===u;if(t.size!==e.size)return!1;for(var[r,o]of t){var i=e.get(r);if(i===void 0||!n(o,i))return!1}return!0}function sz(t){return t instanceof Map?X1(t):Array.isArray(t)?t.map(e=>sz(e)):t}function X1(t){var e=new Map;for(var[n,r]of t)e.set(n,sz(r));return Object.fromEntries(e.entries())}function xp(t){return t==="__proto__"||t==="prototype"||t==="constructor"}function Zv(t,e,n){if(xp(e))throw new Error("Trying to modify prototype or constructor");t[e]=n}function ks(t){return!(xp(t.room_id)||xp(t.sender)||xp(t.event_id))}eu=class extends Map{constructor(t){super(),this.createDefault=t}getOrCreate(t){return this.has(t)||this.set(t,this.createDefault()),this.get(t)}};let Jv,Q1;Jv="migrationState",E1=function(t){return t[t.NOT_STARTED=0]="NOT_STARTED",t[t.INITIAL_DATA_MIGRATED=1]="INITIAL_DATA_MIGRATED",t[t.OLM_SESSIONS_MIGRATED=2]="OLM_SESSIONS_MIGRATED",t[t.MEGOLM_SESSIONS_MIGRATED=3]="MEGOLM_SESSIONS_MIGRATED",t[t.ROOM_SETTINGS_MIGRATED=4]="ROOM_SETTINGS_MIGRATED",t[t.INITIAL_OWN_KEY_QUERY_DONE=5]="INITIAL_OWN_KEY_QUERY_DONE",t}({}),Q1=50;function uz(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function lz(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uz(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uz(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Xv(t,e){return encodeURIComponent(t)+"/"+encodeURIComponent(e)}function V1e(t){var e=t.split("/"),n=decodeURIComponent(e[0]),r=decodeURIComponent(e[1]);return{senderKey:n,sessionId:r}}class Qv{constructor(){I(this,"migrationState",E1.NOT_STARTED),I(this,"account",null),I(this,"crossSigningKeys",null),I(this,"privateKeys",{}),I(this,"sessions",{}),I(this,"inboundGroupSessions",{}),I(this,"inboundGroupSessionsWithheld",{}),I(this,"rooms",{}),I(this,"sessionsNeedingBackup",{})}containsData(){var e=this;return Z(function*(){return e.account!==null})()}startup(){var e=this;return Z(function*(){return e})()}deleteAllData(){return Promise.resolve()}getMigrationState(){var e=this;return Z(function*(){return e.migrationState})()}setMigrationState(e){var n=this;return Z(function*(){n.migrationState=e})()}getAccount(e,n){n(this.account)}storeAccount(e,n){this.account=n}getCrossSigningKeys(e,n){n(this.crossSigningKeys)}getSecretStorePrivateKey(e,n,r){var o=this.privateKeys[r];n(o||null)}storeSecretStorePrivateKey(e,n,r){this.privateKeys[n]=r}countEndToEndSessions(e,n){var r=0;for(var o of Object.values(this.sessions))r+=Object.keys(o).length;n(r)}getEndToEndSession(e,n,r,o){var i=this.sessions[e]||{};o(i[n]||null)}getEndToEndSessions(e,n,r){r(this.sessions[e]||{})}storeEndToEndSession(e,n,r,o){var i=this.sessions[e];i===void 0&&(i={},this.sessions[e]=i),Zv(i,n,r)}getEndToEndSessionsBatch(){var e=this;return Z(function*(){var n=[];for(var r of Object.values(e.sessions))for(var o of Object.values(r))if(n.push(o),n.length>=Q1)return n;return n.length===0?null:n})()}deleteEndToEndSessionsBatch(e){var n=this;return Z(function*(){for(var{deviceKey:r,sessionId:o}of e){var i=n.sessions[r]||{};delete i[o],Object.keys(i).length===0&&delete n.sessions[r]}})()}getEndToEndInboundGroupSession(e,n,r,o){var i=Xv(e,n);o(this.inboundGroupSessions[i]||null,this.inboundGroupSessionsWithheld[i]||null)}storeEndToEndInboundGroupSession(e,n,r,o){var i=Xv(e,n);this.inboundGroupSessions[i]=r}countEndToEndInboundGroupSessions(){var e=this;return Z(function*(){return Object.keys(e.inboundGroupSessions).length})()}getEndToEndInboundGroupSessionsBatch(){var e=this;return Z(function*(){var n=[];for(var[r,o]of Object.entries(e.inboundGroupSessions))if(n.push(lz(lz({},V1e(r)),{},{sessionData:o,needsBackup:r in e.sessionsNeedingBackup})),n.length>=Q1)return n;return n.length===0?null:n})()}deleteEndToEndInboundGroupSessionsBatch(e){var n=this;return Z(function*(){for(var{senderKey:r,sessionId:o}of e){var i=Xv(r,o);delete n.inboundGroupSessions[i]}})()}getEndToEndRooms(e,n){n(this.rooms)}markSessionsNeedingBackup(e){for(var n of e){var r=Xv(n.senderKey,n.sessionId);this.sessionsNeedingBackup[r]=!0}return Promise.resolve()}doTxn(e,n,r){return Promise.resolve(r(null))}}var q1e=/^(?:(?:\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})|(?:\[[\dA-Fa-f:.]{2,45}])|(?:[A-Za-z\d\-.]{1,255}))(?::\d{1,5})?$/;function H1e(t){var e=q1e.exec(t);return(e==null?void 0:e[0])===t}var $1e=/^[\w-]+$/;function W1e(t){var e=$1e.exec(t);return(e==null?void 0:e[0])===t}function eb(t,e,n,r,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0;if(typeof e!="string"||!e)return"";if(!e.startsWith("mxc://"))return i?e:"";var[l,c,...d]=e.slice(6).split("/");if(d.length>0||!H1e(l)||!W1e(c))return"";u&&(s=!0);var F,h=!!n||!!r||!!o,m=h?"thumbnail":"download";u?F="/_matrix/client/v1/media/".concat(m):F="/_matrix/media/v3/".concat(m);var D=new URL("".concat(F,"/").concat(l,"/").concat(c),t);return n&&D.searchParams.set("width",Math.round(n).toString()),r&&D.searchParams.set("height",Math.round(r).toString()),o&&D.searchParams.set("method",o),typeof s=="boolean"&&D.searchParams.set("allow_redirect",JSON.stringify(s)),D.href}var cz={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(Qe,function(){var e=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],i={},s=null;function u(g,p){var _=g[p];if(typeof _.bind=="function")return _.bind(g);try{return Function.prototype.bind.call(_,g)}catch{return function(){return Function.prototype.apply.apply(_,[g,arguments])}}}function l(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(g){return g==="debug"&&(g="log"),typeof console===n?!1:g==="trace"&&r?l:console[g]!==void 0?u(console,g):console.log!==void 0?u(console,"log"):e}function d(){for(var g=this.getLevel(),p=0;p<o.length;p++){var _=o[p];this[_]=p<g?e:this.methodFactory(_,g,this.name)}if(this.log=this.debug,typeof console===n&&g<this.levels.SILENT)return"No console available for logging"}function F(g){return function(){typeof console!==n&&(d.call(this),this[g].apply(this,arguments))}}function h(g,p,_){return c(g)||F.apply(this,arguments)}function m(g,p){var _=this,v,E,b,k="loglevel";typeof g=="string"?k+=":"+g:typeof g=="symbol"&&(k=void 0);function C(j){var R=(o[j]||"silent").toUpperCase();if(!(typeof window===n||!k)){try{window.localStorage[k]=R;return}catch{}try{window.document.cookie=encodeURIComponent(k)+"="+R+";"}catch{}}}function S(){var j;if(!(typeof window===n||!k)){try{j=window.localStorage[k]}catch{}if(typeof j===n)try{var R=window.document.cookie,M=encodeURIComponent(k),z=R.indexOf(M+"=");z!==-1&&(j=/^([^;]+)/.exec(R.slice(z+M.length+1))[1])}catch{}return _.levels[j]===void 0&&(j=void 0),j}}function w(){if(!(typeof window===n||!k)){try{window.localStorage.removeItem(k)}catch{}try{window.document.cookie=encodeURIComponent(k)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function A(j){var R=j;if(typeof R=="string"&&_.levels[R.toUpperCase()]!==void 0&&(R=_.levels[R.toUpperCase()]),typeof R=="number"&&R>=0&&R<=_.levels.SILENT)return R;throw new TypeError("log.setLevel() called with invalid level: "+j)}_.name=g,_.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},_.methodFactory=p||h,_.getLevel=function(){return b??E??v},_.setLevel=function(j,R){return b=A(j),R!==!1&&C(b),d.call(_)},_.setDefaultLevel=function(j){E=A(j),S()||_.setLevel(j,!1)},_.resetLevel=function(){b=null,w(),d.call(_)},_.enableAll=function(j){_.setLevel(_.levels.TRACE,j)},_.disableAll=function(j){_.setLevel(_.levels.SILENT,j)},_.rebuild=function(){if(s!==_&&(v=A(s.getLevel())),d.call(_),s===_)for(var j in i)i[j].rebuild()},v=A(s?s.getLevel():"WARN");var O=S();O!=null&&(b=A(O)),d.call(_)}s=new m,s.getLogger=function(g){if(typeof g!="symbol"&&typeof g!="string"||g==="")throw new TypeError("You must supply a name when creating a logger.");var p=i[g];return p||(p=i[g]=new m(g,s.methodFactory)),p};var D=typeof window!==n?window.log:void 0;return s.noConflict=function(){return typeof window!==n&&window.log===s&&(window.log=D),s},s.getLoggers=function(){return i},s.default=s,s})})(cz);var K1e=cz.exports;const zk=Rr(K1e);var G1e="matrix";zk.methodFactory=function(t,e,n){return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];this.prefix&&o.unshift(this.prefix);var s=t==="error"||t==="warn"||t==="trace"||t==="info"||t==="debug";return s?console[t](...o):console.log(...o)}};function dz(t){var e=G1e+(t===void 0?"":"-".concat(t)),n=zk.getLogger(e);return n.getChild===void 0&&(n.prefix=t,n.getChild=r=>{var o=dz((t??"")+r);return o.methodFactory=n.methodFactory,o.rebuild(),o},n.setLevel(zk.levels.DEBUG,!1)),n}Y=dz(),Loe=class{constructor(t,e){this.parent=t,I(this,"name",void 0),this.name=e+":"}trace(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.parent.trace(this.name,...e)}debug(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.parent.debug(this.name,...e)}info(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.parent.info(this.name,...e)}warn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.parent.warn(this.name,...e)}error(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.parent.error(this.name,...e)}};var Uk={exports:{}},TF=typeof Reflect=="object"?Reflect:null,hz=TF&&typeof TF.apply=="function"?TF.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)},tb;TF&&typeof TF.ownKeys=="function"?tb=TF.ownKeys:Object.getOwnPropertySymbols?tb=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:tb=function(t){return Object.getOwnPropertyNames(t)};function Y1e(t){console&&console.warn&&console.warn(t)}var Fz=Number.isNaN||function(t){return t!==t};function dr(){dr.init.call(this)}Uk.exports=dr,Uk.exports.once=Q1e,dr.EventEmitter=dr,dr.prototype._events=void 0,dr.prototype._eventsCount=0,dr.prototype._maxListeners=void 0;var mz=10;function nb(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(dr,"defaultMaxListeners",{enumerable:!0,get:function(){return mz},set:function(t){if(typeof t!="number"||t<0||Fz(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");mz=t}}),dr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},dr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Fz(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Dz(t){return t._maxListeners===void 0?dr.defaultMaxListeners:t._maxListeners}dr.prototype.getMaxListeners=function(){return Dz(this)},dr.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r=t==="error",o=this._events;if(o!==void 0)r=r&&o.error===void 0;else if(!r)return!1;if(r){var i;if(e.length>0&&(i=e[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var u=o[t];if(u===void 0)return!1;if(typeof u=="function")hz(u,this,e);else for(var l=u.length,c=vz(u,l),n=0;n<l;++n)hz(c[n],this,e);return!0};function gz(t,e,n,r){var o,i,s;if(nb(n),i=t._events,i===void 0?(i=t._events=Object.create(null),t._eventsCount=0):(i.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),s=i[e]),s===void 0)s=i[e]=n,++t._eventsCount;else if(typeof s=="function"?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),o=Dz(t),o>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,Y1e(u)}return t}dr.prototype.addListener=function(t,e){return gz(this,t,e,!1)},dr.prototype.on=dr.prototype.addListener,dr.prototype.prependListener=function(t,e){return gz(this,t,e,!0)};function Z1e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function pz(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=Z1e.bind(r);return o.listener=n,r.wrapFn=o,o}dr.prototype.once=function(t,e){return nb(e),this.on(t,pz(this,t,e)),this},dr.prototype.prependOnceListener=function(t,e){return nb(e),this.prependListener(t,pz(this,t,e)),this},dr.prototype.removeListener=function(t,e){var n,r,o,i,s;if(nb(e),r=this._events,r===void 0)return this;if(n=r[t],n===void 0)return this;if(n===e||n.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if(typeof n!="function"){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){s=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():J1e(n,o),n.length===1&&(r[t]=n[0]),r.removeListener!==void 0&&this.emit("removeListener",t,s||e)}return this},dr.prototype.off=dr.prototype.removeListener,dr.prototype.removeAllListeners=function(t){var e,n,r;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var o=Object.keys(n),i;for(r=0;r<o.length;++r)i=o[r],i!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=n[t],typeof e=="function")this.removeListener(t,e);else if(e!==void 0)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this};function fz(t,e,n){var r=t._events;if(r===void 0)return[];var o=r[e];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?X1e(o):vz(o,o.length)}dr.prototype.listeners=function(t){return fz(this,t,!0)},dr.prototype.rawListeners=function(t){return fz(this,t,!1)},dr.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):_z.call(t,e)},dr.prototype.listenerCount=_z;function _z(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}dr.prototype.eventNames=function(){return this._eventsCount>0?tb(this._events):[]};function vz(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function J1e(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function X1e(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function Q1e(t,e){return new Promise(function(n,r){function o(s){t.removeListener(e,i),r(s)}function i(){typeof t.removeListener=="function"&&t.removeListener("error",o),n([].slice.call(arguments))}bz(t,e,i,{once:!0}),e!=="error"&&ehe(t,o,{once:!0})})}function ehe(t,e,n){typeof t.on=="function"&&bz(t,"error",e,n)}function bz(t,e,n,r){if(typeof t.on=="function")r.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function o(i){r.once&&t.removeEventListener(e,o),n(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}var wp=Uk.exports;const Cz=Rr(wp);var Ez=function(t){return t.NewListener="newListener",t.RemoveListener="removeListener",t.Error="error",t}({});Cr=class extends wp.EventEmitter{addListener(t,e){return super.addListener(t,e)}emit(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return super.emit(t,...n)}emitPromised(t){var e=arguments,n=this;return Z(function*(){for(var r=e.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=e[i];var s=n.listeners(t);return Promise.allSettled(s.map(u=>u(...o))).then(()=>s.length>0)})()}listenerCount(t){return super.listenerCount(t)}listeners(t){return super.listeners(t)}off(t,e){return super.off(t,e)}on(t,e){return super.on(t,e)}once(t,e){return super.once(t,e)}prependListener(t,e){return super.prependListener(t,e)}prependOnceListener(t,e){return super.prependOnceListener(t,e)}removeAllListeners(t){return t===void 0?super.removeAllListeners():super.removeAllListeners(t)}removeListener(t,e){return super.removeListener(t,e)}rawListeners(t){return super.rawListeners(t)}};let Pn,kp,Tl,rb,ob,ib,Vk,cu,qk,ab,Hk,Qc,sb,yz,$k,Sp,Wk,oo;Ce=function(t){return t.RoomCanonicalAlias="m.room.canonical_alias",t.RoomCreate="m.room.create",t.RoomJoinRules="m.room.join_rules",t.RoomMember="m.room.member",t.RoomThirdPartyInvite="m.room.third_party_invite",t.RoomPowerLevels="m.room.power_levels",t.RoomName="m.room.name",t.RoomTopic="m.room.topic",t.RoomAvatar="m.room.avatar",t.RoomPinnedEvents="m.room.pinned_events",t.RoomEncryption="m.room.encryption",t.RoomHistoryVisibility="m.room.history_visibility",t.RoomGuestAccess="m.room.guest_access",t.RoomServerAcl="m.room.server_acl",t.RoomTombstone="m.room.tombstone",t.RoomPredecessor="org.matrix.msc3946.room_predecessor",t.PolicyRuleUser="m.policy.rule.user",t.PolicyRuleRoom="m.policy.rule.room",t.PolicyRuleServer="m.policy.rule.server",t.SpaceChild="m.space.child",t.SpaceParent="m.space.parent",t.RoomRedaction="m.room.redaction",t.RoomMessage="m.room.message",t.RoomMessageEncrypted="m.room.encrypted",t.Sticker="m.sticker",t.CallInvite="m.call.invite",t.CallCandidates="m.call.candidates",t.CallAnswer="m.call.answer",t.CallHangup="m.call.hangup",t.CallReject="m.call.reject",t.CallSelectAnswer="m.call.select_answer",t.CallNegotiate="m.call.negotiate",t.CallSDPStreamMetadataChanged="m.call.sdp_stream_metadata_changed",t.CallSDPStreamMetadataChangedPrefix="org.matrix.call.sdp_stream_metadata_changed",t.CallReplaces="m.call.replaces",t.CallAssertedIdentity="m.call.asserted_identity",t.CallAssertedIdentityPrefix="org.matrix.call.asserted_identity",t.CallEncryptionKeysPrefix="io.element.call.encryption_keys",t.KeyVerificationRequest="m.key.verification.request",t.KeyVerificationStart="m.key.verification.start",t.KeyVerificationCancel="m.key.verification.cancel",t.KeyVerificationMac="m.key.verification.mac",t.KeyVerificationDone="m.key.verification.done",t.KeyVerificationKey="m.key.verification.key",t.KeyVerificationAccept="m.key.verification.accept",t.KeyVerificationReady="m.key.verification.ready",t.RoomMessageFeedback="m.room.message.feedback",t.Reaction="m.reaction",t.PollStart="org.matrix.msc3381.poll.start",t.Typing="m.typing",t.Receipt="m.receipt",t.Presence="m.presence",t.FullyRead="m.fully_read",t.Tag="m.tag",t.SpaceOrder="org.matrix.msc3230.space_order",t.PushRules="m.push_rules",t.Direct="m.direct",t.IgnoredUserList="m.ignored_user_list",t.RoomKey="m.room_key",t.RoomKeyRequest="m.room_key_request",t.ForwardedRoomKey="m.forwarded_room_key",t.Dummy="m.dummy",t.SecretRequest="m.secret.request",t.SecretSend="m.secret.send",t.GroupCallPrefix="org.matrix.msc3401.call",t.GroupCallMemberPrefix="org.matrix.msc3401.call.member",t.CallNotify="org.matrix.msc4075.call.notify",t}({}),Pn=function(t){return t.Annotation="m.annotation",t.Replace="m.replace",t.Reference="m.reference",t.Thread="m.thread",t}({}),or=function(t){return t.Text="m.text",t.Emote="m.emote",t.Notice="m.notice",t.Image="m.image",t.File="m.file",t.Audio="m.audio",t.Location="m.location",t.Video="m.video",t.KeyVerificationRequest="m.key.verification.request",t}({}),kp="type",Tl=function(t){return t.Space="m.space",t.UnstableCall="org.matrix.msc3417.call",t.ElementVideo="io.element.video",t}({}),WD="org.matrix.msgid",rb=new ro("m.room.purpose","org.matrix.msc3088.purpose"),ob=new ro("m.enabled","org.matrix.msc3088.enabled"),ib=new ro("m.data_tree","org.matrix.msc3089.data_tree"),Vk=new ro("m.leaf","org.matrix.msc3089.leaf"),cu=new ro("m.branch","org.matrix.msc3089.branch"),qk=new ro("m.room.marker","org.matrix.msc2716.marker"),ab=new ro("with_rel_types","org.matrix.msc3912.with_relations"),Hk=new ro("io.element.functional_members","io.element.functional_members"),Qc=new ro("m.visibility","org.matrix.msc3531.visibility"),sb=new ro("enabled","org.matrix.msc3881.enabled"),yz=new ro("device_id","org.matrix.msc3881.device_id"),$k=new ro("m.local_notification_settings","org.matrix.msc3890.local_notification_settings"),Sp=new ro("thread_id","org.matrix.msc4023.thread_id"),Wk=new fp("membership","io.element.msc4115.membership"),an=function(t){return t.Ban="ban",t.Invite="invite",t.Join="join",t.Knock="knock",t.Leave="leave",t}({}),oo=function(t){return t.Membership="RoomMember.membership",t.Name="RoomMember.name",t.PowerLevel="RoomMember.powerLevel",t.Typing="RoomMember.typing",t}({});class jp extends Cr{constructor(e,n){super(),this.roomId=e,this.userId=n,I(this,"_isOutOfBand",!1),I(this,"modified",-1),I(this,"requestedProfileInfo",!1),I(this,"typing",!1),I(this,"name",void 0),I(this,"rawDisplayName",void 0),I(this,"powerLevel",0),I(this,"powerLevelNorm",0),I(this,"user",void 0),I(this,"membership",void 0),I(this,"disambiguate",!1),I(this,"events",{}),this.name=n,this.rawDisplayName=n,this.updateModifiedTime()}markOutOfBand(){this._isOutOfBand=!0}isOutOfBand(){return this._isOutOfBand}setMembershipEvent(e,n){var r,o,i=(r=e.getDirectionalContent().displayname)!==null&&r!==void 0?r:"";if(e.getType()===Ce.RoomMember){this._isOutOfBand=!1,this.events.member=e;var s=this.membership;this.membership=e.getDirectionalContent().membership,this.membership===void 0&&Y.trace("membership event with membership undefined (forwardLooking: ".concat(e.forwardLooking,")!"),e.getContent(),"prevcontent is ",e.getPrevContent()),this.disambiguate=rhe(this.userId,i,n);var u=this.name;this.name=ohe(this.userId,i,this.disambiguate),this.rawDisplayName=Ok((o=e.getDirectionalContent().displayname)!==null&&o!==void 0?o:""),(!this.rawDisplayName||!J1(this.rawDisplayName))&&(this.rawDisplayName=this.userId),s!==this.membership&&(this.updateModifiedTime(),this.emit(oo.Membership,e,this,s)),u!==this.name&&(this.updateModifiedTime(),this.emit(oo.Name,e,this,u))}}setPowerLevelEvent(e){if(!(e.getType()!==Ce.RoomPowerLevels||e.getStateKey()!=="")){var n=e.getDirectionalContent(),r=n.users_default||0,o=n.users||{};Object.values(o).forEach(u=>{r=Math.max(r,u)});var i=this.powerLevel,s=this.powerLevelNorm;o[this.userId]!==void 0&&Number.isInteger(o[this.userId])?this.powerLevel=o[this.userId]:n.users_default!==void 0?this.powerLevel=n.users_default:this.powerLevel=0,this.powerLevelNorm=0,r>0&&(this.powerLevelNorm=this.powerLevel*100/r),(i!==this.powerLevel||s!==this.powerLevelNorm)&&(this.updateModifiedTime(),this.emit(oo.PowerLevel,e,this))}}setTypingEvent(e){if(e.getType()==="m.typing"){var n=this.typing;this.typing=!1;var r=e.getContent().user_ids;Array.isArray(r)&&(r.indexOf(this.userId)!==-1&&(this.typing=!0),n!==this.typing&&(this.updateModifiedTime(),this.emit(oo.Typing,e,this)))}}updateModifiedTime(){this.modified=Date.now()}getLastModifiedTime(){return this.modified}isKicked(){return this.membership===an.Leave&&this.events.member!==void 0&&this.events.member.getSender()!==this.events.member.getStateKey()}getDMInviter(){if(this.events.member){var e=this.events.member,n=e.getContent(),r=e.getSender();if(n.membership===an.Join&&(n=e.getPrevContent(),r=e.getUnsigned().prev_sender),n.membership===an.Invite&&n.is_direct)return r}}getAvatarUrl(e,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=arguments.length>5?arguments[5]:void 0,u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1,l=this.getMxcAvatarUrl();if(!l&&!i)return null;var c=eb(e,l,n,r,o,s,void 0,u);return c||null}getMxcAvatarUrl(){if(this.events.member)return this.events.member.getDirectionalContent().avatar_url;if(this.user)return this.user.avatarUrl}}var the=/@.+:.+/,nhe=/[\u200E\u200F\u202A-\u202F]/;function rhe(t,e,n){if(!e||e===t||!n)return!1;var r=J1(e);if(!r)return!1;if(the.test(r)||nhe.test(e))return!0;var o=n.getUserIdsWithDisplayName(e);return!!o.some(i=>i!==t)}function ohe(t,e,n){return!e||e===t?t:n?Ok(e)+" ("+t+")":J1(e)?Ok(e):t}var Si={},ub={},Bp={};Object.defineProperty(Bp,"__esModule",{value:!0}),Bp.NamespacedMap=void 0;function ihe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ahe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,u;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,u=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw u}}}}function ahe(t,e){if(t){if(typeof t=="string")return xz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xz(t,e)}}function xz(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function she(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uhe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lhe(t,e,n){return uhe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function che(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dhe=function(){function t(e){if(she(this,t),che(this,"internalMap",new Map),e){var n=ihe(e),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;this.set(o[0],o[1])}}catch(i){n.e(i)}finally{n.f()}}}return lhe(t,[{key:"get",value:function(e){return e.name&&this.internalMap.has(e.name)?this.internalMap.get(e.name):e.altName&&this.internalMap.has(e.altName)?this.internalMap.get(e.altName):null}},{key:"set",value:function(e,n){e.name&&this.internalMap.set(e.name,n),e.altName&&this.internalMap.set(e.altName,n)}},{key:"has",value:function(e){return!!this.get(e)}},{key:"delete",value:function(e){e.name&&this.internalMap.delete(e.name),e.altName&&this.internalMap.delete(e.altName)}},{key:"hasNamespaced",value:function(e){return this.internalMap.has(e)}},{key:"getNamespaced",value:function(e){return this.internalMap.get(e)}}]),t}();Bp.NamespacedMap=dhe;var Il={};function Kk(t){"@babel/helpers - typeof";return Kk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kk(t)}Object.defineProperty(Il,"__esModule",{value:!0}),Il.InvalidEventError=void 0;function hhe(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function Fhe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mhe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ap(t,e)}function Dhe(t){var e=wz();return function(){var n=Tp(t),r;if(e){var o=Tp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ghe(this,r)}}function ghe(t,e){if(e&&(Kk(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return phe(t)}function phe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gk(t){var e=typeof Map=="function"?new Map:void 0;return Gk=function(n){if(n===null||!fhe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return lb(n,arguments,Tp(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ap(r,n)},Gk(t)}function lb(t,e,n){return wz()?lb=Reflect.construct:lb=function(r,o,i){var s=[null];s.push.apply(s,o);var u=Function.bind.apply(r,s),l=new u;return i&&Ap(l,i.prototype),l},lb.apply(null,arguments)}function wz(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fhe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ap(t,e){return Ap=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Ap(t,e)}function Tp(t){return Tp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tp(t)}var _he=function(t){mhe(n,t);var e=Dhe(n);function n(r){return Fhe(this,n),e.call(this,r)}return hhe(n)}(Gk(Error));Il.InvalidEventError=_he;var IF={},du={},ed={};Object.defineProperty(ed,"__esModule",{value:!0}),ed.ExtensibleEvent=void 0;function vhe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bhe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Che(t,e,n){return bhe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Ehe=function(){function t(e){vhe(this,t),this.wireFormat=e}return Che(t,[{key:"wireContent",get:function(){return this.wireFormat.content}}]),t}();ed.ExtensibleEvent=Ehe;var Ip={};Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.isOptionalAString=yhe,Ip.isProvided=kz;function yhe(t){return kz(t)&&typeof t=="string"}function kz(t){return t!=null}var io={},Ss={};function Yk(t){"@babel/helpers - typeof";return Yk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yk(t)}Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.UnstableValue=Ss.NamespacedValue=void 0;function xhe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),Zk(t,e)}function Zk(t,e){return Zk=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Zk(t,e)}function whe(t){var e=jhe();return function(){var n=cb(t),r;if(e){var o=cb(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return khe(this,r)}}function khe(t,e){if(e&&(Yk(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return She(t)}function She(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jhe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cb(t){return cb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cb(t)}function Sz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bhe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jz(t,e,n){return e&&Bhe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Bz=function(){function t(e,n){if(Sz(this,t),this.stable=e,this.unstable=n,!this.unstable&&!this.stable)throw new Error("One of stable or unstable values must be supplied")}return jz(t,[{key:"name",get:function(){return this.stable?this.stable:this.unstable}},{key:"altName",get:function(){return this.stable?this.unstable:null}},{key:"matches",value:function(e){return!!this.name&&this.name===e||!!this.altName&&this.altName===e}},{key:"findIn",value:function(e){var n;return this.name&&(n=e==null?void 0:e[this.name]),!n&&this.altName&&(n=e==null?void 0:e[this.altName]),n}},{key:"includedIn",value:function(e){var n=!1;return this.name&&(n=e.includes(this.name)),!n&&this.altName&&(n=e.includes(this.altName)),n}}]),t}();Ss.NamespacedValue=Bz;var Ahe=function(t){xhe(n,t);var e=whe(n);function n(r,o){var i;if(Sz(this,n),i=e.call(this,r,o),!i.unstable)throw new Error("Unstable value must be supplied");return i}return jz(n,[{key:"name",get:function(){return this.unstable}},{key:"altName",get:function(){return this.stable}}]),n}(Bz);Ss.UnstableValue=Ahe,Object.defineProperty(io,"__esModule",{value:!0}),io.M_TEXT=io.M_NOTICE=io.M_MESSAGE=io.M_HTML=io.M_EMOTE=void 0;var Rp=Ss,The=new Rp.UnstableValue("m.message","org.matrix.msc1767.message");io.M_MESSAGE=The;var Ihe=new Rp.UnstableValue("m.text","org.matrix.msc1767.text");io.M_TEXT=Ihe;var Rhe=new Rp.UnstableValue("m.html","org.matrix.msc1767.html");io.M_HTML=Rhe;var Ohe=new Rp.UnstableValue("m.emote","org.matrix.msc1767.emote");io.M_EMOTE=Ohe;var Mhe=new Rp.UnstableValue("m.notice","org.matrix.msc1767.notice");io.M_NOTICE=Mhe;var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.isEventTypeSame=Phe;function Phe(t,e){if(typeof t=="string")return typeof e=="string"?e===t:e.matches(t);if(typeof e=="string")return t.matches(e);var n=e,r=t;return n.matches(r.name)||n.matches(r.altName)}function Jk(t){"@babel/helpers - typeof";return Jk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jk(t)}Object.defineProperty(du,"__esModule",{value:!0}),du.MessageEvent=void 0;var Lhe=ed,Op=Ip,Xk=Il,ga=io,Nhe=Rl;function Az(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Tz(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Az(Object(n),!0).forEach(function(r){td(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Az(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zhe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Iz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Uhe(t,e,n){return Iz(t.prototype,e),Iz(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vhe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qk(t,e)}function Qk(t,e){return Qk=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Qk(t,e)}function qhe(t){var e=$he();return function(){var n=hb(t),r;if(e){var o=hb(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Hhe(this,r)}}function Hhe(t,e){if(e&&(Jk(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return db(t)}function db(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $he(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hb(t){return hb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hb(t)}function td(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Whe=function(t){Vhe(n,t);var e=qhe(n);function n(r){var o;zhe(this,n),o=e.call(this,r),td(db(o),"text",void 0),td(db(o),"html",void 0),td(db(o),"renderings",void 0);var i=ga.M_MESSAGE.findIn(o.wireContent),s=ga.M_TEXT.findIn(o.wireContent),u=ga.M_HTML.findIn(o.wireContent);if((0,Op.isProvided)(i)){if(!Array.isArray(i))throw new Xk.InvalidEventError("m.message contents must be an array");var l=i.find(function(d){return!(0,Op.isProvided)(d.mimetype)||d.mimetype==="text/plain"}),c=i.find(function(d){return d.mimetype==="text/html"});if(!l)throw new Xk.InvalidEventError("m.message is missing a plain text representation");o.text=l.body,o.html=c==null?void 0:c.body,o.renderings=i}else if((0,Op.isOptionalAString)(s))o.text=s,o.html=u,o.renderings=[{body:s,mimetype:"text/plain"}],o.html&&o.renderings.push({body:o.html,mimetype:"text/html"});else throw new Xk.InvalidEventError("Missing textual representation for event");return o}return Uhe(n,[{key:"isEmote",get:function(){return ga.M_EMOTE.matches(this.wireFormat.type)||(0,Op.isProvided)(ga.M_EMOTE.findIn(this.wireFormat.content))}},{key:"isNotice",get:function(){return ga.M_NOTICE.matches(this.wireFormat.type)||(0,Op.isProvided)(ga.M_NOTICE.findIn(this.wireFormat.content))}},{key:"isEquivalentTo",value:function(r){return(0,Nhe.isEventTypeSame)(r,ga.M_MESSAGE)}},{key:"serializeMMessageOnly",value:function(){var r=td({},ga.M_MESSAGE.name,this.renderings);if(this.renderings.length===1){var o=this.renderings[0].mimetype;(o===void 0||o==="text/plain")&&(r=td({},ga.M_TEXT.name,this.renderings[0].body))}return r}},{key:"serialize",value:function(){var r;return{type:"m.room.message",content:Tz(Tz({},this.serializeMMessageOnly()),{},{body:this.text,msgtype:"m.text",format:this.html?"org.matrix.custom.html":void 0,formatted_body:(r=this.html)!==null&&r!==void 0?r:void 0})}}}],[{key:"from",value:function(r,o){var i;return new n({type:ga.M_MESSAGE.name,content:(i={},td(i,ga.M_TEXT.name,r),td(i,ga.M_HTML.name,o),i)})}}]),n}(Lhe.ExtensibleEvent);du.MessageEvent=Whe;var RF={};function e9(t){"@babel/helpers - typeof";return e9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e9(t)}Object.defineProperty(RF,"__esModule",{value:!0}),RF.NoticeEvent=void 0;var Khe=du,Fb=io,Ghe=Rl;function Rz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yhe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Oz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zhe(t,e,n){return Oz(t.prototype,e),Oz(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Mp(){return typeof Reflect<"u"&&Reflect.get?Mp=Reflect.get:Mp=function(t,e,n){var r=Jhe(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Mp.apply(this,arguments)}function Jhe(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=eh(t),t!==null););return t}function Xhe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&t9(t,e)}function t9(t,e){return t9=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},t9(t,e)}function Qhe(t){var e=n0e();return function(){var n=eh(t),r;if(e){var o=eh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return e0e(this,r)}}function e0e(t,e){if(e&&(e9(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t0e(t)}function t0e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function eh(t){return eh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},eh(t)}var r0e=function(t){Xhe(n,t);var e=Qhe(n);function n(r){return Yhe(this,n),e.call(this,r)}return Zhe(n,[{key:"isNotice",get:function(){return!0}},{key:"isEquivalentTo",value:function(r){return(0,Ghe.isEventTypeSame)(r,Fb.M_NOTICE)||Mp(eh(n.prototype),"isEquivalentTo",this).call(this,r)}},{key:"serialize",value:function(){var r=Mp(eh(n.prototype),"serialize",this).call(this);return r.content.msgtype="m.notice",r}}],[{key:"from",value:function(r,o){var i;return new n({type:Fb.M_NOTICE.name,content:(i={},Rz(i,Fb.M_TEXT.name,r),Rz(i,Fb.M_HTML.name,o),i)})}}]),n}(Khe.MessageEvent);RF.NoticeEvent=r0e;var OF={};function n9(t){"@babel/helpers - typeof";return n9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n9(t)}Object.defineProperty(OF,"__esModule",{value:!0}),OF.EmoteEvent=void 0;var o0e=du,mb=io,i0e=Rl;function Mz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a0e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s0e(t,e,n){return Pz(t.prototype,e),Pz(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pp(){return typeof Reflect<"u"&&Reflect.get?Pp=Reflect.get:Pp=function(t,e,n){var r=u0e(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},Pp.apply(this,arguments)}function u0e(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=th(t),t!==null););return t}function l0e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r9(t,e)}function r9(t,e){return r9=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},r9(t,e)}function c0e(t){var e=F0e();return function(){var n=th(t),r;if(e){var o=th(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return d0e(this,r)}}function d0e(t,e){if(e&&(n9(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h0e(t)}function h0e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function F0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function th(t){return th=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},th(t)}var m0e=function(t){l0e(n,t);var e=c0e(n);function n(r){return a0e(this,n),e.call(this,r)}return s0e(n,[{key:"isEmote",get:function(){return!0}},{key:"isEquivalentTo",value:function(r){return(0,i0e.isEventTypeSame)(r,mb.M_EMOTE)||Pp(th(n.prototype),"isEquivalentTo",this).call(this,r)}},{key:"serialize",value:function(){var r=Pp(th(n.prototype),"serialize",this).call(this);return r.content.msgtype="m.emote",r}}],[{key:"from",value:function(r,o){var i;return new n({type:mb.M_EMOTE.name,content:(i={},Mz(i,mb.M_TEXT.name,r),Mz(i,mb.M_HTML.name,o),i)})}}]),n}(o0e.MessageEvent);OF.EmoteEvent=m0e,Object.defineProperty(IF,"__esModule",{value:!0}),IF.LEGACY_M_ROOM_MESSAGE=void 0,IF.parseMRoomMessage=_0e;var Lz=du,D0e=RF,g0e=OF,p0e=Ss,nd=io;function Nz(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ua(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nz(Object(n),!0).forEach(function(r){nh(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nz(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function nh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f0e=new p0e.NamespacedValue("m.room.message");IF.LEGACY_M_ROOM_MESSAGE=f0e;function _0e(t){var e,n,r;if(nd.M_MESSAGE.findIn(t.content)||nd.M_TEXT.findIn(t.content))return new Lz.MessageEvent(t);var o=(e=t.content)===null||e===void 0?void 0:e.msgtype,i=(n=t.content)===null||n===void 0?void 0:n.body,s=((r=t.content)===null||r===void 0?void 0:r.format)==="org.matrix.custom.html"?t.content.formatted_body:null;if(o==="m.text"){var u;return new Lz.MessageEvent(Ua(Ua({},t),{},{content:Ua(Ua({},t.content),{},(u={},nh(u,nd.M_TEXT.name,i),nh(u,nd.M_HTML.name,s),u))}))}else if(o==="m.notice"){var l;return new D0e.NoticeEvent(Ua(Ua({},t),{},{content:Ua(Ua({},t.content),{},(l={},nh(l,nd.M_TEXT.name,i),nh(l,nd.M_HTML.name,s),l))}))}else if(o==="m.emote"){var c;return new g0e.EmoteEvent(Ua(Ua({},t),{},{content:Ua(Ua({},t.content),{},(c={},nh(c,nd.M_TEXT.name,i),nh(c,nd.M_HTML.name,s),c))}))}else return null}var Db={};Object.defineProperty(Db,"__esModule",{value:!0}),Db.parseMMessage=E0e;var v0e=du,zz=io,b0e=OF,C0e=RF;function E0e(t){return zz.M_EMOTE.matches(t.type)?new b0e.EmoteEvent(t):zz.M_NOTICE.matches(t.type)?new C0e.NoticeEvent(t):new v0e.MessageEvent(t)}var ni={};Object.defineProperty(ni,"__esModule",{value:!0}),ni.M_POLL_START=ni.M_POLL_RESPONSE=ni.M_POLL_KIND_UNDISCLOSED=ni.M_POLL_KIND_DISCLOSED=ni.M_POLL_END=void 0;var Lp=Ss,y0e=new Lp.UnstableValue("m.poll.disclosed","org.matrix.msc3381.poll.disclosed");ni.M_POLL_KIND_DISCLOSED=y0e;var x0e=new Lp.UnstableValue("m.poll.undisclosed","org.matrix.msc3381.poll.undisclosed");ni.M_POLL_KIND_UNDISCLOSED=x0e;var w0e=new Lp.UnstableValue("m.poll.start","org.matrix.msc3381.poll.start");ni.M_POLL_START=w0e;var k0e=new Lp.UnstableValue("m.poll.response","org.matrix.msc3381.poll.response");ni.M_POLL_RESPONSE=k0e;var S0e=new Lp.UnstableValue("m.poll.end","org.matrix.msc3381.poll.end");ni.M_POLL_END=S0e;var gb={},rh={};function o9(t){"@babel/helpers - typeof";return o9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o9(t)}Object.defineProperty(rh,"__esModule",{value:!0}),rh.PollStartEvent=rh.PollAnswerSubevent=void 0;var Ol=ni,Uz=du,Np=io,pb=Il,j0e=Ss,B0e=Rl,A0e=ed;function T0e(t){return M0e(t)||O0e(t)||R0e(t)||I0e()}function I0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R0e(t,e){if(t){if(typeof t=="string")return i9(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i9(t,e)}}function O0e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function M0e(t){if(Array.isArray(t))return i9(t)}function i9(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Vz(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function P0e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vz(Object(n),!0).forEach(function(r){Zi(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vz(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $z(t,e,n){return e&&Hz(t.prototype,e),n&&Hz(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Wz(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a9(t,e)}function a9(t,e){return a9=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},a9(t,e)}function Kz(t){var e=N0e();return function(){var n=fb(t),r;if(e){var o=fb(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return L0e(this,r)}}function L0e(t,e){if(e&&(o9(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oh(t)}function oh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function N0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fb(t){return fb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fb(t)}function Zi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Gz=function(t){Wz(n,t);var e=Kz(n);function n(r){var o;qz(this,n),o=e.call(this,r),Zi(oh(o),"id",void 0);var i=r.content.id;if(!i||typeof i!="string")throw new pb.InvalidEventError("Answer ID must be a non-empty string");return o.id=i,o}return $z(n,[{key:"serialize",value:function(){return{type:"org.matrix.sdk.poll.answer",content:P0e({id:this.id},this.serializeMMessageOnly())}}}],[{key:"from",value:function(r,o){return new n({type:"org.matrix.sdk.poll.answer",content:Zi({id:r},Np.M_TEXT.name,o)})}}]),n}(Uz.MessageEvent);rh.PollAnswerSubevent=Gz;var z0e=function(t){Wz(n,t);var e=Kz(n);function n(r){var o;qz(this,n),o=e.call(this,r),Zi(oh(o),"question",void 0),Zi(oh(o),"kind",void 0),Zi(oh(o),"rawKind",void 0),Zi(oh(o),"maxSelections",void 0),Zi(oh(o),"answers",void 0);var i=Ol.M_POLL_START.findIn(o.wireContent);if(!i.question)throw new pb.InvalidEventError("A question is required");if(o.question=new Uz.MessageEvent({type:"org.matrix.sdk.poll.question",content:i.question}),o.rawKind=i.kind,Ol.M_POLL_KIND_DISCLOSED.matches(o.rawKind)?o.kind=Ol.M_POLL_KIND_DISCLOSED:o.kind=Ol.M_POLL_KIND_UNDISCLOSED,o.maxSelections=Number.isFinite(i.max_selections)&&i.max_selections>0?i.max_selections:1,!Array.isArray(i.answers))throw new pb.InvalidEventError("Poll answers must be an array");var s=i.answers.slice(0,20).map(function(u){return new Gz({type:"org.matrix.sdk.poll.answer",content:u})});if(s.length<=0)throw new pb.InvalidEventError("No answers available");return o.answers=s,o}return $z(n,[{key:"isEquivalentTo",value:function(r){return(0,B0e.isEventTypeSame)(r,Ol.M_POLL_START)}},{key:"serialize",value:function(){var r;return{type:Ol.M_POLL_START.name,content:(r={},Zi(r,Ol.M_POLL_START.name,{question:this.question.serialize().content,kind:this.rawKind,max_selections:this.maxSelections,answers:this.answers.map(function(o){return o.serialize().content})}),Zi(r,Np.M_TEXT.name,"".concat(this.question.text,`
`).concat(this.answers.map(function(o,i){return"".concat(i+1,". ").concat(o.text)}).join(`
`))),r)}}}],[{key:"from",value:function(r,o,i){var s,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;return new n({type:Ol.M_POLL_START.name,content:(s={},Zi(s,Np.M_TEXT.name,r),Zi(s,Ol.M_POLL_START.name,{question:Zi({},Np.M_TEXT.name,r),kind:i instanceof j0e.NamespacedValue?i.name:i,max_selections:u,answers:o.map(function(l){return Zi({id:U0e()},Np.M_TEXT.name,l)})}),s)})}}]),n}(A0e.ExtensibleEvent);rh.PollStartEvent=z0e;var Yz="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";function U0e(){return T0e(Array(16)).map(function(){return Yz.charAt(Math.floor(Math.random()*Yz.length))}).join("")}var zp={},MF={};Object.defineProperty(MF,"__esModule",{value:!0}),MF.REFERENCE_RELATION=void 0;var V0e=Ss,q0e=new V0e.NamespacedValue("m.reference");MF.REFERENCE_RELATION=q0e;function s9(t){"@babel/helpers - typeof";return s9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s9(t)}Object.defineProperty(zp,"__esModule",{value:!0}),zp.PollResponseEvent=void 0;var H0e=ed,PF=ni,$0e=Il,u9=MF,W0e=Rl;function K0e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function G0e(t,e,n){return Zz(t.prototype,e),Zz(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Y0e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l9(t,e)}function l9(t,e){return l9=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},l9(t,e)}function Z0e(t){var e=X0e();return function(){var n=vb(t),r;if(e){var o=vb(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return J0e(this,r)}}function J0e(t,e){if(e&&(s9(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _b(t)}function _b(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function X0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vb(t){return vb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vb(t)}function Up(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Q0e=function(t){Y0e(n,t);var e=Z0e(n);function n(r){var o;K0e(this,n),o=e.call(this,r),Up(_b(o),"internalAnswerIds",void 0),Up(_b(o),"internalSpoiled",void 0),Up(_b(o),"pollEventId",void 0);var i=o.wireContent["m.relates_to"];if(!u9.REFERENCE_RELATION.matches(i==null?void 0:i.rel_type)||typeof(i==null?void 0:i.event_id)!="string")throw new $0e.InvalidEventError("Relationship must be a reference to an event");return o.pollEventId=i.event_id,o.validateAgainst(null),o}return G0e(n,[{key:"answerIds",get:function(){return this.internalAnswerIds}},{key:"spoiled",get:function(){return this.internalSpoiled}},{key:"validateAgainst",value:function(r){var o=PF.M_POLL_RESPONSE.findIn(this.wireContent);if(!Array.isArray(o==null?void 0:o.answers)){this.internalSpoiled=!0,this.internalAnswerIds=[];return}var i=o.answers;if(i.some(function(s){return typeof s!="string"})||i.length===0){this.internalSpoiled=!0,this.internalAnswerIds=[];return}if(r){if(i.some(function(s){return!r.answers.some(function(u){return u.id===s})})){this.internalSpoiled=!0,this.internalAnswerIds=[];return}i=i.slice(0,r.maxSelections)}this.internalAnswerIds=i,this.internalSpoiled=!1}},{key:"isEquivalentTo",value:function(r){return(0,W0e.isEventTypeSame)(r,PF.M_POLL_RESPONSE)}},{key:"serialize",value:function(){return{type:PF.M_POLL_RESPONSE.name,content:Up({"m.relates_to":{rel_type:u9.REFERENCE_RELATION.name,event_id:this.pollEventId}},PF.M_POLL_RESPONSE.name,{answers:this.spoiled?void 0:this.answerIds})}}}],[{key:"from",value:function(r,o){return new n({type:PF.M_POLL_RESPONSE.name,content:Up({"m.relates_to":{rel_type:u9.REFERENCE_RELATION.name,event_id:o}},PF.M_POLL_RESPONSE.name,{answers:r})})}}]),n}(H0e.ExtensibleEvent);zp.PollResponseEvent=Q0e;var Vp={};function c9(t){"@babel/helpers - typeof";return c9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c9(t)}Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.PollEndEvent=void 0;var qp=ni,eFe=Il,d9=MF,tFe=du,nFe=io,rFe=Rl,oFe=ed;function Jz(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function iFe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jz(Object(n),!0).forEach(function(r){LF(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jz(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function aFe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sFe(t,e,n){return Xz(t.prototype,e),Xz(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function uFe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h9(t,e)}function h9(t,e){return h9=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},h9(t,e)}function lFe(t){var e=dFe();return function(){var n=bb(t),r;if(e){var o=bb(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return cFe(this,r)}}function cFe(t,e){if(e&&(c9(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F9(t)}function F9(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dFe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bb(t){return bb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bb(t)}function LF(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hFe=function(t){uFe(n,t);var e=lFe(n);function n(r){var o;aFe(this,n),o=e.call(this,r),LF(F9(o),"pollEventId",void 0),LF(F9(o),"closingMessage",void 0);var i=o.wireContent["m.relates_to"];if(!d9.REFERENCE_RELATION.matches(i==null?void 0:i.rel_type)||typeof(i==null?void 0:i.event_id)!="string")throw new eFe.InvalidEventError("Relationship must be a reference to an event");return o.pollEventId=i.event_id,o.closingMessage=new tFe.MessageEvent(o.wireFormat),o}return sFe(n,[{key:"isEquivalentTo",value:function(r){return(0,rFe.isEventTypeSame)(r,qp.M_POLL_END)}},{key:"serialize",value:function(){return{type:qp.M_POLL_END.name,content:iFe(LF({"m.relates_to":{rel_type:d9.REFERENCE_RELATION.name,event_id:this.pollEventId}},qp.M_POLL_END.name,{}),this.closingMessage.serialize().content)}}}],[{key:"from",value:function(r,o){var i;return new n({type:qp.M_POLL_END.name,content:(i={"m.relates_to":{rel_type:d9.REFERENCE_RELATION.name,event_id:r}},LF(i,qp.M_POLL_END.name,{}),LF(i,nFe.M_TEXT.name,o),i)})}}]),n}(oFe.ExtensibleEvent);Vp.PollEndEvent=hFe,Object.defineProperty(gb,"__esModule",{value:!0}),gb.parseMPoll=gFe;var m9=ni,FFe=rh,mFe=zp,DFe=Vp;function gFe(t){return m9.M_POLL_START.matches(t.type)?new FFe.PollStartEvent(t):m9.M_POLL_RESPONSE.matches(t.type)?new mFe.PollResponseEvent(t):m9.M_POLL_END.matches(t.type)?new DFe.PollEndEvent(t):null}Object.defineProperty(ub,"__esModule",{value:!0}),ub.ExtensibleEvents=void 0;var pFe=Bp,fFe=Il,Qz=IF,D9=Db,Cb=io,g9=ni,p9=gb;function _Fe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=vFe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,u;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,u=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw u}}}}function vFe(t,e){if(t){if(typeof t=="string")return eU(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eU(t,e)}}function eU(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function bFe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tU(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function CFe(t,e,n){return tU(t.prototype,e),tU(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _9=function(){function t(){bFe(this,t),f9(this,"interpreters",new pFe.NamespacedMap([[Qz.LEGACY_M_ROOM_MESSAGE,Qz.parseMRoomMessage],[Cb.M_MESSAGE,D9.parseMMessage],[Cb.M_EMOTE,D9.parseMMessage],[Cb.M_NOTICE,D9.parseMMessage],[g9.M_POLL_START,p9.parseMPoll],[g9.M_POLL_RESPONSE,p9.parseMPoll],[g9.M_POLL_END,p9.parseMPoll]])),f9(this,"_unknownInterpretOrder",[Cb.M_MESSAGE])}return CFe(t,[{key:"unknownInterpretOrder",get:function(){var e;return(e=this._unknownInterpretOrder)!==null&&e!==void 0?e:[]},set:function(e){this._unknownInterpretOrder=e}},{key:"registerInterpreter",value:function(e,n){this.interpreters.set(e,n)}},{key:"parse",value:function(e){try{if(this.interpreters.hasNamespaced(e.type))return this.interpreters.getNamespaced(e.type)(e);var n=_Fe(this.unknownInterpretOrder),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;if(this.interpreters.has(o)){var i=this.interpreters.get(o)(e);if(i)return i}}}catch(s){n.e(s)}finally{n.f()}return null}catch(s){if(s instanceof fFe.InvalidEventError)return null;throw s}}}],[{key:"defaultInstance",get:function(){return t._defaultInstance}},{key:"unknownInterpretOrder",get:function(){return t.defaultInstance.unknownInterpretOrder},set:function(e){t.defaultInstance.unknownInterpretOrder=e}},{key:"registerInterpreter",value:function(e,n){t.defaultInstance.registerInterpreter(e,n)}},{key:"parse",value:function(e){return t.defaultInstance.parse(e)}}]),t}();ub.ExtensibleEvents=_9,f9(_9,"_defaultInstance",new _9);var nU={};Object.defineProperty(nU,"__esModule",{value:!0});var NF={};Object.defineProperty(NF,"__esModule",{value:!0}),NF.LegacyMsgType=void 0,NF.isEventLike=EFe;var v9=io,zF;NF.LegacyMsgType=zF,function(t){t.Text="m.text",t.Notice="m.notice",t.Emote="m.emote"}(zF||(NF.LegacyMsgType=zF={}));function EFe(t,e){var n=t.content;return e===zF.Text?v9.M_MESSAGE.matches(t.type)||t.type==="m.room.message"&&(n==null?void 0:n.msgtype)==="m.text":e===zF.Emote?v9.M_EMOTE.matches(t.type)||t.type==="m.room.message"&&(n==null?void 0:n.msgtype)==="m.emote":e===zF.Notice?v9.M_NOTICE.matches(t.type)||t.type==="m.room.message"&&(n==null?void 0:n.msgtype)==="m.notice":!1}(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=ub;Object.keys(e).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===e[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return e[C]}})});var n=nU;Object.keys(n).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===n[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return n[C]}})});var r=Il;Object.keys(r).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===r[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return r[C]}})});var o=Ss;Object.keys(o).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===o[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return o[C]}})});var i=Bp;Object.keys(i).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===i[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return i[C]}})});var s=Ip;Object.keys(s).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===s[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return s[C]}})});var u=NF;Object.keys(u).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===u[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return u[C]}})});var l=Rl;Object.keys(l).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===l[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return l[C]}})});var c=IF;Object.keys(c).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===c[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return c[C]}})});var d=Db;Object.keys(d).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===d[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return d[C]}})});var F=gb;Object.keys(F).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===F[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return F[C]}})});var h=MF;Object.keys(h).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===h[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return h[C]}})});var m=ed;Object.keys(m).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===m[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return m[C]}})});var D=io;Object.keys(D).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===D[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return D[C]}})});var g=du;Object.keys(g).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===g[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return g[C]}})});var p=OF;Object.keys(p).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===p[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return p[C]}})});var _=RF;Object.keys(_).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===_[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return _[C]}})});var v=ni;Object.keys(v).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===v[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return v[C]}})});var E=rh;Object.keys(E).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===E[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return E[C]}})});var b=zp;Object.keys(b).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===b[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return b[C]}})});var k=Vp;Object.keys(k).forEach(function(C){C==="default"||C==="__esModule"||C in t&&t[C]===k[C]||Object.defineProperty(t,C,{enumerable:!0,get:function(){return k[C]}})})})(Si);function yFe(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function rU(t,e){if(t==null)return{};var n,r,o=yFe(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.includes(n)||{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var ri=function(t){return t.DisplayName="User.displayName",t.AvatarUrl="User.avatarUrl",t.Presence="User.presence",t.CurrentlyActive="User.currentlyActive",t.LastPresenceTs="User.lastPresenceTs",t}({});class Ml extends Cr{constructor(e){super(),this.userId=e,I(this,"modified",-1),I(this,"displayName",void 0),I(this,"rawDisplayName",void 0),I(this,"avatarUrl",void 0),I(this,"presenceStatusMsg",void 0),I(this,"presence","offline"),I(this,"lastActiveAgo",0),I(this,"lastPresenceTs",0),I(this,"currentlyActive",!1),I(this,"events",{}),this.displayName=e,this.rawDisplayName=e,this.updateModifiedTime()}static createUser(e,n){var r=new Ml(e);return n.reEmitter.reEmit(r,[ri.AvatarUrl,ri.DisplayName,ri.Presence,ri.CurrentlyActive,ri.LastPresenceTs]),r}setPresenceEvent(e){if(e.getType()==="m.presence"){var n=this.events.presence===null;this.events.presence=e;var r=[];(e.getContent().presence!==this.presence||n)&&r.push(ri.Presence),e.getContent().avatar_url&&e.getContent().avatar_url!==this.avatarUrl&&r.push(ri.AvatarUrl),e.getContent().displayname&&e.getContent().displayname!==this.displayName&&r.push(ri.DisplayName),e.getContent().currently_active!==void 0&&e.getContent().currently_active!==this.currentlyActive&&r.push(ri.CurrentlyActive),this.presence=e.getContent().presence,r.push(ri.LastPresenceTs),e.getContent().status_msg&&(this.presenceStatusMsg=e.getContent().status_msg),e.getContent().displayname&&(this.displayName=e.getContent().displayname),e.getContent().avatar_url&&(this.avatarUrl=e.getContent().avatar_url),this.lastActiveAgo=e.getContent().last_active_ago,this.lastPresenceTs=Date.now(),this.currentlyActive=e.getContent().currently_active,this.updateModifiedTime();for(var o of r)this.emit(o,e,this)}}setDisplayName(e){var n=this.displayName;this.displayName=e,e!==n&&this.updateModifiedTime()}setRawDisplayName(e){this.rawDisplayName=e}setAvatarUrl(e){var n=this.avatarUrl;this.avatarUrl=e,e!==n&&this.updateModifiedTime()}updateModifiedTime(){this.modified=Date.now()}getLastModifiedTime(){return this.modified}getLastActiveTs(){return this.lastPresenceTs-this.lastActiveAgo}}var At=function(t){return t.Backward="b",t.Forward="f",t}({});class it{static setEventMetadata(e,n,r){e.setMetadata(n,r)}constructor(e){var n,r;this.eventTimelineSet=e,I(this,"roomId",void 0),I(this,"name",void 0),I(this,"events",[]),I(this,"baseIndex",0),I(this,"startState",void 0),I(this,"endState",void 0),I(this,"startToken",null),I(this,"endToken",null),I(this,"prevTimeline",null),I(this,"nextTimeline",null),I(this,"paginationRequests",{[At.Backward]:null,[At.Forward]:null}),this.roomId=(n=(r=e.room)===null||r===void 0?void 0:r.roomId)!==null&&n!==void 0?n:null,this.roomId&&(this.startState=new lf(this.roomId),this.endState=new lf(this.roomId)),this.paginationRequests={b:null,f:null},this.name=this.roomId+":"+new Date().toISOString()}initialiseState(e){var n,r,{timelineWasEmpty:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.events.length>0)throw new Error("Cannot initialise state after events are added");(n=this.startState)===null||n===void 0||n.setStateEvents(e,{timelineWasEmpty:o}),(r=this.endState)===null||r===void 0||r.setStateEvents(e,{timelineWasEmpty:o})}forkLive(e){var n=this.getState(e),r=new it(this.eventTimelineSet);return r.startState=n==null?void 0:n.clone(),r.endState=n,this.endState=n==null?void 0:n.clone(),r}fork(e){var n=this.getState(e),r=new it(this.eventTimelineSet);return r.startState=n==null?void 0:n.clone(),r.endState=n==null?void 0:n.clone(),r}getRoomId(){return this.roomId}getFilter(){return this.eventTimelineSet.getFilter()}getTimelineSet(){return this.eventTimelineSet}getBaseIndex(){return this.baseIndex}getEvents(){return this.events}getState(e){if(e==it.BACKWARDS)return this.startState;if(e==it.FORWARDS)return this.endState;throw new Error("Invalid direction '"+e+"'")}getPaginationToken(e){return this.roomId?this.getState(e).paginationToken:e===At.Backward?this.startToken:this.endToken}setPaginationToken(e,n){this.roomId?this.getState(n).paginationToken=e:n===At.Backward?this.startToken=e:this.endToken=e}getNeighbouringTimeline(e){if(e==it.BACKWARDS)return this.prevTimeline;if(e==it.FORWARDS)return this.nextTimeline;throw new Error("Invalid direction '"+e+"'")}setNeighbouringTimeline(e,n){if(this.getNeighbouringTimeline(n))throw new Error("timeline already has a neighbouring timeline - cannot reset neighbour (direction: "+n+")");if(n==it.BACKWARDS)this.prevTimeline=e;else if(n==it.FORWARDS)this.nextTimeline=e;else throw new Error("Invalid direction '"+n+"'");this.setPaginationToken(null,n)}addEvent(e,n){var{toStartOfTimeline:r,roomState:o,timelineWasEmpty:i,addToState:s}=n;o||(o=r?this.startState:this.endState);var u=this.getTimelineSet();if(u.room&&(it.setEventMetadata(e,o,r),s&&e.isState()&&u.room.getUnfilteredTimelineSet()===u)){var l;(l=o)===null||l===void 0||l.setStateEvents([e],{timelineWasEmpty:i}),(!e.sender||e.getType()===Ce.RoomMember&&!r)&&it.setEventMetadata(e,o,r)}var c;r?c=0:c=this.events.length,this.events.splice(c,0,e),r&&this.baseIndex++}insertEvent(e,n,r,o){var i=this.getTimelineSet();i.room&&(it.setEventMetadata(e,r,!1),o&&e.isState()&&i.room.getUnfilteredTimelineSet()===i&&(r.setStateEvents([e],{}),(!e.sender||e.getType()===Ce.RoomMember)&&it.setEventMetadata(e,r,!1))),this.events.splice(n,0,e)}removeEvent(e){for(var n=this.events.length-1;n>=0;n--){var r=this.events[n];if(r.getId()==e)return this.events.splice(n,1),n<this.baseIndex&&this.baseIndex--,r}return null}toString(){return this.name}}I(it,"BACKWARDS",At.Backward),I(it,"FORWARDS",At.Forward);var hu=function(t){return t.Add="Relations.add",t.Remove="Relations.remove",t.Redaction="Relations.redaction",t}({}),xFe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return[e,...n].includes(t)};class b9 extends Cr{constructor(e,n,r,o){var i;super(),i=this,this.relationType=e,this.eventType=n,this.altEventTypes=o,I(this,"relationEventIds",new Set),I(this,"relations",new Set),I(this,"annotationsByKey",{}),I(this,"annotationsBySender",{}),I(this,"sortedAnnotationsByKey",[]),I(this,"targetEvent",null),I(this,"creationEmitted",!1),I(this,"client",void 0),I(this,"onEventStatus",(s,u)=>{if(!s.isSending()){s.removeListener(Un.Status,this.onEventStatus);return}u===Pt.CANCELLED&&(s.removeListener(Un.Status,this.onEventStatus),this.removeEvent(s))}),I(this,"onBeforeRedaction",function(){var s=Z(function*(u){if(i.relations.has(u)){if(i.relations.delete(u),i.relationType===Pn.Annotation)i.removeAnnotationFromAggregation(u);else if(i.relationType===Pn.Replace&&i.targetEvent&&!i.targetEvent.isState()){var l=yield i.getLastReplacement();i.targetEvent.makeReplaced(l)}u.removeListener(Un.BeforeRedaction,i.onBeforeRedaction),i.emit(hu.Redaction,u)}});return function(u){return s.apply(this,arguments)}}()),this.client=r instanceof kb?r.client:r}addEvent(e){var n=this;return Z(function*(){if(!n.relationEventIds.has(e.getId())){var r=e.getRelation();if(!r){Y.error("Event must have relation info");return}var o=r.rel_type,i=e.getType();if(n.relationType!==o||!xFe(i,n.eventType,n.altEventTypes)){Y.error("Event relation info doesn't match this container");return}if(e.isSending()&&e.on(Un.Status,n.onEventStatus),n.relations.add(e),n.relationEventIds.add(e.getId()),n.relationType===Pn.Annotation)n.addAnnotationToAggregation(e);else if(n.relationType===Pn.Replace&&n.targetEvent&&!n.targetEvent.isState()){var s=yield n.getLastReplacement();n.targetEvent.makeReplaced(s)}e.on(Un.BeforeRedaction,n.onBeforeRedaction),n.emit(hu.Add,e),n.maybeEmitCreated()}})()}removeEvent(e){var n=this;return Z(function*(){if(n.relations.has(e)){if(n.relations.delete(e),n.relationType===Pn.Annotation)n.removeAnnotationFromAggregation(e);else if(n.relationType===Pn.Replace&&n.targetEvent&&!n.targetEvent.isState()){var r=yield n.getLastReplacement();n.targetEvent.makeReplaced(r)}n.emit(hu.Remove,e)}})()}getRelations(){return[...this.relations]}addAnnotationToAggregation(e){var n,{key:r}=(n=e.getRelation())!==null&&n!==void 0?n:{};if(r){var o=this.annotationsByKey[r];o||(o=this.annotationsByKey[r]=new Set,this.sortedAnnotationsByKey.push([r,o])),o.add(e),this.sortedAnnotationsByKey.sort((u,l)=>{var c=u[1],d=l[1];return d.size-c.size});var i=e.getSender(),s=this.annotationsBySender[i];s||(s=this.annotationsBySender[i]=new Set),s.add(e)}}removeAnnotationFromAggregation(e){var n,{key:r}=(n=e.getRelation())!==null&&n!==void 0?n:{};if(r){var o=this.annotationsByKey[r];o&&(o.delete(e),this.sortedAnnotationsByKey.sort((u,l)=>{var c=u[1],d=l[1];return d.size-c.size}));var i=e.getSender(),s=this.annotationsBySender[i];s&&s.delete(e)}}getSortedAnnotationsByKey(){return this.relationType!==Pn.Annotation?null:this.sortedAnnotationsByKey}getAnnotationsBySender(){return this.relationType!==Pn.Annotation?null:this.annotationsBySender}getLastReplacement(){var e=this;return Z(function*(){if(e.relationType!==Pn.Replace||!e.targetEvent)return null;var n=e.targetEvent.getServerAggregatedRelation(Pn.Replace),r=n==null?void 0:n.origin_server_ts,o=e.getRelations().reduce((i,s)=>s.getSender()!==e.targetEvent.getSender()||r&&r>s.getTs()||i&&i.getTs()>s.getTs()?i:s,null);return o!=null&&o.shouldAttemptDecryption()&&e.client.getCrypto()?yield o.attemptDecryption(e.client.getCrypto()):o!=null&&o.isBeingDecrypted()&&(yield o.getDecryptionPromise()),o})()}setTargetEvent(e){var n=this;return Z(function*(){if(!n.targetEvent){if(n.targetEvent=e,n.relationType===Pn.Replace&&!n.targetEvent.isState()){var r=yield n.getLastReplacement();r&&n.targetEvent.makeReplaced(r)}n.maybeEmitCreated()}})()}maybeEmitCreated(){this.creationEmitted||!this.targetEvent||!this.relations.size||(this.creationEmitted=!0,this.targetEvent.emit(Un.RelationsCreated,this.relationType,this.eventType))}}class oU{constructor(e,n){this.client=e,this.room=n,I(this,"relations",new Map)}getChildEventsForEvent(e,n,r){var o;return(o=this.relations.get(e))===null||o===void 0||(o=o.get(n))===null||o===void 0?void 0:o.get(r)}getAllChildEventsForEvent(e){var n,r=(n=this.relations.get(e))!==null&&n!==void 0?n:new Map,o=[];for(var i of r.values())for(var s of i.values())o.push(...s.getRelations());return o}aggregateParentEvent(e){var n=this.relations.get(e.getId());if(n)for(var r of n.values())for(var o of r.values())o.setTargetEvent(e)}aggregateChildEvent(e,n){if(!(e.isRedacted()||e.status===Pt.CANCELLED)){var r=e.getRelation();if(r){var o=()=>{if(e.isDecryptionFailure()){e.once(Un.Decrypted,o);return}this.aggregateChildEvent(e,n)};if(e.isBeingDecrypted()||e.shouldAttemptDecryption()){e.once(Un.Decrypted,o);return}var{event_id:i,rel_type:s}=r,u=e.getType(),l=this.relations.get(i);l||(l=new Map,this.relations.set(i,l));var c=l.get(s);c||(c=new Map,l.set(s,c));var d=c.get(u);if(!d){var F,h,m;d=new b9(s,u,this.client),c.set(u,d);var D=(F=this.room)!==null&&F!==void 0?F:n==null?void 0:n.room,g=(h=(m=n==null?void 0:n.findEventById(i))!==null&&m!==void 0?m:D==null?void 0:D.findEventById(i))!==null&&h!==void 0?h:D==null?void 0:D.getPendingEvent(i);g&&d.setTargetEvent(g)}d.addEvent(e)}}}}var UF;UF=Y.log.bind(Y);var Hp=function(t){return t.Ignore="ignore",t.Replace="replace",t}({});class VF extends Cr{constructor(e){var n,r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;super(),this.room=e,this.thread=u,this.threadListType=l,I(this,"relations",void 0),I(this,"timelineSupport",void 0),I(this,"displayPendingEvents",void 0),I(this,"liveTimeline",void 0),I(this,"timelines",void 0),I(this,"_eventIdToTimeline",new Map),I(this,"filter",void 0),this.timelineSupport=!!i.timelineSupport,this.liveTimeline=new it(this),this.displayPendingEvents=i.pendingEvents!==!1,this.timelines=[this.liveTimeline],this._eventIdToTimeline=new Map,this.filter=i.filter,this.relations=(n=(r=this.room)===null||r===void 0?void 0:r.relations)!==null&&n!==void 0?n:new oU((o=e==null?void 0:e.client)!==null&&o!==void 0?o:s)}getTimelines(){return this.timelines}getFilter(){return this.filter}setFilter(e){this.filter=e}getPendingEvents(){return!this.room||!this.displayPendingEvents?[]:this.room.getPendingEvents()}getLiveTimeline(){return this.liveTimeline}setLiveTimeline(e){this.liveTimeline=e}eventIdToTimeline(e){return this._eventIdToTimeline.get(e)}replaceEventId(e,n){var r=this._eventIdToTimeline.get(e);r&&(this._eventIdToTimeline.delete(e),this._eventIdToTimeline.set(n,r))}resetLiveTimeline(e,n){var r=!this.timelineSupport||!n,o=this.liveTimeline,i=r?o.forkLive(it.FORWARDS):o.fork(it.FORWARDS);r?(this.timelines=[i],this._eventIdToTimeline=new Map):this.timelines.push(i),n&&o.setPaginationToken(n,it.FORWARDS),i.setPaginationToken(e??null,it.BACKWARDS),this.liveTimeline=i,this.emit(Ke.TimelineReset,this.room,this,r)}getTimelineForEvent(e){if(e==null)return null;var n=this._eventIdToTimeline.get(e);return n===void 0?null:n}findEventById(e){var n=this.getTimelineForEvent(e);if(n)return n.getEvents().find(function(r){return r.getId()==e})}addTimeline(){if(!this.timelineSupport)throw new Error("timeline support is disabled. Set the 'timelineSupport' parameter to true when creating MatrixClient to enable it.");var e=new it(this);return this.timelines.push(e),e}addEventsToTimeline(e,n,r,o,i){if(!o)throw new Error("'timeline' not specified for EventTimelineSet.addEventsToTimeline");if(!n&&o==this.liveTimeline)throw new Error("EventTimelineSet.addEventsToTimeline cannot be used for adding events to the live timeline - use Room.addLiveEvents instead");if(!(this.filter&&(e=this.filter.filterRoomTimeline(e),!e.length))){var s=n?it.BACKWARDS:it.FORWARDS,u=n?it.FORWARDS:it.BACKWARDS,l=!1,c=!1;for(var d of e){var F=d.getId(),h=this._eventIdToTimeline.get(F);if(!h){this.addEventToTimeline(d,o,{toStartOfTimeline:n,addToState:r}),c=!0,l=!0;continue}if(c=!1,h==o){UF("Event "+F+" already in timeline "+o);continue}var m=o.getNeighbouringTimeline(s);if(m){h==m?UF("Event "+F+" in neighbouring timeline - switching to "+h):UF("Event "+F+" already in a different timeline "+h),o=h;continue}Y.info("Already have timeline for "+F+" - joining timeline "+o+" to "+h);var D=h===this.liveTimeline,g=o===this.liveTimeline,p=s===it.BACKWARDS&&D,_=s===it.FORWARDS&&g;if(p||_){p&&Y.warn("Refusing to set a preceding existingTimeLine on our timeline as the existingTimeLine is live ("+h+")"),_&&Y.warn("Refusing to set our preceding timeline on a existingTimeLine as our timeline is live ("+o+")");continue}o.setNeighbouringTimeline(h,s),h.setNeighbouringTimeline(o,u),o=h,l=!0}if(c||!l){if(s===it.FORWARDS&&o===this.liveTimeline){Y.warn({lastEventWasNew:c,didUpdate:l}),Y.warn("Refusing to set forwards pagination token of live timeline "+"".concat(o," to ").concat(i));return}o.setPaginationToken(i??null,s)}}}addLiveEvent(e,n){var{duplicateStrategy:r,fromCache:o,roomState:i,timelineWasEmpty:s,addToState:u}=n;if(this.filter){var l=this.filter.filterRoomTimeline([e]);if(!l.length)return}var c=this._eventIdToTimeline.get(e.getId());if(c){if(r===Hp.Replace){UF("EventTimelineSet.addLiveEvent: replacing duplicate event "+e.getId());for(var d=c.getEvents(),F=0;F<d.length;F++)if(d[F].getId()===e.getId()){i||(i=c.getState(it.FORWARDS)),it.setEventMetadata(e,i,!1),d[F]=e;break}}else UF("EventTimelineSet.addLiveEvent: ignoring duplicate event "+e.getId());return}this.addEventToTimeline(e,this.liveTimeline,{toStartOfTimeline:!1,fromCache:o,roomState:i,timelineWasEmpty:s,addToState:u})}addEventToTimeline(e,n,r){var{toStartOfTimeline:o,fromCache:i=!1,roomState:s,timelineWasEmpty:u,addToState:l}=r;if(n.getTimelineSet()!==this){var c;throw new Error("EventTimelineSet.addEventToTimeline: Timeline=".concat(n.toString(),` does not belong " +
"in timelineSet(threadId=`).concat((c=this.thread)===null||c===void 0?void 0:c.id,")"))}var d=e.getId();if(this.relations.aggregateParentEvent(e),this.relations.aggregateChildEvent(e,this),this.room&&!this.canContain(e)){var F,h="event=".concat(d);e.threadRootId&&(h+="(belongs to thread=".concat(e.threadRootId,")")),Y.warn("EventTimelineSet.addEventToTimeline: Ignoring ".concat(h," that does not belong ")+"in timeline=".concat(n.toString()," timelineSet(threadId=").concat((F=this.thread)===null||F===void 0?void 0:F.id,")"));return}n.addEvent(e,{toStartOfTimeline:o,roomState:s,timelineWasEmpty:u,addToState:l}),this._eventIdToTimeline.set(d,n);var m={timeline:n,liveEvent:!o&&n==this.liveTimeline&&!i};this.emit(Ke.Timeline,e,this.room,!!o,!1,m)}insertEventIntoTimeline(e,n,r,o){if(n.getTimelineSet()!==this){var i;throw new Error("EventTimelineSet.insertEventIntoTimeline: Timeline=".concat(n.toString(),` does not belong " +
"in timelineSet(threadId=`).concat((i=this.thread)===null||i===void 0?void 0:i.id,")"))}var s=e.getId();if(this.relations.aggregateParentEvent(e),this.relations.aggregateChildEvent(e,this),this.room&&!this.canContain(e)){var u,l="event=".concat(s);e.threadRootId&&(l+="(belongs to thread=".concat(e.threadRootId,")")),Y.warn("EventTimelineSet.insertEventIntoTimeline: Ignoring ".concat(l," that does not belong ")+"in timeline=".concat(n.toString()," timelineSet(threadId=").concat((u=this.thread)===null||u===void 0?void 0:u.id,")"));return}var c=e.relationEventId;if(!c){this.addEventToTimeline(e,n,{toStartOfTimeline:!1,fromCache:!1,timelineWasEmpty:!1,roomState:r,addToState:o});return}for(var d=this.findEventById(c),F=n.getEvents(),h=d!==void 0?F.indexOf(d):0,m=h;m<F.length;m++){var D=F[m];if(D.getTs()>e.getTs())break}n.insertEvent(e,m,r,o),this._eventIdToTimeline.set(s,n);var g={timeline:n,liveEvent:!1};this.emit(Ke.Timeline,e,this.room,!1,!1,g)}handleRemoteEcho(e,n,r){var o=this._eventIdToTimeline.get(n);o?(this._eventIdToTimeline.delete(n),this._eventIdToTimeline.set(r,o)):(!this.filter||this.filter.filterRoomTimeline([e]).length)&&this.addEventToTimeline(e,this.liveTimeline,{toStartOfTimeline:!1,addToState:!1})}removeEvent(e){var n=this._eventIdToTimeline.get(e);if(!n)return null;var r=n.removeEvent(e);if(r){this._eventIdToTimeline.delete(e);var o={timeline:n};this.emit(Ke.Timeline,r,this.room,void 0,!0,o)}return r}compareEventOrdering(e,n){if(e==n)return 0;var r=this._eventIdToTimeline.get(e),o=this._eventIdToTimeline.get(n);if(r===void 0||o===void 0)return null;if(r===o){for(var i=void 0,s=void 0,u=r.getEvents(),l=0;l<u.length&&(i===void 0||s===void 0);l++){var c=u[l].getId();c==e&&(i=l),c==n&&(s=l)}var d=i-s;return d<0?-1:d>0?1:0}for(var F=r;F;){if(F===o)return-1;F=F.getNeighbouringTimeline(it.FORWARDS)}for(F=r;F;){if(F===o)return 1;F=F.getNeighbouringTimeline(it.BACKWARDS)}return null}canContain(e){if(!this.room)throw new Error("Cannot call `EventTimelineSet::canContain without a `room` set. Set the room when creating the EventTimelineSet to call this method.");var{threadId:n,shouldLiveInRoom:r,shouldLiveInThread:o}=this.room.eventShouldLiveIn(e);if(this.thread)return this.thread.id===n;if(!r&&!o){var i;Y.warn("EventTimelineSet:canContain event encountered which cannot be added to any timeline roomId=".concat((i=this.room)===null||i===void 0?void 0:i.roomId," eventId=").concat(e.getId()," threadId=").concat(e.threadRootId))}return r}}var Pt=function(t){return t.NOT_SENT="not_sent",t.ENCRYPTING="encrypting",t.SENDING="sending",t.QUEUED="queued",t.SENT="sent",t.CANCELLED="cancelled",t}({});class iU{constructor(e,n){this.roomId=e}}class aU{constructor(e){this.target=e,I(this,"reEmitters",new WeakMap)}reEmit(e,n){var r=this,o=this.reEmitters.get(e);o||(o=new Map,this.reEmitters.set(e,o));var i=function(u){if(o.has(u))return 1;var l=function(){if(!(u==="error"&&r.target.listenerCount("error")===0)){for(var c=arguments.length,d=new Array(c),F=0;F<c;F++)d[F]=arguments[F];r.target.emit(u,...d,e)}};e.on(u,l),o.set(u,l)};for(var s of n)i(s)}stopReEmitting(e,n){var r=this.reEmitters.get(e);if(r){for(var o of n)e.off(o,r.get(o)),r.delete(o);r.size===0&&this.reEmitters.delete(e)}}}x1=class extends aU{constructor(t){super(t)}reEmit(t,e){super.reEmit(t,e)}stopReEmitting(t,e){super.stopReEmitting(t,e)}};var $p=new Wv("unread_thread_notifications","org.matrix.msc3773.unread_thread_notifications");function wFe(t,e){if(e.endsWith("*")){var n=e.slice(0,-1);return t.slice(0,n.length)===n}else return t===e}class sU{constructor(e,n){this.filterJson=e,this.userId=n}check(e){var n,r,o=((n=e.getUnsigned())===null||n===void 0?void 0:n["m.relations"])||{},i=Object.keys(o),s=[];return this.userId&&o!==null&&o!==void 0&&(r=o[hr.name])!==null&&r!==void 0&&r.current_user_participated&&s.push(this.userId),this.checkFields(e.getRoomId(),e.getSender(),e.getType(),e.getContent()?e.getContent().url!==void 0:!1,i,s)}toJSON(){return{types:this.filterJson.types||null,not_types:this.filterJson.not_types||[],rooms:this.filterJson.rooms||null,not_rooms:this.filterJson.not_rooms||[],senders:this.filterJson.senders||null,not_senders:this.filterJson.not_senders||[],contains_url:this.filterJson.contains_url||null,[om.name]:this.filterJson[om.name]||[],[im.name]:this.filterJson[im.name]||[]}}checkFields(e,n,r,o,i,s){var u={rooms:function(p){return e===p},senders:function(p){return n===p},types:function(p){return wFe(r,p)}};for(var l in u){var c=u[l],d="not_"+l,F=this.filterJson[d];if(F!=null&&F.some(c))return!1;var h=this.filterJson[l];if(h&&!h.some(c))return!1}var m=this.filterJson.contains_url;if(m!==void 0&&m!==o)return!1;var D=this.filterJson[im.name];if(D!==void 0&&!this.arrayMatchesFilter(D,i))return!1;var g=this.filterJson[om.name];return!(g!==void 0&&!this.arrayMatchesFilter(g,s))}arrayMatchesFilter(e,n){return n.length>0&&e.every(r=>n.includes(r))}filter(e){return e.filter(this.check,this)}limit(){return this.filterJson.limit!==void 0?this.filterJson.limit:10}}function uU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function qF(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uU(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uU(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function C9(t,e,n){for(var r=e.split("."),o=t,i=0;i<r.length-1;i++)o[r[i]]||(o[r[i]]={}),o=o[r[i]];o[r[r.length-1]]=n}class Ji{static fromJson(e,n,r){var o=new Ji(e,n);return o.setDefinition(r),o}constructor(e,n){this.userId=e,this.filterId=n,I(this,"definition",{}),I(this,"roomFilter",void 0),I(this,"roomTimelineFilter",void 0)}getFilterId(){return this.filterId}getDefinition(){return this.definition}setDefinition(e){this.definition=e;var n=e.room,r={};n&&(n.rooms&&(r.rooms=n.rooms),n.rooms&&(r.not_rooms=n.not_rooms)),this.roomFilter=new sU(r,this.userId),this.roomTimelineFilter=new sU((n==null?void 0:n.timeline)||{},this.userId)}getRoomTimelineFilterComponent(){return this.roomTimelineFilter}filterRoomTimeline(e){return this.roomFilter&&(e=this.roomFilter.filter(e)),this.roomTimelineFilter&&(e=this.roomTimelineFilter.filter(e)),e}setTimelineLimit(e){C9(this.definition,"room.timeline.limit",e)}setUnreadThreadNotifications(e){var n,r;this.definition=qF(qF({},this.definition),{},{room:qF(qF({},(n=this.definition)===null||n===void 0?void 0:n.room),{},{timeline:qF(qF({},(r=this.definition)===null||r===void 0||(r=r.room)===null||r===void 0?void 0:r.timeline),{},{[$p.name]:e})})})}setLazyLoadMembers(e){C9(this.definition,"room.state.lazy_load_members",e)}setIncludeLeaveRooms(e){C9(this.definition,"room.include_leave",e)}}I(Ji,"LAZY_LOADING_MESSAGES_FILTER",{lazy_load_members:!0});function Eb(t){return t!=null}var kFe=new Si.UnstableValue("m.message","org.matrix.msc1767.message"),E9=new Si.UnstableValue("m.text","org.matrix.msc1767.text"),SFe=new Si.UnstableValue("m.html","org.matrix.msc1767.html"),lU=new Si.NamespacedValue("m.reference");function jFe(t,e){if(typeof t=="string")return typeof e=="string"?e===t:e.matches(t);if(typeof e=="string")return t.matches(e);var n=e,r=t;return n.matches(r.name)||Eb(r.altName)&&n.matches(r.altName)}var y9=new fp("m.topic");function cU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function BFe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cU(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cU(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function dU(t,e){return{msgtype:or.Text,format:"org.matrix.custom.html",body:t,formatted_body:e}}function hU(t,e){return{msgtype:or.Notice,format:"org.matrix.custom.html",body:t,formatted_body:e}}function FU(t,e){return{msgtype:or.Emote,format:"org.matrix.custom.html",body:t,formatted_body:e}}function mU(t){return{msgtype:or.Text,body:t}}function DU(t){return{msgtype:or.Notice,body:t}}function gU(t){return{msgtype:or.Emote,body:t}}var pU=(t,e,n,r)=>{var o="at ".concat(new Date(n).toISOString()),i=e===SF.Self?"User":void 0,s=r?'"'.concat(r,'"'):void 0;return[i,"Location",s,t,o].filter(Boolean).join(" ")},fU=(t,e,n,r,o)=>{var i=t??pU(e,o||SF.Self,n,r),s=n?{[Jc.name]:n}:{};return BFe({msgtype:or.Location,body:i,geo_uri:e,[vp.name]:{description:r,uri:e},[_p.name]:{type:o||SF.Self},[E9.name]:i},s)},AFe=t=>{var e,n,r=vp.findIn(t),o=_p.findIn(t),i=Jc.findIn(t),s=E9.findIn(t),u=(e=r==null?void 0:r.uri)!==null&&e!==void 0?e:t==null?void 0:t.geo_uri,l=r==null?void 0:r.description,c=(n=o==null?void 0:o.type)!==null&&n!==void 0?n:SF.Self,d=s??t.body;return fU(d,u,i??void 0,l,c)},_U=(t,e)=>{var n=[];return Eb(e)&&n.push({body:e,mimetype:"text/html"}),Eb(t)&&n.push({body:t,mimetype:"text/plain"}),{topic:t,[y9.name]:n}},TFe=t=>{var e,n,r,o,i=y9.findIn(t);if(!Array.isArray(i)){var s;return{text:(s=t.topic)!==null&&s!==void 0?s:void 0}}var u=(e=(n=i==null||(r=i.find(c=>!Eb(c.mimetype)||c.mimetype==="text/plain"))===null||r===void 0?void 0:r.body)!==null&&n!==void 0?n:t.topic)!==null&&e!==void 0?e:void 0,l=i==null||(o=i.find(c=>c.mimetype==="text/html"))===null||o===void 0?void 0:o.body;return{text:u,html:l}},IFe=(t,e,n,r,o)=>({description:n,timeout:t,live:e,[Jc.name]:o||Date.now(),[_p.name]:{type:r??SF.Self}}),vU=t=>{var e,{description:n,timeout:r,live:o}=t,i=(e=Jc.findIn(t))!==null&&e!==void 0?e:void 0,s=_p.findIn(t);return{description:n,timeout:r,live:o,assetType:s==null?void 0:s.type,timestamp:i}},RFe=(t,e,n,r)=>({[vp.name]:{description:r,uri:t},[Jc.name]:e,"m.relates_to":{rel_type:lU.name,event_id:n}}),x9=t=>{var e,n=vp.findIn(t),r=(e=Jc.findIn(t))!==null&&e!==void 0?e:void 0;return{description:n==null?void 0:n.description,uri:n==null?void 0:n.uri,timestamp:r}};const OFe=Object.freeze(Object.defineProperty({__proto__:null,getTextForLocationEvent:pU,makeBeaconContent:RFe,makeBeaconInfoContent:IFe,makeEmoteMessage:gU,makeHtmlEmote:FU,makeHtmlMessage:dU,makeHtmlNotice:hU,makeLocationContent:fU,makeNotice:DU,makeTextMessage:mU,makeTopicContent:_U,parseBeaconContent:x9,parseBeaconInfoContent:vU,parseLocationEvent:AFe,parseTopicContent:TFe},Symbol.toStringTag,{value:"Module"}));var Ar=function(t){return t.New="Beacon.new",t.Update="Beacon.update",t.LivenessChange="Beacon.LivenessChange",t.Destroy="Beacon.Destroy",t.LocationUpdate="Beacon.LocationUpdate",t}({}),w9=(t,e,n)=>n>=t&&t+e>=n,yb=t=>"".concat(t.getRoomId(),"_").concat(t.getStateKey());class bU extends Cr{constructor(e){super(),this.rootEvent=e,I(this,"roomId",void 0),I(this,"_beaconInfo",void 0),I(this,"_isLive",void 0),I(this,"livenessWatchTimeout",void 0),I(this,"_latestLocationEvent",void 0),I(this,"clearLatestLocation",()=>{this._latestLocationEvent=void 0,this.emit(Ar.LocationUpdate,this.latestLocationState)}),this.roomId=this.rootEvent.getRoomId(),this.setBeaconInfo(this.rootEvent)}get isLive(){return!!this._isLive}get identifier(){return yb(this.rootEvent)}get beaconInfoId(){return this.rootEvent.getId()}get beaconInfoOwner(){return this.rootEvent.getStateKey()}get beaconInfoEventType(){return this.rootEvent.getType()}get beaconInfo(){return this._beaconInfo}get latestLocationState(){return this._latestLocationEvent&&x9(this._latestLocationEvent.getContent())}get latestLocationEvent(){return this._latestLocationEvent}update(e){if(yb(e)!==this.identifier)throw new Error("Invalid updating event");e.getTs()<this.rootEvent.getTs()||(this.rootEvent=e,this.setBeaconInfo(this.rootEvent),this.emit(Ar.Update,e,this),this.clearLatestLocation())}destroy(){this.livenessWatchTimeout&&clearTimeout(this.livenessWatchTimeout),this._isLive=!1,this.emit(Ar.Destroy,this.identifier)}monitorLiveness(){if(this.livenessWatchTimeout&&clearTimeout(this.livenessWatchTimeout),this.checkLiveness(),!!this.beaconInfo)if(this.isLive){var e=this.beaconInfo.timestamp+this.beaconInfo.timeout-Date.now();e>1&&(this.livenessWatchTimeout=setTimeout(()=>{this.monitorLiveness()},e))}else this.beaconInfo.timestamp>Date.now()&&(this.livenessWatchTimeout=setTimeout(()=>{this.monitorLiveness()},this.beaconInfo.timestamp-Date.now()))}addLocations(e){var n;if(this.isLive){var r=e.filter(i=>{var s=i.getContent(),u=x9(s);if(!u.uri||!u.timestamp)return!1;var{timestamp:l}=u;return this._beaconInfo.timestamp&&w9(this._beaconInfo.timestamp,this._beaconInfo.timeout,l)&&(!this.latestLocationState||l>this.latestLocationState.timestamp)}),o=(n=r.sort(U1e))===null||n===void 0?void 0:n[0];o&&(this._latestLocationEvent=o,this.emit(Ar.LocationUpdate,this.latestLocationState))}}setBeaconInfo(e){this._beaconInfo=vU(e.getContent()),this.checkLiveness()}checkLiveness(){var e=this.isLive;if(this.beaconInfo){var n=this.beaconInfo.timestamp>Date.now()?this.beaconInfo.timestamp-36e4:this.beaconInfo.timestamp;this._isLive=!!this._beaconInfo.live&&!!n&&w9(n,this._beaconInfo.timeout,Date.now()),e!==this.isLive&&this.emit(Ar.LivenessChange,this.isLive,this)}}}function CU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function MFe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?CU(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CU(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function EU(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return new ii({content:{[e.getId()]:{[n]:{[t]:MFe({ts:e.getTs()},!r&&{thread_id:rm(e)})}}},type:Ce.Receipt,room_id:e.getRoomId()})}var HF=0,$F=1;class yU extends Cr{constructor(){super(...arguments),I(this,"receipts",new eu(()=>new Map)),I(this,"receiptCacheByEventId",new Map)}getReadReceiptForUserId(e){var n,r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ti.Read,[s,u]=(n=(r=this.receipts.get(i))===null||r===void 0?void 0:r.get(e))!==null&&n!==void 0?n:[null,null];return o?s:u??s}compareReceipts(e,n){var r;return(r=this.getUnfilteredTimelineSet().compareEventOrdering(e.eventId,n.eventId))!==null&&r!==void 0?r:e.data.ts-n.data.ts}getEventReadUpTo(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.getLatestReceipt(e,n);return r&&this.receiptPointsAtConsistentEvent(r)?r.eventId:null}receiptPointsAtConsistentEvent(e){var n,r=this.findEventById(e.eventId);if(!r)return!1;if(!((n=e.data)!==null&&n!==void 0&&n.thread_id))return!0;if(e.data.thread_id===bp){var o=uf(r);if(o)return!0}else if(r.threadRootId===e.data.thread_id)return!0;return Y.warn("Ignoring receipt because its thread_id (".concat(e.data.thread_id,") disagrees ")+"with the thread root (".concat(r.threadRootId,") of the referenced event ")+"(event ID = ".concat(e.eventId,")")),!1}getLatestReceipt(e,n){var r,o,i=this.getReadReceiptForUserId(e,n,ti.Read),s=this.getReadReceiptForUserId(e,n,ti.ReadPrivate),u;return i!=null&&i.eventId&&s!==null&&s!==void 0&&s.eventId&&(u=this.compareReceipts(i,s)),u?(o=u<0?s:i)!==null&&o!==void 0?o:null:(r=s??i)!==null&&r!==void 0?r:null}addReceiptToStructure(e,n,r,o,i){var s,u,l=this.receipts.getOrCreate(n),c=l.get(r);c||(c=[null,null],l.set(r,c));var d=c[HF];if(i){var F;d=(F=c[$F])!==null&&F!==void 0?F:c[HF]}var h={eventId:e,data:o};if(d){var m=this.compareReceipts(d,h);if(m>=0)return}var D=i?c[HF]:h,g=i?h:c[$F],p=null;D&&g&&(p=this.getUnfilteredTimelineSet().compareEventOrdering(D.eventId,g.eventId));var _=p===null||p<0,v=(s=c[$F])!==null&&s!==void 0?s:c[HF];i&&_?c[$F]=h:i||(c[HF]=h,_||(c[$F]=null));var E=(u=c[$F])!==null&&u!==void 0?u:c[HF];if(v!==E){if(v&&this.receiptCacheByEventId.get(v.eventId)){var b=v.eventId;this.receiptCacheByEventId.set(b,this.receiptCacheByEventId.get(b).filter(k=>k.type!==n||k.userId!==r)),this.receiptCacheByEventId.get(b).length<1&&this.receiptCacheByEventId.delete(b)}this.receiptCacheByEventId.get(e)||this.receiptCacheByEventId.set(e,[]),this.receiptCacheByEventId.get(e).push({userId:r,type:n,data:o})}}getReceiptsForEvent(e){return this.receiptCacheByEventId.get(e.getId())||[]}fixupNotifications(e){var n=this.getReadReceiptForUserId(e,!1),r=this.timeline[this.timeline.length-1];r&&(n==null?void 0:n.eventId)===r.getId()&&e===r.getSender()&&(this.setUnread(Ln.Total,0),this.setUnread(Ln.Highlight,0))}addLocalEchoReceipt(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;this.addReceipt(EU(e,n,r,o),!0)}getUsersReadUpTo(e){return this.getReceiptsForEvent(e).filter(function(n){return Nk(n.type)}).map(function(n){return n.userId})}}var PFe=new Si.UnstableValue("m.poll.disclosed","org.matrix.msc3381.poll.disclosed"),LFe=new Si.UnstableValue("m.poll.undisclosed","org.matrix.msc3381.poll.undisclosed"),NFe=new Si.UnstableValue("m.poll.start","org.matrix.msc3381.poll.start"),Wp=new Si.UnstableValue("m.poll.response","org.matrix.msc3381.poll.response"),xb=new Si.UnstableValue("m.poll.end","org.matrix.msc3381.poll.end"),rd=function(t){return t.New="Poll.new",t.End="Poll.end",t.Update="Poll.update",t.Responses="Poll.Responses",t.Destroy="Poll.Destroy",t.UndecryptableRelations="Poll.UndecryptableRelations",t}({}),xU=(t,e)=>{var n=t.filter(r=>{if(!r.isDecryptionFailure())return Wp.matches(r.getType())&&r.getTs()<=e});return{responseEvents:n}};class wU extends Cr{constructor(e,n,r){if(super(),this.rootEvent=e,this.matrixClient=n,this.room=r,I(this,"roomId",void 0),I(this,"pollEvent",void 0),I(this,"_isFetchingResponses",!1),I(this,"relationsNextBatch",void 0),I(this,"responses",null),I(this,"endEvent",void 0),I(this,"undecryptableRelationEventIds",new Set),I(this,"countUndecryptableEvents",o=>{var i=o.filter(u=>u.isDecryptionFailure()).map(u=>u.getId()),s=this.undecryptableRelationsCount;this.undecryptableRelationEventIds=new Set([...this.undecryptableRelationEventIds,...i]),this.undecryptableRelationsCount!==s&&this.emit(rd.UndecryptableRelations,this.undecryptableRelationsCount)}),!this.rootEvent.getRoomId()||!this.rootEvent.getId())throw new Error("Invalid poll start event.");this.roomId=this.rootEvent.getRoomId(),this.pollEvent=this.rootEvent.unstableExtensibleEvent}get pollId(){return this.rootEvent.getId()}get endEventId(){var e;return(e=this.endEvent)===null||e===void 0?void 0:e.getId()}get isEnded(){return!!this.endEvent}get isFetchingResponses(){return this._isFetchingResponses}get undecryptableRelationsCount(){return this.undecryptableRelationEventIds.size}getResponses(){var e=this;return Z(function*(){return e.responses||e.isFetchingResponses||(yield e.fetchResponses()),e.responses})()}onNewRelation(e){var n;if(xb.matches(e.getType())&&this.validateEndEvent(e)&&(this.endEvent=e,this.refilterResponsesOnEnd(),this.emit(rd.End)),!!this.responses){var r=((n=this.endEvent)===null||n===void 0?void 0:n.getTs())||Number.MAX_SAFE_INTEGER,{responseEvents:o}=xU([e],r);this.countUndecryptableEvents([e]),o.length&&(o.forEach(i=>{this.responses.addEvent(i)}),this.emit(rd.Responses,this.responses))}}fetchResponses(){var e=this;return Z(function*(){var n,r;e._isFetchingResponses=!0;var o=yield e.matrixClient.relations(e.roomId,e.rootEvent.getId(),"m.reference",void 0,{from:e.relationsNextBatch||void 0});yield Promise.all(o.events.map(c=>e.matrixClient.decryptEventIfNeeded(c)));var i=e.responses||new b9("m.reference",Wp.name,e.matrixClient,[Wp.altName]),s=o.events.find(c=>xb.matches(c.getType()));e.validateEndEvent(s)&&(e.endEvent=s,e.refilterResponsesOnEnd(),e.emit(rd.End));var u=((n=e.endEvent)===null||n===void 0?void 0:n.getTs())||Number.MAX_SAFE_INTEGER,{responseEvents:l}=xU(o.events,u);l.forEach(c=>{i.addEvent(c)}),e.relationsNextBatch=(r=o.nextBatch)!==null&&r!==void 0?r:void 0,e.responses=i,e.countUndecryptableEvents(o.events),e.relationsNextBatch?e.fetchResponses():e._isFetchingResponses=!1,e.emit(rd.Responses,e.responses)})()}refilterResponsesOnEnd(){var e;if(this.responses){var n=((e=this.endEvent)===null||e===void 0?void 0:e.getTs())||Number.MAX_SAFE_INTEGER;this.responses.getRelations().forEach(r=>{if(r.getTs()>n){var o;(o=this.responses)===null||o===void 0||o.removeEvent(r)}}),this.emit(rd.Responses,this.responses)}}validateEndEvent(e){if(!e||this.endEvent&&this.endEvent.getTs()<e.getTs())return!1;var n=this.room.currentState,r=e.getSender();return!!r&&(r===this.rootEvent.getSender()||n.maySendRedactionForEvent(this.rootEvent,r))}}var kU=t=>{var e=t.getType();return Si.M_POLL_START.matches(e)||Wp.matches(e)||xb.matches(e)};class zFe{constructor(e){I(this,"room",void 0),I(this,"threadedReceipts",void 0),I(this,"unthreadedReceipts",void 0),I(this,"danglingReceipts",void 0),I(this,"onTimelineEvent",n=>{var r=n.getId();if(r){var o=this.danglingReceipts.remove(r);o==null||o.forEach(i=>{i.receipt.thread_id?this.threadedReceipts.set(i.receipt.thread_id,i.eventId,i.receiptType,i.userId,i.receipt.ts,i.synthetic):this.unthreadedReceipts.set(r,i.receiptType,i.userId,i.receipt.ts,i.synthetic)})}}),this.room=e,this.threadedReceipts=new HFe(e),this.unthreadedReceipts=new SU(e),this.danglingReceipts=new $Fe,e.on(Ke.Timeline,this.onTimelineEvent)}add(e,n){for(var[r,o]of Object.entries(e))for(var[i,s]of Object.entries(o))for(var[u,l]of Object.entries(s)){var c=this.room.findEventById(r);c?l.thread_id?this.threadedReceipts.set(l.thread_id,r,i,u,l.ts,n):this.unthreadedReceipts.set(r,i,u,l.ts,n):this.danglingReceipts.add(new VFe(r,i,u,l,n))}}hasUserReadEvent(e,n){var r=this.unthreadedReceipts.get(e);if(r&&S9(r.eventId,n,this.room))return!0;var o=this.room.findEventById(n);if(!o)return Y.warn("hasUserReadEvent event ID ".concat(n," not found in room ").concat(this.room.roomId,": this shouldn't happen!")),!1;var i=rm(o),s=this.threadedReceipts.get(i,e);return!!(s&&S9(s.eventId,n,this.room)||this.userSentLatestEventInThread(i,e))}userSentLatestEventInThread(e,n){var r,o=e===bp?this.room.getLiveTimeline().getEvents():(r=this.room.getThread(e))===null||r===void 0?void 0:r.timeline;return!!(o&&o.length>0&&o[o.length-1].getSender()===n)}}class UFe{constructor(e,n,r){this.eventId=e,this.receiptType=n,this.ts=r}}class VFe{constructor(e,n,r,o,i){this.eventId=e,this.receiptType=n,this.userId=r,this.receipt=o,this.synthetic=i}}class qFe{constructor(e){I(this,"room",void 0),I(this,"real",void 0),I(this,"synthetic",void 0),this.room=e,this.real=void 0,this.synthetic=void 0}set(e,n){e?this.synthetic=n:this.real=n,this.synthetic&&this.real&&S9(this.real.eventId,this.synthetic.eventId,this.room)&&(this.synthetic=void 0)}get(){var e;return(e=this.synthetic)!==null&&e!==void 0?e:this.real}getByType(e){return e?this.synthetic:this.real}}class SU{constructor(e){I(this,"room",void 0),I(this,"data",void 0),this.room=e,this.data=new Map}set(e,n,r,o,i){var s=k9(this.data,r,()=>new qFe(this.room)),u=s.getByType(i);u&&WFe(u.eventId,e,this.room)||s.set(i,new UFe(e,n,o))}get(e){var n;return(n=this.data.get(e))===null||n===void 0?void 0:n.get()}}class HFe{constructor(e){I(this,"room",void 0),I(this,"data",void 0),this.room=e,this.data=new Map}set(e,n,r,o,i,s){var u=k9(this.data,e,()=>new SU(this.room));u.set(n,r,o,i,s)}get(e,n){var r;return(r=this.data.get(e))===null||r===void 0?void 0:r.get(n)}}class $Fe{constructor(){I(this,"data",new Map)}add(e){var n=k9(this.data,e.eventId,()=>[]);n.push(e)}remove(e){var n=this.data.get(e);return this.data.delete(e),n}}function k9(t,e,n){var r=t.get(e);if(r)return r;var o=n();return t.set(e,o),o}function S9(t,e,n){var r=n.compareEventOrdering(t,e);return r!==null&&r>=0}function WFe(t,e,n){var r=n.compareEventOrdering(t,e);return r!==null&&r>0}function KFe(t,e,n){var r=t.findEventById(e),o=t.findEventById(n);if(!r||!o)return null;var i=uf(r),s=uf(o);return i&&s?GFe(t,e,n,r,o):YFe(e,n,r,o)}function GFe(t,e,n,r,o){var i=t.getUnfilteredTimelineSet(),s=i.compareEventOrdering(e,n);if(s!==null)return s;var u=i.getTimelineForEvent(e);if(u===i.getLiveTimeline())return 1;var l=i.getTimelineForEvent(n);return l===i.getLiveTimeline()?-1:jU(r,o)}function YFe(t,e,n,r){var o=rm(n),i=rm(r),s=n.getThread();return s&&o===i?s.timelineSet.compareEventOrdering(t,e):jU(n,r)}function jU(t,e){var n=t.getTs(),r=e.getTs();return n<r?-1:n>r?1:0}Se=function(t){return t.Get="GET",t.Put="PUT",t.Post="POST",t.Delete="DELETE",t.Options="OPTIONS",t.Head="HEAD",t.Patch="PATCH",t}({});function BU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ZFe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?BU(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):BU(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}class od extends Error{constructor(e,n,r){super(e),this.httpStatus=n,this.httpHeaders=r}isRateLimitError(){return this.httpStatus===429}getRetryAfterMs(){var e,n=(e=this.httpHeaders)===null||e===void 0?void 0:e.get("Retry-After");if(n!=null){if(/^\d+$/.test(n)){var r=Number.parseInt(n)*1e3;if(!Number.isFinite(r))throw new Error("Retry-After header integer value is too large");return r}var o=new Date(n);if(o.toUTCString()!==n)throw new Error("Retry-After header value is not a valid HTTP-date or non-negative decimal integer");return o.getTime()-Date.now()}return null}}tn=class extends od{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=t.error||"Unknown message";e&&(i="[".concat(e,"] ").concat(i)),n&&(i="".concat(i," (").concat(n,")")),super("MatrixError: ".concat(i),e,o),this.url=n,this.event=r,I(this,"errcode",void 0),I(this,"data",void 0),this.errcode=t.errcode,this.name=t.errcode||"Unknown error code",this.data=t}isRateLimitError(){return this.errcode==="M_LIMIT_EXCEEDED"||(this.errcode==="M_UNKNOWN"||this.errcode===void 0)&&super.isRateLimitError()}getRetryAfterMs(){var t=super.getRetryAfterMs();if(t!==null)return t;if(this.errcode==="M_LIMIT_EXCEEDED"&&"retry_after_ms"in this.data){if(!Number.isInteger(this.data.retry_after_ms))throw new Error("retry_after_ms is not an integer");return this.data.retry_after_ms}return null}asWidgetApiErrorData(){var t,e,n,r,o={};if(this.httpHeaders)for(var[i,s]of this.httpHeaders)o[i]=s;return{http_status:(t=this.httpStatus)!==null&&t!==void 0?t:400,http_headers:o,url:(e=this.url)!==null&&e!==void 0?e:"",response:ZFe({errcode:(n=this.errcode)!==null&&n!==void 0?n:"M_UNKNOWN",error:(r=this.data.error)!==null&&r!==void 0?r:"Unknown message"},this.data)}}static fromWidgetApiErrorData(t){return new tn(t.response,t.http_status,t.url,void 0,new Headers(t.http_headers))}};function j9(t,e){if(!(t instanceof od)||!t.isRateLimitError())return e;try{var n;return(n=t.getRetryAfterMs())!==null&&n!==void 0?n:e}catch{return e}}class ih extends Error{constructor(e,n){super(e+(n?": ".concat(n.message):""))}get name(){return"ConnectionError"}}class AU extends Error{constructor(e){var n;super((n=e==null?void 0:e.message)!==null&&n!==void 0?n:"")}get name(){return"TokenRefreshError"}}class B9 extends Error{constructor(e){var n;super((n=e==null?void 0:e.message)!==null&&n!==void 0?n:"")}get name(){return"TokenRefreshLogoutError"}}var Kp=function(t){return t.SessionLoggedOut="Session.logged_out",t.NoConsent="no_consent",t}({}),TU=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,JFe=/\\([\u000b\u0020-\u00ff])/g,XFe=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,QFe=eme;function eme(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?tme(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var n=e.indexOf(";"),r=n!==-1?e.slice(0,n).trim():e.trim();if(!XFe.test(r))throw new TypeError("invalid media type");var o=new nme(r.toLowerCase());if(n!==-1){var i,s,u;for(TU.lastIndex=n;s=TU.exec(e);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,i=s[1].toLowerCase(),u=s[2],u.charCodeAt(0)===34&&(u=u.slice(1,-1),u.indexOf("\\")!==-1&&(u=u.replace(JFe,"$1"))),o.parameters[i]=u}if(n!==e.length)throw new TypeError("invalid parameter format")}return o}function tme(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function nme(t){this.parameters=Object.create(null),this.type=t}function wb(t){var e=new AbortController;return setTimeout(()=>{e.abort()},t),e.signal}function IU(t){var e=new AbortController;function n(){for(var i of t)i.removeEventListener("abort",r)}function r(){e.abort(),n()}for(var o of t){if(o.aborted){r();break}o.addEventListener("abort",r)}return{signal:e.signal,cleanup:n}}function A9(t,e){var n,r,o=RU(t)?new Headers(t.getAllResponseHeaders().trim().split(/[\r\n]+/).map(s=>{var u=s.indexOf(":");return[s.substring(0,u),s.substring(u+1)]})):t.headers,i;try{i=rme(o)}catch(s){return s}return((n=i)===null||n===void 0?void 0:n.type)==="application/json"&&e?new tn(JSON.parse(e),t.status,RU(t)?t.responseURL:t.url,void 0,o):((r=i)===null||r===void 0?void 0:r.type)==="text/plain"?new od("Server returned ".concat(t.status," error: ").concat(e),t.status,o):new od("Server returned ".concat(t.status," error"),t.status,o)}function RU(t){return"getResponseHeader"in t}function rme(t){var e=t.get("Content-Type");if(e===null)return null;try{return QFe(e)}catch(n){throw new Error("Error parsing Content-Type '".concat(e,"': ").concat(n))}}function T9(t,e){return I9.apply(this,arguments)}function I9(){return I9=Z(function*(t,e){for(var n=0,r=null;n<t;)try{if(n>0){var o=1e3*Math.pow(2,n);Y.log("network operation failed ".concat(n," times, retrying in ").concat(o,"ms...")),yield yc(o)}return yield e()}catch(i){if(i instanceof ih)n+=1,r=i;else throw i}throw r}),I9.apply(this,arguments)}ix=function(t,e,n){return e>4||t instanceof ih&&!n||t.httpStatus&&Math.floor(t.httpStatus/100)===4&&t.httpStatus!==429||t.name==="AbortError"||t.name==="M_TOO_LARGE"?-1:j9(t,1e3*Math.pow(2,e))};var id=function(t){return t.Success="success",t.Failure="failure",t.Logout="logout",t}({}),ome=500,ime=60*1e3;class ame{constructor(e){this.opts=e,I(this,"tokenRefreshPromise",void 0),I(this,"latestTokenRefreshExpiry",void 0)}prepareForRequest(){var e=this;return Z(function*(){return yield e.refreshIfNeeded(),{accessToken:e.opts.accessToken,refreshToken:e.opts.refreshToken,expiry:e.latestTokenRefreshExpiry}})()}refreshIfNeeded(){var e=this;return Z(function*(){if(e.tokenRefreshPromise)return e.tokenRefreshPromise;if(e.latestTokenRefreshExpiry){var n=e.latestTokenRefreshExpiry.getTime()-Date.now();n<=ome&&(yield e._handleUnknownToken())}})()}handleUnknownToken(e,n){var r=this;return Z(function*(){return r._handleUnknownToken(e,n)})()}_handleUnknownToken(e,n){var r=this;return Z(function*(){if(e!=null&&e.expiry){var o=e.expiry.getTime()-Date.now();if(o>=ime)return id.Logout}if(!e||(e==null?void 0:e.accessToken)===r.opts.accessToken){var i;(i=r.tokenRefreshPromise)!==null&&i!==void 0||(r.tokenRefreshPromise=r.doTokenRefresh(n));try{return yield r.tokenRefreshPromise}finally{r.tokenRefreshPromise=void 0}}return id.Success})()}doTokenRefresh(e){var n=this;return Z(function*(){if(!n.opts.refreshToken||!n.opts.tokenRefreshFunction){var r;return(r=n.opts.logger)===null||r===void 0||r.error("Unable to refresh token - no refresh token or refresh function"),id.Logout}e&&e>1&&(yield yc(1e3*Math.min(32,2**e)));try{var o,i;(o=n.opts.logger)===null||o===void 0||o.debug("Attempting to refresh token");var{accessToken:s,refreshToken:u,expiry:l}=yield n.opts.tokenRefreshFunction(n.opts.refreshToken);return n.opts.accessToken=s,n.opts.refreshToken=u,n.latestTokenRefreshExpiry=l,(i=n.opts.logger)===null||i===void 0||i.debug("... token refresh complete, new token expiry:",l),id.Success}catch(F){var c;if(F instanceof B9||F instanceof tn){var d;return(d=n.opts.logger)===null||d===void 0||d.error("Failed to refresh token",F),id.Logout}return(c=n.opts.logger)===null||c===void 0||c.warn("Failed to refresh token",F),id.Failure}})()}}class sme{constructor(e,n){var r;this.eventEmitter=e,this.opts=n,I(this,"abortController",new AbortController),I(this,"tokenRefresher",void 0),JN(n,["baseUrl","prefix"]),n.onlyData=!!n.onlyData,n.useAuthorizationHeader=(r=n.useAuthorizationHeader)!==null&&r!==void 0?r:!0,this.tokenRefresher=new ame(n)}abort(){this.abortController.abort(),this.abortController=new AbortController}fetch(e,n){return this.opts.fetchFn?this.opts.fetchFn(e,n):globalThis.fetch(e,n)}setIdBaseUrl(e){this.opts.idBaseUrl=e}idServerRequest(e,n,r,o,i){if(!this.opts.idBaseUrl)throw new Error("No identity server base URL set");var s=void 0,u=void 0;e===Se.Get?s=r:u=r;var l=this.getUrl(n,s,o,this.opts.idBaseUrl),c={json:!0,headers:{}};return i&&(c.headers.Authorization="Bearer ".concat(i)),this.requestOtherUrl(e,l,u,c)}authedRequest(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};return this.doAuthedRequest(1,e,n,r,o,i)}doAuthedRequest(e,n,r,o,i){var s=arguments,u=this;return Z(function*(){var l=s.length>5&&s[5]!==void 0?s[5]:{},c=Cp(l);c.abortSignal=l.abortSignal;var d=yield u.tokenRefresher.prepareForRequest();d.accessToken&&(u.opts.useAuthorizationHeader?(c.headers||(c.headers={}),c.headers.Authorization||(c.headers.Authorization="Bearer ".concat(d.accessToken)),o.access_token&&delete o.access_token):o.access_token||(o.access_token=d.accessToken));try{var F=yield u.request(n,r,o,i,c);return F}catch(m){if(!(m instanceof tn))throw m;if(m.errcode==="M_UNKNOWN_TOKEN"){var h=yield u.tokenRefresher.handleUnknownToken(d,e);if(h===id.Success)return u.doAuthedRequest(e+1,n,r,o,i,l);if(h===id.Failure)throw new AU(m);c!=null&&c.inhibitLogoutEmit||u.eventEmitter.emit(Kp.SessionLoggedOut,m)}else m.errcode=="M_CONSENT_NOT_GIVEN"&&u.eventEmitter.emit(Kp.NoConsent,m.message,m.data.consent_uri);throw m}})()}request(e,n,r,o,i){var s=this.getUrl(n,r,i==null?void 0:i.prefix,i==null?void 0:i.baseUrl);return this.requestOtherUrl(e,s,o,i)}requestOtherUrl(e,n,r){var o=arguments,i=this;return Z(function*(){var s,u,l,c,d,F=o.length>3&&o[3]!==void 0?o[3]:{},h=i.sanitizeUrlForLogs(n);(s=i.opts.logger)===null||s===void 0||s.debug("FetchHttpApi: --> ".concat(e," ").concat(h));var m=Object.assign({},F.headers||{}),D=(u=F.json)!==null&&u!==void 0?u:!0,g=D&&(r==null||(l=r.constructor)===null||l===void 0?void 0:l.name)===Object.name;D&&(g&&!m["Content-Type"]&&(m["Content-Type"]="application/json"),m.Accept||(m.Accept="application/json"));var p=(c=F.localTimeoutMs)!==null&&c!==void 0?c:i.opts.localTimeoutMs,_=(d=F.keepAlive)!==null&&d!==void 0?d:!1,v=[i.abortController.signal];p!==void 0&&v.push(wb(p)),F.abortSignal&&v.push(F.abortSignal);var E;g?E=JSON.stringify(r):E=r;var{signal:b,cleanup:k}=IU(v),C,S=Date.now();try{var w;C=yield i.fetch(n,{signal:b,method:e,body:E,headers:m,mode:"cors",redirect:"follow",referrer:"",referrerPolicy:"no-referrer",cache:"no-cache",credentials:"omit",keepalive:_,priority:F.priority}),(w=i.opts.logger)===null||w===void 0||w.debug("FetchHttpApi: <-- ".concat(e," ").concat(h," [").concat(Date.now()-S,"ms ").concat(C.status,"]"))}catch(O){var A;throw(A=i.opts.logger)===null||A===void 0||A.debug("FetchHttpApi: <-- ".concat(e," ").concat(h," [").concat(Date.now()-S,"ms ").concat(O,"]")),O.name==="AbortError"?O:new ih("fetch failed",O)}finally{k()}if(!C.ok)throw A9(C,yield C.text());return i.opts.onlyData?D?C.json():C.text():C})()}sanitizeUrlForLogs(e){try{var n;typeof e=="string"?n=new URL(e):n=e;var r=new URLSearchParams;for(var o of n.searchParams.keys())r.append(o,"xxx");var i=r.toString(),s=i?"?".concat(i):"";return n.origin+n.pathname+s}catch{return"??"}}getUrl(e,n,r,o){var i=o??this.opts.baseUrl,s=i.endsWith("/")?i.slice(0,-1):i,u=new URL(s+(r??this.opts.prefix)+e);return n&&Ik(n,u.searchParams),u}}let Fu,ah,OU,MU,R9,mu,PU;Do=function(t){return t.V1="/_matrix/client/v1",t.V3="/_matrix/client/v3",t.Unstable="/_matrix/client/unstable",t}({}),Fu=function(t){return t.V2="/_matrix/identity/v2",t}({}),ah=function(t){return t.V1="/_matrix/media/v1",t.V3="/_matrix/media/v3",t}({}),OU=1e3,MU=0,mu=[],PU=function(){};function LU(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];e=e||0,e<0&&(e=0);var i=Date.now()+e,s=MU++,u={runAt:i,func:t,params:r,key:s},l=lme(mu,function(c){return c.runAt-i});return mu.splice(l,0,u),O9(),s}function NU(t){if(mu.length!==0){var e;for(e=0;e<mu.length;e++){var n=mu[e];if(n.key==t){mu.splice(e,1);break}}e===0&&O9()}}function O9(){R9&&globalThis.clearTimeout(R9);var t=mu[0];if(t){var e=Date.now(),n=Math.min(t.runAt-e,OU);R9=globalThis.setTimeout(ume,n)}}function ume(){for(var t=Date.now(),e=[];;){var n=mu[0];if(!n||n.runAt>t)break;var r=mu.shift();PU("runCallbacks: popping",r.key),e.push(r)}O9();for(var o of e)try{o.func.apply(globalThis,o.params)}catch(i){Y.error("Uncaught exception in callback function",i)}}function lme(t,e){for(var n=0,r=t.length;n<r;){var o=n+r>>1,i=e(t[o]);i>0?r=o:n=o+1}return n}class zU extends sme{constructor(){super(...arguments),I(this,"uploads",[])}uploadContent(e){var n,r,o,i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=(n=s.includeFilename)!==null&&n!==void 0?n:!0,l=(r=s.abortController)!==null&&r!==void 0?r:new AbortController,c=((o=s.type)!==null&&o!==void 0?o:e.type)||"application/octet-stream",d=(i=s.name)!==null&&i!==void 0?i:e.name,F={loaded:0,total:0,abortController:l},h=ll();if(globalThis.XMLHttpRequest){var m=new globalThis.XMLHttpRequest,D=function(){m.abort(),h.reject(new Error("Timeout"))},g=LU(D,3e4);m.onreadystatechange=function(){switch(m.readyState){case globalThis.XMLHttpRequest.DONE:NU(g);try{if(m.status===0)throw new DOMException(m.statusText,"AbortError");if(!m.responseText)throw new Error("No response body.");m.status>=400?h.reject(A9(m,m.responseText)):h.resolve(JSON.parse(m.responseText))}catch(E){if(E.name==="AbortError"){h.reject(E);return}h.reject(new ih("request failed",E))}break}},m.upload.onprogress=E=>{var b;NU(g),F.loaded=E.loaded,F.total=E.total,g=LU(D,3e4),(b=s.progressHandler)===null||b===void 0||b.call(s,{loaded:E.loaded,total:E.total})};var p=this.getUrl("/upload",void 0,ah.V3);u&&d&&p.searchParams.set("filename",encodeURIComponent(d)),!this.opts.useAuthorizationHeader&&this.opts.accessToken&&p.searchParams.set("access_token",encodeURIComponent(this.opts.accessToken)),m.open(Se.Post,p.href),this.opts.useAuthorizationHeader&&this.opts.accessToken&&m.setRequestHeader("Authorization","Bearer "+this.opts.accessToken),m.setRequestHeader("Content-Type",c),m.send(e),l.signal.addEventListener("abort",()=>{m.abort()})}else{var _={};u&&d&&(_.filename=d);var v={"Content-Type":c};this.authedRequest(Se.Post,"/upload",_,e,{prefix:ah.V3,headers:v,abortSignal:l.signal}).then(E=>this.opts.onlyData?E:E.json()).then(h.resolve,h.reject)}return F.promise=h.promise.finally(()=>{Kv(this.uploads,E=>E===F)}),l.signal.addEventListener("abort",()=>{Kv(this.uploads,E=>E===F),h.reject(new DOMException("Aborted","AbortError"))}),this.uploads.push(F),F.promise}cancelUpload(e){var n=this.uploads.find(r=>r.promise===e);return n?(n.abortController.abort(),!0):!1}getCurrentUploads(){return this.uploads}getContentUri(){return{base:this.opts.baseUrl,path:ah.V3+"/upload",params:{access_token:this.opts.accessToken}}}}var cme=6*60*60*1e3,dme=30*1e3,UU=function(t){return t.Stable="stable",t.Unstable="unstable",t}({});class VU{constructor(e){var n=this;this.http=e,I(this,"capabilities",void 0),I(this,"retryTimeout",void 0),I(this,"refreshTimeout",void 0),I(this,"fetchCapabilities",Z(function*(){var r=yield n.http.authedRequest(Se.Get,"/capabilities");return n.capabilities=r.capabilities,n.capabilities})),I(this,"poll",Z(function*(){try{yield n.fetchCapabilities(),n.clearTimeouts(),n.refreshTimeout=setTimeout(n.poll,cme),Y.debug("Fetched new server capabilities")}catch(o){n.clearTimeouts();var r=Math.floor(dme+Math.random()*5e3);n.retryTimeout=setTimeout(n.poll,r),Y.warn("Failed to refresh capabilities: retrying in ".concat(r,"ms"),o)}}))}start(){this.poll().then()}stop(){this.clearTimeouts()}getCachedCapabilities(){return this.capabilities}clearTimeouts(){this.refreshTimeout&&(clearInterval(this.refreshTimeout),this.refreshTimeout=void 0),this.retryTimeout&&(clearTimeout(this.retryTimeout),this.retryTimeout=void 0)}}function qU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Gp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qU(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qU(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var HU="10",hme=["1","2","3","4","5","6","7","8","9","10"],Fme=30,Ln=function(t){return t.Highlight="highlight",t.Total="total",t}({}),Ke=function(t){return t.MyMembership="Room.myMembership",t.Tags="Room.tags",t.AccountData="Room.accountData",t.Receipt="Room.receipt",t.Name="Room.name",t.Redaction="Room.redaction",t.RedactionCancelled="Room.redactionCancelled",t.LocalEchoUpdated="Room.localEchoUpdated",t.Timeline="Room.timeline",t.TimelineReset="Room.timelineReset",t.TimelineRefresh="Room.TimelineRefresh",t.OldStateUpdated="Room.OldStateUpdated",t.CurrentStateUpdated="Room.CurrentStateUpdated",t.HistoryImportedWithinTimeline="Room.historyImportedWithinTimeline",t.UnreadNotifications="Room.UnreadNotifications",t.Summary="Room.Summary",t}({});let kb=class extends yU{constructor(t,e,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),r=this,this.roomId=t,this.client=e,this.myUserId=n,this.opts=o,I(this,"reEmitter",void 0),I(this,"txnToEvent",new Map),I(this,"notificationCounts",{}),I(this,"bumpStamp",void 0),I(this,"threadNotifications",new Map),I(this,"cachedThreadReadReceipts",new Map),I(this,"oldestThreadedReceiptTs",1/0),I(this,"unthreadedReceipts",new Map),I(this,"timelineSets",void 0),I(this,"polls",new Map),I(this,"threadsTimelineSets",[]),I(this,"filteredTimelineSets",{}),I(this,"timelineNeedsRefresh",!1),I(this,"pendingEventList",void 0),I(this,"blacklistUnverifiedDevices",void 0),I(this,"selfMembership",void 0),I(this,"heroes",null),I(this,"getTypeWarning",!1),I(this,"getVersionWarning",!1),I(this,"membersPromise",void 0),I(this,"name",void 0),I(this,"normalizedName",void 0),I(this,"tags",{}),I(this,"accountData",new Map),I(this,"summary",null),I(this,"oldState",void 0),I(this,"currentState",void 0),I(this,"relations",void 0),I(this,"threads",new Map),I(this,"visibilityEvents",new Map),I(this,"roomReceipts",new zFe(this)),I(this,"threadTimelineSetsPromise",null),I(this,"threadsReady",!1),I(this,"updateThreadRootEvents",(i,s,u)=>{if(i.length){var l;if(this.updateThreadRootEvent((l=this.threadsTimelineSets)===null||l===void 0?void 0:l[0],i,s,u),i.hasCurrentUserParticipated){var c;this.updateThreadRootEvent((c=this.threadsTimelineSets)===null||c===void 0?void 0:c[1],i,s,u)}}}),I(this,"updateThreadRootEvent",(i,s,u,l)=>{i&&s.rootEvent&&(l&&i.removeEvent(s.id),xr.hasServerSideSupport?i.addLiveEvent(s.rootEvent,{duplicateStrategy:Hp.Replace,fromCache:!1,roomState:this.currentState,addToState:!1}):i.addEventToTimeline(s.rootEvent,i.getLiveTimeline(),{toStartOfTimeline:u,addToState:!1}))}),I(this,"applyRedaction",i=>{if(i.isRedaction()){var s=i.event.redacts,u=s?this.findEventById(s):void 0;if(u){var l=u.threadRootId;if(u.makeRedacted(i,this),u.isState()){var c=this.currentState.getStateEvents(u.getType(),u.getStateKey());(c==null?void 0:c.getId())===u.getId()&&this.currentState.setStateEvents([u])}this.emit(Ke.Redaction,i,this,l),this.visibilityEvents.delete(s),u.isVisibilityEvent()&&this.redactVisibilityChangeEvent(i)}}}),this.setMaxListeners(100),this.reEmitter=new x1(this),o.pendingEventOrdering=o.pendingEventOrdering||nm.Chronological,this.name=t,this.normalizedName=t,this.relations=new oU(this.client,this),this.on(Ke.Receipt,this.onReceipt),this.timelineSets=[new VF(this,o)],this.reEmitter.reEmit(this.getUnfilteredTimelineSet(),[Ke.Timeline,Ke.TimelineReset]),this.fixUpLegacyTimelineFields(),this.opts.pendingEventOrdering===nm.Detached&&(this.pendingEventList=[],this.client.store.getPendingEvents(this.roomId).then(i=>{var s=this.client.getEventMapper({toDevice:!1,decrypt:!1});i.forEach(function(){var u=Z(function*(l){var c=s(l);yield e.decryptEventIfNeeded(c),c.setStatus(Pt.NOT_SENT),r.addPendingEvent(c,c.getTxnId())});return function(l){return u.apply(this,arguments)}}())})),this.opts.lazyLoadMembers?this.membersPromise=void 0:this.membersPromise=Promise.resolve(!1)}createThreadsTimelineSets(){var t=this;return Z(function*(){var e;if(t.threadTimelineSetsPromise)return t.threadTimelineSetsPromise;if((e=t.client)!==null&&e!==void 0&&e.supportsThreads())try{t.threadTimelineSetsPromise=Promise.all([t.createThreadTimelineSet(),t.createThreadTimelineSet(Ts.My)]);var n=yield t.threadTimelineSetsPromise;return t.threadsTimelineSets[0]=n[0],t.threadsTimelineSets[1]=n[1],n}catch{return t.threadTimelineSetsPromise=null,null}return null})()}decryptCriticalEvents(){var t=this;return Z(function*(){if(t.client.getCrypto()){var e=t.getEventReadUpTo(t.client.getUserId(),!0),n=t.getLiveTimeline().getEvents(),r=n.findIndex(i=>i.event.event_id===e),o=n.slice(r).reverse().map(i=>t.client.decryptEventIfNeeded(i));yield Promise.allSettled(o)}})()}decryptAllEvents(){var t=this;return Z(function*(){if(t.client.getCrypto()){var e=t.getUnfilteredTimelineSet().getLiveTimeline().getEvents().slice(0).reverse().map(n=>t.client.decryptEventIfNeeded(n));yield Promise.allSettled(e)}})()}getCreator(){var t,e=this.currentState.getStateEvents(Ce.RoomCreate,"");return(t=e==null?void 0:e.getSender())!==null&&t!==void 0?t:null}getVersion(){var t,e=this.currentState.getStateEvents(Ce.RoomCreate,"");return e?(t=e.getContent().room_version)!==null&&t!==void 0?t:"1":(this.getVersionWarning||(Y.warn("[getVersion] Room "+this.roomId+" does not have an m.room.create event"),this.getVersionWarning=!0),"1")}getRecommendedVersion(){var t=this;return Z(function*(){var e={};try{e=yield t.client.getCapabilities()}catch{}var n=e["m.room_versions"];if(!n){n={default:HU,available:{}};for(var r of hme)n.available[r]=UU.Stable}var o=t.checkVersionAgainstCapability(n);if(o.urgent&&o.needsUpgrade){Y.warn("Refreshing room version capability because the server looks to be supporting a newer room version we don't know about.");try{e=yield t.client.fetchCapabilities()}catch(i){Y.warn("Failed to refresh room version capabilities",i)}if(n=e["m.room_versions"],n)o=t.checkVersionAgainstCapability(n);else return Y.warn("No room version capability - assuming upgrade required."),o}return o})()}checkVersionAgainstCapability(t){var e=this.getVersion();Y.log("[".concat(this.roomId,"] Current version: ").concat(e)),Y.log("[".concat(this.roomId,"] Version capability: "),t);var n={version:e,needsUpgrade:!1,urgent:!1};if(e===t.default)return n;var r=Object.keys(t.available).filter(o=>t.available[o]==="stable");return r.includes(e)||(n.version=t.default,n.needsUpgrade=!0,n.urgent=!!this.getVersion().match(/^[0-9]+[0-9.]*$/g),n.urgent?Y.warn("URGENT upgrade required on ".concat(this.roomId)):Y.warn("Non-urgent upgrade required on ".concat(this.roomId))),n}userMayUpgradeRoom(t){return this.currentState.maySendStateEvent(Ce.RoomTombstone,t)}getPendingEvents(){if(!this.pendingEventList)throw new Error("Cannot call getPendingEvents with pendingEventOrdering == "+this.opts.pendingEventOrdering);return this.pendingEventList}removePendingEvent(t){if(!this.pendingEventList)throw new Error("Cannot call removePendingEvent with pendingEventOrdering == "+this.opts.pendingEventOrdering);var e=Kv(this.pendingEventList,function(n){return n.getId()==t},!1);return this.savePendingEvents(),e}hasPendingEvent(t){var e,n;return(e=(n=this.pendingEventList)===null||n===void 0?void 0:n.some(r=>r.getId()===t))!==null&&e!==void 0?e:!1}getPendingEvent(t){var e,n;return(e=(n=this.pendingEventList)===null||n===void 0?void 0:n.find(r=>r.getId()===t))!==null&&e!==void 0?e:null}getLiveTimeline(){return this.getUnfilteredTimelineSet().getLiveTimeline()}get timeline(){return this.getLiveTimeline().getEvents()}getLastActiveTimestamp(){var t=this.getLiveTimeline(),e=t.getEvents();if(e.length){var n=e[e.length-1];return n.getTs()}else return Number.MIN_SAFE_INTEGER}getLastLiveEvent(){var t,e,n=this.getLiveTimeline().getEvents(),r=n[n.length-1],o=this.getLastThread();if(!o)return r;var i=o.events[o.events.length-1];return((t=r==null?void 0:r.getTs())!==null&&t!==void 0?t:0)>((e=i==null?void 0:i.getTs())!==null&&e!==void 0?e:0)?r:i}getLastThread(){return this.getThreads().reduce((t,e)=>{var n,r;if(!t)return e;var o=e.events[e.events.length-1],i=t.events[t.events.length-1];return((n=o==null?void 0:o.getTs())!==null&&n!==void 0?n:0)>=((r=i==null?void 0:i.getTs())!==null&&r!==void 0?r:0)?e:t},void 0)}getMyMembership(){var t;return(t=this.selfMembership)!==null&&t!==void 0?t:an.Leave}getDMInviter(){var t=this.getMember(this.myUserId);if(t)return t.getDMInviter();if(this.selfMembership===an.Invite){var e=this.getInvitedAndJoinedMemberCount();if(e===2){var n;return(n=this.heroes)===null||n===void 0||(n=n[0])===null||n===void 0?void 0:n.userId}}}guessDMUserId(){var t=this.getMember(this.myUserId);if(t){var e=t.getDMInviter();if(e)return e}if(Array.isArray(this.heroes)&&this.heroes.length)return this.heroes[0].userId;var n=this.currentState.getMembers(),r=n.find(o=>o.userId!==this.myUserId);return r?r.userId:this.myUserId}getFunctionalMembers(){var t=this.currentState.getStateEvents(Hk.name,"");return Array.isArray(t==null?void 0:t.getContent().service_members)?t.getContent().service_members:[]}getAvatarFallbackMember(){var t,e=this.getFunctionalMembers(),n=0;if(this.getMembers().forEach(D=>{D.membership!=="join"&&D.membership!=="invite"||e.includes(D.userId)||n++}),!(n>2)){var r=(t=this.heroes)===null||t===void 0?void 0:t.filter(D=>!e.includes(D.userId)),o=Array.isArray(r)&&r.length;if(o){for(var i of r)if(i.fromMSC4186){var s=new jp(this.roomId,i.userId);return s.setMembershipEvent(new ii({event_id:"$"+this.roomId+i.userId+new Date().getTime(),type:Ce.RoomMember,state_key:i.userId,content:{displayname:i.displayName,avatar_url:i.avatarUrl}})),s}else{var u=this.getMember(i.userId);if(u)return u}var l=r.map(D=>this.getMember(D.userId)).find(D=>!!D);if(l)return l}var c=this.getMembers(),d=c==null?void 0:c.filter(D=>!e.includes(D.userId));if(d.length<=2){var F=d.find(D=>D.userId!==this.myUserId);if(F)return F}if(o){var h=r.map(D=>this.client.getUser(D.userId)).find(D=>!!D);if(h){var m=new jp(this.roomId,h.userId);return m.user=h,m}}}}updateMyMembership(t){var e=this.selfMembership;this.selfMembership=t,e!==t&&(t===an.Leave&&this.cleanupAfterLeaving(),this.emit(Ke.MyMembership,this,t,e))}loadMembersFromServer(){var t=this;return Z(function*(){var e=t.client.store.getSyncToken(),n=yield t.client.members(t.roomId,void 0,an.Leave,e??void 0);return n.chunk})()}loadMembers(){var t=this;return Z(function*(){var e=!1,n=yield t.client.store.getOutOfBandMembers(t.roomId);(n===null||t.hasEncryptionStateEvent())&&(e=!0,n=yield t.loadMembersFromServer(),Y.log("LL: got ".concat(n.length," ")+"members from server for room ".concat(t.roomId)));var r=n.filter(ks).map(t.client.getEventMapper());return{memberEvents:r,fromServer:e}})()}membersLoaded(){return this.opts.lazyLoadMembers?this.currentState.outOfBandMembersReady():!0}loadMembersIfNeeded(){if(this.membersPromise)return this.membersPromise;this.currentState.markOutOfBandMembersStarted();var t=this.loadMembers().then(e=>(this.currentState.setOutOfBandMembers(e.memberEvents),e.fromServer)).catch(e=>{throw this.membersPromise=void 0,this.currentState.markOutOfBandMembersFailed(),e});return t.then(e=>{if(e){var n=this.currentState.getMembers().filter(o=>o.isOutOfBand()).map(o=>{var i;return(i=o.events.member)===null||i===void 0?void 0:i.event});Y.log("LL: telling store to write ".concat(n.length)+" members for room ".concat(this.roomId));var r=this.client.store;return r.setOutOfBandMembers(this.roomId,n).catch(o=>{Y.log("LL: storing OOB room members failed, oh well",o)})}}).catch(e=>{Y.error(e)}),this.membersPromise=t,this.membersPromise}clearLoadedMembersIfNeeded(){var t=this;return Z(function*(){t.opts.lazyLoadMembers&&t.membersPromise&&(yield t.loadMembersIfNeeded(),yield t.client.store.clearOutOfBandMembers(t.roomId),t.currentState.clearOutOfBandMembers(),t.membersPromise=void 0)})()}cleanupAfterLeaving(){this.clearLoadedMembersIfNeeded().catch(t=>{Y.error("error after clearing loaded members from "+"room ".concat(this.roomId," after leaving")),Y.log(t)})}refreshLiveTimeline(){var t=this;return Z(function*(){var e=t.getLiveTimeline(),n=e.getPaginationToken(it.FORWARDS),r=e.getPaginationToken(it.BACKWARDS),o=e.getEvents(),i=o[o.length-1];Y.log("[refreshLiveTimeline for ".concat(t.roomId,"] at ")+"mostRecentEventInTimeline=".concat(i&&i.getId()," ")+"liveTimelineBefore=".concat(e.toString()," ")+"forwardPaginationToken=".concat(n," ")+"backwardPaginationToken=".concat(r));var s=t.getUnfilteredTimelineSet(),u;i?(t.resetLiveTimeline(null,null),t.emit(Ke.TimelineRefresh,t,s),u=yield t.client.getEventTimeline(s,i.getId())):u=yield t.client.getLatestTimeline(s);var l=s.getLiveTimeline();!l||l.getPaginationToken(At.Forward)===null&&l.getPaginationToken(At.Backward)===null&&l.getEvents().length===0?(Y.log("[refreshLiveTimeline for ".concat(t.roomId,"] using our new live timeline")),u.setPaginationToken(n,it.FORWARDS),s.setLiveTimeline(u),t.fixUpLegacyTimelineFields()):Y.log("[refreshLiveTimeline for ".concat(t.roomId,"] `/sync` or some other request beat us to creating a new ")+"live timeline after we reset it. We'll use that instead since any events in the scrollback from this timeline will include the history."),t.setTimelineNeedsRefresh(!1),t.emit(Ke.TimelineRefresh,t,s)})()}resetLiveTimeline(t,e){for(var n of this.timelineSets)n.resetLiveTimeline(t??void 0,e??void 0);for(var r of this.threads.values())r.resetLiveTimeline(t,e);this.fixUpLegacyTimelineFields()}fixUpLegacyTimelineFields(){var t=this.oldState,e=this.currentState;this.oldState=this.getLiveTimeline().getState(it.BACKWARDS),this.currentState=this.getLiveTimeline().getState(it.FORWARDS),t!==this.oldState&&this.emit(Ke.OldStateUpdated,this,t,this.oldState),e!==this.currentState&&(this.emit(Ke.CurrentStateUpdated,this,e,this.currentState),this.reEmitter.stopReEmitting(e,[Zt.Events,Zt.Members,Zt.NewMember,Zt.Update,Zt.Marker,Ar.New,Ar.Update,Ar.Destroy,Ar.LivenessChange]),this.reEmitter.reEmit(this.currentState,[Zt.Events,Zt.Members,Zt.NewMember,Zt.Update,Zt.Marker,Ar.New,Ar.Update,Ar.Destroy,Ar.LivenessChange]))}onReceipt(t){this.hasEncryptionStateEvent()&&this.clearNotificationsOnReceipt(t)}clearNotificationsOnReceipt(t){var e=[],n=!1,r=t.getContent();for(var o of Object.values(r))for(var[i,s]of Object.entries(o))if(Nk(i)&&s){for(var[u,l]of Object.entries(s))if(!(!l||typeof l!="object")){var c=l;u===this.client.getUserId()&&(c.thread_id===void 0?n=!0:typeof c.thread_id=="string"&&e.push(c.thread_id))}}n&&(e=this.getThreads().filter(b=>this.getThreadUnreadNotificationCount(b.id,Ln.Total)>0||this.getThreadUnreadNotificationCount(b.id,Ln.Highlight)>0).map(b=>b.id),e.push("main"));for(var d of e){var F,h=20,m=d==="main"?this.getLiveTimeline():(F=this.getThread(d))===null||F===void 0?void 0:F.liveTimeline;if(!m){Y.warn("Couldn't find timeline for thread ID ".concat(d," in room ").concat(this.roomId));continue}for(var D=m.getEvents(),g=0,p=D.length-1;p>=0;p--){var _;if(p===D.length-h)return;var v=D[p];if(this.hasUserReadEvent(this.client.getUserId(),v.getId()))break;var E=this.client.getPushActionsForEvent(v);g+=E!=null&&(_=E.tweaks)!==null&&_!==void 0&&_.highlight?1:0}d==="main"?this.setUnreadNotificationCount(Ln.Highlight,g):this.setThreadUnreadNotificationCount(d,Ln.Highlight,g)}}getTimelineSets(){return this.timelineSets}getUnfilteredTimelineSet(){return this.timelineSets[0]}getTimelineForEvent(t){var e=this.findEventById(t),n=this.findThreadForEvent(e);return n?n.timelineSet.getTimelineForEvent(t):this.getUnfilteredTimelineSet().getTimelineForEvent(t)}addTimeline(){return this.getUnfilteredTimelineSet().addTimeline()}setTimelineNeedsRefresh(t){this.timelineNeedsRefresh=t}getTimelineNeedsRefresh(){return this.timelineNeedsRefresh}findEventById(t){var e=this.getUnfilteredTimelineSet().findEventById(t);if(!e)for(var n=this.getThreads(),r=0;r<n.length;r++){var o=n[r];if(e=o.findEventById(t),e)return e}return e}getUnreadNotificationCount(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ln.Total,e=this.getRoomUnreadNotificationCount(t);for(var n of this.threadNotifications.values()){var r;e+=(r=n[t])!==null&&r!==void 0?r:0}return e}getUnreadCountForEventContext(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ln.Total,n=arguments.length>1?arguments[1]:void 0,r=!!n.threadRootId&&!n.isThreadRoot;return(t=r?this.getThreadUnreadNotificationCount(n.threadRootId,e):this.getRoomUnreadNotificationCount(e))!==null&&t!==void 0?t:0}getRoomUnreadNotificationCount(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ln.Total;return(t=this.notificationCounts[e])!==null&&t!==void 0?t:0}getThreadUnreadNotificationCount(t){var e,n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ln.Total;return(e=(n=this.threadNotifications.get(t))===null||n===void 0?void 0:n[r])!==null&&e!==void 0?e:0}hasThreadUnreadNotification(){for(var t of this.threadNotifications.values()){var e,n;if(((e=t.highlight)!==null&&e!==void 0?e:0)>0||((n=t.total)!==null&&n!==void 0?n:0)>0)return!0}return!1}setThreadUnreadNotificationCount(t,e,n){var r,o,i=Gp({highlight:(r=this.threadNotifications.get(t))===null||r===void 0?void 0:r.highlight,total:(o=this.threadNotifications.get(t))===null||o===void 0?void 0:o.total},{[e]:n});this.threadNotifications.set(t,i),this.emit(Ke.UnreadNotifications,i,t)}get threadsAggregateNotificationType(){var t=null;for(var e of this.threadNotifications.values()){var n,r;if(((n=e.highlight)!==null&&n!==void 0?n:0)>0)return Ln.Highlight;((r=e.total)!==null&&r!==void 0?r:0)>0&&!t&&(t=Ln.Total)}return t}resetThreadUnreadNotificationCountFromSync(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=this.hasEncryptionStateEvent();for(var[n,r]of this.threadNotifications)t.includes(n)||(r.total=0,e||(r.highlight=0));this.emit(Ke.UnreadNotifications)}setBumpStamp(t){this.bumpStamp=t}getBumpStamp(){return this.bumpStamp}setUnreadNotificationCount(t,e){this.notificationCounts[t]=e,this.emit(Ke.UnreadNotifications,this.notificationCounts)}setUnread(t,e){return this.setUnreadNotificationCount(t,e)}setSummary(t){var e,n=(e=t["m.heroes"])===null||e===void 0?void 0:e.map(i=>({userId:i,fromMSC4186:!1})),r=t["m.joined_member_count"],o=t["m.invited_member_count"];Number.isInteger(r)&&this.currentState.setJoinedMemberCount(r),Number.isInteger(o)&&this.currentState.setInvitedMemberCount(o),Array.isArray(n)&&(this.heroes=n.filter(i=>i.userId!=this.myUserId)),this.emit(Ke.Summary,t)}setMSC4186SummaryData(t,e,n){t&&(this.heroes=t.filter(r=>r.user_id!==this.myUserId).map(r=>({userId:r.user_id,displayName:r.displayname,avatarUrl:r.avatar_url,fromMSC4186:!0}))),e!==void 0&&Number.isInteger(e)&&this.currentState.setJoinedMemberCount(e),n!==void 0&&Number.isInteger(n)&&this.currentState.setInvitedMemberCount(n),this.emit(Ke.Summary,{"m.heroes":this.heroes?this.heroes.map(r=>r.userId):[],"m.joined_member_count":e,"m.invited_member_count":n})}setBlacklistUnverifiedDevices(t){this.blacklistUnverifiedDevices=t}getBlacklistUnverifiedDevices(){return this.blacklistUnverifiedDevices===void 0?null:this.blacklistUnverifiedDevices}getAvatarUrl(t,e,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=this.currentState.getStateEvents(Ce.RoomAvatar,"");if(!s&&!o)return null;var u=s?s.getContent().url:null;return u?eb(t,u,e,n,r,void 0,void 0,i):null}getMxcAvatarUrl(){var t;return((t=this.currentState.getStateEvents(Ce.RoomAvatar,""))===null||t===void 0||(t=t.getContent())===null||t===void 0?void 0:t.url)||null}getCanonicalAlias(){var t=this.currentState.getStateEvents(Ce.RoomCanonicalAlias,"");return t&&t.getContent().alias||null}getAltAliases(){var t=this.currentState.getStateEvents(Ce.RoomCanonicalAlias,"");return t?t.getContent().alt_aliases||[]:[]}addEventsToTimeline(t,e,n,r,o){r.getTimelineSet().addEventsToTimeline(t,e,n,r,o)}getThread(t){var e;return(e=this.threads.get(t))!==null&&e!==void 0?e:null}getThreads(){return Array.from(this.threads.values())}getMember(t){return this.currentState.getMember(t)}getMembers(){return this.currentState.getMembers()}getJoinedMembers(){return this.getMembersWithMembership(an.Join)}getJoinedMemberCount(){return this.currentState.getJoinedMemberCount()}getInvitedMemberCount(){return this.currentState.getInvitedMemberCount()}getInvitedAndJoinedMemberCount(){return this.getInvitedMemberCount()+this.getJoinedMemberCount()}getMembersWithMembership(t){return this.currentState.getMembers().filter(function(e){return e.membership===t})}getEncryptionTargetMembers(){var t=this;return Z(function*(){yield t.loadMembersIfNeeded();var e=t.getMembersWithMembership(an.Join);return t.shouldEncryptForInvitedMembers()&&(e=e.concat(t.getMembersWithMembership(an.Invite))),e})()}shouldEncryptForInvitedMembers(){var t,e=this.currentState.getStateEvents(Ce.RoomHistoryVisibility,"");return(e==null||(t=e.getContent())===null||t===void 0?void 0:t.history_visibility)!=="joined"}getDefaultRoomName(t){return this.calculateRoomName(t,!0)}hasMembershipState(t,e){var n=this.getMember(t);return n?n.membership===e:!1}getOrCreateFilteredTimelineSet(t){var{prepopulateTimeline:e=!0,useSyncEvents:n=!0,pendingEvents:r=!0}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.filteredTimelineSets[t.filterId])return this.filteredTimelineSets[t.filterId];var o=Object.assign({filter:t,pendingEvents:r},this.opts),i=new VF(this,o);this.reEmitter.reEmit(i,[Ke.Timeline,Ke.TimelineReset]),n&&(this.filteredTimelineSets[t.filterId]=i,this.timelineSets.push(i));var s=this.getLiveTimeline();if(e){s.getEvents().forEach(function(c){i.addLiveEvent(c,{addToState:!1})});for(var u=s;u.getNeighbouringTimeline(it.BACKWARDS);)u=u.getNeighbouringTimeline(it.BACKWARDS);i.getLiveTimeline().setPaginationToken(u.getPaginationToken(it.BACKWARDS),it.BACKWARDS)}else if(n){var l=s.getPaginationToken(At.Forward);i.getLiveTimeline().setPaginationToken(l,At.Backward)}return i}getThreadListFilter(){var t=arguments,e=this;return Z(function*(){var n=t.length>0&&t[0]!==void 0?t[0]:Ts.All,r=e.client.getUserId(),o=new Ji(r),i={room:{timeline:{[im.name]:[hr.name]}}};n===Ts.My&&(i.room.timeline[om.name]=[r]),o.setDefinition(i);var s=yield e.client.getOrCreateFilter("THREAD_PANEL_".concat(e.roomId,"_").concat(n),o);return o.filterId=s,o})()}createThreadTimelineSet(t){var e=this;return Z(function*(){var n;if(xr.hasServerSideListSupport)n=new VF(e,Gp(Gp({},e.opts),{},{pendingEvents:!1}),void 0,void 0,t??Ts.All),e.reEmitter.reEmit(n,[Ke.Timeline,Ke.TimelineReset]);else if(xr.hasServerSideSupport){var r=yield e.getThreadListFilter(t);n=e.getOrCreateFilteredTimelineSet(r,{prepopulateTimeline:!1,useSyncEvents:!1,pendingEvents:!1})}else n=new VF(e,{pendingEvents:!1}),Array.from(e.threads).forEach(o=>{var[,i]=o;if(i.length!==0){var s=i.timeline.some(u=>u.getSender()===e.client.getUserId());(t!==Ts.My||s)&&n.getLiveTimeline().addEvent(i.rootEvent,{toStartOfTimeline:!1,addToState:!1})}});return n})()}processThreadRoots(t,e){if(this.client.supportsThreads())for(var n of t)it.setEventMetadata(n,this.currentState,e),this.getThread(n.getId())||this.createThread(n.getId(),n,[],e)}fetchRoomThreads(){var t=this;return Z(function*(){if(!(t.threadsReady||!t.client.supportsThreads())){if(xr.hasServerSideListSupport)yield Promise.all([t.fetchRoomThreadList(Ts.All),t.fetchRoomThreadList(Ts.My)]);else{var e=yield t.getThreadListFilter(),{chunk:n}=yield t.client.createMessagesRequest(t.roomId,"",Number.MAX_SAFE_INTEGER,At.Backward,e);if(!n.length)return;var r=n.map(t.client.getEventMapper()).sort((F,h)=>{var m=F.getServerAggregatedRelation(hr.name),D=h.getServerAggregatedRelation(hr.name);return m.latest_event.origin_server_ts-D.latest_event.origin_server_ts}),o,i=t.getLiveTimeline().getState(it.FORWARDS);for(var s of r){var u,l={duplicateStrategy:Hp.Ignore,fromCache:!1,addToState:!1,roomState:i};(u=t.threadsTimelineSets[0])===null||u===void 0||u.addLiveEvent(s,l);var c=s.getServerAggregatedRelation(hr.name);if(c!=null&&c.current_user_participated){var d;(d=t.threadsTimelineSets[1])===null||d===void 0||d.addLiveEvent(s,l),o=s}}t.processThreadRoots(r,!0),t.client.decryptEventIfNeeded(r[r.length-1]),o&&t.client.decryptEventIfNeeded(o)}t.on(ji.NewReply,t.onThreadReply),t.on(ji.Update,t.onThreadUpdate),t.on(ji.Delete,t.onThreadDelete),t.threadsReady=!0}})()}processPollEvents(t){var e=this;return Z(function*(){for(var n of t)try{if(!n.isEncrypted()&&!kU(n))continue;yield e.client.decryptEventIfNeeded(n),e.processPollEvent(n)}catch(r){Y.warn("Error processing poll event",n.getId(),r)}})()}processPollEvent(t){var e=this;return Z(function*(){if(t.isDecryptionFailure()){t.once(Un.Decrypted,i=>{e.processPollEvent(i)});return}if(Si.M_POLL_START.matches(t.getType())){try{var n=new wU(t,e.client,e);e.polls.set(t.getId(),n),e.emit(rd.New,n),t.once(Un.BeforeRedaction,i=>{e.polls.delete(i.getId())})}catch{}return}var r=t.relationEventId;if(r&&e.polls.has(r)){var o=e.polls.get(r);o==null||o.onNewRelation(t)}})()}fetchRoomThreadList(t){var e=this;return Z(function*(){if(e.client.supportsThreads()&&e.threadsTimelineSets.length!==0){var n=t===Ts.My?e.threadsTimelineSets[1]:e.threadsTimelineSets[0],{chunk:r,end:o}=yield e.client.createThreadListMessagesRequest(e.roomId,null,void 0,At.Backward,n.threadListType,n.getFilter());if(n.getLiveTimeline().setPaginationToken(o??null,At.Backward),!!r.length){var i=r.map(e.client.getEventMapper());e.processThreadRoots(i,!0);var s=e.getLiveTimeline().getState(it.FORWARDS);for(var u of i)n.addLiveEvent(u,{duplicateStrategy:Hp.Replace,fromCache:!1,roomState:s,addToState:!1})}}})()}onThreadUpdate(t){this.updateThreadRootEvents(t,!1,!1)}onThreadReply(t){this.updateThreadRootEvents(t,!1,!0)}onThreadDelete(t){var e;this.threads.delete(t.id);var n=this.getTimelineForEvent(t.id),r=n==null||(e=n.getEvents())===null||e===void 0?void 0:e.find(i=>i.getId()===t.id);r?t.clearEventMetadata(r):Y.debug("onThreadDelete: Could not find root event in room timeline");for(var o of this.threadsTimelineSets)o.removeEvent(t.id)}removeFilteredTimelineSet(t){var e=this.filteredTimelineSets[t.filterId];delete this.filteredTimelineSets[t.filterId];var n=this.timelineSets.indexOf(e);n>-1&&this.timelineSets.splice(n,1)}eventShouldLiveIn(t,e,n){var r;if(!((r=this.client)!==null&&r!==void 0&&r.supportsThreads()))return{shouldLiveInRoom:!0,shouldLiveInThread:!1};if(t.isThreadRoot||n!=null&&n.has(t.getId()))return{shouldLiveInRoom:!0,shouldLiveInThread:!0,threadId:t.getId()};var o=t.isRelation(hr.name),i=t.getAssociatedId(),s=t.threadRootId;if(i&&!o&&(s===i||n!=null&&n.has(i)))return{shouldLiveInRoom:!0,shouldLiveInThread:!1};var u;if(i){var l;u=(l=this.findEventById(i))!==null&&l!==void 0?l:e==null?void 0:e.find(c=>c.getId()===i)}return u&&!o?this.eventShouldLiveIn(u,e,n):s!=null?{shouldLiveInRoom:!1,shouldLiveInThread:!0,threadId:s}:!i||t.replyEventId?{shouldLiveInRoom:!0,shouldLiveInThread:!1}:{shouldLiveInRoom:!1,shouldLiveInThread:!1}}findThreadForEvent(t){if(!t)return null;var{threadId:e}=this.eventShouldLiveIn(t);return e?this.getThread(e):null}addThreadedEvents(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=this.getThread(t);if(r)r.addEvents(e,n);else{var o,i=(o=this.findEventById(t))!==null&&o!==void 0?o:e.find(s=>s.getId()===t);this.createThread(t,i,e,n)}}processThreadedEvents(t,e){t.forEach(this.applyRedaction);var n={};for(var r of t){var o,{threadId:i,shouldLiveInThread:s}=this.eventShouldLiveIn(r);s&&!n[i]&&(n[i]=[]),(o=n[i])===null||o===void 0||o.push(r)}Object.entries(n).map(u=>{var[l,c]=u;return this.addThreadedEvents(l,c,e)})}createThread(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0;if(this.threads.has(t))return this.threads.get(t);if(e){var i=this.relations.getAllChildEventsForEvent(e.getId());i!=null&&i.length&&(r=r.concat(i.filter(u=>!u.isRelation(Pn.Replace))))}var s=new xr(t,e,{room:this,client:this.client,pendingEventOrdering:this.opts.pendingEventOrdering,receipts:(n=this.cachedThreadReadReceipts.get(t))!==null&&n!==void 0?n:[]});return this.reEmitter.reEmit(s,[ji.Delete,ji.Update,ji.NewReply,Ke.Timeline,Ke.TimelineReset]),this.cachedThreadReadReceipts.delete(t),this.threads.set(s.id,s),s.addEvents(r,!1),this.threadsReady&&s.initialEventsFetched&&this.updateThreadRootEvents(s,o,!1),this.emit(ji.New,s,o),s}processLiveEvent(t){this.applyRedaction(t),t.isVisibilityEvent()&&this.applyNewVisibilityEvent(t),this.applyPendingVisibilityEvents(t);var e=t.getUnsigned().transaction_id;if(!e&&t.getSender()===this.myUserId){for(var[n,r]of this.txnToEvent)if(r.getId()===t.getId()){Y.debug("processLiveEvent: found sent event without txn ID: ",n,t.getId());var o=t.getUnsigned();o.transaction_id=n,t.setUnsigned(o);break}}}addLiveEvent(t,e){var{duplicateStrategy:n,timelineWasEmpty:r,fromCache:o,addToState:i}=e;for(var s of this.timelineSets)s.addLiveEvent(t,{duplicateStrategy:n,fromCache:o,timelineWasEmpty:r,addToState:i});t.sender&&t.getType()!==Ce.RoomRedaction&&this.addReceipt(EU(t.sender.userId,t,ti.Read),!0)}addPendingEvent(t,e){if(t.status!==Pt.SENDING&&t.status!==Pt.NOT_SENT)throw new Error("addPendingEvent called on an event with status "+t.status);if(this.txnToEvent.get(e))throw new Error("addPendingEvent called on an event with known txnId "+e);if(it.setEventMetadata(t,this.getLiveTimeline().getState(it.FORWARDS),!1),this.txnToEvent.set(e,t),this.pendingEventList){if(this.pendingEventList.some(i=>i.status===Pt.NOT_SENT)&&(Y.warn("Setting event as NOT_SENT due to messages in the same state"),t.setStatus(Pt.NOT_SENT)),this.pendingEventList.push(t),this.savePendingEvents(),t.isRelation()&&this.aggregateNonLiveRelation(t),t.isRedaction()){var n=t.event.redacts,r=this.pendingEventList.find(i=>i.getId()===n);!r&&n&&(r=this.findEventById(n)),r&&(r.markLocallyRedacted(t),this.emit(Ke.Redaction,t,this,r.threadRootId))}}else for(var o of this.timelineSets)o.getFilter()?o.getFilter().filterRoomTimeline([t]).length&&o.addEventToTimeline(t,o.getLiveTimeline(),{toStartOfTimeline:!1,addToState:!1}):o.addEventToTimeline(t,o.getLiveTimeline(),{toStartOfTimeline:!1,addToState:!1});this.emit(Ke.LocalEchoUpdated,t,this)}savePendingEvents(){if(this.pendingEventList){var t=this.pendingEventList.map(e=>Gp(Gp({},e.event),{},{txn_id:e.getTxnId()})).filter(e=>{var n=e.type===Ce.RoomMessageEncrypted,r=this.hasEncryptionStateEvent();return n||!r});this.client.store.setPendingEvents(this.roomId,t)}}aggregateNonLiveRelation(t){this.relations.aggregateChildEvent(t)}getEventForTxnId(t){return this.txnToEvent.get(t)}handleRemoteEcho(t,e){var n=e.getId(),r=t.getId(),o=e.status;Y.debug("Got remote echo for event ".concat(n," -> ").concat(r," old status ").concat(o)),this.txnToEvent.delete(t.getUnsigned().transaction_id),this.pendingEventList&&this.removePendingEvent(n),e.handleRemoteEcho(t.event);var{shouldLiveInRoom:i,threadId:s}=this.eventShouldLiveIn(t),u=s?this.getThread(s):null;if(u==null||u.setEventMetadata(e),u==null||u.timelineSet.handleRemoteEcho(e,n,r),i)for(var l of this.timelineSets)l.handleRemoteEcho(e,n,r);this.emit(Ke.LocalEchoUpdated,e,this,n,o)}updatePendingEvent(t,e,n){if(Y.log("setting pendingEvent status to ".concat(e," in ").concat(t.getRoomId()," ")+"event ID ".concat(t.getId()," -> ").concat(n)),e==Pt.SENT&&!n)throw new Error("updatePendingEvent called with status=SENT, but no new event id");if(e==Pt.SENT){var r=this.getTimelineForEvent(n);if(r){var o=this.findEventById(n),i=o==null?void 0:o.getUnsigned().transaction_id;if(!i&&o){var s=o.getUnsigned();s.transaction_id=t.getTxnId(),o.setUnsigned(s),this.removeEvent(o.getId()),this.handleRemoteEcho(o,t)}return}}var u=t.status,l=t.getId();if(!u)throw new Error("updatePendingEventStatus called on an event which is not a local echo.");var c=mme[u];if(!(c!=null&&c.includes(e)))throw new Error("Invalid EventStatus transition ".concat(u,"->").concat(e));if(t.setStatus(e),e==Pt.SENT){t.replaceLocalEventId(n);var{shouldLiveInRoom:d,threadId:F}=this.eventShouldLiveIn(t),h=F?this.getThread(F):void 0;if(h==null||h.setEventMetadata(t),h==null||h.timelineSet.replaceEventId(l,n),d)for(var m of this.timelineSets)m.replaceEventId(l,n)}else if(e==Pt.CANCELLED){if(this.pendingEventList){var D=this.getPendingEvent(l);this.removePendingEvent(l),D!=null&&D.isRedaction()&&this.revertRedactionLocalEcho(D)}this.removeEvent(l)}this.savePendingEvents(),this.emit(Ke.LocalEchoUpdated,t,this,l,u)}revertRedactionLocalEcho(t){var e=t.event.redacts;if(e){var n=this.getUnfilteredTimelineSet().findEventById(e);n&&(n.unmarkLocallyRedacted(),this.emit(Ke.RedactionCancelled,t,this),n.isRelation()&&this.aggregateNonLiveRelation(n))}}assertTimelineSetsAreLive(){for(var t=0;t<this.timelineSets.length;t++){var e=this.timelineSets[t].getLiveTimeline();if(e.getPaginationToken(it.FORWARDS))throw new Error("live timeline "+t+" is no longer live - it has a pagination token ("+e.getPaginationToken(it.FORWARDS)+")");if(e.getNeighbouringTimeline(it.FORWARDS))throw new Error("live timeline ".concat(t," is no longer live - it has a neighbouring timeline"))}}addLiveEvents(t,e){var n=this;return Z(function*(){var{duplicateStrategy:r,fromCache:o,timelineWasEmpty:i=!1,addToState:s}=e;if(r&&["replace","ignore"].indexOf(r)===-1)throw new Error("duplicateStrategy MUST be either 'replace' or 'ignore'");n.assertTimelineSetsAreLive();var u=n.findThreadRoots(t),l={},c={duplicateStrategy:r,fromCache:o,timelineWasEmpty:i,addToState:s},d=[...t];for(var F of t){var h;if(n.processLiveEvent(F),F.getUnsigned().transaction_id){var m=n.txnToEvent.get(F.getUnsigned().transaction_id);if(m){n.handleRemoteEcho(F,m);continue}}var{shouldLiveInRoom:D,shouldLiveInThread:g,threadId:p=""}=n.eventShouldLiveIn(F,d,u);if(!g&&!D&&F.isRelation())try{var _=new ii(yield n.client.fetchRoomEvent(n.roomId,F.relationEventId));if(d.push(_),_.threadRootId){u.add(_.threadRootId);var v=F.getUnsigned();v[Sp.name]=_.threadRootId,F.setUnsigned(v)}({shouldLiveInRoom:D,shouldLiveInThread:g,threadId:p=""}=n.eventShouldLiveIn(F,d,u))}catch(E){Y.error("Failed to load parent event of unhandled relation",E)}g&&!l[p]&&(l[p]=[]),(h=l[p])===null||h===void 0||h.push(F),D?n.addLiveEvent(F,c):!g&&F.isRelation()&&n.relations.aggregateChildEvent(F)}Object.entries(l).forEach(E=>{var[b,k]=E;n.addThreadedEvents(b,k,!1)})})()}partitionThreadedEvents(t){var e=0,n=1,r=2;if(this.client.supportsThreads()){var o=this.findThreadRoots(t);return t.reduce((i,s)=>{var{shouldLiveInRoom:u,shouldLiveInThread:l,threadId:c}=this.eventShouldLiveIn(s,t,o);return u&&i[e].push(s),l&&(s.setThreadId(c??""),i[n].push(s)),!l&&!u&&i[r].push(s),i},[[],[],[]])}else return[t,[],[]]}findThreadRoots(t){var e=new Set;for(var n of t){var r=n.threadRootId;r!=null&&e.add(r)}return e}addReceipt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=t.getContent();this.roomReceipts.add(n,e),Object.keys(n).forEach(r=>{Object.keys(n[r]).forEach(o=>{Object.keys(n[r][o]).forEach(i=>{var s,u,l,c=n[r][o][i],d=!c.thread_id||c.thread_id===bp,F=d?this:this.threads.get((s=c.thread_id)!==null&&s!==void 0?s:"");if(F){if(F.addReceiptToStructure(r,o,i,c,e),!e&&this.client.isInitialSyncComplete()&&i===this.client.getUserId()){var h=F.timeline[F.timeline.length-1];h&&r===h.getId()&&i===h.getSender()&&(F.setUnread(Ln.Total,0),F.setUnread(Ln.Highlight,0))}}else{var m;this.cachedThreadReadReceipts.set(c.thread_id,[...(m=this.cachedThreadReadReceipts.get(c.thread_id))!==null&&m!==void 0?m:[],{eventId:r,receiptType:o,userId:i,receipt:c,synthetic:e}])}var D=this.client.getUserId();i===D&&!d&&c.ts<this.oldestThreadedReceiptTs&&(this.oldestThreadedReceiptTs=c.ts),!c.thread_id&&c.ts>((u=(l=this.unthreadedReceipts.get(i))===null||l===void 0?void 0:l.ts)!==null&&u!==void 0?u:0)&&this.unthreadedReceipts.set(i,c)})})}),this.emit(Ke.Receipt,t,this)}addEphemeralEvents(t){for(var e of t)e.getType()===Ce.Typing?this.currentState.setTypingEvent(e):e.getType()===Ce.Receipt&&this.addReceipt(e)}removeEvents(t){for(var e of t)this.removeEvent(e)}removeEvent(t){var e=!1;for(var n of this.timelineSets){var r=n.removeEvent(t);r&&(r.isRedaction()&&this.revertRedactionLocalEcho(r),e=!0)}return e}recalculate(){var t=this.currentState.getStateEvents(Ce.RoomMember,this.myUserId);if(t){var e=t.getContent().membership;if(this.updateMyMembership(e),e===an.Invite){var n=t.getUnsigned().invite_room_state||[];n.forEach(o=>{var i=this.currentState.getStateEvents(o.type,o.state_key);i||this.currentState.setStateEvents([new ii({type:o.type,state_key:o.state_key,content:o.content,event_id:"$fake"+Date.now(),room_id:this.roomId,sender:this.myUserId})])})}}var r=this.name;this.name=this.calculateRoomName(this.myUserId),this.normalizedName=M1e(this.name),this.summary=new iU(this.roomId,{title:this.name}),r!==this.name&&this.emit(Ke.Name,this)}addTags(t){this.tags=t.getContent().tags||{},this.emit(Ke.Tags,t,this)}addAccountData(t){for(var e of t){e.getType()==="m.tag"&&this.addTags(e);var n=e.getType(),r=this.accountData.get(n);this.accountData.set(n,e),this.emit(Ke.AccountData,e,this,r)}}getAccountData(t){return this.accountData.get(t)}maySendMessage(){return this.getMyMembership()===an.Join&&(this.hasEncryptionStateEvent()?this.currentState.maySendEvent(Ce.RoomMessageEncrypted,this.myUserId):this.currentState.maySendEvent(Ce.RoomMessage,this.myUserId))}canInvite(t){var e=this.getMyMembership()===an.Join,n=this.currentState.getStateEvents(Ce.RoomPowerLevels,""),r=n&&n.getContent(),o=this.getMember(t);return r&&o&&r.invite>o.powerLevel&&(e=!1),e}getJoinRule(){return this.currentState.getJoinRule()}getHistoryVisibility(){return this.currentState.getHistoryVisibility()}getGuestAccess(){return this.currentState.getGuestAccess()}getType(){var t=this.currentState.getStateEvents(Ce.RoomCreate,"");if(!t){this.getTypeWarning||(Y.warn("[getType] Room "+this.roomId+" does not have an m.room.create event"),this.getTypeWarning=!0);return}return t.getContent()[kp]}isSpaceRoom(){return this.getType()===Tl.Space}isCallRoom(){return this.getType()===Tl.UnstableCall}isElementVideoRoom(){return this.getType()===Tl.ElementVideo}findPredecessor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=this.getLiveTimeline().getState(it.FORWARDS);return e?e.findPredecessor(t):null}roomNameGenerator(t){if(this.client.roomNameGenerator){var e=this.client.roomNameGenerator(this.roomId,t);if(e!==null)return e}switch(t.type){case Du.Actual:return t.name;case Du.Generated:switch(t.subtype){case"Inviting":return"Inviting ".concat($U(t.names,t.count));default:return $U(t.names,t.count)}case Du.EmptyRoom:return t.oldName?"Empty room (was ".concat(t.oldName,")"):"Empty room"}}calculateRoomName(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!e){var n=this.currentState.getStateEvents(Ce.RoomName,"");if(n!=null&&n.getContent().name)return this.roomNameGenerator({type:Du.Actual,name:n.getContent().name})}var r=this.getCanonicalAlias();if(r)return this.roomNameGenerator({type:Du.Actual,name:r});var o=this.currentState.getJoinedMemberCount(),i=this.currentState.getInvitedMemberCount(),s=o+i-1,u=this.getFunctionalMembers(),l=[];if(this.heroes)this.heroes.forEach(p=>{if(u.includes(p.userId)){s--;return}if(p.displayName)l.push(p.displayName);else{var _=this.getMember(p.userId);l.push(_?_.name:p.userId)}});else{var c=this.currentState.getMembers().filter(p=>p.userId!==t&&(p.membership===an.Invite||p.membership===an.Join));c=c.filter(p=>{var{userId:_}=p;return u.includes(_)?(s--,!1):!0});var d=new Intl.Collator;c.sort((p,_)=>d.compare(p.userId,_.userId)),c=c.slice(0,5),l=c.map(p=>p.name)}if(s)return this.roomNameGenerator({type:Du.Generated,names:l,count:s});var F=this.getMyMembership();if(F==an.Join){var h=this.currentState.getStateEvents(Ce.RoomThirdPartyInvite);if(h!=null&&h.length){var m=h.map(p=>p.getContent().display_name);return this.roomNameGenerator({type:Du.Generated,subtype:"Inviting",names:m,count:m.length+1})}}var D=l;D.length||(D=this.currentState.getMembers().filter(p=>p.userId!==t&&p.membership!==an.Invite&&p.membership!==an.Join).map(p=>p.name));var g;return D.length&&(g=this.roomNameGenerator({type:Du.Generated,names:D,count:D.length+1})),this.roomNameGenerator({type:Du.EmptyRoom,oldName:g})}applyNewVisibilityEvent(t){var e=t.asVisibilityChange();if(e){var n=t.getSender();if(n){var r=Qc.name&&this.currentState.maySendStateEvent(Qc.name,n)||Qc.altName&&this.currentState.maySendStateEvent(Qc.altName,n);if(r){var o=this.visibilityEvents.get(e.eventId);if(o){for(var i=o.length-1,s=Math.max(0,o.length-Fme);i>=s;--i){var u=o[i];if(u.getTs()<t.getTs())break}i===-1?o.unshift(t):o.splice(i+1,0,t)}else this.visibilityEvents.set(e.eventId,[t]);var l=this.findEventById(e.eventId);l&&l.applyVisibilityEvent(e)}}}}redactVisibilityChangeEvent(t){if(!t.isVisibilityEvent)throw new Error("expected a visibility change event");var e=t.getRelation(),n=e==null?void 0:e.event_id,r=this.visibilityEvents.get(n);if(r){var o=r.findIndex(l=>l.getId()===t.getId());if(o!==-1&&(r.splice(o,1),o===r.length)){var i=this.findEventById(n);if(!i)return;if(o===0)this.visibilityEvents.delete(n),i.applyVisibilityEvent();else{var s=r[r.length-1],u=s.asVisibilityChange();if(!u)throw new Error("at this stage, visibility changes should be well-formed");i.applyVisibilityEvent(u)}}}}applyPendingVisibilityEvents(t){var e=this.visibilityEvents.get(t.getId());if(!(!e||e.length==0)){var n=e[e.length-1],r=n.asVisibilityChange();r&&(r.visible,!(n.getTs()<t.getTs())&&t.applyVisibilityEvent(r))}}getOldestThreadedReceiptTs(){return this.oldestThreadedReceiptTs}hasUserReadEvent(t,e){return this.roomReceipts.hasUserReadEvent(t,e)}getLastUnthreadedReceiptFor(t){return this.unthreadedReceipts.get(t)}fixupNotifications(t){super.fixupNotifications(t);var e=this.getThreads().filter(r=>this.getThreadUnreadNotificationCount(r.id,Ln.Total)>0);for(var n of e)n.fixupNotifications(t)}compareEventOrdering(t,e){return KFe(this,t,e)}hasEncryptionStateEvent(){var t;return!!(!((t=this.getLiveTimeline().getState(it.FORWARDS))===null||t===void 0)&&t.getStateEvents(Ce.RoomEncryption,""))}};var mme={[Pt.ENCRYPTING]:[Pt.SENDING,Pt.NOT_SENT,Pt.CANCELLED],[Pt.SENDING]:[Pt.ENCRYPTING,Pt.QUEUED,Pt.NOT_SENT,Pt.SENT],[Pt.QUEUED]:[Pt.SENDING,Pt.NOT_SENT,Pt.CANCELLED],[Pt.SENT]:[],[Pt.NOT_SENT]:[Pt.SENDING,Pt.QUEUED,Pt.CANCELLED],[Pt.CANCELLED]:[]},Du=function(t){return t[t.EmptyRoom=0]="EmptyRoom",t[t.Generated=1]="Generated",t[t.Actual=2]="Actual",t}({});function $U(t,e){var n=e-1;if(t.length){if(t.length===1&&n<=1)return t[0];if(t.length===2&&n<=2)return"".concat(t[0]," and ").concat(t[1]);var r=n>1;return r?"".concat(t[0]," and ").concat(n," others"):"".concat(t[0]," and 1 other")}else return"Empty room"}var To=function(t){return t[t.Stable=0]="Stable",t[t.Unstable=1]="Unstable",t[t.Unsupported=2]="Unsupported",t}({}),Io=function(t){return t.Thread="Thread",t.ThreadUnreadNotifications="ThreadUnreadNotifications",t.LoginTokenRequest="LoginTokenRequest",t.RelationBasedRedactions="RelationBasedRedactions",t.AccountDataDeletion="AccountDataDeletion",t.RelationsRecursion="RelationsRecursion",t.IntentionalMentions="IntentionalMentions",t}({}),Dme={[Io.Thread]:{unstablePrefixes:["org.matrix.msc3440"],matrixVersion:"v1.3"},[Io.ThreadUnreadNotifications]:{unstablePrefixes:["org.matrix.msc3771","org.matrix.msc3773"],matrixVersion:"v1.4"},[Io.LoginTokenRequest]:{unstablePrefixes:["org.matrix.msc3882"]},[Io.RelationBasedRedactions]:{unstablePrefixes:["org.matrix.msc3912"]},[Io.AccountDataDeletion]:{unstablePrefixes:["org.matrix.msc3391"]},[Io.RelationsRecursion]:{unstablePrefixes:["org.matrix.msc3981"],matrixVersion:"v1.10"},[Io.IntentionalMentions]:{unstablePrefixes:["org.matrix.msc3952_intentional_mentions"],matrixVersion:"v1.7"}};function gme(t){return M9.apply(this,arguments)}function M9(){return M9=Z(function*(t){var e=new Map;for(var[n,r]of Object.entries(Dme)){var o,i,s,u,l=(o=(i=t.versions)===null||i===void 0?void 0:i.includes(r.matrixVersion||""))!==null&&o!==void 0?o:!1,c=(s=(u=r.unstablePrefixes)===null||u===void 0?void 0:u.every(d=>{var F;return((F=t.unstable_features)===null||F===void 0?void 0:F[d])===!0}))!==null&&s!==void 0?s:!1;l?e.set(n,To.Stable):c?e.set(n,To.Unstable):e.set(n,To.Unsupported)}return e}),M9.apply(this,arguments)}function WU(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Sb(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?WU(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):WU(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var KU=80*1e3,pme=3,bn=function(t){return t.Error="ERROR",t.Prepared="PREPARED",t.Stopped="STOPPED",t.Syncing="SYNCING",t.Catchup="CATCHUP",t.Reconnecting="RECONNECTING",t}({}),fme=["org.matrix.msc2716v3"];function GU(t,e){return"FILTER_SYNC_".concat(t)+(e?"_"+e:"")}function Mr(){Y.log(...arguments)}var YU=function(t){return t.Offline="offline",t.Online="online",t.Unavailable="unavailable",t}({});function ZU(t){return Sb({initialSyncLimit:8,resolveInvitesToProfiles:!1,pollTimeout:3e4,pendingEventOrdering:nm.Chronological,threadSupport:!1},t)}function JU(t){return Sb({canResetEntireTimeline:e=>!1},t)}class sh{constructor(e,n,r){var o=this;this.client=e,I(this,"opts",void 0),I(this,"syncOpts",void 0),I(this,"_peekRoom",null),I(this,"currentSyncRequest",void 0),I(this,"abortController",void 0),I(this,"syncState",null),I(this,"syncStateData",void 0),I(this,"catchingUp",!1),I(this,"running",!1),I(this,"keepAliveTimer",void 0),I(this,"connectionReturnedDefer",void 0),I(this,"notifEvents",[]),I(this,"failedSyncCount",0),I(this,"storeIsInvalid",!1),I(this,"presence",void 0),I(this,"getPushRules",Z(function*(){try{Mr("Getting push rules...");var i=yield o.client.getPushRules();Mr("Got push rules"),o.client.pushRules=i}catch(s){return Y.error("Getting push rules failed",s),o.shouldAbortSync(s)?void 0:(Mr("Waiting for saved sync before retrying push rules..."),yield o.recoverFromSyncStartupError(o.savedSyncPromise,s),o.getPushRules())}})),I(this,"buildDefaultFilter",()=>{var i=new Ji(this.client.credentials.userId);return this.client.canSupport.get(Io.ThreadUnreadNotifications)!==To.Unsupported&&i.setUnreadThreadNotifications(!0),i}),I(this,"prepareLazyLoadingForSync",Z(function*(){Mr("Prepare lazy loading for sync..."),o.client.isGuest()&&(o.opts.lazyLoadMembers=!1),o.opts.lazyLoadMembers&&(Mr("Enabling lazy load on sync filter..."),o.opts.filter||(o.opts.filter=o.buildDefaultFilter()),o.opts.filter.setLazyLoadMembers(!0))})),I(this,"storeClientOptions",Z(function*(){try{Mr("Storing client options..."),yield o.client.storeClientOptions(),Mr("Stored client options")}catch(i){throw Y.error("Storing client options failed",i),i}})),I(this,"getFilter",Z(function*(){Mr("Getting filter...");var i;o.opts.filter?i=o.opts.filter:i=o.buildDefaultFilter();var s;try{s=yield o.client.getOrCreateFilter(GU(o.client.credentials.userId),i)}catch(u){return Y.error("Getting filter failed",u),o.shouldAbortSync(u)?{}:(Mr("Waiting for saved sync before retrying filter..."),yield o.recoverFromSyncStartupError(o.savedSyncPromise,u),o.getFilter())}return{filter:i,filterId:s}})),I(this,"savedSyncPromise",void 0),I(this,"onOnline",()=>{Mr("Browser thinks we are back online"),this.startKeepAlives(0)}),this.opts=ZU(n),this.syncOpts=JU(r),e.getNotifTimelineSet()&&e.reEmitter.reEmit(e.getNotifTimelineSet(),[Ke.Timeline,Ke.TimelineReset])}createRoom(e){var n=XU(this.client,e,this.opts);return n.on(Zt.Marker,(r,o)=>{this.onMarkerStateEvent(n,r,o)}),n}onMarkerStateEvent(e,n){var{timelineWasEmpty:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r){Y.debug("MarkerState: Ignoring markerEventId=".concat(n.getId()," in roomId=").concat(e.roomId," ")+"because the timeline was empty before the marker arrived which means there is nothing to refresh.");return}var o=fme.includes(e.getVersion())||n.getSender()===e.getCreator();o?(Y.debug("MarkerState: Timeline needs to be refreshed because "+"a new markerEventId=".concat(n.getId()," was sent in roomId=").concat(e.roomId)),e.setTimelineNeedsRefresh(!0),e.emit(Ke.HistoryImportedWithinTimeline,n,e)):Y.debug("MarkerState: Ignoring markerEventId=".concat(n.getId()," in roomId=").concat(e.roomId," because ")+"MSC2716 is not supported in the room version or for any room version, the marker wasn't sent by the room creator.")}syncLeftRooms(){var e=this;return Z(function*(){var n,r=e.client,o=new Ji(e.client.credentials.userId);o.setTimelineLimit(1),o.setIncludeLeaveRooms(!0);var i=e.opts.pollTimeout+KU,s=yield r.getOrCreateFilter(GU(r.credentials.userId,"LEFT_ROOMS"),o),u={timeout:0,filter:s,"org.matrix.msc4222.use_state_after":!0},l=yield r.http.authedRequest(Se.Get,"/sync",u,void 0,{localTimeoutMs:i}),c=[];(n=l.rooms)!==null&&n!==void 0&&n.leave&&(c=e.mapSyncResponseToRoomArray(l.rooms.leave));var d=yield Promise.all(c.map(function(){var F=Z(function*(h){var m=h.room;if(h.isBrandNewRoom){h.timeline=h.timeline||{prev_batch:null,events:[]},m.getLiveTimeline().setPaginationToken(h.timeline.prev_batch,it.BACKWARDS);var{timelineEvents:D}=yield e.mapAndInjectRoomEvents(h);return m.recalculate(),r.store.storeRoom(m),r.emit(st.Room,m),e.processEventsForNotifs(m,D),m}});return function(h){return F.apply(this,arguments)}}()));return d.filter(Boolean)})()}peek(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20;if(((n=this._peekRoom)===null||n===void 0?void 0:n.roomId)===e)return Promise.resolve(this._peekRoom);var o=this.client;return this._peekRoom=this.createRoom(e),this.client.roomInitialSync(e,r).then(i=>{var s;if(((s=this._peekRoom)===null||s===void 0?void 0:s.roomId)!==e)throw new Error("Peeking aborted");i.messages=i.messages||{chunk:[]},i.messages.chunk=i.messages.chunk||[],i.state=i.state||[];var u=Cp(i.state).map(o.getEventMapper()),l=i.state.map(o.getEventMapper()),c=i.messages.chunk.map(o.getEventMapper());return Array.isArray(i.presence)&&i.presence.map(o.getEventMapper()).forEach(function(d){var F=o.store.getUser(d.getContent().user_id);F?F.setPresenceEvent(d):(F=Ml.createUser(d.getContent().user_id,o),F.setPresenceEvent(d),o.store.storeUser(F)),o.emit(st.Event,d)}),i.messages.start&&(this._peekRoom.oldState.paginationToken=i.messages.start),this._peekRoom.oldState.setStateEvents(u),this._peekRoom.currentState.setStateEvents(l),this.resolveInvites(this._peekRoom),this._peekRoom.recalculate(),this._peekRoom.addEventsToTimeline(c.reverse(),!0,!0,this._peekRoom.getLiveTimeline(),i.messages.start),o.store.storeRoom(this._peekRoom),o.emit(st.Room,this._peekRoom),this.peekPoll(this._peekRoom),this._peekRoom})}stopPeeking(){this._peekRoom=null}peekPoll(e,n){var r,o=this;if(this._peekRoom!==e){Mr("Stopped peeking in room %s",e.roomId);return}this.client.http.authedRequest(Se.Get,"/events",{room_id:e.roomId,timeout:String(3e4),from:n},void 0,{localTimeoutMs:5e4,abortSignal:(r=this.abortController)===null||r===void 0?void 0:r.signal}).then(function(){var i=Z(function*(s){if(o._peekRoom!==e){Mr("Stopped peeking in room %s",e.roomId);return}s.chunk.filter(function(l){return l.type==="m.presence"}).map(o.client.getEventMapper()).forEach(l=>{var c=o.client.store.getUser(l.getContent().user_id);c?c.setPresenceEvent(l):(c=Ml.createUser(l.getContent().user_id,o.client),c.setPresenceEvent(l),o.client.store.storeUser(c)),o.client.emit(st.Event,l)});var u=s.chunk.filter(function(l){return l.room_id===e.roomId&&l.event_id}).map(o.client.getEventMapper());yield e.addLiveEvents(u,{addToState:!0}),o.peekPoll(e,s.end)});return function(s){return i.apply(this,arguments)}}(),i=>{Y.error("[%s] Peek poll failed: %s",e.roomId,i),setTimeout(()=>{this.peekPoll(e,n)},3e4)})}getSyncState(){return this.syncState}getSyncStateData(){var e;return(e=this.syncStateData)!==null&&e!==void 0?e:null}recoverFromSyncStartupError(e,n){var r=this;return Z(function*(){yield e;var o=r.startKeepAlives();r.updateSyncState(bn.Error,{error:n}),yield o})()}shouldAbortSync(e){return e.errcode==="M_UNKNOWN_TOKEN"?(Y.warn("Token no longer valid - assuming logout"),this.stop(),this.updateSyncState(bn.Error,{error:e}),!0):!1}sync(){var e=this;return Z(function*(){var n,r;if(e.running=!0,e.abortController=new AbortController,(n=globalThis.window)===null||n===void 0||(r=n.addEventListener)===null||r===void 0||r.call(n,"online",e.onOnline,!1),e.client.isGuest())return e.doSync({});Mr("Getting saved sync token...");var o=e.client.store.getSavedSyncToken().then(d=>(Mr("Got saved sync token"),d));e.savedSyncPromise=e.client.store.getSavedSync().then(d=>{if(Mr("Got reply from saved sync, exists? ".concat(!!d)),d)return e.syncFromCache(d)}).catch(d=>{Y.error("Getting saved sync failed",d)}),yield e.getPushRules(),yield e.prepareLazyLoadingForSync(),yield e.storeClientOptions();var{filterId:i,filter:s}=yield e.getFilter();if(s){if(e.client.resetNotifTimelineSet(),!e.currentSyncRequest){var u=i,l=yield o;if(l)Mr("Sending first sync request...");else{Mr("Sending initial sync request...");var c=e.buildDefaultFilter();c.setDefinition(s.getDefinition()),c.setTimelineLimit(e.opts.initialSyncLimit),u=JSON.stringify(c.getDefinition())}e.currentSyncRequest=e.doSyncRequest({filter:u},l)}return Mr("Waiting for saved sync before starting sync processing..."),yield e.savedSyncPromise,e.doSync({filter:i})}})()}stop(){var e,n,r;Mr("SyncApi.stop"),(e=globalThis.window)===null||e===void 0||(n=e.removeEventListener)===null||n===void 0||n.call(e,"online",this.onOnline,!1),this.running=!1,(r=this.abortController)===null||r===void 0||r.abort(),this.keepAliveTimer&&(clearTimeout(this.keepAliveTimer),this.keepAliveTimer=void 0)}retryImmediately(){return this.connectionReturnedDefer?(this.startKeepAlives(0),!0):!1}syncFromCache(e){var n=this;return Z(function*(){Mr("sync(): not doing HTTP hit, instead returning stored /sync data");var r=e.nextBatch;n.client.store.setSyncToken(r);var o={nextSyncToken:r,catchingUp:!1,fromCache:!0},i={next_batch:r,rooms:e.roomsData,account_data:{events:e.accountData}};try{yield n.processSyncResponse(o,i)}catch(s){Y.error("Error processing cached sync",s)}n.storeIsInvalid||n.updateSyncState(bn.Prepared,o)})()}doSync(e){var n=this;return Z(function*(){for(;n.running;){var r=n.client.store.getSyncToken(),o=void 0;try{n.currentSyncRequest||(n.currentSyncRequest=n.doSyncRequest(e,r)),o=yield n.currentSyncRequest}catch(u){var i=yield n.onSyncError(u);if(i)return;continue}finally{n.currentSyncRequest=void 0}n.client.store.setSyncToken(o.next_batch),n.failedSyncCount=0;var s={oldSyncToken:r??void 0,nextSyncToken:o.next_batch,catchingUp:n.catchingUp};try{yield n.processSyncResponse(s,o)}catch(u){Y.error("Caught /sync error",u),n.client.emit(st.SyncUnexpectedError,u)}yield n.client.store.setSyncData(o),s.catchingUp=n.catchingUp,e.hasSyncedBefore||(n.updateSyncState(bn.Prepared,s),e.hasSyncedBefore=!0),n.syncOpts.cryptoCallbacks&&(yield n.syncOpts.cryptoCallbacks.onSyncCompleted(s)),n.updateSyncState(bn.Syncing,s),n.client.store.wantsSave()&&(yield n.client.store.save())}n.running||(Mr("Sync no longer running: exiting."),n.connectionReturnedDefer&&(n.connectionReturnedDefer.reject(),n.connectionReturnedDefer=void 0),n.updateSyncState(bn.Stopped))})()}doSyncRequest(e,n){var r,o=this.getSyncParams(e,n);return this.client.http.authedRequest(Se.Get,"/sync",o,void 0,{localTimeoutMs:o.timeout+KU,abortSignal:(r=this.abortController)===null||r===void 0?void 0:r.signal})}getSyncParams(e,n){var r=this.opts.pollTimeout;(this.getSyncState()!==bn.Syncing||this.catchingUp)&&(this.catchingUp=!0,r=0);var o=e.filter;this.client.isGuest()&&!o&&(o=this.getGuestFilter());var i={filter:o,timeout:r,"org.matrix.msc4222.use_state_after":!0};return this.opts.disablePresence?i.set_presence=YU.Offline:this.presence!==void 0&&(i.set_presence=this.presence),n?i.since=n:i._cacheBuster=Date.now(),[bn.Reconnecting,bn.Error].includes(this.getSyncState())&&(i.timeout=0),i}setPresence(e){this.presence=e}onSyncError(e){var n=this;return Z(function*(){if(!n.running)return Mr("Sync no longer running: exiting"),n.connectionReturnedDefer&&(n.connectionReturnedDefer.reject(),n.connectionReturnedDefer=void 0),n.updateSyncState(bn.Stopped),!0;if(Y.error("/sync error %s",e),n.shouldAbortSync(e))return!0;n.failedSyncCount++,Y.log("Number of consecutive failed sync requests:",n.failedSyncCount),Mr("Starting keep-alive");var r=n.startKeepAlives();n.currentSyncRequest=void 0,n.updateSyncState(n.failedSyncCount>=pme?bn.Error:bn.Reconnecting,{error:e});var o=yield r;return o&&n.getSyncState()===bn.Error&&n.updateSyncState(bn.Catchup,{catchingUp:!0}),!1})()}processSyncResponse(e,n){var r=this;return Z(function*(){var o,i,s,u,l=r.client;if(Array.isArray((o=n.presence)===null||o===void 0?void 0:o.events)&&n.presence.events.filter(ks).map(l.getEventMapper()).forEach(function(_){var v=l.store.getUser(_.getSender());v?v.setPresenceEvent(_):(v=Ml.createUser(_.getSender(),l),v.setPresenceEvent(_),l.store.storeUser(v)),l.emit(st.Event,_)}),Array.isArray((i=n.account_data)===null||i===void 0?void 0:i.events)){var c=n.account_data.events.filter(ks).map(l.getEventMapper()),d=c.reduce((_,v)=>(_[v.getType()]=l.store.getAccountData(v.getType()),_),{});l.store.storeAccountDataEvents(c),c.forEach(function(_){if(_.getType()===Ce.PushRules){var v=_.getContent();l.setPushRules(v)}var E=d[_.getType()];return l.emit(st.AccountData,_,E),_})}if(n.to_device&&Array.isArray(n.to_device.events)&&n.to_device.events.length>0){var F=n.to_device.events.filter(ks);r.syncOpts.cryptoCallbacks&&(F=yield r.syncOpts.cryptoCallbacks.preprocessToDeviceMessages(F));var h=[];F.map(QU).map(_=>{if(_.getType()==="m.key.verification.cancel"){var v=_.getContent().transaction_id;v&&h.push(v)}return _}).forEach(function(_){var v=_.getContent();if(_.getType()=="m.room.message"&&v.msgtype=="m.bad.encrypted"){Y.log("Ignoring undecryptable to-device event from "+_.getSender());return}if(_.getType()==="m.key.verification.start"||_.getType()==="m.key.verification.request"){var E=v.transaction_id;h.includes(E)&&_.flagCancelled()}l.emit(st.ToDeviceEvent,_)})}else r.catchingUp=!1;var m=[],D=[],g=[],p=[];n.rooms&&(n.rooms.invite&&(m=r.mapSyncResponseToRoomArray(n.rooms.invite)),n.rooms.join&&(D=r.mapSyncResponseToRoomArray(n.rooms.join)),n.rooms.leave&&(g=r.mapSyncResponseToRoomArray(n.rooms.leave)),n.rooms.knock&&(p=r.mapSyncResponseToRoomArray(n.rooms.knock))),r.notifEvents=[],yield BF(m,function(){var _=Z(function*(v){var E=v.room,b=r.mapSyncEventsFormat(v.invite_state,E);yield r.injectRoomEvents(E,b,void 0),v.isBrandNewRoom?(E.recalculate(),l.store.storeRoom(E),l.emit(st.Room,E)):E.recalculate(),b.forEach(function(k){l.emit(st.Event,k)})});return function(v){return _.apply(this,arguments)}}()),yield BF(D,function(){var _=Z(function*(v){var E,b=v.room,k=r.mapSyncEventsFormat(v.state,b),C=r.mapSyncEventsFormat(v["org.matrix.msc4222.state_after"],b),S=r.mapSyncEventsFormat(v.timeline,b,!1),w=r.mapSyncEventsFormat(v.ephemeral),A=r.mapSyncEventsFormat(v.account_data),O=v["org.matrix.msc4222.state_after"]?C:k.concat(S),j=r.isRoomEncrypted(b,O);if(v.unread_notifications){if(!j||v.unread_notifications.notification_count===0){var R;b.setUnreadNotificationCount(Ln.Total,(R=v.unread_notifications.notification_count)!==null&&R!==void 0?R:0)}if(!j||b.getUnreadNotificationCount(Ln.Highlight)<=0){var M;b.setUnreadNotificationCount(Ln.Highlight,(M=v.unread_notifications.highlight_count)!==null&&M!==void 0?M:0)}}var z=(E=v[$p.name])!==null&&E!==void 0?E:v[$p.altName];if(z){b.resetThreadUnreadNotificationCountFromSync(Object.keys(z));for(var[T,P]of Object.entries(z)){if(!j||P.notification_count===0){var L;b.setThreadUnreadNotificationCount(T,Ln.Total,(L=P.notification_count)!==null&&L!==void 0?L:0)}var U=b.getThreadUnreadNotificationCount(T,Ln.Highlight)<=0;if(!j||j&&U){var te;b.setThreadUnreadNotificationCount(T,Ln.Highlight,(te=P.highlight_count)!==null&&te!==void 0?te:0)}}}else b.resetThreadUnreadNotificationCountFromSync();if(v.timeline=v.timeline||{},v.isBrandNewRoom)v.timeline.prev_batch!==null&&b.getLiveTimeline().setPaginationToken(v.timeline.prev_batch,it.BACKWARDS);else if(v.timeline.limited){for(var ae=!0,Fe=S.length-1;Fe>=0;Fe--){var re=S[Fe].getId();if(b.getTimelineForEvent(re)){Mr("Already have event ".concat(re," in limited sync - not resetting")),ae=!1,S.splice(0,Fe);break}}if(ae){var ce;b.resetLiveTimeline(v.timeline.prev_batch,r.syncOpts.canResetEntireTimeline(b.roomId)?null:(ce=e.oldSyncToken)!==null&&ce!==void 0?ce:null),l.resetNotifTimelineSet()}}if(r.syncOpts.cryptoCallbacks)for(var K of O)K.isState()&&K.getType()===Ce.RoomEncryption&&K.getStateKey()===""&&(yield r.syncOpts.cryptoCallbacks.onCryptoEvent(b,K));try{"org.matrix.msc4222.state_after"in v?yield r.injectRoomEvents(b,void 0,C,S,e.fromCache):yield r.injectRoomEvents(b,k,void 0,S,e.fromCache)}catch(q){Y.error("Failed to process events on room ".concat(b.roomId,":"),q)}v.summary&&b.setSummary(v.summary),b.addEphemeralEvents(w),b.addAccountData(A),b.recalculate(),v.isBrandNewRoom&&(l.store.storeRoom(b),l.emit(st.Room,b)),r.processEventsForNotifs(b,S);var H=q=>l.emit(st.Event,q);k.forEach(H),S.forEach(H),w.forEach(H),A.forEach(H),b.decryptCriticalEvents()});return function(v){return _.apply(this,arguments)}}()),yield BF(g,function(){var _=Z(function*(v){var E=v.room,{timelineEvents:b,stateEvents:k,stateAfterEvents:C}=yield r.mapAndInjectRoomEvents(v),S=r.mapSyncEventsFormat(v.account_data);E.addAccountData(S),E.recalculate(),v.isBrandNewRoom&&(l.store.storeRoom(E),l.emit(st.Room,E)),r.processEventsForNotifs(E,b),k==null||k.forEach(function(w){l.emit(st.Event,w)}),C==null||C.forEach(function(w){l.emit(st.Event,w)}),b.forEach(function(w){l.emit(st.Event,w)}),S.forEach(function(w){l.emit(st.Event,w)})});return function(v){return _.apply(this,arguments)}}()),yield BF(p,function(){var _=Z(function*(v){var E=v.room,b=r.mapSyncEventsFormat(v.knock_state,E);yield r.injectRoomEvents(E,b,void 0),v.isBrandNewRoom?(E.recalculate(),l.store.storeRoom(E),l.emit(st.Room,E)):E.recalculate(),b.forEach(function(k){l.emit(st.Event,k)})});return function(v){return _.apply(this,arguments)}}()),e.oldSyncToken&&r.notifEvents.length&&(r.notifEvents.sort(function(_,v){return _.getTs()-v.getTs()}),r.notifEvents.forEach(function(_){var v;(v=l.getNotifTimelineSet())===null||v===void 0||v.addLiveEvent(_,{addToState:!0})})),n.device_lists&&r.syncOpts.cryptoCallbacks&&(yield r.syncOpts.cryptoCallbacks.processDeviceLists(n.device_lists)),yield(s=r.syncOpts.cryptoCallbacks)===null||s===void 0?void 0:s.processKeyCounts(n.device_one_time_keys_count,(u=n.device_unused_fallback_key_types)!==null&&u!==void 0?u:n["org.matrix.msc2732.device_unused_fallback_key_types"])})()}startKeepAlives(e){return e===void 0&&(e=2e3+Math.floor(Math.random()*5e3)),this.keepAliveTimer!==null&&clearTimeout(this.keepAliveTimer),e>0?this.keepAliveTimer=setTimeout(this.pokeKeepAlive.bind(this),e):this.pokeKeepAlive(),this.connectionReturnedDefer||(this.connectionReturnedDefer=ll()),this.connectionReturnedDefer.promise}pokeKeepAlive(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.running){clearTimeout(this.keepAliveTimer),this.connectionReturnedDefer&&(this.connectionReturnedDefer.reject("SyncApi.stop() was called"),this.connectionReturnedDefer=void 0);return}var r=()=>{clearTimeout(this.keepAliveTimer),this.connectionReturnedDefer&&(this.connectionReturnedDefer.resolve(n),this.connectionReturnedDefer=void 0)};this.client.http.request(Se.Get,"/_matrix/client/versions",void 0,void 0,{prefix:"",localTimeoutMs:15e3,abortSignal:(e=this.abortController)===null||e===void 0?void 0:e.signal}).then(()=>{r()},o=>{o.httpStatus==400||o.httpStatus==404?this.keepAliveTimer=setTimeout(r,2e3):(n=!0,this.keepAliveTimer=setTimeout(this.pokeKeepAlive.bind(this,n),5e3+Math.floor(Math.random()*5e3)),this.updateSyncState(bn.Error,{error:o}))})}mapSyncResponseToRoomArray(e){var n=this.client;return Object.keys(e).filter(r=>!xp(r)).map(r=>{var o=n.store.getRoom(r),i=!1;return o||(o=this.createRoom(r),i=!0),Sb(Sb({},e[r]),{},{room:o,isBrandNewRoom:i})})}mapSyncEventsFormat(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!Array.isArray(e.events))return[];var o=this.client.getEventMapper({decrypt:r});return e.events.filter(ks).map(function(i){return n&&(i.room_id=n.roomId),o(i)})}resolveInvites(e){if(!(!e||!this.opts.resolveInvitesToProfiles)){var n=this.client;e.getMembersWithMembership(an.Invite).forEach(function(r){if(!r.requestedProfileInfo){r.requestedProfileInfo=!0;var o=n.getUser(r.userId),i;o?i=Promise.resolve({avatar_url:o.avatarUrl,displayname:o.displayName}):i=n.getProfileInfo(r.userId),i.then(function(s){var u=r.events.member;(u==null?void 0:u.getContent().membership)===an.Invite&&(u.getContent().avatar_url=s.avatar_url,u.getContent().displayname=s.displayname,r.setMembershipEvent(u,e.currentState))},function(s){})}})}}findEncryptionEvent(e){return e==null?void 0:e.find(n=>n.getType()===Ce.RoomEncryption&&n.getStateKey()==="")}isRoomEncrypted(e,n){return e.hasEncryptionStateEvent()||!!this.findEncryptionEvent(n)}mapAndInjectRoomEvents(e){var n=this;return Z(function*(){var r=n.mapSyncEventsFormat(e.state,e.room),o=n.mapSyncEventsFormat(e["org.matrix.msc4222.state_after"],e.room),i=n.mapSyncEventsFormat(e.timeline,e.room);return"org.matrix.msc4222.state_after"in e?yield n.injectRoomEvents(e.room,void 0,o,i):yield n.injectRoomEvents(e.room,r,void 0,i),{timelineEvents:i,stateEvents:r,stateAfterEvents:o}})()}injectRoomEvents(e,n,r,o){var i=arguments,s=this;return Z(function*(){var u=i.length>4&&i[4]!==void 0?i[4]:!1,l=r??n,c=e.getLiveTimeline(),d=c.getEvents().length==0;if(d){for(var F of l)s.client.getPushActionsForEvent(F);c.initialiseState(l,{timelineWasEmpty:d})}s.resolveInvites(e),e.recalculate(),d||(e.oldState.setStateEvents(l),e.currentState.setStateEvents(l)),yield e.addLiveEvents(o||[],{fromCache:u,timelineWasEmpty:d,addToState:r===void 0}),s.client.processBeaconEvents(e,o)})()}processEventsForNotifs(e,n){if(this.client.getNotifTimelineSet())for(var r of n){var o,i=this.client.getPushActionsForEvent(r);i!=null&&i.notify&&(o=i.tweaks)!==null&&o!==void 0&&o.highlight&&this.notifEvents.push(r)}}getGuestFilter(){return"{}"}updateSyncState(e,n){var r=this.syncState;this.syncState=e,this.syncStateData=n,this.client.emit(st.Sync,this.syncState,r,n)}}function XU(t,e,n){var{timelineSupport:r}=t,o=new kb(e,t,t.getUserId(),{lazyLoadMembers:n.lazyLoadMembers,pendingEventOrdering:n.pendingEventOrdering,timelineSupport:r});return t.reEmitter.reEmit(o,[Ke.Name,Ke.Redaction,Ke.RedactionCancelled,Ke.Receipt,Ke.Tags,Ke.LocalEchoUpdated,Ke.AccountData,Ke.MyMembership,Ke.Timeline,Ke.TimelineReset,Zt.Events,Zt.Members,Zt.NewMember,Zt.Update,Ar.New,Ar.Update,Ar.Destroy,Ar.LivenessChange]),o.on(Zt.NewMember,(i,s,u)=>{var l;u.user=(l=t.getUser(u.userId))!==null&&l!==void 0?l:void 0,t.reEmitter.reEmit(u,[oo.Name,oo.Typing,oo.PowerLevel,oo.Membership])}),o}function QU(t){return delete t.room_id,new ii(t)}class _me{constructor(){I(this,"accountData",new Map),I(this,"fromToken",null)}isNewlyCreated(){return Promise.resolve(!0)}getSyncToken(){return this.fromToken}setSyncToken(e){this.fromToken=e}storeRoom(e){}getRoom(e){return null}getRooms(){return[]}removeRoom(e){}getRoomSummaries(){return[]}storeUser(e){}getUser(e){return null}getUsers(){return[]}scrollback(e,n){return[]}setUserCreator(e){}storeEvents(e,n,r,o){}storeFilter(e){}getFilter(e,n){return null}getFilterIdByName(e){return null}setFilterIdByName(e,n){}storeAccountDataEvents(e){}getAccountData(e){}setSyncData(e){return Promise.resolve()}wantsSave(){return!1}save(){return Promise.resolve()}startup(){return Promise.resolve()}getSavedSync(){return Promise.resolve(null)}getSavedSyncToken(){return Promise.resolve(null)}deleteAllData(){return Promise.resolve()}getOutOfBandMembers(){return Promise.resolve(null)}setOutOfBandMembers(e,n){return Promise.resolve()}clearOutOfBandMembers(){return Promise.resolve()}getClientOptions(){return Promise.resolve(void 0)}storeClientOptions(e){return Promise.resolve()}getPendingEvents(e){return Z(function*(){return[]})()}setPendingEvents(e,n){return Promise.resolve()}saveToDeviceBatches(e){return Z(function*(){return Promise.resolve()})()}getOldestToDeviceBatch(){return Promise.resolve(null)}removeToDeviceBatch(e){return Z(function*(){return Promise.resolve()})()}destroy(){return Z(function*(){})()}}const oi=[];for(let t=0;t<256;++t)oi.push((t+256).toString(16).slice(1));function vme(t,e=0){return(oi[t[e+0]]+oi[t[e+1]]+oi[t[e+2]]+oi[t[e+3]]+"-"+oi[t[e+4]]+oi[t[e+5]]+"-"+oi[t[e+6]]+oi[t[e+7]]+"-"+oi[t[e+8]]+oi[t[e+9]]+"-"+oi[t[e+10]]+oi[t[e+11]]+oi[t[e+12]]+oi[t[e+13]]+oi[t[e+14]]+oi[t[e+15]]).toLowerCase()}let P9;const bme=new Uint8Array(16);function Cme(){if(!P9){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");P9=crypto.getRandomValues.bind(crypto)}return P9(bme)}const Eme=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),eV={randomUUID:Eme};function yme(t,e,n){var o;if(eV.randomUUID&&!t)return eV.randomUUID();t=t||{};const r=t.random??((o=t.rng)==null?void 0:o.call(t))??Cme();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,vme(r)}var tV={},nV={exports:{}},rV=nV.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(t){return t.encoding?"rtpmap:%d %s/%s/%s":t.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(t){return t.address!=null?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(t){return t.subtype!=null?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(t){return"extmap:%d"+(t.direction?"/%s":"%v")+(t["encrypt-uri"]?" %s":"%v")+" %s"+(t.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(t){return t.sessionConfig!=null?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(t){var e="candidate:%s %d %s %d %s %d typ %s";return e+=t.raddr!=null?" raddr %s rport %d":"%v%v",e+=t.tcptype!=null?" tcptype %s":"%v",t.generation!=null&&(e+=" generation %d"),e+=t["network-id"]!=null?" network-id %d":"%v",e+=t["network-cost"]!=null?" network-cost %d":"%v",e}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(t){var e="ssrc:%d";return t.attribute!=null&&(e+=" %s",t.value!=null&&(e+=":%s")),e}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(t){return t.maxMessageSize!=null?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(t){return t.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(t){return"imageattr:%s %s %s"+(t.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(t){return"simulcast:%s %s"+(t.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(t){return"ts-refclk:%s"+(t.clksrcExt!=null?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(t){var e="mediaclk:";return e+=t.id!=null?"id=%s %s":"%v%s",e+=t.mediaClockValue!=null?"=%s":"",e+=t.rateNumerator!=null?" rate=%s":"",e+=t.rateDenominator!=null?"/%s":"",e}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(rV).forEach(function(t){var e=rV[t];e.forEach(function(n){n.reg||(n.reg=/(.*)/),n.format||(n.format="%s")})});var oV=nV.exports;(function(t){var e=function(u){return String(Number(u))===u?Number(u):u},n=function(u,l,c,d){if(d&&!c)l[d]=e(u[1]);else for(var F=0;F<c.length;F+=1)u[F+1]!=null&&(l[c[F]]=e(u[F+1]))},r=function(u,l,c){var d=u.name&&u.names;u.push&&!l[u.push]?l[u.push]=[]:d&&!l[u.name]&&(l[u.name]={});var F=u.push?{}:d?l[u.name]:l;n(c.match(u.reg),F,u.names,u.name),u.push&&l[u.push].push(F)},o=oV,i=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(u){var l={},c=[],d=l;return u.split(/(\r\n|\r|\n)/).filter(i).forEach(function(F){var h=F[0],m=F.slice(2);h==="m"&&(c.push({rtp:[],fmtp:[]}),d=c[c.length-1]);for(var D=0;D<(o[h]||[]).length;D+=1){var g=o[h][D];if(g.reg.test(m))return r(g,d,m)}}),l.media=c,l};var s=function(u,l){var c=l.split(/=(.+)/,2);return c.length===2?u[c[0]]=e(c[1]):c.length===1&&l.length>1&&(u[c[0]]=void 0),u};t.parseParams=function(u){return u.split(/;\s?/).reduce(s,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(u){return u.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(u){for(var l=[],c=u.split(" ").map(e),d=0;d<c.length;d+=3)l.push({component:c[d],ip:c[d+1],port:c[d+2]});return l},t.parseImageAttributes=function(u){return u.split(" ").map(function(l){return l.substring(1,l.length-1).split(",").reduce(s,{})})},t.parseSimulcastStreamList=function(u){return u.split(";").map(function(l){return l.split(",").map(function(c){var d,F=!1;return c[0]!=="~"?d=e(c):(d=e(c.substring(1,c.length)),F=!0),{scid:d,paused:F}})})}})(tV);var L9=oV,xme=/%[sdv%]/g,wme=function(t){var e=1,n=arguments,r=n.length;return t.replace(xme,function(o){if(e>=r)return o;var i=n[e];switch(e+=1,o){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}})},Yp=function(t,e,n){var r=e.format instanceof Function?e.format(e.push?n:n[e.name]):e.format,o=[t+"="+r];if(e.names)for(var i=0;i<e.names.length;i+=1){var s=e.names[i];e.name?o.push(n[e.name][s]):o.push(n[e.names[i]])}else o.push(n[e.name]);return wme.apply(null,o)},kme=["v","o","s","i","u","e","p","c","b","t","r","z","a"],Sme=["i","c","b","a"],jme=function(t,e){e=e||{},t.version==null&&(t.version=0),t.name==null&&(t.name=" "),t.media.forEach(function(i){i.payloads==null&&(i.payloads="")});var n=e.outerOrder||kme,r=e.innerOrder||Sme,o=[];return n.forEach(function(i){L9[i].forEach(function(s){s.name in t&&t[s.name]!=null?o.push(Yp(i,s,t)):s.push in t&&t[s.push]!=null&&t[s.push].forEach(function(u){o.push(Yp(i,s,u))})})}),t.media.forEach(function(i){o.push(Yp("m",L9.m[0],i)),r.forEach(function(s){L9[s].forEach(function(u){u.name in i&&i[u.name]!=null?o.push(Yp(s,u,i)):u.push in i&&i[u.push]!=null&&i[u.push].forEach(function(l){o.push(Yp(s,u,l))})})})}),o.join(`\r
`)+`\r
`},uh=tV,Bme=jme,Ame=Bme,iV=uh.parse;uh.parseParams,uh.parseFmtpConfig,uh.parsePayloads,uh.parseRemoteCandidates,uh.parseImageAttributes,uh.parseSimulcastStreamList;function N9(t,e){if(typeof t.toBase64=="function")return t.toBase64(e);var n=btoa(t.reduce((r,o)=>r+String.fromCharCode(o),""));return e.omitPadding&&(n=n.replace(/={1,2}$/,"")),e.alphabet==="base64url"&&(n=n.replace(/\+/g,"-").replace(/\//g,"_")),n}GD=function(t){return N9(t,{alphabet:"base64",omitPadding:!1})};function aV(t){return N9(t,{alphabet:"base64",omitPadding:!0})}function jb(t){return N9(t,{alphabet:"base64url",omitPadding:!0})}function Tme(t,e){return typeof Uint8Array.fromBase64=="function"?Uint8Array.fromBase64(t,e):Uint8Array.from(atob(t),n=>n.charCodeAt(0))}y1=function(t){return Tme(t.replace(/-/g,"+").replace(/_/g,"/"),{alphabet:"base64",lastChunkHandling:"loose"})};var Ime="abcdefghijklmnopqrstuvwxyz",Rme="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Ome="0123456789";function Mme(t){var e=new Uint8Array(t);return globalThis.crypto.getRandomValues(e),jb(e)}ul=function(t){return Pme(t,Rme+Ime+Ome)};function Pme(t,e){if(e.length<2||e.length>256)throw new Error("Character set must be between 2 and 256 characters long");if(t<1||t>32768)throw new Error("Requested random string length must be between 1 and 32768");for(var n=256-256%e.length,r=new Uint8Array(Math.floor(t*1.3)),o=r.length,i=[];i.length<t;){o===r.length&&(globalThis.crypto.getRandomValues(r),o=0);var s=r[o++];s<n&&i.push(e[s%e.length])}return i.join("")}var ad="org.matrix.msc3077.sdp_stream_metadata",_r=function(t){return t.Usermedia="m.usermedia",t.Screenshare="m.screenshare",t}({}),Zp=null,z9=0,Lme=()=>(Zp===null&&(Zp=new AudioContext),z9++,Zp),Nme=()=>{if(z9--,z9===0){var t;(t=Zp)===null||t===void 0||t.close(),Zp=null}},zme=200,U9=-60,Ume=8,gu=function(t){return t.NewStream="new_stream",t.MuteStateChanged="mute_state_changed",t.LocalVolumeChanged="local_volume_changed",t.VolumeChanged="volume_changed",t.ConnectedChanged="connected_changed",t.Speaking="speaking",t.Disposed="disposed",t}({});class Pl extends Cr{constructor(e){super(),I(this,"stream",void 0),I(this,"sdpMetadataStreamId",void 0),I(this,"userId",void 0),I(this,"deviceId",void 0),I(this,"purpose",void 0),I(this,"speakingVolumeSamples",void 0),I(this,"client",void 0),I(this,"call",void 0),I(this,"roomId",void 0),I(this,"audioMuted",void 0),I(this,"videoMuted",void 0),I(this,"localVolume",1),I(this,"measuringVolumeActivity",!1),I(this,"audioContext",void 0),I(this,"analyser",void 0),I(this,"frequencyBinCount",void 0),I(this,"speakingThreshold",U9),I(this,"speaking",!1),I(this,"volumeLooperTimeout",void 0),I(this,"_disposed",!1),I(this,"_connected",!1),I(this,"onAddTrack",()=>{this.emit(gu.NewStream,this.stream)}),I(this,"onCallState",n=>{n===Vt.Connected?this.connected=!0:n===Vt.Connecting&&(this.connected=!1)}),I(this,"volumeLooper",()=>{if(this.analyser&&this.measuringVolumeActivity){this.analyser.getFloatFrequencyData(this.frequencyBinCount);var n=-1/0;for(var r of this.frequencyBinCount)r>n&&(n=r);this.speakingVolumeSamples.shift(),this.speakingVolumeSamples.push(n),this.emit(gu.VolumeChanged,n);var o=!1;for(var i of this.speakingVolumeSamples)if(i>this.speakingThreshold){o=!0;break}this.speaking!==o&&(this.speaking=o,this.emit(gu.Speaking,this.speaking)),this.volumeLooperTimeout=setTimeout(this.volumeLooper,zme)}}),this.client=e.client,this.call=e.call,this.roomId=e.roomId,this.userId=e.userId,this.deviceId=e.deviceId,this.purpose=e.purpose,this.audioMuted=e.audioMuted,this.videoMuted=e.videoMuted,this.speakingVolumeSamples=new Array(Ume).fill(-1/0),this.sdpMetadataStreamId=e.stream.id,this.updateStream(null,e.stream),this.stream=e.stream,this.hasAudioTrack&&this.initVolumeMeasuring(),e.call&&(e.call.addListener(Dn.State,this.onCallState),this.onCallState(e.call.state))}get connected(){return this.isLocal()||this._connected}set connected(e){this._connected=e,this.emit(gu.ConnectedChanged,this.connected)}get hasAudioTrack(){return this.stream.getAudioTracks().length>0}updateStream(e,n){if(n!==e){var r=this.measuringVolumeActivity;e&&(e.removeEventListener("addtrack",this.onAddTrack),this.measureVolumeActivity(!1)),this.stream=n,n.addEventListener("addtrack",this.onAddTrack),this.hasAudioTrack?(this.initVolumeMeasuring(),r&&this.measureVolumeActivity(!0)):this.measureVolumeActivity(!1),this.emit(gu.NewStream,this.stream)}}initVolumeMeasuring(){if(this.hasAudioTrack){this.audioContext||(this.audioContext=Lme()),this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=512,this.analyser.smoothingTimeConstant=.1;var e=this.audioContext.createMediaStreamSource(this.stream);e.connect(this.analyser),this.frequencyBinCount=new Float32Array(this.analyser.frequencyBinCount)}}getMember(){var e,n=this.client.getRoom(this.roomId);return(e=n==null?void 0:n.getMember(this.userId))!==null&&e!==void 0?e:null}isLocal(){return this.userId===this.client.getUserId()&&(this.deviceId===void 0||this.deviceId===this.client.getDeviceId())}isAudioMuted(){return this.stream.getAudioTracks().length===0||this.audioMuted}isVideoMuted(){return this.stream.getVideoTracks().length===0||this.videoMuted}isSpeaking(){return this.speaking}setNewStream(e){this.updateStream(this.stream,e)}setAudioVideoMuted(e,n){e!==null&&(this.audioMuted!==e&&this.speakingVolumeSamples.fill(-1/0),this.audioMuted=e),n!==null&&(this.videoMuted=n),this.emit(gu.MuteStateChanged,this.audioMuted,this.videoMuted)}measureVolumeActivity(e){if(e){if(!this.analyser||!this.frequencyBinCount||!this.hasAudioTrack)return;this.measuringVolumeActivity=!0,this.volumeLooper()}else this.measuringVolumeActivity=!1,this.speakingVolumeSamples.fill(-1/0),this.emit(gu.VolumeChanged,-1/0)}setSpeakingThreshold(e){this.speakingThreshold=e}clone(){var e=this.client.getMediaHandler(),n=this.stream.clone();return Y.log("CallFeed clone() cloning stream (originalStreamId=".concat(this.stream.id,", newStreamId").concat(n.id,")")),this.purpose===_r.Usermedia?e.userMediaStreams.push(n):e.screensharingStreams.push(n),new Pl({client:this.client,roomId:this.roomId,userId:this.userId,deviceId:this.deviceId,stream:n,purpose:this.purpose,audioMuted:this.audioMuted,videoMuted:this.videoMuted})}dispose(){var e,n;clearTimeout(this.volumeLooperTimeout),(e=this.stream)===null||e===void 0||e.removeEventListener("addtrack",this.onAddTrack),(n=this.call)===null||n===void 0||n.removeListener(Dn.State,this.onCallState),this.audioContext&&(this.audioContext=void 0,this.analyser=void 0,Nme()),this._disposed=!0,this.emit(gu.Disposed)}get disposed(){return this._disposed}set disposed(e){this._disposed=e}getLocalVolume(){return this.localVolume}setLocalVolume(e){this.localVolume=e,this.emit(gu.LocalVolumeChanged,e)}}var Vme=3e3,V9=function(t){return t.Incoming="Call.incoming",t}({});class qme{constructor(e){I(this,"calls",void 0),I(this,"callEventBuffer",void 0),I(this,"nextSeqByCall",new Map),I(this,"toDeviceEventBuffers",new Map),I(this,"client",void 0),I(this,"candidateEventsByCall",void 0),I(this,"eventBufferPromiseChain",void 0),I(this,"onSync",()=>{var n=this.callEventBuffer;this.callEventBuffer=[],this.eventBufferPromiseChain?this.eventBufferPromiseChain=this.eventBufferPromiseChain.then(()=>this.evaluateEventBuffer(n)):this.eventBufferPromiseChain=this.evaluateEventBuffer(n)}),I(this,"onRoomTimeline",n=>{this.callEventBuffer.push(n)}),I(this,"onToDeviceEvent",n=>{var r=n.getContent();if(!r.call_id){this.callEventBuffer.push(n);return}if(this.nextSeqByCall.has(r.call_id)||this.nextSeqByCall.set(r.call_id,0),r.seq===void 0){this.callEventBuffer.push(n);return}var o=this.nextSeqByCall.get(r.call_id)||0;if(r.seq!==o){this.toDeviceEventBuffers.has(r.call_id)||this.toDeviceEventBuffers.set(r.call_id,[]);var i=this.toDeviceEventBuffers.get(r.call_id),s=i.findIndex(d=>d.getContent().seq>r.seq);s===-1?i.push(n):i.splice(s,0,n)}else{var u=r.call_id;this.callEventBuffer.push(n),this.nextSeqByCall.set(u,r.seq+1);for(var l=this.toDeviceEventBuffers.get(u),c=l&&l.shift();c&&c.getContent().seq===this.nextSeqByCall.get(u);)this.callEventBuffer.push(c),this.nextSeqByCall.set(u,c.getContent().seq+1),c=l.shift()}}),this.client=e,this.calls=new Map,this.callEventBuffer=[],this.candidateEventsByCall=new Map}start(){this.client.on(st.Sync,this.onSync),this.client.on(Ke.Timeline,this.onRoomTimeline),this.client.on(st.ToDeviceEvent,this.onToDeviceEvent)}stop(){this.client.removeListener(st.Sync,this.onSync),this.client.removeListener(Ke.Timeline,this.onRoomTimeline),this.client.removeListener(st.ToDeviceEvent,this.onToDeviceEvent)}evaluateEventBuffer(e){var n=this;return Z(function*(){yield Promise.all(e.map(d=>n.client.decryptEventIfNeeded(d)));var r=e.filter(d=>{var F=d.getType();return F.startsWith("m.call.")||F.startsWith("org.matrix.call.")}),o=new Set;for(var i of r){var s=i.getType();(s===Ce.CallAnswer||s===Ce.CallHangup)&&o.add(i.getContent().call_id)}for(var u of r){var l=u.getType(),c=u.getContent().call_id;if(!(l===Ce.CallInvite&&o.has(c)))try{yield n.handleCallEvent(u)}catch(d){Y.error("CallEventHandler evaluateEventBuffer() caught exception handling call event",d)}}})()}handleCallEvent(e){var n=this;return Z(function*(){var r;n.client.emit(st.ReceivedVoipEvent,e);var o=e.getContent(),i=e.getRoomId()||((r=n.client.groupCallEventHandler.getGroupCallById(o.conf_id))===null||r===void 0||(r=r.room)===null||r===void 0?void 0:r.roomId),s=o.conf_id,u=e.getType(),l=e.getSender(),c=o.call_id?n.calls.get(o.call_id):void 0,d,F;if(s){if(F=n.client.groupCallEventHandler.getGroupCallById(s),!F){Y.warn("CallEventHandler handleCallEvent() could not find a group call - ignoring event (groupCallId=".concat(s,", type=").concat(u,")"));return}if(d=o.device_id,!d){Y.warn("CallEventHandler handleCallEvent() could not find a device id - ignoring event (senderId=".concat(l,")")),F.emit(vr.Error,new dV(l));return}if(o.dest_session_id!==n.client.getSessionId()){Y.warn("CallEventHandler handleCallEvent() call event does not match current session id - ignoring");return}}var h=l===n.client.credentials.userId&&(d===void 0||d===n.client.getDeviceId());if(i){if(u===Ce.CallInvite){var m,D,g;if(h||e.getLocalAge()>o.lifetime-Vme||c&&c.state===Vt.Ended||(c&&Y.warn("CallEventHandler handleCallEvent() already has a call but got an invite - clobbering (callId=".concat(o.call_id,")")),o.invitee&&o.invitee!==n.client.getUserId()))return;var p=((m=n.client.getTurnServersExpiry())!==null&&m!==void 0?m:0)-Date.now();if(Y.info("CallEventHandler handleCallEvent() current turn creds expire in "+p+" ms"),c=(D=ef(n.client,i,{forceTURN:n.client.forceTURN,opponentDeviceId:d,groupCallId:s,opponentSessionId:o.sender_session_id}))!==null&&D!==void 0?D:void 0,!c){Y.log("CallEventHandler handleCallEvent() this client does not support WebRTC (callId=".concat(o.call_id,")"));return}c.callId=o.call_id;var _=(g=F)===null||g===void 0?void 0:g.getGroupCallStats();_&&c.initStats(_);try{yield c.initWithInvite(e)}catch(A){if(A instanceof Nl)if(A.code===Qp.UnknownDevice){var v;(v=F)===null||v===void 0||v.emit(vr.Error,A)}else Y.error(A)}if(n.calls.set(c.callId,c),n.candidateEventsByCall.get(c.callId))for(var E of n.candidateEventsByCall.get(c.callId))c.onRemoteIceCandidatesReceived(E);var b;for(var k of n.calls.values()){var C,S=[Vt.WaitLocalMedia,Vt.CreateOffer,Vt.InviteSent].includes(k.state);if(c.roomId===k.roomId&&k.direction===ud.Outbound&&((C=c.getOpponentMember())===null||C===void 0?void 0:C.userId)===k.invitee&&S){b=k;break}}b?b.callId>c.callId?(Y.log("CallEventHandler handleCallEvent() detected glare - answering incoming call and canceling outgoing call (incomingId=".concat(c.callId,", outgoingId=").concat(b.callId,")")),b.replacedBy(c)):(Y.log("CallEventHandler handleCallEvent() detected glare - hanging up incoming call (incomingId=".concat(c.callId,", outgoingId=").concat(b.callId,")")),c.hangup(sn.Replaced,!0)):n.client.emit(V9.Incoming,c);return}else if(u===Ce.CallCandidates){if(h)return;c?c.onRemoteIceCandidatesReceived(e):(n.candidateEventsByCall.has(o.call_id)||n.candidateEventsByCall.set(o.call_id,[]),n.candidateEventsByCall.get(o.call_id).push(e));return}else if([Ce.CallHangup,Ce.CallReject].includes(u)){if(c)c.state!==Vt.Ended&&(u===Ce.CallHangup?c.onHangupReceived(o):c.onRejectReceived(o),c.state===Vt.Ended&&n.calls.delete(o.call_id));else{var w;c=(w=ef(n.client,i,{opponentDeviceId:d,opponentSessionId:o.sender_session_id}))!==null&&w!==void 0?w:void 0,c&&(c.callId=o.call_id,c.initWithHangup(e),n.calls.set(o.call_id,c))}return}if(!c||!c.hasPeerConnection){Y.info("CallEventHandler handleCallEvent() discarding possible call event as we don't have a call (type=".concat(u,")"));return}if(e.getContent().party_id!==c.ourPartyId)switch(u){case Ce.CallAnswer:h?c.state===Vt.Ringing&&c.onAnsweredElsewhere(o):c.onAnswerReceived(e);break;case Ce.CallSelectAnswer:c.onSelectAnswerReceived(e);break;case Ce.CallNegotiate:c.onNegotiateReceived(e);break;case Ce.CallAssertedIdentity:case Ce.CallAssertedIdentityPrefix:c.onAssertedIdentityReceived(e);break;case Ce.CallSDPStreamMetadataChanged:case Ce.CallSDPStreamMetadataChangedPrefix:c.onSDPStreamMetadataChangedReceived(e);break}}})()}}var q9=function(t){return t.Incoming="GroupCall.incoming",t.Outgoing="GroupCall.outgoing",t.Ended="GroupCall.ended",t.Participants="GroupCall.participants",t}({});class Hme{constructor(e){this.client=e,I(this,"groupCalls",new Map),I(this,"roomDeferreds",new Map),I(this,"onRoomsChanged",n=>{this.createGroupCallForRoom(n)}),I(this,"onRoomStateChanged",(n,r)=>{var o=n.getType();if(o===Ce.GroupCallPrefix){var i=n.getStateKey(),s=n.getContent(),u=this.groupCalls.get(r.roomId);!u&&!s["m.terminated"]&&!n.isRedacted()?this.createGroupCallFromRoomStateEvent(n):u&&u.groupCallId===i?s["m.terminated"]||n.isRedacted()?u.terminate(!1):s["m.type"]!==u.type&&Y.warn("GroupCallEventHandler onRoomStateChanged() currently does not support changing type (roomId=".concat(r.roomId,")")):u&&u.groupCallId!==i&&Y.warn("GroupCallEventHandler onRoomStateChanged() currently does not support multiple calls (roomId=".concat(r.roomId,")"))}})}start(){var e=this;return Z(function*(){e.client.getSyncState()!==bn.Syncing&&(Y.debug("GroupCallEventHandler start() waiting for client to start syncing"),yield new Promise(o=>{var i=()=>{if(e.client.getSyncState()===bn.Syncing)return e.client.off(st.Sync,i),o()};e.client.on(st.Sync,i)}));var n=e.client.getRooms();for(var r of n)e.createGroupCallForRoom(r);e.client.on(st.Room,e.onRoomsChanged),e.client.on(Zt.Events,e.onRoomStateChanged)})()}stop(){this.client.removeListener(st.Room,this.onRoomsChanged),this.client.removeListener(Zt.Events,this.onRoomStateChanged)}getRoomDeferred(e){var n=this.roomDeferreds.get(e);if(n===void 0){var r;n={prom:new Promise(o=>{r=o})},n.resolve=r,this.roomDeferreds.set(e,n)}return n}waitUntilRoomReadyForGroupCalls(e){return this.getRoomDeferred(e).prom}getGroupCallById(e){return[...this.groupCalls.values()].find(n=>n.groupCallId===e)}createGroupCallForRoom(e){var n=e.currentState.getStateEvents(Ce.GroupCallPrefix),r=n.sort((s,u)=>u.getTs()-s.getTs());for(var o of r){var i=o.getContent();if(!(i["m.terminated"]||o.isRedacted())){Y.debug("GroupCallEventHandler createGroupCallForRoom() choosing group call from possible calls (stateKey=".concat(o.getStateKey(),", ts=").concat(o.getTs(),", roomId=").concat(e.roomId,", numOfPossibleCalls=").concat(n.length,")")),this.createGroupCallFromRoomStateEvent(o);break}}this.getRoomDeferred(e.roomId).resolve()}createGroupCallFromRoomStateEvent(e){var n=e.getRoomId(),r=e.getContent(),o=this.client.getRoom(n);if(!o){Y.warn("GroupCallEventHandler createGroupCallFromRoomStateEvent() couldn't find room for call (roomId=".concat(n,")"));return}var i=e.getStateKey(),s=r["m.type"];if(!Object.values(Tb).includes(s)){Y.warn("GroupCallEventHandler createGroupCallFromRoomStateEvent() received invalid call type (type=".concat(s,", roomId=").concat(n,")"));return}var u=r["m.intent"];if(!Object.values(cV).includes(u)){Y.warn("Received invalid group call intent (type=".concat(s,", roomId=").concat(n,")"));return}var l=!!r["io.element.ptt"],c;if(r!=null&&r.dataChannelsEnabled&&r!==null&&r!==void 0&&r.dataChannelOptions){var{ordered:d,maxPacketLifeTime:F,maxRetransmits:h,protocol:m}=r.dataChannelOptions;c={ordered:d,maxPacketLifeTime:F,maxRetransmits:h,protocol:m}}var D=new $9(this.client,o,s,l,u,i,(r==null?void 0:r.dataChannelsEnabled)||this.client.isVoipWithNoMediaAllowed,c,this.client.isVoipWithNoMediaAllowed,this.client.useLivekitForGroupCalls,r["io.element.livekit_service_url"]);return this.groupCalls.set(o.roomId,D),this.client.emit(q9.Incoming,D),D}}class $me{constructor(){I(this,"bandwidth",{}),I(this,"bitrate",{}),I(this,"packetLoss",{}),I(this,"transport",[])}}class Wme{static buildBandwidthReport(e){var n=e.availableIncomingBitrate,r=e.availableOutgoingBitrate;return{download:n?Math.round(n/1e3):0,upload:r?Math.round(r/1e3):0}}}class Kme{static buildReport(e,n,r,o){var i=e==null?void 0:e.get(n.localCandidateId),s=e==null?void 0:e.get(n.remoteCandidateId);if(s&&i){var u=s.ip!==void 0?s.ip:s.address,l=s.port,c="".concat(u,":").concat(l),d=i.ip!==void 0?i.ip:i.address,F=i.port,h="".concat(d,":").concat(F),m=s.protocol;r.some(D=>D.ip===c&&D.type===m&&D.localIp===h)||r.push({ip:c,type:m,localIp:h,isFocus:o,localCandidateType:i.candidateType,remoteCandidateType:s.candidateType,networkType:i.networkType,rtt:n.currentRoundTripTime?n.currentRoundTripTime*1e3:NaN})}return r}}class Gme{constructor(){I(this,"ssrcToMid",{local:new Map,remote:new Map})}findMidBySsrc(e,n){var r;return this.ssrcToMid[n].forEach((o,i)=>{if(o.find(s=>s==e)){r=i;return}}),r}parse(e,n){var r=iV(e),o=new Map;r.media.forEach(i=>{if(i.mid&&i.type==="video"||i.type==="audio"){var s,u=[];(s=i.ssrcs)===null||s===void 0||s.forEach(l=>{l.attribute==="cname"&&u.push("".concat(l.id))}),o.set("".concat(i.mid),u)}}),this.ssrcToMid[n]=o}getSsrcToMidMap(e){return this.ssrcToMid[e]}}class Yme{constructor(e){this.pc=e}getLocalTracks(e){var n=r=>r!==null&&r.kind===e;return this.pc.getTransceivers().filter(r=>r.currentDirection==="sendonly"||r.currentDirection==="sendrecv").filter(r=>r.sender!==null).map(r=>r.sender).map(r=>r.track).filter(n)}getTackById(e){return this.pc.getTransceivers().map(n=>{if((n==null?void 0:n.sender.track)!==null&&n.sender.track.id===e)return n.sender.track;if((n==null?void 0:n.receiver.track)!==null&&n.receiver.track.id===e)return n.receiver.track}).find(n=>n!==void 0)}getLocalTrackIdByMid(e){var n,r=this.pc.getTransceivers().find(o=>o.mid===e);return r==null||(n=r.sender)===null||n===void 0||(n=n.track)===null||n===void 0?void 0:n.id}getRemoteTrackIdByMid(e){var n,r=this.pc.getTransceivers().find(o=>o.mid===e);return r==null||(n=r.receiver)===null||n===void 0||(n=n.track)===null||n===void 0?void 0:n.id}getActiveSimulcastStreams(){return 3}getTransceiverByTrackId(e){return this.pc.getTransceivers().find(n=>n.receiver.track.id===e||n.sender.track!==null&&n.sender.track.id===e)}}class Zme{constructor(e,n,r){this.trackId=e,this.type=n,this.kind=r,I(this,"loss",{packetsTotal:0,packetsLost:0,isDownloadStream:!1}),I(this,"bitrate",{download:0,upload:0}),I(this,"resolution",{width:-1,height:-1}),I(this,"audioConcealment",{concealedAudio:0,totalAudioDuration:0}),I(this,"framerate",0),I(this,"jitter",0),I(this,"codec",""),I(this,"isAlive",!0),I(this,"isMuted",!1),I(this,"isEnabled",!0)}getType(){return this.type}setLoss(e){this.loss=e}getLoss(){return this.loss}setResolution(e){this.resolution=e}getResolution(){return this.resolution}setFramerate(e){this.framerate=e}getFramerate(){return this.framerate}setBitrate(e){this.bitrate=e}getBitrate(){return this.bitrate}setCodec(e){return this.codec=e,!0}getCodec(){return this.codec}resetBitrate(){this.bitrate={download:0,upload:0}}set alive(e){this.isAlive=e}get alive(){return this.isAlive}set muted(e){this.isMuted=e}get muted(){return this.isMuted}set enabled(e){this.isEnabled=e}get enabled(){return this.isEnabled}setJitter(e){this.jitter=e}getJitter(){return this.jitter}setAudioConcealment(e,n){this.audioConcealment.concealedAudio=e,this.audioConcealment.totalAudioDuration=n}getAudioConcealment(){return this.audioConcealment}}class Jme{constructor(e,n){this.mediaSsrcHandler=e,this.mediaTrackHandler=n,I(this,"track2stats",new Map)}findTrack2Stats(e,n){var r;if(e.trackIdentifier)r=e.trackIdentifier;else if(e.mid)r=n==="remote"?this.mediaTrackHandler.getRemoteTrackIdByMid(e.mid):this.mediaTrackHandler.getLocalTrackIdByMid(e.mid);else if(e.ssrc){var o=this.mediaSsrcHandler.findMidBySsrc(e.ssrc,n);if(!o)return;r=n==="remote"?this.mediaTrackHandler.getRemoteTrackIdByMid(e.mid):this.mediaTrackHandler.getLocalTrackIdByMid(e.mid)}if(r){var i=this.track2stats.get(r);if(!i){var s=this.mediaTrackHandler.getTackById(r);if(s!==void 0){var u=s.kind==="audio"?s.kind:"video";i=new Zme(r,n,u),this.track2stats.set(r,i)}else return}return i}}findLocalVideoTrackStats(e){var n=this.mediaTrackHandler.getLocalTracks("video");if(n.length!==0)return this.findTrack2Stats(e,"local")}getTrack2stats(){return this.track2stats}findTransceiverByTrackId(e){return this.mediaTrackHandler.getTransceiverByTrackId(e)}}class lh{static getNonNegativeValue(e){var n=e;return typeof n!="number"&&(n=Number(n)),isNaN(n)?0:Math.max(0,n)}}class pa{static buildFramerateResolution(e,n){var r={height:n.frameHeight,width:n.frameWidth},o=n.framesPerSecond;r.height&&r.width&&e.setResolution(r),e.setFramerate(Math.round(o||0))}static calculateSimulcastFramerate(e,n,r,o){var i=e.getFramerate();if(!i){if(r){var s=n.timestamp-r.timestamp;if(s>0&&n.framesSent){var u=n.framesSent-r.framesSent;i=u/s*1e3}}if(!i)return}i=o?Math.round(i/o):0,e.setFramerate(i)}static buildCodec(e,n,r){var o=e==null?void 0:e.get(r.codecId);if(o){var i=o.mimeType.split("/")[1];i&&n.setCodec(i)}}static buildBitrateReceived(e,n,r){e.setBitrate({download:pa.calculateBitrate(n.bytesReceived,r.bytesReceived,n.timestamp,r.timestamp),upload:0})}static buildBitrateSend(e,n,r){e.setBitrate({download:0,upload:this.calculateBitrate(n.bytesSent,r.bytesSent,n.timestamp,r.timestamp)})}static buildPacketsLost(e,n,r){var o=n.type==="outbound-rtp"?"packetsSent":"packetsReceived",i=n[o];(!i||i<0)&&(i=0);var s=lh.getNonNegativeValue(r[o]),u=Math.max(0,i-s),l=lh.getNonNegativeValue(n.packetsLost),c=lh.getNonNegativeValue(r.packetsLost),d=Math.max(0,l-c);e.setLoss({packetsTotal:u+d,packetsLost:d,isDownloadStream:n.type!=="outbound-rtp"})}static calculateBitrate(e,n,r,o){var i=lh.getNonNegativeValue(e),s=lh.getNonNegativeValue(n),u=Math.max(0,i-s),l=r-o,c=0;return l>0&&(c=Math.round(u*8/l)),c}static setTrackStatsState(e,n){var r;if(n===void 0){e.alive=!1;return}var o=e.getType()==="remote"?n.receiver.track:n==null||(r=n.sender)===null||r===void 0?void 0:r.track;if(o==null){e.alive=!1;return}if(o.readyState==="ended"){e.alive=!1;return}e.muted=o.muted,e.enabled=o.enabled,e.alive=!0}static buildTrackSummary(e){var n={count:0,muted:0,maxJitter:0,maxPacketLoss:0,concealedAudio:0,totalAudio:0},r={count:0,muted:0,maxJitter:0,maxPacketLoss:0,concealedAudio:0,totalAudio:0},o=e.filter(s=>s.getType()==="remote"),i=o.filter(s=>s.kind==="audio");return o.forEach(s=>{var u=s.kind==="video"?n:r;if(u.count++,s.alive&&s.muted&&u.muted++,u.maxJitter<s.getJitter()&&(u.maxJitter=s.getJitter()),u.maxPacketLoss<s.getLoss().packetsLost&&(u.maxPacketLoss=s.getLoss().packetsLost),i.length>0){var l,c;u.concealedAudio+=(l=s.getAudioConcealment())===null||l===void 0?void 0:l.concealedAudio,u.totalAudio+=(c=s.getAudioConcealment())===null||c===void 0?void 0:c.totalAudioDuration}}),{audioTrackSummary:r,videoTrackSummary:n}}static buildJitter(e,n){if(n.type==="inbound-rtp"){var r=n==null?void 0:n.jitter;if(r!==void 0){var o=lh.getNonNegativeValue(r);e.setJitter(Math.round(o*1e3))}else e.setJitter(-1)}}static buildAudioConcealment(e,n){if(n.type==="inbound-rtp"){var r=1e3*(n==null?void 0:n.totalSamplesDuration)/(n==null?void 0:n.totalSamplesReceived),o=r*(n==null?void 0:n.concealedSamples),i=1e3*(n==null?void 0:n.totalSamplesDuration);e.setAudioConcealment(o,i)}}}class Jp{static build(e){var n={},r={download:0,upload:0},o={download:0,upload:0},i=0,s=0,u={local:new Map,remote:new Map},l={local:new Map,remote:new Map},c={local:new Map,remote:new Map},d=new Map,F=new Map,h=0,m=0,D=0,g=0,p=0,_=0;for(var[v,E]of e){var b=E.getLoss(),k=b.isDownloadStream?"download":"upload";if(r[k]+=b.packetsTotal,o[k]+=b.packetsLost,i+=E.getBitrate().download,s+=E.getBitrate().upload,E.kind==="audio"){var C=E.getAudioConcealment();p+=C.concealedAudio,_+=C.totalAudioDuration,h+=E.getBitrate().download,m+=E.getBitrate().upload}else D+=E.getBitrate().download,g+=E.getBitrate().upload;u[E.getType()].set(v,E.getResolution()),l[E.getType()].set(v,E.getFramerate()),c[E.getType()].set(v,E.getCodec()),E.getType()==="remote"&&(d.set(v,E.getJitter()),E.kind==="audio"&&F.set(v,E.getAudioConcealment())),E.resetBitrate()}return n.bitrate={upload:s,download:i},n.bitrate.audio={upload:m,download:h},n.bitrate.video={upload:g,download:D},n.packetLoss={total:Jp.calculatePacketLoss(o.download+o.upload,r.download+r.upload),download:Jp.calculatePacketLoss(o.download,r.download),upload:Jp.calculatePacketLoss(o.upload,r.upload)},n.audioConcealment=F,n.totalAudioConcealment={concealedAudio:p,totalAudioDuration:_},n.framerate=l,n.resolution=u,n.codec=c,n.jitter=d,n}static calculatePacketLoss(e,n){return!n||n<=0||!e||e<=0?0:Math.round(e/n*100)}}class sd{static buildCallFeedReport(e,n,r){var o=r.getTransceivers(),i=[],s=[];return o.forEach(u=>{var l,c=(l=u.sender)!==null&&l!==void 0&&l.track?sd.buildTrackStats(u.sender.track,"sender"):null,d=sd.buildTrackStats(u.receiver.track,"receiver");i.push({mid:u.mid==null?"null":u.mid,direction:u.direction,currentDirection:u.currentDirection==null?"null":u.currentDirection,sender:c,receiver:d})}),{callId:e,opponentMemberId:n,transceiver:i,callFeeds:s}}static buildTrackStats(e){var n,r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"--",i=(n=e.getSettings())===null||n===void 0?void 0:n.deviceId,s=(r=e.getConstraints())===null||r===void 0?void 0:r.deviceId;return{id:e.id,kind:e.kind,settingDeviceId:i??"unknown",constrainDeviceId:s??"unknown",muted:e.muted,enabled:e.enabled,readyState:e.readyState,label:o}}static expandCallFeedReport(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"unknown";return n.forEach(o=>{var i=o.stream.getAudioTracks(),s=o.stream.getVideoTracks(),u=i.length>0?sd.buildTrackStats(o.stream.getAudioTracks()[0],o.purpose):null,l=s.length>0?sd.buildTrackStats(o.stream.getVideoTracks()[0],o.purpose):null,c={stream:o.stream.id,type:o.isLocal()?"local":"remote",audio:u,video:l,purpose:o.purpose,prefix:r,isVideoMuted:o.isVideoMuted(),isAudioMuted:o.isAudioMuted()};e.callFeeds.push(c)}),e}}function sV(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Bb(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sV(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sV(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}class Xme{constructor(e,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;this.callId=e,this.opponentMemberId=n,this.pc=r,this.emitter=o,this.isFocus=i,I(this,"isActive",!0),I(this,"previousStatsReport",void 0),I(this,"currentStatsReport",void 0),I(this,"connectionStats",new $me),I(this,"trackStats",void 0),r.addEventListener("signalingstatechange",this.onSignalStateChange.bind(this)),this.trackStats=new Jme(new Gme,new Yme(r))}processStats(e,n){var r=this;return Z(function*(){var o={isFirstCollection:r.previousStatsReport===void 0,receivedMedia:0,receivedAudioMedia:0,receivedVideoMedia:0,audioTrackSummary:{count:0,muted:0,maxPacketLoss:0,maxJitter:0,concealedAudio:0,totalAudio:0},videoTrackSummary:{count:0,muted:0,maxPacketLoss:0,maxJitter:0,concealedAudio:0,totalAudio:0}};if(r.isActive){var i=r.pc.getStats();if(typeof(i==null?void 0:i.then)=="function")return i.then(s=>{var u,l;r.currentStatsReport=typeof(s==null?void 0:s.result)=="function"?s.result():s;try{r.processStatsReport(e,n)}catch(d){return r.handleError(d),o}r.previousStatsReport=r.currentStatsReport,o.receivedMedia=r.connectionStats.bitrate.download,o.receivedAudioMedia=((u=r.connectionStats.bitrate.audio)===null||u===void 0?void 0:u.download)||0,o.receivedVideoMedia=((l=r.connectionStats.bitrate.video)===null||l===void 0?void 0:l.download)||0;var c=pa.buildTrackSummary(Array.from(r.trackStats.getTrack2stats().values()));return Bb(Bb({},o),{},{audioTrackSummary:c.audioTrackSummary,videoTrackSummary:c.videoTrackSummary})}).catch(s=>(r.handleError(s),o));r.isActive=!1}return Promise.resolve(o)})()}processStatsReport(e,n){var r,o=new Map;o.callId=this.callId,o.opponentMemberId=this.opponentMemberId,(r=this.currentStatsReport)===null||r===void 0||r.forEach(i=>{var s=this.previousStatsReport?this.previousStatsReport.get(i.id):null;if(i.type==="candidate-pair"&&i.nominated&&i.state==="succeeded")this.connectionStats.bandwidth=Wme.buildBandwidthReport(i),this.connectionStats.transport=Kme.buildReport(this.currentStatsReport,i,this.connectionStats.transport,this.isFocus);else if(i.type==="inbound-rtp"||i.type==="outbound-rtp"){var u=this.trackStats.findTrack2Stats(i,i.type==="inbound-rtp"?"remote":"local");if(!u)return;if(s&&pa.buildPacketsLost(u,i,s),i.type==="inbound-rtp"){pa.buildFramerateResolution(u,i),s&&pa.buildBitrateReceived(u,i,s);var l=this.trackStats.findTransceiverByTrackId(u.trackId);pa.setTrackStatsState(u,l),pa.buildJitter(u,i),pa.buildAudioConcealment(u,i)}else s&&(o.set(u.trackId,lh.getNonNegativeValue(i.bytesSent)),pa.buildBitrateSend(u,i,s));pa.buildCodec(this.currentStatsReport,u,i)}else if(i.type==="track"&&i.kind==="video"&&!i.remoteSource){var c=this.trackStats.findLocalVideoTrackStats(i);if(!c)return;pa.buildFramerateResolution(c,i),pa.calculateSimulcastFramerate(c,i,s,this.trackStats.mediaTrackHandler.getActiveSimulcastStreams())}}),this.emitter.emitByteSendReport(o),this.emitter.emitCallFeedReport(sd.buildCallFeedReport(this.callId,this.opponentMemberId,this.pc)),this.processAndEmitConnectionStatsReport()}setActive(e){this.isActive=e}getActive(){return this.isActive}handleError(e){this.isActive=!1,Y.warn("CallStatsReportGatherer ".concat(this.callId," processStatsReport fails and set to inactive ").concat(e))}processAndEmitConnectionStatsReport(){var e=Jp.build(this.trackStats.getTrack2stats());e.callId=this.callId,e.opponentMemberId=this.opponentMemberId,this.connectionStats.bandwidth=e.bandwidth,this.connectionStats.bitrate=e.bitrate,this.connectionStats.packetLoss=e.packetLoss,this.emitter.emitConnectionStatsReport(Bb(Bb({},e),{},{transport:this.connectionStats.transport})),this.connectionStats.transport=[]}stopProcessingStats(){}onSignalStateChange(){this.pc.signalingState==="stable"&&(this.pc.currentRemoteDescription&&this.trackStats.mediaSsrcHandler.parse(this.pc.currentRemoteDescription.sdp,"remote"),this.pc.currentLocalDescription&&this.trackStats.mediaSsrcHandler.parse(this.pc.currentLocalDescription.sdp,"local"))}setOpponentMemberId(e){this.opponentMemberId=e}}var Ll=function(t){return t.CONNECTION_STATS="StatsReport.connection_stats",t.CALL_FEED_REPORT="StatsReport.call_feed_report",t.BYTE_SENT_STATS="StatsReport.byte_sent_stats",t.SUMMARY_STATS="StatsReport.summary_stats",t}({});class Qme extends Cr{emitByteSendReport(e){this.emit(Ll.BYTE_SENT_STATS,e)}emitConnectionStatsReport(e){this.emit(Ll.CONNECTION_STATS,e)}emitCallFeedReport(e){this.emit(Ll.CALL_FEED_REPORT,e)}emitSummaryStatsReport(e){this.emit(Ll.SUMMARY_STATS,e)}}class uV{constructor(e){this.emitter=e}build(e){var n=e.filter(d=>!d.isFirstCollection),r=n.length,o=e.length;if(r!==0){var i={receivedAudio:0,receivedVideo:0,receivedMedia:0,concealedAudio:0,totalAudio:0},s=0,u=0;n.forEach(d=>{this.countTrackListReceivedMedia(i,d),this.countConcealedAudio(i,d),s=this.buildMaxJitter(s,d),u=this.buildMaxPacketLoss(u,d)});var l=5,c={percentageReceivedMedia:Number((i.receivedMedia/r).toFixed(l)),percentageReceivedVideoMedia:Number((i.receivedVideo/r).toFixed(l)),percentageReceivedAudioMedia:Number((i.receivedAudio/r).toFixed(l)),maxJitter:s,maxPacketLoss:u,percentageConcealedAudio:Number(i.totalAudio>0?(i.concealedAudio/i.totalAudio).toFixed(l):0),peerConnections:o};this.emitter.emitSummaryStatsReport(c)}}static extendSummaryReport(e,n){var r=[],o=[];for(var i of n){o.push(i);for(var s of i[1])r.push(s)}e.opponentDevicesInCall=Math.max(0,r.length-1),e.opponentUsersInCall=Math.max(0,o.length-1),e.diffDevicesToPeerConnections=Math.max(0,r.length-1)-e.peerConnections,e.ratioPeerConnectionToDevices=Math.max(0,r.length-1)==0?0:e.peerConnections/(r.length-1)}countTrackListReceivedMedia(e,n){var r=!1,o=!1;(n.receivedAudioMedia>0||n.audioTrackSummary.count===0)&&(e.receivedAudio++,r=!0),(n.receivedVideoMedia>0||n.videoTrackSummary.count===0||n.videoTrackSummary.muted>0&&n.videoTrackSummary.muted===n.videoTrackSummary.count)&&(e.receivedVideo++,o=!0),o&&r&&e.receivedMedia++}buildMaxJitter(e,n){return e<n.videoTrackSummary.maxJitter&&(e=n.videoTrackSummary.maxJitter),e<n.audioTrackSummary.maxJitter&&(e=n.audioTrackSummary.maxJitter),e}buildMaxPacketLoss(e,n){return e<n.videoTrackSummary.maxPacketLoss&&(e=n.videoTrackSummary.maxPacketLoss),e<n.audioTrackSummary.maxPacketLoss&&(e=n.audioTrackSummary.maxPacketLoss),e}countConcealedAudio(e,n){e.concealedAudio+=n.audioTrackSummary.concealedAudio,e.totalAudio+=n.audioTrackSummary.totalAudio}}class eDe{constructor(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e4;this.groupCallId=e,this.userId=n,this.interval=r,I(this,"timer",void 0),I(this,"gatherers",new Map),I(this,"reports",new Qme),I(this,"summaryStatsReportGatherer",new uV(this.reports))}start(){this.timer===void 0&&this.interval>0&&(this.timer=setInterval(()=>{this.processStats()},this.interval))}stop(){this.timer!==void 0&&(clearInterval(this.timer),this.gatherers.forEach(e=>e.stopProcessingStats()))}hasStatsReportGatherer(e){return this.gatherers.has(e)}addStatsReportGatherer(e,n,r){return this.hasStatsReportGatherer(e)?!1:(this.gatherers.set(e,new Xme(e,n,r,this.reports)),!0)}removeStatsReportGatherer(e){return this.gatherers.delete(e)}getStatsReportGatherer(e){return this.hasStatsReportGatherer(e)?this.gatherers.get(e):void 0}updateOpponentMember(e,n){var r;(r=this.getStatsReportGatherer(e))===null||r===void 0||r.setOpponentMemberId(n)}processStats(){var e=[];this.gatherers.forEach(n=>{e.push(n.processStats(this.groupCallId,this.userId))}),Promise.all(e).then(n=>this.summaryStatsReportGatherer.build(n)).catch(n=>{Y.error("Could not build summary stats report",n)})}setInterval(e){this.interval=e}}function lV(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ab(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lV(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lV(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var cV=function(t){return t.Ring="m.ring",t.Prompt="m.prompt",t.Room="m.room",t}({}),Tb=function(t){return t.Video="m.video",t.Voice="m.voice",t}({}),tDe=function(t){return t.CallEnded="call_ended",t}({}),vr=function(t){return t.GroupCallStateChanged="group_call_state_changed",t.ActiveSpeakerChanged="active_speaker_changed",t.CallsChanged="calls_changed",t.UserMediaFeedsChanged="user_media_feeds_changed",t.ScreenshareFeedsChanged="screenshare_feeds_changed",t.LocalScreenshareStateChanged="local_screenshare_state_changed",t.LocalMuteStateChanged="local_mute_state_changed",t.ParticipantsChanged="participants_changed",t.Error="group_call_error",t}({}),Xp=function(t){return t.ConnectionStats="GroupCall.connection_stats",t.ByteSentStats="GroupCall.byte_sent_stats",t.SummaryStats="GroupCall.summary_stats",t.CallFeedStats="GroupCall.call_feed_stats",t}({}),Qp=function(t){return t.NoUserMedia="no_user_media",t.UnknownDevice="unknown_device",t.PlaceCallFailed="place_call_failed",t}({});class H9 extends Error{constructor(e,n,r){r?(super(n+": "+r),I(this,"code",void 0)):(super(n),I(this,"code",void 0)),this.code=e}}class dV extends H9{constructor(e){super(Qp.UnknownDevice,"No device found for "+e),this.userId=e}}var $r=function(t){return t.LocalCallFeedUninitialized="local_call_feed_uninitialized",t.InitializingLocalCallFeed="initializing_local_call_feed",t.LocalCallFeedInitialized="local_call_feed_initialized",t.Entered="entered",t.Ended="ended",t}({}),hV=1e3*60*60;function Ib(t){var e;return((e=t.getOpponentMember())===null||e===void 0?void 0:e.userId)||t.invitee||null}class $9 extends Cr{constructor(e,n,r,o,i,s,u,l,c){var d,F,h=arguments.length>9&&arguments[9]!==void 0?arguments[9]:!1,m=arguments.length>10?arguments[10]:void 0;super(),this.client=e,this.room=n,this.type=r,this.isPtt=o,this.intent=i,this.dataChannelsEnabled=u,this.dataChannelOptions=l,this.useLivekit=h,I(this,"activeSpeakerInterval",1e3),I(this,"retryCallInterval",5e3),I(this,"participantTimeout",15e3),I(this,"pttMaxTransmitTime",2e4),I(this,"activeSpeaker",void 0),I(this,"localCallFeed",void 0),I(this,"localScreenshareFeed",void 0),I(this,"localDesktopCapturerSourceId",void 0),I(this,"userMediaFeeds",[]),I(this,"screenshareFeeds",[]),I(this,"groupCallId",void 0),I(this,"allowCallWithoutVideoAndAudio",void 0),I(this,"calls",new Map),I(this,"callHandlers",new Map),I(this,"activeSpeakerLoopInterval",void 0),I(this,"retryCallLoopInterval",void 0),I(this,"retryCallCounts",new Map),I(this,"reEmitter",void 0),I(this,"transmitTimer",null),I(this,"participantsExpirationTimer",null),I(this,"resendMemberStateTimer",null),I(this,"initWithAudioMuted",!1),I(this,"initWithVideoMuted",!1),I(this,"initCallFeedPromise",void 0),I(this,"_livekitServiceURL",void 0),I(this,"stats",void 0),I(this,"statsCollectIntervalTime",0),I(this,"onConnectionStats",D=>{this.emit(Xp.ConnectionStats,{report:D})}),I(this,"onByteSentStats",D=>{this.emit(Xp.ByteSentStats,{report:D})}),I(this,"onSummaryStats",D=>{uV.extendSummaryReport(D,this.participants),this.emit(Xp.SummaryStats,{report:D})}),I(this,"onCallFeedReport",D=>{this.localCallFeed&&(D=sd.expandCallFeedReport(D,[this.localCallFeed],"from-local-feed"));var g=[];this.forEachCall(p=>{p.callId===D.callId&&p.getFeeds().forEach(_=>g.push(_))}),D=sd.expandCallFeedReport(D,g,"from-call-feed"),this.emit(Xp.CallFeedStats,{report:D})}),I(this,"_state",$r.LocalCallFeedUninitialized),I(this,"_participants",new Map),I(this,"_creationTs",null),I(this,"_enteredViaAnotherSession",!1),I(this,"onIncomingCall",D=>{var g,p;if(D.roomId===this.room.roomId){if(D.state!==Vt.Ringing){Y.warn("GroupCall ".concat(this.groupCallId," onIncomingCall() incoming call no longer in ringing state - ignoring"));return}if(!D.groupCallId||D.groupCallId!==this.groupCallId){Y.log("GroupCall ".concat(this.groupCallId," onIncomingCall() ignored because it doesn't match the current group call")),D.reject();return}var _=(g=D.getOpponentMember())===null||g===void 0?void 0:g.userId;if(_===void 0){Y.warn("GroupCall ".concat(this.groupCallId," onIncomingCall() incoming call with no member - ignoring"));return}if(this.useLivekit){Y.info("Received incoming call whilst in signaling-only mode! Ignoring.");return}var v=(p=this.calls.get(_))!==null&&p!==void 0?p:new Map,E=v.get(D.getOpponentDeviceId());if((E==null?void 0:E.callId)!==D.callId){Y.log("GroupCall ".concat(this.groupCallId," onIncomingCall() incoming call (userId=").concat(_,", callId=").concat(D.callId,")")),E&&E.hangup(sn.Replaced,!1),v.set(D.getOpponentDeviceId(),D),this.calls.set(_,v),this.initCall(D);var b=this.getLocalFeeds().map(C=>C.clone());if(!this.callExpected(D))for(var k of b)_o(k.stream.getAudioTracks(),!1),_o(k.stream.getVideoTracks(),!1);D.answerWithCallFeeds(b),this.emit(vr.CallsChanged,this.calls)}}}),I(this,"onRetryCallLoop",()=>{var D=!1;for(var[{userId:g},p]of this.participants){var _=this.calls.get(g),v=this.retryCallCounts.get(g);for(var[E,b]of p){var k,C,S=_==null?void 0:_.get(E),w=(k=(C=v)===null||C===void 0?void 0:C.get(E))!==null&&k!==void 0?k:0;(S==null?void 0:S.getOpponentSessionId())!==b.sessionId&&this.wantsOutgoingCall(g,E)&&w<3&&(v===void 0&&(v=new Map,this.retryCallCounts.set(g,v)),v.set(E,w+1),D=!0)}}D&&this.placeOutgoingCalls()}),I(this,"onCallFeedsChanged",D=>{var g=Ib(D),p=D.getOpponentDeviceId();if(!g)throw new Error("Cannot change call feeds without user id");var _=this.getUserMediaFeed(g,p),v=D.remoteUsermediaFeed,E=v!==_,b=this.calls.get(g),k=b==null?void 0:b.get(p);if((k==null?void 0:k.callId)===D.callId){E&&(!_&&v?this.addUserMediaFeed(v):_&&v?this.replaceUserMediaFeed(_,v):_&&!v&&this.removeUserMediaFeed(_));var C=this.getScreenshareFeed(g,p),S=D.remoteScreensharingFeed,w=S!==C;w&&(!C&&S?this.addScreenshareFeed(S):C&&S?this.replaceScreenshareFeed(C,S):C&&!S&&this.removeScreenshareFeed(C))}}),I(this,"onCallStateChanged",(D,g,p)=>{var _;if(g!==Vt.Ended){var v=this.localCallFeed.isAudioMuted();D.localUsermediaStream&&D.isMicrophoneMuted()!==v&&D.setMicrophoneMuted(v);var E=this.localCallFeed.isVideoMuted();D.localUsermediaStream&&D.isLocalVideoMuted()!==E&&D.setLocalVideoMuted(E);var b=(_=D.getOpponentMember())===null||_===void 0?void 0:_.userId;if(g===Vt.Connected&&b){var k=this.retryCallCounts.get(b);k==null||k.delete(D.getOpponentDeviceId()),(k==null?void 0:k.size)===0&&this.retryCallCounts.delete(b)}}}),I(this,"onCallHangup",D=>{var g,p;if(D.hangupReason!==sn.Replaced){var _=(g=(p=D.getOpponentMember())===null||p===void 0?void 0:p.userId)!==null&&g!==void 0?g:this.room.getMember(D.invitee).userId,v=this.calls.get(_);(v==null?void 0:v.get(D.getOpponentDeviceId()))===D&&(this.disposeCall(D,D.hangupReason),v.delete(D.getOpponentDeviceId()),v.size===0&&this.calls.delete(_),this.emit(vr.CallsChanged,this.calls))}}),I(this,"onCallReplaced",(D,g)=>{var p=D.getOpponentMember().userId,_=this.calls.get(p);_===void 0&&(_=new Map,this.calls.set(p,_)),D.hangup(sn.Replaced,!1),this.initCall(g),_.set(D.getOpponentDeviceId(),g),this.emit(vr.CallsChanged,this.calls)}),I(this,"onActiveSpeakerLoop",()=>{var D=void 0,g=void 0;for(var p of this.userMediaFeeds)if(!(p.isLocal()&&this.userMediaFeeds.length>1)){var _=p.speakingVolumeSamples.reduce((E,b)=>E+Math.max(b,U9)),v=_/p.speakingVolumeSamples.length;(!D||v>D)&&(D=v,g=p)}g&&this.activeSpeaker!==g&&D&&D>U9&&(this.activeSpeaker=g,this.emit(vr.ActiveSpeakerChanged,this.activeSpeaker))}),I(this,"onRoomState",()=>this.updateParticipants()),I(this,"onParticipantsChanged",()=>{this.forEachCall(D=>{var g=this.callExpected(D);for(var p of D.getLocalFeeds())_o(p.stream.getAudioTracks(),!p.isAudioMuted()&&g),_o(p.stream.getVideoTracks(),!p.isVideoMuted()&&g)}),this.state===$r.Entered&&!this.useLivekit&&this.placeOutgoingCalls()}),I(this,"onStateChanged",(D,g)=>{(D===$r.Entered||g===$r.Entered||D===$r.Ended)&&(this.updateParticipants(),this.updateMemberState().catch(p=>Y.error("GroupCall ".concat(this.groupCallId,' onStateChanged() failed to update member state devices"'),p)))}),I(this,"onLocalFeedsChanged",()=>{this.state===$r.Entered&&this.updateMemberState().catch(D=>Y.error("GroupCall ".concat(this.groupCallId," onLocalFeedsChanged() failed to update member state feeds"),D))}),this.reEmitter=new aU(this),this.groupCallId=s??ch(),this._livekitServiceURL=m,this.creationTs=(d=(F=n.currentState.getStateEvents(Ce.GroupCallPrefix,this.groupCallId))===null||F===void 0?void 0:F.getTs())!==null&&d!==void 0?d:null,this.updateParticipants(),n.on(Zt.Update,this.onRoomState),this.on(vr.ParticipantsChanged,this.onParticipantsChanged),this.on(vr.GroupCallStateChanged,this.onStateChanged),this.on(vr.LocalScreenshareStateChanged,this.onLocalFeedsChanged),this.allowCallWithoutVideoAndAudio=!!c}create(){var e=this;return Z(function*(){return e.creationTs=Date.now(),e.client.groupCallEventHandler.groupCalls.set(e.room.roomId,e),e.client.emit(q9.Outgoing,e),yield e.sendCallStateEvent(),e})()}sendCallStateEvent(){var e=this;return Z(function*(){var n={"m.intent":e.intent,"m.type":e.type,"io.element.ptt":e.isPtt,dataChannelsEnabled:e.dataChannelsEnabled,dataChannelOptions:e.dataChannelsEnabled?e.dataChannelOptions:void 0};e.livekitServiceURL&&(n["io.element.livekit_service_url"]=e.livekitServiceURL),yield e.client.sendStateEvent(e.room.roomId,Ce.GroupCallPrefix,n,e.groupCallId)})()}get livekitServiceURL(){return this._livekitServiceURL}updateLivekitServiceURL(e){return this._livekitServiceURL=e,this.sendCallStateEvent()}get state(){return this._state}set state(e){var n=this._state;e!==n&&(this._state=e,this.emit(vr.GroupCallStateChanged,e,n))}get participants(){return this._participants}set participants(e){var n=this._participants,r=(i,s)=>i.sessionId===s.sessionId&&i.screensharing===s.screensharing,o=(i,s)=>az(i,s,r);az(e,n,o)||(this._participants=e,this.emit(vr.ParticipantsChanged,e))}get creationTs(){return this._creationTs}set creationTs(e){this._creationTs=e}get enteredViaAnotherSession(){return this._enteredViaAnotherSession}set enteredViaAnotherSession(e){this._enteredViaAnotherSession=e,this.updateParticipants()}forEachCall(e){for(var n of this.calls.values())for(var r of n.values())e(r)}getLocalFeeds(){var e=[];return this.localCallFeed&&e.push(this.localCallFeed),this.localScreenshareFeed&&e.push(this.localScreenshareFeed),e}hasLocalParticipant(){var e,n;return(e=(n=this.participants.get(this.room.getMember(this.client.getUserId())))===null||n===void 0?void 0:n.has(this.client.getDeviceId()))!==null&&e!==void 0?e:!1}callExpected(e){var n,r=Ib(e),o=r===null?null:this.room.getMember(r),i=e.getOpponentDeviceId();return o!==null&&i!==void 0&&((n=this.participants.get(o))===null||n===void 0?void 0:n.get(i))!==void 0}initLocalCallFeed(){var e=this;return Z(function*(){if(e.useLivekit){Y.info("Livekit group call: not starting local call feed.");return}if(e.state!==$r.LocalCallFeedUninitialized)throw new Error('Cannot initialize local call feed in the "'.concat(e.state,'" state.'));if(e.state=$r.InitializingLocalCallFeed,e.initCallFeedPromise)return e.initCallFeedPromise;try{e.initCallFeedPromise=e.initLocalCallFeedInternal(),yield e.initCallFeedPromise}finally{e.initCallFeedPromise=void 0}})()}initLocalCallFeedInternal(){var e=this;return Z(function*(){Y.log("GroupCall ".concat(e.groupCallId," initLocalCallFeedInternal() running"));var n;try{n=yield e.client.getMediaHandler().getUserMediaStream(!0,e.type===Tb.Video)}catch(o){if(e.allowCallWithoutVideoAndAudio)n=new MediaStream;else throw e.state=$r.LocalCallFeedUninitialized,o}if(e._state!==$r.InitializingLocalCallFeed)throw e.client.getMediaHandler().stopUserMediaStream(n),new Error("Group call disposed while gathering media stream");var r=new Pl({client:e.client,roomId:e.room.roomId,userId:e.client.getUserId(),deviceId:e.client.getDeviceId(),stream:n,purpose:_r.Usermedia,audioMuted:e.initWithAudioMuted||n.getAudioTracks().length===0||e.isPtt,videoMuted:e.initWithVideoMuted||n.getVideoTracks().length===0});_o(n.getAudioTracks(),!r.isAudioMuted()),_o(n.getVideoTracks(),!r.isVideoMuted()),e.localCallFeed=r,e.addUserMediaFeed(r),e.state=$r.LocalCallFeedInitialized})()}updateLocalUsermediaStream(e){var n=this;return Z(function*(){if(n.localCallFeed){var r=n.localCallFeed.stream;n.localCallFeed.setNewStream(e);var o=n.localCallFeed.isAudioMuted(),i=n.localCallFeed.isVideoMuted();Y.log("GroupCall ".concat(n.groupCallId," updateLocalUsermediaStream() (oldStreamId=").concat(r.id,", newStreamId=").concat(e.id,", micShouldBeMuted=").concat(o,", vidShouldBeMuted=").concat(i,")")),_o(e.getAudioTracks(),!o),_o(e.getVideoTracks(),!i),n.client.getMediaHandler().stopUserMediaStream(r)}})()}enter(){var e=this;return Z(function*(){if(e.state===$r.LocalCallFeedUninitialized)yield e.initLocalCallFeed();else if(e.state!==$r.LocalCallFeedInitialized)throw new Error('Cannot enter call in the "'.concat(e.state,'" state'));Y.log("GroupCall ".concat(e.groupCallId," enter() running")),e.state=$r.Entered,e.client.on(V9.Incoming,e.onIncomingCall);for(var n of e.client.callEventHandler.calls.values())e.onIncomingCall(n);e.useLivekit||(e.retryCallLoopInterval=setInterval(e.onRetryCallLoop,e.retryCallInterval),e.activeSpeaker=void 0,e.onActiveSpeakerLoop(),e.activeSpeakerLoopInterval=setInterval(e.onActiveSpeakerLoop,e.activeSpeakerInterval))})()}dispose(){var e;this.localCallFeed&&(this.removeUserMediaFeed(this.localCallFeed),this.localCallFeed=void 0),this.localScreenshareFeed&&(this.client.getMediaHandler().stopScreensharingStream(this.localScreenshareFeed.stream),this.removeScreenshareFeed(this.localScreenshareFeed),this.localScreenshareFeed=void 0,this.localDesktopCapturerSourceId=void 0),this.client.getMediaHandler().stopAllStreams(),this.transmitTimer!==null&&(clearTimeout(this.transmitTimer),this.transmitTimer=null),this.retryCallLoopInterval!==void 0&&(clearInterval(this.retryCallLoopInterval),this.retryCallLoopInterval=void 0),this.participantsExpirationTimer!==null&&(clearTimeout(this.participantsExpirationTimer),this.participantsExpirationTimer=null),this.state===$r.Entered&&(this.forEachCall(n=>n.hangup(sn.UserHangup,!1)),this.activeSpeaker=void 0,clearInterval(this.activeSpeakerLoopInterval),this.retryCallCounts.clear(),clearInterval(this.retryCallLoopInterval),this.client.removeListener(V9.Incoming,this.onIncomingCall),(e=this.stats)===null||e===void 0||e.stop())}leave(){this.dispose(),this.state=$r.LocalCallFeedUninitialized}terminate(){var e=arguments,n=this;return Z(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:!0;if(n.dispose(),n.room.off(Zt.Update,n.onRoomState),n.client.groupCallEventHandler.groupCalls.delete(n.room.roomId),n.client.emit(q9.Ended,n),n.state=$r.Ended,r){var o=n.room.currentState.getStateEvents(Ce.GroupCallPrefix,n.groupCallId);yield n.client.sendStateEvent(n.room.roomId,Ce.GroupCallPrefix,Ab(Ab({},o.getContent()),{},{"m.terminated":tDe.CallEnded}),n.groupCallId)}})()}isLocalVideoMuted(){return this.localCallFeed?this.localCallFeed.isVideoMuted():!0}isMicrophoneMuted(){return this.localCallFeed?this.localCallFeed.isAudioMuted():!0}setMicrophoneMuted(e){var n=this;return Z(function*(){if(!e&&!(yield n.client.getMediaHandler().hasAudioDevice()))return!1;var r=!e&&n.isPtt;n.isPtt&&(!e&&n.isMicrophoneMuted()?n.transmitTimer=setTimeout(()=>{n.setMicrophoneMuted(!0)},n.pttMaxTransmitTime):e&&!n.isMicrophoneMuted()&&(n.transmitTimer!==null&&clearTimeout(n.transmitTimer),n.transmitTimer=null)),n.forEachCall(s=>{var u;return(u=s.localUsermediaFeed)===null||u===void 0?void 0:u.setAudioVideoMuted(e,null)});var o=function(){var s=Z(function*(){var u=[];n.forEachCall(l=>u.push(l.sendMetadataUpdate())),yield Promise.all(u).catch(l=>Y.info("GroupCall ".concat(n.groupCallId," setMicrophoneMuted() failed to send some metadata updates"),l))});return function(){return s.apply(this,arguments)}}();if(r&&(yield o()),n.localCallFeed){Y.log("GroupCall ".concat(n.groupCallId," setMicrophoneMuted() (streamId=").concat(n.localCallFeed.stream.id,", muted=").concat(e,")"));var i=yield n.checkAudioPermissionIfNecessary(e);if(!i)return!1;n.localCallFeed.setAudioVideoMuted(e,null),_o(n.localCallFeed.stream.getAudioTracks(),!e)}else Y.log("GroupCall ".concat(n.groupCallId," setMicrophoneMuted() no stream muted (muted=").concat(e,")")),n.initWithAudioMuted=e;return n.forEachCall(s=>_o(s.localUsermediaFeed.stream.getAudioTracks(),!e&&n.callExpected(s))),n.emit(vr.LocalMuteStateChanged,e,n.isLocalVideoMuted()),r||(yield o()),!0})()}checkAudioPermissionIfNecessary(e){var n=this;return Z(function*(){try{if(!e&&n.localCallFeed&&!n.localCallFeed.hasAudioTrack){var r=yield n.client.getMediaHandler().getUserMediaStream(!0,!n.localCallFeed.isVideoMuted());if((r==null?void 0:r.getTracks().length)===0)return Y.log("GroupCall ".concat(n.groupCallId," setMicrophoneMuted() no device to receive local stream, muted=").concat(e)),!1}}catch{return Y.log("GroupCall ".concat(n.groupCallId," setMicrophoneMuted() no device or permission to receive local stream, muted=").concat(e)),!1}return!0})()}setLocalVideoMuted(e){var n=this;return Z(function*(){if(!e&&!(yield n.client.getMediaHandler().hasVideoDevice()))return!1;if(n.localCallFeed){Y.log("GroupCall ".concat(n.groupCallId," setLocalVideoMuted() (stream=").concat(n.localCallFeed.stream.id,", muted=").concat(e,")"));try{var r=yield n.client.getMediaHandler().getUserMediaStream(!0,!e);yield n.updateLocalUsermediaStream(r),n.localCallFeed.setAudioVideoMuted(null,e),_o(n.localCallFeed.stream.getVideoTracks(),!e)}catch{return Y.log("GroupCall ".concat(n.groupCallId," setLocalVideoMuted() no device or permission to receive local stream, muted=").concat(e)),!1}}else Y.log("GroupCall ".concat(n.groupCallId," setLocalVideoMuted() no stream muted (muted=").concat(e,")")),n.initWithVideoMuted=e;var o=[];return n.forEachCall(i=>o.push(i.setLocalVideoMuted(e))),yield Promise.all(o),n.forEachCall(i=>_o(i.localUsermediaFeed.stream.getVideoTracks(),!e&&n.callExpected(i))),n.emit(vr.LocalMuteStateChanged,n.isMicrophoneMuted(),e),!0})()}setScreensharingEnabled(e){var n=arguments,r=this;return Z(function*(){var o=n.length>1&&n[1]!==void 0?n[1]:{};if(e===r.isScreensharing())return e;if(e)try{Y.log("GroupCall ".concat(r.groupCallId," setScreensharingEnabled() is asking for screensharing permissions"));var i=yield r.client.getMediaHandler().getScreensharingStream(o),s=function*(l){var c=()=>{r.setScreensharingEnabled(!1),l.removeEventListener("ended",c)};l.addEventListener("ended",c)};for(var u of i.getTracks())yield*s(u);return Y.log("GroupCall ".concat(r.groupCallId," setScreensharingEnabled() granted screensharing permissions. Setting screensharing enabled on all calls")),r.localDesktopCapturerSourceId=o.desktopCapturerSourceId,r.localScreenshareFeed=new Pl({client:r.client,roomId:r.room.roomId,userId:r.client.getUserId(),deviceId:r.client.getDeviceId(),stream:i,purpose:_r.Screenshare,audioMuted:!1,videoMuted:!1}),r.addScreenshareFeed(r.localScreenshareFeed),r.emit(vr.LocalScreenshareStateChanged,!0,r.localScreenshareFeed,r.localDesktopCapturerSourceId),r.forEachCall(l=>l.pushLocalFeed(r.localScreenshareFeed.clone())),!0}catch(l){if(o.throwOnFail)throw l;return Y.error("GroupCall ".concat(r.groupCallId," setScreensharingEnabled() enabling screensharing error"),l),r.emit(vr.Error,new H9(Qp.NoUserMedia,"Failed to get screen-sharing stream: ",l)),!1}else return r.forEachCall(l=>{l.localScreensharingFeed&&l.removeLocalFeed(l.localScreensharingFeed)}),r.client.getMediaHandler().stopScreensharingStream(r.localScreenshareFeed.stream),r.removeScreenshareFeed(r.localScreenshareFeed),r.localScreenshareFeed=void 0,r.localDesktopCapturerSourceId=void 0,r.emit(vr.LocalScreenshareStateChanged,!1,void 0,void 0),!1})()}isScreensharing(){return!!this.localScreenshareFeed}wantsOutgoingCall(e,n){var r=this.client.getUserId(),o=this.client.getDeviceId();return e>=r&&(e!==r||n>o)}placeOutgoingCalls(){var e=this,n=!1,r=function(s){var u,l=(u=e.calls.get(s))!==null&&u!==void 0?u:new Map,c=function(h){var m=l.get(h);if((m==null?void 0:m.getOpponentSessionId())!==F.sessionId&&e.wantsOutgoingCall(s,h)){n=!0,m!==void 0&&(Y.debug("GroupCall ".concat(e.groupCallId," placeOutgoingCalls() replacing call (userId=").concat(s,", deviceId=").concat(h,", callId=").concat(m.callId,")")),m.hangup(sn.NewSession,!1));var D=ef(e.client,e.room.roomId,{invitee:s,opponentDeviceId:h,opponentSessionId:F.sessionId,groupCallId:e.groupCallId});D===null?(Y.error("GroupCall ".concat(e.groupCallId," placeOutgoingCalls() failed to create call (userId=").concat(s,", device=").concat(h,")")),l.delete(h)):(e.initCall(D),l.set(h,D),Y.debug("GroupCall ".concat(e.groupCallId," placeOutgoingCalls() placing call (userId=").concat(s,", deviceId=").concat(h,", sessionId=").concat(F.sessionId,")")),D.placeCallWithCallFeeds(e.getLocalFeeds().map(g=>g.clone()),F.screensharing).then(()=>{e.dataChannelsEnabled&&D.createDataChannel("datachannel",e.dataChannelOptions)}).catch(g=>{Y.warn("GroupCall ".concat(e.groupCallId," placeOutgoingCalls() failed to place call (userId=").concat(s,")"),g),g instanceof Nl&&g.code===Qp.UnknownDevice?e.emit(vr.Error,g):e.emit(vr.Error,new H9(Qp.PlaceCallFailed,"Failed to place call to ".concat(s))),D.hangup(sn.SignallingFailed,!1),l.get(h)===D&&l.delete(h)}))}};for(var[d,F]of i)c(d);l.size>0?e.calls.set(s,l):e.calls.delete(s)};for(var[{userId:o},i]of this.participants)r(o);n&&this.emit(vr.CallsChanged,this.calls)}getMemberStateEvents(e){return e===void 0?this.room.currentState.getStateEvents(Ce.GroupCallMemberPrefix):this.room.currentState.getStateEvents(Ce.GroupCallMemberPrefix,e)}initCall(e){var n=Ib(e);if(!n)throw new Error("Cannot init call without user id");var r=()=>this.onCallFeedsChanged(e),o=(l,c)=>this.onCallStateChanged(e,l,c),i=this.onCallHangup,s=l=>this.onCallReplaced(e,l),u=this.callHandlers.get(n);u===void 0&&(u=new Map,this.callHandlers.set(n,u)),u.set(e.getOpponentDeviceId(),{onCallFeedsChanged:r,onCallStateChanged:o,onCallHangup:i,onCallReplaced:s}),e.on(Dn.FeedsChanged,r),e.on(Dn.State,o),e.on(Dn.Hangup,i),e.on(Dn.Replaced,s),e.isPtt=this.isPtt,this.reEmitter.reEmit(e,Object.values(Dn)),e.initStats(this.getGroupCallStats()),r()}disposeCall(e,n){var r=Ib(e),o=e.getOpponentDeviceId();if(!r)throw new Error("Cannot dispose call without user id");var i=this.callHandlers.get(r),{onCallFeedsChanged:s,onCallStateChanged:u,onCallHangup:l,onCallReplaced:c}=i.get(o);if(e.removeListener(Dn.FeedsChanged,s),e.removeListener(Dn.State,u),e.removeListener(Dn.Hangup,l),e.removeListener(Dn.Replaced,c),i.delete(r),i.size===0&&this.callHandlers.delete(r),e.hangupReason!==sn.Replaced){var d=this.getUserMediaFeed(r,o);d&&this.removeUserMediaFeed(d);var F=this.getScreenshareFeed(r,o);F&&this.removeScreenshareFeed(F)}}getUserMediaFeed(e,n){return this.userMediaFeeds.find(r=>r.userId===e&&r.deviceId===n)}addUserMediaFeed(e){this.userMediaFeeds.push(e),e.measureVolumeActivity(!0),this.emit(vr.UserMediaFeedsChanged,this.userMediaFeeds)}replaceUserMediaFeed(e,n){var r=this.userMediaFeeds.findIndex(o=>o.userId===e.userId&&o.deviceId===e.deviceId);if(r===-1)throw new Error("Couldn't find user media feed to replace");this.userMediaFeeds.splice(r,1,n),e.dispose(),n.measureVolumeActivity(!0),this.emit(vr.UserMediaFeedsChanged,this.userMediaFeeds)}removeUserMediaFeed(e){var n=this.userMediaFeeds.findIndex(r=>r.userId===e.userId&&r.deviceId===e.deviceId);if(n===-1)throw new Error("Couldn't find user media feed to remove");this.userMediaFeeds.splice(n,1),e.dispose(),this.emit(vr.UserMediaFeedsChanged,this.userMediaFeeds),this.activeSpeaker===e&&(this.activeSpeaker=this.userMediaFeeds[0],this.emit(vr.ActiveSpeakerChanged,this.activeSpeaker))}getScreenshareFeed(e,n){return this.screenshareFeeds.find(r=>r.userId===e&&r.deviceId===n)}addScreenshareFeed(e){this.screenshareFeeds.push(e),this.emit(vr.ScreenshareFeedsChanged,this.screenshareFeeds)}replaceScreenshareFeed(e,n){var r=this.screenshareFeeds.findIndex(o=>o.userId===e.userId&&o.deviceId===e.deviceId);if(r===-1)throw new Error("Couldn't find screenshare feed to replace");this.screenshareFeeds.splice(r,1,n),e.dispose(),this.emit(vr.ScreenshareFeedsChanged,this.screenshareFeeds)}removeScreenshareFeed(e){var n=this.screenshareFeeds.findIndex(r=>r.userId===e.userId&&r.deviceId===e.deviceId);if(n===-1)throw new Error("Couldn't find screenshare feed to remove");this.screenshareFeeds.splice(n,1),e.dispose(),this.emit(vr.ScreenshareFeedsChanged,this.screenshareFeeds)}updateParticipants(){var e=this.room.getMember(this.client.getSafeUserId());if(!e){Y.warn("GroupCall ".concat(this.groupCallId," updateParticipants() tried to update participants before local room member is available"));return}if(this.participantsExpirationTimer!==null&&(clearTimeout(this.participantsExpirationTimer),this.participantsExpirationTimer=null),this.state===$r.Ended){this.participants=new Map;return}var n=new Map,r=Date.now(),o=this.state===$r.Entered||this.enteredViaAnotherSession,i=1/0;for(var s of this.getMemberStateEvents()){var u=this.room.getMember(s.getStateKey()),l=s.getContent(),c=Array.isArray(l["m.calls"])?l["m.calls"]:[],d=c.find(p=>p["m.call_id"]===this.groupCallId),F=Array.isArray(d==null?void 0:d["m.devices"])?d["m.devices"]:[],h=F.filter(p=>typeof p.device_id=="string"&&typeof p.session_id=="string"&&typeof p.expires_ts=="number"&&p.expires_ts>r&&Array.isArray(p.feeds));if(!o&&(u==null?void 0:u.userId)===this.client.getUserId()&&(h=h.filter(p=>p.device_id!==this.client.getDeviceId())),h.length>0&&(u==null?void 0:u.membership)===an.Join){var m=new Map;n.set(u,m);for(var D of h)m.set(D.device_id,{sessionId:D.session_id,screensharing:D.feeds.some(p=>p.purpose===_r.Screenshare)}),D.expires_ts<i&&(i=D.expires_ts)}}if(o){var g=n.get(e);g===void 0&&(g=new Map,n.set(e,g)),g.has(this.client.getDeviceId())||g.set(this.client.getDeviceId(),{sessionId:this.client.getSessionId(),screensharing:this.getLocalFeeds().some(p=>p.purpose===_r.Screenshare)})}this.participants=n,i<1/0&&(this.participantsExpirationTimer=setTimeout(()=>this.updateParticipants(),i-r))}updateDevices(e){var n=arguments,r=this;return Z(function*(){var o,i=n.length>1&&n[1]!==void 0?n[1]:!1,s=Date.now(),u=r.client.getUserId(),l=r.getMemberStateEvents(u),c=(o=l==null?void 0:l.getContent())!==null&&o!==void 0?o:{},d=Array.isArray(c["m.calls"])?c["m.calls"]:[],F=null,h=[];for(var m of d)m["m.call_id"]===r.groupCallId?F=m:h.push(m);F===null&&(F={});var D=Array.isArray(F["m.devices"])?F["m.devices"]:[],g=D.filter(E=>typeof E.device_id=="string"&&typeof E.session_id=="string"&&typeof E.expires_ts=="number"&&E.expires_ts>s&&Array.isArray(E.feeds)),p=e(g);if(p!==null){var _=[...h];p.length>0&&_.push(Ab(Ab({},F),{},{"m.call_id":r.groupCallId,"m.devices":p}));var v={"m.calls":_};yield r.client.sendStateEvent(r.room.roomId,Ce.GroupCallMemberPrefix,v,u,{keepAlive:i})}})()}addDeviceToMemberState(){var e=this;return Z(function*(){yield e.updateDevices(n=>[...n.filter(r=>r.device_id!==e.client.getDeviceId()),{device_id:e.client.getDeviceId(),session_id:e.client.getSessionId(),expires_ts:Date.now()+hV,feeds:e.getLocalFeeds().map(r=>({purpose:r.purpose}))}])})()}updateMemberState(){var e=this;return Z(function*(){e.resendMemberStateTimer!==null&&(clearInterval(e.resendMemberStateTimer),e.resendMemberStateTimer=null),e.state===$r.Entered?(yield e.addDeviceToMemberState(),e.resendMemberStateTimer=setInterval(Z(function*(){Y.log("GroupCall ".concat(e.groupCallId,' updateMemberState() resending call member state"'));try{yield e.addDeviceToMemberState()}catch(n){Y.error("GroupCall ".concat(e.groupCallId," updateMemberState() failed to resend call member state"),n)}}),hV*3/4)):yield e.updateDevices(n=>n.filter(r=>r.device_id!==e.client.getDeviceId()),!0)})()}cleanMemberState(){var e=this;return Z(function*(){var{devices:n}=yield e.client.getDevices(),r=new Map(n.map(o=>[o.device_id,o]));yield e.updateDevices(o=>{var i=o.filter(s=>{var u=r.get(s.device_id);return(u==null?void 0:u.last_seen_ts)!==void 0&&!(s.device_id===e.client.getDeviceId()&&e.state!==$r.Entered&&!e.enteredViaAnotherSession)});return i.length===o.length?null:i})})()}getGroupCallStats(){if(this.stats===void 0){var e=this.client.getUserId()||"unknown";this.stats=new eDe(this.groupCallId,e,this.statsCollectIntervalTime),this.stats.reports.on(Ll.CONNECTION_STATS,this.onConnectionStats),this.stats.reports.on(Ll.BYTE_SENT_STATS,this.onByteSentStats),this.stats.reports.on(Ll.SUMMARY_STATS,this.onSummaryStats),this.stats.reports.on(Ll.CALL_FEED_REPORT,this.onCallFeedReport)}return this.stats}setGroupCallStatsInterval(e){this.statsCollectIntervalTime=e,this.stats!==void 0&&(this.stats.stop(),this.stats.setInterval(e),e>0&&this.stats.start())}}function FV(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Rb(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?FV(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):FV(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Vt=function(t){return t.Fledgling="fledgling",t.InviteSent="invite_sent",t.WaitLocalMedia="wait_local_media",t.CreateOffer="create_offer",t.CreateAnswer="create_answer",t.Connecting="connecting",t.Connected="connected",t.Ringing="ringing",t.Ended="ended",t}({}),mV=function(t){return t.Voice="voice",t.Video="video",t}({}),ud=function(t){return t.Inbound="inbound",t.Outbound="outbound",t}({}),Qr=function(t){return t.Local="local",t.Remote="remote",t}({}),Dn=function(t){return t.Hangup="hangup",t.State="state",t.Error="error",t.Replaced="replaced",t.LocalHoldUnhold="local_hold_unhold",t.RemoteHoldUnhold="remote_hold_unhold",t.HoldUnhold="hold_unhold",t.FeedsChanged="feeds_changed",t.AssertedIdentityChanged="asserted_identity_changed",t.LengthChanged="length_changed",t.DataChannel="datachannel",t.SendVoipEvent="send_voip_event",t.PeerConnectionCreated="peer_connection_created",t}({}),sn=function(t){return t.UserHangup="user_hangup",t.LocalOfferFailed="local_offer_failed",t.NoUserMedia="no_user_media",t.UnknownDevices="unknown_devices",t.SendInvite="send_invite",t.CreateAnswer="create_answer",t.CreateOffer="create_offer",t.SendAnswer="send_answer",t.SetRemoteDescription="set_remote_description",t.SetLocalDescription="set_local_description",t.AnsweredElsewhere="answered_elsewhere",t.IceFailed="ice_failed",t.InviteTimeout="invite_timeout",t.Replaced="replaced",t.SignallingFailed="signalling_timeout",t.UserBusy="user_busy",t.Transferred="transferred",t.NewSession="new_session",t}({}),nDe="1",rDe="stun:turn.matrix.org",W9=60*1e3,oDe=1e3,iDe=30*1e3,aDe=2*1e3;class Nl extends Error{constructor(e,n,r){super(n+": "+r),I(this,"code",void 0),this.code=e}}function ch(){return Date.now().toString()+ul(16)}function DV(t){var e=[{mediaType:"audio",codec:"opus",enableDtx:!0,maxAverageBitrate:t?12e3:void 0}];return e}function js(t,e){return t+":"+e}class sDe extends Cr{constructor(e){var n,r;if(super(),n=this,I(this,"roomId",void 0),I(this,"callId",void 0),I(this,"invitee",void 0),I(this,"hangupParty",void 0),I(this,"hangupReason",void 0),I(this,"direction",void 0),I(this,"ourPartyId",void 0),I(this,"peerConn",void 0),I(this,"toDeviceSeq",0),I(this,"isPtt",!1),I(this,"_state",Vt.Fledgling),I(this,"client",void 0),I(this,"forceTURN",void 0),I(this,"turnServers",void 0),I(this,"candidateSendQueue",[]),I(this,"candidateSendTries",0),I(this,"candidatesEnded",!1),I(this,"feeds",[]),I(this,"transceivers",new Map),I(this,"inviteOrAnswerSent",!1),I(this,"waitForLocalAVStream",!1),I(this,"successor",void 0),I(this,"opponentMember",void 0),I(this,"opponentVersion",void 0),I(this,"opponentPartyId",void 0),I(this,"opponentCaps",void 0),I(this,"iceDisconnectedTimeout",void 0),I(this,"iceReconnectionTimeOut",void 0),I(this,"inviteTimeout",void 0),I(this,"removeTrackListeners",new Map),I(this,"remoteOnHold",!1),I(this,"callStatsAtEnd",void 0),I(this,"makingOffer",!1),I(this,"ignoreOffer",!1),I(this,"isSettingRemoteAnswerPending",!1),I(this,"responsePromiseChain",void 0),I(this,"remoteCandidateBuffer",new Map),I(this,"remoteAssertedIdentity",void 0),I(this,"remoteSDPStreamMetadata",void 0),I(this,"callLengthInterval",void 0),I(this,"callStartTime",void 0),I(this,"opponentDeviceId",void 0),I(this,"hasOpponentDeviceInfo",void 0),I(this,"opponentSessionId",void 0),I(this,"groupCallId",void 0),I(this,"stopVideoTrackTimer",void 0),I(this,"isOnlyDataChannelAllowed",void 0),I(this,"stats",void 0),I(this,"gotLocalIceCandidate",i=>{if(i.candidate){if(this.candidatesEnded&&Y.warn("Call ".concat(this.callId," gotLocalIceCandidate() got candidate after candidates have ended!")),Y.debug("Call ".concat(this.callId," got local ICE ").concat(i.candidate.sdpMid," ").concat(i.candidate.candidate)),this.callHasEnded())return;i.candidate.candidate===""?this.queueCandidate(null):this.queueCandidate(i.candidate)}}),I(this,"onIceGatheringStateChange",i=>{var s;Y.debug("Call ".concat(this.callId," onIceGatheringStateChange() ice gathering state changed to ").concat(this.peerConn.iceGatheringState)),((s=this.peerConn)===null||s===void 0?void 0:s.iceGatheringState)==="complete"&&(this.queueCandidate(null),Y.debug("Call ".concat(this.callId," onIceGatheringStateChange() ice gathering state complete, set candidates have ended")))}),I(this,"getLocalOfferFailed",i=>{Y.error("Call ".concat(this.callId," getLocalOfferFailed() running"),i),this.emit(Dn.Error,new Nl(sn.LocalOfferFailed,"Failed to get local offer!",i),this),this.terminate(Qr.Local,sn.LocalOfferFailed,!1)}),I(this,"getUserMediaFailed",i=>{if(this.successor){this.successor.getUserMediaFailed(i);return}Y.warn("Call ".concat(this.callId," getUserMediaFailed() failed to get user media - ending call"),i),this.emit(Dn.Error,new Nl(sn.NoUserMedia,"Couldn't start capturing media! Is your microphone set up and does this app have permission?",i),this),this.terminate(Qr.Local,sn.NoUserMedia,!1)}),I(this,"placeCallFailed",i=>{if(this.successor){this.successor.placeCallFailed(i);return}Y.warn("Call ".concat(this.callId," placeCallWithCallFeeds() failed - ending call"),i),this.emit(Dn.Error,new Nl(sn.IceFailed,"Couldn't start call! Invalid ICE server configuration.",i),this),this.terminate(Qr.Local,sn.IceFailed,!1)}),I(this,"onIceConnectionStateChanged",()=>{var i,s,u,l,c,d;if(!this.callHasEnded()){if(Y.debug("Call ".concat(this.callId," onIceConnectionStateChanged() running (state=").concat((i=this.peerConn)===null||i===void 0?void 0:i.iceConnectionState,", conn=").concat((s=this.peerConn)===null||s===void 0?void 0:s.connectionState,")")),["connected","completed"].includes((u=(l=this.peerConn)===null||l===void 0?void 0:l.iceConnectionState)!==null&&u!==void 0?u:""))clearTimeout(this.iceDisconnectedTimeout),this.iceDisconnectedTimeout=void 0,this.iceReconnectionTimeOut&&clearTimeout(this.iceReconnectionTimeOut),this.state=Vt.Connected,!this.callLengthInterval&&!this.callStartTime&&(this.callStartTime=Date.now(),this.callLengthInterval=setInterval(()=>{this.emit(Dn.LengthChanged,Math.round((Date.now()-this.callStartTime)/1e3),this)},oDe));else if(((c=this.peerConn)===null||c===void 0?void 0:c.iceConnectionState)=="failed"){var F;if(this.candidatesEnded=!1,(F=this.peerConn)!==null&&F!==void 0&&F.restartIce){var h;this.candidatesEnded=!1,Y.debug("Call ".concat(this.callId," onIceConnectionStateChanged() ice restart (state=").concat((h=this.peerConn)===null||h===void 0?void 0:h.iceConnectionState,")")),this.peerConn.restartIce()}else Y.info("Call ".concat(this.callId," onIceConnectionStateChanged() hanging up call (ICE failed and no ICE restart method)")),this.hangup(sn.IceFailed,!1)}else((d=this.peerConn)===null||d===void 0?void 0:d.iceConnectionState)=="disconnected"&&(this.candidatesEnded=!1,this.iceReconnectionTimeOut=setTimeout(()=>{var D,g,p;Y.info("Call ".concat(this.callId," onIceConnectionStateChanged() ICE restarting because of ICE disconnected, (state=").concat((D=this.peerConn)===null||D===void 0?void 0:D.iceConnectionState,", conn=").concat((g=this.peerConn)===null||g===void 0?void 0:g.connectionState,")")),(p=this.peerConn)!==null&&p!==void 0&&p.restartIce&&(this.candidatesEnded=!1,this.peerConn.restartIce()),this.iceReconnectionTimeOut=void 0},aDe),this.iceDisconnectedTimeout=setTimeout(()=>{Y.info("Call ".concat(this.callId," onIceConnectionStateChanged() hanging up call (ICE disconnected for too long)")),this.hangup(sn.IceFailed,!1)},iDe),this.state=Vt.Connecting);if(this.isPtt&&["failed","disconnected"].includes(this.peerConn.iceConnectionState))for(var m of this.getRemoteFeeds())m.setAudioVideoMuted(!0,!0)}}),I(this,"onSignallingStateChanged",()=>{var i;Y.debug("Call ".concat(this.callId," onSignallingStateChanged() running (state=").concat((i=this.peerConn)===null||i===void 0?void 0:i.signalingState,")"))}),I(this,"onTrack",i=>{if(i.streams.length===0){Y.warn("Call ".concat(this.callId," onTrack() called with streamless track streamless (kind=").concat(i.track.kind,")"));return}var s=i.streams[0];if(this.pushRemoteFeed(s),!this.removeTrackListeners.has(s)){var u=()=>{s.getTracks().length===0&&(Y.info("Call ".concat(this.callId," onTrack() removing track (streamId=").concat(s.id,")")),this.deleteFeedByStream(s),s.removeEventListener("removetrack",u),this.removeTrackListeners.delete(s))};s.addEventListener("removetrack",u),this.removeTrackListeners.set(s,u)}}),I(this,"onDataChannel",i=>{this.emit(Dn.DataChannel,i.channel,this)}),I(this,"onNegotiationNeeded",Z(function*(){if(Y.info("Call ".concat(n.callId," onNegotiationNeeded() negotiation is needed!")),n.state!==Vt.CreateOffer&&n.opponentVersion===0){Y.info("Call ".concat(n.callId," onNegotiationNeeded() opponent does not support renegotiation: ignoring negotiationneeded event"));return}n.queueGotLocalOffer()})),I(this,"onHangupReceived",i=>{Y.debug("Call ".concat(this.callId," onHangupReceived() running")),this.partyIdMatches(i)||this.state===Vt.Ringing?this.terminate(Qr.Remote,i.reason||sn.UserHangup,!0):Y.info("Call ".concat(this.callId," onHangupReceived() ignoring message from party ID ").concat(i.party_id,": our partner is ").concat(this.opponentPartyId))}),I(this,"onRejectReceived",i=>{Y.debug("Call ".concat(this.callId," onRejectReceived() running"));var s=[Vt.InviteSent,Vt.Ringing].includes(this.state)||this.state===Vt.Fledgling&&this.direction===ud.Inbound;s?this.terminate(Qr.Remote,i.reason||sn.UserHangup,!0):Y.debug("Call ".concat(this.callId," onRejectReceived() called in wrong state (state=").concat(this.state,")"))}),I(this,"onAnsweredElsewhere",i=>{Y.debug("Call ".concat(this.callId," onAnsweredElsewhere() running")),this.terminate(Qr.Remote,sn.AnsweredElsewhere,!0)}),this.roomId=e.roomId,this.invitee=e.invitee,this.client=e.client,!this.client.deviceId)throw new Error("Client must have a device ID to start calls");this.forceTURN=(r=e.forceTURN)!==null&&r!==void 0?r:!1,this.ourPartyId=this.client.deviceId,this.opponentDeviceId=e.opponentDeviceId,this.opponentSessionId=e.opponentSessionId,this.groupCallId=e.groupCallId,this.turnServers=e.turnServers||[],this.turnServers.length===0&&this.client.isFallbackICEServerAllowed()&&this.turnServers.push({urls:[rDe]});for(var o of this.turnServers)JN(o,["urls"]);this.callId=ch(),this.isOnlyDataChannelAllowed=this.client.isVoipWithNoMediaAllowed}placeVoiceCall(){var e=this;return Z(function*(){yield e.placeCall(!0,!1)})()}placeVideoCall(){var e=this;return Z(function*(){yield e.placeCall(!0,!0)})()}createDataChannel(e,n){var r=this.peerConn.createDataChannel(e,n);return this.emit(Dn.DataChannel,r,this),r}getOpponentMember(){return this.opponentMember}getOpponentDeviceId(){return this.opponentDeviceId}getOpponentSessionId(){return this.opponentSessionId}opponentCanBeTransferred(){return!!(this.opponentCaps&&this.opponentCaps["m.call.transferee"])}opponentSupportsDTMF(){return!!(this.opponentCaps&&this.opponentCaps["m.call.dtmf"])}getRemoteAssertedIdentity(){return this.remoteAssertedIdentity}get state(){return this._state}set state(e){var n=this._state;this._state=e,this.emit(Dn.State,e,n,this)}get type(){return this.hasUserMediaVideoSender||this.hasRemoteUserMediaVideoTrack?mV.Video:mV.Voice}get hasLocalUserMediaVideoTrack(){var e;return!!((e=this.localUsermediaStream)!==null&&e!==void 0&&e.getVideoTracks().length)}get hasRemoteUserMediaVideoTrack(){return this.getRemoteFeeds().some(e=>{var n;return e.purpose===_r.Usermedia&&((n=e.stream)===null||n===void 0?void 0:n.getVideoTracks().length)})}get hasLocalUserMediaAudioTrack(){var e;return!!((e=this.localUsermediaStream)!==null&&e!==void 0&&e.getAudioTracks().length)}get hasRemoteUserMediaAudioTrack(){return this.getRemoteFeeds().some(e=>{var n;return e.purpose===_r.Usermedia&&!!((n=e.stream)!==null&&n!==void 0&&n.getAudioTracks().length)})}get hasUserMediaAudioSender(){var e;return!!(!((e=this.transceivers.get(js(_r.Usermedia,"audio")))===null||e===void 0)&&e.sender)}get hasUserMediaVideoSender(){var e;return!!(!((e=this.transceivers.get(js(_r.Usermedia,"video")))===null||e===void 0)&&e.sender)}get localUsermediaFeed(){return this.getLocalFeeds().find(e=>e.purpose===_r.Usermedia)}get localScreensharingFeed(){return this.getLocalFeeds().find(e=>e.purpose===_r.Screenshare)}get localUsermediaStream(){var e;return(e=this.localUsermediaFeed)===null||e===void 0?void 0:e.stream}get localScreensharingStream(){var e;return(e=this.localScreensharingFeed)===null||e===void 0?void 0:e.stream}get remoteUsermediaFeed(){return this.getRemoteFeeds().find(e=>e.purpose===_r.Usermedia)}get remoteScreensharingFeed(){return this.getRemoteFeeds().find(e=>e.purpose===_r.Screenshare)}get remoteUsermediaStream(){var e;return(e=this.remoteUsermediaFeed)===null||e===void 0?void 0:e.stream}get remoteScreensharingStream(){var e;return(e=this.remoteScreensharingFeed)===null||e===void 0?void 0:e.stream}getFeedByStreamId(e){return this.getFeeds().find(n=>n.stream.id===e)}getFeeds(){return this.feeds}getLocalFeeds(){return this.feeds.filter(e=>e.isLocal())}getRemoteFeeds(){return this.feeds.filter(e=>!e.isLocal())}initOpponentCrypto(){var e=this;return Z(function*(){var n;if(e.opponentDeviceId&&e.client.getUseE2eForGroupCall()){if(!e.client.getCrypto()){e.hasOpponentDeviceInfo=!0;return}var r=e.invitee||((n=e.getOpponentMember())===null||n===void 0?void 0:n.userId);throw r?(e.hasOpponentDeviceInfo=!1,new dV(r)):new Error("Couldn't find opponent user ID to init crypto")}})()}getLocalSDPStreamMetadata(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n={};for(var r of this.getLocalFeeds())e&&(r.sdpMetadataStreamId=r.stream.id),n[r.sdpMetadataStreamId]={purpose:r.purpose,audio_muted:r.isAudioMuted(),video_muted:r.isVideoMuted()};return n}noIncomingFeeds(){return!this.feeds.some(e=>!e.isLocal())}pushRemoteFeed(e){if(!this.opponentSupportsSDPStreamMetadata()){this.pushRemoteFeedWithoutMetadata(e);return}var n=this.getOpponentMember().userId,r=this.remoteSDPStreamMetadata[e.id].purpose,o=this.remoteSDPStreamMetadata[e.id].audio_muted,i=this.remoteSDPStreamMetadata[e.id].video_muted;if(!r){Y.warn("Call ".concat(this.callId," pushRemoteFeed() ignoring stream because we didn't get any metadata about it (streamId=").concat(e.id,")"));return}if(this.getFeedByStreamId(e.id)){Y.warn("Call ".concat(this.callId," pushRemoteFeed() ignoring stream because we already have a feed for it (streamId=").concat(e.id,")"));return}this.feeds.push(new Pl({client:this.client,call:this,roomId:this.roomId,userId:n,deviceId:this.getOpponentDeviceId(),stream:e,purpose:r,audioMuted:o,videoMuted:i})),this.emit(Dn.FeedsChanged,this.feeds,this),Y.info("Call ".concat(this.callId," pushRemoteFeed() pushed stream (streamId=").concat(e.id,", active=").concat(e.active,", purpose=").concat(r,")"))}pushRemoteFeedWithoutMetadata(e){var n,r=this.getOpponentMember().userId,o=_r.Usermedia,i=(n=this.feeds.find(s=>!s.isLocal()))===null||n===void 0?void 0:n.stream;if(i&&e.id!==i.id){Y.warn("Call ".concat(this.callId," pushRemoteFeedWithoutMetadata() ignoring new stream because we already have stream (streamId=").concat(e.id,")"));return}if(this.getFeedByStreamId(e.id)){Y.warn("Call ".concat(this.callId," pushRemoteFeedWithoutMetadata() ignoring stream because we already have a feed for it (streamId=").concat(e.id,")"));return}this.feeds.push(new Pl({client:this.client,call:this,roomId:this.roomId,audioMuted:!1,videoMuted:!1,userId:r,deviceId:this.getOpponentDeviceId(),stream:e,purpose:o})),this.emit(Dn.FeedsChanged,this.feeds,this),Y.info("Call ".concat(this.callId," pushRemoteFeedWithoutMetadata() pushed stream (streamId=").concat(e.id,", active=").concat(e.active,")"))}pushNewLocalFeed(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=this.client.getUserId();if(_o(e.getAudioTracks(),!0),_o(e.getVideoTracks(),!0),this.getFeedByStreamId(e.id)){Y.warn("Call ".concat(this.callId," pushNewLocalFeed() ignoring stream because we already have a feed for it (streamId=").concat(e.id,")"));return}this.pushLocalFeed(new Pl({client:this.client,roomId:this.roomId,audioMuted:!1,videoMuted:!1,userId:o,deviceId:this.getOpponentDeviceId(),stream:e,purpose:n}),r)}pushLocalFeed(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(this.feeds.some(s=>e.stream.id===s.stream.id)){Y.info("Call ".concat(this.callId," pushLocalFeed() ignoring duplicate local stream (streamId=").concat(e.stream.id,")"));return}if(this.feeds.push(e),r){var o=function(){Y.info("Call ".concat(n.callId," pushLocalFeed() adding track to peer connection (id=").concat(i.id,", kind=").concat(i.kind,", streamId=").concat(e.stream.id,", streamPurpose=").concat(e.purpose,", enabled=").concat(i.enabled,")"));var s=js(e.purpose,i.kind);if(n.transceivers.has(s)){var u=n.transceivers.get(s);u.sender.replaceTrack(i),u.direction=u.direction==="inactive"?"sendonly":"sendrecv"}else{var l=n.peerConn.addTrack(i,e.stream),c=n.peerConn.getTransceivers().find(d=>d.sender===l);c?n.transceivers.set(s,c):Y.warn("Call ".concat(n.callId," pushLocalFeed() didn't find a matching transceiver after adding track!"))}};for(var i of e.stream.getTracks())o()}Y.info("Call ".concat(this.callId," pushLocalFeed() pushed stream (id=").concat(e.stream.id,", active=").concat(e.stream.active,", purpose=").concat(e.purpose,")")),this.emit(Dn.FeedsChanged,this.feeds,this)}removeLocalFeed(e){var n=js(e.purpose,"audio"),r=js(e.purpose,"video");for(var o of[n,r])if(this.transceivers.has(o)){var i=this.transceivers.get(o);i.sender&&this.peerConn.removeTrack(i.sender)}e.purpose===_r.Screenshare&&this.client.getMediaHandler().stopScreensharingStream(e.stream),this.deleteFeed(e)}deleteAllFeeds(){for(var e of this.feeds)(!e.isLocal()||!this.groupCallId)&&e.dispose();this.feeds=[],this.emit(Dn.FeedsChanged,this.feeds,this)}deleteFeedByStream(e){var n=this.getFeedByStreamId(e.id);if(!n){Y.warn("Call ".concat(this.callId," deleteFeedByStream() didn't find the feed to delete (streamId=").concat(e.id,")"));return}this.deleteFeed(n)}deleteFeed(e){e.dispose(),this.feeds.splice(this.feeds.indexOf(e),1),this.emit(Dn.FeedsChanged,this.feeds,this)}getCurrentCallStats(){var e=this;return Z(function*(){return e.callHasEnded()?e.callStatsAtEnd:e.collectCallStats()})()}collectCallStats(){var e=this;return Z(function*(){if(e.peerConn){var n=yield e.peerConn.getStats(),r=[];return n.forEach(o=>{r.push(o)}),r}})()}initWithInvite(e){var n=this;return Z(function*(){var r,o=e.getContent();n.direction=ud.Inbound;var i=yield n.client.checkTurnServers();i||Y.warn("Call ".concat(n.callId," initWithInvite() failed to get TURN credentials! Proceeding with call anyway..."));var s=o[ad];s?n.updateRemoteSDPStreamMetadata(s):Y.debug("Call ".concat(n.callId," initWithInvite() did not get any SDPStreamMetadata! Can not send/receive multiple streams")),n.peerConn=n.createPeerConnection(),n.emit(Dn.PeerConnectionCreated,n.peerConn,n),n.chooseOpponent(e),yield n.initOpponentCrypto();try{yield n.peerConn.setRemoteDescription(o.offer),Y.debug("Call ".concat(n.callId," initWithInvite() set remote description: ").concat(o.offer.type)),yield n.addBufferedIceCandidates()}catch(d){Y.debug("Call ".concat(n.callId," initWithInvite() failed to set remote description"),d),n.terminate(Qr.Local,sn.SetRemoteDescription,!1);return}var u=(r=n.feeds.find(d=>!d.isLocal()))===null||r===void 0?void 0:r.stream;if(!n.isOnlyDataChannelAllowed&&(!u||u.getTracks().length===0)){Y.error("Call ".concat(n.callId," initWithInvite() no remote stream or no tracks after setting remote description!")),n.terminate(Qr.Local,sn.SetRemoteDescription,!1);return}if(n.state=Vt.Ringing,e.getLocalAge()){var l=setTimeout(()=>{if(n.state==Vt.Ringing){var d;Y.debug("Call ".concat(n.callId," initWithInvite() invite has expired. Hanging up.")),n.hangupParty=Qr.Remote,n.state=Vt.Ended,n.stopAllMedia(),n.peerConn.signalingState!="closed"&&n.peerConn.close(),(d=n.stats)===null||d===void 0||d.removeStatsReportGatherer(n.callId),n.emit(Dn.Hangup,n)}},o.lifetime-e.getLocalAge()),c=d=>{d!==Vt.Ringing&&(clearTimeout(l),n.off(Dn.State,c))};n.on(Dn.State,c)}})()}initWithHangup(e){this.state=Vt.Ended}shouldAnswerWithMediaType(e,n,r){return e&&!n?(Y.warn("Call ".concat(this.callId," shouldAnswerWithMediaType() unable to answer with ").concat(r," because the other side isn't sending it either.")),!1):!tz(e)&&e!==n&&!this.opponentSupportsSDPStreamMetadata()?(Y.warn("Call ".concat(this.callId," shouldAnswerWithMediaType() unable to answer with ").concat(r,"=").concat(e," because the other side doesn't support it. Answering with ").concat(r,"=").concat(n,".")),n):e??n}answer(e,n){var r=this;return Z(function*(){if(!r.inviteOrAnswerSent){if(e===!1&&n===!1)throw new Error("You CANNOT answer a call without media");if(!r.localUsermediaStream&&!r.waitForLocalAVStream){var o=r.state,i=r.shouldAnswerWithMediaType(e,r.hasRemoteUserMediaAudioTrack,"audio"),s=r.shouldAnswerWithMediaType(n,r.hasRemoteUserMediaVideoTrack,"video");r.state=Vt.WaitLocalMedia,r.waitForLocalAVStream=!0;try{var u,l=yield r.client.getMediaHandler().getUserMediaStream(i,s);r.waitForLocalAVStream=!1;var c=new Pl({client:r.client,roomId:r.roomId,userId:r.client.getUserId(),deviceId:(u=r.client.getDeviceId())!==null&&u!==void 0?u:void 0,stream:l,purpose:_r.Usermedia,audioMuted:!1,videoMuted:!1}),d=[c];r.localScreensharingFeed&&d.push(r.localScreensharingFeed),r.answerWithCallFeeds(d)}catch(F){if(s)Y.warn("Call ".concat(r.callId," answer() failed to getUserMedia(), trying to getUserMedia() without video")),r.state=o,r.waitForLocalAVStream=!1,yield r.answer(i,!1);else{r.getUserMediaFailed(F);return}}}else r.waitForLocalAVStream&&(r.state=Vt.WaitLocalMedia)}})()}answerWithCallFeeds(e){this.inviteOrAnswerSent||this.queueGotCallFeedsForAnswer(e)}replacedBy(e){Y.debug("Call ".concat(this.callId," replacedBy() running (newCallId=").concat(e.callId,")")),this.state===Vt.WaitLocalMedia?(Y.debug("Call ".concat(this.callId," replacedBy() telling new call to wait for local media (newCallId=").concat(e.callId,")")),e.waitForLocalAVStream=!0):[Vt.CreateOffer,Vt.InviteSent].includes(this.state)&&(e.direction===ud.Outbound?e.queueGotCallFeedsForAnswer([]):(Y.debug("Call ".concat(this.callId," replacedBy() handing local stream to new call(newCallId=").concat(e.callId,")")),e.queueGotCallFeedsForAnswer(this.getLocalFeeds().map(n=>n.clone())))),this.successor=e,this.emit(Dn.Replaced,e,this),this.hangup(sn.Replaced,!0)}hangup(e,n){if(!this.callHasEnded()&&(Y.debug("Call ".concat(this.callId," hangup() ending call (reason=").concat(e,")")),this.terminate(Qr.Local,e,!n),![Vt.Fledgling,Vt.WaitLocalMedia].includes(this.state))){var r={};(this.opponentVersion&&this.opponentVersion!==0||e!==sn.UserHangup)&&(r.reason=e),this.sendVoipEvent(Ce.CallHangup,r)}}reject(){if(this.state!==Vt.Ringing)throw Error("Call must be in 'ringing' state to reject!");if(this.opponentVersion===0){Y.info("Call ".concat(this.callId," reject() opponent version is less than 1: sending hangup instead of reject (opponentVersion=").concat(this.opponentVersion,")")),this.hangup(sn.UserHangup,!0);return}Y.debug("Rejecting call: "+this.callId),this.terminate(Qr.Local,sn.UserHangup,!0),this.sendVoipEvent(Ce.CallReject,{})}upgradeCall(e,n){var r=this;return Z(function*(){if(!(!e&&!n)&&r.opponentSupportsSDPStreamMetadata())try{Y.debug("Call ".concat(r.callId," upgradeCall() upgrading call (audio=").concat(e,", video=").concat(n,")"));var o=e||r.hasLocalUserMediaAudioTrack,i=n||r.hasLocalUserMediaVideoTrack,s=yield r.client.getMediaHandler().getUserMediaStream(o,i,!1);yield r.updateLocalUsermediaStream(s,e,n)}catch(u){Y.error("Call ".concat(r.callId," upgradeCall() failed to upgrade the call"),u),r.emit(Dn.Error,new Nl(sn.NoUserMedia,"Failed to get camera access: ",u),r)}})()}opponentSupportsSDPStreamMetadata(){return!!this.remoteSDPStreamMetadata}isScreensharing(){return!!this.localScreensharingStream}setScreensharingEnabled(e,n){var r=this;return Z(function*(){if(e&&r.isScreensharing())return Y.warn("Call ".concat(r.callId," setScreensharingEnabled() there is already a screensharing stream - there is nothing to do!")),!0;if(!e&&!r.isScreensharing())return Y.warn("Call ".concat(r.callId," setScreensharingEnabled() there already isn't a screensharing stream - there is nothing to do!")),!1;if(!r.opponentSupportsSDPStreamMetadata())return r.setScreensharingEnabledWithoutMetadataSupport(e,n);if(Y.debug("Call ".concat(r.callId," setScreensharingEnabled() running (enabled=").concat(e,")")),e)try{var o=yield r.client.getMediaHandler().getScreensharingStream(n);return o?(r.pushNewLocalFeed(o,_r.Screenshare),!0):!1}catch(l){return Y.error("Call ".concat(r.callId," setScreensharingEnabled() failed to get screen-sharing stream:"),l),!1}else{var i=r.transceivers.get(js(_r.Screenshare,"audio")),s=r.transceivers.get(js(_r.Screenshare,"video"));for(var u of[i,s])u&&u.sender&&r.peerConn.removeTrack(u.sender);return r.client.getMediaHandler().stopScreensharingStream(r.localScreensharingStream),r.deleteFeedByStream(r.localScreensharingStream),!1}})()}setScreensharingEnabledWithoutMetadataSupport(e,n){var r=this;return Z(function*(){if(Y.debug("Call ".concat(r.callId," setScreensharingEnabledWithoutMetadataSupport() running (enabled=").concat(e,")")),e)try{var o,i=yield r.client.getMediaHandler().getScreensharingStream(n);if(!i)return!1;var s=i.getTracks().find(h=>h.kind==="video"),u=(o=r.transceivers.get(js(_r.Usermedia,"video")))===null||o===void 0?void 0:o.sender;return u==null||u.replaceTrack(s??null),r.pushNewLocalFeed(i,_r.Screenshare,!1),!0}catch(h){return Y.error("Call ".concat(r.callId," setScreensharingEnabledWithoutMetadataSupport() failed to get screen-sharing stream:"),h),!1}else{var l,c,d=(l=r.localUsermediaStream)===null||l===void 0?void 0:l.getTracks().find(h=>h.kind==="video"),F=(c=r.transceivers.get(js(_r.Usermedia,"video")))===null||c===void 0?void 0:c.sender;return F==null||F.replaceTrack(d??null),r.client.getMediaHandler().stopScreensharingStream(r.localScreensharingStream),r.deleteFeedByStream(r.localScreensharingStream),!1}})()}updateLocalUsermediaStream(e){var n=arguments,r=this;return Z(function*(){var o=n.length>1&&n[1]!==void 0?n[1]:!1,i=n.length>2&&n[2]!==void 0?n[2]:!1,s=r.localUsermediaFeed,u=o||!s.isAudioMuted()&&!r.remoteOnHold,l=i||!s.isVideoMuted()&&!r.remoteOnHold;Y.log("Call ".concat(r.callId," updateLocalUsermediaStream() running (streamId=").concat(e.id,", audio=").concat(u,", video=").concat(l,")")),_o(e.getAudioTracks(),u),_o(e.getVideoTracks(),l);for(var c of r.localUsermediaStream.getTracks())r.localUsermediaStream.removeTrack(c),c.stop();for(var d of e.getTracks())r.localUsermediaStream.addTrack(d);var F=function*(){var m=js(_r.Usermedia,h.kind),D=r.transceivers.get(m),g=D==null?void 0:D.sender,p=!1;if(g)try{Y.info("Call ".concat(r.callId," updateLocalUsermediaStream() replacing track (id=").concat(h.id,", kind=").concat(h.kind,", streamId=").concat(e.id,", streamPurpose=").concat(s.purpose,")")),yield g.replaceTrack(h),D.direction=D.direction==="inactive"?"sendonly":"sendrecv",p=!0}catch(E){Y.warn("Call ".concat(r.callId," updateLocalUsermediaStream() replaceTrack failed: adding new transceiver instead"),E)}if(!p){Y.info("Call ".concat(r.callId," updateLocalUsermediaStream() adding track to peer connection (id=").concat(h.id,", kind=").concat(h.kind,", streamId=").concat(e.id,", streamPurpose=").concat(s.purpose,")"));var _=r.peerConn.addTrack(h,r.localUsermediaStream),v=r.peerConn.getTransceivers().find(E=>E.sender===_);v?r.transceivers.set(m,v):Y.warn("Call ".concat(r.callId," updateLocalUsermediaStream() couldn't find matching transceiver for newly added track!"))}};for(var h of e.getTracks())yield*F()})()}setLocalVideoMuted(e){var n=this;return Z(function*(){var r;if(Y.log("Call ".concat(n.callId," setLocalVideoMuted() running ").concat(e)),!e&&n.stopVideoTrackTimer!==void 0&&(clearTimeout(n.stopVideoTrackTimer),n.stopVideoTrackTimer=void 0),!(yield n.client.getMediaHandler().hasVideoDevice()))return n.isLocalVideoMuted();if(!n.hasUserMediaVideoSender&&!e){var o;return(o=n.localUsermediaFeed)===null||o===void 0||o.setAudioVideoMuted(null,e),yield n.upgradeCall(!1,!0),n.isLocalVideoMuted()}if(!e&&n.localUsermediaStream.getVideoTracks().length===0){var i=yield n.client.getMediaHandler().getUserMediaStream(!0,!0);yield n.updateLocalUsermediaStream(i)}return(r=n.localUsermediaFeed)===null||r===void 0||r.setAudioVideoMuted(null,e),n.updateMuteStatus(),yield n.sendMetadataUpdate(),e&&(n.stopVideoTrackTimer=setTimeout(()=>{for(var s of n.localUsermediaStream.getVideoTracks())s.stop(),n.localUsermediaStream.removeTrack(s)},120)),n.isLocalVideoMuted()})()}isLocalVideoMuted(){var e,n;return(e=(n=this.localUsermediaFeed)===null||n===void 0?void 0:n.isVideoMuted())!==null&&e!==void 0?e:!1}setMicrophoneMuted(e){var n=this;return Z(function*(){var r;return Y.log("Call ".concat(n.callId," setMicrophoneMuted() running ").concat(e)),(yield n.client.getMediaHandler().hasAudioDevice())?!e&&(!n.hasUserMediaAudioSender||!n.hasLocalUserMediaAudioTrack)?(yield n.upgradeCall(!0,!1),n.isMicrophoneMuted()):((r=n.localUsermediaFeed)===null||r===void 0||r.setAudioVideoMuted(e,null),n.updateMuteStatus(),yield n.sendMetadataUpdate(),n.isMicrophoneMuted()):n.isMicrophoneMuted()})()}isMicrophoneMuted(){var e,n;return(e=(n=this.localUsermediaFeed)===null||n===void 0?void 0:n.isAudioMuted())!==null&&e!==void 0?e:!1}isRemoteOnHold(){return this.remoteOnHold}setRemoteOnHold(e){if(this.isRemoteOnHold()!==e){this.remoteOnHold=e;for(var n of this.peerConn.getTransceivers())n.direction=e?"sendonly":"sendrecv";this.updateMuteStatus(),this.sendMetadataUpdate(),this.emit(Dn.RemoteHoldUnhold,this.remoteOnHold,this)}}isLocalOnHold(){if(this.state!==Vt.Connected)return!1;var e=!0;for(var n of this.peerConn.getTransceivers()){var r=["inactive","recvonly"].includes(n.currentDirection);r||(e=!1)}return e}sendDtmfDigit(e){for(var n of this.peerConn.getSenders()){var r;if(((r=n.track)===null||r===void 0?void 0:r.kind)==="audio"&&n.dtmf){n.dtmf.insertDTMF(e);return}}throw new Error("Unable to find a track to send DTMF on")}updateMuteStatus(){var e=this.isMicrophoneMuted()||this.remoteOnHold,n=this.isLocalVideoMuted()||this.remoteOnHold;Y.log("Call ".concat(this.callId," updateMuteStatus stream ").concat(this.localUsermediaStream.id," micShouldBeMuted ").concat(e," vidShouldBeMuted ").concat(n)),_o(this.localUsermediaStream.getAudioTracks(),!e),_o(this.localUsermediaStream.getVideoTracks(),!n)}sendMetadataUpdate(){var e=this;return Z(function*(){yield e.sendVoipEvent(Ce.CallSDPStreamMetadataChangedPrefix,{[ad]:e.getLocalSDPStreamMetadata()})})()}gotCallFeedsForInvite(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.successor){this.successor.queueGotCallFeedsForAnswer(e);return}if(this.callHasEnded()){this.stopAllMedia();return}for(var r of e)this.pushLocalFeed(r);n&&this.peerConn.addTransceiver("video",{direction:"recvonly"}),this.state=Vt.CreateOffer,Y.debug("Call ".concat(this.callId," gotUserMediaForInvite() run"))}sendAnswer(){var e=this;return Z(function*(){var n={answer:{sdp:e.peerConn.localDescription.sdp,type:e.peerConn.localDescription.type},[ad]:e.getLocalSDPStreamMetadata(!0)};n.capabilities={"m.call.transferee":e.client.supportsCallTransfer,"m.call.dtmf":!1};var r=e.discardDuplicateCandidates();Y.info("Call ".concat(e.callId," sendAnswer() discarding ").concat(r," candidates that will be sent in answer"));try{yield e.sendVoipEvent(Ce.CallAnswer,n),e.inviteOrAnswerSent=!0}catch(s){e.state=Vt.Ringing,s instanceof tn&&s.event&&e.client.cancelPendingEvent(s.event);var o=sn.SendAnswer,i="Failed to send answer";throw s.name=="UnknownDeviceError"&&(o=sn.UnknownDevices,i="Unknown devices present in the room"),e.emit(Dn.Error,new Nl(o,i,s),e),s}e.sendCandidateQueue()})()}queueGotCallFeedsForAnswer(e){this.responsePromiseChain?this.responsePromiseChain=this.responsePromiseChain.then(()=>this.gotCallFeedsForAnswer(e)):this.responsePromiseChain=this.gotCallFeedsForAnswer(e)}mungeSdp(e,n){var r=iV(e.sdp);r.media.forEach(o=>{var i=new Map,s=new Map;for(var u of o.rtp)i.set(u.payload,u.codec),s.set(u.codec,u.payload);for(var l of n)if(l.mediaType===o.type){if(!s.has(l.codec)){Y.info("Call ".concat(this.callId," mungeSdp() ignoring SDP modifications for ").concat(l.codec," as it's not present."));continue}var c=[];l.enableDtx!==void 0&&c.push("usedtx=".concat(l.enableDtx?"1":"0")),l.maxAverageBitrate!==void 0&&c.push("maxaveragebitrate=".concat(l.maxAverageBitrate));var d=!1;for(var F of o.fmtp)i.get(F.payload)===l.codec&&(d=!0,F.config+=";"+c.join(";"));d||o.fmtp.push({payload:s.get(l.codec),config:c.join(";")})}}),e.sdp=Ame(r)}createOffer(){var e=this;return Z(function*(){var n=yield e.peerConn.createOffer();return e.mungeSdp(n,DV(e.isPtt)),n})()}createAnswer(){var e=this;return Z(function*(){var n=yield e.peerConn.createAnswer();return e.mungeSdp(n,DV(e.isPtt)),n})()}gotCallFeedsForAnswer(e){var n=this;return Z(function*(){if(!n.callHasEnded()){n.waitForLocalAVStream=!1;for(var r of e)n.pushLocalFeed(r);n.state=Vt.CreateAnswer;var o;try{n.getRidOfRTXCodecs(),o=yield n.createAnswer()}catch(i){Y.debug("Call ".concat(n.callId," gotCallFeedsForAnswer() failed to create answer: "),i),n.terminate(Qr.Local,sn.CreateAnswer,!0);return}try{if(yield n.peerConn.setLocalDescription(o),n.callHasEnded()||(n.state=Vt.Connecting,yield new Promise(i=>{setTimeout(i,200)}),n.callHasEnded()))return;n.sendAnswer()}catch(i){Y.debug("Call ".concat(n.callId," gotCallFeedsForAnswer() error setting local description!"),i),n.terminate(Qr.Local,sn.SetLocalDescription,!0);return}}})()}onRemoteIceCandidatesReceived(e){var n=this;return Z(function*(){if(!n.callHasEnded()){var r=e.getContent(),o=r.candidates;if(!o){Y.info("Call ".concat(n.callId," onRemoteIceCandidatesReceived() ignoring candidates event with no candidates!"));return}var i=r.version===0?null:r.party_id||null;if(n.opponentPartyId===void 0){if(i){Y.info("Call ".concat(n.callId," onRemoteIceCandidatesReceived() buffering ").concat(o.length," candidates until we pick an opponent"));var s=n.remoteCandidateBuffer.get(i)||[];s.push(...o),n.remoteCandidateBuffer.set(i,s)}return}if(!n.partyIdMatches(r)){Y.info("Call ".concat(n.callId," onRemoteIceCandidatesReceived() ignoring candidates from party ID ").concat(r.party_id,": we have chosen party ID ").concat(n.opponentPartyId));return}yield n.addIceCandidates(o)}})()}onAnswerReceived(e){var n=this;return Z(function*(){var r=e.getContent();if(Y.debug("Call ".concat(n.callId," onAnswerReceived() running (hangupParty=").concat(r.party_id,")")),n.callHasEnded()){Y.debug("Call ".concat(n.callId," onAnswerReceived() ignoring answer because call has ended"));return}if(n.opponentPartyId!==void 0){Y.info("Call ".concat(n.callId," onAnswerReceived() ignoring answer from party ID ").concat(r.party_id,": we already have an answer/reject from ").concat(n.opponentPartyId));return}n.chooseOpponent(e),yield n.addBufferedIceCandidates(),n.state=Vt.Connecting;var o=r[ad];o?n.updateRemoteSDPStreamMetadata(o):Y.warn("Call ".concat(n.callId," onAnswerReceived() did not get any SDPStreamMetadata! Can not send/receive multiple streams"));try{n.isSettingRemoteAnswerPending=!0,yield n.peerConn.setRemoteDescription(r.answer),n.isSettingRemoteAnswerPending=!1,Y.debug("Call ".concat(n.callId," onAnswerReceived() set remote description: ").concat(r.answer.type))}catch(i){n.isSettingRemoteAnswerPending=!1,Y.debug("Call ".concat(n.callId," onAnswerReceived() failed to set remote description"),i),n.terminate(Qr.Local,sn.SetRemoteDescription,!1);return}if(n.opponentPartyId!==null)try{yield n.sendVoipEvent(Ce.CallSelectAnswer,{selected_party_id:n.opponentPartyId})}catch(i){Y.warn("Call ".concat(n.callId," onAnswerReceived() failed to send select_answer event"),i)}})()}onSelectAnswerReceived(e){var n=this;return Z(function*(){if(n.direction!==ud.Inbound){Y.warn("Call ".concat(n.callId," onSelectAnswerReceived() got select_answer for an outbound call: ignoring"));return}var r=e.getContent().selected_party_id;if(r==null){Y.warn("Call ".concat(n.callId," onSelectAnswerReceived() got nonsensical select_answer with null/undefined selected_party_id: ignoring"));return}r!==n.ourPartyId&&(Y.info("Call ".concat(n.callId," onSelectAnswerReceived() got select_answer for party ID ").concat(r,": we are party ID ").concat(n.ourPartyId,".")),yield n.terminate(Qr.Remote,sn.AnsweredElsewhere,!0))})()}onNegotiateReceived(e){var n=this;return Z(function*(){var r=e.getContent(),o=r.description;if(!o||!o.sdp||!o.type){Y.info("Call ".concat(n.callId," onNegotiateReceived() ignoring invalid m.call.negotiate event"));return}var i=n.direction===ud.Inbound,s=!n.makingOffer&&(n.peerConn.signalingState==="stable"||n.isSettingRemoteAnswerPending),u=o.type==="offer"&&!s;if(n.ignoreOffer=!i&&u,n.ignoreOffer){Y.info("Call ".concat(n.callId," onNegotiateReceived() ignoring colliding negotiate event because we're impolite"));return}var l=n.isLocalOnHold(),c=r[ad];c?n.updateRemoteSDPStreamMetadata(c):Y.warn("Call ".concat(n.callId," onNegotiateReceived() received negotiation event without SDPStreamMetadata!"));try{if(n.isSettingRemoteAnswerPending=o.type=="answer",yield n.peerConn.setRemoteDescription(o),n.isSettingRemoteAnswerPending=!1,Y.debug("Call ".concat(n.callId," onNegotiateReceived() set remote description: ").concat(o.type)),o.type==="offer"){var d,F;try{n.getRidOfRTXCodecs(),F=yield n.createAnswer()}catch(m){Y.debug("Call ".concat(n.callId," onNegotiateReceived() failed to create answer: "),m),n.terminate(Qr.Local,sn.CreateAnswer,!0);return}yield n.peerConn.setLocalDescription(F),Y.debug("Call ".concat(n.callId," onNegotiateReceived() create an answer")),n.sendVoipEvent(Ce.CallNegotiate,{lifetime:W9,description:(d=n.peerConn.localDescription)===null||d===void 0?void 0:d.toJSON(),[ad]:n.getLocalSDPStreamMetadata(!0)})}}catch(m){n.isSettingRemoteAnswerPending=!1,Y.warn("Call ".concat(n.callId," onNegotiateReceived() failed to complete negotiation"),m)}var h=n.isLocalOnHold();l!==h&&(n.emit(Dn.LocalHoldUnhold,h,n),n.emit(Dn.HoldUnhold,h))})()}updateRemoteSDPStreamMetadata(e){this.remoteSDPStreamMetadata=oz(this.remoteSDPStreamMetadata||{},e,!0);for(var n of this.getRemoteFeeds()){var r,o=n.stream.id,i=this.remoteSDPStreamMetadata[o];n.setAudioVideoMuted(i==null?void 0:i.audio_muted,i==null?void 0:i.video_muted),n.purpose=(r=this.remoteSDPStreamMetadata[o])===null||r===void 0?void 0:r.purpose}}onSDPStreamMetadataChangedReceived(e){var n=e.getContent(),r=n[ad];this.updateRemoteSDPStreamMetadata(r)}onAssertedIdentityReceived(e){var n=this;return Z(function*(){var r=e.getContent();r.asserted_identity&&(n.remoteAssertedIdentity={id:r.asserted_identity.id,displayName:r.asserted_identity.display_name},n.emit(Dn.AssertedIdentityChanged,n))})()}callHasEnded(){return this.state===Vt.Ended}queueGotLocalOffer(){this.responsePromiseChain?this.responsePromiseChain=this.responsePromiseChain.then(()=>this.wrappedGotLocalOffer()):this.responsePromiseChain=this.wrappedGotLocalOffer()}wrappedGotLocalOffer(){var e=this;return Z(function*(){e.makingOffer=!0;try{yield e.gotLocalOffer()}catch(n){e.getLocalOfferFailed(n);return}finally{e.makingOffer=!1}})()}gotLocalOffer(){var e=this;return Z(function*(){if(Y.debug("Call ".concat(e.callId," gotLocalOffer() running")),e.callHasEnded()){Y.debug("Call ".concat(e.callId,' gotLocalOffer() ignoring newly created offer because the call has ended"'));return}var n;try{e.getRidOfRTXCodecs(),n=yield e.createOffer()}catch(d){Y.debug("Call ".concat(e.callId," gotLocalOffer() failed to create offer: "),d),e.terminate(Qr.Local,sn.CreateOffer,!0);return}try{yield e.peerConn.setLocalDescription(n)}catch(d){Y.debug("Call ".concat(e.callId," gotLocalOffer() error setting local description!"),d),e.terminate(Qr.Local,sn.SetLocalDescription,!0);return}if(e.peerConn.iceGatheringState==="gathering"&&(yield new Promise(d=>{setTimeout(d,200)})),!e.callHasEnded()){var r=e.state===Vt.CreateOffer?Ce.CallInvite:Ce.CallNegotiate,o={lifetime:W9};if(r===Ce.CallInvite&&e.invitee&&(o.invitee=e.invitee),e.state===Vt.CreateOffer){var i;o.offer=(i=e.peerConn.localDescription)===null||i===void 0?void 0:i.toJSON()}else{var s;o.description=(s=e.peerConn.localDescription)===null||s===void 0?void 0:s.toJSON()}o.capabilities={"m.call.transferee":e.client.supportsCallTransfer,"m.call.dtmf":!1},o[ad]=e.getLocalSDPStreamMetadata(!0);var u=e.discardDuplicateCandidates();Y.info("Call ".concat(e.callId," gotLocalOffer() discarding ").concat(u," candidates that will be sent in offer"));try{yield e.sendVoipEvent(r,o)}catch(d){Y.error("Call ".concat(e.callId," gotLocalOffer() failed to send invite"),d),d instanceof tn&&d.event&&e.client.cancelPendingEvent(d.event);var l=sn.SignallingFailed,c="Signalling failed";e.state===Vt.CreateOffer&&(l=sn.SendInvite,c="Failed to send invite"),d.name=="UnknownDeviceError"&&(l=sn.UnknownDevices,c="Unknown devices present in the room"),e.emit(Dn.Error,new Nl(l,c,d),e),e.terminate(Qr.Local,l,!1);return}e.sendCandidateQueue(),e.state===Vt.CreateOffer&&(e.inviteOrAnswerSent=!0,e.state=Vt.InviteSent,e.inviteTimeout=setTimeout(()=>{e.inviteTimeout=void 0,e.state===Vt.InviteSent&&e.hangup(sn.InviteTimeout,!1)},W9))}})()}getRidOfRTXCodecs(){if(!(!RTCRtpReceiver.getCapabilities||!RTCRtpSender.getCapabilities)){var e=this.transceivers.get(js(_r.Screenshare,"video"));if(!(!e||!e.setCodecPreferences)){var n=RTCRtpReceiver.getCapabilities("video").codecs,r=RTCRtpSender.getCapabilities("video").codecs,o=[];for(var i of[...n,...r])if(i.mimeType!=="video/rtx"){o.push(i);try{e.setCodecPreferences(o)}catch(s){Y.info("Working around buggy WebRTC impl: claimed to support codec but threw when setting codec preferences",i,s),o.pop()}}}}}sendVoipEvent(e,n){var r=this;return Z(function*(){var o=Rb(Rb({},n),{},{version:nDe,call_id:r.callId,party_id:r.ourPartyId,conf_id:r.groupCallId});if(r.opponentDeviceId){var i,s=r.toDeviceSeq++,u=Rb(Rb({},o),{},{device_id:r.client.deviceId,sender_session_id:r.client.getSessionId(),dest_session_id:r.opponentSessionId,seq:s,[WD]:yme()});r.emit(Dn.SendVoipEvent,{type:"toDevice",eventType:e,userId:r.invitee||((i=r.getOpponentMember())===null||i===void 0?void 0:i.userId),opponentDeviceId:r.opponentDeviceId,content:u},r);var l=r.invitee||r.getOpponentMember().userId;if(r.client.getUseE2eForGroupCall()){if(!r.hasOpponentDeviceInfo){Y.warn("Call ".concat(r.callId," sendVoipEvent() failed: we do not have opponentDeviceInfo"));return}throw new Error("Unimplemented")}else yield r.client.sendToDevice(e,new Map([[l,new Map([[r.opponentDeviceId,u]])]]))}else{var c;r.emit(Dn.SendVoipEvent,{type:"sendEvent",eventType:e,roomId:r.roomId,content:o,userId:r.invitee||((c=r.getOpponentMember())===null||c===void 0?void 0:c.userId)},r),yield r.client.sendEvent(r.roomId,e,o)}})()}queueCandidate(e){if(e?this.candidateSendQueue.push(e):this.candidatesEnded=!0,!(this.state===Vt.Ringing||!this.inviteOrAnswerSent)){var n=this.direction===ud.Inbound?500:2e3;this.candidateSendTries===0&&setTimeout(()=>{this.sendCandidateQueue()},n)}}discardDuplicateCandidates(){for(var e=0,n=[],r=0;r<this.candidateSendQueue.length;r++){var o=this.candidateSendQueue[r];o.candidate===""?n.push(o):e++}return this.candidateSendQueue=n,e}transfer(e){var n=this;return Z(function*(){var r=yield n.client.getProfileInfo(e),o=ch(),i={replacement_id:ch(),target_user:{id:e,display_name:r.displayname,avatar_url:r.avatar_url},create_call:o};yield n.sendVoipEvent(Ce.CallReplaces,i),yield n.terminate(Qr.Local,sn.Transferred,!0)})()}transferToCall(e){var n=this;return Z(function*(){var r,o,i=(r=e.getOpponentMember())===null||r===void 0?void 0:r.userId,s=i?yield n.client.getProfileInfo(i):void 0,u=(o=n.getOpponentMember())===null||o===void 0?void 0:o.userId,l=u?yield n.client.getProfileInfo(u):void 0,c=ch(),d={replacement_id:ch(),target_user:{id:u,display_name:l==null?void 0:l.displayname,avatar_url:l==null?void 0:l.avatar_url},await_call:c};yield e.sendVoipEvent(Ce.CallReplaces,d);var F={replacement_id:ch(),target_user:{id:i,display_name:s==null?void 0:s.displayname,avatar_url:s==null?void 0:s.avatar_url},create_call:c};yield n.sendVoipEvent(Ce.CallReplaces,F),yield n.terminate(Qr.Local,sn.Transferred,!0),yield e.terminate(Qr.Local,sn.Transferred,!0)})()}terminate(e,n,r){var o=this;return Z(function*(){var i;if(!o.callHasEnded()){o.hangupParty=e,o.hangupReason=n,o.state=Vt.Ended,o.inviteTimeout&&(clearTimeout(o.inviteTimeout),o.inviteTimeout=void 0),o.iceDisconnectedTimeout!==void 0&&(clearTimeout(o.iceDisconnectedTimeout),o.iceDisconnectedTimeout=void 0),o.callLengthInterval&&(clearInterval(o.callLengthInterval),o.callLengthInterval=void 0),o.stopVideoTrackTimer!==void 0&&(clearTimeout(o.stopVideoTrackTimer),o.stopVideoTrackTimer=void 0);for(var[s,u]of o.removeTrackListeners)s.removeEventListener("removetrack",u);o.removeTrackListeners.clear(),o.callStatsAtEnd=yield o.collectCallStats(),o.stopAllMedia(),o.deleteAllFeeds(),o.peerConn&&o.peerConn.signalingState!=="closed"&&o.peerConn.close(),(i=o.stats)===null||i===void 0||i.removeStatsReportGatherer(o.callId),r&&o.emit(Dn.Hangup,o),o.client.callEventHandler.calls.delete(o.callId)}})()}stopAllMedia(){Y.debug("Call ".concat(this.callId," stopAllMedia() running"));for(var e of this.feeds)if(e.isLocal()&&e.purpose===_r.Usermedia)this.client.getMediaHandler().stopUserMediaStream(e.stream);else if(e.isLocal()&&e.purpose===_r.Screenshare)this.client.getMediaHandler().stopScreensharingStream(e.stream);else if(!e.isLocal()){Y.debug("Call ".concat(this.callId," stopAllMedia() stopping stream (streamId=").concat(e.stream.id,")"));for(var n of e.stream.getTracks())n.stop()}}checkForErrorListener(){if(this.listeners(Ez.Error).length===0)throw new Error("You MUST attach an error listener using call.on('error', function() {})")}sendCandidateQueue(){var e=this;return Z(function*(){if(!(e.candidateSendQueue.length===0||e.callHasEnded())){var n=e.candidateSendQueue;e.candidateSendQueue=[],++e.candidateSendTries;var r={candidates:n.map(u=>u.toJSON())};e.candidatesEnded&&r.candidates.push({candidate:""}),Y.debug("Call ".concat(e.callId," sendCandidateQueue() attempting to send ").concat(n.length," candidates"));try{yield e.sendVoipEvent(Ce.CallCandidates,r),e.candidateSendTries=0,e.sendCandidateQueue()}catch(u){if(u instanceof tn&&u.event&&e.client.cancelPendingEvent(u.event),e.candidateSendQueue.push(...n),e.candidateSendTries>5){Y.debug("Call ".concat(e.callId," sendCandidateQueue() failed to send candidates on attempt ").concat(e.candidateSendTries,". Giving up on this call."),u);var o=sn.SignallingFailed,i="Signalling failed";e.emit(Dn.Error,new Nl(o,i,u),e),e.hangup(o,!1);return}var s=500*Math.pow(2,e.candidateSendTries);++e.candidateSendTries,Y.debug("Call ".concat(e.callId," sendCandidateQueue() failed to send candidates. Retrying in ").concat(s,"ms"),u),setTimeout(()=>{e.sendCandidateQueue()},s)}}})()}placeCall(e,n){var r=this;return Z(function*(){if(!e)throw new Error("You CANNOT start a call without audio");r.state=Vt.WaitLocalMedia;var o;try{var i,s=yield r.client.getMediaHandler().getUserMediaStream(e,n);_o(s.getAudioTracks(),!0),_o(s.getVideoTracks(),!0),o=new Pl({client:r.client,roomId:r.roomId,userId:r.client.getUserId(),deviceId:(i=r.client.getDeviceId())!==null&&i!==void 0?i:void 0,stream:s,purpose:_r.Usermedia,audioMuted:!1,videoMuted:!1})}catch(u){r.getUserMediaFailed(u);return}try{yield r.placeCallWithCallFeeds([o])}catch(u){r.placeCallFailed(u);return}})()}placeCallWithCallFeeds(e){var n=arguments,r=this;return Z(function*(){var o=n.length>1&&n[1]!==void 0?n[1]:!1;r.checkForErrorListener(),r.direction=ud.Outbound,yield r.initOpponentCrypto(),r.client.callEventHandler.calls.set(r.callId,r);var i=yield r.client.checkTurnServers();i||Y.warn("Call ".concat(r.callId," placeCallWithCallFeeds() failed to get TURN credentials! Proceeding with call anyway...")),r.peerConn=r.createPeerConnection(),r.emit(Dn.PeerConnectionCreated,r.peerConn,r),r.gotCallFeedsForInvite(e,o)})()}createPeerConnection(){var e,n=new window.RTCPeerConnection({iceTransportPolicy:this.forceTURN?"relay":void 0,iceServers:this.turnServers.length?this.turnServers:void 0,iceCandidatePoolSize:this.client.iceCandidatePoolSize,bundlePolicy:"max-bundle"});n.addEventListener("iceconnectionstatechange",this.onIceConnectionStateChanged),n.addEventListener("signalingstatechange",this.onSignallingStateChanged),n.addEventListener("icecandidate",this.gotLocalIceCandidate),n.addEventListener("icegatheringstatechange",this.onIceGatheringStateChange),n.addEventListener("track",this.onTrack),n.addEventListener("negotiationneeded",this.onNegotiationNeeded),n.addEventListener("datachannel",this.onDataChannel);var r=this.getOpponentMember(),o=r?r.userId:"unknown";return(e=this.stats)===null||e===void 0||e.addStatsReportGatherer(this.callId,o,n),n}partyIdMatches(e){var n=e.version===0?null:e.party_id||null;return n===this.opponentPartyId}chooseOpponent(e){var n,r=e.getContent();if(Y.debug("Call ".concat(this.callId," chooseOpponent() running (partyId=").concat(r.party_id,")")),this.opponentVersion=r.version,this.opponentVersion===0?this.opponentPartyId=null:this.opponentPartyId=r.party_id||null,this.opponentCaps=r.capabilities||{},this.opponentMember=(n=this.client.getRoom(this.roomId).getMember(e.getSender()))!==null&&n!==void 0?n:void 0,this.opponentMember){var o;(o=this.stats)===null||o===void 0||o.updateOpponentMember(this.callId,this.opponentMember.userId)}}addBufferedIceCandidates(){var e=this;return Z(function*(){var n=e.remoteCandidateBuffer.get(e.opponentPartyId);n&&(Y.info("Call ".concat(e.callId," addBufferedIceCandidates() adding ").concat(n.length," buffered candidates for opponent ").concat(e.opponentPartyId)),yield e.addIceCandidates(n)),e.remoteCandidateBuffer.clear()})()}addIceCandidates(e){var n=this;return Z(function*(){for(var r of e){(r.sdpMid===null||r.sdpMid===void 0)&&(r.sdpMLineIndex===null||r.sdpMLineIndex===void 0)?Y.debug("Call ".concat(n.callId," addIceCandidates() got remote ICE end-of-candidates")):Y.debug("Call ".concat(n.callId," addIceCandidates() got remote ICE candidate (sdpMid=").concat(r.sdpMid,", candidate=").concat(r.candidate,")"));try{yield n.peerConn.addIceCandidate(r)}catch(o){n.ignoreOffer?Y.debug("Call ".concat(n.callId," addIceCandidates() failed to add remote ICE candidate because ignoring offer"),o):Y.info("Call ".concat(n.callId," addIceCandidates() failed to add remote ICE candidate"),o)}}})()}get hasPeerConnection(){return!!this.peerConn}initStats(e){this.stats=e,this.stats.start()}}function _o(t,e){for(var n of t)n.enabled=e}function K9(){if(typeof window>"u"||typeof document>"u")return!1;try{var t,e,n,r=!!((t=(e=(n=window.RTCPeerConnection)!==null&&n!==void 0?n:window.RTCSessionDescription)!==null&&e!==void 0?e:window.RTCIceCandidate)!==null&&t!==void 0?t:navigator.mediaDevices);if(!r)return Y.error("WebRTC is not supported in this browser / environment"),!1}catch(o){return Y.error("Exception thrown when trying to access WebRTC",o),!1}return!0}function ef(t,e,n){if(!K9())return null;var r=n?n.forceTURN:!1,o={client:t,roomId:e,invitee:n==null?void 0:n.invitee,turnServers:t.getTurnServers(),forceTURN:t.forceTURN||r,opponentDeviceId:n==null?void 0:n.opponentDeviceId,opponentSessionId:n==null?void 0:n.opponentSessionId,groupCallId:n==null?void 0:n.groupCallId},i=new sDe(o);return t.reEmitter.reEmit(i,Object.values(Dn)),i}var pu=function(t){return t.DontNotify="dont_notify",t.Notify="notify",t.Coalesce="coalesce",t}({}),WF=function(t){return t.Highlight="highlight",t.Sound="sound",t}({}),uDe=function(t){return t.ExactEquals="==",t.LessThan="<",t.GreaterThan=">",t.GreaterThanOrEqual=">=",t.LessThanOrEqual="<=",t}({}),lDe="2";function cDe(t){return t==="==2"||t==="2"}var ar=function(t){return t.EventMatch="event_match",t.EventPropertyIs="event_property_is",t.EventPropertyContains="event_property_contains",t.ContainsDisplayName="contains_display_name",t.RoomMemberCount="room_member_count",t.SenderNotificationPermission="sender_notification_permission",t.CallStarted="call_started",t.CallStartedPrefix="org.matrix.msc3914.call_started",t}({}),Nn=function(t){return t.Override="override",t.ContentSpecific="content",t.RoomSpecific="room",t.SenderSpecific="sender",t.Underride="underride",t}({}),Yn=function(t){return t.Master=".m.rule.master",t.IsUserMention=".m.rule.is_user_mention",t.IsRoomMention=".m.rule.is_room_mention",t.ContainsDisplayName=".m.rule.contains_display_name",t.ContainsUserName=".m.rule.contains_user_name",t.AtRoomNotification=".m.rule.roomnotif",t.DM=".m.rule.room_one_to_one",t.EncryptedDM=".m.rule.encrypted_room_one_to_one",t.Message=".m.rule.message",t.EncryptedMessage=".m.rule.encrypted",t.InviteToSelf=".m.rule.invite_for_me",t.MemberEvent=".m.rule.member_event",t.IncomingCall=".m.rule.call",t.SuppressNotices=".m.rule.suppress_notices",t.Tombstone=".m.rule.tombstone",t.PollStart=".m.rule.poll_start",t.PollStartUnstable=".org.matrix.msc3930.rule.poll_start",t.PollEnd=".m.rule.poll_end",t.PollEndUnstable=".org.matrix.msc3930.rule.poll_end",t.PollStartOneToOne=".m.rule.poll_start_one_to_one",t.PollStartOneToOneUnstable=".org.matrix.msc3930.rule.poll_start_one_to_one",t.PollEndOneToOne=".m.rule.poll_end_one_to_one",t.PollEndOneToOneUnstable=".org.matrix.msc3930.rule.poll_end_one_to_one",t}({});function gV(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function pV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gV(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gV(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var fV=[Nn.Override,Nn.ContentSpecific,Nn.RoomSpecific,Nn.SenderSpecific,Nn.Underride],dDe={".m.rule.is_room_mention":{rule_id:".m.rule.is_room_mention",default:!0,enabled:!0,conditions:[{kind:ar.EventPropertyIs,key:"content.m\\.mentions.room",value:!0},{kind:ar.SenderNotificationPermission,key:"room"}],actions:[pu.Notify,{set_tweak:WF.Highlight}]},".m.rule.reaction":{rule_id:".m.rule.reaction",default:!0,enabled:!0,conditions:[{kind:ar.EventMatch,key:"type",pattern:"m.reaction"}],actions:[pu.DontNotify]},".org.matrix.msc3786.rule.room.server_acl":{rule_id:".org.matrix.msc3786.rule.room.server_acl",default:!0,enabled:!0,conditions:[{kind:ar.EventMatch,key:"type",pattern:Ce.RoomServerAcl},{kind:ar.EventMatch,key:"state_key",pattern:""}],actions:[]}},G9=Symbol("UserDefinedRules"),hDe=[Yn.Master,G9,Yn.SuppressNotices,Yn.InviteToSelf,Yn.MemberEvent,Yn.IsUserMention,Yn.ContainsDisplayName,Yn.IsRoomMention,Yn.AtRoomNotification,Yn.Tombstone,".m.rule.reaction",".m.rule.room.server_acl",".org.matrix.msc3786.rule.room.server_acl",".m.rule.suppress_edits"],FDe={".org.matrix.msc3914.rule.room.call":{rule_id:".org.matrix.msc3914.rule.room.call",default:!0,enabled:!0,conditions:[{kind:ar.EventMatch,key:"type",pattern:"org.matrix.msc3401.call"},{kind:ar.CallStarted}],actions:[pu.Notify,{set_tweak:WF.Sound,value:"default"}]}},mDe=[G9,Yn.IncomingCall,".org.matrix.msc3914.rule.room.call",Yn.EncryptedDM,Yn.DM,Yn.Message,Yn.EncryptedMessage];function _V(t,e,n,r){var o=e.filter(m=>m.default),i=e.filter(m=>!m.default);function s(m){m===G9?l.push(...i):m in n?(Y.warn("Adding default global ".concat(t," push rule ").concat(m)),l.push(n[m])):Y.warn("Missing default global ".concat(t," push rule ").concat(m))}var u=0,l=[];for(var c of o){var d=r.indexOf(c.rule_id);if(d===-1){l.push(c);continue}for(;d>u;){var F=r[u];s(F),u+=1}l.push(c),u+=1}for(var h of r.slice(u))s(h);return l}class Bs{constructor(e){this.client=e,I(this,"parsedKeys",new Map)}static actionListToActionsObject(e){var n={notify:!1,tweaks:{}};for(var r of e)r===pu.Notify?n.notify=!0:typeof r=="object"&&(r.value===void 0&&(r.value=!0),n.tweaks[r.set_tweak]=r.value);return n}static rewriteDefaultRules(e){var n=JSON.parse(JSON.stringify(e));return n||(n={}),n.global||(n.global={}),n.global.override||(n.global.override=[]),n.global.underride||(n.global.underride=[]),n.global.override=_V(Nn.Override,n.global.override,dDe,hDe),n.global.underride=_V(Nn.Underride,n.global.underride,FDe,mDe),n}static getPushRuleGlobRegex(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"i",[o,i]=n?["(?<=^|\\W)","(?=\\W|$)"]:["^","$"],s="".concat(n,"-").concat(r,"-").concat(e);return Bs.cachedGlobToRegex[s]||(Bs.cachedGlobToRegex[s]=new RegExp(o+"("+ez(e)+")"+i,r)),Bs.cachedGlobToRegex[s]}updateCachedPushRuleKeys(e){e||(e={}),e.global||(e.global={}),e.global.override||(e.global.override=[]),e.global.room||(e.global.room=[]),e.global.sender||(e.global.sender=[]),e.global.underride||(e.global.underride=[]);var n=new Set(this.parsedKeys.keys());for(var r of[e.global.override,e.global.room,e.global.sender,e.global.underride])for(var o of r)if(o.conditions)for(var i of o.conditions)i.kind===ar.EventMatch&&(n.delete(i.key),this.parsedKeys.set(i.key,Bs.partsForDottedKey(i.key)));n.forEach(s=>this.parsedKeys.delete(s))}matchingRuleFromKindSet(e,n){for(var r of fV){var o=n[r];if(o){for(var i of o)if(i.enabled){var s=this.templateRuleToRaw(r,i);if(s&&this.ruleMatchesEvent(s,e))return pV(pV({},i),{},{kind:r})}}}return null}templateRuleToRaw(e,n){var r={rule_id:n.rule_id,actions:n.actions,conditions:[]};switch(e){case Nn.Underride:case Nn.Override:r.conditions=n.conditions;break;case Nn.RoomSpecific:if(!n.rule_id)return null;r.conditions.push({kind:ar.EventMatch,key:"room_id",value:n.rule_id});break;case Nn.SenderSpecific:if(!n.rule_id)return null;r.conditions.push({kind:ar.EventMatch,key:"user_id",value:n.rule_id});break;case Nn.ContentSpecific:if(!n.pattern)return null;r.conditions.push({kind:ar.EventMatch,key:"content.body",pattern:n.pattern});break}return r}eventFulfillsCondition(e,n){switch(e.kind){case ar.EventMatch:return this.eventFulfillsEventMatchCondition(e,n);case ar.EventPropertyIs:return this.eventFulfillsEventPropertyIsCondition(e,n);case ar.EventPropertyContains:return this.eventFulfillsEventPropertyContains(e,n);case ar.ContainsDisplayName:return this.eventFulfillsDisplayNameCondition(e,n);case ar.RoomMemberCount:return this.eventFulfillsRoomMemberCountCondition(e,n);case ar.SenderNotificationPermission:return this.eventFulfillsSenderNotifPermCondition(e,n);case ar.CallStarted:case ar.CallStartedPrefix:return this.eventFulfillsCallStartedCondition(e,n)}return!1}eventFulfillsSenderNotifPermCondition(e,n){var r=e.key;if(!r)return!1;var o=this.client.getRoom(n.getRoomId());return o!=null&&o.currentState?o.currentState.mayTriggerNotifOfType(r,n.getSender()):!1}eventFulfillsRoomMemberCountCondition(e,n){if(!e.is)return!1;var r=this.client.getRoom(n.getRoomId());if(!r||!r.currentState||!r.currentState.members)return!1;var o=r.currentState.getJoinedMemberCount(),i=e.is.match(/^([=<>]*)(\d*)$/);if(!i)return!1;var s=i[1],u=parseInt(i[2]);if(isNaN(u))return!1;switch(s){case"":case"==":return o==u;case"<":return o<u;case">":return o>u;case"<=":return o<=u;case">=":return o>=u;default:return!1}}eventFulfillsDisplayNameCondition(e,n){var r,o=n.getContent();if(n.isEncrypted()&&n.getClearContent()&&(o=n.getClearContent()),!o||!o.body||typeof o.body!="string")return!1;var i=this.client.getRoom(n.getRoomId()),s=i==null||(r=i.currentState)===null||r===void 0?void 0:r.getMember(this.client.credentials.userId);if(!s)return!1;var u=s.name,l=new RegExp("(^|\\W)"+QN(u)+"(\\W|$)","i");return o.body.search(l)>-1}eventFulfillsEventMatchCondition(e,n){if(!e.key)return!1;var r=this.valueForDottedKey(e.key,n);if(typeof r!="string")return!1;if(e.value)return e.value===r;if(typeof e.pattern!="string")return!1;var o=Bs.getPushRuleGlobRegex(e.pattern,e.key==="content.body");return!!r.match(o)}eventFulfillsEventPropertyIsCondition(e,n){return!e.key||e.value===void 0?!1:e.value===this.valueForDottedKey(e.key,n)}eventFulfillsEventPropertyContains(e,n){if(!e.key||e.value===void 0)return!1;var r=this.valueForDottedKey(e.key,n);return Array.isArray(r)?r.includes(e.value):!1}eventFulfillsCallStartedCondition(e,n){return["m.ring","m.prompt"].includes(n.getContent()["m.intent"])&&!("m.terminated"in n.getContent())&&(n.getPrevContent()["m.terminated"]!==n.getContent()["m.terminated"]||jF(n.getPrevContent(),{}))}static partsForDottedKey(e){var n=[],r="",o=!1;for(var i of e){if(o){i==="\\"||i==="."?r+=i:r+="\\"+i,o=!1;continue}i=="."?(n.push(r),r=""):i=="\\"?o=!0:r+=i}return o&&(r+="\\"),n.push(r),n}valueForDottedKey(e,n){var r=this.parsedKeys.get(e);r===void 0&&(r=Bs.partsForDottedKey(e),this.parsedKeys.set(e,r));var o,i=r[0],s=0;for(i==="content"?(o=n.getContent(),++s):i==="type"?(o=n.getType(),++s):o=n.event;s<r.length;++s){if(tz(o))return;var u=r[s];o=o[u]}return o}matchingRuleForEventWithRulesets(e,n){return!n||e.getSender()===this.client.getSafeUserId()?null:this.matchingRuleFromKindSet(e,n.global)}pushActionsForEventAndRulesets(e,n){var r=this.matchingRuleForEventWithRulesets(e,n);if(!r)return{};var o=Bs.actionListToActionsObject(r.actions);return o.tweaks.highlight===void 0&&(o.tweaks.highlight=r.kind==Nn.ContentSpecific),{actions:o,rule:r}}ruleMatchesEvent(e,n){var r;return this.client.supportsIntentionalMentions()&&n.getContent()["m.mentions"]!==void 0&&(e.rule_id===Yn.ContainsUserName||e.rule_id===Yn.ContainsDisplayName||e.rule_id===Yn.AtRoomNotification)?!1:!((r=e.conditions)!==null&&r!==void 0&&r.some(o=>!this.eventFulfillsCondition(o,n)))}actionsForEvent(e){var{actions:n}=this.pushActionsForEventAndRulesets(e,this.client.pushRules);return n||{}}actionsAndRuleForEvent(e){return this.pushActionsForEventAndRulesets(e,this.client.pushRules)}getPushRuleById(e){var n,r=this.getPushRuleAndKindById(e);return(n=r==null?void 0:r.rule)!==null&&n!==void 0?n:null}getPushRuleAndKindById(e){for(var n of["global"]){var r;if(((r=this.client.pushRules)===null||r===void 0?void 0:r[n])!==void 0){for(var o of fV)if(this.client.pushRules[n][o]!==void 0){for(var i of this.client.pushRules[n][o])if(i.rule_id===e)return{rule:i,kind:o}}}}return null}}I(Bs,"cachedGlobToRegex",{});var tf=["v1.1","v1.2","v1.3","v1.4","v1.5","v1.6","v1.7","v1.8","v1.9"],DDe=tf[0],gDe=tf[tf.length-1],fa=function(t){return t.SUCCESS="SUCCESS",t.IGNORE="IGNORE",t.PROMPT="PROMPT",t.FAIL_PROMPT="FAIL_PROMPT",t.FAIL_ERROR="FAIL_ERROR",t}({}),Va=function(t){return t.Invalid="Invalid homeserver discovery response",t.GenericFailure="Failed to get autodiscovery configuration from server",t.InvalidHsBaseUrl="Invalid base_url for m.homeserver",t.InvalidHomeserver="Homeserver URL does not appear to be a valid Matrix homeserver",t.InvalidIsBaseUrl="Invalid base_url for m.identity_server",t.InvalidIdentityServer="Identity server URL does not appear to be a valid identity server",t.InvalidIs="Invalid identity server discovery response",t.MissingWellknown="No .well-known JSON file found",t.InvalidJson="Invalid JSON",t.UnsupportedHomeserverSpecVersion="The homeserver does not meet the version requirements",t}({});class Gt{static fromDiscoveryConfig(e){var n=this;return Z(function*(){var r,o={"m.homeserver":{state:Gt.FAIL_ERROR,error:Gt.ERROR_INVALID,base_url:null},"m.identity_server":{state:Gt.PROMPT,error:null,base_url:null}};if(!(e!=null&&e["m.homeserver"]))return Y.error("No m.homeserver key in config"),o["m.homeserver"].state=Gt.FAIL_PROMPT,o["m.homeserver"].error=Gt.ERROR_INVALID,Promise.resolve(o);if(!e["m.homeserver"].base_url)return Y.error("No m.homeserver base_url in config"),o["m.homeserver"].state=Gt.FAIL_PROMPT,o["m.homeserver"].error=Gt.ERROR_INVALID_HS_BASE_URL,Promise.resolve(o);var i=n.sanitizeWellKnownUrl(e["m.homeserver"].base_url);if(!i)return Y.error("Invalid base_url for m.homeserver"),o["m.homeserver"].error=Gt.ERROR_INVALID_HS_BASE_URL,Promise.resolve(o);var s=yield n.fetchWellKnownObject("".concat(i,"/_matrix/client/versions"));if(!s||!Array.isArray((r=s.raw)===null||r===void 0?void 0:r.versions))return Y.error("Invalid /versions response"),o["m.homeserver"].error=Gt.ERROR_INVALID_HOMESERVER,o["m.homeserver"].base_url=i,Promise.resolve(o);var u=new Set(s.raw.versions),l=!1;for(var c of tf)if(u.has(c)){l=!0;break}if(!l)return Y.error("Homeserver does not meet version requirements"),o["m.homeserver"].error=Gt.ERROR_UNSUPPORTED_HOMESERVER_SPEC_VERSION,o["m.homeserver"].base_url=i,Promise.resolve(o);o["m.homeserver"]={state:Gt.SUCCESS,error:null,base_url:i};var d="";if(e["m.identity_server"]){var F={"m.homeserver":o["m.homeserver"],"m.identity_server":{state:Gt.FAIL_PROMPT,error:Gt.ERROR_INVALID_IS,base_url:null}};if(d=n.sanitizeWellKnownUrl(e["m.identity_server"].base_url),!d)return Y.error("Invalid base_url for m.identity_server"),F["m.identity_server"].error=Gt.ERROR_INVALID_IS_BASE_URL,Promise.resolve(F);var h=yield n.fetchWellKnownObject("".concat(d,"/_matrix/identity/v2"));if(!(h!=null&&h.raw)||h.action!==fa.SUCCESS)return Y.error("Invalid /v2 response"),F["m.identity_server"].error=Gt.ERROR_INVALID_IDENTITY_SERVER,F["m.identity_server"].base_url=d,Promise.resolve(F)}return d&&d.toString().length>0&&(o["m.identity_server"]={state:Gt.SUCCESS,error:null,base_url:d}),Object.keys(e).forEach(m=>{if(m==="m.homeserver"||m==="m.identity_server"){var D=["error","state","base_url"];for(var g of Object.keys(e[m]))D.includes(g)||(o[m][g]=e[m][g])}else o[m]=e[m]}),Promise.resolve(o)})()}static findClientConfig(e){var n=this;return Z(function*(){if(!e||typeof e!="string"||e.length===0)throw new Error("'domain' must be a string of non-zero length");var r={"m.homeserver":{state:Gt.FAIL_ERROR,error:Gt.ERROR_INVALID,base_url:null},"m.identity_server":{state:Gt.PROMPT,error:null,base_url:null}},o=e.includes("://")?e:"https://".concat(e),i=yield n.fetchWellKnownObject("".concat(o,"/.well-known/matrix/client"));return!i||i.action!==fa.SUCCESS?(Y.error("No response or error when parsing .well-known"),i.reason&&Y.error(i.reason),i.action===fa.IGNORE?r["m.homeserver"]={state:Gt.PROMPT,error:null,base_url:null}:(r["m.homeserver"].state=Gt.FAIL_PROMPT,r["m.homeserver"].error=Gt.ERROR_INVALID),Promise.resolve(r)):Gt.fromDiscoveryConfig(i.raw)})()}static getRawClientConfig(e){var n=this;return Z(function*(){var r;if(!e||typeof e!="string"||e.length===0)throw new Error("'domain' must be a string of non-zero length");var o=yield n.fetchWellKnownObject("https://".concat(e,"/.well-known/matrix/client"));return o?(r=o.raw)!==null&&r!==void 0?r:{}:{}})()}static sanitizeWellKnownUrl(e){if(!e)return!1;try{var n,r;try{r=new URL(e)}catch(u){Y.error("Could not parse url",u)}if(!((n=r)!==null&&n!==void 0&&n.hostname)||r.protocol!=="http:"&&r.protocol!=="https:")return!1;var o=r.port?":".concat(r.port):"",i=r.pathname?r.pathname:"",s="".concat(r.protocol,"//").concat(r.hostname).concat(o).concat(i);return s.endsWith("/")&&(s=s.substring(0,s.length-1)),s}catch(u){return Y.error(u),!1}}static fetch(e,n){return this.fetchFn?this.fetchFn(e,n):globalThis.fetch(e,n)}static setFetchFn(e){Gt.fetchFn=e}static fetchWellKnownObject(e){return Z(function*(){var n;try{if(n=yield Gt.fetch(e,{method:Se.Get,signal:wb(5e3)}),n.status===404)return{raw:{},action:fa.IGNORE,reason:Gt.ERROR_MISSING_WELLKNOWN};if(!n.ok)return{raw:{},action:fa.FAIL_PROMPT,reason:"General failure"}}catch(s){var r=s,o="";return typeof r=="object"&&(o=r==null?void 0:r.message),{error:r,raw:{},action:fa.FAIL_PROMPT,reason:o||"General failure"}}try{return{raw:yield n.json(),action:fa.SUCCESS}}catch(s){var i=s;return{error:i,raw:{},action:fa.FAIL_PROMPT,reason:(i==null?void 0:i.name)==="SyntaxError"?Gt.ERROR_INVALID_JSON:Gt.ERROR_INVALID}}})()}}I(Gt,"ERROR_INVALID",Va.Invalid),I(Gt,"ERROR_GENERIC_FAILURE",Va.GenericFailure),I(Gt,"ERROR_INVALID_HS_BASE_URL",Va.InvalidHsBaseUrl),I(Gt,"ERROR_INVALID_HOMESERVER",Va.InvalidHomeserver),I(Gt,"ERROR_INVALID_IS_BASE_URL",Va.InvalidIsBaseUrl),I(Gt,"ERROR_INVALID_IDENTITY_SERVER",Va.InvalidIdentityServer),I(Gt,"ERROR_INVALID_IS",Va.InvalidIs),I(Gt,"ERROR_MISSING_WELLKNOWN",Va.MissingWellknown),I(Gt,"ERROR_INVALID_JSON",Va.InvalidJson),I(Gt,"ERROR_UNSUPPORTED_HOMESERVER_SPEC_VERSION",Va.UnsupportedHomeserverSpecVersion),I(Gt,"ALL_ERRORS",Object.keys(Va)),I(Gt,"FAIL_ERROR",fa.FAIL_ERROR),I(Gt,"FAIL_PROMPT",fa.FAIL_PROMPT),I(Gt,"PROMPT",fa.PROMPT),I(Gt,"SUCCESS",fa.SUCCESS),I(Gt,"fetchFn",void 0);var Y9=function(t){return t.IS="SERVICE_TYPE_IS",t.IM="SERVICE_TYPE_IM",t}({});class pDe{constructor(e){this.ourEvent=e,I(this,"timeline",void 0),I(this,"ourEventIndex",0),I(this,"paginateTokens",{[At.Backward]:null,[At.Forward]:null}),this.timeline=[e]}getEvent(){return this.timeline[this.ourEventIndex]}getTimeline(){return this.timeline}getOurEventIndex(){return this.ourEventIndex}getPaginateToken(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.paginateTokens[e?At.Backward:At.Forward]}setPaginateToken(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.paginateTokens[n?At.Backward:At.Forward]=e??null}addEvents(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n?(this.timeline=e.concat(this.timeline),this.ourEventIndex+=e.length):this.timeline=this.timeline.concat(e)}}class Ob{static fromJson(e,n){var r=e.context||{},o=(r.events_before||[]).map(n),i=(r.events_after||[]).map(n),s=new pDe(n(e.result)),u=s.ourEvent.threadRootId;return o=o.filter(l=>l.threadRootId===u),i=i.filter(l=>l.threadRootId===u),s.setPaginateToken(r.start,!0),s.addEvents(o,!0),s.addEvents(i,!1),s.setPaginateToken(r.end,!1),new Ob(e.rank,s)}constructor(e,n){this.rank=e,this.context=n}}let nf,Mb,un,Pb,KF;nf=function(t){return t.Public="public",t.Private="private",t}({}),Mb=function(t){return t.PrivateChat="private_chat",t.TrustedPrivateChat="trusted_private_chat",t.PublicChat="public_chat",t}({}),un=function(t){return t.Public="public",t.Invite="invite",t.Private="private",t.Knock="knock",t.Restricted="restricted",t}({}),Pb=function(t){return t.RoomMembership="m.room_membership",t}({}),KF=function(t){return t.CanJoin="can_join",t.Forbidden="forbidden",t}({}),zi=function(t){return t.Invited="invited",t.Joined="joined",t.Shared="shared",t.WorldReadable="world_readable",t}({});function vV(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function bV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vV(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vV(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function fDe(t,e){var n=!!e.preventReEmit,r=e.decrypt!==!1;function o(i){var s=t.getRoom(i.room_id),u;s&&i.state_key===void 0&&(u=s.findEventById(i.event_id)),!u||u.status?u=new ii(i):(u.setUnsigned(bV(bV({},u.getUnsigned()),i.unsigned)),n=!0);var l=u.getServerAggregatedRelation(Pn.Replace);if(l!=null&&l.content){var c=o(l);u.makeReplaced(c)}var d=s==null?void 0:s.findThreadForEvent(u);return d&&u.setThread(d),u.isEncrypted()&&(n||t.reEmitter.reEmit(u,[Un.Decrypted]),r&&t.decryptEventIfNeeded(u)),n||(t.reEmitter.reEmit(u,[Un.Replaced,Un.VisibilityChange]),s==null||s.reEmitter.reEmit(u,[Un.BeforeRedaction])),u}return o}function CV(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ld(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?CV(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CV(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}class EV{constructor(e,n,r){this.client=e,this.indexEvent=n,this.directory=r}get id(){var e=this.indexEvent.getStateKey();if(!e)throw new Error("State key not found for branch");return e}get isActive(){return this.indexEvent.getContent().active===!0}get version(){var e;return(e=this.indexEvent.getContent().version)!==null&&e!==void 0?e:1}get roomId(){return this.indexEvent.getRoomId()}delete(){var e=this;return Z(function*(){yield e.client.sendStateEvent(e.roomId,cu.name,{},e.id),yield e.client.redactEvent(e.roomId,e.id);var n=(yield e.getVersionHistory())[1];n&&(yield n.delete())})()}getName(){return this.indexEvent.getContent().name||"Unnamed File"}setName(e){var n=this;return Z(function*(){yield n.client.sendStateEvent(n.roomId,cu.name,ld(ld({},n.indexEvent.getContent()),{},{name:e}),n.id)})()}isLocked(){return this.indexEvent.getContent().locked||!1}setLocked(e){var n=this;return Z(function*(){yield n.client.sendStateEvent(n.roomId,cu.name,ld(ld({},n.indexEvent.getContent()),{},{locked:e}),n.id)})()}getFileInfo(){var e=this;return Z(function*(){var n=yield e.getFileEvent(),r=n.getOriginalContent().file,o=e.client.mxcUrlToHttp(r.url);if(!o)throw new Error("No HTTP URL available for ".concat(r.url));return{info:r,httpUrl:o}})()}getFileEvent(){var e=this;return Z(function*(){var n=e.client.getRoom(e.roomId);if(!n)throw new Error("Unknown room");for(var r=n.getUnfilteredTimelineSet().findEventById(e.id);!r&&n.getLiveTimeline().getState(it.BACKWARDS).paginationToken;)yield e.client.scrollback(n,100),r=n.getUnfilteredTimelineSet().findEventById(e.id);if(!r)throw new Error("Failed to find event");return yield e.client.decryptEventIfNeeded(r),r})()}createNewVersion(e,n,r,o){var i=this;return Z(function*(){var s=yield i.directory.createFile(e,n,r,ld(ld({},o??{}),{},{"m.new_content":!0,"m.relates_to":{rel_type:Pn.Replace,event_id:i.id}}));return yield i.client.sendStateEvent(i.roomId,cu.name,{active:!0,name:e,version:i.version+1},s.event_id),yield i.client.sendStateEvent(i.roomId,cu.name,ld(ld({},i.indexEvent.getContent()),{},{active:!1}),i.id),s})()}getVersionHistory(){var e=this;return Z(function*(){var n=[];n.push(e);var r=e.client.getRoom(e.roomId);if(!r)throw new Error("Invalid or unknown room");var o=[...r.getLiveTimeline().getEvents()].reverse(),i,s=yield e.getFileEvent();do if(i=o.find(l=>l.replacingEventId()===s.getId()),i){var u=e.directory.getFile(i.getId());if(u)n.push(u),s=i;else break}while(i);return n})()}}function yV(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function dh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yV(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yV(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _De={invite:100,kick:100,ban:100,redact:50,state_default:50,events_default:50,users_default:0,events:{[Ce.RoomPowerLevels]:100,[Ce.RoomHistoryVisibility]:100,[Ce.RoomTombstone]:100,[Ce.RoomEncryption]:100,[Ce.RoomName]:50,[Ce.RoomMessage]:50,[Ce.RoomMessageEncrypted]:50,[Ce.Sticker]:50},users:{}},GF=function(t){return t.Viewer="viewer",t.Editor="editor",t.Owner="owner",t}({});class xV{constructor(e,n){if(this.client=e,this.roomId=n,I(this,"room",void 0),this.room=this.client.getRoom(this.roomId),!this.room)throw new Error("Unknown room")}get id(){return this.roomId}get isTopLevel(){var e=this.room.currentState.getStateEvents(Ce.SpaceParent);return e!=null&&e.length?e.every(n=>{var r;return!((r=n.getContent())!==null&&r!==void 0&&r.via)}):!0}setName(e){var n=this;return Z(function*(){yield n.client.sendStateEvent(n.roomId,Ce.RoomName,{name:e},"")})()}invite(e){var n=arguments,r=this;return Z(function*(){var o=n.length>1&&n[1]!==void 0?n[1]:!0,i=[r.retryInvite(e)];o&&i.push(...r.getDirectories().map(s=>s.invite(e,o))),yield Promise.all(i)})()}retryInvite(e){var n=this;return N1e(Z(function*(){yield n.client.invite(n.roomId,e).catch(r=>{throw(r==null?void 0:r.errcode)==="M_FORBIDDEN"?new KN.AbortError(r):r})}))}setPermissions(e,n){var r=this;return Z(function*(){var o,i=r.room.currentState.getStateEvents(Ce.RoomPowerLevels,"");if(Array.isArray(i))throw new Error("Unexpected return type for power levels");var s=(i==null?void 0:i.getContent())||{},u=s.users_default||0,l=s.events_default||50,c=((o=s.events)===null||o===void 0?void 0:o[Ce.RoomPowerLevels])||100,d=s.users||{};switch(n){case GF.Viewer:d[e]=u;break;case GF.Editor:d[e]=l;break;case GF.Owner:d[e]=c;break;default:throw new Error("Invalid role: "+n)}s.users=d,yield r.client.sendStateEvent(r.roomId,Ce.RoomPowerLevels,s,"")})()}getPermissions(e){var n,r,o=this.room.currentState.getStateEvents(Ce.RoomPowerLevels,"");if(Array.isArray(o))throw new Error("Unexpected return type for power levels");var i=(o==null?void 0:o.getContent())||{},s=i.users_default||0,u=i.events_default||50,l=((n=i.events)===null||n===void 0?void 0:n[Ce.RoomPowerLevels])||100,c=((r=i.users)===null||r===void 0?void 0:r[e])||s;return c>=l?GF.Owner:c>=u?GF.Editor:GF.Viewer}createDirectory(e){var n=this;return Z(function*(){var r=yield n.client.unstableCreateFileTree(e);return yield n.client.sendStateEvent(n.roomId,Ce.SpaceChild,{via:[n.client.getDomain()]},r.roomId),yield n.client.sendStateEvent(r.roomId,Ce.SpaceParent,{via:[n.client.getDomain()]},n.roomId),r})()}getDirectories(){var e=[],n=this.room.currentState.getStateEvents(Ce.SpaceChild);for(var r of n)try{var o=r.getStateKey();if(o){var i=this.client.unstableGetFileTreeSpace(o);i&&e.push(i)}}catch(s){Y.warn("Unable to create tree space instance for listing. Are we joined?",s)}return e}getDirectory(e){return this.getDirectories().find(n=>n.roomId===e)}delete(){var e=this;return Z(function*(){var n=e.getDirectories();for(var r of n)yield r.delete();var o=[an.Invite,an.Knock,an.Join],i=e.room.currentState.getStateEvents(Ce.RoomMember);for(var s of i){var u=s.getStateKey()!==e.client.getUserId();if(u&&o.includes(s.getContent().membership)){var l=s.getStateKey();if(!l)throw new Error("State key not found for branch");yield e.client.kick(e.roomId,l,"Room deleted")}}yield e.client.leave(e.roomId)})()}getOrderedChildren(e){var n=e.map(r=>({roomId:r.getStateKey(),order:r.getContent().order})).filter(r=>r.roomId);return n.sort((r,o)=>{if(r.order&&!o.order)return-1;if(!r.order&&o.order)return 1;if(!r.order&&!o.order){var i,s,u,l,c=this.client.getRoom(r.roomId),d=this.client.getRoom(o.roomId);if(!c||!d)return Yv(r.roomId,o.roomId);var F=(i=(s=c.currentState.getStateEvents(Ce.RoomCreate,""))===null||s===void 0?void 0:s.getTs())!==null&&i!==void 0?i:0,h=(u=(l=d.currentState.getStateEvents(Ce.RoomCreate,""))===null||l===void 0?void 0:l.getTs())!==null&&u!==void 0?u:0;return F===h?Yv(r.roomId,o.roomId):F-h}else return Yv(r.order,o.order)}),n}getParentRoom(){var e=this.room.currentState.getStateEvents(Ce.SpaceParent),n=e[0];if(!n)throw new Error("Expected to have a parent in a non-top level space");var r=n.getStateKey();if(!r)throw new Error("No state key found for parent");var o=this.client.getRoom(r);if(!o)throw new Error("Unable to locate room for parent");return o}getOrder(){if(this.isTopLevel)return-1;var e=this.getParentRoom(),n=e.currentState.getStateEvents(Ce.SpaceChild),r=this.getOrderedChildren(n);return r.findIndex(o=>o.roomId===this.roomId)}setOrder(e){var n=this;return Z(function*(){var r;if(n.isTopLevel)throw new Error("Cannot set order of top level spaces currently");var o=n.getParentRoom(),i=o.currentState.getStateEvents(Ce.SpaceChild),s=n.getOrderedChildren(i);e=Math.max(Math.min(e,s.length-1),0);var u=n.getOrder(),l=u<e;l&&e===s.length-1?e--:!l&&e===0&&e++;var c=s[l?e:e-1],d=s[l?e+1:e],F=Xc[0],h=!1;if(!c)d!=null&&d.order&&(F=rz(d.order));else if(e===s.length-1)d!=null&&d.order&&(F=yp(d.order));else{var m=c==null?void 0:c.order,D=d==null?void 0:d.order;m&&D?m===D?F=yp(m):F=z1e(m,D):m?F=yp(m):D?F=rz(D):h=!0}if(h){for(var g,p=0;p<=e;p++){var _=s[p];if(p===0&&(g=_.order),_.order)g=_.order;else{var v;g=g?yp(g):Xc[0];var E=o.currentState.getStateEvents(Ce.SpaceChild,_.roomId),b=(v=E==null?void 0:E.getContent())!==null&&v!==void 0?v:{via:[n.client.getDomain()]};yield n.client.sendStateEvent(o.roomId,Ce.SpaceChild,dh(dh({},b),{},{order:g}),_.roomId)}}g&&(F=yp(g))}var k=o.currentState.getStateEvents(Ce.SpaceChild,n.roomId),C=(r=k==null?void 0:k.getContent())!==null&&r!==void 0?r:{via:[n.client.getDomain()]};yield n.client.sendStateEvent(o.roomId,Ce.SpaceChild,dh(dh({},C),{},{order:F}),n.roomId)})()}createFile(e,n,r,o){var i=this;return Z(function*(){var{content_uri:s}=yield i.client.uploadContent(n,{includeFilename:!1});r.url=s;var u={msgtype:or.File,body:e,url:s,file:r};o=o??{},o["m.new_content"]&&(o["m.new_content"]=u);var l=yield i.client.sendMessage(i.roomId,dh(dh(dh({},o),u),{},{[Vk.name]:{}}));return yield i.client.sendStateEvent(i.roomId,cu.name,{active:!0,name:e},l.event_id),l})()}getFile(e){var n=this.room.currentState.getStateEvents(cu.name,e);return n?new EV(this.client,n,this):null}listFiles(){return this.listAllFiles().filter(e=>e.isActive)}listAllFiles(){var e,n=(e=this.room.currentState.getStateEvents(cu.name))!==null&&e!==void 0?e:[];return n.map(r=>new EV(this.client,r,this))}}var rf=function(t){return t.Recent="recent",t.Rank="rank",t}({}),hh=function(t){return t.LocalStreamsChanged="local_streams_changed",t}({});class vDe extends Cr{constructor(e){super(),this.client=e,I(this,"audioInput",void 0),I(this,"audioSettings",void 0),I(this,"videoInput",void 0),I(this,"localUserMediaStream",void 0),I(this,"userMediaStreams",[]),I(this,"screensharingStreams",[]),I(this,"getMediaStreamPromise",void 0)}restoreMediaSettings(e,n){this.audioInput=e,this.videoInput=n}setAudioInput(e){var n=this;return Z(function*(){Y.info("MediaHandler setAudioInput() running (deviceId=".concat(e,")")),n.audioInput!==e&&(n.audioInput=e,yield n.updateLocalUsermediaStreams())})()}setAudioSettings(e){var n=this;return Z(function*(){Y.info("MediaHandler setAudioSettings() running (opts=".concat(JSON.stringify(e),")")),n.audioSettings=Object.assign({},e),yield n.updateLocalUsermediaStreams()})()}setVideoInput(e){var n=this;return Z(function*(){Y.info("MediaHandler setVideoInput() running (deviceId=".concat(e,")")),n.videoInput!==e&&(n.videoInput=e,yield n.updateLocalUsermediaStreams())})()}setMediaInputs(e,n){var r=this;return Z(function*(){Y.log("MediaHandler setMediaInputs() running (audioInput: ".concat(e," videoInput: ").concat(n,")")),r.audioInput=e,r.videoInput=n,yield r.updateLocalUsermediaStreams()})()}updateLocalUsermediaStreams(){var e=this;return Z(function*(){if(e.userMediaStreams.length!==0){var n=new Map;for(var r of e.client.callEventHandler.calls.values())n.set(r.callId,{audio:r.hasLocalUserMediaAudioTrack,video:r.hasLocalUserMediaVideoTrack});for(var o of e.userMediaStreams){Y.log("MediaHandler updateLocalUsermediaStreams() stopping all tracks (streamId=".concat(o.id,")"));for(var i of o.getTracks())i.stop()}e.userMediaStreams=[],e.localUserMediaStream=void 0;for(var s of e.client.callEventHandler.calls.values())if(!(s.callHasEnded()||!n.has(s.callId))){var{audio:u,video:l}=n.get(s.callId);Y.log("MediaHandler updateLocalUsermediaStreams() calling getUserMediaStream() (callId=".concat(s.callId,")"));var c=yield e.getUserMediaStream(u,l);s.callHasEnded()||(yield s.updateLocalUsermediaStream(c))}for(var d of e.client.groupCallEventHandler.groupCalls.values())if(d.localCallFeed){Y.log("MediaHandler updateLocalUsermediaStreams() calling getUserMediaStream() (groupCallId=".concat(d.groupCallId,")"));var F=yield e.getUserMediaStream(!0,d.type===Tb.Video);d.state!==$r.Ended&&(yield d.updateLocalUsermediaStream(F))}e.emit(hh.LocalStreamsChanged)}})()}hasAudioDevice(){return Z(function*(){try{var e=yield navigator.mediaDevices.enumerateDevices();return e.filter(n=>n.kind==="audioinput").length>0}catch(n){return Y.log("MediaHandler hasAudioDevice() calling navigator.mediaDevices.enumerateDevices with error",n),!1}})()}hasVideoDevice(){return Z(function*(){try{var e=yield navigator.mediaDevices.enumerateDevices();return e.filter(n=>n.kind==="videoinput").length>0}catch(n){return Y.log("MediaHandler hasVideoDevice() calling navigator.mediaDevices.enumerateDevices with error",n),!1}})()}getUserMediaStream(e,n){var r=arguments,o=this;return Z(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:!0;return o.getMediaStreamPromise?o.getMediaStreamPromise=o.getMediaStreamPromise.then(()=>o.getUserMediaStreamInternal(e,n,i)):o.getMediaStreamPromise=o.getUserMediaStreamInternal(e,n,i),o.getMediaStreamPromise})()}getUserMediaStreamInternal(e,n,r){var o=this;return Z(function*(){var i=e&&(yield o.hasAudioDevice()),s=n&&(yield o.hasVideoDevice()),u,l=!0;if(o.localUserMediaStream){var c,d;i!==o.localUserMediaStream.getAudioTracks().length>0&&(l=!1),s!==o.localUserMediaStream.getVideoTracks().length>0&&(l=!1),i&&((c=o.localUserMediaStream.getAudioTracks()[0])===null||c===void 0||(c=c.getSettings())===null||c===void 0?void 0:c.deviceId)!==o.audioInput&&(l=!1),s&&((d=o.localUserMediaStream.getVideoTracks()[0])===null||d===void 0||(d=d.getSettings())===null||d===void 0?void 0:d.deviceId)!==o.videoInput&&(l=!1)}else l=!1;if(l){var F;if(u=o.localUserMediaStream.clone(),Y.log("MediaHandler getUserMediaStreamInternal() cloning (oldStreamId=".concat((F=o.localUserMediaStream)===null||F===void 0?void 0:F.id," newStreamId=").concat(u.id," shouldRequestAudio=").concat(i," shouldRequestVideo=").concat(s,")")),!i)for(var h of u.getAudioTracks())u.removeTrack(h);if(!s)for(var m of u.getVideoTracks())u.removeTrack(m)}else{var D=o.getUserMediaContraints(i,s);u=yield navigator.mediaDevices.getUserMedia(D),Y.log("MediaHandler getUserMediaStreamInternal() calling getUserMediaStream (streamId=".concat(u.id,", shouldRequestAudio=").concat(i,", shouldRequestVideo=").concat(s,", constraints=").concat(JSON.stringify(D),")"));for(var g of u.getTracks()){var p=g.getSettings();g.kind==="audio"?o.audioInput=p.deviceId:g.kind==="video"&&(o.videoInput=p.deviceId)}r&&(o.localUserMediaStream=u)}return r&&o.userMediaStreams.push(u),o.emit(hh.LocalStreamsChanged),u})()}stopUserMediaStream(e){Y.log("MediaHandler stopUserMediaStream() stopping (streamId=".concat(e.id,")"));for(var n of e.getTracks())n.stop();var r=this.userMediaStreams.indexOf(e);if(r!==-1&&(Y.debug("MediaHandler stopUserMediaStream() splicing usermedia stream out stream array (streamId=".concat(e.id,")"),e.id),this.userMediaStreams.splice(r,1)),this.emit(hh.LocalStreamsChanged),this.localUserMediaStream===e)this.localUserMediaStream=void 0;else for(var o of e.getTracks()){var i;if((i=this.localUserMediaStream)!==null&&i!==void 0&&i.getTrackById(o.id)){this.stopUserMediaStream(this.localUserMediaStream);break}}}getScreensharingStream(){var e=arguments,n=this;return Z(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{},o=e.length>1&&e[1]!==void 0?e[1]:!0,i;if(n.screensharingStreams.length===0){var s=n.getScreenshareContraints(r);r.desktopCapturerSourceId?(Y.debug("MediaHandler getScreensharingStream() calling getUserMedia() (opts=".concat(JSON.stringify(r),")")),i=yield navigator.mediaDevices.getUserMedia(s)):(Y.debug("MediaHandler getScreensharingStream() calling getDisplayMedia() (opts=".concat(JSON.stringify(r),")")),i=yield navigator.mediaDevices.getDisplayMedia(s))}else{var u=n.screensharingStreams[n.screensharingStreams.length-1];Y.log("MediaHandler getScreensharingStream() cloning (streamId=".concat(u.id,")")),i=u.clone()}return o&&n.screensharingStreams.push(i),n.emit(hh.LocalStreamsChanged),i})()}stopScreensharingStream(e){Y.debug("MediaHandler stopScreensharingStream() stopping stream (streamId=".concat(e.id,")"));for(var n of e.getTracks())n.stop();var r=this.screensharingStreams.indexOf(e);r!==-1&&(Y.debug("MediaHandler stopScreensharingStream() splicing stream out (streamId=".concat(e.id,")")),this.screensharingStreams.splice(r,1)),this.emit(hh.LocalStreamsChanged)}stopAllStreams(){for(var e of this.userMediaStreams){Y.log("MediaHandler stopAllStreams() stopping (streamId=".concat(e.id,")"));for(var n of e.getTracks())n.stop()}for(var r of this.screensharingStreams)for(var o of r.getTracks())o.stop();this.userMediaStreams=[],this.screensharingStreams=[],this.localUserMediaStream=void 0,this.emit(hh.LocalStreamsChanged)}getUserMediaContraints(e,n){var r=!!navigator.webkitGetUserMedia;return{audio:e?{deviceId:this.audioInput?{ideal:this.audioInput}:void 0,autoGainControl:this.audioSettings?{ideal:this.audioSettings.autoGainControl}:void 0,echoCancellation:this.audioSettings?{ideal:this.audioSettings.echoCancellation}:void 0,noiseSuppression:this.audioSettings?{ideal:this.audioSettings.noiseSuppression}:void 0}:!1,video:n?{deviceId:this.videoInput?{ideal:this.videoInput}:void 0,width:r?{exact:640}:{ideal:640},height:r?{exact:360}:{ideal:360}}:!1}}getScreenshareContraints(e){var{desktopCapturerSourceId:n,audio:r}=e;return n?{audio:r??!1,video:{mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:n}}}:{audio:r??!1,video:!0}}}var wV=function(t){return t.RequestFinished="FINISHED",t.Complete="COMPLETE",t}({}),of=function(t){return t.PreProcess="ExtState.PreProcess",t.PostProcess="ExtState.PostProcess",t}({}),Z9=function(t){return t.RoomData="SlidingSync.RoomData",t.Lifecycle="SlidingSync.Lifecycle",t}({}),bDe=3;class CDe{constructor(e){this.crypto=e}name(){return"e2ee"}when(){return of.PreProcess}onRequest(e){var n=this;return Z(function*(){return e&&(Y.log("ExtensionE2EE: invalidating all device lists due to missing 'pos'"),yield n.crypto.markAllTrackedUsersAsDirty()),{enabled:!0}})()}onResponse(e){var n=this;return Z(function*(){e.device_lists&&(yield n.crypto.processDeviceLists(e.device_lists)),yield n.crypto.processKeyCounts(e.device_one_time_keys_count,e.device_unused_fallback_key_types||e["org.matrix.msc2732.device_unused_fallback_key_types"]),n.crypto.onSyncCompleted({})})()}}class EDe{constructor(e,n){this.client=e,this.cryptoCallbacks=n,I(this,"nextBatch",null)}name(){return"to_device"}when(){return of.PreProcess}onRequest(e){var n=this;return Z(function*(){return{since:n.nextBatch!==null?n.nextBatch:void 0,limit:100,enabled:!0}})()}onResponse(e){var n=this;return Z(function*(){var r=[],o=e.events||[];o.length>0&&n.cryptoCallbacks&&(o=yield n.cryptoCallbacks.preprocessToDeviceMessages(o)),o.map(QU).map(i=>{if(i.getType()==="m.key.verification.cancel"){var s=i.getContent().transaction_id;s&&r.push(s)}return i}).forEach(i=>{var s=i.getContent();if(i.getType()=="m.room.message"&&s.msgtype=="m.bad.encrypted"){Y.log("Ignoring undecryptable to-device event from "+i.getSender());return}if(i.getType()==="m.key.verification.start"||i.getType()==="m.key.verification.request"){var u=s.transaction_id;r.includes(u)&&i.flagCancelled()}n.client.emit(st.ToDeviceEvent,i)}),n.nextBatch=e.next_batch})()}}class yDe{constructor(e){this.client=e}name(){return"account_data"}when(){return of.PostProcess}onRequest(e){return Z(function*(){return{enabled:!0}})()}onResponse(e){var n=this;return Z(function*(){e.global&&e.global.length>0&&n.processGlobalAccountData(e.global);for(var r in e.rooms){var o=YF(n.client,r,e.rooms[r]),i=n.client.getRoom(r);if(!i){Y.warn("got account data for room but room doesn't exist on client:",r);continue}i.addAccountData(o),o.forEach(s=>{n.client.emit(st.Event,s)})}})()}processGlobalAccountData(e){var n=YF(this.client,void 0,e),r=n.reduce((o,i)=>(o[i.getType()]=this.client.store.getAccountData(i.getType()),o),{});this.client.store.storeAccountDataEvents(n),n.forEach(o=>{if(o.getType()===Ce.PushRules){var i=o.getContent();this.client.setPushRules(i)}var s=r[o.getType()];return this.client.emit(st.AccountData,o,s),o})}}class xDe{constructor(e){this.client=e}name(){return"typing"}when(){return of.PostProcess}onRequest(e){return Z(function*(){return{enabled:!0}})()}onResponse(e){var n=this;return Z(function*(){if(e!=null&&e.rooms)for(var r in e.rooms)SV(n.client,r,[e.rooms[r]])})()}}class wDe{constructor(e){this.client=e}name(){return"receipts"}when(){return of.PostProcess}onRequest(e){return Z(function*(){return{enabled:!0}})()}onResponse(e){var n=this;return Z(function*(){if(e!=null&&e.rooms)for(var r in e.rooms)SV(n.client,r,[e.rooms[r]])})()}}class kV{constructor(e,n,r,o){this.slidingSync=e,this.client=n,I(this,"opts",void 0),I(this,"syncOpts",void 0),I(this,"syncState",null),I(this,"syncStateData",void 0),I(this,"lastPos",null),I(this,"failCount",0),I(this,"notifEvents",[]),this.opts=ZU(r),this.syncOpts=JU(o),n.getNotifTimelineSet()&&n.reEmitter.reEmit(n.getNotifTimelineSet(),[Ke.Timeline,Ke.TimelineReset]),this.slidingSync.on(Z9.Lifecycle,this.onLifecycle.bind(this)),this.slidingSync.on(Z9.RoomData,this.onRoomData.bind(this));var i=[new EDe(this.client,this.syncOpts.cryptoCallbacks),new yDe(this.client),new xDe(this.client),new wDe(this.client)];this.syncOpts.cryptoCallbacks&&i.push(new CDe(this.syncOpts.cryptoCallbacks)),i.forEach(s=>{this.slidingSync.registerExtension(s)})}onRoomData(e,n){var r=this;return Z(function*(){var o=r.client.store.getRoom(e);if(!o){if(!n.initial){Y.debug("initial flag not set but no stored room exists for room ",e,n);return}o=XU(r.client,e,r.opts)}yield r.processRoomData(r.client,o,n)})()}onLifecycle(e,n,r){switch(r&&Y.debug("onLifecycle",e,r),e){case wV.Complete:if(this.purgeNotifications(),!n)break;this.lastPos||this.updateSyncState(bn.Prepared,{oldSyncToken:void 0,nextSyncToken:n.pos,catchingUp:!1,fromCache:!1}),this.updateSyncState(bn.Syncing,{oldSyncToken:this.lastPos,nextSyncToken:n.pos,catchingUp:!1,fromCache:!1}),this.lastPos=n.pos;break;case wV.RequestFinished:if(r){if(this.failCount+=1,this.updateSyncState(this.failCount>bDe?bn.Error:bn.Reconnecting,{error:new tn(r)}),this.shouldAbortSync(new tn(r)))return}else this.failCount=0,Y.log("SlidingSyncState.RequestFinished with ".concat(Object.keys((n==null?void 0:n.rooms)||[]).length," rooms"));break}}syncLeftRooms(){return Z(function*(){return[]})()}peek(e){return Z(function*(){return null})()}stopPeeking(){}setPresence(e){}getSyncState(){return this.syncState}getSyncStateData(){var e;return(e=this.syncStateData)!==null&&e!==void 0?e:null}createRoom(e){var{timelineSupport:n}=this.client,r=new kb(e,this.client,this.client.getUserId(),{lazyLoadMembers:this.opts.lazyLoadMembers,pendingEventOrdering:this.opts.pendingEventOrdering,timelineSupport:n});return this.client.reEmitter.reEmit(r,[Ke.Name,Ke.Redaction,Ke.RedactionCancelled,Ke.Receipt,Ke.Tags,Ke.LocalEchoUpdated,Ke.AccountData,Ke.MyMembership,Ke.Timeline,Ke.TimelineReset]),this.registerStateListeners(r),r}registerStateListeners(e){this.client.reEmitter.reEmit(e.currentState,[Zt.Events,Zt.Members,Zt.NewMember,Zt.Update]),e.currentState.on(Zt.NewMember,(n,r,o)=>{var i;o.user=(i=this.client.getUser(o.userId))!==null&&i!==void 0?i:void 0,this.client.reEmitter.reEmit(o,[oo.Name,oo.Typing,oo.PowerLevel,oo.Membership])})}shouldAbortSync(e){return e.errcode==="M_UNKNOWN_TOKEN"?(Y.warn("Token no longer valid - assuming logout"),this.stop(),this.updateSyncState(bn.Error,{error:e}),!0):!1}processRoomData(e,n,r){var o=this;return Z(function*(){r=kDe(e,n.roomId,r);var i=YF(o.client,n.roomId,r.required_state),s=YF(o.client,n.roomId,r.timeline,!1),u=[];if(r.limited||r.initial){var l=new Set;n.getLiveTimeline().getEvents().forEach(v=>{l.add(v.getId())});for(var c=[],d=[],F=!1,h=s.length-1;h>=0;h--){var m=s[h];if(l.has(m.getId())){F=!0;continue}F?c.push(m):d.unshift(m)}s=d,c.length>0&&n.addEventsToTimeline(c,!0,!1,n.getLiveTimeline(),r.prev_batch)}var D=n.hasEncryptionStateEvent();if(r.notification_count!=null&&n.setUnreadNotificationCount(Ln.Total,r.notification_count),r.highlight_count!=null&&(!D||D&&n.getUnreadNotificationCount(Ln.Highlight)<=0)&&n.setUnreadNotificationCount(Ln.Highlight,r.highlight_count),r.bump_stamp&&n.setBumpStamp(r.bump_stamp),Number.isInteger(r.invited_count)&&n.currentState.setInvitedMemberCount(r.invited_count),Number.isInteger(r.joined_count)&&n.currentState.setJoinedMemberCount(r.joined_count),r.invite_state){var g=YF(o.client,n.roomId,r.invite_state);yield o.injectRoomEvents(n,g),r.initial&&(n.recalculate(),o.client.store.storeRoom(n),o.client.emit(st.Room,n)),g.forEach(v=>{o.client.emit(st.Event,v)});return}if(r.limited){var p;n.getLiveTimeline().setPaginationToken((p=r.prev_batch)!==null&&p!==void 0?p:null,it.BACKWARDS)}yield o.injectRoomEvents(n,i,s,r.num_live),n.addEphemeralEvents(u),n.updateMyMembership(an.Join),n.setMSC4186SummaryData(r.heroes,r.joined_count,r.invited_count),n.recalculate(),r.initial&&(e.store.storeRoom(n),e.emit(st.Room,n)),o.addNotifications(s);var _=function(){var v=Z(function*(E){e.emit(st.Event,E),E.isState()&&E.getType()==Ce.RoomEncryption&&o.syncOpts.cryptoCallbacks&&(yield o.syncOpts.cryptoCallbacks.onCryptoEvent(n,E))});return function(E){return v.apply(this,arguments)}}();yield BF(i,_),yield BF(s,_),u.forEach(function(v){e.emit(st.Event,v)}),n.decryptCriticalEvents()})()}injectRoomEvents(e,n){var r=arguments,o=this;return Z(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:[],s=r.length>3&&r[3]!==void 0?r[3]:0,u=e.getLiveTimeline(),l=u.getEvents().length==0;if(l){for(var c of n)o.client.getPushActionsForEvent(c);u.initialiseState(n)}l||(e.oldState.setStateEvents(n),e.currentState.setStateEvents(n));var d=[];s>0&&(d=i.slice(-1*s),i=i.slice(0,-1*d.length)),yield e.addLiveEvents(i,{fromCache:!0,addToState:!1}),d.length>0&&(yield e.addLiveEvents(d,{fromCache:!1,addToState:!1})),e.recalculate(),o.resolveInvites(e)})()}resolveInvites(e){if(!(!e||!this.opts.resolveInvitesToProfiles)){var n=this.client;e.getMembersWithMembership(an.Invite).forEach(function(r){if(!r.requestedProfileInfo){r.requestedProfileInfo=!0;var o=n.getUser(r.userId),i;o?i=Promise.resolve({avatar_url:o.avatarUrl,displayname:o.displayName}):i=n.getProfileInfo(r.userId),i.then(function(s){var u=r.events.member;u.getContent().membership===an.Invite&&(u.getContent().avatar_url=s.avatar_url,u.getContent().displayname=s.displayname,r.setMembershipEvent(u,e.currentState))},function(s){})}})}}retryImmediately(){return!0}sync(){var e=this;return Z(function*(){for(Y.debug("Sliding sync init loop");!e.client.isGuest();)try{Y.debug("Getting push rules...");var n=yield e.client.getPushRules();Y.debug("Got push rules"),e.client.pushRules=n;break}catch(r){if(Y.error("Getting push rules failed",r),e.shouldAbortSync(r))return}yield e.slidingSync.start()})()}stop(){Y.debug("SyncApi.stop"),this.slidingSync.stop()}updateSyncState(e,n){var r=this.syncState;this.syncState=e,this.syncStateData=n,this.client.emit(st.Sync,this.syncState,r,n)}addNotifications(e){if(this.client.getNotifTimelineSet())for(var n of e){var r=this.client.getPushActionsForEvent(n);r&&r.notify&&r.tweaks&&r.tweaks.highlight&&this.notifEvents.push(n)}}purgeNotifications(){this.notifEvents.sort(function(e,n){return e.getTs()-n.getTs()}),this.notifEvents.forEach(e=>{var n;(n=this.client.getNotifTimelineSet())===null||n===void 0||n.addLiveEvent(e,{addToState:!1})}),this.notifEvents=[]}}function kDe(t,e,n){if(!n.name)return n;for(var r of n.required_state)if(r.type===Ce.RoomName&&r.state_key==="")return r.content={name:n.name},n;return n.required_state.push({event_id:"$fake-sliding-sync-name-event-"+e,state_key:"",type:Ce.RoomName,content:{name:n.name},sender:t.getUserId(),origin_server_ts:new Date().getTime()}),n}function YF(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=t.getEventMapper({decrypt:r});return n.map(function(i){return i.room_id=e,o(i)})}function SV(t,e,n){var r=YF(t,e,n),o=t.getRoom(e);if(!o){Y.warn("got ephemeral events for room but room doesn't exist on client:",e);return}o.addEphemeralEvents(r),r.forEach(i=>{t.emit(st.Event,i)})}var J9=new ro("m.beacon_info","org.matrix.msc3672.beacon_info"),X9=new ro("m.beacon","org.matrix.msc3672.beacon");class ZF{static RETRY_BACKOFF_RATELIMIT(e,n,r){return ix(r,n,!1)}static QUEUE_MESSAGES(e){return e.getType()===Ce.RoomMessage||e.hasAssociation()?"message":null}constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ZF.RETRY_BACKOFF_RATELIMIT,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ZF.QUEUE_MESSAGES;this.retryAlgorithm=e,this.queueAlgorithm=n,I(this,"queues",{}),I(this,"activeQueues",[]),I(this,"procFn",null),I(this,"processQueue",r=>{var o=this.peekNextEvent(r);if(!o){this.disableQueue(r);return}this.queues[r].length,Promise.resolve().then(()=>this.procFn(o.event)).then(i=>{this.removeNextEvent(r),o.event.getId(),o.defer.resolve(i),this.processQueue(r)},i=>{o.attempts+=1;var s=this.retryAlgorithm(o.event,o.attempts,i);o.attempts,o.event.getId(),s===-1?(Y.info("Queue '%s' giving up on event %s",r,o.event.getId()),this.clearQueue(r,i)):setTimeout(this.processQueue,s,r)})})}getQueueForEvent(e){var n=this.queueAlgorithm(e);return!n||!this.queues[n]?null:this.queues[n].map(function(r){return r.event})}removeEventFromQueue(e){var n=this.queueAlgorithm(e);if(!n||!this.queues[n])return!1;var r=!1;return Kv(this.queues[n],o=>o.event.getId()===e.getId()?(r=!0,!0):!1),r}setProcessFunction(e){this.procFn=e,this.startProcessingQueues()}queueEvent(e){var n=this.queueAlgorithm(e);if(!n)return null;this.queues[n]||(this.queues[n]=[]);var r=ll();return this.queues[n].push({event:e,defer:r,attempts:0}),e.getId(),this.startProcessingQueues(),r.promise}startProcessingQueues(){this.procFn&&Object.keys(this.queues).filter(e=>this.activeQueues.indexOf(e)===-1&&this.queues[e].length>0).forEach(e=>{this.activeQueues.push(e),this.processQueue(e)})}disableQueue(e){var n=this.activeQueues.indexOf(e);n>=0&&this.activeQueues.splice(n,1),Y.info("Stopping queue '%s' as it is now empty",e)}clearQueue(e,n){Y.info("clearing queue '%s'",e);for(var r;r=this.removeNextEvent(e);)r.defer.reject(n);this.disableQueue(e)}peekNextEvent(e){var n=this.queues[e];if(Array.isArray(n))return n[0]}removeNextEvent(e){var n=this.queues[e];if(Array.isArray(n))return n.shift()}}var jV=20;class SDe{constructor(e){var n=this;this.client=e,I(this,"sending",!1),I(this,"running",!0),I(this,"retryTimeout",null),I(this,"retryAttempts",0),I(this,"sendQueue",Z(function*(){if(n.retryTimeout!==null&&clearTimeout(n.retryTimeout),n.retryTimeout=null,!(n.sending||!n.running)){Y.debug("Attempting to send queued to-device messages"),n.sending=!0;var r;try{for(;n.running&&(r=yield n.client.store.getOldestToDeviceBatch(),r!==null);)yield n.sendBatch(r),yield n.client.store.removeToDeviceBatch(r.id),n.retryAttempts=0;if(!n.running)return;Y.debug("All queued to-device messages sent")}catch(i){++n.retryAttempts;var o=ZF.RETRY_BACKOFF_RATELIMIT(null,n.retryAttempts,i);if(o===-1){Math.floor(i.httpStatus/100)===4?(Y.error("Fatal error when sending to-device message - dropping to-device batch!",i),yield n.client.store.removeToDeviceBatch(r.id)):Y.info("Automatic retry limit reached for to-device messages.");return}Y.info("Failed to send batch of to-device messages. Will retry in ".concat(o,"ms"),i),n.retryTimeout=setTimeout(n.sendQueue,o)}finally{n.sending=!1}}})),I(this,"onResumedSync",(r,o)=>{r===bn.Syncing&&o!==bn.Syncing&&(Y.info("Resuming queue after resumed sync"),this.sendQueue())})}start(){this.running=!0,this.sendQueue(),this.client.on(st.Sync,this.onResumedSync)}stop(){this.running=!1,this.retryTimeout!==null&&clearTimeout(this.retryTimeout),this.retryTimeout=null,this.client.removeListener(st.Sync,this.onResumedSync)}queueBatch(e){var n=this;return Z(function*(){for(var r=[],o=0;o<e.batch.length;o+=jV){var i={eventType:e.eventType,batch:e.batch.slice(o,o+jV),txnId:n.client.makeTxnId()};r.push(i);var s=i.batch.map(u=>"".concat(u.userId,"/").concat(u.deviceId," (msgid ").concat(u.payload[WD],")"));Y.info("Enqueuing batch of to-device messages. type=".concat(e.eventType," txnid=").concat(i.txnId),s)}yield n.client.store.saveToDeviceBatches(r),n.sendQueue()})()}sendBatch(e){var n=this;return Z(function*(){var r=new eu(()=>new Map);for(var o of e.batch)r.getOrCreate(o.userId).set(o.deviceId,o.payload);Y.info("Sending batch of ".concat(e.batch.length," to-device messages with ID ").concat(e.id," and txnId ").concat(e.txnId)),yield n.client.sendToDevice(e.eventType,r,e.txnId)})()}}var Q9=new Si.UnstableValue("m.policies","org.matrix.msc3847.policies"),Lb=new Si.UnstableValue("m.ignore.invites","org.matrix.msc3847.ignore.invites"),BV=function(t){return t.Ban="m.ban",t}({}),JF=function(t){return t.User="m.policy.user",t.Room="m.policy.room",t.Server="m.policy.server",t}({}),AV={[JF.User]:Ce.PolicyRuleUser,[JF.Room]:Ce.PolicyRuleRoom,[JF.Server]:Ce.PolicyRuleServer};class jDe{constructor(e){this.client=e}addRule(e,n,r){var o=this;return Z(function*(){var i=yield o.getOrCreateTargetRoom(),s=yield o.client.sendStateEvent(i.roomId,AV[e],{entity:n,reason:r,recommendation:BV.Ban});return s.event_id})()}removeRule(e){var n=this;return Z(function*(){yield n.client.redactEvent(e.getRoomId(),e.getId())})()}addSource(e){var n=this;return Z(function*(){yield n.client.joinRoom(e);var r=(yield n.getOrCreateSourceRooms()).map(o=>o.roomId);return r.includes(e)?!1:(r.push(e),yield n.withIgnoreInvitesPolicies(o=>{o.sources=r}),!0)})()}getRuleForInvite(e){var n=this;return Z(function*(){var{sender:r,roomId:o}=e,i=yield n.getOrCreateSourceRooms(),s=r.split(":")[1],u=o.split(":")[1];for(var l of i){var c=l.getUnfilteredTimelineSet().getLiveTimeline().getState(it.FORWARDS);for(var{scope:d,entities:F}of[{scope:JF.Room,entities:[o]},{scope:JF.User,entities:[r]},{scope:JF.Server,entities:[s,u]}]){var h=c.getStateEvents(AV[d]);for(var m of h){var D=m.getContent();if((D==null?void 0:D.recommendation)==BV.Ban){var g=D==null?void 0:D.entity;if(g){var p=void 0;try{p=new RegExp(ez(g))}catch{continue}for(var _ of F)if(_&&p.test(_))return m}}}}}return null})()}getOrCreateTargetRoom(){var e=this;return Z(function*(){var n=e.getIgnoreInvitesPolicies(),r=n.target;if(typeof r!="string"&&(r=null),r){var o=e.client.getRoom(r);if(o)return o;r=null}return r=(yield e.client.createRoom({name:"Individual Policy Room",preset:Mb.PrivateChat})).room_id,yield e.withIgnoreInvitesPolicies(i=>{i.target=r}),e.client.getRoom(r)})()}getOrCreateSourceRooms(){var e=this;return Z(function*(){var n=e.getIgnoreInvitesPolicies(),r=n.sources,o=!1;Array.isArray(r)||(o=!0,r=[]);var i=r.filter(u=>typeof u=="string").map(u=>e.client.getRoom(u)).filter(u=>!!u);if(i.length!=r.length&&(o=!0),i.length==0){var s=yield e.getOrCreateTargetRoom();o=!0,i=[s]}return o&&(yield e.withIgnoreInvitesPolicies(u=>{u.sources=r})),i})()}getIgnoreInvitesPolicies(){return this.getPoliciesAndIgnoreInvitesPolicies().ignoreInvitesPolicies}withIgnoreInvitesPolicies(e){var n=this;return Z(function*(){var{policies:r,ignoreInvitesPolicies:o}=n.getPoliciesAndIgnoreInvitesPolicies();e(o),r[Lb.name]=o,yield n.client.setAccountData(Q9.name,r)})()}getPoliciesAndIgnoreInvitesPolicies(){var e={};for(var n of[Q9.name,Q9.altName]){var r;if(n){var o=(r=this.client.getAccountData(n))===null||r===void 0?void 0:r.getContent();if(o){e=o;break}}}var i={},s=!1;for(var u of[Lb.name,Lb.altName])if(u){var l=e[u];if(l&&typeof l=="object"){i=l,s=!0;break}}return s||(e[Lb.name]=i),{policies:e,ignoreInvitesPolicies:i}}}let Nb;Nb="matrix-js-sdk",sx=function(t){return t.Change="change",t}({}),Ec=function(t){return t[t.Unsent=1]="Unsent",t[t.Requested=2]="Requested",t[t.Ready=3]="Ready",t[t.Started=4]="Started",t[t.Cancelled=5]="Cancelled",t[t.Done=6]="Done",t}({}),KD=function(t){return t.Cancel="cancel",t.ShowSas="show_sas",t.ShowReciprocateQr="show_reciprocate_qr",t}({});function BDe(t){if(t.length>=255)throw new TypeError("Alphabet too long");const e=new Uint8Array(256);for(let c=0;c<e.length;c++)e[c]=255;for(let c=0;c<t.length;c++){const d=t.charAt(c),F=d.charCodeAt(0);if(e[F]!==255)throw new TypeError(d+" is ambiguous");e[F]=c}const n=t.length,r=t.charAt(0),o=Math.log(n)/Math.log(256),i=Math.log(256)/Math.log(n);function s(c){if(c instanceof Uint8Array||(ArrayBuffer.isView(c)?c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength):Array.isArray(c)&&(c=Uint8Array.from(c))),!(c instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(c.length===0)return"";let d=0,F=0,h=0;const m=c.length;for(;h!==m&&c[h]===0;)h++,d++;const D=(m-h)*i+1>>>0,g=new Uint8Array(D);for(;h!==m;){let v=c[h],E=0;for(let b=D-1;(v!==0||E<F)&&b!==-1;b--,E++)v+=256*g[b]>>>0,g[b]=v%n>>>0,v=v/n>>>0;if(v!==0)throw new Error("Non-zero carry");F=E,h++}let p=D-F;for(;p!==D&&g[p]===0;)p++;let _=r.repeat(d);for(;p<D;++p)_+=t.charAt(g[p]);return _}function u(c){if(typeof c!="string")throw new TypeError("Expected String");if(c.length===0)return new Uint8Array;let d=0,F=0,h=0;for(;c[d]===r;)F++,d++;const m=(c.length-d)*o+1>>>0,D=new Uint8Array(m);for(;d<c.length;){const v=c.charCodeAt(d);if(v>255)return;let E=e[v];if(E===255)return;let b=0;for(let k=m-1;(E!==0||b<h)&&k!==-1;k--,b++)E+=n*D[k]>>>0,D[k]=E%256>>>0,E=E/256>>>0;if(E!==0)throw new Error("Non-zero carry");h=b,d++}let g=m-h;for(;g!==m&&D[g]===0;)g++;const p=new Uint8Array(F+(m-g));let _=F;for(;g!==m;)p[_++]=D[g++];return p}function l(c){const d=u(c);if(d)return d;throw new Error("Non-base"+n+" character")}return{encode:s,decodeUnsafe:u,decode:l}}var ADe="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const TV=BDe(ADe);var cd=[139,1],IV=32;Poe=function(t){var e,n=new Uint8Array(cd.length+t.length+1);n.set(cd,0),n.set(t,cd.length);for(var r=0,o=0;o<n.length-1;++o)r^=n[o];n[n.length-1]=r;var i=TV.encode(n);return(e=i.match(/.{1,4}/g))===null||e===void 0?void 0:e.join(" ")};function TDe(t){var e=TV.decode(t.replace(/ /g,"")),n=0;for(var r of e)n^=r;if(n!==0)throw new Error("Incorrect parity");for(var o=0;o<cd.length;++o)if(e[o]!==cd[o])throw new Error("Incorrect prefix");if(e.length!==cd.length+IV+1)throw new Error("Incorrect length");return Uint8Array.from(e.slice(cd.length,cd.length+IV))}var IDe=256;II=function(t,e,n){return e5.apply(this,arguments)};function e5(){return e5=Z(function*(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:IDe;if(!globalThis.crypto.subtle||!TextEncoder)throw new Error("Password-based backup is not available on this platform");var o=yield globalThis.crypto.subtle.importKey("raw",new TextEncoder().encode(t),{name:"PBKDF2"},!1,["deriveBits"]),i=yield globalThis.crypto.subtle.deriveBits({name:"PBKDF2",salt:new TextEncoder().encode(e),iterations:n,hash:"SHA-512"},o,r);return new Uint8Array(i)}),e5.apply(this,arguments)}Jn=function(t){return t.UserTrustStatusChanged="userTrustStatusChanged",t.KeyBackupStatus="crypto.keyBackupStatus",t.KeyBackupFailed="crypto.keyBackupFailed",t.KeyBackupSessionsRemaining="crypto.keyBackupSessionsRemaining",t.KeyBackupDecryptionKeyCached="crypto.keyBackupDecryptionKeyCached",t.VerificationRequestReceived="crypto.verificationRequestReceived",t.WillUpdateDevices="crypto.willUpdateDevices",t.DevicesUpdated="crypto.devicesUpdated",t.KeysChanged="crossSigning.keysChanged",t.LegacyCryptoStoreMigrationProgress="crypto.legacyCryptoStoreMigrationProgress",t.DehydratedDeviceCreated="dehydration.DehydratedDeviceCreated",t.DehydratedDeviceUploaded="dehydration.DehydratedDeviceUploaded",t.RehydrationStarted="dehydration.RehydrationStarted",t.RehydrationProgress="dehydration.RehydrationProgress",t.RehydrationCompleted="dehydration.RehydrationCompleted",t.RehydrationError="dehydration.RehydrationError",t.DehydrationKeyCached="dehydration.DehydrationKeyCached",t.DehydratedDeviceRotationError="dehydration.DehydratedDeviceRotationError",t}({}),ox=function(t){return t.MEGOLM_UNKNOWN_INBOUND_SESSION_ID="MEGOLM_UNKNOWN_INBOUND_SESSION_ID",t.MEGOLM_KEY_WITHHELD="MEGOLM_KEY_WITHHELD",t.MEGOLM_KEY_WITHHELD_FOR_UNVERIFIED_DEVICE="MEGOLM_KEY_WITHHELD_FOR_UNVERIFIED_DEVICE",t.OLM_UNKNOWN_MESSAGE_INDEX="OLM_UNKNOWN_MESSAGE_INDEX",t.HISTORICAL_MESSAGE_NO_KEY_BACKUP="HISTORICAL_MESSAGE_NO_KEY_BACKUP",t.HISTORICAL_MESSAGE_BACKUP_UNCONFIGURED="HISTORICAL_MESSAGE_BACKUP_UNCONFIGURED",t.HISTORICAL_MESSAGE_WORKING_BACKUP="HISTORICAL_MESSAGE_WORKING_BACKUP",t.HISTORICAL_MESSAGE_USER_NOT_JOINED="HISTORICAL_MESSAGE_USER_NOT_JOINED",t.SENDER_IDENTITY_PREVIOUSLY_VERIFIED="SENDER_IDENTITY_PREVIOUSLY_VERIFIED",t.UNSIGNED_SENDER_DEVICE="UNSIGNED_SENDER_DEVICE",t.UNKNOWN_SENDER_DEVICE="UNKNOWN_SENDER_DEVICE",t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.MEGOLM_BAD_ROOM="MEGOLM_BAD_ROOM",t.MEGOLM_MISSING_FIELDS="MEGOLM_MISSING_FIELDS",t.OLM_DECRYPT_GROUP_MESSAGE_ERROR="OLM_DECRYPT_GROUP_MESSAGE_ERROR",t.OLM_BAD_ENCRYPTED_MESSAGE="OLM_BAD_ENCRYPTED_MESSAGE",t.OLM_BAD_RECIPIENT="OLM_BAD_RECIPIENT",t.OLM_BAD_RECIPIENT_KEY="OLM_BAD_RECIPIENT_KEY",t.OLM_BAD_ROOM="OLM_BAD_ROOM",t.OLM_BAD_SENDER_CHECK_FAILED="OLM_BAD_SENDER_CHECK_FAILED",t.OLM_BAD_SENDER="OLM_BAD_SENDER",t.OLM_FORWARDED_MESSAGE="OLM_FORWARDED_MESSAGE",t.OLM_MISSING_CIPHERTEXT="OLM_MISSING_CIPHERTEXT",t.OLM_NOT_INCLUDED_IN_RECIPIENTS="OLM_NOT_INCLUDED_IN_RECIPIENTS",t.UNKNOWN_ENCRYPTION_ALGORITHM="UNKNOWN_ENCRYPTION_ALGORITHM",t}({}),SI=function(t){return t[t.AllDevicesIsolationMode=0]="AllDevicesIsolationMode",t[t.OnlySignedDevicesIsolationMode=1]="OnlySignedDevicesIsolationMode",t}({}),Ooe=class{constructor(t){this.errorOnVerifiedUserProblems=t,I(this,"kind",SI.AllDevicesIsolationMode)}},Uoe=class{constructor(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;this.crossSigningVerified=t,this.crossSigningVerifiedBefore=e,this.tofu=n,I(this,"needsUserApproval",void 0),this.needsUserApproval=r}isVerified(){return this.isCrossSigningVerified()}isCrossSigningVerified(){return this.crossSigningVerified}wasCrossSigningVerified(){return this.crossSigningVerifiedBefore}isTofu(){return this.tofu}},qoe=class{constructor(t){var e,n,r,o,i;I(this,"signedByOwner",void 0),I(this,"crossSigningVerified",void 0),I(this,"tofu",void 0),I(this,"localVerified",void 0),I(this,"trustCrossSignedDevices",void 0),this.signedByOwner=(e=t.signedByOwner)!==null&&e!==void 0?e:!1,this.crossSigningVerified=(n=t.crossSigningVerified)!==null&&n!==void 0?n:!1,this.tofu=(r=t.tofu)!==null&&r!==void 0?r:!1,this.localVerified=(o=t.localVerified)!==null&&o!==void 0?o:!1,this.trustCrossSignedDevices=(i=t.trustCrossSignedDevices)!==null&&i!==void 0?i:!1}isVerified(){return this.localVerified||this.trustCrossSignedDevices&&this.crossSigningVerified}};let RV;nx=function(t){return t.Fetch="fetch",t.LoadKeys="load_keys",t}({}),Moe=function(t){return t.Master="master",t.SelfSigning="self_signing",t.UserSigning="user_signing",t}({}),Noe=function(t){return t[t.NONE=0]="NONE",t[t.GREY=1]="GREY",t[t.RED=2]="RED",t}({}),zoe=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.UNVERIFIED_IDENTITY=1]="UNVERIFIED_IDENTITY",t[t.UNSIGNED_DEVICE=2]="UNSIGNED_DEVICE",t[t.UNKNOWN_DEVICE=3]="UNKNOWN_DEVICE",t[t.AUTHENTICITY_NOT_GUARANTEED=4]="AUTHENTICITY_NOT_GUARANTEED",t[t.MISMATCHED_SENDER_KEY=5]="MISMATCHED_SENDER_KEY",t[t.SENT_IN_CLEAR=6]="SENT_IN_CLEAR",t[t.VERIFICATION_VIOLATION=7]="VERIFICATION_VIOLATION",t}({}),RV=new Uint8Array(8);function OV(t,e){return t5.apply(this,arguments)}function t5(){return t5=Z(function*(t,e){var n=yield globalThis.crypto.subtle.importKey("raw",t,{name:"HKDF"},!1,["deriveBits"]),r=yield globalThis.crypto.subtle.deriveBits({name:"HKDF",salt:RV,info:new TextEncoder().encode(e),hash:"SHA-256"},n,512),o=r.slice(0,32),i=r.slice(32),s=globalThis.crypto.subtle.importKey("raw",o,{name:"AES-CTR"},!1,["encrypt","decrypt"]),u=globalThis.crypto.subtle.importKey("raw",i,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign","verify"]);return Promise.all([s,u])}),t5.apply(this,arguments)}function MV(t,e,n,r){return n5.apply(this,arguments)}function n5(){return n5=Z(function*(t,e,n,r){var o;r?o=y1(r):(o=new Uint8Array(16),globalThis.crypto.getRandomValues(o),o[8]&=127);var[i,s]=yield OV(e,n),u=new TextEncoder().encode(t),l=yield globalThis.crypto.subtle.encrypt({name:"AES-CTR",counter:o,length:64},i,u),c=yield globalThis.crypto.subtle.sign({name:"HMAC"},s,l);return{iv:GD(o),ciphertext:GD(new Uint8Array(l)),mac:GD(new Uint8Array(c))}}),n5.apply(this,arguments)}BI=function(t,e,n){return r5.apply(this,arguments)};function r5(){return r5=Z(function*(t,e,n){var[r,o]=yield OV(e,n),i=y1(t.ciphertext);if(!(yield globalThis.crypto.subtle.verify({name:"HMAC"},o,y1(t.mac),i)))throw new Error("Error decrypting secret ".concat(n,": bad MAC"));var s=yield globalThis.crypto.subtle.decrypt({name:"AES-CTR",counter:y1(t.iv),length:64},r,i);return new TextDecoder().decode(new Uint8Array(s))}),r5.apply(this,arguments)}Cc="m.secret_storage.v1.aes-hmac-sha2";class PV{constructor(e,n){this.accountDataAdapter=e,this.callbacks=n}getDefaultKeyId(){var e=this;return Z(function*(){var n,r=yield e.accountDataAdapter.getAccountDataFromServer("m.secret_storage.default_key");return r&&(n=r.key)!==null&&n!==void 0?n:null})()}setDefaultKeyId(e){return new Promise((n,r)=>{var o=s=>{if(s.getType()==="m.secret_storage.default_key"){var u=s.getContent(),l=e===null?Object.keys(u).length===0:u.key===e;l&&(this.accountDataAdapter.removeListener(st.AccountData,o),n())}};this.accountDataAdapter.on(st.AccountData,o);var i=e===null?{}:{key:e};this.accountDataAdapter.setAccountData("m.secret_storage.default_key",i).catch(s=>{this.accountDataAdapter.removeListener(st.AccountData,o),r(s)})})}addKey(e,n,r){var o=this;return Z(function*(){if(e!==Cc)throw new Error("Unknown key algorithm ".concat(e));var i={algorithm:e};n.name&&(i.name=n.name),n.passphrase&&(i.passphrase=n.passphrase);var{iv:s,mac:u}=yield i5(n.key);if(i.iv=s,i.mac=u,!r)do r=ul(32);while(yield o.accountDataAdapter.getAccountDataFromServer("m.secret_storage.key.".concat(r)));return yield o.accountDataAdapter.setAccountData("m.secret_storage.key.".concat(r),i),{keyId:r,keyInfo:i}})()}getKey(e){var n=this;return Z(function*(){if(e||(e=yield n.getDefaultKeyId()),!e)return null;var r=yield n.accountDataAdapter.getAccountDataFromServer("m.secret_storage.key.".concat(e));return r?[e,r]:null})()}hasKey(e){var n=this;return Z(function*(){var r=yield n.getKey(e);return!!r})()}checkKey(e,n){return Z(function*(){if(n.algorithm===Cc)if(n.mac){var{mac:r}=yield i5(e,n.iv);return o5(n.mac)===o5(r)}else return!0;else throw new Error("Unknown algorithm")})()}store(e,n,r){var o=this;return Z(function*(){if(n===null){yield o.accountDataAdapter.setAccountData(e,{});return}var i={};if(!r){var s=yield o.getDefaultKeyId();if(!s)throw new Error("No keys specified and no default key present");r=[s]}if(r.length===0)throw new Error("Zero keys given to encrypt with!");for(var u of r){var l=yield o.accountDataAdapter.getAccountDataFromServer("m.secret_storage.key.".concat(u));if(!l)throw new Error("Unknown key: "+u);if(l.algorithm===Cc){var c={[u]:l},[,d]=yield o.getSecretStorageKey(c,e);i[u]=yield d.encrypt(n)}else Y.warn("unknown algorithm for secret storage key "+u+": "+l.algorithm)}yield o.accountDataAdapter.setAccountData(e,{encrypted:i})})()}get(e){var n=this;return Z(function*(){var r=yield n.accountDataAdapter.getAccountDataFromServer(e);if(r){if(!r.encrypted)throw new Error("Content is not encrypted!");var o={};for(var i of Object.keys(r.encrypted)){var s=yield n.accountDataAdapter.getAccountDataFromServer("m.secret_storage.key.".concat(i)),u=r.encrypted[i];(s==null?void 0:s.algorithm)===Cc&&u.iv&&u.ciphertext&&u.mac&&(o[i]=s)}if(Object.keys(o).length===0)throw new Error("Could not decrypt ".concat(e," because none of ")+"the keys it is encrypted with are for a supported algorithm");var[l,c]=yield n.getSecretStorageKey(o,e),d=r.encrypted[l];return c.decrypt(d)}})()}isStored(e){var n=this;return Z(function*(){var r=yield n.accountDataAdapter.getAccountDataFromServer(e);if(!(r!=null&&r.encrypted))return null;var o={};for(var i of Object.keys(r.encrypted)){var s=yield n.accountDataAdapter.getAccountDataFromServer("m.secret_storage.key.".concat(i));if(s){var u=r.encrypted[i];s.algorithm===Cc&&u.iv&&u.ciphertext&&u.mac&&(o[i]=s)}}return Object.keys(o).length?o:null})()}getSecretStorageKey(e,n){var r=this;return Z(function*(){if(!r.callbacks.getSecretStorageKey)throw new Error("No getSecretStorageKey callback supplied");var o=yield r.callbacks.getSecretStorageKey({keys:e},n);if(!o)throw new Error("getSecretStorageKey callback returned falsey");if(o.length<2)throw new Error("getSecretStorageKey callback returned invalid data");var[i,s]=o;if(!e[i])throw new Error("App returned unknown key from getSecretStorageKey!");if(e[i].algorithm===Cc){var u={encrypt:function(l){return MV(l,s,n)},decrypt:function(l){return BI(l,s,n)}};return[i,u]}else throw new Error("Unknown key type: "+e[i].algorithm)})()}}function o5(t){for(var e=t.length;e>=1&&t.charCodeAt(e-1)==61;)e--;return e<t.length?t.substring(0,e):t}var RDe="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";function i5(t,e){return MV(RDe,t,"",e)}const ODe=Object.freeze(Object.defineProperty({__proto__:null,SECRET_STORAGE_ALGORITHM_V1_AES:Cc,ServerSideSecretStorageImpl:PV,calculateKeyCheck:i5,trimTrailingEquals:o5},Symbol.toStringTag,{value:"Module"}));var a5=t=>t.type==="livekit"&&"focus_selection"in t,s5=1e3*60*60*4,MDe=(t,e)=>{var n,r="Malformed session membership event: ";return typeof t.device_id!="string"&&e.push(r+"device_id must be string"),typeof t.call_id!="string"&&e.push(r+"call_id must be string"),typeof t.application!="string"&&e.push(r+"application must be a string"),typeof((n=t.focus_active)===null||n===void 0?void 0:n.type)!="string"&&e.push(r+"focus_active.type must be a string"),Array.isArray(t.foci_preferred)||e.push(r+"foci_preferred must be an array"),t.created_ts&&typeof t.created_ts!="number"&&e.push(r+"created_ts must be number"),t.scope&&typeof t.scope!="string"&&e.push(r+"scope must be string"),e.length===0};class LV{static equal(e,n){return jF(e.membershipData,n.membershipData)}constructor(e,n){this.parentEvent=e,I(this,"membershipData",void 0);var r=[];if(MDe(n,r))this.membershipData=n;else throw Error("unknown CallMembership data. Does not match MSC4143 call.member (".concat(r.join(" & "),") events this could be a legacy membership event: (").concat(n,")"))}get sender(){return this.parentEvent.getSender()}get eventId(){return this.parentEvent.getId()}get callId(){return this.membershipData.call_id}get deviceId(){return this.membershipData.device_id}get application(){return this.membershipData.application}get scope(){return this.membershipData.scope}get membershipID(){return this.createdTs().toString()}createdTs(){var e;return(e=this.membershipData.created_ts)!==null&&e!==void 0?e:this.parentEvent.getTs()}getAbsoluteExpiry(){var e;return this.createdTs()+((e=this.membershipData.expires)!==null&&e!==void 0?e:s5)}getMsUntilExpiry(){return this.getAbsoluteExpiry()-Date.now()}isExpired(){return this.getMsUntilExpiry()<=0}getPreferredFoci(){return this.membershipData.foci_preferred}getFocusSelection(){var e=this.membershipData.focus_active;if(a5(e))return e.focus_selection}}var Fh=function(t){return t.Cancel="cancel",t.Restart="restart",t.Send="send",t}({}),u5=function(t){return t.TooNew="TOO_NEW",t}({});class l5 extends Error{constructor(e){var n="Crypto store is invalid because ".concat(e,", ")+"please stop the client, delete all data and start the client again";super(n),this.reason=e,this.name="InvalidCryptoStoreError"}}I(l5,"TOO_NEW",u5.TooNew);class PDe extends Error{constructor(e,n){super(e),this.value=n}}RI=class extends Error{constructor(){super("MatrixClient has been stopped")}};class dd extends Error{constructor(e,n){super(e),this.clientEndpoint=n,this.name="UnsupportedDelayedEventsEndpointError"}}var hd=function(t){return t.Disconnected="Disconnected",t.Connecting="Connecting",t.ConnectingFailed="ConnectingFailed",t.Connected="Connected",t.Reconnecting="Reconnecting",t.Disconnecting="Disconnecting",t.Stuck="Stuck",t.Unknown="Unknown",t}({}),zb=(t,e,n)=>t.sender===e&&t.deviceId===n;class LDe{constructor(e,n){this.membershipLoopHandler=e,I(this,"logger",void 0),I(this,"running",!1),I(this,"wakeup",r=>{this.logger.error("Cannot call wakeup before calling `startWithJoin()`")}),I(this,"_actions",[]),this.logger=(n??Y).getChild("[NewMembershipActionScheduler]")}get actions(){return this._actions}startWithJoin(){var e=this;return Z(function*(){if(e.running){e.logger.error("Cannot call startWithJoin() on NewMembershipActionScheduler while already running");return}e.running=!0,e._actions=[{ts:Date.now(),type:Yt.SendDelayedEvent}];try{for(var n=function*(){e._actions.sort((l,c)=>l.ts-c.ts);var r=e._actions[0],o=void 0,i=new Promise(l=>{e.wakeup=c=>{o=c,l()}});r.ts>Date.now()&&(yield Promise.race([i,yc(r.ts-Date.now())]));var s={};if(!o){e.logger.debug("Current MembershipManager processing: ".concat(r.type,`
Queue:`),e._actions,`
Date.now: "`.concat(Date.now()));try{s=yield e.membershipLoopHandler(r.type)}catch(l){throw Error("The MembershipManager shut down because of the end condition: ".concat(l))}}e._actions.splice(0,1);var u=o??s;"replace"in u?e._actions=u.replace:"insert"in u&&e._actions.push(...u.insert)};e._actions.length>0;)yield*n()}finally{e.running=!1}e.logger.debug("Leave MembershipManager ActionScheduler loop (no more actions)")})()}initiateJoin(){var e;(e=this.wakeup)===null||e===void 0||e.call(this,{replace:[{ts:Date.now(),type:Yt.SendDelayedEvent}]})}initiateLeave(){var e;(e=this.wakeup)===null||e===void 0||e.call(this,{replace:[{ts:Date.now(),type:Yt.SendScheduledDelayedLeaveEvent}]})}}var NV=function(t){return t.StatusChanged="StatusChanged",t}({}),Yt=function(t){return t.SendDelayedEvent="SendDelayedEvent",t.SendJoinEvent="SendJoinEvent",t.RestartDelayedEvent="RestartDelayedEvent",t.UpdateExpiry="UpdateExpiry",t.SendScheduledDelayedLeaveEvent="SendScheduledDelayedLeaveEvent",t.SendLeaveEvent="SendLeaveEvent",t}({});class Ub extends Cr{isActivated(){return this.activated}isJoined(){return this.isActivated()}join(e,n,r){if(this.scheduler.running){this.logger.error("MembershipManager is already running. Ignoring join request.");return}this.fociPreferred=e,this.focusActive=n,this.leavePromiseDefer=void 0,this.activated=!0,this.oldStatus=this.status,this.state=Ub.defaultState,this.scheduler.startWithJoin().catch(o=>{this.logger.error("MembershipManager stopped because: ",o),r==null||r(o)}).finally(()=>{if(this.activated=!1,this.oldStatus&&this.oldStatus!==this.status&&this.emit(NV.StatusChanged,this.oldStatus,this.status),!this.scheduler.running){var o;(o=this.leavePromiseDefer)===null||o===void 0||o.resolve(!0),this.leavePromiseDefer=void 0}})}leave(e){return this.scheduler.running?(this.leavePromiseDefer||(this.leavePromiseDefer=ll(),this.activated=!1,this.scheduler.initiateLeave(),e&&setTimeout(()=>{var n;return(n=this.leavePromiseDefer)===null||n===void 0?void 0:n.resolve(!1)},e)),this.leavePromiseDefer.promise):(this.logger.warn("Called MembershipManager.leave() even though the MembershipManager is not running"),Promise.resolve(!0))}onRTCSessionMemberUpdate(e){var n=this;return Z(function*(){var r=n.client.getUserId(),o=n.client.getDeviceId();if(r&&o&&n.isJoined()&&!e.some(s=>zb(s,r,o))){var i=[Yt.SendDelayedEvent,Yt.SendJoinEvent];n.logger.warn("Missing own membership: force re-join"),n.scheduler.actions.find(s=>i.includes(s.type))?n.logger.error("NewMembershipManger tried adding another `SendFirstDelayedEvent` actions even though we already have one in the Queue\nActionQueueOnMemberUpdate:",n.scheduler.actions):(n.state.hasMemberStateEvent=!1,n.scheduler.initiateJoin())}return Promise.resolve()})()}getActiveFocus(){if(this.focusActive)if(a5(this.focusActive)){if(this.focusActive.focus_selection==="oldest_membership"){var e=this.getOldestMembership();return e==null?void 0:e.getPreferredFoci()[0]}}else this.logger.warn("Unknown own ActiveFocus type. This makes it impossible to connect to an SFU.");else{var n=this.getOldestMembership();return n==null?void 0:n.getPreferredFoci()[0]}}constructor(e,n,r,o,i){super(),this.joinConfig=e,this.room=n,this.client=r,this.getOldestMembership=o,I(this,"activated",!1),I(this,"logger",void 0),I(this,"leavePromiseDefer",void 0),I(this,"oldStatus",void 0),I(this,"scheduler",void 0),I(this,"state",void 0),I(this,"deviceId",void 0),I(this,"stateKey",void 0),I(this,"fociPreferred",void 0),I(this,"focusActive",void 0),I(this,"membershipServerSideExpiryTimeoutOverride",void 0),this.logger=(i??Y).getChild("[NewMembershipManager]");var[s,u]=[this.client.getUserId(),this.client.getDeviceId()];if(s===null)throw Error("Missing userId in client");if(u===null)throw Error("Missing deviceId in client");this.deviceId=u,this.stateKey=this.makeMembershipStateKey(s,u),this.state=Ub.defaultState,this.scheduler=new LDe(l=>(this.oldStatus&&(this.logger.debug("MembershipManager applied action changes. Status: ".concat(this.oldStatus," -> ").concat(this.status)),this.oldStatus!==this.status&&this.emit(NV.StatusChanged,this.oldStatus,this.status)),this.oldStatus=this.status,this.logger.debug("MembershipManager before processing action. status=".concat(this.oldStatus)),this.membershipLoopHandler(l)),this.logger)}static get defaultState(){return{hasMemberStateEvent:!1,delayId:void 0,startTime:0,rateLimitRetries:new Map,networkErrorRetries:new Map,expireUpdateIterations:1}}get callMemberEventRetryDelayMinimum(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.callMemberEventRetryDelayMinimum)!==null&&e!==void 0?e:3e3}get membershipEventExpiryTimeout(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.membershipExpiryTimeout)!==null&&e!==void 0?e:s5}get membershipEventExpiryTimeoutHeadroom(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.membershipExpiryTimeoutHeadroom)!==null&&e!==void 0?e:5e3}computeNextExpiryActionTs(e){return this.state.startTime+this.membershipEventExpiryTimeout*e-this.membershipEventExpiryTimeoutHeadroom}get membershipServerSideExpiryTimeout(){var e,n,r;return(e=(n=this.membershipServerSideExpiryTimeoutOverride)!==null&&n!==void 0?n:(r=this.joinConfig)===null||r===void 0?void 0:r.membershipServerSideExpiryTimeout)!==null&&e!==void 0?e:8e3}get membershipKeepAlivePeriod(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.membershipKeepAlivePeriod)!==null&&e!==void 0?e:5e3}get maximumRateLimitRetryCount(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.maximumRateLimitRetryCount)!==null&&e!==void 0?e:10}get maximumNetworkErrorRetryCount(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.maximumNetworkErrorRetryCount)!==null&&e!==void 0?e:10}membershipLoopHandler(e){var n=this;return Z(function*(){switch(e){case Yt.SendDelayedEvent:return n.state.delayId?n.cancelKnownDelayIdBeforeSendFirstDelayedEvent(n.state.delayId):n.sendOrResendDelayedLeaveEvent();case Yt.RestartDelayedEvent:return n.state.delayId?n.restartDelayedEvent(n.state.delayId):qa(Yt.SendDelayedEvent);case Yt.SendScheduledDelayedLeaveEvent:return n.state.hasMemberStateEvent?n.state.delayId?n.sendScheduledDelayedLeaveEventOrFallbackToSendLeaveEvent(n.state.delayId):qa(Yt.SendLeaveEvent):{replace:[]};case Yt.SendJoinEvent:return n.sendJoinEvent();case Yt.UpdateExpiry:return n.updateExpiryOnJoinedEvent();case Yt.SendLeaveEvent:return n.state.hasMemberStateEvent?n.sendFallbackLeaveEvent():{replace:[]}}})()}sendOrResendDelayedLeaveEvent(){var e=this;return Z(function*(){return yield e.client._unstable_sendDelayedStateEvent(e.room.roomId,{delay:e.membershipServerSideExpiryTimeout},Ce.GroupCallMemberPrefix,{},e.stateKey).then(n=>(e.resetRateLimitCounter(Yt.SendDelayedEvent),e.state.delayId=n.delay_id,e.state.hasMemberStateEvent?qa(Yt.RestartDelayedEvent,e.membershipKeepAlivePeriod):qa(Yt.SendJoinEvent))).catch(n=>{var r=Yt.SendDelayedEvent;if(e.manageMaxDelayExceededSituation(n))return qa(r);var o=e.actionUpdateFromErrors(n,r,"sendDelayedStateEvent");if(o)return o;if(e.state.hasMemberStateEvent){if(e.isUnsupportedDelayedEndpoint(n))return{};throw Error("Could not send delayed event, even though delayed events are supported. "+n)}else return e.isUnsupportedDelayedEndpoint(n)?e.logger.info("Not using delayed event because the endpoint is not supported"):e.logger.info("Not using delayed event because: "+n),qa(Yt.SendJoinEvent)})})()}cancelKnownDelayIdBeforeSendFirstDelayedEvent(e){var n=this;return Z(function*(){return yield n.client._unstable_updateDelayedEvent(e,Fh.Cancel).then(()=>(n.state.delayId=void 0,n.resetRateLimitCounter(Yt.SendDelayedEvent),c5(Yt.SendDelayedEvent))).catch(r=>{var o=Yt.SendDelayedEvent,i=n.actionUpdateFromErrors(r,o,"updateDelayedEvent");if(i)return i;if(n.isNotFoundError(r))return n.state.delayId=void 0,c5(o);if(n.isUnsupportedDelayedEndpoint(r))return c5(Yt.SendJoinEvent);throw Error("We failed to cancel a delayed event where we already had a delay id with an error we cannot automatically handle")})})()}restartDelayedEvent(e){var n=this;return Z(function*(){return yield n.client._unstable_updateDelayedEvent(e,Fh.Restart).then(()=>(n.resetRateLimitCounter(Yt.RestartDelayedEvent),qa(Yt.RestartDelayedEvent,n.membershipKeepAlivePeriod))).catch(r=>{var o=Yt.RestartDelayedEvent;if(n.isNotFoundError(r))return n.state.delayId=void 0,qa(Yt.SendDelayedEvent);if(n.isUnsupportedDelayedEndpoint(r))return{};var i=n.actionUpdateFromErrors(r,o,"updateDelayedEvent");if(i)return i;throw Error("Could not restart delayed event, even though delayed events are supported. "+r)})})()}sendScheduledDelayedLeaveEventOrFallbackToSendLeaveEvent(e){var n=this;return Z(function*(){return yield n.client._unstable_updateDelayedEvent(e,Fh.Send).then(()=>(n.state.hasMemberStateEvent=!1,n.resetRateLimitCounter(Yt.SendScheduledDelayedLeaveEvent),{replace:[]})).catch(r=>{var o=Yt.SendLeaveEvent;if(n.isUnsupportedDelayedEndpoint(r))return{};if(n.isNotFoundError(r))return n.state.delayId=void 0,qa(o);var i=n.actionUpdateFromErrors(r,o,"updateDelayedEvent");return i||(n.logger.warn("Encountered unexpected error during SendScheduledDelayedLeaveEvent. Falling back to SendLeaveEvent",r),qa(o))})})()}sendJoinEvent(){var e=this;return Z(function*(){return yield e.client.sendStateEvent(e.room.roomId,Ce.GroupCallMemberPrefix,e.makeMyMembership(e.membershipEventExpiryTimeout),e.stateKey).then(()=>(e.state.startTime=Date.now(),e.state.expireUpdateIterations=1,e.state.hasMemberStateEvent=!0,e.resetRateLimitCounter(Yt.SendJoinEvent),{insert:[{ts:Date.now(),type:Yt.RestartDelayedEvent},{ts:e.computeNextExpiryActionTs(e.state.expireUpdateIterations),type:Yt.UpdateExpiry}]})).catch(n=>{var r=e.actionUpdateFromErrors(n,Yt.SendJoinEvent,"sendStateEvent");if(r)return r;throw n})})()}updateExpiryOnJoinedEvent(){var e=this;return Z(function*(){var n=e.state.expireUpdateIterations+1;return yield e.client.sendStateEvent(e.room.roomId,Ce.GroupCallMemberPrefix,e.makeMyMembership(e.membershipEventExpiryTimeout*n),e.stateKey).then(()=>(e.resetRateLimitCounter(Yt.UpdateExpiry),e.state.expireUpdateIterations=n,{insert:[{ts:e.computeNextExpiryActionTs(n),type:Yt.UpdateExpiry}]})).catch(r=>{var o=e.actionUpdateFromErrors(r,Yt.UpdateExpiry,"sendStateEvent");if(o)return o;throw r})})()}sendFallbackLeaveEvent(){var e=this;return Z(function*(){return yield e.client.sendStateEvent(e.room.roomId,Ce.GroupCallMemberPrefix,{},e.stateKey).then(()=>(e.resetRateLimitCounter(Yt.SendLeaveEvent),e.state.hasMemberStateEvent=!1,{replace:[]})).catch(n=>{var r=e.actionUpdateFromErrors(n,Yt.SendLeaveEvent,"sendStateEvent");if(r)return r;throw n})})()}makeMembershipStateKey(e,n){var r="".concat(e,"_").concat(n);return/^org\.matrix\.msc(3757|3779)\b/.exec(this.room.getVersion())?r:"_".concat(r)}makeMyMembership(e){var n;return{call_id:"",scope:"m.room",application:"m.call",device_id:this.deviceId,expires:e,focus_active:{type:"livekit",focus_selection:"oldest_membership"},foci_preferred:(n=this.fociPreferred)!==null&&n!==void 0?n:[]}}isNotFoundError(e){return e instanceof tn&&e.errcode==="M_NOT_FOUND"}manageMaxDelayExceededSituation(e){if(e instanceof tn&&e.errcode==="M_UNKNOWN"&&e.data["org.matrix.msc4140.errcode"]==="M_MAX_DELAY_EXCEEDED"){var n=e.data["org.matrix.msc4140.max_delay"];return typeof n=="number"&&this.membershipServerSideExpiryTimeout>n&&(this.membershipServerSideExpiryTimeoutOverride=n),this.logger.warn("Retry sending delayed disconnection event due to server timeout limitations:",e),!0}return!1}actionUpdateFromErrors(e,n,r){var o=this.actionUpdateFromRateLimitError(e,r,n);if(o)return o;var i=this.actionUpdateFromNetworkErrorRetry(e,n);if(i)return i}actionUpdateFromRateLimitError(e,n,r){var o;if((e instanceof od||e instanceof tn)&&e.isRateLimitError()){var i=(o=this.state.rateLimitRetries.get(r))!==null&&o!==void 0?o:0;if(i<this.maximumRateLimitRetryCount){var s,u=5e3;try{var l;s=(l=e.getRetryAfterMs())!==null&&l!==void 0?l:u,this.logger.info("Rate limited by server, retrying in ".concat(s,"ms"))}catch(c){this.logger.warn("Error while retrieving a rate-limit retry delay, retrying after default delay of ".concat(u),c),s=u}return this.state.rateLimitRetries.set(r,i+1),qa(r,s)}throw Error("Exceeded maximum retries for "+r+" attempts (client."+n+"): "+e)}}actionUpdateFromNetworkErrorRetry(e,n){var r,o=(r=this.state.networkErrorRetries.get(n))!==null&&r!==void 0?r:0,i=this.callMemberEventRetryDelayMinimum/1e3+"s",s="("+o+"/"+this.maximumNetworkErrorRetryCount+")";if(e instanceof Error&&e.name==="AbortError")this.logger.warn("Network local timeout error while sending event, retrying in "+i+" "+s,e);else if(e instanceof Error&&e.message.includes("updating delayed event"))this.logger.warn("delayed event update timeout error, retrying in "+i+" "+s,e);else if(e instanceof ih)this.logger.warn("Network connection error while sending event, retrying in "+i+" "+s,e);else if((e instanceof od||e instanceof tn)&&typeof e.httpStatus=="number"&&e.httpStatus>=500&&e.httpStatus<600)this.logger.warn("Server error while sending event, retrying in "+i+" "+s,e);else return;if(o<this.maximumNetworkErrorRetryCount)return this.state.networkErrorRetries.set(n,o+1),qa(n,this.callMemberEventRetryDelayMinimum);throw Error("Reached maximum ("+this.maximumNetworkErrorRetryCount+") retries cause by: "+e)}isUnsupportedDelayedEndpoint(e){return e instanceof dd}resetRateLimitCounter(e){this.state.rateLimitRetries.set(e,0),this.state.networkErrorRetries.set(e,0)}get status(){var e=this.scheduler.actions;if(e.length===1){var{type:n}=e[0];switch(n){case Yt.SendDelayedEvent:case Yt.SendJoinEvent:return hd.Connecting;case Yt.UpdateExpiry:return hd.Connected;case Yt.SendScheduledDelayedLeaveEvent:case Yt.SendLeaveEvent:return hd.Disconnecting}}else if(e.length===2){var r=e.map(i=>i.type);if((r.includes(Yt.RestartDelayedEvent)||r.includes(Yt.SendDelayedEvent)&&this.state.hasMemberStateEvent)&&r.includes(Yt.UpdateExpiry))return hd.Connected}else if(e.length===3){var o=e.map(i=>i.type);if(o.filter(i=>i===Yt.RestartDelayedEvent).length===2&&o.includes(Yt.UpdateExpiry))return hd.Connected}return this.scheduler.running?(this.logger.error("MembershipManager has an unknown state. Actions: ",e),hd.Unknown):hd.Disconnected}}function qa(t,e){return{insert:[{ts:Date.now()+(e??0),type:t}]}}function c5(t,e){return{replace:[{ts:Date.now()+0,type:t}]}}var Fd=function(t){return t.ReceivedKeys="received_keys",t}({}),d5=function(t){return t.EnabledTransportsChanged="enabled_transports_changed",t}({});class zV extends Cr{constructor(e,n,r){var o;super(),o=this,this.toDeviceTransport=e,this.roomKeyTransport=n,I(this,"logger",void 0),I(this,"_enabled",{toDevice:!0,room:!1}),this.logger=(r??Y).getChild("[RoomAndToDeviceTransport]"),this.toDeviceTransport.setParentLogger(this.logger),this.roomKeyTransport.setParentLogger(this.logger),this.roomKeyTransport.on(Fd.ReceivedKeys,function(){o._enabled.room||(o.logger.debug("Received room key, enabling room key transport, disabling toDevice transport"),o.setEnabled({toDevice:!1,room:!0}));for(var i=arguments.length,s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];o.emit(Fd.ReceivedKeys,...s)}),this.toDeviceTransport.on(Fd.ReceivedKeys,function(){if(o._enabled.toDevice){for(var i=arguments.length,s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];o.emit(Fd.ReceivedKeys,...s)}else o.logger.debug("To Device transport is disabled, ignoring received keys")})}setEnabled(e){(this.enabled.toDevice!==e.toDevice||this.enabled.room!==e.room)&&(this._enabled=e,this.emit(d5.EnabledTransportsChanged,e))}get enabled(){return this._enabled}start(){this.roomKeyTransport.start(),this.toDeviceTransport.start()}stop(){this.roomKeyTransport.stop(),this.toDeviceTransport.stop()}sendKey(e,n,r){var o=this;return Z(function*(){o.logger.debug("Sending key with index ".concat(n," to call members (count=").concat(r.length,") via:")+(o._enabled.room?"room transport":"")+(o._enabled.room&&o._enabled.toDevice?"and":"")+(o._enabled.toDevice?"to device transport":"")),o._enabled.room&&(yield o.roomKeyTransport.sendKey(e,n,r)),o._enabled.toDevice&&(yield o.toDeviceTransport.sendKey(e,n,r))})()}}class NDe{get updateEncryptionKeyThrottle(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.updateEncryptionKeyThrottle)!==null&&e!==void 0?e:3e3}get makeKeyDelay(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.makeKeyDelay)!==null&&e!==void 0?e:3e3}get useKeyDelay(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.useKeyDelay)!==null&&e!==void 0?e:5e3}constructor(e,n,r,o,i,s,u){var l=this;this.userId=e,this.deviceId=n,this.getMemberships=r,this.transport=o,this.statistics=i,this.onEncryptionKeysChanged=s,I(this,"manageMediaKeys",!1),I(this,"keysEventUpdateTimeout",void 0),I(this,"makeNewKeyTimeout",void 0),I(this,"setNewKeyTimeouts",new Set),I(this,"encryptionKeys",new Map),I(this,"lastEncryptionKeyUpdateRequest",void 0),I(this,"lastMembershipFingerprints",void 0),I(this,"latestGeneratedKeyIndex",-1),I(this,"joinConfig",void 0),I(this,"logger",void 0),I(this,"joined",!1),I(this,"sendEncryptionKeysEvent",function(){var c=Z(function*(d){if(l.keysEventUpdateTimeout!==void 0&&(clearTimeout(l.keysEventUpdateTimeout),l.keysEventUpdateTimeout=void 0),l.lastEncryptionKeyUpdateRequest=Date.now(),!!l.joined){var F=l.getKeysForParticipant(l.userId,l.deviceId);if(!F){l.logger.warn("Tried to send encryption keys event but no keys found!");return}if(typeof d!="number"&&l.latestGeneratedKeyIndex===-1){l.logger.warn("Tried to send encryption keys event but no current key index found!");return}var h=d??l.latestGeneratedKeyIndex;l.logger.info("Try sending encryption keys event. keyIndexToSend=".concat(h," (method parameter: ").concat(d,")"));var m=F[h];try{l.statistics.counters.roomEventEncryptionKeysSent+=1,yield l.transport.sendKey(aV(m),h,l.getMemberships()),l.logger.debug("sendEncryptionKeysEvent participantId=".concat(l.userId,":").concat(l.deviceId," numKeys=").concat(F.length," currentKeyIndex=").concat(l.latestGeneratedKeyIndex," keyIndexToSend=").concat(h),l.encryptionKeys)}catch(g){if(l.keysEventUpdateTimeout===void 0){var D=j9(g,5e3);l.logger.warn("Failed to send m.call.encryption_key, retrying in ".concat(D),g),l.keysEventUpdateTimeout=setTimeout(()=>void l.sendEncryptionKeysEvent(),D)}else l.logger.info("Not scheduling key resend as another re-send is already pending")}}});return function(d){return c.apply(this,arguments)}}()),I(this,"onTransportChanged",()=>{this.requestSendCurrentKey()}),I(this,"onNewKeyReceived",(c,d,F,h,m)=>{this.logger.debug("Received key over key transport ".concat(c,":").concat(d," at index ").concat(h)),this.setEncryptionKey(c,d,h,F,m)}),I(this,"onRotateKeyTimeout",()=>{if(this.manageMediaKeys){this.makeNewKeyTimeout=void 0,this.logger.info("Making new sender key for key rotation");var c=this.makeNewSenderKey(!0);this.sendEncryptionKeysEvent(c)}}),this.logger=(u??Y).getChild("[EncryptionManager]")}getEncryptionKeys(){return this.encryptionKeys}join(e){var n,r,o;this.joinConfig=e,this.joined=!0,this.manageMediaKeys=(n=(r=this.joinConfig)===null||r===void 0?void 0:r.manageMediaKeys)!==null&&n!==void 0?n:this.manageMediaKeys,this.transport.on(Fd.ReceivedKeys,this.onNewKeyReceived),this.transport instanceof zV&&this.transport.on(d5.EnabledTransportsChanged,this.onTransportChanged),this.transport.start(),(o=this.joinConfig)!==null&&o!==void 0&&o.manageMediaKeys&&(this.makeNewSenderKey(),this.requestSendCurrentKey())}leave(){this.encryptionKeys.set(Vb(this.userId,this.deviceId),[]),this.transport.off(Fd.ReceivedKeys,this.onNewKeyReceived),this.transport.stop(),this.makeNewKeyTimeout!==void 0&&(clearTimeout(this.makeNewKeyTimeout),this.makeNewKeyTimeout=void 0);for(var e of this.setNewKeyTimeouts)clearTimeout(e);this.setNewKeyTimeouts.clear(),this.manageMediaKeys=!1,this.joined=!1}onMembershipsUpdate(e){if(this.manageMediaKeys&&this.joined){var n=new Set(e.filter(c=>!zb(c,this.userId,this.deviceId)).map(h5)),r=new Set(this.getMemberships().filter(c=>!zb(c,this.userId,this.deviceId)).map(h5)),o=Array.from(n).some(c=>!r.has(c)),i=Array.from(r).some(c=>!n.has(c)),s=this.lastMembershipFingerprints;if(this.storeLastMembershipFingerprints(),o)this.makeNewKeyTimeout||(this.logger.debug("Member(s) have left: queueing sender key rotation"),this.makeNewKeyTimeout=setTimeout(this.onRotateKeyTimeout,this.makeKeyDelay));else if(i)this.logger.debug("New member(s) have joined: re-sending keys"),this.requestSendCurrentKey();else if(s){var u=this.lastMembershipFingerprints,l=Array.from(s).some(c=>!u.has(c))||Array.from(u).some(c=>!s.has(c));l&&(this.logger.debug("Member(s) have updated/reconnected: re-sending keys to everyone"),this.requestSendCurrentKey())}}}makeNewSenderKey(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=Mme(16),r=this.getNewEncryptionKeyIndex();return this.logger.info("Generated new key at index "+r),this.setEncryptionKey(this.userId,this.deviceId,r,n,Date.now(),e),r}requestSendCurrentKey(){if(this.manageMediaKeys){if(this.lastEncryptionKeyUpdateRequest&&this.lastEncryptionKeyUpdateRequest+this.updateEncryptionKeyThrottle>Date.now()){this.logger.info("Last encryption key event sent too recently: postponing"),this.keysEventUpdateTimeout===void 0&&(this.keysEventUpdateTimeout=setTimeout(()=>void this.sendEncryptionKeysEvent(),this.updateEncryptionKeyThrottle));return}this.sendEncryptionKeysEvent()}}getKeysForParticipant(e,n){var r;return(r=this.encryptionKeys.get(Vb(e,n)))===null||r===void 0?void 0:r.map(o=>o.key)}storeLastMembershipFingerprints(){this.lastMembershipFingerprints=new Set(this.getMemberships().filter(e=>!zb(e,this.userId,this.deviceId)).map(e=>"".concat(h5(e),":").concat(e.createdTs())))}getNewEncryptionKeyIndex(){return this.latestGeneratedKeyIndex===-1?0:(this.latestGeneratedKeyIndex+1)%256}setEncryptionKey(e,n,r,o,i){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;this.logger.debug("Setting encryption key for ".concat(e,":").concat(n," at index ").concat(r));var u=y1(o),l=Vb(e,n);this.encryptionKeys.has(l)||this.encryptionKeys.set(l,[]);var c=this.encryptionKeys.get(l),d=c[r];if(d){if(d.timestamp>i){this.logger.info("Ignoring new key at index ".concat(r," for ").concat(l," as it is older than existing known key"));return}if(zDe(d.key,u)){d.timestamp=i;return}}if(e===this.userId&&n===this.deviceId&&(this.latestGeneratedKeyIndex=r),c[r]={key:u,timestamp:i},s){var F=setTimeout(()=>{this.setNewKeyTimeouts.delete(F),this.logger.info("Delayed-emitting key changed event for ".concat(l," index ").concat(r)),this.onEncryptionKeysChanged(u,r,l)},this.useKeyDelay);this.setNewKeyTimeouts.add(F)}else this.onEncryptionKeysChanged(u,r,l)}}var Vb=(t,e)=>"".concat(t,":").concat(e);function zDe(t,e){return t===e?!0:!!t&&!!e&&t.length===e.length&&t.every((n,r)=>n===e[r])}var h5=t=>Vb(t.sender,t.deviceId);class UDe{get callMemberEventRetryDelayMinimum(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.callMemberEventRetryDelayMinimum)!==null&&e!==void 0?e:3e3}get membershipExpiryTimeout(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.membershipExpiryTimeout)!==null&&e!==void 0?e:s5}get membershipServerSideExpiryTimeout(){var e,n,r;return(e=(n=this.membershipServerSideExpiryTimeoutOverride)!==null&&n!==void 0?n:(r=this.joinConfig)===null||r===void 0?void 0:r.membershipServerSideExpiryTimeout)!==null&&e!==void 0?e:8e3}get membershipKeepAlivePeriod(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.membershipKeepAlivePeriod)!==null&&e!==void 0?e:5e3}get callMemberEventRetryJitter(){var e,n;return(e=(n=this.joinConfig)===null||n===void 0?void 0:n.callMemberEventRetryJitter)!==null&&e!==void 0?e:2e3}constructor(e,n,r,o){var i=this;this.joinConfig=e,this.room=n,this.client=r,this.getOldestMembership=o,I(this,"relativeExpiry",void 0),I(this,"memberEventTimeout",void 0),I(this,"ownFociPreferred",void 0),I(this,"ownFocusActive",void 0),I(this,"updateCallMembershipRunning",!1),I(this,"needCallMembershipUpdate",!1),I(this,"membershipServerSideExpiryTimeoutOverride",void 0),I(this,"disconnectDelayId",void 0),I(this,"triggerCallMembershipEventUpdate",Z(function*(){if(i.updateCallMembershipRunning){i.needCallMembershipUpdate=!0;return}i.updateCallMembershipRunning=!0;try{do i.needCallMembershipUpdate=!1,yield i.updateCallMembershipEvent();while(i.needCallMembershipUpdate)}finally{i.updateCallMembershipRunning=!1}})),I(this,"delayDisconnection",Z(function*(){try{var s=i.disconnectDelayId;yield XF(()=>i.client._unstable_updateDelayedEvent(s,Fh.Restart)),i.scheduleDelayDisconnection()}catch(u){Y.error("Failed to delay our disconnection event:",u)}}))}off(e,n){return Y.error("off is not implemented on LegacyMembershipManager"),this}on(e,n){return Y.error("on is not implemented on LegacyMembershipManager"),this}isJoined(){return this.relativeExpiry!==void 0}isActivated(){return this.isJoined()}get status(){return hd.Unknown}join(e,n){this.ownFocusActive=n,this.ownFociPreferred=e,this.relativeExpiry=this.membershipExpiryTimeout,this.triggerCallMembershipEventUpdate()}leave(){var e=arguments,n=this;return Z(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:void 0;if(n.relativeExpiry=void 0,n.ownFocusActive=void 0,n.memberEventTimeout&&(clearTimeout(n.memberEventTimeout),n.memberEventTimeout=void 0),r){var o=yield Promise.race([n.triggerCallMembershipEventUpdate(),yc(r,"timeout")]);return o!=="timeout"}else return yield n.triggerCallMembershipEventUpdate(),!0})()}onRTCSessionMemberUpdate(e){var n=this;return Z(function*(){var r=o=>o.sender===n.client.getUserId()&&o.deviceId===n.client.getDeviceId();if(n.isJoined()&&!e.some(r))return Y.warn("Missing own membership: force re-join"),n.triggerCallMembershipEventUpdate()})()}getActiveFocus(){if(this.ownFocusActive)if(a5(this.ownFocusActive)){if(this.ownFocusActive.focus_selection==="oldest_membership"){var e=this.getOldestMembership();return e==null?void 0:e.getPreferredFoci()[0]}}else Y.warn("Unknown own ActiveFocus type. This makes it impossible to connect to an SFU.");else{var n=this.getOldestMembership();return n==null?void 0:n.getPreferredFoci()[0]}}makeNewMembership(e){return this.isJoined()?this.makeMyMembership(e):{}}makeMyMembership(e){var n;return{call_id:"",scope:"m.room",application:"m.call",device_id:e,expires:this.relativeExpiry,focus_active:{type:"livekit",focus_selection:"oldest_membership"},foci_preferred:(n=this.ownFociPreferred)!==null&&n!==void 0?n:[]}}updateCallMembershipEvent(){var e=this;return Z(function*(){e.memberEventTimeout&&(clearTimeout(e.memberEventTimeout),e.memberEventTimeout=void 0);var n=e.room.getLiveTimeline().getState(it.FORWARDS);if(!n)throw new Error("Couldn't get room state for room "+e.room.roomId);var r=e.client.getUserId(),o=e.client.getDeviceId();if(!r||!o)throw new Error("User ID or device ID was null!");var i={};i=e.makeNewMembership(o);try{if(e.isJoined()){var s=e.makeMembershipStateKey(r,o),u=function(){var h=Z(function*(){try{var m=yield XF(()=>e.client._unstable_sendDelayedStateEvent(e.room.roomId,{delay:e.membershipServerSideExpiryTimeout},Ce.GroupCallMemberPrefix,{},s));e.disconnectDelayId=m.delay_id}catch(g){if(g instanceof tn&&g.errcode==="M_UNKNOWN"&&g.data["org.matrix.msc4140.errcode"]==="M_MAX_DELAY_EXCEEDED"){var D=g.data["org.matrix.msc4140.max_delay"];if(typeof D=="number"&&e.membershipServerSideExpiryTimeout>D)return e.membershipServerSideExpiryTimeoutOverride=D,u()}Y.error("Failed to prepare delayed disconnection event:",g)}});return function(){return h.apply(this,arguments)}}();if(yield u(),yield XF(()=>e.client.sendStateEvent(e.room.roomId,Ce.GroupCallMemberPrefix,i,s)),e.disconnectDelayId!==void 0)try{var l=e.disconnectDelayId;yield XF(()=>e.client._unstable_updateDelayedEvent(l,Fh.Restart))}catch(h){h instanceof tn&&h.errcode==="M_NOT_FOUND"&&(Y.warn("Failed to update delayed disconnection event, prepare it again:",h),e.disconnectDelayId=void 0,yield u())}e.disconnectDelayId!==void 0&&e.scheduleDelayDisconnection()}else{var c=!1;if(e.disconnectDelayId!==void 0){try{var d=e.disconnectDelayId;yield XF(()=>e.client._unstable_updateDelayedEvent(d,Fh.Send)),c=!0}catch(h){Y.error("Failed to send our delayed disconnection event:",h)}e.disconnectDelayId=void 0}c||(yield XF(()=>e.client.sendStateEvent(e.room.roomId,Ce.GroupCallMemberPrefix,{},e.makeMembershipStateKey(r,o))))}Y.info("Sent updated call member event.")}catch(h){var F=e.callMemberEventRetryDelayMinimum+Math.random()*e.callMemberEventRetryJitter;Y.warn("Failed to send call member event (retrying in ".concat(F,"): ").concat(h)),yield yc(F),yield e.triggerCallMembershipEventUpdate()}})()}scheduleDelayDisconnection(){this.memberEventTimeout=setTimeout(()=>void this.delayDisconnection(),this.membershipKeepAlivePeriod)}makeMembershipStateKey(e,n){var r="".concat(e,"_").concat(n);return/^org\.matrix\.msc(3757|3779)\b/.exec(this.room.getVersion())?r:"_".concat(r)}}function XF(t){return F5.apply(this,arguments)}function F5(){return F5=Z(function*(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;;)try{return yield t()}catch(i){if(e>0&&i instanceof od&&i.isRateLimitError()){e--;var n=void 0,r=5e3;try{var o;n=(o=i.getRetryAfterMs())!==null&&o!==void 0?o:r,Y.info("Rate limited by server, retrying in ".concat(n,"ms"))}catch(s){Y.warn("Error while retrieving a rate-limit retry delay, retrying after default delay of ".concat(r),s),n=r}yield yc(n)}else throw i}}),F5.apply(this,arguments)}class UV extends Cr{setParentLogger(e){this.logger=e.getChild("[RoomKeyTransport]")}constructor(e,n,r,o){super(),this.room=e,this.client=n,this.statistics=r,I(this,"logger",Y),this.setParentLogger(o??Y)}start(){this.room.on(Ke.Timeline,e=>void this.consumeCallEncryptionEvent(e))}stop(){this.room.off(Ke.Timeline,e=>void this.consumeCallEncryptionEvent(e))}consumeCallEncryptionEvent(e){var n=arguments,r=this;return Z(function*(){var o=n.length>1&&n[1]!==void 0?n[1]:!1;if(yield r.client.decryptEventIfNeeded(e),e.isDecryptionFailure()){o?r.logger.warn("Decryption failed for event ".concat(e.getId(),": ").concat(e.decryptionFailureReason)):(r.logger.warn("Decryption failed for event ".concat(e.getId(),": ").concat(e.decryptionFailureReason," will retry once only")),setTimeout(()=>void r.consumeCallEncryptionEvent(e,!0),1e3));return}else o&&r.logger.info("Decryption succeeded for event ".concat(e.getId()," after retry"));if(e.getType()!==Ce.CallEncryptionKeysPrefix)return Promise.resolve();if(!r.room)return r.logger.error("Got room state event for unknown room ".concat(e.getRoomId(),"!")),Promise.resolve();r.onEncryptionEvent(e)})()}sendKey(e,n,r){var o=this;return Z(function*(){var i={keys:[{index:n,key:e}],device_id:o.client.getDeviceId(),call_id:"",sent_ts:Date.now()};try{yield o.client.sendEvent(o.room.roomId,Ce.CallEncryptionKeysPrefix,i)}catch(u){o.logger.error("Failed to send call encryption keys",u);var s=u;throw s.event&&o.client.cancelPendingEvent(s.event),u}})()}onEncryptionEvent(e){var n=e.getSender(),r=e.getContent(),o=r.device_id,i=r.call_id;if(!n){this.logger.warn("Received m.call.encryption_keys with no userId: callId=".concat(i));return}if(i!==""){this.logger.warn("Received m.call.encryption_keys with unsupported callId: userId=".concat(n,", deviceId=").concat(o,", callId=").concat(i));return}if(!Array.isArray(r.keys)){this.logger.warn("Received m.call.encryption_keys where keys wasn't an array: callId=".concat(i));return}if(n===this.client.getUserId()&&o===this.client.getDeviceId()){this.logger.info("Ignoring our own keys event");return}this.statistics.counters.roomEventEncryptionKeysReceived+=1;var s=Date.now()-(typeof r.sent_ts=="number"?r.sent_ts:e.getTs());this.statistics.totals.roomEventEncryptionKeysReceivedTotalAge+=s;for(var u of r.keys){if(!u){this.logger.info("Ignoring false-y key in keys event");continue}var l=u.key,c=u.index;!l||c===void 0||c===null||i===void 0||i===null||typeof o!="string"||typeof i!="string"||typeof l!="string"||typeof c!="number"?this.logger.warn("Malformed call encryption_key: userId=".concat(n,", deviceId=").concat(o,", encryptionKeyIndex=").concat(c," callId=").concat(i)):(this.logger.debug("onCallEncryption userId=".concat(n,":").concat(o," encryptionKeyIndex=").concat(c," age=").concat(s,"ms")),this.emit(Fd.ReceivedKeys,n,o,l,c,e.getTs()))}}}class VDe extends Cr{setParentLogger(e){this.logger=e.getChild("[ToDeviceKeyTransport]")}constructor(e,n,r,o,i,s){super(),this.userId=e,this.deviceId=n,this.roomId=r,this.client=o,this.statistics=i,I(this,"logger",Y),I(this,"onToDeviceEvent",u=>{if(u.getType()===Ce.CallEncryptionKeysPrefix){var l=this.getValidEventContent(u);l&&u.getSender()&&this.receiveCallKeyEvent(u.getSender(),l)}}),this.setParentLogger(s??Y)}start(){this.client.on(st.ToDeviceEvent,this.onToDeviceEvent)}stop(){this.client.off(st.ToDeviceEvent,this.onToDeviceEvent)}sendKey(e,n,r){var o=this;return Z(function*(){var i={keys:{index:n,key:e},room_id:o.roomId,member:{claimed_device_id:o.deviceId},session:{call_id:"",application:"m.call",scope:"m.room"}},s=r.filter(u=>u.sender==null||u.deviceId==null?(o.logger.warn("Malformed call member: ".concat(u.sender,"|").concat(u.deviceId)),!1):!(u.sender==o.userId&&u.deviceId==o.deviceId)).map(u=>({userId:u.sender,deviceId:u.deviceId}));s.length>0?(yield o.client.encryptAndSendToDevice(Ce.CallEncryptionKeysPrefix,s,i),o.statistics.counters.roomEventEncryptionKeysSent+=1):o.logger.warn("No targets found for sending key")})()}receiveCallKeyEvent(e,n){this.statistics.counters.roomEventEncryptionKeysReceived+=1;var r=Date.now(),o=r-(typeof n.sent_ts=="number"?n.sent_ts:r);this.statistics.totals.roomEventEncryptionKeysReceivedTotalAge+=o,this.emit(Fd.ReceivedKeys,e,n.member.claimed_device_id,n.keys.key,n.keys.index,r)}getValidEventContent(e){var n=e.getContent(),r=n.room_id;if(!r){this.logger.warn("Malformed Event: invalid call encryption keys event, no roomId");return}if(r!==this.roomId){this.logger.warn("Malformed Event: Mismatch roomId");return}if(!n.keys||!n.keys.key||typeof n.keys.index!="number"){this.logger.warn("Malformed Event: Missing keys field");return}if(!n.member||!n.member.claimed_device_id){this.logger.warn("Malformed Event: Missing claimed_device_id");return}return n}}var mh=function(t){return t.MembershipsChanged="memberships_changed",t.JoinStateChanged="join_state_changed",t.EncryptionKeyChanged="encryption_key_changed",t.MembershipManagerError="membership_manager_error",t}({});class QF extends Cr{get callId(){return this._callId}static callMembershipsForRoom(e){var n=Y.getChild("[MatrixRTCSession ".concat(e.roomId,"]")),r=e.getLiveTimeline().getState(it.FORWARDS);if(!r)throw n.warn("Couldn't get state for room "+e.roomId),new Error("Could't get state for room "+e.roomId);var o=r.getStateEvents(Ce.GroupCallMemberPrefix),i=[];for(var s of o){var u=s.getContent(),l=Object.keys(u).length;if(l!==0){var c=[];if(l>1&&"focus_active"in u?c.push(u):l===1&&"memberships"in u&&n.warn("Legacy event found. Those are ignored, they do not contribute to the MatrixRTC session"),c.length!==0)for(var d of c)try{var F,h=new LV(s,d);if(h.callId!==""||h.scope!=="m.room"){n.info("Ignoring user-scoped call");continue}if(h.isExpired()){n.info("Ignoring expired device membership ".concat(h.sender,"/").concat(h.deviceId));continue}if(!e.hasMembershipState((F=h.sender)!==null&&F!==void 0?F:"",an.Join)){n.info("Ignoring membership of user ".concat(h.sender," who is not in the room."));continue}i.push(h)}catch(m){n.warn("Couldn't construct call membership: ",m)}}}return i.sort((m,D)=>m.createdTs()-D.createdTs()),i.length>1&&n.debug("Call memberships in room ".concat(e.roomId,", in order: "),i.map(m=>[m.createdTs(),m.sender])),i}static roomSessionForRoom(e,n){var r=QF.callMembershipsForRoom(n);return new QF(e,n,r)}get room(){return this.roomSubset}constructor(e,n,r){var o;super(),this.client=e,this.roomSubset=n,this.memberships=r,I(this,"membershipManager",void 0),I(this,"encryptionManager",void 0),I(this,"_callId",void 0),I(this,"logger",void 0),I(this,"expiryTimeout",void 0),I(this,"statistics",{counters:{roomEventEncryptionKeysSent:0,roomEventEncryptionKeysReceived:0},totals:{roomEventEncryptionKeysReceivedTotalAge:0}}),I(this,"reEmitter",new x1(this)),I(this,"onRoomMemberUpdate",()=>{this.recalculateSessionMembers()}),I(this,"onRTCSessionMemberUpdate",()=>{this.recalculateSessionMembers()}),I(this,"recalculateSessionMembers",()=>{var s,u,l,c=this.memberships;this.memberships=QF.callMembershipsForRoom(this.room),this._callId=(s=this._callId)!==null&&s!==void 0?s:(u=this.memberships[0])===null||u===void 0?void 0:u.callId;var d=c.length!=this.memberships.length||c.some((h,m)=>!LV.equal(h,this.memberships[m]));if(d){var F;this.logger.info("Memberships for call in room ".concat(this.roomSubset.roomId," have changed: emitting")),L1e(this.logger,"emit MatrixRTCSessionEvent.MembershipsChanged",()=>{this.emit(mh.MembershipsChanged,c,this.memberships)}),(F=this.membershipManager)===null||F===void 0||F.onRTCSessionMemberUpdate(this.memberships)}(l=this.encryptionManager)===null||l===void 0||l.onMembershipsUpdate(c),this.setExpiryTimer()}),this.logger=Y.getChild("[MatrixRTCSession ".concat(n.roomId,"]")),this._callId=(o=r[0])===null||o===void 0?void 0:o.callId;var i=this.roomSubset.getLiveTimeline().getState(it.FORWARDS);i==null||i.on(Zt.Members,this.onRoomMemberUpdate),this.setExpiryTimer()}isJoined(){var e,n;return(e=(n=this.membershipManager)===null||n===void 0?void 0:n.isJoined())!==null&&e!==void 0?e:!1}stop(){var e=this;return Z(function*(){var n;yield(n=e.membershipManager)===null||n===void 0?void 0:n.leave(1e3),e.expiryTimeout&&(clearTimeout(e.expiryTimeout),e.expiryTimeout=void 0);var r=e.roomSubset.getLiveTimeline().getState(it.FORWARDS);r==null||r.off(Zt.Members,e.onRoomMemberUpdate)})()}joinRoomSession(e,n,r){if(this.isJoined()){this.logger.info("Already joined to session in room ".concat(this.roomSubset.roomId,": ignoring join call"));return}else{var o;(o=r==null?void 0:r.useNewMembershipManager)!==null&&o!==void 0&&o?this.membershipManager=new Ub(r,this.roomSubset,this.client,()=>this.getOldestMembership(),this.logger):this.membershipManager=new UDe(r,this.roomSubset,this.client,()=>this.getOldestMembership());var i;if(r!=null&&r.useExperimentalToDeviceTransport){this.logger.info("Using to-device with room fallback transport for encryption keys");var[s,u]=[this.client.getUserId(),this.client.getDeviceId()],[l,c,d]=[this.roomSubset,this.client,this.statistics],F=new UV(l,c,d),h=new VDe(s,u,l.roomId,c,d);i=new zV(h,F,this.logger),this.reEmitter.reEmit(i,[d5.EnabledTransportsChanged])}else i=new UV(this.roomSubset,this.client,this.statistics);this.encryptionManager=new NDe(this.client.getUserId(),this.client.getDeviceId(),()=>this.memberships,i,this.statistics,(m,D,g)=>{this.emit(mh.EncryptionKeyChanged,m,D,g)},this.logger)}this.membershipManager.join(e,n,m=>{this.logger.error("MembershipManager encountered an unrecoverable error: ",m),this.emit(mh.MembershipManagerError,m),this.emit(mh.JoinStateChanged,this.isJoined())}),this.encryptionManager.join(r),this.emit(mh.JoinStateChanged,!0)}leaveRoomSession(){var e=arguments,n=this;return Z(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:void 0;if(!n.isJoined())return n.logger.info("Not joined to session in room ".concat(n.roomSubset.roomId,": ignoring leave call")),!1;n.logger.info("Leaving call session in room ".concat(n.roomSubset.roomId)),n.encryptionManager.leave();var o=n.membershipManager.leave(r);return n.emit(mh.JoinStateChanged,!1),yield o})()}getActiveFocus(){var e;return(e=this.membershipManager)===null||e===void 0?void 0:e.getActiveFocus()}getOldestMembership(){return this.memberships[0]}getFocusInUse(){var e=this.getOldestMembership();if((e==null?void 0:e.getFocusSelection())==="oldest_membership")return e.getPreferredFoci()[0]}reemitEncryptionKeys(){var e;(e=this.encryptionManager)===null||e===void 0||e.getEncryptionKeys().forEach((n,r)=>{n.forEach((o,i)=>{this.emit(mh.EncryptionKeyChanged,o.key,i,r)})})}getEncryptionKeys(){var e,n,r=(e=(n=this.encryptionManager)===null||n===void 0?void 0:n.getEncryptionKeys())!==null&&e!==void 0?e:new Map;return Array.from(r.entries()).map(o=>{var[i,s]=o;return[i,s.map(u=>u.key)]}).values()}setExpiryTimer(){this.expiryTimeout&&(clearTimeout(this.expiryTimeout),this.expiryTimeout=void 0);var e;for(var n of this.memberships){var r=n.getMsUntilExpiry();r!==void 0&&(e===void 0||r<e)&&(e=r)}e!=null&&(this.expiryTimeout=setTimeout(this.onRTCSessionMemberUpdate,e))}}var VV=function(t){return t.SessionStarted="session_started",t.SessionEnded="session_ended",t}({});class qDe extends Cr{constructor(e){super(),this.client=e,I(this,"roomSessions",new Map),I(this,"logger",void 0),I(this,"onRoom",n=>{this.refreshRoom(n)}),I(this,"onRoomState",(n,r)=>{var o=this.client.getRoom(n.getRoomId());if(!o){this.logger.error("Got room state event for unknown room ".concat(n.getRoomId(),"!"));return}n.getType()==Ce.GroupCallMemberPrefix&&this.refreshRoom(o)}),this.logger=Y.getChild("[MatrixRTCSessionManager]")}start(){for(var e of(n=this.client.getRooms())!==null&&n!==void 0?n:[]){var n,r=QF.roomSessionForRoom(this.client,e);r.memberships.length>0&&this.roomSessions.set(e.roomId,r)}this.client.on(st.Room,this.onRoom),this.client.on(Zt.Events,this.onRoomState)}stop(){for(var e of this.roomSessions.values())e.stop();this.roomSessions.clear(),this.client.off(st.Room,this.onRoom),this.client.off(Zt.Events,this.onRoomState)}getActiveRoomSession(e){return this.roomSessions.get(e.roomId)}getRoomSession(e){return this.roomSessions.has(e.roomId)||this.roomSessions.set(e.roomId,QF.roomSessionForRoom(this.client,e)),this.roomSessions.get(e.roomId)}refreshRoom(e){var n=!this.roomSessions.has(e.roomId),r=this.getRoomSession(e),o=r.memberships.length>0&&!n;r.onRTCSessionMemberUpdate();var i=r.memberships.length>0;o&&!i?(this.logger.trace("Session ended for ".concat(e.roomId," (").concat(r.memberships.length," members)")),this.emit(VV.SessionEnded,e.roomId,this.roomSessions.get(e.roomId))):!o&&i&&(this.logger.trace("Session started for ".concat(e.roomId," (").concat(r.memberships.length," members)")),this.emit(VV.SessionStarted,e.roomId,this.roomSessions.get(e.roomId)))}}function m5(t){return e=>{var n,r;return((n=e.content)===null||n===void 0||(n=n["m.relates_to"])===null||n===void 0?void 0:n.event_id)!==t||((r=e.content)===null||r===void 0||(r=r["m.relates_to"])===null||r===void 0?void 0:r.rel_type)===hr.name}}function qV(t){return D5.apply(this,arguments)}function D5(){return D5=Z(function*(t){if(!globalThis.crypto.subtle)throw new Error("Crypto.subtle is not available: insecure context?");var e=new TextEncoder().encode(t),n=yield globalThis.crypto.subtle.digest("SHA-256",e);return new Uint8Array(n)}),D5.apply(this,arguments)}class af extends Error{}af.prototype.name="InvalidTokenError";function HDe(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function $De(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return HDe(e)}catch{return atob(e)}}function HV(t,e){if(typeof t!="string")throw new af("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,r=t.split(".")[n];if(typeof r!="string")throw new af(`Invalid token specified: missing part #${n+1}`);let o;try{o=$De(r)}catch(i){throw new af(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new af(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}var WDe={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},fu,_u,qb=(t=>(t[t.NONE=0]="NONE",t[t.ERROR=1]="ERROR",t[t.WARN=2]="WARN",t[t.INFO=3]="INFO",t[t.DEBUG=4]="DEBUG",t))(qb||{});(t=>{function e(){fu=3,_u=WDe}t.reset=e;function n(o){if(!(0<=o&&o<=4))throw new Error("Invalid log level");fu=o}t.setLevel=n;function r(o){_u=o}t.setLogger=r})(qb);var ao=class cl{constructor(e){this._name=e}debug(...e){fu>=4&&_u.debug(cl._format(this._name,this._method),...e)}info(...e){fu>=3&&_u.info(cl._format(this._name,this._method),...e)}warn(...e){fu>=2&&_u.warn(cl._format(this._name,this._method),...e)}error(...e){fu>=1&&_u.error(cl._format(this._name,this._method),...e)}throw(e){throw this.error(e),e}create(e){const n=Object.create(this);return n._method=e,n.debug("begin"),n}static createStatic(e,n){const r=new cl(`${e}.${n}`);return r.debug("begin"),r}static _format(e,n){const r=`[${e}]`;return n?`${r} ${n}:`:r}static debug(e,...n){fu>=4&&_u.debug(cl._format(e),...n)}static info(e,...n){fu>=3&&_u.info(cl._format(e),...n)}static warn(e,...n){fu>=2&&_u.warn(cl._format(e),...n)}static error(e,...n){fu>=1&&_u.error(cl._format(e),...n)}};qb.reset();var Hb=class{static decode(t){try{return HV(t)}catch(e){throw ao.error("JwtUtils.decode",e),e}}static async generateSignedJwt(t,e,n){const r=As.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),o=As.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e))),i=`${r}.${o}`,s=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},n,new TextEncoder().encode(i)),u=As.encodeBase64Url(new Uint8Array(s));return`${i}.${u}`}},KDe="10000000-1000-4000-8000-100000000000",g5=t=>btoa([...new Uint8Array(t)].map(e=>String.fromCharCode(e)).join("")),$V=class dl{static _randomWord(){const e=new Uint32Array(1);return crypto.getRandomValues(e),e[0]}static generateUUIDv4(){return KDe.replace(/[018]/g,e=>(+e^dl._randomWord()&15>>+e/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return dl.generateUUIDv4()+dl.generateUUIDv4()+dl.generateUUIDv4()}static async generateCodeChallenge(e){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n);return g5(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(n){throw ao.error("CryptoUtils.generateCodeChallenge",n),n}}static generateBasicAuth(e,n){const r=new TextEncoder().encode([e,n].join(":"));return g5(r)}static async hash(e,n){const r=new TextEncoder().encode(n),o=await crypto.subtle.digest(e,r);return new Uint8Array(o)}static async customCalculateJwkThumbprint(e){let n;switch(e.kty){case"RSA":n={e:e.e,kty:e.kty,n:e.n};break;case"EC":n={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":n={crv:e.crv,kty:e.kty,x:e.x};break;case"oct":n={crv:e.k,kty:e.kty};break;default:throw new Error("Unknown jwk type")}const r=await dl.hash("SHA-256",JSON.stringify(n));return dl.encodeBase64Url(r)}static async generateDPoPProof({url:e,accessToken:n,httpMethod:r,keyPair:o,nonce:i}){let s,u;const l={jti:window.crypto.randomUUID(),htm:r??"GET",htu:e,iat:Math.floor(Date.now()/1e3)};n&&(s=await dl.hash("SHA-256",n),u=dl.encodeBase64Url(s),l.ath=u),i&&(l.nonce=i);try{const c=await crypto.subtle.exportKey("jwk",o.publicKey),d={alg:"ES256",typ:"dpop+jwt",jwk:{crv:c.crv,kty:c.kty,x:c.x,y:c.y}};return await Hb.generateSignedJwt(d,l,o.privateKey)}catch(c){throw c instanceof TypeError?new Error(`Error exporting dpop public key: ${c.message}`):c}}static async generateDPoPJkt(e){try{const n=await crypto.subtle.exportKey("jwk",e.publicKey);return await dl.customCalculateJwkThumbprint(n)}catch(n){throw n instanceof TypeError?new Error(`Could not retrieve dpop keys from storage: ${n.message}`):n}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}};$V.encodeBase64Url=t=>g5(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var As=$V,GDe=class{constructor(t){this._name=t,this._callbacks=[],this._logger=new ao(`Event('${this._name}')`)}addHandler(t){return this._callbacks.push(t),()=>this.removeHandler(t)}removeHandler(t){const e=this._callbacks.lastIndexOf(t);e>=0&&this._callbacks.splice(e,1)}async raise(...t){this._logger.debug("raise:",...t);for(const e of this._callbacks)await e(...t)}},$b=class lx extends GDe{constructor(){super(...arguments),this._logger=new ao(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const e=this._expiration-lx.getEpochTime();this._logger.debug("timer completes in",e),this._expiration<=lx.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(e){const n=this._logger.create("init");e=Math.max(Math.floor(e),1);const r=lx.getEpochTime()+e;if(this.expiration===r&&this._timerHandle){n.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),n.debug("using duration",e),this._expiration=r;const o=Math.min(e,5);this._timerHandle=setInterval(this._callback,o*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},WV=class{static readParams(t,e="query"){if(!t)throw new TypeError("Invalid URL");const n=new URL(t,"http://127.0.0.1")[e==="fragment"?"hash":"search"];return new URLSearchParams(n.slice(1))}},em=";",tm=class extends Error{constructor(t,e){var n,r,o;if(super(t.error_description||t.error||""),this.form=e,this.name="ErrorResponse",!t.error)throw ao.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=t.error,this.error_description=(n=t.error_description)!=null?n:null,this.error_uri=(r=t.error_uri)!=null?r:null,this.state=t.userState,this.session_state=(o=t.session_state)!=null?o:null,this.url_state=t.url_state}},YDe=class extends Error{constructor(t){super(t),this.name="ErrorTimeout"}},ZDe=class{constructor(){this._logger=new ao("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(t){return this._logger.create(`getItem('${t}')`),this._data[t]}setItem(t,e){this._logger.create(`setItem('${t}')`),this._data[t]=e}removeItem(t){this._logger.create(`removeItem('${t}')`),delete this._data[t]}get length(){return Object.getOwnPropertyNames(this._data).length}key(t){return Object.getOwnPropertyNames(this._data)[t]}},p5=class extends Error{constructor(t,e){super(e),this.name="ErrorDPoPNonce",this.nonce=t}},f5=class{constructor(t=[],e=null,n={}){this._jwtHandler=e,this._extraHeaders=n,this._logger=new ao("JsonService"),this._contentTypes=[],this._contentTypes.push(...t,"application/json"),e&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(t,e={}){const{timeoutInSeconds:n,...r}=e;if(!n)return await fetch(t,r);const o=new AbortController,i=setTimeout(()=>o.abort(),n*1e3);try{return await fetch(t,{...e,signal:o.signal})}catch(s){throw s instanceof DOMException&&s.name==="AbortError"?new YDe("Network timed out"):s}finally{clearTimeout(i)}}async getJson(t,{token:e,credentials:n,timeoutInSeconds:r}={}){const o=this._logger.create("getJson"),i={Accept:this._contentTypes.join(", ")};e&&(o.debug("token passed, setting Authorization header"),i.Authorization="Bearer "+e),this._appendExtraHeaders(i);let s;try{o.debug("url:",t),s=await this.fetchWithTimeout(t,{method:"GET",headers:i,timeoutInSeconds:r,credentials:n})}catch(c){throw o.error("Network Error"),c}o.debug("HTTP response received, status",s.status);const u=s.headers.get("Content-Type");if(u&&!this._contentTypes.find(c=>u.startsWith(c))&&o.throw(new Error(`Invalid response Content-Type: ${u??"undefined"}, from URL: ${t}`)),s.ok&&this._jwtHandler&&(u==null?void 0:u.startsWith("application/jwt")))return await this._jwtHandler(await s.text());let l;try{l=await s.json()}catch(c){throw o.error("Error parsing JSON response",c),s.ok?c:new Error(`${s.statusText} (${s.status})`)}if(!s.ok)throw o.error("Error from server:",l),l.error?new tm(l):new Error(`${s.statusText} (${s.status}): ${JSON.stringify(l)}`);return l}async postForm(t,{body:e,basicAuth:n,timeoutInSeconds:r,initCredentials:o,extraHeaders:i}){const s=this._logger.create("postForm"),u={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded",...i};n!==void 0&&(u.Authorization="Basic "+n),this._appendExtraHeaders(u);let l;try{s.debug("url:",t),l=await this.fetchWithTimeout(t,{method:"POST",headers:u,body:e,timeoutInSeconds:r,credentials:o})}catch(h){throw s.error("Network error"),h}s.debug("HTTP response received, status",l.status);const c=l.headers.get("Content-Type");if(c&&!this._contentTypes.find(h=>c.startsWith(h)))throw new Error(`Invalid response Content-Type: ${c??"undefined"}, from URL: ${t}`);const d=await l.text();let F={};if(d)try{F=JSON.parse(d)}catch(h){throw s.error("Error parsing JSON response",h),l.ok?h:new Error(`${l.statusText} (${l.status})`)}if(!l.ok){if(s.error("Error from server:",F),l.headers.has("dpop-nonce")){const h=l.headers.get("dpop-nonce");throw new p5(h,`${JSON.stringify(F)}`)}throw F.error?new tm(F,e):new Error(`${l.statusText} (${l.status}): ${JSON.stringify(F)}`)}return F}_appendExtraHeaders(t){const e=this._logger.create("appendExtraHeaders"),n=Object.keys(this._extraHeaders),r=["accept","content-type"],o=["authorization"];n.length!==0&&n.forEach(i=>{if(r.includes(i.toLocaleLowerCase())){e.warn("Protected header could not be set",i,r);return}if(o.includes(i.toLocaleLowerCase())&&Object.keys(t).includes(i)){e.warn("Header could not be overridden",i,o);return}const s=typeof this._extraHeaders[i]=="function"?this._extraHeaders[i]():this._extraHeaders[i];s&&s!==""&&(t[i]=s)})}},KV=class{constructor(t){this._settings=t,this._logger=new ao("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new f5(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const t=this._logger.create("getMetadata");if(this._metadata)return t.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw t.throw(new Error("No authority or metadataUrl configured on settings")),null;t.debug("getting metadata from",this._metadataUrl);const e=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return t.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},e,this._settings.metadataSeed),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(t=!0){return this._getMetadataProperty("token_endpoint",t)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(t=!0){return this._getMetadataProperty("revocation_endpoint",t)}getKeysEndpoint(t=!0){return this._getMetadataProperty("jwks_uri",t)}async _getMetadataProperty(t,e=!1){const n=this._logger.create(`_getMetadataProperty('${t}')`),r=await this.getMetadata();if(n.debug("resolved"),r[t]===void 0){if(e===!0){n.warn("Metadata does not contain optional property");return}n.throw(new Error("Metadata does not contain property "+t))}return r[t]}async getSigningKeys(){const t=this._logger.create("getSigningKeys");if(this._signingKeys)return t.debug("returning signingKeys from cache"),this._signingKeys;const e=await this.getKeysEndpoint(!1);t.debug("got jwks_uri",e);const n=await this._jsonService.getJson(e,{timeoutInSeconds:this._settings.requestTimeoutInSeconds});if(t.debug("got key set",n),!Array.isArray(n.keys))throw t.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=n.keys,this._signingKeys}},Wb=class{constructor({prefix:t="oidc.",store:e=localStorage}={}){this._logger=new ao("WebStorageStateStore"),this._store=e,this._prefix=t}async set(t,e){this._logger.create(`set('${t}')`),t=this._prefix+t,await this._store.setItem(t,e)}async get(t){return this._logger.create(`get('${t}')`),t=this._prefix+t,await this._store.getItem(t)}async remove(t){this._logger.create(`remove('${t}')`),t=this._prefix+t;const e=await this._store.getItem(t);return await this._store.removeItem(t),e}async getAllKeys(){this._logger.create("getAllKeys");const t=await this._store.length,e=[];for(let n=0;n<t;n++){const r=await this._store.key(n);r&&r.indexOf(this._prefix)===0&&e.push(r.substr(this._prefix.length))}return e}},JDe="code",XDe="openid",QDe="client_secret_post",ege=60*15,_5=class{constructor({authority:t,metadataUrl:e,metadata:n,signingKeys:r,metadataSeed:o,client_id:i,client_secret:s,response_type:u=JDe,scope:l=XDe,redirect_uri:c,post_logout_redirect_uri:d,client_authentication:F=QDe,prompt:h,display:m,max_age:D,ui_locales:g,acr_values:p,resource:_,response_mode:v,filterProtocolClaims:E=!0,loadUserInfo:b=!1,requestTimeoutInSeconds:k,staleStateAgeInSeconds:C=ege,mergeClaimsStrategy:S={array:"replace"},disablePKCE:w=!1,stateStore:A,revokeTokenAdditionalContentTypes:O,fetchRequestCredentials:j,refreshTokenAllowedScope:R,extraQueryParams:M={},extraTokenParams:z={},extraHeaders:T={},dpop:P,omitScopeWhenRequesting:L=!1}){var U;if(this.authority=t,e?this.metadataUrl=e:(this.metadataUrl=t,t&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=n,this.metadataSeed=o,this.signingKeys=r,this.client_id=i,this.client_secret=s,this.response_type=u,this.scope=l,this.redirect_uri=c,this.post_logout_redirect_uri=d,this.client_authentication=F,this.prompt=h,this.display=m,this.max_age=D,this.ui_locales=g,this.acr_values=p,this.resource=_,this.response_mode=v,this.filterProtocolClaims=E??!0,this.loadUserInfo=!!b,this.staleStateAgeInSeconds=C,this.mergeClaimsStrategy=S,this.omitScopeWhenRequesting=L,this.disablePKCE=!!w,this.revokeTokenAdditionalContentTypes=O,this.fetchRequestCredentials=j||"same-origin",this.requestTimeoutInSeconds=k,A)this.stateStore=A;else{const te=typeof window<"u"?window.localStorage:new ZDe;this.stateStore=new Wb({store:te})}if(this.refreshTokenAllowedScope=R,this.extraQueryParams=M,this.extraTokenParams=z,this.extraHeaders=T,this.dpop=P,this.dpop&&!((U=this.dpop)!=null&&U.store))throw new Error("A DPoPStore is required when dpop is enabled")}},tge=class{constructor(t,e){this._settings=t,this._metadataService=e,this._logger=new ao("UserInfoService"),this._getClaimsFromJwt=async n=>{const r=this._logger.create("_getClaimsFromJwt");try{const o=Hb.decode(n);return r.debug("JWT decoding successful"),o}catch(o){throw r.error("Error parsing JWT response"),o}},this._jsonService=new f5(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(t){const e=this._logger.create("getClaims");t||this._logger.throw(new Error("No token passed"));const n=await this._metadataService.getUserInfoEndpoint();e.debug("got userinfo url",n);const r=await this._jsonService.getJson(n,{token:t,credentials:this._settings.fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return e.debug("got claims",r),r}},GV=class{constructor(t,e){this._settings=t,this._metadataService=e,this._logger=new ao("TokenClient"),this._jsonService=new f5(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:t="authorization_code",redirect_uri:e=this._settings.redirect_uri,client_id:n=this._settings.client_id,client_secret:r=this._settings.client_secret,extraHeaders:o,...i}){const s=this._logger.create("exchangeCode");n||s.throw(new Error("A client_id is required")),e||s.throw(new Error("A redirect_uri is required")),i.code||s.throw(new Error("A code is required"));const u=new URLSearchParams({grant_type:t,redirect_uri:e});for(const[F,h]of Object.entries(i))h!=null&&u.set(F,h);let l;switch(this._settings.client_authentication){case"client_secret_basic":if(r==null)throw s.throw(new Error("A client_secret is required")),null;l=As.generateBasicAuth(n,r);break;case"client_secret_post":u.append("client_id",n),r&&u.append("client_secret",r);break}const c=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");const d=await this._jsonService.postForm(c,{body:u,basicAuth:l,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:o});return s.debug("got response"),d}async exchangeCredentials({grant_type:t="password",client_id:e=this._settings.client_id,client_secret:n=this._settings.client_secret,scope:r=this._settings.scope,...o}){const i=this._logger.create("exchangeCredentials");e||i.throw(new Error("A client_id is required"));const s=new URLSearchParams({grant_type:t});this._settings.omitScopeWhenRequesting||s.set("scope",r);for(const[d,F]of Object.entries(o))F!=null&&s.set(d,F);let u;switch(this._settings.client_authentication){case"client_secret_basic":if(n==null)throw i.throw(new Error("A client_secret is required")),null;u=As.generateBasicAuth(e,n);break;case"client_secret_post":s.append("client_id",e),n&&s.append("client_secret",n);break}const l=await this._metadataService.getTokenEndpoint(!1);i.debug("got token endpoint");const c=await this._jsonService.postForm(l,{body:s,basicAuth:u,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials});return i.debug("got response"),c}async exchangeRefreshToken({grant_type:t="refresh_token",client_id:e=this._settings.client_id,client_secret:n=this._settings.client_secret,timeoutInSeconds:r,extraHeaders:o,...i}){const s=this._logger.create("exchangeRefreshToken");e||s.throw(new Error("A client_id is required")),i.refresh_token||s.throw(new Error("A refresh_token is required"));const u=new URLSearchParams({grant_type:t});for(const[F,h]of Object.entries(i))Array.isArray(h)?h.forEach(m=>u.append(F,m)):h!=null&&u.set(F,h);let l;switch(this._settings.client_authentication){case"client_secret_basic":if(n==null)throw s.throw(new Error("A client_secret is required")),null;l=As.generateBasicAuth(e,n);break;case"client_secret_post":u.append("client_id",e),n&&u.append("client_secret",n);break}const c=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");const d=await this._jsonService.postForm(c,{body:u,basicAuth:l,timeoutInSeconds:r,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:o});return s.debug("got response"),d}async revoke(t){var e;const n=this._logger.create("revoke");t.token||n.throw(new Error("A token is required"));const r=await this._metadataService.getRevocationEndpoint(!1);n.debug(`got revocation endpoint, revoking ${(e=t.token_type_hint)!=null?e:"default token type"}`);const o=new URLSearchParams;for(const[i,s]of Object.entries(t))s!=null&&o.set(i,s);o.set("client_id",this._settings.client_id),this._settings.client_secret&&o.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(r,{body:o,timeoutInSeconds:this._settings.requestTimeoutInSeconds}),n.debug("got response")}},nge=class{constructor(t,e,n){this._settings=t,this._metadataService=e,this._claimsService=n,this._logger=new ao("ResponseValidator"),this._userInfoService=new tge(this._settings,this._metadataService),this._tokenClient=new GV(this._settings,this._metadataService)}async validateSigninResponse(t,e,n){const r=this._logger.create("validateSigninResponse");this._processSigninState(t,e),r.debug("state processed"),await this._processCode(t,e,n),r.debug("code processed"),t.isOpenId&&this._validateIdTokenAttributes(t),r.debug("tokens validated"),await this._processClaims(t,e==null?void 0:e.skipUserInfo,t.isOpenId),r.debug("claims processed")}async validateCredentialsResponse(t,e){const n=this._logger.create("validateCredentialsResponse"),r=t.isOpenId&&!!t.id_token;r&&this._validateIdTokenAttributes(t),n.debug("tokens validated"),await this._processClaims(t,e,r),n.debug("claims processed")}async validateRefreshResponse(t,e){var n,r;const o=this._logger.create("validateRefreshResponse");t.userState=e.data,(n=t.session_state)!=null||(t.session_state=e.session_state),(r=t.scope)!=null||(t.scope=e.scope),t.isOpenId&&t.id_token&&(this._validateIdTokenAttributes(t,e.id_token),o.debug("ID Token validated")),t.id_token||(t.id_token=e.id_token,t.profile=e.profile);const i=t.isOpenId&&!!t.id_token;await this._processClaims(t,!1,i),o.debug("claims processed")}validateSignoutResponse(t,e){const n=this._logger.create("validateSignoutResponse");if(e.id!==t.state&&n.throw(new Error("State does not match")),n.debug("state validated"),t.userState=e.data,t.error)throw n.warn("Response was error",t.error),new tm(t)}_processSigninState(t,e){var n;const r=this._logger.create("_processSigninState");if(e.id!==t.state&&r.throw(new Error("State does not match")),e.client_id||r.throw(new Error("No client_id on state")),e.authority||r.throw(new Error("No authority on state")),this._settings.authority!==e.authority&&r.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==e.client_id&&r.throw(new Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),t.userState=e.data,t.url_state=e.url_state,(n=t.scope)!=null||(t.scope=e.scope),t.error)throw r.warn("Response was error",t.error),new tm(t);e.code_verifier&&!t.code&&r.throw(new Error("Expected code in response"))}async _processClaims(t,e=!1,n=!0){const r=this._logger.create("_processClaims");if(t.profile=this._claimsService.filterProtocolClaims(t.profile),e||!this._settings.loadUserInfo||!t.access_token){r.debug("not loading user info");return}r.debug("loading user info");const o=await this._userInfoService.getClaims(t.access_token);r.debug("user info claims received from user info endpoint"),n&&o.sub!==t.profile.sub&&r.throw(new Error("subject from UserInfo response does not match subject in ID Token")),t.profile=this._claimsService.mergeClaims(t.profile,this._claimsService.filterProtocolClaims(o)),r.debug("user info claims received, updated profile:",t.profile)}async _processCode(t,e,n){const r=this._logger.create("_processCode");if(t.code){r.debug("Validating code");const o=await this._tokenClient.exchangeCode({client_id:e.client_id,client_secret:e.client_secret,code:t.code,redirect_uri:e.redirect_uri,code_verifier:e.code_verifier,extraHeaders:n,...e.extraTokenParams});Object.assign(t,o)}else r.debug("No code to process")}_validateIdTokenAttributes(t,e){var n;const r=this._logger.create("_validateIdTokenAttributes");r.debug("decoding ID Token JWT");const o=Hb.decode((n=t.id_token)!=null?n:"");if(o.sub||r.throw(new Error("ID Token is missing a subject claim")),e){const i=Hb.decode(e);o.sub!==i.sub&&r.throw(new Error("sub in id_token does not match current sub")),o.auth_time&&o.auth_time!==i.auth_time&&r.throw(new Error("auth_time in id_token does not match original auth_time")),o.azp&&o.azp!==i.azp&&r.throw(new Error("azp in id_token does not match original azp")),!o.azp&&i.azp&&r.throw(new Error("azp not in id_token, but present in original id_token"))}t.profile=o}},Kb=class VI{constructor(e){this.id=e.id||As.generateUUIDv4(),this.data=e.data,e.created&&e.created>0?this.created=e.created:this.created=$b.getEpochTime(),this.request_type=e.request_type,this.url_state=e.url_state}toStorageString(){return new ao("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(e){return ao.createStatic("State","fromStorageString"),Promise.resolve(new VI(JSON.parse(e)))}static async clearStaleState(e,n){const r=ao.createStatic("State","clearStaleState"),o=$b.getEpochTime()-n,i=await e.getAllKeys();r.debug("got keys",i);for(let s=0;s<i.length;s++){const u=i[s],l=await e.get(u);let c=!1;if(l)try{const d=await VI.fromStorageString(l);r.debug("got item from key:",u,d.created),d.created<=o&&(c=!0)}catch(d){r.error("Error parsing state for key:",u,d),c=!0}else r.debug("no item in storage for key:",u),c=!0;c&&(r.debug("removed item for key:",u),e.remove(u))}}},v5=class qI extends Kb{constructor(e){super(e),this.code_verifier=e.code_verifier,this.code_challenge=e.code_challenge,this.authority=e.authority,this.client_id=e.client_id,this.redirect_uri=e.redirect_uri,this.scope=e.scope,this.client_secret=e.client_secret,this.extraTokenParams=e.extraTokenParams,this.response_mode=e.response_mode,this.skipUserInfo=e.skipUserInfo}static async create(e){const n=e.code_verifier===!0?As.generateCodeVerifier():e.code_verifier||void 0,r=n?await As.generateCodeChallenge(n):void 0;return new qI({...e,code_verifier:n,code_challenge:r})}toStorageString(){return new ao("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo})}static fromStorageString(e){ao.createStatic("SigninState","fromStorageString");const n=JSON.parse(e);return qI.create(n)}},YV=class $oe{constructor(e){this.url=e.url,this.state=e.state}static async create({url:e,authority:n,client_id:r,redirect_uri:o,response_type:i,scope:s,state_data:u,response_mode:l,request_type:c,client_secret:d,nonce:F,url_state:h,resource:m,skipUserInfo:D,extraQueryParams:g,extraTokenParams:p,disablePKCE:_,dpopJkt:v,omitScopeWhenRequesting:E,...b}){if(!e)throw this._logger.error("create: No url passed"),new Error("url");if(!r)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!o)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!i)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!s)throw this._logger.error("create: No scope passed"),new Error("scope");if(!n)throw this._logger.error("create: No authority passed"),new Error("authority");const k=await v5.create({data:u,request_type:c,url_state:h,code_verifier:!_,client_id:r,authority:n,redirect_uri:o,response_mode:l,client_secret:d,scope:s,extraTokenParams:p,skipUserInfo:D}),C=new URL(e);C.searchParams.append("client_id",r),C.searchParams.append("redirect_uri",o),C.searchParams.append("response_type",i),E||C.searchParams.append("scope",s),F&&C.searchParams.append("nonce",F),v&&C.searchParams.append("dpop_jkt",v);let S=k.id;h&&(S=`${S}${em}${h}`),C.searchParams.append("state",S),k.code_challenge&&(C.searchParams.append("code_challenge",k.code_challenge),C.searchParams.append("code_challenge_method","S256")),m&&(Array.isArray(m)?m:[m]).forEach(w=>C.searchParams.append("resource",w));for(const[w,A]of Object.entries({response_mode:l,...b,...g}))A!=null&&C.searchParams.append(w,A.toString());return new $oe({url:C.href,state:k})}};YV._logger=new ao("SigninRequest");var rge=YV,oge="openid",Gb=class{constructor(t){if(this.access_token="",this.token_type="",this.profile={},this.state=t.get("state"),this.session_state=t.get("session_state"),this.state){const e=decodeURIComponent(this.state).split(em);this.state=e[0],e.length>1&&(this.url_state=e.slice(1).join(em))}this.error=t.get("error"),this.error_description=t.get("error_description"),this.error_uri=t.get("error_uri"),this.code=t.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-$b.getEpochTime()}set expires_in(t){typeof t=="string"&&(t=Number(t)),t!==void 0&&t>=0&&(this.expires_at=Math.floor(t)+$b.getEpochTime())}get isOpenId(){var t;return((t=this.scope)==null?void 0:t.split(" ").includes(oge))||!!this.id_token}},ige=class{constructor({url:t,state_data:e,id_token_hint:n,post_logout_redirect_uri:r,extraQueryParams:o,request_type:i,client_id:s,url_state:u}){if(this._logger=new ao("SignoutRequest"),!t)throw this._logger.error("ctor: No url passed"),new Error("url");const l=new URL(t);if(n&&l.searchParams.append("id_token_hint",n),s&&l.searchParams.append("client_id",s),r&&(l.searchParams.append("post_logout_redirect_uri",r),e||u)){this.state=new Kb({data:e,request_type:i,url_state:u});let c=this.state.id;u&&(c=`${c}${em}${u}`),l.searchParams.append("state",c)}for(const[c,d]of Object.entries({...o}))d!=null&&l.searchParams.append(c,d.toString());this.url=l.href}},age=class{constructor(t){if(this.state=t.get("state"),this.state){const e=decodeURIComponent(this.state).split(em);this.state=e[0],e.length>1&&(this.url_state=e.slice(1).join(em))}this.error=t.get("error"),this.error_description=t.get("error_description"),this.error_uri=t.get("error_uri")}},sge=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],uge=["sub","iss","aud","exp","iat"],lge=class{constructor(t){this._settings=t,this._logger=new ao("ClaimsService")}filterProtocolClaims(t){const e={...t};if(this._settings.filterProtocolClaims){let n;Array.isArray(this._settings.filterProtocolClaims)?n=this._settings.filterProtocolClaims:n=sge;for(const r of n)uge.includes(r)||delete e[r]}return e}mergeClaims(t,e){const n={...t};for(const[r,o]of Object.entries(e))if(n[r]!==o)if(Array.isArray(n[r])||Array.isArray(o))if(this._settings.mergeClaimsStrategy.array=="replace")n[r]=o;else{const i=Array.isArray(n[r])?n[r]:[n[r]];for(const s of Array.isArray(o)?o:[o])i.includes(s)||i.push(s);n[r]=i}else typeof n[r]=="object"&&typeof o=="object"?n[r]=this.mergeClaims(n[r],o):n[r]=o;return n}},cge=class{constructor(t,e){this.keys=t,this.nonce=e}},b5=class{constructor(t,e){this._logger=new ao("OidcClient"),this.settings=t instanceof _5?t:new _5(t),this.metadataService=e??new KV(this.settings),this._claimsService=new lge(this.settings),this._validator=new nge(this.settings,this.metadataService,this._claimsService),this._tokenClient=new GV(this.settings,this.metadataService)}async createSigninRequest({state:t,request:e,request_uri:n,request_type:r,id_token_hint:o,login_hint:i,skipUserInfo:s,nonce:u,url_state:l,response_type:c=this.settings.response_type,scope:d=this.settings.scope,redirect_uri:F=this.settings.redirect_uri,prompt:h=this.settings.prompt,display:m=this.settings.display,max_age:D=this.settings.max_age,ui_locales:g=this.settings.ui_locales,acr_values:p=this.settings.acr_values,resource:_=this.settings.resource,response_mode:v=this.settings.response_mode,extraQueryParams:E=this.settings.extraQueryParams,extraTokenParams:b=this.settings.extraTokenParams,dpopJkt:k,omitScopeWhenRequesting:C=this.settings.omitScopeWhenRequesting}){const S=this._logger.create("createSigninRequest");if(c!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const w=await this.metadataService.getAuthorizationEndpoint();S.debug("Received authorization endpoint",w);const A=await rge.create({url:w,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:F,response_type:c,scope:d,state_data:t,url_state:l,prompt:h,display:m,max_age:D,ui_locales:g,id_token_hint:o,login_hint:i,acr_values:p,dpopJkt:k,resource:_,request:e,request_uri:n,extraQueryParams:E,extraTokenParams:b,request_type:r,response_mode:v,client_secret:this.settings.client_secret,skipUserInfo:s,nonce:u,disablePKCE:this.settings.disablePKCE,omitScopeWhenRequesting:C});await this.clearStaleState();const O=A.state;return await this.settings.stateStore.set(O.id,O.toStorageString()),A}async readSigninResponseState(t,e=!1){const n=this._logger.create("readSigninResponseState"),r=new Gb(WV.readParams(t,this.settings.response_mode));if(!r.state)throw n.throw(new Error("No state in response")),null;const o=await this.settings.stateStore[e?"remove":"get"](r.state);if(!o)throw n.throw(new Error("No matching state found in storage")),null;return{state:await v5.fromStorageString(o),response:r}}async processSigninResponse(t,e,n=!0){const r=this._logger.create("processSigninResponse"),{state:o,response:i}=await this.readSigninResponseState(t,n);if(r.debug("received state from storage; validating response"),this.settings.dpop&&this.settings.dpop.store){const s=await this.getDpopProof(this.settings.dpop.store);e={...e,DPoP:s}}try{await this._validator.validateSigninResponse(i,o,e)}catch(s){if(s instanceof p5&&this.settings.dpop){const u=await this.getDpopProof(this.settings.dpop.store,s.nonce);e.DPoP=u,await this._validator.validateSigninResponse(i,o,e)}else throw s}return i}async getDpopProof(t,e){let n,r;return(await t.getAllKeys()).includes(this.settings.client_id)?(r=await t.get(this.settings.client_id),r.nonce!==e&&e&&(r.nonce=e,await t.set(this.settings.client_id,r))):(n=await As.generateDPoPKeys(),r=new cge(n,e),await t.set(this.settings.client_id,r)),await As.generateDPoPProof({url:await this.metadataService.getTokenEndpoint(!1),httpMethod:"POST",keyPair:r.keys,nonce:r.nonce})}async processResourceOwnerPasswordCredentials({username:t,password:e,skipUserInfo:n=!1,extraTokenParams:r={}}){const o=await this._tokenClient.exchangeCredentials({username:t,password:e,...r}),i=new Gb(new URLSearchParams);return Object.assign(i,o),await this._validator.validateCredentialsResponse(i,n),i}async useRefreshToken({state:t,redirect_uri:e,resource:n,timeoutInSeconds:r,extraHeaders:o,extraTokenParams:i}){var s;const u=this._logger.create("useRefreshToken");let l;if(this.settings.refreshTokenAllowedScope===void 0)l=t.scope;else{const F=this.settings.refreshTokenAllowedScope.split(" ");l=(((s=t.scope)==null?void 0:s.split(" "))||[]).filter(h=>F.includes(h)).join(" ")}if(this.settings.dpop&&this.settings.dpop.store){const F=await this.getDpopProof(this.settings.dpop.store);o={...o,DPoP:F}}let c;try{c=await this._tokenClient.exchangeRefreshToken({refresh_token:t.refresh_token,scope:l,redirect_uri:e,resource:n,timeoutInSeconds:r,extraHeaders:o,...i})}catch(F){if(F instanceof p5&&this.settings.dpop)o.DPoP=await this.getDpopProof(this.settings.dpop.store,F.nonce),c=await this._tokenClient.exchangeRefreshToken({refresh_token:t.refresh_token,scope:l,redirect_uri:e,resource:n,timeoutInSeconds:r,extraHeaders:o,...i});else throw F}const d=new Gb(new URLSearchParams);return Object.assign(d,c),u.debug("validating response",d),await this._validator.validateRefreshResponse(d,{...t,scope:l}),d}async createSignoutRequest({state:t,id_token_hint:e,client_id:n,request_type:r,url_state:o,post_logout_redirect_uri:i=this.settings.post_logout_redirect_uri,extraQueryParams:s=this.settings.extraQueryParams}={}){const u=this._logger.create("createSignoutRequest"),l=await this.metadataService.getEndSessionEndpoint();if(!l)throw u.throw(new Error("No end session endpoint")),null;u.debug("Received end session endpoint",l),!n&&i&&!e&&(n=this.settings.client_id);const c=new ige({url:l,id_token_hint:e,client_id:n,post_logout_redirect_uri:i,state_data:t,extraQueryParams:s,request_type:r,url_state:o});await this.clearStaleState();const d=c.state;return d&&(u.debug("Signout request has state to persist"),await this.settings.stateStore.set(d.id,d.toStorageString())),c}async readSignoutResponseState(t,e=!1){const n=this._logger.create("readSignoutResponseState"),r=new age(WV.readParams(t,this.settings.response_mode));if(!r.state){if(n.debug("No state in response"),r.error)throw n.warn("Response was error:",r.error),new tm(r);return{state:void 0,response:r}}const o=await this.settings.stateStore[e?"remove":"get"](r.state);if(!o)throw n.throw(new Error("No matching state found in storage")),null;return{state:await Kb.fromStorageString(o),response:r}}async processSignoutResponse(t){const e=this._logger.create("processSignoutResponse"),{state:n,response:r}=await this.readSignoutResponseState(t,!0);return n?(e.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(r,n)):e.debug("No state from storage; skipping response validation"),r}clearStaleState(){return this._logger.create("clearStaleState"),Kb.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(t,e){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:t,token_type_hint:e})}},pi=function(t){return t.NotSupported="OIDC authentication not supported",t.Misconfigured="OIDC is misconfigured",t.General="Something went wrong with OIDC discovery",t.OpSupport="Configured OIDC OP does not support required functions",t.DynamicRegistrationNotSupported="Dynamic registration not supported",t.DynamicRegistrationFailed="Dynamic registration failed",t.DynamicRegistrationInvalid="Dynamic registration invalid response",t.CodeExchangeFailed="Failed to exchange code for token",t.InvalidBearerTokenResponse="Invalid bearer token response",t.InvalidIdToken="Invalid ID token",t.MissingOrInvalidStoredState="State required to finish logging in is not found in storage.",t}({}),C5=t=>!!t&&typeof t=="object"&&!Array.isArray(t),zl=(t,e)=>!t[e]||!sf(t,e)?(Y.error("Missing or invalid property: ".concat(e)),!1):!0,sf=(t,e)=>t[e]&&typeof t[e]!="string"?(Y.error("Invalid property: ".concat(e)),!1):!0,ZV=(t,e)=>t[e]&&(!Array.isArray(t[e])||!t[e].every(n=>typeof n=="string"))?(Y.error("Invalid property: ".concat(e)),!1):!0,E5=(t,e,n)=>{var r=t[e];return!r||!Array.isArray(r)||!r.includes(n)?(Y.error("Invalid property: ".concat(e,". ").concat(n," is required.")),!1):!0},JV=t=>{if(!C5(t))throw Y.error("Issuer configuration not found or malformed"),new Error(pi.OpSupport);var e=[zl(t,"issuer"),zl(t,"authorization_endpoint"),zl(t,"token_endpoint"),zl(t,"revocation_endpoint"),sf(t,"registration_endpoint"),sf(t,"account_management_uri"),sf(t,"device_authorization_endpoint"),ZV(t,"account_management_actions_supported"),E5(t,"response_types_supported","code"),E5(t,"grant_types_supported","authorization_code"),E5(t,"code_challenge_methods_supported","S256"),ZV(t,"prompt_values_supported")].some(n=>!n);if(!e)return t;throw Y.error("Issuer configuration not valid"),new Error(pi.OpSupport)},XV=t=>{try{return HV(t)}catch(e){throw Y.error("Could not decode id_token",e),e}},QV=(t,e,n,r)=>{try{if(!t)throw new Error("No ID token");var o=XV(t);if(o.iss!==e)throw new Error("Invalid issuer");var i=typeof o.aud=="string"?[o.aud]:o.aud;if(!i.includes(n))throw new Error("Invalid audience");if(r!==void 0&&o.nonce!==r)throw new Error("Invalid nonce");if(!o.exp||Date.now()>o.exp*1e3)throw new Error("Invalid expiry")}catch(s){throw Y.error("Invalid ID token",s),new Error(pi.InvalidIdToken)}};function eq(t){if(!C5(t))throw Y.error("Stored user state not found"),new Error(pi.MissingOrInvalidStoredState);var e=[zl(t,"homeserverUrl"),zl(t,"nonce"),sf(t,"identityServerUrl")].some(n=>!n);if(e)throw new Error(pi.MissingOrInvalidStoredState)}var dge=t=>C5(t)&&zl(t,"token_type")&&t.token_type.toLowerCase()==="bearer"&&zl(t,"access_token")&&zl(t,"refresh_token")&&(!("expires_in"in t)||typeof t.expires_in=="number");function tq(t){if(!dge(t))throw new Error(pi.InvalidBearerTokenResponse)}function nq(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Yb(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nq(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nq(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Zb=t=>{var e=t??ul(10);return"openid urn:matrix:org.matrix.msc2967.client:api:* urn:matrix:org.matrix.msc2967.client:device:".concat(e)},hge=function(){var t=Z(function*(e){if(!globalThis.crypto.subtle)return Y.warn("A secure context is required to generate code challenge. Using plain text code challenge"),e;var n=yield qV(e);return jb(n)});return function(e){return t.apply(this,arguments)}}(),Fge=t=>{var{redirectUri:e}=t;return{scope:Zb(),redirectUri:e,state:ul(8),nonce:ul(8),codeVerifier:ul(64)}},mge=function(){var t=Z(function*(e,n,r){var{scope:o,redirectUri:i,state:s,nonce:u,codeVerifier:l}=r,c=new URL(e);return c.searchParams.append("response_mode","query"),c.searchParams.append("response_type","code"),c.searchParams.append("redirect_uri",i),c.searchParams.append("client_id",n),c.searchParams.append("state",s),c.searchParams.append("scope",o),c.searchParams.append("nonce",u),c.searchParams.append("code_challenge_method","S256"),c.searchParams.append("code_challenge",yield hge(l)),c.toString()});return function(e,n,r){return t.apply(this,arguments)}}(),Dge=function(){var t=Z(function*(e){var{metadata:n,redirectUri:r,clientId:o,homeserverUrl:i,identityServerUrl:s,nonce:u,prompt:l,urlState:c}=e,d=Zb(),F=new b5(Yb(Yb({},n),{},{client_id:o,redirect_uri:r,authority:n.issuer,response_mode:"query",response_type:"code",scope:d,stateStore:new Wb({prefix:"mx_oidc_",store:window.sessionStorage})})),h={homeserverUrl:i,nonce:u,identityServerUrl:s},m=yield F.createSigninRequest({state:h,nonce:u,prompt:l,url_state:c});return m.url});return function(e){return t.apply(this,arguments)}}(),gge=t=>({id_token:t.id_token,scope:t.scope,expires_at:t.expires_at,refresh_token:t.refresh_token,access_token:t.access_token,token_type:"Bearer"}),pge=function(){var t=Z(function*(e,n){var r=new URL(window.location.origin);r.searchParams.append("code",e),r.searchParams.append("state",n),qb.setLogger(Y);try{var o=new Gb(r.searchParams),i=new Wb({prefix:"mx_oidc_",store:window.sessionStorage}),s=yield i.get(o.state);if(!s)throw new Error(pi.MissingOrInvalidStoredState);var u=yield v5.fromStorageString(s),l=new b5(Yb(Yb({},u),{},{stateStore:i})),c=yield l.processSigninResponse(r.href),d=c.userState;eq(d),tq(c),QV(c.id_token,l.settings.authority,l.settings.client_id,d.nonce);var F=gge(c);return{oidcClientSettings:{clientId:l.settings.client_id,issuer:l.settings.authority},tokenResponse:F,homeserverUrl:d.homeserverUrl,identityServerUrl:d.identityServerUrl,idTokenClaims:c.profile}}catch(m){Y.error("Oidc login failed",m);var h=m.message;throw Object.values(pi).includes(h)?m:new Error(pi.CodeExchangeFailed)}});return function(e,n){return t.apply(this,arguments)}}();function rq(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function oq(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rq(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rq(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var y5=function(){var t=Z(function*(e){var n=new URL(".well-known/openid-configuration",e),r=yield fetch(n,{method:Se.Get,signal:wb(5e3)}),o=yield r.json();return x5(o)});return function(e){return t.apply(this,arguments)}}(),x5=function(){var t=Z(function*(e){var n=JV(e),r=new _5({authority:n.issuer,metadata:n,redirect_uri:"",client_id:""}),o=new KV(r);return oq(oq({},n),{},{signingKeys:yield o.getSigningKeys()})});return function(e){return t.apply(this,arguments)}}(),fge="urn:ietf:params:oauth:grant-type:device_code",w5=(t,e)=>{if(!e)return!1;var n=new URL(e);return!(n.protocol!==t.protocol||n.hostname!==t.hostname&&!n.hostname.endsWith(".".concat(t.hostname)))},_ge=function(){var t=Z(function*(e,n){if(!e.registration_endpoint)throw new Error(pi.DynamicRegistrationNotSupported);var r=["authorization_code","refresh_token"];if(r.some(d=>!e.grant_types_supported.includes(d)))throw new Error(pi.DynamicRegistrationNotSupported);var o=new URL(n.clientUri),i={client_name:n.clientName,client_uri:n.clientUri,response_types:["code"],grant_types:r,redirect_uris:n.redirectUris,id_token_signed_response_alg:"RS256",token_endpoint_auth_method:"none",application_type:n.applicationType,contacts:n.contacts,logo_uri:w5(o,n.logoUri)?n.logoUri:void 0,policy_uri:w5(o,n.policyUri)?n.policyUri:void 0,tos_uri:w5(o,n.tosUri)?n.tosUri:void 0},s={Accept:"application/json","Content-Type":"application/json"};try{var u=yield fetch(e.registration_endpoint,{method:Se.Post,headers:s,body:JSON.stringify(i)});if(u.status>=400)throw new Error(pi.DynamicRegistrationFailed);var l=yield u.json(),c=l.client_id;if(!c||typeof c!="string")throw new Error(pi.DynamicRegistrationInvalid);return c}catch(d){throw Object.values(pi).includes(d.message)?d:(Y.error("Dynamic registration request failed",d),new Error(pi.DynamicRegistrationFailed))}});return function(e,n){return t.apply(this,arguments)}}();class vge{constructor(e,n,r,o,i){this.idTokenClaims=i,I(this,"oidcClientReady",void 0),I(this,"oidcClient",void 0),I(this,"inflightRefreshRequest",void 0),this.oidcClientReady=this.initialiseOidcClient(e,n,o,r)}initialiseOidcClient(e,n,r,o){var i=this;return Z(function*(){try{var s,u=yield y5(e),l=Zb(r);i.oidcClient=new b5({metadata:u,signingKeys:(s=u.signingKeys)!==null&&s!==void 0?s:void 0,client_id:n,scope:l,redirect_uri:o,authority:u.issuer,stateStore:new Wb({prefix:"mx_oidc_",store:window.sessionStorage})})}catch(c){throw Y.error("Failed to initialise OIDC client.",c),new Error("Failed to initialise OIDC client.")}})()}doRefreshAccessToken(e){var n=this;return Z(function*(){n.inflightRefreshRequest||(n.inflightRefreshRequest=n.getNewTokens(e));try{var r=yield n.inflightRefreshRequest;return r}catch(o){throw o instanceof tm?new B9(o):o}finally{n.inflightRefreshRequest=void 0}})()}persistTokens(e){return Z(function*(){})()}getNewTokens(e){var n=this;return Z(function*(){if(!n.oidcClient)throw new Error("Cannot get new token before OIDC client is initialised.");var r={refresh_token:e,session_state:"test",data:void 0,profile:n.idTokenClaims},o=Date.now(),i=yield n.oidcClient.useRefreshToken({state:r,timeoutInSeconds:300}),s={accessToken:i.access_token,refreshToken:i.refresh_token,expiry:i.expires_in?new Date(o+i.expires_in*1e3):void 0};return yield n.persistTokens(s),s})()}}var bge=["server","limit","since"];function iq(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ro(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?iq(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iq(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Cge=3e3,aq=10*60*1e3,Ege=new ro("last_seen_user_agent","org.matrix.msc3852.last_seen_user_agent"),nm=function(t){return t.Chronological="chronological",t.Detached="detached",t}({}),yge=new fp("m.get_login_token","org.matrix.msc3882.get_login_token"),sq="uk.half-shot.msc2666",uq="uk.half-shot.msc2666.mutual_rooms",lq="uk.half-shot.msc2666.query_mutual_rooms",vu="org.matrix.msc4140",cq="uk.tcpip.msc4133",bu="$",st=function(t){return t.Sync="sync",t.Event="event",t.ToDeviceEvent="toDeviceEvent",t.AccountData="accountData",t.Room="Room",t.DeleteRoom="deleteRoom",t.SyncUnexpectedError="sync.unexpectedError",t.ClientWellKnown="WellKnown.client",t.ReceivedVoipEvent="received_voip_event",t.UndecryptableToDeviceEvent="toDeviceEvent.undecryptable",t.TurnServers="turnServers",t.TurnServersError="turnServers.error",t}({}),xge=new ro("action","org.matrix.msc3824.action");class Jb extends Cr{constructor(e){var n,r,o,i;super(),o=this,I(this,"logger",void 0),I(this,"reEmitter",new x1(this)),I(this,"olmVersion",null),I(this,"usingExternalCrypto",!1),I(this,"_store",void 0),I(this,"deviceId",void 0),I(this,"credentials",void 0),I(this,"legacyPickleKey",void 0),I(this,"scheduler",void 0),I(this,"clientRunning",!1),I(this,"timelineSupport",!1),I(this,"urlPreviewCache",{}),I(this,"identityServer",void 0),I(this,"http",void 0),I(this,"cryptoBackend",void 0),I(this,"cryptoCallbacks",void 0),I(this,"callEventHandler",void 0),I(this,"groupCallEventHandler",void 0),I(this,"supportsCallTransfer",!1),I(this,"forceTURN",!1),I(this,"iceCandidatePoolSize",0),I(this,"idBaseUrl",void 0),I(this,"baseUrl",void 0),I(this,"isVoipWithNoMediaAllowed",void 0),I(this,"useLivekitForGroupCalls",void 0),I(this,"canSupportVoip",!1),I(this,"peekSync",null),I(this,"isGuestAccount",!1),I(this,"ongoingScrollbacks",{}),I(this,"notifTimelineSet",null),I(this,"legacyCryptoStore",void 0),I(this,"verificationMethods",void 0),I(this,"fallbackICEServerAllowed",!1),I(this,"syncApi",void 0),I(this,"roomNameGenerator",void 0),I(this,"pushRules",void 0),I(this,"syncLeftRoomsPromise",void 0),I(this,"syncedLeftRooms",!1),I(this,"clientOpts",void 0),I(this,"clientWellKnownIntervalID",void 0),I(this,"canResetTimelineCallback",void 0),I(this,"canSupport",new Map),I(this,"pushProcessor",new Bs(this)),I(this,"serverVersionsPromise",void 0),I(this,"clientWellKnown",void 0),I(this,"clientWellKnownPromise",void 0),I(this,"turnServers",[]),I(this,"turnServersExpiry",0),I(this,"checkTurnServersIntervalID",void 0),I(this,"txnCtr",0),I(this,"mediaHandler",new vDe(this)),I(this,"sessionId",void 0),I(this,"eventsBeingEncrypted",new Set),I(this,"useE2eForGroupCall",!0),I(this,"toDeviceMessageQueue",void 0),I(this,"livekitServiceURL",void 0),I(this,"_secretStorage",void 0),I(this,"ignoredInvites",void 0),I(this,"matrixRTC",void 0),I(this,"serverCapabilitiesService",void 0),I(this,"startCallEventHandler",()=>{this.isInitialSyncComplete()&&(K9()&&(this.callEventHandler.start(),this.groupCallEventHandler.start()),this.off(st.Sync,this.startCallEventHandler))}),I(this,"startMatrixRTC",()=>{this.isInitialSyncComplete()&&(this.matrixRTC.start(),this.off(st.Sync,this.startMatrixRTC))}),I(this,"fixupRoomNotifications",()=>{if(this.isInitialSyncComplete()){var u,l=((u=this.getRooms())!==null&&u!==void 0?u:[]).filter(F=>F.getUnreadNotificationCount(Ln.Total)>0);for(var c of l){var d=this.getSafeUserId();c.fixupNotifications(d)}this.off(st.Sync,this.fixupRoomNotifications)}}),this.logger=(n=e.logger)!==null&&n!==void 0?n:Y,e.baseUrl=Mk(e.baseUrl),e.idBaseUrl=Mk(e.idBaseUrl),this.baseUrl=e.baseUrl,this.idBaseUrl=e.idBaseUrl,this.identityServer=e.identityServer,this.usingExternalCrypto=(r=e.usingExternalCrypto)!==null&&r!==void 0?r:!1,this.store=e.store||new _me,this.deviceId=e.deviceId||null,this.sessionId=ul(10);var s=e.userId||null;this.credentials={userId:s},this.http=new zU(this,{fetchFn:e.fetchFn,baseUrl:e.baseUrl,idBaseUrl:e.idBaseUrl,accessToken:e.accessToken,refreshToken:e.refreshToken,tokenRefreshFunction:e.tokenRefreshFunction,prefix:Do.V3,onlyData:!0,extraParams:e.queryParams,localTimeoutMs:e.localTimeoutMs,useAuthorizationHeader:e.useAuthorizationHeader,logger:this.logger}),e.pickleKey&&(this.legacyPickleKey=e.pickleKey),this.useLivekitForGroupCalls=!!e.useLivekitForGroupCalls,this.scheduler=e.scheduler,this.scheduler&&this.scheduler.setProcessFunction(function(){var u=Z(function*(l){var c=o.getRoom(l.getRoomId());l.status!==Pt.SENDING&&o.updatePendingEventStatus(c,l,Pt.SENDING);var d=yield o.sendEventHttpRequest(l);return c&&c.updatePendingEvent(l,Pt.SENT,d.event_id),d});return function(l){return u.apply(this,arguments)}}()),K9()&&(this.callEventHandler=new qme(this),this.groupCallEventHandler=new Hme(this),this.canSupportVoip=!0,this.on(st.Sync,this.startCallEventHandler)),this.matrixRTC=new qDe(this),this.serverCapabilitiesService=new VU(this.http),this.on(st.Sync,this.fixupRoomNotifications),this.timelineSupport=!!e.timelineSupport,this.legacyCryptoStore=e.cryptoStore,this.verificationMethods=e.verificationMethods,this.cryptoCallbacks=e.cryptoCallbacks||{},this.forceTURN=e.forceTURN||!1,this.iceCandidatePoolSize=e.iceCandidatePoolSize===void 0?0:e.iceCandidatePoolSize,this.supportsCallTransfer=e.supportsCallTransfer||!1,this.fallbackICEServerAllowed=e.fallbackICEServerAllowed||!1,this.isVoipWithNoMediaAllowed=e.isVoipWithNoMediaAllowed||!1,e.useE2eForGroupCall!==void 0&&(this.useE2eForGroupCall=e.useE2eForGroupCall),this.livekitServiceURL=e.livekitServiceURL,this.roomNameGenerator=e.roomNameGenerator,this.toDeviceMessageQueue=new SDe(this),this.on(Un.Decrypted,u=>{hq(this,u)}),this.ignoredInvites=new jDe(this),this._secretStorage=new PV(this,(i=e.cryptoCallbacks)!==null&&i!==void 0?i:{}),this.setMaxListeners(0)}set store(e){this._store=e,this._store.setUserCreator(n=>Ml.createUser(n,this))}get store(){return this._store}startClient(e){var n=this;return Z(function*(){if(!n.clientRunning){n.clientRunning=!0,n.on(st.Sync,n.startMatrixRTC);var r=n.getUserId();r&&n.store.storeUser(new Ml(r)),n.canSupportVoip&&(n.checkTurnServersIntervalID=setInterval(()=>{n.checkTurnServers()},aq),n.checkTurnServers()),n.syncApi&&(n.logger.error("Still have sync object whilst not running: stopping old one"),n.syncApi.stop());try{yield n.getVersions();var{threads:o,list:i,fwdPagination:s}=yield n.doesServerSupportThread();xr.setServerSideSupport(o),xr.setServerSideListSupport(i),xr.setServerSideFwdPaginationSupport(s)}catch(u){n.logger.error("Can't fetch server versions, continuing to initialise sync, this will be retried later",u)}n.clientOpts=e??{},n.clientOpts.slidingSync?n.syncApi=new kV(n.clientOpts.slidingSync,n,n.clientOpts,n.buildSyncApiOptions()):n.syncApi=new sh(n,n.clientOpts,n.buildSyncApiOptions()),n.syncApi.sync().catch(u=>n.logger.info("Sync startup aborted with an error:",u)),n.clientOpts.clientWellKnownPollPeriod!==void 0&&(n.clientWellKnownIntervalID=setInterval(()=>{n.fetchClientWellKnown()},1e3*n.clientOpts.clientWellKnownPollPeriod),n.fetchClientWellKnown()),n.toDeviceMessageQueue.start(),n.serverCapabilitiesService.start()}})()}buildSyncApiOptions(){return{cryptoCallbacks:this.cryptoBackend,canResetEntireTimeline:e=>this.canResetTimelineCallback?this.canResetTimelineCallback(e):!1}}stopClient(){var e,n,r,o,i;(e=this.cryptoBackend)===null||e===void 0||e.stop(),this.off(st.Sync,this.startMatrixRTC),this.clientRunning&&(this.logger.debug("stopping MatrixClient"),this.clientRunning=!1,(n=this.syncApi)===null||n===void 0||n.stop(),this.syncApi=void 0,(r=this.peekSync)===null||r===void 0||r.stopPeeking(),(o=this.callEventHandler)===null||o===void 0||o.stop(),(i=this.groupCallEventHandler)===null||i===void 0||i.stop(),this.callEventHandler=void 0,this.groupCallEventHandler=void 0,globalThis.clearInterval(this.checkTurnServersIntervalID),this.checkTurnServersIntervalID=void 0,this.clientWellKnownIntervalID!==void 0&&globalThis.clearInterval(this.clientWellKnownIntervalID),this.toDeviceMessageQueue.stop(),this.matrixRTC.stop(),this.serverCapabilitiesService.stop())}clearStores(){var e=this;if(this.clientRunning)throw new Error("Cannot clear stores while client is running");var n=[];n.push(this.store.deleteAllData()),this.legacyCryptoStore&&n.push(this.legacyCryptoStore.deleteAllData());var r=function(){var o=Z(function*(){var i;try{if(i=globalThis.indexedDB,!i)return}catch{return}var s=function*(l){var c=new Promise((d,F)=>{e.logger.info("Removing IndexedDB instance ".concat(l));var h=i.deleteDatabase(l);h.onsuccess=m=>{e.logger.info("Removed IndexedDB instance ".concat(l)),d(0)},h.onerror=m=>{e.logger.warn("Failed to remove IndexedDB instance ".concat(l,":"),m),d(0)},h.onblocked=m=>{e.logger.info("cannot yet remove IndexedDB instance ".concat(l))}});yield c};for(var u of["".concat(Nb,"::matrix-sdk-crypto"),"".concat(Nb,"::matrix-sdk-crypto-meta")])yield*s(u)});return function(){return o.apply(this,arguments)}}();return n.push(r()),Promise.all(n).then()}getUserId(){var e,n;return(e=(n=this.credentials)===null||n===void 0?void 0:n.userId)!==null&&e!==void 0?e:null}getSafeUserId(){var e=this.getUserId();if(!e)throw new Error("Expected logged in user but found none.");return e}getDomain(){var e;return(e=this.credentials)!==null&&e!==void 0&&e.userId?this.credentials.userId.replace(/^.*?:/,""):null}getUserIdLocalpart(){var e,n;return(e=(n=this.credentials)===null||n===void 0||(n=n.userId)===null||n===void 0?void 0:n.split(":")[0].substring(1))!==null&&e!==void 0?e:null}getDeviceId(){return this.deviceId}getSessionId(){return this.sessionId}supportsVoip(){return this.canSupportVoip}getMediaHandler(){return this.mediaHandler}setForceTURN(e){this.forceTURN=e}setSupportsCallTransfer(e){this.supportsCallTransfer=e}getUseE2eForGroupCall(){return this.useE2eForGroupCall}createCall(e){return ef(this,e)}createGroupCall(e,n,r,o,i,s){var u=this;return Z(function*(){if(u.getGroupCallForRoom(e))throw new Error("".concat(e," already has an existing group call"));var l=u.getRoom(e);if(!l)throw new Error("Cannot find room ".concat(e));return new $9(u,l,n,r,o,void 0,i||u.isVoipWithNoMediaAllowed,s,u.isVoipWithNoMediaAllowed,u.useLivekitForGroupCalls,u.livekitServiceURL).create()})()}getLivekitServiceURL(){return this.livekitServiceURL}setLivekitServiceURL(e){this.livekitServiceURL=e}waitUntilRoomReadyForGroupCalls(e){return this.groupCallEventHandler.waitUntilRoomReadyForGroupCalls(e)}getGroupCallForRoom(e){return this.groupCallEventHandler.groupCalls.get(e)||null}getSyncState(){var e,n;return(e=(n=this.syncApi)===null||n===void 0?void 0:n.getSyncState())!==null&&e!==void 0?e:null}getSyncStateData(){return this.syncApi?this.syncApi.getSyncStateData():null}isInitialSyncComplete(){var e=this.getSyncState();return e?e===bn.Prepared||e===bn.Syncing:!1}isGuest(){return this.isGuestAccount}setGuest(e){this.isGuestAccount=e}getScheduler(){return this.scheduler}retryImmediately(){var e,n;return this.toDeviceMessageQueue.sendQueue(),(e=(n=this.syncApi)===null||n===void 0?void 0:n.retryImmediately())!==null&&e!==void 0?e:!1}getNotifTimelineSet(){return this.notifTimelineSet}setNotifTimelineSet(e){this.notifTimelineSet=e}getCapabilities(){var e=this;return Z(function*(){var n=e.serverCapabilitiesService.getCachedCapabilities();return n||e.serverCapabilitiesService.fetchCapabilities()})()}getCachedCapabilities(){return this.serverCapabilitiesService.getCachedCapabilities()}fetchCapabilities(){return this.serverCapabilitiesService.fetchCapabilities()}initRustCrypto(){var e=arguments,n=this;return Z(function*(){var r,o=e.length>0&&e[0]!==void 0?e[0]:{};if(n.cryptoBackend){n.logger.warn("Attempt to re-initialise e2e encryption on MatrixClient");return}var i=n.getUserId();if(i===null)throw new Error("Cannot enable encryption on MatrixClient with unknown userId: ensure userId is passed in createClient().");var s=n.getDeviceId();if(s===null)throw new Error("Cannot enable encryption on MatrixClient with unknown deviceId: ensure deviceId is passed in createClient().");n.logger.debug("Downloading Rust crypto library");var u=yield $D(()=>import("./index-C8H2K9K3.js"),[]),l=yield u.initRustCrypto({logger:n.logger,http:n.http,userId:i,deviceId:s,secretStorage:n.secretStorage,cryptoCallbacks:n.cryptoCallbacks,storePrefix:o.useIndexedDB===!1?null:Nb,storeKey:o.storageKey,storePassphrase:o.storagePassword,legacyCryptoStore:n.legacyCryptoStore,legacyPickleKey:(r=n.legacyPickleKey)!==null&&r!==void 0?r:"DEFAULT_KEY",legacyMigrationProgressListener:(c,d)=>{n.emit(Jn.LegacyCryptoStoreMigrationProgress,c,d)}});l.setSupportedVerificationMethods(n.verificationMethods),n.cryptoBackend=l,n.on(oo.Membership,l.onRoomMembership.bind(l)),n.on(st.Event,c=>{l.onLiveEventFromSync(c)}),n.reEmitter.reEmit(l,[Jn.VerificationRequestReceived,Jn.UserTrustStatusChanged,Jn.KeyBackupStatus,Jn.KeyBackupSessionsRemaining,Jn.KeyBackupFailed,Jn.KeyBackupDecryptionKeyCached,Jn.KeysChanged,Jn.DevicesUpdated,Jn.WillUpdateDevices,Jn.DehydratedDeviceCreated,Jn.DehydratedDeviceUploaded,Jn.RehydrationStarted,Jn.RehydrationProgress,Jn.RehydrationCompleted,Jn.RehydrationError,Jn.DehydrationKeyCached,Jn.DehydratedDeviceRotationError])})()}get secretStorage(){return this._secretStorage}getCrypto(){return this.cryptoBackend}isRoomEncrypted(e){var n=this.getRoom(e);return n?n.hasEncryptionStateEvent():!1}isKeyBackupKeyStored(){return Promise.resolve(this.secretStorage.isStored("m.megolm_backup.v1"))}makeKeyBackupPath(e,n,r){var o;n!==void 0?o=lt("/room_keys/keys/$roomId/$sessionId",{$roomId:e,$sessionId:n}):e!==void 0?o=lt("/room_keys/keys/$roomId",{$roomId:e}):o="/room_keys/keys";var i=r===void 0?void 0:{version:r};return{path:o,queryData:i}}deleteKeysFromBackup(e,n,r){var o=this;return Z(function*(){var i=o.makeKeyBackupPath(e,n,r);yield o.http.authedRequest(Se.Delete,i.path,i.queryData,void 0,{prefix:Do.V3})})()}getMediaConfig(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=e?"/media/config":"/config";return this.http.authedRequest(Se.Get,n,void 0,void 0,{prefix:e?Do.V1:ah.V3})}getRoom(e){return e?this.store.getRoom(e):null}getRooms(){return this.store.getRooms()}getVisibleRooms(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.store.getRooms(),r=new Set;for(var o of n){var i,s=(i=o.findPredecessor(e))===null||i===void 0?void 0:i.roomId;s&&r.add(s)}return n.filter(u=>{var l=u.currentState.getStateEvents(Ce.RoomTombstone,"");return!(l&&r.has(u.roomId))})}getUser(e){return this.store.getUser(e)}getUsers(){return this.store.getUsers()}setAccountData(e,n){var r=this;return Z(function*(){if(!r.clientRunning)return Y.warn("Calling `setAccountData` before the client is started: `getAccountData` may return inconsistent results."),yield T9(5,()=>r.setAccountDataRaw(e,n));var o=r.store.getAccountData(e);if(o&&jF(o.event.content,n))return{};var i=ll();function s(l){l.getType()===e&&i.resolve()}r.addListener(st.AccountData,s);try{var u=yield T9(5,()=>r.setAccountDataRaw(e,n));return yield i.promise,u}finally{r.removeListener(st.AccountData,s)}})()}setAccountDataRaw(e,n){var r=lt("/user/$userId/account_data/$type",{$userId:this.credentials.userId,$type:e});return this.http.authedRequest(Se.Put,r,void 0,n)}getAccountData(e){return this.store.getAccountData(e)}getAccountDataFromServer(e){var n=this;return Z(function*(){if(n.isInitialSyncComplete()){var r=n.store.getAccountData(e);return r?r.getContent():null}var o=lt("/user/$userId/account_data/$type",{$userId:n.credentials.userId,$type:e});try{return yield n.http.authedRequest(Se.Get,o)}catch(s){var i;if(((i=s.data)===null||i===void 0?void 0:i.errcode)==="M_NOT_FOUND")return null;throw s}})()}deleteAccountData(e){var n=this;return Z(function*(){var r=n.canSupport.get(Io.AccountDataDeletion);if(r===To.Unsupported){yield n.setAccountData(e,{});return}var o=lt("/user/$userId/account_data/$type",{$userId:n.getSafeUserId(),$type:e}),i=r===To.Unstable?{prefix:"/_matrix/client/unstable/org.matrix.msc3391"}:void 0;return yield n.http.authedRequest(Se.Delete,o,void 0,void 0,i)})()}getIgnoredUsers(){var e=this.getAccountData(Ce.IgnoredUserList);return e!=null&&e.getContent().ignored_users?Object.keys(e.getContent().ignored_users):[]}setIgnoredUsers(e){var n={ignored_users:{}};return e.forEach(r=>{n.ignored_users[r]={}}),this.setAccountData(Ce.IgnoredUserList,n)}isUserIgnored(e){return this.getIgnoredUsers().includes(e)}joinRoom(e){var n=arguments,r=this;return Z(function*(){var o=n.length>1&&n[1]!==void 0?n[1]:{};o.syncRoom===void 0&&(o.syncRoom=!0);var i=r.getRoom(e);if(i!=null&&i.hasMembershipState(r.credentials.userId,an.Join))return i;var s=Promise.resolve();if(o.inviteSignUrl){var u=new URL(o.inviteSignUrl);u.searchParams.set("mxid",r.credentials.userId),s=r.http.requestOtherUrl(Se.Post,u)}var l={};o.viaServers&&(l.server_name=o.viaServers,l.via=o.viaServers);var c={},d=yield s;d&&(c.third_party_signed=d);var F=lt("/join/$roomid",{$roomid:e}),h=yield r.http.authedRequest(Se.Post,F,l,c),m=h.room_id,D=r.getRoom(m);if(D!=null&&D.hasMembershipState(r.credentials.userId,an.Join))return D;var g=new sh(r,r.clientOpts,r.buildSyncApiOptions()),p=g.createRoom(m);return o.syncRoom,p})()}knockRoom(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRoom(e);if(r!=null&&r.hasMembershipState(this.credentials.userId,an.Knock))return Promise.resolve({room_id:r.roomId});var o=lt("/knock/$roomIdOrAlias",{$roomIdOrAlias:e}),i={};n.viaServers&&(i.server_name=n.viaServers,i.via=n.viaServers);var s={};return n.reason&&(s.reason=n.reason),this.http.authedRequest(Se.Post,o,i,s)}resendEvent(e,n){return this.toDeviceMessageQueue.sendQueue(),this.updatePendingEventStatus(n,e,Pt.SENDING),this.encryptAndSendEvent(n,e)}cancelPendingEvent(e){if(![Pt.QUEUED,Pt.NOT_SENT,Pt.ENCRYPTING].includes(e.status))throw new Error("cannot cancel an event with status "+e.status);e.status===Pt.ENCRYPTING?this.eventsBeingEncrypted.delete(e.getId()):this.scheduler&&e.status===Pt.QUEUED&&this.scheduler.removeEventFromQueue(e);var n=this.getRoom(e.getRoomId());this.updatePendingEventStatus(n,e,Pt.CANCELLED)}setRoomName(e,n){return this.sendStateEvent(e,Ce.RoomName,{name:n})}setRoomTopic(e,n,r){var o=_U(n,r);return this.sendStateEvent(e,Ce.RoomTopic,o)}getRoomTags(e){var n=lt("/user/$userId/rooms/$roomId/tags",{$userId:this.credentials.userId,$roomId:e});return this.http.authedRequest(Se.Get,n)}setRoomTag(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=lt("/user/$userId/rooms/$roomId/tags/$tag",{$userId:this.credentials.userId,$roomId:e,$tag:n});return this.http.authedRequest(Se.Put,o,void 0,r)}deleteRoomTag(e,n){var r=lt("/user/$userId/rooms/$roomId/tags/$tag",{$userId:this.credentials.userId,$roomId:e,$tag:n});return this.http.authedRequest(Se.Delete,r)}setRoomAccountData(e,n,r){var o=lt("/user/$userId/rooms/$roomId/account_data/$type",{$userId:this.credentials.userId,$roomId:e,$type:n});return this.http.authedRequest(Se.Put,o,void 0,r)}setPowerLevel(e,n,r){var o=this;return Z(function*(){var i,s;if(o.clientRunning&&o.isInitialSyncComplete()){var u;s=(u=o.getRoom(e))===null||u===void 0||(u=u.currentState)===null||u===void 0||(u=u.getStateEvents(Ce.RoomPowerLevels,""))===null||u===void 0?void 0:u.getContent()}if(!s)try{s=yield o.getStateEvent(e,Ce.RoomPowerLevels,"")}catch(d){if(d instanceof tn&&d.errcode==="M_NOT_FOUND")s={};else throw d}s=Cp(s),(i=s)!==null&&i!==void 0&&i.users||(s.users={});var l=Array.isArray(n)?n:[n];for(var c of l)r==null?delete s.users[c]:s.users[c]=r;return o.sendStateEvent(e,Ce.RoomPowerLevels,s,"")})()}unstable_createLiveBeacon(e,n){var r=this;return Z(function*(){return r.unstable_setLiveBeacon(e,n)})()}unstable_setLiveBeacon(e,n){var r=this;return Z(function*(){return r.sendStateEvent(e,J9.name,n,r.getUserId())})()}sendEvent(e,n,r,o,i){var s,u,l,c;return!(n!=null&&n.startsWith(bu))&&n!==null?(c=o,l=r,u=n,s=null):(c=i,l=o,u=r,s=n),this.addThreadRelationIfNeeded(l,s,e),this.sendCompleteEvent(e,s,{type:u,content:l},c)}addThreadRelationIfNeeded(e,n,r){var o;if(n&&!((o=e["m.relates_to"])!==null&&o!==void 0&&o.rel_type)){var i,s,u=!!((i=e["m.relates_to"])!==null&&i!==void 0&&i["m.in_reply_to"]);e["m.relates_to"]=Ro(Ro({},e["m.relates_to"]),{},{rel_type:hr.name,event_id:n,is_falling_back:!u});var l=(s=this.getRoom(r))===null||s===void 0?void 0:s.getThread(n);if(l&&!u){var c,d;e["m.relates_to"]["m.in_reply_to"]={event_id:(c=(d=l.lastReply(F=>F.isRelation(hr.name)&&!F.status))===null||d===void 0?void 0:d.getId())!==null&&c!==void 0?c:n}}}}sendCompleteEvent(e,n,r,o,i){var s,u;typeof o=="string"?u=o:(s=o,u=i),u||(u=this.makeTxnId());var l=new ii(Object.assign(r,{event_id:"~"+e+":"+u,user_id:this.credentials.userId,sender:this.credentials.userId,room_id:e,origin_server_ts:new Date().getTime()})),c=this.getRoom(e),d=n?c==null?void 0:c.getThread(n):void 0;d&&l.setThread(d),s||(this.reEmitter.reEmit(l,[Un.Replaced,Un.VisibilityChange]),c==null||c.reEmitter.reEmit(l,[Un.BeforeRedaction]));var F=l.getAssociatedId();if(F!=null&&F.startsWith("~")){var h=c==null?void 0:c.getPendingEvents().find(D=>D.getId()===F);h==null||h.once(Un.LocalEventIdReplaced,()=>{l.updateAssociatedId(h.getId())})}var m=l.getType();return this.logger.debug("sendEvent of type ".concat(m," in ").concat(e," with txnId ").concat(u).concat(s?" (delayed event)":"")),l.setTxnId(u),l.setStatus(Pt.SENDING),s?this.encryptAndSendEvent(c,l,s):(c==null||c.addPendingEvent(l,u),l.status===Pt.NOT_SENT?Promise.reject(new Error("Event blocked by other events not yet sent")):this.encryptAndSendEvent(c,l))}encryptAndSendEvent(e,n,r){var o=this;return Z(function*(){if(r)return o.sendEventHttpRequest(n,r);try{var i;o.eventsBeingEncrypted.add(n.getId());try{yield o.encryptEventIfNeeded(n,e??void 0)}finally{i=!o.eventsBeingEncrypted.delete(n.getId())}if(i)return{};n.status===Pt.ENCRYPTING&&o.updatePendingEventStatus(e,n,Pt.SENDING);var s=null;return o.scheduler&&(s=o.scheduler.queueEvent(n),s&&o.scheduler.getQueueForEvent(n).length>1&&o.updatePendingEventStatus(e,n,Pt.QUEUED)),s||(s=o.sendEventHttpRequest(n),e&&(s=s.then(u=>(e.updatePendingEvent(n,Pt.SENT,u.event_id),u)))),yield s}catch(u){o.logger.error("Error sending event",u);try{n.error=u,o.updatePendingEventStatus(e,n,Pt.NOT_SENT)}catch(l){o.logger.error("Exception in error handler!",l)}throw u instanceof tn&&(u.event=n),u}})()}encryptEventIfNeeded(e,n){var r=this;return Z(function*(){if(n&&(yield r.shouldEncryptEventForRoom(e,n))&&!(!r.cryptoBackend&&r.usingExternalCrypto)){if(!r.cryptoBackend)throw new Error("This room is configured to use encryption, but your client does not support encryption.");r.updatePendingEventStatus(n,e,Pt.ENCRYPTING),yield r.cryptoBackend.encryptEvent(e,n)}})()}shouldEncryptEventForRoom(e,n){var r=this;return Z(function*(){var o;return e.isEncrypted()||e.getType()===Ce.Reaction||e.isRedaction()?!1:!!(n.hasEncryptionStateEvent()||(yield(o=r.cryptoBackend)===null||o===void 0?void 0:o.isEncryptionEnabledInRoom(n.roomId)))})()}getEncryptedIfNeededEventType(e,n){var r;return n===Ce.Reaction?n:(r=this.getRoom(e))!==null&&r!==void 0&&r.hasEncryptionStateEvent()?Ce.RoomMessageEncrypted:n}updatePendingEventStatus(e,n,r){e?e.updatePendingEvent(n,r):n.setStatus(r)}sendEventHttpRequest(e,n){var r=e.getTxnId();r||(r=this.makeTxnId(),e.setTxnId(r));var o={$roomId:e.getRoomId(),$eventType:e.getWireType(),$stateKey:e.getStateKey(),$txnId:r},i;if(e.isState()){var s="/rooms/$roomId/state/$eventType";e.getStateKey()&&e.getStateKey().length>0&&(s="/rooms/$roomId/state/$eventType/$stateKey"),i=lt(s,o)}else if(e.isRedaction()&&e.event.redacts){var u="/rooms/$roomId/redact/$redactsEventId/$txnId";i=lt(u,Ro({$redactsEventId:e.event.redacts},o))}else i=lt("/rooms/$roomId/send/$eventType/$txnId",o);var l=e.getWireContent();return n?this.http.authedRequest(Se.Put,i,dq(n),l):this.http.authedRequest(Se.Put,i,void 0,l).then(c=>(this.logger.debug("Event sent to ".concat(e.getRoomId()," with event id ").concat(c.event_id)),c))}redactEvent(e,n,r,o,i){var s,u,l;(s=r)!==null&&s!==void 0&&s.startsWith(bu)||(i=o,o=r,r=n,n=null);var c=(u=i)===null||u===void 0?void 0:u.reason,d={reason:c};if(((l=i)===null||l===void 0?void 0:l.with_rel_types)!==void 0){if(this.canSupport.get(Io.RelationBasedRedactions)===To.Unsupported)throw new Error("Server does not support relation based redactions "+"roomId ".concat(e," eventId ").concat(r," txnId: ").concat(o," threadId ").concat(n));var F=this.canSupport.get(Io.RelationBasedRedactions)===To.Stable?ab.stable:ab.unstable;d[F]=i.with_rel_types}return this.sendCompleteEvent(e,n,{type:Ce.RoomRedaction,content:d,redacts:r},o)}sendMessage(e,n,r,o){typeof n!="string"&&n!==null&&(o=r,r=n,n=null);var i=Ce.RoomMessage,s=r;return this.sendEvent(e,n,i,s,o)}sendTextMessage(e,n,r,o){var i;!((i=n)!==null&&i!==void 0&&i.startsWith(bu))&&n!==null&&(o=r,r=n,n=null);var s=mU(r);return this.sendMessage(e,n,s,o)}sendNotice(e,n,r,o){var i;!((i=n)!==null&&i!==void 0&&i.startsWith(bu))&&n!==null&&(o=r,r=n,n=null);var s=DU(r);return this.sendMessage(e,n,s,o)}sendEmoteMessage(e,n,r,o){var i;!((i=n)!==null&&i!==void 0&&i.startsWith(bu))&&n!==null&&(o=r,r=n,n=null);var s=gU(r);return this.sendMessage(e,n,s,o)}sendImageMessage(e,n,r,o){var i,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"Image";!((i=n)!==null&&i!==void 0&&i.startsWith(bu))&&n!==null&&(s=o||"Image",o=r,r=n,n=null);var u={msgtype:or.Image,url:r,info:o,body:s};return this.sendMessage(e,n,u)}sendStickerMessage(e,n,r,o){var i,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"Sticker";!((i=n)!==null&&i!==void 0&&i.startsWith(bu))&&n!==null&&(s=o||"Sticker",o=r,r=n,n=null);var u={url:r,info:o,body:s};return this.sendEvent(e,n,Ce.Sticker,u)}sendHtmlMessage(e,n,r,o){var i;!((i=n)!==null&&i!==void 0&&i.startsWith(bu))&&n!==null&&(o=r,r=n,n=null);var s=dU(r,o);return this.sendMessage(e,n,s)}sendHtmlNotice(e,n,r,o){var i;!((i=n)!==null&&i!==void 0&&i.startsWith(bu))&&n!==null&&(o=r,r=n,n=null);var s=hU(r,o);return this.sendMessage(e,n,s)}sendHtmlEmote(e,n,r,o){var i;!((i=n)!==null&&i!==void 0&&i.startsWith(bu))&&n!==null&&(o=r,r=n,n=null);var s=FU(r,o);return this.sendMessage(e,n,s)}_unstable_sendDelayedEvent(e,n,r,o,i,s){var u=this;return Z(function*(){if(!(yield u.doesServerSupportUnstableFeature(vu)))throw new dd("Server does not support the delayed events API","sendDelayedEvent");return u.addThreadRelationIfNeeded(i,r,e),u.sendCompleteEvent(e,r,{type:o,content:i},n,s)})()}_unstable_sendDelayedStateEvent(e,n,r,o){var i=arguments,s=this;return Z(function*(){var u=i.length>4&&i[4]!==void 0?i[4]:"",l=i.length>5&&i[5]!==void 0?i[5]:{};if(!(yield s.doesServerSupportUnstableFeature(vu)))throw new dd("Server does not support the delayed events API","sendDelayedStateEvent");var c={$roomId:e,$eventType:r,$stateKey:u},d=lt("/rooms/$roomId/state/$eventType",c);return u!==void 0&&(d=lt(d+"/$stateKey",c)),s.http.authedRequest(Se.Put,d,dq(n),o,l)})()}_unstable_getDelayedEvents(e){var n=this;return Z(function*(){if(!(yield n.doesServerSupportUnstableFeature(vu)))throw new dd("Server does not support the delayed events API","getDelayedEvents");var r=e?{from:e}:void 0;return yield n.http.authedRequest(Se.Get,"/delayed_events",r,void 0,{prefix:"".concat(Do.Unstable,"/").concat(vu)})})()}_unstable_updateDelayedEvent(e,n){var r=arguments,o=this;return Z(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{};if(!(yield o.doesServerSupportUnstableFeature(vu)))throw new dd("Server does not support the delayed events API","updateDelayedEvent");var s=lt("/delayed_events/$delayId",{$delayId:e}),u={action:n};return yield o.http.authedRequest(Se.Post,s,void 0,u,Ro(Ro({},i),{},{prefix:"".concat(Do.Unstable,"/").concat(vu)}))})()}sendReceipt(e,n,r){var o=arguments,i=this;return Z(function*(){var s=o.length>3&&o[3]!==void 0?o[3]:!1;if(i.isGuest())return Promise.resolve({});var u=lt("/rooms/$roomId/receipt/$receiptType/$eventId",{$roomId:e.getRoomId(),$receiptType:n,$eventId:e.getId()}),l=!s&&i.supportsThreads(),c=l?Ro(Ro({},r),{},{thread_id:rm(e)}):r,d=i.http.authedRequest(Se.Post,u,void 0,c||{}),F=i.getRoom(e.getRoomId());return F&&i.credentials.userId&&F.addLocalEchoReceipt(i.credentials.userId,e,n,s),d})()}sendReadReceipt(e){var n=arguments,r=this;return Z(function*(){var o=n.length>1&&n[1]!==void 0?n[1]:ti.Read,i=n.length>2&&n[2]!==void 0?n[2]:!1;if(e){var s=e.getId(),u=r.getRoom(e.getRoomId());if(u!=null&&u.hasPendingEvent(s))throw new Error("Cannot set read receipt to a pending event (".concat(s,")"));return r.sendReceipt(e,o,{},i)}})()}setRoomReadMarkers(e,n,r,o){var i=this;return Z(function*(){var s=i.getRoom(e);if(s!=null&&s.hasPendingEvent(n))throw new Error("Cannot set read marker to a pending event (".concat(n,")"));var u;if(r){if(u=r.getId(),s!=null&&s.hasPendingEvent(u))throw new Error("Cannot set read receipt to a pending event (".concat(u,")"));s==null||s.addLocalEchoReceipt(i.credentials.userId,r,ti.Read)}var l;if(o){if(l=o.getId(),s!=null&&s.hasPendingEvent(l))throw new Error("Cannot set read receipt to a pending event (".concat(l,")"));s==null||s.addLocalEchoReceipt(i.credentials.userId,o,ti.ReadPrivate)}return yield i.setRoomReadMarkersHttpRequest(e,n,u,l)})()}getUrlPreview(e,n){n=Math.floor(n/6e4)*6e4;var r=new URL(e);r.hash="",e=r.toString();var o=n+"_"+e;if(o in this.urlPreviewCache)return this.urlPreviewCache[o];var i=this.http.authedRequest(Se.Get,"/preview_url",{url:e,ts:n.toString()},void 0,{prefix:ah.V3,priority:"low"});return this.urlPreviewCache[o]=i,i}sendTyping(e,n,r){if(this.isGuest())return Promise.resolve({});var o=lt("/rooms/$roomId/typing/$userId",{$roomId:e,$userId:this.getUserId()}),i={typing:n};return n&&(i.timeout=r||2e4),this.http.authedRequest(Se.Put,o,void 0,i)}getRoomUpgradeHistory(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.getRoom(e);if(!o)return[];var i=this.findPredecessorRooms(o,n,r),s=this.findSuccessorRooms(o,n,r);return[...i,o,...s]}findPredecessorRooms(e,n,r){for(var o,i=[],s=new Set([e.roomId]),u=(o=e.findPredecessor(r))===null||o===void 0?void 0:o.roomId;u!==null;){var l;if(u){if(s.has(u))break;s.add(u)}var c=this.getRoom(u);if(c===null)break;if(n){var d=c.currentState.getStateEvents(Ce.RoomTombstone,"");if(!d||d.getContent().replacement_room!==e.roomId)break}i.splice(0,0,c),e=c,u=(l=e.findPredecessor(r))===null||l===void 0?void 0:l.roomId}return i}findSuccessorRooms(e,n,r){for(var o=[],i=e.currentState.getStateEvents(Ce.RoomTombstone,"");i;){var s=this.getRoom(i.getContent().replacement_room);if(!s||s.roomId===e.roomId)break;if(n){var u,l=(u=s.findPredecessor(r))===null||u===void 0?void 0:u.roomId;if(!l||l!==e.roomId)break}o.push(s);var c=new Set(o.map(d=>d.roomId));if(c.size<o.length)return o.slice(0,o.length-1);e=s,i=e.currentState.getStateEvents(Ce.RoomTombstone,"")}return o}invite(e,n,r){return this.membershipChange(e,n,an.Invite,r)}inviteByEmail(e,n){return this.inviteByThreePid(e,"email",n)}inviteByThreePid(e,n,r){var o=this;return Z(function*(){var i,s=lt("/rooms/$roomId/invite",{$roomId:e}),u=o.getIdentityServerUrl(!0);if(!u)return Promise.reject(new tn({error:"No supplied identity server URL",errcode:"ORG.MATRIX.JSSDK_MISSING_PARAM"}));var l={id_server:u,medium:n,address:r};if((i=o.identityServer)!==null&&i!==void 0&&i.getAccessToken){var c=yield o.identityServer.getAccessToken();c&&(l.id_access_token=c)}return o.http.authedRequest(Se.Post,s,void 0,l)})()}leave(e){return this.membershipChange(e,void 0,an.Leave)}leaveRoomChain(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this.getRoomUpgradeHistory(e),o=r;if(!n){o=[];for(var i of r)if(o.push(i),i.roomId===e)break}var s={},u=[],l=d=>this.leave(d).then(()=>{delete s[d]}).catch(F=>{s[d]=F});for(var c of o)u.push(l(c.roomId));return Promise.all(u).then(()=>s)}ban(e,n,r){return this.membershipChange(e,n,an.Ban,r)}forget(e){var n=arguments,r=this;return Z(function*(){var o=n.length>1&&n[1]!==void 0?n[1]:!0,i=lt("/rooms/$room_id/forget",{$room_id:e}),s=yield r.http.authedRequest(Se.Post,i);return o&&(r.store.removeRoom(e),r.emit(st.DeleteRoom,e)),s})()}unban(e,n){var r=lt("/rooms/$roomId/unban",{$roomId:e}),o={user_id:n};return this.http.authedRequest(Se.Post,r,void 0,o)}kick(e,n,r){var o=lt("/rooms/$roomId/kick",{$roomId:e}),i={user_id:n,reason:r};return this.http.authedRequest(Se.Post,o,void 0,i)}membershipChange(e,n,r,o){var i=lt("/rooms/$room_id/$membership",{$room_id:e,$membership:r});return this.http.authedRequest(Se.Post,i,void 0,{user_id:n,reason:o})}getPushActionsForEvent(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!e.getPushActions()||n){var{actions:r,rule:o}=this.pushProcessor.actionsAndRuleForEvent(e);e.setPushDetails(r,o)}return e.getPushActions()}getPushDetailsForEvent(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!e.getPushDetails()||n){var{actions:r,rule:o}=this.pushProcessor.actionsAndRuleForEvent(e);e.setPushDetails(r,o)}return e.getPushDetails()}setProfileInfo(e,n){var r=lt("/profile/$userId/$info",{$userId:this.credentials.userId,$info:e});return this.http.authedRequest(Se.Put,r,void 0,n)}setDisplayName(e){var n=this;return Z(function*(){var r=yield n.setProfileInfo("displayname",{displayname:e}),o=n.getUser(n.getUserId());return o&&(o.displayName=e,o.emit(ri.DisplayName,o.events.presence,o)),r})()}setAvatarUrl(e){var n=this;return Z(function*(){var r=yield n.setProfileInfo("avatar_url",{avatar_url:e}),o=n.getUser(n.getUserId());return o&&(o.avatarUrl=e,o.emit(ri.AvatarUrl,o.events.presence,o)),r})()}mxcUrlToHttp(e,n,r,o,i,s,u){return eb(this.baseUrl,e,n,r,o,i,s,u)}setSyncPresence(e){var n=this;return Z(function*(){var r;(r=n.syncApi)===null||r===void 0||r.setPresence(e)})()}setPresence(e){var n=this;return Z(function*(){var r=lt("/presence/$userId/status",{$userId:n.credentials.userId}),o=["offline","online","unavailable"];if(o.indexOf(e.presence)===-1)throw new Error("Bad presence value: "+e.presence);yield n.http.authedRequest(Se.Put,r,void 0,e)})()}getPresence(e){var n=lt("/presence/$userId/status",{$userId:e});return this.http.authedRequest(Se.Get,n)}scrollback(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:30,r=0,o=this.ongoingScrollbacks[e.roomId]||{};if(o.promise)return o.promise;if(o.errorTs){var i=Date.now()-o.errorTs;r=Math.max(Cge-i,0)}if(e.oldState.paginationToken===null)return Promise.resolve(e);var s=this.store.scrollback(e,n).length;if(s===n)return Promise.resolve(e);n=n-s;var u=new Promise((l,c)=>{yc(r).then(()=>this.createMessagesRequest(e.roomId,e.oldState.paginationToken,n,At.Backward)).then(d=>{var F,h,m=d.chunk.map(this.getEventMapper());if(d.state){var D=d.state.map(this.getEventMapper());e.currentState.setUnknownStateEvents(D)}var[g,p,_]=e.partitionThreadedEvents(m);this.processAggregatedTimelineEvents(e,g),e.addEventsToTimeline(g,!0,!0,e.getLiveTimeline()),this.processThreadEvents(e,p,!0),_.forEach(v=>e.relations.aggregateChildEvent(v)),e.oldState.paginationToken=(F=d.end)!==null&&F!==void 0?F:null,d.chunk.length===0&&(e.oldState.paginationToken=null),this.store.storeEvents(e,m,(h=d.end)!==null&&h!==void 0?h:null,!0),delete this.ongoingScrollbacks[e.roomId],l(e)}).catch(d=>{this.ongoingScrollbacks[e.roomId]={errorTs:Date.now()},c(d)})});return o={promise:u},this.ongoingScrollbacks[e.roomId]=o,u}getEventMapper(e){return fDe(this,e||{})}getEventTimeline(e,n){var r=this;return Z(function*(){var o,i,s,u;if(!r.timelineSupport)throw new Error("timeline support is disabled. Set the 'timelineSupport' parameter to true when creating MatrixClient to enable it.");if(!(e!=null&&e.room))throw new Error("getEventTimeline only supports room timelines");if(e.getTimelineForEvent(n))return e.getTimelineForEvent(n);if(e.thread&&r.supportsThreads())return r.getThreadTimeline(e,n);var l=lt("/rooms/$roomId/context/$eventId",{$roomId:e.room.roomId,$eventId:n}),c=void 0;(o=r.clientOpts)!==null&&o!==void 0&&o.lazyLoadMembers&&(c={filter:JSON.stringify(Ji.LAZY_LOADING_MESSAGES_FILTER)});var d=yield r.http.authedRequest(Se.Get,l,c);if(!d.event)throw new Error("'event' not in '/context' result - homeserver too old?");if(e.getTimelineForEvent(n))return e.getTimelineForEvent(n);var F=r.getEventMapper(),h=F(d.event);if(h.isRelation(hr.name)){r.logger.warn("Tried loading a regular timeline at the position of a thread event");return}var m=[...d.events_after.reverse().map(F),h,...d.events_before.map(F)],D=e.getTimelineForEvent(m[0].getId());D?D.getState(it.BACKWARDS).setUnknownStateEvents(d.state.map(F)):(D=e.addTimeline(),D.initialiseState(d.state.map(F)),D.getState(it.FORWARDS).paginationToken=d.end);var[g,p,_]=e.room.partitionThreadedEvents(m);return e.addEventsToTimeline(g,!0,!1,D,d.start),r.processThreadEvents(e.room,p,!0),r.processAggregatedTimelineEvents(e.room,g),_.forEach(v=>e.relations.aggregateChildEvent(v)),(i=(s=e.getTimelineForEvent(n))!==null&&s!==void 0?s:(u=e.room.findThreadForEvent(h))===null||u===void 0?void 0:u.liveTimeline)!==null&&i!==void 0?i:D})()}getThreadTimeline(e,n){var r=this;return Z(function*(){var o;if(!r.supportsThreads())throw new Error("could not get thread timeline: no client support");if(!e.room)throw new Error("could not get thread timeline: not a room timeline");if(!e.thread)throw new Error("could not get thread timeline: not a thread timeline");var i=lt("/rooms/$roomId/context/$eventId",{$roomId:e.room.roomId,$eventId:n}),s={limit:"0"};(o=r.clientOpts)!==null&&o!==void 0&&o.lazyLoadMembers&&(s.filter=JSON.stringify(Ji.LAZY_LOADING_MESSAGES_FILTER));var u=yield r.http.authedRequest(Se.Get,i,s),l=r.getEventMapper(),c=l(u.event);if(e.canContain(c)){var d=r.canSupport.get(Io.RelationsRecursion)!==To.Unsupported;if(xr.hasServerSideSupport)if(xr.hasServerSideFwdPaginationSupport){var F,h,m;if(!e.thread)throw new Error("could not get thread timeline: not a thread timeline");var D=e.thread,g=yield r.fetchRelations(e.room.roomId,D.id,null,null,{dir:At.Backward,from:u.start,recurse:d||void 0}),p=yield r.fetchRelations(e.room.roomId,D.id,null,null,{dir:At.Forward,from:u.end,recurse:d||void 0}),_=[...p.chunk.reverse().filter(m5(D.id)).map(l),c,...g.chunk.filter(m5(D.id)).map(l)];for(var v of _){var E;yield(E=e.thread)===null||E===void 0?void 0:E.processEvent(v)}var b=e.getTimelineForEvent(c.getId());if(b?b.getState(it.BACKWARDS).setUnknownStateEvents(u.state.map(l)):(b=e.addTimeline(),b.initialiseState(u.state.map(l))),e.addEventsToTimeline(_,!0,!1,b,p.next_batch),!g.next_batch){var k=yield r.fetchRoomEvent(e.room.roomId,D.id);e.addEventsToTimeline([l(k)],!0,!1,b,null)}return b.setPaginationToken((F=g.next_batch)!==null&&F!==void 0?F:null,At.Backward),b.setPaginationToken((h=p.next_batch)!==null&&h!==void 0?h:null,At.Forward),r.processAggregatedTimelineEvents(e.room,_),(m=e.getTimelineForEvent(n))!==null&&m!==void 0?m:b}else{for(var C,S=e.thread,w=yield r.fetchRelations(e.room.roomId,S.id,hr.name,null,{dir:At.Backward,from:u.start,recurse:d||void 0}),A=[],O=u.end;O;){var j,R=yield r.fetchRelations(e.room.roomId,S.id,hr.name,null,{dir:At.Forward,from:O,recurse:d||void 0});O=(j=R.next_batch)!==null&&j!==void 0?j:null,A.push(...R.chunk)}var M=[...A.reverse().map(l),c,...w.chunk.map(l)];for(var z of M){var T;yield(T=e.thread)===null||T===void 0?void 0:T.processEvent(z)}var P=e.getLiveTimeline();if(P.getState(it.BACKWARDS).setUnknownStateEvents(u.state.map(l)),e.addEventsToTimeline(M,!0,!1,P,null),!w.next_batch){var L=yield r.fetchRoomEvent(e.room.roomId,S.id);e.addEventsToTimeline([l(L)],!0,!1,P,null)}return P.setPaginationToken((C=w.next_batch)!==null&&C!==void 0?C:null,At.Backward),P.setPaginationToken(null,At.Forward),r.processAggregatedTimelineEvents(e.room,M),P}}})()}getLatestTimeline(e){var n=this;return Z(function*(){if(!n.timelineSupport)throw new Error("timeline support is disabled. Set the 'timelineSupport' parameter to true when creating MatrixClient to enable it.");if(!e.room)throw new Error("getLatestTimeline only supports room timelines");var r;if(e.threadListType!==null){var o,i=yield n.createThreadListMessagesRequest(e.room.roomId,null,1,At.Backward,e.threadListType,e.getFilter());r=(o=i.chunk)===null||o===void 0?void 0:o[0]}else if(e.thread&&xr.hasServerSideSupport){var s,u=n.canSupport.get(Io.RelationsRecursion)!==To.Unsupported,l=yield n.fetchRelations(e.room.roomId,e.thread.id,hr.name,null,{dir:At.Backward,limit:1,recurse:u||void 0});r=(s=l.chunk)===null||s===void 0?void 0:s[0]}else{var c,d,F=lt("/rooms/$roomId/messages",{$roomId:e.room.roomId}),h={dir:"b"};(c=n.clientOpts)!==null&&c!==void 0&&c.lazyLoadMembers&&(h.filter=JSON.stringify(Ji.LAZY_LOADING_MESSAGES_FILTER));var m=yield n.http.authedRequest(Se.Get,F,h);r=(d=m.chunk)===null||d===void 0?void 0:d[0]}if(!r)throw new Error("No message returned when trying to construct getLatestTimeline");return n.getEventTimeline(e,r.event_id)})()}createMessagesRequest(e,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:30,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,u=lt("/rooms/$roomId/messages",{$roomId:e}),l={limit:o.toString(),dir:i};n&&(l.from=n);var c=null;if((r=this.clientOpts)!==null&&r!==void 0&&r.lazyLoadMembers&&(c=Object.assign({},Ji.LAZY_LOADING_MESSAGES_FILTER)),s){var d;c=c||{},Object.assign(c,(d=s.getRoomTimelineFilterComponent())===null||d===void 0?void 0:d.toJSON())}return c&&(l.filter=JSON.stringify(c)),this.http.authedRequest(Se.Get,u,l)}createThreadListMessagesRequest(e,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:30,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:At.Backward,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:Ts.All,u=arguments.length>5?arguments[5]:void 0,l=lt("/rooms/$roomId/threads",{$roomId:e}),c={limit:o.toString(),dir:i,include:Dq(s)};n&&(c.from=n);var d={};if((r=this.clientOpts)!==null&&r!==void 0&&r.lazyLoadMembers&&(d=Ro({},Ji.LAZY_LOADING_MESSAGES_FILTER)),u){var F;d=Ro(Ro({},d),(F=u.getRoomTimelineFilterComponent())===null||F===void 0?void 0:F.toJSON())}Object.keys(d).length&&(c.filter=JSON.stringify(d));var h={prefix:xr.hasServerSideListSupport===fi.Stable?Do.V1:"/_matrix/client/unstable/org.matrix.msc3856"};return this.http.authedRequest(Se.Get,l,c,void 0,h).then(m=>{var D;return Ro(Ro({},m),{},{chunk:(D=m.chunk)===null||D===void 0?void 0:D.reverse(),start:m.prev_batch,end:m.next_batch})})}paginateEventTimeline(e,n){var r=this,o=e.getTimelineSet()===this.notifTimelineSet,i=this.getRoom(e.getRoomId()),s=e.getTimelineSet().threadListType,u=e.getTimelineSet().thread;n=n||{};var l=n.backwards||!1;if(o&&!l)throw new Error("paginateNotifTimeline can only paginate backwards");var c=l?it.BACKWARDS:it.FORWARDS,d=e.getPaginationToken(c),F=e.paginationRequests[c];if(F)return F;var h,m,D;if(o){var g;h="/notifications",m={limit:((g=n.limit)!==null&&g!==void 0?g:30).toString(),only:"highlight"},d&&d!=="end"&&(m.from=d),D=this.http.authedRequest(Se.Get,h,m).then(function(){var b=Z(function*(k){var C=k.next_token,S=[];k.notifications=k.notifications.filter(ks);for(var w=0;w<k.notifications.length;w++){var A=k.notifications[w],O=r.getEventMapper()(A.event);r.getPushDetailsForEvent(O,!0),O.event.room_id=A.room_id,S[w]=O}var j=e.getTimelineSet();return j.addEventsToTimeline(S,l,!1,e,C),r.processAggregatedTimelineEvents(j.room,S),l&&!k.next_token&&e.setPaginationToken(null,c),!!k.next_token});return function(k){return b.apply(this,arguments)}}()).finally(()=>{e.paginationRequests[c]=null}),e.paginationRequests[c]=D}else if(s!==null){if(!i)throw new Error("Unknown room "+e.getRoomId());if(!xr.hasServerSideFwdPaginationSupport&&c===At.Forward)throw new Error("Cannot paginate threads forwards without server-side support for MSC 3715");D=this.createThreadListMessagesRequest(e.getRoomId(),d,n.limit,c,s,e.getFilter()).then(b=>{if(b.state){var k=e.getState(c),C=b.state.filter(ks).map(this.getEventMapper());k.setUnknownStateEvents(C)}var S=b.end,w=b.chunk.filter(ks).map(this.getEventMapper()),A=e.getTimelineSet();return A.addEventsToTimeline(w,l,!1,e,S),this.processAggregatedTimelineEvents(i,w),this.processThreadRoots(i,w,l),l&&b.end==b.start&&e.setPaginationToken(null,c),b.end!==b.start}).finally(()=>{e.paginationRequests[c]=null}),e.paginationRequests[c]=D}else if(u){var p,_,v=this.getRoom((p=e.getRoomId())!==null&&p!==void 0?p:void 0);if(!v)throw new Error("Unknown room "+e.getRoomId());var E=this.canSupport.get(Io.RelationsRecursion)!==To.Unsupported;D=this.fetchRelations((_=e.getRoomId())!==null&&_!==void 0?_:"",u.id,null,null,{dir:c,limit:n.limit,from:d??void 0,recurse:E||void 0}).then(function(){var b=Z(function*(k){var C=r.getEventMapper(),S=k.chunk.filter(ks).filter(m5(u.id)).map(C);for(var w of S.slice().reverse()){yield u==null?void 0:u.processEvent(w);var A=w.getSender();(!l||(u==null?void 0:u.getEventReadUpTo(A))===null)&&v.addLocalEchoReceipt(A,w,ti.Read)}var O=k.next_batch,j=e.getTimelineSet();if(j.addEventsToTimeline(S,l,!1,e,O??null),!O&&l){var R,M,z=(R=u.rootEvent)!==null&&R!==void 0?R:C(yield r.fetchRoomEvent((M=e.getRoomId())!==null&&M!==void 0?M:"",u.id));j.addEventsToTimeline([z],!0,!1,e,null)}return r.processAggregatedTimelineEvents(j.room,S),l&&!O&&e.setPaginationToken(null,c),!!O});return function(k){return b.apply(this,arguments)}}()).finally(()=>{e.paginationRequests[c]=null}),e.paginationRequests[c]=D}else{if(!i)throw new Error("Unknown room "+e.getRoomId());D=this.createMessagesRequest(e.getRoomId(),d,n.limit,c,e.getFilter()).then(b=>{if(b.state){var k=e.getState(c),C=b.state.filter(ks).map(this.getEventMapper());k.setUnknownStateEvents(C)}var S=b.end,w=b.chunk.filter(ks).map(this.getEventMapper()),A=e.getTimelineSet(),[O,,j]=i.partitionThreadedEvents(w);A.addEventsToTimeline(O,l,!1,e,S),this.processAggregatedTimelineEvents(i,O),this.processThreadRoots(i,O.filter(M=>M.getServerAggregatedRelation(hr.name)),!1),j.forEach(M=>i.relations.aggregateChildEvent(M));var R=b.end===void 0||b.end===b.start;return l&&R&&e.setPaginationToken(null,c),!R}).finally(()=>{e.paginationRequests[c]=null}),e.paginationRequests[c]=D}return D}resetNotifTimelineSet(){this.notifTimelineSet&&this.notifTimelineSet.resetLiveTimeline("end")}peekInRoom(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20;return(n=this.peekSync)===null||n===void 0||n.stopPeeking(),this.peekSync=new sh(this,this.clientOpts,this.buildSyncApiOptions()),this.peekSync.peek(e,r)}stopPeeking(){this.peekSync&&(this.peekSync.stopPeeking(),this.peekSync=null)}setGuestAccess(e,n){var r=this.sendStateEvent(e,Ce.RoomGuestAccess,{guest_access:n.allowJoin?KF.CanJoin:KF.Forbidden},""),o=Promise.resolve();return n.allowRead&&(o=this.sendStateEvent(e,Ce.RoomHistoryVisibility,{history_visibility:zi.WorldReadable},"")),Promise.all([o,r]).then()}requestRegisterEmailToken(e,n,r,o){return this.requestTokenFromEndpoint("/register/email/requestToken",{email:e,client_secret:n,send_attempt:r,next_link:o})}requestRegisterMsisdnToken(e,n,r,o,i){return this.requestTokenFromEndpoint("/register/msisdn/requestToken",{country:e,phone_number:n,client_secret:r,send_attempt:o,next_link:i})}requestAdd3pidEmailToken(e,n,r,o){return this.requestTokenFromEndpoint("/account/3pid/email/requestToken",{email:e,client_secret:n,send_attempt:r,next_link:o})}requestAdd3pidMsisdnToken(e,n,r,o,i){return this.requestTokenFromEndpoint("/account/3pid/msisdn/requestToken",{country:e,phone_number:n,client_secret:r,send_attempt:o,next_link:i})}requestPasswordEmailToken(e,n,r,o){return this.requestTokenFromEndpoint("/account/password/email/requestToken",{email:e,client_secret:n,send_attempt:r,next_link:o})}requestPasswordMsisdnToken(e,n,r,o,i){return this.requestTokenFromEndpoint("/account/password/msisdn/requestToken",{country:e,phone_number:n,client_secret:r,send_attempt:o,next_link:i})}requestTokenFromEndpoint(e,n){var r=this;return Z(function*(){var o=Object.assign({},n);return r.http.request(Se.Post,e,void 0,o)})()}getRoomPushRule(e,n){if(this.pushRules){var r;return(r=this.pushRules[e])===null||r===void 0||(r=r.room)===null||r===void 0?void 0:r.find(o=>o.rule_id===n)}else throw new Error("SyncApi.sync() must be done before accessing to push rules.")}setRoomMutePushRule(e,n,r){var o,i=!1,s=this.getRoomPushRule(e,n);if(s!=null&&s.actions.includes(pu.DontNotify)&&(i=!0),!r)i&&(o=this.deletePushRule(e,Nn.RoomSpecific,s.rule_id));else if(!s)o=this.addPushRule(e,Nn.RoomSpecific,n,{actions:[pu.DontNotify]});else if(!i){var u=ll();this.deletePushRule(e,Nn.RoomSpecific,s.rule_id).then(()=>{this.addPushRule(e,Nn.RoomSpecific,n,{actions:[pu.DontNotify]}).then(()=>{u.resolve()}).catch(l=>{u.reject(l)})}).catch(l=>{u.reject(l)}),o=u.promise}if(o)return new Promise((l,c)=>{o.then(()=>{this.getPushRules().then(d=>{this.pushRules=d,l()}).catch(d=>{c(d)})}).catch(d=>{this.getPushRules().then(F=>{this.pushRules=F,c(d)}).catch(F=>{c(d)})})})}searchMessageText(e){var n={search_term:e.query};return"keys"in e&&(n.keys=e.keys),this.search({body:{search_categories:{room_events:n}}})}searchRoomEvents(e){var n={search_categories:{room_events:{search_term:e.term,filter:e.filter,order_by:rf.Recent,event_context:{before_limit:1,after_limit:1,include_profile:!0}}}},r={_query:n,results:[],highlights:[]};return this.search({body:n}).then(o=>this.processRoomEventsSearch(r,o))}backPaginateRoomEventsSearch(e){if(!e.next_batch)return Promise.reject(new Error("Cannot backpaginate event search any further"));if(e.pendingRequest)return e.pendingRequest;var n={body:e._query,next_batch:e.next_batch},r=this.search(n,e.abortSignal).then(o=>this.processRoomEventsSearch(e,o)).finally(()=>{e.pendingRequest=void 0});return e.pendingRequest=r,r}processRoomEventsSearch(e,n){var r,o,i=n.search_categories.room_events;e.count=i.count,e.next_batch=i.next_batch;var s=new Set(i.highlights);e.highlights.forEach(m=>{s.add(m)}),e.highlights=Array.from(s);for(var u=this.getEventMapper(),l=(r=(o=i.results)===null||o===void 0?void 0:o.length)!==null&&r!==void 0?r:0,c=0;c<l;c++){var d=Ob.fromJson(i.results[c],u),F=this.getRoom(d.context.getEvent().getRoomId());if(F)for(var h of d.context.getTimeline())h.setMetadata(F.currentState,!1);e.results.push(d)}return e}syncLeftRooms(){if(this.syncedLeftRooms)return Promise.resolve([]);if(this.syncLeftRoomsPromise)return this.syncLeftRoomsPromise;var e=new sh(this,this.clientOpts,this.buildSyncApiOptions());return this.syncLeftRoomsPromise=e.syncLeftRooms(),this.syncLeftRoomsPromise.then(()=>{this.logger.debug("Marking success of sync left room request"),this.syncedLeftRooms=!0}).finally(()=>{this.syncLeftRoomsPromise=void 0}),this.syncLeftRoomsPromise}createFilter(e){var n=lt("/user/$userId/filter",{$userId:this.credentials.userId});return this.http.authedRequest(Se.Post,n,void 0,e).then(r=>{var o=Ji.fromJson(this.credentials.userId,r.filter_id,e);return this.store.storeFilter(o),o})}getFilter(e,n,r){if(r){var o=this.store.getFilter(e,n);if(o)return Promise.resolve(o)}var i=lt("/user/$userId/filter/$filterId",{$userId:e,$filterId:n});return this.http.authedRequest(Se.Get,i).then(s=>{var u=Ji.fromJson(e,n,s);return this.store.storeFilter(u),u})}getOrCreateFilter(e,n){var r=this;return Z(function*(){var o=r.store.getFilterIdByName(e),i;if(o){try{var s=yield r.getFilter(r.credentials.userId,o,!0);if(s){var u=s.getDefinition(),l=n.getDefinition();jF(u,l)&&(i=o)}}catch(d){if(d.errcode!=="M_UNKNOWN"&&d.errcode!=="M_NOT_FOUND")throw d}i||r.store.setFilterIdByName(e,void 0)}if(i)return i;var c=yield r.createFilter(n.getDefinition());return r.store.setFilterIdByName(e,c.filterId),c.filterId})()}getOpenIdToken(){var e=lt("/user/$userId/openid/request_token",{$userId:this.credentials.userId});return this.http.authedRequest(Se.Post,e,void 0,{})}turnServer(){return this.http.authedRequest(Se.Get,"/voip/turnServer")}getTurnServers(){return this.turnServers||[]}getTurnServersExpiry(){return this.turnServersExpiry}get pollingTurnServers(){return this.checkTurnServersIntervalID!==void 0}checkTurnServers(){var e=this;return Z(function*(){if(e.canSupportVoip){var n=!1,r=e.turnServersExpiry-Date.now();if(r>aq)e.logger.debug("TURN creds are valid for another "+r+" ms: not fetching new ones."),n=!0;else{e.logger.debug("Fetching new TURN credentials");try{var o=yield e.turnServer();if(o.uris){e.logger.debug("Got TURN URIs: "+o.uris+" refresh in "+o.ttl+" secs");var i={urls:o.uris,username:o.username,credential:o.password};e.turnServers=[i],e.turnServersExpiry=Date.now()+o.ttl*1e3,n=!0,e.emit(st.TurnServers,e.turnServers)}}catch(s){e.logger.error("Failed to get TURN URIs",s),s.httpStatus===403?(e.logger.info("TURN access unavailable for this account: stopping credentials checks"),e.checkTurnServersIntervalID!==null&&globalThis.clearInterval(e.checkTurnServersIntervalID),e.checkTurnServersIntervalID=void 0,e.emit(st.TurnServersError,s,!0)):e.emit(st.TurnServersError,s,!1)}}return n}})()}setFallbackICEServerAllowed(e){this.fallbackICEServerAllowed=e}isFallbackICEServerAllowed(){return this.fallbackICEServerAllowed}isSynapseAdministrator(){var e=lt("/_synapse/admin/v1/users/$userId/admin",{$userId:this.getUserId()});return this.http.authedRequest(Se.Get,e,void 0,void 0,{prefix:""}).then(n=>n.admin)}whoisSynapseUser(e){var n=lt("/_synapse/admin/v1/whois/$userId",{$userId:e});return this.http.authedRequest(Se.Get,n,void 0,void 0,{prefix:""})}deactivateSynapseUser(e){var n=lt("/_synapse/admin/v1/deactivate/$userId",{$userId:e});return this.http.authedRequest(Se.Post,n,void 0,void 0,{prefix:""})}fetchClientWellKnown(){var e=this;return Z(function*(){var n;e.clientWellKnownPromise=Gt.getRawClientConfig((n=e.getDomain())!==null&&n!==void 0?n:void 0),e.clientWellKnown=yield e.clientWellKnownPromise,e.emit(st.ClientWellKnown,e.clientWellKnown)})()}getClientWellKnown(){return this.clientWellKnown}waitForClientWellKnown(){if(!this.clientRunning)throw new Error("Client is not running");return this.clientWellKnownPromise}storeClientOptions(){var e=["boolean","string","number"],n=Object.entries(this.clientOpts).filter(r=>{var[o,i]=r;return e.includes(typeof i)}).reduce((r,o)=>{var[i,s]=o;return r[i]=s,r},{});return this.store.storeClientOptions(n)}_unstable_getSharedRooms(e){var n=this;return Z(function*(){var r=yield n.doesServerSupportUnstableFeature(sq),o=yield n.doesServerSupportUnstableFeature(uq),i=yield n.doesServerSupportUnstableFeature(lq);if(!r&&!o&&!i)throw Error("Server does not support the Mutual Rooms API");var s,u;i?(s="/uk.half-shot.msc2666/user/mutual_rooms",u={user_id:e}):(s=lt("/uk.half-shot.msc2666/user/".concat(o?"mutual_rooms":"shared_rooms","/$userId"),{$userId:e}),u={});var l=[],c=null;do{var d={};c!=null&&i&&(d.batch_token=c);var F=yield n.http.authedRequest(Se.Get,s,Ro(Ro({},u),d),void 0,{prefix:Do.Unstable});l.push(...F.joined),F.next_batch_token!==void 0?c=F.next_batch_token:c=null}while(c!=null);return l})()}getVersions(){var e=this;return Z(function*(){if(e.serverVersionsPromise)return e.serverVersionsPromise;e.serverVersionsPromise=e.http.authedRequest(Se.Get,"/_matrix/client/versions",void 0,void 0,{prefix:""}).catch(r=>{throw e.serverVersionsPromise=void 0,r});var n=yield e.serverVersionsPromise;return e.canSupport=yield gme(n),e.serverVersionsPromise})()}isVersionSupported(e){var n=this;return Z(function*(){var{versions:r}=yield n.getVersions();return r&&r.includes(e)})()}doesServerSupportUnstableFeature(e){var n=this;return Z(function*(){var r=yield n.getVersions();if(!r)return!1;var o=r.unstable_features;return o&&!!o[e]})()}doesServerForceEncryptionForPreset(e){var n=this;return Z(function*(){var r=yield n.getVersions();if(!r)return!1;var o=r.unstable_features,i=e.includes("_chat")?e.substring(0,e.indexOf("_chat")):e;return o&&!!o["io.element.e2ee_forced.".concat(i)]})()}doesServerSupportThread(){var e=this;return Z(function*(){if(yield e.isVersionSupported("v1.4"))return{threads:fi.Stable,list:fi.Stable,fwdPagination:fi.Stable};try{var[n,r,o,i,s,u]=yield Promise.all([e.doesServerSupportUnstableFeature("org.matrix.msc3440"),e.doesServerSupportUnstableFeature("org.matrix.msc3440.stable"),e.doesServerSupportUnstableFeature("org.matrix.msc3856"),e.doesServerSupportUnstableFeature("org.matrix.msc3856.stable"),e.doesServerSupportUnstableFeature("org.matrix.msc3715"),e.doesServerSupportUnstableFeature("org.matrix.msc3715.stable")]);return{threads:Xb(r,n),list:Xb(i,o),fwdPagination:Xb(u,s)}}catch{return{threads:fi.None,list:fi.None,fwdPagination:fi.None}}})()}hasLazyLoadMembersEnabled(){var e;return!!((e=this.clientOpts)!==null&&e!==void 0&&e.lazyLoadMembers)}setCanResetTimelineCallback(e){this.canResetTimelineCallback=e}getCanResetTimelineCallback(){return this.canResetTimelineCallback}relations(e,n,r,o){var i=arguments,s=this;return Z(function*(){var u,l,c=i.length>4&&i[4]!==void 0?i[4]:{dir:At.Backward},d=o?s.getEncryptedIfNeededEventType(e,o):null,[F,h]=yield Promise.all([s.fetchRoomEvent(e,n),s.fetchRelations(e,n,r,d,c)]),m=s.getEventMapper(),D=F?m(F):void 0,g=h.chunk.map(m);if(d===Ce.RoomMessageEncrypted){var p=D?g.concat(D):g;yield Promise.all(p.map(_=>s.decryptEventIfNeeded(_))),o!==null&&(g=g.filter(_=>_.getType()===o))}return D&&r===Pn.Replace&&(g=g.filter(_=>_.getSender()===D.getSender())),{originalEvent:D??null,events:g,nextBatch:(u=h.next_batch)!==null&&u!==void 0?u:null,prevBatch:(l=h.prev_batch)!==null&&l!==void 0?l:null}})()}generateClientSecret(){return ul(32)}decryptEventIfNeeded(e,n){return e.shouldAttemptDecryption()&&this.getCrypto()&&e.attemptDecryption(this.cryptoBackend,n),e.isBeingDecrypted()?e.getDecryptionPromise():Promise.resolve()}termsUrlForService(e,n){switch(e){case Y9.IS:return this.http.getUrl("/terms",void 0,Fu.V2,n);case Y9.IM:return this.http.getUrl("/terms",void 0,"/_matrix/integrations/v1",n);default:throw new Error("Unsupported service type")}}getHomeserverUrl(){return this.baseUrl}getIdentityServerUrl(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r&&((e=this.idBaseUrl)!==null&&e!==void 0&&e.startsWith("http://")||(n=this.idBaseUrl)!==null&&n!==void 0&&n.startsWith("https://"))?this.idBaseUrl.split("://")[1]:this.idBaseUrl}setIdentityServerUrl(e){this.idBaseUrl=Mk(e),this.http.setIdBaseUrl(this.idBaseUrl)}getAccessToken(){return this.http.opts.accessToken||null}getRefreshToken(){var e;return(e=this.http.opts.refreshToken)!==null&&e!==void 0?e:null}setAccessToken(e){this.http.opts.accessToken=e,this.serverVersionsPromise=void 0}isLoggedIn(){return this.http.opts.accessToken!==void 0}makeTxnId(){return"m"+new Date().getTime()+"."+this.txnCtr++}isUsernameAvailable(e){return this.http.authedRequest(Se.Get,"/register/available",{username:e}).then(n=>n.available).catch(n=>n.errcode==="M_USER_IN_USE"?!1:Promise.reject(n))}register(e,n,r,o,i,s,u){r&&(o.session=r);var l={auth:o,refresh_token:!0};return e!=null&&(l.username=e),n!=null&&(l.password=n),s!=null&&(l.guest_access_token=s),u!=null&&(l.inhibit_login=u),this.registerRequest(l)}registerGuest(){var{body:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.registerRequest(e||{},"guest")}registerRequest(e,n){var r={};return n&&(r.kind=n),this.http.request(Se.Post,"/register",r,e)}refreshToken(e){var n=r=>this.http.authedRequest(Se.Post,"/refresh",void 0,{refresh_token:e},{prefix:r,inhibitLogoutEmit:!0});return n(Do.V3).catch(r=>{if(r.errcode==="M_UNRECOGNIZED")return n(Do.V1);throw r})}loginFlows(){return this.http.request(Se.Get,"/login")}login(e,n){return this.loginRequest(Ro(Ro({},n),{},{type:e})).then(r=>(r.access_token&&r.user_id&&(this.http.opts.accessToken=r.access_token,this.credentials={userId:r.user_id}),r))}loginWithPassword(e,n){return this.login("m.login.password",{user:e,password:n})}getCasLoginUrl(e){return this.getSsoLoginUrl(e,"cas")}getSsoLoginUrl(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"sso",r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i="/login/"+n+"/redirect";r&&(i+="/"+r);var s={redirectUrl:e,[xge.unstable]:o};return this.http.getUrl(i,s).href}loginWithToken(e){return this.login("m.login.token",{token:e})}loginRequest(e){var n=this;return Z(function*(){return yield n.http.authedRequest(Se.Post,"/login",void 0,e)})()}logout(){var e=arguments,n=this;return Z(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:!1;return r&&(n.stopClient(),n.http.abort()),n.http.authedRequest(Se.Post,"/logout")})()}deactivateAccount(e,n){var r={};return e&&(r.auth=e),n!==void 0&&(r.erase=n),this.http.authedRequest(Se.Post,"/account/deactivate",void 0,r)}requestLoginToken(e){var n=this;return Z(function*(){var r={auth:e};return n.http.authedRequest(Se.Post,"/login/get_token",void 0,r,{prefix:Do.V1})})()}getFallbackAuthUrl(e,n){var r=lt("/auth/$loginType/fallback/web",{$loginType:e});return this.http.getUrl(r,{session:n}).href}createRoom(e){var n=this;return Z(function*(){var r,o=(e.invite_3pid||[]).filter(u=>!u.id_access_token);if(o.length>0&&(r=n.identityServer)!==null&&r!==void 0&&r.getAccessToken){var i=yield n.identityServer.getAccessToken();if(i)for(var s of o)s.id_access_token=i}return n.http.authedRequest(Se.Post,"/createRoom",void 0,e)})()}fetchRelations(e,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{dir:At.Backward},s=i;xr.hasServerSideFwdPaginationSupport===fi.Experimental&&(s=ZN("dir","org.matrix.msc3715.dir",s)),this.canSupport.get(Io.RelationsRecursion)===To.Unstable&&(s=ZN("recurse","org.matrix.msc3981.recurse",s));var u=Ik(s),l="/rooms/$roomId/relations/$eventId";r!==null?(l+="/$relationType",o!==null&&(l+="/$eventType")):o!==null&&(this.logger.warn("eventType: ".concat(o,` ignored when fetching
relations as relationType is null`)),o=null);var c=lt(l+"?"+u,{$roomId:e,$eventId:n,$relationType:r,$eventType:o});return this.http.authedRequest(Se.Get,c,void 0,void 0,{prefix:Do.V1})}roomState(e){var n=lt("/rooms/$roomId/state",{$roomId:e});return this.http.authedRequest(Se.Get,n)}fetchRoomEvent(e,n){var r=lt("/rooms/$roomId/event/$eventId",{$roomId:e,$eventId:n});return this.http.authedRequest(Se.Get,r)}members(e,n,r,o){var i={};n&&(i.membership=n),r&&(i.not_membership=r),o&&(i.at=o);var s=Ik(i),u=lt("/rooms/$roomId/members?"+s,{$roomId:e});return this.http.authedRequest(Se.Get,u)}upgradeRoom(e,n){var r=lt("/rooms/$roomId/upgrade",{$roomId:e});return this.http.authedRequest(Se.Post,r,void 0,{new_version:n})}getStateEvent(e,n,r){var o={$roomId:e,$eventType:n,$stateKey:r},i=lt("/rooms/$roomId/state/$eventType",o);return r!==void 0&&(i=lt(i+"/$stateKey",o)),this.http.authedRequest(Se.Get,i)}sendStateEvent(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s={$roomId:e,$eventType:n,$stateKey:o},u=lt("/rooms/$roomId/state/$eventType",s);return o!==void 0&&(u=lt(u+"/$stateKey",s)),this.http.authedRequest(Se.Put,u,void 0,r,i)}roomInitialSync(e,n){var r,o=lt("/rooms/$roomId/initialSync",{$roomId:e});return this.http.authedRequest(Se.Get,o,{limit:(r=n==null?void 0:n.toString())!==null&&r!==void 0?r:"30"})}setRoomReadMarkersHttpRequest(e,n,r,o){var i=this;return Z(function*(){var s=lt("/rooms/$roomId/read_markers",{$roomId:e}),u={[ti.FullyRead]:n,[ti.Read]:r};return((yield i.doesServerSupportUnstableFeature("org.matrix.msc2285.stable"))||(yield i.isVersionSupported("v1.4")))&&(u[ti.ReadPrivate]=o),i.http.authedRequest(Se.Post,s,void 0,u)})()}getJoinedRooms(){var e=lt("/joined_rooms",{});return this.http.authedRequest(Se.Get,e)}getJoinedRoomMembers(e){var n=lt("/rooms/$roomId/joined_members",{$roomId:e});return this.http.authedRequest(Se.Get,n)}publicRooms(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{server:n,limit:r,since:o}=e,i=rU(e,bge);if(Object.keys(i).length===0){var s={server:n,limit:r,since:o};return this.http.authedRequest(Se.Get,"/publicRooms",s)}else{var u={server:n},l=Ro({limit:r,since:o},i);return this.http.authedRequest(Se.Post,"/publicRooms",u,l)}}createAlias(e,n){var r=lt("/directory/room/$alias",{$alias:e}),o={room_id:n};return this.http.authedRequest(Se.Put,r,void 0,o)}deleteAlias(e){var n=lt("/directory/room/$alias",{$alias:e});return this.http.authedRequest(Se.Delete,n)}getLocalAliases(e){var n=lt("/rooms/$roomId/aliases",{$roomId:e}),r=Do.V3;return this.http.authedRequest(Se.Get,n,void 0,void 0,{prefix:r})}getRoomIdForAlias(e){var n=lt("/directory/room/$alias",{$alias:e});return this.http.authedRequest(Se.Get,n)}getRoomDirectoryVisibility(e){var n=lt("/directory/list/room/$roomId",{$roomId:e});return this.http.authedRequest(Se.Get,n)}setRoomDirectoryVisibility(e,n){var r=lt("/directory/list/room/$roomId",{$roomId:e});return this.http.authedRequest(Se.Put,r,void 0,{visibility:n})}searchUserDirectory(e){var{term:n,limit:r}=e,o={search_term:n};return r!==void 0&&(o.limit=r),this.http.authedRequest(Se.Post,"/user_directory/search",void 0,o)}uploadContent(e,n){return this.http.uploadContent(e,n)}cancelUpload(e){return this.http.cancelUpload(e)}getCurrentUploads(){return this.http.getCurrentUploads()}getProfileInfo(e,n){var r=n?lt("/profile/$userId/$info",{$userId:e,$info:n}):lt("/profile/$userId",{$userId:e});return this.http.authedRequest(Se.Get,r)}doesServerSupportExtendedProfiles(){var e=this;return Z(function*(){return e.doesServerSupportUnstableFeature(cq)})()}getExtendedProfileRequestPrefix(){var e=this;return Z(function*(){return(yield e.doesServerSupportUnstableFeature("uk.tcpip.msc4133.stable"))?Do.V3:"/_matrix/client/unstable/uk.tcpip.msc4133"})()}getExtendedProfile(e){var n=this;return Z(function*(){if(!(yield n.doesServerSupportExtendedProfiles()))throw new Error("Server does not support extended profiles");return n.http.authedRequest(Se.Get,lt("/profile/$userId",{$userId:e}),void 0,void 0,{prefix:yield n.getExtendedProfileRequestPrefix()})})()}getExtendedProfileProperty(e,n){var r=this;return Z(function*(){if(!(yield r.doesServerSupportExtendedProfiles()))throw new Error("Server does not support extended profiles");var o=yield r.http.authedRequest(Se.Get,lt("/profile/$userId/$key",{$userId:e,$key:n}),void 0,void 0,{prefix:yield r.getExtendedProfileRequestPrefix()});return o[n]})()}setExtendedProfileProperty(e,n){var r=this;return Z(function*(){if(!(yield r.doesServerSupportExtendedProfiles()))throw new Error("Server does not support extended profiles");var o=r.getUserId();yield r.http.authedRequest(Se.Put,lt("/profile/$userId/$key",{$userId:o,$key:e}),void 0,{[e]:n},{prefix:yield r.getExtendedProfileRequestPrefix()})})()}deleteExtendedProfileProperty(e){var n=this;return Z(function*(){if(!(yield n.doesServerSupportExtendedProfiles()))throw new Error("Server does not support extended profiles");var r=n.getUserId();yield n.http.authedRequest(Se.Delete,lt("/profile/$userId/$key",{$userId:r,$key:e}),void 0,void 0,{prefix:yield n.getExtendedProfileRequestPrefix()})})()}patchExtendedProfile(e){var n=this;return Z(function*(){if(!(yield n.doesServerSupportExtendedProfiles()))throw new Error("Server does not support extended profiles");var r=n.getUserId();return n.http.authedRequest(Se.Patch,lt("/profile/$userId",{$userId:r}),{},e,{prefix:yield n.getExtendedProfileRequestPrefix()})})()}setExtendedProfile(e){var n=this;return Z(function*(){if(!(yield n.doesServerSupportExtendedProfiles()))throw new Error("Server does not support extended profiles");var r=n.getUserId();yield n.http.authedRequest(Se.Put,lt("/profile/$userId",{$userId:r}),{},e,{prefix:yield n.getExtendedProfileRequestPrefix()})})()}getThreePids(){return this.http.authedRequest(Se.Get,"/account/3pid")}addThreePidOnly(e){var n=this;return Z(function*(){var r="/account/3pid/add";return n.http.authedRequest(Se.Post,r,void 0,e)})()}bindThreePid(e){var n=this;return Z(function*(){var r="/account/3pid/bind";return n.http.authedRequest(Se.Post,r,void 0,e)})()}unbindThreePid(e,n){var r=this;return Z(function*(){var o="/account/3pid/unbind",i={medium:e,address:n,id_server:r.getIdentityServerUrl(!0)};return r.http.authedRequest(Se.Post,o,void 0,i)})()}deleteThreePid(e,n){var r="/account/3pid/delete";return this.http.authedRequest(Se.Post,r,void 0,{medium:e,address:n})}setPassword(e,n,r){var o="/account/password",i={auth:e,new_password:n,logout_devices:r};return this.http.authedRequest(Se.Post,o,void 0,i)}getDevices(){return this.http.authedRequest(Se.Get,"/devices")}getDevice(e){var n=lt("/devices/$device_id",{$device_id:e});return this.http.authedRequest(Se.Get,n)}setDeviceDetails(e,n){var r=lt("/devices/$device_id",{$device_id:e});return this.http.authedRequest(Se.Put,r,void 0,n)}deleteDevice(e,n){var r=lt("/devices/$device_id",{$device_id:e}),o={};return n&&(o.auth=n),this.http.authedRequest(Se.Delete,r,void 0,o)}deleteMultipleDevices(e,n){var r={devices:e};n&&(r.auth=n);var o="/delete_devices";return this.http.authedRequest(Se.Post,o,void 0,r)}getPushers(){var e=this;return Z(function*(){var n=yield e.http.authedRequest(Se.Get,"/pushers");return(yield e.doesServerSupportUnstableFeature("org.matrix.msc3881"))||(n.pushers=n.pushers.map(r=>(r.hasOwnProperty(sb.name)||(r[sb.name]=!0),r))),n})()}setPusher(e){var n="/pushers/set";return this.http.authedRequest(Se.Post,n,void 0,e)}removePusher(e,n){var r="/pushers/set",o={pushkey:e,app_id:n,kind:null};return this.http.authedRequest(Se.Post,r,void 0,o)}setLocalNotificationSettings(e,n){var r="".concat($k.name,".").concat(e);return this.setAccountData(r,n)}getPushRules(){return this.http.authedRequest(Se.Get,"/pushrules/").then(e=>(this.setPushRules(e),this.pushRules))}setPushRules(e){this.pushRules=Bs.rewriteDefaultRules(e,this.getUserId()),this.pushProcessor.updateCachedPushRuleKeys(this.pushRules)}addPushRule(e,n,r,o){var i=lt("/pushrules/"+e+"/$kind/$ruleId",{$kind:n,$ruleId:r});return this.http.authedRequest(Se.Put,i,void 0,o)}deletePushRule(e,n,r){var o=lt("/pushrules/"+e+"/$kind/$ruleId",{$kind:n,$ruleId:r});return this.http.authedRequest(Se.Delete,o)}setPushRuleEnabled(e,n,r,o){var i=lt("/pushrules/"+e+"/$kind/$ruleId/enabled",{$kind:n,$ruleId:r});return this.http.authedRequest(Se.Put,i,void 0,{enabled:o})}setPushRuleActions(e,n,r,o){var i=lt("/pushrules/"+e+"/$kind/$ruleId/actions",{$kind:n,$ruleId:r});return this.http.authedRequest(Se.Put,i,void 0,{actions:o})}search(e,n){var{body:r,next_batch:o}=e,i={};return o&&(i.next_batch=o),this.http.authedRequest(Se.Post,"/search",i,r,{abortSignal:n})}uploadKeysRequest(e,n){return this.http.authedRequest(Se.Post,"/keys/upload",void 0,e)}uploadKeySignatures(e){return this.http.authedRequest(Se.Post,"/keys/signatures/upload",void 0,e)}downloadKeysForUsers(e){var{token:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={device_keys:{}};return n!==void 0&&(r.token=n),e.forEach(o=>{r.device_keys[o]=[]}),this.http.authedRequest(Se.Post,"/keys/query",void 0,r)}claimOneTimeKeys(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"signed_curve25519",r=arguments.length>2?arguments[2]:void 0,o={};n===void 0&&(n="signed_curve25519");for(var[i,s]of e){var u=o[i]||{};Zv(o,i,u),Zv(u,s,n)}var l={one_time_keys:o};r&&(l.timeout=r);var c="/keys/claim";return this.http.authedRequest(Se.Post,c,void 0,l)}getKeyChanges(e,n){var r={from:e,to:n};return this.http.authedRequest(Se.Get,"/keys/changes",r)}uploadDeviceSigningKeys(e,n){var r=Object.assign({},n);return e&&Object.assign(r,{auth:e}),this.http.authedRequest(Se.Post,"/keys/device_signing/upload",void 0,r,{prefix:Do.Unstable})}registerWithIdentityServer(e){if(!this.idBaseUrl)throw new Error("No identity server base URL set");var n=this.http.getUrl("/account/register",void 0,Fu.V2,this.idBaseUrl);return this.http.requestOtherUrl(Se.Post,n,e)}requestEmailToken(e,n,r,o,i){var s={client_secret:n,email:e,send_attempt:r==null?void 0:r.toString()};return o&&(s.next_link=o),this.http.idServerRequest(Se.Post,"/validate/email/requestToken",s,Fu.V2,i)}requestMsisdnToken(e,n,r,o,i,s){var u={client_secret:r,country:e,phone_number:n,send_attempt:o==null?void 0:o.toString()};return i&&(u.next_link=i),this.http.idServerRequest(Se.Post,"/validate/msisdn/requestToken",u,Fu.V2,s)}submitMsisdnToken(e,n,r,o){var i={sid:e,client_secret:n,token:r};return this.http.idServerRequest(Se.Post,"/validate/msisdn/submitToken",i,Fu.V2,o??void 0)}submitMsisdnTokenOtherUrl(e,n,r,o){var i={sid:n,client_secret:r,token:o};return this.http.requestOtherUrl(Se.Post,e,i)}getIdentityHashDetails(e){return this.http.idServerRequest(Se.Get,"/hash_details",void 0,Fu.V2,e)}identityHashedLookup(e,n){var r=this;return Z(function*(){var o={},i=yield r.getIdentityHashDetails(n);if(!i||!i.lookup_pepper||!i.algorithms)throw new Error("Unsupported identity server: bad response");o.pepper=i.lookup_pepper;var s={};if(i.algorithms.includes("sha256"))o.addresses=yield Promise.all(e.map(function(){var h=Z(function*(m){var D=m[0].toLowerCase(),g=m[1].toLowerCase(),p=yield qV("".concat(D," ").concat(g," ").concat(o.pepper)),_=jb(p);return s[_]=m[0],_});return function(m){return h.apply(this,arguments)}}())),o.algorithm="sha256";else if(i.algorithms.includes("none"))o.addresses=e.map(h=>{var m=h[0].toLowerCase(),D=h[1].toLowerCase(),g="".concat(m," ").concat(D);return s[g]=h[0],g}),o.algorithm="none";else throw new Error("Unsupported identity server: unknown hash algorithm");var u=yield r.http.idServerRequest(Se.Post,"/lookup",o,Fu.V2,n);if(!(u!=null&&u.mappings))return[];var l=[];for(var c of Object.keys(u.mappings)){var d=u.mappings[c],F=s[c];if(!F)throw new Error("Identity server returned more results than expected");l.push({address:F,mxid:d})}return l})()}lookupThreePid(e,n,r){var o=this;return Z(function*(){var i=yield o.identityHashedLookup([[n,e]],r),s=i.find(l=>l.address===n);if(!s)return{};var u={address:n,medium:e,mxid:s.mxid};return u})()}bulkLookupThreePids(e,n){var r=this;return Z(function*(){var o=yield r.identityHashedLookup(e.map(l=>[l[1],l[0]]),n),i=[],s=function*(l){var c=e.find(d=>d[1]===l.address);if(!c)throw new Error("Identity sever returned unexpected results");i.push([c[0],l.address,l.mxid])};for(var u of o)yield*s(u);return{threepids:i}})()}getIdentityAccount(e){return this.http.idServerRequest(Se.Get,"/account",void 0,Fu.V2,e)}sendToDevice(e,n,r){var o=lt("/sendToDevice/$eventType/$txnId",{$eventType:e,$txnId:r||this.makeTxnId()}),i={messages:X1(n)},s=new Map;for(var[u,l]of n)s.set(u,Array.from(l.keys()));return this.logger.debug("PUT ".concat(o),s),this.http.authedRequest(Se.Put,o,void 0,i)}encryptAndSendToDevice(e,n,r){var o=this;return Z(function*(){if(!o.cryptoBackend)throw new Error("Cannot encrypt to device event, your client does not support encryption.");var i=yield o.cryptoBackend.encryptToDeviceMessages(e,n,r);yield o.queueToDevice(i)})()}queueToDevice(e){return this.toDeviceMessageQueue.queueBatch(e)}getThirdpartyProtocols(){return this.http.authedRequest(Se.Get,"/thirdparty/protocols").then(e=>{if(!e||typeof e!="object")throw new Error("/thirdparty/protocols did not return an object: ".concat(e));return e})}getThirdpartyLocation(e,n){var r=lt("/thirdparty/location/$protocol",{$protocol:e});return this.http.authedRequest(Se.Get,r,n)}getThirdpartyUser(e,n){var r=lt("/thirdparty/user/$protocol",{$protocol:e});return this.http.authedRequest(Se.Get,r,n)}getTerms(e,n){var r=this.termsUrlForService(e,n);return this.http.requestOtherUrl(Se.Get,r)}agreeToTerms(e,n,r,o){var i=this.termsUrlForService(e,n),s={Authorization:"Bearer "+r};return this.http.requestOtherUrl(Se.Post,i,{user_accepts:o},{headers:s})}reportEvent(e,n,r,o){var i=lt("/rooms/$roomId/report/$eventId",{$roomId:e,$eventId:n});return this.http.authedRequest(Se.Post,i,void 0,{score:r,reason:o})}reportRoom(e,n){var r=lt("/rooms/$roomId/report",{$roomId:e});return this.http.authedRequest(Se.Post,r,void 0,{reason:n})}getRoomHierarchy(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4?arguments[4]:void 0,s=lt("/rooms/$roomId/hierarchy",{$roomId:e}),u={suggested_only:String(o),max_depth:r==null?void 0:r.toString(),from:i,limit:n==null?void 0:n.toString()};return this.http.authedRequest(Se.Get,s,u,void 0,{prefix:Do.V1}).catch(l=>{if(l.errcode==="M_UNRECOGNIZED")return this.http.authedRequest(Se.Get,s,u,void 0,{prefix:"/_matrix/client/unstable/org.matrix.msc2946"});throw l})}unstableCreateFileTree(e){var n=this;return Z(function*(){var{room_id:r}=yield n.createRoom({name:e,preset:Mb.PrivateChat,power_level_content_override:Ro(Ro({},_De),{},{users:{[n.getUserId()]:100}}),creation_content:{[kp]:Tl.Space},initial_state:[{type:rb.name,state_key:ib.name,content:{[ob.name]:!0}},{type:Ce.RoomEncryption,state_key:"",content:{algorithm:"m.megolm.v1.aes-sha2"}}]});return new xV(n,r)})()}unstableGetFileTreeSpace(e){var n,r,o=this.getRoom(e);if((o==null?void 0:o.getMyMembership())!==an.Join)return null;var i=o.currentState.getStateEvents(Ce.RoomCreate,""),s=o.currentState.getStateEvents(rb.name,ib.name);if(!i)throw new Error("Expected single room create event");return!(s!=null&&(n=s.getContent())!==null&&n!==void 0&&n[ob.name])||((r=i.getContent())===null||r===void 0?void 0:r[kp])!==Tl.Space?null:new xV(this,e)}slidingSync(e,n,r){var o={};e.pos&&(o.pos=e.pos,delete e.pos),e.timeout&&(o.timeout=e.timeout,delete e.timeout);var i=e.clientTimeout;return delete e.clientTimeout,this.http.authedRequest(Se.Post,"/sync",o,e,{prefix:"/_matrix/client/unstable/org.matrix.simplified_msc3575",baseUrl:n,localTimeoutMs:i,abortSignal:r})}supportsThreads(){var e;return((e=this.clientOpts)===null||e===void 0?void 0:e.threadSupport)||!1}supportsIntentionalMentions(){return this.canSupport.get(Io.IntentionalMentions)!==To.Unsupported}getRoomSummary(e,n){var r=this;return Z(function*(){var o={prefix:"/_matrix/client/unstable/im.nheko.summary"};try{var i=lt("/summary/$roomid",{$roomid:e});return yield r.http.authedRequest(Se.Get,i,{via:n},void 0,o)}catch(u){if(u instanceof tn&&u.errcode==="M_UNRECOGNIZED"){var s=lt("/rooms/$roomid/summary",{$roomid:e});return yield r.http.authedRequest(Se.Get,s,{via:n},void 0,o)}else throw u}})()}processThreadEvents(e,n,r){e.processThreadedEvents(n,r)}processThreadRoots(e,n,r){this.supportsThreads()&&e.processThreadRoots(n,r)}processBeaconEvents(e,n){this.processAggregatedTimelineEvents(e,n)}processAggregatedTimelineEvents(e,n){n!=null&&n.length&&e&&(e.currentState.processBeaconEvents(n,this),e.processPollEvents(n))}whoami(){var e=this;return Z(function*(){return e.http.authedRequest(Se.Get,"/account/whoami")})()}timestampToEvent(e,n,r){var o=this;return Z(function*(){var i=lt("/rooms/$roomId/timestamp_to_event",{$roomId:e}),s={ts:n.toString(),dir:r};try{return yield o.http.authedRequest(Se.Get,i,s,void 0,{prefix:Do.V1})}catch(u){if(u.errcode==="M_UNRECOGNIZED"&&(u.httpStatus===400||u.httpStatus===404||u.httpStatus===405))return yield o.http.authedRequest(Se.Get,i,s,void 0,{prefix:"/_matrix/client/unstable/org.matrix.msc3030"});throw u}})()}getAuthIssuer(){var e=this;return Z(function*(){return e.http.request(Se.Get,"/auth_issuer",void 0,void 0,{prefix:Do.Unstable+"/org.matrix.msc2965"})})()}getAuthMetadata(){var e=this;return Z(function*(){var n;try{n=yield e.http.request(Se.Get,"/auth_metadata",void 0,void 0,{prefix:Do.Unstable+"/org.matrix.msc2965"})}catch(o){if(o instanceof tn&&o.errcode==="M_UNRECOGNIZED"){var{issuer:r}=yield e.getAuthIssuer();return y5(r)}throw o}return x5(n)})()}}I(Jb,"RESTORE_BACKUP_ERROR_BAD_KEY","RESTORE_BACKUP_ERROR_BAD_KEY");function dq(t){return Object.fromEntries(Object.entries(t).map(e=>{var[n,r]=e;return["".concat(vu,".").concat(n),r]}))}function hq(t,e){var n,r=t.getUserId(),o=e.getId(),i=t.getRoom(e.getRoomId());if(!(!i||!r||!o)){if(!i.findEventById(o)){Y.info("Decrypted event ".concat(e.getId()," is not in room ").concat(i.roomId,": ignoring"));return}var s=!!e.threadRootId&&!e.isThreadRoot,u;if(s){var l=i.getThread(e.threadRootId);u=l?l.hasUserReadEvent(r,o):!0}else u=i.hasUserReadEvent(r,o);if(!u){var c=t.getPushActionsForEvent(e,!0),d=!!(c!=null&&(n=c.tweaks)!==null&&n!==void 0&&n.highlight);if(d){var F=i.getUnreadCountForEventContext(Ln.Highlight,e)+1;s?i.setThreadUnreadNotificationCount(e.threadRootId,Ln.Highlight,F):i.setUnreadNotificationCount(Ln.Highlight,F)}var h=!!(c!=null&&c.notify);if(h){var m=i.getUnreadCountForEventContext(Ln.Total,e)+1;s?i.setThreadUnreadNotificationCount(e.threadRootId,Ln.Total,m):i.setUnreadNotificationCount(Ln.Total,m)}}}}function rm(t){return uf(t)?bp:t.threadRootId}function uf(t){if(!t.threadRootId||t.isThreadRoot)return!0;if(!t.isRelation())return Y.warn("Event is not a relation or a thread root, but still has a threadRootId! id=".concat(t.getId())),!0;if(t.isRelation(hr.name))return!1;var e=t.relationEventId===t.threadRootId;return e}function Fq(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function mq(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fq(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fq(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ji=function(t){return t.New="Thread.new",t.Update="Thread.update",t.NewReply="Thread.newReply",t.ViewThread="Thread.viewThread",t.Delete="Thread.delete",t}({}),fi=function(t){return t[t.None=0]="None",t[t.Experimental=1]="Experimental",t[t.Stable=2]="Stable",t}({});function Xb(t,e){return t?fi.Stable:e?fi.Experimental:fi.None}class xr extends yU{constructor(e,n,r){var o,i;if(super(),o=this,this.id=e,this.rootEvent=n,I(this,"timelineSet",void 0),I(this,"_currentUserParticipated",!1),I(this,"reEmitter",void 0),I(this,"lastEvent",void 0),I(this,"replyCount",0),I(this,"lastPendingEvent",void 0),I(this,"pendingReplyCount",0),I(this,"room",void 0),I(this,"client",void 0),I(this,"pendingEventOrdering",void 0),I(this,"processRootEventPromise",void 0),I(this,"initialEventsFetched",!xr.hasServerSideSupport),I(this,"initalEventFetchProm",void 0),I(this,"replayEvents",[]),I(this,"onTimelineReset",Z(function*(){yield o.processRootEventPromise,o.processRootEventPromise=void 0})),I(this,"onBeforeRedaction",(s,u)=>{s!=null&&s.isRelation(hr.name)&&this.room.eventShouldLiveIn(s).threadId===this.id&&s.getId()!==this.id&&!u.status&&(this.replyCount--,this.updatePendingReplyCount(),this.emit(ji.Update,this))}),I(this,"onRedaction",function(){var s=Z(function*(u,l,c){if(c===o.id)if(o.replyCount<=0){for(var d of o.timeline)o.clearEventMetadata(d);o.lastEvent=o.rootEvent,o._currentUserParticipated=!1,o.emit(ji.Delete,o)}else{var F;((F=o.lastEvent)===null||F===void 0?void 0:F.getId())===u.getAssociatedId()&&(yield o.processRootEventPromise,o.processRootEventPromise=void 0),yield o.updateThreadMetadata()}});return function(u,l,c){return s.apply(this,arguments)}}()),I(this,"onTimelineEvent",(s,u,l)=>{if(!l){var c=s.getSender();c&&u&&this.shouldSendLocalEchoReceipt(c,s)&&u.addLocalEchoReceipt(c,s,ti.Read),s.getId()!==this.id&&s.isRelation(hr.name)&&this.replyCount++}this.onEcho(s,l??!1)}),I(this,"onLocalEcho",s=>{this.onEcho(s,!1)}),I(this,"onEcho",function(){var s=Z(function*(u,l){u.threadRootId===o.id&&o.lastEvent!==u&&(yield o.updateThreadMetadata(),u.isRelation(hr.name)&&(l||(o.lastEvent=void 0,o.emit(ji.NewReply,o,u))))});return function(u,l){return s.apply(this,arguments)}}()),this.setMaxListeners(1e3),!(r!=null&&r.room))throw new Error("element-web#22141: A thread requires a room in order to function");this.room=r.room,this.client=r.client,this.pendingEventOrdering=(i=r.pendingEventOrdering)!==null&&i!==void 0?i:nm.Chronological,this.timelineSet=new VF(this.room,{timelineSupport:!0,pendingEvents:!0},this.client,this),this.reEmitter=new x1(this),this.reEmitter.reEmit(this.timelineSet,[Ke.Timeline,Ke.TimelineReset]),this.room.on(Un.BeforeRedaction,this.onBeforeRedaction),this.room.on(Ke.Redaction,this.onRedaction),this.room.on(Ke.LocalEchoUpdated,this.onLocalEcho),this.room.on(Ke.TimelineReset,this.onTimelineReset),this.timelineSet.on(Ke.Timeline,this.onTimelineEvent),this.processReceipts(r.receipts),this.updateThreadMetadata(),this.setEventMetadata(this.rootEvent)}fetchRootEvent(){var e=this;return Z(function*(){try{var n=yield e.client.fetchRoomEvent(e.roomId,e.id),r=e.client.getEventMapper();e.rootEvent=r(n)}catch(o){Y.error("Failed to fetch thread root to construct thread with",o)}yield e.processEvent(e.rootEvent)})()}static setServerSideSupport(e){xr.hasServerSideSupport=e,e!==fi.Stable&&(om.setPreferUnstable(!0),im.setPreferUnstable(!0),hr.setPreferUnstable(!0))}static setServerSideListSupport(e){xr.hasServerSideListSupport=e}static setServerSideFwdPaginationSupport(e){xr.hasServerSideFwdPaginationSupport=e}shouldSendLocalEchoReceipt(e,n){var r,o=(r=this.client.canSupport.get(Io.RelationsRecursion))!==null&&r!==void 0?r:To.Unsupported;if(o===To.Unsupported){var i,s=(i=this.getReadReceiptForUserId(e))===null||i===void 0?void 0:i.eventId;if(s){var u=this.findEventById(s);if(u&&u.getTs()>n.getTs())return!1}}return!0}get roomState(){return this.room.getLiveTimeline().getState(it.FORWARDS)}addEventToTimeline(e,n){this.findEventById(e.getId())||this.timelineSet.addEventToTimeline(e,this.liveTimeline,{toStartOfTimeline:n,fromCache:!1,roomState:this.roomState,addToState:!1})}insertEventIntoTimeline(e){var n=e.getId();n&&(this.findEventById(n)||this.timelineSet.insertEventIntoTimeline(e,this.liveTimeline,this.roomState,!1))}addEvents(e,n){e.forEach(r=>this.addEvent(r,n,!1)),this.updateThreadMetadata()}addEvent(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;this.setEventMetadata(e);var o=this.lastReply(),i=!o||e.localTimestamp>=o.localTimestamp;if(!xr.hasServerSideSupport)this.addEventToTimeline(e,n),this.client.decryptEventIfNeeded(e);else if(e.isRelation(Pn.Annotation)||e.isRelation(Pn.Replace)){this.addRelatedThreadEvent(e,n);return}else!n&&i?(this.addEventToTimeline(e,!1),this.fetchEditsWhereNeeded(e)):n?this.addEventToTimeline(e,n):this.insertEventIntoTimeline(e);e.getId()!==this.id&&e.isRelation(hr.name)&&!n&&i&&(this.lastEvent=void 0),r&&(this.emit(ji.NewReply,this,e),this.updateThreadMetadata())}addRelatedThreadEvent(e,n){var r,o;if(this.initialEventsFetched){var i,s=(i=this.client.canSupport.get(Io.RelationsRecursion))!==null&&i!==void 0?i:To.Unsupported;s===To.Unsupported?this.insertEventIntoTimeline(e):this.addEventToTimeline(e,n)}else{var u;(u=this.replayEvents)===null||u===void 0||u.push(e)}(r=this.timelineSet.relations)===null||r===void 0||r.aggregateParentEvent(e),(o=this.timelineSet.relations)===null||o===void 0||o.aggregateChildEvent(e,this.timelineSet)}processEvent(e){var n=this;return Z(function*(){e&&(n.setEventMetadata(e),yield n.fetchEditsWhereNeeded(e))})()}processReceipts(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var{eventId:n,receiptType:r,userId:o,receipt:i,synthetic:s}of e)this.addReceiptToStructure(n,r,o,i,s)}getRootEventBundledRelationship(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.rootEvent;return e==null?void 0:e.getServerAggregatedRelation(hr.name)}processRootEvent(){var e=this;return Z(function*(){var n=e.getRootEventBundledRelationship();if(xr.hasServerSideSupport&&n){e.replyCount=n.count,e._currentUserParticipated=!!n.current_user_participated;var r=e.client.getEventMapper();e.lastEvent=r(mq(mq({},n.latest_event),{},{room_id:e.roomId})),e.updatePendingReplyCount(),yield e.processEvent(e.lastEvent)}})()}updatePendingReplyCount(){var e=this.pendingEventOrdering===nm.Detached?this.room.getPendingEvents():this.events,n=e.filter(r=>{var o;return r.threadRootId===this.id&&r.isRelation(hr.name)&&r.status!==null&&r.getId()!==((o=this.lastEvent)===null||o===void 0?void 0:o.getId())});this.lastPendingEvent=n.length?n[n.length-1]:void 0,this.pendingReplyCount=n.length}resetLiveTimeline(e,n){var r=this;return Z(function*(){var o=r.liveTimeline;r.timelineSet.resetLiveTimeline(e??void 0,n??void 0);var i=r.liveTimeline,s,u;if(e){var l=yield r.client.createMessagesRequest(r.roomId,e,1,At.Forward);s=l.end}if(n){var c=yield r.client.createMessagesRequest(r.roomId,n,1,At.Backward);u=c.start}n&&o.getPaginationToken(At.Forward)===n&&o.setPaginationToken(u??null,At.Forward),e&&i.getPaginationToken(At.Backward)===e&&i.setPaginationToken(s??null,At.Backward)})()}updateThreadFromRootEvent(){var e=this;return Z(function*(){xr.hasServerSideSupport&&(!e.initialEventsFetched&&!e.lastEvent&&(yield e.processRootEvent()),yield e.fetchRootEvent()),yield e.processRootEvent()})()}updateThreadMetadata(){var e=this;return Z(function*(){if(e.updatePendingReplyCount(),e.processRootEventPromise||(e.processRootEventPromise=e.updateThreadFromRootEvent()),yield e.processRootEventPromise,!e.initialEventsFetched)if(e.initalEventFetchProm)yield e.initalEventFetchProm;else try{e.timelineSet.resetLiveTimeline(),e.replyCount===0&&e.rootEvent?(e.timelineSet.addEventsToTimeline([e.rootEvent],!0,!1,e.liveTimeline,null),e.liveTimeline.setPaginationToken(null,At.Backward)):(e.initalEventFetchProm=e.client.paginateEventTimeline(e.liveTimeline,{backwards:!0}),yield e.initalEventFetchProm),e.initialEventsFetched=!0;for(var n of e.replayEvents)e.addEvent(n,!1);e.replayEvents=null,e.emit(Ke.TimelineReset,e.room,e.timelineSet,!0)}catch(r){Y.error("Failed to load start of newly created thread: ",r),e.initialEventsFetched=!1}e.emit(ji.Update,e)})()}fetchEditsWhereNeeded(){var e=arguments,n=this;return Z(function*(){var r,o=(r=n.client.canSupport.get(Io.RelationsRecursion))!==null&&r!==void 0?r:To.Unsupported;if(o===To.Unsupported){for(var i=e.length,s=new Array(i),u=0;u<i;u++)s[u]=e[u];return Promise.all(s.filter(wge).map(function(){var l=Z(function*(c){try{var d=yield n.client.relations(n.roomId,c.getId(),Pn.Replace,c.getType(),{limit:1});if(d.events.length){var F=d.events[0];c.makeReplaced(F),n.insertEventIntoTimeline(F)}}catch(h){Y.error("Failed to load edits for encrypted thread event",h)}});return function(c){return l.apply(this,arguments)}}()))}})()}setEventMetadata(e){e&&(it.setEventMetadata(e,this.roomState,!1),e.setThread(this))}clearEventMetadata(e){if(e){var n;e.setThread(void 0),(n=e.event)===null||n===void 0||(n=n.unsigned)===null||n===void 0||(n=n["m.relations"])===null||n===void 0||delete n[hr.name]}}findEventById(e){return this.timelineSet.findEventById(e)}lastReply(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o=>o.isRelation(hr.name),n=this.timeline.length-1;n>=0;n--){var r=this.timeline[n];if(e(r))return r}return null}get roomId(){return this.room.roomId}get length(){return this.replyCount+this.pendingReplyCount}get replyToEvent(){var e,n;return(e=(n=this.lastPendingEvent)!==null&&n!==void 0?n:this.lastEvent)!==null&&e!==void 0?e:this.lastReply()}get timeline(){return this.events}get events(){return this.liveTimeline.getEvents()}has(e){return this.timelineSet.findEventById(e)instanceof ii}get hasCurrentUserParticipated(){return this._currentUserParticipated}get liveTimeline(){return this.timelineSet.getLiveTimeline()}getUnfilteredTimelineSet(){return this.timelineSet}addReceipt(e,n){throw new Error("Unsupported function on the thread model")}getEventReadUpTo(e,n){var r=e===this.client.getUserId(),o=this.timeline[this.timeline.length-1];if(r&&o){var i=o.getTs()<this.room.getOldestThreadedReceiptTs(),s=o.getId();if(i&&s)return s}var u=super.getEventReadUpTo(e,n);if(o){var l=this.room.getLastUnthreadedReceiptFor(e);if(!l)return u;for(var c=((d=this.timeline)===null||d===void 0?void 0:d.length)-1;c>=0;--c){var d,F,h=this.timeline[c];if(h.getId()===u)return u;if(h.getTs()<l.ts)return(F=h.getId())!==null&&F!==void 0?F:u}}return u}hasUserReadEvent(e,n){if(e===this.client.getUserId()){var r,o,i,s,u,l,c=((r=(o=this.lastReply())===null||o===void 0?void 0:o.getTs())!==null&&r!==void 0?r:0)<this.room.getOldestThreadedReceiptTs(),d=(i=(s=this.room.getLastUnthreadedReceiptFor(e))===null||s===void 0?void 0:s.ts)!==null&&i!==void 0?i:0,F=((u=this===null||this===void 0||(l=this.lastReply())===null||l===void 0?void 0:l.getTs())!==null&&u!==void 0?u:0)<d;if(c||F)return!0}return this.room.hasUserReadEvent(e,n)}setUnread(e,n){return this.room.setThreadUnreadNotificationCount(this.id,e,n)}getLastUnthreadedReceiptFor(e){return this.room.getLastUnthreadedReceiptFor(e)}}I(xr,"hasServerSideSupport",fi.None),I(xr,"hasServerSideListSupport",fi.None),I(xr,"hasServerSideFwdPaginationSupport",fi.None);function wge(t){return t.isEncrypted()&&(t.isRelation(hr.name)||t.isThreadRoot)}var om=new Wv("related_by_senders","io.element.relation_senders"),im=new Wv("related_by_rel_types","io.element.relation_types"),hr=new Wv("m.thread","io.element.thread"),Ts=function(t){return t[t.My=0]="My",t[t.All=1]="All",t}({});function Dq(t){switch(t){case Ts.My:return"participated";default:return"all"}}rx=class extends Error{constructor(t,e,n){super(e),this.code=t,I(this,"detailedString",void 0),this.name="DecryptionError",this.detailedString=kge(this,n)}};function kge(t,e){var n=t.name+"[msg: "+t.message;return e&&(n+=", "+Object.keys(e).map(r=>r+": "+e[r]).join(", ")),n+="]",n}let k5;k5=Object.freeze({visible:!0}),Un=function(t){return t.Decrypted="Event.decrypted",t.BeforeRedaction="Event.beforeRedaction",t.VisibilityChange="Event.visibilityChange",t.LocalEventIdReplaced="Event.localEventIdReplaced",t.Status="Event.status",t.Replaced="Event.replaced",t.RelationsCreated="Event.relationsCreated",t.SentinelUpdated="Event.sentinelUpdated",t}({});class ii extends Cr{setMetadata(e,n){var r,o,i=this.isState()&&this.getType()===Ce.RoomMember&&this.getSender()===this.getStateKey(),s=!1;if(i||!((r=this.sender)!==null&&r!==void 0&&(r=r.events)!==null&&r!==void 0&&r.member)){var u=e.getSentinelMember(this.getSender());u!==this.sender&&(s=!0),this.sender=u}if(i||!((o=this.target)!==null&&o!==void 0&&(o=o.events)!==null&&o!==void 0&&o.member)&&this.getType()===Ce.RoomMember){var l=e.getSentinelMember(this.getStateKey());l!==this.target&&(s=!0),this.target=l}this.isState()&&n&&(this.forwardLooking=!1),s&&this.emit(Un.SentinelUpdated)}constructor(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),this.event=n,I(this,"pushDetails",{}),I(this,"_replacingEvent",null),I(this,"_localRedactionEvent",null),I(this,"_isCancelled",!1),I(this,"clearEvent",void 0),I(this,"visibility",k5),I(this,"_hasCachedExtEv",!1),I(this,"_cachedExtEv",void 0),I(this,"_decryptionFailureReason",null),I(this,"senderCurve25519Key",null),I(this,"claimedEd25519Key",null),I(this,"forwardingCurve25519KeyChain",[]),I(this,"untrusted",null),I(this,"decryptionPromise",null),I(this,"retryDecryption",!1),I(this,"txnId",void 0),I(this,"thread",void 0),I(this,"threadId",void 0),I(this,"localTimestamp",void 0),I(this,"sender",null),I(this,"target",null),I(this,"status",null),I(this,"error",null),I(this,"forwardLooking",!0),I(this,"reEmitter",void 0),["state_key","type","sender","room_id","membership"].forEach(o=>{typeof n[o]=="string"&&(n[o]=Tk(n[o]))}),["membership","avatar_url","displayname"].forEach(o=>{var i;typeof((i=n.content)===null||i===void 0?void 0:i[o])=="string"&&(n.content[o]=Tk(n.content[o]))}),["rel_type"].forEach(o=>{var i;typeof((i=n.content)===null||i===void 0||(i=i["m.relates_to"])===null||i===void 0?void 0:i[o])=="string"&&(n.content["m.relates_to"][o]=Tk(n.content["m.relates_to"][o]))}),this.txnId=n.txn_id;var r=this.getAge();this.localTimestamp=r!==void 0?Date.now()-r:(e=this.getTs())!==null&&e!==void 0?e:Date.now(),this.reEmitter=new x1(this)}get unstableExtensibleEvent(){return this._hasCachedExtEv||(this._cachedExtEv=Si.ExtensibleEvents.parse(this.getEffectiveEvent())),this._cachedExtEv}invalidateExtensibleEvent(){this._hasCachedExtEv=!1}getEffectiveEvent(){var e=Object.assign({},this.getContent());if(this.getWireType()===Ce.RoomMessageEncrypted)for(var[n,r]of Object.entries(this.getWireContent()))["algorithm","ciphertext","device_id","sender_key","session_id"].includes(n)||e[n]===void 0&&(e[n]=r);return Object.assign({},this.event,this.clearEvent,{content:e})}getId(){return this.event.event_id}getSender(){return this.event.sender}getType(){return this.clearEvent?this.clearEvent.type:this.event.type}getWireType(){return this.event.type}getRoomId(){return this.event.room_id}getTs(){return this.event.origin_server_ts}getDate(){return this.event.origin_server_ts?new Date(this.event.origin_server_ts):null}getDetails(){var e=this.getRoomId();if(e){var n;return"id=".concat(this.getId()," type=").concat(this.getWireType()," sender=").concat(this.getSender()," room=").concat(e," ts=").concat((n=this.getDate())===null||n===void 0?void 0:n.toISOString())}else{var r=this.getContent()[WD];return"msgid=".concat(r," type=").concat(this.getWireType()," sender=").concat(this.getSender())}}getOriginalContent(){var e;if(this._localRedactionEvent)return{};if(this.clearEvent){var n;return(n=this.clearEvent.content)!==null&&n!==void 0?n:{}}return(e=this.event.content)!==null&&e!==void 0?e:{}}getContent(){if(this._localRedactionEvent)return{};if(this._replacingEvent){var e;return(e=this._replacingEvent.getContent()["m.new_content"])!==null&&e!==void 0?e:{}}else return this.getOriginalContent()}getWireContent(){return this.event.content||{}}get threadRootId(){var e;if(!this.isState()){var n=(e=this.getWireContent())===null||e===void 0?void 0:e["m.relates_to"];if((n==null?void 0:n.rel_type)===hr.name)return n.event_id;if(this.thread)return this.thread.id;if(this.threadId!==void 0)return this.threadId;var r=this.getUnsigned();if(typeof r[Sp.name]=="string")return r[Sp.name]}}get isThreadRoot(){if(this.isState())return!1;var e=this.getServerAggregatedRelation(hr.name);return!!e||this.threadRootId===this.getId()}get replyEventId(){var e;return(e=this.getWireContent()["m.relates_to"])===null||e===void 0||(e=e["m.in_reply_to"])===null||e===void 0?void 0:e.event_id}get relationEventId(){var e;return(e=this.getWireContent())===null||e===void 0||(e=e["m.relates_to"])===null||e===void 0?void 0:e.event_id}getPrevContent(){return this.getUnsigned().prev_content||{}}getDirectionalContent(){return this.forwardLooking?this.getContent():this.getPrevContent()}getAge(){return this.getUnsigned().age}getLocalAge(){return Date.now()-this.localTimestamp}getStateKey(){return this.event.state_key}isState(){return this.event.state_key!==void 0}getMembershipAtEvent(){var e=this.getUnsigned();return Wk.findIn(e)}makeEncrypted(e,n,r,o){this.clearEvent={type:this.event.type,content:this.event.content},this.event.type=e,this.event.content=n,this.senderCurve25519Key=r,this.claimedEd25519Key=o}isBeingDecrypted(){return this.decryptionPromise!=null}getDecryptionPromise(){return this.decryptionPromise}isDecryptionFailure(){return this._decryptionFailureReason!==null}get decryptionFailureReason(){return this._decryptionFailureReason}get isEncryptedDisabledForUnverifiedDevices(){return this.decryptionFailureReason===ox.MEGOLM_KEY_WITHHELD_FOR_UNVERIFIED_DEVICE}shouldAttemptDecryption(){return!(this.isRedacted()||this.isBeingDecrypted()||this.clearEvent||!this.isEncrypted())}attemptDecryption(e){var n=arguments,r=this;return Z(function*(){var o=n.length>1&&n[1]!==void 0?n[1]:{};if(!r.isEncrypted())throw new Error("Attempt to decrypt event which isn't encrypted");var i=r.clearEvent&&!r.isDecryptionFailure(),s=o.forceRedecryptIfUntrusted&&r.isKeySourceUntrusted();if(i&&!s)throw new Error("Attempt to decrypt event which has already been decrypted");return r.decryptionPromise?(Y.log("Event ".concat(r.getId()," already being decrypted; queueing a retry")),r.retryDecryption=!0,r.decryptionPromise):(r.decryptionPromise=r.decryptionLoop(e,o),r.decryptionPromise)})()}getKeyRequestRecipients(e){var n=[{userId:e,deviceId:"*"}];return n}decryptionLoop(e){var n=arguments,r=this;return Z(function*(){var o=n.length>1&&n[1]!==void 0?n[1]:{};for(yield Promise.resolve();;){r.retryDecryption=!1;var i=void 0;try{var s=yield e.decryptEvent(r);o.isRetry===!0&&Y.info("Decrypted event on retry (".concat(r.getDetails(),")")),r.setClearData(s),r._decryptionFailureReason=null}catch(l){var u=l instanceof rx?l.detailedString:String(l);if(i=l,r.retryDecryption){Y.log("Error decrypting event (".concat(r.getDetails(),"), but retrying: ").concat(u));continue}Y.warn("Error decrypting event (".concat(r.getDetails(),"): ").concat(u)),r.setClearDataForDecryptionFailure(String(l)),r._decryptionFailureReason=l instanceof rx?l.code:ox.UNKNOWN_ERROR}r.decryptionPromise=null,r.retryDecryption=!1,r.setPushDetails(),o.emit!==!1&&r.emit(Un.Decrypted,r,i);return}})()}setClearData(e){var n,r;this.clearEvent=e.clearEvent,this.senderCurve25519Key=(n=e.senderCurve25519Key)!==null&&n!==void 0?n:null,this.claimedEd25519Key=(r=e.claimedEd25519Key)!==null&&r!==void 0?r:null,this.forwardingCurve25519KeyChain=e.forwardingCurve25519KeyChain||[],this.untrusted=e.untrusted||!1,this.invalidateExtensibleEvent()}setClearDataForDecryptionFailure(e){this.clearEvent={type:Ce.RoomMessage,content:{msgtype:"m.bad.encrypted",body:"** Unable to decrypt: ".concat(e," **")}},this.senderCurve25519Key=null,this.claimedEd25519Key=null,this.forwardingCurve25519KeyChain=[],this.untrusted=!1,this.invalidateExtensibleEvent()}getClearContent(){return this.clearEvent?this.clearEvent.content:null}isEncrypted(){return!this.isState()&&this.event.type===Ce.RoomMessageEncrypted}getSenderKey(){return this.senderCurve25519Key}getKeysClaimed(){return this.claimedEd25519Key?{ed25519:this.claimedEd25519Key}:{}}getClaimedEd25519Key(){return this.claimedEd25519Key}getForwardingCurve25519KeyChain(){return this.forwardingCurve25519KeyChain}isKeySourceUntrusted(){return!!this.untrusted}getUnsigned(){return this.event.unsigned||{}}setUnsigned(e){this.event.unsigned=e}unmarkLocallyRedacted(){var e=this._localRedactionEvent;return this._localRedactionEvent=null,this.event.unsigned&&(this.event.unsigned.redacted_because=void 0),!!e}markLocallyRedacted(e){this._localRedactionEvent||(this.emit(Un.BeforeRedaction,this,e),this._localRedactionEvent=e,this.event.unsigned||(this.event.unsigned={}),this.event.unsigned.redacted_because=e.event)}applyVisibilityEvent(e){var n,r,o=(n=e==null?void 0:e.visible)!==null&&n!==void 0?n:!0,i=(r=e==null?void 0:e.reason)!==null&&r!==void 0?r:null,s=!1;(this.visibility.visible!==o||!this.visibility.visible&&this.visibility.reason!==i)&&(s=!0),s&&(o?this.visibility=k5:this.visibility=Object.freeze({visible:!1,reason:i}),this.emit(Un.VisibilityChange,this,o))}messageVisibility(){return this.visibility}makeRedacted(e,n){if(!e.event)throw new Error("invalid redactionEvent in makeRedacted");this._localRedactionEvent=null,this.emit(Un.BeforeRedaction,this,e),this._replacingEvent=null,this.event.unsigned||(this.event.unsigned={}),this.event.unsigned.redacted_because=e.event;for(var r in this.event)this.event.hasOwnProperty(r)&&!Sge.has(r)&&delete this.event[r];this.isEncrypted()&&(this.clearEvent=void 0);var o=this.getType()in gq?gq[this.getType()]:{},i=this.getContent();for(var s in i)i.hasOwnProperty(s)&&!o[s]&&delete i[s];!this.isThreadRoot&&this.threadRootId&&this.threadRootId!==this.getId()&&(this.moveAllRelatedToMainTimeline(n),e.moveToMainTimeline(n)),this.invalidateExtensibleEvent()}moveAllRelatedToMainTimeline(e){var n=this.thread;if(this.moveToMainTimeline(e),n)for(var r of n.events){var o;((o=r.getRelation())===null||o===void 0?void 0:o.event_id)===this.getId()&&r.moveAllRelatedToMainTimeline(e)}}moveToMainTimeline(e){var n;(n=this.thread)===null||n===void 0||n.timelineSet.removeEvent(this.getId()),this.setThread(void 0);var r=e.getLiveTimeline();r.getTimelineSet().insertEventIntoTimeline(this,r,r.getState(it.FORWARDS),!1)}isRedacted(){return!!this.getUnsigned().redacted_because}isRedaction(){return this.getType()===Ce.RoomRedaction}asVisibilityChange(){if(!Qc.matches(this.getType()))return null;var e=this.getRelation();if(!e||e.rel_type!="m.reference")return null;var n=e.event_id;if(!n)return null;var r=this.getWireContent(),o=!!r.visible,i=r.reason;return i&&typeof i!="string"?null:{visible:o,reason:i,eventId:n}}isVisibilityEvent(){return Qc.matches(this.getType())}getRedactionEvent(){var e,n;if(!this.isRedacted())return null;if((e=this.clearEvent)!==null&&e!==void 0&&e.unsigned){var r,o;return(r=(o=this.clearEvent)===null||o===void 0?void 0:o.unsigned.redacted_because)!==null&&r!==void 0?r:null}else return(n=this.event.unsigned)!==null&&n!==void 0&&n.redacted_because?this.event.unsigned.redacted_because:{}}getPushActions(){return this.pushDetails.actions||null}getPushDetails(){return this.pushDetails}setPushDetails(e,n){this.pushDetails={actions:e,rule:n}}handleRemoteEcho(e){var n,r=this.getUnsigned(),o=this.getId();this.event=e,r.redacted_because&&(this.event.unsigned||(this.event.unsigned={}),this.event.unsigned.redacted_because=r.redacted_because),this.setStatus(null),this.getId()!==o&&this.emit(Un.LocalEventIdReplaced,this),this.localTimestamp=Date.now()-((n=this.getAge())!==null&&n!==void 0?n:0)}isSending(){return!!this.status}setStatus(e){this.status=e,this.emit(Un.Status,this,e)}replaceLocalEventId(e){this.event.event_id=e,this.emit(Un.LocalEventIdReplaced,this)}isRelation(e){var n,r=(n=this.getWireContent())===null||n===void 0?void 0:n["m.relates_to"];return this.isState()&&r!=null&&r.rel_type&&[Pn.Replace,Pn.Thread].includes(r.rel_type)?!1:!!(r!=null&&r.rel_type&&r.event_id&&(!e||r.rel_type===e))}getRelation(){var e;return this.isRelation()&&(e=this.getWireContent()["m.relates_to"])!==null&&e!==void 0?e:null}makeReplaced(e){this.isRedacted()&&e||this.isState()||this._replacingEvent!==e&&(this._replacingEvent=e??null,this.emit(Un.Replaced,this),this.invalidateExtensibleEvent())}getAssociatedStatus(){return this._replacingEvent?this._replacingEvent.status:this._localRedactionEvent?this._localRedactionEvent.status:this.status}getServerAggregatedRelation(e){var n;return(n=this.getUnsigned()["m.relations"])===null||n===void 0?void 0:n[e]}replacingEventId(){var e=this.getServerAggregatedRelation(Pn.Replace);if(e)return e.event_id;if(this._replacingEvent)return this._replacingEvent.getId()}replacingEvent(){return this._replacingEvent}replacingEventDate(){var e=this.getServerAggregatedRelation(Pn.Replace);if(e){var n=e.origin_server_ts;if(Number.isFinite(n))return new Date(n)}else if(this._replacingEvent){var r;return(r=this._replacingEvent.getDate())!==null&&r!==void 0?r:void 0}}localRedactionEvent(){return this._localRedactionEvent}getAssociatedId(){var e=this.getRelation();if(this.replyEventId)return this.replyEventId;if(e)return e.event_id;if(this.isRedaction())return this.event.redacts}hasAssociation(){return!!this.getAssociatedId()}updateAssociatedId(e){var n=this.getRelation();n?n.event_id=e:this.isRedaction()&&(this.event.redacts=e)}flagCancelled(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this._isCancelled=e}isCancelled(){return this._isCancelled}toSnapshot(){var e=new ii(JSON.parse(JSON.stringify(this.event)));for(var[n,r]of Object.entries(this))n!=="event"&&(e[n]=r);return e}isEquivalentTo(e){if(!e)return!1;if(e===this)return!0;var n=Rk(this.event),r=Rk(e.event);return JSON.stringify(n)===JSON.stringify(r)}toJSON(){var e=this.getEffectiveEvent();return this.isEncrypted()?{decrypted:e,encrypted:this.event}:e}setTxnId(e){this.txnId=e}getTxnId(){return this.txnId}setThread(e){this.isState()||(this.thread&&this.reEmitter.stopReEmitting(this.thread,[ji.Update]),this.thread=e,this.setThreadId(e==null?void 0:e.id),e&&this.reEmitter.reEmit(e,[ji.Update]))}getThread(){return this.thread}setThreadId(e){this.threadId=e}}var Sge=new Set(["event_id","type","room_id","user_id","sender","state_key","prev_state","content","unsigned","origin_server_ts"]),gq={[Ce.RoomMember]:{membership:1},[Ce.RoomJoinRules]:{join_rule:1},[Ce.RoomPowerLevels]:{ban:1,events:1,events_default:1,kick:1,redact:1,state_default:1,users:1,users_default:1}},_a=function(t){return t[t.NotStarted=0]="NotStarted",t[t.InProgress=1]="InProgress",t[t.Finished=2]="Finished",t}(_a||{}),Zt=function(t){return t.Events="RoomState.events",t.Members="RoomState.members",t.NewMember="RoomState.newMember",t.Update="RoomState.update",t.BeaconLiveness="RoomState.BeaconLiveness",t.Marker="RoomState.Marker",t}({});class lf extends Cr{constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{status:_a.NotStarted};super(),this.roomId=e,this.oobMemberFlags=n,I(this,"reEmitter",new x1(this)),I(this,"sentinels",{}),I(this,"displayNameToUserIds",new Map),I(this,"userIdsToDisplayNames",{}),I(this,"tokenToInvite",{}),I(this,"joinedMemberCount",null),I(this,"summaryJoinedMemberCount",null),I(this,"invitedMemberCount",null),I(this,"summaryInvitedMemberCount",null),I(this,"modified",-1),I(this,"members",{}),I(this,"events",new Map),I(this,"paginationToken",null),I(this,"beacons",new Map),I(this,"_liveBeaconIds",[]),this.updateModifiedTime()}getJoinedMemberCount(){return this.summaryJoinedMemberCount!==null?this.summaryJoinedMemberCount:(this.joinedMemberCount===null&&(this.joinedMemberCount=this.getMembers().reduce((e,n)=>n.membership===an.Join?e+1:e,0)),this.joinedMemberCount)}setJoinedMemberCount(e){this.summaryJoinedMemberCount=e}getInvitedMemberCount(){return this.summaryInvitedMemberCount!==null?this.summaryInvitedMemberCount:(this.invitedMemberCount===null&&(this.invitedMemberCount=this.getMembers().reduce((e,n)=>n.membership===an.Invite?e+1:e,0)),this.invitedMemberCount)}setInvitedMemberCount(e){this.summaryInvitedMemberCount=e}getMembers(){return Object.values(this.members)}getMembersExcept(e){return this.getMembers().filter(n=>!e.includes(n.userId))}getMember(e){return this.members[e]||null}getSentinelMember(e){if(!e)return null;var n=this.sentinels[e];if(n===void 0){n=new jp(this.roomId,e);var r=this.members[e];r!=null&&r.events.member&&n.setMembershipEvent(r.events.member,this),this.sentinels[e]=n}return n}getStateEvents(e,n){if(!this.events.has(e))return n===void 0?[]:null;if(n===void 0)return Array.from(this.events.get(e).values());var r=this.events.get(e).get(n);return r||null}get hasLiveBeacons(){var e;return!!((e=this.liveBeaconIds)!==null&&e!==void 0&&e.length)}get liveBeaconIds(){return this._liveBeaconIds}clone(){var e=new lf(this.roomId,this.oobMemberFlags),n=this.oobMemberFlags.status;return this.oobMemberFlags.status=_a.NotStarted,Array.from(this.events.values()).forEach(r=>{e.setStateEvents(Array.from(r.values()))}),this.oobMemberFlags.status=n,this.summaryInvitedMemberCount!==null&&e.setInvitedMemberCount(this.getInvitedMemberCount()),this.summaryJoinedMemberCount!==null&&e.setJoinedMemberCount(this.getJoinedMemberCount()),this.oobMemberFlags.status==_a.Finished&&this.getMembers().forEach(r=>{if(r.isOutOfBand()){var o;(o=e.getMember(r.userId))===null||o===void 0||o.markOutOfBand()}}),e}setUnknownStateEvents(e){var n=e.filter(r=>!this.events.has(r.getType())||!this.events.get(r.getType()).has(r.getStateKey()));this.setStateEvents(n)}setStateEvents(e,n){this.updateModifiedTime(),e.forEach(r=>{if(!(r.getRoomId()!==this.roomId||!r.isState())){J9.matches(r.getType())&&this.setBeacon(r);var o=this.getStateEventMatching(r);if(this.setStateEvent(r),r.getType()===Ce.RoomMember){var i;this.updateDisplayNameCache(r.getStateKey(),(i=r.getContent().displayname)!==null&&i!==void 0?i:""),this.updateThirdPartyTokenCache(r)}this.emit(Zt.Events,r,this,o)}}),this.onBeaconLivenessChange(),e.forEach(r=>{if(!(r.getRoomId()!==this.roomId||!r.isState()))if(r.getType()===Ce.RoomMember){var o=r.getStateKey();(r.getContent().membership===an.Leave||r.getContent().membership===an.Ban)&&(r.getContent().avatar_url=r.getContent().avatar_url||r.getPrevContent().avatar_url,r.getContent().displayname=r.getContent().displayname||r.getPrevContent().displayname);var i=this.getOrCreateMember(o,r);i.setMembershipEvent(r,this),this.updateMember(i),this.emit(Zt.Members,r,this,i)}else if(r.getType()===Ce.RoomPowerLevels){if(r.getStateKey()!=="")return;var s=Object.values(this.members);s.forEach(u=>{var l=u.getLastModifiedTime();u.setPowerLevelEvent(r),l!==u.getLastModifiedTime()&&this.emit(Zt.Members,r,this,u)}),this.sentinels={}}else qk.matches(r.getType())&&this.emit(Zt.Marker,r,n)}),this.emit(Zt.Update,this)}processBeaconEvents(e,n){var r=this;return Z(function*(){if(!(!e.length||!r.beacons.size)){var o=[...r.beacons.values()].reduce((c,d)=>(c[d.beaconInfoId]=d,c),{}),i=(c,d)=>{if(X9.matches(d.getType())){var F=o[c];F&&F.addLocations([d])}},s=function*(c){var d,F=(d=c.getRelation())===null||d===void 0?void 0:d.event_id;if(!F||!o[F])return{v:void 0};if(!X9.matches(c.getType())&&!c.isEncrypted())return{v:void 0};try{yield n.decryptEventIfNeeded(c),i(F,c)}catch{c.isDecryptionFailure()&&c.once(Un.Decrypted,Z(function*(){i(F,c)}))}},u;for(var l of e)if(u=yield*s(l),u)return u.v}})()}getOrCreateMember(e,n){var r=this.members[e];return r||(r=new jp(this.roomId,e),this.members[e]=r,this.emit(Zt.NewMember,n,this,r)),r}setStateEvent(e){this.events.has(e.getType())||this.events.set(e.getType(),new Map),this.events.get(e.getType()).set(e.getStateKey(),e)}setBeacon(e){var n=yb(e);if(this.beacons.has(n)){var r=this.beacons.get(n);if(e.isRedacted()){var o;r.beaconInfoId===((o=e.getRedactionEvent())===null||o===void 0?void 0:o.redacts)&&(r.destroy(),this.beacons.delete(n));return}return r.update(e)}if(!e.isRedacted()){var i=new bU(e);this.reEmitter.reEmit(i,[Ar.New,Ar.Update,Ar.Destroy,Ar.LivenessChange]),this.emit(Ar.New,e,i),i.on(Ar.LivenessChange,this.onBeaconLivenessChange.bind(this)),i.on(Ar.Destroy,this.onBeaconLivenessChange.bind(this)),this.beacons.set(i.identifier,i)}}onBeaconLivenessChange(){this._liveBeaconIds=Array.from(this.beacons.values()).filter(e=>e.isLive).map(e=>e.identifier),this.emit(Zt.BeaconLiveness,this,this.hasLiveBeacons)}getStateEventMatching(e){var n,r;return(n=(r=this.events.get(e.getType()))===null||r===void 0?void 0:r.get(e.getStateKey()))!==null&&n!==void 0?n:null}updateMember(e){var n=this.getStateEvents(Ce.RoomPowerLevels,"");n&&e.setPowerLevelEvent(n),delete this.sentinels[e.userId],this.members[e.userId]=e,this.joinedMemberCount=null,this.invitedMemberCount=null}needsOutOfBandMembers(){return this.oobMemberFlags.status===_a.NotStarted}outOfBandMembersReady(){return this.oobMemberFlags.status===_a.Finished}markOutOfBandMembersStarted(){this.oobMemberFlags.status===_a.NotStarted&&(this.oobMemberFlags.status=_a.InProgress)}markOutOfBandMembersFailed(){this.oobMemberFlags.status===_a.InProgress&&(this.oobMemberFlags.status=_a.NotStarted)}clearOutOfBandMembers(){var e=0;Object.keys(this.members).forEach(n=>{var r=this.members[n];r.isOutOfBand()&&(++e,delete this.members[n])}),Y.log("LL: RoomState removed ".concat(e," members...")),this.oobMemberFlags.status=_a.NotStarted}setOutOfBandMembers(e){Y.log("LL: RoomState about to set ".concat(e.length," OOB members ...")),this.oobMemberFlags.status===_a.InProgress&&(Y.log("LL: RoomState put in finished state ..."),this.oobMemberFlags.status=_a.Finished,e.forEach(n=>this.setOutOfBandMember(n)),this.emit(Zt.Update,this))}setOutOfBandMember(e){if(e.getType()===Ce.RoomMember){var n=e.getStateKey(),r=this.getMember(n);if(!(r&&!r.isOutOfBand())){var o=this.getOrCreateMember(n,e);o.setMembershipEvent(e,this),o.markOutOfBand(),this.updateDisplayNameCache(o.userId,o.name),this.setStateEvent(e),this.updateMember(o),this.emit(Zt.Members,e,this,o)}}}setTypingEvent(e){Object.values(this.members).forEach(function(n){n.setTypingEvent(e)})}getInviteForThreePidToken(e){return this.tokenToInvite[e]||null}updateModifiedTime(){this.modified=Date.now()}getLastModifiedTime(){return this.modified}getUserIdsWithDisplayName(e){var n;return(n=this.displayNameToUserIds.get(J1(e)))!==null&&n!==void 0?n:[]}maySendRedactionForEvent(e,n){var r=this.getMember(n);if(!r||r.membership===an.Leave||e.status||e.isRedacted())return!1;var o=this.maySendEvent(Ce.RoomRedaction,n);return o?e.getSender()===n?!0:this.hasSufficientPowerLevelFor("redact",r.powerLevel):!1}hasSufficientPowerLevelFor(e,n){var r=this.getStateEvents(Ce.RoomPowerLevels,""),o={};r&&(o=r.getContent());var i=50;return XN(o[e])&&(i=o[e]),n>=i}maySendMessage(e){return this.maySendEventOfType(Ce.RoomMessage,e,!1)}maySendEvent(e,n){return this.maySendEventOfType(e,n,!1)}mayClientSendStateEvent(e,n){return n.isGuest()||!n.credentials.userId?!1:this.maySendStateEvent(e,n.credentials.userId)}maySendStateEvent(e,n){return this.maySendEventOfType(e,n,!0)}maySendEventOfType(e,n,r){var o=this.getStateEvents(Ce.RoomPowerLevels,""),i,s={},u=0,l=0,c=0;if(o){i=o.getContent(),s=i.events||{},Number.isSafeInteger(i.state_default)?u=i.state_default:u=50;var d=i.users&&i.users[n];Number.isSafeInteger(d)?c=d:Number.isSafeInteger(i.users_default)&&(c=i.users_default),Number.isSafeInteger(i.events_default)&&(l=i.events_default)}var F=r?u:l;return Number.isSafeInteger(s[e])&&(F=s[e]),c>=F}mayTriggerNotifOfType(e,n){var r=this.getMember(n);if(!r)return!1;var o=this.getStateEvents(Ce.RoomPowerLevels,""),i=50;return o&&o.getContent()&&o.getContent().notifications&&XN(o.getContent().notifications[e])&&(i=o.getContent().notifications[e]),r.powerLevel>=i}getJoinRule(){var e,n=this.getStateEvents(Ce.RoomJoinRules,""),r=(e=n==null?void 0:n.getContent())!==null&&e!==void 0?e:{};return r.join_rule||un.Invite}getHistoryVisibility(){var e,n=this.getStateEvents(Ce.RoomHistoryVisibility,""),r=(e=n==null?void 0:n.getContent())!==null&&e!==void 0?e:{};return r.history_visibility||zi.Shared}getGuestAccess(){var e,n=this.getStateEvents(Ce.RoomGuestAccess,""),r=(e=n==null?void 0:n.getContent())!==null&&e!==void 0?e:{};return r.guest_access||KF.Forbidden}findPredecessor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(e){var n=this.getStateEvents(Ce.RoomPredecessor,"");if(n){var r=n.getContent(),o=r.predecessor_room_id,i=r.last_known_event_id;typeof i!="string"&&(i=void 0);var s=r.via_servers;if(Array.isArray(s)||(s=void 0),typeof o=="string")return{roomId:o,eventId:i,viaServers:s}}}var u=this.getStateEvents(Ce.RoomCreate,"");if(u){var l=u.getContent().predecessor;if(l){var c=l.room_id;if(typeof c=="string"){var d=l.event_id;return(typeof d!="string"||d==="")&&(d=void 0),{roomId:c,eventId:d}}}}return null}updateThirdPartyTokenCache(e){if(e.getContent().third_party_invite){var n=(e.getContent().third_party_invite.signed||{}).token;if(n){var r=this.getStateEvents(Ce.RoomThirdPartyInvite,n);r&&(this.tokenToInvite[n]=e)}}}updateDisplayNameCache(e,n){var r=this.userIdsToDisplayNames[e];if(delete this.userIdsToDisplayNames[e],r){var o=J1(r),i=this.displayNameToUserIds.get(o);if(i){var s=i.filter(d=>d!==e);this.displayNameToUserIds.set(o,s)}}this.userIdsToDisplayNames[e]=n;var u=n&&J1(n);if(u){var l,c=(l=this.displayNameToUserIds.get(u))!==null&&l!==void 0?l:[];c.push(e),this.displayNameToUserIds.set(u,c)}}}function pq(t){var e=typeof t=="string"&&!!t&&t!=="undefined"&&t!=="null";return e||typeof t=="number"}class S5{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};I(this,"rooms",{}),I(this,"users",{}),I(this,"syncToken",null),I(this,"filters",new eu(()=>new Map)),I(this,"accountData",new Map),I(this,"localStorage",void 0),I(this,"oobMembers",new Map),I(this,"pendingEvents",{}),I(this,"clientOptions",void 0),I(this,"pendingToDeviceBatches",[]),I(this,"nextToDeviceBatchId",0),I(this,"createUser",void 0),I(this,"onRoomMember",(n,r,o)=>{var i;if(o.membership!==an.Invite){var s=this.users[o.userId]||((i=this.createUser)===null||i===void 0?void 0:i.call(this,o.userId));o.name&&(s.setDisplayName(o.name),o.events.member&&s.setRawDisplayName(o.events.member.getDirectionalContent().displayname)),o.events.member&&o.events.member.getContent().avatar_url&&s.setAvatarUrl(o.events.member.getContent().avatar_url),this.users[s.userId]=s}}),this.localStorage=e.localStorage}getSyncToken(){return this.syncToken}isNewlyCreated(){return Promise.resolve(!0)}setSyncToken(e){this.syncToken=e}storeRoom(e){this.rooms[e.roomId]=e,e.currentState.on(Zt.Members,this.onRoomMember),e.currentState.getMembers().forEach(n=>{this.onRoomMember(null,e.currentState,n)})}setUserCreator(e){this.createUser=e}getRoom(e){return this.rooms[e]||null}getRooms(){return Object.values(this.rooms)}removeRoom(e){this.rooms[e]&&this.rooms[e].currentState.removeListener(Zt.Members,this.onRoomMember),delete this.rooms[e]}getRoomSummaries(){return Object.values(this.rooms).map(function(e){return e.summary})}storeUser(e){this.users[e.userId]=e}getUser(e){return this.users[e]||null}getUsers(){return Object.values(this.users)}scrollback(e,n){return[]}storeEvents(e,n,r,o){}storeFilter(e){!(e!=null&&e.userId)||!(e!=null&&e.filterId)||this.filters.getOrCreate(e.userId).set(e.filterId,e)}getFilter(e,n){var r;return((r=this.filters.get(e))===null||r===void 0?void 0:r.get(n))||null}getFilterIdByName(e){if(!this.localStorage)return null;var n="mxjssdk_memory_filter_"+e;try{var r=this.localStorage.getItem(n);if(pq(r))return r}catch{}return null}setFilterIdByName(e,n){if(this.localStorage){var r="mxjssdk_memory_filter_"+e;try{pq(n)?this.localStorage.setItem(r,n):this.localStorage.removeItem(r)}catch{}}}storeAccountDataEvents(e){e.forEach(n=>{var r=!Object.keys(n.getContent()).length;r?this.accountData.delete(n.getType()):this.accountData.set(n.getType(),n)})}getAccountData(e){return this.accountData.get(e)}setSyncData(e){return Promise.resolve()}wantsSave(){return!1}save(e){return Promise.resolve()}startup(){return Promise.resolve()}getSavedSync(){return Promise.resolve(null)}getSavedSyncToken(){return Promise.resolve(null)}deleteAllData(){return this.rooms={},this.users={},this.syncToken=null,this.filters=new eu(()=>new Map),this.accountData=new Map,Promise.resolve()}getOutOfBandMembers(e){return Promise.resolve(this.oobMembers.get(e)||null)}setOutOfBandMembers(e,n){return this.oobMembers.set(e,n),Promise.resolve()}clearOutOfBandMembers(e){return this.oobMembers.delete(e),Promise.resolve()}getClientOptions(){return Promise.resolve(this.clientOptions)}storeClientOptions(e){return this.clientOptions=Object.assign({},e),Promise.resolve()}getPendingEvents(e){var n=this;return Z(function*(){var r;return(r=n.pendingEvents[e])!==null&&r!==void 0?r:[]})()}setPendingEvents(e,n){var r=this;return Z(function*(){r.pendingEvents[e]=n})()}saveToDeviceBatches(e){for(var n of e)this.pendingToDeviceBatches.push({id:this.nextToDeviceBatchId++,eventType:n.eventType,txnId:n.txnId,batch:n.batch});return Promise.resolve()}getOldestToDeviceBatch(){var e=this;return Z(function*(){return e.pendingToDeviceBatches.length===0?null:e.pendingToDeviceBatches[0]})()}removeToDeviceBatch(e){return this.pendingToDeviceBatches=this.pendingToDeviceBatches.filter(n=>n.id!==e),Promise.resolve()}destroy(){return Z(function*(){})()}}var fq={},Dh={},gh={};Object.defineProperty(gh,"__esModule",{value:!0}),gh.WidgetApiDirection=void 0,gh.invertedDirection=jge;var cf=function(t){return t.ToWidget="toWidget",t.FromWidget="fromWidget",t}({});gh.WidgetApiDirection=cf;function jge(t){if(t===cf.ToWidget)return cf.FromWidget;if(t===cf.FromWidget)return cf.ToWidget;throw new Error("Invalid direction")}var Cu={};Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.UnstableApiVersion=Cu.MatrixApiVersion=Cu.CurrentApiVersions=void 0;var j5=function(t){return t.Prerelease1="0.0.1",t.Prerelease2="0.0.2",t}({});Cu.MatrixApiVersion=j5;var va=function(t){return t.MSC2762="org.matrix.msc2762",t.MSC2762_UPDATE_STATE="org.matrix.msc2762_update_state",t.MSC2871="org.matrix.msc2871",t.MSC2873="org.matrix.msc2873",t.MSC2931="org.matrix.msc2931",t.MSC2974="org.matrix.msc2974",t.MSC2876="org.matrix.msc2876",t.MSC3819="org.matrix.msc3819",t.MSC3846="town.robin.msc3846",t.MSC3869="org.matrix.msc3869",t.MSC3973="org.matrix.msc3973",t.MSC4039="org.matrix.msc4039",t}({});Cu.UnstableApiVersion=va;var Bge=[j5.Prerelease1,j5.Prerelease2,va.MSC2762,va.MSC2762_UPDATE_STATE,va.MSC2871,va.MSC2873,va.MSC2931,va.MSC2974,va.MSC2876,va.MSC3819,va.MSC3846,va.MSC3869,va.MSC3973,va.MSC4039];Cu.CurrentApiVersions=Bge;var df={},_q;function B5(){if(_q)return df;_q=1,Object.defineProperty(df,"__esModule",{value:!0}),df.PostmessageTransport=void 0;var t=wp,e=oC(),n=["message"];function r(C){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},r(C)}function o(C,S){if(C==null)return{};var w=i(C,S),A,O;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(C);for(O=0;O<j.length;O++)A=j[O],!(S.indexOf(A)>=0)&&Object.prototype.propertyIsEnumerable.call(C,A)&&(w[A]=C[A])}return w}function i(C,S){if(C==null)return{};var w={},A=Object.keys(C),O,j;for(j=0;j<A.length;j++)O=A[j],!(S.indexOf(O)>=0)&&(w[O]=C[O]);return w}function s(C,S){var w=Object.keys(C);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(C);S&&(A=A.filter(function(O){return Object.getOwnPropertyDescriptor(C,O).enumerable})),w.push.apply(w,A)}return w}function u(C){for(var S=1;S<arguments.length;S++){var w=arguments[S]!=null?arguments[S]:{};S%2?s(Object(w),!0).forEach(function(A){v(C,A,w[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(w)):s(Object(w)).forEach(function(A){Object.defineProperty(C,A,Object.getOwnPropertyDescriptor(w,A))})}return C}function l(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}function c(C,S){for(var w=0;w<S.length;w++){var A=S[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(C,E(A.key),A)}}function d(C,S,w){return c(C.prototype,S),Object.defineProperty(C,"prototype",{writable:!1}),C}function F(C,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(S&&S.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),S&&h(C,S)}function h(C,S){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,A){return w.__proto__=A,w},h(C,S)}function m(C){var S=p();return function(){var w=_(C),A;if(S){var O=_(this).constructor;A=Reflect.construct(w,arguments,O)}else A=w.apply(this,arguments);return D(this,A)}}function D(C,S){if(S&&(r(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g(C)}function g(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}function p(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _(C){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},_(C)}function v(C,S,w){return S=E(S),S in C?Object.defineProperty(C,S,{value:w,enumerable:!0,configurable:!0,writable:!0}):C[S]=w,C}function E(C){var S=b(C,"string");return r(S)==="symbol"?S:String(S)}function b(C,S){if(r(C)!=="object"||C===null)return C;var w=C[Symbol.toPrimitive];if(w!==void 0){var A=w.call(C,S||"default");if(r(A)!=="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(C)}var k=function(C){F(w,C);var S=m(w);function w(A,O,j,R){var M;return l(this,w),M=S.call(this),M.sendDirection=A,M.initialWidgetId=O,M.transportWindow=j,M.inboundWindow=R,v(g(M),"strictOriginCheck",!1),v(g(M),"targetOrigin","*"),v(g(M),"timeoutSeconds",10),v(g(M),"_ready",!1),v(g(M),"_widgetId",null),v(g(M),"outboundRequests",new Map),v(g(M),"stopController",new AbortController),M._widgetId=O,M}return d(w,[{key:"ready",get:function(){return this._ready}},{key:"widgetId",get:function(){return this._widgetId||null}},{key:"nextRequestId",get:function(){for(var A="widgetapi-".concat(Date.now()),O=0,j=A;this.outboundRequests.has(j);)j="".concat(A,"-").concat(O++);return this.outboundRequests.set(j,null),j}},{key:"sendInternal",value:function(A){console.log("[PostmessageTransport] Sending object to ".concat(this.targetOrigin,": "),A),this.transportWindow.postMessage(A,this.targetOrigin)}},{key:"reply",value:function(A,O){return this.sendInternal(u(u({},A),{},{response:O}))}},{key:"send",value:function(A,O){return this.sendComplete(A,O).then(function(j){return j.response})}},{key:"sendComplete",value:function(A,O){var j=this;if(!this.ready||!this.widgetId)return Promise.reject(new Error("Not ready or unknown widget ID"));var R={api:this.sendDirection,widgetId:this.widgetId,requestId:this.nextRequestId,action:A,data:O};return A===e.WidgetApiToWidgetAction.UpdateVisibility&&(R.visible=O.visible),new Promise(function(M,z){var T=function(ae){te(),M(ae)},P=function(ae){te(),z(ae)},L=setTimeout(function(){return P(new Error("Request timed out"))},(j.timeoutSeconds||1)*1e3),U=function(){return P(new Error("Transport stopped"))};j.stopController.signal.addEventListener("abort",U);var te=function(){j.outboundRequests.delete(R.requestId),clearTimeout(L),j.stopController.signal.removeEventListener("abort",U)};j.outboundRequests.set(R.requestId,{request:R,resolve:T,reject:P}),j.sendInternal(R)})}},{key:"start",value:function(){var A=this;this.inboundWindow.addEventListener("message",function(O){A.handleMessage(O)}),this._ready=!0}},{key:"stop",value:function(){this._ready=!1,this.stopController.abort()}},{key:"handleMessage",value:function(A){if(!this.stopController.signal.aborted&&A.data&&!(this.strictOriginCheck&&A.origin!==window.origin)){var O=A.data;if(!(!O.action||!O.requestId||!O.widgetId))if(O.response){if(O.api!==this.sendDirection)return;this.handleResponse(O)}else{var j=O;if(j.api!==(0,e.invertedDirection)(this.sendDirection))return;this.handleRequest(j)}}}},{key:"handleRequest",value:function(A){if(this.widgetId){if(this.widgetId!==A.widgetId)return}else this._widgetId=A.widgetId;this.emit("message",new CustomEvent("message",{detail:A}))}},{key:"handleResponse",value:function(A){if(A.widgetId===this.widgetId){var O=this.outboundRequests.get(A.requestId);if(O)if((0,e.isErrorResponse)(A.response)){var j=A.response.error,R=j.message,M=o(j,n);O.reject(new e.WidgetApiResponseError(R,M))}else O.resolve(A)}}}]),w}(t.EventEmitter);return df.PostmessageTransport=k,df}var md={};Object.defineProperty(md,"__esModule",{value:!0}),md.WidgetApiToWidgetAction=md.WidgetApiFromWidgetAction=void 0;var Age=function(t){return t.SupportedApiVersions="supported_api_versions",t.Capabilities="capabilities",t.NotifyCapabilities="notify_capabilities",t.ThemeChange="theme_change",t.LanguageChange="language_change",t.TakeScreenshot="screenshot",t.UpdateVisibility="visibility",t.OpenIDCredentials="openid_credentials",t.WidgetConfig="widget_config",t.CloseModalWidget="close_modal",t.ButtonClicked="button_clicked",t.SendEvent="send_event",t.SendToDevice="send_to_device",t.UpdateState="update_state",t.UpdateTurnServers="update_turn_servers",t}({});md.WidgetApiToWidgetAction=Age;var Tge=function(t){return t.SupportedApiVersions="supported_api_versions",t.ContentLoaded="content_loaded",t.SendSticker="m.sticker",t.UpdateAlwaysOnScreen="set_always_on_screen",t.GetOpenIDCredentials="get_openid",t.CloseModalWidget="close_modal",t.OpenModalWidget="open_modal",t.SetModalButtonEnabled="set_button_enabled",t.SendEvent="send_event",t.SendToDevice="send_to_device",t.WatchTurnServers="watch_turn_servers",t.UnwatchTurnServers="unwatch_turn_servers",t.BeeperReadRoomAccountData="com.beeper.read_room_account_data",t.MSC2876ReadEvents="org.matrix.msc2876.read_events",t.MSC2931Navigate="org.matrix.msc2931.navigate",t.MSC2974RenegotiateCapabilities="org.matrix.msc2974.request_capabilities",t.MSC3869ReadRelations="org.matrix.msc3869.read_relations",t.MSC3973UserDirectorySearch="org.matrix.msc3973.user_directory_search",t.MSC4039GetMediaConfigAction="org.matrix.msc4039.get_media_config",t.MSC4039UploadFileAction="org.matrix.msc4039.upload_file",t.MSC4039DownloadFileAction="org.matrix.msc4039.download_file",t.MSC4157UpdateDelayedEvent="org.matrix.msc4157.update_delayed_event",t}({});md.WidgetApiFromWidgetAction=Tge;var am={};Object.defineProperty(am,"__esModule",{value:!0}),am.OpenIDRequestState=void 0;var Ige=function(t){return t.Allowed="allowed",t.Blocked="blocked",t.PendingUserConfirmation="request",t}({});am.OpenIDRequestState=Ige;var hf={};Object.defineProperty(hf,"__esModule",{value:!0}),hf.MatrixWidgetType=void 0;var Rge=function(t){return t.Custom="m.custom",t.JitsiMeet="m.jitsi",t.Stickerpicker="m.stickerpicker",t}({});hf.MatrixWidgetType=Rge;var Ff={};Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.BuiltInModalButtonID=void 0;var Oge=function(t){return t.Close="m.close",t}({});Ff.BuiltInModalButtonID=Oge;var Eu={};Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.WidgetEventCapability=Eu.EventKind=Eu.EventDirection=void 0;function mf(t){"@babel/helpers - typeof";return mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mf(t)}function Mge(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Pge(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,u;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,u=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw u}}}}function Pge(t,e){if(t){if(typeof t=="string")return vq(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vq(t,e)}}function vq(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Lge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bq(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,zge(r.key),r)}}function Nge(t,e,n){return bq(t.prototype,e),bq(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function zge(t){var e=Uge(t,"string");return mf(e)==="symbol"?e:String(e)}function Uge(t,e){if(mf(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(mf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var ba=function(t){return t.Event="event",t.State="state_event",t.ToDevice="to_device",t.RoomAccount="room_account",t}({});Eu.EventKind=ba;var Dd=function(t){return t.Send="send",t.Receive="receive",t}({});Eu.EventDirection=Dd;var Vge=function(){function t(e,n,r,o,i){Lge(this,t),this.direction=e,this.eventType=n,this.kind=r,this.keyStr=o,this.raw=i}return Nge(t,[{key:"matchesAsStateEvent",value:function(e,n,r){return this.kind!==ba.State||this.direction!==e||this.eventType!==n?!1:this.keyStr===null||this.keyStr===r}},{key:"matchesAsToDeviceEvent",value:function(e,n){return!(this.kind!==ba.ToDevice||this.direction!==e||this.eventType!==n)}},{key:"matchesAsRoomEvent",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(this.kind!==ba.Event||this.direction!==e||this.eventType!==n)return!1;if(this.eventType==="m.room.message"){if(this.keyStr===null||this.keyStr===r)return!0}else return!0;return!1}},{key:"matchesAsRoomAccountData",value:function(e,n){return!(this.kind!==ba.RoomAccount||this.direction!==e||this.eventType!==n)}}],[{key:"forStateEvent",value:function(e,n,r){n=n.replace(/#/g,"\\#"),r=r!=null?"#".concat(r):"";var o="org.matrix.msc2762.".concat(e,".state_event:").concat(n).concat(r);return t.findEventCapabilities([o])[0]}},{key:"forToDeviceEvent",value:function(e,n){var r="org.matrix.msc3819.".concat(e,".to_device:").concat(n);return t.findEventCapabilities([r])[0]}},{key:"forRoomEvent",value:function(e,n){var r="org.matrix.msc2762.".concat(e,".event:").concat(n);return t.findEventCapabilities([r])[0]}},{key:"forRoomMessageEvent",value:function(e,n){n=n??"";var r="org.matrix.msc2762.".concat(e,".event:m.room.message#").concat(n);return t.findEventCapabilities([r])[0]}},{key:"forRoomAccountData",value:function(e,n){var r="com.beeper.capabilities.".concat(e,".room_account_data:").concat(n);return t.findEventCapabilities([r])[0]}},{key:"findEventCapabilities",value:function(e){var n=[],r=Mge(e),o;try{for(r.s();!(o=r.n()).done;){var i=o.value,s=null,u=void 0,l=null;if(i.startsWith("org.matrix.msc2762.send.event:")?(s=Dd.Send,l=ba.Event,u=i.substring(30)):i.startsWith("org.matrix.msc2762.send.state_event:")?(s=Dd.Send,l=ba.State,u=i.substring(36)):i.startsWith("org.matrix.msc3819.send.to_device:")?(s=Dd.Send,l=ba.ToDevice,u=i.substring(34)):i.startsWith("org.matrix.msc2762.receive.event:")?(s=Dd.Receive,l=ba.Event,u=i.substring(33)):i.startsWith("org.matrix.msc2762.receive.state_event:")?(s=Dd.Receive,l=ba.State,u=i.substring(39)):i.startsWith("org.matrix.msc3819.receive.to_device:")?(s=Dd.Receive,l=ba.ToDevice,u=i.substring(37)):i.startsWith("com.beeper.capabilities.receive.room_account_data:")&&(s=Dd.Receive,l=ba.RoomAccount,u=i.substring(50)),!(s===null||l===null||u===void 0)){var c=u.startsWith("m.room.message#")||l===ba.State,d=null;if(u.includes("#")&&c){var F=u.split("#"),h=F.findIndex(function(m){return!m.endsWith("\\")});u=F.slice(0,h+1).map(function(m){return m.endsWith("\\")?m.substring(0,m.length-1):m}).join("#"),d=F.slice(h+1).join("#")}n.push(new t(s,u,l,d,i))}}}catch(m){r.e(m)}finally{r.f()}return n}}]),t}();Eu.WidgetEventCapability=Vge;var sm={};Object.defineProperty(sm,"__esModule",{value:!0}),sm.Symbols=void 0;var qge=function(t){return t.AnyRoom="*",t}({});sm.Symbols=qge;var Cq;function Hge(){if(Cq)return Dh;Cq=1;function t(re){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},t(re)}Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.WidgetApiResponseError=Dh.WidgetApi=void 0;var e=wp,n=gh,r=Cu,o=B5(),i=md,s=am,u=hf,l=Ff,c=Eu,d=sm;function F(){F=function(){return re};var re={},ce=Object.prototype,K=ce.hasOwnProperty,H=Object.defineProperty||function(oe,ie,ne){oe[ie]=ne.value},q=typeof Symbol=="function"?Symbol:{},V=q.iterator||"@@iterator",X=q.asyncIterator||"@@asyncIterator",ee=q.toStringTag||"@@toStringTag";function J(oe,ie,ne){return Object.defineProperty(oe,ie,{value:ne,enumerable:!0,configurable:!0,writable:!0}),oe[ie]}try{J({},"")}catch{J=function(oe,ie,ne){return oe[ie]=ne}}function de(oe,ie,ne,me){var se=ie&&ie.prototype instanceof Ae?ie:Ae,xe=Object.create(se.prototype),ke=new B(me||[]);return H(xe,"_invoke",{value:xt(oe,ne,ke)}),xe}function ue(oe,ie,ne){try{return{type:"normal",arg:oe.call(ie,ne)}}catch(me){return{type:"throw",arg:me}}}re.wrap=de;var De={};function Ae(){}function ye(){}function He(){}var ze={};J(ze,V,function(){return this});var Ne=Object.getPrototypeOf,Oe=Ne&&Ne(Ne(N([])));Oe&&Oe!==ce&&K.call(Oe,V)&&(ze=Oe);var Ue=He.prototype=Ae.prototype=Object.create(ze);function nt(oe){["next","throw","return"].forEach(function(ie){J(oe,ie,function(ne){return this._invoke(ie,ne)})})}function _e(oe,ie){function ne(se,xe,ke,qe){var Ye=ue(oe[se],oe,xe);if(Ye.type!=="throw"){var Fn=Ye.arg,wn=Fn.value;return wn&&t(wn)=="object"&&K.call(wn,"__await")?ie.resolve(wn.__await).then(function(ve){ne("next",ve,ke,qe)},function(ve){ne("throw",ve,ke,qe)}):ie.resolve(wn).then(function(ve){Fn.value=ve,ke(Fn)},function(ve){return ne("throw",ve,ke,qe)})}qe(Ye.arg)}var me;H(this,"_invoke",{value:function(se,xe){function ke(){return new ie(function(qe,Ye){ne(se,xe,qe,Ye)})}return me=me?me.then(ke,ke):ke()}})}function xt(oe,ie,ne){var me="suspendedStart";return function(se,xe){if(me==="executing")throw new Error("Generator is already running");if(me==="completed"){if(se==="throw")throw xe;return W()}for(ne.method=se,ne.arg=xe;;){var ke=ne.delegate;if(ke){var qe=hn(ke,ne);if(qe){if(qe===De)continue;return qe}}if(ne.method==="next")ne.sent=ne._sent=ne.arg;else if(ne.method==="throw"){if(me==="suspendedStart")throw me="completed",ne.arg;ne.dispatchException(ne.arg)}else ne.method==="return"&&ne.abrupt("return",ne.arg);me="executing";var Ye=ue(oe,ie,ne);if(Ye.type==="normal"){if(me=ne.done?"completed":"suspendedYield",Ye.arg===De)continue;return{value:Ye.arg,done:ne.done}}Ye.type==="throw"&&(me="completed",ne.method="throw",ne.arg=Ye.arg)}}}function hn(oe,ie){var ne=ie.method,me=oe.iterator[ne];if(me===void 0)return ie.delegate=null,ne==="throw"&&oe.iterator.return&&(ie.method="return",ie.arg=void 0,hn(oe,ie),ie.method==="throw")||ne!=="return"&&(ie.method="throw",ie.arg=new TypeError("The iterator does not provide a '"+ne+"' method")),De;var se=ue(me,oe.iterator,ie.arg);if(se.type==="throw")return ie.method="throw",ie.arg=se.arg,ie.delegate=null,De;var xe=se.arg;return xe?xe.done?(ie[oe.resultName]=xe.value,ie.next=oe.nextLoc,ie.method!=="return"&&(ie.method="next",ie.arg=void 0),ie.delegate=null,De):xe:(ie.method="throw",ie.arg=new TypeError("iterator result is not an object"),ie.delegate=null,De)}function Ze(oe){var ie={tryLoc:oe[0]};1 in oe&&(ie.catchLoc=oe[1]),2 in oe&&(ie.finallyLoc=oe[2],ie.afterLoc=oe[3]),this.tryEntries.push(ie)}function dt(oe){var ie=oe.completion||{};ie.type="normal",delete ie.arg,oe.completion=ie}function B(oe){this.tryEntries=[{tryLoc:"root"}],oe.forEach(Ze,this),this.reset(!0)}function N(oe){if(oe){var ie=oe[V];if(ie)return ie.call(oe);if(typeof oe.next=="function")return oe;if(!isNaN(oe.length)){var ne=-1,me=function se(){for(;++ne<oe.length;)if(K.call(oe,ne))return se.value=oe[ne],se.done=!1,se;return se.value=void 0,se.done=!0,se};return me.next=me}}return{next:W}}function W(){return{value:void 0,done:!0}}return ye.prototype=He,H(Ue,"constructor",{value:He,configurable:!0}),H(He,"constructor",{value:ye,configurable:!0}),ye.displayName=J(He,ee,"GeneratorFunction"),re.isGeneratorFunction=function(oe){var ie=typeof oe=="function"&&oe.constructor;return!!ie&&(ie===ye||(ie.displayName||ie.name)==="GeneratorFunction")},re.mark=function(oe){return Object.setPrototypeOf?Object.setPrototypeOf(oe,He):(oe.__proto__=He,J(oe,ee,"GeneratorFunction")),oe.prototype=Object.create(Ue),oe},re.awrap=function(oe){return{__await:oe}},nt(_e.prototype),J(_e.prototype,X,function(){return this}),re.AsyncIterator=_e,re.async=function(oe,ie,ne,me,se){se===void 0&&(se=Promise);var xe=new _e(de(oe,ie,ne,me),se);return re.isGeneratorFunction(ie)?xe:xe.next().then(function(ke){return ke.done?ke.value:xe.next()})},nt(Ue),J(Ue,ee,"Generator"),J(Ue,V,function(){return this}),J(Ue,"toString",function(){return"[object Generator]"}),re.keys=function(oe){var ie=Object(oe),ne=[];for(var me in ie)ne.push(me);return ne.reverse(),function se(){for(;ne.length;){var xe=ne.pop();if(xe in ie)return se.value=xe,se.done=!1,se}return se.done=!0,se}},re.values=N,B.prototype={constructor:B,reset:function(oe){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(dt),!oe)for(var ie in this)ie.charAt(0)==="t"&&K.call(this,ie)&&!isNaN(+ie.slice(1))&&(this[ie]=void 0)},stop:function(){this.done=!0;var oe=this.tryEntries[0].completion;if(oe.type==="throw")throw oe.arg;return this.rval},dispatchException:function(oe){if(this.done)throw oe;var ie=this;function ne(Ye,Fn){return xe.type="throw",xe.arg=oe,ie.next=Ye,Fn&&(ie.method="next",ie.arg=void 0),!!Fn}for(var me=this.tryEntries.length-1;me>=0;--me){var se=this.tryEntries[me],xe=se.completion;if(se.tryLoc==="root")return ne("end");if(se.tryLoc<=this.prev){var ke=K.call(se,"catchLoc"),qe=K.call(se,"finallyLoc");if(ke&&qe){if(this.prev<se.catchLoc)return ne(se.catchLoc,!0);if(this.prev<se.finallyLoc)return ne(se.finallyLoc)}else if(ke){if(this.prev<se.catchLoc)return ne(se.catchLoc,!0)}else{if(!qe)throw new Error("try statement without catch or finally");if(this.prev<se.finallyLoc)return ne(se.finallyLoc)}}}},abrupt:function(oe,ie){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var me=this.tryEntries[ne];if(me.tryLoc<=this.prev&&K.call(me,"finallyLoc")&&this.prev<me.finallyLoc){var se=me;break}}se&&(oe==="break"||oe==="continue")&&se.tryLoc<=ie&&ie<=se.finallyLoc&&(se=null);var xe=se?se.completion:{};return xe.type=oe,xe.arg=ie,se?(this.method="next",this.next=se.finallyLoc,De):this.complete(xe)},complete:function(oe,ie){if(oe.type==="throw")throw oe.arg;return oe.type==="break"||oe.type==="continue"?this.next=oe.arg:oe.type==="return"?(this.rval=this.arg=oe.arg,this.method="return",this.next="end"):oe.type==="normal"&&ie&&(this.next=ie),De},finish:function(oe){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var ne=this.tryEntries[ie];if(ne.finallyLoc===oe)return this.complete(ne.completion,ne.afterLoc),dt(ne),De}},catch:function(oe){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var ne=this.tryEntries[ie];if(ne.tryLoc===oe){var me=ne.completion;if(me.type==="throw"){var se=me.arg;dt(ne)}return se}}throw new Error("illegal catch attempt")},delegateYield:function(oe,ie,ne){return this.delegate={iterator:N(oe),resultName:ie,nextLoc:ne},this.method==="next"&&(this.arg=void 0),De}},re}function h(re,ce,K,H,q,V,X){try{var ee=re[V](X),J=ee.value}catch(de){K(de);return}ee.done?ce(J):Promise.resolve(J).then(H,q)}function m(re){return function(){var ce=this,K=arguments;return new Promise(function(H,q){var V=re.apply(ce,K);function X(J){h(V,H,q,X,ee,"next",J)}function ee(J){h(V,H,q,X,ee,"throw",J)}X(void 0)})}}function D(re,ce){var K=Object.keys(re);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(re);ce&&(H=H.filter(function(q){return Object.getOwnPropertyDescriptor(re,q).enumerable})),K.push.apply(K,H)}return K}function g(re){for(var ce=1;ce<arguments.length;ce++){var K=arguments[ce]!=null?arguments[ce]:{};ce%2?D(Object(K),!0).forEach(function(H){p(re,H,K[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(re,Object.getOwnPropertyDescriptors(K)):D(Object(K)).forEach(function(H){Object.defineProperty(re,H,Object.getOwnPropertyDescriptor(K,H))})}return re}function p(re,ce,K){return ce=E(ce),ce in re?Object.defineProperty(re,ce,{value:K,enumerable:!0,configurable:!0,writable:!0}):re[ce]=K,re}function _(re,ce){for(var K=0;K<ce.length;K++){var H=ce[K];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(re,E(H.key),H)}}function v(re,ce,K){return ce&&_(re.prototype,ce),Object.defineProperty(re,"prototype",{writable:!1}),re}function E(re){var ce=b(re,"string");return t(ce)==="symbol"?ce:String(ce)}function b(re,ce){if(t(re)!=="object"||re===null)return re;var K=re[Symbol.toPrimitive];if(K!==void 0){var H=K.call(re,ce||"default");if(t(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ce==="string"?String:Number)(re)}function k(re,ce){if(!(re instanceof ce))throw new TypeError("Cannot call a class as a function")}function C(re,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");re.prototype=Object.create(ce&&ce.prototype,{constructor:{value:re,writable:!0,configurable:!0}}),Object.defineProperty(re,"prototype",{writable:!1}),ce&&z(re,ce)}function S(re){var ce=R();return function(){var K=T(re),H;if(ce){var q=T(this).constructor;H=Reflect.construct(K,arguments,q)}else H=K.apply(this,arguments);return w(this,H)}}function w(re,ce){if(ce&&(t(ce)==="object"||typeof ce=="function"))return ce;if(ce!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(re)}function A(re){if(re===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re}function O(re){var ce=typeof Map=="function"?new Map:void 0;return O=function(K){if(K===null||!M(K))return K;if(typeof K!="function")throw new TypeError("Super expression must either be null or a function");if(typeof ce<"u"){if(ce.has(K))return ce.get(K);ce.set(K,H)}function H(){return j(K,arguments,T(this).constructor)}return H.prototype=Object.create(K.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),z(H,K)},O(re)}function j(re,ce,K){return R()?j=Reflect.construct.bind():j=function(H,q,V){var X=[null];X.push.apply(X,q);var ee=Function.bind.apply(H,X),J=new ee;return V&&z(J,V.prototype),J},j.apply(null,arguments)}function R(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M(re){return Function.toString.call(re).indexOf("[native code]")!==-1}function z(re,ce){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,H){return K.__proto__=H,K},z(re,ce)}function T(re){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ce){return ce.__proto__||Object.getPrototypeOf(ce)},T(re)}function P(re){return new te(re,0)}function L(re){return function(){return new U(re.apply(this,arguments))}}function U(re){var ce,K;function H(V,X){try{var ee=re[V](X),J=ee.value,de=J instanceof te;Promise.resolve(de?J.v:J).then(function(ue){if(de){var De=V==="return"?"return":"next";if(!J.k||ue.done)return H(De,ue);ue=re[De](ue).value}q(ee.done?"return":"normal",ue)},function(ue){H("throw",ue)})}catch(ue){q("throw",ue)}}function q(V,X){switch(V){case"return":ce.resolve({value:X,done:!0});break;case"throw":ce.reject(X);break;default:ce.resolve({value:X,done:!1})}(ce=ce.next)?H(ce.key,ce.arg):K=null}this._invoke=function(V,X){return new Promise(function(ee,J){var de={key:V,arg:X,resolve:ee,reject:J,next:null};K?K=K.next=de:(ce=K=de,H(V,X))})},typeof re.return!="function"&&(this.return=void 0)}U.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},U.prototype.next=function(re){return this._invoke("next",re)},U.prototype.throw=function(re){return this._invoke("throw",re)},U.prototype.return=function(re){return this._invoke("return",re)};function te(re,ce){this.v=re,this.k=ce}var ae=function(re){C(K,re);var ce=S(K);function K(H,q){var V;return k(this,K),V=ce.call(this,H),V.data=q,V}return v(K)}(O(Error));Dh.WidgetApiResponseError=ae,ae.prototype.name=ae.name;var Fe=function(re){C(K,re);var ce=S(K);function K(){var H,q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(k(this,K),H=ce.call(this),H.clientOrigin=V,p(A(H),"transport",void 0),p(A(H),"capabilitiesFinished",!1),p(A(H),"supportsMSC2974Renegotiate",!1),p(A(H),"requestedCapabilities",[]),p(A(H),"approvedCapabilities",void 0),p(A(H),"cachedClientVersions",void 0),p(A(H),"turnServerWatchers",0),!window.parent)throw new Error("No parent window. This widget doesn't appear to be embedded properly.");return H.transport=new o.PostmessageTransport(n.WidgetApiDirection.FromWidget,q,window.parent,window),H.transport.targetOrigin=V,H.transport.on("message",H.handleMessage.bind(A(H))),H}return v(K,[{key:"hasCapability",value:function(H){return Array.isArray(this.approvedCapabilities)?this.approvedCapabilities.includes(H):this.requestedCapabilities.includes(H)}},{key:"requestCapability",value:function(H){if(this.capabilitiesFinished&&!this.supportsMSC2974Renegotiate)throw new Error("Capabilities have already been negotiated");this.requestedCapabilities.push(H)}},{key:"requestCapabilities",value:function(H){var q=this;H.forEach(function(V){return q.requestCapability(V)})}},{key:"requestCapabilityForRoomTimeline",value:function(H){this.requestCapability("org.matrix.msc2762.timeline:".concat(H))}},{key:"requestCapabilityToSendState",value:function(H,q){this.requestCapability(c.WidgetEventCapability.forStateEvent(c.EventDirection.Send,H,q).raw)}},{key:"requestCapabilityToReceiveState",value:function(H,q){this.requestCapability(c.WidgetEventCapability.forStateEvent(c.EventDirection.Receive,H,q).raw)}},{key:"requestCapabilityToSendToDevice",value:function(H){this.requestCapability(c.WidgetEventCapability.forToDeviceEvent(c.EventDirection.Send,H).raw)}},{key:"requestCapabilityToReceiveToDevice",value:function(H){this.requestCapability(c.WidgetEventCapability.forToDeviceEvent(c.EventDirection.Receive,H).raw)}},{key:"requestCapabilityToSendEvent",value:function(H){this.requestCapability(c.WidgetEventCapability.forRoomEvent(c.EventDirection.Send,H).raw)}},{key:"requestCapabilityToReceiveEvent",value:function(H){this.requestCapability(c.WidgetEventCapability.forRoomEvent(c.EventDirection.Receive,H).raw)}},{key:"requestCapabilityToSendMessage",value:function(H){this.requestCapability(c.WidgetEventCapability.forRoomMessageEvent(c.EventDirection.Send,H).raw)}},{key:"requestCapabilityToReceiveMessage",value:function(H){this.requestCapability(c.WidgetEventCapability.forRoomMessageEvent(c.EventDirection.Receive,H).raw)}},{key:"requestCapabilityToReceiveRoomAccountData",value:function(H){this.requestCapability(c.WidgetEventCapability.forRoomAccountData(c.EventDirection.Receive,H).raw)}},{key:"requestOpenIDConnectToken",value:function(){var H=this;return new Promise(function(q,V){H.transport.sendComplete(i.WidgetApiFromWidgetAction.GetOpenIDCredentials,{}).then(function(X){var ee=X.response;if(ee.state===s.OpenIDRequestState.Allowed)q(ee);else if(ee.state===s.OpenIDRequestState.Blocked)V(new Error("User declined to verify their identity"));else if(ee.state===s.OpenIDRequestState.PendingUserConfirmation){var J=function de(ue){ue.preventDefault();var De=ue.detail;De.data.original_request_id===X.requestId&&(De.data.state===s.OpenIDRequestState.Allowed?(q(De.data),H.transport.reply(De,{})):De.data.state===s.OpenIDRequestState.Blocked?(V(new Error("User declined to verify their identity")),H.transport.reply(De,{})):(V(new Error("Invalid state on reply: "+ee.state)),H.transport.reply(De,{error:{message:"Invalid state"}})),H.off("action:".concat(i.WidgetApiToWidgetAction.OpenIDCredentials),de))};H.on("action:".concat(i.WidgetApiToWidgetAction.OpenIDCredentials),J)}else V(new Error("Invalid state: "+ee.state))}).catch(V)})}},{key:"updateRequestedCapabilities",value:function(){return this.transport.send(i.WidgetApiFromWidgetAction.MSC2974RenegotiateCapabilities,{capabilities:this.requestedCapabilities}).then()}},{key:"sendContentLoaded",value:function(){return this.transport.send(i.WidgetApiFromWidgetAction.ContentLoaded,{}).then()}},{key:"sendSticker",value:function(H){return this.transport.send(i.WidgetApiFromWidgetAction.SendSticker,H).then()}},{key:"setAlwaysOnScreen",value:function(H){return this.transport.send(i.WidgetApiFromWidgetAction.UpdateAlwaysOnScreen,{value:H}).then(function(q){return q.success})}},{key:"openModalWidget",value:function(H,q){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ee=arguments.length>4&&arguments[4]!==void 0?arguments[4]:u.MatrixWidgetType.Custom;return this.transport.send(i.WidgetApiFromWidgetAction.OpenModalWidget,{type:ee,url:H,name:q,buttons:V,data:X}).then()}},{key:"closeModalWidget",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.transport.send(i.WidgetApiFromWidgetAction.CloseModalWidget,H).then()}},{key:"sendRoomEvent",value:function(H,q,V,X,ee){return this.sendEvent(H,void 0,q,V,X,ee)}},{key:"sendStateEvent",value:function(H,q,V,X,ee,J){return this.sendEvent(H,q,V,X,ee,J)}},{key:"sendEvent",value:function(H,q,V,X,ee,J){return this.transport.send(i.WidgetApiFromWidgetAction.SendEvent,g(g(g(g({type:H,content:V},q!==void 0&&{state_key:q}),X!==void 0&&{room_id:X}),ee!==void 0&&{delay:ee}),J!==void 0&&{parent_delay_id:J}))}},{key:"updateDelayedEvent",value:function(H,q){return this.transport.send(i.WidgetApiFromWidgetAction.MSC4157UpdateDelayedEvent,{delay_id:H,action:q})}},{key:"sendToDevice",value:function(H,q,V){return this.transport.send(i.WidgetApiFromWidgetAction.SendToDevice,{type:H,encrypted:q,messages:V})}},{key:"readRoomAccountData",value:function(H,q){var V={type:H};return q&&(q.includes(d.Symbols.AnyRoom)?V.room_ids=d.Symbols.AnyRoom:V.room_ids=q),this.transport.send(i.WidgetApiFromWidgetAction.BeeperReadRoomAccountData,V).then(function(X){return X.events})}},{key:"readRoomEvents",value:function(H,q,V,X,ee){var J={type:H,msgtype:V};return q!==void 0&&(J.limit=q),X&&(X.includes(d.Symbols.AnyRoom)?J.room_ids=d.Symbols.AnyRoom:J.room_ids=X),ee&&(J.since=ee),this.transport.send(i.WidgetApiFromWidgetAction.MSC2876ReadEvents,J).then(function(de){return de.events})}},{key:"readEventRelations",value:function(){var H=m(F().mark(function V(X,ee,J,de,ue,De,Ae,ye){var He,ze;return F().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.next=2,this.getClientVersions();case 2:if(He=Ne.sent,He.includes(r.UnstableApiVersion.MSC3869)){Ne.next=5;break}throw new Error("The read_relations action is not supported by the client.");case 5:return ze={event_id:X,rel_type:J,event_type:de,room_id:ee,to:Ae,from:De,limit:ue,direction:ye},Ne.abrupt("return",this.transport.send(i.WidgetApiFromWidgetAction.MSC3869ReadRelations,ze));case 7:case"end":return Ne.stop()}},V,this)}));function q(V,X,ee,J,de,ue,De,Ae){return H.apply(this,arguments)}return q}()},{key:"readStateEvents",value:function(H,q,V,X){var ee={type:H,state_key:V===void 0?!0:V};return q!==void 0&&(ee.limit=q),X&&(X.includes(d.Symbols.AnyRoom)?ee.room_ids=d.Symbols.AnyRoom:ee.room_ids=X),this.transport.send(i.WidgetApiFromWidgetAction.MSC2876ReadEvents,ee).then(function(J){return J.events})}},{key:"setModalButtonEnabled",value:function(H,q){if(H===l.BuiltInModalButtonID.Close)throw new Error("The close button cannot be disabled");return this.transport.send(i.WidgetApiFromWidgetAction.SetModalButtonEnabled,{button:H,enabled:q}).then()}},{key:"navigateTo",value:function(H){if(!H||!H.startsWith("https://matrix.to/#"))throw new Error("Invalid matrix.to URI");return this.transport.send(i.WidgetApiFromWidgetAction.MSC2931Navigate,{uri:H}).then()}},{key:"getTurnServers",value:function(){var H=this;return L(F().mark(function q(){var V,X;return F().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(X=function(){var J=m(F().mark(function de(ue){return F().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ue.preventDefault(),V(ue.detail.data),De.next=4,H.transport.reply(ue.detail,{});case 4:case"end":return De.stop()}},de)}));return function(de){return J.apply(this,arguments)}}(),H.on("action:".concat(i.WidgetApiToWidgetAction.UpdateTurnServers),X),H.turnServerWatchers!==0){ee.next=12;break}return ee.prev=3,ee.next=6,P(H.transport.send(i.WidgetApiFromWidgetAction.WatchTurnServers,{}));case 6:ee.next=12;break;case 8:throw ee.prev=8,ee.t0=ee.catch(3),H.off("action:".concat(i.WidgetApiToWidgetAction.UpdateTurnServers),X),ee.t0;case 12:H.turnServerWatchers++,ee.prev=13;case 14:return ee.next=17,P(new Promise(function(J){return V=J}));case 17:return ee.next=19,ee.sent;case 19:ee.next=14;break;case 21:if(ee.prev=21,H.off("action:".concat(i.WidgetApiToWidgetAction.UpdateTurnServers),X),H.turnServerWatchers--,H.turnServerWatchers!==0){ee.next=27;break}return ee.next=27,P(H.transport.send(i.WidgetApiFromWidgetAction.UnwatchTurnServers,{}));case 27:return ee.finish(21);case 28:case"end":return ee.stop()}},q,null,[[3,8],[13,,21,28]])}))()}},{key:"searchUserDirectory",value:function(){var H=m(F().mark(function V(X,ee){var J,de;return F().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,this.getClientVersions();case 2:if(J=ue.sent,J.includes(r.UnstableApiVersion.MSC3973)){ue.next=5;break}throw new Error("The user_directory_search action is not supported by the client.");case 5:return de={search_term:X,limit:ee},ue.abrupt("return",this.transport.send(i.WidgetApiFromWidgetAction.MSC3973UserDirectorySearch,de));case 7:case"end":return ue.stop()}},V,this)}));function q(V,X){return H.apply(this,arguments)}return q}()},{key:"getMediaConfig",value:function(){var H=m(F().mark(function V(){var X,ee;return F().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,this.getClientVersions();case 2:if(X=J.sent,X.includes(r.UnstableApiVersion.MSC4039)){J.next=5;break}throw new Error("The get_media_config action is not supported by the client.");case 5:return ee={},J.abrupt("return",this.transport.send(i.WidgetApiFromWidgetAction.MSC4039GetMediaConfigAction,ee));case 7:case"end":return J.stop()}},V,this)}));function q(){return H.apply(this,arguments)}return q}()},{key:"uploadFile",value:function(){var H=m(F().mark(function V(X){var ee,J;return F().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.next=2,this.getClientVersions();case 2:if(ee=de.sent,ee.includes(r.UnstableApiVersion.MSC4039)){de.next=5;break}throw new Error("The upload_file action is not supported by the client.");case 5:return J={file:X},de.abrupt("return",this.transport.send(i.WidgetApiFromWidgetAction.MSC4039UploadFileAction,J));case 7:case"end":return de.stop()}},V,this)}));function q(V){return H.apply(this,arguments)}return q}()},{key:"downloadFile",value:function(){var H=m(F().mark(function V(X){var ee,J;return F().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.next=2,this.getClientVersions();case 2:if(ee=de.sent,ee.includes(r.UnstableApiVersion.MSC4039)){de.next=5;break}throw new Error("The download_file action is not supported by the client.");case 5:return J={content_uri:X},de.abrupt("return",this.transport.send(i.WidgetApiFromWidgetAction.MSC4039DownloadFileAction,J));case 7:case"end":return de.stop()}},V,this)}));function q(V){return H.apply(this,arguments)}return q}()},{key:"start",value:function(){var H=this;this.transport.start(),this.getClientVersions().then(function(q){q.includes(r.UnstableApiVersion.MSC2974)&&(H.supportsMSC2974Renegotiate=!0)})}},{key:"handleMessage",value:function(H){var q=new CustomEvent("action:".concat(H.detail.action),{detail:H.detail,cancelable:!0});if(this.emit("action:".concat(H.detail.action),q),!q.defaultPrevented)switch(H.detail.action){case i.WidgetApiToWidgetAction.SupportedApiVersions:return this.replyVersions(H.detail);case i.WidgetApiToWidgetAction.Capabilities:return this.handleCapabilities(H.detail);case i.WidgetApiToWidgetAction.UpdateVisibility:return this.transport.reply(H.detail,{});case i.WidgetApiToWidgetAction.NotifyCapabilities:return this.transport.reply(H.detail,{});default:return this.transport.reply(H.detail,{error:{message:"Unknown or unsupported action: "+H.detail.action}})}}},{key:"replyVersions",value:function(H){this.transport.reply(H,{supported_versions:r.CurrentApiVersions})}},{key:"getClientVersions",value:function(){var H=this;return Array.isArray(this.cachedClientVersions)?Promise.resolve(this.cachedClientVersions):this.transport.send(i.WidgetApiFromWidgetAction.SupportedApiVersions,{}).then(function(q){return H.cachedClientVersions=q.supported_versions,q.supported_versions}).catch(function(q){return console.warn("non-fatal error getting supported client versions: ",q),[]})}},{key:"handleCapabilities",value:function(H){var q=this;return this.capabilitiesFinished?this.transport.reply(H,{error:{message:"Capability negotiation already completed"}}):this.getClientVersions().then(function(V){return V.includes(r.UnstableApiVersion.MSC2871)?q.once("action:".concat(i.WidgetApiToWidgetAction.NotifyCapabilities),function(X){q.approvedCapabilities=X.detail.data.approved,q.emit("ready")}):q.emit("ready"),q.capabilitiesFinished=!0,q.transport.reply(H,{capabilities:q.requestedCapabilities})})}}]),K}(e.EventEmitter);return Dh.WidgetApi=Fe,Dh}var Df={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.VideoConferenceCapabilities=Ha.StickerpickerCapabilities=Ha.MatrixCapabilities=void 0,Ha.getTimelineRoomIDFromCapability=Yge,Ha.isTimelineCapability=Kge,Ha.isTimelineCapabilityFor=Gge;var A5=function(t){return t.Screenshots="m.capability.screenshot",t.StickerSending="m.sticker",t.AlwaysOnScreen="m.always_on_screen",t.RequiresClient="io.element.requires_client",t.MSC2931Navigate="org.matrix.msc2931.navigate",t.MSC3846TurnServers="town.robin.msc3846.turn_servers",t.MSC3973UserDirectorySearch="org.matrix.msc3973.user_directory_search",t.MSC4039UploadFile="org.matrix.msc4039.upload_file",t.MSC4039DownloadFile="org.matrix.msc4039.download_file",t.MSC4157SendDelayedEvent="org.matrix.msc4157.send.delayed_event",t.MSC4157UpdateDelayedEvent="org.matrix.msc4157.update_delayed_event",t}({});Ha.MatrixCapabilities=A5;var $ge=[A5.StickerSending];Ha.StickerpickerCapabilities=$ge;var Wge=[A5.AlwaysOnScreen];Ha.VideoConferenceCapabilities=Wge;function Kge(t){return t==null?void 0:t.startsWith("org.matrix.msc2762.timeline:")}function Gge(t,e){return t==="org.matrix.msc2762.timeline:".concat(e)}function Yge(t){return t.substring(t.indexOf(":")+1)}var gf={};Object.defineProperty(gf,"__esModule",{value:!0}),gf.SimpleObservable=void 0;function pf(t){"@babel/helpers - typeof";return pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pf(t)}function Zge(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Jge(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,u;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,u=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw u}}}}function Jge(t,e){if(t){if(typeof t=="string")return Eq(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Eq(t,e)}}function Eq(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yq(r.key),r)}}function epe(t,e,n){return Qge(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function tpe(t,e,n){return e=yq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yq(t){var e=npe(t,"string");return pf(e)==="symbol"?e:String(e)}function npe(t,e){if(pf(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(pf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var rpe=function(){function t(e){Xge(this,t),tpe(this,"listeners",[]),e&&this.listeners.push(e)}return epe(t,[{key:"onUpdate",value:function(e){this.listeners.push(e)}},{key:"update",value:function(e){var n=Zge(this.listeners),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;o(e)}}catch(i){n.e(i)}finally{n.f()}}},{key:"close",value:function(){this.listeners=[]}}]),t}();gf.SimpleObservable=rpe;var ff={};Object.defineProperty(ff,"__esModule",{value:!0}),ff.UpdateDelayedEventAction=void 0;var ope=function(t){return t.Cancel="cancel",t.Restart="restart",t.Send="send",t}({});ff.UpdateDelayedEventAction=ope;var xq;function ipe(){if(xq)return Df;xq=1,Object.defineProperty(Df,"__esModule",{value:!0}),Df.ClientWidgetApi=void 0;var t=wp,e=B5(),n=gh,r=md,o=Ha,i=Cu,s=Eu,u=am,l=gf,c=sm,d=ff;function F(K){"@babel/helpers - typeof";return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},F(K)}function h(K,H){var q=Object.keys(K);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(K);H&&(V=V.filter(function(X){return Object.getOwnPropertyDescriptor(K,X).enumerable})),q.push.apply(q,V)}return q}function m(K){for(var H=1;H<arguments.length;H++){var q=arguments[H]!=null?arguments[H]:{};H%2?h(Object(q),!0).forEach(function(V){U(K,V,q[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(q)):h(Object(q)).forEach(function(V){Object.defineProperty(K,V,Object.getOwnPropertyDescriptor(q,V))})}return K}function D(K,H){var q=typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(!q){if(Array.isArray(K)||(q=_(K))||H){q&&(K=q);var V=0,X=function(){};return{s:X,n:function(){return V>=K.length?{done:!0}:{done:!1,value:K[V++]}},e:function(ue){throw ue},f:X}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee=!0,J=!1,de;return{s:function(){q=q.call(K)},n:function(){var ue=q.next();return ee=ue.done,ue},e:function(ue){J=!0,de=ue},f:function(){try{!ee&&q.return!=null&&q.return()}finally{if(J)throw de}}}}function g(K){return E(K)||v(K)||_(K)||p()}function p(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(K,H){if(K){if(typeof K=="string")return b(K,H);var q=Object.prototype.toString.call(K).slice(8,-1);if(q==="Object"&&K.constructor&&(q=K.constructor.name),q==="Map"||q==="Set")return Array.from(K);if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return b(K,H)}}function v(K){if(typeof Symbol<"u"&&K[Symbol.iterator]!=null||K["@@iterator"]!=null)return Array.from(K)}function E(K){if(Array.isArray(K))return b(K)}function b(K,H){(H==null||H>K.length)&&(H=K.length);for(var q=0,V=new Array(H);q<H;q++)V[q]=K[q];return V}function k(){k=function(){return K};var K={},H=Object.prototype,q=H.hasOwnProperty,V=Object.defineProperty||function(ne,me,se){ne[me]=se.value},X=typeof Symbol=="function"?Symbol:{},ee=X.iterator||"@@iterator",J=X.asyncIterator||"@@asyncIterator",de=X.toStringTag||"@@toStringTag";function ue(ne,me,se){return Object.defineProperty(ne,me,{value:se,enumerable:!0,configurable:!0,writable:!0}),ne[me]}try{ue({},"")}catch{ue=function(ne,me,se){return ne[me]=se}}function De(ne,me,se,xe){var ke=me&&me.prototype instanceof He?me:He,qe=Object.create(ke.prototype),Ye=new W(xe||[]);return V(qe,"_invoke",{value:Ze(ne,se,Ye)}),qe}function Ae(ne,me,se){try{return{type:"normal",arg:ne.call(me,se)}}catch(xe){return{type:"throw",arg:xe}}}K.wrap=De;var ye={};function He(){}function ze(){}function Ne(){}var Oe={};ue(Oe,ee,function(){return this});var Ue=Object.getPrototypeOf,nt=Ue&&Ue(Ue(oe([])));nt&&nt!==H&&q.call(nt,ee)&&(Oe=nt);var _e=Ne.prototype=He.prototype=Object.create(Oe);function xt(ne){["next","throw","return"].forEach(function(me){ue(ne,me,function(se){return this._invoke(me,se)})})}function hn(ne,me){function se(ke,qe,Ye,Fn){var wn=Ae(ne[ke],ne,qe);if(wn.type!=="throw"){var ve=wn.arg,we=ve.value;return we&&F(we)=="object"&&q.call(we,"__await")?me.resolve(we.__await).then(function(Te){se("next",Te,Ye,Fn)},function(Te){se("throw",Te,Ye,Fn)}):me.resolve(we).then(function(Te){ve.value=Te,Ye(ve)},function(Te){return se("throw",Te,Ye,Fn)})}Fn(wn.arg)}var xe;V(this,"_invoke",{value:function(ke,qe){function Ye(){return new me(function(Fn,wn){se(ke,qe,Fn,wn)})}return xe=xe?xe.then(Ye,Ye):Ye()}})}function Ze(ne,me,se){var xe="suspendedStart";return function(ke,qe){if(xe==="executing")throw new Error("Generator is already running");if(xe==="completed"){if(ke==="throw")throw qe;return ie()}for(se.method=ke,se.arg=qe;;){var Ye=se.delegate;if(Ye){var Fn=dt(Ye,se);if(Fn){if(Fn===ye)continue;return Fn}}if(se.method==="next")se.sent=se._sent=se.arg;else if(se.method==="throw"){if(xe==="suspendedStart")throw xe="completed",se.arg;se.dispatchException(se.arg)}else se.method==="return"&&se.abrupt("return",se.arg);xe="executing";var wn=Ae(ne,me,se);if(wn.type==="normal"){if(xe=se.done?"completed":"suspendedYield",wn.arg===ye)continue;return{value:wn.arg,done:se.done}}wn.type==="throw"&&(xe="completed",se.method="throw",se.arg=wn.arg)}}}function dt(ne,me){var se=me.method,xe=ne.iterator[se];if(xe===void 0)return me.delegate=null,se==="throw"&&ne.iterator.return&&(me.method="return",me.arg=void 0,dt(ne,me),me.method==="throw")||se!=="return"&&(me.method="throw",me.arg=new TypeError("The iterator does not provide a '"+se+"' method")),ye;var ke=Ae(xe,ne.iterator,me.arg);if(ke.type==="throw")return me.method="throw",me.arg=ke.arg,me.delegate=null,ye;var qe=ke.arg;return qe?qe.done?(me[ne.resultName]=qe.value,me.next=ne.nextLoc,me.method!=="return"&&(me.method="next",me.arg=void 0),me.delegate=null,ye):qe:(me.method="throw",me.arg=new TypeError("iterator result is not an object"),me.delegate=null,ye)}function B(ne){var me={tryLoc:ne[0]};1 in ne&&(me.catchLoc=ne[1]),2 in ne&&(me.finallyLoc=ne[2],me.afterLoc=ne[3]),this.tryEntries.push(me)}function N(ne){var me=ne.completion||{};me.type="normal",delete me.arg,ne.completion=me}function W(ne){this.tryEntries=[{tryLoc:"root"}],ne.forEach(B,this),this.reset(!0)}function oe(ne){if(ne){var me=ne[ee];if(me)return me.call(ne);if(typeof ne.next=="function")return ne;if(!isNaN(ne.length)){var se=-1,xe=function ke(){for(;++se<ne.length;)if(q.call(ne,se))return ke.value=ne[se],ke.done=!1,ke;return ke.value=void 0,ke.done=!0,ke};return xe.next=xe}}return{next:ie}}function ie(){return{value:void 0,done:!0}}return ze.prototype=Ne,V(_e,"constructor",{value:Ne,configurable:!0}),V(Ne,"constructor",{value:ze,configurable:!0}),ze.displayName=ue(Ne,de,"GeneratorFunction"),K.isGeneratorFunction=function(ne){var me=typeof ne=="function"&&ne.constructor;return!!me&&(me===ze||(me.displayName||me.name)==="GeneratorFunction")},K.mark=function(ne){return Object.setPrototypeOf?Object.setPrototypeOf(ne,Ne):(ne.__proto__=Ne,ue(ne,de,"GeneratorFunction")),ne.prototype=Object.create(_e),ne},K.awrap=function(ne){return{__await:ne}},xt(hn.prototype),ue(hn.prototype,J,function(){return this}),K.AsyncIterator=hn,K.async=function(ne,me,se,xe,ke){ke===void 0&&(ke=Promise);var qe=new hn(De(ne,me,se,xe),ke);return K.isGeneratorFunction(me)?qe:qe.next().then(function(Ye){return Ye.done?Ye.value:qe.next()})},xt(_e),ue(_e,de,"Generator"),ue(_e,ee,function(){return this}),ue(_e,"toString",function(){return"[object Generator]"}),K.keys=function(ne){var me=Object(ne),se=[];for(var xe in me)se.push(xe);return se.reverse(),function ke(){for(;se.length;){var qe=se.pop();if(qe in me)return ke.value=qe,ke.done=!1,ke}return ke.done=!0,ke}},K.values=oe,W.prototype={constructor:W,reset:function(ne){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(N),!ne)for(var me in this)me.charAt(0)==="t"&&q.call(this,me)&&!isNaN(+me.slice(1))&&(this[me]=void 0)},stop:function(){this.done=!0;var ne=this.tryEntries[0].completion;if(ne.type==="throw")throw ne.arg;return this.rval},dispatchException:function(ne){if(this.done)throw ne;var me=this;function se(wn,ve){return qe.type="throw",qe.arg=ne,me.next=wn,ve&&(me.method="next",me.arg=void 0),!!ve}for(var xe=this.tryEntries.length-1;xe>=0;--xe){var ke=this.tryEntries[xe],qe=ke.completion;if(ke.tryLoc==="root")return se("end");if(ke.tryLoc<=this.prev){var Ye=q.call(ke,"catchLoc"),Fn=q.call(ke,"finallyLoc");if(Ye&&Fn){if(this.prev<ke.catchLoc)return se(ke.catchLoc,!0);if(this.prev<ke.finallyLoc)return se(ke.finallyLoc)}else if(Ye){if(this.prev<ke.catchLoc)return se(ke.catchLoc,!0)}else{if(!Fn)throw new Error("try statement without catch or finally");if(this.prev<ke.finallyLoc)return se(ke.finallyLoc)}}}},abrupt:function(ne,me){for(var se=this.tryEntries.length-1;se>=0;--se){var xe=this.tryEntries[se];if(xe.tryLoc<=this.prev&&q.call(xe,"finallyLoc")&&this.prev<xe.finallyLoc){var ke=xe;break}}ke&&(ne==="break"||ne==="continue")&&ke.tryLoc<=me&&me<=ke.finallyLoc&&(ke=null);var qe=ke?ke.completion:{};return qe.type=ne,qe.arg=me,ke?(this.method="next",this.next=ke.finallyLoc,ye):this.complete(qe)},complete:function(ne,me){if(ne.type==="throw")throw ne.arg;return ne.type==="break"||ne.type==="continue"?this.next=ne.arg:ne.type==="return"?(this.rval=this.arg=ne.arg,this.method="return",this.next="end"):ne.type==="normal"&&me&&(this.next=me),ye},finish:function(ne){for(var me=this.tryEntries.length-1;me>=0;--me){var se=this.tryEntries[me];if(se.finallyLoc===ne)return this.complete(se.completion,se.afterLoc),N(se),ye}},catch:function(ne){for(var me=this.tryEntries.length-1;me>=0;--me){var se=this.tryEntries[me];if(se.tryLoc===ne){var xe=se.completion;if(xe.type==="throw"){var ke=xe.arg;N(se)}return ke}}throw new Error("illegal catch attempt")},delegateYield:function(ne,me,se){return this.delegate={iterator:oe(ne),resultName:me,nextLoc:se},this.method==="next"&&(this.arg=void 0),ye}},K}function C(K,H,q,V,X,ee,J){try{var de=K[ee](J),ue=de.value}catch(De){q(De);return}de.done?H(ue):Promise.resolve(ue).then(V,X)}function S(K){return function(){var H=this,q=arguments;return new Promise(function(V,X){var ee=K.apply(H,q);function J(ue){C(ee,V,X,J,de,"next",ue)}function de(ue){C(ee,V,X,J,de,"throw",ue)}J(void 0)})}}function w(K,H){if(!(K instanceof H))throw new TypeError("Cannot call a class as a function")}function A(K,H){for(var q=0;q<H.length;q++){var V=H[q];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(K,te(V.key),V)}}function O(K,H,q){return A(K.prototype,H),Object.defineProperty(K,"prototype",{writable:!1}),K}function j(K,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");K.prototype=Object.create(H&&H.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),Object.defineProperty(K,"prototype",{writable:!1}),H&&R(K,H)}function R(K,H){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(q,V){return q.__proto__=V,q},R(K,H)}function M(K){var H=P();return function(){var q=L(K),V;if(H){var X=L(this).constructor;V=Reflect.construct(q,arguments,X)}else V=q.apply(this,arguments);return z(this,V)}}function z(K,H){if(H&&(F(H)==="object"||typeof H=="function"))return H;if(H!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(K)}function T(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function P(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function L(K){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},L(K)}function U(K,H,q){return H=te(H),H in K?Object.defineProperty(K,H,{value:q,enumerable:!0,configurable:!0,writable:!0}):K[H]=q,K}function te(K){var H=ae(K,"string");return F(H)==="symbol"?H:String(H)}function ae(K,H){if(F(K)!=="object"||K===null)return K;var q=K[Symbol.toPrimitive];if(q!==void 0){var V=q.call(K,H||"default");if(F(V)!=="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return(H==="string"?String:Number)(K)}function Fe(K){var H,q,V,X=2;for(typeof Symbol<"u"&&(q=Symbol.asyncIterator,V=Symbol.iterator);X--;){if(q&&(H=K[q])!=null)return H.call(K);if(V&&(H=K[V])!=null)return new re(H.call(K));q="@@asyncIterator",V="@@iterator"}throw new TypeError("Object is not async iterable")}function re(K){function H(q){if(Object(q)!==q)return Promise.reject(new TypeError(q+" is not an object."));var V=q.done;return Promise.resolve(q.value).then(function(X){return{value:X,done:V}})}return re=function(q){this.s=q,this.n=q.next},re.prototype={s:null,n:null,next:function(){return H(this.n.apply(this.s,arguments))},return:function(q){var V=this.s.return;return V===void 0?Promise.resolve({value:q,done:!0}):H(V.apply(this.s,arguments))},throw:function(q){var V=this.s.return;return V===void 0?Promise.reject(q):H(V.apply(this.s,arguments))}},new re(K)}var ce=function(K){j(q,K);var H=M(q);function q(V,X,ee){var J;if(w(this,q),J=H.call(this),J.widget=V,J.iframe=X,J.driver=ee,U(T(J),"transport",void 0),U(T(J),"cachedWidgetVersions",null),U(T(J),"contentLoadedActionSent",!1),U(T(J),"allowedCapabilities",new Set),U(T(J),"allowedEvents",[]),U(T(J),"isStopped",!1),U(T(J),"turnServers",null),U(T(J),"contentLoadedWaitTimer",void 0),U(T(J),"pushRoomStateTasks",new Set),U(T(J),"pushRoomStateResult",new Map),U(T(J),"flushRoomStateTask",null),U(T(J),"viewedRoomId",null),!(X!=null&&X.contentWindow))throw new Error("No iframe supplied");if(!V)throw new Error("Invalid widget");if(!ee)throw new Error("Invalid driver");return J.transport=new e.PostmessageTransport(n.WidgetApiDirection.ToWidget,V.id,X.contentWindow,window),J.transport.targetOrigin=V.origin,J.transport.on("message",J.handleMessage.bind(T(J))),X.addEventListener("load",J.onIframeLoad.bind(T(J))),J.transport.start(),J}return O(q,[{key:"hasCapability",value:function(V){return this.allowedCapabilities.has(V)}},{key:"canUseRoomTimeline",value:function(V){return this.hasCapability("org.matrix.msc2762.timeline:".concat(c.Symbols.AnyRoom))||this.hasCapability("org.matrix.msc2762.timeline:".concat(V))}},{key:"canSendRoomEvent",value:function(V){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return this.allowedEvents.some(function(ee){return ee.matchesAsRoomEvent(s.EventDirection.Send,V,X)})}},{key:"canSendStateEvent",value:function(V,X){return this.allowedEvents.some(function(ee){return ee.matchesAsStateEvent(s.EventDirection.Send,V,X)})}},{key:"canSendToDeviceEvent",value:function(V){return this.allowedEvents.some(function(X){return X.matchesAsToDeviceEvent(s.EventDirection.Send,V)})}},{key:"canReceiveRoomEvent",value:function(V){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return this.allowedEvents.some(function(ee){return ee.matchesAsRoomEvent(s.EventDirection.Receive,V,X)})}},{key:"canReceiveStateEvent",value:function(V,X){return this.allowedEvents.some(function(ee){return ee.matchesAsStateEvent(s.EventDirection.Receive,V,X)})}},{key:"canReceiveToDeviceEvent",value:function(V){return this.allowedEvents.some(function(X){return X.matchesAsToDeviceEvent(s.EventDirection.Receive,V)})}},{key:"canReceiveRoomAccountData",value:function(V){return this.allowedEvents.some(function(X){return X.matchesAsRoomAccountData(s.EventDirection.Receive,V)})}},{key:"stop",value:function(){this.isStopped=!0,this.transport.stop()}},{key:"getWidgetVersions",value:function(){var V=S(k().mark(function ee(){var J;return k().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(!Array.isArray(this.cachedWidgetVersions)){de.next=2;break}return de.abrupt("return",Promise.resolve(this.cachedWidgetVersions));case 2:return de.prev=2,de.next=5,this.transport.send(r.WidgetApiToWidgetAction.SupportedApiVersions,{});case 5:return J=de.sent,this.cachedWidgetVersions=J.supported_versions,de.abrupt("return",J.supported_versions);case 10:return de.prev=10,de.t0=de.catch(2),console.warn("non-fatal error getting supported widget versions: ",de.t0),de.abrupt("return",[]);case 14:case"end":return de.stop()}},ee,this,[[2,10]])}));function X(){return V.apply(this,arguments)}return X}()},{key:"beginCapabilities",value:function(){var V=this;this.emit("preparing");var X;this.transport.send(r.WidgetApiToWidgetAction.Capabilities,{}).then(function(ee){return X=ee.capabilities,V.driver.validateCapabilities(new Set(ee.capabilities))}).then(function(ee){V.allowCapabilities(g(ee),X),V.emit("ready")}).catch(function(ee){V.emit("error:preparing",ee)})}},{key:"allowCapabilities",value:function(V,X){var ee,J=this;console.log("Widget ".concat(this.widget.id," is allowed capabilities:"),V);var de=D(V),ue;try{for(de.s();!(ue=de.n()).done;){var De=ue.value;this.allowedCapabilities.add(De)}}catch(_e){de.e(_e)}finally{de.f()}var Ae=s.WidgetEventCapability.findEventCapabilities(V);(ee=this.allowedEvents).push.apply(ee,g(Ae)),this.transport.send(r.WidgetApiToWidgetAction.NotifyCapabilities,{requested:X,approved:Array.from(this.allowedCapabilities)}).catch(function(_e){console.warn("non-fatal error notifying widget of approved capabilities:",_e)}).then(function(){J.emit("capabilitiesNotified")});var ye=D(V),He;try{for(ye.s();!(He=ye.n()).done;){var ze=He.value;if((0,o.isTimelineCapability)(ze)){var Ne=(0,o.getTimelineRoomIDFromCapability)(ze);if(Ne===c.Symbols.AnyRoom){var Oe=D(this.driver.getKnownRooms()),Ue;try{for(Oe.s();!(Ue=Oe.n()).done;){var nt=Ue.value;this.pushRoomState(nt)}}catch(_e){Oe.e(_e)}finally{Oe.f()}}else this.pushRoomState(Ne)}}}catch(_e){ye.e(_e)}finally{ye.f()}Ae.length>0&&this.viewedRoomId!==null&&!this.canUseRoomTimeline(this.viewedRoomId)&&this.pushRoomState(this.viewedRoomId)}},{key:"onIframeLoad",value:function(V){this.widget.waitForIframeLoad?this.beginCapabilities():(console.log("waitForIframeLoad is false: waiting for widget to send contentLoaded"),this.contentLoadedWaitTimer=setTimeout(function(){console.error("Widget specified waitForIframeLoad=false but timed out waiting for contentLoaded event!")},1e4),this.contentLoadedActionSent=!1)}},{key:"handleContentLoadedAction",value:function(V){if(this.contentLoadedWaitTimer!==void 0&&(clearTimeout(this.contentLoadedWaitTimer),this.contentLoadedWaitTimer=void 0),this.contentLoadedActionSent)throw new Error("Improper sequence: ContentLoaded Action can only be sent once after the widget loaded and should only be used if waitForIframeLoad is false (default=true)");this.widget.waitForIframeLoad?this.transport.reply(V,{error:{message:"Improper sequence: not expecting ContentLoaded event if waitForIframeLoad is true (default=true)"}}):(this.transport.reply(V,{}),this.beginCapabilities()),this.contentLoadedActionSent=!0}},{key:"replyVersions",value:function(V){this.transport.reply(V,{supported_versions:i.CurrentApiVersions})}},{key:"supportsUpdateState",value:function(){var V=S(k().mark(function ee(){return k().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,this.getWidgetVersions();case 2:return J.abrupt("return",J.sent.includes(i.UnstableApiVersion.MSC2762_UPDATE_STATE));case 3:case"end":return J.stop()}},ee,this)}));function X(){return V.apply(this,arguments)}return X}()},{key:"handleCapabilitiesRenegotiate",value:function(V){var X,ee=this;this.transport.reply(V,{});var J=((X=V.data)===null||X===void 0?void 0:X.capabilities)||[],de=new Set(J.filter(function(ue){return!ee.hasCapability(ue)}));de.size===0&&this.allowCapabilities([],[]),this.driver.validateCapabilities(de).then(function(ue){return ee.allowCapabilities(g(ue),g(de))})}},{key:"handleNavigate",value:function(V){var X,ee,J=this;if(!this.hasCapability(o.MatrixCapabilities.MSC2931Navigate))return this.transport.reply(V,{error:{message:"Missing capability"}});if(!((X=V.data)!==null&&X!==void 0&&X.uri)||!((ee=V.data)!==null&&ee!==void 0&&ee.uri.toString().startsWith("https://matrix.to/#")))return this.transport.reply(V,{error:{message:"Invalid matrix.to URI"}});var de=function(ue){console.error("[ClientWidgetApi] Failed to handle navigation: ",ue),J.handleDriverError(ue,V,"Error handling navigation")};try{this.driver.navigate(V.data.uri.toString()).catch(function(ue){return de(ue)}).then(function(){return J.transport.reply(V,{})})}catch(ue){return de(ue)}}},{key:"handleOIDC",value:function(V){var X=this,ee=1,J=function(De,Ae){return Ae=Ae||{},ee>1?X.transport.send(r.WidgetApiToWidgetAction.OpenIDCredentials,m({state:De,original_request_id:V.requestId},Ae)):X.transport.reply(V,m({state:De},Ae))},de=function(De){return console.error("[ClientWidgetApi] Failed to handle OIDC: ",De),ee>1?J(u.OpenIDRequestState.Blocked):X.transport.reply(V,{error:{message:De}})},ue=new l.SimpleObservable(function(De){if(De.state===u.OpenIDRequestState.PendingUserConfirmation&&ee>1)return ue.close(),de("client provided out-of-phase response to OIDC flow");if(De.state===u.OpenIDRequestState.PendingUserConfirmation){J(De.state),ee++;return}return De.state===u.OpenIDRequestState.Allowed&&!De.token?de("client provided invalid OIDC token for an allowed request"):(De.state===u.OpenIDRequestState.Blocked&&(De.token=void 0),ue.close(),J(De.state,De.token))});this.driver.askOpenID(ue)}},{key:"handleReadRoomAccountData",value:function(V){var X=this,ee=Promise.resolve([]);return ee=this.driver.readRoomAccountData(V.data.type),this.canReceiveRoomAccountData(V.data.type)?ee.then(function(J){X.transport.reply(V,{events:J})}):this.transport.reply(V,{error:{message:"Cannot read room account data of this type"}})}},{key:"handleReadEvents",value:function(){var V=S(k().mark(function ee(J){var de=this,ue,De,Ae,ye,He,ze,Ne,Oe,Ue,nt;return k().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(J.data.type){_e.next=2;break}return _e.abrupt("return",this.transport.reply(J,{error:{message:"Invalid request - missing event type"}}));case 2:if(!(J.data.limit!==void 0&&(!J.data.limit||J.data.limit<0))){_e.next=4;break}return _e.abrupt("return",this.transport.reply(J,{error:{message:"Invalid request - limit out of range"}}));case 4:if(J.data.room_ids!==void 0){_e.next=8;break}ue=this.viewedRoomId===null?[]:[this.viewedRoomId],_e.next=30;break;case 8:if(J.data.room_ids!==c.Symbols.AnyRoom){_e.next=12;break}ue=this.driver.getKnownRooms().filter(function(xt){return de.canUseRoomTimeline(xt)}),_e.next=30;break;case 12:ue=J.data.room_ids,De=D(ue),_e.prev=14,De.s();case 16:if((Ae=De.n()).done){_e.next=22;break}if(ye=Ae.value,this.canUseRoomTimeline(ye)){_e.next=20;break}return _e.abrupt("return",this.transport.reply(J,{error:{message:"Unable to access room timeline: ".concat(ye)}}));case 20:_e.next=16;break;case 22:_e.next=27;break;case 24:_e.prev=24,_e.t0=_e.catch(14),De.e(_e.t0);case 27:return _e.prev=27,De.f(),_e.finish(27);case 30:if(He=J.data.limit||0,ze=J.data.since,Ne=void 0,Oe=void 0,J.data.state_key===void 0){_e.next=40;break}if(Ne=J.data.state_key===!0?void 0:J.data.state_key.toString(),this.canReceiveStateEvent(J.data.type,(Ue=Ne)!==null&&Ue!==void 0?Ue:null)){_e.next=38;break}return _e.abrupt("return",this.transport.reply(J,{error:{message:"Cannot read state events of this type"}}));case 38:_e.next=43;break;case 40:if(Oe=J.data.msgtype,this.canReceiveRoomEvent(J.data.type,Oe)){_e.next=43;break}return _e.abrupt("return",this.transport.reply(J,{error:{message:"Cannot read room events of this type"}}));case 43:if(!(J.data.room_ids===void 0&&ue.length===0)){_e.next=50;break}return console.warn("The widgetDriver uses deprecated behaviour:\n It does not set the viewedRoomId using `setViewedRoomId`"),_e.next=47,J.data.state_key===void 0?this.driver.readRoomEvents(J.data.type,Oe,He,null,ze):this.driver.readStateEvents(J.data.type,Ne,He,null);case 47:nt=_e.sent,_e.next=68;break;case 50:return _e.next=52,this.supportsUpdateState();case 52:if(!_e.sent){_e.next=58;break}return _e.next=55,Promise.all(ue.map(function(xt){return de.driver.readRoomTimeline(xt,J.data.type,Oe,Ne,He,ze)}));case 55:nt=_e.sent.flat(1),_e.next=68;break;case 58:if(J.data.state_key!==void 0){_e.next=64;break}return _e.next=61,Promise.all(ue.map(function(xt){return de.driver.readRoomTimeline(xt,J.data.type,Oe,Ne,He,ze)}));case 61:_e.t1=_e.sent,_e.next=67;break;case 64:return _e.next=66,Promise.all(ue.map(function(xt){return de.driver.readRoomState(xt,J.data.type,Ne)}));case 66:_e.t1=_e.sent;case 67:nt=_e.t1.flat(1);case 68:this.transport.reply(J,{events:nt});case 69:case"end":return _e.stop()}},ee,this,[[14,24,27,30]])}));function X(ee){return V.apply(this,arguments)}return X}()},{key:"handleSendEvent",value:function(V){var X=this;if(!V.data.type)return this.transport.reply(V,{error:{message:"Invalid request - missing event type"}});if(V.data.room_id&&!this.canUseRoomTimeline(V.data.room_id))return this.transport.reply(V,{error:{message:"Unable to access room timeline: ".concat(V.data.room_id)}});var ee=V.data.delay!==void 0||V.data.parent_delay_id!==void 0;if(ee&&!this.hasCapability(o.MatrixCapabilities.MSC4157SendDelayedEvent))return this.transport.reply(V,{error:{message:"Missing capability"}});var J;if(V.data.state_key!==void 0){if(!this.canSendStateEvent(V.data.type,V.data.state_key))return this.transport.reply(V,{error:{message:"Cannot send state events of this type"}});if(!ee)J=this.driver.sendEvent(V.data.type,V.data.content||{},V.data.state_key,V.data.room_id);else{var de,ue;J=this.driver.sendDelayedEvent((de=V.data.delay)!==null&&de!==void 0?de:null,(ue=V.data.parent_delay_id)!==null&&ue!==void 0?ue:null,V.data.type,V.data.content||{},V.data.state_key,V.data.room_id)}}else{var De=V.data.content||{},Ae=De.msgtype;if(!this.canSendRoomEvent(V.data.type,Ae))return this.transport.reply(V,{error:{message:"Cannot send room events of this type"}});if(!ee)J=this.driver.sendEvent(V.data.type,De,null,V.data.room_id);else{var ye,He;J=this.driver.sendDelayedEvent((ye=V.data.delay)!==null&&ye!==void 0?ye:null,(He=V.data.parent_delay_id)!==null&&He!==void 0?He:null,V.data.type,De,null,V.data.room_id)}}J.then(function(ze){return X.transport.reply(V,m({room_id:ze.roomId},"eventId"in ze?{event_id:ze.eventId}:{delay_id:ze.delayId}))}).catch(function(ze){console.error("error sending event: ",ze),X.handleDriverError(ze,V,"Error sending event")})}},{key:"handleUpdateDelayedEvent",value:function(V){var X=this;if(!V.data.delay_id)return this.transport.reply(V,{error:{message:"Invalid request - missing delay_id"}});if(!this.hasCapability(o.MatrixCapabilities.MSC4157UpdateDelayedEvent))return this.transport.reply(V,{error:{message:"Missing capability"}});switch(V.data.action){case d.UpdateDelayedEventAction.Cancel:case d.UpdateDelayedEventAction.Restart:case d.UpdateDelayedEventAction.Send:this.driver.updateDelayedEvent(V.data.delay_id,V.data.action).then(function(){return X.transport.reply(V,{})}).catch(function(ee){console.error("error updating delayed event: ",ee),X.handleDriverError(ee,V,"Error updating delayed event")});break;default:return this.transport.reply(V,{error:{message:"Invalid request - unsupported action"}})}}},{key:"handleSendToDevice",value:function(){var V=S(k().mark(function ee(J){return k().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(J.data.type){de.next=5;break}return de.next=3,this.transport.reply(J,{error:{message:"Invalid request - missing event type"}});case 3:de.next=31;break;case 5:if(J.data.messages){de.next=10;break}return de.next=8,this.transport.reply(J,{error:{message:"Invalid request - missing event contents"}});case 8:de.next=31;break;case 10:if(typeof J.data.encrypted=="boolean"){de.next=15;break}return de.next=13,this.transport.reply(J,{error:{message:"Invalid request - missing encryption flag"}});case 13:de.next=31;break;case 15:if(this.canSendToDeviceEvent(J.data.type)){de.next=20;break}return de.next=18,this.transport.reply(J,{error:{message:"Cannot send to-device events of this type"}});case 18:de.next=31;break;case 20:return de.prev=20,de.next=23,this.driver.sendToDevice(J.data.type,J.data.encrypted,J.data.messages);case 23:return de.next=25,this.transport.reply(J,{});case 25:de.next=31;break;case 27:de.prev=27,de.t0=de.catch(20),console.error("error sending to-device event",de.t0),this.handleDriverError(de.t0,J,"Error sending event");case 31:case"end":return de.stop()}},ee,this,[[20,27]])}));function X(ee){return V.apply(this,arguments)}return X}()},{key:"pollTurnServers",value:function(){var V=S(k().mark(function ee(J,de){var ue,De,Ae,ye,He,ze;return k().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.prev=0,Ne.next=3,this.transport.send(r.WidgetApiToWidgetAction.UpdateTurnServers,de);case 3:ue=!1,De=!1,Ne.prev=5,ye=Fe(J);case 7:return Ne.next=9,ye.next();case 9:if(!(ue=!(He=Ne.sent).done)){Ne.next=16;break}return ze=He.value,Ne.next=13,this.transport.send(r.WidgetApiToWidgetAction.UpdateTurnServers,ze);case 13:ue=!1,Ne.next=7;break;case 16:Ne.next=22;break;case 18:Ne.prev=18,Ne.t0=Ne.catch(5),De=!0,Ae=Ne.t0;case 22:if(Ne.prev=22,Ne.prev=23,!(ue&&ye.return!=null)){Ne.next=27;break}return Ne.next=27,ye.return();case 27:if(Ne.prev=27,!De){Ne.next=30;break}throw Ae;case 30:return Ne.finish(27);case 31:return Ne.finish(22);case 32:Ne.next=37;break;case 34:Ne.prev=34,Ne.t1=Ne.catch(0),console.error("error polling for TURN servers",Ne.t1);case 37:case"end":return Ne.stop()}},ee,this,[[0,34],[5,18,22,32],[23,,27,31]])}));function X(ee,J){return V.apply(this,arguments)}return X}()},{key:"handleWatchTurnServers",value:function(){var V=S(k().mark(function ee(J){var de,ue,De,Ae;return k().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(this.hasCapability(o.MatrixCapabilities.MSC3846TurnServers)){ye.next=5;break}return ye.next=3,this.transport.reply(J,{error:{message:"Missing capability"}});case 3:ye.next=30;break;case 5:if(!this.turnServers){ye.next=10;break}return ye.next=8,this.transport.reply(J,{});case 8:ye.next=30;break;case 10:return ye.prev=10,de=this.driver.getTurnServers(),ye.next=14,de.next();case 14:if(ue=ye.sent,De=ue.done,Ae=ue.value,!De){ye.next=19;break}throw new Error("Client refuses to provide any TURN servers");case 19:return ye.next=21,this.transport.reply(J,{});case 21:this.pollTurnServers(de,Ae),this.turnServers=de,ye.next=30;break;case 25:return ye.prev=25,ye.t0=ye.catch(10),console.error("error getting first TURN server results",ye.t0),ye.next=30,this.transport.reply(J,{error:{message:"TURN servers not available"}});case 30:case"end":return ye.stop()}},ee,this,[[10,25]])}));function X(ee){return V.apply(this,arguments)}return X}()},{key:"handleUnwatchTurnServers",value:function(){var V=S(k().mark(function ee(J){return k().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(this.hasCapability(o.MatrixCapabilities.MSC3846TurnServers)){de.next=5;break}return de.next=3,this.transport.reply(J,{error:{message:"Missing capability"}});case 3:de.next=15;break;case 5:if(this.turnServers){de.next=10;break}return de.next=8,this.transport.reply(J,{});case 8:de.next=15;break;case 10:return de.next=12,this.turnServers.return(void 0);case 12:return this.turnServers=null,de.next=15,this.transport.reply(J,{});case 15:case"end":return de.stop()}},ee,this)}));function X(ee){return V.apply(this,arguments)}return X}()},{key:"handleReadRelations",value:function(){var V=S(k().mark(function ee(J){var de=this,ue,De;return k().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(J.data.event_id){Ae.next=2;break}return Ae.abrupt("return",this.transport.reply(J,{error:{message:"Invalid request - missing event ID"}}));case 2:if(!(J.data.limit!==void 0&&J.data.limit<0)){Ae.next=4;break}return Ae.abrupt("return",this.transport.reply(J,{error:{message:"Invalid request - limit out of range"}}));case 4:if(!(J.data.room_id!==void 0&&!this.canUseRoomTimeline(J.data.room_id))){Ae.next=6;break}return Ae.abrupt("return",this.transport.reply(J,{error:{message:"Unable to access room timeline: ".concat(J.data.room_id)}}));case 6:return Ae.prev=6,Ae.next=9,this.driver.readEventRelations(J.data.event_id,J.data.room_id,J.data.rel_type,J.data.event_type,J.data.from,J.data.to,J.data.limit,J.data.direction);case 9:return ue=Ae.sent,De=ue.chunk.filter(function(ye){return ye.state_key!==void 0?de.canReceiveStateEvent(ye.type,ye.state_key):de.canReceiveRoomEvent(ye.type,ye.content.msgtype)}),Ae.abrupt("return",this.transport.reply(J,{chunk:De,prev_batch:ue.prevBatch,next_batch:ue.nextBatch}));case 14:Ae.prev=14,Ae.t0=Ae.catch(6),console.error("error getting the relations",Ae.t0),this.handleDriverError(Ae.t0,J,"Unexpected error while reading relations");case 18:case"end":return Ae.stop()}},ee,this,[[6,14]])}));function X(ee){return V.apply(this,arguments)}return X}()},{key:"handleUserDirectorySearch",value:function(){var V=S(k().mark(function ee(J){var de;return k().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(this.hasCapability(o.MatrixCapabilities.MSC3973UserDirectorySearch)){ue.next=2;break}return ue.abrupt("return",this.transport.reply(J,{error:{message:"Missing capability"}}));case 2:if(typeof J.data.search_term=="string"){ue.next=4;break}return ue.abrupt("return",this.transport.reply(J,{error:{message:"Invalid request - missing search term"}}));case 4:if(!(J.data.limit!==void 0&&J.data.limit<0)){ue.next=6;break}return ue.abrupt("return",this.transport.reply(J,{error:{message:"Invalid request - limit out of range"}}));case 6:return ue.prev=6,ue.next=9,this.driver.searchUserDirectory(J.data.search_term,J.data.limit);case 9:return de=ue.sent,ue.abrupt("return",this.transport.reply(J,{limited:de.limited,results:de.results.map(function(De){return{user_id:De.userId,display_name:De.displayName,avatar_url:De.avatarUrl}})}));case 13:ue.prev=13,ue.t0=ue.catch(6),console.error("error searching in the user directory",ue.t0),this.handleDriverError(ue.t0,J,"Unexpected error while searching in the user directory");case 17:case"end":return ue.stop()}},ee,this,[[6,13]])}));function X(ee){return V.apply(this,arguments)}return X}()},{key:"handleGetMediaConfig",value:function(){var V=S(k().mark(function ee(J){var de;return k().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(this.hasCapability(o.MatrixCapabilities.MSC4039UploadFile)){ue.next=2;break}return ue.abrupt("return",this.transport.reply(J,{error:{message:"Missing capability"}}));case 2:return ue.prev=2,ue.next=5,this.driver.getMediaConfig();case 5:return de=ue.sent,ue.abrupt("return",this.transport.reply(J,de));case 9:ue.prev=9,ue.t0=ue.catch(2),console.error("error while getting the media configuration",ue.t0),this.handleDriverError(ue.t0,J,"Unexpected error while getting the media configuration");case 13:case"end":return ue.stop()}},ee,this,[[2,9]])}));function X(ee){return V.apply(this,arguments)}return X}()},{key:"handleUploadFile",value:function(){var V=S(k().mark(function ee(J){var de;return k().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(this.hasCapability(o.MatrixCapabilities.MSC4039UploadFile)){ue.next=2;break}return ue.abrupt("return",this.transport.reply(J,{error:{message:"Missing capability"}}));case 2:return ue.prev=2,ue.next=5,this.driver.uploadFile(J.data.file);case 5:return de=ue.sent,ue.abrupt("return",this.transport.reply(J,{content_uri:de.contentUri}));case 9:ue.prev=9,ue.t0=ue.catch(2),console.error("error while uploading a file",ue.t0),this.handleDriverError(ue.t0,J,"Unexpected error while uploading a file");case 13:case"end":return ue.stop()}},ee,this,[[2,9]])}));function X(ee){return V.apply(this,arguments)}return X}()},{key:"handleDownloadFile",value:function(){var V=S(k().mark(function ee(J){var de;return k().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(this.hasCapability(o.MatrixCapabilities.MSC4039DownloadFile)){ue.next=2;break}return ue.abrupt("return",this.transport.reply(J,{error:{message:"Missing capability"}}));case 2:return ue.prev=2,ue.next=5,this.driver.downloadFile(J.data.content_uri);case 5:return de=ue.sent,ue.abrupt("return",this.transport.reply(J,{file:de.file}));case 9:ue.prev=9,ue.t0=ue.catch(2),console.error("error while downloading a file",ue.t0),this.handleDriverError(ue.t0,J,"Unexpected error while downloading a file");case 13:case"end":return ue.stop()}},ee,this,[[2,9]])}));function X(ee){return V.apply(this,arguments)}return X}()},{key:"handleDriverError",value:function(V,X,ee){var J=this.driver.processError(V);this.transport.reply(X,{error:m({message:ee},J)})}},{key:"handleMessage",value:function(V){if(!this.isStopped){var X=new CustomEvent("action:".concat(V.detail.action),{detail:V.detail,cancelable:!0});if(this.emit("action:".concat(V.detail.action),X),!X.defaultPrevented)switch(V.detail.action){case r.WidgetApiFromWidgetAction.ContentLoaded:return this.handleContentLoadedAction(V.detail);case r.WidgetApiFromWidgetAction.SupportedApiVersions:return this.replyVersions(V.detail);case r.WidgetApiFromWidgetAction.SendEvent:return this.handleSendEvent(V.detail);case r.WidgetApiFromWidgetAction.SendToDevice:return this.handleSendToDevice(V.detail);case r.WidgetApiFromWidgetAction.GetOpenIDCredentials:return this.handleOIDC(V.detail);case r.WidgetApiFromWidgetAction.MSC2931Navigate:return this.handleNavigate(V.detail);case r.WidgetApiFromWidgetAction.MSC2974RenegotiateCapabilities:return this.handleCapabilitiesRenegotiate(V.detail);case r.WidgetApiFromWidgetAction.MSC2876ReadEvents:return this.handleReadEvents(V.detail);case r.WidgetApiFromWidgetAction.WatchTurnServers:return this.handleWatchTurnServers(V.detail);case r.WidgetApiFromWidgetAction.UnwatchTurnServers:return this.handleUnwatchTurnServers(V.detail);case r.WidgetApiFromWidgetAction.MSC3869ReadRelations:return this.handleReadRelations(V.detail);case r.WidgetApiFromWidgetAction.MSC3973UserDirectorySearch:return this.handleUserDirectorySearch(V.detail);case r.WidgetApiFromWidgetAction.BeeperReadRoomAccountData:return this.handleReadRoomAccountData(V.detail);case r.WidgetApiFromWidgetAction.MSC4039GetMediaConfigAction:return this.handleGetMediaConfig(V.detail);case r.WidgetApiFromWidgetAction.MSC4039UploadFileAction:return this.handleUploadFile(V.detail);case r.WidgetApiFromWidgetAction.MSC4039DownloadFileAction:return this.handleDownloadFile(V.detail);case r.WidgetApiFromWidgetAction.MSC4157UpdateDelayedEvent:return this.handleUpdateDelayedEvent(V.detail);default:return this.transport.reply(V.detail,{error:{message:"Unknown or unsupported action: "+V.detail.action}})}}}},{key:"updateTheme",value:function(V){return this.transport.send(r.WidgetApiToWidgetAction.ThemeChange,V)}},{key:"updateLanguage",value:function(V){return this.transport.send(r.WidgetApiToWidgetAction.LanguageChange,{lang:V})}},{key:"takeScreenshot",value:function(){return this.transport.send(r.WidgetApiToWidgetAction.TakeScreenshot,{})}},{key:"updateVisibility",value:function(V){return this.transport.send(r.WidgetApiToWidgetAction.UpdateVisibility,{visible:V})}},{key:"sendWidgetConfig",value:function(V){return this.transport.send(r.WidgetApiToWidgetAction.WidgetConfig,V).then()}},{key:"notifyModalWidgetButtonClicked",value:function(V){return this.transport.send(r.WidgetApiToWidgetAction.ButtonClicked,{id:V}).then()}},{key:"notifyModalWidgetClose",value:function(V){return this.transport.send(r.WidgetApiToWidgetAction.CloseModalWidget,V).then()}},{key:"feedEvent",value:function(){var V=S(k().mark(function ee(J,de){var ue;return k().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(de!==void 0&&this.setViewedRoomId(de),!(J.room_id!==this.viewedRoomId&&!this.canUseRoomTimeline(J.room_id))){De.next=3;break}return De.abrupt("return");case 3:if(!(J.state_key!==void 0&&J.state_key!==null)){De.next=8;break}if(this.canReceiveStateEvent(J.type,J.state_key)){De.next=6;break}return De.abrupt("return");case 6:De.next=10;break;case 8:if(this.canReceiveRoomEvent(J.type,(ue=J.content)===null||ue===void 0?void 0:ue.msgtype)){De.next=10;break}return De.abrupt("return");case 10:return De.next=12,this.transport.send(r.WidgetApiToWidgetAction.SendEvent,J);case 12:case"end":return De.stop()}},ee,this)}));function X(ee,J){return V.apply(this,arguments)}return X}()},{key:"feedToDevice",value:function(){var V=S(k().mark(function ee(J,de){return k().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(!this.canReceiveToDeviceEvent(J.type)){ue.next=3;break}return ue.next=3,this.transport.send(r.WidgetApiToWidgetAction.SendToDevice,m(m({},J),{},{encrypted:de}));case 3:case"end":return ue.stop()}},ee,this)}));function X(ee,J){return V.apply(this,arguments)}return X}()},{key:"setViewedRoomId",value:function(V){this.viewedRoomId=V,V!==null&&!this.canUseRoomTimeline(V)&&this.pushRoomState(V)}},{key:"flushRoomState",value:function(){var V=S(k().mark(function ee(){var J,de,ue,De,Ae,ye,He;return k().wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:ze.prev=0;case 1:return ze.next=3,Promise.all(g(this.pushRoomStateTasks));case 3:if(this.pushRoomStateTasks.size>0){ze.next=1;break}case 4:J=[],de=D(this.pushRoomStateResult.values());try{for(de.s();!(ue=de.n()).done;){De=ue.value,Ae=D(De.values());try{for(Ae.s();!(ye=Ae.n()).done;)He=ye.value,J.push.apply(J,g(He.values()))}catch(Ne){Ae.e(Ne)}finally{Ae.f()}}}catch(Ne){de.e(Ne)}finally{de.f()}return ze.next=9,this.getWidgetVersions();case 9:if(!ze.sent.includes(i.UnstableApiVersion.MSC2762_UPDATE_STATE)){ze.next=12;break}return ze.next=12,this.transport.send(r.WidgetApiToWidgetAction.UpdateState,{state:J});case 12:return ze.prev=12,this.flushRoomStateTask=null,ze.finish(12);case 15:case"end":return ze.stop()}},ee,this,[[0,,12,15]])}));function X(){return V.apply(this,arguments)}return X}()},{key:"pushRoomState",value:function(V){var X=this,ee=D(this.allowedEvents),J;try{var de=function(){var ue=J.value;if(ue.kind===s.EventKind.State&&ue.direction===s.EventDirection.Receive){var De,Ae,ye=X.driver.readRoomState(V,ue.eventType,(De=ue.keyStr)!==null&&De!==void 0?De:void 0),He=ye.then(function(ze){var Ne=D(ze),Oe;try{for(Ne.s();!(Oe=Ne.n()).done;){var Ue=Oe.value,nt=X.pushRoomStateResult.get(V);nt===void 0&&(nt=new Map,X.pushRoomStateResult.set(V,nt));var _e=nt.get(ue.eventType);_e===void 0&&(_e=new Map,nt.set(ue.eventType,_e)),_e.has(Ue.state_key)||_e.set(Ue.state_key,Ue)}}catch(xt){Ne.e(xt)}finally{Ne.f()}},function(ze){return console.error("Failed to read room state for ".concat(V," (").concat(ue.eventType,", ").concat(ue.keyStr,")"),ze)}).then(function(){X.pushRoomStateTasks.delete(He)});X.pushRoomStateTasks.add(He),(Ae=X.flushRoomStateTask)!==null&&Ae!==void 0||(X.flushRoomStateTask=X.flushRoomState()),X.flushRoomStateTask.catch(function(ze){return console.error("Failed to push room state",ze)})}};for(ee.s();!(J=ee.n()).done;)de()}catch(ue){ee.e(ue)}finally{ee.f()}}},{key:"feedStateUpdate",value:function(){var V=S(k().mark(function ee(J){var de,ue;return k().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(J.state_key!==void 0){De.next=2;break}throw new Error("Not a state event");case 2:if(!((J.room_id===this.viewedRoomId||this.canUseRoomTimeline(J.room_id))&&this.canReceiveStateEvent(J.type,J.state_key))){De.next=21;break}if(this.pushRoomStateTasks.size!==0){De.next=11;break}return De.next=6,this.getWidgetVersions();case 6:if(!De.sent.includes(i.UnstableApiVersion.MSC2762_UPDATE_STATE)){De.next=9;break}return De.next=9,this.transport.send(r.WidgetApiToWidgetAction.UpdateState,{state:[J]});case 9:De.next=21;break;case 11:de=this.pushRoomStateResult.get(J.room_id),de===void 0&&(de=new Map,this.pushRoomStateResult.set(J.room_id,de)),ue=de.get(J.type),ue===void 0&&(ue=new Map,de.set(J.type,ue)),ue.has(J.type)||ue.set(J.state_key,J);case 16:return De.next=18,Promise.all(g(this.pushRoomStateTasks));case 18:if(this.pushRoomStateTasks.size>0){De.next=16;break}case 19:return De.next=21,this.flushRoomStateTask;case 21:case"end":return De.stop()}},ee,this)}));function X(ee){return V.apply(this,arguments)}return X}()}]),q}(t.EventEmitter);return Df.ClientWidgetApi=ce,Df}var T5={};Object.defineProperty(T5,"__esModule",{value:!0}),T5.isErrorResponse=ape;function I5(t){"@babel/helpers - typeof";return I5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I5(t)}function ape(t){var e=t.error;return I5(e)==="object"&&e!==null&&"message"in e&&typeof e.message=="string"}var Qb={};Object.defineProperty(Qb,"__esModule",{value:!0}),Qb.WidgetKind=void 0;var spe=function(t){return t.Room="room",t.Account="account",t.Modal="modal",t}({});Qb.WidgetKind=spe;var eC={};Object.defineProperty(eC,"__esModule",{value:!0}),eC.ModalButtonKind=void 0;var upe=function(t){return t.Primary="m.primary",t.Secondary="m.secondary",t.Warning="m.warning",t.Danger="m.danger",t.Link="m.link",t}({});eC.ModalButtonKind=upe;var tC={};Object.defineProperty(tC,"__esModule",{value:!0}),tC.isValidUrl=lpe;function lpe(t){if(!t)return!1;try{var e=new URL(t);return!(e.protocol!=="http"&&e.protocol!=="https")}catch(n){if(n instanceof TypeError)return!1;throw n}}var nC={};Object.defineProperty(nC,"__esModule",{value:!0}),nC.assertPresent=cpe;function cpe(t,e){if(!t[e])throw new Error("".concat(String(e)," is required"))}var _f={},wq;function kq(){if(wq)return _f;wq=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.Widget=void 0;var t=nC,e=oC();function n(c){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},n(c)}function r(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}function o(c,d){for(var F=0;F<d.length;F++){var h=d[F];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(c,s(h.key),h)}}function i(c,d,F){return o(c.prototype,d),Object.defineProperty(c,"prototype",{writable:!1}),c}function s(c){var d=u(c,"string");return n(d)==="symbol"?d:String(d)}function u(c,d){if(n(c)!=="object"||c===null)return c;var F=c[Symbol.toPrimitive];if(F!==void 0){var h=F.call(c,d);if(n(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}var l=function(){function c(d){if(r(this,c),this.definition=d,!this.definition)throw new Error("Definition is required");(0,t.assertPresent)(d,"id"),(0,t.assertPresent)(d,"creatorUserId"),(0,t.assertPresent)(d,"type"),(0,t.assertPresent)(d,"url")}return i(c,[{key:"creatorUserId",get:function(){return this.definition.creatorUserId}},{key:"type",get:function(){return this.definition.type}},{key:"id",get:function(){return this.definition.id}},{key:"name",get:function(){return this.definition.name||null}},{key:"title",get:function(){return this.rawData.title||null}},{key:"templateUrl",get:function(){return this.definition.url}},{key:"origin",get:function(){return new URL(this.templateUrl).origin}},{key:"waitForIframeLoad",get:function(){return this.definition.waitForIframeLoad===!1?!1:(this.definition.waitForIframeLoad,!0)}},{key:"rawData",get:function(){return this.definition.data||{}}},{key:"getCompleteUrl",value:function(d){return(0,e.runTemplate)(this.templateUrl,this.definition,d)}}]),c}();return _f.Widget=l,_f}var vf={},Sq;function dpe(){if(Sq)return vf;Sq=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.WidgetParser=void 0;var t=kq(),e=tC;function n(h){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},n(h)}function r(h,m){var D=typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(!D){if(Array.isArray(h)||(D=o(h))||m){D&&(h=D);var g=0,p=function(){};return{s:p,n:function(){return g>=h.length?{done:!0}:{done:!1,value:h[g++]}},e:function(b){throw b},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _=!0,v=!1,E;return{s:function(){D=D.call(h)},n:function(){var b=D.next();return _=b.done,b},e:function(b){v=!0,E=b},f:function(){try{!_&&D.return!=null&&D.return()}finally{if(v)throw E}}}}function o(h,m){if(h){if(typeof h=="string")return i(h,m);var D=Object.prototype.toString.call(h).slice(8,-1);if(D==="Object"&&h.constructor&&(D=h.constructor.name),D==="Map"||D==="Set")return Array.from(h);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return i(h,m)}}function i(h,m){(m==null||m>h.length)&&(m=h.length);for(var D=0,g=new Array(m);D<m;D++)g[D]=h[D];return g}function s(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function u(h,m){for(var D=0;D<m.length;D++){var g=m[D];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,c(g.key),g)}}function l(h,m,D){return u(h,D),Object.defineProperty(h,"prototype",{writable:!1}),h}function c(h){var m=d(h,"string");return n(m)==="symbol"?m:String(m)}function d(h,m){if(n(h)!=="object"||h===null)return h;var D=h[Symbol.toPrimitive];if(D!==void 0){var g=D.call(h,m);if(n(g)!=="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(h)}var F=function(){function h(){s(this,h)}return l(h,null,[{key:"parseAccountData",value:function(m){if(!m)return[];for(var D=[],g=0,p=Object.keys(m);g<p.length;g++){var _=p[g],v=m[_];if(v&&!(v.type!=="m.widget"&&v.type!=="im.vector.modular.widgets")&&v.sender){var E=v.state_key||v.id;if(E===_){var b={content:v.content,sender:v.sender,type:"m.widget",state_key:_,event_id:"$example",room_id:"!example",origin_server_ts:1},k=h.parseRoomWidget(b);k&&D.push(k)}}}return D}},{key:"parseWidgetsFromRoomState",value:function(m){if(!m)return[];var D=[],g=r(m),p;try{for(g.s();!(p=g.n()).done;){var _=p.value,v=h.parseRoomWidget(_);v&&D.push(v)}}catch(E){g.e(E)}finally{g.f()}return D}},{key:"parseRoomWidget",value:function(m){if(!m||m.type!=="m.widget"&&m.type!=="im.vector.modular.widgets")return null;var D=m.content||{},g={id:m.state_key,creatorUserId:D.creatorUserId||m.sender,name:D.name,type:D.type,url:D.url,waitForIframeLoad:D.waitForIframeLoad,data:D.data};return h.processEstimatedWidget(g)}},{key:"processEstimatedWidget",value:function(m){return!m.id||!m.creatorUserId||!m.type||!(0,e.isValidUrl)(m.url)?null:new t.Widget(m)}}]),h}();return vf.WidgetParser=F,vf}var rC={};Object.defineProperty(rC,"__esModule",{value:!0}),rC.runTemplate=hpe,rC.toString=jq;function hpe(t,e,n){for(var r=Object.assign({},e.data,{matrix_room_id:n.widgetRoomId||"",matrix_user_id:n.currentUserId,matrix_display_name:n.userDisplayName||n.currentUserId,matrix_avatar_url:n.userHttpAvatarUrl||"",matrix_widget_id:e.id,"org.matrix.msc2873.client_id":n.clientId||"","org.matrix.msc2873.client_theme":n.clientTheme||"","org.matrix.msc2873.client_language":n.clientLanguage||"","org.matrix.msc3819.matrix_device_id":n.deviceId||"","org.matrix.msc4039.matrix_base_url":n.baseUrl||""}),o=t,i=0,s=Object.keys(r);i<s.length;i++){var u=s[i],l="$".concat(u).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=new RegExp(l,"g");o=o.replace(c,encodeURIComponent(jq(r[u])))}return o}function jq(t){return t==null?"".concat(t):String(t)}var bf={},Bq;function Fpe(){if(Bq)return bf;Bq=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.WidgetDriver=void 0;var t=oC();function e(l){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(l)}function n(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function r(l,c){for(var d=0;d<c.length;d++){var F=c[d];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(l,i(F.key),F)}}function o(l,c,d){return r(l.prototype,c),Object.defineProperty(l,"prototype",{writable:!1}),l}function i(l){var c=s(l,"string");return e(c)==="symbol"?c:String(c)}function s(l,c){if(e(l)!=="object"||l===null)return l;var d=l[Symbol.toPrimitive];if(d!==void 0){var F=d.call(l,c);if(e(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}var u=function(){function l(){n(this,l)}return o(l,[{key:"validateCapabilities",value:function(c){return Promise.resolve(new Set)}},{key:"sendEvent",value:function(c,d){return Promise.reject(new Error("Failed to override function"))}},{key:"sendDelayedEvent",value:function(c,d,F,h){return Promise.reject(new Error("Failed to override function"))}},{key:"updateDelayedEvent",value:function(c,d){return Promise.reject(new Error("Failed to override function"))}},{key:"sendToDevice",value:function(c,d,F){return Promise.reject(new Error("Failed to override function"))}},{key:"readRoomAccountData",value:function(c){return Promise.resolve([])}},{key:"readRoomEvents",value:function(c,d,F){return Promise.resolve([])}},{key:"readStateEvents",value:function(c,d,F){return Promise.resolve([])}},{key:"readRoomTimeline",value:function(c,d,F,h,m,D){return h===void 0?this.readRoomEvents(d,F,m,[c],D):this.readStateEvents(d,h,m,[c])}},{key:"readRoomState",value:function(c,d,F){return this.readStateEvents(d,F,Number.MAX_SAFE_INTEGER,[c])}},{key:"readEventRelations",value:function(c,d,F,h,m,D,g,p){return Promise.resolve({chunk:[]})}},{key:"askOpenID",value:function(c){c.update({state:t.OpenIDRequestState.Blocked})}},{key:"navigate",value:function(c){throw new Error("Navigation is not implemented")}},{key:"getTurnServers",value:function(){throw new Error("TURN server support is not implemented")}},{key:"searchUserDirectory",value:function(c,d){return Promise.resolve({limited:!1,results:[]})}},{key:"getMediaConfig",value:function(){throw new Error("Get media config is not implemented")}},{key:"uploadFile",value:function(c){throw new Error("Upload file is not implemented")}},{key:"downloadFile",value:function(c){throw new Error("Download file is not implemented")}},{key:"getKnownRooms",value:function(){throw new Error("Querying known rooms is not implemented")}},{key:"processError",value:function(c){}}]),l}();return bf.WidgetDriver=u,bf}var Aq;function oC(){return Aq||(Aq=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Hge();Object.keys(e).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===e[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return e[w]}})});var n=ipe();Object.keys(n).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===n[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return n[w]}})});var r=sm;Object.keys(r).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===r[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return r[w]}})});var o=B5();Object.keys(o).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===o[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return o[w]}})});var i=hf;Object.keys(i).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===i[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return i[w]}})});var s=T5;Object.keys(s).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===s[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return s[w]}})});var u=md;Object.keys(u).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===u[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return u[w]}})});var l=gh;Object.keys(l).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===l[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return l[w]}})});var c=Cu;Object.keys(c).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===c[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return c[w]}})});var d=Ha;Object.keys(d).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===d[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return d[w]}})});var F=am;Object.keys(F).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===F[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return F[w]}})});var h=Qb;Object.keys(h).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===h[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return h[w]}})});var m=eC;Object.keys(m).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===m[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return m[w]}})});var D=Ff;Object.keys(D).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===D[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return D[w]}})});var g=ff;Object.keys(g).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===g[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return g[w]}})});var p=Eu;Object.keys(p).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===p[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return p[w]}})});var _=tC;Object.keys(_).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===_[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return _[w]}})});var v=nC;Object.keys(v).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===v[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return v[w]}})});var E=kq();Object.keys(E).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===E[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return E[w]}})});var b=dpe();Object.keys(b).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===b[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return b[w]}})});var k=rC;Object.keys(k).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===k[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return k[w]}})});var C=gf;Object.keys(C).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===C[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return C[w]}})});var S=Fpe();Object.keys(S).forEach(function(w){w==="default"||w==="__esModule"||w in t&&t[w]===S[w]||Object.defineProperty(t,w,{enumerable:!0,get:function(){return S[w]}})})}(fq)),fq}var gd=oC();function Tq(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function iC(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tq(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tq(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mpe(t){var e,n,r,o=2;for(typeof Symbol<"u"&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&(e=t[n])!=null)return e.call(t);if(r&&(e=t[r])!=null)return new aC(e.call(t));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function aC(t){function e(n){if(Object(n)!==n)return Promise.reject(new TypeError(n+" is not an object."));var r=n.done;return Promise.resolve(n.value).then(function(o){return{value:o,done:r}})}return aC=function(n){this.s=n,this.n=n.next},aC.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(n){var r=this.s.return;return r===void 0?Promise.resolve({value:n,done:!0}):e(r.apply(this.s,arguments))},throw:function(n){var r=this.s.return;return r===void 0?Promise.reject(n):e(r.apply(this.s,arguments))}},new aC(t)}var sC=function(t){return t.PendingEventsChanged="PendingEvent.pendingEventsChanged",t}({});class Iq extends Jb{constructor(e,n,r,o,i){var s,u,l,c,d,F,h,m,D,g,p,_,v;super(o),s=this,this.widgetApi=e,this.capabilities=n,this.roomId=r,I(this,"room",void 0),I(this,"widgetApiReady",void 0),I(this,"lifecycle",void 0),I(this,"syncState",null),I(this,"pendingSendingEventsTxId",[]),I(this,"eventEmitter",new Cr),I(this,"updateTxId",function(){var k=Z(function*(C){if(C.getSender()===s.getUserId()&&s.pendingSendingEventsTxId.some(O=>C.getType()===O.type)){for(var S,w=(S=s.pendingSendingEventsTxId.find(O=>O.id===C.getId()))===null||S===void 0?void 0:S.txId;!w&&s.pendingSendingEventsTxId.length>0;){var A;yield new Promise(O=>s.eventEmitter.once(sC.PendingEventsChanged,()=>O())),w=(A=s.pendingSendingEventsTxId.find(O=>O.id===C.getId()))===null||A===void 0?void 0:A.txId}w&&(C.setTxnId(w),C.setUnsigned(iC(iC({},C.getUnsigned()),{},{transaction_id:w}))),s.pendingSendingEventsTxId=s.pendingSendingEventsTxId.filter(O=>O.id!==C.getId()),s.pendingSendingEventsTxId.length===0&&s.eventEmitter.emit(sC.PendingEventsChanged)}});return function(C){return k.apply(this,arguments)}}()),I(this,"onEvent",function(){var k=Z(function*(C){if(C.preventDefault(),C.detail.data.room_id===s.roomId){var S=new ii(C.detail.data);yield s.updateTxId(S),s.syncApi instanceof sh?yield s.syncApi.injectRoomEvents(s.room,[],void 0,[S]):yield s.syncApi.injectRoomEvents(s.room,[],[S]),s.emit(st.Event,S),s.setSyncState(bn.Syncing),Y.info("Received event ".concat(S.getId()," ").concat(S.getType()," ").concat(S.getStateKey()))}else{var{event_id:w,room_id:A}=C.detail.data;Y.info("Received event ".concat(w," for a different room ").concat(A,"; discarding"))}yield s.ack(C)});return function(C){return k.apply(this,arguments)}}()),I(this,"onToDevice",function(){var k=Z(function*(C){C.preventDefault();var S=new ii({type:C.detail.data.type,sender:C.detail.data.sender,content:C.detail.data.content});C.detail.data.encrypted&&S.makeEncrypted(Ce.RoomMessageEncrypted,{},"",""),s.emit(st.ToDeviceEvent,S),s.setSyncState(bn.Syncing),yield s.ack(C)});return function(C){return k.apply(this,arguments)}}());var E=this.widgetApi.transport.send.bind(this.widgetApi.transport);this.widgetApi.transport.send=function(){var k=Z(function*(C,S){try{return yield E(C,S)}catch(w){Rq(w)}});return function(C,S){return k.apply(this,arguments)}}();var b=this.widgetApi.transport.sendComplete.bind(this.widgetApi.transport);this.widgetApi.transport.sendComplete=function(){var k=Z(function*(C,S){try{return yield b(C,S)}catch(w){Rq(w)}});return function(C,S){return k.apply(this,arguments)}}(),this.widgetApiReady=new Promise(k=>this.widgetApi.once("ready",k)),((u=n.sendEvent)!==null&&u!==void 0&&u.length||(l=n.receiveEvent)!==null&&l!==void 0&&l.length||n.sendMessage===!0||Array.isArray(n.sendMessage)&&n.sendMessage.length||n.receiveMessage===!0||Array.isArray(n.receiveMessage)&&n.receiveMessage.length||(c=n.sendState)!==null&&c!==void 0&&c.length||(d=n.receiveState)!==null&&d!==void 0&&d.length)&&e.requestCapabilityForRoomTimeline(r),(F=n.sendEvent)===null||F===void 0||F.forEach(k=>e.requestCapabilityToSendEvent(k)),(h=n.receiveEvent)===null||h===void 0||h.forEach(k=>e.requestCapabilityToReceiveEvent(k)),n.sendMessage===!0?e.requestCapabilityToSendMessage():Array.isArray(n.sendMessage)&&n.sendMessage.forEach(k=>e.requestCapabilityToSendMessage(k)),n.receiveMessage===!0?e.requestCapabilityToReceiveMessage():Array.isArray(n.receiveMessage)&&n.receiveMessage.forEach(k=>e.requestCapabilityToReceiveMessage(k)),(m=n.sendState)===null||m===void 0||m.forEach(k=>{var{eventType:C,stateKey:S}=k;return e.requestCapabilityToSendState(C,S)}),(D=n.receiveState)===null||D===void 0||D.forEach(k=>{var{eventType:C,stateKey:S}=k;return e.requestCapabilityToReceiveState(C,S)}),(g=n.sendToDevice)===null||g===void 0||g.forEach(k=>e.requestCapabilityToSendToDevice(k)),(p=n.receiveToDevice)===null||p===void 0||p.forEach(k=>e.requestCapabilityToReceiveToDevice(k)),n.sendDelayedEvents&&((_=n.sendEvent)!==null&&_!==void 0&&_.length||n.sendMessage===!0||Array.isArray(n.sendMessage)&&n.sendMessage.length||(v=n.sendState)!==null&&v!==void 0&&v.length)&&e.requestCapability(gd.MatrixCapabilities.MSC4157SendDelayedEvent),n.updateDelayedEvents&&e.requestCapability(gd.MatrixCapabilities.MSC4157UpdateDelayedEvent),n.turnServers&&e.requestCapability(gd.MatrixCapabilities.MSC3846TurnServers),e.on("action:".concat(gd.WidgetApiToWidgetAction.SendEvent),this.onEvent),e.on("action:".concat(gd.WidgetApiToWidgetAction.SendToDevice),this.onToDevice),e.start(),i&&e.sendContentLoaded()}startClient(){var e=arguments,n=this;return Z(function*(){var r,o,i=e.length>0&&e[0]!==void 0?e[0]:{};n.lifecycle=new AbortController;var s=n.getUserId();s&&n.store.storeUser(new Ml(s)),i.slidingSync?n.syncApi=new kV(i.slidingSync,n,i,n.buildSyncApiOptions()):n.syncApi=new sh(n,i,n.buildSyncApiOptions()),n.room=n.syncApi.createRoom(n.roomId),n.store.storeRoom(n.room),yield n.widgetApiReady,yield Promise.all((r=(o=n.capabilities.receiveState)===null||o===void 0?void 0:o.map(function(){var u=Z(function*(l){var{eventType:c,stateKey:d}=l,F=yield n.widgetApi.readStateEvents(c,void 0,d,[n.roomId]),h=F.map(m=>new ii(m));n.syncApi instanceof sh?yield n.syncApi.injectRoomEvents(n.room,void 0,h):yield n.syncApi.injectRoomEvents(n.room,h),h.forEach(m=>{n.emit(st.Event,m),Y.info("Backfilled event ".concat(m.getId()," ").concat(m.getType()," ").concat(m.getStateKey()))})});return function(l){return u.apply(this,arguments)}}()))!==null&&r!==void 0?r:[]),i.clientWellKnownPollPeriod!==void 0&&(n.clientWellKnownIntervalID=setInterval(()=>{n.fetchClientWellKnown()},1e3*i.clientWellKnownPollPeriod),n.fetchClientWellKnown()),n.setSyncState(bn.Syncing),Y.info("Finished backfilling events"),n.matrixRTC.start(),n.capabilities.turnServers&&n.watchTurnServers()})()}stopClient(){this.widgetApi.off("action:".concat(gd.WidgetApiToWidgetAction.SendEvent),this.onEvent),this.widgetApi.off("action:".concat(gd.WidgetApiToWidgetAction.SendToDevice),this.onToDevice),super.stopClient(),this.lifecycle.abort()}joinRoom(e){var n=this;return Z(function*(){if(e===n.roomId)return n.room;throw new Error("Unknown room: ".concat(e))})()}encryptAndSendEvent(e,n,r){var o=this;return Z(function*(){var i=n.event.redacts?iC(iC({},n.getContent()),{},{redacts:n.event.redacts}):n.getContent();if(r){var s=yield o.widgetApi.sendRoomEvent(n.getType(),i,e.roomId,"delay"in r?r.delay:void 0,"parent_delay_id"in r?r.parent_delay_id:void 0).catch(yu);return o.validateSendDelayedEventResponse(s)}var u=n.getTxnId();u&&o.pendingSendingEventsTxId.push({type:n.getType(),id:void 0,txId:u});var l;try{l=yield o.widgetApi.sendRoomEvent(n.getType(),i,e.roomId).catch(yu)}catch(c){throw o.updatePendingEventStatus(e,n,Pt.NOT_SENT),c}return e.updatePendingEvent(n,Pt.SENT,l.event_id),o.pendingSendingEventsTxId.forEach(c=>{c.txId===u&&(c.id=l.event_id)}),o.eventEmitter.emit(sC.PendingEventsChanged),{event_id:l.event_id}})()}sendStateEvent(e,n,r){var o=arguments,i=this;return Z(function*(){var s=o.length>3&&o[3]!==void 0?o[3]:"",u=yield i.widgetApi.sendStateEvent(n,s,r,e).catch(yu);if(u.event_id===void 0)throw new Error("'event_id' absent from response to an event request");return{event_id:u.event_id}})()}_unstable_sendDelayedStateEvent(e,n,r,o){var i=arguments,s=this;return Z(function*(){var u=i.length>4&&i[4]!==void 0?i[4]:"";if(!(yield s.doesServerSupportUnstableFeature(vu)))throw new dd("Server does not support the delayed events API","sendDelayedStateEvent");var l=yield s.widgetApi.sendStateEvent(r,u,o,e,"delay"in n?n.delay:void 0,"parent_delay_id"in n?n.parent_delay_id:void 0).catch(yu);return s.validateSendDelayedEventResponse(l)})()}validateSendDelayedEventResponse(e){if(e.delay_id===void 0)throw new Error("'delay_id' absent from response to a delayed event request");return{delay_id:e.delay_id}}_unstable_updateDelayedEvent(e,n){var r=this;return Z(function*(){if(!(yield r.doesServerSupportUnstableFeature(vu)))throw new dd("Server does not support the delayed events API","updateDelayedEvent");return yield r.widgetApi.updateDelayedEvent(e,n).catch(yu),{}})()}encryptAndSendToDevice(e,n,r){var o=this;return Z(function*(){var i=new eu(()=>new Map);for(var{userId:s,deviceId:u}of n)i.getOrCreate(s).set(u,r);yield o.widgetApi.sendToDevice(e,!0,X1(i)).catch(yu)})()}sendToDevice(e,n){var r=this;return Z(function*(){return yield r.widgetApi.sendToDevice(e,!1,X1(n)).catch(yu),{}})()}getOpenIdToken(){var e=this;return Z(function*(){var n=yield e.widgetApi.requestOpenIDConnectToken().catch(yu);return{access_token:n.access_token,expires_in:n.expires_in,matrix_server_name:n.matrix_server_name,token_type:n.token_type}})()}queueToDevice(e){var n=this;return Z(function*(){var{eventType:r,batch:o}=e,i=new eu(()=>new Map);for(var{userId:s,deviceId:u,payload:l}of o)i.getOrCreate(s).set(u,l);yield n.widgetApi.sendToDevice(r,!1,X1(i)).catch(yu)})()}sendToDeviceViaWidgetApi(e,n,r){var o=this;return Z(function*(){yield o.widgetApi.sendToDevice(e,n,X1(r)).catch(yu)})()}checkTurnServers(){var e=this;return Z(function*(){return e.turnServers.length>0})()}getSyncState(){return this.syncState}setSyncState(e){var n=this.syncState;this.syncState=e,this.emit(st.Sync,e,n)}ack(e){var n=this;return Z(function*(){yield n.widgetApi.transport.reply(e.detail,{})})()}watchTurnServers(){var e=this;return Z(function*(){var n=e.widgetApi.getTurnServers(),r=()=>{n.return(void 0)};e.lifecycle.signal.addEventListener("abort",r);try{var o=!1,i=!1,s;try{for(var u=mpe(n),l;o=!(l=yield u.next()).done;o=!1){var c=l.value;e.turnServers=[{urls:c.uris,username:c.username,credential:c.password}],e.emit(st.TurnServers,e.turnServers),Y.log("Received TURN server: ".concat(c.uris))}}catch(d){i=!0,s=d}finally{try{o&&u.return!=null&&(yield u.return())}finally{if(i)throw s}}}catch(d){Y.warn("Error watching TURN servers",d)}finally{e.lifecycle.signal.removeEventListener("abort",r)}})()}}function Rq(t){throw t instanceof gd.WidgetApiResponseError&&t.data.matrix_api_error?tn.fromWidgetApiErrorData(t.data.matrix_api_error):t}function yu(t){throw t instanceof Error&&t.message==="Request timed out"?new ih("widget api timeout"):t}class Dpe{constructor(){I(this,"unthreadedReadReceipts",new Map),I(this,"threadedReadReceipts",new eu(()=>new Map))}setUnthreaded(e,n){this.unthreadedReadReceipts.set(e,n)}setThreaded(e,n,r){this.threadedReadReceipts.getOrCreate(e).set(n,r)}allUnthreaded(){return this.unthreadedReadReceipts.entries()}*allThreaded(){for(var e of this.threadedReadReceipts.values())for(var n of e.entries())yield n}consumeEphemeralEvents(e){e==null||e.forEach(n=>{n.type!==Ce.Receipt||!n.content||Object.keys(n.content).forEach(r=>{Object.entries(n.content[r]).forEach(o=>{var[i,s]=o;if(Nk(i))for(var u of Object.keys(s)){var l=n.content[r][i][u],c={data:n.content[r][i][u],type:i,eventId:r};l.thread_id?this.setThreaded(l.thread_id,u,c):this.setUnthreaded(u,c)}})})})}buildAccumulatedReceiptEvent(e){var n={type:Ce.Receipt,room_id:e,content:{}},r=new eu(()=>new eu(()=>new Map));for(var[o,i]of this.allUnthreaded())r.getOrCreate(i.eventId).getOrCreate(i.type).set(o,i.data);for(var[s,u]of this.allThreaded())r.getOrCreate(u.eventId).getOrCreate(u.type).set(s,u.data);return n.content=X1(r),r.size>0?n:null}}var Ul=function(t){return t.Invite="invite",t.Leave="leave",t.Join="join",t.Knock="knock",t}({});function gpe(t){return"_localTs"in t&&t._localTs!==void 0}class Oq{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.opts=e,I(this,"accountData",{}),I(this,"inviteRooms",{}),I(this,"knockRooms",{}),I(this,"joinRooms",{}),I(this,"nextBatch",null),this.opts.maxTimelineEntries=this.opts.maxTimelineEntries||50}accumulate(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.accumulateRooms(e,n),this.accumulateAccountData(e),this.nextBatch=e.next_batch}accumulateAccountData(e){!e.account_data||!e.account_data.events||e.account_data.events.forEach(n=>{this.accountData[n.type]=n})}accumulateRooms(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e.rooms&&(e.rooms.invite&&Object.keys(e.rooms.invite).forEach(r=>{this.accumulateRoom(r,Ul.Invite,e.rooms.invite[r],n)}),e.rooms.join&&Object.keys(e.rooms.join).forEach(r=>{this.accumulateRoom(r,Ul.Join,e.rooms.join[r],n)}),e.rooms.leave&&Object.keys(e.rooms.leave).forEach(r=>{this.accumulateRoom(r,Ul.Leave,e.rooms.leave[r],n)}),e.rooms.knock&&Object.keys(e.rooms.knock).forEach(r=>{this.accumulateRoom(r,Ul.Knock,e.rooms.knock[r],n)}))}accumulateRoom(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;switch(n){case Ul.Invite:this.knockRooms[e]&&delete this.knockRooms[e],this.accumulateInviteState(e,r);break;case Ul.Knock:this.accumulateKnockState(e,r);break;case Ul.Join:this.inviteRooms[e]&&delete this.inviteRooms[e],this.accumulateJoinState(e,r,o);break;case Ul.Leave:this.knockRooms[e]?delete this.knockRooms[e]:this.inviteRooms[e]?delete this.inviteRooms[e]:delete this.joinRooms[e];break;default:Y.error("Unknown cateogory: ",n)}}accumulateInviteState(e,n){if(!(!n.invite_state||!n.invite_state.events)){if(!this.inviteRooms[e]){this.inviteRooms[e]={invite_state:n.invite_state};return}var r=this.inviteRooms[e];n.invite_state.events.forEach(o=>{for(var i=!1,s=0;s<r.invite_state.events.length;s++){var u=r.invite_state.events[s];u.type===o.type&&u.state_key==o.state_key&&(r.invite_state.events[s]=o,i=!0)}i||r.invite_state.events.push(o)})}}accumulateKnockState(e,n){if(!(!n.knock_state||!n.knock_state.events)){if(!this.knockRooms[e]){this.knockRooms[e]={knock_state:n.knock_state};return}var r=this.knockRooms[e];n.knock_state.events.forEach(o=>{for(var i=!1,s=0;s<r.knock_state.events.length;s++){var u=r.knock_state.events[s];u.type===o.type&&u.state_key==o.state_key&&(r.knock_state.events[s]=o,i=!0)}i||r.knock_state.events.push(o)})}}accumulateJoinState(e,n){var r,o,i,s,u,l,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.joinRooms[e]||(this.joinRooms[e]={_currentState:Object.create(null),_timeline:[],_accountData:Object.create(null),_unreadNotifications:{},_unreadThreadNotifications:{},_summary:{},_receipts:new Dpe});var d=this.joinRooms[e];if(n.account_data&&n.account_data.events&&n.account_data.events.forEach(k=>{d._accountData[k.type]=k}),n.unread_notifications&&(d._unreadNotifications=n.unread_notifications),d._unreadThreadNotifications=(r=(o=n[$p.stable])!==null&&o!==void 0?o:n[$p.unstable])!==null&&r!==void 0?r:void 0,n.summary){var F,h,m,D="m.heroes",g="m.invited_member_count",p="m.joined_member_count",_=d._summary,v=n.summary;_[D]=(F=v[D])!==null&&F!==void 0?F:_[D],_[p]=(h=v[p])!==null&&h!==void 0?h:_[p],_[g]=(m=v[g])!==null&&m!==void 0?m:_[g]}if(d._receipts.consumeEphemeralEvents((i=n.ephemeral)===null||i===void 0?void 0:i.events),n.timeline&&n.timeline.limited&&(d._timeline=[]),(s=n.state)===null||s===void 0||(s=s.events)===null||s===void 0||s.forEach(k=>{uC(d._currentState,k)}),(u=n["org.matrix.msc4222.state_after"])===null||u===void 0||(u=u.events)===null||u===void 0||u.forEach(k=>{uC(d._currentState,k)}),(l=n.timeline)===null||l===void 0||(l=l.events)===null||l===void 0||l.forEach((k,C)=>{var S;n["org.matrix.msc4222.state_after"]||uC(d._currentState,k);var w;if(c)w=k;else{var A;w=Object.assign({},k),w.unsigned!==void 0&&(w.unsigned=Object.assign({},w.unsigned));var O=(A=k.unsigned)===null||A===void 0?void 0:A.age;O!==void 0&&(w._localTs=Date.now()-O)}d._timeline.push({event:w,token:C===0&&(S=n.timeline.prev_batch)!==null&&S!==void 0?S:null})}),d._timeline.length>this.opts.maxTimelineEntries){for(var E=d._timeline.length-this.opts.maxTimelineEntries,b=E;b<d._timeline.length;b++)if(d._timeline[b].token){d._timeline=d._timeline.slice(b,d._timeline.length);break}}}getJSON(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n={join:{},invite:{},knock:{},leave:{}};Object.keys(this.inviteRooms).forEach(o=>{n.invite[o]=this.inviteRooms[o]}),Object.keys(this.knockRooms).forEach(o=>{n.knock[o]=this.knockRooms[o]}),Object.keys(this.joinRooms).forEach(o=>{var i=this.joinRooms[o],s={ephemeral:{events:[]},account_data:{events:[]},state:{events:[]},"org.matrix.msc4222.state_after":{events:[]},timeline:{events:[],prev_batch:null},unread_notifications:i._unreadNotifications,unread_thread_notifications:i._unreadThreadNotifications,summary:i._summary};Object.keys(i._accountData).forEach(h=>{s.account_data.events.push(i._accountData[h])});var u=i._receipts.buildAccumulatedReceiptEvent(o);u&&s.ephemeral.events.push(u),i._timeline.forEach(h=>{if(!s.timeline.prev_batch){if(!h.token)return;s.timeline.prev_batch=h.token}var m;!e&&gpe(h.event)?(m=Object.assign({},h.event),m.unsigned!==void 0&&(m.unsigned=Object.assign({},m.unsigned)),delete m._localTs,m.unsigned=m.unsigned||{},m.unsigned.age=Date.now()-h.event._localTs):m=h.event,s.timeline.events.push(m)});for(var l=Object.create(null),c=s.timeline.events.length-1;c>=0;c--){var d=s.timeline.events[c];if(!(d.state_key===null||d.state_key===void 0)){var F=Cp(d);F.unsigned&&(F.unsigned.prev_content&&(F.content=F.unsigned.prev_content),F.unsigned.prev_sender&&(F.sender=F.unsigned.prev_sender)),uC(l,F)}}Object.keys(i._currentState).forEach(h=>{Object.keys(i._currentState[h]).forEach(m=>{var D=i._currentState[h][m];s["org.matrix.msc4222.state_after"].events.push(D),l[h]&&l[h][m]&&(D=l[h][m]),s.state.events.push(D)})}),n.join[o]=s});var r=[];return Object.keys(this.accountData).forEach(o=>{r.push(this.accountData[o])}),{nextBatch:this.nextBatch,roomsData:n,accountData:r}}getNextBatchToken(){return this.nextBatch}}function uC(t,e){e.state_key===null||e.state_key===void 0||!e.type||(t[e.type]||(t[e.type]=Object.create(null)),t[e.type][e.state_key]=e)}ax=function(t){return t[t.Blocked=-1]="Blocked",t[t.Unverified=0]="Unverified",t[t.Verified=1]="Verified",t}({}),TI=class{constructor(t){I(this,"deviceId",void 0),I(this,"userId",void 0),I(this,"algorithms",void 0),I(this,"keys",void 0),I(this,"verified",void 0),I(this,"signatures",void 0),I(this,"displayName",void 0),I(this,"dehydrated",!1),this.deviceId=t.deviceId,this.userId=t.userId,this.algorithms=t.algorithms,this.keys=t.keys,this.verified=t.verified||ax.Unverified,this.signatures=t.signatures||new Map,this.displayName=t.displayName,this.dehydrated=!!t.dehydrated}getFingerprint(){return this.keys.get("ed25519:".concat(this.deviceId))}getIdentityKey(){return this.keys.get("curve25519:".concat(this.deviceId))}};var Mq=function(){},ppe=10;class fpe{constructor(e,n){var r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.client=e,this.timelineSet=n,I(this,"windowLimit",void 0),I(this,"start",void 0),I(this,"end",void 0),I(this,"eventCount",0),this.windowLimit=o.windowLimit||1e3,(r=n.room)===null||r===void 0||r.on(Ke.Timeline,this.onTimelineEvent.bind(this))}load(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,r=o=>{if(!o)throw new Error("No timeline given to initFields");var i,s=o.getEvents();if(!e)i=s.length;else if(i=s.findIndex(c=>c.getId()===e),i<0)throw new Error("getEventTimeline result didn't include requested event");var u=Math.min(s.length,i+Math.ceil(n/2)),l=Math.max(0,u-n);this.start=new R5(o,l-o.getBaseIndex()),this.end=new R5(o,u-o.getBaseIndex()),this.eventCount=u-l};return this.timelineSet.getTimelineForEvent(e)?(r(this.timelineSet.getTimelineForEvent(e)),Promise.resolve()):e?this.client.getEventTimeline(this.timelineSet,e).then(r):(r(this.timelineSet.getLiveTimeline()),Promise.resolve())}getTimelineIndex(e){if(e==it.BACKWARDS){var n;return(n=this.start)!==null&&n!==void 0?n:null}else if(e==it.FORWARDS){var r;return(r=this.end)!==null&&r!==void 0?r:null}else throw new Error("Invalid direction '"+e+"'")}extend(e,n){var r=this.getTimelineIndex(e);if(!r)return!1;var o=e==it.BACKWARDS?r.retreat(n):r.advance(n);if(o){this.eventCount+=o,Mq("TimelineWindow: increased cap by "+o+" (now "+this.eventCount+")");var i=this.eventCount-this.windowLimit;return i>0&&this.unpaginate(i,e!=it.BACKWARDS),!0}return!1}onTimelineEvent(e,n,r,o){o&&this.onEventRemoved()}onEventRemoved(){var e=this.getEvents();e.length>0&&e[e.length-1]===void 0&&this.end&&this.end.index--}canPaginate(e){var n=this.getTimelineIndex(e);if(!n)return!1;if(e==it.BACKWARDS){if(n.index>n.minIndex())return!0}else if(n.index<n.maxIndex())return!0;var r=n.timeline.getNeighbouringTimeline(e),o=n.timeline.getPaginationToken(e);return!!r||!!o}paginate(e,n){var r=arguments,o=this;return Z(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:!0,s=r.length>3&&r[3]!==void 0?r[3]:ppe,u=o.getTimelineIndex(e);if(!u)return!1;if(u.pendingPaginate)return u.pendingPaginate;if(o.extend(e,n))return!0;if(!i||s===0)return!1;var l=u.timeline.getPaginationToken(e);if(!l)return!1;var c=o.client.paginateEventTimeline(u.timeline,{backwards:e==it.BACKWARDS,limit:n}).finally(function(){u.pendingPaginate=void 0}).then(d=>d?o.paginate(e,n,!0,s-1):o.paginate(e,n,!1,0));return u.pendingPaginate=c,c})()}unpaginate(e,n){var r=n?this.start:this.end;if(!r)throw new Error("Attempting to unpaginate startOfTimeline=".concat(n," but don't have this direction"));if(e>this.eventCount||e<0)throw new Error("Attemting to unpaginate ".concat(e," events, but only have ").concat(this.eventCount," in the timeline"));for(;e>0;){var o=n?r.advance(e):r.retreat(e);if(o<=0)throw new Error("Unable to unpaginate any further, but still have "+this.eventCount+" events");e-=o,this.eventCount-=o,Mq("TimelineWindow.unpaginate: dropped "+o+" (now "+this.eventCount+")")}}getEvents(){if(!this.start)return[];for(var e=[],n=this.start.timeline;n;){var r,o,i=n.getEvents(),s=0,u=i.length;n===this.start.timeline&&(s=this.start.index+n.getBaseIndex()),n===((r=this.end)===null||r===void 0?void 0:r.timeline)&&(u=this.end.index+n.getBaseIndex());for(var l=s;l<u;l++)e.push(i[l]);if(n===((o=this.end)===null||o===void 0?void 0:o.timeline))break;n=n.getNeighbouringTimeline(it.FORWARDS)}return e}}class R5{constructor(e,n){this.timeline=e,this.index=n,I(this,"pendingPaginate",void 0)}minIndex(){return this.timeline.getBaseIndex()*-1}maxIndex(){return this.timeline.getEvents().length-this.timeline.getBaseIndex()}advance(e){if(!e)return 0;var n;if(e<0){if(n=Math.max(e,this.minIndex()-this.index),n<0)return this.index+=n,n}else if(n=Math.min(e,this.maxIndex()-this.index),n>0)return this.index+=n,n;var r=this.timeline.getNeighbouringTimeline(e<0?it.BACKWARDS:it.FORWARDS);return r?(this.timeline=r,e<0?this.index=this.maxIndex():this.index=this.minIndex(),this.advance(e)):0}retreat(e){return this.advance(e*-1)*-1}}var Cf="m.login.email.identity",Pq="m.login.msisdn",Jt=function(t){return t.Password="m.login.password",t.Recaptcha="m.login.recaptcha",t.Terms="m.login.terms",t.Email="m.login.email.identity",t.Msisdn="m.login.msisdn",t.Sso="m.login.sso",t.SsoUnstable="org.matrix.login.sso",t.Dummy="m.login.dummy",t.RegistrationToken="m.login.registration_token",t.UnstableRegistrationToken="org.matrix.msc3231.login.registration_token",t}({});class Lq extends Error{constructor(e,n,r){super(e),this.required_stages=n,this.flows=r,I(this,"name","NoAuthFlowFoundError")}}class _pe{constructor(e){var n=this;I(this,"matrixClient",void 0),I(this,"inputs",void 0),I(this,"clientSecret",void 0),I(this,"requestCallback",void 0),I(this,"busyChangedCallback",void 0),I(this,"stateUpdatedCallback",void 0),I(this,"requestEmailTokenCallback",void 0),I(this,"supportedStages",void 0),I(this,"data",void 0),I(this,"emailSid",void 0),I(this,"requestingEmailToken",!1),I(this,"attemptAuthDeferred",null),I(this,"chosenFlow",null),I(this,"currentStage",null),I(this,"emailAttempt",1),I(this,"submitPromise",null),I(this,"requestEmailToken",Z(function*(){if(n.requestingEmailToken)Y.warn("Could not request email token: Already requesting");else{Y.trace("Requesting email token. Attempt: "+n.emailAttempt),n.requestingEmailToken=!0;try{var r=yield n.requestEmailTokenCallback(n.inputs.emailAddress,n.clientSecret,n.emailAttempt++,n.data.session);n.emailSid=r.sid,Y.trace("Email token request succeeded")}finally{n.requestingEmailToken=!1}}})),this.matrixClient=e.matrixClient,this.data=e.authData||{flows:[]},this.requestCallback=e.doRequest,this.busyChangedCallback=e.busyChanged,this.stateUpdatedCallback=e.stateUpdated||e.startAuthStage,this.requestEmailTokenCallback=e.requestEmailToken,this.inputs=e.inputs||{},e.sessionId&&(this.data.session=e.sessionId),this.clientSecret=e.clientSecret||this.matrixClient.generateClientSecret(),this.emailSid=e.emailSid,e.supportedStages!==void 0&&(this.supportedStages=new Set(e.supportedStages))}attemptAuth(){var e=this;return Z(function*(){var n;e.attemptAuthDeferred=ll();var r=e.attemptAuthDeferred.promise;if((n=e.data)!==null&&n!==void 0&&(n=n.flows)!==null&&n!==void 0&&n.length)e.startNextAuthStage();else{var o;(o=e.busyChangedCallback)===null||o===void 0||o.call(e,!0);var i=e.data.session?{session:e.data.session}:null;e.doRequest(i).finally(()=>{var s;(s=e.busyChangedCallback)===null||s===void 0||s.call(e,!1)})}return r})()}poll(){var e=this;return Z(function*(){if(e.data.session&&e.attemptAuthDeferred&&!e.submitPromise){var n={};if(e.currentStage==Cf&&e.emailSid){var r={sid:e.emailSid,client_secret:e.clientSecret},o=e.matrixClient.getIdentityServerUrl();o&&(r.id_server=new URL(o).host),n={type:Cf,threepid_creds:r}}e.submitAuthDict(n,!0)}})()}getSessionId(){var e;return(e=this.data)===null||e===void 0?void 0:e.session}getClientSecret(){return this.clientSecret}getStageParams(e){var n;return(n=this.data)===null||n===void 0||(n=n.params)===null||n===void 0?void 0:n[e]}getChosenFlow(){return this.chosenFlow}submitAuthDict(e){var n=arguments,r=this;return Z(function*(){var o,i=n.length>1&&n[1]!==void 0?n[1]:!1;if(!r.attemptAuthDeferred)throw new Error("submitAuthDict() called before attemptAuth()");if(!i){var s;(s=r.busyChangedCallback)===null||s===void 0||s.call(r,!0)}for(;r.submitPromise;)try{yield r.submitPromise}catch{}var u;(o=r.data)!==null&&o!==void 0&&o.session?u=Object.assign({session:r.data.session},e):u=e;try{r.submitPromise=r.doRequest(u,i),yield r.submitPromise}finally{if(r.submitPromise=null,!i){var l;(l=r.busyChangedCallback)===null||l===void 0||l.call(r,!1)}}})()}getEmailSid(){return this.emailSid}setEmailSid(e){this.emailSid=e}doRequest(e){var n=arguments,r=this;return Z(function*(){var o=n.length>1&&n[1]!==void 0?n[1]:!1;try{var i=yield r.requestCallback(e,o);r.attemptAuthDeferred.resolve(i),r.attemptAuthDeferred=null}catch(D){var s,u,l,c,d=D instanceof tn?D:null,F=(s=d==null||(u=d.data)===null||u===void 0?void 0:u.flows)!==null&&s!==void 0?s:null,h=((l=r.data)===null||l===void 0?void 0:l.flows)||!!F;if(!d||d.httpStatus!==401||!d.data||!h)if(o)Y.log("Background poll request failed doing UI auth: ignoring",D);else{var m;(m=r.attemptAuthDeferred)===null||m===void 0||m.reject(D)}d&&!d.data&&(d.data={}),d&&!d.data.flows&&!d.data.completed&&!d.data.session&&(d.data.flows=r.data.flows,d.data.completed=r.data.completed,d.data.session=r.data.session),d&&(r.data=d.data);try{r.startNextAuthStage()}catch(g){r.attemptAuthDeferred.reject(g),r.attemptAuthDeferred=null;return}if(!r.emailSid&&(c=r.chosenFlow)!==null&&c!==void 0&&c.stages.includes(Jt.Email))try{yield r.requestEmailToken()}catch(g){r.attemptAuthDeferred.reject(g),r.attemptAuthDeferred=null}}})()}startNextAuthStage(){var e,n,r=this.chooseStage();if(!r)throw new Error("No incomplete flows from the server");if(this.currentStage=r,r===Jt.Dummy){this.submitAuthDict({type:"m.login.dummy"});return}if((e=this.data)!==null&&e!==void 0&&e.errcode||(n=this.data)!==null&&n!==void 0&&n.error){var o,i;this.stateUpdatedCallback(r,{errcode:((o=this.data)===null||o===void 0?void 0:o.errcode)||"",error:((i=this.data)===null||i===void 0?void 0:i.error)||""});return}this.stateUpdatedCallback(r,r===Cf?{emailSid:this.emailSid}:{})}chooseStage(){this.chosenFlow===null&&(this.chosenFlow=this.chooseFlow()),Y.log("Active flow => %s",JSON.stringify(this.chosenFlow));var e=this.firstUncompletedStage(this.chosenFlow);return Y.log("Next stage: %s",e),e}scoreFlow(e){var n=e.stages.length;return this.supportedStages!==void 0&&(n+=e.stages.filter(r=>!this.supportedStages.has(r)).length*10),n}chooseFlow(){var e,n=((e=this.data)===null||e===void 0?void 0:e.flows)||[],r=!!this.inputs.emailAddress||!!this.emailSid,o=!!this.inputs.phoneCountry&&!!this.inputs.phoneNumber;n.sort((d,F)=>this.scoreFlow(d)-this.scoreFlow(F));for(var i of n){var s=!1,u=!1;for(var l of i.stages)l===Cf?s=!0:l==Pq&&(u=!0);if(s==r&&u==o)return i}var c=[];throw r&&c.push(Cf),o&&c.push(Pq),new Lq("No appropriate authentication flow found",c,n)}firstUncompletedStage(e){var n,r=((n=this.data)===null||n===void 0?void 0:n.completed)||[];return e.stages.find(o=>!r.includes(o))}}function Nq(t,e){return new Promise((n,r)=>{var o=!0,i=t.open(e);i.onupgradeneeded=()=>{o=!1},i.onblocked=()=>r(i.error),i.onsuccess=()=>{var s=i.result;s.close(),o||t.deleteDatabase(e),n(o)},i.onerror=()=>r(i.error)})}var zq=[t=>{t.createObjectStore("users",{keyPath:["userId"]}),t.createObjectStore("accountData",{keyPath:["type"]}),t.createObjectStore("sync",{keyPath:["clobber"]})},t=>{var e=t.createObjectStore("oob_membership_events",{keyPath:["room_id","state_key"]});e.createIndex("room","room_id")},t=>{t.createObjectStore("client_options",{keyPath:["clobber"]})},t=>{t.createObjectStore("to_device_queue",{autoIncrement:!0})}],vpe=zq.length;function lC(t,e,n){var r=t.openCursor(e);return new Promise((o,i)=>{var s=[];r.onerror=()=>{var u;i(new Error("Query failed: "+((u=r.error)===null||u===void 0?void 0:u.name)))},r.onsuccess=()=>{var u=r.result;if(!u){o(s);return}s.push(n(u)),u.continue()}})}function ph(t){return new Promise((e,n)=>{t.oncomplete=function(r){e(r)},t.onerror=function(){n(t.error)}})}function Uq(t){return new Promise((e,n)=>{t.onsuccess=function(r){e(r)},t.onerror=function(){n(t.error)}})}function bpe(t){return new Promise((e,n)=>{t.onsuccess=()=>e(t),t.onerror=r=>n(r)})}function O5(t){return Uq(t).then(e=>t.result)}class Vq{static exists(e,n){return n="matrix-js-sdk:"+(n||"default"),Nq(e,n)}constructor(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default";this.indexedDB=e,I(this,"dbName",void 0),I(this,"syncAccumulator",void 0),I(this,"db",void 0),I(this,"disconnected",!0),I(this,"_isNewlyCreated",!1),I(this,"syncToDatabasePromise",void 0),I(this,"pendingUserPresenceData",[]),this.dbName="matrix-js-sdk:"+n,this.syncAccumulator=new Oq}connect(e){var n=this;if(!this.disconnected)return Y.log("LocalIndexedDBStoreBackend.connect: already connected or connecting"),Promise.resolve();this.disconnected=!1,Y.log("LocalIndexedDBStoreBackend.connect: connecting...");var r=this.indexedDB.open(this.dbName,vpe);return r.onupgradeneeded=o=>{var i=r.result,s=o.oldVersion;Y.log("LocalIndexedDBStoreBackend.connect: upgrading from ".concat(s)),s<1&&(this._isNewlyCreated=!0),zq.forEach((u,l)=>{s<=l&&u(i)})},r.onblocked=()=>{Y.log("can't yet open LocalIndexedDBStoreBackend because it is open elsewhere")},Y.log("LocalIndexedDBStoreBackend.connect: awaiting connection..."),Uq(r).then(Z(function*(){Y.log("LocalIndexedDBStoreBackend.connect: connected"),n.db=r.result,n.db.onversionchange=()=>{var o;(o=n.db)===null||o===void 0||o.close(),n.disconnected=!0,n.db=void 0},n.db.onclose=()=>{n.disconnected=!0,n.db=void 0,e==null||e()},yield n.init()}))}isNewlyCreated(){return Promise.resolve(this._isNewlyCreated)}init(){return Promise.all([this.loadAccountData(),this.loadSyncData()]).then(e=>{var[n,r]=e;Y.log("LocalIndexedDBStoreBackend: loaded initial data"),this.syncAccumulator.accumulate({next_batch:r.nextBatch,rooms:r.roomsData,account_data:{events:n}},!0)})}getOutOfBandMembers(e){return new Promise((n,r)=>{var o=this.db.transaction(["oob_membership_events"],"readonly"),i=o.objectStore("oob_membership_events"),s=i.index("room"),u=IDBKeyRange.only(e),l=s.openCursor(u),c=[],d=!1;l.onsuccess=()=>{var F=l.result;if(!F)return!c.length&&!d?n(null):n(c);var h=F.value;h.oob_written?d=!0:c.push(h),F.continue()},l.onerror=F=>{r(F)}}).then(n=>(Y.log("LL: got ".concat(n==null?void 0:n.length," membershipEvents from storage for room ").concat(e," ...")),n))}setOutOfBandMembers(e,n){var r=this;return Z(function*(){Y.log("LL: backend about to store ".concat(n.length)+" members for ".concat(e));var o=r.db.transaction(["oob_membership_events"],"readwrite"),i=o.objectStore("oob_membership_events");n.forEach(u=>{i.put(u)});var s={room_id:e,oob_written:!0,state_key:0};i.put(s),yield ph(o),Y.log("LL: backend done storing for ".concat(e,"!"))})()}clearOutOfBandMembers(e){var n=this;return Z(function*(){var r=n.db.transaction(["oob_membership_events"],"readonly"),o=r.objectStore("oob_membership_events"),i=o.index("room"),s=IDBKeyRange.only(e),u=O5(i.openKeyCursor(s,"next")).then(D=>(D==null?void 0:D.primaryKey)[1]),l=O5(i.openKeyCursor(s,"prev")).then(D=>(D==null?void 0:D.primaryKey)[1]),[c,d]=yield Promise.all([u,l]),F=n.db.transaction(["oob_membership_events"],"readwrite"),h=F.objectStore("oob_membership_events"),m=IDBKeyRange.bound([e,c],[e,d]);Y.log("LL: Deleting all users + marker in storage for room ".concat(e,", with key range:"),[e,c],[e,d]),yield bpe(h.delete(m))})()}clearDatabase(){return new Promise(e=>{var n;Y.log("Removing indexeddb instance: ".concat(this.dbName)),(n=this.db)===null||n===void 0||n.close();var r=this.indexedDB.deleteDatabase(this.dbName);r.onblocked=()=>{Y.log("can't yet delete indexeddb ".concat(this.dbName," because it is open elsewhere"))},r.onerror=()=>{var o;Y.warn("unable to delete js-sdk store indexeddb: ".concat((o=r.error)===null||o===void 0?void 0:o.name)),e()},r.onsuccess=()=>{Y.log("Removed indexeddb instance: ".concat(this.dbName)),e()}})}getSavedSync(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,n=this.syncAccumulator.getJSON();return n.nextBatch?e?Promise.resolve(Cp(n)):Promise.resolve(n):Promise.resolve(null)}getNextBatchToken(){return Promise.resolve(this.syncAccumulator.getNextBatchToken())}setSyncData(e){return Promise.resolve().then(()=>{this.syncAccumulator.accumulate(e)})}syncToDatabase(e){var n=this;return Z(function*(){return n.syncToDatabasePromise?(Y.warn("Skipping syncToDatabase() as persist already in flight"),n.pendingUserPresenceData.push(...e),n.syncToDatabasePromise):(e.unshift(...n.pendingUserPresenceData),n.syncToDatabasePromise=n.doSyncToDatabase(e),n.syncToDatabasePromise)})()}doSyncToDatabase(e){var n=this;return Z(function*(){try{var r=n.syncAccumulator.getJSON(!0);yield Promise.all([n.persistUserPresenceEvents(e),n.persistAccountData(r.accountData),n.persistSyncData(r.nextBatch,r.roomsData)])}finally{n.syncToDatabasePromise=void 0}})()}persistSyncData(e,n){return Y.log("Persisting sync data up to",e),AF(()=>{var r=this.db.transaction(["sync"],"readwrite"),o=r.objectStore("sync");return o.put({clobber:"-",nextBatch:e,roomsData:n}),ph(r).then(()=>{Y.log("Persisted sync data up to",e)})})}persistAccountData(e){return AF(()=>{var n=this.db.transaction(["accountData"],"readwrite"),r=n.objectStore("accountData");for(var o of e)r.put(o);return ph(n).then()})}persistUserPresenceEvents(e){return AF(()=>{var n=this.db.transaction(["users"],"readwrite"),r=n.objectStore("users");for(var o of e)r.put({userId:o[0],event:o[1]});return ph(n).then()})}getUserPresenceEvents(){return AF(()=>{var e=this.db.transaction(["users"],"readonly"),n=e.objectStore("users");return lC(n,void 0,r=>[r.value.userId,r.value.event])})}loadAccountData(){return Y.log("LocalIndexedDBStoreBackend: loading account data..."),AF(()=>{var e=this.db.transaction(["accountData"],"readonly"),n=e.objectStore("accountData");return lC(n,void 0,r=>r.value).then(r=>(Y.log("LocalIndexedDBStoreBackend: loaded account data"),r))})}loadSyncData(){return Y.log("LocalIndexedDBStoreBackend: loading sync data..."),AF(()=>{var e=this.db.transaction(["sync"],"readonly"),n=e.objectStore("sync");return lC(n,void 0,r=>r.value).then(r=>(Y.log("LocalIndexedDBStoreBackend: loaded sync data"),r.length>1&&Y.warn("loadSyncData: More than 1 sync row found."),r.length>0?r[0]:{}))})}getClientOptions(){return Promise.resolve().then(()=>{var e=this.db.transaction(["client_options"],"readonly"),n=e.objectStore("client_options");return lC(n,void 0,r=>{var o;return(o=r.value)===null||o===void 0?void 0:o.options}).then(r=>r[0])})}storeClientOptions(e){var n=this;return Z(function*(){var r=n.db.transaction(["client_options"],"readwrite"),o=r.objectStore("client_options");o.put({clobber:"-",options:e}),yield ph(r)})()}saveToDeviceBatches(e){var n=this;return Z(function*(){var r=n.db.transaction(["to_device_queue"],"readwrite"),o=r.objectStore("to_device_queue");for(var i of e)o.add(i);yield ph(r)})()}getOldestToDeviceBatch(){var e=this;return Z(function*(){var n=e.db.transaction(["to_device_queue"],"readonly"),r=n.objectStore("to_device_queue"),o=yield O5(r.openCursor());if(!o)return null;var i=o.value;return{id:o.key,txnId:i.txnId,eventType:i.eventType,batch:i.batch}})()}removeToDeviceBatch(e){var n=this;return Z(function*(){var r=n.db.transaction(["to_device_queue"],"readwrite"),o=r.objectStore("to_device_queue");o.delete(e),yield ph(r)})()}destroy(){var e=this;return Z(function*(){var n;(n=e.db)===null||n===void 0||n.close()})()}}class Cpe{constructor(e,n){this.workerFactory=e,this.dbName=n,I(this,"worker",void 0),I(this,"nextSeq",0),I(this,"inFlight",{}),I(this,"startPromise",void 0),I(this,"onWorkerMessage",r=>{var o=r.data;if(o.command=="closed"){var i;(i=this.onClose)===null||i===void 0||i.call(this)}else if(o.command=="cmd_success"||o.command=="cmd_fail"){if(o.seq===void 0){Y.error("Got reply from worker with no seq");return}var s=this.inFlight[o.seq];if(s===void 0){Y.error("Got reply for unknown seq "+o.seq);return}if(delete this.inFlight[o.seq],o.command=="cmd_success")s.resolve(o.result);else{var u=new Error(o.error.message);u.name=o.error.name,s.reject(u)}}else Y.warn("Unrecognised message from worker: ",o)})}connect(e){return this.onClose=e,this.ensureStarted().then(()=>this.doCmd("connect"))}clearDatabase(){return this.ensureStarted().then(()=>this.doCmd("clearDatabase"))}isNewlyCreated(){return this.doCmd("isNewlyCreated")}getSavedSync(){return this.doCmd("getSavedSync")}getNextBatchToken(){return this.doCmd("getNextBatchToken")}setSyncData(e){return this.doCmd("setSyncData",[e])}syncToDatabase(e){return this.doCmd("syncToDatabase",[e])}getOutOfBandMembers(e){return this.doCmd("getOutOfBandMembers",[e])}setOutOfBandMembers(e,n){return this.doCmd("setOutOfBandMembers",[e,n])}clearOutOfBandMembers(e){return this.doCmd("clearOutOfBandMembers",[e])}getClientOptions(){return this.doCmd("getClientOptions")}storeClientOptions(e){return this.doCmd("storeClientOptions",[e])}getUserPresenceEvents(){return this.doCmd("getUserPresenceEvents")}saveToDeviceBatches(e){var n=this;return Z(function*(){return n.doCmd("saveToDeviceBatches",[e])})()}getOldestToDeviceBatch(){var e=this;return Z(function*(){return e.doCmd("getOldestToDeviceBatch")})()}removeToDeviceBatch(e){var n=this;return Z(function*(){return n.doCmd("removeToDeviceBatch",[e])})()}ensureStarted(){return this.startPromise||(this.worker=this.workerFactory(),this.worker.onmessage=this.onWorkerMessage,this.startPromise=this.doCmd("setupWorker",[this.dbName]).then(()=>{Y.log("IndexedDB worker is ready")})),this.startPromise}doCmd(e,n){return Promise.resolve().then(()=>{var r,o=this.nextSeq++,i=ll();return this.inFlight[o]=i,(r=this.worker)===null||r===void 0||r.postMessage({command:e,seq:o,args:n}),i.promise})}destroy(){var e=this;return Z(function*(){var n;(n=e.worker)===null||n===void 0||n.terminate()})()}}var Epe=1e3*60*5;class qq extends S5{static exists(e,n){return Vq.exists(e,n)}constructor(e){if(super(e),I(this,"backend",void 0),I(this,"startedUp",!1),I(this,"syncTs",0),I(this,"userModifiedMap",{}),I(this,"emitter",new Cr),I(this,"onClose",()=>{this.emitter.emit("closed")}),I(this,"getSavedSync",this.degradable(()=>this.backend.getSavedSync(),"getSavedSync")),I(this,"isNewlyCreated",this.degradable(()=>this.backend.isNewlyCreated(),"isNewlyCreated")),I(this,"getSavedSyncToken",this.degradable(()=>this.backend.getNextBatchToken(),"getSavedSyncToken")),I(this,"deleteAllData",this.degradable(()=>(super.deleteAllData(),this.backend.clearDatabase().then(()=>{Y.log("Deleted indexeddb data.")},n=>{throw Y.error("Failed to delete indexeddb data: ".concat(n)),n})),null)),I(this,"reallySave",this.degradable(()=>{this.syncTs=Date.now();var n=[];for(var r of this.getUsers())this.userModifiedMap[r.userId]!==r.getLastModifiedTime()&&r.events.presence&&(n.push([r.userId,r.events.presence.event]),this.userModifiedMap[r.userId]=r.getLastModifiedTime());return this.backend.syncToDatabase(n)},null)),I(this,"setSyncData",this.degradable(n=>this.backend.setSyncData(n),"setSyncData")),I(this,"getOutOfBandMembers",this.degradable(n=>this.backend.getOutOfBandMembers(n),"getOutOfBandMembers")),I(this,"setOutOfBandMembers",this.degradable((n,r)=>(super.setOutOfBandMembers(n,r),this.backend.setOutOfBandMembers(n,r)),"setOutOfBandMembers")),I(this,"clearOutOfBandMembers",this.degradable(n=>(super.clearOutOfBandMembers(n),this.backend.clearOutOfBandMembers(n)),"clearOutOfBandMembers")),I(this,"getClientOptions",this.degradable(()=>this.backend.getClientOptions(),"getClientOptions")),I(this,"storeClientOptions",this.degradable(n=>(super.storeClientOptions(n),this.backend.storeClientOptions(n)),"storeClientOptions")),!e.indexedDB)throw new Error("Missing required option: indexedDB");e.workerFactory?this.backend=new Cpe(e.workerFactory,e.dbName):this.backend=new Vq(e.indexedDB,e.dbName)}on(e,n){this.emitter.on(e,n)}startup(){return this.startedUp?(Y.log("IndexedDBStore.startup: already started"),Promise.resolve()):(Y.log("IndexedDBStore.startup: connecting to backend"),this.backend.connect(this.onClose).then(()=>(Y.log("IndexedDBStore.startup: loading presence events"),this.backend.getUserPresenceEvents())).then(e=>{Y.log("IndexedDBStore.startup: processing presence events"),e.forEach(n=>{var[r,o]=n;if(!this.createUser)throw new Error("`IndexedDBStore.startup` must be called after assigning it to the client, not before!");var i=this.createUser(r);o&&i.setPresenceEvent(new ii(o)),this.userModifiedMap[i.userId]=i.getLastModifiedTime(),this.storeUser(i)}),this.startedUp=!0}))}destroy(){return this.backend.destroy()}wantsSave(){var e=Date.now();return e-this.syncTs>Epe}save(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return e||this.wantsSave()?this.reallySave():Promise.resolve()}degradable(e,n){var r=this,o=n?super[n]:null;return Z(function*(){for(var i=arguments.length,s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];try{return yield e.call(r,...s)}catch(l){Y.error("IndexedDBStore failure, degrading to MemoryStore",l),r.emitter.emit("degraded",l);try{Y.log("IndexedDBStore trying to delete degraded data"),yield r.backend.clearDatabase(),Y.log("IndexedDBStore delete after degrading succeeded")}catch(c){Y.warn("IndexedDBStore delete after degrading failed",c)}if(o)return o.call(r,...s)}})}getPendingEvents(e){var n=()=>super.getPendingEvents,r=this;return Z(function*(){if(!r.localStorage)return n().call(r,e);var o=r.localStorage.getItem(M5(e));if(o)try{return JSON.parse(o)}catch(i){Y.error("Could not parse persisted pending events",i)}return[]})()}setPendingEvents(e,n){var r=()=>super.setPendingEvents,o=this;return Z(function*(){if(!o.localStorage)return r().call(o,e,n);n.length>0?o.localStorage.setItem(M5(e),JSON.stringify(n)):o.localStorage.removeItem(M5(e))})()}saveToDeviceBatches(e){return this.backend.saveToDeviceBatches(e)}getOldestToDeviceBatch(){return this.backend.getOldestToDeviceBatch()}removeToDeviceBatch(e){return this.backend.removeToDeviceBatch(e)}}function M5(t){return"mx_pending_events_".concat(t)}var Is="crypto.",Hq=Is+"migration",P5=Is+"account",ype=Is+"cross_signing_keys",cC=Is+"inboundgroupsessions/",xpe=Is+"inboundgroupsessions.withheld/",wpe=Is+"rooms/",L5=Is+"sessionsneedingbackup";function um(t){return Is+"sessions/"+t}function N5(t,e){return cC+t+"/"+e}function kpe(t,e){return xpe+t+"/"+e}function Spe(t){return wpe+t}class dC extends Qv{static exists(e){for(var n=e.length,r=0;r<n;r++){var o;if((o=e.key(r))!==null&&o!==void 0&&o.startsWith(Is))return!0}return!1}constructor(e){super(),this.store=e}containsData(){var e=this;return Z(function*(){return dC.exists(e.store)})()}getMigrationState(){var e=this;return Z(function*(){var n;return(n=$a(e.store,Hq))!==null&&n!==void 0?n:E1.NOT_STARTED})()}setMigrationState(e){var n=this;return Z(function*(){fh(n.store,Hq,e)})()}countEndToEndSessions(e,n){for(var r=0,o=0;o<this.store.length;++o){var i=this.store.key(o);if(i!=null&&i.startsWith(um(""))){var s=$a(this.store,i);r+=Object.keys(s??{}).length}}n(r)}_getEndToEndSessions(e){var n=$a(this.store,um(e)),r={};for(var[o,i]of Object.entries(n||{}))typeof i=="string"?r[o]={session:i}:r[o]=i;return r}getEndToEndSession(e,n,r,o){var i,s=this._getEndToEndSessions(e);o((i=s[n])!==null&&i!==void 0?i:{})}getEndToEndSessions(e,n,r){var o;r((o=this._getEndToEndSessions(e))!==null&&o!==void 0?o:{})}storeEndToEndSession(e,n,r,o){var i=this._getEndToEndSessions(e)||{};i[n]=r,fh(this.store,um(e),i)}getEndToEndSessionsBatch(){var e=this;return Z(function*(){for(var n=[],r=0;r<e.store.length;++r){var o;if((o=e.store.key(r))!==null&&o!==void 0&&o.startsWith(um(""))){var i=e.store.key(r).split("/")[1];for(var s of Object.values(e._getEndToEndSessions(i)))if(n.push(s),n.length>=Q1)return n}}return n.length===0?null:n})()}deleteEndToEndSessionsBatch(e){var n=this;return Z(function*(){for(var{deviceKey:r,sessionId:o}of e){var i=n._getEndToEndSessions(r)||{};delete i[o],Object.keys(i).length===0?n.store.removeItem(um(r)):fh(n.store,um(r),i)}})()}getEndToEndInboundGroupSession(e,n,r,o){o($a(this.store,N5(e,n)),$a(this.store,kpe(e,n)))}storeEndToEndInboundGroupSession(e,n,r,o){fh(this.store,N5(e,n),r)}countEndToEndInboundGroupSessions(){var e=this;return Z(function*(){for(var n=0,r=0;r<e.store.length;++r){var o=e.store.key(r);o!=null&&o.startsWith(cC)&&(n+=1)}return n})()}getEndToEndInboundGroupSessionsBatch(){var e=this;return Z(function*(){for(var n=$a(e.store,L5)||{},r=[],o=0;o<e.store.length;++o){var i=e.store.key(o);if(i!=null&&i.startsWith(cC)){var s=i.slice(cC.length);if(r.push({senderKey:s.slice(0,43),sessionId:s.slice(44),sessionData:$a(e.store,i),needsBackup:s in n}),r.length>=Q1)return r}}return r.length===0?null:r})()}deleteEndToEndInboundGroupSessionsBatch(e){var n=this;return Z(function*(){for(var{senderKey:r,sessionId:o}of e){var i=N5(r,o);n.store.removeItem(i)}})()}getEndToEndRooms(e,n){for(var r={},o=Spe(""),i=0;i<this.store.length;++i){var s=this.store.key(i);if(s!=null&&s.startsWith(o)){var u=s.slice(o.length);r[u]=$a(this.store,s)}}n(r)}markSessionsNeedingBackup(e){var n=$a(this.store,L5)||{};for(var r of e)n[r.senderKey+"/"+r.sessionId]=!0;return fh(this.store,L5,n),Promise.resolve()}deleteAllData(){return this.store.removeItem(P5),Promise.resolve()}getAccount(e,n){var r=$a(this.store,P5);n(r)}storeAccount(e,n){fh(this.store,P5,n)}getCrossSigningKeys(e,n){var r=$a(this.store,ype);n(r)}getSecretStorePrivateKey(e,n,r){var o=$a(this.store,Is+"ssss_cache.".concat(r));n(o)}storeSecretStorePrivateKey(e,n,r){fh(this.store,Is+"ssss_cache.".concat(n),r)}doTxn(e,n,r){return Promise.resolve(r(null))}}function $a(t,e){try{return JSON.parse(t.getItem(e))}catch(n){Y.log("Error: Failed to get key %s: %s",e,n.message),Y.log(n.stack)}return null}function fh(t,e,n){t.setItem(e,JSON.stringify(n))}let jpe=class{constructor(t){this.db=t,I(this,"nextTxnId",0),t.onversionchange=()=>{Y.log("versionchange for indexeddb ".concat(this.db.name,": closing")),t.close()}}containsData(){return Z(function*(){throw Error("Not implemented for Backend")})()}startup(){var t=this;return Z(function*(){return t})()}deleteAllData(){return Z(function*(){throw Error("This is not implemented, call IDBFactory::deleteDatabase(dbName) instead.")})()}getMigrationState(){var t=this;return Z(function*(){var e=E1.NOT_STARTED;return yield t.doTxn("readonly",[Vn.STORE_ACCOUNT],n=>{var r=n.objectStore(Vn.STORE_ACCOUNT),o=r.get(Jv);o.onsuccess=()=>{var i;e=(i=o.result)!==null&&i!==void 0?i:E1.NOT_STARTED}}),e})()}setMigrationState(t){var e=this;return Z(function*(){yield e.doTxn("readwrite",[Vn.STORE_ACCOUNT],n=>{var r=n.objectStore(Vn.STORE_ACCOUNT);r.put(t,Jv)})})()}getAccount(t,e){var n=t.objectStore("account"),r=n.get("-");r.onsuccess=function(){try{e(r.result||null)}catch(o){Xi(t,o)}}}storeAccount(t,e){var n=t.objectStore("account");n.put(e,"-")}getCrossSigningKeys(t,e){var n=t.objectStore("account"),r=n.get("crossSigningKeys");r.onsuccess=function(){try{e(r.result||null)}catch(o){Xi(t,o)}}}getSecretStorePrivateKey(t,e,n){var r=t.objectStore("account"),o=r.get("ssss_cache:".concat(n));o.onsuccess=function(){try{e(o.result||null)}catch(i){Xi(t,i)}}}storeSecretStorePrivateKey(t,e,n){var r=t.objectStore("account");r.put(n,"ssss_cache:".concat(e))}countEndToEndSessions(t,e){var n=t.objectStore("sessions"),r=n.count();r.onsuccess=function(){try{e(r.result)}catch(o){Xi(t,o)}}}getEndToEndSessions(t,e,n){var r=e.objectStore("sessions"),o=r.index("deviceKey"),i=o.openCursor(t),s={};i.onsuccess=function(){var u=i.result;if(u)s[u.value.sessionId]={session:u.value.session,lastReceivedMessageTs:u.value.lastReceivedMessageTs},u.continue();else try{n(s)}catch(l){Xi(e,l)}}}getEndToEndSession(t,e,n,r){var o=n.objectStore("sessions"),i=o.get([t,e]);i.onsuccess=function(){try{i.result?r({session:i.result.session,lastReceivedMessageTs:i.result.lastReceivedMessageTs}):r(null)}catch(s){Xi(n,s)}}}storeEndToEndSession(t,e,n,r){var o=r.objectStore("sessions");o.put({deviceKey:t,sessionId:e,session:n.session,lastReceivedMessageTs:n.lastReceivedMessageTs})}getEndToEndSessionsBatch(){var t=this;return Z(function*(){var e=[];return yield t.doTxn("readonly",[Vn.STORE_SESSIONS],n=>{var r=n.objectStore(Vn.STORE_SESSIONS),o=r.openCursor();o.onsuccess=function(){try{var i=o.result;i&&(e.push(i.value),e.length<Q1&&i.continue())}catch(s){Xi(n,s)}}}),e.length===0?null:e})()}deleteEndToEndSessionsBatch(t){var e=this;return Z(function*(){yield e.doTxn("readwrite",[Vn.STORE_SESSIONS],function(){var n=Z(function*(r){try{var o=r.objectStore(Vn.STORE_SESSIONS),i=function*(){var l=o.delete([s,u]);yield new Promise(c=>{l.onsuccess=c})};for(var{deviceKey:s,sessionId:u}of t)yield*i()}catch(l){Xi(r,l)}});return function(r){return n.apply(this,arguments)}}())})()}getEndToEndInboundGroupSession(t,e,n,r){var o=!1,i=!1,s=n.objectStore("inbound_group_sessions"),u=s.get([t,e]);u.onsuccess=function(){try{u.result?o=u.result.session:o=null,i!==!1&&r(o,i)}catch(d){Xi(n,d)}};var l=n.objectStore("inbound_group_sessions_withheld"),c=l.get([t,e]);c.onsuccess=function(){try{c.result?i=c.result.session:i=null,o!==!1&&r(o,i)}catch(d){Xi(n,d)}}}storeEndToEndInboundGroupSession(t,e,n,r){var o=r.objectStore("inbound_group_sessions");o.put({senderCurve25519Key:t,sessionId:e,session:n})}countEndToEndInboundGroupSessions(){var t=this;return Z(function*(){var e=0;return yield t.doTxn("readonly",[Vn.STORE_INBOUND_GROUP_SESSIONS],n=>{var r=n.objectStore(Vn.STORE_INBOUND_GROUP_SESSIONS),o=r.count();o.onsuccess=()=>{e=o.result}}),e})()}getEndToEndInboundGroupSessionsBatch(){var t=this;return Z(function*(){var e=[];return yield t.doTxn("readonly",[Vn.STORE_INBOUND_GROUP_SESSIONS,Vn.STORE_BACKUP],n=>{var r=n.objectStore(Vn.STORE_INBOUND_GROUP_SESSIONS),o=n.objectStore(Vn.STORE_BACKUP),i=r.openCursor();i.onsuccess=function(){try{var s=i.result;if(s){var u=o.get(s.key);u.onsuccess=()=>{e.push({senderKey:s.value.senderCurve25519Key,sessionId:s.value.sessionId,sessionData:s.value.session,needsBackup:u.result!==void 0}),e.length<Q1&&s.continue()}}}catch(l){Xi(n,l)}}}),e.length===0?null:e})()}deleteEndToEndInboundGroupSessionsBatch(t){var e=this;return Z(function*(){yield e.doTxn("readwrite",[Vn.STORE_INBOUND_GROUP_SESSIONS],function(){var n=Z(function*(r){try{var o=r.objectStore(Vn.STORE_INBOUND_GROUP_SESSIONS),i=function*(){var l=o.delete([s,u]);yield new Promise(c=>{l.onsuccess=c})};for(var{senderKey:s,sessionId:u}of t)yield*i()}catch(l){Xi(r,l)}});return function(r){return n.apply(this,arguments)}}())})()}getEndToEndDeviceData(t,e){var n=t.objectStore("device_data"),r=n.get("-");r.onsuccess=function(){try{e(r.result||null)}catch(o){Xi(t,o)}}}getEndToEndRooms(t,e){var n={},r=t.objectStore("rooms"),o=r.openCursor();o.onsuccess=function(){var i=o.result;if(i)n[i.key]=i.value,i.continue();else try{e(n)}catch(s){Xi(t,s)}}}markSessionsNeedingBackup(t,e){var n=this;return Z(function*(){e||(e=n.db.transaction("sessions_needing_backup","readwrite"));var r=e.objectStore("sessions_needing_backup");yield Promise.all(t.map(o=>new Promise((i,s)=>{var u=r.put({senderCurve25519Key:o.senderKey,sessionId:o.sessionId});u.onsuccess=i,u.onerror=s})))})()}doTxn(t,e,n){var r=this.db.transaction(e,t),o=Tpe(r),i=n(r);return o.then(()=>i)}};var $q=[t=>{Ape(t)},t=>{t.createObjectStore("account")},t=>{var e=t.createObjectStore("sessions",{keyPath:["deviceKey","sessionId"]});e.createIndex("deviceKey","deviceKey")},t=>{t.createObjectStore("inbound_group_sessions",{keyPath:["senderCurve25519Key","sessionId"]})},t=>{t.createObjectStore("device_data")},t=>{t.createObjectStore("rooms")},t=>{t.createObjectStore("sessions_needing_backup",{keyPath:["senderCurve25519Key","sessionId"]})},t=>{t.createObjectStore("inbound_group_sessions_withheld",{keyPath:["senderCurve25519Key","sessionId"]})},t=>{var e=t.createObjectStore("session_problems",{keyPath:["deviceKey","time"]});e.createIndex("deviceKey","deviceKey"),t.createObjectStore("notified_error_devices",{keyPath:["userId","deviceId"]})},t=>{t.createObjectStore("shared_history_inbound_group_sessions",{keyPath:["roomId"]})},t=>{t.createObjectStore("parked_shared_history",{keyPath:["roomId"]})}],Wq=$q.length;function Bpe(t,e){Y.log("Upgrading IndexedDBCryptoStore from version ".concat(e)+" to ".concat(Wq)),$q.forEach((n,r)=>{e<=r&&n(t)})}function Ape(t){var e=t.createObjectStore("outgoingRoomKeyRequests",{keyPath:"requestId"});e.createIndex("session",["requestBody.room_id","requestBody.session_id"]),e.createIndex("state","state")}function Xi(t,e){t._mx_abortexception=e;try{t.abort()}catch{}}function Tpe(t){return new Promise((e,n)=>{t.oncomplete=()=>{t._mx_abortexception!==void 0&&n(t._mx_abortexception),e(null)},t.onerror=r=>{t._mx_abortexception!==void 0?n(t._mx_abortexception):(Y.log("Error performing indexeddb txn",r),n(t.error))},t.onabort=r=>{t._mx_abortexception!==void 0?n(t._mx_abortexception):(Y.log("Error performing indexeddb txn",r),n(t.error))}})}Vn=class{static exists(t,e){return Nq(t,e)}static existsAndIsNotMigrated(t,e){return new Promise((n,r)=>{var o=!0,i=t.open(e);i.onupgradeneeded=()=>{o=!1},i.onblocked=()=>r(i.error),i.onsuccess=()=>{var s=i.result;if(!o)s.close(),t.deleteDatabase(e),n(!1);else{var u=s.transaction([Vn.STORE_ACCOUNT],"readonly"),l=u.objectStore(Vn.STORE_ACCOUNT),c=l.get(Jv);c.onsuccess=()=>{var d,F=(d=c.result)!==null&&d!==void 0?d:E1.NOT_STARTED;n(F===E1.NOT_STARTED)},c.onerror=()=>{r(c.error)},s.close()}},i.onerror=()=>r(i.error)})}constructor(t,e){this.indexedDB=t,this.dbName=e,I(this,"backendPromise",void 0),I(this,"backend",void 0)}containsData(){var t=this;return Z(function*(){return Vn.exists(t.indexedDB,t.dbName)})()}startup(){return this.backendPromise?this.backendPromise:(this.backendPromise=new Promise((t,e)=>{if(!this.indexedDB){e(new Error("no indexeddb support available"));return}Y.log("connecting to indexeddb ".concat(this.dbName));var n=this.indexedDB.open(this.dbName,Wq);n.onupgradeneeded=r=>{var o=n.result,i=r.oldVersion;Bpe(o,i)},n.onblocked=()=>{Y.log("can't yet open IndexedDBCryptoStore because it is open elsewhere")},n.onerror=r=>{Y.log("Error connecting to indexeddb",r),e(n.error)},n.onsuccess=()=>{var r=n.result;Y.log("connected to indexeddb ".concat(this.dbName)),t(new jpe(r))}}).then(t=>t.doTxn("readonly",[Vn.STORE_INBOUND_GROUP_SESSIONS,Vn.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],e=>{t.getEndToEndInboundGroupSession("","",e,()=>{})}).then(()=>t)).catch(t=>{if(t.name==="VersionError")throw Y.warn("Crypto DB is too new for us to use!",t),new l5(u5.TooNew);Y.warn("unable to connect to indexeddb ".concat(this.dbName)+": falling back to localStorage store: ".concat(t));try{if(!(globalThis.localStorage instanceof Storage))throw new Error("localStorage is not available");return new dC(globalThis.localStorage)}catch(e){return Y.warn("Unable to open localStorage: falling back to in-memory store: ".concat(e)),new Qv}}).then(t=>(this.backend=t,t)),this.backendPromise)}deleteAllData(){return new Promise((t,e)=>{if(!this.indexedDB){e(new Error("no indexeddb support available"));return}Y.log("Removing indexeddb instance: ".concat(this.dbName));var n=this.indexedDB.deleteDatabase(this.dbName);n.onblocked=()=>{Y.log("can't yet delete IndexedDBCryptoStore because it is open elsewhere")},n.onerror=r=>{Y.log("Error deleting data from indexeddb",r),e(n.error)},n.onsuccess=()=>{Y.log("Removed indexeddb instance: ".concat(this.dbName)),t()}}).catch(t=>{Y.warn("unable to delete IndexedDBCryptoStore: ".concat(t))})}getMigrationState(){return this.backend.getMigrationState()}setMigrationState(t){return this.backend.setMigrationState(t)}getAccount(t,e){this.backend.getAccount(t,e)}storeAccount(t,e){this.backend.storeAccount(t,e)}getCrossSigningKeys(t,e){this.backend.getCrossSigningKeys(t,e)}getSecretStorePrivateKey(t,e,n){this.backend.getSecretStorePrivateKey(t,e,n)}storeSecretStorePrivateKey(t,e,n){this.backend.storeSecretStorePrivateKey(t,e,n)}countEndToEndSessions(t,e){this.backend.countEndToEndSessions(t,e)}getEndToEndSession(t,e,n,r){this.backend.getEndToEndSession(t,e,n,r)}getEndToEndSessions(t,e,n){this.backend.getEndToEndSessions(t,e,n)}storeEndToEndSession(t,e,n,r){this.backend.storeEndToEndSession(t,e,n,r)}countEndToEndInboundGroupSessions(){return this.backend.countEndToEndInboundGroupSessions()}getEndToEndSessionsBatch(){return this.backend.getEndToEndSessionsBatch()}deleteEndToEndSessionsBatch(t){return this.backend.deleteEndToEndSessionsBatch(t)}getEndToEndInboundGroupSession(t,e,n,r){this.backend.getEndToEndInboundGroupSession(t,e,n,r)}storeEndToEndInboundGroupSession(t,e,n,r){this.backend.storeEndToEndInboundGroupSession(t,e,n,r)}getEndToEndInboundGroupSessionsBatch(){return this.backend.getEndToEndInboundGroupSessionsBatch()}deleteEndToEndInboundGroupSessionsBatch(t){return this.backend.deleteEndToEndInboundGroupSessionsBatch(t)}getEndToEndRooms(t,e){this.backend.getEndToEndRooms(t,e)}markSessionsNeedingBackup(t,e){return this.backend.markSessionsNeedingBackup(t,e)}doTxn(t,e,n,r){return this.backend.doTxn(t,e,n,r)}},I(Vn,"STORE_ACCOUNT","account"),I(Vn,"STORE_SESSIONS","sessions"),I(Vn,"STORE_INBOUND_GROUP_SESSIONS","inbound_group_sessions"),I(Vn,"STORE_INBOUND_GROUP_SESSIONS_WITHHELD","inbound_group_sessions_withheld"),I(Vn,"STORE_SHARED_HISTORY_INBOUND_GROUP_SESSIONS","shared_history_inbound_group_sessions"),I(Vn,"STORE_PARKED_SHARED_HISTORY","parked_shared_history"),I(Vn,"STORE_DEVICE_DATA","device_data"),I(Vn,"STORE_ROOMS","rooms"),I(Vn,"STORE_BACKUP","sessions_needing_backup");var Ipe=function(t){return t.Email="email",t.Phone="msisdn",t}({}),Rpe=new ro("delegated_oidc_compatibility","org.matrix.msc3824.delegated_oidc_compatibility"),Ope=function(t){return t.Gitlab="gitlab",t.Github="github",t.Apple="apple",t.Google="google",t.Facebook="facebook",t.Twitter="twitter",t}({}),Mpe=function(t){return t.LOGIN="login",t.REGISTER="register",t}({}),Ppe="us.cloke.msc4175.tz";class Lpe{constructor(e){I(this,"relations",void 0),this.relations=e.filter(n=>!!n)}getRelations(){return this.relations.reduce((e,n)=>[...e,...n.getRelations()],[])}on(e,n){this.relations.forEach(r=>r.on(e,n))}off(e,n){this.relations.forEach(r=>r.off(e,n))}}var Npe=function(t){return t.Global="Global",t.SetItemError="setItem",t.GetItemError="getItem",t.RemoveItemError="removeItem",t.ClearError="clear",t.QuotaExceededError="QuotaExceededError",t}({});class zpe extends Cr{}var Upe=new zpe,Kq=()=>new Qv;function Gq(t){Kq=t}function Yq(t){var e,n,r;return t.store=(e=t.store)!==null&&e!==void 0?e:new S5({localStorage:globalThis.localStorage}),t.scheduler=(n=t.scheduler)!==null&&n!==void 0?n:new ZF,t.cryptoStore=(r=t.cryptoStore)!==null&&r!==void 0?r:Kq(),t}function _h(t){return new Jb(Yq(t))}function Vpe(t,e,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return new Iq(t,e,n,Yq(r),o)}const qpe=Object.freeze(Object.defineProperty({__proto__:null,AuthType:Jt,AutoDiscovery:Gt,AutoDiscoveryAction:fa,AutoDiscoveryError:Va,Beacon:bU,BeaconEvent:Ar,CallEvent:Dn,CallFeedEvent:gu,Category:Ul,ClientEvent:st,ClientPrefix:Do,ClientStoppedError:RI,ConditionKind:ar,ConditionOperator:uDe,ConnectionError:ih,ContentHelpers:OFe,DELEGATED_OIDC_COMPATIBILITY:Rpe,DEVICE_CODE_SCOPE:fge,DMMemberCountCondition:lDe,Device:TI,DeviceVerification:ax,Direction:At,DuplicateStrategy:Hp,EVENT_VISIBILITY_CHANGE_TYPE:Qc,EventEmitterEvents:Ez,EventStatus:Pt,EventTimeline:it,EventTimelineSet:VF,EventType:Ce,FILTER_RELATED_BY_REL_TYPES:im,FILTER_RELATED_BY_SENDERS:om,FeatureSupport:fi,Filter:Ji,GET_LOGIN_TOKEN_CAPABILITY:yge,GroupCall:$9,GroupCallEvent:vr,GroupCallIntent:cV,GroupCallState:$r,GroupCallStatsReportEvent:Xp,GroupCallType:Tb,GuestAccess:KF,HTTPError:od,HistoryVisibility:zi,HttpApiEvent:Kp,IdentityPrefix:Fu,IdentityProviderBrand:Ope,IndexedDBCryptoStore:Vn,IndexedDBStore:qq,InteractiveAuth:_pe,InvalidCryptoStoreError:l5,InvalidCryptoStoreState:u5,JoinRule:un,KNOWN_SAFE_ROOM_VERSION:HU,KeySignatureUploadError:PDe,KnownMembership:an,LOCAL_NOTIFICATION_SETTINGS_PREFIX:$k,LocalStorageCryptoStore:dC,LocalStorageErrors:Npe,LocationAssetType:SF,MAIN_ROOM_TIMELINE:bp,MAXIMUM_MATRIX_VERSION:gDe,MINIMUM_MATRIX_VERSION:DDe,MSC3912_RELATION_BASED_REDACTIONS_PROP:ab,M_ASSET:_p,M_BEACON:X9,M_BEACON_INFO:J9,M_HTML:SFe,M_LOCATION:vp,M_MESSAGE:kFe,M_POLL_END:xb,M_POLL_KIND_DISCLOSED:PFe,M_POLL_KIND_UNDISCLOSED:LFe,M_POLL_RESPONSE:Wp,M_POLL_START:NFe,M_TEXT:E9,M_TIMESTAMP:Jc,M_TOPIC:y9,MatrixClient:Jb,MatrixError:tn,MatrixEvent:ii,MatrixEventEvent:Un,MatrixHttpApi:zU,MatrixScheduler:ZF,MediaHandlerEvent:hh,MediaPrefix:ah,MemoryCryptoStore:Qv,MemoryStore:S5,Method:Se,MsgType:or,NoAuthFlowFoundError:Lq,NotificationCountType:Ln,OidcError:pi,OidcTokenRefresher:vge,PUSHER_DEVICE_ID:yz,PUSHER_ENABLED:sb,PendingEventOrdering:nm,Poll:wU,PollEvent:rd,Preset:Mb,ProfileKeyMSC4175Timezone:Ppe,PushRuleActionName:pu,PushRuleKind:Nn,REFERENCE_RELATION:lU,ReceiptType:ti,RelatedRelations:Lpe,RelationType:Pn,Relations:b9,RelationsEvent:hu,RestrictedAllowType:Pb,Room:kb,RoomCreateTypeField:kp,RoomEvent:Ke,RoomMember:jp,RoomMemberEvent:oo,RoomNameType:Du,RoomState:lf,RoomStateEvent:Zt,RoomSummary:iU,RoomType:Tl,RoomVersionStability:UU,RoomWidgetClient:Iq,RoomWidgetClientEvent:sC,RuleId:Yn,SERVICE_TYPES:Y9,SSOAction:Mpe,SUPPORTED_MATRIX_VERSIONS:tf,SearchOrderBy:rf,SearchResult:Ob,SecretStorage:ODe,ServerCapabilities:VU,SetPresence:YU,SlidingSyncEvent:Z9,StatsReport:Ll,SyncAccumulator:Oq,SyncState:bn,THREAD_RELATION_TYPE:hr,Thread:xr,ThreadEvent:ji,ThreadFilterType:Ts,ThreepidMedium:Ipe,TimelineIndex:R5,TimelineWindow:fpe,ToDeviceMessageId:WD,TokenRefreshError:AU,TokenRefreshLogoutError:B9,TweakName:WF,TypedEventEmitter:Cr,UNSIGNED_MEMBERSHIP_FIELD:Wk,UNSIGNED_THREAD_ID_FIELD:Sp,UNSTABLE_ELEMENT_FUNCTIONAL_USERS:Hk,UNSTABLE_MSC2666_MUTUAL_ROOMS:uq,UNSTABLE_MSC2666_QUERY_MUTUAL_ROOMS:lq,UNSTABLE_MSC2666_SHARED_ROOMS:sq,UNSTABLE_MSC2716_MARKER:qk,UNSTABLE_MSC3088_ENABLED:ob,UNSTABLE_MSC3088_PURPOSE:rb,UNSTABLE_MSC3089_BRANCH:cu,UNSTABLE_MSC3089_LEAF:Vk,UNSTABLE_MSC3089_TREE_SUBTYPE:ib,UNSTABLE_MSC3852_LAST_SEEN_UA:Ege,UNSTABLE_MSC4133_EXTENDED_PROFILES:cq,UNSTABLE_MSC4140_DELAYED_EVENTS:vu,UnsupportedDelayedEventsEndpointError:dd,UpdateDelayedEventAction:Fh,User:Ml,UserEvent:ri,Visibility:nf,anySignal:IU,calculateRetryBackoff:ix,completeAuthorizationCodeGrant:pge,createClient:_h,createNewMatrixCall:ef,createRoomWidgetClient:Vpe,decodeBase64:y1,decodeIdToken:XV,determineFeatureSupport:Xb,discoverAndValidateOIDCIssuerWellKnown:y5,encodeBase64:GD,encodeUnpaddedBase64:aV,encodeUnpaddedBase64Url:jb,fixNotificationCountOnDecryption:hq,generateAuthorizationParams:Fge,generateAuthorizationUrl:mge,generateOidcAuthorizationUrl:Dge,generateScope:Zb,getBeaconInfoIdentifier:yb,getHttpUriForMxc:eb,inMainTimelineForReceipt:uf,isDmMemberCountCondition:cDe,isEventTypeSame:jFe,isPollEvent:kU,isTimestampInDuration:w9,localStorageErrorsEventsEmitter:Upe,parseErrorResponse:A9,registerOidcClient:_ge,retryNetworkOperation:T9,safeGetRetryAfterMs:j9,setCryptoStoreFactory:Gq,threadFilterTypeToFilter:Dq,threadIdForReceipt:rm,timeoutSignal:wb,validateAuthMetadata:JV,validateAuthMetadataAndKeys:x5,validateBearerTokenResponse:tq,validateIdToken:QV,validateStoredUserState:eq},Symbol.toStringTag,{value:"Module"}));if(globalThis.__js_sdk_entrypoint)throw new Error("Multiple matrix-js-sdk entrypoints detected!");globalThis.__js_sdk_entrypoint=!0;var z5;try{z5=globalThis.indexedDB}catch{}z5&&Gq(()=>new Vn(z5,"matrix-js-sdk:crypto")),globalThis.matrixcs=qpe;var vh=(t=>(t[t.FlowRequired=401]="FlowRequired",t[t.InvalidRequest=400]="InvalidRequest",t[t.RegistrationDisabled=403]="RegistrationDisabled",t[t.RateLimited=429]="RateLimited",t))(vh||{});const Hpe=t=>{switch(t.httpStatus){case 400:return{status:400};case 429:return{status:429};case 403:return{status:403};case 401:return{status:401,data:t.data};default:return{status:400}}},Zq=f.createContext(null),$pe=Zq.Provider,Jq=()=>{const t=f.useContext(Zq);if(!t)throw new Error("Auth Flow info is not loaded!");return t};function Wpe({fallback:t,error:e,children:n}){const r=kF()["m.homeserver"].base_url,o=f.useMemo(()=>_h({baseUrl:r}),[r]),[i,s]=et(f.useCallback(async()=>{const u=await Promise.allSettled([o.loginFlows(),o.registerRequest({})]),l=H6(u[0]),c=Sue(u[1]);let d={status:vh.InvalidRequest};if(typeof c=="object"&&c.httpStatus&&(d=Hpe(c)),!l)throw new Error("Missing auth flow!");if("errcode"in l)throw new Error("Failed to load auth flow!");return{loginFlows:l,registerFlows:d}},[o]));return f.useEffect(()=>{s()},[s]),i.status===he.Idle||i.status===he.Loading?t==null?void 0:t():i.status===he.Error?e==null?void 0:e(i.error):n(i.data)}const Xq=f.createContext(null),Kpe=Xq.Provider,lm=()=>{const t=f.useContext(Xq);if(t===null)throw new Error("Auth server is not provided!");return t},Qq=(t,e)=>t.composedPath().find(n=>{var r;return(r=n.matches)==null?void 0:r.call(n,e)}),hC=()=>!!document.activeElement&&(document.activeElement.nodeName.toLowerCase()==="input"||document.activeElement.nodeName.toLowerCase()==="textarea"||document.activeElement.getAttribute("contenteditable")==="true"||document.activeElement.getAttribute("role")==="input"||document.activeElement.getAttribute("role")==="textarea"),U5=(t,e)=>{const n=t.offsetTop+t.scrollTop,r=n+t.offsetHeight,o=e.offsetTop,i=o+e.clientHeight;return o>=n&&o<r||i>n&&i<=r||o<n&&i>r},Gpe=(t,e)=>{const n=t.offsetTop+t.scrollTop,r=n+t.offsetHeight;return e.offsetTop>=n&&e.offsetTop+e.offsetHeight<=r},eH=(t,e)=>e.offsetHeight<t.offsetHeight,Ype=(t,e)=>new Promise(n=>{const r=document.createElement("input");r.type="file",t&&(r.accept=t),e&&(r.multiple=!0);const o=()=>{const i=r.files;if(!i)n(void 0);else{const s=[...i].filter(u=>u);n(e?s:s[0])}r.removeEventListener("change",o)};r.addEventListener("change",o),r.click()}),tH=t=>{const e=[...t.files].filter(n=>n);if(e.length!==0)return e},nH=(t,e)=>new File([t],e,{type:t.type}),Zpe=async t=>await(await fetch(t)).blob(),rH=t=>URL.createObjectURL(t),Jpe=t=>URL.createObjectURL(t),V5=t=>new Promise((e,n)=>{const r=document.createElement("img");r.onload=()=>e(r),r.onerror=o=>n(o),r.src=t}),Xpe=t=>new Promise((e,n)=>{const r=document.createElement("video");r.preload="metadata",r.playsInline=!0,r.muted=!0,r.onloadeddata=()=>{e(r),r.pause()},r.onerror=o=>{n(o)},r.src=t,r.load(),r.play()}),Qpe=(t,e)=>{let n=t,r=e;return r>300&&(n=Math.floor(n*(300/r)),r=300),n>400&&(r=Math.floor(r*(400/n)),n=400),[n,r]},efe=(t,e,n,r)=>new Promise(o=>{const i=document.createElement("canvas");i.width=e,i.height=n;const s=i.getContext("2d");if(!s){o(void 0);return}s.drawImage(t,0,0,e,n),i.toBlob(u=>{o(u??void 0)},r??"image/jpeg")}),q5=t=>({offsetTop:Math.round(t.offsetTop),top:Math.round(t.scrollTop),height:Math.round(t.scrollHeight),viewHeight:Math.round(t.offsetHeight),scrollable:t.scrollHeight>t.offsetHeight}),H5=(t,e)=>{t.scrollTo({top:Math.round(t.scrollHeight-t.offsetHeight),behavior:e})},Vl=t=>{if(navigator.clipboard)navigator.clipboard.writeText(t);else{const e=document.body,n=document.createElement("input");n.style.position="fixed",n.style.opacity="0",n.value=t,e.append(n),n.select(),n.setSelectionRange(0,99999),document.execCommand("Copy"),n.remove()}},tfe=t=>{const e=document.querySelector("#favicon");e&&e.setAttribute("href",t)},pd=t=>{try{return decodeURIComponent(t)}catch{return t}},$5=t=>{const e=t.message.match(/position\s(\d+)\s/);if(!e)return;const n=e[1],r=parseInt(n,10);if(!Number.isNaN(r))return r},oH=t=>"Notification"in window?window.Notification.permission===t:!1,iH=t=>su(ip,t)?ip:su(Iv,t)?Iv:su(Tv,t)?Tv:ip;function W5({message:t}){return a.jsxs(y,{justifyContent:"Center",alignItems:"Center",gap:"200",children:[a.jsx(ot,{size:"100",variant:"Secondary"}),a.jsx(x,{align:"Center",size:"T300",children:t})]})}function Ef({message:t}){return a.jsx(y,{justifyContent:"Center",alignItems:"Center",gap:"200",children:a.jsx(x,{align:"Center",style:{color:ct.Critical.Main},size:"T300",children:t})})}function nfe(){const t=Xr(),e=Bl(),{server:n}=uu(),r=W1(),o=Gce(r);let i=n?pd(n):o;iN(r,i)||(i=o);const[s,u]=et(f.useCallback(async F=>{const h=await ON(fetch,F);return{serverName:F,response:h}},[]));f.useEffect(()=>{i&&u(i)},[u,i]),f.useEffect(()=>{(!n||pd(n)!==i)&&t(Pa(iH(e.pathname),{server:encodeURIComponent(i)}),{replace:!0})},[n,t,e,i]);const l=f.useCallback(F=>{if(F===i){if(s.status===he.Loading)return;u(i);return}t(Pa(iH(e.pathname),{server:encodeURIComponent(F)}))},[t,e,s,i,u]),[c,d]=s.status===he.Success?s.data.response:[];return a.jsx(Mt,{variant:"Background",visibility:"Hover",size:"300",hideTrack:!0,children:a.jsxs(y,{className:Ve(ide,aN),direction:"Column",alignItems:"Center",justifyContent:"SpaceBetween",gap:"400",children:[a.jsxs(y,{direction:"Column",className:tde,children:[a.jsx(In,{className:ode,size:"600",variant:"Surface",children:a.jsxs(y,{grow:"Yes",direction:"Row",gap:"300",alignItems:"Center",children:[a.jsx("img",{className:ade,src:xF,alt:"Cinny Logo"}),a.jsx(x,{size:"H3",children:"Cinny"})]})}),a.jsxs(y,{className:nde,direction:"Column",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{as:"label",size:"L400",priority:"300",children:"Homeserver"}),a.jsx(_1e,{server:i,serverList:r.homeserverList??[],allowCustomServer:r.allowCustomHomeservers,onServerChange:l})]}),s.status===he.Loading&&a.jsx(W5,{message:"Looking for homeserver..."}),s.status===he.Error&&a.jsx(Ef,{message:"Failed to find homeserver."}),(c==null?void 0:c.action)===Bk.FAIL_PROMPT&&a.jsx(Ef,{message:`Failed to connect. Homeserver configuration found with ${c.host} appears unusable.`}),(c==null?void 0:c.action)===Bk.FAIL_ERROR&&a.jsx(Ef,{message:"Failed to connect. Homeserver configuration base_url appears invalid."}),s.status===he.Success&&d&&a.jsx(Kpe,{value:s.data.serverName,children:a.jsx(v1e,{value:d,children:a.jsx(PN,{baseUrl:d["m.homeserver"].base_url,fallback:()=>a.jsx(W5,{message:`Connecting to ${d["m.homeserver"].base_url}`}),error:()=>a.jsx(Ef,{message:"Failed to connect. Either homeserver is unavailable at this moment or does not exist."}),children:F=>a.jsx(NN,{value:F,children:a.jsx(Wpe,{fallback:()=>a.jsx(W5,{message:"Loading authentication flow..."}),error:()=>a.jsx(Ef,{message:"Failed to get authentication flow information."}),children:h=>a.jsx($pe,{value:h,children:a.jsx($1,{})})})})})})})]})]}),a.jsx(sde,{})]})})}const rfe=t=>t.find(e=>e.type==="m.login.sso"||e.type==="m.login.cas"),ofe=t=>t.find(e=>e.type==="m.login.password"),ife=t=>t.find(e=>e.type==="m.login.token"),aH=t=>f.useMemo(()=>({password:ofe(t),token:ife(t),sso:rfe(t)}),[t]);var sH={},uH,lH;function afe(t){var e,n,r,o,i;return i=new Uint8Array(16),window.crypto.getRandomValues(i.subarray(0,8)),window.crypto.subtle.generateKey({name:"AES-CTR",length:256},!0,["encrypt","decrypt"]).then(function(s){return e=s,window.crypto.subtle.exportKey("jwk",e)}).then(function(s){return n=s,window.crypto.subtle.encrypt({name:"AES-CTR",counter:i,length:64},e,t)}).then(function(s){return r=s,window.crypto.subtle.digest("SHA-256",r)}).then(function(s){return o=s,{data:r,info:{v:"v2",key:n,iv:K5(i),hashes:{sha256:K5(new Uint8Array(o))}}}})}function sfe(t,e){if(e===void 0||e.key===void 0||e.iv===void 0||e.hashes===void 0||e.hashes.sha256===void 0)throw new Error("Invalid info. Missing info.key, info.iv or info.hashes.sha256 key");var n,r=ufe(e.iv),o=e.hashes.sha256;return window.crypto.subtle.importKey("jwk",e.key,{name:"AES-CTR"},!1,["encrypt","decrypt"]).then(function(i){return n=i,window.crypto.subtle.digest("SHA-256",t)}).then(function(i){if(K5(new Uint8Array(i))!=o)throw new Error("Mismatched SHA-256 digest");var s;return e.v=="v1"||e.v=="v2"?s=64:s=128,window.crypto.subtle.decrypt({name:"AES-CTR",counter:r,length:s},n,t)})}function K5(t){var e=String.fromCharCode.apply(null,t),n=window.btoa(e),r=t.length,o=4*Math.floor((r+2)/3)+(r+2)%3-2;return n.slice(0,o)}function ufe(t){for(var e=t+"===".slice(0,(4-t.length%4)%4),n=window.atob(e),r=new Uint8Array(n.length),o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}try{lH=sH.encryptAttachment=afe,uH=sH.decryptAttachment=sfe}catch{}var tr=(t=>(t.PushRules="m.push_rules",t.Direct="m.direct",t.IgnoredUserList="m.ignored_user_list",t.CinnySpaces="in.cinny.spaces",t.ElementRecentEmoji="io.element.recent_emoji",t.PoniesUserEmotes="im.ponies.user_emotes",t.PoniesEmoteRooms="im.ponies.emote_rooms",t.SecretStorageDefaultKey="m.secret_storage.default_key",t.CrossSigningMaster="m.cross_signing.master",t.CrossSigningSelf="m.cross_signing.self",t.CrossSigningUser="m.cross_signing.user",t.MegolmBackupV1="m.megolm_backup.v1",t))(tr||{}),$n=(t=>(t.Invite="invite",t.Knock="knock",t.Join="join",t.Leave="leave",t.Ban="ban",t))($n||{}),Re=(t=>(t.RoomCanonicalAlias="m.room.canonical_alias",t.RoomCreate="m.room.create",t.RoomJoinRules="m.room.join_rules",t.RoomMember="m.room.member",t.RoomThirdPartyInvite="m.room.third_party_invite",t.RoomPowerLevels="m.room.power_levels",t.RoomName="m.room.name",t.RoomTopic="m.room.topic",t.RoomAvatar="m.room.avatar",t.RoomPinnedEvents="m.room.pinned_events",t.RoomEncryption="m.room.encryption",t.RoomHistoryVisibility="m.room.history_visibility",t.RoomGuestAccess="m.room.guest_access",t.RoomServerAcl="m.room.server_acl",t.RoomTombstone="m.room.tombstone",t.SpaceChild="m.space.child",t.SpaceParent="m.space.parent",t.PoniesRoomEmotes="im.ponies.room_emotes",t.PowerLevelTags="in.cinny.room.power_level_tags",t))(Re||{}),qn=(t=>(t.RoomMessage="m.room.message",t.RoomMessageEncrypted="m.room.encrypted",t.Sticker="m.sticker",t.RoomRedaction="m.room.redaction",t.Reaction="m.reaction",t))(qn||{}),yf=(t=>(t.Space="m.space",t))(yf||{}),fd=(t=>(t.Default="default",t.AllMessages="all_messages",t.MentionsAndKeywords="mentions_and_keywords",t.Mute="mute",t))(fd||{});const so=(t,e,n="")=>{var r;return((r=t.getLiveTimeline().getState(it.FORWARDS))==null?void 0:r.getStateEvents(e,n))??void 0},bh=(t,e)=>{var n;return((n=t.getLiveTimeline().getState(it.FORWARDS))==null?void 0:n.getStateEvents(e))??[]},_d=(t,e)=>t.getAccountData(e),cH=t=>{const e=new Set,n=t==null?void 0:t.getContent();return n===void 0||Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)&&o.forEach(i=>{typeof i=="string"&&e.add(i)})}),e},dH=(t,e)=>{var n,r,o,i;return!t||!e?!1:((i=(o=(r=(n=t.getMember(e))==null?void 0:n.events)==null?void 0:r.member)==null?void 0:o.getContent())==null?void 0:i.is_direct)===!0},ql=t=>{if(!t)return!1;const e=so(t,Re.RoomCreate);return e?e.getContent().type===yf.Space:!1},xf=t=>{if(!t)return!1;const e=so(t,Re.RoomCreate);return e?e.getContent().type!==yf.Space:!0};function wf(t){return t.getType()===Re.SpaceChild&&Array.isArray(t.getContent().via)}const Wa=(t,e)=>{const n=new Set,r=o=>{var i;n.has(o)||(n.add(o),(i=t.get(o))==null||i.forEach(s=>r(s)))};return r(e),n.delete(e),n},FC=t=>bh(t,Re.SpaceChild).reduce((e,n)=>{const r=n.getStateKey();return wf(n)&&r&&e.push(r),e},[]),hH=(t,e,n)=>{const r=Wa(t,e);n.forEach(o=>{if(r.has(o))return;const i=t.get(o)??new Set;i.add(e),t.set(o,i)})},lfe=t=>{const e=new Map;return t.getRooms().filter(n=>ql(n)).forEach(n=>hH(e,n.roomId,FC(n))),e},cfe=(t,e)=>{const n=Wa(t,e);return Array.from(n).filter(r=>!t.has(r))},dfe=t=>{var e,n;return t.actions[0]==="dont_notify"&&((n=(e=t.conditions)==null?void 0:e[0])==null?void 0:n.kind)==="event_match"},hfe=(t,e)=>t.find(n=>n.rule_id===e&&dfe(n)),G5=(t,e)=>{var r,o,i;let n;try{n=t.getRoomPushRule("global",e)}catch{n=void 0}if(!n){const s=(i=(o=(r=t.getAccountData(Ce.PushRules))==null?void 0:r.getContent())==null?void 0:o.global)==null?void 0:i.override;return s&&hfe(s,e)?fd.Mute:fd.Default}return n.actions[0]==="notify"?fd.AllMessages:fd.MentionsAndKeywords},Ffe=["m.room.create","m.room.message","m.room.encrypted","m.room.member","m.sticker"],Y5=t=>{var n;const e=t.getType();return!(!Ffe.includes(e)||e==="m.room.member"||t.isRedacted()||((n=t.getRelation())==null?void 0:n.rel_type)==="m.replace")},mfe=t=>{const e=t.getUnreadNotificationCount(Ln.Total),n=t.getUnreadNotificationCount(Ln.Highlight);return e>0||n>0},Dfe=(t,e)=>{var i;const n=t.getUserId();if(!n)return!1;const r=e.getEventReadUpTo(n),o=e.getLiveTimeline().getEvents();if(((i=o[o.length-1])==null?void 0:i.getSender())===n)return!1;for(let s=o.length-1;s>=0;s-=1){const u=o[s];if(!u||u.getId()===r)return!1;if(Y5(u))return!0}return!0},Z5=t=>{const e=t.getUnreadNotificationCount(Ln.Total),n=t.getUnreadNotificationCount(Ln.Highlight);return{roomId:t.roomId,highlight:n,total:n>e?n:e}},mC=t=>t.getRooms().reduce((e,n)=>(n.isSpaceRoom()||n.getMyMembership()!=="join"||G5(t,n.roomId)===fd.Mute||(mfe(n)||Dfe(t,n))&&e.push(Z5(n)),e),[]),J5=(t,e,n)=>{if(e===un.Restricted)return n?t.Space:t.Hash;if(e===un.Knock||e===un.Invite)return n?t.SpaceLock:t.HashLock;if(e===un.Public)return n?t.SpaceGlobe:t.HashGlobe},Hl=(t,e,n=32,r=!1)=>{const o=e.getMxcAvatarUrl();return o?t.mxcUrlToHttp(o,n,n,"crop",void 0,!1,r)??void 0:void 0},DC=(t,e,n=32,r=!1)=>{var i;const o=(i=e.getAvatarFallbackMember())==null?void 0:i.getMxcAvatarUrl();return o?t.mxcUrlToHttp(o,n,n,"crop",void 0,!1,r)??void 0:void 0},kf=t=>{const e=t.match(/^> <.+?> .+\n(>.*\n)*?\n/m);return e?t.slice(e[0].length):t},gfe=t=>{const e="</mx-reply>",n=t.lastIndexOf(e);return n<0?t:t.slice(n+e.length)},wr=(t,e)=>{var r;const n=(r=t.getMember(e))==null?void 0:r.rawDisplayName;if(n!==e)return n},X5=(t,e,n)=>[t.rawDisplayName===t.userId?n(t.userId):t.rawDisplayName,e.startsWith("@")||e.indexOf(":")>-1?t.userId:n(t.userId)],gC=(t,e)=>{var n;return(n=t.getMember(e))==null?void 0:n.getMxcAvatarUrl()},Q5=t=>t.getContent().membership!==t.getPrevContent().membership||t.getContent().reason!==t.getPrevContent().reason,pfe=async(t,e)=>{const n=t.getCrypto();if(!n)return;const r=e.getEvents().filter(o=>o.isEncrypted()).reverse().map(o=>o.attemptDecryption(n,{isRetry:!0}));await Promise.allSettled(r)},ffe=(t,e,n)=>({"m.relates_to":{event_id:t,key:e,rel_type:"m.annotation"},shortcode:n}),pC=(t,e)=>t.relations.getChildEventsForEvent(e,Pn.Annotation,Ce.Reaction),FH=(t,e,n)=>t.relations.getChildEventsForEvent(e,Pn.Replace,n),_fe=(t,e)=>{const n=r=>r.getSender()===t.getSender();return e.sort((r,o)=>o.getTs()-r.getTs()).find(n)},cm=(t,e,n)=>{const r=FH(n,t,e.getType());return r&&_fe(e,r.getRelations())},e7=(t,e)=>{var o;const n=e.getContent(),r=(o=n["m.relates_to"])==null?void 0:o.rel_type;return e.getSender()===t.getUserId()&&(!r||r===Pn.Thread)&&e.getType()===qn.RoomMessage&&(n.msgtype===or.Text||n.msgtype===or.Emote||n.msgtype===or.Notice)},vfe=(t,e)=>{const n=t.getEvents();for(let r=n.length-1;r>=0;r-=1){const o=n[r];if(e(o))return o}},mH=t=>{var e,n;return((e=t.getRelation())==null?void 0:e.rel_type)===Pn.Annotation||((n=t.getRelation())==null?void 0:n.rel_type)===Pn.Replace},DH=(t,e)=>{const n={};return t.length>0&&(n.user_ids=t),e&&(n.room=!0),n},bfe=(t,e,n)=>{const r=[];return e.forEach(o=>{const i=t.getRoom(o);!i||i.getMyMembership()!==$n.Join||i.hasMembershipState(n,$n.Join)&&r.push(o)}),r},Cfe=(t,e,n)=>e.some(r=>{const o=t.getRoom(r);return!o||o.getMyMembership()!==$n.Join?!1:o.hasMembershipState(n,$n.Ban)}),Efe=/\b(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}\b/,yfe=t=>Efe.test(t),t7=t=>t.match(/^([@!$+#])(.+):(\S+)$/),Sf=t=>!!t7(t),xu=t=>{var e;return(e=t7(t))==null?void 0:e[3]},ln=t=>{var e;return(e=t7(t))==null?void 0:e[2]},wu=t=>Sf(t)&&t.startsWith("@"),Ch=t=>Sf(t)&&t.startsWith("!"),Rs=t=>Sf(t)&&t.startsWith("#"),jf=(t,e)=>{var n,r;return(r=(n=t.getRooms())==null?void 0:n.find(o=>o.getCanonicalAlias()===e&&so(o,Re.RoomTombstone)===void 0))==null?void 0:r.roomId},vo=(t,e)=>{const n=t.getRoom(e);return!n||so(n,Re.RoomTombstone)!==void 0?e:n.getCanonicalAlias()||e},n7=(t,e)=>{const n={};return n.w=t.width,n.h=t.height,n.mimetype=e.type,n.size=e.size,n},xfe=(t,e)=>{const n={};return n.duration=Number.isNaN(t.duration)?void 0:Math.floor(t.duration*1e3),n.w=t.videoWidth,n.h=t.videoHeight,n.mimetype=e.type,n.size=e.size,n},wfe=t=>{const{thumbnail:e,encInfo:n,mxc:r,width:o,height:i}=t,s={thumbnail_info:{mimetype:e.type,size:e.size,w:o,h:i}};return n?s.thumbnail_file={...n,url:r}:s.thumbnail_url=r,s},gH=async t=>{const e=await t.arrayBuffer(),n=await lH(e),r=new File([n.data],t.name,{type:t.type});return{encInfo:n.info,file:r,originalFile:t}},vd=async(t,e,n)=>{const r=await uH(t,n);return new Blob([r],{type:e})},kfe=async(t,e,n)=>{const{name:r,fileType:o,hideFilename:i,onProgress:s,onPromise:u,onSuccess:l,onError:c}=n,d=t.uploadContent(e,{name:r,type:o,includeFilename:!i,progressHandler:s});u==null||u(d);try{const F=await d,h=F.content_uri;h?l(h):c(new tn(F))}catch(F){const h=typeof(F==null?void 0:F.message)=="string"?F.message:void 0,m=typeof(F==null?void 0:F.name)=="string"?F.message:void 0;c(new tn({error:h,errcode:m}))}},pH=t=>e=>e.getSender()===t,r7=t=>typeof t.getContent().shortcode=="string",fC=(t,e)=>t.getRooms().filter(n=>n.hasEncryptionStateEvent()&&n.getMembers().length<=2).find(n=>n.getMember(e)),Sfe=(t,e)=>{var o,i;const n=s=>{let u,l;const c=d=>{var F;d.userId!==e&&(u===void 0||d.events.member&&d.events.member.getTs()<u)&&(l=d,u=(F=d.events.member)==null?void 0:F.getTs())};return s.forEach(c),l},r=n(t.getJoinedMembers());return r?r.userId:((i=n(((o=t.getLiveTimeline().getState(it.FORWARDS))==null?void 0:o.getMembers())??[]))==null?void 0:i.userId)??e},jfe=async(t,e,n)=>{var i;const r=((i=t.getAccountData(tr.Direct))==null?void 0:i.getContent())??{};Object.keys(r).forEach(s=>{const u=r[s];if(s!==n){const l=u.indexOf(e);l>-1&&u.splice(l,1)}});const o=r[n]||[];o.indexOf(e)===-1&&o.push(e),r[n]=o,await t.setAccountData(tr.Direct,r)},Xt=(t,e,n,r,o,i,s,u)=>t.mxcUrlToHttp(e,r,o,i,s,u,n),bd=async t=>await(await fetch(t,{method:"GET"})).blob(),Cd=async(t,e)=>{const n=await bd(t);return await e(await n.arrayBuffer())},$l=async(t,e,n)=>{let r=0,o=0;const i=u=>new Promise(l=>{setTimeout(l,u)}),s=async(u,l)=>{const[c]=await ei(e(u,l));if((c==null?void 0:c.httpStatus)===429){if(r===n)return;const d=c.getRetryAfterMs()??3e3;o=d*1.5,await i(d),r+=1,await s(u,l)}};for(let u=0;u<t.length;u+=1){const l=t[u];r=0,await s(l,u),o>0&&await i(o)}},Bf=t=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Bfe="https?:\\/\\/(?:www\\.)?(?:[^\\s)]*)(?<![.,:;!/?()[\\]\\s]+)",o7=new RegExp(Bfe,"g"),Afe=/^(([^<>()[\]\\.,;:\s@\\"]+(\.[^<>()[\]\\.,;:\s@\\"]+)*)|(\\".+\\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Tfe="(?<!(https?|ftp|mailto|magnet):\\/\\/\\S*)",Ife="[\uFE00-\uFE0F]",fH="[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\u{1F4A5})?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\u{1F525}|\u{1FA79}))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\u{1F1F2}|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\u{1F1E6}|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\u{1F1F0}|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\u{1F7EB})?|\uDF4B(?:\u200D\u{1F7E9})?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\u{1F308}))?|\uDFF4(?:\u200D\u2620\uFE0F?|\u{E0067}\u{E0062}\uDB40(?:\uDC65\u{E006E}\u{E0067}|\uDC73\u{E0063}\u{E0074}|\uDC77\u{E006C}\u{E0073})\u{E007F})?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\u{1F9BA})?|\uDC26(?:\u200D(?:\u2B1B|\u{1F525}))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\u{1F5E8}\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\u{1F466})?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\u{1F466})?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\u{1F468}\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\u{1F468}\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\u{1F468}\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\u{1F468}\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\u{1F468}\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\u{1F466})?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\u{1F466})?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\u{1F4A8})?|\uDE35(?:\u200D\u{1F4AB})?|\uDE36(?:\u200D\u{1F32B}\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\u{1F9D1}|\uDDD1\u200D\u{1F9D2}(?:\u200D\u{1F9D2})?|\uDDD2(?:\u200D\u{1F9D2})?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\u{1F9D1}\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\u{1F9D1}\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\u{1F9D1}\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\u{1F9D1}\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\u{1F9D1}\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\u{1FAF2}\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\u{1FAF2}\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\u{1FAF2}\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\u{1FAF2}\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\u{1FAF2}\uD83C[\uDFFB-\uDFFE])?))?)",_C=new RegExp(`^(((${fH})|(:.+?:))(${Ife}|\\s)*){1,10}$`),Lt={version:"4.8.1",secretKey:{ACCESS_TOKEN:"cinny_access_token",DEVICE_ID:"cinny_device_id",USER_ID:"cinny_user_id",BASE_URL:"cinny_hs_base_url"},status:{PRE_FLIGHT:"pre-flight",IN_FLIGHT:"in-flight",SUCCESS:"success",ERROR:"error"},actions:{navigation:{OPEN_SPACE_ADDEXISTING:"OPEN_SPACE_ADDEXISTING",OPEN_CREATE_ROOM:"OPEN_CREATE_ROOM",OPEN_JOIN_ALIAS:"OPEN_JOIN_ALIAS",OPEN_INVITE_USER:"OPEN_INVITE_USER",OPEN_PROFILE_VIEWER:"OPEN_PROFILE_VIEWER",OPEN_SEARCH:"OPEN_SEARCH",OPEN_REUSABLE_CONTEXT_MENU:"OPEN_REUSABLE_CONTEXT_MENU",OPEN_REUSABLE_DIALOG:"OPEN_REUSABLE_DIALOG"}},events:{navigation:{SPACE_ADDEXISTING_OPENED:"SPACE_ADDEXISTING_OPENED",CREATE_ROOM_OPENED:"CREATE_ROOM_OPENED",JOIN_ALIAS_OPENED:"JOIN_ALIAS_OPENED",INVITE_USER_OPENED:"INVITE_USER_OPENED",SEARCH_OPENED:"SEARCH_OPENED",REUSABLE_CONTEXT_MENU_OPENED:"REUSABLE_CONTEXT_MENU_OPENED",REUSABLE_DIALOG_OPENED:"REUSABLE_DIALOG_OPENED"}}};Object.freeze(Lt);function _H(t,e,n,r){localStorage.setItem(Lt.secretKey.ACCESS_TOKEN,t),localStorage.setItem(Lt.secretKey.DEVICE_ID,e),localStorage.setItem(Lt.secretKey.USER_ID,n),localStorage.setItem(Lt.secretKey.BASE_URL,r)}var Wl=(t=>(t.M_FORBIDDEN="M_FORBIDDEN",t.M_UNKNOWN_TOKEN="M_UNKNOWN_TOKEN",t.M_MISSING_TOKEN="M_MISSING_TOKEN",t.M_BAD_JSON="M_BAD_JSON",t.M_NOT_JSON="M_NOT_JSON",t.M_NOT_FOUND="M_NOT_FOUND",t.M_LIMIT_EXCEEDED="M_LIMIT_EXCEEDED",t.M_UNRECOGNIZED="M_UNRECOGNIZED",t.M_UNKNOWN="M_UNKNOWN",t.M_UNAUTHORIZED="M_UNAUTHORIZED",t.M_USER_DEACTIVATED="M_USER_DEACTIVATED",t.M_USER_IN_USE="M_USER_IN_USE",t.M_INVALID_USERNAME="M_INVALID_USERNAME",t.M_WEAK_PASSWORD="M_WEAK_PASSWORD",t.M_PASSWORD_TOO_SHORT="M_PASSWORD_TOO_SHORT",t.M_ROOM_IN_USE="M_ROOM_IN_USE",t.M_INVALID_ROOM_STATE="M_INVALID_ROOM_STATE",t.M_THREEPID_IN_USE="M_THREEPID_IN_USE",t.M_THREEPID_NOT_FOUND="M_THREEPID_NOT_FOUND",t.M_THREEPID_AUTH_FAILED="M_THREEPID_AUTH_FAILED",t.M_THREEPID_DENIED="M_THREEPID_DENIED",t.M_SERVER_NOT_TRUSTED="M_SERVER_NOT_TRUSTED",t.M_UNSUPPORTED_ROOM_VERSION="M_UNSUPPORTED_ROOM_VERSION",t.M_INCOMPATIBLE_ROOM_VERSION="M_INCOMPATIBLE_ROOM_VERSION",t.M_BAD_STATE="M_BAD_STATE",t.M_GUEST_ACCESS_FORBIDDEN="M_GUEST_ACCESS_FORBIDDEN",t.M_CAPTCHA_NEEDED="M_CAPTCHA_NEEDED",t.M_CAPTCHA_INVALID="M_CAPTCHA_INVALID",t.M_MISSING_PARAM="M_MISSING_PARAM",t.M_INVALID_PARAM="M_INVALID_PARAM",t.M_TOO_LARGE="M_TOO_LARGE",t.M_EXCLUSIVE="M_EXCLUSIVE",t.M_RESOURCE_LIMIT_EXCEEDED="M_RESOURCE_LIMIT_EXCEEDED",t.M_CANNOT_LEAVE_SERVER_NOTICE_ROOM="M_CANNOT_LEAVE_SERVER_NOTICE_ROOM",t))(Wl||{});const i7="after_login_redirect_url",vH=t=>{localStorage.setItem(i7,t)},bH=()=>localStorage.getItem(i7)??void 0,CH=()=>{localStorage.removeItem(i7)},Af=t=>t.pathname+t.search+t.hash,dm=(t,e)=>{const n=new URLSearchParams(e);return`${t}?${n}`},Rfe=t=>t.join(","),a7=t=>t.split(","),EH=t=>{const e=`${Ki(window.location.origin)}/`;return t!=null&&t.enabled?`${Ki(e)}/#${t.basename}`:e},yH=(t,e)=>{const n=t.indexOf("#");if(n>-1){const r=e.indexOf("#"),o=$g(t.slice(n+1)),i=$g(e.slice(r+1)).slice(o.length);return`/${$g(i)}`}return e.slice(Ki(t).length)},Kl=t=>{const e=t?{server:encodeURIComponent(t)}:void 0;return Pa(ip,e)},Ofe=t=>{const e=t?{server:encodeURIComponent(t)}:void 0;return Pa(Tv,e)},Mfe=t=>{const e=t?{server:encodeURIComponent(t)}:void 0;return Pa(Iv,e)},Eh=()=>ap,s7=()=>lde,u7=(t,e)=>{const n={roomIdOrAlias:encodeURIComponent(t),eventId:e?encodeURIComponent(e):null};return Pa(cde,n)},vC=()=>sp,l7=(t,e)=>{const n={roomIdOrAlias:encodeURIComponent(t),eventId:e?encodeURIComponent(e):null};return Pa(dde,n)},c7=t=>{const e={spaceIdOrAlias:encodeURIComponent(t)};return Pa(up,e)},bC=t=>{const e={spaceIdOrAlias:encodeURIComponent(t)};return Pa(hde,e)},d7=t=>{const e={spaceIdOrAlias:encodeURIComponent(t)};return Pa(Fde,e)},CC=(t,e,n)=>{const r={spaceIdOrAlias:encodeURIComponent(t),roomIdOrAlias:encodeURIComponent(e),eventId:n?encodeURIComponent(n):null};return Pa(mde,r)},Tf=()=>lp,EC=()=>Dde,hm=t=>{const e={server:encodeURIComponent(t)};return Pa(gde,e)},h7=()=>cp,If=()=>pde,yC=()=>fde,Pfe=(t,e)=>async()=>{if(!iN(t,e))throw new Error("NotAllow");const[,n]=await ei(ON(fetch,e));let r;const[,o]=n??[];if(o&&(r=o["m.homeserver"].base_url),!r)throw new Error("NotFound");const[,i]=await ei(MN(fetch,r));if(!i)throw new Error("NotFound");return r};var Ca=(t=>(t.ServerNotAllowed="ServerNotAllowed",t.InvalidServer="InvalidServer",t.Forbidden="Forbidden",t.UserDeactivated="UserDeactivated",t.InvalidRequest="InvalidRequest",t.RateLimited="RateLimited",t.Unknown="Unknown",t))(Ca||{});const xH=async(t,e)=>{const[n,r]=typeof t=="function"?await ei(t()):[void 0,t];if(n)throw new tn({errcode:n.message==="NotAllow"?"ServerNotAllowed":"InvalidServer"});const o=_h({baseUrl:r}),[i,s]=await ei(o.loginRequest(e));if(i)throw i.httpStatus===400?new tn({errcode:"InvalidRequest"}):i.httpStatus===429?new tn({errcode:"RateLimited"}):i.errcode===Wl.M_USER_DEACTIVATED?new tn({errcode:"UserDeactivated"}):i.httpStatus===403?new tn({errcode:"Forbidden"}):new tn({errcode:"Unknown"});return{baseUrl:r,response:s}},wH=t=>{const e=Xr();f.useEffect(()=>{if(t){const{response:n,baseUrl:r}=t;_H(n.access_token,n.device_id,n.user_id,r);const o=bH();CH(),e(o??Eh(),{replace:!0})}},[t,e])};function Oo({initial:t,children:e}){return e(...f.useState(t))}const Ka=f.forwardRef(({variant:t="Background",size:e,style:n,after:r,...o},i)=>{const s=e==="500"?le.space.S300:le.space.S200;return a.jsx(Oo,{initial:!1,children:(u,l)=>a.jsx(En,{...o,ref:i,style:{paddingRight:s,...n},type:u?"text":"password",size:e,variant:t,after:a.jsxs(a.Fragment,{children:[r,a.jsx(Me,{onClick:()=>l(!u),type:"button",variant:u?"Warning":t,size:"300",radii:"300",children:a.jsx(Q,{style:{opacity:le.opacity.P300},size:"100",src:u?$.Eye:$.EyeBlind})})]})})})});function Ho({message:t}){return a.jsxs(y,{style:{color:ct.Critical.Main},alignItems:"Center",gap:"100",children:[a.jsx(Q,{size:"50",filled:!0,src:$.Warning}),a.jsx(x,{size:"T200",children:a.jsx("b",{children:t})})]})}function Lfe({server:t}){const[e,n]=f.useState(),r=o=>{n(o.currentTarget.getBoundingClientRect())};return a.jsx(Ut,{anchor:e,position:"Top",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>n(void 0),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsxs(zt,{children:[a.jsx(In,{size:"300",style:{padding:`0 ${le.space.S200}`},children:a.jsx(x,{size:"L400",children:"Hint"})}),a.jsxs(y,{style:{padding:le.space.S200,paddingTop:0},direction:"Column",tabIndex:0,gap:"100",children:[a.jsxs(x,{size:"T300",children:[a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:"Username:"})," ","johndoe"]}),a.jsxs(x,{size:"T300",children:[a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:"Matrix ID:"}),` @johndoe:${t}`]}),a.jsxs(x,{size:"T300",children:[a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:"Email:"}),` johndoe@${t}`]})]})]})}),children:a.jsx(Me,{tabIndex:-1,onClick:r,type:"button",variant:"Background",size:"300",radii:"300","aria-pressed":!!e,children:a.jsx(Q,{style:{opacity:le.opacity.P300},size:"100",src:$.Info})})})}function Nfe({defaultUsername:t,defaultEmail:e}){const n=lm(),r=W1(),o=kF()["m.homeserver"].base_url,[i,s]=et(f.useCallback(xH,[]));wH(i.status===he.Success?i.data:void 0);const u=(F,h)=>{s(o,{type:"m.login.password",identifier:{type:"m.id.user",user:F},password:h,initial_device_display_name:"Cinny Web"})},l=async(F,h)=>{const m=xu(F),D=ln(F);if(!m||!D)return;const g=Pfe(r,m);s(g,{type:"m.login.password",identifier:{type:"m.id.user",user:D},password:h,initial_device_display_name:"Cinny Web"})},c=(F,h)=>{s(o,{type:"m.login.password",identifier:{type:"m.id.thirdparty",medium:"email",address:F},password:h,initial_device_display_name:"Cinny Web"})},d=F=>{F.preventDefault();const{usernameInput:h,passwordInput:m}=F.target,D=h.value.trim(),g=m.value;if(!D){h.focus();return}if(!g){m.focus();return}if(wu(D)){l(D,g);return}if(Afe.test(D)){c(D,g);return}u(D,g)};return a.jsxs(y,{as:"form",onSubmit:d,direction:"Inherit",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{as:"label",size:"L400",priority:"300",children:"Username"}),a.jsx(En,{defaultValue:t??e,style:{paddingRight:le.space.S300},name:"usernameInput",variant:"Background",size:"500",required:!0,outlined:!0,after:a.jsx(Lfe,{server:n})}),i.status===he.Error&&a.jsxs(a.Fragment,{children:[i.error.errcode===Ca.ServerNotAllowed&&a.jsx(Ho,{message:"Login with custom server not allowed by your client instance."}),i.error.errcode===Ca.InvalidServer&&a.jsx(Ho,{message:"Failed to find your Matrix ID server."})]})]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{as:"label",size:"L400",priority:"300",children:"Password"}),a.jsx(Ka,{name:"passwordInput",variant:"Background",size:"500",outlined:!0,required:!0}),a.jsxs(y,{alignItems:"Start",justifyContent:"SpaceBetween",gap:"200",children:[i.status===he.Error&&a.jsxs(a.Fragment,{children:[i.error.errcode===Ca.Forbidden&&a.jsx(Ho,{message:"Invalid Username or Password."}),i.error.errcode===Ca.UserDeactivated&&a.jsx(Ho,{message:"This account has been deactivated."}),i.error.errcode===Ca.InvalidRequest&&a.jsx(Ho,{message:"Failed to login. Part of your request data is invalid."}),i.error.errcode===Ca.RateLimited&&a.jsx(Ho,{message:"Failed to login. Your login request has been rate-limited by server, Please try after some time."}),i.error.errcode===Ca.Unknown&&a.jsx(Ho,{message:"Failed to login. Unknown reason."})]}),a.jsx(y,{grow:"Yes",shrink:"No",justifyContent:"End",children:a.jsx(x,{as:"span",size:"T200",priority:"400",align:"Right",children:a.jsx(ep,{to:Mfe(n),children:"Forget Password?"})})})]})]}),a.jsx(Ee,{type:"submit",variant:"Primary",size:"500",children:a.jsx(x,{as:"span",size:"B500",children:"Login"})}),a.jsx(Rn,{open:i.status===he.Loading||i.status===he.Success,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(ot,{variant:"Secondary",size:"600"})})})]})}function kH({providers:t,redirectUrl:e,saveScreenSpace:n}){const r=kF()["m.homeserver"].base_url,o=f.useMemo(()=>_h({baseUrl:r}),[r]),i=u=>o.getSsoLoginUrl(e,"sso",u),s=!t||t.find(u=>!u.icon||!o.mxcUrlToHttp(u.icon,96,96,"crop",!1))?!1:n&&t&&t.length>2;return a.jsx(y,{justifyContent:"Center",gap:"600",wrap:"Wrap",children:t?t.map(u=>{const{id:l,name:c,icon:d}=u,F=d&&o.mxcUrlToHttp(d,96,96,"crop",!1),h=`Continue with ${c}`;return s?a.jsx(Rt,{style:{cursor:"pointer"},as:"a",href:i(l),"aria-label":h,size:"300",radii:"300",children:a.jsx(xl,{src:F,alt:c,title:h})},l):a.jsx(Ee,{style:{width:"100%"},as:"a",href:i(l),size:"500",variant:"Secondary",fill:"Soft",outlined:!0,before:F&&a.jsx(Rt,{size:"200",radii:"300",children:a.jsx(xl,{src:F,alt:c})}),children:a.jsx(x,{align:"Center",size:"B500",truncate:!0,children:h})},l)}):a.jsx(Ee,{style:{width:"100%"},as:"a",href:i(),size:"500",variant:"Secondary",fill:"Soft",outlined:!0,children:a.jsx(x,{align:"Center",size:"B500",truncate:!0,children:"Continue with SSO"})})})}function Rf({message:t}){return a.jsxs(y,{style:{backgroundColor:ct.Critical.Container,color:ct.Critical.OnContainer,padding:le.space.S300,borderRadius:le.radii.R400},justifyContent:"Start",alignItems:"Start",gap:"300",children:[a.jsx(Q,{size:"300",filled:!0,src:$.Warning}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Token Login"}),a.jsx(x,{size:"T300",children:a.jsx("b",{children:t})})]})]})}function zfe({token:t}){const e=kF()["m.homeserver"].base_url,[n,r]=et(f.useCallback(xH,[]));return f.useEffect(()=>{r(e,{type:"m.login.token",token:t,initial_device_display_name:"Cinny Web"})},[e,t,r]),wH(n.status===he.Success?n.data:void 0),a.jsxs(a.Fragment,{children:[n.status===he.Error&&a.jsxs(a.Fragment,{children:[n.error.errcode===Ca.Forbidden&&a.jsx(Rf,{message:"Invalid login token."}),n.error.errcode===Ca.UserDeactivated&&a.jsx(Rf,{message:"This account has been deactivated."}),n.error.errcode===Ca.InvalidRequest&&a.jsx(Rf,{message:"Failed to login. Part of your request data is invalid."}),n.error.errcode===Ca.RateLimited&&a.jsx(Rf,{message:"Failed to login. Your login request has been rate-limited by server, Please try after some time."}),n.error.errcode===Ca.Unknown&&a.jsx(Rf,{message:"Failed to login. Unknown reason."})]}),a.jsx(Rn,{open:n.status!==he.Error,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(ot,{size:"600",variant:"Secondary"})})})]})}function SH(){return a.jsxs(y,{gap:"400",alignItems:"Center",children:[a.jsx(jn,{style:{flexGrow:1},direction:"Horizontal",size:"300",variant:"Surface"}),a.jsx(x,{children:"OR"}),a.jsx(jn,{style:{flexGrow:1},direction:"Horizontal",size:"300",variant:"Surface"})]})}const F7=t=>{const{hashRouter:e}=W1(),{origin:n}=window.location;return f.useMemo(()=>{let r=$6(n);return r+=`/${$6("/")}`,r=Ki(r),e!=null&&e.enabled&&(r+=`/#/${$6(e.basename??"")}`,r=Ki(r)),r+=`/${$g(t)}`,r},[t,e,n])},Ufe=()=>new URLSearchParams(window.location.search).get("loginToken")??void 0,Vfe=t=>f.useMemo(()=>({username:t.get("username")??void 0,email:t.get("email")??void 0,loginToken:t.get("loginToken")??void 0}),[t]);function qfe(){const t=lm(),{hashRouter:e}=W1(),{loginFlows:n}=Jq(),[r]=Yc(),o=Vfe(r),i=F7(Kl(t)),s=Ufe(),u=F7(Kl(t));e!=null&&e.enabled&&s&&window.location.replace(dm(u,{loginToken:s}));const l=aH(n.flows);return a.jsxs(y,{direction:"Column",gap:"500",children:[a.jsx(x,{size:"H2",priority:"400",children:"Login"}),l.token&&o.loginToken&&a.jsx(zfe,{token:o.loginToken}),l.password&&a.jsxs(a.Fragment,{children:[a.jsx(Nfe,{defaultUsername:o.username,defaultEmail:o.email}),a.jsx("span",{"data-spacing-node":!0}),l.sso&&a.jsx(SH,{})]}),l.sso&&a.jsxs(a.Fragment,{children:[a.jsx(kH,{providers:l.sso.identity_providers,redirectUrl:i,saveScreenSpace:l.password!==void 0}),a.jsx("span",{"data-spacing-node":!0})]}),!l.password&&!l.sso&&a.jsxs(a.Fragment,{children:[a.jsx(x,{style:{color:ct.Critical.Main},children:`This client does not support login on "${t}" homeserver. Password and SSO based login method not found.`}),a.jsx("span",{"data-spacing-node":!0})]}),a.jsxs(x,{align:"Center",children:["Do not have an account? ",a.jsx(ep,{to:Ofe(t),children:"Register"})]})]})}const Hfe=(t,e)=>t.filter(n=>n.stages.every(r=>e.includes(r))),$fe=t=>t.completed??[],Wfe=t=>t.params??{},Kfe=t=>t.session??void 0,jH=t=>"errcode"in t&&typeof t.errcode=="string"?t.errcode:void 0,BH=t=>"error"in t&&typeof t.error=="string"?t.error:void 0,Gfe=(t,e)=>{const n=t.filter(r=>r.stages.length<e.length?!1:r.stages.length>e.length?r.stages.length>e.length+1||e.includes(Jt.Dummy)?!1:!!r.stages.includes(Jt.Dummy):!0).filter(r=>e.every(o=>r.stages.includes(o)));if(n.length!==0)return n.sort((r,o)=>r.stages.length-o.stages.length),n[0]},xC=(t,e)=>t.some(n=>n.stages.includes(e)),wC=(t,e)=>t.every(n=>n.stages.includes(e)),Yfe=t=>{var n,r;const e=t[Jt.Terms];if(e&&"policies"in e&&typeof e.policies=="object"){if(e.policies===null)return;if("privacy_policy"in e.policies&&typeof e.policies.privacy_policy=="object"){if(e.policies.privacy_policy===null)return;const o=e.policies.privacy_policy,i=(n=o.en)==null?void 0:n.url;if(typeof i=="string")return i;const s=Object.keys(o)[0];return(r=o[s])==null?void 0:r.url}}};Jt.Dummy,Jt.Password,Jt.Email,Jt.Terms,Jt.Recaptcha,Jt.RegistrationToken;const AH=(t,e)=>f.useMemo(()=>Hfe(t,e),[t,e]),m7=t=>f.useMemo(()=>$fe(t),[t]),TH=t=>f.useMemo(()=>Wfe(t),[t]),Zfe=t=>f.useMemo(()=>Kfe(t),[t]),Jfe=t=>f.useMemo(()=>jH(t),[t]),Xfe=t=>f.useMemo(()=>BH(t),[t]),IH=(t,e)=>{const n=m7(t),r=TH(t),o=Zfe(t),i=Jfe(t),s=Xfe(t),u=f.useCallback(()=>{const{stages:d}=e,F=d.find(m=>!n.includes(m));if(!F)return;const h=r[F];return{type:F,info:h,session:o,errorCode:i,error:s}},[e,n,r,i,s,o]),l=f.useCallback(d=>e.stages.includes(d),[e]),c=f.useCallback(d=>{if(l(d))return r[d]},[l,r]);return{getStageToComplete:u,hasStage:l,getStageInfo:c}},Qfe=t=>t?t.httpStatus===401?[t.data,void 0]:[void 0,t]:[void 0,void 0];var ku=(t=>(t.UserTaken="UserTaken",t.UserInvalid="UserInvalid",t.UserExclusive="UserExclusive",t.PasswordWeak="PasswordWeak",t.PasswordShort="PasswordShort",t.InvalidRequest="InvalidRequest",t.Forbidden="Forbidden",t.RateLimited="RateLimited",t.Unknown="Unknown",t))(ku||{});const e3e=async(t,e)=>{const[n,r]=await ei(t.registerRequest(e));if(n){if(n.httpStatus===401)return[n.data,void 0];throw n.errcode===Wl.M_USER_IN_USE?new tn({errcode:"UserTaken"}):n.errcode===Wl.M_INVALID_USERNAME?new tn({errcode:"UserInvalid"}):n.errcode===Wl.M_EXCLUSIVE?new tn({errcode:"UserExclusive"}):n.errcode===Wl.M_WEAK_PASSWORD?new tn({errcode:"PasswordWeak",error:n.data.error}):n.errcode===Wl.M_PASSWORD_TOO_SHORT?new tn({errcode:"PasswordShort",error:n.data.error}):n.httpStatus===429?new tn({errcode:"RateLimited"}):n.httpStatus===400?new tn({errcode:"InvalidRequest"}):n.httpStatus===403?new tn({errcode:"Forbidden"}):new tn({errcode:"Unknown",error:n.data.error})}return[void 0,{baseUrl:t.baseUrl,response:r}]},t3e=t=>{const e=Xr();f.useEffect(()=>{if(t){const{response:n,baseUrl:r}=t,o=n.user_id,i=n.access_token,s=n.device_id;if(i&&s){_H(i,s,o,r);const u=bH();CH(),e(u??Eh(),{replace:!0})}else{const u=ln(o),l=xu(o);e(dm(Kl(l),{username:u}),{replace:!0})}}},[t,e])};function n3e({title:t,message:e,onRetry:n,onCancel:r}){return a.jsx(cr,{children:a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"H4",children:t}),a.jsx(x,{children:e})]}),a.jsx(Ee,{variant:"Critical",onClick:n,children:a.jsx(x,{as:"span",size:"B400",children:"Retry"})}),a.jsx(Ee,{variant:"Critical",fill:"None",outlined:!0,onClick:r,children:a.jsx(x,{as:"span",size:"B400",children:"Cancel"})})]})})}function r3e({stageData:t,submitAuthDict:e,onCancel:n}){const{errorCode:r,error:o,session:i}=t,s=f.useCallback(()=>{e({type:Jt.Dummy,session:i})},[i,e]);return f.useEffect(()=>{r||s()},[s,r]),r?a.jsx(n3e,{title:r,message:o??"Failed to register.",onRetry:s,onCancel:n}):null}function RH({title:t,message:e,defaultEmail:n,onRetry:r,onCancel:o}){const i=s=>{s.preventDefault();const{retryEmailInput:u}=s.target,l=u.value;r(l)};return a.jsx(cr,{children:a.jsxs(y,{as:"form",onSubmit:i,style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"H4",children:t}),a.jsx(x,{children:e}),a.jsx(x,{as:"label",size:"L400",style:{paddingTop:le.space.S400},children:"Email"}),a.jsx(En,{name:"retryEmailInput",variant:"Background",size:"500",outlined:!0,defaultValue:n,required:!0})]}),a.jsx(Ee,{variant:"Primary",type:"submit",children:a.jsx(x,{as:"span",size:"B400",children:"Send Verification Email"})}),a.jsx(Ee,{variant:"Critical",fill:"None",outlined:!0,type:"button",onClick:o,children:a.jsx(x,{as:"span",size:"B400",children:"Cancel"})})]})})}function OH({email:t,clientSecret:e,stageData:n,emailTokenState:r,requestEmailToken:o,submitAuthDict:i,onCancel:s}){var h,m;const{errorCode:u,error:l,session:c}=n,d=f.useCallback(D=>{const g={sid:D,client_secret:e};i({type:Jt.Email,threepid_creds:g,threepidCreds:g,session:c})},[i,c,e]),F=f.useCallback(D=>{o(D,e)},[e,o]);return f.useEffect(()=>{t&&!u&&r.status===he.Idle&&o(t,e)},[t,u,e,r,o]),r.status===he.Loading?a.jsxs(y,{direction:"Column",alignItems:"Center",gap:"400",children:[a.jsx(ot,{variant:"Secondary",size:"600"}),a.jsx(x,{style:{color:ct.Secondary.Main},children:"Sending verification email..."})]}):r.status===he.Error?a.jsx(RH,{title:r.error.errcode??"Verify Email",message:((m=(h=r.error)==null?void 0:h.data)==null?void 0:m.error)??r.error.message??"Failed to send verification Email request.",onRetry:F,onCancel:s}):r.status===he.Success?a.jsx(cr,{children:a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"H4",children:"Verification Request Sent"}),a.jsx(x,{children:`Please check your email "${r.data.email}" and validate before continuing further.`}),u&&a.jsx(x,{style:{color:ct.Critical.Main},children:`${u}: ${l}`})]}),a.jsx(Ee,{variant:"Primary",onClick:()=>d(r.data.result.sid),children:a.jsx(x,{as:"span",size:"B400",children:"Continue"})})]})}):t?null:a.jsx(RH,{title:"Provide Email",message:"Please provide email to send verification request.",onRetry:F,onCancel:s})}function o3e({stageData:t,submitAuthDict:e,onCancel:n,userId:r}){const{errorCode:o,error:i,session:s}=t,u=l=>{l.preventDefault();const{passwordInput:c}=l.target,d=c.value;d&&e({type:Jt.Password,identifier:{type:"m.id.user",user:r},password:d,session:s})};return a.jsxs(cr,{children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Account Password"})}),a.jsx(Me,{size:"300",onClick:n,radii:"300",children:a.jsx(Q,{src:$.Cross})})]}),a.jsxs(y,{as:"form",onSubmit:u,style:{padding:`0 ${le.space.S400} ${le.space.S400}`},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(x,{size:"T200",children:"To perform this action you need to authenticate yourself by entering you account password."}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Password"}),a.jsx(Ka,{size:"400",name:"passwordInput",outlined:!0,autoFocus:!0,required:!0}),o&&a.jsxs(y,{alignItems:"Center",gap:"100",style:{color:ct.Critical.Main},children:[a.jsx(Q,{size:"50",src:$.Warning,filled:!0}),a.jsx(x,{size:"T200",children:a.jsx("b",{children:o===Wl.M_FORBIDDEN?"Invalid Password!":`${o}: ${i}`})})]})]})]}),a.jsx(Ee,{variant:"Primary",type:"submit",children:a.jsx(x,{as:"span",size:"B400",children:"Continue"})})]})]})}function D7(){return D7=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},D7.apply(this,arguments)}function i3e(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function kC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a3e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var SC=function(t){a3e(e,t);function e(){var r;return r=t.call(this)||this,r.handleExpired=r.handleExpired.bind(kC(r)),r.handleErrored=r.handleErrored.bind(kC(r)),r.handleChange=r.handleChange.bind(kC(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(kC(r)),r}var n=e.prototype;return n.getValue=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this.props.grecaptcha.getResponse(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var r=this.props.grecaptcha;if(r&&this._widgetId!==void 0)return r.execute(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var r=this;return new Promise(function(o,i){r.executionResolve=o,r.executionReject=i,r.execute()})},n.reset=function(){this.props.grecaptcha&&this._widgetId!==void 0&&this.props.grecaptcha.reset(this._widgetId)},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(r){this.props.onChange&&this.props.onChange(r),this.executionResolve&&(this.executionResolve(r),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&this._widgetId===void 0){var r=document.createElement("div");this._widgetId=this.props.grecaptcha.render(r,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(r)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.componentWillUnmount=function(){this._widgetId!==void 0&&(this.delayOfCaptchaIframeRemoving(),this.reset())},n.delayOfCaptchaIframeRemoving=function(){var r=document.createElement("div");for(document.body.appendChild(r),r.style.display="none";this.captcha.firstChild;)r.appendChild(this.captcha.firstChild);setTimeout(function(){document.body.removeChild(r)},5e3)},n.handleRecaptchaRef=function(r){this.captcha=r},n.render=function(){var r=this.props;r.sitekey,r.onChange,r.theme,r.type,r.tabindex,r.onExpired,r.onErrored,r.size,r.stoken,r.grecaptcha,r.badge,r.hl;var o=i3e(r,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]);return ft.createElement("div",D7({},o,{ref:this.handleRecaptchaRef}))},e}(ft.Component);SC.displayName="ReCAPTCHA",SC.propTypes={sitekey:fe.string.isRequired,onChange:fe.func,grecaptcha:fe.object,theme:fe.oneOf(["dark","light"]),type:fe.oneOf(["image","audio"]),tabindex:fe.number,onExpired:fe.func,onErrored:fe.func,size:fe.oneOf(["compact","normal","invisible"]),stoken:fe.string,hl:fe.string,badge:fe.oneOf(["bottomright","bottomleft","inline"])},SC.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var MH={exports:{}},sr={},$o=typeof Symbol=="function"&&Symbol.for,g7=$o?Symbol.for("react.element"):60103,p7=$o?Symbol.for("react.portal"):60106,jC=$o?Symbol.for("react.fragment"):60107,BC=$o?Symbol.for("react.strict_mode"):60108,AC=$o?Symbol.for("react.profiler"):60114,TC=$o?Symbol.for("react.provider"):60109,IC=$o?Symbol.for("react.context"):60110,f7=$o?Symbol.for("react.async_mode"):60111,RC=$o?Symbol.for("react.concurrent_mode"):60111,OC=$o?Symbol.for("react.forward_ref"):60112,MC=$o?Symbol.for("react.suspense"):60113,s3e=$o?Symbol.for("react.suspense_list"):60120,PC=$o?Symbol.for("react.memo"):60115,LC=$o?Symbol.for("react.lazy"):60116,u3e=$o?Symbol.for("react.block"):60121,l3e=$o?Symbol.for("react.fundamental"):60117,c3e=$o?Symbol.for("react.responder"):60118,d3e=$o?Symbol.for("react.scope"):60119;function Ea(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case g7:switch(t=t.type,t){case f7:case RC:case jC:case AC:case BC:case MC:return t;default:switch(t=t&&t.$$typeof,t){case IC:case OC:case LC:case PC:case TC:return t;default:return e}}case p7:return e}}}function PH(t){return Ea(t)===RC}sr.AsyncMode=f7,sr.ConcurrentMode=RC,sr.ContextConsumer=IC,sr.ContextProvider=TC,sr.Element=g7,sr.ForwardRef=OC,sr.Fragment=jC,sr.Lazy=LC,sr.Memo=PC,sr.Portal=p7,sr.Profiler=AC,sr.StrictMode=BC,sr.Suspense=MC,sr.isAsyncMode=function(t){return PH(t)||Ea(t)===f7},sr.isConcurrentMode=PH,sr.isContextConsumer=function(t){return Ea(t)===IC},sr.isContextProvider=function(t){return Ea(t)===TC},sr.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===g7},sr.isForwardRef=function(t){return Ea(t)===OC},sr.isFragment=function(t){return Ea(t)===jC},sr.isLazy=function(t){return Ea(t)===LC},sr.isMemo=function(t){return Ea(t)===PC},sr.isPortal=function(t){return Ea(t)===p7},sr.isProfiler=function(t){return Ea(t)===AC},sr.isStrictMode=function(t){return Ea(t)===BC},sr.isSuspense=function(t){return Ea(t)===MC},sr.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===jC||t===RC||t===AC||t===BC||t===MC||t===s3e||typeof t=="object"&&t!==null&&(t.$$typeof===LC||t.$$typeof===PC||t.$$typeof===TC||t.$$typeof===IC||t.$$typeof===OC||t.$$typeof===l3e||t.$$typeof===c3e||t.$$typeof===d3e||t.$$typeof===u3e)},sr.typeOf=Ea,MH.exports=sr;var h3e=MH.exports,_7=h3e,F3e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},m3e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},D3e={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},LH={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v7={};v7[_7.ForwardRef]=D3e,v7[_7.Memo]=LH;function NH(t){return _7.isMemo(t)?LH:v7[t.$$typeof]||F3e}var g3e=Object.defineProperty,p3e=Object.getOwnPropertyNames,zH=Object.getOwnPropertySymbols,f3e=Object.getOwnPropertyDescriptor,_3e=Object.getPrototypeOf,UH=Object.prototype;function VH(t,e,n){if(typeof e!="string"){if(UH){var r=_3e(e);r&&r!==UH&&VH(t,r,n)}var o=p3e(e);zH&&(o=o.concat(zH(e)));for(var i=NH(t),s=NH(e),u=0;u<o.length;++u){var l=o[u];if(!m3e[l]&&!(n&&n[l])&&!(s&&s[l])&&!(i&&i[l])){var c=f3e(e,l);try{g3e(t,l,c)}catch{}}}}return t}var v3e=VH;const b3e=Rr(v3e);function b7(){return b7=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b7.apply(this,arguments)}function C3e(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function E3e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Os={},y3e=0;function x3e(t,e){return e=e||{},function(n){var r=n.displayName||n.name||"Component",o=function(s){E3e(u,s);function u(c,d){var F;return F=s.call(this,c,d)||this,F.state={},F.__scriptURL="",F}var l=u.prototype;return l.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+y3e++),this.__scriptLoaderID},l.setupScriptURL=function(){return this.__scriptURL=typeof t=="function"?t():t,this.__scriptURL},l.asyncScriptLoaderHandleLoad=function(c){var d=this;this.setState(c,function(){return d.props.asyncScriptOnLoad&&d.props.asyncScriptOnLoad(d.state)})},l.asyncScriptLoaderTriggerOnScriptLoaded=function(){var c=Os[this.__scriptURL];if(!c||!c.loaded)throw new Error("Script is not loaded.");for(var d in c.observers)c.observers[d](c);delete window[e.callbackName]},l.componentDidMount=function(){var c=this,d=this.setupScriptURL(),F=this.asyncScriptLoaderGetScriptLoaderID(),h=e,m=h.globalName,D=h.callbackName,g=h.scriptId;if(m&&typeof window[m]<"u"&&(Os[d]={loaded:!0,observers:{}}),Os[d]){var p=Os[d];if(p&&(p.loaded||p.errored)){this.asyncScriptLoaderHandleLoad(p);return}p.observers[F]=function(k){return c.asyncScriptLoaderHandleLoad(k)};return}var _={};_[F]=function(k){return c.asyncScriptLoaderHandleLoad(k)},Os[d]={loaded:!1,observers:_};var v=document.createElement("script");v.src=d,v.async=!0;for(var E in e.attributes)v.setAttribute(E,e.attributes[E]);g&&(v.id=g);var b=function(k){if(Os[d]){var C=Os[d],S=C.observers;for(var w in S)k(S[w])&&delete S[w]}};D&&typeof window<"u"&&(window[D]=function(){return c.asyncScriptLoaderTriggerOnScriptLoaded()}),v.onload=function(){var k=Os[d];k&&(k.loaded=!0,b(function(C){return D?!1:(C(k),!0)}))},v.onerror=function(){var k=Os[d];k&&(k.errored=!0,b(function(C){return C(k),!0}))},document.body.appendChild(v)},l.componentWillUnmount=function(){var c=this.__scriptURL;if(e.removeOnUnmount===!0)for(var d=document.getElementsByTagName("script"),F=0;F<d.length;F+=1)d[F].src.indexOf(c)>-1&&d[F].parentNode&&d[F].parentNode.removeChild(d[F]);var h=Os[c];h&&(delete h.observers[this.asyncScriptLoaderGetScriptLoaderID()],e.removeOnUnmount===!0&&delete Os[c])},l.render=function(){var c=e.globalName,d=this.props;d.asyncScriptOnLoad;var F=d.forwardedRef,h=C3e(d,["asyncScriptOnLoad","forwardedRef"]);return c&&typeof window<"u"&&(h[c]=typeof window[c]<"u"?window[c]:void 0),h.ref=F,f.createElement(n,h)},u}(f.Component),i=f.forwardRef(function(s,u){return f.createElement(o,b7({},s,{forwardedRef:u}))});return i.displayName="AsyncScriptLoader("+r+")",i.propTypes={asyncScriptOnLoad:fe.func},b3e(i,n)}}var qH="onloadcallback",w3e="grecaptcha";function k3e(){return typeof window<"u"&&window.recaptchaOptions||{}}function S3e(){var t=k3e(),e=t.useRecaptchaNet?"recaptcha.net":"www.google.com";return"https://"+e+"/recaptcha/api.js?onload="+qH+"&render=explicit"}const j3e=x3e(S3e,{callbackName:qH,globalName:w3e})(SC);function B3e({title:t,message:e,onCancel:n}){return a.jsx(cr,{children:a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"H4",children:t}),a.jsx(x,{children:e})]}),a.jsx(Ee,{variant:"Critical",fill:"None",outlined:!0,onClick:n,children:a.jsx(x,{as:"span",size:"B400",children:"Cancel"})})]})})}function A3e({stageData:t,submitAuthDict:e,onCancel:n}){const{info:r,session:o}=t,i=r==null?void 0:r.public_key,s=u=>{e({type:Jt.Recaptcha,response:u,session:o})};return typeof i!="string"||!o?a.jsx(B3e,{title:"Invalid Data",message:"No valid data found to proceed with ReCAPTCHA.",onCancel:n}):a.jsx(cr,{children:a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsx(x,{children:"Please check the box below to proceed."}),a.jsx(j3e,{sitekey:i,onChange:s})]})})}function HH({title:t,message:e,defaultToken:n,onRetry:r,onCancel:o}){const i=s=>{s.preventDefault();const{retryTokenInput:u}=s.target,l=u.value;r(l)};return a.jsx(cr,{children:a.jsxs(y,{as:"form",onSubmit:i,style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"H4",children:t}),a.jsx(x,{children:e}),a.jsx(x,{as:"label",size:"L400",style:{paddingTop:le.space.S400},children:"Registration Token"}),a.jsx(En,{name:"retryTokenInput",variant:"Background",size:"500",outlined:!0,defaultValue:n,required:!0})]}),a.jsx(Ee,{variant:"Critical",type:"submit",children:a.jsx(x,{as:"span",size:"B400",children:"Retry"})}),a.jsx(Ee,{variant:"Critical",fill:"None",outlined:!0,type:"button",onClick:o,children:a.jsx(x,{as:"span",size:"B400",children:"Cancel"})})]})})}function T3e({token:t,stageData:e,submitAuthDict:n,onCancel:r}){const{errorCode:o,error:i,session:s}=e,u=f.useCallback(l=>{n({type:Jt.RegistrationToken,token:l,session:s})},[s,n]);return f.useEffect(()=>{t&&!o&&u(t)},[u,t,o]),o?a.jsx(HH,{defaultToken:t,title:o,message:i??"Invalid registration token provided.",onRetry:u,onCancel:r}):t?null:a.jsx(HH,{defaultToken:t,title:"Registration Token",message:"Please submit registration token provided by you homeserver admin.",onRetry:u,onCancel:r})}function I3e({ssoRedirectURL:t,stageData:e,submitAuthDict:n,onCancel:r}){const{errorCode:o,error:i,session:s}=e,[u,l]=f.useState(),c=f.useCallback(()=>{n({session:s})},[n,s]),d=()=>{const F=window.open(t,"_blank");l(F??void 0)};return f.useEffect(()=>{const F=h=>{u&&h.data==="authDone"&&h.source===u&&(u.close(),l(void 0),c())};return window.addEventListener("message",F),()=>{window.removeEventListener("message",F)}},[u,c]),a.jsxs(cr,{children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"SSO Login"})}),a.jsx(Me,{size:"300",onClick:r,radii:"300",children:a.jsx(Q,{src:$.Cross})})]}),a.jsxs(y,{style:{padding:`0 ${le.space.S400} ${le.space.S400}`},direction:"Column",gap:"400",children:[a.jsx(x,{size:"T200",children:"To perform this action you need to authenticate yourself by SSO login."}),o&&a.jsxs(y,{alignItems:"Center",gap:"100",style:{color:ct.Critical.Main},children:[a.jsx(Q,{size:"50",src:$.Warning,filled:!0}),a.jsx(x,{size:"T200",children:a.jsx("b",{children:`${o}: ${i}`})})]}),u?a.jsx(Ee,{variant:"Primary",onClick:c,children:a.jsx(x,{as:"span",size:"B400",children:"Continue"})}):a.jsx(Ee,{variant:"Primary",onClick:d,children:a.jsx(x,{as:"span",size:"B400",children:"Continue with SSO"})})]})]})}function R3e({title:t,message:e,onRetry:n,onCancel:r}){return a.jsx(cr,{children:a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"H4",children:t}),a.jsx(x,{children:e})]}),a.jsx(Ee,{variant:"Critical",onClick:n,children:a.jsx(x,{as:"span",size:"B400",children:"Retry"})}),a.jsx(Ee,{variant:"Critical",fill:"None",outlined:!0,onClick:r,children:a.jsx(x,{as:"span",size:"B400",children:"Cancel"})})]})})}function O3e({stageData:t,submitAuthDict:e,onCancel:n}){const{errorCode:r,error:o,session:i}=t,s=f.useCallback(()=>e({type:Jt.Terms,session:i}),[i,e]);return f.useEffect(()=>{r||s()},[i,r,s]),r?a.jsx(R3e,{title:r,message:o??"Failed to submit Terms and Condition Acceptance.",onRetry:s,onCancel:n}):null}const M3e=t=>{const e=f.useRef(1),n=f.useCallback(async(i,s,u)=>{const l=e.current;e.current+=1;const c=await t.requestRegisterEmailToken(i,s,l,u);return{email:i,clientSecret:s,result:c}},[t]),[r,o]=et(n);return[r,o]};function C7({initialValue:t,children:e}){const[n,r]=f.useState(t),o=f.useRef(null),i=f.useRef(null),s=Z1(f.useCallback(()=>{var c,d;const u=(c=o.current)==null?void 0:c.value,l=(d=i.current)==null?void 0:d.value;if(!l){r(t);return}r(u===l)},[t]),{wait:500,immediate:!1});return e(n,s,o,i)}function E7({currentStep:t,stepCount:e,children:n,onCancel:r}){return a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,escapeDeactivates:!1},children:a.jsxs(y,{style:{height:"100%"},direction:"Column",grow:"Yes",gap:"400",children:[a.jsx(y,{grow:"Yes",direction:"Column",alignItems:"Center",justifyContent:"Center",children:n}),a.jsxs(y,{style:{padding:le.space.S200},shrink:"No",justifyContent:"Center",alignItems:"Center",gap:"200",children:[a.jsx(We,{as:"div",radii:"Pill",outlined:!0,children:a.jsx(x,{as:"span",size:"T300",children:`Step ${t}/${e}`})}),a.jsx(Br,{tooltip:a.jsx(Ao,{variant:"Critical",children:a.jsx(x,{children:"Exit"})}),position:"Top",children:o=>a.jsx(Me,{ref:o,variant:"Critical",size:"300",onClick:r,radii:"Pill",outlined:!0,children:a.jsx(Q,{size:"50",src:$.Cross})})})]})]})})})}const P3e=[Jt.RegistrationToken,Jt.Terms,Jt.Recaptcha,Jt.Email,Jt.Dummy],L3e=(t,e)=>{const n=[];return e.token&&n.push(Jt.RegistrationToken),e.email&&n.push(Jt.Email),e.terms&&n.push(Jt.Terms),xC(t,Jt.Recaptcha)&&n.push(Jt.Recaptcha),n};function N3e({formData:t,flow:e,authData:n,registerEmailState:r,registerEmail:o,onRegister:i}){const s=m7(n),{getStageToComplete:u}=IH(n,e),l=u(),c=f.useCallback(F=>{const{password:h,username:m}=t;i({auth:F,password:h,username:m,initial_device_display_name:"Cinny Web"})},[i,t]),d=f.useCallback(()=>{window.location.reload()},[]);return l?a.jsxs(E7,{currentStep:s.length+1,stepCount:e.stages.length,onCancel:d,children:[l.type===Jt.RegistrationToken&&a.jsx(T3e,{token:t.token,stageData:l,submitAuthDict:c,onCancel:d}),l.type===Jt.Terms&&a.jsx(O3e,{stageData:l,submitAuthDict:c,onCancel:d}),l.type===Jt.Recaptcha&&a.jsx(A3e,{stageData:l,submitAuthDict:c,onCancel:d}),l.type===Jt.Email&&a.jsx(OH,{email:t.email,clientSecret:t.clientSecret,stageData:l,requestEmailToken:o,emailTokenState:r,submitAuthDict:c,onCancel:d}),l.type===Jt.Dummy&&a.jsx(r3e,{stageData:l,submitAuthDict:c,onCancel:d})]}):null}function z3e({authData:t,uiaFlows:e,defaultUsername:n,defaultEmail:r,defaultRegisterToken:o}){const i=kF()["m.homeserver"].base_url,s=f.useMemo(()=>_h({baseUrl:i}),[i]),u=TH(t),l=Yfe(u),[c,d]=f.useState(),[F,h]=f.useState(),[m,D]=M3e(s),[g,p]=et(f.useCallback(async k=>e3e(s,k),[s])),[_,v]=g.status===he.Success?g.data:[],E=g.status===he.Error?g.error:void 0;t3e(v);const b=k=>{k.preventDefault();const{usernameInput:C,passwordInput:S,confirmPasswordInput:w,emailInput:A,tokenInput:O,termsInput:j}=k.target,R=O==null?void 0:O.value.trim(),M=C.value.trim(),z=S.value,T=w.value;if(z!==T)return;const P=A==null?void 0:A.value.trim(),L=(j==null?void 0:j.value)==="on";if(!M){C.focus();return}const U={username:M,password:z,token:R,email:P,terms:L,clientSecret:s.generateClientSecret()},te=L3e(e,U),ae=Gfe(e,te);h(ae),d(U),p({username:M,password:z,auth:{session:t.session},initial_device_display_name:"Cinny Web"})};return a.jsxs(a.Fragment,{children:[a.jsxs(y,{as:"form",onSubmit:b,direction:"Inherit",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{as:"label",size:"L400",priority:"300",children:"Username"}),a.jsx(En,{variant:"Background",defaultValue:n,name:"usernameInput",size:"500",outlined:!0,required:!0}),(E==null?void 0:E.errcode)===ku.UserTaken&&a.jsx(Ho,{message:"This username is already taken."}),(E==null?void 0:E.errcode)===ku.UserInvalid&&a.jsx(Ho,{message:"This username contains invalid characters."}),(E==null?void 0:E.errcode)===ku.UserExclusive&&a.jsx(Ho,{message:"This username is reserved."})]}),a.jsx(C7,{initialValue:!0,children:(k,C,S,w)=>a.jsxs(a.Fragment,{children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{as:"label",size:"L400",priority:"300",children:"Password"}),a.jsx(Ka,{ref:S,onChange:C,name:"passwordInput",variant:"Background",size:"500",outlined:!0,required:!0}),(E==null?void 0:E.errcode)===ku.PasswordWeak&&a.jsx(Ho,{message:E.data.error??"Weak Password. Password rejected by server please choosing more strong Password."}),(E==null?void 0:E.errcode)===ku.PasswordShort&&a.jsx(Ho,{message:E.data.error??"Short Password. Password rejected by server please choosing more long Password."})]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{as:"label",size:"L400",priority:"300",children:"Confirm Password"}),a.jsx(Ka,{ref:w,onChange:C,name:"confirmPasswordInput",variant:"Background",size:"500",style:{color:k?void 0:ct.Critical.Main},outlined:!0,required:!0})]})]})}),xC(e,Jt.RegistrationToken)&&a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{as:"label",size:"L400",priority:"300",children:wC(e,Jt.RegistrationToken)?"Registration Token":"Registration Token (Optional)"}),a.jsx(En,{variant:"Background",defaultValue:o,name:"tokenInput",size:"500",required:wC(e,Jt.RegistrationToken),outlined:!0})]}),xC(e,Jt.Email)&&a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{as:"label",size:"L400",priority:"300",children:wC(e,Jt.Email)?"Email":"Email (Optional)"}),a.jsx(En,{variant:"Background",defaultValue:r,name:"emailInput",type:"email",size:"500",required:wC(e,Jt.Email),outlined:!0})]}),xC(e,Jt.Terms)&&l&&a.jsxs(y,{alignItems:"Center",gap:"200",children:[a.jsx(U6,{name:"termsInput",size:"300",variant:"Primary",required:!0}),a.jsxs(x,{size:"T300",children:["I accept server"," ",a.jsx("a",{href:l,target:"_blank",rel:"noreferrer",children:"Terms and Conditions"}),"."]})]}),(E==null?void 0:E.errcode)===ku.RateLimited&&a.jsx(Ho,{message:"Failed to register. Your register request has been rate-limited by server, Please try after some time."}),(E==null?void 0:E.errcode)===ku.Forbidden&&a.jsx(Ho,{message:"Failed to register. The homeserver does not permit registration."}),(E==null?void 0:E.errcode)===ku.InvalidRequest&&a.jsx(Ho,{message:"Failed to register. Invalid request."}),(E==null?void 0:E.errcode)===ku.Unknown&&a.jsx(Ho,{message:E.data.error??"Failed to register. Unknown Reason."}),a.jsx("span",{"data-spacing-node":!0}),a.jsx(Ee,{variant:"Primary",size:"500",type:"submit",children:a.jsx(x,{as:"span",size:"B500",children:"Register"})})]}),g.status===he.Success&&c&&F&&_&&a.jsx(N3e,{formData:c,flow:F,authData:_,registerEmail:D,registerEmailState:m,onRegister:p}),g.status===he.Loading&&a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(ot,{variant:"Secondary",size:"600"})})})]})}function U3e({flows:t,supportedStages:e,children:n}){const r=AH(t,e);return n(r)}const V3e=t=>f.useMemo(()=>({username:t.get("username")??void 0,email:t.get("email")??void 0,token:t.get("token")??void 0}),[t]);function q3e(){const t=lm(),{loginFlows:e,registerFlows:n}=Jq(),[r]=Yc(),o=V3e(r),{sso:i}=aH(e.flows),s=F7(Kl(t));return a.jsxs(y,{direction:"Column",gap:"500",children:[a.jsx(x,{size:"H2",priority:"400",children:"Register"}),n.status===vh.RegistrationDisabled&&!i&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T300",children:"Registration has been disabled on this homeserver."}),n.status===vh.RateLimited&&!i&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T300",children:"You have been rate-limited! Please try after some time."}),n.status===vh.InvalidRequest&&!i&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T300",children:"Invalid Request! Failed to get any registration options."}),n.status===vh.FlowRequired&&a.jsxs(a.Fragment,{children:[a.jsx(U3e,{flows:n.data.flows??[],supportedStages:P3e,children:u=>u.length===0?a.jsx(x,{style:{color:ct.Critical.Main},size:"T300",children:"This application does not support registration on this homeserver."}):a.jsx(z3e,{authData:n.data,uiaFlows:u,defaultUsername:o.username,defaultEmail:o.email,defaultRegisterToken:o.token})}),a.jsx("span",{"data-spacing-node":!0}),i&&a.jsx(SH,{})]}),i&&a.jsxs(a.Fragment,{children:[a.jsx(kH,{providers:i.identity_providers,redirectUrl:s,saveScreenSpace:n.status===vh.FlowRequired}),a.jsx("span",{"data-spacing-node":!0})]}),a.jsxs(x,{align:"Center",children:["Already have an account? ",a.jsx(ep,{to:Kl(t),children:"Login"})]})]})}const H3e=t=>{const e=f.useRef(1),n=f.useCallback(async(i,s,u)=>{const l=e.current;e.current+=1;const c=await t.requestPasswordEmailToken(i,s,l,u);return{email:i,clientSecret:s,result:c}},[t]),[r,o]=et(n);return[r,o]},$3e=async(t,e,n)=>{const[r,o]=await ei(t.setPassword(e,n,!1));if(r){if(r.httpStatus===401)return[r.data,void 0];throw r}return[void 0,o]};function W3e({email:t}){const e=lm(),n=Xr(),r=()=>{const o=Kl(e);if(t){n(dm(o,{email:t}));return}n(o)};return a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{children:a.jsx(cr,{children:a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsx(x,{children:"Password has been reset successfully. Please login with your new password."}),a.jsx(Ee,{variant:"Primary",onClick:r,children:a.jsx(x,{size:"B400",as:"span",children:"Login"})})]})})})})})}function K3e({defaultEmail:t}){var E,b;const e=lm(),n=kF()["m.homeserver"].base_url,r=f.useMemo(()=>_h({baseUrl:n}),[n]),[o,i]=f.useState(),[s,u]=H3e(r),[l,c]=et(f.useCallback(async(k,C)=>$3e(r,k,C),[r])),[d,F]=l.status===he.Success?l.data:[],h=l.status===he.Error?l.error:void 0,m=d&&jH(d),D=d&&BH(d);let g=!0;F&&(g=!1),d&&m===void 0&&(g=!1),h&&(g=!1),l.status===he.Loading&&(g=!1),f.useEffect(()=>{o&&d&&!m&&c({type:Jt.Password,identifier:{type:"m.id.thirdparty",medium:"email",address:o.email},password:o.password},o.password)},[d,m,o,c]);const p=k=>{k.preventDefault();const{emailInput:C,passwordInput:S,confirmPasswordInput:w}=k.target,A=C.value.trim(),O=S.value,j=w.value;if(!A){C.focus();return}if(O!==j)return;const R=r.generateClientSecret();u(A,R),i({email:A,password:O,clientSecret:R})},_=()=>{window.location.reload()},v=f.useCallback(k=>{if(!o)return;const{password:C}=o;c(k,C)},[o,c]);return a.jsxs(y,{as:"form",onSubmit:p,direction:"Inherit",gap:"400",children:[a.jsxs(x,{size:"T300",priority:"400",children:["Homeserver ",a.jsx("strong",{children:e})," will send you an email to let you reset your password."]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{as:"label",size:"L400",priority:"300",children:"Email"}),a.jsx(En,{defaultValue:t,type:"email",name:"emailInput",variant:"Background",size:"500",required:!0,outlined:!0}),s.status===he.Error&&a.jsx(Ho,{message:`${s.error.errcode}: ${(E=s.error.data)==null?void 0:E.error}`})]}),a.jsx(C7,{initialValue:!0,children:(k,C,S,w)=>a.jsxs(a.Fragment,{children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{as:"label",size:"L400",priority:"300",children:"New Password"}),a.jsx(Ka,{ref:S,onChange:C,name:"passwordInput",variant:"Background",size:"500",outlined:!0,required:!0})]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{as:"label",size:"L400",priority:"300",children:"Confirm Password"}),a.jsx(Ka,{ref:w,onChange:C,name:"confirmPasswordInput",variant:"Background",size:"500",style:{color:k?void 0:ct.Critical.Main},outlined:!0,required:!0})]})]})}),h&&a.jsx(Ho,{message:`${h.errcode}: ${((b=h.data)==null?void 0:b.error)??"Failed to reset password."}`}),a.jsx("span",{"data-spacing-node":!0}),a.jsx(Ee,{type:"submit",variant:"Primary",size:"500",children:a.jsx(x,{as:"span",size:"B500",children:"Reset Password"})}),F&&a.jsx(W3e,{email:o==null?void 0:o.email}),s.status===he.Success&&o&&g&&a.jsx(E7,{currentStep:1,stepCount:1,onCancel:_,children:a.jsx(OH,{stageData:{type:Jt.Email,errorCode:m,error:D,session:d==null?void 0:d.session},submitAuthDict:v,email:o.email,clientSecret:o.clientSecret,requestEmailToken:u,emailTokenState:s,onCancel:_})}),a.jsx(Rn,{open:s.status===he.Loading||l.status===he.Loading,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(ot,{variant:"Secondary",size:"600"})})})]})}const G3e=t=>f.useMemo(()=>({email:t.get("email")??void 0}),[t]);function Y3e(){const t=lm(),[e]=Yc(),n=G3e(e);return a.jsxs(y,{direction:"Column",gap:"500",children:[a.jsx(x,{size:"H2",priority:"400",children:"Reset Password"}),a.jsx(K3e,{defaultEmail:n.email}),a.jsx("span",{"data-spacing-node":!0}),a.jsxs(x,{align:"Center",children:["Remember your password? ",a.jsx(ep,{to:Kl(t),children:"Login"})]})]})}const y7=()=>localStorage.getItem(Lt.secretKey.ACCESS_TOKEN)!==null,$H=()=>({accessToken:localStorage.getItem(Lt.secretKey.ACCESS_TOKEN),deviceId:localStorage.getItem(Lt.secretKey.DEVICE_ID),userId:localStorage.getItem(Lt.secretKey.USER_ID),baseUrl:localStorage.getItem(Lt.secretKey.BASE_URL)}),Of=new Map;function Z3e(t,e){if(!(e instanceof Uint8Array))throw new Error("Unable to store, privateKey is invalid.");Of.set(t,e)}function J3e(t){return Of.get(t)instanceof Uint8Array}function X3e(t){return Of.get(t)}function Q3e(){Of.clear()}async function e_e({keys:t}){const e=Object.keys(t).find(J3e);if(!e)return;const n=X3e(e);return[e,n]}function t_e(t,e,n){Of.set(t,n)}const n_e={getSecretStorageKey:e_e,cacheSecretStorageKey:t_e},Mf=(t,e)=>{const n=localStorage.getItem(t);if(n===null)return e;if(n!=="undefined")try{return JSON.parse(n)}catch{return e}},Pf=(t,e)=>{localStorage.setItem(t,JSON.stringify(e))},Lf=(t,e,n)=>{const r=e(t),o=Bn(r);return o.onMount=i=>{const s=u=>{u.key===t&&i(e(t))};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}},Bn(i=>i(o),(i,s,u)=>{s(o,u),n(t,u)})},r_e="navToActivePath",WH=t=>`${r_e}${t}`,o_e=t=>{const e=WH(t),n=Lf(e,r=>{const o=Mf(r,{});return new Map(Object.entries(o))},(r,o)=>{const i=Object.fromEntries(o);Pf(r,i)});return Bn(r=>r(n),(r,o,i)=>{if(i.type==="DELETE"){o(n,po(r(n),s=>{s.delete(i.navId)}));return}i.type==="PUT"&&o(n,po(r(n),s=>{s.set(i.navId,i.path)}))})},i_e=t=>{localStorage.removeItem(WH(t))},a_e=async t=>{const e=new qq({indexedDB:global.indexedDB,localStorage:global.localStorage,dbName:"web-sync-store"}),n=new Vn(global.indexedDB,"crypto-store"),r=_h({baseUrl:t.baseUrl,accessToken:t.accessToken,userId:t.userId,store:e,cryptoStore:n,deviceId:t.deviceId,timelineSupport:!0,cryptoCallbacks:n_e,verificationMethods:["m.sas.v1"]});return await e.startup(),await r.initRustCrypto(),r.setMaxListeners(50),r},s_e=async t=>{await t.startClient({lazyLoadMembers:!0})},KH=async t=>{t.stopClient(),i_e(t.getSafeUserId()),await t.store.deleteAllData(),window.location.reload()},GH=async t=>{t.stopClient();try{await t.logout()}catch{}await t.clearStores(),window.localStorage.clear(),window.location.reload()},u_e=async()=>{(await window.indexedDB.databases()).forEach(t=>{const{name:e}=t;e&&window.indexedDB.deleteDatabase(e)}),window.localStorage.clear(),window.location.reload()},YH=f.createContext(null),l_e=YH.Provider;function ge(){const t=f.useContext(YH);if(!t)throw new Error("MatrixClient not initialized!");return t}function c_e({children:t}){const e=ge(),[n,r]=et(f.useCallback(async()=>{const s=await Promise.allSettled([e.getCapabilities(),e.getMediaConfig()]),u=H6(s[0]),l=H6(s[1]);return[u,l]},[e]));f.useEffect(()=>{r()},[r]);const[o,i]=n.status===he.Success?n.data:[void 0,void 0];return t(o,i)}const ZH=f.createContext(null),d_e=ZH.Provider;function x7(){const t=f.useContext(ZH);if(!t)throw new Error("Capabilities are not provided!");return t}const h_e=f.createContext(null),F_e=h_e.Provider;function m_e({baseUrl:t,children:e}){return a.jsx(PN,{baseUrl:t,fallback:()=>a.jsx(K1,{children:a.jsxs(y,{direction:"Column",grow:"Yes",alignItems:"Center",justifyContent:"Center",gap:"400",children:[a.jsx(ot,{variant:"Secondary",size:"600"}),a.jsx(x,{children:"Connecting to server"})]})}),error:(n,r,o)=>a.jsx(K1,{children:a.jsx(y,{direction:"Column",grow:"Yes",alignItems:"Center",justifyContent:"Center",gap:"400",children:a.jsx(cr,{children:a.jsxs(y,{direction:"Column",gap:"400",style:{padding:le.space.S400},children:[a.jsx(x,{children:"Failed to connect to homeserver. Either homeserver is down or your internet."}),a.jsx(Ee,{variant:"Critical",onClick:r,children:a.jsx(x,{as:"span",size:"B400",children:"Retry"})}),a.jsx(Ee,{variant:"Critical",onClick:o,fill:"Soft",children:a.jsx(x,{as:"span",size:"B400",children:"Continue"})})]})})})}),children:n=>a.jsx(NN,{value:n,children:e})})}function D_e(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!t){var i;if(e===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;i=new Error(e.replace(/%s/g,function(){return String(r[s++])})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}var g_e=D_e;function Fm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Nf=g_e,p_e="ID_",f_e=function(){function t(){Fm(this,"_callbacks",void 0),Fm(this,"_isDispatching",void 0),Fm(this,"_isHandled",void 0),Fm(this,"_isPending",void 0),Fm(this,"_lastID",void 0),Fm(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var e=t.prototype;return e.register=function(n){var r=p_e+this._lastID++;return this._callbacks[r]=n,r},e.unregister=function(n){this._callbacks[n]||Nf(!1),delete this._callbacks[n]},e.waitFor=function(n){this._isDispatching||Nf(!1);for(var r=0;r<n.length;r++){var o=n[r];if(this._isPending[o]){this._isHandled[o]||Nf(!1);continue}this._callbacks[o]||Nf(!1),this._invokeCallback(o)}},e.dispatch=function(n){this._isDispatching&&Nf(!1),this._startDispatching(n);try{for(var r in this._callbacks)this._isPending[r]||this._invokeCallback(r)}finally{this._stopDispatching()}},e.isDispatching=function(){return this._isDispatching},e._invokeCallback=function(n){this._isPending[n]=!0,this._callbacks[n](this._pendingPayload),this._isHandled[n]=!0},e._startDispatching=function(n){for(var r in this._callbacks)this._isPending[r]=!1,this._isHandled[r]=!1;this._pendingPayload=n,this._isDispatching=!0},e._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},t}(),__e=f_e,v_e=__e;const Gl=new v_e;class b_e extends Cz{constructor(){super(),this.rawModelStack=[]}get isRawModalVisible(){return this.rawModelStack.length>0}setIsRawModalVisible(e){e?this.rawModelStack.push(!0):this.rawModelStack.pop()}navigate(e){var n,r;(r=(n={[Lt.actions.navigation.OPEN_SPACE_ADDEXISTING]:()=>{this.emit(Lt.events.navigation.SPACE_ADDEXISTING_OPENED,e.roomId,e.spaces)},[Lt.actions.navigation.OPEN_CREATE_ROOM]:()=>{this.emit(Lt.events.navigation.CREATE_ROOM_OPENED,e.isSpace,e.parentId)},[Lt.actions.navigation.OPEN_JOIN_ALIAS]:()=>{this.emit(Lt.events.navigation.JOIN_ALIAS_OPENED,e.term)},[Lt.actions.navigation.OPEN_INVITE_USER]:()=>{this.emit(Lt.events.navigation.INVITE_USER_OPENED,e.roomId,e.searchTerm)},[Lt.actions.navigation.OPEN_PROFILE_VIEWER]:()=>{this.emit(Lt.events.navigation.PROFILE_VIEWER_OPENED,e.userId,e.roomId)},[Lt.actions.navigation.OPEN_SEARCH]:()=>{this.emit(Lt.events.navigation.SEARCH_OPENED,e.term)},[Lt.actions.navigation.OPEN_REUSABLE_CONTEXT_MENU]:()=>{this.emit(Lt.events.navigation.REUSABLE_CONTEXT_MENU_OPENED,e.placement,e.cords,e.render,e.afterClose)},[Lt.actions.navigation.OPEN_REUSABLE_DIALOG]:()=>{this.emit(Lt.events.navigation.REUSABLE_DIALOG_OPENED,e.title,e.render,e.afterClose)}})[e.type])==null||r.call(n)}}const uo=new b_e;Gl.register(uo.navigate.bind(uo));const JH="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cpath%20d='M21,10V8h-5V3h-2v5h-4V3H8v5H3v2h5v4H3v2h5v5h2v-5h4v5h2v-5h5v-2h-5v-4H21z%20M14,14h-4v-4h4V14z'/%3e%3c/svg%3e",XH="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cg%3e%3cpolygon%20points='16,12%2014,12%2014,14%2010,14%2010,10%2012,10%2012,8%2010,8%2010,3%208,3%208,8%203,8%203,10%208,10%208,14%203,14%203,16%208,16%208,21%2010,21%2010,16%2014,16%2014,21%2016,21%2016,16%2021,16%2021,14%2016,14%20'/%3e%3cpath%20d='M18.5,1C16,1,14,3,14,5.5s2,4.5,4.5,4.5S23,8,23,5.5S21,1,18.5,1z%20M17.5,7C17.5,7,17.5,7,17.5,7c-0.2-0.1-0.3-0.1-0.3-0.2%20c-0.6-0.5-1.7-1.1-1.8-2c-0.1-0.7,0.8-1.6,1.3-2c0.8-0.6,2.3-1.1,3.2-0.5c0.6,0.4-1.2,1-1.4,1.3c-0.3,0.4-0.3,0.9-0.3,1.4%20c0,0.5,0.1,1.2-0.2,1.6C17.9,6.9,17.7,7,17.5,7z%20M20.8,7.9c-0.4,0.3-0.9,0.2-1.3,0.5c-0.1,0.1-0.2,0.2-0.3,0.2%20c-0.2,0.1-0.5-0.1-0.5-0.3c-0.3-0.8,0.3-1.2,0.9-1.3c0.3,0,0.7,0,1,0c0.2,0,0.4,0.1,0.4,0.3C21.1,7.5,20.9,7.7,20.8,7.9z'/%3e%3c/g%3e%3c/svg%3e",w7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cg%3e%3cpolygon%20points='16,12%2014,12%2014,14%2010,14%2010,10%2012,10%2012,8%2010,8%2010,3%208,3%208,8%203,8%203,10%208,10%208,14%203,14%203,16%208,16%208,21%2010,21%2010,16%2014,16%2014,21%2016,21%2016,16%2021,16%2021,14%2016,14%20'/%3e%3cpath%20d='M21,4V3c0-1.7-1.3-3-3-3s-3,1.3-3,3v1c-0.6,0-1,0.4-1,1v4c0,0.6,0.4,1,1,1h6c0.6,0,1-0.4,1-1V5C22,4.4,21.6,4,21,4z%20M19.5,4h-3V3c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5V4z'/%3e%3c/g%3e%3c/svg%3e",QH="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cpath%20d='M12,4.1c0.4,0.3,1.3,1.8,1.7,4.6L14,10l1.4,0.2c2.8,0.4,4.2,1.3,4.6,1.7c-0.3,0.4-1.8,1.3-4.6,1.7L14,14l-0.2,1.4%20c-0.4,2.8-1.3,4.2-1.7,4.6c-0.4-0.3-1.3-1.8-1.7-4.6L10,14l-1.4-0.2c-2.8-0.4-4.2-1.3-4.6-1.7c0.3-0.4,1.8-1.3,4.6-1.7L10,10%20l0.2-1.4C10.7,5.8,11.6,4.4,12,4.1%20M12,2c-1.7,0-3.1,2.6-3.7,6.3C4.6,8.9,2,10.3,2,12s2.6,3.1,6.3,3.7c0.6,3.7,2,6.3,3.7,6.3%20s3.1-2.6,3.7-6.3c3.7-0.6,6.3-2,6.3-3.7s-2.6-3.1-6.3-3.7C15.1,4.6,13.7,2,12,2L12,2z'/%3e%3c/svg%3e",e$="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M15.4,13.7L14,14l-0.2,1.4c-0.4,2.8-1.3,4.2-1.7,4.6c-0.4-0.3-1.3-1.8-1.7-4.6L10,14l-1.4-0.2c-2.8-0.4-4.2-1.3-4.6-1.7%20c0.3-0.4,1.8-1.3,4.6-1.7L10,10l0.2-1.4c0.4-2.8,1.3-4.2,1.7-4.6V2c-1.7,0-3.1,2.6-3.7,6.3C4.6,8.9,2,10.3,2,12s2.6,3.1,6.3,3.7%20c0.6,3.7,2,6.3,3.7,6.3s3.1-2.6,3.7-6.3c3.7-0.6,6.3-2,6.3-3.7h-2.1C19.6,12.4,18.2,13.3,15.4,13.7z'/%3e%3cpath%20d='M18.5,1C16,1,14,3,14,5.5s2,4.5,4.5,4.5S23,8,23,5.5S21,1,18.5,1z%20M17.5,7C17.5,7,17.5,7,17.5,7c-0.2-0.1-0.3-0.1-0.3-0.2%20c-0.6-0.5-1.7-1.1-1.8-2c-0.1-0.7,0.8-1.6,1.3-2c0.8-0.6,2.3-1.1,3.2-0.5c0.6,0.4-1.2,1-1.4,1.3c-0.3,0.4-0.3,0.9-0.3,1.4%20c0,0.5,0.1,1.2-0.2,1.6C17.9,6.9,17.7,7,17.5,7z%20M20.8,7.9c-0.4,0.3-0.9,0.2-1.3,0.5c-0.1,0.1-0.2,0.2-0.3,0.2%20c-0.2,0.1-0.5-0.1-0.5-0.3c-0.3-0.8,0.3-1.2,0.9-1.3c0.3,0,0.7,0,1,0c0.2,0,0.4,0.1,0.4,0.3C21.1,7.5,20.9,7.7,20.8,7.9z'/%3e%3c/g%3e%3c/svg%3e",k7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M21,4V3c0-1.7-1.3-3-3-3s-3,1.3-3,3v1c-0.6,0-1,0.4-1,1v4c0,0.6,0.4,1,1,1h6c0.6,0,1-0.4,1-1V5C22,4.4,21.5,4,21,4z%20M19.5,4h-3V3c0-0.8,0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5V4z'/%3e%3cpath%20d='M15.4,13.7L14,14l-0.2,1.4c-0.4,2.8-1.3,4.2-1.7,4.6c-0.4-0.3-1.3-1.8-1.7-4.6L10,14l-1.4-0.2C5.8,13.3,4.4,12.4,4,12%20c0.3-0.4,1.8-1.3,4.6-1.7L10,10l0.2-1.4c0.4-2.8,1.3-4.2,1.7-4.6V2c-1.7,0-3.1,2.6-3.7,6.3C4.6,8.9,2,10.3,2,12s2.6,3.1,6.3,3.7%20c0.6,3.7,2,6.3,3.7,6.3s3.1-2.6,3.7-6.3c3.7-0.6,6.3-2,6.3-3.7h-2.1C19.6,12.4,18.2,13.3,15.4,13.7z'/%3e%3c/g%3e%3c/svg%3e";function C_e(t,e){const n=t.getUser(e);if(n===null)return e;let r=n.displayName;return typeof r>"u"&&(r=e),r}function E_e(t){return t.name||t.userId}async function y_e(t,e){try{return(await t.getRoomIdForAlias(e)).room_id,!1}catch(n){return n.errcode==="M_NOT_FOUND"}}function x_e(t){return t>9e3?"Goku":t>100?"Founder":t===100?"Admin":t>=50?"Mod":null}function t$(t,e){var n,r;return((r=(n={restricted:()=>e?QH:JH,knock:()=>e?k7:w7,invite:()=>e?k7:w7,public:()=>e?e$:XH})[t])==null?void 0:r.call(n))||null}function zf(t){return t.split(":")[1]}async function S7(t,e){var n;try{const r=await((n=t.getCrypto())==null?void 0:n.getUserDeviceInfo([e,t.getUserId()],!0));return Array.from(r.values()).every(o=>o.size>0)}catch(r){return console.error("Error determining if it's possible to encrypt to all users: ",r),!1}}function NC(t,e,n){const r=t.getAccountData("m.direct");let o={};if(typeof r<"u"&&(o=r.getContent()),Object.keys(o).forEach(i=>{const s=o[i];if(i!==n){const u=s.indexOf(e);u>-1&&s.splice(u,1)}}),n){const i=o[n]||[];i.indexOf(e)===-1&&i.push(e),o[n]=i}return t.setAccountData("m.direct",o)}function n$(t,e){var o;let n,r;return t.getJoinedMembers().forEach(i=>{i.userId!==e&&(typeof n>"u"||i.events.member&&i.events.member.getTs()<n)&&(r=i,n=i.events.member.getTs())}),r?r.userId:((o=t.getLiveTimeline().getState(it.FORWARDS))==null||o.getMembers().forEach(i=>{i.userId!==e&&(typeof n>"u"||i.events.member&&i.events.member.getTs()<n)&&(r=i,n=i.events.member.getTs())}),typeof r>"u"?e:r.userId)}function w_e(t,e){const n=t.getRoom(e);return NC(t,e,n$(n,t.getUserId()))}function k_e(t,e){return NC(t,e,void 0)}async function r$(t,e,n=!1,r=void 0){const o=e.split(":"),i=r||[o[1]];try{const s=await t.joinRoom(e,{viaServers:i});if(n){const u=n$(t.getRoom(s.roomId),t.getUserId());await NC(t,s.roomId,u)}return s.roomId}catch(s){throw new Error(s)}}async function o$(t,e,n=!1){var r;try{const o=await t.createRoom(e);return n&&typeof((r=e.invite)==null?void 0:r[0])=="string"&&await NC(t,o.room_id,e.invite[0]),o}catch(o){throw["M_UNKNOWN","M_BAD_JSON","M_ROOM_IN_USE","M_INVALID_ROOM_STATE","M_UNSUPPORTED_ROOM_VERSION"].includes(o.errcode)?new Error(o):new Error("Something went wrong!")}}async function j7(t,e,n=!0){const r={is_direct:!0,invite:Array.isArray(e)?e:[e],visibility:"private",preset:"trusted_private_chat",initial_state:[]};return n&&r.initial_state.push({type:"m.room.encryption",state_key:"",content:{algorithm:"m.megolm.v1.aes-sha2"}}),await o$(t,r,!0)}async function S_e(t,e){var m;const{name:n,topic:r,joinRule:o}=e,i=e.alias??void 0,s=e.parentId??void 0,u=e.isSpace??!1,l=e.isEncrypted??!1,c=e.powerLevel??void 0,d=e.blockFederation??!1,F={creation_content:void 0,name:n,topic:r,visibility:o==="public"?"public":"private",room_alias_name:i,initial_state:[],power_level_content_override:void 0};if(u&&(F.creation_content={type:"m.space"}),d&&(F.creation_content={"m.federate":!1}),l&&F.initial_state.push({type:"m.room.encryption",state_key:"",content:{algorithm:"m.megolm.v1.aes-sha2"}}),c&&(F.power_level_content_override={users:{[t.getUserId()]:c}}),s&&F.initial_state.push({type:"m.space.parent",state_key:s,content:{canonical:!0,via:[zf(t.getUserId())]}}),s&&o==="restricted"){const D=await t.getCapabilities();if(((m=D["m.room_versions"].available)==null?void 0:m["9"])!=="stable")throw new Error("ERROR: The server doesn't support restricted rooms");Number(D["m.room_versions"].default)<9&&(F.room_version="9"),F.initial_state.push({type:"m.room.join_rules",content:{join_rule:"restricted",allow:[{type:"m.room_membership",room_id:s}]}})}const h=await o$(t,F);return s&&await t.sendStateEvent(s,"m.space.child",{auto_join:!1,suggested:!1,via:[zf(t.getUserId())]},h.room_id),h}async function i$(t,e){let n=t.getIgnoredUsers().concat(e);n=[...new Set(n)],await t.setIgnoredUsers(n)}async function a$(t,e){const n=t.getIgnoredUsers();await t.setIgnoredUsers(n.filter(r=>!e.includes(r)))}async function s$(t,e,n,r){return await t.setPowerLevel(e,n,r)}async function j_e(t,e,n){var o;const r=(o=t.getRoom(e).getLiveTimeline().getState(it.FORWARDS).getStateEvents("m.room.member",t.getUserId()))==null?void 0:o.getContent();r&&await t.sendStateEvent(e,"m.room.member",{...r,displayname:n},t.getUserId())}async function B_e(t,e,n){var o;const r=(o=t.getRoom(e).getLiveTimeline().getState(it.FORWARDS).getStateEvents("m.room.member",t.getUserId()))==null?void 0:o.getContent();r&&await t.sendStateEvent(e,"m.room.member",{...r,avatar_url:n},t.getUserId())}function Wt({className:t,style:e,variant:n,weight:r,primary:o,span:i,children:s}){const u=[];t&&u.push(t),u.push(`text text-${n} text-${r}`),o&&u.push("font-primary");const l=u.join(" ");return i?a.jsx("span",{className:l,style:e,children:s}):n==="h1"?a.jsx("h1",{className:l,style:e,children:s}):n==="h2"?a.jsx("h2",{className:l,style:e,children:s}):n==="s1"?a.jsx("h4",{className:l,style:e,children:s}):a.jsx("p",{className:l,style:e,children:s})}Wt.defaultProps={className:null,style:null,variant:"b1",weight:"normal",primary:!1,span:!1},Wt.propTypes={className:fe.string,style:fe.shape({}),variant:fe.oneOf(["h1","h2","s1","b1","b2","b3"]),weight:fe.oneOf(["light","normal","medium","bold"]),primary:fe.bool,span:fe.bool,children:fe.node.isRequired};function Yl({color:t,size:e,src:n,isImage:r}){const o={};return t!==null&&(o.backgroundColor=t),r?(o.backgroundColor="transparent",o.backgroundImage=`url("${n}")`):(o.WebkitMaskImage=`url("${n}")`,o.maskImage=`url("${n}")`),a.jsx("span",{className:`ic-raw ic-raw-${e}`,style:o})}Yl.defaultProps={color:null,size:"normal",isImage:!1},Yl.propTypes={color:fe.string,size:fe.oneOf(["large","normal","small","extra-small"]),src:fe.string.isRequired,isImage:fe.bool};function Uf(t,e){const n=t.nativeEvent.composedPath();for(let r=0;r<n.length;r+=1){if(n[r]===document){console.warn(Uf,"blurOnBubbling: not found selector in bubbling path");break}if(n[r].matches(e))return setTimeout(()=>n[r].blur(),50),!0}return!1}const bo=ft.forwardRef(({id:t,className:e,variant:n,iconSrc:r,type:o,onClick:i,children:s,disabled:u},l)=>{const c=r===null?"":`btn-${n}--icon`;return a.jsxs("button",{ref:l,id:t===""?void 0:t,className:`${e?`${e} `:""}btn-${n} ${c} noselect`,onMouseUp:d=>Uf(d,`.btn-${n}`),onClick:i,type:o,disabled:u,children:[r!==null&&a.jsx(Yl,{size:"small",src:r}),typeof s=="string"&&a.jsx(Wt,{variant:"b1",children:s}),typeof s!="string"&&s]})});bo.defaultProps={id:"",className:null,variant:"surface",iconSrc:null,type:"button",onClick:null,disabled:!1},bo.propTypes={id:fe.string,className:fe.string,variant:fe.oneOf(["surface","primary","positive","caution","danger"]),iconSrc:fe.string,type:fe.oneOf(["button","submit","reset"]),onClick:fe.func,children:fe.node.isRequired,disabled:fe.bool};var Qi="top",Ga="bottom",Ya="right",ea="left",B7="auto",Vf=[Qi,Ga,Ya,ea],mm="start",qf="end",A_e="clippingParents",u$="viewport",Hf="popper",T_e="reference",l$=Vf.reduce(function(t,e){return t.concat([e+"-"+mm,e+"-"+qf])},[]),c$=[].concat(Vf,[B7]).reduce(function(t,e){return t.concat([e,e+"-"+mm,e+"-"+qf])},[]),I_e="beforeRead",R_e="read",O_e="afterRead",M_e="beforeMain",P_e="main",L_e="afterMain",N_e="beforeWrite",z_e="write",U_e="afterWrite",V_e=[I_e,R_e,O_e,M_e,P_e,L_e,N_e,z_e,U_e];function Su(t){return t?(t.nodeName||"").toLowerCase():null}function ya(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function yh(t){var e=ya(t).Element;return t instanceof e||t instanceof Element}function Za(t){var e=ya(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function A7(t){if(typeof ShadowRoot>"u")return!1;var e=ya(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function q_e(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!Za(i)||!Su(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var u=o[s];u===!1?i.removeAttribute(s):i.setAttribute(s,u===!0?"":u)}))})}function H_e(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),u=s.reduce(function(l,c){return l[c]="",l},{});!Za(o)||!Su(o)||(Object.assign(o.style,u),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const d$={name:"applyStyles",enabled:!0,phase:"write",fn:q_e,effect:H_e,requires:["computeStyles"]};function ju(t){return t.split("-")[0]}var xh=Math.max,zC=Math.min,Dm=Math.round;function T7(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function h$(){return!/^((?!chrome|android).)*safari/i.test(T7())}function gm(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&Za(t)&&(o=t.offsetWidth>0&&Dm(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Dm(r.height)/t.offsetHeight||1);var s=yh(t)?ya(t):window,u=s.visualViewport,l=!h$()&&n,c=(r.left+(l&&u?u.offsetLeft:0))/o,d=(r.top+(l&&u?u.offsetTop:0))/i,F=r.width/o,h=r.height/i;return{width:F,height:h,top:d,right:c+F,bottom:d+h,left:c,x:c,y:d}}function I7(t){var e=gm(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function F$(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&A7(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Zl(t){return ya(t).getComputedStyle(t)}function $_e(t){return["table","td","th"].indexOf(Su(t))>=0}function Ed(t){return((yh(t)?t.ownerDocument:t.document)||window.document).documentElement}function UC(t){return Su(t)==="html"?t:t.assignedSlot||t.parentNode||(A7(t)?t.host:null)||Ed(t)}function m$(t){return!Za(t)||Zl(t).position==="fixed"?null:t.offsetParent}function W_e(t){var e=/firefox/i.test(T7()),n=/Trident/i.test(T7());if(n&&Za(t)){var r=Zl(t);if(r.position==="fixed")return null}var o=UC(t);for(A7(o)&&(o=o.host);Za(o)&&["html","body"].indexOf(Su(o))<0;){var i=Zl(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function $f(t){for(var e=ya(t),n=m$(t);n&&$_e(n)&&Zl(n).position==="static";)n=m$(n);return n&&(Su(n)==="html"||Su(n)==="body"&&Zl(n).position==="static")?e:n||W_e(t)||e}function R7(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Wf(t,e,n){return xh(t,zC(e,n))}function K_e(t,e,n){var r=Wf(t,e,n);return r>n?n:r}function D$(){return{top:0,right:0,bottom:0,left:0}}function g$(t){return Object.assign({},D$(),t)}function p$(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var G_e=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,g$(typeof t!="number"?t:p$(t,Vf))};function Y_e(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,u=ju(n.placement),l=R7(u),c=[ea,Ya].indexOf(u)>=0,d=c?"height":"width";if(!(!i||!s)){var F=G_e(o.padding,n),h=I7(i),m=l==="y"?Qi:ea,D=l==="y"?Ga:Ya,g=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],p=s[l]-n.rects.reference[l],_=$f(i),v=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,E=g/2-p/2,b=F[m],k=v-h[d]-F[D],C=v/2-h[d]/2+E,S=Wf(b,C,k),w=l;n.modifiersData[r]=(e={},e[w]=S,e.centerOffset=S-C,e)}}function Z_e(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||F$(e.elements.popper,o)&&(e.elements.arrow=o))}const J_e={name:"arrow",enabled:!0,phase:"main",fn:Y_e,effect:Z_e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pm(t){return t.split("-")[1]}var X_e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q_e(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:Dm(n*o)/o||0,y:Dm(r*o)/o||0}}function f$(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,u=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,F=t.isFixed,h=s.x,m=h===void 0?0:h,D=s.y,g=D===void 0?0:D,p=typeof d=="function"?d({x:m,y:g}):{x:m,y:g};m=p.x,g=p.y;var _=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),E=ea,b=Qi,k=window;if(c){var C=$f(n),S="clientHeight",w="clientWidth";if(C===ya(n)&&(C=Ed(n),Zl(C).position!=="static"&&u==="absolute"&&(S="scrollHeight",w="scrollWidth")),C=C,o===Qi||(o===ea||o===Ya)&&i===qf){b=Ga;var A=F&&C===k&&k.visualViewport?k.visualViewport.height:C[S];g-=A-r.height,g*=l?1:-1}if(o===ea||(o===Qi||o===Ga)&&i===qf){E=Ya;var O=F&&C===k&&k.visualViewport?k.visualViewport.width:C[w];m-=O-r.width,m*=l?1:-1}}var j=Object.assign({position:u},c&&X_e),R=d===!0?Q_e({x:m,y:g},ya(n)):{x:m,y:g};if(m=R.x,g=R.y,l){var M;return Object.assign({},j,(M={},M[b]=v?"0":"",M[E]=_?"0":"",M.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",M))}return Object.assign({},j,(e={},e[b]=v?g+"px":"",e[E]=_?m+"px":"",e.transform="",e))}function e2e(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,u=n.roundOffsets,l=u===void 0?!0:u,c={placement:ju(e.placement),variation:pm(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,f$(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,f$(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const t2e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:e2e,data:{}};var VC={passive:!0};function n2e(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,u=s===void 0?!0:s,l=ya(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",n.update,VC)}),u&&l.addEventListener("resize",n.update,VC),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",n.update,VC)}),u&&l.removeEventListener("resize",n.update,VC)}}const r2e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:n2e,data:{}};var o2e={left:"right",right:"left",bottom:"top",top:"bottom"};function qC(t){return t.replace(/left|right|bottom|top/g,function(e){return o2e[e]})}var i2e={start:"end",end:"start"};function _$(t){return t.replace(/start|end/g,function(e){return i2e[e]})}function O7(t){var e=ya(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function M7(t){return gm(Ed(t)).left+O7(t).scrollLeft}function a2e(t,e){var n=ya(t),r=Ed(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,u=0,l=0;if(o){i=o.width,s=o.height;var c=h$();(c||!c&&e==="fixed")&&(u=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:u+M7(t),y:l}}function s2e(t){var e,n=Ed(t),r=O7(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=xh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=xh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+M7(t),l=-r.scrollTop;return Zl(o||n).direction==="rtl"&&(u+=xh(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:u,y:l}}function P7(t){var e=Zl(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function v$(t){return["html","body","#document"].indexOf(Su(t))>=0?t.ownerDocument.body:Za(t)&&P7(t)?t:v$(UC(t))}function Kf(t,e){var n;e===void 0&&(e=[]);var r=v$(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=ya(r),s=o?[i].concat(i.visualViewport||[],P7(r)?r:[]):r,u=e.concat(s);return o?u:u.concat(Kf(UC(s)))}function L7(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function u2e(t,e){var n=gm(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function b$(t,e,n){return e===u$?L7(a2e(t,n)):yh(e)?u2e(e,n):L7(s2e(Ed(t)))}function l2e(t){var e=Kf(UC(t)),n=["absolute","fixed"].indexOf(Zl(t).position)>=0,r=n&&Za(t)?$f(t):t;return yh(r)?e.filter(function(o){return yh(o)&&F$(o,r)&&Su(o)!=="body"}):[]}function c2e(t,e,n,r){var o=e==="clippingParents"?l2e(t):[].concat(e),i=[].concat(o,[n]),s=i[0],u=i.reduce(function(l,c){var d=b$(t,c,r);return l.top=xh(d.top,l.top),l.right=zC(d.right,l.right),l.bottom=zC(d.bottom,l.bottom),l.left=xh(d.left,l.left),l},b$(t,s,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function C$(t){var e=t.reference,n=t.element,r=t.placement,o=r?ju(r):null,i=r?pm(r):null,s=e.x+e.width/2-n.width/2,u=e.y+e.height/2-n.height/2,l;switch(o){case Qi:l={x:s,y:e.y-n.height};break;case Ga:l={x:s,y:e.y+e.height};break;case Ya:l={x:e.x+e.width,y:u};break;case ea:l={x:e.x-n.width,y:u};break;default:l={x:e.x,y:e.y}}var c=o?R7(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case mm:l[c]=l[c]-(e[d]/2-n[d]/2);break;case qf:l[c]=l[c]+(e[d]/2-n[d]/2);break}}return l}function Gf(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,u=n.boundary,l=u===void 0?A_e:u,c=n.rootBoundary,d=c===void 0?u$:c,F=n.elementContext,h=F===void 0?Hf:F,m=n.altBoundary,D=m===void 0?!1:m,g=n.padding,p=g===void 0?0:g,_=g$(typeof p!="number"?p:p$(p,Vf)),v=h===Hf?T_e:Hf,E=t.rects.popper,b=t.elements[D?v:h],k=c2e(yh(b)?b:b.contextElement||Ed(t.elements.popper),l,d,s),C=gm(t.elements.reference),S=C$({reference:C,element:E,strategy:"absolute",placement:o}),w=L7(Object.assign({},E,S)),A=h===Hf?w:C,O={top:k.top-A.top+_.top,bottom:A.bottom-k.bottom+_.bottom,left:k.left-A.left+_.left,right:A.right-k.right+_.right},j=t.modifiersData.offset;if(h===Hf&&j){var R=j[o];Object.keys(O).forEach(function(M){var z=[Ya,Ga].indexOf(M)>=0?1:-1,T=[Qi,Ga].indexOf(M)>=0?"y":"x";O[M]+=R[T]*z})}return O}function d2e(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,u=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?c$:l,d=pm(r),F=d?u?l$:l$.filter(function(D){return pm(D)===d}):Vf,h=F.filter(function(D){return c.indexOf(D)>=0});h.length===0&&(h=F);var m=h.reduce(function(D,g){return D[g]=Gf(t,{placement:g,boundary:o,rootBoundary:i,padding:s})[ju(g)],D},{});return Object.keys(m).sort(function(D,g){return m[D]-m[g]})}function h2e(t){if(ju(t)===B7)return[];var e=qC(t);return[_$(t),e,_$(e)]}function F2e(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,F=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,D=m===void 0?!0:m,g=n.allowedAutoPlacements,p=e.options.placement,_=ju(p),v=_===p,E=l||(v||!D?[qC(p)]:h2e(p)),b=[p].concat(E).reduce(function(K,H){return K.concat(ju(H)===B7?d2e(e,{placement:H,boundary:d,rootBoundary:F,padding:c,flipVariations:D,allowedAutoPlacements:g}):H)},[]),k=e.rects.reference,C=e.rects.popper,S=new Map,w=!0,A=b[0],O=0;O<b.length;O++){var j=b[O],R=ju(j),M=pm(j)===mm,z=[Qi,Ga].indexOf(R)>=0,T=z?"width":"height",P=Gf(e,{placement:j,boundary:d,rootBoundary:F,altBoundary:h,padding:c}),L=z?M?Ya:ea:M?Ga:Qi;k[T]>C[T]&&(L=qC(L));var U=qC(L),te=[];if(i&&te.push(P[R]<=0),u&&te.push(P[L]<=0,P[U]<=0),te.every(function(K){return K})){A=j,w=!1;break}S.set(j,te)}if(w)for(var ae=D?3:1,Fe=function(K){var H=b.find(function(q){var V=S.get(q);if(V)return V.slice(0,K).every(function(X){return X})});if(H)return A=H,"break"},re=ae;re>0;re--){var ce=Fe(re);if(ce==="break")break}e.placement!==A&&(e.modifiersData[r]._skip=!0,e.placement=A,e.reset=!0)}}const m2e={name:"flip",enabled:!0,phase:"main",fn:F2e,requiresIfExists:["offset"],data:{_skip:!1}};function E$(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function y$(t){return[Qi,Ya,Ga,ea].some(function(e){return t[e]>=0})}function D2e(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Gf(e,{elementContext:"reference"}),u=Gf(e,{altBoundary:!0}),l=E$(s,r),c=E$(u,o,i),d=y$(l),F=y$(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:F},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":F})}const g2e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:D2e};function p2e(t,e,n){var r=ju(t),o=[ea,Qi].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],u=i[1];return s=s||0,u=(u||0)*o,[ea,Ya].indexOf(r)>=0?{x:u,y:s}:{x:s,y:u}}function f2e(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=c$.reduce(function(d,F){return d[F]=p2e(F,e.rects,i),d},{}),u=s[e.placement],l=u.x,c=u.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const _2e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:f2e};function v2e(t){var e=t.state,n=t.name;e.modifiersData[n]=C$({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const b2e={name:"popperOffsets",enabled:!0,phase:"read",fn:v2e,data:{}};function C2e(t){return t==="x"?"y":"x"}function E2e(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,F=n.padding,h=n.tether,m=h===void 0?!0:h,D=n.tetherOffset,g=D===void 0?0:D,p=Gf(e,{boundary:l,rootBoundary:c,padding:F,altBoundary:d}),_=ju(e.placement),v=pm(e.placement),E=!v,b=R7(_),k=C2e(b),C=e.modifiersData.popperOffsets,S=e.rects.reference,w=e.rects.popper,A=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),j=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,R={x:0,y:0};if(C){if(i){var M,z=b==="y"?Qi:ea,T=b==="y"?Ga:Ya,P=b==="y"?"height":"width",L=C[b],U=L+p[z],te=L-p[T],ae=m?-w[P]/2:0,Fe=v===mm?S[P]:w[P],re=v===mm?-w[P]:-S[P],ce=e.elements.arrow,K=m&&ce?I7(ce):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:D$(),q=H[z],V=H[T],X=Wf(0,S[P],K[P]),ee=E?S[P]/2-ae-X-q-O.mainAxis:Fe-X-q-O.mainAxis,J=E?-S[P]/2+ae+X+V+O.mainAxis:re+X+V+O.mainAxis,de=e.elements.arrow&&$f(e.elements.arrow),ue=de?b==="y"?de.clientTop||0:de.clientLeft||0:0,De=(M=j==null?void 0:j[b])!=null?M:0,Ae=L+ee-De-ue,ye=L+J-De,He=Wf(m?zC(U,Ae):U,L,m?xh(te,ye):te);C[b]=He,R[b]=He-L}if(u){var ze,Ne=b==="x"?Qi:ea,Oe=b==="x"?Ga:Ya,Ue=C[k],nt=k==="y"?"height":"width",_e=Ue+p[Ne],xt=Ue-p[Oe],hn=[Qi,ea].indexOf(_)!==-1,Ze=(ze=j==null?void 0:j[k])!=null?ze:0,dt=hn?_e:Ue-S[nt]-w[nt]-Ze+O.altAxis,B=hn?Ue+S[nt]+w[nt]-Ze-O.altAxis:xt,N=m&&hn?K_e(dt,Ue,B):Wf(m?dt:_e,Ue,m?B:xt);C[k]=N,R[k]=N-Ue}e.modifiersData[r]=R}}const y2e={name:"preventOverflow",enabled:!0,phase:"main",fn:E2e,requiresIfExists:["offset"]};function x2e(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function w2e(t){return t===ya(t)||!Za(t)?O7(t):x2e(t)}function k2e(t){var e=t.getBoundingClientRect(),n=Dm(e.width)/t.offsetWidth||1,r=Dm(e.height)/t.offsetHeight||1;return n!==1||r!==1}function S2e(t,e,n){n===void 0&&(n=!1);var r=Za(e),o=Za(e)&&k2e(e),i=Ed(e),s=gm(t,o,n),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Su(e)!=="body"||P7(i))&&(u=w2e(e)),Za(e)?(l=gm(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=M7(i))),{x:s.left+u.scrollLeft-l.x,y:s.top+u.scrollTop-l.y,width:s.width,height:s.height}}function j2e(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(u){if(!n.has(u)){var l=e.get(u);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function B2e(t){var e=j2e(t);return V_e.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function A2e(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function T2e(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var x$={placement:"bottom",modifiers:[],strategy:"absolute"};function w$(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function I2e(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?x$:o;return function(s,u,l){l===void 0&&(l=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},x$,i),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},d=[],F=!1,h={state:c,setOptions:function(g){var p=typeof g=="function"?g(c.options):g;D(),c.options=Object.assign({},i,c.options,p),c.scrollParents={reference:yh(s)?Kf(s):s.contextElement?Kf(s.contextElement):[],popper:Kf(u)};var _=B2e(T2e([].concat(r,c.options.modifiers)));return c.orderedModifiers=_.filter(function(v){return v.enabled}),m(),h.update()},forceUpdate:function(){if(!F){var g=c.elements,p=g.reference,_=g.popper;if(w$(p,_)){c.rects={reference:S2e(p,$f(_),c.options.strategy==="fixed"),popper:I7(_)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(w){return c.modifiersData[w.name]=Object.assign({},w.data)});for(var v=0;v<c.orderedModifiers.length;v++){if(c.reset===!0){c.reset=!1,v=-1;continue}var E=c.orderedModifiers[v],b=E.fn,k=E.options,C=k===void 0?{}:k,S=E.name;typeof b=="function"&&(c=b({state:c,options:C,name:S,instance:h})||c)}}}},update:A2e(function(){return new Promise(function(g){h.forceUpdate(),g(c)})}),destroy:function(){D(),F=!0}};if(!w$(s,u))return h;h.setOptions(l).then(function(g){!F&&l.onFirstUpdate&&l.onFirstUpdate(g)});function m(){c.orderedModifiers.forEach(function(g){var p=g.name,_=g.options,v=_===void 0?{}:_,E=g.effect;if(typeof E=="function"){var b=E({state:c,name:p,instance:h,options:v}),k=function(){};d.push(b||k)}})}function D(){d.forEach(function(g){return g()}),d=[]}return h}}var R2e=[r2e,b2e,t2e,d$,_2e,m2e,y2e,J_e,g2e],O2e=I2e({defaultModifiers:R2e}),M2e="tippy-box",k$="tippy-content",P2e="tippy-backdrop",S$="tippy-arrow",j$="tippy-svg-arrow",wh={passive:!0,capture:!0},B$=function(){return document.body};function N7(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function z7(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function A$(t,e){return typeof t=="function"?t.apply(void 0,e):t}function T$(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function L2e(t){return t.split(/\s+/).filter(Boolean)}function fm(t){return[].concat(t)}function I$(t,e){t.indexOf(e)===-1&&t.push(e)}function N2e(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function z2e(t){return t.split("-")[0]}function HC(t){return[].slice.call(t)}function R$(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function Yf(){return document.createElement("div")}function $C(t){return["Element","Fragment"].some(function(e){return z7(t,e)})}function U2e(t){return z7(t,"NodeList")}function V2e(t){return z7(t,"MouseEvent")}function q2e(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function H2e(t){return $C(t)?[t]:U2e(t)?HC(t):Array.isArray(t)?t:HC(document.querySelectorAll(t))}function U7(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function O$(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function $2e(t){var e,n=fm(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function W2e(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var i=o.popperRect,s=o.popperState,u=o.props,l=u.interactiveBorder,c=z2e(s.placement),d=s.modifiersData.offset;if(!d)return!0;var F=c==="bottom"?d.top.y:0,h=c==="top"?d.bottom.y:0,m=c==="right"?d.left.x:0,D=c==="left"?d.right.x:0,g=i.top-r+F>l,p=r-i.bottom-h>l,_=i.left-n+m>l,v=n-i.right-D>l;return g||p||_||v})}function V7(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function M$(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Bu={isTouch:!1},P$=0;function K2e(){Bu.isTouch||(Bu.isTouch=!0,window.performance&&document.addEventListener("mousemove",L$))}function L$(){var t=performance.now();t-P$<20&&(Bu.isTouch=!1,document.removeEventListener("mousemove",L$)),P$=t}function G2e(){var t=document.activeElement;if(q2e(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Y2e(){document.addEventListener("touchstart",K2e,wh),window.addEventListener("blur",G2e)}var Z2e=typeof window<"u"&&typeof document<"u",J2e=Z2e?!!window.msCrypto:!1,X2e={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Q2e={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ms=Object.assign({appendTo:B$,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},X2e,Q2e),eve=Object.keys(Ms),tve=function(t){var e=Object.keys(t);e.forEach(function(n){Ms[n]=t[n]})};function N$(t){var e=t.plugins||[],n=e.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var u;r[i]=t[i]!==void 0?t[i]:(u=Ms[i])!=null?u:s}return r},{});return Object.assign({},t,n)}function nve(t,e){var n=e?Object.keys(N$(Object.assign({},Ms,{plugins:e}))):eve,r=n.reduce(function(o,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function z$(t,e){var n=Object.assign({},e,{content:A$(e.content,[t])},e.ignoreAttributes?{}:nve(t,e.plugins));return n.aria=Object.assign({},Ms.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}var rve=function(){return"innerHTML"};function q7(t,e){t[rve()]=e}function U$(t){var e=Yf();return t===!0?e.className=S$:(e.className=j$,$C(t)?e.appendChild(t):q7(e,t)),e}function V$(t,e){$C(e.content)?(q7(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?q7(t,e.content):t.textContent=e.content)}function H7(t){var e=t.firstElementChild,n=HC(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(k$)}),arrow:n.find(function(r){return r.classList.contains(S$)||r.classList.contains(j$)}),backdrop:n.find(function(r){return r.classList.contains(P2e)})}}function q$(t){var e=Yf(),n=Yf();n.className=M2e,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Yf();r.className=k$,r.setAttribute("data-state","hidden"),V$(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var u=H7(e),l=u.box,c=u.content,d=u.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&V$(c,t.props),s.arrow?d?i.arrow!==s.arrow&&(l.removeChild(d),l.appendChild(U$(s.arrow))):l.appendChild(U$(s.arrow)):d&&l.removeChild(d)}return{popper:e,onUpdate:o}}q$.$$tippy=!0;var ove=1,WC=[],$7=[];function ive(t,e){var n=z$(t,Object.assign({},Ms,N$(R$(e)))),r,o,i,s=!1,u=!1,l=!1,c=!1,d,F,h,m=[],D=T$(Ae,n.interactiveDebounce),g,p=ove++,_=null,v=N2e(n.plugins),E={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:p,reference:t,popper:Yf(),popperInstance:_,props:n,state:E,plugins:v,clearDelayTimeouts:dt,setProps:B,setContent:N,show:W,hide:oe,hideWithInteractivity:ie,enable:hn,disable:Ze,unmount:ne,destroy:me};if(!n.render)return b;var k=n.render(b),C=k.popper,S=k.onUpdate;C.setAttribute("data-tippy-root",""),C.id="tippy-"+b.id,b.popper=C,t._tippy=b,C._tippy=b;var w=v.map(function(se){return se.fn(b)}),A=t.hasAttribute("aria-expanded");return de(),ae(),L(),U("onCreate",[b]),n.showOnCreate&&_e(),C.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),C.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&z().addEventListener("mousemove",D)}),b;function O(){var se=b.props.touch;return Array.isArray(se)?se:[se,0]}function j(){return O()[0]==="hold"}function R(){var se;return!!((se=b.props.render)!=null&&se.$$tippy)}function M(){return g||t}function z(){var se=M().parentNode;return se?$2e(se):document}function T(){return H7(C)}function P(se){return b.state.isMounted&&!b.state.isVisible||Bu.isTouch||d&&d.type==="focus"?0:N7(b.props.delay,se?0:1,Ms.delay)}function L(se){se===void 0&&(se=!1),C.style.pointerEvents=b.props.interactive&&!se?"":"none",C.style.zIndex=""+b.props.zIndex}function U(se,xe,ke){if(ke===void 0&&(ke=!0),w.forEach(function(Ye){Ye[se]&&Ye[se].apply(Ye,xe)}),ke){var qe;(qe=b.props)[se].apply(qe,xe)}}function te(){var se=b.props.aria;if(se.content){var xe="aria-"+se.content,ke=C.id,qe=fm(b.props.triggerTarget||t);qe.forEach(function(Ye){var Fn=Ye.getAttribute(xe);if(b.state.isVisible)Ye.setAttribute(xe,Fn?Fn+" "+ke:ke);else{var wn=Fn&&Fn.replace(ke,"").trim();wn?Ye.setAttribute(xe,wn):Ye.removeAttribute(xe)}})}}function ae(){if(!(A||!b.props.aria.expanded)){var se=fm(b.props.triggerTarget||t);se.forEach(function(xe){b.props.interactive?xe.setAttribute("aria-expanded",b.state.isVisible&&xe===M()?"true":"false"):xe.removeAttribute("aria-expanded")})}}function Fe(){z().removeEventListener("mousemove",D),WC=WC.filter(function(se){return se!==D})}function re(se){if(!(Bu.isTouch&&(l||se.type==="mousedown"))){var xe=se.composedPath&&se.composedPath()[0]||se.target;if(!(b.props.interactive&&M$(C,xe))){if(fm(b.props.triggerTarget||t).some(function(ke){return M$(ke,xe)})){if(Bu.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[b,se]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),u=!0,setTimeout(function(){u=!1}),b.state.isMounted||q())}}}function ce(){l=!0}function K(){l=!1}function H(){var se=z();se.addEventListener("mousedown",re,!0),se.addEventListener("touchend",re,wh),se.addEventListener("touchstart",K,wh),se.addEventListener("touchmove",ce,wh)}function q(){var se=z();se.removeEventListener("mousedown",re,!0),se.removeEventListener("touchend",re,wh),se.removeEventListener("touchstart",K,wh),se.removeEventListener("touchmove",ce,wh)}function V(se,xe){ee(se,function(){!b.state.isVisible&&C.parentNode&&C.parentNode.contains(C)&&xe()})}function X(se,xe){ee(se,xe)}function ee(se,xe){var ke=T().box;function qe(Ye){Ye.target===ke&&(V7(ke,"remove",qe),xe())}if(se===0)return xe();V7(ke,"remove",F),V7(ke,"add",qe),F=qe}function J(se,xe,ke){ke===void 0&&(ke=!1);var qe=fm(b.props.triggerTarget||t);qe.forEach(function(Ye){Ye.addEventListener(se,xe,ke),m.push({node:Ye,eventType:se,handler:xe,options:ke})})}function de(){j()&&(J("touchstart",De,{passive:!0}),J("touchend",ye,{passive:!0})),L2e(b.props.trigger).forEach(function(se){if(se!=="manual")switch(J(se,De),se){case"mouseenter":J("mouseleave",ye);break;case"focus":J(J2e?"focusout":"blur",He);break;case"focusin":J("focusout",He);break}})}function ue(){m.forEach(function(se){var xe=se.node,ke=se.eventType,qe=se.handler,Ye=se.options;xe.removeEventListener(ke,qe,Ye)}),m=[]}function De(se){var xe,ke=!1;if(!(!b.state.isEnabled||ze(se)||u)){var qe=((xe=d)==null?void 0:xe.type)==="focus";d=se,g=se.currentTarget,ae(),!b.state.isVisible&&V2e(se)&&WC.forEach(function(Ye){return Ye(se)}),se.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||s)&&b.props.hideOnClick!==!1&&b.state.isVisible?ke=!0:_e(se),se.type==="click"&&(s=!ke),ke&&!qe&&xt(se)}}function Ae(se){var xe=se.target,ke=M().contains(xe)||C.contains(xe);if(!(se.type==="mousemove"&&ke)){var qe=nt().concat(C).map(function(Ye){var Fn,wn=Ye._tippy,ve=(Fn=wn.popperInstance)==null?void 0:Fn.state;return ve?{popperRect:Ye.getBoundingClientRect(),popperState:ve,props:n}:null}).filter(Boolean);W2e(qe,se)&&(Fe(),xt(se))}}function ye(se){var xe=ze(se)||b.props.trigger.indexOf("click")>=0&&s;if(!xe){if(b.props.interactive){b.hideWithInteractivity(se);return}xt(se)}}function He(se){b.props.trigger.indexOf("focusin")<0&&se.target!==M()||b.props.interactive&&se.relatedTarget&&C.contains(se.relatedTarget)||xt(se)}function ze(se){return Bu.isTouch?j()!==se.type.indexOf("touch")>=0:!1}function Ne(){Oe();var se=b.props,xe=se.popperOptions,ke=se.placement,qe=se.offset,Ye=se.getReferenceClientRect,Fn=se.moveTransition,wn=R()?H7(C).arrow:null,ve=Ye?{getBoundingClientRect:Ye,contextElement:Ye.contextElement||M()}:t,we={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ht){var Et=ht.state;if(R()){var Qt=T(),Ot=Qt.box;["placement","reference-hidden","escaped"].forEach(function(It){It==="placement"?Ot.setAttribute("data-placement",Et.placement):Et.attributes.popper["data-popper-"+It]?Ot.setAttribute("data-"+It,""):Ot.removeAttribute("data-"+It)}),Et.attributes.popper={}}}},Te=[{name:"offset",options:{offset:qe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Fn}},we];R()&&wn&&Te.push({name:"arrow",options:{element:wn,padding:3}}),Te.push.apply(Te,(xe==null?void 0:xe.modifiers)||[]),b.popperInstance=O2e(ve,C,Object.assign({},xe,{placement:ke,onFirstUpdate:h,modifiers:Te}))}function Oe(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Ue(){var se=b.props.appendTo,xe,ke=M();b.props.interactive&&se===B$||se==="parent"?xe=ke.parentNode:xe=A$(se,[ke]),xe.contains(C)||xe.appendChild(C),b.state.isMounted=!0,Ne()}function nt(){return HC(C.querySelectorAll("[data-tippy-root]"))}function _e(se){b.clearDelayTimeouts(),se&&U("onTrigger",[b,se]),H();var xe=P(!0),ke=O(),qe=ke[0],Ye=ke[1];Bu.isTouch&&qe==="hold"&&Ye&&(xe=Ye),xe?r=setTimeout(function(){b.show()},xe):b.show()}function xt(se){if(b.clearDelayTimeouts(),U("onUntrigger",[b,se]),!b.state.isVisible){q();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(se.type)>=0&&s)){var xe=P(!1);xe?o=setTimeout(function(){b.state.isVisible&&b.hide()},xe):i=requestAnimationFrame(function(){b.hide()})}}function hn(){b.state.isEnabled=!0}function Ze(){b.hide(),b.state.isEnabled=!1}function dt(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function B(se){if(!b.state.isDestroyed){U("onBeforeUpdate",[b,se]),ue();var xe=b.props,ke=z$(t,Object.assign({},xe,R$(se),{ignoreAttributes:!0}));b.props=ke,de(),xe.interactiveDebounce!==ke.interactiveDebounce&&(Fe(),D=T$(Ae,ke.interactiveDebounce)),xe.triggerTarget&&!ke.triggerTarget?fm(xe.triggerTarget).forEach(function(qe){qe.removeAttribute("aria-expanded")}):ke.triggerTarget&&t.removeAttribute("aria-expanded"),ae(),L(),S&&S(xe,ke),b.popperInstance&&(Ne(),nt().forEach(function(qe){requestAnimationFrame(qe._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[b,se])}}function N(se){b.setProps({content:se})}function W(){var se=b.state.isVisible,xe=b.state.isDestroyed,ke=!b.state.isEnabled,qe=Bu.isTouch&&!b.props.touch,Ye=N7(b.props.duration,0,Ms.duration);if(!(se||xe||ke||qe)&&!M().hasAttribute("disabled")&&(U("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,R()&&(C.style.visibility="visible"),L(),H(),b.state.isMounted||(C.style.transition="none"),R()){var Fn=T(),wn=Fn.box,ve=Fn.content;U7([wn,ve],0)}h=function(){var we;if(!(!b.state.isVisible||c)){if(c=!0,C.offsetHeight,C.style.transition=b.props.moveTransition,R()&&b.props.animation){var Te=T(),ht=Te.box,Et=Te.content;U7([ht,Et],Ye),O$([ht,Et],"visible")}te(),ae(),I$($7,b),(we=b.popperInstance)==null||we.forceUpdate(),U("onMount",[b]),b.props.animation&&R()&&X(Ye,function(){b.state.isShown=!0,U("onShown",[b])})}},Ue()}}function oe(){var se=!b.state.isVisible,xe=b.state.isDestroyed,ke=!b.state.isEnabled,qe=N7(b.props.duration,1,Ms.duration);if(!(se||xe||ke)&&(U("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,c=!1,s=!1,R()&&(C.style.visibility="hidden"),Fe(),q(),L(!0),R()){var Ye=T(),Fn=Ye.box,wn=Ye.content;b.props.animation&&(U7([Fn,wn],qe),O$([Fn,wn],"hidden"))}te(),ae(),b.props.animation?R()&&V(qe,b.unmount):b.unmount()}}function ie(se){z().addEventListener("mousemove",D),I$(WC,D),D(se)}function ne(){b.state.isVisible&&b.hide(),b.state.isMounted&&(Oe(),nt().forEach(function(se){se._tippy.unmount()}),C.parentNode&&C.parentNode.removeChild(C),$7=$7.filter(function(se){return se!==b}),b.state.isMounted=!1,U("onHidden",[b]))}function me(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),ue(),delete t._tippy,b.state.isDestroyed=!0,U("onDestroy",[b]))}}function Zf(t,e){e===void 0&&(e={});var n=Ms.plugins.concat(e.plugins||[]);Y2e();var r=Object.assign({},e,{plugins:n}),o=H2e(t),i=o.reduce(function(s,u){var l=u&&ive(u,r);return l&&s.push(l),s},[]);return $C(t)?i[0]:i}Zf.defaultProps=Ms,Zf.setDefaultProps=tve,Zf.currentInput=Bu,Object.assign({},d$,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),Zf.setDefaultProps({render:q$});function H$(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}var $$=typeof window<"u"&&typeof document<"u";function W7(t,e){t&&(typeof t=="function"&&t(e),{}.hasOwnProperty.call(t,"current")&&(t.current=e))}function W$(){return $$&&document.createElement("div")}function ave(t){var e={"data-placement":t.placement};return t.referenceHidden&&(e["data-reference-hidden"]=""),t.escaped&&(e["data-escaped"]=""),e}function K$(t,e){if(t===e)return!0;if(typeof t=="object"&&t!=null&&typeof e=="object"&&e!=null){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(e.hasOwnProperty(n)){if(!K$(t[n],e[n]))return!1}else return!1;return!0}else return!1}function sve(t){var e=[];return t.forEach(function(n){e.find(function(r){return K$(n,r)})||e.push(n)}),e}function uve(t,e){var n,r;return Object.assign({},e,{popperOptions:Object.assign({},t.popperOptions,e.popperOptions,{modifiers:sve([].concat(((n=t.popperOptions)==null?void 0:n.modifiers)||[],((r=e.popperOptions)==null?void 0:r.modifiers)||[]))})})}var K7=$$?f.useLayoutEffect:f.useEffect;function lve(t){var e=f.useRef();return e.current||(e.current=typeof t=="function"?t():t),e.current}function G$(t,e,n){n.split(/\s+/).forEach(function(r){r&&t.classList[e](r)})}var cve={name:"className",defaultValue:"",fn:function(t){var e=t.popper.firstElementChild,n=function(){var i;return!!((i=t.props.render)!=null&&i.$$tippy)};function r(){t.props.className&&!n()||G$(e,"add",t.props.className)}function o(){n()&&G$(e,"remove",t.props.className)}return{onCreate:r,onBeforeUpdate:o,onAfterUpdate:r}}};function dve(t){function e(n){var r=n.children,o=n.content,i=n.visible,s=n.singleton,u=n.render,l=n.reference,c=n.disabled,d=c===void 0?!1:c,F=n.ignoreAttributes,h=F===void 0?!0:F;n.__source,n.__self;var m=H$(n,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),D=i!==void 0,g=s!==void 0,p=f.useState(!1),_=p[0],v=p[1],E=f.useState({}),b=E[0],k=E[1],C=f.useState(),S=C[0],w=C[1],A=lve(function(){return{container:W$(),renders:1}}),O=Object.assign({ignoreAttributes:h},m,{content:A.container});D&&(O.trigger="manual",O.hideOnClick=!1),g&&(d=!0);var j=O,R=O.plugins||[];u&&(j=Object.assign({},O,{plugins:g&&s.data!=null?[].concat(R,[{fn:function(){return{onTrigger:function(z,T){var P=s.data.children.find(function(L){var U=L.instance;return U.reference===T.currentTarget});z.state.$$activeSingletonInstance=P.instance,w(P.content)}}}}]):R,render:function(){return{popper:A.container}}}));var M=[l].concat(r?[r.type]:[]);return K7(function(){var z=l;l&&l.hasOwnProperty("current")&&(z=l.current);var T=t(z||A.ref||W$(),Object.assign({},j,{plugins:[cve].concat(O.plugins||[])}));return A.instance=T,d&&T.disable(),i&&T.show(),g&&s.hook({instance:T,content:o,props:j,setSingletonContent:w}),v(!0),function(){T.destroy(),s==null||s.cleanup(T)}},M),K7(function(){var z;if(A.renders===1){A.renders++;return}var T=A.instance;T.setProps(uve(T.props,j)),(z=T.popperInstance)==null||z.forceUpdate(),d?T.disable():T.enable(),D&&(i?T.show():T.hide()),g&&s.hook({instance:T,content:o,props:j,setSingletonContent:w})}),K7(function(){var z;if(u){var T=A.instance;T.setProps({popperOptions:Object.assign({},T.props.popperOptions,{modifiers:[].concat((((z=T.props.popperOptions)==null?void 0:z.modifiers)||[]).filter(function(P){var L=P.name;return L!=="$$tippyReact"}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(P){var L,U=P.state,te=(L=U.modifiersData)==null?void 0:L.hide;(b.placement!==U.placement||b.referenceHidden!==(te==null?void 0:te.isReferenceHidden)||b.escaped!==(te==null?void 0:te.hasPopperEscaped))&&k({placement:U.placement,referenceHidden:te==null?void 0:te.isReferenceHidden,escaped:te==null?void 0:te.hasPopperEscaped}),U.attributes.popper={}}}])})})}},[b.placement,b.referenceHidden,b.escaped].concat(M)),ft.createElement(ft.Fragment,null,r?f.cloneElement(r,{ref:function(z){A.ref=z,W7(r.ref,z)}}):null,_&&Wc.createPortal(u?u(ave(b),S,A.instance):o,A.container))}return e}var hve=function(t,e){return f.forwardRef(function(n,r){var o=n.children,i=H$(n,["children"]);return ft.createElement(t,Object.assign({},e,i),o?f.cloneElement(o,{ref:function(s){W7(r,s),W7(o.ref,s)}}):null)})},Y$=hve(dve(Zf));function G7({className:t,placement:e,content:n,delay:r,children:o}){return a.jsx(Y$,{content:n,className:`tooltip ${t}`,touch:"hold",arrow:!1,maxWidth:250,placement:e,delay:r,duration:[100,0],children:o})}G7.defaultProps={placement:"top",className:"",delay:[200,0]},G7.propTypes={className:fe.string,placement:fe.string,content:fe.node.isRequired,delay:fe.arrayOf(fe.number),children:fe.node.isRequired};const Ja=ft.forwardRef(({variant:t,size:e,type:n,tooltip:r,tooltipPlacement:o,src:i,onClick:s,tabIndex:u,disabled:l,isImage:c,className:d},F)=>{const h=a.jsx("button",{ref:F,className:`ic-btn ic-btn-${t} ${d}`,onMouseUp:m=>Uf(m,`.ic-btn-${t}`),onClick:s,type:n,tabIndex:u,disabled:l,children:a.jsx(Yl,{size:e,src:i,isImage:c})});return r===null?h:a.jsx(G7,{placement:o,content:a.jsx(Wt,{variant:"b2",children:r}),children:h})});Ja.defaultProps={variant:"surface",size:"normal",type:"button",tooltip:null,tooltipPlacement:"top",onClick:null,tabIndex:0,disabled:!1,isImage:!1,className:""},Ja.propTypes={variant:fe.oneOf(["surface","primary","positive","caution","danger"]),size:fe.oneOf(["normal","small","extra-small"]),type:fe.oneOf(["button","submit","reset"]),tooltip:fe.string,tooltipPlacement:fe.oneOf(["top","right","bottom","left"]),src:fe.string.isRequired,onClick:fe.func,tabIndex:fe.number,disabled:fe.bool,isImage:fe.bool,className:fe.string};function kh({size:t}){return a.jsx("div",{className:`donut-spinner donut-spinner--${t}`,children:" "})}kh.defaultProps={size:"normal"},kh.propTypes={size:fe.oneOf(["normal","small"])};var Z$={},Y7={},Z7={exports:{}};(function(t,e){(function(n,r){r(t,e)})(Qe,function(n,r){var o=typeof Map=="function"?new Map:function(){var d=[],F=[];return{has:function(h){return d.indexOf(h)>-1},get:function(h){return F[d.indexOf(h)]},set:function(h,m){d.indexOf(h)===-1&&(d.push(h),F.push(m))},delete:function(h){var m=d.indexOf(h);m>-1&&(d.splice(m,1),F.splice(m,1))}}}(),i=function(d){return new Event(d,{bubbles:!0})};try{new Event("test")}catch{i=function(d){var F=document.createEvent("Event");return F.initEvent(d,!0,!1),F}}function s(d){if(!d||!d.nodeName||d.nodeName!=="TEXTAREA"||o.has(d))return;var F=null,h=null,m=null;function D(){var k=window.getComputedStyle(d,null);k.resize==="vertical"?d.style.resize="none":k.resize==="both"&&(d.style.resize="horizontal"),k.boxSizing==="content-box"?F=-(parseFloat(k.paddingTop)+parseFloat(k.paddingBottom)):F=parseFloat(k.borderTopWidth)+parseFloat(k.borderBottomWidth),isNaN(F)&&(F=0),v()}function g(k){{var C=d.style.width;d.style.width="0px",d.offsetWidth,d.style.width=C}d.style.overflowY=k}function p(k){for(var C=[];k&&k.parentNode&&k.parentNode instanceof Element;)k.parentNode.scrollTop&&C.push({node:k.parentNode,scrollTop:k.parentNode.scrollTop}),k=k.parentNode;return C}function _(){if(d.scrollHeight!==0){var k=p(d),C=document.documentElement&&document.documentElement.scrollTop;d.style.height="",d.style.height=d.scrollHeight+F+"px",h=d.clientWidth,k.forEach(function(S){S.node.scrollTop=S.scrollTop}),C&&(document.documentElement.scrollTop=C)}}function v(){_();var k=Math.round(parseFloat(d.style.height)),C=window.getComputedStyle(d,null),S=C.boxSizing==="content-box"?Math.round(parseFloat(C.height)):d.offsetHeight;if(S<k?C.overflowY==="hidden"&&(g("scroll"),_(),S=C.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(d,null).height)):d.offsetHeight):C.overflowY!=="hidden"&&(g("hidden"),_(),S=C.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(d,null).height)):d.offsetHeight),m!==S){m=S;var w=i("autosize:resized");try{d.dispatchEvent(w)}catch{}}}var E=function(){d.clientWidth!==h&&v()},b=(function(k){window.removeEventListener("resize",E,!1),d.removeEventListener("input",v,!1),d.removeEventListener("keyup",v,!1),d.removeEventListener("autosize:destroy",b,!1),d.removeEventListener("autosize:update",v,!1),Object.keys(k).forEach(function(C){d.style[C]=k[C]}),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",b,!1),"onpropertychange"in d&&"oninput"in d&&d.addEventListener("keyup",v,!1),window.addEventListener("resize",E,!1),d.addEventListener("input",v,!1),d.addEventListener("autosize:update",v,!1),d.style.overflowX="hidden",d.style.wordWrap="break-word",o.set(d,{destroy:b,update:v}),D()}function u(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(d){return d},c.destroy=function(d){return d},c.update=function(d){return d}):(c=function(d,F){return d&&Array.prototype.forEach.call(d.length?d:[d],function(h){return s(h)}),d},c.destroy=function(d){return d&&Array.prototype.forEach.call(d.length?d:[d],u),d},c.update=function(d){return d&&Array.prototype.forEach.call(d.length?d:[d],l),d}),r.default=c,n.exports=r.default})})(Z7,Z7.exports);var Fve=Z7.exports,mve=function(t,e,n){return n=window.getComputedStyle,(n?n(t):t.currentStyle)[e.replace(/-(\w)/gi,function(r,o){return o.toUpperCase()})]},Dve=mve,J7=Dve;function gve(t){var e=J7(t,"line-height"),n=parseFloat(e,10);if(e===n+""){var r=t.style.lineHeight;t.style.lineHeight=e+"em",e=J7(t,"line-height"),n=parseFloat(e,10),r?t.style.lineHeight=r:delete t.style.lineHeight}if(e.indexOf("pt")!==-1?(n*=4,n/=3):e.indexOf("mm")!==-1?(n*=96,n/=25.4):e.indexOf("cm")!==-1?(n*=96,n/=2.54):e.indexOf("in")!==-1?n*=96:e.indexOf("pc")!==-1&&(n*=16),n=Math.round(n),e==="normal"){var o=t.nodeName,i=document.createElement(o);i.innerHTML="&nbsp;",o.toUpperCase()==="TEXTAREA"&&i.setAttribute("rows","1");var s=J7(t,"font-size");i.style.fontSize=s,i.style.padding="0px",i.style.border="0px";var u=document.body;u.appendChild(i);var l=i.offsetHeight;n=l,u.removeChild(i)}return n}var pve=gve,fve=Qe&&Qe.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),X7=Qe&&Qe.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},_ve=Qe&&Qe.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]]);return n};Y7.__esModule=!0;var KC=f,Jf=dp,GC=Fve,vve=pve,bve=vve,J$="autosize:resized",Cve=function(t){fve(e,t);function e(){var n=t!==null&&t.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:bve(n.textarea)})},n.onChange=function(r){var o=n.props.onChange;n.currentValue=r.currentTarget.value,o&&o(r)},n}return e.prototype.componentDidMount=function(){var n=this,r=this.props,o=r.maxRows,i=r.async;typeof o=="number"&&this.updateLineHeight(),typeof o=="number"||i?setTimeout(function(){return n.textarea&&GC(n.textarea)}):this.textarea&&GC(this.textarea),this.textarea&&this.textarea.addEventListener(J$,this.onResize)},e.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(J$,this.onResize),GC.destroy(this.textarea))},e.prototype.render=function(){var n=this,r=this,o=r.props;o.onResize;var i=o.maxRows;o.onChange;var s=o.style;o.innerRef;var u=o.children,l=_ve(o,["onResize","maxRows","onChange","style","innerRef","children"]),c=r.state.lineHeight,d=i&&c?c*i:null;return KC.createElement("textarea",X7({},l,{onChange:this.onChange,style:d?X7({},s,{maxHeight:d}):s,ref:function(F){n.textarea=F,typeof n.props.innerRef=="function"?n.props.innerRef(F):n.props.innerRef&&(n.props.innerRef.current=F)}}),u)},e.prototype.componentDidUpdate=function(){this.textarea&&GC.update(this.textarea)},e.defaultProps={rows:1,async:!1},e.propTypes={rows:Jf.number,maxRows:Jf.number,onResize:Jf.func,innerRef:Jf.any,async:Jf.bool},e}(KC.Component);Y7.TextareaAutosize=KC.forwardRef(function(t,e){return KC.createElement(Cve,X7({},t,{innerRef:e}))}),function(t){t.__esModule=!0;var e=Y7;t.default=e.TextareaAutosize}(Z$);const Eve=Rr(Z$);function Ps({id:t,label:e,name:n,value:r,placeholder:o,required:i,type:s,onChange:u,forwardRef:l,resizable:c,minHeight:d,onResize:F,state:h,onKeyDown:m,disabled:D,autoFocus:g}){return a.jsxs("div",{className:"input-container",children:[e!==""&&a.jsx("label",{className:"input__label text-b2",htmlFor:t,children:e}),c?a.jsx(Eve,{dir:"auto",style:{minHeight:`${d}px`},name:n,id:t,className:`input input--resizable${h!=="normal"?` input--${h}`:""}`,ref:l,type:s,placeholder:o,required:i,defaultValue:r,autoComplete:"off",onChange:u,onResize:F,onKeyDown:m,disabled:D,autoFocus:g}):a.jsx("input",{dir:"auto",ref:l,id:t,name:n,className:`input ${h!=="normal"?` input--${h}`:""}`,type:s,placeholder:o,required:i,defaultValue:r,autoComplete:"off",onChange:u,onKeyDown:m,disabled:D,autoFocus:g})]})}Ps.defaultProps={id:null,name:"",label:"",value:"",placeholder:"",type:"text",required:!1,onChange:null,forwardRef:null,resizable:!1,minHeight:46,onResize:null,state:"normal",onKeyDown:null,disabled:!1,autoFocus:!1},Ps.propTypes={id:fe.string,name:fe.string,label:fe.string,value:fe.string,placeholder:fe.string,required:fe.bool,type:fe.string,onChange:fe.func,forwardRef:fe.shape({}),resizable:fe.bool,minHeight:fe.number,onResize:fe.func,state:fe.oneOf(["normal","success","error"]),onKeyDown:fe.func,disabled:fe.bool,autoFocus:fe.bool};const Sh=ft.forwardRef(({horizontal:t,vertical:e,autoHide:n,invisible:r,onScroll:o,children:i},s)=>{let u="";return t&&(u+=" scrollbar__h"),e&&(u+=" scrollbar__v"),n&&(u+=" scrollbar--auto-hide"),r&&(u+=" scrollbar--invisible"),a.jsx("div",{onScroll:o,ref:s,className:`scrollbar${u}`,children:i})});Sh.defaultProps={horizontal:!1,vertical:!0,autoHide:!1,invisible:!1,onScroll:null},Sh.propTypes={horizontal:fe.bool,vertical:fe.bool,autoHide:fe.bool,invisible:fe.bool,onScroll:fe.func,children:fe.node.isRequired};function Q7({content:t,placement:e,maxWidth:n,render:r,afterToggle:o}){const[i,s]=f.useState(!1),u=()=>s(!0),l=()=>s(!1);return f.useEffect(()=>{o!==null&&o(i)},[i]),a.jsx(Y$,{animation:"scale-extreme",className:"context-menu",visible:i,onClickOutside:l,content:a.jsx(Sh,{invisible:!0,children:typeof t=="function"?t(l):t}),placement:e,interactive:!0,arrow:!1,maxWidth:n,duration:200,children:r(i?l:u)})}Q7.defaultProps={maxWidth:"unset",placement:"right",afterToggle:null},Q7.propTypes={content:fe.oneOfType([fe.node,fe.func]).isRequired,placement:fe.oneOf(["top","right","bottom","left"]),maxWidth:fe.oneOfType([fe.string,fe.number]),render:fe.func.isRequired,afterToggle:fe.func};function YC({children:t}){return a.jsx("div",{className:"context-menu__header",children:a.jsx(Wt,{variant:"b3",children:t})})}YC.propTypes={children:fe.node.isRequired};function jh({variant:t,iconSrc:e,type:n,onClick:r,children:o,disabled:i}){return a.jsx("div",{className:"context-menu__item",children:a.jsx(bo,{variant:t,iconSrc:e,type:n,onClick:r,disabled:i,children:o})})}jh.defaultProps={variant:"surface",iconSrc:null,type:"button",disabled:!1,onClick:null},jh.propTypes={variant:fe.oneOf(["surface","positive","caution","danger"]),iconSrc:fe.string,type:fe.oneOf(["button","submit"]),onClick:fe.func,children:fe.node.isRequired,disabled:fe.bool};function ZC({children:t}){return a.jsx("div",{className:"header",children:t})}ZC.propTypes={children:fe.node.isRequired};function JC({children:t}){return a.jsx("div",{className:"header__title-wrapper",children:t})}JC.propTypes={children:fe.node.isRequired};var eS={exports:{}},Bh={},tS={exports:{}},Ls={},nS={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function i(F,h){return h.getPropertyValue("overflow")!=="visible"||F.scrollWidth<=0&&F.scrollHeight<=0}function s(F){var h=F.offsetWidth<=0&&F.offsetHeight<=0;if(h&&!F.innerHTML)return!0;try{var m=window.getComputedStyle(F),D=m.getPropertyValue("display");return h?D!==r&&i(F,m):D===n}catch{return console.warn("Failed to inspect element style"),!1}}function u(F){for(var h=F,m=F.getRootNode&&F.getRootNode();h&&h!==document.body;){if(m&&h===m&&(h=m.host.parentNode),s(h))return!1;h=h.parentNode}return!0}function l(F,h){var m=F.nodeName.toLowerCase(),D=o.test(m)&&!F.disabled||m==="a"&&F.href||h;return D&&u(F)}function c(F){var h=F.getAttribute("tabindex");h===null&&(h=void 0);var m=isNaN(h);return(m||h>=0)&&l(F,!m)}function d(F){var h=[].slice.call(F.querySelectorAll("*"),0).reduce(function(m,D){return m.concat(D.shadowRoot?d(D.shadowRoot):[D])},[]);return h.filter(c)}t.exports=e.default})(nS,nS.exports);var X$=nS.exports;Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.resetState=kve,Ls.log=Sve,Ls.handleBlur=Xf,Ls.handleFocus=Qf,Ls.markForFocusLater=jve,Ls.returnFocus=Bve,Ls.popWithoutFocus=Ave,Ls.setupScopedFocus=Tve,Ls.teardownScopedFocus=Ive;var yve=X$,xve=wve(yve);function wve(t){return t&&t.__esModule?t:{default:t}}var _m=[],vm=null,rS=!1;function kve(){_m=[]}function Sve(){}function Xf(){rS=!0}function Qf(){if(rS){if(rS=!1,!vm)return;setTimeout(function(){if(!vm.contains(document.activeElement)){var t=(0,xve.default)(vm)[0]||vm;t.focus()}},0)}}function jve(){_m.push(document.activeElement)}function Bve(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=null;try{_m.length!==0&&(e=_m.pop(),e.focus({preventScroll:t}));return}catch{console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}}function Ave(){_m.length>0&&_m.pop()}function Tve(t){vm=t,window.addEventListener?(window.addEventListener("blur",Xf,!1),document.addEventListener("focus",Qf,!0)):(window.attachEvent("onBlur",Xf),document.attachEvent("onFocus",Qf))}function Ive(){vm=null,window.addEventListener?(window.removeEventListener("blur",Xf),document.removeEventListener("focus",Qf)):(window.detachEvent("onBlur",Xf),document.detachEvent("onFocus",Qf))}var oS={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var n=X$,r=o(n);function o(u){return u&&u.__esModule?u:{default:u}}function i(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return u.activeElement.shadowRoot?i(u.activeElement.shadowRoot):u.activeElement}function s(u,l){var c=(0,r.default)(u);if(!c.length){l.preventDefault();return}var d=void 0,F=l.shiftKey,h=c[0],m=c[c.length-1],D=i();if(u===D){if(!F)return;d=m}if(m===D&&!F&&(d=h),h===D&&F&&(d=m),d){l.preventDefault(),d.focus();return}var g=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),p=g!=null&&g[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(p){var _=c.indexOf(D);if(_>-1&&(_+=F?-1:1),d=c[_],typeof d>"u"){l.preventDefault(),d=F?m:h,d.focus();return}l.preventDefault(),d.focus()}}t.exports=e.default})(oS,oS.exports);var Rve=oS.exports,Ns={},Ove=function(){},Mve=Ove,zs={},Q$={exports:{}};(function(t){(function(){var e=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:e,canUseWorkers:typeof Worker<"u",canUseEventListeners:e&&!!(window.addEventListener||window.attachEvent),canUseViewport:e&&!!window.screen};t.exports?t.exports=n:window.ExecutionEnvironment=n})()})(Q$);var Pve=Q$.exports;Object.defineProperty(zs,"__esModule",{value:!0}),zs.canUseDOM=zs.SafeNodeList=zs.SafeHTMLCollection=void 0;var Lve=Pve,Nve=zve(Lve);function zve(t){return t&&t.__esModule?t:{default:t}}var XC=Nve.default,Uve=XC.canUseDOM?window.HTMLElement:{};zs.SafeHTMLCollection=XC.canUseDOM?window.HTMLCollection:{},zs.SafeNodeList=XC.canUseDOM?window.NodeList:{},zs.canUseDOM=XC.canUseDOM,zs.default=Uve,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.resetState=Wve,Ns.log=Kve,Ns.assertNodeList=eW,Ns.setElement=Gve,Ns.validateElement=iS,Ns.hide=Yve,Ns.show=Zve,Ns.documentNotReadyOrSSRTesting=Jve;var Vve=Mve,qve=$ve(Vve),Hve=zs;function $ve(t){return t.__esModule?t:{default:t}}var Xa=null;function Wve(){Xa&&(Xa.removeAttribute?Xa.removeAttribute("aria-hidden"):Xa.length!=null?Xa.forEach(function(t){return t.removeAttribute("aria-hidden")}):document.querySelectorAll(Xa).forEach(function(t){return t.removeAttribute("aria-hidden")})),Xa=null}function Kve(){}function eW(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function Gve(t){var e=t;if(typeof e=="string"&&Hve.canUseDOM){var n=document.querySelectorAll(e);eW(n,e),e=n}return Xa=e||Xa,Xa}function iS(t){var e=t||Xa;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,qve.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function Yve(t){var e=!0,n=!1,r=void 0;try{for(var o=iS(t)[Symbol.iterator](),i;!(e=(i=o.next()).done);e=!0){var s=i.value;s.setAttribute("aria-hidden","true")}}catch(u){n=!0,r=u}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}}function Zve(t){var e=!0,n=!1,r=void 0;try{for(var o=iS(t)[Symbol.iterator](),i;!(e=(i=o.next()).done);e=!0){var s=i.value;s.removeAttribute("aria-hidden")}}catch(u){n=!0,r=u}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}}function Jve(){Xa=null}var bm={};Object.defineProperty(bm,"__esModule",{value:!0}),bm.resetState=Xve,bm.log=Qve;var e3={},t3={};function tW(t,e){t.classList.remove(e)}function Xve(){var t=document.getElementsByTagName("html")[0];for(var e in e3)tW(t,e3[e]);var n=document.body;for(var r in t3)tW(n,t3[r]);e3={},t3={}}function Qve(){}var ebe=function(t,e){return t[e]||(t[e]=0),t[e]+=1,e},tbe=function(t,e){return t[e]&&(t[e]-=1),e},nbe=function(t,e,n){n.forEach(function(r){ebe(e,r),t.add(r)})},rbe=function(t,e,n){n.forEach(function(r){tbe(e,r),e[r]===0&&t.remove(r)})};bm.add=function(t,e){return nbe(t.classList,t.nodeName.toLowerCase()=="html"?e3:t3,e.split(" "))},bm.remove=function(t,e){return rbe(t.classList,t.nodeName.toLowerCase()=="html"?e3:t3,e.split(" "))};var Cm={};Object.defineProperty(Cm,"__esModule",{value:!0}),Cm.log=ibe,Cm.resetState=abe;function obe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var nW=function t(){var e=this;obe(this,t),this.register=function(n){e.openInstances.indexOf(n)===-1&&(e.openInstances.push(n),e.emit("register"))},this.deregister=function(n){var r=e.openInstances.indexOf(n);r!==-1&&(e.openInstances.splice(r,1),e.emit("deregister"))},this.subscribe=function(n){e.subscribers.push(n)},this.emit=function(n){e.subscribers.forEach(function(r){return r(n,e.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},QC=new nW;function ibe(){console.log("portalOpenInstances ----------"),console.log(QC.openInstances.length),QC.openInstances.forEach(function(t){return console.log(t)}),console.log("end portalOpenInstances ----------")}function abe(){QC=new nW}Cm.default=QC;var aS={};Object.defineProperty(aS,"__esModule",{value:!0}),aS.resetState=cbe,aS.log=dbe;var sbe=Cm,ube=lbe(sbe);function lbe(t){return t.__esModule?t:{default:t}}var _i=void 0,Us=void 0,Ah=[];function cbe(){for(var t=[_i,Us],e=0;e<t.length;e++){var n=t[e];n&&n.parentNode&&n.parentNode.removeChild(n)}_i=Us=null,Ah=[]}function dbe(){console.log("bodyTrap ----------"),console.log(Ah.length);for(var t=[_i,Us],e=0;e<t.length;e++){var n=t[e],r=n||{};console.log(r.nodeName,r.className,r.id)}console.log("edn bodyTrap ----------")}function rW(){Ah.length!==0&&Ah[Ah.length-1].focusContent()}function hbe(t,e){!_i&&!Us&&(_i=document.createElement("div"),_i.setAttribute("data-react-modal-body-trap",""),_i.style.position="absolute",_i.style.opacity="0",_i.setAttribute("tabindex","0"),_i.addEventListener("focus",rW),Us=_i.cloneNode(),Us.addEventListener("focus",rW)),Ah=e,Ah.length>0?(document.body.firstChild!==_i&&document.body.insertBefore(_i,document.body.firstChild),document.body.lastChild!==Us&&document.body.appendChild(Us)):(_i.parentElement&&_i.parentElement.removeChild(_i),Us.parentElement&&Us.parentElement.removeChild(Us))}ube.default.subscribe(hbe),function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(z){for(var T=1;T<arguments.length;T++){var P=arguments[T];for(var L in P)Object.prototype.hasOwnProperty.call(P,L)&&(z[L]=P[L])}return z},r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},o=function(){function z(T,P){for(var L=0;L<P.length;L++){var U=P[L];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(T,U.key,U)}}return function(T,P,L){return P&&z(T.prototype,P),L&&z(T,L),T}}(),i=f,s=dp,u=k(s),l=Ls,c=b(l),d=Rve,F=k(d),h=Ns,m=b(h),D=bm,g=b(D),p=zs,_=k(p),v=Cm,E=k(v);function b(z){if(z&&z.__esModule)return z;var T={};if(z!=null)for(var P in z)Object.prototype.hasOwnProperty.call(z,P)&&(T[P]=z[P]);return T.default=z,T}function k(z){return z&&z.__esModule?z:{default:z}}function C(z,T){if(!(z instanceof T))throw new TypeError("Cannot call a class as a function")}function S(z,T){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:z}function w(z,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);z.prototype=Object.create(T&&T.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(z,T):z.__proto__=T)}var A={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},O=function(z){return z.code==="Tab"||z.keyCode===9},j=function(z){return z.code==="Escape"||z.keyCode===27},R=0,M=function(z){w(T,z);function T(P){C(this,T);var L=S(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,P));return L.setOverlayRef=function(U){L.overlay=U,L.props.overlayRef&&L.props.overlayRef(U)},L.setContentRef=function(U){L.content=U,L.props.contentRef&&L.props.contentRef(U)},L.afterClose=function(){var U=L.props,te=U.appElement,ae=U.ariaHideApp,Fe=U.htmlOpenClassName,re=U.bodyOpenClassName,ce=U.parentSelector,K=ce&&ce().ownerDocument||document;re&&g.remove(K.body,re),Fe&&g.remove(K.getElementsByTagName("html")[0],Fe),ae&&R>0&&(R-=1,R===0&&m.show(te)),L.props.shouldFocusAfterRender&&(L.props.shouldReturnFocusAfterClose?(c.returnFocus(L.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),L.props.onAfterClose&&L.props.onAfterClose(),E.default.deregister(L)},L.open=function(){L.beforeOpen(),L.state.afterOpen&&L.state.beforeClose?(clearTimeout(L.closeTimer),L.setState({beforeClose:!1})):(L.props.shouldFocusAfterRender&&(c.setupScopedFocus(L.node),c.markForFocusLater()),L.setState({isOpen:!0},function(){L.openAnimationFrame=requestAnimationFrame(function(){L.setState({afterOpen:!0}),L.props.isOpen&&L.props.onAfterOpen&&L.props.onAfterOpen({overlayEl:L.overlay,contentEl:L.content})})}))},L.close=function(){L.props.closeTimeoutMS>0?L.closeWithTimeout():L.closeWithoutTimeout()},L.focusContent=function(){return L.content&&!L.contentHasFocus()&&L.content.focus({preventScroll:!0})},L.closeWithTimeout=function(){var U=Date.now()+L.props.closeTimeoutMS;L.setState({beforeClose:!0,closesAt:U},function(){L.closeTimer=setTimeout(L.closeWithoutTimeout,L.state.closesAt-Date.now())})},L.closeWithoutTimeout=function(){L.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},L.afterClose)},L.handleKeyDown=function(U){O(U)&&(0,F.default)(L.content,U),L.props.shouldCloseOnEsc&&j(U)&&(U.stopPropagation(),L.requestClose(U))},L.handleOverlayOnClick=function(U){L.shouldClose===null&&(L.shouldClose=!0),L.shouldClose&&L.props.shouldCloseOnOverlayClick&&(L.ownerHandlesClose()?L.requestClose(U):L.focusContent()),L.shouldClose=null},L.handleContentOnMouseUp=function(){L.shouldClose=!1},L.handleOverlayOnMouseDown=function(U){!L.props.shouldCloseOnOverlayClick&&U.target==L.overlay&&U.preventDefault()},L.handleContentOnClick=function(){L.shouldClose=!1},L.handleContentOnMouseDown=function(){L.shouldClose=!1},L.requestClose=function(U){return L.ownerHandlesClose()&&L.props.onRequestClose(U)},L.ownerHandlesClose=function(){return L.props.onRequestClose},L.shouldBeClosed=function(){return!L.state.isOpen&&!L.state.beforeClose},L.contentHasFocus=function(){return document.activeElement===L.content||L.content.contains(document.activeElement)},L.buildClassName=function(U,te){var ae=(typeof te>"u"?"undefined":r(te))==="object"?te:{base:A[U],afterOpen:A[U]+"--after-open",beforeClose:A[U]+"--before-close"},Fe=ae.base;return L.state.afterOpen&&(Fe=Fe+" "+ae.afterOpen),L.state.beforeClose&&(Fe=Fe+" "+ae.beforeClose),typeof te=="string"&&te?Fe+" "+te:Fe},L.attributesFromObject=function(U,te){return Object.keys(te).reduce(function(ae,Fe){return ae[U+"-"+Fe]=te[Fe],ae},{})},L.state={afterOpen:!1,beforeClose:!1},L.shouldClose=null,L.moveFromContentToOverlay=null,L}return o(T,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(P,L){this.props.isOpen&&!P.isOpen?this.open():!this.props.isOpen&&P.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!L.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var P=this.props,L=P.appElement,U=P.ariaHideApp,te=P.htmlOpenClassName,ae=P.bodyOpenClassName,Fe=P.parentSelector,re=Fe&&Fe().ownerDocument||document;ae&&g.add(re.body,ae),te&&g.add(re.getElementsByTagName("html")[0],te),U&&(R+=1,m.hide(L)),E.default.register(this)}},{key:"render",value:function(){var P=this.props,L=P.id,U=P.className,te=P.overlayClassName,ae=P.defaultStyles,Fe=P.children,re=U?{}:ae.content,ce=te?{}:ae.overlay;if(this.shouldBeClosed())return null;var K={ref:this.setOverlayRef,className:this.buildClassName("overlay",te),style:n({},ce,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},H=n({id:L,ref:this.setContentRef,style:n({},re,this.props.style.content),className:this.buildClassName("content",U),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),q=this.props.contentElement(H,Fe);return this.props.overlayElement(K,q)}}]),T}(i.Component);M.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},M.propTypes={isOpen:u.default.bool.isRequired,defaultStyles:u.default.shape({content:u.default.object,overlay:u.default.object}),style:u.default.shape({content:u.default.object,overlay:u.default.object}),className:u.default.oneOfType([u.default.string,u.default.object]),overlayClassName:u.default.oneOfType([u.default.string,u.default.object]),parentSelector:u.default.func,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,ariaHideApp:u.default.bool,appElement:u.default.oneOfType([u.default.instanceOf(_.default),u.default.instanceOf(p.SafeHTMLCollection),u.default.instanceOf(p.SafeNodeList),u.default.arrayOf(u.default.instanceOf(_.default))]),onAfterOpen:u.default.func,onAfterClose:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,preventScroll:u.default.bool,role:u.default.string,contentLabel:u.default.string,aria:u.default.object,data:u.default.object,children:u.default.node,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,overlayElement:u.default.func,contentElement:u.default.func,testId:u.default.string},e.default=M,t.exports=e.default}(tS,tS.exports);var Fbe=tS.exports;function oW(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);t!=null&&this.setState(t)}function iW(t){function e(n){var r=this.constructor.getDerivedStateFromProps(t,n);return r??null}this.setState(e.bind(this))}function aW(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}oW.__suppressDeprecationWarning=!0,iW.__suppressDeprecationWarning=!0,aW.__suppressDeprecationWarning=!0;function mbe(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if(typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function")return t;var n=null,r=null,o=null;if(typeof e.componentWillMount=="function"?n="componentWillMount":typeof e.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof e.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof e.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof e.componentWillUpdate=="function"?o="componentWillUpdate":typeof e.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var i=t.displayName||t.name,s=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
`+i+" uses "+s+" 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 t.getDerivedStateFromProps=="function"&&(e.componentWillMount=oW,e.componentWillReceiveProps=iW),typeof e.getSnapshotBeforeUpdate=="function"){if(typeof e.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=aW;var u=e.componentDidUpdate;e.componentDidUpdate=function(l,c,d){var F=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;u.call(this,l,c,F)}}return t}const Dbe=Object.freeze(Object.defineProperty({__proto__:null,polyfill:mbe},Symbol.toStringTag,{value:"Module"})),gbe=Xn(Dbe);Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.bodyOpenClassName=Bh.portalClassName=void 0;var sW=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},pbe=function(){function t(e,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(e,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),uW=f,eE=n3(uW),fbe=Wc,tE=n3(fbe),_be=dp,rn=n3(_be),vbe=Fbe,lW=n3(vbe),bbe=Ns,Cbe=ybe(bbe),yd=zs,cW=n3(yd),Ebe=gbe;function ybe(t){if(t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function n3(t){return t&&t.__esModule?t:{default:t}}function xbe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dW(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function wbe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var kbe=Bh.portalClassName="ReactModalPortal",Sbe=Bh.bodyOpenClassName="ReactModal__Body--open",Th=yd.canUseDOM&&tE.default.createPortal!==void 0,hW=function(t){return document.createElement(t)},FW=function(){return Th?tE.default.createPortal:tE.default.unstable_renderSubtreeIntoContainer};function nE(t){return t()}var r3=function(t){wbe(e,t);function e(){var n,r,o,i;xbe(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return i=(r=(o=dW(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(u))),o),o.removePortal=function(){!Th&&tE.default.unmountComponentAtNode(o.node);var c=nE(o.props.parentSelector);c&&c.contains(o.node)?c.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(c){o.portal=c},o.renderPortal=function(c){var d=FW(),F=d(o,eE.default.createElement(lW.default,sW({defaultStyles:e.defaultStyles},c)),o.node);o.portalRef(F)},r),dW(o,i)}return pbe(e,[{key:"componentDidMount",value:function(){if(yd.canUseDOM){Th||(this.node=hW("div")),this.node.className=this.props.portalClassName;var n=nE(this.props.parentSelector);n.appendChild(this.node),!Th&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(n){var r=nE(n.parentSelector),o=nE(this.props.parentSelector);return{prevParent:r,nextParent:o}}},{key:"componentDidUpdate",value:function(n,r,o){if(yd.canUseDOM){var i=this.props,s=i.isOpen,u=i.portalClassName;n.portalClassName!==u&&(this.node.className=u);var l=o.prevParent,c=o.nextParent;c!==l&&(l.removeChild(this.node),c.appendChild(this.node)),!(!n.isOpen&&!s)&&!Th&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!yd.canUseDOM||!this.node||!this.portal)){var n=this.portal.state,r=Date.now(),o=n.isOpen&&this.props.closeTimeoutMS&&(n.closesAt||r+this.props.closeTimeoutMS);o?(n.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,o-r)):this.removePortal()}}},{key:"render",value:function(){if(!yd.canUseDOM||!Th)return null;!this.node&&Th&&(this.node=hW("div"));var n=FW();return n(eE.default.createElement(lW.default,sW({ref:this.portalRef,defaultStyles:e.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(n){Cbe.setElement(n)}}]),e}(uW.Component);r3.propTypes={isOpen:rn.default.bool.isRequired,style:rn.default.shape({content:rn.default.object,overlay:rn.default.object}),portalClassName:rn.default.string,bodyOpenClassName:rn.default.string,htmlOpenClassName:rn.default.string,className:rn.default.oneOfType([rn.default.string,rn.default.shape({base:rn.default.string.isRequired,afterOpen:rn.default.string.isRequired,beforeClose:rn.default.string.isRequired})]),overlayClassName:rn.default.oneOfType([rn.default.string,rn.default.shape({base:rn.default.string.isRequired,afterOpen:rn.default.string.isRequired,beforeClose:rn.default.string.isRequired})]),appElement:rn.default.oneOfType([rn.default.instanceOf(cW.default),rn.default.instanceOf(yd.SafeHTMLCollection),rn.default.instanceOf(yd.SafeNodeList),rn.default.arrayOf(rn.default.instanceOf(cW.default))]),onAfterOpen:rn.default.func,onRequestClose:rn.default.func,closeTimeoutMS:rn.default.number,ariaHideApp:rn.default.bool,shouldFocusAfterRender:rn.default.bool,shouldCloseOnOverlayClick:rn.default.bool,shouldReturnFocusAfterClose:rn.default.bool,preventScroll:rn.default.bool,parentSelector:rn.default.func,aria:rn.default.object,data:rn.default.object,role:rn.default.string,contentLabel:rn.default.string,shouldCloseOnEsc:rn.default.bool,overlayRef:rn.default.func,contentRef:rn.default.func,id:rn.default.string,overlayElement:rn.default.func,contentElement:rn.default.func},r3.defaultProps={isOpen:!1,portalClassName:kbe,bodyOpenClassName:Sbe,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,e){return eE.default.createElement("div",t,e)},contentElement:function(t,e){return eE.default.createElement("div",t,e)}},r3.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,Ebe.polyfill)(r3),Bh.default=r3,function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=Bh,r=o(n);function o(i){return i.__esModule?i:{default:i}}e.default=r.default,t.exports=e.default}(eS,eS.exports);var jbe=eS.exports;const mW=Rr(jbe);mW.setAppElement("#root");function o3({className:t,overlayClassName:e,isOpen:n,size:r,onAfterOpen:o,onAfterClose:i,onRequestClose:s,closeFromOutside:u,children:l}){let c=t!==null?`${t} `:"";switch(r){case"large":c+="raw-modal__large ";break;case"medium":c+="raw-modal__medium ";break;case"small":default:c+="raw-modal__small "}f.useEffect(()=>{uo.setIsRawModalVisible(n)},[n]);const d=e!==null?`${e} `:"";return a.jsx(mW,{className:`${c}raw-modal`,overlayClassName:`${d}raw-modal__overlay`,isOpen:n,onAfterOpen:o,onAfterClose:i,onRequestClose:s,shouldCloseOnEsc:u,shouldCloseOnOverlayClick:u,shouldReturnFocusAfterClose:!1,children:l})}o3.defaultProps={className:null,overlayClassName:null,size:"small",onAfterOpen:null,onAfterClose:null,onRequestClose:null,closeFromOutside:!0},o3.propTypes={className:fe.string,overlayClassName:fe.string,isOpen:fe.bool.isRequired,size:fe.oneOf(["large","medium","small"]),onAfterOpen:fe.func,onAfterClose:fe.func,onRequestClose:fe.func,closeFromOutside:fe.bool,children:fe.node.isRequired};const Bbe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cg%3e%3cpolygon%20points='14.8,4.2%2016.2,5.6%209.8,12%2016.2,18.4%2014.8,19.8%207,12%20'/%3e%3c/g%3e%3c/svg%3e";fe.bool,fe.oneOf(["surface","caution","danger"]),fe.string,fe.oneOf(["button","submit"]),fe.func.isRequired,fe.string.isRequired;function sS({className:t,isOpen:e,title:n,contentTitle:r,drawer:o,drawerOptions:i,contentOptions:s,onAfterClose:u,onRequestClose:l,children:c}){const d=o!==null,F=r!==null?r:n;return a.jsx(o3,{className:`${t===null?"":`${t} `}pw-modal`,overlayClassName:"pw-modal__overlay",isOpen:e,onAfterClose:u,onRequestClose:l,size:d?"large":"medium",children:a.jsxs("div",{className:"pw",children:[d&&a.jsxs("div",{className:"pw__drawer",children:[a.jsxs(ZC,{children:[a.jsx(Ja,{size:"small",src:Bbe,onClick:l,tooltip:"Back"}),a.jsx(JC,{children:typeof n=="string"?a.jsx(Wt,{variant:"s1",weight:"medium",primary:!0,children:n}):n}),i]}),a.jsx("div",{className:"pw__drawer__content__wrapper",children:a.jsx(Sh,{invisible:!0,children:a.jsx("div",{className:"pw__drawer__content",children:o})})})]}),a.jsxs("div",{className:"pw__content",children:[a.jsxs(ZC,{children:[a.jsx(JC,{children:typeof F=="string"?a.jsx(Wt,{variant:"h2",weight:"medium",primary:!0,children:F}):F}),s]}),a.jsx("div",{className:"pw__content__wrapper",children:a.jsx(Sh,{autoHide:!0,children:a.jsx("div",{className:"pw__content-container",children:c})})})]})]})})}sS.defaultProps={className:null,drawer:null,contentTitle:null,drawerOptions:null,contentOptions:null,onAfterClose:null,onRequestClose:null},sS.propTypes={className:fe.string,isOpen:fe.bool.isRequired,title:fe.node.isRequired,contentTitle:fe.node,drawer:fe.node,drawerOptions:fe.node,contentOptions:fe.node,onAfterClose:fe.func,onRequestClose:fe.func,children:fe.node.isRequired};function Abe(t){let e=0,n,r;if(t.length===0)return e;for(n=0;n<t.length;n+=1)r=t.charCodeAt(n),e=(e<<5)-e+r,e|=0;return Math.abs(e)}function Tbe(t){return`--mx-uc-${Abe(t)%8+1}`}function Vs(t){return`var(${Tbe(t)})`}const Ibe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpolygon%20fill='%237F7F7F'%20points='20,7%2020,5%2018,5%2018,7%2016,7%2016,5%2018,5%2018,3%2016,3%2016,2%203,2%203,22%2011,22%2011,20%2019,12%2021,12%2021,7%20'/%3e%3cpolygon%20fill='%237F7F7F'%20points='19,16%2021,16%2021,22%2015,22%2015,20%2019,20%20'/%3e%3c/g%3e%3cpolygon%20fill='%236FBEFF'%20points='19,9%2014,9%2014,4%205,4%205,20%2011,20%2013,20%2013,18%2015,18%2015,16%2017,16%2017,14%2019,14%20'/%3e%3cpolygon%20fill='%23FFFFFF'%20points='7,10%2012,10%2012,8%2010,8%2010,7%208,7%208,8%207,8%20'/%3e%3cg%3e%3crect%20x='17'%20y='18'%20fill='%2300C72C'%20width='2'%20height='2'/%3e%3cpolygon%20fill='%2300C72C'%20points='5,20%205,18%207,18%207,16%209,16%209,14%2011,14%2011,12%2013,12%2013,14%2015,14%2015,18%2013,18%2013,20%20'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";function Rbe(t){const e=["Bytes","KB","MB","GB","TB"];if(t===0)return"n/a";const n=parseInt(Math.floor(Math.log(t)/Math.log(1024)),10);return n===0?`${t} ${e[n]}`:`${(t/1024**n).toFixed(1)} ${e[n]}`}function DW(t,e){let n;const r=t.nativeEvent.composedPath().find(o=>{var i;return(i=o.matches)==null?void 0:i.call(o,e)});return r?n=r.getBoundingClientRect():n=t.target.getBoundingClientRect(),{x:n.x,y:n.y,width:n.width,height:n.height,detail:t.detail}}class Obe{constructor(){this.timeoutId=null}_(e,n){const r=this;return function(...o){clearTimeout(r.timeoutId),r.timeoutId=setTimeout(()=>{e.apply(this,o),r.timeoutId=null},n)}}}function Mbe(t){return[...t][0]}function Pbe(t){if(navigator.clipboard)navigator.clipboard.writeText(t);else{const e=document.body,n=document.createElement("input");n.style.position="fixed",n.style.opacity="0",n.value=t,e.append(n),n.select(),n.setSelectionRange(0,99999),document.execCommand("Copy"),n.remove()}}const i3=ft.forwardRef(({text:t,bgColor:e,iconSrc:n,iconColor:r,imageSrc:o,size:i},s)=>{let u="s1";return i==="large"&&(u="h1"),i==="small"&&(u="b1"),i==="extra-small"&&(u="b3"),a.jsx("div",{ref:s,className:`avatar-container avatar-container__${i} noselect`,children:o!==null?a.jsx("img",{draggable:"false",src:o,onLoad:l=>{l.target.style.backgroundColor="transparent"},onError:l=>{l.target.src=Ibe},alt:""}):a.jsx("span",{style:{backgroundColor:n===null?e:"transparent"},className:`avatar__border${n!==null?"--active":""}`,children:n!==null?a.jsx(Yl,{size:i,src:n,color:r}):t!==null&&a.jsx(Wt,{variant:u,primary:!0,children:Mbe(t)})})})});i3.defaultProps={text:null,bgColor:"transparent",iconSrc:null,iconColor:null,imageSrc:null,size:"normal"},i3.propTypes={text:fe.string,bgColor:fe.string,iconSrc:fe.string,iconColor:fe.string,imageSrc:fe.string,size:fe.oneOf(["large","normal","small","extra-small"])};function uS({avatarSrc:t,name:e,id:n,inviterName:r,memberCount:o,desc:i,options:s}){return a.jsxs("div",{className:"room-tile",children:[a.jsx("div",{className:"room-tile__avatar",children:a.jsx(i3,{imageSrc:t,bgColor:Vs(n),text:e})}),a.jsxs("div",{className:"room-tile__content",children:[a.jsx(Wt,{variant:"s1",children:e}),a.jsx(Wt,{variant:"b3",children:r!==null?`Invited by ${r} to ${n}${o===null?"":` \u2022 ${o} members`}`:n+(o===null?"":` \u2022 ${o} members`)}),i!==null&&typeof i=="string"?a.jsx(Wt,{className:"room-tile__content__desc",variant:"b2",children:i}):i]}),s!==null&&a.jsx("div",{className:"room-tile__options",children:s})]})}uS.defaultProps={avatarSrc:null,inviterName:null,options:null,desc:null,memberCount:null},uS.propTypes={avatarSrc:fe.string,name:fe.string.isRequired,id:fe.string.isRequired,inviterName:fe.string,memberCount:fe.oneOfType([fe.string,fe.number]),desc:fe.node,options:fe.node};const xd="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cpolygon%20points='17.7,16.2%2013.4,12%2017.7,7.8%2016.2,6.3%2012,10.6%207.8,6.3%206.3,7.8%2010.6,12%206.3,16.2%207.8,17.7%2012,13.4%2016.2,17.7%20'/%3e%3c/svg%3e",Lbe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M12,11c2.2,0,4-1.8,4-4s-1.8-4-4-4S8,4.8,8,7S9.8,11,12,11z%20M12,5c1.1,0,2,0.9,2,2s-0.9,2-2,2s-2-0.9-2-2S10.9,5,12,5z'/%3e%3cpath%20d='M14,13h-4c-3.3,0-6,2.7-6,6v2h16v-2C20,15.7,17.3,13,14,13z%20M6,19c0-2.2,1.8-4,4-4h4c2.2,0,4,1.8,4,4H6z'/%3e%3c/g%3e%3c/svg%3e",Em=Bn(new Map),lo=Bn(t=>t(Em),(t,e,n)=>{if(n.type==="INITIALIZE"){e(Em,n.roomToParents);return}if(n.type==="PUT"){e(Em,po(t(Em),r=>{hH(r,n.parent,n.children)}));return}n.type==="DELETE"&&e(Em,po(t(Em),r=>{const o=[];r.delete(n.roomId),r.forEach((i,s)=>{i.delete(n.roomId),i.size===0&&o.push(s)}),o.forEach(i=>r.delete(i))}))}),Nbe=(t,e)=>{const n=Di(e);f.useEffect(()=>{n({type:"INITIALIZE",roomToParents:lfe(t)});const r=u=>{ql(u)&&u.getMyMembership()!==$n.Invite&&n({type:"PUT",parent:u.roomId,children:FC(u)})},o=(u,l)=>{if(ql(u)&&u.getMyMembership()===$n.Leave){n({type:"DELETE",roomId:u.roomId});return}ql(u)&&l===$n.Join&&n({type:"PUT",parent:u.roomId,children:FC(u)})},i=u=>{if(u.getType()===Re.SpaceChild){const l=u.getStateKey(),c=u.getRoomId();l&&c&&(wf(u)?n({type:"PUT",parent:c,children:[l]}):n({type:"DELETE",roomId:l}))}},s=u=>{n({type:"DELETE",roomId:u})};return t.on(st.Room,r),t.on(Ke.MyMembership,o),t.on(Zt.Events,i),t.on(st.DeleteRoom,s),()=>{t.removeListener(st.Room,r),t.removeListener(Ke.MyMembership,o),t.removeListener(Zt.Events,i),t.removeListener(st.DeleteRoom,s)}},[t,n])},gW=Bn(new Set),Co=Bn(t=>t(gW),(t,e,n)=>{e(gW,n.rooms)}),zbe=(t,e)=>{const n=Di(e);f.useEffect(()=>{const r=_d(t,tr.Direct);r&&n({type:"INITIALIZE",rooms:cH(r)});const o=i=>{i.getType()===tr.Direct&&n({type:"UPDATE",rooms:cH(i)})};return t.on(st.AccountData,o),()=>{t.removeListener(st.AccountData,o)}},[t,n])},lS=()=>{const t=ge(),{spaceIdOrAlias:e}=uu();return e&&Rs(e)?jf(t,e):e},Ube=t=>!!gi({path:bC(t),caseSensitive:!0,end:!1}),Vbe=t=>!!gi({path:d7(t),caseSensitive:!0,end:!1}),pW="settings";var Fr=(t=>(t[t.Modern=0]="Modern",t[t.Compact=1]="Compact",t[t.Bubble=2]="Bubble",t))(Fr||{});const fW={themeId:void 0,useSystemTheme:!0,lightThemeId:void 0,darkThemeId:void 0,isMarkdown:!0,editorToolbar:!1,twitterEmoji:!1,pageZoom:100,hideActivity:!1,isPeopleDrawer:!0,memberSortFilterIndex:0,enterForNewline:!1,messageLayout:0,messageSpacing:"400",hideMembershipEvents:!1,hideNickAvatarEvents:!0,mediaAutoLoad:!0,urlPreview:!0,encUrlPreview:!1,showHiddenEvents:!1,legacyUsernameColor:!1,showNotifications:!0,isNotificationSounds:!0,developerTools:!1},qbe=()=>{const t=localStorage.getItem(pW);return t===null?fW:{...fW,...JSON.parse(t)}},Hbe=t=>{localStorage.setItem(pW,JSON.stringify(t))},_W=Bn(qbe()),ut=Bn(t=>t(_W),(t,e,n)=>{e(_W,n),Hbe(n)});function rE(t,e){let n=null;const r=new Map,o=i=>{let s;if(s=r.get(i),s!==void 0)if(n!=null&&n(s[1],i))o.remove(i);else return s[0];const u=t(i);return r.set(i,[u,Date.now()]),u};return o.remove=i=>{r.delete(i)},o.setShouldRemove=i=>{if(n=i,!!n)for(const[s,u]of r)n(u[1],s)&&r.delete(s)},o}const cS=(t,e,n)=>(e.has(n)?e:e.set(n,t())).get(n),$be=new WeakMap,Wbe=(t,e,n,r)=>{const o=cS(()=>new WeakMap,$be,e),i=cS(()=>new WeakMap,o,n);return cS(t,i,r)};function a3(t,e,n=Object.is){return Wbe(()=>{const r=Symbol(),o=([s,u])=>{if(u===r)return e(s);const l=e(s,u);return n(u,l)?u:l},i=Bn(s=>{const u=s(i),l=s(t);return l instanceof Promise||u instanceof Promise?Promise.all([l,u]).then(o):o([l,u])});return i.init=r,i},t,e,n)}const oE=(t,e)=>{const n=f.useMemo(()=>Bn(null,(r,o,i)=>{const s={...r(t)};s[e]=typeof i=="function"?i(s[e]):i,o(t,s)}),[t,e]);return Di(n)},Ft=(t,e)=>{const n=f.useMemo(()=>i=>i[e],[e]),r=_t(a3(t,n)),o=oE(t,e);return[r,o]},Mo=()=>{const t=Xr(),e=ge(),n=_t(lo),r=_t(Co),o=lS(),[i]=Ft(ut,"developerTools"),s=f.useCallback(l=>{const c=vo(e,l);t(c7(c))},[e,t]),u=f.useCallback((l,c,d)=>{const F=vo(e,l),h=i&&o===l,m=h?[l]:cfe(n,l);if(m.length>0){const D=vo(e,o&&m.includes(o)?o:m[0]);if(h){t(CC(D,l,c),d);return}t(CC(D,F,c),d);return}if(r.has(l)){t(l7(F,c),d);return}t(u7(F,c),d)},[e,t,o,n,r,i]);return{navigateSpace:s,navigateRoom:u}},Tt=()=>{const{versions:t,unstable_features:e}=zN();return(e==null?void 0:e["org.matrix.msc3916.stable"])||t.includes("v1.11")};function dS({isOpen:t,roomId:e,searchTerm:n,onRequestClose:r}){const[o,i]=f.useState(!1),[s,u]=f.useState({}),[l,c]=f.useState([]),d=Tt(),[F,h]=f.useState(new Set),[m,D]=f.useState(new Map),[g,p]=f.useState(new Map),[_,v]=f.useState(new Map),[E,b]=f.useState(new Set),k=f.useRef(null),C=ge(),{navigateRoom:S}=Mo();function w(P){const L=new Map;return P.forEach((U,te)=>{L.set(te,U)}),L}function A(P){F.add(P),h(new Set(Array.from(F)))}function O(P){F.delete(P),h(new Set(Array.from(F)))}function j(P){const L=_.get(P);typeof L>"u"||(g.set(L,P),_.delete(P),O(L),p(w(g)),v(w(_)))}async function R(P){const L=P.trim();if(o||L===""||L===s.username)return;const U=L[0]==="@"&&L.indexOf(":")>1;if(i(!0),u({username:L}),U)try{const te=await C.getProfileInfo(L);c([{user_id:L,display_name:te.displayname,avatar_url:te.avatar_url}])}catch{u({error:`${L} not found!`})}else try{const te=await C.searchUserDirectory({term:L,limit:20});if(te.results.length===0){u({error:`No matches found for "${L}"!`}),i(!1);return}c(te.results)}catch{u({error:"Something went wrong!"})}i(!1)}async function M(P){var U;if(C.getUserId()===P)return;const L=(U=fC(C,P))==null?void 0:U.roomId;if(L){S(L),r();return}try{A(P),m.delete(P),D(w(m));const te=await j7(C,P,await S7(C,P));_.set(te.room_id,P),v(w(_)),j(te.room_id)}catch(te){O(P),typeof te.message=="string"?m.set(P,te.message):m.set(P,"Something went wrong!"),D(w(m))}}async function z(P){if(!(typeof e>"u"))try{A(P),m.delete(P),D(w(m)),await C.invite(e,P),E.add(P),b(new Set(Array.from(E))),O(P)}catch(L){O(P),typeof L.message=="string"?m.set(P,L.message):m.set(P,"Something went wrong!"),D(w(m))}}function T(){const P=U=>{const te=(ae,Fe)=>a.jsx(Wt,{variant:"b2",children:a.jsx("span",{style:{color:Fe?"var(--bg-positive)":"var(--bg-negative)"},children:ae})});if(C.getUserId()===U)return null;if(F.has(U))return a.jsx(kh,{size:"small"});if(g.has(U))return a.jsx(bo,{onClick:()=>{S(g.get(U)),r()},children:"Open"});if(E.has(U))return te("Invited",!0);if(typeof e=="string"){const ae=C.getRoom(e).getMember(U);if(ae!==null)switch(ae.membership){case"join":return te("Already joined",!0);case"invite":return te("Already Invited",!0);case"ban":return te("Banned",!1)}}return typeof e=="string"?a.jsx(bo,{onClick:()=>z(U),variant:"primary",children:"Invite"}):a.jsx(bo,{onClick:()=>M(U),variant:"primary",children:"Message"})},L=U=>m.has(U)?a.jsx(Wt,{variant:"b2",children:a.jsx("span",{style:{color:"var(--bg-danger)"},children:m.get(U)})}):null;return l.map(U=>{const te=U.user_id,ae=typeof U.display_name=="string"?U.display_name:te;return a.jsx(uS,{avatarSrc:typeof U.avatar_url=="string"?C.mxcUrlToHttp(U.avatar_url,42,42,"crop",void 0,void 0,d):null,name:ae,id:te,options:P(te),desc:L(te)},te)})}return f.useEffect(()=>(t&&typeof n=="string"&&R(n),()=>{i(!1),u({}),c([]),h(new Set),D(new Map),p(new Map),v(new Map),b(new Set)}),[t,n]),a.jsx(sS,{isOpen:t,title:typeof e=="string"?`Invite to ${C.getRoom(e).name}`:"Direct message",contentOptions:a.jsx(Ja,{src:xd,onClick:r,tooltip:"Close"}),onRequestClose:r,children:a.jsxs("div",{className:"invite-user",children:[a.jsxs("form",{className:"invite-user__form",onSubmit:P=>{P.preventDefault(),R(k.current.value)},children:[a.jsx(Ps,{value:n,forwardRef:k,label:"Name or userId"}),a.jsx(bo,{disabled:o,iconSrc:Lbe,variant:"primary",type:"submit",children:"Search"})]}),a.jsxs("div",{className:"invite-user__search-status",children:[typeof s.username<"u"&&o&&a.jsxs("div",{className:"flex--center",children:[a.jsx(kh,{size:"small"}),a.jsx(Wt,{variant:"b2",children:`Searching for user "${s.username}"...`})]}),typeof s.username<"u"&&!o&&a.jsx(Wt,{variant:"b2",children:`Search result for user "${s.username}"`}),s.error&&a.jsx(Wt,{className:"invite-user__search-error",variant:"b2",children:s.error})]}),l.length!==0&&a.jsx("div",{className:"invite-user__content",children:T()})]})})}dS.defaultProps={roomId:void 0,searchTerm:void 0},dS.propTypes={isOpen:fe.bool.isRequired,roomId:fe.string,searchTerm:fe.string,onRequestClose:fe.func.isRequired};function Kbe(){const[t,e]=f.useState({isOpen:!1,roomId:void 0,term:void 0});function n(r,o){e({isOpen:!0,roomId:r,searchTerm:o})}return f.useEffect(()=>(uo.on(Lt.events.navigation.INVITE_USER_OPENED,n),()=>{uo.removeListener(Lt.events.navigation.INVITE_USER_OPENED,n)}),[]),a.jsx(dS,{isOpen:t.isOpen,roomId:t.roomId,searchTerm:t.searchTerm,onRequestClose:()=>e({isOpen:!1,roomId:void 0})})}function vW(t,e=!1){Gl.dispatch({type:Lt.actions.navigation.OPEN_SPACE_ADDEXISTING,roomId:t,spaces:e})}function s3(t=!1,e=null){Gl.dispatch({type:Lt.actions.navigation.OPEN_CREATE_ROOM,isSpace:t,parentId:e})}function bW(t){Gl.dispatch({type:Lt.actions.navigation.OPEN_JOIN_ALIAS,term:t})}function Au(t,e){Gl.dispatch({type:Lt.actions.navigation.OPEN_INVITE_USER,roomId:t,searchTerm:e})}function ym(t,e){Gl.dispatch({type:Lt.actions.navigation.OPEN_PROFILE_VIEWER,userId:t,roomId:e})}function CW(t){Gl.dispatch({type:Lt.actions.navigation.OPEN_SEARCH,term:t})}function EW(t,e,n,r){Gl.dispatch({type:Lt.actions.navigation.OPEN_REUSABLE_CONTEXT_MENU,placement:t,cords:e,render:n,afterClose:r})}function Gbe(t,e,n){Gl.dispatch({type:Lt.actions.navigation.OPEN_REUSABLE_DIALOG,title:t,render:e,afterClose:n})}function hS({iconSrc:t,iconColor:e,text:n,children:r,onClick:o}){return a.jsxs("button",{className:"chip",type:"button",onClick:o,children:[t!=null&&a.jsx(Yl,{src:t,color:e,size:"extra-small"}),n!=null&&n!==""&&a.jsx(Wt,{variant:"b3",children:n}),r]})}hS.propTypes={iconSrc:fe.string,iconColor:fe.string,text:fe.string,children:fe.element,onClick:fe.func},hS.defaultProps={iconSrc:null,iconColor:null,text:null,children:null,onClick:null};const Ybe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cpolygon%20points='9.5,14.1%206,10.6%204.6,12%208.1,15.5%209.5,16.9%2019.4,7%2018,5.6%20'/%3e%3c/svg%3e";function yW({value:t,max:e,onSelect:n}){const r=o=>{var s;const i=(s=o.target.elements["power-level"])==null?void 0:s.value;i&&n(Number(i))};return a.jsxs("div",{className:"power-level-selector",children:[a.jsx(YC,{children:"Power level selector"}),a.jsxs("form",{onSubmit:o=>{o.preventDefault(),r(o)},children:[a.jsx("input",{className:"input",defaultValue:t,type:"number",name:"power-level",placeholder:"Power level",max:e,autoComplete:"off",required:!0}),a.jsx(Ja,{variant:"primary",src:Ybe,type:"submit"})]}),e>=0&&a.jsx(YC,{children:"Presets"}),e>=100&&a.jsx(jh,{variant:t===100?"positive":"surface",onClick:()=>n(100),children:"Admin - 100"}),e>=50&&a.jsx(jh,{variant:t===50?"positive":"surface",onClick:()=>n(50),children:"Mod - 50"}),e>=0&&a.jsx(jh,{variant:t===0?"positive":"surface",onClick:()=>n(0),children:"Member - 0"})]})}yW.propTypes={value:fe.number.isRequired,max:fe.number.isRequired,onSelect:fe.func.isRequired};function Ih({className:t,isOpen:e,title:n,onAfterOpen:r,onAfterClose:o,contentOptions:i,onRequestClose:s,closeFromOutside:u,children:l,invisibleScroll:c}){return a.jsx(o3,{className:`${t===null?"":`${t} `}dialog-modal`,isOpen:e,onAfterOpen:r,onAfterClose:o,onRequestClose:s,closeFromOutside:u,size:"small",children:a.jsx("div",{className:"dialog",children:a.jsxs("div",{className:"dialog__content",children:[a.jsxs(ZC,{children:[a.jsx(JC,{children:typeof n=="string"?a.jsx(Wt,{variant:"h2",weight:"medium",primary:!0,children:n}):n}),i]}),a.jsx("div",{className:"dialog__content__wrapper",children:a.jsx(Sh,{autoHide:!c,invisible:c,children:a.jsx("div",{className:"dialog__content-container",children:l})})})]})})})}Ih.defaultProps={className:null,contentOptions:null,onAfterOpen:null,onAfterClose:null,onRequestClose:null,closeFromOutside:!0,invisibleScroll:!1},Ih.propTypes={className:fe.string,isOpen:fe.bool.isRequired,title:fe.node.isRequired,contentOptions:fe.node,onAfterOpen:fe.func,onAfterClose:fe.func,onRequestClose:fe.func,closeFromOutside:fe.bool,children:fe.node.isRequired,invisibleScroll:fe.bool};const Zbe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cpath%20d='M12,2L3,6v7c0,5,4,9,9,9c5,0,9-4,9-9V6L12,2z%20M19,13c0,3.9-3.1,7-7,7s-7-3.1-7-7V7.3l7-3.1l7,3.1V13z'/%3e%3c/svg%3e",Jbe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cg%3e%3cpolygon%20points='9.2,4.2%207.8,5.6%2014.2,12%207.8,18.4%209.2,19.8%2017,12%20'/%3e%3c/g%3e%3c/svg%3e",FS="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cg%3e%3cpolygon%20points='4.2,9.2%205.6,7.8%2012,14.2%2018.4,7.8%2019.8,9.2%2012,17%20'/%3e%3c/g%3e%3c/svg%3e";function xW(){const[t,e]=f.useState(null);return[t,function(){e({})}]}function wW({desc:t,actionTitle:e,actionType:n,onComplete:r}){return a.jsxs("div",{className:"confirm-dialog",children:[a.jsx(Wt,{children:t}),a.jsxs("div",{className:"confirm-dialog__btn",children:[a.jsx(bo,{variant:n,onClick:()=>r(!0),children:e}),a.jsx(bo,{onClick:()=>r(!1),children:"Cancel"})]})]})}wW.propTypes={desc:fe.string.isRequired,actionTitle:fe.string.isRequired,actionType:fe.oneOf(["primary","positive","danger","caution"]).isRequired,onComplete:fe.func.isRequired};const Xbe=(t,e,n,r="primary")=>new Promise(o=>{let i=!1;Gbe(a.jsx(Wt,{variant:"s1",weight:"medium",children:t}),s=>a.jsx(wW,{desc:e,actionTitle:n,actionType:r,onComplete:u=>{i=!0,o(u),s()}}),()=>{i||o(!1)})});function kW({roomId:t,userId:e}){var h;const n=ge(),r=n.getRoom(t),o=r.getMember(e),i=((h=r.getMember(n.getUserId()))==null?void 0:h.powerLevel)||0,s=(o==null?void 0:o.powerLevel)||0,u=r.getLiveTimeline().getState(it.FORWARDS),l=(o==null?void 0:o.membership)==="join"&&(u==null?void 0:u.hasSufficientPowerLevelFor("kick",i))&&s<i,c=["join","leave"].includes(o==null?void 0:o.membership)&&(u==null?void 0:u.hasSufficientPowerLevelFor("ban",i))&&s<i,d=m=>{var g;m.preventDefault();const D=(g=m.target.elements["kick-reason"])==null?void 0:g.value.trim();n.kick(t,e,D!==""?D:void 0)},F=m=>{var g;m.preventDefault();const D=(g=m.target.elements["ban-reason"])==null?void 0:g.value.trim();n.ban(t,e,D!==""?D:void 0)};return a.jsxs("div",{className:"moderation-tools",children:[l&&a.jsxs("form",{onSubmit:d,children:[a.jsx(Ps,{label:"Kick reason",name:"kick-reason"}),a.jsx(bo,{type:"submit",children:"Kick"})]}),c&&a.jsxs("form",{onSubmit:F,children:[a.jsx(Ps,{label:"Ban reason",name:"ban-reason"}),a.jsx(bo,{type:"submit",children:"Ban"})]})]})}kW.propTypes={roomId:fe.string.isRequired,userId:fe.string.isRequired};function SW({userId:t}){const[e,n]=f.useState(null),[r,o]=f.useState(!1),i=ge();f.useEffect(()=>{let u=!1;async function l(){try{const c=await i.getCrypto().getUserDeviceInfo([t],!0),d=Array.from(c.get(t).values());if(u)return;n(d)}catch{n([])}}return l(),()=>{u=!0}},[i,t]);function s(){return r?a.jsxs("div",{className:"session-info__chips",children:[e===null&&a.jsx(Wt,{variant:"b2",children:"Loading sessions..."}),(e==null?void 0:e.length)===0&&a.jsx(Wt,{variant:"b2",children:"No session found."}),e!==null&&e.map(u=>a.jsx(hS,{iconSrc:Zbe,text:u.displayName||u.deviceId},u.deviceId))]}):null}return a.jsxs("div",{className:"session-info",children:[a.jsx(jh,{onClick:()=>o(!r),iconSrc:r?FS:Jbe,children:a.jsx(Wt,{variant:"b2",children:`View ${(e==null?void 0:e.length)>0?`${e.length} ${e.length===1?"session":"sessions"}`:"sessions"}`})}),s()]})}SW.propTypes={userId:fe.string.isRequired};function jW({roomId:t,userId:e,onRequestClose:n}){var j,R,M;const[r,o]=f.useState(!1),[i,s]=f.useState(!1),u=ge(),[l,c]=f.useState(u.isUserIgnored(e)),d=f.useRef(!0),{navigateRoom:F}=Mo(),h=u.getRoom(t),m=h.getMember(e),D=(m==null?void 0:m.membership)!=="join"&&(m==null?void 0:m.membership)!=="ban",[g,p]=f.useState(!1),[_,v]=f.useState((m==null?void 0:m.membership)==="invite"),E=((j=h.getMember(u.getUserId()))==null?void 0:j.powerLevel)||0,b=((R=h.getMember(e))==null?void 0:R.powerLevel)||0,k=((M=h.getLiveTimeline().getState(it.FORWARDS))==null?void 0:M.hasSufficientPowerLevelFor("kick",E))&&b<E,C=(m==null?void 0:m.membership)==="ban",S=z=>{d.current!==!1&&(o(!1),F(z),n())};f.useEffect(()=>{c(u.isUserIgnored(e)),s(!1),p(!1)},[u,e]);const w=async()=>{var T;const z=(T=fC(u,e))==null?void 0:T.roomId;if(z){F(z),n();return}try{o(!0);const P=await j7(u,e,await S7(u,e));S(P.room_id)}catch{if(d.current===!1)return;o(!1)}},A=async()=>{const z=u.getIgnoredUsers().includes(e);try{if(s(!0),z?await a$(u,[e]):await i$(u,[e]),d.current===!1)return;c(!z),s(!1)}catch{s(!1)}},O=async()=>{try{p(!0);let z=!1;if(_?await u.kick(t,e):(await u.invite(t,e),z=!0),d.current===!1)return;v(z),p(!1)}catch{p(!1)}};return a.jsxs("div",{className:"profile-viewer__buttons",children:[a.jsx(bo,{variant:"primary",onClick:w,disabled:r,children:r?"Creating room...":"Message"}),C&&k&&a.jsx(bo,{variant:"positive",onClick:()=>u.unban(t,e),children:"Unban"}),(_?k:h.canInvite(u.getUserId()))&&D&&a.jsx(bo,{onClick:O,disabled:g,children:_?`${g?"Disinviting...":"Disinvite"}`:`${g?"Inviting...":"Invite"}`}),a.jsx(bo,{variant:l?"positive":"danger",onClick:A,disabled:i,children:l?`${i?"Unignoring...":"Unignore"}`:`${i?"Ignoring...":"Ignore"}`})]})}jW.propTypes={roomId:fe.string.isRequired,userId:fe.string.isRequired,onRequestClose:fe.func.isRequired};function Qbe(){const[t,e]=f.useState(!1),[n,r]=f.useState(null),[o,i]=f.useState(null);return f.useEffect(()=>{const s=(u,l)=>{e(!0),i(u),r(l)};return uo.on(Lt.events.navigation.PROFILE_VIEWER_OPENED,s),()=>{uo.removeListener(Lt.events.navigation.PROFILE_VIEWER_OPENED,s)}},[]),[t,n,o,()=>e(!1),()=>{i(null),r(null)}]}function eCe(t,e){const n=ge(),[,r]=xW();f.useEffect(()=>{const o=(i,s)=>{i.getRoomId()===t&&(s.userId===e||s.userId===n.getUserId())&&r()};return n.on("RoomMember.powerLevel",o),n.on("RoomMember.membership",o),()=>{n.removeListener("RoomMember.powerLevel",o),n.removeListener("RoomMember.membership",o)}},[n,t,e])}function tCe(){const[t,e,n,r,o]=Qbe();eCe(e,n);const i=Tt(),s=ge(),u=s.getRoom(e),l=()=>{var v,E,b,k;const c=u.getMember(n),d=c?E_e(c):C_e(s,n),F=((v=c==null?void 0:c.getMxcAvatarUrl)==null?void 0:v.call(c))||((E=s.getUser(n))==null?void 0:E.avatarUrl),h=F&&F!=="null"?s.mxcUrlToHttp(F,80,80,"crop",void 0,void 0,i):null,m=(c==null?void 0:c.powerLevel)||0,D=((b=u.getMember(s.getUserId()))==null?void 0:b.powerLevel)||0,g=((k=u.getLiveTimeline().getState(it.FORWARDS))==null?void 0:k.maySendEvent("m.room.power_levels",s.getUserId()))&&(m<D||n===s.getUserId()),p=async C=>{if(C===m)return;const S="You will not be able to undo this change as you are promoting the user to have the same power level as yourself. Are you sure?",w="You will not be able to undo this change as you are demoting yourself. Are you sure?",A=C===D,O=n===s.getUserId();if(A||O){if(!await Xbe("Change power level",A?S:w,"Change","caution"))return;s$(s,e,n,C)}else s$(s,e,n,C)},_=C=>{EW("bottom",DW(C,".btn-surface"),S=>a.jsx(yW,{value:m,max:D,onSelect:w=>{S(),p(w)}}))};return a.jsxs("div",{className:"profile-viewer",children:[a.jsxs("div",{className:"profile-viewer__user",children:[a.jsx(i3,{imageSrc:h,text:d,bgColor:Vs(n),size:"large"}),a.jsxs("div",{className:"profile-viewer__user__info",children:[a.jsx(Wt,{variant:"s1",weight:"medium",children:d}),a.jsx(Wt,{variant:"b2",children:n})]}),a.jsxs("div",{className:"profile-viewer__user__role",children:[a.jsx(Wt,{variant:"b3",children:"Role"}),a.jsx(bo,{onClick:g?_:null,iconSrc:g?FS:null,children:`${x_e(m)||"Member"} - ${m}`})]})]}),a.jsx(kW,{roomId:e,userId:n}),a.jsx(SW,{userId:n}),n!==s.getUserId()&&a.jsx(jW,{roomId:e,userId:n,onRequestClose:r})]})};return a.jsx(Ih,{className:"profile-viewer__dialog",isOpen:t,title:(u==null?void 0:u.name)??"",onAfterClose:o,onRequestClose:r,contentOptions:a.jsx(Ja,{src:xd,onClick:r,tooltip:"Close"}),children:e?l():a.jsx("div",{})})}function mS({variant:t,isActive:e,onToggle:n,disabled:r,tabIndex:o}){const i=`checkbox checkbox-${t}${e?" checkbox--active":""}`;return n===null?a.jsx("span",{className:i}):a.jsx("button",{onClick:()=>n(!e),className:i,type:"button",disabled:r,tabIndex:o})}mS.defaultProps={variant:"primary",isActive:!1,onToggle:null,disabled:!1,tabIndex:0},mS.propTypes={variant:fe.oneOf(["primary","positive","caution","danger"]),isActive:fe.bool,onToggle:fe.func,disabled:fe.bool,tabIndex:fe.number};function DS({alert:t,content:e}){const n=t?" notification-badge--alert":"";return a.jsx("div",{className:`notification-badge${n}`,children:e!==null&&a.jsx(Wt,{variant:"b3",weight:"bold",children:e})})}DS.defaultProps={alert:!1,content:null},DS.propTypes={alert:fe.bool,content:fe.oneOfType([fe.string,fe.number])};function gS({isSelected:t,isMuted:e,isUnread:n,onClick:r,content:o,options:i,onContextMenu:s}){const u=["room-selector"];return e&&u.push("room-selector--muted"),n&&u.push("room-selector--unread"),t&&u.push("room-selector--selected"),a.jsxs("div",{className:u.join(" "),children:[a.jsx("button",{className:"room-selector__content",type:"button",onClick:r,onMouseUp:l=>Uf(l,".room-selector__content"),onContextMenu:s,children:o}),a.jsx("div",{className:"room-selector__options",children:i})]})}gS.defaultProps={isMuted:!1,options:null,onContextMenu:null},gS.propTypes={isSelected:fe.bool.isRequired,isMuted:fe.bool,isUnread:fe.bool.isRequired,onClick:fe.func.isRequired,content:fe.node.isRequired,options:fe.node,onContextMenu:fe.func};function iE({name:t,parentName:e,roomId:n,imageSrc:r,iconSrc:o,isSelected:i,isMuted:s,isUnread:u,notificationCount:l,isAlert:c,options:d,onClick:F,onContextMenu:h}){return a.jsx(gS,{isSelected:i,isMuted:s,isUnread:u,content:a.jsxs(a.Fragment,{children:[a.jsx(i3,{text:t,bgColor:Vs(n),imageSrc:r,iconColor:"var(--ic-surface-low)",iconSrc:o,size:"extra-small"}),a.jsxs(Wt,{variant:"b1",weight:u?"medium":"normal",children:[t,e&&a.jsxs(Wt,{variant:"b3",span:!0,children:[" \u2014 ",e]})]}),u&&a.jsx(DS,{alert:c,content:l!==0?l:null})]}),options:d,onClick:F,onContextMenu:h})}iE.defaultProps={parentName:null,isSelected:!1,imageSrc:null,iconSrc:null,isMuted:!1,options:null,onContextMenu:null},iE.propTypes={name:fe.string.isRequired,parentName:fe.string,roomId:fe.string.isRequired,imageSrc:fe.string,iconSrc:fe.string,isSelected:fe.bool,isMuted:fe.bool,isUnread:fe.bool.isRequired,notificationCount:fe.oneOfType([fe.string,fe.number]).isRequired,isAlert:fe.bool.isRequired,options:fe.node,onClick:fe.func.isRequired,onContextMenu:fe.func};const BW="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cpath%20d='M21.7,20.3l-5.4-5.4c1.1-1.4,1.7-3.1,1.7-4.9c0-4.4-3.6-8-8-8s-8,3.6-8,8s3.6,8,8,8c1.8,0,3.5-0.6,4.9-1.7l5.4,5.4%20L21.7,20.3z%20M10,16c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S13.3,16,10,16z'/%3e%3c/svg%3e";function nCe(...t){const e=f.useRef(null),n=()=>e.current,r=o=>(e.current=o,e.current);return f.useEffect(()=>(e.current=null,()=>{e.current=null}),t),{getItem:n,setItem:r}}const AW=(t,e,n)=>{const r=Di(e);f.useEffect(()=>{const o=l=>!!n.find(c=>c===l.getMyMembership());r({type:"INITIALIZE",rooms:t.getRooms().filter(o).map(l=>l.roomId)});const i=l=>{o(l)&&r({type:"PUT",roomId:l.roomId})},s=l=>{o(l)?r({type:"PUT",roomId:l.roomId}):r({type:"DELETE",roomId:l.roomId})},u=l=>{r({type:"DELETE",roomId:l})};return t.on(st.Room,i),t.on(Ke.MyMembership,s),t.on(st.DeleteRoom,u),()=>{t.removeListener(st.Room,i),t.removeListener(Ke.MyMembership,s),t.removeListener(st.DeleteRoom,u)}},[t,n,r])},rCe=(t,e)=>t.length!==e.length?!1:t.every((n,r)=>n===e[r]),oCe=(t,e)=>a3(t,n=>n.filter(e),rCe),xm=(t,e)=>{const n=f.useMemo(()=>oCe(t,e),[t,e]);return _t(n)},TW=(t,e)=>f.useCallback(n=>r=>xf(t.getRoom(r))&&e.has(r)&&Wa(e,r).has(n),[t,e]),iCe=(t,e)=>f.useCallback(n=>r=>ql(t.getRoom(r))&&e.has(r)&&Wa(e,r).has(n),[t,e]),aCe=(t,e,n)=>f.useCallback(r=>o=>xf(t.getRoom(o))&&!e.has(o)&&n.has(o)&&Wa(n,o).has(r),[t,e,n]),aE=(t,e,n)=>{const r=f.useMemo(()=>n(e),[n,e]);return xm(t,r)},pS=(t,e)=>{const n=f.useCallback(r=>ql(t.getRoom(r)),[t]);return xm(e,n)},IW=(t,e,n)=>{const r=f.useCallback(o=>ql(t.getRoom(o))&&!n.has(o),[t,n]);return xm(e,r)},fS=(t,e,n)=>{const r=f.useCallback(o=>xf(t.getRoom(o))&&!n.has(o),[t,n]);return xm(e,r)},RW=(t,e,n,r)=>{const o=f.useCallback(i=>xf(t.getRoom(i))&&!n.has(i)&&!r.has(i),[t,n,r]);return xm(e,o)},sE=(t,e,n)=>{const r=f.useCallback(o=>xf(t.getRoom(o))&&n.has(o),[t,n]);return xm(e,r)},_S=Bn([]),nr=Bn(t=>t(_S),(t,e,n)=>{if(n.type==="INITIALIZE"){e(_S,n.rooms);return}e(_S,r=>{const o=r.filter(i=>i!==n.roomId);return n.type==="PUT"&&o.push(n.roomId),o})}),sCe=(t,e)=>{AW(t,e,f.useMemo(()=>[$n.Join],[]))},wd=t=>{const e=()=>{var d;const u=(d=so(t,Re.RoomPowerLevels))==null?void 0:d.getContent();if(!u)return;const l=u.users;if(!l)return;let c;return Object.keys(l).forEach(F=>{if(!(l[F]<=(u.users_default??0))){if(!c){c=F;return}l[F]>l[c]&&(c=F)}}),c},n=()=>{const u=t.getMembers(),l={};return u==null||u.forEach(c=>{const{userId:d}=c,F=xu(d);if(!F)return;const h=l[F];if(h===void 0){l[F]=1;return}l[F]=h+1}),l},r=[],o=e();if(o){const u=xu(o);u&&r.push(u)}const i=n(),s=Object.keys(i).sort((u,l)=>i[l]-i[u]).slice(0,3);return r.length===0?s:(s.includes(r[0])&&s.splice(s.indexOf(r[0]),1),r.concat(s.slice(0,2)))};function OW({roomId:t,spaces:e}){const n=yr(),[r]=f.useState(new Obe),[o,i]=f.useState(null),[s,u]=f.useState([]),[l,c]=f.useState([]),[d,F]=f.useState(null),h=ge(),m=_t(lo),D=_t(Co),g=pS(h,nr),p=fS(h,nr,D),_=sE(h,nr,D);f.useEffect(()=>{const C=(e?[...g]:[...p,..._]).filter(S=>{var w;return S!==t&&!((w=m.get(S))!=null&&w.has(t))});u(C)},[g,p,_,m,t,e]);const v=C=>{if(o!==null)return;const S=[...l],w=S.indexOf(C);if(w>-1){S.splice(w,1),c(S);return}S.push(C),c(S)},E=async()=>{if(i(`Adding ${l.length} items...`),await $l(l,async S=>{const w=h.getRoom(S),A=wd(w);A.length===0&&A.push(zf(S)),await h.sendStateEvent(t,"m.space.child",{auto_join:!1,suggested:!1,via:A},S)}),!n())return;const C=(e?[...g]:[...p,..._]).filter(S=>{var w;return S!==t&&!((w=m.get(S))!=null&&w.has(t))&&!l.includes(S)});u(C),i(null),c([])},b=C=>{const S=C.target.value.toLocaleLowerCase().replace(/\s/g,"");if(S===""){F(null);return}r._(()=>{const w=s.filter(A=>{var j;let O=(j=h.getRoom(A))==null?void 0:j.name;return O?(O=O.normalize("NFKC").toLocaleLowerCase().replace(/\s/g,""),O.includes(S)):!1});F(w)},200)()},k=C=>{const S=C.currentTarget;S.parentElement.searchInput.value="",F(null)};return a.jsxs(a.Fragment,{children:[a.jsxs("form",{onSubmit:C=>{C.preventDefault()},children:[a.jsx(Yl,{size:"small",src:BW}),a.jsx(Ps,{name:"searchInput",onChange:b,placeholder:"Search room",autoFocus:!0}),a.jsx(Ja,{size:"small",type:"button",onClick:k,src:xd})]}),(d==null?void 0:d.length)===0&&a.jsx(Wt,{children:"No results found"}),(d||s).map(C=>{var M;const S=h.getRoom(C);let w=((M=S.getAvatarFallbackMember())==null?void 0:M.getAvatarUrl(h.baseUrl,24,24,"crop"))||null;w===null&&(w=S.getAvatarUrl(h.baseUrl,24,24,"crop")||null);const A=m.get(C),O=A?[...A].map(z=>h.getRoom(z).name):void 0,j=O?O.join(", "):null,R=()=>v(C);return a.jsx(iE,{name:S.name,parentName:j,roomId:C,imageSrc:D.has(C)?w:null,iconSrc:D.has(C)?null:t$(S.getJoinRule(),S.isSpaceRoom()),isUnread:!1,notificationCount:0,isAlert:!1,onClick:R,options:a.jsx(mS,{isActive:l.includes(C),variant:"positive",onToggle:R,tabIndex:-1,disabled:o!==null})},C)}),l.length!==0&&a.jsxs("div",{className:"space-add-existing__footer",children:[o&&a.jsx(kh,{size:"small"}),a.jsx(Wt,{weight:"medium",children:o||`${l.length} item selected`}),!o&&a.jsx(bo,{onClick:E,variant:"primary",children:"Add"})]})]})}OW.propTypes={roomId:fe.string.isRequired,spaces:fe.bool.isRequired};function uCe(){const[t,e]=f.useState(null);return f.useEffect(()=>{const n=(r,o)=>e({roomId:r,spaces:o});return uo.on(Lt.events.navigation.SPACE_ADDEXISTING_OPENED,n),()=>{uo.removeListener(Lt.events.navigation.SPACE_ADDEXISTING_OPENED,n)}},[]),[t,()=>e(null)]}function lCe(){const[t,e]=uCe(),n=ge().getRoom(t==null?void 0:t.roomId);return a.jsx(Ih,{isOpen:!!n,className:"space-add-existing",title:a.jsxs(Wt,{variant:"s1",weight:"medium",primary:!0,children:[n&&n.name,a.jsxs("span",{style:{color:"var(--tc-surface-low)"},children:[" ","\u2014 add existing ",t!=null&&t.spaces?"spaces":"rooms"]})]}),contentOptions:a.jsx(Ja,{src:xd,onClick:e,tooltip:"Close"}),onRequestClose:e,children:n?a.jsx(OW,{roomId:n.roomId,spaces:t.spaces}):a.jsx("div",{})})}let cCe=class extends Cz{constructor(){super(),this._reset(),this.RESULT_SENT="RESULT_SENT"}_reset(){this.dataList=null,this.term=null,this.searchKeys=null,this.isContain=!1,this.isCaseSensitive=!1,this.normalizeUnicode=!0,this.ignoreWhitespace=!0,this.limit=null,this.findingList=[],this.searchUptoIndex=0,this.sessionStartTimestamp=0}_softReset(){this.term=null,this.findingList=[],this.searchUptoIndex=0,this.sessionStartTimestamp=0}setup(t,e){this._reset(),this.dataList=t,this.searchKeys=(e==null?void 0:e.keys)||null,this.isContain=(e==null?void 0:e.isContain)||!1,this.isCaseSensitive=(e==null?void 0:e.isCaseSensitive)||!1,this.normalizeUnicode=(e==null?void 0:e.normalizeUnicode)||!0,this.ignoreWhitespace=(e==null?void 0:e.ignoreWhitespace)||!0,this.limit=(e==null?void 0:e.limit)||null}search(t){if(this._softReset(),this.term=this._normalize(t),this.term===""){this._sendFindings();return}this._find(this.sessionStartTimestamp,0)}_find(t,e){if(t===this.sessionStartTimestamp){this.sessionStartTimestamp=window.performance.now();for(let n=this.searchUptoIndex;n<this.dataList.length&&!(this._match(this.dataList[n])&&(this.findingList.push(this.dataList[n]),typeof this.limit=="number"&&this.findingList.length>=this.limit));n+=1)if(window.performance.now()-this.sessionStartTimestamp>8){const r=this.findingList.length,o=this.sessionStartTimestamp;e!==r&&this._sendFindings(),this.searchUptoIndex=n+1,setTimeout(()=>this._find(o,r));return}(e!==this.findingList.length||e===0)&&this._sendFindings(),this._softReset()}}_match(t){if(typeof t=="string")return this._compare(t);if(typeof t=="object"){if(Array.isArray(this.searchKeys))return!!this.searchKeys.find(e=>this._compare(t[e]));if(typeof this.searchKeys=="string")return this._compare(t[this.searchKeys])}return!1}_compare(t){if(typeof t!="string")return!1;const e=this._normalize(t);return this.isContain?e.indexOf(this.term)!==-1:e.startsWith(this.term)}_normalize(t){let e=t.normalize(this.normalizeUnicode?"NFKC":"NFC");return this.isCaseSensitive||(e=e.toLocaleLowerCase()),this.ignoreWhitespace&&(e=e.replace(/\s/g,"")),e}_sendFindings(){this.emit(this.RESULT_SENT,this.findingList,this.term)}};const Tu=(t,e)=>{f.useEffect(()=>(t.on(Zt.Events,e),()=>{t.removeListener(Zt.Events,e)}),[t,e])},vS=(t,e)=>{f.useEffect(()=>(t==null||t.on(st.Sync,e),()=>{t==null||t.removeListener(st.Sync,e)}),[t,e])},u3=(t,e)=>{f.useEffect(()=>(t.on(st.AccountData,e),()=>{t.removeListener(st.AccountData,e)}),[t,e])};function kd(t){const e=ge(),[n,r]=f.useState(()=>e.getAccountData(t));return u3(e,f.useCallback(o=>{o.getType()===t&&r(o)},[t,r])),n}var Eo=(t=>(t.OFF="OFF",t.Notify="Notify",t.NotifyLoud="NotifyLoud",t))(Eo||{});const uE=t=>{const e=t.find(r=>typeof r=="object"&&r.set_tweak===WF.Sound),n=t.find(r=>typeof r=="string"&&r===pu.Notify);return n&&e?"NotifyLoud":n?"Notify":"OFF"},Iu=(t,e)=>{if(t==="OFF")return[];const n=[pu.Notify];return t==="NotifyLoud"&&n.push({set_tweak:WF.Sound,value:(e==null?void 0:e.soundValue)??"default"}),e!=null&&e.highlight&&n.push({set_tweak:WF.Highlight,value:!0}),n},bS=t=>f.useCallback(e=>Iu(e,t),[t]),dCe=t=>f.useMemo(()=>uE(t),[t]),MW=f.createContext(null),hCe=MW.Provider,l3=()=>{const t=f.useContext(MW);if(!t)throw new Error("No RoomsNotificationPreferences provided!");return t},FCe=()=>{var e;const t=(e=kd(tr.PushRules))==null?void 0:e.getContent();return f.useMemo(()=>{const n=t==null?void 0:t.global,r=(n==null?void 0:n.room)??[],o=(n==null?void 0:n.override)??[],i={mute:new Set,specialMessages:new Set,allMessages:new Set};return o.forEach(s=>{Ch(s.rule_id)&&uE(s.actions)===Eo.OFF&&i.mute.add(s.rule_id)}),r.forEach(s=>{uE(s.actions)===Eo.OFF&&i.specialMessages.add(s.rule_id)}),r.forEach(s=>{uE(s.actions)!==Eo.OFF&&i.allMessages.add(s.rule_id)}),i},[t])};var qs=(t=>(t.Unset="Unset",t.Mute="Mute",t.SpecialMessages="SpecialMessages",t.AllMessages="AllMessages",t))(qs||{});const lE=(t,e)=>t.mute.has(e)?"Mute":t.specialMessages.has(e)?"SpecialMessages":t.allMessages.has(e)?"AllMessages":"Unset",cE=t=>t==="Mute"?$.BellMute:t==="SpecialMessages"?$.BellPing:t==="AllMessages"?$.BellRing:$.Bell,mCe=async(t,e,n,r)=>{if((r==="AllMessages"||r==="SpecialMessages")&&await t.deletePushRule("global",Nn.RoomSpecific,e),r==="Mute"&&await t.deletePushRule("global",Nn.Override,e),n!=="Unset"){if(n==="Mute"){await t.addPushRule("global",Nn.Override,e,{conditions:[{kind:ar.EventMatch,key:"room_id",pattern:e}],actions:Iu(Eo.OFF)});return}await t.addPushRule("global",Nn.RoomSpecific,e,{actions:Iu(n==="AllMessages"?Eo.NotifyLoud:Eo.OFF)})}},DCe=t=>{const e=ge(),[n,r]=et(f.useCallback((o,i)=>mCe(e,t,o,i),[e,t]));return{modeState:n,setMode:r}},dE=t=>({highlight:t.highlight,total:t.total,from:null}),PW=(t,e,n)=>{const r=t.get(n.roomId)??{highlight:0,total:0,from:null};t.set(n.roomId,dE(n));const o=n.highlight-r.highlight,i=n.total-r.total;e.forEach(s=>{const u=t.get(s)??{highlight:0,total:0,from:null};t.set(s,{highlight:u.highlight+=o,total:u.total+=i,from:new Set([...u.from??[],n.roomId])})})},gCe=(t,e,n)=>{const r=t.get(n);r&&(t.delete(n),e.forEach(o=>{const i=t.get(o);if(!i)return;const s=new Set([...i.from??n]);if(s.delete(n),s.size===0){t.delete(o);return}t.set(o,{highlight:i.highlight-r.highlight,total:i.total-r.total,from:s})}))},CS=(t,e)=>{if(!(t.highlight===e.highlight&&t.total===e.total))return!1;const n=t.from,r=e.from;if(n===null&&r===null)return!0;if(n===null||r===null||n.size!==r.size)return!1;let o=!0;return n==null||n.forEach(i=>{r!=null&&r.has(i)||(o=!1)}),o},Sd=Bn(new Map),co=Bn(t=>t(Sd),(t,e,n)=>{if(n.type==="RESET"){const r=new Map;n.unreadInfos.forEach(o=>{PW(r,Wa(t(lo),o.roomId),o)}),e(Sd,r);return}if(n.type==="PUT"){const{unreadInfo:r}=n,o=t(Sd).get(r.roomId);if(o&&CS(o,dE(r)))return;e(Sd,po(t(Sd),i=>PW(i,Wa(t(lo),r.roomId),r)));return}n.type==="DELETE"&&t(Sd).has(n.roomId)&&e(Sd,po(t(Sd),r=>gCe(r,Wa(t(lo),n.roomId),n.roomId)))}),pCe=(t,e)=>{const n=Di(e),r=l3();f.useEffect(()=>{n({type:"RESET",unreadInfos:mC(t)})},[t,n]),vS(t,f.useCallback((o,i)=>{(o===bn.Prepared&&i===null||o===bn.Syncing&&i!==bn.Syncing)&&n({type:"RESET",unreadInfos:mC(t)})},[t,n])),f.useEffect(()=>{const o=(i,s,u,l,c)=>{if(!(!s||!c.liveEvent||s.isSpaceRoom()||!Y5(i))){if(G5(t,s.roomId)===fd.Mute){n({type:"DELETE",roomId:s.roomId});return}i.getSender()!==t.getUserId()&&n({type:"PUT",unreadInfo:Z5(s)})}};return t.on(Ke.Timeline,o),()=>{t.removeListener(Ke.Timeline,o)}},[t,n]),f.useEffect(()=>{const o=(i,s)=>{const u=t.getUserId();if(!u||s.isSpaceRoom())return;const l=i.getContent();Object.keys(l).find(c=>Object.keys(l[c]).find(d=>l[c][d][u]))&&n({type:"DELETE",roomId:s.roomId})};return t.on(Ke.Receipt,o),()=>{t.removeListener(Ke.Receipt,o)}},[t,n]),f.useEffect(()=>{n({type:"RESET",unreadInfos:mC(t)})},[t,n,r]),f.useEffect(()=>{const o=(i,s)=>{s!==$n.Join&&n({type:"DELETE",roomId:i.roomId})};return t.on(Ke.MyMembership,o),()=>{t.removeListener(Ke.MyMembership,o)}},[t,n]),Tu(t,f.useCallback(o=>{o.getType()===Re.SpaceChild&&n({type:"RESET",unreadInfos:mC(t)})},[t,n]))},jd=(t,e)=>{f.useEffect(()=>(t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}),[t,e])},c3=t=>(e,n)=>{var o;const r=t.getRoom(e);return(((o=t.getRoom(n))==null?void 0:o.getLastActiveTimestamp())??Number.MIN_SAFE_INTEGER)-((r==null?void 0:r.getLastActiveTimestamp())??Number.MIN_SAFE_INTEGER)},LW=t=>(e,n)=>{var i,s;let r=((i=t.getRoom(e))==null?void 0:i.name)??"",o=((s=t.getRoom(n))==null?void 0:s.name)??"";return r=r.replace(/#/g,""),o=o.replace(/#/g,""),r.toLowerCase()<o.toLowerCase()?-1:r.toLowerCase()>o.toLowerCase()?1:0},fCe=(t,e)=>t-e,_Ce=(t,e)=>!t&&!e?0:e?t&&t<e?-1:1:-1;function vCe(t){const[e,n]=f.useState(!1);return f.useEffect(()=>{const r=o=>{t({term:o,chunk:[]}),n(!0)};return uo.on(Lt.events.navigation.SEARCH_OPENED,r),()=>{uo.removeListener(Lt.events.navigation.SEARCH_OPENED,r)}},[]),f.useEffect(()=>{e===!1&&t(void 0)},[e]),jd(window,f.useCallback(r=>{if((r.ctrlKey||r.metaKey)&&r.key==="k"){if(r.preventDefault(),document.body.lastChild.className!=="ReactModalPortal"||uo.isRawModalVisible)return;CW()}},[])),[e,()=>n(!1)]}function NW(t,e,n,r){return e.map(o=>{const i=t.getRoom(o),s=r.get(o),u=s?[]:void 0;s==null||s.forEach(d=>u.push(t.getRoom(d).name));const l=u?u.join(", "):null;let c="room";return i.isSpaceRoom()?c="space":n.includes(o)&&(c="direct"),{type:c,name:i.name,parents:l,roomId:o,room:i}})}function bCe(){const[t,e]=f.useState(null),[n]=f.useState(new cCe),[r,o]=vCe(e),i=f.useRef(null),s=ge(),{navigateRoom:u,navigateSpace:l}=Mo(),c=_t(Co),d=pS(s,nr),F=fS(s,nr,c),h=sE(s,nr,c),m=_t(co),D=_t(lo),g=(A,O)=>{e({term:O,chunk:A})},p=A=>{var M;const O=(M=A.match(/^[#@*]/))==null?void 0:M[0];if(A.length>1){n.search(O?A.slice(1):A);return}let j=null;O?O==="#"?j=[...F]:O==="@"?j=[...h]:j=[...d]:j=[...F].concat([...h],[...d]),j.sort(c3(s));const R=NW(s,j,h,D);n.setup(R,{keys:"name",isContain:!0,limit:20}),O?g(R,O):n.search(A)},_=()=>{g(NW(s,[],h,D).reverse())},v=()=>{i.current.focus(),_(),n.on(n.RESULT_SENT,g),typeof t.term=="string"&&(p(t.term),i.current.value=t.term)},E=()=>{n.removeListener(n.RESULT_SENT,g)},b=()=>{const{value:A}=i.current;if(A.length===0){_();return}p(A)},k=A=>{A.preventDefault();const{value:O}=i.current;O.length===0?o():(i.current.value="",i.current.focus(),_())},C=(A,O)=>{O==="space"?l(A):u(A),o()},S=()=>{const{chunk:A}=t;if((A==null?void 0:A.length)>0){const O=A[0];C(O.roomId,O.type)}},w=A=>{var R,M,z;let O=null,j=null;return A.type==="direct"?O=((R=A.room.getAvatarFallbackMember())==null?void 0:R.getAvatarUrl(s.baseUrl,24,24,"crop"))||null:j=t$(A.room.getJoinRule(),A.type==="space"),a.jsx(iE,{name:A.name,parentName:A.parents,roomId:A.roomId,imageSrc:O,iconSrc:j,isUnread:m.has(A.roomId),notificationCount:((M=m.get(A.roomId))==null?void 0:M.total)??0,isAlert:((z=m.get(A.roomId))==null?void 0:z.highlight)>0,onClick:()=>C(A.roomId,A.type)},A.roomId)};return a.jsx(o3,{className:"search-dialog__modal dialog-modal",isOpen:r,onAfterOpen:v,onAfterClose:E,onRequestClose:o,size:"small",children:a.jsxs("div",{className:"search-dialog",children:[a.jsxs("form",{className:"search-dialog__input",onSubmit:A=>{A.preventDefault(),S()},children:[a.jsx(Yl,{src:BW,size:"small"}),a.jsx(Ps,{onChange:b,forwardRef:i,placeholder:"Search"}),a.jsx(Ja,{size:"small",src:xd,type:"reset",onClick:k,tabIndex:-1})]}),a.jsx("div",{className:"search-dialog__content-wrapper",children:a.jsx(Sh,{autoHide:!0,children:a.jsx("div",{className:"search-dialog__content",children:Array.isArray(t==null?void 0:t.chunk)&&t.chunk.map(w)})})}),a.jsx("div",{className:"search-dialog__footer",children:a.jsx(Wt,{variant:"b3",children:"Type # for rooms, @ for DMs and * for spaces. Hotkey: Ctrl + k"})})]})})}function ES({isActive:t,onToggle:e,disabled:n}){const r=`toggle${t?" toggle--active":""}`;return e===null?a.jsx("span",{className:r}):a.jsx("button",{onClick:()=>e(!t),className:r,type:"button",disabled:n})}ES.defaultProps={isActive:!1,disabled:!1,onToggle:null},ES.propTypes={isActive:fe.bool,onToggle:fe.func,disabled:fe.bool};function zW({selected:t,segments:e,onSelect:n}){const[r,o]=f.useState(t);function i(s){o(s),n(s)}return f.useEffect(()=>{o(t)},[t]),a.jsx("div",{className:"segmented-controls",children:e.map((s,u)=>a.jsx("button",{className:`segment-btn${r===u?" segment-btn--active":""}`,type:"button",onClick:()=>i(u),onMouseUp:l=>Uf(l,".segment-btn"),children:a.jsxs("div",{className:"segment-btn__base",children:[s.iconSrc&&a.jsx(Yl,{size:"small",src:s.iconSrc}),s.text&&a.jsx(Wt,{variant:"b2",children:s.text})]})},Math.random().toString(20).substr(2,6)))})}zW.propTypes={selected:fe.number.isRequired,segments:fe.arrayOf(fe.shape({iconSrc:fe.string,text:fe.string})).isRequired,onSelect:fe.func.isRequired};function d3({title:t,options:e,content:n}){return a.jsxs("div",{className:"setting-tile",children:[a.jsxs("div",{className:"setting-tile__content",children:[a.jsx("div",{className:"setting-tile__title",children:typeof t=="string"?a.jsx(Wt,{variant:"b1",children:t}):t}),n]}),e!==null&&a.jsx("div",{className:"setting-tile__options",children:e})]})}d3.defaultProps={options:null,content:null},d3.propTypes={title:fe.node.isRequired,options:fe.node,content:fe.node};const CCe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cg%3e%3cpolygon%20points='16,12%2014,12%2014,14%2010,14%2010,10%2012,10%2012,8%2010,8%2010,3%208,3%208,8%203,8%203,10%208,10%208,14%203,14%203,16%208,16%208,21%2010,21%2010,16%2014,16%2014,21%2016,21%2016,16%2021,16%2021,14%2016,14%20'/%3e%3cg%3e%3cpath%20d='M19,0c-2.8,0-5,2.2-5,5s2.2,5,5,5s5-2.2,5-5S21.8,0,19,0z%20M22,5.8h-2.3V8h-1.5V5.8H16V4.3h2.3V2h1.5v2.3H22V5.8z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ECe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2024%2024'%20enable-background='new%200%200%2024%2024'%20xml:space='preserve'%3e%3cg%3e%3cpath%20d='M15.4,13.7L14,14l-0.2,1.4c-0.4,2.8-1.3,4.2-1.7,4.6c-0.4-0.3-1.3-1.8-1.7-4.6L10,14l-1.4-0.2c-2.8-0.4-4.2-1.3-4.6-1.7%20c0.3-0.4,1.8-1.3,4.6-1.7L10,10l0.2-1.4c0.4-2.8,1.3-4.2,1.7-4.6V2c-1.7,0-3.1,2.6-3.7,6.3C4.6,8.9,2,10.3,2,12s2.6,3.1,6.3,3.7%20c0.6,3.7,2,6.3,3.7,6.3s3.1-2.6,3.7-6.3c3.7-0.6,6.3-2,6.3-3.7h-2.1C19.6,12.4,18.2,13.3,15.4,13.7z'/%3e%3cpath%20d='M19,0c-2.8,0-5,2.2-5,5s2.2,5,5,5s5-2.2,5-5S21.8,0,19,0z%20M22,5.8h-2.3V8h-1.5V5.8H16V4.3h2.3V2h1.5v2.3H22V5.8z'/%3e%3c/g%3e%3c/svg%3e";function yS({isSpace:t,parentId:e,onRequestClose:n}){const[r,o]=f.useState(e?"restricted":"invite"),[i,s]=f.useState(!0),[u,l]=f.useState(!1),[c,d]=f.useState(null),{navigateRoom:F,navigateSpace:h}=Mo(),[m,D]=f.useState(null),[g,p]=f.useState(void 0),[_,v]=f.useState(0),E=f.useRef(null),b=ge(),k=zf(b.getUserId()),C=async z=>{var ae;z.preventDefault();const{target:T}=z;if(u)return;l(!0),d(null);const P=T.name.value;let L=T.topic.value;L.trim()===""&&(L=void 0);let U;r==="public"&&(U=(ae=E==null?void 0:E.current)==null?void 0:ae.value,U.trim()===""&&(U=void 0));const te=_===1?101:void 0;try{const Fe=await S_e(b,{name:P,topic:L,joinRule:r,alias:U,isEncrypted:t||r==="public"?!1:i,powerLevel:te,isSpace:t,parentId:e});l(!1),d(null),D(null),p(void 0),n(),t?h(Fe.room_id):F(Fe.room_id)}catch(Fe){Fe.message==="M_UNKNOWN: Invalid characters in room alias"?(d("ERROR: Invalid characters in address"),D(!1)):Fe.message==="M_ROOM_IN_USE: Room alias already taken"?(d("ERROR: This address is already in use"),D(!1)):d(Fe.message),l(!1)}},S=z=>{const T=z.target.value;D(null),p(z.target.value),d(null),setTimeout(async()=>{if(T!==E.current.value)return;const P=E.current.value;if(P==="")return;const L=`#${P}:${k}`;await y_e(b,L)?D(!0):D(!1)},1e3)},w=["invite","restricted","public"],A=["Private","Restricted","Public"],O=["Private (invite only)","Restricted (space member can join)","Public (anyone can join)"],j=[w7,JH,XH],R=[k7,QH,e$],M=z=>{EW("bottom",DW(z,".btn-surface"),T=>a.jsxs(a.Fragment,{children:[a.jsx(YC,{children:"Visibility (who can join)"}),w.map(P=>a.jsx(jh,{variant:P===r?"positive":"surface",iconSrc:t?R[w.indexOf(P)]:j[w.indexOf(P)],onClick:()=>{T(),o(P)},disabled:!e&&P==="restricted",children:O[w.indexOf(P)]},P))]}))};return a.jsx("div",{className:"create-room",children:a.jsxs("form",{className:"create-room__form",onSubmit:C,children:[a.jsx(d3,{title:"Visibility",options:a.jsx(bo,{onClick:M,iconSrc:FS,children:A[w.indexOf(r)]}),content:a.jsx(Wt,{variant:"b3",children:`Select who can join this ${t?"space":"room"}.`})}),r==="public"&&a.jsxs("div",{children:[a.jsx(Wt,{className:"create-room__address__label",variant:"b2",children:t?"Space address":"Room address"}),a.jsxs("div",{className:"create-room__address",children:[a.jsx(Wt,{variant:"b1",children:"#"}),a.jsx(Ps,{value:g,onChange:S,state:m===!1?"error":"normal",forwardRef:E,placeholder:"my_address",required:!0}),a.jsx(Wt,{variant:"b1",children:`:${k}`})]}),m===!1&&a.jsx(Wt,{className:"create-room__address__tip",variant:"b3",children:a.jsx("span",{style:{color:"var(--bg-danger)"},children:`#${g}:${k} is already in use`})})]}),!t&&r!=="public"&&a.jsx(d3,{title:"Enable end-to-end encryption",options:a.jsx(ES,{isActive:i,onToggle:s}),content:a.jsx(Wt,{variant:"b3",children:"You can\u2019t disable this later. Bridges & most bots won\u2019t work yet."})}),a.jsx(d3,{title:"Select your role",options:a.jsx(zW,{selected:_,segments:[{text:"Admin"},{text:"Founder"}],onSelect:v}),content:a.jsx(Wt,{variant:"b3",children:"Selecting Admin sets 100 power level whereas Founder sets 101."})}),a.jsx(Ps,{name:"topic",minHeight:174,resizable:!0,label:"Topic (optional)"}),a.jsxs("div",{className:"create-room__name-wrapper",children:[a.jsx(Ps,{name:"name",label:`${t?"Space":"Room"} name`,required:!0}),a.jsx(bo,{disabled:m===!1||u,iconSrc:t?ECe:CCe,type:"submit",variant:"primary",children:"Create"})]}),u&&a.jsxs("div",{className:"create-room__loading",children:[a.jsx(kh,{size:"small"}),a.jsx(Wt,{children:`Creating ${t?"space":"room"}...`})]}),typeof c=="string"&&a.jsx(Wt,{className:"create-room__error",variant:"b3",children:c})]})})}yS.defaultProps={parentId:null},yS.propTypes={isSpace:fe.bool.isRequired,parentId:fe.string,onRequestClose:fe.func.isRequired};function yCe(){const[t,e]=f.useState(null);return f.useEffect(()=>{const n=(r,o)=>{e({isSpace:r,parentId:o})};return uo.on(Lt.events.navigation.CREATE_ROOM_OPENED,n),()=>{uo.removeListener(Lt.events.navigation.CREATE_ROOM_OPENED,n)}},[]),[t,()=>e(null)]}function xCe(){const[t,e]=yCe(),{isSpace:n,parentId:r}=t??{},o=ge().getRoom(r);return a.jsx(Ih,{isOpen:t!==null,title:a.jsxs(Wt,{variant:"s1",weight:"medium",primary:!0,children:[r?o.name:"Home",a.jsx("span",{style:{color:"var(--tc-surface-low)"},children:` \u2014 create ${n?"space":"room"}`})]}),contentOptions:a.jsx(Ja,{src:xd,onClick:e,tooltip:"Close"}),onRequestClose:e,children:t?a.jsx(yS,{isSpace:n,parentId:r,onRequestClose:e}):a.jsx("div",{})})}const wCe=/^[#|!].+:.+\..+$/;function xS({term:t,requestClose:e}){const[n,r]=f.useState(!1),[o,i]=f.useState(void 0),s=ge(),u=nCe(),{navigateRoom:l}=Mo(),c=F=>{l(F),e()},d=async F=>{var D;F.preventDefault(),u.setItem(!0);const h=F.target.alias.value;if((h==null?void 0:h.trim())==="")return;if(h.match(wCe)===null){i("Invalid address.");return}r("Looking for address..."),i(void 0);let m;if(h.startsWith("#"))try{m=((D=await s.getRoomIdForAlias(h))==null?void 0:D.servers.slice(0,3))||[],u.getItem()&&r(`Joining ${h}...`)}catch{if(!u.getItem())return;r(!1),i(`Unable to find room/space with ${h}. Either room/space is private or doesn't exist.`)}try{const g=await r$(s,h,!1,m);if(!u.getItem())return;c(g)}catch{if(!u.getItem())return;r(!1),i(`Unable to join ${h}. Either room/space is private or doesn't exist.`)}};return a.jsxs("form",{className:"join-alias",onSubmit:d,children:[a.jsx(Ps,{label:"Address",value:t,name:"alias",required:!0}),o&&a.jsx(Wt,{className:"join-alias__error",variant:"b3",children:o}),a.jsx("div",{className:"join-alias__btn",children:n?a.jsxs(a.Fragment,{children:[a.jsx(kh,{size:"small"}),a.jsx(Wt,{children:n})]}):a.jsx(bo,{variant:"primary",type:"submit",children:"Join"})})]})}xS.defaultProps={term:void 0},xS.propTypes={term:fe.string,requestClose:fe.func.isRequired};function kCe(){const[t,e]=f.useState(null);return f.useEffect(()=>{const n=r=>{e({term:r})};return uo.on(Lt.events.navigation.JOIN_ALIAS_OPENED,n),()=>{uo.removeListener(Lt.events.navigation.JOIN_ALIAS_OPENED,n)}},[]),[t,()=>e(null)]}function SCe(){const[t,e]=kCe();return a.jsx(Ih,{isOpen:t!==null,title:a.jsx(Wt,{variant:"s1",weight:"medium",primary:!0,children:"Join with address"}),contentOptions:a.jsx(Ja,{src:xd,onClick:e,tooltip:"Close"}),onRequestClose:e,children:t?a.jsx(xS,{term:t.term,requestClose:e}):a.jsx("div",{})})}function jCe(){const[t,e]=f.useState(!1),[n,r]=f.useState(null);f.useEffect(()=>{const s=(u,l,c)=>{e(!0),r({title:u,render:l,afterClose:c})};return uo.on(Lt.events.navigation.REUSABLE_DIALOG_OPENED,s),()=>{uo.removeListener(Lt.events.navigation.REUSABLE_DIALOG_OPENED,s)}},[]);const o=()=>{var s;(s=n.afterClose)==null||s.call(n),r(null)},i=()=>{e(!1)};return a.jsx(Ih,{isOpen:t,title:(n==null?void 0:n.title)||"",onAfterClose:o,onRequestClose:i,contentOptions:a.jsx(Ja,{src:xd,onClick:i,tooltip:"Close"}),invisibleScroll:!0,children:(n==null?void 0:n.render(i))||a.jsx("div",{})})}function BCe(){return a.jsxs(a.Fragment,{children:[a.jsx(tCe,{}),a.jsx(xCe,{}),a.jsx(SCe,{}),a.jsx(lCe,{}),a.jsx(bCe,{}),a.jsx(jCe,{})]})}let Rh=null;function ACe(){const[t,e]=f.useState(null),n=f.useRef(null),r=()=>{Rh=null,t&&n.current.click()};f.useEffect(()=>{if(t){const{cords:s}=t;n.current.style.transform=`translate(${s.x}px, ${s.y}px)`,n.current.style.width=`${s.width}px`,n.current.style.height=`${s.height}px`,n.current.click()}const i=(s,u,l,c)=>{if(Rh){r();return}e({placement:s,cords:u,render:l,afterClose:c})};return uo.on(Lt.events.navigation.REUSABLE_CONTEXT_MENU_OPENED,i),()=>{uo.removeListener(Lt.events.navigation.REUSABLE_CONTEXT_MENU_OPENED,i)}},[t]);const o=i=>{var u;if(i){Rh=Math.random();return}if((u=t==null?void 0:t.afterClose)==null||u.call(t),e&&e(null),Rh===null)return;const s=Rh;setTimeout(()=>{Rh===s&&(Rh=null)},200)};return a.jsx(Q7,{afterToggle:o,placement:(t==null?void 0:t.placement)||"right",content:(t==null?void 0:t.render(r))??"",render:i=>a.jsx("input",{ref:n,onClick:i,type:"button",style:{width:"32px",height:"32px",backgroundColor:"transparent",position:"fixed",top:0,left:0,padding:0,border:"none",visibility:"hidden",appearance:"none"}})})}function TCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function UW(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function VW(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?UW(Object(n),!0).forEach(function(r){TCe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):UW(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ICe=(t,e,n)=>{for(var r of Object.keys(t)){var o;if(t[r]!==((o=e[r])!==null&&o!==void 0?o:n[r]))return!1}return!0},br=t=>e=>{var n=t.defaultClassName,r=VW(VW({},t.defaultVariants),e);for(var o in r){var i,s=(i=r[o])!==null&&i!==void 0?i:t.defaultVariants[o];if(s!=null){var u=s;typeof u=="boolean"&&(u=u===!0?"true":"false");var l=t.variantClassNames[o][u];l&&(n+=" "+l)}}for(var[c,d]of t.compoundVariants)ICe(c,r,t.defaultVariants)&&(n+=" "+d);return n},ai=br({defaultClassName:"_1mqalmd1 _1mqalmd0",variantClassNames:{variant:{Background:"_1rwrsxz1",Surface:"_1rwrsxz2",SurfaceVariant:"_1rwrsxz3",Primary:"_1rwrsxz4",Secondary:"_1rwrsxz5",Success:"_1rwrsxz6",Warning:"_1rwrsxz7",Critical:"_1rwrsxz8"}},defaultVariants:{variant:"Surface"},compoundVariants:[]});function RCe({mx:t}){const[e,n]=f.useState({current:null,previous:void 0});return vS(t,f.useCallback((r,o)=>{n(i=>i.current===r&&i.previous===o?i:{current:r,previous:o})},[])),(e.current===bn.Prepared||e.current===bn.Syncing||e.current===bn.Catchup)&&e.previous!==bn.Syncing?a.jsxs(y,{direction:"Column",shrink:"No",children:[a.jsx(y,{className:ai({variant:"Success"}),style:{padding:`${le.space.S100} 0`},alignItems:"Center",justifyContent:"Center",children:a.jsx(x,{size:"L400",children:"Connecting..."})}),a.jsx(jn,{variant:"Success",size:"300"})]}):e.current===bn.Reconnecting?a.jsxs(y,{direction:"Column",shrink:"No",children:[a.jsx(y,{className:ai({variant:"Warning"}),style:{padding:`${le.space.S100} 0`},alignItems:"Center",justifyContent:"Center",children:a.jsx(x,{size:"L400",children:"Connection Lost! Reconnecting..."})}),a.jsx(jn,{variant:"Warning",size:"300"})]}):e.current===bn.Error?a.jsxs(y,{direction:"Column",shrink:"No",children:[a.jsx(y,{className:ai({variant:"Critical"}),style:{padding:`${le.space.S100} 0`},alignItems:"Center",justifyContent:"Center",children:a.jsx(x,{size:"L400",children:"Connection Lost!"})}),a.jsx(jn,{variant:"Critical",size:"300"})]}):null}function OCe(){return a.jsx(K1,{children:a.jsxs(y,{direction:"Column",grow:"Yes",alignItems:"Center",justifyContent:"Center",gap:"400",children:[a.jsx(ot,{variant:"Secondary",size:"600"}),a.jsx(x,{children:"Heating up"})]})})}function MCe({mx:t}){const[e,n]=f.useState(),r=o=>{const i=o.currentTarget.getBoundingClientRect();n(s=>{if(!s)return i})};return a.jsxs(Me,{style:{position:"absolute",top:le.space.S100,right:le.space.S100},variant:"Background",fill:"None",onClick:r,children:[a.jsx(Q,{size:"200",src:$.VerticalDots}),a.jsx(Ut,{anchor:e,position:"Bottom",align:"End",offset:6,content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>n(void 0),clickOutsideDeactivates:!0,isKeyForward:o=>o.key==="ArrowDown",isKeyBackward:o=>o.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(zt,{children:a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[t&&a.jsx(tt,{onClick:()=>KH(t),size:"300",radii:"300",children:a.jsx(x,{as:"span",size:"T300",truncate:!0,children:"Clear Cache and Reload"})}),a.jsx(tt,{onClick:()=>{if(t){GH(t);return}u_e()},size:"300",radii:"300",variant:"Critical",fill:"None",children:a.jsx(x,{as:"span",size:"T300",truncate:!0,children:"Logout"})})]})})})})]})}const PCe=t=>{f.useEffect(()=>{const e=async()=>{t==null||t.stopClient(),await(t==null?void 0:t.clearStores()),window.localStorage.clear(),window.location.reload()};return t==null||t.on(Kp.SessionLoggedOut,e),()=>{t==null||t.removeListener(Kp.SessionLoggedOut,e)}},[t])};function LCe({children:t}){const[e,n]=f.useState(!0),{baseUrl:r}=$H(),[o,i]=et(f.useCallback(()=>a_e($H()),[])),s=o.status===he.Success?o.data:void 0,[u,l]=et(f.useCallback(c=>s_e(c),[]));return PCe(s),f.useEffect(()=>{o.status===he.Idle&&i()},[o,i]),f.useEffect(()=>{s&&!s.clientRunning&&l(s)},[s,l]),vS(s,f.useCallback(c=>{c==="PREPARED"&&n(!1)},[])),a.jsxs(m_e,{baseUrl:r,children:[s&&a.jsx(RCe,{mx:s}),e&&a.jsx(MCe,{mx:s}),(o.status===he.Error||u.status===he.Error)&&a.jsx(K1,{children:a.jsx(y,{direction:"Column",grow:"Yes",alignItems:"Center",justifyContent:"Center",gap:"400",children:a.jsx(cr,{children:a.jsxs(y,{direction:"Column",gap:"400",style:{padding:le.space.S400},children:[o.status===he.Error&&a.jsx(x,{children:`Failed to load. ${o.error.message}`}),u.status===he.Error&&a.jsx(x,{children:`Failed to start. ${u.error.message}`}),a.jsx(Ee,{variant:"Critical",onClick:s?()=>l(s):i,children:a.jsx(x,{as:"span",size:"B400",children:"Retry"})})]})})})}),e||!s?a.jsx(OCe,{}):a.jsx(l_e,{value:s,children:a.jsx(c_e,{children:(c,d)=>a.jsx(d_e,{value:c??{},children:a.jsxs(F_e,{value:d??{},children:[t,a.jsx(Kbe,{}),a.jsx(BCe,{}),a.jsx(ACe,{})]})})})})]})}const wS=Bn([]),h3=Bn(t=>t(wS),(t,e,n)=>{if(n.type==="INITIALIZE"){e(wS,n.rooms);return}e(wS,r=>{const o=r.filter(i=>i!==n.roomId);return n.type==="PUT"&&o.push(n.roomId),o})}),NCe=(t,e)=>{AW(t,e,f.useMemo(()=>[$n.Invite],[]))},Bd=5e3,Oh=Bn(new Map),zCe=(t,e)=>{let n=t.get(e.roomId)??[];return n=n.filter(r=>r.userId!==e.userId),n.push({userId:e.userId,ts:e.ts}),t.set(e.roomId,n),t},qW=(t,e)=>{let n=t.get(e.roomId)??[];return n=n.filter(r=>r.userId!==e.userId),n.length===0?t.delete(e.roomId):t.set(e.roomId,n),t},UCe=(t,e,n,r)=>{const o=(t.get(e)??[]).find(i=>i.userId===n);if(o)return Date.now()-o.ts>=r},kS=Bn(t=>t(Oh),(t,e,n)=>{var o;const r=t(Oh);n.type==="PUT"&&(e(Oh,po(r,i=>zCe(i,n))),setTimeout(()=>{const{roomId:i,userId:s}=n;UCe(t(Oh),i,s,Bd)&&e(Oh,po(t(Oh),u=>qW(u,{type:"DELETE",roomId:i,userId:s})))},Bd)),n.type==="DELETE"&&((o=r.get(n.roomId))!=null&&o.find(i=>i.userId===n.userId))&&e(Oh,po(r,i=>qW(i,n)))}),VCe=(t,e)=>{const n=Di(e),[r]=Ft(ut,"hideActivity");f.useEffect(()=>{const o=(i,s)=>{r||n({type:s.typing?"PUT":"DELETE",roomId:s.roomId,userId:s.userId,ts:Date.now()})};return t.on(oo.Typing,o),()=>{t.removeListener(oo.Typing,o)}},[t,n,r])},qCe=t=>{zbe(t,Co),NCe(t,h3),sCe(t,nr),Nbe(t,lo),pCe(t,co),VCe(t,kS)};function HCe({children:t}){const e=ge();return qCe(e),t}function $Ce({nav:t,children:e}){return a.jsxs(y,{grow:"Yes",children:[a.jsx(y,{shrink:"No",children:t}),a.jsx(y,{grow:"Yes",children:e})]})}function wm(t,e,n){let r=n.initialDeps??[],o;return()=>{var i,s,u,l;let c;n.key&&(i=n.debug)!=null&&i.call(n)&&(c=Date.now());const d=t();if(!(d.length!==r.length||d.some((h,m)=>r[m]!==h)))return o;r=d;let F;if(n.key&&(s=n.debug)!=null&&s.call(n)&&(F=Date.now()),o=e(...d),n.key&&(u=n.debug)!=null&&u.call(n)){const h=Math.round((Date.now()-c)*100)/100,m=Math.round((Date.now()-F)*100)/100,D=m/16,g=(p,_)=>{for(p=String(p);p.length<_;)p=" "+p;return p};console.info(`%c\u23F1 ${g(m,5)} /${g(h,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*D,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,o),o}}function SS(t,e){if(t===void 0)throw new Error("Unexpected undefined");return t}const WCe=(t,e)=>Math.abs(t-e)<1,KCe=t=>t,GCe=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),r=[];for(let o=e;o<=n;o++)r.push(o);return r},YCe=(t,e)=>{const n=t.scrollElement;if(!n)return;const r=i=>{const{width:s,height:u}=i;e({width:Math.round(s),height:Math.round(u)})};if(r(n.getBoundingClientRect()),typeof ResizeObserver>"u")return()=>{};const o=new ResizeObserver(i=>{const s=i[0];if(s!=null&&s.borderBoxSize){const u=s.borderBoxSize[0];if(u){r({width:u.inlineSize,height:u.blockSize});return}}r(n.getBoundingClientRect())});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},ZCe=(t,e)=>{const n=t.scrollElement;if(!n)return;const r=()=>{e(n[t.options.horizontal?"scrollLeft":"scrollTop"])};return r(),n.addEventListener("scroll",r,{passive:!0}),()=>{n.removeEventListener("scroll",r)}},JCe=(t,e,n)=>{if(e!=null&&e.borderBoxSize){const r=e.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(t.getBoundingClientRect()[n.options.horizontal?"width":"height"])},XCe=(t,{adjustments:e=0,behavior:n},r)=>{var o,i;const s=t+e;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:n})};class QCe{constructor(e){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(typeof ResizeObserver<"u"?n=new ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}):null);return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:KCe,rangeExtractor:GCe,onChange:()=>{},measureElement:JCe,initialRect:{width:0,height:0},scrollMargin:0,gap:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,...n}},this.notify=n=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,n)},this.maybeNotify=wm(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{const n=this.options.getScrollElement();this.scrollElement!==n&&(this.cleanup(),this.scrollElement=n,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,r=>{this.scrollAdjustments=0,this.scrollOffset!==r&&(this.isScrollingTimeoutId!==null&&(clearTimeout(this.isScrollingTimeoutId),this.isScrollingTimeoutId=null),this.isScrolling=!0,this.scrollDirection=this.scrollOffset<r?"forward":"backward",this.scrollOffset=r,this.maybeNotify(),this.isScrollingTimeoutId=setTimeout(()=>{this.isScrollingTimeoutId=null,this.isScrolling=!1,this.scrollDirection=null,this.maybeNotify()},this.options.scrollingDelay))})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.memoOptions=wm(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,r,o,i)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:i}),{key:!1}),this.getFurthestMeasurement=(n,r)=>{const o=new Map,i=new Map;for(let s=r-1;s>=0;s--){const u=n[s];if(o.has(u.lane))continue;const l=i.get(u.lane);if(l==null||u.end>l.end?i.set(u.lane,u):u.end<l.end&&o.set(u.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((s,u)=>s.end===u.end?s.index-u.index:s.end-u.end)[0]:void 0},this.getMeasurements=wm(()=>[this.memoOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:i},s)=>{const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const l=this.measurementsCache.slice(0,u);for(let c=u;c<n;c++){const d=i(c),F=this.options.lanes===1?l[c-1]:this.getFurthestMeasurement(l,c),h=F?F.end+this.options.gap:r+o,m=s.get(d),D=typeof m=="number"?m:this.options.estimateSize(c),g=h+D,p=F?F.lane:c%this.options.lanes;l[c]={index:c,start:h,size:D,end:g,key:d,lane:p}}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=wm(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,r,o)=>this.range=n.length>0&&r>0?eEe({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=wm(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,i)=>r===null?[]:n({...r,overscan:o,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.measurementsCache[this.indexFromElement(n)];if(!o||!n.isConnected){this.measureElementCache.forEach((u,l)=>{u===n&&(this.observer.unobserve(n),this.measureElementCache.delete(l))});return}const i=this.measureElementCache.get(o.key);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.measureElementCache.set(o.key,n));const s=this.options.measureElement(n,r,this);this.resizeItem(o,s)},this.resizeItem=(n,r)=>{const o=this.itemSizeCache.get(n.key)??n.size,i=r-o;i!==0&&(n.start<this.scrollOffset+this.scrollAdjustments&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=wm(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let i=0,s=n.length;i<s;i++){const u=n[i],l=r[u];o.push(l)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();return SS(r[HW(0,r.length-1,o=>SS(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize();r==="auto"&&(n<=this.scrollOffset?r="start":n>=this.scrollOffset+o?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-o:r==="center"&&(n=n-o/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",s=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-this.getSize();return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=SS(this.getMeasurements()[n]);if(r==="auto")if(o.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)r="end";else if(o.start<=this.scrollOffset+this.options.scrollPaddingStart)r="start";else return[this.scrollOffset,r];const i=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,r),r]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&(clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[i,s]=this.getOffsetForIndex(n,r);this._scrollToOffset(i,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&(this.scrollToIndexTimeoutId=setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[u]=this.getOffsetForIndex(n,s);WCe(u,this.scrollOffset)||this.scrollToIndex(n,{align:s,behavior:o})}else this.scrollToIndex(n,{align:s,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(i=>i.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.maybeNotify()}}const HW=(t,e,n,r)=>{for(;t<=e;){const o=(t+e)/2|0,i=n(o);if(i<r)t=o+1;else if(i>r)e=o-1;else return o}return t>0?t-1:0};function eEe({measurements:t,outerSize:e,scrollOffset:n}){const r=t.length-1,o=HW(0,r,s=>t[s].start,n);let i=o;for(;i<r&&t[i].end<n+e;)i++;return{startIndex:o,endIndex:i}}const tEe=typeof document<"u"?f.useLayoutEffect:f.useEffect;function nEe(t){const e=f.useReducer(()=>({}),{})[1],n={...t,onChange:(o,i)=>{var s;i?Wc.flushSync(e):e(),(s=t.onChange)==null||s.call(t,o,i)}},[r]=f.useState(()=>new QCe(n));return r.setOptions(n),f.useEffect(()=>r._didMount(),[]),tEe(()=>r._willUpdate()),r}function Ru(t){return nEe({observeElementRect:YCe,observeElementOffset:ZCe,scrollToFn:XCe,...t})}var rEe="t4fedt0 _1mqalmd1 _1mqalmd0",oEe="t4fedt1",iEe=br({defaultClassName:"_1mqalmd1 _1mqalmd0 t4fedt8 _1bugis91",variantClassNames:{variant:{Background:"t4fedta",Surface:"t4fedtb",SurfaceVariant:"t4fedtc",Primary:"t4fedtd",Secondary:"t4fedte",Success:"t4fedtf",Warning:"t4fedtg",Critical:"t4fedth"},radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"}},defaultVariants:{variant:"Surface",radii:"400"},compoundVariants:[]}),aEe="t4fedto",sEe="t4fedtp",$W="t4fedt2";const Jl=Ie(({className:t,...e},n)=>a.jsx("div",{className:Ve(rEe,t),...e,ref:n})),hE=Ie(({className:t,...e},n)=>a.jsx(In,{className:Ve(oEe,t),variant:"Background",size:"300",...e,ref:n}));function WW({children:t}){return a.jsx(y,{style:{padding:le.space.S500},grow:"Yes",direction:"Column",justifyContent:"Center",children:t})}function KW({icon:t,title:e,content:n,options:r}){return a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(y,{direction:"Column",alignItems:"Center",gap:"200",children:t}),a.jsxs(y,{direction:"Column",gap:"100",alignItems:"Center",children:[e,n]}),a.jsx(y,{direction:"Column",gap:"200",children:r})]})}const Qa=Ie(({as:t="div",className:e,highlight:n,variant:r,radii:o,children:i,...s},u)=>a.jsx(t,{className:Ve(iEe({variant:r,radii:o}),e),"data-highlight":n,...s,ref:u,children:i})),Xl=f.forwardRef(({className:t,...e},n)=>a.jsx(ep,{className:Ve($W,t),...e,ref:n})),jS=Ie(({as:t="button",className:e,...n},r)=>a.jsx(t,{className:Ve($W,e),...n,ref:r})),es=Ie(({className:t,...e},n)=>a.jsx(x,{className:Ve(aEe,t),size:"T300",...e,ref:n})),uEe=Ie(({className:t,...e},n)=>a.jsx(y,{className:Ve(sEe,t),alignItems:"Center",shrink:"No",gap:"0",...e,ref:n})),Mh=()=>{const t=ge(),{roomIdOrAlias:e}=uu();return e&&Rs(e)?jf(t,e):e},lEe=()=>!!gi({path:Eh(),caseSensitive:!0,end:!1}),cEe=()=>!!gi({path:s7(),caseSensitive:!0,end:!1}),F3=()=>{const t=ge(),e=_t(Co),n=_t(lo);return RW(t,nr,e,n)};var dEe="a6xo8r0 _1mqalmd1 _1mqalmd0";const Hs=Ie(({className:t,virtualItem:e,style:n,...r},o)=>a.jsx("div",{className:Ve(dEe,t),style:{top:e.start,...n},"data-index":e.index,...r,ref:o})),GW=typeof document<"u"?ft.useLayoutEffect:()=>{};function hEe(t){const e=f.useRef(null);return GW(()=>{e.current=t},[t]),f.useCallback((...n)=>{const r=e.current;return r==null?void 0:r(...n)},[])}class FEe{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function mEe(t){let e=f.useRef({isFocused:!1,observer:null});GW(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=hEe(r=>{t==null||t(r)});return f.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let o=r.target,i=s=>{e.current.isFocused=!1,o.disabled&&n(new FEe("blur",s)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){var s;(s=e.current.observer)===null||s===void 0||s.disconnect();let u=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function BS(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=t,i=f.useRef({isFocusWithin:!1}),s=f.useCallback(c=>{i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(c),o&&o(!1))},[n,o,i]),u=mEe(s),l=f.useCallback(c=>{!i.current.isFocusWithin&&document.activeElement===c.target&&(r&&r(c),o&&o(!0),i.current.isFocusWithin=!0,u(c))},[r,o,u]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let FE=!1,AS=0;function TS(){FE=!0,setTimeout(()=>{FE=!1},50)}function YW(t){t.pointerType==="touch"&&TS()}function DEe(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",YW):document.addEventListener("touchend",TS),AS++,()=>{AS--,!(AS>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",YW):document.removeEventListener("touchend",TS))}}function IS(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:r,isDisabled:o}=t,[i,s]=f.useState(!1),u=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(DEe,[]);let{hoverProps:l,triggerHoverEnd:c}=f.useMemo(()=>{let d=(m,D)=>{if(u.pointerType=D,o||D==="touch"||u.isHovered||!m.currentTarget.contains(m.target))return;u.isHovered=!0;let g=m.currentTarget;u.target=g,e&&e({type:"hoverstart",target:g,pointerType:D}),n&&n(!0),s(!0)},F=(m,D)=>{if(u.pointerType="",u.target=null,D==="touch"||!u.isHovered)return;u.isHovered=!1;let g=m.currentTarget;r&&r({type:"hoverend",target:g,pointerType:D}),n&&n(!1),s(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=m=>{FE&&m.pointerType==="mouse"||d(m,m.pointerType)},h.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&F(m,m.pointerType)}):(h.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=m=>{!u.ignoreEmulatedMouseEvents&&!FE&&d(m,"mouse"),u.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&F(m,"mouse")}),{hoverProps:h,triggerHoverEnd:F}},[e,n,r,o,u]);return f.useEffect(()=>{o&&c({currentTarget:u.target},u.pointerType)},[o]),{hoverProps:l,isHovered:i}}var mE={},DE={};Object.defineProperty(DE,"__esModule",{value:!0}),DE.defaultOptions=void 0,DE.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.getLocales=Ou.getFractionDigits=Ou.roundTo=Ou.parseValue=void 0;function gEe(t){const e=parseFloat(t==null?void 0:t.toString());if(isNaN(e))throw new Error("Input value is not a number");if(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return e}Ou.parseValue=gEe;function pEe(t,e){if(!Number.isFinite(t))throw new Error("Input value is not a finite number");if(!Number.isInteger(e)||e<0)throw new Error("Precision is not a positive integer");return Number.isInteger(t)?t:parseFloat(t.toFixed(e))}Ou.roundTo=pEe;function fEe(t){var e;if(Number.isInteger(t))return 0;const n=t.toString().split(".")[1];return(e=n==null?void 0:n.length)!==null&&e!==void 0?e:0}Ou.getFractionDigits=fEe;function _Ee(){var t;return typeof navigator>"u"?[]:Array.from((t=navigator.languages)!==null&&t!==void 0?t:[])}Ou.getLocales=_Ee,Object.defineProperty(mE,"__esModule",{value:!0}),mE.millify=void 0;const ZW=DE,gE=Ou,JW=1e3;function*XW(t){let e=JW;for(;;){const n=t/e;if(n<1)return;yield n,e*=JW}}function QW(t,e){var n,r;const o=e?{...ZW.defaultOptions,...e}:ZW.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=gE.parseValue(t)}catch(m){return m instanceof Error&&console.warn(`WARN: ${m.message} (millify)`),String(t)}const s=i<0?"-":"";i=Math.abs(i);let u=0;for(const m of XW(i))i=m,u+=1;if(u>=o.units.length)return t.toString();let l=gE.roundTo(i,o.precision);for(const m of XW(l))l=m,u+=1;const c=(n=o.units[u])!==null&&n!==void 0?n:"",d=o.lowercase?c.toLowerCase():c,F=o.space?" ":"",h=l.toLocaleString((r=o.locales)!==null&&r!==void 0?r:gE.getLocales(),{minimumFractionDigits:gE.getFractionDigits(l)});return`${s}${h}${F}${d}`}mE.millify=QW;var vEe=mE.default=QW;const pE=(t,e)=>vEe(t,{precision:1,locales:[],...e}),bEe={minWidth:Dt(16)};function CEe({children:t}){return a.jsx(y,{as:"span",style:bEe,shrink:"No",alignItems:"Center",justifyContent:"Center",children:t})}function Ph({highlight:t,count:e}){return a.jsx(Bt,{variant:t?"Success":"Secondary",size:e>0?"400":"200",fill:"Solid",radii:"Pill",outlined:!1,children:e>0&&a.jsx(x,{as:"span",size:"L400",children:pE(e)})})}var eK="_10jmv560";function ho({roomId:t,src:e,alt:n,renderFallback:r}){const[o,i]=f.useState(!1),s=u=>{u.currentTarget.setAttribute("data-image-loaded","true")};return!e||o?a.jsx(U1,{style:{backgroundColor:Vs(t??""),color:ct.Surface.Container},className:eK,children:r()}):a.jsx(xl,{className:eK,src:e,alt:n,onError:()=>i(!0),onLoad:s,draggable:!1})}const ts=f.forwardRef(({joinRule:t,space:e,...n},r)=>a.jsx(Q,{src:J5($,t,e||!1)??$.Hash,...n,ref:r})),tK=(t,e)=>!t||!e?!1:CS(t,e),EEe=(t,e)=>t.reduce((n,r)=>{var s;const o=e.get(r);if(!o)return n;const i=n??{total:0,highlight:0,from:new Set};return i.total+=o.total,i.highlight+=o.highlight,(s=i.from)==null||s.add(r),i},void 0),Ql=(t,e)=>{const n=f.useCallback(r=>EEe(t,r),[t]);return _t(a3(e,n,tK))},km=(t,e)=>{const n=f.useCallback(r=>r.get(t),[t]);return _t(a3(e,n,tK))},vi=(t,e,n="")=>{const[r,o]=xW();return Tu(t.client,f.useCallback(i=>{i.getRoomId()===t.roomId&&i.getType()===e&&i.getStateKey()===n&&o()},[t,e,n,o])),f.useMemo(()=>so(t,e,n),[t,e,n,r])},ec={users_default:0,state_default:50,events_default:0,invite:0,redact:50,kick:50,ban:50,historical:0,events:{},users:{},notifications:{room:50}},yEe=t=>po(t,e=>(Object.keys(ec).forEach(n=>{e[n]===void 0&&(e[n]=ec[n])}),e.notifications&&typeof e.notifications.room!="number"&&(e.notifications.room=ec.notifications.room),e)),nK=t=>{const e=t==null?void 0:t.getContent();return e?yEe(e):ec};function Bi(t){const e=vi(t,Re.RoomPowerLevels);return f.useMemo(()=>nK(e),[e])}const rK=f.createContext(null),oK=rK.Provider,Lh=()=>{const t=f.useContext(rK);if(!t)throw new Error("PowerLevelContext is not initialized!");return t},xEe=t=>{const e=ge(),n=f.useCallback(()=>{const i=new Map;return t.forEach(s=>{const u=so(s,Re.RoomPowerLevels,"");i.set(s.roomId,nK(u))}),i},[t]),[r,o]=f.useState(()=>n());return Tu(e,f.useCallback(i=>{const s=i.getRoomId();s&&i.getType()===Re.RoomPowerLevels&&i.getStateKey()===""&&t.find(u=>u.roomId===s)&&o(n())},[t,n])),r},Mu={user:(t,e)=>{const{users_default:n,users:r}=t;return e&&r&&typeof r[e]=="number"?r[e]:n??ec.users_default},event:(t,e)=>{const{events:n,events_default:r}=t;return n&&e&&typeof n[e]=="number"?n[e]:r??ec.events_default},state:(t,e)=>{const{events:n,state_default:r}=t;return n&&e&&typeof n[e]=="number"?n[e]:r??ec.state_default},action:(t,e)=>{const n=t[e];return typeof n=="number"?n:ec[e]},notification:(t,e)=>{var r;const n=(r=t.notifications)==null?void 0:r[e];return typeof n=="number"?n:ec.notifications[e]}},mr={getPowerLevel:(t,e)=>Mu.user(t,e),canSendEvent:(t,e,n)=>{const r=Mu.event(t,e);return n>=r},canSendStateEvent:(t,e,n)=>{const r=Mu.state(t,e);return n>=r},canDoAction:(t,e,n)=>{const r=Mu.action(t,e);return n>=r},canDoNotificationAction:(t,e,n)=>{const r=Mu.notification(t,e);return n>=r}},yo=t=>{const e=f.useCallback(s=>mr.getPowerLevel(t,s),[t]),n=f.useCallback((s,u)=>mr.canSendEvent(t,s,u),[t]),r=f.useCallback((s,u)=>mr.canSendStateEvent(t,s,u),[t]),o=f.useCallback((s,u)=>mr.canDoAction(t,s,u),[t]),i=f.useCallback((s,u)=>mr.canDoNotificationAction(t,s,u),[t]);return{getPowerLevel:e,canSendEvent:n,canSendStateEvent:r,canDoAction:o,canDoNotificationAction:i}},fE=(t,e)=>"user"in e?Mu.user(t,e.key):"action"in e?Mu.action(t,e.key):"notification"in e?Mu.notification(t,e.key):"state"in e?Mu.state(t,e.key):Mu.event(t,e.key),iK=(t,e,n)=>{if("user"in e){if(typeof e.key=="string"){const r=t.users??{};return r[e.key]=n,t.users=r,t}return t.users_default=n,t}if("action"in e)return t[e.key]=n,t;if("notification"in e){const r=t.notifications??{};return r[e.key]=n,t.notifications=r,t}if("state"in e){if(typeof e.key=="string"){const r=t.events??{};return r[e.key]=n,t.events=r,t}return t.state_default=n,t}if(typeof e.key=="string"){const r=t.events??{};return r[e.key]=n,t.events=r,t}return t.events_default=n,t};async function ta(t,e,n){const r=t.getRoom(e);if(!r)return;const o=r.getLiveTimeline().getEvents(),i=r.getEventReadUpTo(t.getUserId()),s=()=>{for(let l=o.length-1;l>=0;l-=1){const c=o[l];if(c.getId()===i)return null;if(!c.isSending())return c}return null};if(o.length===0)return;const u=s();u!==null&&await t.sendReadReceipt(u,n?ti.ReadPrivate:ti.Read)}function RS({roomId:t,onDone:e,onCancel:n}){const r=ge(),[o,i]=et(f.useCallback(async()=>{r.leave(t)},[r,t])),s=()=>{i()};return f.useEffect(()=>{o.status===he.Success&&e()},[o,e]),a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:n,clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsxs(cr,{variant:"Surface",children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Leave Room"})}),a.jsx(Me,{size:"300",onClick:n,radii:"300",children:a.jsx(Q,{src:$.Cross})})]}),a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(x,{priority:"400",children:"Are you sure you want to leave this room?"}),o.status===he.Error&&a.jsxs(x,{style:{color:ct.Critical.Main},size:"T300",children:["Failed to leave room! ",o.error.message]})]}),a.jsx(Ee,{type:"submit",variant:"Critical",onClick:s,before:o.status===he.Loading?a.jsx(ot,{fill:"Solid",variant:"Critical",size:"200"}):void 0,"aria-disabled":o.status===he.Loading||o.status===he.Success,children:a.jsx(x,{size:"B400",children:o.status===he.Loading?"Leaving...":"Leave"})})]})]})})})})}const wEe=(t,e)=>t.userId===e.userId&&t.ts===e.ts,kEe=(t,e)=>t.length!==e.length?!1:t.every((n,r)=>wEe(n,e[r])),OS=t=>{const e=f.useCallback(n=>n.get(t)??[],[t]);return _t(a3(kS,e,kEe))};var MS=br({defaultClassName:"_1qfvrm51 _1mqalmd1 _1mqalmd0",variantClassNames:{animated:{true:"_1qfvrm52"},size:{300:"_1qfvrm53",400:"_1qfvrm54"},index:{0:"_1qfvrm55",1:"_1qfvrm56",2:"_1qfvrm57"}},defaultVariants:{size:"400",animated:!0},compoundVariants:[]});const PS=Ie(({size:t,disableAnimation:e,style:n,...r},o)=>a.jsxs(y,{as:"span",alignItems:"Center",shrink:"No",style:{gap:Dt(t==="300"?1:2),...n},...r,ref:o,children:[a.jsx("span",{className:MS({size:t,index:"0",animated:!e})}),a.jsx("span",{className:MS({size:t,index:"1",animated:!e})}),a.jsx("span",{className:MS({size:t,index:"2",animated:!e})})]})),aK="https://matrix.to",sK=(t,e)=>`${t}?${e.map(n=>`via=${n}`).join("&")}`,_E=(t,e)=>{let n=t;return Array.isArray(e)&&e.length>0&&(n=sK(n,e)),`${aK}/#/${n}`},SEe=(t,e,n)=>{let r=`${t}/${e}`;return Array.isArray(n)&&n.length>0&&(r=sK(r,n)),`${aK}/#/${r}`},jEe=/^https?:\/\/matrix\.to\S*$/,vE=t=>jEe.test(t),BEe=/^https?:\/\/matrix\.to\/#\/(@[^:\s]+:[^?/\s]+)\/?$/,AEe=/^https?:\/\/matrix\.to\/#\/([#!][^:\s]+:[^?/\s]+)\/?(\?[\S]*)?$/,TEe=/^https?:\/\/matrix\.to\/#\/([#!][^:\s]+:[^?/\s]+)\/(\$[^?/\s]+)\/?(\?[\S]*)?$/,uK=t=>{const e=t.match(BEe);return e?e[1]:void 0},lK=t=>{const e=t.match(AEe);if(!e)return;const n=e[1],r=e[2],o=new URLSearchParams(r).getAll("via");return{roomIdOrAlias:n,viaServers:o.length===0?void 0:o}},cK=t=>{const e=t.match(TEe);if(!e)return;const n=e[1],r=e[2],o=e[3],i=new URLSearchParams(o).getAll("via");return{roomIdOrAlias:n,eventId:r,viaServers:i.length===0?void 0:i}};var ns=(t=>(t[t.GeneralPage=0]="GeneralPage",t[t.MembersPage=1]="MembersPage",t[t.PermissionsPage=2]="PermissionsPage",t[t.EmojisStickersPage=3]="EmojisStickersPage",t[t.DeveloperToolsPage=4]="DeveloperToolsPage",t))(ns||{});const LS=Bn(void 0),IEe=()=>_t(LS),REe=()=>{const t=Di(LS);return f.useCallback(()=>{t(void 0)},[t])},NS=()=>{const t=Di(LS);return f.useCallback((e,n,r)=>{t({roomId:e,spaceId:n,page:r})},[t])},zS=f.createContext(null),US=zS.Provider;function Nh(){const t=f.useContext(zS);if(!t)throw new Error("Space not provided!");return t}function m3(){return f.useContext(zS)}const OEe=()=>f.useMemo(()=>[qs.Unset,qs.AllMessages,qs.SpecialMessages,qs.Mute],[]),MEe=()=>f.useMemo(()=>({[qs.Unset]:"Default",[qs.AllMessages]:"All Messages",[qs.SpecialMessages]:"Mention & Keywords",[qs.Mute]:"Mute"}),[]);function dK({roomId:t,value:e=qs.Unset,children:n}){const r=OEe(),o=MEe(),{modeState:i,setMode:s}=DCe(t),u=i.status===he.Loading,[l,c]=f.useState(),d=m=>{c(m.currentTarget.getBoundingClientRect())},F=()=>{c(void 0)},h=m=>{u||(s(m,e),F())};return a.jsx(Ut,{anchor:l,offset:5,position:"Right",align:"Start",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:F,clickOutsideDeactivates:!0,isKeyForward:m=>m.key==="ArrowDown"||m.key==="ArrowRight",isKeyBackward:m=>m.key==="ArrowUp"||m.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(zt,{children:a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:r.map(m=>a.jsx(tt,{size:"300",variant:"Surface","aria-pressed":m===e,radii:"300",disabled:u,onClick:()=>h(m),before:a.jsx(Q,{size:"100",src:cE(m),filled:m===e}),children:a.jsx(x,{size:"T300",children:m===e?a.jsx("b",{children:o[m]}):o[m]})},m))})})}),children:n(d,!!l,u)})}const PEe=f.forwardRef(({room:t,requestClose:e,notificationMode:n},r)=>{const o=ge(),[i]=Ft(ut,"hideActivity"),s=km(t.roomId,co),u=Bi(t),{getPowerLevel:l,canDoAction:c}=yo(u),d=c("invite",l(o.getUserId()??"")),F=NS(),h=m3(),m=()=>{ta(o,t.roomId,i),e()},D=()=>{Au(t.roomId),e()},g=()=>{const _=vo(o,t.roomId),v=Rs(_)?void 0:wd(t);Vl(_E(_,v)),e()},p=()=>{F(t.roomId,h==null?void 0:h.roomId),e()};return a.jsxs(zt,{ref:r,style:{maxWidth:Dt(160),width:"100vw"},children:[a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[a.jsx(tt,{onClick:m,size:"300",after:a.jsx(Q,{size:"100",src:$.CheckTwice}),radii:"300",disabled:!s,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Mark as Read"})}),a.jsx(dK,{roomId:t.roomId,value:n,children:(_,v,E)=>a.jsx(tt,{size:"300",after:E?a.jsx(ot,{size:"100",variant:"Secondary"}):a.jsx(Q,{size:"100",src:cE(n)}),radii:"300","aria-pressed":v,onClick:_,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Notifications"})})})]}),a.jsx(jn,{variant:"Surface",size:"300"}),a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[a.jsx(tt,{onClick:D,variant:"Primary",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.UserPlus}),radii:"300",disabled:!d,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Invite"})}),a.jsx(tt,{onClick:g,size:"300",after:a.jsx(Q,{size:"100",src:$.Link}),radii:"300",children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Copy Link"})}),a.jsx(tt,{onClick:p,size:"300",after:a.jsx(Q,{size:"100",src:$.Setting}),radii:"300",children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Room Settings"})})]}),a.jsx(jn,{variant:"Surface",size:"300"}),a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:a.jsx(Oo,{initial:!1,children:(_,v)=>a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:()=>v(!0),variant:"Critical",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.ArrowGoLeft}),radii:"300","aria-pressed":_,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Leave Room"})}),_&&a.jsx(RS,{roomId:t.roomId,onDone:e,onCancel:()=>v(!1)})]})})})]})});function VS({room:t,selected:e,showAvatar:n,direct:r,notificationMode:o,linkPath:i}){const s=ge(),u=Tt(),[l,c]=f.useState(!1),{hoverProps:d}=IS({onHoverChange:c}),{focusWithinProps:F}=BS({onFocusWithinChange:c}),[h,m]=f.useState(),D=km(t.roomId,co),g=OS(t.roomId).filter(E=>E.userId!==s.getUserId()),p=E=>{E.preventDefault(),m({x:E.clientX,y:E.clientY,width:0,height:0})},_=E=>{m(E.currentTarget.getBoundingClientRect())},v=l||!!h;return a.jsxs(Qa,{variant:"Background",radii:"400",highlight:D!==void 0,"aria-selected":e,"data-hover":!!h,onContextMenu:p,...d,...F,children:[a.jsx(Xl,{to:i,children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:n?a.jsx(ho,{roomId:t.roomId,src:r?DC(s,t,96,u):Hl(s,t,96,u),alt:t.name,renderFallback:()=>a.jsx(x,{as:"span",size:"H6",children:Gi(t.name)})}):a.jsx(ts,{style:{opacity:D?le.opacity.P500:le.opacity.P300},filled:e,size:"100",joinRule:t.getJoinRule()})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{priority:D?"500":"300",as:"span",size:"Inherit",truncate:!0,children:t.name})}),!v&&!D&&!e&&g.length>0&&a.jsx(Bt,{size:"300",variant:"Secondary",fill:"Soft",radii:"Pill",outlined:!0,children:a.jsx(PS,{size:"300",disableAnimation:!0})}),!v&&D&&a.jsx(CEe,{children:a.jsx(Ph,{highlight:D.highlight>0,count:D.total})}),!v&&o!==qs.Unset&&a.jsx(Q,{size:"50",src:cE(o)})]})})}),v&&a.jsx(uEe,{children:a.jsx(Ut,{anchor:h,offset:(h==null?void 0:h.width)===0?0:void 0,alignOffset:(h==null?void 0:h.width)===0?0:-5,position:"Bottom",align:(h==null?void 0:h.width)===0?"Start":"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>m(void 0),clickOutsideDeactivates:!0,isKeyForward:E=>E.key==="ArrowDown",isKeyBackward:E=>E.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(PEe,{room:t,requestClose:()=>m(void 0),notificationMode:o})}),children:a.jsx(Me,{onClick:_,"aria-pressed":!!h,variant:"Background",fill:"None",size:"300",radii:"300",children:a.jsx(Q,{size:"50",src:$.VerticalDots})})})})]})}var LEe="kv37ph0",NEe="kv37ph1";const qS=Ie(({className:t,closed:e,children:n,...r},o)=>a.jsx(We,{className:Ve(LEe,t),variant:"Background",radii:"Pill",before:a.jsx(Q,{className:NEe,size:"50",src:e?$.ChevronRight:$.ChevronBottom}),...r,ref:o,children:a.jsx(x,{size:"O400",priority:"300",truncate:!0,children:n})})),zEe="closedNavCategories",UEe=t=>{const e=`${zEe}${t}`,n=Lf(e,r=>{const o=Mf(r,[]);return new Set(o)},(r,o)=>{const i=Array.from(o);Pf(r,i)});return Bn(r=>r(n),(r,o,i)=>{if(i.type==="DELETE"){o(n,po(r(n),s=>{s.delete(i.categoryId)}));return}i.type==="PUT"&&o(n,po(r(n),s=>{s.add(i.categoryId)}))})},D3=(...t)=>t.join("|"),bE=(t,e)=>n=>{const r=n.currentTarget.getAttribute("data-category-id");if(r){if(e(r)){t({type:"DELETE",categoryId:r});return}t({type:"PUT",categoryId:r})}},hK=f.createContext(null),VEe=hK.Provider,Sm=()=>{const t=f.useContext(hK);if(!t)throw new Error("NavToActivePathAtom is not provided!");return t},g3=t=>{const e=Bl(),n=Di(Sm());f.useEffect(()=>{const{pathname:r,search:o,hash:i}=e;n({type:"PUT",navId:t,path:{pathname:r,search:o,hash:i}})},[e,n,t])};var qEe="_1xki9of8 _1mqalmd1 _1mqalmd0",HEe="_1xki9ofb _1mqalmd1 _1mqalmd0",$Ee=br({defaultClassName:"_1xki9of5",variantClassNames:{balance:{true:"_1xki9of6"},outlined:{true:"_1xki9of7"}},defaultVariants:{outlined:!0},compoundVariants:[]}),WEe="_1xki9of9 _1mqalmd1 _1mqalmd0",KEe="_1xki9ofa _1mqalmd1 _1mqalmd0",GEe=br({defaultClassName:"",variantClassNames:{size:{300:"_1xki9of0",400:"_1xki9of1"}},defaultVariants:{size:"400"},compoundVariants:[]}),YEe="_1xki9of4",ZEe=br({defaultClassName:"_1xki9of2",variantClassNames:{outlined:{true:"_1xki9of3"}},defaultVariants:{outlined:!0},compoundVariants:[]});const FK=(t,e)=>e.find(n=>n.target===t),mK=(t,e)=>{const n=f.useMemo(()=>new ResizeObserver(t),[t]);return f.useEffect(()=>()=>n==null?void 0:n.disconnect(),[n]),f.useEffect(()=>{const r=typeof e=="function"?e():e;return r&&n.observe(r),()=>{r&&n.unobserve(r)}},[n,e]),n},p3=(t,e)=>{mK(f.useCallback(n=>{const r=t();if(!r)return;const o=FK(r,n);if(o){const{clientWidth:i,clientHeight:s}=o.target;e(i,s,r)}},[t,e]),t)},JEe=1124,XEe=750;var en=(t=>(t.Desktop="Desktop",t.Tablet="Tablet",t.Mobile="Mobile",t))(en||{});const DK=t=>t>JEe?"Desktop":t>XEe?"Tablet":"Mobile",QEe=()=>{const[t,e]=f.useState(DK(document.body.clientWidth));return p3(f.useCallback(()=>document.body,[]),f.useCallback(n=>e(DK(n)),[])),t},gK=f.createContext(null),e8e=gK.Provider,Wr=()=>{const t=f.useContext(gK);if(t===null)throw new Error("Screen size not provided!");return t};function Ad({nav:t,children:e}){const n=Wr();return a.jsxs(y,{grow:"Yes",className:ai({variant:"Background"}),children:[t,n!==en.Mobile&&a.jsx(jn,{variant:"Background",size:"300",direction:"Vertical"}),e]})}function Td({size:t,children:e}){const n=Wr()===en.Mobile;return a.jsx(y,{grow:n?"Yes":void 0,className:GEe({size:t}),shrink:n?"Yes":"No",children:a.jsx(y,{grow:"Yes",direction:"Column",children:e})})}const Id=Ie(({className:t,outlined:e,...n},r)=>a.jsx(In,{className:Ve(ZEe({outlined:e}),t),variant:"Background",size:"600",...n,ref:r}));function Rd({scrollRef:t,children:e}){return a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(Mt,{ref:t,variant:"Background",direction:"Vertical",size:"300",hideTrack:!0,visibility:"Hover",children:a.jsx("div",{className:YEe,children:e})})})}const ur=Ie(({className:t,...e},n)=>a.jsx(y,{grow:"Yes",direction:"Column",className:Ve(ai({variant:"Surface"}),t),...e,ref:n})),Dr=Ie(({className:t,outlined:e,balance:n,...r},o)=>a.jsx(In,{as:"header",size:"600",className:Ve($Ee({balance:n,outlined:e}),t),...r,ref:o})),Kr=Ie(({className:t,...e},n)=>a.jsx("div",{className:Ve(qEe,t),...e,ref:n}));function CE({children:t}){return a.jsx(y,{className:Ve(ai({variant:"SurfaceVariant"}),WEe),direction:"Column",alignItems:"Center",justifyContent:"Center",gap:"200",children:t})}const Od=Ie(({className:t,...e},n)=>a.jsx(y,{direction:"Column",className:Ve(KEe,t),...e,ref:n}));function Md({icon:t,title:e,subTitle:n,children:r}){return a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(y,{direction:"Column",alignItems:"Center",gap:"200",children:t}),a.jsxs(y,{as:"h2",direction:"Column",gap:"200",alignItems:"Center",children:[a.jsx(x,{align:"Center",size:"H2",children:e}),a.jsx(x,{align:"Center",priority:"400",children:n})]}),r]})}const zh=Ie(({className:t,...e},n)=>a.jsx("div",{className:Ve(HEe,t),...e,ref:n})),pK=f.createContext(null),t8e=pK.Provider,HS=()=>{const t=f.useContext(pK);if(!t)throw new Error("ClosedNavCategoriesAtom is not provided!");return t},n8e=f.forwardRef(({requestClose:t},e)=>{const n=F3(),[r]=Ft(ut,"hideActivity"),o=Ql(n,co),i=ge(),s=()=>{o&&(n.forEach(l=>ta(i,l,r)),t())},u=()=>{bW(),t()};return a.jsx(zt,{ref:e,style:{maxWidth:Dt(160),width:"100vw"},children:a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[a.jsx(tt,{onClick:s,size:"300",after:a.jsx(Q,{size:"100",src:$.CheckTwice}),radii:"300","aria-disabled":!o,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Mark as Read"})}),a.jsx(tt,{onClick:u,size:"300",radii:"300",after:a.jsx(Q,{size:"100",src:$.Link}),children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Join with Address"})})]})})});function r8e(){const[t,e]=f.useState(),n=r=>{const o=r.currentTarget.getBoundingClientRect();e(i=>{if(!i)return o})};return a.jsxs(a.Fragment,{children:[a.jsx(Id,{children:a.jsxs(y,{alignItems:"Center",grow:"Yes",gap:"300",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",truncate:!0,children:"Home"})}),a.jsx(y,{children:a.jsx(Me,{"aria-pressed":!!t,variant:"Background",onClick:n,children:a.jsx(Q,{src:$.VerticalDots,size:"200"})})})]})}),a.jsx(Ut,{anchor:t,position:"Bottom",align:"End",offset:6,content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>e(void 0),clickOutsideDeactivates:!0,isKeyForward:r=>r.key==="ArrowDown",isKeyBackward:r=>r.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(n8e,{requestClose:()=>e(void 0)})})})]})}function o8e(){const t=Xr();return a.jsx(WW,{children:a.jsx(KW,{icon:a.jsx(Q,{size:"600",src:$.Hash}),title:a.jsx(x,{size:"H5",align:"Center",children:"No Rooms"}),content:a.jsx(x,{size:"T300",align:"Center",children:"You do not have any rooms yet."}),options:a.jsxs(a.Fragment,{children:[a.jsx(Ee,{onClick:()=>s3(),variant:"Secondary",size:"300",children:a.jsx(x,{size:"B300",truncate:!0,children:"Create Room"})}),a.jsx(Ee,{onClick:()=>t(Tf()),variant:"Secondary",fill:"Soft",size:"300",children:a.jsx(x,{size:"B300",truncate:!0,children:"Explore Community Rooms"})})]})})})}const EE=D3("home","room");function i8e(){const t=ge();g3("home");const e=f.useRef(null),n=F3(),r=l3(),o=_t(co),i=Mh(),s=cEe(),u=n.length===0,[l,c]=Yi(HS()),d=f.useMemo(()=>{const m=Array.from(n).sort(l.has(EE)?c3(t):LW(t));return l.has(EE)?m.filter(D=>o.has(D)||D===i):m},[t,n,l,o,i]),F=Ru({count:d.length,getScrollElement:()=>e.current,estimateSize:()=>38,overscan:10}),h=bE(c,m=>l.has(m));return a.jsxs(Td,{children:[a.jsx(r8e,{}),u?a.jsx(o8e,{}):a.jsx(Rd,{scrollRef:e,children:a.jsxs(y,{direction:"Column",gap:"300",children:[a.jsxs(Jl,{children:[a.jsx(Qa,{variant:"Background",radii:"400",children:a.jsx(jS,{onClick:()=>s3(),children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:a.jsx(Q,{src:$.Plus,size:"100"})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:"Create Room"})})]})})})}),a.jsx(Qa,{variant:"Background",radii:"400",children:a.jsx(jS,{onClick:()=>bW(),children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:a.jsx(Q,{src:$.Link,size:"100"})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:"Join with Address"})})]})})})}),a.jsx(Qa,{variant:"Background",radii:"400","aria-selected":s,children:a.jsx(Xl,{to:s7(),children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:a.jsx(Q,{src:$.Search,size:"100",filled:s})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:"Message Search"})})]})})})})]}),a.jsxs(Jl,{children:[a.jsx(hE,{children:a.jsx(qS,{closed:l.has(EE),"data-category-id":EE,onClick:h,children:"Rooms"})}),a.jsx("div",{style:{position:"relative",height:F.getTotalSize()},children:F.getVirtualItems().map(m=>{const D=d[m.index],g=t.getRoom(D);if(!g)return null;const p=i===D;return a.jsx(Hs,{virtualItem:m,ref:F.measureElement,children:a.jsx(VS,{room:g,selected:p,linkPath:u7(vo(t,D)),notificationMode:lE(r,g.roomId)})},m.index)})})]})]})})]})}var a8e=br({defaultClassName:"azdvag1",variantClassNames:{outlined:{true:"azdvag2"}},defaultVariants:{},compoundVariants:[]});const rt=Ie(({className:t,variant:e,firstChild:n,lastChild:r,outlined:o,...i},s)=>a.jsx(y,{className:Ve(a8e({outlined:o}),ai({variant:e}),t),"data-first-child":n,"data-last-child":r,...i,ref:s}));var s8e="hwco3u1";const yE=(t,e)=>e.find(n=>n.target===t),xE=(t,e,n)=>{const[r,o]=f.useState();return f.useEffect(()=>{const i=typeof e=="function"?e():e;o(new IntersectionObserver(t,i))},[t,e]),f.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),f.useEffect(()=>{const i=typeof n=="function"?n():n;return i&&(r==null||r.observe(i)),()=>{i&&(r==null||r.unobserve(i))}},[r,n]),r},f3=Ie(({className:t,scrollRef:e,anchorRef:n,onVisibilityChange:r,...o},i)=>{const[s,u]=f.useState(!0);return xE(f.useCallback(l=>{if(!n.current)return;const c=yE(n.current,l);c&&(u(c.isIntersecting),r==null||r(c.isIntersecting))},[n,r]),f.useCallback(()=>({root:e==null?void 0:e.current}),[e]),f.useCallback(()=>n.current,[n])),s?null:a.jsx(y,{className:Ve(s8e,t),...o,ref:i})}),u8e=t=>{const e=[];return t.forEach(n=>{const r=n.result.room_id,o={rank:n.rank,event:n.result,context:n.context},i=e[e.length-1];if(i&&r===i.roomId){i.items.push(o);return}e.push({roomId:r,items:[o]})}),e},l8e=t=>{const e=t.search_categories.room_events;return{nextToken:e==null?void 0:e.next_batch,highlights:(e==null?void 0:e.highlights)??[],groups:u8e((e==null?void 0:e.results)??[])}},c8e=t=>{const e=ge(),{term:n,order:r,rooms:o,senders:i}=t;return f.useCallback(async s=>{if(!n)return{highlights:[],groups:[]};const u={search_categories:{room_events:{event_context:{before_limit:0,after_limit:0,include_profile:!1},filter:{limit:20,rooms:o,senders:i},include_state:!1,order_by:r,search_term:n}}},l=await e.search({body:u,next_batch:s===""?void 0:s});return l8e(l)},[e,n,r,o,i])};var eo={},jm={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function n(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(jm);var An={},Pd=Qe&&Qe.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_3=Qe&&Qe.__assign||function(){return _3=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},_3.apply(this,arguments)};Object.defineProperty(An,"__esModule",{value:!0}),An.cloneNode=An.hasChildren=An.isDocument=An.isDirective=An.isComment=An.isText=An.isCDATA=An.isTag=An.Element=An.Document=An.CDATA=An.NodeWithChildren=An.ProcessingInstruction=An.Comment=An.Text=An.DataNode=An.Node=void 0;var na=jm,$S=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),WS(this,e)},t}();An.Node=$S;var wE=function(t){Pd(e,t);function e(n){var r=t.call(this)||this;return r.data=n,r}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),e}($S);An.DataNode=wE;var fK=function(t){Pd(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=na.ElementType.Text,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(wE);An.Text=fK;var _K=function(t){Pd(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=na.ElementType.Comment,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(wE);An.Comment=_K;var vK=function(t){Pd(e,t);function e(n,r){var o=t.call(this,r)||this;return o.name=n,o.type=na.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(wE);An.ProcessingInstruction=vK;var kE=function(t){Pd(e,t);function e(n){var r=t.call(this)||this;return r.children=n,r}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),e}($S);An.NodeWithChildren=kE;var bK=function(t){Pd(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=na.ElementType.CDATA,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(kE);An.CDATA=bK;var CK=function(t){Pd(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=na.ElementType.Root,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(kE);An.Document=CK;var EK=function(t){Pd(e,t);function e(n,r,o,i){o===void 0&&(o=[]),i===void 0&&(i=n==="script"?na.ElementType.Script:n==="style"?na.ElementType.Style:na.ElementType.Tag);var s=t.call(this,o)||this;return s.name=n,s.attribs=r,s.type=i,s}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var o,i;return{name:r,value:n.attribs[r],namespace:(o=n["x-attribsNamespace"])===null||o===void 0?void 0:o[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),e}(kE);An.Element=EK;function yK(t){return(0,na.isTag)(t)}An.isTag=yK;function xK(t){return t.type===na.ElementType.CDATA}An.isCDATA=xK;function wK(t){return t.type===na.ElementType.Text}An.isText=wK;function kK(t){return t.type===na.ElementType.Comment}An.isComment=kK;function SK(t){return t.type===na.ElementType.Directive}An.isDirective=SK;function jK(t){return t.type===na.ElementType.Root}An.isDocument=jK;function d8e(t){return Object.prototype.hasOwnProperty.call(t,"children")}An.hasChildren=d8e;function WS(t,e){e===void 0&&(e=!1);var n;if(wK(t))n=new fK(t.data);else if(kK(t))n=new _K(t.data);else if(yK(t)){var r=e?KS(t.children):[],o=new EK(t.name,_3({},t.attribs),r);r.forEach(function(l){return l.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=_3({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=_3({},t["x-attribsPrefix"])),n=o}else if(xK(t)){var r=e?KS(t.children):[],i=new bK(r);r.forEach(function(c){return c.parent=i}),n=i}else if(jK(t)){var r=e?KS(t.children):[],s=new CK(r);r.forEach(function(c){return c.parent=s}),t["x-mode"]&&(s["x-mode"]=t["x-mode"]),n=s}else if(SK(t)){var u=new vK(t.name,t.data);t["x-name"]!=null&&(u["x-name"]=t["x-name"],u["x-publicId"]=t["x-publicId"],u["x-systemId"]=t["x-systemId"]),n=u}else throw new Error("Not implemented yet: ".concat(t.type));return n.startIndex=t.startIndex,n.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(n.sourceCodeLocation=t.sourceCodeLocation),n}An.cloneNode=WS;function KS(t){for(var e=t.map(function(r){return WS(r,!0)}),n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}(function(t){var e=Qe&&Qe.__createBinding||(Object.create?function(u,l,c,d){d===void 0&&(d=c);var F=Object.getOwnPropertyDescriptor(l,c);(!F||("get"in F?!l.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return l[c]}}),Object.defineProperty(u,d,F)}:function(u,l,c,d){d===void 0&&(d=c),u[d]=l[c]}),n=Qe&&Qe.__exportStar||function(u,l){for(var c in u)c!=="default"&&!Object.prototype.hasOwnProperty.call(l,c)&&e(l,u,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=jm,o=An;n(An,t);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function u(l,c,d){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof c=="function"&&(d=c,c=i),typeof l=="object"&&(c=l,l=void 0),this.callback=l??null,this.options=c??i,this.elementCB=d??null}return u.prototype.onparserinit=function(l){this.parser=l},u.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(l){this.handleCallback(l)},u.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},u.prototype.onopentag=function(l,c){var d=this.options.xmlMode?r.ElementType.Tag:void 0,F=new o.Element(l,c,void 0,d);this.addNode(F),this.tagStack.push(F)},u.prototype.ontext=function(l){var c=this.lastNode;if(c&&c.type===r.ElementType.Text)c.data+=l,this.options.withEndIndices&&(c.endIndex=this.parser.endIndex);else{var d=new o.Text(l);this.addNode(d),this.lastNode=d}},u.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var c=new o.Comment(l);this.addNode(c),this.lastNode=c},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var l=new o.Text(""),c=new o.CDATA([l]);this.addNode(c),l.parent=c,this.lastNode=l},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(l,c){var d=new o.ProcessingInstruction(l,c);this.addNode(d)},u.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},u.prototype.addNode=function(l){var c=this.tagStack[this.tagStack.length-1],d=c.children[c.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),c.children.push(l),d&&(l.prev=d,d.next=l),l.parent=c,this.lastNode=null},u}();t.DomHandler=s,t.default=s})(eo);var BK="html",AK="head",SE="body",h8e=/<([a-zA-Z]+[0-9]?)/,TK=/<head[^]*>/i,IK=/<body[^]*>/i,jE=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},GS=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},RK=typeof window=="object"&&window.DOMParser;if(typeof RK=="function"){var F8e=new RK,m8e="text/html";GS=function(t,e){return e&&(t="<"+e+">"+t+"</"+e+">"),F8e.parseFromString(t,m8e)},jE=GS}if(typeof document=="object"&&document.implementation){var BE=document.implementation.createHTMLDocument();jE=function(t,e){if(e){var n=BE.documentElement.querySelector(e);return n.innerHTML=t,BE}return BE.documentElement.innerHTML=t,BE}}var YS=typeof document=="object"?document.createElement("template"):{},ZS;YS.content&&(ZS=function(t){return YS.innerHTML=t,YS.content.childNodes});function D8e(t){var e,n=t.match(h8e);n&&n[1]&&(e=n[1].toLowerCase());var r,o,i;switch(e){case BK:return r=GS(t),TK.test(t)||(o=r.querySelector(AK),o&&o.parentNode.removeChild(o)),IK.test(t)||(o=r.querySelector(SE),o&&o.parentNode.removeChild(o)),r.querySelectorAll(BK);case AK:case SE:return r=jE(t),i=r.querySelectorAll(e),IK.test(t)&&TK.test(t)?i[0].parentNode.childNodes:i;default:return ZS?ZS(t):(o=jE(t,SE).querySelector(SE),o.childNodes)}}var g8e=D8e,JS={},OK={};OK.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];for(var AE=eo,p8e=OK,MK=p8e.CASE_SENSITIVE_TAG_NAMES,f8e=AE.Comment,_8e=AE.Element,v8e=AE.ProcessingInstruction,b8e=AE.Text,PK={},XS,QS=0,C8e=MK.length;QS<C8e;QS++)XS=MK[QS],PK[XS.toLowerCase()]=XS;function E8e(t){return PK[t]}function LK(t){for(var e={},n,r=0,o=t.length;r<o;r++)n=t[r],e[n.name]=n.value;return e}function y8e(t){t=t.toLowerCase();var e=E8e(t);return e||t}function NK(t,e,n){e=e||null;for(var r=[],o,i=0,s=t.length;i<s;i++){var u=t[i],l;switch(u.nodeType){case 1:o=y8e(u.nodeName),l=new _8e(o,LK(u.attributes)),l.children=NK(o==="template"?u.content.childNodes:u.childNodes,l);break;case 3:l=new b8e(u.nodeValue);break;case 8:l=new f8e(u.nodeValue);break;default:continue}var c=r[i-1]||null;c&&(c.next=l),l.parent=e,l.prev=c,l.next=null,r.push(l)}return n&&(l=new v8e(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=e,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}JS.formatAttributes=LK,JS.formatDOM=NK;var x8e=g8e,w8e=JS,k8e=w8e.formatDOM,S8e=/<(![a-zA-Z\s]+)>/;function j8e(t){if(typeof t!="string")throw new TypeError("First argument must be a string");if(t==="")return[];var e=t.match(S8e),n;return e&&e[1]&&(n=e[1]),k8e(x8e(t),null,n)}var zK=j8e;const B8e=Rr(zK);var rs={},TE={},A8e=0;TE.SAME=A8e;var T8e=1;TE.CAMELCASE=T8e,TE.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Object.defineProperty(rs,"__esModule",{value:!0});function I8e(t,e){return R8e(t)||O8e(t,e)||M8e(t,e)||P8e()}function R8e(t){if(Array.isArray(t))return t}function O8e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,u;try{for(n=n.call(t);!(o=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));o=!0);}catch(l){i=!0,u=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw u}}return r}}function M8e(t,e){if(t){if(typeof t=="string")return UK(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UK(t,e)}}function UK(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function P8e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var VK=0,Ld=1,IE=2,RE=3,ej=4,qK=5,HK=6;function L8e(t){return si.hasOwnProperty(t)?si[t]:null}function Ai(t,e,n,r,o,i,s){this.acceptsBooleans=e===IE||e===RE||e===ej,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=s}var si={},N8e=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];N8e.forEach(function(t){si[t]=new Ai(t,VK,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=I8e(t,2),n=e[0],r=e[1];si[n]=new Ai(n,Ld,!1,r,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){si[t]=new Ai(t,IE,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){si[t]=new Ai(t,IE,!1,t,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(t){si[t]=new Ai(t,RE,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){si[t]=new Ai(t,RE,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){si[t]=new Ai(t,ej,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){si[t]=new Ai(t,HK,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){si[t]=new Ai(t,qK,!1,t.toLowerCase(),null,!1,!1)});var tj=/[\-\:]([a-z])/g,nj=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(t){var e=t.replace(tj,nj);si[e]=new Ai(e,Ld,!1,t,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(t){var e=t.replace(tj,nj);si[e]=new Ai(e,Ld,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(tj,nj);si[e]=new Ai(e,Ld,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){si[t]=new Ai(t,Ld,!1,t.toLowerCase(),null,!1,!1)});var z8e="xlinkHref";si[z8e]=new Ai("xlinkHref",Ld,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){si[t]=new Ai(t,Ld,!1,t.toLowerCase(),null,!0,!0)});var rj=TE,U8e=rj.CAMELCASE,V8e=rj.SAME,$K=rj.possibleStandardNames,q8e=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",H8e=q8e+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",$8e=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+H8e+"]*$")),W8e=Object.keys($K).reduce(function(t,e){var n=$K[e];return n===V8e?t[e]=e:n===U8e?t[e.toLowerCase()]=e:t[e]=n,t},{});rs.BOOLEAN=RE,rs.BOOLEANISH_STRING=IE,rs.NUMERIC=qK,rs.OVERLOADED_BOOLEAN=ej,rs.POSITIVE_NUMERIC=HK,rs.RESERVED=VK,rs.STRING=Ld,rs.getPropertyInfo=L8e,rs.isCustomAttribute=$8e,rs.possibleStandardNames=W8e;var WK={},oj={exports:{}},KK=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,K8e=/\n/g,G8e=/^\s*/,Y8e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Z8e=/^:\s*/,J8e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,X8e=/^[;\s]*/,Q8e=/^\s+|\s+$/g,eye=`
`,GK="/",YK="*",Uh="",tye="comment",nye="declaration",rye=function(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function o(D){var g=D.match(K8e);g&&(n+=g.length);var p=D.lastIndexOf(eye);r=~p?D.length-p:r+D.length}function i(){var D={line:n,column:r};return function(g){return g.position=new s(D),c(),g}}function s(D){this.start=D,this.end={line:n,column:r},this.source=e.source}s.prototype.content=t;function u(D){var g=new Error(e.source+":"+n+":"+r+": "+D);if(g.reason=D,g.filename=e.source,g.line=n,g.column=r,g.source=t,!e.silent)throw g}function l(D){var g=D.exec(t);if(g){var p=g[0];return o(p),t=t.slice(p.length),g}}function c(){l(G8e)}function d(D){var g;for(D=D||[];g=F();)g!==!1&&D.push(g);return D}function F(){var D=i();if(!(GK!=t.charAt(0)||YK!=t.charAt(1))){for(var g=2;Uh!=t.charAt(g)&&(YK!=t.charAt(g)||GK!=t.charAt(g+1));)++g;if(g+=2,Uh===t.charAt(g-1))return u("End of comment missing");var p=t.slice(2,g-2);return r+=2,o(p),t=t.slice(g),r+=2,D({type:tye,comment:p})}}function h(){var D=i(),g=l(Y8e);if(g){if(F(),!l(Z8e))return u("property missing ':'");var p=l(J8e),_=D({type:nye,property:ZK(g[0].replace(KK,Uh)),value:p?ZK(p[0].replace(KK,Uh)):Uh});return l(X8e),_}}function m(){var D=[];d(D);for(var g;g=h();)g!==!1&&(D.push(g),d(D));return D}return c(),m()};function ZK(t){return t?t.replace(Q8e,Uh):Uh}var oye=rye;function JK(t,e){var n=null;if(!t||typeof t!="string")return n;for(var r,o=oye(t),i=typeof e=="function",s,u,l=0,c=o.length;l<c;l++)r=o[l],s=r.property,u=r.value,i?e(s,u,r):u&&(n||(n={}),n[s]=u);return n}oj.exports=JK,oj.exports.default=JK;var iye=oj.exports,OE={};OE.__esModule=!0,OE.camelCase=void 0;var aye=/^--[a-zA-Z0-9-]+$/,sye=/-([a-z])/g,uye=/^[^-]+$/,lye=/^-(webkit|moz|ms|o|khtml)-/,cye=/^-(ms)-/,dye=function(t){return!t||uye.test(t)||aye.test(t)},hye=function(t,e){return e.toUpperCase()},XK=function(t,e){return"".concat(e,"-")},Fye=function(t,e){return e===void 0&&(e={}),dye(t)?t:(t=t.toLowerCase(),e.reactCompat?t=t.replace(cye,XK):t=t.replace(lye,XK),t.replace(sye,hye))};OE.camelCase=Fye,function(t){var e=Qe&&Qe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};t.__esModule=!0;var n=e(iye),r=OE;function o(i,s){var u={};return!i||typeof i!="string"||(0,n.default)(i,function(l,c){l&&c&&(u[(0,r.camelCase)(l,s)]=c)}),u}t.default=o}(WK);var mye=f,Dye=WK.default;function gye(t,e){if(!t||typeof t!="object")throw new TypeError("First argument must be an object");var n,r,o=typeof e=="function",i={},s={};for(n in t){if(r=t[n],o&&(i=e(n,r),i&&i.length===2)){s[i[0]]=i[1];continue}typeof r=="string"&&(s[r]=n)}return s}function pye(t,e){if(t.indexOf("-")===-1)return e&&typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fye={reactCompat:!0};function _ye(t,e){if(t!=null)try{e.style=Dye(t,fye)}catch{e.style={}}}var vye=mye.version.split(".")[0]>=16,QK=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function bye(t){return!QK.has(t.name)}function Cye(t){return t}var eG={PRESERVE_CUSTOM_ATTRIBUTES:vye,invertObject:gye,isCustomComponent:pye,setStyleProp:_ye,canTextBeChildOfNode:bye,elementsWithNoTextChildren:QK,returnFirstArg:Cye},v3=rs,tG=eG,Eye=["checked","value"],yye=["input","select","textarea"],xye={reset:!0,submit:!0},nG=function(t,e){t=t||{};var n,r,o,i,s,u={},l=t.type&&xye[t.type];for(n in t){if(o=t[n],v3.isCustomAttribute(n)){u[n]=o;continue}if(r=n.toLowerCase(),i=rG(r),i){switch(s=v3.getPropertyInfo(i),Eye.indexOf(i)!==-1&&yye.indexOf(e)!==-1&&!l&&(i=rG("default"+r)),u[i]=o,s&&s.type){case v3.BOOLEAN:u[i]=!0;break;case v3.OVERLOADED_BOOLEAN:o===""&&(u[i]=!0);break}continue}tG.PRESERVE_CUSTOM_ATTRIBUTES&&(u[n]=o)}return tG.setStyleProp(t.style,u),u};function rG(t){return v3.possibleStandardNames[t]}var wye=f,kye=nG,b3=eG,Sye=b3.setStyleProp,jye=b3.canTextBeChildOfNode;function oG(t,e){e=e||{};for(var n=e.library||wye,r=n.cloneElement,o=n.createElement,i=n.isValidElement,s=[],u,l,c=typeof e.replace=="function",d=e.transform||b3.returnFirstArg,F,h,m,D=e.trim,g=0,p=t.length;g<p;g++){if(u=t[g],c&&(F=e.replace(u),i(F))){p>1&&(F=r(F,{key:F.key||g})),s.push(d(F,u,g));continue}if(u.type==="text"){if(l=!u.data.trim().length,l&&u.parent&&!jye(u.parent)||D&&l)continue;s.push(d(u.data,u,g));continue}switch(h=u.attribs,Bye(u)?Sye(h.style,h):h&&(h=kye(h,u.name)),m=null,u.type){case"script":case"style":u.children[0]&&(h.dangerouslySetInnerHTML={__html:u.children[0].data});break;case"tag":u.name==="textarea"&&u.children[0]?h.defaultValue=u.children[0].data:u.children&&u.children.length&&(m=oG(u.children,e));break;default:continue}p>1&&(h.key=g),s.push(d(o(u.name,h,m),u,g))}return s.length===1?s[0]:s}function Bye(t){return b3.PRESERVE_CUSTOM_ATTRIBUTES&&t.type==="tag"&&b3.isCustomComponent(t.name,t.attribs)}var Aye=oG,ME=eo,Bm=zK,Tye=nG,iG=Aye;Bm=typeof Bm.default=="function"?Bm.default:Bm;var Iye={lowerCaseAttributeNames:!1};function Pu(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");return t===""?[]:(e=e||{},iG(Bm(t,e.htmlparser2||Iye),e))}Pu.domToReact=iG,Pu.htmlToDOM=Bm,Pu.attributesToProps=Tye,Pu.Comment=ME.Comment,Pu.Element=ME.Element,Pu.ProcessingInstruction=ME.ProcessingInstruction,Pu.Text=ME.Text;var Rye=Pu;Pu.default=Pu;const Nd=Rr(Rye);var ra=Nd.domToReact;Nd.htmlToDOM;var Oye=Nd.attributesToProps;Nd.Comment;var Mye=Nd.Element;Nd.ProcessingInstruction;var ij=Nd.Text;const Pye="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xF6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Lye="\u03B5\u03BB1\u03C52\u0431\u04331\u0435\u043B3\u0434\u0435\u0442\u04384\u0435\u044E2\u043A\u0430\u0442\u043E\u043B\u0438\u043A6\u043E\u043C3\u043C\u043A\u04342\u043E\u043D1\u0441\u043A\u0432\u04306\u043E\u043D\u043B\u0430\u0439\u043D5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043A\u04403\u049B\u0430\u04373\u0570\u0561\u05753\u05D9\u05E9\u05E8\u05D0\u05DC5\u05E7\u05D5\u05DD3\u0627\u0628\u0648\u0638\u0628\u064A5\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062F\u06464\u0628\u062D\u0631\u064A\u06465\u062C\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062F\u064A\u06296\u0639\u0644\u064A\u0627\u06465\u0645\u063A\u0631\u06285\u0645\u0627\u0631\u0627\u062A5\u06CC\u0631\u0627\u06465\u0628\u0627\u0631\u062A2\u0632\u0627\u06314\u064A\u062A\u06433\u06BE\u0627\u0631\u062A5\u062A\u0648\u0646\u06334\u0633\u0648\u062F\u0627\u06463\u0631\u064A\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064A\u06466\u0642\u0637\u06313\u0643\u0627\u062B\u0648\u0644\u064A\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064A\u0633\u064A\u06275\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067E\u0627\u06A9\u0633\u062A\u0627\u06467\u0680\u0627\u0631\u062A4\u0915\u0949\u092E3\u0928\u0947\u091F3\u092D\u093E\u0930\u09240\u092E\u094D3\u094B\u09245\u0938\u0902\u0917\u0920\u09285\u09AC\u09BE\u0982\u09B2\u09BE5\u09AD\u09BE\u09B0\u09A42\u09F0\u09A44\u0A2D\u0A3E\u0A30\u0A244\u0AAD\u0ABE\u0AB0\u0AA44\u0B2D\u0B3E\u0B30\u0B244\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE6\u0BB2\u0B99\u0BCD\u0B95\u0BC86\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD11\u0C2D\u0C3E\u0C30\u0C24\u0C4D5\u0CAD\u0CBE\u0CB0\u0CA44\u0D2D\u0D3E\u0D30\u0D24\u0D025\u0DBD\u0D82\u0D9A\u0DCF4\u0E04\u0E2D\u0E213\u0E44\u0E17\u0E223\u0EA5\u0EB2\u0EA73\u10D2\u10D42\u307F\u3093\u306A3\u30A2\u30DE\u30BE\u30F34\u30AF\u30E9\u30A6\u30C94\u30B0\u30FC\u30B0\u30EB4\u30B3\u30E02\u30B9\u30C8\u30A23\u30BB\u30FC\u30EB3\u30D5\u30A1\u30C3\u30B7\u30E7\u30F36\u30DD\u30A4\u30F3\u30C84\u4E16\u754C2\u4E2D\u4FE11\u56FD1\u570B1\u6587\u7F513\u4E9A\u9A6C\u900A3\u4F01\u4E1A2\u4F5B\u5C712\u4FE1\u606F2\u5065\u5EB72\u516B\u53662\u516C\u53F81\u76CA2\u53F0\u6E7E1\u70632\u5546\u57CE1\u5E971\u68072\u5609\u91CC0\u5927\u9152\u5E975\u5728\u7EBF2\u5927\u62FF2\u5929\u4E3B\u65593\u5A31\u4E502\u5BB6\u96FB2\u5E7F\u4E1C2\u5FAE\u535A2\u6148\u55842\u6211\u7231\u4F603\u624B\u673A2\u62DB\u80582\u653F\u52A11\u5E9C2\u65B0\u52A0\u57612\u95FB2\u65F6\u5C1A2\u66F8\u7C4D2\u673A\u67842\u6DE1\u9A6C\u95213\u6E38\u620F2\u6FB3\u95802\u70B9\u770B2\u79FB\u52A82\u7EC4\u7EC7\u673A\u67844\u7F51\u57401\u5E971\u7AD91\u7EDC2\u8054\u901A2\u8C37\u6B4C2\u8D2D\u72692\u901A\u8CA92\u96C6\u56E22\u96FB\u8A0A\u76C8\u79D14\u98DE\u5229\u6D663\u98DF\u54C12\u9910\u53852\u9999\u683C\u91CC\u62C93\u6E2F2\uB2F7\uB1371\uCEF42\uC0BC\uC1312\uD55C\uAD6D2",Vh=(t,e)=>{for(const n in e)t[n]=e[n];return t},aj="numeric",sj="ascii",uj="alpha",PE="asciinumeric",LE="alphanumeric",lj="domain",aG="emoji",Nye="scheme",zye="slashscheme",sG="whitespace";function Uye(t,e){return t in e||(e[t]=[]),e[t]}function qh(t,e,n){e[aj]&&(e[PE]=!0,e[LE]=!0),e[sj]&&(e[PE]=!0,e[uj]=!0),e[PE]&&(e[LE]=!0),e[uj]&&(e[LE]=!0),e[LE]&&(e[lj]=!0),e[aG]&&(e[lj]=!0);for(const r in e){const o=Uye(r,n);o.indexOf(t)<0&&o.push(t)}}function Vye(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function xa(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}xa.groups={},xa.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(t))return i}return e.jd},has(t,e){return e===void 0&&(e=!1),e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let o=0;o<t.length;o++)this.tt(t[o],e,n,r)},tr(t,e,n,r){r=r||xa.groups;let o;return e&&e.j?o=e:(o=new xa(e),n&&r&&qh(e,n,r)),this.jr.push([t,o]),o},ts(t,e,n,r){let o=this;const i=t.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(t[s]);return o.tt(t[i-1],e,n,r)},tt(t,e,n,r){r=r||xa.groups;const o=this;if(e&&e.j)return o.j[t]=e,e;const i=e;let s,u=o.go(t);if(u?(s=new xa,Vh(s.j,u.j),s.jr.push.apply(s.jr,u.jr),s.jd=u.jd,s.t=u.t):s=new xa,i){if(r)if(s.t&&typeof s.t=="string"){const l=Vh(Vye(s.t,r),n);qh(i,l,r)}else n&&qh(i,n,r);s.t=i}return o.j[t]=s,s}};const _n=(t,e,n,r,o)=>t.ta(e,n,r,o),os=(t,e,n,r,o)=>t.tr(e,n,r,o),uG=(t,e,n,r,o)=>t.ts(e,n,r,o),mt=(t,e,n,r,o)=>t.tt(e,n,r,o),tc="WORD",cj="UWORD",C3="LOCALHOST",dj="TLD",hj="UTLD",NE="SCHEME",Am="SLASH_SCHEME",Fj="NUM",lG="WS",mj="NL",E3="OPENBRACE",y3="CLOSEBRACE",zE="OPENBRACKET",UE="CLOSEBRACKET",VE="OPENPAREN",qE="CLOSEPAREN",HE="OPENANGLEBRACKET",$E="CLOSEANGLEBRACKET",WE="FULLWIDTHLEFTPAREN",KE="FULLWIDTHRIGHTPAREN",GE="LEFTCORNERBRACKET",YE="RIGHTCORNERBRACKET",ZE="LEFTWHITECORNERBRACKET",JE="RIGHTWHITECORNERBRACKET",XE="FULLWIDTHLESSTHAN",QE="FULLWIDTHGREATERTHAN",e8="AMPERSAND",t8="APOSTROPHE",n8="ASTERISK",zd="AT",r8="BACKSLASH",o8="BACKTICK",i8="CARET",Ud="COLON",Dj="COMMA",a8="DOLLAR",Lu="DOT",s8="EQUALS",gj="EXCLAMATION",Nu="HYPHEN",u8="PERCENT",l8="PIPE",c8="PLUS",d8="POUND",h8="QUERY",pj="QUOTE",fj="SEMI",zu="SLASH",x3="TILDE",F8="UNDERSCORE",cG="EMOJI",m8="SYM";var dG=Object.freeze({__proto__:null,WORD:tc,UWORD:cj,LOCALHOST:C3,TLD:dj,UTLD:hj,SCHEME:NE,SLASH_SCHEME:Am,NUM:Fj,WS:lG,NL:mj,OPENBRACE:E3,CLOSEBRACE:y3,OPENBRACKET:zE,CLOSEBRACKET:UE,OPENPAREN:VE,CLOSEPAREN:qE,OPENANGLEBRACKET:HE,CLOSEANGLEBRACKET:$E,FULLWIDTHLEFTPAREN:WE,FULLWIDTHRIGHTPAREN:KE,LEFTCORNERBRACKET:GE,RIGHTCORNERBRACKET:YE,LEFTWHITECORNERBRACKET:ZE,RIGHTWHITECORNERBRACKET:JE,FULLWIDTHLESSTHAN:XE,FULLWIDTHGREATERTHAN:QE,AMPERSAND:e8,APOSTROPHE:t8,ASTERISK:n8,AT:zd,BACKSLASH:r8,BACKTICK:o8,CARET:i8,COLON:Ud,COMMA:Dj,DOLLAR:a8,DOT:Lu,EQUALS:s8,EXCLAMATION:gj,HYPHEN:Nu,PERCENT:u8,PIPE:l8,PLUS:c8,POUND:d8,QUERY:h8,QUOTE:pj,SEMI:fj,SLASH:zu,TILDE:x3,UNDERSCORE:F8,EMOJI:cG,SYM:m8});const Tm=/[a-z]/,_j=new RegExp("\\p{L}","u"),vj=new RegExp("\\p{Emoji}","u"),bj=/\d/,hG=/\s/,FG=`
`,qye="\uFE0F",Hye="\u200D";let D8=null,g8=null;function $ye(t){t===void 0&&(t=[]);const e={};xa.groups=e;const n=new xa;D8==null&&(D8=mG(Pye)),g8==null&&(g8=mG(Lye)),mt(n,"'",t8),mt(n,"{",E3),mt(n,"}",y3),mt(n,"[",zE),mt(n,"]",UE),mt(n,"(",VE),mt(n,")",qE),mt(n,"<",HE),mt(n,">",$E),mt(n,"\uFF08",WE),mt(n,"\uFF09",KE),mt(n,"\u300C",GE),mt(n,"\u300D",YE),mt(n,"\u300E",ZE),mt(n,"\u300F",JE),mt(n,"\uFF1C",XE),mt(n,"\uFF1E",QE),mt(n,"&",e8),mt(n,"*",n8),mt(n,"@",zd),mt(n,"`",o8),mt(n,"^",i8),mt(n,":",Ud),mt(n,",",Dj),mt(n,"$",a8),mt(n,".",Lu),mt(n,"=",s8),mt(n,"!",gj),mt(n,"-",Nu),mt(n,"%",u8),mt(n,"|",l8),mt(n,"+",c8),mt(n,"#",d8),mt(n,"?",h8),mt(n,'"',pj),mt(n,"/",zu),mt(n,";",fj),mt(n,"~",x3),mt(n,"_",F8),mt(n,"\\",r8);const r=os(n,bj,Fj,{[aj]:!0});os(r,bj,r);const o=os(n,Tm,tc,{[sj]:!0});os(o,Tm,o);const i=os(n,_j,cj,{[uj]:!0});os(i,Tm),os(i,_j,i);const s=os(n,hG,lG,{[sG]:!0});mt(n,FG,mj,{[sG]:!0}),mt(s,FG),os(s,hG,s);const u=os(n,vj,cG,{[aG]:!0});os(u,vj,u),mt(u,qye,u);const l=mt(u,Hye);os(l,vj,u);const c=[[Tm,o]],d=[[Tm,null],[_j,i]];for(let F=0;F<D8.length;F++)Vd(n,D8[F],dj,tc,c);for(let F=0;F<g8.length;F++)Vd(n,g8[F],hj,cj,d);qh(dj,{tld:!0,ascii:!0},e),qh(hj,{utld:!0,alpha:!0},e),Vd(n,"file",NE,tc,c),Vd(n,"mailto",NE,tc,c),Vd(n,"http",Am,tc,c),Vd(n,"https",Am,tc,c),Vd(n,"ftp",Am,tc,c),Vd(n,"ftps",Am,tc,c),qh(NE,{scheme:!0,ascii:!0},e),qh(Am,{slashscheme:!0,ascii:!0},e),t=t.sort((F,h)=>F[0]>h[0]?1:-1);for(let F=0;F<t.length;F++){const h=t[F][0],m=t[F][1]?{[Nye]:!0}:{[zye]:!0};h.indexOf("-")>=0?m[lj]=!0:Tm.test(h)?bj.test(h)?m[PE]=!0:m[sj]=!0:m[aj]=!0,uG(n,h,h,m)}return uG(n,"localhost",C3,{ascii:!0}),n.jd=new xa(m8),{start:n,tokens:Vh({groups:e},dG)}}function Wye(t,e){const n=Kye(e.replace(/[A-Z]/g,u=>u.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let u=t,l=null,c=0,d=null,F=-1,h=-1;for(;s<r&&(l=u.go(n[s]));)u=l,u.accepts()?(F=0,h=0,d=u):F>=0&&(F+=n[s].length,h++),c+=n[s].length,i+=n[s].length,s++;i-=F,s-=h,c-=F,o.push({t:d.t,v:e.slice(i-c,i),s:i-c,e:i})}return o}function Kye(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Vd(t,e,n,r,o){let i;const s=e.length;for(let u=0;u<s-1;u++){const l=e[u];t.j[l]?i=t.j[l]:(i=new xa(r),i.jr=o.slice(),t.j[l]=i),t=i}return i=new xa(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function mG(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}const Im={defaultProtocol:"http",events:null,format:DG,formatHref:DG,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function p8(t,e){e===void 0&&(e=null);let n=Vh({},Im);t&&(n=Vh(n,t instanceof p8?t.o:t));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}p8.prototype={o:Im,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:Im[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function DG(t){return t}var gG=Object.freeze({__proto__:null,defaults:Im,Options:p8,assign:Vh});function pG(t,e){this.t="token",this.v=t,this.tk=e}pG.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"\u2026":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=Im.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},u=t.get("className",n,e),l=t.get("target",n,e),c=t.get("rel",n,e),d=t.getObj("attributes",n,e),F=t.getObj("events",n,e);return s.href=r,u&&(s.class=u),l&&(s.target=l),c&&(s.rel=c),d&&Vh(s,d),{tagName:o,attributes:s,content:i,eventListeners:F}}};function f8(t,e){class n extends pG{constructor(o,i){super(o,i),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const fG=f8("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),_G=f8("text"),Gye=f8("nl"),_8=f8("url",{isLink:!0,toHref(t){return t===void 0&&(t=Im.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==C3&&t[1].t===Ud}}),is=t=>new xa(t);function Yye(t){let{groups:e}=t;const n=e.domain.concat([e8,n8,zd,r8,o8,i8,a8,s8,Nu,Fj,u8,l8,c8,d8,zu,m8,x3,F8]),r=[t8,Ud,Dj,Lu,gj,h8,pj,fj,HE,$E,E3,y3,UE,zE,VE,qE,WE,KE,GE,YE,ZE,JE,XE,QE],o=[e8,t8,n8,r8,o8,i8,a8,s8,Nu,E3,y3,u8,l8,c8,d8,h8,zu,m8,x3,F8],i=is(),s=mt(i,x3);_n(s,o,s),_n(s,e.domain,s);const u=is(),l=is(),c=is();_n(i,e.domain,u),_n(i,e.scheme,l),_n(i,e.slashscheme,c),_n(u,o,s),_n(u,e.domain,u);const d=mt(u,zd);mt(s,zd,d),mt(l,zd,d),mt(c,zd,d);const F=mt(s,Lu);_n(F,o,s),_n(F,e.domain,s);const h=is();_n(d,e.domain,h),_n(h,e.domain,h);const m=mt(h,Lu);_n(m,e.domain,h);const D=is(fG);_n(m,e.tld,D),_n(m,e.utld,D),mt(d,C3,D);const g=mt(h,Nu);_n(g,e.domain,h),_n(D,e.domain,h),mt(D,Lu,m),mt(D,Nu,g);const p=mt(D,Ud);_n(p,e.numeric,fG);const _=mt(u,Nu),v=mt(u,Lu);_n(_,e.domain,u),_n(v,o,s),_n(v,e.domain,u);const E=is(_8);_n(v,e.tld,E),_n(v,e.utld,E),_n(E,e.domain,u),_n(E,o,s),mt(E,Lu,v),mt(E,Nu,_),mt(E,zd,d);const b=mt(E,Ud),k=is(_8);_n(b,e.numeric,k);const C=is(_8),S=is();_n(C,n,C),_n(C,r,S),_n(S,n,C),_n(S,r,S),mt(E,zu,C),mt(k,zu,C);const w=mt(l,Ud),A=mt(c,Ud),O=mt(A,zu),j=mt(O,zu);_n(l,e.domain,u),mt(l,Lu,v),mt(l,Nu,_),_n(c,e.domain,u),mt(c,Lu,v),mt(c,Nu,_),_n(w,e.domain,C),mt(w,zu,C),_n(j,e.domain,C),_n(j,n,C),mt(j,zu,C);const R=[[E3,y3],[zE,UE],[VE,qE],[HE,$E],[WE,KE],[GE,YE],[ZE,JE],[XE,QE]];for(let M=0;M<R.length;M++){const[z,T]=R[M],P=mt(C,z);mt(S,z,P),mt(P,T,C);const L=is(_8);_n(P,n,L);const U=is();_n(P,r),_n(L,n,L),_n(L,r,U),_n(U,n,L),_n(U,r,U),mt(L,T,C),mt(U,T,C)}return mt(i,C3,E),mt(i,mj,Gye),{start:i,tokens:dG}}function Zye(t,e,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let u=t,l=null,c=null,d=0,F=null,h=-1;for(;o<r&&!(l=u.go(n[o].t));)s.push(n[o++]);for(;o<r&&(c=l||u.go(n[o].t));)l=null,u=c,u.accepts()?(h=0,F=u):h>=0&&h++,o++,d++;if(h<0)o-=d,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(Cj(_G,e,s)),s=[]),o-=h,d-=h;const m=F.t,D=n.slice(o-d,o);i.push(Cj(m,e,D))}}return s.length>0&&i.push(Cj(_G,e,s)),i}function Cj(t,e,n){const r=n[0].s,o=n[n.length-1].e,i=e.slice(r,o);return new t(i,n)}const Ti={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Jye(){Ti.scanner=$ye(Ti.customSchemes);for(let t=0;t<Ti.tokenQueue.length;t++)Ti.tokenQueue[t][1]({scanner:Ti.scanner});Ti.parser=Yye(Ti.scanner.tokens);for(let t=0;t<Ti.pluginQueue.length;t++)Ti.pluginQueue[t][1]({scanner:Ti.scanner,parser:Ti.parser});Ti.initialized=!0}function Xye(t){return Ti.initialized||Jye(),Zye(Ti.parser.start,t,Wye(Ti.scanner.start,t))}function Qye(t,e,n){const r=Xye(t),o=[];for(let i=0;i<r.length;i++){const s=r[i];if(s.t==="nl"&&e.get("nl2br")){const u=`__linkify-el-${n.elementId++}`;o.push(f.createElement("br",{key:u}))}else if(!s.isLink||!e.check(s))o.push(s.toString());else{let u=e.render(s);if(!("key"in u.props)){const l=`__linkify-el-${n.elementId++}`,c=gG.assign({key:l},u.props);u=f.cloneElement(u,c)}o.push(u)}}return o}function vG(t,e,n){if(f.Children.count(t.props.children)===0)return t;const r=[];f.Children.forEach(t.props.children,s=>{typeof s=="string"?r.push.apply(r,Qye(s,e,n)):f.isValidElement(s)?typeof s.type=="string"&&e.ignoreTags.indexOf(s.type.toUpperCase())>=0?r.push(s):r.push(vG(s,e,n)):r.push(s)});const o=`__linkify-el-${n.elementId++}`,i=gG.assign({key:o},t.props);return f.cloneElement(t,i,r)}const w3=t=>{let e=0;const n=l=>{let{tagName:c,attributes:d,content:F}=l;return d.key=`__linkify-lnk-${e++}`,d.class&&(d.className=d.class,delete d.class),f.createElement(c,d,F)},r={key:"__linkify-wrapper"};for(const l in t)l!=="options"&&l!=="as"&&l!=="tagName"&&l!=="children"&&(r[l]=t[l]);const o=new p8(t.options,n),i=t.as||t.tagName||f.Fragment||"span",s=t.children,u=f.createElement(i,r,s);return vG(u,o,{elementId:0})},e4e=f.createContext(null),Ej={didCatch:!1,error:null};class bG extends f.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Ej}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:i,reason:"imperative-api"}),this.setState(Ej)}}componentDidCatch(e,n){var r,o;(r=(o=this.props).onError)===null||r===void 0||r.call(o,e,n)}componentDidUpdate(e,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;if(r&&n.error!==null&&t4e(e.resetKeys,o)){var i,s;(i=(s=this.props).onReset)===null||i===void 0||i.call(s,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(Ej)}}render(){const{children:e,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let u=e;if(i){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")u=n(l);else if(r)u=f.createElement(r,l);else if(o===null||f.isValidElement(o))u=o;else throw s}return f.createElement(e4e.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},u)}}function t4e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==e.length||t.some((n,r)=>!Object.is(n,e[r]))}var CG="_1m2qi7r3 _1mqalmd1 _1mqalmd0 _1m2qi7r0",nc="_1m2qi7r5 _1mqalmd1 _1mqalmd0 _1m2qi7r4",EG="_1m2qi7r8 _1mqalmd1 _1mqalmd0 _1m2qi7r4 _1m2qi7r0",yG="_1m2qi7r9",n4e=br({defaultClassName:"_1m2qi7rg _1mqalmd1 _1mqalmd0",variantClassNames:{focus:{true:"_1m2qi7rh"},active:{true:"_1m2qi7ri"}},defaultVariants:{},compoundVariants:[]}),yj=br({defaultClassName:"_1m2qi7rk _1mqalmd1 _1mqalmd0",variantClassNames:{focus:{true:"_1m2qi7rl"}},defaultVariants:{},compoundVariants:[]}),xj="_1m2qi7rj _1mqalmd1 _1mqalmd0",xG="_1m2qi7rm _1mqalmd1 _1mqalmd0",Uu="_1m2qi7r2 _1mqalmd1 _1mqalmd0 _1m2qi7r0",r4e="_1m2qi7rb _1mqalmd1 _1mqalmd0 _1m2qi7r0",o4e="_1m2qi7rc",v8="_1m2qi7ra _1mqalmd1 _1mqalmd0 _1m2qi7r0",i4e="_1m2qi7r0",b8=br({defaultClassName:"_1m2qi7rd _1mqalmd1 _1mqalmd0",variantClassNames:{highlight:{true:"_1m2qi7re"},focus:{true:"_1m2qi7rf"}},defaultVariants:{},compoundVariants:[]}),wj="_1mqalmd1 _1mqalmd0",wG=br({defaultClassName:"_1m2qi7r6 _1mqalmd1 _1mqalmd0",variantClassNames:{active:{true:"_1m2qi7r7"}},defaultVariants:{},compoundVariants:[]}),a4e="_1m2qi7rn _1mqalmd1 _1mqalmd0";const s4e=/200D|FE0E|FE0F/g;function u4e(t,e=!0){const n=[];return[...t].forEach(r=>{var i;let o=((i=r.codePointAt(0))==null?void 0:i.toString(16).toUpperCase())??"";for(;o.length<4;)o=`0${o}`;(!e||e&&!o.match(s4e))&&n.push(o)}),n.join("-")}const l4e=[{hexcode:"1F1E6",label:"regional indicator A",unicode:"\u{1F1E6}"},{hexcode:"1F1E7",label:"regional indicator B",unicode:"\u{1F1E7}"},{hexcode:"1F1E8",label:"regional indicator C",unicode:"\u{1F1E8}"},{hexcode:"1F1E9",label:"regional indicator D",unicode:"\u{1F1E9}"},{hexcode:"1F1EA",label:"regional indicator E",unicode:"\u{1F1EA}"},{hexcode:"1F1EB",label:"regional indicator F",unicode:"\u{1F1EB}"},{hexcode:"1F1EC",label:"regional indicator G",unicode:"\u{1F1EC}"},{hexcode:"1F1ED",label:"regional indicator H",unicode:"\u{1F1ED}"},{hexcode:"1F1EE",label:"regional indicator I",unicode:"\u{1F1EE}"},{hexcode:"1F1EF",label:"regional indicator J",unicode:"\u{1F1EF}"},{hexcode:"1F1F0",label:"regional indicator K",unicode:"\u{1F1F0}"},{hexcode:"1F1F1",label:"regional indicator L",unicode:"\u{1F1F1}"},{hexcode:"1F1F2",label:"regional indicator M",unicode:"\u{1F1F2}"},{hexcode:"1F1F3",label:"regional indicator N",unicode:"\u{1F1F3}"},{hexcode:"1F1F4",label:"regional indicator O",unicode:"\u{1F1F4}"},{hexcode:"1F1F5",label:"regional indicator P",unicode:"\u{1F1F5}"},{hexcode:"1F1F6",label:"regional indicator Q",unicode:"\u{1F1F6}"},{hexcode:"1F1F7",label:"regional indicator R",unicode:"\u{1F1F7}"},{hexcode:"1F1F8",label:"regional indicator S",unicode:"\u{1F1F8}"},{hexcode:"1F1F9",label:"regional indicator T",unicode:"\u{1F1F9}"},{hexcode:"1F1FA",label:"regional indicator U",unicode:"\u{1F1FA}"},{hexcode:"1F1FB",label:"regional indicator V",unicode:"\u{1F1FB}"},{hexcode:"1F1FC",label:"regional indicator W",unicode:"\u{1F1FC}"},{hexcode:"1F1FD",label:"regional indicator X",unicode:"\u{1F1FD}"},{hexcode:"1F1FE",label:"regional indicator Y",unicode:"\u{1F1FE}"},{hexcode:"1F1FF",label:"regional indicator Z",unicode:"\u{1F1FF}"},{group:0,hexcode:"1F600",label:"grinning face",order:1,tags:["face","grin"],unicode:"\u{1F600}"},{group:0,hexcode:"1F603",label:"grinning face with big eyes",order:2,tags:["face","mouth","open","smile"],unicode:"\u{1F603}"},{group:0,hexcode:"1F604",label:"grinning face with smiling eyes",order:3,tags:["eye","face","mouth","open","smile"],unicode:"\u{1F604}",emoticon:":D"},{group:0,hexcode:"1F601",label:"beaming face with smiling eyes",order:4,tags:["eye","face","grin","smile"],unicode:"\u{1F601}"},{group:0,hexcode:"1F606",label:"grinning squinting face",order:5,tags:["face","laugh","mouth","satisfied","smile"],unicode:"\u{1F606}",emoticon:["xD","XD"]},{group:0,hexcode:"1F605",label:"grinning face with sweat",order:6,tags:["cold","face","open","smile","sweat"],unicode:"\u{1F605}"},{group:0,hexcode:"1F923",label:"rolling on the floor laughing",order:7,tags:["face","floor","laugh","rofl","rolling","rotfl"],unicode:"\u{1F923}",emoticon:":'D"},{group:0,hexcode:"1F602",label:"face with tears of joy",order:8,tags:["face","joy","laugh","tear"],unicode:"\u{1F602}",emoticon:":')"},{group:0,hexcode:"1F642",label:"slightly smiling face",order:9,tags:["face","smile"],unicode:"\u{1F642}",emoticon:":)"},{group:0,hexcode:"1F643",label:"upside-down face",order:10,tags:["face","upside-down"],unicode:"\u{1F643}"},{group:0,hexcode:"1FAE0",label:"melting face",order:11,tags:["disappear","dissolve","liquid","melt"],unicode:"\u{1FAE0}"},{group:0,hexcode:"1F609",label:"winking face",order:12,tags:["face","wink"],unicode:"\u{1F609}",emoticon:";)"},{group:0,hexcode:"1F60A",label:"smiling face with smiling eyes",order:13,tags:["blush","eye","face","smile"],unicode:"\u{1F60A}",emoticon:":>"},{group:0,hexcode:"1F607",label:"smiling face with halo",order:14,tags:["angel","face","fantasy","halo","innocent"],unicode:"\u{1F607}",emoticon:["o:)","O:)"]},{group:0,hexcode:"1F970",label:"smiling face with hearts",order:15,tags:["adore","crush","hearts","in love"],unicode:"\u{1F970}"},{group:0,hexcode:"1F60D",label:"smiling face with heart-eyes",order:16,tags:["eye","face","love","smile"],unicode:"\u{1F60D}"},{group:0,hexcode:"1F929",label:"star-struck",order:17,tags:["eyes","face","grinning","star"],unicode:"\u{1F929}"},{group:0,hexcode:"1F618",label:"face blowing a kiss",order:18,tags:["face","kiss"],unicode:"\u{1F618}",emoticon:[":x",":X"]},{group:0,hexcode:"1F617",label:"kissing face",order:19,tags:["face","kiss"],unicode:"\u{1F617}"},{group:0,hexcode:"263A",label:"smiling face",order:21,tags:["face","outlined","relaxed","smile"],unicode:"\u263A\uFE0F"},{group:0,hexcode:"1F61A",label:"kissing face with closed eyes",order:22,tags:["closed","eye","face","kiss"],unicode:"\u{1F61A}",emoticon:":*"},{group:0,hexcode:"1F619",label:"kissing face with smiling eyes",order:23,tags:["eye","face","kiss","smile"],unicode:"\u{1F619}"},{group:0,hexcode:"1F972",label:"smiling face with tear",order:24,tags:["grateful","proud","relieved","smiling","tear","touched"],unicode:"\u{1F972}"},{group:0,hexcode:"1F60B",label:"face savoring food",order:25,tags:["delicious","face","savouring","smile","yum"],unicode:"\u{1F60B}"},{group:0,hexcode:"1F61B",label:"face with tongue",order:26,tags:["face","tongue"],unicode:"\u{1F61B}",emoticon:[":p",":P"]},{group:0,hexcode:"1F61C",label:"winking face with tongue",order:27,tags:["eye","face","joke","tongue","wink"],unicode:"\u{1F61C}",emoticon:[";p",";P"]},{group:0,hexcode:"1F92A",label:"zany face",order:28,tags:["eye","goofy","large","small"],unicode:"\u{1F92A}"},{group:0,hexcode:"1F61D",label:"squinting face with tongue",order:29,tags:["eye","face","horrible","taste","tongue"],unicode:"\u{1F61D}",emoticon:["xp","xP","XP"]},{group:0,hexcode:"1F911",label:"money-mouth face",order:30,tags:["face","money","mouth"],unicode:"\u{1F911}"},{group:0,hexcode:"1F917",label:"smiling face with open hands",order:31,tags:["face","hug","hugging","open hands","smiling face"],unicode:"\u{1F917}"},{group:0,hexcode:"1F92D",label:"face with hand over mouth",order:32,tags:["whoops"],unicode:"\u{1F92D}"},{group:0,hexcode:"1FAE2",label:"face with open eyes and hand over mouth",order:33,tags:["amazement","awe","disbelief","embarrass","scared","surprise"],unicode:"\u{1FAE2}"},{group:0,hexcode:"1FAE3",label:"face with peeking eye",order:34,tags:["captivated","peep","stare"],unicode:"\u{1FAE3}"},{group:0,hexcode:"1F92B",label:"shushing face",order:35,tags:["quiet","shush"],unicode:"\u{1F92B}"},{group:0,hexcode:"1F914",label:"thinking face",order:36,tags:["face","thinking"],unicode:"\u{1F914}",emoticon:[":l",":L"]},{group:0,hexcode:"1FAE1",label:"saluting face",order:37,tags:["ok","salute","sunny","troops","yes"],unicode:"\u{1FAE1}"},{group:0,hexcode:"1F910",label:"zipper-mouth face",order:38,tags:["face","mouth","zip","zipper"],unicode:"\u{1F910}",emoticon:[":z",":Z"]},{group:0,hexcode:"1F928",label:"face with raised eyebrow",order:39,tags:["distrust","skeptic"],unicode:"\u{1F928}"},{group:0,hexcode:"1F610",label:"neutral face",order:40,tags:["deadpan","face","meh","neutral"],unicode:"\u{1F610}\uFE0F",emoticon:":|"},{group:0,hexcode:"1F611",label:"expressionless face",order:41,tags:["expressionless","face","inexpressive","meh","unexpressive"],unicode:"\u{1F611}"},{group:0,hexcode:"1F636",label:"face without mouth",order:42,tags:["face","mouth","quiet","silent"],unicode:"\u{1F636}",emoticon:":#"},{group:0,hexcode:"1FAE5",label:"dotted line face",order:43,tags:["depressed","disappear","hide","introvert","invisible"],unicode:"\u{1FAE5}"},{group:0,hexcode:"1F636-200D-1F32B-FE0F",label:"face in clouds",order:44,tags:["absentminded","face in the fog","head in clouds"],unicode:"\u{1F636}\u200D\u{1F32B}\uFE0F"},{group:0,hexcode:"1F60F",label:"smirking face",order:46,tags:["face","smirk"],unicode:"\u{1F60F}",emoticon:":j"},{group:0,hexcode:"1F612",label:"unamused face",order:47,tags:["face","unamused","unhappy"],unicode:"\u{1F612}",emoticon:":?"},{group:0,hexcode:"1F644",label:"face with rolling eyes",order:48,tags:["eyeroll","eyes","face","rolling"],unicode:"\u{1F644}"},{group:0,hexcode:"1F62C",label:"grimacing face",order:49,tags:["face","grimace"],unicode:"\u{1F62C}",emoticon:"8D"},{group:0,hexcode:"1F62E-200D-1F4A8",label:"face exhaling",order:50,tags:["exhale","gasp","groan","relief","whisper","whistle"],unicode:"\u{1F62E}\u200D\u{1F4A8}"},{group:0,hexcode:"1F925",label:"lying face",order:51,tags:["face","lie","pinocchio"],unicode:"\u{1F925}"},{group:0,hexcode:"1FAE8",label:"shaking face",order:52,tags:["earthquake","face","shaking","shock","vibrate"],unicode:"\u{1FAE8}"},{group:0,hexcode:"1F642-200D-2194-FE0F",label:"head shaking horizontally",order:53,tags:["no","shake"],unicode:"\u{1F642}\u200D\u2194\uFE0F"},{group:0,hexcode:"1F642-200D-2195-FE0F",label:"head shaking vertically",order:55,tags:["nod","yes"],unicode:"\u{1F642}\u200D\u2195\uFE0F"},{group:0,hexcode:"1F60C",label:"relieved face",order:57,tags:["face","relieved"],unicode:"\u{1F60C}"},{group:0,hexcode:"1F614",label:"pensive face",order:58,tags:["dejected","face","pensive"],unicode:"\u{1F614}"},{group:0,hexcode:"1F62A",label:"sleepy face",order:59,tags:["face","good night","sleep"],unicode:"\u{1F62A}"},{group:0,hexcode:"1F924",label:"drooling face",order:60,tags:["drooling","face"],unicode:"\u{1F924}"},{group:0,hexcode:"1F634",label:"sleeping face",order:61,tags:["face","good night","sleep","zzz"],unicode:"\u{1F634}"},{group:0,hexcode:"1F637",label:"face with medical mask",order:62,tags:["cold","doctor","face","mask","sick"],unicode:"\u{1F637}"},{group:0,hexcode:"1F912",label:"face with thermometer",order:63,tags:["face","ill","sick","thermometer"],unicode:"\u{1F912}"},{group:0,hexcode:"1F915",label:"face with head-bandage",order:64,tags:["bandage","face","hurt","injury"],unicode:"\u{1F915}"},{group:0,hexcode:"1F922",label:"nauseated face",order:65,tags:["face","nauseated","vomit"],unicode:"\u{1F922}",emoticon:"%("},{group:0,hexcode:"1F92E",label:"face vomiting",order:66,tags:["puke","sick","vomit"],unicode:"\u{1F92E}"},{group:0,hexcode:"1F927",label:"sneezing face",order:67,tags:["face","gesundheit","sneeze"],unicode:"\u{1F927}"},{group:0,hexcode:"1F975",label:"hot face",order:68,tags:["feverish","heat stroke","hot","red-faced","sweating"],unicode:"\u{1F975}"},{group:0,hexcode:"1F976",label:"cold face",order:69,tags:["blue-faced","cold","freezing","frostbite","icicles"],unicode:"\u{1F976}"},{group:0,hexcode:"1F974",label:"woozy face",order:70,tags:["dizzy","intoxicated","tipsy","uneven eyes","wavy mouth"],unicode:"\u{1F974}",emoticon:":&"},{group:0,hexcode:"1F635",label:"face with crossed-out eyes",order:71,tags:["crossed-out eyes","dead","face","knocked out"],unicode:"\u{1F635}",emoticon:["xo","XO"]},{group:0,hexcode:"1F635-200D-1F4AB",label:"face with spiral eyes",order:72,tags:["dizzy","hypnotized","spiral","trouble","whoa"],unicode:"\u{1F635}\u200D\u{1F4AB}"},{group:0,hexcode:"1F92F",label:"exploding head",order:73,tags:["mind blown","shocked"],unicode:"\u{1F92F}"},{group:0,hexcode:"1F920",label:"cowboy hat face",order:74,tags:["cowboy","cowgirl","face","hat"],unicode:"\u{1F920}"},{group:0,hexcode:"1F973",label:"partying face",order:75,tags:["celebration","hat","horn","party"],unicode:"\u{1F973}"},{group:0,hexcode:"1F978",label:"disguised face",order:76,tags:["disguise","face","glasses","incognito","nose"],unicode:"\u{1F978}"},{group:0,hexcode:"1F60E",label:"smiling face with sunglasses",order:77,tags:["bright","cool","face","sun","sunglasses"],unicode:"\u{1F60E}",emoticon:"8)"},{group:0,hexcode:"1F913",label:"nerd face",order:78,tags:["face","geek","nerd"],unicode:"\u{1F913}",emoticon:":B"},{group:0,hexcode:"1F9D0",label:"face with monocle",order:79,tags:["face","monocle","stuffy"],unicode:"\u{1F9D0}"},{group:0,hexcode:"1F615",label:"confused face",order:80,tags:["confused","face","meh"],unicode:"\u{1F615}",emoticon:":/"},{group:0,hexcode:"1FAE4",label:"face with diagonal mouth",order:81,tags:["disappointed","meh","skeptical","unsure"],unicode:"\u{1FAE4}"},{group:0,hexcode:"1F61F",label:"worried face",order:82,tags:["face","worried"],unicode:"\u{1F61F}"},{group:0,hexcode:"1F641",label:"slightly frowning face",order:83,tags:["face","frown"],unicode:"\u{1F641}"},{group:0,hexcode:"2639",label:"frowning face",order:85,tags:["face","frown"],unicode:"\u2639\uFE0F",emoticon:":("},{group:0,hexcode:"1F62E",label:"face with open mouth",order:86,tags:["face","mouth","open","sympathy"],unicode:"\u{1F62E}"},{group:0,hexcode:"1F62F",label:"hushed face",order:87,tags:["face","hushed","stunned","surprised"],unicode:"\u{1F62F}"},{group:0,hexcode:"1F632",label:"astonished face",order:88,tags:["astonished","face","shocked","totally"],unicode:"\u{1F632}",emoticon:[":o",":O"]},{group:0,hexcode:"1F633",label:"flushed face",order:89,tags:["dazed","face","flushed"],unicode:"\u{1F633}",emoticon:":$"},{group:0,hexcode:"1F97A",label:"pleading face",order:90,tags:["begging","mercy","puppy eyes"],unicode:"\u{1F97A}"},{group:0,hexcode:"1F979",label:"face holding back tears",order:91,tags:["angry","cry","proud","resist","sad"],unicode:"\u{1F979}"},{group:0,hexcode:"1F626",label:"frowning face with open mouth",order:92,tags:["face","frown","mouth","open"],unicode:"\u{1F626}"},{group:0,hexcode:"1F627",label:"anguished face",order:93,tags:["anguished","face"],unicode:"\u{1F627}",emoticon:[":s",":S"]},{group:0,hexcode:"1F628",label:"fearful face",order:94,tags:["face","fear","fearful","scared"],unicode:"\u{1F628}"},{group:0,hexcode:"1F630",label:"anxious face with sweat",order:95,tags:["blue","cold","face","rushed","sweat"],unicode:"\u{1F630}"},{group:0,hexcode:"1F625",label:"sad but relieved face",order:96,tags:["disappointed","face","relieved","whew"],unicode:"\u{1F625}"},{group:0,hexcode:"1F622",label:"crying face",order:97,tags:["cry","face","sad","tear"],unicode:"\u{1F622}",emoticon:":'("},{group:0,hexcode:"1F62D",label:"loudly crying face",order:98,tags:["cry","face","sad","sob","tear"],unicode:"\u{1F62D}",emoticon:":'o"},{group:0,hexcode:"1F631",label:"face screaming in fear",order:99,tags:["face","fear","munch","scared","scream"],unicode:"\u{1F631}",emoticon:"Dx"},{group:0,hexcode:"1F616",label:"confounded face",order:100,tags:["confounded","face"],unicode:"\u{1F616}",emoticon:["x(","X("]},{group:0,hexcode:"1F623",label:"persevering face",order:101,tags:["face","persevere"],unicode:"\u{1F623}"},{group:0,hexcode:"1F61E",label:"disappointed face",order:102,tags:["disappointed","face"],unicode:"\u{1F61E}"},{group:0,hexcode:"1F613",label:"downcast face with sweat",order:103,tags:["cold","face","sweat"],unicode:"\u{1F613}",emoticon:":<"},{group:0,hexcode:"1F629",label:"weary face",order:104,tags:["face","tired","weary"],unicode:"\u{1F629}",emoticon:"D:"},{group:0,hexcode:"1F62B",label:"tired face",order:105,tags:["face","tired"],unicode:"\u{1F62B}",emoticon:[":c",":C"]},{group:0,hexcode:"1F971",label:"yawning face",order:106,tags:["bored","tired","yawn"],unicode:"\u{1F971}"},{group:0,hexcode:"1F624",label:"face with steam from nose",order:107,tags:["face","triumph","won"],unicode:"\u{1F624}"},{group:0,hexcode:"1F621",label:"enraged face",order:108,tags:["angry","enraged","face","mad","pouting","rage","red"],unicode:"\u{1F621}",emoticon:">:/"},{group:0,hexcode:"1F620",label:"angry face",order:109,tags:["anger","angry","face","mad"],unicode:"\u{1F620}"},{group:0,hexcode:"1F92C",label:"face with symbols on mouth",order:110,tags:["swearing"],unicode:"\u{1F92C}",emoticon:":@"},{group:0,hexcode:"1F608",label:"smiling face with horns",order:111,tags:["face","fairy tale","fantasy","horns","smile"],unicode:"\u{1F608}",emoticon:">:)"},{group:0,hexcode:"1F47F",label:"angry face with horns",order:112,tags:["demon","devil","face","fantasy","imp"],unicode:"\u{1F47F}",emoticon:">:("},{group:0,hexcode:"1F480",label:"skull",order:113,tags:["death","face","fairy tale","monster"],unicode:"\u{1F480}"},{group:0,hexcode:"2620",label:"skull and crossbones",order:115,tags:["crossbones","death","face","monster","skull"],unicode:"\u2620\uFE0F"},{group:0,hexcode:"1F4A9",label:"pile of poo",order:116,tags:["dung","face","monster","poo","poop"],unicode:"\u{1F4A9}"},{group:0,hexcode:"1F921",label:"clown face",order:117,tags:["clown","face"],unicode:"\u{1F921}"},{group:0,hexcode:"1F479",label:"ogre",order:118,tags:["creature","face","fairy tale","fantasy","monster"],unicode:"\u{1F479}",emoticon:">0)"},{group:0,hexcode:"1F47A",label:"goblin",order:119,tags:["creature","face","fairy tale","fantasy","monster"],unicode:"\u{1F47A}"},{group:0,hexcode:"1F47B",label:"ghost",order:120,tags:["creature","face","fairy tale","fantasy","monster"],unicode:"\u{1F47B}"},{group:0,hexcode:"1F47D",label:"alien",order:121,tags:["creature","extraterrestrial","face","fantasy","ufo"],unicode:"\u{1F47D}\uFE0F"},{group:0,hexcode:"1F47E",label:"alien monster",order:122,tags:["alien","creature","extraterrestrial","face","monster","ufo"],unicode:"\u{1F47E}"},{group:0,hexcode:"1F916",label:"robot",order:123,tags:["face","monster"],unicode:"\u{1F916}"},{group:0,hexcode:"1F63A",label:"grinning cat",order:124,tags:["cat","face","grinning","mouth","open","smile"],unicode:"\u{1F63A}"},{group:0,hexcode:"1F638",label:"grinning cat with smiling eyes",order:125,tags:["cat","eye","face","grin","smile"],unicode:"\u{1F638}"},{group:0,hexcode:"1F639",label:"cat with tears of joy",order:126,tags:["cat","face","joy","tear"],unicode:"\u{1F639}"},{group:0,hexcode:"1F63B",label:"smiling cat with heart-eyes",order:127,tags:["cat","eye","face","heart","love","smile"],unicode:"\u{1F63B}"},{group:0,hexcode:"1F63C",label:"cat with wry smile",order:128,tags:["cat","face","ironic","smile","wry"],unicode:"\u{1F63C}"},{group:0,hexcode:"1F63D",label:"kissing cat",order:129,tags:["cat","eye","face","kiss"],unicode:"\u{1F63D}",emoticon:":3"},{group:0,hexcode:"1F640",label:"weary cat",order:130,tags:["cat","face","oh","surprised","weary"],unicode:"\u{1F640}"},{group:0,hexcode:"1F63F",label:"crying cat",order:131,tags:["cat","cry","face","sad","tear"],unicode:"\u{1F63F}"},{group:0,hexcode:"1F63E",label:"pouting cat",order:132,tags:["cat","face","pouting"],unicode:"\u{1F63E}"},{group:0,hexcode:"1F648",label:"see-no-evil monkey",order:133,tags:["evil","face","forbidden","monkey","see"],unicode:"\u{1F648}"},{group:0,hexcode:"1F649",label:"hear-no-evil monkey",order:134,tags:["evil","face","forbidden","hear","monkey"],unicode:"\u{1F649}"},{group:0,hexcode:"1F64A",label:"speak-no-evil monkey",order:135,tags:["evil","face","forbidden","monkey","speak"],unicode:"\u{1F64A}"},{group:0,hexcode:"1F48C",label:"love letter",order:136,tags:["heart","letter","love","mail"],unicode:"\u{1F48C}"},{group:0,hexcode:"1F498",label:"heart with arrow",order:137,tags:["arrow","cupid"],unicode:"\u{1F498}"},{group:0,hexcode:"1F49D",label:"heart with ribbon",order:138,tags:["ribbon","valentine"],unicode:"\u{1F49D}"},{group:0,hexcode:"1F496",label:"sparkling heart",order:139,tags:["excited","sparkle"],unicode:"\u{1F496}"},{group:0,hexcode:"1F497",label:"growing heart",order:140,tags:["excited","growing","nervous","pulse"],unicode:"\u{1F497}"},{group:0,hexcode:"1F493",label:"beating heart",order:141,tags:["beating","heartbeat","pulsating"],unicode:"\u{1F493}"},{group:0,hexcode:"1F49E",label:"revolving hearts",order:142,tags:["revolving"],unicode:"\u{1F49E}"},{group:0,hexcode:"1F495",label:"two hearts",order:143,tags:["love"],unicode:"\u{1F495}"},{group:0,hexcode:"1F49F",label:"heart decoration",order:144,tags:["heart"],unicode:"\u{1F49F}"},{group:0,hexcode:"2763",label:"heart exclamation",order:146,tags:["exclamation","mark","punctuation"],unicode:"\u2763\uFE0F"},{group:0,hexcode:"1F494",label:"broken heart",order:147,tags:["break","broken"],unicode:"\u{1F494}",emoticon:"</3"},{group:0,hexcode:"2764-FE0F-200D-1F525",label:"heart on fire",order:148,tags:["burn","heart","love","lust","sacred heart"],unicode:"\u2764\uFE0F\u200D\u{1F525}"},{group:0,hexcode:"2764-FE0F-200D-1FA79",label:"mending heart",order:150,tags:["healthier","improving","mending","recovering","recuperating","well"],unicode:"\u2764\uFE0F\u200D\u{1FA79}"},{group:0,hexcode:"2764",label:"red heart",order:153,tags:["heart"],unicode:"\u2764\uFE0F",emoticon:"<3"},{group:0,hexcode:"1FA77",label:"pink heart",order:154,tags:["cute","heart","like","love","pink"],unicode:"\u{1FA77}"},{group:0,hexcode:"1F9E1",label:"orange heart",order:155,tags:["orange"],unicode:"\u{1F9E1}"},{group:0,hexcode:"1F49B",label:"yellow heart",order:156,tags:["yellow"],unicode:"\u{1F49B}"},{group:0,hexcode:"1F49A",label:"green heart",order:157,tags:["green"],unicode:"\u{1F49A}"},{group:0,hexcode:"1F499",label:"blue heart",order:158,tags:["blue"],unicode:"\u{1F499}"},{group:0,hexcode:"1FA75",label:"light blue heart",order:159,tags:["cyan","heart","light blue","teal"],unicode:"\u{1FA75}"},{group:0,hexcode:"1F49C",label:"purple heart",order:160,tags:["purple"],unicode:"\u{1F49C}"},{group:0,hexcode:"1F90E",label:"brown heart",order:161,tags:["brown","heart"],unicode:"\u{1F90E}"},{group:0,hexcode:"1F5A4",label:"black heart",order:162,tags:["black","evil","wicked"],unicode:"\u{1F5A4}"},{group:0,hexcode:"1FA76",label:"grey heart",order:163,tags:["gray","heart","silver","slate"],unicode:"\u{1FA76}"},{group:0,hexcode:"1F90D",label:"white heart",order:164,tags:["heart","white"],unicode:"\u{1F90D}"},{group:0,hexcode:"1F48B",label:"kiss mark",order:165,tags:["kiss","lips"],unicode:"\u{1F48B}"},{group:0,hexcode:"1F4AF",label:"hundred points",order:166,tags:["100","full","hundred","score"],unicode:"\u{1F4AF}"},{group:0,hexcode:"1F4A2",label:"anger symbol",order:167,tags:["angry","comic","mad"],unicode:"\u{1F4A2}"},{group:0,hexcode:"1F4A5",label:"collision",order:168,tags:["boom","comic"],unicode:"\u{1F4A5}"},{group:0,hexcode:"1F4AB",label:"dizzy",order:169,tags:["comic","star"],unicode:"\u{1F4AB}"},{group:0,hexcode:"1F4A6",label:"sweat droplets",order:170,tags:["comic","splashing","sweat"],unicode:"\u{1F4A6}"},{group:0,hexcode:"1F4A8",label:"dashing away",order:171,tags:["comic","dash","running"],unicode:"\u{1F4A8}"},{group:0,hexcode:"1F573",label:"hole",order:173,tags:["hole"],unicode:"\u{1F573}\uFE0F"},{group:0,hexcode:"1F4AC",label:"speech balloon",order:174,tags:["balloon","bubble","comic","dialog","speech"],unicode:"\u{1F4AC}"},{group:0,hexcode:"1F441-FE0F-200D-1F5E8-FE0F",label:"eye in speech bubble",order:175,tags:["balloon","bubble","eye","speech","witness"],unicode:"\u{1F441}\uFE0F\u200D\u{1F5E8}\uFE0F"},{group:0,hexcode:"1F5E8",label:"left speech bubble",order:180,tags:["balloon","bubble","dialog","speech"],unicode:"\u{1F5E8}\uFE0F"},{group:0,hexcode:"1F5EF",label:"right anger bubble",order:182,tags:["angry","balloon","bubble","mad"],unicode:"\u{1F5EF}\uFE0F"},{group:0,hexcode:"1F4AD",label:"thought balloon",order:183,tags:["balloon","bubble","comic","thought"],unicode:"\u{1F4AD}"},{group:0,hexcode:"1F4A4",label:"ZZZ",order:184,tags:["comic","good night","sleep","zzz"],unicode:"\u{1F4A4}"},{group:1,hexcode:"1F44B",label:"waving hand",order:185,tags:["hand","wave","waving"],unicode:"\u{1F44B}",skins:[{group:1,hexcode:"1F44B-1F3FB",label:"waving hand: light skin tone",order:186,unicode:"\u{1F44B}\u{1F3FB}"},{group:1,hexcode:"1F44B-1F3FC",label:"waving hand: medium-light skin tone",order:187,unicode:"\u{1F44B}\u{1F3FC}"},{group:1,hexcode:"1F44B-1F3FD",label:"waving hand: medium skin tone",order:188,unicode:"\u{1F44B}\u{1F3FD}"},{group:1,hexcode:"1F44B-1F3FE",label:"waving hand: medium-dark skin tone",order:189,unicode:"\u{1F44B}\u{1F3FE}"},{group:1,hexcode:"1F44B-1F3FF",label:"waving hand: dark skin tone",order:190,unicode:"\u{1F44B}\u{1F3FF}"}]},{group:1,hexcode:"1F91A",label:"raised back of hand",order:191,tags:["backhand","raised"],unicode:"\u{1F91A}",skins:[{group:1,hexcode:"1F91A-1F3FB",label:"raised back of hand: light skin tone",order:192,unicode:"\u{1F91A}\u{1F3FB}"},{group:1,hexcode:"1F91A-1F3FC",label:"raised back of hand: medium-light skin tone",order:193,unicode:"\u{1F91A}\u{1F3FC}"},{group:1,hexcode:"1F91A-1F3FD",label:"raised back of hand: medium skin tone",order:194,unicode:"\u{1F91A}\u{1F3FD}"},{group:1,hexcode:"1F91A-1F3FE",label:"raised back of hand: medium-dark skin tone",order:195,unicode:"\u{1F91A}\u{1F3FE}"},{group:1,hexcode:"1F91A-1F3FF",label:"raised back of hand: dark skin tone",order:196,unicode:"\u{1F91A}\u{1F3FF}"}]},{group:1,hexcode:"1F590",label:"hand with fingers splayed",order:198,tags:["finger","hand","splayed"],unicode:"\u{1F590}\uFE0F",skins:[{group:1,hexcode:"1F590-1F3FB",label:"hand with fingers splayed: light skin tone",order:199,unicode:"\u{1F590}\u{1F3FB}"},{group:1,hexcode:"1F590-1F3FC",label:"hand with fingers splayed: medium-light skin tone",order:200,unicode:"\u{1F590}\u{1F3FC}"},{group:1,hexcode:"1F590-1F3FD",label:"hand with fingers splayed: medium skin tone",order:201,unicode:"\u{1F590}\u{1F3FD}"},{group:1,hexcode:"1F590-1F3FE",label:"hand with fingers splayed: medium-dark skin tone",order:202,unicode:"\u{1F590}\u{1F3FE}"},{group:1,hexcode:"1F590-1F3FF",label:"hand with fingers splayed: dark skin tone",order:203,unicode:"\u{1F590}\u{1F3FF}"}]},{group:1,hexcode:"270B",label:"raised hand",order:204,tags:["hand","high 5","high five"],unicode:"\u270B\uFE0F",skins:[{group:1,hexcode:"270B-1F3FB",label:"raised hand: light skin tone",order:205,unicode:"\u270B\u{1F3FB}"},{group:1,hexcode:"270B-1F3FC",label:"raised hand: medium-light skin tone",order:206,unicode:"\u270B\u{1F3FC}"},{group:1,hexcode:"270B-1F3FD",label:"raised hand: medium skin tone",order:207,unicode:"\u270B\u{1F3FD}"},{group:1,hexcode:"270B-1F3FE",label:"raised hand: medium-dark skin tone",order:208,unicode:"\u270B\u{1F3FE}"},{group:1,hexcode:"270B-1F3FF",label:"raised hand: dark skin tone",order:209,unicode:"\u270B\u{1F3FF}"}]},{group:1,hexcode:"1F596",label:"vulcan salute",order:210,tags:["finger","hand","spock","vulcan"],unicode:"\u{1F596}",skins:[{group:1,hexcode:"1F596-1F3FB",label:"vulcan salute: light skin tone",order:211,unicode:"\u{1F596}\u{1F3FB}"},{group:1,hexcode:"1F596-1F3FC",label:"vulcan salute: medium-light skin tone",order:212,unicode:"\u{1F596}\u{1F3FC}"},{group:1,hexcode:"1F596-1F3FD",label:"vulcan salute: medium skin tone",order:213,unicode:"\u{1F596}\u{1F3FD}"},{group:1,hexcode:"1F596-1F3FE",label:"vulcan salute: medium-dark skin tone",order:214,unicode:"\u{1F596}\u{1F3FE}"},{group:1,hexcode:"1F596-1F3FF",label:"vulcan salute: dark skin tone",order:215,unicode:"\u{1F596}\u{1F3FF}"}]},{group:1,hexcode:"1FAF1",label:"rightwards hand",order:216,tags:["hand","right","rightward"],unicode:"\u{1FAF1}",skins:[{group:1,hexcode:"1FAF1-1F3FB",label:"rightwards hand: light skin tone",order:217,unicode:"\u{1FAF1}\u{1F3FB}"},{group:1,hexcode:"1FAF1-1F3FC",label:"rightwards hand: medium-light skin tone",order:218,unicode:"\u{1FAF1}\u{1F3FC}"},{group:1,hexcode:"1FAF1-1F3FD",label:"rightwards hand: medium skin tone",order:219,unicode:"\u{1FAF1}\u{1F3FD}"},{group:1,hexcode:"1FAF1-1F3FE",label:"rightwards hand: medium-dark skin tone",order:220,unicode:"\u{1FAF1}\u{1F3FE}"},{group:1,hexcode:"1FAF1-1F3FF",label:"rightwards hand: dark skin tone",order:221,unicode:"\u{1FAF1}\u{1F3FF}"}]},{group:1,hexcode:"1FAF2",label:"leftwards hand",order:222,tags:["hand","left","leftward"],unicode:"\u{1FAF2}",skins:[{group:1,hexcode:"1FAF2-1F3FB",label:"leftwards hand: light skin tone",order:223,unicode:"\u{1FAF2}\u{1F3FB}"},{group:1,hexcode:"1FAF2-1F3FC",label:"leftwards hand: medium-light skin tone",order:224,unicode:"\u{1FAF2}\u{1F3FC}"},{group:1,hexcode:"1FAF2-1F3FD",label:"leftwards hand: medium skin tone",order:225,unicode:"\u{1FAF2}\u{1F3FD}"},{group:1,hexcode:"1FAF2-1F3FE",label:"leftwards hand: medium-dark skin tone",order:226,unicode:"\u{1FAF2}\u{1F3FE}"},{group:1,hexcode:"1FAF2-1F3FF",label:"leftwards hand: dark skin tone",order:227,unicode:"\u{1FAF2}\u{1F3FF}"}]},{group:1,hexcode:"1FAF3",label:"palm down hand",order:228,tags:["dismiss","drop","shoo"],unicode:"\u{1FAF3}",skins:[{group:1,hexcode:"1FAF3-1F3FB",label:"palm down hand: light skin tone",order:229,unicode:"\u{1FAF3}\u{1F3FB}"},{group:1,hexcode:"1FAF3-1F3FC",label:"palm down hand: medium-light skin tone",order:230,unicode:"\u{1FAF3}\u{1F3FC}"},{group:1,hexcode:"1FAF3-1F3FD",label:"palm down hand: medium skin tone",order:231,unicode:"\u{1FAF3}\u{1F3FD}"},{group:1,hexcode:"1FAF3-1F3FE",label:"palm down hand: medium-dark skin tone",order:232,unicode:"\u{1FAF3}\u{1F3FE}"},{group:1,hexcode:"1FAF3-1F3FF",label:"palm down hand: dark skin tone",order:233,unicode:"\u{1FAF3}\u{1F3FF}"}]},{group:1,hexcode:"1FAF4",label:"palm up hand",order:234,tags:["beckon","catch","come","offer"],unicode:"\u{1FAF4}",skins:[{group:1,hexcode:"1FAF4-1F3FB",label:"palm up hand: light skin tone",order:235,unicode:"\u{1FAF4}\u{1F3FB}"},{group:1,hexcode:"1FAF4-1F3FC",label:"palm up hand: medium-light skin tone",order:236,unicode:"\u{1FAF4}\u{1F3FC}"},{group:1,hexcode:"1FAF4-1F3FD",label:"palm up hand: medium skin tone",order:237,unicode:"\u{1FAF4}\u{1F3FD}"},{group:1,hexcode:"1FAF4-1F3FE",label:"palm up hand: medium-dark skin tone",order:238,unicode:"\u{1FAF4}\u{1F3FE}"},{group:1,hexcode:"1FAF4-1F3FF",label:"palm up hand: dark skin tone",order:239,unicode:"\u{1FAF4}\u{1F3FF}"}]},{group:1,hexcode:"1FAF7",label:"leftwards pushing hand",order:240,tags:["high five","leftward","push","refuse","stop","wait"],unicode:"\u{1FAF7}",skins:[{group:1,hexcode:"1FAF7-1F3FB",label:"leftwards pushing hand: light skin tone",order:241,unicode:"\u{1FAF7}\u{1F3FB}"},{group:1,hexcode:"1FAF7-1F3FC",label:"leftwards pushing hand: medium-light skin tone",order:242,unicode:"\u{1FAF7}\u{1F3FC}"},{group:1,hexcode:"1FAF7-1F3FD",label:"leftwards pushing hand: medium skin tone",order:243,unicode:"\u{1FAF7}\u{1F3FD}"},{group:1,hexcode:"1FAF7-1F3FE",label:"leftwards pushing hand: medium-dark skin tone",order:244,unicode:"\u{1FAF7}\u{1F3FE}"},{group:1,hexcode:"1FAF7-1F3FF",label:"leftwards pushing hand: dark skin tone",order:245,unicode:"\u{1FAF7}\u{1F3FF}"}]},{group:1,hexcode:"1FAF8",label:"rightwards pushing hand",order:246,tags:["high five","push","refuse","rightward","stop","wait"],unicode:"\u{1FAF8}",skins:[{group:1,hexcode:"1FAF8-1F3FB",label:"rightwards pushing hand: light skin tone",order:247,unicode:"\u{1FAF8}\u{1F3FB}"},{group:1,hexcode:"1FAF8-1F3FC",label:"rightwards pushing hand: medium-light skin tone",order:248,unicode:"\u{1FAF8}\u{1F3FC}"},{group:1,hexcode:"1FAF8-1F3FD",label:"rightwards pushing hand: medium skin tone",order:249,unicode:"\u{1FAF8}\u{1F3FD}"},{group:1,hexcode:"1FAF8-1F3FE",label:"rightwards pushing hand: medium-dark skin tone",order:250,unicode:"\u{1FAF8}\u{1F3FE}"},{group:1,hexcode:"1FAF8-1F3FF",label:"rightwards pushing hand: dark skin tone",order:251,unicode:"\u{1FAF8}\u{1F3FF}"}]},{group:1,hexcode:"1F44C",label:"OK hand",order:252,tags:["hand","ok"],unicode:"\u{1F44C}",skins:[{group:1,hexcode:"1F44C-1F3FB",label:"OK hand: light skin tone",order:253,unicode:"\u{1F44C}\u{1F3FB}"},{group:1,hexcode:"1F44C-1F3FC",label:"OK hand: medium-light skin tone",order:254,unicode:"\u{1F44C}\u{1F3FC}"},{group:1,hexcode:"1F44C-1F3FD",label:"OK hand: medium skin tone",order:255,unicode:"\u{1F44C}\u{1F3FD}"},{group:1,hexcode:"1F44C-1F3FE",label:"OK hand: medium-dark skin tone",order:256,unicode:"\u{1F44C}\u{1F3FE}"},{group:1,hexcode:"1F44C-1F3FF",label:"OK hand: dark skin tone",order:257,unicode:"\u{1F44C}\u{1F3FF}"}]},{group:1,hexcode:"1F90C",label:"pinched fingers",order:258,tags:["fingers","hand gesture","interrogation","pinched","sarcastic"],unicode:"\u{1F90C}",skins:[{group:1,hexcode:"1F90C-1F3FB",label:"pinched fingers: light skin tone",order:259,unicode:"\u{1F90C}\u{1F3FB}"},{group:1,hexcode:"1F90C-1F3FC",label:"pinched fingers: medium-light skin tone",order:260,unicode:"\u{1F90C}\u{1F3FC}"},{group:1,hexcode:"1F90C-1F3FD",label:"pinched fingers: medium skin tone",order:261,unicode:"\u{1F90C}\u{1F3FD}"},{group:1,hexcode:"1F90C-1F3FE",label:"pinched fingers: medium-dark skin tone",order:262,unicode:"\u{1F90C}\u{1F3FE}"},{group:1,hexcode:"1F90C-1F3FF",label:"pinched fingers: dark skin tone",order:263,unicode:"\u{1F90C}\u{1F3FF}"}]},{group:1,hexcode:"1F90F",label:"pinching hand",order:264,tags:["small amount"],unicode:"\u{1F90F}",skins:[{group:1,hexcode:"1F90F-1F3FB",label:"pinching hand: light skin tone",order:265,unicode:"\u{1F90F}\u{1F3FB}"},{group:1,hexcode:"1F90F-1F3FC",label:"pinching hand: medium-light skin tone",order:266,unicode:"\u{1F90F}\u{1F3FC}"},{group:1,hexcode:"1F90F-1F3FD",label:"pinching hand: medium skin tone",order:267,unicode:"\u{1F90F}\u{1F3FD}"},{group:1,hexcode:"1F90F-1F3FE",label:"pinching hand: medium-dark skin tone",order:268,unicode:"\u{1F90F}\u{1F3FE}"},{group:1,hexcode:"1F90F-1F3FF",label:"pinching hand: dark skin tone",order:269,unicode:"\u{1F90F}\u{1F3FF}"}]},{group:1,hexcode:"270C",label:"victory hand",order:271,tags:["hand","v","victory"],unicode:"\u270C\uFE0F",skins:[{group:1,hexcode:"270C-1F3FB",label:"victory hand: light skin tone",order:272,unicode:"\u270C\u{1F3FB}"},{group:1,hexcode:"270C-1F3FC",label:"victory hand: medium-light skin tone",order:273,unicode:"\u270C\u{1F3FC}"},{group:1,hexcode:"270C-1F3FD",label:"victory hand: medium skin tone",order:274,unicode:"\u270C\u{1F3FD}"},{group:1,hexcode:"270C-1F3FE",label:"victory hand: medium-dark skin tone",order:275,unicode:"\u270C\u{1F3FE}"},{group:1,hexcode:"270C-1F3FF",label:"victory hand: dark skin tone",order:276,unicode:"\u270C\u{1F3FF}"}]},{group:1,hexcode:"1F91E",label:"crossed fingers",order:277,tags:["cross","finger","hand","luck"],unicode:"\u{1F91E}",skins:[{group:1,hexcode:"1F91E-1F3FB",label:"crossed fingers: light skin tone",order:278,unicode:"\u{1F91E}\u{1F3FB}"},{group:1,hexcode:"1F91E-1F3FC",label:"crossed fingers: medium-light skin tone",order:279,unicode:"\u{1F91E}\u{1F3FC}"},{group:1,hexcode:"1F91E-1F3FD",label:"crossed fingers: medium skin tone",order:280,unicode:"\u{1F91E}\u{1F3FD}"},{group:1,hexcode:"1F91E-1F3FE",label:"crossed fingers: medium-dark skin tone",order:281,unicode:"\u{1F91E}\u{1F3FE}"},{group:1,hexcode:"1F91E-1F3FF",label:"crossed fingers: dark skin tone",order:282,unicode:"\u{1F91E}\u{1F3FF}"}]},{group:1,hexcode:"1FAF0",label:"hand with index finger and thumb crossed",order:283,tags:["expensive","heart","love","money","snap"],unicode:"\u{1FAF0}",skins:[{group:1,hexcode:"1FAF0-1F3FB",label:"hand with index finger and thumb crossed: light skin tone",order:284,unicode:"\u{1FAF0}\u{1F3FB}"},{group:1,hexcode:"1FAF0-1F3FC",label:"hand with index finger and thumb crossed: medium-light skin tone",order:285,unicode:"\u{1FAF0}\u{1F3FC}"},{group:1,hexcode:"1FAF0-1F3FD",label:"hand with index finger and thumb crossed: medium skin tone",order:286,unicode:"\u{1FAF0}\u{1F3FD}"},{group:1,hexcode:"1FAF0-1F3FE",label:"hand with index finger and thumb crossed: medium-dark skin tone",order:287,unicode:"\u{1FAF0}\u{1F3FE}"},{group:1,hexcode:"1FAF0-1F3FF",label:"hand with index finger and thumb crossed: dark skin tone",order:288,unicode:"\u{1FAF0}\u{1F3FF}"}]},{group:1,hexcode:"1F91F",label:"love-you gesture",order:289,tags:["hand","ily"],unicode:"\u{1F91F}",skins:[{group:1,hexcode:"1F91F-1F3FB",label:"love-you gesture: light skin tone",order:290,unicode:"\u{1F91F}\u{1F3FB}"},{group:1,hexcode:"1F91F-1F3FC",label:"love-you gesture: medium-light skin tone",order:291,unicode:"\u{1F91F}\u{1F3FC}"},{group:1,hexcode:"1F91F-1F3FD",label:"love-you gesture: medium skin tone",order:292,unicode:"\u{1F91F}\u{1F3FD}"},{group:1,hexcode:"1F91F-1F3FE",label:"love-you gesture: medium-dark skin tone",order:293,unicode:"\u{1F91F}\u{1F3FE}"},{group:1,hexcode:"1F91F-1F3FF",label:"love-you gesture: dark skin tone",order:294,unicode:"\u{1F91F}\u{1F3FF}"}]},{group:1,hexcode:"1F918",label:"sign of the horns",order:295,tags:["finger","hand","horns","rock-on"],unicode:"\u{1F918}",emoticon:["\\m/","\\M/"],skins:[{group:1,hexcode:"1F918-1F3FB",label:"sign of the horns: light skin tone",order:296,unicode:"\u{1F918}\u{1F3FB}"},{group:1,hexcode:"1F918-1F3FC",label:"sign of the horns: medium-light skin tone",order:297,unicode:"\u{1F918}\u{1F3FC}"},{group:1,hexcode:"1F918-1F3FD",label:"sign of the horns: medium skin tone",order:298,unicode:"\u{1F918}\u{1F3FD}"},{group:1,hexcode:"1F918-1F3FE",label:"sign of the horns: medium-dark skin tone",order:299,unicode:"\u{1F918}\u{1F3FE}"},{group:1,hexcode:"1F918-1F3FF",label:"sign of the horns: dark skin tone",order:300,unicode:"\u{1F918}\u{1F3FF}"}]},{group:1,hexcode:"1F919",label:"call me hand",order:301,tags:["call","hand","hang loose","shaka"],unicode:"\u{1F919}",skins:[{group:1,hexcode:"1F919-1F3FB",label:"call me hand: light skin tone",order:302,unicode:"\u{1F919}\u{1F3FB}"},{group:1,hexcode:"1F919-1F3FC",label:"call me hand: medium-light skin tone",order:303,unicode:"\u{1F919}\u{1F3FC}"},{group:1,hexcode:"1F919-1F3FD",label:"call me hand: medium skin tone",order:304,unicode:"\u{1F919}\u{1F3FD}"},{group:1,hexcode:"1F919-1F3FE",label:"call me hand: medium-dark skin tone",order:305,unicode:"\u{1F919}\u{1F3FE}"},{group:1,hexcode:"1F919-1F3FF",label:"call me hand: dark skin tone",order:306,unicode:"\u{1F919}\u{1F3FF}"}]},{group:1,hexcode:"1F448",label:"backhand index pointing left",order:307,tags:["backhand","finger","hand","index","point"],unicode:"\u{1F448}\uFE0F",skins:[{group:1,hexcode:"1F448-1F3FB",label:"backhand index pointing left: light skin tone",order:308,unicode:"\u{1F448}\u{1F3FB}"},{group:1,hexcode:"1F448-1F3FC",label:"backhand index pointing left: medium-light skin tone",order:309,unicode:"\u{1F448}\u{1F3FC}"},{group:1,hexcode:"1F448-1F3FD",label:"backhand index pointing left: medium skin tone",order:310,unicode:"\u{1F448}\u{1F3FD}"},{group:1,hexcode:"1F448-1F3FE",label:"backhand index pointing left: medium-dark skin tone",order:311,unicode:"\u{1F448}\u{1F3FE}"},{group:1,hexcode:"1F448-1F3FF",label:"backhand index pointing left: dark skin tone",order:312,unicode:"\u{1F448}\u{1F3FF}"}]},{group:1,hexcode:"1F449",label:"backhand index pointing right",order:313,tags:["backhand","finger","hand","index","point"],unicode:"\u{1F449}\uFE0F",skins:[{group:1,hexcode:"1F449-1F3FB",label:"backhand index pointing right: light skin tone",order:314,unicode:"\u{1F449}\u{1F3FB}"},{group:1,hexcode:"1F449-1F3FC",label:"backhand index pointing right: medium-light skin tone",order:315,unicode:"\u{1F449}\u{1F3FC}"},{group:1,hexcode:"1F449-1F3FD",label:"backhand index pointing right: medium skin tone",order:316,unicode:"\u{1F449}\u{1F3FD}"},{group:1,hexcode:"1F449-1F3FE",label:"backhand index pointing right: medium-dark skin tone",order:317,unicode:"\u{1F449}\u{1F3FE}"},{group:1,hexcode:"1F449-1F3FF",label:"backhand index pointing right: dark skin tone",order:318,unicode:"\u{1F449}\u{1F3FF}"}]},{group:1,hexcode:"1F446",label:"backhand index pointing up",order:319,tags:["backhand","finger","hand","point","up"],unicode:"\u{1F446}\uFE0F",skins:[{group:1,hexcode:"1F446-1F3FB",label:"backhand index pointing up: light skin tone",order:320,unicode:"\u{1F446}\u{1F3FB}"},{group:1,hexcode:"1F446-1F3FC",label:"backhand index pointing up: medium-light skin tone",order:321,unicode:"\u{1F446}\u{1F3FC}"},{group:1,hexcode:"1F446-1F3FD",label:"backhand index pointing up: medium skin tone",order:322,unicode:"\u{1F446}\u{1F3FD}"},{group:1,hexcode:"1F446-1F3FE",label:"backhand index pointing up: medium-dark skin tone",order:323,unicode:"\u{1F446}\u{1F3FE}"},{group:1,hexcode:"1F446-1F3FF",label:"backhand index pointing up: dark skin tone",order:324,unicode:"\u{1F446}\u{1F3FF}"}]},{group:1,hexcode:"1F595",label:"middle finger",order:325,tags:["finger","hand"],unicode:"\u{1F595}",skins:[{group:1,hexcode:"1F595-1F3FB",label:"middle finger: light skin tone",order:326,unicode:"\u{1F595}\u{1F3FB}"},{group:1,hexcode:"1F595-1F3FC",label:"middle finger: medium-light skin tone",order:327,unicode:"\u{1F595}\u{1F3FC}"},{group:1,hexcode:"1F595-1F3FD",label:"middle finger: medium skin tone",order:328,unicode:"\u{1F595}\u{1F3FD}"},{group:1,hexcode:"1F595-1F3FE",label:"middle finger: medium-dark skin tone",order:329,unicode:"\u{1F595}\u{1F3FE}"},{group:1,hexcode:"1F595-1F3FF",label:"middle finger: dark skin tone",order:330,unicode:"\u{1F595}\u{1F3FF}"}]},{group:1,hexcode:"1F447",label:"backhand index pointing down",order:331,tags:["backhand","down","finger","hand","point"],unicode:"\u{1F447}\uFE0F",skins:[{group:1,hexcode:"1F447-1F3FB",label:"backhand index pointing down: light skin tone",order:332,unicode:"\u{1F447}\u{1F3FB}"},{group:1,hexcode:"1F447-1F3FC",label:"backhand index pointing down: medium-light skin tone",order:333,unicode:"\u{1F447}\u{1F3FC}"},{group:1,hexcode:"1F447-1F3FD",label:"backhand index pointing down: medium skin tone",order:334,unicode:"\u{1F447}\u{1F3FD}"},{group:1,hexcode:"1F447-1F3FE",label:"backhand index pointing down: medium-dark skin tone",order:335,unicode:"\u{1F447}\u{1F3FE}"},{group:1,hexcode:"1F447-1F3FF",label:"backhand index pointing down: dark skin tone",order:336,unicode:"\u{1F447}\u{1F3FF}"}]},{group:1,hexcode:"261D",label:"index pointing up",order:338,tags:["finger","hand","index","point","up"],unicode:"\u261D\uFE0F",skins:[{group:1,hexcode:"261D-1F3FB",label:"index pointing up: light skin tone",order:339,unicode:"\u261D\u{1F3FB}"},{group:1,hexcode:"261D-1F3FC",label:"index pointing up: medium-light skin tone",order:340,unicode:"\u261D\u{1F3FC}"},{group:1,hexcode:"261D-1F3FD",label:"index pointing up: medium skin tone",order:341,unicode:"\u261D\u{1F3FD}"},{group:1,hexcode:"261D-1F3FE",label:"index pointing up: medium-dark skin tone",order:342,unicode:"\u261D\u{1F3FE}"},{group:1,hexcode:"261D-1F3FF",label:"index pointing up: dark skin tone",order:343,unicode:"\u261D\u{1F3FF}"}]},{group:1,hexcode:"1FAF5",label:"index pointing at the viewer",order:344,tags:["point","you"],unicode:"\u{1FAF5}",skins:[{group:1,hexcode:"1FAF5-1F3FB",label:"index pointing at the viewer: light skin tone",order:345,unicode:"\u{1FAF5}\u{1F3FB}"},{group:1,hexcode:"1FAF5-1F3FC",label:"index pointing at the viewer: medium-light skin tone",order:346,unicode:"\u{1FAF5}\u{1F3FC}"},{group:1,hexcode:"1FAF5-1F3FD",label:"index pointing at the viewer: medium skin tone",order:347,unicode:"\u{1FAF5}\u{1F3FD}"},{group:1,hexcode:"1FAF5-1F3FE",label:"index pointing at the viewer: medium-dark skin tone",order:348,unicode:"\u{1FAF5}\u{1F3FE}"},{group:1,hexcode:"1FAF5-1F3FF",label:"index pointing at the viewer: dark skin tone",order:349,unicode:"\u{1FAF5}\u{1F3FF}"}]},{group:1,hexcode:"1F44D",label:"thumbs up",order:350,tags:["+1","hand","thumb","up"],unicode:"\u{1F44D}\uFE0F",skins:[{group:1,hexcode:"1F44D-1F3FB",label:"thumbs up: light skin tone",order:351,unicode:"\u{1F44D}\u{1F3FB}"},{group:1,hexcode:"1F44D-1F3FC",label:"thumbs up: medium-light skin tone",order:352,unicode:"\u{1F44D}\u{1F3FC}"},{group:1,hexcode:"1F44D-1F3FD",label:"thumbs up: medium skin tone",order:353,unicode:"\u{1F44D}\u{1F3FD}"},{group:1,hexcode:"1F44D-1F3FE",label:"thumbs up: medium-dark skin tone",order:354,unicode:"\u{1F44D}\u{1F3FE}"},{group:1,hexcode:"1F44D-1F3FF",label:"thumbs up: dark skin tone",order:355,unicode:"\u{1F44D}\u{1F3FF}"}]},{group:1,hexcode:"1F44E",label:"thumbs down",order:356,tags:["-1","down","hand","thumb"],unicode:"\u{1F44E}\uFE0F",skins:[{group:1,hexcode:"1F44E-1F3FB",label:"thumbs down: light skin tone",order:357,unicode:"\u{1F44E}\u{1F3FB}"},{group:1,hexcode:"1F44E-1F3FC",label:"thumbs down: medium-light skin tone",order:358,unicode:"\u{1F44E}\u{1F3FC}"},{group:1,hexcode:"1F44E-1F3FD",label:"thumbs down: medium skin tone",order:359,unicode:"\u{1F44E}\u{1F3FD}"},{group:1,hexcode:"1F44E-1F3FE",label:"thumbs down: medium-dark skin tone",order:360,unicode:"\u{1F44E}\u{1F3FE}"},{group:1,hexcode:"1F44E-1F3FF",label:"thumbs down: dark skin tone",order:361,unicode:"\u{1F44E}\u{1F3FF}"}]},{group:1,hexcode:"270A",label:"raised fist",order:362,tags:["clenched","fist","hand","punch"],unicode:"\u270A\uFE0F",skins:[{group:1,hexcode:"270A-1F3FB",label:"raised fist: light skin tone",order:363,unicode:"\u270A\u{1F3FB}"},{group:1,hexcode:"270A-1F3FC",label:"raised fist: medium-light skin tone",order:364,unicode:"\u270A\u{1F3FC}"},{group:1,hexcode:"270A-1F3FD",label:"raised fist: medium skin tone",order:365,unicode:"\u270A\u{1F3FD}"},{group:1,hexcode:"270A-1F3FE",label:"raised fist: medium-dark skin tone",order:366,unicode:"\u270A\u{1F3FE}"},{group:1,hexcode:"270A-1F3FF",label:"raised fist: dark skin tone",order:367,unicode:"\u270A\u{1F3FF}"}]},{group:1,hexcode:"1F44A",label:"oncoming fist",order:368,tags:["clenched","fist","hand","punch"],unicode:"\u{1F44A}",skins:[{group:1,hexcode:"1F44A-1F3FB",label:"oncoming fist: light skin tone",order:369,unicode:"\u{1F44A}\u{1F3FB}"},{group:1,hexcode:"1F44A-1F3FC",label:"oncoming fist: medium-light skin tone",order:370,unicode:"\u{1F44A}\u{1F3FC}"},{group:1,hexcode:"1F44A-1F3FD",label:"oncoming fist: medium skin tone",order:371,unicode:"\u{1F44A}\u{1F3FD}"},{group:1,hexcode:"1F44A-1F3FE",label:"oncoming fist: medium-dark skin tone",order:372,unicode:"\u{1F44A}\u{1F3FE}"},{group:1,hexcode:"1F44A-1F3FF",label:"oncoming fist: dark skin tone",order:373,unicode:"\u{1F44A}\u{1F3FF}"}]},{group:1,hexcode:"1F91B",label:"left-facing fist",order:374,tags:["fist","leftwards"],unicode:"\u{1F91B}",skins:[{group:1,hexcode:"1F91B-1F3FB",label:"left-facing fist: light skin tone",order:375,unicode:"\u{1F91B}\u{1F3FB}"},{group:1,hexcode:"1F91B-1F3FC",label:"left-facing fist: medium-light skin tone",order:376,unicode:"\u{1F91B}\u{1F3FC}"},{group:1,hexcode:"1F91B-1F3FD",label:"left-facing fist: medium skin tone",order:377,unicode:"\u{1F91B}\u{1F3FD}"},{group:1,hexcode:"1F91B-1F3FE",label:"left-facing fist: medium-dark skin tone",order:378,unicode:"\u{1F91B}\u{1F3FE}"},{group:1,hexcode:"1F91B-1F3FF",label:"left-facing fist: dark skin tone",order:379,unicode:"\u{1F91B}\u{1F3FF}"}]},{group:1,hexcode:"1F91C",label:"right-facing fist",order:380,tags:["fist","rightwards"],unicode:"\u{1F91C}",skins:[{group:1,hexcode:"1F91C-1F3FB",label:"right-facing fist: light skin tone",order:381,unicode:"\u{1F91C}\u{1F3FB}"},{group:1,hexcode:"1F91C-1F3FC",label:"right-facing fist: medium-light skin tone",order:382,unicode:"\u{1F91C}\u{1F3FC}"},{group:1,hexcode:"1F91C-1F3FD",label:"right-facing fist: medium skin tone",order:383,unicode:"\u{1F91C}\u{1F3FD}"},{group:1,hexcode:"1F91C-1F3FE",label:"right-facing fist: medium-dark skin tone",order:384,unicode:"\u{1F91C}\u{1F3FE}"},{group:1,hexcode:"1F91C-1F3FF",label:"right-facing fist: dark skin tone",order:385,unicode:"\u{1F91C}\u{1F3FF}"}]},{group:1,hexcode:"1F44F",label:"clapping hands",order:386,tags:["clap","hand"],unicode:"\u{1F44F}",skins:[{group:1,hexcode:"1F44F-1F3FB",label:"clapping hands: light skin tone",order:387,unicode:"\u{1F44F}\u{1F3FB}"},{group:1,hexcode:"1F44F-1F3FC",label:"clapping hands: medium-light skin tone",order:388,unicode:"\u{1F44F}\u{1F3FC}"},{group:1,hexcode:"1F44F-1F3FD",label:"clapping hands: medium skin tone",order:389,unicode:"\u{1F44F}\u{1F3FD}"},{group:1,hexcode:"1F44F-1F3FE",label:"clapping hands: medium-dark skin tone",order:390,unicode:"\u{1F44F}\u{1F3FE}"},{group:1,hexcode:"1F44F-1F3FF",label:"clapping hands: dark skin tone",order:391,unicode:"\u{1F44F}\u{1F3FF}"}]},{group:1,hexcode:"1F64C",label:"raising hands",order:392,tags:["celebration","gesture","hand","hooray","raised"],unicode:"\u{1F64C}",skins:[{group:1,hexcode:"1F64C-1F3FB",label:"raising hands: light skin tone",order:393,unicode:"\u{1F64C}\u{1F3FB}"},{group:1,hexcode:"1F64C-1F3FC",label:"raising hands: medium-light skin tone",order:394,unicode:"\u{1F64C}\u{1F3FC}"},{group:1,hexcode:"1F64C-1F3FD",label:"raising hands: medium skin tone",order:395,unicode:"\u{1F64C}\u{1F3FD}"},{group:1,hexcode:"1F64C-1F3FE",label:"raising hands: medium-dark skin tone",order:396,unicode:"\u{1F64C}\u{1F3FE}"},{group:1,hexcode:"1F64C-1F3FF",label:"raising hands: dark skin tone",order:397,unicode:"\u{1F64C}\u{1F3FF}"}]},{group:1,hexcode:"1FAF6",label:"heart hands",order:398,tags:["love"],unicode:"\u{1FAF6}",skins:[{group:1,hexcode:"1FAF6-1F3FB",label:"heart hands: light skin tone",order:399,unicode:"\u{1FAF6}\u{1F3FB}"},{group:1,hexcode:"1FAF6-1F3FC",label:"heart hands: medium-light skin tone",order:400,unicode:"\u{1FAF6}\u{1F3FC}"},{group:1,hexcode:"1FAF6-1F3FD",label:"heart hands: medium skin tone",order:401,unicode:"\u{1FAF6}\u{1F3FD}"},{group:1,hexcode:"1FAF6-1F3FE",label:"heart hands: medium-dark skin tone",order:402,unicode:"\u{1FAF6}\u{1F3FE}"},{group:1,hexcode:"1FAF6-1F3FF",label:"heart hands: dark skin tone",order:403,unicode:"\u{1FAF6}\u{1F3FF}"}]},{group:1,hexcode:"1F450",label:"open hands",order:404,tags:["hand","open"],unicode:"\u{1F450}",skins:[{group:1,hexcode:"1F450-1F3FB",label:"open hands: light skin tone",order:405,unicode:"\u{1F450}\u{1F3FB}"},{group:1,hexcode:"1F450-1F3FC",label:"open hands: medium-light skin tone",order:406,unicode:"\u{1F450}\u{1F3FC}"},{group:1,hexcode:"1F450-1F3FD",label:"open hands: medium skin tone",order:407,unicode:"\u{1F450}\u{1F3FD}"},{group:1,hexcode:"1F450-1F3FE",label:"open hands: medium-dark skin tone",order:408,unicode:"\u{1F450}\u{1F3FE}"},{group:1,hexcode:"1F450-1F3FF",label:"open hands: dark skin tone",order:409,unicode:"\u{1F450}\u{1F3FF}"}]},{group:1,hexcode:"1F932",label:"palms up together",order:410,tags:["prayer"],unicode:"\u{1F932}",skins:[{group:1,hexcode:"1F932-1F3FB",label:"palms up together: light skin tone",order:411,unicode:"\u{1F932}\u{1F3FB}"},{group:1,hexcode:"1F932-1F3FC",label:"palms up together: medium-light skin tone",order:412,unicode:"\u{1F932}\u{1F3FC}"},{group:1,hexcode:"1F932-1F3FD",label:"palms up together: medium skin tone",order:413,unicode:"\u{1F932}\u{1F3FD}"},{group:1,hexcode:"1F932-1F3FE",label:"palms up together: medium-dark skin tone",order:414,unicode:"\u{1F932}\u{1F3FE}"},{group:1,hexcode:"1F932-1F3FF",label:"palms up together: dark skin tone",order:415,unicode:"\u{1F932}\u{1F3FF}"}]},{group:1,hexcode:"1F91D",label:"handshake",order:416,tags:["agreement","hand","meeting","shake"],unicode:"\u{1F91D}",skins:[{group:1,hexcode:"1F91D-1F3FB",label:"handshake: light skin tone",order:417,unicode:"\u{1F91D}\u{1F3FB}"},{group:1,hexcode:"1F91D-1F3FC",label:"handshake: medium-light skin tone",order:418,unicode:"\u{1F91D}\u{1F3FC}"},{group:1,hexcode:"1F91D-1F3FD",label:"handshake: medium skin tone",order:419,unicode:"\u{1F91D}\u{1F3FD}"},{group:1,hexcode:"1F91D-1F3FE",label:"handshake: medium-dark skin tone",order:420,unicode:"\u{1F91D}\u{1F3FE}"},{group:1,hexcode:"1F91D-1F3FF",label:"handshake: dark skin tone",order:421,unicode:"\u{1F91D}\u{1F3FF}"},{group:1,hexcode:"1FAF1-1F3FB-200D-1FAF2-1F3FC",label:"handshake: light skin tone, medium-light skin tone",order:422,unicode:"\u{1FAF1}\u{1F3FB}\u200D\u{1FAF2}\u{1F3FC}"},{group:1,hexcode:"1FAF1-1F3FB-200D-1FAF2-1F3FD",label:"handshake: light skin tone, medium skin tone",order:423,unicode:"\u{1FAF1}\u{1F3FB}\u200D\u{1FAF2}\u{1F3FD}"},{group:1,hexcode:"1FAF1-1F3FB-200D-1FAF2-1F3FE",label:"handshake: light skin tone, medium-dark skin tone",order:424,unicode:"\u{1FAF1}\u{1F3FB}\u200D\u{1FAF2}\u{1F3FE}"},{group:1,hexcode:"1FAF1-1F3FB-200D-1FAF2-1F3FF",label:"handshake: light skin tone, dark skin tone",order:425,unicode:"\u{1FAF1}\u{1F3FB}\u200D\u{1FAF2}\u{1F3FF}"},{group:1,hexcode:"1FAF1-1F3FC-200D-1FAF2-1F3FB",label:"handshake: medium-light skin tone, light skin tone",order:426,unicode:"\u{1FAF1}\u{1F3FC}\u200D\u{1FAF2}\u{1F3FB}"},{group:1,hexcode:"1FAF1-1F3FC-200D-1FAF2-1F3FD",label:"handshake: medium-light skin tone, medium skin tone",order:427,unicode:"\u{1FAF1}\u{1F3FC}\u200D\u{1FAF2}\u{1F3FD}"},{group:1,hexcode:"1FAF1-1F3FC-200D-1FAF2-1F3FE",label:"handshake: medium-light skin tone, medium-dark skin tone",order:428,unicode:"\u{1FAF1}\u{1F3FC}\u200D\u{1FAF2}\u{1F3FE}"},{group:1,hexcode:"1FAF1-1F3FC-200D-1FAF2-1F3FF",label:"handshake: medium-light skin tone, dark skin tone",order:429,unicode:"\u{1FAF1}\u{1F3FC}\u200D\u{1FAF2}\u{1F3FF}"},{group:1,hexcode:"1FAF1-1F3FD-200D-1FAF2-1F3FB",label:"handshake: medium skin tone, light skin tone",order:430,unicode:"\u{1FAF1}\u{1F3FD}\u200D\u{1FAF2}\u{1F3FB}"},{group:1,hexcode:"1FAF1-1F3FD-200D-1FAF2-1F3FC",label:"handshake: medium skin tone, medium-light skin tone",order:431,unicode:"\u{1FAF1}\u{1F3FD}\u200D\u{1FAF2}\u{1F3FC}"},{group:1,hexcode:"1FAF1-1F3FD-200D-1FAF2-1F3FE",label:"handshake: medium skin tone, medium-dark skin tone",order:432,unicode:"\u{1FAF1}\u{1F3FD}\u200D\u{1FAF2}\u{1F3FE}"},{group:1,hexcode:"1FAF1-1F3FD-200D-1FAF2-1F3FF",label:"handshake: medium skin tone, dark skin tone",order:433,unicode:"\u{1FAF1}\u{1F3FD}\u200D\u{1FAF2}\u{1F3FF}"},{group:1,hexcode:"1FAF1-1F3FE-200D-1FAF2-1F3FB",label:"handshake: medium-dark skin tone, light skin tone",order:434,unicode:"\u{1FAF1}\u{1F3FE}\u200D\u{1FAF2}\u{1F3FB}"},{group:1,hexcode:"1FAF1-1F3FE-200D-1FAF2-1F3FC",label:"handshake: medium-dark skin tone, medium-light skin tone",order:435,unicode:"\u{1FAF1}\u{1F3FE}\u200D\u{1FAF2}\u{1F3FC}"},{group:1,hexcode:"1FAF1-1F3FE-200D-1FAF2-1F3FD",label:"handshake: medium-dark skin tone, medium skin tone",order:436,unicode:"\u{1FAF1}\u{1F3FE}\u200D\u{1FAF2}\u{1F3FD}"},{group:1,hexcode:"1FAF1-1F3FE-200D-1FAF2-1F3FF",label:"handshake: medium-dark skin tone, dark skin tone",order:437,unicode:"\u{1FAF1}\u{1F3FE}\u200D\u{1FAF2}\u{1F3FF}"},{group:1,hexcode:"1FAF1-1F3FF-200D-1FAF2-1F3FB",label:"handshake: dark skin tone, light skin tone",order:438,unicode:"\u{1FAF1}\u{1F3FF}\u200D\u{1FAF2}\u{1F3FB}"},{group:1,hexcode:"1FAF1-1F3FF-200D-1FAF2-1F3FC",label:"handshake: dark skin tone, medium-light skin tone",order:439,unicode:"\u{1FAF1}\u{1F3FF}\u200D\u{1FAF2}\u{1F3FC}"},{group:1,hexcode:"1FAF1-1F3FF-200D-1FAF2-1F3FD",label:"handshake: dark skin tone, medium skin tone",order:440,unicode:"\u{1FAF1}\u{1F3FF}\u200D\u{1FAF2}\u{1F3FD}"},{group:1,hexcode:"1FAF1-1F3FF-200D-1FAF2-1F3FE",label:"handshake: dark skin tone, medium-dark skin tone",order:441,unicode:"\u{1FAF1}\u{1F3FF}\u200D\u{1FAF2}\u{1F3FE}"}]},{group:1,hexcode:"1F64F",label:"folded hands",order:442,tags:["ask","hand","high 5","high five","please","pray","thanks"],unicode:"\u{1F64F}",skins:[{group:1,hexcode:"1F64F-1F3FB",label:"folded hands: light skin tone",order:443,unicode:"\u{1F64F}\u{1F3FB}"},{group:1,hexcode:"1F64F-1F3FC",label:"folded hands: medium-light skin tone",order:444,unicode:"\u{1F64F}\u{1F3FC}"},{group:1,hexcode:"1F64F-1F3FD",label:"folded hands: medium skin tone",order:445,unicode:"\u{1F64F}\u{1F3FD}"},{group:1,hexcode:"1F64F-1F3FE",label:"folded hands: medium-dark skin tone",order:446,unicode:"\u{1F64F}\u{1F3FE}"},{group:1,hexcode:"1F64F-1F3FF",label:"folded hands: dark skin tone",order:447,unicode:"\u{1F64F}\u{1F3FF}"}]},{group:1,hexcode:"270D",label:"writing hand",order:449,tags:["hand","write"],unicode:"\u270D\uFE0F",skins:[{group:1,hexcode:"270D-1F3FB",label:"writing hand: light skin tone",order:450,unicode:"\u270D\u{1F3FB}"},{group:1,hexcode:"270D-1F3FC",label:"writing hand: medium-light skin tone",order:451,unicode:"\u270D\u{1F3FC}"},{group:1,hexcode:"270D-1F3FD",label:"writing hand: medium skin tone",order:452,unicode:"\u270D\u{1F3FD}"},{group:1,hexcode:"270D-1F3FE",label:"writing hand: medium-dark skin tone",order:453,unicode:"\u270D\u{1F3FE}"},{group:1,hexcode:"270D-1F3FF",label:"writing hand: dark skin tone",order:454,unicode:"\u270D\u{1F3FF}"}]},{group:1,hexcode:"1F485",label:"nail polish",order:455,tags:["care","cosmetics","manicure","nail","polish"],unicode:"\u{1F485}",skins:[{group:1,hexcode:"1F485-1F3FB",label:"nail polish: light skin tone",order:456,unicode:"\u{1F485}\u{1F3FB}"},{group:1,hexcode:"1F485-1F3FC",label:"nail polish: medium-light skin tone",order:457,unicode:"\u{1F485}\u{1F3FC}"},{group:1,hexcode:"1F485-1F3FD",label:"nail polish: medium skin tone",order:458,unicode:"\u{1F485}\u{1F3FD}"},{group:1,hexcode:"1F485-1F3FE",label:"nail polish: medium-dark skin tone",order:459,unicode:"\u{1F485}\u{1F3FE}"},{group:1,hexcode:"1F485-1F3FF",label:"nail polish: dark skin tone",order:460,unicode:"\u{1F485}\u{1F3FF}"}]},{group:1,hexcode:"1F933",label:"selfie",order:461,tags:["camera","phone"],unicode:"\u{1F933}",skins:[{group:1,hexcode:"1F933-1F3FB",label:"selfie: light skin tone",order:462,unicode:"\u{1F933}\u{1F3FB}"},{group:1,hexcode:"1F933-1F3FC",label:"selfie: medium-light skin tone",order:463,unicode:"\u{1F933}\u{1F3FC}"},{group:1,hexcode:"1F933-1F3FD",label:"selfie: medium skin tone",order:464,unicode:"\u{1F933}\u{1F3FD}"},{group:1,hexcode:"1F933-1F3FE",label:"selfie: medium-dark skin tone",order:465,unicode:"\u{1F933}\u{1F3FE}"},{group:1,hexcode:"1F933-1F3FF",label:"selfie: dark skin tone",order:466,unicode:"\u{1F933}\u{1F3FF}"}]},{group:1,hexcode:"1F4AA",label:"flexed biceps",order:467,tags:["biceps","comic","flex","muscle"],unicode:"\u{1F4AA}",skins:[{group:1,hexcode:"1F4AA-1F3FB",label:"flexed biceps: light skin tone",order:468,unicode:"\u{1F4AA}\u{1F3FB}"},{group:1,hexcode:"1F4AA-1F3FC",label:"flexed biceps: medium-light skin tone",order:469,unicode:"\u{1F4AA}\u{1F3FC}"},{group:1,hexcode:"1F4AA-1F3FD",label:"flexed biceps: medium skin tone",order:470,unicode:"\u{1F4AA}\u{1F3FD}"},{group:1,hexcode:"1F4AA-1F3FE",label:"flexed biceps: medium-dark skin tone",order:471,unicode:"\u{1F4AA}\u{1F3FE}"},{group:1,hexcode:"1F4AA-1F3FF",label:"flexed biceps: dark skin tone",order:472,unicode:"\u{1F4AA}\u{1F3FF}"}]},{group:1,hexcode:"1F9BE",label:"mechanical arm",order:473,tags:["accessibility","prosthetic"],unicode:"\u{1F9BE}"},{group:1,hexcode:"1F9BF",label:"mechanical leg",order:474,tags:["accessibility","prosthetic"],unicode:"\u{1F9BF}"},{group:1,hexcode:"1F9B5",label:"leg",order:475,tags:["kick","limb"],unicode:"\u{1F9B5}",skins:[{group:1,hexcode:"1F9B5-1F3FB",label:"leg: light skin tone",order:476,unicode:"\u{1F9B5}\u{1F3FB}"},{group:1,hexcode:"1F9B5-1F3FC",label:"leg: medium-light skin tone",order:477,unicode:"\u{1F9B5}\u{1F3FC}"},{group:1,hexcode:"1F9B5-1F3FD",label:"leg: medium skin tone",order:478,unicode:"\u{1F9B5}\u{1F3FD}"},{group:1,hexcode:"1F9B5-1F3FE",label:"leg: medium-dark skin tone",order:479,unicode:"\u{1F9B5}\u{1F3FE}"},{group:1,hexcode:"1F9B5-1F3FF",label:"leg: dark skin tone",order:480,unicode:"\u{1F9B5}\u{1F3FF}"}]},{group:1,hexcode:"1F9B6",label:"foot",order:481,tags:["kick","stomp"],unicode:"\u{1F9B6}",skins:[{group:1,hexcode:"1F9B6-1F3FB",label:"foot: light skin tone",order:482,unicode:"\u{1F9B6}\u{1F3FB}"},{group:1,hexcode:"1F9B6-1F3FC",label:"foot: medium-light skin tone",order:483,unicode:"\u{1F9B6}\u{1F3FC}"},{group:1,hexcode:"1F9B6-1F3FD",label:"foot: medium skin tone",order:484,unicode:"\u{1F9B6}\u{1F3FD}"},{group:1,hexcode:"1F9B6-1F3FE",label:"foot: medium-dark skin tone",order:485,unicode:"\u{1F9B6}\u{1F3FE}"},{group:1,hexcode:"1F9B6-1F3FF",label:"foot: dark skin tone",order:486,unicode:"\u{1F9B6}\u{1F3FF}"}]},{group:1,hexcode:"1F442",label:"ear",order:487,tags:["body"],unicode:"\u{1F442}\uFE0F",skins:[{group:1,hexcode:"1F442-1F3FB",label:"ear: light skin tone",order:488,unicode:"\u{1F442}\u{1F3FB}"},{group:1,hexcode:"1F442-1F3FC",label:"ear: medium-light skin tone",order:489,unicode:"\u{1F442}\u{1F3FC}"},{group:1,hexcode:"1F442-1F3FD",label:"ear: medium skin tone",order:490,unicode:"\u{1F442}\u{1F3FD}"},{group:1,hexcode:"1F442-1F3FE",label:"ear: medium-dark skin tone",order:491,unicode:"\u{1F442}\u{1F3FE}"},{group:1,hexcode:"1F442-1F3FF",label:"ear: dark skin tone",order:492,unicode:"\u{1F442}\u{1F3FF}"}]},{group:1,hexcode:"1F9BB",label:"ear with hearing aid",order:493,tags:["accessibility","hard of hearing"],unicode:"\u{1F9BB}",skins:[{group:1,hexcode:"1F9BB-1F3FB",label:"ear with hearing aid: light skin tone",order:494,unicode:"\u{1F9BB}\u{1F3FB}"},{group:1,hexcode:"1F9BB-1F3FC",label:"ear with hearing aid: medium-light skin tone",order:495,unicode:"\u{1F9BB}\u{1F3FC}"},{group:1,hexcode:"1F9BB-1F3FD",label:"ear with hearing aid: medium skin tone",order:496,unicode:"\u{1F9BB}\u{1F3FD}"},{group:1,hexcode:"1F9BB-1F3FE",label:"ear with hearing aid: medium-dark skin tone",order:497,unicode:"\u{1F9BB}\u{1F3FE}"},{group:1,hexcode:"1F9BB-1F3FF",label:"ear with hearing aid: dark skin tone",order:498,unicode:"\u{1F9BB}\u{1F3FF}"}]},{group:1,hexcode:"1F443",label:"nose",order:499,tags:["body"],unicode:"\u{1F443}",skins:[{group:1,hexcode:"1F443-1F3FB",label:"nose: light skin tone",order:500,unicode:"\u{1F443}\u{1F3FB}"},{group:1,hexcode:"1F443-1F3FC",label:"nose: medium-light skin tone",order:501,unicode:"\u{1F443}\u{1F3FC}"},{group:1,hexcode:"1F443-1F3FD",label:"nose: medium skin tone",order:502,unicode:"\u{1F443}\u{1F3FD}"},{group:1,hexcode:"1F443-1F3FE",label:"nose: medium-dark skin tone",order:503,unicode:"\u{1F443}\u{1F3FE}"},{group:1,hexcode:"1F443-1F3FF",label:"nose: dark skin tone",order:504,unicode:"\u{1F443}\u{1F3FF}"}]},{group:1,hexcode:"1F9E0",label:"brain",order:505,tags:["intelligent"],unicode:"\u{1F9E0}"},{group:1,hexcode:"1FAC0",label:"anatomical heart",order:506,tags:["anatomical","cardiology","heart","organ","pulse"],unicode:"\u{1FAC0}"},{group:1,hexcode:"1FAC1",label:"lungs",order:507,tags:["breath","exhalation","inhalation","organ","respiration"],unicode:"\u{1FAC1}"},{group:1,hexcode:"1F9B7",label:"tooth",order:508,tags:["dentist"],unicode:"\u{1F9B7}"},{group:1,hexcode:"1F9B4",label:"bone",order:509,tags:["skeleton"],unicode:"\u{1F9B4}"},{group:1,hexcode:"1F440",label:"eyes",order:510,tags:["eye","face"],unicode:"\u{1F440}"},{group:1,hexcode:"1F441",label:"eye",order:512,tags:["body"],unicode:"\u{1F441}\uFE0F"},{group:1,hexcode:"1F445",label:"tongue",order:513,tags:["body"],unicode:"\u{1F445}"},{group:1,hexcode:"1F444",label:"mouth",order:514,tags:["lips"],unicode:"\u{1F444}"},{group:1,hexcode:"1FAE6",label:"biting lip",order:515,tags:["anxious","fear","flirting","nervous","uncomfortable","worried"],unicode:"\u{1FAE6}"},{group:1,hexcode:"1F476",label:"baby",order:516,tags:["young"],unicode:"\u{1F476}",skins:[{group:1,hexcode:"1F476-1F3FB",label:"baby: light skin tone",order:517,unicode:"\u{1F476}\u{1F3FB}"},{group:1,hexcode:"1F476-1F3FC",label:"baby: medium-light skin tone",order:518,unicode:"\u{1F476}\u{1F3FC}"},{group:1,hexcode:"1F476-1F3FD",label:"baby: medium skin tone",order:519,unicode:"\u{1F476}\u{1F3FD}"},{group:1,hexcode:"1F476-1F3FE",label:"baby: medium-dark skin tone",order:520,unicode:"\u{1F476}\u{1F3FE}"},{group:1,hexcode:"1F476-1F3FF",label:"baby: dark skin tone",order:521,unicode:"\u{1F476}\u{1F3FF}"}]},{group:1,hexcode:"1F9D2",label:"child",order:522,tags:["gender-neutral","unspecified gender","young"],unicode:"\u{1F9D2}",skins:[{group:1,hexcode:"1F9D2-1F3FB",label:"child: light skin tone",order:523,unicode:"\u{1F9D2}\u{1F3FB}"},{group:1,hexcode:"1F9D2-1F3FC",label:"child: medium-light skin tone",order:524,unicode:"\u{1F9D2}\u{1F3FC}"},{group:1,hexcode:"1F9D2-1F3FD",label:"child: medium skin tone",order:525,unicode:"\u{1F9D2}\u{1F3FD}"},{group:1,hexcode:"1F9D2-1F3FE",label:"child: medium-dark skin tone",order:526,unicode:"\u{1F9D2}\u{1F3FE}"},{group:1,hexcode:"1F9D2-1F3FF",label:"child: dark skin tone",order:527,unicode:"\u{1F9D2}\u{1F3FF}"}]},{group:1,hexcode:"1F466",label:"boy",order:528,tags:["young"],unicode:"\u{1F466}",skins:[{group:1,hexcode:"1F466-1F3FB",label:"boy: light skin tone",order:529,unicode:"\u{1F466}\u{1F3FB}"},{group:1,hexcode:"1F466-1F3FC",label:"boy: medium-light skin tone",order:530,unicode:"\u{1F466}\u{1F3FC}"},{group:1,hexcode:"1F466-1F3FD",label:"boy: medium skin tone",order:531,unicode:"\u{1F466}\u{1F3FD}"},{group:1,hexcode:"1F466-1F3FE",label:"boy: medium-dark skin tone",order:532,unicode:"\u{1F466}\u{1F3FE}"},{group:1,hexcode:"1F466-1F3FF",label:"boy: dark skin tone",order:533,unicode:"\u{1F466}\u{1F3FF}"}]},{group:1,hexcode:"1F467",label:"girl",order:534,tags:["virgo","young","zodiac"],unicode:"\u{1F467}",skins:[{group:1,hexcode:"1F467-1F3FB",label:"girl: light skin tone",order:535,unicode:"\u{1F467}\u{1F3FB}"},{group:1,hexcode:"1F467-1F3FC",label:"girl: medium-light skin tone",order:536,unicode:"\u{1F467}\u{1F3FC}"},{group:1,hexcode:"1F467-1F3FD",label:"girl: medium skin tone",order:537,unicode:"\u{1F467}\u{1F3FD}"},{group:1,hexcode:"1F467-1F3FE",label:"girl: medium-dark skin tone",order:538,unicode:"\u{1F467}\u{1F3FE}"},{group:1,hexcode:"1F467-1F3FF",label:"girl: dark skin tone",order:539,unicode:"\u{1F467}\u{1F3FF}"}]},{group:1,hexcode:"1F9D1",label:"person",order:540,tags:["adult","gender-neutral","unspecified gender"],unicode:"\u{1F9D1}",skins:[{group:1,hexcode:"1F9D1-1F3FB",label:"person: light skin tone",order:541,unicode:"\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FC",label:"person: medium-light skin tone",order:542,unicode:"\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FD",label:"person: medium skin tone",order:543,unicode:"\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FE",label:"person: medium-dark skin tone",order:544,unicode:"\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FF",label:"person: dark skin tone",order:545,unicode:"\u{1F9D1}\u{1F3FF}"}]},{group:1,hexcode:"1F471",label:"person: blond hair",order:546,tags:["blond","blond-haired person","hair"],unicode:"\u{1F471}",skins:[{group:1,hexcode:"1F471-1F3FB",label:"person: light skin tone, blond hair",order:547,unicode:"\u{1F471}\u{1F3FB}"},{group:1,hexcode:"1F471-1F3FC",label:"person: medium-light skin tone, blond hair",order:548,unicode:"\u{1F471}\u{1F3FC}"},{group:1,hexcode:"1F471-1F3FD",label:"person: medium skin tone, blond hair",order:549,unicode:"\u{1F471}\u{1F3FD}"},{group:1,hexcode:"1F471-1F3FE",label:"person: medium-dark skin tone, blond hair",order:550,unicode:"\u{1F471}\u{1F3FE}"},{group:1,hexcode:"1F471-1F3FF",label:"person: dark skin tone, blond hair",order:551,unicode:"\u{1F471}\u{1F3FF}"}]},{group:1,hexcode:"1F468",label:"man",order:552,tags:["adult"],unicode:"\u{1F468}",skins:[{group:1,hexcode:"1F468-1F3FB",label:"man: light skin tone",order:553,unicode:"\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FC",label:"man: medium-light skin tone",order:554,unicode:"\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FD",label:"man: medium skin tone",order:555,unicode:"\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FE",label:"man: medium-dark skin tone",order:556,unicode:"\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FF",label:"man: dark skin tone",order:557,unicode:"\u{1F468}\u{1F3FF}"}]},{group:1,hexcode:"1F9D4",label:"person: beard",order:558,tags:["beard","person"],unicode:"\u{1F9D4}",skins:[{group:1,hexcode:"1F9D4-1F3FB",label:"person: light skin tone, beard",order:559,unicode:"\u{1F9D4}\u{1F3FB}"},{group:1,hexcode:"1F9D4-1F3FC",label:"person: medium-light skin tone, beard",order:560,unicode:"\u{1F9D4}\u{1F3FC}"},{group:1,hexcode:"1F9D4-1F3FD",label:"person: medium skin tone, beard",order:561,unicode:"\u{1F9D4}\u{1F3FD}"},{group:1,hexcode:"1F9D4-1F3FE",label:"person: medium-dark skin tone, beard",order:562,unicode:"\u{1F9D4}\u{1F3FE}"},{group:1,hexcode:"1F9D4-1F3FF",label:"person: dark skin tone, beard",order:563,unicode:"\u{1F9D4}\u{1F3FF}"}]},{group:1,hexcode:"1F9D4-200D-2642-FE0F",label:"man: beard",order:564,tags:["beard","man"],unicode:"\u{1F9D4}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9D4-1F3FB-200D-2642-FE0F",label:"man: light skin tone, beard",order:566,unicode:"\u{1F9D4}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D4-1F3FC-200D-2642-FE0F",label:"man: medium-light skin tone, beard",order:568,unicode:"\u{1F9D4}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D4-1F3FD-200D-2642-FE0F",label:"man: medium skin tone, beard",order:570,unicode:"\u{1F9D4}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D4-1F3FE-200D-2642-FE0F",label:"man: medium-dark skin tone, beard",order:572,unicode:"\u{1F9D4}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D4-1F3FF-200D-2642-FE0F",label:"man: dark skin tone, beard",order:574,unicode:"\u{1F9D4}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9D4-200D-2640-FE0F",label:"woman: beard",order:576,tags:["beard","woman"],unicode:"\u{1F9D4}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9D4-1F3FB-200D-2640-FE0F",label:"woman: light skin tone, beard",order:578,unicode:"\u{1F9D4}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D4-1F3FC-200D-2640-FE0F",label:"woman: medium-light skin tone, beard",order:580,unicode:"\u{1F9D4}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D4-1F3FD-200D-2640-FE0F",label:"woman: medium skin tone, beard",order:582,unicode:"\u{1F9D4}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D4-1F3FE-200D-2640-FE0F",label:"woman: medium-dark skin tone, beard",order:584,unicode:"\u{1F9D4}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D4-1F3FF-200D-2640-FE0F",label:"woman: dark skin tone, beard",order:586,unicode:"\u{1F9D4}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F468-200D-1F9B0",label:"man: red hair",order:588,tags:["adult","man","red hair"],unicode:"\u{1F468}\u200D\u{1F9B0}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F9B0",label:"man: light skin tone, red hair",order:589,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F9B0}"},{group:1,hexcode:"1F468-1F3FC-200D-1F9B0",label:"man: medium-light skin tone, red hair",order:590,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F9B0}"},{group:1,hexcode:"1F468-1F3FD-200D-1F9B0",label:"man: medium skin tone, red hair",order:591,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F9B0}"},{group:1,hexcode:"1F468-1F3FE-200D-1F9B0",label:"man: medium-dark skin tone, red hair",order:592,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F9B0}"},{group:1,hexcode:"1F468-1F3FF-200D-1F9B0",label:"man: dark skin tone, red hair",order:593,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F9B0}"}]},{group:1,hexcode:"1F468-200D-1F9B1",label:"man: curly hair",order:594,tags:["adult","curly hair","man"],unicode:"\u{1F468}\u200D\u{1F9B1}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F9B1",label:"man: light skin tone, curly hair",order:595,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F9B1}"},{group:1,hexcode:"1F468-1F3FC-200D-1F9B1",label:"man: medium-light skin tone, curly hair",order:596,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F9B1}"},{group:1,hexcode:"1F468-1F3FD-200D-1F9B1",label:"man: medium skin tone, curly hair",order:597,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F9B1}"},{group:1,hexcode:"1F468-1F3FE-200D-1F9B1",label:"man: medium-dark skin tone, curly hair",order:598,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F9B1}"},{group:1,hexcode:"1F468-1F3FF-200D-1F9B1",label:"man: dark skin tone, curly hair",order:599,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F9B1}"}]},{group:1,hexcode:"1F468-200D-1F9B3",label:"man: white hair",order:600,tags:["adult","man","white hair"],unicode:"\u{1F468}\u200D\u{1F9B3}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F9B3",label:"man: light skin tone, white hair",order:601,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F9B3}"},{group:1,hexcode:"1F468-1F3FC-200D-1F9B3",label:"man: medium-light skin tone, white hair",order:602,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F9B3}"},{group:1,hexcode:"1F468-1F3FD-200D-1F9B3",label:"man: medium skin tone, white hair",order:603,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F9B3}"},{group:1,hexcode:"1F468-1F3FE-200D-1F9B3",label:"man: medium-dark skin tone, white hair",order:604,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F9B3}"},{group:1,hexcode:"1F468-1F3FF-200D-1F9B3",label:"man: dark skin tone, white hair",order:605,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F9B3}"}]},{group:1,hexcode:"1F468-200D-1F9B2",label:"man: bald",order:606,tags:["adult","bald","man"],unicode:"\u{1F468}\u200D\u{1F9B2}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F9B2",label:"man: light skin tone, bald",order:607,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F9B2}"},{group:1,hexcode:"1F468-1F3FC-200D-1F9B2",label:"man: medium-light skin tone, bald",order:608,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F9B2}"},{group:1,hexcode:"1F468-1F3FD-200D-1F9B2",label:"man: medium skin tone, bald",order:609,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F9B2}"},{group:1,hexcode:"1F468-1F3FE-200D-1F9B2",label:"man: medium-dark skin tone, bald",order:610,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F9B2}"},{group:1,hexcode:"1F468-1F3FF-200D-1F9B2",label:"man: dark skin tone, bald",order:611,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F9B2}"}]},{group:1,hexcode:"1F469",label:"woman",order:612,tags:["adult"],unicode:"\u{1F469}",skins:[{group:1,hexcode:"1F469-1F3FB",label:"woman: light skin tone",order:613,unicode:"\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FC",label:"woman: medium-light skin tone",order:614,unicode:"\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FD",label:"woman: medium skin tone",order:615,unicode:"\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FE",label:"woman: medium-dark skin tone",order:616,unicode:"\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FF",label:"woman: dark skin tone",order:617,unicode:"\u{1F469}\u{1F3FF}"}]},{group:1,hexcode:"1F469-200D-1F9B0",label:"woman: red hair",order:618,tags:["adult","red hair","woman"],unicode:"\u{1F469}\u200D\u{1F9B0}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F9B0",label:"woman: light skin tone, red hair",order:619,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F9B0}"},{group:1,hexcode:"1F469-1F3FC-200D-1F9B0",label:"woman: medium-light skin tone, red hair",order:620,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F9B0}"},{group:1,hexcode:"1F469-1F3FD-200D-1F9B0",label:"woman: medium skin tone, red hair",order:621,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F9B0}"},{group:1,hexcode:"1F469-1F3FE-200D-1F9B0",label:"woman: medium-dark skin tone, red hair",order:622,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F9B0}"},{group:1,hexcode:"1F469-1F3FF-200D-1F9B0",label:"woman: dark skin tone, red hair",order:623,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F9B0}"}]},{group:1,hexcode:"1F9D1-200D-1F9B0",label:"person: red hair",order:624,tags:["adult","gender-neutral","person","red hair","unspecified gender"],unicode:"\u{1F9D1}\u200D\u{1F9B0}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F9B0",label:"person: light skin tone, red hair",order:625,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F9B0}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F9B0",label:"person: medium-light skin tone, red hair",order:626,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F9B0}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F9B0",label:"person: medium skin tone, red hair",order:627,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F9B0}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F9B0",label:"person: medium-dark skin tone, red hair",order:628,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F9B0}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F9B0",label:"person: dark skin tone, red hair",order:629,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F9B0}"}]},{group:1,hexcode:"1F469-200D-1F9B1",label:"woman: curly hair",order:630,tags:["adult","curly hair","woman"],unicode:"\u{1F469}\u200D\u{1F9B1}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F9B1",label:"woman: light skin tone, curly hair",order:631,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F9B1}"},{group:1,hexcode:"1F469-1F3FC-200D-1F9B1",label:"woman: medium-light skin tone, curly hair",order:632,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F9B1}"},{group:1,hexcode:"1F469-1F3FD-200D-1F9B1",label:"woman: medium skin tone, curly hair",order:633,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F9B1}"},{group:1,hexcode:"1F469-1F3FE-200D-1F9B1",label:"woman: medium-dark skin tone, curly hair",order:634,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F9B1}"},{group:1,hexcode:"1F469-1F3FF-200D-1F9B1",label:"woman: dark skin tone, curly hair",order:635,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F9B1}"}]},{group:1,hexcode:"1F9D1-200D-1F9B1",label:"person: curly hair",order:636,tags:["adult","curly hair","gender-neutral","person","unspecified gender"],unicode:"\u{1F9D1}\u200D\u{1F9B1}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F9B1",label:"person: light skin tone, curly hair",order:637,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F9B1}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F9B1",label:"person: medium-light skin tone, curly hair",order:638,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F9B1}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F9B1",label:"person: medium skin tone, curly hair",order:639,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F9B1}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F9B1",label:"person: medium-dark skin tone, curly hair",order:640,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F9B1}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F9B1",label:"person: dark skin tone, curly hair",order:641,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F9B1}"}]},{group:1,hexcode:"1F469-200D-1F9B3",label:"woman: white hair",order:642,tags:["adult","white hair","woman"],unicode:"\u{1F469}\u200D\u{1F9B3}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F9B3",label:"woman: light skin tone, white hair",order:643,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F9B3}"},{group:1,hexcode:"1F469-1F3FC-200D-1F9B3",label:"woman: medium-light skin tone, white hair",order:644,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F9B3}"},{group:1,hexcode:"1F469-1F3FD-200D-1F9B3",label:"woman: medium skin tone, white hair",order:645,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F9B3}"},{group:1,hexcode:"1F469-1F3FE-200D-1F9B3",label:"woman: medium-dark skin tone, white hair",order:646,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F9B3}"},{group:1,hexcode:"1F469-1F3FF-200D-1F9B3",label:"woman: dark skin tone, white hair",order:647,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F9B3}"}]},{group:1,hexcode:"1F9D1-200D-1F9B3",label:"person: white hair",order:648,tags:["adult","gender-neutral","person","unspecified gender","white hair"],unicode:"\u{1F9D1}\u200D\u{1F9B3}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F9B3",label:"person: light skin tone, white hair",order:649,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F9B3}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F9B3",label:"person: medium-light skin tone, white hair",order:650,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F9B3}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F9B3",label:"person: medium skin tone, white hair",order:651,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F9B3}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F9B3",label:"person: medium-dark skin tone, white hair",order:652,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F9B3}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F9B3",label:"person: dark skin tone, white hair",order:653,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F9B3}"}]},{group:1,hexcode:"1F469-200D-1F9B2",label:"woman: bald",order:654,tags:["adult","bald","woman"],unicode:"\u{1F469}\u200D\u{1F9B2}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F9B2",label:"woman: light skin tone, bald",order:655,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F9B2}"},{group:1,hexcode:"1F469-1F3FC-200D-1F9B2",label:"woman: medium-light skin tone, bald",order:656,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F9B2}"},{group:1,hexcode:"1F469-1F3FD-200D-1F9B2",label:"woman: medium skin tone, bald",order:657,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F9B2}"},{group:1,hexcode:"1F469-1F3FE-200D-1F9B2",label:"woman: medium-dark skin tone, bald",order:658,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F9B2}"},{group:1,hexcode:"1F469-1F3FF-200D-1F9B2",label:"woman: dark skin tone, bald",order:659,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F9B2}"}]},{group:1,hexcode:"1F9D1-200D-1F9B2",label:"person: bald",order:660,tags:["adult","bald","gender-neutral","person","unspecified gender"],unicode:"\u{1F9D1}\u200D\u{1F9B2}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F9B2",label:"person: light skin tone, bald",order:661,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F9B2}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F9B2",label:"person: medium-light skin tone, bald",order:662,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F9B2}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F9B2",label:"person: medium skin tone, bald",order:663,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F9B2}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F9B2",label:"person: medium-dark skin tone, bald",order:664,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F9B2}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F9B2",label:"person: dark skin tone, bald",order:665,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F9B2}"}]},{group:1,hexcode:"1F471-200D-2640-FE0F",label:"woman: blond hair",order:666,tags:["blond-haired woman","blonde","hair","woman"],unicode:"\u{1F471}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F471-1F3FB-200D-2640-FE0F",label:"woman: light skin tone, blond hair",order:668,unicode:"\u{1F471}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F471-1F3FC-200D-2640-FE0F",label:"woman: medium-light skin tone, blond hair",order:670,unicode:"\u{1F471}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F471-1F3FD-200D-2640-FE0F",label:"woman: medium skin tone, blond hair",order:672,unicode:"\u{1F471}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F471-1F3FE-200D-2640-FE0F",label:"woman: medium-dark skin tone, blond hair",order:674,unicode:"\u{1F471}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F471-1F3FF-200D-2640-FE0F",label:"woman: dark skin tone, blond hair",order:676,unicode:"\u{1F471}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F471-200D-2642-FE0F",label:"man: blond hair",order:678,tags:["blond","blond-haired man","hair","man"],unicode:"\u{1F471}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F471-1F3FB-200D-2642-FE0F",label:"man: light skin tone, blond hair",order:680,unicode:"\u{1F471}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F471-1F3FC-200D-2642-FE0F",label:"man: medium-light skin tone, blond hair",order:682,unicode:"\u{1F471}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F471-1F3FD-200D-2642-FE0F",label:"man: medium skin tone, blond hair",order:684,unicode:"\u{1F471}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F471-1F3FE-200D-2642-FE0F",label:"man: medium-dark skin tone, blond hair",order:686,unicode:"\u{1F471}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F471-1F3FF-200D-2642-FE0F",label:"man: dark skin tone, blond hair",order:688,unicode:"\u{1F471}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9D3",label:"older person",order:690,tags:["adult","gender-neutral","old","unspecified gender"],unicode:"\u{1F9D3}",skins:[{group:1,hexcode:"1F9D3-1F3FB",label:"older person: light skin tone",order:691,unicode:"\u{1F9D3}\u{1F3FB}"},{group:1,hexcode:"1F9D3-1F3FC",label:"older person: medium-light skin tone",order:692,unicode:"\u{1F9D3}\u{1F3FC}"},{group:1,hexcode:"1F9D3-1F3FD",label:"older person: medium skin tone",order:693,unicode:"\u{1F9D3}\u{1F3FD}"},{group:1,hexcode:"1F9D3-1F3FE",label:"older person: medium-dark skin tone",order:694,unicode:"\u{1F9D3}\u{1F3FE}"},{group:1,hexcode:"1F9D3-1F3FF",label:"older person: dark skin tone",order:695,unicode:"\u{1F9D3}\u{1F3FF}"}]},{group:1,hexcode:"1F474",label:"old man",order:696,tags:["adult","man","old"],unicode:"\u{1F474}",skins:[{group:1,hexcode:"1F474-1F3FB",label:"old man: light skin tone",order:697,unicode:"\u{1F474}\u{1F3FB}"},{group:1,hexcode:"1F474-1F3FC",label:"old man: medium-light skin tone",order:698,unicode:"\u{1F474}\u{1F3FC}"},{group:1,hexcode:"1F474-1F3FD",label:"old man: medium skin tone",order:699,unicode:"\u{1F474}\u{1F3FD}"},{group:1,hexcode:"1F474-1F3FE",label:"old man: medium-dark skin tone",order:700,unicode:"\u{1F474}\u{1F3FE}"},{group:1,hexcode:"1F474-1F3FF",label:"old man: dark skin tone",order:701,unicode:"\u{1F474}\u{1F3FF}"}]},{group:1,hexcode:"1F475",label:"old woman",order:702,tags:["adult","old","woman"],unicode:"\u{1F475}",skins:[{group:1,hexcode:"1F475-1F3FB",label:"old woman: light skin tone",order:703,unicode:"\u{1F475}\u{1F3FB}"},{group:1,hexcode:"1F475-1F3FC",label:"old woman: medium-light skin tone",order:704,unicode:"\u{1F475}\u{1F3FC}"},{group:1,hexcode:"1F475-1F3FD",label:"old woman: medium skin tone",order:705,unicode:"\u{1F475}\u{1F3FD}"},{group:1,hexcode:"1F475-1F3FE",label:"old woman: medium-dark skin tone",order:706,unicode:"\u{1F475}\u{1F3FE}"},{group:1,hexcode:"1F475-1F3FF",label:"old woman: dark skin tone",order:707,unicode:"\u{1F475}\u{1F3FF}"}]},{group:1,hexcode:"1F64D",label:"person frowning",order:708,tags:["frown","gesture"],unicode:"\u{1F64D}",skins:[{group:1,hexcode:"1F64D-1F3FB",label:"person frowning: light skin tone",order:709,unicode:"\u{1F64D}\u{1F3FB}"},{group:1,hexcode:"1F64D-1F3FC",label:"person frowning: medium-light skin tone",order:710,unicode:"\u{1F64D}\u{1F3FC}"},{group:1,hexcode:"1F64D-1F3FD",label:"person frowning: medium skin tone",order:711,unicode:"\u{1F64D}\u{1F3FD}"},{group:1,hexcode:"1F64D-1F3FE",label:"person frowning: medium-dark skin tone",order:712,unicode:"\u{1F64D}\u{1F3FE}"},{group:1,hexcode:"1F64D-1F3FF",label:"person frowning: dark skin tone",order:713,unicode:"\u{1F64D}\u{1F3FF}"}]},{group:1,hexcode:"1F64D-200D-2642-FE0F",label:"man frowning",order:714,tags:["frowning","gesture","man"],unicode:"\u{1F64D}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F64D-1F3FB-200D-2642-FE0F",label:"man frowning: light skin tone",order:716,unicode:"\u{1F64D}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64D-1F3FC-200D-2642-FE0F",label:"man frowning: medium-light skin tone",order:718,unicode:"\u{1F64D}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64D-1F3FD-200D-2642-FE0F",label:"man frowning: medium skin tone",order:720,unicode:"\u{1F64D}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64D-1F3FE-200D-2642-FE0F",label:"man frowning: medium-dark skin tone",order:722,unicode:"\u{1F64D}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64D-1F3FF-200D-2642-FE0F",label:"man frowning: dark skin tone",order:724,unicode:"\u{1F64D}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F64D-200D-2640-FE0F",label:"woman frowning",order:726,tags:["frowning","gesture","woman"],unicode:"\u{1F64D}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F64D-1F3FB-200D-2640-FE0F",label:"woman frowning: light skin tone",order:728,unicode:"\u{1F64D}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64D-1F3FC-200D-2640-FE0F",label:"woman frowning: medium-light skin tone",order:730,unicode:"\u{1F64D}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64D-1F3FD-200D-2640-FE0F",label:"woman frowning: medium skin tone",order:732,unicode:"\u{1F64D}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64D-1F3FE-200D-2640-FE0F",label:"woman frowning: medium-dark skin tone",order:734,unicode:"\u{1F64D}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64D-1F3FF-200D-2640-FE0F",label:"woman frowning: dark skin tone",order:736,unicode:"\u{1F64D}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F64E",label:"person pouting",order:738,tags:["gesture","pouting"],unicode:"\u{1F64E}",skins:[{group:1,hexcode:"1F64E-1F3FB",label:"person pouting: light skin tone",order:739,unicode:"\u{1F64E}\u{1F3FB}"},{group:1,hexcode:"1F64E-1F3FC",label:"person pouting: medium-light skin tone",order:740,unicode:"\u{1F64E}\u{1F3FC}"},{group:1,hexcode:"1F64E-1F3FD",label:"person pouting: medium skin tone",order:741,unicode:"\u{1F64E}\u{1F3FD}"},{group:1,hexcode:"1F64E-1F3FE",label:"person pouting: medium-dark skin tone",order:742,unicode:"\u{1F64E}\u{1F3FE}"},{group:1,hexcode:"1F64E-1F3FF",label:"person pouting: dark skin tone",order:743,unicode:"\u{1F64E}\u{1F3FF}"}]},{group:1,hexcode:"1F64E-200D-2642-FE0F",label:"man pouting",order:744,tags:["gesture","man","pouting"],unicode:"\u{1F64E}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F64E-1F3FB-200D-2642-FE0F",label:"man pouting: light skin tone",order:746,unicode:"\u{1F64E}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64E-1F3FC-200D-2642-FE0F",label:"man pouting: medium-light skin tone",order:748,unicode:"\u{1F64E}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64E-1F3FD-200D-2642-FE0F",label:"man pouting: medium skin tone",order:750,unicode:"\u{1F64E}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64E-1F3FE-200D-2642-FE0F",label:"man pouting: medium-dark skin tone",order:752,unicode:"\u{1F64E}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64E-1F3FF-200D-2642-FE0F",label:"man pouting: dark skin tone",order:754,unicode:"\u{1F64E}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F64E-200D-2640-FE0F",label:"woman pouting",order:756,tags:["gesture","pouting","woman"],unicode:"\u{1F64E}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F64E-1F3FB-200D-2640-FE0F",label:"woman pouting: light skin tone",order:758,unicode:"\u{1F64E}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64E-1F3FC-200D-2640-FE0F",label:"woman pouting: medium-light skin tone",order:760,unicode:"\u{1F64E}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64E-1F3FD-200D-2640-FE0F",label:"woman pouting: medium skin tone",order:762,unicode:"\u{1F64E}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64E-1F3FE-200D-2640-FE0F",label:"woman pouting: medium-dark skin tone",order:764,unicode:"\u{1F64E}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64E-1F3FF-200D-2640-FE0F",label:"woman pouting: dark skin tone",order:766,unicode:"\u{1F64E}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F645",label:"person gesturing NO",order:768,tags:["forbidden","gesture","hand","person gesturing no","prohibited"],unicode:"\u{1F645}",skins:[{group:1,hexcode:"1F645-1F3FB",label:"person gesturing NO: light skin tone",order:769,unicode:"\u{1F645}\u{1F3FB}"},{group:1,hexcode:"1F645-1F3FC",label:"person gesturing NO: medium-light skin tone",order:770,unicode:"\u{1F645}\u{1F3FC}"},{group:1,hexcode:"1F645-1F3FD",label:"person gesturing NO: medium skin tone",order:771,unicode:"\u{1F645}\u{1F3FD}"},{group:1,hexcode:"1F645-1F3FE",label:"person gesturing NO: medium-dark skin tone",order:772,unicode:"\u{1F645}\u{1F3FE}"},{group:1,hexcode:"1F645-1F3FF",label:"person gesturing NO: dark skin tone",order:773,unicode:"\u{1F645}\u{1F3FF}"}]},{group:1,hexcode:"1F645-200D-2642-FE0F",label:"man gesturing NO",order:774,tags:["forbidden","gesture","hand","man","man gesturing no","prohibited"],unicode:"\u{1F645}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F645-1F3FB-200D-2642-FE0F",label:"man gesturing NO: light skin tone",order:776,unicode:"\u{1F645}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F645-1F3FC-200D-2642-FE0F",label:"man gesturing NO: medium-light skin tone",order:778,unicode:"\u{1F645}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F645-1F3FD-200D-2642-FE0F",label:"man gesturing NO: medium skin tone",order:780,unicode:"\u{1F645}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F645-1F3FE-200D-2642-FE0F",label:"man gesturing NO: medium-dark skin tone",order:782,unicode:"\u{1F645}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F645-1F3FF-200D-2642-FE0F",label:"man gesturing NO: dark skin tone",order:784,unicode:"\u{1F645}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F645-200D-2640-FE0F",label:"woman gesturing NO",order:786,tags:["forbidden","gesture","hand","prohibited","woman","woman gesturing no"],unicode:"\u{1F645}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F645-1F3FB-200D-2640-FE0F",label:"woman gesturing NO: light skin tone",order:788,unicode:"\u{1F645}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F645-1F3FC-200D-2640-FE0F",label:"woman gesturing NO: medium-light skin tone",order:790,unicode:"\u{1F645}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F645-1F3FD-200D-2640-FE0F",label:"woman gesturing NO: medium skin tone",order:792,unicode:"\u{1F645}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F645-1F3FE-200D-2640-FE0F",label:"woman gesturing NO: medium-dark skin tone",order:794,unicode:"\u{1F645}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F645-1F3FF-200D-2640-FE0F",label:"woman gesturing NO: dark skin tone",order:796,unicode:"\u{1F645}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F646",label:"person gesturing OK",order:798,tags:["gesture","hand","ok","person gesturing ok"],unicode:"\u{1F646}",skins:[{group:1,hexcode:"1F646-1F3FB",label:"person gesturing OK: light skin tone",order:799,unicode:"\u{1F646}\u{1F3FB}"},{group:1,hexcode:"1F646-1F3FC",label:"person gesturing OK: medium-light skin tone",order:800,unicode:"\u{1F646}\u{1F3FC}"},{group:1,hexcode:"1F646-1F3FD",label:"person gesturing OK: medium skin tone",order:801,unicode:"\u{1F646}\u{1F3FD}"},{group:1,hexcode:"1F646-1F3FE",label:"person gesturing OK: medium-dark skin tone",order:802,unicode:"\u{1F646}\u{1F3FE}"},{group:1,hexcode:"1F646-1F3FF",label:"person gesturing OK: dark skin tone",order:803,unicode:"\u{1F646}\u{1F3FF}"}]},{group:1,hexcode:"1F646-200D-2642-FE0F",label:"man gesturing OK",order:804,tags:["gesture","hand","man","man gesturing ok","ok"],unicode:"\u{1F646}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F646-1F3FB-200D-2642-FE0F",label:"man gesturing OK: light skin tone",order:806,unicode:"\u{1F646}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F646-1F3FC-200D-2642-FE0F",label:"man gesturing OK: medium-light skin tone",order:808,unicode:"\u{1F646}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F646-1F3FD-200D-2642-FE0F",label:"man gesturing OK: medium skin tone",order:810,unicode:"\u{1F646}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F646-1F3FE-200D-2642-FE0F",label:"man gesturing OK: medium-dark skin tone",order:812,unicode:"\u{1F646}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F646-1F3FF-200D-2642-FE0F",label:"man gesturing OK: dark skin tone",order:814,unicode:"\u{1F646}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F646-200D-2640-FE0F",label:"woman gesturing OK",order:816,tags:["gesture","hand","ok","woman","woman gesturing ok"],unicode:"\u{1F646}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F646-1F3FB-200D-2640-FE0F",label:"woman gesturing OK: light skin tone",order:818,unicode:"\u{1F646}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F646-1F3FC-200D-2640-FE0F",label:"woman gesturing OK: medium-light skin tone",order:820,unicode:"\u{1F646}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F646-1F3FD-200D-2640-FE0F",label:"woman gesturing OK: medium skin tone",order:822,unicode:"\u{1F646}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F646-1F3FE-200D-2640-FE0F",label:"woman gesturing OK: medium-dark skin tone",order:824,unicode:"\u{1F646}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F646-1F3FF-200D-2640-FE0F",label:"woman gesturing OK: dark skin tone",order:826,unicode:"\u{1F646}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F481",label:"person tipping hand",order:828,tags:["hand","help","information","sassy","tipping"],unicode:"\u{1F481}",skins:[{group:1,hexcode:"1F481-1F3FB",label:"person tipping hand: light skin tone",order:829,unicode:"\u{1F481}\u{1F3FB}"},{group:1,hexcode:"1F481-1F3FC",label:"person tipping hand: medium-light skin tone",order:830,unicode:"\u{1F481}\u{1F3FC}"},{group:1,hexcode:"1F481-1F3FD",label:"person tipping hand: medium skin tone",order:831,unicode:"\u{1F481}\u{1F3FD}"},{group:1,hexcode:"1F481-1F3FE",label:"person tipping hand: medium-dark skin tone",order:832,unicode:"\u{1F481}\u{1F3FE}"},{group:1,hexcode:"1F481-1F3FF",label:"person tipping hand: dark skin tone",order:833,unicode:"\u{1F481}\u{1F3FF}"}]},{group:1,hexcode:"1F481-200D-2642-FE0F",label:"man tipping hand",order:834,tags:["man","sassy","tipping hand"],unicode:"\u{1F481}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F481-1F3FB-200D-2642-FE0F",label:"man tipping hand: light skin tone",order:836,unicode:"\u{1F481}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F481-1F3FC-200D-2642-FE0F",label:"man tipping hand: medium-light skin tone",order:838,unicode:"\u{1F481}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F481-1F3FD-200D-2642-FE0F",label:"man tipping hand: medium skin tone",order:840,unicode:"\u{1F481}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F481-1F3FE-200D-2642-FE0F",label:"man tipping hand: medium-dark skin tone",order:842,unicode:"\u{1F481}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F481-1F3FF-200D-2642-FE0F",label:"man tipping hand: dark skin tone",order:844,unicode:"\u{1F481}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F481-200D-2640-FE0F",label:"woman tipping hand",order:846,tags:["sassy","tipping hand","woman"],unicode:"\u{1F481}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F481-1F3FB-200D-2640-FE0F",label:"woman tipping hand: light skin tone",order:848,unicode:"\u{1F481}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F481-1F3FC-200D-2640-FE0F",label:"woman tipping hand: medium-light skin tone",order:850,unicode:"\u{1F481}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F481-1F3FD-200D-2640-FE0F",label:"woman tipping hand: medium skin tone",order:852,unicode:"\u{1F481}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F481-1F3FE-200D-2640-FE0F",label:"woman tipping hand: medium-dark skin tone",order:854,unicode:"\u{1F481}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F481-1F3FF-200D-2640-FE0F",label:"woman tipping hand: dark skin tone",order:856,unicode:"\u{1F481}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F64B",label:"person raising hand",order:858,tags:["gesture","hand","happy","raised"],unicode:"\u{1F64B}",skins:[{group:1,hexcode:"1F64B-1F3FB",label:"person raising hand: light skin tone",order:859,unicode:"\u{1F64B}\u{1F3FB}"},{group:1,hexcode:"1F64B-1F3FC",label:"person raising hand: medium-light skin tone",order:860,unicode:"\u{1F64B}\u{1F3FC}"},{group:1,hexcode:"1F64B-1F3FD",label:"person raising hand: medium skin tone",order:861,unicode:"\u{1F64B}\u{1F3FD}"},{group:1,hexcode:"1F64B-1F3FE",label:"person raising hand: medium-dark skin tone",order:862,unicode:"\u{1F64B}\u{1F3FE}"},{group:1,hexcode:"1F64B-1F3FF",label:"person raising hand: dark skin tone",order:863,unicode:"\u{1F64B}\u{1F3FF}"}]},{group:1,hexcode:"1F64B-200D-2642-FE0F",label:"man raising hand",order:864,tags:["gesture","man","raising hand"],unicode:"\u{1F64B}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F64B-1F3FB-200D-2642-FE0F",label:"man raising hand: light skin tone",order:866,unicode:"\u{1F64B}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64B-1F3FC-200D-2642-FE0F",label:"man raising hand: medium-light skin tone",order:868,unicode:"\u{1F64B}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64B-1F3FD-200D-2642-FE0F",label:"man raising hand: medium skin tone",order:870,unicode:"\u{1F64B}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64B-1F3FE-200D-2642-FE0F",label:"man raising hand: medium-dark skin tone",order:872,unicode:"\u{1F64B}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F64B-1F3FF-200D-2642-FE0F",label:"man raising hand: dark skin tone",order:874,unicode:"\u{1F64B}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F64B-200D-2640-FE0F",label:"woman raising hand",order:876,tags:["gesture","raising hand","woman"],unicode:"\u{1F64B}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F64B-1F3FB-200D-2640-FE0F",label:"woman raising hand: light skin tone",order:878,unicode:"\u{1F64B}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64B-1F3FC-200D-2640-FE0F",label:"woman raising hand: medium-light skin tone",order:880,unicode:"\u{1F64B}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64B-1F3FD-200D-2640-FE0F",label:"woman raising hand: medium skin tone",order:882,unicode:"\u{1F64B}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64B-1F3FE-200D-2640-FE0F",label:"woman raising hand: medium-dark skin tone",order:884,unicode:"\u{1F64B}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F64B-1F3FF-200D-2640-FE0F",label:"woman raising hand: dark skin tone",order:886,unicode:"\u{1F64B}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9CF",label:"deaf person",order:888,tags:["accessibility","deaf","ear","hear"],unicode:"\u{1F9CF}",skins:[{group:1,hexcode:"1F9CF-1F3FB",label:"deaf person: light skin tone",order:889,unicode:"\u{1F9CF}\u{1F3FB}"},{group:1,hexcode:"1F9CF-1F3FC",label:"deaf person: medium-light skin tone",order:890,unicode:"\u{1F9CF}\u{1F3FC}"},{group:1,hexcode:"1F9CF-1F3FD",label:"deaf person: medium skin tone",order:891,unicode:"\u{1F9CF}\u{1F3FD}"},{group:1,hexcode:"1F9CF-1F3FE",label:"deaf person: medium-dark skin tone",order:892,unicode:"\u{1F9CF}\u{1F3FE}"},{group:1,hexcode:"1F9CF-1F3FF",label:"deaf person: dark skin tone",order:893,unicode:"\u{1F9CF}\u{1F3FF}"}]},{group:1,hexcode:"1F9CF-200D-2642-FE0F",label:"deaf man",order:894,tags:["deaf","man"],unicode:"\u{1F9CF}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9CF-1F3FB-200D-2642-FE0F",label:"deaf man: light skin tone",order:896,unicode:"\u{1F9CF}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CF-1F3FC-200D-2642-FE0F",label:"deaf man: medium-light skin tone",order:898,unicode:"\u{1F9CF}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CF-1F3FD-200D-2642-FE0F",label:"deaf man: medium skin tone",order:900,unicode:"\u{1F9CF}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CF-1F3FE-200D-2642-FE0F",label:"deaf man: medium-dark skin tone",order:902,unicode:"\u{1F9CF}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CF-1F3FF-200D-2642-FE0F",label:"deaf man: dark skin tone",order:904,unicode:"\u{1F9CF}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9CF-200D-2640-FE0F",label:"deaf woman",order:906,tags:["deaf","woman"],unicode:"\u{1F9CF}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9CF-1F3FB-200D-2640-FE0F",label:"deaf woman: light skin tone",order:908,unicode:"\u{1F9CF}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CF-1F3FC-200D-2640-FE0F",label:"deaf woman: medium-light skin tone",order:910,unicode:"\u{1F9CF}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CF-1F3FD-200D-2640-FE0F",label:"deaf woman: medium skin tone",order:912,unicode:"\u{1F9CF}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CF-1F3FE-200D-2640-FE0F",label:"deaf woman: medium-dark skin tone",order:914,unicode:"\u{1F9CF}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CF-1F3FF-200D-2640-FE0F",label:"deaf woman: dark skin tone",order:916,unicode:"\u{1F9CF}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F647",label:"person bowing",order:918,tags:["apology","bow","gesture","sorry"],unicode:"\u{1F647}",skins:[{group:1,hexcode:"1F647-1F3FB",label:"person bowing: light skin tone",order:919,unicode:"\u{1F647}\u{1F3FB}"},{group:1,hexcode:"1F647-1F3FC",label:"person bowing: medium-light skin tone",order:920,unicode:"\u{1F647}\u{1F3FC}"},{group:1,hexcode:"1F647-1F3FD",label:"person bowing: medium skin tone",order:921,unicode:"\u{1F647}\u{1F3FD}"},{group:1,hexcode:"1F647-1F3FE",label:"person bowing: medium-dark skin tone",order:922,unicode:"\u{1F647}\u{1F3FE}"},{group:1,hexcode:"1F647-1F3FF",label:"person bowing: dark skin tone",order:923,unicode:"\u{1F647}\u{1F3FF}"}]},{group:1,hexcode:"1F647-200D-2642-FE0F",label:"man bowing",order:924,tags:["apology","bowing","favor","gesture","man","sorry"],unicode:"\u{1F647}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F647-1F3FB-200D-2642-FE0F",label:"man bowing: light skin tone",order:926,unicode:"\u{1F647}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F647-1F3FC-200D-2642-FE0F",label:"man bowing: medium-light skin tone",order:928,unicode:"\u{1F647}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F647-1F3FD-200D-2642-FE0F",label:"man bowing: medium skin tone",order:930,unicode:"\u{1F647}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F647-1F3FE-200D-2642-FE0F",label:"man bowing: medium-dark skin tone",order:932,unicode:"\u{1F647}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F647-1F3FF-200D-2642-FE0F",label:"man bowing: dark skin tone",order:934,unicode:"\u{1F647}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F647-200D-2640-FE0F",label:"woman bowing",order:936,tags:["apology","bowing","favor","gesture","sorry","woman"],unicode:"\u{1F647}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F647-1F3FB-200D-2640-FE0F",label:"woman bowing: light skin tone",order:938,unicode:"\u{1F647}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F647-1F3FC-200D-2640-FE0F",label:"woman bowing: medium-light skin tone",order:940,unicode:"\u{1F647}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F647-1F3FD-200D-2640-FE0F",label:"woman bowing: medium skin tone",order:942,unicode:"\u{1F647}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F647-1F3FE-200D-2640-FE0F",label:"woman bowing: medium-dark skin tone",order:944,unicode:"\u{1F647}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F647-1F3FF-200D-2640-FE0F",label:"woman bowing: dark skin tone",order:946,unicode:"\u{1F647}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F926",label:"person facepalming",order:948,tags:["disbelief","exasperation","face","palm"],unicode:"\u{1F926}",skins:[{group:1,hexcode:"1F926-1F3FB",label:"person facepalming: light skin tone",order:949,unicode:"\u{1F926}\u{1F3FB}"},{group:1,hexcode:"1F926-1F3FC",label:"person facepalming: medium-light skin tone",order:950,unicode:"\u{1F926}\u{1F3FC}"},{group:1,hexcode:"1F926-1F3FD",label:"person facepalming: medium skin tone",order:951,unicode:"\u{1F926}\u{1F3FD}"},{group:1,hexcode:"1F926-1F3FE",label:"person facepalming: medium-dark skin tone",order:952,unicode:"\u{1F926}\u{1F3FE}"},{group:1,hexcode:"1F926-1F3FF",label:"person facepalming: dark skin tone",order:953,unicode:"\u{1F926}\u{1F3FF}"}]},{group:1,hexcode:"1F926-200D-2642-FE0F",label:"man facepalming",order:954,tags:["disbelief","exasperation","facepalm","man"],unicode:"\u{1F926}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F926-1F3FB-200D-2642-FE0F",label:"man facepalming: light skin tone",order:956,unicode:"\u{1F926}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F926-1F3FC-200D-2642-FE0F",label:"man facepalming: medium-light skin tone",order:958,unicode:"\u{1F926}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F926-1F3FD-200D-2642-FE0F",label:"man facepalming: medium skin tone",order:960,unicode:"\u{1F926}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F926-1F3FE-200D-2642-FE0F",label:"man facepalming: medium-dark skin tone",order:962,unicode:"\u{1F926}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F926-1F3FF-200D-2642-FE0F",label:"man facepalming: dark skin tone",order:964,unicode:"\u{1F926}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F926-200D-2640-FE0F",label:"woman facepalming",order:966,tags:["disbelief","exasperation","facepalm","woman"],unicode:"\u{1F926}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F926-1F3FB-200D-2640-FE0F",label:"woman facepalming: light skin tone",order:968,unicode:"\u{1F926}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F926-1F3FC-200D-2640-FE0F",label:"woman facepalming: medium-light skin tone",order:970,unicode:"\u{1F926}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F926-1F3FD-200D-2640-FE0F",label:"woman facepalming: medium skin tone",order:972,unicode:"\u{1F926}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F926-1F3FE-200D-2640-FE0F",label:"woman facepalming: medium-dark skin tone",order:974,unicode:"\u{1F926}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F926-1F3FF-200D-2640-FE0F",label:"woman facepalming: dark skin tone",order:976,unicode:"\u{1F926}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F937",label:"person shrugging",order:978,tags:["doubt","ignorance","indifference","shrug"],unicode:"\u{1F937}",skins:[{group:1,hexcode:"1F937-1F3FB",label:"person shrugging: light skin tone",order:979,unicode:"\u{1F937}\u{1F3FB}"},{group:1,hexcode:"1F937-1F3FC",label:"person shrugging: medium-light skin tone",order:980,unicode:"\u{1F937}\u{1F3FC}"},{group:1,hexcode:"1F937-1F3FD",label:"person shrugging: medium skin tone",order:981,unicode:"\u{1F937}\u{1F3FD}"},{group:1,hexcode:"1F937-1F3FE",label:"person shrugging: medium-dark skin tone",order:982,unicode:"\u{1F937}\u{1F3FE}"},{group:1,hexcode:"1F937-1F3FF",label:"person shrugging: dark skin tone",order:983,unicode:"\u{1F937}\u{1F3FF}"}]},{group:1,hexcode:"1F937-200D-2642-FE0F",label:"man shrugging",order:984,tags:["doubt","ignorance","indifference","man","shrug"],unicode:"\u{1F937}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F937-1F3FB-200D-2642-FE0F",label:"man shrugging: light skin tone",order:986,unicode:"\u{1F937}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F937-1F3FC-200D-2642-FE0F",label:"man shrugging: medium-light skin tone",order:988,unicode:"\u{1F937}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F937-1F3FD-200D-2642-FE0F",label:"man shrugging: medium skin tone",order:990,unicode:"\u{1F937}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F937-1F3FE-200D-2642-FE0F",label:"man shrugging: medium-dark skin tone",order:992,unicode:"\u{1F937}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F937-1F3FF-200D-2642-FE0F",label:"man shrugging: dark skin tone",order:994,unicode:"\u{1F937}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F937-200D-2640-FE0F",label:"woman shrugging",order:996,tags:["doubt","ignorance","indifference","shrug","woman"],unicode:"\u{1F937}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F937-1F3FB-200D-2640-FE0F",label:"woman shrugging: light skin tone",order:998,unicode:"\u{1F937}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F937-1F3FC-200D-2640-FE0F",label:"woman shrugging: medium-light skin tone",order:1e3,unicode:"\u{1F937}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F937-1F3FD-200D-2640-FE0F",label:"woman shrugging: medium skin tone",order:1002,unicode:"\u{1F937}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F937-1F3FE-200D-2640-FE0F",label:"woman shrugging: medium-dark skin tone",order:1004,unicode:"\u{1F937}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F937-1F3FF-200D-2640-FE0F",label:"woman shrugging: dark skin tone",order:1006,unicode:"\u{1F937}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9D1-200D-2695-FE0F",label:"health worker",order:1008,tags:["doctor","healthcare","nurse","therapist"],unicode:"\u{1F9D1}\u200D\u2695\uFE0F",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-2695-FE0F",label:"health worker: light skin tone",order:1010,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F9D1-1F3FC-200D-2695-FE0F",label:"health worker: medium-light skin tone",order:1012,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F9D1-1F3FD-200D-2695-FE0F",label:"health worker: medium skin tone",order:1014,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F9D1-1F3FE-200D-2695-FE0F",label:"health worker: medium-dark skin tone",order:1016,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F9D1-1F3FF-200D-2695-FE0F",label:"health worker: dark skin tone",order:1018,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u2695\uFE0F"}]},{group:1,hexcode:"1F468-200D-2695-FE0F",label:"man health worker",order:1020,tags:["doctor","healthcare","man","nurse","therapist"],unicode:"\u{1F468}\u200D\u2695\uFE0F",skins:[{group:1,hexcode:"1F468-1F3FB-200D-2695-FE0F",label:"man health worker: light skin tone",order:1022,unicode:"\u{1F468}\u{1F3FB}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F468-1F3FC-200D-2695-FE0F",label:"man health worker: medium-light skin tone",order:1024,unicode:"\u{1F468}\u{1F3FC}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F468-1F3FD-200D-2695-FE0F",label:"man health worker: medium skin tone",order:1026,unicode:"\u{1F468}\u{1F3FD}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F468-1F3FE-200D-2695-FE0F",label:"man health worker: medium-dark skin tone",order:1028,unicode:"\u{1F468}\u{1F3FE}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F468-1F3FF-200D-2695-FE0F",label:"man health worker: dark skin tone",order:1030,unicode:"\u{1F468}\u{1F3FF}\u200D\u2695\uFE0F"}]},{group:1,hexcode:"1F469-200D-2695-FE0F",label:"woman health worker",order:1032,tags:["doctor","healthcare","nurse","therapist","woman"],unicode:"\u{1F469}\u200D\u2695\uFE0F",skins:[{group:1,hexcode:"1F469-1F3FB-200D-2695-FE0F",label:"woman health worker: light skin tone",order:1034,unicode:"\u{1F469}\u{1F3FB}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F469-1F3FC-200D-2695-FE0F",label:"woman health worker: medium-light skin tone",order:1036,unicode:"\u{1F469}\u{1F3FC}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F469-1F3FD-200D-2695-FE0F",label:"woman health worker: medium skin tone",order:1038,unicode:"\u{1F469}\u{1F3FD}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F469-1F3FE-200D-2695-FE0F",label:"woman health worker: medium-dark skin tone",order:1040,unicode:"\u{1F469}\u{1F3FE}\u200D\u2695\uFE0F"},{group:1,hexcode:"1F469-1F3FF-200D-2695-FE0F",label:"woman health worker: dark skin tone",order:1042,unicode:"\u{1F469}\u{1F3FF}\u200D\u2695\uFE0F"}]},{group:1,hexcode:"1F9D1-200D-1F393",label:"student",order:1044,tags:["graduate"],unicode:"\u{1F9D1}\u200D\u{1F393}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F393",label:"student: light skin tone",order:1045,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F393}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F393",label:"student: medium-light skin tone",order:1046,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F393}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F393",label:"student: medium skin tone",order:1047,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F393}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F393",label:"student: medium-dark skin tone",order:1048,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F393}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F393",label:"student: dark skin tone",order:1049,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F393}"}]},{group:1,hexcode:"1F468-200D-1F393",label:"man student",order:1050,tags:["graduate","man","student"],unicode:"\u{1F468}\u200D\u{1F393}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F393",label:"man student: light skin tone",order:1051,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F393}"},{group:1,hexcode:"1F468-1F3FC-200D-1F393",label:"man student: medium-light skin tone",order:1052,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F393}"},{group:1,hexcode:"1F468-1F3FD-200D-1F393",label:"man student: medium skin tone",order:1053,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F393}"},{group:1,hexcode:"1F468-1F3FE-200D-1F393",label:"man student: medium-dark skin tone",order:1054,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F393}"},{group:1,hexcode:"1F468-1F3FF-200D-1F393",label:"man student: dark skin tone",order:1055,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F393}"}]},{group:1,hexcode:"1F469-200D-1F393",label:"woman student",order:1056,tags:["graduate","student","woman"],unicode:"\u{1F469}\u200D\u{1F393}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F393",label:"woman student: light skin tone",order:1057,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F393}"},{group:1,hexcode:"1F469-1F3FC-200D-1F393",label:"woman student: medium-light skin tone",order:1058,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F393}"},{group:1,hexcode:"1F469-1F3FD-200D-1F393",label:"woman student: medium skin tone",order:1059,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F393}"},{group:1,hexcode:"1F469-1F3FE-200D-1F393",label:"woman student: medium-dark skin tone",order:1060,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F393}"},{group:1,hexcode:"1F469-1F3FF-200D-1F393",label:"woman student: dark skin tone",order:1061,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F393}"}]},{group:1,hexcode:"1F9D1-200D-1F3EB",label:"teacher",order:1062,tags:["instructor","lecturer","professor"],unicode:"\u{1F9D1}\u200D\u{1F3EB}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F3EB",label:"teacher: light skin tone",order:1063,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F3EB}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F3EB",label:"teacher: medium-light skin tone",order:1064,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F3EB}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F3EB",label:"teacher: medium skin tone",order:1065,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F3EB}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F3EB",label:"teacher: medium-dark skin tone",order:1066,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F3EB}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F3EB",label:"teacher: dark skin tone",order:1067,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F3EB}"}]},{group:1,hexcode:"1F468-200D-1F3EB",label:"man teacher",order:1068,tags:["instructor","lecturer","man","professor","teacher"],unicode:"\u{1F468}\u200D\u{1F3EB}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F3EB",label:"man teacher: light skin tone",order:1069,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F3EB}"},{group:1,hexcode:"1F468-1F3FC-200D-1F3EB",label:"man teacher: medium-light skin tone",order:1070,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F3EB}"},{group:1,hexcode:"1F468-1F3FD-200D-1F3EB",label:"man teacher: medium skin tone",order:1071,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F3EB}"},{group:1,hexcode:"1F468-1F3FE-200D-1F3EB",label:"man teacher: medium-dark skin tone",order:1072,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F3EB}"},{group:1,hexcode:"1F468-1F3FF-200D-1F3EB",label:"man teacher: dark skin tone",order:1073,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F3EB}"}]},{group:1,hexcode:"1F469-200D-1F3EB",label:"woman teacher",order:1074,tags:["instructor","lecturer","professor","teacher","woman"],unicode:"\u{1F469}\u200D\u{1F3EB}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F3EB",label:"woman teacher: light skin tone",order:1075,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F3EB}"},{group:1,hexcode:"1F469-1F3FC-200D-1F3EB",label:"woman teacher: medium-light skin tone",order:1076,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F3EB}"},{group:1,hexcode:"1F469-1F3FD-200D-1F3EB",label:"woman teacher: medium skin tone",order:1077,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F3EB}"},{group:1,hexcode:"1F469-1F3FE-200D-1F3EB",label:"woman teacher: medium-dark skin tone",order:1078,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F3EB}"},{group:1,hexcode:"1F469-1F3FF-200D-1F3EB",label:"woman teacher: dark skin tone",order:1079,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F3EB}"}]},{group:1,hexcode:"1F9D1-200D-2696-FE0F",label:"judge",order:1080,tags:["justice","law","scales"],unicode:"\u{1F9D1}\u200D\u2696\uFE0F",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-2696-FE0F",label:"judge: light skin tone",order:1082,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F9D1-1F3FC-200D-2696-FE0F",label:"judge: medium-light skin tone",order:1084,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F9D1-1F3FD-200D-2696-FE0F",label:"judge: medium skin tone",order:1086,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F9D1-1F3FE-200D-2696-FE0F",label:"judge: medium-dark skin tone",order:1088,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F9D1-1F3FF-200D-2696-FE0F",label:"judge: dark skin tone",order:1090,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u2696\uFE0F"}]},{group:1,hexcode:"1F468-200D-2696-FE0F",label:"man judge",order:1092,tags:["judge","justice","law","man","scales"],unicode:"\u{1F468}\u200D\u2696\uFE0F",skins:[{group:1,hexcode:"1F468-1F3FB-200D-2696-FE0F",label:"man judge: light skin tone",order:1094,unicode:"\u{1F468}\u{1F3FB}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F468-1F3FC-200D-2696-FE0F",label:"man judge: medium-light skin tone",order:1096,unicode:"\u{1F468}\u{1F3FC}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F468-1F3FD-200D-2696-FE0F",label:"man judge: medium skin tone",order:1098,unicode:"\u{1F468}\u{1F3FD}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F468-1F3FE-200D-2696-FE0F",label:"man judge: medium-dark skin tone",order:1100,unicode:"\u{1F468}\u{1F3FE}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F468-1F3FF-200D-2696-FE0F",label:"man judge: dark skin tone",order:1102,unicode:"\u{1F468}\u{1F3FF}\u200D\u2696\uFE0F"}]},{group:1,hexcode:"1F469-200D-2696-FE0F",label:"woman judge",order:1104,tags:["judge","justice","law","scales","woman"],unicode:"\u{1F469}\u200D\u2696\uFE0F",skins:[{group:1,hexcode:"1F469-1F3FB-200D-2696-FE0F",label:"woman judge: light skin tone",order:1106,unicode:"\u{1F469}\u{1F3FB}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F469-1F3FC-200D-2696-FE0F",label:"woman judge: medium-light skin tone",order:1108,unicode:"\u{1F469}\u{1F3FC}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F469-1F3FD-200D-2696-FE0F",label:"woman judge: medium skin tone",order:1110,unicode:"\u{1F469}\u{1F3FD}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F469-1F3FE-200D-2696-FE0F",label:"woman judge: medium-dark skin tone",order:1112,unicode:"\u{1F469}\u{1F3FE}\u200D\u2696\uFE0F"},{group:1,hexcode:"1F469-1F3FF-200D-2696-FE0F",label:"woman judge: dark skin tone",order:1114,unicode:"\u{1F469}\u{1F3FF}\u200D\u2696\uFE0F"}]},{group:1,hexcode:"1F9D1-200D-1F33E",label:"farmer",order:1116,tags:["gardener","rancher"],unicode:"\u{1F9D1}\u200D\u{1F33E}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F33E",label:"farmer: light skin tone",order:1117,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F33E}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F33E",label:"farmer: medium-light skin tone",order:1118,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F33E}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F33E",label:"farmer: medium skin tone",order:1119,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F33E}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F33E",label:"farmer: medium-dark skin tone",order:1120,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F33E}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F33E",label:"farmer: dark skin tone",order:1121,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F33E}"}]},{group:1,hexcode:"1F468-200D-1F33E",label:"man farmer",order:1122,tags:["farmer","gardener","man","rancher"],unicode:"\u{1F468}\u200D\u{1F33E}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F33E",label:"man farmer: light skin tone",order:1123,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F33E}"},{group:1,hexcode:"1F468-1F3FC-200D-1F33E",label:"man farmer: medium-light skin tone",order:1124,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F33E}"},{group:1,hexcode:"1F468-1F3FD-200D-1F33E",label:"man farmer: medium skin tone",order:1125,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F33E}"},{group:1,hexcode:"1F468-1F3FE-200D-1F33E",label:"man farmer: medium-dark skin tone",order:1126,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F33E}"},{group:1,hexcode:"1F468-1F3FF-200D-1F33E",label:"man farmer: dark skin tone",order:1127,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F33E}"}]},{group:1,hexcode:"1F469-200D-1F33E",label:"woman farmer",order:1128,tags:["farmer","gardener","rancher","woman"],unicode:"\u{1F469}\u200D\u{1F33E}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F33E",label:"woman farmer: light skin tone",order:1129,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F33E}"},{group:1,hexcode:"1F469-1F3FC-200D-1F33E",label:"woman farmer: medium-light skin tone",order:1130,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F33E}"},{group:1,hexcode:"1F469-1F3FD-200D-1F33E",label:"woman farmer: medium skin tone",order:1131,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F33E}"},{group:1,hexcode:"1F469-1F3FE-200D-1F33E",label:"woman farmer: medium-dark skin tone",order:1132,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F33E}"},{group:1,hexcode:"1F469-1F3FF-200D-1F33E",label:"woman farmer: dark skin tone",order:1133,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F33E}"}]},{group:1,hexcode:"1F9D1-200D-1F373",label:"cook",order:1134,tags:["chef"],unicode:"\u{1F9D1}\u200D\u{1F373}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F373",label:"cook: light skin tone",order:1135,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F373}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F373",label:"cook: medium-light skin tone",order:1136,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F373}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F373",label:"cook: medium skin tone",order:1137,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F373}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F373",label:"cook: medium-dark skin tone",order:1138,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F373}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F373",label:"cook: dark skin tone",order:1139,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F373}"}]},{group:1,hexcode:"1F468-200D-1F373",label:"man cook",order:1140,tags:["chef","cook","man"],unicode:"\u{1F468}\u200D\u{1F373}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F373",label:"man cook: light skin tone",order:1141,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F373}"},{group:1,hexcode:"1F468-1F3FC-200D-1F373",label:"man cook: medium-light skin tone",order:1142,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F373}"},{group:1,hexcode:"1F468-1F3FD-200D-1F373",label:"man cook: medium skin tone",order:1143,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F373}"},{group:1,hexcode:"1F468-1F3FE-200D-1F373",label:"man cook: medium-dark skin tone",order:1144,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F373}"},{group:1,hexcode:"1F468-1F3FF-200D-1F373",label:"man cook: dark skin tone",order:1145,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F373}"}]},{group:1,hexcode:"1F469-200D-1F373",label:"woman cook",order:1146,tags:["chef","cook","woman"],unicode:"\u{1F469}\u200D\u{1F373}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F373",label:"woman cook: light skin tone",order:1147,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F373}"},{group:1,hexcode:"1F469-1F3FC-200D-1F373",label:"woman cook: medium-light skin tone",order:1148,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F373}"},{group:1,hexcode:"1F469-1F3FD-200D-1F373",label:"woman cook: medium skin tone",order:1149,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F373}"},{group:1,hexcode:"1F469-1F3FE-200D-1F373",label:"woman cook: medium-dark skin tone",order:1150,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F373}"},{group:1,hexcode:"1F469-1F3FF-200D-1F373",label:"woman cook: dark skin tone",order:1151,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F373}"}]},{group:1,hexcode:"1F9D1-200D-1F527",label:"mechanic",order:1152,tags:["electrician","plumber","tradesperson"],unicode:"\u{1F9D1}\u200D\u{1F527}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F527",label:"mechanic: light skin tone",order:1153,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F527}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F527",label:"mechanic: medium-light skin tone",order:1154,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F527}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F527",label:"mechanic: medium skin tone",order:1155,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F527}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F527",label:"mechanic: medium-dark skin tone",order:1156,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F527}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F527",label:"mechanic: dark skin tone",order:1157,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F527}"}]},{group:1,hexcode:"1F468-200D-1F527",label:"man mechanic",order:1158,tags:["electrician","man","mechanic","plumber","tradesperson"],unicode:"\u{1F468}\u200D\u{1F527}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F527",label:"man mechanic: light skin tone",order:1159,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F527}"},{group:1,hexcode:"1F468-1F3FC-200D-1F527",label:"man mechanic: medium-light skin tone",order:1160,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F527}"},{group:1,hexcode:"1F468-1F3FD-200D-1F527",label:"man mechanic: medium skin tone",order:1161,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F527}"},{group:1,hexcode:"1F468-1F3FE-200D-1F527",label:"man mechanic: medium-dark skin tone",order:1162,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F527}"},{group:1,hexcode:"1F468-1F3FF-200D-1F527",label:"man mechanic: dark skin tone",order:1163,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F527}"}]},{group:1,hexcode:"1F469-200D-1F527",label:"woman mechanic",order:1164,tags:["electrician","mechanic","plumber","tradesperson","woman"],unicode:"\u{1F469}\u200D\u{1F527}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F527",label:"woman mechanic: light skin tone",order:1165,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F527}"},{group:1,hexcode:"1F469-1F3FC-200D-1F527",label:"woman mechanic: medium-light skin tone",order:1166,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F527}"},{group:1,hexcode:"1F469-1F3FD-200D-1F527",label:"woman mechanic: medium skin tone",order:1167,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F527}"},{group:1,hexcode:"1F469-1F3FE-200D-1F527",label:"woman mechanic: medium-dark skin tone",order:1168,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F527}"},{group:1,hexcode:"1F469-1F3FF-200D-1F527",label:"woman mechanic: dark skin tone",order:1169,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F527}"}]},{group:1,hexcode:"1F9D1-200D-1F3ED",label:"factory worker",order:1170,tags:["assembly","factory","industrial","worker"],unicode:"\u{1F9D1}\u200D\u{1F3ED}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F3ED",label:"factory worker: light skin tone",order:1171,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F3ED}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F3ED",label:"factory worker: medium-light skin tone",order:1172,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F3ED}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F3ED",label:"factory worker: medium skin tone",order:1173,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F3ED}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F3ED",label:"factory worker: medium-dark skin tone",order:1174,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F3ED}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F3ED",label:"factory worker: dark skin tone",order:1175,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F3ED}"}]},{group:1,hexcode:"1F468-200D-1F3ED",label:"man factory worker",order:1176,tags:["assembly","factory","industrial","man","worker"],unicode:"\u{1F468}\u200D\u{1F3ED}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F3ED",label:"man factory worker: light skin tone",order:1177,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F3ED}"},{group:1,hexcode:"1F468-1F3FC-200D-1F3ED",label:"man factory worker: medium-light skin tone",order:1178,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F3ED}"},{group:1,hexcode:"1F468-1F3FD-200D-1F3ED",label:"man factory worker: medium skin tone",order:1179,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F3ED}"},{group:1,hexcode:"1F468-1F3FE-200D-1F3ED",label:"man factory worker: medium-dark skin tone",order:1180,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F3ED}"},{group:1,hexcode:"1F468-1F3FF-200D-1F3ED",label:"man factory worker: dark skin tone",order:1181,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F3ED}"}]},{group:1,hexcode:"1F469-200D-1F3ED",label:"woman factory worker",order:1182,tags:["assembly","factory","industrial","woman","worker"],unicode:"\u{1F469}\u200D\u{1F3ED}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F3ED",label:"woman factory worker: light skin tone",order:1183,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F3ED}"},{group:1,hexcode:"1F469-1F3FC-200D-1F3ED",label:"woman factory worker: medium-light skin tone",order:1184,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F3ED}"},{group:1,hexcode:"1F469-1F3FD-200D-1F3ED",label:"woman factory worker: medium skin tone",order:1185,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F3ED}"},{group:1,hexcode:"1F469-1F3FE-200D-1F3ED",label:"woman factory worker: medium-dark skin tone",order:1186,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F3ED}"},{group:1,hexcode:"1F469-1F3FF-200D-1F3ED",label:"woman factory worker: dark skin tone",order:1187,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F3ED}"}]},{group:1,hexcode:"1F9D1-200D-1F4BC",label:"office worker",order:1188,tags:["architect","business","manager","white-collar"],unicode:"\u{1F9D1}\u200D\u{1F4BC}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F4BC",label:"office worker: light skin tone",order:1189,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F4BC}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F4BC",label:"office worker: medium-light skin tone",order:1190,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F4BC}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F4BC",label:"office worker: medium skin tone",order:1191,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F4BC}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F4BC",label:"office worker: medium-dark skin tone",order:1192,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F4BC}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F4BC",label:"office worker: dark skin tone",order:1193,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F4BC}"}]},{group:1,hexcode:"1F468-200D-1F4BC",label:"man office worker",order:1194,tags:["architect","business","man","manager","white-collar"],unicode:"\u{1F468}\u200D\u{1F4BC}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F4BC",label:"man office worker: light skin tone",order:1195,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F4BC}"},{group:1,hexcode:"1F468-1F3FC-200D-1F4BC",label:"man office worker: medium-light skin tone",order:1196,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F4BC}"},{group:1,hexcode:"1F468-1F3FD-200D-1F4BC",label:"man office worker: medium skin tone",order:1197,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F4BC}"},{group:1,hexcode:"1F468-1F3FE-200D-1F4BC",label:"man office worker: medium-dark skin tone",order:1198,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F4BC}"},{group:1,hexcode:"1F468-1F3FF-200D-1F4BC",label:"man office worker: dark skin tone",order:1199,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F4BC}"}]},{group:1,hexcode:"1F469-200D-1F4BC",label:"woman office worker",order:1200,tags:["architect","business","manager","white-collar","woman"],unicode:"\u{1F469}\u200D\u{1F4BC}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F4BC",label:"woman office worker: light skin tone",order:1201,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F4BC}"},{group:1,hexcode:"1F469-1F3FC-200D-1F4BC",label:"woman office worker: medium-light skin tone",order:1202,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F4BC}"},{group:1,hexcode:"1F469-1F3FD-200D-1F4BC",label:"woman office worker: medium skin tone",order:1203,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F4BC}"},{group:1,hexcode:"1F469-1F3FE-200D-1F4BC",label:"woman office worker: medium-dark skin tone",order:1204,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F4BC}"},{group:1,hexcode:"1F469-1F3FF-200D-1F4BC",label:"woman office worker: dark skin tone",order:1205,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F4BC}"}]},{group:1,hexcode:"1F9D1-200D-1F52C",label:"scientist",order:1206,tags:["biologist","chemist","engineer","physicist"],unicode:"\u{1F9D1}\u200D\u{1F52C}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F52C",label:"scientist: light skin tone",order:1207,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F52C}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F52C",label:"scientist: medium-light skin tone",order:1208,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F52C}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F52C",label:"scientist: medium skin tone",order:1209,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F52C}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F52C",label:"scientist: medium-dark skin tone",order:1210,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F52C}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F52C",label:"scientist: dark skin tone",order:1211,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F52C}"}]},{group:1,hexcode:"1F468-200D-1F52C",label:"man scientist",order:1212,tags:["biologist","chemist","engineer","man","physicist","scientist"],unicode:"\u{1F468}\u200D\u{1F52C}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F52C",label:"man scientist: light skin tone",order:1213,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F52C}"},{group:1,hexcode:"1F468-1F3FC-200D-1F52C",label:"man scientist: medium-light skin tone",order:1214,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F52C}"},{group:1,hexcode:"1F468-1F3FD-200D-1F52C",label:"man scientist: medium skin tone",order:1215,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F52C}"},{group:1,hexcode:"1F468-1F3FE-200D-1F52C",label:"man scientist: medium-dark skin tone",order:1216,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F52C}"},{group:1,hexcode:"1F468-1F3FF-200D-1F52C",label:"man scientist: dark skin tone",order:1217,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F52C}"}]},{group:1,hexcode:"1F469-200D-1F52C",label:"woman scientist",order:1218,tags:["biologist","chemist","engineer","physicist","scientist","woman"],unicode:"\u{1F469}\u200D\u{1F52C}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F52C",label:"woman scientist: light skin tone",order:1219,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F52C}"},{group:1,hexcode:"1F469-1F3FC-200D-1F52C",label:"woman scientist: medium-light skin tone",order:1220,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F52C}"},{group:1,hexcode:"1F469-1F3FD-200D-1F52C",label:"woman scientist: medium skin tone",order:1221,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F52C}"},{group:1,hexcode:"1F469-1F3FE-200D-1F52C",label:"woman scientist: medium-dark skin tone",order:1222,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F52C}"},{group:1,hexcode:"1F469-1F3FF-200D-1F52C",label:"woman scientist: dark skin tone",order:1223,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F52C}"}]},{group:1,hexcode:"1F9D1-200D-1F4BB",label:"technologist",order:1224,tags:["coder","developer","inventor","software"],unicode:"\u{1F9D1}\u200D\u{1F4BB}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F4BB",label:"technologist: light skin tone",order:1225,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F4BB}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F4BB",label:"technologist: medium-light skin tone",order:1226,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F4BB}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F4BB",label:"technologist: medium skin tone",order:1227,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F4BB}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F4BB",label:"technologist: medium-dark skin tone",order:1228,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F4BB}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F4BB",label:"technologist: dark skin tone",order:1229,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F4BB}"}]},{group:1,hexcode:"1F468-200D-1F4BB",label:"man technologist",order:1230,tags:["coder","developer","inventor","man","software","technologist"],unicode:"\u{1F468}\u200D\u{1F4BB}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F4BB",label:"man technologist: light skin tone",order:1231,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F4BB}"},{group:1,hexcode:"1F468-1F3FC-200D-1F4BB",label:"man technologist: medium-light skin tone",order:1232,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F4BB}"},{group:1,hexcode:"1F468-1F3FD-200D-1F4BB",label:"man technologist: medium skin tone",order:1233,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F4BB}"},{group:1,hexcode:"1F468-1F3FE-200D-1F4BB",label:"man technologist: medium-dark skin tone",order:1234,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F4BB}"},{group:1,hexcode:"1F468-1F3FF-200D-1F4BB",label:"man technologist: dark skin tone",order:1235,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F4BB}"}]},{group:1,hexcode:"1F469-200D-1F4BB",label:"woman technologist",order:1236,tags:["coder","developer","inventor","software","technologist","woman"],unicode:"\u{1F469}\u200D\u{1F4BB}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F4BB",label:"woman technologist: light skin tone",order:1237,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F4BB}"},{group:1,hexcode:"1F469-1F3FC-200D-1F4BB",label:"woman technologist: medium-light skin tone",order:1238,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F4BB}"},{group:1,hexcode:"1F469-1F3FD-200D-1F4BB",label:"woman technologist: medium skin tone",order:1239,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F4BB}"},{group:1,hexcode:"1F469-1F3FE-200D-1F4BB",label:"woman technologist: medium-dark skin tone",order:1240,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F4BB}"},{group:1,hexcode:"1F469-1F3FF-200D-1F4BB",label:"woman technologist: dark skin tone",order:1241,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F4BB}"}]},{group:1,hexcode:"1F9D1-200D-1F3A4",label:"singer",order:1242,tags:["actor","entertainer","rock","star"],unicode:"\u{1F9D1}\u200D\u{1F3A4}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F3A4",label:"singer: light skin tone",order:1243,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F3A4}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F3A4",label:"singer: medium-light skin tone",order:1244,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F3A4}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F3A4",label:"singer: medium skin tone",order:1245,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F3A4}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F3A4",label:"singer: medium-dark skin tone",order:1246,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F3A4}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F3A4",label:"singer: dark skin tone",order:1247,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F3A4}"}]},{group:1,hexcode:"1F468-200D-1F3A4",label:"man singer",order:1248,tags:["actor","entertainer","man","rock","singer","star"],unicode:"\u{1F468}\u200D\u{1F3A4}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F3A4",label:"man singer: light skin tone",order:1249,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F3A4}"},{group:1,hexcode:"1F468-1F3FC-200D-1F3A4",label:"man singer: medium-light skin tone",order:1250,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F3A4}"},{group:1,hexcode:"1F468-1F3FD-200D-1F3A4",label:"man singer: medium skin tone",order:1251,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F3A4}"},{group:1,hexcode:"1F468-1F3FE-200D-1F3A4",label:"man singer: medium-dark skin tone",order:1252,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F3A4}"},{group:1,hexcode:"1F468-1F3FF-200D-1F3A4",label:"man singer: dark skin tone",order:1253,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F3A4}"}]},{group:1,hexcode:"1F469-200D-1F3A4",label:"woman singer",order:1254,tags:["actor","entertainer","rock","singer","star","woman"],unicode:"\u{1F469}\u200D\u{1F3A4}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F3A4",label:"woman singer: light skin tone",order:1255,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F3A4}"},{group:1,hexcode:"1F469-1F3FC-200D-1F3A4",label:"woman singer: medium-light skin tone",order:1256,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F3A4}"},{group:1,hexcode:"1F469-1F3FD-200D-1F3A4",label:"woman singer: medium skin tone",order:1257,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F3A4}"},{group:1,hexcode:"1F469-1F3FE-200D-1F3A4",label:"woman singer: medium-dark skin tone",order:1258,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F3A4}"},{group:1,hexcode:"1F469-1F3FF-200D-1F3A4",label:"woman singer: dark skin tone",order:1259,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F3A4}"}]},{group:1,hexcode:"1F9D1-200D-1F3A8",label:"artist",order:1260,tags:["palette"],unicode:"\u{1F9D1}\u200D\u{1F3A8}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F3A8",label:"artist: light skin tone",order:1261,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F3A8}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F3A8",label:"artist: medium-light skin tone",order:1262,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F3A8}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F3A8",label:"artist: medium skin tone",order:1263,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F3A8}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F3A8",label:"artist: medium-dark skin tone",order:1264,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F3A8}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F3A8",label:"artist: dark skin tone",order:1265,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F3A8}"}]},{group:1,hexcode:"1F468-200D-1F3A8",label:"man artist",order:1266,tags:["artist","man","palette"],unicode:"\u{1F468}\u200D\u{1F3A8}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F3A8",label:"man artist: light skin tone",order:1267,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F3A8}"},{group:1,hexcode:"1F468-1F3FC-200D-1F3A8",label:"man artist: medium-light skin tone",order:1268,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F3A8}"},{group:1,hexcode:"1F468-1F3FD-200D-1F3A8",label:"man artist: medium skin tone",order:1269,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F3A8}"},{group:1,hexcode:"1F468-1F3FE-200D-1F3A8",label:"man artist: medium-dark skin tone",order:1270,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F3A8}"},{group:1,hexcode:"1F468-1F3FF-200D-1F3A8",label:"man artist: dark skin tone",order:1271,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F3A8}"}]},{group:1,hexcode:"1F469-200D-1F3A8",label:"woman artist",order:1272,tags:["artist","palette","woman"],unicode:"\u{1F469}\u200D\u{1F3A8}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F3A8",label:"woman artist: light skin tone",order:1273,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F3A8}"},{group:1,hexcode:"1F469-1F3FC-200D-1F3A8",label:"woman artist: medium-light skin tone",order:1274,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F3A8}"},{group:1,hexcode:"1F469-1F3FD-200D-1F3A8",label:"woman artist: medium skin tone",order:1275,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F3A8}"},{group:1,hexcode:"1F469-1F3FE-200D-1F3A8",label:"woman artist: medium-dark skin tone",order:1276,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F3A8}"},{group:1,hexcode:"1F469-1F3FF-200D-1F3A8",label:"woman artist: dark skin tone",order:1277,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F3A8}"}]},{group:1,hexcode:"1F9D1-200D-2708-FE0F",label:"pilot",order:1278,tags:["plane"],unicode:"\u{1F9D1}\u200D\u2708\uFE0F",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-2708-FE0F",label:"pilot: light skin tone",order:1280,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F9D1-1F3FC-200D-2708-FE0F",label:"pilot: medium-light skin tone",order:1282,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F9D1-1F3FD-200D-2708-FE0F",label:"pilot: medium skin tone",order:1284,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F9D1-1F3FE-200D-2708-FE0F",label:"pilot: medium-dark skin tone",order:1286,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F9D1-1F3FF-200D-2708-FE0F",label:"pilot: dark skin tone",order:1288,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u2708\uFE0F"}]},{group:1,hexcode:"1F468-200D-2708-FE0F",label:"man pilot",order:1290,tags:["man","pilot","plane"],unicode:"\u{1F468}\u200D\u2708\uFE0F",skins:[{group:1,hexcode:"1F468-1F3FB-200D-2708-FE0F",label:"man pilot: light skin tone",order:1292,unicode:"\u{1F468}\u{1F3FB}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F468-1F3FC-200D-2708-FE0F",label:"man pilot: medium-light skin tone",order:1294,unicode:"\u{1F468}\u{1F3FC}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F468-1F3FD-200D-2708-FE0F",label:"man pilot: medium skin tone",order:1296,unicode:"\u{1F468}\u{1F3FD}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F468-1F3FE-200D-2708-FE0F",label:"man pilot: medium-dark skin tone",order:1298,unicode:"\u{1F468}\u{1F3FE}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F468-1F3FF-200D-2708-FE0F",label:"man pilot: dark skin tone",order:1300,unicode:"\u{1F468}\u{1F3FF}\u200D\u2708\uFE0F"}]},{group:1,hexcode:"1F469-200D-2708-FE0F",label:"woman pilot",order:1302,tags:["pilot","plane","woman"],unicode:"\u{1F469}\u200D\u2708\uFE0F",skins:[{group:1,hexcode:"1F469-1F3FB-200D-2708-FE0F",label:"woman pilot: light skin tone",order:1304,unicode:"\u{1F469}\u{1F3FB}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F469-1F3FC-200D-2708-FE0F",label:"woman pilot: medium-light skin tone",order:1306,unicode:"\u{1F469}\u{1F3FC}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F469-1F3FD-200D-2708-FE0F",label:"woman pilot: medium skin tone",order:1308,unicode:"\u{1F469}\u{1F3FD}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F469-1F3FE-200D-2708-FE0F",label:"woman pilot: medium-dark skin tone",order:1310,unicode:"\u{1F469}\u{1F3FE}\u200D\u2708\uFE0F"},{group:1,hexcode:"1F469-1F3FF-200D-2708-FE0F",label:"woman pilot: dark skin tone",order:1312,unicode:"\u{1F469}\u{1F3FF}\u200D\u2708\uFE0F"}]},{group:1,hexcode:"1F9D1-200D-1F680",label:"astronaut",order:1314,tags:["rocket"],unicode:"\u{1F9D1}\u200D\u{1F680}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F680",label:"astronaut: light skin tone",order:1315,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F680}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F680",label:"astronaut: medium-light skin tone",order:1316,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F680}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F680",label:"astronaut: medium skin tone",order:1317,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F680}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F680",label:"astronaut: medium-dark skin tone",order:1318,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F680}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F680",label:"astronaut: dark skin tone",order:1319,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F680}"}]},{group:1,hexcode:"1F468-200D-1F680",label:"man astronaut",order:1320,tags:["astronaut","man","rocket"],unicode:"\u{1F468}\u200D\u{1F680}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F680",label:"man astronaut: light skin tone",order:1321,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F680}"},{group:1,hexcode:"1F468-1F3FC-200D-1F680",label:"man astronaut: medium-light skin tone",order:1322,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F680}"},{group:1,hexcode:"1F468-1F3FD-200D-1F680",label:"man astronaut: medium skin tone",order:1323,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F680}"},{group:1,hexcode:"1F468-1F3FE-200D-1F680",label:"man astronaut: medium-dark skin tone",order:1324,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F680}"},{group:1,hexcode:"1F468-1F3FF-200D-1F680",label:"man astronaut: dark skin tone",order:1325,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F680}"}]},{group:1,hexcode:"1F469-200D-1F680",label:"woman astronaut",order:1326,tags:["astronaut","rocket","woman"],unicode:"\u{1F469}\u200D\u{1F680}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F680",label:"woman astronaut: light skin tone",order:1327,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F680}"},{group:1,hexcode:"1F469-1F3FC-200D-1F680",label:"woman astronaut: medium-light skin tone",order:1328,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F680}"},{group:1,hexcode:"1F469-1F3FD-200D-1F680",label:"woman astronaut: medium skin tone",order:1329,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F680}"},{group:1,hexcode:"1F469-1F3FE-200D-1F680",label:"woman astronaut: medium-dark skin tone",order:1330,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F680}"},{group:1,hexcode:"1F469-1F3FF-200D-1F680",label:"woman astronaut: dark skin tone",order:1331,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F680}"}]},{group:1,hexcode:"1F9D1-200D-1F692",label:"firefighter",order:1332,tags:["fire","firetruck"],unicode:"\u{1F9D1}\u200D\u{1F692}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F692",label:"firefighter: light skin tone",order:1333,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F692}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F692",label:"firefighter: medium-light skin tone",order:1334,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F692}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F692",label:"firefighter: medium skin tone",order:1335,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F692}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F692",label:"firefighter: medium-dark skin tone",order:1336,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F692}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F692",label:"firefighter: dark skin tone",order:1337,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F692}"}]},{group:1,hexcode:"1F468-200D-1F692",label:"man firefighter",order:1338,tags:["firefighter","firetruck","man"],unicode:"\u{1F468}\u200D\u{1F692}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F692",label:"man firefighter: light skin tone",order:1339,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F692}"},{group:1,hexcode:"1F468-1F3FC-200D-1F692",label:"man firefighter: medium-light skin tone",order:1340,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F692}"},{group:1,hexcode:"1F468-1F3FD-200D-1F692",label:"man firefighter: medium skin tone",order:1341,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F692}"},{group:1,hexcode:"1F468-1F3FE-200D-1F692",label:"man firefighter: medium-dark skin tone",order:1342,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F692}"},{group:1,hexcode:"1F468-1F3FF-200D-1F692",label:"man firefighter: dark skin tone",order:1343,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F692}"}]},{group:1,hexcode:"1F469-200D-1F692",label:"woman firefighter",order:1344,tags:["firefighter","firetruck","woman"],unicode:"\u{1F469}\u200D\u{1F692}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F692",label:"woman firefighter: light skin tone",order:1345,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F692}"},{group:1,hexcode:"1F469-1F3FC-200D-1F692",label:"woman firefighter: medium-light skin tone",order:1346,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F692}"},{group:1,hexcode:"1F469-1F3FD-200D-1F692",label:"woman firefighter: medium skin tone",order:1347,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F692}"},{group:1,hexcode:"1F469-1F3FE-200D-1F692",label:"woman firefighter: medium-dark skin tone",order:1348,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F692}"},{group:1,hexcode:"1F469-1F3FF-200D-1F692",label:"woman firefighter: dark skin tone",order:1349,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F692}"}]},{group:1,hexcode:"1F46E",label:"police officer",order:1350,tags:["cop","officer","police"],unicode:"\u{1F46E}",skins:[{group:1,hexcode:"1F46E-1F3FB",label:"police officer: light skin tone",order:1351,unicode:"\u{1F46E}\u{1F3FB}"},{group:1,hexcode:"1F46E-1F3FC",label:"police officer: medium-light skin tone",order:1352,unicode:"\u{1F46E}\u{1F3FC}"},{group:1,hexcode:"1F46E-1F3FD",label:"police officer: medium skin tone",order:1353,unicode:"\u{1F46E}\u{1F3FD}"},{group:1,hexcode:"1F46E-1F3FE",label:"police officer: medium-dark skin tone",order:1354,unicode:"\u{1F46E}\u{1F3FE}"},{group:1,hexcode:"1F46E-1F3FF",label:"police officer: dark skin tone",order:1355,unicode:"\u{1F46E}\u{1F3FF}"}]},{group:1,hexcode:"1F46E-200D-2642-FE0F",label:"man police officer",order:1356,tags:["cop","man","officer","police"],unicode:"\u{1F46E}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F46E-1F3FB-200D-2642-FE0F",label:"man police officer: light skin tone",order:1358,unicode:"\u{1F46E}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F46E-1F3FC-200D-2642-FE0F",label:"man police officer: medium-light skin tone",order:1360,unicode:"\u{1F46E}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F46E-1F3FD-200D-2642-FE0F",label:"man police officer: medium skin tone",order:1362,unicode:"\u{1F46E}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F46E-1F3FE-200D-2642-FE0F",label:"man police officer: medium-dark skin tone",order:1364,unicode:"\u{1F46E}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F46E-1F3FF-200D-2642-FE0F",label:"man police officer: dark skin tone",order:1366,unicode:"\u{1F46E}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F46E-200D-2640-FE0F",label:"woman police officer",order:1368,tags:["cop","officer","police","woman"],unicode:"\u{1F46E}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F46E-1F3FB-200D-2640-FE0F",label:"woman police officer: light skin tone",order:1370,unicode:"\u{1F46E}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F46E-1F3FC-200D-2640-FE0F",label:"woman police officer: medium-light skin tone",order:1372,unicode:"\u{1F46E}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F46E-1F3FD-200D-2640-FE0F",label:"woman police officer: medium skin tone",order:1374,unicode:"\u{1F46E}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F46E-1F3FE-200D-2640-FE0F",label:"woman police officer: medium-dark skin tone",order:1376,unicode:"\u{1F46E}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F46E-1F3FF-200D-2640-FE0F",label:"woman police officer: dark skin tone",order:1378,unicode:"\u{1F46E}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F575",label:"detective",order:1381,tags:["sleuth","spy"],unicode:"\u{1F575}\uFE0F",skins:[{group:1,hexcode:"1F575-1F3FB",label:"detective: light skin tone",order:1382,unicode:"\u{1F575}\u{1F3FB}"},{group:1,hexcode:"1F575-1F3FC",label:"detective: medium-light skin tone",order:1383,unicode:"\u{1F575}\u{1F3FC}"},{group:1,hexcode:"1F575-1F3FD",label:"detective: medium skin tone",order:1384,unicode:"\u{1F575}\u{1F3FD}"},{group:1,hexcode:"1F575-1F3FE",label:"detective: medium-dark skin tone",order:1385,unicode:"\u{1F575}\u{1F3FE}"},{group:1,hexcode:"1F575-1F3FF",label:"detective: dark skin tone",order:1386,unicode:"\u{1F575}\u{1F3FF}"}]},{group:1,hexcode:"1F575-FE0F-200D-2642-FE0F",label:"man detective",order:1387,tags:["detective","man","sleuth","spy"],unicode:"\u{1F575}\uFE0F\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F575-1F3FB-200D-2642-FE0F",label:"man detective: light skin tone",order:1391,unicode:"\u{1F575}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F575-1F3FC-200D-2642-FE0F",label:"man detective: medium-light skin tone",order:1393,unicode:"\u{1F575}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F575-1F3FD-200D-2642-FE0F",label:"man detective: medium skin tone",order:1395,unicode:"\u{1F575}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F575-1F3FE-200D-2642-FE0F",label:"man detective: medium-dark skin tone",order:1397,unicode:"\u{1F575}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F575-1F3FF-200D-2642-FE0F",label:"man detective: dark skin tone",order:1399,unicode:"\u{1F575}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F575-FE0F-200D-2640-FE0F",label:"woman detective",order:1401,tags:["detective","sleuth","spy","woman"],unicode:"\u{1F575}\uFE0F\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F575-1F3FB-200D-2640-FE0F",label:"woman detective: light skin tone",order:1405,unicode:"\u{1F575}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F575-1F3FC-200D-2640-FE0F",label:"woman detective: medium-light skin tone",order:1407,unicode:"\u{1F575}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F575-1F3FD-200D-2640-FE0F",label:"woman detective: medium skin tone",order:1409,unicode:"\u{1F575}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F575-1F3FE-200D-2640-FE0F",label:"woman detective: medium-dark skin tone",order:1411,unicode:"\u{1F575}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F575-1F3FF-200D-2640-FE0F",label:"woman detective: dark skin tone",order:1413,unicode:"\u{1F575}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F482",label:"guard",order:1415,tags:["guard"],unicode:"\u{1F482}",skins:[{group:1,hexcode:"1F482-1F3FB",label:"guard: light skin tone",order:1416,unicode:"\u{1F482}\u{1F3FB}"},{group:1,hexcode:"1F482-1F3FC",label:"guard: medium-light skin tone",order:1417,unicode:"\u{1F482}\u{1F3FC}"},{group:1,hexcode:"1F482-1F3FD",label:"guard: medium skin tone",order:1418,unicode:"\u{1F482}\u{1F3FD}"},{group:1,hexcode:"1F482-1F3FE",label:"guard: medium-dark skin tone",order:1419,unicode:"\u{1F482}\u{1F3FE}"},{group:1,hexcode:"1F482-1F3FF",label:"guard: dark skin tone",order:1420,unicode:"\u{1F482}\u{1F3FF}"}]},{group:1,hexcode:"1F482-200D-2642-FE0F",label:"man guard",order:1421,tags:["guard","man"],unicode:"\u{1F482}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F482-1F3FB-200D-2642-FE0F",label:"man guard: light skin tone",order:1423,unicode:"\u{1F482}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F482-1F3FC-200D-2642-FE0F",label:"man guard: medium-light skin tone",order:1425,unicode:"\u{1F482}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F482-1F3FD-200D-2642-FE0F",label:"man guard: medium skin tone",order:1427,unicode:"\u{1F482}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F482-1F3FE-200D-2642-FE0F",label:"man guard: medium-dark skin tone",order:1429,unicode:"\u{1F482}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F482-1F3FF-200D-2642-FE0F",label:"man guard: dark skin tone",order:1431,unicode:"\u{1F482}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F482-200D-2640-FE0F",label:"woman guard",order:1433,tags:["guard","woman"],unicode:"\u{1F482}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F482-1F3FB-200D-2640-FE0F",label:"woman guard: light skin tone",order:1435,unicode:"\u{1F482}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F482-1F3FC-200D-2640-FE0F",label:"woman guard: medium-light skin tone",order:1437,unicode:"\u{1F482}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F482-1F3FD-200D-2640-FE0F",label:"woman guard: medium skin tone",order:1439,unicode:"\u{1F482}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F482-1F3FE-200D-2640-FE0F",label:"woman guard: medium-dark skin tone",order:1441,unicode:"\u{1F482}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F482-1F3FF-200D-2640-FE0F",label:"woman guard: dark skin tone",order:1443,unicode:"\u{1F482}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F977",label:"ninja",order:1445,tags:["fighter","hidden","stealth"],unicode:"\u{1F977}",skins:[{group:1,hexcode:"1F977-1F3FB",label:"ninja: light skin tone",order:1446,unicode:"\u{1F977}\u{1F3FB}"},{group:1,hexcode:"1F977-1F3FC",label:"ninja: medium-light skin tone",order:1447,unicode:"\u{1F977}\u{1F3FC}"},{group:1,hexcode:"1F977-1F3FD",label:"ninja: medium skin tone",order:1448,unicode:"\u{1F977}\u{1F3FD}"},{group:1,hexcode:"1F977-1F3FE",label:"ninja: medium-dark skin tone",order:1449,unicode:"\u{1F977}\u{1F3FE}"},{group:1,hexcode:"1F977-1F3FF",label:"ninja: dark skin tone",order:1450,unicode:"\u{1F977}\u{1F3FF}"}]},{group:1,hexcode:"1F477",label:"construction worker",order:1451,tags:["construction","hat","worker"],unicode:"\u{1F477}",skins:[{group:1,hexcode:"1F477-1F3FB",label:"construction worker: light skin tone",order:1452,unicode:"\u{1F477}\u{1F3FB}"},{group:1,hexcode:"1F477-1F3FC",label:"construction worker: medium-light skin tone",order:1453,unicode:"\u{1F477}\u{1F3FC}"},{group:1,hexcode:"1F477-1F3FD",label:"construction worker: medium skin tone",order:1454,unicode:"\u{1F477}\u{1F3FD}"},{group:1,hexcode:"1F477-1F3FE",label:"construction worker: medium-dark skin tone",order:1455,unicode:"\u{1F477}\u{1F3FE}"},{group:1,hexcode:"1F477-1F3FF",label:"construction worker: dark skin tone",order:1456,unicode:"\u{1F477}\u{1F3FF}"}]},{group:1,hexcode:"1F477-200D-2642-FE0F",label:"man construction worker",order:1457,tags:["construction","man","worker"],unicode:"\u{1F477}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F477-1F3FB-200D-2642-FE0F",label:"man construction worker: light skin tone",order:1459,unicode:"\u{1F477}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F477-1F3FC-200D-2642-FE0F",label:"man construction worker: medium-light skin tone",order:1461,unicode:"\u{1F477}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F477-1F3FD-200D-2642-FE0F",label:"man construction worker: medium skin tone",order:1463,unicode:"\u{1F477}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F477-1F3FE-200D-2642-FE0F",label:"man construction worker: medium-dark skin tone",order:1465,unicode:"\u{1F477}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F477-1F3FF-200D-2642-FE0F",label:"man construction worker: dark skin tone",order:1467,unicode:"\u{1F477}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F477-200D-2640-FE0F",label:"woman construction worker",order:1469,tags:["construction","woman","worker"],unicode:"\u{1F477}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F477-1F3FB-200D-2640-FE0F",label:"woman construction worker: light skin tone",order:1471,unicode:"\u{1F477}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F477-1F3FC-200D-2640-FE0F",label:"woman construction worker: medium-light skin tone",order:1473,unicode:"\u{1F477}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F477-1F3FD-200D-2640-FE0F",label:"woman construction worker: medium skin tone",order:1475,unicode:"\u{1F477}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F477-1F3FE-200D-2640-FE0F",label:"woman construction worker: medium-dark skin tone",order:1477,unicode:"\u{1F477}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F477-1F3FF-200D-2640-FE0F",label:"woman construction worker: dark skin tone",order:1479,unicode:"\u{1F477}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1FAC5",label:"person with crown",order:1481,tags:["monarch","noble","regal","royalty"],unicode:"\u{1FAC5}",skins:[{group:1,hexcode:"1FAC5-1F3FB",label:"person with crown: light skin tone",order:1482,unicode:"\u{1FAC5}\u{1F3FB}"},{group:1,hexcode:"1FAC5-1F3FC",label:"person with crown: medium-light skin tone",order:1483,unicode:"\u{1FAC5}\u{1F3FC}"},{group:1,hexcode:"1FAC5-1F3FD",label:"person with crown: medium skin tone",order:1484,unicode:"\u{1FAC5}\u{1F3FD}"},{group:1,hexcode:"1FAC5-1F3FE",label:"person with crown: medium-dark skin tone",order:1485,unicode:"\u{1FAC5}\u{1F3FE}"},{group:1,hexcode:"1FAC5-1F3FF",label:"person with crown: dark skin tone",order:1486,unicode:"\u{1FAC5}\u{1F3FF}"}]},{group:1,hexcode:"1F934",label:"prince",order:1487,tags:["prince"],unicode:"\u{1F934}",skins:[{group:1,hexcode:"1F934-1F3FB",label:"prince: light skin tone",order:1488,unicode:"\u{1F934}\u{1F3FB}"},{group:1,hexcode:"1F934-1F3FC",label:"prince: medium-light skin tone",order:1489,unicode:"\u{1F934}\u{1F3FC}"},{group:1,hexcode:"1F934-1F3FD",label:"prince: medium skin tone",order:1490,unicode:"\u{1F934}\u{1F3FD}"},{group:1,hexcode:"1F934-1F3FE",label:"prince: medium-dark skin tone",order:1491,unicode:"\u{1F934}\u{1F3FE}"},{group:1,hexcode:"1F934-1F3FF",label:"prince: dark skin tone",order:1492,unicode:"\u{1F934}\u{1F3FF}"}]},{group:1,hexcode:"1F478",label:"princess",order:1493,tags:["fairy tale","fantasy"],unicode:"\u{1F478}",skins:[{group:1,hexcode:"1F478-1F3FB",label:"princess: light skin tone",order:1494,unicode:"\u{1F478}\u{1F3FB}"},{group:1,hexcode:"1F478-1F3FC",label:"princess: medium-light skin tone",order:1495,unicode:"\u{1F478}\u{1F3FC}"},{group:1,hexcode:"1F478-1F3FD",label:"princess: medium skin tone",order:1496,unicode:"\u{1F478}\u{1F3FD}"},{group:1,hexcode:"1F478-1F3FE",label:"princess: medium-dark skin tone",order:1497,unicode:"\u{1F478}\u{1F3FE}"},{group:1,hexcode:"1F478-1F3FF",label:"princess: dark skin tone",order:1498,unicode:"\u{1F478}\u{1F3FF}"}]},{group:1,hexcode:"1F473",label:"person wearing turban",order:1499,tags:["turban"],unicode:"\u{1F473}",skins:[{group:1,hexcode:"1F473-1F3FB",label:"person wearing turban: light skin tone",order:1500,unicode:"\u{1F473}\u{1F3FB}"},{group:1,hexcode:"1F473-1F3FC",label:"person wearing turban: medium-light skin tone",order:1501,unicode:"\u{1F473}\u{1F3FC}"},{group:1,hexcode:"1F473-1F3FD",label:"person wearing turban: medium skin tone",order:1502,unicode:"\u{1F473}\u{1F3FD}"},{group:1,hexcode:"1F473-1F3FE",label:"person wearing turban: medium-dark skin tone",order:1503,unicode:"\u{1F473}\u{1F3FE}"},{group:1,hexcode:"1F473-1F3FF",label:"person wearing turban: dark skin tone",order:1504,unicode:"\u{1F473}\u{1F3FF}"}]},{group:1,hexcode:"1F473-200D-2642-FE0F",label:"man wearing turban",order:1505,tags:["man","turban"],unicode:"\u{1F473}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F473-1F3FB-200D-2642-FE0F",label:"man wearing turban: light skin tone",order:1507,unicode:"\u{1F473}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F473-1F3FC-200D-2642-FE0F",label:"man wearing turban: medium-light skin tone",order:1509,unicode:"\u{1F473}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F473-1F3FD-200D-2642-FE0F",label:"man wearing turban: medium skin tone",order:1511,unicode:"\u{1F473}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F473-1F3FE-200D-2642-FE0F",label:"man wearing turban: medium-dark skin tone",order:1513,unicode:"\u{1F473}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F473-1F3FF-200D-2642-FE0F",label:"man wearing turban: dark skin tone",order:1515,unicode:"\u{1F473}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F473-200D-2640-FE0F",label:"woman wearing turban",order:1517,tags:["turban","woman"],unicode:"\u{1F473}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F473-1F3FB-200D-2640-FE0F",label:"woman wearing turban: light skin tone",order:1519,unicode:"\u{1F473}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F473-1F3FC-200D-2640-FE0F",label:"woman wearing turban: medium-light skin tone",order:1521,unicode:"\u{1F473}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F473-1F3FD-200D-2640-FE0F",label:"woman wearing turban: medium skin tone",order:1523,unicode:"\u{1F473}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F473-1F3FE-200D-2640-FE0F",label:"woman wearing turban: medium-dark skin tone",order:1525,unicode:"\u{1F473}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F473-1F3FF-200D-2640-FE0F",label:"woman wearing turban: dark skin tone",order:1527,unicode:"\u{1F473}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F472",label:"person with skullcap",order:1529,tags:["cap","gua pi mao","hat","person","skullcap"],unicode:"\u{1F472}",skins:[{group:1,hexcode:"1F472-1F3FB",label:"person with skullcap: light skin tone",order:1530,unicode:"\u{1F472}\u{1F3FB}"},{group:1,hexcode:"1F472-1F3FC",label:"person with skullcap: medium-light skin tone",order:1531,unicode:"\u{1F472}\u{1F3FC}"},{group:1,hexcode:"1F472-1F3FD",label:"person with skullcap: medium skin tone",order:1532,unicode:"\u{1F472}\u{1F3FD}"},{group:1,hexcode:"1F472-1F3FE",label:"person with skullcap: medium-dark skin tone",order:1533,unicode:"\u{1F472}\u{1F3FE}"},{group:1,hexcode:"1F472-1F3FF",label:"person with skullcap: dark skin tone",order:1534,unicode:"\u{1F472}\u{1F3FF}"}]},{group:1,hexcode:"1F9D5",label:"woman with headscarf",order:1535,tags:["headscarf","hijab","mantilla","tichel"],unicode:"\u{1F9D5}",skins:[{group:1,hexcode:"1F9D5-1F3FB",label:"woman with headscarf: light skin tone",order:1536,unicode:"\u{1F9D5}\u{1F3FB}"},{group:1,hexcode:"1F9D5-1F3FC",label:"woman with headscarf: medium-light skin tone",order:1537,unicode:"\u{1F9D5}\u{1F3FC}"},{group:1,hexcode:"1F9D5-1F3FD",label:"woman with headscarf: medium skin tone",order:1538,unicode:"\u{1F9D5}\u{1F3FD}"},{group:1,hexcode:"1F9D5-1F3FE",label:"woman with headscarf: medium-dark skin tone",order:1539,unicode:"\u{1F9D5}\u{1F3FE}"},{group:1,hexcode:"1F9D5-1F3FF",label:"woman with headscarf: dark skin tone",order:1540,unicode:"\u{1F9D5}\u{1F3FF}"}]},{group:1,hexcode:"1F935",label:"person in tuxedo",order:1541,tags:["groom","person","tuxedo"],unicode:"\u{1F935}",skins:[{group:1,hexcode:"1F935-1F3FB",label:"person in tuxedo: light skin tone",order:1542,unicode:"\u{1F935}\u{1F3FB}"},{group:1,hexcode:"1F935-1F3FC",label:"person in tuxedo: medium-light skin tone",order:1543,unicode:"\u{1F935}\u{1F3FC}"},{group:1,hexcode:"1F935-1F3FD",label:"person in tuxedo: medium skin tone",order:1544,unicode:"\u{1F935}\u{1F3FD}"},{group:1,hexcode:"1F935-1F3FE",label:"person in tuxedo: medium-dark skin tone",order:1545,unicode:"\u{1F935}\u{1F3FE}"},{group:1,hexcode:"1F935-1F3FF",label:"person in tuxedo: dark skin tone",order:1546,unicode:"\u{1F935}\u{1F3FF}"}]},{group:1,hexcode:"1F935-200D-2642-FE0F",label:"man in tuxedo",order:1547,tags:["man","tuxedo"],unicode:"\u{1F935}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F935-1F3FB-200D-2642-FE0F",label:"man in tuxedo: light skin tone",order:1549,unicode:"\u{1F935}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F935-1F3FC-200D-2642-FE0F",label:"man in tuxedo: medium-light skin tone",order:1551,unicode:"\u{1F935}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F935-1F3FD-200D-2642-FE0F",label:"man in tuxedo: medium skin tone",order:1553,unicode:"\u{1F935}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F935-1F3FE-200D-2642-FE0F",label:"man in tuxedo: medium-dark skin tone",order:1555,unicode:"\u{1F935}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F935-1F3FF-200D-2642-FE0F",label:"man in tuxedo: dark skin tone",order:1557,unicode:"\u{1F935}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F935-200D-2640-FE0F",label:"woman in tuxedo",order:1559,tags:["tuxedo","woman"],unicode:"\u{1F935}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F935-1F3FB-200D-2640-FE0F",label:"woman in tuxedo: light skin tone",order:1561,unicode:"\u{1F935}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F935-1F3FC-200D-2640-FE0F",label:"woman in tuxedo: medium-light skin tone",order:1563,unicode:"\u{1F935}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F935-1F3FD-200D-2640-FE0F",label:"woman in tuxedo: medium skin tone",order:1565,unicode:"\u{1F935}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F935-1F3FE-200D-2640-FE0F",label:"woman in tuxedo: medium-dark skin tone",order:1567,unicode:"\u{1F935}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F935-1F3FF-200D-2640-FE0F",label:"woman in tuxedo: dark skin tone",order:1569,unicode:"\u{1F935}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F470",label:"person with veil",order:1571,tags:["bride","person","veil","wedding"],unicode:"\u{1F470}",skins:[{group:1,hexcode:"1F470-1F3FB",label:"person with veil: light skin tone",order:1572,unicode:"\u{1F470}\u{1F3FB}"},{group:1,hexcode:"1F470-1F3FC",label:"person with veil: medium-light skin tone",order:1573,unicode:"\u{1F470}\u{1F3FC}"},{group:1,hexcode:"1F470-1F3FD",label:"person with veil: medium skin tone",order:1574,unicode:"\u{1F470}\u{1F3FD}"},{group:1,hexcode:"1F470-1F3FE",label:"person with veil: medium-dark skin tone",order:1575,unicode:"\u{1F470}\u{1F3FE}"},{group:1,hexcode:"1F470-1F3FF",label:"person with veil: dark skin tone",order:1576,unicode:"\u{1F470}\u{1F3FF}"}]},{group:1,hexcode:"1F470-200D-2642-FE0F",label:"man with veil",order:1577,tags:["man","veil"],unicode:"\u{1F470}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F470-1F3FB-200D-2642-FE0F",label:"man with veil: light skin tone",order:1579,unicode:"\u{1F470}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F470-1F3FC-200D-2642-FE0F",label:"man with veil: medium-light skin tone",order:1581,unicode:"\u{1F470}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F470-1F3FD-200D-2642-FE0F",label:"man with veil: medium skin tone",order:1583,unicode:"\u{1F470}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F470-1F3FE-200D-2642-FE0F",label:"man with veil: medium-dark skin tone",order:1585,unicode:"\u{1F470}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F470-1F3FF-200D-2642-FE0F",label:"man with veil: dark skin tone",order:1587,unicode:"\u{1F470}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F470-200D-2640-FE0F",label:"woman with veil",order:1589,tags:["veil","woman"],unicode:"\u{1F470}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F470-1F3FB-200D-2640-FE0F",label:"woman with veil: light skin tone",order:1591,unicode:"\u{1F470}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F470-1F3FC-200D-2640-FE0F",label:"woman with veil: medium-light skin tone",order:1593,unicode:"\u{1F470}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F470-1F3FD-200D-2640-FE0F",label:"woman with veil: medium skin tone",order:1595,unicode:"\u{1F470}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F470-1F3FE-200D-2640-FE0F",label:"woman with veil: medium-dark skin tone",order:1597,unicode:"\u{1F470}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F470-1F3FF-200D-2640-FE0F",label:"woman with veil: dark skin tone",order:1599,unicode:"\u{1F470}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F930",label:"pregnant woman",order:1601,tags:["pregnant","woman"],unicode:"\u{1F930}",skins:[{group:1,hexcode:"1F930-1F3FB",label:"pregnant woman: light skin tone",order:1602,unicode:"\u{1F930}\u{1F3FB}"},{group:1,hexcode:"1F930-1F3FC",label:"pregnant woman: medium-light skin tone",order:1603,unicode:"\u{1F930}\u{1F3FC}"},{group:1,hexcode:"1F930-1F3FD",label:"pregnant woman: medium skin tone",order:1604,unicode:"\u{1F930}\u{1F3FD}"},{group:1,hexcode:"1F930-1F3FE",label:"pregnant woman: medium-dark skin tone",order:1605,unicode:"\u{1F930}\u{1F3FE}"},{group:1,hexcode:"1F930-1F3FF",label:"pregnant woman: dark skin tone",order:1606,unicode:"\u{1F930}\u{1F3FF}"}]},{group:1,hexcode:"1FAC3",label:"pregnant man",order:1607,tags:["belly","bloated","full","pregnant"],unicode:"\u{1FAC3}",skins:[{group:1,hexcode:"1FAC3-1F3FB",label:"pregnant man: light skin tone",order:1608,unicode:"\u{1FAC3}\u{1F3FB}"},{group:1,hexcode:"1FAC3-1F3FC",label:"pregnant man: medium-light skin tone",order:1609,unicode:"\u{1FAC3}\u{1F3FC}"},{group:1,hexcode:"1FAC3-1F3FD",label:"pregnant man: medium skin tone",order:1610,unicode:"\u{1FAC3}\u{1F3FD}"},{group:1,hexcode:"1FAC3-1F3FE",label:"pregnant man: medium-dark skin tone",order:1611,unicode:"\u{1FAC3}\u{1F3FE}"},{group:1,hexcode:"1FAC3-1F3FF",label:"pregnant man: dark skin tone",order:1612,unicode:"\u{1FAC3}\u{1F3FF}"}]},{group:1,hexcode:"1FAC4",label:"pregnant person",order:1613,tags:["belly","bloated","full","pregnant"],unicode:"\u{1FAC4}",skins:[{group:1,hexcode:"1FAC4-1F3FB",label:"pregnant person: light skin tone",order:1614,unicode:"\u{1FAC4}\u{1F3FB}"},{group:1,hexcode:"1FAC4-1F3FC",label:"pregnant person: medium-light skin tone",order:1615,unicode:"\u{1FAC4}\u{1F3FC}"},{group:1,hexcode:"1FAC4-1F3FD",label:"pregnant person: medium skin tone",order:1616,unicode:"\u{1FAC4}\u{1F3FD}"},{group:1,hexcode:"1FAC4-1F3FE",label:"pregnant person: medium-dark skin tone",order:1617,unicode:"\u{1FAC4}\u{1F3FE}"},{group:1,hexcode:"1FAC4-1F3FF",label:"pregnant person: dark skin tone",order:1618,unicode:"\u{1FAC4}\u{1F3FF}"}]},{group:1,hexcode:"1F931",label:"breast-feeding",order:1619,tags:["baby","breast","nursing"],unicode:"\u{1F931}",skins:[{group:1,hexcode:"1F931-1F3FB",label:"breast-feeding: light skin tone",order:1620,unicode:"\u{1F931}\u{1F3FB}"},{group:1,hexcode:"1F931-1F3FC",label:"breast-feeding: medium-light skin tone",order:1621,unicode:"\u{1F931}\u{1F3FC}"},{group:1,hexcode:"1F931-1F3FD",label:"breast-feeding: medium skin tone",order:1622,unicode:"\u{1F931}\u{1F3FD}"},{group:1,hexcode:"1F931-1F3FE",label:"breast-feeding: medium-dark skin tone",order:1623,unicode:"\u{1F931}\u{1F3FE}"},{group:1,hexcode:"1F931-1F3FF",label:"breast-feeding: dark skin tone",order:1624,unicode:"\u{1F931}\u{1F3FF}"}]},{group:1,hexcode:"1F469-200D-1F37C",label:"woman feeding baby",order:1625,tags:["baby","feeding","nursing","woman"],unicode:"\u{1F469}\u200D\u{1F37C}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F37C",label:"woman feeding baby: light skin tone",order:1626,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F37C}"},{group:1,hexcode:"1F469-1F3FC-200D-1F37C",label:"woman feeding baby: medium-light skin tone",order:1627,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F37C}"},{group:1,hexcode:"1F469-1F3FD-200D-1F37C",label:"woman feeding baby: medium skin tone",order:1628,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F37C}"},{group:1,hexcode:"1F469-1F3FE-200D-1F37C",label:"woman feeding baby: medium-dark skin tone",order:1629,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F37C}"},{group:1,hexcode:"1F469-1F3FF-200D-1F37C",label:"woman feeding baby: dark skin tone",order:1630,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F37C}"}]},{group:1,hexcode:"1F468-200D-1F37C",label:"man feeding baby",order:1631,tags:["baby","feeding","man","nursing"],unicode:"\u{1F468}\u200D\u{1F37C}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F37C",label:"man feeding baby: light skin tone",order:1632,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F37C}"},{group:1,hexcode:"1F468-1F3FC-200D-1F37C",label:"man feeding baby: medium-light skin tone",order:1633,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F37C}"},{group:1,hexcode:"1F468-1F3FD-200D-1F37C",label:"man feeding baby: medium skin tone",order:1634,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F37C}"},{group:1,hexcode:"1F468-1F3FE-200D-1F37C",label:"man feeding baby: medium-dark skin tone",order:1635,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F37C}"},{group:1,hexcode:"1F468-1F3FF-200D-1F37C",label:"man feeding baby: dark skin tone",order:1636,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F37C}"}]},{group:1,hexcode:"1F9D1-200D-1F37C",label:"person feeding baby",order:1637,tags:["baby","feeding","nursing","person"],unicode:"\u{1F9D1}\u200D\u{1F37C}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F37C",label:"person feeding baby: light skin tone",order:1638,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F37C}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F37C",label:"person feeding baby: medium-light skin tone",order:1639,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F37C}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F37C",label:"person feeding baby: medium skin tone",order:1640,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F37C}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F37C",label:"person feeding baby: medium-dark skin tone",order:1641,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F37C}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F37C",label:"person feeding baby: dark skin tone",order:1642,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F37C}"}]},{group:1,hexcode:"1F47C",label:"baby angel",order:1643,tags:["angel","baby","face","fairy tale","fantasy"],unicode:"\u{1F47C}",skins:[{group:1,hexcode:"1F47C-1F3FB",label:"baby angel: light skin tone",order:1644,unicode:"\u{1F47C}\u{1F3FB}"},{group:1,hexcode:"1F47C-1F3FC",label:"baby angel: medium-light skin tone",order:1645,unicode:"\u{1F47C}\u{1F3FC}"},{group:1,hexcode:"1F47C-1F3FD",label:"baby angel: medium skin tone",order:1646,unicode:"\u{1F47C}\u{1F3FD}"},{group:1,hexcode:"1F47C-1F3FE",label:"baby angel: medium-dark skin tone",order:1647,unicode:"\u{1F47C}\u{1F3FE}"},{group:1,hexcode:"1F47C-1F3FF",label:"baby angel: dark skin tone",order:1648,unicode:"\u{1F47C}\u{1F3FF}"}]},{group:1,hexcode:"1F385",label:"Santa Claus",order:1649,tags:["celebration","christmas","claus","father","santa"],unicode:"\u{1F385}",skins:[{group:1,hexcode:"1F385-1F3FB",label:"Santa Claus: light skin tone",order:1650,unicode:"\u{1F385}\u{1F3FB}"},{group:1,hexcode:"1F385-1F3FC",label:"Santa Claus: medium-light skin tone",order:1651,unicode:"\u{1F385}\u{1F3FC}"},{group:1,hexcode:"1F385-1F3FD",label:"Santa Claus: medium skin tone",order:1652,unicode:"\u{1F385}\u{1F3FD}"},{group:1,hexcode:"1F385-1F3FE",label:"Santa Claus: medium-dark skin tone",order:1653,unicode:"\u{1F385}\u{1F3FE}"},{group:1,hexcode:"1F385-1F3FF",label:"Santa Claus: dark skin tone",order:1654,unicode:"\u{1F385}\u{1F3FF}"}]},{group:1,hexcode:"1F936",label:"Mrs. Claus",order:1655,tags:["celebration","christmas","claus","mother","mrs."],unicode:"\u{1F936}",skins:[{group:1,hexcode:"1F936-1F3FB",label:"Mrs. Claus: light skin tone",order:1656,unicode:"\u{1F936}\u{1F3FB}"},{group:1,hexcode:"1F936-1F3FC",label:"Mrs. Claus: medium-light skin tone",order:1657,unicode:"\u{1F936}\u{1F3FC}"},{group:1,hexcode:"1F936-1F3FD",label:"Mrs. Claus: medium skin tone",order:1658,unicode:"\u{1F936}\u{1F3FD}"},{group:1,hexcode:"1F936-1F3FE",label:"Mrs. Claus: medium-dark skin tone",order:1659,unicode:"\u{1F936}\u{1F3FE}"},{group:1,hexcode:"1F936-1F3FF",label:"Mrs. Claus: dark skin tone",order:1660,unicode:"\u{1F936}\u{1F3FF}"}]},{group:1,hexcode:"1F9D1-200D-1F384",label:"mx claus",order:1661,tags:["christmas","claus"],unicode:"\u{1F9D1}\u200D\u{1F384}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F384",label:"mx claus: light skin tone",order:1662,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F384}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F384",label:"mx claus: medium-light skin tone",order:1663,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F384}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F384",label:"mx claus: medium skin tone",order:1664,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F384}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F384",label:"mx claus: medium-dark skin tone",order:1665,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F384}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F384",label:"mx claus: dark skin tone",order:1666,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F384}"}]},{group:1,hexcode:"1F9B8",label:"superhero",order:1667,tags:["good","hero","heroine","superpower"],unicode:"\u{1F9B8}",skins:[{group:1,hexcode:"1F9B8-1F3FB",label:"superhero: light skin tone",order:1668,unicode:"\u{1F9B8}\u{1F3FB}"},{group:1,hexcode:"1F9B8-1F3FC",label:"superhero: medium-light skin tone",order:1669,unicode:"\u{1F9B8}\u{1F3FC}"},{group:1,hexcode:"1F9B8-1F3FD",label:"superhero: medium skin tone",order:1670,unicode:"\u{1F9B8}\u{1F3FD}"},{group:1,hexcode:"1F9B8-1F3FE",label:"superhero: medium-dark skin tone",order:1671,unicode:"\u{1F9B8}\u{1F3FE}"},{group:1,hexcode:"1F9B8-1F3FF",label:"superhero: dark skin tone",order:1672,unicode:"\u{1F9B8}\u{1F3FF}"}]},{group:1,hexcode:"1F9B8-200D-2642-FE0F",label:"man superhero",order:1673,tags:["good","hero","man","superpower"],unicode:"\u{1F9B8}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9B8-1F3FB-200D-2642-FE0F",label:"man superhero: light skin tone",order:1675,unicode:"\u{1F9B8}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9B8-1F3FC-200D-2642-FE0F",label:"man superhero: medium-light skin tone",order:1677,unicode:"\u{1F9B8}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9B8-1F3FD-200D-2642-FE0F",label:"man superhero: medium skin tone",order:1679,unicode:"\u{1F9B8}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9B8-1F3FE-200D-2642-FE0F",label:"man superhero: medium-dark skin tone",order:1681,unicode:"\u{1F9B8}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9B8-1F3FF-200D-2642-FE0F",label:"man superhero: dark skin tone",order:1683,unicode:"\u{1F9B8}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9B8-200D-2640-FE0F",label:"woman superhero",order:1685,tags:["good","hero","heroine","superpower","woman"],unicode:"\u{1F9B8}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9B8-1F3FB-200D-2640-FE0F",label:"woman superhero: light skin tone",order:1687,unicode:"\u{1F9B8}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9B8-1F3FC-200D-2640-FE0F",label:"woman superhero: medium-light skin tone",order:1689,unicode:"\u{1F9B8}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9B8-1F3FD-200D-2640-FE0F",label:"woman superhero: medium skin tone",order:1691,unicode:"\u{1F9B8}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9B8-1F3FE-200D-2640-FE0F",label:"woman superhero: medium-dark skin tone",order:1693,unicode:"\u{1F9B8}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9B8-1F3FF-200D-2640-FE0F",label:"woman superhero: dark skin tone",order:1695,unicode:"\u{1F9B8}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9B9",label:"supervillain",order:1697,tags:["criminal","evil","superpower","villain"],unicode:"\u{1F9B9}",skins:[{group:1,hexcode:"1F9B9-1F3FB",label:"supervillain: light skin tone",order:1698,unicode:"\u{1F9B9}\u{1F3FB}"},{group:1,hexcode:"1F9B9-1F3FC",label:"supervillain: medium-light skin tone",order:1699,unicode:"\u{1F9B9}\u{1F3FC}"},{group:1,hexcode:"1F9B9-1F3FD",label:"supervillain: medium skin tone",order:1700,unicode:"\u{1F9B9}\u{1F3FD}"},{group:1,hexcode:"1F9B9-1F3FE",label:"supervillain: medium-dark skin tone",order:1701,unicode:"\u{1F9B9}\u{1F3FE}"},{group:1,hexcode:"1F9B9-1F3FF",label:"supervillain: dark skin tone",order:1702,unicode:"\u{1F9B9}\u{1F3FF}"}]},{group:1,hexcode:"1F9B9-200D-2642-FE0F",label:"man supervillain",order:1703,tags:["criminal","evil","man","superpower","villain"],unicode:"\u{1F9B9}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9B9-1F3FB-200D-2642-FE0F",label:"man supervillain: light skin tone",order:1705,unicode:"\u{1F9B9}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9B9-1F3FC-200D-2642-FE0F",label:"man supervillain: medium-light skin tone",order:1707,unicode:"\u{1F9B9}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9B9-1F3FD-200D-2642-FE0F",label:"man supervillain: medium skin tone",order:1709,unicode:"\u{1F9B9}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9B9-1F3FE-200D-2642-FE0F",label:"man supervillain: medium-dark skin tone",order:1711,unicode:"\u{1F9B9}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9B9-1F3FF-200D-2642-FE0F",label:"man supervillain: dark skin tone",order:1713,unicode:"\u{1F9B9}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9B9-200D-2640-FE0F",label:"woman supervillain",order:1715,tags:["criminal","evil","superpower","villain","woman"],unicode:"\u{1F9B9}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9B9-1F3FB-200D-2640-FE0F",label:"woman supervillain: light skin tone",order:1717,unicode:"\u{1F9B9}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9B9-1F3FC-200D-2640-FE0F",label:"woman supervillain: medium-light skin tone",order:1719,unicode:"\u{1F9B9}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9B9-1F3FD-200D-2640-FE0F",label:"woman supervillain: medium skin tone",order:1721,unicode:"\u{1F9B9}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9B9-1F3FE-200D-2640-FE0F",label:"woman supervillain: medium-dark skin tone",order:1723,unicode:"\u{1F9B9}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9B9-1F3FF-200D-2640-FE0F",label:"woman supervillain: dark skin tone",order:1725,unicode:"\u{1F9B9}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9D9",label:"mage",order:1727,tags:["sorcerer","sorceress","witch","wizard"],unicode:"\u{1F9D9}",skins:[{group:1,hexcode:"1F9D9-1F3FB",label:"mage: light skin tone",order:1728,unicode:"\u{1F9D9}\u{1F3FB}"},{group:1,hexcode:"1F9D9-1F3FC",label:"mage: medium-light skin tone",order:1729,unicode:"\u{1F9D9}\u{1F3FC}"},{group:1,hexcode:"1F9D9-1F3FD",label:"mage: medium skin tone",order:1730,unicode:"\u{1F9D9}\u{1F3FD}"},{group:1,hexcode:"1F9D9-1F3FE",label:"mage: medium-dark skin tone",order:1731,unicode:"\u{1F9D9}\u{1F3FE}"},{group:1,hexcode:"1F9D9-1F3FF",label:"mage: dark skin tone",order:1732,unicode:"\u{1F9D9}\u{1F3FF}"}]},{group:1,hexcode:"1F9D9-200D-2642-FE0F",label:"man mage",order:1733,tags:["sorcerer","wizard"],unicode:"\u{1F9D9}\u200D\u2642\uFE0F",emoticon:":{>",skins:[{group:1,hexcode:"1F9D9-1F3FB-200D-2642-FE0F",label:"man mage: light skin tone",order:1735,unicode:"\u{1F9D9}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D9-1F3FC-200D-2642-FE0F",label:"man mage: medium-light skin tone",order:1737,unicode:"\u{1F9D9}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D9-1F3FD-200D-2642-FE0F",label:"man mage: medium skin tone",order:1739,unicode:"\u{1F9D9}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D9-1F3FE-200D-2642-FE0F",label:"man mage: medium-dark skin tone",order:1741,unicode:"\u{1F9D9}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D9-1F3FF-200D-2642-FE0F",label:"man mage: dark skin tone",order:1743,unicode:"\u{1F9D9}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9D9-200D-2640-FE0F",label:"woman mage",order:1745,tags:["sorceress","witch"],unicode:"\u{1F9D9}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9D9-1F3FB-200D-2640-FE0F",label:"woman mage: light skin tone",order:1747,unicode:"\u{1F9D9}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D9-1F3FC-200D-2640-FE0F",label:"woman mage: medium-light skin tone",order:1749,unicode:"\u{1F9D9}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D9-1F3FD-200D-2640-FE0F",label:"woman mage: medium skin tone",order:1751,unicode:"\u{1F9D9}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D9-1F3FE-200D-2640-FE0F",label:"woman mage: medium-dark skin tone",order:1753,unicode:"\u{1F9D9}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D9-1F3FF-200D-2640-FE0F",label:"woman mage: dark skin tone",order:1755,unicode:"\u{1F9D9}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9DA",label:"fairy",order:1757,tags:["oberon","puck","titania"],unicode:"\u{1F9DA}",skins:[{group:1,hexcode:"1F9DA-1F3FB",label:"fairy: light skin tone",order:1758,unicode:"\u{1F9DA}\u{1F3FB}"},{group:1,hexcode:"1F9DA-1F3FC",label:"fairy: medium-light skin tone",order:1759,unicode:"\u{1F9DA}\u{1F3FC}"},{group:1,hexcode:"1F9DA-1F3FD",label:"fairy: medium skin tone",order:1760,unicode:"\u{1F9DA}\u{1F3FD}"},{group:1,hexcode:"1F9DA-1F3FE",label:"fairy: medium-dark skin tone",order:1761,unicode:"\u{1F9DA}\u{1F3FE}"},{group:1,hexcode:"1F9DA-1F3FF",label:"fairy: dark skin tone",order:1762,unicode:"\u{1F9DA}\u{1F3FF}"}]},{group:1,hexcode:"1F9DA-200D-2642-FE0F",label:"man fairy",order:1763,tags:["oberon","puck"],unicode:"\u{1F9DA}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9DA-1F3FB-200D-2642-FE0F",label:"man fairy: light skin tone",order:1765,unicode:"\u{1F9DA}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DA-1F3FC-200D-2642-FE0F",label:"man fairy: medium-light skin tone",order:1767,unicode:"\u{1F9DA}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DA-1F3FD-200D-2642-FE0F",label:"man fairy: medium skin tone",order:1769,unicode:"\u{1F9DA}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DA-1F3FE-200D-2642-FE0F",label:"man fairy: medium-dark skin tone",order:1771,unicode:"\u{1F9DA}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DA-1F3FF-200D-2642-FE0F",label:"man fairy: dark skin tone",order:1773,unicode:"\u{1F9DA}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9DA-200D-2640-FE0F",label:"woman fairy",order:1775,tags:["titania"],unicode:"\u{1F9DA}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9DA-1F3FB-200D-2640-FE0F",label:"woman fairy: light skin tone",order:1777,unicode:"\u{1F9DA}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DA-1F3FC-200D-2640-FE0F",label:"woman fairy: medium-light skin tone",order:1779,unicode:"\u{1F9DA}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DA-1F3FD-200D-2640-FE0F",label:"woman fairy: medium skin tone",order:1781,unicode:"\u{1F9DA}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DA-1F3FE-200D-2640-FE0F",label:"woman fairy: medium-dark skin tone",order:1783,unicode:"\u{1F9DA}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DA-1F3FF-200D-2640-FE0F",label:"woman fairy: dark skin tone",order:1785,unicode:"\u{1F9DA}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9DB",label:"vampire",order:1787,tags:["dracula","undead"],unicode:"\u{1F9DB}",emoticon:":E",skins:[{group:1,hexcode:"1F9DB-1F3FB",label:"vampire: light skin tone",order:1788,unicode:"\u{1F9DB}\u{1F3FB}"},{group:1,hexcode:"1F9DB-1F3FC",label:"vampire: medium-light skin tone",order:1789,unicode:"\u{1F9DB}\u{1F3FC}"},{group:1,hexcode:"1F9DB-1F3FD",label:"vampire: medium skin tone",order:1790,unicode:"\u{1F9DB}\u{1F3FD}"},{group:1,hexcode:"1F9DB-1F3FE",label:"vampire: medium-dark skin tone",order:1791,unicode:"\u{1F9DB}\u{1F3FE}"},{group:1,hexcode:"1F9DB-1F3FF",label:"vampire: dark skin tone",order:1792,unicode:"\u{1F9DB}\u{1F3FF}"}]},{group:1,hexcode:"1F9DB-200D-2642-FE0F",label:"man vampire",order:1793,tags:["dracula","undead"],unicode:"\u{1F9DB}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9DB-1F3FB-200D-2642-FE0F",label:"man vampire: light skin tone",order:1795,unicode:"\u{1F9DB}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DB-1F3FC-200D-2642-FE0F",label:"man vampire: medium-light skin tone",order:1797,unicode:"\u{1F9DB}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DB-1F3FD-200D-2642-FE0F",label:"man vampire: medium skin tone",order:1799,unicode:"\u{1F9DB}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DB-1F3FE-200D-2642-FE0F",label:"man vampire: medium-dark skin tone",order:1801,unicode:"\u{1F9DB}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DB-1F3FF-200D-2642-FE0F",label:"man vampire: dark skin tone",order:1803,unicode:"\u{1F9DB}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9DB-200D-2640-FE0F",label:"woman vampire",order:1805,tags:["undead"],unicode:"\u{1F9DB}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9DB-1F3FB-200D-2640-FE0F",label:"woman vampire: light skin tone",order:1807,unicode:"\u{1F9DB}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DB-1F3FC-200D-2640-FE0F",label:"woman vampire: medium-light skin tone",order:1809,unicode:"\u{1F9DB}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DB-1F3FD-200D-2640-FE0F",label:"woman vampire: medium skin tone",order:1811,unicode:"\u{1F9DB}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DB-1F3FE-200D-2640-FE0F",label:"woman vampire: medium-dark skin tone",order:1813,unicode:"\u{1F9DB}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DB-1F3FF-200D-2640-FE0F",label:"woman vampire: dark skin tone",order:1815,unicode:"\u{1F9DB}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9DC",label:"merperson",order:1817,tags:["mermaid","merman","merwoman"],unicode:"\u{1F9DC}",skins:[{group:1,hexcode:"1F9DC-1F3FB",label:"merperson: light skin tone",order:1818,unicode:"\u{1F9DC}\u{1F3FB}"},{group:1,hexcode:"1F9DC-1F3FC",label:"merperson: medium-light skin tone",order:1819,unicode:"\u{1F9DC}\u{1F3FC}"},{group:1,hexcode:"1F9DC-1F3FD",label:"merperson: medium skin tone",order:1820,unicode:"\u{1F9DC}\u{1F3FD}"},{group:1,hexcode:"1F9DC-1F3FE",label:"merperson: medium-dark skin tone",order:1821,unicode:"\u{1F9DC}\u{1F3FE}"},{group:1,hexcode:"1F9DC-1F3FF",label:"merperson: dark skin tone",order:1822,unicode:"\u{1F9DC}\u{1F3FF}"}]},{group:1,hexcode:"1F9DC-200D-2642-FE0F",label:"merman",order:1823,tags:["triton"],unicode:"\u{1F9DC}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9DC-1F3FB-200D-2642-FE0F",label:"merman: light skin tone",order:1825,unicode:"\u{1F9DC}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DC-1F3FC-200D-2642-FE0F",label:"merman: medium-light skin tone",order:1827,unicode:"\u{1F9DC}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DC-1F3FD-200D-2642-FE0F",label:"merman: medium skin tone",order:1829,unicode:"\u{1F9DC}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DC-1F3FE-200D-2642-FE0F",label:"merman: medium-dark skin tone",order:1831,unicode:"\u{1F9DC}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DC-1F3FF-200D-2642-FE0F",label:"merman: dark skin tone",order:1833,unicode:"\u{1F9DC}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9DC-200D-2640-FE0F",label:"mermaid",order:1835,tags:["merwoman"],unicode:"\u{1F9DC}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9DC-1F3FB-200D-2640-FE0F",label:"mermaid: light skin tone",order:1837,unicode:"\u{1F9DC}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DC-1F3FC-200D-2640-FE0F",label:"mermaid: medium-light skin tone",order:1839,unicode:"\u{1F9DC}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DC-1F3FD-200D-2640-FE0F",label:"mermaid: medium skin tone",order:1841,unicode:"\u{1F9DC}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DC-1F3FE-200D-2640-FE0F",label:"mermaid: medium-dark skin tone",order:1843,unicode:"\u{1F9DC}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DC-1F3FF-200D-2640-FE0F",label:"mermaid: dark skin tone",order:1845,unicode:"\u{1F9DC}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9DD",label:"elf",order:1847,tags:["magical"],unicode:"\u{1F9DD}",skins:[{group:1,hexcode:"1F9DD-1F3FB",label:"elf: light skin tone",order:1848,unicode:"\u{1F9DD}\u{1F3FB}"},{group:1,hexcode:"1F9DD-1F3FC",label:"elf: medium-light skin tone",order:1849,unicode:"\u{1F9DD}\u{1F3FC}"},{group:1,hexcode:"1F9DD-1F3FD",label:"elf: medium skin tone",order:1850,unicode:"\u{1F9DD}\u{1F3FD}"},{group:1,hexcode:"1F9DD-1F3FE",label:"elf: medium-dark skin tone",order:1851,unicode:"\u{1F9DD}\u{1F3FE}"},{group:1,hexcode:"1F9DD-1F3FF",label:"elf: dark skin tone",order:1852,unicode:"\u{1F9DD}\u{1F3FF}"}]},{group:1,hexcode:"1F9DD-200D-2642-FE0F",label:"man elf",order:1853,tags:["magical"],unicode:"\u{1F9DD}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9DD-1F3FB-200D-2642-FE0F",label:"man elf: light skin tone",order:1855,unicode:"\u{1F9DD}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DD-1F3FC-200D-2642-FE0F",label:"man elf: medium-light skin tone",order:1857,unicode:"\u{1F9DD}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DD-1F3FD-200D-2642-FE0F",label:"man elf: medium skin tone",order:1859,unicode:"\u{1F9DD}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DD-1F3FE-200D-2642-FE0F",label:"man elf: medium-dark skin tone",order:1861,unicode:"\u{1F9DD}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DD-1F3FF-200D-2642-FE0F",label:"man elf: dark skin tone",order:1863,unicode:"\u{1F9DD}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9DD-200D-2640-FE0F",label:"woman elf",order:1865,tags:["magical"],unicode:"\u{1F9DD}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9DD-1F3FB-200D-2640-FE0F",label:"woman elf: light skin tone",order:1867,unicode:"\u{1F9DD}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DD-1F3FC-200D-2640-FE0F",label:"woman elf: medium-light skin tone",order:1869,unicode:"\u{1F9DD}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DD-1F3FD-200D-2640-FE0F",label:"woman elf: medium skin tone",order:1871,unicode:"\u{1F9DD}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DD-1F3FE-200D-2640-FE0F",label:"woman elf: medium-dark skin tone",order:1873,unicode:"\u{1F9DD}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DD-1F3FF-200D-2640-FE0F",label:"woman elf: dark skin tone",order:1875,unicode:"\u{1F9DD}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9DE",label:"genie",order:1877,tags:["djinn"],unicode:"\u{1F9DE}"},{group:1,hexcode:"1F9DE-200D-2642-FE0F",label:"man genie",order:1878,tags:["djinn"],unicode:"\u{1F9DE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DE-200D-2640-FE0F",label:"woman genie",order:1880,tags:["djinn"],unicode:"\u{1F9DE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9DF",label:"zombie",order:1882,tags:["undead","walking dead"],unicode:"\u{1F9DF}",emoticon:"8#"},{group:1,hexcode:"1F9DF-200D-2642-FE0F",label:"man zombie",order:1883,tags:["undead","walking dead"],unicode:"\u{1F9DF}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9DF-200D-2640-FE0F",label:"woman zombie",order:1885,tags:["undead","walking dead"],unicode:"\u{1F9DF}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CC",label:"troll",order:1887,tags:["fairy tale","fantasy","monster"],unicode:"\u{1F9CC}"},{group:1,hexcode:"1F486",label:"person getting massage",order:1888,tags:["face","massage","salon"],unicode:"\u{1F486}",skins:[{group:1,hexcode:"1F486-1F3FB",label:"person getting massage: light skin tone",order:1889,unicode:"\u{1F486}\u{1F3FB}"},{group:1,hexcode:"1F486-1F3FC",label:"person getting massage: medium-light skin tone",order:1890,unicode:"\u{1F486}\u{1F3FC}"},{group:1,hexcode:"1F486-1F3FD",label:"person getting massage: medium skin tone",order:1891,unicode:"\u{1F486}\u{1F3FD}"},{group:1,hexcode:"1F486-1F3FE",label:"person getting massage: medium-dark skin tone",order:1892,unicode:"\u{1F486}\u{1F3FE}"},{group:1,hexcode:"1F486-1F3FF",label:"person getting massage: dark skin tone",order:1893,unicode:"\u{1F486}\u{1F3FF}"}]},{group:1,hexcode:"1F486-200D-2642-FE0F",label:"man getting massage",order:1894,tags:["face","man","massage"],unicode:"\u{1F486}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F486-1F3FB-200D-2642-FE0F",label:"man getting massage: light skin tone",order:1896,unicode:"\u{1F486}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F486-1F3FC-200D-2642-FE0F",label:"man getting massage: medium-light skin tone",order:1898,unicode:"\u{1F486}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F486-1F3FD-200D-2642-FE0F",label:"man getting massage: medium skin tone",order:1900,unicode:"\u{1F486}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F486-1F3FE-200D-2642-FE0F",label:"man getting massage: medium-dark skin tone",order:1902,unicode:"\u{1F486}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F486-1F3FF-200D-2642-FE0F",label:"man getting massage: dark skin tone",order:1904,unicode:"\u{1F486}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F486-200D-2640-FE0F",label:"woman getting massage",order:1906,tags:["face","massage","woman"],unicode:"\u{1F486}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F486-1F3FB-200D-2640-FE0F",label:"woman getting massage: light skin tone",order:1908,unicode:"\u{1F486}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F486-1F3FC-200D-2640-FE0F",label:"woman getting massage: medium-light skin tone",order:1910,unicode:"\u{1F486}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F486-1F3FD-200D-2640-FE0F",label:"woman getting massage: medium skin tone",order:1912,unicode:"\u{1F486}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F486-1F3FE-200D-2640-FE0F",label:"woman getting massage: medium-dark skin tone",order:1914,unicode:"\u{1F486}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F486-1F3FF-200D-2640-FE0F",label:"woman getting massage: dark skin tone",order:1916,unicode:"\u{1F486}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F487",label:"person getting haircut",order:1918,tags:["barber","beauty","haircut","parlor"],unicode:"\u{1F487}",skins:[{group:1,hexcode:"1F487-1F3FB",label:"person getting haircut: light skin tone",order:1919,unicode:"\u{1F487}\u{1F3FB}"},{group:1,hexcode:"1F487-1F3FC",label:"person getting haircut: medium-light skin tone",order:1920,unicode:"\u{1F487}\u{1F3FC}"},{group:1,hexcode:"1F487-1F3FD",label:"person getting haircut: medium skin tone",order:1921,unicode:"\u{1F487}\u{1F3FD}"},{group:1,hexcode:"1F487-1F3FE",label:"person getting haircut: medium-dark skin tone",order:1922,unicode:"\u{1F487}\u{1F3FE}"},{group:1,hexcode:"1F487-1F3FF",label:"person getting haircut: dark skin tone",order:1923,unicode:"\u{1F487}\u{1F3FF}"}]},{group:1,hexcode:"1F487-200D-2642-FE0F",label:"man getting haircut",order:1924,tags:["haircut","man"],unicode:"\u{1F487}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F487-1F3FB-200D-2642-FE0F",label:"man getting haircut: light skin tone",order:1926,unicode:"\u{1F487}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F487-1F3FC-200D-2642-FE0F",label:"man getting haircut: medium-light skin tone",order:1928,unicode:"\u{1F487}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F487-1F3FD-200D-2642-FE0F",label:"man getting haircut: medium skin tone",order:1930,unicode:"\u{1F487}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F487-1F3FE-200D-2642-FE0F",label:"man getting haircut: medium-dark skin tone",order:1932,unicode:"\u{1F487}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F487-1F3FF-200D-2642-FE0F",label:"man getting haircut: dark skin tone",order:1934,unicode:"\u{1F487}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F487-200D-2640-FE0F",label:"woman getting haircut",order:1936,tags:["haircut","woman"],unicode:"\u{1F487}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F487-1F3FB-200D-2640-FE0F",label:"woman getting haircut: light skin tone",order:1938,unicode:"\u{1F487}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F487-1F3FC-200D-2640-FE0F",label:"woman getting haircut: medium-light skin tone",order:1940,unicode:"\u{1F487}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F487-1F3FD-200D-2640-FE0F",label:"woman getting haircut: medium skin tone",order:1942,unicode:"\u{1F487}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F487-1F3FE-200D-2640-FE0F",label:"woman getting haircut: medium-dark skin tone",order:1944,unicode:"\u{1F487}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F487-1F3FF-200D-2640-FE0F",label:"woman getting haircut: dark skin tone",order:1946,unicode:"\u{1F487}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F6B6",label:"person walking",order:1948,tags:["hike","walk","walking"],unicode:"\u{1F6B6}",skins:[{group:1,hexcode:"1F6B6-1F3FB",label:"person walking: light skin tone",order:1949,unicode:"\u{1F6B6}\u{1F3FB}"},{group:1,hexcode:"1F6B6-1F3FC",label:"person walking: medium-light skin tone",order:1950,unicode:"\u{1F6B6}\u{1F3FC}"},{group:1,hexcode:"1F6B6-1F3FD",label:"person walking: medium skin tone",order:1951,unicode:"\u{1F6B6}\u{1F3FD}"},{group:1,hexcode:"1F6B6-1F3FE",label:"person walking: medium-dark skin tone",order:1952,unicode:"\u{1F6B6}\u{1F3FE}"},{group:1,hexcode:"1F6B6-1F3FF",label:"person walking: dark skin tone",order:1953,unicode:"\u{1F6B6}\u{1F3FF}"}]},{group:1,hexcode:"1F6B6-200D-2642-FE0F",label:"man walking",order:1954,tags:["hike","man","walk"],unicode:"\u{1F6B6}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F6B6-1F3FB-200D-2642-FE0F",label:"man walking: light skin tone",order:1956,unicode:"\u{1F6B6}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B6-1F3FC-200D-2642-FE0F",label:"man walking: medium-light skin tone",order:1958,unicode:"\u{1F6B6}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B6-1F3FD-200D-2642-FE0F",label:"man walking: medium skin tone",order:1960,unicode:"\u{1F6B6}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B6-1F3FE-200D-2642-FE0F",label:"man walking: medium-dark skin tone",order:1962,unicode:"\u{1F6B6}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B6-1F3FF-200D-2642-FE0F",label:"man walking: dark skin tone",order:1964,unicode:"\u{1F6B6}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F6B6-200D-2640-FE0F",label:"woman walking",order:1966,tags:["hike","walk","woman"],unicode:"\u{1F6B6}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F6B6-1F3FB-200D-2640-FE0F",label:"woman walking: light skin tone",order:1968,unicode:"\u{1F6B6}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B6-1F3FC-200D-2640-FE0F",label:"woman walking: medium-light skin tone",order:1970,unicode:"\u{1F6B6}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B6-1F3FD-200D-2640-FE0F",label:"woman walking: medium skin tone",order:1972,unicode:"\u{1F6B6}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B6-1F3FE-200D-2640-FE0F",label:"woman walking: medium-dark skin tone",order:1974,unicode:"\u{1F6B6}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B6-1F3FF-200D-2640-FE0F",label:"woman walking: dark skin tone",order:1976,unicode:"\u{1F6B6}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F6B6-200D-27A1-FE0F",label:"person walking facing right",order:1978,tags:["hike","person walking","walk","walking"],unicode:"\u{1F6B6}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F6B6-1F3FB-200D-27A1-FE0F",label:"person walking facing right",order:1980,unicode:"\u{1F6B6}\u{1F3FB}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FC-200D-27A1-FE0F",label:"person walking facing right",order:1982,unicode:"\u{1F6B6}\u{1F3FC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FD-200D-27A1-FE0F",label:"person walking facing right",order:1984,unicode:"\u{1F6B6}\u{1F3FD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FE-200D-27A1-FE0F",label:"person walking facing right",order:1986,unicode:"\u{1F6B6}\u{1F3FE}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FF-200D-27A1-FE0F",label:"person walking facing right",order:1988,unicode:"\u{1F6B6}\u{1F3FF}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F6B6-200D-2640-FE0F-200D-27A1-FE0F",label:"woman walking facing right",order:1990,tags:["hike","walk","woman","woman walking"],unicode:"\u{1F6B6}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F6B6-1F3FB-200D-2640-FE0F-200D-27A1-FE0F",label:"woman walking facing right",order:1994,unicode:"\u{1F6B6}\u{1F3FB}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FC-200D-2640-FE0F-200D-27A1-FE0F",label:"woman walking facing right",order:1998,unicode:"\u{1F6B6}\u{1F3FC}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FD-200D-2640-FE0F-200D-27A1-FE0F",label:"woman walking facing right",order:2002,unicode:"\u{1F6B6}\u{1F3FD}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FE-200D-2640-FE0F-200D-27A1-FE0F",label:"woman walking facing right",order:2006,unicode:"\u{1F6B6}\u{1F3FE}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FF-200D-2640-FE0F-200D-27A1-FE0F",label:"woman walking facing right",order:2010,unicode:"\u{1F6B6}\u{1F3FF}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F6B6-200D-2642-FE0F-200D-27A1-FE0F",label:"man walking facing right",order:2014,tags:["hike","man","man walking","walk"],unicode:"\u{1F6B6}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F6B6-1F3FB-200D-2642-FE0F-200D-27A1-FE0F",label:"man walking facing right",order:2018,unicode:"\u{1F6B6}\u{1F3FB}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FC-200D-2642-FE0F-200D-27A1-FE0F",label:"man walking facing right",order:2022,unicode:"\u{1F6B6}\u{1F3FC}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FD-200D-2642-FE0F-200D-27A1-FE0F",label:"man walking facing right",order:2026,unicode:"\u{1F6B6}\u{1F3FD}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FE-200D-2642-FE0F-200D-27A1-FE0F",label:"man walking facing right",order:2030,unicode:"\u{1F6B6}\u{1F3FE}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F6B6-1F3FF-200D-2642-FE0F-200D-27A1-FE0F",label:"man walking facing right",order:2034,unicode:"\u{1F6B6}\u{1F3FF}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F9CD",label:"person standing",order:2038,tags:["stand","standing"],unicode:"\u{1F9CD}",skins:[{group:1,hexcode:"1F9CD-1F3FB",label:"person standing: light skin tone",order:2039,unicode:"\u{1F9CD}\u{1F3FB}"},{group:1,hexcode:"1F9CD-1F3FC",label:"person standing: medium-light skin tone",order:2040,unicode:"\u{1F9CD}\u{1F3FC}"},{group:1,hexcode:"1F9CD-1F3FD",label:"person standing: medium skin tone",order:2041,unicode:"\u{1F9CD}\u{1F3FD}"},{group:1,hexcode:"1F9CD-1F3FE",label:"person standing: medium-dark skin tone",order:2042,unicode:"\u{1F9CD}\u{1F3FE}"},{group:1,hexcode:"1F9CD-1F3FF",label:"person standing: dark skin tone",order:2043,unicode:"\u{1F9CD}\u{1F3FF}"}]},{group:1,hexcode:"1F9CD-200D-2642-FE0F",label:"man standing",order:2044,tags:["man","standing"],unicode:"\u{1F9CD}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9CD-1F3FB-200D-2642-FE0F",label:"man standing: light skin tone",order:2046,unicode:"\u{1F9CD}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CD-1F3FC-200D-2642-FE0F",label:"man standing: medium-light skin tone",order:2048,unicode:"\u{1F9CD}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CD-1F3FD-200D-2642-FE0F",label:"man standing: medium skin tone",order:2050,unicode:"\u{1F9CD}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CD-1F3FE-200D-2642-FE0F",label:"man standing: medium-dark skin tone",order:2052,unicode:"\u{1F9CD}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CD-1F3FF-200D-2642-FE0F",label:"man standing: dark skin tone",order:2054,unicode:"\u{1F9CD}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9CD-200D-2640-FE0F",label:"woman standing",order:2056,tags:["standing","woman"],unicode:"\u{1F9CD}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9CD-1F3FB-200D-2640-FE0F",label:"woman standing: light skin tone",order:2058,unicode:"\u{1F9CD}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CD-1F3FC-200D-2640-FE0F",label:"woman standing: medium-light skin tone",order:2060,unicode:"\u{1F9CD}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CD-1F3FD-200D-2640-FE0F",label:"woman standing: medium skin tone",order:2062,unicode:"\u{1F9CD}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CD-1F3FE-200D-2640-FE0F",label:"woman standing: medium-dark skin tone",order:2064,unicode:"\u{1F9CD}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CD-1F3FF-200D-2640-FE0F",label:"woman standing: dark skin tone",order:2066,unicode:"\u{1F9CD}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9CE",label:"person kneeling",order:2068,tags:["kneel","kneeling"],unicode:"\u{1F9CE}",skins:[{group:1,hexcode:"1F9CE-1F3FB",label:"person kneeling: light skin tone",order:2069,unicode:"\u{1F9CE}\u{1F3FB}"},{group:1,hexcode:"1F9CE-1F3FC",label:"person kneeling: medium-light skin tone",order:2070,unicode:"\u{1F9CE}\u{1F3FC}"},{group:1,hexcode:"1F9CE-1F3FD",label:"person kneeling: medium skin tone",order:2071,unicode:"\u{1F9CE}\u{1F3FD}"},{group:1,hexcode:"1F9CE-1F3FE",label:"person kneeling: medium-dark skin tone",order:2072,unicode:"\u{1F9CE}\u{1F3FE}"},{group:1,hexcode:"1F9CE-1F3FF",label:"person kneeling: dark skin tone",order:2073,unicode:"\u{1F9CE}\u{1F3FF}"}]},{group:1,hexcode:"1F9CE-200D-2642-FE0F",label:"man kneeling",order:2074,tags:["kneeling","man"],unicode:"\u{1F9CE}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9CE-1F3FB-200D-2642-FE0F",label:"man kneeling: light skin tone",order:2076,unicode:"\u{1F9CE}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CE-1F3FC-200D-2642-FE0F",label:"man kneeling: medium-light skin tone",order:2078,unicode:"\u{1F9CE}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CE-1F3FD-200D-2642-FE0F",label:"man kneeling: medium skin tone",order:2080,unicode:"\u{1F9CE}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CE-1F3FE-200D-2642-FE0F",label:"man kneeling: medium-dark skin tone",order:2082,unicode:"\u{1F9CE}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9CE-1F3FF-200D-2642-FE0F",label:"man kneeling: dark skin tone",order:2084,unicode:"\u{1F9CE}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9CE-200D-2640-FE0F",label:"woman kneeling",order:2086,tags:["kneeling","woman"],unicode:"\u{1F9CE}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9CE-1F3FB-200D-2640-FE0F",label:"woman kneeling: light skin tone",order:2088,unicode:"\u{1F9CE}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CE-1F3FC-200D-2640-FE0F",label:"woman kneeling: medium-light skin tone",order:2090,unicode:"\u{1F9CE}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CE-1F3FD-200D-2640-FE0F",label:"woman kneeling: medium skin tone",order:2092,unicode:"\u{1F9CE}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CE-1F3FE-200D-2640-FE0F",label:"woman kneeling: medium-dark skin tone",order:2094,unicode:"\u{1F9CE}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9CE-1F3FF-200D-2640-FE0F",label:"woman kneeling: dark skin tone",order:2096,unicode:"\u{1F9CE}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9CE-200D-27A1-FE0F",label:"person kneeling facing right",order:2098,tags:["kneel","kneeling","person kneeling"],unicode:"\u{1F9CE}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F9CE-1F3FB-200D-27A1-FE0F",label:"person kneeling facing right",order:2100,unicode:"\u{1F9CE}\u{1F3FB}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FC-200D-27A1-FE0F",label:"person kneeling facing right",order:2102,unicode:"\u{1F9CE}\u{1F3FC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FD-200D-27A1-FE0F",label:"person kneeling facing right",order:2104,unicode:"\u{1F9CE}\u{1F3FD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FE-200D-27A1-FE0F",label:"person kneeling facing right",order:2106,unicode:"\u{1F9CE}\u{1F3FE}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FF-200D-27A1-FE0F",label:"person kneeling facing right",order:2108,unicode:"\u{1F9CE}\u{1F3FF}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F9CE-200D-2640-FE0F-200D-27A1-FE0F",label:"woman kneeling facing right",order:2110,tags:["kneeling","woman"],unicode:"\u{1F9CE}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F9CE-1F3FB-200D-2640-FE0F-200D-27A1-FE0F",label:"woman kneeling facing right",order:2114,unicode:"\u{1F9CE}\u{1F3FB}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FC-200D-2640-FE0F-200D-27A1-FE0F",label:"woman kneeling facing right",order:2118,unicode:"\u{1F9CE}\u{1F3FC}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FD-200D-2640-FE0F-200D-27A1-FE0F",label:"woman kneeling facing right",order:2122,unicode:"\u{1F9CE}\u{1F3FD}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FE-200D-2640-FE0F-200D-27A1-FE0F",label:"woman kneeling facing right",order:2126,unicode:"\u{1F9CE}\u{1F3FE}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FF-200D-2640-FE0F-200D-27A1-FE0F",label:"woman kneeling facing right",order:2130,unicode:"\u{1F9CE}\u{1F3FF}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F9CE-200D-2642-FE0F-200D-27A1-FE0F",label:"man kneeling facing right",order:2134,tags:["kneeling","man"],unicode:"\u{1F9CE}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F9CE-1F3FB-200D-2642-FE0F-200D-27A1-FE0F",label:"man kneeling facing right",order:2138,unicode:"\u{1F9CE}\u{1F3FB}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FC-200D-2642-FE0F-200D-27A1-FE0F",label:"man kneeling facing right",order:2142,unicode:"\u{1F9CE}\u{1F3FC}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FD-200D-2642-FE0F-200D-27A1-FE0F",label:"man kneeling facing right",order:2146,unicode:"\u{1F9CE}\u{1F3FD}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FE-200D-2642-FE0F-200D-27A1-FE0F",label:"man kneeling facing right",order:2150,unicode:"\u{1F9CE}\u{1F3FE}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9CE-1F3FF-200D-2642-FE0F-200D-27A1-FE0F",label:"man kneeling facing right",order:2154,unicode:"\u{1F9CE}\u{1F3FF}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F9D1-200D-1F9AF",label:"person with white cane",order:2158,tags:["accessibility","blind"],unicode:"\u{1F9D1}\u200D\u{1F9AF}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F9AF",label:"person with white cane: light skin tone",order:2159,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F9AF}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F9AF",label:"person with white cane: medium-light skin tone",order:2160,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F9AF}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F9AF",label:"person with white cane: medium skin tone",order:2161,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F9AF}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F9AF",label:"person with white cane: medium-dark skin tone",order:2162,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F9AF}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F9AF",label:"person with white cane: dark skin tone",order:2163,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F9AF}"}]},{group:1,hexcode:"1F9D1-200D-1F9AF-200D-27A1-FE0F",label:"person with white cane facing right",order:2164,tags:["accessibility","blind","person with white cane"],unicode:"\u{1F9D1}\u200D\u{1F9AF}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F9AF-200D-27A1-FE0F",label:"person with white cane facing right",order:2166,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F9AF-200D-27A1-FE0F",label:"person with white cane facing right",order:2168,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F9AF-200D-27A1-FE0F",label:"person with white cane facing right",order:2170,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F9AF-200D-27A1-FE0F",label:"person with white cane facing right",order:2172,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F9AF-200D-27A1-FE0F",label:"person with white cane facing right",order:2174,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F468-200D-1F9AF",label:"man with white cane",order:2176,tags:["accessibility","blind","man"],unicode:"\u{1F468}\u200D\u{1F9AF}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F9AF",label:"man with white cane: light skin tone",order:2177,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F9AF}"},{group:1,hexcode:"1F468-1F3FC-200D-1F9AF",label:"man with white cane: medium-light skin tone",order:2178,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F9AF}"},{group:1,hexcode:"1F468-1F3FD-200D-1F9AF",label:"man with white cane: medium skin tone",order:2179,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F9AF}"},{group:1,hexcode:"1F468-1F3FE-200D-1F9AF",label:"man with white cane: medium-dark skin tone",order:2180,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F9AF}"},{group:1,hexcode:"1F468-1F3FF-200D-1F9AF",label:"man with white cane: dark skin tone",order:2181,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F9AF}"}]},{group:1,hexcode:"1F468-200D-1F9AF-200D-27A1-FE0F",label:"man with white cane facing right",order:2182,tags:["accessibility","blind","man","man with white cane"],unicode:"\u{1F468}\u200D\u{1F9AF}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F9AF-200D-27A1-FE0F",label:"man with white cane facing right",order:2184,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FC-200D-1F9AF-200D-27A1-FE0F",label:"man with white cane facing right",order:2186,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FD-200D-1F9AF-200D-27A1-FE0F",label:"man with white cane facing right",order:2188,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FE-200D-1F9AF-200D-27A1-FE0F",label:"man with white cane facing right",order:2190,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FF-200D-1F9AF-200D-27A1-FE0F",label:"man with white cane facing right",order:2192,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F469-200D-1F9AF",label:"woman with white cane",order:2194,tags:["accessibility","blind","woman"],unicode:"\u{1F469}\u200D\u{1F9AF}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F9AF",label:"woman with white cane: light skin tone",order:2195,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F9AF}"},{group:1,hexcode:"1F469-1F3FC-200D-1F9AF",label:"woman with white cane: medium-light skin tone",order:2196,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F9AF}"},{group:1,hexcode:"1F469-1F3FD-200D-1F9AF",label:"woman with white cane: medium skin tone",order:2197,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F9AF}"},{group:1,hexcode:"1F469-1F3FE-200D-1F9AF",label:"woman with white cane: medium-dark skin tone",order:2198,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F9AF}"},{group:1,hexcode:"1F469-1F3FF-200D-1F9AF",label:"woman with white cane: dark skin tone",order:2199,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F9AF}"}]},{group:1,hexcode:"1F469-200D-1F9AF-200D-27A1-FE0F",label:"woman with white cane facing right",order:2200,tags:["accessibility","blind","woman","woman with white cane"],unicode:"\u{1F469}\u200D\u{1F9AF}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F9AF-200D-27A1-FE0F",label:"woman with white cane facing right",order:2202,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FC-200D-1F9AF-200D-27A1-FE0F",label:"woman with white cane facing right",order:2204,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FD-200D-1F9AF-200D-27A1-FE0F",label:"woman with white cane facing right",order:2206,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FE-200D-1F9AF-200D-27A1-FE0F",label:"woman with white cane facing right",order:2208,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FF-200D-1F9AF-200D-27A1-FE0F",label:"woman with white cane facing right",order:2210,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F9AF}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F9D1-200D-1F9BC",label:"person in motorized wheelchair",order:2212,tags:["accessibility","wheelchair"],unicode:"\u{1F9D1}\u200D\u{1F9BC}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F9BC",label:"person in motorized wheelchair: light skin tone",order:2213,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F9BC}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F9BC",label:"person in motorized wheelchair: medium-light skin tone",order:2214,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F9BC}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F9BC",label:"person in motorized wheelchair: medium skin tone",order:2215,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F9BC}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F9BC",label:"person in motorized wheelchair: medium-dark skin tone",order:2216,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F9BC}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F9BC",label:"person in motorized wheelchair: dark skin tone",order:2217,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F9BC}"}]},{group:1,hexcode:"1F9D1-200D-1F9BC-200D-27A1-FE0F",label:"person in motorized wheelchair facing right",order:2218,tags:["accessibility","person in motorized wheelchair","wheelchair"],unicode:"\u{1F9D1}\u200D\u{1F9BC}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F9BC-200D-27A1-FE0F",label:"person in motorized wheelchair facing right",order:2220,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F9BC-200D-27A1-FE0F",label:"person in motorized wheelchair facing right",order:2222,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F9BC-200D-27A1-FE0F",label:"person in motorized wheelchair facing right",order:2224,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F9BC-200D-27A1-FE0F",label:"person in motorized wheelchair facing right",order:2226,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F9BC-200D-27A1-FE0F",label:"person in motorized wheelchair facing right",order:2228,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F468-200D-1F9BC",label:"man in motorized wheelchair",order:2230,tags:["accessibility","man","wheelchair"],unicode:"\u{1F468}\u200D\u{1F9BC}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F9BC",label:"man in motorized wheelchair: light skin tone",order:2231,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F9BC}"},{group:1,hexcode:"1F468-1F3FC-200D-1F9BC",label:"man in motorized wheelchair: medium-light skin tone",order:2232,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F9BC}"},{group:1,hexcode:"1F468-1F3FD-200D-1F9BC",label:"man in motorized wheelchair: medium skin tone",order:2233,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F9BC}"},{group:1,hexcode:"1F468-1F3FE-200D-1F9BC",label:"man in motorized wheelchair: medium-dark skin tone",order:2234,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F9BC}"},{group:1,hexcode:"1F468-1F3FF-200D-1F9BC",label:"man in motorized wheelchair: dark skin tone",order:2235,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F9BC}"}]},{group:1,hexcode:"1F468-200D-1F9BC-200D-27A1-FE0F",label:"man in motorized wheelchair facing right",order:2236,tags:["accessibility","man","man in motorized wheelchair","wheelchair"],unicode:"\u{1F468}\u200D\u{1F9BC}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F9BC-200D-27A1-FE0F",label:"man in motorized wheelchair facing right",order:2238,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FC-200D-1F9BC-200D-27A1-FE0F",label:"man in motorized wheelchair facing right",order:2240,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FD-200D-1F9BC-200D-27A1-FE0F",label:"man in motorized wheelchair facing right",order:2242,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FE-200D-1F9BC-200D-27A1-FE0F",label:"man in motorized wheelchair facing right",order:2244,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FF-200D-1F9BC-200D-27A1-FE0F",label:"man in motorized wheelchair facing right",order:2246,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F469-200D-1F9BC",label:"woman in motorized wheelchair",order:2248,tags:["accessibility","wheelchair","woman"],unicode:"\u{1F469}\u200D\u{1F9BC}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F9BC",label:"woman in motorized wheelchair: light skin tone",order:2249,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F9BC}"},{group:1,hexcode:"1F469-1F3FC-200D-1F9BC",label:"woman in motorized wheelchair: medium-light skin tone",order:2250,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F9BC}"},{group:1,hexcode:"1F469-1F3FD-200D-1F9BC",label:"woman in motorized wheelchair: medium skin tone",order:2251,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F9BC}"},{group:1,hexcode:"1F469-1F3FE-200D-1F9BC",label:"woman in motorized wheelchair: medium-dark skin tone",order:2252,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F9BC}"},{group:1,hexcode:"1F469-1F3FF-200D-1F9BC",label:"woman in motorized wheelchair: dark skin tone",order:2253,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F9BC}"}]},{group:1,hexcode:"1F469-200D-1F9BC-200D-27A1-FE0F",label:"woman in motorized wheelchair facing right",order:2254,tags:["accessibility","wheelchair","woman","woman in motorized wheelchair"],unicode:"\u{1F469}\u200D\u{1F9BC}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F9BC-200D-27A1-FE0F",label:"woman in motorized wheelchair facing right",order:2256,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FC-200D-1F9BC-200D-27A1-FE0F",label:"woman in motorized wheelchair facing right",order:2258,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FD-200D-1F9BC-200D-27A1-FE0F",label:"woman in motorized wheelchair facing right",order:2260,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FE-200D-1F9BC-200D-27A1-FE0F",label:"woman in motorized wheelchair facing right",order:2262,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FF-200D-1F9BC-200D-27A1-FE0F",label:"woman in motorized wheelchair facing right",order:2264,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F9BC}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F9D1-200D-1F9BD",label:"person in manual wheelchair",order:2266,tags:["accessibility","wheelchair"],unicode:"\u{1F9D1}\u200D\u{1F9BD}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F9BD",label:"person in manual wheelchair: light skin tone",order:2267,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F9BD}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F9BD",label:"person in manual wheelchair: medium-light skin tone",order:2268,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F9BD}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F9BD",label:"person in manual wheelchair: medium skin tone",order:2269,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F9BD}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F9BD",label:"person in manual wheelchair: medium-dark skin tone",order:2270,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F9BD}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F9BD",label:"person in manual wheelchair: dark skin tone",order:2271,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F9BD}"}]},{group:1,hexcode:"1F9D1-200D-1F9BD-200D-27A1-FE0F",label:"person in manual wheelchair facing right",order:2272,tags:["accessibility","person in manual wheelchair","wheelchair"],unicode:"\u{1F9D1}\u200D\u{1F9BD}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F9BD-200D-27A1-FE0F",label:"person in manual wheelchair facing right",order:2274,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F9BD-200D-27A1-FE0F",label:"person in manual wheelchair facing right",order:2276,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F9BD-200D-27A1-FE0F",label:"person in manual wheelchair facing right",order:2278,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F9BD-200D-27A1-FE0F",label:"person in manual wheelchair facing right",order:2280,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F9BD-200D-27A1-FE0F",label:"person in manual wheelchair facing right",order:2282,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F468-200D-1F9BD",label:"man in manual wheelchair",order:2284,tags:["accessibility","man","wheelchair"],unicode:"\u{1F468}\u200D\u{1F9BD}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F9BD",label:"man in manual wheelchair: light skin tone",order:2285,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F9BD}"},{group:1,hexcode:"1F468-1F3FC-200D-1F9BD",label:"man in manual wheelchair: medium-light skin tone",order:2286,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F9BD}"},{group:1,hexcode:"1F468-1F3FD-200D-1F9BD",label:"man in manual wheelchair: medium skin tone",order:2287,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F9BD}"},{group:1,hexcode:"1F468-1F3FE-200D-1F9BD",label:"man in manual wheelchair: medium-dark skin tone",order:2288,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F9BD}"},{group:1,hexcode:"1F468-1F3FF-200D-1F9BD",label:"man in manual wheelchair: dark skin tone",order:2289,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F9BD}"}]},{group:1,hexcode:"1F468-200D-1F9BD-200D-27A1-FE0F",label:"man in manual wheelchair facing right",order:2290,tags:["accessibility","man","man in manual wheelchair","wheelchair"],unicode:"\u{1F468}\u200D\u{1F9BD}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F468-1F3FB-200D-1F9BD-200D-27A1-FE0F",label:"man in manual wheelchair facing right",order:2292,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FC-200D-1F9BD-200D-27A1-FE0F",label:"man in manual wheelchair facing right",order:2294,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FD-200D-1F9BD-200D-27A1-FE0F",label:"man in manual wheelchair facing right",order:2296,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FE-200D-1F9BD-200D-27A1-FE0F",label:"man in manual wheelchair facing right",order:2298,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F468-1F3FF-200D-1F9BD-200D-27A1-FE0F",label:"man in manual wheelchair facing right",order:2300,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F469-200D-1F9BD",label:"woman in manual wheelchair",order:2302,tags:["accessibility","wheelchair","woman"],unicode:"\u{1F469}\u200D\u{1F9BD}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F9BD",label:"woman in manual wheelchair: light skin tone",order:2303,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F9BD}"},{group:1,hexcode:"1F469-1F3FC-200D-1F9BD",label:"woman in manual wheelchair: medium-light skin tone",order:2304,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F9BD}"},{group:1,hexcode:"1F469-1F3FD-200D-1F9BD",label:"woman in manual wheelchair: medium skin tone",order:2305,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F9BD}"},{group:1,hexcode:"1F469-1F3FE-200D-1F9BD",label:"woman in manual wheelchair: medium-dark skin tone",order:2306,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F9BD}"},{group:1,hexcode:"1F469-1F3FF-200D-1F9BD",label:"woman in manual wheelchair: dark skin tone",order:2307,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F9BD}"}]},{group:1,hexcode:"1F469-200D-1F9BD-200D-27A1-FE0F",label:"woman in manual wheelchair facing right",order:2308,tags:["accessibility","wheelchair","woman","woman in manual wheelchair"],unicode:"\u{1F469}\u200D\u{1F9BD}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F469-1F3FB-200D-1F9BD-200D-27A1-FE0F",label:"woman in manual wheelchair facing right",order:2310,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FC-200D-1F9BD-200D-27A1-FE0F",label:"woman in manual wheelchair facing right",order:2312,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FD-200D-1F9BD-200D-27A1-FE0F",label:"woman in manual wheelchair facing right",order:2314,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FE-200D-1F9BD-200D-27A1-FE0F",label:"woman in manual wheelchair facing right",order:2316,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F469-1F3FF-200D-1F9BD-200D-27A1-FE0F",label:"woman in manual wheelchair facing right",order:2318,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F9BD}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F3C3",label:"person running",order:2320,tags:["marathon","running"],unicode:"\u{1F3C3}",skins:[{group:1,hexcode:"1F3C3-1F3FB",label:"person running: light skin tone",order:2321,unicode:"\u{1F3C3}\u{1F3FB}"},{group:1,hexcode:"1F3C3-1F3FC",label:"person running: medium-light skin tone",order:2322,unicode:"\u{1F3C3}\u{1F3FC}"},{group:1,hexcode:"1F3C3-1F3FD",label:"person running: medium skin tone",order:2323,unicode:"\u{1F3C3}\u{1F3FD}"},{group:1,hexcode:"1F3C3-1F3FE",label:"person running: medium-dark skin tone",order:2324,unicode:"\u{1F3C3}\u{1F3FE}"},{group:1,hexcode:"1F3C3-1F3FF",label:"person running: dark skin tone",order:2325,unicode:"\u{1F3C3}\u{1F3FF}"}]},{group:1,hexcode:"1F3C3-200D-2642-FE0F",label:"man running",order:2326,tags:["man","marathon","racing","running"],unicode:"\u{1F3C3}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F3C3-1F3FB-200D-2642-FE0F",label:"man running: light skin tone",order:2328,unicode:"\u{1F3C3}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3C3-1F3FC-200D-2642-FE0F",label:"man running: medium-light skin tone",order:2330,unicode:"\u{1F3C3}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3C3-1F3FD-200D-2642-FE0F",label:"man running: medium skin tone",order:2332,unicode:"\u{1F3C3}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3C3-1F3FE-200D-2642-FE0F",label:"man running: medium-dark skin tone",order:2334,unicode:"\u{1F3C3}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3C3-1F3FF-200D-2642-FE0F",label:"man running: dark skin tone",order:2336,unicode:"\u{1F3C3}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F3C3-200D-2640-FE0F",label:"woman running",order:2338,tags:["marathon","racing","running","woman"],unicode:"\u{1F3C3}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F3C3-1F3FB-200D-2640-FE0F",label:"woman running: light skin tone",order:2340,unicode:"\u{1F3C3}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3C3-1F3FC-200D-2640-FE0F",label:"woman running: medium-light skin tone",order:2342,unicode:"\u{1F3C3}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3C3-1F3FD-200D-2640-FE0F",label:"woman running: medium skin tone",order:2344,unicode:"\u{1F3C3}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3C3-1F3FE-200D-2640-FE0F",label:"woman running: medium-dark skin tone",order:2346,unicode:"\u{1F3C3}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3C3-1F3FF-200D-2640-FE0F",label:"woman running: dark skin tone",order:2348,unicode:"\u{1F3C3}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F3C3-200D-27A1-FE0F",label:"person running facing right",order:2350,tags:["marathon","person running","running"],unicode:"\u{1F3C3}\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F3C3-1F3FB-200D-27A1-FE0F",label:"person running facing right",order:2352,unicode:"\u{1F3C3}\u{1F3FB}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FC-200D-27A1-FE0F",label:"person running facing right",order:2354,unicode:"\u{1F3C3}\u{1F3FC}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FD-200D-27A1-FE0F",label:"person running facing right",order:2356,unicode:"\u{1F3C3}\u{1F3FD}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FE-200D-27A1-FE0F",label:"person running facing right",order:2358,unicode:"\u{1F3C3}\u{1F3FE}\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FF-200D-27A1-FE0F",label:"person running facing right",order:2360,unicode:"\u{1F3C3}\u{1F3FF}\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F3C3-200D-2640-FE0F-200D-27A1-FE0F",label:"woman running facing right",order:2362,tags:["marathon","racing","running","woman"],unicode:"\u{1F3C3}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F3C3-1F3FB-200D-2640-FE0F-200D-27A1-FE0F",label:"woman running facing right",order:2366,unicode:"\u{1F3C3}\u{1F3FB}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FC-200D-2640-FE0F-200D-27A1-FE0F",label:"woman running facing right",order:2370,unicode:"\u{1F3C3}\u{1F3FC}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FD-200D-2640-FE0F-200D-27A1-FE0F",label:"woman running facing right",order:2374,unicode:"\u{1F3C3}\u{1F3FD}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FE-200D-2640-FE0F-200D-27A1-FE0F",label:"woman running facing right",order:2378,unicode:"\u{1F3C3}\u{1F3FE}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FF-200D-2640-FE0F-200D-27A1-FE0F",label:"woman running facing right",order:2382,unicode:"\u{1F3C3}\u{1F3FF}\u200D\u2640\uFE0F\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F3C3-200D-2642-FE0F-200D-27A1-FE0F",label:"man running facing right",order:2386,tags:["man","marathon","racing","running"],unicode:"\u{1F3C3}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F",skins:[{group:1,hexcode:"1F3C3-1F3FB-200D-2642-FE0F-200D-27A1-FE0F",label:"man running facing right",order:2390,unicode:"\u{1F3C3}\u{1F3FB}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FC-200D-2642-FE0F-200D-27A1-FE0F",label:"man running facing right",order:2394,unicode:"\u{1F3C3}\u{1F3FC}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FD-200D-2642-FE0F-200D-27A1-FE0F",label:"man running facing right",order:2398,unicode:"\u{1F3C3}\u{1F3FD}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FE-200D-2642-FE0F-200D-27A1-FE0F",label:"man running facing right",order:2402,unicode:"\u{1F3C3}\u{1F3FE}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"},{group:1,hexcode:"1F3C3-1F3FF-200D-2642-FE0F-200D-27A1-FE0F",label:"man running facing right",order:2406,unicode:"\u{1F3C3}\u{1F3FF}\u200D\u2642\uFE0F\u200D\u27A1\uFE0F"}]},{group:1,hexcode:"1F483",label:"woman dancing",order:2410,tags:["dance","dancing","woman"],unicode:"\u{1F483}",skins:[{group:1,hexcode:"1F483-1F3FB",label:"woman dancing: light skin tone",order:2411,unicode:"\u{1F483}\u{1F3FB}"},{group:1,hexcode:"1F483-1F3FC",label:"woman dancing: medium-light skin tone",order:2412,unicode:"\u{1F483}\u{1F3FC}"},{group:1,hexcode:"1F483-1F3FD",label:"woman dancing: medium skin tone",order:2413,unicode:"\u{1F483}\u{1F3FD}"},{group:1,hexcode:"1F483-1F3FE",label:"woman dancing: medium-dark skin tone",order:2414,unicode:"\u{1F483}\u{1F3FE}"},{group:1,hexcode:"1F483-1F3FF",label:"woman dancing: dark skin tone",order:2415,unicode:"\u{1F483}\u{1F3FF}"}]},{group:1,hexcode:"1F57A",label:"man dancing",order:2416,tags:["dance","dancing","man"],unicode:"\u{1F57A}",skins:[{group:1,hexcode:"1F57A-1F3FB",label:"man dancing: light skin tone",order:2417,unicode:"\u{1F57A}\u{1F3FB}"},{group:1,hexcode:"1F57A-1F3FC",label:"man dancing: medium-light skin tone",order:2418,unicode:"\u{1F57A}\u{1F3FC}"},{group:1,hexcode:"1F57A-1F3FD",label:"man dancing: medium skin tone",order:2419,unicode:"\u{1F57A}\u{1F3FD}"},{group:1,hexcode:"1F57A-1F3FE",label:"man dancing: medium-dark skin tone",order:2420,unicode:"\u{1F57A}\u{1F3FE}"},{group:1,hexcode:"1F57A-1F3FF",label:"man dancing: dark skin tone",order:2421,unicode:"\u{1F57A}\u{1F3FF}"}]},{group:1,hexcode:"1F574",label:"person in suit levitating",order:2423,tags:["business","person","suit"],unicode:"\u{1F574}\uFE0F",skins:[{group:1,hexcode:"1F574-1F3FB",label:"person in suit levitating: light skin tone",order:2424,unicode:"\u{1F574}\u{1F3FB}"},{group:1,hexcode:"1F574-1F3FC",label:"person in suit levitating: medium-light skin tone",order:2425,unicode:"\u{1F574}\u{1F3FC}"},{group:1,hexcode:"1F574-1F3FD",label:"person in suit levitating: medium skin tone",order:2426,unicode:"\u{1F574}\u{1F3FD}"},{group:1,hexcode:"1F574-1F3FE",label:"person in suit levitating: medium-dark skin tone",order:2427,unicode:"\u{1F574}\u{1F3FE}"},{group:1,hexcode:"1F574-1F3FF",label:"person in suit levitating: dark skin tone",order:2428,unicode:"\u{1F574}\u{1F3FF}"}]},{group:1,hexcode:"1F46F",label:"people with bunny ears",order:2429,tags:["bunny ear","dancer","partying"],unicode:"\u{1F46F}"},{group:1,hexcode:"1F46F-200D-2642-FE0F",label:"men with bunny ears",order:2430,tags:["bunny ear","dancer","men","partying"],unicode:"\u{1F46F}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F46F-200D-2640-FE0F",label:"women with bunny ears",order:2432,tags:["bunny ear","dancer","partying","women"],unicode:"\u{1F46F}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D6",label:"person in steamy room",order:2434,tags:["sauna","steam room"],unicode:"\u{1F9D6}",skins:[{group:1,hexcode:"1F9D6-1F3FB",label:"person in steamy room: light skin tone",order:2435,unicode:"\u{1F9D6}\u{1F3FB}"},{group:1,hexcode:"1F9D6-1F3FC",label:"person in steamy room: medium-light skin tone",order:2436,unicode:"\u{1F9D6}\u{1F3FC}"},{group:1,hexcode:"1F9D6-1F3FD",label:"person in steamy room: medium skin tone",order:2437,unicode:"\u{1F9D6}\u{1F3FD}"},{group:1,hexcode:"1F9D6-1F3FE",label:"person in steamy room: medium-dark skin tone",order:2438,unicode:"\u{1F9D6}\u{1F3FE}"},{group:1,hexcode:"1F9D6-1F3FF",label:"person in steamy room: dark skin tone",order:2439,unicode:"\u{1F9D6}\u{1F3FF}"}]},{group:1,hexcode:"1F9D6-200D-2642-FE0F",label:"man in steamy room",order:2440,tags:["sauna","steam room"],unicode:"\u{1F9D6}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9D6-1F3FB-200D-2642-FE0F",label:"man in steamy room: light skin tone",order:2442,unicode:"\u{1F9D6}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D6-1F3FC-200D-2642-FE0F",label:"man in steamy room: medium-light skin tone",order:2444,unicode:"\u{1F9D6}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D6-1F3FD-200D-2642-FE0F",label:"man in steamy room: medium skin tone",order:2446,unicode:"\u{1F9D6}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D6-1F3FE-200D-2642-FE0F",label:"man in steamy room: medium-dark skin tone",order:2448,unicode:"\u{1F9D6}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D6-1F3FF-200D-2642-FE0F",label:"man in steamy room: dark skin tone",order:2450,unicode:"\u{1F9D6}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9D6-200D-2640-FE0F",label:"woman in steamy room",order:2452,tags:["sauna","steam room"],unicode:"\u{1F9D6}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9D6-1F3FB-200D-2640-FE0F",label:"woman in steamy room: light skin tone",order:2454,unicode:"\u{1F9D6}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D6-1F3FC-200D-2640-FE0F",label:"woman in steamy room: medium-light skin tone",order:2456,unicode:"\u{1F9D6}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D6-1F3FD-200D-2640-FE0F",label:"woman in steamy room: medium skin tone",order:2458,unicode:"\u{1F9D6}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D6-1F3FE-200D-2640-FE0F",label:"woman in steamy room: medium-dark skin tone",order:2460,unicode:"\u{1F9D6}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D6-1F3FF-200D-2640-FE0F",label:"woman in steamy room: dark skin tone",order:2462,unicode:"\u{1F9D6}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9D7",label:"person climbing",order:2464,tags:["climber"],unicode:"\u{1F9D7}",skins:[{group:1,hexcode:"1F9D7-1F3FB",label:"person climbing: light skin tone",order:2465,unicode:"\u{1F9D7}\u{1F3FB}"},{group:1,hexcode:"1F9D7-1F3FC",label:"person climbing: medium-light skin tone",order:2466,unicode:"\u{1F9D7}\u{1F3FC}"},{group:1,hexcode:"1F9D7-1F3FD",label:"person climbing: medium skin tone",order:2467,unicode:"\u{1F9D7}\u{1F3FD}"},{group:1,hexcode:"1F9D7-1F3FE",label:"person climbing: medium-dark skin tone",order:2468,unicode:"\u{1F9D7}\u{1F3FE}"},{group:1,hexcode:"1F9D7-1F3FF",label:"person climbing: dark skin tone",order:2469,unicode:"\u{1F9D7}\u{1F3FF}"}]},{group:1,hexcode:"1F9D7-200D-2642-FE0F",label:"man climbing",order:2470,tags:["climber"],unicode:"\u{1F9D7}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9D7-1F3FB-200D-2642-FE0F",label:"man climbing: light skin tone",order:2472,unicode:"\u{1F9D7}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D7-1F3FC-200D-2642-FE0F",label:"man climbing: medium-light skin tone",order:2474,unicode:"\u{1F9D7}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D7-1F3FD-200D-2642-FE0F",label:"man climbing: medium skin tone",order:2476,unicode:"\u{1F9D7}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D7-1F3FE-200D-2642-FE0F",label:"man climbing: medium-dark skin tone",order:2478,unicode:"\u{1F9D7}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D7-1F3FF-200D-2642-FE0F",label:"man climbing: dark skin tone",order:2480,unicode:"\u{1F9D7}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9D7-200D-2640-FE0F",label:"woman climbing",order:2482,tags:["climber"],unicode:"\u{1F9D7}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9D7-1F3FB-200D-2640-FE0F",label:"woman climbing: light skin tone",order:2484,unicode:"\u{1F9D7}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D7-1F3FC-200D-2640-FE0F",label:"woman climbing: medium-light skin tone",order:2486,unicode:"\u{1F9D7}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D7-1F3FD-200D-2640-FE0F",label:"woman climbing: medium skin tone",order:2488,unicode:"\u{1F9D7}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D7-1F3FE-200D-2640-FE0F",label:"woman climbing: medium-dark skin tone",order:2490,unicode:"\u{1F9D7}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D7-1F3FF-200D-2640-FE0F",label:"woman climbing: dark skin tone",order:2492,unicode:"\u{1F9D7}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F93A",label:"person fencing",order:2494,tags:["fencer","fencing","sword"],unicode:"\u{1F93A}"},{group:1,hexcode:"1F3C7",label:"horse racing",order:2495,tags:["horse","jockey","racehorse","racing"],unicode:"\u{1F3C7}",skins:[{group:1,hexcode:"1F3C7-1F3FB",label:"horse racing: light skin tone",order:2496,unicode:"\u{1F3C7}\u{1F3FB}"},{group:1,hexcode:"1F3C7-1F3FC",label:"horse racing: medium-light skin tone",order:2497,unicode:"\u{1F3C7}\u{1F3FC}"},{group:1,hexcode:"1F3C7-1F3FD",label:"horse racing: medium skin tone",order:2498,unicode:"\u{1F3C7}\u{1F3FD}"},{group:1,hexcode:"1F3C7-1F3FE",label:"horse racing: medium-dark skin tone",order:2499,unicode:"\u{1F3C7}\u{1F3FE}"},{group:1,hexcode:"1F3C7-1F3FF",label:"horse racing: dark skin tone",order:2500,unicode:"\u{1F3C7}\u{1F3FF}"}]},{group:1,hexcode:"26F7",label:"skier",order:2502,tags:["ski","snow"],unicode:"\u26F7\uFE0F"},{group:1,hexcode:"1F3C2",label:"snowboarder",order:2503,tags:["ski","snow","snowboard"],unicode:"\u{1F3C2}\uFE0F",skins:[{group:1,hexcode:"1F3C2-1F3FB",label:"snowboarder: light skin tone",order:2504,unicode:"\u{1F3C2}\u{1F3FB}"},{group:1,hexcode:"1F3C2-1F3FC",label:"snowboarder: medium-light skin tone",order:2505,unicode:"\u{1F3C2}\u{1F3FC}"},{group:1,hexcode:"1F3C2-1F3FD",label:"snowboarder: medium skin tone",order:2506,unicode:"\u{1F3C2}\u{1F3FD}"},{group:1,hexcode:"1F3C2-1F3FE",label:"snowboarder: medium-dark skin tone",order:2507,unicode:"\u{1F3C2}\u{1F3FE}"},{group:1,hexcode:"1F3C2-1F3FF",label:"snowboarder: dark skin tone",order:2508,unicode:"\u{1F3C2}\u{1F3FF}"}]},{group:1,hexcode:"1F3CC",label:"person golfing",order:2510,tags:["ball","golf"],unicode:"\u{1F3CC}\uFE0F",skins:[{group:1,hexcode:"1F3CC-1F3FB",label:"person golfing: light skin tone",order:2511,unicode:"\u{1F3CC}\u{1F3FB}"},{group:1,hexcode:"1F3CC-1F3FC",label:"person golfing: medium-light skin tone",order:2512,unicode:"\u{1F3CC}\u{1F3FC}"},{group:1,hexcode:"1F3CC-1F3FD",label:"person golfing: medium skin tone",order:2513,unicode:"\u{1F3CC}\u{1F3FD}"},{group:1,hexcode:"1F3CC-1F3FE",label:"person golfing: medium-dark skin tone",order:2514,unicode:"\u{1F3CC}\u{1F3FE}"},{group:1,hexcode:"1F3CC-1F3FF",label:"person golfing: dark skin tone",order:2515,unicode:"\u{1F3CC}\u{1F3FF}"}]},{group:1,hexcode:"1F3CC-FE0F-200D-2642-FE0F",label:"man golfing",order:2516,tags:["golf","man"],unicode:"\u{1F3CC}\uFE0F\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F3CC-1F3FB-200D-2642-FE0F",label:"man golfing: light skin tone",order:2520,unicode:"\u{1F3CC}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CC-1F3FC-200D-2642-FE0F",label:"man golfing: medium-light skin tone",order:2522,unicode:"\u{1F3CC}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CC-1F3FD-200D-2642-FE0F",label:"man golfing: medium skin tone",order:2524,unicode:"\u{1F3CC}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CC-1F3FE-200D-2642-FE0F",label:"man golfing: medium-dark skin tone",order:2526,unicode:"\u{1F3CC}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CC-1F3FF-200D-2642-FE0F",label:"man golfing: dark skin tone",order:2528,unicode:"\u{1F3CC}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F3CC-FE0F-200D-2640-FE0F",label:"woman golfing",order:2530,tags:["golf","woman"],unicode:"\u{1F3CC}\uFE0F\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F3CC-1F3FB-200D-2640-FE0F",label:"woman golfing: light skin tone",order:2534,unicode:"\u{1F3CC}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CC-1F3FC-200D-2640-FE0F",label:"woman golfing: medium-light skin tone",order:2536,unicode:"\u{1F3CC}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CC-1F3FD-200D-2640-FE0F",label:"woman golfing: medium skin tone",order:2538,unicode:"\u{1F3CC}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CC-1F3FE-200D-2640-FE0F",label:"woman golfing: medium-dark skin tone",order:2540,unicode:"\u{1F3CC}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CC-1F3FF-200D-2640-FE0F",label:"woman golfing: dark skin tone",order:2542,unicode:"\u{1F3CC}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F3C4",label:"person surfing",order:2544,tags:["surfing"],unicode:"\u{1F3C4}\uFE0F",skins:[{group:1,hexcode:"1F3C4-1F3FB",label:"person surfing: light skin tone",order:2545,unicode:"\u{1F3C4}\u{1F3FB}"},{group:1,hexcode:"1F3C4-1F3FC",label:"person surfing: medium-light skin tone",order:2546,unicode:"\u{1F3C4}\u{1F3FC}"},{group:1,hexcode:"1F3C4-1F3FD",label:"person surfing: medium skin tone",order:2547,unicode:"\u{1F3C4}\u{1F3FD}"},{group:1,hexcode:"1F3C4-1F3FE",label:"person surfing: medium-dark skin tone",order:2548,unicode:"\u{1F3C4}\u{1F3FE}"},{group:1,hexcode:"1F3C4-1F3FF",label:"person surfing: dark skin tone",order:2549,unicode:"\u{1F3C4}\u{1F3FF}"}]},{group:1,hexcode:"1F3C4-200D-2642-FE0F",label:"man surfing",order:2550,tags:["man","surfing"],unicode:"\u{1F3C4}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F3C4-1F3FB-200D-2642-FE0F",label:"man surfing: light skin tone",order:2552,unicode:"\u{1F3C4}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3C4-1F3FC-200D-2642-FE0F",label:"man surfing: medium-light skin tone",order:2554,unicode:"\u{1F3C4}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3C4-1F3FD-200D-2642-FE0F",label:"man surfing: medium skin tone",order:2556,unicode:"\u{1F3C4}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3C4-1F3FE-200D-2642-FE0F",label:"man surfing: medium-dark skin tone",order:2558,unicode:"\u{1F3C4}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3C4-1F3FF-200D-2642-FE0F",label:"man surfing: dark skin tone",order:2560,unicode:"\u{1F3C4}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F3C4-200D-2640-FE0F",label:"woman surfing",order:2562,tags:["surfing","woman"],unicode:"\u{1F3C4}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F3C4-1F3FB-200D-2640-FE0F",label:"woman surfing: light skin tone",order:2564,unicode:"\u{1F3C4}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3C4-1F3FC-200D-2640-FE0F",label:"woman surfing: medium-light skin tone",order:2566,unicode:"\u{1F3C4}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3C4-1F3FD-200D-2640-FE0F",label:"woman surfing: medium skin tone",order:2568,unicode:"\u{1F3C4}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3C4-1F3FE-200D-2640-FE0F",label:"woman surfing: medium-dark skin tone",order:2570,unicode:"\u{1F3C4}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3C4-1F3FF-200D-2640-FE0F",label:"woman surfing: dark skin tone",order:2572,unicode:"\u{1F3C4}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F6A3",label:"person rowing boat",order:2574,tags:["boat","rowboat"],unicode:"\u{1F6A3}",skins:[{group:1,hexcode:"1F6A3-1F3FB",label:"person rowing boat: light skin tone",order:2575,unicode:"\u{1F6A3}\u{1F3FB}"},{group:1,hexcode:"1F6A3-1F3FC",label:"person rowing boat: medium-light skin tone",order:2576,unicode:"\u{1F6A3}\u{1F3FC}"},{group:1,hexcode:"1F6A3-1F3FD",label:"person rowing boat: medium skin tone",order:2577,unicode:"\u{1F6A3}\u{1F3FD}"},{group:1,hexcode:"1F6A3-1F3FE",label:"person rowing boat: medium-dark skin tone",order:2578,unicode:"\u{1F6A3}\u{1F3FE}"},{group:1,hexcode:"1F6A3-1F3FF",label:"person rowing boat: dark skin tone",order:2579,unicode:"\u{1F6A3}\u{1F3FF}"}]},{group:1,hexcode:"1F6A3-200D-2642-FE0F",label:"man rowing boat",order:2580,tags:["boat","man","rowboat"],unicode:"\u{1F6A3}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F6A3-1F3FB-200D-2642-FE0F",label:"man rowing boat: light skin tone",order:2582,unicode:"\u{1F6A3}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6A3-1F3FC-200D-2642-FE0F",label:"man rowing boat: medium-light skin tone",order:2584,unicode:"\u{1F6A3}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6A3-1F3FD-200D-2642-FE0F",label:"man rowing boat: medium skin tone",order:2586,unicode:"\u{1F6A3}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6A3-1F3FE-200D-2642-FE0F",label:"man rowing boat: medium-dark skin tone",order:2588,unicode:"\u{1F6A3}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6A3-1F3FF-200D-2642-FE0F",label:"man rowing boat: dark skin tone",order:2590,unicode:"\u{1F6A3}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F6A3-200D-2640-FE0F",label:"woman rowing boat",order:2592,tags:["boat","rowboat","woman"],unicode:"\u{1F6A3}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F6A3-1F3FB-200D-2640-FE0F",label:"woman rowing boat: light skin tone",order:2594,unicode:"\u{1F6A3}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6A3-1F3FC-200D-2640-FE0F",label:"woman rowing boat: medium-light skin tone",order:2596,unicode:"\u{1F6A3}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6A3-1F3FD-200D-2640-FE0F",label:"woman rowing boat: medium skin tone",order:2598,unicode:"\u{1F6A3}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6A3-1F3FE-200D-2640-FE0F",label:"woman rowing boat: medium-dark skin tone",order:2600,unicode:"\u{1F6A3}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6A3-1F3FF-200D-2640-FE0F",label:"woman rowing boat: dark skin tone",order:2602,unicode:"\u{1F6A3}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F3CA",label:"person swimming",order:2604,tags:["swim"],unicode:"\u{1F3CA}\uFE0F",skins:[{group:1,hexcode:"1F3CA-1F3FB",label:"person swimming: light skin tone",order:2605,unicode:"\u{1F3CA}\u{1F3FB}"},{group:1,hexcode:"1F3CA-1F3FC",label:"person swimming: medium-light skin tone",order:2606,unicode:"\u{1F3CA}\u{1F3FC}"},{group:1,hexcode:"1F3CA-1F3FD",label:"person swimming: medium skin tone",order:2607,unicode:"\u{1F3CA}\u{1F3FD}"},{group:1,hexcode:"1F3CA-1F3FE",label:"person swimming: medium-dark skin tone",order:2608,unicode:"\u{1F3CA}\u{1F3FE}"},{group:1,hexcode:"1F3CA-1F3FF",label:"person swimming: dark skin tone",order:2609,unicode:"\u{1F3CA}\u{1F3FF}"}]},{group:1,hexcode:"1F3CA-200D-2642-FE0F",label:"man swimming",order:2610,tags:["man","swim"],unicode:"\u{1F3CA}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F3CA-1F3FB-200D-2642-FE0F",label:"man swimming: light skin tone",order:2612,unicode:"\u{1F3CA}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CA-1F3FC-200D-2642-FE0F",label:"man swimming: medium-light skin tone",order:2614,unicode:"\u{1F3CA}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CA-1F3FD-200D-2642-FE0F",label:"man swimming: medium skin tone",order:2616,unicode:"\u{1F3CA}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CA-1F3FE-200D-2642-FE0F",label:"man swimming: medium-dark skin tone",order:2618,unicode:"\u{1F3CA}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CA-1F3FF-200D-2642-FE0F",label:"man swimming: dark skin tone",order:2620,unicode:"\u{1F3CA}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F3CA-200D-2640-FE0F",label:"woman swimming",order:2622,tags:["swim","woman"],unicode:"\u{1F3CA}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F3CA-1F3FB-200D-2640-FE0F",label:"woman swimming: light skin tone",order:2624,unicode:"\u{1F3CA}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CA-1F3FC-200D-2640-FE0F",label:"woman swimming: medium-light skin tone",order:2626,unicode:"\u{1F3CA}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CA-1F3FD-200D-2640-FE0F",label:"woman swimming: medium skin tone",order:2628,unicode:"\u{1F3CA}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CA-1F3FE-200D-2640-FE0F",label:"woman swimming: medium-dark skin tone",order:2630,unicode:"\u{1F3CA}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CA-1F3FF-200D-2640-FE0F",label:"woman swimming: dark skin tone",order:2632,unicode:"\u{1F3CA}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"26F9",label:"person bouncing ball",order:2635,tags:["ball"],unicode:"\u26F9\uFE0F",skins:[{group:1,hexcode:"26F9-1F3FB",label:"person bouncing ball: light skin tone",order:2636,unicode:"\u26F9\u{1F3FB}"},{group:1,hexcode:"26F9-1F3FC",label:"person bouncing ball: medium-light skin tone",order:2637,unicode:"\u26F9\u{1F3FC}"},{group:1,hexcode:"26F9-1F3FD",label:"person bouncing ball: medium skin tone",order:2638,unicode:"\u26F9\u{1F3FD}"},{group:1,hexcode:"26F9-1F3FE",label:"person bouncing ball: medium-dark skin tone",order:2639,unicode:"\u26F9\u{1F3FE}"},{group:1,hexcode:"26F9-1F3FF",label:"person bouncing ball: dark skin tone",order:2640,unicode:"\u26F9\u{1F3FF}"}]},{group:1,hexcode:"26F9-FE0F-200D-2642-FE0F",label:"man bouncing ball",order:2641,tags:["ball","man"],unicode:"\u26F9\uFE0F\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"26F9-1F3FB-200D-2642-FE0F",label:"man bouncing ball: light skin tone",order:2645,unicode:"\u26F9\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"26F9-1F3FC-200D-2642-FE0F",label:"man bouncing ball: medium-light skin tone",order:2647,unicode:"\u26F9\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"26F9-1F3FD-200D-2642-FE0F",label:"man bouncing ball: medium skin tone",order:2649,unicode:"\u26F9\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"26F9-1F3FE-200D-2642-FE0F",label:"man bouncing ball: medium-dark skin tone",order:2651,unicode:"\u26F9\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"26F9-1F3FF-200D-2642-FE0F",label:"man bouncing ball: dark skin tone",order:2653,unicode:"\u26F9\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"26F9-FE0F-200D-2640-FE0F",label:"woman bouncing ball",order:2655,tags:["ball","woman"],unicode:"\u26F9\uFE0F\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"26F9-1F3FB-200D-2640-FE0F",label:"woman bouncing ball: light skin tone",order:2659,unicode:"\u26F9\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"26F9-1F3FC-200D-2640-FE0F",label:"woman bouncing ball: medium-light skin tone",order:2661,unicode:"\u26F9\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"26F9-1F3FD-200D-2640-FE0F",label:"woman bouncing ball: medium skin tone",order:2663,unicode:"\u26F9\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"26F9-1F3FE-200D-2640-FE0F",label:"woman bouncing ball: medium-dark skin tone",order:2665,unicode:"\u26F9\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"26F9-1F3FF-200D-2640-FE0F",label:"woman bouncing ball: dark skin tone",order:2667,unicode:"\u26F9\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F3CB",label:"person lifting weights",order:2670,tags:["lifter","weight"],unicode:"\u{1F3CB}\uFE0F",skins:[{group:1,hexcode:"1F3CB-1F3FB",label:"person lifting weights: light skin tone",order:2671,unicode:"\u{1F3CB}\u{1F3FB}"},{group:1,hexcode:"1F3CB-1F3FC",label:"person lifting weights: medium-light skin tone",order:2672,unicode:"\u{1F3CB}\u{1F3FC}"},{group:1,hexcode:"1F3CB-1F3FD",label:"person lifting weights: medium skin tone",order:2673,unicode:"\u{1F3CB}\u{1F3FD}"},{group:1,hexcode:"1F3CB-1F3FE",label:"person lifting weights: medium-dark skin tone",order:2674,unicode:"\u{1F3CB}\u{1F3FE}"},{group:1,hexcode:"1F3CB-1F3FF",label:"person lifting weights: dark skin tone",order:2675,unicode:"\u{1F3CB}\u{1F3FF}"}]},{group:1,hexcode:"1F3CB-FE0F-200D-2642-FE0F",label:"man lifting weights",order:2676,tags:["man","weight lifter"],unicode:"\u{1F3CB}\uFE0F\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F3CB-1F3FB-200D-2642-FE0F",label:"man lifting weights: light skin tone",order:2680,unicode:"\u{1F3CB}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CB-1F3FC-200D-2642-FE0F",label:"man lifting weights: medium-light skin tone",order:2682,unicode:"\u{1F3CB}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CB-1F3FD-200D-2642-FE0F",label:"man lifting weights: medium skin tone",order:2684,unicode:"\u{1F3CB}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CB-1F3FE-200D-2642-FE0F",label:"man lifting weights: medium-dark skin tone",order:2686,unicode:"\u{1F3CB}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F3CB-1F3FF-200D-2642-FE0F",label:"man lifting weights: dark skin tone",order:2688,unicode:"\u{1F3CB}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F3CB-FE0F-200D-2640-FE0F",label:"woman lifting weights",order:2690,tags:["weight lifter","woman"],unicode:"\u{1F3CB}\uFE0F\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F3CB-1F3FB-200D-2640-FE0F",label:"woman lifting weights: light skin tone",order:2694,unicode:"\u{1F3CB}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CB-1F3FC-200D-2640-FE0F",label:"woman lifting weights: medium-light skin tone",order:2696,unicode:"\u{1F3CB}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CB-1F3FD-200D-2640-FE0F",label:"woman lifting weights: medium skin tone",order:2698,unicode:"\u{1F3CB}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CB-1F3FE-200D-2640-FE0F",label:"woman lifting weights: medium-dark skin tone",order:2700,unicode:"\u{1F3CB}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F3CB-1F3FF-200D-2640-FE0F",label:"woman lifting weights: dark skin tone",order:2702,unicode:"\u{1F3CB}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F6B4",label:"person biking",order:2704,tags:["bicycle","biking","cyclist"],unicode:"\u{1F6B4}",skins:[{group:1,hexcode:"1F6B4-1F3FB",label:"person biking: light skin tone",order:2705,unicode:"\u{1F6B4}\u{1F3FB}"},{group:1,hexcode:"1F6B4-1F3FC",label:"person biking: medium-light skin tone",order:2706,unicode:"\u{1F6B4}\u{1F3FC}"},{group:1,hexcode:"1F6B4-1F3FD",label:"person biking: medium skin tone",order:2707,unicode:"\u{1F6B4}\u{1F3FD}"},{group:1,hexcode:"1F6B4-1F3FE",label:"person biking: medium-dark skin tone",order:2708,unicode:"\u{1F6B4}\u{1F3FE}"},{group:1,hexcode:"1F6B4-1F3FF",label:"person biking: dark skin tone",order:2709,unicode:"\u{1F6B4}\u{1F3FF}"}]},{group:1,hexcode:"1F6B4-200D-2642-FE0F",label:"man biking",order:2710,tags:["bicycle","biking","cyclist","man"],unicode:"\u{1F6B4}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F6B4-1F3FB-200D-2642-FE0F",label:"man biking: light skin tone",order:2712,unicode:"\u{1F6B4}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B4-1F3FC-200D-2642-FE0F",label:"man biking: medium-light skin tone",order:2714,unicode:"\u{1F6B4}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B4-1F3FD-200D-2642-FE0F",label:"man biking: medium skin tone",order:2716,unicode:"\u{1F6B4}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B4-1F3FE-200D-2642-FE0F",label:"man biking: medium-dark skin tone",order:2718,unicode:"\u{1F6B4}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B4-1F3FF-200D-2642-FE0F",label:"man biking: dark skin tone",order:2720,unicode:"\u{1F6B4}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F6B4-200D-2640-FE0F",label:"woman biking",order:2722,tags:["bicycle","biking","cyclist","woman"],unicode:"\u{1F6B4}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F6B4-1F3FB-200D-2640-FE0F",label:"woman biking: light skin tone",order:2724,unicode:"\u{1F6B4}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B4-1F3FC-200D-2640-FE0F",label:"woman biking: medium-light skin tone",order:2726,unicode:"\u{1F6B4}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B4-1F3FD-200D-2640-FE0F",label:"woman biking: medium skin tone",order:2728,unicode:"\u{1F6B4}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B4-1F3FE-200D-2640-FE0F",label:"woman biking: medium-dark skin tone",order:2730,unicode:"\u{1F6B4}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B4-1F3FF-200D-2640-FE0F",label:"woman biking: dark skin tone",order:2732,unicode:"\u{1F6B4}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F6B5",label:"person mountain biking",order:2734,tags:["bicycle","bicyclist","bike","cyclist","mountain"],unicode:"\u{1F6B5}",skins:[{group:1,hexcode:"1F6B5-1F3FB",label:"person mountain biking: light skin tone",order:2735,unicode:"\u{1F6B5}\u{1F3FB}"},{group:1,hexcode:"1F6B5-1F3FC",label:"person mountain biking: medium-light skin tone",order:2736,unicode:"\u{1F6B5}\u{1F3FC}"},{group:1,hexcode:"1F6B5-1F3FD",label:"person mountain biking: medium skin tone",order:2737,unicode:"\u{1F6B5}\u{1F3FD}"},{group:1,hexcode:"1F6B5-1F3FE",label:"person mountain biking: medium-dark skin tone",order:2738,unicode:"\u{1F6B5}\u{1F3FE}"},{group:1,hexcode:"1F6B5-1F3FF",label:"person mountain biking: dark skin tone",order:2739,unicode:"\u{1F6B5}\u{1F3FF}"}]},{group:1,hexcode:"1F6B5-200D-2642-FE0F",label:"man mountain biking",order:2740,tags:["bicycle","bike","cyclist","man","mountain"],unicode:"\u{1F6B5}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F6B5-1F3FB-200D-2642-FE0F",label:"man mountain biking: light skin tone",order:2742,unicode:"\u{1F6B5}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B5-1F3FC-200D-2642-FE0F",label:"man mountain biking: medium-light skin tone",order:2744,unicode:"\u{1F6B5}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B5-1F3FD-200D-2642-FE0F",label:"man mountain biking: medium skin tone",order:2746,unicode:"\u{1F6B5}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B5-1F3FE-200D-2642-FE0F",label:"man mountain biking: medium-dark skin tone",order:2748,unicode:"\u{1F6B5}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F6B5-1F3FF-200D-2642-FE0F",label:"man mountain biking: dark skin tone",order:2750,unicode:"\u{1F6B5}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F6B5-200D-2640-FE0F",label:"woman mountain biking",order:2752,tags:["bicycle","bike","biking","cyclist","mountain","woman"],unicode:"\u{1F6B5}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F6B5-1F3FB-200D-2640-FE0F",label:"woman mountain biking: light skin tone",order:2754,unicode:"\u{1F6B5}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B5-1F3FC-200D-2640-FE0F",label:"woman mountain biking: medium-light skin tone",order:2756,unicode:"\u{1F6B5}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B5-1F3FD-200D-2640-FE0F",label:"woman mountain biking: medium skin tone",order:2758,unicode:"\u{1F6B5}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B5-1F3FE-200D-2640-FE0F",label:"woman mountain biking: medium-dark skin tone",order:2760,unicode:"\u{1F6B5}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F6B5-1F3FF-200D-2640-FE0F",label:"woman mountain biking: dark skin tone",order:2762,unicode:"\u{1F6B5}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F938",label:"person cartwheeling",order:2764,tags:["cartwheel","gymnastics"],unicode:"\u{1F938}",skins:[{group:1,hexcode:"1F938-1F3FB",label:"person cartwheeling: light skin tone",order:2765,unicode:"\u{1F938}\u{1F3FB}"},{group:1,hexcode:"1F938-1F3FC",label:"person cartwheeling: medium-light skin tone",order:2766,unicode:"\u{1F938}\u{1F3FC}"},{group:1,hexcode:"1F938-1F3FD",label:"person cartwheeling: medium skin tone",order:2767,unicode:"\u{1F938}\u{1F3FD}"},{group:1,hexcode:"1F938-1F3FE",label:"person cartwheeling: medium-dark skin tone",order:2768,unicode:"\u{1F938}\u{1F3FE}"},{group:1,hexcode:"1F938-1F3FF",label:"person cartwheeling: dark skin tone",order:2769,unicode:"\u{1F938}\u{1F3FF}"}]},{group:1,hexcode:"1F938-200D-2642-FE0F",label:"man cartwheeling",order:2770,tags:["cartwheel","gymnastics","man"],unicode:"\u{1F938}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F938-1F3FB-200D-2642-FE0F",label:"man cartwheeling: light skin tone",order:2772,unicode:"\u{1F938}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F938-1F3FC-200D-2642-FE0F",label:"man cartwheeling: medium-light skin tone",order:2774,unicode:"\u{1F938}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F938-1F3FD-200D-2642-FE0F",label:"man cartwheeling: medium skin tone",order:2776,unicode:"\u{1F938}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F938-1F3FE-200D-2642-FE0F",label:"man cartwheeling: medium-dark skin tone",order:2778,unicode:"\u{1F938}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F938-1F3FF-200D-2642-FE0F",label:"man cartwheeling: dark skin tone",order:2780,unicode:"\u{1F938}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F938-200D-2640-FE0F",label:"woman cartwheeling",order:2782,tags:["cartwheel","gymnastics","woman"],unicode:"\u{1F938}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F938-1F3FB-200D-2640-FE0F",label:"woman cartwheeling: light skin tone",order:2784,unicode:"\u{1F938}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F938-1F3FC-200D-2640-FE0F",label:"woman cartwheeling: medium-light skin tone",order:2786,unicode:"\u{1F938}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F938-1F3FD-200D-2640-FE0F",label:"woman cartwheeling: medium skin tone",order:2788,unicode:"\u{1F938}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F938-1F3FE-200D-2640-FE0F",label:"woman cartwheeling: medium-dark skin tone",order:2790,unicode:"\u{1F938}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F938-1F3FF-200D-2640-FE0F",label:"woman cartwheeling: dark skin tone",order:2792,unicode:"\u{1F938}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F93C",label:"people wrestling",order:2794,tags:["wrestle","wrestler"],unicode:"\u{1F93C}"},{group:1,hexcode:"1F93C-200D-2642-FE0F",label:"men wrestling",order:2795,tags:["men","wrestle"],unicode:"\u{1F93C}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F93C-200D-2640-FE0F",label:"women wrestling",order:2797,tags:["women","wrestle"],unicode:"\u{1F93C}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F93D",label:"person playing water polo",order:2799,tags:["polo","water"],unicode:"\u{1F93D}",skins:[{group:1,hexcode:"1F93D-1F3FB",label:"person playing water polo: light skin tone",order:2800,unicode:"\u{1F93D}\u{1F3FB}"},{group:1,hexcode:"1F93D-1F3FC",label:"person playing water polo: medium-light skin tone",order:2801,unicode:"\u{1F93D}\u{1F3FC}"},{group:1,hexcode:"1F93D-1F3FD",label:"person playing water polo: medium skin tone",order:2802,unicode:"\u{1F93D}\u{1F3FD}"},{group:1,hexcode:"1F93D-1F3FE",label:"person playing water polo: medium-dark skin tone",order:2803,unicode:"\u{1F93D}\u{1F3FE}"},{group:1,hexcode:"1F93D-1F3FF",label:"person playing water polo: dark skin tone",order:2804,unicode:"\u{1F93D}\u{1F3FF}"}]},{group:1,hexcode:"1F93D-200D-2642-FE0F",label:"man playing water polo",order:2805,tags:["man","water polo"],unicode:"\u{1F93D}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F93D-1F3FB-200D-2642-FE0F",label:"man playing water polo: light skin tone",order:2807,unicode:"\u{1F93D}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F93D-1F3FC-200D-2642-FE0F",label:"man playing water polo: medium-light skin tone",order:2809,unicode:"\u{1F93D}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F93D-1F3FD-200D-2642-FE0F",label:"man playing water polo: medium skin tone",order:2811,unicode:"\u{1F93D}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F93D-1F3FE-200D-2642-FE0F",label:"man playing water polo: medium-dark skin tone",order:2813,unicode:"\u{1F93D}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F93D-1F3FF-200D-2642-FE0F",label:"man playing water polo: dark skin tone",order:2815,unicode:"\u{1F93D}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F93D-200D-2640-FE0F",label:"woman playing water polo",order:2817,tags:["water polo","woman"],unicode:"\u{1F93D}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F93D-1F3FB-200D-2640-FE0F",label:"woman playing water polo: light skin tone",order:2819,unicode:"\u{1F93D}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F93D-1F3FC-200D-2640-FE0F",label:"woman playing water polo: medium-light skin tone",order:2821,unicode:"\u{1F93D}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F93D-1F3FD-200D-2640-FE0F",label:"woman playing water polo: medium skin tone",order:2823,unicode:"\u{1F93D}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F93D-1F3FE-200D-2640-FE0F",label:"woman playing water polo: medium-dark skin tone",order:2825,unicode:"\u{1F93D}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F93D-1F3FF-200D-2640-FE0F",label:"woman playing water polo: dark skin tone",order:2827,unicode:"\u{1F93D}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F93E",label:"person playing handball",order:2829,tags:["ball","handball"],unicode:"\u{1F93E}",skins:[{group:1,hexcode:"1F93E-1F3FB",label:"person playing handball: light skin tone",order:2830,unicode:"\u{1F93E}\u{1F3FB}"},{group:1,hexcode:"1F93E-1F3FC",label:"person playing handball: medium-light skin tone",order:2831,unicode:"\u{1F93E}\u{1F3FC}"},{group:1,hexcode:"1F93E-1F3FD",label:"person playing handball: medium skin tone",order:2832,unicode:"\u{1F93E}\u{1F3FD}"},{group:1,hexcode:"1F93E-1F3FE",label:"person playing handball: medium-dark skin tone",order:2833,unicode:"\u{1F93E}\u{1F3FE}"},{group:1,hexcode:"1F93E-1F3FF",label:"person playing handball: dark skin tone",order:2834,unicode:"\u{1F93E}\u{1F3FF}"}]},{group:1,hexcode:"1F93E-200D-2642-FE0F",label:"man playing handball",order:2835,tags:["handball","man"],unicode:"\u{1F93E}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F93E-1F3FB-200D-2642-FE0F",label:"man playing handball: light skin tone",order:2837,unicode:"\u{1F93E}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F93E-1F3FC-200D-2642-FE0F",label:"man playing handball: medium-light skin tone",order:2839,unicode:"\u{1F93E}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F93E-1F3FD-200D-2642-FE0F",label:"man playing handball: medium skin tone",order:2841,unicode:"\u{1F93E}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F93E-1F3FE-200D-2642-FE0F",label:"man playing handball: medium-dark skin tone",order:2843,unicode:"\u{1F93E}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F93E-1F3FF-200D-2642-FE0F",label:"man playing handball: dark skin tone",order:2845,unicode:"\u{1F93E}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F93E-200D-2640-FE0F",label:"woman playing handball",order:2847,tags:["handball","woman"],unicode:"\u{1F93E}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F93E-1F3FB-200D-2640-FE0F",label:"woman playing handball: light skin tone",order:2849,unicode:"\u{1F93E}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F93E-1F3FC-200D-2640-FE0F",label:"woman playing handball: medium-light skin tone",order:2851,unicode:"\u{1F93E}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F93E-1F3FD-200D-2640-FE0F",label:"woman playing handball: medium skin tone",order:2853,unicode:"\u{1F93E}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F93E-1F3FE-200D-2640-FE0F",label:"woman playing handball: medium-dark skin tone",order:2855,unicode:"\u{1F93E}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F93E-1F3FF-200D-2640-FE0F",label:"woman playing handball: dark skin tone",order:2857,unicode:"\u{1F93E}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F939",label:"person juggling",order:2859,tags:["balance","juggle","multitask","skill"],unicode:"\u{1F939}",skins:[{group:1,hexcode:"1F939-1F3FB",label:"person juggling: light skin tone",order:2860,unicode:"\u{1F939}\u{1F3FB}"},{group:1,hexcode:"1F939-1F3FC",label:"person juggling: medium-light skin tone",order:2861,unicode:"\u{1F939}\u{1F3FC}"},{group:1,hexcode:"1F939-1F3FD",label:"person juggling: medium skin tone",order:2862,unicode:"\u{1F939}\u{1F3FD}"},{group:1,hexcode:"1F939-1F3FE",label:"person juggling: medium-dark skin tone",order:2863,unicode:"\u{1F939}\u{1F3FE}"},{group:1,hexcode:"1F939-1F3FF",label:"person juggling: dark skin tone",order:2864,unicode:"\u{1F939}\u{1F3FF}"}]},{group:1,hexcode:"1F939-200D-2642-FE0F",label:"man juggling",order:2865,tags:["juggling","man","multitask"],unicode:"\u{1F939}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F939-1F3FB-200D-2642-FE0F",label:"man juggling: light skin tone",order:2867,unicode:"\u{1F939}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F939-1F3FC-200D-2642-FE0F",label:"man juggling: medium-light skin tone",order:2869,unicode:"\u{1F939}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F939-1F3FD-200D-2642-FE0F",label:"man juggling: medium skin tone",order:2871,unicode:"\u{1F939}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F939-1F3FE-200D-2642-FE0F",label:"man juggling: medium-dark skin tone",order:2873,unicode:"\u{1F939}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F939-1F3FF-200D-2642-FE0F",label:"man juggling: dark skin tone",order:2875,unicode:"\u{1F939}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F939-200D-2640-FE0F",label:"woman juggling",order:2877,tags:["juggling","multitask","woman"],unicode:"\u{1F939}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F939-1F3FB-200D-2640-FE0F",label:"woman juggling: light skin tone",order:2879,unicode:"\u{1F939}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F939-1F3FC-200D-2640-FE0F",label:"woman juggling: medium-light skin tone",order:2881,unicode:"\u{1F939}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F939-1F3FD-200D-2640-FE0F",label:"woman juggling: medium skin tone",order:2883,unicode:"\u{1F939}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F939-1F3FE-200D-2640-FE0F",label:"woman juggling: medium-dark skin tone",order:2885,unicode:"\u{1F939}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F939-1F3FF-200D-2640-FE0F",label:"woman juggling: dark skin tone",order:2887,unicode:"\u{1F939}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F9D8",label:"person in lotus position",order:2889,tags:["meditation","yoga"],unicode:"\u{1F9D8}",skins:[{group:1,hexcode:"1F9D8-1F3FB",label:"person in lotus position: light skin tone",order:2890,unicode:"\u{1F9D8}\u{1F3FB}"},{group:1,hexcode:"1F9D8-1F3FC",label:"person in lotus position: medium-light skin tone",order:2891,unicode:"\u{1F9D8}\u{1F3FC}"},{group:1,hexcode:"1F9D8-1F3FD",label:"person in lotus position: medium skin tone",order:2892,unicode:"\u{1F9D8}\u{1F3FD}"},{group:1,hexcode:"1F9D8-1F3FE",label:"person in lotus position: medium-dark skin tone",order:2893,unicode:"\u{1F9D8}\u{1F3FE}"},{group:1,hexcode:"1F9D8-1F3FF",label:"person in lotus position: dark skin tone",order:2894,unicode:"\u{1F9D8}\u{1F3FF}"}]},{group:1,hexcode:"1F9D8-200D-2642-FE0F",label:"man in lotus position",order:2895,tags:["meditation","yoga"],unicode:"\u{1F9D8}\u200D\u2642\uFE0F",skins:[{group:1,hexcode:"1F9D8-1F3FB-200D-2642-FE0F",label:"man in lotus position: light skin tone",order:2897,unicode:"\u{1F9D8}\u{1F3FB}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D8-1F3FC-200D-2642-FE0F",label:"man in lotus position: medium-light skin tone",order:2899,unicode:"\u{1F9D8}\u{1F3FC}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D8-1F3FD-200D-2642-FE0F",label:"man in lotus position: medium skin tone",order:2901,unicode:"\u{1F9D8}\u{1F3FD}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D8-1F3FE-200D-2642-FE0F",label:"man in lotus position: medium-dark skin tone",order:2903,unicode:"\u{1F9D8}\u{1F3FE}\u200D\u2642\uFE0F"},{group:1,hexcode:"1F9D8-1F3FF-200D-2642-FE0F",label:"man in lotus position: dark skin tone",order:2905,unicode:"\u{1F9D8}\u{1F3FF}\u200D\u2642\uFE0F"}]},{group:1,hexcode:"1F9D8-200D-2640-FE0F",label:"woman in lotus position",order:2907,tags:["meditation","yoga"],unicode:"\u{1F9D8}\u200D\u2640\uFE0F",skins:[{group:1,hexcode:"1F9D8-1F3FB-200D-2640-FE0F",label:"woman in lotus position: light skin tone",order:2909,unicode:"\u{1F9D8}\u{1F3FB}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D8-1F3FC-200D-2640-FE0F",label:"woman in lotus position: medium-light skin tone",order:2911,unicode:"\u{1F9D8}\u{1F3FC}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D8-1F3FD-200D-2640-FE0F",label:"woman in lotus position: medium skin tone",order:2913,unicode:"\u{1F9D8}\u{1F3FD}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D8-1F3FE-200D-2640-FE0F",label:"woman in lotus position: medium-dark skin tone",order:2915,unicode:"\u{1F9D8}\u{1F3FE}\u200D\u2640\uFE0F"},{group:1,hexcode:"1F9D8-1F3FF-200D-2640-FE0F",label:"woman in lotus position: dark skin tone",order:2917,unicode:"\u{1F9D8}\u{1F3FF}\u200D\u2640\uFE0F"}]},{group:1,hexcode:"1F6C0",label:"person taking bath",order:2919,tags:["bath","bathtub"],unicode:"\u{1F6C0}",skins:[{group:1,hexcode:"1F6C0-1F3FB",label:"person taking bath: light skin tone",order:2920,unicode:"\u{1F6C0}\u{1F3FB}"},{group:1,hexcode:"1F6C0-1F3FC",label:"person taking bath: medium-light skin tone",order:2921,unicode:"\u{1F6C0}\u{1F3FC}"},{group:1,hexcode:"1F6C0-1F3FD",label:"person taking bath: medium skin tone",order:2922,unicode:"\u{1F6C0}\u{1F3FD}"},{group:1,hexcode:"1F6C0-1F3FE",label:"person taking bath: medium-dark skin tone",order:2923,unicode:"\u{1F6C0}\u{1F3FE}"},{group:1,hexcode:"1F6C0-1F3FF",label:"person taking bath: dark skin tone",order:2924,unicode:"\u{1F6C0}\u{1F3FF}"}]},{group:1,hexcode:"1F6CC",label:"person in bed",order:2925,tags:["good night","hotel","sleep"],unicode:"\u{1F6CC}",skins:[{group:1,hexcode:"1F6CC-1F3FB",label:"person in bed: light skin tone",order:2926,unicode:"\u{1F6CC}\u{1F3FB}"},{group:1,hexcode:"1F6CC-1F3FC",label:"person in bed: medium-light skin tone",order:2927,unicode:"\u{1F6CC}\u{1F3FC}"},{group:1,hexcode:"1F6CC-1F3FD",label:"person in bed: medium skin tone",order:2928,unicode:"\u{1F6CC}\u{1F3FD}"},{group:1,hexcode:"1F6CC-1F3FE",label:"person in bed: medium-dark skin tone",order:2929,unicode:"\u{1F6CC}\u{1F3FE}"},{group:1,hexcode:"1F6CC-1F3FF",label:"person in bed: dark skin tone",order:2930,unicode:"\u{1F6CC}\u{1F3FF}"}]},{group:1,hexcode:"1F9D1-200D-1F91D-200D-1F9D1",label:"people holding hands",order:2931,tags:["couple","hand","hold","holding hands","person"],unicode:"\u{1F9D1}\u200D\u{1F91D}\u200D\u{1F9D1}",skins:[{group:1,hexcode:"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FB",label:"people holding hands: light skin tone",order:2932,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FC",label:"people holding hands: light skin tone, medium-light skin tone",order:2933,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FD",label:"people holding hands: light skin tone, medium skin tone",order:2934,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FE",label:"people holding hands: light skin tone, medium-dark skin tone",order:2935,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FF",label:"people holding hands: light skin tone, dark skin tone",order:2936,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FB",label:"people holding hands: medium-light skin tone, light skin tone",order:2937,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FC",label:"people holding hands: medium-light skin tone",order:2938,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FD",label:"people holding hands: medium-light skin tone, medium skin tone",order:2939,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FE",label:"people holding hands: medium-light skin tone, medium-dark skin tone",order:2940,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FF",label:"people holding hands: medium-light skin tone, dark skin tone",order:2941,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FB",label:"people holding hands: medium skin tone, light skin tone",order:2942,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FC",label:"people holding hands: medium skin tone, medium-light skin tone",order:2943,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FD",label:"people holding hands: medium skin tone",order:2944,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FE",label:"people holding hands: medium skin tone, medium-dark skin tone",order:2945,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FF",label:"people holding hands: medium skin tone, dark skin tone",order:2946,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FB",label:"people holding hands: medium-dark skin tone, light skin tone",order:2947,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FC",label:"people holding hands: medium-dark skin tone, medium-light skin tone",order:2948,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FD",label:"people holding hands: medium-dark skin tone, medium skin tone",order:2949,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FE",label:"people holding hands: medium-dark skin tone",order:2950,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FF",label:"people holding hands: medium-dark skin tone, dark skin tone",order:2951,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FB",label:"people holding hands: dark skin tone, light skin tone",order:2952,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FC",label:"people holding hands: dark skin tone, medium-light skin tone",order:2953,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FD",label:"people holding hands: dark skin tone, medium skin tone",order:2954,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FE",label:"people holding hands: dark skin tone, medium-dark skin tone",order:2955,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FF",label:"people holding hands: dark skin tone",order:2956,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F9D1}\u{1F3FF}"}]},{group:1,hexcode:"1F46D",label:"women holding hands",order:2957,tags:["couple","hand","holding hands","women"],unicode:"\u{1F46D}",skins:[{group:1,hexcode:"1F46D-1F3FB",label:"women holding hands: light skin tone",order:2958,unicode:"\u{1F46D}\u{1F3FB}"},{group:1,hexcode:"1F46D-1F3FC",label:"women holding hands: medium-light skin tone",order:2964,unicode:"\u{1F46D}\u{1F3FC}"},{group:1,hexcode:"1F46D-1F3FD",label:"women holding hands: medium skin tone",order:2970,unicode:"\u{1F46D}\u{1F3FD}"},{group:1,hexcode:"1F46D-1F3FE",label:"women holding hands: medium-dark skin tone",order:2976,unicode:"\u{1F46D}\u{1F3FE}"},{group:1,hexcode:"1F46D-1F3FF",label:"women holding hands: dark skin tone",order:2982,unicode:"\u{1F46D}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FC",label:"women holding hands: light skin tone, medium-light skin tone",order:2959,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FD",label:"women holding hands: light skin tone, medium skin tone",order:2960,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FE",label:"women holding hands: light skin tone, medium-dark skin tone",order:2961,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FF",label:"women holding hands: light skin tone, dark skin tone",order:2962,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FB",label:"women holding hands: medium-light skin tone, light skin tone",order:2963,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FD",label:"women holding hands: medium-light skin tone, medium skin tone",order:2965,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FE",label:"women holding hands: medium-light skin tone, medium-dark skin tone",order:2966,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FF",label:"women holding hands: medium-light skin tone, dark skin tone",order:2967,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FB",label:"women holding hands: medium skin tone, light skin tone",order:2968,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FC",label:"women holding hands: medium skin tone, medium-light skin tone",order:2969,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FE",label:"women holding hands: medium skin tone, medium-dark skin tone",order:2971,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FF",label:"women holding hands: medium skin tone, dark skin tone",order:2972,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FB",label:"women holding hands: medium-dark skin tone, light skin tone",order:2973,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FC",label:"women holding hands: medium-dark skin tone, medium-light skin tone",order:2974,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FD",label:"women holding hands: medium-dark skin tone, medium skin tone",order:2975,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FF",label:"women holding hands: medium-dark skin tone, dark skin tone",order:2977,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FB",label:"women holding hands: dark skin tone, light skin tone",order:2978,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FC",label:"women holding hands: dark skin tone, medium-light skin tone",order:2979,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FD",label:"women holding hands: dark skin tone, medium skin tone",order:2980,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FE",label:"women holding hands: dark skin tone, medium-dark skin tone",order:2981,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F469}\u{1F3FE}"}]},{group:1,hexcode:"1F46B",label:"woman and man holding hands",order:2983,tags:["couple","hand","hold","holding hands","man","woman"],unicode:"\u{1F46B}",skins:[{group:1,hexcode:"1F46B-1F3FB",label:"woman and man holding hands: light skin tone",order:2984,unicode:"\u{1F46B}\u{1F3FB}"},{group:1,hexcode:"1F46B-1F3FC",label:"woman and man holding hands: medium-light skin tone",order:2990,unicode:"\u{1F46B}\u{1F3FC}"},{group:1,hexcode:"1F46B-1F3FD",label:"woman and man holding hands: medium skin tone",order:2996,unicode:"\u{1F46B}\u{1F3FD}"},{group:1,hexcode:"1F46B-1F3FE",label:"woman and man holding hands: medium-dark skin tone",order:3002,unicode:"\u{1F46B}\u{1F3FE}"},{group:1,hexcode:"1F46B-1F3FF",label:"woman and man holding hands: dark skin tone",order:3008,unicode:"\u{1F46B}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FC",label:"woman and man holding hands: light skin tone, medium-light skin tone",order:2985,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FD",label:"woman and man holding hands: light skin tone, medium skin tone",order:2986,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FE",label:"woman and man holding hands: light skin tone, medium-dark skin tone",order:2987,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FF",label:"woman and man holding hands: light skin tone, dark skin tone",order:2988,unicode:"\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FB",label:"woman and man holding hands: medium-light skin tone, light skin tone",order:2989,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FD",label:"woman and man holding hands: medium-light skin tone, medium skin tone",order:2991,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FE",label:"woman and man holding hands: medium-light skin tone, medium-dark skin tone",order:2992,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FF",label:"woman and man holding hands: medium-light skin tone, dark skin tone",order:2993,unicode:"\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FB",label:"woman and man holding hands: medium skin tone, light skin tone",order:2994,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FC",label:"woman and man holding hands: medium skin tone, medium-light skin tone",order:2995,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FE",label:"woman and man holding hands: medium skin tone, medium-dark skin tone",order:2997,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FF",label:"woman and man holding hands: medium skin tone, dark skin tone",order:2998,unicode:"\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FB",label:"woman and man holding hands: medium-dark skin tone, light skin tone",order:2999,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FC",label:"woman and man holding hands: medium-dark skin tone, medium-light skin tone",order:3e3,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FD",label:"woman and man holding hands: medium-dark skin tone, medium skin tone",order:3001,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FF",label:"woman and man holding hands: medium-dark skin tone, dark skin tone",order:3003,unicode:"\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FB",label:"woman and man holding hands: dark skin tone, light skin tone",order:3004,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FC",label:"woman and man holding hands: dark skin tone, medium-light skin tone",order:3005,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FD",label:"woman and man holding hands: dark skin tone, medium skin tone",order:3006,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FE",label:"woman and man holding hands: dark skin tone, medium-dark skin tone",order:3007,unicode:"\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"}]},{group:1,hexcode:"1F46C",label:"men holding hands",order:3009,tags:["couple","gemini","holding hands","man","men","twins","zodiac"],unicode:"\u{1F46C}",skins:[{group:1,hexcode:"1F46C-1F3FB",label:"men holding hands: light skin tone",order:3010,unicode:"\u{1F46C}\u{1F3FB}"},{group:1,hexcode:"1F46C-1F3FC",label:"men holding hands: medium-light skin tone",order:3016,unicode:"\u{1F46C}\u{1F3FC}"},{group:1,hexcode:"1F46C-1F3FD",label:"men holding hands: medium skin tone",order:3022,unicode:"\u{1F46C}\u{1F3FD}"},{group:1,hexcode:"1F46C-1F3FE",label:"men holding hands: medium-dark skin tone",order:3028,unicode:"\u{1F46C}\u{1F3FE}"},{group:1,hexcode:"1F46C-1F3FF",label:"men holding hands: dark skin tone",order:3034,unicode:"\u{1F46C}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FC",label:"men holding hands: light skin tone, medium-light skin tone",order:3011,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FD",label:"men holding hands: light skin tone, medium skin tone",order:3012,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FE",label:"men holding hands: light skin tone, medium-dark skin tone",order:3013,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FF",label:"men holding hands: light skin tone, dark skin tone",order:3014,unicode:"\u{1F468}\u{1F3FB}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FB",label:"men holding hands: medium-light skin tone, light skin tone",order:3015,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FD",label:"men holding hands: medium-light skin tone, medium skin tone",order:3017,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FE",label:"men holding hands: medium-light skin tone, medium-dark skin tone",order:3018,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FF",label:"men holding hands: medium-light skin tone, dark skin tone",order:3019,unicode:"\u{1F468}\u{1F3FC}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FB",label:"men holding hands: medium skin tone, light skin tone",order:3020,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FC",label:"men holding hands: medium skin tone, medium-light skin tone",order:3021,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FE",label:"men holding hands: medium skin tone, medium-dark skin tone",order:3023,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FF",label:"men holding hands: medium skin tone, dark skin tone",order:3024,unicode:"\u{1F468}\u{1F3FD}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FB",label:"men holding hands: medium-dark skin tone, light skin tone",order:3025,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FC",label:"men holding hands: medium-dark skin tone, medium-light skin tone",order:3026,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FD",label:"men holding hands: medium-dark skin tone, medium skin tone",order:3027,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FF",label:"men holding hands: medium-dark skin tone, dark skin tone",order:3029,unicode:"\u{1F468}\u{1F3FE}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FB",label:"men holding hands: dark skin tone, light skin tone",order:3030,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FC",label:"men holding hands: dark skin tone, medium-light skin tone",order:3031,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FD",label:"men holding hands: dark skin tone, medium skin tone",order:3032,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FE",label:"men holding hands: dark skin tone, medium-dark skin tone",order:3033,unicode:"\u{1F468}\u{1F3FF}\u200D\u{1F91D}\u200D\u{1F468}\u{1F3FE}"}]},{group:1,hexcode:"1F48F",label:"kiss",order:3035,tags:["couple"],unicode:"\u{1F48F}",skins:[{group:1,hexcode:"1F48F-1F3FB",label:"kiss: light skin tone",order:3036,unicode:"\u{1F48F}\u{1F3FB}"},{group:1,hexcode:"1F48F-1F3FC",label:"kiss: medium-light skin tone",order:3037,unicode:"\u{1F48F}\u{1F3FC}"},{group:1,hexcode:"1F48F-1F3FD",label:"kiss: medium skin tone",order:3038,unicode:"\u{1F48F}\u{1F3FD}"},{group:1,hexcode:"1F48F-1F3FE",label:"kiss: medium-dark skin tone",order:3039,unicode:"\u{1F48F}\u{1F3FE}"},{group:1,hexcode:"1F48F-1F3FF",label:"kiss: dark skin tone",order:3040,unicode:"\u{1F48F}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC",label:"kiss: person, person, light skin tone, medium-light skin tone",order:3041,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD",label:"kiss: person, person, light skin tone, medium skin tone",order:3043,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE",label:"kiss: person, person, light skin tone, medium-dark skin tone",order:3045,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF",label:"kiss: person, person, light skin tone, dark skin tone",order:3047,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB",label:"kiss: person, person, medium-light skin tone, light skin tone",order:3049,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD",label:"kiss: person, person, medium-light skin tone, medium skin tone",order:3051,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE",label:"kiss: person, person, medium-light skin tone, medium-dark skin tone",order:3053,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF",label:"kiss: person, person, medium-light skin tone, dark skin tone",order:3055,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB",label:"kiss: person, person, medium skin tone, light skin tone",order:3057,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC",label:"kiss: person, person, medium skin tone, medium-light skin tone",order:3059,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE",label:"kiss: person, person, medium skin tone, medium-dark skin tone",order:3061,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF",label:"kiss: person, person, medium skin tone, dark skin tone",order:3063,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB",label:"kiss: person, person, medium-dark skin tone, light skin tone",order:3065,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC",label:"kiss: person, person, medium-dark skin tone, medium-light skin tone",order:3067,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD",label:"kiss: person, person, medium-dark skin tone, medium skin tone",order:3069,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF",label:"kiss: person, person, medium-dark skin tone, dark skin tone",order:3071,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB",label:"kiss: person, person, dark skin tone, light skin tone",order:3073,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC",label:"kiss: person, person, dark skin tone, medium-light skin tone",order:3075,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD",label:"kiss: person, person, dark skin tone, medium skin tone",order:3077,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE",label:"kiss: person, person, dark skin tone, medium-dark skin tone",order:3079,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F9D1}\u{1F3FE}"}]},{group:1,hexcode:"1F469-200D-2764-FE0F-200D-1F48B-200D-1F468",label:"kiss: woman, man",order:3081,tags:["couple","kiss","man","woman"],unicode:"\u{1F469}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB",label:"kiss: woman, man, light skin tone",order:3083,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC",label:"kiss: woman, man, light skin tone, medium-light skin tone",order:3085,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD",label:"kiss: woman, man, light skin tone, medium skin tone",order:3087,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE",label:"kiss: woman, man, light skin tone, medium-dark skin tone",order:3089,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF",label:"kiss: woman, man, light skin tone, dark skin tone",order:3091,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB",label:"kiss: woman, man, medium-light skin tone, light skin tone",order:3093,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC",label:"kiss: woman, man, medium-light skin tone",order:3095,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD",label:"kiss: woman, man, medium-light skin tone, medium skin tone",order:3097,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE",label:"kiss: woman, man, medium-light skin tone, medium-dark skin tone",order:3099,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF",label:"kiss: woman, man, medium-light skin tone, dark skin tone",order:3101,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB",label:"kiss: woman, man, medium skin tone, light skin tone",order:3103,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC",label:"kiss: woman, man, medium skin tone, medium-light skin tone",order:3105,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD",label:"kiss: woman, man, medium skin tone",order:3107,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE",label:"kiss: woman, man, medium skin tone, medium-dark skin tone",order:3109,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF",label:"kiss: woman, man, medium skin tone, dark skin tone",order:3111,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB",label:"kiss: woman, man, medium-dark skin tone, light skin tone",order:3113,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC",label:"kiss: woman, man, medium-dark skin tone, medium-light skin tone",order:3115,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD",label:"kiss: woman, man, medium-dark skin tone, medium skin tone",order:3117,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE",label:"kiss: woman, man, medium-dark skin tone",order:3119,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF",label:"kiss: woman, man, medium-dark skin tone, dark skin tone",order:3121,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB",label:"kiss: woman, man, dark skin tone, light skin tone",order:3123,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC",label:"kiss: woman, man, dark skin tone, medium-light skin tone",order:3125,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD",label:"kiss: woman, man, dark skin tone, medium skin tone",order:3127,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE",label:"kiss: woman, man, dark skin tone, medium-dark skin tone",order:3129,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF",label:"kiss: woman, man, dark skin tone",order:3131,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"}]},{group:1,hexcode:"1F468-200D-2764-FE0F-200D-1F48B-200D-1F468",label:"kiss: man, man",order:3133,tags:["couple","kiss","man"],unicode:"\u{1F468}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB",label:"kiss: man, man, light skin tone",order:3135,unicode:"\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC",label:"kiss: man, man, light skin tone, medium-light skin tone",order:3137,unicode:"\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD",label:"kiss: man, man, light skin tone, medium skin tone",order:3139,unicode:"\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE",label:"kiss: man, man, light skin tone, medium-dark skin tone",order:3141,unicode:"\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF",label:"kiss: man, man, light skin tone, dark skin tone",order:3143,unicode:"\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB",label:"kiss: man, man, medium-light skin tone, light skin tone",order:3145,unicode:"\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC",label:"kiss: man, man, medium-light skin tone",order:3147,unicode:"\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD",label:"kiss: man, man, medium-light skin tone, medium skin tone",order:3149,unicode:"\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE",label:"kiss: man, man, medium-light skin tone, medium-dark skin tone",order:3151,unicode:"\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF",label:"kiss: man, man, medium-light skin tone, dark skin tone",order:3153,unicode:"\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB",label:"kiss: man, man, medium skin tone, light skin tone",order:3155,unicode:"\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC",label:"kiss: man, man, medium skin tone, medium-light skin tone",order:3157,unicode:"\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD",label:"kiss: man, man, medium skin tone",order:3159,unicode:"\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE",label:"kiss: man, man, medium skin tone, medium-dark skin tone",order:3161,unicode:"\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF",label:"kiss: man, man, medium skin tone, dark skin tone",order:3163,unicode:"\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB",label:"kiss: man, man, medium-dark skin tone, light skin tone",order:3165,unicode:"\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC",label:"kiss: man, man, medium-dark skin tone, medium-light skin tone",order:3167,unicode:"\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD",label:"kiss: man, man, medium-dark skin tone, medium skin tone",order:3169,unicode:"\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE",label:"kiss: man, man, medium-dark skin tone",order:3171,unicode:"\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF",label:"kiss: man, man, medium-dark skin tone, dark skin tone",order:3173,unicode:"\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB",label:"kiss: man, man, dark skin tone, light skin tone",order:3175,unicode:"\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC",label:"kiss: man, man, dark skin tone, medium-light skin tone",order:3177,unicode:"\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD",label:"kiss: man, man, dark skin tone, medium skin tone",order:3179,unicode:"\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE",label:"kiss: man, man, dark skin tone, medium-dark skin tone",order:3181,unicode:"\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF",label:"kiss: man, man, dark skin tone",order:3183,unicode:"\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F468}\u{1F3FF}"}]},{group:1,hexcode:"1F469-200D-2764-FE0F-200D-1F48B-200D-1F469",label:"kiss: woman, woman",order:3185,tags:["couple","kiss","woman"],unicode:"\u{1F469}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB",label:"kiss: woman, woman, light skin tone",order:3187,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC",label:"kiss: woman, woman, light skin tone, medium-light skin tone",order:3189,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD",label:"kiss: woman, woman, light skin tone, medium skin tone",order:3191,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE",label:"kiss: woman, woman, light skin tone, medium-dark skin tone",order:3193,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF",label:"kiss: woman, woman, light skin tone, dark skin tone",order:3195,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB",label:"kiss: woman, woman, medium-light skin tone, light skin tone",order:3197,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC",label:"kiss: woman, woman, medium-light skin tone",order:3199,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD",label:"kiss: woman, woman, medium-light skin tone, medium skin tone",order:3201,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE",label:"kiss: woman, woman, medium-light skin tone, medium-dark skin tone",order:3203,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF",label:"kiss: woman, woman, medium-light skin tone, dark skin tone",order:3205,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB",label:"kiss: woman, woman, medium skin tone, light skin tone",order:3207,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC",label:"kiss: woman, woman, medium skin tone, medium-light skin tone",order:3209,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD",label:"kiss: woman, woman, medium skin tone",order:3211,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE",label:"kiss: woman, woman, medium skin tone, medium-dark skin tone",order:3213,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF",label:"kiss: woman, woman, medium skin tone, dark skin tone",order:3215,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB",label:"kiss: woman, woman, medium-dark skin tone, light skin tone",order:3217,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC",label:"kiss: woman, woman, medium-dark skin tone, medium-light skin tone",order:3219,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD",label:"kiss: woman, woman, medium-dark skin tone, medium skin tone",order:3221,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE",label:"kiss: woman, woman, medium-dark skin tone",order:3223,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF",label:"kiss: woman, woman, medium-dark skin tone, dark skin tone",order:3225,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB",label:"kiss: woman, woman, dark skin tone, light skin tone",order:3227,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC",label:"kiss: woman, woman, dark skin tone, medium-light skin tone",order:3229,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD",label:"kiss: woman, woman, dark skin tone, medium skin tone",order:3231,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE",label:"kiss: woman, woman, dark skin tone, medium-dark skin tone",order:3233,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF",label:"kiss: woman, woman, dark skin tone",order:3235,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F48B}\u200D\u{1F469}\u{1F3FF}"}]},{group:1,hexcode:"1F491",label:"couple with heart",order:3237,tags:["couple","love"],unicode:"\u{1F491}",skins:[{group:1,hexcode:"1F491-1F3FB",label:"couple with heart: light skin tone",order:3238,unicode:"\u{1F491}\u{1F3FB}"},{group:1,hexcode:"1F491-1F3FC",label:"couple with heart: medium-light skin tone",order:3239,unicode:"\u{1F491}\u{1F3FC}"},{group:1,hexcode:"1F491-1F3FD",label:"couple with heart: medium skin tone",order:3240,unicode:"\u{1F491}\u{1F3FD}"},{group:1,hexcode:"1F491-1F3FE",label:"couple with heart: medium-dark skin tone",order:3241,unicode:"\u{1F491}\u{1F3FE}"},{group:1,hexcode:"1F491-1F3FF",label:"couple with heart: dark skin tone",order:3242,unicode:"\u{1F491}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FC",label:"couple with heart: person, person, light skin tone, medium-light skin tone",order:3243,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FD",label:"couple with heart: person, person, light skin tone, medium skin tone",order:3245,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FE",label:"couple with heart: person, person, light skin tone, medium-dark skin tone",order:3247,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FF",label:"couple with heart: person, person, light skin tone, dark skin tone",order:3249,unicode:"\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FB",label:"couple with heart: person, person, medium-light skin tone, light skin tone",order:3251,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FD",label:"couple with heart: person, person, medium-light skin tone, medium skin tone",order:3253,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FE",label:"couple with heart: person, person, medium-light skin tone, medium-dark skin tone",order:3255,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FF",label:"couple with heart: person, person, medium-light skin tone, dark skin tone",order:3257,unicode:"\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FB",label:"couple with heart: person, person, medium skin tone, light skin tone",order:3259,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FC",label:"couple with heart: person, person, medium skin tone, medium-light skin tone",order:3261,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FE",label:"couple with heart: person, person, medium skin tone, medium-dark skin tone",order:3263,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FE}"},{group:1,hexcode:"1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FF",label:"couple with heart: person, person, medium skin tone, dark skin tone",order:3265,unicode:"\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FB",label:"couple with heart: person, person, medium-dark skin tone, light skin tone",order:3267,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FC",label:"couple with heart: person, person, medium-dark skin tone, medium-light skin tone",order:3269,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FD",label:"couple with heart: person, person, medium-dark skin tone, medium skin tone",order:3271,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FF",label:"couple with heart: person, person, medium-dark skin tone, dark skin tone",order:3273,unicode:"\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FF}"},{group:1,hexcode:"1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FB",label:"couple with heart: person, person, dark skin tone, light skin tone",order:3275,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FB}"},{group:1,hexcode:"1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FC",label:"couple with heart: person, person, dark skin tone, medium-light skin tone",order:3277,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FC}"},{group:1,hexcode:"1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FD",label:"couple with heart: person, person, dark skin tone, medium skin tone",order:3279,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FD}"},{group:1,hexcode:"1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FE",label:"couple with heart: person, person, dark skin tone, medium-dark skin tone",order:3281,unicode:"\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F9D1}\u{1F3FE}"}]},{group:1,hexcode:"1F469-200D-2764-FE0F-200D-1F468",label:"couple with heart: woman, man",order:3283,tags:["couple","couple with heart","love","man","woman"],unicode:"\u{1F469}\u200D\u2764\uFE0F\u200D\u{1F468}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FB",label:"couple with heart: woman, man, light skin tone",order:3285,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FC",label:"couple with heart: woman, man, light skin tone, medium-light skin tone",order:3287,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FD",label:"couple with heart: woman, man, light skin tone, medium skin tone",order:3289,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FE",label:"couple with heart: woman, man, light skin tone, medium-dark skin tone",order:3291,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FF",label:"couple with heart: woman, man, light skin tone, dark skin tone",order:3293,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FB",label:"couple with heart: woman, man, medium-light skin tone, light skin tone",order:3295,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FC",label:"couple with heart: woman, man, medium-light skin tone",order:3297,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FD",label:"couple with heart: woman, man, medium-light skin tone, medium skin tone",order:3299,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FE",label:"couple with heart: woman, man, medium-light skin tone, medium-dark skin tone",order:3301,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FF",label:"couple with heart: woman, man, medium-light skin tone, dark skin tone",order:3303,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FB",label:"couple with heart: woman, man, medium skin tone, light skin tone",order:3305,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FC",label:"couple with heart: woman, man, medium skin tone, medium-light skin tone",order:3307,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FD",label:"couple with heart: woman, man, medium skin tone",order:3309,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FE",label:"couple with heart: woman, man, medium skin tone, medium-dark skin tone",order:3311,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FF",label:"couple with heart: woman, man, medium skin tone, dark skin tone",order:3313,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FB",label:"couple with heart: woman, man, medium-dark skin tone, light skin tone",order:3315,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FC",label:"couple with heart: woman, man, medium-dark skin tone, medium-light skin tone",order:3317,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FD",label:"couple with heart: woman, man, medium-dark skin tone, medium skin tone",order:3319,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FE",label:"couple with heart: woman, man, medium-dark skin tone",order:3321,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FF",label:"couple with heart: woman, man, medium-dark skin tone, dark skin tone",order:3323,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FB",label:"couple with heart: woman, man, dark skin tone, light skin tone",order:3325,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FC",label:"couple with heart: woman, man, dark skin tone, medium-light skin tone",order:3327,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FD",label:"couple with heart: woman, man, dark skin tone, medium skin tone",order:3329,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FE",label:"couple with heart: woman, man, dark skin tone, medium-dark skin tone",order:3331,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FF",label:"couple with heart: woman, man, dark skin tone",order:3333,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"}]},{group:1,hexcode:"1F468-200D-2764-FE0F-200D-1F468",label:"couple with heart: man, man",order:3335,tags:["couple","couple with heart","love","man"],unicode:"\u{1F468}\u200D\u2764\uFE0F\u200D\u{1F468}",skins:[{group:1,hexcode:"1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FB",label:"couple with heart: man, man, light skin tone",order:3337,unicode:"\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FC",label:"couple with heart: man, man, light skin tone, medium-light skin tone",order:3339,unicode:"\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FD",label:"couple with heart: man, man, light skin tone, medium skin tone",order:3341,unicode:"\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FE",label:"couple with heart: man, man, light skin tone, medium-dark skin tone",order:3343,unicode:"\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FF",label:"couple with heart: man, man, light skin tone, dark skin tone",order:3345,unicode:"\u{1F468}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FB",label:"couple with heart: man, man, medium-light skin tone, light skin tone",order:3347,unicode:"\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FC",label:"couple with heart: man, man, medium-light skin tone",order:3349,unicode:"\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FD",label:"couple with heart: man, man, medium-light skin tone, medium skin tone",order:3351,unicode:"\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FE",label:"couple with heart: man, man, medium-light skin tone, medium-dark skin tone",order:3353,unicode:"\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FF",label:"couple with heart: man, man, medium-light skin tone, dark skin tone",order:3355,unicode:"\u{1F468}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FB",label:"couple with heart: man, man, medium skin tone, light skin tone",order:3357,unicode:"\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FC",label:"couple with heart: man, man, medium skin tone, medium-light skin tone",order:3359,unicode:"\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FD",label:"couple with heart: man, man, medium skin tone",order:3361,unicode:"\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FE",label:"couple with heart: man, man, medium skin tone, medium-dark skin tone",order:3363,unicode:"\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FF",label:"couple with heart: man, man, medium skin tone, dark skin tone",order:3365,unicode:"\u{1F468}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FB",label:"couple with heart: man, man, medium-dark skin tone, light skin tone",order:3367,unicode:"\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FC",label:"couple with heart: man, man, medium-dark skin tone, medium-light skin tone",order:3369,unicode:"\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FD",label:"couple with heart: man, man, medium-dark skin tone, medium skin tone",order:3371,unicode:"\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FE",label:"couple with heart: man, man, medium-dark skin tone",order:3373,unicode:"\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FF",label:"couple with heart: man, man, medium-dark skin tone, dark skin tone",order:3375,unicode:"\u{1F468}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"},{group:1,hexcode:"1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FB",label:"couple with heart: man, man, dark skin tone, light skin tone",order:3377,unicode:"\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FB}"},{group:1,hexcode:"1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FC",label:"couple with heart: man, man, dark skin tone, medium-light skin tone",order:3379,unicode:"\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FC}"},{group:1,hexcode:"1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FD",label:"couple with heart: man, man, dark skin tone, medium skin tone",order:3381,unicode:"\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FD}"},{group:1,hexcode:"1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FE",label:"couple with heart: man, man, dark skin tone, medium-dark skin tone",order:3383,unicode:"\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FE}"},{group:1,hexcode:"1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FF",label:"couple with heart: man, man, dark skin tone",order:3385,unicode:"\u{1F468}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F468}\u{1F3FF}"}]},{group:1,hexcode:"1F469-200D-2764-FE0F-200D-1F469",label:"couple with heart: woman, woman",order:3387,tags:["couple","couple with heart","love","woman"],unicode:"\u{1F469}\u200D\u2764\uFE0F\u200D\u{1F469}",skins:[{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FB",label:"couple with heart: woman, woman, light skin tone",order:3389,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FC",label:"couple with heart: woman, woman, light skin tone, medium-light skin tone",order:3391,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FD",label:"couple with heart: woman, woman, light skin tone, medium skin tone",order:3393,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FE",label:"couple with heart: woman, woman, light skin tone, medium-dark skin tone",order:3395,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FF",label:"couple with heart: woman, woman, light skin tone, dark skin tone",order:3397,unicode:"\u{1F469}\u{1F3FB}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FB",label:"couple with heart: woman, woman, medium-light skin tone, light skin tone",order:3399,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FC",label:"couple with heart: woman, woman, medium-light skin tone",order:3401,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FD",label:"couple with heart: woman, woman, medium-light skin tone, medium skin tone",order:3403,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FE",label:"couple with heart: woman, woman, medium-light skin tone, medium-dark skin tone",order:3405,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FF",label:"couple with heart: woman, woman, medium-light skin tone, dark skin tone",order:3407,unicode:"\u{1F469}\u{1F3FC}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FB",label:"couple with heart: woman, woman, medium skin tone, light skin tone",order:3409,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FC",label:"couple with heart: woman, woman, medium skin tone, medium-light skin tone",order:3411,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FD",label:"couple with heart: woman, woman, medium skin tone",order:3413,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FE",label:"couple with heart: woman, woman, medium skin tone, medium-dark skin tone",order:3415,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FF",label:"couple with heart: woman, woman, medium skin tone, dark skin tone",order:3417,unicode:"\u{1F469}\u{1F3FD}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FB",label:"couple with heart: woman, woman, medium-dark skin tone, light skin tone",order:3419,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FC",label:"couple with heart: woman, woman, medium-dark skin tone, medium-light skin tone",order:3421,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FD",label:"couple with heart: woman, woman, medium-dark skin tone, medium skin tone",order:3423,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FE",label:"couple with heart: woman, woman, medium-dark skin tone",order:3425,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FF",label:"couple with heart: woman, woman, medium-dark skin tone, dark skin tone",order:3427,unicode:"\u{1F469}\u{1F3FE}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FF}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FB",label:"couple with heart: woman, woman, dark skin tone, light skin tone",order:3429,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FB}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FC",label:"couple with heart: woman, woman, dark skin tone, medium-light skin tone",order:3431,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FC}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FD",label:"couple with heart: woman, woman, dark skin tone, medium skin tone",order:3433,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FD}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FE",label:"couple with heart: woman, woman, dark skin tone, medium-dark skin tone",order:3435,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FE}"},{group:1,hexcode:"1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FF",label:"couple with heart: woman, woman, dark skin tone",order:3437,unicode:"\u{1F469}\u{1F3FF}\u200D\u2764\uFE0F\u200D\u{1F469}\u{1F3FF}"}]},{group:1,hexcode:"1F468-200D-1F469-200D-1F466",label:"family: man, woman, boy",order:3439,tags:["boy","family","man","woman"],unicode:"\u{1F468}\u200D\u{1F469}\u200D\u{1F466}"},{group:1,hexcode:"1F468-200D-1F469-200D-1F467",label:"family: man, woman, girl",order:3440,tags:["family","girl","man","woman"],unicode:"\u{1F468}\u200D\u{1F469}\u200D\u{1F467}"},{group:1,hexcode:"1F468-200D-1F469-200D-1F467-200D-1F466",label:"family: man, woman, girl, boy",order:3441,tags:["boy","family","girl","man","woman"],unicode:"\u{1F468}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F466}"},{group:1,hexcode:"1F468-200D-1F469-200D-1F466-200D-1F466",label:"family: man, woman, boy, boy",order:3442,tags:["boy","family","man","woman"],unicode:"\u{1F468}\u200D\u{1F469}\u200D\u{1F466}\u200D\u{1F466}"},{group:1,hexcode:"1F468-200D-1F469-200D-1F467-200D-1F467",label:"family: man, woman, girl, girl",order:3443,tags:["family","girl","man","woman"],unicode:"\u{1F468}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F467}"},{group:1,hexcode:"1F468-200D-1F468-200D-1F466",label:"family: man, man, boy",order:3444,tags:["boy","family","man"],unicode:"\u{1F468}\u200D\u{1F468}\u200D\u{1F466}"},{group:1,hexcode:"1F468-200D-1F468-200D-1F467",label:"family: man, man, girl",order:3445,tags:["family","girl","man"],unicode:"\u{1F468}\u200D\u{1F468}\u200D\u{1F467}"},{group:1,hexcode:"1F468-200D-1F468-200D-1F467-200D-1F466",label:"family: man, man, girl, boy",order:3446,tags:["boy","family","girl","man"],unicode:"\u{1F468}\u200D\u{1F468}\u200D\u{1F467}\u200D\u{1F466}"},{group:1,hexcode:"1F468-200D-1F468-200D-1F466-200D-1F466",label:"family: man, man, boy, boy",order:3447,tags:["boy","family","man"],unicode:"\u{1F468}\u200D\u{1F468}\u200D\u{1F466}\u200D\u{1F466}"},{group:1,hexcode:"1F468-200D-1F468-200D-1F467-200D-1F467",label:"family: man, man, girl, girl",order:3448,tags:["family","girl","man"],unicode:"\u{1F468}\u200D\u{1F468}\u200D\u{1F467}\u200D\u{1F467}"},{group:1,hexcode:"1F469-200D-1F469-200D-1F466",label:"family: woman, woman, boy",order:3449,tags:["boy","family","woman"],unicode:"\u{1F469}\u200D\u{1F469}\u200D\u{1F466}"},{group:1,hexcode:"1F469-200D-1F469-200D-1F467",label:"family: woman, woman, girl",order:3450,tags:["family","girl","woman"],unicode:"\u{1F469}\u200D\u{1F469}\u200D\u{1F467}"},{group:1,hexcode:"1F469-200D-1F469-200D-1F467-200D-1F466",label:"family: woman, woman, girl, boy",order:3451,tags:["boy","family","girl","woman"],unicode:"\u{1F469}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F466}"},{group:1,hexcode:"1F469-200D-1F469-200D-1F466-200D-1F466",label:"family: woman, woman, boy, boy",order:3452,tags:["boy","family","woman"],unicode:"\u{1F469}\u200D\u{1F469}\u200D\u{1F466}\u200D\u{1F466}"},{group:1,hexcode:"1F469-200D-1F469-200D-1F467-200D-1F467",label:"family: woman, woman, girl, girl",order:3453,tags:["family","girl","woman"],unicode:"\u{1F469}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F467}"},{group:1,hexcode:"1F468-200D-1F466",label:"family: man, boy",order:3454,tags:["boy","family","man"],unicode:"\u{1F468}\u200D\u{1F466}"},{group:1,hexcode:"1F468-200D-1F466-200D-1F466",label:"family: man, boy, boy",order:3455,tags:["boy","family","man"],unicode:"\u{1F468}\u200D\u{1F466}\u200D\u{1F466}"},{group:1,hexcode:"1F468-200D-1F467",label:"family: man, girl",order:3456,tags:["family","girl","man"],unicode:"\u{1F468}\u200D\u{1F467}"},{group:1,hexcode:"1F468-200D-1F467-200D-1F466",label:"family: man, girl, boy",order:3457,tags:["boy","family","girl","man"],unicode:"\u{1F468}\u200D\u{1F467}\u200D\u{1F466}"},{group:1,hexcode:"1F468-200D-1F467-200D-1F467",label:"family: man, girl, girl",order:3458,tags:["family","girl","man"],unicode:"\u{1F468}\u200D\u{1F467}\u200D\u{1F467}"},{group:1,hexcode:"1F469-200D-1F466",label:"family: woman, boy",order:3459,tags:["boy","family","woman"],unicode:"\u{1F469}\u200D\u{1F466}"},{group:1,hexcode:"1F469-200D-1F466-200D-1F466",label:"family: woman, boy, boy",order:3460,tags:["boy","family","woman"],unicode:"\u{1F469}\u200D\u{1F466}\u200D\u{1F466}"},{group:1,hexcode:"1F469-200D-1F467",label:"family: woman, girl",order:3461,tags:["family","girl","woman"],unicode:"\u{1F469}\u200D\u{1F467}"},{group:1,hexcode:"1F469-200D-1F467-200D-1F466",label:"family: woman, girl, boy",order:3462,tags:["boy","family","girl","woman"],unicode:"\u{1F469}\u200D\u{1F467}\u200D\u{1F466}"},{group:1,hexcode:"1F469-200D-1F467-200D-1F467",label:"family: woman, girl, girl",order:3463,tags:["family","girl","woman"],unicode:"\u{1F469}\u200D\u{1F467}\u200D\u{1F467}"},{group:1,hexcode:"1F5E3",label:"speaking head",order:3465,tags:["face","head","silhouette","speak","speaking"],unicode:"\u{1F5E3}\uFE0F"},{group:1,hexcode:"1F464",label:"bust in silhouette",order:3466,tags:["bust","silhouette"],unicode:"\u{1F464}"},{group:1,hexcode:"1F465",label:"busts in silhouette",order:3467,tags:["bust","silhouette"],unicode:"\u{1F465}"},{group:1,hexcode:"1FAC2",label:"people hugging",order:3468,tags:["goodbye","hello","hug","thanks"],unicode:"\u{1FAC2}"},{group:1,hexcode:"1F46A",label:"family",order:3469,tags:["family"],unicode:"\u{1F46A}\uFE0F"},{group:1,hexcode:"1F9D1-200D-1F9D1-200D-1F9D2",label:"family: adult, adult, child",order:3470,tags:["family: adult, adult, child"],unicode:"\u{1F9D1}\u200D\u{1F9D1}\u200D\u{1F9D2}"},{group:1,hexcode:"1F9D1-200D-1F9D1-200D-1F9D2-200D-1F9D2",label:"family: adult, adult, child, child",order:3471,tags:["family: adult, adult, child, child"],unicode:"\u{1F9D1}\u200D\u{1F9D1}\u200D\u{1F9D2}\u200D\u{1F9D2}"},{group:1,hexcode:"1F9D1-200D-1F9D2",label:"family: adult, child",order:3472,tags:["family: adult, child"],unicode:"\u{1F9D1}\u200D\u{1F9D2}"},{group:1,hexcode:"1F9D1-200D-1F9D2-200D-1F9D2",label:"family: adult, child, child",order:3473,tags:["family: adult, child, child"],unicode:"\u{1F9D1}\u200D\u{1F9D2}\u200D\u{1F9D2}"},{group:1,hexcode:"1F463",label:"footprints",order:3474,tags:["clothing","footprint","print"],unicode:"\u{1F463}"},{group:2,hexcode:"1F3FB",label:"light skin tone",order:3475,tags:["skin tone","type 1\u20132"],unicode:"\u{1F3FB}"},{group:2,hexcode:"1F3FC",label:"medium-light skin tone",order:3476,tags:["skin tone","type 3"],unicode:"\u{1F3FC}"},{group:2,hexcode:"1F3FD",label:"medium skin tone",order:3477,tags:["skin tone","type 4"],unicode:"\u{1F3FD}"},{group:2,hexcode:"1F3FE",label:"medium-dark skin tone",order:3478,tags:["skin tone","type 5"],unicode:"\u{1F3FE}"},{group:2,hexcode:"1F3FF",label:"dark skin tone",order:3479,tags:["skin tone","type 6"],unicode:"\u{1F3FF}"},{group:2,hexcode:"1F9B0",label:"red hair",order:3480,tags:["ginger","redhead"],unicode:"\u{1F9B0}"},{group:2,hexcode:"1F9B1",label:"curly hair",order:3481,tags:["afro","curly","ringlets"],unicode:"\u{1F9B1}"},{group:2,hexcode:"1F9B3",label:"white hair",order:3482,tags:["gray","hair","old","white"],unicode:"\u{1F9B3}"},{group:2,hexcode:"1F9B2",label:"bald",order:3483,tags:["chemotherapy","hairless","no hair","shaven"],unicode:"\u{1F9B2}"},{group:3,hexcode:"1F435",label:"monkey face",order:3484,tags:["face","monkey"],unicode:"\u{1F435}"},{group:3,hexcode:"1F412",label:"monkey",order:3485,tags:["monkey"],unicode:"\u{1F412}"},{group:3,hexcode:"1F98D",label:"gorilla",order:3486,tags:["gorilla"],unicode:"\u{1F98D}"},{group:3,hexcode:"1F9A7",label:"orangutan",order:3487,tags:["ape"],unicode:"\u{1F9A7}"},{group:3,hexcode:"1F436",label:"dog face",order:3488,tags:["dog","face","pet"],unicode:"\u{1F436}"},{group:3,hexcode:"1F415",label:"dog",order:3489,tags:["pet"],unicode:"\u{1F415}\uFE0F"},{group:3,hexcode:"1F9AE",label:"guide dog",order:3490,tags:["accessibility","blind","guide"],unicode:"\u{1F9AE}"},{group:3,hexcode:"1F415-200D-1F9BA",label:"service dog",order:3491,tags:["accessibility","assistance","dog","service"],unicode:"\u{1F415}\u200D\u{1F9BA}"},{group:3,hexcode:"1F429",label:"poodle",order:3492,tags:["dog"],unicode:"\u{1F429}"},{group:3,hexcode:"1F43A",label:"wolf",order:3493,tags:["face"],unicode:"\u{1F43A}"},{group:3,hexcode:"1F98A",label:"fox",order:3494,tags:["face"],unicode:"\u{1F98A}"},{group:3,hexcode:"1F99D",label:"raccoon",order:3495,tags:["curious","sly"],unicode:"\u{1F99D}"},{group:3,hexcode:"1F431",label:"cat face",order:3496,tags:["cat","face","pet"],unicode:"\u{1F431}"},{group:3,hexcode:"1F408",label:"cat",order:3497,tags:["pet"],unicode:"\u{1F408}\uFE0F"},{group:3,hexcode:"1F408-200D-2B1B",label:"black cat",order:3498,tags:["black","cat","unlucky"],unicode:"\u{1F408}\u200D\u2B1B"},{group:3,hexcode:"1F981",label:"lion",order:3499,tags:["face","leo","zodiac"],unicode:"\u{1F981}"},{group:3,hexcode:"1F42F",label:"tiger face",order:3500,tags:["face","tiger"],unicode:"\u{1F42F}"},{group:3,hexcode:"1F405",label:"tiger",order:3501,tags:["tiger"],unicode:"\u{1F405}"},{group:3,hexcode:"1F406",label:"leopard",order:3502,tags:["leopard"],unicode:"\u{1F406}"},{group:3,hexcode:"1F434",label:"horse face",order:3503,tags:["face","horse"],unicode:"\u{1F434}"},{group:3,hexcode:"1FACE",label:"moose",order:3504,tags:["animal","antlers","elk","mammal"],unicode:"\u{1FACE}"},{group:3,hexcode:"1FACF",label:"donkey",order:3505,tags:["animal","ass","burro","mammal","mule","stubborn"],unicode:"\u{1FACF}"},{group:3,hexcode:"1F40E",label:"horse",order:3506,tags:["equestrian","racehorse","racing"],unicode:"\u{1F40E}"},{group:3,hexcode:"1F984",label:"unicorn",order:3507,tags:["face"],unicode:"\u{1F984}"},{group:3,hexcode:"1F993",label:"zebra",order:3508,tags:["stripe"],unicode:"\u{1F993}"},{group:3,hexcode:"1F98C",label:"deer",order:3509,tags:["deer"],unicode:"\u{1F98C}"},{group:3,hexcode:"1F9AC",label:"bison",order:3510,tags:["buffalo","herd","wisent"],unicode:"\u{1F9AC}"},{group:3,hexcode:"1F42E",label:"cow face",order:3511,tags:["cow","face"],unicode:"\u{1F42E}"},{group:3,hexcode:"1F402",label:"ox",order:3512,tags:["bull","taurus","zodiac"],unicode:"\u{1F402}"},{group:3,hexcode:"1F403",label:"water buffalo",order:3513,tags:["buffalo","water"],unicode:"\u{1F403}"},{group:3,hexcode:"1F404",label:"cow",order:3514,tags:["cow"],unicode:"\u{1F404}"},{group:3,hexcode:"1F437",label:"pig face",order:3515,tags:["face","pig"],unicode:"\u{1F437}"},{group:3,hexcode:"1F416",label:"pig",order:3516,tags:["sow"],unicode:"\u{1F416}"},{group:3,hexcode:"1F417",label:"boar",order:3517,tags:["pig"],unicode:"\u{1F417}"},{group:3,hexcode:"1F43D",label:"pig nose",order:3518,tags:["face","nose","pig"],unicode:"\u{1F43D}"},{group:3,hexcode:"1F40F",label:"ram",order:3519,tags:["aries","male","sheep","zodiac"],unicode:"\u{1F40F}"},{group:3,hexcode:"1F411",label:"ewe",order:3520,tags:["female","sheep"],unicode:"\u{1F411}"},{group:3,hexcode:"1F410",label:"goat",order:3521,tags:["capricorn","zodiac"],unicode:"\u{1F410}"},{group:3,hexcode:"1F42A",label:"camel",order:3522,tags:["dromedary","hump"],unicode:"\u{1F42A}"},{group:3,hexcode:"1F42B",label:"two-hump camel",order:3523,tags:["bactrian","camel","hump"],unicode:"\u{1F42B}"},{group:3,hexcode:"1F999",label:"llama",order:3524,tags:["alpaca","guanaco","vicu\xF1a","wool"],unicode:"\u{1F999}"},{group:3,hexcode:"1F992",label:"giraffe",order:3525,tags:["spots"],unicode:"\u{1F992}"},{group:3,hexcode:"1F418",label:"elephant",order:3526,tags:["elephant"],unicode:"\u{1F418}"},{group:3,hexcode:"1F9A3",label:"mammoth",order:3527,tags:["extinction","large","tusk","woolly"],unicode:"\u{1F9A3}"},{group:3,hexcode:"1F98F",label:"rhinoceros",order:3528,tags:["rhinoceros"],unicode:"\u{1F98F}"},{group:3,hexcode:"1F99B",label:"hippopotamus",order:3529,tags:["hippo"],unicode:"\u{1F99B}"},{group:3,hexcode:"1F42D",label:"mouse face",order:3530,tags:["face","mouse"],unicode:"\u{1F42D}"},{group:3,hexcode:"1F401",label:"mouse",order:3531,tags:["mouse"],unicode:"\u{1F401}"},{group:3,hexcode:"1F400",label:"rat",order:3532,tags:["rat"],unicode:"\u{1F400}"},{group:3,hexcode:"1F439",label:"hamster",order:3533,tags:["face","pet"],unicode:"\u{1F439}"},{group:3,hexcode:"1F430",label:"rabbit face",order:3534,tags:["bunny","face","pet","rabbit"],unicode:"\u{1F430}"},{group:3,hexcode:"1F407",label:"rabbit",order:3535,tags:["bunny","pet"],unicode:"\u{1F407}"},{group:3,hexcode:"1F43F",label:"chipmunk",order:3537,tags:["squirrel"],unicode:"\u{1F43F}\uFE0F"},{group:3,hexcode:"1F9AB",label:"beaver",order:3538,tags:["dam"],unicode:"\u{1F9AB}"},{group:3,hexcode:"1F994",label:"hedgehog",order:3539,tags:["spiny"],unicode:"\u{1F994}"},{group:3,hexcode:"1F987",label:"bat",order:3540,tags:["vampire"],unicode:"\u{1F987}"},{group:3,hexcode:"1F43B",label:"bear",order:3541,tags:["face"],unicode:"\u{1F43B}"},{group:3,hexcode:"1F43B-200D-2744-FE0F",label:"polar bear",order:3542,tags:["arctic","bear","white"],unicode:"\u{1F43B}\u200D\u2744\uFE0F"},{group:3,hexcode:"1F428",label:"koala",order:3544,tags:["face","marsupial"],unicode:"\u{1F428}"},{group:3,hexcode:"1F43C",label:"panda",order:3545,tags:["face"],unicode:"\u{1F43C}"},{group:3,hexcode:"1F9A5",label:"sloth",order:3546,tags:["lazy","slow"],unicode:"\u{1F9A5}"},{group:3,hexcode:"1F9A6",label:"otter",order:3547,tags:["fishing","playful"],unicode:"\u{1F9A6}"},{group:3,hexcode:"1F9A8",label:"skunk",order:3548,tags:["stink"],unicode:"\u{1F9A8}"},{group:3,hexcode:"1F998",label:"kangaroo",order:3549,tags:["joey","jump","marsupial"],unicode:"\u{1F998}"},{group:3,hexcode:"1F9A1",label:"badger",order:3550,tags:["honey badger","pester"],unicode:"\u{1F9A1}"},{group:3,hexcode:"1F43E",label:"paw prints",order:3551,tags:["feet","paw","print"],unicode:"\u{1F43E}"},{group:3,hexcode:"1F983",label:"turkey",order:3552,tags:["bird"],unicode:"\u{1F983}"},{group:3,hexcode:"1F414",label:"chicken",order:3553,tags:["bird"],unicode:"\u{1F414}"},{group:3,hexcode:"1F413",label:"rooster",order:3554,tags:["bird"],unicode:"\u{1F413}"},{group:3,hexcode:"1F423",label:"hatching chick",order:3555,tags:["baby","bird","chick","hatching"],unicode:"\u{1F423}"},{group:3,hexcode:"1F424",label:"baby chick",order:3556,tags:["baby","bird","chick"],unicode:"\u{1F424}"},{group:3,hexcode:"1F425",label:"front-facing baby chick",order:3557,tags:["baby","bird","chick"],unicode:"\u{1F425}"},{group:3,hexcode:"1F426",label:"bird",order:3558,tags:["bird"],unicode:"\u{1F426}\uFE0F"},{group:3,hexcode:"1F427",label:"penguin",order:3559,tags:["bird"],unicode:"\u{1F427}"},{group:3,hexcode:"1F54A",label:"dove",order:3561,tags:["bird","fly","peace"],unicode:"\u{1F54A}\uFE0F"},{group:3,hexcode:"1F985",label:"eagle",order:3562,tags:["bird"],unicode:"\u{1F985}"},{group:3,hexcode:"1F986",label:"duck",order:3563,tags:["bird"],unicode:"\u{1F986}"},{group:3,hexcode:"1F9A2",label:"swan",order:3564,tags:["bird","cygnet","ugly duckling"],unicode:"\u{1F9A2}"},{group:3,hexcode:"1F989",label:"owl",order:3565,tags:["bird","wise"],unicode:"\u{1F989}"},{group:3,hexcode:"1F9A4",label:"dodo",order:3566,tags:["extinction","large","mauritius"],unicode:"\u{1F9A4}"},{group:3,hexcode:"1FAB6",label:"feather",order:3567,tags:["bird","flight","light","plumage"],unicode:"\u{1FAB6}"},{group:3,hexcode:"1F9A9",label:"flamingo",order:3568,tags:["flamboyant","tropical"],unicode:"\u{1F9A9}"},{group:3,hexcode:"1F99A",label:"peacock",order:3569,tags:["bird","ostentatious","peahen","proud"],unicode:"\u{1F99A}"},{group:3,hexcode:"1F99C",label:"parrot",order:3570,tags:["bird","pirate","talk"],unicode:"\u{1F99C}"},{group:3,hexcode:"1FABD",label:"wing",order:3571,tags:["angelic","aviation","bird","flying","mythology"],unicode:"\u{1FABD}"},{group:3,hexcode:"1F426-200D-2B1B",label:"black bird",order:3572,tags:["bird","black","crow","raven","rook"],unicode:"\u{1F426}\u200D\u2B1B"},{group:3,hexcode:"1FABF",label:"goose",order:3573,tags:["bird","fowl","honk","silly"],unicode:"\u{1FABF}"},{group:3,hexcode:"1F426-200D-1F525",label:"phoenix",order:3574,tags:["fantasy","firebird","rebirth","reincarnation"],unicode:"\u{1F426}\u200D\u{1F525}"},{group:3,hexcode:"1F438",label:"frog",order:3575,tags:["face"],unicode:"\u{1F438}"},{group:3,hexcode:"1F40A",label:"crocodile",order:3576,tags:["crocodile"],unicode:"\u{1F40A}"},{group:3,hexcode:"1F422",label:"turtle",order:3577,tags:["terrapin","tortoise"],unicode:"\u{1F422}"},{group:3,hexcode:"1F98E",label:"lizard",order:3578,tags:["reptile"],unicode:"\u{1F98E}"},{group:3,hexcode:"1F40D",label:"snake",order:3579,tags:["bearer","ophiuchus","serpent","zodiac"],unicode:"\u{1F40D}"},{group:3,hexcode:"1F432",label:"dragon face",order:3580,tags:["dragon","face","fairy tale"],unicode:"\u{1F432}"},{group:3,hexcode:"1F409",label:"dragon",order:3581,tags:["fairy tale"],unicode:"\u{1F409}"},{group:3,hexcode:"1F995",label:"sauropod",order:3582,tags:["brachiosaurus","brontosaurus","diplodocus"],unicode:"\u{1F995}"},{group:3,hexcode:"1F996",label:"T-Rex",order:3583,tags:["t-rex","tyrannosaurus rex"],unicode:"\u{1F996}"},{group:3,hexcode:"1F433",label:"spouting whale",order:3584,tags:["face","spouting","whale"],unicode:"\u{1F433}"},{group:3,hexcode:"1F40B",label:"whale",order:3585,tags:["whale"],unicode:"\u{1F40B}"},{group:3,hexcode:"1F42C",label:"dolphin",order:3586,tags:["flipper"],unicode:"\u{1F42C}"},{group:3,hexcode:"1F9AD",label:"seal",order:3587,tags:["sea lion"],unicode:"\u{1F9AD}"},{group:3,hexcode:"1F41F",label:"fish",order:3588,tags:["pisces","zodiac"],unicode:"\u{1F41F}\uFE0F"},{group:3,hexcode:"1F420",label:"tropical fish",order:3589,tags:["fish","tropical"],unicode:"\u{1F420}"},{group:3,hexcode:"1F421",label:"blowfish",order:3590,tags:["fish"],unicode:"\u{1F421}"},{group:3,hexcode:"1F988",label:"shark",order:3591,tags:["fish"],unicode:"\u{1F988}"},{group:3,hexcode:"1F419",label:"octopus",order:3592,tags:["octopus"],unicode:"\u{1F419}"},{group:3,hexcode:"1F41A",label:"spiral shell",order:3593,tags:["shell","spiral"],unicode:"\u{1F41A}"},{group:3,hexcode:"1FAB8",label:"coral",order:3594,tags:["ocean","reef"],unicode:"\u{1FAB8}"},{group:3,hexcode:"1FABC",label:"jellyfish",order:3595,tags:["burn","invertebrate","jelly","marine","ouch","stinger"],unicode:"\u{1FABC}"},{group:3,hexcode:"1F40C",label:"snail",order:3596,tags:["snail"],unicode:"\u{1F40C}"},{group:3,hexcode:"1F98B",label:"butterfly",order:3597,tags:["insect","pretty"],unicode:"\u{1F98B}"},{group:3,hexcode:"1F41B",label:"bug",order:3598,tags:["insect"],unicode:"\u{1F41B}"},{group:3,hexcode:"1F41C",label:"ant",order:3599,tags:["insect"],unicode:"\u{1F41C}"},{group:3,hexcode:"1F41D",label:"honeybee",order:3600,tags:["bee","insect"],unicode:"\u{1F41D}"},{group:3,hexcode:"1FAB2",label:"beetle",order:3601,tags:["bug","insect"],unicode:"\u{1FAB2}"},{group:3,hexcode:"1F41E",label:"lady beetle",order:3602,tags:["beetle","insect","ladybird","ladybug"],unicode:"\u{1F41E}"},{group:3,hexcode:"1F997",label:"cricket",order:3603,tags:["grasshopper"],unicode:"\u{1F997}"},{group:3,hexcode:"1FAB3",label:"cockroach",order:3604,tags:["insect","pest","roach"],unicode:"\u{1FAB3}"},{group:3,hexcode:"1F577",label:"spider",order:3606,tags:["insect"],unicode:"\u{1F577}\uFE0F"},{group:3,hexcode:"1F578",label:"spider web",order:3608,tags:["spider","web"],unicode:"\u{1F578}\uFE0F"},{group:3,hexcode:"1F982",label:"scorpion",order:3609,tags:["scorpio","zodiac"],unicode:"\u{1F982}"},{group:3,hexcode:"1F99F",label:"mosquito",order:3610,tags:["disease","fever","malaria","pest","virus"],unicode:"\u{1F99F}"},{group:3,hexcode:"1FAB0",label:"fly",order:3611,tags:["disease","maggot","pest","rotting"],unicode:"\u{1FAB0}"},{group:3,hexcode:"1FAB1",label:"worm",order:3612,tags:["annelid","earthworm","parasite"],unicode:"\u{1FAB1}"},{group:3,hexcode:"1F9A0",label:"microbe",order:3613,tags:["amoeba","bacteria","virus"],unicode:"\u{1F9A0}"},{group:3,hexcode:"1F490",label:"bouquet",order:3614,tags:["flower"],unicode:"\u{1F490}"},{group:3,hexcode:"1F338",label:"cherry blossom",order:3615,tags:["blossom","cherry","flower"],unicode:"\u{1F338}"},{group:3,hexcode:"1F4AE",label:"white flower",order:3616,tags:["flower"],unicode:"\u{1F4AE}"},{group:3,hexcode:"1FAB7",label:"lotus",order:3617,tags:["buddhism","flower","hinduism","purity"],unicode:"\u{1FAB7}"},{group:3,hexcode:"1F3F5",label:"rosette",order:3619,tags:["plant"],unicode:"\u{1F3F5}\uFE0F"},{group:3,hexcode:"1F339",label:"rose",order:3620,tags:["flower"],unicode:"\u{1F339}"},{group:3,hexcode:"1F940",label:"wilted flower",order:3621,tags:["flower","wilted"],unicode:"\u{1F940}"},{group:3,hexcode:"1F33A",label:"hibiscus",order:3622,tags:["flower"],unicode:"\u{1F33A}"},{group:3,hexcode:"1F33B",label:"sunflower",order:3623,tags:["flower","sun"],unicode:"\u{1F33B}"},{group:3,hexcode:"1F33C",label:"blossom",order:3624,tags:["flower"],unicode:"\u{1F33C}"},{group:3,hexcode:"1F337",label:"tulip",order:3625,tags:["flower"],unicode:"\u{1F337}"},{group:3,hexcode:"1FABB",label:"hyacinth",order:3626,tags:["bluebonnet","flower","lavender","lupine","snapdragon"],unicode:"\u{1FABB}"},{group:3,hexcode:"1F331",label:"seedling",order:3627,tags:["young"],unicode:"\u{1F331}"},{group:3,hexcode:"1FAB4",label:"potted plant",order:3628,tags:["boring","grow","house","nurturing","plant","useless"],unicode:"\u{1FAB4}"},{group:3,hexcode:"1F332",label:"evergreen tree",order:3629,tags:["tree"],unicode:"\u{1F332}"},{group:3,hexcode:"1F333",label:"deciduous tree",order:3630,tags:["deciduous","shedding","tree"],unicode:"\u{1F333}"},{group:3,hexcode:"1F334",label:"palm tree",order:3631,tags:["palm","tree"],unicode:"\u{1F334}"},{group:3,hexcode:"1F335",label:"cactus",order:3632,tags:["plant"],unicode:"\u{1F335}"},{group:3,hexcode:"1F33E",label:"sheaf of rice",order:3633,tags:["ear","grain","rice"],unicode:"\u{1F33E}"},{group:3,hexcode:"1F33F",label:"herb",order:3634,tags:["leaf"],unicode:"\u{1F33F}"},{group:3,hexcode:"2618",label:"shamrock",order:3636,tags:["plant"],unicode:"\u2618\uFE0F"},{group:3,hexcode:"1F340",label:"four leaf clover",order:3637,tags:["4","clover","four","four-leaf clover","leaf"],unicode:"\u{1F340}"},{group:3,hexcode:"1F341",label:"maple leaf",order:3638,tags:["falling","leaf","maple"],unicode:"\u{1F341}"},{group:3,hexcode:"1F342",label:"fallen leaf",order:3639,tags:["falling","leaf"],unicode:"\u{1F342}"},{group:3,hexcode:"1F343",label:"leaf fluttering in wind",order:3640,tags:["blow","flutter","leaf","wind"],unicode:"\u{1F343}"},{group:3,hexcode:"1FAB9",label:"empty nest",order:3641,tags:["nesting"],unicode:"\u{1FAB9}"},{group:3,hexcode:"1FABA",label:"nest with eggs",order:3642,tags:["nesting"],unicode:"\u{1FABA}"},{group:3,hexcode:"1F344",label:"mushroom",order:3643,tags:["toadstool"],unicode:"\u{1F344}"},{group:4,hexcode:"1F347",label:"grapes",order:3644,tags:["fruit","grape"],unicode:"\u{1F347}"},{group:4,hexcode:"1F348",label:"melon",order:3645,tags:["fruit"],unicode:"\u{1F348}"},{group:4,hexcode:"1F349",label:"watermelon",order:3646,tags:["fruit"],unicode:"\u{1F349}"},{group:4,hexcode:"1F34A",label:"tangerine",order:3647,tags:["fruit","orange"],unicode:"\u{1F34A}"},{group:4,hexcode:"1F34B",label:"lemon",order:3648,tags:["citrus","fruit"],unicode:"\u{1F34B}"},{group:4,hexcode:"1F34B-200D-1F7E9",label:"lime",order:3649,tags:["citrus","fruit","tropical"],unicode:"\u{1F34B}\u200D\u{1F7E9}"},{group:4,hexcode:"1F34C",label:"banana",order:3650,tags:["fruit"],unicode:"\u{1F34C}"},{group:4,hexcode:"1F34D",label:"pineapple",order:3651,tags:["fruit"],unicode:"\u{1F34D}"},{group:4,hexcode:"1F96D",label:"mango",order:3652,tags:["fruit","tropical"],unicode:"\u{1F96D}"},{group:4,hexcode:"1F34E",label:"red apple",order:3653,tags:["apple","fruit","red"],unicode:"\u{1F34E}"},{group:4,hexcode:"1F34F",label:"green apple",order:3654,tags:["apple","fruit","green"],unicode:"\u{1F34F}"},{group:4,hexcode:"1F350",label:"pear",order:3655,tags:["fruit"],unicode:"\u{1F350}"},{group:4,hexcode:"1F351",label:"peach",order:3656,tags:["fruit"],unicode:"\u{1F351}"},{group:4,hexcode:"1F352",label:"cherries",order:3657,tags:["berries","cherry","fruit","red"],unicode:"\u{1F352}"},{group:4,hexcode:"1F353",label:"strawberry",order:3658,tags:["berry","fruit"],unicode:"\u{1F353}"},{group:4,hexcode:"1FAD0",label:"blueberries",order:3659,tags:["berry","bilberry","blue","blueberry"],unicode:"\u{1FAD0}"},{group:4,hexcode:"1F95D",label:"kiwi fruit",order:3660,tags:["food","fruit","kiwi"],unicode:"\u{1F95D}"},{group:4,hexcode:"1F345",label:"tomato",order:3661,tags:["fruit","vegetable"],unicode:"\u{1F345}"},{group:4,hexcode:"1FAD2",label:"olive",order:3662,tags:["food"],unicode:"\u{1FAD2}"},{group:4,hexcode:"1F965",label:"coconut",order:3663,tags:["palm","pi\xF1a colada"],unicode:"\u{1F965}"},{group:4,hexcode:"1F951",label:"avocado",order:3664,tags:["food","fruit"],unicode:"\u{1F951}"},{group:4,hexcode:"1F346",label:"eggplant",order:3665,tags:["aubergine","vegetable"],unicode:"\u{1F346}"},{group:4,hexcode:"1F954",label:"potato",order:3666,tags:["food","vegetable"],unicode:"\u{1F954}"},{group:4,hexcode:"1F955",label:"carrot",order:3667,tags:["food","vegetable"],unicode:"\u{1F955}"},{group:4,hexcode:"1F33D",label:"ear of corn",order:3668,tags:["corn","ear","maize","maze"],unicode:"\u{1F33D}"},{group:4,hexcode:"1F336",label:"hot pepper",order:3670,tags:["hot","pepper"],unicode:"\u{1F336}\uFE0F"},{group:4,hexcode:"1FAD1",label:"bell pepper",order:3671,tags:["capsicum","pepper","vegetable"],unicode:"\u{1FAD1}"},{group:4,hexcode:"1F952",label:"cucumber",order:3672,tags:["food","pickle","vegetable"],unicode:"\u{1F952}"},{group:4,hexcode:"1F96C",label:"leafy green",order:3673,tags:["bok choy","cabbage","kale","lettuce"],unicode:"\u{1F96C}"},{group:4,hexcode:"1F966",label:"broccoli",order:3674,tags:["wild cabbage"],unicode:"\u{1F966}"},{group:4,hexcode:"1F9C4",label:"garlic",order:3675,tags:["flavoring"],unicode:"\u{1F9C4}"},{group:4,hexcode:"1F9C5",label:"onion",order:3676,tags:["flavoring"],unicode:"\u{1F9C5}"},{group:4,hexcode:"1F95C",label:"peanuts",order:3677,tags:["food","nut","peanut","vegetable"],unicode:"\u{1F95C}"},{group:4,hexcode:"1FAD8",label:"beans",order:3678,tags:["food","kidney","legume"],unicode:"\u{1FAD8}"},{group:4,hexcode:"1F330",label:"chestnut",order:3679,tags:["plant"],unicode:"\u{1F330}"},{group:4,hexcode:"1FADA",label:"ginger root",order:3680,tags:["beer","root","spice"],unicode:"\u{1FADA}"},{group:4,hexcode:"1FADB",label:"pea pod",order:3681,tags:["beans","edamame","legume","pea","pod","vegetable"],unicode:"\u{1FADB}"},{group:4,hexcode:"1F344-200D-1F7EB",label:"brown mushroom",order:3682,tags:["food","fungus","nature","vegetable"],unicode:"\u{1F344}\u200D\u{1F7EB}"},{group:4,hexcode:"1F35E",label:"bread",order:3683,tags:["loaf"],unicode:"\u{1F35E}"},{group:4,hexcode:"1F950",label:"croissant",order:3684,tags:["bread","breakfast","food","french","roll"],unicode:"\u{1F950}"},{group:4,hexcode:"1F956",label:"baguette bread",order:3685,tags:["baguette","bread","food","french"],unicode:"\u{1F956}"},{group:4,hexcode:"1FAD3",label:"flatbread",order:3686,tags:["arepa","lavash","naan","pita"],unicode:"\u{1FAD3}"},{group:4,hexcode:"1F968",label:"pretzel",order:3687,tags:["twisted"],unicode:"\u{1F968}"},{group:4,hexcode:"1F96F",label:"bagel",order:3688,tags:["bakery","breakfast","schmear"],unicode:"\u{1F96F}"},{group:4,hexcode:"1F95E",label:"pancakes",order:3689,tags:["breakfast","cr\xEApe","food","hotcake","pancake"],unicode:"\u{1F95E}"},{group:4,hexcode:"1F9C7",label:"waffle",order:3690,tags:["breakfast","indecisive","iron"],unicode:"\u{1F9C7}"},{group:4,hexcode:"1F9C0",label:"cheese wedge",order:3691,tags:["cheese"],unicode:"\u{1F9C0}"},{group:4,hexcode:"1F356",label:"meat on bone",order:3692,tags:["bone","meat"],unicode:"\u{1F356}"},{group:4,hexcode:"1F357",label:"poultry leg",order:3693,tags:["bone","chicken","drumstick","leg","poultry"],unicode:"\u{1F357}"},{group:4,hexcode:"1F969",label:"cut of meat",order:3694,tags:["chop","lambchop","porkchop","steak"],unicode:"\u{1F969}"},{group:4,hexcode:"1F953",label:"bacon",order:3695,tags:["breakfast","food","meat"],unicode:"\u{1F953}"},{group:4,hexcode:"1F354",label:"hamburger",order:3696,tags:["burger"],unicode:"\u{1F354}"},{group:4,hexcode:"1F35F",label:"french fries",order:3697,tags:["french","fries"],unicode:"\u{1F35F}"},{group:4,hexcode:"1F355",label:"pizza",order:3698,tags:["cheese","slice"],unicode:"\u{1F355}"},{group:4,hexcode:"1F32D",label:"hot dog",order:3699,tags:["frankfurter","hotdog","sausage"],unicode:"\u{1F32D}"},{group:4,hexcode:"1F96A",label:"sandwich",order:3700,tags:["bread"],unicode:"\u{1F96A}"},{group:4,hexcode:"1F32E",label:"taco",order:3701,tags:["mexican"],unicode:"\u{1F32E}"},{group:4,hexcode:"1F32F",label:"burrito",order:3702,tags:["mexican","wrap"],unicode:"\u{1F32F}"},{group:4,hexcode:"1FAD4",label:"tamale",order:3703,tags:["mexican","wrapped"],unicode:"\u{1FAD4}"},{group:4,hexcode:"1F959",label:"stuffed flatbread",order:3704,tags:["falafel","flatbread","food","gyro","kebab","stuffed"],unicode:"\u{1F959}"},{group:4,hexcode:"1F9C6",label:"falafel",order:3705,tags:["chickpea","meatball"],unicode:"\u{1F9C6}"},{group:4,hexcode:"1F95A",label:"egg",order:3706,tags:["breakfast","food"],unicode:"\u{1F95A}"},{group:4,hexcode:"1F373",label:"cooking",order:3707,tags:["breakfast","egg","frying","pan"],unicode:"\u{1F373}"},{group:4,hexcode:"1F958",label:"shallow pan of food",order:3708,tags:["casserole","food","paella","pan","shallow"],unicode:"\u{1F958}"},{group:4,hexcode:"1F372",label:"pot of food",order:3709,tags:["pot","stew"],unicode:"\u{1F372}"},{group:4,hexcode:"1FAD5",label:"fondue",order:3710,tags:["cheese","chocolate","melted","pot","swiss"],unicode:"\u{1FAD5}"},{group:4,hexcode:"1F963",label:"bowl with spoon",order:3711,tags:["breakfast","cereal","congee"],unicode:"\u{1F963}"},{group:4,hexcode:"1F957",label:"green salad",order:3712,tags:["food","green","salad"],unicode:"\u{1F957}"},{group:4,hexcode:"1F37F",label:"popcorn",order:3713,tags:["popcorn"],unicode:"\u{1F37F}"},{group:4,hexcode:"1F9C8",label:"butter",order:3714,tags:["dairy"],unicode:"\u{1F9C8}"},{group:4,hexcode:"1F9C2",label:"salt",order:3715,tags:["condiment","shaker"],unicode:"\u{1F9C2}"},{group:4,hexcode:"1F96B",label:"canned food",order:3716,tags:["can"],unicode:"\u{1F96B}"},{group:4,hexcode:"1F371",label:"bento box",order:3717,tags:["bento","box"],unicode:"\u{1F371}"},{group:4,hexcode:"1F358",label:"rice cracker",order:3718,tags:["cracker","rice"],unicode:"\u{1F358}"},{group:4,hexcode:"1F359",label:"rice ball",order:3719,tags:["ball","japanese","rice"],unicode:"\u{1F359}"},{group:4,hexcode:"1F35A",label:"cooked rice",order:3720,tags:["cooked","rice"],unicode:"\u{1F35A}"},{group:4,hexcode:"1F35B",label:"curry rice",order:3721,tags:["curry","rice"],unicode:"\u{1F35B}"},{group:4,hexcode:"1F35C",label:"steaming bowl",order:3722,tags:["bowl","noodle","ramen","steaming"],unicode:"\u{1F35C}"},{group:4,hexcode:"1F35D",label:"spaghetti",order:3723,tags:["pasta"],unicode:"\u{1F35D}"},{group:4,hexcode:"1F360",label:"roasted sweet potato",order:3724,tags:["potato","roasted","sweet"],unicode:"\u{1F360}"},{group:4,hexcode:"1F362",label:"oden",order:3725,tags:["kebab","seafood","skewer","stick"],unicode:"\u{1F362}"},{group:4,hexcode:"1F363",label:"sushi",order:3726,tags:["sushi"],unicode:"\u{1F363}"},{group:4,hexcode:"1F364",label:"fried shrimp",order:3727,tags:["fried","prawn","shrimp","tempura"],unicode:"\u{1F364}"},{group:4,hexcode:"1F365",label:"fish cake with swirl",order:3728,tags:["cake","fish","pastry","swirl"],unicode:"\u{1F365}"},{group:4,hexcode:"1F96E",label:"moon cake",order:3729,tags:["autumn","festival","yu\xE8b\u01D0ng"],unicode:"\u{1F96E}"},{group:4,hexcode:"1F361",label:"dango",order:3730,tags:["dessert","japanese","skewer","stick","sweet"],unicode:"\u{1F361}"},{group:4,hexcode:"1F95F",label:"dumpling",order:3731,tags:["empanada","gy\u014Dza","jiaozi","pierogi","potsticker"],unicode:"\u{1F95F}"},{group:4,hexcode:"1F960",label:"fortune cookie",order:3732,tags:["prophecy"],unicode:"\u{1F960}"},{group:4,hexcode:"1F961",label:"takeout box",order:3733,tags:["oyster pail"],unicode:"\u{1F961}"},{group:4,hexcode:"1F980",label:"crab",order:3734,tags:["cancer","zodiac"],unicode:"\u{1F980}"},{group:4,hexcode:"1F99E",label:"lobster",order:3735,tags:["bisque","claws","seafood"],unicode:"\u{1F99E}"},{group:4,hexcode:"1F990",label:"shrimp",order:3736,tags:["food","shellfish","small"],unicode:"\u{1F990}"},{group:4,hexcode:"1F991",label:"squid",order:3737,tags:["food","molusc"],unicode:"\u{1F991}"},{group:4,hexcode:"1F9AA",label:"oyster",order:3738,tags:["diving","pearl"],unicode:"\u{1F9AA}"},{group:4,hexcode:"1F366",label:"soft ice cream",order:3739,tags:["cream","dessert","ice","icecream","soft","sweet"],unicode:"\u{1F366}"},{group:4,hexcode:"1F367",label:"shaved ice",order:3740,tags:["dessert","ice","shaved","sweet"],unicode:"\u{1F367}"},{group:4,hexcode:"1F368",label:"ice cream",order:3741,tags:["cream","dessert","ice","sweet"],unicode:"\u{1F368}"},{group:4,hexcode:"1F369",label:"doughnut",order:3742,tags:["breakfast","dessert","donut","sweet"],unicode:"\u{1F369}"},{group:4,hexcode:"1F36A",label:"cookie",order:3743,tags:["dessert","sweet"],unicode:"\u{1F36A}"},{group:4,hexcode:"1F382",label:"birthday cake",order:3744,tags:["birthday","cake","celebration","dessert","pastry","sweet"],unicode:"\u{1F382}"},{group:4,hexcode:"1F370",label:"shortcake",order:3745,tags:["cake","dessert","pastry","slice","sweet"],unicode:"\u{1F370}"},{group:4,hexcode:"1F9C1",label:"cupcake",order:3746,tags:["bakery","sweet"],unicode:"\u{1F9C1}"},{group:4,hexcode:"1F967",label:"pie",order:3747,tags:["filling","pastry"],unicode:"\u{1F967}"},{group:4,hexcode:"1F36B",label:"chocolate bar",order:3748,tags:["bar","chocolate","dessert","sweet"],unicode:"\u{1F36B}"},{group:4,hexcode:"1F36C",label:"candy",order:3749,tags:["dessert","sweet"],unicode:"\u{1F36C}"},{group:4,hexcode:"1F36D",label:"lollipop",order:3750,tags:["candy","dessert","sweet"],unicode:"\u{1F36D}"},{group:4,hexcode:"1F36E",label:"custard",order:3751,tags:["dessert","pudding","sweet"],unicode:"\u{1F36E}"},{group:4,hexcode:"1F36F",label:"honey pot",order:3752,tags:["honey","honeypot","pot","sweet"],unicode:"\u{1F36F}"},{group:4,hexcode:"1F37C",label:"baby bottle",order:3753,tags:["baby","bottle","drink","milk"],unicode:"\u{1F37C}"},{group:4,hexcode:"1F95B",label:"glass of milk",order:3754,tags:["drink","glass","milk"],unicode:"\u{1F95B}"},{group:4,hexcode:"2615",label:"hot beverage",order:3755,tags:["beverage","coffee","drink","hot","steaming","tea"],unicode:"\u2615\uFE0F"},{group:4,hexcode:"1FAD6",label:"teapot",order:3756,tags:["drink","pot","tea"],unicode:"\u{1FAD6}"},{group:4,hexcode:"1F375",label:"teacup without handle",order:3757,tags:["beverage","cup","drink","tea","teacup"],unicode:"\u{1F375}"},{group:4,hexcode:"1F376",label:"sake",order:3758,tags:["bar","beverage","bottle","cup","drink"],unicode:"\u{1F376}"},{group:4,hexcode:"1F37E",label:"bottle with popping cork",order:3759,tags:["bar","bottle","cork","drink","popping"],unicode:"\u{1F37E}"},{group:4,hexcode:"1F377",label:"wine glass",order:3760,tags:["bar","beverage","drink","glass","wine"],unicode:"\u{1F377}"},{group:4,hexcode:"1F378",label:"cocktail glass",order:3761,tags:["bar","cocktail","drink","glass"],unicode:"\u{1F378}\uFE0F"},{group:4,hexcode:"1F379",label:"tropical drink",order:3762,tags:["bar","drink","tropical"],unicode:"\u{1F379}"},{group:4,hexcode:"1F37A",label:"beer mug",order:3763,tags:["bar","beer","drink","mug"],unicode:"\u{1F37A}"},{group:4,hexcode:"1F37B",label:"clinking beer mugs",order:3764,tags:["bar","beer","clink","drink","mug"],unicode:"\u{1F37B}"},{group:4,hexcode:"1F942",label:"clinking glasses",order:3765,tags:["celebrate","clink","drink","glass"],unicode:"\u{1F942}"},{group:4,hexcode:"1F943",label:"tumbler glass",order:3766,tags:["glass","liquor","shot","tumbler","whisky"],unicode:"\u{1F943}"},{group:4,hexcode:"1FAD7",label:"pouring liquid",order:3767,tags:["drink","empty","glass","spill"],unicode:"\u{1FAD7}"},{group:4,hexcode:"1F964",label:"cup with straw",order:3768,tags:["juice","soda"],unicode:"\u{1F964}"},{group:4,hexcode:"1F9CB",label:"bubble tea",order:3769,tags:["bubble","milk","pearl","tea"],unicode:"\u{1F9CB}"},{group:4,hexcode:"1F9C3",label:"beverage box",order:3770,tags:["beverage","box","juice","straw","sweet"],unicode:"\u{1F9C3}"},{group:4,hexcode:"1F9C9",label:"mate",order:3771,tags:["drink"],unicode:"\u{1F9C9}"},{group:4,hexcode:"1F9CA",label:"ice",order:3772,tags:["cold","ice cube","iceberg"],unicode:"\u{1F9CA}"},{group:4,hexcode:"1F962",label:"chopsticks",order:3773,tags:["hashi"],unicode:"\u{1F962}"},{group:4,hexcode:"1F37D",label:"fork and knife with plate",order:3775,tags:["cooking","fork","knife","plate"],unicode:"\u{1F37D}\uFE0F"},{group:4,hexcode:"1F374",label:"fork and knife",order:3776,tags:["cooking","cutlery","fork","knife"],unicode:"\u{1F374}"},{group:4,hexcode:"1F944",label:"spoon",order:3777,tags:["tableware"],unicode:"\u{1F944}"},{group:4,hexcode:"1F52A",label:"kitchen knife",order:3778,tags:["cooking","hocho","knife","tool","weapon"],unicode:"\u{1F52A}"},{group:4,hexcode:"1FAD9",label:"jar",order:3779,tags:["condiment","container","empty","sauce","store"],unicode:"\u{1FAD9}"},{group:4,hexcode:"1F3FA",label:"amphora",order:3780,tags:["aquarius","cooking","drink","jug","zodiac"],unicode:"\u{1F3FA}"},{group:5,hexcode:"1F30D",label:"globe showing Europe-Africa",order:3781,tags:["africa","earth","europe","globe","globe showing europe-africa","world"],unicode:"\u{1F30D}\uFE0F"},{group:5,hexcode:"1F30E",label:"globe showing Americas",order:3782,tags:["americas","earth","globe","globe showing americas","world"],unicode:"\u{1F30E}\uFE0F"},{group:5,hexcode:"1F30F",label:"globe showing Asia-Australia",order:3783,tags:["asia","australia","earth","globe","globe showing asia-australia","world"],unicode:"\u{1F30F}\uFE0F"},{group:5,hexcode:"1F310",label:"globe with meridians",order:3784,tags:["earth","globe","meridians","world"],unicode:"\u{1F310}"},{group:5,hexcode:"1F5FA",label:"world map",order:3786,tags:["map","world"],unicode:"\u{1F5FA}\uFE0F"},{group:5,hexcode:"1F5FE",label:"map of Japan",order:3787,tags:["japan","map","map of japan"],unicode:"\u{1F5FE}"},{group:5,hexcode:"1F9ED",label:"compass",order:3788,tags:["magnetic","navigation","orienteering"],unicode:"\u{1F9ED}"},{group:5,hexcode:"1F3D4",label:"snow-capped mountain",order:3790,tags:["cold","mountain","snow"],unicode:"\u{1F3D4}\uFE0F"},{group:5,hexcode:"26F0",label:"mountain",order:3792,tags:["mountain"],unicode:"\u26F0\uFE0F"},{group:5,hexcode:"1F30B",label:"volcano",order:3793,tags:["eruption","mountain"],unicode:"\u{1F30B}"},{group:5,hexcode:"1F5FB",label:"mount fuji",order:3794,tags:["fuji","mountain"],unicode:"\u{1F5FB}"},{group:5,hexcode:"1F3D5",label:"camping",order:3796,tags:["camping"],unicode:"\u{1F3D5}\uFE0F"},{group:5,hexcode:"1F3D6",label:"beach with umbrella",order:3798,tags:["beach","umbrella"],unicode:"\u{1F3D6}\uFE0F"},{group:5,hexcode:"1F3DC",label:"desert",order:3800,tags:["desert"],unicode:"\u{1F3DC}\uFE0F"},{group:5,hexcode:"1F3DD",label:"desert island",order:3802,tags:["desert","island"],unicode:"\u{1F3DD}\uFE0F"},{group:5,hexcode:"1F3DE",label:"national park",order:3804,tags:["park"],unicode:"\u{1F3DE}\uFE0F"},{group:5,hexcode:"1F3DF",label:"stadium",order:3806,tags:["stadium"],unicode:"\u{1F3DF}\uFE0F"},{group:5,hexcode:"1F3DB",label:"classical building",order:3808,tags:["classical"],unicode:"\u{1F3DB}\uFE0F"},{group:5,hexcode:"1F3D7",label:"building construction",order:3810,tags:["construction"],unicode:"\u{1F3D7}\uFE0F"},{group:5,hexcode:"1F9F1",label:"brick",order:3811,tags:["bricks","clay","mortar","wall"],unicode:"\u{1F9F1}"},{group:5,hexcode:"1FAA8",label:"rock",order:3812,tags:["boulder","heavy","solid","stone"],unicode:"\u{1FAA8}"},{group:5,hexcode:"1FAB5",label:"wood",order:3813,tags:["log","lumber","timber"],unicode:"\u{1FAB5}"},{group:5,hexcode:"1F6D6",label:"hut",order:3814,tags:["house","roundhouse","yurt"],unicode:"\u{1F6D6}"},{group:5,hexcode:"1F3D8",label:"houses",order:3816,tags:["houses"],unicode:"\u{1F3D8}\uFE0F"},{group:5,hexcode:"1F3DA",label:"derelict house",order:3818,tags:["derelict","house"],unicode:"\u{1F3DA}\uFE0F"},{group:5,hexcode:"1F3E0",label:"house",order:3819,tags:["home"],unicode:"\u{1F3E0}\uFE0F"},{group:5,hexcode:"1F3E1",label:"house with garden",order:3820,tags:["garden","home","house"],unicode:"\u{1F3E1}"},{group:5,hexcode:"1F3E2",label:"office building",order:3821,tags:["building"],unicode:"\u{1F3E2}"},{group:5,hexcode:"1F3E3",label:"Japanese post office",order:3822,tags:["japanese","japanese post office","post"],unicode:"\u{1F3E3}"},{group:5,hexcode:"1F3E4",label:"post office",order:3823,tags:["european","post"],unicode:"\u{1F3E4}"},{group:5,hexcode:"1F3E5",label:"hospital",order:3824,tags:["doctor","medicine"],unicode:"\u{1F3E5}"},{group:5,hexcode:"1F3E6",label:"bank",order:3825,tags:["building"],unicode:"\u{1F3E6}"},{group:5,hexcode:"1F3E8",label:"hotel",order:3826,tags:["building"],unicode:"\u{1F3E8}"},{group:5,hexcode:"1F3E9",label:"love hotel",order:3827,tags:["hotel","love"],unicode:"\u{1F3E9}"},{group:5,hexcode:"1F3EA",label:"convenience store",order:3828,tags:["convenience","store"],unicode:"\u{1F3EA}"},{group:5,hexcode:"1F3EB",label:"school",order:3829,tags:["building"],unicode:"\u{1F3EB}"},{group:5,hexcode:"1F3EC",label:"department store",order:3830,tags:["department","store"],unicode:"\u{1F3EC}"},{group:5,hexcode:"1F3ED",label:"factory",order:3831,tags:["building"],unicode:"\u{1F3ED}\uFE0F"},{group:5,hexcode:"1F3EF",label:"Japanese castle",order:3832,tags:["castle","japanese"],unicode:"\u{1F3EF}"},{group:5,hexcode:"1F3F0",label:"castle",order:3833,tags:["european"],unicode:"\u{1F3F0}"},{group:5,hexcode:"1F492",label:"wedding",order:3834,tags:["chapel","romance"],unicode:"\u{1F492}"},{group:5,hexcode:"1F5FC",label:"Tokyo tower",order:3835,tags:["tokyo","tower"],unicode:"\u{1F5FC}"},{group:5,hexcode:"1F5FD",label:"Statue of Liberty",order:3836,tags:["liberty","statue","statue of liberty"],unicode:"\u{1F5FD}"},{group:5,hexcode:"26EA",label:"church",order:3837,tags:["christian","cross","religion"],unicode:"\u26EA\uFE0F"},{group:5,hexcode:"1F54C",label:"mosque",order:3838,tags:["islam","muslim","religion"],unicode:"\u{1F54C}"},{group:5,hexcode:"1F6D5",label:"hindu temple",order:3839,tags:["hindu","temple"],unicode:"\u{1F6D5}"},{group:5,hexcode:"1F54D",label:"synagogue",order:3840,tags:["jew","jewish","religion","temple"],unicode:"\u{1F54D}"},{group:5,hexcode:"26E9",label:"shinto shrine",order:3842,tags:["religion","shinto","shrine"],unicode:"\u26E9\uFE0F"},{group:5,hexcode:"1F54B",label:"kaaba",order:3843,tags:["islam","muslim","religion"],unicode:"\u{1F54B}"},{group:5,hexcode:"26F2",label:"fountain",order:3844,tags:["fountain"],unicode:"\u26F2\uFE0F"},{group:5,hexcode:"26FA",label:"tent",order:3845,tags:["camping"],unicode:"\u26FA\uFE0F"},{group:5,hexcode:"1F301",label:"foggy",order:3846,tags:["fog"],unicode:"\u{1F301}"},{group:5,hexcode:"1F303",label:"night with stars",order:3847,tags:["night","star"],unicode:"\u{1F303}"},{group:5,hexcode:"1F3D9",label:"cityscape",order:3849,tags:["city"],unicode:"\u{1F3D9}\uFE0F"},{group:5,hexcode:"1F304",label:"sunrise over mountains",order:3850,tags:["morning","mountain","sun","sunrise"],unicode:"\u{1F304}"},{group:5,hexcode:"1F305",label:"sunrise",order:3851,tags:["morning","sun"],unicode:"\u{1F305}"},{group:5,hexcode:"1F306",label:"cityscape at dusk",order:3852,tags:["city","dusk","evening","landscape","sunset"],unicode:"\u{1F306}"},{group:5,hexcode:"1F307",label:"sunset",order:3853,tags:["dusk","sun"],unicode:"\u{1F307}"},{group:5,hexcode:"1F309",label:"bridge at night",order:3854,tags:["bridge","night"],unicode:"\u{1F309}"},{group:5,hexcode:"2668",label:"hot springs",order:3856,tags:["hot","hotsprings","springs","steaming"],unicode:"\u2668\uFE0F"},{group:5,hexcode:"1F3A0",label:"carousel horse",order:3857,tags:["carousel","horse"],unicode:"\u{1F3A0}"},{group:5,hexcode:"1F6DD",label:"playground slide",order:3858,tags:["amusement park","play","theme park"],unicode:"\u{1F6DD}"},{group:5,hexcode:"1F3A1",label:"ferris wheel",order:3859,tags:["amusement park","ferris","theme park","wheel"],unicode:"\u{1F3A1}"},{group:5,hexcode:"1F3A2",label:"roller coaster",order:3860,tags:["amusement park","coaster","roller","theme park"],unicode:"\u{1F3A2}"},{group:5,hexcode:"1F488",label:"barber pole",order:3861,tags:["barber","haircut","pole"],unicode:"\u{1F488}"},{group:5,hexcode:"1F3AA",label:"circus tent",order:3862,tags:["circus","tent"],unicode:"\u{1F3AA}"},{group:5,hexcode:"1F682",label:"locomotive",order:3863,tags:["engine","railway","steam","train"],unicode:"\u{1F682}"},{group:5,hexcode:"1F683",label:"railway car",order:3864,tags:["car","electric","railway","train","tram","trolleybus"],unicode:"\u{1F683}"},{group:5,hexcode:"1F684",label:"high-speed train",order:3865,tags:["railway","shinkansen","speed","train"],unicode:"\u{1F684}"},{group:5,hexcode:"1F685",label:"bullet train",order:3866,tags:["bullet","railway","shinkansen","speed","train"],unicode:"\u{1F685}"},{group:5,hexcode:"1F686",label:"train",order:3867,tags:["railway"],unicode:"\u{1F686}"},{group:5,hexcode:"1F687",label:"metro",order:3868,tags:["subway"],unicode:"\u{1F687}\uFE0F"},{group:5,hexcode:"1F688",label:"light rail",order:3869,tags:["railway"],unicode:"\u{1F688}"},{group:5,hexcode:"1F689",label:"station",order:3870,tags:["railway","train"],unicode:"\u{1F689}"},{group:5,hexcode:"1F68A",label:"tram",order:3871,tags:["trolleybus"],unicode:"\u{1F68A}"},{group:5,hexcode:"1F69D",label:"monorail",order:3872,tags:["vehicle"],unicode:"\u{1F69D}"},{group:5,hexcode:"1F69E",label:"mountain railway",order:3873,tags:["car","mountain","railway"],unicode:"\u{1F69E}"},{group:5,hexcode:"1F68B",label:"tram car",order:3874,tags:["car","tram","trolleybus"],unicode:"\u{1F68B}"},{group:5,hexcode:"1F68C",label:"bus",order:3875,tags:["vehicle"],unicode:"\u{1F68C}"},{group:5,hexcode:"1F68D",label:"oncoming bus",order:3876,tags:["bus","oncoming"],unicode:"\u{1F68D}\uFE0F"},{group:5,hexcode:"1F68E",label:"trolleybus",order:3877,tags:["bus","tram","trolley"],unicode:"\u{1F68E}"},{group:5,hexcode:"1F690",label:"minibus",order:3878,tags:["bus"],unicode:"\u{1F690}"},{group:5,hexcode:"1F691",label:"ambulance",order:3879,tags:["vehicle"],unicode:"\u{1F691}\uFE0F"},{group:5,hexcode:"1F692",label:"fire engine",order:3880,tags:["engine","fire","truck"],unicode:"\u{1F692}"},{group:5,hexcode:"1F693",label:"police car",order:3881,tags:["car","patrol","police"],unicode:"\u{1F693}"},{group:5,hexcode:"1F694",label:"oncoming police car",order:3882,tags:["car","oncoming","police"],unicode:"\u{1F694}\uFE0F"},{group:5,hexcode:"1F695",label:"taxi",order:3883,tags:["vehicle"],unicode:"\u{1F695}"},{group:5,hexcode:"1F696",label:"oncoming taxi",order:3884,tags:["oncoming","taxi"],unicode:"\u{1F696}"},{group:5,hexcode:"1F697",label:"automobile",order:3885,tags:["car"],unicode:"\u{1F697}"},{group:5,hexcode:"1F698",label:"oncoming automobile",order:3886,tags:["automobile","car","oncoming"],unicode:"\u{1F698}\uFE0F"},{group:5,hexcode:"1F699",label:"sport utility vehicle",order:3887,tags:["recreational","sport utility"],unicode:"\u{1F699}"},{group:5,hexcode:"1F6FB",label:"pickup truck",order:3888,tags:["pick-up","pickup","truck"],unicode:"\u{1F6FB}"},{group:5,hexcode:"1F69A",label:"delivery truck",order:3889,tags:["delivery","truck"],unicode:"\u{1F69A}"},{group:5,hexcode:"1F69B",label:"articulated lorry",order:3890,tags:["lorry","semi","truck"],unicode:"\u{1F69B}"},{group:5,hexcode:"1F69C",label:"tractor",order:3891,tags:["vehicle"],unicode:"\u{1F69C}"},{group:5,hexcode:"1F3CE",label:"racing car",order:3893,tags:["car","racing"],unicode:"\u{1F3CE}\uFE0F"},{group:5,hexcode:"1F3CD",label:"motorcycle",order:3895,tags:["racing"],unicode:"\u{1F3CD}\uFE0F"},{group:5,hexcode:"1F6F5",label:"motor scooter",order:3896,tags:["motor","scooter"],unicode:"\u{1F6F5}"},{group:5,hexcode:"1F9BD",label:"manual wheelchair",order:3897,tags:["accessibility"],unicode:"\u{1F9BD}"},{group:5,hexcode:"1F9BC",label:"motorized wheelchair",order:3898,tags:["accessibility"],unicode:"\u{1F9BC}"},{group:5,hexcode:"1F6FA",label:"auto rickshaw",order:3899,tags:["tuk tuk"],unicode:"\u{1F6FA}"},{group:5,hexcode:"1F6B2",label:"bicycle",order:3900,tags:["bike"],unicode:"\u{1F6B2}\uFE0F"},{group:5,hexcode:"1F6F4",label:"kick scooter",order:3901,tags:["kick","scooter"],unicode:"\u{1F6F4}"},{group:5,hexcode:"1F6F9",label:"skateboard",order:3902,tags:["board"],unicode:"\u{1F6F9}"},{group:5,hexcode:"1F6FC",label:"roller skate",order:3903,tags:["roller","skate"],unicode:"\u{1F6FC}"},{group:5,hexcode:"1F68F",label:"bus stop",order:3904,tags:["bus","stop"],unicode:"\u{1F68F}"},{group:5,hexcode:"1F6E3",label:"motorway",order:3906,tags:["highway","road"],unicode:"\u{1F6E3}\uFE0F"},{group:5,hexcode:"1F6E4",label:"railway track",order:3908,tags:["railway","train"],unicode:"\u{1F6E4}\uFE0F"},{group:5,hexcode:"1F6E2",label:"oil drum",order:3910,tags:["drum","oil"],unicode:"\u{1F6E2}\uFE0F"},{group:5,hexcode:"26FD",label:"fuel pump",order:3911,tags:["diesel","fuel","fuelpump","gas","pump","station"],unicode:"\u26FD\uFE0F"},{group:5,hexcode:"1F6DE",label:"wheel",order:3912,tags:["circle","tire","turn"],unicode:"\u{1F6DE}"},{group:5,hexcode:"1F6A8",label:"police car light",order:3913,tags:["beacon","car","light","police","revolving"],unicode:"\u{1F6A8}"},{group:5,hexcode:"1F6A5",label:"horizontal traffic light",order:3914,tags:["light","signal","traffic"],unicode:"\u{1F6A5}"},{group:5,hexcode:"1F6A6",label:"vertical traffic light",order:3915,tags:["light","signal","traffic"],unicode:"\u{1F6A6}"},{group:5,hexcode:"1F6D1",label:"stop sign",order:3916,tags:["octagonal","sign","stop"],unicode:"\u{1F6D1}"},{group:5,hexcode:"1F6A7",label:"construction",order:3917,tags:["barrier"],unicode:"\u{1F6A7}"},{group:5,hexcode:"2693",label:"anchor",order:3918,tags:["ship","tool"],unicode:"\u2693\uFE0F"},{group:5,hexcode:"1F6DF",label:"ring buoy",order:3919,tags:["float","life preserver","life saver","rescue","safety"],unicode:"\u{1F6DF}"},{group:5,hexcode:"26F5",label:"sailboat",order:3920,tags:["boat","resort","sea","yacht"],unicode:"\u26F5\uFE0F"},{group:5,hexcode:"1F6F6",label:"canoe",order:3921,tags:["boat"],unicode:"\u{1F6F6}"},{group:5,hexcode:"1F6A4",label:"speedboat",order:3922,tags:["boat"],unicode:"\u{1F6A4}"},{group:5,hexcode:"1F6F3",label:"passenger ship",order:3924,tags:["passenger","ship"],unicode:"\u{1F6F3}\uFE0F"},{group:5,hexcode:"26F4",label:"ferry",order:3926,tags:["boat","passenger"],unicode:"\u26F4\uFE0F"},{group:5,hexcode:"1F6E5",label:"motor boat",order:3928,tags:["boat","motorboat"],unicode:"\u{1F6E5}\uFE0F"},{group:5,hexcode:"1F6A2",label:"ship",order:3929,tags:["boat","passenger"],unicode:"\u{1F6A2}"},{group:5,hexcode:"2708",label:"airplane",order:3931,tags:["aeroplane"],unicode:"\u2708\uFE0F"},{group:5,hexcode:"1F6E9",label:"small airplane",order:3933,tags:["aeroplane","airplane"],unicode:"\u{1F6E9}\uFE0F"},{group:5,hexcode:"1F6EB",label:"airplane departure",order:3934,tags:["aeroplane","airplane","check-in","departure","departures"],unicode:"\u{1F6EB}"},{group:5,hexcode:"1F6EC",label:"airplane arrival",order:3935,tags:["aeroplane","airplane","arrivals","arriving","landing"],unicode:"\u{1F6EC}"},{group:5,hexcode:"1FA82",label:"parachute",order:3936,tags:["hang-glide","parasail","skydive"],unicode:"\u{1FA82}"},{group:5,hexcode:"1F4BA",label:"seat",order:3937,tags:["chair"],unicode:"\u{1F4BA}"},{group:5,hexcode:"1F681",label:"helicopter",order:3938,tags:["vehicle"],unicode:"\u{1F681}"},{group:5,hexcode:"1F69F",label:"suspension railway",order:3939,tags:["railway","suspension"],unicode:"\u{1F69F}"},{group:5,hexcode:"1F6A0",label:"mountain cableway",order:3940,tags:["cable","gondola","mountain"],unicode:"\u{1F6A0}"},{group:5,hexcode:"1F6A1",label:"aerial tramway",order:3941,tags:["aerial","cable","car","gondola","tramway"],unicode:"\u{1F6A1}"},{group:5,hexcode:"1F6F0",label:"satellite",order:3943,tags:["space"],unicode:"\u{1F6F0}\uFE0F"},{group:5,hexcode:"1F680",label:"rocket",order:3944,tags:["space"],unicode:"\u{1F680}"},{group:5,hexcode:"1F6F8",label:"flying saucer",order:3945,tags:["ufo"],unicode:"\u{1F6F8}"},{group:5,hexcode:"1F6CE",label:"bellhop bell",order:3947,tags:["bell","bellhop","hotel"],unicode:"\u{1F6CE}\uFE0F"},{group:5,hexcode:"1F9F3",label:"luggage",order:3948,tags:["packing","travel"],unicode:"\u{1F9F3}"},{group:5,hexcode:"231B",label:"hourglass done",order:3949,tags:["sand","timer"],unicode:"\u231B\uFE0F"},{group:5,hexcode:"23F3",label:"hourglass not done",order:3950,tags:["hourglass","sand","timer"],unicode:"\u23F3\uFE0F"},{group:5,hexcode:"231A",label:"watch",order:3951,tags:["clock"],unicode:"\u231A\uFE0F"},{group:5,hexcode:"23F0",label:"alarm clock",order:3952,tags:["alarm","clock"],unicode:"\u23F0\uFE0F"},{group:5,hexcode:"23F1",label:"stopwatch",order:3954,tags:["clock"],unicode:"\u23F1\uFE0F"},{group:5,hexcode:"23F2",label:"timer clock",order:3956,tags:["clock","timer"],unicode:"\u23F2\uFE0F"},{group:5,hexcode:"1F570",label:"mantelpiece clock",order:3958,tags:["clock"],unicode:"\u{1F570}\uFE0F"},{group:5,hexcode:"1F55B",label:"twelve o\u2019clock",order:3959,tags:["00","12","12:00","clock","o\u2019clock","twelve"],unicode:"\u{1F55B}\uFE0F"},{group:5,hexcode:"1F567",label:"twelve-thirty",order:3960,tags:["12","12:30","clock","thirty","twelve"],unicode:"\u{1F567}\uFE0F"},{group:5,hexcode:"1F550",label:"one o\u2019clock",order:3961,tags:["00","1","1:00","clock","one","o\u2019clock"],unicode:"\u{1F550}\uFE0F"},{group:5,hexcode:"1F55C",label:"one-thirty",order:3962,tags:["1","1:30","clock","one","thirty"],unicode:"\u{1F55C}\uFE0F"},{group:5,hexcode:"1F551",label:"two o\u2019clock",order:3963,tags:["00","2","2:00","clock","o\u2019clock","two"],unicode:"\u{1F551}\uFE0F"},{group:5,hexcode:"1F55D",label:"two-thirty",order:3964,tags:["2","2:30","clock","thirty","two"],unicode:"\u{1F55D}\uFE0F"},{group:5,hexcode:"1F552",label:"three o\u2019clock",order:3965,tags:["00","3","3:00","clock","o\u2019clock","three"],unicode:"\u{1F552}\uFE0F"},{group:5,hexcode:"1F55E",label:"three-thirty",order:3966,tags:["3","3:30","clock","thirty","three"],unicode:"\u{1F55E}\uFE0F"},{group:5,hexcode:"1F553",label:"four o\u2019clock",order:3967,tags:["00","4","4:00","clock","four","o\u2019clock"],unicode:"\u{1F553}\uFE0F"},{group:5,hexcode:"1F55F",label:"four-thirty",order:3968,tags:["4","4:30","clock","four","thirty"],unicode:"\u{1F55F}\uFE0F"},{group:5,hexcode:"1F554",label:"five o\u2019clock",order:3969,tags:["00","5","5:00","clock","five","o\u2019clock"],unicode:"\u{1F554}\uFE0F"},{group:5,hexcode:"1F560",label:"five-thirty",order:3970,tags:["5","5:30","clock","five","thirty"],unicode:"\u{1F560}\uFE0F"},{group:5,hexcode:"1F555",label:"six o\u2019clock",order:3971,tags:["00","6","6:00","clock","o\u2019clock","six"],unicode:"\u{1F555}\uFE0F"},{group:5,hexcode:"1F561",label:"six-thirty",order:3972,tags:["6","6:30","clock","six","thirty"],unicode:"\u{1F561}\uFE0F"},{group:5,hexcode:"1F556",label:"seven o\u2019clock",order:3973,tags:["00","7","7:00","clock","o\u2019clock","seven"],unicode:"\u{1F556}\uFE0F"},{group:5,hexcode:"1F562",label:"seven-thirty",order:3974,tags:["7","7:30","clock","seven","thirty"],unicode:"\u{1F562}\uFE0F"},{group:5,hexcode:"1F557",label:"eight o\u2019clock",order:3975,tags:["00","8","8:00","clock","eight","o\u2019clock"],unicode:"\u{1F557}\uFE0F"},{group:5,hexcode:"1F563",label:"eight-thirty",order:3976,tags:["8","8:30","clock","eight","thirty"],unicode:"\u{1F563}\uFE0F"},{group:5,hexcode:"1F558",label:"nine o\u2019clock",order:3977,tags:["00","9","9:00","clock","nine","o\u2019clock"],unicode:"\u{1F558}\uFE0F"},{group:5,hexcode:"1F564",label:"nine-thirty",order:3978,tags:["9","9:30","clock","nine","thirty"],unicode:"\u{1F564}\uFE0F"},{group:5,hexcode:"1F559",label:"ten o\u2019clock",order:3979,tags:["00","10","10:00","clock","o\u2019clock","ten"],unicode:"\u{1F559}\uFE0F"},{group:5,hexcode:"1F565",label:"ten-thirty",order:3980,tags:["10","10:30","clock","ten","thirty"],unicode:"\u{1F565}\uFE0F"},{group:5,hexcode:"1F55A",label:"eleven o\u2019clock",order:3981,tags:["00","11","11:00","clock","eleven","o\u2019clock"],unicode:"\u{1F55A}\uFE0F"},{group:5,hexcode:"1F566",label:"eleven-thirty",order:3982,tags:["11","11:30","clock","eleven","thirty"],unicode:"\u{1F566}\uFE0F"},{group:5,hexcode:"1F311",label:"new moon",order:3983,tags:["dark","moon"],unicode:"\u{1F311}"},{group:5,hexcode:"1F312",label:"waxing crescent moon",order:3984,tags:["crescent","moon","waxing"],unicode:"\u{1F312}"},{group:5,hexcode:"1F313",label:"first quarter moon",order:3985,tags:["moon","quarter"],unicode:"\u{1F313}"},{group:5,hexcode:"1F314",label:"waxing gibbous moon",order:3986,tags:["gibbous","moon","waxing"],unicode:"\u{1F314}"},{group:5,hexcode:"1F315",label:"full moon",order:3987,tags:["full","moon"],unicode:"\u{1F315}\uFE0F"},{group:5,hexcode:"1F316",label:"waning gibbous moon",order:3988,tags:["gibbous","moon","waning"],unicode:"\u{1F316}"},{group:5,hexcode:"1F317",label:"last quarter moon",order:3989,tags:["moon","quarter"],unicode:"\u{1F317}"},{group:5,hexcode:"1F318",label:"waning crescent moon",order:3990,tags:["crescent","moon","waning"],unicode:"\u{1F318}"},{group:5,hexcode:"1F319",label:"crescent moon",order:3991,tags:["crescent","moon"],unicode:"\u{1F319}"},{group:5,hexcode:"1F31A",label:"new moon face",order:3992,tags:["face","moon"],unicode:"\u{1F31A}"},{group:5,hexcode:"1F31B",label:"first quarter moon face",order:3993,tags:["face","moon","quarter"],unicode:"\u{1F31B}"},{group:5,hexcode:"1F31C",label:"last quarter moon face",order:3994,tags:["face","moon","quarter"],unicode:"\u{1F31C}\uFE0F"},{group:5,hexcode:"1F321",label:"thermometer",order:3996,tags:["weather"],unicode:"\u{1F321}\uFE0F"},{group:5,hexcode:"2600",label:"sun",order:3998,tags:["bright","rays","sunny"],unicode:"\u2600\uFE0F"},{group:5,hexcode:"1F31D",label:"full moon face",order:3999,tags:["bright","face","full","moon"],unicode:"\u{1F31D}"},{group:5,hexcode:"1F31E",label:"sun with face",order:4e3,tags:["bright","face","sun"],unicode:"\u{1F31E}"},{group:5,hexcode:"1FA90",label:"ringed planet",order:4001,tags:["saturn","saturnine"],unicode:"\u{1FA90}"},{group:5,hexcode:"2B50",label:"star",order:4002,tags:["star"],unicode:"\u2B50\uFE0F"},{group:5,hexcode:"1F31F",label:"glowing star",order:4003,tags:["glittery","glow","shining","sparkle","star"],unicode:"\u{1F31F}"},{group:5,hexcode:"1F320",label:"shooting star",order:4004,tags:["falling","shooting","star"],unicode:"\u{1F320}"},{group:5,hexcode:"1F30C",label:"milky way",order:4005,tags:["space"],unicode:"\u{1F30C}"},{group:5,hexcode:"2601",label:"cloud",order:4007,tags:["weather"],unicode:"\u2601\uFE0F"},{group:5,hexcode:"26C5",label:"sun behind cloud",order:4008,tags:["cloud","sun"],unicode:"\u26C5\uFE0F"},{group:5,hexcode:"26C8",label:"cloud with lightning and rain",order:4010,tags:["cloud","rain","thunder"],unicode:"\u26C8\uFE0F"},{group:5,hexcode:"1F324",label:"sun behind small cloud",order:4012,tags:["cloud","sun"],unicode:"\u{1F324}\uFE0F"},{group:5,hexcode:"1F325",label:"sun behind large cloud",order:4014,tags:["cloud","sun"],unicode:"\u{1F325}\uFE0F"},{group:5,hexcode:"1F326",label:"sun behind rain cloud",order:4016,tags:["cloud","rain","sun"],unicode:"\u{1F326}\uFE0F"},{group:5,hexcode:"1F327",label:"cloud with rain",order:4018,tags:["cloud","rain"],unicode:"\u{1F327}\uFE0F"},{group:5,hexcode:"1F328",label:"cloud with snow",order:4020,tags:["cloud","cold","snow"],unicode:"\u{1F328}\uFE0F"},{group:5,hexcode:"1F329",label:"cloud with lightning",order:4022,tags:["cloud","lightning"],unicode:"\u{1F329}\uFE0F"},{group:5,hexcode:"1F32A",label:"tornado",order:4024,tags:["cloud","whirlwind"],unicode:"\u{1F32A}\uFE0F"},{group:5,hexcode:"1F32B",label:"fog",order:4026,tags:["cloud"],unicode:"\u{1F32B}\uFE0F"},{group:5,hexcode:"1F32C",label:"wind face",order:4028,tags:["blow","cloud","face","wind"],unicode:"\u{1F32C}\uFE0F"},{group:5,hexcode:"1F300",label:"cyclone",order:4029,tags:["dizzy","hurricane","twister","typhoon"],unicode:"\u{1F300}"},{group:5,hexcode:"1F308",label:"rainbow",order:4030,tags:["rain"],unicode:"\u{1F308}"},{group:5,hexcode:"1F302",label:"closed umbrella",order:4031,tags:["clothing","rain","umbrella"],unicode:"\u{1F302}"},{group:5,hexcode:"2602",label:"umbrella",order:4033,tags:["clothing","rain"],unicode:"\u2602\uFE0F"},{group:5,hexcode:"2614",label:"umbrella with rain drops",order:4034,tags:["clothing","drop","rain","umbrella"],unicode:"\u2614\uFE0F"},{group:5,hexcode:"26F1",label:"umbrella on ground",order:4036,tags:["rain","sun","umbrella"],unicode:"\u26F1\uFE0F"},{group:5,hexcode:"26A1",label:"high voltage",order:4037,tags:["danger","electric","lightning","voltage","zap"],unicode:"\u26A1\uFE0F"},{group:5,hexcode:"2744",label:"snowflake",order:4039,tags:["cold","snow"],unicode:"\u2744\uFE0F"},{group:5,hexcode:"2603",label:"snowman",order:4041,tags:["cold","snow"],unicode:"\u2603\uFE0F"},{group:5,hexcode:"26C4",label:"snowman without snow",order:4042,tags:["cold","snow","snowman"],unicode:"\u26C4\uFE0F"},{group:5,hexcode:"2604",label:"comet",order:4044,tags:["space"],unicode:"\u2604\uFE0F"},{group:5,hexcode:"1F525",label:"fire",order:4045,tags:["flame","tool"],unicode:"\u{1F525}"},{group:5,hexcode:"1F4A7",label:"droplet",order:4046,tags:["cold","comic","drop","sweat"],unicode:"\u{1F4A7}"},{group:5,hexcode:"1F30A",label:"water wave",order:4047,tags:["ocean","water","wave"],unicode:"\u{1F30A}"},{group:6,hexcode:"1F383",label:"jack-o-lantern",order:4048,tags:["celebration","halloween","jack","lantern"],unicode:"\u{1F383}"},{group:6,hexcode:"1F384",label:"Christmas tree",order:4049,tags:["celebration","christmas","tree"],unicode:"\u{1F384}"},{group:6,hexcode:"1F386",label:"fireworks",order:4050,tags:["celebration"],unicode:"\u{1F386}"},{group:6,hexcode:"1F387",label:"sparkler",order:4051,tags:["celebration","fireworks","sparkle"],unicode:"\u{1F387}"},{group:6,hexcode:"1F9E8",label:"firecracker",order:4052,tags:["dynamite","explosive","fireworks"],unicode:"\u{1F9E8}"},{group:6,hexcode:"2728",label:"sparkles",order:4053,tags:["*","sparkle","star"],unicode:"\u2728\uFE0F"},{group:6,hexcode:"1F388",label:"balloon",order:4054,tags:["celebration"],unicode:"\u{1F388}"},{group:6,hexcode:"1F389",label:"party popper",order:4055,tags:["celebration","party","popper","tada"],unicode:"\u{1F389}"},{group:6,hexcode:"1F38A",label:"confetti ball",order:4056,tags:["ball","celebration","confetti"],unicode:"\u{1F38A}"},{group:6,hexcode:"1F38B",label:"tanabata tree",order:4057,tags:["banner","celebration","japanese","tree"],unicode:"\u{1F38B}"},{group:6,hexcode:"1F38D",label:"pine decoration",order:4058,tags:["bamboo","celebration","japanese","pine"],unicode:"\u{1F38D}"},{group:6,hexcode:"1F38E",label:"Japanese dolls",order:4059,tags:["celebration","doll","festival","japanese","japanese dolls"],unicode:"\u{1F38E}"},{group:6,hexcode:"1F38F",label:"carp streamer",order:4060,tags:["carp","celebration","streamer"],unicode:"\u{1F38F}"},{group:6,hexcode:"1F390",label:"wind chime",order:4061,tags:["bell","celebration","chime","wind"],unicode:"\u{1F390}"},{group:6,hexcode:"1F391",label:"moon viewing ceremony",order:4062,tags:["celebration","ceremony","moon"],unicode:"\u{1F391}"},{group:6,hexcode:"1F9E7",label:"red envelope",order:4063,tags:["gift","good luck","h\xF3ngb\u0101o","lai see","money"],unicode:"\u{1F9E7}"},{group:6,hexcode:"1F380",label:"ribbon",order:4064,tags:["celebration"],unicode:"\u{1F380}"},{group:6,hexcode:"1F381",label:"wrapped gift",order:4065,tags:["box","celebration","gift","present","wrapped"],unicode:"\u{1F381}"},{group:6,hexcode:"1F397",label:"reminder ribbon",order:4067,tags:["celebration","reminder","ribbon"],unicode:"\u{1F397}\uFE0F"},{group:6,hexcode:"1F39F",label:"admission tickets",order:4069,tags:["admission","ticket"],unicode:"\u{1F39F}\uFE0F"},{group:6,hexcode:"1F3AB",label:"ticket",order:4070,tags:["admission"],unicode:"\u{1F3AB}"},{group:6,hexcode:"1F396",label:"military medal",order:4072,tags:["celebration","medal","military"],unicode:"\u{1F396}\uFE0F"},{group:6,hexcode:"1F3C6",label:"trophy",order:4073,tags:["prize"],unicode:"\u{1F3C6}\uFE0F"},{group:6,hexcode:"1F3C5",label:"sports medal",order:4074,tags:["medal"],unicode:"\u{1F3C5}"},{group:6,hexcode:"1F947",label:"1st place medal",order:4075,tags:["first","gold","medal"],unicode:"\u{1F947}"},{group:6,hexcode:"1F948",label:"2nd place medal",order:4076,tags:["medal","second","silver"],unicode:"\u{1F948}"},{group:6,hexcode:"1F949",label:"3rd place medal",order:4077,tags:["bronze","medal","third"],unicode:"\u{1F949}"},{group:6,hexcode:"26BD",label:"soccer ball",order:4078,tags:["ball","football","soccer"],unicode:"\u26BD\uFE0F"},{group:6,hexcode:"26BE",label:"baseball",order:4079,tags:["ball"],unicode:"\u26BE\uFE0F"},{group:6,hexcode:"1F94E",label:"softball",order:4080,tags:["ball","glove","underarm"],unicode:"\u{1F94E}"},{group:6,hexcode:"1F3C0",label:"basketball",order:4081,tags:["ball","hoop"],unicode:"\u{1F3C0}"},{group:6,hexcode:"1F3D0",label:"volleyball",order:4082,tags:["ball","game"],unicode:"\u{1F3D0}"},{group:6,hexcode:"1F3C8",label:"american football",order:4083,tags:["american","ball","football"],unicode:"\u{1F3C8}"},{group:6,hexcode:"1F3C9",label:"rugby football",order:4084,tags:["ball","football","rugby"],unicode:"\u{1F3C9}"},{group:6,hexcode:"1F3BE",label:"tennis",order:4085,tags:["ball","racquet"],unicode:"\u{1F3BE}"},{group:6,hexcode:"1F94F",label:"flying disc",order:4086,tags:["ultimate"],unicode:"\u{1F94F}"},{group:6,hexcode:"1F3B3",label:"bowling",order:4087,tags:["ball","game"],unicode:"\u{1F3B3}"},{group:6,hexcode:"1F3CF",label:"cricket game",order:4088,tags:["ball","bat","game"],unicode:"\u{1F3CF}"},{group:6,hexcode:"1F3D1",label:"field hockey",order:4089,tags:["ball","field","game","hockey","stick"],unicode:"\u{1F3D1}"},{group:6,hexcode:"1F3D2",label:"ice hockey",order:4090,tags:["game","hockey","ice","puck","stick"],unicode:"\u{1F3D2}"},{group:6,hexcode:"1F94D",label:"lacrosse",order:4091,tags:["ball","goal","stick"],unicode:"\u{1F94D}"},{group:6,hexcode:"1F3D3",label:"ping pong",order:4092,tags:["ball","bat","game","paddle","table tennis"],unicode:"\u{1F3D3}"},{group:6,hexcode:"1F3F8",label:"badminton",order:4093,tags:["birdie","game","racquet","shuttlecock"],unicode:"\u{1F3F8}"},{group:6,hexcode:"1F94A",label:"boxing glove",order:4094,tags:["boxing","glove"],unicode:"\u{1F94A}"},{group:6,hexcode:"1F94B",label:"martial arts uniform",order:4095,tags:["judo","karate","martial arts","taekwondo","uniform"],unicode:"\u{1F94B}"},{group:6,hexcode:"1F945",label:"goal net",order:4096,tags:["goal","net"],unicode:"\u{1F945}"},{group:6,hexcode:"26F3",label:"flag in hole",order:4097,tags:["golf","hole"],unicode:"\u26F3\uFE0F"},{group:6,hexcode:"26F8",label:"ice skate",order:4099,tags:["ice","skate"],unicode:"\u26F8\uFE0F"},{group:6,hexcode:"1F3A3",label:"fishing pole",order:4100,tags:["fish","pole"],unicode:"\u{1F3A3}"},{group:6,hexcode:"1F93F",label:"diving mask",order:4101,tags:["diving","scuba","snorkeling"],unicode:"\u{1F93F}"},{group:6,hexcode:"1F3BD",label:"running shirt",order:4102,tags:["athletics","running","sash","shirt"],unicode:"\u{1F3BD}"},{group:6,hexcode:"1F3BF",label:"skis",order:4103,tags:["ski","snow"],unicode:"\u{1F3BF}"},{group:6,hexcode:"1F6F7",label:"sled",order:4104,tags:["sledge","sleigh"],unicode:"\u{1F6F7}"},{group:6,hexcode:"1F94C",label:"curling stone",order:4105,tags:["game","rock"],unicode:"\u{1F94C}"},{group:6,hexcode:"1F3AF",label:"bullseye",order:4106,tags:["dart","direct hit","game","hit","target"],unicode:"\u{1F3AF}"},{group:6,hexcode:"1FA80",label:"yo-yo",order:4107,tags:["fluctuate","toy"],unicode:"\u{1FA80}"},{group:6,hexcode:"1FA81",label:"kite",order:4108,tags:["fly","soar"],unicode:"\u{1FA81}"},{group:6,hexcode:"1F52B",label:"water pistol",order:4109,tags:["gun","handgun","pistol","revolver","tool","water","weapon"],unicode:"\u{1F52B}"},{group:6,hexcode:"1F3B1",label:"pool 8 ball",order:4110,tags:["8","ball","billiard","eight","game"],unicode:"\u{1F3B1}"},{group:6,hexcode:"1F52E",label:"crystal ball",order:4111,tags:["ball","crystal","fairy tale","fantasy","fortune","tool"],unicode:"\u{1F52E}"},{group:6,hexcode:"1FA84",label:"magic wand",order:4112,tags:["magic","witch","wizard"],unicode:"\u{1FA84}"},{group:6,hexcode:"1F3AE",label:"video game",order:4113,tags:["controller","game"],unicode:"\u{1F3AE}\uFE0F"},{group:6,hexcode:"1F579",label:"joystick",order:4115,tags:["game","video game"],unicode:"\u{1F579}\uFE0F"},{group:6,hexcode:"1F3B0",label:"slot machine",order:4116,tags:["game","slot"],unicode:"\u{1F3B0}"},{group:6,hexcode:"1F3B2",label:"game die",order:4117,tags:["dice","die","game"],unicode:"\u{1F3B2}"},{group:6,hexcode:"1F9E9",label:"puzzle piece",order:4118,tags:["clue","interlocking","jigsaw","piece","puzzle"],unicode:"\u{1F9E9}"},{group:6,hexcode:"1F9F8",label:"teddy bear",order:4119,tags:["plaything","plush","stuffed","toy"],unicode:"\u{1F9F8}"},{group:6,hexcode:"1FA85",label:"pi\xF1ata",order:4120,tags:["celebration","party"],unicode:"\u{1FA85}"},{group:6,hexcode:"1FAA9",label:"mirror ball",order:4121,tags:["dance","disco","glitter","party"],unicode:"\u{1FAA9}"},{group:6,hexcode:"1FA86",label:"nesting dolls",order:4122,tags:["doll","nesting","russia"],unicode:"\u{1FA86}"},{group:6,hexcode:"2660",label:"spade suit",order:4124,tags:["card","game"],unicode:"\u2660\uFE0F"},{group:6,hexcode:"2665",label:"heart suit",order:4126,tags:["card","game"],unicode:"\u2665\uFE0F"},{group:6,hexcode:"2666",label:"diamond suit",order:4128,tags:["card","game"],unicode:"\u2666\uFE0F"},{group:6,hexcode:"2663",label:"club suit",order:4130,tags:["card","game"],unicode:"\u2663\uFE0F"},{group:6,hexcode:"265F",label:"chess pawn",order:4132,tags:["chess","dupe","expendable"],unicode:"\u265F\uFE0F"},{group:6,hexcode:"1F0CF",label:"joker",order:4133,tags:["card","game","wildcard"],unicode:"\u{1F0CF}"},{group:6,hexcode:"1F004",label:"mahjong red dragon",order:4134,tags:["game","mahjong","red"],unicode:"\u{1F004}\uFE0F"},{group:6,hexcode:"1F3B4",label:"flower playing cards",order:4135,tags:["card","flower","game","japanese","playing"],unicode:"\u{1F3B4}"},{group:6,hexcode:"1F3AD",label:"performing arts",order:4136,tags:["art","mask","performing","theater","theatre"],unicode:"\u{1F3AD}\uFE0F"},{group:6,hexcode:"1F5BC",label:"framed picture",order:4138,tags:["art","frame","museum","painting","picture"],unicode:"\u{1F5BC}\uFE0F"},{group:6,hexcode:"1F3A8",label:"artist palette",order:4139,tags:["art","museum","painting","palette"],unicode:"\u{1F3A8}"},{group:6,hexcode:"1F9F5",label:"thread",order:4140,tags:["needle","sewing","spool","string"],unicode:"\u{1F9F5}"},{group:6,hexcode:"1FAA1",label:"sewing needle",order:4141,tags:["embroidery","needle","sewing","stitches","sutures","tailoring"],unicode:"\u{1FAA1}"},{group:6,hexcode:"1F9F6",label:"yarn",order:4142,tags:["ball","crochet","knit"],unicode:"\u{1F9F6}"},{group:6,hexcode:"1FAA2",label:"knot",order:4143,tags:["rope","tangled","tie","twine","twist"],unicode:"\u{1FAA2}"},{group:7,hexcode:"1F453",label:"glasses",order:4144,tags:["clothing","eye","eyeglasses","eyewear"],unicode:"\u{1F453}\uFE0F"},{group:7,hexcode:"1F576",label:"sunglasses",order:4146,tags:["dark","eye","eyewear","glasses"],unicode:"\u{1F576}\uFE0F"},{group:7,hexcode:"1F97D",label:"goggles",order:4147,tags:["eye protection","swimming","welding"],unicode:"\u{1F97D}"},{group:7,hexcode:"1F97C",label:"lab coat",order:4148,tags:["doctor","experiment","scientist"],unicode:"\u{1F97C}"},{group:7,hexcode:"1F9BA",label:"safety vest",order:4149,tags:["emergency","safety","vest"],unicode:"\u{1F9BA}"},{group:7,hexcode:"1F454",label:"necktie",order:4150,tags:["clothing","tie"],unicode:"\u{1F454}"},{group:7,hexcode:"1F455",label:"t-shirt",order:4151,tags:["clothing","shirt","tshirt"],unicode:"\u{1F455}"},{group:7,hexcode:"1F456",label:"jeans",order:4152,tags:["clothing","pants","trousers"],unicode:"\u{1F456}"},{group:7,hexcode:"1F9E3",label:"scarf",order:4153,tags:["neck"],unicode:"\u{1F9E3}"},{group:7,hexcode:"1F9E4",label:"gloves",order:4154,tags:["hand"],unicode:"\u{1F9E4}"},{group:7,hexcode:"1F9E5",label:"coat",order:4155,tags:["jacket"],unicode:"\u{1F9E5}"},{group:7,hexcode:"1F9E6",label:"socks",order:4156,tags:["stocking"],unicode:"\u{1F9E6}"},{group:7,hexcode:"1F457",label:"dress",order:4157,tags:["clothing"],unicode:"\u{1F457}"},{group:7,hexcode:"1F458",label:"kimono",order:4158,tags:["clothing"],unicode:"\u{1F458}"},{group:7,hexcode:"1F97B",label:"sari",order:4159,tags:["clothing","dress"],unicode:"\u{1F97B}"},{group:7,hexcode:"1FA71",label:"one-piece swimsuit",order:4160,tags:["bathing suit"],unicode:"\u{1FA71}"},{group:7,hexcode:"1FA72",label:"briefs",order:4161,tags:["bathing suit","one-piece","swimsuit","underwear"],unicode:"\u{1FA72}"},{group:7,hexcode:"1FA73",label:"shorts",order:4162,tags:["bathing suit","pants","underwear"],unicode:"\u{1FA73}"},{group:7,hexcode:"1F459",label:"bikini",order:4163,tags:["clothing","swim"],unicode:"\u{1F459}"},{group:7,hexcode:"1F45A",label:"woman\u2019s clothes",order:4164,tags:["clothing","woman"],unicode:"\u{1F45A}"},{group:7,hexcode:"1FAAD",label:"folding hand fan",order:4165,tags:["cooling","dance","fan","flutter","hot","shy"],unicode:"\u{1FAAD}"},{group:7,hexcode:"1F45B",label:"purse",order:4166,tags:["clothing","coin"],unicode:"\u{1F45B}"},{group:7,hexcode:"1F45C",label:"handbag",order:4167,tags:["bag","clothing","purse"],unicode:"\u{1F45C}"},{group:7,hexcode:"1F45D",label:"clutch bag",order:4168,tags:["bag","clothing","pouch"],unicode:"\u{1F45D}"},{group:7,hexcode:"1F6CD",label:"shopping bags",order:4170,tags:["bag","hotel","shopping"],unicode:"\u{1F6CD}\uFE0F"},{group:7,hexcode:"1F392",label:"backpack",order:4171,tags:["bag","rucksack","satchel","school"],unicode:"\u{1F392}"},{group:7,hexcode:"1FA74",label:"thong sandal",order:4172,tags:["beach sandals","sandals","thong sandals","thongs","z\u014Dri"],unicode:"\u{1FA74}"},{group:7,hexcode:"1F45E",label:"man\u2019s shoe",order:4173,tags:["clothing","man","shoe"],unicode:"\u{1F45E}"},{group:7,hexcode:"1F45F",label:"running shoe",order:4174,tags:["athletic","clothing","shoe","sneaker"],unicode:"\u{1F45F}"},{group:7,hexcode:"1F97E",label:"hiking boot",order:4175,tags:["backpacking","boot","camping","hiking"],unicode:"\u{1F97E}"},{group:7,hexcode:"1F97F",label:"flat shoe",order:4176,tags:["ballet flat","slip-on","slipper"],unicode:"\u{1F97F}"},{group:7,hexcode:"1F460",label:"high-heeled shoe",order:4177,tags:["clothing","heel","shoe","woman"],unicode:"\u{1F460}"},{group:7,hexcode:"1F461",label:"woman\u2019s sandal",order:4178,tags:["clothing","sandal","shoe","woman"],unicode:"\u{1F461}"},{group:7,hexcode:"1FA70",label:"ballet shoes",order:4179,tags:["ballet","dance"],unicode:"\u{1FA70}"},{group:7,hexcode:"1F462",label:"woman\u2019s boot",order:4180,tags:["boot","clothing","shoe","woman"],unicode:"\u{1F462}"},{group:7,hexcode:"1FAAE",label:"hair pick",order:4181,tags:["afro","comb","hair","pick"],unicode:"\u{1FAAE}"},{group:7,hexcode:"1F451",label:"crown",order:4182,tags:["clothing","king","queen"],unicode:"\u{1F451}"},{group:7,hexcode:"1F452",label:"woman\u2019s hat",order:4183,tags:["clothing","hat","woman"],unicode:"\u{1F452}"},{group:7,hexcode:"1F3A9",label:"top hat",order:4184,tags:["clothing","hat","top","tophat"],unicode:"\u{1F3A9}"},{group:7,hexcode:"1F393",label:"graduation cap",order:4185,tags:["cap","celebration","clothing","graduation","hat"],unicode:"\u{1F393}\uFE0F"},{group:7,hexcode:"1F9E2",label:"billed cap",order:4186,tags:["baseball cap"],unicode:"\u{1F9E2}"},{group:7,hexcode:"1FA96",label:"military helmet",order:4187,tags:["army","helmet","military","soldier","warrior"],unicode:"\u{1FA96}"},{group:7,hexcode:"26D1",label:"rescue worker\u2019s helmet",order:4189,tags:["aid","cross","face","hat","helmet"],unicode:"\u26D1\uFE0F"},{group:7,hexcode:"1F4FF",label:"prayer beads",order:4190,tags:["beads","clothing","necklace","prayer","religion"],unicode:"\u{1F4FF}"},{group:7,hexcode:"1F484",label:"lipstick",order:4191,tags:["cosmetics","makeup"],unicode:"\u{1F484}"},{group:7,hexcode:"1F48D",label:"ring",order:4192,tags:["diamond"],unicode:"\u{1F48D}"},{group:7,hexcode:"1F48E",label:"gem stone",order:4193,tags:["diamond","gem","jewel"],unicode:"\u{1F48E}"},{group:7,hexcode:"1F507",label:"muted speaker",order:4194,tags:["mute","quiet","silent","speaker"],unicode:"\u{1F507}"},{group:7,hexcode:"1F508",label:"speaker low volume",order:4195,tags:["soft"],unicode:"\u{1F508}\uFE0F"},{group:7,hexcode:"1F509",label:"speaker medium volume",order:4196,tags:["medium"],unicode:"\u{1F509}"},{group:7,hexcode:"1F50A",label:"speaker high volume",order:4197,tags:["loud"],unicode:"\u{1F50A}"},{group:7,hexcode:"1F4E2",label:"loudspeaker",order:4198,tags:["loud","public address"],unicode:"\u{1F4E2}"},{group:7,hexcode:"1F4E3",label:"megaphone",order:4199,tags:["cheering"],unicode:"\u{1F4E3}"},{group:7,hexcode:"1F4EF",label:"postal horn",order:4200,tags:["horn","post","postal"],unicode:"\u{1F4EF}"},{group:7,hexcode:"1F514",label:"bell",order:4201,tags:["bell"],unicode:"\u{1F514}"},{group:7,hexcode:"1F515",label:"bell with slash",order:4202,tags:["bell","forbidden","mute","quiet","silent"],unicode:"\u{1F515}"},{group:7,hexcode:"1F3BC",label:"musical score",order:4203,tags:["music","score"],unicode:"\u{1F3BC}"},{group:7,hexcode:"1F3B5",label:"musical note",order:4204,tags:["music","note"],unicode:"\u{1F3B5}"},{group:7,hexcode:"1F3B6",label:"musical notes",order:4205,tags:["music","note","notes"],unicode:"\u{1F3B6}"},{group:7,hexcode:"1F399",label:"studio microphone",order:4207,tags:["mic","microphone","music","studio"],unicode:"\u{1F399}\uFE0F"},{group:7,hexcode:"1F39A",label:"level slider",order:4209,tags:["level","music","slider"],unicode:"\u{1F39A}\uFE0F"},{group:7,hexcode:"1F39B",label:"control knobs",order:4211,tags:["control","knobs","music"],unicode:"\u{1F39B}\uFE0F"},{group:7,hexcode:"1F3A4",label:"microphone",order:4212,tags:["karaoke","mic"],unicode:"\u{1F3A4}"},{group:7,hexcode:"1F3A7",label:"headphone",order:4213,tags:["earbud"],unicode:"\u{1F3A7}\uFE0F"},{group:7,hexcode:"1F4FB",label:"radio",order:4214,tags:["video"],unicode:"\u{1F4FB}\uFE0F"},{group:7,hexcode:"1F3B7",label:"saxophone",order:4215,tags:["instrument","music","sax"],unicode:"\u{1F3B7}"},{group:7,hexcode:"1FA97",label:"accordion",order:4216,tags:["concertina","squeeze box"],unicode:"\u{1FA97}"},{group:7,hexcode:"1F3B8",label:"guitar",order:4217,tags:["instrument","music"],unicode:"\u{1F3B8}"},{group:7,hexcode:"1F3B9",label:"musical keyboard",order:4218,tags:["instrument","keyboard","music","piano"],unicode:"\u{1F3B9}"},{group:7,hexcode:"1F3BA",label:"trumpet",order:4219,tags:["instrument","music"],unicode:"\u{1F3BA}"},{group:7,hexcode:"1F3BB",label:"violin",order:4220,tags:["instrument","music"],unicode:"\u{1F3BB}"},{group:7,hexcode:"1FA95",label:"banjo",order:4221,tags:["music","stringed"],unicode:"\u{1FA95}"},{group:7,hexcode:"1F941",label:"drum",order:4222,tags:["drumsticks","music"],unicode:"\u{1F941}"},{group:7,hexcode:"1FA98",label:"long drum",order:4223,tags:["beat","conga","drum","rhythm"],unicode:"\u{1FA98}"},{group:7,hexcode:"1FA87",label:"maracas",order:4224,tags:["instrument","music","percussion","rattle","shake"],unicode:"\u{1FA87}"},{group:7,hexcode:"1FA88",label:"flute",order:4225,tags:["fife","music","pipe","recorder","woodwind"],unicode:"\u{1FA88}"},{group:7,hexcode:"1F4F1",label:"mobile phone",order:4226,tags:["cell","mobile","phone","telephone"],unicode:"\u{1F4F1}"},{group:7,hexcode:"1F4F2",label:"mobile phone with arrow",order:4227,tags:["arrow","cell","mobile","phone","receive"],unicode:"\u{1F4F2}"},{group:7,hexcode:"260E",label:"telephone",order:4229,tags:["phone"],unicode:"\u260E\uFE0F"},{group:7,hexcode:"1F4DE",label:"telephone receiver",order:4230,tags:["phone","receiver","telephone"],unicode:"\u{1F4DE}"},{group:7,hexcode:"1F4DF",label:"pager",order:4231,tags:["pager"],unicode:"\u{1F4DF}\uFE0F"},{group:7,hexcode:"1F4E0",label:"fax machine",order:4232,tags:["fax"],unicode:"\u{1F4E0}"},{group:7,hexcode:"1F50B",label:"battery",order:4233,tags:["battery"],unicode:"\u{1F50B}"},{group:7,hexcode:"1FAAB",label:"low battery",order:4234,tags:["electronic","low energy"],unicode:"\u{1FAAB}"},{group:7,hexcode:"1F50C",label:"electric plug",order:4235,tags:["electric","electricity","plug"],unicode:"\u{1F50C}"},{group:7,hexcode:"1F4BB",label:"laptop",order:4236,tags:["computer","pc","personal"],unicode:"\u{1F4BB}\uFE0F"},{group:7,hexcode:"1F5A5",label:"desktop computer",order:4238,tags:["computer","desktop"],unicode:"\u{1F5A5}\uFE0F"},{group:7,hexcode:"1F5A8",label:"printer",order:4240,tags:["computer"],unicode:"\u{1F5A8}\uFE0F"},{group:7,hexcode:"2328",label:"keyboard",order:4242,tags:["computer"],unicode:"\u2328\uFE0F"},{group:7,hexcode:"1F5B1",label:"computer mouse",order:4244,tags:["computer"],unicode:"\u{1F5B1}\uFE0F"},{group:7,hexcode:"1F5B2",label:"trackball",order:4246,tags:["computer"],unicode:"\u{1F5B2}\uFE0F"},{group:7,hexcode:"1F4BD",label:"computer disk",order:4247,tags:["computer","disk","minidisk","optical"],unicode:"\u{1F4BD}"},{group:7,hexcode:"1F4BE",label:"floppy disk",order:4248,tags:["computer","disk","floppy"],unicode:"\u{1F4BE}"},{group:7,hexcode:"1F4BF",label:"optical disk",order:4249,tags:["cd","computer","disk","optical"],unicode:"\u{1F4BF}\uFE0F"},{group:7,hexcode:"1F4C0",label:"dvd",order:4250,tags:["blu-ray","computer","disk","optical"],unicode:"\u{1F4C0}"},{group:7,hexcode:"1F9EE",label:"abacus",order:4251,tags:["calculation"],unicode:"\u{1F9EE}"},{group:7,hexcode:"1F3A5",label:"movie camera",order:4252,tags:["camera","cinema","movie"],unicode:"\u{1F3A5}"},{group:7,hexcode:"1F39E",label:"film frames",order:4254,tags:["cinema","film","frames","movie"],unicode:"\u{1F39E}\uFE0F"},{group:7,hexcode:"1F4FD",label:"film projector",order:4256,tags:["cinema","film","movie","projector","video"],unicode:"\u{1F4FD}\uFE0F"},{group:7,hexcode:"1F3AC",label:"clapper board",order:4257,tags:["clapper","movie"],unicode:"\u{1F3AC}\uFE0F"},{group:7,hexcode:"1F4FA",label:"television",order:4258,tags:["tv","video"],unicode:"\u{1F4FA}\uFE0F"},{group:7,hexcode:"1F4F7",label:"camera",order:4259,tags:["video"],unicode:"\u{1F4F7}\uFE0F"},{group:7,hexcode:"1F4F8",label:"camera with flash",order:4260,tags:["camera","flash","video"],unicode:"\u{1F4F8}"},{group:7,hexcode:"1F4F9",label:"video camera",order:4261,tags:["camera","video"],unicode:"\u{1F4F9}\uFE0F"},{group:7,hexcode:"1F4FC",label:"videocassette",order:4262,tags:["tape","vhs","video"],unicode:"\u{1F4FC}"},{group:7,hexcode:"1F50D",label:"magnifying glass tilted left",order:4263,tags:["glass","magnifying","search","tool"],unicode:"\u{1F50D}\uFE0F"},{group:7,hexcode:"1F50E",label:"magnifying glass tilted right",order:4264,tags:["glass","magnifying","search","tool"],unicode:"\u{1F50E}"},{group:7,hexcode:"1F56F",label:"candle",order:4266,tags:["light"],unicode:"\u{1F56F}\uFE0F"},{group:7,hexcode:"1F4A1",label:"light bulb",order:4267,tags:["bulb","comic","electric","idea","light"],unicode:"\u{1F4A1}"},{group:7,hexcode:"1F526",label:"flashlight",order:4268,tags:["electric","light","tool","torch"],unicode:"\u{1F526}"},{group:7,hexcode:"1F3EE",label:"red paper lantern",order:4269,tags:["bar","lantern","light","red"],unicode:"\u{1F3EE}"},{group:7,hexcode:"1FA94",label:"diya lamp",order:4270,tags:["diya","lamp","oil"],unicode:"\u{1FA94}"},{group:7,hexcode:"1F4D4",label:"notebook with decorative cover",order:4271,tags:["book","cover","decorated","notebook"],unicode:"\u{1F4D4}"},{group:7,hexcode:"1F4D5",label:"closed book",order:4272,tags:["book","closed"],unicode:"\u{1F4D5}"},{group:7,hexcode:"1F4D6",label:"open book",order:4273,tags:["book","open"],unicode:"\u{1F4D6}"},{group:7,hexcode:"1F4D7",label:"green book",order:4274,tags:["book","green"],unicode:"\u{1F4D7}"},{group:7,hexcode:"1F4D8",label:"blue book",order:4275,tags:["blue","book"],unicode:"\u{1F4D8}"},{group:7,hexcode:"1F4D9",label:"orange book",order:4276,tags:["book","orange"],unicode:"\u{1F4D9}"},{group:7,hexcode:"1F4DA",label:"books",order:4277,tags:["book"],unicode:"\u{1F4DA}\uFE0F"},{group:7,hexcode:"1F4D3",label:"notebook",order:4278,tags:["notebook"],unicode:"\u{1F4D3}"},{group:7,hexcode:"1F4D2",label:"ledger",order:4279,tags:["notebook"],unicode:"\u{1F4D2}"},{group:7,hexcode:"1F4C3",label:"page with curl",order:4280,tags:["curl","document","page"],unicode:"\u{1F4C3}"},{group:7,hexcode:"1F4DC",label:"scroll",order:4281,tags:["paper"],unicode:"\u{1F4DC}"},{group:7,hexcode:"1F4C4",label:"page facing up",order:4282,tags:["document","page"],unicode:"\u{1F4C4}"},{group:7,hexcode:"1F4F0",label:"newspaper",order:4283,tags:["news","paper"],unicode:"\u{1F4F0}"},{group:7,hexcode:"1F5DE",label:"rolled-up newspaper",order:4285,tags:["news","newspaper","paper","rolled"],unicode:"\u{1F5DE}\uFE0F"},{group:7,hexcode:"1F4D1",label:"bookmark tabs",order:4286,tags:["bookmark","mark","marker","tabs"],unicode:"\u{1F4D1}"},{group:7,hexcode:"1F516",label:"bookmark",order:4287,tags:["mark"],unicode:"\u{1F516}"},{group:7,hexcode:"1F3F7",label:"label",order:4289,tags:["label"],unicode:"\u{1F3F7}\uFE0F"},{group:7,hexcode:"1F4B0",label:"money bag",order:4290,tags:["bag","dollar","money","moneybag"],unicode:"\u{1F4B0}\uFE0F"},{group:7,hexcode:"1FA99",label:"coin",order:4291,tags:["gold","metal","money","silver","treasure"],unicode:"\u{1FA99}"},{group:7,hexcode:"1F4B4",label:"yen banknote",order:4292,tags:["banknote","bill","currency","money","note","yen"],unicode:"\u{1F4B4}"},{group:7,hexcode:"1F4B5",label:"dollar banknote",order:4293,tags:["banknote","bill","currency","dollar","money","note"],unicode:"\u{1F4B5}"},{group:7,hexcode:"1F4B6",label:"euro banknote",order:4294,tags:["banknote","bill","currency","euro","money","note"],unicode:"\u{1F4B6}"},{group:7,hexcode:"1F4B7",label:"pound banknote",order:4295,tags:["banknote","bill","currency","money","note","pound"],unicode:"\u{1F4B7}"},{group:7,hexcode:"1F4B8",label:"money with wings",order:4296,tags:["banknote","bill","fly","money","wings"],unicode:"\u{1F4B8}"},{group:7,hexcode:"1F4B3",label:"credit card",order:4297,tags:["card","credit","money"],unicode:"\u{1F4B3}\uFE0F"},{group:7,hexcode:"1F9FE",label:"receipt",order:4298,tags:["accounting","bookkeeping","evidence","proof"],unicode:"\u{1F9FE}"},{group:7,hexcode:"1F4B9",label:"chart increasing with yen",order:4299,tags:["chart","graph","growth","money","yen"],unicode:"\u{1F4B9}"},{group:7,hexcode:"2709",label:"envelope",order:4301,tags:["email","letter"],unicode:"\u2709\uFE0F"},{group:7,hexcode:"1F4E7",label:"e-mail",order:4302,tags:["email","letter","mail"],unicode:"\u{1F4E7}"},{group:7,hexcode:"1F4E8",label:"incoming envelope",order:4303,tags:["e-mail","email","envelope","incoming","letter","receive"],unicode:"\u{1F4E8}"},{group:7,hexcode:"1F4E9",label:"envelope with arrow",order:4304,tags:["arrow","e-mail","email","envelope","outgoing"],unicode:"\u{1F4E9}"},{group:7,hexcode:"1F4E4",label:"outbox tray",order:4305,tags:["box","letter","mail","outbox","sent","tray"],unicode:"\u{1F4E4}\uFE0F"},{group:7,hexcode:"1F4E5",label:"inbox tray",order:4306,tags:["box","inbox","letter","mail","receive","tray"],unicode:"\u{1F4E5}\uFE0F"},{group:7,hexcode:"1F4E6",label:"package",order:4307,tags:["box","parcel"],unicode:"\u{1F4E6}\uFE0F"},{group:7,hexcode:"1F4EB",label:"closed mailbox with raised flag",order:4308,tags:["closed","mail","mailbox","postbox"],unicode:"\u{1F4EB}\uFE0F"},{group:7,hexcode:"1F4EA",label:"closed mailbox with lowered flag",order:4309,tags:["closed","lowered","mail","mailbox","postbox"],unicode:"\u{1F4EA}\uFE0F"},{group:7,hexcode:"1F4EC",label:"open mailbox with raised flag",order:4310,tags:["mail","mailbox","open","postbox"],unicode:"\u{1F4EC}\uFE0F"},{group:7,hexcode:"1F4ED",label:"open mailbox with lowered flag",order:4311,tags:["lowered","mail","mailbox","open","postbox"],unicode:"\u{1F4ED}\uFE0F"},{group:7,hexcode:"1F4EE",label:"postbox",order:4312,tags:["mail","mailbox"],unicode:"\u{1F4EE}"},{group:7,hexcode:"1F5F3",label:"ballot box with ballot",order:4314,tags:["ballot","box"],unicode:"\u{1F5F3}\uFE0F"},{group:7,hexcode:"270F",label:"pencil",order:4316,tags:["pencil"],unicode:"\u270F\uFE0F"},{group:7,hexcode:"2712",label:"black nib",order:4318,tags:["nib","pen"],unicode:"\u2712\uFE0F"},{group:7,hexcode:"1F58B",label:"fountain pen",order:4320,tags:["fountain","pen"],unicode:"\u{1F58B}\uFE0F"},{group:7,hexcode:"1F58A",label:"pen",order:4322,tags:["ballpoint"],unicode:"\u{1F58A}\uFE0F"},{group:7,hexcode:"1F58C",label:"paintbrush",order:4324,tags:["painting"],unicode:"\u{1F58C}\uFE0F"},{group:7,hexcode:"1F58D",label:"crayon",order:4326,tags:["crayon"],unicode:"\u{1F58D}\uFE0F"},{group:7,hexcode:"1F4DD",label:"memo",order:4327,tags:["pencil"],unicode:"\u{1F4DD}"},{group:7,hexcode:"1F4BC",label:"briefcase",order:4328,tags:["briefcase"],unicode:"\u{1F4BC}"},{group:7,hexcode:"1F4C1",label:"file folder",order:4329,tags:["file","folder"],unicode:"\u{1F4C1}"},{group:7,hexcode:"1F4C2",label:"open file folder",order:4330,tags:["file","folder","open"],unicode:"\u{1F4C2}"},{group:7,hexcode:"1F5C2",label:"card index dividers",order:4332,tags:["card","dividers","index"],unicode:"\u{1F5C2}\uFE0F"},{group:7,hexcode:"1F4C5",label:"calendar",order:4333,tags:["date"],unicode:"\u{1F4C5}"},{group:7,hexcode:"1F4C6",label:"tear-off calendar",order:4334,tags:["calendar"],unicode:"\u{1F4C6}"},{group:7,hexcode:"1F5D2",label:"spiral notepad",order:4336,tags:["note","pad","spiral"],unicode:"\u{1F5D2}\uFE0F"},{group:7,hexcode:"1F5D3",label:"spiral calendar",order:4338,tags:["calendar","pad","spiral"],unicode:"\u{1F5D3}\uFE0F"},{group:7,hexcode:"1F4C7",label:"card index",order:4339,tags:["card","index","rolodex"],unicode:"\u{1F4C7}"},{group:7,hexcode:"1F4C8",label:"chart increasing",order:4340,tags:["chart","graph","growth","trend","upward"],unicode:"\u{1F4C8}"},{group:7,hexcode:"1F4C9",label:"chart decreasing",order:4341,tags:["chart","down","graph","trend"],unicode:"\u{1F4C9}"},{group:7,hexcode:"1F4CA",label:"bar chart",order:4342,tags:["bar","chart","graph"],unicode:"\u{1F4CA}"},{group:7,hexcode:"1F4CB",label:"clipboard",order:4343,tags:["clipboard"],unicode:"\u{1F4CB}\uFE0F"},{group:7,hexcode:"1F4CC",label:"pushpin",order:4344,tags:["pin"],unicode:"\u{1F4CC}"},{group:7,hexcode:"1F4CD",label:"round pushpin",order:4345,tags:["pin","pushpin"],unicode:"\u{1F4CD}"},{group:7,hexcode:"1F4CE",label:"paperclip",order:4346,tags:["paperclip"],unicode:"\u{1F4CE}"},{group:7,hexcode:"1F587",label:"linked paperclips",order:4348,tags:["link","paperclip"],unicode:"\u{1F587}\uFE0F"},{group:7,hexcode:"1F4CF",label:"straight ruler",order:4349,tags:["ruler","straight edge"],unicode:"\u{1F4CF}"},{group:7,hexcode:"1F4D0",label:"triangular ruler",order:4350,tags:["ruler","set","triangle"],unicode:"\u{1F4D0}"},{group:7,hexcode:"2702",label:"scissors",order:4352,tags:["cutting","tool"],unicode:"\u2702\uFE0F"},{group:7,hexcode:"1F5C3",label:"card file box",order:4354,tags:["box","card","file"],unicode:"\u{1F5C3}\uFE0F"},{group:7,hexcode:"1F5C4",label:"file cabinet",order:4356,tags:["cabinet","file","filing"],unicode:"\u{1F5C4}\uFE0F"},{group:7,hexcode:"1F5D1",label:"wastebasket",order:4358,tags:["wastebasket"],unicode:"\u{1F5D1}\uFE0F"},{group:7,hexcode:"1F512",label:"locked",order:4359,tags:["closed"],unicode:"\u{1F512}\uFE0F"},{group:7,hexcode:"1F513",label:"unlocked",order:4360,tags:["lock","open","unlock"],unicode:"\u{1F513}\uFE0F"},{group:7,hexcode:"1F50F",label:"locked with pen",order:4361,tags:["ink","lock","nib","pen","privacy"],unicode:"\u{1F50F}"},{group:7,hexcode:"1F510",label:"locked with key",order:4362,tags:["closed","key","lock","secure"],unicode:"\u{1F510}"},{group:7,hexcode:"1F511",label:"key",order:4363,tags:["lock","password"],unicode:"\u{1F511}"},{group:7,hexcode:"1F5DD",label:"old key",order:4365,tags:["clue","key","lock","old"],unicode:"\u{1F5DD}\uFE0F"},{group:7,hexcode:"1F528",label:"hammer",order:4366,tags:["tool"],unicode:"\u{1F528}"},{group:7,hexcode:"1FA93",label:"axe",order:4367,tags:["chop","hatchet","split","wood"],unicode:"\u{1FA93}"},{group:7,hexcode:"26CF",label:"pick",order:4369,tags:["mining","tool"],unicode:"\u26CF\uFE0F"},{group:7,hexcode:"2692",label:"hammer and pick",order:4371,tags:["hammer","pick","tool"],unicode:"\u2692\uFE0F"},{group:7,hexcode:"1F6E0",label:"hammer and wrench",order:4373,tags:["hammer","spanner","tool","wrench"],unicode:"\u{1F6E0}\uFE0F"},{group:7,hexcode:"1F5E1",label:"dagger",order:4375,tags:["knife","weapon"],unicode:"\u{1F5E1}\uFE0F"},{group:7,hexcode:"2694",label:"crossed swords",order:4377,tags:["crossed","swords","weapon"],unicode:"\u2694\uFE0F"},{group:7,hexcode:"1F4A3",label:"bomb",order:4378,tags:["comic"],unicode:"\u{1F4A3}\uFE0F"},{group:7,hexcode:"1FA83",label:"boomerang",order:4379,tags:["rebound","repercussion"],unicode:"\u{1FA83}"},{group:7,hexcode:"1F3F9",label:"bow and arrow",order:4380,tags:["archer","arrow","bow","sagittarius","zodiac"],unicode:"\u{1F3F9}"},{group:7,hexcode:"1F6E1",label:"shield",order:4382,tags:["weapon"],unicode:"\u{1F6E1}\uFE0F"},{group:7,hexcode:"1FA9A",label:"carpentry saw",order:4383,tags:["carpenter","lumber","saw","tool"],unicode:"\u{1FA9A}"},{group:7,hexcode:"1F527",label:"wrench",order:4384,tags:["spanner","tool"],unicode:"\u{1F527}"},{group:7,hexcode:"1FA9B",label:"screwdriver",order:4385,tags:["screw","tool"],unicode:"\u{1FA9B}"},{group:7,hexcode:"1F529",label:"nut and bolt",order:4386,tags:["bolt","nut","tool"],unicode:"\u{1F529}"},{group:7,hexcode:"2699",label:"gear",order:4388,tags:["cog","cogwheel","tool"],unicode:"\u2699\uFE0F"},{group:7,hexcode:"1F5DC",label:"clamp",order:4390,tags:["compress","tool","vice"],unicode:"\u{1F5DC}\uFE0F"},{group:7,hexcode:"2696",label:"balance scale",order:4392,tags:["balance","justice","libra","scale","zodiac"],unicode:"\u2696\uFE0F"},{group:7,hexcode:"1F9AF",label:"white cane",order:4393,tags:["accessibility","blind"],unicode:"\u{1F9AF}"},{group:7,hexcode:"1F517",label:"link",order:4394,tags:["link"],unicode:"\u{1F517}"},{group:7,hexcode:"26D3-FE0F-200D-1F4A5",label:"broken chain",order:4395,tags:["break","breaking","chain","cuffs","freedom"],unicode:"\u26D3\uFE0F\u200D\u{1F4A5}"},{group:7,hexcode:"26D3",label:"chains",order:4398,tags:["chain"],unicode:"\u26D3\uFE0F"},{group:7,hexcode:"1FA9D",label:"hook",order:4399,tags:["catch","crook","curve","ensnare","selling point"],unicode:"\u{1FA9D}"},{group:7,hexcode:"1F9F0",label:"toolbox",order:4400,tags:["chest","mechanic","tool"],unicode:"\u{1F9F0}"},{group:7,hexcode:"1F9F2",label:"magnet",order:4401,tags:["attraction","horseshoe","magnetic"],unicode:"\u{1F9F2}"},{group:7,hexcode:"1FA9C",label:"ladder",order:4402,tags:["climb","rung","step"],unicode:"\u{1FA9C}"},{group:7,hexcode:"2697",label:"alembic",order:4404,tags:["chemistry","tool"],unicode:"\u2697\uFE0F"},{group:7,hexcode:"1F9EA",label:"test tube",order:4405,tags:["chemist","chemistry","experiment","lab","science"],unicode:"\u{1F9EA}"},{group:7,hexcode:"1F9EB",label:"petri dish",order:4406,tags:["bacteria","biologist","biology","culture","lab"],unicode:"\u{1F9EB}"},{group:7,hexcode:"1F9EC",label:"dna",order:4407,tags:["biologist","evolution","gene","genetics","life"],unicode:"\u{1F9EC}"},{group:7,hexcode:"1F52C",label:"microscope",order:4408,tags:["science","tool"],unicode:"\u{1F52C}"},{group:7,hexcode:"1F52D",label:"telescope",order:4409,tags:["science","tool"],unicode:"\u{1F52D}"},{group:7,hexcode:"1F4E1",label:"satellite antenna",order:4410,tags:["antenna","dish","satellite"],unicode:"\u{1F4E1}"},{group:7,hexcode:"1F489",label:"syringe",order:4411,tags:["medicine","needle","shot","sick"],unicode:"\u{1F489}"},{group:7,hexcode:"1FA78",label:"drop of blood",order:4412,tags:["bleed","blood donation","injury","medicine","menstruation"],unicode:"\u{1FA78}"},{group:7,hexcode:"1F48A",label:"pill",order:4413,tags:["doctor","medicine","sick"],unicode:"\u{1F48A}"},{group:7,hexcode:"1FA79",label:"adhesive bandage",order:4414,tags:["bandage"],unicode:"\u{1FA79}"},{group:7,hexcode:"1FA7C",label:"crutch",order:4415,tags:["cane","disability","hurt","mobility aid","stick"],unicode:"\u{1FA7C}"},{group:7,hexcode:"1FA7A",label:"stethoscope",order:4416,tags:["doctor","heart","medicine"],unicode:"\u{1FA7A}"},{group:7,hexcode:"1FA7B",label:"x-ray",order:4417,tags:["bones","doctor","medical","skeleton"],unicode:"\u{1FA7B}"},{group:7,hexcode:"1F6AA",label:"door",order:4418,tags:["door"],unicode:"\u{1F6AA}"},{group:7,hexcode:"1F6D7",label:"elevator",order:4419,tags:["accessibility","hoist","lift"],unicode:"\u{1F6D7}"},{group:7,hexcode:"1FA9E",label:"mirror",order:4420,tags:["reflection","reflector","speculum"],unicode:"\u{1FA9E}"},{group:7,hexcode:"1FA9F",label:"window",order:4421,tags:["frame","fresh air","opening","transparent","view"],unicode:"\u{1FA9F}"},{group:7,hexcode:"1F6CF",label:"bed",order:4423,tags:["hotel","sleep"],unicode:"\u{1F6CF}\uFE0F"},{group:7,hexcode:"1F6CB",label:"couch and lamp",order:4425,tags:["couch","hotel","lamp"],unicode:"\u{1F6CB}\uFE0F"},{group:7,hexcode:"1FA91",label:"chair",order:4426,tags:["seat","sit"],unicode:"\u{1FA91}"},{group:7,hexcode:"1F6BD",label:"toilet",order:4427,tags:["toilet"],unicode:"\u{1F6BD}"},{group:7,hexcode:"1FAA0",label:"plunger",order:4428,tags:["force cup","plumber","suction","toilet"],unicode:"\u{1FAA0}"},{group:7,hexcode:"1F6BF",label:"shower",order:4429,tags:["water"],unicode:"\u{1F6BF}"},{group:7,hexcode:"1F6C1",label:"bathtub",order:4430,tags:["bath"],unicode:"\u{1F6C1}"},{group:7,hexcode:"1FAA4",label:"mouse trap",order:4431,tags:["bait","mousetrap","snare","trap"],unicode:"\u{1FAA4}"},{group:7,hexcode:"1FA92",label:"razor",order:4432,tags:["sharp","shave"],unicode:"\u{1FA92}"},{group:7,hexcode:"1F9F4",label:"lotion bottle",order:4433,tags:["lotion","moisturizer","shampoo","sunscreen"],unicode:"\u{1F9F4}"},{group:7,hexcode:"1F9F7",label:"safety pin",order:4434,tags:["diaper","punk rock"],unicode:"\u{1F9F7}"},{group:7,hexcode:"1F9F9",label:"broom",order:4435,tags:["cleaning","sweeping","witch"],unicode:"\u{1F9F9}"},{group:7,hexcode:"1F9FA",label:"basket",order:4436,tags:["farming","laundry","picnic"],unicode:"\u{1F9FA}"},{group:7,hexcode:"1F9FB",label:"roll of paper",order:4437,tags:["paper towels","toilet paper"],unicode:"\u{1F9FB}"},{group:7,hexcode:"1FAA3",label:"bucket",order:4438,tags:["cask","pail","vat"],unicode:"\u{1FAA3}"},{group:7,hexcode:"1F9FC",label:"soap",order:4439,tags:["bar","bathing","cleaning","lather","soapdish"],unicode:"\u{1F9FC}"},{group:7,hexcode:"1FAE7",label:"bubbles",order:4440,tags:["burp","clean","soap","underwater"],unicode:"\u{1FAE7}"},{group:7,hexcode:"1FAA5",label:"toothbrush",order:4441,tags:["bathroom","brush","clean","dental","hygiene","teeth"],unicode:"\u{1FAA5}"},{group:7,hexcode:"1F9FD",label:"sponge",order:4442,tags:["absorbing","cleaning","porous"],unicode:"\u{1F9FD}"},{group:7,hexcode:"1F9EF",label:"fire extinguisher",order:4443,tags:["extinguish","fire","quench"],unicode:"\u{1F9EF}"},{group:7,hexcode:"1F6D2",label:"shopping cart",order:4444,tags:["cart","shopping","trolley"],unicode:"\u{1F6D2}"},{group:7,hexcode:"1F6AC",label:"cigarette",order:4445,tags:["smoking"],unicode:"\u{1F6AC}"},{group:7,hexcode:"26B0",label:"coffin",order:4447,tags:["death"],unicode:"\u26B0\uFE0F"},{group:7,hexcode:"1FAA6",label:"headstone",order:4448,tags:["cemetery","grave","graveyard","tombstone"],unicode:"\u{1FAA6}"},{group:7,hexcode:"26B1",label:"funeral urn",order:4450,tags:["ashes","death","funeral","urn"],unicode:"\u26B1\uFE0F"},{group:7,hexcode:"1F9FF",label:"nazar amulet",order:4451,tags:["bead","charm","evil-eye","nazar","talisman"],unicode:"\u{1F9FF}"},{group:7,hexcode:"1FAAC",label:"hamsa",order:4452,tags:["amulet","fatima","hand","mary","miriam","protection"],unicode:"\u{1FAAC}"},{group:7,hexcode:"1F5FF",label:"moai",order:4453,tags:["face","moyai","statue"],unicode:"\u{1F5FF}"},{group:7,hexcode:"1FAA7",label:"placard",order:4454,tags:["demonstration","picket","protest","sign"],unicode:"\u{1FAA7}"},{group:7,hexcode:"1FAAA",label:"identification card",order:4455,tags:["credentials","id","license","security"],unicode:"\u{1FAAA}"},{group:8,hexcode:"1F3E7",label:"ATM sign",order:4456,tags:["atm","atm sign","automated","bank","teller"],unicode:"\u{1F3E7}"},{group:8,hexcode:"1F6AE",label:"litter in bin sign",order:4457,tags:["litter","litter bin"],unicode:"\u{1F6AE}"},{group:8,hexcode:"1F6B0",label:"potable water",order:4458,tags:["drinking","potable","water"],unicode:"\u{1F6B0}"},{group:8,hexcode:"267F",label:"wheelchair symbol",order:4459,tags:["access"],unicode:"\u267F\uFE0F"},{group:8,hexcode:"1F6B9",label:"men\u2019s room",order:4460,tags:["bathroom","lavatory","man","restroom","toilet","wc"],unicode:"\u{1F6B9}\uFE0F"},{group:8,hexcode:"1F6BA",label:"women\u2019s room",order:4461,tags:["bathroom","lavatory","restroom","toilet","wc","woman"],unicode:"\u{1F6BA}\uFE0F"},{group:8,hexcode:"1F6BB",label:"restroom",order:4462,tags:["bathroom","lavatory","toilet","wc"],unicode:"\u{1F6BB}"},{group:8,hexcode:"1F6BC",label:"baby symbol",order:4463,tags:["baby","changing"],unicode:"\u{1F6BC}\uFE0F"},{group:8,hexcode:"1F6BE",label:"water closet",order:4464,tags:["bathroom","closet","lavatory","restroom","toilet","water","wc"],unicode:"\u{1F6BE}"},{group:8,hexcode:"1F6C2",label:"passport control",order:4465,tags:["control","passport"],unicode:"\u{1F6C2}"},{group:8,hexcode:"1F6C3",label:"customs",order:4466,tags:["customs"],unicode:"\u{1F6C3}"},{group:8,hexcode:"1F6C4",label:"baggage claim",order:4467,tags:["baggage","claim"],unicode:"\u{1F6C4}"},{group:8,hexcode:"1F6C5",label:"left luggage",order:4468,tags:["baggage","locker","luggage"],unicode:"\u{1F6C5}"},{group:8,hexcode:"26A0",label:"warning",order:4470,tags:["warning"],unicode:"\u26A0\uFE0F"},{group:8,hexcode:"1F6B8",label:"children crossing",order:4471,tags:["child","crossing","pedestrian","traffic"],unicode:"\u{1F6B8}"},{group:8,hexcode:"26D4",label:"no entry",order:4472,tags:["entry","forbidden","no","not","prohibited","traffic"],unicode:"\u26D4\uFE0F"},{group:8,hexcode:"1F6AB",label:"prohibited",order:4473,tags:["entry","forbidden","no","not"],unicode:"\u{1F6AB}"},{group:8,hexcode:"1F6B3",label:"no bicycles",order:4474,tags:["bicycle","bike","forbidden","no","prohibited"],unicode:"\u{1F6B3}"},{group:8,hexcode:"1F6AD",label:"no smoking",order:4475,tags:["forbidden","no","not","prohibited","smoking"],unicode:"\u{1F6AD}\uFE0F"},{group:8,hexcode:"1F6AF",label:"no littering",order:4476,tags:["forbidden","litter","no","not","prohibited"],unicode:"\u{1F6AF}"},{group:8,hexcode:"1F6B1",label:"non-potable water",order:4477,tags:["non-drinking","non-potable","water"],unicode:"\u{1F6B1}"},{group:8,hexcode:"1F6B7",label:"no pedestrians",order:4478,tags:["forbidden","no","not","pedestrian","prohibited"],unicode:"\u{1F6B7}"},{group:8,hexcode:"1F4F5",label:"no mobile phones",order:4479,tags:["cell","forbidden","mobile","no","phone"],unicode:"\u{1F4F5}"},{group:8,hexcode:"1F51E",label:"no one under eighteen",order:4480,tags:["18","age restriction","eighteen","prohibited","underage"],unicode:"\u{1F51E}"},{group:8,hexcode:"2622",label:"radioactive",order:4482,tags:["sign"],unicode:"\u2622\uFE0F"},{group:8,hexcode:"2623",label:"biohazard",order:4484,tags:["sign"],unicode:"\u2623\uFE0F"},{group:8,hexcode:"2B06",label:"up arrow",order:4486,tags:["arrow","cardinal","direction","north"],unicode:"\u2B06\uFE0F"},{group:8,hexcode:"2197",label:"up-right arrow",order:4488,tags:["arrow","direction","intercardinal","northeast"],unicode:"\u2197\uFE0F"},{group:8,hexcode:"27A1",label:"right arrow",order:4490,tags:["arrow","cardinal","direction","east"],unicode:"\u27A1\uFE0F"},{group:8,hexcode:"2198",label:"down-right arrow",order:4492,tags:["arrow","direction","intercardinal","southeast"],unicode:"\u2198\uFE0F"},{group:8,hexcode:"2B07",label:"down arrow",order:4494,tags:["arrow","cardinal","direction","down","south"],unicode:"\u2B07\uFE0F"},{group:8,hexcode:"2199",label:"down-left arrow",order:4496,tags:["arrow","direction","intercardinal","southwest"],unicode:"\u2199\uFE0F"},{group:8,hexcode:"2B05",label:"left arrow",order:4498,tags:["arrow","cardinal","direction","west"],unicode:"\u2B05\uFE0F"},{group:8,hexcode:"2196",label:"up-left arrow",order:4500,tags:["arrow","direction","intercardinal","northwest"],unicode:"\u2196\uFE0F"},{group:8,hexcode:"2195",label:"up-down arrow",order:4502,tags:["arrow"],unicode:"\u2195\uFE0F"},{group:8,hexcode:"2194",label:"left-right arrow",order:4504,tags:["arrow"],unicode:"\u2194\uFE0F"},{group:8,hexcode:"21A9",label:"right arrow curving left",order:4506,tags:["arrow"],unicode:"\u21A9\uFE0F"},{group:8,hexcode:"21AA",label:"left arrow curving right",order:4508,tags:["arrow"],unicode:"\u21AA\uFE0F"},{group:8,hexcode:"2934",label:"right arrow curving up",order:4510,tags:["arrow"],unicode:"\u2934\uFE0F"},{group:8,hexcode:"2935",label:"right arrow curving down",order:4512,tags:["arrow","down"],unicode:"\u2935\uFE0F"},{group:8,hexcode:"1F503",label:"clockwise vertical arrows",order:4513,tags:["arrow","clockwise","reload"],unicode:"\u{1F503}"},{group:8,hexcode:"1F504",label:"counterclockwise arrows button",order:4514,tags:["anticlockwise","arrow","counterclockwise","withershins"],unicode:"\u{1F504}"},{group:8,hexcode:"1F519",label:"BACK arrow",order:4515,tags:["arrow","back"],unicode:"\u{1F519}"},{group:8,hexcode:"1F51A",label:"END arrow",order:4516,tags:["arrow","end"],unicode:"\u{1F51A}"},{group:8,hexcode:"1F51B",label:"ON! arrow",order:4517,tags:["arrow","mark","on","on!"],unicode:"\u{1F51B}"},{group:8,hexcode:"1F51C",label:"SOON arrow",order:4518,tags:["arrow","soon"],unicode:"\u{1F51C}"},{group:8,hexcode:"1F51D",label:"TOP arrow",order:4519,tags:["arrow","top","up"],unicode:"\u{1F51D}"},{group:8,hexcode:"1F6D0",label:"place of worship",order:4520,tags:["religion","worship"],unicode:"\u{1F6D0}"},{group:8,hexcode:"269B",label:"atom symbol",order:4522,tags:["atheist","atom"],unicode:"\u269B\uFE0F"},{group:8,hexcode:"1F549",label:"om",order:4524,tags:["hindu","religion"],unicode:"\u{1F549}\uFE0F"},{group:8,hexcode:"2721",label:"star of David",order:4526,tags:["david","jew","jewish","religion","star","star of david"],unicode:"\u2721\uFE0F"},{group:8,hexcode:"2638",label:"wheel of dharma",order:4528,tags:["buddhist","dharma","religion","wheel"],unicode:"\u2638\uFE0F"},{group:8,hexcode:"262F",label:"yin yang",order:4530,tags:["religion","tao","taoist","yang","yin"],unicode:"\u262F\uFE0F"},{group:8,hexcode:"271D",label:"latin cross",order:4532,tags:["christian","cross","religion"],unicode:"\u271D\uFE0F"},{group:8,hexcode:"2626",label:"orthodox cross",order:4534,tags:["christian","cross","religion"],unicode:"\u2626\uFE0F"},{group:8,hexcode:"262A",label:"star and crescent",order:4536,tags:["islam","muslim","religion"],unicode:"\u262A\uFE0F"},{group:8,hexcode:"262E",label:"peace symbol",order:4538,tags:["peace"],unicode:"\u262E\uFE0F"},{group:8,hexcode:"1F54E",label:"menorah",order:4539,tags:["candelabrum","candlestick","religion"],unicode:"\u{1F54E}"},{group:8,hexcode:"1F52F",label:"dotted six-pointed star",order:4540,tags:["fortune","star"],unicode:"\u{1F52F}"},{group:8,hexcode:"1FAAF",label:"khanda",order:4541,tags:["religion","sikh"],unicode:"\u{1FAAF}"},{group:8,hexcode:"2648",label:"Aries",order:4542,tags:["aries","ram","zodiac"],unicode:"\u2648\uFE0F"},{group:8,hexcode:"2649",label:"Taurus",order:4543,tags:["bull","ox","taurus","zodiac"],unicode:"\u2649\uFE0F"},{group:8,hexcode:"264A",label:"Gemini",order:4544,tags:["gemini","twins","zodiac"],unicode:"\u264A\uFE0F"},{group:8,hexcode:"264B",label:"Cancer",order:4545,tags:["cancer","crab","zodiac"],unicode:"\u264B\uFE0F"},{group:8,hexcode:"264C",label:"Leo",order:4546,tags:["leo","lion","zodiac"],unicode:"\u264C\uFE0F"},{group:8,hexcode:"264D",label:"Virgo",order:4547,tags:["virgo","zodiac"],unicode:"\u264D\uFE0F"},{group:8,hexcode:"264E",label:"Libra",order:4548,tags:["balance","justice","libra","scales","zodiac"],unicode:"\u264E\uFE0F"},{group:8,hexcode:"264F",label:"Scorpio",order:4549,tags:["scorpio","scorpion","scorpius","zodiac"],unicode:"\u264F\uFE0F"},{group:8,hexcode:"2650",label:"Sagittarius",order:4550,tags:["archer","sagittarius","zodiac"],unicode:"\u2650\uFE0F"},{group:8,hexcode:"2651",label:"Capricorn",order:4551,tags:["capricorn","goat","zodiac"],unicode:"\u2651\uFE0F"},{group:8,hexcode:"2652",label:"Aquarius",order:4552,tags:["aquarius","bearer","water","zodiac"],unicode:"\u2652\uFE0F"},{group:8,hexcode:"2653",label:"Pisces",order:4553,tags:["fish","pisces","zodiac"],unicode:"\u2653\uFE0F"},{group:8,hexcode:"26CE",label:"Ophiuchus",order:4554,tags:["bearer","ophiuchus","serpent","snake","zodiac"],unicode:"\u26CE\uFE0F"},{group:8,hexcode:"1F500",label:"shuffle tracks button",order:4555,tags:["arrow","crossed"],unicode:"\u{1F500}"},{group:8,hexcode:"1F501",label:"repeat button",order:4556,tags:["arrow","clockwise","repeat"],unicode:"\u{1F501}"},{group:8,hexcode:"1F502",label:"repeat single button",order:4557,tags:["arrow","clockwise","once"],unicode:"\u{1F502}"},{group:8,hexcode:"25B6",label:"play button",order:4559,tags:["arrow","play","right","triangle"],unicode:"\u25B6\uFE0F"},{group:8,hexcode:"23E9",label:"fast-forward button",order:4560,tags:["arrow","double","fast","forward"],unicode:"\u23E9\uFE0F"},{group:8,hexcode:"23ED",label:"next track button",order:4562,tags:["arrow","next scene","next track","triangle"],unicode:"\u23ED\uFE0F"},{group:8,hexcode:"23EF",label:"play or pause button",order:4564,tags:["arrow","pause","play","right","triangle"],unicode:"\u23EF\uFE0F"},{group:8,hexcode:"25C0",label:"reverse button",order:4566,tags:["arrow","left","reverse","triangle"],unicode:"\u25C0\uFE0F"},{group:8,hexcode:"23EA",label:"fast reverse button",order:4567,tags:["arrow","double","rewind"],unicode:"\u23EA\uFE0F"},{group:8,hexcode:"23EE",label:"last track button",order:4569,tags:["arrow","previous scene","previous track","triangle"],unicode:"\u23EE\uFE0F"},{group:8,hexcode:"1F53C",label:"upwards button",order:4570,tags:["arrow","button"],unicode:"\u{1F53C}"},{group:8,hexcode:"23EB",label:"fast up button",order:4571,tags:["arrow","double"],unicode:"\u23EB\uFE0F"},{group:8,hexcode:"1F53D",label:"downwards button",order:4572,tags:["arrow","button","down"],unicode:"\u{1F53D}"},{group:8,hexcode:"23EC",label:"fast down button",order:4573,tags:["arrow","double","down"],unicode:"\u23EC\uFE0F"},{group:8,hexcode:"23F8",label:"pause button",order:4575,tags:["bar","double","pause","vertical"],unicode:"\u23F8\uFE0F"},{group:8,hexcode:"23F9",label:"stop button",order:4577,tags:["square","stop"],unicode:"\u23F9\uFE0F"},{group:8,hexcode:"23FA",label:"record button",order:4579,tags:["circle","record"],unicode:"\u23FA\uFE0F"},{group:8,hexcode:"23CF",label:"eject button",order:4581,tags:["eject"],unicode:"\u23CF\uFE0F"},{group:8,hexcode:"1F3A6",label:"cinema",order:4582,tags:["camera","film","movie"],unicode:"\u{1F3A6}"},{group:8,hexcode:"1F505",label:"dim button",order:4583,tags:["brightness","dim","low"],unicode:"\u{1F505}"},{group:8,hexcode:"1F506",label:"bright button",order:4584,tags:["bright","brightness"],unicode:"\u{1F506}"},{group:8,hexcode:"1F4F6",label:"antenna bars",order:4585,tags:["antenna","bar","cell","mobile","phone"],unicode:"\u{1F4F6}"},{group:8,hexcode:"1F6DC",label:"wireless",order:4586,tags:["computer","internet","network","wi-fi","wifi"],unicode:"\u{1F6DC}"},{group:8,hexcode:"1F4F3",label:"vibration mode",order:4587,tags:["cell","mobile","mode","phone","telephone","vibration"],unicode:"\u{1F4F3}"},{group:8,hexcode:"1F4F4",label:"mobile phone off",order:4588,tags:["cell","mobile","off","phone","telephone"],unicode:"\u{1F4F4}"},{group:8,hexcode:"2640",label:"female sign",order:4590,tags:["woman"],unicode:"\u2640\uFE0F"},{group:8,hexcode:"2642",label:"male sign",order:4592,tags:["man"],unicode:"\u2642\uFE0F"},{group:8,hexcode:"26A7",label:"transgender symbol",order:4594,tags:["transgender"],unicode:"\u26A7\uFE0F"},{group:8,hexcode:"2716",label:"multiply",order:4596,tags:["cancel","multiplication","sign","x","\xD7"],unicode:"\u2716\uFE0F"},{group:8,hexcode:"2795",label:"plus",order:4597,tags:["+","math","sign"],unicode:"\u2795\uFE0F"},{group:8,hexcode:"2796",label:"minus",order:4598,tags:["-","math","sign","\u2212"],unicode:"\u2796\uFE0F"},{group:8,hexcode:"2797",label:"divide",order:4599,tags:["division","math","sign","\xF7"],unicode:"\u2797\uFE0F"},{group:8,hexcode:"1F7F0",label:"heavy equals sign",order:4600,tags:["equality","math"],unicode:"\u{1F7F0}"},{group:8,hexcode:"267E",label:"infinity",order:4602,tags:["forever","unbounded","universal"],unicode:"\u267E\uFE0F"},{group:8,hexcode:"203C",label:"double exclamation mark",order:4604,tags:["!","!!","bangbang","exclamation","mark"],unicode:"\u203C\uFE0F"},{group:8,hexcode:"2049",label:"exclamation question mark",order:4606,tags:["!","!?","?","exclamation","interrobang","mark","punctuation","question"],unicode:"\u2049\uFE0F"},{group:8,hexcode:"2753",label:"red question mark",order:4607,tags:["?","mark","punctuation","question"],unicode:"\u2753\uFE0F"},{group:8,hexcode:"2754",label:"white question mark",order:4608,tags:["?","mark","outlined","punctuation","question"],unicode:"\u2754\uFE0F"},{group:8,hexcode:"2755",label:"white exclamation mark",order:4609,tags:["!","exclamation","mark","outlined","punctuation"],unicode:"\u2755\uFE0F"},{group:8,hexcode:"2757",label:"red exclamation mark",order:4610,tags:["!","exclamation","mark","punctuation"],unicode:"\u2757\uFE0F"},{group:8,hexcode:"3030",label:"wavy dash",order:4612,tags:["dash","punctuation","wavy"],unicode:"\u3030\uFE0F"},{group:8,hexcode:"1F4B1",label:"currency exchange",order:4613,tags:["bank","currency","exchange","money"],unicode:"\u{1F4B1}"},{group:8,hexcode:"1F4B2",label:"heavy dollar sign",order:4614,tags:["currency","dollar","money"],unicode:"\u{1F4B2}"},{group:8,hexcode:"2695",label:"medical symbol",order:4616,tags:["aesculapius","medicine","staff"],unicode:"\u2695\uFE0F"},{group:8,hexcode:"267B",label:"recycling symbol",order:4618,tags:["recycle"],unicode:"\u267B\uFE0F"},{group:8,hexcode:"269C",label:"fleur-de-lis",order:4620,tags:["fleur-de-lis"],unicode:"\u269C\uFE0F"},{group:8,hexcode:"1F531",label:"trident emblem",order:4621,tags:["anchor","emblem","ship","tool","trident"],unicode:"\u{1F531}"},{group:8,hexcode:"1F4DB",label:"name badge",order:4622,tags:["badge","name"],unicode:"\u{1F4DB}"},{group:8,hexcode:"1F530",label:"Japanese symbol for beginner",order:4623,tags:["beginner","chevron","japanese","japanese symbol for beginner","leaf"],unicode:"\u{1F530}"},{group:8,hexcode:"2B55",label:"hollow red circle",order:4624,tags:["circle","large","o","red"],unicode:"\u2B55\uFE0F"},{group:8,hexcode:"2705",label:"check mark button",order:4625,tags:["button","check","mark","\u2713"],unicode:"\u2705\uFE0F"},{group:8,hexcode:"2611",label:"check box with check",order:4627,tags:["box","check","\u2713"],unicode:"\u2611\uFE0F"},{group:8,hexcode:"2714",label:"check mark",order:4629,tags:["check","mark","\u2713"],unicode:"\u2714\uFE0F"},{group:8,hexcode:"274C",label:"cross mark",order:4630,tags:["cancel","cross","mark","multiplication","multiply","x","\xD7"],unicode:"\u274C\uFE0F"},{group:8,hexcode:"274E",label:"cross mark button",order:4631,tags:["mark","square","x","\xD7"],unicode:"\u274E\uFE0F"},{group:8,hexcode:"27B0",label:"curly loop",order:4632,tags:["curl","loop"],unicode:"\u27B0\uFE0F"},{group:8,hexcode:"27BF",label:"double curly loop",order:4633,tags:["curl","double","loop"],unicode:"\u27BF\uFE0F"},{group:8,hexcode:"303D",label:"part alternation mark",order:4635,tags:["mark","part"],unicode:"\u303D\uFE0F"},{group:8,hexcode:"2733",label:"eight-spoked asterisk",order:4637,tags:["*","asterisk"],unicode:"\u2733\uFE0F"},{group:8,hexcode:"2734",label:"eight-pointed star",order:4639,tags:["*","star"],unicode:"\u2734\uFE0F"},{group:8,hexcode:"2747",label:"sparkle",order:4641,tags:["*"],unicode:"\u2747\uFE0F"},{group:8,hexcode:"00A9",label:"copyright",order:4643,tags:["c"],unicode:"\xA9\uFE0F"},{group:8,hexcode:"00AE",label:"registered",order:4645,tags:["r"],unicode:"\xAE\uFE0F"},{group:8,hexcode:"2122",label:"trade mark",order:4647,tags:["mark","tm","trademark"],unicode:"\u2122\uFE0F"},{group:8,hexcode:"0023-FE0F-20E3",label:"keycap: #",order:4648,tags:["keycap"],unicode:"#\uFE0F\u20E3"},{group:8,hexcode:"002A-FE0F-20E3",label:"keycap: *",order:4650,tags:["keycap"],unicode:"*\uFE0F\u20E3"},{group:8,hexcode:"0030-FE0F-20E3",label:"keycap: 0",order:4652,tags:["keycap"],unicode:"0\uFE0F\u20E3"},{group:8,hexcode:"0031-FE0F-20E3",label:"keycap: 1",order:4654,tags:["keycap"],unicode:"1\uFE0F\u20E3"},{group:8,hexcode:"0032-FE0F-20E3",label:"keycap: 2",order:4656,tags:["keycap"],unicode:"2\uFE0F\u20E3"},{group:8,hexcode:"0033-FE0F-20E3",label:"keycap: 3",order:4658,tags:["keycap"],unicode:"3\uFE0F\u20E3"},{group:8,hexcode:"0034-FE0F-20E3",label:"keycap: 4",order:4660,tags:["keycap"],unicode:"4\uFE0F\u20E3"},{group:8,hexcode:"0035-FE0F-20E3",label:"keycap: 5",order:4662,tags:["keycap"],unicode:"5\uFE0F\u20E3"},{group:8,hexcode:"0036-FE0F-20E3",label:"keycap: 6",order:4664,tags:["keycap"],unicode:"6\uFE0F\u20E3"},{group:8,hexcode:"0037-FE0F-20E3",label:"keycap: 7",order:4666,tags:["keycap"],unicode:"7\uFE0F\u20E3"},{group:8,hexcode:"0038-FE0F-20E3",label:"keycap: 8",order:4668,tags:["keycap"],unicode:"8\uFE0F\u20E3"},{group:8,hexcode:"0039-FE0F-20E3",label:"keycap: 9",order:4670,tags:["keycap"],unicode:"9\uFE0F\u20E3"},{group:8,hexcode:"1F51F",label:"keycap: 10",order:4672,tags:["keycap"],unicode:"\u{1F51F}"},{group:8,hexcode:"1F520",label:"input latin uppercase",order:4673,tags:["abcd","input","latin","letters","uppercase"],unicode:"\u{1F520}"},{group:8,hexcode:"1F521",label:"input latin lowercase",order:4674,tags:["abcd","input","latin","letters","lowercase"],unicode:"\u{1F521}"},{group:8,hexcode:"1F522",label:"input numbers",order:4675,tags:["1234","input","numbers"],unicode:"\u{1F522}"},{group:8,hexcode:"1F523",label:"input symbols",order:4676,tags:["input","\u3012\u266A&%"],unicode:"\u{1F523}"},{group:8,hexcode:"1F524",label:"input latin letters",order:4677,tags:["abc","alphabet","input","latin","letters"],unicode:"\u{1F524}"},{group:8,hexcode:"1F170",label:"A button (blood type)",order:4679,tags:["a","a button (blood type)","blood type"],unicode:"\u{1F170}\uFE0F"},{group:8,hexcode:"1F18E",label:"AB button (blood type)",order:4680,tags:["ab","ab button (blood type)","blood type"],unicode:"\u{1F18E}"},{group:8,hexcode:"1F171",label:"B button (blood type)",order:4682,tags:["b","b button (blood type)","blood type"],unicode:"\u{1F171}\uFE0F"},{group:8,hexcode:"1F191",label:"CL button",order:4683,tags:["cl","cl button"],unicode:"\u{1F191}"},{group:8,hexcode:"1F192",label:"COOL button",order:4684,tags:["cool","cool button"],unicode:"\u{1F192}"},{group:8,hexcode:"1F193",label:"FREE button",order:4685,tags:["free","free button"],unicode:"\u{1F193}"},{group:8,hexcode:"2139",label:"information",order:4687,tags:["i"],unicode:"\u2139\uFE0F"},{group:8,hexcode:"1F194",label:"ID button",order:4688,tags:["id","id button","identity"],unicode:"\u{1F194}"},{group:8,hexcode:"24C2",label:"circled M",order:4690,tags:["circle","circled m","m"],unicode:"\u24C2\uFE0F"},{group:8,hexcode:"1F195",label:"NEW button",order:4691,tags:["new","new button"],unicode:"\u{1F195}"},{group:8,hexcode:"1F196",label:"NG button",order:4692,tags:["ng","ng button"],unicode:"\u{1F196}"},{group:8,hexcode:"1F17E",label:"O button (blood type)",order:4694,tags:["blood type","o","o button (blood type)"],unicode:"\u{1F17E}\uFE0F"},{group:8,hexcode:"1F197",label:"OK button",order:4695,tags:["ok","ok button"],unicode:"\u{1F197}"},{group:8,hexcode:"1F17F",label:"P button",order:4697,tags:["p","p button","parking"],unicode:"\u{1F17F}\uFE0F"},{group:8,hexcode:"1F198",label:"SOS button",order:4698,tags:["help","sos","sos button"],unicode:"\u{1F198}"},{group:8,hexcode:"1F199",label:"UP! button",order:4699,tags:["mark","up","up!","up! button"],unicode:"\u{1F199}"},{group:8,hexcode:"1F19A",label:"VS button",order:4700,tags:["versus","vs","vs button"],unicode:"\u{1F19A}"},{group:8,hexcode:"1F201",label:"Japanese \u201Chere\u201D button",order:4701,tags:["japanese","japanese \u201Chere\u201D button","katakana","\u201Chere\u201D","\u30B3\u30B3"],unicode:"\u{1F201}"},{group:8,hexcode:"1F202",label:"Japanese \u201Cservice charge\u201D button",order:4703,tags:["japanese","japanese \u201Cservice charge\u201D button","katakana","\u201Cservice charge\u201D","\u30B5"],unicode:"\u{1F202}\uFE0F"},{group:8,hexcode:"1F237",label:"Japanese \u201Cmonthly amount\u201D button",order:4705,tags:["ideograph","japanese","japanese \u201Cmonthly amount\u201D button","\u201Cmonthly amount\u201D","\u6708"],unicode:"\u{1F237}\uFE0F"},{group:8,hexcode:"1F236",label:"Japanese \u201Cnot free of charge\u201D button",order:4706,tags:["ideograph","japanese","japanese \u201Cnot free of charge\u201D button","\u201Cnot free of charge\u201D","\u6709"],unicode:"\u{1F236}"},{group:8,hexcode:"1F22F",label:"Japanese \u201Creserved\u201D button",order:4707,tags:["ideograph","japanese","japanese \u201Creserved\u201D button","\u201Creserved\u201D","\u6307"],unicode:"\u{1F22F}\uFE0F"},{group:8,hexcode:"1F250",label:"Japanese \u201Cbargain\u201D button",order:4708,tags:["ideograph","japanese","japanese \u201Cbargain\u201D button","\u201Cbargain\u201D","\u5F97"],unicode:"\u{1F250}"},{group:8,hexcode:"1F239",label:"Japanese \u201Cdiscount\u201D button",order:4709,tags:["ideograph","japanese","japanese \u201Cdiscount\u201D button","\u201Cdiscount\u201D","\u5272"],unicode:"\u{1F239}"},{group:8,hexcode:"1F21A",label:"Japanese \u201Cfree of charge\u201D button",order:4710,tags:["ideograph","japanese","japanese \u201Cfree of charge\u201D button","\u201Cfree of charge\u201D","\u7121"],unicode:"\u{1F21A}\uFE0F"},{group:8,hexcode:"1F232",label:"Japanese \u201Cprohibited\u201D button",order:4711,tags:["ideograph","japanese","japanese \u201Cprohibited\u201D button","\u201Cprohibited\u201D","\u7981"],unicode:"\u{1F232}"},{group:8,hexcode:"1F251",label:"Japanese \u201Cacceptable\u201D button",order:4712,tags:["ideograph","japanese","japanese \u201Cacceptable\u201D button","\u201Cacceptable\u201D","\u53EF"],unicode:"\u{1F251}"},{group:8,hexcode:"1F238",label:"Japanese \u201Capplication\u201D button",order:4713,tags:["ideograph","japanese","japanese \u201Capplication\u201D button","\u201Capplication\u201D","\u7533"],unicode:"\u{1F238}"},{group:8,hexcode:"1F234",label:"Japanese \u201Cpassing grade\u201D button",order:4714,tags:["ideograph","japanese","japanese \u201Cpassing grade\u201D button","\u201Cpassing grade\u201D","\u5408"],unicode:"\u{1F234}"},{group:8,hexcode:"1F233",label:"Japanese \u201Cvacancy\u201D button",order:4715,tags:["ideograph","japanese","japanese \u201Cvacancy\u201D button","\u201Cvacancy\u201D","\u7A7A"],unicode:"\u{1F233}"},{group:8,hexcode:"3297",label:"Japanese \u201Ccongratulations\u201D button",order:4717,tags:["ideograph","japanese","japanese \u201Ccongratulations\u201D button","\u201Ccongratulations\u201D","\u795D"],unicode:"\u3297\uFE0F"},{group:8,hexcode:"3299",label:"Japanese \u201Csecret\u201D button",order:4719,tags:["ideograph","japanese","japanese \u201Csecret\u201D button","\u201Csecret\u201D","\u79D8"],unicode:"\u3299\uFE0F"},{group:8,hexcode:"1F23A",label:"Japanese \u201Copen for business\u201D button",order:4720,tags:["ideograph","japanese","japanese \u201Copen for business\u201D button","\u201Copen for business\u201D","\u55B6"],unicode:"\u{1F23A}"},{group:8,hexcode:"1F235",label:"Japanese \u201Cno vacancy\u201D button",order:4721,tags:["ideograph","japanese","japanese \u201Cno vacancy\u201D button","\u201Cno vacancy\u201D","\u6E80"],unicode:"\u{1F235}"},{group:8,hexcode:"1F534",label:"red circle",order:4722,tags:["circle","geometric","red"],unicode:"\u{1F534}"},{group:8,hexcode:"1F7E0",label:"orange circle",order:4723,tags:["circle","orange"],unicode:"\u{1F7E0}"},{group:8,hexcode:"1F7E1",label:"yellow circle",order:4724,tags:["circle","yellow"],unicode:"\u{1F7E1}"},{group:8,hexcode:"1F7E2",label:"green circle",order:4725,tags:["circle","green"],unicode:"\u{1F7E2}"},{group:8,hexcode:"1F535",label:"blue circle",order:4726,tags:["blue","circle","geometric"],unicode:"\u{1F535}"},{group:8,hexcode:"1F7E3",label:"purple circle",order:4727,tags:["circle","purple"],unicode:"\u{1F7E3}"},{group:8,hexcode:"1F7E4",label:"brown circle",order:4728,tags:["brown","circle"],unicode:"\u{1F7E4}"},{group:8,hexcode:"26AB",label:"black circle",order:4729,tags:["circle","geometric"],unicode:"\u26AB\uFE0F"},{group:8,hexcode:"26AA",label:"white circle",order:4730,tags:["circle","geometric"],unicode:"\u26AA\uFE0F"},{group:8,hexcode:"1F7E5",label:"red square",order:4731,tags:["red","square"],unicode:"\u{1F7E5}"},{group:8,hexcode:"1F7E7",label:"orange square",order:4732,tags:["orange","square"],unicode:"\u{1F7E7}"},{group:8,hexcode:"1F7E8",label:"yellow square",order:4733,tags:["square","yellow"],unicode:"\u{1F7E8}"},{group:8,hexcode:"1F7E9",label:"green square",order:4734,tags:["green","square"],unicode:"\u{1F7E9}"},{group:8,hexcode:"1F7E6",label:"blue square",order:4735,tags:["blue","square"],unicode:"\u{1F7E6}"},{group:8,hexcode:"1F7EA",label:"purple square",order:4736,tags:["purple","square"],unicode:"\u{1F7EA}"},{group:8,hexcode:"1F7EB",label:"brown square",order:4737,tags:["brown","square"],unicode:"\u{1F7EB}"},{group:8,hexcode:"2B1B",label:"black large square",order:4738,tags:["geometric","square"],unicode:"\u2B1B\uFE0F"},{group:8,hexcode:"2B1C",label:"white large square",order:4739,tags:["geometric","square"],unicode:"\u2B1C\uFE0F"},{group:8,hexcode:"25FC",label:"black medium square",order:4741,tags:["geometric","square"],unicode:"\u25FC\uFE0F"},{group:8,hexcode:"25FB",label:"white medium square",order:4743,tags:["geometric","square"],unicode:"\u25FB\uFE0F"},{group:8,hexcode:"25FE",label:"black medium-small square",order:4744,tags:["geometric","square"],unicode:"\u25FE\uFE0F"},{group:8,hexcode:"25FD",label:"white medium-small square",order:4745,tags:["geometric","square"],unicode:"\u25FD\uFE0F"},{group:8,hexcode:"25AA",label:"black small square",order:4747,tags:["geometric","square"],unicode:"\u25AA\uFE0F"},{group:8,hexcode:"25AB",label:"white small square",order:4749,tags:["geometric","square"],unicode:"\u25AB\uFE0F"},{group:8,hexcode:"1F536",label:"large orange diamond",order:4750,tags:["diamond","geometric","orange"],unicode:"\u{1F536}"},{group:8,hexcode:"1F537",label:"large blue diamond",order:4751,tags:["blue","diamond","geometric"],unicode:"\u{1F537}"},{group:8,hexcode:"1F538",label:"small orange diamond",order:4752,tags:["diamond","geometric","orange"],unicode:"\u{1F538}"},{group:8,hexcode:"1F539",label:"small blue diamond",order:4753,tags:["blue","diamond","geometric"],unicode:"\u{1F539}"},{group:8,hexcode:"1F53A",label:"red triangle pointed up",order:4754,tags:["geometric","red"],unicode:"\u{1F53A}"},{group:8,hexcode:"1F53B",label:"red triangle pointed down",order:4755,tags:["down","geometric","red"],unicode:"\u{1F53B}"},{group:8,hexcode:"1F4A0",label:"diamond with a dot",order:4756,tags:["comic","diamond","geometric","inside"],unicode:"\u{1F4A0}"},{group:8,hexcode:"1F518",label:"radio button",order:4757,tags:["button","geometric","radio"],unicode:"\u{1F518}"},{group:8,hexcode:"1F533",label:"white square button",order:4758,tags:["button","geometric","outlined","square"],unicode:"\u{1F533}"},{group:8,hexcode:"1F532",label:"black square button",order:4759,tags:["button","geometric","square"],unicode:"\u{1F532}"},{group:9,hexcode:"1F3C1",label:"chequered flag",order:4760,tags:["checkered","chequered","racing"],unicode:"\u{1F3C1}"},{group:9,hexcode:"1F6A9",label:"triangular flag",order:4761,tags:["post"],unicode:"\u{1F6A9}"},{group:9,hexcode:"1F38C",label:"crossed flags",order:4762,tags:["celebration","cross","crossed","japanese"],unicode:"\u{1F38C}"},{group:9,hexcode:"1F3F4",label:"black flag",order:4763,tags:["waving"],unicode:"\u{1F3F4}"},{group:9,hexcode:"1F3F3",label:"white flag",order:4765,tags:["waving"],unicode:"\u{1F3F3}\uFE0F"},{group:9,hexcode:"1F3F3-FE0F-200D-1F308",label:"rainbow flag",order:4766,tags:["pride","rainbow"],unicode:"\u{1F3F3}\uFE0F\u200D\u{1F308}"},{group:9,hexcode:"1F3F3-FE0F-200D-26A7-FE0F",label:"transgender flag",order:4768,tags:["flag","light blue","pink","transgender","white"],unicode:"\u{1F3F3}\uFE0F\u200D\u26A7\uFE0F"},{group:9,hexcode:"1F3F4-200D-2620-FE0F",label:"pirate flag",order:4772,tags:["jolly roger","pirate","plunder","treasure"],unicode:"\u{1F3F4}\u200D\u2620\uFE0F"},{group:9,hexcode:"1F1E6-1F1E8",label:"flag: Ascension Island",order:4774,tags:["AC","flag","flag: ascension island"],unicode:"\u{1F1E6}\u{1F1E8}"},{group:9,hexcode:"1F1E6-1F1E9",label:"flag: Andorra",order:4775,tags:["AD","flag","flag: andorra"],unicode:"\u{1F1E6}\u{1F1E9}"},{group:9,hexcode:"1F1E6-1F1EA",label:"flag: United Arab Emirates",order:4776,tags:["AE","flag","flag: united arab emirates"],unicode:"\u{1F1E6}\u{1F1EA}"},{group:9,hexcode:"1F1E6-1F1EB",label:"flag: Afghanistan",order:4777,tags:["AF","flag","flag: afghanistan"],unicode:"\u{1F1E6}\u{1F1EB}"},{group:9,hexcode:"1F1E6-1F1EC",label:"flag: Antigua & Barbuda",order:4778,tags:["AG","flag","flag: antigua & barbuda"],unicode:"\u{1F1E6}\u{1F1EC}"},{group:9,hexcode:"1F1E6-1F1EE",label:"flag: Anguilla",order:4779,tags:["AI","flag","flag: anguilla"],unicode:"\u{1F1E6}\u{1F1EE}"},{group:9,hexcode:"1F1E6-1F1F1",label:"flag: Albania",order:4780,tags:["AL","flag","flag: albania"],unicode:"\u{1F1E6}\u{1F1F1}"},{group:9,hexcode:"1F1E6-1F1F2",label:"flag: Armenia",order:4781,tags:["AM","flag","flag: armenia"],unicode:"\u{1F1E6}\u{1F1F2}"},{group:9,hexcode:"1F1E6-1F1F4",label:"flag: Angola",order:4782,tags:["AO","flag","flag: angola"],unicode:"\u{1F1E6}\u{1F1F4}"},{group:9,hexcode:"1F1E6-1F1F6",label:"flag: Antarctica",order:4783,tags:["AQ","flag","flag: antarctica"],unicode:"\u{1F1E6}\u{1F1F6}"},{group:9,hexcode:"1F1E6-1F1F7",label:"flag: Argentina",order:4784,tags:["AR","flag","flag: argentina"],unicode:"\u{1F1E6}\u{1F1F7}"},{group:9,hexcode:"1F1E6-1F1F8",label:"flag: American Samoa",order:4785,tags:["AS","flag","flag: american samoa"],unicode:"\u{1F1E6}\u{1F1F8}"},{group:9,hexcode:"1F1E6-1F1F9",label:"flag: Austria",order:4786,tags:["AT","flag","flag: austria"],unicode:"\u{1F1E6}\u{1F1F9}"},{group:9,hexcode:"1F1E6-1F1FA",label:"flag: Australia",order:4787,tags:["AU","flag","flag: australia"],unicode:"\u{1F1E6}\u{1F1FA}"},{group:9,hexcode:"1F1E6-1F1FC",label:"flag: Aruba",order:4788,tags:["AW","flag","flag: aruba"],unicode:"\u{1F1E6}\u{1F1FC}"},{group:9,hexcode:"1F1E6-1F1FD",label:"flag: \xC5land Islands",order:4789,tags:["AX","flag","flag: \xE5land islands"],unicode:"\u{1F1E6}\u{1F1FD}"},{group:9,hexcode:"1F1E6-1F1FF",label:"flag: Azerbaijan",order:4790,tags:["AZ","flag","flag: azerbaijan"],unicode:"\u{1F1E6}\u{1F1FF}"},{group:9,hexcode:"1F1E7-1F1E6",label:"flag: Bosnia & Herzegovina",order:4791,tags:["BA","flag","flag: bosnia & herzegovina"],unicode:"\u{1F1E7}\u{1F1E6}"},{group:9,hexcode:"1F1E7-1F1E7",label:"flag: Barbados",order:4792,tags:["BB","flag","flag: barbados"],unicode:"\u{1F1E7}\u{1F1E7}"},{group:9,hexcode:"1F1E7-1F1E9",label:"flag: Bangladesh",order:4793,tags:["BD","flag","flag: bangladesh"],unicode:"\u{1F1E7}\u{1F1E9}"},{group:9,hexcode:"1F1E7-1F1EA",label:"flag: Belgium",order:4794,tags:["BE","flag","flag: belgium"],unicode:"\u{1F1E7}\u{1F1EA}"},{group:9,hexcode:"1F1E7-1F1EB",label:"flag: Burkina Faso",order:4795,tags:["BF","flag","flag: burkina faso"],unicode:"\u{1F1E7}\u{1F1EB}"},{group:9,hexcode:"1F1E7-1F1EC",label:"flag: Bulgaria",order:4796,tags:["BG","flag","flag: bulgaria"],unicode:"\u{1F1E7}\u{1F1EC}"},{group:9,hexcode:"1F1E7-1F1ED",label:"flag: Bahrain",order:4797,tags:["BH","flag","flag: bahrain"],unicode:"\u{1F1E7}\u{1F1ED}"},{group:9,hexcode:"1F1E7-1F1EE",label:"flag: Burundi",order:4798,tags:["BI","flag","flag: burundi"],unicode:"\u{1F1E7}\u{1F1EE}"},{group:9,hexcode:"1F1E7-1F1EF",label:"flag: Benin",order:4799,tags:["BJ","flag","flag: benin"],unicode:"\u{1F1E7}\u{1F1EF}"},{group:9,hexcode:"1F1E7-1F1F1",label:"flag: St. Barth\xE9lemy",order:4800,tags:["BL","flag","flag: st. barth\xE9lemy"],unicode:"\u{1F1E7}\u{1F1F1}"},{group:9,hexcode:"1F1E7-1F1F2",label:"flag: Bermuda",order:4801,tags:["BM","flag","flag: bermuda"],unicode:"\u{1F1E7}\u{1F1F2}"},{group:9,hexcode:"1F1E7-1F1F3",label:"flag: Brunei",order:4802,tags:["BN","flag","flag: brunei"],unicode:"\u{1F1E7}\u{1F1F3}"},{group:9,hexcode:"1F1E7-1F1F4",label:"flag: Bolivia",order:4803,tags:["BO","flag","flag: bolivia"],unicode:"\u{1F1E7}\u{1F1F4}"},{group:9,hexcode:"1F1E7-1F1F6",label:"flag: Caribbean Netherlands",order:4804,tags:["BQ","flag","flag: caribbean netherlands"],unicode:"\u{1F1E7}\u{1F1F6}"},{group:9,hexcode:"1F1E7-1F1F7",label:"flag: Brazil",order:4805,tags:["BR","flag","flag: brazil"],unicode:"\u{1F1E7}\u{1F1F7}"},{group:9,hexcode:"1F1E7-1F1F8",label:"flag: Bahamas",order:4806,tags:["BS","flag","flag: bahamas"],unicode:"\u{1F1E7}\u{1F1F8}"},{group:9,hexcode:"1F1E7-1F1F9",label:"flag: Bhutan",order:4807,tags:["BT","flag","flag: bhutan"],unicode:"\u{1F1E7}\u{1F1F9}"},{group:9,hexcode:"1F1E7-1F1FB",label:"flag: Bouvet Island",order:4808,tags:["BV","flag","flag: bouvet island"],unicode:"\u{1F1E7}\u{1F1FB}"},{group:9,hexcode:"1F1E7-1F1FC",label:"flag: Botswana",order:4809,tags:["BW","flag","flag: botswana"],unicode:"\u{1F1E7}\u{1F1FC}"},{group:9,hexcode:"1F1E7-1F1FE",label:"flag: Belarus",order:4810,tags:["BY","flag","flag: belarus"],unicode:"\u{1F1E7}\u{1F1FE}"},{group:9,hexcode:"1F1E7-1F1FF",label:"flag: Belize",order:4811,tags:["BZ","flag","flag: belize"],unicode:"\u{1F1E7}\u{1F1FF}"},{group:9,hexcode:"1F1E8-1F1E6",label:"flag: Canada",order:4812,tags:["CA","flag","flag: canada"],unicode:"\u{1F1E8}\u{1F1E6}"},{group:9,hexcode:"1F1E8-1F1E8",label:"flag: Cocos (Keeling) Islands",order:4813,tags:["CC","flag","flag: cocos (keeling) islands"],unicode:"\u{1F1E8}\u{1F1E8}"},{group:9,hexcode:"1F1E8-1F1E9",label:"flag: Congo - Kinshasa",order:4814,tags:["CD","flag","flag: congo - kinshasa"],unicode:"\u{1F1E8}\u{1F1E9}"},{group:9,hexcode:"1F1E8-1F1EB",label:"flag: Central African Republic",order:4815,tags:["CF","flag","flag: central african republic"],unicode:"\u{1F1E8}\u{1F1EB}"},{group:9,hexcode:"1F1E8-1F1EC",label:"flag: Congo - Brazzaville",order:4816,tags:["CG","flag","flag: congo - brazzaville"],unicode:"\u{1F1E8}\u{1F1EC}"},{group:9,hexcode:"1F1E8-1F1ED",label:"flag: Switzerland",order:4817,tags:["CH","flag","flag: switzerland"],unicode:"\u{1F1E8}\u{1F1ED}"},{group:9,hexcode:"1F1E8-1F1EE",label:"flag: C\xF4te d\u2019Ivoire",order:4818,tags:["CI","flag","flag: c\xF4te d\u2019ivoire"],unicode:"\u{1F1E8}\u{1F1EE}"},{group:9,hexcode:"1F1E8-1F1F0",label:"flag: Cook Islands",order:4819,tags:["CK","flag","flag: cook islands"],unicode:"\u{1F1E8}\u{1F1F0}"},{group:9,hexcode:"1F1E8-1F1F1",label:"flag: Chile",order:4820,tags:["CL","flag","flag: chile"],unicode:"\u{1F1E8}\u{1F1F1}"},{group:9,hexcode:"1F1E8-1F1F2",label:"flag: Cameroon",order:4821,tags:["CM","flag","flag: cameroon"],unicode:"\u{1F1E8}\u{1F1F2}"},{group:9,hexcode:"1F1E8-1F1F3",label:"flag: China",order:4822,tags:["CN","flag","flag: china"],unicode:"\u{1F1E8}\u{1F1F3}"},{group:9,hexcode:"1F1E8-1F1F4",label:"flag: Colombia",order:4823,tags:["CO","flag","flag: colombia"],unicode:"\u{1F1E8}\u{1F1F4}"},{group:9,hexcode:"1F1E8-1F1F5",label:"flag: Clipperton Island",order:4824,tags:["CP","flag","flag: clipperton island"],unicode:"\u{1F1E8}\u{1F1F5}"},{group:9,hexcode:"1F1E8-1F1F7",label:"flag: Costa Rica",order:4825,tags:["CR","flag","flag: costa rica"],unicode:"\u{1F1E8}\u{1F1F7}"},{group:9,hexcode:"1F1E8-1F1FA",label:"flag: Cuba",order:4826,tags:["CU","flag","flag: cuba"],unicode:"\u{1F1E8}\u{1F1FA}"},{group:9,hexcode:"1F1E8-1F1FB",label:"flag: Cape Verde",order:4827,tags:["CV","flag","flag: cape verde"],unicode:"\u{1F1E8}\u{1F1FB}"},{group:9,hexcode:"1F1E8-1F1FC",label:"flag: Cura\xE7ao",order:4828,tags:["CW","flag","flag: cura\xE7ao"],unicode:"\u{1F1E8}\u{1F1FC}"},{group:9,hexcode:"1F1E8-1F1FD",label:"flag: Christmas Island",order:4829,tags:["CX","flag","flag: christmas island"],unicode:"\u{1F1E8}\u{1F1FD}"},{group:9,hexcode:"1F1E8-1F1FE",label:"flag: Cyprus",order:4830,tags:["CY","flag","flag: cyprus"],unicode:"\u{1F1E8}\u{1F1FE}"},{group:9,hexcode:"1F1E8-1F1FF",label:"flag: Czechia",order:4831,tags:["CZ","flag","flag: czechia"],unicode:"\u{1F1E8}\u{1F1FF}"},{group:9,hexcode:"1F1E9-1F1EA",label:"flag: Germany",order:4832,tags:["DE","flag","flag: germany"],unicode:"\u{1F1E9}\u{1F1EA}"},{group:9,hexcode:"1F1E9-1F1EC",label:"flag: Diego Garcia",order:4833,tags:["DG","flag","flag: diego garcia"],unicode:"\u{1F1E9}\u{1F1EC}"},{group:9,hexcode:"1F1E9-1F1EF",label:"flag: Djibouti",order:4834,tags:["DJ","flag","flag: djibouti"],unicode:"\u{1F1E9}\u{1F1EF}"},{group:9,hexcode:"1F1E9-1F1F0",label:"flag: Denmark",order:4835,tags:["DK","flag","flag: denmark"],unicode:"\u{1F1E9}\u{1F1F0}"},{group:9,hexcode:"1F1E9-1F1F2",label:"flag: Dominica",order:4836,tags:["DM","flag","flag: dominica"],unicode:"\u{1F1E9}\u{1F1F2}"},{group:9,hexcode:"1F1E9-1F1F4",label:"flag: Dominican Republic",order:4837,tags:["DO","flag","flag: dominican republic"],unicode:"\u{1F1E9}\u{1F1F4}"},{group:9,hexcode:"1F1E9-1F1FF",label:"flag: Algeria",order:4838,tags:["DZ","flag","flag: algeria"],unicode:"\u{1F1E9}\u{1F1FF}"},{group:9,hexcode:"1F1EA-1F1E6",label:"flag: Ceuta & Melilla",order:4839,tags:["EA","flag","flag: ceuta & melilla"],unicode:"\u{1F1EA}\u{1F1E6}"},{group:9,hexcode:"1F1EA-1F1E8",label:"flag: Ecuador",order:4840,tags:["EC","flag","flag: ecuador"],unicode:"\u{1F1EA}\u{1F1E8}"},{group:9,hexcode:"1F1EA-1F1EA",label:"flag: Estonia",order:4841,tags:["EE","flag","flag: estonia"],unicode:"\u{1F1EA}\u{1F1EA}"},{group:9,hexcode:"1F1EA-1F1EC",label:"flag: Egypt",order:4842,tags:["EG","flag","flag: egypt"],unicode:"\u{1F1EA}\u{1F1EC}"},{group:9,hexcode:"1F1EA-1F1ED",label:"flag: Western Sahara",order:4843,tags:["EH","flag","flag: western sahara"],unicode:"\u{1F1EA}\u{1F1ED}"},{group:9,hexcode:"1F1EA-1F1F7",label:"flag: Eritrea",order:4844,tags:["ER","flag","flag: eritrea"],unicode:"\u{1F1EA}\u{1F1F7}"},{group:9,hexcode:"1F1EA-1F1F8",label:"flag: Spain",order:4845,tags:["ES","flag","flag: spain"],unicode:"\u{1F1EA}\u{1F1F8}"},{group:9,hexcode:"1F1EA-1F1F9",label:"flag: Ethiopia",order:4846,tags:["ET","flag","flag: ethiopia"],unicode:"\u{1F1EA}\u{1F1F9}"},{group:9,hexcode:"1F1EA-1F1FA",label:"flag: European Union",order:4847,tags:["EU","flag","flag: european union"],unicode:"\u{1F1EA}\u{1F1FA}"},{group:9,hexcode:"1F1EB-1F1EE",label:"flag: Finland",order:4848,tags:["FI","flag","flag: finland"],unicode:"\u{1F1EB}\u{1F1EE}"},{group:9,hexcode:"1F1EB-1F1EF",label:"flag: Fiji",order:4849,tags:["FJ","flag","flag: fiji"],unicode:"\u{1F1EB}\u{1F1EF}"},{group:9,hexcode:"1F1EB-1F1F0",label:"flag: Falkland Islands",order:4850,tags:["FK","flag","flag: falkland islands"],unicode:"\u{1F1EB}\u{1F1F0}"},{group:9,hexcode:"1F1EB-1F1F2",label:"flag: Micronesia",order:4851,tags:["FM","flag","flag: micronesia"],unicode:"\u{1F1EB}\u{1F1F2}"},{group:9,hexcode:"1F1EB-1F1F4",label:"flag: Faroe Islands",order:4852,tags:["FO","flag","flag: faroe islands"],unicode:"\u{1F1EB}\u{1F1F4}"},{group:9,hexcode:"1F1EB-1F1F7",label:"flag: France",order:4853,tags:["FR","flag","flag: france"],unicode:"\u{1F1EB}\u{1F1F7}"},{group:9,hexcode:"1F1EC-1F1E6",label:"flag: Gabon",order:4854,tags:["GA","flag","flag: gabon"],unicode:"\u{1F1EC}\u{1F1E6}"},{group:9,hexcode:"1F1EC-1F1E7",label:"flag: United Kingdom",order:4855,tags:["GB","flag","flag: united kingdom"],unicode:"\u{1F1EC}\u{1F1E7}"},{group:9,hexcode:"1F1EC-1F1E9",label:"flag: Grenada",order:4856,tags:["GD","flag","flag: grenada"],unicode:"\u{1F1EC}\u{1F1E9}"},{group:9,hexcode:"1F1EC-1F1EA",label:"flag: Georgia",order:4857,tags:["GE","flag","flag: georgia"],unicode:"\u{1F1EC}\u{1F1EA}"},{group:9,hexcode:"1F1EC-1F1EB",label:"flag: French Guiana",order:4858,tags:["GF","flag","flag: french guiana"],unicode:"\u{1F1EC}\u{1F1EB}"},{group:9,hexcode:"1F1EC-1F1EC",label:"flag: Guernsey",order:4859,tags:["GG","flag","flag: guernsey"],unicode:"\u{1F1EC}\u{1F1EC}"},{group:9,hexcode:"1F1EC-1F1ED",label:"flag: Ghana",order:4860,tags:["GH","flag","flag: ghana"],unicode:"\u{1F1EC}\u{1F1ED}"},{group:9,hexcode:"1F1EC-1F1EE",label:"flag: Gibraltar",order:4861,tags:["GI","flag","flag: gibraltar"],unicode:"\u{1F1EC}\u{1F1EE}"},{group:9,hexcode:"1F1EC-1F1F1",label:"flag: Greenland",order:4862,tags:["GL","flag","flag: greenland"],unicode:"\u{1F1EC}\u{1F1F1}"},{group:9,hexcode:"1F1EC-1F1F2",label:"flag: Gambia",order:4863,tags:["GM","flag","flag: gambia"],unicode:"\u{1F1EC}\u{1F1F2}"},{group:9,hexcode:"1F1EC-1F1F3",label:"flag: Guinea",order:4864,tags:["GN","flag","flag: guinea"],unicode:"\u{1F1EC}\u{1F1F3}"},{group:9,hexcode:"1F1EC-1F1F5",label:"flag: Guadeloupe",order:4865,tags:["GP","flag","flag: guadeloupe"],unicode:"\u{1F1EC}\u{1F1F5}"},{group:9,hexcode:"1F1EC-1F1F6",label:"flag: Equatorial Guinea",order:4866,tags:["GQ","flag","flag: equatorial guinea"],unicode:"\u{1F1EC}\u{1F1F6}"},{group:9,hexcode:"1F1EC-1F1F7",label:"flag: Greece",order:4867,tags:["GR","flag","flag: greece"],unicode:"\u{1F1EC}\u{1F1F7}"},{group:9,hexcode:"1F1EC-1F1F8",label:"flag: South Georgia & South Sandwich Islands",order:4868,tags:["GS","flag","flag: south georgia & south sandwich islands"],unicode:"\u{1F1EC}\u{1F1F8}"},{group:9,hexcode:"1F1EC-1F1F9",label:"flag: Guatemala",order:4869,tags:["GT","flag","flag: guatemala"],unicode:"\u{1F1EC}\u{1F1F9}"},{group:9,hexcode:"1F1EC-1F1FA",label:"flag: Guam",order:4870,tags:["GU","flag","flag: guam"],unicode:"\u{1F1EC}\u{1F1FA}"},{group:9,hexcode:"1F1EC-1F1FC",label:"flag: Guinea-Bissau",order:4871,tags:["GW","flag","flag: guinea-bissau"],unicode:"\u{1F1EC}\u{1F1FC}"},{group:9,hexcode:"1F1EC-1F1FE",label:"flag: Guyana",order:4872,tags:["GY","flag","flag: guyana"],unicode:"\u{1F1EC}\u{1F1FE}"},{group:9,hexcode:"1F1ED-1F1F0",label:"flag: Hong Kong SAR China",order:4873,tags:["HK","flag","flag: hong kong sar china"],unicode:"\u{1F1ED}\u{1F1F0}"},{group:9,hexcode:"1F1ED-1F1F2",label:"flag: Heard & McDonald Islands",order:4874,tags:["HM","flag","flag: heard & mcdonald islands"],unicode:"\u{1F1ED}\u{1F1F2}"},{group:9,hexcode:"1F1ED-1F1F3",label:"flag: Honduras",order:4875,tags:["HN","flag","flag: honduras"],unicode:"\u{1F1ED}\u{1F1F3}"},{group:9,hexcode:"1F1ED-1F1F7",label:"flag: Croatia",order:4876,tags:["HR","flag","flag: croatia"],unicode:"\u{1F1ED}\u{1F1F7}"},{group:9,hexcode:"1F1ED-1F1F9",label:"flag: Haiti",order:4877,tags:["HT","flag","flag: haiti"],unicode:"\u{1F1ED}\u{1F1F9}"},{group:9,hexcode:"1F1ED-1F1FA",label:"flag: Hungary",order:4878,tags:["HU","flag","flag: hungary"],unicode:"\u{1F1ED}\u{1F1FA}"},{group:9,hexcode:"1F1EE-1F1E8",label:"flag: Canary Islands",order:4879,tags:["IC","flag","flag: canary islands"],unicode:"\u{1F1EE}\u{1F1E8}"},{group:9,hexcode:"1F1EE-1F1E9",label:"flag: Indonesia",order:4880,tags:["ID","flag","flag: indonesia"],unicode:"\u{1F1EE}\u{1F1E9}"},{group:9,hexcode:"1F1EE-1F1EA",label:"flag: Ireland",order:4881,tags:["IE","flag","flag: ireland"],unicode:"\u{1F1EE}\u{1F1EA}"},{group:9,hexcode:"1F1EE-1F1F1",label:"flag: Israel",order:4882,tags:["IL","flag","flag: israel"],unicode:"\u{1F1EE}\u{1F1F1}"},{group:9,hexcode:"1F1EE-1F1F2",label:"flag: Isle of Man",order:4883,tags:["IM","flag","flag: isle of man"],unicode:"\u{1F1EE}\u{1F1F2}"},{group:9,hexcode:"1F1EE-1F1F3",label:"flag: India",order:4884,tags:["IN","flag","flag: india"],unicode:"\u{1F1EE}\u{1F1F3}"},{group:9,hexcode:"1F1EE-1F1F4",label:"flag: British Indian Ocean Territory",order:4885,tags:["IO","flag","flag: british indian ocean territory"],unicode:"\u{1F1EE}\u{1F1F4}"},{group:9,hexcode:"1F1EE-1F1F6",label:"flag: Iraq",order:4886,tags:["IQ","flag","flag: iraq"],unicode:"\u{1F1EE}\u{1F1F6}"},{group:9,hexcode:"1F1EE-1F1F7",label:"flag: Iran",order:4887,tags:["IR","flag","flag: iran"],unicode:"\u{1F1EE}\u{1F1F7}"},{group:9,hexcode:"1F1EE-1F1F8",label:"flag: Iceland",order:4888,tags:["IS","flag","flag: iceland"],unicode:"\u{1F1EE}\u{1F1F8}"},{group:9,hexcode:"1F1EE-1F1F9",label:"flag: Italy",order:4889,tags:["IT","flag","flag: italy"],unicode:"\u{1F1EE}\u{1F1F9}"},{group:9,hexcode:"1F1EF-1F1EA",label:"flag: Jersey",order:4890,tags:["JE","flag","flag: jersey"],unicode:"\u{1F1EF}\u{1F1EA}"},{group:9,hexcode:"1F1EF-1F1F2",label:"flag: Jamaica",order:4891,tags:["JM","flag","flag: jamaica"],unicode:"\u{1F1EF}\u{1F1F2}"},{group:9,hexcode:"1F1EF-1F1F4",label:"flag: Jordan",order:4892,tags:["JO","flag","flag: jordan"],unicode:"\u{1F1EF}\u{1F1F4}"},{group:9,hexcode:"1F1EF-1F1F5",label:"flag: Japan",order:4893,tags:["JP","flag","flag: japan"],unicode:"\u{1F1EF}\u{1F1F5}"},{group:9,hexcode:"1F1F0-1F1EA",label:"flag: Kenya",order:4894,tags:["KE","flag","flag: kenya"],unicode:"\u{1F1F0}\u{1F1EA}"},{group:9,hexcode:"1F1F0-1F1EC",label:"flag: Kyrgyzstan",order:4895,tags:["KG","flag","flag: kyrgyzstan"],unicode:"\u{1F1F0}\u{1F1EC}"},{group:9,hexcode:"1F1F0-1F1ED",label:"flag: Cambodia",order:4896,tags:["KH","flag","flag: cambodia"],unicode:"\u{1F1F0}\u{1F1ED}"},{group:9,hexcode:"1F1F0-1F1EE",label:"flag: Kiribati",order:4897,tags:["KI","flag","flag: kiribati"],unicode:"\u{1F1F0}\u{1F1EE}"},{group:9,hexcode:"1F1F0-1F1F2",label:"flag: Comoros",order:4898,tags:["KM","flag","flag: comoros"],unicode:"\u{1F1F0}\u{1F1F2}"},{group:9,hexcode:"1F1F0-1F1F3",label:"flag: St. Kitts & Nevis",order:4899,tags:["KN","flag","flag: st. kitts & nevis"],unicode:"\u{1F1F0}\u{1F1F3}"},{group:9,hexcode:"1F1F0-1F1F5",label:"flag: North Korea",order:4900,tags:["KP","flag","flag: north korea"],unicode:"\u{1F1F0}\u{1F1F5}"},{group:9,hexcode:"1F1F0-1F1F7",label:"flag: South Korea",order:4901,tags:["KR","flag","flag: south korea"],unicode:"\u{1F1F0}\u{1F1F7}"},{group:9,hexcode:"1F1F0-1F1FC",label:"flag: Kuwait",order:4902,tags:["KW","flag","flag: kuwait"],unicode:"\u{1F1F0}\u{1F1FC}"},{group:9,hexcode:"1F1F0-1F1FE",label:"flag: Cayman Islands",order:4903,tags:["KY","flag","flag: cayman islands"],unicode:"\u{1F1F0}\u{1F1FE}"},{group:9,hexcode:"1F1F0-1F1FF",label:"flag: Kazakhstan",order:4904,tags:["KZ","flag","flag: kazakhstan"],unicode:"\u{1F1F0}\u{1F1FF}"},{group:9,hexcode:"1F1F1-1F1E6",label:"flag: Laos",order:4905,tags:["LA","flag","flag: laos"],unicode:"\u{1F1F1}\u{1F1E6}"},{group:9,hexcode:"1F1F1-1F1E7",label:"flag: Lebanon",order:4906,tags:["LB","flag","flag: lebanon"],unicode:"\u{1F1F1}\u{1F1E7}"},{group:9,hexcode:"1F1F1-1F1E8",label:"flag: St. Lucia",order:4907,tags:["LC","flag","flag: st. lucia"],unicode:"\u{1F1F1}\u{1F1E8}"},{group:9,hexcode:"1F1F1-1F1EE",label:"flag: Liechtenstein",order:4908,tags:["LI","flag","flag: liechtenstein"],unicode:"\u{1F1F1}\u{1F1EE}"},{group:9,hexcode:"1F1F1-1F1F0",label:"flag: Sri Lanka",order:4909,tags:["LK","flag","flag: sri lanka"],unicode:"\u{1F1F1}\u{1F1F0}"},{group:9,hexcode:"1F1F1-1F1F7",label:"flag: Liberia",order:4910,tags:["LR","flag","flag: liberia"],unicode:"\u{1F1F1}\u{1F1F7}"},{group:9,hexcode:"1F1F1-1F1F8",label:"flag: Lesotho",order:4911,tags:["LS","flag","flag: lesotho"],unicode:"\u{1F1F1}\u{1F1F8}"},{group:9,hexcode:"1F1F1-1F1F9",label:"flag: Lithuania",order:4912,tags:["LT","flag","flag: lithuania"],unicode:"\u{1F1F1}\u{1F1F9}"},{group:9,hexcode:"1F1F1-1F1FA",label:"flag: Luxembourg",order:4913,tags:["LU","flag","flag: luxembourg"],unicode:"\u{1F1F1}\u{1F1FA}"},{group:9,hexcode:"1F1F1-1F1FB",label:"flag: Latvia",order:4914,tags:["LV","flag","flag: latvia"],unicode:"\u{1F1F1}\u{1F1FB}"},{group:9,hexcode:"1F1F1-1F1FE",label:"flag: Libya",order:4915,tags:["LY","flag","flag: libya"],unicode:"\u{1F1F1}\u{1F1FE}"},{group:9,hexcode:"1F1F2-1F1E6",label:"flag: Morocco",order:4916,tags:["MA","flag","flag: morocco"],unicode:"\u{1F1F2}\u{1F1E6}"},{group:9,hexcode:"1F1F2-1F1E8",label:"flag: Monaco",order:4917,tags:["MC","flag","flag: monaco"],unicode:"\u{1F1F2}\u{1F1E8}"},{group:9,hexcode:"1F1F2-1F1E9",label:"flag: Moldova",order:4918,tags:["MD","flag","flag: moldova"],unicode:"\u{1F1F2}\u{1F1E9}"},{group:9,hexcode:"1F1F2-1F1EA",label:"flag: Montenegro",order:4919,tags:["ME","flag","flag: montenegro"],unicode:"\u{1F1F2}\u{1F1EA}"},{group:9,hexcode:"1F1F2-1F1EB",label:"flag: St. Martin",order:4920,tags:["MF","flag","flag: st. martin"],unicode:"\u{1F1F2}\u{1F1EB}"},{group:9,hexcode:"1F1F2-1F1EC",label:"flag: Madagascar",order:4921,tags:["MG","flag","flag: madagascar"],unicode:"\u{1F1F2}\u{1F1EC}"},{group:9,hexcode:"1F1F2-1F1ED",label:"flag: Marshall Islands",order:4922,tags:["MH","flag","flag: marshall islands"],unicode:"\u{1F1F2}\u{1F1ED}"},{group:9,hexcode:"1F1F2-1F1F0",label:"flag: North Macedonia",order:4923,tags:["MK","flag","flag: north macedonia"],unicode:"\u{1F1F2}\u{1F1F0}"},{group:9,hexcode:"1F1F2-1F1F1",label:"flag: Mali",order:4924,tags:["ML","flag","flag: mali"],unicode:"\u{1F1F2}\u{1F1F1}"},{group:9,hexcode:"1F1F2-1F1F2",label:"flag: Myanmar (Burma)",order:4925,tags:["MM","flag","flag: myanmar (burma)"],unicode:"\u{1F1F2}\u{1F1F2}"},{group:9,hexcode:"1F1F2-1F1F3",label:"flag: Mongolia",order:4926,tags:["MN","flag","flag: mongolia"],unicode:"\u{1F1F2}\u{1F1F3}"},{group:9,hexcode:"1F1F2-1F1F4",label:"flag: Macao SAR China",order:4927,tags:["MO","flag","flag: macao sar china"],unicode:"\u{1F1F2}\u{1F1F4}"},{group:9,hexcode:"1F1F2-1F1F5",label:"flag: Northern Mariana Islands",order:4928,tags:["MP","flag","flag: northern mariana islands"],unicode:"\u{1F1F2}\u{1F1F5}"},{group:9,hexcode:"1F1F2-1F1F6",label:"flag: Martinique",order:4929,tags:["MQ","flag","flag: martinique"],unicode:"\u{1F1F2}\u{1F1F6}"},{group:9,hexcode:"1F1F2-1F1F7",label:"flag: Mauritania",order:4930,tags:["MR","flag","flag: mauritania"],unicode:"\u{1F1F2}\u{1F1F7}"},{group:9,hexcode:"1F1F2-1F1F8",label:"flag: Montserrat",order:4931,tags:["MS","flag","flag: montserrat"],unicode:"\u{1F1F2}\u{1F1F8}"},{group:9,hexcode:"1F1F2-1F1F9",label:"flag: Malta",order:4932,tags:["MT","flag","flag: malta"],unicode:"\u{1F1F2}\u{1F1F9}"},{group:9,hexcode:"1F1F2-1F1FA",label:"flag: Mauritius",order:4933,tags:["MU","flag","flag: mauritius"],unicode:"\u{1F1F2}\u{1F1FA}"},{group:9,hexcode:"1F1F2-1F1FB",label:"flag: Maldives",order:4934,tags:["MV","flag","flag: maldives"],unicode:"\u{1F1F2}\u{1F1FB}"},{group:9,hexcode:"1F1F2-1F1FC",label:"flag: Malawi",order:4935,tags:["MW","flag","flag: malawi"],unicode:"\u{1F1F2}\u{1F1FC}"},{group:9,hexcode:"1F1F2-1F1FD",label:"flag: Mexico",order:4936,tags:["MX","flag","flag: mexico"],unicode:"\u{1F1F2}\u{1F1FD}"},{group:9,hexcode:"1F1F2-1F1FE",label:"flag: Malaysia",order:4937,tags:["MY","flag","flag: malaysia"],unicode:"\u{1F1F2}\u{1F1FE}"},{group:9,hexcode:"1F1F2-1F1FF",label:"flag: Mozambique",order:4938,tags:["MZ","flag","flag: mozambique"],unicode:"\u{1F1F2}\u{1F1FF}"},{group:9,hexcode:"1F1F3-1F1E6",label:"flag: Namibia",order:4939,tags:["NA","flag","flag: namibia"],unicode:"\u{1F1F3}\u{1F1E6}"},{group:9,hexcode:"1F1F3-1F1E8",label:"flag: New Caledonia",order:4940,tags:["NC","flag","flag: new caledonia"],unicode:"\u{1F1F3}\u{1F1E8}"},{group:9,hexcode:"1F1F3-1F1EA",label:"flag: Niger",order:4941,tags:["NE","flag","flag: niger"],unicode:"\u{1F1F3}\u{1F1EA}"},{group:9,hexcode:"1F1F3-1F1EB",label:"flag: Norfolk Island",order:4942,tags:["NF","flag","flag: norfolk island"],unicode:"\u{1F1F3}\u{1F1EB}"},{group:9,hexcode:"1F1F3-1F1EC",label:"flag: Nigeria",order:4943,tags:["NG","flag","flag: nigeria"],unicode:"\u{1F1F3}\u{1F1EC}"},{group:9,hexcode:"1F1F3-1F1EE",label:"flag: Nicaragua",order:4944,tags:["NI","flag","flag: nicaragua"],unicode:"\u{1F1F3}\u{1F1EE}"},{group:9,hexcode:"1F1F3-1F1F1",label:"flag: Netherlands",order:4945,tags:["NL","flag","flag: netherlands"],unicode:"\u{1F1F3}\u{1F1F1}"},{group:9,hexcode:"1F1F3-1F1F4",label:"flag: Norway",order:4946,tags:["NO","flag","flag: norway"],unicode:"\u{1F1F3}\u{1F1F4}"},{group:9,hexcode:"1F1F3-1F1F5",label:"flag: Nepal",order:4947,tags:["NP","flag","flag: nepal"],unicode:"\u{1F1F3}\u{1F1F5}"},{group:9,hexcode:"1F1F3-1F1F7",label:"flag: Nauru",order:4948,tags:["NR","flag","flag: nauru"],unicode:"\u{1F1F3}\u{1F1F7}"},{group:9,hexcode:"1F1F3-1F1FA",label:"flag: Niue",order:4949,tags:["NU","flag","flag: niue"],unicode:"\u{1F1F3}\u{1F1FA}"},{group:9,hexcode:"1F1F3-1F1FF",label:"flag: New Zealand",order:4950,tags:["NZ","flag","flag: new zealand"],unicode:"\u{1F1F3}\u{1F1FF}"},{group:9,hexcode:"1F1F4-1F1F2",label:"flag: Oman",order:4951,tags:["OM","flag","flag: oman"],unicode:"\u{1F1F4}\u{1F1F2}"},{group:9,hexcode:"1F1F5-1F1E6",label:"flag: Panama",order:4952,tags:["PA","flag","flag: panama"],unicode:"\u{1F1F5}\u{1F1E6}"},{group:9,hexcode:"1F1F5-1F1EA",label:"flag: Peru",order:4953,tags:["PE","flag","flag: peru"],unicode:"\u{1F1F5}\u{1F1EA}"},{group:9,hexcode:"1F1F5-1F1EB",label:"flag: French Polynesia",order:4954,tags:["PF","flag","flag: french polynesia"],unicode:"\u{1F1F5}\u{1F1EB}"},{group:9,hexcode:"1F1F5-1F1EC",label:"flag: Papua New Guinea",order:4955,tags:["PG","flag","flag: papua new guinea"],unicode:"\u{1F1F5}\u{1F1EC}"},{group:9,hexcode:"1F1F5-1F1ED",label:"flag: Philippines",order:4956,tags:["PH","flag","flag: philippines"],unicode:"\u{1F1F5}\u{1F1ED}"},{group:9,hexcode:"1F1F5-1F1F0",label:"flag: Pakistan",order:4957,tags:["PK","flag","flag: pakistan"],unicode:"\u{1F1F5}\u{1F1F0}"},{group:9,hexcode:"1F1F5-1F1F1",label:"flag: Poland",order:4958,tags:["PL","flag","flag: poland"],unicode:"\u{1F1F5}\u{1F1F1}"},{group:9,hexcode:"1F1F5-1F1F2",label:"flag: St. Pierre & Miquelon",order:4959,tags:["PM","flag","flag: st. pierre & miquelon"],unicode:"\u{1F1F5}\u{1F1F2}"},{group:9,hexcode:"1F1F5-1F1F3",label:"flag: Pitcairn Islands",order:4960,tags:["PN","flag","flag: pitcairn islands"],unicode:"\u{1F1F5}\u{1F1F3}"},{group:9,hexcode:"1F1F5-1F1F7",label:"flag: Puerto Rico",order:4961,tags:["PR","flag","flag: puerto rico"],unicode:"\u{1F1F5}\u{1F1F7}"},{group:9,hexcode:"1F1F5-1F1F8",label:"flag: Palestinian Territories",order:4962,tags:["PS","flag","flag: palestinian territories"],unicode:"\u{1F1F5}\u{1F1F8}"},{group:9,hexcode:"1F1F5-1F1F9",label:"flag: Portugal",order:4963,tags:["PT","flag","flag: portugal"],unicode:"\u{1F1F5}\u{1F1F9}"},{group:9,hexcode:"1F1F5-1F1FC",label:"flag: Palau",order:4964,tags:["PW","flag","flag: palau"],unicode:"\u{1F1F5}\u{1F1FC}"},{group:9,hexcode:"1F1F5-1F1FE",label:"flag: Paraguay",order:4965,tags:["PY","flag","flag: paraguay"],unicode:"\u{1F1F5}\u{1F1FE}"},{group:9,hexcode:"1F1F6-1F1E6",label:"flag: Qatar",order:4966,tags:["QA","flag","flag: qatar"],unicode:"\u{1F1F6}\u{1F1E6}"},{group:9,hexcode:"1F1F7-1F1EA",label:"flag: R\xE9union",order:4967,tags:["RE","flag","flag: r\xE9union"],unicode:"\u{1F1F7}\u{1F1EA}"},{group:9,hexcode:"1F1F7-1F1F4",label:"flag: Romania",order:4968,tags:["RO","flag","flag: romania"],unicode:"\u{1F1F7}\u{1F1F4}"},{group:9,hexcode:"1F1F7-1F1F8",label:"flag: Serbia",order:4969,tags:["RS","flag","flag: serbia"],unicode:"\u{1F1F7}\u{1F1F8}"},{group:9,hexcode:"1F1F7-1F1FA",label:"flag: Russia",order:4970,tags:["RU","flag","flag: russia"],unicode:"\u{1F1F7}\u{1F1FA}"},{group:9,hexcode:"1F1F7-1F1FC",label:"flag: Rwanda",order:4971,tags:["RW","flag","flag: rwanda"],unicode:"\u{1F1F7}\u{1F1FC}"},{group:9,hexcode:"1F1F8-1F1E6",label:"flag: Saudi Arabia",order:4972,tags:["SA","flag","flag: saudi arabia"],unicode:"\u{1F1F8}\u{1F1E6}"},{group:9,hexcode:"1F1F8-1F1E7",label:"flag: Solomon Islands",order:4973,tags:["SB","flag","flag: solomon islands"],unicode:"\u{1F1F8}\u{1F1E7}"},{group:9,hexcode:"1F1F8-1F1E8",label:"flag: Seychelles",order:4974,tags:["SC","flag","flag: seychelles"],unicode:"\u{1F1F8}\u{1F1E8}"},{group:9,hexcode:"1F1F8-1F1E9",label:"flag: Sudan",order:4975,tags:["SD","flag","flag: sudan"],unicode:"\u{1F1F8}\u{1F1E9}"},{group:9,hexcode:"1F1F8-1F1EA",label:"flag: Sweden",order:4976,tags:["SE","flag","flag: sweden"],unicode:"\u{1F1F8}\u{1F1EA}"},{group:9,hexcode:"1F1F8-1F1EC",label:"flag: Singapore",order:4977,tags:["SG","flag","flag: singapore"],unicode:"\u{1F1F8}\u{1F1EC}"},{group:9,hexcode:"1F1F8-1F1ED",label:"flag: St. Helena",order:4978,tags:["SH","flag","flag: st. helena"],unicode:"\u{1F1F8}\u{1F1ED}"},{group:9,hexcode:"1F1F8-1F1EE",label:"flag: Slovenia",order:4979,tags:["SI","flag","flag: slovenia"],unicode:"\u{1F1F8}\u{1F1EE}"},{group:9,hexcode:"1F1F8-1F1EF",label:"flag: Svalbard & Jan Mayen",order:4980,tags:["SJ","flag","flag: svalbard & jan mayen"],unicode:"\u{1F1F8}\u{1F1EF}"},{group:9,hexcode:"1F1F8-1F1F0",label:"flag: Slovakia",order:4981,tags:["SK","flag","flag: slovakia"],unicode:"\u{1F1F8}\u{1F1F0}"},{group:9,hexcode:"1F1F8-1F1F1",label:"flag: Sierra Leone",order:4982,tags:["SL","flag","flag: sierra leone"],unicode:"\u{1F1F8}\u{1F1F1}"},{group:9,hexcode:"1F1F8-1F1F2",label:"flag: San Marino",order:4983,tags:["SM","flag","flag: san marino"],unicode:"\u{1F1F8}\u{1F1F2}"},{group:9,hexcode:"1F1F8-1F1F3",label:"flag: Senegal",order:4984,tags:["SN","flag","flag: senegal"],unicode:"\u{1F1F8}\u{1F1F3}"},{group:9,hexcode:"1F1F8-1F1F4",label:"flag: Somalia",order:4985,tags:["SO","flag","flag: somalia"],unicode:"\u{1F1F8}\u{1F1F4}"},{group:9,hexcode:"1F1F8-1F1F7",label:"flag: Suriname",order:4986,tags:["SR","flag","flag: suriname"],unicode:"\u{1F1F8}\u{1F1F7}"},{group:9,hexcode:"1F1F8-1F1F8",label:"flag: South Sudan",order:4987,tags:["SS","flag","flag: south sudan"],unicode:"\u{1F1F8}\u{1F1F8}"},{group:9,hexcode:"1F1F8-1F1F9",label:"flag: S\xE3o Tom\xE9 & Pr\xEDncipe",order:4988,tags:["ST","flag","flag: s\xE3o tom\xE9 & pr\xEDncipe"],unicode:"\u{1F1F8}\u{1F1F9}"},{group:9,hexcode:"1F1F8-1F1FB",label:"flag: El Salvador",order:4989,tags:["SV","flag","flag: el salvador"],unicode:"\u{1F1F8}\u{1F1FB}"},{group:9,hexcode:"1F1F8-1F1FD",label:"flag: Sint Maarten",order:4990,tags:["SX","flag","flag: sint maarten"],unicode:"\u{1F1F8}\u{1F1FD}"},{group:9,hexcode:"1F1F8-1F1FE",label:"flag: Syria",order:4991,tags:["SY","flag","flag: syria"],unicode:"\u{1F1F8}\u{1F1FE}"},{group:9,hexcode:"1F1F8-1F1FF",label:"flag: Eswatini",order:4992,tags:["SZ","flag","flag: eswatini"],unicode:"\u{1F1F8}\u{1F1FF}"},{group:9,hexcode:"1F1F9-1F1E6",label:"flag: Tristan da Cunha",order:4993,tags:["TA","flag","flag: tristan da cunha"],unicode:"\u{1F1F9}\u{1F1E6}"},{group:9,hexcode:"1F1F9-1F1E8",label:"flag: Turks & Caicos Islands",order:4994,tags:["TC","flag","flag: turks & caicos islands"],unicode:"\u{1F1F9}\u{1F1E8}"},{group:9,hexcode:"1F1F9-1F1E9",label:"flag: Chad",order:4995,tags:["TD","flag","flag: chad"],unicode:"\u{1F1F9}\u{1F1E9}"},{group:9,hexcode:"1F1F9-1F1EB",label:"flag: French Southern Territories",order:4996,tags:["TF","flag","flag: french southern territories"],unicode:"\u{1F1F9}\u{1F1EB}"},{group:9,hexcode:"1F1F9-1F1EC",label:"flag: Togo",order:4997,tags:["TG","flag","flag: togo"],unicode:"\u{1F1F9}\u{1F1EC}"},{group:9,hexcode:"1F1F9-1F1ED",label:"flag: Thailand",order:4998,tags:["TH","flag","flag: thailand"],unicode:"\u{1F1F9}\u{1F1ED}"},{group:9,hexcode:"1F1F9-1F1EF",label:"flag: Tajikistan",order:4999,tags:["TJ","flag","flag: tajikistan"],unicode:"\u{1F1F9}\u{1F1EF}"},{group:9,hexcode:"1F1F9-1F1F0",label:"flag: Tokelau",order:5e3,tags:["TK","flag","flag: tokelau"],unicode:"\u{1F1F9}\u{1F1F0}"},{group:9,hexcode:"1F1F9-1F1F1",label:"flag: Timor-Leste",order:5001,tags:["TL","flag","flag: timor-leste"],unicode:"\u{1F1F9}\u{1F1F1}"},{group:9,hexcode:"1F1F9-1F1F2",label:"flag: Turkmenistan",order:5002,tags:["TM","flag","flag: turkmenistan"],unicode:"\u{1F1F9}\u{1F1F2}"},{group:9,hexcode:"1F1F9-1F1F3",label:"flag: Tunisia",order:5003,tags:["TN","flag","flag: tunisia"],unicode:"\u{1F1F9}\u{1F1F3}"},{group:9,hexcode:"1F1F9-1F1F4",label:"flag: Tonga",order:5004,tags:["TO","flag","flag: tonga"],unicode:"\u{1F1F9}\u{1F1F4}"},{group:9,hexcode:"1F1F9-1F1F7",label:"flag: T\xFCrkiye",order:5005,tags:["TR","flag","flag: t\xFCrkiye"],unicode:"\u{1F1F9}\u{1F1F7}"},{group:9,hexcode:"1F1F9-1F1F9",label:"flag: Trinidad & Tobago",order:5006,tags:["TT","flag","flag: trinidad & tobago"],unicode:"\u{1F1F9}\u{1F1F9}"},{group:9,hexcode:"1F1F9-1F1FB",label:"flag: Tuvalu",order:5007,tags:["TV","flag","flag: tuvalu"],unicode:"\u{1F1F9}\u{1F1FB}"},{group:9,hexcode:"1F1F9-1F1FC",label:"flag: Taiwan",order:5008,tags:["TW","flag","flag: taiwan"],unicode:"\u{1F1F9}\u{1F1FC}"},{group:9,hexcode:"1F1F9-1F1FF",label:"flag: Tanzania",order:5009,tags:["TZ","flag","flag: tanzania"],unicode:"\u{1F1F9}\u{1F1FF}"},{group:9,hexcode:"1F1FA-1F1E6",label:"flag: Ukraine",order:5010,tags:["UA","flag","flag: ukraine"],unicode:"\u{1F1FA}\u{1F1E6}"},{group:9,hexcode:"1F1FA-1F1EC",label:"flag: Uganda",order:5011,tags:["UG","flag","flag: uganda"],unicode:"\u{1F1FA}\u{1F1EC}"},{group:9,hexcode:"1F1FA-1F1F2",label:"flag: U.S. Outlying Islands",order:5012,tags:["UM","flag","flag: u.s. outlying islands"],unicode:"\u{1F1FA}\u{1F1F2}"},{group:9,hexcode:"1F1FA-1F1F3",label:"flag: United Nations",order:5013,tags:["UN","flag","flag: united nations"],unicode:"\u{1F1FA}\u{1F1F3}"},{group:9,hexcode:"1F1FA-1F1F8",label:"flag: United States",order:5014,tags:["US","flag","flag: united states"],unicode:"\u{1F1FA}\u{1F1F8}"},{group:9,hexcode:"1F1FA-1F1FE",label:"flag: Uruguay",order:5015,tags:["UY","flag","flag: uruguay"],unicode:"\u{1F1FA}\u{1F1FE}"},{group:9,hexcode:"1F1FA-1F1FF",label:"flag: Uzbekistan",order:5016,tags:["UZ","flag","flag: uzbekistan"],unicode:"\u{1F1FA}\u{1F1FF}"},{group:9,hexcode:"1F1FB-1F1E6",label:"flag: Vatican City",order:5017,tags:["VA","flag","flag: vatican city"],unicode:"\u{1F1FB}\u{1F1E6}"},{group:9,hexcode:"1F1FB-1F1E8",label:"flag: St. Vincent & Grenadines",order:5018,tags:["VC","flag","flag: st. vincent & grenadines"],unicode:"\u{1F1FB}\u{1F1E8}"},{group:9,hexcode:"1F1FB-1F1EA",label:"flag: Venezuela",order:5019,tags:["VE","flag","flag: venezuela"],unicode:"\u{1F1FB}\u{1F1EA}"},{group:9,hexcode:"1F1FB-1F1EC",label:"flag: British Virgin Islands",order:5020,tags:["VG","flag","flag: british virgin islands"],unicode:"\u{1F1FB}\u{1F1EC}"},{group:9,hexcode:"1F1FB-1F1EE",label:"flag: U.S. Virgin Islands",order:5021,tags:["VI","flag","flag: u.s. virgin islands"],unicode:"\u{1F1FB}\u{1F1EE}"},{group:9,hexcode:"1F1FB-1F1F3",label:"flag: Vietnam",order:5022,tags:["VN","flag","flag: vietnam"],unicode:"\u{1F1FB}\u{1F1F3}"},{group:9,hexcode:"1F1FB-1F1FA",label:"flag: Vanuatu",order:5023,tags:["VU","flag","flag: vanuatu"],unicode:"\u{1F1FB}\u{1F1FA}"},{group:9,hexcode:"1F1FC-1F1EB",label:"flag: Wallis & Futuna",order:5024,tags:["WF","flag","flag: wallis & futuna"],unicode:"\u{1F1FC}\u{1F1EB}"},{group:9,hexcode:"1F1FC-1F1F8",label:"flag: Samoa",order:5025,tags:["WS","flag","flag: samoa"],unicode:"\u{1F1FC}\u{1F1F8}"},{group:9,hexcode:"1F1FD-1F1F0",label:"flag: Kosovo",order:5026,tags:["XK","flag","flag: kosovo"],unicode:"\u{1F1FD}\u{1F1F0}"},{group:9,hexcode:"1F1FE-1F1EA",label:"flag: Yemen",order:5027,tags:["YE","flag","flag: yemen"],unicode:"\u{1F1FE}\u{1F1EA}"},{group:9,hexcode:"1F1FE-1F1F9",label:"flag: Mayotte",order:5028,tags:["YT","flag","flag: mayotte"],unicode:"\u{1F1FE}\u{1F1F9}"},{group:9,hexcode:"1F1FF-1F1E6",label:"flag: South Africa",order:5029,tags:["ZA","flag","flag: south africa"],unicode:"\u{1F1FF}\u{1F1E6}"},{group:9,hexcode:"1F1FF-1F1F2",label:"flag: Zambia",order:5030,tags:["ZM","flag","flag: zambia"],unicode:"\u{1F1FF}\u{1F1F2}"},{group:9,hexcode:"1F1FF-1F1FC",label:"flag: Zimbabwe",order:5031,tags:["ZW","flag","flag: zimbabwe"],unicode:"\u{1F1FF}\u{1F1FC}"},{group:9,hexcode:"1F3F4-E0067-E0062-E0065-E006E-E0067-E007F",label:"flag: England",order:5032,tags:["flag","flag: england","gbeng"],unicode:"\u{1F3F4}\u{E0067}\u{E0062}\u{E0065}\u{E006E}\u{E0067}\u{E007F}"},{group:9,hexcode:"1F3F4-E0067-E0062-E0073-E0063-E0074-E007F",label:"flag: Scotland",order:5033,tags:["flag","flag: scotland","gbsct"],unicode:"\u{1F3F4}\u{E0067}\u{E0062}\u{E0073}\u{E0063}\u{E0074}\u{E007F}"},{group:9,hexcode:"1F3F4-E0067-E0062-E0077-E006C-E0073-E007F",label:"flag: Wales",order:5034,tags:["flag","flag: wales","gbwls"],unicode:"\u{1F3F4}\u{E0067}\u{E0062}\u{E0077}\u{E006C}\u{E0073}\u{E007F}"}],kG={2049:"interrobang",2122:["tm","trade_mark"],2139:["information_source","information"],2194:"left_right_arrow",2195:["arrow_up_down","up_down_arrow"],2196:["arrow_upper_left","up_left_arrow"],2197:"arrow_upper_right",2198:"arrow_lower_right",2199:"arrow_lower_left",2328:"keyboard",2600:["sunny","sun"],2601:"cloud",2602:"umbrella2",2603:"snowman2",2604:"comet",2611:"ballot_box_with_check",2614:"umbrella",2615:["coffee","hot_beverage"],2618:"shamrock",2620:["skull_crossbones","skull_and_crossbones"],2622:["radioactive","radioactive_sign"],2623:["biohazard","biohazard_sign"],2626:"orthodox_cross",2638:"wheel_of_dharma",2639:["frowning2","white_frowning_face","frowning_face"],2640:"female_sign",2642:"male_sign",2648:"aries",2649:"taurus",2650:"sagittarius",2651:"capricorn",2652:"aquarius",2653:"pisces",2660:["spades","spade_suit"],2663:["clubs","club_suit"],2665:["hearts","heart_suit"],2666:["diamonds","diamond_suit"],2668:["hotsprings","hot_springs"],2692:["hammer_pick","hammer_and_pick"],2693:"anchor",2694:"crossed_swords",2695:"medical_symbol",2696:["scales","balance_scale"],2697:"alembic",2699:"gear",2702:"scissors",2705:"white_check_mark",2708:"airplane",2709:"envelope",2712:"black_nib",2714:["heavy_check_mark","check_mark"],2716:"heavy_multiplication_x",2721:"star_of_david",2728:"sparkles",2733:"eight_spoked_asterisk",2734:"eight_pointed_black_star",2744:"snowflake",2747:"sparkle",2753:["question","question_mark"],2754:"grey_question",2755:"grey_exclamation",2757:"exclamation",2763:["heart_exclamation","heavy_heart_exclamation_mark_ornament"],2764:["heart","red_heart"],2795:"heavy_plus_sign",2796:"heavy_minus_sign",2797:"heavy_division_sign",2934:"arrow_heading_up",2935:"arrow_heading_down",3030:"wavy_dash",3297:"congratulations",3299:"secret","1F600":["grinning","grinning_face"],"1F603":"smiley","1F604":"smile","1F601":"grin","1F606":["laughing","satisfied"],"1F979":"face_holding_back_tears","1F605":"sweat_smile","1F602":"joy","1F923":["rofl","rolling_on_the_floor_laughing"],"1F972":"smiling_face_with_tear","263A":["relaxed","smiling_face"],"1F60A":"blush","1F607":"innocent","1F642":["slight_smile","slightly_smiling_face"],"1F643":["upside_down","upside_down_face"],"1F609":["wink","winking_face"],"1F60C":["relieved","relieved_face"],"1F60D":"heart_eyes","1F970":"smiling_face_with_3_hearts","1F618":"kissing_heart","1F617":["kissing","kissing_face"],"1F619":"kissing_smiling_eyes","1F61A":"kissing_closed_eyes","1F60B":"yum","1F61B":"stuck_out_tongue","1F61D":"stuck_out_tongue_closed_eyes","1F61C":"stuck_out_tongue_winking_eye","1F92A":"zany_face","1F928":"face_with_raised_eyebrow","1F9D0":"face_with_monocle","1F913":["nerd","nerd_face"],"1F60E":"sunglasses","1F978":"disguised_face","1F929":"star_struck","1F973":"partying_face","1F60F":["smirk","smirking_face"],"1F612":["unamused","unamused_face"],"1F61E":"disappointed","1F614":["pensive","pensive_face"],"1F61F":["worried","worried_face"],"1F615":["confused","confused_face"],"1F641":["slight_frown","slightly_frowning_face"],"1F623":"persevere","1F616":"confounded","1F62B":"tired_face","1F629":["weary","weary_face"],"1F97A":"pleading_face","1F622":["cry","crying_face"],"1F62D":"sob","1F624":"triumph","1F620":["angry","angry_face"],"1F621":["rage","pouting_face"],"1F92C":"face_with_symbols_over_mouth","1F92F":"exploding_head","1F633":["flushed","flushed_face"],"1F975":"hot_face","1F976":"cold_face","1F636-200D-1F32B-FE0F":"face_in_clouds","1F631":"scream","1F628":["fearful","fearful_face"],"1F630":"cold_sweat","1F625":"disappointed_relieved","1F613":"sweat","1F917":["hugging","hugging_face"],"1F914":["thinking","thinking_face"],"1FAE3":"face_with_peeking_eye","1F92D":"face_with_hand_over_mouth","1FAE2":"face_with_open_eyes_and_hand_over_mouth","1FAE1":"saluting_face","1F92B":"shushing_face","1FAE0":"melting_face","1F925":["lying_face","liar"],"1F636":"no_mouth","1FAE5":"dotted_line_face","1F610":"neutral_face","1FAE4":"face_with_diagonal_mouth","1F611":"expressionless","1FAE8":"shaking_face","1F62C":"grimacing","1F644":["rolling_eyes","face_with_rolling_eyes"],"1F62F":["hushed","hushed_face"],"1F626":"frowning","1F627":"anguished","1F62E":"open_mouth","1F632":"astonished","1F971":"yawning_face","1F634":["sleeping","sleeping_face"],"1F924":["drooling_face","drool"],"1F62A":["sleepy","sleepy_face"],"1F62E-200D-1F4A8":"face_exhaling","1F635":"dizzy_face","1F635-200D-1F4AB":"face_with_spiral_eyes","1F910":["zipper_mouth","zipper_mouth_face"],"1F974":"woozy_face","1F922":["nauseated_face","sick"],"1F92E":"face_vomiting","1F927":["sneezing_face","sneeze"],"1F637":"mask","1F912":["thermometer_face","face_with_thermometer"],"1F915":["head_bandage","face_with_head_bandage"],"1F911":["money_mouth","money_mouth_face"],"1F920":["cowboy","face_with_cowboy_hat"],"1F608":"smiling_imp","1F47F":"imp","1F479":["japanese_ogre","ogre"],"1F47A":["japanese_goblin","goblin"],"1F921":["clown","clown_face"],"1F4A9":["poop","shit","hankey","poo","pile_of_poo"],"1F47B":"ghost","1F480":["skull","skeleton"],"1F47D":"alien","1F47E":["space_invader","alien_monster"],"1F916":["robot","robot_face"],"1F383":"jack_o_lantern","1F63A":["smiley_cat","grinning_cat"],"1F638":"smile_cat","1F639":"joy_cat","1F63B":"heart_eyes_cat","1F63C":"smirk_cat","1F63D":"kissing_cat","1F640":["scream_cat","weary_cat"],"1F63F":["crying_cat_face","crying_cat"],"1F63E":"pouting_cat","1FAF6":"heart_hands","1FAF6-1F3FB":["heart_hands_tone1","heart_hands_light_skin_tone"],"1FAF6-1F3FC":["heart_hands_tone2","heart_hands_medium_light_skin_tone"],"1FAF6-1F3FD":["heart_hands_tone3","heart_hands_medium_skin_tone"],"1FAF6-1F3FE":["heart_hands_tone4","heart_hands_medium_dark_skin_tone"],"1FAF6-1F3FF":["heart_hands_tone5","heart_hands_dark_skin_tone"],"1F932":"palms_up_together","1F932-1F3FB":["palms_up_together_tone1","palms_up_together_light_skin_tone"],"1F932-1F3FC":["palms_up_together_tone2","palms_up_together_medium_light_skin_tone"],"1F932-1F3FD":["palms_up_together_tone3","palms_up_together_medium_skin_tone"],"1F932-1F3FE":["palms_up_together_tone4","palms_up_together_medium_dark_skin_tone"],"1F932-1F3FF":["palms_up_together_tone5","palms_up_together_dark_skin_tone"],"1F450":"open_hands","1F450-1F3FB":"open_hands_tone1","1F450-1F3FC":"open_hands_tone2","1F450-1F3FD":"open_hands_tone3","1F450-1F3FE":"open_hands_tone4","1F450-1F3FF":"open_hands_tone5","1F64C":["raised_hands","raising_hands"],"1F64C-1F3FB":"raised_hands_tone1","1F64C-1F3FC":"raised_hands_tone2","1F64C-1F3FD":"raised_hands_tone3","1F64C-1F3FE":"raised_hands_tone4","1F64C-1F3FF":"raised_hands_tone5","1F44F":"clap","1F44F-1F3FB":"clap_tone1","1F44F-1F3FC":"clap_tone2","1F44F-1F3FD":"clap_tone3","1F44F-1F3FE":"clap_tone4","1F44F-1F3FF":"clap_tone5","1F91D":["handshake","shaking_hands"],"1F91D-1F3FB":["handshake_tone1","handshake_light_skin_tone"],"1FAF1-1F3FB-200D-1FAF2-1F3FC":["handshake_tone1_tone2","handshake_light_skin_tone_medium_light_skin_tone"],"1FAF1-1F3FB-200D-1FAF2-1F3FD":["handshake_tone1_tone3","handshake_light_skin_tone_medium_skin_tone"],"1FAF1-1F3FB-200D-1FAF2-1F3FE":["handshake_tone1_tone4","handshake_light_skin_tone_medium_dark_skin_tone"],"1FAF1-1F3FB-200D-1FAF2-1F3FF":["handshake_tone1_tone5","handshake_light_skin_tone_dark_skin_tone"],"1FAF1-1F3FC-200D-1FAF2-1F3FB":["handshake_tone2_tone1","handshake_medium_light_skin_tone_light_skin_tone"],"1F91D-1F3FC":["handshake_tone2","handshake_medium_light_skin_tone"],"1FAF1-1F3FC-200D-1FAF2-1F3FD":["handshake_tone2_tone3","handshake_medium_light_skin_tone_medium_skin_tone"],"1FAF1-1F3FC-200D-1FAF2-1F3FE":["handshake_tone2_tone4","handshake_medium_light_skin_tone_medium_dark_skin_tone"],"1FAF1-1F3FC-200D-1FAF2-1F3FF":["handshake_tone2_tone5","handshake_medium_light_skin_tone_dark_skin_tone"],"1FAF1-1F3FD-200D-1FAF2-1F3FB":["handshake_tone3_tone1","handshake_medium_skin_tone_light_skin_tone"],"1FAF1-1F3FD-200D-1FAF2-1F3FC":["handshake_tone3_tone2","handshake_medium_skin_tone_medium_light_skin_tone"],"1F91D-1F3FD":["handshake_tone3","handshake_medium_skin_tone"],"1FAF1-1F3FD-200D-1FAF2-1F3FE":["handshake_tone3_tone4","handshake_medium_skin_tone_medium_dark_skin_tone"],"1FAF1-1F3FD-200D-1FAF2-1F3FF":["handshake_tone3_tone5","handshake_medium_skin_tone_dark_skin_tone"],"1FAF1-1F3FE-200D-1FAF2-1F3FB":["handshake_tone4_tone1","handshake_medium_dark_skin_tone_light_skin_tone"],"1FAF1-1F3FE-200D-1FAF2-1F3FC":["handshake_tone4_tone2","handshake_medium_dark_skin_tone_medium_light_skin_tone"],"1FAF1-1F3FE-200D-1FAF2-1F3FD":["handshake_tone4_tone3","handshake_medium_dark_skin_tone_medium_skin_tone"],"1F91D-1F3FE":["handshake_tone4","handshake_medium_dark_skin_tone"],"1FAF1-1F3FE-200D-1FAF2-1F3FF":["handshake_tone4_tone5","handshake_medium_dark_skin_tone_dark_skin_tone"],"1FAF1-1F3FF-200D-1FAF2-1F3FB":["handshake_tone5_tone1","handshake_dark_skin_tone_light_skin_tone"],"1FAF1-1F3FF-200D-1FAF2-1F3FC":["handshake_tone5_tone2","handshake_dark_skin_tone_medium_light_skin_tone"],"1FAF1-1F3FF-200D-1FAF2-1F3FD":["handshake_tone5_tone3","handshake_dark_skin_tone_medium_skin_tone"],"1FAF1-1F3FF-200D-1FAF2-1F3FE":["handshake_tone5_tone4","handshake_dark_skin_tone_medium_dark_skin_tone"],"1F91D-1F3FF":["handshake_tone5","handshake_dark_skin_tone"],"1F44D":["thumbsup","+1","thumbup","thumbs_up"],"1F44D-1F3FB":["thumbsup_tone1","+1_tone1","thumbup_tone1"],"1F44D-1F3FC":["thumbsup_tone2","+1_tone2","thumbup_tone2"],"1F44D-1F3FD":["thumbsup_tone3","+1_tone3","thumbup_tone3"],"1F44D-1F3FE":["thumbsup_tone4","+1_tone4","thumbup_tone4"],"1F44D-1F3FF":["thumbsup_tone5","+1_tone5","thumbup_tone5"],"1F44E":["thumbsdown","-1","thumbdown","thumbs_down"],"1F44E-1F3FB":["thumbsdown_tone1","-1_tone1","thumbdown_tone1"],"1F44E-1F3FC":["thumbsdown_tone2","-1_tone2","thumbdown_tone2"],"1F44E-1F3FD":["thumbsdown_tone3","-1_tone3","thumbdown_tone3"],"1F44E-1F3FE":["thumbsdown_tone4","-1_tone4","thumbdown_tone4"],"1F44E-1F3FF":["thumbsdown_tone5","-1_tone5","thumbdown_tone5"],"1F44A":["punch","oncoming_fist"],"1F44A-1F3FB":"punch_tone1","1F44A-1F3FC":"punch_tone2","1F44A-1F3FD":"punch_tone3","1F44A-1F3FE":"punch_tone4","1F44A-1F3FF":"punch_tone5","270A":["fist","raised_fist"],"270A-1F3FB":"fist_tone1","270A-1F3FC":"fist_tone2","270A-1F3FD":"fist_tone3","270A-1F3FE":"fist_tone4","270A-1F3FF":"fist_tone5","1F91B":["left_facing_fist","left_fist"],"1F91B-1F3FB":["left_facing_fist_tone1","left_fist_tone1"],"1F91B-1F3FC":["left_facing_fist_tone2","left_fist_tone2"],"1F91B-1F3FD":["left_facing_fist_tone3","left_fist_tone3"],"1F91B-1F3FE":["left_facing_fist_tone4","left_fist_tone4"],"1F91B-1F3FF":["left_facing_fist_tone5","left_fist_tone5"],"1F91C":["right_facing_fist","right_fist"],"1F91C-1F3FB":["right_facing_fist_tone1","right_fist_tone1"],"1F91C-1F3FC":["right_facing_fist_tone2","right_fist_tone2"],"1F91C-1F3FD":["right_facing_fist_tone3","right_fist_tone3"],"1F91C-1F3FE":["right_facing_fist_tone4","right_fist_tone4"],"1F91C-1F3FF":["right_facing_fist_tone5","right_fist_tone5"],"1FAF7":"leftwards_pushing_hand","1FAF7-1F3FB":["leftwards_pushing_hand_tone1","leftwards_pushing_hand_light_skin_tone"],"1FAF7-1F3FC":["leftwards_pushing_hand_tone2","leftwards_pushing_hand_medium_light_skin_tone"],"1FAF7-1F3FD":["leftwards_pushing_hand_tone3","leftwards_pushing_hand_medium_skin_tone"],"1FAF7-1F3FE":["leftwards_pushing_hand_tone4","leftwards_pushing_hand_medium_dark_skin_tone"],"1FAF7-1F3FF":["leftwards_pushing_hand_tone5","leftwards_pushing_hand_dark_skin_tone"],"1FAF8":"rightwards_pushing_hand","1FAF8-1F3FB":["rightwards_pushing_hand_tone1","rightwards_pushing_hand_light_skin_tone"],"1FAF8-1F3FC":["rightwards_pushing_hand_tone2","rightwards_pushing_hand_medium_light_skin_tone"],"1FAF8-1F3FD":["rightwards_pushing_hand_tone3","rightwards_pushing_hand_medium_skin_tone"],"1FAF8-1F3FE":["rightwards_pushing_hand_tone4","rightwards_pushing_hand_medium_dark_skin_tone"],"1FAF8-1F3FF":["rightwards_pushing_hand_tone5","rightwards_pushing_hand_dark_skin_tone"],"1F91E":["fingers_crossed","hand_with_index_and_middle_finger_crossed"],"1F91E-1F3FB":["fingers_crossed_tone1","hand_with_index_and_middle_fingers_crossed_tone1"],"1F91E-1F3FC":["fingers_crossed_tone2","hand_with_index_and_middle_fingers_crossed_tone2"],"1F91E-1F3FD":["fingers_crossed_tone3","hand_with_index_and_middle_fingers_crossed_tone3"],"1F91E-1F3FE":["fingers_crossed_tone4","hand_with_index_and_middle_fingers_crossed_tone4"],"1F91E-1F3FF":["fingers_crossed_tone5","hand_with_index_and_middle_fingers_crossed_tone5"],"270C":["v","victory_hand"],"270C-1F3FB":"v_tone1","270C-1F3FC":"v_tone2","270C-1F3FD":"v_tone3","270C-1F3FE":"v_tone4","270C-1F3FF":"v_tone5","1FAF0":"hand_with_index_finger_and_thumb_crossed","1FAF0-1F3FB":["hand_with_index_finger_and_thumb_crossed_tone1","hand_with_index_finger_and_thumb_crossed_light_skin_tone"],"1FAF0-1F3FC":["hand_with_index_finger_and_thumb_crossed_tone2","hand_with_index_finger_and_thumb_crossed_medium_light_skin_tone"],"1FAF0-1F3FD":["hand_with_index_finger_and_thumb_crossed_tone3","hand_with_index_finger_and_thumb_crossed_medium_skin_tone"],"1FAF0-1F3FE":["hand_with_index_finger_and_thumb_crossed_tone4","hand_with_index_finger_and_thumb_crossed_medium_dark_skin_tone"],"1FAF0-1F3FF":["hand_with_index_finger_and_thumb_crossed_tone5","hand_with_index_finger_and_thumb_crossed_dark_skin_tone"],"1F91F":"love_you_gesture","1F91F-1F3FB":["love_you_gesture_tone1","love_you_gesture_light_skin_tone"],"1F91F-1F3FC":["love_you_gesture_tone2","love_you_gesture_medium_light_skin_tone"],"1F91F-1F3FD":["love_you_gesture_tone3","love_you_gesture_medium_skin_tone"],"1F91F-1F3FE":["love_you_gesture_tone4","love_you_gesture_medium_dark_skin_tone"],"1F91F-1F3FF":["love_you_gesture_tone5","love_you_gesture_dark_skin_tone"],"1F918":["metal","sign_of_the_horns"],"1F918-1F3FB":["metal_tone1","sign_of_the_horns_tone1"],"1F918-1F3FC":["metal_tone2","sign_of_the_horns_tone2"],"1F918-1F3FD":["metal_tone3","sign_of_the_horns_tone3"],"1F918-1F3FE":["metal_tone4","sign_of_the_horns_tone4"],"1F918-1F3FF":["metal_tone5","sign_of_the_horns_tone5"],"1F44C":"ok_hand","1F44C-1F3FB":"ok_hand_tone1","1F44C-1F3FC":"ok_hand_tone2","1F44C-1F3FD":"ok_hand_tone3","1F44C-1F3FE":"ok_hand_tone4","1F44C-1F3FF":"ok_hand_tone5","1F90C":"pinched_fingers","1F90C-1F3FC":["pinched_fingers_tone2","pinched_fingers_medium_light_skin_tone"],"1F90C-1F3FB":["pinched_fingers_tone1","pinched_fingers_light_skin_tone"],"1F90C-1F3FD":["pinched_fingers_tone3","pinched_fingers_medium_skin_tone"],"1F90C-1F3FE":["pinched_fingers_tone4","pinched_fingers_medium_dark_skin_tone"],"1F90C-1F3FF":["pinched_fingers_tone5","pinched_fingers_dark_skin_tone"],"1F90F":"pinching_hand","1F90F-1F3FB":["pinching_hand_tone1","pinching_hand_light_skin_tone"],"1F90F-1F3FC":["pinching_hand_tone2","pinching_hand_medium_light_skin_tone"],"1F90F-1F3FD":["pinching_hand_tone3","pinching_hand_medium_skin_tone"],"1F90F-1F3FE":["pinching_hand_tone4","pinching_hand_medium_dark_skin_tone"],"1F90F-1F3FF":["pinching_hand_tone5","pinching_hand_dark_skin_tone"],"1FAF3":"palm_down_hand","1FAF3-1F3FB":["palm_down_hand_tone1","palm_down_hand_light_skin_tone"],"1FAF3-1F3FC":["palm_down_hand_tone2","palm_down_hand_medium_light_skin_tone"],"1FAF3-1F3FD":["palm_down_hand_tone3","palm_down_hand_medium_skin_tone"],"1FAF3-1F3FE":["palm_down_hand_tone4","palm_down_hand_medium_dark_skin_tone"],"1FAF3-1F3FF":["palm_down_hand_tone5","palm_down_hand_dark_skin_tone"],"1FAF4":"palm_up_hand","1FAF4-1F3FB":["palm_up_hand_tone1","palm_up_hand_light_skin_tone"],"1FAF4-1F3FC":["palm_up_hand_tone2","palm_up_hand_medium_light_skin_tone"],"1FAF4-1F3FD":["palm_up_hand_tone3","palm_up_hand_medium_skin_tone"],"1FAF4-1F3FE":["palm_up_hand_tone4","palm_up_hand_medium_dark_skin_tone"],"1FAF4-1F3FF":["palm_up_hand_tone5","palm_up_hand_dark_skin_tone"],"1F448":"point_left","1F448-1F3FB":"point_left_tone1","1F448-1F3FC":"point_left_tone2","1F448-1F3FD":"point_left_tone3","1F448-1F3FE":"point_left_tone4","1F448-1F3FF":"point_left_tone5","1F449":"point_right","1F449-1F3FB":"point_right_tone1","1F449-1F3FC":"point_right_tone2","1F449-1F3FD":"point_right_tone3","1F449-1F3FE":"point_right_tone4","1F449-1F3FF":"point_right_tone5","1F446":"point_up_2","1F446-1F3FB":"point_up_2_tone1","1F446-1F3FC":"point_up_2_tone2","1F446-1F3FD":"point_up_2_tone3","1F446-1F3FE":"point_up_2_tone4","1F446-1F3FF":"point_up_2_tone5","1F447":"point_down","1F447-1F3FB":"point_down_tone1","1F447-1F3FC":"point_down_tone2","1F447-1F3FD":"point_down_tone3","1F447-1F3FE":"point_down_tone4","1F447-1F3FF":"point_down_tone5","261D":"point_up","261D-1F3FB":"point_up_tone1","261D-1F3FC":"point_up_tone2","261D-1F3FD":"point_up_tone3","261D-1F3FE":"point_up_tone4","261D-1F3FF":"point_up_tone5","270B":"raised_hand","270B-1F3FB":"raised_hand_tone1","270B-1F3FC":"raised_hand_tone2","270B-1F3FD":"raised_hand_tone3","270B-1F3FE":"raised_hand_tone4","270B-1F3FF":"raised_hand_tone5","1F91A":["raised_back_of_hand","back_of_hand"],"1F91A-1F3FB":["raised_back_of_hand_tone1","back_of_hand_tone1"],"1F91A-1F3FC":["raised_back_of_hand_tone2","back_of_hand_tone2"],"1F91A-1F3FD":["raised_back_of_hand_tone3","back_of_hand_tone3"],"1F91A-1F3FE":["raised_back_of_hand_tone4","back_of_hand_tone4"],"1F91A-1F3FF":["raised_back_of_hand_tone5","back_of_hand_tone5"],"1F590":["hand_splayed","raised_hand_with_fingers_splayed"],"1F590-1F3FB":["hand_splayed_tone1","raised_hand_with_fingers_splayed_tone1"],"1F590-1F3FC":["hand_splayed_tone2","raised_hand_with_fingers_splayed_tone2"],"1F590-1F3FD":["hand_splayed_tone3","raised_hand_with_fingers_splayed_tone3"],"1F590-1F3FE":["hand_splayed_tone4","raised_hand_with_fingers_splayed_tone4"],"1F590-1F3FF":["hand_splayed_tone5","raised_hand_with_fingers_splayed_tone5"],"1F596":["vulcan","raised_hand_with_part_between_middle_and_ring_fingers","vulcan_salute"],"1F596-1F3FB":["vulcan_tone1","raised_hand_with_part_between_middle_and_ring_fingers_tone1"],"1F596-1F3FC":["vulcan_tone2","raised_hand_with_part_between_middle_and_ring_fingers_tone2"],"1F596-1F3FD":["vulcan_tone3","raised_hand_with_part_between_middle_and_ring_fingers_tone3"],"1F596-1F3FE":["vulcan_tone4","raised_hand_with_part_between_middle_and_ring_fingers_tone4"],"1F596-1F3FF":["vulcan_tone5","raised_hand_with_part_between_middle_and_ring_fingers_tone5"],"1F44B":["wave","waving_hand"],"1F44B-1F3FB":"wave_tone1","1F44B-1F3FC":"wave_tone2","1F44B-1F3FD":"wave_tone3","1F44B-1F3FE":"wave_tone4","1F44B-1F3FF":"wave_tone5","1F919":["call_me","call_me_hand"],"1F919-1F3FB":["call_me_tone1","call_me_hand_tone1"],"1F919-1F3FC":["call_me_tone2","call_me_hand_tone2"],"1F919-1F3FD":["call_me_tone3","call_me_hand_tone3"],"1F919-1F3FE":["call_me_tone4","call_me_hand_tone4"],"1F919-1F3FF":["call_me_tone5","call_me_hand_tone5"],"1FAF2":"leftwards_hand","1FAF2-1F3FB":["leftwards_hand_tone1","leftwards_hand_light_skin_tone"],"1FAF2-1F3FC":["leftwards_hand_tone2","leftwards_hand_medium_light_skin_tone"],"1FAF2-1F3FD":["leftwards_hand_tone3","leftwards_hand_medium_skin_tone"],"1FAF2-1F3FE":["leftwards_hand_tone4","leftwards_hand_medium_dark_skin_tone"],"1FAF2-1F3FF":["leftwards_hand_tone5","leftwards_hand_dark_skin_tone"],"1FAF1":"rightwards_hand","1FAF1-1F3FB":["rightwards_hand_tone1","rightwards_hand_light_skin_tone"],"1FAF1-1F3FC":["rightwards_hand_tone2","rightwards_hand_medium_light_skin_tone"],"1FAF1-1F3FD":["rightwards_hand_tone3","rightwards_hand_medium_skin_tone"],"1FAF1-1F3FE":["rightwards_hand_tone4","rightwards_hand_medium_dark_skin_tone"],"1FAF1-1F3FF":["rightwards_hand_tone5","rightwards_hand_dark_skin_tone"],"1F4AA":["muscle","flexed_biceps"],"1F4AA-1F3FB":"muscle_tone1","1F4AA-1F3FC":"muscle_tone2","1F4AA-1F3FD":"muscle_tone3","1F4AA-1F3FE":"muscle_tone4","1F4AA-1F3FF":"muscle_tone5","1F9BE":"mechanical_arm","1F595":["middle_finger","reversed_hand_with_middle_finger_extended"],"1F595-1F3FB":["middle_finger_tone1","reversed_hand_with_middle_finger_extended_tone1"],"1F595-1F3FC":["middle_finger_tone2","reversed_hand_with_middle_finger_extended_tone2"],"1F595-1F3FD":["middle_finger_tone3","reversed_hand_with_middle_finger_extended_tone3"],"1F595-1F3FE":["middle_finger_tone4","reversed_hand_with_middle_finger_extended_tone4"],"1F595-1F3FF":["middle_finger_tone5","reversed_hand_with_middle_finger_extended_tone5"],"270D":"writing_hand","270D-1F3FB":"writing_hand_tone1","270D-1F3FC":"writing_hand_tone2","270D-1F3FD":"writing_hand_tone3","270D-1F3FE":"writing_hand_tone4","270D-1F3FF":"writing_hand_tone5","1F64F":["pray","folded_hands"],"1F64F-1F3FB":"pray_tone1","1F64F-1F3FC":"pray_tone2","1F64F-1F3FD":"pray_tone3","1F64F-1F3FE":"pray_tone4","1F64F-1F3FF":"pray_tone5","1FAF5":"index_pointing_at_the_viewer","1FAF5-1F3FB":["index_pointing_at_the_viewer_tone1","index_pointing_at_the_viewer_light_skin_tone"],"1FAF5-1F3FC":["index_pointing_at_the_viewer_tone2","index_pointing_at_the_viewer_medium_light_skin_tone"],"1FAF5-1F3FD":["index_pointing_at_the_viewer_tone3","index_pointing_at_the_viewer_medium_skin_tone"],"1FAF5-1F3FE":["index_pointing_at_the_viewer_tone4","index_pointing_at_the_viewer_medium_dark_skin_tone"],"1FAF5-1F3FF":["index_pointing_at_the_viewer_tone5","index_pointing_at_the_viewer_dark_skin_tone"],"1F9B6":"foot","1F9B6-1F3FB":["foot_tone1","foot_light_skin_tone"],"1F9B6-1F3FC":["foot_tone2","foot_medium_light_skin_tone"],"1F9B6-1F3FD":["foot_tone3","foot_medium_skin_tone"],"1F9B6-1F3FE":["foot_tone4","foot_medium_dark_skin_tone"],"1F9B6-1F3FF":["foot_tone5","foot_dark_skin_tone"],"1F9B5":"leg","1F9B5-1F3FB":["leg_tone1","leg_light_skin_tone"],"1F9B5-1F3FC":["leg_tone2","leg_medium_light_skin_tone"],"1F9B5-1F3FD":["leg_tone3","leg_medium_skin_tone"],"1F9B5-1F3FE":["leg_tone4","leg_medium_dark_skin_tone"],"1F9B5-1F3FF":["leg_tone5","leg_dark_skin_tone"],"1F9BF":"mechanical_leg","1F484":"lipstick","1F48B":["kiss","kiss_mark"],"1F444":["lips","mouth"],"1FAE6":"biting_lip","1F9B7":"tooth","1F445":"tongue","1F442":"ear","1F442-1F3FB":"ear_tone1","1F442-1F3FC":"ear_tone2","1F442-1F3FD":"ear_tone3","1F442-1F3FE":"ear_tone4","1F442-1F3FF":"ear_tone5","1F9BB":"ear_with_hearing_aid","1F9BB-1F3FB":["ear_with_hearing_aid_tone1","ear_with_hearing_aid_light_skin_tone"],"1F9BB-1F3FC":["ear_with_hearing_aid_tone2","ear_with_hearing_aid_medium_light_skin_tone"],"1F9BB-1F3FD":["ear_with_hearing_aid_tone3","ear_with_hearing_aid_medium_skin_tone"],"1F9BB-1F3FE":["ear_with_hearing_aid_tone4","ear_with_hearing_aid_medium_dark_skin_tone"],"1F9BB-1F3FF":["ear_with_hearing_aid_tone5","ear_with_hearing_aid_dark_skin_tone"],"1F443":"nose","1F443-1F3FB":"nose_tone1","1F443-1F3FC":"nose_tone2","1F443-1F3FD":"nose_tone3","1F443-1F3FE":"nose_tone4","1F443-1F3FF":"nose_tone5","1F463":"footprints","1F441":"eye","1F440":"eyes","1FAC0":"anatomical_heart","1FAC1":"lungs","1F9E0":"brain","1F5E3":["speaking_head","speaking_head_in_silhouette"],"1F464":"bust_in_silhouette","1F465":"busts_in_silhouette","1FAC2":"people_hugging","1F476":"baby","1F476-1F3FB":"baby_tone1","1F476-1F3FC":"baby_tone2","1F476-1F3FD":"baby_tone3","1F476-1F3FE":"baby_tone4","1F476-1F3FF":"baby_tone5","1F9D2":"child","1F9D2-1F3FB":["child_tone1","child_light_skin_tone"],"1F9D2-1F3FC":["child_tone2","child_medium_light_skin_tone"],"1F9D2-1F3FD":["child_tone3","child_medium_skin_tone"],"1F9D2-1F3FE":["child_tone4","child_medium_dark_skin_tone"],"1F9D2-1F3FF":["child_tone5","child_dark_skin_tone"],"1F467":"girl","1F467-1F3FB":"girl_tone1","1F467-1F3FC":"girl_tone2","1F467-1F3FD":"girl_tone3","1F467-1F3FE":"girl_tone4","1F467-1F3FF":"girl_tone5","1F466":"boy","1F466-1F3FB":"boy_tone1","1F466-1F3FC":"boy_tone2","1F466-1F3FD":"boy_tone3","1F466-1F3FE":"boy_tone4","1F466-1F3FF":"boy_tone5","1F9D1":["adult","person"],"1F9D1-1F3FB":["adult_tone1","adult_light_skin_tone"],"1F9D1-1F3FC":["adult_tone2","adult_medium_light_skin_tone"],"1F9D1-1F3FD":["adult_tone3","adult_medium_skin_tone"],"1F9D1-1F3FE":["adult_tone4","adult_medium_dark_skin_tone"],"1F9D1-1F3FF":["adult_tone5","adult_dark_skin_tone"],"1F469":"woman","1F469-1F3FB":"woman_tone1","1F469-1F3FC":"woman_tone2","1F469-1F3FD":"woman_tone3","1F469-1F3FE":"woman_tone4","1F469-1F3FF":"woman_tone5","1F468":"man","1F468-1F3FB":"man_tone1","1F468-1F3FC":"man_tone2","1F468-1F3FD":"man_tone3","1F468-1F3FE":"man_tone4","1F468-1F3FF":"man_tone5","1F9D1-200D-1F9B1":"person_curly_hair","1F9D1-1F3FB-200D-1F9B1":["person_tone1_curly_hair","person_light_skin_tone_curly_hair"],"1F9D1-1F3FC-200D-1F9B1":["person_tone2_curly_hair","person_medium_light_skin_tone_curly_hair"],"1F9D1-1F3FD-200D-1F9B1":["person_tone3_curly_hair","person_medium_skin_tone_curly_hair"],"1F9D1-1F3FE-200D-1F9B1":["person_tone4_curly_hair","person_medium_dark_skin_tone_curly_hair"],"1F9D1-1F3FF-200D-1F9B1":["person_tone5_curly_hair","person_dark_skin_tone_curly_hair"],"1F469-200D-1F9B1":"woman_curly_haired","1F469-1F3FB-200D-1F9B1":["woman_curly_haired_tone1","woman_curly_haired_light_skin_tone"],"1F469-1F3FC-200D-1F9B1":["woman_curly_haired_tone2","woman_curly_haired_medium_light_skin_tone"],"1F469-1F3FD-200D-1F9B1":["woman_curly_haired_tone3","woman_curly_haired_medium_skin_tone"],"1F469-1F3FE-200D-1F9B1":["woman_curly_haired_tone4","woman_curly_haired_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F9B1":["woman_curly_haired_tone5","woman_curly_haired_dark_skin_tone"],"1F468-200D-1F9B1":"man_curly_haired","1F468-1F3FB-200D-1F9B1":["man_curly_haired_tone1","man_curly_haired_light_skin_tone"],"1F468-1F3FC-200D-1F9B1":["man_curly_haired_tone2","man_curly_haired_medium_light_skin_tone"],"1F468-1F3FD-200D-1F9B1":["man_curly_haired_tone3","man_curly_haired_medium_skin_tone"],"1F468-1F3FE-200D-1F9B1":["man_curly_haired_tone4","man_curly_haired_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F9B1":["man_curly_haired_tone5","man_curly_haired_dark_skin_tone"],"1F9D1-200D-1F9B0":"person_red_hair","1F9D1-1F3FB-200D-1F9B0":["person_tone1_red_hair","person_light_skin_tone_red_hair"],"1F9D1-1F3FC-200D-1F9B0":["person_tone2_red_hair","person_medium_light_skin_tone_red_hair"],"1F9D1-1F3FD-200D-1F9B0":["person_tone3_red_hair","person_medium_skin_tone_red_hair"],"1F9D1-1F3FE-200D-1F9B0":["person_tone4_red_hair","person_medium_dark_skin_tone_red_hair"],"1F9D1-1F3FF-200D-1F9B0":["person_tone5_red_hair","person_dark_skin_tone_red_hair"],"1F469-200D-1F9B0":"woman_red_haired","1F469-1F3FB-200D-1F9B0":["woman_red_haired_tone1","woman_red_haired_light_skin_tone"],"1F469-1F3FC-200D-1F9B0":["woman_red_haired_tone2","woman_red_haired_medium_light_skin_tone"],"1F469-1F3FD-200D-1F9B0":["woman_red_haired_tone3","woman_red_haired_medium_skin_tone"],"1F469-1F3FE-200D-1F9B0":["woman_red_haired_tone4","woman_red_haired_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F9B0":["woman_red_haired_tone5","woman_red_haired_dark_skin_tone"],"1F468-200D-1F9B0":["man_red_haired","man_red_hair"],"1F468-1F3FB-200D-1F9B0":["man_red_haired_tone1","man_red_haired_light_skin_tone"],"1F468-1F3FC-200D-1F9B0":["man_red_haired_tone2","man_red_haired_medium_light_skin_tone"],"1F468-1F3FD-200D-1F9B0":["man_red_haired_tone3","man_red_haired_medium_skin_tone"],"1F468-1F3FE-200D-1F9B0":["man_red_haired_tone4","man_red_haired_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F9B0":["man_red_haired_tone5","man_red_haired_dark_skin_tone"],"1F471":["blond_haired_person","person_with_blond_hair"],"1F471-1F3FB":["blond_haired_person_tone1","person_with_blond_hair_tone1"],"1F471-1F3FC":["blond_haired_person_tone2","person_with_blond_hair_tone2"],"1F471-1F3FD":["blond_haired_person_tone3","person_with_blond_hair_tone3"],"1F471-1F3FE":["blond_haired_person_tone4","person_with_blond_hair_tone4"],"1F471-1F3FF":["blond_haired_person_tone5","person_with_blond_hair_tone5"],"1F471-200D-2640-FE0F":"blond-haired_woman","1F471-1F3FB-200D-2640-FE0F":["blond-haired_woman_tone1","blond-haired_woman_light_skin_tone"],"1F471-1F3FC-200D-2640-FE0F":["blond-haired_woman_tone2","blond-haired_woman_medium_light_skin_tone"],"1F471-1F3FD-200D-2640-FE0F":["blond-haired_woman_tone3","blond-haired_woman_medium_skin_tone"],"1F471-1F3FE-200D-2640-FE0F":["blond-haired_woman_tone4","blond-haired_woman_medium_dark_skin_tone"],"1F471-1F3FF-200D-2640-FE0F":["blond-haired_woman_tone5","blond-haired_woman_dark_skin_tone"],"1F471-200D-2642-FE0F":"blond-haired_man","1F471-1F3FB-200D-2642-FE0F":["blond-haired_man_tone1","blond-haired_man_light_skin_tone"],"1F471-1F3FC-200D-2642-FE0F":["blond-haired_man_tone2","blond-haired_man_medium_light_skin_tone"],"1F471-1F3FD-200D-2642-FE0F":["blond-haired_man_tone3","blond-haired_man_medium_skin_tone"],"1F471-1F3FE-200D-2642-FE0F":["blond-haired_man_tone4","blond-haired_man_medium_dark_skin_tone"],"1F471-1F3FF-200D-2642-FE0F":["blond-haired_man_tone5","blond-haired_man_dark_skin_tone"],"1F9D1-200D-1F9B3":"person_white_hair","1F9D1-1F3FB-200D-1F9B3":["person_tone1_white_hair","person_light_skin_tone_white_hair"],"1F9D1-1F3FC-200D-1F9B3":["person_tone2_white_hair","person_medium_light_skin_tone_white_hair"],"1F9D1-1F3FD-200D-1F9B3":["person_tone3_white_hair","person_medium_skin_tone_white_hair"],"1F9D1-1F3FE-200D-1F9B3":["person_tone4_white_hair","person_medium_dark_skin_tone_white_hair"],"1F9D1-1F3FF-200D-1F9B3":["person_tone5_white_hair","person_dark_skin_tone_white_hair"],"1F469-200D-1F9B3":"woman_white_haired","1F469-1F3FB-200D-1F9B3":["woman_white_haired_tone1","woman_white_haired_light_skin_tone"],"1F469-1F3FC-200D-1F9B3":["woman_white_haired_tone2","woman_white_haired_medium_light_skin_tone"],"1F469-1F3FD-200D-1F9B3":["woman_white_haired_tone3","woman_white_haired_medium_skin_tone"],"1F469-1F3FE-200D-1F9B3":["woman_white_haired_tone4","woman_white_haired_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F9B3":["woman_white_haired_tone5","woman_white_haired_dark_skin_tone"],"1F468-200D-1F9B3":"man_white_haired","1F468-1F3FB-200D-1F9B3":["man_white_haired_tone1","man_white_haired_light_skin_tone"],"1F468-1F3FC-200D-1F9B3":["man_white_haired_tone2","man_white_haired_medium_light_skin_tone"],"1F468-1F3FD-200D-1F9B3":["man_white_haired_tone3","man_white_haired_medium_skin_tone"],"1F468-1F3FE-200D-1F9B3":["man_white_haired_tone4","man_white_haired_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F9B3":["man_white_haired_tone5","man_white_haired_dark_skin_tone"],"1F9D1-200D-1F9B2":"person_bald","1F9D1-1F3FB-200D-1F9B2":["person_tone1_bald","person_light_skin_tone_bald"],"1F9D1-1F3FC-200D-1F9B2":["person_tone2_bald","person_medium_light_skin_tone_bald"],"1F9D1-1F3FD-200D-1F9B2":["person_tone3_bald","person_medium_skin_tone_bald"],"1F9D1-1F3FE-200D-1F9B2":["person_tone4_bald","person_medium_dark_skin_tone_bald"],"1F9D1-1F3FF-200D-1F9B2":["person_tone5_bald","person_dark_skin_tone_bald"],"1F469-200D-1F9B2":"woman_bald","1F469-1F3FB-200D-1F9B2":["woman_bald_tone1","woman_bald_light_skin_tone"],"1F469-1F3FC-200D-1F9B2":["woman_bald_tone2","woman_bald_medium_light_skin_tone"],"1F469-1F3FD-200D-1F9B2":["woman_bald_tone3","woman_bald_medium_skin_tone"],"1F469-1F3FE-200D-1F9B2":["woman_bald_tone4","woman_bald_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F9B2":["woman_bald_tone5","woman_bald_dark_skin_tone"],"1F468-200D-1F9B2":"man_bald","1F468-1F3FB-200D-1F9B2":["man_bald_tone1","man_bald_light_skin_tone"],"1F468-1F3FC-200D-1F9B2":["man_bald_tone2","man_bald_medium_light_skin_tone"],"1F468-1F3FD-200D-1F9B2":["man_bald_tone3","man_bald_medium_skin_tone"],"1F468-1F3FE-200D-1F9B2":["man_bald_tone4","man_bald_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F9B2":["man_bald_tone5","man_bald_dark_skin_tone"],"1F9D4":["bearded_person","person_beard"],"1F9D4-1F3FB":["bearded_person_tone1","bearded_person_light_skin_tone"],"1F9D4-1F3FC":["bearded_person_tone2","bearded_person_medium_light_skin_tone"],"1F9D4-1F3FD":["bearded_person_tone3","bearded_person_medium_skin_tone"],"1F9D4-1F3FE":["bearded_person_tone4","bearded_person_medium_dark_skin_tone"],"1F9D4-1F3FF":["bearded_person_tone5","bearded_person_dark_skin_tone"],"1F9D4-200D-2640-FE0F":"woman_beard","1F9D4-1F3FB-200D-2640-FE0F":["woman_tone1_beard","woman_light_skin_tone_beard"],"1F9D4-1F3FC-200D-2640-FE0F":["woman_tone2_beard","woman_medium_light_skin_tone_beard"],"1F9D4-1F3FD-200D-2640-FE0F":["woman_tone3_beard","woman_medium_skin_tone_beard"],"1F9D4-1F3FE-200D-2640-FE0F":["woman_tone4_beard","woman_medium_dark_skin_tone_beard"],"1F9D4-1F3FF-200D-2640-FE0F":["woman_tone5_beard","woman_dark_skin_tone_beard"],"1F9D4-200D-2642-FE0F":"man_beard","1F9D4-1F3FB-200D-2642-FE0F":["man_tone1_beard","man_light_skin_tone_beard"],"1F9D4-1F3FC-200D-2642-FE0F":["man_tone2_beard","man_medium_light_skin_tone_beard"],"1F9D4-1F3FD-200D-2642-FE0F":["man_tone3_beard","man_medium_skin_tone_beard"],"1F9D4-1F3FE-200D-2642-FE0F":["man_tone4_beard","man_medium_dark_skin_tone_beard"],"1F9D4-1F3FF-200D-2642-FE0F":["man_tone5_beard","man_dark_skin_tone_beard"],"1F9D3":["older_adult","older_person"],"1F9D3-1F3FB":["older_adult_tone1","older_adult_light_skin_tone"],"1F9D3-1F3FC":["older_adult_tone2","older_adult_medium_light_skin_tone"],"1F9D3-1F3FD":["older_adult_tone3","older_adult_medium_skin_tone"],"1F9D3-1F3FE":["older_adult_tone4","older_adult_medium_dark_skin_tone"],"1F9D3-1F3FF":["older_adult_tone5","older_adult_dark_skin_tone"],"1F475":["older_woman","grandma","old_woman"],"1F475-1F3FB":["older_woman_tone1","grandma_tone1"],"1F475-1F3FC":["older_woman_tone2","grandma_tone2"],"1F475-1F3FD":["older_woman_tone3","grandma_tone3"],"1F475-1F3FE":["older_woman_tone4","grandma_tone4"],"1F475-1F3FF":["older_woman_tone5","grandma_tone5"],"1F474":["older_man","old_man"],"1F474-1F3FB":"older_man_tone1","1F474-1F3FC":"older_man_tone2","1F474-1F3FD":"older_man_tone3","1F474-1F3FE":"older_man_tone4","1F474-1F3FF":"older_man_tone5","1F472":["man_with_chinese_cap","man_with_gua_pi_mao"],"1F472-1F3FB":["man_with_chinese_cap_tone1","man_with_gua_pi_mao_tone1"],"1F472-1F3FC":["man_with_chinese_cap_tone2","man_with_gua_pi_mao_tone2"],"1F472-1F3FD":["man_with_chinese_cap_tone3","man_with_gua_pi_mao_tone3"],"1F472-1F3FE":["man_with_chinese_cap_tone4","man_with_gua_pi_mao_tone4"],"1F472-1F3FF":["man_with_chinese_cap_tone5","man_with_gua_pi_mao_tone5"],"1F473":["person_wearing_turban","man_with_turban"],"1F473-1F3FB":["person_wearing_turban_tone1","man_with_turban_tone1"],"1F473-1F3FC":["person_wearing_turban_tone2","man_with_turban_tone2"],"1F473-1F3FD":["person_wearing_turban_tone3","man_with_turban_tone3"],"1F473-1F3FE":["person_wearing_turban_tone4","man_with_turban_tone4"],"1F473-1F3FF":["person_wearing_turban_tone5","man_with_turban_tone5"],"1F473-200D-2640-FE0F":"woman_wearing_turban","1F473-1F3FB-200D-2640-FE0F":["woman_wearing_turban_tone1","woman_wearing_turban_light_skin_tone"],"1F473-1F3FC-200D-2640-FE0F":["woman_wearing_turban_tone2","woman_wearing_turban_medium_light_skin_tone"],"1F473-1F3FD-200D-2640-FE0F":["woman_wearing_turban_tone3","woman_wearing_turban_medium_skin_tone"],"1F473-1F3FE-200D-2640-FE0F":["woman_wearing_turban_tone4","woman_wearing_turban_medium_dark_skin_tone"],"1F473-1F3FF-200D-2640-FE0F":["woman_wearing_turban_tone5","woman_wearing_turban_dark_skin_tone"],"1F473-200D-2642-FE0F":"man_wearing_turban","1F473-1F3FB-200D-2642-FE0F":["man_wearing_turban_tone1","man_wearing_turban_light_skin_tone"],"1F473-1F3FC-200D-2642-FE0F":["man_wearing_turban_tone2","man_wearing_turban_medium_light_skin_tone"],"1F473-1F3FD-200D-2642-FE0F":["man_wearing_turban_tone3","man_wearing_turban_medium_skin_tone"],"1F473-1F3FE-200D-2642-FE0F":["man_wearing_turban_tone4","man_wearing_turban_medium_dark_skin_tone"],"1F473-1F3FF-200D-2642-FE0F":["man_wearing_turban_tone5","man_wearing_turban_dark_skin_tone"],"1F9D5":"woman_with_headscarf","1F9D5-1F3FB":["woman_with_headscarf_tone1","woman_with_headscarf_light_skin_tone"],"1F9D5-1F3FC":["woman_with_headscarf_tone2","woman_with_headscarf_medium_light_skin_tone"],"1F9D5-1F3FD":["woman_with_headscarf_tone3","woman_with_headscarf_medium_skin_tone"],"1F9D5-1F3FE":["woman_with_headscarf_tone4","woman_with_headscarf_medium_dark_skin_tone"],"1F9D5-1F3FF":["woman_with_headscarf_tone5","woman_with_headscarf_dark_skin_tone"],"1F46E":["police_officer","cop"],"1F46E-1F3FB":["police_officer_tone1","cop_tone1"],"1F46E-1F3FC":["police_officer_tone2","cop_tone2"],"1F46E-1F3FD":["police_officer_tone3","cop_tone3"],"1F46E-1F3FE":["police_officer_tone4","cop_tone4"],"1F46E-1F3FF":["police_officer_tone5","cop_tone5"],"1F46E-200D-2640-FE0F":"woman_police_officer","1F46E-1F3FB-200D-2640-FE0F":["woman_police_officer_tone1","woman_police_officer_light_skin_tone"],"1F46E-1F3FC-200D-2640-FE0F":["woman_police_officer_tone2","woman_police_officer_medium_light_skin_tone"],"1F46E-1F3FD-200D-2640-FE0F":["woman_police_officer_tone3","woman_police_officer_medium_skin_tone"],"1F46E-1F3FE-200D-2640-FE0F":["woman_police_officer_tone4","woman_police_officer_medium_dark_skin_tone"],"1F46E-1F3FF-200D-2640-FE0F":["woman_police_officer_tone5","woman_police_officer_dark_skin_tone"],"1F46E-200D-2642-FE0F":"man_police_officer","1F46E-1F3FB-200D-2642-FE0F":["man_police_officer_tone1","man_police_officer_light_skin_tone"],"1F46E-1F3FC-200D-2642-FE0F":["man_police_officer_tone2","man_police_officer_medium_light_skin_tone"],"1F46E-1F3FD-200D-2642-FE0F":["man_police_officer_tone3","man_police_officer_medium_skin_tone"],"1F46E-1F3FE-200D-2642-FE0F":["man_police_officer_tone4","man_police_officer_medium_dark_skin_tone"],"1F46E-1F3FF-200D-2642-FE0F":["man_police_officer_tone5","man_police_officer_dark_skin_tone"],"1F477":"construction_worker","1F477-1F3FB":"construction_worker_tone1","1F477-1F3FC":"construction_worker_tone2","1F477-1F3FD":"construction_worker_tone3","1F477-1F3FE":"construction_worker_tone4","1F477-1F3FF":"construction_worker_tone5","1F477-200D-2640-FE0F":"woman_construction_worker","1F477-1F3FB-200D-2640-FE0F":["woman_construction_worker_tone1","woman_construction_worker_light_skin_tone"],"1F477-1F3FC-200D-2640-FE0F":["woman_construction_worker_tone2","woman_construction_worker_medium_light_skin_tone"],"1F477-1F3FD-200D-2640-FE0F":["woman_construction_worker_tone3","woman_construction_worker_medium_skin_tone"],"1F477-1F3FE-200D-2640-FE0F":["woman_construction_worker_tone4","woman_construction_worker_medium_dark_skin_tone"],"1F477-1F3FF-200D-2640-FE0F":["woman_construction_worker_tone5","woman_construction_worker_dark_skin_tone"],"1F477-200D-2642-FE0F":"man_construction_worker","1F477-1F3FB-200D-2642-FE0F":["man_construction_worker_tone1","man_construction_worker_light_skin_tone"],"1F477-1F3FC-200D-2642-FE0F":["man_construction_worker_tone2","man_construction_worker_medium_light_skin_tone"],"1F477-1F3FD-200D-2642-FE0F":["man_construction_worker_tone3","man_construction_worker_medium_skin_tone"],"1F477-1F3FE-200D-2642-FE0F":["man_construction_worker_tone4","man_construction_worker_medium_dark_skin_tone"],"1F477-1F3FF-200D-2642-FE0F":["man_construction_worker_tone5","man_construction_worker_dark_skin_tone"],"1F482":["guard","guardsman"],"1F482-1F3FB":["guard_tone1","guardsman_tone1"],"1F482-1F3FC":["guard_tone2","guardsman_tone2"],"1F482-1F3FD":["guard_tone3","guardsman_tone3"],"1F482-1F3FE":["guard_tone4","guardsman_tone4"],"1F482-1F3FF":["guard_tone5","guardsman_tone5"],"1F482-200D-2640-FE0F":"woman_guard","1F482-1F3FB-200D-2640-FE0F":["woman_guard_tone1","woman_guard_light_skin_tone"],"1F482-1F3FC-200D-2640-FE0F":["woman_guard_tone2","woman_guard_medium_light_skin_tone"],"1F482-1F3FD-200D-2640-FE0F":["woman_guard_tone3","woman_guard_medium_skin_tone"],"1F482-1F3FE-200D-2640-FE0F":["woman_guard_tone4","woman_guard_medium_dark_skin_tone"],"1F482-1F3FF-200D-2640-FE0F":["woman_guard_tone5","woman_guard_dark_skin_tone"],"1F482-200D-2642-FE0F":"man_guard","1F482-1F3FB-200D-2642-FE0F":["man_guard_tone1","man_guard_light_skin_tone"],"1F482-1F3FC-200D-2642-FE0F":["man_guard_tone2","man_guard_medium_light_skin_tone"],"1F482-1F3FD-200D-2642-FE0F":["man_guard_tone3","man_guard_medium_skin_tone"],"1F482-1F3FE-200D-2642-FE0F":["man_guard_tone4","man_guard_medium_dark_skin_tone"],"1F482-1F3FF-200D-2642-FE0F":["man_guard_tone5","man_guard_dark_skin_tone"],"1F575":["detective","spy","sleuth_or_spy"],"1F575-1F3FB":["detective_tone1","spy_tone1","sleuth_or_spy_tone1"],"1F575-1F3FC":["detective_tone2","spy_tone2","sleuth_or_spy_tone2"],"1F575-1F3FD":["detective_tone3","spy_tone3","sleuth_or_spy_tone3"],"1F575-1F3FE":["detective_tone4","spy_tone4","sleuth_or_spy_tone4"],"1F575-1F3FF":["detective_tone5","spy_tone5","sleuth_or_spy_tone5"],"1F575-FE0F-200D-2640-FE0F":"woman_detective","1F575-1F3FB-200D-2640-FE0F":["woman_detective_tone1","woman_detective_light_skin_tone"],"1F575-1F3FC-200D-2640-FE0F":["woman_detective_tone2","woman_detective_medium_light_skin_tone"],"1F575-1F3FD-200D-2640-FE0F":["woman_detective_tone3","woman_detective_medium_skin_tone"],"1F575-1F3FE-200D-2640-FE0F":["woman_detective_tone4","woman_detective_medium_dark_skin_tone"],"1F575-1F3FF-200D-2640-FE0F":["woman_detective_tone5","woman_detective_dark_skin_tone"],"1F575-FE0F-200D-2642-FE0F":"man_detective","1F575-1F3FB-200D-2642-FE0F":["man_detective_tone1","man_detective_light_skin_tone"],"1F575-1F3FC-200D-2642-FE0F":["man_detective_tone2","man_detective_medium_light_skin_tone"],"1F575-1F3FD-200D-2642-FE0F":["man_detective_tone3","man_detective_medium_skin_tone"],"1F575-1F3FE-200D-2642-FE0F":["man_detective_tone4","man_detective_medium_dark_skin_tone"],"1F575-1F3FF-200D-2642-FE0F":["man_detective_tone5","man_detective_dark_skin_tone"],"1F9D1-200D-2695-FE0F":"health_worker","1F9D1-1F3FB-200D-2695-FE0F":["health_worker_tone1","health_worker_light_skin_tone"],"1F9D1-1F3FC-200D-2695-FE0F":["health_worker_tone2","health_worker_medium_light_skin_tone"],"1F9D1-1F3FD-200D-2695-FE0F":["health_worker_tone3","health_worker_medium_skin_tone"],"1F9D1-1F3FE-200D-2695-FE0F":["health_worker_tone4","health_worker_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-2695-FE0F":["health_worker_tone5","health_worker_dark_skin_tone"],"1F469-200D-2695-FE0F":"woman_health_worker","1F469-1F3FB-200D-2695-FE0F":["woman_health_worker_tone1","woman_health_worker_light_skin_tone"],"1F469-1F3FC-200D-2695-FE0F":["woman_health_worker_tone2","woman_health_worker_medium_light_skin_tone"],"1F469-1F3FD-200D-2695-FE0F":["woman_health_worker_tone3","woman_health_worker_medium_skin_tone"],"1F469-1F3FE-200D-2695-FE0F":["woman_health_worker_tone4","woman_health_worker_medium_dark_skin_tone"],"1F469-1F3FF-200D-2695-FE0F":["woman_health_worker_tone5","woman_health_worker_dark_skin_tone"],"1F468-200D-2695-FE0F":"man_health_worker","1F468-1F3FB-200D-2695-FE0F":["man_health_worker_tone1","man_health_worker_light_skin_tone"],"1F468-1F3FC-200D-2695-FE0F":["man_health_worker_tone2","man_health_worker_medium_light_skin_tone"],"1F468-1F3FD-200D-2695-FE0F":["man_health_worker_tone3","man_health_worker_medium_skin_tone"],"1F468-1F3FE-200D-2695-FE0F":["man_health_worker_tone4","man_health_worker_medium_dark_skin_tone"],"1F468-1F3FF-200D-2695-FE0F":["man_health_worker_tone5","man_health_worker_dark_skin_tone"],"1F9D1-200D-1F33E":"farmer","1F9D1-1F3FB-200D-1F33E":["farmer_tone1","farmer_light_skin_tone"],"1F9D1-1F3FC-200D-1F33E":["farmer_tone2","farmer_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F33E":["farmer_tone3","farmer_medium_skin_tone"],"1F9D1-1F3FE-200D-1F33E":["farmer_tone4","farmer_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F33E":["farmer_tone5","farmer_dark_skin_tone"],"1F469-200D-1F33E":"woman_farmer","1F469-1F3FB-200D-1F33E":["woman_farmer_tone1","woman_farmer_light_skin_tone"],"1F469-1F3FC-200D-1F33E":["woman_farmer_tone2","woman_farmer_medium_light_skin_tone"],"1F469-1F3FD-200D-1F33E":["woman_farmer_tone3","woman_farmer_medium_skin_tone"],"1F469-1F3FE-200D-1F33E":["woman_farmer_tone4","woman_farmer_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F33E":["woman_farmer_tone5","woman_farmer_dark_skin_tone"],"1F468-200D-1F33E":"man_farmer","1F468-1F3FB-200D-1F33E":["man_farmer_tone1","man_farmer_light_skin_tone"],"1F468-1F3FC-200D-1F33E":["man_farmer_tone2","man_farmer_medium_light_skin_tone"],"1F468-1F3FD-200D-1F33E":["man_farmer_tone3","man_farmer_medium_skin_tone"],"1F468-1F3FE-200D-1F33E":["man_farmer_tone4","man_farmer_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F33E":["man_farmer_tone5","man_farmer_dark_skin_tone"],"1F9D1-200D-1F373":"cook","1F9D1-1F3FB-200D-1F373":["cook_tone1","cook_light_skin_tone"],"1F9D1-1F3FC-200D-1F373":["cook_tone2","cook_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F373":["cook_tone3","cook_medium_skin_tone"],"1F9D1-1F3FE-200D-1F373":["cook_tone4","cook_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F373":["cook_tone5","cook_dark_skin_tone"],"1F469-200D-1F373":"woman_cook","1F469-1F3FB-200D-1F373":["woman_cook_tone1","woman_cook_light_skin_tone"],"1F469-1F3FC-200D-1F373":["woman_cook_tone2","woman_cook_medium_light_skin_tone"],"1F469-1F3FD-200D-1F373":["woman_cook_tone3","woman_cook_medium_skin_tone"],"1F469-1F3FE-200D-1F373":["woman_cook_tone4","woman_cook_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F373":["woman_cook_tone5","woman_cook_dark_skin_tone"],"1F468-200D-1F373":"man_cook","1F468-1F3FB-200D-1F373":["man_cook_tone1","man_cook_light_skin_tone"],"1F468-1F3FC-200D-1F373":["man_cook_tone2","man_cook_medium_light_skin_tone"],"1F468-1F3FD-200D-1F373":["man_cook_tone3","man_cook_medium_skin_tone"],"1F468-1F3FE-200D-1F373":["man_cook_tone4","man_cook_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F373":["man_cook_tone5","man_cook_dark_skin_tone"],"1F9D1-200D-1F393":"student","1F9D1-1F3FB-200D-1F393":["student_tone1","student_light_skin_tone"],"1F9D1-1F3FC-200D-1F393":["student_tone2","student_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F393":["student_tone3","student_medium_skin_tone"],"1F9D1-1F3FE-200D-1F393":["student_tone4","student_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F393":["student_tone5","student_dark_skin_tone"],"1F469-200D-1F393":"woman_student","1F469-1F3FB-200D-1F393":["woman_student_tone1","woman_student_light_skin_tone"],"1F469-1F3FC-200D-1F393":["woman_student_tone2","woman_student_medium_light_skin_tone"],"1F469-1F3FD-200D-1F393":["woman_student_tone3","woman_student_medium_skin_tone"],"1F469-1F3FE-200D-1F393":["woman_student_tone4","woman_student_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F393":["woman_student_tone5","woman_student_dark_skin_tone"],"1F468-200D-1F393":"man_student","1F468-1F3FB-200D-1F393":["man_student_tone1","man_student_light_skin_tone"],"1F468-1F3FC-200D-1F393":["man_student_tone2","man_student_medium_light_skin_tone"],"1F468-1F3FD-200D-1F393":["man_student_tone3","man_student_medium_skin_tone"],"1F468-1F3FE-200D-1F393":["man_student_tone4","man_student_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F393":["man_student_tone5","man_student_dark_skin_tone"],"1F9D1-200D-1F3A4":"singer","1F9D1-1F3FB-200D-1F3A4":["singer_tone1","singer_light_skin_tone"],"1F9D1-1F3FC-200D-1F3A4":["singer_tone2","singer_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F3A4":["singer_tone3","singer_medium_skin_tone"],"1F9D1-1F3FE-200D-1F3A4":["singer_tone4","singer_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F3A4":["singer_tone5","singer_dark_skin_tone"],"1F469-200D-1F3A4":"woman_singer","1F469-1F3FB-200D-1F3A4":["woman_singer_tone1","woman_singer_light_skin_tone"],"1F469-1F3FC-200D-1F3A4":["woman_singer_tone2","woman_singer_medium_light_skin_tone"],"1F469-1F3FD-200D-1F3A4":["woman_singer_tone3","woman_singer_medium_skin_tone"],"1F469-1F3FE-200D-1F3A4":["woman_singer_tone4","woman_singer_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F3A4":["woman_singer_tone5","woman_singer_dark_skin_tone"],"1F468-200D-1F3A4":"man_singer","1F468-1F3FB-200D-1F3A4":["man_singer_tone1","man_singer_light_skin_tone"],"1F468-1F3FC-200D-1F3A4":["man_singer_tone2","man_singer_medium_light_skin_tone"],"1F468-1F3FD-200D-1F3A4":["man_singer_tone3","man_singer_medium_skin_tone"],"1F468-1F3FE-200D-1F3A4":["man_singer_tone4","man_singer_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F3A4":["man_singer_tone5","man_singer_dark_skin_tone"],"1F9D1-200D-1F3EB":"teacher","1F9D1-1F3FB-200D-1F3EB":["teacher_tone1","teacher_light_skin_tone"],"1F9D1-1F3FC-200D-1F3EB":["teacher_tone2","teacher_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F3EB":["teacher_tone3","teacher_medium_skin_tone"],"1F9D1-1F3FE-200D-1F3EB":["teacher_tone4","teacher_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F3EB":["teacher_tone5","teacher_dark_skin_tone"],"1F469-200D-1F3EB":"woman_teacher","1F469-1F3FB-200D-1F3EB":["woman_teacher_tone1","woman_teacher_light_skin_tone"],"1F469-1F3FC-200D-1F3EB":["woman_teacher_tone2","woman_teacher_medium_light_skin_tone"],"1F469-1F3FD-200D-1F3EB":["woman_teacher_tone3","woman_teacher_medium_skin_tone"],"1F469-1F3FE-200D-1F3EB":["woman_teacher_tone4","woman_teacher_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F3EB":["woman_teacher_tone5","woman_teacher_dark_skin_tone"],"1F468-200D-1F3EB":"man_teacher","1F468-1F3FB-200D-1F3EB":["man_teacher_tone1","man_teacher_light_skin_tone"],"1F468-1F3FC-200D-1F3EB":["man_teacher_tone2","man_teacher_medium_light_skin_tone"],"1F468-1F3FD-200D-1F3EB":["man_teacher_tone3","man_teacher_medium_skin_tone"],"1F468-1F3FE-200D-1F3EB":["man_teacher_tone4","man_teacher_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F3EB":["man_teacher_tone5","man_teacher_dark_skin_tone"],"1F9D1-200D-1F3ED":"factory_worker","1F9D1-1F3FB-200D-1F3ED":["factory_worker_tone1","factory_worker_light_skin_tone"],"1F9D1-1F3FC-200D-1F3ED":["factory_worker_tone2","factory_worker_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F3ED":["factory_worker_tone3","factory_worker_medium_skin_tone"],"1F9D1-1F3FE-200D-1F3ED":["factory_worker_tone4","factory_worker_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F3ED":["factory_worker_tone5","factory_worker_dark_skin_tone"],"1F469-200D-1F3ED":"woman_factory_worker","1F469-1F3FB-200D-1F3ED":["woman_factory_worker_tone1","woman_factory_worker_light_skin_tone"],"1F469-1F3FC-200D-1F3ED":["woman_factory_worker_tone2","woman_factory_worker_medium_light_skin_tone"],"1F469-1F3FD-200D-1F3ED":["woman_factory_worker_tone3","woman_factory_worker_medium_skin_tone"],"1F469-1F3FE-200D-1F3ED":["woman_factory_worker_tone4","woman_factory_worker_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F3ED":["woman_factory_worker_tone5","woman_factory_worker_dark_skin_tone"],"1F468-200D-1F3ED":"man_factory_worker","1F468-1F3FB-200D-1F3ED":["man_factory_worker_tone1","man_factory_worker_light_skin_tone"],"1F468-1F3FC-200D-1F3ED":["man_factory_worker_tone2","man_factory_worker_medium_light_skin_tone"],"1F468-1F3FD-200D-1F3ED":["man_factory_worker_tone3","man_factory_worker_medium_skin_tone"],"1F468-1F3FE-200D-1F3ED":["man_factory_worker_tone4","man_factory_worker_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F3ED":["man_factory_worker_tone5","man_factory_worker_dark_skin_tone"],"1F9D1-200D-1F4BB":"technologist","1F9D1-1F3FB-200D-1F4BB":["technologist_tone1","technologist_light_skin_tone"],"1F9D1-1F3FC-200D-1F4BB":["technologist_tone2","technologist_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F4BB":["technologist_tone3","technologist_medium_skin_tone"],"1F9D1-1F3FE-200D-1F4BB":["technologist_tone4","technologist_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F4BB":["technologist_tone5","technologist_dark_skin_tone"],"1F469-200D-1F4BB":"woman_technologist","1F469-1F3FB-200D-1F4BB":["woman_technologist_tone1","woman_technologist_light_skin_tone"],"1F469-1F3FC-200D-1F4BB":["woman_technologist_tone2","woman_technologist_medium_light_skin_tone"],"1F469-1F3FD-200D-1F4BB":["woman_technologist_tone3","woman_technologist_medium_skin_tone"],"1F469-1F3FE-200D-1F4BB":["woman_technologist_tone4","woman_technologist_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F4BB":["woman_technologist_tone5","woman_technologist_dark_skin_tone"],"1F468-200D-1F4BB":"man_technologist","1F468-1F3FB-200D-1F4BB":["man_technologist_tone1","man_technologist_light_skin_tone"],"1F468-1F3FC-200D-1F4BB":["man_technologist_tone2","man_technologist_medium_light_skin_tone"],"1F468-1F3FD-200D-1F4BB":["man_technologist_tone3","man_technologist_medium_skin_tone"],"1F468-1F3FE-200D-1F4BB":["man_technologist_tone4","man_technologist_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F4BB":["man_technologist_tone5","man_technologist_dark_skin_tone"],"1F9D1-200D-1F4BC":"office_worker","1F9D1-1F3FB-200D-1F4BC":["office_worker_tone1","office_worker_light_skin_tone"],"1F9D1-1F3FC-200D-1F4BC":["office_worker_tone2","office_worker_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F4BC":["office_worker_tone3","office_worker_medium_skin_tone"],"1F9D1-1F3FE-200D-1F4BC":["office_worker_tone4","office_worker_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F4BC":["office_worker_tone5","office_worker_dark_skin_tone"],"1F469-200D-1F4BC":"woman_office_worker","1F469-1F3FB-200D-1F4BC":["woman_office_worker_tone1","woman_office_worker_light_skin_tone"],"1F469-1F3FC-200D-1F4BC":["woman_office_worker_tone2","woman_office_worker_medium_light_skin_tone"],"1F469-1F3FD-200D-1F4BC":["woman_office_worker_tone3","woman_office_worker_medium_skin_tone"],"1F469-1F3FE-200D-1F4BC":["woman_office_worker_tone4","woman_office_worker_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F4BC":["woman_office_worker_tone5","woman_office_worker_dark_skin_tone"],"1F468-200D-1F4BC":"man_office_worker","1F468-1F3FB-200D-1F4BC":["man_office_worker_tone1","man_office_worker_light_skin_tone"],"1F468-1F3FC-200D-1F4BC":["man_office_worker_tone2","man_office_worker_medium_light_skin_tone"],"1F468-1F3FD-200D-1F4BC":["man_office_worker_tone3","man_office_worker_medium_skin_tone"],"1F468-1F3FE-200D-1F4BC":["man_office_worker_tone4","man_office_worker_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F4BC":["man_office_worker_tone5","man_office_worker_dark_skin_tone"],"1F9D1-200D-1F527":"mechanic","1F9D1-1F3FB-200D-1F527":["mechanic_tone1","mechanic_light_skin_tone"],"1F9D1-1F3FC-200D-1F527":["mechanic_tone2","mechanic_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F527":["mechanic_tone3","mechanic_medium_skin_tone"],"1F9D1-1F3FE-200D-1F527":["mechanic_tone4","mechanic_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F527":["mechanic_tone5","mechanic_dark_skin_tone"],"1F469-200D-1F527":"woman_mechanic","1F469-1F3FB-200D-1F527":["woman_mechanic_tone1","woman_mechanic_light_skin_tone"],"1F469-1F3FC-200D-1F527":["woman_mechanic_tone2","woman_mechanic_medium_light_skin_tone"],"1F469-1F3FD-200D-1F527":["woman_mechanic_tone3","woman_mechanic_medium_skin_tone"],"1F469-1F3FE-200D-1F527":["woman_mechanic_tone4","woman_mechanic_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F527":["woman_mechanic_tone5","woman_mechanic_dark_skin_tone"],"1F468-200D-1F527":"man_mechanic","1F468-1F3FB-200D-1F527":["man_mechanic_tone1","man_mechanic_light_skin_tone"],"1F468-1F3FC-200D-1F527":["man_mechanic_tone2","man_mechanic_medium_light_skin_tone"],"1F468-1F3FD-200D-1F527":["man_mechanic_tone3","man_mechanic_medium_skin_tone"],"1F468-1F3FE-200D-1F527":["man_mechanic_tone4","man_mechanic_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F527":["man_mechanic_tone5","man_mechanic_dark_skin_tone"],"1F9D1-200D-1F52C":"scientist","1F9D1-1F3FB-200D-1F52C":["scientist_tone1","scientist_light_skin_tone"],"1F9D1-1F3FC-200D-1F52C":["scientist_tone2","scientist_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F52C":["scientist_tone3","scientist_medium_skin_tone"],"1F9D1-1F3FE-200D-1F52C":["scientist_tone4","scientist_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F52C":["scientist_tone5","scientist_dark_skin_tone"],"1F469-200D-1F52C":"woman_scientist","1F469-1F3FB-200D-1F52C":["woman_scientist_tone1","woman_scientist_light_skin_tone"],"1F469-1F3FC-200D-1F52C":["woman_scientist_tone2","woman_scientist_medium_light_skin_tone"],"1F469-1F3FD-200D-1F52C":["woman_scientist_tone3","woman_scientist_medium_skin_tone"],"1F469-1F3FE-200D-1F52C":["woman_scientist_tone4","woman_scientist_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F52C":["woman_scientist_tone5","woman_scientist_dark_skin_tone"],"1F468-200D-1F52C":"man_scientist","1F468-1F3FB-200D-1F52C":["man_scientist_tone1","man_scientist_light_skin_tone"],"1F468-1F3FC-200D-1F52C":["man_scientist_tone2","man_scientist_medium_light_skin_tone"],"1F468-1F3FD-200D-1F52C":["man_scientist_tone3","man_scientist_medium_skin_tone"],"1F468-1F3FE-200D-1F52C":["man_scientist_tone4","man_scientist_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F52C":["man_scientist_tone5","man_scientist_dark_skin_tone"],"1F9D1-200D-1F3A8":"artist","1F9D1-1F3FB-200D-1F3A8":["artist_tone1","artist_light_skin_tone"],"1F9D1-1F3FC-200D-1F3A8":["artist_tone2","artist_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F3A8":["artist_tone3","artist_medium_skin_tone"],"1F9D1-1F3FE-200D-1F3A8":["artist_tone4","artist_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F3A8":["artist_tone5","artist_dark_skin_tone"],"1F469-200D-1F3A8":"woman_artist","1F469-1F3FB-200D-1F3A8":["woman_artist_tone1","woman_artist_light_skin_tone"],"1F469-1F3FC-200D-1F3A8":["woman_artist_tone2","woman_artist_medium_light_skin_tone"],"1F469-1F3FD-200D-1F3A8":["woman_artist_tone3","woman_artist_medium_skin_tone"],"1F469-1F3FE-200D-1F3A8":["woman_artist_tone4","woman_artist_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F3A8":["woman_artist_tone5","woman_artist_dark_skin_tone"],"1F468-200D-1F3A8":"man_artist","1F468-1F3FB-200D-1F3A8":["man_artist_tone1","man_artist_light_skin_tone"],"1F468-1F3FC-200D-1F3A8":["man_artist_tone2","man_artist_medium_light_skin_tone"],"1F468-1F3FD-200D-1F3A8":["man_artist_tone3","man_artist_medium_skin_tone"],"1F468-1F3FE-200D-1F3A8":["man_artist_tone4","man_artist_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F3A8":["man_artist_tone5","man_artist_dark_skin_tone"],"1F9D1-200D-1F692":"firefighter","1F9D1-1F3FB-200D-1F692":["firefighter_tone1","firefighter_light_skin_tone"],"1F9D1-1F3FC-200D-1F692":["firefighter_tone2","firefighter_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F692":["firefighter_tone3","firefighter_medium_skin_tone"],"1F9D1-1F3FE-200D-1F692":["firefighter_tone4","firefighter_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F692":["firefighter_tone5","firefighter_dark_skin_tone"],"1F469-200D-1F692":"woman_firefighter","1F469-1F3FB-200D-1F692":["woman_firefighter_tone1","woman_firefighter_light_skin_tone"],"1F469-1F3FC-200D-1F692":["woman_firefighter_tone2","woman_firefighter_medium_light_skin_tone"],"1F469-1F3FD-200D-1F692":["woman_firefighter_tone3","woman_firefighter_medium_skin_tone"],"1F469-1F3FE-200D-1F692":["woman_firefighter_tone4","woman_firefighter_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F692":["woman_firefighter_tone5","woman_firefighter_dark_skin_tone"],"1F468-200D-1F692":"man_firefighter","1F468-1F3FB-200D-1F692":["man_firefighter_tone1","man_firefighter_light_skin_tone"],"1F468-1F3FC-200D-1F692":["man_firefighter_tone2","man_firefighter_medium_light_skin_tone"],"1F468-1F3FD-200D-1F692":["man_firefighter_tone3","man_firefighter_medium_skin_tone"],"1F468-1F3FE-200D-1F692":["man_firefighter_tone4","man_firefighter_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F692":["man_firefighter_tone5","man_firefighter_dark_skin_tone"],"1F9D1-200D-2708-FE0F":"pilot","1F9D1-1F3FB-200D-2708-FE0F":["pilot_tone1","pilot_light_skin_tone"],"1F9D1-1F3FC-200D-2708-FE0F":["pilot_tone2","pilot_medium_light_skin_tone"],"1F9D1-1F3FD-200D-2708-FE0F":["pilot_tone3","pilot_medium_skin_tone"],"1F9D1-1F3FE-200D-2708-FE0F":["pilot_tone4","pilot_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-2708-FE0F":["pilot_tone5","pilot_dark_skin_tone"],"1F469-200D-2708-FE0F":"woman_pilot","1F469-1F3FB-200D-2708-FE0F":["woman_pilot_tone1","woman_pilot_light_skin_tone"],"1F469-1F3FC-200D-2708-FE0F":["woman_pilot_tone2","woman_pilot_medium_light_skin_tone"],"1F469-1F3FD-200D-2708-FE0F":["woman_pilot_tone3","woman_pilot_medium_skin_tone"],"1F469-1F3FE-200D-2708-FE0F":["woman_pilot_tone4","woman_pilot_medium_dark_skin_tone"],"1F469-1F3FF-200D-2708-FE0F":["woman_pilot_tone5","woman_pilot_dark_skin_tone"],"1F468-200D-2708-FE0F":"man_pilot","1F468-1F3FB-200D-2708-FE0F":["man_pilot_tone1","man_pilot_light_skin_tone"],"1F468-1F3FC-200D-2708-FE0F":["man_pilot_tone2","man_pilot_medium_light_skin_tone"],"1F468-1F3FD-200D-2708-FE0F":["man_pilot_tone3","man_pilot_medium_skin_tone"],"1F468-1F3FE-200D-2708-FE0F":["man_pilot_tone4","man_pilot_medium_dark_skin_tone"],"1F468-1F3FF-200D-2708-FE0F":["man_pilot_tone5","man_pilot_dark_skin_tone"],"1F9D1-200D-1F680":"astronaut","1F9D1-1F3FB-200D-1F680":["astronaut_tone1","astronaut_light_skin_tone"],"1F9D1-1F3FC-200D-1F680":["astronaut_tone2","astronaut_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F680":["astronaut_tone3","astronaut_medium_skin_tone"],"1F9D1-1F3FE-200D-1F680":["astronaut_tone4","astronaut_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F680":["astronaut_tone5","astronaut_dark_skin_tone"],"1F469-200D-1F680":"woman_astronaut","1F469-1F3FB-200D-1F680":["woman_astronaut_tone1","woman_astronaut_light_skin_tone"],"1F469-1F3FC-200D-1F680":["woman_astronaut_tone2","woman_astronaut_medium_light_skin_tone"],"1F469-1F3FD-200D-1F680":["woman_astronaut_tone3","woman_astronaut_medium_skin_tone"],"1F469-1F3FE-200D-1F680":["woman_astronaut_tone4","woman_astronaut_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F680":["woman_astronaut_tone5","woman_astronaut_dark_skin_tone"],"1F468-200D-1F680":"man_astronaut","1F468-1F3FB-200D-1F680":["man_astronaut_tone1","man_astronaut_light_skin_tone"],"1F468-1F3FC-200D-1F680":["man_astronaut_tone2","man_astronaut_medium_light_skin_tone"],"1F468-1F3FD-200D-1F680":["man_astronaut_tone3","man_astronaut_medium_skin_tone"],"1F468-1F3FE-200D-1F680":["man_astronaut_tone4","man_astronaut_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F680":["man_astronaut_tone5","man_astronaut_dark_skin_tone"],"1F9D1-200D-2696-FE0F":"judge","1F9D1-1F3FB-200D-2696-FE0F":["judge_tone1","judge_light_skin_tone"],"1F9D1-1F3FC-200D-2696-FE0F":["judge_tone2","judge_medium_light_skin_tone"],"1F9D1-1F3FD-200D-2696-FE0F":["judge_tone3","judge_medium_skin_tone"],"1F9D1-1F3FE-200D-2696-FE0F":["judge_tone4","judge_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-2696-FE0F":["judge_tone5","judge_dark_skin_tone"],"1F469-200D-2696-FE0F":"woman_judge","1F469-1F3FB-200D-2696-FE0F":["woman_judge_tone1","woman_judge_light_skin_tone"],"1F469-1F3FC-200D-2696-FE0F":["woman_judge_tone2","woman_judge_medium_light_skin_tone"],"1F469-1F3FD-200D-2696-FE0F":["woman_judge_tone3","woman_judge_medium_skin_tone"],"1F469-1F3FE-200D-2696-FE0F":["woman_judge_tone4","woman_judge_medium_dark_skin_tone"],"1F469-1F3FF-200D-2696-FE0F":["woman_judge_tone5","woman_judge_dark_skin_tone"],"1F468-200D-2696-FE0F":"man_judge","1F468-1F3FB-200D-2696-FE0F":["man_judge_tone1","man_judge_light_skin_tone"],"1F468-1F3FC-200D-2696-FE0F":["man_judge_tone2","man_judge_medium_light_skin_tone"],"1F468-1F3FD-200D-2696-FE0F":["man_judge_tone3","man_judge_medium_skin_tone"],"1F468-1F3FE-200D-2696-FE0F":["man_judge_tone4","man_judge_medium_dark_skin_tone"],"1F468-1F3FF-200D-2696-FE0F":["man_judge_tone5","man_judge_dark_skin_tone"],"1F470":"person_with_veil","1F470-1F3FB":"person_with_veil_tone1","1F470-1F3FC":"person_with_veil_tone2","1F470-1F3FD":"person_with_veil_tone3","1F470-1F3FE":"person_with_veil_tone4","1F470-1F3FF":"person_with_veil_tone5","1F470-200D-2640-FE0F":"woman_with_veil","1F470-1F3FB-200D-2640-FE0F":["woman_with_veil_tone1","woman_with_veil_light_skin_tone"],"1F470-1F3FC-200D-2640-FE0F":["woman_with_veil_tone2","woman_with_veil_medium_light_skin_tone"],"1F470-1F3FD-200D-2640-FE0F":["woman_with_veil_tone3","woman_with_veil_medium_skin_tone"],"1F470-1F3FE-200D-2640-FE0F":["woman_with_veil_tone4","woman_with_veil_medium_dark_skin_tone"],"1F470-1F3FF-200D-2640-FE0F":["woman_with_veil_tone5","woman_with_veil_dark_skin_tone"],"1F470-200D-2642-FE0F":"man_with_veil","1F470-1F3FB-200D-2642-FE0F":["man_with_veil_tone1","man_with_veil_light_skin_tone"],"1F470-1F3FC-200D-2642-FE0F":["man_with_veil_tone2","man_with_veil_medium_light_skin_tone"],"1F470-1F3FD-200D-2642-FE0F":["man_with_veil_tone3","man_with_veil_medium_skin_tone"],"1F470-1F3FE-200D-2642-FE0F":["man_with_veil_tone4","man_with_veil_medium_dark_skin_tone"],"1F470-1F3FF-200D-2642-FE0F":["man_with_veil_tone5","man_with_veil_dark_skin_tone"],"1F935":"person_in_tuxedo","1F935-1F3FB":["person_in_tuxedo_tone1","tuxedo_tone1"],"1F935-1F3FC":["person_in_tuxedo_tone2","tuxedo_tone2"],"1F935-1F3FD":["person_in_tuxedo_tone3","tuxedo_tone3"],"1F935-1F3FE":["person_in_tuxedo_tone4","tuxedo_tone4"],"1F935-1F3FF":["person_in_tuxedo_tone5","tuxedo_tone5"],"1F935-200D-2640-FE0F":"woman_in_tuxedo","1F935-1F3FB-200D-2640-FE0F":["woman_in_tuxedo_tone1","woman_in_tuxedo_light_skin_tone"],"1F935-1F3FC-200D-2640-FE0F":["woman_in_tuxedo_tone2","woman_in_tuxedo_medium_light_skin_tone"],"1F935-1F3FD-200D-2640-FE0F":["woman_in_tuxedo_tone3","woman_in_tuxedo_medium_skin_tone"],"1F935-1F3FE-200D-2640-FE0F":["woman_in_tuxedo_tone4","woman_in_tuxedo_medium_dark_skin_tone"],"1F935-1F3FF-200D-2640-FE0F":["woman_in_tuxedo_tone5","woman_in_tuxedo_dark_skin_tone"],"1F935-200D-2642-FE0F":"man_in_tuxedo","1F935-1F3FB-200D-2642-FE0F":["man_in_tuxedo_tone1","man_in_tuxedo_light_skin_tone"],"1F935-1F3FC-200D-2642-FE0F":["man_in_tuxedo_tone2","man_in_tuxedo_medium_light_skin_tone"],"1F935-1F3FD-200D-2642-FE0F":["man_in_tuxedo_tone3","man_in_tuxedo_medium_skin_tone"],"1F935-1F3FE-200D-2642-FE0F":["man_in_tuxedo_tone4","man_in_tuxedo_medium_dark_skin_tone"],"1F935-1F3FF-200D-2642-FE0F":["man_in_tuxedo_tone5","man_in_tuxedo_dark_skin_tone"],"1FAC5":"person_with_crown","1FAC5-1F3FB":["person_with_crown_tone1","person_with_crown_light_skin_tone"],"1FAC5-1F3FC":["person_with_crown_tone2","person_with_crown_medium_light_skin_tone"],"1FAC5-1F3FD":["person_with_crown_tone3","person_with_crown_medium_skin_tone"],"1FAC5-1F3FE":["person_with_crown_tone4","person_with_crown_medium_dark_skin_tone"],"1FAC5-1F3FF":["person_with_crown_tone5","person_with_crown_dark_skin_tone"],"1F478":"princess","1F478-1F3FB":"princess_tone1","1F478-1F3FC":"princess_tone2","1F478-1F3FD":"princess_tone3","1F478-1F3FE":"princess_tone4","1F478-1F3FF":"princess_tone5","1F934":"prince","1F934-1F3FB":"prince_tone1","1F934-1F3FC":"prince_tone2","1F934-1F3FD":"prince_tone3","1F934-1F3FE":"prince_tone4","1F934-1F3FF":"prince_tone5","1F9B8":"superhero","1F9B8-1F3FB":["superhero_tone1","superhero_light_skin_tone"],"1F9B8-1F3FC":["superhero_tone2","superhero_medium_light_skin_tone"],"1F9B8-1F3FD":["superhero_tone3","superhero_medium_skin_tone"],"1F9B8-1F3FE":["superhero_tone4","superhero_medium_dark_skin_tone"],"1F9B8-1F3FF":["superhero_tone5","superhero_dark_skin_tone"],"1F9B8-200D-2640-FE0F":"woman_superhero","1F9B8-1F3FB-200D-2640-FE0F":["woman_superhero_tone1","woman_superhero_light_skin_tone"],"1F9B8-1F3FC-200D-2640-FE0F":["woman_superhero_tone2","woman_superhero_medium_light_skin_tone"],"1F9B8-1F3FD-200D-2640-FE0F":["woman_superhero_tone3","woman_superhero_medium_skin_tone"],"1F9B8-1F3FE-200D-2640-FE0F":["woman_superhero_tone4","woman_superhero_medium_dark_skin_tone"],"1F9B8-1F3FF-200D-2640-FE0F":["woman_superhero_tone5","woman_superhero_dark_skin_tone"],"1F9B8-200D-2642-FE0F":"man_superhero","1F9B8-1F3FB-200D-2642-FE0F":["man_superhero_tone1","man_superhero_light_skin_tone"],"1F9B8-1F3FC-200D-2642-FE0F":["man_superhero_tone2","man_superhero_medium_light_skin_tone"],"1F9B8-1F3FD-200D-2642-FE0F":["man_superhero_tone3","man_superhero_medium_skin_tone"],"1F9B8-1F3FE-200D-2642-FE0F":["man_superhero_tone4","man_superhero_medium_dark_skin_tone"],"1F9B8-1F3FF-200D-2642-FE0F":["man_superhero_tone5","man_superhero_dark_skin_tone"],"1F9B9":"supervillain","1F9B9-1F3FB":["supervillain_tone1","supervillain_light_skin_tone"],"1F9B9-1F3FC":["supervillain_tone2","supervillain_medium_light_skin_tone"],"1F9B9-1F3FD":["supervillain_tone3","supervillain_medium_skin_tone"],"1F9B9-1F3FE":["supervillain_tone4","supervillain_medium_dark_skin_tone"],"1F9B9-1F3FF":["supervillain_tone5","supervillain_dark_skin_tone"],"1F9B9-200D-2640-FE0F":"woman_supervillain","1F9B9-1F3FB-200D-2640-FE0F":["woman_supervillain_tone1","woman_supervillain_light_skin_tone"],"1F9B9-1F3FC-200D-2640-FE0F":["woman_supervillain_tone2","woman_supervillain_medium_light_skin_tone"],"1F9B9-1F3FD-200D-2640-FE0F":["woman_supervillain_tone3","woman_supervillain_medium_skin_tone"],"1F9B9-1F3FE-200D-2640-FE0F":["woman_supervillain_tone4","woman_supervillain_medium_dark_skin_tone"],"1F9B9-1F3FF-200D-2640-FE0F":["woman_supervillain_tone5","woman_supervillain_dark_skin_tone"],"1F9B9-200D-2642-FE0F":"man_supervillain","1F9B9-1F3FB-200D-2642-FE0F":["man_supervillain_tone1","man_supervillain_light_skin_tone"],"1F9B9-1F3FC-200D-2642-FE0F":["man_supervillain_tone2","man_supervillain_medium_light_skin_tone"],"1F9B9-1F3FD-200D-2642-FE0F":["man_supervillain_tone3","man_supervillain_medium_skin_tone"],"1F9B9-1F3FE-200D-2642-FE0F":["man_supervillain_tone4","man_supervillain_medium_dark_skin_tone"],"1F9B9-1F3FF-200D-2642-FE0F":["man_supervillain_tone5","man_supervillain_dark_skin_tone"],"1F977":"ninja","1F977-1F3FB":["ninja_tone1","ninja_light_skin_tone"],"1F977-1F3FC":["ninja_tone2","ninja_medium_light_skin_tone"],"1F977-1F3FD":["ninja_tone3","ninja_medium_skin_tone"],"1F977-1F3FE":["ninja_tone4","ninja_medium_dark_skin_tone"],"1F977-1F3FF":["ninja_tone5","ninja_dark_skin_tone"],"1F9D1-200D-1F384":"mx_claus","1F9D1-1F3FB-200D-1F384":["mx_claus_tone1","mx_claus_light_skin_tone"],"1F9D1-1F3FC-200D-1F384":["mx_claus_tone2","mx_claus_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F384":["mx_claus_tone3","mx_claus_medium_skin_tone"],"1F9D1-1F3FE-200D-1F384":["mx_claus_tone4","mx_claus_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F384":["mx_claus_tone5","mx_claus_dark_skin_tone"],"1F936":["mrs_claus","mother_christmas"],"1F936-1F3FB":["mrs_claus_tone1","mother_christmas_tone1"],"1F936-1F3FC":["mrs_claus_tone2","mother_christmas_tone2"],"1F936-1F3FD":["mrs_claus_tone3","mother_christmas_tone3"],"1F936-1F3FE":["mrs_claus_tone4","mother_christmas_tone4"],"1F936-1F3FF":["mrs_claus_tone5","mother_christmas_tone5"],"1F385":["santa","santa_claus"],"1F385-1F3FB":"santa_tone1","1F385-1F3FC":"santa_tone2","1F385-1F3FD":"santa_tone3","1F385-1F3FE":"santa_tone4","1F385-1F3FF":"santa_tone5","1F9D9":"mage","1F9D9-1F3FB":["mage_tone1","mage_light_skin_tone"],"1F9D9-1F3FC":["mage_tone2","mage_medium_light_skin_tone"],"1F9D9-1F3FD":["mage_tone3","mage_medium_skin_tone"],"1F9D9-1F3FE":["mage_tone4","mage_medium_dark_skin_tone"],"1F9D9-1F3FF":["mage_tone5","mage_dark_skin_tone"],"1F9D9-200D-2640-FE0F":"woman_mage","1F9D9-1F3FB-200D-2640-FE0F":["woman_mage_tone1","woman_mage_light_skin_tone"],"1F9D9-1F3FC-200D-2640-FE0F":["woman_mage_tone2","woman_mage_medium_light_skin_tone"],"1F9D9-1F3FD-200D-2640-FE0F":["woman_mage_tone3","woman_mage_medium_skin_tone"],"1F9D9-1F3FE-200D-2640-FE0F":["woman_mage_tone4","woman_mage_medium_dark_skin_tone"],"1F9D9-1F3FF-200D-2640-FE0F":["woman_mage_tone5","woman_mage_dark_skin_tone"],"1F9D9-200D-2642-FE0F":"man_mage","1F9D9-1F3FB-200D-2642-FE0F":["man_mage_tone1","man_mage_light_skin_tone"],"1F9D9-1F3FC-200D-2642-FE0F":["man_mage_tone2","man_mage_medium_light_skin_tone"],"1F9D9-1F3FD-200D-2642-FE0F":["man_mage_tone3","man_mage_medium_skin_tone"],"1F9D9-1F3FE-200D-2642-FE0F":["man_mage_tone4","man_mage_medium_dark_skin_tone"],"1F9D9-1F3FF-200D-2642-FE0F":["man_mage_tone5","man_mage_dark_skin_tone"],"1F9DD":"elf","1F9DD-1F3FB":["elf_tone1","elf_light_skin_tone"],"1F9DD-1F3FC":["elf_tone2","elf_medium_light_skin_tone"],"1F9DD-1F3FD":["elf_tone3","elf_medium_skin_tone"],"1F9DD-1F3FE":["elf_tone4","elf_medium_dark_skin_tone"],"1F9DD-1F3FF":["elf_tone5","elf_dark_skin_tone"],"1F9DD-200D-2640-FE0F":"woman_elf","1F9DD-1F3FB-200D-2640-FE0F":["woman_elf_tone1","woman_elf_light_skin_tone"],"1F9DD-1F3FC-200D-2640-FE0F":["woman_elf_tone2","woman_elf_medium_light_skin_tone"],"1F9DD-1F3FD-200D-2640-FE0F":["woman_elf_tone3","woman_elf_medium_skin_tone"],"1F9DD-1F3FE-200D-2640-FE0F":["woman_elf_tone4","woman_elf_medium_dark_skin_tone"],"1F9DD-1F3FF-200D-2640-FE0F":["woman_elf_tone5","woman_elf_dark_skin_tone"],"1F9DD-200D-2642-FE0F":"man_elf","1F9DD-1F3FB-200D-2642-FE0F":["man_elf_tone1","man_elf_light_skin_tone"],"1F9DD-1F3FC-200D-2642-FE0F":["man_elf_tone2","man_elf_medium_light_skin_tone"],"1F9DD-1F3FD-200D-2642-FE0F":["man_elf_tone3","man_elf_medium_skin_tone"],"1F9DD-1F3FE-200D-2642-FE0F":["man_elf_tone4","man_elf_medium_dark_skin_tone"],"1F9DD-1F3FF-200D-2642-FE0F":["man_elf_tone5","man_elf_dark_skin_tone"],"1F9CC":"troll","1F9DB":"vampire","1F9DB-1F3FB":["vampire_tone1","vampire_light_skin_tone"],"1F9DB-1F3FC":["vampire_tone2","vampire_medium_light_skin_tone"],"1F9DB-1F3FD":["vampire_tone3","vampire_medium_skin_tone"],"1F9DB-1F3FE":["vampire_tone4","vampire_medium_dark_skin_tone"],"1F9DB-1F3FF":["vampire_tone5","vampire_dark_skin_tone"],"1F9DB-200D-2640-FE0F":"woman_vampire","1F9DB-1F3FB-200D-2640-FE0F":["woman_vampire_tone1","woman_vampire_light_skin_tone"],"1F9DB-1F3FC-200D-2640-FE0F":["woman_vampire_tone2","woman_vampire_medium_light_skin_tone"],"1F9DB-1F3FD-200D-2640-FE0F":["woman_vampire_tone3","woman_vampire_medium_skin_tone"],"1F9DB-1F3FE-200D-2640-FE0F":["woman_vampire_tone4","woman_vampire_medium_dark_skin_tone"],"1F9DB-1F3FF-200D-2640-FE0F":["woman_vampire_tone5","woman_vampire_dark_skin_tone"],"1F9DB-200D-2642-FE0F":"man_vampire","1F9DB-1F3FB-200D-2642-FE0F":["man_vampire_tone1","man_vampire_light_skin_tone"],"1F9DB-1F3FC-200D-2642-FE0F":["man_vampire_tone2","man_vampire_medium_light_skin_tone"],"1F9DB-1F3FD-200D-2642-FE0F":["man_vampire_tone3","man_vampire_medium_skin_tone"],"1F9DB-1F3FE-200D-2642-FE0F":["man_vampire_tone4","man_vampire_medium_dark_skin_tone"],"1F9DB-1F3FF-200D-2642-FE0F":["man_vampire_tone5","man_vampire_dark_skin_tone"],"1F9DF":"zombie","1F9DF-200D-2640-FE0F":"woman_zombie","1F9DF-200D-2642-FE0F":"man_zombie","1F9DE":"genie","1F9DE-200D-2640-FE0F":"woman_genie","1F9DE-200D-2642-FE0F":"man_genie","1F9DC":"merperson","1F9DC-1F3FB":["merperson_tone1","merperson_light_skin_tone"],"1F9DC-1F3FC":["merperson_tone2","merperson_medium_light_skin_tone"],"1F9DC-1F3FD":["merperson_tone3","merperson_medium_skin_tone"],"1F9DC-1F3FE":["merperson_tone4","merperson_medium_dark_skin_tone"],"1F9DC-1F3FF":["merperson_tone5","merperson_dark_skin_tone"],"1F9DC-200D-2640-FE0F":"mermaid","1F9DC-1F3FB-200D-2640-FE0F":["mermaid_tone1","mermaid_light_skin_tone"],"1F9DC-1F3FC-200D-2640-FE0F":["mermaid_tone2","mermaid_medium_light_skin_tone"],"1F9DC-1F3FD-200D-2640-FE0F":["mermaid_tone3","mermaid_medium_skin_tone"],"1F9DC-1F3FE-200D-2640-FE0F":["mermaid_tone4","mermaid_medium_dark_skin_tone"],"1F9DC-1F3FF-200D-2640-FE0F":["mermaid_tone5","mermaid_dark_skin_tone"],"1F9DC-200D-2642-FE0F":"merman","1F9DC-1F3FB-200D-2642-FE0F":["merman_tone1","merman_light_skin_tone"],"1F9DC-1F3FC-200D-2642-FE0F":["merman_tone2","merman_medium_light_skin_tone"],"1F9DC-1F3FD-200D-2642-FE0F":["merman_tone3","merman_medium_skin_tone"],"1F9DC-1F3FE-200D-2642-FE0F":["merman_tone4","merman_medium_dark_skin_tone"],"1F9DC-1F3FF-200D-2642-FE0F":["merman_tone5","merman_dark_skin_tone"],"1F9DA":"fairy","1F9DA-1F3FB":["fairy_tone1","fairy_light_skin_tone"],"1F9DA-1F3FC":["fairy_tone2","fairy_medium_light_skin_tone"],"1F9DA-1F3FD":["fairy_tone3","fairy_medium_skin_tone"],"1F9DA-1F3FE":["fairy_tone4","fairy_medium_dark_skin_tone"],"1F9DA-1F3FF":["fairy_tone5","fairy_dark_skin_tone"],"1F9DA-200D-2640-FE0F":"woman_fairy","1F9DA-1F3FB-200D-2640-FE0F":["woman_fairy_tone1","woman_fairy_light_skin_tone"],"1F9DA-1F3FC-200D-2640-FE0F":["woman_fairy_tone2","woman_fairy_medium_light_skin_tone"],"1F9DA-1F3FD-200D-2640-FE0F":["woman_fairy_tone3","woman_fairy_medium_skin_tone"],"1F9DA-1F3FE-200D-2640-FE0F":["woman_fairy_tone4","woman_fairy_medium_dark_skin_tone"],"1F9DA-1F3FF-200D-2640-FE0F":["woman_fairy_tone5","woman_fairy_dark_skin_tone"],"1F9DA-200D-2642-FE0F":"man_fairy","1F9DA-1F3FB-200D-2642-FE0F":["man_fairy_tone1","man_fairy_light_skin_tone"],"1F9DA-1F3FC-200D-2642-FE0F":["man_fairy_tone2","man_fairy_medium_light_skin_tone"],"1F9DA-1F3FD-200D-2642-FE0F":["man_fairy_tone3","man_fairy_medium_skin_tone"],"1F9DA-1F3FE-200D-2642-FE0F":["man_fairy_tone4","man_fairy_medium_dark_skin_tone"],"1F9DA-1F3FF-200D-2642-FE0F":["man_fairy_tone5","man_fairy_dark_skin_tone"],"1F47C":["angel","baby_angel"],"1F47C-1F3FB":"angel_tone1","1F47C-1F3FC":"angel_tone2","1F47C-1F3FD":"angel_tone3","1F47C-1F3FE":"angel_tone4","1F47C-1F3FF":"angel_tone5","1FAC4":"pregnant_person","1FAC4-1F3FB":["pregnant_person_tone1","pregnant_person_light_skin_tone"],"1FAC4-1F3FC":["pregnant_person_tone2","pregnant_person_medium_light_skin_tone"],"1FAC4-1F3FD":["pregnant_person_tone3","pregnant_person_medium_skin_tone"],"1FAC4-1F3FE":["pregnant_person_tone4","pregnant_person_medium_dark_skin_tone"],"1FAC4-1F3FF":["pregnant_person_tone5","pregnant_person_dark_skin_tone"],"1F930":["pregnant_woman","expecting_woman"],"1F930-1F3FB":["pregnant_woman_tone1","expecting_woman_tone1"],"1F930-1F3FC":["pregnant_woman_tone2","expecting_woman_tone2"],"1F930-1F3FD":["pregnant_woman_tone3","expecting_woman_tone3"],"1F930-1F3FE":["pregnant_woman_tone4","expecting_woman_tone4"],"1F930-1F3FF":["pregnant_woman_tone5","expecting_woman_tone5"],"1FAC3":"pregnant_man","1FAC3-1F3FB":["pregnant_man_tone1","pregnant_man_light_skin_tone"],"1FAC3-1F3FC":["pregnant_man_tone2","pregnant_man_medium_light_skin_tone"],"1FAC3-1F3FD":["pregnant_man_tone3","pregnant_man_medium_skin_tone"],"1FAC3-1F3FE":["pregnant_man_tone4","pregnant_man_medium_dark_skin_tone"],"1FAC3-1F3FF":["pregnant_man_tone5","pregnant_man_dark_skin_tone"],"1F931":"breast_feeding","1F931-1F3FB":["breast_feeding_tone1","breast_feeding_light_skin_tone"],"1F931-1F3FC":["breast_feeding_tone2","breast_feeding_medium_light_skin_tone"],"1F931-1F3FD":["breast_feeding_tone3","breast_feeding_medium_skin_tone"],"1F931-1F3FE":["breast_feeding_tone4","breast_feeding_medium_dark_skin_tone"],"1F931-1F3FF":["breast_feeding_tone5","breast_feeding_dark_skin_tone"],"1F9D1-200D-1F37C":"person_feeding_baby","1F9D1-1F3FB-200D-1F37C":["person_feeding_baby_tone1","person_feeding_baby_light_skin_tone"],"1F9D1-1F3FC-200D-1F37C":["person_feeding_baby_tone2","person_feeding_baby_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F37C":["person_feeding_baby_tone3","person_feeding_baby_medium_skin_tone"],"1F9D1-1F3FE-200D-1F37C":["person_feeding_baby_tone4","person_feeding_baby_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F37C":["person_feeding_baby_tone5","person_feeding_baby_dark_skin_tone"],"1F469-200D-1F37C":"woman_feeding_baby","1F469-1F3FB-200D-1F37C":["woman_feeding_baby_tone1","woman_feeding_baby_light_skin_tone"],"1F469-1F3FC-200D-1F37C":["woman_feeding_baby_tone2","woman_feeding_baby_medium_light_skin_tone"],"1F469-1F3FD-200D-1F37C":["woman_feeding_baby_tone3","woman_feeding_baby_medium_skin_tone"],"1F469-1F3FE-200D-1F37C":["woman_feeding_baby_tone4","woman_feeding_baby_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F37C":["woman_feeding_baby_tone5","woman_feeding_baby_dark_skin_tone"],"1F468-200D-1F37C":"man_feeding_baby","1F468-1F3FB-200D-1F37C":["man_feeding_baby_tone1","man_feeding_baby_light_skin_tone"],"1F468-1F3FC-200D-1F37C":["man_feeding_baby_tone2","man_feeding_baby_medium_light_skin_tone"],"1F468-1F3FD-200D-1F37C":["man_feeding_baby_tone3","man_feeding_baby_medium_skin_tone"],"1F468-1F3FE-200D-1F37C":["man_feeding_baby_tone4","man_feeding_baby_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F37C":["man_feeding_baby_tone5","man_feeding_baby_dark_skin_tone"],"1F647":["person_bowing","bow"],"1F647-1F3FB":["person_bowing_tone1","bow_tone1"],"1F647-1F3FC":["person_bowing_tone2","bow_tone2"],"1F647-1F3FD":["person_bowing_tone3","bow_tone3"],"1F647-1F3FE":["person_bowing_tone4","bow_tone4"],"1F647-1F3FF":["person_bowing_tone5","bow_tone5"],"1F647-200D-2640-FE0F":"woman_bowing","1F647-1F3FB-200D-2640-FE0F":["woman_bowing_tone1","woman_bowing_light_skin_tone"],"1F647-1F3FC-200D-2640-FE0F":["woman_bowing_tone2","woman_bowing_medium_light_skin_tone"],"1F647-1F3FD-200D-2640-FE0F":["woman_bowing_tone3","woman_bowing_medium_skin_tone"],"1F647-1F3FE-200D-2640-FE0F":["woman_bowing_tone4","woman_bowing_medium_dark_skin_tone"],"1F647-1F3FF-200D-2640-FE0F":["woman_bowing_tone5","woman_bowing_dark_skin_tone"],"1F647-200D-2642-FE0F":"man_bowing","1F647-1F3FB-200D-2642-FE0F":["man_bowing_tone1","man_bowing_light_skin_tone"],"1F647-1F3FC-200D-2642-FE0F":["man_bowing_tone2","man_bowing_medium_light_skin_tone"],"1F647-1F3FD-200D-2642-FE0F":["man_bowing_tone3","man_bowing_medium_skin_tone"],"1F647-1F3FE-200D-2642-FE0F":["man_bowing_tone4","man_bowing_medium_dark_skin_tone"],"1F647-1F3FF-200D-2642-FE0F":["man_bowing_tone5","man_bowing_dark_skin_tone"],"1F481":["person_tipping_hand","information_desk_person"],"1F481-1F3FB":["person_tipping_hand_tone1","information_desk_person_tone1"],"1F481-1F3FC":["person_tipping_hand_tone2","information_desk_person_tone2"],"1F481-1F3FD":["person_tipping_hand_tone3","information_desk_person_tone3"],"1F481-1F3FE":["person_tipping_hand_tone4","information_desk_person_tone4"],"1F481-1F3FF":["person_tipping_hand_tone5","information_desk_person_tone5"],"1F481-200D-2640-FE0F":"woman_tipping_hand","1F481-1F3FB-200D-2640-FE0F":["woman_tipping_hand_tone1","woman_tipping_hand_light_skin_tone"],"1F481-1F3FC-200D-2640-FE0F":["woman_tipping_hand_tone2","woman_tipping_hand_medium_light_skin_tone"],"1F481-1F3FD-200D-2640-FE0F":["woman_tipping_hand_tone3","woman_tipping_hand_medium_skin_tone"],"1F481-1F3FE-200D-2640-FE0F":["woman_tipping_hand_tone4","woman_tipping_hand_medium_dark_skin_tone"],"1F481-1F3FF-200D-2640-FE0F":["woman_tipping_hand_tone5","woman_tipping_hand_dark_skin_tone"],"1F481-200D-2642-FE0F":"man_tipping_hand","1F481-1F3FB-200D-2642-FE0F":["man_tipping_hand_tone1","man_tipping_hand_light_skin_tone"],"1F481-1F3FC-200D-2642-FE0F":["man_tipping_hand_tone2","man_tipping_hand_medium_light_skin_tone"],"1F481-1F3FD-200D-2642-FE0F":["man_tipping_hand_tone3","man_tipping_hand_medium_skin_tone"],"1F481-1F3FE-200D-2642-FE0F":["man_tipping_hand_tone4","man_tipping_hand_medium_dark_skin_tone"],"1F481-1F3FF-200D-2642-FE0F":["man_tipping_hand_tone5","man_tipping_hand_dark_skin_tone"],"1F645":["person_gesturing_no","no_good"],"1F645-1F3FB":["person_gesturing_no_tone1","no_good_tone1"],"1F645-1F3FC":["person_gesturing_no_tone2","no_good_tone2"],"1F645-1F3FD":["person_gesturing_no_tone3","no_good_tone3"],"1F645-1F3FE":["person_gesturing_no_tone4","no_good_tone4"],"1F645-1F3FF":["person_gesturing_no_tone5","no_good_tone5"],"1F645-200D-2640-FE0F":"woman_gesturing_no","1F645-1F3FB-200D-2640-FE0F":["woman_gesturing_no_tone1","woman_gesturing_no_light_skin_tone"],"1F645-1F3FC-200D-2640-FE0F":["woman_gesturing_no_tone2","woman_gesturing_no_medium_light_skin_tone"],"1F645-1F3FD-200D-2640-FE0F":["woman_gesturing_no_tone3","woman_gesturing_no_medium_skin_tone"],"1F645-1F3FE-200D-2640-FE0F":["woman_gesturing_no_tone4","woman_gesturing_no_medium_dark_skin_tone"],"1F645-1F3FF-200D-2640-FE0F":["woman_gesturing_no_tone5","woman_gesturing_no_dark_skin_tone"],"1F645-200D-2642-FE0F":"man_gesturing_no","1F645-1F3FB-200D-2642-FE0F":["man_gesturing_no_tone1","man_gesturing_no_light_skin_tone"],"1F645-1F3FC-200D-2642-FE0F":["man_gesturing_no_tone2","man_gesturing_no_medium_light_skin_tone"],"1F645-1F3FD-200D-2642-FE0F":["man_gesturing_no_tone3","man_gesturing_no_medium_skin_tone"],"1F645-1F3FE-200D-2642-FE0F":["man_gesturing_no_tone4","man_gesturing_no_medium_dark_skin_tone"],"1F645-1F3FF-200D-2642-FE0F":["man_gesturing_no_tone5","man_gesturing_no_dark_skin_tone"],"1F646":["person_gesturing_ok","ok_woman"],"1F646-1F3FB":["person_gesturing_ok_tone1","ok_woman_tone1"],"1F646-1F3FC":["person_gesturing_ok_tone2","ok_woman_tone2"],"1F646-1F3FD":["person_gesturing_ok_tone3","ok_woman_tone3"],"1F646-1F3FE":["person_gesturing_ok_tone4","ok_woman_tone4"],"1F646-1F3FF":["person_gesturing_ok_tone5","ok_woman_tone5"],"1F646-200D-2640-FE0F":"woman_gesturing_ok","1F646-1F3FB-200D-2640-FE0F":["woman_gesturing_ok_tone1","woman_gesturing_ok_light_skin_tone"],"1F646-1F3FC-200D-2640-FE0F":["woman_gesturing_ok_tone2","woman_gesturing_ok_medium_light_skin_tone"],"1F646-1F3FD-200D-2640-FE0F":["woman_gesturing_ok_tone3","woman_gesturing_ok_medium_skin_tone"],"1F646-1F3FE-200D-2640-FE0F":["woman_gesturing_ok_tone4","woman_gesturing_ok_medium_dark_skin_tone"],"1F646-1F3FF-200D-2640-FE0F":["woman_gesturing_ok_tone5","woman_gesturing_ok_dark_skin_tone"],"1F646-200D-2642-FE0F":"man_gesturing_ok","1F646-1F3FB-200D-2642-FE0F":["man_gesturing_ok_tone1","man_gesturing_ok_light_skin_tone"],"1F646-1F3FC-200D-2642-FE0F":["man_gesturing_ok_tone2","man_gesturing_ok_medium_light_skin_tone"],"1F646-1F3FD-200D-2642-FE0F":["man_gesturing_ok_tone3","man_gesturing_ok_medium_skin_tone"],"1F646-1F3FE-200D-2642-FE0F":["man_gesturing_ok_tone4","man_gesturing_ok_medium_dark_skin_tone"],"1F646-1F3FF-200D-2642-FE0F":["man_gesturing_ok_tone5","man_gesturing_ok_dark_skin_tone"],"1F64B":["person_raising_hand","raising_hand"],"1F64B-1F3FB":["person_raising_hand_tone1","raising_hand_tone1"],"1F64B-1F3FC":["person_raising_hand_tone2","raising_hand_tone2"],"1F64B-1F3FD":["person_raising_hand_tone3","raising_hand_tone3"],"1F64B-1F3FE":["person_raising_hand_tone4","raising_hand_tone4"],"1F64B-1F3FF":["person_raising_hand_tone5","raising_hand_tone5"],"1F64B-200D-2640-FE0F":"woman_raising_hand","1F64B-1F3FB-200D-2640-FE0F":["woman_raising_hand_tone1","woman_raising_hand_light_skin_tone"],"1F64B-1F3FC-200D-2640-FE0F":["woman_raising_hand_tone2","woman_raising_hand_medium_light_skin_tone"],"1F64B-1F3FD-200D-2640-FE0F":["woman_raising_hand_tone3","woman_raising_hand_medium_skin_tone"],"1F64B-1F3FE-200D-2640-FE0F":["woman_raising_hand_tone4","woman_raising_hand_medium_dark_skin_tone"],"1F64B-1F3FF-200D-2640-FE0F":["woman_raising_hand_tone5","woman_raising_hand_dark_skin_tone"],"1F64B-200D-2642-FE0F":"man_raising_hand","1F64B-1F3FB-200D-2642-FE0F":["man_raising_hand_tone1","man_raising_hand_light_skin_tone"],"1F64B-1F3FC-200D-2642-FE0F":["man_raising_hand_tone2","man_raising_hand_medium_light_skin_tone"],"1F64B-1F3FD-200D-2642-FE0F":["man_raising_hand_tone3","man_raising_hand_medium_skin_tone"],"1F64B-1F3FE-200D-2642-FE0F":["man_raising_hand_tone4","man_raising_hand_medium_dark_skin_tone"],"1F64B-1F3FF-200D-2642-FE0F":["man_raising_hand_tone5","man_raising_hand_dark_skin_tone"],"1F9CF":"deaf_person","1F9CF-1F3FB":["deaf_person_tone1","deaf_person_light_skin_tone"],"1F9CF-1F3FC":["deaf_person_tone2","deaf_person_medium_light_skin_tone"],"1F9CF-1F3FD":["deaf_person_tone3","deaf_person_medium_skin_tone"],"1F9CF-1F3FE":["deaf_person_tone4","deaf_person_medium_dark_skin_tone"],"1F9CF-1F3FF":["deaf_person_tone5","deaf_person_dark_skin_tone"],"1F9CF-200D-2640-FE0F":"deaf_woman","1F9CF-1F3FB-200D-2640-FE0F":["deaf_woman_tone1","deaf_woman_light_skin_tone"],"1F9CF-1F3FC-200D-2640-FE0F":["deaf_woman_tone2","deaf_woman_medium_light_skin_tone"],"1F9CF-1F3FD-200D-2640-FE0F":["deaf_woman_tone3","deaf_woman_medium_skin_tone"],"1F9CF-1F3FE-200D-2640-FE0F":["deaf_woman_tone4","deaf_woman_medium_dark_skin_tone"],"1F9CF-1F3FF-200D-2640-FE0F":["deaf_woman_tone5","deaf_woman_dark_skin_tone"],"1F9CF-200D-2642-FE0F":"deaf_man","1F9CF-1F3FB-200D-2642-FE0F":["deaf_man_tone1","deaf_man_light_skin_tone"],"1F9CF-1F3FC-200D-2642-FE0F":["deaf_man_tone2","deaf_man_medium_light_skin_tone"],"1F9CF-1F3FD-200D-2642-FE0F":["deaf_man_tone3","deaf_man_medium_skin_tone"],"1F9CF-1F3FE-200D-2642-FE0F":["deaf_man_tone4","deaf_man_medium_dark_skin_tone"],"1F9CF-1F3FF-200D-2642-FE0F":["deaf_man_tone5","deaf_man_dark_skin_tone"],"1F926":["person_facepalming","face_palm","facepalm"],"1F926-1F3FB":["person_facepalming_tone1","face_palm_tone1","facepalm_tone1"],"1F926-1F3FC":["person_facepalming_tone2","face_palm_tone2","facepalm_tone2"],"1F926-1F3FD":["person_facepalming_tone3","face_palm_tone3","facepalm_tone3"],"1F926-1F3FE":["person_facepalming_tone4","face_palm_tone4","facepalm_tone4"],"1F926-1F3FF":["person_facepalming_tone5","face_palm_tone5","facepalm_tone5"],"1F926-200D-2640-FE0F":"woman_facepalming","1F926-1F3FB-200D-2640-FE0F":["woman_facepalming_tone1","woman_facepalming_light_skin_tone"],"1F926-1F3FC-200D-2640-FE0F":["woman_facepalming_tone2","woman_facepalming_medium_light_skin_tone"],"1F926-1F3FD-200D-2640-FE0F":["woman_facepalming_tone3","woman_facepalming_medium_skin_tone"],"1F926-1F3FE-200D-2640-FE0F":["woman_facepalming_tone4","woman_facepalming_medium_dark_skin_tone"],"1F926-1F3FF-200D-2640-FE0F":["woman_facepalming_tone5","woman_facepalming_dark_skin_tone"],"1F926-200D-2642-FE0F":"man_facepalming","1F926-1F3FB-200D-2642-FE0F":["man_facepalming_tone1","man_facepalming_light_skin_tone"],"1F926-1F3FC-200D-2642-FE0F":["man_facepalming_tone2","man_facepalming_medium_light_skin_tone"],"1F926-1F3FD-200D-2642-FE0F":["man_facepalming_tone3","man_facepalming_medium_skin_tone"],"1F926-1F3FE-200D-2642-FE0F":["man_facepalming_tone4","man_facepalming_medium_dark_skin_tone"],"1F926-1F3FF-200D-2642-FE0F":["man_facepalming_tone5","man_facepalming_dark_skin_tone"],"1F937":["person_shrugging","shrug"],"1F937-1F3FB":["person_shrugging_tone1","shrug_tone1"],"1F937-1F3FC":["person_shrugging_tone2","shrug_tone2"],"1F937-1F3FD":["person_shrugging_tone3","shrug_tone3"],"1F937-1F3FE":["person_shrugging_tone4","shrug_tone4"],"1F937-1F3FF":["person_shrugging_tone5","shrug_tone5"],"1F937-200D-2640-FE0F":"woman_shrugging","1F937-1F3FB-200D-2640-FE0F":["woman_shrugging_tone1","woman_shrugging_light_skin_tone"],"1F937-1F3FC-200D-2640-FE0F":["woman_shrugging_tone2","woman_shrugging_medium_light_skin_tone"],"1F937-1F3FD-200D-2640-FE0F":["woman_shrugging_tone3","woman_shrugging_medium_skin_tone"],"1F937-1F3FE-200D-2640-FE0F":["woman_shrugging_tone4","woman_shrugging_medium_dark_skin_tone"],"1F937-1F3FF-200D-2640-FE0F":["woman_shrugging_tone5","woman_shrugging_dark_skin_tone"],"1F937-200D-2642-FE0F":"man_shrugging","1F937-1F3FB-200D-2642-FE0F":["man_shrugging_tone1","man_shrugging_light_skin_tone"],"1F937-1F3FC-200D-2642-FE0F":["man_shrugging_tone2","man_shrugging_medium_light_skin_tone"],"1F937-1F3FD-200D-2642-FE0F":["man_shrugging_tone3","man_shrugging_medium_skin_tone"],"1F937-1F3FE-200D-2642-FE0F":["man_shrugging_tone4","man_shrugging_medium_dark_skin_tone"],"1F937-1F3FF-200D-2642-FE0F":["man_shrugging_tone5","man_shrugging_dark_skin_tone"],"1F64E":["person_pouting","person_with_pouting_face"],"1F64E-1F3FB":["person_pouting_tone1","person_with_pouting_face_tone1"],"1F64E-1F3FC":["person_pouting_tone2","person_with_pouting_face_tone2"],"1F64E-1F3FD":["person_pouting_tone3","person_with_pouting_face_tone3"],"1F64E-1F3FE":["person_pouting_tone4","person_with_pouting_face_tone4"],"1F64E-1F3FF":["person_pouting_tone5","person_with_pouting_face_tone5"],"1F64E-200D-2640-FE0F":"woman_pouting","1F64E-1F3FB-200D-2640-FE0F":["woman_pouting_tone1","woman_pouting_light_skin_tone"],"1F64E-1F3FC-200D-2640-FE0F":["woman_pouting_tone2","woman_pouting_medium_light_skin_tone"],"1F64E-1F3FD-200D-2640-FE0F":["woman_pouting_tone3","woman_pouting_medium_skin_tone"],"1F64E-1F3FE-200D-2640-FE0F":["woman_pouting_tone4","woman_pouting_medium_dark_skin_tone"],"1F64E-1F3FF-200D-2640-FE0F":["woman_pouting_tone5","woman_pouting_dark_skin_tone"],"1F64E-200D-2642-FE0F":"man_pouting","1F64E-1F3FB-200D-2642-FE0F":["man_pouting_tone1","man_pouting_light_skin_tone"],"1F64E-1F3FC-200D-2642-FE0F":["man_pouting_tone2","man_pouting_medium_light_skin_tone"],"1F64E-1F3FD-200D-2642-FE0F":["man_pouting_tone3","man_pouting_medium_skin_tone"],"1F64E-1F3FE-200D-2642-FE0F":["man_pouting_tone4","man_pouting_medium_dark_skin_tone"],"1F64E-1F3FF-200D-2642-FE0F":["man_pouting_tone5","man_pouting_dark_skin_tone"],"1F64D":"person_frowning","1F64D-1F3FB":"person_frowning_tone1","1F64D-1F3FC":"person_frowning_tone2","1F64D-1F3FD":"person_frowning_tone3","1F64D-1F3FE":"person_frowning_tone4","1F64D-1F3FF":"person_frowning_tone5","1F64D-200D-2640-FE0F":"woman_frowning","1F64D-1F3FB-200D-2640-FE0F":["woman_frowning_tone1","woman_frowning_light_skin_tone"],"1F64D-1F3FC-200D-2640-FE0F":["woman_frowning_tone2","woman_frowning_medium_light_skin_tone"],"1F64D-1F3FD-200D-2640-FE0F":["woman_frowning_tone3","woman_frowning_medium_skin_tone"],"1F64D-1F3FE-200D-2640-FE0F":["woman_frowning_tone4","woman_frowning_medium_dark_skin_tone"],"1F64D-1F3FF-200D-2640-FE0F":["woman_frowning_tone5","woman_frowning_dark_skin_tone"],"1F64D-200D-2642-FE0F":"man_frowning","1F64D-1F3FB-200D-2642-FE0F":["man_frowning_tone1","man_frowning_light_skin_tone"],"1F64D-1F3FC-200D-2642-FE0F":["man_frowning_tone2","man_frowning_medium_light_skin_tone"],"1F64D-1F3FD-200D-2642-FE0F":["man_frowning_tone3","man_frowning_medium_skin_tone"],"1F64D-1F3FE-200D-2642-FE0F":["man_frowning_tone4","man_frowning_medium_dark_skin_tone"],"1F64D-1F3FF-200D-2642-FE0F":["man_frowning_tone5","man_frowning_dark_skin_tone"],"1F487":["person_getting_haircut","haircut"],"1F487-1F3FB":["person_getting_haircut_tone1","haircut_tone1"],"1F487-1F3FC":["person_getting_haircut_tone2","haircut_tone2"],"1F487-1F3FD":["person_getting_haircut_tone3","haircut_tone3"],"1F487-1F3FE":["person_getting_haircut_tone4","haircut_tone4"],"1F487-1F3FF":["person_getting_haircut_tone5","haircut_tone5"],"1F487-200D-2640-FE0F":"woman_getting_haircut","1F487-1F3FB-200D-2640-FE0F":["woman_getting_haircut_tone1","woman_getting_haircut_light_skin_tone"],"1F487-1F3FC-200D-2640-FE0F":["woman_getting_haircut_tone2","woman_getting_haircut_medium_light_skin_tone"],"1F487-1F3FD-200D-2640-FE0F":["woman_getting_haircut_tone3","woman_getting_haircut_medium_skin_tone"],"1F487-1F3FE-200D-2640-FE0F":["woman_getting_haircut_tone4","woman_getting_haircut_medium_dark_skin_tone"],"1F487-1F3FF-200D-2640-FE0F":["woman_getting_haircut_tone5","woman_getting_haircut_dark_skin_tone"],"1F487-200D-2642-FE0F":"man_getting_haircut","1F487-1F3FB-200D-2642-FE0F":["man_getting_haircut_tone1","man_getting_haircut_light_skin_tone"],"1F487-1F3FC-200D-2642-FE0F":["man_getting_haircut_tone2","man_getting_haircut_medium_light_skin_tone"],"1F487-1F3FD-200D-2642-FE0F":["man_getting_haircut_tone3","man_getting_haircut_medium_skin_tone"],"1F487-1F3FE-200D-2642-FE0F":["man_getting_haircut_tone4","man_getting_haircut_medium_dark_skin_tone"],"1F487-1F3FF-200D-2642-FE0F":["man_getting_haircut_tone5","man_getting_haircut_dark_skin_tone"],"1F486":["person_getting_massage","massage"],"1F486-1F3FB":["person_getting_massage_tone1","massage_tone1"],"1F486-1F3FC":["person_getting_massage_tone2","massage_tone2"],"1F486-1F3FD":["person_getting_massage_tone3","massage_tone3"],"1F486-1F3FE":["person_getting_massage_tone4","massage_tone4"],"1F486-1F3FF":["person_getting_massage_tone5","massage_tone5"],"1F486-200D-2640-FE0F":"woman_getting_face_massage","1F486-1F3FB-200D-2640-FE0F":["woman_getting_face_massage_tone1","woman_getting_face_massage_light_skin_tone"],"1F486-1F3FC-200D-2640-FE0F":["woman_getting_face_massage_tone2","woman_getting_face_massage_medium_light_skin_tone"],"1F486-1F3FD-200D-2640-FE0F":["woman_getting_face_massage_tone3","woman_getting_face_massage_medium_skin_tone"],"1F486-1F3FE-200D-2640-FE0F":["woman_getting_face_massage_tone4","woman_getting_face_massage_medium_dark_skin_tone"],"1F486-1F3FF-200D-2640-FE0F":["woman_getting_face_massage_tone5","woman_getting_face_massage_dark_skin_tone"],"1F486-200D-2642-FE0F":"man_getting_face_massage","1F486-1F3FB-200D-2642-FE0F":["man_getting_face_massage_tone1","man_getting_face_massage_light_skin_tone"],"1F486-1F3FC-200D-2642-FE0F":["man_getting_face_massage_tone2","man_getting_face_massage_medium_light_skin_tone"],"1F486-1F3FD-200D-2642-FE0F":["man_getting_face_massage_tone3","man_getting_face_massage_medium_skin_tone"],"1F486-1F3FE-200D-2642-FE0F":["man_getting_face_massage_tone4","man_getting_face_massage_medium_dark_skin_tone"],"1F486-1F3FF-200D-2642-FE0F":["man_getting_face_massage_tone5","man_getting_face_massage_dark_skin_tone"],"1F9D6":"person_in_steamy_room","1F9D6-1F3FB":["person_in_steamy_room_tone1","person_in_steamy_room_light_skin_tone"],"1F9D6-1F3FC":["person_in_steamy_room_tone2","person_in_steamy_room_medium_light_skin_tone"],"1F9D6-1F3FD":["person_in_steamy_room_tone3","person_in_steamy_room_medium_skin_tone"],"1F9D6-1F3FE":["person_in_steamy_room_tone4","person_in_steamy_room_medium_dark_skin_tone"],"1F9D6-1F3FF":["person_in_steamy_room_tone5","person_in_steamy_room_dark_skin_tone"],"1F9D6-200D-2640-FE0F":"woman_in_steamy_room","1F9D6-1F3FB-200D-2640-FE0F":["woman_in_steamy_room_tone1","woman_in_steamy_room_light_skin_tone"],"1F9D6-1F3FC-200D-2640-FE0F":["woman_in_steamy_room_tone2","woman_in_steamy_room_medium_light_skin_tone"],"1F9D6-1F3FD-200D-2640-FE0F":["woman_in_steamy_room_tone3","woman_in_steamy_room_medium_skin_tone"],"1F9D6-1F3FE-200D-2640-FE0F":["woman_in_steamy_room_tone4","woman_in_steamy_room_medium_dark_skin_tone"],"1F9D6-1F3FF-200D-2640-FE0F":["woman_in_steamy_room_tone5","woman_in_steamy_room_dark_skin_tone"],"1F9D6-200D-2642-FE0F":"man_in_steamy_room","1F9D6-1F3FB-200D-2642-FE0F":["man_in_steamy_room_tone1","man_in_steamy_room_light_skin_tone"],"1F9D6-1F3FC-200D-2642-FE0F":["man_in_steamy_room_tone2","man_in_steamy_room_medium_light_skin_tone"],"1F9D6-1F3FD-200D-2642-FE0F":["man_in_steamy_room_tone3","man_in_steamy_room_medium_skin_tone"],"1F9D6-1F3FE-200D-2642-FE0F":["man_in_steamy_room_tone4","man_in_steamy_room_medium_dark_skin_tone"],"1F9D6-1F3FF-200D-2642-FE0F":["man_in_steamy_room_tone5","man_in_steamy_room_dark_skin_tone"],"1F485":["nail_care","nail_polish"],"1F485-1F3FB":"nail_care_tone1","1F485-1F3FC":"nail_care_tone2","1F485-1F3FD":"nail_care_tone3","1F485-1F3FE":"nail_care_tone4","1F485-1F3FF":"nail_care_tone5","1F933":"selfie","1F933-1F3FB":"selfie_tone1","1F933-1F3FC":"selfie_tone2","1F933-1F3FD":"selfie_tone3","1F933-1F3FE":"selfie_tone4","1F933-1F3FF":"selfie_tone5","1F483":["dancer","woman_dancing"],"1F483-1F3FB":"dancer_tone1","1F483-1F3FC":"dancer_tone2","1F483-1F3FD":"dancer_tone3","1F483-1F3FE":"dancer_tone4","1F483-1F3FF":"dancer_tone5","1F57A":["man_dancing","male_dancer"],"1F57A-1F3FB":["man_dancing_tone1","male_dancer_tone1"],"1F57A-1F3FC":["man_dancing_tone2","male_dancer_tone2"],"1F57A-1F3FD":["man_dancing_tone3","male_dancer_tone3"],"1F57A-1F3FF":["man_dancing_tone5","male_dancer_tone5"],"1F57A-1F3FE":["man_dancing_tone4","male_dancer_tone4"],"1F46F":["people_with_bunny_ears_partying","dancers"],"1F46F-200D-2640-FE0F":"women_with_bunny_ears_partying","1F46F-200D-2642-FE0F":"men_with_bunny_ears_partying","1F574":["levitate","man_in_business_suit_levitating"],"1F574-1F3FB":["levitate_tone1","man_in_business_suit_levitating_tone1","man_in_business_suit_levitating_light_skin_tone"],"1F574-1F3FC":["levitate_tone2","man_in_business_suit_levitating_tone2","man_in_business_suit_levitating_medium_light_skin_tone"],"1F574-1F3FD":["levitate_tone3","man_in_business_suit_levitating_tone3","man_in_business_suit_levitating_medium_skin_tone"],"1F574-1F3FE":["levitate_tone4","man_in_business_suit_levitating_tone4","man_in_business_suit_levitating_medium_dark_skin_tone"],"1F574-1F3FF":["levitate_tone5","man_in_business_suit_levitating_tone5","man_in_business_suit_levitating_dark_skin_tone"],"1F9D1-200D-1F9BD":"person_in_manual_wheelchair","1F9D1-1F3FB-200D-1F9BD":["person_in_manual_wheelchair_tone1","person_in_manual_wheelchair_light_skin_tone"],"1F9D1-1F3FC-200D-1F9BD":["person_in_manual_wheelchair_tone2","person_in_manual_wheelchair_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F9BD":["person_in_manual_wheelchair_tone3","person_in_manual_wheelchair_medium_skin_tone"],"1F9D1-1F3FE-200D-1F9BD":["person_in_manual_wheelchair_tone4","person_in_manual_wheelchair_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F9BD":["person_in_manual_wheelchair_tone5","person_in_manual_wheelchair_dark_skin_tone"],"1F469-200D-1F9BD":"woman_in_manual_wheelchair","1F469-1F3FB-200D-1F9BD":["woman_in_manual_wheelchair_tone1","woman_in_manual_wheelchair_light_skin_tone"],"1F469-1F3FC-200D-1F9BD":["woman_in_manual_wheelchair_tone2","woman_in_manual_wheelchair_medium_light_skin_tone"],"1F469-1F3FD-200D-1F9BD":["woman_in_manual_wheelchair_tone3","woman_in_manual_wheelchair_medium_skin_tone"],"1F469-1F3FE-200D-1F9BD":["woman_in_manual_wheelchair_tone4","woman_in_manual_wheelchair_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F9BD":["woman_in_manual_wheelchair_tone5","woman_in_manual_wheelchair_dark_skin_tone"],"1F468-200D-1F9BD":"man_in_manual_wheelchair","1F468-1F3FB-200D-1F9BD":["man_in_manual_wheelchair_tone1","man_in_manual_wheelchair_light_skin_tone"],"1F468-1F3FC-200D-1F9BD":["man_in_manual_wheelchair_tone2","man_in_manual_wheelchair_medium_light_skin_tone"],"1F468-1F3FD-200D-1F9BD":["man_in_manual_wheelchair_tone3","man_in_manual_wheelchair_medium_skin_tone"],"1F468-1F3FE-200D-1F9BD":["man_in_manual_wheelchair_tone4","man_in_manual_wheelchair_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F9BD":["man_in_manual_wheelchair_tone5","man_in_manual_wheelchair_dark_skin_tone"],"1F9D1-200D-1F9BC":"person_in_motorized_wheelchair","1F9D1-1F3FB-200D-1F9BC":["person_in_motorized_wheelchair_tone1","person_in_motorized_wheelchair_light_skin_tone"],"1F9D1-1F3FC-200D-1F9BC":["person_in_motorized_wheelchair_tone2","person_in_motorized_wheelchair_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F9BC":["person_in_motorized_wheelchair_tone3","person_in_motorized_wheelchair_medium_skin_tone"],"1F9D1-1F3FE-200D-1F9BC":["person_in_motorized_wheelchair_tone4","person_in_motorized_wheelchair_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F9BC":["person_in_motorized_wheelchair_tone5","person_in_motorized_wheelchair_dark_skin_tone"],"1F469-200D-1F9BC":"woman_in_motorized_wheelchair","1F469-1F3FB-200D-1F9BC":["woman_in_motorized_wheelchair_tone1","woman_in_motorized_wheelchair_light_skin_tone"],"1F469-1F3FC-200D-1F9BC":["woman_in_motorized_wheelchair_tone2","woman_in_motorized_wheelchair_medium_light_skin_tone"],"1F469-1F3FD-200D-1F9BC":["woman_in_motorized_wheelchair_tone3","woman_in_motorized_wheelchair_medium_skin_tone"],"1F469-1F3FE-200D-1F9BC":["woman_in_motorized_wheelchair_tone4","woman_in_motorized_wheelchair_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F9BC":["woman_in_motorized_wheelchair_tone5","woman_in_motorized_wheelchair_dark_skin_tone"],"1F468-200D-1F9BC":"man_in_motorized_wheelchair","1F468-1F3FB-200D-1F9BC":["man_in_motorized_wheelchair_tone1","man_in_motorized_wheelchair_light_skin_tone"],"1F468-1F3FC-200D-1F9BC":["man_in_motorized_wheelchair_tone2","man_in_motorized_wheelchair_medium_light_skin_tone"],"1F468-1F3FD-200D-1F9BC":["man_in_motorized_wheelchair_tone3","man_in_motorized_wheelchair_medium_skin_tone"],"1F468-1F3FE-200D-1F9BC":["man_in_motorized_wheelchair_tone4","man_in_motorized_wheelchair_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F9BC":["man_in_motorized_wheelchair_tone5","man_in_motorized_wheelchair_dark_skin_tone"],"1F6B6":["person_walking","walking"],"1F6B6-1F3FB":["person_walking_tone1","walking_tone1"],"1F6B6-1F3FC":["person_walking_tone2","walking_tone2"],"1F6B6-1F3FD":["person_walking_tone3","walking_tone3"],"1F6B6-1F3FE":["person_walking_tone4","walking_tone4"],"1F6B6-1F3FF":["person_walking_tone5","walking_tone5"],"1F6B6-200D-2640-FE0F":"woman_walking","1F6B6-1F3FB-200D-2640-FE0F":["woman_walking_tone1","woman_walking_light_skin_tone"],"1F6B6-1F3FC-200D-2640-FE0F":["woman_walking_tone2","woman_walking_medium_light_skin_tone"],"1F6B6-1F3FD-200D-2640-FE0F":["woman_walking_tone3","woman_walking_medium_skin_tone"],"1F6B6-1F3FE-200D-2640-FE0F":["woman_walking_tone4","woman_walking_medium_dark_skin_tone"],"1F6B6-1F3FF-200D-2640-FE0F":["woman_walking_tone5","woman_walking_dark_skin_tone"],"1F6B6-200D-2642-FE0F":"man_walking","1F6B6-1F3FB-200D-2642-FE0F":["man_walking_tone1","man_walking_light_skin_tone"],"1F6B6-1F3FC-200D-2642-FE0F":["man_walking_tone2","man_walking_medium_light_skin_tone"],"1F6B6-1F3FD-200D-2642-FE0F":["man_walking_tone3","man_walking_medium_skin_tone"],"1F6B6-1F3FE-200D-2642-FE0F":["man_walking_tone4","man_walking_medium_dark_skin_tone"],"1F6B6-1F3FF-200D-2642-FE0F":["man_walking_tone5","man_walking_dark_skin_tone"],"1F9D1-200D-1F9AF":"person_with_probing_cane","1F9D1-1F3FB-200D-1F9AF":["person_with_probing_cane_tone1","person_with_probing_cane_light_skin_tone"],"1F9D1-1F3FC-200D-1F9AF":["person_with_probing_cane_tone2","person_with_probing_cane_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F9AF":["person_with_probing_cane_tone3","person_with_probing_cane_medium_skin_tone"],"1F9D1-1F3FE-200D-1F9AF":["person_with_probing_cane_tone4","person_with_probing_cane_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F9AF":["person_with_probing_cane_tone5","person_with_probing_cane_dark_skin_tone"],"1F469-200D-1F9AF":"woman_with_probing_cane","1F469-1F3FB-200D-1F9AF":["woman_with_probing_cane_tone1","woman_with_probing_cane_light_skin_tone"],"1F469-1F3FC-200D-1F9AF":["woman_with_probing_cane_tone2","woman_with_probing_cane_medium_light_skin_tone"],"1F469-1F3FD-200D-1F9AF":["woman_with_probing_cane_tone3","woman_with_probing_cane_medium_skin_tone"],"1F469-1F3FE-200D-1F9AF":["woman_with_probing_cane_tone4","woman_with_probing_cane_medium_dark_skin_tone"],"1F469-1F3FF-200D-1F9AF":["woman_with_probing_cane_tone5","woman_with_probing_cane_dark_skin_tone"],"1F468-200D-1F9AF":"man_with_probing_cane","1F468-1F3FB-200D-1F9AF":["man_with_probing_cane_tone1","man_with_probing_cane_light_skin_tone"],"1F468-1F3FC-200D-1F9AF":["man_with_probing_cane_tone2","man_with_probing_cane_medium_light_skin_tone"],"1F468-1F3FD-200D-1F9AF":["man_with_probing_cane_tone3","man_with_probing_cane_medium_skin_tone"],"1F468-1F3FE-200D-1F9AF":["man_with_probing_cane_tone4","man_with_probing_cane_medium_dark_skin_tone"],"1F468-1F3FF-200D-1F9AF":["man_with_probing_cane_tone5","man_with_probing_cane_dark_skin_tone"],"1F9CE":"person_kneeling","1F9CE-1F3FB":["person_kneeling_tone1","person_kneeling_light_skin_tone"],"1F9CE-1F3FC":["person_kneeling_tone2","person_kneeling_medium_light_skin_tone"],"1F9CE-1F3FD":["person_kneeling_tone3","person_kneeling_medium_skin_tone"],"1F9CE-1F3FE":["person_kneeling_tone4","person_kneeling_medium_dark_skin_tone"],"1F9CE-1F3FF":["person_kneeling_tone5","person_kneeling_dark_skin_tone"],"1F9CE-200D-2640-FE0F":"woman_kneeling","1F9CE-1F3FB-200D-2640-FE0F":["woman_kneeling_tone1","woman_kneeling_light_skin_tone"],"1F9CE-1F3FC-200D-2640-FE0F":["woman_kneeling_tone2","woman_kneeling_medium_light_skin_tone"],"1F9CE-1F3FD-200D-2640-FE0F":["woman_kneeling_tone3","woman_kneeling_medium_skin_tone"],"1F9CE-1F3FE-200D-2640-FE0F":["woman_kneeling_tone4","woman_kneeling_medium_dark_skin_tone"],"1F9CE-1F3FF-200D-2640-FE0F":["woman_kneeling_tone5","woman_kneeling_dark_skin_tone"],"1F9CE-200D-2642-FE0F":"man_kneeling","1F9CE-1F3FB-200D-2642-FE0F":["man_kneeling_tone1","man_kneeling_light_skin_tone"],"1F9CE-1F3FC-200D-2642-FE0F":["man_kneeling_tone2","man_kneeling_medium_light_skin_tone"],"1F9CE-1F3FD-200D-2642-FE0F":["man_kneeling_tone3","man_kneeling_medium_skin_tone"],"1F9CE-1F3FE-200D-2642-FE0F":["man_kneeling_tone4","man_kneeling_medium_dark_skin_tone"],"1F9CE-1F3FF-200D-2642-FE0F":["man_kneeling_tone5","man_kneeling_dark_skin_tone"],"1F3C3":["person_running","runner"],"1F3C3-1F3FB":["person_running_tone1","runner_tone1"],"1F3C3-1F3FC":["person_running_tone2","runner_tone2"],"1F3C3-1F3FD":["person_running_tone3","runner_tone3"],"1F3C3-1F3FE":["person_running_tone4","runner_tone4"],"1F3C3-1F3FF":["person_running_tone5","runner_tone5"],"1F3C3-200D-2640-FE0F":"woman_running","1F3C3-1F3FB-200D-2640-FE0F":["woman_running_tone1","woman_running_light_skin_tone"],"1F3C3-1F3FC-200D-2640-FE0F":["woman_running_tone2","woman_running_medium_light_skin_tone"],"1F3C3-1F3FD-200D-2640-FE0F":["woman_running_tone3","woman_running_medium_skin_tone"],"1F3C3-1F3FE-200D-2640-FE0F":["woman_running_tone4","woman_running_medium_dark_skin_tone"],"1F3C3-1F3FF-200D-2640-FE0F":["woman_running_tone5","woman_running_dark_skin_tone"],"1F3C3-200D-2642-FE0F":"man_running","1F3C3-1F3FB-200D-2642-FE0F":["man_running_tone1","man_running_light_skin_tone"],"1F3C3-1F3FC-200D-2642-FE0F":["man_running_tone2","man_running_medium_light_skin_tone"],"1F3C3-1F3FD-200D-2642-FE0F":["man_running_tone3","man_running_medium_skin_tone"],"1F3C3-1F3FE-200D-2642-FE0F":["man_running_tone4","man_running_medium_dark_skin_tone"],"1F3C3-1F3FF-200D-2642-FE0F":["man_running_tone5","man_running_dark_skin_tone"],"1F9CD":"person_standing","1F9CD-1F3FB":["person_standing_tone1","person_standing_light_skin_tone"],"1F9CD-1F3FC":["person_standing_tone2","person_standing_medium_light_skin_tone"],"1F9CD-1F3FD":["person_standing_tone3","person_standing_medium_skin_tone"],"1F9CD-1F3FE":["person_standing_tone4","person_standing_medium_dark_skin_tone"],"1F9CD-1F3FF":["person_standing_tone5","person_standing_dark_skin_tone"],"1F9CD-200D-2640-FE0F":"woman_standing","1F9CD-1F3FB-200D-2640-FE0F":["woman_standing_tone1","woman_standing_light_skin_tone"],"1F9CD-1F3FC-200D-2640-FE0F":["woman_standing_tone2","woman_standing_medium_light_skin_tone"],"1F9CD-1F3FD-200D-2640-FE0F":["woman_standing_tone3","woman_standing_medium_skin_tone"],"1F9CD-1F3FE-200D-2640-FE0F":["woman_standing_tone4","woman_standing_medium_dark_skin_tone"],"1F9CD-1F3FF-200D-2640-FE0F":["woman_standing_tone5","woman_standing_dark_skin_tone"],"1F9CD-200D-2642-FE0F":"man_standing","1F9CD-1F3FB-200D-2642-FE0F":["man_standing_tone1","man_standing_light_skin_tone"],"1F9CD-1F3FC-200D-2642-FE0F":["man_standing_tone2","man_standing_medium_light_skin_tone"],"1F9CD-1F3FD-200D-2642-FE0F":["man_standing_tone3","man_standing_medium_skin_tone"],"1F9CD-1F3FE-200D-2642-FE0F":["man_standing_tone4","man_standing_medium_dark_skin_tone"],"1F9CD-1F3FF-200D-2642-FE0F":["man_standing_tone5","man_standing_dark_skin_tone"],"1F9D1-200D-1F91D-200D-1F9D1":"people_holding_hands","1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FB":["people_holding_hands_tone1","people_holding_hands_light_skin_tone"],"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FC":["people_holding_hands_tone1_tone2","people_holding_hands_light_skin_tone_medium_light_skin_tone"],"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FD":["people_holding_hands_tone1_tone3","people_holding_hands_light_skin_tone_medium_skin_tone"],"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FE":["people_holding_hands_tone1_tone4","people_holding_hands_light_skin_tone_medium_dark_skin_tone"],"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FF":["people_holding_hands_tone1_tone5","people_holding_hands_light_skin_tone_dark_skin_tone"],"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FB":["people_holding_hands_tone2_tone1","people_holding_hands_medium_light_skin_tone_light_skin_tone"],"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FC":["people_holding_hands_tone2","people_holding_hands_medium_light_skin_tone"],"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FD":["people_holding_hands_tone2_tone3","people_holding_hands_medium_light_skin_tone_medium_skin_tone"],"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FE":["people_holding_hands_tone2_tone4","people_holding_hands_medium_light_skin_tone_medium_dark_skin_tone"],"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FF":["people_holding_hands_tone2_tone5","people_holding_hands_medium_light_skin_tone_dark_skin_tone"],"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FB":["people_holding_hands_tone3_tone1","people_holding_hands_medium_skin_tone_light_skin_tone"],"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FC":["people_holding_hands_tone3_tone2","people_holding_hands_medium_skin_tone_medium_light_skin_tone"],"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FD":["people_holding_hands_tone3","people_holding_hands_medium_skin_tone"],"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FE":["people_holding_hands_tone3_tone4","people_holding_hands_medium_skin_tone_medium_dark_skin_tone"],"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FF":["people_holding_hands_tone3_tone5","people_holding_hands_medium_skin_tone_dark_skin_tone"],"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FB":["people_holding_hands_tone4_tone1","people_holding_hands_medium_dark_skin_tone_light_skin_tone"],"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FC":["people_holding_hands_tone4_tone2","people_holding_hands_medium_dark_skin_tone_medium_light_skin_tone"],"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FD":["people_holding_hands_tone4_tone3","people_holding_hands_medium_dark_skin_tone_medium_skin_tone"],"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FE":["people_holding_hands_tone4","people_holding_hands_medium_dark_skin_tone"],"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FF":["people_holding_hands_tone4_tone5","people_holding_hands_medium_dark_skin_tone_dark_skin_tone"],"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FB":["people_holding_hands_tone5_tone1","people_holding_hands_dark_skin_tone_light_skin_tone"],"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FC":["people_holding_hands_tone5_tone2","people_holding_hands_dark_skin_tone_medium_light_skin_tone"],"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FD":["people_holding_hands_tone5_tone3","people_holding_hands_dark_skin_tone_medium_skin_tone"],"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FE":["people_holding_hands_tone5_tone4","people_holding_hands_dark_skin_tone_medium_dark_skin_tone"],"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FF":["people_holding_hands_tone5","people_holding_hands_dark_skin_tone"],"1F46B":"couple","1F46B-1F3FB":["woman_and_man_holding_hands_tone1","woman_and_man_holding_hands_light_skin_tone"],"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FC":["woman_and_man_holding_hands_tone1_tone2","woman_and_man_holding_hands_light_skin_tone_medium_light_skin_tone"],"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FD":["woman_and_man_holding_hands_tone1_tone3","woman_and_man_holding_hands_light_skin_tone_medium_skin_tone"],"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FE":["woman_and_man_holding_hands_tone1_tone4","woman_and_man_holding_hands_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FF":["woman_and_man_holding_hands_tone1_tone5","woman_and_man_holding_hands_light_skin_tone_dark_skin_tone"],"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FB":["woman_and_man_holding_hands_tone2_tone1","woman_and_man_holding_hands_medium_light_skin_tone_light_skin_tone"],"1F46B-1F3FC":["woman_and_man_holding_hands_tone2","woman_and_man_holding_hands_medium_light_skin_tone"],"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FD":["woman_and_man_holding_hands_tone2_tone3","woman_and_man_holding_hands_medium_light_skin_tone_medium_skin_tone"],"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FE":["woman_and_man_holding_hands_tone2_tone4","woman_and_man_holding_hands_medium_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FF":["woman_and_man_holding_hands_tone2_tone5","woman_and_man_holding_hands_medium_light_skin_tone_dark_skin_tone"],"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FB":["woman_and_man_holding_hands_tone3_tone1","woman_and_man_holding_hands_medium_skin_tone_light_skin_tone"],"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FC":["woman_and_man_holding_hands_tone3_tone2","woman_and_man_holding_hands_medium_skin_tone_medium_light_skin_tone"],"1F46B-1F3FD":["woman_and_man_holding_hands_tone3","woman_and_man_holding_hands_medium_skin_tone"],"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FE":["woman_and_man_holding_hands_tone3_tone4","woman_and_man_holding_hands_medium_skin_tone_medium_dark_skin_tone"],"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FF":["woman_and_man_holding_hands_tone3_tone5","woman_and_man_holding_hands_medium_skin_tone_dark_skin_tone"],"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FB":["woman_and_man_holding_hands_tone4_tone1","woman_and_man_holding_hands_medium_dark_skin_tone_light_skin_tone"],"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FC":["woman_and_man_holding_hands_tone4_tone2","woman_and_man_holding_hands_medium_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FD":["woman_and_man_holding_hands_tone4_tone3","woman_and_man_holding_hands_medium_dark_skin_tone_medium_skin_tone"],"1F46B-1F3FE":["woman_and_man_holding_hands_tone4","woman_and_man_holding_hands_medium_dark_skin_tone"],"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FF":["woman_and_man_holding_hands_tone4_tone5","woman_and_man_holding_hands_medium_dark_skin_tone_dark_skin_tone"],"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FB":["woman_and_man_holding_hands_tone5_tone1","woman_and_man_holding_hands_dark_skin_tone_light_skin_tone"],"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FC":["woman_and_man_holding_hands_tone5_tone2","woman_and_man_holding_hands_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FD":["woman_and_man_holding_hands_tone5_tone3","woman_and_man_holding_hands_dark_skin_tone_medium_skin_tone"],"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FE":["woman_and_man_holding_hands_tone5_tone4","woman_and_man_holding_hands_dark_skin_tone_medium_dark_skin_tone"],"1F46B-1F3FF":["woman_and_man_holding_hands_tone5","woman_and_man_holding_hands_dark_skin_tone"],"1F46D":"two_women_holding_hands","1F46D-1F3FB":["women_holding_hands_tone1","women_holding_hands_light_skin_tone"],"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FC":["women_holding_hands_tone1_tone2","women_holding_hands_light_skin_tone_medium_light_skin_tone"],"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FD":["women_holding_hands_tone1_tone3","women_holding_hands_light_skin_tone_medium_skin_tone"],"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FE":["women_holding_hands_tone1_tone4","women_holding_hands_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FF":["women_holding_hands_tone1_tone5","women_holding_hands_light_skin_tone_dark_skin_tone"],"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FB":["women_holding_hands_tone2_tone1","women_holding_hands_medium_light_skin_tone_light_skin_tone"],"1F46D-1F3FC":["women_holding_hands_tone2","women_holding_hands_medium_light_skin_tone"],"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FD":["women_holding_hands_tone2_tone3","women_holding_hands_medium_light_skin_tone_medium_skin_tone"],"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FE":["women_holding_hands_tone2_tone4","women_holding_hands_medium_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FF":["women_holding_hands_tone2_tone5","women_holding_hands_medium_light_skin_tone_dark_skin_tone"],"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FB":["women_holding_hands_tone3_tone1","women_holding_hands_medium_skin_tone_light_skin_tone"],"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FC":["women_holding_hands_tone3_tone2","women_holding_hands_medium_skin_tone_medium_light_skin_tone"],"1F46D-1F3FD":["women_holding_hands_tone3","women_holding_hands_medium_skin_tone"],"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FE":["women_holding_hands_tone3_tone4","women_holding_hands_medium_skin_tone_medium_dark_skin_tone"],"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FF":["women_holding_hands_tone3_tone5","women_holding_hands_medium_skin_tone_dark_skin_tone"],"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FB":["women_holding_hands_tone4_tone1","women_holding_hands_medium_dark_skin_tone_light_skin_tone"],"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FC":["women_holding_hands_tone4_tone2","women_holding_hands_medium_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FD":["women_holding_hands_tone4_tone3","women_holding_hands_medium_dark_skin_tone_medium_skin_tone"],"1F46D-1F3FE":["women_holding_hands_tone4","women_holding_hands_medium_dark_skin_tone"],"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FF":["women_holding_hands_tone4_tone5","women_holding_hands_medium_dark_skin_tone_dark_skin_tone"],"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FB":["women_holding_hands_tone5_tone1","women_holding_hands_dark_skin_tone_light_skin_tone"],"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FC":["women_holding_hands_tone5_tone2","women_holding_hands_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FD":["women_holding_hands_tone5_tone3","women_holding_hands_dark_skin_tone_medium_skin_tone"],"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FE":["women_holding_hands_tone5_tone4","women_holding_hands_dark_skin_tone_medium_dark_skin_tone"],"1F46D-1F3FF":["women_holding_hands_tone5","women_holding_hands_dark_skin_tone"],"1F46C":"two_men_holding_hands","1F46C-1F3FB":["men_holding_hands_tone1","men_holding_hands_light_skin_tone"],"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FC":["men_holding_hands_tone1_tone2","men_holding_hands_light_skin_tone_medium_light_skin_tone"],"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FD":["men_holding_hands_tone1_tone3","men_holding_hands_light_skin_tone_medium_skin_tone"],"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FE":["men_holding_hands_tone1_tone4","men_holding_hands_light_skin_tone_medium_dark_skin_tone"],"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FF":["men_holding_hands_tone1_tone5","men_holding_hands_light_skin_tone_dark_skin_tone"],"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FB":["men_holding_hands_tone2_tone1","men_holding_hands_medium_light_skin_tone_light_skin_tone"],"1F46C-1F3FC":["men_holding_hands_tone2","men_holding_hands_medium_light_skin_tone"],"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FD":["men_holding_hands_tone2_tone3","men_holding_hands_medium_light_skin_tone_medium_skin_tone"],"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FE":["men_holding_hands_tone2_tone4","men_holding_hands_medium_light_skin_tone_medium_dark_skin_tone"],"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FF":["men_holding_hands_tone2_tone5","men_holding_hands_medium_light_skin_tone_dark_skin_tone"],"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FB":["men_holding_hands_tone3_tone1","men_holding_hands_medium_skin_tone_light_skin_tone"],"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FC":["men_holding_hands_tone3_tone2","men_holding_hands_medium_skin_tone_medium_light_skin_tone"],"1F46C-1F3FD":["men_holding_hands_tone3","men_holding_hands_medium_skin_tone"],"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FE":["men_holding_hands_tone3_tone4","men_holding_hands_medium_skin_tone_medium_dark_skin_tone"],"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FF":["men_holding_hands_tone3_tone5","men_holding_hands_medium_skin_tone_dark_skin_tone"],"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FB":["men_holding_hands_tone4_tone1","men_holding_hands_medium_dark_skin_tone_light_skin_tone"],"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FC":["men_holding_hands_tone4_tone2","men_holding_hands_medium_dark_skin_tone_medium_light_skin_tone"],"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FD":["men_holding_hands_tone4_tone3","men_holding_hands_medium_dark_skin_tone_medium_skin_tone"],"1F46C-1F3FE":["men_holding_hands_tone4","men_holding_hands_medium_dark_skin_tone"],"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FF":["men_holding_hands_tone4_tone5","men_holding_hands_medium_dark_skin_tone_dark_skin_tone"],"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FB":["men_holding_hands_tone5_tone1","men_holding_hands_dark_skin_tone_light_skin_tone"],"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FC":["men_holding_hands_tone5_tone2","men_holding_hands_dark_skin_tone_medium_light_skin_tone"],"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FD":["men_holding_hands_tone5_tone3","men_holding_hands_dark_skin_tone_medium_skin_tone"],"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FE":["men_holding_hands_tone5_tone4","men_holding_hands_dark_skin_tone_medium_dark_skin_tone"],"1F46C-1F3FF":["men_holding_hands_tone5","men_holding_hands_dark_skin_tone"],"1F491":"couple_with_heart","1F491-1F3FB":["couple_with_heart_tone1","couple_with_heart_light_skin_tone"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FC":["couple_with_heart_person_person_tone1_tone2","couple_with_heart_person_person_light_skin_tone_medium_light_skin_tone"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FD":["couple_with_heart_person_person_tone1_tone3","couple_with_heart_person_person_light_skin_tone_medium_skin_tone"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FE":["couple_with_heart_person_person_tone1_tone4","couple_with_heart_person_person_light_skin_tone_medium_dark_skin_tone"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FF":["couple_with_heart_person_person_tone1_tone5","couple_with_heart_person_person_light_skin_tone_dark_skin_tone"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FB":["couple_with_heart_person_person_tone2_tone1","couple_with_heart_person_person_medium_light_skin_tone_light_skin_tone"],"1F491-1F3FC":["couple_with_heart_tone2","couple_with_heart_medium_light_skin_tone"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FD":["couple_with_heart_person_person_tone2_tone3","couple_with_heart_person_person_medium_light_skin_tone_medium_skin_tone"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FE":["couple_with_heart_person_person_tone2_tone4","couple_with_heart_person_person_medium_light_skin_tone_medium_dark_skin_tone"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FF":["couple_with_heart_person_person_tone2_tone5","couple_with_heart_person_person_medium_light_skin_tone_dark_skin_tone"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FB":["couple_with_heart_person_person_tone3_tone1","couple_with_heart_person_person_medium_skin_tone_light_skin_tone"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FC":["couple_with_heart_person_person_tone3_tone2","couple_with_heart_person_person_medium_skin_tone_medium_light_skin_tone"],"1F491-1F3FD":["couple_with_heart_tone3","couple_with_heart_medium_skin_tone"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FE":["couple_with_heart_person_person_tone3_tone4","couple_with_heart_person_person_medium_skin_tone_medium_dark_skin_tone"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FF":["couple_with_heart_person_person_tone3_tone5","couple_with_heart_person_person_medium_skin_tone_dark_skin_tone"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FB":["couple_with_heart_person_person_tone4_tone1","couple_with_heart_person_person_medium_dark_skin_tone_light_skin_tone"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FC":["couple_with_heart_person_person_tone4_tone2","couple_with_heart_person_person_medium_dark_skin_tone_medium_light_skin_tone"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FD":["couple_with_heart_person_person_tone4_tone3","couple_with_heart_person_person_medium_dark_skin_tone_medium_skin_tone"],"1F491-1F3FE":["couple_with_heart_tone4","couple_with_heart_medium_dark_skin_tone"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FF":["couple_with_heart_person_person_tone4_tone5","couple_with_heart_person_person_medium_dark_skin_tone_dark_skin_tone"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FB":["couple_with_heart_person_person_tone5_tone1","couple_with_heart_person_person_dark_skin_tone_light_skin_tone"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FC":["couple_with_heart_person_person_tone5_tone2","couple_with_heart_person_person_dark_skin_tone_medium_light_skin_tone"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FD":["couple_with_heart_person_person_tone5_tone3","couple_with_heart_person_person_dark_skin_tone_medium_skin_tone"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FE":["couple_with_heart_person_person_tone5_tone4","couple_with_heart_person_person_dark_skin_tone_medium_dark_skin_tone"],"1F491-1F3FF":["couple_with_heart_tone5","couple_with_heart_dark_skin_tone"],"1F469-200D-2764-FE0F-200D-1F468":"couple_with_heart_woman_man","1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_woman_man_tone1","couple_with_heart_woman_man_light_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_woman_man_tone1_tone2","couple_with_heart_woman_man_light_skin_tone_medium_light_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_woman_man_tone1_tone3","couple_with_heart_woman_man_light_skin_tone_medium_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_woman_man_tone1_tone4","couple_with_heart_woman_man_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_woman_man_tone1_tone5","couple_with_heart_woman_man_light_skin_tone_dark_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_woman_man_tone2_tone1","couple_with_heart_woman_man_medium_light_skin_tone_light_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_woman_man_tone2","couple_with_heart_woman_man_medium_light_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_woman_man_tone2_tone3","couple_with_heart_woman_man_medium_light_skin_tone_medium_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_woman_man_tone2_tone4","couple_with_heart_woman_man_medium_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_woman_man_tone2_tone5","couple_with_heart_woman_man_medium_light_skin_tone_dark_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_woman_man_tone3_tone1","couple_with_heart_woman_man_medium_skin_tone_light_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_woman_man_tone3_tone2","couple_with_heart_woman_man_medium_skin_tone_medium_light_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_woman_man_tone3","couple_with_heart_woman_man_medium_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_woman_man_tone3_tone4","couple_with_heart_woman_man_medium_skin_tone_medium_dark_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_woman_man_tone3_tone5","couple_with_heart_woman_man_medium_skin_tone_dark_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_woman_man_tone4_tone1","couple_with_heart_woman_man_medium_dark_skin_tone_light_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_woman_man_tone4_tone2","couple_with_heart_woman_man_medium_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_woman_man_tone4_tone3","couple_with_heart_woman_man_medium_dark_skin_tone_medium_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_woman_man_tone4","couple_with_heart_woman_man_medium_dark_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_woman_man_tone4_tone5","couple_with_heart_woman_man_medium_dark_skin_tone_dark_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_woman_man_tone5_tone1","couple_with_heart_woman_man_dark_skin_tone_light_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_woman_man_tone5_tone2","couple_with_heart_woman_man_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_woman_man_tone5_tone3","couple_with_heart_woman_man_dark_skin_tone_medium_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_woman_man_tone5_tone4","couple_with_heart_woman_man_dark_skin_tone_medium_dark_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_woman_man_tone5","couple_with_heart_woman_man_dark_skin_tone"],"1F469-200D-2764-FE0F-200D-1F469":["couple_ww","couple_with_heart_ww"],"1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FB":["couple_with_heart_woman_woman_tone1","couple_with_heart_woman_woman_light_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FC":["couple_with_heart_woman_woman_tone1_tone2","couple_with_heart_woman_woman_light_skin_tone_medium_light_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FD":["couple_with_heart_woman_woman_tone1_tone3","couple_with_heart_woman_woman_light_skin_tone_medium_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FE":["couple_with_heart_woman_woman_tone1_tone4","couple_with_heart_woman_woman_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FF":["couple_with_heart_woman_woman_tone1_tone5","couple_with_heart_woman_woman_light_skin_tone_dark_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FB":["couple_with_heart_woman_woman_tone2_tone1","couple_with_heart_woman_woman_medium_light_skin_tone_light_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FC":["couple_with_heart_woman_woman_tone2","couple_with_heart_woman_woman_medium_light_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FD":["couple_with_heart_woman_woman_tone2_tone3","couple_with_heart_woman_woman_medium_light_skin_tone_medium_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FE":["couple_with_heart_woman_woman_tone2_tone4","couple_with_heart_woman_woman_medium_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FF":["couple_with_heart_woman_woman_tone2_tone5","couple_with_heart_woman_woman_medium_light_skin_tone_dark_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FB":["couple_with_heart_woman_woman_tone3_tone1","couple_with_heart_woman_woman_medium_skin_tone_light_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FC":["couple_with_heart_woman_woman_tone3_tone2","couple_with_heart_woman_woman_medium_skin_tone_medium_light_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FD":["couple_with_heart_woman_woman_tone3","couple_with_heart_woman_woman_medium_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FE":["couple_with_heart_woman_woman_tone3_tone4","couple_with_heart_woman_woman_medium_skin_tone_medium_dark_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FF":["couple_with_heart_woman_woman_tone3_tone5","couple_with_heart_woman_woman_medium_skin_tone_dark_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FB":["couple_with_heart_woman_woman_tone4_tone1","couple_with_heart_woman_woman_medium_dark_skin_tone_light_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FC":["couple_with_heart_woman_woman_tone4_tone2","couple_with_heart_woman_woman_medium_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FD":["couple_with_heart_woman_woman_tone4_tone3","couple_with_heart_woman_woman_medium_dark_skin_tone_medium_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FE":["couple_with_heart_woman_woman_tone4","couple_with_heart_woman_woman_medium_dark_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FF":["couple_with_heart_woman_woman_tone4_tone5","couple_with_heart_woman_woman_medium_dark_skin_tone_dark_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FB":["couple_with_heart_woman_woman_tone5_tone1","couple_with_heart_woman_woman_dark_skin_tone_light_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FC":["couple_with_heart_woman_woman_tone5_tone2","couple_with_heart_woman_woman_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FD":["couple_with_heart_woman_woman_tone5_tone3","couple_with_heart_woman_woman_dark_skin_tone_medium_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FE":["couple_with_heart_woman_woman_tone5_tone4","couple_with_heart_woman_woman_dark_skin_tone_medium_dark_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FF":["couple_with_heart_woman_woman_tone5","couple_with_heart_woman_woman_dark_skin_tone"],"1F468-200D-2764-FE0F-200D-1F468":["couple_mm","couple_with_heart_mm"],"1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_man_man_tone1","couple_with_heart_man_man_light_skin_tone"],"1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_man_man_tone1_tone2","couple_with_heart_man_man_light_skin_tone_medium_light_skin_tone"],"1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_man_man_tone1_tone3","couple_with_heart_man_man_light_skin_tone_medium_skin_tone"],"1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_man_man_tone1_tone4","couple_with_heart_man_man_light_skin_tone_medium_dark_skin_tone"],"1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_man_man_tone1_tone5","couple_with_heart_man_man_light_skin_tone_dark_skin_tone"],"1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_man_man_tone2_tone1","couple_with_heart_man_man_medium_light_skin_tone_light_skin_tone"],"1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_man_man_tone2","couple_with_heart_man_man_medium_light_skin_tone"],"1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_man_man_tone2_tone3","couple_with_heart_man_man_medium_light_skin_tone_medium_skin_tone"],"1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_man_man_tone2_tone4","couple_with_heart_man_man_medium_light_skin_tone_medium_dark_skin_tone"],"1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_man_man_tone2_tone5","couple_with_heart_man_man_medium_light_skin_tone_dark_skin_tone"],"1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_man_man_tone3_tone1","couple_with_heart_man_man_medium_skin_tone_light_skin_tone"],"1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_man_man_tone3_tone2","couple_with_heart_man_man_medium_skin_tone_medium_light_skin_tone"],"1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_man_man_tone3","couple_with_heart_man_man_medium_skin_tone"],"1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_man_man_tone3_tone4","couple_with_heart_man_man_medium_skin_tone_medium_dark_skin_tone"],"1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_man_man_tone3_tone5","couple_with_heart_man_man_medium_skin_tone_dark_skin_tone"],"1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_man_man_tone4_tone1","couple_with_heart_man_man_medium_dark_skin_tone_light_skin_tone"],"1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_man_man_tone4_tone2","couple_with_heart_man_man_medium_dark_skin_tone_medium_light_skin_tone"],"1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_man_man_tone4_tone3","couple_with_heart_man_man_medium_dark_skin_tone_medium_skin_tone"],"1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_man_man_tone4","couple_with_heart_man_man_medium_dark_skin_tone"],"1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_man_man_tone4_tone5","couple_with_heart_man_man_medium_dark_skin_tone_dark_skin_tone"],"1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_man_man_tone5_tone1","couple_with_heart_man_man_dark_skin_tone_light_skin_tone"],"1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_man_man_tone5_tone2","couple_with_heart_man_man_dark_skin_tone_medium_light_skin_tone"],"1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_man_man_tone5_tone3","couple_with_heart_man_man_dark_skin_tone_medium_skin_tone"],"1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_man_man_tone5_tone4","couple_with_heart_man_man_dark_skin_tone_medium_dark_skin_tone"],"1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_man_man_tone5","couple_with_heart_man_man_dark_skin_tone"],"1F48F":"couplekiss","1F48F-1F3FB":["kiss_tone1","kiss_light_skin_tone"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC":["kiss_person_person_tone1_tone2","kiss_person_person_light_skin_tone_medium_light_skin_tone"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD":["kiss_person_person_tone1_tone3","kiss_person_person_light_skin_tone_medium_skin_tone"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE":["kiss_person_person_tone1_tone4","kiss_person_person_light_skin_tone_medium_dark_skin_tone"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF":["kiss_person_person_tone1_tone5","kiss_person_person_light_skin_tone_dark_skin_tone"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB":["kiss_person_person_tone2_tone1","kiss_person_person_medium_light_skin_tone_light_skin_tone"],"1F48F-1F3FC":["kiss_tone2","kiss_medium_light_skin_tone"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD":["kiss_person_person_tone2_tone3","kiss_person_person_medium_light_skin_tone_medium_skin_tone"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE":["kiss_person_person_tone2_tone4","kiss_person_person_medium_light_skin_tone_medium_dark_skin_tone"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF":["kiss_person_person_tone2_tone5","kiss_person_person_medium_light_skin_tone_dark_skin_tone"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB":["kiss_person_person_tone3_tone1","kiss_person_person_medium_skin_tone_light_skin_tone"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC":["kiss_person_person_tone3_tone2","kiss_person_person_medium_skin_tone_medium_light_skin_tone"],"1F48F-1F3FD":["kiss_tone3","kiss_medium_skin_tone"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE":["kiss_person_person_tone3_tone4","kiss_person_person_medium_skin_tone_medium_dark_skin_tone"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF":["kiss_person_person_tone3_tone5","kiss_person_person_medium_skin_tone_dark_skin_tone"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB":["kiss_person_person_tone4_tone1","kiss_person_person_medium_dark_skin_tone_light_skin_tone"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC":["kiss_person_person_tone4_tone2","kiss_person_person_medium_dark_skin_tone_medium_light_skin_tone"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD":["kiss_person_person_tone4_tone3","kiss_person_person_medium_dark_skin_tone_medium_skin_tone"],"1F48F-1F3FE":["kiss_tone4","kiss_medium_dark_skin_tone"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF":["kiss_person_person_tone4_tone5","kiss_person_person_medium_dark_skin_tone_dark_skin_tone"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB":["kiss_person_person_tone5_tone1","kiss_person_person_dark_skin_tone_light_skin_tone"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC":["kiss_person_person_tone5_tone2","kiss_person_person_dark_skin_tone_medium_light_skin_tone"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD":["kiss_person_person_tone5_tone3","kiss_person_person_dark_skin_tone_medium_skin_tone"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE":["kiss_person_person_tone5_tone4","kiss_person_person_dark_skin_tone_medium_dark_skin_tone"],"1F48F-1F3FF":["kiss_tone5","kiss_dark_skin_tone"],"1F469-200D-2764-FE0F-200D-1F48B-200D-1F468":"kiss_woman_man","1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_woman_man_tone1","kiss_woman_man_light_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_woman_man_tone1_tone2","kiss_woman_man_light_skin_tone_medium_light_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_woman_man_tone1_tone3","kiss_woman_man_light_skin_tone_medium_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_woman_man_tone1_tone4","kiss_woman_man_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_woman_man_tone1_tone5","kiss_woman_man_light_skin_tone_dark_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_woman_man_tone2_tone1","kiss_woman_man_medium_light_skin_tone_light_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_woman_man_tone2","kiss_woman_man_medium_light_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_woman_man_tone2_tone3","kiss_woman_man_medium_light_skin_tone_medium_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_woman_man_tone2_tone4","kiss_woman_man_medium_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_woman_man_tone2_tone5","kiss_woman_man_medium_light_skin_tone_dark_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_woman_man_tone3_tone1","kiss_woman_man_medium_skin_tone_light_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_woman_man_tone3_tone2","kiss_woman_man_medium_skin_tone_medium_light_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_woman_man_tone3","kiss_woman_man_medium_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_woman_man_tone3_tone4","kiss_woman_man_medium_skin_tone_medium_dark_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_woman_man_tone3_tone5","kiss_woman_man_medium_skin_tone_dark_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_woman_man_tone4_tone1","kiss_woman_man_medium_dark_skin_tone_light_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_woman_man_tone4_tone2","kiss_woman_man_medium_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_woman_man_tone4_tone3","kiss_woman_man_medium_dark_skin_tone_medium_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_woman_man_tone4","kiss_woman_man_medium_dark_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_woman_man_tone4_tone5","kiss_woman_man_medium_dark_skin_tone_dark_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_woman_man_tone5_tone1","kiss_woman_man_dark_skin_tone_light_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_woman_man_tone5_tone2","kiss_woman_man_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_woman_man_tone5_tone3","kiss_woman_man_dark_skin_tone_medium_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_woman_man_tone5_tone4","kiss_woman_man_dark_skin_tone_medium_dark_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_woman_man_tone5","kiss_woman_man_dark_skin_tone"],"1F469-200D-2764-FE0F-200D-1F48B-200D-1F469":["kiss_ww","couplekiss_ww"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB":["kiss_woman_woman_tone1","kiss_woman_woman_light_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC":["kiss_woman_woman_tone1_tone2","kiss_woman_woman_light_skin_tone_medium_light_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD":["kiss_woman_woman_tone1_tone3","kiss_woman_woman_light_skin_tone_medium_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE":["kiss_woman_woman_tone1_tone4","kiss_woman_woman_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF":["kiss_woman_woman_tone1_tone5","kiss_woman_woman_light_skin_tone_dark_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB":["kiss_woman_woman_tone2_tone1","kiss_woman_woman_medium_light_skin_tone_light_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC":["kiss_woman_woman_tone2","kiss_woman_woman_medium_light_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD":["kiss_woman_woman_tone2_tone3","kiss_woman_woman_medium_light_skin_tone_medium_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE":["kiss_woman_woman_tone2_tone4","kiss_woman_woman_medium_light_skin_tone_medium_dark_skin_tone"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF":["kiss_woman_woman_tone2_tone5","kiss_woman_woman_medium_light_skin_tone_dark_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB":["kiss_woman_woman_tone3_tone1","kiss_woman_woman_medium_skin_tone_light_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC":["kiss_woman_woman_tone3_tone2","kiss_woman_woman_medium_skin_tone_medium_light_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD":["kiss_woman_woman_tone3","kiss_woman_woman_medium_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE":["kiss_woman_woman_tone3_tone4","kiss_woman_woman_medium_skin_tone_medium_dark_skin_tone"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF":["kiss_woman_woman_tone3_tone5","kiss_woman_woman_medium_skin_tone_dark_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB":["kiss_woman_woman_tone4_tone1","kiss_woman_woman_medium_dark_skin_tone_light_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC":["kiss_woman_woman_tone4_tone2","kiss_woman_woman_medium_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD":["kiss_woman_woman_tone4_tone3","kiss_woman_woman_medium_dark_skin_tone_medium_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE":["kiss_woman_woman_tone4","kiss_woman_woman_medium_dark_skin_tone"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF":["kiss_woman_woman_tone4_tone5","kiss_woman_woman_medium_dark_skin_tone_dark_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB":["kiss_woman_woman_tone5_tone1","kiss_woman_woman_dark_skin_tone_light_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC":["kiss_woman_woman_tone5_tone2","kiss_woman_woman_dark_skin_tone_medium_light_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD":["kiss_woman_woman_tone5_tone3","kiss_woman_woman_dark_skin_tone_medium_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE":["kiss_woman_woman_tone5_tone4","kiss_woman_woman_dark_skin_tone_medium_dark_skin_tone"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF":["kiss_woman_woman_tone5","kiss_woman_woman_dark_skin_tone"],"1F468-200D-2764-FE0F-200D-1F48B-200D-1F468":["kiss_mm","couplekiss_mm","kiss_man_man"],"1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_man_man_tone1","kiss_man_man_light_skin_tone"],"1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_man_man_tone1_tone2","kiss_man_man_light_skin_tone_medium_light_skin_tone"],"1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_man_man_tone1_tone3","kiss_man_man_light_skin_tone_medium_skin_tone"],"1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_man_man_tone1_tone4","kiss_man_man_light_skin_tone_medium_dark_skin_tone"],"1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_man_man_tone1_tone5","kiss_man_man_light_skin_tone_dark_skin_tone"],"1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_man_man_tone2_tone1","kiss_man_man_medium_light_skin_tone_light_skin_tone"],"1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_man_man_tone2","kiss_man_man_medium_light_skin_tone"],"1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_man_man_tone2_tone3","kiss_man_man_medium_light_skin_tone_medium_skin_tone"],"1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_man_man_tone2_tone4","kiss_man_man_medium_light_skin_tone_medium_dark_skin_tone"],"1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_man_man_tone2_tone5","kiss_man_man_medium_light_skin_tone_dark_skin_tone"],"1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_man_man_tone3_tone1","kiss_man_man_medium_skin_tone_light_skin_tone"],"1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_man_man_tone3_tone2","kiss_man_man_medium_skin_tone_medium_light_skin_tone"],"1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_man_man_tone3","kiss_man_man_medium_skin_tone"],"1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_man_man_tone3_tone4","kiss_man_man_medium_skin_tone_medium_dark_skin_tone"],"1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_man_man_tone3_tone5","kiss_man_man_medium_skin_tone_dark_skin_tone"],"1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_man_man_tone4_tone1","kiss_man_man_medium_dark_skin_tone_light_skin_tone"],"1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_man_man_tone4_tone2","kiss_man_man_medium_dark_skin_tone_medium_light_skin_tone"],"1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_man_man_tone4_tone3","kiss_man_man_medium_dark_skin_tone_medium_skin_tone"],"1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_man_man_tone4","kiss_man_man_medium_dark_skin_tone"],"1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_man_man_tone4_tone5","kiss_man_man_medium_dark_skin_tone_dark_skin_tone"],"1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_man_man_tone5_tone1","kiss_man_man_dark_skin_tone_light_skin_tone"],"1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_man_man_tone5_tone2","kiss_man_man_dark_skin_tone_medium_light_skin_tone"],"1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_man_man_tone5_tone3","kiss_man_man_dark_skin_tone_medium_skin_tone"],"1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_man_man_tone5_tone4","kiss_man_man_dark_skin_tone_medium_dark_skin_tone"],"1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_man_man_tone5","kiss_man_man_dark_skin_tone"],"1F46A":"family","1F468-200D-1F469-200D-1F466":"family_man_woman_boy","1F468-200D-1F469-200D-1F467":"family_mwg","1F468-200D-1F469-200D-1F467-200D-1F466":"family_mwgb","1F468-200D-1F469-200D-1F466-200D-1F466":"family_mwbb","1F468-200D-1F469-200D-1F467-200D-1F467":"family_mwgg","1F469-200D-1F469-200D-1F466":"family_wwb","1F469-200D-1F469-200D-1F467":"family_wwg","1F469-200D-1F469-200D-1F467-200D-1F466":"family_wwgb","1F469-200D-1F469-200D-1F466-200D-1F466":"family_wwbb","1F469-200D-1F469-200D-1F467-200D-1F467":"family_wwgg","1F468-200D-1F468-200D-1F466":"family_mmb","1F468-200D-1F468-200D-1F467":"family_mmg","1F468-200D-1F468-200D-1F467-200D-1F466":"family_mmgb","1F468-200D-1F468-200D-1F466-200D-1F466":"family_mmbb","1F468-200D-1F468-200D-1F467-200D-1F467":"family_mmgg","1F469-200D-1F466":"family_woman_boy","1F469-200D-1F467":"family_woman_girl","1F469-200D-1F467-200D-1F466":"family_woman_girl_boy","1F469-200D-1F466-200D-1F466":"family_woman_boy_boy","1F469-200D-1F467-200D-1F467":"family_woman_girl_girl","1F468-200D-1F466":"family_man_boy","1F468-200D-1F467":"family_man_girl","1F468-200D-1F467-200D-1F466":"family_man_girl_boy","1F468-200D-1F466-200D-1F466":"family_man_boy_boy","1F468-200D-1F467-200D-1F467":"family_man_girl_girl","1FAA2":"knot","1F9F6":"yarn","1F9F5":"thread","1FAA1":"sewing_needle","1F9E5":"coat","1F97C":"lab_coat","1F9BA":"safety_vest","1F45A":"womans_clothes","1F455":["shirt","t_shirt"],"1F456":"jeans","1FA72":"briefs","1FA73":"shorts","1F454":"necktie","1F457":"dress","1F459":"bikini","1FA71":"one_piece_swimsuit","1F458":"kimono","1F97B":"sari","1FA74":"thong_sandal","1F97F":["womans_flat_shoe","flat_shoe"],"1F460":"high_heel","1F461":["sandal","womans_sandal"],"1F462":["boot","womans_boot"],"1F45E":"mans_shoe","1F45F":["athletic_shoe","running_shoe"],"1F97E":"hiking_boot","1F9E6":"socks","1F9E4":"gloves","1F9E3":"scarf","1F3A9":["tophat","top_hat"],"1F9E2":"billed_cap","1F452":"womans_hat","1F393":"mortar_board","26D1":["helmet_with_cross","helmet_with_white_cross"],"1FA96":"military_helmet","1F451":"crown","1F48D":"ring","1F45D":["pouch","clutch_bag"],"1F45B":"purse","1F45C":"handbag","1F4BC":"briefcase","1F392":["school_satchel","backpack"],"1F9F3":"luggage","1F453":["eyeglasses","glasses"],"1F576":"dark_sunglasses","1F97D":"goggles","1F302":"closed_umbrella","1F9B1":["curly_haired","curly_hair"],"1F9B0":["red_haired","red_hair"],"1F9B3":["white_haired","white_hair"],"1F9B2":"bald","1F436":["dog","dog_face"],"1F431":["cat","cat_face"],"1F42D":["mouse","mouse_face"],"1F439":"hamster","1F430":["rabbit","rabbit_face"],"1F98A":["fox","fox_face"],"1F43B":"bear","1F43C":["panda_face","panda"],"1F43B-200D-2744-FE0F":"polar_bear","1F428":"koala","1F42F":["tiger","tiger_face"],"1F981":["lion_face","lion"],"1F42E":["cow","cow_face"],"1F437":["pig","pig_face"],"1F43D":"pig_nose","1F438":"frog","1F435":"monkey_face","1F648":"see_no_evil","1F649":"hear_no_evil","1F64A":"speak_no_evil","1F412":"monkey","1F414":"chicken","1F427":"penguin","1F426":"bird","1F424":"baby_chick","1F423":"hatching_chick","1F425":"hatched_chick","1FABF":"goose","1F986":"duck","1F426-200D-2B1B":"black_bird","1F985":"eagle","1F989":"owl","1F987":"bat","1F43A":"wolf","1F417":"boar","1F434":["horse","horse_face"],"1F984":["unicorn","unicorn_face"],"1FACE":"moose","1F41D":["bee","honeybee"],"1FAB1":"worm","1F41B":"bug","1F98B":"butterfly","1F40C":"snail","1F41E":"lady_beetle","1F41C":"ant","1FAB0":"fly","1FAB2":"beetle","1FAB3":"cockroach","1F99F":"mosquito","1F997":"cricket","1F577":"spider","1F578":"spider_web","1F982":"scorpion","1F422":"turtle","1F40D":"snake","1F98E":"lizard","1F996":"t_rex","1F995":"sauropod","1F419":"octopus","1F991":"squid","1FABC":"jellyfish","1F990":"shrimp","1F99E":"lobster","1F980":"crab","1F421":"blowfish","1F420":"tropical_fish","1F41F":"fish","1F42C":"dolphin","1F433":"whale","1F40B":"whale2","1F988":"shark","1F9AD":"seal","1F40A":"crocodile","1F405":"tiger2","1F406":"leopard","1F993":"zebra","1F98D":"gorilla","1F9A7":"orangutan","1F9A3":"mammoth","1F418":"elephant","1F99B":"hippopotamus","1F98F":["rhino","rhinoceros"],"1F42A":"dromedary_camel","1F42B":"camel","1F992":"giraffe","1F998":"kangaroo","1F9AC":"bison","1F403":"water_buffalo","1F402":"ox","1F404":"cow2","1FACF":"donkey","1F40E":"racehorse","1F416":"pig2","1F40F":"ram","1F411":["sheep","ewe"],"1F999":"llama","1F410":"goat","1F98C":"deer","1F415":"dog2","1F429":"poodle","1F9AE":"guide_dog","1F415-200D-1F9BA":"service_dog","1F408":"cat2","1F408-200D-2B1B":"black_cat","1FAB6":"feather","1FABD":"wing","1F413":"rooster","1F983":"turkey","1F9A4":"dodo","1F99A":"peacock","1F99C":"parrot","1F9A2":"swan","1F9A9":"flamingo","1F54A":["dove","dove_of_peace"],"1F407":"rabbit2","1F99D":"raccoon","1F9A8":"skunk","1F9A1":"badger","1F9AB":"beaver","1F9A6":"otter","1F9A5":"sloth","1F401":"mouse2","1F400":"rat","1F43F":"chipmunk","1F994":"hedgehog","1F43E":["feet","paw_prints"],"1F409":"dragon","1F432":"dragon_face","1F335":"cactus","1F384":"christmas_tree","1F332":"evergreen_tree","1F333":"deciduous_tree","1F334":"palm_tree","1FAB5":"wood","1F331":"seedling","1F33F":"herb","1F340":"four_leaf_clover","1F38D":"bamboo","1FAB4":"potted_plant","1F38B":"tanabata_tree","1F343":"leaves","1F342":"fallen_leaf","1F341":"maple_leaf","1FABA":"nest_with_eggs","1FAB9":"empty_nest","1F344":"mushroom","1F41A":["shell","spiral_shell"],"1FAB8":"coral","1FAA8":"rock","1F33E":["ear_of_rice","sheaf_of_rice"],"1F490":"bouquet","1F337":"tulip","1F339":"rose","1F940":["wilted_rose","wilted_flower"],"1FABB":"hyacinth","1FAB7":"lotus","1F33A":"hibiscus","1F338":"cherry_blossom","1F33C":"blossom","1F33B":"sunflower","1F31E":"sun_with_face","1F31D":"full_moon_with_face","1F31B":"first_quarter_moon_with_face","1F31C":"last_quarter_moon_with_face","1F31A":["new_moon_with_face","new_moon_face"],"1F315":"full_moon","1F316":"waning_gibbous_moon","1F317":"last_quarter_moon","1F318":"waning_crescent_moon","1F311":"new_moon","1F312":"waxing_crescent_moon","1F313":"first_quarter_moon","1F314":"waxing_gibbous_moon","1F319":"crescent_moon","1F30E":"earth_americas","1F30D":"earth_africa","1F30F":"earth_asia","1FA90":"ringed_planet","1F4AB":"dizzy","2B50":"star","1F31F":["star2","glowing_star"],"26A1":["zap","high_voltage"],"1F4A5":["boom","collision"],"1F525":["fire","flame"],"1F32A":["cloud_tornado","cloud_with_tornado","tornado"],"1F308":"rainbow","1F324":["white_sun_small_cloud","white_sun_with_small_cloud"],"26C5":"partly_sunny","1F325":["white_sun_cloud","white_sun_behind_cloud"],"1F326":["white_sun_rain_cloud","white_sun_behind_cloud_with_rain"],"1F327":["cloud_rain","cloud_with_rain"],"26C8":["thunder_cloud_rain","thunder_cloud_and_rain"],"1F329":["cloud_lightning","cloud_with_lightning"],"1F328":["cloud_snow","cloud_with_snow"],"26C4":"snowman","1F32C":["wind_blowing_face","wind_face"],"1F4A8":["dash","dashing_away"],"1F4A7":"droplet","1F4A6":"sweat_drops","1FAE7":"bubbles","1F30A":["ocean","water_wave"],"1F32B":"fog","1F34F":"green_apple","1F34E":["apple","red_apple"],"1F350":"pear","1F34A":"tangerine","1F34B":"lemon","1F34C":"banana","1F349":"watermelon","1F347":"grapes","1F353":"strawberry","1FAD0":"blueberries","1F348":"melon","1F352":"cherries","1F351":"peach","1F96D":"mango","1F34D":"pineapple","1F965":"coconut","1F95D":["kiwi","kiwifruit","kiwi_fruit"],"1F345":"tomato","1F346":"eggplant","1F951":"avocado","1FADB":"pea_pod","1F966":"broccoli","1F96C":"leafy_green","1F952":"cucumber","1F336":"hot_pepper","1FAD1":"bell_pepper","1F33D":["corn","ear_of_corn"],"1F955":"carrot","1FAD2":"olive","1F9C4":"garlic","1F9C5":"onion","1F954":"potato","1F360":"sweet_potato","1FADA":"ginger_root","1F950":"croissant","1F96F":"bagel","1F35E":"bread","1F956":["french_bread","baguette_bread"],"1F968":"pretzel","1F9C0":["cheese","cheese_wedge"],"1F95A":"egg","1F373":"cooking","1F9C8":"butter","1F95E":"pancakes","1F9C7":"waffle","1F953":"bacon","1F969":"cut_of_meat","1F357":"poultry_leg","1F356":"meat_on_bone","1F9B4":"bone","1F32D":["hotdog","hot_dog"],"1F354":"hamburger","1F35F":["fries","french_fries"],"1F355":"pizza","1FAD3":"flatbread","1F96A":"sandwich","1F959":["stuffed_flatbread","stuffed_pita"],"1F9C6":"falafel","1F32E":"taco","1F32F":"burrito","1FAD4":"tamale","1F957":["salad","green_salad"],"1F958":["shallow_pan_of_food","paella"],"1FAD5":"fondue","1F96B":"canned_food","1FAD9":"jar","1F35D":"spaghetti","1F35C":["ramen","steaming_bowl"],"1F372":["stew","pot_of_food"],"1F35B":["curry","curry_rice"],"1F363":"sushi","1F371":["bento","bento_box"],"1F95F":"dumpling","1F9AA":"oyster","1F364":"fried_shrimp","1F359":"rice_ball","1F35A":["rice","cooked_rice"],"1F358":"rice_cracker","1F365":"fish_cake","1F960":"fortune_cookie","1F96E":"moon_cake","1F362":"oden","1F361":"dango","1F367":"shaved_ice","1F368":"ice_cream","1F366":"icecream","1F967":"pie","1F9C1":"cupcake","1F370":["cake","shortcake"],"1F382":["birthday","birthday_cake"],"1F36E":["custard","pudding","flan"],"1F36D":"lollipop","1F36C":"candy","1F36B":"chocolate_bar","1F37F":"popcorn","1F369":"doughnut","1F36A":"cookie","1F330":"chestnut","1F95C":["peanuts","shelled_peanut"],"1FAD8":"beans","1F36F":"honey_pot","1F95B":["milk","glass_of_milk"],"1FAD7":"pouring_liquid","1F37C":"baby_bottle","1FAD6":"teapot","1F375":"tea","1F9C9":"mate","1F9C3":"beverage_box","1F964":"cup_with_straw","1F9CB":"bubble_tea","1F376":"sake","1F37A":["beer","beer_mug"],"1F37B":"beers","1F942":["champagne_glass","clinking_glass"],"1F377":"wine_glass","1F943":["tumbler_glass","whisky"],"1F378":"cocktail","1F379":"tropical_drink","1F37E":["champagne","bottle_with_popping_cork"],"1F9CA":"ice_cube","1F944":"spoon","1F374":"fork_and_knife","1F37D":["fork_knife_plate","fork_and_knife_with_plate"],"1F963":"bowl_with_spoon","1F961":"takeout_box","1F962":"chopsticks","1F9C2":"salt","26BD":["soccer","soccer_ball"],"1F3C0":"basketball","1F3C8":"football","26BE":"baseball","1F94E":"softball","1F3BE":"tennis","1F3D0":"volleyball","1F3C9":"rugby_football","1F94F":"flying_disc","1F3B1":"8ball","1FA80":"yo_yo","1F3D3":["ping_pong","table_tennis"],"1F3F8":"badminton","1F3D2":["hockey","ice_hockey"],"1F3D1":"field_hockey","1F94D":"lacrosse","1F3CF":["cricket_game","cricket_bat_ball"],"1FA83":"boomerang","1F945":["goal","goal_net"],"26F3":["golf","flag_in_hole"],"1FA81":"kite","1F6DD":"playground_slide","1F3F9":["bow_and_arrow","archery"],"1F3A3":["fishing_pole_and_fish","fishing_pole"],"1F93F":"diving_mask","1F94A":["boxing_glove","boxing_gloves"],"1F94B":["martial_arts_uniform","karate_uniform"],"1F3BD":["running_shirt_with_sash","running_shirt"],"1F6F9":"skateboard","1F6FC":"roller_skate","1F6F7":"sled","26F8":"ice_skate","1F94C":"curling_stone","1F3BF":["ski","skis"],"26F7":"skier","1F3C2":"snowboarder","1F3C2-1F3FB":["snowboarder_tone1","snowboarder_light_skin_tone"],"1F3C2-1F3FC":["snowboarder_tone2","snowboarder_medium_light_skin_tone"],"1F3C2-1F3FD":["snowboarder_tone3","snowboarder_medium_skin_tone"],"1F3C2-1F3FE":["snowboarder_tone4","snowboarder_medium_dark_skin_tone"],"1F3C2-1F3FF":["snowboarder_tone5","snowboarder_dark_skin_tone"],"1FA82":"parachute","1F3CB":["person_lifting_weights","lifter","weight_lifter"],"1F3CB-1F3FB":["person_lifting_weights_tone1","lifter_tone1","weight_lifter_tone1"],"1F3CB-1F3FC":["person_lifting_weights_tone2","lifter_tone2","weight_lifter_tone2"],"1F3CB-1F3FD":["person_lifting_weights_tone3","lifter_tone3","weight_lifter_tone3"],"1F3CB-1F3FE":["person_lifting_weights_tone4","lifter_tone4","weight_lifter_tone4"],"1F3CB-1F3FF":["person_lifting_weights_tone5","lifter_tone5","weight_lifter_tone5"],"1F3CB-FE0F-200D-2640-FE0F":"woman_lifting_weights","1F3CB-1F3FB-200D-2640-FE0F":["woman_lifting_weights_tone1","woman_lifting_weights_light_skin_tone"],"1F3CB-1F3FC-200D-2640-FE0F":["woman_lifting_weights_tone2","woman_lifting_weights_medium_light_skin_tone"],"1F3CB-1F3FD-200D-2640-FE0F":["woman_lifting_weights_tone3","woman_lifting_weights_medium_skin_tone"],"1F3CB-1F3FE-200D-2640-FE0F":["woman_lifting_weights_tone4","woman_lifting_weights_medium_dark_skin_tone"],"1F3CB-1F3FF-200D-2640-FE0F":["woman_lifting_weights_tone5","woman_lifting_weights_dark_skin_tone"],"1F3CB-FE0F-200D-2642-FE0F":"man_lifting_weights","1F3CB-1F3FB-200D-2642-FE0F":["man_lifting_weights_tone1","man_lifting_weights_light_skin_tone"],"1F3CB-1F3FC-200D-2642-FE0F":["man_lifting_weights_tone2","man_lifting_weights_medium_light_skin_tone"],"1F3CB-1F3FD-200D-2642-FE0F":["man_lifting_weights_tone3","man_lifting_weights_medium_skin_tone"],"1F3CB-1F3FE-200D-2642-FE0F":["man_lifting_weights_tone4","man_lifting_weights_medium_dark_skin_tone"],"1F3CB-1F3FF-200D-2642-FE0F":["man_lifting_weights_tone5","man_lifting_weights_dark_skin_tone"],"1F93C":["people_wrestling","wrestlers","wrestling"],"1F93C-200D-2640-FE0F":"women_wrestling","1F93C-200D-2642-FE0F":"men_wrestling","1F938":["person_doing_cartwheel","cartwheel"],"1F938-1F3FB":["person_doing_cartwheel_tone1","cartwheel_tone1"],"1F938-1F3FC":["person_doing_cartwheel_tone2","cartwheel_tone2"],"1F938-1F3FD":["person_doing_cartwheel_tone3","cartwheel_tone3"],"1F938-1F3FE":["person_doing_cartwheel_tone4","cartwheel_tone4"],"1F938-1F3FF":["person_doing_cartwheel_tone5","cartwheel_tone5"],"1F938-200D-2640-FE0F":"woman_cartwheeling","1F938-1F3FB-200D-2640-FE0F":["woman_cartwheeling_tone1","woman_cartwheeling_light_skin_tone"],"1F938-1F3FC-200D-2640-FE0F":["woman_cartwheeling_tone2","woman_cartwheeling_medium_light_skin_tone"],"1F938-1F3FD-200D-2640-FE0F":["woman_cartwheeling_tone3","woman_cartwheeling_medium_skin_tone"],"1F938-1F3FE-200D-2640-FE0F":["woman_cartwheeling_tone4","woman_cartwheeling_medium_dark_skin_tone"],"1F938-1F3FF-200D-2640-FE0F":["woman_cartwheeling_tone5","woman_cartwheeling_dark_skin_tone"],"1F938-200D-2642-FE0F":"man_cartwheeling","1F938-1F3FB-200D-2642-FE0F":["man_cartwheeling_tone1","man_cartwheeling_light_skin_tone"],"1F938-1F3FC-200D-2642-FE0F":["man_cartwheeling_tone2","man_cartwheeling_medium_light_skin_tone"],"1F938-1F3FD-200D-2642-FE0F":["man_cartwheeling_tone3","man_cartwheeling_medium_skin_tone"],"1F938-1F3FE-200D-2642-FE0F":["man_cartwheeling_tone4","man_cartwheeling_medium_dark_skin_tone"],"1F938-1F3FF-200D-2642-FE0F":["man_cartwheeling_tone5","man_cartwheeling_dark_skin_tone"],"26F9":["person_bouncing_ball","basketball_player","person_with_ball"],"26F9-1F3FB":["person_bouncing_ball_tone1","basketball_player_tone1","person_with_ball_tone1"],"26F9-1F3FC":["person_bouncing_ball_tone2","basketball_player_tone2","person_with_ball_tone2"],"26F9-1F3FD":["person_bouncing_ball_tone3","basketball_player_tone3","person_with_ball_tone3"],"26F9-1F3FE":["person_bouncing_ball_tone4","basketball_player_tone4","person_with_ball_tone4"],"26F9-1F3FF":["person_bouncing_ball_tone5","basketball_player_tone5","person_with_ball_tone5"],"26F9-FE0F-200D-2640-FE0F":"woman_bouncing_ball","26F9-1F3FB-200D-2640-FE0F":["woman_bouncing_ball_tone1","woman_bouncing_ball_light_skin_tone"],"26F9-1F3FC-200D-2640-FE0F":["woman_bouncing_ball_tone2","woman_bouncing_ball_medium_light_skin_tone"],"26F9-1F3FD-200D-2640-FE0F":["woman_bouncing_ball_tone3","woman_bouncing_ball_medium_skin_tone"],"26F9-1F3FE-200D-2640-FE0F":["woman_bouncing_ball_tone4","woman_bouncing_ball_medium_dark_skin_tone"],"26F9-1F3FF-200D-2640-FE0F":["woman_bouncing_ball_tone5","woman_bouncing_ball_dark_skin_tone"],"26F9-FE0F-200D-2642-FE0F":"man_bouncing_ball","26F9-1F3FB-200D-2642-FE0F":["man_bouncing_ball_tone1","man_bouncing_ball_light_skin_tone"],"26F9-1F3FC-200D-2642-FE0F":["man_bouncing_ball_tone2","man_bouncing_ball_medium_light_skin_tone"],"26F9-1F3FD-200D-2642-FE0F":["man_bouncing_ball_tone3","man_bouncing_ball_medium_skin_tone"],"26F9-1F3FE-200D-2642-FE0F":["man_bouncing_ball_tone4","man_bouncing_ball_medium_dark_skin_tone"],"26F9-1F3FF-200D-2642-FE0F":["man_bouncing_ball_tone5","man_bouncing_ball_dark_skin_tone"],"1F93A":["person_fencing","fencer","fencing"],"1F93E":["person_playing_handball","handball"],"1F93E-1F3FB":["person_playing_handball_tone1","handball_tone1"],"1F93E-1F3FC":["person_playing_handball_tone2","handball_tone2"],"1F93E-1F3FD":["person_playing_handball_tone3","handball_tone3"],"1F93E-1F3FE":["person_playing_handball_tone4","handball_tone4"],"1F93E-1F3FF":["person_playing_handball_tone5","handball_tone5"],"1F93E-200D-2640-FE0F":"woman_playing_handball","1F93E-1F3FB-200D-2640-FE0F":["woman_playing_handball_tone1","woman_playing_handball_light_skin_tone"],"1F93E-1F3FC-200D-2640-FE0F":["woman_playing_handball_tone2","woman_playing_handball_medium_light_skin_tone"],"1F93E-1F3FD-200D-2640-FE0F":["woman_playing_handball_tone3","woman_playing_handball_medium_skin_tone"],"1F93E-1F3FE-200D-2640-FE0F":["woman_playing_handball_tone4","woman_playing_handball_medium_dark_skin_tone"],"1F93E-1F3FF-200D-2640-FE0F":["woman_playing_handball_tone5","woman_playing_handball_dark_skin_tone"],"1F93E-200D-2642-FE0F":"man_playing_handball","1F93E-1F3FB-200D-2642-FE0F":["man_playing_handball_tone1","man_playing_handball_light_skin_tone"],"1F93E-1F3FC-200D-2642-FE0F":["man_playing_handball_tone2","man_playing_handball_medium_light_skin_tone"],"1F93E-1F3FD-200D-2642-FE0F":["man_playing_handball_tone3","man_playing_handball_medium_skin_tone"],"1F93E-1F3FE-200D-2642-FE0F":["man_playing_handball_tone4","man_playing_handball_medium_dark_skin_tone"],"1F93E-1F3FF-200D-2642-FE0F":["man_playing_handball_tone5","man_playing_handball_dark_skin_tone"],"1F3CC":["person_golfing","golfer"],"1F3CC-1F3FB":["person_golfing_tone1","person_golfing_light_skin_tone"],"1F3CC-1F3FC":["person_golfing_tone2","person_golfing_medium_light_skin_tone"],"1F3CC-1F3FD":["person_golfing_tone3","person_golfing_medium_skin_tone"],"1F3CC-1F3FE":["person_golfing_tone4","person_golfing_medium_dark_skin_tone"],"1F3CC-1F3FF":["person_golfing_tone5","person_golfing_dark_skin_tone"],"1F3CC-FE0F-200D-2640-FE0F":"woman_golfing","1F3CC-1F3FB-200D-2640-FE0F":["woman_golfing_tone1","woman_golfing_light_skin_tone"],"1F3CC-1F3FC-200D-2640-FE0F":["woman_golfing_tone2","woman_golfing_medium_light_skin_tone"],"1F3CC-1F3FD-200D-2640-FE0F":["woman_golfing_tone3","woman_golfing_medium_skin_tone"],"1F3CC-1F3FE-200D-2640-FE0F":["woman_golfing_tone4","woman_golfing_medium_dark_skin_tone"],"1F3CC-1F3FF-200D-2640-FE0F":["woman_golfing_tone5","woman_golfing_dark_skin_tone"],"1F3CC-FE0F-200D-2642-FE0F":"man_golfing","1F3CC-1F3FB-200D-2642-FE0F":["man_golfing_tone1","man_golfing_light_skin_tone"],"1F3CC-1F3FC-200D-2642-FE0F":["man_golfing_tone2","man_golfing_medium_light_skin_tone"],"1F3CC-1F3FD-200D-2642-FE0F":["man_golfing_tone3","man_golfing_medium_skin_tone"],"1F3CC-1F3FE-200D-2642-FE0F":["man_golfing_tone4","man_golfing_medium_dark_skin_tone"],"1F3CC-1F3FF-200D-2642-FE0F":["man_golfing_tone5","man_golfing_dark_skin_tone"],"1F3C7":"horse_racing","1F3C7-1F3FB":"horse_racing_tone1","1F3C7-1F3FC":"horse_racing_tone2","1F3C7-1F3FD":"horse_racing_tone3","1F3C7-1F3FE":"horse_racing_tone4","1F3C7-1F3FF":"horse_racing_tone5","1F9D8":"person_in_lotus_position","1F9D8-1F3FB":["person_in_lotus_position_tone1","person_in_lotus_position_light_skin_tone"],"1F9D8-1F3FC":["person_in_lotus_position_tone2","person_in_lotus_position_medium_light_skin_tone"],"1F9D8-1F3FD":["person_in_lotus_position_tone3","person_in_lotus_position_medium_skin_tone"],"1F9D8-1F3FE":["person_in_lotus_position_tone4","person_in_lotus_position_medium_dark_skin_tone"],"1F9D8-1F3FF":["person_in_lotus_position_tone5","person_in_lotus_position_dark_skin_tone"],"1F9D8-200D-2640-FE0F":"woman_in_lotus_position","1F9D8-1F3FB-200D-2640-FE0F":["woman_in_lotus_position_tone1","woman_in_lotus_position_light_skin_tone"],"1F9D8-1F3FC-200D-2640-FE0F":["woman_in_lotus_position_tone2","woman_in_lotus_position_medium_light_skin_tone"],"1F9D8-1F3FD-200D-2640-FE0F":["woman_in_lotus_position_tone3","woman_in_lotus_position_medium_skin_tone"],"1F9D8-1F3FE-200D-2640-FE0F":["woman_in_lotus_position_tone4","woman_in_lotus_position_medium_dark_skin_tone"],"1F9D8-1F3FF-200D-2640-FE0F":["woman_in_lotus_position_tone5","woman_in_lotus_position_dark_skin_tone"],"1F9D8-200D-2642-FE0F":"man_in_lotus_position","1F9D8-1F3FB-200D-2642-FE0F":["man_in_lotus_position_tone1","man_in_lotus_position_light_skin_tone"],"1F9D8-1F3FC-200D-2642-FE0F":["man_in_lotus_position_tone2","man_in_lotus_position_medium_light_skin_tone"],"1F9D8-1F3FD-200D-2642-FE0F":["man_in_lotus_position_tone3","man_in_lotus_position_medium_skin_tone"],"1F9D8-1F3FE-200D-2642-FE0F":["man_in_lotus_position_tone4","man_in_lotus_position_medium_dark_skin_tone"],"1F9D8-1F3FF-200D-2642-FE0F":["man_in_lotus_position_tone5","man_in_lotus_position_dark_skin_tone"],"1F3C4":["person_surfing","surfer"],"1F3C4-1F3FB":["person_surfing_tone1","surfer_tone1"],"1F3C4-1F3FC":["person_surfing_tone2","surfer_tone2"],"1F3C4-1F3FD":["person_surfing_tone3","surfer_tone3"],"1F3C4-1F3FE":["person_surfing_tone4","surfer_tone4"],"1F3C4-1F3FF":["person_surfing_tone5","surfer_tone5"],"1F3C4-200D-2640-FE0F":"woman_surfing","1F3C4-1F3FB-200D-2640-FE0F":["woman_surfing_tone1","woman_surfing_light_skin_tone"],"1F3C4-1F3FC-200D-2640-FE0F":["woman_surfing_tone2","woman_surfing_medium_light_skin_tone"],"1F3C4-1F3FD-200D-2640-FE0F":["woman_surfing_tone3","woman_surfing_medium_skin_tone"],"1F3C4-1F3FE-200D-2640-FE0F":["woman_surfing_tone4","woman_surfing_medium_dark_skin_tone"],"1F3C4-1F3FF-200D-2640-FE0F":["woman_surfing_tone5","woman_surfing_dark_skin_tone"],"1F3C4-200D-2642-FE0F":"man_surfing","1F3C4-1F3FB-200D-2642-FE0F":["man_surfing_tone1","man_surfing_light_skin_tone"],"1F3C4-1F3FC-200D-2642-FE0F":["man_surfing_tone2","man_surfing_medium_light_skin_tone"],"1F3C4-1F3FD-200D-2642-FE0F":["man_surfing_tone3","man_surfing_medium_skin_tone"],"1F3C4-1F3FE-200D-2642-FE0F":["man_surfing_tone4","man_surfing_medium_dark_skin_tone"],"1F3C4-1F3FF-200D-2642-FE0F":["man_surfing_tone5","man_surfing_dark_skin_tone"],"1F3CA":["person_swimming","swimmer"],"1F3CA-1F3FB":["person_swimming_tone1","swimmer_tone1"],"1F3CA-1F3FC":["person_swimming_tone2","swimmer_tone2"],"1F3CA-1F3FD":["person_swimming_tone3","swimmer_tone3"],"1F3CA-1F3FE":["person_swimming_tone4","swimmer_tone4"],"1F3CA-1F3FF":["person_swimming_tone5","swimmer_tone5"],"1F3CA-200D-2640-FE0F":"woman_swimming","1F3CA-1F3FB-200D-2640-FE0F":["woman_swimming_tone1","woman_swimming_light_skin_tone"],"1F3CA-1F3FC-200D-2640-FE0F":["woman_swimming_tone2","woman_swimming_medium_light_skin_tone"],"1F3CA-1F3FD-200D-2640-FE0F":["woman_swimming_tone3","woman_swimming_medium_skin_tone"],"1F3CA-1F3FE-200D-2640-FE0F":["woman_swimming_tone4","woman_swimming_medium_dark_skin_tone"],"1F3CA-1F3FF-200D-2640-FE0F":["woman_swimming_tone5","woman_swimming_dark_skin_tone"],"1F3CA-200D-2642-FE0F":"man_swimming","1F3CA-1F3FB-200D-2642-FE0F":["man_swimming_tone1","man_swimming_light_skin_tone"],"1F3CA-1F3FC-200D-2642-FE0F":["man_swimming_tone2","man_swimming_medium_light_skin_tone"],"1F3CA-1F3FD-200D-2642-FE0F":["man_swimming_tone3","man_swimming_medium_skin_tone"],"1F3CA-1F3FE-200D-2642-FE0F":["man_swimming_tone4","man_swimming_medium_dark_skin_tone"],"1F3CA-1F3FF-200D-2642-FE0F":["man_swimming_tone5","man_swimming_dark_skin_tone"],"1F93D":["person_playing_water_polo","water_polo"],"1F93D-1F3FB":["person_playing_water_polo_tone1","water_polo_tone1"],"1F93D-1F3FC":["person_playing_water_polo_tone2","water_polo_tone2"],"1F93D-1F3FD":["person_playing_water_polo_tone3","water_polo_tone3"],"1F93D-1F3FE":["person_playing_water_polo_tone4","water_polo_tone4"],"1F93D-1F3FF":["person_playing_water_polo_tone5","water_polo_tone5"],"1F93D-200D-2640-FE0F":"woman_playing_water_polo","1F93D-1F3FB-200D-2640-FE0F":["woman_playing_water_polo_tone1","woman_playing_water_polo_light_skin_tone"],"1F93D-1F3FC-200D-2640-FE0F":["woman_playing_water_polo_tone2","woman_playing_water_polo_medium_light_skin_tone"],"1F93D-1F3FD-200D-2640-FE0F":["woman_playing_water_polo_tone3","woman_playing_water_polo_medium_skin_tone"],"1F93D-1F3FE-200D-2640-FE0F":["woman_playing_water_polo_tone4","woman_playing_water_polo_medium_dark_skin_tone"],"1F93D-1F3FF-200D-2640-FE0F":["woman_playing_water_polo_tone5","woman_playing_water_polo_dark_skin_tone"],"1F93D-200D-2642-FE0F":"man_playing_water_polo","1F93D-1F3FB-200D-2642-FE0F":["man_playing_water_polo_tone1","man_playing_water_polo_light_skin_tone"],"1F93D-1F3FC-200D-2642-FE0F":["man_playing_water_polo_tone2","man_playing_water_polo_medium_light_skin_tone"],"1F93D-1F3FD-200D-2642-FE0F":["man_playing_water_polo_tone3","man_playing_water_polo_medium_skin_tone"],"1F93D-1F3FE-200D-2642-FE0F":["man_playing_water_polo_tone4","man_playing_water_polo_medium_dark_skin_tone"],"1F93D-1F3FF-200D-2642-FE0F":["man_playing_water_polo_tone5","man_playing_water_polo_dark_skin_tone"],"1F6A3":["person_rowing_boat","rowboat"],"1F6A3-1F3FB":["person_rowing_boat_tone1","rowboat_tone1"],"1F6A3-1F3FC":["person_rowing_boat_tone2","rowboat_tone2"],"1F6A3-1F3FD":["person_rowing_boat_tone3","rowboat_tone3"],"1F6A3-1F3FE":["person_rowing_boat_tone4","rowboat_tone4"],"1F6A3-1F3FF":["person_rowing_boat_tone5","rowboat_tone5"],"1F6A3-200D-2640-FE0F":"woman_rowing_boat","1F6A3-1F3FB-200D-2640-FE0F":["woman_rowing_boat_tone1","woman_rowing_boat_light_skin_tone"],"1F6A3-1F3FC-200D-2640-FE0F":["woman_rowing_boat_tone2","woman_rowing_boat_medium_light_skin_tone"],"1F6A3-1F3FD-200D-2640-FE0F":["woman_rowing_boat_tone3","woman_rowing_boat_medium_skin_tone"],"1F6A3-1F3FE-200D-2640-FE0F":["woman_rowing_boat_tone4","woman_rowing_boat_medium_dark_skin_tone"],"1F6A3-1F3FF-200D-2640-FE0F":["woman_rowing_boat_tone5","woman_rowing_boat_dark_skin_tone"],"1F6A3-200D-2642-FE0F":"man_rowing_boat","1F6A3-1F3FB-200D-2642-FE0F":["man_rowing_boat_tone1","man_rowing_boat_light_skin_tone"],"1F6A3-1F3FC-200D-2642-FE0F":["man_rowing_boat_tone2","man_rowing_boat_medium_light_skin_tone"],"1F6A3-1F3FD-200D-2642-FE0F":["man_rowing_boat_tone3","man_rowing_boat_medium_skin_tone"],"1F6A3-1F3FE-200D-2642-FE0F":["man_rowing_boat_tone4","man_rowing_boat_medium_dark_skin_tone"],"1F6A3-1F3FF-200D-2642-FE0F":["man_rowing_boat_tone5","man_rowing_boat_dark_skin_tone"],"1F9D7":"person_climbing","1F9D7-1F3FB":["person_climbing_tone1","person_climbing_light_skin_tone"],"1F9D7-1F3FC":["person_climbing_tone2","person_climbing_medium_light_skin_tone"],"1F9D7-1F3FD":["person_climbing_tone3","person_climbing_medium_skin_tone"],"1F9D7-1F3FE":["person_climbing_tone4","person_climbing_medium_dark_skin_tone"],"1F9D7-1F3FF":["person_climbing_tone5","person_climbing_dark_skin_tone"],"1F9D7-200D-2640-FE0F":"woman_climbing","1F9D7-1F3FB-200D-2640-FE0F":["woman_climbing_tone1","woman_climbing_light_skin_tone"],"1F9D7-1F3FC-200D-2640-FE0F":["woman_climbing_tone2","woman_climbing_medium_light_skin_tone"],"1F9D7-1F3FD-200D-2640-FE0F":["woman_climbing_tone3","woman_climbing_medium_skin_tone"],"1F9D7-1F3FE-200D-2640-FE0F":["woman_climbing_tone4","woman_climbing_medium_dark_skin_tone"],"1F9D7-1F3FF-200D-2640-FE0F":["woman_climbing_tone5","woman_climbing_dark_skin_tone"],"1F9D7-200D-2642-FE0F":"man_climbing","1F9D7-1F3FB-200D-2642-FE0F":["man_climbing_tone1","man_climbing_light_skin_tone"],"1F9D7-1F3FC-200D-2642-FE0F":["man_climbing_tone2","man_climbing_medium_light_skin_tone"],"1F9D7-1F3FD-200D-2642-FE0F":["man_climbing_tone3","man_climbing_medium_skin_tone"],"1F9D7-1F3FE-200D-2642-FE0F":["man_climbing_tone4","man_climbing_medium_dark_skin_tone"],"1F9D7-1F3FF-200D-2642-FE0F":["man_climbing_tone5","man_climbing_dark_skin_tone"],"1F6B5":["person_mountain_biking","mountain_bicyclist"],"1F6B5-1F3FB":["person_mountain_biking_tone1","mountain_bicyclist_tone1"],"1F6B5-1F3FC":["person_mountain_biking_tone2","mountain_bicyclist_tone2"],"1F6B5-1F3FD":["person_mountain_biking_tone3","mountain_bicyclist_tone3"],"1F6B5-1F3FE":["person_mountain_biking_tone4","mountain_bicyclist_tone4"],"1F6B5-1F3FF":["person_mountain_biking_tone5","mountain_bicyclist_tone5"],"1F6B5-200D-2640-FE0F":"woman_mountain_biking","1F6B5-1F3FB-200D-2640-FE0F":["woman_mountain_biking_tone1","woman_mountain_biking_light_skin_tone"],"1F6B5-1F3FC-200D-2640-FE0F":["woman_mountain_biking_tone2","woman_mountain_biking_medium_light_skin_tone"],"1F6B5-1F3FD-200D-2640-FE0F":["woman_mountain_biking_tone3","woman_mountain_biking_medium_skin_tone"],"1F6B5-1F3FE-200D-2640-FE0F":["woman_mountain_biking_tone4","woman_mountain_biking_medium_dark_skin_tone"],"1F6B5-1F3FF-200D-2640-FE0F":["woman_mountain_biking_tone5","woman_mountain_biking_dark_skin_tone"],"1F6B5-200D-2642-FE0F":"man_mountain_biking","1F6B5-1F3FB-200D-2642-FE0F":["man_mountain_biking_tone1","man_mountain_biking_light_skin_tone"],"1F6B5-1F3FC-200D-2642-FE0F":["man_mountain_biking_tone2","man_mountain_biking_medium_light_skin_tone"],"1F6B5-1F3FD-200D-2642-FE0F":["man_mountain_biking_tone3","man_mountain_biking_medium_skin_tone"],"1F6B5-1F3FE-200D-2642-FE0F":["man_mountain_biking_tone4","man_mountain_biking_medium_dark_skin_tone"],"1F6B5-1F3FF-200D-2642-FE0F":["man_mountain_biking_tone5","man_mountain_biking_dark_skin_tone"],"1F6B4":["person_biking","bicyclist"],"1F6B4-1F3FB":["person_biking_tone1","bicyclist_tone1"],"1F6B4-1F3FC":["person_biking_tone2","bicyclist_tone2"],"1F6B4-1F3FD":["person_biking_tone3","bicyclist_tone3"],"1F6B4-1F3FE":["person_biking_tone4","bicyclist_tone4"],"1F6B4-1F3FF":["person_biking_tone5","bicyclist_tone5"],"1F6B4-200D-2640-FE0F":"woman_biking","1F6B4-1F3FB-200D-2640-FE0F":["woman_biking_tone1","woman_biking_light_skin_tone"],"1F6B4-1F3FC-200D-2640-FE0F":["woman_biking_tone2","woman_biking_medium_light_skin_tone"],"1F6B4-1F3FD-200D-2640-FE0F":["woman_biking_tone3","woman_biking_medium_skin_tone"],"1F6B4-1F3FE-200D-2640-FE0F":["woman_biking_tone4","woman_biking_medium_dark_skin_tone"],"1F6B4-1F3FF-200D-2640-FE0F":["woman_biking_tone5","woman_biking_dark_skin_tone"],"1F6B4-200D-2642-FE0F":"man_biking","1F6B4-1F3FB-200D-2642-FE0F":["man_biking_tone1","man_biking_light_skin_tone"],"1F6B4-1F3FC-200D-2642-FE0F":["man_biking_tone2","man_biking_medium_light_skin_tone"],"1F6B4-1F3FD-200D-2642-FE0F":["man_biking_tone3","man_biking_medium_skin_tone"],"1F6B4-1F3FE-200D-2642-FE0F":["man_biking_tone4","man_biking_medium_dark_skin_tone"],"1F6B4-1F3FF-200D-2642-FE0F":["man_biking_tone5","man_biking_dark_skin_tone"],"1F3C6":"trophy","1F947":["first_place","first_place_medal"],"1F948":["second_place","second_place_medal"],"1F949":["third_place","third_place_medal"],"1F3C5":["medal","sports_medal"],"1F396":"military_medal","1F3F5":"rosette","1F397":"reminder_ribbon","1F3AB":"ticket","1F39F":["tickets","admission_tickets"],"1F3AA":"circus_tent","1F939":["person_juggling","juggling","juggler"],"1F939-1F3FB":["person_juggling_tone1","juggling_tone1","juggler_tone1"],"1F939-1F3FC":["person_juggling_tone2","juggling_tone2","juggler_tone2"],"1F939-1F3FD":["person_juggling_tone3","juggling_tone3","juggler_tone3"],"1F939-1F3FE":["person_juggling_tone4","juggling_tone4","juggler_tone4"],"1F939-1F3FF":["person_juggling_tone5","juggling_tone5","juggler_tone5"],"1F939-200D-2640-FE0F":"woman_juggling","1F939-1F3FB-200D-2640-FE0F":["woman_juggling_tone1","woman_juggling_light_skin_tone"],"1F939-1F3FC-200D-2640-FE0F":["woman_juggling_tone2","woman_juggling_medium_light_skin_tone"],"1F939-1F3FD-200D-2640-FE0F":["woman_juggling_tone3","woman_juggling_medium_skin_tone"],"1F939-1F3FE-200D-2640-FE0F":["woman_juggling_tone4","woman_juggling_medium_dark_skin_tone"],"1F939-1F3FF-200D-2640-FE0F":["woman_juggling_tone5","woman_juggling_dark_skin_tone"],"1F939-200D-2642-FE0F":"man_juggling","1F939-1F3FB-200D-2642-FE0F":["man_juggling_tone1","man_juggling_light_skin_tone"],"1F939-1F3FC-200D-2642-FE0F":["man_juggling_tone2","man_juggling_medium_light_skin_tone"],"1F939-1F3FD-200D-2642-FE0F":["man_juggling_tone3","man_juggling_medium_skin_tone"],"1F939-1F3FE-200D-2642-FE0F":["man_juggling_tone4","man_juggling_medium_dark_skin_tone"],"1F939-1F3FF-200D-2642-FE0F":["man_juggling_tone5","man_juggling_dark_skin_tone"],"1F3AD":"performing_arts","1FA70":"ballet_shoes","1F3A8":"art","1F3AC":["clapper","clapper_board"],"1F3A4":"microphone","1F3A7":["headphones","headphone"],"1F3BC":"musical_score","1F3B9":"musical_keyboard","1FA87":"maracas","1F941":["drum","drum_with_drumsticks"],"1FA98":"long_drum","1F3B7":"saxophone","1F3BA":"trumpet","1FA97":"accordion","1F3B8":"guitar","1FA95":"banjo","1F3BB":"violin","1FA88":"flute","1F3B2":"game_die","265F":"chess_pawn","1F3AF":["dart","direct_hit"],"1F3B3":"bowling","1F3AE":"video_game","1F3B0":"slot_machine","1F9E9":["jigsaw","puzzle_piece"],"1F697":["red_car","automobile"],"1F695":"taxi","1F699":"blue_car","1F6FB":"pickup_truck","1F690":"minibus","1F68C":"bus","1F68E":"trolleybus","1F3CE":["race_car","racing_car"],"1F693":"police_car","1F691":"ambulance","1F692":"fire_engine","1F69A":"truck","1F69B":"articulated_lorry","1F69C":"tractor","1F9AF":"probing_cane","1F9BD":"manual_wheelchair","1F9BC":"motorized_wheelchair","1FA7C":"crutch","1F6F4":["scooter","kick_scooter"],"1F6B2":["bike","bicycle"],"1F6F5":["motor_scooter","motorbike"],"1F3CD":["motorcycle","racing_motorcycle"],"1F6FA":"auto_rickshaw","1F6DE":"wheel","1F6A8":"rotating_light","1F694":"oncoming_police_car","1F68D":"oncoming_bus","1F698":"oncoming_automobile","1F696":"oncoming_taxi","1F6A1":"aerial_tramway","1F6A0":"mountain_cableway","1F69F":"suspension_railway","1F683":"railway_car","1F68B":["train","tram_car"],"1F69E":"mountain_railway","1F69D":"monorail","1F684":"bullettrain_side","1F685":["bullettrain_front","bullet_train"],"1F688":"light_rail","1F682":["steam_locomotive","locomotive"],"1F686":"train2","1F687":"metro","1F68A":"tram","1F689":"station","1F6EB":"airplane_departure","1F6EC":"airplane_arriving","1F6E9":["airplane_small","small_airplane"],"1F4BA":"seat","1F6F0":"satellite_orbital","1F680":"rocket","1F6F8":"flying_saucer","1F681":"helicopter","1F6F6":["canoe","kayak"],"26F5":"sailboat","1F6A4":"speedboat","1F6E5":["motorboat","motor_boat"],"1F6F3":["cruise_ship","passenger_ship"],"26F4":"ferry","1F6A2":"ship","1F6DF":"ring_buoy","1FA9D":"hook","26FD":["fuelpump","fuel_pump"],"1F6A7":"construction","1F6A6":"vertical_traffic_light","1F6A5":"traffic_light","1F68F":["busstop","bus_stop"],"1F5FA":["map","world_map"],"1F5FF":["moyai","moai"],"1F5FD":"statue_of_liberty","1F5FC":"tokyo_tower","1F3F0":["european_castle","castle"],"1F3EF":"japanese_castle","1F3DF":"stadium","1F3A1":"ferris_wheel","1F3A2":"roller_coaster","1F3A0":"carousel_horse","26F2":"fountain","26F1":["beach_umbrella","umbrella_on_ground"],"1F3D6":["beach","beach_with_umbrella"],"1F3DD":["island","desert_island"],"1F3DC":"desert","1F30B":"volcano","26F0":"mountain","1F3D4":["mountain_snow","snow_capped_mountain"],"1F5FB":"mount_fuji","1F3D5":"camping","26FA":"tent","1F3E0":"house","1F3E1":"house_with_garden","1F3D8":["homes","house_buildings","houses"],"1F3DA":["house_abandoned","derelict_house_building"],"1F6D6":"hut","1F3D7":["construction_site","building_construction"],"1F3ED":"factory","1F3E2":"office","1F3EC":"department_store","1F3E3":"post_office","1F3E4":"european_post_office","1F3E5":"hospital","1F3E6":"bank","1F3E8":"hotel","1F3EA":"convenience_store","1F3EB":"school","1F3E9":"love_hotel","1F492":"wedding","1F3DB":"classical_building","26EA":"church","1F54C":"mosque","1F54D":"synagogue","1F6D5":"hindu_temple","1F54B":"kaaba","26E9":"shinto_shrine","1F6E4":["railway_track","railroad_track"],"1F6E3":"motorway","1F5FE":["japan","map_of_japan"],"1F391":"rice_scene","1F3DE":["park","national_park"],"1F305":"sunrise","1F304":"sunrise_over_mountains","1F320":["stars","shooting_star"],"1F387":"sparkler","1F386":"fireworks","1F307":["city_sunset","city_sunrise","sunset"],"1F306":"city_dusk","1F3D9":"cityscape","1F303":"night_with_stars","1F30C":"milky_way","1F309":"bridge_at_night","1F301":"foggy","231A":"watch","1F4F1":"mobile_phone","1F4F2":"calling","1F4BB":"computer","1F5A5":["desktop","desktop_computer"],"1F5A8":"printer","1F5B1":["mouse_three_button","three_button_mouse"],"1F5B2":"trackball","1F579":"joystick","1F5DC":["compression","clamp"],"1F4BD":["minidisc","computer_disk"],"1F4BE":"floppy_disk","1F4BF":["cd","optical_disk"],"1F4C0":"dvd","1F4FC":["vhs","videocassette"],"1F4F7":"camera","1F4F8":"camera_with_flash","1F4F9":"video_camera","1F3A5":"movie_camera","1F4FD":["projector","film_projector"],"1F39E":"film_frames","1F4DE":"telephone_receiver","260E":"telephone","1F4DF":"pager","1F4E0":["fax","fax_machine"],"1F4FA":["tv","television"],"1F4FB":"radio","1F399":["microphone2","studio_microphone"],"1F39A":"level_slider","1F39B":"control_knobs","1F9ED":"compass","23F1":"stopwatch","23F2":["timer","timer_clock"],"23F0":"alarm_clock","1F570":["clock","mantlepiece_clock"],"231B":"hourglass","23F3":"hourglass_flowing_sand","1F4E1":"satellite","1F50B":"battery","1FAAB":"low_battery","1F50C":"electric_plug","1F4A1":["bulb","light_bulb"],"1F526":"flashlight","1F56F":"candle","1FA94":"diya_lamp","1F9EF":"fire_extinguisher","1F6E2":["oil","oil_drum"],"1F4B8":"money_with_wings","1F4B5":"dollar","1F4B4":["yen","yen_banknote"],"1F4B6":["euro","euro_banknote"],"1F4B7":"pound","1FA99":"coin","1F4B0":["moneybag","money_bag"],"1F4B3":"credit_card","1FAAA":"identification_card","1F48E":["gem","gem_stone"],"1FA9C":"ladder","1F9F0":"toolbox","1FA9B":"screwdriver","1F527":"wrench","1F528":"hammer","1F6E0":["tools","hammer_and_wrench"],"26CF":"pick","1FA9A":"carpentry_saw","1F529":"nut_and_bolt","1FAA4":"mouse_trap","1F9F1":["bricks","brick"],"26D3":"chains","1F9F2":"magnet","1F52B":["gun","pistol"],"1F4A3":"bomb","1F9E8":"firecracker","1FA93":"axe","1F52A":["knife","kitchen_knife"],"1F5E1":["dagger","dagger_knife"],"1F6E1":"shield","1F6AC":["smoking","cigarette"],"26B0":"coffin","1FAA6":"headstone","26B1":["urn","funeral_urn"],"1F3FA":"amphora","1F52E":"crystal_ball","1F4FF":"prayer_beads","1F9FF":"nazar_amulet","1FAAC":"hamsa","1F488":["barber","barber_pole"],"1F52D":"telescope","1F52C":"microscope","1F573":"hole","1FA7B":"x_ray","1FA79":"adhesive_bandage","1FA7A":"stethoscope","1F48A":"pill","1F489":"syringe","1FA78":"drop_of_blood","1F9EC":"dna","1F9A0":"microbe","1F9EB":"petri_dish","1F9EA":"test_tube","1F321":"thermometer","1F9F9":"broom","1FAA0":"plunger","1F9FA":"basket","1F9FB":"roll_of_paper","1F6BD":"toilet","1F6B0":"potable_water","1F6BF":"shower","1F6C1":"bathtub","1F6C0":"bath","1F6C0-1F3FB":"bath_tone1","1F6C0-1F3FC":"bath_tone2","1F6C0-1F3FD":"bath_tone3","1F6C0-1F3FE":"bath_tone4","1F6C0-1F3FF":"bath_tone5","1F9FC":"soap","1FAA5":"toothbrush","1FA92":"razor","1FAAE":"hair_pick","1F9FD":"sponge","1FAA3":"bucket","1F9F4":["squeeze_bottle","lotion_bottle"],"1F6CE":["bellhop","bellhop_bell"],"1F511":"key","1F5DD":["key2","old_key"],"1F6AA":"door","1FA91":"chair","1F6CB":["couch","couch_and_lamp"],"1F6CF":"bed","1F6CC":["sleeping_accommodation","person_in_bed"],"1F6CC-1F3FB":["person_in_bed_tone1","person_in_bed_light_skin_tone"],"1F6CC-1F3FC":["person_in_bed_tone2","person_in_bed_medium_light_skin_tone"],"1F6CC-1F3FD":["person_in_bed_tone3","person_in_bed_medium_skin_tone"],"1F6CC-1F3FE":["person_in_bed_tone4","person_in_bed_medium_dark_skin_tone"],"1F6CC-1F3FF":["person_in_bed_tone5","person_in_bed_dark_skin_tone"],"1F9F8":"teddy_bear","1FA86":"nesting_dolls","1F5BC":["frame_photo","frame_with_picture"],"1FA9E":"mirror","1FA9F":"window","1F6CD":"shopping_bags","1F6D2":["shopping_cart","shopping_trolley"],"1F381":["gift","wrapped_gift"],"1F388":"balloon","1F38F":["flags","carp_streamer"],"1F380":"ribbon","1FA84":"magic_wand","1FA85":"pinata","1F38A":"confetti_ball","1F389":["tada","party_popper"],"1F38E":"dolls","1FAAD":"folding_hand_fan","1F3EE":"izakaya_lantern","1F390":"wind_chime","1FAA9":"mirror_ball","1F9E7":"red_envelope","1F4E9":"envelope_with_arrow","1F4E8":"incoming_envelope","1F4E7":["e-mail","email","e_mail"],"1F48C":"love_letter","1F4E5":"inbox_tray","1F4E4":"outbox_tray","1F4E6":"package","1F3F7":"label","1FAA7":"placard","1F4EA":"mailbox_closed","1F4EB":"mailbox","1F4EC":"mailbox_with_mail","1F4ED":"mailbox_with_no_mail","1F4EE":"postbox","1F4EF":"postal_horn","1F4DC":"scroll","1F4C3":"page_with_curl","1F4C4":"page_facing_up","1F4D1":"bookmark_tabs","1F9FE":"receipt","1F4CA":"bar_chart","1F4C8":"chart_with_upwards_trend","1F4C9":"chart_with_downwards_trend","1F5D2":["notepad_spiral","spiral_note_pad"],"1F5D3":["calendar_spiral","spiral_calendar_pad"],"1F4C6":"calendar","1F4C5":"date","1F5D1":"wastebasket","1F4C7":"card_index","1F5C3":["card_box","card_file_box"],"1F5F3":["ballot_box","ballot_box_with_ballot"],"1F5C4":"file_cabinet","1F4CB":"clipboard","1F4C1":"file_folder","1F4C2":"open_file_folder","1F5C2":["dividers","card_index_dividers"],"1F5DE":["newspaper2","rolled_up_newspaper"],"1F4F0":"newspaper","1F4D3":"notebook","1F4D4":"notebook_with_decorative_cover","1F4D2":"ledger","1F4D5":"closed_book","1F4D7":"green_book","1F4D8":"blue_book","1F4D9":"orange_book","1F4DA":"books","1F4D6":["book","open_book"],"1F516":"bookmark","1F9F7":"safety_pin","1F517":"link","1F4CE":"paperclip","1F587":["paperclips","linked_paperclips"],"1F4D0":"triangular_ruler","1F4CF":"straight_ruler","1F9EE":"abacus","1F4CC":"pushpin","1F4CD":"round_pushpin","1F58A":["pen_ballpoint","lower_left_ballpoint_pen","pen"],"1F58B":["pen_fountain","lower_left_fountain_pen","fountain_pen"],"1F58C":["paintbrush","lower_left_paintbrush"],"1F58D":["crayon","lower_left_crayon"],"1F4DD":["pencil","memo"],"270F":"pencil2","1F50D":"mag","1F50E":"mag_right","1F50F":"lock_with_ink_pen","1F510":"closed_lock_with_key","1F512":["lock","locked"],"1F513":["unlock","unlocked"],"1FA77":"pink_heart","1F9E1":"orange_heart","1F49B":"yellow_heart","1F49A":"green_heart","1FA75":"light_blue_heart","1F499":"blue_heart","1F49C":"purple_heart","1F5A4":"black_heart","1FA76":"grey_heart","1F90D":"white_heart","1F90E":"brown_heart","1F494":"broken_heart","1F495":"two_hearts","1F49E":"revolving_hearts","1F493":["heartbeat","beating_heart"],"1F497":["heartpulse","growing_heart"],"1F496":"sparkling_heart","1F498":"cupid","1F49D":"gift_heart","2764-FE0F-200D-1FA79":"mending_heart","2764-FE0F-200D-1F525":"heart_on_fire","1F49F":"heart_decoration","262E":["peace","peace_symbol"],"271D":["cross","latin_cross"],"262A":"star_and_crescent","1F549":"om_symbol","1FAAF":"khanda","1F52F":"six_pointed_star","1F54E":"menorah","262F":"yin_yang","1F6D0":["place_of_worship","worship_symbol"],"26CE":"ophiuchus","264A":"gemini","264B":"cancer","264C":"leo","264D":"virgo","264E":"libra","264F":["scorpius","scorpio"],"1F194":"id","269B":["atom","atom_symbol"],"1F251":"accept","1F4F4":"mobile_phone_off","1F4F3":"vibration_mode","1F236":"u6709","1F21A":"u7121","1F238":"u7533","1F23A":"u55b6","1F237":"u6708","1F19A":"vs","1F4AE":"white_flower","1F250":"ideograph_advantage","1F234":"u5408","1F235":"u6e80","1F239":"u5272","1F232":"u7981","1F170":"a","1F171":"b","1F18E":"ab","1F191":"cl","1F17E":"o2","1F198":"sos","274C":["x","cross_mark"],"2B55":"o","1F6D1":["octagonal_sign","stop_sign"],"26D4":"no_entry","1F4DB":"name_badge","1F6AB":["no_entry_sign","prohibited"],"1F4AF":"100","1F4A2":"anger","1F6B7":"no_pedestrians","1F6AF":["do_not_litter","no_littering"],"1F6B3":"no_bicycles","1F6B1":"non-potable_water","1F51E":"underage","1F4F5":"no_mobile_phones","1F6AD":"no_smoking","203C":"bangbang","1F505":"low_brightness","1F506":"high_brightness","303D":"part_alternation_mark","26A0":"warning","1F6B8":"children_crossing","1F531":"trident","269C":["fleur-de-lis","fleur_de_lis"],"1F530":"beginner","267B":"recycle","1F22F":"u6307","1F4B9":"chart","274E":"negative_squared_cross_mark","1F310":"globe_with_meridians","1F4A0":"diamond_shape_with_a_dot_inside","24C2":["m","circled_m"],"1F300":"cyclone","1F4A4":"zzz","1F3E7":"atm","1F6BE":["wc","water_closet"],"267F":"wheelchair","1F17F":"parking","1F6D7":"elevator","1F233":"u7a7a","1F202":"sa","1F6C2":"passport_control","1F6C3":"customs","1F6C4":"baggage_claim","1F6C5":"left_luggage","1F6DC":"wireless","1F6B9":["mens","mens_room"],"1F6BA":["womens","womens_room"],"1F6BC":"baby_symbol","1F6BB":"restroom","1F6AE":"put_litter_in_its_place","1F3A6":"cinema","1F4F6":["signal_strength","antenna_bars"],"1F201":"koko","1F523":["symbols","input_symbols"],"1F524":"abc","1F521":"abcd","1F520":"capital_abcd","1F196":"ng","1F197":"ok","1F199":"up","1F192":"cool","1F195":"new","1F193":"free","0030-FE0F-20E3":"zero","0031-FE0F-20E3":"one","0032-FE0F-20E3":"two","0033-FE0F-20E3":"three","0034-FE0F-20E3":"four","0035-FE0F-20E3":"five","0036-FE0F-20E3":"six","0037-FE0F-20E3":"seven","0038-FE0F-20E3":"eight","0039-FE0F-20E3":"nine","1F51F":"keycap_ten","1F522":["1234","input_numbers"],"0023-FE0F-20E3":"hash","002A-FE0F-20E3":["asterisk","keycap_asterisk"],"23CF":["eject","eject_symbol"],"25B6":"arrow_forward","23F8":["pause_button","double_vertical_bar"],"23EF":"play_pause","23F9":"stop_button","23FA":"record_button","23ED":["track_next","next_track"],"23EE":["track_previous","previous_track"],"23E9":"fast_forward","23EA":"rewind","23EB":"arrow_double_up","23EC":"arrow_double_down","25C0":"arrow_backward","1F53C":"arrow_up_small","1F53D":"arrow_down_small","27A1":["arrow_right","right_arrow"],"2B05":["arrow_left","left_arrow"],"2B06":["arrow_up","up_arrow"],"2B07":["arrow_down","down_arrow"],"21AA":"arrow_right_hook","21A9":"leftwards_arrow_with_hook","1F500":"twisted_rightwards_arrows","1F501":"repeat","1F502":"repeat_one","1F504":"arrows_counterclockwise","1F503":"arrows_clockwise","1F3B5":"musical_note","1F3B6":["notes","musical_notes"],"1F7F0":"heavy_equals_sign","267E":"infinity","1F4B2":"heavy_dollar_sign","1F4B1":"currency_exchange","00A9":"copyright","00AE":"registered","27B0":"curly_loop","27BF":"loop","1F51A":["end","end_arrow"],"1F519":["back","back_arrow"],"1F51B":["on","on_arrow"],"1F51D":["top","top_arrow"],"1F51C":["soon","soon_arrow"],"1F518":"radio_button","26AA":"white_circle","26AB":"black_circle","1F534":"red_circle","1F535":"blue_circle","1F7E4":"brown_circle","1F7E3":"purple_circle","1F7E2":"green_circle","1F7E1":"yellow_circle","1F7E0":"orange_circle","1F53A":"small_red_triangle","1F53B":"small_red_triangle_down","1F538":"small_orange_diamond","1F539":"small_blue_diamond","1F536":"large_orange_diamond","1F537":"large_blue_diamond","1F533":"white_square_button","1F532":"black_square_button","25AA":"black_small_square","25AB":"white_small_square","25FE":"black_medium_small_square","25FD":"white_medium_small_square","25FC":"black_medium_square","25FB":"white_medium_square","2B1B":"black_large_square","2B1C":"white_large_square","1F7E7":"orange_square","1F7E6":"blue_square","1F7E5":"red_square","1F7EB":"brown_square","1F7EA":"purple_square","1F7E9":"green_square","1F7E8":"yellow_square","1F508":"speaker","1F507":["mute","muted_speaker"],"1F509":"sound","1F50A":"loud_sound","1F514":"bell","1F515":"no_bell","1F4E3":["mega","megaphone"],"1F4E2":"loudspeaker","1F5E8":["speech_left","left_speech_bubble"],"1F441-FE0F-200D-1F5E8-FE0F":"eye_in_speech_bubble","1F4AC":"speech_balloon","1F4AD":"thought_balloon","1F5EF":["anger_right","right_anger_bubble"],"1F0CF":["black_joker","joker"],"1F3B4":"flower_playing_cards","1F004":"mahjong","1F550":["clock1","one_oclock"],"1F551":["clock2","two_oclock"],"1F552":["clock3","three_oclock"],"1F553":["clock4","four_oclock"],"1F554":["clock5","five_oclock"],"1F555":["clock6","six_oclock"],"1F556":["clock7","seven_oclock"],"1F557":["clock8","eight_oclock"],"1F558":["clock9","nine_oclock"],"1F559":["clock10","ten_oclock"],"1F55A":["clock11","eleven_oclock"],"1F55B":["clock12","twelve_oclock"],"1F55C":["clock130","one_thirty"],"1F55D":["clock230","two_thirty"],"1F55E":["clock330","three_thirty"],"1F55F":["clock430","four_thirty"],"1F560":["clock530","five_thirty"],"1F561":["clock630","six_thirty"],"1F562":["clock730","seven_thirty"],"1F563":["clock830","eight_thirty"],"1F564":["clock930","nine_thirty"],"1F565":["clock1030","ten_thirty"],"1F566":["clock1130","eleven_thirty"],"1F567":["clock1230","twelve_thirty"],"26A7":"transgender_symbol","1F3F3":["flag_white","waving_white_flag","white_flag"],"1F3F4":["flag_black","waving_black_flag","black_flag"],"1F3F4-200D-2620-FE0F":"pirate_flag","1F3C1":"checkered_flag","1F6A9":"triangular_flag_on_post","1F3F3-FE0F-200D-1F308":["rainbow_flag","gay_pride_flag"],"1F3F3-FE0F-200D-26A7-FE0F":"transgender_flag","1F1FA-1F1F3":"united_nations","1F1E6-1F1EB":["flag_af","af"],"1F1E6-1F1FD":["flag_ax","ax"],"1F1E6-1F1F1":["flag_al","al"],"1F1E9-1F1FF":["flag_dz","dz"],"1F1E6-1F1F8":["flag_as","as"],"1F1E6-1F1E9":["flag_ad","ad"],"1F1E6-1F1F4":["flag_ao","ao"],"1F1E6-1F1EE":["flag_ai","ai"],"1F1E6-1F1F6":["flag_aq","aq"],"1F1E6-1F1EC":["flag_ag","ag"],"1F1E6-1F1F7":["flag_ar","ar"],"1F1E6-1F1F2":["flag_am","am"],"1F1E6-1F1FC":["flag_aw","aw"],"1F1E6-1F1FA":["flag_au","au"],"1F1E6-1F1F9":["flag_at","at"],"1F1E6-1F1FF":["flag_az","az"],"1F1E7-1F1F8":["flag_bs","bs"],"1F1E7-1F1ED":["flag_bh","bh"],"1F1E7-1F1E9":["flag_bd","bd"],"1F1E7-1F1E7":["flag_bb","bb"],"1F1E7-1F1FE":["flag_by","by"],"1F1E7-1F1EA":["flag_be","be"],"1F1E7-1F1FF":["flag_bz","bz"],"1F1E7-1F1EF":["flag_bj","bj"],"1F1E7-1F1F2":["flag_bm","bm"],"1F1E7-1F1F9":["flag_bt","bt"],"1F1E7-1F1F4":["flag_bo","bo"],"1F1E7-1F1E6":["flag_ba","ba"],"1F1E7-1F1FC":["flag_bw","bw"],"1F1E7-1F1F7":["flag_br","br"],"1F1EE-1F1F4":["flag_io","io"],"1F1FB-1F1EC":["flag_vg","vg"],"1F1E7-1F1F3":["flag_bn","bn"],"1F1E7-1F1EC":["flag_bg","bg"],"1F1E7-1F1EB":["flag_bf","bf"],"1F1E7-1F1EE":["flag_bi","bi"],"1F1F0-1F1ED":["flag_kh","kh"],"1F1E8-1F1F2":["flag_cm","cm"],"1F1E8-1F1E6":["flag_ca","ca"],"1F1EE-1F1E8":["flag_ic","ic"],"1F1E8-1F1FB":["flag_cv","cv"],"1F1E7-1F1F6":["flag_bq","bq"],"1F1F0-1F1FE":["flag_ky","ky"],"1F1E8-1F1EB":["flag_cf","cf"],"1F1F9-1F1E9":["flag_td","td"],"1F1E8-1F1F1":["flag_cl","chile"],"1F1E8-1F1F3":["flag_cn","cn"],"1F1E8-1F1FD":["flag_cx","cx"],"1F1E8-1F1E8":["flag_cc","cc"],"1F1E8-1F1F4":["flag_co","co"],"1F1F0-1F1F2":["flag_km","km"],"1F1E8-1F1EC":["flag_cg","cg"],"1F1E8-1F1E9":["flag_cd","congo"],"1F1E8-1F1F0":["flag_ck","ck"],"1F1E8-1F1F7":["flag_cr","cr"],"1F1E8-1F1EE":["flag_ci","ci"],"1F1ED-1F1F7":["flag_hr","hr"],"1F1E8-1F1FA":["flag_cu","cu"],"1F1E8-1F1FC":["flag_cw","cw"],"1F1E8-1F1FE":["flag_cy","cy"],"1F1E8-1F1FF":["flag_cz","cz"],"1F1E9-1F1F0":["flag_dk","dk"],"1F1E9-1F1EF":["flag_dj","dj"],"1F1E9-1F1F2":["flag_dm","dm"],"1F1E9-1F1F4":["flag_do","do"],"1F1EA-1F1E8":["flag_ec","ec"],"1F1EA-1F1EC":["flag_eg","eg"],"1F1F8-1F1FB":["flag_sv","sv"],"1F1EC-1F1F6":["flag_gq","gq"],"1F1EA-1F1F7":["flag_er","er"],"1F1EA-1F1EA":["flag_ee","ee"],"1F1EA-1F1F9":["flag_et","et"],"1F1EA-1F1FA":["flag_eu","eu"],"1F1EB-1F1F0":["flag_fk","fk"],"1F1EB-1F1F4":["flag_fo","fo"],"1F1EB-1F1EF":["flag_fj","fj"],"1F1EB-1F1EE":["flag_fi","fi"],"1F1EB-1F1F7":["flag_fr","fr"],"1F1EC-1F1EB":["flag_gf","gf"],"1F1F5-1F1EB":["flag_pf","pf"],"1F1F9-1F1EB":["flag_tf","tf"],"1F1EC-1F1E6":["flag_ga","ga"],"1F1EC-1F1F2":["flag_gm","gm"],"1F1EC-1F1EA":["flag_ge","ge"],"1F1E9-1F1EA":["flag_de","de"],"1F1EC-1F1ED":["flag_gh","gh"],"1F1EC-1F1EE":["flag_gi","gi"],"1F1EC-1F1F7":["flag_gr","gr"],"1F1EC-1F1F1":["flag_gl","gl"],"1F1EC-1F1E9":["flag_gd","gd"],"1F1EC-1F1F5":["flag_gp","gp"],"1F1EC-1F1FA":["flag_gu","gu"],"1F1EC-1F1F9":["flag_gt","gt"],"1F1EC-1F1EC":["flag_gg","gg"],"1F1EC-1F1F3":["flag_gn","gn"],"1F1EC-1F1FC":["flag_gw","gw"],"1F1EC-1F1FE":["flag_gy","gy"],"1F1ED-1F1F9":["flag_ht","ht"],"1F1ED-1F1F3":["flag_hn","hn"],"1F1ED-1F1F0":["flag_hk","hk"],"1F1ED-1F1FA":["flag_hu","hu"],"1F1EE-1F1F8":["flag_is","is"],"1F1EE-1F1F3":["flag_in","in"],"1F1EE-1F1E9":["flag_id","indonesia"],"1F1EE-1F1F7":["flag_ir","ir"],"1F1EE-1F1F6":["flag_iq","iq"],"1F1EE-1F1EA":["flag_ie","ie"],"1F1EE-1F1F2":["flag_im","im"],"1F1EE-1F1F1":["flag_il","il"],"1F1EE-1F1F9":["flag_it","it"],"1F1EF-1F1F2":["flag_jm","jm"],"1F1EF-1F1F5":["flag_jp","jp"],"1F38C":"crossed_flags","1F1EF-1F1EA":["flag_je","je"],"1F1EF-1F1F4":["flag_jo","jo"],"1F1F0-1F1FF":["flag_kz","kz"],"1F1F0-1F1EA":["flag_ke","ke"],"1F1F0-1F1EE":["flag_ki","ki"],"1F1FD-1F1F0":["flag_xk","xk"],"1F1F0-1F1FC":["flag_kw","kw"],"1F1F0-1F1EC":["flag_kg","kg"],"1F1F1-1F1E6":["flag_la","la"],"1F1F1-1F1FB":["flag_lv","lv"],"1F1F1-1F1E7":["flag_lb","lb"],"1F1F1-1F1F8":["flag_ls","ls"],"1F1F1-1F1F7":["flag_lr","lr"],"1F1F1-1F1FE":["flag_ly","ly"],"1F1F1-1F1EE":["flag_li","li"],"1F1F1-1F1F9":["flag_lt","lt"],"1F1F1-1F1FA":["flag_lu","lu"],"1F1F2-1F1F4":["flag_mo","mo"],"1F1F2-1F1F0":["flag_mk","mk"],"1F1F2-1F1EC":["flag_mg","mg"],"1F1F2-1F1FC":["flag_mw","mw"],"1F1F2-1F1FE":["flag_my","my"],"1F1F2-1F1FB":["flag_mv","mv"],"1F1F2-1F1F1":["flag_ml","ml"],"1F1F2-1F1F9":["flag_mt","mt"],"1F1F2-1F1ED":["flag_mh","mh"],"1F1F2-1F1F6":["flag_mq","mq"],"1F1F2-1F1F7":["flag_mr","mr"],"1F1F2-1F1FA":["flag_mu","mu"],"1F1FE-1F1F9":["flag_yt","yt"],"1F1F2-1F1FD":["flag_mx","mx"],"1F1EB-1F1F2":["flag_fm","fm"],"1F1F2-1F1E9":["flag_md","md"],"1F1F2-1F1E8":["flag_mc","mc"],"1F1F2-1F1F3":["flag_mn","mn"],"1F1F2-1F1EA":["flag_me","me"],"1F1F2-1F1F8":["flag_ms","ms"],"1F1F2-1F1E6":["flag_ma","ma"],"1F1F2-1F1FF":["flag_mz","mz"],"1F1F2-1F1F2":["flag_mm","mm"],"1F1F3-1F1E6":["flag_na","na"],"1F1F3-1F1F7":["flag_nr","nr"],"1F1F3-1F1F5":["flag_np","np"],"1F1F3-1F1F1":["flag_nl","nl"],"1F1F3-1F1E8":["flag_nc","nc"],"1F1F3-1F1FF":["flag_nz","nz"],"1F1F3-1F1EE":["flag_ni","ni"],"1F1F3-1F1EA":["flag_ne","ne"],"1F1F3-1F1EC":["flag_ng","nigeria"],"1F1F3-1F1FA":["flag_nu","nu"],"1F1F3-1F1EB":["flag_nf","nf"],"1F1F0-1F1F5":["flag_kp","kp"],"1F1F2-1F1F5":["flag_mp","mp"],"1F1F3-1F1F4":["flag_no","no"],"1F1F4-1F1F2":["flag_om","om"],"1F1F5-1F1F0":["flag_pk","pk"],"1F1F5-1F1FC":["flag_pw","pw"],"1F1F5-1F1F8":["flag_ps","ps"],"1F1F5-1F1E6":["flag_pa","pa"],"1F1F5-1F1EC":["flag_pg","pg"],"1F1F5-1F1FE":["flag_py","py"],"1F1F5-1F1EA":["flag_pe","pe"],"1F1F5-1F1ED":["flag_ph","ph"],"1F1F5-1F1F3":["flag_pn","pn"],"1F1F5-1F1F1":["flag_pl","pl"],"1F1F5-1F1F9":["flag_pt","pt"],"1F1F5-1F1F7":["flag_pr","pr"],"1F1F6-1F1E6":["flag_qa","qa"],"1F1F7-1F1EA":["flag_re","re"],"1F1F7-1F1F4":["flag_ro","ro"],"1F1F7-1F1FA":["flag_ru","ru"],"1F1F7-1F1FC":["flag_rw","rw"],"1F1FC-1F1F8":["flag_ws","ws"],"1F1F8-1F1F2":["flag_sm","sm"],"1F1F8-1F1F9":["flag_st","st"],"1F1F8-1F1E6":["flag_sa","saudiarabia","saudi"],"1F1F8-1F1F3":["flag_sn","sn"],"1F1F7-1F1F8":["flag_rs","rs"],"1F1F8-1F1E8":["flag_sc","sc"],"1F1F8-1F1F1":["flag_sl","sl"],"1F1F8-1F1EC":["flag_sg","sg"],"1F1F8-1F1FD":["flag_sx","sx"],"1F1F8-1F1F0":["flag_sk","sk"],"1F1F8-1F1EE":["flag_si","si"],"1F1EC-1F1F8":["flag_gs","gs"],"1F1F8-1F1E7":["flag_sb","sb"],"1F1F8-1F1F4":["flag_so","so"],"1F1FF-1F1E6":["flag_za","za"],"1F1F0-1F1F7":["flag_kr","kr"],"1F1F8-1F1F8":["flag_ss","ss"],"1F1EA-1F1F8":["flag_es","es"],"1F1F1-1F1F0":["flag_lk","lk"],"1F1E7-1F1F1":["flag_bl","bl"],"1F1F8-1F1ED":["flag_sh","sh"],"1F1F0-1F1F3":["flag_kn","kn"],"1F1F1-1F1E8":["flag_lc","lc"],"1F1F5-1F1F2":["flag_pm","pm"],"1F1FB-1F1E8":["flag_vc","vc"],"1F1F8-1F1E9":["flag_sd","sd"],"1F1F8-1F1F7":["flag_sr","sr"],"1F1F8-1F1FF":["flag_sz","sz"],"1F1F8-1F1EA":["flag_se","se"],"1F1E8-1F1ED":["flag_ch","ch"],"1F1F8-1F1FE":["flag_sy","sy"],"1F1F9-1F1FC":["flag_tw","tw"],"1F1F9-1F1EF":["flag_tj","tj"],"1F1F9-1F1FF":["flag_tz","tz"],"1F1F9-1F1ED":["flag_th","th"],"1F1F9-1F1F1":["flag_tl","tl"],"1F1F9-1F1EC":["flag_tg","tg"],"1F1F9-1F1F0":["flag_tk","tk"],"1F1F9-1F1F4":["flag_to","to"],"1F1F9-1F1F9":["flag_tt","tt"],"1F1F9-1F1F3":["flag_tn","tn"],"1F1F9-1F1F7":["flag_tr","tr"],"1F1F9-1F1F2":["flag_tm","turkmenistan"],"1F1F9-1F1E8":["flag_tc","tc"],"1F1FB-1F1EE":["flag_vi","vi"],"1F1F9-1F1FB":["flag_tv","tuvalu"],"1F1FA-1F1EC":["flag_ug","ug"],"1F1FA-1F1E6":["flag_ua","ua"],"1F1E6-1F1EA":["flag_ae","ae"],"1F1EC-1F1E7":["flag_gb","gb"],"1F3F4-E0067-E0062-E0065-E006E-E0067-E007F":"england","1F3F4-E0067-E0062-E0073-E0063-E0074-E007F":"scotland","1F3F4-E0067-E0062-E0077-E006C-E0073-E007F":"wales","1F1FA-1F1F8":["flag_us","us"],"1F1FA-1F1FE":["flag_uy","uy"],"1F1FA-1F1FF":["flag_uz","uz"],"1F1FB-1F1FA":["flag_vu","vu"],"1F1FB-1F1E6":["flag_va","va"],"1F1FB-1F1EA":["flag_ve","ve"],"1F1FB-1F1F3":["flag_vn","vn"],"1F1FC-1F1EB":["flag_wf","wf"],"1F1EA-1F1ED":["flag_eh","eh"],"1F1FE-1F1EA":["flag_ye","ye"],"1F1FF-1F1F2":["flag_zm","zm"],"1F1FF-1F1FC":["flag_zw","zw"],"1F1E6-1F1E8":["flag_ac","ac"],"1F1E7-1F1FB":["flag_bv","bv"],"1F1E8-1F1F5":["flag_cp","cp"],"1F1EA-1F1E6":["flag_ea","ea"],"1F1E9-1F1EC":["flag_dg","dg"],"1F1ED-1F1F2":["flag_hm","hm"],"1F1F2-1F1EB":["flag_mf","mf"],"1F1F8-1F1EF":["flag_sj","sj"],"1F1F9-1F1E6":["flag_ta","ta"],"1F1FA-1F1F2":["flag_um","um"],"1F3FB":"tone1","1F3FC":"tone2","1F3FD":"tone3","1F3FE":"tone4","1F3FF":"tone5","1F1FF":"regional_indicator_z","1F1FE":"regional_indicator_y","1F1FD":"regional_indicator_x","1F1FC":"regional_indicator_w","1F1FB":"regional_indicator_v","1F1FA":"regional_indicator_u","1F1F9":"regional_indicator_t","1F1F8":"regional_indicator_s","1F1F7":"regional_indicator_r","1F1F6":"regional_indicator_q","1F1F5":"regional_indicator_p","1F1F4":"regional_indicator_o","1F1F3":"regional_indicator_n","1F1F2":"regional_indicator_m","1F1F1":"regional_indicator_l","1F1F0":"regional_indicator_k","1F1EF":"regional_indicator_j","1F1EE":"regional_indicator_i","1F1ED":"regional_indicator_h","1F1EC":"regional_indicator_g","1F1EB":"regional_indicator_f","1F1EA":"regional_indicator_e","1F1E9":"regional_indicator_d","1F1E8":"regional_indicator_c","1F1E7":"regional_indicator_b","1F1E6":"regional_indicator_a"},SG={2049:["exclamation_question","interrobang"],2122:["tm","trade_mark"],2139:["info","information_source"],2194:"left_right_arrow",2195:"arrow_up_down",2196:"arrow_upper_left",2197:"arrow_upper_right",2198:"arrow_lower_right",2199:"arrow_lower_left",2328:"keyboard",2600:"sun",2601:"cloud",2602:"umbrella",2603:"snowman2",2604:"comet",2611:"ballot_box_with_check",2614:"umbrella_with_rain",2615:"coffee",2618:"shamrock",2620:"skull_and_crossbones",2622:"radioactive",2623:"biohazard",2626:"orthodox_cross",2638:"wheel_of_dharma",2639:"white_frowning_face",2640:["female","female_sign"],2642:["male","male_sign"],2648:"aries",2649:"taurus",2650:"sagittarius",2651:"capricorn",2652:"aquarius",2653:"pisces",2660:"spades",2663:"clubs",2665:"hearts",2666:"diamonds",2668:"hotsprings",2692:"hammer_and_pick",2693:"anchor",2694:"crossed_swords",2695:["medical","medical_symbol"],2696:"scales",2697:"alembic",2699:"gear",2702:"scissors",2705:["check_mark_button","white_check_mark"],2708:"airplane",2709:"envelope",2712:"black_nib",2714:["check_mark","heavy_check_mark"],2716:["multiplication","multiply"],2721:"star_of_david",2728:"sparkles",2733:"eight_spoked_asterisk",2734:"eight_pointed_black_star",2744:"snowflake",2747:"sparkle",2753:"question",2754:"white_question",2755:"white_exclamation",2757:"exclamation",2763:"heart_exclamation",2764:["heart","red_heart"],2795:"plus",2796:"minus",2797:["divide","division"],2934:"arrow_heading_up",2935:"arrow_heading_down",3030:"wavy_dash",3297:["congratulations","ja_congratulations"],3299:["ja_secret","secret"],"00A9":"copyright","00AE":"registered","203C":["bangbang","double_exclamation"],"21A9":["arrow_left_hook","leftwards_arrow_with_hook"],"21AA":["arrow_right_hook","rightwards_arrow_with_hook"],"231A":"watch","231B":"hourglass","23CF":"eject","23E9":"fast_forward","23EA":["fast_reverse","rewind"],"23EB":["arrow_double_up","fast_up"],"23EC":["arrow_double_down","fast_down"],"23ED":"next_track","23EE":"previous_track","23EF":"play_pause","23F0":"alarm_clock","23F1":"stopwatch","23F2":"timer_clock","23F3":"hourglass_flowing_sand","23F8":"pause","23F9":"stop","23FA":"record","24C2":"m","25AA":"black_small_square","25AB":"white_small_square","25B6":["arrow_forward","play"],"25C0":["arrow_backward","reverse"],"25FB":"white_medium_square","25FC":"black_medium_square","25FD":"white_medium_small_square","25FE":"black_medium_small_square","260E":"telephone","261D":"point_up_2","261D-1F3FB":"point_up_2_tone1","261D-1F3FC":"point_up_2_tone2","261D-1F3FD":"point_up_2_tone3","261D-1F3FE":"point_up_2_tone4","261D-1F3FF":"point_up_2_tone5","262A":"star_and_crescent","262E":["peace","peace_symbol"],"262F":"yin_yang","263A":["relaxed","smiling_face"],"264A":"gemini","264B":"cancer","264C":"leo","264D":"virgo","264E":"libra","264F":"scorpius","265F":"chess_pawn","267B":["recycle","recycling_symbol"],"267E":"infinity","267F":["handicapped","wheelchair"],"269B":["atom","atom_symbol"],"269C":"fleur-de-lis","26A0":"warning","26A1":["high_voltage","zap"],"26A7":"transgender_symbol","26AA":"white_circle","26AB":"black_circle","26B0":"coffin","26B1":"funeral_urn","26BD":"soccer","26BE":"baseball","26C4":"snowman","26C5":["partly_sunny","sun_behind_cloud"],"26C8":["stormy","thunder_cloud_and_rain"],"26CE":"ophiuchus","26CF":"pick","26D1":["helmet_with_cross","rescue_worker_helmet"],"26D3":"chains","26D4":"no_entry","26E9":"shinto_shrine","26EA":"church","26F0":"mountain","26F1":["beach_umbrella","umbrella_on_ground"],"26F2":"fountain","26F3":"golf","26F4":"ferry","26F5":"sailboat","26F7":["person_skiing","skier","skiing"],"26F8":"ice_skate","26F9":"person_bouncing_ball","26F9-1F3FB":"person_bouncing_ball_tone1","26F9-1F3FC":"person_bouncing_ball_tone2","26F9-1F3FD":"person_bouncing_ball_tone3","26F9-1F3FE":"person_bouncing_ball_tone4","26F9-1F3FF":"person_bouncing_ball_tone5","26FA":"tent","26FD":"fuelpump","270A":"fist","270A-1F3FB":"fist_tone1","270A-1F3FC":"fist_tone2","270A-1F3FD":"fist_tone3","270A-1F3FE":"fist_tone4","270A-1F3FF":"fist_tone5","270B":["high_five","raised_hand"],"270B-1F3FB":["high_five_tone1","raised_hand_tone1"],"270B-1F3FC":["high_five_tone2","raised_hand_tone2"],"270B-1F3FD":["high_five_tone3","raised_hand_tone3"],"270B-1F3FE":["high_five_tone4","raised_hand_tone4"],"270B-1F3FF":["high_five_tone5","raised_hand_tone5"],"270C":["v","victory"],"270C-1F3FB":["v_tone1","victory_tone1"],"270C-1F3FC":["v_tone2","victory_tone2"],"270C-1F3FD":["v_tone3","victory_tone3"],"270C-1F3FE":["v_tone4","victory_tone4"],"270C-1F3FF":["v_tone5","victory_tone5"],"270D":"writing_hand","270D-1F3FB":"writing_hand_tone1","270D-1F3FC":"writing_hand_tone2","270D-1F3FD":"writing_hand_tone3","270D-1F3FE":"writing_hand_tone4","270D-1F3FF":"writing_hand_tone5","270F":"pencil","271D":"latin_cross","274C":["cross_mark","x"],"274E":["cross_mark_button","negative_squared_cross_mark"],"27A1":"arrow_right","27B0":"curly_loop","27BF":["double_curly_loop","loop"],"2B05":"arrow_left","2B06":"arrow_up","2B07":"arrow_down","2B1B":"black_large_square","2B1C":"white_large_square","2B50":"star","2B55":["hollow_red_circle","red_o"],"303D":"part_alternation_mark","1F004":"mahjong","1F0CF":"black_joker","1F170":["a","a_blood"],"1F171":["b","b_blood"],"1F17E":["o","o_blood"],"1F17F":"parking","1F18E":["ab","ab_blood"],"1F191":"cl","1F192":"cool","1F193":"free","1F194":"id","1F195":"new","1F196":"ng","1F197":"ok","1F198":"sos","1F199":"up2","1F19A":"vs","1F1E6":"regional_indicator_a","1F1E7":"regional_indicator_b","1F1E8":"regional_indicator_c","1F1E9":"regional_indicator_d","1F1EA":"regional_indicator_e","1F1EB":"regional_indicator_f","1F1EC":"regional_indicator_g","1F1ED":"regional_indicator_h","1F1EE":"regional_indicator_i","1F1EF":"regional_indicator_j","1F1F0":"regional_indicator_k","1F1F1":"regional_indicator_l","1F1F2":"regional_indicator_m","1F1F3":"regional_indicator_n","1F1F4":"regional_indicator_o","1F1F5":"regional_indicator_p","1F1F6":"regional_indicator_q","1F1F7":"regional_indicator_r","1F1F8":"regional_indicator_s","1F1F9":"regional_indicator_t","1F1FA":"regional_indicator_u","1F1FB":"regional_indicator_v","1F1FC":"regional_indicator_w","1F1FD":"regional_indicator_x","1F1FE":"regional_indicator_y","1F1FF":"regional_indicator_z","1F201":["ja_here","koko"],"1F202":"ja_service_charge","1F21A":"ja_free_of_charge","1F22F":"ja_reserved","1F232":"ja_prohibited","1F233":"ja_vacancy","1F234":"ja_passing_grade","1F235":"ja_no_vacancy","1F236":"ja_not_free_of_carge","1F237":"ja_monthly_amount","1F238":"ja_application","1F239":"ja_discount","1F23A":"ja_open_for_business","1F250":["ideograph_advantage","ja_bargain"],"1F251":["accept","ja_acceptable"],"1F300":"cyclone","1F301":"foggy","1F302":"closed_umbrella","1F303":"night_with_stars","1F304":"sunrise_over_mountains","1F305":"sunrise","1F306":"city_dusk","1F307":["city_sunrise","city_sunset"],"1F308":"rainbow","1F309":"bridge_at_night","1F30A":["ocean","water_wave"],"1F30B":"volcano","1F30C":"milky_way","1F30D":["earth_africa","earth_europe"],"1F30E":"earth_americas","1F30F":"earth_asia","1F310":"globe_with_meridians","1F311":"new_moon","1F312":"waxing_crescent_moon","1F313":"first_quarter_moon","1F314":"waxing_gibbous_moon","1F315":"full_moon","1F316":"waning_gibbous_moon","1F317":"last_quarter_moon","1F318":"waning_crescent_moon","1F319":"crescent_moon","1F31A":"new_moon_with_face","1F31B":"first_quarter_moon_with_face","1F31C":"last_quarter_moon_with_face","1F31D":"full_moon_with_face","1F31E":"sun_with_face","1F31F":["glowing_star","star2"],"1F320":["shooting_star","stars"],"1F321":"thermometer","1F324":["sun_behind_small_cloud","sunny"],"1F325":["cloudy","sun_behind_large_cloud"],"1F326":["sun_and_rain","sun_behind_rain_cloud"],"1F327":["cloud_with_rain","rainy"],"1F328":["cloud_with_snow","snowy"],"1F329":["cloud_with_lightning","lightning"],"1F32A":"tornado","1F32B":"fog","1F32C":"wind_blowing_face","1F32D":"hotdog","1F32E":"taco","1F32F":"burrito","1F330":"chestnut","1F331":"seedling","1F332":"evergreen_tree","1F333":"deciduous_tree","1F334":"palm_tree","1F335":"cactus","1F336":"hot_pepper","1F337":"tulip","1F338":"cherry_blossom","1F339":"rose","1F33A":"hibiscus","1F33B":"sunflower","1F33C":"blossom","1F33D":["corn","ear_of_corn"],"1F33E":["ear_of_rice","sheaf_of_rice"],"1F33F":"herb","1F340":"four_leaf_clover","1F341":"maple_leaf","1F342":"fallen_leaf","1F343":"leaves","1F344":"mushroom","1F345":"tomato","1F346":"eggplant","1F347":"grapes","1F348":"melon","1F349":"watermelon","1F34A":["orange","tangerine"],"1F34B":"lemon","1F34C":"banana","1F34D":"pineapple","1F34E":["apple","red_apple"],"1F34F":"green_apple","1F350":"pear","1F351":"peach","1F352":"cherries","1F353":"strawberry","1F354":"hamburger","1F355":"pizza","1F356":"meat_on_bone","1F357":"poultry_leg","1F358":"rice_cracker","1F359":"rice_ball","1F35A":["cooked_rice","rice"],"1F35B":["curry","curry_rice"],"1F35C":["ramen","steaming_bowl"],"1F35D":"spaghetti","1F35E":"bread","1F35F":["french_fries","fries"],"1F360":"sweet_potato","1F361":"dango","1F362":"oden","1F363":"sushi","1F364":"fried_shrimp","1F365":"fish_cake","1F366":["icecream","soft_serve"],"1F367":"shaved_ice","1F368":"ice_cream","1F369":"doughnut","1F36A":"cookie","1F36B":"chocolate_bar","1F36C":"candy","1F36D":"lollipop","1F36E":"custard","1F36F":"honey_pot","1F370":["cake","shortcake"],"1F371":["bento","bento_box"],"1F372":["pot_of_food","stew"],"1F373":["cooking","fried_egg"],"1F374":"fork_and_knife","1F375":"tea","1F376":"sake","1F377":"wine_glass","1F378":"cocktail","1F379":"tropical_drink","1F37A":"beer","1F37B":"beers","1F37C":"baby_bottle","1F37D":"fork_knife_plate","1F37E":"champagne","1F37F":"popcorn","1F380":"ribbon","1F381":"gift","1F382":["birthday","birthday_cake"],"1F383":"jack_o_lantern","1F384":"christmas_tree","1F385":"santa","1F385-1F3FB":"santa_tone1","1F385-1F3FC":"santa_tone2","1F385-1F3FD":"santa_tone3","1F385-1F3FE":"santa_tone4","1F385-1F3FF":"santa_tone5","1F386":"fireworks","1F387":"sparkler","1F388":"balloon","1F389":["party","party_popper","tada"],"1F38A":"confetti_ball","1F38B":"tanabata_tree","1F38C":"crossed_flags","1F38D":"bamboo","1F38E":"dolls","1F38F":["carp_streamer","flags"],"1F390":"wind_chime","1F391":["moon_ceremony","rice_scene"],"1F392":["backpack","school_satchel"],"1F393":["graduation_cap","mortar_board"],"1F396":"military_medal","1F397":"reminder_ribbon","1F399":"studio_microphone","1F39A":"level_slider","1F39B":"control_knobs","1F39E":"film_frames","1F39F":["admission_tickets","tickets"],"1F3A0":"carousel_horse","1F3A1":"ferris_wheel","1F3A2":"roller_coaster","1F3A3":["fishing_pole","fishing_pole_and_fish"],"1F3A4":"microphone","1F3A5":"movie_camera","1F3A6":"cinema","1F3A7":"headphones","1F3A8":["art","palette"],"1F3A9":["top_hat","tophat"],"1F3AA":"circus_tent","1F3AB":"ticket","1F3AC":"clapper","1F3AD":"performing_arts","1F3AE":["controller","video_game"],"1F3AF":["bullseye","dart","direct_hit"],"1F3B0":"slot_machine","1F3B1":["8ball","billiards"],"1F3B2":"game_die","1F3B3":"bowling","1F3B4":"flower_playing_cards","1F3B5":"musical_note","1F3B6":["musical_notes","notes"],"1F3B7":"saxophone","1F3B8":"guitar","1F3B9":"musical_keyboard","1F3BA":"trumpet","1F3BB":"violin","1F3BC":"musical_score","1F3BD":["running_shirt","running_shirt_with_sash"],"1F3BE":"tennis","1F3BF":"ski","1F3C0":"basketball","1F3C1":"checkered_flag","1F3C2":["person_snowboarding","snowboarder","snowboarding"],"1F3C2-1F3FB":["person_snowboarding_tone1","snowboarder_tone1","snowboarding_tone1"],"1F3C2-1F3FC":["person_snowboarding_tone2","snowboarder_tone2","snowboarding_tone2"],"1F3C2-1F3FD":["person_snowboarding_tone3","snowboarder_tone3","snowboarding_tone3"],"1F3C2-1F3FE":["person_snowboarding_tone4","snowboarder_tone4","snowboarding_tone4"],"1F3C2-1F3FF":["person_snowboarding_tone5","snowboarder_tone5","snowboarding_tone5"],"1F3C3":["person_running","running"],"1F3C3-1F3FB":["person_running_tone1","running_tone1"],"1F3C3-1F3FC":["person_running_tone2","running_tone2"],"1F3C3-1F3FD":["person_running_tone3","running_tone3"],"1F3C3-1F3FE":["person_running_tone4","running_tone4"],"1F3C3-1F3FF":["person_running_tone5","running_tone5"],"1F3C4":["person_surfing","surfer","surfing"],"1F3C4-1F3FB":["person_surfing_tone1","surfer_tone1","surfing_tone1"],"1F3C4-1F3FC":["person_surfing_tone2","surfer_tone2","surfing_tone2"],"1F3C4-1F3FD":["person_surfing_tone3","surfer_tone3","surfing_tone3"],"1F3C4-1F3FE":["person_surfing_tone4","surfer_tone4","surfing_tone4"],"1F3C4-1F3FF":["person_surfing_tone5","surfer_tone5","surfing_tone5"],"1F3C5":"sports_medal","1F3C6":"trophy","1F3C7":"horse_racing","1F3C7-1F3FB":"horse_racing_tone1","1F3C7-1F3FC":"horse_racing_tone2","1F3C7-1F3FD":"horse_racing_tone3","1F3C7-1F3FE":"horse_racing_tone4","1F3C7-1F3FF":"horse_racing_tone5","1F3C8":"football","1F3C9":"rugby_football","1F3CA":["person_swimming","swimmer","swimming"],"1F3CA-1F3FB":["person_swimming_tone1","swimmer_tone1","swimming_tone1"],"1F3CA-1F3FC":["person_swimming_tone2","swimmer_tone2","swimming_tone2"],"1F3CA-1F3FD":["person_swimming_tone3","swimmer_tone3","swimming_tone3"],"1F3CA-1F3FE":["person_swimming_tone4","swimmer_tone4","swimming_tone4"],"1F3CA-1F3FF":["person_swimming_tone5","swimmer_tone5","swimming_tone5"],"1F3CB":["person_lifting_weights","weight_lifter","weight_lifting"],"1F3CB-1F3FB":["person_lifting_weights_tone1","weight_lifter_tone1","weight_lifting_tone1"],"1F3CB-1F3FC":["person_lifting_weights_tone2","weight_lifter_tone2","weight_lifting_tone2"],"1F3CB-1F3FD":["person_lifting_weights_tone3","weight_lifter_tone3","weight_lifting_tone3"],"1F3CB-1F3FE":["person_lifting_weights_tone4","weight_lifter_tone4","weight_lifting_tone4"],"1F3CB-1F3FF":["person_lifting_weights_tone5","weight_lifter_tone5","weight_lifting_tone5"],"1F3CC":["golfer","golfing","person_golfing"],"1F3CC-1F3FB":["golfer_tone1","golfing_tone1","person_golfing_tone1"],"1F3CC-1F3FC":["golfer_tone2","golfing_tone2","person_golfing_tone2"],"1F3CC-1F3FD":["golfer_tone3","golfing_tone3","person_golfing_tone3"],"1F3CC-1F3FE":["golfer_tone4","golfing_tone4","person_golfing_tone4"],"1F3CC-1F3FF":["golfer_tone5","golfing_tone5","person_golfing_tone5"],"1F3CD":"motorcycle","1F3CE":"racing_car","1F3CF":"cricket_game","1F3D0":"volleyball","1F3D1":"field_hockey","1F3D2":"hockey","1F3D3":"ping_pong","1F3D4":"mountain_snow","1F3D5":"camping","1F3D6":["beach","beach_with_umbrella"],"1F3D7":["building_construction","construction_site"],"1F3D8":["homes","houses"],"1F3D9":"cityscape","1F3DA":["derelict_house","house_abandoned"],"1F3DB":"classical_building","1F3DC":"desert","1F3DD":["desert_island","island"],"1F3DE":"national_park","1F3DF":"stadium","1F3E0":"house","1F3E1":"house_with_garden","1F3E2":"office","1F3E3":"post_office","1F3E4":"european_post_office","1F3E5":"hospital","1F3E6":"bank","1F3E7":"atm","1F3E8":"hotel","1F3E9":"love_hotel","1F3EA":"convenience_store","1F3EB":"school","1F3EC":"department_store","1F3ED":"factory","1F3EE":["izakaya_lantern","red_paper_lantern"],"1F3EF":"japanese_castle","1F3F0":["castle","european_castle"],"1F3F3":"white_flag","1F3F4":"black_flag","1F3F5":"rosette","1F3F7":"label","1F3F8":"badminton","1F3F9":"bow_and_arrow","1F3FA":"amphora","1F3FB":["tone1","tone_light"],"1F3FC":["tone2","tone_medium_light"],"1F3FD":["tone3","tone_medium"],"1F3FE":["tone4","tone_medium_dark"],"1F3FF":["tone5","tone_dark"],"1F400":"rat","1F401":"mouse","1F402":"ox","1F403":"water_buffalo","1F404":"cow","1F405":"tiger","1F406":"leopard","1F407":"rabbit","1F408":"cat","1F409":"dragon","1F40A":"crocodile","1F40B":"whale","1F40C":"snail","1F40D":"snake","1F40E":["horse","racehorse"],"1F40F":"ram","1F410":"goat","1F411":["ewe","sheep"],"1F412":"monkey","1F413":"rooster","1F414":["chicken","chicken_face"],"1F415":"dog","1F416":"pig","1F417":"boar","1F418":"elephant","1F419":"octopus","1F41A":"shell","1F41B":"bug","1F41C":"ant","1F41D":"bee","1F41E":"lady_beetle","1F41F":"fish","1F420":"tropical_fish","1F421":"blowfish","1F422":"turtle","1F423":"hatching_chick","1F424":"baby_chick","1F425":"hatched_chick","1F426":["bird","bird_face"],"1F427":["penguin","penguin_face"],"1F428":["koala","koala_face"],"1F429":"poodle","1F42A":"dromedary_camel","1F42B":"camel","1F42C":"dolphin","1F42D":"mouse_face","1F42E":"cow_face","1F42F":"tiger_face","1F430":"rabbit_face","1F431":"cat_face","1F432":"dragon_face","1F433":"spouting_whale","1F434":"horse_face","1F435":"monkey_face","1F436":"dog_face","1F437":"pig_face","1F438":["frog","frog_face"],"1F439":["hamster","hamster_face"],"1F43A":["wolf","wolf_face"],"1F43B":["bear","bear_face"],"1F43C":["panda","panda_face"],"1F43D":"pig_nose","1F43E":"paw_prints","1F43F":"chipmunk","1F440":"eyes","1F441":"eye","1F442":"ear","1F442-1F3FB":"ear_tone1","1F442-1F3FC":"ear_tone2","1F442-1F3FD":"ear_tone3","1F442-1F3FE":"ear_tone4","1F442-1F3FF":"ear_tone5","1F443":"nose","1F443-1F3FB":"nose_tone1","1F443-1F3FC":"nose_tone2","1F443-1F3FD":"nose_tone3","1F443-1F3FE":"nose_tone4","1F443-1F3FF":"nose_tone5","1F444":["lips","mouth"],"1F445":"tongue","1F446":"point_up","1F446-1F3FB":"point_up_tone1","1F446-1F3FC":"point_up_tone2","1F446-1F3FD":"point_up_tone3","1F446-1F3FE":"point_up_tone4","1F446-1F3FF":"point_up_tone5","1F447":"point_down","1F447-1F3FB":"point_down_tone1","1F447-1F3FC":"point_down_tone2","1F447-1F3FD":"point_down_tone3","1F447-1F3FE":"point_down_tone4","1F447-1F3FF":"point_down_tone5","1F448":"point_left","1F448-1F3FB":"point_left_tone1","1F448-1F3FC":"point_left_tone2","1F448-1F3FD":"point_left_tone3","1F448-1F3FE":"point_left_tone4","1F448-1F3FF":"point_left_tone5","1F449":"point_right","1F449-1F3FB":"point_right_tone1","1F449-1F3FC":"point_right_tone2","1F449-1F3FD":"point_right_tone3","1F449-1F3FE":"point_right_tone4","1F449-1F3FF":"point_right_tone5","1F44A":"punch","1F44A-1F3FB":"punch_tone1","1F44A-1F3FC":"punch_tone2","1F44A-1F3FD":"punch_tone3","1F44A-1F3FE":"punch_tone4","1F44A-1F3FF":"punch_tone5","1F44B":["wave","waving_hand"],"1F44B-1F3FB":["wave_tone1","waving_hand_tone1"],"1F44B-1F3FC":["wave_tone2","waving_hand_tone2"],"1F44B-1F3FD":["wave_tone3","waving_hand_tone3"],"1F44B-1F3FE":["wave_tone4","waving_hand_tone4"],"1F44B-1F3FF":["wave_tone5","waving_hand_tone5"],"1F44C":"ok_hand","1F44C-1F3FB":"ok_hand_tone1","1F44C-1F3FC":"ok_hand_tone2","1F44C-1F3FD":"ok_hand_tone3","1F44C-1F3FE":"ok_hand_tone4","1F44C-1F3FF":"ok_hand_tone5","1F44D":["+1","thumbsup","yes"],"1F44D-1F3FB":["+1_tone1","thumbsup_tone1","yes_tone1"],"1F44D-1F3FC":["+1_tone2","thumbsup_tone2","yes_tone2"],"1F44D-1F3FD":["+1_tone3","thumbsup_tone3","yes_tone3"],"1F44D-1F3FE":["+1_tone4","thumbsup_tone4","yes_tone4"],"1F44D-1F3FF":["+1_tone5","thumbsup_tone5","yes_tone5"],"1F44E":["-1","no","thumbsdown"],"1F44E-1F3FB":["-1_tone1","no_tone1","thumbsdown_tone1"],"1F44E-1F3FC":["-1_tone2","no_tone2","thumbsdown_tone2"],"1F44E-1F3FD":["-1_tone3","no_tone3","thumbsdown_tone3"],"1F44E-1F3FE":["-1_tone4","no_tone4","thumbsdown_tone4"],"1F44E-1F3FF":["-1_tone5","no_tone5","thumbsdown_tone5"],"1F44F":["clap","clapping_hands"],"1F44F-1F3FB":["clap_tone1","clapping_hands_tone1"],"1F44F-1F3FC":["clap_tone2","clapping_hands_tone2"],"1F44F-1F3FD":["clap_tone3","clapping_hands_tone3"],"1F44F-1F3FE":["clap_tone4","clapping_hands_tone4"],"1F44F-1F3FF":["clap_tone5","clapping_hands_tone5"],"1F450":"open_hands","1F450-1F3FB":"open_hands_tone1","1F450-1F3FC":"open_hands_tone2","1F450-1F3FD":"open_hands_tone3","1F450-1F3FE":"open_hands_tone4","1F450-1F3FF":"open_hands_tone5","1F451":"crown","1F452":"womans_hat","1F453":["eyeglasses","glasses"],"1F454":"necktie","1F455":"shirt","1F456":"jeans","1F457":"dress","1F458":"kimono","1F459":"bikini","1F45A":"womans_clothes","1F45B":"purse","1F45C":"handbag","1F45D":["clutch_bag","pouch"],"1F45E":"mans_shoe","1F45F":["athletic_shoe","sneaker"],"1F460":"high_heel","1F461":"sandal","1F462":"boot","1F463":"footprints","1F464":"bust_in_silhouette","1F465":"busts_in_silhouette","1F466":"boy","1F466-1F3FB":"boy_tone1","1F466-1F3FC":"boy_tone2","1F466-1F3FD":"boy_tone3","1F466-1F3FE":"boy_tone4","1F466-1F3FF":"boy_tone5","1F467":"girl","1F467-1F3FB":"girl_tone1","1F467-1F3FC":"girl_tone2","1F467-1F3FD":"girl_tone3","1F467-1F3FE":"girl_tone4","1F467-1F3FF":"girl_tone5","1F468":"man","1F468-1F3FB":"man_tone1","1F468-1F3FC":"man_tone2","1F468-1F3FD":"man_tone3","1F468-1F3FE":"man_tone4","1F468-1F3FF":"man_tone5","1F469":"woman","1F469-1F3FB":"woman_tone1","1F469-1F3FC":"woman_tone2","1F469-1F3FD":"woman_tone3","1F469-1F3FE":"woman_tone4","1F469-1F3FF":"woman_tone5","1F46A":"family","1F46B":"couple","1F46B-1F3FB":"couple_tone1","1F46B-1F3FC":"couple_tone2","1F46B-1F3FD":"couple_tone3","1F46B-1F3FE":"couple_tone4","1F46B-1F3FF":"couple_tone5","1F469-1F3FB-200D-1F91D-200D-1F468-1F3FC":"couple_tone1-2","1F469-1F3FB-200D-1F91D-200D-1F468-1F3FD":"couple_tone1-3","1F469-1F3FB-200D-1F91D-200D-1F468-1F3FE":"couple_tone1-4","1F469-1F3FB-200D-1F91D-200D-1F468-1F3FF":"couple_tone1-5","1F469-1F3FC-200D-1F91D-200D-1F468-1F3FB":"couple_tone2-1","1F469-1F3FC-200D-1F91D-200D-1F468-1F3FD":"couple_tone2-3","1F469-1F3FC-200D-1F91D-200D-1F468-1F3FE":"couple_tone2-4","1F469-1F3FC-200D-1F91D-200D-1F468-1F3FF":"couple_tone2-5","1F469-1F3FD-200D-1F91D-200D-1F468-1F3FB":"couple_tone3-1","1F469-1F3FD-200D-1F91D-200D-1F468-1F3FC":"couple_tone3-2","1F469-1F3FD-200D-1F91D-200D-1F468-1F3FE":"couple_tone3-4","1F469-1F3FD-200D-1F91D-200D-1F468-1F3FF":"couple_tone3-5","1F469-1F3FE-200D-1F91D-200D-1F468-1F3FB":"couple_tone4-1","1F469-1F3FE-200D-1F91D-200D-1F468-1F3FC":"couple_tone4-2","1F469-1F3FE-200D-1F91D-200D-1F468-1F3FD":"couple_tone4-3","1F469-1F3FE-200D-1F91D-200D-1F468-1F3FF":"couple_tone4-5","1F469-1F3FF-200D-1F91D-200D-1F468-1F3FB":"couple_tone5-1","1F469-1F3FF-200D-1F91D-200D-1F468-1F3FC":"couple_tone5-2","1F469-1F3FF-200D-1F91D-200D-1F468-1F3FD":"couple_tone5-3","1F469-1F3FF-200D-1F91D-200D-1F468-1F3FE":"couple_tone5-4","1F46C":"two_men_holding_hands","1F46C-1F3FB":"two_men_holding_hands_tone1","1F46C-1F3FC":"two_men_holding_hands_tone2","1F46C-1F3FD":"two_men_holding_hands_tone3","1F46C-1F3FE":"two_men_holding_hands_tone4","1F46C-1F3FF":"two_men_holding_hands_tone5","1F468-1F3FB-200D-1F91D-200D-1F468-1F3FC":"two_men_holding_hands_tone1-2","1F468-1F3FB-200D-1F91D-200D-1F468-1F3FD":"two_men_holding_hands_tone1-3","1F468-1F3FB-200D-1F91D-200D-1F468-1F3FE":"two_men_holding_hands_tone1-4","1F468-1F3FB-200D-1F91D-200D-1F468-1F3FF":"two_men_holding_hands_tone1-5","1F468-1F3FC-200D-1F91D-200D-1F468-1F3FB":"two_men_holding_hands_tone2-1","1F468-1F3FC-200D-1F91D-200D-1F468-1F3FD":"two_men_holding_hands_tone2-3","1F468-1F3FC-200D-1F91D-200D-1F468-1F3FE":"two_men_holding_hands_tone2-4","1F468-1F3FC-200D-1F91D-200D-1F468-1F3FF":"two_men_holding_hands_tone2-5","1F468-1F3FD-200D-1F91D-200D-1F468-1F3FB":"two_men_holding_hands_tone3-1","1F468-1F3FD-200D-1F91D-200D-1F468-1F3FC":"two_men_holding_hands_tone3-2","1F468-1F3FD-200D-1F91D-200D-1F468-1F3FE":"two_men_holding_hands_tone3-4","1F468-1F3FD-200D-1F91D-200D-1F468-1F3FF":"two_men_holding_hands_tone3-5","1F468-1F3FE-200D-1F91D-200D-1F468-1F3FB":"two_men_holding_hands_tone4-1","1F468-1F3FE-200D-1F91D-200D-1F468-1F3FC":"two_men_holding_hands_tone4-2","1F468-1F3FE-200D-1F91D-200D-1F468-1F3FD":"two_men_holding_hands_tone4-3","1F468-1F3FE-200D-1F91D-200D-1F468-1F3FF":"two_men_holding_hands_tone4-5","1F468-1F3FF-200D-1F91D-200D-1F468-1F3FB":"two_men_holding_hands_tone5-1","1F468-1F3FF-200D-1F91D-200D-1F468-1F3FC":"two_men_holding_hands_tone5-2","1F468-1F3FF-200D-1F91D-200D-1F468-1F3FD":"two_men_holding_hands_tone5-3","1F468-1F3FF-200D-1F91D-200D-1F468-1F3FE":"two_men_holding_hands_tone5-4","1F46D":"two_women_holding_hands","1F46D-1F3FB":"two_women_holding_hands_tone1","1F46D-1F3FC":"two_women_holding_hands_tone2","1F46D-1F3FD":"two_women_holding_hands_tone3","1F46D-1F3FE":"two_women_holding_hands_tone4","1F46D-1F3FF":"two_women_holding_hands_tone5","1F469-1F3FB-200D-1F91D-200D-1F469-1F3FC":"two_women_holding_hands_tone1-2","1F469-1F3FB-200D-1F91D-200D-1F469-1F3FD":"two_women_holding_hands_tone1-3","1F469-1F3FB-200D-1F91D-200D-1F469-1F3FE":"two_women_holding_hands_tone1-4","1F469-1F3FB-200D-1F91D-200D-1F469-1F3FF":"two_women_holding_hands_tone1-5","1F469-1F3FC-200D-1F91D-200D-1F469-1F3FB":"two_women_holding_hands_tone2-1","1F469-1F3FC-200D-1F91D-200D-1F469-1F3FD":"two_women_holding_hands_tone2-3","1F469-1F3FC-200D-1F91D-200D-1F469-1F3FE":"two_women_holding_hands_tone2-4","1F469-1F3FC-200D-1F91D-200D-1F469-1F3FF":"two_women_holding_hands_tone2-5","1F469-1F3FD-200D-1F91D-200D-1F469-1F3FB":"two_women_holding_hands_tone3-1","1F469-1F3FD-200D-1F91D-200D-1F469-1F3FC":"two_women_holding_hands_tone3-2","1F469-1F3FD-200D-1F91D-200D-1F469-1F3FE":"two_women_holding_hands_tone3-4","1F469-1F3FD-200D-1F91D-200D-1F469-1F3FF":"two_women_holding_hands_tone3-5","1F469-1F3FE-200D-1F91D-200D-1F469-1F3FB":"two_women_holding_hands_tone4-1","1F469-1F3FE-200D-1F91D-200D-1F469-1F3FC":"two_women_holding_hands_tone4-2","1F469-1F3FE-200D-1F91D-200D-1F469-1F3FD":"two_women_holding_hands_tone4-3","1F469-1F3FE-200D-1F91D-200D-1F469-1F3FF":"two_women_holding_hands_tone4-5","1F469-1F3FF-200D-1F91D-200D-1F469-1F3FB":"two_women_holding_hands_tone5-1","1F469-1F3FF-200D-1F91D-200D-1F469-1F3FC":"two_women_holding_hands_tone5-2","1F469-1F3FF-200D-1F91D-200D-1F469-1F3FD":"two_women_holding_hands_tone5-3","1F469-1F3FF-200D-1F91D-200D-1F469-1F3FE":"two_women_holding_hands_tone5-4","1F46E":["cop","police_officer"],"1F46E-1F3FB":["cop_tone1","police_officer_tone1"],"1F46E-1F3FC":["cop_tone2","police_officer_tone2"],"1F46E-1F3FD":["cop_tone3","police_officer_tone3"],"1F46E-1F3FE":["cop_tone4","police_officer_tone4"],"1F46E-1F3FF":["cop_tone5","police_officer_tone5"],"1F46F":["dancers","people_with_bunny_ears_partying"],"1F470":"person_with_veil","1F470-1F3FB":"person_with_veil_tone1","1F470-1F3FC":"person_with_veil_tone2","1F470-1F3FD":"person_with_veil_tone3","1F470-1F3FE":"person_with_veil_tone4","1F470-1F3FF":"person_with_veil_tone5","1F471":"blond_haired","1F471-1F3FB":"blond_haired_tone1","1F471-1F3FC":"blond_haired_tone2","1F471-1F3FD":"blond_haired_tone3","1F471-1F3FE":"blond_haired_tone4","1F471-1F3FF":"blond_haired_tone5","1F472":"person_with_skullcap","1F472-1F3FB":"person_with_skullcap_tone1","1F472-1F3FC":"person_with_skullcap_tone2","1F472-1F3FD":"person_with_skullcap_tone3","1F472-1F3FE":"person_with_skullcap_tone4","1F472-1F3FF":"person_with_skullcap_tone5","1F473":"person_wearing_turban","1F473-1F3FB":"person_wearing_turban_tone1","1F473-1F3FC":"person_wearing_turban_tone2","1F473-1F3FD":"person_wearing_turban_tone3","1F473-1F3FE":"person_wearing_turban_tone4","1F473-1F3FF":"person_wearing_turban_tone5","1F474":"older_man","1F474-1F3FB":"older_man_tone1","1F474-1F3FC":"older_man_tone2","1F474-1F3FD":"older_man_tone3","1F474-1F3FE":"older_man_tone4","1F474-1F3FF":"older_man_tone5","1F475":"older_woman","1F475-1F3FB":"older_woman_tone1","1F475-1F3FC":"older_woman_tone2","1F475-1F3FD":"older_woman_tone3","1F475-1F3FE":"older_woman_tone4","1F475-1F3FF":"older_woman_tone5","1F476":"baby","1F476-1F3FB":"baby_tone1","1F476-1F3FC":"baby_tone2","1F476-1F3FD":"baby_tone3","1F476-1F3FE":"baby_tone4","1F476-1F3FF":"baby_tone5","1F477":"construction_worker","1F477-1F3FB":"construction_worker_tone1","1F477-1F3FC":"construction_worker_tone2","1F477-1F3FD":"construction_worker_tone3","1F477-1F3FE":"construction_worker_tone4","1F477-1F3FF":"construction_worker_tone5","1F478":"princess","1F478-1F3FB":"princess_tone1","1F478-1F3FC":"princess_tone2","1F478-1F3FD":"princess_tone3","1F478-1F3FE":"princess_tone4","1F478-1F3FF":"princess_tone5","1F479":["japanese_ogre","ogre"],"1F47A":["goblin","japanese_goblin"],"1F47B":"ghost","1F47C":"angel","1F47C-1F3FB":"angel_tone1","1F47C-1F3FC":"angel_tone2","1F47C-1F3FD":"angel_tone3","1F47C-1F3FE":"angel_tone4","1F47C-1F3FF":"angel_tone5","1F47D":"alien","1F47E":["alien_monster","space_invader"],"1F47F":["angry_imp","imp"],"1F480":"skull","1F481":"person_tipping_hand","1F481-1F3FB":"person_tipping_hand_tone1","1F481-1F3FC":"person_tipping_hand_tone2","1F481-1F3FD":"person_tipping_hand_tone3","1F481-1F3FE":"person_tipping_hand_tone4","1F481-1F3FF":"person_tipping_hand_tone5","1F482":"guard","1F482-1F3FB":"guard_tone1","1F482-1F3FC":"guard_tone2","1F482-1F3FD":"guard_tone3","1F482-1F3FE":"guard_tone4","1F482-1F3FF":"guard_tone5","1F483":["dancer","woman_dancing"],"1F483-1F3FB":["dancer_tone1","woman_dancing_tone1"],"1F483-1F3FC":["dancer_tone2","woman_dancing_tone2"],"1F483-1F3FD":["dancer_tone3","woman_dancing_tone3"],"1F483-1F3FE":["dancer_tone4","woman_dancing_tone4"],"1F483-1F3FF":["dancer_tone5","woman_dancing_tone5"],"1F484":"lipstick","1F485":["nail_care","nail_polish"],"1F485-1F3FB":["nail_care_tone1","nail_polish_tone1"],"1F485-1F3FC":["nail_care_tone2","nail_polish_tone2"],"1F485-1F3FD":["nail_care_tone3","nail_polish_tone3"],"1F485-1F3FE":["nail_care_tone4","nail_polish_tone4"],"1F485-1F3FF":["nail_care_tone5","nail_polish_tone5"],"1F486":["massage","person_getting_massage"],"1F486-1F3FB":["massage_tone1","person_getting_massage_tone1"],"1F486-1F3FC":["massage_tone2","person_getting_massage_tone2"],"1F486-1F3FD":["massage_tone3","person_getting_massage_tone3"],"1F486-1F3FE":["massage_tone4","person_getting_massage_tone4"],"1F486-1F3FF":["massage_tone5","person_getting_massage_tone5"],"1F487":["haircut","person_getting_haircut"],"1F487-1F3FB":["haircut_tone1","person_getting_haircut_tone1"],"1F487-1F3FC":["haircut_tone2","person_getting_haircut_tone2"],"1F487-1F3FD":["haircut_tone3","person_getting_haircut_tone3"],"1F487-1F3FE":["haircut_tone4","person_getting_haircut_tone4"],"1F487-1F3FF":["haircut_tone5","person_getting_haircut_tone5"],"1F488":["barber","barber_pole"],"1F489":"syringe","1F48A":"pill","1F48B":"kiss","1F48C":"love_letter","1F48D":"ring","1F48E":"gem","1F48F":["couple_kiss","couplekiss"],"1F48F-1F3FB":["couple_kiss_tone1","couplekiss_tone1"],"1F48F-1F3FC":["couple_kiss_tone2","couplekiss_tone2"],"1F48F-1F3FD":["couple_kiss_tone3","couplekiss_tone3"],"1F48F-1F3FE":["couple_kiss_tone4","couplekiss_tone4"],"1F48F-1F3FF":["couple_kiss_tone5","couplekiss_tone5"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC":["couple_kiss_tone1-2","couplekiss_tone1-2"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD":["couple_kiss_tone1-3","couplekiss_tone1-3"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE":["couple_kiss_tone1-4","couplekiss_tone1-4"],"1F9D1-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF":["couple_kiss_tone1-5","couplekiss_tone1-5"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB":["couple_kiss_tone2-1","couplekiss_tone2-1"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD":["couple_kiss_tone2-3","couplekiss_tone2-3"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE":["couple_kiss_tone2-4","couplekiss_tone2-4"],"1F9D1-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF":["couple_kiss_tone2-5","couplekiss_tone2-5"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB":["couple_kiss_tone3-1","couplekiss_tone3-1"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC":["couple_kiss_tone3-2","couplekiss_tone3-2"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE":["couple_kiss_tone3-4","couplekiss_tone3-4"],"1F9D1-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF":["couple_kiss_tone3-5","couplekiss_tone3-5"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB":["couple_kiss_tone4-1","couplekiss_tone4-1"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC":["couple_kiss_tone4-2","couplekiss_tone4-2"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD":["couple_kiss_tone4-3","couplekiss_tone4-3"],"1F9D1-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FF":["couple_kiss_tone4-5","couplekiss_tone4-5"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FB":["couple_kiss_tone5-1","couplekiss_tone5-1"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FC":["couple_kiss_tone5-2","couplekiss_tone5-2"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FD":["couple_kiss_tone5-3","couplekiss_tone5-3"],"1F9D1-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F9D1-1F3FE":["couple_kiss_tone5-4","couplekiss_tone5-4"],"1F490":"bouquet","1F491":"couple_with_heart","1F491-1F3FB":"couple_with_heart_tone1","1F491-1F3FC":"couple_with_heart_tone2","1F491-1F3FD":"couple_with_heart_tone3","1F491-1F3FE":"couple_with_heart_tone4","1F491-1F3FF":"couple_with_heart_tone5","1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FC":"couple_with_heart_tone1-2","1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FD":"couple_with_heart_tone1-3","1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FE":"couple_with_heart_tone1-4","1F9D1-1F3FB-200D-2764-FE0F-200D-1F9D1-1F3FF":"couple_with_heart_tone1-5","1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FB":"couple_with_heart_tone2-1","1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FD":"couple_with_heart_tone2-3","1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FE":"couple_with_heart_tone2-4","1F9D1-1F3FC-200D-2764-FE0F-200D-1F9D1-1F3FF":"couple_with_heart_tone2-5","1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FB":"couple_with_heart_tone3-1","1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FC":"couple_with_heart_tone3-2","1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FE":"couple_with_heart_tone3-4","1F9D1-1F3FD-200D-2764-FE0F-200D-1F9D1-1F3FF":"couple_with_heart_tone3-5","1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FB":"couple_with_heart_tone4-1","1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FC":"couple_with_heart_tone4-2","1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FD":"couple_with_heart_tone4-3","1F9D1-1F3FE-200D-2764-FE0F-200D-1F9D1-1F3FF":"couple_with_heart_tone4-5","1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FB":"couple_with_heart_tone5-1","1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FC":"couple_with_heart_tone5-2","1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FD":"couple_with_heart_tone5-3","1F9D1-1F3FF-200D-2764-FE0F-200D-1F9D1-1F3FE":"couple_with_heart_tone5-4","1F492":"wedding","1F493":["beating_heart","heartbeat"],"1F494":"broken_heart","1F495":"two_hearts","1F496":"sparkling_heart","1F497":["growing_heart","heartpulse"],"1F498":["cupid","heart_with_arrow"],"1F499":"blue_heart","1F49A":"green_heart","1F49B":"yellow_heart","1F49C":"purple_heart","1F49D":["gift_heart","heart_with_ribbon"],"1F49E":"revolving_hearts","1F49F":"heart_decoration","1F4A0":["diamond_shape_with_a_dot_inside","diamond_with_a_dot"],"1F4A1":["bulb","light_bulb"],"1F4A2":"anger","1F4A3":"bomb","1F4A4":"zzz","1F4A5":["boom","collision"],"1F4A6":"sweat_drops","1F4A7":"droplet","1F4A8":["dash","dashing_away"],"1F4A9":["poop","shit"],"1F4AA":["muscle","right_bicep"],"1F4AA-1F3FB":["muscle_tone1","right_bicep_tone1"],"1F4AA-1F3FC":["muscle_tone2","right_bicep_tone2"],"1F4AA-1F3FD":["muscle_tone3","right_bicep_tone3"],"1F4AA-1F3FE":["muscle_tone4","right_bicep_tone4"],"1F4AA-1F3FF":["muscle_tone5","right_bicep_tone5"],"1F4AB":"dizzy","1F4AC":"speech_balloon","1F4AD":"thought_balloon","1F4AE":"white_flower","1F4AF":"100","1F4B0":"moneybag","1F4B1":"currency_exchange","1F4B2":"heavy_dollar_sign","1F4B3":"credit_card","1F4B4":"yen","1F4B5":"dollar","1F4B6":"euro","1F4B7":"pound","1F4B8":"money_with_wings","1F4B9":"chart","1F4BA":"seat","1F4BB":"laptop","1F4BC":"briefcase","1F4BD":["computer_disk","minidisc"],"1F4BE":"floppy_disk","1F4BF":["cd","optical_disk"],"1F4C0":"dvd","1F4C1":"file_folder","1F4C2":"open_file_folder","1F4C3":"page_with_curl","1F4C4":"page_facing_up","1F4C5":"date","1F4C6":"calendar","1F4C7":"card_index","1F4C8":["chart_increasing","chart_with_upwards_trend"],"1F4C9":["chart_decreasing","chart_with_downwards_trend"],"1F4CA":"bar_chart","1F4CB":"clipboard","1F4CC":"pushpin","1F4CD":"round_pushpin","1F4CE":"paperclip","1F4CF":"straight_ruler","1F4D0":"triangular_ruler","1F4D1":"bookmark_tabs","1F4D2":"ledger","1F4D3":"notebook","1F4D4":"notebook_with_decorative_cover","1F4D5":"closed_book","1F4D6":["book","open_book"],"1F4D7":"green_book","1F4D8":"blue_book","1F4D9":"orange_book","1F4DA":"books","1F4DB":"name_badge","1F4DC":"scroll","1F4DD":"memo","1F4DE":"telephone_receiver","1F4DF":"pager","1F4E0":["fax","fax_machine"],"1F4E1":"satellite_antenna","1F4E2":"loudspeaker","1F4E3":["mega","megaphone"],"1F4E4":"outbox_tray","1F4E5":"inbox_tray","1F4E6":"package","1F4E7":["e-mail","email"],"1F4E8":"incoming_envelope","1F4E9":"envelope_with_arrow","1F4EA":"mailbox_closed","1F4EB":"mailbox","1F4EC":"mailbox_with_mail","1F4ED":"mailbox_with_no_mail","1F4EE":"postbox","1F4EF":"postal_horn","1F4F0":"newspaper","1F4F1":["android","iphone","mobile_phone"],"1F4F2":["calling","mobile_phone_arrow"],"1F4F3":"vibration_mode","1F4F4":"mobile_phone_off","1F4F5":"no_mobile_phones","1F4F6":["antenna_bars","signal_strength"],"1F4F7":"camera","1F4F8":"camera_with_flash","1F4F9":"video_camera","1F4FA":"tv","1F4FB":"radio","1F4FC":["vhs","videocassette"],"1F4FD":"film_projector","1F4FF":"prayer_beads","1F500":["shuffle","twisted_rightwards_arrows"],"1F501":"repeat","1F502":"repeat_one","1F503":["arrows_clockwise","clockwise"],"1F504":["arrows_counterclockwise","counterclockwise"],"1F505":["dim_button","low_brightness"],"1F506":["bright_button","high_brightness"],"1F507":["mute","no_sound"],"1F508":["low_volume","quiet_sound","speaker"],"1F509":["medium_volumne","sound"],"1F50A":["high_volume","loud_sound"],"1F50B":"battery","1F50C":"electric_plug","1F50D":"mag","1F50E":"mag_right","1F50F":["lock_with_ink_pen","locked_with_pen"],"1F510":["closed_lock_with_key","locked_with_key"],"1F511":"key","1F512":["lock","locked"],"1F513":["unlock","unlocked"],"1F514":"bell","1F515":"no_bell","1F516":"bookmark","1F517":"link","1F518":"radio_button","1F519":"back","1F51A":"end","1F51B":"on","1F51C":"soon","1F51D":"top","1F51E":["no_one_under_18","underage"],"1F51F":"ten","1F520":"capital_abcd","1F521":"abcd","1F522":"1234","1F523":"symbols","1F524":"abc","1F525":"fire","1F526":"flashlight","1F527":"wrench","1F528":"hammer","1F529":"nut_and_bolt","1F52A":"knife","1F52B":["gun","pistol"],"1F52C":"microscope","1F52D":"telescope","1F52E":"crystal_ball","1F52F":"six_pointed_star","1F530":"beginner","1F531":"trident","1F532":"black_square_button","1F533":"white_square_button","1F534":"red_circle","1F535":"blue_circle","1F536":"large_orange_diamond","1F537":"large_blue_diamond","1F538":"small_orange_diamond","1F539":"small_blue_diamond","1F53A":"small_red_triangle","1F53B":"small_red_triangle_down","1F53C":["arrow_up_small","up"],"1F53D":["arrow_down_small","down"],"1F549":"om","1F54A":"dove","1F54B":"kaaba","1F54C":"mosque","1F54D":"synagogue","1F54E":"menorah","1F550":"clock1","1F551":"clock2","1F552":"clock3","1F553":"clock4","1F554":"clock5","1F555":"clock6","1F556":"clock7","1F557":"clock8","1F558":"clock9","1F559":"clock10","1F55A":"clock11","1F55B":"clock12","1F55C":"clock130","1F55D":"clock230","1F55E":"clock330","1F55F":"clock430","1F560":"clock530","1F561":"clock630","1F562":"clock730","1F563":"clock830","1F564":"clock930","1F565":"clock1030","1F566":"clock1130","1F567":"clock1230","1F56F":"candle","1F570":"clock","1F573":"hole","1F574":["levitate","levitating","person_in_suit_levitating"],"1F574-1F3FB":["levitate_tone1","levitating_tone1","person_in_suit_levitating_tone1"],"1F574-1F3FC":["levitate_tone2","levitating_tone2","person_in_suit_levitating_tone2"],"1F574-1F3FD":["levitate_tone3","levitating_tone3","person_in_suit_levitating_tone3"],"1F574-1F3FE":["levitate_tone4","levitating_tone4","person_in_suit_levitating_tone4"],"1F574-1F3FF":["levitate_tone5","levitating_tone5","person_in_suit_levitating_tone5"],"1F575":"detective","1F575-1F3FB":"detective_tone1","1F575-1F3FC":"detective_tone2","1F575-1F3FD":"detective_tone3","1F575-1F3FE":"detective_tone4","1F575-1F3FF":"detective_tone5","1F576":"sunglasses","1F577":"spider","1F578":"spider_web","1F579":"joystick","1F57A":"man_dancing","1F57A-1F3FB":"man_dancing_tone1","1F57A-1F3FC":"man_dancing_tone2","1F57A-1F3FD":"man_dancing_tone3","1F57A-1F3FE":"man_dancing_tone4","1F57A-1F3FF":"man_dancing_tone5","1F587":"paperclips","1F58A":"pen","1F58B":"fountain_pen","1F58C":"paintbrush","1F58D":"crayon","1F590":"raised_hand_with_fingers_splayed","1F590-1F3FB":"raised_hand_with_fingers_splayed_tone1","1F590-1F3FC":"raised_hand_with_fingers_splayed_tone2","1F590-1F3FD":"raised_hand_with_fingers_splayed_tone3","1F590-1F3FE":"raised_hand_with_fingers_splayed_tone4","1F590-1F3FF":"raised_hand_with_fingers_splayed_tone5","1F595":"middle_finger","1F595-1F3FB":"middle_finger_tone1","1F595-1F3FC":"middle_finger_tone2","1F595-1F3FD":"middle_finger_tone3","1F595-1F3FE":"middle_finger_tone4","1F595-1F3FF":"middle_finger_tone5","1F596":"vulcan","1F596-1F3FB":"vulcan_tone1","1F596-1F3FC":"vulcan_tone2","1F596-1F3FD":"vulcan_tone3","1F596-1F3FE":"vulcan_tone4","1F596-1F3FF":"vulcan_tone5","1F5A4":"black_heart","1F5A5":["computer","desktop_computer"],"1F5A8":"printer","1F5B1":"computer_mouse","1F5B2":"trackball","1F5BC":["frame_with_picture","framed_picture"],"1F5C2":"card_index_dividers","1F5C3":"card_file_box","1F5C4":"file_cabinet","1F5D1":["trashcan","wastebasket"],"1F5D2":"notepad_spiral","1F5D3":"calendar_spiral","1F5DC":["clamp","compression"],"1F5DD":"old_key","1F5DE":"rolled_up_newspaper","1F5E1":"dagger","1F5E3":"speaking_head","1F5E8":"left_speech_bubble","1F5EF":"right_anger_bubble","1F5F3":"ballot_box","1F5FA":"world_map","1F5FB":"mount_fuji","1F5FC":"tokyo_tower","1F5FD":"statue_of_liberty","1F5FE":"japan_map","1F5FF":["moai","moyai"],"1F600":["grinning","grinning_face"],"1F601":["beaming_face","grin"],"1F602":["joy","lmao","tears_of_joy"],"1F603":["grinning_face_with_big_eyes","smiley"],"1F604":["grinning_face_with_closed_eyes","smile"],"1F605":["grinning_face_with_sweat","sweat_smile"],"1F606":["laughing","lol","satisfied","squinting_face"],"1F607":["halo","innocent"],"1F608":"smiling_imp","1F609":["wink","winking_face"],"1F60A":["blush","smiling_face_with_closed_eyes"],"1F60B":["savoring_food","yum"],"1F60C":["relieved","relieved_face"],"1F60D":["heart_eyes","smiling_face_with_heart_eyes"],"1F60E":["smiling_face_with_sunglasses","sunglasses_cool","too_cool"],"1F60F":["smirk","smirking","smirking_face"],"1F610":["neutral","neutral_face"],"1F611":["expressionless","expressionless_face"],"1F612":["unamused","unamused_face"],"1F613":["downcast_face","sweat"],"1F614":["pensive","pensive_face"],"1F615":["confused","confused_face"],"1F616":["confounded","confounded_face"],"1F617":["kissing","kissing_face"],"1F618":["blowing_a_kiss","kissing_heart"],"1F619":["kissing_face_with_smiling_eyes","kissing_smiling_eyes"],"1F61A":["kissing_closed_eyes","kissing_face_with_closed_eyes"],"1F61B":["face_with_tongue","stuck_out_tongue"],"1F61C":"stuck_out_tongue_winking_eye","1F61D":"stuck_out_tongue_closed_eyes","1F61E":["disappointed","disappointed_face"],"1F61F":["worried","worried_face"],"1F620":["angry","angry_face"],"1F621":["pout","pouting_face","rage"],"1F622":["cry","crying_face"],"1F623":["persevere","persevering_face"],"1F624":["nose_steam","triumph"],"1F625":["disappointed_relieved","sad_relieved_face"],"1F626":["frowning","frowning_face"],"1F627":["anguished","anguished_face"],"1F628":["fearful","fearful_face"],"1F629":["weary","weary_face"],"1F62A":["sleepy","sleepy_face"],"1F62B":["tired","tired_face"],"1F62C":["grimacing","grimacing_face"],"1F62D":["loudly_crying_face","sob"],"1F62E":["face_with_open_mouth","open_mouth"],"1F62F":["hushed","hushed_face"],"1F630":["anxious","anxious_face","cold_sweat"],"1F631":["scream","screaming_in_fear"],"1F632":["astonished","astonished_face"],"1F633":["flushed","flushed_face"],"1F634":["sleeping","sleeping_face"],"1F635":["dizzy_face","knocked_out"],"1F636":"no_mouth","1F637":["mask","medical_mask"],"1F638":["grinning_cat_with_closed_eyes","smile_cat"],"1F639":["joy_cat","tears_of_joy_cat"],"1F63A":["grinning_cat","smiley_cat"],"1F63B":["heart_eyes_cat","smiling_cat_with_heart_eyes"],"1F63C":["smirk_cat","wry_smile_cat"],"1F63D":"kissing_cat","1F63E":"pouting_cat","1F63F":"crying_cat","1F640":["scream_cat","weary_cat"],"1F641":"slightly_frowning_face","1F642":"slightly_smiling_face","1F643":"upside_down_face","1F644":"rolling_eyes","1F645":["no_good","person_gesturing_no"],"1F645-1F3FB":["no_good_tone1","person_gesturing_no_tone1"],"1F645-1F3FC":["no_good_tone2","person_gesturing_no_tone2"],"1F645-1F3FD":["no_good_tone3","person_gesturing_no_tone3"],"1F645-1F3FE":["no_good_tone4","person_gesturing_no_tone4"],"1F645-1F3FF":["no_good_tone5","person_gesturing_no_tone5"],"1F646":["all_good","person_gesturing_ok"],"1F646-1F3FB":["all_good_tone1","person_gesturing_ok_tone1"],"1F646-1F3FC":["all_good_tone2","person_gesturing_ok_tone2"],"1F646-1F3FD":["all_good_tone3","person_gesturing_ok_tone3"],"1F646-1F3FE":["all_good_tone4","person_gesturing_ok_tone4"],"1F646-1F3FF":["all_good_tone5","person_gesturing_ok_tone5"],"1F647":["bow","person_bowing"],"1F647-1F3FB":["bow_tone1","person_bowing_tone1"],"1F647-1F3FC":["bow_tone2","person_bowing_tone2"],"1F647-1F3FD":["bow_tone3","person_bowing_tone3"],"1F647-1F3FE":["bow_tone4","person_bowing_tone4"],"1F647-1F3FF":["bow_tone5","person_bowing_tone5"],"1F648":"see_no_evil","1F649":"hear_no_evil","1F64A":"speak_no_evil","1F64B":"person_raising_hand","1F64B-1F3FB":"person_raising_hand_tone1","1F64B-1F3FC":"person_raising_hand_tone2","1F64B-1F3FD":"person_raising_hand_tone3","1F64B-1F3FE":"person_raising_hand_tone4","1F64B-1F3FF":"person_raising_hand_tone5","1F64C":"raised_hands","1F64C-1F3FB":"raised_hands_tone1","1F64C-1F3FC":"raised_hands_tone2","1F64C-1F3FD":"raised_hands_tone3","1F64C-1F3FE":"raised_hands_tone4","1F64C-1F3FF":"raised_hands_tone5","1F64D":"person_frowning","1F64D-1F3FB":"person_frowning_tone1","1F64D-1F3FC":"person_frowning_tone2","1F64D-1F3FD":"person_frowning_tone3","1F64D-1F3FE":"person_frowning_tone4","1F64D-1F3FF":"person_frowning_tone5","1F64E":["person_pouting","pouting"],"1F64E-1F3FB":["person_pouting_tone1","pouting_tone1"],"1F64E-1F3FC":["person_pouting_tone2","pouting_tone2"],"1F64E-1F3FD":["person_pouting_tone3","pouting_tone3"],"1F64E-1F3FE":["person_pouting_tone4","pouting_tone4"],"1F64E-1F3FF":["person_pouting_tone5","pouting_tone5"],"1F64F":["folded_hands","pray"],"1F64F-1F3FB":["folded_hands_tone1","pray_tone1"],"1F64F-1F3FC":["folded_hands_tone2","pray_tone2"],"1F64F-1F3FD":["folded_hands_tone3","pray_tone3"],"1F64F-1F3FE":["folded_hands_tone4","pray_tone4"],"1F64F-1F3FF":["folded_hands_tone5","pray_tone5"],"1F680":"rocket","1F681":"helicopter","1F682":"steam_locomotive","1F683":"railway_car","1F684":"bullettrain_side","1F685":"bullettrain_front","1F686":"train","1F687":"metro","1F688":"light_rail","1F689":"station","1F68A":"tram","1F68B":"tram_car","1F68C":"bus","1F68D":"oncoming_bus","1F68E":"trolleybus","1F68F":"busstop","1F690":"minibus","1F691":"ambulance","1F692":"fire_engine","1F693":"police_car","1F694":"oncoming_police_car","1F695":"taxi","1F696":"oncoming_taxi","1F697":["car","red_car"],"1F698":"oncoming_automobile","1F699":["blue_car","suv"],"1F69A":["delivery_truck","truck"],"1F69B":"articulated_lorry","1F69C":"tractor","1F69D":"monorail","1F69E":"mountain_railway","1F69F":"suspension_railway","1F6A0":"mountain_cableway","1F6A1":"aerial_tramway","1F6A2":"ship","1F6A3":["person_rowing_boat","rowboat"],"1F6A3-1F3FB":["person_rowing_boat_tone1","rowboat_tone1"],"1F6A3-1F3FC":["person_rowing_boat_tone2","rowboat_tone2"],"1F6A3-1F3FD":["person_rowing_boat_tone3","rowboat_tone3"],"1F6A3-1F3FE":["person_rowing_boat_tone4","rowboat_tone4"],"1F6A3-1F3FF":["person_rowing_boat_tone5","rowboat_tone5"],"1F6A4":"speedboat","1F6A5":"traffic_light","1F6A6":"vertical_traffic_light","1F6A7":"construction","1F6A8":"rotating_light","1F6A9":["triangular_flag","triangular_flag_on_post"],"1F6AA":"door","1F6AB":"no_entry_sign","1F6AC":["cigarette","smoking"],"1F6AD":"no_smoking","1F6AE":["litter_bin","put_litter_in_its_place"],"1F6AF":["do_not_litter","no_littering"],"1F6B0":"potable_water","1F6B1":"non-potable_water","1F6B2":["bicycle","bike"],"1F6B3":"no_bicycles","1F6B4":["bicyclist","biking","person_biking"],"1F6B4-1F3FB":["bicyclist_tone1","biking_tone1","person_biking_tone1"],"1F6B4-1F3FC":["bicyclist_tone2","biking_tone2","person_biking_tone2"],"1F6B4-1F3FD":["bicyclist_tone3","biking_tone3","person_biking_tone3"],"1F6B4-1F3FE":["bicyclist_tone4","biking_tone4","person_biking_tone4"],"1F6B4-1F3FF":["bicyclist_tone5","biking_tone5","person_biking_tone5"],"1F6B5":["mountain_bicyclist","mountain_biking","person_mountain_biking"],"1F6B5-1F3FB":["mountain_bicyclist_tone1","mountain_biking_tone1","person_mountain_biking_tone1"],"1F6B5-1F3FC":["mountain_bicyclist_tone2","mountain_biking_tone2","person_mountain_biking_tone2"],"1F6B5-1F3FD":["mountain_bicyclist_tone3","mountain_biking_tone3","person_mountain_biking_tone3"],"1F6B5-1F3FE":["mountain_bicyclist_tone4","mountain_biking_tone4","person_mountain_biking_tone4"],"1F6B5-1F3FF":["mountain_bicyclist_tone5","mountain_biking_tone5","person_mountain_biking_tone5"],"1F6B6":["person_walking","walking"],"1F6B6-1F3FB":["person_walking_tone1","walking_tone1"],"1F6B6-1F3FC":["person_walking_tone2","walking_tone2"],"1F6B6-1F3FD":["person_walking_tone3","walking_tone3"],"1F6B6-1F3FE":["person_walking_tone4","walking_tone4"],"1F6B6-1F3FF":["person_walking_tone5","walking_tone5"],"1F6B7":"no_pedestrians","1F6B8":"children_crossing","1F6B9":"mens","1F6BA":"womens","1F6BB":["bathroom","restroom"],"1F6BC":"baby_symbol","1F6BD":"toilet","1F6BE":["water_closet","wc"],"1F6BF":"shower","1F6C0":["bath","person_taking_bath"],"1F6C0-1F3FB":["bath_tone1","person_taking_bath_tone1"],"1F6C0-1F3FC":["bath_tone2","person_taking_bath_tone2"],"1F6C0-1F3FD":["bath_tone3","person_taking_bath_tone3"],"1F6C0-1F3FE":["bath_tone4","person_taking_bath_tone4"],"1F6C0-1F3FF":["bath_tone5","person_taking_bath_tone5"],"1F6C1":"bathtub","1F6C2":"passport_control","1F6C3":"customs","1F6C4":"baggage_claim","1F6C5":"left_luggage","1F6CB":"couch_and_lamp","1F6CC":["person_in_bed","sleeping_accommodation"],"1F6CC-1F3FB":["person_in_bed_tone1","sleeping_accommodation_tone1"],"1F6CC-1F3FC":["person_in_bed_tone2","sleeping_accommodation_tone2"],"1F6CC-1F3FD":["person_in_bed_tone3","sleeping_accommodation_tone3"],"1F6CC-1F3FE":["person_in_bed_tone4","sleeping_accommodation_tone4"],"1F6CC-1F3FF":["person_in_bed_tone5","sleeping_accommodation_tone5"],"1F6CD":"shopping_bags","1F6CE":"bellhop","1F6CF":"bed","1F6D0":"place_of_worship","1F6D1":["octagonal_sign","stop_sign"],"1F6D2":"shopping_cart","1F6D5":"hindu_temple","1F6D6":"hut","1F6D7":"elevator","1F6DC":"wireless","1F6DD":["playground_slide","slide"],"1F6DE":"wheel","1F6DF":["lifebuoy","ring_buoy"],"1F6E0":"hammer_and_wrench","1F6E1":"shield","1F6E2":"oil_drum","1F6E3":"motorway","1F6E4":"railway_track","1F6E5":"motorboat","1F6E9":"small_airplane","1F6EB":"airplane_departure","1F6EC":"airplane_arriving","1F6F0":"satellite","1F6F3":["cruise_ship","passenger_ship"],"1F6F4":"scooter","1F6F5":"motor_scooter","1F6F6":"canoe","1F6F7":"sled","1F6F8":"flying_saucer","1F6F9":"skateboard","1F6FA":"auto_rickshaw","1F6FB":"pickup_truck","1F6FC":"roller_skate","1F7E0":"orange_circle","1F7E1":"yellow_circle","1F7E2":"green_circle","1F7E3":"purple_circle","1F7E4":"brown_circle","1F7E5":"red_square","1F7E6":"blue_square","1F7E7":"orange_square","1F7E8":"yellow_square","1F7E9":"green_square","1F7EA":"purple_square","1F7EB":"brown_square","1F7F0":"heavy_equals_sign","1F90C":["pinch","pinched_fingers"],"1F90C-1F3FB":["pinch_tone1","pinched_fingers_tone1"],"1F90C-1F3FC":["pinch_tone2","pinched_fingers_tone2"],"1F90C-1F3FD":["pinch_tone3","pinched_fingers_tone3"],"1F90C-1F3FE":["pinch_tone4","pinched_fingers_tone4"],"1F90C-1F3FF":["pinch_tone5","pinched_fingers_tone5"],"1F90D":"white_heart","1F90E":"brown_heart","1F90F":"pinching_hand","1F90F-1F3FB":"pinching_hand_tone1","1F90F-1F3FC":"pinching_hand_tone2","1F90F-1F3FD":"pinching_hand_tone3","1F90F-1F3FE":"pinching_hand_tone4","1F90F-1F3FF":"pinching_hand_tone5","1F910":["zipper_mouth","zipper_mouth_face"],"1F911":"money_mouth_face","1F912":"face_with_thermometer","1F913":["nerd","nerd_face"],"1F914":["thinking","thinking_face","wtf"],"1F915":"face_with_head_bandage","1F916":["robot","robot_face"],"1F917":["hug","hugging","hugging_face"],"1F918":["metal","sign_of_the_horns"],"1F918-1F3FB":["metal_tone1","sign_of_the_horns_tone1"],"1F918-1F3FC":["metal_tone2","sign_of_the_horns_tone2"],"1F918-1F3FD":["metal_tone3","sign_of_the_horns_tone3"],"1F918-1F3FE":["metal_tone4","sign_of_the_horns_tone4"],"1F918-1F3FF":["metal_tone5","sign_of_the_horns_tone5"],"1F919":"call_me_hand","1F919-1F3FB":"call_me_hand_tone1","1F919-1F3FC":"call_me_hand_tone2","1F919-1F3FD":"call_me_hand_tone3","1F919-1F3FE":"call_me_hand_tone4","1F919-1F3FF":"call_me_hand_tone5","1F91A":"raised_back_of_hand","1F91A-1F3FB":"raised_back_of_hand_tone1","1F91A-1F3FC":"raised_back_of_hand_tone2","1F91A-1F3FD":"raised_back_of_hand_tone3","1F91A-1F3FE":"raised_back_of_hand_tone4","1F91A-1F3FF":"raised_back_of_hand_tone5","1F91B":"left_facing_fist","1F91B-1F3FB":"left_facing_fist_tone1","1F91B-1F3FC":"left_facing_fist_tone2","1F91B-1F3FD":"left_facing_fist_tone3","1F91B-1F3FE":"left_facing_fist_tone4","1F91B-1F3FF":"left_facing_fist_tone5","1F91C":"right_facing_fist","1F91C-1F3FB":"right_facing_fist_tone1","1F91C-1F3FC":"right_facing_fist_tone2","1F91C-1F3FD":"right_facing_fist_tone3","1F91C-1F3FE":"right_facing_fist_tone4","1F91C-1F3FF":"right_facing_fist_tone5","1F91D":"handshake","1F91D-1F3FB":"handshake_tone1","1F91D-1F3FC":"handshake_tone2","1F91D-1F3FD":"handshake_tone3","1F91D-1F3FE":"handshake_tone4","1F91D-1F3FF":"handshake_tone5","1FAF1-1F3FB-200D-1FAF2-1F3FC":"handshake_tone1-2","1FAF1-1F3FB-200D-1FAF2-1F3FD":"handshake_tone1-3","1FAF1-1F3FB-200D-1FAF2-1F3FE":"handshake_tone1-4","1FAF1-1F3FB-200D-1FAF2-1F3FF":"handshake_tone1-5","1FAF1-1F3FC-200D-1FAF2-1F3FB":"handshake_tone2-1","1FAF1-1F3FC-200D-1FAF2-1F3FD":"handshake_tone2-3","1FAF1-1F3FC-200D-1FAF2-1F3FE":"handshake_tone2-4","1FAF1-1F3FC-200D-1FAF2-1F3FF":"handshake_tone2-5","1FAF1-1F3FD-200D-1FAF2-1F3FB":"handshake_tone3-1","1FAF1-1F3FD-200D-1FAF2-1F3FC":"handshake_tone3-2","1FAF1-1F3FD-200D-1FAF2-1F3FE":"handshake_tone3-4","1FAF1-1F3FD-200D-1FAF2-1F3FF":"handshake_tone3-5","1FAF1-1F3FE-200D-1FAF2-1F3FB":"handshake_tone4-1","1FAF1-1F3FE-200D-1FAF2-1F3FC":"handshake_tone4-2","1FAF1-1F3FE-200D-1FAF2-1F3FD":"handshake_tone4-3","1FAF1-1F3FE-200D-1FAF2-1F3FF":"handshake_tone4-5","1FAF1-1F3FF-200D-1FAF2-1F3FB":"handshake_tone5-1","1FAF1-1F3FF-200D-1FAF2-1F3FC":"handshake_tone5-2","1FAF1-1F3FF-200D-1FAF2-1F3FD":"handshake_tone5-3","1FAF1-1F3FF-200D-1FAF2-1F3FE":"handshake_tone5-4","1F91E":"fingers_crossed","1F91E-1F3FB":"fingers_crossed_tone1","1F91E-1F3FC":"fingers_crossed_tone2","1F91E-1F3FD":"fingers_crossed_tone3","1F91E-1F3FE":"fingers_crossed_tone4","1F91E-1F3FF":"fingers_crossed_tone5","1F91F":"love_you_gesture","1F91F-1F3FB":"love_you_gesture_tone1","1F91F-1F3FC":"love_you_gesture_tone2","1F91F-1F3FD":"love_you_gesture_tone3","1F91F-1F3FE":"love_you_gesture_tone4","1F91F-1F3FF":"love_you_gesture_tone5","1F920":["cowboy","cowboy_face"],"1F921":["clown","clown_face"],"1F922":["nauseated","nauseated_face"],"1F923":"rofl","1F924":["drooling","drooling_face"],"1F925":["lying","lying_face"],"1F926":["facepalm","person_facepalming"],"1F926-1F3FB":["facepalm_tone1","person_facepalming_tone1"],"1F926-1F3FC":["facepalm_tone2","person_facepalming_tone2"],"1F926-1F3FD":["facepalm_tone3","person_facepalming_tone3"],"1F926-1F3FE":["facepalm_tone4","person_facepalming_tone4"],"1F926-1F3FF":["facepalm_tone5","person_facepalming_tone5"],"1F927":["sneezing","sneezing_face"],"1F928":["face_with_raised_eyebrow","raised_eyebrow"],"1F929":"star_struck","1F92A":["zany","zany_face"],"1F92B":["shush","shushing_face"],"1F92C":["censored","face_with_symbols_on_mouth"],"1F92D":["face_with_hand_over_mouth","hand_over_mouth"],"1F92E":["face_vomiting","vomiting"],"1F92F":"exploding_head","1F930":"pregnant_woman","1F930-1F3FB":"pregnant_woman_tone1","1F930-1F3FC":"pregnant_woman_tone2","1F930-1F3FD":"pregnant_woman_tone3","1F930-1F3FE":"pregnant_woman_tone4","1F930-1F3FF":"pregnant_woman_tone5","1F931":"breast_feeding","1F931-1F3FB":"breast_feeding_tone1","1F931-1F3FC":"breast_feeding_tone2","1F931-1F3FD":"breast_feeding_tone3","1F931-1F3FE":"breast_feeding_tone4","1F931-1F3FF":"breast_feeding_tone5","1F932":"palms_up_together","1F932-1F3FB":"palms_up_together_tone1","1F932-1F3FC":"palms_up_together_tone2","1F932-1F3FD":"palms_up_together_tone3","1F932-1F3FE":"palms_up_together_tone4","1F932-1F3FF":"palms_up_together_tone5","1F933":"selfie","1F933-1F3FB":"selfie_tone1","1F933-1F3FC":"selfie_tone2","1F933-1F3FD":"selfie_tone3","1F933-1F3FE":"selfie_tone4","1F933-1F3FF":"selfie_tone5","1F934":"prince","1F934-1F3FB":"prince_tone1","1F934-1F3FC":"prince_tone2","1F934-1F3FD":"prince_tone3","1F934-1F3FE":"prince_tone4","1F934-1F3FF":"prince_tone5","1F935":"person_in_tuxedo","1F935-1F3FB":"person_in_tuxedo_tone1","1F935-1F3FC":"person_in_tuxedo_tone2","1F935-1F3FD":"person_in_tuxedo_tone3","1F935-1F3FE":"person_in_tuxedo_tone4","1F935-1F3FF":"person_in_tuxedo_tone5","1F936":"mrs_claus","1F936-1F3FB":"mrs_claus_tone1","1F936-1F3FC":"mrs_claus_tone2","1F936-1F3FD":"mrs_claus_tone3","1F936-1F3FE":"mrs_claus_tone4","1F936-1F3FF":"mrs_claus_tone5","1F937":["person_shrugging","shrug"],"1F937-1F3FB":["person_shrugging_tone1","shrug_tone1"],"1F937-1F3FC":["person_shrugging_tone2","shrug_tone2"],"1F937-1F3FD":["person_shrugging_tone3","shrug_tone3"],"1F937-1F3FE":["person_shrugging_tone4","shrug_tone4"],"1F937-1F3FF":["person_shrugging_tone5","shrug_tone5"],"1F938":["cartwheeling","person_cartwheel"],"1F938-1F3FB":["cartwheeling_tone1","person_cartwheel_tone1"],"1F938-1F3FC":["cartwheeling_tone2","person_cartwheel_tone2"],"1F938-1F3FD":["cartwheeling_tone3","person_cartwheel_tone3"],"1F938-1F3FE":["cartwheeling_tone4","person_cartwheel_tone4"],"1F938-1F3FF":["cartwheeling_tone5","person_cartwheel_tone5"],"1F939":["juggler","juggling","person_juggling"],"1F939-1F3FB":["juggler_tone1","juggling_tone1","person_juggling_tone1"],"1F939-1F3FC":["juggler_tone2","juggling_tone2","person_juggling_tone2"],"1F939-1F3FD":["juggler_tone3","juggling_tone3","person_juggling_tone3"],"1F939-1F3FE":["juggler_tone4","juggling_tone4","person_juggling_tone4"],"1F939-1F3FF":["juggler_tone5","juggling_tone5","person_juggling_tone5"],"1F93A":["fencer","fencing","person_fencing"],"1F93C":["people_wrestling","wrestlers","wrestling"],"1F93D":["person_playing_water_polo","water_polo"],"1F93D-1F3FB":["person_playing_water_polo_tone1","water_polo_tone1"],"1F93D-1F3FC":["person_playing_water_polo_tone2","water_polo_tone2"],"1F93D-1F3FD":["person_playing_water_polo_tone3","water_polo_tone3"],"1F93D-1F3FE":["person_playing_water_polo_tone4","water_polo_tone4"],"1F93D-1F3FF":["person_playing_water_polo_tone5","water_polo_tone5"],"1F93E":["handball","person_playing_handball"],"1F93E-1F3FB":["handball_tone1","person_playing_handball_tone1"],"1F93E-1F3FC":["handball_tone2","person_playing_handball_tone2"],"1F93E-1F3FD":["handball_tone3","person_playing_handball_tone3"],"1F93E-1F3FE":["handball_tone4","person_playing_handball_tone4"],"1F93E-1F3FF":["handball_tone5","person_playing_handball_tone5"],"1F93F":"diving_mask","1F940":"wilted_flower","1F941":"drum","1F942":"clinking_glasses","1F943":["tumbler_glass","whisky"],"1F944":"spoon","1F945":"goal_net","1F947":["1st","first_place_medal"],"1F948":["2nd","second_place_medal"],"1F949":["3rd","third_place_medal"],"1F94A":"boxing_glove","1F94B":"martial_arts_uniform","1F94C":"curling_stone","1F94D":"lacrosse","1F94E":"softball","1F94F":"flying_disc","1F950":"croissant","1F951":"avocado","1F952":"cucumber","1F953":"bacon","1F954":"potato","1F955":"carrot","1F956":"baguette_bread","1F957":["green_salad","salad"],"1F958":"shallow_pan_of_food","1F959":"stuffed_flatbread","1F95A":"egg","1F95B":["glass_of_milk","milk"],"1F95C":"peanuts","1F95D":"kiwi","1F95E":"pancakes","1F95F":"dumpling","1F960":"fortune_cookie","1F961":"takeout_box","1F962":"chopsticks","1F963":"bowl_with_spoon","1F964":"cup_with_straw","1F965":"coconut","1F966":"broccoli","1F967":"pie","1F968":"pretzel","1F969":"cut_of_meat","1F96A":"sandwich","1F96B":"canned_food","1F96C":"leafy_green","1F96D":"mango","1F96E":"moon_cake","1F96F":"bagel","1F970":"smiling_face_with_3_hearts","1F971":["yawn","yawning","yawning_face"],"1F972":"smiling_face_with_tear","1F973":["hooray","partying","partying_face"],"1F974":["woozy","woozy_face"],"1F975":["hot","hot_face"],"1F976":["cold","cold_face"],"1F977":"ninja","1F977-1F3FB":"ninja_tone1","1F977-1F3FC":"ninja_tone2","1F977-1F3FD":"ninja_tone3","1F977-1F3FE":"ninja_tone4","1F977-1F3FF":"ninja_tone5","1F978":["disguised","disguised_face"],"1F979":["face_holding_back_tears","watery_eyes"],"1F97A":["pleading","pleading_face"],"1F97B":"sari","1F97C":"lab_coat","1F97D":"goggles","1F97E":"hiking_boot","1F97F":["flat_shoe","womans_flat_shoe"],"1F980":"crab","1F981":["lion","lion_face"],"1F982":"scorpion","1F983":"turkey","1F984":["unicorn","unicorn_face"],"1F985":"eagle","1F986":"duck","1F987":"bat","1F988":"shark","1F989":"owl","1F98A":["fox","fox_face"],"1F98B":"butterfly","1F98C":"deer","1F98D":"gorilla","1F98E":"lizard","1F98F":["rhino","rhinoceros"],"1F990":"shrimp","1F991":"squid","1F992":"giraffe","1F993":"zebra","1F994":"hedgehog","1F995":"sauropod","1F996":["t-rex","trex"],"1F997":"cricket","1F998":"kangaroo","1F999":"llama","1F99A":"peacock","1F99B":"hippo","1F99C":"parrot","1F99D":"raccoon","1F99E":"lobster","1F99F":"mosquito","1F9A0":"microbe","1F9A1":"badger","1F9A2":"swan","1F9A3":"mammoth","1F9A4":"dodo","1F9A5":"sloth","1F9A6":"otter","1F9A7":"orangutan","1F9A8":"skunk","1F9A9":"flamingo","1F9AA":"oyster","1F9AB":"beaver","1F9AC":"bison","1F9AD":"seal","1F9AE":"guide_dog","1F9AF":["probing_cane","white_cane"],"1F9B0":"red_hair","1F9B1":"curly_hair","1F9B2":"no_hair","1F9B3":"white_hair","1F9B4":"bone","1F9B5":"leg","1F9B5-1F3FB":"leg_tone1","1F9B5-1F3FC":"leg_tone2","1F9B5-1F3FD":"leg_tone3","1F9B5-1F3FE":"leg_tone4","1F9B5-1F3FF":"leg_tone5","1F9B6":"foot","1F9B6-1F3FB":"foot_tone1","1F9B6-1F3FC":"foot_tone2","1F9B6-1F3FD":"foot_tone3","1F9B6-1F3FE":"foot_tone4","1F9B6-1F3FF":"foot_tone5","1F9B7":"tooth","1F9B8":"superhero","1F9B8-1F3FB":"superhero_tone1","1F9B8-1F3FC":"superhero_tone2","1F9B8-1F3FD":"superhero_tone3","1F9B8-1F3FE":"superhero_tone4","1F9B8-1F3FF":"superhero_tone5","1F9B9":"supervillain","1F9B9-1F3FB":"supervillain_tone1","1F9B9-1F3FC":"supervillain_tone2","1F9B9-1F3FD":"supervillain_tone3","1F9B9-1F3FE":"supervillain_tone4","1F9B9-1F3FF":"supervillain_tone5","1F9BA":"safety_vest","1F9BB":["ear_with_hearing_aid","hearing_aid"],"1F9BB-1F3FB":["ear_with_hearing_aid_tone1","hearing_aid_tone1"],"1F9BB-1F3FC":["ear_with_hearing_aid_tone2","hearing_aid_tone2"],"1F9BB-1F3FD":["ear_with_hearing_aid_tone3","hearing_aid_tone3"],"1F9BB-1F3FE":["ear_with_hearing_aid_tone4","hearing_aid_tone4"],"1F9BB-1F3FF":["ear_with_hearing_aid_tone5","hearing_aid_tone5"],"1F9BC":"motorized_wheelchair","1F9BD":"manual_wheelchair","1F9BE":"mechanical_arm","1F9BF":"mechanical_leg","1F9C0":"cheese","1F9C1":"cupcake","1F9C2":"salt","1F9C3":["beverage_box","juice_box"],"1F9C4":"garlic","1F9C5":"onion","1F9C6":"falafel","1F9C7":"waffle","1F9C8":"butter","1F9C9":"mate","1F9CA":["ice","ice_cube"],"1F9CB":["boba_drink","bubble_tea"],"1F9CC":"troll","1F9CD":["person_standing","standing"],"1F9CD-1F3FB":["person_standing_tone1","standing_tone1"],"1F9CD-1F3FC":["person_standing_tone2","standing_tone2"],"1F9CD-1F3FD":["person_standing_tone3","standing_tone3"],"1F9CD-1F3FE":["person_standing_tone4","standing_tone4"],"1F9CD-1F3FF":["person_standing_tone5","standing_tone5"],"1F9CE":["kneeling","person_kneeling"],"1F9CE-1F3FB":["kneeling_tone1","person_kneeling_tone1"],"1F9CE-1F3FC":["kneeling_tone2","person_kneeling_tone2"],"1F9CE-1F3FD":["kneeling_tone3","person_kneeling_tone3"],"1F9CE-1F3FE":["kneeling_tone4","person_kneeling_tone4"],"1F9CE-1F3FF":["kneeling_tone5","person_kneeling_tone5"],"1F9CF":"deaf_person","1F9CF-1F3FB":"deaf_person_tone1","1F9CF-1F3FC":"deaf_person_tone2","1F9CF-1F3FD":"deaf_person_tone3","1F9CF-1F3FE":"deaf_person_tone4","1F9CF-1F3FF":"deaf_person_tone5","1F9D0":"face_with_monocle","1F9D1":"adult","1F9D1-1F3FB":"adult_tone1","1F9D1-1F3FC":"adult_tone2","1F9D1-1F3FD":"adult_tone3","1F9D1-1F3FE":"adult_tone4","1F9D1-1F3FF":"adult_tone5","1F9D2":"child","1F9D2-1F3FB":"child_tone1","1F9D2-1F3FC":"child_tone2","1F9D2-1F3FD":"child_tone3","1F9D2-1F3FE":"child_tone4","1F9D2-1F3FF":"child_tone5","1F9D3":"older_adult","1F9D3-1F3FB":"older_adult_tone1","1F9D3-1F3FC":"older_adult_tone2","1F9D3-1F3FD":"older_adult_tone3","1F9D3-1F3FE":"older_adult_tone4","1F9D3-1F3FF":"older_adult_tone5","1F9D4":"person_bearded","1F9D4-1F3FB":"person_bearded_tone1","1F9D4-1F3FC":"person_bearded_tone2","1F9D4-1F3FD":"person_bearded_tone3","1F9D4-1F3FE":"person_bearded_tone4","1F9D4-1F3FF":"person_bearded_tone5","1F9D5":"woman_with_headscarf","1F9D5-1F3FB":"woman_with_headscarf_tone1","1F9D5-1F3FC":"woman_with_headscarf_tone2","1F9D5-1F3FD":"woman_with_headscarf_tone3","1F9D5-1F3FE":"woman_with_headscarf_tone4","1F9D5-1F3FF":"woman_with_headscarf_tone5","1F9D6":"person_in_steamy_room","1F9D6-1F3FB":"person_in_steamy_room_tone1","1F9D6-1F3FC":"person_in_steamy_room_tone2","1F9D6-1F3FD":"person_in_steamy_room_tone3","1F9D6-1F3FE":"person_in_steamy_room_tone4","1F9D6-1F3FF":"person_in_steamy_room_tone5","1F9D7":["climbing","person_climbing"],"1F9D7-1F3FB":["climbing_tone1","person_climbing_tone1"],"1F9D7-1F3FC":["climbing_tone2","person_climbing_tone2"],"1F9D7-1F3FD":["climbing_tone3","person_climbing_tone3"],"1F9D7-1F3FE":["climbing_tone4","person_climbing_tone4"],"1F9D7-1F3FF":["climbing_tone5","person_climbing_tone5"],"1F9D8":"person_in_lotus_position","1F9D8-1F3FB":"person_in_lotus_position_tone1","1F9D8-1F3FC":"person_in_lotus_position_tone2","1F9D8-1F3FD":"person_in_lotus_position_tone3","1F9D8-1F3FE":"person_in_lotus_position_tone4","1F9D8-1F3FF":"person_in_lotus_position_tone5","1F9D9":"mage","1F9D9-1F3FB":"mage_tone1","1F9D9-1F3FC":"mage_tone2","1F9D9-1F3FD":"mage_tone3","1F9D9-1F3FE":"mage_tone4","1F9D9-1F3FF":"mage_tone5","1F9DA":"fairy","1F9DA-1F3FB":"fairy_tone1","1F9DA-1F3FC":"fairy_tone2","1F9DA-1F3FD":"fairy_tone3","1F9DA-1F3FE":"fairy_tone4","1F9DA-1F3FF":"fairy_tone5","1F9DB":"vampire","1F9DB-1F3FB":"vampire_tone1","1F9DB-1F3FC":"vampire_tone2","1F9DB-1F3FD":"vampire_tone3","1F9DB-1F3FE":"vampire_tone4","1F9DB-1F3FF":"vampire_tone5","1F9DC":"merperson","1F9DC-1F3FB":"merperson_tone1","1F9DC-1F3FC":"merperson_tone2","1F9DC-1F3FD":"merperson_tone3","1F9DC-1F3FE":"merperson_tone4","1F9DC-1F3FF":"merperson_tone5","1F9DD":"elf","1F9DD-1F3FB":"elf_tone1","1F9DD-1F3FC":"elf_tone2","1F9DD-1F3FD":"elf_tone3","1F9DD-1F3FE":"elf_tone4","1F9DD-1F3FF":"elf_tone5","1F9DE":"genie","1F9DF":"zombie","1F9E0":"brain","1F9E1":"orange_heart","1F9E2":"billed_cap","1F9E3":"scarf","1F9E4":"gloves","1F9E5":"coat","1F9E6":"socks","1F9E7":"red_envelope","1F9E8":"firecracker","1F9E9":["jigsaw","puzzle_piece"],"1F9EA":"test_tube","1F9EB":"petri_dish","1F9EC":["dna","double_helix"],"1F9ED":"compass","1F9EE":"abacus","1F9EF":"fire_extinguisher","1F9F0":"toolbox","1F9F1":"bricks","1F9F2":"magnet","1F9F3":"luggage","1F9F4":"lotion_bottle","1F9F5":"thread","1F9F6":"yarn","1F9F7":"safety_pin","1F9F8":"teddy_bear","1F9F9":"broom","1F9FA":"basket","1F9FB":["roll_of_paper","toilet_paper"],"1F9FC":"soap","1F9FD":"sponge","1F9FE":"receipt","1F9FF":"nazar_amulet","1FA70":"ballet_shoes","1FA71":"one_piece_swimsuit","1FA72":"briefs","1FA73":"shorts","1FA74":"thong_sandal","1FA75":"light_blue_heart","1FA76":["gray_heart","grey_heart"],"1FA77":"pink_heart","1FA78":"drop_of_blood","1FA79":["adhesive_bandage","bandaid"],"1FA7A":"stethoscope","1FA7B":["x-ray","xray"],"1FA7C":"crutch","1FA80":"yo_yo","1FA81":"kite","1FA82":"parachute","1FA83":"boomerang","1FA84":"magic_wand","1FA85":"pinata","1FA86":"nesting_dolls","1FA87":"maracas","1FA88":"flute","1FA90":["ringed_planet","saturn"],"1FA91":"chair","1FA92":"razor","1FA93":"axe","1FA94":"diya_lamp","1FA95":"banjo","1FA96":"military_helmet","1FA97":"accordion","1FA98":"long_drum","1FA99":"coin","1FA9A":"carpentry_saw","1FA9B":"screwdriver","1FA9C":"ladder","1FA9D":"hook","1FA9E":"mirror","1FA9F":"window","1FAA0":"plunger","1FAA1":"sewing_needle","1FAA2":"knot","1FAA3":"bucket","1FAA4":"mouse_trap","1FAA5":"toothbrush","1FAA6":"headstone","1FAA7":"placard","1FAA8":"rock","1FAA9":["disco","disco_ball","mirror_ball"],"1FAAA":"id_card","1FAAB":"low_battery","1FAAC":"hamsa","1FAAD":"folding_fan","1FAAE":"hair_pick","1FAAF":"khanda","1FAB0":"fly","1FAB1":"worm","1FAB2":"beetle","1FAB3":"cockroach","1FAB4":"potted_plant","1FAB5":"wood","1FAB6":"feather","1FAB7":"lotus","1FAB8":"coral","1FAB9":["empty_nest","nest"],"1FABA":"nest_with_eggs","1FABB":"hyacinth","1FABC":"jellyfish","1FABD":"wing","1FABF":"goose","1FAC0":"anatomical_heart","1FAC1":"lungs","1FAC2":"people_hugging","1FAC3":"pregnant_man","1FAC3-1F3FB":"pregnant_man_tone1","1FAC3-1F3FC":"pregnant_man_tone2","1FAC3-1F3FD":"pregnant_man_tone3","1FAC3-1F3FE":"pregnant_man_tone4","1FAC3-1F3FF":"pregnant_man_tone5","1FAC4":"pregnant_person","1FAC4-1F3FB":"pregnant_person_tone1","1FAC4-1F3FC":"pregnant_person_tone2","1FAC4-1F3FD":"pregnant_person_tone3","1FAC4-1F3FE":"pregnant_person_tone4","1FAC4-1F3FF":"pregnant_person_tone5","1FAC5":["person_with_crown","royalty"],"1FAC5-1F3FB":["person_with_crown_tone1","royalty_tone1"],"1FAC5-1F3FC":["person_with_crown_tone2","royalty_tone2"],"1FAC5-1F3FD":["person_with_crown_tone3","royalty_tone3"],"1FAC5-1F3FE":["person_with_crown_tone4","royalty_tone4"],"1FAC5-1F3FF":["person_with_crown_tone5","royalty_tone5"],"1FACE":"moose","1FACF":"donkey","1FAD0":"blueberries","1FAD1":"bell_pepper","1FAD2":"olive","1FAD3":"flatbread","1FAD4":"tamale","1FAD5":"fondue","1FAD6":"teapot","1FAD7":["pour","pouring_liquid"],"1FAD8":"beans","1FAD9":"jar","1FADA":"ginger","1FADB":"pea","1FAE0":["melt","melting_face"],"1FAE1":["salute","saluting_face"],"1FAE2":["face_with_open_eyes_hand_over_mouth","gasp"],"1FAE3":["face_with_peeking_eye","peek"],"1FAE4":"face_with_diagonal_mouth","1FAE5":"dotted_line_face","1FAE6":"biting_lip","1FAE7":"bubbles","1FAE8":["shaking","shaking_face"],"1FAF0":"hand_with_index_finger_and_thumb_crossed","1FAF0-1F3FB":"hand_with_index_finger_and_thumb_crossed_tone1","1FAF0-1F3FC":"hand_with_index_finger_and_thumb_crossed_tone2","1FAF0-1F3FD":"hand_with_index_finger_and_thumb_crossed_tone3","1FAF0-1F3FE":"hand_with_index_finger_and_thumb_crossed_tone4","1FAF0-1F3FF":"hand_with_index_finger_and_thumb_crossed_tone5","1FAF1":"rightwards_hand","1FAF1-1F3FB":"rightwards_hand_tone1","1FAF1-1F3FC":"rightwards_hand_tone2","1FAF1-1F3FD":"rightwards_hand_tone3","1FAF1-1F3FE":"rightwards_hand_tone4","1FAF1-1F3FF":"rightwards_hand_tone5","1FAF2":"leftwards_hand","1FAF2-1F3FB":"leftwards_hand_tone1","1FAF2-1F3FC":"leftwards_hand_tone2","1FAF2-1F3FD":"leftwards_hand_tone3","1FAF2-1F3FE":"leftwards_hand_tone4","1FAF2-1F3FF":"leftwards_hand_tone5","1FAF3":"palm_down","1FAF3-1F3FB":"palm_down_tone1","1FAF3-1F3FC":"palm_down_tone2","1FAF3-1F3FD":"palm_down_tone3","1FAF3-1F3FE":"palm_down_tone4","1FAF3-1F3FF":"palm_down_tone5","1FAF4":"palm_up","1FAF4-1F3FB":"palm_up_tone1","1FAF4-1F3FC":"palm_up_tone2","1FAF4-1F3FD":"palm_up_tone3","1FAF4-1F3FE":"palm_up_tone4","1FAF4-1F3FF":"palm_up_tone5","1FAF5":"point_forward","1FAF5-1F3FB":"point_forward_tone1","1FAF5-1F3FC":"point_forward_tone2","1FAF5-1F3FD":"point_forward_tone3","1FAF5-1F3FE":"point_forward_tone4","1FAF5-1F3FF":"point_forward_tone5","1FAF6":"heart_hands","1FAF6-1F3FB":"heart_hands_tone1","1FAF6-1F3FC":"heart_hands_tone2","1FAF6-1F3FD":"heart_hands_tone3","1FAF6-1F3FE":"heart_hands_tone4","1FAF6-1F3FF":"heart_hands_tone5","1FAF7":"leftwards_pushing_hand","1FAF7-1F3FB":"leftwards_pushing_hand_tone1","1FAF7-1F3FC":"leftwards_pushing_hand_tone2","1FAF7-1F3FD":"leftwards_pushing_hand_tone3","1FAF7-1F3FE":"leftwards_pushing_hand_tone4","1FAF7-1F3FF":"leftwards_pushing_hand_tone5","1FAF8":"rightwards_pushing_hand","1FAF8-1F3FB":"rightwards_pushing_hand_tone1","1FAF8-1F3FC":"rightwards_pushing_hand_tone2","1FAF8-1F3FD":"rightwards_pushing_hand_tone3","1FAF8-1F3FE":"rightwards_pushing_hand_tone4","1FAF8-1F3FF":"rightwards_pushing_hand_tone5","0023-FE0F-20E3":["hash","number_sign"],"002A-FE0F-20E3":"asterisk","0030-FE0F-20E3":"zero","0031-FE0F-20E3":"one","0032-FE0F-20E3":"two","0033-FE0F-20E3":"three","0034-FE0F-20E3":"four","0035-FE0F-20E3":"five","0036-FE0F-20E3":"six","0037-FE0F-20E3":"seven","0038-FE0F-20E3":"eight","0039-FE0F-20E3":"nine","1F1E6-1F1E8":["ascension_island","flag_ac"],"1F1E6-1F1E9":["andorra","flag_ad"],"1F1E6-1F1EA":["flag_ae","united_arab_emirates"],"1F1E6-1F1EB":["afghanistan","flag_af"],"1F1E6-1F1EC":["antigua_barbuda","flag_ag"],"1F1E6-1F1EE":["anguilla","flag_ai"],"1F1E6-1F1F1":["albania","flag_al"],"1F1E6-1F1F2":["armenia","flag_am"],"1F1E6-1F1F4":["angola","flag_ao"],"1F1E6-1F1F6":["antarctica","flag_aq"],"1F1E6-1F1F7":["argentina","flag_ar"],"1F1E6-1F1F8":["american_samoa","flag_as"],"1F1E6-1F1F9":["austria","flag_at"],"1F1E6-1F1FA":["australia","flag_au"],"1F1E6-1F1FC":["aruba","flag_aw"],"1F1E6-1F1FD":["aland_islands","flag_ax"],"1F1E6-1F1FF":["azerbaijan","flag_az"],"1F1E7-1F1E6":["bosnia_herzegovina","flag_ba"],"1F1E7-1F1E7":["barbados","flag_bb"],"1F1E7-1F1E9":["bangladesh","flag_bd"],"1F1E7-1F1EA":["belgium","flag_be"],"1F1E7-1F1EB":["burkina_faso","flag_bf"],"1F1E7-1F1EC":["bulgaria","flag_bg"],"1F1E7-1F1ED":["bahrain","flag_bh"],"1F1E7-1F1EE":["burundi","flag_bi"],"1F1E7-1F1EF":["benin","flag_bj"],"1F1E7-1F1F1":["flag_bl","st_barthelemy"],"1F1E7-1F1F2":["bermuda","flag_bm"],"1F1E7-1F1F3":["brunei","flag_bn"],"1F1E7-1F1F4":["bolivia","flag_bo"],"1F1E7-1F1F6":["caribbean_netherlands","flag_bq"],"1F1E7-1F1F7":["brazil","flag_br"],"1F1E7-1F1F8":["bahamas","flag_bs"],"1F1E7-1F1F9":["bhutan","flag_bt"],"1F1E7-1F1FB":["bouvet_island","flag_bv"],"1F1E7-1F1FC":["botswana","flag_bw"],"1F1E7-1F1FE":["belarus","flag_by"],"1F1E7-1F1FF":["belize","flag_bz"],"1F1E8-1F1E6":["canada","flag_ca"],"1F1E8-1F1E8":["cocos_islands","flag_cc"],"1F1E8-1F1E9":["congo_kinshasa","flag_cd"],"1F1E8-1F1EB":["central_african_republic","flag_cf"],"1F1E8-1F1EC":["congo_brazzaville","flag_cg"],"1F1E8-1F1ED":["flag_ch","switzerland"],"1F1E8-1F1EE":["cote_divoire","flag_ci"],"1F1E8-1F1F0":["cook_islands","flag_ck"],"1F1E8-1F1F1":["chile","flag_cl"],"1F1E8-1F1F2":["cameroon","flag_cm"],"1F1E8-1F1F3":["china","flag_cn"],"1F1E8-1F1F4":["colombia","flag_co"],"1F1E8-1F1F5":["clipperton_island","flag_cp"],"1F1E8-1F1F7":["costa_rica","flag_cr"],"1F1E8-1F1FA":["cuba","flag_cu"],"1F1E8-1F1FB":["cape_verde","flag_cv"],"1F1E8-1F1FC":["curacao","flag_cw"],"1F1E8-1F1FD":["christmas_island","flag_cx"],"1F1E8-1F1FE":["cyprus","flag_cy"],"1F1E8-1F1FF":["czech_republic","czechia","flag_cz"],"1F1E9-1F1EA":["flag_de","germany"],"1F1E9-1F1EC":["diego_garcia","flag_dg"],"1F1E9-1F1EF":["djibouti","flag_dj"],"1F1E9-1F1F0":["denmark","flag_dk"],"1F1E9-1F1F2":["dominica","flag_dm"],"1F1E9-1F1F4":["dominican_republic","flag_do"],"1F1E9-1F1FF":["algeria","flag_dz"],"1F1EA-1F1E6":["ceuta_melilla","flag_ea"],"1F1EA-1F1E8":["ecuador","flag_ec"],"1F1EA-1F1EA":["estonia","flag_ee"],"1F1EA-1F1EC":["egypt","flag_eg"],"1F1EA-1F1ED":["flag_eh","western_sahara"],"1F1EA-1F1F7":["eritrea","flag_er"],"1F1EA-1F1F8":["flag_es","spain"],"1F1EA-1F1F9":["ethiopia","flag_et"],"1F1EA-1F1FA":["european_union","flag_eu"],"1F1EB-1F1EE":["finland","flag_fi"],"1F1EB-1F1EF":["fiji","flag_fj"],"1F1EB-1F1F0":["falkland_islands","flag_fk"],"1F1EB-1F1F2":["flag_fm","micronesia"],"1F1EB-1F1F4":["faroe_islands","flag_fo"],"1F1EB-1F1F7":["flag_fr","france"],"1F1EC-1F1E6":["flag_ga","gabon"],"1F1EC-1F1E7":["flag_gb","uk","united_kingdom"],"1F1EC-1F1E9":["flag_gd","grenada"],"1F1EC-1F1EA":["flag_ge","georgia"],"1F1EC-1F1EB":["flag_gf","french_guiana"],"1F1EC-1F1EC":["flag_gg","guernsey"],"1F1EC-1F1ED":["flag_gh","ghana"],"1F1EC-1F1EE":["flag_gi","gibraltar"],"1F1EC-1F1F1":["flag_gl","greenland"],"1F1EC-1F1F2":["flag_gm","gambia"],"1F1EC-1F1F3":["flag_gn","guinea"],"1F1EC-1F1F5":["flag_gp","guadeloupe"],"1F1EC-1F1F6":["equatorial_guinea","flag_gq"],"1F1EC-1F1F7":["flag_gr","greece"],"1F1EC-1F1F8":["flag_gs","south_georgia_south_sandwich_islands"],"1F1EC-1F1F9":["flag_gt","guatemala"],"1F1EC-1F1FA":["flag_gu","guam"],"1F1EC-1F1FC":["flag_gw","guinea_bissau"],"1F1EC-1F1FE":["flag_gy","guyana"],"1F1ED-1F1F0":["flag_hk","hong_kong"],"1F1ED-1F1F2":["flag_hm","heard_mcdonald_islands"],"1F1ED-1F1F3":["flag_hn","honduras"],"1F1ED-1F1F7":["croatia","flag_hr"],"1F1ED-1F1F9":["flag_ht","haiti"],"1F1ED-1F1FA":["flag_hu","hungary"],"1F1EE-1F1E8":["canary_islands","flag_ic"],"1F1EE-1F1E9":["flag_id","indonesia"],"1F1EE-1F1EA":["flag_ie","ireland"],"1F1EE-1F1F1":["flag_il","israel"],"1F1EE-1F1F2":["flag_im","isle_of_man"],"1F1EE-1F1F3":["flag_in","india"],"1F1EE-1F1F4":["british_indian_ocean_territory","flag_io"],"1F1EE-1F1F6":["flag_iq","iraq"],"1F1EE-1F1F7":["flag_ir","iran"],"1F1EE-1F1F8":["flag_is","iceland"],"1F1EE-1F1F9":["flag_it","italy"],"1F1EF-1F1EA":["flag_je","jersey"],"1F1EF-1F1F2":["flag_jm","jamaica"],"1F1EF-1F1F4":["flag_jo","jordan"],"1F1EF-1F1F5":["flag_jp","japan"],"1F1F0-1F1EA":["flag_ke","kenya"],"1F1F0-1F1EC":["flag_kg","kyrgyzstan"],"1F1F0-1F1ED":["cambodia","flag_kh"],"1F1F0-1F1EE":["flag_ki","kiribati"],"1F1F0-1F1F2":["comoros","flag_km"],"1F1F0-1F1F3":["flag_kn","st_kitts_nevis"],"1F1F0-1F1F5":["flag_kp","north_korea"],"1F1F0-1F1F7":["flag_kr","south_korea"],"1F1F0-1F1FC":["flag_kw","kuwait"],"1F1F0-1F1FE":["cayman_islands","flag_ky"],"1F1F0-1F1FF":["flag_kz","kazakhstan"],"1F1F1-1F1E6":["flag_la","laos"],"1F1F1-1F1E7":["flag_lb","lebanon"],"1F1F1-1F1E8":["flag_lc","st_lucia"],"1F1F1-1F1EE":["flag_li","liechtenstein"],"1F1F1-1F1F0":["flag_lk","sri_lanka"],"1F1F1-1F1F7":["flag_lr","liberia"],"1F1F1-1F1F8":["flag_ls","lesotho"],"1F1F1-1F1F9":["flag_lt","lithuania"],"1F1F1-1F1FA":["flag_lu","luxembourg"],"1F1F1-1F1FB":["flag_lv","latvia"],"1F1F1-1F1FE":["flag_ly","libya"],"1F1F2-1F1E6":["flag_ma","morocco"],"1F1F2-1F1E8":["flag_mc","monaco"],"1F1F2-1F1E9":["flag_md","moldova"],"1F1F2-1F1EA":["flag_me","montenegro"],"1F1F2-1F1EB":["flag_mf","st_martin"],"1F1F2-1F1EC":["flag_mg","madagascar"],"1F1F2-1F1ED":["flag_mh","marshall_islands"],"1F1F2-1F1F0":["flag_mk","macedonia"],"1F1F2-1F1F1":["flag_ml","mali"],"1F1F2-1F1F2":["burma","flag_mm","myanmar"],"1F1F2-1F1F3":["flag_mn","mongolia"],"1F1F2-1F1F4":["flag_mo","macao","macau"],"1F1F2-1F1F5":["flag_mp","northern_mariana_islands"],"1F1F2-1F1F6":["flag_mq","martinique"],"1F1F2-1F1F7":["flag_mr","mauritania"],"1F1F2-1F1F8":["flag_ms","montserrat"],"1F1F2-1F1F9":["flag_mt","malta"],"1F1F2-1F1FA":["flag_mu","mauritius"],"1F1F2-1F1FB":["flag_mv","maldives"],"1F1F2-1F1FC":["flag_mw","malawi"],"1F1F2-1F1FD":["flag_mx","mexico"],"1F1F2-1F1FE":["flag_my","malaysia"],"1F1F2-1F1FF":["flag_mz","mozambique"],"1F1F3-1F1E6":["flag_na","namibia"],"1F1F3-1F1E8":["flag_nc","new_caledonia"],"1F1F3-1F1EA":["flag_ne","niger"],"1F1F3-1F1EB":["flag_nf","norfolk_island"],"1F1F3-1F1EC":["flag_ng","nigeria"],"1F1F3-1F1EE":["flag_ni","nicaragua"],"1F1F3-1F1F1":["flag_nl","netherlands"],"1F1F3-1F1F4":["flag_no","norway"],"1F1F3-1F1F5":["flag_np","nepal"],"1F1F3-1F1F7":["flag_nr","nauru"],"1F1F3-1F1FA":["flag_nu","niue"],"1F1F3-1F1FF":["flag_nz","new_zealand"],"1F1F4-1F1F2":["flag_om","oman"],"1F1F5-1F1E6":["flag_pa","panama"],"1F1F5-1F1EA":["flag_pe","peru"],"1F1F5-1F1EB":["flag_pf","french_polynesia"],"1F1F5-1F1EC":["flag_pg","papua_new_guinea"],"1F1F5-1F1ED":["flag_ph","philippines"],"1F1F5-1F1F0":["flag_pk","pakistan"],"1F1F5-1F1F1":["flag_pl","poland"],"1F1F5-1F1F2":["flag_pm","st_pierre_miquelon"],"1F1F5-1F1F3":["flag_pn","pitcairn_islands"],"1F1F5-1F1F7":["flag_pr","puerto_rico"],"1F1F5-1F1F8":["flag_ps","palestinian_territories"],"1F1F5-1F1F9":["flag_pt","portugal"],"1F1F5-1F1FC":["flag_pw","palau"],"1F1F5-1F1FE":["flag_py","paraguay"],"1F1F6-1F1E6":["flag_qa","qatar"],"1F1F7-1F1EA":["flag_re","reunion"],"1F1F7-1F1F4":["flag_ro","romania"],"1F1F7-1F1F8":["flag_rs","serbia"],"1F1F7-1F1FA":["flag_ru","russia"],"1F1F7-1F1FC":["flag_rw","rwanda"],"1F1F8-1F1E6":["flag_sa","saudi_arabia"],"1F1F8-1F1E7":["flag_sb","solomon_islands"],"1F1F8-1F1E8":["flag_sc","seychelles"],"1F1F8-1F1E9":["flag_sd","sudan"],"1F1F8-1F1EA":["flag_se","sweden"],"1F1F8-1F1EC":["flag_sg","singapore"],"1F1F8-1F1ED":["flag_sh","st_helena"],"1F1F8-1F1EE":["flag_si","slovenia"],"1F1F8-1F1EF":["flag_sj","svalbard_jan_mayen"],"1F1F8-1F1F0":["flag_sk","slovakia"],"1F1F8-1F1F1":["flag_sl","sierra_leone"],"1F1F8-1F1F2":["flag_sm","san_marino"],"1F1F8-1F1F3":["flag_sn","senegal"],"1F1F8-1F1F4":["flag_so","somalia"],"1F1F8-1F1F7":["flag_sr","suriname"],"1F1F8-1F1F8":["flag_ss","south_sudan"],"1F1F8-1F1F9":["flag_st","sao_tome_principe"],"1F1F8-1F1FB":["el_salvador","flag_sv"],"1F1F8-1F1FD":["flag_sx","sint_maarten"],"1F1F8-1F1FE":["flag_sy","syria"],"1F1F8-1F1FF":["eswatini","flag_sz","swaziland"],"1F1F9-1F1E6":["flag_ta","tristan_da_cunha"],"1F1F9-1F1E8":["flag_tc","turks_caicos_islands"],"1F1F9-1F1E9":["chad","flag_td"],"1F1F9-1F1EB":["flag_tf","french_southern_territories"],"1F1F9-1F1EC":["flag_tg","togo"],"1F1F9-1F1ED":["flag_th","thailand"],"1F1F9-1F1EF":["flag_tj","tajikistan"],"1F1F9-1F1F0":["flag_tk","tokelau"],"1F1F9-1F1F1":["flag_tl","timor_leste"],"1F1F9-1F1F2":["flag_tm","turkmenistan"],"1F1F9-1F1F3":["flag_tn","tunisia"],"1F1F9-1F1F4":["flag_to","tonga"],"1F1F9-1F1F7":["flag_tr","turkey_tr"],"1F1F9-1F1F9":["flag_tt","trinidad_tobago"],"1F1F9-1F1FB":["flag_tv","tuvalu"],"1F1F9-1F1FC":["flag_tw","taiwan"],"1F1F9-1F1FF":["flag_tz","tanzania"],"1F1FA-1F1E6":["flag_ua","ukraine"],"1F1FA-1F1EC":["flag_ug","uganda"],"1F1FA-1F1F2":["flag_um","us_outlying_islands"],"1F1FA-1F1F3":["flag_un","un","united_nations"],"1F1FA-1F1F8":["flag_us","united_states","usa"],"1F1FA-1F1FE":["flag_uy","uruguay"],"1F1FA-1F1FF":["flag_uz","uzbekistan"],"1F1FB-1F1E6":["flag_va","vatican_city"],"1F1FB-1F1E8":["flag_vc","st_vincent_grenadines"],"1F1FB-1F1EA":["flag_ve","venezuela"],"1F1FB-1F1EC":["british_virgin_islands","flag_vg"],"1F1FB-1F1EE":["flag_vi","us_virgin_islands"],"1F1FB-1F1F3":["flag_vn","vietnam"],"1F1FB-1F1FA":["flag_vu","vanuatu"],"1F1FC-1F1EB":["flag_wf","wallis_futuna"],"1F1FC-1F1F8":["flag_ws","samoa"],"1F1FD-1F1F0":["flag_xk","kosovo"],"1F1FE-1F1EA":["flag_ye","yemen"],"1F1FE-1F1F9":["flag_yt","mayotte"],"1F1FF-1F1E6":["flag_za","south_africa"],"1F1FF-1F1F2":["flag_zm","zambia"],"1F1FF-1F1FC":["flag_zw","zimbabwe"],"1F3F4-E0067-E0062-E0065-E006E-E0067-E007F":["england","flag_gbeng"],"1F3F4-E0067-E0062-E0073-E0063-E0074-E007F":["flag_gbsct","scotland"],"1F3F4-E0067-E0062-E0077-E006C-E0073-E007F":["flag_gbwls","wales"],"1F468-200D-2764-FE0F-200D-1F468":"couple_with_heart_mm","1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FB":"couple_with_heart_mm_tone1","1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FC":"couple_with_heart_mm_tone1-2","1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FD":"couple_with_heart_mm_tone1-3","1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FE":"couple_with_heart_mm_tone1-4","1F468-1F3FB-200D-2764-FE0F-200D-1F468-1F3FF":"couple_with_heart_mm_tone1-5","1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FB":"couple_with_heart_mm_tone2-1","1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FC":"couple_with_heart_mm_tone2","1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FD":"couple_with_heart_mm_tone2-3","1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FE":"couple_with_heart_mm_tone2-4","1F468-1F3FC-200D-2764-FE0F-200D-1F468-1F3FF":"couple_with_heart_mm_tone2-5","1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FB":"couple_with_heart_mm_tone3-1","1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FC":"couple_with_heart_mm_tone3-2","1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FD":"couple_with_heart_mm_tone3","1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FE":"couple_with_heart_mm_tone3-4","1F468-1F3FD-200D-2764-FE0F-200D-1F468-1F3FF":"couple_with_heart_mm_tone3-5","1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FB":"couple_with_heart_mm_tone4-1","1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FC":"couple_with_heart_mm_tone4-2","1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FD":"couple_with_heart_mm_tone4-3","1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FE":"couple_with_heart_mm_tone4","1F468-1F3FE-200D-2764-FE0F-200D-1F468-1F3FF":"couple_with_heart_mm_tone4-5","1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FB":"couple_with_heart_mm_tone5-1","1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FC":"couple_with_heart_mm_tone5-2","1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FD":"couple_with_heart_mm_tone5-3","1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FE":"couple_with_heart_mm_tone5-4","1F468-1F3FF-200D-2764-FE0F-200D-1F468-1F3FF":"couple_with_heart_mm_tone5","1F468-200D-2764-FE0F-200D-1F48B-200D-1F468":"kiss_mm","1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":"kiss_mm_tone1","1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":"kiss_mm_tone1-2","1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":"kiss_mm_tone1-3","1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":"kiss_mm_tone1-4","1F468-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":"kiss_mm_tone1-5","1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":"kiss_mm_tone2-1","1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":"kiss_mm_tone2","1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":"kiss_mm_tone2-3","1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":"kiss_mm_tone2-4","1F468-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":"kiss_mm_tone2-5","1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":"kiss_mm_tone3-1","1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":"kiss_mm_tone3-2","1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":"kiss_mm_tone3","1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":"kiss_mm_tone3-4","1F468-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":"kiss_mm_tone3-5","1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":"kiss_mm_tone4-1","1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":"kiss_mm_tone4-2","1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":"kiss_mm_tone4-3","1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":"kiss_mm_tone4","1F468-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":"kiss_mm_tone4-5","1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":"kiss_mm_tone5-1","1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":"kiss_mm_tone5-2","1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":"kiss_mm_tone5-3","1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":"kiss_mm_tone5-4","1F468-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":"kiss_mm_tone5","1F468-200D-1F466":"family_mb","1F468-200D-1F466-200D-1F466":"family_mbb","1F468-200D-1F467":"family_mg","1F468-200D-1F467-200D-1F466":"family_mgb","1F468-200D-1F467-200D-1F467":"family_mgg","1F468-200D-1F468-200D-1F466":"family_mmb","1F468-200D-1F468-200D-1F466-200D-1F466":"family_mmbb","1F468-200D-1F468-200D-1F467":"family_mmg","1F468-200D-1F468-200D-1F467-200D-1F466":"family_mmgb","1F468-200D-1F468-200D-1F467-200D-1F467":"family_mmgg","1F468-200D-1F469-200D-1F466":"family_mwb","1F468-200D-1F469-200D-1F466-200D-1F466":"family_mwbb","1F468-200D-1F469-200D-1F467":"family_mwg","1F468-200D-1F469-200D-1F467-200D-1F466":"family_mwgb","1F468-200D-1F469-200D-1F467-200D-1F467":"family_mwgg","1F469-200D-2764-FE0F-200D-1F468":["couple_with_heart_mw","couple_with_heart_wm"],"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_mw_tone1","couple_with_heart_wm_tone1"],"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_mw_tone1-2","couple_with_heart_wm_tone1-2"],"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_mw_tone1-3","couple_with_heart_wm_tone1-3"],"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_mw_tone1-4","couple_with_heart_wm_tone1-4"],"1F469-1F3FB-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_mw_tone1-5","couple_with_heart_wm_tone1-5"],"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_mw_tone2-1","couple_with_heart_wm_tone2-1"],"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_mw_tone2","couple_with_heart_wm_tone2"],"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_mw_tone2-3","couple_with_heart_wm_tone2-3"],"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_mw_tone2-4","couple_with_heart_wm_tone2-4"],"1F469-1F3FC-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_mw_tone2-5","couple_with_heart_wm_tone2-5"],"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_mw_tone3-1","couple_with_heart_wm_tone3-1"],"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_mw_tone3-2","couple_with_heart_wm_tone3-2"],"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_mw_tone3","couple_with_heart_wm_tone3"],"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_mw_tone3-4","couple_with_heart_wm_tone3-4"],"1F469-1F3FD-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_mw_tone3-5","couple_with_heart_wm_tone3-5"],"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_mw_tone4-1","couple_with_heart_wm_tone4-1"],"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_mw_tone4-2","couple_with_heart_wm_tone4-2"],"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_mw_tone4-3","couple_with_heart_wm_tone4-3"],"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_mw_tone4","couple_with_heart_wm_tone4"],"1F469-1F3FE-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_mw_tone4-5","couple_with_heart_wm_tone4-5"],"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FB":["couple_with_heart_mw_tone5-1","couple_with_heart_wm_tone5-1"],"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FC":["couple_with_heart_mw_tone5-2","couple_with_heart_wm_tone5-2"],"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FD":["couple_with_heart_mw_tone5-3","couple_with_heart_wm_tone5-3"],"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FE":["couple_with_heart_mw_tone5-4","couple_with_heart_wm_tone5-4"],"1F469-1F3FF-200D-2764-FE0F-200D-1F468-1F3FF":["couple_with_heart_mw_tone5","couple_with_heart_wm_tone5"],"1F469-200D-2764-FE0F-200D-1F469":"couple_with_heart_ww","1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FB":"couple_with_heart_ww_tone1","1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FC":"couple_with_heart_ww_tone1-2","1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FD":"couple_with_heart_ww_tone1-3","1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FE":"couple_with_heart_ww_tone1-4","1F469-1F3FB-200D-2764-FE0F-200D-1F469-1F3FF":"couple_with_heart_ww_tone1-5","1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FB":"couple_with_heart_ww_tone2-1","1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FC":"couple_with_heart_ww_tone2","1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FD":"couple_with_heart_ww_tone2-3","1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FE":"couple_with_heart_ww_tone2-4","1F469-1F3FC-200D-2764-FE0F-200D-1F469-1F3FF":"couple_with_heart_ww_tone2-5","1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FB":"couple_with_heart_ww_tone3-1","1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FC":"couple_with_heart_ww_tone3-2","1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FD":"couple_with_heart_ww_tone3","1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FE":"couple_with_heart_ww_tone3-4","1F469-1F3FD-200D-2764-FE0F-200D-1F469-1F3FF":"couple_with_heart_ww_tone3-5","1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FB":"couple_with_heart_ww_tone4-1","1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FC":"couple_with_heart_ww_tone4-2","1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FD":"couple_with_heart_ww_tone4-3","1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FE":"couple_with_heart_ww_tone4","1F469-1F3FE-200D-2764-FE0F-200D-1F469-1F3FF":"couple_with_heart_ww_tone4-5","1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FB":"couple_with_heart_ww_tone5-1","1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FC":"couple_with_heart_ww_tone5-2","1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FD":"couple_with_heart_ww_tone5-3","1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FE":"couple_with_heart_ww_tone5-4","1F469-1F3FF-200D-2764-FE0F-200D-1F469-1F3FF":"couple_with_heart_ww_tone5","1F469-200D-2764-FE0F-200D-1F48B-200D-1F468":["kiss_mw","kiss_wm"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_mw_tone1","kiss_wm_tone1"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_mw_tone1-2","kiss_wm_tone1-2"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_mw_tone1-3","kiss_wm_tone1-3"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_mw_tone1-4","kiss_wm_tone1-4"],"1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_mw_tone1-5","kiss_wm_tone1-5"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_mw_tone2-1","kiss_wm_tone2-1"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_mw_tone2","kiss_wm_tone2"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_mw_tone2-3","kiss_wm_tone2-3"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_mw_tone2-4","kiss_wm_tone2-4"],"1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_mw_tone2-5","kiss_wm_tone2-5"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_mw_tone3-1","kiss_wm_tone3-1"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_mw_tone3-2","kiss_wm_tone3-2"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_mw_tone3","kiss_wm_tone3"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_mw_tone3-4","kiss_wm_tone3-4"],"1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_mw_tone3-5","kiss_wm_tone3-5"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_mw_tone4-1","kiss_wm_tone4-1"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_mw_tone4-2","kiss_wm_tone4-2"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_mw_tone4-3","kiss_wm_tone4-3"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_mw_tone4","kiss_wm_tone4"],"1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_mw_tone4-5","kiss_wm_tone4-5"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FB":["kiss_mw_tone5-1","kiss_wm_tone5-1"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FC":["kiss_mw_tone5-2","kiss_wm_tone5-2"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FD":["kiss_mw_tone5-3","kiss_wm_tone5-3"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FE":["kiss_mw_tone5-4","kiss_wm_tone5-4"],"1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F468-1F3FF":["kiss_mw_tone5","kiss_wm_tone5"],"1F469-200D-2764-FE0F-200D-1F48B-200D-1F469":"kiss_ww","1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB":"kiss_ww_tone1","1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC":"kiss_ww_tone1-2","1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD":"kiss_ww_tone1-3","1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE":"kiss_ww_tone1-4","1F469-1F3FB-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF":"kiss_ww_tone1-5","1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB":"kiss_ww_tone2-1","1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC":"kiss_ww_tone2","1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD":"kiss_ww_tone2-3","1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE":"kiss_ww_tone2-4","1F469-1F3FC-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF":"kiss_ww_tone2-5","1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB":"kiss_ww_tone3-1","1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC":"kiss_ww_tone3-2","1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD":"kiss_ww_tone3","1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE":"kiss_ww_tone3-4","1F469-1F3FD-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF":"kiss_ww_tone3-5","1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB":"kiss_ww_tone4-1","1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC":"kiss_ww_tone4-2","1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD":"kiss_ww_tone4-3","1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE":"kiss_ww_tone4","1F469-1F3FE-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF":"kiss_ww_tone4-5","1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FB":"kiss_ww_tone5-1","1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FC":"kiss_ww_tone5-2","1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FD":"kiss_ww_tone5-3","1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FE":"kiss_ww_tone5-4","1F469-1F3FF-200D-2764-FE0F-200D-1F48B-200D-1F469-1F3FF":"kiss_ww_tone5","1F469-200D-1F466":"family_wb","1F469-200D-1F466-200D-1F466":"family_wbb","1F469-200D-1F467":"family_wg","1F469-200D-1F467-200D-1F466":"family_wgb","1F469-200D-1F467-200D-1F467":"family_wgg","1F469-200D-1F469-200D-1F466":"family_wwb","1F469-200D-1F469-200D-1F466-200D-1F466":"family_wwbb","1F469-200D-1F469-200D-1F467":"family_wwg","1F469-200D-1F469-200D-1F467-200D-1F466":"family_wwgb","1F469-200D-1F469-200D-1F467-200D-1F467":"family_wwgg","1F9D1-200D-1F91D-200D-1F9D1":"people_holding_hands","1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FB":"people_holding_hands_tone1","1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FC":"people_holding_hands_tone1-2","1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FD":"people_holding_hands_tone1-3","1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FE":"people_holding_hands_tone1-4","1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FF":"people_holding_hands_tone1-5","1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FB":"people_holding_hands_tone2-1","1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FC":"people_holding_hands_tone2","1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FD":"people_holding_hands_tone2-3","1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FE":"people_holding_hands_tone2-4","1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FF":"people_holding_hands_tone2-5","1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FB":"people_holding_hands_tone3-1","1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FC":"people_holding_hands_tone3-2","1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FD":"people_holding_hands_tone3","1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FE":"people_holding_hands_tone3-4","1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FF":"people_holding_hands_tone3-5","1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FB":"people_holding_hands_tone4-1","1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FC":"people_holding_hands_tone4-2","1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FD":"people_holding_hands_tone4-3","1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FE":"people_holding_hands_tone4","1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FF":"people_holding_hands_tone4-5","1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FB":"people_holding_hands_tone5-1","1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FC":"people_holding_hands_tone5-2","1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FD":"people_holding_hands_tone5-3","1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FE":"people_holding_hands_tone5-4","1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FF":"people_holding_hands_tone5","1F9D1-200D-1F9D1-200D-1F9D2":"family_aac","1F9D1-200D-1F9D1-200D-1F9D2-200D-1F9D2":"family_aacc","1F9D1-200D-1F9D2":"family_ac","1F9D1-200D-1F9D2-200D-1F9D2":"family_acc","1F3C3-200D-27A1-FE0F":"person_running_right","1F3C3-1F3FB-200D-27A1-FE0F":"person_running_right_tone1","1F3C3-1F3FC-200D-27A1-FE0F":"person_running_right_tone2","1F3C3-1F3FD-200D-27A1-FE0F":"person_running_right_tone3","1F3C3-1F3FE-200D-27A1-FE0F":"person_running_right_tone4","1F3C3-1F3FF-200D-27A1-FE0F":"person_running_right_tone5","1F468-200D-2695-FE0F":"man_health_worker","1F468-1F3FB-200D-2695-FE0F":"man_health_worker_tone1","1F468-1F3FC-200D-2695-FE0F":"man_health_worker_tone2","1F468-1F3FD-200D-2695-FE0F":"man_health_worker_tone3","1F468-1F3FE-200D-2695-FE0F":"man_health_worker_tone4","1F468-1F3FF-200D-2695-FE0F":"man_health_worker_tone5","1F468-200D-2696-FE0F":"man_judge","1F468-1F3FB-200D-2696-FE0F":"man_judge_tone1","1F468-1F3FC-200D-2696-FE0F":"man_judge_tone2","1F468-1F3FD-200D-2696-FE0F":"man_judge_tone3","1F468-1F3FE-200D-2696-FE0F":"man_judge_tone4","1F468-1F3FF-200D-2696-FE0F":"man_judge_tone5","1F468-200D-2708-FE0F":"man_pilot","1F468-1F3FB-200D-2708-FE0F":"man_pilot_tone1","1F468-1F3FC-200D-2708-FE0F":"man_pilot_tone2","1F468-1F3FD-200D-2708-FE0F":"man_pilot_tone3","1F468-1F3FE-200D-2708-FE0F":"man_pilot_tone4","1F468-1F3FF-200D-2708-FE0F":"man_pilot_tone5","1F468-200D-1F33E":"man_farmer","1F468-1F3FB-200D-1F33E":"man_farmer_tone1","1F468-1F3FC-200D-1F33E":"man_farmer_tone2","1F468-1F3FD-200D-1F33E":"man_farmer_tone3","1F468-1F3FE-200D-1F33E":"man_farmer_tone4","1F468-1F3FF-200D-1F33E":"man_farmer_tone5","1F468-200D-1F373":"man_cook","1F468-1F3FB-200D-1F373":"man_cook_tone1","1F468-1F3FC-200D-1F373":"man_cook_tone2","1F468-1F3FD-200D-1F373":"man_cook_tone3","1F468-1F3FE-200D-1F373":"man_cook_tone4","1F468-1F3FF-200D-1F373":"man_cook_tone5","1F468-200D-1F37C":"man_feeding_baby","1F468-1F3FB-200D-1F37C":"man_feeding_baby_tone1","1F468-1F3FC-200D-1F37C":"man_feeding_baby_tone2","1F468-1F3FD-200D-1F37C":"man_feeding_baby_tone3","1F468-1F3FE-200D-1F37C":"man_feeding_baby_tone4","1F468-1F3FF-200D-1F37C":"man_feeding_baby_tone5","1F468-200D-1F393":"man_student","1F468-1F3FB-200D-1F393":"man_student_tone1","1F468-1F3FC-200D-1F393":"man_student_tone2","1F468-1F3FD-200D-1F393":"man_student_tone3","1F468-1F3FE-200D-1F393":"man_student_tone4","1F468-1F3FF-200D-1F393":"man_student_tone5","1F468-200D-1F3A4":"man_singer","1F468-1F3FB-200D-1F3A4":"man_singer_tone1","1F468-1F3FC-200D-1F3A4":"man_singer_tone2","1F468-1F3FD-200D-1F3A4":"man_singer_tone3","1F468-1F3FE-200D-1F3A4":"man_singer_tone4","1F468-1F3FF-200D-1F3A4":"man_singer_tone5","1F468-200D-1F3A8":"man_artist","1F468-1F3FB-200D-1F3A8":"man_artist_tone1","1F468-1F3FC-200D-1F3A8":"man_artist_tone2","1F468-1F3FD-200D-1F3A8":"man_artist_tone3","1F468-1F3FE-200D-1F3A8":"man_artist_tone4","1F468-1F3FF-200D-1F3A8":"man_artist_tone5","1F468-200D-1F3EB":"man_teacher","1F468-1F3FB-200D-1F3EB":"man_teacher_tone1","1F468-1F3FC-200D-1F3EB":"man_teacher_tone2","1F468-1F3FD-200D-1F3EB":"man_teacher_tone3","1F468-1F3FE-200D-1F3EB":"man_teacher_tone4","1F468-1F3FF-200D-1F3EB":"man_teacher_tone5","1F468-200D-1F3ED":"man_factory_worker","1F468-1F3FB-200D-1F3ED":"man_factory_worker_tone1","1F468-1F3FC-200D-1F3ED":"man_factory_worker_tone2","1F468-1F3FD-200D-1F3ED":"man_factory_worker_tone3","1F468-1F3FE-200D-1F3ED":"man_factory_worker_tone4","1F468-1F3FF-200D-1F3ED":"man_factory_worker_tone5","1F468-200D-1F4BB":"man_technologist","1F468-1F3FB-200D-1F4BB":"man_technologist_tone1","1F468-1F3FC-200D-1F4BB":"man_technologist_tone2","1F468-1F3FD-200D-1F4BB":"man_technologist_tone3","1F468-1F3FE-200D-1F4BB":"man_technologist_tone4","1F468-1F3FF-200D-1F4BB":"man_technologist_tone5","1F468-200D-1F4BC":"man_office_worker","1F468-1F3FB-200D-1F4BC":"man_office_worker_tone1","1F468-1F3FC-200D-1F4BC":"man_office_worker_tone2","1F468-1F3FD-200D-1F4BC":"man_office_worker_tone3","1F468-1F3FE-200D-1F4BC":"man_office_worker_tone4","1F468-1F3FF-200D-1F4BC":"man_office_worker_tone5","1F468-200D-1F527":"man_mechanic","1F468-1F3FB-200D-1F527":"man_mechanic_tone1","1F468-1F3FC-200D-1F527":"man_mechanic_tone2","1F468-1F3FD-200D-1F527":"man_mechanic_tone3","1F468-1F3FE-200D-1F527":"man_mechanic_tone4","1F468-1F3FF-200D-1F527":"man_mechanic_tone5","1F468-200D-1F52C":"man_scientist","1F468-1F3FB-200D-1F52C":"man_scientist_tone1","1F468-1F3FC-200D-1F52C":"man_scientist_tone2","1F468-1F3FD-200D-1F52C":"man_scientist_tone3","1F468-1F3FE-200D-1F52C":"man_scientist_tone4","1F468-1F3FF-200D-1F52C":"man_scientist_tone5","1F468-200D-1F680":"man_astronaut","1F468-1F3FB-200D-1F680":"man_astronaut_tone1","1F468-1F3FC-200D-1F680":"man_astronaut_tone2","1F468-1F3FD-200D-1F680":"man_astronaut_tone3","1F468-1F3FE-200D-1F680":"man_astronaut_tone4","1F468-1F3FF-200D-1F680":"man_astronaut_tone5","1F468-200D-1F692":"man_firefighter","1F468-1F3FB-200D-1F692":"man_firefighter_tone1","1F468-1F3FC-200D-1F692":"man_firefighter_tone2","1F468-1F3FD-200D-1F692":"man_firefighter_tone3","1F468-1F3FE-200D-1F692":"man_firefighter_tone4","1F468-1F3FF-200D-1F692":"man_firefighter_tone5","1F468-200D-1F9AF":["man_with_probing_cane","man_with_white_cane"],"1F468-1F3FB-200D-1F9AF":["man_with_probing_cane_tone1","man_with_white_cane_tone1"],"1F468-1F3FC-200D-1F9AF":["man_with_probing_cane_tone2","man_with_white_cane_tone2"],"1F468-1F3FD-200D-1F9AF":["man_with_probing_cane_tone3","man_with_white_cane_tone3"],"1F468-1F3FE-200D-1F9AF":["man_with_probing_cane_tone4","man_with_white_cane_tone4"],"1F468-1F3FF-200D-1F9AF":["man_with_probing_cane_tone5","man_with_white_cane_tone5"],"1F468-200D-1F9AF-200D-27A1-FE0F":"man_with_white_cane_right","1F468-1F3FB-200D-1F9AF-200D-27A1-FE0F":"man_with_white_cane_right_tone1","1F468-1F3FC-200D-1F9AF-200D-27A1-FE0F":"man_with_white_cane_right_tone2","1F468-1F3FD-200D-1F9AF-200D-27A1-FE0F":"man_with_white_cane_right_tone3","1F468-1F3FE-200D-1F9AF-200D-27A1-FE0F":"man_with_white_cane_right_tone4","1F468-1F3FF-200D-1F9AF-200D-27A1-FE0F":"man_with_white_cane_right_tone5","1F468-200D-1F9BC":"man_in_motorized_wheelchair","1F468-1F3FB-200D-1F9BC":"man_in_motorized_wheelchair_tone1","1F468-1F3FC-200D-1F9BC":"man_in_motorized_wheelchair_tone2","1F468-1F3FD-200D-1F9BC":"man_in_motorized_wheelchair_tone3","1F468-1F3FE-200D-1F9BC":"man_in_motorized_wheelchair_tone4","1F468-1F3FF-200D-1F9BC":"man_in_motorized_wheelchair_tone5","1F468-200D-1F9BC-200D-27A1-FE0F":"man_in_motorized_wheelchair_right","1F468-1F3FB-200D-1F9BC-200D-27A1-FE0F":"man_in_motorized_wheelchair_right_tone1","1F468-1F3FC-200D-1F9BC-200D-27A1-FE0F":"man_in_motorized_wheelchair_right_tone2","1F468-1F3FD-200D-1F9BC-200D-27A1-FE0F":"man_in_motorized_wheelchair_right_tone3","1F468-1F3FE-200D-1F9BC-200D-27A1-FE0F":"man_in_motorized_wheelchair_right_tone4","1F468-1F3FF-200D-1F9BC-200D-27A1-FE0F":"man_in_motorized_wheelchair_right_tone5","1F468-200D-1F9BD":"man_in_manual_wheelchair","1F468-1F3FB-200D-1F9BD":"man_in_manual_wheelchair_tone1","1F468-1F3FC-200D-1F9BD":"man_in_manual_wheelchair_tone2","1F468-1F3FD-200D-1F9BD":"man_in_manual_wheelchair_tone3","1F468-1F3FE-200D-1F9BD":"man_in_manual_wheelchair_tone4","1F468-1F3FF-200D-1F9BD":"man_in_manual_wheelchair_tone5","1F468-200D-1F9BD-200D-27A1-FE0F":"man_in_manual_wheelchair_right","1F468-1F3FB-200D-1F9BD-200D-27A1-FE0F":"man_in_manual_wheelchair_right_tone1","1F468-1F3FC-200D-1F9BD-200D-27A1-FE0F":"man_in_manual_wheelchair_right_tone2","1F468-1F3FD-200D-1F9BD-200D-27A1-FE0F":"man_in_manual_wheelchair_right_tone3","1F468-1F3FE-200D-1F9BD-200D-27A1-FE0F":"man_in_manual_wheelchair_right_tone4","1F468-1F3FF-200D-1F9BD-200D-27A1-FE0F":"man_in_manual_wheelchair_right_tone5","1F469-200D-2695-FE0F":"woman_health_worker","1F469-1F3FB-200D-2695-FE0F":"woman_health_worker_tone1","1F469-1F3FC-200D-2695-FE0F":"woman_health_worker_tone2","1F469-1F3FD-200D-2695-FE0F":"woman_health_worker_tone3","1F469-1F3FE-200D-2695-FE0F":"woman_health_worker_tone4","1F469-1F3FF-200D-2695-FE0F":"woman_health_worker_tone5","1F469-200D-2696-FE0F":"woman_judge","1F469-1F3FB-200D-2696-FE0F":"woman_judge_tone1","1F469-1F3FC-200D-2696-FE0F":"woman_judge_tone2","1F469-1F3FD-200D-2696-FE0F":"woman_judge_tone3","1F469-1F3FE-200D-2696-FE0F":"woman_judge_tone4","1F469-1F3FF-200D-2696-FE0F":"woman_judge_tone5","1F469-200D-2708-FE0F":"woman_pilot","1F469-1F3FB-200D-2708-FE0F":"woman_pilot_tone1","1F469-1F3FC-200D-2708-FE0F":"woman_pilot_tone2","1F469-1F3FD-200D-2708-FE0F":"woman_pilot_tone3","1F469-1F3FE-200D-2708-FE0F":"woman_pilot_tone4","1F469-1F3FF-200D-2708-FE0F":"woman_pilot_tone5","1F469-200D-1F33E":"woman_farmer","1F469-1F3FB-200D-1F33E":"woman_farmer_tone1","1F469-1F3FC-200D-1F33E":"woman_farmer_tone2","1F469-1F3FD-200D-1F33E":"woman_farmer_tone3","1F469-1F3FE-200D-1F33E":"woman_farmer_tone4","1F469-1F3FF-200D-1F33E":"woman_farmer_tone5","1F469-200D-1F373":"woman_cook","1F469-1F3FB-200D-1F373":"woman_cook_tone1","1F469-1F3FC-200D-1F373":"woman_cook_tone2","1F469-1F3FD-200D-1F373":"woman_cook_tone3","1F469-1F3FE-200D-1F373":"woman_cook_tone4","1F469-1F3FF-200D-1F373":"woman_cook_tone5","1F469-200D-1F37C":"woman_feeding_baby","1F469-1F3FB-200D-1F37C":"woman_feeding_baby_tone1","1F469-1F3FC-200D-1F37C":"woman_feeding_baby_tone2","1F469-1F3FD-200D-1F37C":"woman_feeding_baby_tone3","1F469-1F3FE-200D-1F37C":"woman_feeding_baby_tone4","1F469-1F3FF-200D-1F37C":"woman_feeding_baby_tone5","1F469-200D-1F393":"woman_student","1F469-1F3FB-200D-1F393":"woman_student_tone1","1F469-1F3FC-200D-1F393":"woman_student_tone2","1F469-1F3FD-200D-1F393":"woman_student_tone3","1F469-1F3FE-200D-1F393":"woman_student_tone4","1F469-1F3FF-200D-1F393":"woman_student_tone5","1F469-200D-1F3A4":"woman_singer","1F469-1F3FB-200D-1F3A4":"woman_singer_tone1","1F469-1F3FC-200D-1F3A4":"woman_singer_tone2","1F469-1F3FD-200D-1F3A4":"woman_singer_tone3","1F469-1F3FE-200D-1F3A4":"woman_singer_tone4","1F469-1F3FF-200D-1F3A4":"woman_singer_tone5","1F469-200D-1F3A8":"woman_artist","1F469-1F3FB-200D-1F3A8":"woman_artist_tone1","1F469-1F3FC-200D-1F3A8":"woman_artist_tone2","1F469-1F3FD-200D-1F3A8":"woman_artist_tone3","1F469-1F3FE-200D-1F3A8":"woman_artist_tone4","1F469-1F3FF-200D-1F3A8":"woman_artist_tone5","1F469-200D-1F3EB":"woman_teacher","1F469-1F3FB-200D-1F3EB":"woman_teacher_tone1","1F469-1F3FC-200D-1F3EB":"woman_teacher_tone2","1F469-1F3FD-200D-1F3EB":"woman_teacher_tone3","1F469-1F3FE-200D-1F3EB":"woman_teacher_tone4","1F469-1F3FF-200D-1F3EB":"woman_teacher_tone5","1F469-200D-1F3ED":"woman_factory_worker","1F469-1F3FB-200D-1F3ED":"woman_factory_worker_tone1","1F469-1F3FC-200D-1F3ED":"woman_factory_worker_tone2","1F469-1F3FD-200D-1F3ED":"woman_factory_worker_tone3","1F469-1F3FE-200D-1F3ED":"woman_factory_worker_tone4","1F469-1F3FF-200D-1F3ED":"woman_factory_worker_tone5","1F469-200D-1F4BB":"woman_technologist","1F469-1F3FB-200D-1F4BB":"woman_technologist_tone1","1F469-1F3FC-200D-1F4BB":"woman_technologist_tone2","1F469-1F3FD-200D-1F4BB":"woman_technologist_tone3","1F469-1F3FE-200D-1F4BB":"woman_technologist_tone4","1F469-1F3FF-200D-1F4BB":"woman_technologist_tone5","1F469-200D-1F4BC":"woman_office_worker","1F469-1F3FB-200D-1F4BC":"woman_office_worker_tone1","1F469-1F3FC-200D-1F4BC":"woman_office_worker_tone2","1F469-1F3FD-200D-1F4BC":"woman_office_worker_tone3","1F469-1F3FE-200D-1F4BC":"woman_office_worker_tone4","1F469-1F3FF-200D-1F4BC":"woman_office_worker_tone5","1F469-200D-1F527":"woman_mechanic","1F469-1F3FB-200D-1F527":"woman_mechanic_tone1","1F469-1F3FC-200D-1F527":"woman_mechanic_tone2","1F469-1F3FD-200D-1F527":"woman_mechanic_tone3","1F469-1F3FE-200D-1F527":"woman_mechanic_tone4","1F469-1F3FF-200D-1F527":"woman_mechanic_tone5","1F469-200D-1F52C":"woman_scientist","1F469-1F3FB-200D-1F52C":"woman_scientist_tone1","1F469-1F3FC-200D-1F52C":"woman_scientist_tone2","1F469-1F3FD-200D-1F52C":"woman_scientist_tone3","1F469-1F3FE-200D-1F52C":"woman_scientist_tone4","1F469-1F3FF-200D-1F52C":"woman_scientist_tone5","1F469-200D-1F680":"woman_astronaut","1F469-1F3FB-200D-1F680":"woman_astronaut_tone1","1F469-1F3FC-200D-1F680":"woman_astronaut_tone2","1F469-1F3FD-200D-1F680":"woman_astronaut_tone3","1F469-1F3FE-200D-1F680":"woman_astronaut_tone4","1F469-1F3FF-200D-1F680":"woman_astronaut_tone5","1F469-200D-1F692":"woman_firefighter","1F469-1F3FB-200D-1F692":"woman_firefighter_tone1","1F469-1F3FC-200D-1F692":"woman_firefighter_tone2","1F469-1F3FD-200D-1F692":"woman_firefighter_tone3","1F469-1F3FE-200D-1F692":"woman_firefighter_tone4","1F469-1F3FF-200D-1F692":"woman_firefighter_tone5","1F469-200D-1F9AF":["woman_with_probing_cane","woman_with_white_cane"],"1F469-1F3FB-200D-1F9AF":["woman_with_probing_cane_tone1","woman_with_white_cane_tone1"],"1F469-1F3FC-200D-1F9AF":["woman_with_probing_cane_tone2","woman_with_white_cane_tone2"],"1F469-1F3FD-200D-1F9AF":["woman_with_probing_cane_tone3","woman_with_white_cane_tone3"],"1F469-1F3FE-200D-1F9AF":["woman_with_probing_cane_tone4","woman_with_white_cane_tone4"],"1F469-1F3FF-200D-1F9AF":["woman_with_probing_cane_tone5","woman_with_white_cane_tone5"],"1F469-200D-1F9AF-200D-27A1-FE0F":"woman_with_white_cane_right","1F469-1F3FB-200D-1F9AF-200D-27A1-FE0F":"woman_with_white_cane_right_tone1","1F469-1F3FC-200D-1F9AF-200D-27A1-FE0F":"woman_with_white_cane_right_tone2","1F469-1F3FD-200D-1F9AF-200D-27A1-FE0F":"woman_with_white_cane_right_tone3","1F469-1F3FE-200D-1F9AF-200D-27A1-FE0F":"woman_with_white_cane_right_tone4","1F469-1F3FF-200D-1F9AF-200D-27A1-FE0F":"woman_with_white_cane_right_tone5","1F469-200D-1F9BC":"woman_in_motorized_wheelchair","1F469-1F3FB-200D-1F9BC":"woman_in_motorized_wheelchair_tone1","1F469-1F3FC-200D-1F9BC":"woman_in_motorized_wheelchair_tone2","1F469-1F3FD-200D-1F9BC":"woman_in_motorized_wheelchair_tone3","1F469-1F3FE-200D-1F9BC":"woman_in_motorized_wheelchair_tone4","1F469-1F3FF-200D-1F9BC":"woman_in_motorized_wheelchair_tone5","1F469-200D-1F9BC-200D-27A1-FE0F":"woman_in_motorized_wheelchair_right","1F469-1F3FB-200D-1F9BC-200D-27A1-FE0F":"woman_in_motorized_wheelchair_right_tone1","1F469-1F3FC-200D-1F9BC-200D-27A1-FE0F":"woman_in_motorized_wheelchair_right_tone2","1F469-1F3FD-200D-1F9BC-200D-27A1-FE0F":"woman_in_motorized_wheelchair_right_tone3","1F469-1F3FE-200D-1F9BC-200D-27A1-FE0F":"woman_in_motorized_wheelchair_right_tone4","1F469-1F3FF-200D-1F9BC-200D-27A1-FE0F":"woman_in_motorized_wheelchair_right_tone5","1F469-200D-1F9BD":"woman_in_manual_wheelchair","1F469-1F3FB-200D-1F9BD":"woman_in_manual_wheelchair_tone1","1F469-1F3FC-200D-1F9BD":"woman_in_manual_wheelchair_tone2","1F469-1F3FD-200D-1F9BD":"woman_in_manual_wheelchair_tone3","1F469-1F3FE-200D-1F9BD":"woman_in_manual_wheelchair_tone4","1F469-1F3FF-200D-1F9BD":"woman_in_manual_wheelchair_tone5","1F469-200D-1F9BD-200D-27A1-FE0F":"woman_in_manual_wheelchair_right","1F469-1F3FB-200D-1F9BD-200D-27A1-FE0F":"woman_in_manual_wheelchair_right_tone1","1F469-1F3FC-200D-1F9BD-200D-27A1-FE0F":"woman_in_manual_wheelchair_right_tone2","1F469-1F3FD-200D-1F9BD-200D-27A1-FE0F":"woman_in_manual_wheelchair_right_tone3","1F469-1F3FE-200D-1F9BD-200D-27A1-FE0F":"woman_in_manual_wheelchair_right_tone4","1F469-1F3FF-200D-1F9BD-200D-27A1-FE0F":"woman_in_manual_wheelchair_right_tone5","1F6B6-200D-27A1-FE0F":"person_walking_right","1F6B6-1F3FB-200D-27A1-FE0F":"person_walking_right_tone1","1F6B6-1F3FC-200D-27A1-FE0F":"person_walking_right_tone2","1F6B6-1F3FD-200D-27A1-FE0F":"person_walking_right_tone3","1F6B6-1F3FE-200D-27A1-FE0F":"person_walking_right_tone4","1F6B6-1F3FF-200D-27A1-FE0F":"person_walking_right_tone5","1F9CE-200D-27A1-FE0F":"person_kneeling_right","1F9CE-1F3FB-200D-27A1-FE0F":"person_kneeling_right_tone1","1F9CE-1F3FC-200D-27A1-FE0F":"person_kneeling_right_tone2","1F9CE-1F3FD-200D-27A1-FE0F":"person_kneeling_right_tone3","1F9CE-1F3FE-200D-27A1-FE0F":"person_kneeling_right_tone4","1F9CE-1F3FF-200D-27A1-FE0F":"person_kneeling_right_tone5","1F9D1-200D-2695-FE0F":"health_worker","1F9D1-1F3FB-200D-2695-FE0F":"health_worker_tone1","1F9D1-1F3FC-200D-2695-FE0F":"health_worker_tone2","1F9D1-1F3FD-200D-2695-FE0F":"health_worker_tone3","1F9D1-1F3FE-200D-2695-FE0F":"health_worker_tone4","1F9D1-1F3FF-200D-2695-FE0F":"health_worker_tone5","1F9D1-200D-2696-FE0F":"judge","1F9D1-1F3FB-200D-2696-FE0F":"judge_tone1","1F9D1-1F3FC-200D-2696-FE0F":"judge_tone2","1F9D1-1F3FD-200D-2696-FE0F":"judge_tone3","1F9D1-1F3FE-200D-2696-FE0F":"judge_tone4","1F9D1-1F3FF-200D-2696-FE0F":"judge_tone5","1F9D1-200D-2708-FE0F":"pilot","1F9D1-1F3FB-200D-2708-FE0F":"pilot_tone1","1F9D1-1F3FC-200D-2708-FE0F":"pilot_tone2","1F9D1-1F3FD-200D-2708-FE0F":"pilot_tone3","1F9D1-1F3FE-200D-2708-FE0F":"pilot_tone4","1F9D1-1F3FF-200D-2708-FE0F":"pilot_tone5","1F9D1-200D-1F33E":"farmer","1F9D1-1F3FB-200D-1F33E":"farmer_tone1","1F9D1-1F3FC-200D-1F33E":"farmer_tone2","1F9D1-1F3FD-200D-1F33E":"farmer_tone3","1F9D1-1F3FE-200D-1F33E":"farmer_tone4","1F9D1-1F3FF-200D-1F33E":"farmer_tone5","1F9D1-200D-1F373":"cook","1F9D1-1F3FB-200D-1F373":"cook_tone1","1F9D1-1F3FC-200D-1F373":"cook_tone2","1F9D1-1F3FD-200D-1F373":"cook_tone3","1F9D1-1F3FE-200D-1F373":"cook_tone4","1F9D1-1F3FF-200D-1F373":"cook_tone5","1F9D1-200D-1F37C":"person_feeding_baby","1F9D1-1F3FB-200D-1F37C":"person_feeding_baby_tone1","1F9D1-1F3FC-200D-1F37C":"person_feeding_baby_tone2","1F9D1-1F3FD-200D-1F37C":"person_feeding_baby_tone3","1F9D1-1F3FE-200D-1F37C":"person_feeding_baby_tone4","1F9D1-1F3FF-200D-1F37C":"person_feeding_baby_tone5","1F9D1-200D-1F384":"mx_claus","1F9D1-1F3FB-200D-1F384":"mx_claus_tone1","1F9D1-1F3FC-200D-1F384":"mx_claus_tone2","1F9D1-1F3FD-200D-1F384":"mx_claus_tone3","1F9D1-1F3FE-200D-1F384":"mx_claus_tone4","1F9D1-1F3FF-200D-1F384":"mx_claus_tone5","1F9D1-200D-1F393":"student","1F9D1-1F3FB-200D-1F393":"student_tone1","1F9D1-1F3FC-200D-1F393":"student_tone2","1F9D1-1F3FD-200D-1F393":"student_tone3","1F9D1-1F3FE-200D-1F393":"student_tone4","1F9D1-1F3FF-200D-1F393":"student_tone5","1F9D1-200D-1F3A4":"singer","1F9D1-1F3FB-200D-1F3A4":"singer_tone1","1F9D1-1F3FC-200D-1F3A4":"singer_tone2","1F9D1-1F3FD-200D-1F3A4":"singer_tone3","1F9D1-1F3FE-200D-1F3A4":"singer_tone4","1F9D1-1F3FF-200D-1F3A4":"singer_tone5","1F9D1-200D-1F3A8":"artist","1F9D1-1F3FB-200D-1F3A8":"artist_tone1","1F9D1-1F3FC-200D-1F3A8":"artist_tone2","1F9D1-1F3FD-200D-1F3A8":"artist_tone3","1F9D1-1F3FE-200D-1F3A8":"artist_tone4","1F9D1-1F3FF-200D-1F3A8":"artist_tone5","1F9D1-200D-1F3EB":"teacher","1F9D1-1F3FB-200D-1F3EB":"teacher_tone1","1F9D1-1F3FC-200D-1F3EB":"teacher_tone2","1F9D1-1F3FD-200D-1F3EB":"teacher_tone3","1F9D1-1F3FE-200D-1F3EB":"teacher_tone4","1F9D1-1F3FF-200D-1F3EB":"teacher_tone5","1F9D1-200D-1F3ED":"factory_worker","1F9D1-1F3FB-200D-1F3ED":"factory_worker_tone1","1F9D1-1F3FC-200D-1F3ED":"factory_worker_tone2","1F9D1-1F3FD-200D-1F3ED":"factory_worker_tone3","1F9D1-1F3FE-200D-1F3ED":"factory_worker_tone4","1F9D1-1F3FF-200D-1F3ED":"factory_worker_tone5","1F9D1-200D-1F4BB":"technologist","1F9D1-1F3FB-200D-1F4BB":"technologist_tone1","1F9D1-1F3FC-200D-1F4BB":"technologist_tone2","1F9D1-1F3FD-200D-1F4BB":"technologist_tone3","1F9D1-1F3FE-200D-1F4BB":"technologist_tone4","1F9D1-1F3FF-200D-1F4BB":"technologist_tone5","1F9D1-200D-1F4BC":"office_worker","1F9D1-1F3FB-200D-1F4BC":"office_worker_tone1","1F9D1-1F3FC-200D-1F4BC":"office_worker_tone2","1F9D1-1F3FD-200D-1F4BC":"office_worker_tone3","1F9D1-1F3FE-200D-1F4BC":"office_worker_tone4","1F9D1-1F3FF-200D-1F4BC":"office_worker_tone5","1F9D1-200D-1F527":"mechanic","1F9D1-1F3FB-200D-1F527":"mechanic_tone1","1F9D1-1F3FC-200D-1F527":"mechanic_tone2","1F9D1-1F3FD-200D-1F527":"mechanic_tone3","1F9D1-1F3FE-200D-1F527":"mechanic_tone4","1F9D1-1F3FF-200D-1F527":"mechanic_tone5","1F9D1-200D-1F52C":"scientist","1F9D1-1F3FB-200D-1F52C":"scientist_tone1","1F9D1-1F3FC-200D-1F52C":"scientist_tone2","1F9D1-1F3FD-200D-1F52C":"scientist_tone3","1F9D1-1F3FE-200D-1F52C":"scientist_tone4","1F9D1-1F3FF-200D-1F52C":"scientist_tone5","1F9D1-200D-1F680":"astronaut","1F9D1-1F3FB-200D-1F680":"astronaut_tone1","1F9D1-1F3FC-200D-1F680":"astronaut_tone2","1F9D1-1F3FD-200D-1F680":"astronaut_tone3","1F9D1-1F3FE-200D-1F680":"astronaut_tone4","1F9D1-1F3FF-200D-1F680":"astronaut_tone5","1F9D1-200D-1F692":"firefighter","1F9D1-1F3FB-200D-1F692":"firefighter_tone1","1F9D1-1F3FC-200D-1F692":"firefighter_tone2","1F9D1-1F3FD-200D-1F692":"firefighter_tone3","1F9D1-1F3FE-200D-1F692":"firefighter_tone4","1F9D1-1F3FF-200D-1F692":"firefighter_tone5","1F9D1-200D-1F9AF":["person_with_probing_cane","person_with_white_cane"],"1F9D1-1F3FB-200D-1F9AF":["person_with_probing_cane_tone1","person_with_white_cane_tone1"],"1F9D1-1F3FC-200D-1F9AF":["person_with_probing_cane_tone2","person_with_white_cane_tone2"],"1F9D1-1F3FD-200D-1F9AF":["person_with_probing_cane_tone3","person_with_white_cane_tone3"],"1F9D1-1F3FE-200D-1F9AF":["person_with_probing_cane_tone4","person_with_white_cane_tone4"],"1F9D1-1F3FF-200D-1F9AF":["person_with_probing_cane_tone5","person_with_white_cane_tone5"],"1F9D1-200D-1F9AF-200D-27A1-FE0F":"person_with_white_cane_right","1F9D1-1F3FB-200D-1F9AF-200D-27A1-FE0F":"person_with_white_cane_right_tone1","1F9D1-1F3FC-200D-1F9AF-200D-27A1-FE0F":"person_with_white_cane_right_tone2","1F9D1-1F3FD-200D-1F9AF-200D-27A1-FE0F":"person_with_white_cane_right_tone3","1F9D1-1F3FE-200D-1F9AF-200D-27A1-FE0F":"person_with_white_cane_right_tone4","1F9D1-1F3FF-200D-1F9AF-200D-27A1-FE0F":"person_with_white_cane_right_tone5","1F9D1-200D-1F9BC":"person_in_motorized_wheelchair","1F9D1-1F3FB-200D-1F9BC":"person_in_motorized_wheelchair_tone1","1F9D1-1F3FC-200D-1F9BC":"person_in_motorized_wheelchair_tone2","1F9D1-1F3FD-200D-1F9BC":"person_in_motorized_wheelchair_tone3","1F9D1-1F3FE-200D-1F9BC":"person_in_motorized_wheelchair_tone4","1F9D1-1F3FF-200D-1F9BC":"person_in_motorized_wheelchair_tone5","1F9D1-200D-1F9BC-200D-27A1-FE0F":"person_in_motorized_wheelchair_right","1F9D1-1F3FB-200D-1F9BC-200D-27A1-FE0F":"person_in_motorized_wheelchair_right_tone1","1F9D1-1F3FC-200D-1F9BC-200D-27A1-FE0F":"person_in_motorized_wheelchair_right_tone2","1F9D1-1F3FD-200D-1F9BC-200D-27A1-FE0F":"person_in_motorized_wheelchair_right_tone3","1F9D1-1F3FE-200D-1F9BC-200D-27A1-FE0F":"person_in_motorized_wheelchair_right_tone4","1F9D1-1F3FF-200D-1F9BC-200D-27A1-FE0F":"person_in_motorized_wheelchair_right_tone5","1F9D1-200D-1F9BD":"person_in_manual_wheelchair","1F9D1-1F3FB-200D-1F9BD":"person_in_manual_wheelchair_tone1","1F9D1-1F3FC-200D-1F9BD":"person_in_manual_wheelchair_tone2","1F9D1-1F3FD-200D-1F9BD":"person_in_manual_wheelchair_tone3","1F9D1-1F3FE-200D-1F9BD":"person_in_manual_wheelchair_tone4","1F9D1-1F3FF-200D-1F9BD":"person_in_manual_wheelchair_tone5","1F9D1-200D-1F9BD-200D-27A1-FE0F":"person_in_manual_wheelchair_right","1F9D1-1F3FB-200D-1F9BD-200D-27A1-FE0F":"person_in_manual_wheelchair_right_tone1","1F9D1-1F3FC-200D-1F9BD-200D-27A1-FE0F":"person_in_manual_wheelchair_right_tone2","1F9D1-1F3FD-200D-1F9BD-200D-27A1-FE0F":"person_in_manual_wheelchair_right_tone3","1F9D1-1F3FE-200D-1F9BD-200D-27A1-FE0F":"person_in_manual_wheelchair_right_tone4","1F9D1-1F3FF-200D-1F9BD-200D-27A1-FE0F":"person_in_manual_wheelchair_right_tone5","26F9-FE0F-200D-2640-FE0F":"woman_bouncing_ball","26F9-1F3FB-200D-2640-FE0F":"woman_bouncing_ball_tone1","26F9-1F3FC-200D-2640-FE0F":"woman_bouncing_ball_tone2","26F9-1F3FD-200D-2640-FE0F":"woman_bouncing_ball_tone3","26F9-1F3FE-200D-2640-FE0F":"woman_bouncing_ball_tone4","26F9-1F3FF-200D-2640-FE0F":"woman_bouncing_ball_tone5","26F9-FE0F-200D-2642-FE0F":"man_bouncing_ball","26F9-1F3FB-200D-2642-FE0F":"man_bouncing_ball_tone1","26F9-1F3FC-200D-2642-FE0F":"man_bouncing_ball_tone2","26F9-1F3FD-200D-2642-FE0F":"man_bouncing_ball_tone3","26F9-1F3FE-200D-2642-FE0F":"man_bouncing_ball_tone4","26F9-1F3FF-200D-2642-FE0F":"man_bouncing_ball_tone5","1F3C3-200D-2640-FE0F":"woman_running","1F3C3-1F3FB-200D-2640-FE0F":"woman_running_tone1","1F3C3-1F3FC-200D-2640-FE0F":"woman_running_tone2","1F3C3-1F3FD-200D-2640-FE0F":"woman_running_tone3","1F3C3-1F3FE-200D-2640-FE0F":"woman_running_tone4","1F3C3-1F3FF-200D-2640-FE0F":"woman_running_tone5","1F3C3-200D-2640-FE0F-200D-27A1-FE0F":"woman_running_right","1F3C3-1F3FB-200D-2640-FE0F-200D-27A1-FE0F":"woman_running_right_tone1","1F3C3-1F3FC-200D-2640-FE0F-200D-27A1-FE0F":"woman_running_right_tone2","1F3C3-1F3FD-200D-2640-FE0F-200D-27A1-FE0F":"woman_running_right_tone3","1F3C3-1F3FE-200D-2640-FE0F-200D-27A1-FE0F":"woman_running_right_tone4","1F3C3-1F3FF-200D-2640-FE0F-200D-27A1-FE0F":"woman_running_right_tone5","1F3C3-200D-2642-FE0F":"man_running","1F3C3-1F3FB-200D-2642-FE0F":"man_running_tone1","1F3C3-1F3FC-200D-2642-FE0F":"man_running_tone2","1F3C3-1F3FD-200D-2642-FE0F":"man_running_tone3","1F3C3-1F3FE-200D-2642-FE0F":"man_running_tone4","1F3C3-1F3FF-200D-2642-FE0F":"man_running_tone5","1F3C3-200D-2642-FE0F-200D-27A1-FE0F":"man_running_right","1F3C3-1F3FB-200D-2642-FE0F-200D-27A1-FE0F":"man_running_right_tone1","1F3C3-1F3FC-200D-2642-FE0F-200D-27A1-FE0F":"man_running_right_tone2","1F3C3-1F3FD-200D-2642-FE0F-200D-27A1-FE0F":"man_running_right_tone3","1F3C3-1F3FE-200D-2642-FE0F-200D-27A1-FE0F":"man_running_right_tone4","1F3C3-1F3FF-200D-2642-FE0F-200D-27A1-FE0F":"man_running_right_tone5","1F3C4-200D-2640-FE0F":"woman_surfing","1F3C4-1F3FB-200D-2640-FE0F":"woman_surfing_tone1","1F3C4-1F3FC-200D-2640-FE0F":"woman_surfing_tone2","1F3C4-1F3FD-200D-2640-FE0F":"woman_surfing_tone3","1F3C4-1F3FE-200D-2640-FE0F":"woman_surfing_tone4","1F3C4-1F3FF-200D-2640-FE0F":"woman_surfing_tone5","1F3C4-200D-2642-FE0F":"man_surfing","1F3C4-1F3FB-200D-2642-FE0F":"man_surfing_tone1","1F3C4-1F3FC-200D-2642-FE0F":"man_surfing_tone2","1F3C4-1F3FD-200D-2642-FE0F":"man_surfing_tone3","1F3C4-1F3FE-200D-2642-FE0F":"man_surfing_tone4","1F3C4-1F3FF-200D-2642-FE0F":"man_surfing_tone5","1F3CA-200D-2640-FE0F":"woman_swimming","1F3CA-1F3FB-200D-2640-FE0F":"woman_swimming_tone1","1F3CA-1F3FC-200D-2640-FE0F":"woman_swimming_tone2","1F3CA-1F3FD-200D-2640-FE0F":"woman_swimming_tone3","1F3CA-1F3FE-200D-2640-FE0F":"woman_swimming_tone4","1F3CA-1F3FF-200D-2640-FE0F":"woman_swimming_tone5","1F3CA-200D-2642-FE0F":"man_swimming","1F3CA-1F3FB-200D-2642-FE0F":"man_swimming_tone1","1F3CA-1F3FC-200D-2642-FE0F":"man_swimming_tone2","1F3CA-1F3FD-200D-2642-FE0F":"man_swimming_tone3","1F3CA-1F3FE-200D-2642-FE0F":"man_swimming_tone4","1F3CA-1F3FF-200D-2642-FE0F":"man_swimming_tone5","1F3CB-FE0F-200D-2640-FE0F":"woman_lifting_weights","1F3CB-1F3FB-200D-2640-FE0F":"woman_lifting_weights_tone1","1F3CB-1F3FC-200D-2640-FE0F":"woman_lifting_weights_tone2","1F3CB-1F3FD-200D-2640-FE0F":"woman_lifting_weights_tone3","1F3CB-1F3FE-200D-2640-FE0F":"woman_lifting_weights_tone4","1F3CB-1F3FF-200D-2640-FE0F":"woman_lifting_weights_tone5","1F3CB-FE0F-200D-2642-FE0F":"man_lifting_weights","1F3CB-1F3FB-200D-2642-FE0F":"man_lifting_weights_tone1","1F3CB-1F3FC-200D-2642-FE0F":"man_lifting_weights_tone2","1F3CB-1F3FD-200D-2642-FE0F":"man_lifting_weights_tone3","1F3CB-1F3FE-200D-2642-FE0F":"man_lifting_weights_tone4","1F3CB-1F3FF-200D-2642-FE0F":"man_lifting_weights_tone5","1F3CC-FE0F-200D-2640-FE0F":"woman_golfing","1F3CC-1F3FB-200D-2640-FE0F":"woman_golfing_tone1","1F3CC-1F3FC-200D-2640-FE0F":"woman_golfing_tone2","1F3CC-1F3FD-200D-2640-FE0F":"woman_golfing_tone3","1F3CC-1F3FE-200D-2640-FE0F":"woman_golfing_tone4","1F3CC-1F3FF-200D-2640-FE0F":"woman_golfing_tone5","1F3CC-FE0F-200D-2642-FE0F":"man_golfing","1F3CC-1F3FB-200D-2642-FE0F":"man_golfing_tone1","1F3CC-1F3FC-200D-2642-FE0F":"man_golfing_tone2","1F3CC-1F3FD-200D-2642-FE0F":"man_golfing_tone3","1F3CC-1F3FE-200D-2642-FE0F":"man_golfing_tone4","1F3CC-1F3FF-200D-2642-FE0F":"man_golfing_tone5","1F46E-200D-2640-FE0F":"woman_police_officer","1F46E-1F3FB-200D-2640-FE0F":"woman_police_officer_tone1","1F46E-1F3FC-200D-2640-FE0F":"woman_police_officer_tone2","1F46E-1F3FD-200D-2640-FE0F":"woman_police_officer_tone3","1F46E-1F3FE-200D-2640-FE0F":"woman_police_officer_tone4","1F46E-1F3FF-200D-2640-FE0F":"woman_police_officer_tone5","1F46E-200D-2642-FE0F":"man_police_officer","1F46E-1F3FB-200D-2642-FE0F":"man_police_officer_tone1","1F46E-1F3FC-200D-2642-FE0F":"man_police_officer_tone2","1F46E-1F3FD-200D-2642-FE0F":"man_police_officer_tone3","1F46E-1F3FE-200D-2642-FE0F":"man_police_officer_tone4","1F46E-1F3FF-200D-2642-FE0F":"man_police_officer_tone5","1F46F-200D-2640-FE0F":"women_with_bunny_ears_partying","1F46F-200D-2642-FE0F":"men_with_bunny_ears_partying","1F470-200D-2640-FE0F":"woman_with_veil","1F470-1F3FB-200D-2640-FE0F":"woman_with_veil_tone1","1F470-1F3FC-200D-2640-FE0F":"woman_with_veil_tone2","1F470-1F3FD-200D-2640-FE0F":"woman_with_veil_tone3","1F470-1F3FE-200D-2640-FE0F":"woman_with_veil_tone4","1F470-1F3FF-200D-2640-FE0F":"woman_with_veil_tone5","1F470-200D-2642-FE0F":"man_with_veil","1F470-1F3FB-200D-2642-FE0F":"man_with_veil_tone1","1F470-1F3FC-200D-2642-FE0F":"man_with_veil_tone2","1F470-1F3FD-200D-2642-FE0F":"man_with_veil_tone3","1F470-1F3FE-200D-2642-FE0F":"man_with_veil_tone4","1F470-1F3FF-200D-2642-FE0F":"man_with_veil_tone5","1F471-200D-2640-FE0F":"woman_blond_haired","1F471-1F3FB-200D-2640-FE0F":"woman_blond_haired_tone1","1F471-1F3FC-200D-2640-FE0F":"woman_blond_haired_tone2","1F471-1F3FD-200D-2640-FE0F":"woman_blond_haired_tone3","1F471-1F3FE-200D-2640-FE0F":"woman_blond_haired_tone4","1F471-1F3FF-200D-2640-FE0F":"woman_blond_haired_tone5","1F471-200D-2642-FE0F":"man_blond_haired","1F471-1F3FB-200D-2642-FE0F":"man_blond_haired_tone1","1F471-1F3FC-200D-2642-FE0F":"man_blond_haired_tone2","1F471-1F3FD-200D-2642-FE0F":"man_blond_haired_tone3","1F471-1F3FE-200D-2642-FE0F":"man_blond_haired_tone4","1F471-1F3FF-200D-2642-FE0F":"man_blond_haired_tone5","1F473-200D-2640-FE0F":"woman_wearing_turban","1F473-1F3FB-200D-2640-FE0F":"woman_wearing_turban_tone1","1F473-1F3FC-200D-2640-FE0F":"woman_wearing_turban_tone2","1F473-1F3FD-200D-2640-FE0F":"woman_wearing_turban_tone3","1F473-1F3FE-200D-2640-FE0F":"woman_wearing_turban_tone4","1F473-1F3FF-200D-2640-FE0F":"woman_wearing_turban_tone5","1F473-200D-2642-FE0F":"man_wearing_turban","1F473-1F3FB-200D-2642-FE0F":"man_wearing_turban_tone1","1F473-1F3FC-200D-2642-FE0F":"man_wearing_turban_tone2","1F473-1F3FD-200D-2642-FE0F":"man_wearing_turban_tone3","1F473-1F3FE-200D-2642-FE0F":"man_wearing_turban_tone4","1F473-1F3FF-200D-2642-FE0F":"man_wearing_turban_tone5","1F477-200D-2640-FE0F":"woman_construction_worker","1F477-1F3FB-200D-2640-FE0F":"woman_construction_worker_tone1","1F477-1F3FC-200D-2640-FE0F":"woman_construction_worker_tone2","1F477-1F3FD-200D-2640-FE0F":"woman_construction_worker_tone3","1F477-1F3FE-200D-2640-FE0F":"woman_construction_worker_tone4","1F477-1F3FF-200D-2640-FE0F":"woman_construction_worker_tone5","1F477-200D-2642-FE0F":"man_construction_worker","1F477-1F3FB-200D-2642-FE0F":"man_construction_worker_tone1","1F477-1F3FC-200D-2642-FE0F":"man_construction_worker_tone2","1F477-1F3FD-200D-2642-FE0F":"man_construction_worker_tone3","1F477-1F3FE-200D-2642-FE0F":"man_construction_worker_tone4","1F477-1F3FF-200D-2642-FE0F":"man_construction_worker_tone5","1F481-200D-2640-FE0F":"woman_tipping_hand","1F481-1F3FB-200D-2640-FE0F":"woman_tipping_hand_tone1","1F481-1F3FC-200D-2640-FE0F":"woman_tipping_hand_tone2","1F481-1F3FD-200D-2640-FE0F":"woman_tipping_hand_tone3","1F481-1F3FE-200D-2640-FE0F":"woman_tipping_hand_tone4","1F481-1F3FF-200D-2640-FE0F":"woman_tipping_hand_tone5","1F481-200D-2642-FE0F":"man_tipping_hand","1F481-1F3FB-200D-2642-FE0F":"man_tipping_hand_tone1","1F481-1F3FC-200D-2642-FE0F":"man_tipping_hand_tone2","1F481-1F3FD-200D-2642-FE0F":"man_tipping_hand_tone3","1F481-1F3FE-200D-2642-FE0F":"man_tipping_hand_tone4","1F481-1F3FF-200D-2642-FE0F":"man_tipping_hand_tone5","1F482-200D-2640-FE0F":"woman_guard","1F482-1F3FB-200D-2640-FE0F":"woman_guard_tone1","1F482-1F3FC-200D-2640-FE0F":"woman_guard_tone2","1F482-1F3FD-200D-2640-FE0F":"woman_guard_tone3","1F482-1F3FE-200D-2640-FE0F":"woman_guard_tone4","1F482-1F3FF-200D-2640-FE0F":"woman_guard_tone5","1F482-200D-2642-FE0F":"man_guard","1F482-1F3FB-200D-2642-FE0F":"man_guard_tone1","1F482-1F3FC-200D-2642-FE0F":"man_guard_tone2","1F482-1F3FD-200D-2642-FE0F":"man_guard_tone3","1F482-1F3FE-200D-2642-FE0F":"man_guard_tone4","1F482-1F3FF-200D-2642-FE0F":"man_guard_tone5","1F486-200D-2640-FE0F":"woman_getting_massage","1F486-1F3FB-200D-2640-FE0F":"woman_getting_massage_tone1","1F486-1F3FC-200D-2640-FE0F":"woman_getting_massage_tone2","1F486-1F3FD-200D-2640-FE0F":"woman_getting_massage_tone3","1F486-1F3FE-200D-2640-FE0F":"woman_getting_massage_tone4","1F486-1F3FF-200D-2640-FE0F":"woman_getting_massage_tone5","1F486-200D-2642-FE0F":"man_getting_massage","1F486-1F3FB-200D-2642-FE0F":"man_getting_massage_tone1","1F486-1F3FC-200D-2642-FE0F":"man_getting_massage_tone2","1F486-1F3FD-200D-2642-FE0F":"man_getting_massage_tone3","1F486-1F3FE-200D-2642-FE0F":"man_getting_massage_tone4","1F486-1F3FF-200D-2642-FE0F":"man_getting_massage_tone5","1F487-200D-2640-FE0F":"woman_getting_haircut","1F487-1F3FB-200D-2640-FE0F":"woman_getting_haircut_tone1","1F487-1F3FC-200D-2640-FE0F":"woman_getting_haircut_tone2","1F487-1F3FD-200D-2640-FE0F":"woman_getting_haircut_tone3","1F487-1F3FE-200D-2640-FE0F":"woman_getting_haircut_tone4","1F487-1F3FF-200D-2640-FE0F":"woman_getting_haircut_tone5","1F487-200D-2642-FE0F":"man_getting_haircut","1F487-1F3FB-200D-2642-FE0F":"man_getting_haircut_tone1","1F487-1F3FC-200D-2642-FE0F":"man_getting_haircut_tone2","1F487-1F3FD-200D-2642-FE0F":"man_getting_haircut_tone3","1F487-1F3FE-200D-2642-FE0F":"man_getting_haircut_tone4","1F487-1F3FF-200D-2642-FE0F":"man_getting_haircut_tone5","1F575-FE0F-200D-2640-FE0F":"woman_detective","1F575-1F3FB-200D-2640-FE0F":"woman_detective_tone1","1F575-1F3FC-200D-2640-FE0F":"woman_detective_tone2","1F575-1F3FD-200D-2640-FE0F":"woman_detective_tone3","1F575-1F3FE-200D-2640-FE0F":"woman_detective_tone4","1F575-1F3FF-200D-2640-FE0F":"woman_detective_tone5","1F575-FE0F-200D-2642-FE0F":"man_detective","1F575-1F3FB-200D-2642-FE0F":"man_detective_tone1","1F575-1F3FC-200D-2642-FE0F":"man_detective_tone2","1F575-1F3FD-200D-2642-FE0F":"man_detective_tone3","1F575-1F3FE-200D-2642-FE0F":"man_detective_tone4","1F575-1F3FF-200D-2642-FE0F":"man_detective_tone5","1F645-200D-2640-FE0F":"woman_gesturing_no","1F645-1F3FB-200D-2640-FE0F":"woman_gesturing_no_tone1","1F645-1F3FC-200D-2640-FE0F":"woman_gesturing_no_tone2","1F645-1F3FD-200D-2640-FE0F":"woman_gesturing_no_tone3","1F645-1F3FE-200D-2640-FE0F":"woman_gesturing_no_tone4","1F645-1F3FF-200D-2640-FE0F":"woman_gesturing_no_tone5","1F645-200D-2642-FE0F":"man_gesturing_no","1F645-1F3FB-200D-2642-FE0F":"man_gesturing_no_tone1","1F645-1F3FC-200D-2642-FE0F":"man_gesturing_no_tone2","1F645-1F3FD-200D-2642-FE0F":"man_gesturing_no_tone3","1F645-1F3FE-200D-2642-FE0F":"man_gesturing_no_tone4","1F645-1F3FF-200D-2642-FE0F":"man_gesturing_no_tone5","1F646-200D-2640-FE0F":"woman_gesturing_ok","1F646-1F3FB-200D-2640-FE0F":"woman_gesturing_ok_tone1","1F646-1F3FC-200D-2640-FE0F":"woman_gesturing_ok_tone2","1F646-1F3FD-200D-2640-FE0F":"woman_gesturing_ok_tone3","1F646-1F3FE-200D-2640-FE0F":"woman_gesturing_ok_tone4","1F646-1F3FF-200D-2640-FE0F":"woman_gesturing_ok_tone5","1F646-200D-2642-FE0F":"man_gesturing_ok","1F646-1F3FB-200D-2642-FE0F":"man_gesturing_ok_tone1","1F646-1F3FC-200D-2642-FE0F":"man_gesturing_ok_tone2","1F646-1F3FD-200D-2642-FE0F":"man_gesturing_ok_tone3","1F646-1F3FE-200D-2642-FE0F":"man_gesturing_ok_tone4","1F646-1F3FF-200D-2642-FE0F":"man_gesturing_ok_tone5","1F647-200D-2640-FE0F":"woman_bowing","1F647-1F3FB-200D-2640-FE0F":"woman_bowing_tone1","1F647-1F3FC-200D-2640-FE0F":"woman_bowing_tone2","1F647-1F3FD-200D-2640-FE0F":"woman_bowing_tone3","1F647-1F3FE-200D-2640-FE0F":"woman_bowing_tone4","1F647-1F3FF-200D-2640-FE0F":"woman_bowing_tone5","1F647-200D-2642-FE0F":"man_bowing","1F647-1F3FB-200D-2642-FE0F":"man_bowing_tone1","1F647-1F3FC-200D-2642-FE0F":"man_bowing_tone2","1F647-1F3FD-200D-2642-FE0F":"man_bowing_tone3","1F647-1F3FE-200D-2642-FE0F":"man_bowing_tone4","1F647-1F3FF-200D-2642-FE0F":"man_bowing_tone5","1F64B-200D-2640-FE0F":"woman_raising_hand","1F64B-1F3FB-200D-2640-FE0F":"woman_raising_hand_tone1","1F64B-1F3FC-200D-2640-FE0F":"woman_raising_hand_tone2","1F64B-1F3FD-200D-2640-FE0F":"woman_raising_hand_tone3","1F64B-1F3FE-200D-2640-FE0F":"woman_raising_hand_tone4","1F64B-1F3FF-200D-2640-FE0F":"woman_raising_hand_tone5","1F64B-200D-2642-FE0F":"man_raising_hand","1F64B-1F3FB-200D-2642-FE0F":"man_raising_hand_tone1","1F64B-1F3FC-200D-2642-FE0F":"man_raising_hand_tone2","1F64B-1F3FD-200D-2642-FE0F":"man_raising_hand_tone3","1F64B-1F3FE-200D-2642-FE0F":"man_raising_hand_tone4","1F64B-1F3FF-200D-2642-FE0F":"man_raising_hand_tone5","1F64D-200D-2640-FE0F":"woman_frowning","1F64D-1F3FB-200D-2640-FE0F":"woman_frowning_tone1","1F64D-1F3FC-200D-2640-FE0F":"woman_frowning_tone2","1F64D-1F3FD-200D-2640-FE0F":"woman_frowning_tone3","1F64D-1F3FE-200D-2640-FE0F":"woman_frowning_tone4","1F64D-1F3FF-200D-2640-FE0F":"woman_frowning_tone5","1F64D-200D-2642-FE0F":"man_frowning","1F64D-1F3FB-200D-2642-FE0F":"man_frowning_tone1","1F64D-1F3FC-200D-2642-FE0F":"man_frowning_tone2","1F64D-1F3FD-200D-2642-FE0F":"man_frowning_tone3","1F64D-1F3FE-200D-2642-FE0F":"man_frowning_tone4","1F64D-1F3FF-200D-2642-FE0F":"man_frowning_tone5","1F64E-200D-2640-FE0F":"woman_pouting","1F64E-1F3FB-200D-2640-FE0F":"woman_pouting_tone1","1F64E-1F3FC-200D-2640-FE0F":"woman_pouting_tone2","1F64E-1F3FD-200D-2640-FE0F":"woman_pouting_tone3","1F64E-1F3FE-200D-2640-FE0F":"woman_pouting_tone4","1F64E-1F3FF-200D-2640-FE0F":"woman_pouting_tone5","1F64E-200D-2642-FE0F":"man_pouting","1F64E-1F3FB-200D-2642-FE0F":"man_pouting_tone1","1F64E-1F3FC-200D-2642-FE0F":"man_pouting_tone2","1F64E-1F3FD-200D-2642-FE0F":"man_pouting_tone3","1F64E-1F3FE-200D-2642-FE0F":"man_pouting_tone4","1F64E-1F3FF-200D-2642-FE0F":"man_pouting_tone5","1F6A3-200D-2640-FE0F":"woman_rowing_boat","1F6A3-1F3FB-200D-2640-FE0F":"woman_rowing_boat_tone1","1F6A3-1F3FC-200D-2640-FE0F":"woman_rowing_boat_tone2","1F6A3-1F3FD-200D-2640-FE0F":"woman_rowing_boat_tone3","1F6A3-1F3FE-200D-2640-FE0F":"woman_rowing_boat_tone4","1F6A3-1F3FF-200D-2640-FE0F":"woman_rowing_boat_tone5","1F6A3-200D-2642-FE0F":"man_rowing_boat","1F6A3-1F3FB-200D-2642-FE0F":"man_rowing_boat_tone1","1F6A3-1F3FC-200D-2642-FE0F":"man_rowing_boat_tone2","1F6A3-1F3FD-200D-2642-FE0F":"man_rowing_boat_tone3","1F6A3-1F3FE-200D-2642-FE0F":"man_rowing_boat_tone4","1F6A3-1F3FF-200D-2642-FE0F":"man_rowing_boat_tone5","1F6B4-200D-2640-FE0F":"woman_biking","1F6B4-1F3FB-200D-2640-FE0F":"woman_biking_tone1","1F6B4-1F3FC-200D-2640-FE0F":"woman_biking_tone2","1F6B4-1F3FD-200D-2640-FE0F":"woman_biking_tone3","1F6B4-1F3FE-200D-2640-FE0F":"woman_biking_tone4","1F6B4-1F3FF-200D-2640-FE0F":"woman_biking_tone5","1F6B4-200D-2642-FE0F":"man_biking","1F6B4-1F3FB-200D-2642-FE0F":"man_biking_tone1","1F6B4-1F3FC-200D-2642-FE0F":"man_biking_tone2","1F6B4-1F3FD-200D-2642-FE0F":"man_biking_tone3","1F6B4-1F3FE-200D-2642-FE0F":"man_biking_tone4","1F6B4-1F3FF-200D-2642-FE0F":"man_biking_tone5","1F6B5-200D-2640-FE0F":"woman_mountain_biking","1F6B5-1F3FB-200D-2640-FE0F":"woman_mountain_biking_tone1","1F6B5-1F3FC-200D-2640-FE0F":"woman_mountain_biking_tone2","1F6B5-1F3FD-200D-2640-FE0F":"woman_mountain_biking_tone3","1F6B5-1F3FE-200D-2640-FE0F":"woman_mountain_biking_tone4","1F6B5-1F3FF-200D-2640-FE0F":"woman_mountain_biking_tone5","1F6B5-200D-2642-FE0F":"man_mountain_biking","1F6B5-1F3FB-200D-2642-FE0F":"man_mountain_biking_tone1","1F6B5-1F3FC-200D-2642-FE0F":"man_mountain_biking_tone2","1F6B5-1F3FD-200D-2642-FE0F":"man_mountain_biking_tone3","1F6B5-1F3FE-200D-2642-FE0F":"man_mountain_biking_tone4","1F6B5-1F3FF-200D-2642-FE0F":"man_mountain_biking_tone5","1F6B6-200D-2640-FE0F":"woman_walking","1F6B6-1F3FB-200D-2640-FE0F":"woman_walking_tone1","1F6B6-1F3FC-200D-2640-FE0F":"woman_walking_tone2","1F6B6-1F3FD-200D-2640-FE0F":"woman_walking_tone3","1F6B6-1F3FE-200D-2640-FE0F":"woman_walking_tone4","1F6B6-1F3FF-200D-2640-FE0F":"woman_walking_tone5","1F6B6-200D-2640-FE0F-200D-27A1-FE0F":"woman_walking_right","1F6B6-1F3FB-200D-2640-FE0F-200D-27A1-FE0F":"woman_walking_right_tone1","1F6B6-1F3FC-200D-2640-FE0F-200D-27A1-FE0F":"woman_walking_right_tone2","1F6B6-1F3FD-200D-2640-FE0F-200D-27A1-FE0F":"woman_walking_right_tone3","1F6B6-1F3FE-200D-2640-FE0F-200D-27A1-FE0F":"woman_walking_right_tone4","1F6B6-1F3FF-200D-2640-FE0F-200D-27A1-FE0F":"woman_walking_right_tone5","1F6B6-200D-2642-FE0F":"man_walking","1F6B6-1F3FB-200D-2642-FE0F":"man_walking_tone1","1F6B6-1F3FC-200D-2642-FE0F":"man_walking_tone2","1F6B6-1F3FD-200D-2642-FE0F":"man_walking_tone3","1F6B6-1F3FE-200D-2642-FE0F":"man_walking_tone4","1F6B6-1F3FF-200D-2642-FE0F":"man_walking_tone5","1F6B6-200D-2642-FE0F-200D-27A1-FE0F":"man_walking_right","1F6B6-1F3FB-200D-2642-FE0F-200D-27A1-FE0F":"man_walking_right_tone1","1F6B6-1F3FC-200D-2642-FE0F-200D-27A1-FE0F":"man_walking_right_tone2","1F6B6-1F3FD-200D-2642-FE0F-200D-27A1-FE0F":"man_walking_right_tone3","1F6B6-1F3FE-200D-2642-FE0F-200D-27A1-FE0F":"man_walking_right_tone4","1F6B6-1F3FF-200D-2642-FE0F-200D-27A1-FE0F":"man_walking_right_tone5","1F926-200D-2640-FE0F":"woman_facepalming","1F926-1F3FB-200D-2640-FE0F":"woman_facepalming_tone1","1F926-1F3FC-200D-2640-FE0F":"woman_facepalming_tone2","1F926-1F3FD-200D-2640-FE0F":"woman_facepalming_tone3","1F926-1F3FE-200D-2640-FE0F":"woman_facepalming_tone4","1F926-1F3FF-200D-2640-FE0F":"woman_facepalming_tone5","1F926-200D-2642-FE0F":"man_facepalming","1F926-1F3FB-200D-2642-FE0F":"man_facepalming_tone1","1F926-1F3FC-200D-2642-FE0F":"man_facepalming_tone2","1F926-1F3FD-200D-2642-FE0F":"man_facepalming_tone3","1F926-1F3FE-200D-2642-FE0F":"man_facepalming_tone4","1F926-1F3FF-200D-2642-FE0F":"man_facepalming_tone5","1F935-200D-2640-FE0F":"woman_in_tuxedo","1F935-1F3FB-200D-2640-FE0F":"woman_in_tuxedo_tone1","1F935-1F3FC-200D-2640-FE0F":"woman_in_tuxedo_tone2","1F935-1F3FD-200D-2640-FE0F":"woman_in_tuxedo_tone3","1F935-1F3FE-200D-2640-FE0F":"woman_in_tuxedo_tone4","1F935-1F3FF-200D-2640-FE0F":"woman_in_tuxedo_tone5","1F935-200D-2642-FE0F":"man_in_tuxedo","1F935-1F3FB-200D-2642-FE0F":"man_in_tuxedo_tone1","1F935-1F3FC-200D-2642-FE0F":"man_in_tuxedo_tone2","1F935-1F3FD-200D-2642-FE0F":"man_in_tuxedo_tone3","1F935-1F3FE-200D-2642-FE0F":"man_in_tuxedo_tone4","1F935-1F3FF-200D-2642-FE0F":"man_in_tuxedo_tone5","1F937-200D-2640-FE0F":"woman_shrugging","1F937-1F3FB-200D-2640-FE0F":"woman_shrugging_tone1","1F937-1F3FC-200D-2640-FE0F":"woman_shrugging_tone2","1F937-1F3FD-200D-2640-FE0F":"woman_shrugging_tone3","1F937-1F3FE-200D-2640-FE0F":"woman_shrugging_tone4","1F937-1F3FF-200D-2640-FE0F":"woman_shrugging_tone5","1F937-200D-2642-FE0F":"man_shrugging","1F937-1F3FB-200D-2642-FE0F":"man_shrugging_tone1","1F937-1F3FC-200D-2642-FE0F":"man_shrugging_tone2","1F937-1F3FD-200D-2642-FE0F":"man_shrugging_tone3","1F937-1F3FE-200D-2642-FE0F":"man_shrugging_tone4","1F937-1F3FF-200D-2642-FE0F":"man_shrugging_tone5","1F938-200D-2640-FE0F":"woman_cartwheeling","1F938-1F3FB-200D-2640-FE0F":"woman_cartwheeling_tone1","1F938-1F3FC-200D-2640-FE0F":"woman_cartwheeling_tone2","1F938-1F3FD-200D-2640-FE0F":"woman_cartwheeling_tone3","1F938-1F3FE-200D-2640-FE0F":"woman_cartwheeling_tone4","1F938-1F3FF-200D-2640-FE0F":"woman_cartwheeling_tone5","1F938-200D-2642-FE0F":"man_cartwheeling","1F938-1F3FB-200D-2642-FE0F":"man_cartwheeling_tone1","1F938-1F3FC-200D-2642-FE0F":"man_cartwheeling_tone2","1F938-1F3FD-200D-2642-FE0F":"man_cartwheeling_tone3","1F938-1F3FE-200D-2642-FE0F":"man_cartwheeling_tone4","1F938-1F3FF-200D-2642-FE0F":"man_cartwheeling_tone5","1F939-200D-2640-FE0F":"woman_juggling","1F939-1F3FB-200D-2640-FE0F":"woman_juggling_tone1","1F939-1F3FC-200D-2640-FE0F":"woman_juggling_tone2","1F939-1F3FD-200D-2640-FE0F":"woman_juggling_tone3","1F939-1F3FE-200D-2640-FE0F":"woman_juggling_tone4","1F939-1F3FF-200D-2640-FE0F":"woman_juggling_tone5","1F939-200D-2642-FE0F":"man_juggling","1F939-1F3FB-200D-2642-FE0F":"man_juggling_tone1","1F939-1F3FC-200D-2642-FE0F":"man_juggling_tone2","1F939-1F3FD-200D-2642-FE0F":"man_juggling_tone3","1F939-1F3FE-200D-2642-FE0F":"man_juggling_tone4","1F939-1F3FF-200D-2642-FE0F":"man_juggling_tone5","1F93C-200D-2640-FE0F":"women_wrestling","1F93C-200D-2642-FE0F":"men_wrestling","1F93D-200D-2640-FE0F":"woman_playing_water_polo","1F93D-1F3FB-200D-2640-FE0F":"woman_playing_water_polo_tone1","1F93D-1F3FC-200D-2640-FE0F":"woman_playing_water_polo_tone2","1F93D-1F3FD-200D-2640-FE0F":"woman_playing_water_polo_tone3","1F93D-1F3FE-200D-2640-FE0F":"woman_playing_water_polo_tone4","1F93D-1F3FF-200D-2640-FE0F":"woman_playing_water_polo_tone5","1F93D-200D-2642-FE0F":"man_playing_water_polo","1F93D-1F3FB-200D-2642-FE0F":"man_playing_water_polo_tone1","1F93D-1F3FC-200D-2642-FE0F":"man_playing_water_polo_tone2","1F93D-1F3FD-200D-2642-FE0F":"man_playing_water_polo_tone3","1F93D-1F3FE-200D-2642-FE0F":"man_playing_water_polo_tone4","1F93D-1F3FF-200D-2642-FE0F":"man_playing_water_polo_tone5","1F93E-200D-2640-FE0F":"woman_playing_handball","1F93E-1F3FB-200D-2640-FE0F":"woman_playing_handball_tone1","1F93E-1F3FC-200D-2640-FE0F":"woman_playing_handball_tone2","1F93E-1F3FD-200D-2640-FE0F":"woman_playing_handball_tone3","1F93E-1F3FE-200D-2640-FE0F":"woman_playing_handball_tone4","1F93E-1F3FF-200D-2640-FE0F":"woman_playing_handball_tone5","1F93E-200D-2642-FE0F":"man_playing_handball","1F93E-1F3FB-200D-2642-FE0F":"man_playing_handball_tone1","1F93E-1F3FC-200D-2642-FE0F":"man_playing_handball_tone2","1F93E-1F3FD-200D-2642-FE0F":"man_playing_handball_tone3","1F93E-1F3FE-200D-2642-FE0F":"man_playing_handball_tone4","1F93E-1F3FF-200D-2642-FE0F":"man_playing_handball_tone5","1F9B8-200D-2640-FE0F":"woman_superhero","1F9B8-1F3FB-200D-2640-FE0F":"woman_superhero_tone1","1F9B8-1F3FC-200D-2640-FE0F":"woman_superhero_tone2","1F9B8-1F3FD-200D-2640-FE0F":"woman_superhero_tone3","1F9B8-1F3FE-200D-2640-FE0F":"woman_superhero_tone4","1F9B8-1F3FF-200D-2640-FE0F":"woman_superhero_tone5","1F9B8-200D-2642-FE0F":"man_superhero","1F9B8-1F3FB-200D-2642-FE0F":"man_superhero_tone1","1F9B8-1F3FC-200D-2642-FE0F":"man_superhero_tone2","1F9B8-1F3FD-200D-2642-FE0F":"man_superhero_tone3","1F9B8-1F3FE-200D-2642-FE0F":"man_superhero_tone4","1F9B8-1F3FF-200D-2642-FE0F":"man_superhero_tone5","1F9B9-200D-2640-FE0F":"woman_supervillain","1F9B9-1F3FB-200D-2640-FE0F":"woman_supervillain_tone1","1F9B9-1F3FC-200D-2640-FE0F":"woman_supervillain_tone2","1F9B9-1F3FD-200D-2640-FE0F":"woman_supervillain_tone3","1F9B9-1F3FE-200D-2640-FE0F":"woman_supervillain_tone4","1F9B9-1F3FF-200D-2640-FE0F":"woman_supervillain_tone5","1F9B9-200D-2642-FE0F":"man_supervillain","1F9B9-1F3FB-200D-2642-FE0F":"man_supervillain_tone1","1F9B9-1F3FC-200D-2642-FE0F":"man_supervillain_tone2","1F9B9-1F3FD-200D-2642-FE0F":"man_supervillain_tone3","1F9B9-1F3FE-200D-2642-FE0F":"man_supervillain_tone4","1F9B9-1F3FF-200D-2642-FE0F":"man_supervillain_tone5","1F9CD-200D-2640-FE0F":"woman_standing","1F9CD-1F3FB-200D-2640-FE0F":"woman_standing_tone1","1F9CD-1F3FC-200D-2640-FE0F":"woman_standing_tone2","1F9CD-1F3FD-200D-2640-FE0F":"woman_standing_tone3","1F9CD-1F3FE-200D-2640-FE0F":"woman_standing_tone4","1F9CD-1F3FF-200D-2640-FE0F":"woman_standing_tone5","1F9CD-200D-2642-FE0F":"man_standing","1F9CD-1F3FB-200D-2642-FE0F":"man_standing_tone1","1F9CD-1F3FC-200D-2642-FE0F":"man_standing_tone2","1F9CD-1F3FD-200D-2642-FE0F":"man_standing_tone3","1F9CD-1F3FE-200D-2642-FE0F":"man_standing_tone4","1F9CD-1F3FF-200D-2642-FE0F":"man_standing_tone5","1F9CE-200D-2640-FE0F":"woman_kneeling","1F9CE-1F3FB-200D-2640-FE0F":"woman_kneeling_tone1","1F9CE-1F3FC-200D-2640-FE0F":"woman_kneeling_tone2","1F9CE-1F3FD-200D-2640-FE0F":"woman_kneeling_tone3","1F9CE-1F3FE-200D-2640-FE0F":"woman_kneeling_tone4","1F9CE-1F3FF-200D-2640-FE0F":"woman_kneeling_tone5","1F9CE-200D-2640-FE0F-200D-27A1-FE0F":"woman_kneeling_right","1F9CE-1F3FB-200D-2640-FE0F-200D-27A1-FE0F":"woman_kneeling_right_tone1","1F9CE-1F3FC-200D-2640-FE0F-200D-27A1-FE0F":"woman_kneeling_right_tone2","1F9CE-1F3FD-200D-2640-FE0F-200D-27A1-FE0F":"woman_kneeling_right_tone3","1F9CE-1F3FE-200D-2640-FE0F-200D-27A1-FE0F":"woman_kneeling_right_tone4","1F9CE-1F3FF-200D-2640-FE0F-200D-27A1-FE0F":"woman_kneeling_right_tone5","1F9CE-200D-2642-FE0F":"man_kneeling","1F9CE-1F3FB-200D-2642-FE0F":"man_kneeling_tone1","1F9CE-1F3FC-200D-2642-FE0F":"man_kneeling_tone2","1F9CE-1F3FD-200D-2642-FE0F":"man_kneeling_tone3","1F9CE-1F3FE-200D-2642-FE0F":"man_kneeling_tone4","1F9CE-1F3FF-200D-2642-FE0F":"man_kneeling_tone5","1F9CE-200D-2642-FE0F-200D-27A1-FE0F":"man_kneeling_right","1F9CE-1F3FB-200D-2642-FE0F-200D-27A1-FE0F":"man_kneeling_right_tone1","1F9CE-1F3FC-200D-2642-FE0F-200D-27A1-FE0F":"man_kneeling_right_tone2","1F9CE-1F3FD-200D-2642-FE0F-200D-27A1-FE0F":"man_kneeling_right_tone3","1F9CE-1F3FE-200D-2642-FE0F-200D-27A1-FE0F":"man_kneeling_right_tone4","1F9CE-1F3FF-200D-2642-FE0F-200D-27A1-FE0F":"man_kneeling_right_tone5","1F9CF-200D-2640-FE0F":"deaf_woman","1F9CF-1F3FB-200D-2640-FE0F":"deaf_woman_tone1","1F9CF-1F3FC-200D-2640-FE0F":"deaf_woman_tone2","1F9CF-1F3FD-200D-2640-FE0F":"deaf_woman_tone3","1F9CF-1F3FE-200D-2640-FE0F":"deaf_woman_tone4","1F9CF-1F3FF-200D-2640-FE0F":"deaf_woman_tone5","1F9CF-200D-2642-FE0F":"deaf_man","1F9CF-1F3FB-200D-2642-FE0F":"deaf_man_tone1","1F9CF-1F3FC-200D-2642-FE0F":"deaf_man_tone2","1F9CF-1F3FD-200D-2642-FE0F":"deaf_man_tone3","1F9CF-1F3FE-200D-2642-FE0F":"deaf_man_tone4","1F9CF-1F3FF-200D-2642-FE0F":"deaf_man_tone5","1F9D4-200D-2640-FE0F":"woman_bearded","1F9D4-1F3FB-200D-2640-FE0F":"woman_bearded_tone1","1F9D4-1F3FC-200D-2640-FE0F":"woman_bearded_tone2","1F9D4-1F3FD-200D-2640-FE0F":"woman_bearded_tone3","1F9D4-1F3FE-200D-2640-FE0F":"woman_bearded_tone4","1F9D4-1F3FF-200D-2640-FE0F":"woman_bearded_tone5","1F9D4-200D-2642-FE0F":"man_bearded","1F9D4-1F3FB-200D-2642-FE0F":"man_bearded_tone1","1F9D4-1F3FC-200D-2642-FE0F":"man_bearded_tone2","1F9D4-1F3FD-200D-2642-FE0F":"man_bearded_tone3","1F9D4-1F3FE-200D-2642-FE0F":"man_bearded_tone4","1F9D4-1F3FF-200D-2642-FE0F":"man_bearded_tone5","1F9D6-200D-2640-FE0F":"woman_in_steamy_room","1F9D6-1F3FB-200D-2640-FE0F":"woman_in_steamy_room_tone1","1F9D6-1F3FC-200D-2640-FE0F":"woman_in_steamy_room_tone2","1F9D6-1F3FD-200D-2640-FE0F":"woman_in_steamy_room_tone3","1F9D6-1F3FE-200D-2640-FE0F":"woman_in_steamy_room_tone4","1F9D6-1F3FF-200D-2640-FE0F":"woman_in_steamy_room_tone5","1F9D6-200D-2642-FE0F":"man_in_steamy_room","1F9D6-1F3FB-200D-2642-FE0F":"man_in_steamy_room_tone1","1F9D6-1F3FC-200D-2642-FE0F":"man_in_steamy_room_tone2","1F9D6-1F3FD-200D-2642-FE0F":"man_in_steamy_room_tone3","1F9D6-1F3FE-200D-2642-FE0F":"man_in_steamy_room_tone4","1F9D6-1F3FF-200D-2642-FE0F":"man_in_steamy_room_tone5","1F9D7-200D-2640-FE0F":"woman_climbing","1F9D7-1F3FB-200D-2640-FE0F":"woman_climbing_tone1","1F9D7-1F3FC-200D-2640-FE0F":"woman_climbing_tone2","1F9D7-1F3FD-200D-2640-FE0F":"woman_climbing_tone3","1F9D7-1F3FE-200D-2640-FE0F":"woman_climbing_tone4","1F9D7-1F3FF-200D-2640-FE0F":"woman_climbing_tone5","1F9D7-200D-2642-FE0F":"man_climbing","1F9D7-1F3FB-200D-2642-FE0F":"man_climbing_tone1","1F9D7-1F3FC-200D-2642-FE0F":"man_climbing_tone2","1F9D7-1F3FD-200D-2642-FE0F":"man_climbing_tone3","1F9D7-1F3FE-200D-2642-FE0F":"man_climbing_tone4","1F9D7-1F3FF-200D-2642-FE0F":"man_climbing_tone5","1F9D8-200D-2640-FE0F":"woman_in_lotus_position","1F9D8-1F3FB-200D-2640-FE0F":"woman_in_lotus_position_tone1","1F9D8-1F3FC-200D-2640-FE0F":"woman_in_lotus_position_tone2","1F9D8-1F3FD-200D-2640-FE0F":"woman_in_lotus_position_tone3","1F9D8-1F3FE-200D-2640-FE0F":"woman_in_lotus_position_tone4","1F9D8-1F3FF-200D-2640-FE0F":"woman_in_lotus_position_tone5","1F9D8-200D-2642-FE0F":"man_in_lotus_position","1F9D8-1F3FB-200D-2642-FE0F":"man_in_lotus_position_tone1","1F9D8-1F3FC-200D-2642-FE0F":"man_in_lotus_position_tone2","1F9D8-1F3FD-200D-2642-FE0F":"man_in_lotus_position_tone3","1F9D8-1F3FE-200D-2642-FE0F":"man_in_lotus_position_tone4","1F9D8-1F3FF-200D-2642-FE0F":"man_in_lotus_position_tone5","1F9D9-200D-2640-FE0F":"woman_mage","1F9D9-1F3FB-200D-2640-FE0F":"woman_mage_tone1","1F9D9-1F3FC-200D-2640-FE0F":"woman_mage_tone2","1F9D9-1F3FD-200D-2640-FE0F":"woman_mage_tone3","1F9D9-1F3FE-200D-2640-FE0F":"woman_mage_tone4","1F9D9-1F3FF-200D-2640-FE0F":"woman_mage_tone5","1F9D9-200D-2642-FE0F":"man_mage","1F9D9-1F3FB-200D-2642-FE0F":"man_mage_tone1","1F9D9-1F3FC-200D-2642-FE0F":"man_mage_tone2","1F9D9-1F3FD-200D-2642-FE0F":"man_mage_tone3","1F9D9-1F3FE-200D-2642-FE0F":"man_mage_tone4","1F9D9-1F3FF-200D-2642-FE0F":"man_mage_tone5","1F9DA-200D-2640-FE0F":"woman_fairy","1F9DA-1F3FB-200D-2640-FE0F":"woman_fairy_tone1","1F9DA-1F3FC-200D-2640-FE0F":"woman_fairy_tone2","1F9DA-1F3FD-200D-2640-FE0F":"woman_fairy_tone3","1F9DA-1F3FE-200D-2640-FE0F":"woman_fairy_tone4","1F9DA-1F3FF-200D-2640-FE0F":"woman_fairy_tone5","1F9DA-200D-2642-FE0F":"man_fairy","1F9DA-1F3FB-200D-2642-FE0F":"man_fairy_tone1","1F9DA-1F3FC-200D-2642-FE0F":"man_fairy_tone2","1F9DA-1F3FD-200D-2642-FE0F":"man_fairy_tone3","1F9DA-1F3FE-200D-2642-FE0F":"man_fairy_tone4","1F9DA-1F3FF-200D-2642-FE0F":"man_fairy_tone5","1F9DB-200D-2640-FE0F":"woman_vampire","1F9DB-1F3FB-200D-2640-FE0F":"woman_vampire_tone1","1F9DB-1F3FC-200D-2640-FE0F":"woman_vampire_tone2","1F9DB-1F3FD-200D-2640-FE0F":"woman_vampire_tone3","1F9DB-1F3FE-200D-2640-FE0F":"woman_vampire_tone4","1F9DB-1F3FF-200D-2640-FE0F":"woman_vampire_tone5","1F9DB-200D-2642-FE0F":"man_vampire","1F9DB-1F3FB-200D-2642-FE0F":"man_vampire_tone1","1F9DB-1F3FC-200D-2642-FE0F":"man_vampire_tone2","1F9DB-1F3FD-200D-2642-FE0F":"man_vampire_tone3","1F9DB-1F3FE-200D-2642-FE0F":"man_vampire_tone4","1F9DB-1F3FF-200D-2642-FE0F":"man_vampire_tone5","1F9DC-200D-2640-FE0F":"mermaid","1F9DC-1F3FB-200D-2640-FE0F":"mermaid_tone1","1F9DC-1F3FC-200D-2640-FE0F":"mermaid_tone2","1F9DC-1F3FD-200D-2640-FE0F":"mermaid_tone3","1F9DC-1F3FE-200D-2640-FE0F":"mermaid_tone4","1F9DC-1F3FF-200D-2640-FE0F":"mermaid_tone5","1F9DC-200D-2642-FE0F":"merman","1F9DC-1F3FB-200D-2642-FE0F":"merman_tone1","1F9DC-1F3FC-200D-2642-FE0F":"merman_tone2","1F9DC-1F3FD-200D-2642-FE0F":"merman_tone3","1F9DC-1F3FE-200D-2642-FE0F":"merman_tone4","1F9DC-1F3FF-200D-2642-FE0F":"merman_tone5","1F9DD-200D-2640-FE0F":"woman_elf","1F9DD-1F3FB-200D-2640-FE0F":"woman_elf_tone1","1F9DD-1F3FC-200D-2640-FE0F":"woman_elf_tone2","1F9DD-1F3FD-200D-2640-FE0F":"woman_elf_tone3","1F9DD-1F3FE-200D-2640-FE0F":"woman_elf_tone4","1F9DD-1F3FF-200D-2640-FE0F":"woman_elf_tone5","1F9DD-200D-2642-FE0F":"man_elf","1F9DD-1F3FB-200D-2642-FE0F":"man_elf_tone1","1F9DD-1F3FC-200D-2642-FE0F":"man_elf_tone2","1F9DD-1F3FD-200D-2642-FE0F":"man_elf_tone3","1F9DD-1F3FE-200D-2642-FE0F":"man_elf_tone4","1F9DD-1F3FF-200D-2642-FE0F":"man_elf_tone5","1F9DE-200D-2640-FE0F":"woman_genie","1F9DE-200D-2642-FE0F":"man_genie","1F9DF-200D-2640-FE0F":"woman_zombie","1F9DF-200D-2642-FE0F":"man_zombie","1F468-200D-1F9B0":"man_red_haired","1F468-1F3FB-200D-1F9B0":"man_red_haired_tone1","1F468-1F3FC-200D-1F9B0":"man_red_haired_tone2","1F468-1F3FD-200D-1F9B0":"man_red_haired_tone3","1F468-1F3FE-200D-1F9B0":"man_red_haired_tone4","1F468-1F3FF-200D-1F9B0":"man_red_haired_tone5","1F468-200D-1F9B1":"man_curly_haired","1F468-1F3FB-200D-1F9B1":"man_curly_haired_tone1","1F468-1F3FC-200D-1F9B1":"man_curly_haired_tone2","1F468-1F3FD-200D-1F9B1":"man_curly_haired_tone3","1F468-1F3FE-200D-1F9B1":"man_curly_haired_tone4","1F468-1F3FF-200D-1F9B1":"man_curly_haired_tone5","1F468-200D-1F9B2":"man_bald","1F468-1F3FB-200D-1F9B2":"man_bald_tone1","1F468-1F3FC-200D-1F9B2":"man_bald_tone2","1F468-1F3FD-200D-1F9B2":"man_bald_tone3","1F468-1F3FE-200D-1F9B2":"man_bald_tone4","1F468-1F3FF-200D-1F9B2":"man_bald_tone5","1F468-200D-1F9B3":"man_white_haired","1F468-1F3FB-200D-1F9B3":"man_white_haired_tone1","1F468-1F3FC-200D-1F9B3":"man_white_haired_tone2","1F468-1F3FD-200D-1F9B3":"man_white_haired_tone3","1F468-1F3FE-200D-1F9B3":"man_white_haired_tone4","1F468-1F3FF-200D-1F9B3":"man_white_haired_tone5","1F469-200D-1F9B0":"woman_red_haired","1F469-1F3FB-200D-1F9B0":"woman_red_haired_tone1","1F469-1F3FC-200D-1F9B0":"woman_red_haired_tone2","1F469-1F3FD-200D-1F9B0":"woman_red_haired_tone3","1F469-1F3FE-200D-1F9B0":"woman_red_haired_tone4","1F469-1F3FF-200D-1F9B0":"woman_red_haired_tone5","1F469-200D-1F9B1":"woman_curly_haired","1F469-1F3FB-200D-1F9B1":"woman_curly_haired_tone1","1F469-1F3FC-200D-1F9B1":"woman_curly_haired_tone2","1F469-1F3FD-200D-1F9B1":"woman_curly_haired_tone3","1F469-1F3FE-200D-1F9B1":"woman_curly_haired_tone4","1F469-1F3FF-200D-1F9B1":"woman_curly_haired_tone5","1F469-200D-1F9B2":"woman_bald","1F469-1F3FB-200D-1F9B2":"woman_bald_tone1","1F469-1F3FC-200D-1F9B2":"woman_bald_tone2","1F469-1F3FD-200D-1F9B2":"woman_bald_tone3","1F469-1F3FE-200D-1F9B2":"woman_bald_tone4","1F469-1F3FF-200D-1F9B2":"woman_bald_tone5","1F469-200D-1F9B3":"woman_white_haired","1F469-1F3FB-200D-1F9B3":"woman_white_haired_tone1","1F469-1F3FC-200D-1F9B3":"woman_white_haired_tone2","1F469-1F3FD-200D-1F9B3":"woman_white_haired_tone3","1F469-1F3FE-200D-1F9B3":"woman_white_haired_tone4","1F469-1F3FF-200D-1F9B3":"woman_white_haired_tone5","1F9D1-200D-1F9B0":"red_haired","1F9D1-1F3FB-200D-1F9B0":"red_haired_tone1","1F9D1-1F3FC-200D-1F9B0":"red_haired_tone2","1F9D1-1F3FD-200D-1F9B0":"red_haired_tone3","1F9D1-1F3FE-200D-1F9B0":"red_haired_tone4","1F9D1-1F3FF-200D-1F9B0":"red_haired_tone5","1F9D1-200D-1F9B1":"curly_haired","1F9D1-1F3FB-200D-1F9B1":"curly_haired_tone1","1F9D1-1F3FC-200D-1F9B1":"curly_haired_tone2","1F9D1-1F3FD-200D-1F9B1":"curly_haired_tone3","1F9D1-1F3FE-200D-1F9B1":"curly_haired_tone4","1F9D1-1F3FF-200D-1F9B1":"curly_haired_tone5","1F9D1-200D-1F9B2":"bald","1F9D1-1F3FB-200D-1F9B2":"bald_tone1","1F9D1-1F3FC-200D-1F9B2":"bald_tone2","1F9D1-1F3FD-200D-1F9B2":"bald_tone3","1F9D1-1F3FE-200D-1F9B2":"bald_tone4","1F9D1-1F3FF-200D-1F9B2":"bald_tone5","1F9D1-200D-1F9B3":"white_haired","1F9D1-1F3FB-200D-1F9B3":"white_haired_tone1","1F9D1-1F3FC-200D-1F9B3":"white_haired_tone2","1F9D1-1F3FD-200D-1F9B3":"white_haired_tone3","1F9D1-1F3FE-200D-1F9B3":"white_haired_tone4","1F9D1-1F3FF-200D-1F9B3":"white_haired_tone5","26D3-FE0F-200D-1F4A5":"broken_chain","2764-FE0F-200D-1F525":"heart_on_fire","2764-FE0F-200D-1FA79":"mending_heart","1F344-200D-1F7EB":"brown_mushroom","1F34B-200D-1F7E9":"lime","1F3F3-FE0F-200D-26A7-FE0F":"transgender_flag","1F3F3-FE0F-200D-1F308":"rainbow_flag","1F3F4-200D-2620-FE0F":["jolly_roger","pirate_flag"],"1F408-200D-2B1B":"black_cat","1F415-200D-1F9BA":"service_dog","1F426-200D-2B1B":"black_bird","1F426-200D-1F525":"phoenix","1F43B-200D-2744-FE0F":["polar_bear","polar_bear_face"],"1F441-FE0F-200D-1F5E8-FE0F":"eye_in_speech_bubble","1F62E-200D-1F4A8":["exhale","exhaling"],"1F635-200D-1F4AB":"dizzy_eyes","1F636-200D-1F32B-FE0F":"in_clouds","1F642-200D-2194-FE0F":"head_shaking_horizontally","1F642-200D-2195-FE0F":"head_shaking_vertically"};var ui=(t=>(t.People="People",t.Nature="Nature",t.Food="Food",t.Activity="Activity",t.Travel="Travel",t.Object="Object",t.Symbol="Symbol",t.Flag="Flag",t))(ui||{});const c4e=t=>kG[t]||SG[t],kj=t=>{const e=kG[t]||SG[t];return Array.isArray(e)?e[0]:e},Sj=u4e,jj=[{id:"People",order:0,emojis:[]},{id:"Nature",order:1,emojis:[]},{id:"Food",order:2,emojis:[]},{id:"Activity",order:3,emojis:[]},{id:"Travel",order:4,emojis:[]},{id:"Object",order:5,emojis:[]},{id:"Symbol",order:6,emojis:[]},{id:"Flag",order:7,emojis:[]}],C8=[];function d4e(t,e){jj[t].emojis.push(e)}function h4e(t){if(t.group===0||t.group===1)return 0;if(t.group===3)return 1;if(t.group===4)return 2;if(t.group===6)return 3;if(t.group===5)return 4;if(t.group===7)return 5;if(t.group===8||typeof t.group>"u")return 6;if(t.group===9)return 7}l4e.forEach(t=>{const e=c4e(t.hexcode);if(!e||Array.isArray(e)&&e.length===0)return;const n={...t,shortcode:Array.isArray(e)?e[0]:e,shortcodes:Array.isArray(e)?e:t.shortcodes},r=h4e(n);r!==void 0&&(d4e(r,n),C8.push(n))});const E8=(t,e,n,r)=>{const o=[];let i=0,s=e.exec(t);for(;s!==null&&typeof s.index=="number";)o.push(r(t.slice(i,s.index),o.length)),o.push(n(s,o.length)),i=s.index+s[0].length,e.global&&(s=e.exec(t));return o.push(r(t.slice(i),o.length)),o},F4e=f.lazy(()=>$D(()=>import("./ReactPrism-BzyPOlMS.js"),__vite__mapDeps([0,1]))),m4e=new RegExp(`${Tfe}(${fH})`,"g"),Hh={attributes:{target:"_blank",rel:"noreferrer noopener"},validate:{url:t=>/^(https|http|ftp|mailto|magnet)?:/.test(t)},ignoreTags:["span"]},k3=(t,e)=>({style:{cursor:"pointer"},target:"_blank",rel:"noreferrer noopener",role:"link",tabIndex:t?0:-1,onKeyDown:t?gp(t):void 0,onClick:t,children:e}),S3=(t,e,n,r)=>{const o=uK(n);if(o){const u=t.getRoom(e);return a.jsx("a",{href:n,...r,className:b8({highlight:t.getUserId()===o}),"data-mention-id":o,children:`@${(u&&wr(u,o))??ln(o)}`})}const i=lK(n);if(i){const{roomIdOrAlias:u,viaServers:l}=i,c=t.getRoom(Rs(u)?jf(t,u):u),d=c?`#${c.name}`:u;return a.jsx("a",{href:n,...r,className:b8({highlight:e===((c==null?void 0:c.roomId)??u)}),"data-mention-id":(c==null?void 0:c.roomId)??u,"data-mention-via":l==null?void 0:l.join(","),children:r.children?r.children:d})}const s=cK(n);if(s){const{roomIdOrAlias:u,eventId:l,viaServers:c}=s,d=t.getRoom(Rs(u)?jf(t,u):u);return a.jsx("a",{href:n,...r,className:b8({highlight:e===((d==null?void 0:d.roomId)??u)}),"data-mention-id":(d==null?void 0:d.roomId)??u,"data-mention-event-id":l,"data-mention-via":c==null?void 0:c.join(","),children:r.children?r.children:`Message: ${d?`#${d.name}`:u}`})}},y8=t=>({tagName:e,attributes:n,content:r})=>{if(e==="a"&&vE(pd(n.href))){const o=t(pd(n.href));if(o)return o}return a.jsx("a",{...n,children:r})},j3=t=>E8(t,m4e,(e,n)=>a.jsx("span",{className:xj,children:a.jsx("span",{className:yj(),title:kj(Sj(e[0])),children:e[0]})},`scaleSystemEmoji-${n}`),e=>e),D4e=t=>{const e=t.map(Bf).join("|");if(e)return new RegExp(e,"gi")},jG=(t,e)=>e.flatMap(n=>typeof n!="string"?n:E8(n,t,(r,o)=>a.jsx("span",{className:a4e,children:r[0]},`highlight-${o}`),r=>r)),x8=(t,e,n)=>{const r={replace:o=>{if(o instanceof Mye&&"name"in o){const{name:i,attribs:s,children:u,parent:l}=o,c=Oye(s);if(i==="h1")return a.jsx(x,{...c,className:Uu,size:"H2",children:ra(u,r)});if(i==="h2")return a.jsx(x,{...c,className:Uu,size:"H3",children:ra(u,r)});if(i==="h3")return a.jsx(x,{...c,className:Uu,size:"H4",children:ra(u,r)});if(i==="h4")return a.jsx(x,{...c,className:Uu,size:"H4",children:ra(u,r)});if(i==="h5")return a.jsx(x,{...c,className:Uu,size:"H5",children:ra(u,r)});if(i==="h6")return a.jsx(x,{...c,className:Uu,size:"H6",children:ra(u,r)});if(i==="p")return a.jsx(x,{...c,className:Ve(wj,i4e),size:"Inherit",children:ra(u,r)});if(i==="pre")return a.jsx(x,{...c,as:"pre",className:EG,children:a.jsx(Mt,{direction:"Horizontal",variant:"Secondary",size:"300",visibility:"Hover",hideTrack:!0,children:a.jsx("div",{className:yG,children:ra(u,r)})})});if(i==="blockquote")return a.jsx(x,{...c,size:"Inherit",as:"blockquote",className:CG,children:ra(u,r)});if(i==="ul")return a.jsx("ul",{...c,className:v8,children:ra(u,r)});if(i==="ol")return a.jsx("ol",{...c,className:v8,children:ra(u,r)});if(i==="code")if(l&&"name"in l&&l.name==="pre"){const d=ra(u,r);if(typeof d=="string"){let F=c.className;return F==="language-rs"?F="language-rust":F==="language-js"?F="language-javascript":F==="language-ts"&&(F="language-typescript"),a.jsx(bG,{fallback:a.jsx("code",{...c,children:d}),children:a.jsx(f.Suspense,{fallback:a.jsx("code",{...c,children:d}),children:a.jsx(F4e,{children:h=>a.jsx("code",{ref:h,...c,className:F,children:d})})})})}}else return a.jsx("code",{className:nc,...c,children:ra(u,r)});if(i==="a"&&vE(pd(c.href))){const d=u.find(h=>!(h instanceof ij))?void 0:u.map(h=>h instanceof ij?h.data:"").join(),F=S3(t,e,pd(c.href),k3(n.handleMentionClick,d));if(F)return F}if(i==="span"&&"data-mx-spoiler"in c)return a.jsx("span",{...c,role:"button",tabIndex:n.handleSpoilerClick?0:-1,onKeyDown:n.handleSpoilerClick,onClick:n.handleSpoilerClick,className:wG(),"aria-pressed":!0,style:{cursor:"pointer"},children:ra(u,r)});if(i==="img"){const d=Xt(t,c.src,n.useAuthentication);if(d&&c.src.startsWith("mxc://")===!1)return a.jsx("a",{href:d,target:"_blank",rel:"noreferrer noopener",children:c.alt||c.title||d});if(d&&"data-mx-emoticon"in c)return a.jsx("span",{className:xj,children:a.jsx("span",{className:yj(),children:a.jsx("img",{...c,className:xG,src:d})})});if(d)return a.jsx("img",{...c,className:r4e,src:d})}}if(o instanceof ij){const i=!(o.parent&&"name"in o.parent&&o.parent.name==="code")&&!(o.parent&&"name"in o.parent&&o.parent.name==="a");let s=j3(o.data);return n.highlightRegex&&(s=jG(n.highlightRegex,s)),i?a.jsx(w3,{options:n.linkifyOpts,children:s}):s}}};return r},w8=(t,e,n)=>(r,o,...i)=>{const s=t[r];return t[r]?s(...i):o&&e?e(...i):!o&&n?n(...i):null};var g4e="_161nxveo",p4e="_161nxvep",f4e="_161nxver",_4e="_161nxven _1mqalmd1 _1mqalmd0 _161nxve0",v4e=br({defaultClassName:"_161nxvec _1mqalmd1 _1mqalmd0",variantClassNames:{space:{0:"_161nxve2",100:"_161nxve3",200:"_161nxve4",300:"_161nxve5",400:"_161nxve6",500:"_161nxve7"},collapse:{true:"_161nxvej"},autoCollapse:{true:"_161nxveb"},highlight:{true:"_161nxve9"},selected:{true:"_161nxvea"}},defaultVariants:{space:"400"},compoundVariants:[]}),b4e=br({defaultClassName:"_161nxveu",variantClassNames:{preWrap:{true:"_161nxvev"},jumboEmoji:{true:"_161nxvew"},emote:{true:"_161nxvex"}},defaultVariants:{},compoundVariants:[]}),C4e="_161nxvep",E4e="_161nxves",y4e="_161nxvet";const Rm=Ie(({before:t,children:e,...n},r)=>a.jsxs(y,{gap:"300",...n,ref:r,children:[a.jsx(y,{className:C4e,shrink:"No",children:t}),a.jsx(y,{grow:"Yes",direction:"Column",children:e})]})),Bj=Ie(({before:t,children:e,...n},r)=>a.jsxs(y,{gap:"200",...n,ref:r,children:[a.jsx(y,{className:_4e,gap:"200",shrink:"No",children:t}),e]})),x4e=Ie(({before:t,children:e,...n},r)=>a.jsxs(y,{gap:"300",...n,ref:r,children:[a.jsx(y,{className:p4e,shrink:"No",children:t}),a.jsx(y,{className:f4e,direction:"Column",children:e})]})),xo=Ie(({className:t,highlight:e,selected:n,collapse:r,autoCollapse:o,space:i,...s},u)=>a.jsx("div",{className:Ve(v4e({highlight:e,selected:n,collapse:r,autoCollapse:o,space:i}),t),...s,ref:u})),k8=Ie(({className:t,...e},n)=>a.jsx("span",{className:Ve(g4e,t),...e,ref:n})),S8=Ie(({as:t="span",className:e,...n},r)=>a.jsx(t,{className:Ve(E4e,e),...n,ref:r})),j8=Ie(({as:t="b",className:e,...n},r)=>a.jsx(t,{className:Ve(y4e,e),...n,ref:r})),Aj=Ie(({as:t="div",className:e,preWrap:n,jumboEmoji:r,emote:o,notice:i,...s},u)=>a.jsx(x,{as:t,size:"T400",priority:i?"300":"400",className:Ve(b4e({preWrap:n,jumboEmoji:r,emote:o}),e),...s,ref:u}));var w4e=br({defaultClassName:"m3htbj0 _1mqalmd1 _1mqalmd0",variantClassNames:{variant:{Background:"m3htbj1",Surface:"m3htbj2",SurfaceVariant:"m3htbj3",Primary:"m3htbj4",Secondary:"m3htbj5",Success:"m3htbj6",Warning:"m3htbj7",Critical:"m3htbj8"}},defaultVariants:{variant:"SurfaceVariant"},compoundVariants:[]});const qd=Ie(({className:t,variant:e,...n},r)=>a.jsx(y,{className:Ve(w4e({variant:e}),t),shrink:"No",...n,ref:r})),Vu=Ie(({variant:t,...e},n)=>{const r=f.useMemo(()=>mF(40,100),[]),o=f.useMemo(()=>mF(120,500),[]);return a.jsx(Bj,{...e,ref:n,before:a.jsxs(a.Fragment,{children:[a.jsx(qd,{variant:t,style:{maxWidth:Dt(50)}}),a.jsx(qd,{variant:t,style:{maxWidth:Dt(r)}})]}),children:a.jsx(qd,{variant:t,style:{maxWidth:Dt(o)}})})}),k4e={marginTop:Dt(3)},$h=Ie(({variant:t,...e},n)=>{const r=f.useMemo(()=>mF(40,100),[]),o=f.useMemo(()=>mF(80,200),[]),i=f.useMemo(()=>mF(80,200),[]);return a.jsx(Rm,{...e,ref:n,before:a.jsx(Rt,{style:{backgroundColor:ct[t??"SurfaceVariant"].Container},size:"300"}),children:a.jsxs(y,{style:k4e,grow:"Yes",direction:"Column",gap:"200",children:[a.jsxs(y,{grow:"Yes",gap:"200",alignItems:"Center",justifyContent:"SpaceBetween",children:[a.jsx(qd,{variant:t,style:{maxWidth:Dt(r)}}),a.jsx(qd,{variant:t,style:{maxWidth:Dt(50)}})]}),a.jsxs(y,{grow:"Yes",gap:"200",wrap:"Wrap",children:[a.jsx(qd,{variant:t,style:{maxWidth:Dt(o)}}),a.jsx(qd,{variant:t,style:{maxWidth:Dt(i)}})]})]})})});var S4e="fuve4i5 _1bugis90",j4e="fuve4i7 _1mqalmd1 _1mqalmd0",B4e="fuve4i6 _1mqalmd1 _1mqalmd0";const BG=Ie(({className:t,mx:e,count:n,reaction:r,useAuthentication:o,...i},s)=>a.jsxs(y,{as:"button",className:Ve(S4e,t),alignItems:"Center",shrink:"No",gap:"200",...i,ref:s,children:[a.jsx(x,{className:B4e,as:"span",size:"T400",children:r.startsWith("mxc://")?a.jsx("img",{className:j4e,src:Xt(e,r,o)??r,alt:r}):a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:r})}),a.jsx(x,{as:"span",size:"T300",children:n})]}));function A4e({room:t,reaction:e,events:n}){var i;const r=((i=n.find(r7))==null?void 0:i.getContent().shortcode)??kj(Sj(e))??e,o=n.map(s=>wr(t,s.getSender()??"Unknown")??ln(s.getSender()??"Unknown")??"Unknown");return a.jsxs(a.Fragment,{children:[o.length===1&&a.jsx("b",{children:o[0]}),o.length===2&&a.jsxs(a.Fragment,{children:[a.jsx("b",{children:o[0]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" and "}),a.jsx("b",{children:o[1]})]}),o.length===3&&a.jsxs(a.Fragment,{children:[a.jsx("b",{children:o[0]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:", "}),a.jsx("b",{children:o[1]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" and "}),a.jsx("b",{children:o[2]})]}),o.length>3&&a.jsxs(a.Fragment,{children:[a.jsx("b",{children:o[0]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:", "}),a.jsx("b",{children:o[1]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:", "}),a.jsx("b",{children:o[2]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" and "}),a.jsxs("b",{children:[o.length-3," others"]})]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" reacted with "}),":",a.jsx("b",{children:r}),":"]})}var T4e=br({defaultClassName:"_1f6snux0",variantClassNames:{outlined:{true:"_1f6snux1"}},defaultVariants:{},compoundVariants:[]}),I4e="_1f6snux3 _1mqalmd1 _1mqalmd0",R4e="_1f6snux4",O4e="_1f6snux2";const B8=Ie(({className:t,outlined:e,...n},r)=>a.jsx(y,{display:"InlineFlex",direction:"Column",className:Ve(T4e({outlined:e}),t),...n,ref:r})),Tj=Ie(({className:t,...e},n)=>a.jsx(y,{shrink:"No",gap:"200",className:Ve(O4e,t),...e,ref:n})),B3=Ie(({className:t,...e},n)=>a.jsx(y,{direction:"Column",className:Ve(I4e,t),...e,ref:n})),AG=Ie(({className:t,...e},n)=>a.jsx(y,{direction:"Column",className:Ve(R4e,t),...e,ref:n}));var M4e="_1en4l6y3",P4e="_1en4l6y4",L4e="_1en4l6y1",N4e="_1en4l6y2";const z4e=["image/jpeg","image/gif","image/png","image/apng","image/webp","image/avif"],U4e=["video/mp4","video/webm","video/ogg","video/quicktime"],V4e=["audio/mp4","audio/webm","audio/aac","audio/mpeg","audio/ogg","audio/wave","audio/wav","audio/x-wav","audio/x-pn-wav","audio/flac","audio/x-flac"],q4e=["application/pdf","application/json","application/x-sh","application/ecmascript","application/javascript","application/xhtml+xml","application/xml"],TG=["text/plain","text/html","text/css","text/javascript","text/x-c","text/csv","text/tab-separated-values","text/yaml","text/x-java-source,java","text/markdown"],IG=["application/json","application/x-sh","application/ecmascript","application/javascript","application/xhtml+xml","application/xml",...TG],RG={go:"text/go",rs:"text/rust",py:"text/python",swift:"text/swift",c:"text/c",cpp:"text/cpp",java:"text/java",kt:"text/kotlin",lua:"text/lua",php:"text/php",ts:"text/typescript",js:"text/javascript",jsx:"text/jsx",tsx:"text/tsx",html:"text/html",xhtml:"text/xhtml",xht:"text/xhtml",css:"text/css",scss:"text/scss",sass:"text/sass",json:"text/json",md:"text/markdown",yaml:"text/yaml",yni:"text/yni",xml:"text/xml",txt:"text/plain",text:"text/plain",conf:"text/conf",cfg:"text/conf",cnf:"text/conf",log:"text/log",me:"text/me",cvs:"text/cvs",tvs:"text/tvs",sql:"text/sql"},H4e=[...z4e,...U4e,...V4e,...q4e,...TG],Om="application/octet-stream",Ij=t=>{if(typeof t!="string")return Om;const[e]=t.split(";");return H4e.includes(e)?e==="video/quicktime"?"video/mp4":e:Om},$4e=t=>{const e=Ij(t.type);return e!==t.type?new File([t],t.name,{type:e}):t},Rj=t=>{const e=t.lastIndexOf("/")+1;return t.slice(e)},OG=t=>{const e=t.lastIndexOf(".")+1;return t.slice(e)},W4e=t=>{const e=t.lastIndexOf(".");return e===0||e===-1?t:t.slice(0,e)};function K4e({info:t,renderImage:e}){const n=ge(),r=Tt(),[o,i]=et(f.useCallback(async()=>{var d;const s=t.thumbnail_info,u=((d=t.thumbnail_file)==null?void 0:d.url)??t.thumbnail_url,l=t.thumbnail_file;if(typeof u!="string"||typeof(s==null?void 0:s.mimetype)!="string")throw new Error("Failed to load thumbnail");const c=Xt(n,u,r)??u;if(l){const F=await Cd(c,h=>vd(h,s.mimetype??Om,l));return URL.createObjectURL(F)}return c},[n,t,r]));return f.useEffect(()=>{i()},[i]),o.status===he.Success?e(o.data):null}var MG=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],A3=t=>{let e=0;for(let n=0;n<t.length;n++){let r=t[n],o=MG.indexOf(r);e=e*83+o}return e},T3=(t,e)=>{var n="";for(let r=1;r<=e;r++){let o=Math.floor(t)/Math.pow(83,e-r)%83;n+=MG[Math.floor(o)]}return n},Mm=t=>{let e=t/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},Pm=t=>{let e=Math.max(0,Math.min(1,t));return e<=.0031308?Math.trunc(e*12.92*255+.5):Math.trunc((1.055*Math.pow(e,.4166666666666667)-.055)*255+.5)},G4e=t=>t<0?-1:1,Lm=(t,e)=>G4e(t)*Math.pow(Math.abs(t),e),A8=class extends Error{constructor(t){super(t),this.name="ValidationError",this.message=t}},PG=t=>{if(!t||t.length<6)throw new A8("The blurhash string must be at least 6 characters");let e=A3(t[0]),n=Math.floor(e/9)+1,r=e%9+1;if(t.length!==4+2*r*n)throw new A8(`blurhash length mismatch: length is ${t.length} but it should be ${4+2*r*n}`)},Y4e=t=>{try{PG(t)}catch(e){return{result:!1,errorReason:e.message}}return{result:!0}},Z4e=t=>{let e=t>>16,n=t>>8&255,r=t&255;return[Mm(e),Mm(n),Mm(r)]},J4e=(t,e)=>{let n=Math.floor(t/361),r=Math.floor(t/19)%19,o=t%19;return[Lm((n-9)/9,2)*e,Lm((r-9)/9,2)*e,Lm((o-9)/9,2)*e]},X4e=(t,e,n,r)=>{PG(t),r=r|1;let o=A3(t[0]),i=Math.floor(o/9)+1,s=o%9+1,u=(A3(t[1])+1)/166,l=new Array(s*i);for(let F=0;F<l.length;F++)if(F===0){let h=A3(t.substring(2,6));l[F]=Z4e(h)}else{let h=A3(t.substring(4+F*2,6+F*2));l[F]=J4e(h,u*r)}let c=e*4,d=new Uint8ClampedArray(c*n);for(let F=0;F<n;F++)for(let h=0;h<e;h++){let m=0,D=0,g=0;for(let E=0;E<i;E++)for(let b=0;b<s;b++){let k=Math.cos(Math.PI*h*b/e)*Math.cos(Math.PI*F*E/n),C=l[b+E*s];m+=C[0]*k,D+=C[1]*k,g+=C[2]*k}let p=Pm(m),_=Pm(D),v=Pm(g);d[4*h+0+F*c]=p,d[4*h+1+F*c]=_,d[4*h+2+F*c]=v,d[4*h+3+F*c]=255}return d},Q4e=X4e,LG=4,exe=(t,e,n,r)=>{let o=0,i=0,s=0,u=e*LG;for(let c=0;c<e;c++){let d=LG*c;for(let F=0;F<n;F++){let h=d+F*u,m=r(c,F);o+=m*Mm(t[h]),i+=m*Mm(t[h+1]),s+=m*Mm(t[h+2])}}let l=1/(e*n);return[o*l,i*l,s*l]},txe=t=>{let e=Pm(t[0]),n=Pm(t[1]),r=Pm(t[2]);return(e<<16)+(n<<8)+r},nxe=(t,e)=>{let n=Math.floor(Math.max(0,Math.min(18,Math.floor(Lm(t[0]/e,.5)*9+9.5)))),r=Math.floor(Math.max(0,Math.min(18,Math.floor(Lm(t[1]/e,.5)*9+9.5)))),o=Math.floor(Math.max(0,Math.min(18,Math.floor(Lm(t[2]/e,.5)*9+9.5))));return n*19*19+r*19+o},rxe=(t,e,n,r,o)=>{if(r<1||r>9||o<1||o>9)throw new A8("BlurHash must have between 1 and 9 components");if(e*n*4!==t.length)throw new A8("Width and height must match the pixels array");let i=[];for(let F=0;F<o;F++)for(let h=0;h<r;h++){let m=h==0&&F==0?1:2,D=exe(t,e,n,(g,p)=>m*Math.cos(Math.PI*h*g/e)*Math.cos(Math.PI*F*p/n));i.push(D)}let s=i[0],u=i.slice(1),l="",c=r-1+(o-1)*9;l+=T3(c,1);let d;if(u.length>0){let F=Math.max(...u.map(m=>Math.max(...m))),h=Math.floor(Math.max(0,Math.min(82,Math.floor(F*166-.5))));d=(h+1)/166,l+=T3(h,1)}else d=1,l+=T3(0,1);return l+=T3(txe(s),4),u.forEach(F=>{l+=T3(nxe(F,d),2)}),l},oxe=rxe,ixe=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oj=function(){return Oj=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Oj.apply(this,arguments)},axe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n},Mj=function(t){ixe(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.canvas=null,n.handleRef=function(r){n.canvas=r,n.draw()},n.draw=function(){var r=n.props,o=r.hash,i=r.height,s=r.punch,u=r.width;if(n.canvas){var l=Q4e(o,u,i,s),c=n.canvas.getContext("2d"),d=c.createImageData(u,i);d.data.set(l),c.putImageData(d,0,0)}},n}return e.prototype.componentDidUpdate=function(){this.draw()},e.prototype.render=function(){var n=this.props;n.hash;var r=n.height,o=n.width,i=axe(n,["hash","height","width"]);return f.createElement("canvas",Oj({},i,{height:r,width:o,ref:this.handleRef}))},e.defaultProps={height:128,width:128},e}(f.PureComponent),sxe=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),I3=function(){return I3=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},I3.apply(this,arguments)},uxe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n},lxe={position:"absolute",top:0,bottom:0,left:0,right:0,width:"100%",height:"100%"};(function(t){sxe(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.componentDidUpdate=function(){if(this.props.resolutionX<=0)throw new Error("resolutionX must be larger than zero");if(this.props.resolutionY<=0)throw new Error("resolutionY must be larger than zero")},e.prototype.render=function(){var n=this.props,r=n.hash,o=n.height,i=n.width,s=n.punch,u=n.resolutionX,l=n.resolutionY,c=n.style,d=uxe(n,["hash","height","width","punch","resolutionX","resolutionY","style"]);return f.createElement("div",I3({},d,{style:I3(I3({display:"inline-block",height:o,width:i},c),{position:"relative"})}),f.createElement(Mj,{hash:r,height:l,width:u,punch:s,style:lxe}))},e.defaultProps={height:128,width:128,resolutionX:32,resolutionY:32},e})(f.PureComponent);const T8="xyz.amorgan.blurhash",NG="page.codeberg.everypizza.msc4193.spoiler",cxe="page.codeberg.everypizza.msc4193.spoiler.reason";var qu="_178san51 _1mqalmd1 _1mqalmd0",zG="_178san52 _1mqalmd1 _1mqalmd0",dxe="_178san53 _1mqalmd1 _1mqalmd0",UG="_178san50 _1mqalmd1 _1mqalmd0",I8="_1xx1mdm0";const VG=(t,e,n)=>{t instanceof HTMLVideoElement?t.videoWidth:t.width;const r=t instanceof HTMLVideoElement?t.videoHeight:t.height,o=document.createElement("canvas");o.width=e,o.height=n||r;const i=o.getContext("2d");if(!i)return;i.drawImage(t,0,0,o.width,o.height);const s=i.getImageData(0,0,o.width,o.height);return oxe(s.data,s.width,s.height,4,4)},qG=t=>{if(typeof t=="string")return Y4e(t).result?t:void 0},Hd=Ie(({className:t,body:e,mimeType:n,url:r,info:o,encInfo:i,autoPlay:s,markedAsSpoiler:u,spoilerReason:l,renderViewer:c,renderImage:d,...F},h)=>{const m=ge(),D=Tt(),g=qG(o==null?void 0:o[T8]),[p,_]=f.useState(!1),[v,E]=f.useState(!1),[b,k]=f.useState(!1),[C,S]=f.useState(u??!1),[w,A]=et(f.useCallback(async()=>{const M=Xt(m,r,D)??r;if(i){const z=await Cd(M,T=>vd(T,n??Om,i));return URL.createObjectURL(z)}return M},[m,r,D,n,i])),O=()=>{_(!0)},j=()=>{_(!1),E(!0)},R=()=>{E(!1),A()};return f.useEffect(()=>{s&&A()},[s,A]),a.jsxs(y,{className:Ve(UG,t),...F,ref:h,children:[w.status===he.Success&&a.jsx(Rn,{open:b,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>k(!1),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(xs,{className:I8,size:"500",onContextMenu:M=>M.stopPropagation(),children:c({src:w.data,alt:e,requestClose:()=>k(!1)})})})})}),typeof g=="string"&&!p&&a.jsx(Mj,{style:{width:"100%",height:"100%"},width:32,height:32,hash:g,punch:1}),!s&&!u&&w.status===he.Idle&&a.jsx(y,{className:qu,alignItems:"Center",justifyContent:"Center",children:a.jsx(Ee,{variant:"Secondary",fill:"Solid",radii:"300",size:"300",onClick:A,before:a.jsx(Q,{size:"Inherit",src:$.Photo,filled:!0}),children:a.jsx(x,{size:"B300",children:"View"})})}),w.status===he.Success&&a.jsx(y,{className:Ve(qu,C&&dxe),children:d({alt:e,title:e,src:w.data,onLoad:O,onError:j,onClick:()=>k(!0),tabIndex:0})}),C&&!v&&w.status!==he.Error&&a.jsx(y,{className:qu,alignItems:"Center",justifyContent:"Center",children:a.jsx(Br,{tooltip:typeof l=="string"&&a.jsx(Ao,{variant:"Secondary",children:a.jsx(x,{children:l})}),position:"Top",align:"Center",children:M=>a.jsx(We,{ref:M,variant:"Secondary",radii:"Pill",size:"500",outlined:!0,onClick:()=>{S(!1),w.status===he.Idle&&A()},children:a.jsx(x,{size:"B300",children:"Spoiler"})})})}),(w.status===he.Loading||w.status===he.Success)&&!p&&!u&&a.jsx(y,{className:qu,alignItems:"Center",justifyContent:"Center",children:a.jsx(ot,{variant:"Secondary"})}),(v||w.status===he.Error)&&a.jsx(y,{className:qu,alignItems:"Center",justifyContent:"Center",children:a.jsx(Br,{tooltip:a.jsx(Ao,{variant:"Critical",children:a.jsx(x,{children:"Failed to load image!"})}),position:"Top",align:"Center",children:M=>a.jsx(Ee,{ref:M,size:"300",variant:"Critical",fill:"Soft",outlined:!0,radii:"300",onClick:R,before:a.jsx(Q,{size:"Inherit",src:$.Warning,filled:!0}),children:a.jsx(x,{size:"B300",children:"Retry"})})})}),!p&&typeof(o==null?void 0:o.size)=="number"&&a.jsx(y,{className:zG,justifyContent:"End",alignContent:"Center",gap:"200",children:a.jsx(Bt,{variant:"Secondary",fill:"Soft",children:a.jsx(x,{size:"L400",children:V1(o.size)})})})]})}),hxe=Ie(({className:t,body:e,mimeType:n,url:r,info:o,encInfo:i,autoPlay:s,renderThumbnail:u,renderVideo:l,...c},d)=>{var S;const F=ge(),h=Tt(),m=qG((S=o.thumbnail_info)==null?void 0:S[T8]),[D,g]=f.useState(!1),[p,_]=f.useState(!1),[v,E]=et(f.useCallback(async()=>{const w=Xt(F,r,h)??r,A=i?await Cd(w,O=>vd(O,n,i)):await bd(w);return URL.createObjectURL(A)},[F,r,h,n,i])),b=()=>{g(!0)},k=()=>{g(!1),_(!0)},C=()=>{_(!1),E()};return f.useEffect(()=>{s&&E()},[s,E]),a.jsxs(y,{className:Ve(UG,t),...c,ref:d,children:[typeof m=="string"&&!D&&a.jsx(Mj,{style:{width:"100%",height:"100%"},width:32,height:32,hash:m,punch:1}),u&&!D&&a.jsx(y,{className:qu,alignItems:"Center",justifyContent:"Center",children:u()}),!s&&v.status===he.Idle&&a.jsx(y,{className:qu,alignItems:"Center",justifyContent:"Center",children:a.jsx(Ee,{variant:"Secondary",fill:"Solid",radii:"300",size:"300",onClick:E,before:a.jsx(Q,{size:"Inherit",src:$.Play,filled:!0}),children:a.jsx(x,{size:"B300",children:"Watch"})})}),v.status===he.Success&&a.jsx(y,{className:qu,children:l({title:e,src:v.data,onLoadedMetadata:b,onError:k,autoPlay:!0,controls:!0})}),(v.status===he.Loading||v.status===he.Success)&&!D&&a.jsx(y,{className:qu,alignItems:"Center",justifyContent:"Center",children:a.jsx(ot,{variant:"Secondary"})}),(p||v.status===he.Error)&&a.jsx(y,{className:qu,alignItems:"Center",justifyContent:"Center",children:a.jsx(Br,{tooltip:a.jsx(Ao,{variant:"Critical",children:a.jsx(x,{children:"Failed to load video!"})}),position:"Top",align:"Center",children:w=>a.jsx(Ee,{ref:w,size:"300",variant:"Critical",fill:"Soft",outlined:!0,radii:"300",onClick:C,before:a.jsx(Q,{size:"Inherit",src:$.Warning,filled:!0}),children:a.jsx(x,{size:"B300",children:"Retry"})})})}),!D&&typeof o.size=="number"&&a.jsxs(y,{className:zG,justifyContent:"SpaceBetween",alignContent:"Center",gap:"200",children:[a.jsx(Bt,{variant:"Secondary",fill:"Soft",children:a.jsx(x,{size:"L400",children:kue(o.duration??0)})}),a.jsx(Bt,{variant:"Secondary",fill:"Soft",children:a.jsx(x,{size:"L400",children:Rbe(o.size)})})]})]})});var Pj={},Lj={},Nj={},R8={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Direction=void 0,function(e){e.Right="to right",e.Left="to left",e.Down="to bottom",e.Up="to top"}(t.Direction||(t.Direction={}))})(R8),function(t){var e=Qe&&Qe.__spreadArray||function(j,R,M){if(M||arguments.length===2)for(var z=0,T=R.length,P;z<T;z++)(P||!(z in R))&&(P||(P=Array.prototype.slice.call(R,0,z)),P[z]=R[z]);return j.concat(P||Array.prototype.slice.call(R))};Object.defineProperty(t,"__esModule",{value:!0}),t.useThumbOverlap=t.assertUnreachable=t.voidFn=t.getTrackBackground=t.replaceAt=t.schd=t.translate=t.getClosestThumbIndex=t.translateThumbs=t.getPaddingAndBorder=t.getMargin=t.checkInitialOverlap=t.checkValuesAgainstBoundaries=t.checkBoundaries=t.isVertical=t.relativeValue=t.normalizeValue=t.isStepDivisible=t.isTouchEvent=t.getStepDecimals=void 0;var n=f,r=R8,o=function(j){var R=j.toString().split(".")[1];return R?R.length:0};t.getStepDecimals=o;function i(j){return j.touches&&j.touches.length||j.changedTouches&&j.changedTouches.length}t.isTouchEvent=i;function s(j,R,M){var z=(R-j)/M,T=8,P=Number(z.toFixed(T));return parseInt(P.toString(),10)===P}t.isStepDivisible=s;function u(j,R,M,z,T,P,L){var U=1e11;if(j=Math.round(j*U)/U,!P){var te=L[R-1],ae=L[R+1];if(te&&te>j)return te;if(ae&&ae<j)return ae}if(j>z)return z;if(j<M)return M;var Fe=Math.floor(j*U-M*U)%Math.floor(T*U),re=Math.floor(j*U-Math.abs(Fe)),ce=Fe===0?j:re/U,K=Math.abs(Fe/U)<T/2?ce:ce+T,H=(0,t.getStepDecimals)(T);return parseFloat(K.toFixed(H))}t.normalizeValue=u;function l(j,R,M){return(j-R)/(M-R)}t.relativeValue=l;function c(j){return j===r.Direction.Up||j===r.Direction.Down}t.isVertical=c;function d(j,R,M){if(R>=M)throw new RangeError("min (".concat(R,") is equal/bigger than max (").concat(M,")"));if(j<R)throw new RangeError("value (".concat(j,") is smaller than min (").concat(R,")"));if(j>M)throw new RangeError("value (".concat(j,") is bigger than max (").concat(M,")"))}t.checkBoundaries=d;function F(j,R,M){return j<R?R:j>M?M:j}t.checkValuesAgainstBoundaries=F;function h(j){if(!(j.length<2)&&!j.slice(1).every(function(R,M){return j[M]<=R}))throw new RangeError("values={[".concat(j,"]} needs to be sorted when allowOverlap={false}"))}t.checkInitialOverlap=h;function m(j){var R=window.getComputedStyle(j);return{top:parseInt(R["margin-top"],10),bottom:parseInt(R["margin-bottom"],10),left:parseInt(R["margin-left"],10),right:parseInt(R["margin-right"],10)}}t.getMargin=m;function D(j){var R=window.getComputedStyle(j);return{top:parseInt(R["padding-top"],10)+parseInt(R["border-top-width"],10),bottom:parseInt(R["padding-bottom"],10)+parseInt(R["border-bottom-width"],10),left:parseInt(R["padding-left"],10)+parseInt(R["border-left-width"],10),right:parseInt(R["padding-right"],10)+parseInt(R["border-right-width"],10)}}t.getPaddingAndBorder=D;function g(j,R,M){var z=M?-1:1;j.forEach(function(T,P){return _(T,z*R[P].x,R[P].y)})}t.translateThumbs=g;function p(j,R,M,z){for(var T=0,P=O(j[0],R,M,z),L=1;L<j.length;L++){var U=O(j[L],R,M,z);U<P&&(P=U,T=L)}return T}t.getClosestThumbIndex=p;function _(j,R,M){j.style.transform="translate(".concat(R,"px, ").concat(M,"px)")}t.translate=_;var v=function(j){var R=[],M=null,z=function(){for(var T=[],P=0;P<arguments.length;P++)T[P]=arguments[P];R=T,!M&&(M=requestAnimationFrame(function(){M=null,j.apply(void 0,R)}))};return z};t.schd=v;function E(j,R,M){var z=j.slice(0);return z[R]=M,z}t.replaceAt=E;function b(j){var R=j.values,M=j.colors,z=j.min,T=j.max,P=j.direction,L=P===void 0?r.Direction.Right:P,U=j.rtl,te=U===void 0?!1:U;te&&L===r.Direction.Right?L=r.Direction.Left:te&&r.Direction.Left&&(L=r.Direction.Right);var ae=R.slice(0).sort(function(re,ce){return re-ce}).map(function(re){return(re-z)/(T-z)*100}),Fe=ae.reduce(function(re,ce,K){return"".concat(re,", ").concat(M[K]," ").concat(ce,"%, ").concat(M[K+1]," ").concat(ce,"%")},"");return"linear-gradient(".concat(L,", ").concat(M[0]," 0%").concat(Fe,", ").concat(M[M.length-1]," 100%)")}t.getTrackBackground=b;function k(){}t.voidFn=k;function C(j){throw new Error("Didn't expect to get here")}t.assertUnreachable=C;var S=function(j,R,M,z,T){T===void 0&&(T=function(L){return L});var P=Math.ceil(e([j],Array.from(j.children),!0).reduce(function(L,U){var te=Math.ceil(U.getBoundingClientRect().width);if(U.innerText&&U.innerText.includes(M)&&U.childElementCount===0){var ae=U.cloneNode(!0);ae.innerHTML=T(R.toFixed(z)),ae.style.visibility="hidden",document.body.appendChild(ae),te=Math.ceil(ae.getBoundingClientRect().width),document.body.removeChild(ae)}return te>L?te:L},j.getBoundingClientRect().width));return P},w=function(j,R,M,z,T,P,L){L===void 0&&(L=function(ae){return ae});var U=[],te=function(ae){var Fe=S(M[ae],z[ae],T,P,L),re=R[ae].x;R.forEach(function(ce,K){var H=ce.x,q=S(M[K],z[K],T,P,L);ae!==K&&(re>=H&&re<=H+q||re+Fe>=H&&re+Fe<=H+q)&&(U.includes(K)||(U.push(ae),U.push(K),U=e(e([],U,!0),[ae,K],!1),te(K)))})};return te(j),Array.from(new Set(U.sort()))},A=function(j,R,M,z,T,P){z===void 0&&(z=.1),T===void 0&&(T=" - "),P===void 0&&(P=function(K){return K});var L=(0,t.getStepDecimals)(z),U=(0,n.useState)({}),te=U[0],ae=U[1],Fe=(0,n.useState)(P(R[M].toFixed(L))),re=Fe[0],ce=Fe[1];return(0,n.useEffect)(function(){if(j){var K=j.getThumbs();if(K.length<1)return;var H={},q=j.getOffsets(),V=w(M,q,K,R,T,L,P),X=P(R[M].toFixed(L));if(V.length){var ee=V.reduce(function(Ae,ye,He,ze){return Ae.length?e(e([],Ae,!0),[q[ze[He]].x],!1):[q[ze[He]].x]},[]);if(Math.min.apply(Math,ee)===q[M].x){var J=[];V.forEach(function(Ae){J.push(R[Ae].toFixed(L))}),X=Array.from(new Set(J.sort(function(Ae,ye){return parseFloat(Ae)-parseFloat(ye)}))).map(P).join(T);var de=Math.min.apply(Math,ee),ue=Math.max.apply(Math,ee),De=K[V[ee.indexOf(ue)]].getBoundingClientRect().width;H.left="".concat(Math.abs(de-(ue+De))/2,"px"),H.transform="translate(-50%, 0)"}else H.visibility="hidden"}ce(X),ae(H)}},[j,R]),[re,te]};t.useThumbOverlap=A;function O(j,R,M,z){var T=j.getBoundingClientRect(),P=T.left,L=T.top,U=T.width,te=T.height;return c(z)?Math.abs(M-(L+te/2)):Math.abs(R-(P+U/2))}}(Nj);var Fxe=Qe&&Qe.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),mxe=Qe&&Qe.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Dxe=Qe&&Qe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),gxe=Qe&&Qe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&mxe(e,t,n);return Dxe(e,t),e},HG=Qe&&Qe.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(Lj,"__esModule",{value:!0});var O8=gxe(f),Wn=Nj,Po=R8,pxe=["ArrowRight","ArrowUp","k","PageUp"],fxe=["ArrowLeft","ArrowDown","j","PageDown"],_xe=function(t){Fxe(e,t);function e(n){var r=t.call(this,n)||this;if(r.trackRef=O8.createRef(),r.thumbRefs=[],r.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(r.props.values.length).fill(0).map(function(o,i){return i}),isChanged:!1,markOffsets:[]},r.getOffsets=function(){var o=r.props,i=o.direction,s=o.values,u=o.min,l=o.max,c=r.trackRef.current,d=c.getBoundingClientRect(),F=(0,Wn.getPaddingAndBorder)(c);return r.getThumbs().map(function(h,m){var D={x:0,y:0},g=h.getBoundingClientRect(),p=(0,Wn.getMargin)(h);switch(i){case Po.Direction.Right:return D.x=(p.left+F.left)*-1,D.y=((g.height-d.height)/2+F.top)*-1,D.x+=d.width*(0,Wn.relativeValue)(s[m],u,l)-g.width/2,D;case Po.Direction.Left:return D.x=(p.right+F.right)*-1,D.y=((g.height-d.height)/2+F.top)*-1,D.x+=d.width-d.width*(0,Wn.relativeValue)(s[m],u,l)-g.width/2,D;case Po.Direction.Up:return D.x=((g.width-d.width)/2+p.left+F.left)*-1,D.y=-F.left,D.y+=d.height-d.height*(0,Wn.relativeValue)(s[m],u,l)-g.height/2,D;case Po.Direction.Down:return D.x=((g.width-d.width)/2+p.left+F.left)*-1,D.y=-F.left,D.y+=d.height*(0,Wn.relativeValue)(s[m],u,l)-g.height/2,D;default:return(0,Wn.assertUnreachable)(i)}})},r.getThumbs=function(){return r.trackRef&&r.trackRef.current?Array.from(r.trackRef.current.children).filter(function(o){return o.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},r.getTargetIndex=function(o){return r.getThumbs().findIndex(function(i){return i===o.target||i.contains(o.target)})},r.addTouchEvents=function(o){document.addEventListener("touchmove",r.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",r.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",r.schdOnEnd,{passive:!1})},r.addMouseEvents=function(o){document.addEventListener("mousemove",r.schdOnMouseMove),document.addEventListener("mouseup",r.schdOnEnd)},r.onMouseDownTrack=function(o){var i;if(o.button===0)if(o.persist(),o.preventDefault(),r.addMouseEvents(o.nativeEvent),r.props.values.length>1&&r.props.draggableTrack){if(r.thumbRefs.some(function(u){var l;return(l=u.current)===null||l===void 0?void 0:l.contains(o.target)}))return;r.setState({draggedTrackPos:[o.clientX,o.clientY]},function(){return r.onMove(o.clientX,o.clientY)})}else{var s=(0,Wn.getClosestThumbIndex)(r.thumbRefs.map(function(u){return u.current}),o.clientX,o.clientY,r.props.direction);(i=r.thumbRefs[s].current)===null||i===void 0||i.focus(),r.setState({draggedThumbIndex:s},function(){return r.onMove(o.clientX,o.clientY)})}},r.onResize=function(){(0,Wn.translateThumbs)(r.getThumbs(),r.getOffsets(),r.props.rtl),r.calculateMarkOffsets()},r.onTouchStartTrack=function(o){var i;if(o.persist(),r.addTouchEvents(o.nativeEvent),r.props.values.length>1&&r.props.draggableTrack){if(r.thumbRefs.some(function(u){var l;return(l=u.current)===null||l===void 0?void 0:l.contains(o.target)}))return;r.setState({draggedTrackPos:[o.touches[0].clientX,o.touches[0].clientY]},function(){return r.onMove(o.touches[0].clientX,o.touches[0].clientY)})}else{var s=(0,Wn.getClosestThumbIndex)(r.thumbRefs.map(function(u){return u.current}),o.touches[0].clientX,o.touches[0].clientY,r.props.direction);(i=r.thumbRefs[s].current)===null||i===void 0||i.focus(),r.setState({draggedThumbIndex:s},function(){return r.onMove(o.touches[0].clientX,o.touches[0].clientY)})}},r.onMouseOrTouchStart=function(o){if(!r.props.disabled){var i=(0,Wn.isTouchEvent)(o);if(!(!i&&o.button!==0)){var s=r.getTargetIndex(o);s!==-1&&(i?r.addTouchEvents(o):r.addMouseEvents(o),r.setState({draggedThumbIndex:s,thumbZIndexes:r.state.thumbZIndexes.map(function(u,l){return l===s?Math.max.apply(Math,r.state.thumbZIndexes):u<=r.state.thumbZIndexes[s]?u:u-1})}))}}},r.onMouseMove=function(o){o.preventDefault(),r.onMove(o.clientX,o.clientY)},r.onTouchMove=function(o){o.preventDefault(),r.onMove(o.touches[0].clientX,o.touches[0].clientY)},r.onKeyDown=function(o){var i=r.props,s=i.values,u=i.onChange,l=i.step,c=i.rtl,d=i.direction,F=r.state.isChanged,h=r.getTargetIndex(o.nativeEvent),m=c||d===Po.Direction.Left||d===Po.Direction.Down?-1:1;h!==-1&&(pxe.includes(o.key)?(o.preventDefault(),r.setState({draggedThumbIndex:h,isChanged:!0}),u((0,Wn.replaceAt)(s,h,r.normalizeValue(s[h]+m*(o.key==="PageUp"?l*10:l),h)))):fxe.includes(o.key)?(o.preventDefault(),r.setState({draggedThumbIndex:h,isChanged:!0}),u((0,Wn.replaceAt)(s,h,r.normalizeValue(s[h]-m*(o.key==="PageDown"?l*10:l),h)))):o.key==="Tab"?r.setState({draggedThumbIndex:-1},function(){F&&r.fireOnFinalChange()}):F&&r.fireOnFinalChange())},r.onKeyUp=function(o){var i=r.state.isChanged;r.setState({draggedThumbIndex:-1},function(){i&&r.fireOnFinalChange()})},r.onMove=function(o,i){var s=r.state,u=s.draggedThumbIndex,l=s.draggedTrackPos,c=r.props,d=c.direction,F=c.min,h=c.max,m=c.onChange,D=c.values,g=c.step,p=c.rtl;if(u===-1&&l[0]===-1&&l[1]===-1)return null;var _=r.trackRef.current;if(!_)return null;var v=_.getBoundingClientRect(),E=(0,Wn.isVertical)(d)?v.height:v.width;if(l[0]!==-1&&l[1]!==-1){var b=o-l[0],k=i-l[1],C=0;switch(d){case Po.Direction.Right:case Po.Direction.Left:C=b/E*(h-F);break;case Po.Direction.Down:case Po.Direction.Up:C=k/E*(h-F);break;default:(0,Wn.assertUnreachable)(d)}if(p&&(C*=-1),Math.abs(C)>=g/2){for(var S=0;S<r.thumbRefs.length;S++){if(D[S]===h&&Math.sign(C)===1||D[S]===F&&Math.sign(C)===-1)return;var w=D[S]+C;w>h?C=h-D[S]:w<F&&(C=F-D[S])}for(var A=D.slice(0),S=0;S<r.thumbRefs.length;S++)A=(0,Wn.replaceAt)(A,S,r.normalizeValue(D[S]+C,S));r.setState({draggedTrackPos:[o,i]}),m(A)}}else{var O=0;switch(d){case Po.Direction.Right:O=(o-v.left)/E*(h-F)+F;break;case Po.Direction.Left:O=(E-(o-v.left))/E*(h-F)+F;break;case Po.Direction.Down:O=(i-v.top)/E*(h-F)+F;break;case Po.Direction.Up:O=(E-(i-v.top))/E*(h-F)+F;break;default:(0,Wn.assertUnreachable)(d)}p&&(O=h+F-O),Math.abs(D[u]-O)>=g/2&&m((0,Wn.replaceAt)(D,u,r.normalizeValue(O,u)))}},r.normalizeValue=function(o,i){var s=r.props,u=s.min,l=s.max,c=s.step,d=s.allowOverlap,F=s.values;return(0,Wn.normalizeValue)(o,i,u,l,c,d,F)},r.onEnd=function(o){if(o.preventDefault(),document.removeEventListener("mousemove",r.schdOnMouseMove),document.removeEventListener("touchmove",r.schdOnTouchMove),document.removeEventListener("mouseup",r.schdOnEnd),document.removeEventListener("touchend",r.schdOnEnd),document.removeEventListener("touchcancel",r.schdOnEnd),r.state.draggedThumbIndex===-1&&r.state.draggedTrackPos[0]===-1&&r.state.draggedTrackPos[1]===-1)return null;r.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){r.fireOnFinalChange()})},r.fireOnFinalChange=function(){r.setState({isChanged:!1});var o=r.props,i=o.onFinalChange,s=o.values;i&&i(s)},r.updateMarkRefs=function(o){if(!o.renderMark){r.numOfMarks=void 0,r.markRefs=void 0;return}r.numOfMarks=(o.max-o.min)/r.props.step,r.markRefs=[];for(var i=0;i<r.numOfMarks+1;i++)r.markRefs[i]=O8.createRef()},r.calculateMarkOffsets=function(){if(!(!r.props.renderMark||!r.trackRef||!r.numOfMarks||!r.markRefs||r.trackRef.current===null)){for(var o=window.getComputedStyle(r.trackRef.current),i=parseInt(o.width,10),s=parseInt(o.height,10),u=parseInt(o.paddingLeft,10),l=parseInt(o.paddingTop,10),c=[],d=0;d<r.numOfMarks+1;d++){var F=9999,h=9999;if(r.markRefs[d].current){var m=r.markRefs[d].current.getBoundingClientRect();F=m.height,h=m.width}r.props.direction===Po.Direction.Left||r.props.direction===Po.Direction.Right?c.push([Math.round(i/r.numOfMarks*d+u-h/2),-Math.round((F-s)/2)]):c.push([Math.round(s/r.numOfMarks*d+l-F/2),-Math.round((h-i)/2)])}r.setState({markOffsets:c})}},n.step===0)throw new Error('"step" property should be a positive number');return r.schdOnMouseMove=(0,Wn.schd)(r.onMouseMove),r.schdOnTouchMove=(0,Wn.schd)(r.onTouchMove),r.schdOnEnd=(0,Wn.schd)(r.onEnd),r.thumbRefs=n.values.map(function(){return O8.createRef()}),r.updateMarkRefs(n),r}return e.prototype.componentDidMount=function(){var n=this,r=this.props,o=r.values,i=r.min,s=r.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",n.onResize)},unobserve:function(){return window.removeEventListener("resize",n.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,Wn.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(u){return(0,Wn.checkBoundaries)(u,n.props.min,n.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,Wn.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),o.forEach(function(u){(0,Wn.isStepDivisible)(i,u,s)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},e.prototype.componentDidUpdate=function(n,r){var o=this.props,i=o.max,s=o.min,u=o.step,l=o.values,c=o.rtl;(n.max!==i||n.min!==s||n.step!==u)&&this.updateMarkRefs(this.props),(0,Wn.translateThumbs)(this.getThumbs(),this.getOffsets(),c),(n.max!==i||n.min!==s||n.step!==u||r.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),l.forEach(function(d){(0,Wn.isStepDivisible)(s,d,u)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},e.prototype.componentWillUnmount=function(){var n={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,n),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},e.prototype.render=function(){var n=this,r=this.props,o=r.renderTrack,i=r.renderThumb,s=r.renderMark,u=s===void 0?function(){return null}:s,l=r.values,c=r.min,d=r.max,F=r.allowOverlap,h=r.disabled,m=this.state,D=m.draggedThumbIndex,g=m.thumbZIndexes,p=m.markOffsets;return o({props:{style:{transform:"scale(1)",cursor:D>-1?"grabbing":this.props.draggableTrack?(0,Wn.isVertical)(this.props.direction)?"ns-resize":"ew-resize":l.length===1&&!h?"pointer":"inherit"},onMouseDown:h?Wn.voidFn:this.onMouseDownTrack,onTouchStart:h?Wn.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:h,children:HG(HG([],p.map(function(_,v,E){return u({props:{style:n.props.direction===Po.Direction.Left||n.props.direction===Po.Direction.Right?{position:"absolute",left:"".concat(_[0],"px"),marginTop:"".concat(_[1],"px")}:{position:"absolute",top:"".concat(_[0],"px"),marginLeft:"".concat(_[1],"px")},key:"mark".concat(v),ref:n.markRefs[v]},index:v})}),!0),l.map(function(_,v){var E=n.state.draggedThumbIndex===v;return i({index:v,value:_,isDragged:E,props:{style:{position:"absolute",zIndex:g[v],cursor:h?"inherit":E?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:v,tabIndex:h?void 0:0,"aria-valuemax":F?d:l[v+1]||d,"aria-valuemin":F?c:l[v-1]||c,"aria-valuenow":_,draggable:!1,ref:n.thumbRefs[v],role:"slider",onKeyDown:h?Wn.voidFn:n.onKeyDown,onKeyUp:h?Wn.voidFn:n.onKeyUp}})}),!0)})},e.defaultProps={step:1,direction:Po.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},e}(O8.Component);Lj.default=_xe,function(t){var e=Qe&&Qe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkValuesAgainstBoundaries=t.relativeValue=t.useThumbOverlap=t.Direction=t.getTrackBackground=t.Range=void 0;var n=e(Lj);t.Range=n.default;var r=Nj;Object.defineProperty(t,"getTrackBackground",{enumerable:!0,get:function(){return r.getTrackBackground}}),Object.defineProperty(t,"useThumbOverlap",{enumerable:!0,get:function(){return r.useThumbOverlap}}),Object.defineProperty(t,"relativeValue",{enumerable:!0,get:function(){return r.relativeValue}}),Object.defineProperty(t,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return r.checkValuesAgainstBoundaries}});var o=R8;Object.defineProperty(t,"Direction",{enumerable:!0,get:function(){return o.Direction}})}(Pj);const vxe=t=>{const[e,n]=f.useState(!1),r=f.useCallback(o=>{const i=t();i&&(o?i.play():i.pause())},[t]);return f.useEffect(()=>{const o=t(),i=()=>{o&&n(o.paused===!1)};return o==null||o.addEventListener("playing",i),o==null||o.addEventListener("play",i),o==null||o.addEventListener("pause",i),()=>{o==null||o.removeEventListener("playing",i),o==null||o.removeEventListener("play",i),o==null||o.removeEventListener("pause",i)}},[t]),{playing:e,setPlaying:r}},bxe=(t,e)=>{f.useEffect(()=>{const n=t(),r=()=>{n&&e(n.duration,n.currentTime)};return n==null||n.addEventListener("timeupdate",r),n==null||n.addEventListener("loadedmetadata",r),n==null||n.addEventListener("ended",r),()=>{n==null||n.removeEventListener("timeupdate",r),n==null||n.removeEventListener("loadedmetadata",r),n==null||n.removeEventListener("ended",r)}},[t,e])},Cxe=t=>{const[e,n]=f.useState({seeking:!1,seekable:void 0}),r=f.useCallback(o=>{const i=t();i&&(i.currentTime=o)},[t]);return f.useEffect(()=>{const o=t(),i=()=>{o&&n({seeking:o.seeking,seekable:o.seekable})};return o==null||o.addEventListener("loadedmetadata",i),o==null||o.addEventListener("seeked",i),o==null||o.addEventListener("seeking",i),()=>{o==null||o.removeEventListener("loadedmetadata",i),o==null||o.removeEventListener("seeked",i),o==null||o.removeEventListener("seeking",i)}},[t]),{...e,seek:r}},Exe=t=>{const[e,n]=f.useState({volume:1,mute:!1}),r=f.useCallback(i=>{const s=t();s&&(s.muted=i)},[t]),o=f.useCallback(i=>{const s=t();s&&(s.volume=i)},[t]);return f.useEffect(()=>{const i=t(),s=()=>{i&&n({mute:i.muted,volume:Math.max(0,Math.min(i.volume,1))})};return i==null||i.addEventListener("volumechange",s),()=>{i==null||i.removeEventListener("volumechange",s)}},[t]),{...e,setMute:r,setVolume:o}},yxe=t=>{const[e,n]=f.useState({loading:!1,error:!1});return f.useEffect(()=>{const r=t(),o=()=>{n({loading:!0,error:!1})},i=()=>{n({loading:!1,error:!1})},s=()=>{n({loading:!1,error:!0})};return r==null||r.addEventListener("loadstart",o),r==null||r.addEventListener("loadeddata",i),r==null||r.addEventListener("stalled",i),r==null||r.addEventListener("suspend",i),r==null||r.addEventListener("error",s),()=>{r==null||r.removeEventListener("loadstart",o),r==null||r.removeEventListener("loadeddata",i),r==null||r.removeEventListener("stalled",i),r==null||r.removeEventListener("suspend",i),r==null||r.removeEventListener("error",s)}},[t]),e};function M8(t,e){const n=f.useRef(),r=f.useRef(),{wait:o,immediate:i}=e??{};return f.useCallback((...s)=>{r.current=s,!n.current&&(i&&t(...s),n.current=window.setTimeout(()=>{r.current&&t(...r.current),r.current=void 0,n.current=void 0},o))},[t,o,i])}const xxe={wait:500,immediate:!0};function wxe({mimeType:t,url:e,info:n,encInfo:r,renderMediaControl:o}){const i=ge(),s=Tt(),[u,l]=et(f.useCallback(async()=>{const O=Xt(i,e,s)??e,j=r?await Cd(O,R=>vd(R,t,r)):await bd(O);return URL.createObjectURL(j)},[i,e,s,t,r])),c=f.useRef(null),[d,F]=f.useState(0),h=n.duration??0,[m,D]=f.useState((h>=0?h:0)/1e3),g=f.useCallback(()=>c.current,[]),{loading:p}=yxe(g),{playing:_,setPlaying:v}=vxe(g),{seek:E}=Cxe(g),{volume:b,mute:k,setMute:C,setVolume:S}=Exe(g),w=f.useCallback((O,j)=>{D(O),F(j)},[]);bxe(g,M8(w,xxe));const A=()=>{u.status===he.Success?v(!_):u.status!==he.Loading&&l()};return o({after:a.jsx(Pj.Range,{step:1,min:0,max:m||1,values:[d],onChange:O=>E(O[0]),renderTrack:O=>a.jsxs("div",{...O.props,children:[O.children,a.jsx(FF,{as:"div",variant:"Secondary",size:"300",min:0,max:m,value:d,radii:"300"})]}),renderThumb:O=>a.jsx(Bt,{size:"300",variant:"Secondary",fill:"Solid",radii:"Pill",outlined:!0,...O.props,style:{...O.props.style,zIndex:0}})}),leftControl:a.jsxs(a.Fragment,{children:[a.jsx(We,{onClick:A,variant:"Secondary",radii:"300",disabled:u.status===he.Loading,before:u.status===he.Loading||p?a.jsx(ot,{variant:"Secondary",size:"50"}):a.jsx(Q,{src:_?$.Pause:$.Play,size:"50",filled:_}),children:a.jsx(x,{size:"B300",children:_?"Pause":"Play"})}),a.jsx(x,{size:"T200",children:`${qP(d)} / ${qP(m)}`})]}),rightControl:a.jsxs(a.Fragment,{children:[a.jsx(Me,{variant:"SurfaceVariant",size:"300",radii:"Pill",onClick:()=>C(!k),"aria-pressed":k,children:a.jsx(Q,{src:k?$.VolumeMute:$.VolumeHigh,size:"50"})}),a.jsx(Pj.Range,{step:.1,min:0,max:1,values:[b],onChange:O=>S(O[0]),renderTrack:O=>a.jsxs("div",{...O.props,children:[O.children,a.jsx(FF,{style:{width:Dt(48)},variant:"Secondary",size:"300",min:0,max:1,value:b,radii:"300"})]}),renderThumb:O=>a.jsx(Bt,{size:"300",variant:"Secondary",fill:"Solid",radii:"Pill",outlined:!0,...O.props,style:{...O.props.style,zIndex:0}})})]}),children:a.jsx("audio",{controls:!1,autoPlay:!0,ref:c,children:u.status===he.Success&&a.jsx("source",{src:u.data,type:t})})})}var $G={exports:{}};(function(t,e){(function(n,r){r()})(Qe,function(){function n(c,d){return typeof d>"u"?d={autoBom:!1}:typeof d!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),d={autoBom:!d}),d.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function r(c,d,F){var h=new XMLHttpRequest;h.open("GET",c),h.responseType="blob",h.onload=function(){l(h.response,d,F)},h.onerror=function(){console.error("could not download file")},h.send()}function o(c){var d=new XMLHttpRequest;d.open("HEAD",c,!1);try{d.send()}catch{}return 200<=d.status&&299>=d.status}function i(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var d=document.createEvent("MouseEvents");d.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(d)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Qe=="object"&&Qe.global===Qe?Qe:void 0,u=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(c,d,F){var h=s.URL||s.webkitURL,m=document.createElement("a");d=d||c.name||"download",m.download=d,m.rel="noopener",typeof c=="string"?(m.href=c,m.origin===location.origin?i(m):o(m.href)?r(c,d,F):i(m,m.target="_blank")):(m.href=h.createObjectURL(c),setTimeout(function(){h.revokeObjectURL(m.href)},4e4),setTimeout(function(){i(m)},0))}:"msSaveOrOpenBlob"in navigator?function(c,d,F){if(d=d||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(n(c,F),d);else if(o(c))r(c,d,F);else{var h=document.createElement("a");h.href=c,h.target="_blank",setTimeout(function(){i(h)})}}:function(c,d,F,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof c=="string")return r(c,d,F);var m=c.type==="application/octet-stream",D=/constructor/i.test(s.HTMLElement)||s.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||m&&D||u)&&typeof FileReader<"u"){var p=new FileReader;p.onloadend=function(){var E=p.result;E=g?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=E:location=E,h=null},p.readAsDataURL(c)}else{var _=s.URL||s.webkitURL,v=_.createObjectURL(c);h?h.location=v:location.href=v,h=null,setTimeout(function(){_.revokeObjectURL(v)},4e4)}});s.saveAs=l.saveAs=l,t.exports=l})})($G);var kxe=$G.exports;const Wh=Rr(kxe),zj=(t,e)=>a.jsx(Br,{tooltip:a.jsx(Ao,{variant:"Critical",children:a.jsx(x,{children:"Failed to load file!"})}),position:"Top",align:"Center",children:n=>a.jsx(Ee,{ref:n,size:"400",variant:"Critical",fill:"Soft",outlined:!0,radii:"300",onClick:t,before:a.jsx(Q,{size:"100",src:$.Warning,filled:!0}),children:a.jsx(x,{size:"B400",truncate:!0,children:e})})});function Sxe({body:t,mimeType:e,url:n,encInfo:r,renderViewer:o}){const i=ge(),s=Tt(),[u,l]=f.useState(!1),[c,d]=et(f.useCallback(async()=>{const F=Xt(i,n,s)??n,h=(r?await Cd(F,m=>vd(m,e,r)):await bd(F)).text();return l(!0),h},[i,s,e,r,n]));return a.jsxs(a.Fragment,{children:[c.status===he.Success&&a.jsx(Rn,{open:u,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>l(!1),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(xs,{className:I8,size:"500",onContextMenu:F=>F.stopPropagation(),children:o({name:t,text:c.data,langName:IG.includes(e)?Rj(e):Rj(RG[OG(t)]??e),requestClose:()=>l(!1)})})})})}),c.status===he.Error?zj(d,"Open File"):a.jsx(Ee,{variant:"Secondary",fill:"Solid",radii:"300",size:"400",onClick:()=>c.status===he.Success?l(!0):d(),disabled:c.status===he.Loading,before:c.status===he.Loading?a.jsx(ot,{fill:"Solid",size:"100",variant:"Secondary"}):a.jsx(Q,{size:"100",src:$.ArrowRight,filled:!0}),children:a.jsx(x,{size:"B400",truncate:!0,children:"Open File"})})]})}function jxe({body:t,mimeType:e,url:n,encInfo:r,renderViewer:o}){const i=ge(),s=Tt(),[u,l]=f.useState(!1),[c,d]=et(f.useCallback(async()=>{const F=Xt(i,n,s)??n,h=r?await Cd(F,m=>vd(m,e,r)):await bd(F);return l(!0),URL.createObjectURL(h)},[i,n,s,e,r]));return a.jsxs(a.Fragment,{children:[c.status===he.Success&&a.jsx(Rn,{open:u,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>l(!1),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(xs,{className:I8,size:"500",onContextMenu:F=>F.stopPropagation(),children:o({name:t,src:c.data,requestClose:()=>l(!1)})})})})}),c.status===he.Error?zj(d,"Open PDF"):a.jsx(Ee,{variant:"Secondary",fill:"Solid",radii:"300",size:"400",onClick:()=>c.status===he.Success?l(!0):d(),disabled:c.status===he.Loading,before:c.status===he.Loading?a.jsx(ot,{fill:"Solid",size:"100",variant:"Secondary"}):a.jsx(Q,{size:"100",src:$.ArrowRight,filled:!0}),children:a.jsx(x,{size:"B400",truncate:!0,children:"Open PDF"})})]})}function Bxe({body:t,mimeType:e,url:n,info:r,encInfo:o}){const i=ge(),s=Tt(),[u,l]=et(f.useCallback(async()=>{const c=Xt(i,n,s)??n,d=o?await Cd(c,h=>vd(h,e,o)):await bd(c),F=URL.createObjectURL(d);return Wh.saveAs(F,t),F},[i,n,s,e,o,t]));return u.status===he.Error?zj(l,`Retry Download (${V1(r.size??0)})`):a.jsx(Ee,{variant:"Secondary",fill:"Soft",radii:"300",size:"400",onClick:()=>u.status===he.Success?Wh.saveAs(u.data,t):l(),disabled:u.status===he.Loading,before:u.status===he.Loading?a.jsx(ot,{fill:"Soft",size:"100",variant:"Secondary"}):a.jsx(Q,{size:"100",src:$.Download,filled:!0}),children:a.jsx(x,{size:"B400",truncate:!0,children:`Download (${V1(r.size??0)})`})})}const Axe=Ie(({body:t,mimeType:e,renderAsTextFile:n,renderAsPdfFile:r,children:o,...i},s)=>a.jsxs(y,{direction:"Column",gap:"300",...i,ref:s,children:[(IG.includes(e)||RG[OG(t)])&&n(),e==="application/pdf"&&r(),o]})),Uj={color:ct.Warning.Main,opacity:le.opacity.P300},P8={color:ct.Critical.Main,opacity:le.opacity.P300},WG=Ie(({reason:t,...e},n)=>a.jsxs(y,{as:"span",alignItems:"Center",gap:"100",style:Uj,...e,ref:n,children:[a.jsx(Q,{size:"50",src:$.Delete}),t?a.jsxs("i",{children:["This message has been deleted. ",t]}):a.jsx("i",{children:"This message has been deleted"})]})),L8=Ie(({...t},e)=>a.jsxs(y,{as:"span",alignItems:"Center",gap:"100",style:P8,...t,ref:e,children:[a.jsx(Q,{size:"50",src:$.Warning}),a.jsx("i",{children:"Unsupported message"})]})),Txe=Ie(({...t},e)=>a.jsxs(y,{as:"span",alignItems:"Center",gap:"100",style:P8,...t,ref:e,children:[a.jsx(Q,{size:"50",src:$.Warning}),a.jsx("i",{children:"Failed to load message"})]})),KG=Ie(({...t},e)=>a.jsxs(y,{as:"span",alignItems:"Center",gap:"100",style:Uj,...t,ref:e,children:[a.jsx(Q,{size:"50",src:$.Lock}),a.jsx("i",{children:"Unable to decrypt message"})]})),Vj=Ie(({...t},e)=>a.jsxs(y,{as:"span",alignItems:"Center",gap:"100",style:Uj,...t,ref:e,children:[a.jsx(Q,{size:"50",src:$.Lock}),a.jsx("i",{children:"This message is not decrypted yet"})]})),GG=Ie(({...t},e)=>a.jsxs(y,{as:"span",alignItems:"Center",gap:"100",style:P8,...t,ref:e,children:[a.jsx(Q,{size:"50",src:$.Warning}),a.jsx("i",{children:"Broken message"})]}));Ie(({...t},e)=>a.jsxs(y,{as:"span",alignItems:"Center",gap:"100",style:P8,...t,ref:e,children:[a.jsx(Q,{size:"50",src:$.Warning}),a.jsx("i",{children:"Empty message"})]}));const qj=Ie(({...t},e)=>a.jsx(x,{as:"span",size:"T200",priority:"300",...t,ref:e,children:" (edited)"}));function Nm({messageLayout:t,time:e,iconSrc:n,content:r}){const o=a.jsxs(y,{gap:"300",justifyContent:"SpaceBetween",alignItems:"Center",grow:"Yes",children:[t===Fr.Compact&&e,a.jsx(y,{grow:t===Fr.Compact?void 0:"Yes",alignItems:"Center",justifyContent:"Center",children:a.jsx(Q,{style:{opacity:.6},size:"50",src:n})})]}),i=a.jsxs(y,{justifyContent:"SpaceBetween",alignItems:"Baseline",gap:"200",children:[r,t!==Fr.Compact&&e]});return t===Fr.Compact?a.jsx(Bj,{before:o,children:i}):a.jsx(Rm,{before:o,children:i})}const Ixe=(t,e)=>{const n=ge();return f.useCallback(async()=>{var i,s,u;const r=await n.fetchRoomEvent(t.roomId,e),o=new ii(r);if((i=r.unsigned)!=null&&i["m.relations"]&&((s=r.unsigned)!=null&&s["m.relations"]["m.replace"])){const l=(u=r.unsigned)==null?void 0:u["m.relations"]["m.replace"],c=new ii(l);o.makeReplaced(c)}return o.isEncrypted()&&n.getCrypto()&&await ei(o.attemptDecryption(n.getCrypto())),o},[n,t.roomId,e])},YG=(t,e,n)=>{const r=f.useMemo(()=>n?n():t.findEventById(e),[t,e,n]),o=Ixe(t,e),{data:i,error:s}=op({enabled:r===void 0,queryKey:[t.roomId,e],queryFn:o,staleTime:1/0,gcTime:60*60*1e3});if(r)return r;if(i)return i;if(s)return null},ZG=Ie(({username:t,userColor:e,className:n,children:r,...o},i)=>a.jsxs(y,{className:Ve(M4e,n),alignItems:"Center",gap:"100",...o,ref:i,children:[a.jsxs(y,{style:{color:e,maxWidth:Dt(200)},alignItems:"Center",shrink:"No",children:[a.jsx(Q,{size:"100",src:$.ReplyArrow}),t]}),a.jsx(y,{grow:"Yes",className:P4e,children:r})]})),JG=Ie(({...t},e)=>a.jsxs(y,{className:L4e,alignItems:"Center",...t,ref:e,children:[a.jsx(Q,{className:N4e,src:$.Message}),a.jsx(x,{size:"T200",children:"Threaded reply"})]})),R3=Ie(({room:t,timelineSet:e,replyEventId:n,threadRootId:r,onClick:o,getPowerLevel:i,getPowerLevelTag:s,accessibleTagColors:u,legacyUsernameColor:l,...c},d)=>{const F=f.useMemo(()=>mF(40,400),[]),h=f.useCallback(()=>e==null?void 0:e.findEventById(n),[e,n]),m=YG(t,n,h),{body:D}=(m==null?void 0:m.getContent())??{},g=m==null?void 0:m.getSender(),p=g&&(i==null?void 0:i(g)),_=typeof p=="number"?s==null?void 0:s(p):void 0,v=_!=null&&_.color?u==null?void 0:u.get(_.color):void 0,E=l?Vs(g??n):v,b=m!=null&&m.isRedacted()?a.jsx(WG,{}):a.jsx(Txe,{}),k=(m==null?void 0:m.getContent().msgtype)==="m.bad.encrypted",C=D?j3(kf(D)):b;return a.jsxs(y,{direction:"Column",alignItems:"Start",...c,ref:d,children:[r&&a.jsx(JG,{as:"button","data-event-id":r,onClick:o}),a.jsx(ZG,{as:"button",userColor:E,username:g&&a.jsx(x,{size:"T300",truncate:!0,children:a.jsx("b",{children:wr(t,g)??ln(g)})}),"data-event-id":n,onClick:o,children:m!==void 0?a.jsx(x,{size:"T300",truncate:!0,children:k?a.jsx(KG,{}):C}):a.jsx(qd,{style:{backgroundColor:ct.SurfaceVariant.ContainerActive,width:Dt(F),maxWidth:"100%"}})})]})});var XG={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Qe,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",u="minute",l="hour",c="day",d="week",F="month",h="quarter",m="year",D="date",g="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var T=["th","st","nd","rd"],P=z%100;return"["+z+(T[(P-20)%10]||T[P]||T[0])+"]"}},E=function(z,T,P){var L=String(z);return!L||L.length>=T?z:""+Array(T+1-L.length).join(P)+z},b={s:E,z:function(z){var T=-z.utcOffset(),P=Math.abs(T),L=Math.floor(P/60),U=P%60;return(T<=0?"+":"-")+E(L,2,"0")+":"+E(U,2,"0")},m:function z(T,P){if(T.date()<P.date())return-z(P,T);var L=12*(P.year()-T.year())+(P.month()-T.month()),U=T.clone().add(L,F),te=P-U<0,ae=T.clone().add(L+(te?-1:1),F);return+(-(L+(P-U)/(te?U-ae:ae-U))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:F,y:m,w:d,d:c,D,h:l,m:u,s,ms:i,Q:h}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},k="en",C={};C[k]=v;var S="$isDayjsObject",w=function(z){return z instanceof R||!(!z||!z[S])},A=function z(T,P,L){var U;if(!T)return k;if(typeof T=="string"){var te=T.toLowerCase();C[te]&&(U=te),P&&(C[te]=P,U=te);var ae=T.split("-");if(!U&&ae.length>1)return z(ae[0])}else{var Fe=T.name;C[Fe]=T,U=Fe}return!L&&U&&(k=U),U||!L&&k},O=function(z,T){if(w(z))return z.clone();var P=typeof T=="object"?T:{};return P.date=z,P.args=arguments,new R(P)},j=b;j.l=A,j.i=w,j.w=function(z,T){return O(z,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var R=function(){function z(P){this.$L=A(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[S]=!0}var T=z.prototype;return T.parse=function(P){this.$d=function(L){var U=L.date,te=L.utc;if(U===null)return new Date(NaN);if(j.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ae=U.match(p);if(ae){var Fe=ae[2]-1||0,re=(ae[7]||"0").substring(0,3);return te?new Date(Date.UTC(ae[1],Fe,ae[3]||1,ae[4]||0,ae[5]||0,ae[6]||0,re)):new Date(ae[1],Fe,ae[3]||1,ae[4]||0,ae[5]||0,ae[6]||0,re)}}return new Date(U)}(P),this.init()},T.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},T.$utils=function(){return j},T.isValid=function(){return this.$d.toString()!==g},T.isSame=function(P,L){var U=O(P);return this.startOf(L)<=U&&U<=this.endOf(L)},T.isAfter=function(P,L){return O(P)<this.startOf(L)},T.isBefore=function(P,L){return this.endOf(L)<O(P)},T.$g=function(P,L,U){return j.u(P)?this[L]:this.set(U,P)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(P,L){var U=this,te=!!j.u(L)||L,ae=j.p(P),Fe=function(ee,J){var de=j.w(U.$u?Date.UTC(U.$y,J,ee):new Date(U.$y,J,ee),U);return te?de:de.endOf(c)},re=function(ee,J){return j.w(U.toDate()[ee].apply(U.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(J)),U)},ce=this.$W,K=this.$M,H=this.$D,q="set"+(this.$u?"UTC":"");switch(ae){case m:return te?Fe(1,0):Fe(31,11);case F:return te?Fe(1,K):Fe(0,K+1);case d:var V=this.$locale().weekStart||0,X=(ce<V?ce+7:ce)-V;return Fe(te?H-X:H+(6-X),K);case c:case D:return re(q+"Hours",0);case l:return re(q+"Minutes",1);case u:return re(q+"Seconds",2);case s:return re(q+"Milliseconds",3);default:return this.clone()}},T.endOf=function(P){return this.startOf(P,!1)},T.$set=function(P,L){var U,te=j.p(P),ae="set"+(this.$u?"UTC":""),Fe=(U={},U[c]=ae+"Date",U[D]=ae+"Date",U[F]=ae+"Month",U[m]=ae+"FullYear",U[l]=ae+"Hours",U[u]=ae+"Minutes",U[s]=ae+"Seconds",U[i]=ae+"Milliseconds",U)[te],re=te===c?this.$D+(L-this.$W):L;if(te===F||te===m){var ce=this.clone().set(D,1);ce.$d[Fe](re),ce.init(),this.$d=ce.set(D,Math.min(this.$D,ce.daysInMonth())).$d}else Fe&&this.$d[Fe](re);return this.init(),this},T.set=function(P,L){return this.clone().$set(P,L)},T.get=function(P){return this[j.p(P)]()},T.add=function(P,L){var U,te=this;P=Number(P);var ae=j.p(L),Fe=function(K){var H=O(te);return j.w(H.date(H.date()+Math.round(K*P)),te)};if(ae===F)return this.set(F,this.$M+P);if(ae===m)return this.set(m,this.$y+P);if(ae===c)return Fe(1);if(ae===d)return Fe(7);var re=(U={},U[u]=r,U[l]=o,U[s]=n,U)[ae]||1,ce=this.$d.getTime()+P*re;return j.w(ce,this)},T.subtract=function(P,L){return this.add(-1*P,L)},T.format=function(P){var L=this,U=this.$locale();if(!this.isValid())return U.invalidDate||g;var te=P||"YYYY-MM-DDTHH:mm:ssZ",ae=j.z(this),Fe=this.$H,re=this.$m,ce=this.$M,K=U.weekdays,H=U.months,q=U.meridiem,V=function(J,de,ue,De){return J&&(J[de]||J(L,te))||ue[de].slice(0,De)},X=function(J){return j.s(Fe%12||12,J,"0")},ee=q||function(J,de,ue){var De=J<12?"AM":"PM";return ue?De.toLowerCase():De};return te.replace(_,function(J,de){return de||function(ue){switch(ue){case"YY":return String(L.$y).slice(-2);case"YYYY":return j.s(L.$y,4,"0");case"M":return ce+1;case"MM":return j.s(ce+1,2,"0");case"MMM":return V(U.monthsShort,ce,H,3);case"MMMM":return V(H,ce);case"D":return L.$D;case"DD":return j.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return V(U.weekdaysMin,L.$W,K,2);case"ddd":return V(U.weekdaysShort,L.$W,K,3);case"dddd":return K[L.$W];case"H":return String(Fe);case"HH":return j.s(Fe,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return ee(Fe,re,!0);case"A":return ee(Fe,re,!1);case"m":return String(re);case"mm":return j.s(re,2,"0");case"s":return String(L.$s);case"ss":return j.s(L.$s,2,"0");case"SSS":return j.s(L.$ms,3,"0");case"Z":return ae}return null}(J)||ae.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(P,L,U){var te,ae=this,Fe=j.p(L),re=O(P),ce=(re.utcOffset()-this.utcOffset())*r,K=this-re,H=function(){return j.m(ae,re)};switch(Fe){case m:te=H()/12;break;case F:te=H();break;case h:te=H()/3;break;case d:te=(K-ce)/6048e5;break;case c:te=(K-ce)/864e5;break;case l:te=K/o;break;case u:te=K/r;break;case s:te=K/n;break;default:te=K}return U?te:j.a(te)},T.daysInMonth=function(){return this.endOf(F).$D},T.$locale=function(){return C[this.$L]},T.locale=function(P,L){if(!P)return this.$L;var U=this.clone(),te=A(P,L,!0);return te&&(U.$L=te),U},T.clone=function(){return j.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},z}(),M=R.prototype;return O.prototype=M,[["$ms",i],["$s",s],["$m",u],["$H",l],["$W",c],["$M",F],["$y",m],["$D",D]].forEach(function(z){M[z[1]]=function(T){return this.$g(T,z[0],z[1])}}),O.extend=function(z,T){return z.$i||(z(T,R,O),z.$i=!0),O},O.locale=A,O.isDayjs=w,O.unix=function(z){return O(1e3*z)},O.en=C[k],O.Ls=C,O.p={},O})})(XG);var Rxe=XG.exports;const Kh=Rr(Rxe);var QG={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Qe,function(){return function(n,r,o){r.prototype.isToday=function(){var i="YYYY-MM-DD",s=o();return this.format(i)===s.format(i)}}})})(QG);var Oxe=QG.exports;const Mxe=Rr(Oxe);var eY={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Qe,function(){return function(n,r,o){r.prototype.isYesterday=function(){var i="YYYY-MM-DD",s=o().subtract(1,"day");return this.format(i)===s.format(i)}}})})(eY);var Pxe=eY.exports;const Lxe=Rr(Pxe);Kh.extend(Mxe),Kh.extend(Lxe);const N8=t=>Kh(t).isToday(),z8=t=>Kh(t).isYesterday(),O3=t=>Kh(t).format("hh:mm A"),tY=t=>Kh(t).format("D MMM YYYY"),nY=t=>Kh(t).format("D MMMM YYYY"),Nxe=(t,e)=>{const n=new Date(t),r=new Date(e);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()&&r.getDate()===n.getDate()},zxe=(t,e)=>{const n=new Date(t);let r=(new Date(e).getTime()-n.getTime())/1e3;return r/=60,Math.abs(Math.round(r))},$s=Ie(({compact:t,ts:e,...n},r)=>{let o="";return t||N8(e)?o=O3(e):z8(e)?o=`Yesterday ${O3(e)}`:o=`${tY(e)} ${O3(e)}`,a.jsx(x,{as:"time",style:{flexShrink:0},size:"T200",priority:"300",...n,ref:r,children:o})}),Uxe={maxWidth:Dt(100)};function rY({filename:t,url:e,mimeType:n,encInfo:r}){const o=ge(),i=Tt(),[s,u]=et(f.useCallback(async()=>{const d=Xt(o,e,i)??e,F=r?await Cd(d,m=>vd(m,n,r)):await bd(d),h=URL.createObjectURL(F);return Wh.saveAs(h,t),h},[o,e,i,n,r,t])),l=s.status===he.Loading,c=s.status===he.Error;return a.jsx(Me,{disabled:l,onClick:u,variant:c?"Critical":"SurfaceVariant",size:"300",radii:"300",children:l?a.jsx(ot,{size:"100",variant:c?"Critical":"Secondary"}):a.jsx(Q,{size:"100",src:$.Download})})}const Hj=Ie(({body:t,mimeType:e,after:n,...r},o)=>a.jsxs(y,{alignItems:"Center",gap:"200",grow:"Yes",...r,ref:o,children:[a.jsx(y,{shrink:"No",children:a.jsx(Bt,{style:Uxe,variant:"Secondary",radii:"Pill",children:a.jsx(x,{size:"O400",truncate:!0,children:Rj(e)})})}),a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T300",truncate:!0,children:t})}),n]}));function Vxe(){return a.jsx(x,{children:a.jsx(KG,{})})}function oa({reason:t}){return a.jsx(x,{children:a.jsx(WG,{reason:t})})}function qxe(){return a.jsx(x,{children:a.jsx(L8,{})})}function $d(){return a.jsx(x,{children:a.jsx(GG,{})})}function oY({edited:t,content:e,renderBody:n,renderUrlsPreview:r,style:o}){const{body:i,formatted_body:s}=e;if(typeof i!="string")return a.jsx($d,{});const u=kf(i),l=r&&u.match(o7),c=l?[...new Set(l)]:void 0;return a.jsxs(a.Fragment,{children:[a.jsxs(Aj,{preWrap:typeof s!="string",jumboEmoji:_C.test(u),style:o,children:[n({body:u,customBody:typeof s=="string"?s:void 0}),t&&a.jsx(qj,{})]}),r&&c&&c.length>0&&r(c)]})}function Hxe({displayName:t,edited:e,content:n,renderBody:r,renderUrlsPreview:o}){const{body:i,formatted_body:s}=n;if(typeof i!="string")return a.jsx($d,{});const u=kf(i),l=o&&u.match(o7),c=l?[...new Set(l)]:void 0;return a.jsxs(a.Fragment,{children:[a.jsxs(Aj,{emote:!0,preWrap:typeof s!="string",jumboEmoji:_C.test(u),children:[a.jsx("b",{children:`${t} `}),r({body:u,customBody:typeof s=="string"?s:void 0}),e&&a.jsx(qj,{})]}),o&&c&&c.length>0&&o(c)]})}function $xe({edited:t,content:e,renderBody:n,renderUrlsPreview:r}){const{body:o,formatted_body:i}=e;if(typeof o!="string")return a.jsx($d,{});const s=kf(o),u=r&&s.match(o7),l=u?[...new Set(u)]:void 0;return a.jsxs(a.Fragment,{children:[a.jsxs(Aj,{notice:!0,preWrap:typeof i!="string",jumboEmoji:_C.test(s),children:[n({body:s,customBody:typeof i=="string"?i:void 0}),t&&a.jsx(qj,{})]}),r&&l&&l.length>0&&r(l)]})}function Wxe({content:t,renderImageContent:e,outlined:n}){var s;const r=t==null?void 0:t.info,o=((s=t.file)==null?void 0:s.url)??t.url;if(typeof o!="string")return a.jsx($d,{});const i=Hg((r==null?void 0:r.w)||400,400,(r==null?void 0:r.h)||400);return a.jsx(B8,{outlined:n,children:a.jsx(B3,{style:{height:Dt(i<48?48:i)},children:e({body:t.body||"Image",info:r,mimeType:r==null?void 0:r.mimetype,url:o,encInfo:t.file,markedAsSpoiler:t[NG],spoilerReason:t[cxe]})})})}function Kxe({content:t,renderAsFile:e,renderVideoContent:n,outlined:r}){var c;const o=t==null?void 0:t.info,i=((c=t.file)==null?void 0:c.url)??t.url,s=Ij((o==null?void 0:o.mimetype)??"");if(!o||!s.startsWith("video")||typeof i!="string")return i?e():a.jsx($d,{});const u=Hg(o.w||400,400,o.h||400),l=t.filename??t.body??"Video";return a.jsxs(B8,{outlined:r,children:[a.jsx(Tj,{children:a.jsx(Hj,{body:l,mimeType:s,after:a.jsx(rY,{filename:l,url:i,mimeType:s,encInfo:t.file})})}),a.jsx(B3,{style:{height:Dt(u<48?48:u)},children:n({body:t.body||"Video",info:o,mimeType:s,url:i,encInfo:t.file})})]})}function Gxe({content:t,renderAsFile:e,renderAudioContent:n,outlined:r}){var l;const o=t==null?void 0:t.info,i=((l=t.file)==null?void 0:l.url)??t.url,s=Ij((o==null?void 0:o.mimetype)??"");if(!o||!s.startsWith("audio")||typeof i!="string")return i?e():a.jsx($d,{});const u=t.filename??t.body??"Audio";return a.jsxs(B8,{outlined:r,children:[a.jsx(Tj,{children:a.jsx(Hj,{body:u,mimeType:s,after:a.jsx(rY,{filename:u,url:i,mimeType:s,encInfo:t.file})})}),a.jsx(B3,{children:a.jsx(AG,{children:n({info:o,mimeType:s,url:i,encInfo:t.file})})})]})}function Yxe({content:t,renderFileContent:e,outlined:n}){var i;const r=t==null?void 0:t.info,o=((i=t.file)==null?void 0:i.url)??t.url;return typeof o!="string"?a.jsx($d,{}):a.jsxs(B8,{outlined:n,children:[a.jsx(Tj,{children:a.jsx(Hj,{body:t.filename??t.body??"Unnamed File",mimeType:(r==null?void 0:r.mimetype)??Om})}),a.jsx(B3,{children:a.jsx(AG,{children:e({body:t.filename??t.body??"File",info:r??{},mimeType:(r==null?void 0:r.mimetype)??Om,url:o,encInfo:t.file})})})]})}function Zxe({content:t}){const e=t.geo_uri;if(typeof e!="string")return a.jsx($d,{});const n=jue(e);return a.jsxs(y,{direction:"Column",alignItems:"Start",gap:"100",children:[a.jsx(x,{size:"T400",children:e}),a.jsx(We,{as:"a",size:"400",href:`https://www.openstreetmap.org/?mlat=${n.latitude}&mlon=${n.longitude}#map=16/${n.latitude}/${n.longitude}`,target:"_blank",rel:"noreferrer noopener",variant:"Primary",radii:"Pill",before:a.jsx(Q,{src:$.External,size:"50"}),children:a.jsx(x,{size:"B300",children:"Open Location"})})]})}function Gh({content:t,renderImageContent:e}){var i;const n=t==null?void 0:t.info,r=((i=t.file)==null?void 0:i.url)??t.url;if(typeof r!="string")return a.jsx(GG,{});const o=Hg((n==null?void 0:n.w)||152,152,(n==null?void 0:n.h)||152);return a.jsx(B3,{style:{height:Dt(o<48?48:o),width:Dt(152)},children:e({body:t.body||"Sticker",info:n,mimeType:n==null?void 0:n.mimetype,url:r,encInfo:t.file})})}var iY={},M3={},$j={},P3={},Wj={};Object.defineProperty(Wj,"__esModule",{value:!0}),Wj.default=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(function(t){return t.charCodeAt(0)}));var Kj={};Object.defineProperty(Kj,"__esModule",{value:!0}),Kj.default=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(function(t){return t.charCodeAt(0)}));var Gj={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(i){var s="";return i>65535&&(i-=65536,s+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),s+=String.fromCharCode(i),s};function r(i){var s;return i>=55296&&i<=57343||i>1114111?65533:(s=n.get(i))!==null&&s!==void 0?s:i}t.replaceCodePoint=r;function o(i){return(0,t.fromCodePoint)(r(i))}t.default=o})(Gj),function(t){var e=Qe&&Qe.__createBinding||(Object.create?function(j,R,M,z){z===void 0&&(z=M);var T=Object.getOwnPropertyDescriptor(R,M);(!T||("get"in T?!R.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return R[M]}}),Object.defineProperty(j,z,T)}:function(j,R,M,z){z===void 0&&(z=M),j[z]=R[M]}),n=Qe&&Qe.__setModuleDefault||(Object.create?function(j,R){Object.defineProperty(j,"default",{enumerable:!0,value:R})}:function(j,R){j.default=R}),r=Qe&&Qe.__importStar||function(j){if(j&&j.__esModule)return j;var R={};if(j!=null)for(var M in j)M!=="default"&&Object.prototype.hasOwnProperty.call(j,M)&&e(R,j,M);return n(R,j),R},o=Qe&&Qe.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var i=o(Wj);t.htmlDecodeTree=i.default;var s=o(Kj);t.xmlDecodeTree=s.default;var u=r(Gj);t.decodeCodePoint=u.default;var l=Gj;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return l.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return l.fromCodePoint}});var c;(function(j){j[j.NUM=35]="NUM",j[j.SEMI=59]="SEMI",j[j.EQUALS=61]="EQUALS",j[j.ZERO=48]="ZERO",j[j.NINE=57]="NINE",j[j.LOWER_A=97]="LOWER_A",j[j.LOWER_F=102]="LOWER_F",j[j.LOWER_X=120]="LOWER_X",j[j.LOWER_Z=122]="LOWER_Z",j[j.UPPER_A=65]="UPPER_A",j[j.UPPER_F=70]="UPPER_F",j[j.UPPER_Z=90]="UPPER_Z"})(c||(c={}));var d=32,F;(function(j){j[j.VALUE_LENGTH=49152]="VALUE_LENGTH",j[j.BRANCH_LENGTH=16256]="BRANCH_LENGTH",j[j.JUMP_TABLE=127]="JUMP_TABLE"})(F=t.BinTrieFlags||(t.BinTrieFlags={}));function h(j){return j>=c.ZERO&&j<=c.NINE}function m(j){return j>=c.UPPER_A&&j<=c.UPPER_F||j>=c.LOWER_A&&j<=c.LOWER_F}function D(j){return j>=c.UPPER_A&&j<=c.UPPER_Z||j>=c.LOWER_A&&j<=c.LOWER_Z||h(j)}function g(j){return j===c.EQUALS||D(j)}var p;(function(j){j[j.EntityStart=0]="EntityStart",j[j.NumericStart=1]="NumericStart",j[j.NumericDecimal=2]="NumericDecimal",j[j.NumericHex=3]="NumericHex",j[j.NamedEntity=4]="NamedEntity"})(p||(p={}));var _;(function(j){j[j.Legacy=0]="Legacy",j[j.Strict=1]="Strict",j[j.Attribute=2]="Attribute"})(_=t.DecodingMode||(t.DecodingMode={}));var v=function(){function j(R,M,z){this.decodeTree=R,this.emitCodePoint=M,this.errors=z,this.state=p.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=_.Strict}return j.prototype.startEntity=function(R){this.decodeMode=R,this.state=p.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},j.prototype.write=function(R,M){switch(this.state){case p.EntityStart:return R.charCodeAt(M)===c.NUM?(this.state=p.NumericStart,this.consumed+=1,this.stateNumericStart(R,M+1)):(this.state=p.NamedEntity,this.stateNamedEntity(R,M));case p.NumericStart:return this.stateNumericStart(R,M);case p.NumericDecimal:return this.stateNumericDecimal(R,M);case p.NumericHex:return this.stateNumericHex(R,M);case p.NamedEntity:return this.stateNamedEntity(R,M)}},j.prototype.stateNumericStart=function(R,M){return M>=R.length?-1:(R.charCodeAt(M)|d)===c.LOWER_X?(this.state=p.NumericHex,this.consumed+=1,this.stateNumericHex(R,M+1)):(this.state=p.NumericDecimal,this.stateNumericDecimal(R,M))},j.prototype.addToNumericResult=function(R,M,z,T){if(M!==z){var P=z-M;this.result=this.result*Math.pow(T,P)+parseInt(R.substr(M,P),T),this.consumed+=P}},j.prototype.stateNumericHex=function(R,M){for(var z=M;M<R.length;){var T=R.charCodeAt(M);if(h(T)||m(T))M+=1;else return this.addToNumericResult(R,z,M,16),this.emitNumericEntity(T,3)}return this.addToNumericResult(R,z,M,16),-1},j.prototype.stateNumericDecimal=function(R,M){for(var z=M;M<R.length;){var T=R.charCodeAt(M);if(h(T))M+=1;else return this.addToNumericResult(R,z,M,10),this.emitNumericEntity(T,2)}return this.addToNumericResult(R,z,M,10),-1},j.prototype.emitNumericEntity=function(R,M){var z;if(this.consumed<=M)return(z=this.errors)===null||z===void 0||z.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(R===c.SEMI)this.consumed+=1;else if(this.decodeMode===_.Strict)return 0;return this.emitCodePoint((0,u.replaceCodePoint)(this.result),this.consumed),this.errors&&(R!==c.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},j.prototype.stateNamedEntity=function(R,M){for(var z=this.decodeTree,T=z[this.treeIndex],P=(T&F.VALUE_LENGTH)>>14;M<R.length;M++,this.excess++){var L=R.charCodeAt(M);if(this.treeIndex=b(z,T,this.treeIndex+Math.max(1,P),L),this.treeIndex<0)return this.result===0||this.decodeMode===_.Attribute&&(P===0||g(L))?0:this.emitNotTerminatedNamedEntity();if(T=z[this.treeIndex],P=(T&F.VALUE_LENGTH)>>14,P!==0){if(L===c.SEMI)return this.emitNamedEntityData(this.treeIndex,P,this.consumed+this.excess);this.decodeMode!==_.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},j.prototype.emitNotTerminatedNamedEntity=function(){var R,M=this,z=M.result,T=M.decodeTree,P=(T[z]&F.VALUE_LENGTH)>>14;return this.emitNamedEntityData(z,P,this.consumed),(R=this.errors)===null||R===void 0||R.missingSemicolonAfterCharacterReference(),this.consumed},j.prototype.emitNamedEntityData=function(R,M,z){var T=this.decodeTree;return this.emitCodePoint(M===1?T[R]&~F.VALUE_LENGTH:T[R+1],z),M===3&&this.emitCodePoint(T[R+2],z),z},j.prototype.end=function(){var R;switch(this.state){case p.NamedEntity:return this.result!==0&&(this.decodeMode!==_.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case p.NumericDecimal:return this.emitNumericEntity(0,2);case p.NumericHex:return this.emitNumericEntity(0,3);case p.NumericStart:return(R=this.errors)===null||R===void 0||R.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case p.EntityStart:return 0}},j}();t.EntityDecoder=v;function E(j){var R="",M=new v(j,function(z){return R+=(0,u.fromCodePoint)(z)});return function(z,T){for(var P=0,L=0;(L=z.indexOf("&",L))>=0;){R+=z.slice(P,L),M.startEntity(T);var U=M.write(z,L+1);if(U<0){P=L+M.end();break}P=L+U,L=U===0?P+1:P}var te=R+z.slice(P);return R="",te}}function b(j,R,M,z){var T=(R&F.BRANCH_LENGTH)>>7,P=R&F.JUMP_TABLE;if(T===0)return P!==0&&z===P?M:-1;if(P){var L=z-P;return L<0||L>=T?-1:j[M+L]-1}for(var U=M,te=U+T-1;U<=te;){var ae=U+te>>>1,Fe=j[ae];if(Fe<z)U=ae+1;else if(Fe>z)te=ae-1;else return j[ae+T]}return-1}t.determineBranch=b;var k=E(i.default),C=E(s.default);function S(j,R){return R===void 0&&(R=_.Legacy),k(j,R)}t.decodeHTML=S;function w(j){return k(j,_.Attribute)}t.decodeHTMLAttribute=w;function A(j){return k(j,_.Strict)}t.decodeHTMLStrict=A;function O(j){return C(j,_.Strict)}t.decodeXML=O}(P3),function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=P3,n;(function(h){h[h.Tab=9]="Tab",h[h.NewLine=10]="NewLine",h[h.FormFeed=12]="FormFeed",h[h.CarriageReturn=13]="CarriageReturn",h[h.Space=32]="Space",h[h.ExclamationMark=33]="ExclamationMark",h[h.Number=35]="Number",h[h.Amp=38]="Amp",h[h.SingleQuote=39]="SingleQuote",h[h.DoubleQuote=34]="DoubleQuote",h[h.Dash=45]="Dash",h[h.Slash=47]="Slash",h[h.Zero=48]="Zero",h[h.Nine=57]="Nine",h[h.Semi=59]="Semi",h[h.Lt=60]="Lt",h[h.Eq=61]="Eq",h[h.Gt=62]="Gt",h[h.Questionmark=63]="Questionmark",h[h.UpperA=65]="UpperA",h[h.LowerA=97]="LowerA",h[h.UpperF=70]="UpperF",h[h.LowerF=102]="LowerF",h[h.UpperZ=90]="UpperZ",h[h.LowerZ=122]="LowerZ",h[h.LowerX=120]="LowerX",h[h.OpeningSquareBracket=91]="OpeningSquareBracket"})(n||(n={}));var r;(function(h){h[h.Text=1]="Text",h[h.BeforeTagName=2]="BeforeTagName",h[h.InTagName=3]="InTagName",h[h.InSelfClosingTag=4]="InSelfClosingTag",h[h.BeforeClosingTagName=5]="BeforeClosingTagName",h[h.InClosingTagName=6]="InClosingTagName",h[h.AfterClosingTagName=7]="AfterClosingTagName",h[h.BeforeAttributeName=8]="BeforeAttributeName",h[h.InAttributeName=9]="InAttributeName",h[h.AfterAttributeName=10]="AfterAttributeName",h[h.BeforeAttributeValue=11]="BeforeAttributeValue",h[h.InAttributeValueDq=12]="InAttributeValueDq",h[h.InAttributeValueSq=13]="InAttributeValueSq",h[h.InAttributeValueNq=14]="InAttributeValueNq",h[h.BeforeDeclaration=15]="BeforeDeclaration",h[h.InDeclaration=16]="InDeclaration",h[h.InProcessingInstruction=17]="InProcessingInstruction",h[h.BeforeComment=18]="BeforeComment",h[h.CDATASequence=19]="CDATASequence",h[h.InSpecialComment=20]="InSpecialComment",h[h.InCommentLike=21]="InCommentLike",h[h.BeforeSpecialS=22]="BeforeSpecialS",h[h.SpecialStartSequence=23]="SpecialStartSequence",h[h.InSpecialTag=24]="InSpecialTag",h[h.BeforeEntity=25]="BeforeEntity",h[h.BeforeNumericEntity=26]="BeforeNumericEntity",h[h.InNamedEntity=27]="InNamedEntity",h[h.InNumericEntity=28]="InNumericEntity",h[h.InHexEntity=29]="InHexEntity"})(r||(r={}));function o(h){return h===n.Space||h===n.NewLine||h===n.Tab||h===n.FormFeed||h===n.CarriageReturn}function i(h){return h===n.Slash||h===n.Gt||o(h)}function s(h){return h>=n.Zero&&h<=n.Nine}function u(h){return h>=n.LowerA&&h<=n.LowerZ||h>=n.UpperA&&h<=n.UpperZ}function l(h){return h>=n.UpperA&&h<=n.UpperF||h>=n.LowerA&&h<=n.LowerF}var c;(function(h){h[h.NoValue=0]="NoValue",h[h.Unquoted=1]="Unquoted",h[h.Single=2]="Single",h[h.Double=3]="Double"})(c=t.QuoteType||(t.QuoteType={}));var d={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},F=function(){function h(m,D){var g=m.xmlMode,p=g===void 0?!1:g,_=m.decodeEntities,v=_===void 0?!0:_;this.cbs=D,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=p,this.decodeEntities=v,this.entityTrie=p?e.xmlDecodeTree:e.htmlDecodeTree}return h.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},h.prototype.write=function(m){this.offset+=this.buffer.length,this.buffer=m,this.parse()},h.prototype.end=function(){this.running&&this.finish()},h.prototype.pause=function(){this.running=!1},h.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},h.prototype.getIndex=function(){return this.index},h.prototype.getSectionStart=function(){return this.sectionStart},h.prototype.stateText=function(m){m===n.Lt||!this.decodeEntities&&this.fastForwardTo(n.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&m===n.Amp&&(this.state=r.BeforeEntity)},h.prototype.stateSpecialStartSequence=function(m){var D=this.sequenceIndex===this.currentSequence.length,g=D?i(m):(m|32)===this.currentSequence[this.sequenceIndex];if(!g)this.isSpecial=!1;else if(!D){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(m)},h.prototype.stateInSpecialTag=function(m){if(this.sequenceIndex===this.currentSequence.length){if(m===n.Gt||o(m)){var D=this.index-this.currentSequence.length;if(this.sectionStart<D){var g=this.index;this.index=D,this.cbs.ontext(this.sectionStart,D),this.index=g}this.isSpecial=!1,this.sectionStart=D+2,this.stateInClosingTagName(m);return}this.sequenceIndex=0}(m|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===d.TitleEnd?this.decodeEntities&&m===n.Amp&&(this.state=r.BeforeEntity):this.fastForwardTo(n.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(m===n.Lt)},h.prototype.stateCDATASequence=function(m){m===d.Cdata[this.sequenceIndex]?++this.sequenceIndex===d.Cdata.length&&(this.state=r.InCommentLike,this.currentSequence=d.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=r.InDeclaration,this.stateInDeclaration(m))},h.prototype.fastForwardTo=function(m){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===m)return!0;return this.index=this.buffer.length+this.offset-1,!1},h.prototype.stateInCommentLike=function(m){m===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===d.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=r.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):m!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},h.prototype.isTagStartChar=function(m){return this.xmlMode?!i(m):u(m)},h.prototype.startSpecial=function(m,D){this.isSpecial=!0,this.currentSequence=m,this.sequenceIndex=D,this.state=r.SpecialStartSequence},h.prototype.stateBeforeTagName=function(m){if(m===n.ExclamationMark)this.state=r.BeforeDeclaration,this.sectionStart=this.index+1;else if(m===n.Questionmark)this.state=r.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(m)){var D=m|32;this.sectionStart=this.index,!this.xmlMode&&D===d.TitleEnd[2]?this.startSpecial(d.TitleEnd,3):this.state=!this.xmlMode&&D===d.ScriptEnd[2]?r.BeforeSpecialS:r.InTagName}else m===n.Slash?this.state=r.BeforeClosingTagName:(this.state=r.Text,this.stateText(m))},h.prototype.stateInTagName=function(m){i(m)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(m))},h.prototype.stateBeforeClosingTagName=function(m){o(m)||(m===n.Gt?this.state=r.Text:(this.state=this.isTagStartChar(m)?r.InClosingTagName:r.InSpecialComment,this.sectionStart=this.index))},h.prototype.stateInClosingTagName=function(m){(m===n.Gt||o(m))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterClosingTagName,this.stateAfterClosingTagName(m))},h.prototype.stateAfterClosingTagName=function(m){(m===n.Gt||this.fastForwardTo(n.Gt))&&(this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1)},h.prototype.stateBeforeAttributeName=function(m){m===n.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=r.InSpecialTag,this.sequenceIndex=0):this.state=r.Text,this.baseState=this.state,this.sectionStart=this.index+1):m===n.Slash?this.state=r.InSelfClosingTag:o(m)||(this.state=r.InAttributeName,this.sectionStart=this.index)},h.prototype.stateInSelfClosingTag=function(m){m===n.Gt?(this.cbs.onselfclosingtag(this.index),this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(m)||(this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(m))},h.prototype.stateInAttributeName=function(m){(m===n.Eq||i(m))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterAttributeName,this.stateAfterAttributeName(m))},h.prototype.stateAfterAttributeName=function(m){m===n.Eq?this.state=r.BeforeAttributeValue:m===n.Slash||m===n.Gt?(this.cbs.onattribend(c.NoValue,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(m)):o(m)||(this.cbs.onattribend(c.NoValue,this.index),this.state=r.InAttributeName,this.sectionStart=this.index)},h.prototype.stateBeforeAttributeValue=function(m){m===n.DoubleQuote?(this.state=r.InAttributeValueDq,this.sectionStart=this.index+1):m===n.SingleQuote?(this.state=r.InAttributeValueSq,this.sectionStart=this.index+1):o(m)||(this.sectionStart=this.index,this.state=r.InAttributeValueNq,this.stateInAttributeValueNoQuotes(m))},h.prototype.handleInAttributeValue=function(m,D){m===D||!this.decodeEntities&&this.fastForwardTo(D)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(D===n.DoubleQuote?c.Double:c.Single,this.index),this.state=r.BeforeAttributeName):this.decodeEntities&&m===n.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},h.prototype.stateInAttributeValueDoubleQuotes=function(m){this.handleInAttributeValue(m,n.DoubleQuote)},h.prototype.stateInAttributeValueSingleQuotes=function(m){this.handleInAttributeValue(m,n.SingleQuote)},h.prototype.stateInAttributeValueNoQuotes=function(m){o(m)||m===n.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(c.Unquoted,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(m)):this.decodeEntities&&m===n.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},h.prototype.stateBeforeDeclaration=function(m){m===n.OpeningSquareBracket?(this.state=r.CDATASequence,this.sequenceIndex=0):this.state=m===n.Dash?r.BeforeComment:r.InDeclaration},h.prototype.stateInDeclaration=function(m){(m===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},h.prototype.stateInProcessingInstruction=function(m){(m===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},h.prototype.stateBeforeComment=function(m){m===n.Dash?(this.state=r.InCommentLike,this.currentSequence=d.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=r.InDeclaration},h.prototype.stateInSpecialComment=function(m){(m===n.Gt||this.fastForwardTo(n.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=r.Text,this.sectionStart=this.index+1)},h.prototype.stateBeforeSpecialS=function(m){var D=m|32;D===d.ScriptEnd[3]?this.startSpecial(d.ScriptEnd,4):D===d.StyleEnd[3]?this.startSpecial(d.StyleEnd,4):(this.state=r.InTagName,this.stateInTagName(m))},h.prototype.stateBeforeEntity=function(m){this.entityExcess=1,this.entityResult=0,m===n.Number?this.state=r.BeforeNumericEntity:m===n.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=r.InNamedEntity,this.stateInNamedEntity(m))},h.prototype.stateInNamedEntity=function(m){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,m),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var D=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(D){var g=(D>>14)-1;if(!this.allowLegacyEntity()&&m!==n.Semi)this.trieIndex+=g;else{var p=this.index-this.entityExcess+1;p>this.sectionStart&&this.emitPartial(this.sectionStart,p),this.entityResult=this.trieIndex,this.trieIndex+=g,this.entityExcess=0,this.sectionStart=this.index+1,g===0&&this.emitNamedEntity()}}},h.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var m=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(m){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},h.prototype.stateBeforeNumericEntity=function(m){(m|32)===n.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(m))},h.prototype.emitNumericEntity=function(m){var D=this.index-this.entityExcess-1,g=D+2+ +(this.state===r.InHexEntity);g!==this.index&&(D>this.sectionStart&&this.emitPartial(this.sectionStart,D),this.sectionStart=this.index+Number(m),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},h.prototype.stateInNumericEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):s(m)?(this.entityResult=this.entityResult*10+(m-n.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.stateInHexEntity=function(m){m===n.Semi?this.emitNumericEntity(!0):s(m)?(this.entityResult=this.entityResult*16+(m-n.Zero),this.entityExcess++):l(m)?(this.entityResult=this.entityResult*16+((m|32)-n.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},h.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},h.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===r.InAttributeValueDq||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},h.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},h.prototype.parse=function(){for(;this.shouldContinue();){var m=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case r.Text:{this.stateText(m);break}case r.SpecialStartSequence:{this.stateSpecialStartSequence(m);break}case r.InSpecialTag:{this.stateInSpecialTag(m);break}case r.CDATASequence:{this.stateCDATASequence(m);break}case r.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(m);break}case r.InAttributeName:{this.stateInAttributeName(m);break}case r.InCommentLike:{this.stateInCommentLike(m);break}case r.InSpecialComment:{this.stateInSpecialComment(m);break}case r.BeforeAttributeName:{this.stateBeforeAttributeName(m);break}case r.InTagName:{this.stateInTagName(m);break}case r.InClosingTagName:{this.stateInClosingTagName(m);break}case r.BeforeTagName:{this.stateBeforeTagName(m);break}case r.AfterAttributeName:{this.stateAfterAttributeName(m);break}case r.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(m);break}case r.BeforeAttributeValue:{this.stateBeforeAttributeValue(m);break}case r.BeforeClosingTagName:{this.stateBeforeClosingTagName(m);break}case r.AfterClosingTagName:{this.stateAfterClosingTagName(m);break}case r.BeforeSpecialS:{this.stateBeforeSpecialS(m);break}case r.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(m);break}case r.InSelfClosingTag:{this.stateInSelfClosingTag(m);break}case r.InDeclaration:{this.stateInDeclaration(m);break}case r.BeforeDeclaration:{this.stateBeforeDeclaration(m);break}case r.BeforeComment:{this.stateBeforeComment(m);break}case r.InProcessingInstruction:{this.stateInProcessingInstruction(m);break}case r.InNamedEntity:{this.stateInNamedEntity(m);break}case r.BeforeEntity:{this.stateBeforeEntity(m);break}case r.InHexEntity:{this.stateInHexEntity(m);break}case r.InNumericEntity:{this.stateInNumericEntity(m);break}default:this.stateBeforeNumericEntity(m)}this.index++}this.cleanup()},h.prototype.finish=function(){this.state===r.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},h.prototype.handleTrailingData=function(){var m=this.buffer.length+this.offset;this.state===r.InCommentLike?this.currentSequence===d.CdataEnd?this.cbs.oncdata(this.sectionStart,m,0):this.cbs.oncomment(this.sectionStart,m,0):this.state===r.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InTagName||this.state===r.BeforeAttributeName||this.state===r.BeforeAttributeValue||this.state===r.AfterAttributeName||this.state===r.InAttributeName||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueDq||this.state===r.InAttributeValueNq||this.state===r.InClosingTagName||this.cbs.ontext(this.sectionStart,m)},h.prototype.emitPartial=function(m,D){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribdata(m,D):this.cbs.ontext(m,D)},h.prototype.emitCodePoint=function(m){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribentity(m):this.cbs.ontextentity(m)},h}();t.default=F}($j);var Jxe=Qe&&Qe.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Xxe=Qe&&Qe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Qxe=Qe&&Qe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Jxe(e,t,n);return Xxe(e,t),e};Object.defineProperty(M3,"__esModule",{value:!0}),M3.Parser=void 0;var U8=Qxe($j),aY=P3,zm=new Set(["input","option","optgroup","select","button","datalist","textarea"]),gr=new Set(["p"]),sY=new Set(["thead","tbody"]),uY=new Set(["dd","dt"]),lY=new Set(["rt","rp"]),ewe=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",gr],["h1",gr],["h2",gr],["h3",gr],["h4",gr],["h5",gr],["h6",gr],["select",zm],["input",zm],["output",zm],["button",zm],["datalist",zm],["textarea",zm],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",uY],["dt",uY],["address",gr],["article",gr],["aside",gr],["blockquote",gr],["details",gr],["div",gr],["dl",gr],["fieldset",gr],["figcaption",gr],["figure",gr],["footer",gr],["form",gr],["header",gr],["hr",gr],["main",gr],["nav",gr],["ol",gr],["pre",gr],["section",gr],["table",gr],["ul",gr],["rt",lY],["rp",lY],["tbody",sY],["tfoot",sY]]),twe=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),cY=new Set(["math","svg"]),dY=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),nwe=/\s|\//,rwe=function(){function t(e,n){n===void 0&&(n={});var r,o,i,s,u;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(r=n.lowerCaseTags)!==null&&r!==void 0?r:!n.xmlMode,this.lowerCaseAttributeNames=(o=n.lowerCaseAttributeNames)!==null&&o!==void 0?o:!n.xmlMode,this.tokenizer=new((i=n.Tokenizer)!==null&&i!==void 0?i:U8.default)(this.options,this),(u=(s=this.cbs).onparserinit)===null||u===void 0||u.call(s,this)}return t.prototype.ontext=function(e,n){var r,o,i=this.getSlice(e,n);this.endIndex=n-1,(o=(r=this.cbs).ontext)===null||o===void 0||o.call(r,i),this.startIndex=n},t.prototype.ontextentity=function(e){var n,r,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(r=(n=this.cbs).ontext)===null||r===void 0||r.call(n,(0,aY.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&twe.has(e)},t.prototype.onopentagname=function(e,n){this.endIndex=n;var r=this.getSlice(e,n);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)},t.prototype.emitOpenTag=function(e){var n,r,o,i;this.openTagStart=this.startIndex,this.tagname=e;var s=!this.options.xmlMode&&ewe.get(e);if(s)for(;this.stack.length>0&&s.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,u,!0)}this.isVoidElement(e)||(this.stack.push(e),cY.has(e)?this.foreignContext.push(!0):dY.has(e)&&this.foreignContext.push(!1)),(i=(o=this.cbs).onopentagname)===null||i===void 0||i.call(o,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,n){var r,o,i,s,u,l;this.endIndex=n;var c=this.getSlice(e,n);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(cY.has(c)||dY.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((o=(r=this.cbs).onopentagname)===null||o===void 0||o.call(r,"br"),(s=(i=this.cbs).onopentag)===null||s===void 0||s.call(i,"br",{},!0),(l=(u=this.cbs).onclosetag)===null||l===void 0||l.call(u,"br",!1));else{var d=this.stack.lastIndexOf(c);if(d!==-1)if(this.cbs.onclosetag)for(var F=this.stack.length-d;F--;)this.cbs.onclosetag(this.stack.pop(),F!==0);else this.stack.length=d;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var n,r,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,o,!e),this.stack.pop())},t.prototype.onattribname=function(e,n){this.startIndex=e;var r=this.getSlice(e,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},t.prototype.onattribdata=function(e,n){this.attribvalue+=this.getSlice(e,n)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,aY.fromCodePoint)(e)},t.prototype.onattribend=function(e,n){var r,o;this.endIndex=n,(o=(r=this.cbs).onattribute)===null||o===void 0||o.call(r,this.attribname,this.attribvalue,e===U8.QuoteType.Double?'"':e===U8.QuoteType.Single?"'":e===U8.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var n=e.search(nwe),r=n<0?e:e.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},t.prototype.ondeclaration=function(e,n){this.endIndex=n;var r=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(o),"!".concat(r))}this.startIndex=n+1},t.prototype.onprocessinginstruction=function(e,n){this.endIndex=n;var r=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(r))}this.startIndex=n+1},t.prototype.oncomment=function(e,n,r){var o,i,s,u;this.endIndex=n,(i=(o=this.cbs).oncomment)===null||i===void 0||i.call(o,this.getSlice(e,n-r)),(u=(s=this.cbs).oncommentend)===null||u===void 0||u.call(s),this.startIndex=n+1},t.prototype.oncdata=function(e,n,r){var o,i,s,u,l,c,d,F,h,m;this.endIndex=n;var D=this.getSlice(e,n-r);this.options.xmlMode||this.options.recognizeCDATA?((i=(o=this.cbs).oncdatastart)===null||i===void 0||i.call(o),(u=(s=this.cbs).ontext)===null||u===void 0||u.call(s,D),(c=(l=this.cbs).oncdataend)===null||c===void 0||c.call(l)):((F=(d=this.cbs).oncomment)===null||F===void 0||F.call(d,"[CDATA[".concat(D,"]]")),(m=(h=this.cbs).oncommentend)===null||m===void 0||m.call(h)),this.startIndex=n+1},t.prototype.onend=function(){var e,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(n=(e=this.cbs).onend)===null||n===void 0||n.call(e)},t.prototype.reset=function(){var e,n,r,o;(n=(e=this.cbs).onreset)===null||n===void 0||n.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(o=(r=this.cbs).onparserinit)===null||o===void 0||o.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,n){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(e-this.bufferOffset,n-this.bufferOffset);n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t}();M3.Parser=rwe;var V8={},Wd={},L3={},hY={},Yh={},Yj={};Object.defineProperty(Yj,"__esModule",{value:!0});function q8(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}Yj.default=new Map(q8([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(q8([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(q8([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(q8([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var H8={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(o,i){return o.codePointAt(i)}:function(o,i){return(o.charCodeAt(i)&64512)===55296?(o.charCodeAt(i)-55296)*1024+o.charCodeAt(i+1)-56320+65536:o.charCodeAt(i)};function n(o){for(var i="",s=0,u;(u=t.xmlReplacer.exec(o))!==null;){var l=u.index,c=o.charCodeAt(l),d=e.get(c);d!==void 0?(i+=o.substring(s,l)+d,s=l+1):(i+="".concat(o.substring(s,l),"&#x").concat((0,t.getCodePoint)(o,l).toString(16),";"),s=t.xmlReplacer.lastIndex+=+((c&64512)===55296))}return i+o.substr(s)}t.encodeXML=n,t.escape=n;function r(o,i){return function(s){for(var u,l=0,c="";u=o.exec(s);)l!==u.index&&(c+=s.substring(l,u.index)),c+=i.get(u[0].charCodeAt(0)),l=u.index+1;return c+s.substring(l)}}t.escapeUTF8=r(/[&<>'"]/g,e),t.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(H8);var owe=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.encodeNonAsciiHTML=Yh.encodeHTML=void 0;var iwe=owe(Yj),FY=H8,awe=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function swe(t){return mY(awe,t)}Yh.encodeHTML=swe;function uwe(t){return mY(FY.xmlReplacer,t)}Yh.encodeNonAsciiHTML=uwe;function mY(t,e){for(var n="",r=0,o;(o=t.exec(e))!==null;){var i=o.index;n+=e.substring(r,i);var s=e.charCodeAt(i),u=iwe.default.get(s);if(typeof u=="object"){if(i+1<e.length){var l=e.charCodeAt(i+1),c=typeof u.n=="number"?u.n===l?u.o:void 0:u.n.get(l);if(c!==void 0){n+=c,r=t.lastIndex+=1;continue}}u=u.v}if(u!==void 0)n+=u,r=i+1;else{var d=(0,FY.getCodePoint)(e,i);n+="&#x".concat(d.toString(16),";"),r=t.lastIndex+=+(d!==s)}}return n+e.substr(r)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=P3,n=Yh,r=H8,o;(function(h){h[h.XML=0]="XML",h[h.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var i;(function(h){h[h.UTF8=0]="UTF8",h[h.ASCII=1]="ASCII",h[h.Extensive=2]="Extensive",h[h.Attribute=3]="Attribute",h[h.Text=4]="Text"})(i=t.EncodingMode||(t.EncodingMode={}));function s(h,m){m===void 0&&(m=o.XML);var D=typeof m=="number"?m:m.level;if(D===o.HTML){var g=typeof m=="object"?m.mode:void 0;return(0,e.decodeHTML)(h,g)}return(0,e.decodeXML)(h)}t.decode=s;function u(h,m){var D;m===void 0&&(m=o.XML);var g=typeof m=="number"?{level:m}:m;return(D=g.mode)!==null&&D!==void 0||(g.mode=e.DecodingMode.Strict),s(h,g)}t.decodeStrict=u;function l(h,m){m===void 0&&(m=o.XML);var D=typeof m=="number"?{level:m}:m;return D.mode===i.UTF8?(0,r.escapeUTF8)(h):D.mode===i.Attribute?(0,r.escapeAttribute)(h):D.mode===i.Text?(0,r.escapeText)(h):D.level===o.HTML?D.mode===i.ASCII?(0,n.encodeNonAsciiHTML)(h):(0,n.encodeHTML)(h):(0,r.encodeXML)(h)}t.encode=l;var c=H8;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var d=Yh;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return d.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return d.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return d.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return d.encodeHTML}});var F=P3;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return F.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return F.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return F.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return F.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return F.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return F.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return F.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return F.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return F.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return F.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return F.decodeXML}})})(hY);var Um={};Object.defineProperty(Um,"__esModule",{value:!0}),Um.attributeNames=Um.elementNames=void 0,Um.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]})),Um.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var Vm=Qe&&Qe.__assign||function(){return Vm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Vm.apply(this,arguments)},lwe=Qe&&Qe.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),cwe=Qe&&Qe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),dwe=Qe&&Qe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&lwe(e,t,n);return cwe(e,t),e};Object.defineProperty(L3,"__esModule",{value:!0}),L3.render=void 0;var rc=dwe(jm),$8=hY,DY=Um,hwe=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Fwe(t){return t.replace(/"/g,"&quot;")}function mwe(t,e){var n;if(t){var r=((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)===!1?Fwe:e.xmlMode||e.encodeEntities!=="utf8"?$8.encodeXML:$8.escapeAttribute;return Object.keys(t).map(function(o){var i,s,u=(i=t[o])!==null&&i!==void 0?i:"";return e.xmlMode==="foreign"&&(o=(s=DY.attributeNames.get(o))!==null&&s!==void 0?s:o),!e.emptyAttrs&&!e.xmlMode&&u===""?o:"".concat(o,'="').concat(r(u),'"')}).join(" ")}}var gY=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function W8(t,e){e===void 0&&(e={});for(var n=("length"in t)?t:[t],r="",o=0;o<n.length;o++)r+=Dwe(n[o],e);return r}L3.render=W8,L3.default=W8;function Dwe(t,e){switch(t.type){case rc.Root:return W8(t.children,e);case rc.Doctype:case rc.Directive:return _we(t);case rc.Comment:return Cwe(t);case rc.CDATA:return bwe(t);case rc.Script:case rc.Style:case rc.Tag:return fwe(t,e);case rc.Text:return vwe(t,e)}}var gwe=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),pwe=new Set(["svg","math"]);function fwe(t,e){var n;e.xmlMode==="foreign"&&(t.name=(n=DY.elementNames.get(t.name))!==null&&n!==void 0?n:t.name,t.parent&&gwe.has(t.parent.name)&&(e=Vm(Vm({},e),{xmlMode:!1}))),!e.xmlMode&&pwe.has(t.name)&&(e=Vm(Vm({},e),{xmlMode:"foreign"}));var r="<".concat(t.name),o=mwe(t.attribs,e);return o&&(r+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&gY.has(t.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",t.children.length>0&&(r+=W8(t.children,e)),(e.xmlMode||!gY.has(t.name))&&(r+="</".concat(t.name,">"))),r}function _we(t){return"<".concat(t.data,">")}function vwe(t,e){var n,r=t.data||"";return((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&hwe.has(t.parent.name))&&(r=e.xmlMode||e.encodeEntities!=="utf8"?(0,$8.encodeXML)(r):(0,$8.escapeText)(r)),r}function bwe(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function Cwe(t){return"<!--".concat(t.data,"-->")}var Ewe=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wd,"__esModule",{value:!0}),Wd.getOuterHTML=pY,Wd.getInnerHTML=wwe,Wd.getText=K8,Wd.textContent=Zj,Wd.innerText=Jj;var Hu=eo,ywe=Ewe(L3),xwe=jm;function pY(t,e){return(0,ywe.default)(t,e)}function wwe(t,e){return(0,Hu.hasChildren)(t)?t.children.map(function(n){return pY(n,e)}).join(""):""}function K8(t){return Array.isArray(t)?t.map(K8).join(""):(0,Hu.isTag)(t)?t.name==="br"?`
`:K8(t.children):(0,Hu.isCDATA)(t)?K8(t.children):(0,Hu.isText)(t)?t.data:""}function Zj(t){return Array.isArray(t)?t.map(Zj).join(""):(0,Hu.hasChildren)(t)&&!(0,Hu.isComment)(t)?Zj(t.children):(0,Hu.isText)(t)?t.data:""}function Jj(t){return Array.isArray(t)?t.map(Jj).join(""):(0,Hu.hasChildren)(t)&&(t.type===xwe.ElementType.Tag||(0,Hu.isCDATA)(t))?Jj(t.children):(0,Hu.isText)(t)?t.data:""}var $u={};Object.defineProperty($u,"__esModule",{value:!0}),$u.getChildren=fY,$u.getParent=_Y,$u.getSiblings=kwe,$u.getAttributeValue=Swe,$u.hasAttrib=jwe,$u.getName=Bwe,$u.nextElementSibling=Awe,$u.prevElementSibling=Twe;var Xj=eo;function fY(t){return(0,Xj.hasChildren)(t)?t.children:[]}function _Y(t){return t.parent||null}function kwe(t){var e,n,r=_Y(t);if(r!=null)return fY(r);for(var o=[t],i=t.prev,s=t.next;i!=null;)o.unshift(i),e=i,i=e.prev;for(;s!=null;)o.push(s),n=s,s=n.next;return o}function Swe(t,e){var n;return(n=t.attribs)===null||n===void 0?void 0:n[e]}function jwe(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Bwe(t){return t.name}function Awe(t){for(var e,n=t.next;n!==null&&!(0,Xj.isTag)(n);)e=n,n=e.next;return n}function Twe(t){for(var e,n=t.prev;n!==null&&!(0,Xj.isTag)(n);)e=n,n=e.prev;return n}var Kd={};Object.defineProperty(Kd,"__esModule",{value:!0}),Kd.removeElement=N3,Kd.replaceElement=Iwe,Kd.appendChild=Rwe,Kd.append=Owe,Kd.prependChild=Mwe,Kd.prepend=Pwe;function N3(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,n=e.lastIndexOf(t);n>=0&&e.splice(n,1)}t.next=null,t.prev=null,t.parent=null}function Iwe(t,e){var n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;r&&(r.prev=e);var o=e.parent=t.parent;if(o){var i=o.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Rwe(t,e){if(N3(e),e.next=null,e.parent=t,t.children.push(e)>1){var n=t.children[t.children.length-2];n.next=e,e.prev=n}else e.prev=null}function Owe(t,e){N3(e);var n=t.parent,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){var o=n.children;o.splice(o.lastIndexOf(r),0,e)}}else n&&n.children.push(e)}function Mwe(t,e){if(N3(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var n=t.children[1];n.prev=e,e.next=n}else e.next=null}function Pwe(t,e){N3(e);var n=t.parent;if(n){var r=n.children;r.splice(r.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}var oc={};Object.defineProperty(oc,"__esModule",{value:!0}),oc.filter=Lwe,oc.find=vY,oc.findOneChild=Nwe,oc.findOne=bY,oc.existsOne=CY,oc.findAll=zwe;var Zh=eo;function Lwe(t,e,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),vY(t,Array.isArray(e)?e:[e],n,r)}function vY(t,e,n,r){for(var o=[],i=[Array.isArray(e)?e:[e]],s=[0];;){if(s[0]>=i[0].length){if(s.length===1)return o;i.shift(),s.shift();continue}var u=i[0][s[0]++];if(t(u)&&(o.push(u),--r<=0))return o;n&&(0,Zh.hasChildren)(u)&&u.children.length>0&&(s.unshift(0),i.unshift(u.children))}}function Nwe(t,e){return e.find(t)}function bY(t,e,n){n===void 0&&(n=!0);for(var r=Array.isArray(e)?e:[e],o=0;o<r.length;o++){var i=r[o];if((0,Zh.isTag)(i)&&t(i))return i;if(n&&(0,Zh.hasChildren)(i)&&i.children.length>0){var s=bY(t,i.children,!0);if(s)return s}}return null}function CY(t,e){return(Array.isArray(e)?e:[e]).some(function(n){return(0,Zh.isTag)(n)&&t(n)||(0,Zh.hasChildren)(n)&&CY(t,n.children)})}function zwe(t,e){for(var n=[],r=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=r[0].length){if(r.length===1)return n;r.shift(),o.shift();continue}var i=r[0][o[0]++];(0,Zh.isTag)(i)&&t(i)&&n.push(i),(0,Zh.hasChildren)(i)&&i.children.length>0&&(o.unshift(0),r.unshift(i.children))}}var ic={};Object.defineProperty(ic,"__esModule",{value:!0}),ic.testElement=Vwe,ic.getElements=qwe,ic.getElementById=Hwe,ic.getElementsByTagName=$we,ic.getElementsByClassName=Wwe,ic.getElementsByTagType=Kwe;var Jh=eo,z3=oc,G8={tag_name:function(t){return typeof t=="function"?function(e){return(0,Jh.isTag)(e)&&t(e.name)}:t==="*"?Jh.isTag:function(e){return(0,Jh.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Jh.isText)(e)&&t(e.data)}:function(e){return(0,Jh.isText)(e)&&e.data===t}}};function Qj(t,e){return typeof e=="function"?function(n){return(0,Jh.isTag)(n)&&e(n.attribs[t])}:function(n){return(0,Jh.isTag)(n)&&n.attribs[t]===e}}function Uwe(t,e){return function(n){return t(n)||e(n)}}function EY(t){var e=Object.keys(t).map(function(n){var r=t[n];return Object.prototype.hasOwnProperty.call(G8,n)?G8[n](r):Qj(n,r)});return e.length===0?null:e.reduce(Uwe)}function Vwe(t,e){var n=EY(t);return n?n(e):!0}function qwe(t,e,n,r){r===void 0&&(r=1/0);var o=EY(t);return o?(0,z3.filter)(o,e,n,r):[]}function Hwe(t,e,n){return n===void 0&&(n=!0),Array.isArray(e)||(e=[e]),(0,z3.findOne)(Qj("id",t),e,n)}function $we(t,e,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,z3.filter)(G8.tag_name(t),e,n,r)}function Wwe(t,e,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,z3.filter)(Qj("class",t),e,n,r)}function Kwe(t,e,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,z3.filter)(G8.tag_type(t),e,n,r)}var Xh={};Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.DocumentPosition=void 0,Xh.removeSubsets=Gwe,Xh.compareDocumentPosition=xY,Xh.uniqueSort=Ywe;var yY=eo;function Gwe(t){for(var e=t.length;--e>=0;){var n=t[e];if(e>0&&t.lastIndexOf(n,e-1)>=0){t.splice(e,1);continue}for(var r=n.parent;r;r=r.parent)if(t.includes(r)){t.splice(e,1);break}}return t}var Ws;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Ws||(Xh.DocumentPosition=Ws={}));function xY(t,e){var n=[],r=[];if(t===e)return 0;for(var o=(0,yY.hasChildren)(t)?t:t.parent;o;)n.unshift(o),o=o.parent;for(o=(0,yY.hasChildren)(e)?e:e.parent;o;)r.unshift(o),o=o.parent;for(var i=Math.min(n.length,r.length),s=0;s<i&&n[s]===r[s];)s++;if(s===0)return Ws.DISCONNECTED;var u=n[s-1],l=u.children,c=n[s],d=r[s];return l.indexOf(c)>l.indexOf(d)?u===e?Ws.FOLLOWING|Ws.CONTAINED_BY:Ws.FOLLOWING:u===t?Ws.PRECEDING|Ws.CONTAINS:Ws.PRECEDING}function Ywe(t){return t=t.filter(function(e,n,r){return!r.includes(e,n+1)}),t.sort(function(e,n){var r=xY(e,n);return r&Ws.PRECEDING?-1:r&Ws.FOLLOWING?1:0}),t}var eB={};Object.defineProperty(eB,"__esModule",{value:!0}),eB.getFeed=Jwe;var Zwe=Wd,U3=ic;function Jwe(t){var e=Y8(n6e,t);return e?e.name==="feed"?Xwe(e):Qwe(e):null}function Xwe(t){var e,n=t.children,r={type:"atom",items:(0,U3.getElementsByTagName)("entry",n).map(function(s){var u,l=s.children,c={media:wY(l)};ia(c,"id","id",l),ia(c,"title","title",l);var d=(u=Y8("link",l))===null||u===void 0?void 0:u.attribs.href;d&&(c.link=d);var F=Gd("summary",l)||Gd("content",l);F&&(c.description=F);var h=Gd("updated",l);return h&&(c.pubDate=new Date(h)),c})};ia(r,"id","id",n),ia(r,"title","title",n);var o=(e=Y8("link",n))===null||e===void 0?void 0:e.attribs.href;o&&(r.link=o),ia(r,"description","subtitle",n);var i=Gd("updated",n);return i&&(r.updated=new Date(i)),ia(r,"author","email",n,!0),r}function Qwe(t){var e,n,r=(n=(e=Y8("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&n!==void 0?n:[],o={type:t.name.substr(0,3),id:"",items:(0,U3.getElementsByTagName)("item",t.children).map(function(s){var u=s.children,l={media:wY(u)};ia(l,"id","guid",u),ia(l,"title","title",u),ia(l,"link","link",u),ia(l,"description","description",u);var c=Gd("pubDate",u)||Gd("dc:date",u);return c&&(l.pubDate=new Date(c)),l})};ia(o,"title","title",r),ia(o,"link","link",r),ia(o,"description","description",r);var i=Gd("lastBuildDate",r);return i&&(o.updated=new Date(i)),ia(o,"author","managingEditor",r,!0),o}var e6e=["url","type","lang"],t6e=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function wY(t){return(0,U3.getElementsByTagName)("media:content",t).map(function(e){for(var n=e.attribs,r={medium:n.medium,isDefault:!!n.isDefault},o=0,i=e6e;o<i.length;o++){var s=i[o];n[s]&&(r[s]=n[s])}for(var u=0,l=t6e;u<l.length;u++){var s=l[u];n[s]&&(r[s]=parseInt(n[s],10))}return n.expression&&(r.expression=n.expression),r})}function Y8(t,e){return(0,U3.getElementsByTagName)(t,e,!0,1)[0]}function Gd(t,e,n){return n===void 0&&(n=!1),(0,Zwe.textContent)((0,U3.getElementsByTagName)(t,e,n,1)).trim()}function ia(t,e,n,r,o){o===void 0&&(o=!1);var i=Gd(n,r,o);i&&(t[e]=i)}function n6e(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=Qe&&Qe.__createBinding||(Object.create?function(o,i,s,u){u===void 0&&(u=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,u,l)}:function(o,i,s,u){u===void 0&&(u=s),o[u]=i[s]}),n=Qe&&Qe.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,n(Wd,t),n($u,t),n(Kd,t),n(oc,t),n(ic,t),n(Xh,t),n(eB,t);var r=eo;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})})(V8),function(t){var e=Qe&&Qe.__createBinding||(Object.create?function(_,v,E,b){b===void 0&&(b=E);var k=Object.getOwnPropertyDescriptor(v,E);(!k||("get"in k?!v.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return v[E]}}),Object.defineProperty(_,b,k)}:function(_,v,E,b){b===void 0&&(b=E),_[b]=v[E]}),n=Qe&&Qe.__setModuleDefault||(Object.create?function(_,v){Object.defineProperty(_,"default",{enumerable:!0,value:v})}:function(_,v){_.default=v}),r=Qe&&Qe.__importStar||function(_){if(_&&_.__esModule)return _;var v={};if(_!=null)for(var E in _)E!=="default"&&Object.prototype.hasOwnProperty.call(_,E)&&e(v,_,E);return n(v,_),v},o=Qe&&Qe.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var i=M3,s=M3;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return s.Parser}});var u=eo,l=eo;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return l.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return l.DomHandler}});function c(_,v){var E=new u.DomHandler(void 0,v);return new i.Parser(E,v).end(_),E.root}t.parseDocument=c;function d(_,v){return c(_,v).children}t.parseDOM=d;function F(_,v,E){var b=new u.DomHandler(_,v,E);return new i.Parser(b,v)}t.createDomStream=F;var h=$j;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(h).default}}),t.ElementType=r(jm);var m=V8,D=V8;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return D.getFeed}});var g={xmlMode:!0};function p(_,v){return v===void 0&&(v=g),(0,m.getFeed)(d(_,v))}t.parseFeed=p,t.DomUtils=r(V8)}(iY);var r6e=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function kY(t){return Object.prototype.toString.call(t)==="[object Object]"}function Wo(t){var e,n;return kY(t)===!1?!1:(e=t.constructor,e===void 0?!0:(n=e.prototype,!(kY(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const o6e=Object.freeze(Object.defineProperty({__proto__:null,isPlainObject:Wo},Symbol.toStringTag,{value:"Module"})),i6e=Xn(o6e);var a6e=function(t){return s6e(t)&&!u6e(t)};function s6e(t){return!!t&&typeof t=="object"}function u6e(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||d6e(t)}var l6e=typeof Symbol=="function"&&Symbol.for,c6e=l6e?Symbol.for("react.element"):60103;function d6e(t){return t.$$typeof===c6e}function h6e(t){return Array.isArray(t)?[]:{}}function V3(t,e){return e.clone!==!1&&e.isMergeableObject(t)?qm(h6e(t),t,e):t}function F6e(t,e,n){return t.concat(e).map(function(r){return V3(r,n)})}function m6e(t,e){if(!e.customMerge)return qm;var n=e.customMerge(t);return typeof n=="function"?n:qm}function D6e(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function SY(t){return Object.keys(t).concat(D6e(t))}function jY(t,e){try{return e in t}catch{return!1}}function g6e(t,e){return jY(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function p6e(t,e,n){var r={};return n.isMergeableObject(t)&&SY(t).forEach(function(o){r[o]=V3(t[o],n)}),SY(e).forEach(function(o){g6e(t,o)||(jY(t,o)&&n.isMergeableObject(e[o])?r[o]=m6e(o,n)(t[o],e[o],n):r[o]=V3(e[o],n))}),r}function qm(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||F6e,n.isMergeableObject=n.isMergeableObject||a6e,n.cloneUnlessOtherwiseSpecified=V3;var r=Array.isArray(e),o=Array.isArray(t),i=r===o;return i?r?n.arrayMerge(t,e,n):p6e(t,e,n):V3(e,n)}qm.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,r){return qm(n,r,e)},{})};var f6e=qm,_6e=f6e,BY={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.parseSrcset=n()})(Qe,function(){return function(e){function n(b){return b===" "||b===" "||b===`
`||b==="\f"||b==="\r"}function r(b){var k,C=b.exec(e.substring(p));if(C)return k=C[0],p+=k.length,k}for(var o=e.length,i=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,u=/^[^ \t\n\r\u000c]+/,l=/[,]+$/,c=/^\d+$/,d=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,F,h,m,D,g,p=0,_=[];;){if(r(s),p>=o)return _;F=r(u),h=[],F.slice(-1)===","?(F=F.replace(l,""),E()):v()}function v(){for(r(i),m="",D="in descriptor";;){if(g=e.charAt(p),D==="in descriptor")if(n(g))m&&(h.push(m),m="",D="after descriptor");else if(g===","){p+=1,m&&h.push(m),E();return}else if(g==="(")m=m+g,D="in parens";else if(g===""){m&&h.push(m),E();return}else m=m+g;else if(D==="in parens")if(g===")")m=m+g,D="in descriptor";else if(g===""){h.push(m),E();return}else m=m+g;else if(D==="after descriptor"&&!n(g))if(g===""){E();return}else D="in descriptor",p-=1;p+=1}}function E(){var b=!1,k,C,S,w,A={},O,j,R,M,z;for(w=0;w<h.length;w++)O=h[w],j=O[O.length-1],R=O.substring(0,O.length-1),M=parseInt(R,10),z=parseFloat(R),c.test(R)&&j==="w"?((k||C)&&(b=!0),M===0?b=!0:k=M):d.test(R)&&j==="x"?((k||C||S)&&(b=!0),z<0?b=!0:C=z):c.test(R)&&j==="h"?((S||C)&&(b=!0),M===0?b=!0:S=M):b=!0;b?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+O+"'."):(A.url=F,k&&(A.w=k),C&&(A.d=C),S&&(A.h=S),_.push(A))}}})})(BY);var v6e=BY.exports,tB={exports:{}},fn=String,AY=function(){return{isColorSupported:!1,reset:fn,bold:fn,dim:fn,italic:fn,underline:fn,inverse:fn,hidden:fn,strikethrough:fn,black:fn,red:fn,green:fn,yellow:fn,blue:fn,magenta:fn,cyan:fn,white:fn,gray:fn,bgBlack:fn,bgRed:fn,bgGreen:fn,bgYellow:fn,bgBlue:fn,bgMagenta:fn,bgCyan:fn,bgWhite:fn,blackBright:fn,redBright:fn,greenBright:fn,yellowBright:fn,blueBright:fn,magentaBright:fn,cyanBright:fn,whiteBright:fn,bgBlackBright:fn,bgRedBright:fn,bgGreenBright:fn,bgYellowBright:fn,bgBlueBright:fn,bgMagentaBright:fn,bgCyanBright:fn,bgWhiteBright:fn}};tB.exports=AY(),tB.exports.createColors=AY;var b6e=tB.exports;let TY,as;TY={},AI=Object.freeze(Object.defineProperty({__proto__:null,default:TY},Symbol.toStringTag,{value:"Module"})),as=Xn(AI);let IY=b6e,RY=as,nB=class Woe extends Error{constructor(e,n,r,o,i,s){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),o&&(this.source=o),s&&(this.plugin=s),typeof n<"u"&&typeof r<"u"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Woe)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let n=this.source;e==null&&(e=IY.isColorSupported);let r=d=>d,o=d=>d,i=d=>d;if(e){let{bold:d,gray:F,red:h}=IY.createColors(!0);o=m=>d(h(m)),r=m=>F(m),RY&&(i=m=>RY(m))}let s=n.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;return s.slice(u,l).map((d,F)=>{let h=u+1+F,m=" "+(" "+h).slice(-c)+" | ";if(h===this.line){if(d.length>160){let g=20,p=Math.max(0,this.column-g),_=Math.max(this.column+g,this.endColumn+g),v=d.slice(p,_),E=r(m.replace(/\d/g," "))+d.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return o(">")+r(m)+i(v)+`
`+E+o("^")}let D=r(m.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+r(m)+i(d)+`
`+D+o("^")}return" "+r(m)+i(d)}).join(`
`)}toString(){let e=this.showSourceCode();return e&&(e=`
`+e+`
`),this.name+": "+this.message+e}};var rB=nB;nB.default=nB;const OY={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function C6e(t){return t[0].toUpperCase()+t.slice(1)}let oB=class{constructor(t){this.builder=t}atrule(t,e){let n="@"+t.name,r=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?n+=t.raws.afterName:r&&(n+=" "),t.nodes)this.block(t,n+r);else{let o=(t.raws.between||"")+(e?";":"");this.builder(n+r+o,t)}}beforeAfter(t,e){let n;t.type==="decl"?n=this.raw(t,null,"beforeDecl"):t.type==="comment"?n=this.raw(t,null,"beforeComment"):e==="before"?n=this.raw(t,null,"beforeRule"):n=this.raw(t,null,"beforeClose");let r=t.parent,o=0;for(;r&&r.type!=="root";)o+=1,r=r.parent;if(n.includes(`
`)){let i=this.raw(t,null,"indent");if(i.length)for(let s=0;s<o;s++)n+=i}return n}block(t,e){let n=this.raw(t,"between","beforeOpen");this.builder(e+n+"{",t,"start");let r;t.nodes&&t.nodes.length?(this.body(t),r=this.raw(t,"after")):r=this.raw(t,"after","emptyBody"),r&&this.builder(r),this.builder("}",t,"end")}body(t){let e=t.nodes.length-1;for(;e>0&&t.nodes[e].type==="comment";)e-=1;let n=this.raw(t,"semicolon");for(let r=0;r<t.nodes.length;r++){let o=t.nodes[r],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,e!==r||n)}}comment(t){let e=this.raw(t,"left","commentLeft"),n=this.raw(t,"right","commentRight");this.builder("/*"+e+t.text+n+"*/",t)}decl(t,e){let n=this.raw(t,"between","colon"),r=t.prop+n+this.rawValue(t,"value");t.important&&(r+=t.raws.important||" !important"),e&&(r+=";"),this.builder(r,t)}document(t){this.body(t)}raw(t,e,n){let r;if(n||(n=e),e&&(r=t.raws[e],typeof r<"u"))return r;let o=t.parent;if(n==="before"&&(!o||o.type==="root"&&o.first===t||o&&o.type==="document"))return"";if(!o)return OY[n];let i=t.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[n]<"u")return i.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(t,n);{let s="raw"+C6e(n);this[s]?r=this[s](i,t):i.walk(u=>{if(r=u.raws[e],typeof r<"u")return!1})}return typeof r>"u"&&(r=OY[n]),i.rawCache[n]=r,r}rawBeforeClose(t){let e;return t.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return e=n.raws.after,e.includes(`
`)&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let n;return t.walkComments(r=>{if(typeof r.raws.before<"u")return n=r.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(e,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(t,e){let n;return t.walkDecls(r=>{if(typeof r.raws.before<"u")return n=r.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(e,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(t){let e;return t.walk(n=>{if(n.type!=="decl"&&(e=n.raws.between,typeof e<"u"))return!1}),e}rawBeforeRule(t){let e;return t.walk(n=>{if(n.nodes&&(n.parent!==t||t.first!==n)&&typeof n.raws.before<"u")return e=n.raws.before,e.includes(`
`)&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls(n=>{if(typeof n.raws.between<"u")return e=n.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){let e;return t.walk(n=>{if(n.nodes&&n.nodes.length===0&&(e=n.raws.after,typeof e<"u"))return!1}),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk(n=>{let r=n.parent;if(r&&r!==t&&r.parent&&r.parent===t&&typeof n.raws.before<"u"){let o=n.raws.before.split(`
`);return e=o[o.length-1],e=e.replace(/\S/g,""),!1}}),e}rawSemicolon(t){let e;return t.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(e=n.raws.semicolon,typeof e<"u"))return!1}),e}rawValue(t,e){let n=t[e],r=t.raws[e];return r&&r.value===n?r.raw:n}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}};var MY=oB;oB.default=oB;let E6e=MY;function iB(t,e){new E6e(e).stringify(t)}var Z8=iB;iB.default=iB;var q3={};q3.isClean=Symbol("isClean"),q3.my=Symbol("my");let y6e=rB,x6e=MY,w6e=Z8,{isClean:H3,my:k6e}=q3;function aB(t,e){let n=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let o=t[r],i=typeof o;r==="parent"&&i==="object"?e&&(n[r]=e):r==="source"?n[r]=o:Array.isArray(o)?n[r]=o.map(s=>aB(s,n)):(i==="object"&&o!==null&&(o=aB(o)),n[r]=o)}return n}function $3(t,e){if(e&&typeof e.offset<"u")return e.offset;let n=1,r=1,o=0;for(let i=0;i<t.length;i++){if(r===e.line&&n===e.column){o=i;break}t[i]===`
`?(n=1,r+=1):n+=1}return o}let sB=class{constructor(t={}){this.raws={},this[H3]=!1,this[k6e]=!0;for(let e in t)if(e==="nodes"){this.nodes=[];for(let n of t[e])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=aB(this);for(let n in t)e[n]=t[n];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e={}){if(this.source){let{end:n,start:r}=this.rangeBy(e);return this.source.input.error(t,{column:r.column,line:r.line},{column:n.column,line:n.line},e)}return new y6e(t)}getProxyProcessor(){return{get(t,e){return e==="proxyOf"?t:e==="root"?()=>t.root().toProxy():t[e]},set(t,e,n){return t[e]===n||(t[e]=n,(e==="prop"||e==="value"||e==="name"||e==="params"||e==="important"||e==="text")&&t.markDirty()),!0}}}markClean(){this[H3]=!0}markDirty(){if(this[H3]){this[H3]=!1;let t=this;for(;t=t.parent;)t[H3]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t){let e=this.source.start;if(t.index)e=this.positionInside(t.index);else if(t.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,r=n.slice($3(n,this.source.start),$3(n,this.source.end)).indexOf(t.word);r!==-1&&(e=this.positionInside(r))}return e}positionInside(t){let e=this.source.start.column,n=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,o=$3(r,this.source.start),i=o+t;for(let s=o;s<i;s++)r[s]===`
`?(e=1,n+=1):e+=1;return{column:e,line:n}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t){let e={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:e.column+1,line:e.line};if(t.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,o=r.slice($3(r,this.source.start),$3(r,this.source.end)).indexOf(t.word);o!==-1&&(e=this.positionInside(o),n=this.positionInside(o+t.word.length))}else t.start?e={column:t.start.column,line:t.start.line}:t.index&&(e=this.positionInside(t.index)),t.end?n={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?n=this.positionInside(t.endIndex):t.index&&(n=this.positionInside(t.index+1));return(n.line<e.line||n.line===e.line&&n.column<=e.column)&&(n={column:e.column+1,line:e.line}),{end:n,start:e}}raw(t,e){return new x6e().raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,n=!1;for(let r of t)r===this?n=!0:n?(this.parent.insertAfter(e,r),e=r):this.parent.insertBefore(e,r);n||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,e){let n={},r=e==null;e=e||new Map;let o=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let s=this[i];if(Array.isArray(s))n[i]=s.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,e):u);else if(typeof s=="object"&&s.toJSON)n[i]=s.toJSON(null,e);else if(i==="source"){let u=e.get(s.input);u==null&&(u=o,e.set(s.input,o),o++),n[i]={end:s.end,inputId:u,start:s.start}}else n[i]=s}return r&&(n.inputs=[...e.keys()].map(i=>i.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=w6e){t.stringify&&(t=t.stringify);let e="";return t(this,n=>{e+=n}),e}warn(t,e,n){let r={node:this};for(let o in n)r[o]=n[o];return t.warn(e,r)}get proxyOf(){return this}};var J8=sB;sB.default=sB;let S6e=J8,uB=class extends S6e{constructor(t){super(t),this.type="comment"}};var X8=uB;uB.default=uB;let j6e=J8,lB=class extends j6e{constructor(t){t&&typeof t.value<"u"&&typeof t.value!="string"&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Q8=lB;lB.default=lB;let PY=X8,LY=Q8,B6e=J8,{isClean:NY,my:zY}=q3,cB,UY,VY,dB;function qY(t){return t.map(e=>(e.nodes&&(e.nodes=qY(e.nodes)),delete e.source,e))}function HY(t){if(t[NY]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)HY(e)}let ac=class Koe extends B6e{append(...e){for(let n of e){let r=this.normalize(n,this.last);for(let o of r)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let n of this.nodes)n.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,o;for(;this.indexes[n]<this.proxyOf.nodes.length&&(r=this.indexes[n],o=e(this.proxyOf.nodes[r],r),o!==!1);)this.indexes[n]+=1;return delete this.indexes[n],o}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,n){return n==="proxyOf"?e:e[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>e[n](...r.map(o=>typeof o=="function"?(i,s)=>o(i.toProxy(),s):o)):n==="every"||n==="some"?r=>e[n]((o,...i)=>r(o.toProxy(),...i)):n==="root"?()=>e.root().toProxy():n==="nodes"?e.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?e[n].toProxy():e[n]:e[n]},set(e,n,r){return e[n]===r||(e[n]=r,(n==="name"||n==="params"||n==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,n){let r=this.index(e),o=this.normalize(n,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of o)this.proxyOf.nodes.splice(r+1,0,s);let i;for(let s in this.indexes)i=this.indexes[s],r<i&&(this.indexes[s]=i+o.length);return this.markDirty(),this}insertBefore(e,n){let r=this.index(e),o=r===0?"prepend":!1,i=this.normalize(n,this.proxyOf.nodes[r],o).reverse();r=this.index(e);for(let u of i)this.proxyOf.nodes.splice(r,0,u);let s;for(let u in this.indexes)s=this.indexes[u],r<=s&&(this.indexes[u]=s+i.length);return this.markDirty(),this}normalize(e,n){if(typeof e=="string")e=qY(UY(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new LY(e)]}else if(e.selector||e.selectors)e=[new dB(e)];else if(e.name)e=[new cB(e)];else if(e.text)e=[new PY(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[zY]||Koe.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[NY]&&HY(r),r.raws||(r.raws={}),typeof r.raws.before>"u"&&n&&typeof n.raws.before<"u"&&(r.raws.before=n.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let n of e){let r=this.normalize(n,this.first,"prepend").reverse();for(let o of r)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=e&&(this.indexes[r]=n-1);return this.markDirty(),this}replaceValues(e,n,r){return r||(r=n,n={}),this.walkDecls(o=>{n.props&&!n.props.includes(o.prop)||n.fast&&!o.value.includes(n.fast)||(o.value=o.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((n,r)=>{let o;try{o=e(n,r)}catch(i){throw n.addToError(i)}return o!==!1&&n.walk&&(o=n.walk(e)),o})}walkAtRules(e,n){return n?e instanceof RegExp?this.walk((r,o)=>{if(r.type==="atrule"&&e.test(r.name))return n(r,o)}):this.walk((r,o)=>{if(r.type==="atrule"&&r.name===e)return n(r,o)}):(n=e,this.walk((r,o)=>{if(r.type==="atrule")return n(r,o)}))}walkComments(e){return this.walk((n,r)=>{if(n.type==="comment")return e(n,r)})}walkDecls(e,n){return n?e instanceof RegExp?this.walk((r,o)=>{if(r.type==="decl"&&e.test(r.prop))return n(r,o)}):this.walk((r,o)=>{if(r.type==="decl"&&r.prop===e)return n(r,o)}):(n=e,this.walk((r,o)=>{if(r.type==="decl")return n(r,o)}))}walkRules(e,n){return n?e instanceof RegExp?this.walk((r,o)=>{if(r.type==="rule"&&e.test(r.selector))return n(r,o)}):this.walk((r,o)=>{if(r.type==="rule"&&r.selector===e)return n(r,o)}):(n=e,this.walk((r,o)=>{if(r.type==="rule")return n(r,o)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ac.registerParse=t=>{UY=t},ac.registerRule=t=>{dB=t},ac.registerAtRule=t=>{cB=t},ac.registerRoot=t=>{VY=t};var Qh=ac;ac.default=ac,ac.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,cB.prototype):t.type==="rule"?Object.setPrototypeOf(t,dB.prototype):t.type==="decl"?Object.setPrototypeOf(t,LY.prototype):t.type==="comment"?Object.setPrototypeOf(t,PY.prototype):t.type==="root"&&Object.setPrototypeOf(t,VY.prototype),t[zY]=!0,t.nodes&&t.nodes.forEach(e=>{ac.rebuild(e)})};let $Y=Qh,ey=class extends $Y{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};var hB=ey;ey.default=ey,$Y.registerAtRule(ey);let A6e=Qh,WY,KY,W3=class extends A6e{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new WY(new KY,this,t).stringify()}};W3.registerLazyResult=t=>{WY=t},W3.registerProcessor=t=>{KY=t};var FB=W3;W3.default=W3;let T6e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",I6e=(t,e=21)=>(n=e)=>{let r="",o=n|0;for(;o--;)r+=t[Math.random()*t.length|0];return r},R6e=(t=21)=>{let e="",n=t|0;for(;n--;)e+=T6e[Math.random()*64|0];return e},GY,K3;GY={nanoid:R6e,customAlphabet:I6e},R0={},K3={},K3.byteLength=P6e,K3.toByteArray=N6e,K3.fromByteArray=V6e;for(var Wu=[],ss=[],O6e=typeof Uint8Array<"u"?Uint8Array:Array,mB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hm=0,M6e=mB.length;Hm<M6e;++Hm)Wu[Hm]=mB[Hm],ss[mB.charCodeAt(Hm)]=Hm;ss[45]=62,ss[95]=63;function YY(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function P6e(t){var e=YY(t),n=e[0],r=e[1];return(n+r)*3/4-r}function L6e(t,e,n){return(e+n)*3/4-n}function N6e(t){var e,n=YY(t),r=n[0],o=n[1],i=new O6e(L6e(t,r,o)),s=0,u=o>0?r-4:r,l;for(l=0;l<u;l+=4)e=ss[t.charCodeAt(l)]<<18|ss[t.charCodeAt(l+1)]<<12|ss[t.charCodeAt(l+2)]<<6|ss[t.charCodeAt(l+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return o===2&&(e=ss[t.charCodeAt(l)]<<2|ss[t.charCodeAt(l+1)]>>4,i[s++]=e&255),o===1&&(e=ss[t.charCodeAt(l)]<<10|ss[t.charCodeAt(l+1)]<<4|ss[t.charCodeAt(l+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function z6e(t){return Wu[t>>18&63]+Wu[t>>12&63]+Wu[t>>6&63]+Wu[t&63]}function U6e(t,e,n){for(var r,o=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(z6e(r));return o.join("")}function V6e(t){for(var e,n=t.length,r=n%3,o=[],i=16383,s=0,u=n-r;s<u;s+=i)o.push(U6e(t,s,s+i>u?u:s+i));return r===1?(e=t[n-1],o.push(Wu[e>>2]+Wu[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],o.push(Wu[e>>10]+Wu[e>>4&63]+Wu[e<<2&63]+"=")),o.join("")}var DB={};DB.read=function(t,e,n,r,o){var i,s,u=o*8-r-1,l=(1<<u)-1,c=l>>1,d=-7,F=n?o-1:0,h=n?-1:1,m=t[e+F];for(F+=h,i=m&(1<<-d)-1,m>>=-d,d+=u;d>0;i=i*256+t[e+F],F+=h,d-=8);for(s=i&(1<<-d)-1,i>>=-d,d+=r;d>0;s=s*256+t[e+F],F+=h,d-=8);if(i===0)i=1-c;else{if(i===l)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-c}return(m?-1:1)*s*Math.pow(2,i-r)},DB.write=function(t,e,n,r,o,i){var s,u,l,c=i*8-o-1,d=(1<<c)-1,F=d>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:i-1,D=r?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,s=d):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+F>=1?e+=h/l:e+=h*Math.pow(2,1-F),e*l>=2&&(s++,l/=2),s+F>=d?(u=0,s=d):s+F>=1?(u=(e*l-1)*Math.pow(2,o),s=s+F):(u=e*Math.pow(2,F-1)*Math.pow(2,o),s=0));o>=8;t[n+m]=u&255,m+=D,u/=256,o-=8);for(s=s<<o|u,c+=o;c>0;t[n+m]=s&255,m+=D,s/=256,c-=8);t[n+m-D]|=g*128},function(t){const e=K3,n=DB,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50;const o=2147483647;t.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=i(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const B=new Uint8Array(1),N={foo:function(){return 42}};return Object.setPrototypeOf(N,Uint8Array.prototype),Object.setPrototypeOf(B,N),B.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function s(B){if(B>o)throw new RangeError('The value "'+B+'" is invalid for option "size"');const N=new Uint8Array(B);return Object.setPrototypeOf(N,u.prototype),N}function u(B,N,W){if(typeof B=="number"){if(typeof N=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return F(B)}return l(B,N,W)}u.poolSize=8192;function l(B,N,W){if(typeof B=="string")return h(B,N);if(ArrayBuffer.isView(B))return D(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(_e(B,ArrayBuffer)||B&&_e(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(_e(B,SharedArrayBuffer)||B&&_e(B.buffer,SharedArrayBuffer)))return g(B,N,W);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const oe=B.valueOf&&B.valueOf();if(oe!=null&&oe!==B)return u.from(oe,N,W);const ie=p(B);if(ie)return ie;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return u.from(B[Symbol.toPrimitive]("string"),N,W);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}u.from=function(B,N,W){return l(B,N,W)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function c(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function d(B,N,W){return c(B),B<=0?s(B):N!==void 0?typeof W=="string"?s(B).fill(N,W):s(B).fill(N):s(B)}u.alloc=function(B,N,W){return d(B,N,W)};function F(B){return c(B),s(B<0?0:_(B)|0)}u.allocUnsafe=function(B){return F(B)},u.allocUnsafeSlow=function(B){return F(B)};function h(B,N){if((typeof N!="string"||N==="")&&(N="utf8"),!u.isEncoding(N))throw new TypeError("Unknown encoding: "+N);const W=E(B,N)|0;let oe=s(W);const ie=oe.write(B,N);return ie!==W&&(oe=oe.slice(0,ie)),oe}function m(B){const N=B.length<0?0:_(B.length)|0,W=s(N);for(let oe=0;oe<N;oe+=1)W[oe]=B[oe]&255;return W}function D(B){if(_e(B,Uint8Array)){const N=new Uint8Array(B);return g(N.buffer,N.byteOffset,N.byteLength)}return m(B)}function g(B,N,W){if(N<0||B.byteLength<N)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<N+(W||0))throw new RangeError('"length" is outside of buffer bounds');let oe;return N===void 0&&W===void 0?oe=new Uint8Array(B):W===void 0?oe=new Uint8Array(B,N):oe=new Uint8Array(B,N,W),Object.setPrototypeOf(oe,u.prototype),oe}function p(B){if(u.isBuffer(B)){const N=_(B.length)|0,W=s(N);return W.length===0||B.copy(W,0,0,N),W}if(B.length!==void 0)return typeof B.length!="number"||xt(B.length)?s(0):m(B);if(B.type==="Buffer"&&Array.isArray(B.data))return m(B.data)}function _(B){if(B>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return B|0}function v(B){return+B!=B&&(B=0),u.alloc(+B)}u.isBuffer=function(B){return B!=null&&B._isBuffer===!0&&B!==u.prototype},u.compare=function(B,N){if(_e(B,Uint8Array)&&(B=u.from(B,B.offset,B.byteLength)),_e(N,Uint8Array)&&(N=u.from(N,N.offset,N.byteLength)),!u.isBuffer(B)||!u.isBuffer(N))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(B===N)return 0;let W=B.length,oe=N.length;for(let ie=0,ne=Math.min(W,oe);ie<ne;++ie)if(B[ie]!==N[ie]){W=B[ie],oe=N[ie];break}return W<oe?-1:oe<W?1:0},u.isEncoding=function(B){switch(String(B).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(B,N){if(!Array.isArray(B))throw new TypeError('"list" argument must be an Array of Buffers');if(B.length===0)return u.alloc(0);let W;if(N===void 0)for(N=0,W=0;W<B.length;++W)N+=B[W].length;const oe=u.allocUnsafe(N);let ie=0;for(W=0;W<B.length;++W){let ne=B[W];if(_e(ne,Uint8Array))ie+ne.length>oe.length?(u.isBuffer(ne)||(ne=u.from(ne)),ne.copy(oe,ie)):Uint8Array.prototype.set.call(oe,ne,ie);else if(u.isBuffer(ne))ne.copy(oe,ie);else throw new TypeError('"list" argument must be an Array of Buffers');ie+=ne.length}return oe};function E(B,N){if(u.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||_e(B,ArrayBuffer))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const W=B.length,oe=arguments.length>2&&arguments[2]===!0;if(!oe&&W===0)return 0;let ie=!1;for(;;)switch(N){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":return ze(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W*2;case"hex":return W>>>1;case"base64":return Ue(B).length;default:if(ie)return oe?-1:ze(B).length;N=(""+N).toLowerCase(),ie=!0}}u.byteLength=E;function b(B,N,W){let oe=!1;if((N===void 0||N<0)&&(N=0),N>this.length||((W===void 0||W>this.length)&&(W=this.length),W<=0)||(W>>>=0,N>>>=0,W<=N))return"";for(B||(B="utf8");;)switch(B){case"hex":return te(this,N,W);case"utf8":case"utf-8":return z(this,N,W);case"ascii":return L(this,N,W);case"latin1":case"binary":return U(this,N,W);case"base64":return M(this,N,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,N,W);default:if(oe)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),oe=!0}}u.prototype._isBuffer=!0;function k(B,N,W){const oe=B[N];B[N]=B[W],B[W]=oe}u.prototype.swap16=function(){const B=this.length;if(B%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let N=0;N<B;N+=2)k(this,N,N+1);return this},u.prototype.swap32=function(){const B=this.length;if(B%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let N=0;N<B;N+=4)k(this,N,N+3),k(this,N+1,N+2);return this},u.prototype.swap64=function(){const B=this.length;if(B%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let N=0;N<B;N+=8)k(this,N,N+7),k(this,N+1,N+6),k(this,N+2,N+5),k(this,N+3,N+4);return this},u.prototype.toString=function(){const B=this.length;return B===0?"":arguments.length===0?z(this,0,B):b.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(B){if(!u.isBuffer(B))throw new TypeError("Argument must be a Buffer");return this===B?!0:u.compare(this,B)===0},u.prototype.inspect=function(){let B="";const N=t.INSPECT_MAX_BYTES;return B=this.toString("hex",0,N).replace(/(.{2})/g,"$1 ").trim(),this.length>N&&(B+=" ... "),"<Buffer "+B+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(B,N,W,oe,ie){if(_e(B,Uint8Array)&&(B=u.from(B,B.offset,B.byteLength)),!u.isBuffer(B))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof B);if(N===void 0&&(N=0),W===void 0&&(W=B?B.length:0),oe===void 0&&(oe=0),ie===void 0&&(ie=this.length),N<0||W>B.length||oe<0||ie>this.length)throw new RangeError("out of range index");if(oe>=ie&&N>=W)return 0;if(oe>=ie)return-1;if(N>=W)return 1;if(N>>>=0,W>>>=0,oe>>>=0,ie>>>=0,this===B)return 0;let ne=ie-oe,me=W-N;const se=Math.min(ne,me),xe=this.slice(oe,ie),ke=B.slice(N,W);for(let qe=0;qe<se;++qe)if(xe[qe]!==ke[qe]){ne=xe[qe],me=ke[qe];break}return ne<me?-1:me<ne?1:0};function C(B,N,W,oe,ie){if(B.length===0)return-1;if(typeof W=="string"?(oe=W,W=0):W>2147483647?W=2147483647:W<-2147483648&&(W=-2147483648),W=+W,xt(W)&&(W=ie?0:B.length-1),W<0&&(W=B.length+W),W>=B.length){if(ie)return-1;W=B.length-1}else if(W<0)if(ie)W=0;else return-1;if(typeof N=="string"&&(N=u.from(N,oe)),u.isBuffer(N))return N.length===0?-1:S(B,N,W,oe,ie);if(typeof N=="number")return N=N&255,typeof Uint8Array.prototype.indexOf=="function"?ie?Uint8Array.prototype.indexOf.call(B,N,W):Uint8Array.prototype.lastIndexOf.call(B,N,W):S(B,[N],W,oe,ie);throw new TypeError("val must be string, number or Buffer")}function S(B,N,W,oe,ie){let ne=1,me=B.length,se=N.length;if(oe!==void 0&&(oe=String(oe).toLowerCase(),oe==="ucs2"||oe==="ucs-2"||oe==="utf16le"||oe==="utf-16le")){if(B.length<2||N.length<2)return-1;ne=2,me/=2,se/=2,W/=2}function xe(qe,Ye){return ne===1?qe[Ye]:qe.readUInt16BE(Ye*ne)}let ke;if(ie){let qe=-1;for(ke=W;ke<me;ke++)if(xe(B,ke)===xe(N,qe===-1?0:ke-qe)){if(qe===-1&&(qe=ke),ke-qe+1===se)return qe*ne}else qe!==-1&&(ke-=ke-qe),qe=-1}else for(W+se>me&&(W=me-se),ke=W;ke>=0;ke--){let qe=!0;for(let Ye=0;Ye<se;Ye++)if(xe(B,ke+Ye)!==xe(N,Ye)){qe=!1;break}if(qe)return ke}return-1}u.prototype.includes=function(B,N,W){return this.indexOf(B,N,W)!==-1},u.prototype.indexOf=function(B,N,W){return C(this,B,N,W,!0)},u.prototype.lastIndexOf=function(B,N,W){return C(this,B,N,W,!1)};function w(B,N,W,oe){W=Number(W)||0;const ie=B.length-W;oe?(oe=Number(oe),oe>ie&&(oe=ie)):oe=ie;const ne=N.length;oe>ne/2&&(oe=ne/2);let me;for(me=0;me<oe;++me){const se=parseInt(N.substr(me*2,2),16);if(xt(se))return me;B[W+me]=se}return me}function A(B,N,W,oe){return nt(ze(N,B.length-W),B,W,oe)}function O(B,N,W,oe){return nt(Ne(N),B,W,oe)}function j(B,N,W,oe){return nt(Ue(N),B,W,oe)}function R(B,N,W,oe){return nt(Oe(N,B.length-W),B,W,oe)}u.prototype.write=function(B,N,W,oe){if(N===void 0)oe="utf8",W=this.length,N=0;else if(W===void 0&&typeof N=="string")oe=N,W=this.length,N=0;else if(isFinite(N))N=N>>>0,isFinite(W)?(W=W>>>0,oe===void 0&&(oe="utf8")):(oe=W,W=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ie=this.length-N;if((W===void 0||W>ie)&&(W=ie),B.length>0&&(W<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");oe||(oe="utf8");let ne=!1;for(;;)switch(oe){case"hex":return w(this,B,N,W);case"utf8":case"utf-8":return A(this,B,N,W);case"ascii":case"latin1":case"binary":return O(this,B,N,W);case"base64":return j(this,B,N,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,B,N,W);default:if(ne)throw new TypeError("Unknown encoding: "+oe);oe=(""+oe).toLowerCase(),ne=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(B,N,W){return N===0&&W===B.length?e.fromByteArray(B):e.fromByteArray(B.slice(N,W))}function z(B,N,W){W=Math.min(B.length,W);const oe=[];let ie=N;for(;ie<W;){const ne=B[ie];let me=null,se=ne>239?4:ne>223?3:ne>191?2:1;if(ie+se<=W){let xe,ke,qe,Ye;switch(se){case 1:ne<128&&(me=ne);break;case 2:xe=B[ie+1],(xe&192)===128&&(Ye=(ne&31)<<6|xe&63,Ye>127&&(me=Ye));break;case 3:xe=B[ie+1],ke=B[ie+2],(xe&192)===128&&(ke&192)===128&&(Ye=(ne&15)<<12|(xe&63)<<6|ke&63,Ye>2047&&(Ye<55296||Ye>57343)&&(me=Ye));break;case 4:xe=B[ie+1],ke=B[ie+2],qe=B[ie+3],(xe&192)===128&&(ke&192)===128&&(qe&192)===128&&(Ye=(ne&15)<<18|(xe&63)<<12|(ke&63)<<6|qe&63,Ye>65535&&Ye<1114112&&(me=Ye))}}me===null?(me=65533,se=1):me>65535&&(me-=65536,oe.push(me>>>10&1023|55296),me=56320|me&1023),oe.push(me),ie+=se}return P(oe)}const T=4096;function P(B){const N=B.length;if(N<=T)return String.fromCharCode.apply(String,B);let W="",oe=0;for(;oe<N;)W+=String.fromCharCode.apply(String,B.slice(oe,oe+=T));return W}function L(B,N,W){let oe="";W=Math.min(B.length,W);for(let ie=N;ie<W;++ie)oe+=String.fromCharCode(B[ie]&127);return oe}function U(B,N,W){let oe="";W=Math.min(B.length,W);for(let ie=N;ie<W;++ie)oe+=String.fromCharCode(B[ie]);return oe}function te(B,N,W){const oe=B.length;(!N||N<0)&&(N=0),(!W||W<0||W>oe)&&(W=oe);let ie="";for(let ne=N;ne<W;++ne)ie+=hn[B[ne]];return ie}function ae(B,N,W){const oe=B.slice(N,W);let ie="";for(let ne=0;ne<oe.length-1;ne+=2)ie+=String.fromCharCode(oe[ne]+oe[ne+1]*256);return ie}u.prototype.slice=function(B,N){const W=this.length;B=~~B,N=N===void 0?W:~~N,B<0?(B+=W,B<0&&(B=0)):B>W&&(B=W),N<0?(N+=W,N<0&&(N=0)):N>W&&(N=W),N<B&&(N=B);const oe=this.subarray(B,N);return Object.setPrototypeOf(oe,u.prototype),oe};function Fe(B,N,W){if(B%1!==0||B<0)throw new RangeError("offset is not uint");if(B+N>W)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(B,N,W){B=B>>>0,N=N>>>0,W||Fe(B,N,this.length);let oe=this[B],ie=1,ne=0;for(;++ne<N&&(ie*=256);)oe+=this[B+ne]*ie;return oe},u.prototype.readUintBE=u.prototype.readUIntBE=function(B,N,W){B=B>>>0,N=N>>>0,W||Fe(B,N,this.length);let oe=this[B+--N],ie=1;for(;N>0&&(ie*=256);)oe+=this[B+--N]*ie;return oe},u.prototype.readUint8=u.prototype.readUInt8=function(B,N){return B=B>>>0,N||Fe(B,1,this.length),this[B]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(B,N){return B=B>>>0,N||Fe(B,2,this.length),this[B]|this[B+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(B,N){return B=B>>>0,N||Fe(B,2,this.length),this[B]<<8|this[B+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(B,N){return B=B>>>0,N||Fe(B,4,this.length),(this[B]|this[B+1]<<8|this[B+2]<<16)+this[B+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(B,N){return B=B>>>0,N||Fe(B,4,this.length),this[B]*16777216+(this[B+1]<<16|this[B+2]<<8|this[B+3])},u.prototype.readBigUInt64LE=Ze(function(B){B=B>>>0,De(B,"offset");const N=this[B],W=this[B+7];(N===void 0||W===void 0)&&Ae(B,this.length-8);const oe=N+this[++B]*2**8+this[++B]*2**16+this[++B]*2**24,ie=this[++B]+this[++B]*2**8+this[++B]*2**16+W*2**24;return BigInt(oe)+(BigInt(ie)<<BigInt(32))}),u.prototype.readBigUInt64BE=Ze(function(B){B=B>>>0,De(B,"offset");const N=this[B],W=this[B+7];(N===void 0||W===void 0)&&Ae(B,this.length-8);const oe=N*2**24+this[++B]*2**16+this[++B]*2**8+this[++B],ie=this[++B]*2**24+this[++B]*2**16+this[++B]*2**8+W;return(BigInt(oe)<<BigInt(32))+BigInt(ie)}),u.prototype.readIntLE=function(B,N,W){B=B>>>0,N=N>>>0,W||Fe(B,N,this.length);let oe=this[B],ie=1,ne=0;for(;++ne<N&&(ie*=256);)oe+=this[B+ne]*ie;return ie*=128,oe>=ie&&(oe-=Math.pow(2,8*N)),oe},u.prototype.readIntBE=function(B,N,W){B=B>>>0,N=N>>>0,W||Fe(B,N,this.length);let oe=N,ie=1,ne=this[B+--oe];for(;oe>0&&(ie*=256);)ne+=this[B+--oe]*ie;return ie*=128,ne>=ie&&(ne-=Math.pow(2,8*N)),ne},u.prototype.readInt8=function(B,N){return B=B>>>0,N||Fe(B,1,this.length),this[B]&128?(255-this[B]+1)*-1:this[B]},u.prototype.readInt16LE=function(B,N){B=B>>>0,N||Fe(B,2,this.length);const W=this[B]|this[B+1]<<8;return W&32768?W|4294901760:W},u.prototype.readInt16BE=function(B,N){B=B>>>0,N||Fe(B,2,this.length);const W=this[B+1]|this[B]<<8;return W&32768?W|4294901760:W},u.prototype.readInt32LE=function(B,N){return B=B>>>0,N||Fe(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},u.prototype.readInt32BE=function(B,N){return B=B>>>0,N||Fe(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},u.prototype.readBigInt64LE=Ze(function(B){B=B>>>0,De(B,"offset");const N=this[B],W=this[B+7];(N===void 0||W===void 0)&&Ae(B,this.length-8);const oe=this[B+4]+this[B+5]*2**8+this[B+6]*2**16+(W<<24);return(BigInt(oe)<<BigInt(32))+BigInt(N+this[++B]*256+this[++B]*65536+this[++B]*16777216)}),u.prototype.readBigInt64BE=Ze(function(B){B=B>>>0,De(B,"offset");const N=this[B],W=this[B+7];(N===void 0||W===void 0)&&Ae(B,this.length-8);const oe=(N<<24)+this[++B]*2**16+this[++B]*2**8+this[++B];return(BigInt(oe)<<BigInt(32))+BigInt(this[++B]*16777216+this[++B]*65536+this[++B]*256+W)}),u.prototype.readFloatLE=function(B,N){return B=B>>>0,N||Fe(B,4,this.length),n.read(this,B,!0,23,4)},u.prototype.readFloatBE=function(B,N){return B=B>>>0,N||Fe(B,4,this.length),n.read(this,B,!1,23,4)},u.prototype.readDoubleLE=function(B,N){return B=B>>>0,N||Fe(B,8,this.length),n.read(this,B,!0,52,8)},u.prototype.readDoubleBE=function(B,N){return B=B>>>0,N||Fe(B,8,this.length),n.read(this,B,!1,52,8)};function re(B,N,W,oe,ie,ne){if(!u.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>ie||N<ne)throw new RangeError('"value" argument is out of bounds');if(W+oe>B.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(B,N,W,oe){if(B=+B,N=N>>>0,W=W>>>0,!oe){const me=Math.pow(2,8*W)-1;re(this,B,N,W,me,0)}let ie=1,ne=0;for(this[N]=B&255;++ne<W&&(ie*=256);)this[N+ne]=B/ie&255;return N+W},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(B,N,W,oe){if(B=+B,N=N>>>0,W=W>>>0,!oe){const me=Math.pow(2,8*W)-1;re(this,B,N,W,me,0)}let ie=W-1,ne=1;for(this[N+ie]=B&255;--ie>=0&&(ne*=256);)this[N+ie]=B/ne&255;return N+W},u.prototype.writeUint8=u.prototype.writeUInt8=function(B,N,W){return B=+B,N=N>>>0,W||re(this,B,N,1,255,0),this[N]=B&255,N+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(B,N,W){return B=+B,N=N>>>0,W||re(this,B,N,2,65535,0),this[N]=B&255,this[N+1]=B>>>8,N+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(B,N,W){return B=+B,N=N>>>0,W||re(this,B,N,2,65535,0),this[N]=B>>>8,this[N+1]=B&255,N+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(B,N,W){return B=+B,N=N>>>0,W||re(this,B,N,4,4294967295,0),this[N+3]=B>>>24,this[N+2]=B>>>16,this[N+1]=B>>>8,this[N]=B&255,N+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(B,N,W){return B=+B,N=N>>>0,W||re(this,B,N,4,4294967295,0),this[N]=B>>>24,this[N+1]=B>>>16,this[N+2]=B>>>8,this[N+3]=B&255,N+4};function ce(B,N,W,oe,ie){ue(N,oe,ie,B,W,7);let ne=Number(N&BigInt(4294967295));B[W++]=ne,ne=ne>>8,B[W++]=ne,ne=ne>>8,B[W++]=ne,ne=ne>>8,B[W++]=ne;let me=Number(N>>BigInt(32)&BigInt(4294967295));return B[W++]=me,me=me>>8,B[W++]=me,me=me>>8,B[W++]=me,me=me>>8,B[W++]=me,W}function K(B,N,W,oe,ie){ue(N,oe,ie,B,W,7);let ne=Number(N&BigInt(4294967295));B[W+7]=ne,ne=ne>>8,B[W+6]=ne,ne=ne>>8,B[W+5]=ne,ne=ne>>8,B[W+4]=ne;let me=Number(N>>BigInt(32)&BigInt(4294967295));return B[W+3]=me,me=me>>8,B[W+2]=me,me=me>>8,B[W+1]=me,me=me>>8,B[W]=me,W+8}u.prototype.writeBigUInt64LE=Ze(function(B,N=0){return ce(this,B,N,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ze(function(B,N=0){return K(this,B,N,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(B,N,W,oe){if(B=+B,N=N>>>0,!oe){const se=Math.pow(2,8*W-1);re(this,B,N,W,se-1,-se)}let ie=0,ne=1,me=0;for(this[N]=B&255;++ie<W&&(ne*=256);)B<0&&me===0&&this[N+ie-1]!==0&&(me=1),this[N+ie]=(B/ne>>0)-me&255;return N+W},u.prototype.writeIntBE=function(B,N,W,oe){if(B=+B,N=N>>>0,!oe){const se=Math.pow(2,8*W-1);re(this,B,N,W,se-1,-se)}let ie=W-1,ne=1,me=0;for(this[N+ie]=B&255;--ie>=0&&(ne*=256);)B<0&&me===0&&this[N+ie+1]!==0&&(me=1),this[N+ie]=(B/ne>>0)-me&255;return N+W},u.prototype.writeInt8=function(B,N,W){return B=+B,N=N>>>0,W||re(this,B,N,1,127,-128),B<0&&(B=255+B+1),this[N]=B&255,N+1},u.prototype.writeInt16LE=function(B,N,W){return B=+B,N=N>>>0,W||re(this,B,N,2,32767,-32768),this[N]=B&255,this[N+1]=B>>>8,N+2},u.prototype.writeInt16BE=function(B,N,W){return B=+B,N=N>>>0,W||re(this,B,N,2,32767,-32768),this[N]=B>>>8,this[N+1]=B&255,N+2},u.prototype.writeInt32LE=function(B,N,W){return B=+B,N=N>>>0,W||re(this,B,N,4,2147483647,-2147483648),this[N]=B&255,this[N+1]=B>>>8,this[N+2]=B>>>16,this[N+3]=B>>>24,N+4},u.prototype.writeInt32BE=function(B,N,W){return B=+B,N=N>>>0,W||re(this,B,N,4,2147483647,-2147483648),B<0&&(B=4294967295+B+1),this[N]=B>>>24,this[N+1]=B>>>16,this[N+2]=B>>>8,this[N+3]=B&255,N+4},u.prototype.writeBigInt64LE=Ze(function(B,N=0){return ce(this,B,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ze(function(B,N=0){return K(this,B,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function H(B,N,W,oe,ie,ne){if(W+oe>B.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function q(B,N,W,oe,ie){return N=+N,W=W>>>0,ie||H(B,N,W,4),n.write(B,N,W,oe,23,4),W+4}u.prototype.writeFloatLE=function(B,N,W){return q(this,B,N,!0,W)},u.prototype.writeFloatBE=function(B,N,W){return q(this,B,N,!1,W)};function V(B,N,W,oe,ie){return N=+N,W=W>>>0,ie||H(B,N,W,8),n.write(B,N,W,oe,52,8),W+8}u.prototype.writeDoubleLE=function(B,N,W){return V(this,B,N,!0,W)},u.prototype.writeDoubleBE=function(B,N,W){return V(this,B,N,!1,W)},u.prototype.copy=function(B,N,W,oe){if(!u.isBuffer(B))throw new TypeError("argument should be a Buffer");if(W||(W=0),!oe&&oe!==0&&(oe=this.length),N>=B.length&&(N=B.length),N||(N=0),oe>0&&oe<W&&(oe=W),oe===W||B.length===0||this.length===0)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("Index out of range");if(oe<0)throw new RangeError("sourceEnd out of bounds");oe>this.length&&(oe=this.length),B.length-N<oe-W&&(oe=B.length-N+W);const ie=oe-W;return this===B&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(N,W,oe):Uint8Array.prototype.set.call(B,this.subarray(W,oe),N),ie},u.prototype.fill=function(B,N,W,oe){if(typeof B=="string"){if(typeof N=="string"?(oe=N,N=0,W=this.length):typeof W=="string"&&(oe=W,W=this.length),oe!==void 0&&typeof oe!="string")throw new TypeError("encoding must be a string");if(typeof oe=="string"&&!u.isEncoding(oe))throw new TypeError("Unknown encoding: "+oe);if(B.length===1){const ne=B.charCodeAt(0);(oe==="utf8"&&ne<128||oe==="latin1")&&(B=ne)}}else typeof B=="number"?B=B&255:typeof B=="boolean"&&(B=Number(B));if(N<0||this.length<N||this.length<W)throw new RangeError("Out of range index");if(W<=N)return this;N=N>>>0,W=W===void 0?this.length:W>>>0,B||(B=0);let ie;if(typeof B=="number")for(ie=N;ie<W;++ie)this[ie]=B;else{const ne=u.isBuffer(B)?B:u.from(B,oe),me=ne.length;if(me===0)throw new TypeError('The value "'+B+'" is invalid for argument "value"');for(ie=0;ie<W-N;++ie)this[ie+N]=ne[ie%me]}return this};const X={};function ee(B,N,W){X[B]=class extends W{constructor(){super(),Object.defineProperty(this,"message",{value:N.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${B}]`,this.stack,delete this.name}get code(){return B}set code(oe){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:oe,writable:!0})}toString(){return`${this.name} [${B}]: ${this.message}`}}}ee("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ee("ERR_INVALID_ARG_TYPE",function(B,N){return`The "${B}" argument must be of type number. Received type ${typeof N}`},TypeError),ee("ERR_OUT_OF_RANGE",function(B,N,W){let oe=`The value of "${B}" is out of range.`,ie=W;return Number.isInteger(W)&&Math.abs(W)>4294967296?ie=J(String(W)):typeof W=="bigint"&&(ie=String(W),(W>BigInt(2)**BigInt(32)||W<-(BigInt(2)**BigInt(32)))&&(ie=J(ie)),ie+="n"),oe+=` It must be ${N}. Received ${ie}`,oe},RangeError);function J(B){let N="",W=B.length;const oe=B[0]==="-"?1:0;for(;W>=oe+4;W-=3)N=`_${B.slice(W-3,W)}${N}`;return`${B.slice(0,W)}${N}`}function de(B,N,W){De(N,"offset"),(B[N]===void 0||B[N+W]===void 0)&&Ae(N,B.length-(W+1))}function ue(B,N,W,oe,ie,ne){if(B>W||B<N){const me=typeof N=="bigint"?"n":"";let se;throw N===0||N===BigInt(0)?se=`>= 0${me} and < 2${me} ** ${(ne+1)*8}${me}`:se=`>= -(2${me} ** ${(ne+1)*8-1}${me}) and < 2 ** ${(ne+1)*8-1}${me}`,new X.ERR_OUT_OF_RANGE("value",se,B)}de(oe,ie,ne)}function De(B,N){if(typeof B!="number")throw new X.ERR_INVALID_ARG_TYPE(N,"number",B)}function Ae(B,N,W){throw Math.floor(B)!==B?(De(B,W),new X.ERR_OUT_OF_RANGE("offset","an integer",B)):N<0?new X.ERR_BUFFER_OUT_OF_BOUNDS:new X.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${N}`,B)}const ye=/[^+/0-9A-Za-z-_]/g;function He(B){if(B=B.split("=")[0],B=B.trim().replace(ye,""),B.length<2)return"";for(;B.length%4!==0;)B=B+"=";return B}function ze(B,N){N=N||1/0;let W;const oe=B.length;let ie=null;const ne=[];for(let me=0;me<oe;++me){if(W=B.charCodeAt(me),W>55295&&W<57344){if(!ie){if(W>56319){(N-=3)>-1&&ne.push(239,191,189);continue}else if(me+1===oe){(N-=3)>-1&&ne.push(239,191,189);continue}ie=W;continue}if(W<56320){(N-=3)>-1&&ne.push(239,191,189),ie=W;continue}W=(ie-55296<<10|W-56320)+65536}else ie&&(N-=3)>-1&&ne.push(239,191,189);if(ie=null,W<128){if((N-=1)<0)break;ne.push(W)}else if(W<2048){if((N-=2)<0)break;ne.push(W>>6|192,W&63|128)}else if(W<65536){if((N-=3)<0)break;ne.push(W>>12|224,W>>6&63|128,W&63|128)}else if(W<1114112){if((N-=4)<0)break;ne.push(W>>18|240,W>>12&63|128,W>>6&63|128,W&63|128)}else throw new Error("Invalid code point")}return ne}function Ne(B){const N=[];for(let W=0;W<B.length;++W)N.push(B.charCodeAt(W)&255);return N}function Oe(B,N){let W,oe,ie;const ne=[];for(let me=0;me<B.length&&!((N-=2)<0);++me)W=B.charCodeAt(me),oe=W>>8,ie=W%256,ne.push(ie),ne.push(oe);return ne}function Ue(B){return e.toByteArray(He(B))}function nt(B,N,W,oe){let ie;for(ie=0;ie<oe&&!(ie+W>=N.length||ie>=B.length);++ie)N[ie+W]=B[ie];return ie}function _e(B,N){return B instanceof N||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===N.name}function xt(B){return B!==B}const hn=function(){const B="0123456789abcdef",N=new Array(256);for(let W=0;W<16;++W){const oe=W*16;for(let ie=0;ie<16;++ie)N[oe+ie]=B[W]+B[ie]}return N}();function Ze(B){return typeof BigInt>"u"?dt:B}function dt(){throw new Error("BigInt not supported")}}(R0);let{existsSync:q6e,readFileSync:H6e}=as,{dirname:gB,join:$6e}=as,{SourceMapConsumer:ZY,SourceMapGenerator:JY}=as;function W6e(t){return R0.Buffer?R0.Buffer.from(t,"base64").toString():window.atob(t)}let pB=class{constructor(t,e){if(e.map===!1)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let n=e.map?e.map.prev:void 0,r=this.loadMap(e.from,n);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=gB(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new ZY(this.text)),this.consumerCache}decodeInline(t){let e=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/,i=t.match(r)||t.match(o);if(i)return decodeURIComponent(t.substr(i[0].length));let s=t.match(e)||t.match(n);if(s)return W6e(t.substr(s[0].length));let u=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return typeof t!="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let n=t.lastIndexOf(e.pop()),r=t.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(t.substring(n,r)))}loadFile(t){if(this.root=gB(t),q6e(t))return this.mapFile=t,H6e(t,"utf-8").toString().trim()}loadMap(t,e){if(e===!1)return!1;if(e){if(typeof e=="string")return e;if(typeof e=="function"){let n=e(t);if(n){let r=this.loadFile(n);if(!r)throw new Error("Unable to load previous source map: "+n.toString());return r}}else{if(e instanceof ZY)return JY.fromSourceMap(e).toString();if(e instanceof JY)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return t&&(n=$6e(gB(t),n)),this.loadFile(n)}}}startWith(t,e){return t?t.substr(0,e.length)===e:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var XY=pB;pB.default=pB;let{nanoid:K6e}=GY,{isAbsolute:fB,resolve:_B}=as,{SourceMapConsumer:G6e,SourceMapGenerator:Y6e}=as,{fileURLToPath:QY,pathToFileURL:ty}=as,eZ=rB,Z6e=XY,vB=as,bB=Symbol("fromOffsetCache"),J6e=!!(G6e&&Y6e),tZ=!!(_B&&fB),ny=class{constructor(t,e={}){if(t===null||typeof t>"u"||typeof t=="object"&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,e.document&&(this.document=e.document.toString()),e.from&&(!tZ||/^\w+:\/\//.test(e.from)||fB(e.from)?this.file=e.from:this.file=_B(e.from)),tZ&&J6e){let n=new Z6e(this.css,e);if(n.text){this.map=n;let r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+K6e(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,n,r={}){let o,i,s;if(e&&typeof e=="object"){let l=e,c=n;if(typeof l.offset=="number"){let d=this.fromOffset(l.offset);e=d.line,n=d.col}else e=l.line,n=l.column;if(typeof c.offset=="number"){let d=this.fromOffset(c.offset);i=d.line,o=d.col}else i=c.line,o=c.column}else if(!n){let l=this.fromOffset(e);e=l.line,n=l.col}let u=this.origin(e,n,i,o);return u?s=new eZ(t,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,r.plugin):s=new eZ(t,i===void 0?e:{column:n,line:e},i===void 0?n:{column:o,line:i},this.css,this.file,r.plugin),s.input={column:n,endColumn:o,endLine:i,line:e,source:this.css},this.file&&(ty&&(s.input.url=ty(this.file).toString()),s.input.file=this.file),s}fromOffset(t){let e,n;if(this[bB])n=this[bB];else{let o=this.css.split(`
`);n=new Array(o.length);let i=0;for(let s=0,u=o.length;s<u;s++)n[s]=i,i+=o[s].length+1;this[bB]=n}e=n[n.length-1];let r=0;if(t>=e)r=n.length-1;else{let o=n.length-2,i;for(;r<o;)if(i=r+(o-r>>1),t<n[i])o=i-1;else if(t>=n[i+1])r=i+1;else{r=i;break}}return{col:t-n[r]+1,line:r+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:_B(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,n,r){if(!this.map)return!1;let o=this.map.consumer(),i=o.originalPositionFor({column:e,line:t});if(!i.source)return!1;let s;typeof n=="number"&&(s=o.originalPositionFor({column:r,line:n}));let u;fB(i.source)?u=ty(i.source):u=new URL(i.source,this.map.consumer().sourceRoot||ty(this.map.mapFile));let l={column:i.column,endColumn:s&&s.column,endLine:s&&s.line,line:i.line,url:u.toString()};if(u.protocol==="file:")if(QY)l.file=QY(u);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(i.source);return c&&(l.source=c),l}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])this[e]!=null&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}};var ry=ny;ny.default=ny,vB&&vB.registerInput&&vB.registerInput(ny);let nZ=Qh,rZ,oZ,$m=class extends nZ{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,n){let r=super.normalize(t);if(e){if(n==="prepend")this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let o of r)o.raws.before=e.raws.before}return r}removeChild(t,e){let n=this.index(t);return!e&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(t)}toResult(t={}){return new rZ(new oZ,this,t).stringify()}};$m.registerLazyResult=t=>{rZ=t},$m.registerProcessor=t=>{oZ=t};var G3=$m;$m.default=$m,nZ.registerRoot($m);let Y3={comma(t){return Y3.split(t,[","],!0)},space(t){let e=[" ",`
`," "];return Y3.split(t,e)},split(t,e,n){let r=[],o="",i=!1,s=0,u=!1,l="",c=!1;for(let d of t)c?c=!1:d==="\\"?c=!0:u?d===l&&(u=!1):d==='"'||d==="'"?(u=!0,l=d):d==="("?s+=1:d===")"?s>0&&(s-=1):s===0&&e.includes(d)&&(i=!0),i?(o!==""&&r.push(o.trim()),o="",i=!1):o+=d;return(n||o!=="")&&r.push(o.trim()),r}};var iZ=Y3;Y3.default=Y3;let aZ=Qh,X6e=iZ,oy=class extends aZ{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return X6e.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,n=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(n)}};var CB=oy;oy.default=oy,aZ.registerRule(oy);let Q6e=hB,eke=X8,tke=Q8,nke=ry,rke=XY,oke=G3,ike=CB;function Z3(t,e){if(Array.isArray(t))return t.map(o=>Z3(o));let{inputs:n,...r}=t;if(n){e=[];for(let o of n){let i={...o,__proto__:nke.prototype};i.map&&(i.map={...i.map,__proto__:rke.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=t.nodes.map(o=>Z3(o,e))),r.source){let{inputId:o,...i}=r.source;r.source=i,o!=null&&(r.source.input=e[o])}if(r.type==="root")return new oke(r);if(r.type==="decl")return new tke(r);if(r.type==="rule")return new ike(r);if(r.type==="comment")return new eke(r);if(r.type==="atrule")return new Q6e(r);throw new Error("Unknown node type: "+t.type)}var ake=Z3;Z3.default=Z3;let{dirname:iy,relative:sZ,resolve:uZ,sep:lZ}=as,{SourceMapConsumer:cZ,SourceMapGenerator:ay}=as,{pathToFileURL:dZ}=as,ske=ry,uke=!!(cZ&&ay),lke=!!(iy&&uZ&&sZ&&lZ);var hZ=class{constructor(t,e,n,r){this.stringify=t,this.mapOpts=n.map||{},this.root=e,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let e=`
`;this.css.includes(`\r
`)&&(e=`\r
`),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e=this.toUrl(this.path(t.file)),n=t.root||iy(t.file),r;this.mapOpts.sourcesContent===!1?(r=new cZ(t.text),r.sourcesContent&&(r.sourcesContent=null)):r=t.consumer(),this.map.applySourceMap(r,e,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),lke&&uke&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,e=>{t+=e}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=ay.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new ay({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new ay({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,e=1,n="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,i;this.stringify(this.root,(s,u,l)=>{if(this.css+=s,u&&l!=="end"&&(r.generated.line=t,r.generated.column=e-1,u.source&&u.source.start?(r.source=this.sourcePath(u),r.original.line=u.source.start.line,r.original.column=u.source.start.column-1,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,this.map.addMapping(r))),i=s.match(/\n/g),i?(t+=i.length,o=s.lastIndexOf(`
`),e=s.length-o):e+=s.length,u&&l!=="start"){let c=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==c.last||c.raws.semicolon)&&(u.source&&u.source.end?(r.source=this.sourcePath(u),r.original.line=u.source.end.line,r.original.column=u.source.end.column-1,r.generated.line=t,r.generated.column=e-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=t,r.generated.column=e-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(e=>e.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let n=this.opts.to?iy(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=iy(uZ(n,this.mapOpts.annotation)));let r=sZ(n,t);return this.memoizedPaths.set(t,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{let t=new ske(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(e=>{if(e.source){let n=e.source.input.from;if(n&&!t[n]){t[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,e.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return R0.Buffer?R0.Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(dZ){let n=dZ(t).toString();return this.memoizedFileURLs.set(t,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;lZ==="\\"&&(t=t.replace(/\\/g,"/"));let n=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,n),n}};const EB=39,FZ=34,sy=92,mZ=47,uy=10,J3=32,ly=12,cy=9,dy=13,cke=91,dke=93,hke=40,Fke=41,mke=123,Dke=125,gke=59,pke=42,fke=58,_ke=64,hy=/[\t\n\f\r "#'()/;[\\\]{}]/g,Fy=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,vke=/.[\r\n"'(/\\]/,DZ=/[\da-f]/i;var bke=function(t,e={}){let n=t.css.valueOf(),r=e.ignoreErrors,o,i,s,u,l,c,d,F,h,m,D=n.length,g=0,p=[],_=[];function v(){return g}function E(S){throw t.error("Unclosed "+S,g)}function b(){return _.length===0&&g>=D}function k(S){if(_.length)return _.pop();if(g>=D)return;let w=S?S.ignoreUnclosed:!1;switch(o=n.charCodeAt(g),o){case uy:case J3:case cy:case dy:case ly:{u=g;do u+=1,o=n.charCodeAt(u);while(o===J3||o===uy||o===cy||o===dy||o===ly);c=["space",n.slice(g,u)],g=u-1;break}case cke:case dke:case mke:case Dke:case fke:case gke:case Fke:{let A=String.fromCharCode(o);c=[A,A,g];break}case hke:{if(m=p.length?p.pop()[1]:"",h=n.charCodeAt(g+1),m==="url"&&h!==EB&&h!==FZ&&h!==J3&&h!==uy&&h!==cy&&h!==ly&&h!==dy){u=g;do{if(d=!1,u=n.indexOf(")",u+1),u===-1)if(r||w){u=g;break}else E("bracket");for(F=u;n.charCodeAt(F-1)===sy;)F-=1,d=!d}while(d);c=["brackets",n.slice(g,u+1),g,u],g=u}else u=n.indexOf(")",g+1),i=n.slice(g,u+1),u===-1||vke.test(i)?c=["(","(",g]:(c=["brackets",i,g,u],g=u);break}case EB:case FZ:{l=o===EB?"'":'"',u=g;do{if(d=!1,u=n.indexOf(l,u+1),u===-1)if(r||w){u=g+1;break}else E("string");for(F=u;n.charCodeAt(F-1)===sy;)F-=1,d=!d}while(d);c=["string",n.slice(g,u+1),g,u],g=u;break}case _ke:{hy.lastIndex=g+1,hy.test(n),hy.lastIndex===0?u=n.length-1:u=hy.lastIndex-2,c=["at-word",n.slice(g,u+1),g,u],g=u;break}case sy:{for(u=g,s=!0;n.charCodeAt(u+1)===sy;)u+=1,s=!s;if(o=n.charCodeAt(u+1),s&&o!==mZ&&o!==J3&&o!==uy&&o!==cy&&o!==dy&&o!==ly&&(u+=1,DZ.test(n.charAt(u)))){for(;DZ.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===J3&&(u+=1)}c=["word",n.slice(g,u+1),g,u],g=u;break}default:{o===mZ&&n.charCodeAt(g+1)===pke?(u=n.indexOf("*/",g+2)+1,u===0&&(r||w?u=n.length:E("comment")),c=["comment",n.slice(g,u+1),g,u],g=u):(Fy.lastIndex=g+1,Fy.test(n),Fy.lastIndex===0?u=n.length-1:u=Fy.lastIndex-2,c=["word",n.slice(g,u+1),g,u],p.push(c),g=u);break}}return g++,c}function C(S){_.push(S)}return{back:C,endOfFile:b,nextToken:k,position:v}};let Cke=hB,Eke=X8,yke=Q8,xke=G3,gZ=CB,wke=bke;const pZ={empty:!0,space:!0};function kke(t){for(let e=t.length-1;e>=0;e--){let n=t[e],r=n[3]||n[2];if(r)return r}}var Ske=class{constructor(t){this.input=t,this.root=new xke,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e=new Cke;e.name=t[1].slice(1),e.name===""&&this.unnamedAtrule(e,t),this.init(e,t[2]);let n,r,o,i=!1,s=!1,u=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),n=t[0],n==="("||n==="["?l.push(n==="("?")":"]"):n==="{"&&l.length>0?l.push("}"):n===l[l.length-1]&&l.pop(),l.length===0)if(n===";"){e.source.end=this.getPosition(t[2]),e.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){s=!0;break}else if(n==="}"){if(u.length>0){for(o=u.length-1,r=u[o];r&&r[0]==="space";)r=u[--o];r&&(e.source.end=this.getPosition(r[3]||r[2]),e.source.end.offset++)}this.end(t);break}else u.push(t);else u.push(t);if(this.tokenizer.endOfFile()){i=!0;break}}e.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(e.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(e,"params",u),i&&(t=u[u.length-1],e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++,this.spaces=e.raws.between,e.raws.between="")):(e.raws.afterName="",e.params=""),s&&(e.nodes=[],this.current=e)}checkMissedSemicolon(t){let e=this.colon(t);if(e===!1)return;let n=0,r;for(let o=e-1;o>=0&&(r=t[o],!(r[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let e=0,n,r,o;for(let[i,s]of t.entries()){if(r=s,o=r[0],o==="("&&(e+=1),o===")"&&(e-=1),e===0&&o===":")if(!n)this.doubleColon(r);else{if(n[0]==="word"&&n[1]==="progid")continue;return i}n=r}return!1}comment(t){let e=new Eke;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let n=t[1].slice(2,-2);if(/^\s*$/.test(n))e.text="",e.raws.left=n,e.raws.right="";else{let r=n.match(/^(\s*)([^]*\S)(\s*)$/);e.text=r[2],e.raws.left=r[1],e.raws.right=r[3]}}createTokenizer(){this.tokenizer=wke(this.input)}decl(t,e){let n=new yke;this.init(n,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(r[3]||r[2]||kke(t)),n.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),n.raws.before+=t.shift()[1];for(n.source.start=this.getPosition(t[0][2]),n.prop="";t.length;){let u=t[0][0];if(u===":"||u==="space"||u==="comment")break;n.prop+=t.shift()[1]}n.raws.between="";let o;for(;t.length;)if(o=t.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let i=[],s;for(;t.length&&(s=t[0][0],!(s!=="space"&&s!=="comment"));)i.push(t.shift());this.precheckMissedSemicolon(t);for(let u=t.length-1;u>=0;u--){if(o=t[u],o[1].toLowerCase()==="!important"){n.important=!0;let l=this.stringFrom(t,u);l=this.spacesFromEnd(t)+l,l!==" !important"&&(n.raws.important=l);break}else if(o[1].toLowerCase()==="important"){let l=t.slice(0),c="";for(let d=u;d>0;d--){let F=l[d][0];if(c.trim().startsWith("!")&&F!=="space")break;c=l.pop()[1]+c}c.trim().startsWith("!")&&(n.important=!0,n.raws.important=c,t=l)}if(o[0]!=="space"&&o[0]!=="comment")break}t.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(n.raws.between+=i.map(u=>u[1]).join(""),i=[]),this.raw(n,"value",i.concat(t),e),n.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new gZ;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&e.type==="rule"&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let e=!1,n=null,r=!1,o=null,i=[],s=t[1].startsWith("--"),u=[],l=t;for(;l;){if(n=l[0],u.push(l),n==="("||n==="[")o||(o=l),i.push(n==="("?")":"]");else if(s&&r&&n==="{")o||(o=l),i.push("}");else if(i.length===0)if(n===";")if(r){this.decl(u,s);return}else break;else if(n==="{"){this.rule(u);return}else if(n==="}"){this.tokenizer.back(u.pop()),e=!0;break}else n===":"&&(r=!0);else n===i[i.length-1]&&(i.pop(),i.length===0&&(o=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),i.length>0&&this.unclosedBracket(o),e&&r){if(!s)for(;u.length&&(l=u[u.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,s)}else this.unknownWord(u)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,e,n,r){let o,i,s=n.length,u="",l=!0,c,d;for(let F=0;F<s;F+=1)o=n[F],i=o[0],i==="space"&&F===s-1&&!r?l=!1:i==="comment"?(d=n[F-1]?n[F-1][0]:"empty",c=n[F+1]?n[F+1][0]:"empty",!pZ[d]&&!pZ[c]?u.slice(-1)===","?l=!1:u+=o[1]:l=!1):u+=o[1];if(!l){let F=n.reduce((h,m)=>h+m[1],"");t.raws[e]={raw:F,value:u}}t[e]=u}rule(t){t.pop();let e=new gZ;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,n="";for(;t.length&&(e=t[t.length-1][0],!(e!=="space"&&e!=="comment"));)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let e,n="";for(;t.length&&(e=t[0][0],!(e!=="space"&&e!=="comment"));)n+=t.shift()[1];return n}spacesFromEnd(t){let e,n="";for(;t.length&&(e=t[t.length-1][0],e==="space");)n=t.pop()[1]+n;return n}stringFrom(t,e){let n="";for(let r=e;r<t.length;r++)n+=t[r][1];return t.splice(e,t.length-e),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}};let jke=Qh,Bke=ry,Ake=Ske;function my(t,e){let n=new Bke(t,e),r=new Ake(n);try{r.parse()}catch(o){throw o}return r.root}var yB=my;my.default=my,jke.registerParse(my);let xB=class{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let n=e.node.rangeBy(e);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in e)this[n]=e[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var fZ=xB;xB.default=xB;let Tke=fZ,wB=class{constructor(t,e,n){this.processor=t,this.messages=[],this.root=e,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let n=new Tke(t,e);return this.messages.push(n),n}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};var kB=wB;wB.default=wB;let Ike=Qh,Rke=FB,Oke=hZ,Mke=yB,_Z=kB,Pke=G3,Lke=Z8,{isClean:Ku,my:Nke}=q3;const zke={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Uke={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Vke={Once:!0,postcssPlugin:!0,prepare:!0},Wm=0;function X3(t){return typeof t=="object"&&typeof t.then=="function"}function vZ(t){let e=!1,n=zke[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,Wm,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,Wm,n+"Exit"]:[n,n+"Exit"]}function bZ(t){let e;return t.type==="document"?e=["Document",Wm,"DocumentExit"]:t.type==="root"?e=["Root",Wm,"RootExit"]:e=vZ(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function SB(t){return t[Ku]=!1,t.nodes&&t.nodes.forEach(e=>SB(e)),t}let jB={},Km=class Goe{constructor(e,n,r){this.stringified=!1,this.processed=!1;let o;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))o=SB(n);else if(n instanceof Goe||n instanceof _Z)o=SB(n.root),n.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let i=Mke;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{o=i(n,r)}catch(s){this.processed=!0,this.error=s}o&&!o[Nke]&&Ike.rebuild(o)}this.result=new _Z(e,o,r),this.helpers={...jB,postcss:jB,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,n){let r=this.result.lastPlugin;try{n&&n.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(o){console&&console.error&&console.error(o)}return e}prepareVisitors(){this.listeners={};let e=(n,r,o)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,o])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!Uke[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Vke[r])if(typeof n[r]=="object")for(let o in n[r])o==="*"?e(n,r,n[r][o]):e(n,r+"-"+o.toLowerCase(),n[r][o]);else typeof n[r]=="function"&&e(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let n=this.plugins[e],r=this.runOnRoot(n);if(X3(r))try{await r}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ku];){e[Ku]=!0;let n=[bZ(e)];for(;n.length>0;){let r=this.visitTick(n);if(X3(r))try{await r}catch(o){let i=n[n.length-1].node;throw this.handleError(o,i)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(e.type==="document"){let o=e.nodes.map(i=>r(i,this.helpers));await Promise.all(o)}else await r(e,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return X3(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(n){throw this.handleError(n)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,n=Lke;e.syntax&&(n=e.syntax.stringify),e.stringifier&&(n=e.stringifier),n.stringify&&(n=n.stringify);let r=new Oke(n,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let n=this.runOnRoot(e);if(X3(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ku];)e[Ku]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let n of e.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,n){return this.async().then(e,n)}toString(){return this.css}visitSync(e,n){for(let[r,o]of e){this.result.lastPlugin=r;let i;try{i=o(n,this.helpers)}catch(s){throw this.handleError(s,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(X3(i))throw this.getAsyncError()}}visitTick(e){let n=e[e.length-1],{node:r,visitors:o}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(o.length>0&&n.visitorIndex<o.length){let[s,u]=o[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===o.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=s;try{return u(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(n.iterator!==0){let s=n.iterator,u;for(;u=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!u[Ku]){u[Ku]=!0,e.push(bZ(u));return}n.iterator=0,delete r.indexes[s]}let i=n.events;for(;n.eventIndex<i.length;){let s=i[n.eventIndex];if(n.eventIndex+=1,s===Wm){r.nodes&&r.nodes.length&&(r[Ku]=!0,n.iterator=r.getIterator());return}else if(this.listeners[s]){n.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[Ku]=!0;let n=vZ(e);for(let r of n)if(r===Wm)e.nodes&&e.each(o=>{o[Ku]||this.walkSync(o)});else{let o=this.listeners[r];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Km.registerPostcss=t=>{jB=t};var CZ=Km;Km.default=Km,Pke.registerLazyResult(Km),Rke.registerLazyResult(Km);let qke=hZ,Hke=yB;const $ke=kB;let Wke=Z8,BB=class{constructor(t,e,n){e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=n,this._map=void 0;let r,o=Wke;this.result=new $ke(this._processor,r,this._opts),this.result.css=e;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let s=new qke(o,r,this._opts,e);if(s.isMap()){let[u,l]=s.generate();u&&(this.result.css=u),l&&(this.result.map=l)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return this.async().then(t,e)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,e=Hke;try{t=e(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}};var Kke=BB;BB.default=BB;let Gke=FB,Yke=CZ,Zke=Kke,Jke=G3,Q3=class{constructor(t=[]){this.version="8.5.1",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let n of t)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))e=e.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)e.push(n);else if(typeof n=="function")e.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return e}process(t,e={}){return!this.plugins.length&&!e.parser&&!e.stringifier&&!e.syntax?new Zke(this,t,e):new Yke(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}};var Xke=Q3;Q3.default=Q3,Jke.registerProcessor(Q3),Gke.registerProcessor(Q3);var EZ={};let yZ=hB,xZ=X8,Qke=Qh,e9e=rB,wZ=Q8,kZ=FB,t9e=ake,n9e=ry,r9e=CZ,o9e=iZ,i9e=J8,a9e=yB,AB=Xke,s9e=kB,SZ=G3,jZ=CB,u9e=Z8,l9e=fZ;function lr(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new AB(t)}lr.plugin=function(t,e){let n=!1;function r(...i){console&&console.warn&&!n&&(n=!0,console.warn(t+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),EZ.LANG&&EZ.LANG.startsWith("cn")&&console.warn(t+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
https://www.w3ctech.com/topic/2226`));let s=e(...i);return s.postcssPlugin=t,s.postcssVersion=new AB().version,s}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(i,s,u){return lr([r(u)]).process(i,s)},r},lr.stringify=u9e,lr.parse=a9e,lr.fromJSON=t9e,lr.list=o9e,lr.comment=t=>new xZ(t),lr.atRule=t=>new yZ(t),lr.decl=t=>new wZ(t),lr.rule=t=>new jZ(t),lr.root=t=>new SZ(t),lr.document=t=>new kZ(t),lr.CssSyntaxError=e9e,lr.Declaration=wZ,lr.Container=Qke,lr.Processor=AB,lr.Document=kZ,lr.Comment=xZ,lr.Warning=l9e,lr.AtRule=yZ,lr.Result=s9e,lr.Input=n9e,lr.Rule=jZ,lr.Root=SZ,lr.Node=i9e,r9e.registerPostcss(lr);var c9e=lr;lr.default=lr;const d9e=iY,BZ=r6e,{isPlainObject:h9e}=i6e,AZ=_6e,F9e=v6e,{parse:m9e}=c9e,D9e=["img","audio","video","picture","svg","object","map","iframe","embed"],g9e=["script","style"];function e_(t,e){t&&Object.keys(t).forEach(function(n){e(t[n],n)})}function sc(t,e){return{}.hasOwnProperty.call(t,e)}function TZ(t,e){const n=[];return e_(t,function(r){e(r)&&n.push(r)}),n}function p9e(t){for(const e in t)if(sc(t,e))return!1;return!0}function f9e(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var _9e=t_;const v9e=/^[^\0\t\n\f\r /<=>]+$/;function t_(t,e,n){if(t==null)return"";typeof t=="number"&&(t=t.toString());let r="",o="";function i(T,P){const L=this;this.tag=T,this.attribs=P||{},this.tagPosition=r.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(p.length){const U=p[p.length-1];U.text+=L.text}},this.updateParentNodeMediaChildren=function(){p.length&&D9e.includes(this.tag)&&p[p.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},t_.defaults,e),e.parser=Object.assign({},b9e,e.parser);const s=function(T){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(T)>-1};g9e.forEach(function(T){s(T)&&!e.allowVulnerableTags&&console.warn(`
\u26A0\uFE0F Your \`allowedTags\` option includes, \`${T}\`, which is inherently
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
Or, to disable this warning, add the \`allowVulnerableTags\` option
and ensure you are accounting for this risk.
`)});const u=e.nonTextTags||["script","style","textarea","option"];let l,c;e.allowedAttributes&&(l={},c={},e_(e.allowedAttributes,function(T,P){l[P]=[];const L=[];T.forEach(function(U){typeof U=="string"&&U.indexOf("*")>=0?L.push(BZ(U).replace(/\\\*/g,".*")):l[P].push(U)}),L.length&&(c[P]=new RegExp("^("+L.join("|")+")$"))}));const d={},F={},h={};e_(e.allowedClasses,function(T,P){if(l&&(sc(l,P)||(l[P]=[]),l[P].push("class")),d[P]=T,Array.isArray(T)){const L=[];d[P]=[],h[P]=[],T.forEach(function(U){typeof U=="string"&&U.indexOf("*")>=0?L.push(BZ(U).replace(/\\\*/g,".*")):U instanceof RegExp?h[P].push(U):d[P].push(U)}),L.length&&(F[P]=new RegExp("^("+L.join("|")+")$"))}});const m={};let D;e_(e.transformTags,function(T,P){let L;typeof T=="function"?L=T:typeof T=="string"&&(L=t_.simpleTransform(T)),P==="*"?D=L:m[P]=L});let g,p,_,v,E,b,k=!1;S();const C=new d9e.Parser({onopentag:function(T,P){if(e.enforceHtmlBoundary&&T==="html"&&S(),E){b++;return}const L=new i(T,P);p.push(L);let U=!1;const te=!!L.text;let ae;if(sc(m,T)&&(ae=m[T](T,P),L.attribs=P=ae.attribs,ae.text!==void 0&&(L.innerText=ae.text),T!==ae.tagName&&(L.name=T=ae.tagName,v[g]=ae.tagName)),D&&(ae=D(T,P),L.attribs=P=ae.attribs,T!==ae.tagName&&(L.name=T=ae.tagName,v[g]=ae.tagName)),(!s(T)||e.disallowedTagsMode==="recursiveEscape"&&!p9e(_)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(U=!0,_[g]=!0,e.disallowedTagsMode==="discard"&&u.indexOf(T)!==-1&&(E=!0,b=1),_[g]=!0),g++,U){if(e.disallowedTagsMode==="discard")return;o=r,r=""}r+="<"+T,T==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(L.innerText=""),(!l||sc(l,T)||l["*"])&&e_(P,function(Fe,re){if(!v9e.test(re)){delete L.attribs[re];return}if(Fe===""&&!e.allowedEmptyAttributes.includes(re)&&(e.nonBooleanAttributes.includes(re)||e.nonBooleanAttributes.includes("*"))){delete L.attribs[re];return}let ce=!1;if(!l||sc(l,T)&&l[T].indexOf(re)!==-1||l["*"]&&l["*"].indexOf(re)!==-1||sc(c,T)&&c[T].test(re)||c["*"]&&c["*"].test(re))ce=!0;else if(l&&l[T]){for(const K of l[T])if(h9e(K)&&K.name&&K.name===re){ce=!0;let H="";if(K.multiple===!0){const q=Fe.split(" ");for(const V of q)K.values.indexOf(V)!==-1&&(H===""?H=V:H+=" "+V)}else K.values.indexOf(Fe)>=0&&(H=Fe);Fe=H}}if(ce){if(e.allowedSchemesAppliedToAttributes.indexOf(re)!==-1&&A(T,Fe)){delete L.attribs[re];return}if(T==="script"&&re==="src"){let K=!0;try{const H=O(Fe);if(e.allowedScriptHostnames||e.allowedScriptDomains){const q=(e.allowedScriptHostnames||[]).find(function(X){return X===H.url.hostname}),V=(e.allowedScriptDomains||[]).find(function(X){return H.url.hostname===X||H.url.hostname.endsWith(`.${X}`)});K=q||V}}catch{K=!1}if(!K){delete L.attribs[re];return}}if(T==="iframe"&&re==="src"){let K=!0;try{const H=O(Fe);if(H.isRelativeUrl)K=sc(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const q=(e.allowedIframeHostnames||[]).find(function(X){return X===H.url.hostname}),V=(e.allowedIframeDomains||[]).find(function(X){return H.url.hostname===X||H.url.hostname.endsWith(`.${X}`)});K=q||V}}catch{K=!1}if(!K){delete L.attribs[re];return}}if(re==="srcset")try{let K=F9e(Fe);if(K.forEach(function(H){A("srcset",H.url)&&(H.evil=!0)}),K=TZ(K,function(H){return!H.evil}),K.length)Fe=f9e(TZ(K,function(H){return!H.evil})),L.attribs[re]=Fe;else{delete L.attribs[re];return}}catch{delete L.attribs[re];return}if(re==="class"){const K=d[T],H=d["*"],q=F[T],V=h[T],X=F["*"],ee=[q,X].concat(V).filter(function(J){return J});if(K&&H?Fe=z(Fe,AZ(K,H),ee):Fe=z(Fe,K||H,ee),!Fe.length){delete L.attribs[re];return}}if(re==="style"){if(e.parseStyleAttributes)try{const K=m9e(T+" {"+Fe+"}",{map:!1}),H=j(K,e.allowedStyles);if(Fe=R(H),Fe.length===0){delete L.attribs[re];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+T+" {"+Fe+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete L.attribs[re];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+re,Fe&&Fe.length?r+='="'+w(Fe,!0)+'"':e.allowedEmptyAttributes.includes(re)&&(r+='=""')}else delete L.attribs[re]}),e.selfClosing.indexOf(T)!==-1?r+=" />":(r+=">",L.innerText&&!te&&!e.textFilter&&(r+=w(L.innerText),k=!0)),U&&(r=o+w(r),o="")},ontext:function(T){if(E)return;const P=p[p.length-1];let L;if(P&&(L=P.tag,T=P.innerText!==void 0?P.innerText:T),e.disallowedTagsMode==="discard"&&(L==="script"||L==="style"))r+=T;else{const U=w(T,!1);e.textFilter&&!k?r+=e.textFilter(U,L):k||(r+=U)}if(p.length){const U=p[p.length-1];U.text+=T}},onclosetag:function(T,P){if(E)if(b--,!b)E=!1;else return;const L=p.pop();if(!L)return;if(L.tag!==T){p.push(L);return}E=e.enforceHtmlBoundary?T==="html":!1,g--;const U=_[g];if(U){if(delete _[g],e.disallowedTagsMode==="discard"){L.updateParentNodeText();return}o=r,r=""}if(v[g]&&(T=v[g],delete v[g]),e.exclusiveFilter&&e.exclusiveFilter(L)){r=r.substr(0,L.tagPosition);return}if(L.updateParentNodeMediaChildren(),L.updateParentNodeText(),e.selfClosing.indexOf(T)!==-1||P&&!s(T)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){U&&(r=o,o="");return}r+="</"+T+">",U&&(r=o+w(r),o=""),k=!1}},e.parser);return C.write(t),C.end(),r;function S(){r="",g=0,p=[],_={},v={},E=!1,b=0}function w(T,P){return typeof T!="string"&&(T=T+""),e.parser.decodeEntities&&(T=T.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),P&&(T=T.replace(/"/g,"&quot;"))),T=T.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),P&&(T=T.replace(/"/g,"&quot;")),T}function A(T,P){for(P=P.replace(/[\x00-\x20]+/g,"");;){const te=P.indexOf("<!--");if(te===-1)break;const ae=P.indexOf("-->",te+4);if(ae===-1)break;P=P.substring(0,te)+P.substring(ae+3)}const L=P.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!L)return P.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const U=L[1].toLowerCase();return sc(e.allowedSchemesByTag,T)?e.allowedSchemesByTag[T].indexOf(U)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(U)===-1}function O(T){if(T=T.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),T.startsWith("relative:"))throw new Error("relative: exploit attempt");let P="relative://relative-site";for(let U=0;U<100;U++)P+=`/${U}`;const L=new URL(T,P);return{isRelativeUrl:L&&L.hostname==="relative-site"&&L.protocol==="relative:",url:L}}function j(T,P){if(!P)return T;const L=T.nodes[0];let U;return P[L.selector]&&P["*"]?U=AZ(P[L.selector],P["*"]):U=P[L.selector]||P["*"],U&&(T.nodes[0].nodes=L.nodes.reduce(M(U),[])),T}function R(T){return T.nodes[0].nodes.reduce(function(P,L){return P.push(`${L.prop}:${L.value}${L.important?" !important":""}`),P},[]).join(";")}function M(T){return function(P,L){return sc(T,L.prop)&&T[L.prop].some(function(U){return U.test(L.value)})&&P.push(L),P}}function z(T,P,L){return P?(T=T.split(/\s+/),T.filter(function(U){return P.indexOf(U)!==-1||L.some(function(te){return te.test(U)})}).join(" ")):T}}const b9e={decodeEntities:!0};t_.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},t_.simpleTransform=function(t,e,n){return n=n===void 0?!0:n,e=e||{},function(r,o){let i;if(n)for(i in e)o[i]=e[i];else o=e;return{tagName:t,attribs:o}}};const C9e=Rr(_9e),E9e=100,y9e=["font","del","h1","h2","h3","h4","h5","h6","blockquote","p","a","ul","ol","sup","sub","li","b","i","u","strong","em","strike","s","code","hr","br","div","table","thead","tbody","tr","th","td","caption","pre","span","img","details","summary"],IZ=["https","http","ftp","mailto","magnet"],x9e={font:["style","data-mx-bg-color","data-mx-color","color"],span:["style","data-mx-bg-color","data-mx-color","data-mx-spoiler","data-mx-maths","data-mx-pill","data-mx-ping","data-md"],div:["data-mx-maths"],blockquote:["data-md"],h1:["data-md"],h2:["data-md"],h3:["data-md"],h4:["data-md"],h5:["data-md"],h6:["data-md"],pre:["data-md","class"],ol:["start","type","data-md"],ul:["data-md"],a:["name","target","href","rel","data-md"],img:["width","height","alt","title","src","data-mx-emoticon"],code:["class","data-md"],strong:["data-md"],i:["data-md"],em:["data-md"],u:["data-md"],s:["data-md"],del:["data-md"]},w9e=(t,e)=>({tagName:t,attribs:{...e,style:`background-color: ${e["data-mx-bg-color"]}; color: ${e["data-mx-color"]}`}}),k9e=(t,e)=>({tagName:t,attribs:{...e,style:`background-color: ${e["data-mx-bg-color"]}; color: ${e["data-mx-color"]}`}}),S9e=(t,e)=>({tagName:t,attribs:{...e,rel:"noopener",target:"_blank"}}),j9e=(t,e)=>{const{src:n}=e;return typeof n=="string"&&n.startsWith("mxc://")===!1?{tagName:"a",attribs:{href:n,rel:"noopener",target:"_blank"},text:e.alt||n}:{tagName:t,attribs:{...e}}},RZ=t=>C9e(t,{allowedTags:y9e,allowedAttributes:x9e,disallowedTagsMode:"discard",allowedSchemes:IZ,allowedSchemesByTag:{a:IZ},allowedSchemesAppliedToAttributes:["href"],allowProtocolRelative:!1,allowedClasses:{code:["language-*"]},allowedStyles:{"*":{color:[/^#(?:[0-9a-fA-F]{3}){1,2}$/],"background-color":[/^#(?:[0-9a-fA-F]{3}){1,2}$/]}},transformTags:{font:w9e,span:k9e,a:S9e,img:j9e},nonTextTags:["style","script","textarea","option","noscript","mx-reply"],nestingLimit:E9e}),Yd=t=>{const e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return t.replace(/[&<>'"]/g,n=>e[n]||n)};function Dy({body:t,customBody:e,highlightRegex:n,htmlReactParserOptions:r,linkifyOpts:o}){return e?Nd(RZ(e),r):a.jsx(w3,{options:o,children:n?jG(n,j3(t)):j3(t)})}var B9e="_1pb2z300 _1mqalmd1 _1mqalmd0",A9e="_1pb2z302 _1mqalmd1 _1mqalmd0",T9e="_1pb2z303 _1mqalmd1 _1mqalmd0",I9e="_1pb2z301 _1mqalmd1 _1mqalmd0";const R9e=Ie(({className:t,...e},n)=>a.jsx(y,{shrink:"No",className:Ve(B9e,t),...e,ref:n})),O9e=Ie(({className:t,alt:e,...n},r)=>a.jsx("img",{className:Ve(I9e,t),alt:e,...n,ref:r})),M9e=Ie(({className:t,...e},n)=>a.jsx(y,{grow:"Yes",direction:"Column",gap:"100",className:Ve(A9e,t),...e,ref:n})),P9e=Ie(({className:t,...e},n)=>a.jsx("span",{className:Ve(T9e,t),...e,ref:n}));var OZ=br({defaultClassName:"g9qeqf3 _1mqalmd1 _1mqalmd0",variantClassNames:{position:{Left:"g9qeqf4",Right:"g9qeqf5"}},defaultVariants:{},compoundVariants:[]}),MZ=br({defaultClassName:"g9qeqf0 _1mqalmd1 _1mqalmd0",variantClassNames:{position:{Left:"g9qeqf1",Right:"g9qeqf2"}},defaultVariants:{},compoundVariants:[]});const L9e={color:ct.Success.Main},N9e=Ie(({url:t,ts:e,...n},r)=>{const o=ge(),i=Tt(),[s,u]=et(f.useCallback(()=>o.getUrlPreview(t,e),[t,e,o]));if(f.useEffect(()=>{u()},[u]),s.status===he.Error)return null;const l=c=>{const d=Xt(o,c["og:image"]||"",i,256,256,"scale",!1);return a.jsxs(a.Fragment,{children:[d&&a.jsx(O9e,{src:d,alt:c["og:title"],title:c["og:title"]}),a.jsxs(M9e,{children:[a.jsxs(x,{style:L9e,truncate:!0,as:"a",href:t,target:"_blank",rel:"no-referrer",size:"T200",priority:"300",children:[typeof c["og:site_name"]=="string"&&`${c["og:site_name"]} | `,pd(t)]}),a.jsx(x,{truncate:!0,priority:"400",children:a.jsx("b",{children:c["og:title"]})}),a.jsx(x,{size:"T200",priority:"300",children:a.jsx(P9e,{children:c["og:description"]})})]})]})};return a.jsx(R9e,{...n,ref:r,children:s.status===he.Success?l(s.data):a.jsx(y,{grow:"Yes",alignItems:"Center",justifyContent:"Center",children:a.jsx(ot,{variant:"Secondary",size:"400"})})})}),z9e=Ie(({children:t,...e},n)=>{const r=f.useRef(null),o=f.useRef(null),i=f.useRef(null),[s,u]=f.useState(!0),[l,c]=f.useState(!0),d=xE(f.useCallback(m=>{const D=o.current,g=i.current,p=D&&yE(D,m),_=g&&yE(g,m);p&&u(p.isIntersecting),_&&c(_.isIntersecting)},[]),f.useCallback(()=>({root:r.current,rootMargin:"10px"}),[]));f.useEffect(()=>{const m=o.current,D=i.current;return m&&(d==null||d.observe(m)),D&&(d==null||d.observe(D)),()=>{m&&(d==null||d.unobserve(m)),D&&(d==null||d.unobserve(D))}},[d]);const F=()=>{const m=r.current;if(!m)return;const{offsetWidth:D,scrollLeft:g}=m;m.scrollTo({left:g-D/1.3,behavior:"smooth"})},h=()=>{const m=r.current;if(!m)return;const{offsetWidth:D,scrollLeft:g}=m;m.scrollTo({left:g+D/1.3,behavior:"smooth"})};return a.jsx(y,{direction:"Column",...e,ref:n,style:{marginTop:le.space.S200,position:"relative"},children:a.jsx(Mt,{ref:r,direction:"Horizontal",size:"0",visibility:"Hover",hideTrack:!0,children:a.jsxs(y,{shrink:"No",alignItems:"Center",children:[a.jsx("div",{ref:o}),!s&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:MZ({position:"Left"})}),a.jsx(Me,{className:OZ({position:"Left"}),variant:"Secondary",radii:"Pill",size:"300",outlined:!0,onClick:F,children:a.jsx(Q,{size:"300",src:$.ArrowLeft})})]}),a.jsxs(y,{alignItems:"Inherit",gap:"200",children:[t,!l&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:MZ({position:"Right"})}),a.jsx(Me,{className:OZ({position:"Right"}),variant:"Primary",radii:"Pill",size:"300",outlined:!0,onClick:h,children:a.jsx(Q,{size:"300",src:$.ArrowRight})})]}),a.jsx("div",{ref:i})]})]})})})});var U9e="_189qrd90 _1mqalmd1 _1mqalmd0",V9e="_189qrd91 _1mqalmd1 _1mqalmd0";const uc=f.forwardRef(({className:t,alt:e,...n},r)=>a.jsx("img",{className:Ve(U9e,t),alt:e,...n,ref:r})),q9e=f.forwardRef(({className:t,...e},n)=>a.jsx("video",{className:Ve(V9e,t),...e,ref:n})),H9e=Ie(({before:t,after:e,leftControl:n,rightControl:r,children:o,...i},s)=>a.jsxs(y,{grow:"Yes",direction:"Column",gap:"300",...i,ref:s,children:[t&&a.jsx(y,{direction:"Column",children:t}),a.jsxs(y,{alignItems:"Center",gap:"200",children:[a.jsx(y,{alignItems:"Center",grow:"Yes",gap:"Inherit",children:n}),a.jsx(y,{justifyItems:"End",alignItems:"Center",gap:"Inherit",children:r})]}),e&&a.jsx(y,{direction:"Column",children:e}),o]}));var $9e="_1t5i6nr0 _1mqalmd1 _1mqalmd0",W9e="_1t5i6nr2 _1mqalmd1 _1mqalmd0",K9e="_1t5i6nr1 _1mqalmd1 _1mqalmd0",G9e="_1t5i6nr3 _1mqalmd1 _1mqalmd0";const PZ=(t,e=.1,n=5)=>{const[r,o]=f.useState(1);return{zoom:r,setZoom:o,zoomIn:()=>{o(i=>{const s=i+t;return s>n?i:s})},zoomOut:()=>{o(i=>{const s=i-t;return s<e?i:s})}}},LZ={translateX:0,translateY:0},Y9e=t=>{const[e,n]=f.useState(LZ),[r,o]=f.useState(t?"grab":"initial");f.useEffect(()=>{o(t?"grab":"initial")},[t]);const i=l=>{l.preventDefault(),l.stopPropagation(),n(c=>{const{translateX:d,translateY:F}=c,h=d+l.movementX,m=F+l.movementY;return{translateX:h,translateY:m}})},s=l=>{l.preventDefault(),o("grab"),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s)},u=l=>{t&&(l.preventDefault(),o("grabbing"),document.addEventListener("mousemove",i),document.addEventListener("mouseup",s))};return f.useEffect(()=>{t||n(LZ)},[t]),{pan:e,cursor:r,onMouseDown:u}},Zd=Ie(({className:t,alt:e,src:n,requestClose:r,...o},i)=>{const{zoom:s,zoomIn:u,zoomOut:l,setZoom:c}=PZ(.2),{pan:d,cursor:F,onMouseDown:h}=Y9e(s!==1),m=async()=>{const D=await bd(n);Wh.saveAs(D,e)};return a.jsxs(y,{className:Ve($9e,t),direction:"Column",...o,ref:i,children:[a.jsxs(In,{className:K9e,size:"400",children:[a.jsxs(y,{grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Me,{size:"300",radii:"300",onClick:r,children:a.jsx(Q,{size:"50",src:$.ArrowLeft})}),a.jsx(x,{size:"T300",truncate:!0,children:e})]}),a.jsxs(y,{shrink:"No",alignItems:"Center",gap:"200",children:[a.jsx(Me,{variant:s<1?"Success":"SurfaceVariant",outlined:s<1,size:"300",radii:"Pill",onClick:l,"aria-label":"Zoom Out",children:a.jsx(Q,{size:"50",src:$.Minus})}),a.jsx(We,{variant:"SurfaceVariant",radii:"Pill",onClick:()=>c(s===1?2:1),children:a.jsxs(x,{size:"B300",children:[Math.round(s*100),"%"]})}),a.jsx(Me,{variant:s>1?"Success":"SurfaceVariant",outlined:s>1,size:"300",radii:"Pill",onClick:u,"aria-label":"Zoom In",children:a.jsx(Q,{size:"50",src:$.Plus})}),a.jsx(We,{variant:"Primary",onClick:m,radii:"300",before:a.jsx(Q,{size:"50",src:$.Download}),children:a.jsx(x,{size:"B300",children:"Download"})})]})]}),a.jsx(y,{grow:"Yes",className:W9e,justifyContent:"Center",alignItems:"Center",children:a.jsx("img",{className:G9e,style:{cursor:F,transform:`scale(${s}) translate(${d.translateX}px, ${d.translateY}px)`},src:n,alt:e,onMouseDown:h})})]})});var Z9e="ty6xms0 _1mqalmd1 _1mqalmd0",J9e="ty6xms3 _1mqalmd1 _1mqalmd0",X9e="ty6xms2 ty6xms1 _1mqalmd1 _1mqalmd0",Q9e="ty6xms1 _1mqalmd1 _1mqalmd0";const e5e=()=>et(f.useCallback(async()=>{const t=await $D(()=>import("./pdf-fYUGKa6J.js").then(async e=>(await e.__tla,e)),[]);return t.GlobalWorkerOptions.workerSrc=`${Ki("/")}/pdf.worker.min.js`,t},[])),t5e=(t,e)=>et(f.useCallback(async()=>{if(!t)throw new Error("PdfJS is not loaded");return await t.getDocument(e).promise},[t,e])),n5e=async(t,e,n)=>{const r=await t.getPage(e),o=r.getViewport(n),i=document.createElement("canvas"),s=i.getContext("2d");if(!s)throw new Error("failed to render page.");return i.width=o.width,i.height=o.height,r.render({canvasContext:s,viewport:o}),i},r5e=Ie(({className:t,name:e,src:n,requestClose:r,...o},i)=>{const s=f.useRef(null),u=f.useRef(null),{zoom:l,zoomIn:c,zoomOut:d,setZoom:F}=PZ(.2),[h,m]=e5e(),[D,g]=t5e(h.status===he.Success?h.data:void 0,n),p=h.status===he.Loading||D.status===he.Loading,_=h.status===he.Error||D.status===he.Error,[v,E]=f.useState(1),[b,k]=f.useState();f.useEffect(()=>{m()},[m]),f.useEffect(()=>{h.status===he.Success&&g()},[h,g]),f.useEffect(()=>{if(D.status===he.Success){const j=D.data;if(v<0||v>j.numPages)return;n5e(j,v,{scale:l}).then(R=>{var z;const M=s.current;M&&(M.textContent="",M.append(R),(z=u.current)==null||z.scrollTo({top:0}))})}},[D,v,l]);const C=()=>{Wh.saveAs(n,e)},S=j=>{if(j.preventDefault(),D.status!==he.Success)return;const R=j.currentTarget.jumpInput;if(!R)return;const M=parseInt(R.value,10);E(Math.max(1,Math.min(D.data.numPages,M))),k(void 0)},w=()=>{E(j=>Math.max(j-1,1))},A=()=>{D.status===he.Success&&E(j=>Math.min(j+1,D.data.numPages))},O=j=>{k(j.currentTarget.getBoundingClientRect())};return a.jsxs(y,{className:Ve(Z9e,t),direction:"Column",...o,ref:i,children:[a.jsxs(In,{className:Q9e,size:"400",children:[a.jsxs(y,{grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Me,{size:"300",radii:"300",onClick:r,children:a.jsx(Q,{size:"50",src:$.ArrowLeft})}),a.jsx(x,{size:"T300",truncate:!0,children:e})]}),a.jsxs(y,{shrink:"No",alignItems:"Center",gap:"200",children:[a.jsx(Me,{variant:l<1?"Success":"SurfaceVariant",outlined:l<1,size:"300",radii:"Pill",onClick:d,"aria-label":"Zoom Out",children:a.jsx(Q,{size:"50",src:$.Minus})}),a.jsx(We,{variant:"SurfaceVariant",radii:"Pill",onClick:()=>F(l===1?2:1),children:a.jsxs(x,{size:"B300",children:[Math.round(l*100),"%"]})}),a.jsx(Me,{variant:l>1?"Success":"SurfaceVariant",outlined:l>1,size:"300",radii:"Pill",onClick:c,"aria-label":"Zoom In",children:a.jsx(Q,{size:"50",src:$.Plus})}),a.jsx(We,{variant:"Primary",onClick:C,radii:"300",before:a.jsx(Q,{size:"50",src:$.Download}),children:a.jsx(x,{size:"B300",children:"Download"})})]})]}),a.jsxs(y,{direction:"Column",grow:"Yes",alignItems:"Center",justifyContent:"Center",gap:"200",children:[p&&a.jsx(ot,{variant:"Secondary",size:"600"}),_&&a.jsxs(a.Fragment,{children:[a.jsx(x,{children:"Failed to load PDF"}),a.jsx(Ee,{variant:"Critical",fill:"Soft",size:"300",radii:"300",before:a.jsx(Q,{src:$.Warning,size:"50"}),onClick:m,children:a.jsx(x,{size:"B300",children:"Retry"})})]}),D.status===he.Success&&a.jsx(Mt,{ref:u,size:"300",direction:"Both",variant:"Surface",visibility:"Hover",children:a.jsx(y,{children:a.jsx("div",{className:J9e,ref:s})})})]}),D.status===he.Success&&a.jsxs(In,{as:"footer",className:X9e,size:"400",children:[a.jsx(We,{variant:"Secondary",radii:"300",before:a.jsx(Q,{size:"50",src:$.ChevronLeft}),onClick:w,"aria-disabled":v<=1,children:a.jsx(x,{size:"B300",children:"Previous"})}),a.jsx(y,{grow:"Yes",justifyContent:"Center",alignItems:"Center",gap:"200",children:a.jsx(Ut,{anchor:b,align:"Center",position:"Top",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>k(void 0),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(zt,{variant:"Surface",children:a.jsxs(y,{as:"form",onSubmit:S,style:{padding:le.space.S200},direction:"Column",gap:"200",children:[a.jsx(En,{name:"jumpInput",size:"300",variant:"Background",defaultValue:v,min:1,max:D.data.numPages,step:1,outlined:!0,type:"number",radii:"300","aria-label":"Page Number"}),a.jsx(Ee,{type:"submit",size:"300",variant:"Primary",radii:"300",children:a.jsx(x,{size:"B300",children:"Jump To Page"})})]})})}),children:a.jsx(We,{onClick:O,variant:"SurfaceVariant",radii:"300","aria-pressed":b!==void 0,children:a.jsx(x,{size:"B300",children:`${v}/${D.data.numPages}`})})})}),a.jsx(We,{variant:"Primary",radii:"300",after:a.jsx(Q,{size:"50",src:$.ChevronRight}),onClick:A,"aria-disabled":v>=D.data.numPages,children:a.jsx(x,{size:"B300",children:"Next"})})]})]})});var o5e="_1v145rl0 _1mqalmd1 _1mqalmd0",i5e="_1v145rl2 _1mqalmd1 _1mqalmd0",a5e="_1v145rl1 _1mqalmd1 _1mqalmd0",s5e="_1v145rl3 _1mqalmd1 _1mqalmd0",u5e="_1v145rl4";const l5e=f.lazy(()=>$D(()=>import("./ReactPrism-BzyPOlMS.js"),__vite__mapDeps([0,1]))),TB=f.forwardRef(({text:t,langName:e,size:n,className:r,...o},i)=>a.jsx(x,{as:"pre",size:n,className:Ve(s5e,`language-${e}`,r),...o,ref:i,children:a.jsx(bG,{fallback:a.jsx("code",{children:t}),children:a.jsx(f.Suspense,{fallback:a.jsx("code",{children:t}),children:a.jsx(l5e,{children:s=>a.jsx("code",{ref:s,children:t})},t)})})})),NZ=Ie(({className:t,name:e,text:n,langName:r,requestClose:o,...i},s)=>{const u=()=>{Vl(n)};return a.jsxs(y,{className:Ve(o5e,t),direction:"Column",...i,ref:s,children:[a.jsxs(In,{className:a5e,size:"400",children:[a.jsxs(y,{grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Me,{size:"300",radii:"300",onClick:o,children:a.jsx(Q,{size:"50",src:$.ArrowLeft})}),a.jsx(x,{size:"T300",truncate:!0,children:e})]}),a.jsx(y,{shrink:"No",alignItems:"Center",gap:"200",children:a.jsx(We,{variant:"Primary",radii:"300",onClick:u,children:a.jsx(x,{size:"B300",children:"Copy All"})})})]}),a.jsx(y,{grow:"Yes",className:i5e,justifyContent:"Center",alignItems:"Center",children:a.jsx(Mt,{hideTrack:!0,variant:"Background",visibility:"Hover",children:a.jsx(TB,{className:u5e,text:n,langName:r})})})]})});function e0({displayName:t,msgType:e,ts:n,edited:r,getContent:o,mediaAutoLoad:i,urlPreview:s,highlightRegex:u,htmlReactParserOptions:l,linkifyOpts:c,outlineAttachment:d}){const F=D=>{const g=D.filter(p=>!vE(p));if(g.length!==0)return a.jsx(z9e,{children:g.map(p=>a.jsx(N9e,{url:p,ts:n},p))})},h=()=>{const D=o();return D.filename&&D.filename!==D.body?a.jsx(oY,{style:{marginTop:le.space.S200},edited:r,content:D,renderBody:g=>a.jsx(Dy,{...g,highlightRegex:u,htmlReactParserOptions:l,linkifyOpts:c}),renderUrlsPreview:s?F:void 0}):null},m=()=>a.jsxs(a.Fragment,{children:[a.jsx(Yxe,{content:o(),renderFileContent:({body:D,mimeType:g,info:p,encInfo:_,url:v})=>a.jsx(Axe,{body:D,mimeType:g,renderAsPdfFile:()=>a.jsx(jxe,{body:D,mimeType:g,url:v,encInfo:_,renderViewer:E=>a.jsx(r5e,{...E})}),renderAsTextFile:()=>a.jsx(Sxe,{body:D,mimeType:g,url:v,encInfo:_,renderViewer:E=>a.jsx(NZ,{...E})}),children:a.jsx(Bxe,{body:D,mimeType:g,url:v,encInfo:_,info:p})}),outlined:d}),h()]});return e===or.Text?a.jsx(oY,{edited:r,content:o(),renderBody:D=>a.jsx(Dy,{...D,highlightRegex:u,htmlReactParserOptions:l,linkifyOpts:c}),renderUrlsPreview:s?F:void 0}):e===or.Emote?a.jsx(Hxe,{displayName:t,edited:r,content:o(),renderBody:D=>a.jsx(Dy,{...D,highlightRegex:u,htmlReactParserOptions:l,linkifyOpts:c}),renderUrlsPreview:s?F:void 0}):e===or.Notice?a.jsx($xe,{edited:r,content:o(),renderBody:D=>a.jsx(Dy,{...D,highlightRegex:u,htmlReactParserOptions:l,linkifyOpts:c}),renderUrlsPreview:s?F:void 0}):e===or.Image?a.jsxs(a.Fragment,{children:[a.jsx(Wxe,{content:o(),renderImageContent:D=>a.jsx(Hd,{...D,autoPlay:i,renderImage:g=>a.jsx(uc,{...g,loading:"lazy"}),renderViewer:g=>a.jsx(Zd,{...g})}),outlined:d}),h()]}):e===or.Video?a.jsxs(a.Fragment,{children:[a.jsx(Kxe,{content:o(),renderAsFile:m,renderVideoContent:({body:D,info:g,mimeType:p,url:_,encInfo:v})=>a.jsx(hxe,{body:D,info:g,mimeType:p,url:_,encInfo:v,renderThumbnail:i?()=>a.jsx(K4e,{info:g,renderImage:E=>a.jsx(uc,{alt:D,title:D,src:E,loading:"lazy"})}):void 0,renderVideo:E=>a.jsx(q9e,{...E})}),outlined:d}),h()]}):e===or.Audio?a.jsxs(a.Fragment,{children:[a.jsx(Gxe,{content:o(),renderAsFile:m,renderAudioContent:D=>a.jsx(wxe,{...D,renderMediaControl:g=>a.jsx(H9e,{...g})}),outlined:d}),h()]}):e===or.File?m():e===or.Location?a.jsx(Zxe,{content:o()}):e==="m.bad.encrypted"?a.jsx(Vxe,{}):a.jsx(qxe,{})}var zZ="awo2r00";function wa({userId:t,src:e,alt:n,renderFallback:r}){const[o,i]=f.useState(!1),s=u=>{u.currentTarget.setAttribute("data-image-loaded","true")};return!e||o?a.jsx(U1,{style:{backgroundColor:Vs(t),color:ct.Surface.Container},className:zZ,children:r()}):a.jsx(xl,{className:zZ,src:e,alt:n,onError:()=>i(!0),onLoad:s,draggable:!1})}const gy=t=>{const e=ge(),{navigateRoom:n,navigateSpace:r}=Mo(),o=Xr();return f.useCallback(i=>{var F;i.stopPropagation(),i.preventDefault();const s=i.currentTarget,u=s.getAttribute("data-mention-id");if(typeof u!="string")return;if(wu(u)){ym(u,t);return}const l=s.getAttribute("data-mention-event-id")||void 0;if(Ch(u)&&e.getRoom(u)){(F=e.getRoom(u))!=null&&F.isSpaceRoom()?r(u):n(u,l);return}const c=s.getAttribute("data-mention-via")||void 0,d=u7(u,l);o(c?dm(d,{viaServers:c}):d)},[e,o,n,r,t])},py=()=>f.useCallback(t=>{const e=t.currentTarget;e.getAttribute("aria-pressed")==="true"&&(t.stopPropagation(),e.setAttribute("aria-pressed","false"),e.style.cursor="initial")},[]),{min:c5e,max:d5e}=Math,t0=(t,e=0,n=1)=>c5e(d5e(e,t),n),IB=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=t0(t[e],0,255)):e===3&&(t[e]=t0(t[e],0,1));return t},UZ={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])UZ[`[object ${t}]`]=t.toLowerCase();function yn(t){return UZ[Object.prototype.toString.call(t)]||"object"}const gn=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):yn(t[0])=="object"&&e?e.split("").filter(n=>t[0][n]!==void 0).map(n=>t[0][n]):t[0].slice(0),Gm=t=>{if(t.length<2)return null;const e=t.length-1;return yn(t[e])=="string"?t[e].toLowerCase():null},{PI:fy,min:VZ,max:qZ}=Math,us=t=>Math.round(t*100)/100,RB=t=>Math.round(t*100)/100,lc=fy*2,OB=fy/3,h5e=fy/180,F5e=180/fy;function HZ(t){return[...t.slice(0,3).reverse(),...t.slice(3)]}const cn={format:{},autodetect:[]};class Xe{constructor(...e){const n=this;if(yn(e[0])==="object"&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let r=Gm(e),o=!1;if(!r){o=!0,cn.sorted||(cn.autodetect=cn.autodetect.sort((i,s)=>s.p-i.p),cn.sorted=!0);for(let i of cn.autodetect)if(r=i.test(...e),r)break}if(cn.format[r]){const i=cn.format[r].apply(null,o?e:e.slice(0,-1));n._rgb=IB(i)}else throw new Error("unknown format: "+e);n._rgb.length===3&&n._rgb.push(1)}toString(){return yn(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const m5e="3.1.2",xn=(...t)=>new Xe(...t);xn.version=m5e;const Ym={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},D5e=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,g5e=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,$Z=t=>{if(t.match(D5e)){(t.length===4||t.length===7)&&(t=t.substr(1)),t.length===3&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const e=parseInt(t,16),n=e>>16,r=e>>8&255,o=e&255;return[n,r,o,1]}if(t.match(g5e)){(t.length===5||t.length===9)&&(t=t.substr(1)),t.length===4&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);const e=parseInt(t,16),n=e>>24&255,r=e>>16&255,o=e>>8&255,i=Math.round((e&255)/255*100)/100;return[n,r,o,i]}throw new Error(`unknown hex color: ${t}`)},{round:_y}=Math,WZ=(...t)=>{let[e,n,r,o]=gn(t,"rgba"),i=Gm(t)||"auto";o===void 0&&(o=1),i==="auto"&&(i=o<1?"rgba":"rgb"),e=_y(e),n=_y(n),r=_y(r);let s="000000"+(e<<16|n<<8|r).toString(16);s=s.substr(s.length-6);let u="0"+_y(o*255).toString(16);switch(u=u.substr(u.length-2),i.toLowerCase()){case"rgba":return`#${s}${u}`;case"argb":return`#${u}${s}`;default:return`#${s}`}};Xe.prototype.name=function(){const t=WZ(this._rgb,"rgb");for(let e of Object.keys(Ym))if(Ym[e]===t)return e.toLowerCase();return t},cn.format.named=t=>{if(t=t.toLowerCase(),Ym[t])return $Z(Ym[t]);throw new Error("unknown color name: "+t)},cn.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&yn(t)==="string"&&Ym[t.toLowerCase()])return"named"}}),Xe.prototype.alpha=function(t,e=!1){return t!==void 0&&yn(t)==="number"?e?(this._rgb[3]=t,this):new Xe([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},Xe.prototype.clipped=function(){return this._rgb._clipped||!1};const Gu={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130295,m20:.18043748326639897,m21:.07217499330655958,m22:.950304078536368},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466944,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.941428535,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667124,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},p5e=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function cc(t){const e=p5e.get(String(t).toLowerCase());if(!e)throw new Error("unknown Lab illuminant "+t);Gu.labWhitePoint=t,Gu.Xn=e[0],Gu.Zn=e[1]}function n_(){return Gu.labWhitePoint}const MB=(...t)=>{t=gn(t,"lab");const[e,n,r]=t,[o,i,s]=f5e(e,n,r),[u,l,c]=KZ(o,i,s);return[u,l,c,t.length>3?t[3]:1]},f5e=(t,e,n)=>{const{kE:r,kK:o,kKE:i,Xn:s,Yn:u,Zn:l}=Gu,c=(t+16)/116,d=.002*e+c,F=c-.005*n,h=d*d*d,m=F*F*F,D=h>r?h:(116*d-16)/o,g=t>i?Math.pow((t+16)/116,3):t/o,p=m>r?m:(116*F-16)/o,_=D*s,v=g*u,E=p*l;return[_,v,E]},PB=t=>{const e=Math.sign(t);return t=Math.abs(t),(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*e},KZ=(t,e,n)=>{const{MtxAdaptMa:r,MtxAdaptMaI:o,MtxXYZ2RGB:i,RefWhiteRGB:s,Xn:u,Yn:l,Zn:c}=Gu,d=u*r.m00+l*r.m10+c*r.m20,F=u*r.m01+l*r.m11+c*r.m21,h=u*r.m02+l*r.m12+c*r.m22,m=s.X*r.m00+s.Y*r.m10+s.Z*r.m20,D=s.X*r.m01+s.Y*r.m11+s.Z*r.m21,g=s.X*r.m02+s.Y*r.m12+s.Z*r.m22,p=(t*r.m00+e*r.m10+n*r.m20)*(m/d),_=(t*r.m01+e*r.m11+n*r.m21)*(D/F),v=(t*r.m02+e*r.m12+n*r.m22)*(g/h),E=p*o.m00+_*o.m10+v*o.m20,b=p*o.m01+_*o.m11+v*o.m21,k=p*o.m02+_*o.m12+v*o.m22,C=PB(E*i.m00+b*i.m10+k*i.m20),S=PB(E*i.m01+b*i.m11+k*i.m21),w=PB(E*i.m02+b*i.m12+k*i.m22);return[C*255,S*255,w*255]},LB=(...t)=>{const[e,n,r,...o]=gn(t,"rgb"),[i,s,u]=GZ(e,n,r),[l,c,d]=_5e(i,s,u);return[l,c,d,...o.length>0&&o[0]<1?[o[0]]:[]]};function _5e(t,e,n){const{Xn:r,Yn:o,Zn:i,kE:s,kK:u}=Gu,l=t/r,c=e/o,d=n/i,F=l>s?Math.pow(l,1/3):(u*l+16)/116,h=c>s?Math.pow(c,1/3):(u*c+16)/116,m=d>s?Math.pow(d,1/3):(u*d+16)/116;return[116*h-16,500*(F-h),200*(h-m)]}function NB(t){const e=Math.sign(t);return t=Math.abs(t),(t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4))*e}const GZ=(t,e,n)=>{t=NB(t/255),e=NB(e/255),n=NB(n/255);const{MtxRGB2XYZ:r,MtxAdaptMa:o,MtxAdaptMaI:i,Xn:s,Yn:u,Zn:l,As:c,Bs:d,Cs:F}=Gu;let h=t*r.m00+e*r.m10+n*r.m20,m=t*r.m01+e*r.m11+n*r.m21,D=t*r.m02+e*r.m12+n*r.m22;const g=s*o.m00+u*o.m10+l*o.m20,p=s*o.m01+u*o.m11+l*o.m21,_=s*o.m02+u*o.m12+l*o.m22;let v=h*o.m00+m*o.m10+D*o.m20,E=h*o.m01+m*o.m11+D*o.m21,b=h*o.m02+m*o.m12+D*o.m22;return v*=g/c,E*=p/d,b*=_/F,h=v*i.m00+E*i.m10+b*i.m20,m=v*i.m01+E*i.m11+b*i.m21,D=v*i.m02+E*i.m12+b*i.m22,[h,m,D]};Xe.prototype.lab=function(){return LB(this._rgb)},Object.assign(xn,{lab:(...t)=>new Xe(...t,"lab"),getLabWhitePoint:n_,setLabWhitePoint:cc}),cn.format.lab=MB,cn.autodetect.push({p:2,test:(...t)=>{if(t=gn(t,"lab"),yn(t)==="array"&&t.length===3)return"lab"}}),Xe.prototype.darken=function(t=1){const e=this,n=e.lab();return n[0]-=Gu.Kn*t,new Xe(n,"lab").alpha(e.alpha(),!0)},Xe.prototype.brighten=function(t=1){return this.darken(-t)},Xe.prototype.darker=Xe.prototype.darken,Xe.prototype.brighter=Xe.prototype.brighten,Xe.prototype.get=function(t){const[e,n]=t.split("."),r=this[e]();if(n){const o=e.indexOf(n)-(e.substr(0,2)==="ok"?2:0);if(o>-1)return r[o];throw new Error(`unknown channel ${n} in mode ${e}`)}else return r};const{pow:v5e}=Math,b5e=1e-7,C5e=20;Xe.prototype.luminance=function(t,e="rgb"){if(t!==void 0&&yn(t)==="number"){if(t===0)return new Xe([0,0,0,this._rgb[3]],"rgb");if(t===1)return new Xe([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),r=C5e;const o=(s,u)=>{const l=s.interpolate(u,.5,e),c=l.luminance();return Math.abs(t-c)<b5e||!r--?l:c>t?o(s,l):o(l,u)},i=(n>t?o(new Xe([0,0,0]),this):o(this,new Xe([255,255,255]))).rgb();return new Xe([...i,this._rgb[3]])}return E5e(...this._rgb.slice(0,3))};const E5e=(t,e,n)=>(t=zB(t),e=zB(e),n=zB(n),.2126*t+.7152*e+.0722*n),zB=t=>(t/=255,t<=.03928?t/12.92:v5e((t+.055)/1.055,2.4)),bi={},Zm=(t,e,n=.5,...r)=>{let o=r[0]||"lrgb";if(!bi[o]&&!r.length&&(o=Object.keys(bi)[0]),!bi[o])throw new Error(`interpolation mode ${o} is not defined`);return yn(t)!=="object"&&(t=new Xe(t)),yn(e)!=="object"&&(e=new Xe(e)),bi[o](t,e,n).alpha(t.alpha()+n*(e.alpha()-t.alpha()))};Xe.prototype.mix=Xe.prototype.interpolate=function(t,e=.5,...n){return Zm(this,t,e,...n)},Xe.prototype.premultiply=function(t=!1){const e=this._rgb,n=e[3];return t?(this._rgb=[e[0]*n,e[1]*n,e[2]*n,n],this):new Xe([e[0]*n,e[1]*n,e[2]*n,n],"rgb")};const{sin:y5e,cos:x5e}=Math,YZ=(...t)=>{let[e,n,r]=gn(t,"lch");return isNaN(r)&&(r=0),r=r*h5e,[e,x5e(r)*n,y5e(r)*n]},UB=(...t)=>{t=gn(t,"lch");const[e,n,r]=t,[o,i,s]=YZ(e,n,r),[u,l,c]=MB(o,i,s);return[u,l,c,t.length>3?t[3]:1]},w5e=(...t)=>{const e=HZ(gn(t,"hcl"));return UB(...e)},{sqrt:k5e,atan2:S5e,round:j5e}=Math,ZZ=(...t)=>{const[e,n,r]=gn(t,"lab"),o=k5e(n*n+r*r);let i=(S5e(r,n)*F5e+360)%360;return j5e(o*1e4)===0&&(i=Number.NaN),[e,o,i]},VB=(...t)=>{const[e,n,r,...o]=gn(t,"rgb"),[i,s,u]=LB(e,n,r),[l,c,d]=ZZ(i,s,u);return[l,c,d,...o.length>0&&o[0]<1?[o[0]]:[]]};Xe.prototype.lch=function(){return VB(this._rgb)},Xe.prototype.hcl=function(){return HZ(VB(this._rgb))},Object.assign(xn,{lch:(...t)=>new Xe(...t,"lch"),hcl:(...t)=>new Xe(...t,"hcl")}),cn.format.lch=UB,cn.format.hcl=w5e,["lch","hcl"].forEach(t=>cn.autodetect.push({p:2,test:(...e)=>{if(e=gn(e,t),yn(e)==="array"&&e.length===3)return t}})),Xe.prototype.saturate=function(t=1){const e=this,n=e.lch();return n[1]+=Gu.Kn*t,n[1]<0&&(n[1]=0),new Xe(n,"lch").alpha(e.alpha(),!0)},Xe.prototype.desaturate=function(t=1){return this.saturate(-t)},Xe.prototype.set=function(t,e,n=!1){const[r,o]=t.split("."),i=this[r]();if(o){const s=r.indexOf(o)-(r.substr(0,2)==="ok"?2:0);if(s>-1){if(yn(e)=="string")switch(e.charAt(0)){case"+":i[s]+=+e;break;case"-":i[s]+=+e;break;case"*":i[s]*=+e.substr(1);break;case"/":i[s]/=+e.substr(1);break;default:i[s]=+e}else if(yn(e)==="number")i[s]=e;else throw new Error("unsupported value for Color.set");const u=new Xe(i,r);return n?(this._rgb=u._rgb,this):u}throw new Error(`unknown channel ${o} in mode ${r}`)}else return i},Xe.prototype.tint=function(t=.5,...e){return Zm(this,"white",t,...e)},Xe.prototype.shade=function(t=.5,...e){return Zm(this,"black",t,...e)};const B5e=(t,e,n)=>{const r=t._rgb,o=e._rgb;return new Xe(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"rgb")};bi.rgb=B5e;const{sqrt:qB,pow:Jm}=Math,A5e=(t,e,n)=>{const[r,o,i]=t._rgb,[s,u,l]=e._rgb;return new Xe(qB(Jm(r,2)*(1-n)+Jm(s,2)*n),qB(Jm(o,2)*(1-n)+Jm(u,2)*n),qB(Jm(i,2)*(1-n)+Jm(l,2)*n),"rgb")};bi.lrgb=A5e;const T5e=(t,e,n)=>{const r=t.lab(),o=e.lab();return new Xe(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"lab")};bi.lab=T5e;const Xm=(t,e,n,r)=>{let o,i;r==="hsl"?(o=t.hsl(),i=e.hsl()):r==="hsv"?(o=t.hsv(),i=e.hsv()):r==="hcg"?(o=t.hcg(),i=e.hcg()):r==="hsi"?(o=t.hsi(),i=e.hsi()):r==="lch"||r==="hcl"?(r="hcl",o=t.hcl(),i=e.hcl()):r==="oklch"&&(o=t.oklch().reverse(),i=e.oklch().reverse());let s,u,l,c,d,F;(r.substr(0,1)==="h"||r==="oklch")&&([s,l,d]=o,[u,c,F]=i);let h,m,D,g;return!isNaN(s)&&!isNaN(u)?(u>s&&u-s>180?g=u-(s+360):u<s&&s-u>180?g=u+360-s:g=u-s,m=s+n*g):isNaN(s)?isNaN(u)?m=Number.NaN:(m=u,(d==1||d==0)&&r!="hsv"&&(h=c)):(m=s,(F==1||F==0)&&r!="hsv"&&(h=l)),h===void 0&&(h=l+n*(c-l)),D=d+n*(F-d),r==="oklch"?new Xe([D,h,m],r):new Xe([m,h,D],r)},JZ=(t,e,n)=>Xm(t,e,n,"lch");bi.lch=JZ,bi.hcl=JZ;const I5e=t=>{if(yn(t)=="number"&&t>=0&&t<=16777215){const e=t>>16,n=t>>8&255,r=t&255;return[e,n,r,1]}throw new Error("unknown num color: "+t)},R5e=(...t)=>{const[e,n,r]=gn(t,"rgb");return(e<<16)+(n<<8)+r};Xe.prototype.num=function(){return R5e(this._rgb)},Object.assign(xn,{num:(...t)=>new Xe(...t,"num")}),cn.format.num=I5e,cn.autodetect.push({p:5,test:(...t)=>{if(t.length===1&&yn(t[0])==="number"&&t[0]>=0&&t[0]<=16777215)return"num"}});const O5e=(t,e,n)=>{const r=t.num(),o=e.num();return new Xe(r+n*(o-r),"num")};bi.num=O5e;const{floor:M5e}=Math,P5e=(...t)=>{t=gn(t,"hcg");let[e,n,r]=t,o,i,s;r=r*255;const u=n*255;if(n===0)o=i=s=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const l=M5e(e),c=e-l,d=r*(1-n),F=d+u*(1-c),h=d+u*c,m=d+u;switch(l){case 0:[o,i,s]=[m,h,d];break;case 1:[o,i,s]=[F,m,d];break;case 2:[o,i,s]=[d,m,h];break;case 3:[o,i,s]=[d,F,m];break;case 4:[o,i,s]=[h,d,m];break;case 5:[o,i,s]=[m,d,F];break}}return[o,i,s,t.length>3?t[3]:1]},L5e=(...t)=>{const[e,n,r]=gn(t,"rgb"),o=VZ(e,n,r),i=qZ(e,n,r),s=i-o,u=s*100/255,l=o/(255-s)*100;let c;return s===0?c=Number.NaN:(e===i&&(c=(n-r)/s),n===i&&(c=2+(r-e)/s),r===i&&(c=4+(e-n)/s),c*=60,c<0&&(c+=360)),[c,u,l]};Xe.prototype.hcg=function(){return L5e(this._rgb)};const N5e=(...t)=>new Xe(...t,"hcg");xn.hcg=N5e,cn.format.hcg=P5e,cn.autodetect.push({p:1,test:(...t)=>{if(t=gn(t,"hcg"),yn(t)==="array"&&t.length===3)return"hcg"}});const z5e=(t,e,n)=>Xm(t,e,n,"hcg");bi.hcg=z5e;const{cos:Qm}=Math,U5e=(...t)=>{t=gn(t,"hsi");let[e,n,r]=t,o,i,s;return isNaN(e)&&(e=0),isNaN(n)&&(n=0),e>360&&(e-=360),e<0&&(e+=360),e/=360,e<1/3?(s=(1-n)/3,o=(1+n*Qm(lc*e)/Qm(OB-lc*e))/3,i=1-(s+o)):e<2/3?(e-=1/3,o=(1-n)/3,i=(1+n*Qm(lc*e)/Qm(OB-lc*e))/3,s=1-(o+i)):(e-=2/3,i=(1-n)/3,s=(1+n*Qm(lc*e)/Qm(OB-lc*e))/3,o=1-(i+s)),o=t0(r*o*3),i=t0(r*i*3),s=t0(r*s*3),[o*255,i*255,s*255,t.length>3?t[3]:1]},{min:V5e,sqrt:q5e,acos:H5e}=Math,$5e=(...t)=>{let[e,n,r]=gn(t,"rgb");e/=255,n/=255,r/=255;let o;const i=V5e(e,n,r),s=(e+n+r)/3,u=s>0?1-i/s:0;return u===0?o=NaN:(o=(e-n+(e-r))/2,o/=q5e((e-n)*(e-n)+(e-r)*(n-r)),o=H5e(o),r>n&&(o=lc-o),o/=lc),[o*360,u,s]};Xe.prototype.hsi=function(){return $5e(this._rgb)};const W5e=(...t)=>new Xe(...t,"hsi");xn.hsi=W5e,cn.format.hsi=U5e,cn.autodetect.push({p:2,test:(...t)=>{if(t=gn(t,"hsi"),yn(t)==="array"&&t.length===3)return"hsi"}});const K5e=(t,e,n)=>Xm(t,e,n,"hsi");bi.hsi=K5e;const HB=(...t)=>{t=gn(t,"hsl");const[e,n,r]=t;let o,i,s;if(n===0)o=i=s=r*255;else{const u=[0,0,0],l=[0,0,0],c=r<.5?r*(1+n):r+n-r*n,d=2*r-c,F=e/360;u[0]=F+1/3,u[1]=F,u[2]=F-1/3;for(let h=0;h<3;h++)u[h]<0&&(u[h]+=1),u[h]>1&&(u[h]-=1),6*u[h]<1?l[h]=d+(c-d)*6*u[h]:2*u[h]<1?l[h]=c:3*u[h]<2?l[h]=d+(c-d)*(2/3-u[h])*6:l[h]=d;[o,i,s]=[l[0]*255,l[1]*255,l[2]*255]}return t.length>3?[o,i,s,t[3]]:[o,i,s,1]},XZ=(...t)=>{t=gn(t,"rgba");let[e,n,r]=t;e/=255,n/=255,r/=255;const o=VZ(e,n,r),i=qZ(e,n,r),s=(i+o)/2;let u,l;return i===o?(u=0,l=Number.NaN):u=s<.5?(i-o)/(i+o):(i-o)/(2-i-o),e==i?l=(n-r)/(i-o):n==i?l=2+(r-e)/(i-o):r==i&&(l=4+(e-n)/(i-o)),l*=60,l<0&&(l+=360),t.length>3&&t[3]!==void 0?[l,u,s,t[3]]:[l,u,s]};Xe.prototype.hsl=function(){return XZ(this._rgb)};const G5e=(...t)=>new Xe(...t,"hsl");xn.hsl=G5e,cn.format.hsl=HB,cn.autodetect.push({p:2,test:(...t)=>{if(t=gn(t,"hsl"),yn(t)==="array"&&t.length===3)return"hsl"}});const Y5e=(t,e,n)=>Xm(t,e,n,"hsl");bi.hsl=Y5e;const{floor:Z5e}=Math,J5e=(...t)=>{t=gn(t,"hsv");let[e,n,r]=t,o,i,s;if(r*=255,n===0)o=i=s=r;else{e===360&&(e=0),e>360&&(e-=360),e<0&&(e+=360),e/=60;const u=Z5e(e),l=e-u,c=r*(1-n),d=r*(1-n*l),F=r*(1-n*(1-l));switch(u){case 0:[o,i,s]=[r,F,c];break;case 1:[o,i,s]=[d,r,c];break;case 2:[o,i,s]=[c,r,F];break;case 3:[o,i,s]=[c,d,r];break;case 4:[o,i,s]=[F,c,r];break;case 5:[o,i,s]=[r,c,d];break}}return[o,i,s,t.length>3?t[3]:1]},{min:X5e,max:Q5e}=Math,e7e=(...t)=>{t=gn(t,"rgb");let[e,n,r]=t;const o=X5e(e,n,r),i=Q5e(e,n,r),s=i-o;let u,l,c;return c=i/255,i===0?(u=Number.NaN,l=0):(l=s/i,e===i&&(u=(n-r)/s),n===i&&(u=2+(r-e)/s),r===i&&(u=4+(e-n)/s),u*=60,u<0&&(u+=360)),[u,l,c]};Xe.prototype.hsv=function(){return e7e(this._rgb)};const t7e=(...t)=>new Xe(...t,"hsv");xn.hsv=t7e,cn.format.hsv=J5e,cn.autodetect.push({p:2,test:(...t)=>{if(t=gn(t,"hsv"),yn(t)==="array"&&t.length===3)return"hsv"}});const n7e=(t,e,n)=>Xm(t,e,n,"hsv");bi.hsv=n7e;function vy(t,e){let n=t.length;Array.isArray(t[0])||(t=[t]),Array.isArray(e[0])||(e=e.map(s=>[s]));let r=e[0].length,o=e[0].map((s,u)=>e.map(l=>l[u])),i=t.map(s=>o.map(u=>Array.isArray(s)?s.reduce((l,c,d)=>l+c*(u[d]||0),0):u.reduce((l,c)=>l+c*s,0)));return n===1&&(i=i[0]),r===1?i.map(s=>s[0]):i}const $B=(...t)=>{t=gn(t,"lab");const[e,n,r,...o]=t,[i,s,u]=r7e([e,n,r]),[l,c,d]=KZ(i,s,u);return[l,c,d,...o.length>0&&o[0]<1?[o[0]]:[]]};function r7e(t){var e=[[1.2268798758459245,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],r=vy(n,t);return vy(e,r.map(o=>o**3))}const WB=(...t)=>{const[e,n,r,...o]=gn(t,"rgb"),i=GZ(e,n,r);return[...o7e(i),...o.length>0&&o[0]<1?[o[0]]:[]]};function o7e(t){const e=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],r=vy(e,t);return vy(n,r.map(o=>Math.cbrt(o)))}Xe.prototype.oklab=function(){return WB(this._rgb)},Object.assign(xn,{oklab:(...t)=>new Xe(...t,"oklab")}),cn.format.oklab=$B,cn.autodetect.push({p:2,test:(...t)=>{if(t=gn(t,"oklab"),yn(t)==="array"&&t.length===3)return"oklab"}});const i7e=(t,e,n)=>{const r=t.oklab(),o=e.oklab();return new Xe(r[0]+n*(o[0]-r[0]),r[1]+n*(o[1]-r[1]),r[2]+n*(o[2]-r[2]),"oklab")};bi.oklab=i7e;const a7e=(t,e,n)=>Xm(t,e,n,"oklch");bi.oklch=a7e;const{pow:KB,sqrt:GB,PI:YB,cos:QZ,sin:eJ,atan2:s7e}=Math,u7e=(t,e="lrgb",n=null)=>{const r=t.length;n||(n=Array.from(new Array(r)).map(()=>1));const o=r/n.reduce(function(F,h){return F+h});if(n.forEach((F,h)=>{n[h]*=o}),t=t.map(F=>new Xe(F)),e==="lrgb")return l7e(t,n);const i=t.shift(),s=i.get(e),u=[];let l=0,c=0;for(let F=0;F<s.length;F++)if(s[F]=(s[F]||0)*n[0],u.push(isNaN(s[F])?0:n[0]),e.charAt(F)==="h"&&!isNaN(s[F])){const h=s[F]/180*YB;l+=QZ(h)*n[0],c+=eJ(h)*n[0]}let d=i.alpha()*n[0];t.forEach((F,h)=>{const m=F.get(e);d+=F.alpha()*n[h+1];for(let D=0;D<s.length;D++)if(!isNaN(m[D]))if(u[D]+=n[h+1],e.charAt(D)==="h"){const g=m[D]/180*YB;l+=QZ(g)*n[h+1],c+=eJ(g)*n[h+1]}else s[D]+=m[D]*n[h+1]});for(let F=0;F<s.length;F++)if(e.charAt(F)==="h"){let h=s7e(c/u[F],l/u[F])/YB*180;for(;h<0;)h+=360;for(;h>=360;)h-=360;s[F]=h}else s[F]=s[F]/u[F];return d/=r,new Xe(s,e).alpha(d>.99999?1:d,!0)},l7e=(t,e)=>{const n=t.length,r=[0,0,0,0];for(let o=0;o<t.length;o++){const i=t[o],s=e[o]/n,u=i._rgb;r[0]+=KB(u[0],2)*s,r[1]+=KB(u[1],2)*s,r[2]+=KB(u[2],2)*s,r[3]+=u[3]*s}return r[0]=GB(r[0]),r[1]=GB(r[1]),r[2]=GB(r[2]),r[3]>.9999999&&(r[3]=1),new Xe(IB(r))},{pow:c7e}=Math;function by(t){let e="rgb",n=xn("#ccc"),r=0,o=[0,1],i=[],s=[0,0],u=!1,l=[],c=!1,d=0,F=1,h=!1,m={},D=!0,g=1;const p=function(S){if(S=S||["#fff","#000"],S&&yn(S)==="string"&&xn.brewer&&xn.brewer[S.toLowerCase()]&&(S=xn.brewer[S.toLowerCase()]),yn(S)==="array"){S.length===1&&(S=[S[0],S[0]]),S=S.slice(0);for(let w=0;w<S.length;w++)S[w]=xn(S[w]);i.length=0;for(let w=0;w<S.length;w++)i.push(w/(S.length-1))}return k(),l=S},_=function(S){if(u!=null){const w=u.length-1;let A=0;for(;A<w&&S>=u[A];)A++;return A-1}return 0};let v=S=>S,E=S=>S;const b=function(S,w){let A,O;if(w==null&&(w=!1),isNaN(S)||S===null)return n;w?O=S:u&&u.length>2?O=_(S)/(u.length-2):F!==d?O=(S-d)/(F-d):O=1,O=E(O),w||(O=v(O)),g!==1&&(O=c7e(O,g)),O=s[0]+O*(1-s[0]-s[1]),O=t0(O,0,1);const j=Math.floor(O*1e4);if(D&&m[j])A=m[j];else{if(yn(l)==="array")for(let R=0;R<i.length;R++){const M=i[R];if(O<=M){A=l[R];break}if(O>=M&&R===i.length-1){A=l[R];break}if(O>M&&O<i[R+1]){O=(O-M)/(i[R+1]-M),A=xn.interpolate(l[R],l[R+1],O,e);break}}else yn(l)==="function"&&(A=l(O));D&&(m[j]=A)}return A};var k=()=>m={};p(t);const C=function(S){const w=xn(b(S));return c&&w[c]?w[c]():w};return C.classes=function(S){if(S!=null){if(yn(S)==="array")u=S,o=[S[0],S[S.length-1]];else{const w=xn.analyze(o);S===0?u=[w.min,w.max]:u=xn.limits(w,"e",S)}return C}return u},C.domain=function(S){if(!arguments.length)return o;d=S[0],F=S[S.length-1],i=[];const w=l.length;if(S.length===w&&d!==F)for(let A of Array.from(S))i.push((A-d)/(F-d));else{for(let A=0;A<w;A++)i.push(A/(w-1));if(S.length>2){const A=S.map((j,R)=>R/(S.length-1)),O=S.map(j=>(j-d)/(F-d));O.every((j,R)=>A[R]===j)||(E=j=>{if(j<=0||j>=1)return j;let R=0;for(;j>=O[R+1];)R++;const M=(j-O[R])/(O[R+1]-O[R]);return A[R]+M*(A[R+1]-A[R])})}}return o=[d,F],C},C.mode=function(S){return arguments.length?(e=S,k(),C):e},C.range=function(S,w){return p(S),C},C.out=function(S){return c=S,C},C.spread=function(S){return arguments.length?(r=S,C):r},C.correctLightness=function(S){return S==null&&(S=!0),h=S,k(),h?v=function(w){const A=b(0,!0).lab()[0],O=b(1,!0).lab()[0],j=A>O;let R=b(w,!0).lab()[0];const M=A+(O-A)*w;let z=R-M,T=0,P=1,L=20;for(;Math.abs(z)>.01&&L-- >0;)(function(){return j&&(z*=-1),z<0?(T=w,w+=(P-w)*.5):(P=w,w+=(T-w)*.5),R=b(w,!0).lab()[0],z=R-M})();return w}:v=w=>w,C},C.padding=function(S){return S!=null?(yn(S)==="number"&&(S=[S,S]),s=S,C):s},C.colors=function(S,w){arguments.length<2&&(w="hex");let A=[];if(arguments.length===0)A=l.slice(0);else if(S===1)A=[C(.5)];else if(S>1){const O=o[0],j=o[1]-O;A=d7e(0,S).map(R=>C(O+R/(S-1)*j))}else{t=[];let O=[];if(u&&u.length>2)for(let j=1,R=u.length,M=1<=R;M?j<R:j>R;M?j++:j--)O.push((u[j-1]+u[j])*.5);else O=o;A=O.map(j=>C(j))}return xn[w]&&(A=A.map(O=>O[w]())),A},C.cache=function(S){return S!=null?(D=S,C):D},C.gamma=function(S){return S!=null?(g=S,C):g},C.nodata=function(S){return S!=null?(n=xn(S),C):n},C}function d7e(t,e,n){let r=[],o=t<e,i=e;for(let s=t;o?s<i:s>i;o?s++:s--)r.push(s);return r}const h7e=function(t){let e=[1,1];for(let n=1;n<t;n++){let r=[1];for(let o=1;o<=e.length;o++)r[o]=(e[o]||0)+e[o-1];e=r}return e},F7e=function(t){let e,n,r,o;if(t=t.map(i=>new Xe(i)),t.length===2)[n,r]=t.map(i=>i.lab()),e=function(i){const s=[0,1,2].map(u=>n[u]+i*(r[u]-n[u]));return new Xe(s,"lab")};else if(t.length===3)[n,r,o]=t.map(i=>i.lab()),e=function(i){const s=[0,1,2].map(u=>(1-i)*(1-i)*n[u]+2*(1-i)*i*r[u]+i*i*o[u]);return new Xe(s,"lab")};else if(t.length===4){let i;[n,r,o,i]=t.map(s=>s.lab()),e=function(s){const u=[0,1,2].map(l=>(1-s)*(1-s)*(1-s)*n[l]+3*(1-s)*(1-s)*s*r[l]+3*(1-s)*s*s*o[l]+s*s*s*i[l]);return new Xe(u,"lab")}}else if(t.length>=5){let i,s,u;i=t.map(l=>l.lab()),u=t.length-1,s=h7e(u),e=function(l){const c=1-l,d=[0,1,2].map(F=>i.reduce((h,m,D)=>h+s[D]*c**(u-D)*l**D*m[F],0));return new Xe(d,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return e},m7e=t=>{const e=F7e(t);return e.scale=()=>by(e),e},{round:tJ}=Math;Xe.prototype.rgb=function(t=!0){return t===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(tJ)},Xe.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,n)=>n<3?t===!1?e:tJ(e):e)},Object.assign(xn,{rgb:(...t)=>new Xe(...t,"rgb")}),cn.format.rgb=(...t)=>{const e=gn(t,"rgba");return e[3]===void 0&&(e[3]=1),e},cn.autodetect.push({p:3,test:(...t)=>{if(t=gn(t,"rgba"),yn(t)==="array"&&(t.length===3||t.length===4&&yn(t[3])=="number"&&t[3]>=0&&t[3]<=1))return"rgb"}});const Ks=(t,e,n)=>{if(!Ks[n])throw new Error("unknown blend mode "+n);return Ks[n](t,e)},Jd=t=>(e,n)=>{const r=xn(n).rgb(),o=xn(e).rgb();return xn.rgb(t(r,o))},Xd=t=>(e,n)=>{const r=[];return r[0]=t(e[0],n[0]),r[1]=t(e[1],n[1]),r[2]=t(e[2],n[2]),r},D7e=t=>t,g7e=(t,e)=>t*e/255,p7e=(t,e)=>t>e?e:t,f7e=(t,e)=>t>e?t:e,_7e=(t,e)=>255*(1-(1-t/255)*(1-e/255)),v7e=(t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)),b7e=(t,e)=>255*(1-(1-e/255)/(t/255)),C7e=(t,e)=>t===255?255:(t=255*(e/255)/(1-t/255),t>255?255:t);Ks.normal=Jd(Xd(D7e)),Ks.multiply=Jd(Xd(g7e)),Ks.screen=Jd(Xd(_7e)),Ks.overlay=Jd(Xd(v7e)),Ks.darken=Jd(Xd(p7e)),Ks.lighten=Jd(Xd(f7e)),Ks.dodge=Jd(Xd(C7e)),Ks.burn=Jd(Xd(b7e));const{pow:E7e,sin:y7e,cos:x7e}=Math;function w7e(t=300,e=-1.5,n=1,r=1,o=[0,1]){let i=0,s;yn(o)==="array"?s=o[1]-o[0]:(s=0,o=[o,o]);const u=function(l){const c=lc*((t+120)/360+e*l),d=E7e(o[0]+s*l,r),F=(i!==0?n[0]+l*i:n)*d*(1-d)/2,h=x7e(c),m=y7e(c),D=d+F*(-.14861*h+1.78277*m),g=d+F*(-.29227*h-.90649*m),p=d+F*(1.97294*h);return xn(IB([D*255,g*255,p*255,1]))};return u.start=function(l){return l==null?t:(t=l,u)},u.rotations=function(l){return l==null?e:(e=l,u)},u.gamma=function(l){return l==null?r:(r=l,u)},u.hue=function(l){return l==null?n:(n=l,yn(n)==="array"?(i=n[1]-n[0],i===0&&(n=n[1])):i=0,u)},u.lightness=function(l){return l==null?o:(yn(l)==="array"?(o=l,s=l[1]-l[0]):(o=[l,l],s=0),u)},u.scale=()=>xn.scale(u),u.hue(n),u}const k7e="0123456789abcdef",{floor:S7e,random:j7e}=Math,B7e=()=>{let t="#";for(let e=0;e<6;e++)t+=k7e.charAt(S7e(j7e()*16));return new Xe(t,"hex")},{log:nJ,pow:A7e,floor:T7e,abs:I7e}=Math;function rJ(t,e=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return yn(t)==="object"&&(t=Object.values(t)),t.forEach(r=>{e&&yn(r)==="object"&&(r=r[e]),r!=null&&!isNaN(r)&&(n.values.push(r),n.sum+=r,r<n.min&&(n.min=r),r>n.max&&(n.max=r),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(r,o)=>oJ(n,r,o),n}function oJ(t,e="equal",n=7){yn(t)=="array"&&(t=rJ(t));const{min:r,max:o}=t,i=t.values.sort((u,l)=>u-l);if(n===1)return[r,o];const s=[];if(e.substr(0,1)==="c"&&(s.push(r),s.push(o)),e.substr(0,1)==="e"){s.push(r);for(let u=1;u<n;u++)s.push(r+u/n*(o-r));s.push(o)}else if(e.substr(0,1)==="l"){if(r<=0)throw new Error("Logarithmic scales are only possible for values > 0");const u=Math.LOG10E*nJ(r),l=Math.LOG10E*nJ(o);s.push(r);for(let c=1;c<n;c++)s.push(A7e(10,u+c/n*(l-u)));s.push(o)}else if(e.substr(0,1)==="q"){s.push(r);for(let u=1;u<n;u++){const l=(i.length-1)*u/n,c=T7e(l);if(c===l)s.push(i[c]);else{const d=l-c;s.push(i[c]*(1-d)+i[c+1]*d)}}s.push(o)}else if(e.substr(0,1)==="k"){let u;const l=i.length,c=new Array(l),d=new Array(n);let F=!0,h=0,m=null;m=[],m.push(r);for(let p=1;p<n;p++)m.push(r+p/n*(o-r));for(m.push(o);F;){for(let _=0;_<n;_++)d[_]=0;for(let _=0;_<l;_++){const v=i[_];let E=Number.MAX_VALUE,b;for(let k=0;k<n;k++){const C=I7e(m[k]-v);C<E&&(E=C,b=k),d[b]++,c[_]=b}}const p=new Array(n);for(let _=0;_<n;_++)p[_]=null;for(let _=0;_<l;_++)u=c[_],p[u]===null?p[u]=i[_]:p[u]+=i[_];for(let _=0;_<n;_++)p[_]*=1/d[_];F=!1;for(let _=0;_<n;_++)if(p[_]!==m[_]){F=!0;break}m=p,h++,h>200&&(F=!1)}const D={};for(let p=0;p<n;p++)D[p]=[];for(let p=0;p<l;p++)u=c[p],D[u].push(i[p]);let g=[];for(let p=0;p<n;p++)g.push(D[p][0]),g.push(D[p][D[p].length-1]);g=g.sort((p,_)=>p-_),s.push(g[0]);for(let p=1;p<g.length;p+=2){const _=g[p];!isNaN(_)&&s.indexOf(_)===-1&&s.push(_)}}return s}const R7e=(t,e)=>{t=new Xe(t),e=new Xe(e);const n=t.luminance(),r=e.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},iJ=.027,O7e=5e-4,M7e=.1,aJ=1.14,Cy=.022,sJ=1.414,P7e=(t,e)=>{t=new Xe(t),e=new Xe(e),t.alpha()<1&&(t=Zm(e,t,t.alpha(),"rgb"));const n=uJ(...t.rgb()),r=uJ(...e.rgb()),o=n>=Cy?n:n+Math.pow(Cy-n,sJ),i=r>=Cy?r:r+Math.pow(Cy-r,sJ),s=Math.pow(i,.56)-Math.pow(o,.57),u=Math.pow(i,.65)-Math.pow(o,.62),l=Math.abs(i-o)<O7e?0:o<i?s*aJ:u*aJ;return(Math.abs(l)<M7e?0:l>0?l-iJ:l+iJ)*100};function uJ(t,e,n){return .2126729*Math.pow(t/255,2.4)+.7151522*Math.pow(e/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:dc,pow:wo,min:L7e,max:N7e,atan2:lJ,abs:cJ,cos:Ey,sin:dJ,exp:z7e,PI:hJ}=Math;function U7e(t,e,n=1,r=1,o=1){var i=function(re){return 360*re/(2*hJ)},s=function(re){return 2*hJ*re/360};t=new Xe(t),e=new Xe(e);const[u,l,c]=Array.from(t.lab()),[d,F,h]=Array.from(e.lab()),m=(u+d)/2,D=dc(wo(l,2)+wo(c,2)),g=dc(wo(F,2)+wo(h,2)),p=(D+g)/2,_=.5*(1-dc(wo(p,7)/(wo(p,7)+wo(25,7)))),v=l*(1+_),E=F*(1+_),b=dc(wo(v,2)+wo(c,2)),k=dc(wo(E,2)+wo(h,2)),C=(b+k)/2,S=i(lJ(c,v)),w=i(lJ(h,E)),A=S>=0?S:S+360,O=w>=0?w:w+360,j=cJ(A-O)>180?(A+O+360)/2:(A+O)/2,R=1-.17*Ey(s(j-30))+.24*Ey(s(2*j))+.32*Ey(s(3*j+6))-.2*Ey(s(4*j-63));let M=O-A;M=cJ(M)<=180?M:O<=A?M+360:M-360,M=2*dc(b*k)*dJ(s(M)/2);const z=d-u,T=k-b,P=1+.015*wo(m-50,2)/dc(20+wo(m-50,2)),L=1+.045*C,U=1+.015*C*R,te=30*z7e(-wo((j-275)/25,2)),ae=-(2*dc(wo(C,7)/(wo(C,7)+wo(25,7))))*dJ(2*s(te)),Fe=dc(wo(z/(n*P),2)+wo(T/(r*L),2)+wo(M/(o*U),2)+ae*(T/(r*L))*(M/(o*U)));return N7e(0,L7e(100,Fe))}function V7e(t,e,n="lab"){t=new Xe(t),e=new Xe(e);const r=t.get(n),o=e.get(n);let i=0;for(let s in r){const u=(r[s]||0)-(o[s]||0);i+=u*u}return Math.sqrt(i)}const q7e=(...t)=>{try{return new Xe(...t),!0}catch{return!1}},H7e={cool(){return by([xn.hsl(180,1,.9),xn.hsl(250,.7,.4)])},hot(){return by(["#000","#f00","#ff0","#fff"]).mode("rgb")}},ZB={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},FJ=Object.keys(ZB),mJ=new Map(FJ.map(t=>[t.toLowerCase(),t])),$7e=typeof Proxy=="function"?new Proxy(ZB,{get(t,e){const n=e.toLowerCase();if(mJ.has(n))return t[mJ.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(FJ)}}):ZB,W7e=(...t)=>{t=gn(t,"cmyk");const[e,n,r,o]=t,i=t.length>4?t[4]:1;return o===1?[0,0,0,i]:[e>=1?0:255*(1-e)*(1-o),n>=1?0:255*(1-n)*(1-o),r>=1?0:255*(1-r)*(1-o),i]},{max:DJ}=Math,K7e=(...t)=>{let[e,n,r]=gn(t,"rgb");e=e/255,n=n/255,r=r/255;const o=1-DJ(e,DJ(n,r)),i=o<1?1/(1-o):0,s=(1-e-o)*i,u=(1-n-o)*i,l=(1-r-o)*i;return[s,u,l,o]};Xe.prototype.cmyk=function(){return K7e(this._rgb)},Object.assign(xn,{cmyk:(...t)=>new Xe(...t,"cmyk")}),cn.format.cmyk=W7e,cn.autodetect.push({p:2,test:(...t)=>{if(t=gn(t,"cmyk"),yn(t)==="array"&&t.length===4)return"cmyk"}});const G7e=(...t)=>{const e=gn(t,"hsla");let n=Gm(t)||"lsa";return e[0]=us(e[0]||0)+"deg",e[1]=us(e[1]*100)+"%",e[2]=us(e[2]*100)+"%",n==="hsla"||e.length>3&&e[3]<1?(e[3]="/ "+(e.length>3?e[3]:1),n="hsla"):e.length=3,`${n.substr(0,3)}(${e.join(" ")})`},Y7e=(...t)=>{const e=gn(t,"lab");let n=Gm(t)||"lab";return e[0]=us(e[0])+"%",e[1]=us(e[1]),e[2]=us(e[2]),n==="laba"||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lab(${e.join(" ")})`},Z7e=(...t)=>{const e=gn(t,"lch");let n=Gm(t)||"lab";return e[0]=us(e[0])+"%",e[1]=us(e[1]),e[2]=isNaN(e[2])?"none":us(e[2])+"deg",n==="lcha"||e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`lch(${e.join(" ")})`},J7e=(...t)=>{const e=gn(t,"lab");return e[0]=us(e[0]*100)+"%",e[1]=RB(e[1]),e[2]=RB(e[2]),e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklab(${e.join(" ")})`},gJ=(...t)=>{const[e,n,r,...o]=gn(t,"rgb"),[i,s,u]=WB(e,n,r),[l,c,d]=ZZ(i,s,u);return[l,c,d,...o.length>0&&o[0]<1?[o[0]]:[]]},X7e=(...t)=>{const e=gn(t,"lch");return e[0]=us(e[0]*100)+"%",e[1]=RB(e[1]),e[2]=isNaN(e[2])?"none":us(e[2])+"deg",e.length>3&&e[3]<1?e[3]="/ "+(e.length>3?e[3]:1):e.length=3,`oklch(${e.join(" ")})`},{round:JB}=Math,Q7e=(...t)=>{const e=gn(t,"rgba");let n=Gm(t)||"rgb";if(n.substr(0,3)==="hsl")return G7e(XZ(e),n);if(n.substr(0,3)==="lab"){const r=n_();cc("d50");const o=Y7e(LB(e),n);return cc(r),o}if(n.substr(0,3)==="lch"){const r=n_();cc("d50");const o=Z7e(VB(e),n);return cc(r),o}return n.substr(0,5)==="oklab"?J7e(WB(e)):n.substr(0,5)==="oklch"?X7e(gJ(e)):(e[0]=JB(e[0]),e[1]=JB(e[1]),e[2]=JB(e[2]),(n==="rgba"||e.length>3&&e[3]<1)&&(e[3]="/ "+(e.length>3?e[3]:1),n="rgba"),`${n.substr(0,3)}(${e.slice(0,n==="rgb"?3:4).join(" ")})`)},pJ=(...t)=>{t=gn(t,"lch");const[e,n,r,...o]=t,[i,s,u]=YZ(e,n,r),[l,c,d]=$B(i,s,u);return[l,c,d,...o.length>0&&o[0]<1?[o[0]]:[]]},hc=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Gs=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,yy=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,ls=/\s*/.source,eD=/\s+/.source,XB=/\s*,\s*/.source,xy=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,tD=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,fJ=new RegExp("^rgba?\\("+ls+[hc,hc,hc].join(eD)+tD+"\\)$"),_J=new RegExp("^rgb\\("+ls+[hc,hc,hc].join(XB)+ls+"\\)$"),vJ=new RegExp("^rgba\\("+ls+[hc,hc,hc,Gs].join(XB)+ls+"\\)$"),bJ=new RegExp("^hsla?\\("+ls+[xy,yy,yy].join(eD)+tD+"\\)$"),CJ=new RegExp("^hsl?\\("+ls+[xy,yy,yy].join(XB)+ls+"\\)$"),EJ=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,yJ=new RegExp("^lab\\("+ls+[Gs,Gs,Gs].join(eD)+tD+"\\)$"),xJ=new RegExp("^lch\\("+ls+[Gs,Gs,xy].join(eD)+tD+"\\)$"),wJ=new RegExp("^oklab\\("+ls+[Gs,Gs,Gs].join(eD)+tD+"\\)$"),kJ=new RegExp("^oklch\\("+ls+[Gs,Gs,xy].join(eD)+tD+"\\)$"),{round:SJ}=Math,nD=t=>t.map((e,n)=>n<=2?t0(SJ(e),0,255):e),ko=(t,e=0,n=100,r=!1)=>(typeof t=="string"&&t.endsWith("%")&&(t=parseFloat(t.substring(0,t.length-1))/100,r?t=e+(t+1)*.5*(n-e):t=e+t*(n-e)),+t),Ii=(t,e)=>t==="none"?e:t,QB=t=>{if(t=t.toLowerCase().trim(),t==="transparent")return[0,0,0,0];let e;if(cn.format.named)try{return cn.format.named(t)}catch{}if((e=t.match(fJ))||(e=t.match(_J))){let n=e.slice(1,4);for(let o=0;o<3;o++)n[o]=+ko(Ii(n[o],0),0,255);n=nD(n);const r=e[4]!==void 0?+ko(e[4],0,1):1;return n[3]=r,n}if(e=t.match(vJ)){const n=e.slice(1,5);for(let r=0;r<4;r++)n[r]=+ko(n[r],0,255);return n}if((e=t.match(bJ))||(e=t.match(CJ))){const n=e.slice(1,4);n[0]=+Ii(n[0].replace("deg",""),0),n[1]=+ko(Ii(n[1],0),0,100)*.01,n[2]=+ko(Ii(n[2],0),0,100)*.01;const r=nD(HB(n)),o=e[4]!==void 0?+ko(e[4],0,1):1;return r[3]=o,r}if(e=t.match(EJ)){const n=e.slice(1,4);n[1]*=.01,n[2]*=.01;const r=HB(n);for(let o=0;o<3;o++)r[o]=SJ(r[o]);return r[3]=+e[4],r}if(e=t.match(yJ)){const n=e.slice(1,4);n[0]=ko(Ii(n[0],0),0,100),n[1]=ko(Ii(n[1],0),-125,125,!0),n[2]=ko(Ii(n[2],0),-125,125,!0);const r=n_();cc("d50");const o=nD(MB(n));cc(r);const i=e[4]!==void 0?+ko(e[4],0,1):1;return o[3]=i,o}if(e=t.match(xJ)){const n=e.slice(1,4);n[0]=ko(n[0],0,100),n[1]=ko(Ii(n[1],0),0,150,!1),n[2]=+Ii(n[2].replace("deg",""),0);const r=n_();cc("d50");const o=nD(UB(n));cc(r);const i=e[4]!==void 0?+ko(e[4],0,1):1;return o[3]=i,o}if(e=t.match(wJ)){const n=e.slice(1,4);n[0]=ko(Ii(n[0],0),0,1),n[1]=ko(Ii(n[1],0),-.4,.4,!0),n[2]=ko(Ii(n[2],0),-.4,.4,!0);const r=nD($B(n)),o=e[4]!==void 0?+ko(e[4],0,1):1;return r[3]=o,r}if(e=t.match(kJ)){const n=e.slice(1,4);n[0]=ko(Ii(n[0],0),0,1),n[1]=ko(Ii(n[1],0),0,.4,!1),n[2]=+Ii(n[2].replace("deg",""),0);const r=nD(pJ(n)),o=e[4]!==void 0?+ko(e[4],0,1):1;return r[3]=o,r}};QB.test=t=>fJ.test(t)||bJ.test(t)||yJ.test(t)||xJ.test(t)||wJ.test(t)||kJ.test(t)||_J.test(t)||vJ.test(t)||CJ.test(t)||EJ.test(t)||t==="transparent",Xe.prototype.css=function(t){return Q7e(this._rgb,t)};const eSe=(...t)=>new Xe(...t,"css");xn.css=eSe,cn.format.css=QB,cn.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&yn(t)==="string"&&QB.test(t))return"css"}}),cn.format.gl=(...t)=>{const e=gn(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e};const tSe=(...t)=>new Xe(...t,"gl");xn.gl=tSe,Xe.prototype.gl=function(){const t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]},Xe.prototype.hex=function(t){return WZ(this._rgb,t)};const nSe=(...t)=>new Xe(...t,"hex");xn.hex=nSe,cn.format.hex=$Z,cn.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&yn(t)==="string"&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});const{log:wy}=Math,jJ=t=>{const e=t/100;let n,r,o;return e<66?(n=255,r=e<6?0:-155.2548556270918-.4459695046957914*(r=e-2)+104.49216199393888*wy(r),o=e<20?0:-254.76935184120904+.8274096064007395*(o=e-10)+115.67994401066149*wy(o)):(n=351.97690566805693+.114206453784165*(n=e-55)-40.25366309332127*wy(n),r=325.4494125711974+.07943456536662342*(r=e-50)-28.0852963507957*wy(r),o=255),[n,r,o,1]},{round:rSe}=Math,oSe=(...t)=>{const e=gn(t,"rgb"),n=e[0],r=e[2];let o=1e3,i=4e4;const s=.4;let u;for(;i-o>s;){u=(i+o)*.5;const l=jJ(u);l[2]/l[0]>=r/n?i=u:o=u}return rSe(u)};Xe.prototype.temp=Xe.prototype.kelvin=Xe.prototype.temperature=function(){return oSe(this._rgb)};const eA=(...t)=>new Xe(...t,"temp");Object.assign(xn,{temp:eA,kelvin:eA,temperature:eA}),cn.format.temp=cn.format.kelvin=cn.format.temperature=jJ,Xe.prototype.oklch=function(){return gJ(this._rgb)},Object.assign(xn,{oklch:(...t)=>new Xe(...t,"oklch")}),cn.format.oklch=pJ,cn.autodetect.push({p:2,test:(...t)=>{if(t=gn(t,"oklch"),yn(t)==="array"&&t.length===3)return"oklch"}}),Object.assign(xn,{analyze:rJ,average:u7e,bezier:m7e,blend:Ks,brewer:$7e,Color:Xe,colors:Ym,contrast:R7e,contrastAPCA:P7e,cubehelix:w7e,deltaE:U7e,distance:V7e,input:cn,interpolate:Zm,limits:oJ,mix:Zm,random:B7e,scale:by,scales:H7e,valid:q7e});var BJ="_18gnz541",AJ="_18gnz540",iSe="_15q3ngn2",aSe="_15q3ngn1",sSe="_15q3ngn0",Ys=(t=>(t.Light="light",t.Dark="dark",t))(Ys||{});const n0={id:"light-theme",kind:"light",classNames:[Ise,AJ,"prism-light"]},TJ={id:"silver-theme",kind:"light",classNames:["silver-theme",sSe,AJ,"prism-light"]},r_={id:"dark-theme",kind:"dark",classNames:["dark-theme",aSe,BJ,"prism-dark"]},IJ={id:"butter-theme",kind:"dark",classNames:["butter-theme",iSe,BJ,"prism-dark"]},tA=()=>f.useMemo(()=>[n0,TJ,r_,IJ],[]),RJ=()=>f.useMemo(()=>({[n0.id]:"Light",[TJ.id]:"Silver",[r_.id]:"Dark",[IJ.id]:"Butter"}),[]),nA=()=>{const t=f.useMemo(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[e,n]=f.useState(t.matches?"dark":"light");return f.useEffect(()=>{const r=()=>{n(t.matches?"dark":"light")};return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[t,n]),e},uSe=()=>{const t=nA(),e=tA(),[n]=Ft(ut,"useSystemTheme"),[r]=Ft(ut,"themeId"),[o]=Ft(ut,"lightThemeId"),[i]=Ft(ut,"darkThemeId");return n?t==="dark"?e.find(s=>s.id===i)??r_:e.find(s=>s.id===o)??n0:e.find(s=>s.id===r)??n0},OJ=f.createContext(null),lSe=OJ.Provider,ky=()=>{const t=f.useContext(OJ);if(!t)throw new Error("No theme provided!");return t},cSe=(t,e)=>{if(!xn.valid(e))return e;let n=xn(e).lab()[0];return t===Ys.Dark&&n<60&&(n=60),t===Ys.Light&&n>50&&(n=50),xn(e).set("lab.l",n).hex()},dSe=(t,e)=>e-t,MJ=t=>t.sort(dSe),rD=t=>{const e=Object.keys(t).map(n=>parseInt(n,10));return MJ(e)},PJ=t=>{const e=new Set,n=r=>{Object.keys(r).forEach(o=>{const i=r[o];if(typeof i=="number"){e.add(i);return}i&&typeof i=="object"&&n(i)})};return n(t),e},rA={9001:{name:"Goku",color:"#ff6a00"},102:{name:"Goku Reborn",color:"#ff6a7f"},101:{name:"Founder",color:"#0000ff"},100:{name:"Admin",color:"#0088ff"},50:{name:"Moderator",color:"#1fd81f"},0:{name:"Member",color:"#91cfdf"},[-1]:{name:"Muted",color:"#888888"}},LJ=(t,e)=>{const n=MJ(rD(t)).find(o=>o<e),r=typeof n=="number"?t[n]:void 0;return{name:r?`${r.name} ${e}`:`Team ${e}`}},Fc=(t,e)=>{const n=vi(t,Re.PowerLevelTags),r=f.useMemo(()=>{const i={...n==null?void 0:n.getContent()},s=PJ(e);return Array.from(s).forEach(u=>{var l;((l=i[u])==null?void 0:l.name)===void 0&&(i[u]=rA[u]??LJ(rA,u))}),i},[e,n]),o=f.useCallback(i=>r[i]??LJ(rA,i),[r]);return[r,o]},NJ=(t,e,n)=>f.useMemo(()=>{let r;const o=[];return t.forEach(i=>{const s=e(i.userId),u=n(s);u!==r&&(r=u,o.push(u)),o.push(i)}),o},[t,n,e]),r0=(t,e,n)=>{var r;return(r=n==null?void 0:n.key)!=null&&r.startsWith("mxc://")?t.mxcUrlToHttp(n.key,96,96,"scale",void 0,void 0,e)??"\u{1F33B}":n==null?void 0:n.key},Sy=(t,e)=>f.useMemo(()=>{const n=new Map;return rD(e).forEach(r=>{const o=e[r],{color:i}=o;i&&n.set(i,cSe(t,i))}),n},[e,t]);var hSe="_3ohmdt0",FSe="_3ohmdt1",zJ=br({defaultClassName:"_3ohmdt3 _1mqalmd1 _1mqalmd0",variantClassNames:{size:{50:"_3ohmdt4",100:"_3ohmdt5",200:"_3ohmdt6",300:"_3ohmdt7",400:"_3ohmdt8",500:"_3ohmdt9",600:"_3ohmdta"}},defaultVariants:{size:"400"},compoundVariants:[]});const jy=Ie(({as:t="span",color:e,className:n,style:r,...o},i)=>a.jsx(t,{className:Ve(hSe,{[FSe]:!e},n),style:{backgroundColor:e,...r},...o,ref:i}));function o0({size:t,iconSrc:e,name:n}){return _C.test(e)?a.jsx("span",{className:zJ({size:t}),children:e}):a.jsx("img",{className:zJ({size:t}),src:e,alt:n})}const mSe=f.forwardRef(({powerLevelTags:t,value:e,onChange:n},r)=>a.jsx(zt,{ref:r,style:{maxHeight:"75vh",maxWidth:Dt(300),display:"flex"},children:a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{size:"0",hideTrack:!0,visibility:"Hover",children:a.jsx("div",{style:{padding:le.space.S100},children:rD(t).map(o=>{const i=e===o,s=t[o];return a.jsx(tt,{"aria-pressed":i,radii:"300",onClick:i?void 0:()=>n(o),before:a.jsx(jy,{color:s.color}),after:a.jsx(x,{size:"L400",children:o}),children:a.jsx(x,{style:{flexGrow:1},size:"B400",truncate:!0,children:s.name})},o)})})})})}));function UJ({powerLevelTags:t,value:e,onChange:n,children:r}){const[o,i]=f.useState(),s=u=>{i(u.currentTarget.getBoundingClientRect())};return a.jsx(Ut,{anchor:o,offset:5,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>i(void 0),clickOutsideDeactivates:!0,isKeyForward:u=>u.key==="ArrowDown"||u.key==="ArrowRight",isKeyBackward:u=>u.key==="ArrowUp"||u.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(mSe,{powerLevelTags:t,value:e,onChange:u=>{n(u),i(void 0)}})}),children:r(s,!!o)})}function DSe({room:t,highlights:e,items:n,mediaAutoLoad:r,urlPreview:o,onOpen:i,legacyUsernameColor:s}){const u=ge(),l=Tt(),c=f.useMemo(()=>D4e(e),[e]),d=Bi(t),{getPowerLevel:F}=yo(d),[h,m]=Fc(t,d),D=ky(),g=Sy(D.kind,h),p=gy(t.roomId),_=py(),v=f.useMemo(()=>({...Hh,render:y8(C=>S3(u,t.roomId,C,k3(p)))}),[u,t,p]),E=f.useMemo(()=>x8(u,t.roomId,{linkifyOpts:v,highlightRegex:c,useAuthentication:l,handleSpoilerClick:_,handleMentionClick:p}),[u,t,v,c,p,_,l]),b=w8({[qn.RoomMessage]:(C,S,w)=>{var A,O;return(A=C.unsigned)!=null&&A.redacted_because?a.jsx(oa,{reason:(O=C.unsigned)==null?void 0:O.redacted_because.content.reason}):a.jsx(e0,{displayName:S,msgType:C.content.msgtype??"",ts:C.origin_server_ts,getContent:w,mediaAutoLoad:r,urlPreview:o,htmlReactParserOptions:E,linkifyOpts:v,highlightRegex:c,outlineAttachment:!0})},[qn.Reaction]:(C,S,w)=>{var A,O;return(A=C.unsigned)!=null&&A.redacted_because?a.jsx(oa,{reason:(O=C.unsigned)==null?void 0:O.redacted_because.content.reason}):a.jsx(Gh,{content:w(),renderImageContent:j=>a.jsx(Hd,{...j,autoPlay:r,renderImage:R=>a.jsx(uc,{...R,loading:"lazy"}),renderViewer:R=>a.jsx(Zd,{...R})})})},[Re.RoomTombstone]:C=>{const{content:S}=C;return a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T400",priority:"300",children:["Room Tombstone. ",S.body]})})}},void 0,C=>{var S,w;return(S=C.unsigned)!=null&&S.redacted_because?a.jsx(oa,{reason:(w=C.unsigned)==null?void 0:w.redacted_because.content.reason}):a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T400",priority:"300",children:[a.jsx("code",{className:nc,children:C.type})," event"]})})}),k=C=>{const S=C.currentTarget.getAttribute("data-event-id");S&&i(t.roomId,S)};return a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(In,{size:"300",children:a.jsxs(y,{gap:"200",grow:"Yes",children:[a.jsx(Rt,{size:"200",radii:"300",children:a.jsx(ho,{roomId:t.roomId,src:Hl(u,t,96,l),alt:t.name,renderFallback:()=>a.jsx(ts,{size:"50",joinRule:t.getJoinRule()??un.Restricted,filled:!0})})}),a.jsx(x,{size:"H4",truncate:!0,children:t.name})]})}),a.jsx(y,{direction:"Column",gap:"100",children:n.map(C=>{var ae;const{event:S}=C,w=wr(t,S.sender)??ln(S.sender)??S.sender,A=gC(t,S.sender),O=S.content["m.relates_to"],j=(O==null?void 0:O.rel_type)===Pn.Replace?O.event_id:S.event_id,R=()=>S.content["m.new_content"]??S.content,M=(ae=O==null?void 0:O["m.in_reply_to"])==null?void 0:ae.event_id,z=(O==null?void 0:O.rel_type)===Pn.Thread?O.event_id:void 0,T=F(S.sender),P=m(T),L=P!=null&&P.color?g==null?void 0:g.get(P.color):void 0,U=P!=null&&P.icon?r0(u,l,P.icon):void 0,te=s?Vs(S.sender):L;return a.jsx(rt,{style:{padding:le.space.S400},variant:"SurfaceVariant",direction:"Column",children:a.jsxs(Rm,{before:a.jsx(k8,{children:a.jsx(Rt,{size:"300",children:a.jsx(wa,{userId:S.sender,src:A?Xt(u,A,l,48,48,"crop")??void 0:void 0,alt:w,renderFallback:()=>a.jsx(Q,{size:"200",src:$.User,filled:!0})})})}),children:[a.jsxs(y,{gap:"300",justifyContent:"SpaceBetween",alignItems:"Center",grow:"Yes",children:[a.jsxs(y,{gap:"200",alignItems:"Baseline",children:[a.jsxs(y,{alignItems:"Center",gap:"200",children:[a.jsx(S8,{style:{color:te},children:a.jsx(x,{as:"span",truncate:!0,children:a.jsx(j8,{children:w})})}),U&&a.jsx(o0,{size:"100",iconSrc:U})]}),a.jsx($s,{ts:S.origin_server_ts})]}),a.jsx(y,{shrink:"No",gap:"200",alignItems:"Center",children:a.jsx(We,{"data-event-id":j,onClick:k,variant:"Secondary",radii:"400",children:a.jsx(x,{size:"T200",children:"Open"})})})]}),M&&a.jsx(R3,{room:t,replyEventId:M,threadRootId:z,onClick:k,getPowerLevel:F,getPowerLevelTag:m,accessibleTagColors:g,legacyUsernameColor:s}),b(S.type,!1,S,w,R)]})},S.event_id)})})]})}function gSe({active:t,loading:e,searchInputRef:n,onSearch:r,onReset:o}){const i=s=>{s.preventDefault();const{searchInput:u}=s.target,l=u.value.trim()||void 0;l&&r(l)};return a.jsxs(y,{as:"form",direction:"Column",gap:"100",onSubmit:i,children:[a.jsx("span",{"data-spacing-node":!0}),a.jsx(x,{size:"L400",children:"Search"}),a.jsx(En,{ref:n,style:{paddingRight:le.space.S300},name:"searchInput",size:"500",variant:"Background",placeholder:"Search for keyword",autoComplete:"off",before:t&&e?a.jsx(ot,{variant:"Secondary",size:"200"}):a.jsx(Q,{size:"200",src:$.Search}),after:t?a.jsx(We,{type:"reset",variant:"Secondary",size:"400",radii:"Pill",outlined:!0,after:a.jsx(Q,{size:"50",src:$.Cross}),onClick:o,children:a.jsx(x,{size:"B300",children:"Clear"})},"resetButton"):a.jsx(We,{type:"submit",variant:"Primary",size:"400",radii:"Pill",outlined:!0,children:a.jsx(x,{size:"B300",children:"Enter"})})})]})}const By=(t,e)=>{let n=t.normalize((e==null?void 0:e.normalizeUnicode)??!0?"NFKC":"NFC");return e!=null&&e.caseSensitive||(n=n.toLocaleLowerCase()),((e==null?void 0:e.ignoreWhitespace)??!0)&&(n=n.replace(/\s/g,"")),n},VJ=(t,e,n)=>n!=null&&n.contain?t.indexOf(e)!==-1:t.startsWith(e),pSe=(t,e,n,r)=>{let o=[],i=0,s=0,u;const l=()=>{o=[],i=0,s=0,u&&clearTimeout(u),u=void 0},c=(d,F)=>{const h=o.length;if(u=void 0,F===s){for(s=window.performance.now();i<t.length&&!(e(t[i],d)&&(o.push(t[i]),typeof(r==null?void 0:r.limit)=="number"&&o.length>=r.limit));i+=1)if(window.performance.now()-s>8){const m=o.length,D=s;h!==m&&n(o,d),i+=1,u=window.setTimeout(()=>c(d,D),1);return}(h!==o.length||h===0)&&n(o,d),l()}};return[d=>{if(l(),d===""){n(o,d);return}c(d,s)},l]},oA=(t,e,n)=>{if(Array.isArray(t)){const o=t.find(i=>VJ(By(i,n==null?void 0:n.normalizeOptions),e,n==null?void 0:n.matchOptions));return o?By(o,n==null?void 0:n.normalizeOptions):void 0}const r=By(t,n==null?void 0:n.normalizeOptions);return VJ(r,e,n==null?void 0:n.matchOptions)?r:void 0},fSe=(t,e,n,r)=>{const o=Array.from(e),i=new RegExp(`(\\b|_)${Bf(t)}`),s=new RegExp(`(\\b|_)${Bf(t)}(\\b|_)`);return o.sort((u,l)=>{const c=oA(n(u,t),t,r),d=oA(n(l,t),t,r);if(c===void 0&&d===void 0)return 0;if(c===void 0)return 1;if(d===void 0)return-1;let F=0,h=0;const m=b=>{c.length<d.length?F+=b:d.length<c.length&&(h+=b)};m(1);const D=c.indexOf(t),g=d.indexOf(t);D<g?F+=2:g<D?h+=2:m(2);const p=c.match(i),_=d.match(i);p&&_?m(4):p?F+=4:_&&(h+=4);const v=c.match(s),E=d.match(s);return v&&E?m(8):v?F+=8:E&&(h+=8),h-F}),o},Qd=(t,e,n)=>{const[r,o]=f.useState(),[i,s]=f.useMemo(()=>(o(void 0),pSe(t,(c,d)=>{const F=e(c,d);return typeof oA(F,d,n)=="string"},(c,d)=>o({query:d,items:fSe(d,c,e,n)}),n)),[t,n,e]),u=f.useCallback(c=>{const d=By(c,n==null?void 0:n.normalizeOptions);i(d)},[i,n==null?void 0:n.normalizeOptions]),l=f.useCallback(()=>{s(),o(void 0)},[s]);return f.useEffect(()=>()=>{s()},[s]),[r,u,l]};function _Se({order:t,onChange:e}){const[n,r]=f.useState(),o=t===rf.Rank,i=u=>{r(void 0),e(u)},s=u=>{r(u.currentTarget.getBoundingClientRect())};return a.jsx(Ut,{anchor:n,align:"End",position:"Bottom",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>r(void 0),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsxs(zt,{variant:"Surface",children:[a.jsx(In,{size:"300",variant:"Surface",style:{padding:`0 ${le.space.S300}`},children:a.jsx(x,{size:"L400",children:"Sort by"})}),a.jsx(jn,{variant:"Surface",size:"300"}),a.jsxs("div",{style:{padding:le.space.S100},children:[a.jsx(tt,{onClick:()=>i(),variant:"Surface",size:"300",radii:"300","aria-pressed":!o,children:a.jsx(x,{size:"T300",children:"Recent"})}),a.jsx(tt,{onClick:()=>i(rf.Rank),variant:"Surface",size:"300",radii:"300","aria-pressed":o,children:a.jsx(x,{size:"T300",children:"Relevance"})})]})]})}),children:a.jsx(We,{variant:"SurfaceVariant",radii:"Pill",after:a.jsx(Q,{size:"50",src:$.Sort}),onClick:s,children:o?a.jsx(x,{size:"T200",children:"Relevance"}):a.jsx(x,{size:"T200",children:"Recent"})})})}const vSe={limit:20,matchOptions:{contain:!0}},bSe={wait:200};function CSe({roomList:t,selectedRooms:e,onChange:n}){const r=ge(),o=f.useRef(null),[i,s]=f.useState(),[u,l]=f.useState(e),c=f.useCallback(C=>{var S;return((S=r.getRoom(C))==null?void 0:S.name)??C},[r]),[d,F,h]=Qd(t,c,vSe),m=Array.from((d==null?void 0:d.items)??t).sort(LW(r)),D=Ru({count:m.length,getScrollElement:()=>o.current,estimateSize:()=>32,overscan:5}),g=D.getVirtualItems(),p=Z1(F,bSe),_=C=>{const S=C.currentTarget.value.trim();if(!S){h();return}p(S)},v=C=>{const S=C.currentTarget.getAttribute("data-room-id");if(!S)return;if(u!=null&&u.includes(S)){l(u==null?void 0:u.filter(A=>A!==S));return}const w=[...u??[]];w.push(S),l(w)},E=()=>{s(void 0),n(u)},b=()=>{s(void 0),n(void 0)};f.useEffect(()=>{l(e),h()},[i,e,h]);const k=C=>{s(C.currentTarget.getBoundingClientRect())};return a.jsx(Ut,{anchor:i,align:"Center",position:"Bottom",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>s(void 0),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(zt,{variant:"Surface",style:{width:Dt(250)},children:a.jsxs(y,{direction:"Column",style:{maxHeight:Dt(450),maxWidth:Dt(300)},children:[a.jsxs(y,{shrink:"No",direction:"Column",gap:"100",style:{padding:le.space.S200,paddingBottom:0},children:[a.jsx(x,{size:"L400",children:"Search"}),a.jsx(En,{onChange:_,size:"300",radii:"300",after:d&&d.items.length>0?a.jsx(Bt,{variant:"Secondary",size:"400",radii:"Pill",children:a.jsx(x,{size:"L400",children:d.items.length})}):null})]}),a.jsx(Mt,{ref:o,size:"300",hideTrack:!0,children:a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S200,paddingRight:0},children:[!d&&a.jsx(x,{size:"L400",children:"Rooms"}),d&&a.jsx(x,{size:"L400",children:`Rooms for "${d.query}"`}),d&&d.items.length===0&&a.jsx(x,{style:{padding:le.space.S400},size:"T300",align:"Center",children:"No match found!"}),a.jsx("div",{style:{position:"relative",height:D.getTotalSize()},children:g.map(C=>{const S=m[C.index],w=r.getRoom(S);if(!w)return null;const A=u==null?void 0:u.includes(S);return a.jsx(Hs,{virtualItem:C,style:{paddingBottom:le.space.S100},ref:D.measureElement,children:a.jsx(tt,{"data-room-id":S,onClick:v,variant:A?"Success":"Surface",size:"300",radii:"300","aria-pressed":A,before:a.jsx(Q,{size:"50",src:J5($,w.getJoinRule(),!1)??$.Hash}),children:a.jsx(x,{truncate:!0,size:"T300",children:w.name})})},C.index)})})]})}),a.jsx(jn,{variant:"Surface",size:"300"}),a.jsxs(y,{shrink:"No",direction:"Column",gap:"100",style:{padding:le.space.S200},children:[a.jsx(Ee,{size:"300",variant:"Secondary",radii:"300",onClick:E,children:u&&u.length>0?a.jsxs(x,{size:"B300",children:["Save (",u.length,")"]}):a.jsx(x,{size:"B300",children:"Save"})}),a.jsx(Ee,{size:"300",radii:"300",variant:"Secondary",fill:"Soft",onClick:b,disabled:!u||u.length===0,children:a.jsx(x,{size:"B300",children:"Deselect All"})})]})]})})}),children:a.jsx(We,{onClick:k,variant:"SurfaceVariant",radii:"Pill",before:a.jsx(Q,{size:"100",src:$.PlusCircle}),children:a.jsx(x,{size:"T200",children:"Select Rooms"})})})}function ESe({defaultRoomsFilterName:t,allowGlobal:e,roomList:n,selectedRooms:r,onSelectedRoomsChange:o,global:i,order:s,onGlobalChange:u,onOrderChange:l}){const c=ge();return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Filter"}),a.jsxs(y,{gap:"200",wrap:"Wrap",children:[a.jsx(We,{variant:i?"Surface":"Success","aria-pressed":!i,before:!i&&a.jsx(Q,{size:"100",src:$.Check}),outlined:!0,onClick:()=>u(),children:a.jsx(x,{size:"T200",children:t})}),e&&a.jsx(We,{variant:i?"Success":"Surface","aria-pressed":i,before:i&&a.jsx(Q,{size:"100",src:$.Check}),outlined:!0,onClick:()=>u(!0),children:a.jsx(x,{size:"T200",children:"Global"})}),a.jsx(jn,{style:{margin:`${le.space.S100} 0`},direction:"Vertical",variant:"Surface",size:"300"}),r==null?void 0:r.map(d=>{const F=c.getRoom(d);return F?a.jsx(We,{variant:"Success",onClick:()=>o(r.filter(h=>h!==d)),radii:"Pill",before:a.jsx(Q,{size:"50",src:J5($,F.getJoinRule(),!1)??$.Hash}),after:a.jsx(Q,{size:"50",src:$.Cross}),children:a.jsx(x,{size:"T200",children:F.name})},d):null}),a.jsx(CSe,{roomList:n,selectedRooms:r,onChange:o}),a.jsx(y,{grow:"Yes","data-spacing-node":!0}),a.jsx(_Se,{order:s,onChange:l})]})]})}const ySe=t=>f.useMemo(()=>({global:t.get("global")??void 0,term:t.get("term")??void 0,order:t.get("order")??void 0,rooms:t.get("rooms")??void 0,senders:t.get("senders")??void 0}),[t]);function qJ({defaultRoomsFilterName:t,allowGlobal:e,rooms:n,senders:r,scrollRef:o}){var re;const i=ge(),s=_t(Co),u=fS(i,nr,s),[l]=Ft(ut,"mediaAutoLoad"),[c]=Ft(ut,"urlPreview"),[d]=Ft(ut,"legacyUsernameColor"),F=f.useRef(null),h=f.useRef(null),[m,D]=Yc(),g=ySe(m),{navigateRoom:p}=Mo(),_=f.useMemo(()=>{if(g.rooms)return a7(g.rooms).filter(ce=>u.includes(ce))},[u,g.rooms]),v=f.useMemo(()=>{if(g.senders)return a7(g.senders)},[g.senders]),E=f.useMemo(()=>{const ce=g.global==="true"?void 0:n;return{term:g.term,order:g.order??rf.Recent,rooms:_??ce,senders:v??r}},[g,_,v,n,r]),b=c8e(E),{status:k,data:C,error:S,fetchNextPage:w,hasNextPage:A,isFetchingNextPage:O}=tN({enabled:!!E.term,queryKey:["search",E.term,E.order,E.rooms,E.senders],queryFn:({pageParam:ce})=>b(ce),initialPageParam:"",getNextPageParam:ce=>ce.nextToken}),j=f.useMemo(()=>(C==null?void 0:C.pages.flatMap(ce=>ce.groups))??[],[C]),R=f.useMemo(()=>{const ce=C==null?void 0:C.pages.flatMap(K=>K.highlights);return Array.from(new Set(ce))},[C]),M=Ru({count:j.length,getScrollElement:()=>o.current,estimateSize:()=>40,overscan:1}),z=M.getVirtualItems(),T=ce=>{D(K=>{const H=new URLSearchParams(K);return H.delete("term"),H.append("term",ce),H})},P=()=>{F.current&&(F.current.value=""),D(ce=>{const K=new URLSearchParams(ce);return K.delete("term"),K})},L=ce=>{D(K=>{const H=new URLSearchParams(K);return H.delete("rooms"),ce&&ce.length>0&&H.append("rooms",Rfe(ce)),H})},U=ce=>{D(K=>{const H=new URLSearchParams(K);return H.delete("global"),ce&&H.append("global","true"),H})},te=ce=>{D(K=>{const H=new URLSearchParams(K);return H.delete("order"),ce&&H.append("order",ce),H})},ae=(re=z[z.length-1])==null?void 0:re.index,Fe=j.length-1;return f.useEffect(()=>{Fe>-1&&Fe===ae&&!O&&A&&w()},[ae,Fe,w,O,A]),a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsx(f3,{scrollRef:o,anchorRef:h,children:a.jsx(Me,{onClick:()=>M.scrollToOffset(0),variant:"SurfaceVariant",radii:"Pill",outlined:!0,size:"300","aria-label":"Scroll to Top",children:a.jsx(Q,{src:$.ChevronTop,size:"300"})})}),a.jsxs(y,{ref:h,direction:"Column",gap:"300",children:[a.jsx(gSe,{active:!!E.term,loading:k==="pending",searchInputRef:F,onSearch:T,onReset:P}),a.jsx(ESe,{defaultRoomsFilterName:t,allowGlobal:e,roomList:g.global==="true"?u:n,selectedRooms:_,onSelectedRoomsChange:L,global:g.global==="true",onGlobalChange:U,order:E.order,onOrderChange:te})]}),!E.term&&k==="pending"&&a.jsx(CE,{children:a.jsx(Od,{children:a.jsx(Md,{icon:a.jsx(Q,{size:"600",src:$.Message}),title:"Search Messages",subTitle:"Find helpful messages in your community by searching with related keywords."})})}),E.term&&j.length===0&&k==="success"&&a.jsxs(y,{className:ai({variant:"Warning"}),style:{padding:le.space.S300,borderRadius:le.radii.R400},alignItems:"Center",gap:"200",children:[a.jsx(Q,{size:"200",src:$.Info}),a.jsxs(x,{children:["No results found for ",a.jsx("b",{children:`"${E.term}"`})]})]}),(E.term&&k==="pending"||j.length>0&&z.length===0)&&a.jsx(y,{direction:"Column",gap:"100",children:[...Array(8).keys()].map(ce=>a.jsx(rt,{variant:"SurfaceVariant",style:{minHeight:Dt(80)}},ce))}),z.length>0&&a.jsxs(y,{direction:"Column",gap:"300",children:[a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(x,{size:"H5",children:`Results for "${E.term}"`}),a.jsx(jn,{size:"300",variant:"Surface"})]}),a.jsx("div",{style:{position:"relative",height:M.getTotalSize()},children:z.map(ce=>{const K=j[ce.index];if(!K)return null;const H=i.getRoom(K.roomId);return H?a.jsx(Hs,{virtualItem:ce,style:{paddingBottom:le.space.S500},ref:M.measureElement,children:a.jsx(DSe,{room:H,highlights:R,items:K.items,mediaAutoLoad:l,urlPreview:c,onOpen:p,legacyUsernameColor:d||s.has(H.roomId)})},ce.index):null})}),O&&a.jsx(y,{justifyContent:"Center",alignItems:"Center",children:a.jsx(ot,{size:"600",variant:"Secondary"})})]}),S&&a.jsxs(y,{className:ai({variant:"Critical"}),style:{padding:le.space.S300,borderRadius:le.radii.R400},direction:"Column",gap:"200",children:[a.jsx(x,{size:"L400",children:S.name}),a.jsx(x,{size:"T300",children:S.message})]})]})}function mc({children:t}){const e=Xr(),n=Bl(),r=f.useCallback(()=>{if(su({path:ap,caseSensitive:!0,end:!1},n.pathname)){e(Eh());return}if(su({path:sp,caseSensitive:!0,end:!1},n.pathname)){e(vC());return}const o=su({path:up,caseSensitive:!0,end:!1},n.pathname);if(o!=null&&o.params.spaceIdOrAlias){e(c7(o.params.spaceIdOrAlias));return}if(su({path:lp,caseSensitive:!0,end:!1},n.pathname)){e(Tf());return}su({path:cp,caseSensitive:!0,end:!1},n.pathname)&&e(h7())},[e,n]);return t(r)}function xSe(){const t=f.useRef(null),e=F3(),n=Wr();return a.jsxs(ur,{children:[a.jsx(Dr,{balance:!0,children:a.jsxs(y,{grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(y,{grow:"Yes",basis:"No",children:n===en.Mobile&&a.jsx(mc,{children:r=>a.jsx(Me,{onClick:r,children:a.jsx(Q,{src:$.ArrowLeft})})})}),a.jsxs(y,{justifyContent:"Center",alignItems:"Center",gap:"200",children:[n!==en.Mobile&&a.jsx(Q,{size:"400",src:$.Search}),a.jsx(x,{size:"H3",truncate:!0,children:"Message Search"})]}),a.jsx(y,{grow:"Yes",basis:"No"})]})}),a.jsx(y,{style:{position:"relative"},grow:"Yes",children:a.jsx(Mt,{ref:t,hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsx(zh,{children:a.jsx(qJ,{defaultRoomsFilterName:"Home",allowGlobal:!0,rooms:e,scrollRef:t})})})})})]})}const HJ=f.createContext(null),oD=HJ.Provider;function pr(){const t=f.useContext(HJ);if(!t)throw new Error("Room not provided!");return t}const $J=f.createContext(!1),Ay=$J.Provider,iA=()=>f.useContext($J);var WJ="tfhces3",wSe="tfhces0",kSe="tfhces1 _1mqalmd1 _1mqalmd0 _1rwrsxz3",SSe="tfhces2";const jSe=(t,e)=>{const n=ge();return f.useMemo(()=>{const r=Rs(e)?jf(n,e):e;if(r&&t.includes(r))return r},[n,t,e])},BSe=t=>t<=498?"1":t<=748?"2":"3",ASe=(t,e)=>{t.style.setProperty("grid-template-columns",`repeat(${e}, 1fr)`)};function Ty({children:t}){const e=f.useRef(null);return p3(f.useCallback(()=>e.current,[]),f.useCallback((n,r,o)=>ASe(o,BSe(n)),[])),a.jsx(y,{className:wSe,direction:"Row",gap:"400",wrap:"Wrap",ref:e,children:t})}const KJ=Ie(({className:t,...e},n)=>a.jsx(y,{direction:"Column",gap:"300",className:Ve(kSe,t),...e,ref:n})),TSe=Ie(({...t},e)=>a.jsx(x,{as:"h6",size:"H6",truncate:!0,...t,ref:e})),ISe=Ie(({className:t,...e},n)=>a.jsx(x,{as:"p",size:"T200",className:Ve(SSe,t),...e,priority:"400",ref:n}));function RSe({title:t,message:e,children:n}){const[r,o]=f.useState(!1),i=()=>o(!1),s=()=>o(!0);return a.jsxs(a.Fragment,{children:[n(s),a.jsx(Rn,{open:r,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,clickOutsideDeactivates:!0,onDeactivate:i,escapeDeactivates:vt},children:a.jsx(cr,{variant:"Surface",children:a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{children:t}),a.jsx(x,{style:{color:ct.Critical.Main},size:"T300",priority:"400",children:e})]}),a.jsx(Ee,{size:"400",variant:"Secondary",fill:"Soft",onClick:i,children:a.jsx(x,{size:"B400",children:"Cancel"})})]})})})})})]})}const Iy=Ie(({roomIdOrAlias:t,allRooms:e,avatarUrl:n,name:r,topic:o,memberCount:i,roomType:s,viaServers:u,onView:l,renderTopicViewer:c,...d},F)=>{const h=ge(),m=Tt(),D=jSe(e,t),g=h.getRoom(D),[p,_]=f.useState(()=>g?so(g,Re.RoomTopic):void 0),v=ln(t)??t,E=t,b=g?Hl(h,g,96,m):n&&Xt(h,n,m,96,96,"crop"),k=(g==null?void 0:g.name)||r||v,C=(p==null?void 0:p.getContent().topic)||void 0||o||E,S=(g==null?void 0:g.getJoinedMemberCount())??i;Tu(h,f.useCallback(T=>{g&&T.getRoomId()===g.roomId&&T.getType()===Re.RoomTopic&&_(so(g,Re.RoomTopic))},[g]));const[w,A]=et(f.useCallback(()=>h.joinRoom(t,{viaServers:u}),[h,t,u])),O=w.status===he.Loading||w.status===he.Success,[j,R]=f.useState(!1),M=()=>R(!1),z=()=>R(!0);return a.jsxs(KJ,{...d,ref:F,children:[a.jsxs(y,{gap:"200",justifyContent:"SpaceBetween",children:[a.jsx(Rt,{size:"500",children:a.jsx(ho,{roomId:t,src:b??void 0,alt:t,renderFallback:()=>a.jsx(x,{as:"span",size:"H3",children:Gi(k)})})}),(s===yf.Space||(g==null?void 0:g.isSpaceRoom()))&&a.jsx(Bt,{variant:"Secondary",fill:"Soft",outlined:!0,children:a.jsx(x,{size:"L400",children:"Space"})})]}),a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(TSe,{children:k}),a.jsx(ISe,{onClick:z,onKeyDown:gp(z),tabIndex:0,children:C}),a.jsx(Rn,{open:j,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,clickOutsideDeactivates:!0,onDeactivate:M,escapeDeactivates:vt},children:c(k,C,M)})})})]}),typeof S=="number"&&a.jsxs(y,{gap:"100",children:[a.jsx(Q,{size:"50",src:$.User}),a.jsx(x,{size:"T200",children:`${pE(S)} Members`})]}),typeof D=="string"&&a.jsx(Ee,{onClick:l?()=>l(D):void 0,variant:"Secondary",fill:"Soft",size:"300",children:a.jsx(x,{size:"B300",truncate:!0,children:"View"})}),typeof D!="string"&&w.status!==he.Error&&a.jsx(Ee,{onClick:A,variant:"Secondary",size:"300",disabled:O,before:O&&a.jsx(ot,{size:"50",variant:"Secondary",fill:"Soft"}),children:a.jsx(x,{size:"B300",truncate:!0,children:O?"Joining":"Join"})}),typeof D!="string"&&w.status===he.Error&&a.jsxs(y,{gap:"200",children:[a.jsx(Ee,{onClick:A,className:WJ,variant:"Critical",fill:"Solid",size:"300",children:a.jsx(x,{size:"B300",truncate:!0,children:"Retry"})}),a.jsx(RSe,{title:"Join Error",message:w.error.message||"Failed to join. Unknown Error.",children:T=>a.jsx(Ee,{onClick:T,className:WJ,variant:"Critical",fill:"Soft",outlined:!0,size:"300",children:a.jsx(x,{size:"B300",truncate:!0,children:"View Error"})})})]})]})});var OSe="_1pzzygl3",MSe="_1pzzygl0",PSe="_1pzzygl1",LSe="_1pzzygl2",NSe="_1pzzygl4";const e1=Ie(({name:t,topic:e,requestClose:n,className:r,...o},i)=>a.jsxs(xs,{size:"300",flexHeight:!0,className:Ve(MSe,r),...o,ref:i,children:[a.jsxs(In,{className:PSe,variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",truncate:!0,children:t})}),a.jsx(Me,{size:"300",onClick:n,radii:"300",children:a.jsx(Q,{src:$.Cross})})]}),a.jsx(Mt,{className:LSe,size:"300",hideTrack:!0,children:a.jsx(y,{className:OSe,direction:"Column",gap:"100",children:a.jsx(x,{size:"T300",className:NSe,priority:"400",children:a.jsx(w3,{options:Hh,children:j3(e)})})})})]})),zSe=t=>{var s,u;const e=(s=so(t,Re.RoomTopic))==null?void 0:s.getContent(),n=e&&typeof e.topic=="string"?e.topic:void 0,r=(u=so(t,Re.RoomHistoryVisibility))==null?void 0:u.getContent(),o=r&&typeof r.history_visibility=="string"?r.history_visibility===zi.WorldReadable:void 0,i=t.getGuestAccess()===KF.CanJoin;return{roomId:t.roomId,name:t.name,topic:n,avatarUrl:t.getMxcAvatarUrl()??void 0,canonicalAlias:t.getCanonicalAlias()??void 0,worldReadable:o,guestCanJoin:i,memberCount:t.getJoinedMemberCount(),roomType:t.getType(),joinRule:t.getJoinRule()}};function aA({roomIdOrAlias:t,children:e}){const n=ge(),r=f.useCallback(()=>n.getRoomSummary(t),[n,t]),{data:o}=op({queryKey:[t,"summary"],queryFn:r});return e(o)}function GJ({room:t,children:e}){const n=zSe(t);return e(n)}function o_({roomIdOrAlias:t,eventId:e,viaServers:n}){const r=ge(),o=_t(nr),{navigateRoom:i,navigateSpace:s}=Mo(),u=Wr(),l=c=>{var d;if((d=r.getRoom(c))!=null&&d.isSpaceRoom()){s(c);return}i(c,e)};return a.jsxs(ur,{children:[a.jsx(Dr,{balance:!0,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{shrink:"No",children:u===en.Mobile&&a.jsx(mc,{children:c=>a.jsx(Me,{onClick:c,children:a.jsx(Q,{src:$.ArrowLeft})})})}),a.jsx(y,{grow:"Yes",justifyContent:"Center",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:t})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",size:"0",children:a.jsx(y,{style:{height:"100%"},grow:"Yes",alignItems:"Center",justifyContent:"Center",children:a.jsx(aA,{roomIdOrAlias:t,children:c=>a.jsx(Iy,{style:{maxWidth:Dt(364),width:"100%"},roomIdOrAlias:t,allRooms:o,avatarUrl:c==null?void 0:c.avatar_url,name:c==null?void 0:c.name,topic:c==null?void 0:c.topic,memberCount:c==null?void 0:c.num_joined_members,roomType:c==null?void 0:c.room_type,viaServers:n,renderTopicViewer:(d,F,h)=>a.jsx(e1,{name:d,topic:F,requestClose:h}),onView:l})})})})})]})}const USe=t=>({viaServers:t.get("viaServers")??void 0}),VSe=t=>({userId:t.get("userId")??void 0}),sA=()=>{const[t]=Yc(),e=f.useMemo(()=>USe(t),[t]);return e.viaServers?a7(e.viaServers):void 0};function qSe({children:t}){const e=ge(),n=F3(),{roomIdOrAlias:r,eventId:o}=uu(),i=sA(),s=Mh(),u=e.getRoom(s);return!u||!n.includes(u.roomId)?a.jsx(o_,{roomIdOrAlias:r,eventId:o,viaServers:i}):a.jsx(oD,{value:u,children:a.jsx(Ay,{value:!1,children:t})},u.roomId)}const i_=()=>{const t=ge(),e=_t(Co);return sE(t,nr,e)},HSe=f.forwardRef(({requestClose:t},e)=>{const n=ge(),[r]=Ft(ut,"hideActivity"),o=i_(),i=Ql(o,co),s=()=>{i&&(o.forEach(u=>ta(n,u,r)),t())};return a.jsx(zt,{ref:e,style:{maxWidth:Dt(160),width:"100vw"},children:a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:a.jsx(tt,{onClick:s,size:"300",after:a.jsx(Q,{size:"100",src:$.CheckTwice}),radii:"300","aria-disabled":!i,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Mark as Read"})})})})});function $Se(){const[t,e]=f.useState(),n=r=>{const o=r.currentTarget.getBoundingClientRect();e(i=>{if(!i)return o})};return a.jsxs(a.Fragment,{children:[a.jsx(Id,{children:a.jsxs(y,{alignItems:"Center",grow:"Yes",gap:"300",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",truncate:!0,children:"Direct Messages"})}),a.jsx(y,{children:a.jsx(Me,{"aria-pressed":!!t,variant:"Background",onClick:n,children:a.jsx(Q,{src:$.VerticalDots,size:"200"})})})]})}),a.jsx(Ut,{anchor:t,position:"Bottom",align:"End",offset:6,content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>e(void 0),clickOutsideDeactivates:!0,isKeyForward:r=>r.key==="ArrowDown",isKeyBackward:r=>r.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(HSe,{requestClose:()=>e(void 0)})})})]})}function WSe(){return a.jsx(WW,{children:a.jsx(KW,{icon:a.jsx(Q,{size:"600",src:$.Mention}),title:a.jsx(x,{size:"H5",align:"Center",children:"No Direct Messages"}),content:a.jsx(x,{size:"T300",align:"Center",children:"You do not have any direct messages yet."}),options:a.jsx(Ee,{variant:"Secondary",size:"300",onClick:()=>Au(),children:a.jsx(x,{size:"B300",truncate:!0,children:"Direct Message"})})})})}const uA=D3("direct","direct");function KSe(){const t=ge();g3("direct");const e=f.useRef(null),n=i_(),r=l3(),o=_t(co),i=Mh(),s=n.length===0,[u,l]=Yi(HS()),c=f.useMemo(()=>{const h=Array.from(n).sort(c3(t));return u.has(uA)?h.filter(m=>o.has(m)||m===i):h},[t,n,u,o,i]),d=Ru({count:c.length,getScrollElement:()=>e.current,estimateSize:()=>38,overscan:10}),F=bE(l,h=>u.has(h));return a.jsxs(Td,{children:[a.jsx($Se,{}),s?a.jsx(WSe,{}):a.jsx(Rd,{scrollRef:e,children:a.jsxs(y,{direction:"Column",gap:"300",children:[a.jsx(Jl,{children:a.jsx(Qa,{variant:"Background",radii:"400",children:a.jsx(jS,{onClick:()=>Au(),children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:a.jsx(Q,{src:$.Plus,size:"100"})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:"Create Chat"})})]})})})})}),a.jsxs(Jl,{children:[a.jsx(hE,{children:a.jsx(qS,{closed:u.has(uA),"data-category-id":uA,onClick:F,children:"Chats"})}),a.jsx("div",{style:{position:"relative",height:d.getTotalSize()},children:d.getVirtualItems().map(h=>{const m=c[h.index],D=t.getRoom(m);if(!D)return null;const g=i===m;return a.jsx(Hs,{virtualItem:h,ref:d.measureElement,children:a.jsx(VS,{room:D,selected:g,showAvatar:!0,direct:!0,linkPath:l7(vo(t,m)),notificationMode:lE(r,D.roomId)})},h.index)})})]})]})})]})}function GSe({children:t}){const e=ge(),n=i_(),{roomIdOrAlias:r,eventId:o}=uu(),i=Mh(),s=e.getRoom(i);return!s||!n.includes(s.roomId)?a.jsx(o_,{roomIdOrAlias:r,eventId:o}):a.jsx(oD,{value:s,children:a.jsx(Ay,{value:!0,children:t})},s.roomId)}function iD(){return a.jsx(ur,{children:a.jsx(y,{grow:"Yes",style:{padding:le.space.S400,paddingBottom:le.space.S700},alignItems:"Center",justifyContent:"Center",children:a.jsx(Od,{children:a.jsx(Md,{icon:a.jsx("img",{width:"70",height:"70",src:xF,alt:"Cinny Logo"}),title:"Welcome to Cinny",subTitle:a.jsxs("span",{children:["Yet another matrix client."," ",a.jsx("a",{href:"https://github.com/cinnyapp/cinny/releases",target:"_blank",rel:"noreferrer noopener",children:"v4.8.1"})]}),children:a.jsx(y,{justifyContent:"Center",children:a.jsxs(y,{grow:"Yes",style:{maxWidth:Dt(300)},direction:"Column",gap:"300",children:[a.jsx(Ee,{as:"a",href:"https://github.com/cinnyapp/cinny",target:"_blank",rel:"noreferrer noopener",before:a.jsx(Q,{size:"200",src:$.Code}),children:a.jsx(x,{as:"span",size:"B400",truncate:!0,children:"Source Code"})}),a.jsx(Ee,{as:"a",href:"https://cinny.in/#sponsor",target:"_blank",rel:"noreferrer noopener",fill:"Soft",before:a.jsx(Q,{size:"200",src:$.Heart}),children:a.jsx(x,{as:"span",size:"B400",truncate:!0,children:"Support"})})]})})})})})})}function YSe(){const t=ge(),e=Xr(),[n]=Yc(),{userId:r}=VSe(n),o=i_();return f.useEffect(()=>{if(r){const i=fC(t,r),{roomId:s}=i??{};s&&o.includes(s)?e(l7(s),{replace:!0}):Au(void 0,r)}else e(vC(),{replace:!0})},[t,e,o,r]),a.jsx(iD,{})}function ZSe({children:t}){const e=ge(),n=pS(e,nr),{spaceIdOrAlias:r}=uu(),o=sA(),i=lS(),s=e.getRoom(i);return!s||!n.includes(s.roomId)?a.jsx(o_,{roomIdOrAlias:r??"",viaServers:o}):a.jsx(US,{value:s,children:t},s.roomId)}const i0=(t,e)=>{var o;const n=vi(t,Re.RoomAvatar);if(e)return(o=t.getAvatarFallbackMember())==null?void 0:o.getMxcAvatarUrl();const r=n==null?void 0:n.getContent();return r&&typeof r.url=="string"?r.url:void 0},t1=t=>{const[e,n]=f.useState(t.name);return f.useEffect(()=>{const r=()=>{n(t.name)};return t.on(Ke.Name,r),()=>{t.removeListener(Ke.Name,r)}},[t]),e},Ry=t=>{var n;const e=(n=vi(t,Re.RoomTopic))==null?void 0:n.getContent();return e&&typeof e.topic=="string"?e.topic:void 0},Oy=t=>{var e;return(e=vi(t,Re.RoomJoinRules))==null?void 0:e.getContent()},lA=(t,e)=>fCe(t.ts,e.ts),cA=(t,e)=>_Ce(t.content.order,e.content.order),YJ=(t,e,n)=>{const r={roomId:t,content:{via:[]},ts:0,space:!0};let o=[];const i=s=>{if(o.find(l=>l.roomId===s.roomId))return;const u=e(s.roomId);o.push(s),u&&bh(u,Re.SpaceChild).forEach(l=>{var d;if(!wf(l))return;const c=l.getStateKey();if(!(!c||!Ch(c))&&((d=e(c))!=null&&d.isSpaceRoom()||n.has(c))){const F={roomId:c,content:l.getContent(),ts:l.getTs(),space:!0,parentId:s.roomId};i(F)}})};return i(r),o=[r,...o.filter(s=>s.roomId!==t).sort(lA).sort(cA)],o},dA=(t,e,n,r)=>YJ(t,n,e).map(o=>{const i=n(o.roomId);if(!i||r(o.roomId))return{space:o};const s=bh(i,Re.SpaceChild),u=[];return s.forEach(l=>{var F;if(!wf(l))return;const c=l.getStateKey();if(!c||!Ch(c)||(F=n(c))!=null&&F.isSpaceRoom()||e.has(c))return;const d={roomId:c,content:l.getContent(),ts:l.getTs(),parentId:o.roomId};u.push(d)}),{space:o,rooms:u.sort(lA).sort(cA)}}),JSe=(t,e,n,r)=>{const o=ge(),i=_t(lo),[s]=f.useState(()=>Bn(dA(t,e,n,r))),[u,l]=Yi(s);return f.useEffect(()=>{l(dA(t,e,n,r))},[o,t,e,l,n,r]),Tu(o,f.useCallback(c=>{if(c.getType()!==Re.SpaceChild)return;const d=c.getRoomId();d&&(t===d||Wa(i,d).has(t))&&l(dA(t,e,n,r))},[t,i,l,e,n,r])),u},hA=(t,e,n,r)=>YJ(t,e,new Set).flatMap(o=>{const i=e(o.roomId);if(!i)return[];const s=bh(i,Re.SpaceChild).filter(l=>{if(!wf(l))return!1;const c=l.getStateKey();if(!c||!Ch(c))return!1;const d=e(c);return!(!d||d.isSpaceRoom())});if(s.length===0)return[];const u=[];return s.forEach(l=>{const c=l.getStateKey();if(!c||n(i.roomId,c))return;const d={roomId:c,content:l.getContent(),ts:l.getTs(),parentId:o.roomId};u.push(d)}),[o,...r(o.roomId,u)]}),XSe=(t,e,n,r)=>{const o=ge(),i=_t(lo),s=f.useCallback((d,F)=>r(d)?(F.sort((h,m)=>c3(o)(h.roomId,m.roomId)),F):(F.sort(lA).sort(cA),F),[o,r]),[u]=f.useState(()=>Bn(hA(t,e,n,s))),[l,c]=Yi(u);return f.useEffect(()=>{c(hA(t,e,n,s))},[o,t,c,e,n,s]),Tu(o,f.useCallback(d=>{if(d.getType()!==Re.SpaceChild)return;const F=d.getRoomId();F&&(t===F||Wa(i,F).has(t))&&c(hA(t,e,n,s))},[t,i,c,e,n,s])),l},QSe=100,eje=50,tje=(t,e)=>{const n=ge(),r=f.useRef(0),o=f.useCallback(({pageParam:m})=>n.getRoomHierarchy(t,QSe,1,!1,m),[t,n]),i=tN({refetchOnMount:e,queryKey:[t,"hierarchy_level"],initialPageParam:void 0,queryFn:o,getNextPageParam:m=>{if(m.next_batch)return m.next_batch},retry:5,retryDelay:(m,D)=>{if(D instanceof tn&&D.errcode===Wl.M_LIMIT_EXCEEDED){const{retry_after_ms:g}=D.data;if(typeof g=="number")return g}return 500*m}}),{data:s,isLoading:u,isFetchingNextPage:l,error:c,fetchNextPage:d,hasNextPage:F}=i;f.useEffect(()=>{F&&r.current<=eje&&!c&&s&&s.pages.length>0&&(r.current+=1,d())},[d,F,s,c]);const h=f.useMemo(()=>{const m=new Map;return s&&s.pages.flatMap(D=>D.rooms).forEach(D=>{m.set(D.room_id,D)}),m},[s]);return{fetching:u||l,error:c,rooms:h}};function FA({roomId:t,onDone:e,onCancel:n}){const r=ge(),[o,i]=et(f.useCallback(async()=>{r.leave(t)},[r,t])),s=()=>{i()};return f.useEffect(()=>{o.status===he.Success&&e()},[o,e]),a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:n,clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsxs(cr,{variant:"Surface",children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Leave Space"})}),a.jsx(Me,{size:"300",onClick:n,radii:"300",children:a.jsx(Q,{src:$.Cross})})]}),a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(x,{priority:"400",children:"Are you sure you want to leave this space?"}),o.status===he.Error&&a.jsxs(x,{style:{color:ct.Critical.Main},size:"T300",children:["Failed to leave space! ",o.error.message]})]}),a.jsx(Ee,{type:"submit",variant:"Critical",onClick:s,before:o.status===he.Loading?a.jsx(ot,{fill:"Solid",variant:"Critical",size:"200"}):void 0,"aria-disabled":o.status===he.Loading||o.status===he.Success,children:a.jsx(x,{size:"B400",children:o.status===he.Loading?"Leaving...":"Leave"})})]})]})})})})}var cs=(t=>(t[t.GeneralPage=0]="GeneralPage",t[t.MembersPage=1]="MembersPage",t[t.PermissionsPage=2]="PermissionsPage",t[t.EmojisStickersPage=3]="EmojisStickersPage",t[t.DeveloperToolsPage=4]="DeveloperToolsPage",t))(cs||{});const mA=Bn(void 0),nje=()=>_t(mA),rje=()=>{const t=Di(mA);return f.useCallback(()=>{t(void 0)},[t])},My=()=>{const t=Di(mA);return f.useCallback((e,n,r)=>{t({roomId:e,spaceId:n,page:r})},[t])},oje=f.forwardRef(({room:t,requestClose:e},n)=>{const r=ge(),[o]=Ft(ut,"hideActivity"),[i]=Ft(ut,"developerTools"),s=_t(lo),u=Bi(t),{getPowerLevel:l,canDoAction:c}=yo(u),d=c("invite",l(r.getUserId()??"")),F=My(),{navigateRoom:h}=Mo(),m=aE(nr,t.roomId,TW(r,s)),D=Ql(m,co),g=()=>{m.forEach(b=>ta(r,b,o)),e()},p=()=>{const b=vo(r,t.roomId),k=Rs(b)?void 0:wd(t);Vl(_E(b,k)),e()},_=()=>{Au(t.roomId),e()},v=()=>{F(t.roomId),e()},E=()=>{h(t.roomId),e()};return a.jsxs(zt,{ref:n,style:{maxWidth:Dt(160),width:"100vw"},children:[a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:a.jsx(tt,{onClick:g,size:"300",after:a.jsx(Q,{size:"100",src:$.CheckTwice}),radii:"300",disabled:!D,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Mark as Read"})})}),a.jsx(jn,{variant:"Surface",size:"300"}),a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[a.jsx(tt,{onClick:_,variant:"Primary",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.UserPlus}),radii:"300",disabled:!d,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Invite"})}),a.jsx(tt,{onClick:p,size:"300",after:a.jsx(Q,{size:"100",src:$.Link}),radii:"300",children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Copy Link"})}),a.jsx(tt,{onClick:v,size:"300",after:a.jsx(Q,{size:"100",src:$.Setting}),radii:"300",children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Space Settings"})}),i&&a.jsx(tt,{onClick:E,size:"300",after:a.jsx(Q,{size:"100",src:$.Terminal}),radii:"300",children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Event Timeline"})})]}),a.jsx(jn,{variant:"Surface",size:"300"}),a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:a.jsx(Oo,{initial:!1,children:(b,k)=>a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:()=>k(!0),variant:"Critical",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.ArrowGoLeft}),radii:"300","aria-pressed":b,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Leave Space"})}),b&&a.jsx(FA,{roomId:t.roomId,onDone:e,onCancel:()=>k(!1)})]})})})]})});function ije(){var s;const t=Nh(),e=t1(t),[n,r]=f.useState(),o=(s=vi(t,Re.RoomJoinRules))==null?void 0:s.getContent(),i=u=>{const l=u.currentTarget.getBoundingClientRect();r(c=>{if(!c)return l})};return a.jsxs(a.Fragment,{children:[a.jsx(Id,{children:a.jsxs(y,{alignItems:"Center",grow:"Yes",gap:"300",children:[a.jsxs(y,{grow:"Yes",alignItems:"Center",gap:"100",children:[a.jsx(x,{size:"H4",truncate:!0,children:e}),(o==null?void 0:o.join_rule)!==un.Public&&a.jsx(Q,{src:$.Lock,size:"50"})]}),a.jsx(y,{children:a.jsx(Me,{"aria-pressed":!!n,variant:"Background",onClick:i,children:a.jsx(Q,{src:$.VerticalDots,size:"200"})})})]})}),n&&a.jsx(Ut,{anchor:n,position:"Bottom",align:"End",offset:6,content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>r(void 0),clickOutsideDeactivates:!0,isKeyForward:u=>u.key==="ArrowDown",isKeyBackward:u=>u.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(oje,{room:t,requestClose:()=>r(void 0)})})})]})}function aje(){const t=ge(),e=Nh();g3(e.roomId);const n=vo(t,e.roomId),r=f.useRef(null),o=_t(Co),i=_t(co),s=_t(nr),u=f.useMemo(()=>new Set(s),[s]),l=l3(),c=Mh(),d=Ube(n),F=Vbe(n),[h,m]=Yi(HS()),D=f.useCallback(E=>{if(u.has(E))return t.getRoom(E)??void 0},[t,u]),g=XSe(e.roomId,D,f.useCallback((E,b)=>!(!h.has(D3(e.roomId,E))||i.has(b)||b===c),[e.roomId,h,i,c]),f.useCallback(E=>h.has(D3(e.roomId,E)),[h,e.roomId])),p=Ru({count:g.length,getScrollElement:()=>r.current,estimateSize:()=>0,overscan:10}),_=bE(m,E=>h.has(E)),v=E=>CC(n,vo(t,E));return a.jsxs(Td,{children:[a.jsx(ije,{}),a.jsx(Rd,{scrollRef:r,children:a.jsxs(y,{direction:"Column",gap:"300",children:[a.jsxs(Jl,{children:[a.jsx(Qa,{variant:"Background",radii:"400","aria-selected":d,children:a.jsx(Xl,{to:bC(vo(t,e.roomId)),children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:a.jsx(Q,{src:$.Flag,size:"100",filled:d})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:"Lobby"})})]})})})}),a.jsx(Qa,{variant:"Background",radii:"400","aria-selected":F,children:a.jsx(Xl,{to:d7(vo(t,e.roomId)),children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:a.jsx(Q,{src:$.Search,size:"100",filled:F})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:"Message Search"})})]})})})})]}),a.jsx(Jl,{style:{height:p.getTotalSize(),position:"relative"},children:p.getVirtualItems().map(E=>{const{roomId:b}=g[E.index]??{},k=t.getRoom(b);if(!k)return null;if(k.isSpaceRoom()){const C=D3(e.roomId,b);return a.jsx(Hs,{virtualItem:E,ref:p.measureElement,children:a.jsx("div",{style:{paddingTop:E.index===0?void 0:le.space.S400},children:a.jsx(hE,{children:a.jsx(qS,{"data-category-id":C,onClick:_,closed:h.has(C),children:b===e.roomId?"Rooms":k==null?void 0:k.name})})})},E.index)}return a.jsx(Hs,{virtualItem:E,ref:p.measureElement,children:a.jsx(VS,{room:k,selected:c===b,showAvatar:o.has(b),direct:o.has(b),linkPath:v(b),notificationMode:lE(l,k.roomId)})},E.index)})})]})})]})}function sje(){const t=ge(),e=f.useRef(null),n=Nh(),r=Wr(),o=_t(Co),i=_t(lo),s=aE(nr,n.roomId,aCe(t,o,i));return a.jsxs(ur,{children:[a.jsx(Dr,{balance:!0,children:a.jsxs(y,{grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(y,{grow:"Yes",basis:"No",children:r===en.Mobile&&a.jsx(mc,{children:u=>a.jsx(Me,{onClick:u,children:a.jsx(Q,{src:$.ArrowLeft})})})}),a.jsxs(y,{justifyContent:"Center",alignItems:"Center",gap:"200",children:[r!==en.Mobile&&a.jsx(Q,{size:"400",src:$.Search}),a.jsx(x,{size:"H3",truncate:!0,children:"Message Search"})]}),a.jsx(y,{grow:"Yes",basis:"No"})]})}),a.jsx(y,{style:{position:"relative"},grow:"Yes",children:a.jsx(Mt,{ref:e,hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsx(zh,{children:a.jsx(qJ,{defaultRoomsFilterName:n.name,allowGlobal:!0,rooms:s,scrollRef:e})})})})})]})}function uje({children:t}){const e=ge(),n=Nh(),[r]=Ft(ut,"developerTools"),[o,i]=Yi(lo),s=_t(Co),u=_t(nr),{roomIdOrAlias:l,eventId:c}=uu(),d=sA(),F=Mh(),h=e.getRoom(F);return!h||!u.includes(h.roomId)?a.jsx(o_,{roomIdOrAlias:l,eventId:c,viaServers:d}):r&&h.isSpaceRoom()&&h.roomId===n.roomId?a.jsx(oD,{value:h,children:a.jsx(Ay,{value:s.has(h.roomId),children:t})},h.roomId):Wa(o,h.roomId).has(n.roomId)?a.jsx(oD,{value:h,children:a.jsx(Ay,{value:s.has(h.roomId),children:t})},h.roomId):(FC(n).includes(h.roomId)&&i({type:"PUT",parent:n.roomId,children:[h.roomId]}),a.jsx(o_,{roomIdOrAlias:l,eventId:c,viaServers:d}))}const lje=()=>!!gi({path:Tf(),caseSensitive:!0,end:!1}),cje=()=>!!gi({path:EC(),caseSensitive:!0,end:!1}),dje=()=>{const{server:t}=uu();return t};function hje(){const t=ge(),e=Xr(),[n,r]=f.useState(!1),o=f.useRef(null),[i]=et(f.useCallback(c=>t.publicRooms({server:c,limit:1}),[t])),s=()=>{const c=o.current;return c&&c.value.trim()||void 0},u=c=>{c.preventDefault();const d=s();d&&(e(hm(d)),r(!1))},l=()=>{const c=s();c&&(e(hm(c)),r(!1))};return a.jsxs(a.Fragment,{children:[a.jsx(Rn,{open:n,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,clickOutsideDeactivates:!0,onDeactivate:()=>r(!1),escapeDeactivates:vt},children:a.jsxs(cr,{variant:"Surface",children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Add Server"})}),a.jsx(Me,{size:"300",onClick:()=>r(!1),radii:"300",children:a.jsx(Q,{src:$.Cross})})]}),a.jsxs(y,{as:"form",onSubmit:u,style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsx(x,{priority:"400",children:"Add server name to explore public communities."}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Server Name"}),a.jsx(En,{ref:o,name:"serverInput",variant:"Background",required:!0}),i.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T300",children:"Failed to load public rooms. Please try again."})]}),a.jsx(y,{direction:"Column",gap:"200",children:a.jsx(Ee,{type:"submit",onClick:l,variant:"Secondary",fill:"Soft",children:a.jsx(x,{size:"B400",children:"View"})})})]})]})})})}),a.jsx(Ee,{variant:"Secondary",fill:"Soft",size:"300",before:a.jsx(Q,{size:"100",src:$.Plus}),onClick:()=>r(!0),children:a.jsx(x,{size:"B300",truncate:!0,children:"Add Server"})})]})}function Fje(){var u,l;const t=ge();g3("explore");const e=t.getUserId(),n=W1(),r=e?xu(e):void 0,o=((l=(u=n.featuredCommunities)==null?void 0:u.servers)==null?void 0:l.filter(c=>c!==r))??[],i=cje(),s=dje();return a.jsxs(Td,{children:[a.jsx(Id,{children:a.jsx(y,{grow:"Yes",gap:"300",children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",truncate:!0,children:"Explore Community"})})})}),a.jsx(Rd,{children:a.jsxs(y,{direction:"Column",gap:"300",children:[a.jsxs(Jl,{children:[a.jsx(Qa,{variant:"Background",radii:"400","aria-selected":i,children:a.jsx(Xl,{to:EC(),children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:a.jsx(Q,{src:$.Bulb,size:"100",filled:i})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:"Featured"})})]})})})}),r&&a.jsx(Qa,{variant:"Background",radii:"400","aria-selected":s===r,children:a.jsx(Xl,{to:hm(r),children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:a.jsx(Q,{src:$.Server,size:"100",filled:s===r})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:r})})]})})})})]}),o.length>0&&a.jsxs(Jl,{children:[a.jsx(hE,{children:a.jsx(x,{size:"O400",style:{paddingLeft:le.space.S200},children:"Servers"})}),o.map(c=>a.jsx(Qa,{variant:"Background",radii:"400","aria-selected":c===s,children:a.jsx(Xl,{to:hm(c),children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:a.jsx(Q,{src:$.Server,size:"100",filled:c===s})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:c})})]})})})},c))]}),a.jsx(y,{direction:"Column",children:a.jsx(hje,{})})]})})]})}var mje="gg4i1k1 _1mqalmd1 _1mqalmd0 _1rwrsxz8",ZJ="gg4i1k0 _1mqalmd1 _1mqalmd0 _1rwrsxz3";const Dje=t=>f.useMemo(()=>({limit:t.get("limit")??void 0,since:t.get("since")??void 0,term:t.get("term")??void 0,type:t.get("type")??void 0,instance:t.get("instance")??void 0}),[t]),gje=()=>f.useMemo(()=>[{title:"All",value:void 0},{title:"Spaces",value:Tl.Space},{title:"Rooms",value:"null"}],[]),JJ=24;function pje({active:t,loading:e,searchInputRef:n,onSearch:r,onReset:o}){const i=s=>{s.preventDefault();const{searchInput:u}=s.target,l=u.value.trim()||void 0;l&&r(l)};return a.jsxs(y,{as:"form",direction:"Column",gap:"100",onSubmit:i,children:[a.jsx("span",{"data-spacing-node":!0}),a.jsx(x,{size:"L400",children:"Search"}),a.jsx(En,{ref:n,style:{paddingRight:le.space.S300},name:"searchInput",size:"500",variant:"Background",placeholder:"Search for keyword",before:t&&e?a.jsx(ot,{variant:"Secondary",size:"200"}):a.jsx(Q,{size:"200",src:$.Search}),after:t?a.jsx(We,{type:"button",variant:"Secondary",size:"400",radii:"Pill",outlined:!0,after:a.jsx(Q,{size:"50",src:$.Cross}),onClick:o,children:a.jsx(x,{size:"B300",children:"Clear"})}):a.jsx(We,{type:"submit",variant:"Primary",size:"400",radii:"Pill",outlined:!0,children:a.jsx(x,{size:"B300",children:"Enter"})})})]})}const XJ="Matrix";function fje({instanceId:t,onChange:e}){const n=ge(),[r,o]=f.useState(),{data:i}=op({queryKey:["thirdparty","protocols"],queryFn:()=>n.getThirdpartyProtocols()}),s=d=>{const F=d.currentTarget.getAttribute("data-instance-id")??void 0;e(F),o(void 0)},u=d=>{o(d.currentTarget.getBoundingClientRect())},l=i&&Object.keys(i).flatMap(d=>i[d].instances);if(!l||l.length===0)return null;const c=l.find(d=>t===d.instance_id);return a.jsx(Ut,{anchor:r,align:"End",position:"Bottom",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>o(void 0),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(zt,{variant:"Surface",children:a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100,minWidth:Dt(100)},children:[a.jsx(x,{style:{padding:le.space.S100},size:"L400",truncate:!0,children:"Protocols"}),a.jsxs(y,{direction:"Column",children:[a.jsx(tt,{size:"300",variant:"Surface","aria-pressed":t===void 0,radii:"300",onClick:s,children:a.jsx(x,{size:"T200",truncate:!0,children:XJ})}),l.map(d=>a.jsx(tt,{size:"300","data-instance-id":d.instance_id,"aria-pressed":t===d.instance_id,variant:"Surface",radii:"300",onClick:s,children:a.jsx(x,{size:"T200",truncate:!0,children:d.desc})},d.instance_id))]})]})})}),children:a.jsx(We,{onClick:u,"aria-pressed":!!r,radii:"Pill",size:"400",variant:t?"Success":"SurfaceVariant",after:a.jsx(Q,{size:"100",src:$.ChevronBottom}),children:a.jsx(x,{size:"T200",truncate:!0,children:(c==null?void 0:c.desc)??XJ})})})}function _je({limit:t,onLimitChange:e}){const[n,r]=f.useState(),o=u=>{u.preventDefault();const l=u.currentTarget.limitInput;if(!l)return;const c=l.value.trim();c&&e(c)},i=u=>{r(void 0),e(u)},s=u=>{r(u.currentTarget.getBoundingClientRect())};return a.jsx(Ut,{anchor:n,align:"End",position:"Bottom",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>r(void 0),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(zt,{variant:"Surface",children:a.jsxs(y,{direction:"Column",gap:"400",style:{padding:le.space.S300},children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Presets"}),a.jsxs(y,{gap:"100",wrap:"Wrap",children:[a.jsx(We,{variant:"SurfaceVariant",onClick:()=>i("24"),radii:"Pill",children:a.jsx(x,{size:"T200",children:"24"})}),a.jsx(We,{variant:"SurfaceVariant",onClick:()=>i("48"),radii:"Pill",children:a.jsx(x,{size:"T200",children:"48"})}),a.jsx(We,{variant:"SurfaceVariant",onClick:()=>i("96"),radii:"Pill",children:a.jsx(x,{size:"T200",children:"96"})})]})]}),a.jsxs(y,{as:"form",onSubmit:o,direction:"Column",gap:"300",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Custom Limit"}),a.jsx(En,{name:"limitInput",size:"300",variant:"Background",defaultValue:t,min:1,step:1,outlined:!0,type:"number",radii:"400","aria-label":"Per Page Item Limit"})]}),a.jsx(Ee,{type:"submit",size:"300",variant:"Primary",radii:"400",children:a.jsx(x,{size:"B300",children:"Change Limit"})})]})]})})}),children:a.jsx(We,{onClick:s,"aria-pressed":!!n,radii:"Pill",size:"400",variant:"SurfaceVariant",after:a.jsx(Q,{size:"100",src:$.ChevronBottom}),children:a.jsx(x,{size:"T200",truncate:!0,children:`Page Limit: ${t}`})})})}function vje(){const{server:t}=uu(),e=ge(),n=e.getUserId(),r=n&&xu(n),o=_t(nr),{navigateSpace:i,navigateRoom:s}=Mo(),u=Wr(),[l]=Yc(),c=Dje(l),d=!!c.term,F=f.useRef(null),h=f.useRef(null),m=Xr(),D=gje(),g=f.useMemo(()=>{const M=c.limit;return M&&parseInt(M,10)||JJ},[c.limit]),p=f.useCallback(()=>{const M=F.current;M&&(M.scrollTop=0)},[]),_=f.useCallback(()=>{const M=typeof c.limit=="string"?parseInt(c.limit,10):JJ,z=c.type==="null"?null:c.type;return e.http.authedRequest(Se.Post,"/publicRooms",{server:t},{limit:M,since:c.since,filter:{generic_search_term:c.term,room_types:z!==void 0?[z]:void 0},third_party_instance_id:c.instance})},[e,t,c]),{data:v,isLoading:E,error:b}=op({queryKey:[t,"publicRooms",c.limit,c.since,c.term,c.type,c.instance],queryFn:_});f.useEffect(()=>{E&&p()},[E,p]);const k=M=>{if(!t)return;const z={...c,...M};Object.keys(z).forEach(P=>{z[P]===void 0&&delete z[P]});const T=dm(hm(t),z);m(T)},C=()=>{const M=v==null?void 0:v.prev_batch;k({since:M})},S=()=>{const M=v==null?void 0:v.next_batch;k({since:M})},w=M=>{k({term:M,since:void 0})},A=()=>{h.current&&(h.current.value=""),k({term:void 0,since:void 0})},O=M=>{const z=M.currentTarget.getAttribute("data-room-filter");k({type:z??void 0,since:void 0})},j=M=>{k({limit:M})},R=M=>{k({instance:M,since:void 0})};return a.jsxs(ur,{children:[a.jsx(Dr,{balance:!0,children:d?a.jsxs(a.Fragment,{children:[a.jsx(y,{grow:"Yes",basis:"No",children:a.jsx(We,{size:"500",variant:"Surface",radii:"Pill",before:a.jsx(Q,{size:"100",src:$.ArrowLeft}),onClick:A,children:a.jsx(x,{size:"T300",children:t})})}),a.jsxs(y,{grow:"No",justifyContent:"Center",alignItems:"Center",gap:"200",children:[u!==en.Mobile&&a.jsx(Q,{size:"400",src:$.Search}),a.jsx(x,{size:"H3",truncate:!0,children:"Search"})]}),a.jsx(y,{grow:"Yes",basis:"No"})]}):a.jsxs(a.Fragment,{children:[a.jsx(y,{grow:"Yes",basis:"No",children:u===en.Mobile&&a.jsx(mc,{children:M=>a.jsx(Me,{onClick:M,children:a.jsx(Q,{src:$.ArrowLeft})})})}),a.jsxs(y,{grow:"Yes",justifyContent:"Center",alignItems:"Center",gap:"200",children:[u!==en.Mobile&&a.jsx(Q,{size:"400",src:$.Server}),a.jsx(x,{size:"H3",truncate:!0,children:t})]}),a.jsx(y,{grow:"Yes",basis:"No"})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{ref:F,hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsx(zh,{children:a.jsxs(y,{direction:"Column",gap:"600",children:[a.jsx(pje,{active:d,loading:E,searchInputRef:h,onSearch:w,onReset:A},t),a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"300",children:[d?a.jsx(x,{size:"H4",children:`Results for "${c.term}"`}):a.jsx(x,{size:"H4",children:"Popular Communities"}),a.jsxs(y,{gap:"200",children:[D.map(M=>a.jsx(We,{onClick:O,"data-room-filter":M.value,variant:M.value===c.type?"Success":"Surface","aria-pressed":M.value===c.type,before:M.value===c.type&&a.jsx(Q,{size:"100",src:$.Check}),outlined:!0,children:a.jsx(x,{size:"T200",children:M.title})},M.title)),r===t&&a.jsxs(a.Fragment,{children:[a.jsx(jn,{style:{margin:`${le.space.S100} 0`},direction:"Vertical",variant:"Surface",size:"300"}),a.jsx(fje,{instanceId:c.instance,onChange:R})]}),a.jsx(y,{grow:"Yes","data-spacing-node":!0}),a.jsx(_je,{limit:g,onLimitChange:j})]})]}),E&&a.jsx(Ty,{children:[...Array(g).keys()].map(M=>a.jsx(KJ,{style:{minHeight:Dt(260)}},M))}),b&&a.jsxs(y,{direction:"Column",className:mje,gap:"200",children:[a.jsx(x,{size:"L400",children:b.name}),a.jsx(x,{size:"T300",children:b.message})]}),v&&(v.chunk.length>0?a.jsxs(a.Fragment,{children:[a.jsx(Ty,{children:v==null?void 0:v.chunk.map(M=>a.jsx(Iy,{roomIdOrAlias:M.canonical_alias??M.room_id,allRooms:o,avatarUrl:M.avatar_url,name:M.name,topic:M.topic,memberCount:M.num_joined_members,roomType:M.room_type,onView:M.room_type===Tl.Space?i:s,renderTopicViewer:(z,T,P)=>a.jsx(e1,{name:z,topic:T,requestClose:P})},M.room_id))}),(v.prev_batch||v.next_batch)&&a.jsxs(y,{justifyContent:"Center",gap:"200",children:[a.jsx(Ee,{onClick:C,size:"300",fill:"Soft",disabled:!v.prev_batch,children:a.jsx(x,{size:"B300",truncate:!0,children:"Previous Page"})}),a.jsx(y,{"data-spacing-node":!0,grow:"Yes"}),a.jsx(Ee,{onClick:S,size:"300",fill:"Solid",disabled:!v.next_batch,children:a.jsx(x,{size:"B300",truncate:!0,children:"Next Page"})})]})]}):a.jsxs(y,{className:ZJ,direction:"Column",justifyContent:"Center",alignItems:"Center",gap:"200",children:[a.jsx(Q,{size:"400",src:$.Info}),a.jsx(x,{size:"T300",align:"Center",children:"No communities found!"})]}))]})]})})})})})]})}function bje(){const{featuredCommunities:t}=W1(),{rooms:e,spaces:n}=t??{},r=_t(nr),o=Wr(),{navigateSpace:i,navigateRoom:s}=Mo();return a.jsxs(ur,{children:[o===en.Mobile&&a.jsx(Dr,{children:a.jsx(y,{shrink:"No",children:a.jsx(mc,{children:u=>a.jsx(Me,{onClick:u,children:a.jsx(Q,{src:$.ArrowLeft})})})})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsx(zh,{children:a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(Od,{children:a.jsx(Md,{icon:a.jsx(Q,{size:"600",src:$.Bulb}),title:"Featured by Client",subTitle:"Find and explore public rooms and spaces featured by client provider."})}),a.jsxs(y,{direction:"Column",gap:"700",children:[n&&n.length>0&&a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(x,{size:"H4",children:"Featured Spaces"}),a.jsx(Ty,{children:n.map(u=>a.jsx(aA,{roomIdOrAlias:u,children:l=>a.jsx(Iy,{roomIdOrAlias:u,allRooms:r,avatarUrl:l==null?void 0:l.avatar_url,name:l==null?void 0:l.name,topic:l==null?void 0:l.topic,memberCount:l==null?void 0:l.num_joined_members,onView:i,renderTopicViewer:(c,d,F)=>a.jsx(e1,{name:c,topic:d,requestClose:F})})},u))})]}),e&&e.length>0&&a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(x,{size:"H4",children:"Featured Rooms"}),a.jsx(Ty,{children:e.map(u=>a.jsx(aA,{roomIdOrAlias:u,children:l=>a.jsx(Iy,{roomIdOrAlias:u,allRooms:r,avatarUrl:l==null?void 0:l.avatar_url,name:l==null?void 0:l.name,topic:l==null?void 0:l.topic,memberCount:l==null?void 0:l.num_joined_members,onView:s,renderTopicViewer:(c,d,F)=>a.jsx(e1,{name:c,topic:d,requestClose:F})})},u))})]}),(n&&n.length===0&&e&&e.length===0||!n&&!e)&&a.jsxs(y,{className:ZJ,direction:"Column",justifyContent:"Center",alignItems:"Center",gap:"200",children:[a.jsx(Q,{size:"400",src:$.Info}),a.jsx(x,{size:"T300",align:"Center",children:"No rooms or spaces featured by client provider."})]})]})]})})})})})]})}const Cje=()=>!!gi({path:h7(),caseSensitive:!0,end:!1}),QJ=()=>!!gi({path:If(),caseSensitive:!0,end:!1}),Eje=()=>!!gi({path:yC(),caseSensitive:!0,end:!1});function yje(){const t=Eje(),e=_t(h3).length;return a.jsx(Qa,{variant:"Background",radii:"400",highlight:e>0,"aria-selected":t,children:a.jsx(Xl,{to:yC(),children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:a.jsx(Q,{src:$.Mail,size:"100",filled:t})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:"Invites"})}),e>0&&a.jsx(Ph,{highlight:!0,count:e})]})})})})}function xje(){g3("inbox");const t=QJ();return a.jsxs(Td,{children:[a.jsx(Id,{children:a.jsx(y,{grow:"Yes",gap:"300",children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",truncate:!0,children:"Inbox"})})})}),a.jsx(Rd,{children:a.jsx(y,{direction:"Column",gap:"300",children:a.jsxs(Jl,{children:[a.jsx(Qa,{variant:"Background",radii:"400","aria-selected":t,children:a.jsx(Xl,{to:If(),children:a.jsx(es,{children:a.jsxs(y,{as:"span",grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"400",children:a.jsx(Q,{src:$.MessageUnread,size:"100",filled:t})}),a.jsx(y,{as:"span",grow:"Yes",children:a.jsx(x,{as:"span",size:"Inherit",truncate:!0,children:"Notifications"})})]})})})}),a.jsx(yje,{})]})})})]})}const wje=(t,e)=>{const n=f.useMemo(()=>{if(!(e<0))return window.setInterval(t,e)},[t,e]);return f.useEffect(()=>()=>{window.clearInterval(n)},[n]),n},eX=(t,e)=>{const[n,r]=f.useState(()=>e(t));return f.useEffect(()=>{const o=()=>{r(e(t))};return t.on(hu.Add,o),t.on(hu.Redaction,o),t.on(hu.Remove,o),()=>{t.removeListener(hu.Add,o),t.removeListener(hu.Redaction,o),t.removeListener(hu.Remove,o)}},[t,e]),n};var kje="_1qcw1443",tX="_1qcw1440",Py="_1qcw1445",Yu="_1qcw1446",nX="_1qcw1442 _1mqalmd1 _1mqalmd0",rX="_1qcw1441 _1mqalmd1 _1mqalmd0",Sje="_1qcw1444",jje="_1qcw1447",Bje="_1qcw1448",Aje="js9ece4",Tje="js9ece3",Ije="js9ece0 _1mqalmd1 _1mqalmd0",Rje="js9ece1",Oje="js9ece2";const oX=Ie(({className:t,room:e,initialKey:n,relations:r,requestClose:o,...i},s)=>{var g;const u=ge(),l=Tt(),c=eX(r,f.useCallback(p=>[...p.getSortedAnnotationsByKey()??[]],[])),[d,F]=f.useState(()=>{if(n)return n;const p=c.find(_=>typeof _[0]=="string");return p?p[0]:""}),h=p=>wr(e,p.userId)??ln(p.userId)??p.userId,m=(p=>{var v;const _=(v=c.find(([E])=>E===p))==null?void 0:v[1];return _?Array.from(_):[]})(d),D=((g=m.find(r7))==null?void 0:g.getContent().shortcode)??kj(Sj(d))??d;return a.jsxs(y,{className:Ve(Ije,t),direction:"Row",...i,ref:s,children:[a.jsx(y,{shrink:"No",className:Rje,children:a.jsx(Mt,{visibility:"Hover",hideTrack:!0,size:"300",children:a.jsx(y,{className:Oje,direction:"Column",gap:"200",children:c.map(([p,_])=>typeof p!="string"?null:a.jsx(BG,{mx:u,reaction:p,count:_.size,"aria-selected":p===d,onClick:()=>F(p),useAuthentication:l},p))})})}),a.jsx(jn,{variant:"Surface",direction:"Vertical",size:"300"}),a.jsxs(y,{grow:"Yes",direction:"Column",children:[a.jsxs(In,{className:Tje,variant:"Surface",size:"600",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H3",truncate:!0,children:`Reacted with :${D}:`})}),a.jsx(Me,{size:"300",onClick:o,children:a.jsx(Q,{src:$.Cross})})]}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{visibility:"Hover",hideTrack:!0,size:"300",children:a.jsx(y,{className:Aje,direction:"Column",children:m.map(p=>{const _=p.getSender();if(!_)return null;const v=e.getMember(_),E=(v?h(v):ln(_))??_,b=v==null?void 0:v.getMxcAvatarUrl(),k=b?u.mxcUrlToHttp(b,100,100,"crop",void 0,!1,l):void 0;return a.jsx(tt,{style:{padding:`0 ${le.space.S200}`},radii:"400",onClick:()=>{o(),ym(_,e.roomId)},before:a.jsx(Rt,{size:"200",children:a.jsx(wa,{userId:_,src:k??void 0,alt:E,renderFallback:()=>a.jsx(Q,{size:"50",src:$.User,filled:!0})})}),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T400",truncate:!0,children:E})})},_)})})})})]})]})}),DA=Ie(({className:t,room:e,relations:n,mEventId:r,canSendReaction:o,onReactionToggle:i,...s},u)=>{const l=ge(),c=Tt(),[d,F]=f.useState(!1),h=l.getUserId(),m=eX(n,f.useCallback(g=>[...g.getSortedAnnotationsByKey()??[]],[])),D=g=>{g.stopPropagation(),g.preventDefault();const p=g.currentTarget.getAttribute("data-reaction-key");F(p||!0)};return a.jsxs(y,{className:Ve(jje,t),gap:"200",wrap:"Wrap",...s,ref:u,children:[m.map(([g,p])=>{var E;const _=Array.from(p);if(_.length===0||typeof g!="string")return null;const v=!!((E=h?_.find(pH(h)):void 0)!=null&&E.getRelation());return a.jsx(Br,{position:"Top",tooltip:a.jsx(Ao,{style:{maxWidth:Dt(200)},children:a.jsx(x,{className:Bje,size:"T300",children:a.jsx(A4e,{room:e,reaction:g,events:_})})}),children:b=>a.jsx(BG,{ref:b,"data-reaction-key":g,"aria-pressed":v,mx:l,reaction:g,count:p.size,onClick:o?()=>i(r,g):void 0,onContextMenu:D,"aria-disabled":!o,useAuthentication:c},g)},g)}),m.length>0&&a.jsx(Rn,{onContextMenu:g=>{g.stopPropagation()},open:!!d,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>F(!1),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(xs,{variant:"Surface",size:"300",children:a.jsx(oX,{room:e,initialKey:typeof d=="string"?d:void 0,relations:n,requestClose:()=>F(!1)})})})})})]})}),iX=(t,e)=>{var r;const n=(r=_d(t,tr.ElementRecentEmoji))==null?void 0:r.getContent().recent_emoji;return Array.isArray(n)?n.sort((o,i)=>i[1]-o[1]).slice(0,e).reduce((o,[i])=>{const s=C8.find(u=>u.unicode===i);return s&&o.push(s),o},[]):[]};function Mje(t,e){var i;const n=((i=_d(t,tr.ElementRecentEmoji))==null?void 0:i.getContent().recent_emoji)??[],r=n.findIndex(([s])=>s===e);let o;r<0?o=[e,1]:([o]=n.splice(r,1),o[1]+=1),n.unshift(o),t.setAccountData(tr.ElementRecentEmoji,{recent_emoji:n.slice(0,100)})}const gA=(t,e)=>{const[n,r]=f.useState(()=>iX(t,e));return f.useEffect(()=>{const o=i=>{i.getType()===tr.ElementRecentEmoji&&r(iX(t,e))};return t.on(st.AccountData,o),()=>{t.removeListener(st.AccountData,o)}},[t,e]),n},Ly=(t,e)=>{if(!e)return[];if(!e.startsWith("$"))return[];const n=t.getLiveTimeline().getEvents(),r=[];for(let o=n.length-1;o>=0&&(r.splice(r.length,0,...t.getUsersReadUpTo(n[o])),n[o].getId()!==e);o-=1);return[...new Set(r)]},aX=(t,e)=>{const[n,r]=f.useState(()=>Ly(t,e));return f.useEffect(()=>{r(Ly(t,e));const o=(s,u)=>{u.roomId===t.roomId&&r(Ly(t,e))},i=(s,u,l)=>{u.roomId!==t.roomId||!l||l.startsWith("$")||l===e&&r(Ly(t,s.getId()))};return t.on(Ke.Receipt,o),t.on(Ke.LocalEchoUpdated,i),()=>{t.removeListener(Ke.Receipt,o),t.removeListener(Ke.LocalEchoUpdated,i)}},[t,e]),n};var Pje="_54n6w92",Lje="_54n6w90 _1mqalmd1 _1mqalmd0",Nje="_54n6w91";const sX=Ie(({className:t,room:e,eventId:n,requestClose:r,...o},i)=>{const s=ge(),u=Tt(),l=aX(e,n),c=d=>wr(e,d)??ln(d)??d;return a.jsxs(y,{className:Ve(Lje,t),direction:"Column",...o,ref:i,children:[a.jsxs(In,{className:Nje,variant:"Surface",size:"600",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H3",children:"Seen by"})}),a.jsx(Me,{size:"300",onClick:r,children:a.jsx(Q,{src:$.Cross})})]}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{visibility:"Hover",hideTrack:!0,size:"300",children:a.jsx(y,{className:Pje,direction:"Column",children:l.map(d=>{var D;const F=c(d),h=(D=e.getMember(d))==null?void 0:D.getMxcAvatarUrl(),m=h?s.mxcUrlToHttp(h,100,100,"crop",void 0,!1,u):void 0;return a.jsx(tt,{style:{padding:`0 ${le.space.S200}`},radii:"400",onClick:()=>{r(),ym(d,e.roomId)},before:a.jsx(Rt,{size:"200",children:a.jsx(wa,{userId:d,src:m??void 0,alt:F,renderFallback:()=>a.jsx(Q,{size:"50",src:$.User,filled:!0})})}),children:a.jsx(x,{size:"T400",truncate:!0,children:F})},d)})})})})]})});var zje="_184qvyl0",pA="_184qvylf _1mqalmd1 _1mqalmd0",uX="_184qvyl7",Uje="_184qvyl9",Vje="_184qvylb _1mqalmd1 _1mqalmd0",qje="_184qvyla",Hje="_184qvyld _1mqalmd1 _1mqalmd0 _1bugis90",$je="_184qvylc _1mqalmd1 _1mqalmd0",Wje="_184qvyl8",Kje="_184qvyl6",Gje="_184qvyl4",Yje="_184qvyl1",Zje="_184qvyl2",Jje="_184qvyl5",Xje="_184qvyl3",lX="_184qvylg _1mqalmd1 _1mqalmd0",Qje="_184qvyle _184qvyld _1mqalmd1 _1mqalmd0 _1bugis90";const eBe=()=>f.useMemo(()=>({[ui.People]:"Smileys & People",[ui.Nature]:"Animals & Nature",[ui.Food]:"Food & Drinks",[ui.Activity]:"Activity",[ui.Travel]:"Travel & Places",[ui.Object]:"Objects",[ui.Symbol]:"Symbols",[ui.Flag]:"Flags"}),[]),tBe=()=>f.useMemo(()=>({[ui.People]:$.Smile,[ui.Nature]:$.Leaf,[ui.Food]:$.Cup,[ui.Activity]:$.Ball,[ui.Travel]:$.Photo,[ui.Object]:$.Bulb,[ui.Symbol]:$.Peace,[ui.Flag]:$.Flag}),[]);class nBe{constructor(e,n){this.roomId=e,this.stateKey=n}}var fr=(t=>(t.Emoticon="emoticon",t.Sticker="sticker",t))(fr||{});class Ny{constructor(e){this.fallbackUsage=[fr.Emoticon,fr.Sticker],this.meta=e}get name(){const e=this.meta.display_name;if(typeof e=="string")return e}get avatar(){const e=this.meta.avatar_url;if(typeof e=="string")return e}get attribution(){const{attribution:e}=this.meta;if(typeof this.meta.attribution=="string")return e}get usage(){if(!Array.isArray(this.meta.usage))return this.fallbackUsage;const e=this.meta.usage.filter(n=>n===fr.Emoticon||n===fr.Sticker);return e.length===0?this.fallbackUsage:e}get content(){return this.meta}}class a0{constructor(e,n,r){this.shortcode=e,this.url=n,this.image=r}static fromPackImage(e,n){const{url:r}=n;if(typeof r=="string")return new a0(e,r,n)}get body(){const{body:e}=this.image;return typeof e=="string"?e:void 0}get info(){return this.image.info}get usage(){const e=this.image.usage;if(!Array.isArray(e))return;const n=e.filter(r=>r===fr.Emoticon||r===fr.Sticker);return n.length>0?n:void 0}get content(){return{url:this.url,body:this.image.body,usage:this.image.usage,info:this.image.info}}}class rBe{constructor(e){this.rawImages=e}get collection(){if(this.shortcodeToImages)return this.shortcodeToImages;const e=new Map;return Object.entries(this.rawImages).forEach(([n,r])=>{const o=a0.fromPackImage(n,r);o&&e.set(n,o)}),this.shortcodeToImages=e,this.shortcodeToImages}}class n1{constructor(e,n,r){this.id=e,this.address=r,this.deleted=n.pack===void 0&&n.images===void 0,this.meta=new Ny(n.pack??{}),this.images=new rBe(n.images??{})}static fromMatrixEvent(e,n){const r=n.getRoomId(),o=n.getStateKey(),i=r&&typeof o=="string"?new nBe(r,o):void 0,s=n.getContent();return new n1(e,s,i)}getImages(e){if(e===fr.Emoticon&&this.emoticonMemo)return this.emoticonMemo;if(e===fr.Sticker&&this.stickerMemo)return this.stickerMemo;const n=Array.from(this.images.collection.values()).filter(r=>(r.usage??this.meta.usage).includes(e));return e===fr.Emoticon&&(this.emoticonMemo=n),e===fr.Sticker&&(this.stickerMemo=n),n}getAvatarUrl(e){if(this.meta.avatar)return this.meta.avatar;const n=this.getImages(e)[0];if(n)return n.url}}function ds(t,e){return!t&&!e?!0:!t||!e?!1:t.roomId===e.roomId&&t.stateKey===e.stateKey}function fA(t,e){return t.length===e.length&&t.every(n=>e.includes(n))}function oBe(t,e){return t.name===e.name&&t.avatar===e.avatar&&t.attribution===e.attribution&&fA(t.usage,e.usage)}function cX(t){return t.reduce((e,n)=>{const r=n.getId();return r&&e.push(n1.fromMatrixEvent(r,n)),e},[])}function dX(t,e){const n=so(t,Re.PoniesRoomEmotes,e);if(!n)return;const r=n.getId();if(r)return n1.fromMatrixEvent(r,n)}function zy(t){const e=bh(t,Re.PoniesRoomEmotes);return cX(e)}function _A(t){var r;const e=(r=_d(t,tr.PoniesEmoteRooms))==null?void 0:r.getContent();if(typeof e!="object")return[];const{rooms:n}=e;return typeof n!="object"?[]:Object.keys(n).flatMap(o=>{if(typeof n[o]!="object")return[];const i=t.getRoom(o);if(!i)return[];const s=n[o],u=bh(i,Re.PoniesRoomEmotes).filter(l=>{const c=l.getStateKey();return typeof c=="string"?!!s[c]:!1});return cX(u)})}function hX(t){const e=_d(t,tr.PoniesUserEmotes),n=t.getUserId();return!e||!n?void 0:n1.fromMatrixEvent(n,e)}const vA=()=>{const t=ge(),[e,n]=f.useState(()=>hX(t));return u3(t,f.useCallback(r=>{r.getType()===tr.PoniesUserEmotes&&n(hX(t))},[t])),e},FX=()=>{const t=ge(),[e,n]=f.useState(()=>_A(t));return u3(t,f.useCallback(r=>{r.getType()===tr.PoniesEmoteRooms&&n(_A(t))},[t])),Tu(t,f.useCallback(r=>{const o=r.getType(),i=r.getRoomId(),s=r.getStateKey();o===Re.PoniesRoomEmotes&&i&&typeof s=="string"&&e.find(u=>u.address&&u.address.roomId===i&&u.address.stateKey===s)&&n(_A(t))},[t,e])),e},iBe=(t,e)=>{const n=ge(),[r,o]=f.useState(()=>dX(t,e));return Tu(n,f.useCallback(i=>{i.getRoomId()===t.roomId&&i.getType()===Re.PoniesRoomEmotes&&i.getStateKey()===e&&o(dX(t,e))},[t,e])),r},aBe=t=>{const e=ge(),[n,r]=f.useState(()=>zy(t));return Tu(e,f.useCallback(o=>{o.getRoomId()===t.roomId&&o.getType()===Re.PoniesRoomEmotes&&r(zy(t))},[t])),n},mX=t=>{const e=ge(),[n,r]=f.useState(()=>t.flatMap(zy));return Tu(e,f.useCallback(o=>{t.find(i=>i.roomId===o.getRoomId())&&o.getType()===Re.PoniesRoomEmotes&&r(t.flatMap(zy))},[t])),n},DX=(t,e)=>{const n=vA(),r=FX(),o=mX(e);return f.useMemo(()=>{const i=n?[n]:[],s=new Set(r.map(u=>u.id));return i.concat(r,o.filter(u=>!s.has(u.id))).filter(u=>u.getImages(t).length>0)},[n,r,o,t])};var bA={exports:{}};(function(t,e){(function(n,r){var o="1.0.35",i="",s="?",u="function",l="undefined",c="object",d="string",F="major",h="model",m="name",D="type",g="vendor",p="version",_="architecture",v="console",E="mobile",b="tablet",k="smarttv",C="wearable",S="embedded",w=350,A="Amazon",O="Apple",j="ASUS",R="BlackBerry",M="Browser",z="Chrome",T="Edge",P="Firefox",L="Google",U="Huawei",te="LG",ae="Microsoft",Fe="Motorola",re="Opera",ce="Samsung",K="Sharp",H="Sony",q="Xiaomi",V="Zebra",X="Facebook",ee="Chromium OS",J="Mac OS",de=function(Ze,dt){var B={};for(var N in Ze)dt[N]&&dt[N].length%2===0?B[N]=dt[N].concat(Ze[N]):B[N]=Ze[N];return B},ue=function(Ze){for(var dt={},B=0;B<Ze.length;B++)dt[Ze[B].toUpperCase()]=Ze[B];return dt},De=function(Ze,dt){return typeof Ze===d?Ae(dt).indexOf(Ae(Ze))!==-1:!1},Ae=function(Ze){return Ze.toLowerCase()},ye=function(Ze){return typeof Ze===d?Ze.replace(/[^\d\.]/g,i).split(".")[0]:r},He=function(Ze,dt){if(typeof Ze===d)return Ze=Ze.replace(/^\s\s*/,i),typeof dt===l?Ze:Ze.substring(0,w)},ze=function(Ze,dt){for(var B=0,N,W,oe,ie,ne,me;B<dt.length&&!ne;){var se=dt[B],xe=dt[B+1];for(N=W=0;N<se.length&&!ne&&se[N];)if(ne=se[N++].exec(Ze),ne)for(oe=0;oe<xe.length;oe++)me=ne[++W],ie=xe[oe],typeof ie===c&&ie.length>0?ie.length===2?typeof ie[1]==u?this[ie[0]]=ie[1].call(this,me):this[ie[0]]=ie[1]:ie.length===3?typeof ie[1]===u&&!(ie[1].exec&&ie[1].test)?this[ie[0]]=me?ie[1].call(this,me,ie[2]):r:this[ie[0]]=me?me.replace(ie[1],ie[2]):r:ie.length===4&&(this[ie[0]]=me?ie[3].call(this,me.replace(ie[1],ie[2])):r):this[ie]=me||r;B+=2}},Ne=function(Ze,dt){for(var B in dt)if(typeof dt[B]===c&&dt[B].length>0){for(var N=0;N<dt[B].length;N++)if(De(dt[B][N],Ze))return B===s?r:B}else if(De(dt[B],Ze))return B===s?r:B;return Ze},Oe={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ue={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},nt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,p],[/opios[\/ ]+([\w\.]+)/i],[p,[m,re+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[m,re]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[m,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[m,"UC"+M]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[m,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[m,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+)/,"$1 Secure "+M],p],[/\bfocus\/([\w\.]+)/i],[p,[m,P+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[m,re+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[m,re+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[m,"MIUI "+M]],[/fxios\/([-\w\.]+)/i],[p,[m,P]],[/\bqihu|(qi?ho?o?|360)browser/i],[[m,"360 "+M]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1 "+M],p],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[m,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,X],p],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[m,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[m,z+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,z+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[m,"Android "+M]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[p,Ne,Oe]],[/(webkit|khtml)\/([\w\.]+)/i],[m,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[m,P+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[m,p],[/(cobalt)\/([\w\.]+)/i],[m,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[_,"amd64"]],[/(ia32(?=;))/i],[[_,Ae]],[/((?:i[346]|x)86)[;\)]/i],[[_,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[_,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[_,"armhf"]],[/windows (ce|mobile); ppc;/i],[[_,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[_,/ower/,i,Ae]],[/(sun4\w)[;\)]/i],[[_,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[_,Ae]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[g,ce],[D,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[h,[g,ce],[D,E]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[h,[g,O],[D,E]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[g,O],[D,b]],[/(macintosh);/i],[h,[g,O]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[g,K],[D,E]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[g,U],[D,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[g,U],[D,E]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[h,/_/g," "],[g,q],[D,E]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[g,q],[D,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[g,"OPPO"],[D,E]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[g,"Vivo"],[D,E]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[h,[g,"Realme"],[D,E]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[h,[g,Fe],[D,E]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[g,Fe],[D,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[g,te],[D,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[g,te],[D,E]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[g,"Lenovo"],[D,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[g,"Nokia"],[D,E]],[/(pixel c)\b/i],[h,[g,L],[D,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[g,L],[D,E]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[g,H],[D,E]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[g,H],[D,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[g,"OnePlus"],[D,E]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[g,A],[D,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[g,A],[D,E]],[/(playbook);[-\w\),; ]+(rim)/i],[h,g,[D,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[g,R],[D,E]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[g,j],[D,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[g,j],[D,E]],[/(nexus 9)/i],[h,[g,"HTC"],[D,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[h,/_/g," "],[D,E]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[g,"Acer"],[D,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[g,"Meizu"],[D,E]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,h,[D,E]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,h,[D,b]],[/(surface duo)/i],[h,[g,ae],[D,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[g,"Fairphone"],[D,E]],[/(u304aa)/i],[h,[g,"AT&T"],[D,E]],[/\bsie-(\w*)/i],[h,[g,"Siemens"],[D,E]],[/\b(rct\w+) b/i],[h,[g,"RCA"],[D,b]],[/\b(venue[\d ]{2,7}) b/i],[h,[g,"Dell"],[D,b]],[/\b(q(?:mv|ta)\w+) b/i],[h,[g,"Verizon"],[D,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[g,"Barnes & Noble"],[D,b]],[/\b(tm\d{3}\w+) b/i],[h,[g,"NuVision"],[D,b]],[/\b(k88) b/i],[h,[g,"ZTE"],[D,b]],[/\b(nx\d{3}j) b/i],[h,[g,"ZTE"],[D,E]],[/\b(gen\d{3}) b.+49h/i],[h,[g,"Swiss"],[D,E]],[/\b(zur\d{3}) b/i],[h,[g,"Swiss"],[D,b]],[/\b((zeki)?tb.*\b) b/i],[h,[g,"Zeki"],[D,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],h,[D,b]],[/\b(ns-?\w{0,9}) b/i],[h,[g,"Insignia"],[D,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[g,"NextBook"],[D,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],h,[D,E]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],h,[D,E]],[/\b(ph-1) /i],[h,[g,"Essential"],[D,E]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[g,"Envizen"],[D,b]],[/\b(trio[-\w\. ]+) b/i],[h,[g,"MachSpeed"],[D,b]],[/\btu_(1491) b/i],[h,[g,"Rotor"],[D,b]],[/(shield[\w ]+) b/i],[h,[g,"Nvidia"],[D,b]],[/(sprint) (\w+)/i],[g,h,[D,E]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[g,ae],[D,E]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[g,V],[D,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[g,V],[D,E]],[/smart-tv.+(samsung)/i],[g,[D,k]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[g,ce],[D,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,te],[D,k]],[/(apple) ?tv/i],[g,[h,O+" TV"],[D,k]],[/crkey/i],[[h,z+"cast"],[g,L],[D,k]],[/droid.+aft(\w)( bui|\))/i],[h,[g,A],[D,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[g,K],[D,k]],[/(bravia[\w ]+)( bui|\))/i],[h,[g,H],[D,k]],[/(mitv-\w{5}) bui/i],[h,[g,q],[D,k]],[/Hbbtv.*(technisat) (.*);/i],[g,h,[D,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,He],[h,He],[D,k]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[D,k]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,h,[D,v]],[/droid.+; (shield) bui/i],[h,[g,"Nvidia"],[D,v]],[/(playstation [345portablevi]+)/i],[h,[g,H],[D,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[g,ae],[D,v]],[/((pebble))app/i],[g,h,[D,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[h,[g,O],[D,C]],[/droid.+; (glass) \d/i],[h,[g,L],[D,C]],[/droid.+; (wt63?0{2,3})\)/i],[h,[g,V],[D,C]],[/(quest( 2| pro)?)/i],[h,[g,X],[D,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[D,S]],[/(aeobc)\b/i],[h,[g,A],[D,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[h,[D,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[D,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[D,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[D,E]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[m,T+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[m,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[m,[p,Ne,Ue]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,"Windows"],[p,Ne,Ue]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,J],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,m],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[m,p],[/\(bb(10);/i],[p,[m,R]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[m,P+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[m,z+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,ee],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[m,p],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,p]]},_e=function(Ze,dt){if(typeof Ze===c&&(dt=Ze,Ze=r),!(this instanceof _e))return new _e(Ze,dt).getResult();var B=typeof n!==l&&n.navigator?n.navigator:r,N=Ze||(B&&B.userAgent?B.userAgent:i),W=B&&B.userAgentData?B.userAgentData:r,oe=dt?de(nt,dt):nt,ie=B&&B.userAgent==N;return this.getBrowser=function(){var ne={};return ne[m]=r,ne[p]=r,ze.call(ne,N,oe.browser),ne[F]=ye(ne[p]),ie&&B&&B.brave&&typeof B.brave.isBrave==u&&(ne[m]="Brave"),ne},this.getCPU=function(){var ne={};return ne[_]=r,ze.call(ne,N,oe.cpu),ne},this.getDevice=function(){var ne={};return ne[g]=r,ne[h]=r,ne[D]=r,ze.call(ne,N,oe.device),ie&&!ne[D]&&W&&W.mobile&&(ne[D]=E),ie&&ne[h]=="Macintosh"&&B&&typeof B.standalone!==l&&B.maxTouchPoints&&B.maxTouchPoints>2&&(ne[h]="iPad",ne[D]=b),ne},this.getEngine=function(){var ne={};return ne[m]=r,ne[p]=r,ze.call(ne,N,oe.engine),ne},this.getOS=function(){var ne={};return ne[m]=r,ne[p]=r,ze.call(ne,N,oe.os),ie&&!ne[m]&&W&&W.platform!="Unknown"&&(ne[m]=W.platform.replace(/chrome os/i,ee).replace(/macos/i,J)),ne},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return N},this.setUA=function(ne){return N=typeof ne===d&&ne.length>w?He(ne,w):ne,this},this.setUA(N),this};_e.VERSION=o,_e.BROWSER=ue([m,p,F]),_e.CPU=ue([_]),_e.DEVICE=ue([h,g,D,v,E,k,b,C,S]),_e.ENGINE=_e.OS=ue([m,p]),t.exports&&(e=t.exports=_e),e.UAParser=_e;var xt=typeof n!==l&&(n.jQuery||n.Zepto);if(xt&&!xt.ua){var hn=new _e;xt.ua=hn.getResult(),xt.ua.get=function(){return hn.getUA()},xt.ua.set=function(Ze){hn.setUA(Ze);var dt=hn.getResult();for(var B in dt)xt.ua[B]=dt[B]}}})(typeof window=="object"?window:Qe)})(bA,bA.exports);var sBe=bA.exports;const gX=()=>sBe.UAParser(window.navigator.userAgent),CA=()=>gX().os.name==="Mac OS",Uy=()=>{const t=gX(),{os:e,device:n}=t;return n.type==="mobile"||n.type==="tablet"||e.name==="Android"||e.name==="iOS"},pX=t=>{const e=`:${t.shortcode}:`;if(t instanceof a0)return t.body?[e,t.body]:e;const n=[e,t.label];return Array.isArray(t.shortcodes)?n.concat(t.shortcodes):n},a_="recent_group",uBe="search_group";var s0=(t=>(t.Emoji="Emoji",t.Sticker="Sticker",t))(s0||{});const fX=t=>`EmojiBoardGroup-${t}`,_X=t=>{const e=t.getAttribute("data-emoji-type"),n=t.getAttribute("data-emoji-data"),r=t.getAttribute("title"),o=t.getAttribute("data-emoji-shortcode");if(e&&n&&o&&r)return{type:e,data:n,shortcode:o,label:r}},Vy=Bn(void 0);function lBe({children:t}){return a.jsx(y,{className:Yje,shrink:"No",children:a.jsx(Mt,{size:"0",children:a.jsx(y,{className:Zje,direction:"Column",alignItems:"Center",gap:"100",children:t})})})}const EA=Ie(({className:t,children:e,...n},r)=>a.jsx(y,{className:Ve(Xje,t),direction:"Column",alignItems:"Center",gap:"100",...n,ref:r,children:e}));function vX(){return a.jsx(jn,{className:Jje,size:"300",variant:"Surface"})}function cBe({children:t}){return a.jsx(y,{className:Kje,direction:"Column",shrink:"No",children:t})}function dBe({children:t}){return a.jsx(y,{grow:"Yes",children:t})}function bX({children:t}){return a.jsx(y,{shrink:"No",className:Wje,gap:"300",alignItems:"Center",children:t})}const hBe=Ie(({className:t,header:e,sidebar:n,footer:r,children:o,...i},s)=>a.jsxs(y,{display:"InlineFlex",className:Ve(zje,t),direction:"Row",...i,ref:s,children:[a.jsxs(y,{direction:"Column",grow:"Yes",children:[e,o,r]}),a.jsx(jn,{size:"300",direction:"Vertical"}),n]}));function FBe({tab:t,onTabChange:e}){return a.jsxs(y,{gap:"100",children:[a.jsx(Bt,{className:uX,as:"button",variant:"Secondary",fill:t==="Sticker"?"Solid":"None",size:"500",onClick:()=>e("Sticker"),children:a.jsx(x,{as:"span",size:"L400",children:"Sticker"})}),a.jsx(Bt,{className:uX,as:"button",variant:"Secondary",fill:t==="Emoji"?"Solid":"None",size:"500",onClick:()=>e("Emoji"),children:a.jsx(x,{as:"span",size:"L400",children:"Emoji"})})]})}function yA({active:t,label:e,id:n,onItemClick:r,children:o}){return a.jsx(Br,{delay:500,position:"Left",tooltip:a.jsx(Ao,{id:`SidebarStackItem-${n}-label`,children:a.jsx(x,{size:"T300",children:e})}),children:i=>a.jsx(Me,{"aria-pressed":t,"aria-labelledby":`SidebarStackItem-${n}-label`,ref:i,onClick:()=>r(n),size:"400",radii:"300",variant:"Surface",children:o})})}const s_=Ie(({className:t,id:e,label:n,children:r,...o},i)=>a.jsxs(y,{id:fX(e),"data-group-id":e,className:Ve(Uje,t),direction:"Column",gap:"200",...o,ref:i,children:[a.jsx(x,{id:`EmojiGroup-${e}-label`,as:"label",className:qje,size:"O400",children:n}),a.jsx("div",{"aria-labelledby":`EmojiGroup-${e}-label`,className:Vje,children:a.jsx(y,{wrap:"Wrap",justifyContent:"Center",children:r})})]}));function u_({label:t,type:e,data:n,shortcode:r,children:o}){return a.jsx(y,{as:"button",className:Hje,type:"button",alignItems:"Center",justifyContent:"Center",title:t,"aria-label":`${t} emoji`,"data-emoji-type":e,"data-emoji-data":n,"data-emoji-shortcode":r,children:o})}function CX({label:t,type:e,data:n,shortcode:r,children:o}){return a.jsx(y,{as:"button",className:Qje,type:"button",alignItems:"Center",justifyContent:"Center",title:t,"aria-label":`${t} sticker`,"data-emoji-type":e,"data-emoji-data":n,"data-emoji-shortcode":r,children:o})}function mBe({onItemClick:t}){const e=_t(Vy);return a.jsx(EA,{children:a.jsx(yA,{active:e===a_,id:a_,label:"Recent",onItemClick:()=>t(a_),children:a.jsx(Q,{src:$.RecentClock,filled:e===a_})})})}function DBe({mx:t,packs:e,usage:n,onItemClick:r,useAuthentication:o}){const i=_t(Vy);return a.jsxs(EA,{children:[n===fr.Emoticon&&a.jsx(vX,{}),e.map(s=>{var l;let u=s.meta.name;return u||(u=wu(s.id)?"Personal Pack":(l=t.getRoom(s.id))==null?void 0:l.name),a.jsx(yA,{active:i===s.id,id:s.id,label:u||"Unknown Pack",onItemClick:r,children:a.jsx("img",{style:{width:Dt(24),height:Dt(24),objectFit:"contain"},src:Xt(t,s.getAvatarUrl(n)??"",o)||s.meta.avatar,alt:u||"Unknown Pack"})},s.id)})]})}function gBe({groups:t,icons:e,labels:n,onItemClick:r}){const o=_t(Vy);return a.jsxs(EA,{className:Gje,children:[a.jsx(vX,{}),t.map(i=>a.jsx(yA,{active:o===i.id,id:i.id,label:n[i.id],onItemClick:r,children:a.jsx(Q,{src:e[i.id],filled:o===i.id})},i.id))]})}function pBe({label:t,id:e,emojis:n}){return a.jsx(s_,{id:e,label:t,children:n.map(r=>a.jsx(u_,{label:r.label,type:"emoji",data:r.unicode,shortcode:r.shortcode,children:r.unicode},r.unicode))},e)}function fBe({mx:t,tab:e,label:n,id:r,emojis:o,useAuthentication:i}){return a.jsx(s_,{id:r,label:n,children:e==="Emoji"?o.map(s=>"unicode"in s?a.jsx(u_,{label:s.label,type:"emoji",data:s.unicode,shortcode:s.shortcode,children:s.unicode},s.unicode):a.jsx(u_,{label:s.body||s.shortcode,type:"customEmoji",data:s.url,shortcode:s.shortcode,children:a.jsx("img",{loading:"lazy",className:pA,alt:s.body||s.shortcode,src:Xt(t,s.url,i)??s.url})},s.shortcode)):o.map(s=>"unicode"in s?null:a.jsx(CX,{label:s.body||s.shortcode,type:"sticker",data:s.url,shortcode:s.shortcode,children:a.jsx("img",{loading:"lazy",className:lX,alt:s.body||s.shortcode,src:Xt(t,s.url,i)??s.url})},s.shortcode))},r)}const _Be=f.memo(({mx:t,groups:e,useAuthentication:n})=>a.jsx(a.Fragment,{children:e.map(r=>a.jsx(s_,{id:r.id,label:r.meta.name||"Unknown",children:r.getImages(fr.Emoticon).sort((o,i)=>o.shortcode.localeCompare(i.shortcode)).map(o=>a.jsx(u_,{label:o.body||o.shortcode,type:"customEmoji",data:o.url,shortcode:o.shortcode,children:a.jsx("img",{loading:"lazy",className:pA,alt:o.body||o.shortcode,src:Xt(t,o.url,n)??o.url})},o.shortcode))},r.id))})),vBe=f.memo(({mx:t,groups:e,useAuthentication:n})=>a.jsxs(a.Fragment,{children:[e.length===0&&a.jsxs(y,{style:{padding:`${Dt(60)} ${le.space.S500}`},alignItems:"Center",justifyContent:"Center",direction:"Column",gap:"300",children:[a.jsx(Q,{size:"600",src:$.Sticker}),a.jsxs(y,{direction:"Inherit",children:[a.jsx(x,{align:"Center",children:"No Sticker Packs!"}),a.jsx(x,{priority:"300",align:"Center",size:"T200",children:"Add stickers from user, room or space settings."})]})]}),e.map(r=>a.jsx(s_,{id:r.id,label:r.meta.name||"Unknown",children:r.getImages(fr.Sticker).sort((o,i)=>o.shortcode.localeCompare(i.shortcode)).map(o=>a.jsx(CX,{label:o.body||o.shortcode,type:"sticker",data:o.url,shortcode:o.shortcode,children:a.jsx("img",{loading:"lazy",className:lX,alt:o.body||o.shortcode,src:Xt(t,o.url,n)??o.url})},o.shortcode))},r.id))]})),bBe=f.memo(({groups:t,labels:e})=>a.jsx(a.Fragment,{children:t.map(n=>a.jsx(s_,{id:n.id,label:e[n.id],children:n.emojis.map(r=>a.jsx(u_,{label:r.label,type:"emoji",data:r.unicode,shortcode:r.shortcode,children:r.unicode},r.unicode))},n.id))})),CBe={limit:1e3,matchOptions:{contain:!0}};function qy({tab:t="Emoji",onTabChange:e,imagePackRooms:n,requestClose:r,returnFocusOnDeactivate:o,onEmojiSelect:i,onCustomEmojiSelect:s,onStickerSelect:u,allowTextCustomEmoji:l,addToRecentEmoji:c=!0}){const d=t==="Emoji",F=t==="Sticker",h=d?fr.Emoticon:fr.Sticker,m=Di(Vy),D=ge(),g=Tt(),p=eBe(),_=tBe(),v=DX(h,n),E=gA(D,21),b=f.useRef(null),k=f.useRef(null),C=f.useRef(null),S=f.useMemo(()=>{let Fe=[];return Fe=Fe.concat(v.flatMap(re=>re.getImages(h))),d&&(Fe=Fe.concat(C8)),Fe},[d,h,v]),[w,A,O]=Qd(S,pX,CBe),j=w==null?void 0:w.items.slice(0,100),R=Z1(f.useCallback(Fe=>{const re=Fe.target.value;re?A(re):O()},[A,O]),{wait:200}),M=f.useCallback(()=>{var ce;const Fe=b.current;if(!Fe)return;const re=((ce=Array.from(Fe.querySelectorAll("div[data-group-id]")).find(K=>U5(Fe,K)))==null?void 0:ce.getAttribute("data-group-id"))??void 0;m(re)},[m]),z=M8(M,{wait:500}),T=Fe=>{var re;m(Fe),(re=document.getElementById(fX(Fe)))==null||re.scrollIntoView()},P=Fe=>{const re=Qq(Fe.nativeEvent,"button");if(!re)return;const ce=_X(re);ce&&(ce.type==="emoji"&&(i==null||i(ce.data,ce.shortcode),!Fe.altKey&&!Fe.shiftKey&&(c&&Mje(D,ce.data),r())),ce.type==="customEmoji"&&(s==null||s(ce.data,ce.shortcode),!Fe.altKey&&!Fe.shiftKey&&r()),ce.type==="sticker"&&(u==null||u(ce.data,ce.shortcode,ce.label),!Fe.altKey&&!Fe.shiftKey&&r()))},L=f.useCallback(Fe=>{const re=_X(Fe);if(!(!re||!C.current)){if(re.type==="emoji"&&k.current)k.current.textContent=re.data;else if(re.type==="customEmoji"&&k.current){const ce=document.createElement("img");ce.className=pA,ce.setAttribute("src",Xt(D,re.data,g)||re.data),ce.setAttribute("alt",re.shortcode),k.current.textContent="",k.current.appendChild(ce)}C.current.textContent=`:${re.shortcode}:`}},[D,g]),U=M8(L,{wait:200,immediate:!0}),te=Fe=>{const re=Qq(Fe.nativeEvent,"button");re&&U(re)},ae=Fe=>{const re=Fe.target;L(re)};return f.useEffect(()=>{var Fe;M(),(Fe=b.current)==null||Fe.scrollTo({top:0})},[w,d,M]),a.jsx(pt,{focusTrapOptions:{returnFocusOnDeactivate:o,initialFocus:!1,onDeactivate:r,clickOutsideDeactivates:!0,allowOutsideClick:!0,isKeyForward:Fe=>!hC()&&Mn(["arrowdown","arrowright"],Fe),isKeyBackward:Fe=>!hC()&&Mn(["arrowup","arrowleft"],Fe),escapeDeactivates:vt},children:a.jsx(hBe,{header:a.jsx(cBe,{children:a.jsxs(y,{direction:"Column",gap:"200",children:[e&&a.jsx(FBe,{tab:t,onTabChange:e}),a.jsx(En,{"data-emoji-board-search":!0,variant:"SurfaceVariant",size:"400",placeholder:l?"Search or Text Reaction ":"Search",maxLength:50,after:l&&(w!=null&&w.query)?a.jsx(We,{variant:"Primary",radii:"Pill",after:a.jsx(Q,{src:$.ArrowRight,size:"50"}),outlined:!0,onClick:()=>{var re;const Fe=(re=document.querySelector('[data-emoji-board-search="true"]'))==null?void 0:re.value.trim();Fe&&(s==null||s(Fe,Fe),r())},children:a.jsx(x,{size:"L400",children:"React"})}):a.jsx(Q,{src:$.Search,size:"50"}),onChange:R,autoFocus:!Uy()})]})}),sidebar:a.jsxs(lBe,{children:[d&&E.length>0&&a.jsx(mBe,{onItemClick:T}),v.length>0&&a.jsx(DBe,{mx:D,usage:h,packs:v,onItemClick:T,useAuthentication:g}),d&&a.jsx(gBe,{groups:jj,icons:_,labels:p,onItemClick:T})]}),footer:d?a.jsxs(bX,{children:[a.jsx(y,{display:"InlineFlex",ref:k,className:$je,alignItems:"Center",justifyContent:"Center",children:"\u{1F603}"}),a.jsx(x,{ref:C,size:"H5",truncate:!0,children:":smiley:"})]}):v.length>0&&a.jsx(bX,{children:a.jsx(x,{ref:C,size:"H5",truncate:!0,children:":smiley:"})}),children:a.jsx(dBe,{children:a.jsx(Mt,{ref:b,size:"400",onScroll:z,onKeyDown:RN,hideTrack:!0,children:a.jsxs(y,{onClick:P,onMouseMove:te,onFocus:ae,direction:"Column",gap:"200",children:[j&&a.jsx(fBe,{mx:D,tab:t,id:uBe,label:j.length?"Search Results":"No Results found",emojis:j,useAuthentication:g}),d&&E.length>0&&a.jsx(pBe,{id:a_,label:"Recent",emojis:E}),d&&a.jsx(_Be,{mx:D,groups:v,useAuthentication:g}),F&&a.jsx(vBe,{mx:D,groups:v,useAuthentication:g}),d&&a.jsx(bBe,{groups:jj,labels:p})]})})})})})}var EX=Symbol.for("immer-nothing"),yX=Symbol.for("immer-draftable"),ka=Symbol.for("immer-state");function Zs(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var aD=Object.getPrototypeOf;function u0(t){return!!t&&!!t[ka]}function l0(t){var e;return t?xX(t)||Array.isArray(t)||!!t[yX]||!!((e=t.constructor)!=null&&e[yX])||Wy(t)||Ky(t):!1}var EBe=Object.prototype.constructor.toString();function xX(t){if(!t||typeof t!="object")return!1;const e=aD(t);if(e===null)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===EBe}function Hy(t,e){$y(t)===0?Reflect.ownKeys(t).forEach(n=>{e(n,t[n],t)}):t.forEach((n,r)=>e(r,n,t))}function $y(t){const e=t[ka];return e?e.type_:Array.isArray(t)?1:Wy(t)?2:Ky(t)?3:0}function xA(t,e){return $y(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function wX(t,e,n){const r=$y(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function yBe(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function Wy(t){return t instanceof Map}function Ky(t){return t instanceof Set}function c0(t){return t.copy_||t.base_}function wA(t,e){if(Wy(t))return new Map(t);if(Ky(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const n=xX(t);if(e===!0||e==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(t);delete r[ka];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const s=o[i],u=r[s];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[s]={configurable:!0,writable:!0,enumerable:u.enumerable,value:t[s]})}return Object.create(aD(t),r)}else{const r=aD(t);if(r!==null&&n)return{...t};const o=Object.create(r);return Object.assign(o,t)}}function kA(t,e=!1){return Gy(t)||u0(t)||!l0(t)||($y(t)>1&&(t.set=t.add=t.clear=t.delete=xBe),Object.freeze(t),e&&Object.entries(t).forEach(([n,r])=>kA(r,!0))),t}function xBe(){Zs(2)}function Gy(t){return Object.isFrozen(t)}var wBe={};function d0(t){const e=wBe[t];return e||Zs(0,t),e}var l_;function kX(){return l_}function kBe(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function SX(t,e){e&&(d0("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function SA(t){jA(t),t.drafts_.forEach(SBe),t.drafts_=null}function jA(t){t===l_&&(l_=t.parent_)}function jX(t){return l_=kBe(l_,t)}function SBe(t){const e=t[ka];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function BX(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return t!==void 0&&t!==n?(n[ka].modified_&&(SA(e),Zs(4)),l0(t)&&(t=Yy(e,t),e.parent_||Zy(e,t)),e.patches_&&d0("Patches").generateReplacementPatches_(n[ka].base_,t,e.patches_,e.inversePatches_)):t=Yy(e,n,[]),SA(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==EX?t:void 0}function Yy(t,e,n){if(Gy(e))return e;const r=e[ka];if(!r)return Hy(e,(o,i)=>AX(t,r,e,o,i,n)),e;if(r.scope_!==t)return e;if(!r.modified_)return Zy(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,s=!1;r.type_===3&&(i=new Set(o),o.clear(),s=!0),Hy(i,(u,l)=>AX(t,r,o,u,l,n,s)),Zy(t,o,!1),n&&t.patches_&&d0("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function AX(t,e,n,r,o,i,s){if(u0(o)){const u=i&&e&&e.type_!==3&&!xA(e.assigned_,r)?i.concat(r):void 0,l=Yy(t,o,u);if(wX(n,r,l),u0(l))t.canAutoFreeze_=!1;else return}else s&&n.add(o);if(l0(o)&&!Gy(o)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;Yy(t,o),(!e||!e.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Zy(t,o)}}function Zy(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&kA(e,n)}function jBe(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:kX(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=BA;n&&(o=[r],i=c_);const{revoke:s,proxy:u}=Proxy.revocable(o,i);return r.draft_=u,r.revoke_=s,u}var BA={get(t,e){if(e===ka)return t;const n=c0(t);if(!xA(n,e))return BBe(t,n,e);const r=n[e];return t.finalized_||!l0(r)?r:r===AA(t.base_,e)?(IA(t),t.copy_[e]=RA(r,t)):r},has(t,e){return e in c0(t)},ownKeys(t){return Reflect.ownKeys(c0(t))},set(t,e,n){const r=TX(c0(t),e);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const o=AA(c0(t),e),i=o==null?void 0:o[ka];if(i&&i.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(yBe(n,o)&&(n!==void 0||xA(t.base_,e)))return!0;IA(t),TA(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty(t,e){return AA(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,IA(t),TA(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=c0(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty(){Zs(11)},getPrototypeOf(t){return aD(t.base_)},setPrototypeOf(){Zs(12)}},c_={};Hy(BA,(t,e)=>{c_[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),c_.deleteProperty=function(t,e){return c_.set.call(this,t,e,void 0)},c_.set=function(t,e,n){return BA.set.call(this,t[0],e,n,t[0])};function AA(t,e){const n=t[ka];return(n?c0(n):t)[e]}function BBe(t,e,n){var o;const r=TX(e,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(t.draft_):void 0}function TX(t,e){if(!(e in t))return;let n=aD(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=aD(n)}}function TA(t){t.modified_||(t.modified_=!0,t.parent_&&TA(t.parent_))}function IA(t){t.copy_||(t.copy_=wA(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var ABe=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,n,r)=>{if(typeof e=="function"&&typeof n!="function"){const i=n;n=e;const s=this;return function(u=i,...l){return s.produce(u,c=>n.call(this,c,...l))}}typeof n!="function"&&Zs(6),r!==void 0&&typeof r!="function"&&Zs(7);let o;if(l0(e)){const i=jX(this),s=RA(e,void 0);let u=!0;try{o=n(s),u=!1}finally{u?SA(i):jA(i)}return SX(i,r),BX(o,i)}else if(!e||typeof e!="object"){if(o=n(e),o===void 0&&(o=e),o===EX&&(o=void 0),this.autoFreeze_&&kA(o,!0),r){const i=[],s=[];d0("Patches").generateReplacementPatches_(e,o,i,s),r(i,s)}return o}else Zs(1,e)},this.produceWithPatches=(e,n)=>{if(typeof e=="function")return(i,...s)=>this.produceWithPatches(i,u=>e(u,...s));let r,o;return[this.produce(e,n,(i,s)=>{r=i,o=s}),r,o]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){l0(t)||Zs(8),u0(t)&&(t=TBe(t));const e=jX(this),n=RA(t,void 0);return n[ka].isManual_=!0,jA(e),n}finishDraft(t,e){const n=t&&t[ka];(!n||!n.isManual_)&&Zs(9);const{scope_:r}=n;return SX(r,e),BX(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const o=e[n];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}n>-1&&(e=e.slice(n+1));const r=d0("Patches").applyPatches_;return u0(t)?r(t,e):this.produce(t,o=>r(o,e))}};function RA(t,e){const n=Wy(t)?d0("MapSet").proxyMap_(t,e):Ky(t)?d0("MapSet").proxySet_(t,e):jBe(t,e);return(e?e.scope_:kX()).drafts_.push(n),n}function TBe(t){return u0(t)||Zs(10,t),IX(t)}function IX(t){if(!l0(t)||Gy(t))return t;const e=t[ka];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=wA(t,e.scope_.immer_.useStrictShallowCopy_)}else n=wA(t,!0);return Hy(n,(r,o)=>{wX(n,r,IX(o))}),e&&(e.finalized_=!1),n}var Sa=new ABe,OA=Sa.produce;Sa.produceWithPatches.bind(Sa),Sa.setAutoFreeze.bind(Sa),Sa.setUseStrictShallowCopy.bind(Sa),Sa.applyPatches.bind(Sa);var RX=Sa.createDraft.bind(Sa),OX=Sa.finishDraft.bind(Sa),IBe={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=pe.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},RBe={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=vn.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},OBe={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=Be.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},Jy=new WeakMap,Xy=new WeakMap,d_=new WeakMap,MX=new WeakMap,PX=new WeakMap,LX=new WeakMap,NX=new WeakMap,pe={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=pe.levels(t,e);return n?r=r.slice(1):r=r.slice(0,-1),r},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r],i=e[r];if(o!==i)break;n.push(o)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],s=e[n];return pe.equals(r,o)&&i>s},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return pe.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],s=e[n];return pe.equals(r,o)&&i<s},equals(t,e){return t.length===e.length&&t.every((n,r)=>n===e[r])},hasPrevious(t){return t[t.length-1]>0},isAfter(t,e){return pe.compare(t,e)===1},isAncestor(t,e){return t.length<e.length&&pe.compare(t,e)===0},isBefore(t,e){return pe.compare(t,e)===-1},isChild(t,e){return t.length===e.length+1&&pe.compare(t,e)===0},isCommon(t,e){return t.length<=e.length&&pe.compare(t,e)===0},isDescendant(t,e){return t.length>e.length&&pe.compare(t,e)===0},isParent(t,e){return t.length+1===e.length&&pe.compare(t,e)===0},isPath(t){return Array.isArray(t)&&(t.length===0||typeof t[0]=="number")},isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1),o=t[t.length-1],i=e[e.length-1];return o!==i&&pe.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},operationCanTransformPath(t){switch(t.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!pe.isAncestor(e,t)&&!pe.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t)return null;var r=[...t],{affinity:o="forward"}=n;if(t.length===0)return r;switch(e.type){case"insert_node":{var{path:i}=e;(pe.equals(i,r)||pe.endsBefore(i,r)||pe.isAncestor(i,r))&&(r[i.length-1]+=1);break}case"remove_node":{var{path:s}=e;if(pe.equals(s,r)||pe.isAncestor(s,r))return null;pe.endsBefore(s,r)&&(r[s.length-1]-=1);break}case"merge_node":{var{path:u,position:l}=e;pe.equals(u,r)||pe.endsBefore(u,r)?r[u.length-1]-=1:pe.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=l);break}case"split_node":{var{path:c,position:d}=e;if(pe.equals(c,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else pe.endsBefore(c,r)?r[c.length-1]+=1:pe.isAncestor(c,r)&&t[c.length]>=d&&(r[c.length-1]+=1,r[c.length]-=d);break}case"move_node":{var{path:F,newPath:h}=e;if(pe.equals(F,h))return r;if(pe.isAncestor(F,r)||pe.equals(F,r)){var m=h.slice();return pe.endsBefore(F,h)&&F.length<h.length&&(m[F.length-1]-=1),m.concat(r.slice(F.length))}else pe.isSibling(F,h)&&(pe.isAncestor(h,r)||pe.equals(h,r))?pe.endsBefore(F,r)?r[F.length-1]-=1:r[F.length-1]+=1:pe.endsBefore(h,r)||pe.equals(h,r)||pe.isAncestor(h,r)?(pe.endsBefore(F,r)&&(r[F.length-1]-=1),r[h.length-1]+=1):pe.endsBefore(F,r)&&(pe.equals(h,r)&&(r[h.length-1]+=1),r[F.length-1]-=1);break}}return r}};function h_(t){"@babel/helpers - typeof";return h_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h_(t)}function MBe(t,e){if(h_(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(h_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function PBe(t){var e=MBe(t,"string");return h_(e)==="symbol"?e:String(e)}function Ri(t,e,n){return e=PBe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zX(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function F_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zX(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zX(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var LBe=(t,e,n)=>{switch(n.type){case"insert_node":{var{path:r,node:o}=n,i=at.parent(t,r),s=r[r.length-1];if(s>i.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(i.children.splice(s,0,o),e)for(var[u,l]of Be.points(e))e[l]=vn.transform(u,n);break}case"insert_text":{var{path:c,offset:d,text:F}=n;if(F.length===0)break;var h=at.leaf(t,c),m=h.text.slice(0,d),D=h.text.slice(d);if(h.text=m+F+D,e)for(var[g,p]of Be.points(e))e[p]=vn.transform(g,n);break}case"merge_node":{var{path:_}=n,v=at.get(t,_),E=pe.previous(_),b=at.get(t,E),k=at.parent(t,_),C=_[_.length-1];if(Ct.isText(v)&&Ct.isText(b))b.text+=v.text;else if(!Ct.isText(v)&&!Ct.isText(b))b.children.push(...v.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(_,"] to nodes of different interfaces: ").concat(Ko.stringify(v)," ").concat(Ko.stringify(b)));if(k.children.splice(C,1),e)for(var[S,w]of Be.points(e))e[w]=vn.transform(S,n);break}case"move_node":{var{path:A,newPath:O}=n;if(pe.isAncestor(A,O))throw new Error("Cannot move a path [".concat(A,"] to new path [").concat(O,"] because the destination is inside itself."));var j=at.get(t,A),R=at.parent(t,A),M=A[A.length-1];R.children.splice(M,1);var z=pe.transform(A,n),T=at.get(t,pe.parent(z)),P=z[z.length-1];if(T.children.splice(P,0,j),e)for(var[L,U]of Be.points(e))e[U]=vn.transform(L,n);break}case"remove_node":{var{path:te}=n,ae=te[te.length-1],Fe=at.parent(t,te);if(Fe.children.splice(ae,1),e)for(var[re,ce]of Be.points(e)){var K=vn.transform(re,n);if(e!=null&&K!=null)e[ce]=K;else{var H=void 0,q=void 0;for(var[V,X]of at.texts(t))if(pe.compare(X,te)===-1)H=[V,X];else{q=[V,X];break}var ee=!1;H&&q&&(pe.equals(q[1],te)?ee=!pe.hasPrevious(q[1]):ee=pe.common(H[1],te).length<pe.common(q[1],te).length),H&&!ee?(re.path=H[1],re.offset=H[0].text.length):q?(re.path=q[1],re.offset=0):e=null}}break}case"remove_text":{var{path:J,offset:de,text:ue}=n;if(ue.length===0)break;var De=at.leaf(t,J),Ae=De.text.slice(0,de),ye=De.text.slice(de+ue.length);if(De.text=Ae+ye,e)for(var[He,ze]of Be.points(e))e[ze]=vn.transform(He,n);break}case"set_node":{var{path:Ne,properties:Oe,newProperties:Ue}=n;if(Ne.length===0)throw new Error("Cannot set properties on the root node!");var nt=at.get(t,Ne);for(var _e in Ue){if(_e==="children"||_e==="text")throw new Error('Cannot set the "'.concat(_e,'" property of nodes!'));var xt=Ue[_e];xt==null?delete nt[_e]:nt[_e]=xt}for(var hn in Oe)Ue.hasOwnProperty(hn)||delete nt[hn];break}case"set_selection":{var{newProperties:Ze}=n;if(Ze==null)e=Ze;else{if(e==null){if(!Be.isRange(Ze))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Ko.stringify(Ze)," when there is no current selection."));e=F_({},Ze)}for(var dt in Ze){var B=Ze[dt];if(B==null){if(dt==="anchor"||dt==="focus")throw new Error('Cannot remove the "'.concat(dt,'" selection property'));delete e[dt]}else e[dt]=B}}break}case"split_node":{var{path:N,position:W,properties:oe}=n;if(N.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(N,"] because the root node cannot be split."));var ie=at.get(t,N),ne=at.parent(t,N),me=N[N.length-1],se;if(Ct.isText(ie)){var xe=ie.text.slice(0,W),ke=ie.text.slice(W);ie.text=xe,se=F_(F_({},oe),{},{text:ke})}else{var qe=ie.children.slice(0,W),Ye=ie.children.slice(W);ie.children=qe,se=F_(F_({},oe),{},{children:Ye})}if(ne.children.splice(me+1,0,se),e)for(var[Fn,wn]of Be.points(e))e[wn]=vn.transform(Fn,n);break}}return e},NBe={transform(t,e){t.children=RX(t.children);var n=t.selection&&RX(t.selection);try{n=LBe(t,n,e)}finally{t.children=OX(t.children),n?t.selection=u0(n)?OX(n):n:t.selection=null}}},zBe={insertNodes(t,e,n){t.insertNodes(e,n)},liftNodes(t,e){t.liftNodes(e)},mergeNodes(t,e){t.mergeNodes(e)},moveNodes(t,e){t.moveNodes(e)},removeNodes(t,e){t.removeNodes(e)},setNodes(t,e,n){t.setNodes(e,n)},splitNodes(t,e){t.splitNodes(e)},unsetNodes(t,e,n){t.unsetNodes(e,n)},unwrapNodes(t,e){t.unwrapNodes(e)},wrapNodes(t,e,n){t.wrapNodes(e,n)}},UBe={collapse(t,e){t.collapse(e)},deselect(t){t.deselect()},move(t,e){t.move(e)},select(t,e){t.select(e)},setPoint(t,e,n){t.setPoint(e,n)},setSelection(t,e){t.setSelection(e)}},UX=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(Wo(r)&&Wo(o)){if(!UX(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var s in e)if(t[s]===void 0&&e[s]!==void 0)return!1;return!0};function VBe(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function Dc(t,e){if(t==null)return{};var n=VBe(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var qBe=["anchor","focus"];function VX(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function HBe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?VX(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):VX(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Be={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return Be.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=Be.edges(t);return e},equals(t,e){return vn.equals(t.anchor,e.anchor)&&vn.equals(t.focus,e.focus)},surrounds(t,e){var n=Be.intersection(t,e);return n?Be.equals(n,e):!1},includes(t,e){if(Be.isRange(e)){if(Be.includes(t,e.anchor)||Be.includes(t,e.focus))return!0;var[n,r]=Be.edges(t),[o,i]=Be.edges(e);return vn.isBefore(n,o)&&vn.isAfter(r,i)}var[s,u]=Be.edges(t),l=!1,c=!1;return vn.isPoint(e)?(l=vn.compare(e,s)>=0,c=vn.compare(e,u)<=0):(l=pe.compare(e,s.path)>=0,c=pe.compare(e,u.path)<=0),l&&c},intersection(t,e){var n=Dc(t,qBe),[r,o]=Be.edges(t),[i,s]=Be.edges(e),u=vn.isBefore(r,i)?i:r,l=vn.isBefore(o,s)?o:s;return vn.isBefore(l,u)?null:HBe({anchor:u,focus:l},n)},isBackward(t){var{anchor:e,focus:n}=t;return vn.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return vn.equals(e,n)},isExpanded(t){return!Be.isCollapsed(t)},isForward(t){return!Be.isBackward(t)},isRange(t){return Wo(t)&&vn.isPoint(t.anchor)&&vn.isPoint(t.focus)},*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=Be.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return OA(t,r=>{if(r===null)return null;var{affinity:o="inward"}=n,i,s;if(o==="inward"){var u=Be.isCollapsed(r);Be.isForward(r)?(i="forward",s=u?i:"backward"):(i="backward",s=u?i:"forward")}else o==="outward"?Be.isForward(r)?(i="backward",s="forward"):(i="forward",s="backward"):(i=o,s=o);var l=vn.transform(r.anchor,e,{affinity:i}),c=vn.transform(r.focus,e,{affinity:s});if(!l||!c)return null;r.anchor=l,r.focus=c})}},qX=t=>Wo(t)&&at.isNodeList(t.children)&&!G.isEditor(t),bt={isAncestor(t){return Wo(t)&&at.isNodeList(t.children)},isElement:qX,isElementList(t){return Array.isArray(t)&&t.every(e=>bt.isElement(e))},isElementProps(t){return t.children!==void 0},isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return qX(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},$Be=["children"],WBe=["text"],HX=new WeakMap,at={ancestor(t,e){var n=at.get(t,e);if(Ct.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(Ko.stringify(n)));return n},ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of pe.ancestors(e,n)){var o=at.ancestor(t,r),i=[o,r];yield i}}()},child(t,e){if(Ct.isText(t))throw new Error("Cannot get the child of a text node: ".concat(Ko.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(Ko.stringify(t)));return n},children(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,o=at.ancestor(t,e),{children:i}=o,s=r?i.length-1:0;r?s>=0:s<i.length;){var u=at.child(o,s),l=e.concat(s);yield[u,l],s=r?s-1:s+1}}()},common(t,e,n){var r=pe.common(e,n),o=at.get(t,r);return[o,r]},descendant(t,e){var n=at.get(t,e);if(G.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(Ko.stringify(n)));return n},descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of at.nodes(t,e))r.length!==0&&(yield[n,r])}()},elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of at.nodes(t,e))bt.isElement(n)&&(yield[n,r])}()},extractProps(t){if(bt.isAncestor(t)){var e=Dc(t,$Be);return e}else{var e=Dc(t,WBe);return e}},first(t,e){for(var n=e.slice(),r=at.get(t,n);r&&!(Ct.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(Ct.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Ko.stringify(t)));var n=OA({children:t.children},r=>{var[o,i]=Be.edges(e),s=at.nodes(r,{reverse:!0,pass:h=>{var[,m]=h;return!Be.includes(e,m)}});for(var[,u]of s){if(!Be.includes(e,u)){var l=at.parent(r,u),c=u[u.length-1];l.children.splice(c,1)}if(pe.equals(u,i.path)){var d=at.leaf(r,u);d.text=d.text.slice(0,i.offset)}if(pe.equals(u,o.path)){var F=at.leaf(r,u);F.text=F.text.slice(o.offset)}}G.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){var n=at.getIf(t,e);if(n===void 0)throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(Ko.stringify(t)));return n},getIf(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(Ct.isText(n)||!n.children[o])return;n=n.children[o]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(Ct.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(t){return Ct.isText(t)||bt.isElement(t)||G.isEditor(t)},isNodeList(t){if(!Array.isArray(t))return!1;var e=HX.get(t);if(e!==void 0)return e;var n=t.every(r=>at.isNode(r));return HX.set(t,n),n},last(t,e){for(var n=e.slice(),r=at.get(t,n);r&&!(Ct.isText(r)||r.children.length===0);){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=at.get(t,e);if(!Ct.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(Ko.stringify(n)));return n},levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of pe.levels(e,n)){var o=at.get(t,r);yield[o,r]}}()},matches(t,e){return bt.isElement(t)&&bt.isElementProps(e)&&bt.matches(t,e)||Ct.isText(t)&&Ct.isTextProps(e)&&Ct.matches(t,e)},nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=e,{from:o=[],to:i}=e,s=new Set,u=[],l=t;!(i&&(r?pe.isBefore(u,i):pe.isAfter(u,i)));){if(s.has(l)||(yield[l,u]),!s.has(l)&&!Ct.isText(l)&&l.children.length!==0&&(n==null||n([l,u])===!1)){s.add(l);var c=r?l.children.length-1:0;pe.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),l=at.get(t,u);continue}if(u.length===0)break;if(!r){var d=pe.next(u);if(at.has(t,d)){u=d,l=at.get(t,u);continue}}if(r&&u[u.length-1]!==0){var F=pe.previous(u);u=F,l=at.get(t,u);continue}u=pe.parent(u),l=at.get(t,u),s.add(l)}}()},parent(t,e){var n=pe.parent(e),r=at.get(t,n);if(Ct.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string(t){return Ct.isText(t)?t.text:t.children.map(at.string).join("")},texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of at.nodes(t,e))Ct.isText(n)&&(yield[n,r])}()}};function $X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Pr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$X(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$X(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var r1={isNodeOperation(t){return r1.isOperation(t)&&t.type.endsWith("_node")},isOperation(t){if(!Wo(t))return!1;switch(t.type){case"insert_node":return pe.isPath(t.path)&&at.isNode(t.node);case"insert_text":return typeof t.offset=="number"&&typeof t.text=="string"&&pe.isPath(t.path);case"merge_node":return typeof t.position=="number"&&pe.isPath(t.path)&&Wo(t.properties);case"move_node":return pe.isPath(t.path)&&pe.isPath(t.newPath);case"remove_node":return pe.isPath(t.path)&&at.isNode(t.node);case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&pe.isPath(t.path);case"set_node":return pe.isPath(t.path)&&Wo(t.properties)&&Wo(t.newProperties);case"set_selection":return t.properties===null&&Be.isRange(t.newProperties)||t.newProperties===null&&Be.isRange(t.properties)||Wo(t.properties)&&Wo(t.newProperties);case"split_node":return pe.isPath(t.path)&&typeof t.position=="number"&&Wo(t.properties);default:return!1}},isOperationList(t){return Array.isArray(t)&&t.every(e=>r1.isOperation(e))},isSelectionOperation(t){return r1.isOperation(t)&&t.type.endsWith("_selection")},isTextOperation(t){return r1.isOperation(t)&&t.type.endsWith("_text")},inverse(t){switch(t.type){case"insert_node":return Pr(Pr({},t),{},{type:"remove_node"});case"insert_text":return Pr(Pr({},t),{},{type:"remove_text"});case"merge_node":return Pr(Pr({},t),{},{type:"split_node",path:pe.previous(t.path)});case"move_node":{var{newPath:e,path:n}=t;if(pe.equals(e,n))return t;if(pe.isSibling(n,e))return Pr(Pr({},t),{},{path:e,newPath:n});var r=pe.transform(n,t),o=pe.transform(pe.next(n),t);return Pr(Pr({},t),{},{path:r,newPath:o})}case"remove_node":return Pr(Pr({},t),{},{type:"insert_node"});case"remove_text":return Pr(Pr({},t),{},{type:"insert_text"});case"set_node":{var{properties:i,newProperties:s}=t;return Pr(Pr({},t),{},{properties:s,newProperties:i})}case"set_selection":{var{properties:u,newProperties:l}=t;return u==null?Pr(Pr({},t),{},{properties:l,newProperties:null}):l==null?Pr(Pr({},t),{},{properties:null,newProperties:u}):Pr(Pr({},t),{},{properties:l,newProperties:u})}case"split_node":return Pr(Pr({},t),{},{type:"merge_node",path:pe.next(t.path)})}}},WX=new WeakMap,KBe=t=>{var e=WX.get(t);if(e!==void 0)return e;if(!Wo(t))return!1;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertSoftBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isElementReadOnly=="function"&&typeof t.isInline=="function"&&typeof t.isSelectable=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&typeof t.getDirtyPaths=="function"&&(t.marks===null||Wo(t.marks))&&(t.selection===null||Be.isRange(t.selection))&&at.isNodeList(t.children)&&r1.isOperationList(t.operations);return WX.set(t,n),n},G={above(t,e){return t.above(e)},addMark(t,e,n){t.addMark(e,n)},after(t,e,n){return t.after(e,n)},before(t,e,n){return t.before(e,n)},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t,e){t.deleteFragment(e)},edges(t,e){return t.edges(e)},elementReadOnly(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.elementReadOnly(e)},end(t,e){return t.end(e)},first(t,e){return t.first(e)},fragment(t,e){return t.fragment(e)},hasBlocks(t,e){return t.hasBlocks(e)},hasInlines(t,e){return t.hasInlines(e)},hasPath(t,e){return t.hasPath(e)},hasTexts(t,e){return t.hasTexts(e)},insertBreak(t){t.insertBreak()},insertFragment(t,e,n){t.insertFragment(e,n)},insertNode(t,e){t.insertNode(e)},insertSoftBreak(t){t.insertSoftBreak()},insertText(t,e){t.insertText(e)},isBlock(t,e){return t.isBlock(e)},isEdge(t,e,n){return t.isEdge(e,n)},isEditor(t){return KBe(t)},isElementReadOnly(t,e){return t.isElementReadOnly(e)},isEmpty(t,e){return t.isEmpty(e)},isEnd(t,e,n){return t.isEnd(e,n)},isInline(t,e){return t.isInline(e)},isNormalizing(t){return t.isNormalizing()},isSelectable(t,e){return t.isSelectable(e)},isStart(t,e,n){return t.isStart(e,n)},isVoid(t,e){return t.isVoid(e)},last(t,e){return t.last(e)},leaf(t,e,n){return t.leaf(e,n)},levels(t,e){return t.levels(e)},marks(t){return t.getMarks()},next(t,e){return t.next(e)},node(t,e,n){return t.node(e,n)},nodes(t,e){return t.nodes(e)},normalize(t,e){t.normalize(e)},parent(t,e,n){return t.parent(e,n)},path(t,e,n){return t.path(e,n)},pathRef(t,e,n){return t.pathRef(e,n)},pathRefs(t){return t.pathRefs()},point(t,e,n){return t.point(e,n)},pointRef(t,e,n){return t.pointRef(e,n)},pointRefs(t){return t.pointRefs()},positions(t,e){return t.positions(e)},previous(t,e){return t.previous(e)},range(t,e,n){return t.range(e,n)},rangeRef(t,e,n){return t.rangeRef(e,n)},rangeRefs(t){return t.rangeRefs()},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){t.setNormalizing(e)},start(t,e){return t.start(e)},string(t,e,n){return t.string(e,n)},unhangRange(t,e,n){return t.unhangRange(e,n)},void(t,e){return t.void(e)},withoutNormalizing(t,e){t.withoutNormalizing(e)},shouldMergeNodesRemovePrevNode:(t,e,n)=>t.shouldMergeNodesRemovePrevNode(e,n)},GBe={isSpan(t){return Array.isArray(t)&&t.length===2&&t.every(pe.isPath)}};function KX(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function GX(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?KX(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):KX(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var vn={compare(t,e){var n=pe.compare(t.path,e.path);return n===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter(t,e){return vn.compare(t,e)===1},isBefore(t,e){return vn.compare(t,e)===-1},equals(t,e){return t.offset===e.offset&&pe.equals(t.path,e.path)},isPoint(t){return Wo(t)&&typeof t.offset=="number"&&pe.isPath(t.path)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return OA(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:s}=r;switch(e.type){case"insert_node":case"move_node":{r.path=pe.transform(i,e,n);break}case"insert_text":{pe.equals(e.path,i)&&(e.offset<s||e.offset===s&&o==="forward")&&(r.offset+=e.text.length);break}case"merge_node":{pe.equals(e.path,i)&&(r.offset+=e.position),r.path=pe.transform(i,e,n);break}case"remove_text":{pe.equals(e.path,i)&&e.offset<=s&&(r.offset-=Math.min(s-e.offset,e.text.length));break}case"remove_node":{if(pe.equals(e.path,i)||pe.isAncestor(e.path,i))return null;r.path=pe.transform(i,e,n);break}case"split_node":{if(pe.equals(e.path,i)){if(e.position===s&&o==null)return null;(e.position<s||e.position===s&&o==="forward")&&(r.offset-=e.position,r.path=pe.transform(i,e,GX(GX({},n),{},{affinity:"forward"})))}else r.path=pe.transform(i,e,n);break}}})}},YX=void 0,Ko={setScrubber(t){YX=t},stringify(t){return JSON.stringify(t,YX)}},YBe=["text"],ZBe=["anchor","focus","merge"];function ZX(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function gc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ZX(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ZX(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ct={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){var s=Dc(i,YBe);return s}return UX(r?o(t):t,r?o(e):e)},isText(t){return Wo(t)&&typeof t.text=="string"},isTextList(t){return Array.isArray(t)&&t.every(e=>Ct.isText(e))},isTextProps(t){return t.text!==void 0},matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[gc({},t)];for(var r of e){var{anchor:o,focus:i,merge:s}=r,u=Dc(r,ZBe),[l,c]=Be.edges(r),d=[],F=0,h=l.offset,m=c.offset,D=s??Object.assign;for(var g of n){var{length:p}=g.text,_=F;if(F+=p,h<=_&&F<=m){D(g,u),d.push(g);continue}if(h!==m&&(h===F||m===_)||h>F||m<_||m===_&&_!==0){d.push(g);continue}var v=g,E=void 0,b=void 0;if(m<F){var k=m-_;b=gc(gc({},v),{},{text:v.text.slice(k)}),v=gc(gc({},v),{},{text:v.text.slice(0,k)})}if(h>_){var C=h-_;E=gc(gc({},v),{},{text:v.text.slice(0,C)}),v=gc(gc({},v),{},{text:v.text.slice(C)})}D(v,u),E&&d.push(E),d.push(v),b&&d.push(b)}n=d}return n}},MA=t=>t.selection?t.selection:t.children.length>0?G.end(t,[]):[0],sD=(t,e)=>{var[n]=G.node(t,e);return r=>r===n},PA=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=!e,r=e?nAe(t):t,o=nn.None,i=nn.None,s=0,u=null,l=null;for(var c of r){var d=c.codePointAt(0);if(!d)break;var F=mAe(c,d);if([o,i]=n?[i,F]:[F,o],uD(o,nn.ZWJ)&&uD(i,nn.ExtPict)&&(n?u=JX(t.substring(0,s)):u=JX(t.substring(0,t.length-s)),!u)||uD(o,nn.RI)&&uD(i,nn.RI)&&(l!==null?l=!l:n?l=!0:l=_Ae(t.substring(0,t.length-s)),!l)||o!==nn.None&&i!==nn.None&&gAe(o,i))break;s+=c.length}return s||1},JBe=/\s/,XBe=/[\u002B\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]/,QBe=/['\u2018\u2019]/,eAe=function(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=0,r=!1;t.length>0;){var o=PA(t,e),[i,s]=LA(t,o,e);if(tAe(i,s,e))r=!0,n+=o;else if(!r)n+=o;else break;t=s}return n},LA=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},tAe=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(JBe.test(e))return!1;if(QBe.test(e)){var o=PA(n,r),[i,s]=LA(n,o,r);if(t(i,s,r))return!0}return!XBe.test(e)},nAe=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(oAe(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(rAe(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},rAe=t=>t>=55296&&t<=56319,oAe=t=>t>=56320&&t<=57343,nn;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(nn||(nn={}));var iAe=/^(?:[\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\u0898-\u089F\u08CA-\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\u0C3C\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-\u0ECE\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\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\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-\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\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\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\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\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\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,aAe=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,sAe=/^(?:[\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])$/,uAe=/^[\u1100-\u115F\uA960-\uA97C]$/,lAe=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,cAe=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,dAe=/^[\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]$/,hAe=/^[\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]$/,FAe=/^(?:[\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])$/,mAe=(t,e)=>{var n=nn.Any;return t.search(iAe)!==-1&&(n|=nn.Extend),e===8205&&(n|=nn.ZWJ),e>=127462&&e<=127487&&(n|=nn.RI),t.search(aAe)!==-1&&(n|=nn.Prepend),t.search(sAe)!==-1&&(n|=nn.SpacingMark),t.search(uAe)!==-1&&(n|=nn.L),t.search(lAe)!==-1&&(n|=nn.V),t.search(cAe)!==-1&&(n|=nn.T),t.search(dAe)!==-1&&(n|=nn.LV),t.search(hAe)!==-1&&(n|=nn.LVT),t.search(FAe)!==-1&&(n|=nn.ExtPict),n};function uD(t,e){return(t&e)!==0}var DAe=[[nn.L,nn.L|nn.V|nn.LV|nn.LVT],[nn.LV|nn.V,nn.V|nn.T],[nn.LVT|nn.T,nn.T],[nn.Any,nn.Extend|nn.ZWJ],[nn.Any,nn.SpacingMark],[nn.Prepend,nn.Any],[nn.ZWJ,nn.ExtPict],[nn.RI,nn.RI]];function gAe(t,e){return DAe.findIndex(n=>uD(t,n[0])&&uD(e,n[1]))===-1}var pAe=/(?:[\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\u0898-\u089F\u08CA-\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\u0C3C\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-\u0ECE\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\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\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-\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\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\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\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\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\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,JX=t=>t.search(pAe)!==-1,fAe=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,_Ae=t=>{var e=t.match(fAe);if(e===null)return!1;var n=e[0].length/2;return n%2===1},vAe={delete(t,e){t.delete(e)},insertFragment(t,e,n){t.insertFragment(e,n)},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};G.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=MA(t)}=n;if(pe.isPath(o)&&(o=G.range(t,o)),Be.isRange(o))if(Be.isCollapsed(o))o=o.anchor;else{var i=Be.end(o);if(!r&&G.void(t,{at:i}))return;var s=Be.start(o),u=G.pointRef(t,s),l=G.pointRef(t,i);Pe.delete(t,{at:o,voids:r});var c=u.unref(),d=l.unref();o=c||d,Pe.setSelection(t,{anchor:o,focus:o})}if(!(!r&&G.void(t,{at:o})||G.elementReadOnly(t,{at:o}))){var{path:F,offset:h}=o;e.length>0&&t.apply({type:"insert_text",path:F,offset:h,text:e})}})}};function XX(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Qy(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?XX(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):XX(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Pe=Qy(Qy(Qy(Qy({},NBe),zBe),UBe),vAe),e4=new WeakMap,bAe=t=>e4.get(t)||!1,CAe=(t,e,n)=>{var r=e4.get(t)||!1;e4.set(t,!0);try{e(),n()}finally{e4.set(t,r)}};function QX(t,e,n){var r=Jy.get(t)||[],o=Xy.get(t)||new Set,i,s,u=F=>{if(F){var h=F.join(",");s.has(h)||(s.add(h),i.push(F))}};if(n){i=[],s=new Set;for(var l of r){var c=n(l);u(c)}}else i=r,s=o;for(var d of e)u(d);Jy.set(t,i),Xy.set(t,s)}var EAe=(t,e)=>{for(var n of G.pathRefs(t))IBe.transform(n,e);for(var r of G.pointRefs(t))RBe.transform(r,e);for(var o of G.rangeRefs(t))OBe.transform(o,e);if(!bAe(t)){var i=pe.operationCanTransformPath(e)?s=>pe.transform(s,e):void 0;QX(t,t.getDirtyPaths(e),i)}Pe.transform(t,e),t.operations.push(e),G.normalize(t,{operation:e}),e.type==="set_selection"&&(t.marks=null),d_.get(t)||(d_.set(t,!0),Promise.resolve().then(()=>{d_.set(t,!1),t.onChange({operation:e}),t.operations=[]}))},yAe=(t,e)=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=e;return pe.levels(n)}case"insert_node":{var{node:r,path:o}=e,i=pe.levels(o),s=Ct.isText(r)?[]:Array.from(at.nodes(r),O=>{var[,j]=O;return o.concat(j)});return[...i,...s]}case"merge_node":{var{path:u}=e,l=pe.ancestors(u),c=pe.previous(u);return[...l,c]}case"move_node":{var{path:d,newPath:F}=e;if(pe.equals(d,F))return[];var h=[],m=[];for(var D of pe.ancestors(d)){var g=pe.transform(D,e);h.push(g)}for(var p of pe.ancestors(F)){var _=pe.transform(p,e);m.push(_)}var v=m[m.length-1],E=F[F.length-1],b=v.concat(E);return[...h,...m,b]}case"remove_node":{var{path:k}=e,C=pe.ancestors(k);return[...C]}case"split_node":{var{path:S}=e,w=pe.levels(S),A=pe.next(S);return[...w,A]}default:return[]}},xAe=t=>{var{selection:e}=t;return e?at.fragment(t,e):[]},wAe=(t,e)=>{var[n,r]=e;if(!Ct.isText(n)){if(bt.isElement(n)&&n.children.length===0){var o={text:""};Pe.insertNodes(t,o,{at:r.concat(0),voids:!0});return}for(var i=G.isEditor(n)?!1:bt.isElement(n)&&(t.isInline(n)||n.children.length===0||Ct.isText(n.children[0])||t.isInline(n.children[0])),s=0,u=0;u<n.children.length;u++,s++){var l=at.get(t,r);if(!Ct.isText(l)){var c=l.children[s],d=l.children[s-1],F=u===n.children.length-1,h=Ct.isText(c)||bt.isElement(c)&&t.isInline(c);if(h!==i)h?Pe.removeNodes(t,{at:r.concat(s),voids:!0}):Pe.unwrapNodes(t,{at:r.concat(s),voids:!0}),s--;else if(bt.isElement(c)){if(t.isInline(c)){if(d==null||!Ct.isText(d)){var m={text:""};Pe.insertNodes(t,m,{at:r.concat(s),voids:!0}),s++}else if(F){var D={text:""};Pe.insertNodes(t,D,{at:r.concat(s+1),voids:!0}),s++}}}else{if(!Ct.isText(c)&&!("children"in c)){var g=c;g.children=[]}d!=null&&Ct.isText(d)&&(Ct.equals(c,d,{loose:!0})?(Pe.mergeNodes(t,{at:r.concat(s),voids:!0}),s--):d.text===""?(Pe.removeNodes(t,{at:r.concat(s-1),voids:!0}),s--):c.text===""&&(Pe.removeNodes(t,{at:r.concat(s),voids:!0}),s--))}}}}},kAe=(t,e)=>{var{iteration:n,initialDirtyPathsLength:r}=e,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},SAe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var s=G.path(t,o),u=r==="lowest";for(var[l,c]of G.levels(t,{at:s,voids:n,match:i,reverse:u}))if(!Ct.isText(l)){if(Be.isRange(o)){if(pe.isAncestor(c,o.anchor.path)&&pe.isAncestor(c,o.focus.path))return[l,c]}else if(!pe.equals(s,c))return[l,c]}}};function eQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function tQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eQ(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var jAe=(t,e,n)=>{var{selection:r}=t;if(r){var o=(F,h)=>{if(!Ct.isText(F))return!1;var[m,D]=G.parent(t,h);return!t.isVoid(m)||t.markableVoid(m)},i=Be.isExpanded(r),s=!1;if(!i){var[u,l]=G.node(t,r);if(u&&o(u,l)){var[c]=G.parent(t,l);s=c&&t.markableVoid(c)}}if(i||s)Pe.setNodes(t,{[e]:n},{match:o,split:!0,voids:!0});else{var d=tQ(tQ({},G.marks(t)||{}),{},{[e]:n});t.marks=d,d_.get(t)||t.onChange()}}};function nQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function rQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nQ(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var BAe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=G.point(t,e,{edge:"end"}),o=G.end(t,[]),i={anchor:r,focus:o},{distance:s=1}=n,u=0,l;for(var c of G.positions(t,rQ(rQ({},n),{},{at:i}))){if(u>s)break;u!==0&&(l=c),u++}return l};function oQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function iQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oQ(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var AAe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=G.start(t,[]),o=G.point(t,e,{edge:"start"}),i={anchor:r,focus:o},{distance:s=1}=n,u=0,l;for(var c of G.positions(t,iQ(iQ({},n),{},{at:i,reverse:!0}))){if(u>s)break;u!==0&&(l=c),u++}return l},TAe=(t,e)=>{var{selection:n}=t;n&&Be.isCollapsed(n)&&Pe.delete(t,{unit:e,reverse:!0})},IAe=(t,e)=>{var{selection:n}=t;n&&Be.isCollapsed(n)&&Pe.delete(t,{unit:e})},RAe=function(t){var{direction:e="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t;n&&Be.isExpanded(n)&&Pe.delete(t,{reverse:e==="backward"})},OAe=(t,e)=>[G.start(t,e),G.end(t,e)];function aQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function sQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?aQ(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var MAe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return G.above(t,sQ(sQ({},e),{},{match:n=>bt.isElement(n)&&G.isElementReadOnly(t,n)}))},PAe=(t,e)=>G.point(t,e,{edge:"end"}),LAe=(t,e)=>{var n=G.path(t,e,{edge:"start"});return G.node(t,n)},NAe=(t,e)=>{var n=G.range(t,e);return at.fragment(t,n)};function uQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function lQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uQ(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var zAe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return G.above(t,lQ(lQ({},e),{},{match:n=>bt.isElement(n)&&G.isVoid(t,n)}))},UAe=(t,e)=>e.children.some(n=>bt.isElement(n)&&G.isBlock(t,n)),VAe=(t,e)=>e.children.some(n=>Ct.isText(n)||G.isInline(t,n)),qAe=(t,e)=>at.has(t,e),HAe=(t,e)=>e.children.every(n=>Ct.isText(n)),$Ae=t=>{Pe.splitNodes(t,{always:!0})},WAe=(t,e,n)=>{Pe.insertNodes(t,e,n)},KAe=t=>{Pe.splitNodes(t,{always:!0})};function cQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function GAe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cQ(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var YAe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r,marks:o}=t;if(r){if(o){var i=GAe({text:e},o);Pe.insertNodes(t,i,{at:n.at,voids:n.voids})}else Pe.insertText(t,e,n);t.marks=null}},ZAe=(t,e)=>!t.isInline(e),JAe=(t,e,n)=>G.isStart(t,e,n)||G.isEnd(t,e,n),XAe=(t,e)=>{var{children:n}=e,[r]=n;return n.length===0||n.length===1&&Ct.isText(r)&&r.text===""&&!t.isVoid(e)},QAe=(t,e,n)=>{var r=G.end(t,n);return vn.equals(e,r)},eTe=t=>{var e=MX.get(t);return e===void 0?!0:e},tTe=(t,e,n)=>{if(e.offset!==0)return!1;var r=G.start(t,n);return vn.equals(e,r)},nTe=(t,e)=>{var n=G.path(t,e,{edge:"end"});return G.node(t,n)},rTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=G.path(t,e,n),o=at.leaf(t,r);return[o,r]};function oTe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),!!n){var s=[],u=G.path(t,n);for(var[l,c]of at.levels(t,u))if(i(l,c)&&(s.push([l,c]),!o&&bt.isElement(l)&&G.isVoid(t,l)))break;r&&s.reverse(),yield*s}}()}var iTe=["text"],aTe=["text"],sTe=function(t){var{marks:e,selection:n}=t;if(!n)return null;var{anchor:r,focus:o}=n;if(e)return e;if(Be.isExpanded(n)){var i=Be.isBackward(n);i&&([o,r]=[r,o]);var s=G.isEnd(t,r,r.path);if(s){var u=G.after(t,r);u&&(r=u)}var[l]=G.nodes(t,{match:Ct.isText,at:{anchor:r,focus:o}});if(l){var[c]=l,d=Dc(c,iTe);return d}else return{}}var{path:F}=r,[h]=G.leaf(t,F);if(r.offset===0){var m=G.previous(t,{at:F,match:Ct.isText}),D=G.above(t,{match:b=>bt.isElement(b)&&G.isVoid(t,b)&&t.markableVoid(b)});if(!D){var g=G.above(t,{match:b=>bt.isElement(b)&&G.isBlock(t,b)});if(m&&g){var[p,_]=m,[,v]=g;pe.isAncestor(v,_)&&(h=p)}}}var E=Dc(h,aTe);return E},uTe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var s=G.after(t,i,{voids:r});if(s){var[,u]=G.last(t,[]),l=[s.path,u];if(pe.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(pe.isPath(i)){var[c]=G.parent(t,i);o=F=>c.children.includes(F)}else o=()=>!0;var[d]=G.nodes(t,{at:l,match:o,mode:n,voids:r});return d}}},lTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=G.path(t,e,n),o=at.get(t,r);return[o,r]};function cTe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:s=!1,ignoreNonSelectable:u=!1}=e,{match:l}=e;if(l||(l=()=>!0),!!n){var c,d;if(GBe.isSpan(n))c=n[0],d=n[1];else{var F=G.path(t,n,{edge:"start"}),h=G.path(t,n,{edge:"end"});c=i?h:F,d=i?F:h}var m=at.nodes(t,{reverse:i,from:c,to:d,pass:b=>{var[k]=b;return bt.isElement(k)?!!(!s&&(G.isVoid(t,k)||G.isElementReadOnly(t,k))||u&&!G.isSelectable(t,k)):!1}}),D=[],g;for(var[p,_]of m)if(!(u&&bt.isElement(p)&&!G.isSelectable(t,p))){var v=g&&pe.compare(_,g[1])===0;if(!(r==="highest"&&v)){if(!l(p,_)){if(o&&!v&&Ct.isText(p))return;continue}if(r==="lowest"&&v){g=[p,_];continue}var E=r==="lowest"?g:[p,_];E&&(o?D.push(E):yield E),g=[p,_]}}r==="lowest"&&g&&(o?D.push(g):yield g),o&&(yield*D)}}()}var dTe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1,operation:r}=e,o=c=>Jy.get(c)||[],i=c=>Xy.get(c)||new Set,s=c=>{var d=o(c).pop(),F=d.join(",");return i(c).delete(F),d};if(G.isNormalizing(t)){if(n){var u=Array.from(at.nodes(t),c=>{var[,d]=c;return d}),l=new Set(u.map(c=>c.join(",")));Jy.set(t,u),Xy.set(t,l)}o(t).length!==0&&G.withoutNormalizing(t,()=>{for(var c of o(t))if(at.has(t,c)){var d=G.node(t,c),[F,h]=d;bt.isElement(F)&&F.children.length===0&&t.normalizeNode(d,{operation:r})}for(var m=o(t),D=m.length,g=0;m.length!==0;){if(!t.shouldNormalize({dirtyPaths:m,iteration:g,initialDirtyPathsLength:D,operation:r}))return;var p=s(t);if(at.has(t,p)){var _=G.node(t,p);t.normalizeNode(_,{operation:r})}g++,m=o(t)}})}},hTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=G.path(t,e,n),o=pe.parent(r),i=G.node(t,o);return i},FTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:s}=o,u=G.pathRefs(t);return u.delete(o),o.current=null,s}},i=G.pathRefs(t);return i.add(o),o},mTe=t=>{var e=PX.get(t);return e||(e=new Set,PX.set(t,e)),e},DTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(pe.isPath(e)){if(o==="start"){var[,i]=at.first(t,e);e=i}else if(o==="end"){var[,s]=at.last(t,e);e=s}}return Be.isRange(e)&&(o==="start"?e=Be.start(e):o==="end"?e=Be.end(e):e=pe.common(e.anchor.path,e.focus.path)),vn.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},gTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:s}=o,u=G.pointRefs(t);return u.delete(o),o.current=null,s}},i=G.pointRefs(t);return i.add(o),o},pTe=t=>{var e=LX.get(t);return e||(e=new Set,LX.set(t,e)),e},fTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(pe.isPath(e)){var o;if(r==="end"){var[,i]=at.last(t,e);o=i}else{var[,s]=at.first(t,e);o=s}var u=at.get(t,o);if(!Ct.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(Be.isRange(e)){var[l,c]=Be.edges(e);return r==="start"?l:c}return e};function _Te(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1,ignoreNonSelectable:s=!1}=e;if(!n)return;var u=G.range(t,n),[l,c]=Be.edges(u),d=o?c:l,F=!1,h="",m=0,D=0,g=0;for(var[p,_]of G.nodes(t,{at:n,reverse:o,voids:i,ignoreNonSelectable:s})){if(bt.isElement(p)){if(!i&&(t.isVoid(p)||t.isElementReadOnly(p))){yield G.start(t,_);continue}if(t.isInline(p))continue;if(G.hasInlines(t,p)){var v=pe.isAncestor(_,c.path)?c:G.end(t,_),E=pe.isAncestor(_,l.path)?l:G.start(t,_);h=G.string(t,{anchor:E,focus:v},{voids:i}),F=!0}}if(Ct.isText(p)){var b=pe.equals(_,d.path);for(b?(D=o?d.offset:p.text.length-d.offset,g=d.offset):(D=p.text.length,g=o?D:0),(b||F||r==="offset")&&(yield{path:_,offset:g},F=!1);;){if(m===0){if(h==="")break;m=k(h,r,o),h=LA(h,m,o)[1]}if(g=o?g-m:g+m,D=D-m,D<0){m=-D;break}m=0,yield{path:_,offset:g}}}}function k(C,S,w){return S==="character"?PA(C,w):S==="word"?eAe(C,w):S==="line"||S==="block"?C.length:1}}()}var vTe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var s=G.before(t,i,{voids:r});if(s){var[,u]=G.first(t,[]),l=[s.path,u];if(pe.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(pe.isPath(i)){var[c]=G.parent(t,i);o=F=>c.children.includes(F)}else o=()=>!0;var[d]=G.nodes(t,{reverse:!0,at:l,match:o,mode:n,voids:r});return d}}},bTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:s}=o,u=G.rangeRefs(t);return u.delete(o),o.current=null,s}},i=G.rangeRefs(t);return i.add(o),o},CTe=t=>{var e=NX.get(t);return e||(e=new Set,NX.set(t,e)),e},ETe=(t,e,n)=>{if(Be.isRange(e)&&!n)return e;var r=G.start(t,e),o=G.end(t,n||e);return{anchor:r,focus:o}};function dQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function yTe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dQ(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var xTe=(t,e)=>{var{selection:n}=t;if(n){var r=(d,F)=>{if(!Ct.isText(d))return!1;var[h,m]=G.parent(t,F);return!t.isVoid(h)||t.markableVoid(h)},o=Be.isExpanded(n),i=!1;if(!o){var[s,u]=G.node(t,n);if(s&&r(s,u)){var[l]=G.parent(t,u);i=l&&t.markableVoid(l)}}if(o||i)Pe.unsetNodes(t,e,{match:r,split:!0,voids:!0});else{var c=yTe({},G.marks(t)||{});delete c[e],t.marks=c,d_.get(t)||t.onChange()}}},wTe=(t,e)=>{MX.set(t,e)},kTe=(t,e)=>G.point(t,e,{edge:"start"}),STe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=G.range(t,e),[i,s]=Be.edges(o),u="";for(var[l,c]of G.nodes(t,{at:o,match:Ct.isText,voids:r})){var d=l.text;pe.equals(c,s.path)&&(d=d.slice(0,s.offset)),pe.equals(c,i.path)&&(d=d.slice(i.offset)),u+=d}return u},jTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=Be.edges(e);if(o.offset!==0||i.offset!==0||Be.isCollapsed(e)||pe.hasPrevious(i.path))return e;var s=G.above(t,{at:i,match:m=>bt.isElement(m)&&G.isBlock(t,m),voids:r}),u=s?s[1]:[],l=G.start(t,o),c={anchor:l,focus:i},d=!0;for(var[F,h]of G.nodes(t,{at:c,match:Ct.isText,reverse:!0,voids:r})){if(d){d=!1;continue}if(F.text!==""||pe.isBefore(h,u)){i={path:h,offset:F.text.length};break}}return{anchor:o,focus:i}},BTe=(t,e)=>{var n=G.isNormalizing(t);G.setNormalizing(t,!1);try{e()}finally{G.setNormalizing(t,n)}G.normalize(t)},ATe=(t,e,n)=>{var[r,o]=e;return bt.isElement(r)&&G.isEmpty(t,r)||Ct.isText(r)&&r.text===""&&o[o.length-1]!==0},TTe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};G.withoutNormalizing(t,()=>{var n,r,{reverse:o=!1,unit:i="character",distance:s=1,voids:u=!1}=e,{at:l=t.selection,hanging:c=!1}=e;if(l){var d=!1;if(Be.isRange(l)&&Be.isCollapsed(l)&&(d=!0,l=l.anchor),vn.isPoint(l)){var F=G.void(t,{at:l,mode:"highest"});if(!u&&F){var[,h]=F;l=h}else{var m={unit:i,distance:s},D=o?G.before(t,l,m)||G.start(t,[]):G.after(t,l,m)||G.end(t,[]);l={anchor:l,focus:D},c=!0}}if(pe.isPath(l)){Pe.removeNodes(t,{at:l,voids:u});return}if(!Be.isCollapsed(l)){if(!c){var[,g]=Be.edges(l),p=G.end(t,[]);vn.equals(g,p)||(l=G.unhangRange(t,l,{voids:u}))}var[_,v]=Be.edges(l),E=G.above(t,{match:De=>bt.isElement(De)&&G.isBlock(t,De),at:_,voids:u}),b=G.above(t,{match:De=>bt.isElement(De)&&G.isBlock(t,De),at:v,voids:u}),k=E&&b&&!pe.equals(E[1],b[1]),C=pe.equals(_.path,v.path),S=u?null:(n=G.void(t,{at:_,mode:"highest"}))!==null&&n!==void 0?n:G.elementReadOnly(t,{at:_,mode:"highest"}),w=u?null:(r=G.void(t,{at:v,mode:"highest"}))!==null&&r!==void 0?r:G.elementReadOnly(t,{at:v,mode:"highest"});if(S){var A=G.before(t,_);A&&E&&pe.isAncestor(E[1],A.path)&&(_=A)}if(w){var O=G.after(t,v);O&&b&&pe.isAncestor(b[1],O.path)&&(v=O)}var j=[],R;for(var M of G.nodes(t,{at:l,voids:u})){var[z,T]=M;R&&pe.compare(T,R)===0||(!u&&bt.isElement(z)&&(G.isVoid(t,z)||G.isElementReadOnly(t,z))||!pe.isCommon(T,_.path)&&!pe.isCommon(T,v.path))&&(j.push(M),R=T)}var P=Array.from(j,De=>{var[,Ae]=De;return G.pathRef(t,Ae)}),L=G.pointRef(t,_),U=G.pointRef(t,v),te="";if(!C&&!S){var ae=L.current,[Fe]=G.leaf(t,ae),{path:re}=ae,{offset:ce}=_,K=Fe.text.slice(ce);K.length>0&&(t.apply({type:"remove_text",path:re,offset:ce,text:K}),te=K)}if(P.reverse().map(De=>De.unref()).filter(De=>De!==null).forEach(De=>Pe.removeNodes(t,{at:De,voids:u})),!w){var H=U.current,[q]=G.leaf(t,H),{path:V}=H,X=C?_.offset:0,ee=q.text.slice(X,v.offset);ee.length>0&&(t.apply({type:"remove_text",path:V,offset:X,text:ee}),te=ee)}!C&&k&&U.current&&L.current&&Pe.mergeNodes(t,{at:U.current,hanging:!0,voids:u}),d&&o&&i==="character"&&te.length>1&&te.match(/[\u0E00-\u0E7F]+/)&&Pe.insertText(t,te.slice(0,te.length-s));var J=L.unref(),de=U.unref(),ue=o?J||de:de||J;e.at==null&&ue&&Pe.select(t,ue)}}})},ITe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};G.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=MA(t),batchDirty:s=!0}=n;if(e.length){if(Be.isRange(i))if(r||(i=G.unhangRange(t,i,{voids:o})),Be.isCollapsed(i))i=i.anchor;else{var[,u]=Be.edges(i);if(!o&&G.void(t,{at:u}))return;var l=G.pointRef(t,u);Pe.delete(t,{at:i}),i=l.unref()}else pe.isPath(i)&&(i=G.start(t,i));if(!(!o&&G.void(t,{at:i}))){var c=G.above(t,{at:i,match:K=>bt.isElement(K)&&G.isInline(t,K),mode:"highest",voids:o});if(c){var[,d]=c;if(G.isEnd(t,i,d)){var F=G.after(t,d);i=F}else if(G.isStart(t,i,d)){var h=G.before(t,d);i=h}}var m=G.above(t,{match:K=>bt.isElement(K)&&G.isBlock(t,K),at:i,voids:o}),[,D]=m,g=G.isStart(t,i,D),p=G.isEnd(t,i,D),_=g&&p,v=!g||g&&p,E=!p,[,b]=at.first({children:e},[]),[,k]=at.last({children:e},[]),C=[],S=K=>{var[H,q]=K,V=q.length===0;return V?!1:_?!0:!(v&&pe.isAncestor(q,b)&&bt.isElement(H)&&!t.isVoid(H)&&!t.isInline(H)||E&&pe.isAncestor(q,k)&&bt.isElement(H)&&!t.isVoid(H)&&!t.isInline(H))};for(var w of at.nodes({children:e},{pass:S}))S(w)&&C.push(w);var A=[],O=[],j=[],R=!0,M=!1;for(var[z]of C)bt.isElement(z)&&!t.isInline(z)?(R=!1,M=!0,O.push(z)):R?A.push(z):j.push(z);var[T]=G.nodes(t,{at:i,match:K=>Ct.isText(K)||G.isInline(t,K),mode:"highest",voids:o}),[,P]=T,L=G.isStart(t,i,P),U=G.isEnd(t,i,P),te=G.pathRef(t,p&&!j.length?pe.next(D):D),ae=G.pathRef(t,U?pe.next(P):P);Pe.splitNodes(t,{at:i,match:K=>M?bt.isElement(K)&&G.isBlock(t,K):Ct.isText(K)||G.isInline(t,K),mode:M?"lowest":"highest",always:M&&(!g||A.length>0)&&(!p||j.length>0),voids:o});var Fe=G.pathRef(t,!L||L&&U?pe.next(P):P);if(Pe.insertNodes(t,A,{at:Fe.current,match:K=>Ct.isText(K)||G.isInline(t,K),mode:"highest",voids:o,batchDirty:s}),_&&!A.length&&O.length&&!j.length&&Pe.delete(t,{at:D,voids:o}),Pe.insertNodes(t,O,{at:te.current,match:K=>bt.isElement(K)&&G.isBlock(t,K),mode:"lowest",voids:o,batchDirty:s}),Pe.insertNodes(t,j,{at:ae.current,match:K=>Ct.isText(K)||G.isInline(t,K),mode:"highest",voids:o,batchDirty:s}),!n.at){var re;if(j.length>0&&ae.current?re=pe.previous(ae.current):O.length>0&&te.current?re=pe.previous(te.current):Fe.current&&(re=pe.previous(Fe.current)),re){var ce=G.end(t,re);Pe.select(t,ce)}}Fe.unref(),te.unref(),ae.unref()}}})},RTe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")Pe.select(t,r.anchor);else if(n==="focus")Pe.select(t,r.focus);else if(n==="start"){var[o]=Be.edges(r);Pe.select(t,o)}else if(n==="end"){var[,i]=Be.edges(r);Pe.select(t,i)}}else return},OTe=t=>{var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},MTe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:s=null}=e;if(n){s==="start"&&(s=Be.isBackward(n)?"focus":"anchor"),s==="end"&&(s=Be.isBackward(n)?"anchor":"focus");var{anchor:u,focus:l}=n,c={distance:r,unit:o,ignoreNonSelectable:!0},d={};if(s==null||s==="anchor"){var F=i?G.before(t,u,c):G.after(t,u,c);F&&(d.anchor=F)}if(s==null||s==="focus"){var h=i?G.before(t,l,c):G.after(t,l,c);h&&(d.focus=h)}Pe.setSelection(t,d)}},PTe=(t,e)=>{var{selection:n}=t;if(e=G.range(t,e),n){Pe.setSelection(t,e);return}if(!Be.isRange(e))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(Ko.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})};function hQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function FQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hQ(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var LTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=Be.isBackward(r)?"focus":"anchor"),o==="end"&&(o=Be.isBackward(r)?"anchor":"focus");var{anchor:i,focus:s}=r,u=o==="anchor"?i:s;Pe.setSelection(t,{[o==="anchor"?"anchor":"focus"]:FQ(FQ({},u),e)})}},NTe=(t,e)=>{var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!vn.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!vn.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}},zTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};G.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest",batchDirty:s=!0}=n,{at:u,match:l,select:c}=n;if(at.isNode(e)&&(e=[e]),e.length!==0){var[d]=e;if(u||(u=MA(t),c!==!1&&(c=!0)),c==null&&(c=!1),Be.isRange(u))if(r||(u=G.unhangRange(t,u,{voids:o})),Be.isCollapsed(u))u=u.anchor;else{var[,F]=Be.edges(u),h=G.pointRef(t,F);Pe.delete(t,{at:u}),u=h.unref()}if(vn.isPoint(u)){l==null&&(Ct.isText(d)?l=A=>Ct.isText(A):t.isInline(d)?l=A=>Ct.isText(A)||G.isInline(t,A):l=A=>bt.isElement(A)&&G.isBlock(t,A));var[m]=G.nodes(t,{at:u.path,match:l,mode:i,voids:o});if(m){var[,D]=m,g=G.pathRef(t,D),p=G.isEnd(t,u,D);Pe.splitNodes(t,{at:u,match:l,mode:i,voids:o});var _=g.unref();u=p?pe.next(_):_}else return}var v=pe.parent(u),E=u[u.length-1];if(!(!o&&G.void(t,{at:v}))){if(s){var b=[],k=pe.levels(v);CAe(t,()=>{var A=function(){var j=v.concat(E);E++;var R={type:"insert_node",path:j,node:O};t.apply(R),u=pe.next(u),b.push(R),Ct.isText?k.push(...Array.from(at.nodes(O),M=>{var[,z]=M;return j.concat(z)})):k.push(j)};for(var O of e)A()},()=>{QX(t,k,A=>{var O=A;for(var j of b)if(pe.operationCanTransformPath(j)&&(O=pe.transform(O,j),!O))return null;return O})})}else for(var C of e){var S=v.concat(E);E++,t.apply({type:"insert_node",path:S,node:C}),u=pe.next(u)}if(u=pe.previous(u),c){var w=G.end(t,u);w&&Pe.select(t,w)}}}})},UTe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};G.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=pe.isPath(n)?sD(t,n):E=>bt.isElement(E)&&G.isBlock(t,E)),!!n){var s=G.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(s,E=>{var[,b]=E;return G.pathRef(t,b)});for(var l of u){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var d=G.node(t,pe.parent(c)),[F,h]=d,m=c[c.length-1],{length:D}=F.children;if(D===1){var g=pe.next(h);Pe.moveNodes(t,{at:c,to:g,voids:o}),Pe.removeNodes(t,{at:h,voids:o})}else if(m===0)Pe.moveNodes(t,{at:c,to:h,voids:o});else if(m===D-1){var p=pe.next(h);Pe.moveNodes(t,{at:c,to:p,voids:o})}else{var _=pe.next(c),v=pe.next(h);Pe.splitNodes(t,{at:_,voids:o}),Pe.moveNodes(t,{at:c,to:v,voids:o})}}}})},VTe=["text"],qTe=["children"],mQ=(t,e)=>{if(bt.isElement(e)){var n=e;return G.isVoid(t,e)?!0:n.children.length===1?mQ(t,n.children[0]):!1}else return!G.isEditor(e)},HTe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};G.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:s="lowest"}=e;if(r){if(n==null)if(pe.isPath(r)){var[u]=G.parent(t,r);n=A=>u.children.includes(A)}else n=A=>bt.isElement(A)&&G.isBlock(t,A);if(!o&&Be.isRange(r)&&(r=G.unhangRange(t,r,{voids:i})),Be.isRange(r))if(Be.isCollapsed(r))r=r.anchor;else{var[,l]=Be.edges(r),c=G.pointRef(t,l);Pe.delete(t,{at:r}),r=c.unref(),e.at==null&&Pe.select(t,r)}var[d]=G.nodes(t,{at:r,match:n,voids:i,mode:s}),F=G.previous(t,{at:r,match:n,voids:i,mode:s});if(!(!d||!F)){var[h,m]=d,[D,g]=F;if(!(m.length===0||g.length===0)){var p=pe.next(g),_=pe.common(m,g),v=pe.isSibling(m,g),E=Array.from(G.levels(t,{at:m}),A=>{var[O]=A;return O}).slice(_.length).slice(0,-1),b=G.above(t,{at:m,mode:"highest",match:A=>E.includes(A)&&mQ(t,A)}),k=b&&G.pathRef(t,b[1]),C,S;if(Ct.isText(h)&&Ct.isText(D)){var w=Dc(h,VTe);S=D.text.length,C=w}else if(bt.isElement(h)&&bt.isElement(D)){var w=Dc(h,qTe);S=D.children.length,C=w}else throw new Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(Ko.stringify(h)," ").concat(Ko.stringify(D)));v||Pe.moveNodes(t,{at:m,to:p,voids:i}),k&&Pe.removeNodes(t,{at:k.current,voids:i}),G.shouldMergeNodesRemovePrevNode(t,F,d)?Pe.removeNodes(t,{at:g,voids:i}):t.apply({type:"merge_node",path:p,position:S,properties:C}),k&&k.unref()}}}})},$Te=(t,e)=>{G.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:s}=e;if(r){s==null&&(s=pe.isPath(r)?sD(t,r):m=>bt.isElement(m)&&G.isBlock(t,m));var u=G.pathRef(t,n),l=G.nodes(t,{at:r,match:s,mode:o,voids:i}),c=Array.from(l,m=>{var[,D]=m;return G.pathRef(t,D)});for(var d of c){var F=d.unref(),h=u.current;F.length!==0&&t.apply({type:"move_node",path:F,newPath:h}),u.current&&pe.isSibling(h,F)&&pe.isAfter(h,F)&&(u.current=pe.next(u.current))}u.unref()}})},WTe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};G.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:s}=e;if(i){s==null&&(s=pe.isPath(i)?sD(t,i):h=>bt.isElement(h)&&G.isBlock(t,h)),!n&&Be.isRange(i)&&(i=G.unhangRange(t,i,{voids:r}));var u=G.nodes(t,{at:i,match:s,mode:o,voids:r}),l=Array.from(u,h=>{var[,m]=h;return G.pathRef(t,m)});for(var c of l){var d=c.unref();if(d){var[F]=G.node(t,d);t.apply({type:"remove_node",path:d,node:F})}}}})},KTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};G.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection,compare:i,merge:s}=n,{hanging:u=!1,mode:l="lowest",split:c=!1,voids:d=!1}=n;if(o){if(r==null&&(r=pe.isPath(o)?sD(t,o):S=>bt.isElement(S)&&G.isBlock(t,S)),!u&&Be.isRange(o)&&(o=G.unhangRange(t,o,{voids:d})),c&&Be.isRange(o)){if(Be.isCollapsed(o)&&G.leaf(t,o.anchor)[0].text.length>0)return;var F=G.rangeRef(t,o,{affinity:"inward"}),[h,m]=Be.edges(o),D=l==="lowest"?"lowest":"highest",g=G.isEnd(t,m,m.path);Pe.splitNodes(t,{at:m,match:r,mode:D,voids:d,always:!g});var p=G.isStart(t,h,h.path);Pe.splitNodes(t,{at:h,match:r,mode:D,voids:d,always:!p}),o=F.unref(),n.at==null&&Pe.select(t,o)}i||(i=(S,w)=>S!==w);for(var[_,v]of G.nodes(t,{at:o,match:r,mode:l,voids:d})){var E={},b={};if(v.length!==0){var k=!1;for(var C in e)C==="children"||C==="text"||i(e[C],_[C])&&(k=!0,_.hasOwnProperty(C)&&(E[C]=_[C]),s?e[C]!=null&&(b[C]=s(_[C],e[C])):e[C]!=null&&(b[C]=e[C]));k&&t.apply({type:"set_node",path:v,properties:E,newProperties:b})}}}})},GTe=(t,e)=>{if(Be.isCollapsed(e))return e.anchor;var[,n]=Be.edges(e),r=G.pointRef(t,n);return Pe.delete(t,{at:e}),r.unref()},YTe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};G.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:s=0,always:u=!1}=e;if(o==null&&(o=U=>bt.isElement(U)&&G.isBlock(t,U)),Be.isRange(i)&&(i=GTe(t,i)),pe.isPath(i)){var l=i,c=G.point(t,l),[d]=G.parent(t,l);o=U=>U===d,s=c.path.length-l.length+1,i=c,u=!0}if(i){var F=G.pointRef(t,i,{affinity:"backward"}),h;try{var[m]=G.nodes(t,{at:i,match:o,mode:n,voids:r});if(!m)return;var D=G.void(t,{at:i,mode:"highest"}),g=0;if(!r&&D){var[p,_]=D;if(bt.isElement(p)&&t.isInline(p)){var v=G.after(t,_);if(!v){var E={text:""},b=pe.next(_);Pe.insertNodes(t,E,{at:b,voids:r}),v=G.point(t,b)}i=v,u=!0}var k=i.path.length-_.length;s=k+1,u=!0}h=G.pointRef(t,i);var C=i.path.length-s,[,S]=m,w=i.path.slice(0,C),A=s===0?i.offset:i.path[C]+g;for(var[O,j]of G.levels(t,{at:w,reverse:!0,voids:r})){var R=!1;if(j.length<S.length||j.length===0||!r&&bt.isElement(O)&&G.isVoid(t,O))break;var M=F.current,z=G.isEnd(t,M,j);if(u||!F||!G.isEdge(t,M,j)){R=!0;var T=at.extractProps(O);t.apply({type:"split_node",path:j,position:A,properties:T})}A=j[j.length-1]+(R||z?1:0)}if(e.at==null){var P=h.current||G.end(t,[]);Pe.select(t,P)}}finally{var L;F.unref(),(L=h)===null||L===void 0||L.unref()}}})},ZTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;Pe.setNodes(t,r,n)},JTe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};G.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:s}=e;if(i){s==null&&(s=pe.isPath(i)?sD(t,i):h=>bt.isElement(h)&&G.isBlock(t,h)),pe.isPath(i)&&(i=G.range(t,i));var u=Be.isRange(i)?G.rangeRef(t,i):null,l=G.nodes(t,{at:i,match:s,mode:n,voids:o}),c=Array.from(l,h=>{var[,m]=h;return G.pathRef(t,m)}).reverse(),d=function(){var h=F.unref(),[m]=G.node(t,h),D=G.range(t,h);r&&u&&(D=Be.intersection(u.current,D)),Pe.liftNodes(t,{at:D,match:g=>bt.isAncestor(m)&&m.children.includes(g),voids:o})};for(var F of c)d();u&&u.unref()}})};function DQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function gQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?DQ(Object(n),!0).forEach(function(r){Ri(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):DQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var XTe=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};G.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:s,at:u=t.selection}=n;if(u){if(s==null&&(pe.isPath(u)?s=sD(t,u):t.isInline(e)?s=g=>bt.isElement(g)&&G.isInline(t,g)||Ct.isText(g):s=g=>bt.isElement(g)&&G.isBlock(t,g)),o&&Be.isRange(u)){var[l,c]=Be.edges(u),d=G.rangeRef(t,u,{affinity:"inward"});Pe.splitNodes(t,{at:c,match:s,voids:i}),Pe.splitNodes(t,{at:l,match:s,voids:i}),u=d.unref(),n.at==null&&Pe.select(t,u)}var F=Array.from(G.nodes(t,{at:u,match:t.isInline(e)?g=>bt.isElement(g)&&G.isBlock(t,g):g=>G.isEditor(g),mode:"lowest",voids:i})),h=function(){var g=Be.isRange(u)?Be.intersection(u,G.range(t,D)):u;if(!g)return 0;var p=Array.from(G.nodes(t,{at:g,match:s,mode:r,voids:i}));if(p.length>0){var[_]=p,v=p[p.length-1],[,E]=_,[,b]=v;if(E.length===0&&b.length===0)return 0;var k=pe.equals(E,b)?pe.parent(E):pe.common(E,b),C=G.range(t,E,b),S=G.node(t,k),[w]=S,A=k.length+1,O=pe.next(b.slice(0,A)),j=gQ(gQ({},e),{},{children:[]});Pe.insertNodes(t,j,{at:O,voids:i}),Pe.moveNodes(t,{at:C,match:R=>bt.isAncestor(w)&&w.children.includes(R),to:O.concat(0),voids:i})}},m;for(var[,D]of F)m=h()}})},QTe=()=>{var t={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return EAe(t,...n)},addMark:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return jAe(t,...n)},deleteBackward:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return TAe(t,...n)},deleteForward:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return IAe(t,...n)},deleteFragment:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return RAe(t,...n)},getFragment:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return xAe(t,...n)},insertBreak:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return $Ae(t,...n)},insertSoftBreak:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return KAe(t,...n)},insertFragment:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ITe(t,...n)},insertNode:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return WAe(t,...n)},insertText:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return YAe(t,...n)},normalizeNode:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return wAe(t,...n)},removeMark:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return xTe(t,...n)},getDirtyPaths:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return yAe(t,...n)},shouldNormalize:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return kAe(t,...n)},above:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return SAe(t,...n)},after:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return BAe(t,...n)},before:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return AAe(t,...n)},collapse:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return RTe(t,...n)},delete:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return TTe(t,...n)},deselect:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return OTe(t,...n)},edges:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return OAe(t,...n)},elementReadOnly:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return MAe(t,...n)},end:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return PAe(t,...n)},first:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return LAe(t,...n)},fragment:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return NAe(t,...n)},getMarks:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return sTe(t,...n)},hasBlocks:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return UAe(t,...n)},hasInlines:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return VAe(t,...n)},hasPath:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return qAe(t,...n)},hasTexts:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return HAe(t,...n)},insertNodes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return zTe(t,...n)},isBlock:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ZAe(t,...n)},isEdge:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return JAe(t,...n)},isEmpty:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return XAe(t,...n)},isEnd:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return QAe(t,...n)},isNormalizing:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return eTe(t,...n)},isStart:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return tTe(t,...n)},last:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return nTe(t,...n)},leaf:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return rTe(t,...n)},levels:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return oTe(t,...n)},liftNodes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return UTe(t,...n)},mergeNodes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return HTe(t,...n)},move:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return MTe(t,...n)},moveNodes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return $Te(t,...n)},next:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return uTe(t,...n)},node:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return lTe(t,...n)},nodes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return cTe(t,...n)},normalize:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return dTe(t,...n)},parent:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return hTe(t,...n)},path:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return DTe(t,...n)},pathRef:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return FTe(t,...n)},pathRefs:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return mTe(t,...n)},point:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return fTe(t,...n)},pointRef:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return gTe(t,...n)},pointRefs:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return pTe(t,...n)},positions:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return _Te(t,...n)},previous:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return vTe(t,...n)},range:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ETe(t,...n)},rangeRef:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return bTe(t,...n)},rangeRefs:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return CTe(t,...n)},removeNodes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return WTe(t,...n)},select:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return PTe(t,...n)},setNodes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return KTe(t,...n)},setNormalizing:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return wTe(t,...n)},setPoint:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return LTe(t,...n)},setSelection:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return NTe(t,...n)},splitNodes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return YTe(t,...n)},start:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return kTe(t,...n)},string:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return STe(t,...n)},unhangRange:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return jTe(t,...n)},unsetNodes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ZTe(t,...n)},unwrapNodes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return JTe(t,...n)},void:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return zAe(t,...n)},withoutNormalizing:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return BTe(t,...n)},wrapNodes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return XTe(t,...n)},shouldMergeNodesRemovePrevNode:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ATe(t,...n)}};return t},eIe=rIe,pQ="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",fQ="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",tIe=new RegExp("^[^"+fQ+"]*["+pQ+"]"),nIe=new RegExp("^[^"+pQ+"]*["+fQ+"]");function rIe(t){return t=String(t||""),tIe.test(t)?"rtl":nIe.test(t)?"ltr":"neutral"}const _Q=Rr(eIe);function oIe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var NA=oIe,iIe=typeof Qe=="object"&&Qe&&Qe.Object===Object&&Qe,aIe=iIe,sIe=aIe,uIe=typeof self=="object"&&self&&self.Object===Object&&self,lIe=sIe||uIe||Function("return this")(),vQ=lIe,cIe=vQ,dIe=function(){return cIe.Date.now()},hIe=dIe,FIe=/\s/;function mIe(t){for(var e=t.length;e--&&FIe.test(t.charAt(e)););return e}var DIe=mIe,gIe=DIe,pIe=/^\s+/;function fIe(t){return t&&t.slice(0,gIe(t)+1).replace(pIe,"")}var _Ie=fIe,vIe=vQ,bIe=vIe.Symbol,bQ=bIe,CQ=bQ,EQ=Object.prototype,CIe=EQ.hasOwnProperty,EIe=EQ.toString,m_=CQ?CQ.toStringTag:void 0;function yIe(t){var e=CIe.call(t,m_),n=t[m_];try{t[m_]=void 0;var r=!0}catch{}var o=EIe.call(t);return r&&(e?t[m_]=n:delete t[m_]),o}var xIe=yIe,wIe=Object.prototype,kIe=wIe.toString;function SIe(t){return kIe.call(t)}var jIe=SIe,yQ=bQ,BIe=xIe,AIe=jIe,TIe="[object Null]",IIe="[object Undefined]",xQ=yQ?yQ.toStringTag:void 0;function RIe(t){return t==null?t===void 0?IIe:TIe:xQ&&xQ in Object(t)?BIe(t):AIe(t)}var OIe=RIe;function MIe(t){return t!=null&&typeof t=="object"}var PIe=MIe,LIe=OIe,NIe=PIe,zIe="[object Symbol]";function UIe(t){return typeof t=="symbol"||NIe(t)&&LIe(t)==zIe}var VIe=UIe,qIe=_Ie,wQ=NA,HIe=VIe,kQ=NaN,$Ie=/^[-+]0x[0-9a-f]+$/i,WIe=/^0b[01]+$/i,KIe=/^0o[0-7]+$/i,GIe=parseInt;function YIe(t){if(typeof t=="number")return t;if(HIe(t))return kQ;if(wQ(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=wQ(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=qIe(t);var n=WIe.test(t);return n||KIe.test(t)?GIe(t.slice(2),n?2:8):$Ie.test(t)?kQ:+t}var ZIe=YIe,JIe=NA,zA=hIe,SQ=ZIe,XIe="Expected a function",QIe=Math.max,eRe=Math.min;function tRe(t,e,n){var r,o,i,s,u,l,c=0,d=!1,F=!1,h=!0;if(typeof t!="function")throw new TypeError(XIe);e=SQ(e)||0,JIe(n)&&(d=!!n.leading,F="maxWait"in n,i=F?QIe(SQ(n.maxWait)||0,e):i,h="trailing"in n?!!n.trailing:h);function m(C){var S=r,w=o;return r=o=void 0,c=C,s=t.apply(w,S),s}function D(C){return c=C,u=setTimeout(_,e),d?m(C):s}function g(C){var S=C-l,w=C-c,A=e-S;return F?eRe(A,i-w):A}function p(C){var S=C-l,w=C-c;return l===void 0||S>=e||S<0||F&&w>=i}function _(){var C=zA();if(p(C))return v(C);u=setTimeout(_,g(C))}function v(C){return u=void 0,h&&r?m(C):(r=o=void 0,s)}function E(){u!==void 0&&clearTimeout(u),c=0,r=l=o=u=void 0}function b(){return u===void 0?s:v(zA())}function k(){var C=zA(),S=p(C);if(r=arguments,o=this,l=C,S){if(u===void 0)return D(l);if(F)return clearTimeout(u),u=setTimeout(_,e),m(l)}return u===void 0&&(u=setTimeout(_,e)),s}return k.cancel=E,k.flush=b,k}var jQ=tRe;const nRe=Rr(jQ);var rRe=jQ,oRe=NA,iRe="Expected a function";function aRe(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError(iRe);return oRe(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),rRe(t,e,{leading:r,maxWait:e,trailing:o})}var sRe=aRe;const uRe=Rr(sRe),BQ=t=>typeof t=="object"&&t!=null&&t.nodeType===1,AQ=(t,e)=>(!e||t!=="hidden")&&t!=="visible"&&t!=="clip",t4=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const n=getComputedStyle(t,null);return AQ(n.overflowY,e)||AQ(n.overflowX,e)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(t)}return!1},n4=(t,e,n,r,o,i,s,u)=>i<t&&s>e||i>t&&s<e?0:i<=t&&u<=n||s>=e&&u>=n?i-t-r:s>e&&u<n||i<t&&u>n?s-e+o:0,lRe=t=>t.parentElement??(t.getRootNode().host||null),TQ=(t,e)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:s,block:u,inline:l,boundary:c,skipOverflowHiddenElements:d}=e,F=typeof c=="function"?c:P=>P!==c;if(!BQ(t))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,m=[];let D=t;for(;BQ(D)&&F(D);){if(D=lRe(D),D===h){m.push(D);break}D!=null&&D===document.body&&t4(D)&&!t4(document.documentElement)||D!=null&&t4(D,d)&&m.push(D)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,p=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:_,scrollY:v}=window,{height:E,width:b,top:k,right:C,bottom:S,left:w}=t.getBoundingClientRect(),{top:A,right:O,bottom:j,left:R}=(P=>{const L=window.getComputedStyle(P);return{top:parseFloat(L.scrollMarginTop)||0,right:parseFloat(L.scrollMarginRight)||0,bottom:parseFloat(L.scrollMarginBottom)||0,left:parseFloat(L.scrollMarginLeft)||0}})(t);let M=u==="start"||u==="nearest"?k-A:u==="end"?S+j:k+E/2-A+j,z=l==="center"?w+b/2-R+O:l==="end"?C+O:w-R;const T=[];for(let P=0;P<m.length;P++){const L=m[P],{height:U,width:te,top:ae,right:Fe,bottom:re,left:ce}=L.getBoundingClientRect();if(s==="if-needed"&&k>=0&&w>=0&&S<=p&&C<=g&&(L===h&&!t4(L)||k>=ae&&S<=re&&w>=ce&&C<=Fe))return T;const K=getComputedStyle(L),H=parseInt(K.borderLeftWidth,10),q=parseInt(K.borderTopWidth,10),V=parseInt(K.borderRightWidth,10),X=parseInt(K.borderBottomWidth,10);let ee=0,J=0;const de="offsetWidth"in L?L.offsetWidth-L.clientWidth-H-V:0,ue="offsetHeight"in L?L.offsetHeight-L.clientHeight-q-X:0,De="offsetWidth"in L?L.offsetWidth===0?0:te/L.offsetWidth:0,Ae="offsetHeight"in L?L.offsetHeight===0?0:U/L.offsetHeight:0;if(h===L)ee=u==="start"?M:u==="end"?M-p:u==="nearest"?n4(v,v+p,p,q,X,v+M,v+M+E,E):M-p/2,J=l==="start"?z:l==="center"?z-g/2:l==="end"?z-g:n4(_,_+g,g,H,V,_+z,_+z+b,b),ee=Math.max(0,ee+v),J=Math.max(0,J+_);else{ee=u==="start"?M-ae-q:u==="end"?M-re+X+ue:u==="nearest"?n4(ae,re,U,q,X+ue,M,M+E,E):M-(ae+U/2)+ue/2,J=l==="start"?z-ce-H:l==="center"?z-(ce+te/2)+de/2:l==="end"?z-Fe+V+de:n4(ce,Fe,te,H,V+de,z,z+b,b);const{scrollLeft:ye,scrollTop:He}=L;ee=Ae===0?0:Math.max(0,Math.min(He+ee/Ae,L.scrollHeight-U/Ae+ue)),J=De===0?0:Math.max(0,Math.min(ye+J/De,L.scrollWidth-te/De+de)),M+=He-ee,z+=ye-J}T.push({el:L,top:ee,left:J})}return T},cRe=t=>t===!1?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&Object.keys(e).length!==0)(t)?t:{block:"start",inline:"nearest"};function dRe(t,e){if(!t.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(t))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(t);if((o=>typeof o=="object"&&typeof o.behavior=="function")(e))return e.behavior(TQ(t,e));const r=typeof e=="boolean"||e==null?void 0:e.behavior;for(const{el:o,top:i,left:s}of TQ(t,cRe(e))){const u=i-n.top+n.bottom,l=s-n.left+n.right;o.scroll({top:u,left:l,behavior:r})}}var IQ=globalThis.Node,hRe=globalThis.Text,UA=t=>t&&t.ownerDocument&&t.ownerDocument.defaultView||null,FRe=t=>o1(t)&&t.nodeType===8,hs=t=>o1(t)&&t.nodeType===1,o1=t=>{var e=UA(t);return!!e&&t instanceof e.Node},VA=t=>{var e=t&&t.anchorNode&&UA(t.anchorNode);return!!e&&t instanceof e.Selection},RQ=t=>o1(t)&&t.nodeType===3,mRe=t=>t.clipboardData&&t.clipboardData.getData("text/plain")!==""&&t.clipboardData.types.length===1,DRe=t=>{var[e,n]=t;if(hs(e)&&e.childNodes.length){var r=n===e.childNodes.length,o=r?n-1:n;for([e,o]=OQ(e,o,r?"backward":"forward"),r=o<n;hs(e)&&e.childNodes.length;){var i=r?e.childNodes.length-1:0;e=pRe(e,i,r?"backward":"forward")}n=r&&e.textContent!=null?e.textContent.length:0}return[e,n]},gRe=t=>{for(var e=t&&t.parentNode;e;){if(e.toString()==="[object ShadowRoot]")return!0;e=e.parentNode}return!1},OQ=(t,e,n)=>{for(var{childNodes:r}=t,o=r[e],i=e,s=!1,u=!1;(FRe(o)||hs(o)&&o.childNodes.length===0||hs(o)&&o.getAttribute("contenteditable")==="false")&&!(s&&u);){if(i>=r.length){s=!0,i=e-1,n="backward";continue}if(i<0){u=!0,i=e+1,n="forward";continue}o=r[i],e=i,i+=n==="forward"?1:-1}return[o,e]},pRe=(t,e,n)=>{var[r]=OQ(t,e,n);return r},MQ=t=>{var e="";if(RQ(t)&&t.nodeValue)return t.nodeValue;if(hs(t)){for(var n of Array.from(t.childNodes))e+=MQ(n);var r=getComputedStyle(t).getPropertyValue("display");(r==="block"||r==="list"||t.tagName==="BR")&&(e+=`
`)}return e},fRe=/data-slate-fragment="(.+?)"/m,_Re=t=>{var e=t.getData("text/html"),[,n]=e.match(fRe)||[];return n},D_=t=>t.getSelection!=null?t.getSelection():document.getSelection(),qA=(t,e,n)=>{var{target:r}=e;if(hs(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=dn.getWindow(t);if(o.contains(r))return dn.hasDOMNode(t,r,{editable:!0});var i=n.find(s=>{var{addedNodes:u,removedNodes:l}=s;for(var c of u)if(c===r||c.contains(r))return!0;for(var d of l)if(d===r||d.contains(r))return!0});return!i||i===e?!1:qA(t,i,n)},vRe=()=>{for(var t=document.activeElement;(e=t)!==null&&e!==void 0&&e.shadowRoot&&(n=t.shadowRoot)!==null&&n!==void 0&&n.activeElement;){var e,n,r;t=(r=t)===null||r===void 0||(r=r.shadowRoot)===null||r===void 0?void 0:r.activeElement}return t},PQ=(t,e)=>!!(t.compareDocumentPosition(e)&IQ.DOCUMENT_POSITION_PRECEDING),bRe=(t,e)=>!!(t.compareDocumentPosition(e)&IQ.DOCUMENT_POSITION_FOLLOWING),HA,$A,LQ=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,NQ=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Oi=typeof navigator<"u"&&/Android/.test(navigator.userAgent),lD=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),h0=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),CRe=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),zQ=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),ERe=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),yRe=Oi&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),xRe=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),wRe=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),kRe=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),r4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&(HA=navigator.userAgent.match(/Version\/(\d+)/))!==null&&HA!==void 0&&HA[1]&&parseInt(($A=navigator.userAgent.match(/Version\/(\d+)/))===null||$A===void 0?void 0:$A[1],10)<17;var i1=(!ERe||!yRe)&&!CRe&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function";function g_(t){"@babel/helpers - typeof";return g_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g_(t)}function SRe(t,e){if(g_(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(g_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function jRe(t){var e=SRe(t,"string");return g_(e)==="symbol"?e:String(e)}function UQ(t,e,n){return e=jRe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var BRe=0;class ARe{constructor(){UQ(this,"id",void 0),this.id="".concat(BRe++)}}var cD=new WeakMap,WA=new WeakMap,KA=new WeakMap,VQ=new WeakMap,o4=new WeakMap,GA=new WeakMap,p_=new WeakMap,F0=new WeakMap,i4=new WeakMap,a4=new WeakMap,YA=new WeakMap,a1=new WeakMap,m0=new WeakMap,f_=new WeakMap,ZA=new WeakMap,JA=new WeakMap,Js=new WeakMap,pc=new WeakMap,aa=new WeakMap,s1=new WeakMap,u1=new WeakMap,qQ=new WeakMap,dD=Symbol("placeholder"),HQ=Symbol("mark-placeholder"),dn={androidPendingDiffs:t=>aa.get(t),androidScheduleFlush:t=>{var e;(e=JA.get(t))===null||e===void 0||e()},blur:t=>{var e=dn.toDOMNode(t,t),n=dn.findDocumentOrShadowRoot(t);a1.set(t,!1),n.activeElement===e&&e.blur()},deselect:t=>{var{selection:e}=t,n=dn.findDocumentOrShadowRoot(t),r=D_(n);r&&r.rangeCount>0&&r.removeAllRanges(),e&&Pe.deselect(t)},findDocumentOrShadowRoot:t=>{var e=dn.toDOMNode(t,t),n=e.getRootNode();return n instanceof Document||n instanceof ShadowRoot?n:e.ownerDocument},findEventRange:(t,e)=>{"nativeEvent"in e&&(e=e.nativeEvent);var{clientX:n,clientY:r,target:o}=e;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));var i=dn.toSlateNode(t,e.target),s=dn.findPath(t,i);if(bt.isElement(i)&&G.isVoid(t,i)){var u=o.getBoundingClientRect(),l=t.isInline(i)?n-u.left<u.left+u.width-n:r-u.top<u.top+u.height-r,c=G.point(t,s,{edge:l?"start":"end"}),d=l?G.before(t,c):G.after(t,c);if(d){var F=G.range(t,d);return F}}var h,{document:m}=dn.getWindow(t);if(m.caretRangeFromPoint)h=m.caretRangeFromPoint(n,r);else{var D=m.caretPositionFromPoint(n,r);D&&(h=m.createRange(),h.setStart(D.offsetNode,D.offset),h.setEnd(D.offsetNode,D.offset))}if(!h)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));var g=dn.toSlateRange(t,h,{exactMatch:!1,suppressThrow:!1});return g},findKey:(t,e)=>{var n=i4.get(e);return n||(n=new ARe,i4.set(e,n)),n},findPath:(t,e)=>{for(var n=[],r=e;;){var o=KA.get(r);if(o==null){if(G.isEditor(r))return n;break}var i=WA.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(Ko.stringify(e)))},focus:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!a1.get(t)){if(e.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(t.operations.length>0){setTimeout(()=>{dn.focus(t,{retries:e.retries-1})},10);return}var n=dn.toDOMNode(t,t),r=dn.findDocumentOrShadowRoot(t);if(r.activeElement!==n){if(t.selection&&r instanceof Document){var o=D_(r),i=dn.toDOMRange(t,t.selection);o==null||o.removeAllRanges(),o==null||o.addRange(i)}t.selection||Pe.select(t,G.start(t,[])),a1.set(t,!0),n.focus({preventScroll:!0})}}},getWindow:t=>{var e=VQ.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},hasDOMNode:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:r=!1}=n,o=dn.toDOMNode(t,t),i;try{i=hs(e)?e:e.parentElement}catch(s){if(s instanceof Error&&!s.message.includes('Permission denied to access property "nodeType"'))throw s}return i?i.closest("[data-slate-editor]")===o&&(!r||i.isContentEditable?!0:typeof i.isContentEditable=="boolean"&&i.closest('[contenteditable="false"]')===o||!!i.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(t,e)=>o1(e)&&dn.hasDOMNode(t,e,{editable:!0}),hasRange:(t,e)=>{var{anchor:n,focus:r}=e;return G.hasPath(t,n.path)&&G.hasPath(t,r.path)},hasSelectableTarget:(t,e)=>dn.hasEditableTarget(t,e)||dn.isTargetInsideNonReadonlyVoid(t,e),hasTarget:(t,e)=>o1(e)&&dn.hasDOMNode(t,e),insertData:(t,e)=>{t.insertData(e)},insertFragmentData:(t,e)=>t.insertFragmentData(e),insertTextData:(t,e)=>t.insertTextData(e),isComposing:t=>!!m0.get(t),isFocused:t=>!!a1.get(t),isReadOnly:t=>!!YA.get(t),isTargetInsideNonReadonlyVoid:(t,e)=>{if(YA.get(t))return!1;var n=dn.hasTarget(t,e)&&dn.toSlateNode(t,e);return bt.isElement(n)&&G.isVoid(t,n)},setFragmentData:(t,e,n)=>t.setFragmentData(e,n),toDOMNode:(t,e)=>{var n=a4.get(t),r=G.isEditor(e)?o4.get(t):n==null?void 0:n.get(dn.findKey(t,e));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(Ko.stringify(e)));return r},toDOMPoint:(t,e)=>{var[n]=G.node(t,e.path),r=dn.toDOMNode(t,n),o;G.void(t,{at:e})&&(e={path:e.path,offset:0});for(var i="[data-slate-string], [data-slate-zero-width]",s=Array.from(r.querySelectorAll(i)),u=0,l=0;l<s.length;l++){var c=s[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),D=u+m,g=s[l+1];if(e.offset===D&&g!==null&&g!==void 0&&g.hasAttribute("data-slate-mark-placeholder")){var p,_=g.childNodes[0];o=[_ instanceof hRe?_:g,(p=g.textContent)!==null&&p!==void 0&&p.startsWith("\uFEFF")?1:0];break}if(e.offset<=D){var v=Math.min(F,Math.max(0,e.offset-u));o=[d,v];break}u=D}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(Ko.stringify(e)));return o},toDOMRange:(t,e)=>{var{anchor:n,focus:r}=e,o=Be.isBackward(e),i=dn.toDOMPoint(t,n),s=Be.isCollapsed(e)?i:dn.toDOMPoint(t,r),u=dn.getWindow(t),l=u.document.createRange(),[c,d]=o?s:i,[F,h]=o?i:s,m=hs(c)?c:c.parentElement,D=!!m.getAttribute("data-slate-zero-width"),g=hs(F)?F:F.parentElement,p=!!g.getAttribute("data-slate-zero-width");return l.setStart(c,D?1:d),l.setEnd(F,p?1:h),l},toSlateNode:(t,e)=>{var n=hs(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?p_.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(t,e,n)=>{var{exactMatch:r,suppressThrow:o,searchDirection:i="backward"}=n,[s,u]=r?e:DRe(e),l=s.parentNode,c=null,d=0;if(l){var F,h,m=dn.toDOMNode(t,t),D=l.closest('[data-slate-void="true"]'),g=D&&m.contains(D)?D:null,p=l.closest('[contenteditable="false"]'),_=p&&m.contains(p)?p:null,v=l.closest("[data-slate-leaf]"),E=null;if(v){if(c=v.closest('[data-slate-node="text"]'),c){var b=dn.getWindow(t),k=b.document.createRange();k.setStart(c,0),k.setEnd(s,u);var C=k.cloneContents(),S=[...Array.prototype.slice.call(C.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(C.querySelectorAll("[contenteditable=false]"))];S.forEach(ce=>{if(Oi&&!r&&ce.hasAttribute("data-slate-zero-width")&&ce.textContent.length>0&&ce.textContext!=="\uFEFF"){ce.textContent.startsWith("\uFEFF")&&(ce.textContent=ce.textContent.slice(1));return}ce.parentNode.removeChild(ce)}),d=C.textContent.length,E=c}}else if(g){for(var w=g.querySelectorAll("[data-slate-leaf]"),A=0;A<w.length;A++){var O=w[A];if(dn.hasDOMNode(t,O)){v=O;break}}v?(c=v.closest('[data-slate-node="text"]'),E=v,d=E.textContent.length,E.querySelectorAll("[data-slate-zero-width]").forEach(ce=>{d-=ce.textContent.length})):d=1}else if(_){var j=ce=>ce?ce.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],R=_.closest('[data-slate-node="element"]');if(i==="forward"){var M,z=[...j(R),...j(R==null?void 0:R.nextElementSibling)];v=(M=z.find(ce=>bRe(_,ce)))!==null&&M!==void 0?M:null}else{var T,P=[...j(R==null?void 0:R.previousElementSibling),...j(R)];v=(T=P.findLast(ce=>PQ(_,ce)))!==null&&T!==void 0?T:null}v&&(c=v.closest('[data-slate-node="text"]'),E=v,i==="forward"?d=0:(d=E.textContent.length,E.querySelectorAll("[data-slate-zero-width]").forEach(ce=>{d-=ce.textContent.length})))}E&&d===E.textContent.length&&Oi&&E.getAttribute("data-slate-zero-width")==="z"&&(F=E.textContent)!==null&&F!==void 0&&F.startsWith("\uFEFF")&&(l.hasAttribute("data-slate-zero-width")||lD&&(h=E.textContent)!==null&&h!==void 0&&h.endsWith(`
`))&&d--}if(Oi&&!c&&!r){var L=l.hasAttribute("data-slate-node")?l:l.closest("[data-slate-node]");if(L&&dn.hasDOMNode(t,L,{editable:!0})){var U=dn.toSlateNode(t,L),{path:te,offset:ae}=G.start(t,dn.findPath(t,U));return L.querySelector("[data-slate-leaf]")||(ae=u),{path:te,offset:ae}}}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(e))}var Fe=dn.toSlateNode(t,c),re=dn.findPath(t,Fe);return{path:re,offset:d}},toSlateRange:(t,e,n)=>{var r,{exactMatch:o,suppressThrow:i}=n,s=VA(e)?e.anchorNode:e.startContainer,u,l,c,d,F;if(s)if(VA(e)){if(lD&&e.rangeCount>1){c=e.focusNode;var h=e.getRangeAt(0),m=e.getRangeAt(e.rangeCount-1);if(c instanceof HTMLTableRowElement&&h.startContainer instanceof HTMLTableRowElement&&m.startContainer instanceof HTMLTableRowElement){let C=function(S){return S.childElementCount>0?C(S.children[0]):S};var D=h.startContainer,g=m.startContainer,p=C(D.children[h.startOffset]),_=C(g.children[m.startOffset]);d=0,_.childNodes.length>0?u=_.childNodes[0]:u=_,p.childNodes.length>0?c=p.childNodes[0]:c=p,_ instanceof HTMLElement?l=_.innerHTML.length:l=0}else h.startContainer===c?(u=m.endContainer,l=m.endOffset,d=h.startOffset):(u=h.startContainer,l=h.endOffset,d=m.startOffset)}else u=e.anchorNode,l=e.anchorOffset,c=e.focusNode,d=e.focusOffset;zQ&&gRe(u)||lD?F=e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:F=e.isCollapsed}else u=e.startContainer,l=e.startOffset,c=e.endContainer,d=e.endOffset,F=e.collapsed;if(u==null||c==null||l==null||d==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(e));lD&&(r=c.textContent)!==null&&r!==void 0&&r.endsWith(`
`)&&d===c.textContent.length&&d--;var v=dn.toSlatePoint(t,[u,l],{exactMatch:o,suppressThrow:i});if(!v)return null;var E=PQ(u,c)||u===c&&d<l,b=F?v:dn.toSlatePoint(t,[c,d],{exactMatch:o,suppressThrow:i,searchDirection:E?"forward":"backward"});if(!b)return null;var k={anchor:v,focus:b};return Be.isExpanded(k)&&Be.isForward(k)&&hs(c)&&G.void(t,{at:k.focus,mode:"highest"})&&(k=G.unhangRange(t,k,{voids:!0})),k}};function TRe(t,e){var{path:n,diff:r}=e;if(!G.hasPath(t,n))return!1;var o=at.get(t,n);if(!Ct.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 i=pe.next(n);if(!G.hasPath(t,i))return!1;var s=at.get(t,i);return Ct.isText(s)&&s.text.startsWith(r.text)}function $Q(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce((o,i)=>o.slice(0,i.start)+i.text+o.slice(i.end),t)}function IRe(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++)if(t.charAt(r)!==e.charAt(r))return r;return n}function RRe(t,e,n){for(var r=Math.min(t.length,e.length,n),o=0;o<r;o++)if(t.charAt(t.length-o-1)!==e.charAt(e.length-o-1))return o;return r}function WQ(t,e){var{start:n,end:r,text:o}=e,i=t.slice(n,r),s=IRe(i,o),u=Math.min(i.length-s,o.length-s),l=RRe(i,o,u),c={start:n+s,end:r-l,text:o.slice(s,o.length-l)};return c.start===c.end&&c.text.length===0?null:c}function ORe(t,e,n){var r=Math.min(e.start,n.start),o=Math.max(0,Math.min(e.start+e.text.length,n.end)-n.start),i=$Q(t,e,n),s=Math.max(n.start+n.text.length,e.start+e.text.length+(e.start+e.text.length>n.start?n.text.length:0)-o),u=i.slice(r,s),l=Math.max(e.end,n.end-e.text.length+(e.end-e.start));return WQ(t,{start:r,end:l,text:u})}function MRe(t){var{path:e,diff:n}=t;return{anchor:{path:e,offset:n.start},focus:{path:e,offset:n.end}}}function XA(t,e){var{path:n,offset:r}=e;if(!G.hasPath(t,n))return null;var o=at.get(t,n);if(!Ct.isText(o))return null;var i=G.above(t,{match:u=>bt.isElement(u)&&G.isBlock(t,u),at:n});if(!i)return null;for(;r>o.text.length;){var s=G.next(t,{at:n,match:Ct.isText});if(!s||!pe.isDescendant(s[1],i[1]))return null;r-=o.text.length,o=s[0],n=s[1]}return{path:n,offset:r}}function KQ(t,e){var n=XA(t,e.anchor);if(!n)return null;if(Be.isCollapsed(e))return{anchor:n,focus:n};var r=XA(t,e.focus);return r?{anchor:n,focus:r}:null}function QA(t,e,n){var r=aa.get(t),o=r==null?void 0:r.find(d=>{var{path:F}=d;return pe.equals(F,e.path)});if(!o||e.offset<=o.diff.start)return vn.transform(e,n,{affinity:"backward"});var{diff:i}=o;if(e.offset<=i.start+i.text.length){var s={path:e.path,offset:i.start},u=vn.transform(s,n,{affinity:"backward"});return u?{path:u.path,offset:u.offset+e.offset-i.start}:null}var l={path:e.path,offset:e.offset-i.text.length+i.end-i.start},c=vn.transform(l,n,{affinity:"backward"});return c?n.type==="split_node"&&pe.equals(n.path,e.path)&&l.offset<n.position&&i.start<n.position?c:{path:c.path,offset:c.offset+i.text.length-i.end+i.start}:null}function GQ(t,e,n){var r=QA(t,e.anchor,n);if(!r)return null;if(Be.isCollapsed(e))return{anchor:r,focus:r};var o=QA(t,e.focus,n);return o?{anchor:r,focus:o}:null}function PRe(t,e){var{path:n,diff:r,id:o}=t;switch(e.type){case"insert_text":return!pe.equals(e.path,n)||e.offset>=r.end?t:e.offset<=r.start?{diff:{start:e.text.length+r.start,end:e.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+e.text.length,text:r.text},id:o,path:n};case"remove_text":return!pe.equals(e.path,n)||e.offset>=r.end?t:e.offset+e.text.length<=r.start?{diff:{start:r.start-e.text.length,end:r.end-e.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-e.text.length,text:r.text},id:o,path:n};case"split_node":return!pe.equals(e.path,n)||e.position>=r.end?{diff:r,id:o,path:pe.transform(n,e,{affinity:"backward"})}:e.position>r.start?{diff:{start:r.start,end:Math.min(e.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-e.position,end:r.end-e.position,text:r.text},id:o,path:pe.transform(n,e,{affinity:"forward"})};case"merge_node":return pe.equals(e.path,n)?{diff:{start:r.start+e.position,end:r.end+e.position,text:r.text},id:o,path:pe.transform(n,e)}:{diff:r,id:o,path:pe.transform(n,e)}}var i=pe.transform(n,e);return i?{diff:r,path:i,id:o}:null}var YQ=(t,e)=>{var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},ZQ=(t,e,n)=>{var r=dn.toDOMRange(t,e).getBoundingClientRect(),o=dn.toDOMRange(t,n).getBoundingClientRect();return YQ(r,o)&&YQ(o,r)},LRe=(t,e)=>{var n=G.range(t,Be.end(e)),r=Array.from(G.positions(t,{at:e})),o=0,i=r.length,s=Math.floor(i/2);if(ZQ(t,G.range(t,r[o]),n))return G.range(t,r[o],n);if(r.length<2)return G.range(t,r[r.length-1],n);for(;s!==r.length&&s!==o;)ZQ(t,G.range(t,r[s]),n)?i=s:o=s,s=Math.floor((o+i)/2);return G.range(t,r[i],n)};function JQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function XQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?JQ(Object(n),!0).forEach(function(r){UQ(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):JQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var NRe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",n=t,{apply:r,onChange:o,deleteBackward:i,addMark:s,removeMark:u}=n;return a4.set(n,new WeakMap),n.addMark=(l,c)=>{var d,F;(d=JA.get(n))===null||d===void 0||d(),!Js.get(n)&&(F=aa.get(n))!==null&&F!==void 0&&F.length&&Js.set(n,null),pc.delete(n),s(l,c)},n.removeMark=l=>{var c;!Js.get(n)&&(c=aa.get(n))!==null&&c!==void 0&&c.length&&Js.set(n,null),pc.delete(n),u(l)},n.deleteBackward=l=>{if(l!=="line")return i(l);if(n.selection&&Be.isCollapsed(n.selection)){var c=G.above(n,{match:m=>bt.isElement(m)&&G.isBlock(n,m),at:n.selection});if(c){var[,d]=c,F=G.range(n,d,n.selection.anchor),h=LRe(n,F);Be.isCollapsed(h)||Pe.delete(n,{at:h})}}},n.apply=l=>{var c=[],d=[],F=aa.get(n);if(F!=null&&F.length){var h=F.map(M=>PRe(M,l)).filter(Boolean);aa.set(n,h)}var m=u1.get(n);m&&u1.set(n,GQ(n,m,l));var D=s1.get(n);if(D!=null&&D.at){var g=vn.isPoint(D==null?void 0:D.at)?QA(n,D.at,l):GQ(n,D.at,l);s1.set(n,g?XQ(XQ({},D),{},{at:g}):null)}switch(l.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{c.push(...hD(n,l.path));break}case"set_selection":{var p;(p=f_.get(n))===null||p===void 0||p.unref(),f_.delete(n);break}case"insert_node":case"remove_node":{c.push(...hD(n,pe.parent(l.path)));break}case"merge_node":{var _=pe.previous(l.path);c.push(...hD(n,_));break}case"move_node":{var v=pe.common(pe.parent(l.path),pe.parent(l.newPath));c.push(...hD(n,v));var E;pe.isBefore(l.path,l.newPath)?(c.push(...hD(n,pe.parent(l.path))),E=l.newPath):(c.push(...hD(n,pe.parent(l.newPath))),E=l.path);var b=at.get(t,pe.parent(E)),k=dn.findKey(n,b),C=G.pathRef(n,pe.parent(E));d.push([C,k]);break}}switch(r(l),l.type){case"insert_node":case"remove_node":case"merge_node":case"move_node":case"split_node":case"insert_text":case"remove_text":case"set_selection":cD.set(n,!0)}for(var[S,w]of c){var[A]=G.node(n,S);i4.set(A,w)}for(var[O,j]of d){if(O.current){var[R]=G.node(n,O.current);i4.set(R,j)}O.unref()}},n.setFragmentData=l=>{var{selection:c}=n;if(c){var[d,F]=Be.edges(c),h=G.void(n,{at:d.path}),m=G.void(n,{at:F.path});if(!(Be.isCollapsed(c)&&!h)){var D=dn.toDOMRange(n,c),g=D.cloneContents(),p=g.childNodes[0];if(g.childNodes.forEach(A=>{A.textContent&&A.textContent.trim()!==""&&(p=A)}),m){var[_]=m,v=D.cloneRange(),E=dn.toDOMNode(n,_);v.setEndAfter(E),g=v.cloneContents()}if(h&&(p=g.querySelector("[data-slate-spacer]")),Array.from(g.querySelectorAll("[data-slate-zero-width]")).forEach(A=>{var O=A.getAttribute("data-slate-zero-width")==="n";A.textContent=O?`
`:""}),RQ(p)){var b=p.ownerDocument.createElement("span");b.style.whiteSpace="pre",b.appendChild(p),g.appendChild(b),p=b}var k=n.getFragment(),C=JSON.stringify(k),S=window.btoa(encodeURIComponent(C));p.setAttribute("data-slate-fragment",S),l.setData("application/".concat(e),S);var w=g.ownerDocument.createElement("div");return w.appendChild(g),w.setAttribute("hidden","true"),g.ownerDocument.body.appendChild(w),l.setData("text/html",w.innerHTML),l.setData("text/plain",MQ(w)),g.ownerDocument.body.removeChild(w),l}}},n.insertData=l=>{n.insertFragmentData(l)||n.insertTextData(l)},n.insertFragmentData=l=>{var c=l.getData("application/".concat(e))||_Re(l);if(c){var d=decodeURIComponent(window.atob(c)),F=JSON.parse(d);return n.insertFragment(F),!0}return!1},n.insertTextData=l=>{var c=l.getData("text/plain");if(c){var d=c.split(/\r\n|\r|\n/),F=!1;for(var h of d)F&&Pe.splitNodes(n,{always:!0}),n.insertText(h),F=!0;return!0}return!1},n.onChange=l=>{var c=ZA.get(n);c&&c(l),o(l)},n},hD=(t,e)=>{var n=[];for(var[r,o]of G.levels(t,{at:e})){var i=dn.findKey(t,r);n.push([o,i])}return n},zRe=3,URe={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"},VRe={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"},qRe={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Lr=t=>{var e=URe[t],n=VRe[t],r=qRe[t],o=e&&jk(e),i=n&&jk(n),s=r&&jk(r);return u=>!!(o&&o(u)||NQ&&i&&i(u)||!NQ&&s&&s(u))},Gr={isBold:Lr("bold"),isCompose:Lr("compose"),isMoveBackward:Lr("moveBackward"),isMoveForward:Lr("moveForward"),isDeleteBackward:Lr("deleteBackward"),isDeleteForward:Lr("deleteForward"),isDeleteLineBackward:Lr("deleteLineBackward"),isDeleteLineForward:Lr("deleteLineForward"),isDeleteWordBackward:Lr("deleteWordBackward"),isDeleteWordForward:Lr("deleteWordForward"),isExtendBackward:Lr("extendBackward"),isExtendForward:Lr("extendForward"),isExtendLineBackward:Lr("extendLineBackward"),isExtendLineForward:Lr("extendLineForward"),isItalic:Lr("italic"),isMoveLineBackward:Lr("moveLineBackward"),isMoveLineForward:Lr("moveLineForward"),isMoveWordBackward:Lr("moveWordBackward"),isMoveWordForward:Lr("moveWordForward"),isRedo:Lr("redo"),isSoftBreak:Lr("insertSoftBreak"),isSplitBlock:Lr("splitBlock"),isTransposeCharacter:Lr("transposeCharacter"),isUndo:Lr("undo")};function HRe(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function QQ(t,e){if(t==null)return{};var n=HRe(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var $Re=["anchor","focus"],WRe=["anchor","focus"],KRe=(t,e)=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(n=>e.hasOwnProperty(n)&&t[n]===e[n]),eee=(t,e)=>{var n=QQ(t,$Re),r=QQ(e,WRe);return t[dD]===e[dD]&&KRe(n,r)},GRe=(t,e)=>{if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++){var r=t[n],o=e[n];if(!Be.equals(r,o)||!eee(r,o))return!1}return!0},YRe=(t,e)=>{if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++){var r=t[n],o=e[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!eee(r,o))return!1}return!0},D0=[],ZRe=function(){return D0.some(function(t){return t.activeTargets.length>0})},JRe=function(){return D0.some(function(t){return t.skippedTargets.length>0})},tee="ResizeObserver loop completed with undelivered notifications.",XRe=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:tee}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=tee),window.dispatchEvent(t)},__;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(__||(__={}));var g0=function(t){return Object.freeze(t)},QRe=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,g0(this)}return t}(),nee=function(){function t(e,n,r,o){return this.x=e,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,g0(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,o=e.top,i=e.right,s=e.bottom,u=e.left,l=e.width,c=e.height;return{x:n,y:r,top:o,right:i,bottom:s,left:u,width:l,height:c}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),eT=function(t){return t instanceof SVGElement&&"getBBox"in t},ree=function(t){if(eT(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var o=t,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||t.getClientRects().length)},oee=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},eOe=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},v_=typeof window<"u"?window:{},s4=new WeakMap,iee=/auto|scroll/,tOe=/^tb|vertical/,nOe=/msie|trident/i.test(v_.navigator&&v_.navigator.userAgent),Zu=function(t){return parseFloat(t||"0")},FD=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new QRe((n?e:t)||0,(n?t:e)||0)},aee=g0({devicePixelContentBoxSize:FD(),borderBoxSize:FD(),contentBoxSize:FD(),contentRect:new nee(0,0,0,0)}),see=function(t,e){if(e===void 0&&(e=!1),s4.has(t)&&!e)return s4.get(t);if(ree(t))return s4.set(t,aee),aee;var n=getComputedStyle(t),r=eT(t)&&t.ownerSVGElement&&t.getBBox(),o=!nOe&&n.boxSizing==="border-box",i=tOe.test(n.writingMode||""),s=!r&&iee.test(n.overflowY||""),u=!r&&iee.test(n.overflowX||""),l=r?0:Zu(n.paddingTop),c=r?0:Zu(n.paddingRight),d=r?0:Zu(n.paddingBottom),F=r?0:Zu(n.paddingLeft),h=r?0:Zu(n.borderTopWidth),m=r?0:Zu(n.borderRightWidth),D=r?0:Zu(n.borderBottomWidth),g=r?0:Zu(n.borderLeftWidth),p=F+c,_=l+d,v=g+m,E=h+D,b=u?t.offsetHeight-E-t.clientHeight:0,k=s?t.offsetWidth-v-t.clientWidth:0,C=o?p+v:0,S=o?_+E:0,w=r?r.width:Zu(n.width)-C-k,A=r?r.height:Zu(n.height)-S-b,O=w+p+k+v,j=A+_+b+E,R=g0({devicePixelContentBoxSize:FD(Math.round(w*devicePixelRatio),Math.round(A*devicePixelRatio),i),borderBoxSize:FD(O,j,i),contentBoxSize:FD(w,A,i),contentRect:new nee(F,l,w,A)});return s4.set(t,R),R},uee=function(t,e,n){var r=see(t,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(e){case __.DEVICE_PIXEL_CONTENT_BOX:return s;case __.BORDER_BOX:return o;default:return i}},rOe=function(){function t(e){var n=see(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=g0([n.borderBoxSize]),this.contentBoxSize=g0([n.contentBoxSize]),this.devicePixelContentBoxSize=g0([n.devicePixelContentBoxSize])}return t}(),lee=function(t){if(ree(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},oOe=function(){var t=1/0,e=[];D0.forEach(function(i){if(i.activeTargets.length!==0){var s=[];i.activeTargets.forEach(function(u){var l=new rOe(u.target),c=lee(u.target);s.push(l),u.lastReportedSize=uee(u.target,u.observedBox),c<t&&(t=c)}),e.push(function(){i.callback.call(i.observer,s,i.observer)}),i.activeTargets.splice(0,i.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var o=r[n];o()}return t},cee=function(t){D0.forEach(function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach(function(n){n.isActive()&&(lee(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))})})},iOe=function(){var t=0;for(cee(t);ZRe();)t=oOe(),cee(t);return JRe()&&XRe(),t>0},tT,dee=[],aOe=function(){return dee.splice(0).forEach(function(t){return t()})},sOe=function(t){if(!tT){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return aOe()}).observe(n,r),tT=function(){n.textContent="".concat(e?e--:e++)}}dee.push(t),tT()},uOe=function(t){sOe(function(){requestAnimationFrame(t)})},u4=0,lOe=function(){return!!u4},cOe=250,dOe={attributes:!0,characterData:!0,childList:!0,subtree:!0},hee=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Fee=function(t){return t===void 0&&(t=0),Date.now()+t},nT=!1,hOe=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=cOe),!nT){nT=!0;var r=Fee(e);uOe(function(){var o=!1;try{o=iOe()}finally{if(nT=!1,e=r-Fee(),!lOe())return;o?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,dOe)};document.body?n():v_.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),hee.forEach(function(n){return v_.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),hee.forEach(function(n){return v_.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),rT=new hOe,mee=function(t){!u4&&t>0&&rT.start(),u4+=t,!u4&&rT.stop()},FOe=function(t){return!eT(t)&&!eOe(t)&&getComputedStyle(t).display==="inline"},mOe=function(){function t(e,n){this.target=e,this.observedBox=n||__.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=uee(this.target,this.observedBox,!0);return FOe(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),DOe=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),l4=new WeakMap,Dee=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},c4=function(){function t(){}return t.connect=function(e,n){var r=new DOe(e,n);l4.set(e,r)},t.observe=function(e,n,r){var o=l4.get(e),i=o.observationTargets.length===0;Dee(o.observationTargets,n)<0&&(i&&D0.push(o),o.observationTargets.push(new mOe(n,r&&r.box)),mee(1),rT.schedule())},t.unobserve=function(e,n){var r=l4.get(e),o=Dee(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&D0.splice(D0.indexOf(r),1),r.observationTargets.splice(o,1),mee(-1))},t.disconnect=function(e){var n=this,r=l4.get(e);r.observationTargets.slice().forEach(function(o){return n.unobserve(e,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),gOe=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");c4.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!oee(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");c4.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!oee(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");c4.unobserve(this,e)},t.prototype.disconnect=function(){c4.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();function pOe(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function d4(t,e){if(t==null)return{};var n=pOe(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function b_(t){"@babel/helpers - typeof";return b_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b_(t)}function fOe(t,e){if(b_(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(b_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _Oe(t){var e=fOe(t,"string");return b_(e)==="symbol"?e:String(e)}function Ju(t,e,n){return e=_Oe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oT=f.createContext(null),l1=()=>{var t=f.useContext(oT);if(!t)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return t},Ge=dn;function gee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function h4(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gee(Object(n),!0).forEach(function(r){Ju(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gee(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var vOe=25,bOe=200,COe=function(){},EOe=t=>(t==null?void 0:t.constructor.name)==="DataTransfer";function yOe(t){var{editor:e,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=t,o=!1,i=null,s=null,u=null,l=0,c=!1,d=()=>{var R=u1.get(e);if(u1.delete(e),R){var{selection:M}=e,z=KQ(e,R);z&&(!M||!Be.equals(z,M))&&Pe.select(e,z)}},F=()=>{var R=s1.get(e);if(s1.delete(e),!!R){if(R.at){var M=vn.isPoint(R.at)?XA(e,R.at):KQ(e,R.at);if(!M)return;var z=G.range(e,M);(!e.selection||!Be.equals(e.selection,z))&&Pe.select(e,M)}R.run()}},h=()=>{if(s&&(clearTimeout(s),s=null),u&&(clearTimeout(u),u=null),!b()&&!E()){d();return}o||(o=!0,setTimeout(()=>o=!1)),E()&&(o="action");var R=e.selection&&G.rangeRef(e,e.selection,{affinity:"forward"});pc.set(e,e.marks),COe("flush",s1.get(e),aa.get(e));for(var M=b(),z;z=(T=aa.get(e))===null||T===void 0?void 0:T[0];){var T,P,L=Js.get(e);L!==void 0&&(Js.delete(e),e.marks=L),L&&c===!1&&(c=null);var U=MRe(z);(!e.selection||!Be.equals(e.selection,U))&&Pe.select(e,U),z.diff.text?G.insertText(e,z.diff.text):G.deleteFragment(e),aa.set(e,(P=aa.get(e))===null||P===void 0?void 0:P.filter(Fe=>{var{id:re}=Fe;return re!==z.id})),TRe(e,z)||(M=!1,s1.delete(e),pc.delete(e),o="action",u1.delete(e),n.cancel(),r.cancel(),R==null||R.unref())}var te=R==null?void 0:R.unref();if(te&&!u1.get(e)&&(!e.selection||!Be.equals(te,e.selection))&&Pe.select(e,te),E()){F();return}M&&n(),n.flush(),r.flush(),d();var ae=pc.get(e);pc.delete(e),ae!==void 0&&(e.marks=ae,e.onChange())},m=R=>{i&&clearTimeout(i),i=setTimeout(()=>{m0.set(e,!1),h()},vOe)},D=R=>{m0.set(e,!0),i&&(clearTimeout(i),i=null)},g=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,M=GA.get(e);if(M){if(b()||R){M.style.display="none";return}M.style.removeProperty("display")}},p=(R,M)=>{var z,T=(z=aa.get(e))!==null&&z!==void 0?z:[];aa.set(e,T);var P=at.leaf(e,R),L=T.findIndex(ae=>pe.equals(ae.path,R));if(L<0){var U=WQ(P.text,M);U&&T.push({path:R,diff:M,id:l++}),g();return}var te=ORe(P.text,T[L].diff,M);if(!te){T.splice(L,1),g();return}T[L]=h4(h4({},T[L]),{},{diff:te})},_=function(R){var{at:M}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c=!1,u1.delete(e),n.cancel(),r.cancel(),E()&&h(),s1.set(e,{at:M,run:R}),u=setTimeout(h)},v=R=>{var M;if(s&&(clearTimeout(s),s=null),!cD.get(e)){var{inputType:z}=R,T=null,P=R.dataTransfer||R.data||void 0;c!==!1&&z!=="insertText"&&z!=="insertCompositionText"&&(c=!1);var[L]=R.getTargetRanges();L&&(T=Ge.toSlateRange(e,L,{exactMatch:!1,suppressThrow:!0}));var U=Ge.getWindow(e),te=U.getSelection();if(!T&&te&&(L=te,T=Ge.toSlateRange(e,te,{exactMatch:!1,suppressThrow:!0})),T=(M=T)!==null&&M!==void 0?M:e.selection,!!T){var ae=!0;if(z.startsWith("delete")){if(Be.isExpanded(T)){var[Fe,re]=Be.edges(T),ce=at.leaf(e,Fe.path);if(ce.text.length===Fe.offset&&re.offset===0){var K=G.next(e,{at:Fe.path,match:Ct.isText});K&&pe.equals(K[1],re.path)&&(T={anchor:re,focus:re})}}var H=z.endsWith("Backward")?"backward":"forward",[q,V]=Be.edges(T),[X,ee]=G.leaf(e,q.path),J={text:"",start:q.offset,end:V.offset},de=aa.get(e),ue=de==null?void 0:de.find(N=>pe.equals(N.path,ee)),De=ue?[ue.diff,J]:[J],Ae=$Q(X.text,...De);if(Ae.length===0&&(ae=!1),Be.isExpanded(T)){if(ae&&pe.equals(T.anchor.path,T.focus.path)){var ye={path:T.anchor.path,offset:q.offset},He=G.range(e,ye,ye);return S(He),p(T.anchor.path,{text:"",end:V.offset,start:q.offset})}return _(()=>G.deleteFragment(e,{direction:H}),{at:T})}}switch(z){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return _(()=>G.deleteFragment(e),{at:T});case"deleteContent":case"deleteContentForward":{var{anchor:ze}=T;if(ae&&Be.isCollapsed(T)){var Ne=at.leaf(e,ze.path);if(ze.offset<Ne.text.length)return p(ze.path,{text:"",start:ze.offset,end:ze.offset+1})}return _(()=>G.deleteForward(e),{at:T})}case"deleteContentBackward":{var Oe,{anchor:Ue}=T,nt=VA(L)?L.isCollapsed:!!((Oe=L)!==null&&Oe!==void 0&&Oe.collapsed);return ae&&nt&&Be.isCollapsed(T)&&Ue.offset>0?p(Ue.path,{text:"",start:Ue.offset-1,end:Ue.offset}):_(()=>G.deleteBackward(e),{at:T})}case"deleteEntireSoftLine":return _(()=>{G.deleteBackward(e,{unit:"line"}),G.deleteForward(e,{unit:"line"})},{at:T});case"deleteHardLineBackward":return _(()=>G.deleteBackward(e,{unit:"block"}),{at:T});case"deleteSoftLineBackward":return _(()=>G.deleteBackward(e,{unit:"line"}),{at:T});case"deleteHardLineForward":return _(()=>G.deleteForward(e,{unit:"block"}),{at:T});case"deleteSoftLineForward":return _(()=>G.deleteForward(e,{unit:"line"}),{at:T});case"deleteWordBackward":return _(()=>G.deleteBackward(e,{unit:"word"}),{at:T});case"deleteWordForward":return _(()=>G.deleteForward(e,{unit:"word"}),{at:T});case"insertLineBreak":return _(()=>G.insertSoftBreak(e),{at:T});case"insertParagraph":return _(()=>G.insertBreak(e),{at:T});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(EOe(P))return _(()=>Ge.insertData(e,P),{at:T});var _e=P??"";if(Js.get(e)&&(_e=_e.replace("\uFEFF","")),z==="insertText"&&/.*\n.*\n$/.test(_e)&&(_e=_e.slice(0,-1)),_e.includes(`
`))return _(()=>{var N=_e.split(`
`);N.forEach((W,oe)=>{W&&G.insertText(e,W),oe!==N.length-1&&G.insertSoftBreak(e)})},{at:T});if(pe.equals(T.anchor.path,T.focus.path)){var[xt,hn]=Be.edges(T),Ze={start:xt.offset,end:hn.offset,text:_e};if(_e&&c&&z==="insertCompositionText"){var dt=c.start+c.text.search(/\S|$/),B=Ze.start+Ze.text.search(/\S|$/);B===dt+1&&Ze.end===c.start+c.text.length?(Ze.start-=1,c=null,O()):c=!1}else z==="insertText"?c===null?c=Ze:c&&Be.isCollapsed(T)&&c.end+c.text.length===xt.offset?c=h4(h4({},c),{},{text:c.text+_e}):c=!1:c=!1;if(ae){p(xt.path,Ze);return}}return _(()=>G.insertText(e,_e),{at:T})}}}}},E=()=>!!s1.get(e),b=()=>{var R;return!!((R=aa.get(e))!==null&&R!==void 0&&R.length)},k=()=>E()||b(),C=()=>o,S=R=>{u1.set(e,R),s&&(clearTimeout(s),s=null);var{selection:M}=e;if(R){var z=!M||!pe.equals(M.anchor.path,R.anchor.path),T=!M||!pe.equals(M.anchor.path.slice(0,-1),R.anchor.path.slice(0,-1));(z&&c||T)&&(c=!1),(z||b())&&(s=setTimeout(h,bOe))}},w=()=>{(E()||!b())&&h()},A=R=>{b()||(g(!0),setTimeout(g))},O=()=>{E()||(u=setTimeout(h))},j=R=>{if(!(b()||E())&&R.some(z=>qA(e,z,R))){var M;(M=qQ.get(e))===null||M===void 0||M()}};return{flush:h,scheduleFlush:O,hasPendingDiffs:b,hasPendingAction:E,hasPendingChanges:k,isFlushing:C,handleUserSelect:S,handleCompositionEnd:m,handleCompositionStart:D,handleDOMBeforeInput:v,handleKeyDown:A,handleDomMutations:j,handleInput:w}}function xOe(){var t=f.useRef(!1);return f.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),t.current}var C_=r4?f.useLayoutEffect:f.useEffect;function wOe(t,e,n){var[r]=f.useState(()=>new MutationObserver(e));C_(()=>{r.takeRecords()}),f.useEffect(()=>{if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(t.current,n),()=>r.disconnect()},[r,t,n])}var kOe=["node"];function pee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function SOe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pee(Object(n),!0).forEach(function(r){Ju(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pee(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var jOe={subtree:!0,childList:!0,characterData:!0},BOe=Oi?t=>{var{node:e}=t,n=d4(t,kOe);if(!Oi)return null;var r=l1(),o=xOe(),[i]=f.useState(()=>yOe(SOe({editor:r},n)));return wOe(e,i.handleDomMutations,jOe),JA.set(r,i.scheduleFlush),o&&i.flush(),i}:()=>null;function fee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function AOe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fee(Object(n),!0).forEach(function(r){Ju(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fee(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var TOe=t=>{var{isLast:e,leaf:n,parent:r,text:o}=t,i=l1(),s=Ge.findPath(i,o),u=pe.parent(s),l=!!n[HQ];return i.isVoid(r)?ft.createElement(iT,{length:at.string(r).length}):n.text===""&&r.children[r.children.length-1]===o&&!i.isInline(r)&&G.string(i,u)===""?ft.createElement(iT,{isLineBreak:!0,isMarkPlaceholder:l}):n.text===""?ft.createElement(iT,{isMarkPlaceholder:l}):e&&n.text.slice(-1)===`
`?ft.createElement(_ee,{isTrailing:!0,text:n.text}):ft.createElement(_ee,{text:n.text})},_ee=t=>{var{text:e,isTrailing:n=!1}=t,r=f.useRef(null),o=()=>"".concat(e??"").concat(n?`
`:""),[i]=f.useState(o);return C_(()=>{var s=o();r.current&&r.current.textContent!==s&&(r.current.textContent=s)}),ft.createElement(IOe,{ref:r},i)},IOe=f.memo(f.forwardRef((t,e)=>ft.createElement("span",{"data-slate-string":!0,ref:e},t.children))),iT=t=>{var{length:e=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=t,o={"data-slate-zero-width":n?"n":"z","data-slate-length":e};return r&&(o["data-slate-mark-placeholder"]=!0),ft.createElement("span",AOe({},o),!(Oi||LQ)||!n?"\uFEFF":null,n?ft.createElement("br",null):null)};function vee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function bee(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vee(Object(n),!0).forEach(function(r){Ju(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vee(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ROe=Oi?300:0;function OOe(t,e){t.current&&(t.current.disconnect(),e&&(t.current=null))}function Cee(t){t.current&&(clearTimeout(t.current),t.current=null)}var MOe=t=>{var{leaf:e,isLast:n,text:r,parent:o,renderPlaceholder:i,renderLeaf:s=v=>ft.createElement(LOe,bee({},v))}=t,u=l1(),l=f.useRef(null),c=f.useRef(null),[d,F]=f.useState(!1),h=f.useRef(null),m=f.useCallback(v=>{if(OOe(l,v==null),v==null){var E;GA.delete(u),(E=e.onPlaceholderResize)===null||E===void 0||E.call(e,null)}else{if(GA.set(u,v),!l.current){var b=window.ResizeObserver||gOe;l.current=new b(()=>{var k;(k=e.onPlaceholderResize)===null||k===void 0||k.call(e,v)})}l.current.observe(v),c.current=v}},[c,e,u]),D=ft.createElement(TOe,{isLast:n,leaf:e,parent:o,text:r}),g=!!e[dD];if(f.useEffect(()=>(g?h.current||(h.current=setTimeout(()=>{F(!0),h.current=null},ROe)):(Cee(h),F(!1)),()=>Cee(h)),[g,F]),g&&d){var p={children:e.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:h0?"inherit":void 0},contentEditable:!1,ref:m}};D=ft.createElement(ft.Fragment,null,i(p),D)}var _={"data-slate-leaf":!0};return s({attributes:_,children:D,leaf:e,text:r})},POe=ft.memo(MOe,(t,e)=>e.parent===t.parent&&e.isLast===t.isLast&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&e.text===t.text&&Ct.equals(e.leaf,t.leaf)&&e.leaf[dD]===t.leaf[dD]),LOe=t=>{var{attributes:e,children:n}=t;return ft.createElement("span",bee({},e),n)},NOe=t=>{for(var{decorations:e,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:i,text:s}=t,u=l1(),l=f.useRef(null),c=Ct.decorations(s,e),d=Ge.findKey(u,s),F=[],h=0;h<c.length;h++){var m=c[h];F.push(ft.createElement(POe,{isLast:n&&h===c.length-1,key:"".concat(d.id,"-").concat(h),renderPlaceholder:o,leaf:m,text:s,parent:r,renderLeaf:i}))}var D=f.useCallback(g=>{var p=a4.get(u);g?(p==null||p.set(d,g),F0.set(s,g),p_.set(g,s)):(p==null||p.delete(d),F0.delete(s),l.current&&p_.delete(l.current)),l.current=g},[l,u,d,s]);return ft.createElement("span",{"data-slate-node":"text",ref:D},F)},Eee=ft.memo(NOe,(t,e)=>e.parent===t.parent&&e.isLast===t.isLast&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&e.text===t.text&&YRe(e.decorations,t.decorations));function yee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function aT(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yee(Object(n),!0).forEach(function(r){Ju(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yee(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var zOe=t=>{var{decorations:e,element:n,renderElement:r=v=>ft.createElement(VOe,aT({},v)),renderPlaceholder:o,renderLeaf:i,selection:s}=t,u=l1(),l=HOe(),c=u.isInline(n),d=Ge.findKey(u,n),F=f.useCallback(v=>{var E=a4.get(u);v?(E==null||E.set(d,v),F0.set(n,v),p_.set(v,n)):(E==null||E.delete(d),F0.delete(n))},[u,d,n]),h=kee({decorations:e,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:s}),m={"data-slate-node":"element",ref:F};if(c&&(m["data-slate-inline"]=!0),!c&&G.hasInlines(u,n)){var D=at.string(n),g=_Q(D);g==="rtl"&&(m.dir=g)}if(G.isVoid(u,n)){m["data-slate-void"]=!0,!l&&c&&(m.contentEditable=!1);var p=c?"span":"div",[[_]]=at.texts(n);h=ft.createElement(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},ft.createElement(Eee,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:_})),WA.set(_,0),KA.set(_,n)}return r({attributes:m,children:h,element:n})},UOe=ft.memo(zOe,(t,e)=>t.element===e.element&&t.renderElement===e.renderElement&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&GRe(t.decorations,e.decorations)&&(t.selection===e.selection||!!t.selection&&!!e.selection&&Be.equals(t.selection,e.selection))),VOe=t=>{var{attributes:e,children:n,element:r}=t,o=l1(),i=o.isInline(r)?"span":"div";return ft.createElement(i,aT(aT({},e),{},{style:{position:"relative"}}),n)},xee=f.createContext(()=>[]),qOe=()=>f.useContext(xee),wee=f.createContext(!1),sT=()=>f.useContext(wee),kee=t=>{var{decorations:e,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:s}=t,u=qOe(),l=l1();cD.set(l,!1);for(var c=Ge.findPath(l,n),d=[],F=bt.isElement(n)&&!l.isInline(n)&&G.hasInlines(l,n),h=0;h<n.children.length;h++){var m=c.concat(h),D=n.children[h],g=Ge.findKey(l,D),p=G.range(l,m),_=s&&Be.intersection(p,s),v=u([D,m]);for(var E of e){var b=Be.intersection(E,p);b&&v.push(b)}bt.isElement(D)?d.push(ft.createElement(wee.Provider,{key:"provider-".concat(g.id),value:!!_},ft.createElement(UOe,{decorations:v,element:D,key:g.id,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:_}))):d.push(ft.createElement(Eee,{decorations:v,key:g.id,isLast:F&&h===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:i,text:D})),WA.set(D,h),KA.set(D,n)}return d},See=f.createContext(!1),HOe=()=>f.useContext(See),jee=f.createContext(null),p0=()=>{var t=f.useContext(jee);if(!t)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:e}=t;return e};function $Oe(){var t=l1(),e=f.useRef(!1),n=f.useRef(0),r=f.useCallback(()=>{if(!e.current){e.current=!0;var o=Ge.getWindow(t);o.cancelAnimationFrame(n.current),n.current=o.requestAnimationFrame(()=>{e.current=!1})}},[t]);return f.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:e,onUserInput:r}}var WOe=(t,e)=>{var n=[],r=()=>{n=[]},o=s=>{if(e.current){var u=s.filter(l=>qA(t,l,s));n.push(...u)}};function i(){n.length>0&&(n.reverse().forEach(s=>{s.type!=="characterData"&&(s.removedNodes.forEach(u=>{s.target.insertBefore(u,s.nextSibling)}),s.addedNodes.forEach(u=>{s.target.removeChild(u)}))}),r())}return{registerMutations:o,restoreDOM:i,clear:r}},KOe={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class Bee extends f.Component{constructor(){super(...arguments),Ju(this,"context",null),Ju(this,"manager",null),Ju(this,"mutationObserver",null)}observe(){var e,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(e=this.mutationObserver)===null||e===void 0||e.observe(n.current,KOe)}componentDidMount(){var{receivedUserInput:e}=this.props,n=this.context;this.manager=WOe(n,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,n,r,o=(e=this.mutationObserver)===null||e===void 0?void 0:e.takeRecords();if(o!=null&&o.length){var i;(i=this.manager)===null||i===void 0||i.registerMutations(o)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var e;(e=this.manager)===null||e===void 0||e.clear(),this.observe()}componentWillUnmount(){var e;(e=this.mutationObserver)===null||e===void 0||e.disconnect()}render(){return this.props.children}}Ju(Bee,"contextType",oT);var GOe=Oi?Bee:t=>{var{children:e}=t;return ft.createElement(ft.Fragment,null,e)},YOe=f.createContext(!1),ZOe=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],JOe=["text"];function Aee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Xu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Aee(Object(n),!0).forEach(function(r){Ju(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Aee(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var XOe=t=>ft.createElement(ft.Fragment,null,kee(t)),QOe=f.forwardRef((t,e)=>{var n=f.useCallback(q=>ft.createElement(eMe,Xu({},q)),[]),{autoFocus:r,decorate:o=tMe,onDOMBeforeInput:i,placeholder:s,readOnly:u=!1,renderElement:l,renderLeaf:c,renderPlaceholder:d=n,scrollSelectionIntoView:F=nMe,style:h={},as:m="div",disableDefaultStyles:D=!1}=t,g=d4(t,ZOe),p=p0(),[_,v]=f.useState(!1),E=f.useRef(null),b=f.useRef([]),[k,C]=f.useState(),S=f.useRef(!1),{onUserInput:w,receivedUserInput:A}=$Oe(),[,O]=f.useReducer(q=>q+1,0);qQ.set(p,O),YA.set(p,u);var j=f.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);f.useEffect(()=>{E.current&&r&&E.current.focus()},[r]);var R=f.useRef(),M=f.useMemo(()=>uRe(()=>{if(cD.get(p)){M();return}var q=Ge.toDOMNode(p,p),V=q.getRootNode();if(!S.current&&h0&&V instanceof ShadowRoot){S.current=!0;var X=vRe();X?document.execCommand("indent"):Pe.deselect(p),S.current=!1;return}var ee=R.current;if((Oi||!Ge.isComposing(p))&&(!j.isUpdatingSelection||ee!=null&&ee.isFlushing())&&!j.isDraggingInternally){var J=Ge.findDocumentOrShadowRoot(p),{activeElement:de}=J,ue=Ge.toDOMNode(p,p),De=D_(J);if(de===ue?(j.latestElement=de,a1.set(p,!0)):a1.delete(p),!De)return Pe.deselect(p);var{anchorNode:Ae,focusNode:ye}=De,He=Ge.hasEditableTarget(p,Ae)||Ge.isTargetInsideNonReadonlyVoid(p,Ae),ze=Ge.hasTarget(p,ye);if(He&&ze){var Ne=Ge.toSlateRange(p,De,{exactMatch:!1,suppressThrow:!0});Ne&&(!Ge.isComposing(p)&&!(ee!=null&&ee.hasPendingChanges())&&!(ee!=null&&ee.isFlushing())?Pe.select(p,Ne):ee==null||ee.handleUserSelect(Ne))}u&&(!He||!ze)&&Pe.deselect(p)}},100),[p,u,j]),z=f.useMemo(()=>nRe(M,0),[M]);R.current=BOe({node:E,onDOMSelectionChange:M,scheduleOnDOMSelectionChange:z}),C_(()=>{var q,V,X;E.current&&(X=UA(E.current))?(VQ.set(p,X),o4.set(p,E.current),F0.set(p,E.current),p_.set(E.current,p)):F0.delete(p);var{selection:ee}=p,J=Ge.findDocumentOrShadowRoot(p),de=D_(J);if(!(!de||!Ge.isFocused(p)||(q=R.current)!==null&&q!==void 0&&q.hasPendingAction())){var ue=He=>{var ze=de.type!=="None";if(!(!ee&&!ze)){var Ne=de.focusNode,Oe;if(lD&&de.rangeCount>1){var Ue=de.getRangeAt(0),nt=de.getRangeAt(de.rangeCount-1);Ue.startContainer===Ne?Oe=nt.endContainer:Oe=Ue.startContainer}else Oe=de.anchorNode;var _e=o4.get(p),xt=!1;if(_e.contains(Oe)&&_e.contains(Ne)&&(xt=!0),ze&&xt&&ee&&!He){var hn=Ge.toSlateRange(p,de,{exactMatch:!0,suppressThrow:!0});if(hn&&Be.equals(hn,ee)){var Ze;if(!j.hasMarkPlaceholder||(Ze=Oe)!==null&&Ze!==void 0&&(Ze=Ze.parentElement)!==null&&Ze!==void 0&&Ze.hasAttribute("data-slate-mark-placeholder"))return}}if(ee&&!Ge.hasRange(p,ee)){p.selection=Ge.toSlateRange(p,de,{exactMatch:!1,suppressThrow:!0});return}j.isUpdatingSelection=!0;var dt=null;try{dt=ee&&Ge.toDOMRange(p,ee)}catch{}return dt?(Ge.isComposing(p)&&!Oi?de.collapseToEnd():Be.isBackward(ee)?de.setBaseAndExtent(dt.endContainer,dt.endOffset,dt.startContainer,dt.startOffset):de.setBaseAndExtent(dt.startContainer,dt.startOffset,dt.endContainer,dt.endOffset),F(p,dt)):de.removeAllRanges(),dt}};de.rangeCount<=1&&ue();var De=((V=R.current)===null||V===void 0?void 0:V.isFlushing())==="action";if(!Oi||!De){setTimeout(()=>{j.isUpdatingSelection=!1});return}var Ae=null,ye=requestAnimationFrame(()=>{if(De){var He=ze=>{try{var Ne=Ge.toDOMNode(p,p);Ne.focus(),ue(ze)}catch{}};He(),Ae=setTimeout(()=>{He(!0),j.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(ye),Ae&&clearTimeout(Ae)}}});var T=f.useCallback(q=>{var V=Ge.toDOMNode(p,p),X=V.getRootNode();if(S!=null&&S.current&&h0&&X instanceof ShadowRoot){var ee=q.getTargetRanges(),J=ee[0],de=new window.Range;de.setStart(J.startContainer,J.startOffset),de.setEnd(J.endContainer,J.endOffset);var ue=Ge.toSlateRange(p,de,{exactMatch:!1,suppressThrow:!1});Pe.select(p,ue),q.preventDefault(),q.stopImmediatePropagation();return}if(w(),!u&&Ge.hasEditableTarget(p,q.target)&&!rMe(q,i)){var De;if(R.current)return R.current.handleDOMBeforeInput(q);z.flush(),M.flush();var{selection:Ae}=p,{inputType:ye}=q,He=q.dataTransfer||q.data||void 0,ze=ye==="insertCompositionText"||ye==="deleteCompositionText";if(ze&&Ge.isComposing(p))return;var Ne=!1;if(ye==="insertText"&&Ae&&Be.isCollapsed(Ae)&&q.data&&q.data.length===1&&/[a-z ]/i.test(q.data)&&Ae.anchor.offset!==0&&(Ne=!0,p.marks&&(Ne=!1),!cD.get(p))){var Oe,Ue,{anchor:nt}=Ae,[_e,xt]=Ge.toDOMPoint(p,nt),hn=(Oe=_e.parentElement)===null||Oe===void 0?void 0:Oe.closest("a"),Ze=Ge.getWindow(p);if(Ne&&hn&&Ge.hasDOMNode(p,hn)){var dt,B=Ze==null?void 0:Ze.document.createTreeWalker(hn,NodeFilter.SHOW_TEXT).lastChild();B===_e&&((dt=B.textContent)===null||dt===void 0?void 0:dt.length)===xt&&(Ne=!1)}if(Ne&&_e.parentElement&&(Ze==null||(Ue=Ze.getComputedStyle(_e.parentElement))===null||Ue===void 0?void 0:Ue.whiteSpace)==="pre"){var N=G.above(p,{at:nt.path,match:se=>bt.isElement(se)&&G.isBlock(p,se)});N&&at.string(N[0]).includes(" ")&&(Ne=!1)}}if((!ye.startsWith("delete")||ye.startsWith("deleteBy"))&&!cD.get(p)){var[W]=q.getTargetRanges();if(W){var oe=Ge.toSlateRange(p,W,{exactMatch:!1,suppressThrow:!1});if(!Ae||!Be.equals(Ae,oe)){Ne=!1;var ie=!ze&&p.selection&&G.rangeRef(p,p.selection);Pe.select(p,oe),ie&&f_.set(p,ie)}}}if(ze)return;if(Ne||q.preventDefault(),Ae&&Be.isExpanded(Ae)&&ye.startsWith("delete")){var ne=ye.endsWith("Backward")?"backward":"forward";G.deleteFragment(p,{direction:ne});return}switch(ye){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{G.deleteFragment(p);break}case"deleteContent":case"deleteContentForward":{G.deleteForward(p);break}case"deleteContentBackward":{G.deleteBackward(p);break}case"deleteEntireSoftLine":{G.deleteBackward(p,{unit:"line"}),G.deleteForward(p,{unit:"line"});break}case"deleteHardLineBackward":{G.deleteBackward(p,{unit:"block"});break}case"deleteSoftLineBackward":{G.deleteBackward(p,{unit:"line"});break}case"deleteHardLineForward":{G.deleteForward(p,{unit:"block"});break}case"deleteSoftLineForward":{G.deleteForward(p,{unit:"line"});break}case"deleteWordBackward":{G.deleteBackward(p,{unit:"word"});break}case"deleteWordForward":{G.deleteForward(p,{unit:"word"});break}case"insertLineBreak":G.insertSoftBreak(p);break;case"insertParagraph":{G.insertBreak(p);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{ye==="insertFromComposition"&&Ge.isComposing(p)&&(v(!1),m0.set(p,!1)),(He==null?void 0:He.constructor.name)==="DataTransfer"?Ge.insertData(p,He):typeof He=="string"&&(Ne?b.current.push(()=>G.insertText(p,He)):G.insertText(p,He));break}}var me=(De=f_.get(p))===null||De===void 0?void 0:De.unref();f_.delete(p),me&&(!p.selection||!Be.equals(p.selection,me))&&Pe.select(p,me)}},[p,M,w,i,u,z]),P=f.useCallback(q=>{q==null?(M.cancel(),z.cancel(),o4.delete(p),F0.delete(p),E.current&&i1&&E.current.removeEventListener("beforeinput",T)):i1&&q.addEventListener("beforeinput",T),E.current=q,typeof e=="function"?e(q):e&&(e.current=q)},[M,z,p,T,e]);C_(()=>{var q=Ge.getWindow(p),V=ee=>{var{target:J}=ee,de=J instanceof HTMLElement?J:null,ue=de==null?void 0:de.tagName;ue==="INPUT"||ue==="TEXTAREA"||z()};q.document.addEventListener("selectionchange",V);var X=()=>{j.isDraggingInternally=!1};return q.document.addEventListener("dragend",X),q.document.addEventListener("drop",X),()=>{q.document.removeEventListener("selectionchange",V),q.document.removeEventListener("dragend",X),q.document.removeEventListener("drop",X)}},[z,j]);var L=o([p,[]]),U=s&&p.children.length===1&&Array.from(at.texts(p)).length===1&&at.string(p)===""&&!_,te=f.useCallback(q=>{if(q&&U){var V;C((V=q.getBoundingClientRect())===null||V===void 0?void 0:V.height)}else C(void 0)},[U]);if(U){var ae=G.start(p,[]);L.push({[dD]:!0,placeholder:s,onPlaceholderResize:te,anchor:ae,focus:ae})}var{marks:Fe}=p;if(j.hasMarkPlaceholder=!1,p.selection&&Be.isCollapsed(p.selection)&&Fe){var{anchor:re}=p.selection,ce=at.leaf(p,re.path),K=d4(ce,JOe);if(!Ct.equals(ce,Fe,{loose:!0})){j.hasMarkPlaceholder=!0;var H=Object.fromEntries(Object.keys(K).map(q=>[q,null]));L.push(Xu(Xu(Xu({[HQ]:!0},H),Fe),{},{anchor:re,focus:re}))}}return f.useEffect(()=>{setTimeout(()=>{var{selection:q}=p;if(q){var{anchor:V}=q,X=at.leaf(p,V.path);if(Fe&&!Ct.equals(X,Fe,{loose:!0})){Js.set(p,Fe);return}}Js.delete(p)})}),ft.createElement(See.Provider,{value:u},ft.createElement(YOe.Provider,{value:_},ft.createElement(xee.Provider,{value:o},ft.createElement(GOe,{node:E,receivedUserInput:A},ft.createElement(m,Xu(Xu({role:u?void 0:"textbox","aria-multiline":u?void 0:!0},g),{},{spellCheck:i1||!r4?g.spellCheck:!1,autoCorrect:i1||!r4?g.autoCorrect:"false",autoCapitalize:i1||!r4?g.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!u,zindex:-1,suppressContentEditableWarning:!0,ref:P,style:Xu(Xu({},D?{}:Xu({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},k?{minHeight:k}:{})),h),onBeforeInput:f.useCallback(q=>{if(!i1&&!u&&!Mi(q,g.onBeforeInput)&&Ge.hasSelectableTarget(p,q.target)&&(q.preventDefault(),!Ge.isComposing(p))){var V=q.data;G.insertText(p,V)}},[g.onBeforeInput,p,u]),onInput:f.useCallback(q=>{if(!Mi(q,g.onInput)){if(R.current){R.current.handleInput();return}for(var V of b.current)V();if(b.current=[],!Ge.isFocused(p)){var X=q.nativeEvent,ee=p;if(X.inputType==="historyUndo"&&typeof ee.undo=="function"){ee.undo();return}if(X.inputType==="historyRedo"&&typeof ee.redo=="function"){ee.redo();return}}}},[g.onInput,p]),onBlur:f.useCallback(q=>{if(!(u||j.isUpdatingSelection||!Ge.hasSelectableTarget(p,q.target)||Mi(q,g.onBlur))){var V=Ge.findDocumentOrShadowRoot(p);if(j.latestElement!==V.activeElement){var{relatedTarget:X}=q,ee=Ge.toDOMNode(p,p);if(X!==ee&&!(hs(X)&&X.hasAttribute("data-slate-spacer"))){if(X!=null&&o1(X)&&Ge.hasDOMNode(p,X)){var J=Ge.toSlateNode(p,X);if(bt.isElement(J)&&!p.isVoid(J))return}if(h0){var de=D_(V);de==null||de.removeAllRanges()}a1.delete(p)}}}},[u,j.isUpdatingSelection,j.latestElement,p,g.onBlur]),onClick:f.useCallback(q=>{if(Ge.hasTarget(p,q.target)&&!Mi(q,g.onClick)&&o1(q.target)){var V=Ge.toSlateNode(p,q.target),X=Ge.findPath(p,V);if(!G.hasPath(p,X)||at.get(p,X)!==V)return;if(q.detail===zRe&&X.length>=1){var ee=X;if(!(bt.isElement(V)&&G.isBlock(p,V))){var J,de=G.above(p,{match:Ne=>bt.isElement(Ne)&&G.isBlock(p,Ne),at:X});ee=(J=de==null?void 0:de[1])!==null&&J!==void 0?J:X.slice(0,1)}var ue=G.range(p,ee);Pe.select(p,ue);return}if(u)return;var De=G.start(p,X),Ae=G.end(p,X),ye=G.void(p,{at:De}),He=G.void(p,{at:Ae});if(ye&&He&&pe.equals(ye[1],He[1])){var ze=G.range(p,De);Pe.select(p,ze)}}},[p,g.onClick,u]),onCompositionEnd:f.useCallback(q=>{if(Ge.hasSelectableTarget(p,q.target)){var V;if(Ge.isComposing(p)&&Promise.resolve().then(()=>{v(!1),m0.set(p,!1)}),(V=R.current)===null||V===void 0||V.handleCompositionEnd(q),Mi(q,g.onCompositionEnd)||Oi)return;if(!h0&&!xRe&&!LQ&&!kRe&&!wRe&&q.data){var X=Js.get(p);Js.delete(p),X!==void 0&&(pc.set(p,p.marks),p.marks=X),G.insertText(p,q.data);var ee=pc.get(p);pc.delete(p),ee!==void 0&&(p.marks=ee)}}},[g.onCompositionEnd,p]),onCompositionUpdate:f.useCallback(q=>{Ge.hasSelectableTarget(p,q.target)&&!Mi(q,g.onCompositionUpdate)&&(Ge.isComposing(p)||(v(!0),m0.set(p,!0)))},[g.onCompositionUpdate,p]),onCompositionStart:f.useCallback(q=>{if(Ge.hasSelectableTarget(p,q.target)){var V;if((V=R.current)===null||V===void 0||V.handleCompositionStart(q),Mi(q,g.onCompositionStart)||Oi)return;v(!0);var{selection:X}=p;if(X&&Be.isExpanded(X)){G.deleteFragment(p);return}}},[g.onCompositionStart,p]),onCopy:f.useCallback(q=>{Ge.hasSelectableTarget(p,q.target)&&!Mi(q,g.onCopy)&&!Tee(q)&&(q.preventDefault(),Ge.setFragmentData(p,q.clipboardData,"copy"))},[g.onCopy,p]),onCut:f.useCallback(q=>{if(!u&&Ge.hasSelectableTarget(p,q.target)&&!Mi(q,g.onCut)&&!Tee(q)){q.preventDefault(),Ge.setFragmentData(p,q.clipboardData,"cut");var{selection:V}=p;if(V)if(Be.isExpanded(V))G.deleteFragment(p);else{var X=at.parent(p,V.anchor.path);G.isVoid(p,X)&&Pe.delete(p)}}},[u,p,g.onCut]),onDragOver:f.useCallback(q=>{if(Ge.hasTarget(p,q.target)&&!Mi(q,g.onDragOver)){var V=Ge.toSlateNode(p,q.target);bt.isElement(V)&&G.isVoid(p,V)&&q.preventDefault()}},[g.onDragOver,p]),onDragStart:f.useCallback(q=>{if(!u&&Ge.hasTarget(p,q.target)&&!Mi(q,g.onDragStart)){var V=Ge.toSlateNode(p,q.target),X=Ge.findPath(p,V),ee=bt.isElement(V)&&G.isVoid(p,V)||G.void(p,{at:X,voids:!0});if(ee){var J=G.range(p,X);Pe.select(p,J)}j.isDraggingInternally=!0,Ge.setFragmentData(p,q.dataTransfer,"drag")}},[u,p,g.onDragStart,j]),onDrop:f.useCallback(q=>{if(!u&&Ge.hasTarget(p,q.target)&&!Mi(q,g.onDrop)){q.preventDefault();var V=p.selection,X=Ge.findEventRange(p,q),ee=q.dataTransfer;Pe.select(p,X),j.isDraggingInternally&&V&&!Be.equals(V,X)&&!G.void(p,{at:X,voids:!0})&&Pe.delete(p,{at:V}),Ge.insertData(p,ee),Ge.isFocused(p)||Ge.focus(p)}},[u,p,g.onDrop,j]),onDragEnd:f.useCallback(q=>{!u&&j.isDraggingInternally&&g.onDragEnd&&Ge.hasTarget(p,q.target)&&g.onDragEnd(q)},[u,j,g,p]),onFocus:f.useCallback(q=>{if(!u&&!j.isUpdatingSelection&&Ge.hasEditableTarget(p,q.target)&&!Mi(q,g.onFocus)){var V=Ge.toDOMNode(p,p),X=Ge.findDocumentOrShadowRoot(p);if(j.latestElement=X.activeElement,lD&&q.target!==V){V.focus();return}a1.set(p,!0)}},[u,j,p,g.onFocus]),onKeyDown:f.useCallback(q=>{if(!u&&Ge.hasEditableTarget(p,q.target)){var V;(V=R.current)===null||V===void 0||V.handleKeyDown(q);var{nativeEvent:X}=q;if(Ge.isComposing(p)&&X.isComposing===!1&&(m0.set(p,!1),v(!1)),Mi(q,g.onKeyDown)||Ge.isComposing(p))return;var{selection:ee}=p,J=p.children[ee!==null?ee.focus.path[0]:0],de=_Q(at.string(J))==="rtl";if(Gr.isRedo(X)){q.preventDefault();var ue=p;typeof ue.redo=="function"&&ue.redo();return}if(Gr.isUndo(X)){q.preventDefault();var De=p;typeof De.undo=="function"&&De.undo();return}if(Gr.isMoveLineBackward(X)){q.preventDefault(),Pe.move(p,{unit:"line",reverse:!0});return}if(Gr.isMoveLineForward(X)){q.preventDefault(),Pe.move(p,{unit:"line"});return}if(Gr.isExtendLineBackward(X)){q.preventDefault(),Pe.move(p,{unit:"line",edge:"focus",reverse:!0});return}if(Gr.isExtendLineForward(X)){q.preventDefault(),Pe.move(p,{unit:"line",edge:"focus"});return}if(Gr.isMoveBackward(X)){q.preventDefault(),ee&&Be.isCollapsed(ee)?Pe.move(p,{reverse:!de}):Pe.collapse(p,{edge:de?"end":"start"});return}if(Gr.isMoveForward(X)){q.preventDefault(),ee&&Be.isCollapsed(ee)?Pe.move(p,{reverse:de}):Pe.collapse(p,{edge:de?"start":"end"});return}if(Gr.isMoveWordBackward(X)){q.preventDefault(),ee&&Be.isExpanded(ee)&&Pe.collapse(p,{edge:"focus"}),Pe.move(p,{unit:"word",reverse:!de});return}if(Gr.isMoveWordForward(X)){q.preventDefault(),ee&&Be.isExpanded(ee)&&Pe.collapse(p,{edge:"focus"}),Pe.move(p,{unit:"word",reverse:de});return}if(i1){if((zQ||h0)&&ee&&(Gr.isDeleteBackward(X)||Gr.isDeleteForward(X))&&Be.isCollapsed(ee)){var Ae=at.parent(p,ee.anchor.path);if(bt.isElement(Ae)&&G.isVoid(p,Ae)&&(G.isInline(p,Ae)||G.isBlock(p,Ae))){q.preventDefault(),G.deleteBackward(p,{unit:"block"});return}}}else{if(Gr.isBold(X)||Gr.isItalic(X)||Gr.isTransposeCharacter(X)){q.preventDefault();return}if(Gr.isSoftBreak(X)){q.preventDefault(),G.insertSoftBreak(p);return}if(Gr.isSplitBlock(X)){q.preventDefault(),G.insertBreak(p);return}if(Gr.isDeleteBackward(X)){q.preventDefault(),ee&&Be.isExpanded(ee)?G.deleteFragment(p,{direction:"backward"}):G.deleteBackward(p);return}if(Gr.isDeleteForward(X)){q.preventDefault(),ee&&Be.isExpanded(ee)?G.deleteFragment(p,{direction:"forward"}):G.deleteForward(p);return}if(Gr.isDeleteLineBackward(X)){q.preventDefault(),ee&&Be.isExpanded(ee)?G.deleteFragment(p,{direction:"backward"}):G.deleteBackward(p,{unit:"line"});return}if(Gr.isDeleteLineForward(X)){q.preventDefault(),ee&&Be.isExpanded(ee)?G.deleteFragment(p,{direction:"forward"}):G.deleteForward(p,{unit:"line"});return}if(Gr.isDeleteWordBackward(X)){q.preventDefault(),ee&&Be.isExpanded(ee)?G.deleteFragment(p,{direction:"backward"}):G.deleteBackward(p,{unit:"word"});return}if(Gr.isDeleteWordForward(X)){q.preventDefault(),ee&&Be.isExpanded(ee)?G.deleteFragment(p,{direction:"forward"}):G.deleteForward(p,{unit:"word"});return}}}},[u,p,g.onKeyDown]),onPaste:f.useCallback(q=>{!u&&Ge.hasEditableTarget(p,q.target)&&!Mi(q,g.onPaste)&&(!i1||mRe(q.nativeEvent)||h0)&&(q.preventDefault(),Ge.insertData(p,q.clipboardData))},[u,p,g.onPaste])}),ft.createElement(XOe,{decorations:L,node:p,renderElement:l,renderPlaceholder:d,renderLeaf:c,selection:p.selection}))))))}),eMe=t=>{var{attributes:e,children:n}=t;return ft.createElement("span",Xu({},e),n,Oi&&ft.createElement("br",null))},tMe=()=>[],nMe=(t,e)=>{if(e.getBoundingClientRect&&(!t.selection||t.selection&&Be.isCollapsed(t.selection))){var n=e.startContainer.parentElement;n.getBoundingClientRect=e.getBoundingClientRect.bind(e),dRe(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},Mi=(t,e)=>{if(!e)return!1;var n=e(t);return n??(t.isDefaultPrevented()||t.isPropagationStopped())},Tee=t=>o1(t.target)&&(t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement),rMe=(t,e)=>{if(!e)return!1;var n=e(t);return n??t.defaultPrevented},Iee=f.createContext(!1),uT=()=>f.useContext(Iee),oMe=f.createContext({});function iMe(t){var e=f.useRef([]).current,n=f.useRef({editor:t}).current,r=f.useCallback(i=>{n.editor=i,e.forEach(s=>s(i))},[e,n]),o=f.useMemo(()=>({getSlate:()=>n.editor,addEventListener:i=>(e.push(i),()=>{e.splice(e.indexOf(i),1)})}),[e,n]);return{selectorContext:o,onChange:r}}var Ree=parseInt(ft.version.split(".")[0],10),aMe=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],sMe=t=>{var{editor:e,children:n,onChange:r,onSelectionChange:o,onValueChange:i,initialValue:s}=t,u=d4(t,aMe),[l,c]=ft.useState(()=>{if(!at.isNodeList(s))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(Ko.stringify(s)));if(!G.isEditor(e))throw new Error("[Slate] editor is invalid! You passed: ".concat(Ko.stringify(e)));return e.children=s,Object.assign(e,u),{v:0,editor:e}}),{selectorContext:d,onChange:F}=iMe(e),h=f.useCallback(g=>{var p;switch(r&&r(e.children),g==null||(p=g.operation)===null||p===void 0?void 0:p.type){case"set_selection":o==null||o(e.selection);break;default:i==null||i(e.children)}c(_=>({v:_.v+1,editor:e})),F(e)},[e,F,r,o,i]);f.useEffect(()=>(ZA.set(e,h),()=>{ZA.set(e,()=>{})}),[e,h]);var[m,D]=f.useState(Ge.isFocused(e));return f.useEffect(()=>{D(Ge.isFocused(e))},[e]),C_(()=>{var g=()=>D(Ge.isFocused(e));return Ree>=17?(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)})},[]),ft.createElement(oMe.Provider,{value:d},ft.createElement(jee.Provider,{value:l},ft.createElement(oT.Provider,{value:l.editor},ft.createElement(Iee.Provider,{value:m},n))))},uMe=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",n=t;n=NRe(n,e);var{onChange:r}=n;return n.onChange=o=>{var i=Ree<18?sP.unstable_batchedUpdates:s=>s();i(()=>{r(o)})},n},lMe="e9hhgc2 _1mqalmd1 _1mqalmd0",cMe="e9hhgc0 _1mqalmd1 _1mqalmd0",dMe="e9hhgc1 _1mqalmd1 _1mqalmd0",hMe="e9hhgc3 _1mqalmd1 _1mqalmd0";function F4({headerContent:t,requestClose:e,children:n}){const r=yr(),o=()=>{r()&&e()};return a.jsx("div",{className:cMe,children:a.jsx("div",{className:dMe,children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onPostDeactivate:o,returnFocusOnDeactivate:!1,clickOutsideDeactivates:!0,allowOutsideClick:!0,isKeyForward:i=>Mn("arrowdown",i),isKeyBackward:i=>Mn("arrowup",i),escapeDeactivates:vt},children:a.jsxs(zt,{className:lMe,children:[a.jsx(In,{className:hMe,size:"400",children:t}),a.jsx(Mt,{style:{flexGrow:1},onKeyDown:RN,children:a.jsx("div",{style:{padding:le.space.S200},children:n})})]})})})})}var c1=(t=>(t.RoomMention="#",t.UserMention="@",t.Emoticon=":",t.Command="/",t))(c1||{});const Oee=["#","@",":","/"],FMe=(t,e,n)=>{const r=G.string(t,e);return n.find(o=>r.startsWith(o))},mMe=(t,e,n)=>G.string(t,e).slice(n.length),Mee=(t,e,n)=>{const r=FMe(t,e,n);if(r)return{range:e,prefix:r,text:mMe(t,e,r)}};var kr=(t=>(t.Bold="bold",t.Italic="italic",t.Underline="underline",t.StrikeThrough="strikeThrough",t.Code="code",t.Spoiler="spoiler",t))(kr||{}),Le=(t=>(t.Paragraph="paragraph",t.Heading="heading",t.CodeLine="code-line",t.CodeBlock="code-block",t.QuoteLine="quote-line",t.BlockQuote="block-quote",t.ListItem="list-item",t.OrderedList="ordered-list",t.UnorderedList="unordered-list",t.Mention="mention",t.Emoticon="emoticon",t.Link="link",t.Command="command",t))(Le||{});const Pee=[kr.Bold,kr.Code,kr.Italic,kr.Spoiler,kr.StrikeThrough,kr.Underline],lT=(t,e)=>{const n=G.marks(t);return n?n[e]===!0:!1},m4=t=>{const e=G.marks(t);return e&&!!Pee.find(n=>e[n]===!0)},Lee=(t,e)=>{lT(t,e)?G.removeMark(t,e):G.addMark(t,e,!0)},D4=t=>{Pee.forEach(e=>{lT(t,e)&&G.removeMark(t,e)})},fc=(t,e)=>{const[n]=G.nodes(t,{match:r=>bt.isElement(r)&&r.type===e});return!!n},DMe=t=>{const[e]=G.nodes(t,{match:r=>bt.isElement(r)&&r.type===Le.Heading}),[n]=e??[];if(n&&"level"in n)return n.level},gMe=[Le.OrderedList,Le.UnorderedList,Le.BlockQuote,Le.CodeBlock],Xs=(t,e,n)=>{Pe.collapse(t,{edge:"end"});const r=fc(t,e);if(Pe.unwrapNodes(t,{match:o=>bt.isElement(o)&&gMe.includes(o.type),split:!0}),r){Pe.setNodes(t,{type:Le.Paragraph});return}if(e===Le.OrderedList||e===Le.UnorderedList){Pe.setNodes(t,{type:Le.ListItem});const o={type:e,children:[]};Pe.wrapNodes(t,o);return}if(e===Le.CodeBlock){Pe.setNodes(t,{type:Le.CodeLine});const o={type:e,children:[]};Pe.wrapNodes(t,o);return}if(e===Le.BlockQuote){Pe.setNodes(t,{type:Le.QuoteLine});const o={type:e,children:[]};Pe.wrapNodes(t,o);return}e===Le.Heading&&Pe.setNodes(t,{type:e,level:(n==null?void 0:n.level)??1}),Pe.setNodes(t,{type:e})},cT=t=>{Pe.delete(t,{at:{anchor:G.start(t,[]),focus:G.end(t,[])}}),Xs(t,Le.Paragraph),D4(t)},dT=t=>{t.history={undos:[],redos:[]}},mD=(t,e,n,r,o)=>({type:Le.Mention,id:t,eventId:r,viaServers:o,highlight:n,name:e,children:[{text:""}]}),g4=(t,e)=>({type:Le.Emoticon,key:t,shortcode:e,children:[{text:""}]}),pMe=t=>({type:Le.Command,command:t,children:[{text:""}]}),p4=(t,e,n)=>{Pe.select(t,e),Pe.insertNodes(t,n),Pe.collapse(t,{edge:"end"})},f0=(t,e)=>{Pe.move(t),e&&t.insertText(" ")},fMe=(t,e,n)=>{let r,o,i;const s=G.positions(t,{at:{anchor:G.start(t,[]),focus:G.point(t,e,{edge:"start"})},unit:"character",reverse:n.reverse});for(const u of s){if(!vn.equals(u,e)&&o){if(i=G.string(t,{anchor:u,focus:o}),n.match(i))break;r=u}o=u}return r},Nee=t=>{const{selection:e}=t;if(!e||!Be.isCollapsed(e))return;const[n]=Be.edges(e),r=fMe(t,n,{reverse:!0,match:o=>o===" "});return r&&G.range(t,r,n)},hT=t=>{const e=t.children[0];return e&&bt.isElement(e)?t.children.length===1&&G.isEmpty(t,e):!1},zee=t=>{const e=t.children[0];if(!bt.isElement(e)||e.type!==Le.Paragraph)return;const[n,r]=e.children;if(Ct.isText(n)&&n.text.trim()===""&&bt.isElement(r)&&r.type===Le.Command)return r.command},Uee=(t,e)=>Sf(`#${e}`)?`#${e}`:`#${e}${e.endsWith(":")?"":":"}${xu(t.getUserId()??"")}`;function _Me({query:t,handleAutocomplete:e}){const n=ge(),r=Uee(n,t.text),o=()=>e(r,r);return a.jsx(tt,{as:"button",radii:"300",onKeyDown:i=>lu(i,o),onClick:o,before:a.jsx(Rt,{size:"200",children:a.jsx(Q,{src:$.Hash,size:"100"})}),children:a.jsx(x,{style:{flexGrow:1},size:"B400",children:r})})}const vMe={matchOptions:{contain:!0}};function Vee({roomId:t,editor:e,query:n,requestClose:r}){const o=ge(),i=_t(Co),s=_t(nr).sort(c3(o)),[u,l,c]=Qd(s,f.useCallback(h=>{const m=o.getRoom(h);if(!m)return"Unknown Room";const D=m.getCanonicalAlias();return D?[m.name,D]:m.name},[o]),vMe),d=u?u.items.slice(0,20):s.slice(0,20);f.useEffect(()=>{n.text?l(n.text):c()},[n.text,l,c]);const F=(h,m)=>{var _;const D=o.getRoom(h),g=D?wd(D):void 0,p=mD(h,m.startsWith("#")?m:`#${m}`,t===h||((_=o.getRoom(t))==null?void 0:_.getCanonicalAlias())===h,void 0,g);p4(e,n.range,p),f0(e,!0),r()};return jd(window,h=>{lu(h,()=>{if(d.length===0){const p=Uee(o,n.text);F(p,p);return}const m=d[0],D=o.getRoom(m),g=(D==null?void 0:D.name)??m;F((D==null?void 0:D.getCanonicalAlias())??m,g)})}),a.jsx(F4,{headerContent:a.jsx(x,{size:"L400",children:"Rooms"}),requestClose:r,children:d.length===0?a.jsx(_Me,{query:n,handleAutocomplete:F}):d.map(h=>{const m=o.getRoom(h);if(!m)return null;const D=i.has(m.roomId),g=()=>F(m.getCanonicalAlias()??h,m.name);return a.jsx(tt,{as:"button",radii:"300",onKeyDown:p=>lu(p,g),onClick:g,after:a.jsx(x,{size:"T200",priority:"300",truncate:!0,children:m.getCanonicalAlias()??""}),before:a.jsx(Rt,{size:"200",children:D?a.jsx(ho,{roomId:m.roomId,src:DC(o,m),alt:m.name,renderFallback:()=>a.jsx(ts,{size:"50",joinRule:m.getJoinRule()??un.Restricted,filled:!0})}):a.jsx(ts,{size:"100",joinRule:m.getJoinRule(),space:m.isSpaceRoom()})}),children:a.jsx(x,{style:{flexGrow:1},size:"B400",truncate:!0,children:m.name})},h)})})}const f4=(t,e)=>{const[n,r]=f.useState([]);return f.useEffect(()=>{const o=t.getRoom(e);let i=!0,s=!1;const u=l=>{!o||s||l&&l.getRoomId()!==e||i||r(o.getMembers())};return o&&(r(o.getMembers()),o.loadMembersIfNeeded().then(()=>{i=!1,!s&&u()})),t.on(oo.Membership,u),t.on(oo.PowerLevel,u),()=>{s=!0,t.removeListener(oo.Membership,u),t.removeListener(oo.PowerLevel,u)}},[t,e]),n},FT=(t,e)=>Sf(`@${e}`)?`@${e}`:`@${e}${e.endsWith(":")?"":":"}${xu(t.getUserId()??"")}`;function qee({userId:t,name:e,handleAutocomplete:n}){return a.jsx(tt,{as:"button",radii:"300",onKeyDown:r=>lu(r,()=>n(t,e)),onClick:()=>n(t,e),before:a.jsx(Rt,{size:"200",children:a.jsx(wa,{userId:t,renderFallback:()=>a.jsx(Q,{size:"50",src:$.User,filled:!0})})}),children:a.jsx(x,{style:{flexGrow:1},size:"B400",children:e})})}const bMe=t=>t.membership===$n.Join||t.membership===$n.Invite||t.membership===$n.Knock,CMe={limit:1e3,matchOptions:{contain:!0}},EMe=t=>ln(t)??t,yMe=(t,e)=>X5(t,e,EMe);function Hee({room:t,editor:e,query:n,requestClose:r}){const o=ge(),i=Tt(),s=t.roomId,u=t.getCanonicalAlias()||s,l=f4(o,s),[c,d,F]=Qd(l,yMe,CMe),h=(c?c.items.slice(0,20):l.slice(0,20)).filter(bMe);f.useEffect(()=>{n.text?d(n.text):F()},[n.text,d,F]);const m=(g,p)=>{const _=mD(g,p.startsWith("@")?p:`@${p}`,o.getUserId()===g||u===g);p4(e,n.range,_),f0(e,!0),r()};jd(window,g=>{lu(g,()=>{if(n.text==="room"){m(u,"@room");return}if(h.length===0){const _=FT(o,n.text);m(_,_);return}const p=h[0];m(p.userId,p.name)})});const D=g=>wr(t,g.userId)??ln(g.userId)??g.userId;return a.jsxs(F4,{headerContent:a.jsx(x,{size:"L400",children:"Mentions"}),requestClose:r,children:[n.text==="room"&&a.jsx(qee,{userId:u,name:"@room",handleAutocomplete:m}),h.length===0?a.jsx(qee,{userId:FT(o,n.text),name:FT(o,n.text),handleAutocomplete:m}):h.map(g=>{const p=g.getMxcAvatarUrl(),_=p?o.mxcUrlToHttp(p,32,32,"crop",void 0,!1,i):void 0;return a.jsx(tt,{as:"button",radii:"300",onKeyDown:v=>lu(v,()=>m(g.userId,D(g))),onClick:()=>m(g.userId,D(g)),after:a.jsx(x,{size:"T200",priority:"300",truncate:!0,children:g.userId}),before:a.jsx(Rt,{size:"200",children:a.jsx(wa,{userId:g.userId,src:_??void 0,alt:D(g),renderFallback:()=>a.jsx(Q,{size:"50",src:$.User,filled:!0})})}),children:a.jsx(x,{style:{flexGrow:1},size:"B400",truncate:!0,children:D(g)})},g.userId)})]})}const xMe={matchOptions:{contain:!0}};function $ee({imagePackRooms:t,editor:e,query:n,requestClose:r}){const o=ge(),i=Tt(),s=DX(fr.Emoticon,t),u=gA(o,20),l=f.useMemo(()=>[].concat(s.flatMap(D=>D.getImages(fr.Emoticon)),C8),[s]),[c,d,F]=Qd(l,pX,xMe),h=c?c.items.slice(0,20):u;f.useEffect(()=>{n.text?d(n.text):F()},[n.text,d,F]);const m=(D,g)=>{const p=g4(D,g);p4(e,n.range,p),f0(e,!0),r()};return jd(window,D=>{lu(D,()=>{if(h.length===0)return;const g=h[0],p="url"in g?g.url:g.unicode;m(p,g.shortcode)})}),h.length===0?null:a.jsx(F4,{headerContent:a.jsx(x,{size:"L400",children:"Emojis"}),requestClose:r,children:h.map(D=>{const g="url"in D,p=g?D.url:D.unicode;return a.jsx(tt,{as:"button",radii:"300",onKeyDown:_=>lu(_,()=>m(p,D.shortcode)),onClick:()=>m(p,D.shortcode),before:g?a.jsx(y,{shrink:"No",as:"img",src:Xt(o,p,i)||p,alt:D.shortcode,style:{width:Dt(24),height:Dt(24),objectFit:"contain"}}):a.jsx(y,{shrink:"No",as:"span",display:"InlineFlex",style:{fontSize:Dt(24),lineHeight:Dt(24)},children:p}),children:a.jsxs(x,{style:{flexGrow:1},size:"B400",truncate:!0,children:[":",D.shortcode,":"]})},D.shortcode+p)})})}var wMe={isHistory(t){return Wo(t)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||r1.isOperationList(t.redos[0].operations))&&(t.undos.length===0||r1.isOperationList(t.undos[0].operations))}},mT=new WeakMap,_0=new WeakMap,_4=new WeakMap,Qu={isHistoryEditor(t){return wMe.isHistory(t.history)&&G.isEditor(t)},isMerging(t){return _0.get(t)},isSplittingOnce(t){return _4.get(t)},setSplittingOnce(t,e){_4.set(t,e)},isSaving(t){return mT.get(t)},redo(t){t.redo()},undo(t){t.undo()},withMerging(t,e){var n=Qu.isMerging(t);_0.set(t,!0),e(),_0.set(t,n)},withNewBatch(t,e){var n=Qu.isMerging(t);_0.set(t,!0),_4.set(t,!0),e(),_0.set(t,n),_4.delete(t)},withoutMerging(t,e){var n=Qu.isMerging(t);_0.set(t,!1),e(),_0.set(t,n)},withoutSaving(t,e){var n=Qu.isSaving(t);mT.set(t,!1),e(),mT.set(t,n)}},kMe=t=>{var e=t,{apply:n}=e;return e.history={undos:[],redos:[]},e.redo=()=>{var{history:r}=e,{redos:o}=r;if(o.length>0){var i=o[o.length-1];i.selectionBefore&&Pe.setSelection(e,i.selectionBefore),Qu.withoutSaving(e,()=>{G.withoutNormalizing(e,()=>{for(var s of i.operations)e.apply(s)})}),r.redos.pop(),e.writeHistory("undos",i)}},e.undo=()=>{var{history:r}=e,{undos:o}=r;if(o.length>0){var i=o[o.length-1];Qu.withoutSaving(e,()=>{G.withoutNormalizing(e,()=>{var s=i.operations.map(r1.inverse).reverse();for(var u of s)e.apply(u);i.selectionBefore&&Pe.setSelection(e,i.selectionBefore)})}),e.writeHistory("redos",i),r.undos.pop()}},e.apply=r=>{var{operations:o,history:i}=e,{undos:s}=i,u=s[s.length-1],l=u&&u.operations[u.operations.length-1],c=Qu.isSaving(e),d=Qu.isMerging(e);if(c==null&&(c=jMe(r)),c){if(d==null&&(u==null?d=!1:o.length!==0?d=!0:d=SMe(r,l)),Qu.isSplittingOnce(e)&&(d=!1,Qu.setSplittingOnce(e,void 0)),u&&d)u.operations.push(r);else{var F={operations:[r],selectionBefore:e.selection};e.writeHistory("undos",F)}for(;s.length>100;)s.shift();i.redos=[]}n(r)},e.writeHistory=(r,o)=>{e.history[r].push(o)},e},SMe=(t,e)=>!!(e&&t.type==="insert_text"&&e.type==="insert_text"&&t.offset===e.offset+e.text.length&&pe.equals(t.path,e.path)||e&&t.type==="remove_text"&&e.type==="remove_text"&&t.offset+t.text.length===e.offset&&pe.equals(t.path,e.path)),jMe=(t,e)=>t.type!=="set_selection";function v0(){return a.jsx("span",{className:o4e,contentEditable:!1,children:String.fromCodePoint(160)})}function BMe({attributes:t,element:e,children:n}){const r=sT(),o=uT();return a.jsxs("span",{...t,className:b8({highlight:e.highlight,focus:r&&o}),contentEditable:!1,children:[e.name,n]})}function AMe({attributes:t,element:e,children:n}){const r=sT(),o=uT(),i=p0();return a.jsxs("span",{...t,className:n4e({focus:r&&o,active:zee(i)===e.command}),contentEditable:!1,children:[`/${e.command}`,n]})}function TMe({attributes:t,element:e,children:n}){const r=ge(),o=Tt(),i=sT(),s=uT();return a.jsx("span",{className:xj,...t,children:a.jsxs("span",{className:yj({focus:i&&s}),contentEditable:!1,children:[e.key.startsWith("mxc://")?a.jsx("img",{className:xG,src:Xt(r,e.key,o)??e.key,alt:e.shortcode}):e.key,n]})})}function IMe({attributes:t,element:e,children:n}){return a.jsxs("a",{href:e.href,...t,children:[a.jsx(v0,{}),n]})}function RMe({attributes:t,element:e,children:n}){switch(e.type){case Le.Paragraph:return a.jsx(x,{...t,className:wj,children:n});case Le.Heading:return e.level===1?a.jsx(x,{className:Uu,as:"h2",size:"H2",...t,children:n}):e.level===2?a.jsx(x,{className:Uu,as:"h3",size:"H3",...t,children:n}):e.level===3?a.jsx(x,{className:Uu,as:"h4",size:"H4",...t,children:n}):a.jsx(x,{className:Uu,as:"h3",size:"H3",...t,children:n});case Le.CodeLine:return a.jsx("div",{...t,children:n});case Le.CodeBlock:return a.jsx(x,{as:"pre",className:EG,...t,children:a.jsx(Mt,{direction:"Horizontal",variant:"Secondary",size:"300",visibility:"Hover",hideTrack:!0,children:a.jsx("div",{className:yG,children:n})})});case Le.QuoteLine:return a.jsx("div",{...t,children:n});case Le.BlockQuote:return a.jsx(x,{as:"blockquote",className:CG,...t,children:n});case Le.ListItem:return a.jsx(x,{as:"li",...t,children:n});case Le.OrderedList:return a.jsx("ol",{className:v8,...t,children:n});case Le.UnorderedList:return a.jsx("ul",{className:v8,...t,children:n});case Le.Mention:return a.jsx(BMe,{attributes:t,element:e,children:n});case Le.Emoticon:return a.jsx(TMe,{attributes:t,element:e,children:n});case Le.Link:return a.jsx(IMe,{attributes:t,element:e,children:n});case Le.Command:return a.jsx(AMe,{attributes:t,element:e,children:n});default:return a.jsx(x,{className:wj,...t,children:n})}}function OMe({attributes:t,leaf:e,children:n}){let r=n;return e.bold&&(r=a.jsxs("strong",{...t,children:[a.jsx(v0,{}),r]})),e.italic&&(r=a.jsxs("i",{...t,children:[a.jsx(v0,{}),r]})),e.underline&&(r=a.jsxs("u",{...t,children:[a.jsx(v0,{}),r]})),e.strikeThrough&&(r=a.jsxs("s",{...t,children:[a.jsx(v0,{}),r]})),e.code&&(r=a.jsxs("code",{className:nc,...t,children:[a.jsx(v0,{}),r]})),e.spoiler&&(r=a.jsxs("span",{className:wG(),...t,children:[a.jsx(v0,{}),r]})),r!==n?r:a.jsx("span",{...t,children:r})}var MMe="coabsl0 _1mqalmd1 _1mqalmd0",Wee="coabsl1 _1mqalmd1 _1mqalmd0",PMe="coabsl4 _1mqalmd1 _1mqalmd0",LMe="coabsl3 _1mqalmd1 _1mqalmd0",NMe="coabsl2",zMe="coabsl6",UMe="coabsl5",VMe="coabsl7";const Kee={"mod+b":kr.Bold,"mod+i":kr.Italic,"mod+u":kr.Underline,"mod+s":kr.StrikeThrough,"mod+[":kr.Code,"mod+h":kr.Spoiler},qMe=Object.keys(Kee),Gee={"mod+7":Le.OrderedList,"mod+8":Le.UnorderedList,"mod+'":Le.BlockQuote,"mod+;":Le.CodeBlock},HMe=Object.keys(Gee),$Me=Mn("mod+1"),WMe=Mn("mod+2"),KMe=Mn("mod+3"),GMe=(t,e)=>{if(Mn("backspace",e)&&t.selection&&Be.isCollapsed(t.selection)){const n=Be.start(t.selection);if(n.offset!==0)return!1;const[r,o]=G.parent(t,n),i={at:o},[s]=G.previous(t,i)??[],[u]=G.next(t,i)??[];return G.isEditor(r)?!1:r.type===Le.Heading||(r.type===Le.CodeLine||r.type===Le.QuoteLine||r.type===Le.ListItem)&&(!s||!u)?(Xs(t,Le.Paragraph),!0):(bt.isElement(s)&&s.type!==Le.Paragraph&&Pe.unwrapNodes(t,{at:n}),G.deleteBackward(t),!0)}return Mn("mod+e",e)||Mn("escape",e)?m4(t)?(D4(t),!0):fc(t,Le.Paragraph)?!1:(Xs(t,Le.Paragraph),!0):HMe.find(n=>Mn(n,e)?(e.preventDefault(),Xs(t,Gee[n]),!0):!1)?!0:$Me(e)?(Xs(t,Le.Heading,{level:1}),!0):WMe(e)?(Xs(t,Le.Heading,{level:2}),!0):KMe(e)?(Xs(t,Le.Heading,{level:3}),!0):!!(!fc(t,Le.CodeBlock)&&qMe.find(n=>Mn(n,e)?(e.preventDefault(),Lee(t,Kee[n]),!0):!1))},YMe=[{type:Le.Paragraph,children:[{text:""}]}],ZMe=t=>{const{isInline:e}=t;return t.isInline=n=>[Le.Mention,Le.Emoticon,Le.Link,Le.Command].includes(n.type)||e(n),t},JMe=t=>{const{isVoid:e}=t;return t.isVoid=n=>[Le.Mention,Le.Emoticon,Le.Command].includes(n.type)||e(n),t},Yee=()=>{const[t]=f.useState(()=>ZMe(JMe(uMe(kMe(QTe())))));return t},Zee=f.forwardRef(({editableName:t,top:e,bottom:n,before:r,after:o,maxHeight:i="50vh",editor:s,placeholder:u,onKeyDown:l,onKeyUp:c,onChange:d,onPaste:F},h)=>{const m=f.useCallback(_=>a.jsx(RMe,{..._}),[]),D=f.useCallback(_=>a.jsx(OMe,{..._}),[]),g=f.useCallback(_=>{l==null||l(_),GMe(s,_)&&_.preventDefault()},[s,l]),p=f.useCallback(({attributes:_,children:v})=>{const{style:E,...b}=_;return a.jsx(x,{as:"span",...b,className:PMe,contentEditable:!1,truncate:!0,children:v})},[]);return a.jsx("div",{className:MMe,ref:h,children:a.jsxs(sMe,{editor:s,initialValue:YMe,onChange:d,children:[e,a.jsxs(y,{alignItems:"Start",children:[r&&a.jsx(y,{className:Wee,alignItems:"Center",gap:"100",shrink:"No",children:r}),a.jsx(Mt,{className:NMe,variant:"SurfaceVariant",style:{maxHeight:i},size:"300",visibility:"Hover",hideTrack:!0,children:a.jsx(QOe,{"data-editable-name":t,className:LMe,placeholder:u,renderPlaceholder:p,renderElement:m,renderLeaf:D,onKeyDown:g,onKeyUp:c,onPaste:F})}),o&&a.jsx(y,{className:Wee,alignItems:"Center",gap:"100",shrink:"No",children:o})]}),n]})})}),XMe=/^(#{1,6}) +(.+)\n?/m,QMe={match:t=>t.match(XMe),html:(t,e)=>{const[,n,r]=t,o=n.length;return`<h${o} data-md="${n}">${e?e(r):r}</h${o}>`}},ePe="```",tPe=/^`{3}(\S*)\n((?:.*\n)+?)`{3} *(?!.)\n?/m,nPe={match:t=>t.match(tPe),html:t=>{const[,e,n]=t,r=e?` class="language-${e}"`:"";return`<pre data-md="${ePe}"><code${r}>${n}</code></pre>`}},rPe=">",oPe=/^> */,iPe=/\n$/,aPe=/(^>.*\n?)+/m,sPe={match:t=>t.match(aPe),html:(t,e)=>{const[n]=t,r=n.replace(iPe,"").split(`
`).map(o=>{const i=o.replace(oPe,"");return e?`${e(i)}<br/>`:`${i}<br/>`}).join("");return`<blockquote data-md="${rPe}">${r}</blockquote>`}},uPe="-",lPe=/^(-|[\da-zA-Z]\.) */,cPe=/^([\d])\./,dPe=/^([aAiI])\./,hPe=/\n$/,FPe=/(^(?:-|[\da-zA-Z]\.) +.+\n?)+/m,mPe={match:t=>t.match(FPe),html:(t,e)=>{const[n]=t,[,r]=n.match(cPe)??[],[,o]=n.match(dPe)??[],i=n.replace(hPe,"").split(`
`).map(c=>{const d=c.replace(lPe,"");return`<li><p>${e?e(d):d}</p></li>`}).join(""),s=`data-md="${o||r||uPe}"`,u=r?` start="${r}"`:"",l=o?` type="${o}"`:"";return`<ol ${s}${u}${l}>${i}</ol>`}},DPe="*",gPe=/^\* */,pPe=/\n$/,fPe=/(^\* +.+\n?)+/m,_Pe={match:t=>t.match(fPe),html:(t,e)=>{const[n]=t,r=n.replace(pPe,"").split(`
`).map(o=>{const i=o.replace(gPe,"");return`<li><p>${e?e(i):i}</p></li>`}).join("");return`<ul data-md="${DPe}">${r}</ul>`}},vPe=/^\\*(#{1,6} +|```|>|(-|[\da-zA-Z]\.) +|\* +)/,Jee=/^\\(\\*(#{1,6} +|```|>|(-|[\da-zA-Z]\.) +|\* +))/,b0="(.+?)",_c="(?<!(https?|ftp|mailto|magnet):\\/\\/\\S*)",C0="(?<!\\\\)",bPe="**",Xee=`${C0}\\*{2}`,CPe="(?!\\*)",EPe=new RegExp(`${_c}${Xee}${b0}${Xee}${CPe}`),yPe={match:t=>t.match(EPe),html:(t,e)=>{const[,,n]=e;return`<strong data-md="${bPe}">${t(n)}</strong>`}},xPe="*",Qee=`${C0}\\*`,wPe="(?!\\*)",kPe=new RegExp(`${_c}${Qee}${b0}${Qee}${wPe}`),SPe={match:t=>t.match(kPe),html:(t,e)=>{const[,,n]=e;return`<i data-md="${xPe}">${t(n)}</i>`}},jPe="_",ete=`${C0}_`,BPe="(?!_)",APe=new RegExp(`${_c}${ete}${b0}${ete}${BPe}`),TPe={match:t=>t.match(APe),html:(t,e)=>{const[,,n]=e;return`<i data-md="${jPe}">${t(n)}</i>`}},IPe="__",tte=`${C0}_{2}`,RPe="(?!_)",OPe=new RegExp(`${_c}${tte}${b0}${tte}${RPe}`),MPe={match:t=>t.match(OPe),html:(t,e)=>{const[,,n]=e;return`<u data-md="${IPe}">${t(n)}</u>`}},PPe="~~",nte=`${C0}~{2}`,LPe="(?!~)",NPe=new RegExp(`${_c}${nte}${b0}${nte}${LPe}`),zPe={match:t=>t.match(NPe),html:(t,e)=>{const[,,n]=e;return`<s data-md="${PPe}">${t(n)}</s>`}},UPe="`",rte=`${C0}\``,VPe="(?!`)",qPe=new RegExp(`${_c}${rte}(.+?)${rte}${VPe}`),HPe={match:t=>t.match(qPe),html:(t,e)=>{const[,,n]=e;return`<code data-md="${UPe}">${n}</code>`}},$Pe="||",ote=`${C0}\\|{2}`,WPe="(?!\\|)",KPe=new RegExp(`${_c}${ote}${b0}${ote}${WPe}`),GPe={match:t=>t.match(KPe),html:(t,e)=>{const[,,n]=e;return`<span data-md="${$Pe}" data-mx-spoiler>${t(n)}</span>`}},YPe=`\\[${b0}\\]`,ZPe="\\((https?:\\/\\/.+?)\\)",JPe=new RegExp(`${YPe}${ZPe}`),XPe={match:t=>t.match(JPe),html:(t,e)=>{const[,n,r]=e;return`<a data-md href="${r}">${t(n)}</a>`}},ite="[*_~`|]",QPe=`${_c}${ite}`,eLe=`\\\\(${ite})`,tLe=new RegExp(`${_c}${eLe}`),ate={match:t=>t.match(tLe),html:(t,e)=>{const[,,n]=e;return n}},nLe=(t,e)=>t.slice(0,e.index),rLe=(t,e)=>t.slice((e.index??0)+e[0].length),DD=(t,e,n,r)=>[...r(nLe(t,e)),n,...r(rLe(t,e))],ste=(t,e,n)=>{const r=e.match(t);if(r){const o=e.html(n,r);return DD(t,r,o,i=>[n(i)]).join("")}},oLe=(t,e,n)=>{const r=e.map(s=>s.match(t));let o,i;for(let s=0;s<r.length;s+=1){const u=r[s];u&&typeof u.index=="number"&&(!i||typeof(i==null?void 0:i.index)=="number"&&u.index<i.index)&&(i=u,o=e[s])}if(o&&i){const s=o.html(n,i);return DD(t,i,s,u=>[n(u)]).join("")}},ute=t=>ste(t,ate,e=>e===""?e:ute(e))??t,lte=t=>{const e=new RegExp(`(${QPe})`,"g");return E8(t,e,n=>{const[,r]=n;return`\\${r}`},n=>n).join("")},iLe=(t,e)=>{const n=t.match(Jee);if(!n)return e(t);const[,r]=n;return DD(t,n,r,o=>[e(o)]).join("")},cte=(t,e)=>{const n=t.match(vPe);if(!n)return e(t);const[,r]=n;return DD(t,n,`\\${r}`,o=>[e(o)]).join("")},E_=(t,e,n,r)=>{const o=e.match(t);if(o){const i=e.html(o,r);return DD(t,o,i,s=>[n(s,r)]).join("")}},E0=(t,e)=>{if(t==="")return t;let n;return n||(n=E_(t,nPe,E0,e)),n||(n=E_(t,sPe,E0,e)),n||(n=E_(t,mPe,E0,e)),n||(n=E_(t,_Pe,E0,e)),n||(n=E_(t,QMe,E0,e)),n||(n=t.split(`
`).map(r=>{const o=r.match(Jee);if(!o)return(e==null?void 0:e(r))??r;const[,i]=o;return DD(r,o,i,s=>[(e==null?void 0:e(s))??s]).join("")}).join("<br/>")),n??t},aLe=[yPe,SPe,MPe,TPe,zPe,GPe,XPe,ate],v4=t=>{if(t==="")return t;let e;return e||(e=ste(t,HPe,v4)),e||(e=oLe(t,aLe,v4)),e??t},sLe=(t,e)=>{let n=Yd(t.text);return e.allowTextFormatting&&(t.bold&&(n=`<strong>${n}</strong>`),t.italic&&(n=`<i>${n}</i>`),t.underline&&(n=`<u>${n}</u>`),t.strikeThrough&&(n=`<s>${n}</s>`),t.code&&(n=`<code>${n}</code>`),t.spoiler&&(n=`<span data-mx-spoiler>${n}</span>`)),e.allowInlineMarkdown&&n===Yd(t.text)&&(n=v4(n)),n},uLe=(t,e)=>{switch(t.type){case Le.Paragraph:return`${e}<br/>`;case Le.Heading:return`<h${t.level}>${e}</h${t.level}>`;case Le.CodeLine:return`${e}
`;case Le.CodeBlock:return`<pre><code>${e}</code></pre>`;case Le.QuoteLine:return`${e}<br/>`;case Le.BlockQuote:return`<blockquote>${e}</blockquote>`;case Le.ListItem:return`<li><p>${e}</p></li>`;case Le.OrderedList:return`<ol>${e}</ol>`;case Le.UnorderedList:return`<ul>${e}</ul>`;case Le.Mention:{let n=t.id;t.eventId&&(n+=`/${t.eventId}`),t.viaServers&&t.viaServers.length>0&&(n+=`?${t.viaServers.map(o=>`via=${o}`).join("&")}`);const r=`https://matrix.to/#/${n}`;return`<a href="${encodeURI(r)}">${Yd(t.name)}</a>`}case Le.Emoticon:return t.key.startsWith("mxc://")?`<img data-mx-emoticon src="${t.key}" alt="${Yd(t.shortcode)}" title="${Yd(t.shortcode)}" height="32" />`:Yd(t.key);case Le.Link:return`<a href="${encodeURI(t.href)}">${t.children}</a>`;case Le.Command:return`/${Yd(t.command)}`;default:return e}},lLe=/<([\w-]+)(?: [^>]*)?(?:(?:\/>)|(?:>.*?<\/\1>))/g,dte=t=>E8(t,lLe,e=>e[0],e=>v4(e)).join(""),y_=(t,e)=>{let n="";const r=(i,s,u)=>{if(e.allowBlockMarkdown&&"type"in i&&i.type===Le.Paragraph){const c=y_(i,{...e,allowInlineMarkdown:!1,allowBlockMarkdown:!1}).replace(/<br\/>$/,`
`).replace(/^(\\*)&gt;/,"$1>");return n+=c,s===u.length-1?E0(n,dte):""}const l=E0(n,dte);return n="","type"in i&&i.type===Le.CodeLine?`${l}${y_(i,{})}`:`${l}${y_(i,{...e,allowBlockMarkdown:!1})}`};if(Array.isArray(t))return t.map(r).join("");if(Ct.isText(t))return sLe(t,e);const o=t.children.map(r).join("");return uLe(t,o)},cLe=(t,e)=>{switch(t.type){case Le.Paragraph:return`${e}
`;case Le.Heading:return`${e}
`;case Le.CodeLine:return`${e}
`;case Le.CodeBlock:return`${e}
`;case Le.QuoteLine:return`| ${e}
`;case Le.BlockQuote:return`${e}
`;case Le.ListItem:return`- ${e}
`;case Le.OrderedList:return`${e}
`;case Le.UnorderedList:return`${e}
`;case Le.Mention:return t.id;case Le.Emoticon:return t.key.startsWith("mxc://")?`:${t.shortcode}:`:t.key;case Le.Link:return`[${t.children}](${t.href})`;case Le.Command:return`/${t.command}`;default:return e}},b4=(t,e)=>{if(Array.isArray(t))return t.map(r=>b4(r,e)).join("");if(Ct.isText(t))return e?iLe(t.text,ute):t.text;const n=t.children.map(r=>b4(r,e)).join("");return cLe(t,n)},DT=(t,e)=>t.replace(/<br\/>/g,`
`)===Yd(e),hte=t=>t.replace(/<br\/>$/g,"").trim(),Fte=(t,e)=>{const n=new RegExp(`^(\\s+)?(\\/${Bf(t)})([^\\S
]+)?`),r=e.match(n);return r?e.slice(r[0].length):e},mte=(t,e,n)=>{const r={room:!1,users:new Set},o=i=>{if(!Ct.isText(i)&&i.type!==Le.CodeBlock){if(i.type===Le.Mention){i.id===vo(t,e)&&(r.room=!0),wu(i.id)&&i.id!==t.getUserId()&&r.users.add(i.id);return}i.children.forEach(o)}};return n.children.forEach(o),r};var x_=(t=>(t.Command="\u2318",t.Shift="\u21E7",t.Option="\u2325",t.Control="\u2303",t.Hyper="\u2726",t.Super="\u2756",t.Escape="\u238B",t))(x_||{});function Pi({text:t,shortCode:e}){return a.jsx(Ao,{style:{padding:le.space.S300},children:a.jsxs(y,{gap:"200",direction:"Column",alignItems:"Center",children:[a.jsx(x,{align:"Center",children:t}),e&&a.jsx(Bt,{as:"kbd",radii:"300",size:"500",children:a.jsx(x,{size:"T200",align:"Center",children:e})})]})})}function gD({format:t,icon:e,tooltip:n}){const r=p0(),o=fc(r,Le.CodeBlock);o&&D4(r);const i=()=>{Lee(r,t),Ge.focus(r)};return a.jsx(Br,{tooltip:n,delay:500,children:s=>a.jsx(Me,{ref:s,variant:"SurfaceVariant",onClick:i,"aria-pressed":lT(r,t),size:"400",radii:"300",disabled:o,children:a.jsx(Q,{size:"200",src:e})})})}function C4({format:t,icon:e,tooltip:n}){const r=p0(),o=()=>{Xs(r,t,{level:1}),Ge.focus(r)};return a.jsx(Br,{tooltip:n,delay:500,children:i=>a.jsx(Me,{ref:i,variant:"SurfaceVariant",onClick:o,"aria-pressed":fc(r,t),size:"400",radii:"300",children:a.jsx(Q,{size:"200",src:e})})})}function dLe(){const t=p0(),e=DMe(t),[n,r]=f.useState(),o=fc(t,Le.Heading),i=CA()?x_.Command:"Ctrl",s=l=>{r(void 0),Xs(t,Le.Heading,{level:l}),Ge.focus(t)},u=l=>{if(o){Xs(t,Le.Heading);return}r(l.currentTarget.getBoundingClientRect())};return a.jsx(Ut,{anchor:n,offset:5,position:"Top",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>r(void 0),clickOutsideDeactivates:!0,isKeyForward:l=>l.key==="ArrowDown"||l.key==="ArrowRight",isKeyBackward:l=>l.key==="ArrowUp"||l.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(zt,{style:{padding:le.space.S100},children:a.jsxs(y,{gap:"100",children:[a.jsx(Br,{tooltip:a.jsx(Pi,{text:"Heading 1",shortCode:`${i} + 1`}),delay:500,children:l=>a.jsx(Me,{ref:l,onClick:()=>s(1),size:"400",radii:"300",children:a.jsx(Q,{size:"200",src:$.Heading1})})}),a.jsx(Br,{tooltip:a.jsx(Pi,{text:"Heading 2",shortCode:`${i} + 2`}),delay:500,children:l=>a.jsx(Me,{ref:l,onClick:()=>s(2),size:"400",radii:"300",children:a.jsx(Q,{size:"200",src:$.Heading2})})}),a.jsx(Br,{tooltip:a.jsx(Pi,{text:"Heading 3",shortCode:`${i} + 3`}),delay:500,children:l=>a.jsx(Me,{ref:l,onClick:()=>s(3),size:"400",radii:"300",children:a.jsx(Q,{size:"200",src:$.Heading3})})})]})})}),children:a.jsxs(Me,{style:{width:"unset"},variant:"SurfaceVariant",onClick:u,"aria-pressed":o,size:"400",radii:"300",children:[a.jsx(Q,{size:"200",src:e?$[`Heading${e}`]:$.Heading1}),a.jsx(Q,{size:"200",src:o?$.Cross:$.ChevronBottom})]})})}function hLe({tooltip:t}){const e=p0(),n=()=>{m4(e)?D4(e):fc(e,Le.Paragraph)||Xs(e,Le.Paragraph),Ge.focus(e)};return a.jsx(Br,{tooltip:t,delay:500,children:r=>a.jsx(Me,{ref:r,variant:"SurfaceVariant",onClick:n,size:"400",radii:"300",children:a.jsx(x,{size:"B400",children:`Exit ${x_.Hyper}`})})})}function Dte(){const t=p0(),e=CA()?x_.Command:"Ctrl",n=fc(t,Le.CodeBlock),r=fc(t,Le.Paragraph)?m4(t):Ge.isFocused(t),[o,i]=Ft(ut,"isMarkdown");return a.jsx(y,{className:UMe,children:a.jsx(Mt,{direction:"Horizontal",size:"0",children:a.jsxs(y,{className:zMe,alignItems:"Center",gap:"300",children:[a.jsxs(a.Fragment,{children:[a.jsxs(y,{shrink:"No",gap:"100",children:[a.jsx(gD,{format:kr.Bold,icon:$.Bold,tooltip:a.jsx(Pi,{text:"Bold",shortCode:`${e} + B`})}),a.jsx(gD,{format:kr.Italic,icon:$.Italic,tooltip:a.jsx(Pi,{text:"Italic",shortCode:`${e} + I`})}),a.jsx(gD,{format:kr.Underline,icon:$.Underline,tooltip:a.jsx(Pi,{text:"Underline",shortCode:`${e} + U`})}),a.jsx(gD,{format:kr.StrikeThrough,icon:$.Strike,tooltip:a.jsx(Pi,{text:"Strike Through",shortCode:`${e} + S`})}),a.jsx(gD,{format:kr.Code,icon:$.Code,tooltip:a.jsx(Pi,{text:"Inline Code",shortCode:`${e} + [`})}),a.jsx(gD,{format:kr.Spoiler,icon:$.EyeBlind,tooltip:a.jsx(Pi,{text:"Spoiler",shortCode:`${e} + H`})})]}),a.jsx(jn,{variant:"SurfaceVariant",direction:"Vertical",style:{height:Dt(12)}})]}),a.jsxs(y,{shrink:"No",gap:"100",children:[a.jsx(C4,{format:Le.BlockQuote,icon:$.BlockQuote,tooltip:a.jsx(Pi,{text:"Block Quote",shortCode:`${e} + '`})}),a.jsx(C4,{format:Le.CodeBlock,icon:$.BlockCode,tooltip:a.jsx(Pi,{text:"Block Code",shortCode:`${e} + ;`})}),a.jsx(C4,{format:Le.OrderedList,icon:$.OrderList,tooltip:a.jsx(Pi,{text:"Ordered List",shortCode:`${e} + 7`})}),a.jsx(C4,{format:Le.UnorderedList,icon:$.UnorderList,tooltip:a.jsx(Pi,{text:"Unordered List",shortCode:`${e} + 8`})}),a.jsx(dLe,{})]}),r&&a.jsxs(a.Fragment,{children:[a.jsx(jn,{variant:"SurfaceVariant",direction:"Vertical",style:{height:Dt(12)}}),a.jsx(y,{shrink:"No",gap:"100",children:a.jsx(hLe,{tooltip:a.jsx(Pi,{text:"Exit Formatting",shortCode:`Escape, ${e} + E`})})})]}),a.jsxs(y,{className:VMe,shrink:"No",grow:"Yes",justifyContent:"End",children:[a.jsx(Br,{align:"End",tooltip:a.jsx(Pi,{text:"Toggle Markdown"}),delay:500,children:s=>a.jsx(Me,{ref:s,variant:"SurfaceVariant",onClick:()=>i(!o),"aria-pressed":o,size:"300",radii:"300",disabled:n||!!m4(t),children:a.jsx(Q,{size:"200",src:$.Markdown,filled:o})})}),a.jsx("span",{})]})]})})})}const pD=t=>eo.isText(t)?t.data:eo.isTag(t)?t.children.map(e=>pD(e)).join(""):"",FLe=t=>{if(t.name==="b"||t.name==="strong")return kr.Bold;if(t.name==="i"||t.name==="em")return kr.Italic;if(t.name==="u")return kr.Underline;if(t.name==="s"||t.name==="del")return kr.StrikeThrough;if(t.name==="code")return t.parent&&"name"in t.parent&&t.parent.name==="pre"?void 0:kr.Code;if(t.name==="span"&&t.attribs["data-mx-spoiler"]!==void 0)return kr.Spoiler},mLe=(t,e,n)=>{const r=e.children.flatMap(n),o=e.attribs["data-md"];return o!==void 0?(r.unshift({text:o}),r.push({text:o}),r):(r.forEach(i=>{Ct.isText(i)&&(i[t]=!0)}),r)},DLe=t=>{if(t.name==="img"&&t.attribs["data-mx-emoticon"]!==void 0){const{src:e,alt:n}=t.attribs;return e?g4(e,n||"Unknown Emoji"):void 0}if(t.name==="a"){const e=pd(t.attribs.href);if(typeof e!="string")return;if(vE(e)){const n=uK(e);if(n)return mD(n,pD(t)||n,!1);const r=lK(e);if(r)return mD(r.roomIdOrAlias,pD(t)||r.roomIdOrAlias,!1,void 0,r.viaServers);const o=cK(e);if(o)return mD(o.roomIdOrAlias,pD(t)||o.roomIdOrAlias,!1,o.eventId,o.viaServers)}}},el=(t,e)=>{if(eo.isText(t))return[{text:e(t.data)}];if(eo.isTag(t)){const n=FLe(t);if(n)return mLe(n,t,o=>n===kr.Code?[{text:pD(o)}]:el(o,e));const r=DLe(t);if(r)return[r];if(t.name==="a"){const o=t.childNodes.flatMap(i=>el(i,e));return o.unshift({text:"["}),o.push({text:`](${t.attribs.href})`}),o}return t.childNodes.flatMap(o=>el(o,e))}return[]},gLe=(t,e)=>{const n=[];let r=[];const o=()=>{r.length!==0&&(n.push(r),r=[])};t.children.forEach(s=>{if(eo.isText(s)){r.push({text:e(s.data)});return}if(eo.isTag(s)){if(s.name==="br"){r.push({text:""}),o();return}if(s.name==="p"){o(),n.push(s.children.flatMap(u=>el(u,e)));return}r.push(...el(s,e))}}),o();const i=t.attribs["data-md"];return i!==void 0?n.map(s=>({type:Le.Paragraph,children:[{text:`${i} `},...s]})):[{type:Le.BlockQuote,children:n.map(s=>({type:Le.QuoteLine,children:s}))}]},pLe=t=>{const e=pD(t).trim().split(`
`),n=t.attribs["data-md"];if(n!==void 0){const r=e.map(l=>({type:Le.Paragraph,children:[{text:l}]})),o=t.children[0],i=eo.isTag(o)&&o.tagName==="code"?o.attribs.class??"":"",s={text:`${n}${i.replace("language-","")}`},u={text:n};return[{type:Le.Paragraph,children:[s]},...r,{type:Le.Paragraph,children:[u]}]}return[{type:Le.CodeBlock,children:e.map(r=>({type:Le.CodeLine,children:[{text:r}]}))}]},fLe=(t,e)=>{const n=[];let r=[];const o=()=>{r.length!==0&&(n.push(r),r=[])};t.children.forEach(s=>{if(eo.isText(s)){r.push({text:e(s.data)});return}if(eo.isTag(s)){if(s.name==="br"){r.push({text:""}),o();return}if(s.name==="li"){o(),n.push(s.children.flatMap(u=>el(u,e)));return}r.push(...el(s,e))}}),o();const i=t.attribs["data-md"];if(i!==void 0){const s=i||"-",[u]=s.match(/^\*|-$/)??[];return n.map(l=>({type:Le.Paragraph,children:[{text:`${u?`${u} `:`${s}. `} `},...l]}))}return t.name==="ol"?[{type:Le.OrderedList,children:n.map(s=>({type:Le.ListItem,children:s}))}]:[{type:Le.UnorderedList,children:n.map(s=>({type:Le.ListItem,children:s}))}]},_Le=(t,e)=>{const n=t.children.flatMap(u=>el(u,e)),r=t.name.match(/^h([123456])$/),[,o]=r??["h3","3"],i=parseInt(o,10),s=t.attribs["data-md"];return s!==void 0?{type:Le.Paragraph,children:[{text:`${s} `},...n]}:{type:Le.Heading,level:i<=3?i:3,children:n}},vLe=(t,e,n)=>{const r=[];let o=[];const i=()=>{o.length!==0&&(r.push({type:Le.Paragraph,children:o}),o=[])};return t.forEach(s=>{if(eo.isText(s)){if(o.length===0){o.push({text:n(s.data)});return}o.push({text:e(s.data)});return}if(eo.isTag(s)){if(s.name==="br"){o.push({text:""}),i();return}if(s.name==="p"){i(),r.push({type:Le.Paragraph,children:s.children.flatMap(u=>el(u,e))});return}if(s.name==="blockquote"){i(),r.push(...gLe(s,e));return}if(s.name==="pre"){i(),r.push(...pLe(s));return}if(s.name==="ol"||s.name==="ul"){i(),r.push(...fLe(s,e));return}if(s.name.match(/^h[123456]$/)){i(),r.push(_Le(s,e));return}o.push(...el(s,e))}}),i(),r},bLe=(t,e)=>{const n=RZ(t),r=i=>e?lte(i):i,o=B8e(n);return vLe(o,r,i=>e?cte(i,r):i)},CLe=(t,e)=>t.split(`
`).map(n=>({type:Le.Paragraph,children:[{text:e?cte(n,lte):n}]})),ELe=Ie(({room:t,roomId:e,mEvent:n,imagePackRooms:r,onCancel:o,...i},s)=>{const u=ge(),l=Yee(),[c]=Ft(ut,"enterForNewline"),[d]=Ft(ut,"editorToolbar"),[F]=Ft(ut,"isMarkdown"),[h,m]=f.useState(d),[D,g]=f.useState(),p=f.useCallback(()=>{var z;const w=n.getId(),A=t.getTimelineForEvent(w),O=((z=A&&cm(w,n,A.getTimelineSet()))==null?void 0:z.getContent()["m.new_content"])??n.getContent(),{body:j,formatted_body:R}=O,M=O["m.mentions"];return[typeof j=="string"?j:void 0,typeof R=="string"?R:void 0,M]},[t,n]),[_,v]=et(f.useCallback(async()=>{var L;const w=b4(l.children,F).trim(),A=hte(y_(l.children,{allowTextFormatting:!0,allowBlockMarkdown:F,allowInlineMarkdown:F})),[O,j,R]=p();if(w===""||O&&(j&&gfe(j)===A||!j&&O===w&&DT(A,w)))return;const M={msgtype:n.getContent().msgtype,body:w},z=mte(u,e,l);(L=R==null?void 0:R.user_ids)==null||L.forEach(U=>{z.users.add(U)});const T=DH(Array.from(z.users),z.room);M["m.mentions"]=T,DT(A,w)||(M.format="org.matrix.custom.html",M.formatted_body=A);const P={...M,body:`* ${w}`,"m.new_content":M,"m.relates_to":{event_id:n.getId(),rel_type:Pn.Replace}};return u.sendMessage(e,P)},[u,l,e,n,F,p])),E=f.useCallback(()=>{_.status!==he.Loading&&v()},[_,v]),b=f.useCallback(w=>{(Mn("mod+enter",w)||!c&&Mn("enter",w))&&!w.nativeEvent.isComposing&&(w.preventDefault(),E()),Mn("escape",w)&&(w.preventDefault(),o())},[o,E,c]),k=f.useCallback(w=>{if(Mn("escape",w)){w.preventDefault();return}const A=Nee(l),O=A?Mee(l,A,Oee):void 0;g(O)},[l]),C=f.useCallback(()=>{Ge.focus(l),g(void 0)},[l]),S=(w,A)=>{l.insertNode(g4(w,A)),f0(l)};return f.useEffect(()=>{const[w,A]=p(),O=typeof A=="string"?bLe(A,F):CLe(typeof w=="string"?w:"",F);Pe.select(l,{anchor:G.start(l,[]),focus:G.end(l,[])}),l.insertFragment(O),Uy()||Ge.focus(l)},[l,p,F]),f.useEffect(()=>{_.status===he.Success&&o()},[_,o]),a.jsxs("div",{...i,ref:s,children:[(D==null?void 0:D.prefix)===c1.RoomMention&&a.jsx(Vee,{roomId:e,editor:l,query:D,requestClose:C}),(D==null?void 0:D.prefix)===c1.UserMention&&a.jsx(Hee,{room:t,editor:l,query:D,requestClose:C}),(D==null?void 0:D.prefix)===c1.Emoticon&&a.jsx($ee,{imagePackRooms:r||[],editor:l,query:D,requestClose:C}),a.jsx(Zee,{editor:l,placeholder:"Edit message...",onKeyDown:b,onKeyUp:k,bottom:a.jsxs(a.Fragment,{children:[a.jsxs(y,{style:{padding:le.space.S200,paddingTop:0},alignItems:"End",justifyContent:"SpaceBetween",gap:"100",children:[a.jsxs(y,{gap:"Inherit",children:[a.jsx(We,{onClick:E,variant:"Primary",radii:"Pill",disabled:_.status===he.Loading,outlined:!0,before:_.status===he.Loading?a.jsx(ot,{variant:"Primary",fill:"Soft",size:"100"}):void 0,children:a.jsx(x,{size:"B300",children:"Save"})}),a.jsx(We,{onClick:o,variant:"SurfaceVariant",radii:"Pill",children:a.jsx(x,{size:"B300",children:"Cancel"})})]}),a.jsxs(y,{gap:"Inherit",children:[a.jsx(Me,{variant:"SurfaceVariant",size:"300",radii:"300",onClick:()=>m(!h),children:a.jsx(Q,{size:"400",src:h?$.AlphabetUnderline:$.Alphabet})}),a.jsx(Oo,{initial:void 0,children:(w,A)=>a.jsx(Ut,{anchor:w,alignOffset:-8,position:"Top",align:"End",content:a.jsx(qy,{imagePackRooms:r??[],returnFocusOnDeactivate:!1,onEmojiSelect:S,onCustomEmojiSelect:S,requestClose:()=>{A(O=>{if(O){Uy()||Ge.focus(l);return}return O})}}),children:a.jsx(Me,{"aria-pressed":w!==void 0,onClick:O=>A(O.currentTarget.getBoundingClientRect()),variant:"SurfaceVariant",size:"300",radii:"300",children:a.jsx(Q,{size:"400",src:$.Smile,filled:w!==void 0})})})})]})]}),h&&a.jsxs("div",{children:[a.jsx(jn,{variant:"SurfaceVariant",size:"300"}),a.jsx(Dte,{})]})]})})]})}),gT=t=>{const e=vi(t,Re.RoomPinnedEvents);return f.useMemo(()=>{var n;return((n=e==null?void 0:e.getContent())==null?void 0:n.pinned)??[]},[e])},yLe=Ie(({onReaction:t,...e},n)=>{const r=ge(),o=gA(r,4);return o.length===0?a.jsx("span",{}):a.jsxs(a.Fragment,{children:[a.jsx(y,{style:{padding:le.space.S200},alignItems:"Center",justifyContent:"Center",gap:"200",...e,ref:n,children:o.map(i=>a.jsx(Me,{className:Sje,size:"300",variant:"SurfaceVariant",radii:"Pill",title:i.shortcode,"aria-label":i.shortcode,onClick:()=>t(i.unicode,i.shortcode),children:a.jsx(x,{size:"T500",children:i.unicode})},i.unicode))}),a.jsx(jn,{size:"300"})]})}),xLe=Ie(({room:t,relations:e,onClose:n,...r},o)=>{const[i,s]=f.useState(!1),u=()=>{s(!1),n==null||n()};return a.jsxs(a.Fragment,{children:[a.jsx(Rn,{onContextMenu:l=>{l.stopPropagation()},open:i,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>u(),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(xs,{variant:"Surface",size:"300",children:a.jsx(oX,{room:t,relations:e,requestClose:()=>s(!1)})})})})}),a.jsx(tt,{size:"300",after:a.jsx(Q,{size:"100",src:$.Smile}),radii:"300",onClick:()=>s(!0),...r,ref:o,"aria-pressed":i,children:a.jsx(x,{className:Yu,as:"span",size:"T300",truncate:!0,children:"View Reactions"})})]})}),gte=Ie(({room:t,eventId:e,onClose:n,...r},o)=>{const[i,s]=f.useState(!1),u=()=>{s(!1),n==null||n()};return a.jsxs(a.Fragment,{children:[a.jsx(Rn,{open:i,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:u,clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(xs,{variant:"Surface",size:"300",children:a.jsx(sX,{room:t,eventId:e,requestClose:u})})})})}),a.jsx(tt,{size:"300",after:a.jsx(Q,{size:"100",src:$.CheckTwice}),radii:"300",onClick:()=>s(!0),...r,ref:o,"aria-pressed":i,children:a.jsx(x,{className:Yu,as:"span",size:"T300",truncate:!0,children:"Read Receipts"})})]})}),pte=Ie(({room:t,mEvent:e,onClose:n,...r},o)=>{const[i,s]=f.useState(!1),u=d=>d.isEncrypted()?{"<== DECRYPTED_EVENT ==>":d.getEffectiveEvent(),"<== ORIGINAL_EVENT ==>":d.event}:d.event,l=()=>{var D;const d=e.getId(),F=t.getTimelineForEvent(d),h=F&&((D=FH(F.getTimelineSet(),d,e.getType()))==null?void 0:D.getRelations());if(!h)return JSON.stringify(u(e),null,2);const m={"<== MAIN_EVENT ==>":u(e)};return h.forEach((g,p)=>{m[`<== REPLACEMENT_EVENT_${p+1} ==>`]=u(g)}),JSON.stringify(m,null,2)},c=()=>{s(!1),n==null||n()};return a.jsxs(a.Fragment,{children:[a.jsx(Rn,{open:i,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:c,clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(xs,{variant:"Surface",size:"500",children:a.jsx(NZ,{name:"Source Code",langName:"json",text:l(),requestClose:c})})})})}),a.jsx(tt,{size:"300",after:a.jsx(Q,{size:"100",src:$.BlockCode}),radii:"300",onClick:()=>s(!0),...r,ref:o,"aria-pressed":i,children:a.jsx(x,{className:Yu,as:"span",size:"T300",truncate:!0,children:"View Source"})})]})}),fte=Ie(({room:t,mEvent:e,onClose:n,...r},o)=>{const i=ge(),s=()=>{const u=vo(i,t.roomId),l=e.getId(),c=Rs(u)?void 0:wd(t);l&&(Vl(SEe(u,l,c)),n==null||n())};return a.jsx(tt,{size:"300",after:a.jsx(Q,{size:"100",src:$.Link}),radii:"300",onClick:s,...r,ref:o,children:a.jsx(x,{className:Yu,as:"span",size:"T300",truncate:!0,children:"Copy Link"})})}),wLe=Ie(({room:t,mEvent:e,onClose:n,...r},o)=>{const i=ge(),s=gT(t),u=s.includes(e.getId()??""),l=()=>{const c=e.getId(),d={pinned:Array.from(s).filter(F=>F!==c)};!u&&c&&d.pinned.push(c),i.sendStateEvent(t.roomId,Re.RoomPinnedEvents,d),n==null||n()};return a.jsx(tt,{size:"300",after:a.jsx(Q,{size:"100",src:$.Pin}),radii:"300",onClick:l,...r,ref:o,children:a.jsx(x,{className:Yu,as:"span",size:"T300",truncate:!0,children:u?"Unpin Message":"Pin Message"})})}),_te=Ie(({room:t,mEvent:e,onClose:n,...r},o)=>{const i=ge(),[s,u]=f.useState(!1),[l,c]=et(f.useCallback((h,m)=>i.redactEvent(t.roomId,h,void 0,m?{reason:m}:void 0),[i,t])),d=h=>{var p;h.preventDefault();const m=e.getId();if(!m||l.status===he.Loading||l.status===he.Success)return;const D=(p=h.target)==null?void 0:p.reasonInput,g=D&&D.value.trim();c(m,g)},F=()=>{u(!1),n==null||n()};return a.jsxs(a.Fragment,{children:[a.jsx(Rn,{open:s,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:F,clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsxs(cr,{variant:"Surface",children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Delete Message"})}),a.jsx(Me,{size:"300",onClick:F,radii:"300",children:a.jsx(Q,{src:$.Cross})})]}),a.jsxs(y,{as:"form",onSubmit:d,style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsx(x,{priority:"400",children:"This action is irreversible! Are you sure that you want to delete this message?"}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsxs(x,{size:"L400",children:["Reason"," ",a.jsx(x,{as:"span",size:"T200",children:"(optional)"})]}),a.jsx(En,{name:"reasonInput",variant:"Background"}),l.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T300",children:"Failed to delete message! Please try again."})]}),a.jsx(Ee,{type:"submit",variant:"Critical",before:l.status===he.Loading?a.jsx(ot,{fill:"Solid",variant:"Critical",size:"200"}):void 0,"aria-disabled":l.status===he.Loading,children:a.jsx(x,{size:"B400",children:l.status===he.Loading?"Deleting...":"Delete"})})]})]})})})}),a.jsx(Ee,{variant:"Critical",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.Delete}),radii:"300",onClick:()=>u(!0),"aria-pressed":s,...r,ref:o,children:a.jsx(x,{className:Yu,as:"span",size:"T300",truncate:!0,children:"Delete"})})]})}),vte=Ie(({room:t,mEvent:e,onClose:n,...r},o)=>{const i=ge(),[s,u]=f.useState(!1),[l,c]=et(f.useCallback((h,m,D)=>i.reportEvent(t.roomId,h,m,D),[i,t])),d=h=>{var p;h.preventDefault();const m=e.getId();if(!m||l.status===he.Loading||l.status===he.Success)return;const D=(p=h.target)==null?void 0:p.reasonInput,g=D&&D.value.trim();D&&(D.value=""),c(m,g?-100:-50,g||"No reason provided")},F=()=>{u(!1),n==null||n()};return a.jsxs(a.Fragment,{children:[a.jsx(Rn,{open:s,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:F,clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsxs(cr,{variant:"Surface",children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Report Message"})}),a.jsx(Me,{size:"300",onClick:F,radii:"300",children:a.jsx(Q,{src:$.Cross})})]}),a.jsxs(y,{as:"form",onSubmit:d,style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsx(x,{priority:"400",children:"Report this message to server, which may then notify the appropriate people to take action."}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Reason"}),a.jsx(En,{name:"reasonInput",variant:"Background",required:!0}),l.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T300",children:"Failed to report message! Please try again."}),l.status===he.Success&&a.jsx(x,{style:{color:ct.Success.Main},size:"T300",children:"Message has been reported to server."})]}),a.jsx(Ee,{type:"submit",variant:"Critical",before:l.status===he.Loading?a.jsx(ot,{fill:"Solid",variant:"Critical",size:"200"}):void 0,"aria-disabled":l.status===he.Loading||l.status===he.Success,children:a.jsx(x,{size:"B400",children:l.status===he.Loading?"Reporting...":"Report"})})]})]})})})}),a.jsx(Ee,{variant:"Critical",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.Warning}),radii:"300",onClick:()=>u(!0),"aria-pressed":s,...r,ref:o,children:a.jsx(x,{className:Yu,as:"span",size:"T300",truncate:!0,children:"Report"})})]})}),pT=Ie(({className:t,room:e,mEvent:n,collapse:r,highlight:o,edit:i,canDelete:s,canSendReaction:u,canPinEvent:l,imagePackRooms:c,relations:d,messageLayout:F,messageSpacing:h,onUserClick:m,onUsernameClick:D,onReplyClick:g,onReactionToggle:p,onEditId:_,reply:v,reactions:E,hideReadReceipts:b,powerLevelTag:k,accessibleTagColors:C,legacyUsernameColor:S,children:w,...A},O)=>{const j=ge(),R=Tt(),M=n.getSender()??"",[z,T]=f.useState(!1),{hoverProps:P}=IS({onHoverChange:T}),{focusWithinProps:L}=BS({onFocusWithinChange:T}),[U,te]=f.useState(),[ae,Fe]=f.useState(),re=wr(e,M)??ln(M)??M,ce=gC(e,M),K=k!=null&&k.color?C==null?void 0:C.get(k.color):void 0,H=k!=null&&k.icon?r0(j,R,k.icon):void 0,q=S?Vs(M):K,V=!r&&a.jsxs(y,{gap:"300",direction:F===Fr.Compact?"RowReverse":"Row",justifyContent:"SpaceBetween",alignItems:"Baseline",grow:"Yes",children:[a.jsxs(y,{alignItems:"Center",gap:"200",children:[a.jsx(S8,{as:"button",style:{color:q},"data-user-id":M,onContextMenu:m,onClick:D,children:a.jsx(x,{as:"span",size:F===Fr.Bubble?"T300":"T400",truncate:!0,children:a.jsx(j8,{children:re})})}),H&&a.jsx(o0,{size:"100",iconSrc:H})]}),a.jsxs(y,{shrink:"No",gap:"100",children:[F===Fr.Modern&&z&&a.jsxs(a.Fragment,{children:[a.jsx(x,{as:"span",size:"T200",priority:"300",children:M}),a.jsx(x,{as:"span",size:"T200",priority:"300",children:"|"})]}),a.jsx($s,{ts:n.getTs(),compact:F===Fr.Compact})]})]}),X=!r&&F!==Fr.Compact&&a.jsx(k8,{children:a.jsx(Rt,{className:kje,as:"button",size:"300","data-user-id":M,onClick:m,children:a.jsx(wa,{userId:M,src:ce?Xt(j,ce,R,48,48,"crop")??void 0:void 0,alt:re,renderFallback:()=>a.jsx(Q,{size:"200",src:$.User,filled:!0})})})}),ee=a.jsxs(y,{direction:"Column",alignSelf:"Start",style:{maxWidth:"100%"},children:[v,i&&_?a.jsx(ELe,{style:{maxWidth:"100%",width:"100vw"},roomId:e.roomId,room:e,mEvent:n,imagePackRooms:c,onCancel:()=>_()}):w,E]}),J=ye=>{var ze;if(ye.altKey||!((ze=window.getSelection())!=null&&ze.isCollapsed)||i)return;const He=ye.target.tagName;typeof He=="string"&&He.toLowerCase()==="a"||(ye.preventDefault(),te({x:ye.clientX,y:ye.clientY,width:0,height:0}))},de=ye=>{var ze;const He=((ze=ye.currentTarget.parentElement)==null?void 0:ze.parentElement)??ye.currentTarget;te(He.getBoundingClientRect())},ue=()=>{te(void 0)},De=ye=>{var ze;const He=((ze=ye.currentTarget.parentElement)==null?void 0:ze.parentElement)??ye.currentTarget;Fe(He.getBoundingClientRect())},Ae=()=>{const ye=U;ue(),setTimeout(()=>{Fe(ye)},100)};return a.jsxs(xo,{className:Ve(tX,t),tabIndex:0,space:h,collapse:r,highlight:o,selected:!!U||!!ae,...A,...P,...L,ref:O,children:[!i&&(z||!!U||!!ae)&&a.jsx("div",{className:rX,children:a.jsx(zt,{className:nX,variant:"SurfaceVariant",children:a.jsxs(y,{gap:"100",children:[u&&a.jsx(Ut,{position:"Bottom",align:(ae==null?void 0:ae.width)===0?"Start":"End",offset:(ae==null?void 0:ae.width)===0?0:void 0,anchor:ae,content:a.jsx(qy,{imagePackRooms:c??[],returnFocusOnDeactivate:!1,allowTextCustomEmoji:!0,onEmojiSelect:ye=>{p(n.getId(),ye),Fe(void 0)},onCustomEmojiSelect:(ye,He)=>{p(n.getId(),ye,He),Fe(void 0)},requestClose:()=>{Fe(void 0)}}),children:a.jsx(Me,{onClick:De,variant:"SurfaceVariant",size:"300",radii:"300","aria-pressed":!!ae,children:a.jsx(Q,{src:$.SmilePlus,size:"100"})})}),a.jsx(Me,{onClick:g,"data-event-id":n.getId(),variant:"SurfaceVariant",size:"300",radii:"300",children:a.jsx(Q,{src:$.ReplyArrow,size:"100"})}),e7(j,n)&&_&&a.jsx(Me,{onClick:()=>_(n.getId()),variant:"SurfaceVariant",size:"300",radii:"300",children:a.jsx(Q,{src:$.Pencil,size:"100"})}),a.jsx(Ut,{anchor:U,position:"Bottom",align:(U==null?void 0:U.width)===0?"Start":"End",offset:(U==null?void 0:U.width)===0?0:void 0,content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>te(void 0),clickOutsideDeactivates:!0,isKeyForward:ye=>ye.key==="ArrowDown",isKeyBackward:ye=>ye.key==="ArrowUp",escapeDeactivates:vt},children:a.jsxs(zt,{children:[u&&a.jsx(yLe,{onReaction:(ye,He)=>{p(n.getId(),ye,He),ue()}}),a.jsxs(y,{direction:"Column",gap:"100",className:Py,children:[u&&a.jsx(tt,{size:"300",after:a.jsx(Q,{size:"100",src:$.SmilePlus}),radii:"300",onClick:Ae,children:a.jsx(x,{className:Yu,as:"span",size:"T300",truncate:!0,children:"Add Reaction"})}),d&&a.jsx(xLe,{room:e,relations:d,onClose:ue}),a.jsx(tt,{size:"300",after:a.jsx(Q,{size:"100",src:$.ReplyArrow}),radii:"300","data-event-id":n.getId(),onClick:ye=>{g(ye),ue()},children:a.jsx(x,{className:Yu,as:"span",size:"T300",truncate:!0,children:"Reply"})}),e7(j,n)&&_&&a.jsx(tt,{size:"300",after:a.jsx(Q,{size:"100",src:$.Pencil}),radii:"300","data-event-id":n.getId(),onClick:()=>{_(n.getId()),ue()},children:a.jsx(x,{className:Yu,as:"span",size:"T300",truncate:!0,children:"Edit Message"})}),!b&&a.jsx(gte,{room:e,eventId:n.getId()??"",onClose:ue}),a.jsx(pte,{room:e,mEvent:n,onClose:ue}),a.jsx(fte,{room:e,mEvent:n,onClose:ue}),l&&a.jsx(wLe,{room:e,mEvent:n,onClose:ue})]}),(!n.isRedacted()&&s||n.getSender()!==j.getUserId())&&a.jsxs(a.Fragment,{children:[a.jsx(jn,{size:"300"}),a.jsxs(y,{direction:"Column",gap:"100",className:Py,children:[!n.isRedacted()&&s&&a.jsx(_te,{room:e,mEvent:n,onClose:ue}),n.getSender()!==j.getUserId()&&a.jsx(vte,{room:e,mEvent:n,onClose:ue})]})]})]})}),children:a.jsx(Me,{variant:"SurfaceVariant",size:"300",radii:"300",onClick:de,"aria-pressed":!!U,children:a.jsx(Q,{src:$.VerticalDots,size:"100"})})})]})})}),F===Fr.Compact&&a.jsx(Bj,{before:V,onContextMenu:J,children:ee}),F===Fr.Bubble&&a.jsxs(x4e,{before:X,onContextMenu:J,children:[V,ee]}),F!==Fr.Compact&&F!==Fr.Bubble&&a.jsxs(Rm,{before:X,onContextMenu:J,children:[V,ee]})]})}),fD=Ie(({className:t,room:e,mEvent:n,highlight:r,canDelete:o,messageSpacing:i,hideReadReceipts:s,children:u,...l},c)=>{const d=ge(),[F,h]=f.useState(!1),{hoverProps:m}=IS({onHoverChange:h}),{focusWithinProps:D}=BS({onFocusWithinChange:h}),[g,p]=f.useState(),_=typeof n.getStateKey()=="string",v=k=>{var S;if(k.altKey||!((S=window.getSelection())!=null&&S.isCollapsed))return;const C=k.target.tagName;typeof C=="string"&&C.toLowerCase()==="a"||(k.preventDefault(),p({x:k.clientX,y:k.clientY,width:0,height:0}))},E=k=>{var S;const C=((S=k.currentTarget.parentElement)==null?void 0:S.parentElement)??k.currentTarget;p(C.getBoundingClientRect())},b=()=>{p(void 0)};return a.jsxs(xo,{className:Ve(tX,t),tabIndex:0,space:i,autoCollapse:!0,highlight:r,selected:!!g,...l,...m,...D,ref:c,children:[(F||!!g)&&a.jsx("div",{className:rX,children:a.jsx(zt,{className:nX,variant:"SurfaceVariant",children:a.jsx(y,{gap:"100",children:a.jsx(Ut,{anchor:g,position:"Bottom",align:(g==null?void 0:g.width)===0?"Start":"End",offset:(g==null?void 0:g.width)===0?0:void 0,content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>p(void 0),clickOutsideDeactivates:!0,isKeyForward:k=>k.key==="ArrowDown",isKeyBackward:k=>k.key==="ArrowUp",escapeDeactivates:vt},children:a.jsxs(zt,{...l,ref:c,children:[a.jsxs(y,{direction:"Column",gap:"100",className:Py,children:[!s&&a.jsx(gte,{room:e,eventId:n.getId()??"",onClose:b}),a.jsx(pte,{room:e,mEvent:n,onClose:b}),a.jsx(fte,{room:e,mEvent:n,onClose:b})]}),(!n.isRedacted()&&o&&!_||n.getSender()!==d.getUserId()&&!_)&&a.jsxs(a.Fragment,{children:[a.jsx(jn,{size:"300"}),a.jsxs(y,{direction:"Column",gap:"100",className:Py,children:[!n.isRedacted()&&o&&a.jsx(_te,{room:e,mEvent:n,onClose:b}),n.getSender()!==d.getUserId()&&a.jsx(vte,{room:e,mEvent:n,onClose:b})]})]})]})}),children:a.jsx(Me,{variant:"SurfaceVariant",size:"300",radii:"300",onClick:E,"aria-pressed":!!g,children:a.jsx(Q,{src:$.VerticalDots,size:"100"})})})})})}),a.jsx("div",{onContextMenu:v,children:u})]})});function fT({mEvent:t,children:e}){const[,n]=f.useState(t.getType()===qn.RoomMessageEncrypted);return f.useEffect(()=>{n(t.getType()===qn.RoomMessageEncrypted);const r=o=>{n(o.getType()===qn.RoomMessageEncrypted)};return t.on(Un.Decrypted,r),()=>{t.removeListener(Un.Decrypted,r)}},[t]),a.jsx(a.Fragment,{children:e()})}const bte=(t,e)=>{const n=[];return t.forEach(r=>{if(!e.has(r.room_id))return;const o=n.length-1,i=n[o];if(i&&r.room_id===i.roomId){i.notifications.push(r);return}n.push({roomId:r.room_id,notifications:[r]})}),n},kLe=(t,e)=>{const n=ge(),r=_t(nr),o=f.useMemo(()=>new Set(r),[r]),[i,s]=f.useState({groups:[]}),u=f.useCallback((d,F,h)=>{const m={from:d,limit:F,only:h};return n.http.authedRequest(Se.Get,"/notifications",m)},[n]),l=f.useCallback(async d=>{d||s({groups:[]});const F=await u(d,t,e?"highlight":void 0),h=bte(F.notifications,o);s(m=>m.nextToken===d?{nextToken:F.next_token,groups:d?m.groups.concat(h):h}:m)},[t,e,u,o]),c=f.useCallback(async()=>{const d=await u(void 0,t,e?"highlight":void 0),F=bte(d.notifications,o);s({nextToken:d.next_token,groups:F})},[t,e,u,o]);return[i,l,c]};function SLe({room:t,notifications:e,mediaAutoLoad:n,urlPreview:r,hideActivity:o,onOpen:i,legacyUsernameColor:s}){const u=ge(),l=Tt(),c=km(t.roomId,co),d=Bi(t),{getPowerLevel:F}=yo(d),[h,m]=Fc(t,d),D=ky(),g=Sy(D.kind,h),p=gy(t.roomId),_=py(),v=f.useMemo(()=>({...Hh,render:y8(S=>S3(u,t.roomId,S,k3(p)))}),[u,t,p]),E=f.useMemo(()=>x8(u,t.roomId,{linkifyOpts:v,useAuthentication:l,handleSpoilerClick:_,handleMentionClick:p}),[u,t,v,p,_,l]),b=w8({[qn.RoomMessage]:(S,w,A)=>{var O,j;return(O=S.unsigned)!=null&&O.redacted_because?a.jsx(oa,{reason:(j=S.unsigned)==null?void 0:j.redacted_because.content.reason}):a.jsx(e0,{displayName:w,msgType:S.content.msgtype??"",ts:S.origin_server_ts,getContent:A,mediaAutoLoad:n,urlPreview:r,htmlReactParserOptions:E,linkifyOpts:v,outlineAttachment:!0})},[qn.RoomMessageEncrypted]:(S,w)=>{const A=t.getTimelineForEvent(S.event_id),O=A==null?void 0:A.getEvents().find(j=>j.getId()===S.event_id);return!O||!A?a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T400",priority:"300",children:[a.jsx("code",{className:nc,children:S.type})," event"]})}):a.jsx(fT,{mEvent:O,children:()=>{if(O.isRedacted())return a.jsx(oa,{});if(O.getType()===qn.Sticker)return a.jsx(Gh,{content:O.getContent(),renderImageContent:j=>a.jsx(Hd,{...j,autoPlay:n,renderImage:R=>a.jsx(uc,{...R,loading:"lazy"}),renderViewer:R=>a.jsx(Zd,{...R})})});if(O.getType()===qn.RoomMessage){const j=cm(S.event_id,O,A.getTimelineSet()),R=()=>(j==null?void 0:j.getContent()["m.new_content"])??O.getContent();return a.jsx(e0,{displayName:w,msgType:O.getContent().msgtype??"",ts:O.getTs(),edited:!!j,getContent:R,mediaAutoLoad:n,urlPreview:r,htmlReactParserOptions:E,linkifyOpts:v})}return O.getType()===qn.RoomMessageEncrypted?a.jsx(x,{children:a.jsx(Vj,{})}):a.jsx(x,{children:a.jsx(L8,{})})}})},[qn.Sticker]:(S,w,A)=>{var O,j;return(O=S.unsigned)!=null&&O.redacted_because?a.jsx(oa,{reason:(j=S.unsigned)==null?void 0:j.redacted_because.content.reason}):a.jsx(Gh,{content:A(),renderImageContent:R=>a.jsx(Hd,{...R,autoPlay:n,renderImage:M=>a.jsx(uc,{...M,loading:"lazy"}),renderViewer:M=>a.jsx(Zd,{...M})})})},[Re.RoomTombstone]:S=>{const{content:w}=S;return a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T400",priority:"300",children:["Room Tombstone. ",w.body]})})}},void 0,S=>{var w,A;return(w=S.unsigned)!=null&&w.redacted_because?a.jsx(oa,{reason:(A=S.unsigned)==null?void 0:A.redacted_because.content.reason}):a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T400",priority:"300",children:[a.jsx("code",{className:nc,children:S.type})," event"]})})}),k=S=>{const w=S.currentTarget.getAttribute("data-event-id");w&&i(t.roomId,w)},C=()=>{ta(u,t.roomId,o)};return a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsxs(In,{size:"300",children:[a.jsxs(y,{gap:"200",grow:"Yes",children:[a.jsx(Rt,{size:"200",radii:"300",children:a.jsx(ho,{roomId:t.roomId,src:Hl(u,t,96,l),alt:t.name,renderFallback:()=>a.jsx(ts,{size:"50",joinRule:t.getJoinRule()??un.Restricted,filled:!0})})}),a.jsx(x,{size:"H4",truncate:!0,children:t.name})]}),a.jsx(y,{shrink:"No",children:c&&a.jsx(We,{variant:"Primary",radii:"Pill",onClick:C,before:a.jsx(Q,{size:"100",src:$.CheckTwice}),children:a.jsx(x,{size:"T200",children:"Mark as Read"})})})]}),a.jsx(y,{direction:"Column",gap:"100",children:e.map(S=>{var ae;const{event:w}=S,A=wr(t,w.sender)??ln(w.sender)??w.sender,O=gC(t,w.sender),j=()=>w.content,R=w.content["m.relates_to"],M=(ae=R==null?void 0:R["m.in_reply_to"])==null?void 0:ae.event_id,z=(R==null?void 0:R.rel_type)===Pn.Thread?R.event_id:void 0,T=F(w.sender),P=m(T),L=P!=null&&P.color?g==null?void 0:g.get(P.color):void 0,U=P!=null&&P.icon?r0(u,l,P.icon):void 0,te=s?Vs(w.sender):L;return a.jsx(rt,{style:{padding:le.space.S400},variant:"SurfaceVariant",direction:"Column",children:a.jsxs(Rm,{before:a.jsx(k8,{children:a.jsx(Rt,{size:"300",children:a.jsx(wa,{userId:w.sender,src:O?Xt(u,O,l,48,48,"crop")??void 0:void 0,alt:A,renderFallback:()=>a.jsx(Q,{size:"200",src:$.User,filled:!0})})})}),children:[a.jsxs(y,{gap:"300",justifyContent:"SpaceBetween",alignItems:"Center",grow:"Yes",children:[a.jsxs(y,{gap:"200",alignItems:"Baseline",children:[a.jsxs(y,{alignItems:"Center",gap:"200",children:[a.jsx(S8,{style:{color:te},children:a.jsx(x,{as:"span",truncate:!0,children:a.jsx(j8,{children:A})})}),U&&a.jsx(o0,{size:"100",iconSrc:U})]}),a.jsx($s,{ts:w.origin_server_ts})]}),a.jsx(y,{shrink:"No",gap:"200",alignItems:"Center",children:a.jsx(We,{"data-event-id":w.event_id,onClick:k,variant:"Secondary",radii:"400",children:a.jsx(x,{size:"T200",children:"Open"})})})]}),M&&a.jsx(R3,{room:t,replyEventId:M,threadRootId:z,onClick:k,getPowerLevel:F,getPowerLevelTag:m,accessibleTagColors:g,legacyUsernameColor:s}),b(w.type,!1,w,A,j)]})},S.event.event_id)})})]})}const jLe=t=>f.useMemo(()=>({only:t.get("only")??void 0}),[t]),Cte=7e3;function BLe(){var O;const t=ge(),[e]=Ft(ut,"hideActivity"),[n]=Ft(ut,"mediaAutoLoad"),[r]=Ft(ut,"urlPreview"),[o]=Ft(ut,"legacyUsernameColor"),i=Wr(),s=_t(Co),{navigateRoom:u}=Mo(),[l,c]=Yc(),d=jLe(l),F=f.useRef(null),h=f.useRef(null),[m,D]=f.useState(Cte),g=d.only==="highlight",p=j=>{if(j){c(new URLSearchParams({only:"highlight"}));return}c()},[_,v,E]=kLe(24,g),[b,k]=et(v),C=Ru({count:_.groups.length,getScrollElement:()=>F.current,estimateSize:()=>40,overscan:4}),S=C.getVirtualItems();wje(f.useCallback(()=>{E()},[E]),m);const w=f.useCallback(j=>D(j?Cte:-1),[]);f.useEffect(()=>{k()},[k]);const A=(O=S[S.length-1])==null?void 0:O.index;return f.useEffect(()=>{b.status===he.Success&&_.groups.length-1===A&&_.nextToken&&k(_.nextToken)},[b,_,A,k]),a.jsxs(ur,{children:[a.jsx(Dr,{balance:!0,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",basis:"No",children:i===en.Mobile&&a.jsx(mc,{children:j=>a.jsx(Me,{onClick:j,children:a.jsx(Q,{src:$.ArrowLeft})})})}),a.jsxs(y,{alignItems:"Center",gap:"200",children:[i!==en.Mobile&&a.jsx(Q,{size:"400",src:$.Message}),a.jsx(x,{size:"H3",truncate:!0,children:"Notification Messages"})]}),a.jsx(y,{grow:"Yes",basis:"No"})]})}),a.jsx(y,{style:{position:"relative"},grow:"Yes",children:a.jsx(Mt,{ref:F,hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsx(zh,{children:a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsxs(y,{ref:h,direction:"Column",gap:"100",children:[a.jsx("span",{"data-spacing-node":!0}),a.jsx(x,{size:"L400",children:"Filter"}),a.jsxs(y,{gap:"200",children:[a.jsx(We,{onClick:()=>p(!1),variant:g?"Surface":"Success","aria-pressed":!g,before:!g&&a.jsx(Q,{size:"100",src:$.Check}),outlined:!0,children:a.jsx(x,{size:"T200",children:"All Notifications"})}),a.jsx(We,{onClick:()=>p(!0),variant:g?"Success":"Surface","aria-pressed":g,before:g&&a.jsx(Q,{size:"100",src:$.Check}),outlined:!0,children:a.jsx(x,{size:"T200",children:"Highlighted"})})]})]}),a.jsx(f3,{scrollRef:F,anchorRef:h,onVisibilityChange:w,children:a.jsx(Me,{onClick:()=>C.scrollToOffset(0),variant:"SurfaceVariant",radii:"Pill",outlined:!0,size:"300","aria-label":"Scroll to Top",children:a.jsx(Q,{src:$.ChevronTop,size:"300"})})}),a.jsx("div",{style:{position:"relative",height:C.getTotalSize()},children:S.map(j=>{const R=_.groups[j.index];if(!R)return null;const M=t.getRoom(R.roomId);return M?a.jsx(Hs,{virtualItem:j,style:{paddingTop:le.space.S500},ref:C.measureElement,children:a.jsx(SLe,{room:M,notifications:R.notifications,mediaAutoLoad:n,urlPreview:r,hideActivity:e,onOpen:u,legacyUsernameColor:o||s.has(M.roomId)})},j.index):null})}),b.status===he.Success&&_.groups.length===0&&a.jsxs(y,{className:ai({variant:"SurfaceVariant"}),style:{padding:le.space.S300,borderRadius:le.radii.R400},direction:"Column",gap:"200",children:[a.jsx(x,{children:"No Notifications"}),a.jsx(x,{size:"T200",children:"You don't have any new notifications to display yet."})]}),b.status===he.Loading&&a.jsx(y,{direction:"Column",gap:"100",children:[...Array(8).keys()].map(j=>a.jsx(rt,{variant:"SurfaceVariant",style:{minHeight:Dt(80)}},j))}),b.status===he.Error&&a.jsxs(y,{className:ai({variant:"Critical"}),style:{padding:le.space.S300,borderRadius:le.radii.R400},direction:"Column",gap:"200",children:[a.jsx(x,{size:"L400",children:b.error.name}),a.jsx(x,{size:"T300",children:b.error.message})]})]})})})})})]})}const ALe=["4r5e","5h1t","5hit","a55","anal","anus","ar5e","arrse","arse","ass","ass-fucker","asses","assfucker","assfukka","asshole","assholes","asswhole","a_s_s","b!tch","b00bs","b17ch","b1tch","ballbag","balls","ballsack","bastard","beastial","beastiality","bellend","bestial","bestiality","bi+ch","biatch","bitch","bitcher","bitchers","bitches","bitchin","bitching","bloody","blow job","blowjob","blowjobs","boiolas","bollock","bollok","boner","boob","boobs","booobs","boooobs","booooobs","booooooobs","breasts","buceta","bugger","bum","bunny fucker","butt","butthole","buttmuch","buttplug","c0ck","c0cksucker","carpet muncher","cawk","chink","cipa","cl1t","clit","clitoris","clits","cnut","cock","cock-sucker","cockface","cockhead","cockmunch","cockmuncher","cocks","cocksuck","cocksucked","cocksucker","cocksucking","cocksucks","cocksuka","cocksukka","cok","cokmuncher","coksucka","coon","cox","crap","cum","cummer","cumming","cums","cumshot","cunilingus","cunillingus","cunnilingus","cunt","cuntlick","cuntlicker","cuntlicking","cunts","cyalis","cyberfuc","cyberfuck","cyberfucked","cyberfucker","cyberfuckers","cyberfucking","d1ck","damn","dick","dickhead","dildo","dildos","dink","dinks","dirsa","dlck","dog-fucker","doggin","dogging","donkeyribber","doosh","duche","dyke","ejaculate","ejaculated","ejaculates","ejaculating","ejaculatings","ejaculation","ejakulate","f u c k","f u c k e r","f4nny","fag","fagging","faggitt","faggot","faggs","fagot","fagots","fags","fanny","fannyflaps","fannyfucker","fanyy","fatass","fcuk","fcuker","fcuking","feck","fecker","felching","fellate","fellatio","fingerfuck","fingerfucked","fingerfucker","fingerfuckers","fingerfucking","fingerfucks","fistfuck","fistfucked","fistfucker","fistfuckers","fistfucking","fistfuckings","fistfucks","flange","fook","fooker","fuck","fucka","fucked","fucker","fuckers","fuckhead","fuckheads","fuckin","fucking","fuckings","fuckingshitmotherfucker","fuckme","fucks","fuckwhit","fuckwit","fudge packer","fudgepacker","fuk","fuker","fukker","fukkin","fuks","fukwhit","fukwit","fux","fux0r","f_u_c_k","gangbang","gangbanged","gangbangs","gaylord","gaysex","goatse","God","god-dam","god-damned","goddamn","goddamned","hardcoresex","hell","heshe","hoar","hoare","hoer","homo","hore","horniest","horny","hotsex","jack-off","jackoff","jap","jerk-off","jism","jiz","jizm","jizz","kawk","knob","knobead","knobed","knobend","knobhead","knobjocky","knobjokey","kock","kondum","kondums","kum","kummer","kumming","kums","kunilingus","l3i+ch","l3itch","labia","lust","lusting","m0f0","m0fo","m45terbate","ma5terb8","ma5terbate","masochist","master-bate","masterb8","masterbat*","masterbat3","masterbate","masterbation","masterbations","masturbate","mo-fo","mof0","mofo","mothafuck","mothafucka","mothafuckas","mothafuckaz","mothafucked","mothafucker","mothafuckers","mothafuckin","mothafucking","mothafuckings","mothafucks","mother fucker","motherfuck","motherfucked","motherfucker","motherfuckers","motherfuckin","motherfucking","motherfuckings","motherfuckka","motherfucks","muff","mutha","muthafecker","muthafuckker","muther","mutherfucker","n1gga","n1gger","nazi","nigg3r","nigg4h","nigga","niggah","niggas","niggaz","nigger","niggers","nob","nob jokey","nobhead","nobjocky","nobjokey","numbnuts","nutsack","orgasim","orgasims","orgasm","orgasms","p0rn","pawn","pecker","penis","penisfucker","phonesex","phuck","phuk","phuked","phuking","phukked","phukking","phuks","phuq","pigfucker","pimpis","piss","pissed","pisser","pissers","pisses","pissflaps","pissin","pissing","pissoff","poop","porn","porno","pornography","pornos","prick","pricks","pron","pube","pusse","pussi","pussies","pussy","pussys","rectum","retard","rimjaw","rimming","s hit","s.o.b.","sadist","schlong","screwing","scroat","scrote","scrotum","semen","sex","sh!+","sh!t","sh1t","shag","shagger","shaggin","shagging","shemale","shi+","shit","shitdick","shite","shited","shitey","shitfuck","shitfull","shithead","shiting","shitings","shits","shitted","shitter","shitters","shitting","shittings","shitty","skank","slut","sluts","smegma","smut","snatch","son-of-a-bitch","spac","spunk","s_h_i_t","t1tt1e5","t1tties","teets","teez","testical","testicle","tit","titfuck","tits","titt","tittie5","tittiefucker","titties","tittyfuck","tittywank","titwank","tosser","turd","tw4t","twat","twathead","twatty","twunt","twunter","v14gra","v1gra","vagina","viagra","vulva","w00se","wang","wank","wanker","wanky","whoar","whore","willies","willy","xrated","xxx"],Ete=["torture","t0rture"],TLe=Ete.concat(ALe.filter(t=>!Ete.includes(t))),ILe=new RegExp(`(\\b|_)(${TLe.map(t=>Bf(t)).join("|")})(\\b|_)`,"g"),E4=t=>!!t.toLowerCase().match(ILe),_T=()=>{const t=kd(tr.IgnoredUserList);return f.useMemo(()=>{const e=(t==null?void 0:t.getContent().ignored_users)??{};return Object.keys(e)},[t])},RLe=()=>{const{versions:t,unstable_features:e}=zN();return(e==null?void 0:e["org.matrix.msc4151"])||t.includes("v1.13")},yte=548,OLe=(t,e,n)=>{var h,m,D;const r=t.getSafeUserId(),o=dH(e,r),i=o?DC(t,e,96,n):Hl(t,e,96,n),s=e.name||e.getCanonicalAlias()||e.roomId,u=((m=(h=so(e,Re.RoomTopic))==null?void 0:h.getContent())==null?void 0:m.topic)??void 0,l=(D=e.getMember(r))==null?void 0:D.events.member,c=l==null?void 0:l.getSender(),d=c?wr(e,c)??ln(c)??c:void 0,F=(l==null?void 0:l.getTs())??0;return{room:e,roomId:e.roomId,roomAvatar:i,roomName:s,roomTopic:u,roomAlias:e.getCanonicalAlias()??void 0,senderId:c??"Unknown",senderName:d??"Unknown",inviteTs:F,isSpace:ql(e),isDirect:o,isEncrypted:!!so(e,Re.RoomEncryption)}},MLe=t=>E4(t.roomName)||E4(t.roomTopic??"")||E4(t.senderName)||E4(t.senderId);function vT({invite:t,compact:e,onNavigate:n,hideAvatar:r}){const o=ge(),i=o.getSafeUserId(),[s,u]=f.useState(!1),l=()=>u(!1),c=()=>u(!0),[d,F]=et(f.useCallback(async()=>{const p=dH(t.room,i)?Sfe(t.room,i):void 0;await o.joinRoom(t.roomId),p&&await jfe(o,t.roomId,p),n(t.roomId,t.isSpace)},[o,t,i,n])),[h,m]=et(f.useCallback(()=>o.leave(t.roomId),[o,t])),D=d.status===he.Loading||d.status===he.Success,g=h.status===he.Loading||h.status===he.Success;return a.jsxs(rt,{variant:"SurfaceVariant",direction:"Column",gap:"300",style:{padding:`${le.space.S400} ${le.space.S400} ${le.space.S200}`},children:[(t.isEncrypted||t.isDirect||t.isSpace)&&a.jsxs(y,{gap:"200",alignItems:"Center",children:[t.isEncrypted&&a.jsx(y,{shrink:"No",alignItems:"Center",justifyContent:"Center",children:a.jsx(Bt,{variant:"Success",fill:"Solid",size:"400",radii:"300",children:a.jsx(x,{size:"L400",children:"Encrypted"})})}),t.isDirect&&a.jsx(y,{shrink:"No",alignItems:"Center",justifyContent:"Center",children:a.jsx(Bt,{variant:"Primary",fill:"Solid",size:"400",radii:"300",children:a.jsx(x,{size:"L400",children:"Direct Message"})})}),t.isSpace&&a.jsx(y,{shrink:"No",alignItems:"Center",justifyContent:"Center",children:a.jsx(Bt,{variant:"Secondary",fill:"Soft",size:"400",radii:"300",children:a.jsx(x,{size:"L400",children:"Space"})})})]}),a.jsxs(y,{gap:"300",children:[a.jsx(Rt,{size:"300",children:a.jsx(ho,{roomId:t.roomId,src:r?void 0:t.roomAvatar,alt:t.roomName,renderFallback:()=>a.jsx(x,{as:"span",size:"H6",children:Gi(r&&t.roomAvatar?void 0:t.roomName)})})}),a.jsxs(y,{direction:e?"Column":"Row",grow:"Yes",gap:"200",children:[a.jsxs(y,{grow:"Yes",direction:"Column",gap:"200",children:[a.jsxs(y,{direction:"Column",children:[a.jsx(x,{size:"T300",truncate:!0,children:a.jsx("b",{children:t.roomName})}),t.roomTopic&&a.jsx(x,{size:"T200",onClick:c,onKeyDown:gp(c),tabIndex:0,truncate:!0,children:t.roomTopic}),a.jsx(Rn,{open:s,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,clickOutsideDeactivates:!0,onDeactivate:l,escapeDeactivates:vt},children:a.jsx(e1,{name:t.roomName,topic:t.roomTopic??"",requestClose:l})})})})]}),d.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:d.error.message}),h.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:h.error.message})]}),a.jsxs(y,{gap:"200",shrink:"No",alignItems:"Center",children:[a.jsx(Ee,{onClick:m,size:"300",variant:"Secondary",radii:"300",fill:"Soft",disabled:D||g,before:g?a.jsx(ot,{variant:"Secondary",size:"100"}):void 0,children:a.jsx(x,{size:"B300",children:"Decline"})}),a.jsx(Ee,{onClick:F,size:"300",variant:"Success",fill:"Soft",radii:"300",outlined:!0,disabled:D||g,before:D?a.jsx(ot,{variant:"Success",fill:"Soft",size:"100"}):void 0,children:a.jsx(x,{size:"B300",children:"Accept"})})]})]})]}),a.jsxs(y,{gap:"200",alignItems:"Baseline",children:[a.jsx(y,{grow:"Yes",children:a.jsxs(x,{size:"T200",priority:"300",children:["From: ",a.jsx("b",{children:t.senderId})]})}),t.inviteTs&&a.jsx(y,{shrink:"No",children:a.jsx($s,{size:"T200",ts:t.inviteTs,priority:"300"})})]})]})}function PLe({filter:t,onFilter:e,knownInvites:n,unknownInvites:r,spamInvites:o}){const i=t===0,s=t===1,u=t===2;return a.jsxs(y,{gap:"200",children:[a.jsx(We,{variant:i?"Success":"Surface","aria-selected":i,outlined:!i,onClick:()=>e(0),before:i&&a.jsx(Q,{size:"100",src:$.Check}),after:n.length>0&&a.jsx(Bt,{variant:i?"Success":"Secondary",fill:"Solid",radii:"Pill",children:a.jsx(x,{size:"L400",children:n.length})}),children:a.jsx(x,{size:"T200",children:"Primary"})}),a.jsx(We,{variant:s?"Warning":"Surface","aria-selected":s,outlined:!s,onClick:()=>e(1),before:s&&a.jsx(Q,{size:"100",src:$.Check}),after:r.length>0&&a.jsx(Bt,{variant:s?"Warning":"Secondary",fill:"Solid",radii:"Pill",children:a.jsx(x,{size:"L400",children:r.length})}),children:a.jsx(x,{size:"T200",children:"Public"})}),a.jsx(We,{variant:u?"Critical":"Surface","aria-selected":u,outlined:!u,onClick:()=>e(2),before:u&&a.jsx(Q,{size:"100",src:$.Check}),after:o.length>0&&a.jsx(Bt,{variant:u?"Critical":"Secondary",fill:"Solid",radii:"Pill",children:a.jsx(x,{size:"L400",children:o.length})}),children:a.jsx(x,{size:"T200",children:"Spam"})})]})}function LLe({invites:t,handleNavigate:e,compact:n}){return a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(x,{size:"H4",children:"Primary"}),t.length>0?a.jsx(y,{direction:"Column",gap:"100",children:t.map(r=>a.jsx(vT,{invite:r,compact:n,onNavigate:e,hideAvatar:!1},r.roomId))}):a.jsx(CE,{children:a.jsx(Od,{children:a.jsx(Md,{icon:a.jsx(Q,{size:"600",src:$.Mail}),title:"No Invites",subTitle:"When someone you share a room with sends you an invite, it\u2019ll show up here."})})})]})}function NLe({invites:t,handleNavigate:e,compact:n}){const r=ge(),[o,i]=et(f.useCallback(async()=>{const u=t.map(l=>l.roomId);await $l(u,l=>r.leave(l))},[r,t])),s=o.status===he.Loading;return a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsxs(y,{gap:"200",justifyContent:"SpaceBetween",alignItems:"Center",children:[a.jsx(x,{size:"H4",children:"Public"}),a.jsx(y,{children:t.length>0&&a.jsx(We,{variant:"SurfaceVariant",onClick:i,before:s&&a.jsx(ot,{size:"50",variant:"Secondary",fill:"Soft"}),disabled:s,radii:"Pill",children:a.jsx(x,{size:"T200",children:"Decline All"})})})]}),t.length>0?a.jsx(y,{direction:"Column",gap:"100",children:t.map(u=>a.jsx(vT,{invite:u,compact:n,onNavigate:e,hideAvatar:!0},u.roomId))}):a.jsx(CE,{children:a.jsx(Od,{children:a.jsx(Md,{icon:a.jsx(Q,{size:"600",src:$.Info}),title:"No Invites",subTitle:"Invites from people outside your rooms will appear here."})})})]})}function zLe({invites:t,handleNavigate:e,compact:n}){const r=ge(),[o,i]=f.useState(!1),s=RLe(),[u,l]=et(f.useCallback(async()=>{const E=t.map(b=>b.roomId);await $l(E,b=>r.leave(b))},[r,t])),[c,d]=et(f.useCallback(async()=>{const E=t.map(b=>b.roomId);await $l(E,b=>r.reportRoom(b,"Spam Invite"))},[r,t])),F=_T(),h=Array.from(new Set(t.map(E=>E.senderId))).filter(E=>!F.includes(E)),[m,D]=et(f.useCallback(()=>r.setIgnoredUsers([...F,...h]),[r,F,h])),g=u.status===he.Loading,p=c.status===he.Loading,_=m.status===he.Loading,v=_||p||g;return a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(x,{size:"H4",children:"Spam"}),t.length>0?a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(rt,{variant:"SurfaceVariant",direction:"Column",gap:"300",style:{padding:`${le.space.S400} ${le.space.S400} 0`},children:a.jsx(Od,{children:a.jsxs(Md,{icon:a.jsx(Q,{size:"600",src:$.Warning}),title:`${t.length} Spam Invites`,subTitle:"Some of the following invites may contain harmful content or have been sent by banned users.",children:[a.jsxs(y,{direction:"Row",gap:"200",justifyContent:"Center",wrap:"Wrap",children:[a.jsx(Ee,{size:"300",variant:"Critical",fill:"Solid",radii:"300",onClick:l,before:g&&a.jsx(ot,{size:"100",variant:"Critical",fill:"Solid"}),disabled:v,children:a.jsx(x,{size:"B300",truncate:!0,children:"Decline All"})}),s&&c.status!==he.Success&&a.jsx(Ee,{size:"300",variant:"Secondary",fill:"Solid",radii:"300",onClick:d,before:p&&a.jsx(ot,{size:"100",variant:"Secondary",fill:"Solid"}),disabled:v,children:a.jsx(x,{size:"B300",truncate:!0,children:"Report All"})}),h.length>0&&a.jsx(Ee,{size:"300",variant:"Secondary",fill:"Solid",radii:"300",disabled:v,onClick:D,before:_&&a.jsx(ot,{size:"100",variant:"Secondary",fill:"Solid"}),children:a.jsx(x,{size:"B300",truncate:!0,children:"Block All"})})]}),a.jsx("span",{"data-spacing-node":!0}),a.jsx(Ee,{size:"300",variant:"Secondary",fill:"Soft",radii:"Pill",before:a.jsx(Q,{size:"100",src:o?$.ChevronTop:$.ChevronBottom}),onClick:()=>i(!o),children:a.jsx(x,{size:"B300",children:o?"Hide All":"View All"})})]})})}),o&&t.map(E=>a.jsx(vT,{invite:E,compact:n,onNavigate:e,hideAvatar:!0},E.roomId))]}):a.jsx(CE,{children:a.jsx(Od,{children:a.jsx(Md,{icon:a.jsx(Q,{size:"600",src:$.Warning}),title:"No Spam Invites",subTitle:"Invites detected as spam appear here."})})})]})}function ULe(){const t=ge(),e=Tt(),{navigateRoom:n,navigateSpace:r}=Mo(),o=_t(nr),i=_t(h3),[s,u]=f.useState(0),l=i.map(_=>t.getRoom(_)).filter(_=>!!_).map(_=>OLe(t,_,e)),[c,d,F]=f.useMemo(()=>{const _=[],v=[],E=[];return l.forEach(b=>{if(MLe(b)||Cfe(t,o,b.senderId)){E.push(b);return}if(bfe(t,o,b.senderId).length===0){v.push(b);return}_.push(b)}),[_,v,E]},[t,o,l]),h=f.useRef(null),[m,D]=f.useState(document.body.clientWidth<=yte);p3(f.useCallback(()=>h.current,[]),f.useCallback(_=>D(_<=yte),[]));const g=Wr(),p=(_,v)=>{if(v){r(_);return}n(_)};return a.jsxs(ur,{children:[a.jsx(Dr,{balance:!0,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",basis:"No",children:g===en.Mobile&&a.jsx(mc,{children:_=>a.jsx(Me,{onClick:_,children:a.jsx(Q,{src:$.ArrowLeft})})})}),a.jsxs(y,{alignItems:"Center",gap:"200",children:[g!==en.Mobile&&a.jsx(Q,{size:"400",src:$.Mail}),a.jsx(x,{size:"H3",truncate:!0,children:"Invites"})]}),a.jsx(y,{grow:"Yes",basis:"No"})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsx(zh,{children:a.jsxs(y,{ref:h,direction:"Column",gap:"600",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx("span",{"data-spacing-node":!0}),a.jsx(x,{size:"L400",children:"Filter"}),a.jsx(PLe,{filter:s,onFilter:u,knownInvites:c,unknownInvites:d,spamInvites:F})]}),s===0&&a.jsx(LLe,{invites:c,compact:m,handleNavigate:p}),s===1&&a.jsx(NLe,{invites:d,compact:m,handleNavigate:p}),s===2&&a.jsx(zLe,{invites:F,compact:m,handleNavigate:p})]})})})})})]})}var VLe="_9a87v70";const xte=Ie(({className:t,...e},n)=>a.jsx(y,{className:Ve(VLe,t),...e,ref:n})),qLe=(...t)=>{console!=null&&console.warn&&(y0(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t))},wte={},bT=(...t)=>{y0(t[0])&&wte[t[0]]||(y0(t[0])&&(wte[t[0]]=new Date),qLe(...t))},kte=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},Ste=(t,e,n)=>{t.loadNamespaces(e,kte(t,n))},jte=(t,e,n,r)=>{y0(n)&&(n=[n]),n.forEach(o=>{t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,kte(t,r))},HLe=(t,e,n={})=>!e.languages||!e.languages.length?(bT("i18n.languages were undefined or empty",e.languages),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,o)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,t))return!1}}),y0=t=>typeof t=="string",$Le=t=>typeof t=="object"&&t!==null,WLe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,KLe={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xA9","&#169;":"\xA9","&reg;":"\xAE","&#174;":"\xAE","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},GLe=t=>KLe[t];let CT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(WLe,GLe)};const YLe=(t={})=>{CT={...CT,...t}},ZLe=()=>CT;let Bte;const JLe=t=>{Bte=t},XLe=()=>Bte,QLe={type:"3rdParty",init(t){YLe(t.options.react),JLe(t)}},eNe=f.createContext();class tNe{constructor(){Roe(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}}const nNe=(t,e)=>{const n=f.useRef();return f.useEffect(()=>{n.current=t},[t,e]),n.current},Ate=(t,e,n,r)=>t.getFixedT(e,n,r),rNe=(t,e,n,r)=>f.useCallback(Ate(t,e,n,r),[t,e,n,r]),oNe=(t,e={})=>{var b,k,C,S;const{i18n:n}=e,{i18n:r,defaultNS:o}=f.useContext(eNe)||{},i=n||r||XLe();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new tNe),!i){bT("You will need to pass in an i18next instance by using initReactI18next");const w=(O,j)=>y0(j)?j:$Le(j)&&y0(j.defaultValue)?j.defaultValue:Array.isArray(O)?O[O.length-1]:O,A=[w,{},!1];return A.t=w,A.i18n={},A.ready=!1,A}(b=i.options.react)!=null&&b.wait&&bT("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...ZLe(),...i.options.react,...e},{useSuspense:u,keyPrefix:l}=s;let c=o||((k=i.options)==null?void 0:k.defaultNS);c=y0(c)?[c]:c||["translation"],(S=(C=i.reportNamespaces).addUsedNamespaces)==null||S.call(C,c);const d=(i.isInitialized||i.initializedStoreOnce)&&c.every(w=>HLe(w,i,s)),F=rNe(i,e.lng||null,s.nsMode==="fallback"?c:c[0],l),h=()=>F,m=()=>Ate(i,e.lng||null,s.nsMode==="fallback"?c:c[0],l),[D,g]=f.useState(h);let p=c.join();e.lng&&(p=`${e.lng}${p}`);const _=nNe(p),v=f.useRef(!0);f.useEffect(()=>{const{bindI18n:w,bindI18nStore:A}=s;v.current=!0,!d&&!u&&(e.lng?jte(i,e.lng,c,()=>{v.current&&g(m)}):Ste(i,c,()=>{v.current&&g(m)})),d&&_&&_!==p&&v.current&&g(m);const O=()=>{v.current&&g(m)};return w&&(i==null||i.on(w,O)),A&&(i==null||i.store.on(A,O)),()=>{v.current=!1,i&&(w==null||w.split(" ").forEach(j=>i.off(j,O))),A&&i&&A.split(" ").forEach(j=>i.store.off(j,O))}},[i,p]),f.useEffect(()=>{v.current&&d&&g(h)},[i,l,d]);const E=[D,i,d];if(E.t=D,E.i18n=i,E.ready=d,d||!d&&!u)return E;throw new Promise(w=>{e.lng?jte(i,e.lng,c,()=>w()):Ste(i,c,()=>w())})},w_="data-paginator-anchor",_D=t=>{const e=[];for(let n=t.start;n<t.end;n+=1)e.push(n);return e},Tte=(t,e,n,r,o=1)=>{const i=n==="B",s=i?_D(e):_D(e).reverse(),{viewHeight:u,top:l,height:c}=q5(t),{offsetTop:d}=t,F=l+u,h=i?Math.max(l-u*o,0):Math.min(F+u*o,c);if(h===0||h===c)return;let m;return s.find(D=>{const g=r(D);if(!g)return m=D,!1;const{clientHeight:p}=g,_=g.offsetTop-d,v=_+p;return(i?v>h:_<h)?!0:(m=D,!1)}),m},Ite=(t,e,n)=>{let r;return[(n==="B"?_D(t):_D(t).reverse()).find(o=>{const i=e(o);return i?(r=i,!0):!1}),r]},Rte=(t,e)=>{const[n,r]=e;if(!(!n||!r))return{scrollTop:t,anchorItem:n,anchorOffsetTop:r.offsetTop}},Ote=(t,e)=>f.useMemo(()=>{let n=null;return r=>{r!==n&&(n&&(t==null||t.unobserve(n)),r&&(n=r,r.setAttribute(w_,e),t==null||t.observe(r)))}},[t,e]),iNe=t=>{const{count:e,limit:n,range:r,onRangeChange:o,getScrollElement:i,getItemElement:s,onEnd:u}=t,l=f.useRef(!0),c=f.useRef(),d=f.useRef(),F=f.useRef({range:r,limit:n,count:e});F.current.count!==e&&(c.current=void 0),F.current={range:r,count:e,limit:n};const h=f.useMemo(()=>{const b=_D(r);return()=>b},[r]),m=f.useCallback((b,k)=>{const C=i();if(!C||k!=null&&k.stopInView&&Gpe(C,b))return!1;let S=b.offsetTop;if((k==null?void 0:k.align)==="center"&&eH(C,b)){const w=q5(C);S=b.offsetTop-Math.round(w.viewHeight/2)+Math.round(b.clientHeight/2)}else if((k==null?void 0:k.align)==="end"&&eH(C,b)){const w=q5(C);S=b.offsetTop-Math.round(w.viewHeight)+b.clientHeight}return C.scrollTo({top:S-((k==null?void 0:k.offset)??0),behavior:k==null?void 0:k.behavior}),!0},[i]),D=f.useCallback((b,k)=>{var j;const{range:C,limit:S,count:w}=F.current;if(b<0||b>=w)return!1;if(b<C.start||b>=C.end)return o({start:Math.max(b-S,0),end:Math.min(b+S,w)}),d.current={index:b,opts:k},!0;const A=_D({start:C.start,end:b+1}).reverse().find(R=>s(R)!==void 0),O=A&&s(A);return O?m(O,k):((j=i())==null||j.scrollTo({top:(k==null?void 0:k.offset)??0,behavior:k==null?void 0:k.behavior}),!0)},[i,m,s,o]),g=f.useCallback(b=>{const k=i(),{range:C,limit:S,count:w}=F.current;let{start:A,end:O}=C;if(b==="B"){if(c.current=void 0,A===0){u==null||u(!0);return}k&&(c.current=Rte(k.scrollTop,Ite({start:A,end:O},s,"B"))),k&&(O=Tte(k,C,"F",s,2)??O),A=Math.max(A-S,0)}if(b==="F"){if(c.current=void 0,O===w){u==null||u(!1);return}k&&(c.current=Rte(k.scrollTop,Ite({start:A,end:O},s,"F"))),O=Math.min(O+S,w),k&&(A=Tte(k,C,"B",s,2)??A)}o({start:A,end:O})},[i,s,u,o]),p=f.useCallback(b=>{var k,C;(k=b.find(S=>S.target.getAttribute(w_)==="B"))!=null&&k.isIntersecting&&g("B"),(C=b.find(S=>S.target.getAttribute(w_)==="F"))!=null&&C.isIntersecting&&g("F")},[g]),_=xE(p,f.useCallback(()=>({root:i()}),[i])),v=Ote(_,"B"),E=Ote(_,"F");return f.useLayoutEffect(()=>{const b=i();if(!c.current||!b)return;const{anchorOffsetTop:k,anchorItem:C,scrollTop:S}=c.current,w=s(C);if(!w)return;const{offsetTop:A}=w,O=A-k,j=S+O;b.scrollTo({top:j,behavior:"instant"}),c.current=void 0},[r,i,s]),f.useLayoutEffect(()=>{if(d.current===void 0)return;const{index:b,opts:k}=d.current;D(b,{...k,behavior:"instant"}),d.current=void 0},[r,D]),f.useEffect(()=>{if(l.current){l.current=!1;return}const b=i();if(!b)return;const k=b.querySelector(`[${w_}="B"]`),C=b.querySelector(`[${w_}="F"]`);if(k&&U5(b,k)){g("B");return}C&&U5(b,C)&&g("F")},[r,i,g]),{getItems:h,scrollToItem:D,scrollToElement:m,observeBackAnchor:v,observeFrontAnchor:E}},aNe=()=>t=>{const e=t.getContent(),n=t.getPrevContent(),r=t.getSender(),o=t.getStateKey(),i=typeof e.reason=="string"?e.reason:void 0;if(!r||!o)return{icon:$.User,body:"Broken membership event"};const s=ln(r),u=typeof e.displayname=="string"&&e.displayname||ln(o);if(Q5(t)){if(e.membership===$n.Invite)return n.membership===$n.Knock?{icon:$.ArrowGoRightPlus,body:a.jsxs(a.Fragment,{children:[a.jsx("b",{children:s})," accepted ",a.jsx("b",{children:u}),"'s join request ",i]})}:{icon:$.ArrowGoRightPlus,body:a.jsxs(a.Fragment,{children:[a.jsx("b",{children:s})," invited ",a.jsx("b",{children:u})," ",i]})};if(e.membership===$n.Knock)return{icon:$.ArrowGoRightPlus,body:a.jsxs(a.Fragment,{children:[a.jsx("b",{children:u})," request to join room ",i]})};if(e.membership===$n.Join)return{icon:$.ArrowGoRight,body:a.jsxs(a.Fragment,{children:[a.jsx("b",{children:u})," joined the room"]})};if(e.membership===$n.Leave)return n.membership===$n.Invite?{icon:$.ArrowGoRightCross,body:r===o?a.jsxs(a.Fragment,{children:[a.jsx("b",{children:u})," rejected the invitation ",i]}):a.jsxs(a.Fragment,{children:[a.jsx("b",{children:s})," rejected ",a.jsx("b",{children:u}),"'s join request ",i]})}:n.membership===$n.Knock?{icon:$.ArrowGoRightCross,body:r===o?a.jsxs(a.Fragment,{children:[a.jsx("b",{children:u})," revoked joined request ",i]}):a.jsxs(a.Fragment,{children:[a.jsx("b",{children:s})," revoked ",a.jsx("b",{children:u}),"'s invite ",i]})}:n.membership===$n.Ban?{icon:$.ArrowGoLeft,body:a.jsxs(a.Fragment,{children:[a.jsx("b",{children:s})," unbanned ",a.jsx("b",{children:u})," ",i]})}:{icon:$.ArrowGoLeft,body:r===o?a.jsxs(a.Fragment,{children:[a.jsx("b",{children:u})," left the room ",i]}):a.jsxs(a.Fragment,{children:[a.jsx("b",{children:s})," kicked ",a.jsx("b",{children:u})," ",i]})};if(e.membership===$n.Ban)return{icon:$.ArrowGoLeft,body:a.jsxs(a.Fragment,{children:[a.jsx("b",{children:s})," banned ",a.jsx("b",{children:u})," ",i]})}}if(e.displayname!==n.displayname){const l=typeof n.displayname=="string"&&n.displayname||ln(o);return{icon:$.Mention,body:typeof e.displayname=="string"?a.jsxs(a.Fragment,{children:[a.jsx("b",{children:l})," changed display name to ",a.jsx("b",{children:u})]}):a.jsxs(a.Fragment,{children:[a.jsx("b",{children:l})," removed their display name "]})}}return e.avatar_url!==n.avatar_url?{icon:$.User,body:e.avatar_url&&typeof e.avatar_url=="string"?a.jsxs(a.Fragment,{children:[a.jsx("b",{children:u})," changed their avatar"]}):a.jsxs(a.Fragment,{children:[a.jsx("b",{children:u})," removed their avatar "]})}:{icon:$.User,body:"Membership event with no changes"}},sNe=Ie(({room:t,...e},n)=>{var E,b;const r=ge(),o=Tt(),{navigateRoom:i}=Mo(),s=_t(Co),u=so(t,Re.RoomCreate),l=i0(t,s.has(t.roomId)),c=t1(t),d=Ry(t),F=l?Xt(r,l,o):void 0,h=u==null?void 0:u.getContent(),m=u==null?void 0:u.getTs(),D=u==null?void 0:u.getSender(),g=D&&(wr(t,D)??ln(D)),p=(E=h==null?void 0:h.predecessor)==null?void 0:E.room_id,[_,v]=et(f.useCallback(async k=>r.joinRoom(k),[r]));return a.jsxs(y,{direction:"Column",grow:"Yes",gap:"500",...e,ref:n,children:[a.jsx(y,{children:a.jsx(Rt,{size:"500",children:a.jsx(ho,{roomId:t.roomId,src:F??void 0,alt:c,renderFallback:()=>a.jsx(x,{size:"H2",children:Gi(c)})})})}),a.jsxs(y,{direction:"Column",gap:"300",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"H3",priority:"500",children:c}),a.jsx(x,{size:"T400",priority:"400",children:typeof d=="string"?d:"This is the beginning of conversation."}),g&&m&&a.jsxs(x,{size:"T200",priority:"300",children:["Created by ",a.jsxs("b",{children:["@",g]}),` on ${nY(m)} ${O3(m)}`]})]}),a.jsxs(y,{gap:"200",wrap:"Wrap",children:[a.jsx(Ee,{onClick:()=>Au(t.roomId),variant:"Secondary",size:"300",radii:"300",children:a.jsx(x,{size:"B300",children:"Invite Member"})}),typeof p=="string"&&(((b=r.getRoom(p))==null?void 0:b.getMyMembership())===$n.Join?a.jsx(Ee,{onClick:()=>i(p),variant:"Success",size:"300",fill:"Soft",radii:"300",children:a.jsx(x,{size:"B300",children:"Open Old Room"})}):a.jsx(Ee,{onClick:()=>v(p),variant:"Secondary",size:"300",fill:"Soft",radii:"300",disabled:_.status===he.Loading,after:_.status===he.Loading?a.jsx(ot,{size:"50",variant:"Secondary",fill:"Soft"}):void 0,children:a.jsx(x,{size:"B300",children:"Join Old Room"})}))]})]})]})});var uNe=br({defaultClassName:"_10tu9iu0 _1mqalmd1 _1mqalmd0",variantClassNames:{position:{Top:"_10tu9iu1",Bottom:"_10tu9iu2"}},defaultVariants:{position:"Top"},compoundVariants:[]}),Fo=(t=>(t.Idle="idle",t.Loading="loading",t.Success="success",t.Error="error",t))(Fo||{});const vD=t=>{const e=Bn({file:t,status:"idle"});return Bn(n=>n(e),(n,r,o)=>{const i=n(e);if("promise"in o){r(e,{status:"loading",file:t,promise:o.promise,progress:{loaded:0,total:t.size}});return}if("progress"in o&&i.status==="loading"){r(e,{...i,progress:o.progress});return}if("mxc"in o){r(e,{status:"success",file:t,mxc:o.mxc});return}"error"in o&&r(e,{status:"error",file:t,error:o.error})})},Mte=(t,e,n)=>{const[r,o]=Yi(e),{file:i}=r,s=M8(f.useCallback(c=>o({progress:c}),[o]),{immediate:!0,wait:200}),u=f.useCallback(()=>kfe(t,i,{hideFilename:n,onPromise:c=>o({promise:c}),onProgress:s,onSuccess:c=>o({mxc:c}),onError:c=>o({error:c})}),[t,i,n,o,s]),l=f.useCallback(async()=>{r.status==="loading"&&await t.cancelUpload(r.promise)},[t,r]);return{upload:r,startUpload:u,cancelUpload:l}},lNe=()=>rE(vD),cNe=(t,e)=>Bn(n=>e.map(r=>n(t(r)))),dNe=()=>{const t=Bn([]);return Bn(e=>e(t),(e,n,r)=>{const o=e(t),i=Array.isArray(r.item)?r.item:[r.item];if(r.type==="DELETE"){n(t,o.filter(s=>!i.includes(s)));return}if(r.type==="PUT"){n(t,[...o,...i]);return}r.type==="REPLACE"&&n(t,o.map(s=>s===r.item?r.replacement:s))})},hNe=rE(dNe),ET=lNe(),FNe=()=>Bn([]),mNe=rE(()=>FNe()),DNe=()=>Bn(void 0),Pte=rE(()=>DNe()),gNe=t=>{f.useEffect(()=>{let e=document.hasFocus();const n=()=>{if(document.hasFocus()){if(e)return;e=!0,t(e)}else e&&(e=!1,t(e))};return document.addEventListener("focusin",n),document.addEventListener("focusout",n),()=>{document.removeEventListener("focusin",n),document.removeEventListener("focusout",n)}},[t])},yT=(t,e)=>{const n=ge();return f.useMemo(()=>[t].concat(Array.from(Wa(e,t))).reduce((r,o)=>{const i=n.getRoom(o);return i&&r.push(i),r},[]),[n,t,e])},Lte=Ie(({position:t,className:e,...n},r)=>a.jsx(y,{className:Ve(uNe({position:t}),e),justifyContent:"Center",alignItems:"Center",gap:"200",...n,ref:r})),Nte=Ie(({variant:t,children:e,...n},r)=>a.jsxs(y,{gap:"100",justifyContent:"Center",alignItems:"Center",...n,ref:r,children:[a.jsx(jn,{style:{flexGrow:1},variant:t,size:"300"}),e,a.jsx(jn,{style:{flexGrow:1},variant:t,size:"300"})]})),xT=t=>t.getUnfilteredTimelineSet().getLiveTimeline(),y4=(t,e)=>t.getUnfilteredTimelineSet().getTimelineForEvent(e)??void 0,x4=(t,e)=>{const n=t.getNeighbouringTimeline(e);return n?x4(n,e):t},k_=t=>{const e=x4(t,At.Backward),n=[];for(let r=e;r;r=r.getNeighbouringTimeline(At.Forward))n.push(r);return n},wT=t=>t.getEvents().length,bD=t=>{const e=(n,r)=>n+wT(r);return t.reduce(e,0)},pNe=(t,e)=>{let n=0;const r=t.find(o=>(n+=o.getEvents().length,e<n));return r?[r,n-r.getEvents().length]:[void 0,0]},fNe=(t,e)=>t-e,_Ne=(t,e)=>t.getEvents()[e],kT=(t,e,n)=>{const r=t.findIndex(i=>i===e);if(r===-1)return;const o=e.getEvents().findIndex(i=>i.getId()===n);return o===-1?void 0:t.slice(0,r).reduce((i,s)=>s.getEvents().length+i,0)+o},S_=80,vNe=(t,e,n,r)=>f.useCallback(async o=>{const[i,s]=await ei(t.getEventTimeline(e.getUnfilteredTimelineSet(),o));if(!s){r(i??null);return}const u=k_(s),l=kT(u,s,o);if(l===void 0){r(i??null);return}n(o,u,l)},[t,e,n,r]),bNe=(t,e,n,r)=>{const o=f.useRef(e);o.current=e;const i=yr();return f.useMemo(()=>{let s=!1;const u=(l,c,d)=>{const F=l[0],h=v=>E=>E===v,m=k_(F),D=m.findIndex(h(F)),g=D===-1?[]:m.slice(0,D),p=wT(m[D])-c[0],_=bD(g)+(d?p:0);n(v=>({linkedTimelines:m,range:_>0?{start:v.range.start+_,end:v.range.end+_}:{...v.range}}))};return async l=>{var g;if(s)return;const{linkedTimelines:c}=o.current,d=c.map(wT),F=l?c[0]:c[c.length-1];if(!F)return;if(!F.getPaginationToken(l?At.Backward:At.Forward)&&bD(c)!==bD(k_(F))){u(c,d,l);return}s=!0;const[h]=await ei(t.paginateEventTimeline(F,{backwards:l,limit:r}));if(h)return;const m=F.getNeighbouringTimeline(l?At.Backward:At.Forward)??F,D=m.getRoomId();(g=D?t.getRoom(D):null)!=null&&g.hasEncryptionStateEvent()&&await ei(pfe(t,m)),s=!1,i()&&u(c,d,l)}},[t,i,n,r])},CNe=(t,e)=>{f.useEffect(()=>{const n=(o,i,s,u,l)=>{(i==null?void 0:i.roomId)!==t.roomId||!l.liveEvent||e(o)},r=(o,i)=>{(i==null?void 0:i.roomId)===t.roomId&&e(o)};return t.on(Ke.Timeline,n),t.on(Ke.Redaction,r),()=>{t.removeListener(Ke.Timeline,n),t.removeListener(Ke.Redaction,r)}},[t,e])},ENe=(t,e)=>{f.useEffect(()=>{const n=r=>{r.roomId===t.roomId&&e()};return t.on(Ke.TimelineRefresh,n),()=>{t.removeListener(Ke.TimelineRefresh,n)}},[t,e])},w4=t=>{const e=k_(xT(t)),n=bD(e);return{linkedTimelines:e,range:{start:Math.max(n-S_,0),end:n}}},k4=()=>({range:{start:0,end:0},linkedTimelines:[]}),ST=(t,e=!1)=>{const n=t.getEventReadUpTo(t.client.getUserId()??"");if(!n)return;const r=y4(t,n),o=r&&x4(r,At.Forward);return{readUptoEventId:n,inLiveTimeline:o===t.getLiveTimeline(),scrollTo:e}};function yNe({room:t,eventId:e,roomInputRef:n,editor:r,getPowerLevelTag:o,accessibleTagColors:i}){var Yo;const s=ge(),u=Tt(),[l]=Ft(ut,"hideActivity"),[c]=Ft(ut,"messageLayout"),[d]=Ft(ut,"messageSpacing"),[F]=Ft(ut,"legacyUsernameColor"),h=iA(),[m]=Ft(ut,"hideMembershipEvents"),[D]=Ft(ut,"hideNickAvatarEvents"),[g]=Ft(ut,"mediaAutoLoad"),[p]=Ft(ut,"urlPreview"),[_]=Ft(ut,"encUrlPreview"),v=t.hasEncryptionStateEvent()?_:p,[E]=Ft(ut,"showHiddenEvents"),b=_T(),k=f.useMemo(()=>new Set(b),[b]),C=Di(Pte(t.roomId)),S=Lh(),{canDoAction:w,canSendEvent:A,canSendStateEvent:O,getPowerLevel:j}=yo(S),R=j(s.getUserId()??""),M=w("redact",R),z=A(qn.Reaction,R),T=O(Re.RoomPinnedEvents,R),[P,L]=f.useState(),U=_t(lo),te=km(t.roomId,co),{navigateRoom:ae}=Mo(),Fe=gy(t.roomId),re=py(),ce=yT(t.roomId,U),[K,H]=f.useState(()=>ST(t,!0)),q=f.useRef();K&&(q.current=K.readUptoEventId);const V=f.useRef(null),[X,ee]=f.useState(!0),J=f.useRef(X);J.current=X;const de=f.useRef(null),ue=f.useRef({count:0,smooth:!0}),[De,Ae]=f.useState(),ye=yr(),He=f.useMemo(()=>({...Hh,render:y8($e=>S3(s,t.roomId,$e,k3(Fe)))}),[s,t,Fe]),ze=f.useMemo(()=>x8(s,t.roomId,{linkifyOpts:He,useAuthentication:u,handleSpoilerClick:re,handleMentionClick:Fe}),[s,t,He,re,Fe,u]),Ne=aNe(),[Oe,Ue]=f.useState(()=>e?k4():w4(t)),nt=bD(Oe.linkedTimelines),_e=Oe.linkedTimelines[Oe.linkedTimelines.length-1]===xT(t),xt=typeof((Yo=Oe.linkedTimelines[0])==null?void 0:Yo.getPaginationToken(At.Backward))=="string",hn=Oe.range.start===0,Ze=Oe.range.end===nt,dt=f.useRef(_e&&Ze);dt.current=_e&&Ze;const B=bNe(s,Oe,Ue,S_),N=f.useCallback(()=>de.current,[]),{getItems:W,scrollToItem:oe,scrollToElement:ie,observeBackAnchor:ne,observeFrontAnchor:me}=iNe({count:nt,limit:S_,range:Oe.range,onRangeChange:f.useCallback($e=>Ue(je=>({...je,range:$e})),[]),getScrollElement:N,getItemElement:f.useCallback($e=>{var je;return((je=de.current)==null?void 0:je.querySelector(`[data-message-item="${$e}"]`))??void 0},[]),onEnd:B}),se=vNe(s,t,f.useCallback(($e,je,St)=>{if(!ye())return;const Kt=bD(je);Ae({index:St,scrollTo:!0,highlight:$e!==q.current}),Ue({linkedTimelines:je,range:{start:Math.max(St-S_,0),end:Math.min(St+S_,Kt)}})},[ye]),f.useCallback(()=>{ye()&&(Ue(w4(t)),ue.current.count+=1,ue.current.smooth=!1)},[ye,t]));CNe(t,f.useCallback($e=>{if(J.current){document.hasFocus()&&(!K||$e.getSender()===s.getUserId())&&requestAnimationFrame(()=>ta(s,$e.getRoomId(),l)),!document.hasFocus()&&!K&&H(ST(t)),ue.current.count+=1,ue.current.smooth=!0,Ue(je=>({...je,range:{start:je.range.start+1,end:je.range.end+1}}));return}Ue(je=>({...je})),K||H(ST(t))},[s,t,K,l]));const xe=f.useCallback(async($e,je=!0,St=void 0)=>{const Kt=y4(t,$e),wt=Kt&&kT(Oe.linkedTimelines,Kt,$e);if(typeof wt=="number"){const qt=oe(wt,{behavior:"smooth",align:"center",stopInView:!0});St&&St(qt),Ae({index:wt,scrollTo:!1,highlight:je})}else Ue(k4()),se($e)},[t,Oe,oe,se]);ENe(t,f.useCallback(()=>{_e&&Ue(w4(t))},[t,_e])),mK(f.useMemo(()=>{let $e=!1;return je=>{if(!$e){$e=!0;return}if(!n.current)return;const St=FK(n.current,je),Kt=N();!St||!Kt||J.current&&H5(Kt)}},[N,n]),f.useCallback(()=>n.current,[n]));const ke=f.useCallback(()=>{const $e=q.current;if(!$e){requestAnimationFrame(()=>ta(s,t.roomId,l));return}const je=y4(t,$e);(je&&x4(je,At.Forward))===t.getLiveTimeline()&&requestAnimationFrame(()=>ta(s,t.roomId,l))},[s,t,l]),qe=Z1(f.useCallback($e=>{$e.isIntersecting||ee(!1)},[]),{wait:1e3});xE(f.useCallback($e=>{const je=V.current;if(!je)return;const St=yE(je,$e);St&&qe(St),St!=null&&St.isIntersecting&&dt.current&&(ee(!0),document.hasFocus()&&ke())},[qe,ke]),f.useCallback(()=>({root:N(),rootMargin:"100px"}),[N]),f.useCallback(()=>V.current,[])),gNe(f.useCallback($e=>{if($e&&J.current){if(K!=null&&K.inLiveTimeline){xe(K.readUptoEventId,!1,je=>{je||ke()});return}ke()}},[ke,K,xe])),jd(window,f.useCallback($e=>{var je,St;if(Mn("arrowup",$e)&&hC()&&((je=document.activeElement)==null?void 0:je.getAttribute("data-editable-name"))==="RoomInput"&&hT(r)){const Kt=(St=vfe(t.getLiveTimeline(),wt=>e7(s,wt)))==null?void 0:St.getId();if(!Kt)return;L(Kt),$e.preventDefault()}},[s,t,r])),f.useEffect(()=>{e&&(Ue(k4()),se(e))},[e,se]),f.useLayoutEffect(()=>{const $e=de.current;$e&&H5($e)},[]),f.useLayoutEffect(()=>{const{readUptoEventId:$e,inLiveTimeline:je,scrollTo:St}=K??{};if($e&&je&&St){const Kt=k_(xT(t)),wt=y4(t,$e),qt=wt&&kT(Kt,wt,$e);qt&&oe(qt,{behavior:"instant",align:"start",stopInView:!0})}},[t,K,oe]),f.useLayoutEffect(()=>{De&&De.scrollTo&&oe(De.index,{behavior:"instant",align:"center",stopInView:!0}),setTimeout(()=>{ye()&&Ae($e=>{if($e!==De)return $e})},2e3)},[ye,De,oe]);const Ye=ue.current.count;f.useLayoutEffect(()=>{if(Ye>0){const $e=de.current;$e&&H5($e,ue.current.smooth?"smooth":"instant")}},[Ye]),f.useEffect(()=>{te||H(void 0)},[te]),f.useEffect(()=>{var $e;if(P){const je=(($e=de.current)==null?void 0:$e.querySelector(`[data-message-id="${P}"]`))??void 0;je&&ie(je,{align:"center",behavior:"smooth",stopInView:!0})}},[ie,P]);const Fn=()=>{e&&ae(t.roomId,void 0,{replace:!0}),Ue(w4(t)),ue.current.count+=1,ue.current.smooth=!1},wn=()=>{K!=null&&K.readUptoEventId&&(Ue(k4()),se(K.readUptoEventId))},ve=()=>{ta(s,t.roomId,l)},we=f.useCallback(async $e=>{const je=$e.currentTarget.getAttribute("data-event-id");je&&xe(je)},[xe]),Te=f.useCallback($e=>{$e.preventDefault(),$e.stopPropagation();const je=$e.currentTarget.getAttribute("data-user-id");if(!je){console.warn('Button should have "data-user-id" attribute!');return}ym(je,t.roomId)},[t]),ht=f.useCallback($e=>{$e.preventDefault();const je=$e.currentTarget.getAttribute("data-user-id");if(!je){console.warn('Button should have "data-user-id" attribute!');return}const St=wr(t,je)??ln(je)??je;r.insertNode(mD(je,St.startsWith("@")?St:`@${St}`,je===s.getUserId())),Ge.focus(r),f0(r)},[s,t,r]),Et=f.useCallback($e=>{var Nr;const je=$e.currentTarget.getAttribute("data-event-id");if(!je){console.warn('Button should have "data-event-id" attribute!');return}const St=t.findEventById(je);if(!St)return;const Kt=((Nr=cm(je,St,t.getUnfilteredTimelineSet()))==null?void 0:Nr.getContent()["m.new_content"])??St.getContent(),{body:wt,formatted_body:qt}=Kt,{"m.relates_to":kn}=St.getWireContent(),Ei=St.getSender();Ei&&typeof wt=="string"&&(C({userId:Ei,eventId:je,body:wt,formattedBody:qt,relation:kn}),setTimeout(()=>Ge.focus(r),100))},[t,C,r]),Qt=f.useCallback(($e,je,St)=>{var Nr,No;const Kt=((Nr=pC(t.getUnfilteredTimelineSet(),$e))==null?void 0:Nr.getSortedAnnotationsByKey())??[],[,wt]=Kt.find(([Cn])=>Cn===je)??[],qt=wt?Array.from(wt):[],kn=qt.find(pH(s.getUserId()));if(kn&&(kn!=null&&kn.isRelation())){s.redactEvent(t.roomId,kn.getId());return}const Ei=St||((No=qt.find(r7))==null?void 0:No.getContent().shortcode);s.sendEvent(t.roomId,qn.Reaction,ffe($e,je,Ei))},[s,t]),Ot=f.useCallback($e=>{if($e){L($e);return}L(void 0),Ge.focus(r)},[r]),{t:It}=oNe(),jt=w8({[qn.RoomMessage]:($e,je,St,Kt,wt)=>{var Toe;const qt=pC(Kt,$e),kn=qt&&qt.getSortedAnnotationsByKey(),Ei=kn&&kn.length>0,{replyEventId:Nr,threadRootId:No}=je,Cn=(De==null?void 0:De.index)===St&&De.highlight,mo=cm($e,je,Kt),Kn=()=>(mo==null?void 0:mo.getContent()["m.new_content"])??je.getContent(),ci=je.getSender()??"",C1=j(je.getSender()),n2=wr(t,ci)??ln(ci)??ci;return a.jsx(pT,{"data-message-item":St,"data-message-id":$e,room:t,mEvent:je,messageSpacing:d,messageLayout:c,collapse:wt,highlight:Cn,edit:P===$e,canDelete:M||je.getSender()===s.getUserId(),canSendReaction:z,canPinEvent:T,imagePackRooms:ce,relations:Ei?qt:void 0,onUserClick:Te,onUsernameClick:ht,onReplyClick:Et,onReactionToggle:Qt,onEditId:Ot,reply:Nr&&a.jsx(R3,{room:t,timelineSet:Kt,replyEventId:Nr,threadRootId:No,onClick:we,getPowerLevel:j,getPowerLevelTag:o,accessibleTagColors:i,legacyUsernameColor:F||h}),reactions:qt&&a.jsx(DA,{style:{marginTop:le.space.S200},room:t,relations:qt,mEventId:$e,canSendReaction:z,onReactionToggle:Qt}),hideReadReceipts:l,powerLevelTag:o(C1),accessibleTagColors:i,legacyUsernameColor:F||h,children:je.isRedacted()?a.jsx(oa,{reason:(Toe=je.getUnsigned().redacted_because)==null?void 0:Toe.content.reason}):a.jsx(e0,{displayName:n2,msgType:je.getContent().msgtype??"",ts:je.getTs(),edited:!!mo,getContent:Kn,mediaAutoLoad:g,urlPreview:v,htmlReactParserOptions:ze,linkifyOpts:He,outlineAttachment:c===Fr.Bubble})},je.getId())},[qn.RoomMessageEncrypted]:($e,je,St,Kt,wt)=>{const qt=pC(Kt,$e),kn=qt&&qt.getSortedAnnotationsByKey(),Ei=kn&&kn.length>0,{replyEventId:Nr,threadRootId:No}=je,Cn=(De==null?void 0:De.index)===St&&De.highlight,mo=j(je.getSender());return a.jsx(pT,{"data-message-item":St,"data-message-id":$e,room:t,mEvent:je,messageSpacing:d,messageLayout:c,collapse:wt,highlight:Cn,edit:P===$e,canDelete:M||je.getSender()===s.getUserId(),canSendReaction:z,canPinEvent:T,imagePackRooms:ce,relations:Ei?qt:void 0,onUserClick:Te,onUsernameClick:ht,onReplyClick:Et,onReactionToggle:Qt,onEditId:Ot,reply:Nr&&a.jsx(R3,{room:t,timelineSet:Kt,replyEventId:Nr,threadRootId:No,onClick:we,getPowerLevel:j,getPowerLevelTag:o,accessibleTagColors:i,legacyUsernameColor:F||h}),reactions:qt&&a.jsx(DA,{style:{marginTop:le.space.S200},room:t,relations:qt,mEventId:$e,canSendReaction:z,onReactionToggle:Qt}),hideReadReceipts:l,powerLevelTag:o(mo),accessibleTagColors:i,legacyUsernameColor:F||h,children:a.jsx(fT,{mEvent:je,children:()=>{if(je.isRedacted())return a.jsx(oa,{});if(je.getType()===qn.Sticker)return a.jsx(Gh,{content:je.getContent(),renderImageContent:Kn=>a.jsx(Hd,{...Kn,autoPlay:g,renderImage:ci=>a.jsx(uc,{...ci,loading:"lazy"}),renderViewer:ci=>a.jsx(Zd,{...ci})})});if(je.getType()===qn.RoomMessage){const Kn=cm($e,je,Kt),ci=()=>(Kn==null?void 0:Kn.getContent()["m.new_content"])??je.getContent(),C1=je.getSender()??"",n2=wr(t,C1)??ln(C1)??C1;return a.jsx(e0,{displayName:n2,msgType:je.getContent().msgtype??"",ts:je.getTs(),edited:!!Kn,getContent:ci,mediaAutoLoad:g,urlPreview:v,htmlReactParserOptions:ze,linkifyOpts:He,outlineAttachment:c===Fr.Bubble})}return je.getType()===qn.RoomMessageEncrypted?a.jsx(x,{children:a.jsx(Vj,{})}):a.jsx(x,{children:a.jsx(L8,{})})}})},je.getId())},[qn.Sticker]:($e,je,St,Kt,wt)=>{var Cn;const qt=pC(Kt,$e),kn=qt&&qt.getSortedAnnotationsByKey(),Ei=kn&&kn.length>0,Nr=(De==null?void 0:De.index)===St&&De.highlight,No=j(je.getSender());return a.jsx(pT,{"data-message-item":St,"data-message-id":$e,room:t,mEvent:je,messageSpacing:d,messageLayout:c,collapse:wt,highlight:Nr,canDelete:M||je.getSender()===s.getUserId(),canSendReaction:z,canPinEvent:T,imagePackRooms:ce,relations:Ei?qt:void 0,onUserClick:Te,onUsernameClick:ht,onReplyClick:Et,onReactionToggle:Qt,reactions:qt&&a.jsx(DA,{style:{marginTop:le.space.S200},room:t,relations:qt,mEventId:$e,canSendReaction:z,onReactionToggle:Qt}),hideReadReceipts:l,powerLevelTag:o(No),accessibleTagColors:i,legacyUsernameColor:F||h,children:je.isRedacted()?a.jsx(oa,{reason:(Cn=je.getUnsigned().redacted_because)==null?void 0:Cn.content.reason}):a.jsx(Gh,{content:je.getContent(),renderImageContent:mo=>a.jsx(Hd,{...mo,autoPlay:g,renderImage:Kn=>a.jsx(uc,{...Kn,loading:"lazy"}),renderViewer:Kn=>a.jsx(Zd,{...Kn})})})},je.getId())},[Re.RoomMember]:($e,je,St)=>{const Kt=Q5(je);if(Kt&&m||!Kt&&D)return null;const wt=(De==null?void 0:De.index)===St&&De.highlight,qt=Ne(je),kn=a.jsx($s,{ts:je.getTs(),compact:c===Fr.Compact});return a.jsx(fD,{"data-message-item":St,"data-message-id":$e,room:t,mEvent:je,highlight:wt,messageSpacing:d,canDelete:M||je.getSender()===s.getUserId(),hideReadReceipts:l,children:a.jsx(Nm,{messageLayout:c,time:kn,iconSrc:qt.icon,content:a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(x,{size:"T300",priority:"300",children:qt.body})})})},je.getId())},[Re.RoomName]:($e,je,St)=>{const Kt=(De==null?void 0:De.index)===St&&De.highlight,wt=je.getSender()??"",qt=wr(t,wt)||ln(wt),kn=a.jsx($s,{ts:je.getTs(),compact:c===Fr.Compact});return a.jsx(fD,{"data-message-item":St,"data-message-id":$e,room:t,mEvent:je,highlight:Kt,messageSpacing:d,canDelete:M||je.getSender()===s.getUserId(),hideReadReceipts:l,children:a.jsx(Nm,{messageLayout:c,time:kn,iconSrc:$.Hash,content:a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T300",priority:"300",children:[a.jsx("b",{children:qt}),It("Organisms.RoomCommon.changed_room_name")]})})})},je.getId())},[Re.RoomTopic]:($e,je,St)=>{const Kt=(De==null?void 0:De.index)===St&&De.highlight,wt=je.getSender()??"",qt=wr(t,wt)||ln(wt),kn=a.jsx($s,{ts:je.getTs(),compact:c===Fr.Compact});return a.jsx(fD,{"data-message-item":St,"data-message-id":$e,room:t,mEvent:je,highlight:Kt,messageSpacing:d,canDelete:M||je.getSender()===s.getUserId(),hideReadReceipts:l,children:a.jsx(Nm,{messageLayout:c,time:kn,iconSrc:$.Hash,content:a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T300",priority:"300",children:[a.jsx("b",{children:qt})," changed room topic"]})})})},je.getId())},[Re.RoomAvatar]:($e,je,St)=>{const Kt=(De==null?void 0:De.index)===St&&De.highlight,wt=je.getSender()??"",qt=wr(t,wt)||ln(wt),kn=a.jsx($s,{ts:je.getTs(),compact:c===Fr.Compact});return a.jsx(fD,{"data-message-item":St,"data-message-id":$e,room:t,mEvent:je,highlight:Kt,messageSpacing:d,canDelete:M||je.getSender()===s.getUserId(),hideReadReceipts:l,children:a.jsx(Nm,{messageLayout:c,time:kn,iconSrc:$.Hash,content:a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T300",priority:"300",children:[a.jsx("b",{children:qt})," changed room avatar"]})})})},je.getId())}},($e,je,St)=>{if(!E)return null;const Kt=(De==null?void 0:De.index)===St&&De.highlight,wt=je.getSender()??"",qt=wr(t,wt)||ln(wt),kn=a.jsx($s,{ts:je.getTs(),compact:c===Fr.Compact});return a.jsx(fD,{"data-message-item":St,"data-message-id":$e,room:t,mEvent:je,highlight:Kt,messageSpacing:d,canDelete:M||je.getSender()===s.getUserId(),hideReadReceipts:l,children:a.jsx(Nm,{messageLayout:c,time:kn,iconSrc:$.Code,content:a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T300",priority:"300",children:[a.jsx("b",{children:qt})," sent ",a.jsx("code",{className:nc,children:je.getType()})," state event"]})})})},je.getId())},($e,je,St)=>{if(!E||Object.keys(je.getContent()).length===0||je.getRelation()||je.isRedaction())return null;const Kt=(De==null?void 0:De.index)===St&&De.highlight,wt=je.getSender()??"",qt=wr(t,wt)||ln(wt),kn=a.jsx($s,{ts:je.getTs(),compact:c===Fr.Compact});return a.jsx(fD,{"data-message-item":St,"data-message-id":$e,room:t,mEvent:je,highlight:Kt,messageSpacing:d,canDelete:M||je.getSender()===s.getUserId(),hideReadReceipts:l,children:a.jsx(Nm,{messageLayout:c,time:kn,iconSrc:$.Code,content:a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T300",priority:"300",children:[a.jsx("b",{children:qt})," sent ",a.jsx("code",{className:nc,children:je.getType()})," event"]})})})},je.getId())});let on,So=!1,mn=!1,Zn=!1;const Ir=$e=>{const[je,St]=pNe(Oe.linkedTimelines,$e);if(!je)return null;const Kt=je==null?void 0:je.getTimelineSet(),wt=_Ne(je,fNe($e,St)),qt=wt==null?void 0:wt.getId();if(!wt||!qt)return null;const kn=wt.getSender();if(kn&&k.has(kn)||wt.isRedacted()&&!E)return null;!mn&&q.current&&(mn=(on==null?void 0:on.getId())===q.current),Zn||(Zn=on?!Nxe(on.getTs(),wt.getTs()):!1);const Ei=So&&!Zn&&(!mn||kn===s.getUserId())&&on!==void 0&&on.getSender()===kn&&on.getType()===wt.getType()&&zxe(on.getTs(),wt.getTs())<2,Nr=mH(wt)?null:jt(wt.getType(),typeof wt.getStateKey()=="string",qt,wt,$e,Kt,Ei);on=wt,So=!!Nr;const No=mn&&Nr&&kn!==s.getUserId()?a.jsx(xo,{space:d,children:a.jsx(Nte,{style:{color:ct.Success.Main},variant:"Inherit",children:a.jsx(Bt,{as:"span",size:"500",variant:"Success",fill:"Solid",radii:"300",children:a.jsx(x,{size:"L400",children:"New Messages"})})})}):null,Cn=Zn&&Nr?a.jsx(xo,{space:d,children:a.jsx(Nte,{variant:"Surface",children:a.jsx(Bt,{as:"span",size:"500",variant:"Secondary",fill:"None",radii:"300",children:a.jsx(x,{size:"L400",children:N8(wt.getTs())?"Today":z8(wt.getTs())?"Yesterday":nY(wt.getTs())})})})}):null;return Nr&&(No||Cn)?(No&&(mn=!1),Cn&&(Zn=!1),a.jsxs(ft.Fragment,{children:[No,Cn,Nr]},qt)):Nr};return a.jsxs(y,{grow:"Yes",style:{position:"relative"},children:[(K==null?void 0:K.readUptoEventId)&&!(K!=null&&K.inLiveTimeline)&&a.jsxs(Lte,{position:"Top",children:[a.jsx(We,{variant:"Primary",radii:"Pill",outlined:!0,before:a.jsx(Q,{size:"50",src:$.MessageUnread}),onClick:wn,children:a.jsx(x,{size:"L400",children:"Jump to Unread"})}),a.jsx(We,{variant:"SurfaceVariant",radii:"Pill",outlined:!0,before:a.jsx(Q,{size:"50",src:$.CheckTwice}),onClick:ve,children:a.jsx(x,{size:"L400",children:"Mark as Read"})})]}),a.jsx(Mt,{ref:de,visibility:"Hover",children:a.jsxs(y,{direction:"Column",justifyContent:"End",style:{minHeight:"100%",padding:`${le.space.S600} 0`},children:[!xt&&hn&&W().length>0&&a.jsx("div",{style:{padding:`${le.space.S700} ${le.space.S400} ${le.space.S600} ${c===Fr.Compact?le.space.S400:Dt(64)}`},children:a.jsx(sNe,{room:t})}),(xt||!hn)&&(c===Fr.Compact?a.jsxs(a.Fragment,{children:[a.jsx(xo,{children:a.jsx(Vu,{},W().length)}),a.jsx(xo,{children:a.jsx(Vu,{},W().length)}),a.jsx(xo,{children:a.jsx(Vu,{},W().length)}),a.jsx(xo,{children:a.jsx(Vu,{},W().length)}),a.jsx(xo,{ref:ne,children:a.jsx(Vu,{},W().length)})]}):a.jsxs(a.Fragment,{children:[a.jsx(xo,{children:a.jsx($h,{},W().length)}),a.jsx(xo,{children:a.jsx($h,{},W().length)}),a.jsx(xo,{ref:ne,children:a.jsx($h,{},W().length)})]})),W().map(Ir),(!_e||!Ze)&&(c===Fr.Compact?a.jsxs(a.Fragment,{children:[a.jsx(xo,{ref:me,children:a.jsx(Vu,{},W().length)}),a.jsx(xo,{children:a.jsx(Vu,{},W().length)}),a.jsx(xo,{children:a.jsx(Vu,{},W().length)}),a.jsx(xo,{children:a.jsx(Vu,{},W().length)}),a.jsx(xo,{children:a.jsx(Vu,{},W().length)})]}):a.jsxs(a.Fragment,{children:[a.jsx(xo,{ref:me,children:a.jsx($h,{},W().length)}),a.jsx(xo,{children:a.jsx($h,{},W().length)}),a.jsx(xo,{children:a.jsx($h,{},W().length)})]})),a.jsx("span",{ref:V})]})}),!X&&a.jsx(Lte,{position:"Bottom",children:a.jsx(We,{variant:"SurfaceVariant",radii:"Pill",outlined:!0,before:a.jsx(Q,{size:"50",src:$.ArrowBottom}),onClick:Fn,children:a.jsx(x,{size:"L400",children:"Jump to Latest"})})})]})}var xNe="_1px4w011 _1mqalmd1 _1mqalmd0",wNe="_1px4w012";const kNe=Ie(({className:t,room:e,...n},r)=>{const o=Di(kS),i=ge(),s=OS(e.roomId),u=s.filter(c=>c.userId!==i.getUserId()).map(c=>wr(e,c.userId)??ln(c.userId)).reverse();if(u.length===0)return null;const l=()=>{s.forEach(c=>o({type:"DELETE",roomId:e.roomId,userId:c.userId}))};return a.jsx("div",{style:{position:"relative"},children:a.jsxs(y,{className:Ve(xNe,t),alignItems:"Center",gap:"400",...n,ref:r,children:[a.jsx(PS,{}),a.jsxs(x,{className:wNe,size:"T300",truncate:!0,children:[u.length===1&&a.jsxs(a.Fragment,{children:[a.jsx("b",{children:u[0]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" is typing..."})]}),u.length===2&&a.jsxs(a.Fragment,{children:[a.jsx("b",{children:u[0]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" and "}),a.jsx("b",{children:u[1]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" are typing..."})]}),u.length===3&&a.jsxs(a.Fragment,{children:[a.jsx("b",{children:u[0]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:", "}),a.jsx("b",{children:u[1]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" and "}),a.jsx("b",{children:u[2]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" are typing..."})]}),u.length>3&&a.jsxs(a.Fragment,{children:[a.jsx("b",{children:u[0]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:", "}),a.jsx("b",{children:u[1]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:", "}),a.jsx("b",{children:u[2]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" and "}),a.jsxs("b",{children:[u.length-3," others"]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" are typing..."})]})]}),a.jsx(Me,{title:"Drop Typing Status",size:"300",radii:"Pill",onClick:l,children:a.jsx(Q,{size:"50",src:$.Cross})})]})})});var SNe="mxcys80";function jNe({roomId:t,body:e,replacementRoomId:n}){var c;const r=ge(),{navigateRoom:o}=Mo(),[i,s]=et(f.useCallback(()=>{const d=r.getRoom(t),F=d?wd(d):[];return r.joinRoom(n,{viaServers:F})},[r,t,n])),u=r.getRoom(n),l=()=>{u&&o(u.roomId),i.status===he.Success&&o(i.data.roomId)};return a.jsxs(xte,{alignItems:"Center",gap:"600",className:SNe,children:[a.jsxs(y,{direction:"Column",grow:"Yes",children:[a.jsx(x,{size:"T400",children:e||"This room has been replaced and is no longer active."}),i.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T200",children:((c=i.error)==null?void 0:c.message)??"Failed to join replacement room!"})]}),a.jsx(y,{shrink:"No",children:(u==null?void 0:u.getMyMembership())===$n.Join||i.status===he.Success?a.jsx(Ee,{onClick:l,size:"300",variant:"Success",fill:"Solid",radii:"300",children:a.jsx(x,{size:"B300",children:"Open New Room"})}):a.jsx(Ee,{onClick:s,size:"300",variant:"Primary",fill:"Solid",radii:"300",before:i.status===he.Loading&&a.jsx(ot,{size:"100",variant:"Primary",fill:"Solid"}),disabled:i.status===he.Loading,children:a.jsx(x,{size:"B300",children:"Join New Room"})})})]})}const BNe=(t,e)=>{const n=f.useRef(0);return f.useMemo(()=>(n.current=0,r=>{if(r){if(Date.now()-n.current<Bd)return;t.sendTyping(e,!0,Bd);const o=Date.now();n.current=o,setTimeout(()=>{n.current===o&&(t.sendTyping(e,!1,Bd),n.current=0)},Bd);return}Date.now()-n.current<Bd&&t.sendTyping(e,!1,Bd),n.current=0}),[t,e])},x0=(t,e)=>f.useCallback(async n=>{const r=await Ype(n,e);r&&t(r)},[e,t]),ANe=t=>f.useCallback(e=>{const n=tH(e.clipboardData);n&&t(n)},[t]),TNe=(t,e)=>{const n=f.useRef(),[r,o]=f.useState(!1);return f.useEffect(()=>{const i=t.current,s=u=>{if(u.preventDefault(),n.current=void 0,o(!1),!u.dataTransfer)return;const l=tH(u.dataTransfer);l&&e(l)};return i==null||i.addEventListener("drop",s),()=>{i==null||i.removeEventListener("drop",s)}},[t,e]),f.useEffect(()=>{const i=t.current,s=c=>{var d;(d=c.dataTransfer)!=null&&d.types.includes("Files")&&(n.current="start",o(!0))},u=()=>{n.current==="over"&&(n.current="leave",o(!1))},l=c=>{c.preventDefault(),n.current="over"};return i==null||i.addEventListener("dragenter",s),i==null||i.addEventListener("dragleave",u),i==null||i.addEventListener("dragover",l),()=>{i==null||i.removeEventListener("dragenter",s),i==null||i.removeEventListener("dragleave",u),i==null||i.removeEventListener("dragover",l)}},[t]),r};var INe=br({defaultClassName:"_1fwe7gc0",variantClassNames:{radii:{0:"cpipac1",300:"cpipac2",400:"cpipac3",500:"cpipac4",Inherit:"cpipac0",Pill:"cpipac5"},outlined:{true:"_1fwe7gc7"},compact:{true:"_1fwe7gc8"}},defaultVariants:{radii:"400"},compoundVariants:[]}),RNe="_1fwe7gc9";const zte=f.forwardRef(({before:t,after:e,children:n,bottom:r,radii:o,outlined:i,compact:s},u)=>a.jsxs(y,{className:INe({radii:o,outlined:i,compact:s}),direction:"Column",gap:"200",ref:u,children:[a.jsxs(y,{alignItems:"Center",gap:"200",children:[t,a.jsx(y,{alignItems:"Center",grow:"Yes",gap:"200",children:n}),e]}),r]}));function Ute({sentBytes:t,totalBytes:e}){return a.jsxs(y,{grow:"Yes",direction:"Column",gap:"200",children:[a.jsx(FF,{variant:"Secondary",size:"300",min:0,max:e,value:t}),a.jsxs(y,{alignItems:"Center",justifyContent:"SpaceBetween",children:[a.jsx(Bt,{variant:"Secondary",fill:"Solid",radii:"Pill",children:a.jsx(x,{size:"L400",children:`${Math.round(Vg(0,e,t))}%`})}),a.jsx(Bt,{variant:"Secondary",fill:"Soft",radii:"Pill",children:a.jsxs(x,{size:"L400",children:[V1(t)," / ",V1(e)]})})]})]})}function Vte({sentBytes:t,totalBytes:e}){return a.jsxs(y,{grow:"Yes",gap:"200",alignItems:"Center",children:[a.jsx(Bt,{variant:"Secondary",fill:"Solid",radii:"Pill",children:a.jsx(x,{size:"L400",children:`${Math.round(Vg(0,e,t))}%`})}),a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(FF,{variant:"Secondary",size:"300",min:0,max:e,value:t})}),a.jsx(Bt,{variant:"Secondary",fill:"Soft",radii:"Pill",children:a.jsxs(x,{size:"L400",children:[V1(t)," / ",V1(e)]})})]})}function qte({children:t}){return a.jsxs(y,{className:RNe,alignItems:"Center",gap:"300",children:[a.jsx(Q,{src:$.Warning,size:"50"}),t]})}const j_=t=>{const e=f.useMemo(()=>{if(t)return URL.createObjectURL(t)},[t]);return f.useEffect(()=>()=>{e&&URL.revokeObjectURL(e)},[e]),e};function ONe({fileItem:t,onSpoiler:e}){const{originalFile:n,metadata:r}=t,o=j_(n);return o?a.jsxs(y,{style:{borderRadius:le.radii.R300,overflow:"hidden",backgroundColor:"black",position:"relative"},children:[a.jsx("img",{style:{objectFit:"contain",width:"100%",height:Dt(152),filter:t.metadata.markedAsSpoiler?"blur(44px)":void 0},src:o,alt:n.name}),a.jsx(y,{justifyContent:"End",style:{position:"absolute",bottom:le.space.S100,left:le.space.S100,right:le.space.S100},children:a.jsx(We,{variant:r.markedAsSpoiler?"Warning":"Secondary",fill:"Soft",radii:"Pill","aria-pressed":r.markedAsSpoiler,before:a.jsx(Q,{src:$.EyeBlind,size:"50"}),onClick:()=>e(!r.markedAsSpoiler),children:a.jsx(x,{size:"B300",children:"Spoiler"})})})]}):null}function MNe({isEncrypted:t,fileItem:e,setMetadata:n,onRemove:r,onComplete:o}){const i=ge(),s=ET(e.file),{metadata:u}=e,{upload:l,startUpload:c,cancelUpload:d}=Mte(i,s,t),{file:F}=l;l.status===Fo.Idle&&c();const h=D=>{n(e,{...u,markedAsSpoiler:D})},m=()=>{d(),r(F)};return f.useEffect(()=>{l.status===Fo.Success&&(o==null||o(l))},[l,o]),a.jsxs(zte,{radii:"300",before:a.jsx(Q,{src:HP($,F.type)}),after:a.jsxs(a.Fragment,{children:[l.status===Fo.Error&&a.jsx(We,{as:"button",onClick:c,"aria-label":"Retry Upload",variant:"Critical",radii:"Pill",outlined:!0,children:a.jsx(x,{size:"B300",children:"Retry"})}),a.jsx(Me,{onClick:m,"aria-label":"Cancel Upload",variant:"SurfaceVariant",radii:"Pill",size:"300",children:a.jsx(Q,{src:$.Cross,size:"200"})})]}),bottom:a.jsxs(a.Fragment,{children:[e.originalFile.type.startsWith("image")&&a.jsx(ONe,{fileItem:e,onSpoiler:h}),l.status===Fo.Idle&&a.jsx(Ute,{sentBytes:0,totalBytes:F.size}),l.status===Fo.Loading&&a.jsx(Ute,{sentBytes:l.progress.loaded,totalBytes:F.size}),l.status===Fo.Error&&a.jsx(qte,{children:a.jsx(x,{size:"T200",children:l.error.message})})]}),children:[a.jsx(x,{size:"H6",truncate:!0,children:F.name}),l.status===Fo.Success&&a.jsx(Q,{style:{color:ct.Success.Main},src:$.Check,size:"100"})]})}function B_({isEncrypted:t,uploadAtom:e,onRemove:n,onComplete:r}){const o=ge(),{upload:i,startUpload:s,cancelUpload:u}=Mte(o,e,t),{file:l}=i;i.status===Fo.Idle&&s();const c=()=>{u(),n(l)};return f.useEffect(()=>{i.status===Fo.Success&&(r==null||r(i))},[i,r]),a.jsx(zte,{compact:!0,outlined:!0,radii:"300",before:a.jsx(Q,{src:HP($,l.type)}),after:a.jsxs(a.Fragment,{children:[i.status===Fo.Error&&a.jsx(We,{as:"button",onClick:s,"aria-label":"Retry Upload",variant:"Critical",radii:"Pill",outlined:!0,children:a.jsx(x,{size:"B300",children:"Retry"})}),a.jsx(Me,{onClick:c,"aria-label":"Cancel Upload",variant:"SurfaceVariant",radii:"Pill",size:"300",children:a.jsx(Q,{src:$.Cross,size:"200"})})]}),children:i.status===Fo.Success?a.jsxs(a.Fragment,{children:[a.jsx(x,{size:"H6",truncate:!0,children:l.name}),a.jsx(Q,{style:{color:ct.Success.Main},src:$.Check,size:"100"})]}):a.jsxs(a.Fragment,{children:[i.status===Fo.Idle&&a.jsx(Vte,{sentBytes:0,totalBytes:l.size}),i.status===Fo.Loading&&a.jsx(Vte,{sentBytes:i.progress.loaded,totalBytes:l.size}),i.status===Fo.Error&&a.jsx(qte,{children:a.jsx(x,{size:"T200",children:i.error.message})})]})})}var PNe="_1vnya282",LNe="_1vnya280 _1mqalmd1 _1mqalmd0",NNe="_1vnya281 _1mqalmd1 _1mqalmd0",zNe="_1vnya284",Hte="_1vnya283";const UNe=Ie(({header:t,children:e,...n},r)=>a.jsx(y,{className:LNe,...n,ref:r,children:a.jsx(y,{className:NNe,justifyContent:"End",children:a.jsxs(y,{className:Ve(PNe),direction:"Column",children:[a.jsx(y,{grow:"Yes",direction:"Column",children:e}),a.jsx(y,{direction:"Column",shrink:"No",children:t})]})})}));function VNe({open:t,onToggle:e,uploadFamilyObserverAtom:n,onCancel:r,onSend:o,imperativeHandlerRef:i}){const s=f.useRef(!1),u=_t(n),l=u.every(m=>m.status===Fo.Success),c=u.some(m=>m.status===Fo.Error),d=u.reduce((m,D)=>(m.total+=D.file.size,D.status===Fo.Loading&&(m.loaded+=D.progress.loaded),D.status===Fo.Success&&(m.loaded+=D.file.size),m),{loaded:0,total:0}),F=async()=>{s.current||(s.current=!0,await o(u.filter(m=>m.status===Fo.Success)),s.current=!1)};f.useImperativeHandle(i,()=>({handleSend:F}));const h=()=>r(u);return a.jsxs(In,{size:"400",children:[a.jsxs(y,{as:"button",style:{cursor:"pointer"},onClick:e,className:Hte,alignItems:"Center",grow:"Yes",gap:"100",children:[a.jsx(Q,{src:t?$.ChevronTop:$.ChevronRight,size:"50"}),a.jsx(x,{size:"H6",children:"Files"})]}),a.jsxs(y,{className:Hte,alignItems:"Center",gap:"100",children:[l&&a.jsx(We,{as:"button",onClick:F,variant:"Primary",radii:"Pill",outlined:!0,after:a.jsx(Q,{src:$.Send,size:"50",filled:!0}),children:a.jsx(x,{size:"B300",children:"Send"})}),c&&!t&&a.jsx(Bt,{variant:"Critical",fill:"Solid",radii:"300",children:a.jsx(x,{size:"L400",children:"Upload Failed"})}),!l&&!c&&!t&&a.jsxs(a.Fragment,{children:[a.jsx(Bt,{variant:"Secondary",fill:"Solid",radii:"Pill",children:a.jsxs(x,{size:"L400",children:[Math.round(Vg(0,d.total,d.loaded)),"%"]})}),a.jsx(ot,{variant:"Secondary",size:"200"})]}),!l&&t&&a.jsx(We,{as:"button",onClick:h,variant:"SurfaceVariant",radii:"Pill",after:a.jsx(Q,{src:$.Cross,size:"50"}),children:a.jsx(x,{size:"B300",children:u.length===1?"Remove":"Remove All"})})]})]})}const qNe=Ie(({className:t,children:e,...n},r)=>a.jsx(y,{className:Ve(zNe,t),direction:"Column",gap:"200",...n,ref:r,children:e})),HNe=async(t,e,n,r)=>{var l;const o=await efe(e,...n);if(!o)throw new Error("Can not create thumbnail!");const i=r?await gH(o):void 0,s=(i==null?void 0:i.file)??o;if(!s)throw new Error("Can not create thumbnail!");const u=(l=await t.uploadContent(s))==null?void 0:l.content_uri;if(!u)throw new Error("Failed when uploading thumbnail!");return wfe({thumbnail:s,encInfo:i==null?void 0:i.encInfo,mxc:u,width:n[0],height:n[1]})},$Ne=async(t,e,n)=>{const{file:r,originalFile:o,encInfo:i,metadata:s}=e,[u,l]=await ei(V5(rH(o)));u&&console.warn(u);const c={msgtype:or.Image,filename:r.name,body:r.name,[NG]:s.markedAsSpoiler};if(l){const d=VG(l,512,Hg(l.width,512,l.height));c.info={...n7(l,r),[T8]:d}}return i?c.file={...i,url:n}:c.url=n,c},WNe=async(t,e,n)=>{const{file:r,originalFile:o,encInfo:i}=e,[s,u]=await ei(Xpe(Jpe(o)));s&&console.warn(s);const l={msgtype:or.Video,filename:r.name,body:r.name};if(u){const[c,d]=await ei(HNe(t,u,Qpe(u.videoWidth,u.videoHeight),!!i));d&&d.thumbnail_info&&(d.thumbnail_info[T8]=VG(u,512,Hg(u.videoWidth,512,u.videoHeight))),c&&console.warn(c),l.info={...xfe(u,r),...d}}return i?l.file={...i,url:n}:l.url=n,l},KNe=(t,e)=>{const{file:n,encInfo:r}=t,o={msgtype:or.Audio,filename:n.name,body:n.name,info:{mimetype:n.type,size:n.size}};return r?o.file={...r,url:e}:o.url=e,o},GNe=(t,e)=>{const{file:n,encInfo:r}=t,o={msgtype:or.File,body:n.name,filename:n.name,info:{mimetype:n.type,size:n.size}};return r?o.file={...r,url:e}:o.url=e,o},$te="\xAF\\_(\u30C4)_/\xAF",jT="(\u256F\xB0\u25A1\xB0)\u256F\uFE35 \u253B\u2501\u253B",BT="\u252C\u2500\u252C\u30CE( \xBA_\xBA\u30CE)",Wte="(?:^|\\s)-(\\w+)\\b",YNe=new RegExp(Wte),Kte=new RegExp(Wte,"g"),CD=t=>{const e=t.match(YNe);if(!e)return[t,void 0];const n=t.slice(0,e.index),r=t.slice(e.index);return[n,r]},ED=t=>{const e={};if(!t)return e;const n=[];for(let r=Kte.exec(t);r!==null;r=Kte.exec(t))n.push({key:r[1],index:r.index,match:r[0]});for(let r=0;r<n.length;r+=1){const{key:o,match:i}=n[r],s=n[r].index+i.length,u=r+1<n.length?n[r+1].index:t.length,l=t.slice(s,u).trim();e[o]=l}return e},A_=t=>{const e=[];return Da(t).forEach(n=>{wu(n)&&e.push(n)}),e},AT=t=>{const e=[];return Da(t).forEach(n=>{yfe(n)&&e.push(n)}),e},TT=(t,e)=>t.getMembers().filter(n=>n.userId.endsWith(`:${e}`)),ZNe=t=>{const e=t.match(/^(\d+(?:\.\d+)?)([dhms])$/);if(!e)return;const n=parseFloat(e[1]),r=e[2],o=Date.now();let i=0;switch(r){case"d":i=n*24*60*60*1e3;break;case"h":i=n*60*60*1e3;break;case"m":i=n*60*1e3;break;case"s":i=n*1e3;break;default:return}return o-i};var yD=(t=>(t.Me="me",t.Notice="notice",t.Shrug="shrug",t.StartDm="startdm",t.Join="join",t.Leave="leave",t.Invite="invite",t.DisInvite="disinvite",t.Kick="kick",t.Ban="ban",t.UnBan="unban",t.Ignore="ignore",t.UnIgnore="unignore",t.MyRoomNick="myroomnick",t.MyRoomAvatar="myroomavatar",t.ConvertToDm="converttodm",t.ConvertToRoom="converttoroom",t.TableFlip="tableflip",t.UnFlip="unflip",t.Delete="delete",t.Acl="acl",t))(yD||{});const Gte=(t,e)=>{const{navigateRoom:n}=Mo();return f.useMemo(()=>({me:{name:"me",description:"Send action message",exe:async()=>{}},notice:{name:"notice",description:"Send notice message",exe:async()=>{}},shrug:{name:"shrug",description:"Send \xAF\\_(\u30C4)_/\xAF as message",exe:async()=>{}},tableflip:{name:"tableflip",description:`Send ${jT} as message`,exe:async()=>{}},unflip:{name:"unflip",description:`Send ${BT} as message`,exe:async()=>{}},startdm:{name:"startdm",description:"Start direct message with user. Example: /startdm userId1",exe:async r=>{var u;const o=Da(r).filter(l=>wu(l)&&l!==t.getUserId());if(o.length===0)return;if(o.length===1){const l=(u=fC(t,o[0]))==null?void 0:u.roomId;if(l){n(l);return}}const i=(await Promise.all(o.map(l=>S7(t,l)))).every(l=>l),s=await j7(t,o,i);n(s.room_id)}},join:{name:"join",description:"Join room with address. Example: /join address1 address2",exe:async r=>{Da(r).filter(o=>Ch(o)||Rs(o)).map(o=>r$(t,o))}},leave:{name:"leave",description:"Leave current room.",exe:async r=>{if(r.trim()===""){t.leave(e.roomId);return}Da(r).filter(o=>Ch(o)).map(o=>t.leave(o))}},invite:{name:"invite",description:"Invite user to room. Example: /invite userId1 userId2 [-r reason]",exe:async r=>{const[o,i]=CD(r),s=A_(o),u=ED(i).r;s.map(l=>t.invite(e.roomId,l,u))}},disinvite:{name:"disinvite",description:"Disinvite user to room. Example: /disinvite userId1 userId2 [-r reason]",exe:async r=>{const[o,i]=CD(r),s=A_(o),u=ED(i).r;s.map(l=>t.kick(e.roomId,l,u))}},kick:{name:"kick",description:"Kick user from room. Example: /kick userId1 userId2 servername [-r reason]",exe:async r=>{var d;const[o,i]=CD(r),s=A_(o),u=AT(o),l=ED(i).r,c=(d=u==null?void 0:u.flatMap(F=>TT(e,F)))==null?void 0:d.filter(F=>F.membership!==$n.Ban).map(F=>F.userId);Array.isArray(c)&&c.forEach(F=>{s.includes(F)||s.push(F)}),$l(s,F=>t.kick(e.roomId,F,l))}},ban:{name:"ban",description:"Ban user from room. Example: /ban userId1 userId2 servername [-r reason]",exe:async r=>{var d;const[o,i]=CD(r),s=A_(o),u=AT(o),l=ED(i).r,c=(d=u==null?void 0:u.flatMap(F=>TT(e,F)))==null?void 0:d.map(F=>F.userId);Array.isArray(c)&&c.forEach(F=>{s.includes(F)||s.push(F)}),$l(s,F=>t.ban(e.roomId,F,l))}},unban:{name:"unban",description:"Unban user from room. Example: /unban userId1 userId2",exe:async r=>{Da(r).filter(o=>wu(o)).map(o=>t.unban(e.roomId,o))}},ignore:{name:"ignore",description:"Ignore user. Example: /ignore userId1 userId2",exe:async r=>{const o=Da(r).filter(i=>wu(i));o.length>0&&i$(t,o)}},unignore:{name:"unignore",description:"Unignore user. Example: /unignore userId1 userId2",exe:async r=>{const o=Da(r).filter(i=>wu(i));o.length>0&&a$(t,o)}},myroomnick:{name:"myroomnick",description:"Change nick in current room.",exe:async r=>{const o=r.trim();o!==""&&j_e(t,e.roomId,o)}},myroomavatar:{name:"myroomavatar",description:"Change profile picture in current room. Example /myroomavatar mxc://xyzabc",exe:async r=>{r.match(/^mxc:\/\/\S+$/)&&B_e(t,e.roomId,r)}},converttodm:{name:"converttodm",description:"Convert room to direct message",exe:async()=>{w_e(t,e.roomId)}},converttoroom:{name:"converttoroom",description:"Convert direct message to room",exe:async()=>{k_e(t,e.roomId)}},delete:{name:"delete",description:"Delete messages from users. Example: /delete userId1 servername -past 1d|2h|5m|30s [-t m.room.message] [-r spam]",exe:async r=>{var v;const[o,i]=CD(r),s=A_(o),u=AT(o),l=ED(i),c=l.r,d=l.past??"",F=l.t,h=F?Da(F):[],m=ZNe(d);if(!m)return;const D=(v=u==null?void 0:u.flatMap(E=>TT(e,E)))==null?void 0:v.map(E=>E.userId);Array.isArray(D)&&D.forEach(E=>{s.includes(E)||s.push(E)});const g=(await t.timestampToEvent(e.roomId,m,At.Forward)).event_id,p=`/rooms/${encodeURIComponent(e.roomId)}/context/${encodeURIComponent(g)}`;let _=(await t.http.authedRequest(Se.Get,p,{limit:0})).start;for(;_;){const E=await t.createMessagesRequest(e.roomId,_,20,At.Forward,void 0),{end:b,chunk:k}=E;_=b;const C=k.filter(S=>{var w;return(h.length>0?h.includes(S.type):!0)&&s.includes(S.sender)&&((w=S.unsigned)==null?void 0:w.redacted_because)===void 0}).map(S=>S.event_id);await $l(C,S=>t.redactEvent(e.roomId,S,void 0,{reason:c}))}}},acl:{name:"acl",description:"Manage server access control list. Example /acl [-a servername1] [-d servername2] [-ra servername1] [-rd servername2]",exe:async r=>{var p,_,v,E,b;const[,o]=CD(r),i=ED(o),s=i.a,u=i.d,l=i.ra,c=i.rd,d=s?Da(s):[],F=u?Da(u):[],h=l?Da(l):[],m=c?Da(c):[],D=(p=so(e,Re.RoomServerAcl))==null?void 0:p.getContent(),g={allow:D!=null&&D.allow?[...D.allow]:[],allow_ip_literals:D==null?void 0:D.allow_ip_literals,deny:D!=null&&D.deny?[...D.deny]:[]};d.forEach(k=>{!Array.isArray(g.allow)||g.allow.includes(k)||g.allow.push(k)}),F.forEach(k=>{!Array.isArray(g.deny)||g.deny.includes(k)||g.deny.push(k)}),g.allow=(_=g.allow)==null?void 0:_.filter(k=>!h.includes(k)),g.deny=(v=g.deny)==null?void 0:v.filter(k=>!m.includes(k)),(E=g.allow)==null||E.sort(),(b=g.deny)==null||b.sort(),await t.sendStateEvent(e.roomId,Re.RoomServerAcl,g)}}}),[t,e,n])},JNe={matchOptions:{contain:!0}};function XNe({room:t,editor:e,query:n,requestClose:r}){const o=ge(),i=Gte(o,t),s=f.useMemo(()=>Object.keys(i),[i]),[u,l,c]=Qd(s,f.useCallback(h=>h,[]),JNe),d=u?u.items:s;f.useEffect(()=>{n.text?l(n.text):c()},[n.text,l,c]);const F=h=>{const m=pMe(h);p4(e,n.range,m),f0(e,!0),r()};return jd(window,h=>{lu(h,()=>{if(d.length===0)return;const m=d[0];F(m)})}),d.length===0?null:a.jsx(F4,{headerContent:a.jsx(y,{grow:"Yes",direction:"Row",gap:"200",justifyContent:"SpaceBetween",children:a.jsx(x,{size:"L400",children:"Commands"})}),requestClose:r,children:d.map(h=>a.jsx(tt,{as:"button",radii:"300",style:{height:"unset"},onKeyDown:m=>lu(m,()=>F(h)),onClick:()=>F(h),children:a.jsxs(y,{style:{padding:`${le.space.S300} 0`},grow:"Yes",direction:"Column",gap:"100",justifyContent:"SpaceBetween",children:[a.jsx(x,{style:{flexGrow:1},size:"B400",truncate:!0,children:`/${h}`}),a.jsx(x,{truncate:!0,priority:"300",size:"T200",children:i[h].description})]})},h))})}const QNe=f.forwardRef(({editor:t,fileDropContainerRef:e,roomId:n,room:r,getPowerLevelTag:o,accessibleTagColors:i},s)=>{var Ne;const u=ge(),l=Tt(),[c]=Ft(ut,"enterForNewline"),[d]=Ft(ut,"isMarkdown"),[F]=Ft(ut,"hideActivity"),[h]=Ft(ut,"legacyUsernameColor"),m=iA(),D=Gte(u,r),g=f.useRef(null),p=_t(lo),_=Lh(),[v,E]=Yi(mNe(n)),[b,k]=Yi(Pte(n)),C=b==null?void 0:b.userId,S=o(mr.getPowerLevel(_,C)),w=S.color?i.get(S.color):void 0,A=h||m?Vs(C??""):w,[O,j]=f.useState(!0),[R,M]=Yi(hNe(n)),z=cNe(ET,R.map(Oe=>Oe.file)),T=f.useRef(),P=yT(n,p),[L,U]=Ft(ut,"editorToolbar"),[te,ae]=f.useState(),Fe=BNe(u,n),re=f.useCallback(async Oe=>{j(!0);const Ue=Oe.map($4e),nt=[];r.hasEncryptionStateEvent()?q6(await Promise.allSettled(Ue.map(_e=>gH(_e)))).forEach(_e=>nt.push({..._e,metadata:{markedAsSpoiler:!1}})):Ue.forEach(_e=>nt.push({file:_e,originalFile:_e,encInfo:void 0,metadata:{markedAsSpoiler:!1}})),M({type:"PUT",item:nt})},[M,r]),ce=x0(re,!0),K=ANe(re),H=TNe(e,re),[q,V]=f.useState(document.body.clientWidth<500);p3(f.useCallback(()=>document.body,[]),f.useCallback(Oe=>V(Oe<500),[])),f.useEffect(()=>{Pe.insertFragment(t,v)},[t,v]),f.useEffect(()=>()=>{if(hT(t))E([]);else{const Oe=JSON.parse(JSON.stringify(t.children));E(Oe)}cT(t),dT(t)},[n,t,E]);const X=f.useCallback((Oe,Ue)=>{M({type:"REPLACE",item:Oe,replacement:{...Oe,metadata:Ue}})},[M]),ee=f.useCallback(Oe=>{const Ue=Array.isArray(Oe)?Oe:[Oe];M({type:"DELETE",item:R.filter(nt=>Ue.find(_e=>_e===nt.file))}),Ue.forEach(nt=>ET.remove(nt))},[M,R]),J=Oe=>{Oe.forEach(Ue=>{Ue.status===Fo.Loading&&u.cancelUpload(Ue.promise)}),ee(Oe.map(Ue=>Ue.file))},de=async Oe=>{const Ue=Oe.map(async nt=>{const _e=R.find(xt=>xt.file===nt.file);if(!_e)throw new Error("Broken upload");return _e.file.type.startsWith("image")?$Ne(u,_e,nt.mxc):_e.file.type.startsWith("video")?WNe(u,_e,nt.mxc):_e.file.type.startsWith("audio")?KNe(_e,nt.mxc):GNe(_e,nt.mxc)});J(Oe),q6(await Promise.allSettled(Ue)).forEach(nt=>u.sendMessage(n,nt))},ue=f.useCallback(()=>{var N,W;(N=T.current)==null||N.handleSend();const Oe=zee(t);let Ue=b4(t.children,d).trim(),nt=hte(y_(t.children,{allowTextFormatting:!0,allowBlockMarkdown:d,allowInlineMarkdown:d})),_e=or.Text;if(Oe&&(Ue=Fte(Oe,Ue),nt=Fte(Oe,nt)),Oe===yD.Me)_e=or.Emote;else if(Oe===yD.Notice)_e=or.Notice;else if(Oe===yD.Shrug)Ue=`${$te} ${Ue}`,nt=`${$te} ${nt}`;else if(Oe===yD.TableFlip)Ue=`${jT} ${Ue}`,nt=`${jT} ${nt}`;else if(Oe===yD.UnFlip)Ue=`${BT} ${Ue}`,nt=`${BT} ${nt}`;else if(Oe){const oe=D[Oe];oe&&oe.exe(Ue),cT(t),dT(t),Fe(!1);return}if(Ue==="")return;const xt=Ue,hn=nt,Ze=mte(u,n,t),dt={msgtype:_e,body:xt};b&&b.userId!==u.getUserId()&&Ze.users.add(b.userId);const B=DH(Array.from(Ze.users),Ze.room);dt["m.mentions"]=B,(b||!DT(hn,xt))&&(dt.format="org.matrix.custom.html",dt.formatted_body=hn),b&&(dt["m.relates_to"]={"m.in_reply_to":{event_id:b.eventId}},((W=b.relation)==null?void 0:W.rel_type)===Pn.Thread&&(dt["m.relates_to"].event_id=b.relation.event_id,dt["m.relates_to"].rel_type=Pn.Thread,dt["m.relates_to"].is_falling_back=!1)),u.sendMessage(n,dt),cT(t),dT(t),k(void 0),Fe(!1)},[u,n,t,b,Fe,k,d,D]),De=f.useCallback(Oe=>{if((Mn("mod+enter",Oe)||!c&&Mn("enter",Oe))&&!Oe.nativeEvent.isComposing&&(Oe.preventDefault(),ue()),Mn("escape",Oe)){if(Oe.preventDefault(),te){ae(void 0);return}k(void 0)}},[ue,k,c,te]),Ae=f.useCallback(Oe=>{if(Mn("escape",Oe)){Oe.preventDefault();return}F||Fe(!hT(t));const Ue=Nee(t),nt=Ue?Mee(t,Ue,Oee):void 0;ae(nt)},[t,Fe,F]),ye=f.useCallback(()=>{ae(void 0),Ge.focus(t)},[t]),He=(Oe,Ue)=>{t.insertNode(g4(Oe,Ue)),f0(t)},ze=async(Oe,Ue,nt)=>{const _e=Xt(u,Oe,l);if(!_e)return;const xt=await n7(await V5(_e),await Zpe(_e));u.sendEvent(n,Ce.Sticker,{body:nt,url:Oe,info:xt})};return a.jsxs("div",{ref:s,children:[R.length>0&&a.jsx(UNe,{header:a.jsx(VNe,{open:O,onToggle:()=>j(!O),uploadFamilyObserverAtom:z,onSend:de,imperativeHandlerRef:T,onCancel:J}),children:O&&a.jsx(Mt,{size:"300",hideTrack:!0,visibility:"Hover",children:a.jsx(qNe,{children:Array.from(R).reverse().map((Oe,Ue)=>a.jsx(MNe,{isEncrypted:!!Oe.encInfo,fileItem:Oe,setMetadata:X,onRemove:ee},Ue))})})}),a.jsx(Rn,{open:H,backdrop:a.jsx(On,{}),style:{pointerEvents:"none"},children:a.jsx(zn,{children:a.jsx(cr,{variant:"Primary",children:a.jsxs(y,{direction:"Column",justifyContent:"Center",alignItems:"Center",gap:"500",style:{padding:Dt(60)},children:[a.jsx(Q,{size:"600",src:$.File}),a.jsx(x,{size:"H4",align:"Center",children:`Drop Files in "${(r==null?void 0:r.name)||"Room"}"`}),a.jsx(x,{align:"Center",children:"Drag and drop files here or click for selection dialog"})]})})})}),(te==null?void 0:te.prefix)===c1.RoomMention&&a.jsx(Vee,{roomId:n,editor:t,query:te,requestClose:ye}),(te==null?void 0:te.prefix)===c1.UserMention&&a.jsx(Hee,{room:r,editor:t,query:te,requestClose:ye}),(te==null?void 0:te.prefix)===c1.Emoticon&&a.jsx($ee,{imagePackRooms:P,editor:t,query:te,requestClose:ye}),(te==null?void 0:te.prefix)===c1.Command&&a.jsx(XNe,{room:r,editor:t,query:te,requestClose:ye}),a.jsx(Zee,{editableName:"RoomInput",editor:t,placeholder:"Send a message...",onKeyDown:De,onKeyUp:Ae,onPaste:K,top:b&&a.jsx("div",{children:a.jsxs(y,{alignItems:"Center",gap:"300",style:{padding:`${le.space.S200} ${le.space.S300} 0`},children:[a.jsx(Me,{onClick:()=>k(void 0),variant:"SurfaceVariant",size:"300",radii:"300",children:a.jsx(Q,{src:$.Cross,size:"50"})}),a.jsxs(y,{direction:"Column",children:[((Ne=b.relation)==null?void 0:Ne.rel_type)===Pn.Thread&&a.jsx(JG,{}),a.jsx(ZG,{userColor:A,username:a.jsx(x,{size:"T300",truncate:!0,children:a.jsx("b",{children:wr(r,b.userId)??ln(b.userId)??b.userId})}),children:a.jsx(x,{size:"T300",truncate:!0,children:kf(b.body)})})]})]})}),before:a.jsx(Me,{onClick:()=>ce("*"),variant:"SurfaceVariant",size:"300",radii:"300",children:a.jsx(Q,{src:$.PlusCircle})}),after:a.jsxs(a.Fragment,{children:[a.jsx(Me,{variant:"SurfaceVariant",size:"300",radii:"300",onClick:()=>U(!L),children:a.jsx(Q,{src:L?$.AlphabetUnderline:$.Alphabet})}),a.jsx(Oo,{initial:void 0,children:(Oe,Ue)=>{var nt;return a.jsxs(Ut,{offset:16,alignOffset:-44,position:"Top",align:"End",anchor:Oe===void 0?void 0:((nt=g.current)==null?void 0:nt.getBoundingClientRect())??void 0,content:a.jsx(qy,{tab:Oe,onTabChange:Ue,imagePackRooms:P,returnFocusOnDeactivate:!1,onEmojiSelect:He,onCustomEmojiSelect:He,onStickerSelect:ze,requestClose:()=>{Ue(_e=>{if(_e){Uy()||Ge.focus(t);return}return _e})}}),children:[!q&&a.jsx(Me,{"aria-pressed":Oe===s0.Sticker,onClick:()=>Ue(s0.Sticker),variant:"SurfaceVariant",size:"300",radii:"300",children:a.jsx(Q,{src:$.Sticker,filled:Oe===s0.Sticker})}),a.jsx(Me,{ref:g,"aria-pressed":q?!!Oe:Oe===s0.Emoji,onClick:()=>Ue(s0.Emoji),variant:"SurfaceVariant",size:"300",radii:"300",children:a.jsx(Q,{src:$.Smile,filled:q?!!Oe:Oe===s0.Emoji})})]})}}),a.jsx(Me,{onClick:ue,variant:"SurfaceVariant",size:"300",radii:"300",children:a.jsx(Q,{src:$.Send})})]}),bottom:L&&a.jsxs("div",{children:[a.jsx(jn,{variant:"SurfaceVariant",size:"300"}),a.jsx(Dte,{})]})})]})});var eze=br({defaultClassName:"kq7ios1 _1mqalmd1 _1mqalmd0",variantClassNames:{clickable:{true:"kq7ios2"}},defaultVariants:{},compoundVariants:[]}),tze="kq7ios0 _1mqalmd1 _1mqalmd0";const nze=t=>{const[e]=Ft(ut,"hideMembershipEvents"),[n]=Ft(ut,"hideNickAvatarEvents"),[r]=Ft(ut,"showHiddenEvents"),[o,i]=f.useState();return f.useEffect(()=>{const s=()=>{const l=t.getLiveTimeline().getEvents();for(let c=l.length-1;c>=0;c-=1){const d=l[c];if(d&&!mH(d)){if(d.getType()===Re.RoomMember){const F=Q5(d);if(F&&e||!F&&n)continue;return d}if(d.getType()===qn.RoomMessage||d.getType()===qn.RoomMessageEncrypted||d.getType()===qn.Sticker||d.getType()===Re.RoomName||d.getType()===Re.RoomTopic||d.getType()===Re.RoomAvatar||r)return d}}},u=()=>{i(s())};return i(s()),t.on(Ke.Timeline,u),()=>{t.removeListener(Ke.Timeline,u)}},[t,e,n,r]),o};function rze(){return a.jsx("div",{className:tze})}const oze=Ie(({className:t,room:e,...n},r)=>{const o=ge(),[i,s]=f.useState(!1),u=nze(e),l=aX(e,u==null?void 0:u.getId()).filter(d=>d!==o.getUserId()).map(d=>wr(e,d)??ln(d)??d),c=u==null?void 0:u.getId();return a.jsxs(a.Fragment,{children:[c&&a.jsx(Rn,{open:i,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>s(!1),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(xs,{variant:"Surface",size:"300",children:a.jsx(sX,{room:e,eventId:c,requestClose:()=>s(!1)})})})})}),a.jsx(y,{as:l.length>0?"button":"div",onClick:l.length>0?()=>s(!0):void 0,className:Ve(eze({clickable:l.length>0}),t),alignItems:"Center",justifyContent:"End",gap:"200",...n,ref:r,children:l.length>0&&a.jsxs(a.Fragment,{children:[a.jsx(Q,{style:{opacity:le.opacity.P300},size:"100",src:$.CheckTwice}),a.jsxs(x,{size:"T300",truncate:!0,children:[l.length===1&&a.jsxs(a.Fragment,{children:[a.jsx("b",{children:l[0]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" is following the conversation."})]}),l.length===2&&a.jsxs(a.Fragment,{children:[a.jsx("b",{children:l[0]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" and "}),a.jsx("b",{children:l[1]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" are following the conversation."})]}),l.length===3&&a.jsxs(a.Fragment,{children:[a.jsx("b",{children:l[0]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:", "}),a.jsx("b",{children:l[1]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" and "}),a.jsx("b",{children:l[2]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" are following the conversation."})]}),l.length>3&&a.jsxs(a.Fragment,{children:[a.jsx("b",{children:l[0]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:", "}),a.jsx("b",{children:l[1]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:", "}),a.jsx("b",{children:l[2]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" and "}),a.jsxs("b",{children:[l.length-3," others"]}),a.jsx(x,{as:"span",size:"Inherit",priority:"300",children:" are following the conversation."})]})]})]})})]})});var ize="_1wm6n5e0",aze="_13de4120",sze="_13de4122",uze="_13de4121";function lze({room:t,eventId:e,renderContent:n,onOpen:r,canPinEvent:o}){const i=YG(t,e),s=Tt(),u=ge(),l=iA(),[c]=Ft(ut,"legacyUsernameColor"),d=Lh(),{getPowerLevel:F}=yo(d),[h,m]=Fc(t,d),D=ky(),g=Sy(D.kind,h),[p,_]=et(f.useCallback(()=>{var T;const z={pinned:(((T=so(t,Re.RoomPinnedEvents))==null?void 0:T.getContent())??{pinned:[]}).pinned.filter(P=>P!==e)};return u.sendStateEvent(t.roomId,Re.RoomPinnedEvents,z)},[t,e,u])),v=z=>{z.stopPropagation();const T=z.currentTarget.getAttribute("data-event-id");T&&r(t.roomId,T)},E=z=>{z.stopPropagation(),_()},b=()=>a.jsxs(y,{shrink:"No",gap:"200",alignItems:"Center",children:[a.jsx(We,{"data-event-id":e,onClick:v,variant:"Secondary",radii:"Pill",children:a.jsx(x,{size:"T200",children:"Open"})}),o&&a.jsx(Me,{"data-event-id":e,variant:"Secondary",size:"300",radii:"Pill",onClick:p.status===he.Loading?void 0:E,"aria-disabled":p.status===he.Loading,children:p.status===he.Loading?a.jsx(ot,{size:"100"}):a.jsx(Q,{src:$.Cross,size:"100"})})]});if(i===void 0)return a.jsx($h,{variant:"Secondary"});if(i===null)return a.jsxs(y,{gap:"300",justifyContent:"SpaceBetween",alignItems:"Center",children:[a.jsx(y,{children:a.jsx(x,{style:{color:ct.Critical.Main},children:"Failed to load message!"})}),b()]});const k=i.getSender(),C=wr(t,k)??ln(k)??k,S=gC(t,k),w=()=>i.getContent(),A=F(k),O=m(A),j=O!=null&&O.color?g==null?void 0:g.get(O.color):void 0,R=O!=null&&O.icon?r0(u,s,O.icon):void 0,M=c||l?Vs(k):j;return a.jsxs(Rm,{before:a.jsx(k8,{children:a.jsx(Rt,{size:"300",children:a.jsx(wa,{userId:k,src:S?Xt(u,S,s,48,48,"crop")??void 0:void 0,alt:C,renderFallback:()=>a.jsx(Q,{size:"200",src:$.User,filled:!0})})})}),children:[a.jsxs(y,{gap:"300",justifyContent:"SpaceBetween",alignItems:"Center",grow:"Yes",children:[a.jsxs(y,{gap:"200",alignItems:"Baseline",children:[a.jsxs(y,{alignItems:"Center",gap:"200",children:[a.jsx(S8,{style:{color:M},children:a.jsx(x,{as:"span",truncate:!0,children:a.jsx(j8,{children:C})})}),R&&a.jsx(o0,{size:"100",iconSrc:R})]}),a.jsx($s,{ts:i.getTs()})]}),b()]}),i.replyEventId&&a.jsx(R3,{room:t,replyEventId:i.replyEventId,threadRootId:i.threadRootId,onClick:v,getPowerLevel:F,getPowerLevelTag:m,accessibleTagColors:g,legacyUsernameColor:c}),n(i.getType(),!1,i,C,w)]})}const cze=f.forwardRef(({room:t,requestClose:e},n)=>{const r=ge(),o=r.getUserId(),i=Lh(),{canSendStateEvent:s,getPowerLevel:u}=yo(i),l=s(Re.RoomPinnedEvents,u(o)),c=gT(t),d=f.useMemo(()=>Array.from(c).reverse(),[c]),F=Tt(),[h]=Ft(ut,"mediaAutoLoad"),[m]=Ft(ut,"urlPreview"),{navigateRoom:D}=Mo(),g=f.useRef(null),p=Ru({count:d.length,getScrollElement:()=>g.current,estimateSize:()=>75,overscan:4}),_=gy(t.roomId),v=py(),E=f.useMemo(()=>({...Hh,render:y8(S=>S3(r,t.roomId,S,k3(_)))}),[r,t,_]),b=f.useMemo(()=>x8(r,t.roomId,{linkifyOpts:E,useAuthentication:F,handleSpoilerClick:v,handleMentionClick:_}),[r,t,E,_,v,F]),k=w8({[qn.RoomMessage]:(S,w,A)=>{var O;return S.isRedacted()?a.jsx(oa,{reason:(O=S.getUnsigned().redacted_because)==null?void 0:O.content.reason}):a.jsx(e0,{displayName:w,msgType:S.getContent().msgtype??"",ts:S.getTs(),getContent:A,edited:!!S.replacingEvent(),mediaAutoLoad:h,urlPreview:m,htmlReactParserOptions:b,linkifyOpts:E,outlineAttachment:!0})},[qn.RoomMessageEncrypted]:(S,w)=>{const A=S.getId(),O=t.getTimelineForEvent(A),j=O==null?void 0:O.getEvents().find(R=>R.getId()===A);return!j||!O?a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T400",priority:"300",children:[a.jsx("code",{className:nc,children:S.getType()})," event"]})}):a.jsx(fT,{mEvent:j,children:()=>{if(j.isRedacted())return a.jsx(oa,{});if(j.getType()===qn.Sticker)return a.jsx(Gh,{content:j.getContent(),renderImageContent:R=>a.jsx(Hd,{...R,autoPlay:h,renderImage:M=>a.jsx(uc,{...M,loading:"lazy"}),renderViewer:M=>a.jsx(Zd,{...M})})});if(j.getType()===qn.RoomMessage){const R=cm(A,j,O.getTimelineSet()),M=()=>(R==null?void 0:R.getContent()["m.new_content"])??j.getContent();return a.jsx(e0,{displayName:w,msgType:j.getContent().msgtype??"",ts:j.getTs(),edited:!!R||!!j.replacingEvent(),getContent:M,mediaAutoLoad:h,urlPreview:m,htmlReactParserOptions:b,linkifyOpts:E})}return j.getType()===qn.RoomMessageEncrypted?a.jsx(x,{children:a.jsx(Vj,{})}):a.jsx(x,{children:a.jsx(L8,{})})}})},[qn.Sticker]:(S,w,A)=>{var O;return S.isRedacted()?a.jsx(oa,{reason:(O=S.getUnsigned().redacted_because)==null?void 0:O.content.reason}):a.jsx(Gh,{content:A(),renderImageContent:j=>a.jsx(Hd,{...j,autoPlay:h,renderImage:R=>a.jsx(uc,{...R,loading:"lazy"}),renderViewer:R=>a.jsx(Zd,{...R})})})}},void 0,S=>{var w;return S.isRedacted()?a.jsx(oa,{reason:(w=S.getUnsigned().redacted_because)==null?void 0:w.content.reason}):a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(x,{size:"T400",priority:"300",children:[a.jsx("code",{className:nc,children:S.getType()})," event"]})})}),C=(S,w)=>{D(S,w),e()};return a.jsx(zt,{ref:n,className:aze,children:a.jsxs(y,{grow:"Yes",direction:"Column",children:[a.jsxs(In,{className:uze,size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H5",children:"Pinned Messages"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{size:"300",onClick:e,radii:"300",children:a.jsx(Q,{src:$.Cross,size:"400"})})})]}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{ref:g,size:"300",hideTrack:!0,visibility:"Hover",children:a.jsx(y,{className:sze,direction:"Column",gap:"100",children:d.length>0?a.jsx("div",{style:{position:"relative",height:p.getTotalSize()},children:p.getVirtualItems().map(S=>{const w=d[S.index];return w?a.jsx(Hs,{virtualItem:S,style:{paddingBottom:le.space.S200},ref:p.measureElement,children:a.jsx(rt,{style:{padding:le.space.S400,borderRadius:le.radii.R300},variant:"SurfaceVariant",direction:"Column",children:a.jsx(lze,{room:t,eventId:w,renderContent:k,onOpen:C,canPinEvent:l})})},S.index):null})}):a.jsxs(y,{className:ai({variant:"SurfaceVariant"}),style:{marginBottom:le.space.S200,padding:`${le.space.S700} ${le.space.S400} ${Dt(60)}`,borderRadius:le.radii.R300},grow:"Yes",direction:"Column",gap:"400",justifyContent:"Center",alignItems:"Center",children:[a.jsx(Q,{src:$.Pin,size:"600"}),a.jsxs(y,{style:{maxWidth:Dt(300)},direction:"Column",gap:"200",alignItems:"Center",children:[a.jsx(x,{size:"H4",align:"Center",children:"No Pinned Messages"}),a.jsx(x,{size:"T400",align:"Center",children:"Users with sufficient power level can pin a messages from its context menu."})]})]})})})})]})})}),dze=f.forwardRef(({room:t,requestClose:e},n)=>{const r=ge(),[o]=Ft(ut,"hideActivity"),i=km(t.roomId,co),s=Lh(),{getPowerLevel:u,canDoAction:l}=yo(s),c=l("invite",u(r.getUserId()??"")),d=l3(),F=lE(d,t.roomId),h=()=>{ta(r,t.roomId,o),e()},m=()=>{Au(t.roomId),e()},D=()=>{const v=vo(r,t.roomId),E=Rs(v)?void 0:wd(t);Vl(_E(v,E)),e()},g=NS(),p=m3(),_=()=>{g(t.roomId,p==null?void 0:p.roomId),e()};return a.jsxs(zt,{ref:n,style:{maxWidth:Dt(160),width:"100vw"},children:[a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[a.jsx(tt,{onClick:h,size:"300",after:a.jsx(Q,{size:"100",src:$.CheckTwice}),radii:"300",disabled:!i,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Mark as Read"})}),a.jsx(dK,{roomId:t.roomId,value:F,children:(v,E,b)=>a.jsx(tt,{size:"300",after:b?a.jsx(ot,{size:"100",variant:"Secondary"}):a.jsx(Q,{size:"100",src:cE(F)}),radii:"300","aria-pressed":E,onClick:v,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Notifications"})})})]}),a.jsx(jn,{variant:"Surface",size:"300"}),a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[a.jsx(tt,{onClick:m,variant:"Primary",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.UserPlus}),radii:"300",disabled:!c,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Invite"})}),a.jsx(tt,{onClick:D,size:"300",after:a.jsx(Q,{size:"100",src:$.Link}),radii:"300",children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Copy Link"})}),a.jsx(tt,{onClick:_,size:"300",after:a.jsx(Q,{size:"100",src:$.Setting}),radii:"300",children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Room Settings"})})]}),a.jsx(jn,{variant:"Surface",size:"300"}),a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:a.jsx(Oo,{initial:!1,children:(v,E)=>a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:()=>E(!0),variant:"Critical",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.ArrowGoLeft}),radii:"300","aria-pressed":v,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Leave Room"})}),v&&a.jsx(RS,{roomId:t.roomId,onDone:e,onCancel:()=>E(!1)})]})})})]})});function hze(){const t=Xr(),e=ge(),n=Tt(),r=Wr(),o=pr(),i=m3(),[s,u]=f.useState(),[l,c]=f.useState(),d=_t(Co),F=gT(o),h=!!vi(o,Re.RoomEncryption),m=i0(o,d.has(o.roomId)),D=t1(o),g=Ry(o),p=m?Xt(e,m,n,96,96,"crop")??void 0:void 0,_=oE(ut,"isPeopleDrawer"),v=()=>{const k={rooms:o.roomId},C=i?d7(vo(e,i.roomId)):s7();t(dm(C,k))},E=k=>{u(k.currentTarget.getBoundingClientRect())},b=k=>{c(k.currentTarget.getBoundingClientRect())};return a.jsx(Dr,{balance:r===en.Mobile,children:a.jsxs(y,{grow:"Yes",gap:"300",children:[r===en.Mobile&&a.jsx(mc,{children:k=>a.jsx(y,{shrink:"No",alignItems:"Center",children:a.jsx(Me,{onClick:k,children:a.jsx(Q,{src:$.ArrowLeft})})})}),a.jsxs(y,{grow:"Yes",alignItems:"Center",gap:"300",children:[r!==en.Mobile&&a.jsx(Rt,{size:"300",children:a.jsx(ho,{roomId:o.roomId,src:p,alt:D,renderFallback:()=>a.jsx(ts,{size:"200",joinRule:o.getJoinRule()??un.Restricted,filled:!0})})}),a.jsxs(y,{direction:"Column",children:[a.jsx(x,{size:g?"H5":"H3",truncate:!0,children:D}),g&&a.jsx(Oo,{initial:!1,children:(k,C)=>a.jsxs(a.Fragment,{children:[a.jsx(Rn,{open:k,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,clickOutsideDeactivates:!0,onDeactivate:()=>C(!1),escapeDeactivates:vt},children:a.jsx(e1,{name:D,topic:g,requestClose:()=>C(!1)})})})}),a.jsx(x,{as:"button",type:"button",onClick:()=>C(!0),className:ize,size:"T200",priority:"300",truncate:!0,children:g})]})})]})]}),a.jsxs(y,{shrink:"No",children:[!h&&a.jsx(Br,{position:"Bottom",offset:4,tooltip:a.jsx(Ao,{children:a.jsx(x,{children:"Search"})}),children:k=>a.jsx(Me,{ref:k,onClick:v,children:a.jsx(Q,{size:"400",src:$.Search})})}),a.jsx(Br,{position:"Bottom",offset:4,tooltip:a.jsx(Ao,{children:a.jsx(x,{children:"Pinned Messages"})}),children:k=>a.jsxs(Me,{style:{position:"relative"},onClick:b,ref:k,"aria-pressed":!!l,children:[F.length>0&&a.jsx(Bt,{style:{position:"absolute",left:Dt(3),top:Dt(3)},variant:"Secondary",size:"400",fill:"Solid",radii:"Pill",children:a.jsx(x,{as:"span",size:"L400",children:F.length})}),a.jsx(Q,{size:"400",src:$.Pin,filled:!!l})]})}),a.jsx(Ut,{anchor:l,position:"Bottom",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>c(void 0),clickOutsideDeactivates:!0,isKeyForward:k=>k.key==="ArrowDown",isKeyBackward:k=>k.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(cze,{room:o,requestClose:()=>c(void 0)})})}),r===en.Desktop&&a.jsx(Br,{position:"Bottom",offset:4,tooltip:a.jsx(Ao,{children:a.jsx(x,{children:"Members"})}),children:k=>a.jsx(Me,{ref:k,onClick:()=>_(C=>!C),children:a.jsx(Q,{size:"400",src:$.User})})}),a.jsx(Br,{position:"Bottom",align:"End",offset:4,tooltip:a.jsx(Ao,{children:a.jsx(x,{children:"More Options"})}),children:k=>a.jsx(Me,{onClick:E,ref:k,"aria-pressed":!!s,children:a.jsx(Q,{size:"400",src:$.VerticalDots,filled:!!s})})}),a.jsx(Ut,{anchor:s,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>u(void 0),clickOutsideDeactivates:!0,isKeyForward:k=>k.key==="ArrowDown",isKeyBackward:k=>k.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(dze,{room:o,requestClose:()=>u(void 0)})})})]})]})})}const Fze=/^F\d+$/,mze=t=>{const{code:e}=t;return!(t.metaKey||t.altKey||t.ctrlKey||Fze.test(e)||e.startsWith("OS")||e.startsWith("Meta")||e.startsWith("Shift")||e.startsWith("Alt")||e.startsWith("Control")||e.startsWith("Arrow")||e.startsWith("Page")||e.startsWith("End")||e.startsWith("Home")||e==="Tab"||e==="Space"||e==="Enter"||e==="NumLock"||e==="ScrollLock")};function Dze({room:t,eventId:e}){const n=f.useRef(null),r=f.useRef(null),[o]=Ft(ut,"hideActivity"),{roomId:i}=t,s=Yee(),u=ge(),l=vi(t,Re.RoomTombstone),c=Lh(),{getPowerLevel:d,canSendEvent:F}=yo(c),h=u.getUserId(),m=h?F(Ce.RoomMessage,d(h)):!1,[D,g]=Fc(t,c),p=ky(),_=Sy(p.kind,D);return jd(window,f.useCallback(v=>{var E;hC()||((E=document.body.lastElementChild)==null?void 0:E.className)!=="ReactModalPortal"||uo.isRawModalVisible||(mze(v)||Mn("mod+v",v))&&Ge.focus(s)},[s])),a.jsxs(ur,{ref:r,children:[a.jsx(hze,{}),a.jsxs(y,{grow:"Yes",direction:"Column",children:[a.jsx(yNe,{room:t,eventId:e,roomInputRef:n,editor:s,getPowerLevelTag:g,accessibleTagColors:_},i),a.jsx(kNe,{room:t})]}),a.jsxs(y,{shrink:"No",direction:"Column",children:[a.jsx("div",{style:{padding:`0 ${le.space.S400}`},children:l?a.jsx(jNe,{roomId:i,body:l.getContent().body,replacementRoomId:l.getContent().replacement_room}):a.jsxs(a.Fragment,{children:[m&&a.jsx(QNe,{room:t,editor:s,roomId:i,fileDropContainerRef:r,ref:n,getPowerLevelTag:g,accessibleTagColors:_}),!m&&a.jsx(xte,{style:{padding:le.space.S200},alignItems:"Center",justifyContent:"Center",children:a.jsx(x,{align:"Center",children:"You do not have permission to post in this room"})})]})}),o?a.jsx(rze,{}):a.jsx(oze,{room:t})]})]})}var gze="_18fjf6z6",Yte="_18fjf6z9",pze="_18fjf6z3",fze="_18fjf6z2",_ze="_18fjf6z0",vze="_18fjf6z1",bze="_18fjf6z7",Cze="_18fjf6z8";const T_={filterJoined:t=>t.membership===$n.Join,filterInvited:t=>t.membership===$n.Invite,filterLeaved:t=>{var e,n;return t.membership===$n.Leave&&((e=t.events.member)==null?void 0:e.getStateKey())===((n=t.events.member)==null?void 0:n.getSender())},filterKicked:t=>{var e,n;return t.membership===$n.Leave&&((e=t.events.member)==null?void 0:e.getStateKey())!==((n=t.events.member)==null?void 0:n.getSender())},filterBanned:t=>t.membership===$n.Ban},IT=()=>f.useMemo(()=>[{name:"Joined",filterFn:T_.filterJoined},{name:"Invited",filterFn:T_.filterInvited},{name:"Left",filterFn:T_.filterLeaved},{name:"Kicked",filterFn:T_.filterKicked},{name:"Banned",filterFn:T_.filterBanned}],[]),Zte=(t,e)=>e[t]??e[0],S4={Ascending:(t,e)=>t.name.toLowerCase()<e.name.toLowerCase()?-1:1,Descending:(t,e)=>t.name.toLowerCase()>e.name.toLowerCase()?-1:1,NewestFirst:(t,e)=>{var n,r;return(((n=e.events.member)==null?void 0:n.getTs())??0)-(((r=t.events.member)==null?void 0:r.getTs())??0)},Oldest:(t,e)=>{var n,r;return(((n=t.events.member)==null?void 0:n.getTs())??0)-(((r=e.events.member)==null?void 0:r.getTs())??0)}},RT=()=>f.useMemo(()=>[{name:"A to Z",sortFn:S4.Ascending},{name:"Z to A",sortFn:S4.Descending},{name:"Newest",sortFn:S4.NewestFirst},{name:"Oldest",sortFn:S4.Oldest}],[]),Jte=(t,e)=>e[t]??e[0];function Xte({selected:t,onSelect:e,requestClose:n}){const r=IT();return a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:n,clickOutsideDeactivates:!0,isKeyForward:o=>o.key==="ArrowDown",isKeyBackward:o=>o.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(zt,{style:{padding:le.space.S100},children:r.map((o,i)=>a.jsx(tt,{variant:"Surface","aria-pressed":t===i,size:"300",radii:"300",onClick:()=>{e(i),n()},children:a.jsx(x,{size:"T300",children:o.name})},o.name))})})}function Qte({selected:t,onSelect:e,requestClose:n}){const r=RT();return a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:n,clickOutsideDeactivates:!0,isKeyForward:o=>o.key==="ArrowDown",isKeyBackward:o=>o.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(zt,{style:{padding:le.space.S100},children:r.map((o,i)=>a.jsx(tt,{variant:"Surface","aria-pressed":t===i,size:"300",radii:"300",onClick:()=>{e(i),n()},children:a.jsx(x,{size:"T300",children:o.name})},o.name))})})}const Eze={limit:1e3,matchOptions:{contain:!0}},yze=t=>ln(t)??t,xze=(t,e)=>X5(t,e,yze);function ene({room:t,members:e}){var T;const n=ge(),r=Tt(),o=f.useRef(null),i=f.useRef(null),s=f.useRef(null),u=Lh(),[,l]=Fc(t,u),c=e.length<t.getJoinedMemberCount(),d=oE(ut,"isPeopleDrawer"),F=IT(),h=RT(),[m,D]=Ft(ut,"memberSortFilterIndex"),[g,p]=f.useState(0),{getPowerLevel:_}=yo(u),v=Zte(g,F),E=Jte(m,h),b=OS(t.roomId),k=f.useMemo(()=>e.filter(v.filterFn).sort(E.sortFn).sort((P,L)=>L.powerLevel-P.powerLevel),[e,v,E]),[C,S,w]=Qd(k,xze,Eze);!C&&((T=i.current)!=null&&T.value)&&S(i.current.value);const A=C?C.items:k,O=NJ(A,_,l),j=Ru({count:O.length,getScrollElement:()=>o.current,estimateSize:()=>40,overscan:10}),R=Z1(f.useCallback(P=>{P.target.value?S(P.target.value):w()},[S,w]),{wait:200}),M=P=>wr(t,P.userId)??ln(P.userId)??P.userId,z=P=>{const L=P.currentTarget.getAttribute("data-user-id");ym(L,t.roomId)};return a.jsxs(y,{className:_ze,shrink:"No",direction:"Column",children:[a.jsx(In,{className:vze,variant:"Background",size:"600",children:a.jsxs(y,{grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{title:`${t.getJoinedMemberCount()} Members`,size:"H5",truncate:!0,children:`${pE(t.getJoinedMemberCount())} Members`})}),a.jsx(y,{shrink:"No",alignItems:"Center",children:a.jsx(Br,{position:"Bottom",align:"End",offset:4,tooltip:a.jsx(Ao,{children:a.jsx(x,{children:"Close"})}),children:P=>a.jsx(Me,{ref:P,variant:"Background",onClick:()=>d(!1),children:a.jsx(Q,{src:$.Cross})})})})]})}),a.jsx(y,{className:fze,grow:"Yes",children:a.jsx(Mt,{ref:o,variant:"Background",size:"300",visibility:"Hover",hideTrack:!0,children:a.jsxs(y,{className:pze,direction:"Column",gap:"200",children:[a.jsxs(y,{ref:s,className:gze,direction:"Column",gap:"200",children:[a.jsxs(y,{alignItems:"Center",justifyContent:"SpaceBetween",gap:"200",children:[a.jsx(Oo,{initial:void 0,children:(P,L)=>a.jsx(Ut,{anchor:P,position:"Bottom",align:"Start",offset:4,content:a.jsx(Xte,{selected:g,onSelect:p,requestClose:()=>L(void 0)}),children:a.jsx(We,{onClick:U=>L(U.currentTarget.getBoundingClientRect()),variant:"Background",size:"400",radii:"300",before:a.jsx(Q,{src:$.Filter,size:"50"}),children:a.jsx(x,{size:"T200",children:v.name})})})}),a.jsx(Oo,{initial:void 0,children:(P,L)=>a.jsx(Ut,{anchor:P,position:"Bottom",align:"End",offset:4,content:a.jsx(Qte,{selected:m,onSelect:D,requestClose:()=>L(void 0)}),children:a.jsx(We,{onClick:U=>L(U.currentTarget.getBoundingClientRect()),variant:"Background",size:"400",radii:"300",after:a.jsx(Q,{src:$.Sort,size:"50"}),children:a.jsx(x,{size:"T200",children:E.name})})})})]}),a.jsx(y,{direction:"Column",gap:"100",children:a.jsx(En,{ref:i,onChange:R,style:{paddingRight:le.space.S200},placeholder:"Type name...",variant:"Surface",size:"400",radii:"400",before:a.jsx(Q,{size:"50",src:$.Search}),after:C&&a.jsx(We,{variant:C.items.length>0?"Success":"Critical",size:"400",radii:"Pill","aria-pressed":!0,onClick:()=>{i.current&&(i.current.value="",i.current.focus()),w()},after:a.jsx(Q,{size:"50",src:$.Cross}),children:a.jsx(x,{size:"B300",children:`${C.items.length||"No"} ${C.items.length===1?"Result":"Results"}`})})})})]}),a.jsx(f3,{scrollRef:o,anchorRef:s,children:a.jsx(Me,{onClick:()=>j.scrollToOffset(0),variant:"Surface",radii:"Pill",outlined:!0,size:"300","aria-label":"Scroll to Top",children:a.jsx(Q,{src:$.ChevronTop,size:"300"})})}),!c&&!C&&A.length===0&&a.jsx(x,{style:{padding:le.space.S300},align:"Center",children:`No "${v.name}" Members`}),a.jsx(y,{className:bze,direction:"Column",gap:"100",children:a.jsx("div",{style:{position:"relative",height:j.getTotalSize()},children:j.getVirtualItems().map(P=>{const L=O[P.index];if(!("userId"in L))return a.jsx(x,{style:{transform:`translateY(${P.start}px)`},"data-index":P.index,ref:j.measureElement,className:Ve(Cze,Yte),size:"L400",children:L.name},`${t.roomId}-${P.index}`);const U=L,te=M(U),ae=U.getMxcAvatarUrl(),Fe=ae?n.mxcUrlToHttp(ae,100,100,"crop",void 0,!1,r):void 0;return a.jsx(tt,{style:{padding:`0 ${le.space.S200}`,transform:`translateY(${P.start}px)`},"data-index":P.index,"data-user-id":U.userId,ref:j.measureElement,className:Yte,variant:"Background",radii:"400",onClick:z,before:a.jsx(Rt,{size:"200",children:a.jsx(wa,{userId:U.userId,src:Fe??void 0,alt:te,renderFallback:()=>a.jsx(Q,{size:"50",src:$.User,filled:!0})})}),after:b.find(re=>re.userId===U.userId)&&a.jsx(Bt,{size:"300",variant:"Secondary",fill:"Soft",radii:"Pill",outlined:!0,children:a.jsx(PS,{size:"300"})}),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T400",truncate:!0,children:te})})},`${t.roomId}-${U.userId}`)})})}),c&&a.jsx(y,{justifyContent:"Center",children:a.jsx(ot,{})})]})})})]})}function OT(){const{eventId:t}=uu(),e=pr(),n=ge(),[r]=Ft(ut,"isPeopleDrawer"),[o]=Ft(ut,"hideActivity"),i=Wr(),s=Bi(e),u=f4(n,e.roomId);return jd(window,f.useCallback(l=>{Mn("escape",l)&&ta(n,e.roomId,o)},[n,e.roomId,o])),a.jsx(oK,{value:s,children:a.jsxs(y,{grow:"Yes",children:[a.jsx(Dze,{room:e,eventId:t}),i===en.Desktop&&r&&a.jsxs(a.Fragment,{children:[a.jsx(jn,{variant:"Background",direction:"Vertical",size:"300"}),a.jsx(ene,{room:e,members:u},e.roomId)]})]})})}const wze="spaceRooms",j4=Lf(wze,t=>{const e=Mf(t,[]);return new Set(e)},(t,e)=>{const n=Array.from(e);Pf(t,n)}),kze=Bn(t=>t(j4),(t,e,n)=>{const r=t(j4),{type:o,roomIds:i}=n;if(o==="DELETE"&&i.find(s=>r.has(s))){e(j4,po(r,s=>{i.forEach(u=>s.delete(u))}));return}if(o==="PUT"){const s=i.filter(u=>!r.has(u));s.length>0&&e(j4,po(r,u=>{s.forEach(l=>u.add(l))}))}});var Sze="_1p73zhk0";const jze=f.forwardRef(({roomId:t,powerLevels:e,requestClose:n},r)=>{const o=ge(),{getPowerLevel:i,canDoAction:s}=yo(e),u=s("invite",i(o.getUserId()??"")),l=My(),c=()=>{Au(t),n()},d=()=>{l(t),n()};return a.jsxs(zt,{ref:r,style:{maxWidth:Dt(160),width:"100vw"},children:[a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[a.jsx(tt,{onClick:c,variant:"Primary",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.UserPlus}),radii:"300",disabled:!u,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Invite"})}),a.jsx(tt,{onClick:d,size:"300",after:a.jsx(Q,{size:"100",src:$.Setting}),radii:"300",children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Space Settings"})})]}),a.jsx(jn,{variant:"Surface",size:"300"}),a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:a.jsx(Oo,{initial:!1,children:(F,h)=>a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:()=>h(!0),variant:"Critical",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.ArrowGoLeft}),radii:"300","aria-pressed":F,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Leave Space"})}),F&&a.jsx(FA,{roomId:t,onDone:n,onCancel:()=>h(!1)})]})})})]})});function Bze({showProfile:t,powerLevels:e}){const n=ge(),r=Tt(),o=Nh(),i=oE(ut,"isPeopleDrawer"),[s,u]=f.useState(),l=Wr(),c=t1(o),d=i0(o),F=d?Xt(n,d,r,96,96,"crop")??void 0:void 0,h=m=>{u(m.currentTarget.getBoundingClientRect())};return a.jsx(Dr,{className:t?void 0:Sze,balance:!0,children:a.jsxs(y,{grow:"Yes",alignItems:"Center",gap:"200",children:[l===en.Mobile?a.jsxs(a.Fragment,{children:[a.jsx(y,{shrink:"No",children:a.jsx(mc,{children:m=>a.jsx(Me,{onClick:m,children:a.jsx(Q,{src:$.ArrowLeft})})})}),a.jsx(y,{grow:"Yes",justifyContent:"Center",children:t&&a.jsx(x,{size:"H3",truncate:!0,children:c})})]}):a.jsxs(a.Fragment,{children:[a.jsx(y,{grow:"Yes",basis:"No"}),a.jsx(y,{justifyContent:"Center",alignItems:"Center",gap:"300",children:t&&a.jsxs(a.Fragment,{children:[a.jsx(Rt,{size:"300",children:a.jsx(ho,{roomId:o.roomId,src:F,alt:c,renderFallback:()=>a.jsx(x,{size:"H4",children:Gi(c)})})}),a.jsx(x,{size:"H3",truncate:!0,children:c})]})})]}),a.jsxs(y,{shrink:"No",grow:l===en.Mobile?"No":"Yes",basis:l===en.Mobile?"Yes":"No",justifyContent:"End",children:[l!==en.Mobile&&a.jsx(Br,{position:"Bottom",offset:4,tooltip:a.jsx(Ao,{children:a.jsx(x,{children:"Members"})}),children:m=>a.jsx(Me,{ref:m,onClick:()=>i(D=>!D),children:a.jsx(Q,{size:"400",src:$.User})})}),a.jsx(Br,{position:"Bottom",align:"End",offset:4,tooltip:a.jsx(Ao,{children:a.jsx(x,{children:"More Options"})}),children:m=>a.jsx(Me,{onClick:h,ref:m,"aria-pressed":!!s,children:a.jsx(Q,{size:"400",src:$.VerticalDots,filled:!!s})})}),a.jsx(Ut,{anchor:s,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>u(void 0),clickOutsideDeactivates:!0,isKeyForward:m=>m.key==="ArrowDown",isKeyBackward:m=>m.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(jze,{roomId:o.roomId,powerLevels:e,requestClose:()=>u(void 0)})})})]})]})})}var Aze="qbvw3a0";function Tze(){const t=ge(),e=Tt(),n=Nh(),r=t1(n),o=Ry(n),i=i0(n),s=i?Xt(t,i,e,96,96,"crop")??void 0:void 0;return a.jsx(Md,{icon:a.jsx(Rt,{size:"500",children:a.jsx(ho,{roomId:n.roomId,src:s,alt:r,renderFallback:()=>a.jsx(x,{size:"H4",children:Gi(r)})})}),title:r,subTitle:o&&a.jsx(Oo,{initial:!1,children:(u,l)=>a.jsxs(a.Fragment,{children:[a.jsx(Rn,{open:u,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,clickOutsideDeactivates:!0,onDeactivate:()=>l(!1),escapeDeactivates:vt},children:a.jsx(e1,{name:r,topic:o,requestClose:()=>l(!1)})})})}),a.jsx(x,{as:"span",onClick:()=>l(!0),onKeyDown:gp(()=>l(!0)),tabIndex:0,className:Aze,size:"Inherit",priority:"300",children:o})]})})})}const Ize="closedLobbyCategories",Rze=t=>{const e=`${Ize}${t}`,n=Lf(e,r=>{const o=Mf(r,[]);return new Set(o)},(r,o)=>{const i=Array.from(o);Pf(r,i)});return Bn(r=>r(n),(r,o,i)=>{if(i.type==="DELETE"){o(n,po(r(n),s=>{s.delete(i.categoryId)}));return}i.type==="PUT"&&o(n,po(r(n),s=>{s.add(i.categoryId)}))})},tne=(...t)=>t.join("|");function Oze(t){if(Array.isArray(t))return t}function Mze(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return u}}function MT(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function nne(t,e){if(t){if(typeof t=="string")return MT(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?MT(t,e):void 0}}function Pze(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lze(t,e){return Oze(t)||Mze(t,e)||nne(t,e)||Pze()}var I_={},R_={};Object.defineProperty(R_,"__esModule",{value:!0}),R_.bind=void 0;function Nze(t,e){var n=e.type,r=e.listener,o=e.options;return t.addEventListener(n,r,o),function(){t.removeEventListener(n,r,o)}}R_.bind=Nze;var B4={},xD=Qe&&Qe.__assign||function(){return xD=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},xD.apply(this,arguments)};Object.defineProperty(B4,"__esModule",{value:!0}),B4.bindAll=void 0;var zze=R_;function rne(t){if(!(typeof t>"u"))return typeof t=="boolean"?{capture:t}:t}function Uze(t,e){if(e==null)return t;var n=xD(xD({},t),{options:xD(xD({},rne(e)),rne(t.options))});return n}function Vze(t,e,n){var r=e.map(function(o){var i=Uze(o,n);return(0,zze.bind)(t,i)});return function(){r.forEach(function(o){return o()})}}B4.bindAll=Vze,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=t.bind=void 0;var e=R_;Object.defineProperty(t,"bind",{enumerable:!0,get:function(){return e.bind}});var n=B4;Object.defineProperty(t,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})}(I_);function qze(t){if(Array.isArray(t))return MT(t)}function Hze(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function $ze(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function one(t){return qze(t)||Hze(t)||nne(t)||$ze()}function ine(t){var e=null;return function(){return e||(e={value:t.apply(void 0,arguments)}),e.value}}var PT=ine(function(){var t=navigator,e=t.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")}),LT={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function Wze(t){var e=t.dragLeave;return PT()?e.hasOwnProperty(LT.isLeavingWindow):!1}(function(){if(typeof window>"u"||!PT())return;function t(){return{enterCount:0,isOverWindow:!1}}var e=t();function n(){e=t()}I_.bindAll(window,[{type:"dragstart",listener:function(){e.enterCount=0,e.isOverWindow=!0}},{type:"drop",listener:n},{type:"dragend",listener:n},{type:"dragenter",listener:function(r){!e.isOverWindow&&e.enterCount===0&&(r[LT.isEnteringWindow]=!0),e.isOverWindow=!0,e.enterCount++}},{type:"dragleave",listener:function(r){e.enterCount--,e.isOverWindow&&e.enterCount===0&&(r[LT.isLeavingWindow]=!0,e.isOverWindow=!1)}}],{capture:!0})})();function Kze(t){return"nodeName"in t}function Gze(t){var e=t.dragLeave,n=e.type,r=e.relatedTarget;return n!=="dragleave"?!1:PT()?Wze({dragLeave:e}):r==null||r instanceof HTMLIFrameElement?!0:Kze(r)&&!document.contains(r)}function Yze(t){var e=t.onDragEnd;return[{type:"pointermove",listener:function(){var n=0;return function(){if(n<20){n++;return}e()}}()},{type:"pointerdown",listener:e}]}function Zze(t,e){var n=e.property,r=e.rule,o=e.priority,i=o===void 0?"":o,s=t.style.getPropertyValue(n),u=t.style.getPropertyPriority(n);return t.style.setProperty(n,r,i),function(){t.style.setProperty(n,s,u)}}function Jze(t){var e=t.current,n=document.elementFromPoint(e.input.clientX,e.input.clientY);return n instanceof HTMLElement?Zze(n,{property:"pointer-events",rule:"auto",priority:"important"}):null}function Xze(){var t,e=document.createElement("style");return e.setAttribute("pdnd-post-drag-fix","true"),document.head.appendChild(e),(t=e.sheet)===null||t===void 0||t.insertRule("* { pointer-events: none !important; }"),function(){document.head.removeChild(e)}}function ane(t){var e=t.current;queueMicrotask(function(){var n=Jze({current:e}),r=Xze();function o(){i(),n==null||n(),r()}var i=I_.bindAll(window,[{type:"pointerdown",listener:o},{type:"pointermove",listener:o},{type:"focusin",listener:o},{type:"focusout",listener:o},{type:"dragstart",listener:o},{type:"dragenter",listener:o},{type:"dragover",listener:o}],{capture:!0})})}function NT(t){return{altKey:t.altKey,button:t.button,buttons:t.buttons,ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY}}var Qze=function(t){var e=[],n=null,r=function(){for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];e=i,!n&&(n=requestAnimationFrame(function(){n=null,t.apply(void 0,e)}))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r},zT=Qze(function(t){return t()}),A4=function(){var t=null;function e(r){var o=requestAnimationFrame(function(){t=null,r()});t={frameId:o,fn:r}}function n(){t&&(cancelAnimationFrame(t.frameId),t.fn(),t=null)}return{schedule:e,flush:n}}();function eUe(t){var e=t.source,n=t.initial,r=t.dispatchEvent,o={dropTargets:[]};function i(u){r(u),o={dropTargets:u.payload.location.current.dropTargets}}var s={start:function(u){var l=u.nativeSetDragImage,c={current:n,previous:o,initial:n};i({eventName:"onGenerateDragPreview",payload:{source:e,location:c,nativeSetDragImage:l}}),A4.schedule(function(){i({eventName:"onDragStart",payload:{source:e,location:c}})})},dragUpdate:function(u){var l=u.current;A4.flush(),zT.cancel(),i({eventName:"onDropTargetChange",payload:{source:e,location:{initial:n,previous:o,current:l}}})},drag:function(u){var l=u.current;zT(function(){A4.flush();var c={initial:n,previous:o,current:l};i({eventName:"onDrag",payload:{source:e,location:c}})})},drop:function(u){var l=u.current,c=u.updatedSourcePayload;A4.flush(),zT.cancel(),i({eventName:"onDrop",payload:{source:c??e,location:{current:l,previous:o,initial:n}}})}};return s}var UT={isActive:!1};function sne(){return!UT.isActive}function tUe(t){return t.dataTransfer?t.dataTransfer.setDragImage.bind(t.dataTransfer):null}function nUe(t){var e=t.current,n=t.next;if(e.length!==n.length)return!0;for(var r=0;r<e.length;r++)if(e[r].element!==n[r].element)return!0;return!1}function rUe(t){var e=t.event,n=t.dragType,r=t.getDropTargetsOver,o=t.dispatchEvent;if(!sne())return;var i=oUe({event:e,dragType:n,getDropTargetsOver:r});UT.isActive=!0;var s={current:i};VT({event:e,current:i.dropTargets});var u=eUe({source:n.payload,dispatchEvent:o,initial:i});function l(m){var D=nUe({current:s.current.dropTargets,next:m.dropTargets});s.current=m,D&&u.dragUpdate({current:s.current})}function c(m){var D=NT(m),g=r({target:m.target,input:D,source:n.payload,current:s.current.dropTargets});g.length&&(m.preventDefault(),VT({event:m,current:g})),l({dropTargets:g,input:D})}function d(){s.current.dropTargets.length&&l({dropTargets:[],input:s.current.input}),u.drop({current:s.current,updatedSourcePayload:null}),F()}function F(){UT.isActive=!1,h()}var h=I_.bindAll(window,[{type:"dragover",listener:function(m){c(m),u.drag({current:s.current})}},{type:"dragenter",listener:c},{type:"dragleave",listener:function(m){Gze({dragLeave:m})&&(l({input:s.current.input,dropTargets:[]}),n.startedFrom==="external"&&d())}},{type:"drop",listener:function(m){m.preventDefault(),VT({event:m,current:s.current.dropTargets}),u.drop({current:s.current,updatedSourcePayload:n.type==="external"?n.getDropPayload(m):null}),F(),n.startedFrom==="internal"&&ane({current:s.current})}},{type:"dragend",listener:function(m){d(),n.startedFrom==="internal"&&ane({current:s.current})}}].concat(one(Yze({onDragEnd:d}))),{capture:!0});u.start({nativeSetDragImage:tUe(e)})}function VT(t){var e,n=t.event,r=t.current,o=(e=r[0])===null||e===void 0?void 0:e.dropEffect;o!=null&&n.dataTransfer&&(n.dataTransfer.dropEffect=o)}function oUe(t){var e=t.event,n=t.dragType,r=t.getDropTargetsOver,o=NT(e);if(n.startedFrom==="external")return{input:o,dropTargets:[]};var i=r({input:o,source:n.payload,target:e.target,current:[]});return{input:o,dropTargets:i}}var une={canStart:sne,start:rUe},qT=new Map;function iUe(t){var e=t.typeKey,n=t.mount,r=qT.get(e);if(r)return r.usageCount++,r;var o={typeKey:e,unmount:n(),usageCount:1};return qT.set(e,o),o}function aUe(t){var e=iUe(t);return function(){e.usageCount--,!(e.usageCount>0)&&(e.unmount(),qT.delete(t.typeKey))}}function O_(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(){e.forEach(function(r){return r()})}}function lne(t,e){var n=e.attribute,r=e.value;return t.setAttribute(n,r),function(){return t.removeAttribute(n)}}function cne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function d1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cne(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cne(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function HT(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=sUe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,u;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,u=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw u}}}}function sUe(t,e){if(t){if(typeof t=="string")return dne(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dne(t,e)}}function dne(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $T(t){return t.slice(0).reverse()}function uUe(t){var e=t.typeKey,n=t.defaultDropEffect,r=new WeakMap,o="data-drop-target-for-".concat(e),i="[".concat(o,"]");function s(m){return r.set(m.element,m),function(){return r.delete(m.element)}}function u(m){return O_(lne(m.element,{attribute:o,value:"true"}),s(m))}function l(m){var D,g,p,_,v=m.source,E=m.target,b=m.input,k=m.result,C=k===void 0?[]:k;if(E==null)return C;if(!(E instanceof Element))return E instanceof Node?l({source:v,target:E.parentElement,input:b,result:C}):C;var S=E.closest(i);if(S==null)return C;var w=r.get(S);if(w==null)return C;var A={input:b,source:v,element:w.element};if(w.canDrop&&!w.canDrop(A))return l({source:v,target:w.element.parentElement,input:b,result:C});var O=(D=(g=w.getData)===null||g===void 0?void 0:g.call(w,A))!==null&&D!==void 0?D:{},j=(p=(_=w.getDropEffect)===null||_===void 0?void 0:_.call(w,A))!==null&&p!==void 0?p:n,R={data:O,element:w.element,dropEffect:j,isActiveDueToStickiness:!1};return l({source:v,target:w.element.parentElement,input:b,result:[].concat(one(C),[R])})}function c(m){var D=m.eventName,g=m.payload,p=HT(g.location.current.dropTargets),_;try{for(p.s();!(_=p.n()).done;){var v,E=_.value,b=r.get(E.element),k=d1(d1({},g),{},{self:E});b==null||(v=b[D])===null||v===void 0||v.call(b,k)}}catch(C){p.e(C)}finally{p.f()}}var d={onGenerateDragPreview:c,onDrag:c,onDragStart:c,onDrop:c,onDropTargetChange:function(m){var D=m.payload,g=new Set(D.location.current.dropTargets.map(function(P){return P.element})),p=new Set,_=HT(D.location.previous.dropTargets),v;try{for(_.s();!(v=_.n()).done;){var E,b=v.value;p.add(b.element);var k=r.get(b.element),C=g.has(b.element),S=d1(d1({},D),{},{self:b});if(k==null||(E=k.onDropTargetChange)===null||E===void 0||E.call(k,S),!C){var w;k==null||(w=k.onDragLeave)===null||w===void 0||w.call(k,S)}}}catch(P){_.e(P)}finally{_.f()}var A=HT(D.location.current.dropTargets),O;try{for(A.s();!(O=A.n()).done;){var j,R,M=O.value;if(!p.has(M.element)){var z=d1(d1({},D),{},{self:M}),T=r.get(M.element);T==null||(j=T.onDropTargetChange)===null||j===void 0||j.call(T,z),T==null||(R=T.onDragEnter)===null||R===void 0||R.call(T,z)}}}catch(P){A.e(P)}finally{A.f()}}};function F(m){d[m.eventName](m)}function h(m){var D=m.source,g=m.target,p=m.input,_=m.current,v=l({source:D,target:g,input:p});if(v.length>=_.length)return v;for(var E=$T(_),b=$T(v),k=[],C=0;C<E.length;C++){var S,w=E[C],A=b[C];if(A!=null){k.push(A);continue}var O=k[C-1],j=E[C-1];if((O==null?void 0:O.element)!==(j==null?void 0:j.element))break;var R=r.get(w.element);if(!R)break;var M={input:p,source:D,element:R.element};if(R.canDrop&&!R.canDrop(M)||!((S=R.getIsSticky)!==null&&S!==void 0&&S.call(R,M)))break;k.push(d1(d1({},w),{},{isActiveDueToStickiness:!0}))}return $T(k)}return{dropTargetForConsumers:u,getIsOver:h,dispatchEvent:F}}function lUe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=cUe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,u;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,u=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw u}}}}function cUe(t,e){if(t){if(typeof t=="string")return hne(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hne(t,e)}}function hne(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Fne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function dUe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fne(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fne(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function hUe(){var t=new Set,e=null;function n(i){e&&(!i.canMonitor||i.canMonitor(e.canMonitorArgs))&&e.active.add(i)}function r(i){var s=dUe({},i);return t.add(s),n(s),function(){t.delete(s),e&&e.active.delete(s)}}function o(i){var s=i.eventName,u=i.payload;if(s==="onGenerateDragPreview"){e={canMonitorArgs:{initial:u.location.initial,source:u.source},active:new Set};var l=lUe(t),c;try{for(l.s();!(c=l.n()).done;){var d=c.value;n(d)}}catch(p){l.e(p)}finally{l.f()}}if(e){for(var F=Array.from(e.active),h=0,m=F;h<m.length;h++){var D=m[h];if(e.active.has(D)){var g;(g=D[s])===null||g===void 0||g.call(D,u)}}s==="onDrop"&&(e.active.clear(),e=null)}}return{dispatchEvent:o,monitorForConsumers:r}}function FUe(t){var e=t.typeKey,n=t.mount,r=t.dispatchEventToSource,o=t.defaultDropEffect,i=hUe(),s=uUe({typeKey:e,defaultDropEffect:o});function u(d){r==null||r(d),s.dispatchEvent(d),i.dispatchEvent(d)}function l(d){var F=d.event,h=d.dragType;une.start({event:F,dragType:h,getDropTargetsOver:s.getIsOver,dispatchEvent:u})}function c(){function d(){var F={canStart:une.canStart,start:l};return n(F)}return aUe({typeKey:e,mount:d})}return{registerUsage:c,dropTarget:s.dropTargetForConsumers,monitor:i.monitorForConsumers}}var mUe=ine(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),DUe="pdnd:android-fallback",mne="text/plain",gUe="text/uri-list",pUe="application/vnd.pdnd",T4=new WeakMap;function fUe(t){return T4.set(t.element,t),function(){T4.delete(t.element)}}var WT=FUe({typeKey:"element",defaultDropEffect:"move",mount:function(t){return I_.bind(document,{type:"dragstart",listener:function(e){var n,r,o,i,s,u;if(t.canStart(e)&&!e.defaultPrevented&&e.dataTransfer){var l=e.target;if(!(l instanceof HTMLElement))return null;var c=T4.get(l);if(!c)return null;var d=NT(e),F={element:c.element,dragHandle:(n=c.dragHandle)!==null&&n!==void 0?n:null,input:d};if(c.canDrag&&!c.canDrag(F))return e.preventDefault(),null;if(c.dragHandle){var h=document.elementFromPoint(d.clientX,d.clientY);if(!c.dragHandle.contains(h))return e.preventDefault(),null}var m=(r=(o=c.getInitialDataForExternal)===null||o===void 0?void 0:o.call(c,F))!==null&&r!==void 0?r:null;if(m)for(var D=0,g=Object.entries(m);D<g.length;D++){var p=Lze(g[D],2),_=p[0],v=p[1];e.dataTransfer.setData(_,v??"")}var E=e.dataTransfer.types;mUe()&&!E.includes(mne)&&!E.includes(gUe)&&e.dataTransfer.setData(mne,DUe),e.dataTransfer.setData(pUe,"");var b={element:c.element,dragHandle:(i=c.dragHandle)!==null&&i!==void 0?i:null,data:(s=(u=c.getInitialData)===null||u===void 0?void 0:u.call(c,F))!==null&&s!==void 0?s:{}},k={type:"element",payload:b,startedFrom:"internal"};t.start({event:e,dragType:k})}}})},dispatchEventToSource:function(t){var e,n,r=t.eventName,o=t.payload;(e=T4.get(o.source.element))===null||e===void 0||(n=e[r])===null||n===void 0||n.call(e,o)}}),KT=WT.dropTarget,GT=WT.monitor;function Dne(t){return O_(WT.registerUsage(),fUe(t),lne(t.element,{attribute:"draggable",value:"true"}))}var M_=new Map,I4=new Set;function gne(t){_Ue(t);var e=M_.get(t);if(e)return e;var n={timeOfEngagementStart:Date.now()};return M_.set(t,n),n}function _Ue(t){I4.add(t)}function vUe(t){I4.clear(),t(),M_.forEach(function(e,n){I4.has(n)||M_.delete(n)}),I4.clear()}function bUe(){M_.clear()}var pne=new Map;function CUe(t){var e=pne.get(t);if(e)return e;var n=EUe(t);return pne.set(t,n),n}function EUe(t){var e={type:"idle"},n=[];function r(l){if(e.type==="running"){var c=l-e.timeLastFrameFinished,d=e,F=d.latestArgs,h=document.elementFromPoint(F.location.current.input.clientX,F.location.current.input.clientY);vUe(function(){n.forEach(function(m){return m({underUsersPointer:h,latestArgs:F,timeSinceLastFrame:c})})}),e.timeLastFrameFinished=l,e.frameId=requestAnimationFrame(r)}}function o(){e.type!=="idle"&&(cancelAnimationFrame(e.frameId),bUe(),e={type:"idle"})}function i(l){e.type==="idle"&&(e={type:"initializing",latestArgs:l,frameId:requestAnimationFrame(function(c){e.type==="initializing"&&(e={type:"running",timeLastFrameFinished:c,latestArgs:e.latestArgs,frameId:requestAnimationFrame(r)})})})}function s(l){if(e.type==="idle"){i(l);return}e.latestArgs=l}t({onDragStart:i,onDropTargetChange:s,onDrag:s,onDrop:o});var u={onFrame:function(l){n.push(l)}};return u}var YT="data-auto-scrollable",yUe="[".concat(YT,'="true"]');function xUe(t){return t.setAttribute(YT,"true"),function(){return t.removeAttribute(YT)}}function fne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function _ne(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fne(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fne(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var wUe={startHitboxAtPercentageRemainingOfElement:{top:.25,right:.25,bottom:.25,left:.25},maxScrollAtPercentageRemainingOfHitbox:{top:.5,right:.5,bottom:.5,left:.5},timeDampeningDurationMs:300,maxMainAxisHitboxSize:180},kUe={standard:15*60,fast:25*60};function vne(t){var e;return _ne(_ne({},wUe),{},{maxPixelScrollPerSecond:kUe[(e=t==null?void 0:t.maxScrollSpeed)!==null&&e!==void 0?e:"standard"]})}var SUe={top:function(t){return t.scrollTop>0},right:function(t){return Math.ceil(t.scrollLeft)+t.clientWidth<t.scrollWidth},bottom:function(t){return Math.ceil(t.scrollTop)+t.clientHeight<t.scrollHeight},left:function(t){return t.scrollLeft>0}},jUe=["top","right","bottom","left"],BUe={top:"vertical",right:"horizontal",bottom:"vertical",left:"horizontal"},bne={start:"top",end:"bottom",point:"y",size:"height"},Cne={start:"left",end:"right",point:"x",size:"width"},Ene={vertical:{mainAxis:bne,crossAxis:Cne},horizontal:{mainAxis:Cne,crossAxis:bne}},ZT={top:"start",right:"end",bottom:"end",left:"start"};function R4(t){var e=t.edge,n=t.axis;return function(r){var o,i=r.clientRect,s=r.config,u=Ene[n],l=u.mainAxis,c=u.crossAxis,d=ZT[e],F=Math.min(s.startHitboxAtPercentageRemainingOfElement[e]*i[l.size],s.maxMainAxisHitboxSize);return DOMRect.fromRect((o={},I(o,l.point,d==="start"?i[l.point]:i[l.point]+i[l.size]-F),I(o,c.point,i[c.point]),I(o,l.size,F),I(o,c.size,i[c.size]),o))}}var AUe={top:R4({axis:"vertical",edge:"top"}),right:R4({axis:"horizontal",edge:"right"}),bottom:R4({axis:"vertical",edge:"bottom"}),left:R4({axis:"horizontal",edge:"left"})};function JT(t){var e=t.startOfRange,n=t.endOfRange,r=t.value,o=e<n;if(!o||r<e)return 0;if(r>n)return 1;var i=n-e;return(r-e)/i}function TUe(t){var e=t.timeSinceLastFrame,n=t.config,r=n.maxPixelScrollPerSecond/1e3,o=Math.ceil(r*e),i=n.maxPixelScrollPerSecond/60;return Math.min(o,i)}function IUe(t){var e=t.client,n=t.axis,r=t.edge,o=t.hitbox,i=t.config,s=Ene[n].mainAxis,u=ZT[r],l=o[s.size]*i.maxScrollAtPercentageRemainingOfHitbox[r];if(u==="end")return JT({startOfRange:o[s.start],endOfRange:o[s.end]-l,value:e[s.point]});var c=JT({startOfRange:o[s.start]+l,endOfRange:o[s.end],value:e[s.point]});return 1-c}function O4(t){var e=t.client,n=t.timeSinceLastFrame,r=t.engagement,o=t.axis,i=t.hitbox,s=t.edge,u=t.isDistanceDampeningEnabled,l=t.config,c=TUe({timeSinceLastFrame:n,config:l}),d=u?IUe({client:e,edge:s,hitbox:i,axis:o,config:l}):1,F=JT({startOfRange:r.timeOfEngagementStart,endOfRange:r.timeOfEngagementStart+l.timeDampeningDurationMs,value:Date.now()}),h=d*F,m=Math.max(c*h,1),D=ZT[s];return D==="end"?m:-1*m}function RUe(t,e){return e==="all"||t===e}function OUe(t){var e=t.client,n=t.clientRect;return e.x>=n.x&&e.x<=n.x+n.width&&e.y>=n.y&&e.y<=n.y+n.height}function MUe(t){return t.getBoundingClientRect()}function yne(t){var e=t.element,n=t.input,r=t.timeSinceLastFrame,o=t.engagement,i=t.config,s=t.allowedAxis,u=t.getRect,l=u===void 0?MUe:u,c={x:n.clientX,y:n.clientY},d=l(e),F=jUe.reduce(function(D,g){var p=AUe[g]({clientRect:d,config:i}),_=BUe[g];return!RUe(_,s)||!OUe({client:c,clientRect:p})||!SUe[g](e)||D.set(g,{edge:g,hitbox:p}),D},new Map),h=function(){var D="horizontal",g=F.get("left");if(g)return O4({client:c,edge:g.edge,hitbox:g.hitbox,axis:D,timeSinceLastFrame:r,engagement:o,isDistanceDampeningEnabled:!0,config:i});var p=F.get("right");return p?O4({client:c,edge:p.edge,hitbox:p.hitbox,axis:D,timeSinceLastFrame:r,engagement:o,isDistanceDampeningEnabled:!0,config:i}):0}(),m=function(){var D="vertical",g=F.get("bottom");if(g)return O4({client:c,edge:g.edge,hitbox:g.hitbox,axis:D,timeSinceLastFrame:r,engagement:o,isDistanceDampeningEnabled:!0,config:i});var p=F.get("top");return p?O4({client:c,edge:p.edge,hitbox:p.hitbox,axis:D,timeSinceLastFrame:r,engagement:o,isDistanceDampeningEnabled:!0,config:i}):0}();return{left:h,top:m}}function PUe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=LUe(t))||e){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,u;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return i=l.done,l},e:function(l){s=!0,u=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw u}}}}function LUe(t,e){if(t){if(typeof t=="string")return xne(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xne(t,e)}}function xne(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wne(t){return!!(t.top||t.left)}function kne(t){var e,n,r,o=t.target,i=t.input,s=t.source,u=t.findEntry,l=t.timeSinceLastFrame,c=t.available,d=c===void 0?{top:!0,left:!0}:c;if(!wne(d)||!o)return d;var F=o.closest(yUe);if(!F)return d;var h=u(F);if(!h)return d;function m(){var b;return kne({target:(b=F==null?void 0:F.parentElement)!==null&&b!==void 0?b:null,findEntry:u,source:s,timeSinceLastFrame:l,input:i,available:d})}var D={input:i,source:s,element:F};if(h.canScroll&&!h.canScroll(D))return m();var g=gne(F),p=vne((e=h.getConfiguration)===null||e===void 0?void 0:e.call(h,D)),_=(n=(r=h.getAllowedAxis)===null||r===void 0?void 0:r.call(h,D))!==null&&n!==void 0?n:"all",v=yne({element:F,engagement:g,input:i,timeSinceLastFrame:l,allowedAxis:_,config:p}),E={top:0,left:0};return d.top&&v.top!==0&&(E.top=v.top,d.top=!1),d.left&&v.left!==0&&(E.left=v.left,d.left=!1),(E.top!==0||E.left!==0)&&F.scrollBy(E),m()}function NUe(t){var e=t.input,n=t.timeSinceLastFrame,r=t.available,o=t.source,i=t.entries,s=document.documentElement,u={input:e,source:o,element:s},l=PUe(i),c;try{for(l.s();!(c=l.n()).done;){var d,F,h,m=c.value;if(!(m.canScroll&&!m.canScroll(u))){var D=gne(s),g=vne((d=m.getConfiguration)===null||d===void 0?void 0:d.call(m,u)),p=(F=(h=m.getAllowedAxis)===null||h===void 0?void 0:h.call(m,u))!==null&&F!==void 0?F:"all",_=yne({element:s,engagement:D,input:e,config:g,allowedAxis:p,getRect:function(E){return DOMRect.fromRect({y:0,x:0,width:E.clientWidth,height:E.clientHeight})},timeSinceLastFrame:n}),v={top:r.top?_.top:0,left:r.left?_.left:0};(v.top!==0||v.left!==0)&&s.scrollBy(v);break}}}catch(E){l.e(E)}finally{l.f()}}function zUe(t){var e=t.input,n=t.findEntry,r=t.timeSinceLastFrame,o=t.source,i=t.getWindowScrollEntries,s=t.underUsersPointer,u=kne({target:s,timeSinceLastFrame:r,input:e,source:o,findEntry:n});wne(u)&&NUe({input:e,source:o,entries:i(),timeSinceLastFrame:r,available:u})}function Sne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function UUe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Sne(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sne(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function VUe(t){var e=t.monitor,n=new Map,r=new Set;function o(c){return n.set(c.element,c),O_(xUe(c.element),function(){return n.delete(c.element)})}function i(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=UUe({},c);return r.add(d),function(){return r.delete(d)}}function s(c){var d;return(d=n.get(c))!==null&&d!==void 0?d:null}function u(){return Array.from(r)}function l(c){var d=c.latestArgs,F=c.underUsersPointer,h=c.timeSinceLastFrame;zUe({input:d.location.current.input,source:d.source,findEntry:s,underUsersPointer:F,timeSinceLastFrame:h,getWindowScrollEntries:u})}return CUe(e).onFrame(l),{autoScroll:o,autoScrollWindow:i}}var qUe=VUe({monitor:GT}),jne=qUe.autoScroll,HUe="_10dxgc63 _10dxgc62 _10dxgc61",$Ue="_10dxgc64 _10dxgc62 _10dxgc61",WUe="_10dxgc60 _1mqalmd1 _1mqalmd0 _1rwrsxz3";const Bne=(t,e,n,r)=>{const[o,i]=f.useState(!1);return f.useEffect(()=>{const s=e.current,u=(r==null?void 0:r.current)??void 0;return s?Dne({element:s,dragHandle:u,getInitialData:()=>t,onDragStart:()=>{i(!0),n(t)},onDrop:()=>{i(!1),n(void 0)}}):void 0},[e,r,t,n]),o},KUe=Ie(({className:t,...e},n)=>a.jsx(y,{justifyContent:"Center",alignItems:"Center",className:Ve(WUe,t),ref:n,...e,children:a.jsx(Q,{size:"50",src:$.VerticalDots})}));function Ane({item:t,afterSpace:e,nextRoomId:n,canDrop:r}){const o=f.useRef(null),[i,s]=f.useState("idle");return f.useEffect(()=>{const u=o.current;if(!u)throw Error("drop target ref is not set properly");return KT({element:u,getData:()=>({item:t,nextRoomId:n}),onDragEnter:({source:l})=>{r(l.data,{item:t,nextRoomId:n})?s("allow"):s("not-allow")},onDragLeave:()=>s("idle"),onDrop:()=>s("idle")})},[t,n,r]),a.jsx("div",{className:e?$Ue:HUe,"data-hover":i!=="idle","data-error":i==="not-allow",ref:o})}const GUe=(t,e,n)=>{f.useEffect(()=>{const r=t.current;if(!r)throw Error("Scroll element ref not configured");return O_(GT({onDrop:({source:o,location:i})=>{e(void 0);const{dropTargets:s}=i.current;s.length!==0&&n(o.data,s[0].data)}}),jne({element:r}))},[t,e,n])};class YUe{constructor(e,n,r){if(e>n)throw new Error("Invalid ASCII code! startCode is greater than endCode.");if(e<0||n>128)throw new Error("Invalid ASCII code range!");if(r<=0)throw new Error("Invalid max string width!");this.maxStrWidth=r,this.startCode=e,this.endCode=n,this.rangeCount=(o,i)=>i-o+1,this.widthToSize=[],this.populateWidthToSize(),this.size()>Number.MAX_SAFE_INTEGER&&console.warn(`[!] Warning: ASCIILexicalTable size is larger than the Number.MAX_SAFE_INTEGER: ${this.size()} > ${Number.MAX_SAFE_INTEGER}`)}populateWidthToSize(){const e=this.rangeCount(this.startCode,this.endCode);for(let n=0,r=0;n<this.maxStrWidth;n+=1)r=r*e+e,this.widthToSize[n]=r}getWidthToSize(e){return this.widthToSize[e-1]}first(){return String.fromCharCode(this.startCode)}last(){let e="";for(let n=0;n<this.maxStrWidth;n+=1)e+=String.fromCharCode(this.endCode);return e}hasIndex(e){return e>=0&&e<this.size()}has(e){if(e.length===0||e.length>this.maxStrWidth)return!1;let n;for(let r=0;r<e.length;r+=1)if(n=e.charCodeAt(r),n<this.startCode||n>this.endCode)return!1;return!0}size(){return this.getWidthToSize(this.maxStrWidth)}index(e){if(!this.has(e))return-1;let n=0;const r=this.rangeCount(this.startCode,this.endCode);for(let o=0;o<this.maxStrWidth;o+=1){const i=e.charCodeAt(o);if(Number.isNaN(i))return n;const s=this.maxStrWidth-o,u=this.getWidthToSize(s)/r,l=i-this.startCode,c=o===0?0:1;n+=u*l+c}return n}get(e){if(!this.hasIndex(e))return;let n="";const r=this.rangeCount(this.startCode,this.endCode);for(let o=e,i=0;i<this.maxStrWidth;i+=1){const s=this.maxStrWidth-i,u=this.getWidthToSize(s)/r,l=Math.floor(o/u);if(n+=String.fromCharCode(this.startCode+l),o-=l*u,o===0)break;o-=1}return n}previous(e){if(!this.has(e))return;let n=e;const r=n.charCodeAt(n.length-1);if(n=n.slice(0,n.length-1),r===this.startCode)return n.length===0?void 0:n;for(n+=String.fromCharCode(r-1);n.length<this.maxStrWidth;)n+=String.fromCharCode(this.endCode);return n}next(e){if(!this.has(e))return;let n=e;if(n.length<this.maxStrWidth)return n+=String.fromCharCode(this.startCode),n;for(let r=n.length-1;r>=0;r-=1){const o=n.charCodeAt(r);if(o!==this.endCode)return n=n.slice(0,r)+String.fromCharCode(o+1),n;n=n.slice(0,r)}}between(e,n){if(!this.has(e)||!this.has(n))return;const r=Math.floor((this.index(e)+this.index(n))/2),o=this.get(r);if(!(o===e||o===n))return o}nBetween(e,n,r){if(e<=0||!this.has(n)||!this.has(r))return;const o=this.index(n),i=this.index(r),s=Math.max(o,i)-Math.min(o,i);if(s<e)return;const u=Math.floor(s/(e+1));if(u===0)return;const l=[];for(let c=o+u;c<i&&l.length!==e;c+=u){const d=this.get(c);if(!d)break;l.push(d)}if(!(l.length<e))return l}}const ZUe=(t,e)=>{for(let n=t;n<e.length;n+=1){const r=e[n];if(typeof r=="string")return[n,r]}return[-1,void 0]},Tne=(t,e)=>{const n=[];for(let r=0;r<e.length;){const o=e[r],i=[],[s,u]=ZUe(r+1,e);typeof o=="string"&&i.push(o);const l=(s===-1?e.length:s)-(o?r+1:r+0);if(l>0){const c=t.nBetween(l,o??t.first(),u??t.last());if(c)i.push(...c);else return t.nBetween(e==null?void 0:e.length,t.first(),t.last())}n.push(...i),r+=i.length}if(n.length===e.length)return n},Ine=f.createContext(null),JUe=Ine.Provider,XUe=()=>{const t=f.useContext(Ine);if(!t)throw new Error("ClosedLobbyCategoriesAtom is not provided!");return t},P_=(t,e,n)=>{const r=(n==null?void 0:n.sidebar)??(n==null?void 0:n.shortcut)??[],o=new Set(e),i=[],s=u=>{if(typeof u!="string")return!1;const l=t.getRoom(u);return(l==null?void 0:l.getMyMembership())!==$n.Join?!1:ql(l)};return r.forEach(u=>{if(typeof u=="string"){s(u)&&!i.includes(u)&&(o.delete(u),i.push(u));return}if(typeof u=="object"&&typeof u.id=="string"&&Array.isArray(u.content)&&!i.find(l=>typeof l=="string"?!1:l.id===u.id)){const l=u.content.filter(s);l.forEach(c=>o.delete(c)),i.push({...u,content:Array.from(new Set(l))})}}),o.forEach(u=>i.push(u)),i},Rne=t=>{const e=ge(),[n,r]=f.useState(()=>{var i;const o=(i=_d(e,tr.CinnySpaces))==null?void 0:i.getContent();return P_(e,t,o)});return f.useEffect(()=>{var i;const o=(i=_d(e,tr.CinnySpaces))==null?void 0:i.getContent();r(P_(e,t,o))},[e,t]),u3(e,f.useCallback(o=>{if(o.getType()===tr.CinnySpaces){const i=o.getContent();r(P_(e,t,i))}},[e,t])),[n,r]},One=(t,e)=>t.map(n=>{if(typeof n=="string")return n===e?null:n;if(n.content.includes(e)){const r=n.content.filter(o=>o!==e);return r.length===0?null:{...n,content:r}}return n}).filter(n=>n!==null),XT=(t,e)=>{var n;return{...((n=_d(t,tr.CinnySpaces))==null?void 0:n.getContent())??{},sidebar:e}};var M4="_1321e2t2",QUe="_1321e2t3",eVe=br({defaultClassName:"_1321e2t0",variantClassNames:{outlined:{true:"_1321e2t1"}},defaultVariants:{},compoundVariants:[]}),Mne="_1xrrjei0",P4="_1xrrjei1 _1mqalmd1 _1mqalmd0";function tVe(){return a.jsx(y,{gap:"200",alignItems:"Center",children:a.jsxs(y,{grow:"Yes",gap:"200",alignItems:"Center",className:QUe,children:[a.jsx(Rt,{className:Mne,size:"200",radii:"300"}),a.jsx(y,{className:P4,shrink:"No",style:{width:"100vw",maxWidth:Dt(120)}})]})})}function nVe({roomId:t,suggested:e}){return a.jsx(We,{as:"span",className:M4,variant:"Surface",size:"500",before:a.jsx(Rt,{size:"200",radii:"300",children:a.jsx(ho,{roomId:t,renderFallback:()=>a.jsx(x,{as:"span",size:"H6",children:"U"})})}),children:a.jsxs(y,{alignItems:"Center",gap:"200",children:[a.jsx(x,{size:"H4",truncate:!0,children:"Unknown"}),a.jsx(Bt,{variant:"Secondary",fill:"Soft",radii:"Pill",outlined:!0,children:a.jsx(x,{size:"L400",children:"Inaccessible"})}),e&&a.jsx(Bt,{variant:"Success",fill:"Soft",radii:"Pill",outlined:!0,children:a.jsx(x,{size:"L400",children:"Suggested"})})]})})}function rVe({roomId:t,via:e,name:n,avatarUrl:r,suggested:o}){const i=ge(),[s,u]=et(f.useCallback(()=>i.joinRoom(t,{viaServers:e}),[i,t,e])),l=s.status===he.Idle||s.status===he.Error;return a.jsx(We,{className:M4,variant:"Surface",size:"500",onClick:u,disabled:!l,before:a.jsx(Rt,{size:"200",radii:"300",children:a.jsx(ho,{roomId:t,src:r,alt:n,renderFallback:()=>a.jsx(x,{as:"span",size:"H6",children:Gi(n)})})}),after:l?a.jsx(Q,{src:$.Plus,size:"50"}):a.jsx(ot,{variant:"Secondary",size:"200"}),children:a.jsxs(y,{alignItems:"Center",gap:"200",children:[a.jsx(x,{size:"H4",truncate:!0,children:n||"Unknown"}),o&&a.jsx(Bt,{variant:"Success",fill:"Soft",radii:"Pill",outlined:!0,children:a.jsx(x,{size:"L400",children:"Suggested"})}),s.status===he.Error&&a.jsx(Bt,{variant:"Critical",fill:"Soft",radii:"Pill",outlined:!0,children:a.jsx(x,{size:"L400",truncate:!0,children:s.error.name})})]})})}function oVe({roomId:t,name:e,avatarUrl:n,suggested:r,closed:o,categoryId:i,handleClose:s}){return a.jsx(We,{"data-category-id":i,onClick:s,className:M4,variant:"Surface",size:"500",before:a.jsx(Rt,{size:"200",radii:"300",children:a.jsx(ho,{roomId:t,src:n,alt:e,renderFallback:()=>a.jsx(x,{as:"span",size:"H6",children:Gi(e)})})}),after:a.jsx(Q,{src:o?$.ChevronRight:$.ChevronBottom,size:"50"}),children:a.jsxs(y,{alignItems:"Center",gap:"200",children:[a.jsx(x,{size:"H4",truncate:!0,children:e}),r&&a.jsx(Bt,{variant:"Success",fill:"Soft",radii:"Pill",outlined:!0,children:a.jsx(x,{size:"L400",children:"Suggested"})})]})})}function iVe({closed:t,categoryId:e,handleClose:n}){return a.jsx(We,{"data-category-id":e,onClick:n,className:M4,variant:"Surface",size:"500",after:a.jsx(Q,{src:t?$.ChevronRight:$.ChevronBottom,size:"50"}),children:a.jsx(y,{alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H4",truncate:!0,children:"Rooms"})})})}function aVe({item:t}){const[e,n]=f.useState(),r=s=>{n(s.currentTarget.getBoundingClientRect())},o=()=>{s3(!1,t.roomId),n(void 0)},i=()=>{vW(t.roomId),n(void 0)};return a.jsx(Ut,{anchor:e,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>n(void 0),clickOutsideDeactivates:!0,isKeyForward:s=>s.key==="ArrowDown",isKeyBackward:s=>s.key==="ArrowUp",escapeDeactivates:vt},children:a.jsxs(zt,{style:{padding:le.space.S100},children:[a.jsx(tt,{size:"300",radii:"300",variant:"Primary",fill:"None",onClick:o,children:a.jsx(x,{size:"T300",children:"New Room"})}),a.jsx(tt,{size:"300",radii:"300",fill:"None",onClick:i,children:a.jsx(x,{size:"T300",children:"Existing Room"})})]})}),children:a.jsx(We,{variant:"Primary",radii:"Pill",before:a.jsx(Q,{src:$.Plus,size:"50"}),onClick:r,"aria-pressed":!!e,children:a.jsx(x,{size:"B300",children:"Add Room"})})})}function sVe({item:t}){const[e,n]=f.useState(),r=s=>{n(s.currentTarget.getBoundingClientRect())},o=()=>{s3(!0,t.roomId),n(void 0)},i=()=>{vW(t.roomId,!0),n(void 0)};return a.jsx(Ut,{anchor:e,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>n(void 0),clickOutsideDeactivates:!0,isKeyForward:s=>s.key==="ArrowDown",isKeyBackward:s=>s.key==="ArrowUp",escapeDeactivates:vt},children:a.jsxs(zt,{style:{padding:le.space.S100},children:[a.jsx(tt,{size:"300",radii:"300",variant:"Primary",fill:"None",onClick:o,children:a.jsx(x,{size:"T300",children:"New Space"})}),a.jsx(tt,{size:"300",radii:"300",fill:"None",onClick:i,children:a.jsx(x,{size:"T300",children:"Existing Space"})})]})}),children:a.jsx(We,{variant:"SurfaceVariant",radii:"Pill",before:a.jsx(Q,{src:$.Plus,size:"50"}),onClick:r,"aria-pressed":!!e,children:a.jsx(x,{size:"B300",children:"Add Space"})})})}const uVe=Ie(({className:t,summary:e,loading:n,joined:r,closed:o,categoryId:i,item:s,handleClose:u,options:l,before:c,after:d,canEditChild:F,canReorder:h,onDragging:m,getRoom:D,...g},p)=>{const _=ge(),v=Tt(),{roomId:E,content:b}=s,k=D(E),C=f.useRef(null);return Bne(s,C,m),a.jsxs(y,{shrink:"No",alignItems:"Center",gap:"200",className:Ve(eVe({outlined:!r||o}),t),...g,ref:p,children:[c,a.jsxs(y,{grow:"Yes",gap:"100",alignItems:"Inherit",justifyContent:"SpaceBetween",children:[a.jsx(y,{ref:h?C:null,children:k?a.jsx(GJ,{room:k,children:S=>s.parentId?a.jsx(oVe,{roomId:E,name:S.name,avatarUrl:Hl(_,k,96,v),suggested:b.suggested,closed:o,categoryId:i,handleClose:u}):a.jsx(iVe,{closed:o,categoryId:i,handleClose:u})}):a.jsxs(a.Fragment,{children:[!e&&(n?a.jsx(tVe,{}):a.jsx(nVe,{roomId:s.roomId,suggested:s.content.suggested})),e&&a.jsx(rVe,{roomId:E,via:s.content.via,name:e.name||e.canonical_alias||E,avatarUrl:e!=null&&e.avatar_url?Xt(_,e.avatar_url,v,96,96,"crop")??void 0:void 0,suggested:b.suggested})]})}),F&&a.jsxs(y,{shrink:"No",alignItems:"Inherit",gap:"200",children:[a.jsx(aVe,{item:s}),s.parentId===void 0&&a.jsx(sVe,{item:s})]})]}),l,d]})});function lVe({item:t,requestClose:e}){const n=ge(),{roomId:r,parentId:o,content:i}=t,[s,u]=et(f.useCallback(()=>{const l={...i,suggested:!i.suggested};return n.sendStateEvent(o,Re.SpaceChild,l,r)},[n,o,r,i]));return f.useEffect(()=>{s.status===he.Success&&e()},[e,s]),a.jsx(tt,{onClick:u,size:"300",radii:"300",before:s.status===he.Loading&&a.jsx(ot,{size:"100"}),disabled:s.status===he.Loading,children:a.jsx(x,{as:"span",size:"T300",truncate:!0,children:i.suggested?"Unset Suggested":"Set Suggested"})})}function cVe({item:t,requestClose:e}){const n=ge(),{roomId:r,parentId:o}=t,[i,s]=et(f.useCallback(()=>n.sendStateEvent(o,Re.SpaceChild,{},r),[n,o,r]));return f.useEffect(()=>{i.status===he.Success&&e()},[e,i]),a.jsx(tt,{onClick:s,variant:"Critical",fill:"None",size:"300",radii:"300",before:i.status===he.Loading&&a.jsx(ot,{variant:"Critical",fill:"Soft",size:"100"}),disabled:i.status===he.Loading,children:a.jsx(x,{as:"span",size:"T300",truncate:!0,children:"Remove"})})}function dVe({item:t,requestClose:e,disabled:n}){const r=()=>{Au(t.roomId),e()};return a.jsx(tt,{onClick:r,size:"300",radii:"300",variant:"Primary",fill:"None",disabled:n,children:a.jsx(x,{as:"span",size:"T300",truncate:!0,children:"Invite"})})}function hVe({item:t,requestClose:e,disabled:n}){const r=NS(),o=My(),i=m3(),s=()=>{"space"in t?o(t.roomId,t.parentId):r(t.roomId,i==null?void 0:i.roomId),e()};return a.jsx(tt,{onClick:s,size:"300",radii:"300",disabled:n,children:a.jsx(x,{as:"span",size:"T300",truncate:!0,children:"Settings"})})}function Pne({item:t,joined:e,canInvite:n,canEditChild:r,pinned:o,onTogglePin:i}){const[s,u]=f.useState(),l=d=>{u(d.currentTarget.getBoundingClientRect())},c=f.useCallback(()=>u(void 0),[]);return!e&&!r?null:a.jsxs(y,{gap:"200",alignItems:"Center",shrink:"No",children:[a.jsx(Me,{onClick:l,size:"300",variant:"SurfaceVariant",fill:"None",radii:"300","aria-pressed":!!s,children:a.jsx(Q,{size:"50",src:$.VerticalDots})}),s&&a.jsx(Ut,{anchor:s,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>u(void 0),clickOutsideDeactivates:!0,isKeyForward:d=>d.key==="ArrowDown",isKeyBackward:d=>d.key==="ArrowUp",escapeDeactivates:vt},children:a.jsxs(zt,{style:{maxWidth:Dt(150),width:"100vw"},children:[e&&a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[i&&a.jsx(tt,{size:"300",radii:"300",onClick:()=>{i(t.roomId),c()},children:a.jsx(x,{as:"span",size:"T300",truncate:!0,children:o?"Unpin from Sidebar":"Pin to Sidebar"})}),a.jsx(dVe,{item:t,requestClose:c,disabled:!n}),a.jsx(hVe,{item:t,requestClose:c}),a.jsx(Oo,{initial:!1,children:(d,F)=>a.jsxs(a.Fragment,{children:[a.jsx(tt,{onClick:()=>F(!0),variant:"Critical",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.ArrowGoLeft}),radii:"300","aria-pressed":d,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Leave"})}),d&&("space"in t?a.jsx(FA,{roomId:t.roomId,onDone:c,onCancel:()=>F(!1)}):a.jsx(RS,{roomId:t.roomId,onDone:c,onCancel:()=>F(!1)}))]})})]}),(e||r)&&a.jsx(jn,{size:"300",variant:"Surface",direction:"Horizontal"}),r&&a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[a.jsx(lVe,{item:t,requestClose:c}),a.jsx(cVe,{item:t,requestClose:c})]})]})})})]})}var FVe="_7ry8262",mVe="_7ry8260",DVe="_7ry8261";function QT({roomId:t,via:e}){var s;const n=ge(),[r,o]=et(f.useCallback(()=>n.joinRoom(t,{viaServers:e}),[n,t,e])),i=r.status===he.Idle||r.status===he.Error;return a.jsxs(y,{shrink:"No",gap:"200",alignItems:"Center",children:[r.status===he.Error&&a.jsx(Br,{tooltip:a.jsx(Ao,{variant:"Critical",style:{maxWidth:Dt(200)},children:a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{style:{wordBreak:"break-word"},size:"T400",children:((s=r.error.data)==null?void 0:s.error)||r.error.message}),a.jsx(x,{size:"T200",children:r.error.name})]})}),children:u=>{var l;return a.jsx(Q,{ref:u,style:{color:ct.Critical.Main,cursor:"pointer"},src:$.Warning,size:"400",filled:!0,tabIndex:0,"aria-label":((l=r.error.data)==null?void 0:l.error)||r.error.message})}}),a.jsx(We,{variant:"Secondary",fill:"Soft",size:"400",radii:"Pill",before:i?a.jsx(Q,{src:$.Plus,size:"50"}):a.jsx(ot,{variant:"Secondary",size:"100"}),onClick:o,disabled:!i,children:a.jsx(x,{size:"B300",children:"Join"})})]})}function gVe(){return a.jsxs(y,{grow:"Yes",gap:"300",children:[a.jsx(Rt,{className:Mne}),a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(y,{gap:"200",alignItems:"Center",children:a.jsx(y,{className:P4,shrink:"No",style:{maxWidth:Dt(80)}})}),a.jsxs(y,{gap:"200",alignItems:"Center",children:[a.jsx(y,{className:P4,shrink:"No",style:{maxWidth:Dt(40)}}),a.jsx(y,{className:P4,shrink:"No",style:{maxWidth:Dt(120)}})]})]})]})}function Lne({roomId:t,suggested:e,inaccessibleRoom:n,via:r}){return a.jsxs(y,{grow:"Yes",gap:"300",children:[a.jsx(Rt,{children:a.jsx(ho,{roomId:t,src:void 0,alt:t,renderFallback:()=>a.jsx(ts,{size:"300",joinRule:n?un.Invite:un.Restricted,filled:!0})})}),a.jsxs(y,{grow:"Yes",direction:"Column",className:FVe,children:[a.jsxs(y,{gap:"200",alignItems:"Center",children:[a.jsx(x,{size:"H5",truncate:!0,children:"Unknown"}),e&&a.jsx(y,{shrink:"No",alignItems:"Center",children:a.jsx(Bt,{variant:"Success",fill:"Soft",radii:"Pill",outlined:!0,children:a.jsx(x,{size:"L400",children:"Suggested"})})})]}),a.jsx(y,{gap:"200",alignItems:"Center",children:n?a.jsx(Bt,{variant:"Secondary",fill:"Soft",radii:"300",size:"500",children:a.jsx(x,{size:"L400",children:"Inaccessible"})}):a.jsx(x,{size:"T200",truncate:!0,children:t})})]}),!n&&a.jsx(QT,{roomId:t,via:r})]})}function Nne({roomId:t,name:e,topic:n,avatarUrl:r,suggested:o,memberCount:i,joinRule:s,options:u}){return a.jsxs(y,{grow:"Yes",gap:"300",children:[a.jsx(Rt,{children:a.jsx(ho,{roomId:t,src:r,alt:e,renderFallback:()=>a.jsx(ts,{size:"300",joinRule:s??un.Restricted,filled:!0})})}),a.jsxs(y,{grow:"Yes",direction:"Column",children:[a.jsxs(y,{gap:"200",alignItems:"Center",children:[a.jsx(x,{size:"H5",truncate:!0,children:e}),o&&a.jsx(y,{shrink:"No",alignItems:"Center",children:a.jsx(Bt,{variant:"Success",fill:"Soft",radii:"Pill",outlined:!0,children:a.jsx(x,{size:"L400",children:"Suggested"})})})]}),a.jsxs(y,{gap:"200",alignItems:"Center",children:[i&&a.jsx(y,{shrink:"No",gap:"200",children:a.jsx(x,{size:"T200",priority:"300",children:`${pE(i)} Members`})}),i&&n&&a.jsx(jn,{variant:"SurfaceVariant",style:{height:Dt(12)},direction:"Vertical",size:"400"}),n&&a.jsx(Oo,{initial:!1,children:(l,c)=>a.jsxs(a.Fragment,{children:[a.jsx(x,{className:DVe,size:"T200",priority:"300",truncate:!0,onClick:()=>c(!0),onKeyDown:gp(()=>c(!0)),tabIndex:0,children:n}),a.jsx(Rn,{open:l,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,clickOutsideDeactivates:!0,onDeactivate:()=>c(!1),escapeDeactivates:vt},children:a.jsx(e1,{name:e,topic:n,requestClose:()=>c(!1)})})})})]})})]})]}),u]})}const pVe=Ie(({item:t,loading:e,error:n,summary:r,dm:o,onOpen:i,options:s,before:u,after:l,onDragging:c,canReorder:d,getRoom:F,...h},m)=>{const D=ge(),g=Tt(),{roomId:p,content:_}=t,v=F(p),E=f.useRef(null),b=f.useRef(null);Bne(t,E,c,b);const k=(v==null?void 0:v.getMyMembership())===$n.Join;return a.jsxs(rt,{className:mVe,variant:"SurfaceVariant",gap:"300",alignItems:"Center",...h,ref:m,children:[u,a.jsxs(y,{ref:d?E:null,grow:"Yes",children:[d&&a.jsx(KUe,{ref:b}),v?a.jsx(GJ,{room:v,children:C=>a.jsx(Nne,{roomId:p,name:C.name,topic:C.topic,avatarUrl:o?DC(D,v,96,g):Hl(D,v,96,g),memberCount:C.memberCount,suggested:_.suggested,joinRule:C.joinRule,options:k?a.jsx(y,{shrink:"No",gap:"100",alignItems:"Center",children:a.jsx(We,{"data-room-id":p,onClick:i,variant:"Secondary",fill:"None",size:"400",radii:"Pill","aria-label":"Open Room",children:a.jsx(Q,{size:"50",src:$.ArrowRight})})}):a.jsx(QT,{roomId:p,via:_.via})})}):a.jsxs(a.Fragment,{children:[!r&&(n?a.jsx(Lne,{roomId:p,inaccessibleRoom:!1,suggested:_.suggested,via:_.via}):a.jsxs(a.Fragment,{children:[e&&a.jsx(gVe,{}),!e&&a.jsx(Lne,{roomId:p,inaccessibleRoom:!0,suggested:_.suggested,via:_.via})]})),r&&a.jsx(Nne,{roomId:p,name:r.name||r.canonical_alias||p,topic:r.topic,avatarUrl:r!=null&&r.avatar_url?Xt(D,r.avatar_url,g,96,96,"crop")??void 0:void 0,memberCount:r.num_joined_members,suggested:_.suggested,joinRule:r.join_rule,options:a.jsx(QT,{roomId:p,via:_.via})})]})]}),s,l]})}),fVe=f.forwardRef(({summary:t,spaceItem:e,roomItems:n,allJoinedRooms:r,mDirects:o,roomsPowerLevels:i,canEditSpaceChild:s,categoryId:u,closed:l,handleClose:c,draggingItem:d,onDragging:F,canDrop:h,disabledReorder:m,nextSpaceId:D,getRoom:g,pinned:p,togglePinToSidebar:_,onOpenRoom:v,onSpacesFound:E},b)=>{var L;const k=ge(),{fetching:C,error:S,rooms:w}=tje(e.roomId,!0),A=f.useMemo(()=>{const U=new Map;return w.forEach(te=>{te.room_type===yf.Space&&U.set(te.room_id,te)}),U},[w]),O=i.get(e.roomId)??{},j=mr.getPowerLevel(O,k.getUserId()??void 0),R=mr.canDoAction(O,"invite",j),M=(d==null?void 0:d.roomId)===e.roomId&&d.parentId===e.parentId,{parentId:z}=e,T=z?i.get(z)??{}:void 0;f.useEffect(()=>{E(Array.from(A.values()))},[A,E]);let P=n==null?void 0:n.filter(U=>!A.has(U.roomId));return s(O)||(P=P==null?void 0:P.filter(U=>{const te=S instanceof tn?S.errcode==="M_FORBIDDEN":!1;return!(!w.get(U.roomId)&&!C&&(!S||te))})),a.jsxs(y,{direction:"Column",gap:"100",ref:b,children:[a.jsx(uVe,{summary:w.get(e.roomId)??t,loading:C,item:e,joined:r.has(e.roomId),categoryId:u,closed:l,handleClose:c,getRoom:g,canEditChild:s(O),canReorder:T&&!m?s(T):!1,options:z&&T&&a.jsx(Pne,{item:{...e,parentId:z},canInvite:R,joined:r.has(e.roomId),canEditChild:s(T),pinned:p,onTogglePin:_}),after:a.jsx(Ane,{item:e,nextRoomId:l?D:(L=P==null?void 0:P[0])==null?void 0:L.roomId,afterSpace:!0,canDrop:h}),onDragging:F,"data-dragging":M}),P&&P.length>0?a.jsx(y,{direction:"Column",gap:"100",children:P.map((U,te)=>{var q;const ae=w.get(U.roomId),Fe=i.get(U.roomId)??{},re=mr.getPowerLevel(Fe,k.getUserId()??void 0),ce=mr.canDoAction(Fe,"invite",re),K=te===P.length?D:(q=P[te+1])==null?void 0:q.roomId,H=(d==null?void 0:d.roomId)===U.roomId&&d.parentId===U.parentId;return a.jsx(pVe,{item:U,loading:C,error:S,summary:ae,dm:o.has(U.roomId),onOpen:v,getRoom:g,canReorder:s(O)&&!m,options:a.jsx(Pne,{item:U,canInvite:ce,joined:r.has(U.roomId),canEditChild:s(O)}),after:a.jsx(Ane,{item:U,nextRoomId:K,canDrop:h}),"data-dragging":H,onDragging:F},U.roomId)})}):P&&a.jsx(rt,{variant:"SurfaceVariant",gap:"300",alignItems:"Center",children:a.jsxs(y,{grow:"Yes",style:{padding:le.space.S700},direction:"Column",alignItems:"Center",justifyContent:"Center",gap:"100",children:[a.jsx(x,{size:"H5",align:"Center",children:"No Rooms"}),a.jsx(x,{align:"Center",size:"T300",priority:"300",children:"This space does not contains rooms yet."})]})})]})}),zne=()=>{const t=_t(nr);return f.useMemo(()=>new Set(t),[t])},eI=t=>{const e=ge();return f.useCallback(n=>{if(t.has(n))return e.getRoom(n)??void 0},[e,t])},_Ve=(t,e,n,r)=>{const o=ge(),i=f.useCallback((u,l)=>{if(!("space"in l.item))return!1;const c=t.roomId;return!(n(c)===void 0||!r(e.get(c)??{}))},[t,e,n,r]),s=f.useCallback((u,l)=>{var h;const c="space"in l.item?l.item.roomId:l.item.parentId,d=u.parentId!==c,F=((h=o.getRoom(u.roomId))==null?void 0:h.getJoinRule())===un.Restricted;if(d&&F){const m=e.get(u.roomId)??{},D=mr.getPowerLevel(m,o.getUserId()??void 0);if(!mr.canSendStateEvent(m,Re.RoomJoinRules,D))return!1}return!(n(c)===void 0||!r(e.get(c)??{}))},[o,n,r,e]);return f.useCallback((u,l)=>u.roomId===l.item.roomId||u.roomId===l.nextRoomId?!1:"space"in u?i(u,l):s(u,l),[i,s])};function vVe(){const t=Xr(),e=ge(),n=_t(Co),r=_t(nr),o=f.useMemo(()=>new Set(r),[r]),i=Nh(),s=Bi(i),u=f.useMemo(()=>new YUe(32,126,6),[]),l=f4(e,i.roomId),c=f.useRef(null),d=f.useRef(null),[F,h]=f.useState(),[m,D]=Yi(kze),[g]=Ft(ut,"isPeopleDrawer"),p=Wr(),[_,v]=f.useState(!0),[E,b]=Yi(XUe()),[k]=Rne(IW(e,nr,_t(lo))),C=f.useMemo(()=>{const X=k.flatMap(ee=>typeof ee=="string"?ee:ee.content);return new Set(X)},[k]),[S,w]=f.useState(()=>new Map);p3(f.useCallback(()=>d.current,[]),f.useCallback((X,ee)=>h(ee),[]));const A=eI(o),O=f.useCallback(X=>mr.canSendStateEvent(X,Re.SpaceChild,mr.getPowerLevel(X,e.getUserId()??void 0)),[e]),[j,R]=f.useState(),M=JSe(i.roomId,m,A,f.useCallback(X=>E.has(tne(i.roomId,X))||(j?"space"in j:!1),[E,i.roomId,j])),z=Ru({count:M.length,getScrollElement:()=>c.current,estimateSize:()=>1,overscan:2,paddingStart:F??258}),T=z.getVirtualItems(),P=xEe(f.useMemo(()=>M.flatMap(X=>{const ee=Array.isArray(X.rooms)?X.rooms.map(J=>e.getRoom(J.roomId)):[];return[e.getRoom(X.space.roomId),...ee]}).filter(X=>!!X),[e,M])),L=_Ve(i,P,A,O),[U,te]=et(f.useCallback(async(X,ee)=>{var Ae;if(!X.parentId)return;const J=M.map(ye=>ye.space).filter(ye=>ye.roomId!==X.roomId),de=J.findIndex(ye=>ye.roomId===ee.roomId)+1;J.splice(de,0,{...X,content:{...X.content,order:void 0}});const ue=J.map(ye=>{if(typeof ye.content.order=="string"&&u.has(ye.content.order))return ye.content.order}),De=(Ae=Tne(u,ue))==null?void 0:Ae.map((ye,He)=>({item:J[He],orderKey:ye})).filter((ye,He)=>{if(!ye.item.parentId)return!1;const ze=P.get(ye.item.parentId);return ze&&O(ze)&&ye.orderKey!==ue[He]});De&&await $l(De,async ye=>{ye.item.parentId&&await e.sendStateEvent(ye.item.parentId,Re.SpaceChild,{...ye.item.content,order:ye.orderKey},ye.item.roomId)})},[e,M,u,P,O])),ae=U.status===he.Loading,[Fe,re]=et(f.useCallback(async(X,ee)=>{var Ne,Oe,Ue,nt;const J=e.getRoom(X.roomId);if(!X.parentId)return;const de="space"in ee?ee.roomId:ee.parentId,ue=X.content;if(X.parentId!==de&&e.sendStateEvent(X.parentId,Re.SpaceChild,{},X.roomId),J&&J.getJoinRule()===un.Restricted&&X.parentId!==de){const _e=(Ne=so(J,Re.RoomJoinRules))==null?void 0:Ne.getContent();if(_e){const xt=((Oe=_e.allow)==null?void 0:Oe.filter(hn=>hn.room_id!==X.parentId))??[];xt.push({type:Pb.RoomMembership,room_id:de}),e.sendStateEvent(J.roomId,Re.RoomJoinRules,{..._e,allow:xt})}}const De=Array.from(((Ue=M==null?void 0:M.find(_e=>_e.space.roomId===de))==null?void 0:Ue.rooms)??[]),Ae="space"in ee?void 0:ee,ye=De.findIndex(_e=>_e.roomId===(Ae==null?void 0:Ae.roomId))+1;De.splice(ye,0,{...X,parentId:de,content:{...ue,order:void 0}});const He=De.map(_e=>{if(typeof _e.content.order=="string"&&u.has(_e.content.order))return _e.content.order}),ze=(nt=Tne(u,He))==null?void 0:nt.map((_e,xt)=>({item:De[xt],orderKey:_e})).filter((_e,xt)=>_e.item&&_e.orderKey!==He[xt]);ze&&await $l(ze,async _e=>{await e.sendStateEvent(de,Re.SpaceChild,{..._e.item.content,order:_e.orderKey},_e.item.roomId)})},[e,M,u])),ce=Fe.status===he.Loading||ae;GUe(c,R,f.useCallback((X,ee)=>{L(X,ee)&&("space"in X?te(X,ee.item):re(X,ee.item))},[re,te,L]));const K=f.useCallback(X=>{D({type:"PUT",roomIds:X.map(ee=>ee.room_id)}),w(ee=>{const J=po(ee,de=>{X.forEach(ue=>de.set(ue.room_id,ue))});return ee.size===J.size?ee:J})},[D]),H=bE(b,X=>E.has(X)),q=X=>{const ee=X.currentTarget.getAttribute("data-room-id");if(!ee)return;const J=vo(e,i.roomId);t(CC(J,vo(e,ee)))},V=f.useCallback(X=>{const ee=One(k,X);C.has(X)||ee.push(X);const J=XT(e,ee);e.setAccountData(tr.CinnySpaces,J)},[e,k,C]);return a.jsx(oK,{value:s,children:a.jsxs(y,{grow:"Yes",children:[a.jsxs(ur,{children:[a.jsx(Bze,{showProfile:!_,powerLevels:P.get(i.roomId)??{}}),a.jsx(y,{style:{position:"relative"},grow:"Yes",children:a.jsx(Mt,{ref:c,hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(zh,{children:[a.jsx(f3,{scrollRef:c,anchorRef:d,onVisibilityChange:v,children:a.jsx(Me,{onClick:()=>z.scrollToOffset(0),variant:"SurfaceVariant",radii:"Pill",outlined:!0,size:"300","aria-label":"Scroll to Top",children:a.jsx(Q,{src:$.ChevronTop,size:"300"})})}),a.jsxs("div",{style:{position:"relative",height:z.getTotalSize()},children:[a.jsx(Od,{ref:d,style:{paddingTop:0},children:a.jsx(Tze,{})}),T.map(X=>{var ue;const ee=M[X.index];if(!ee)return null;const J=(ue=M[X.index+1])==null?void 0:ue.space.roomId,de=tne(i.roomId,ee.space.roomId);return a.jsx(Hs,{virtualItem:X,style:{paddingTop:X.index===0?0:le.space.S500},ref:z.measureElement,children:a.jsx(fVe,{spaceItem:ee.space,summary:S.get(ee.space.roomId),roomItems:ee.rooms,allJoinedRooms:o,mDirects:n,roomsPowerLevels:P,canEditSpaceChild:O,categoryId:de,closed:E.has(de)||(j?"space"in j:!1),handleClose:H,draggingItem:j,onDragging:R,canDrop:L,disabledReorder:ce,nextSpaceId:J,getRoom:A,pinned:C.has(ee.space.roomId),togglePinToSidebar:V,onSpacesFound:K,onOpenRoom:q})},X.index)})]}),ce&&a.jsx(y,{style:{position:"absolute",bottom:le.space.S400,left:0,right:0,zIndex:2,pointerEvents:"none"},justifyContent:"Center",children:a.jsx(We,{variant:"Secondary",outlined:!0,radii:"Pill",before:a.jsx(ot,{variant:"Secondary",fill:"Soft",size:"100"}),children:a.jsx(x,{size:"L400",children:"Reordering"})})})]})})})})]}),p===en.Desktop&&g&&a.jsxs(a.Fragment,{children:[a.jsx(jn,{variant:"Background",direction:"Vertical",size:"300"}),a.jsx(ene,{room:i,members:l})]})]})})}var bVe="_1ho1fyw0 _1mqalmd1 _1mqalmd0",CVe=br({defaultClassName:"_1ho1fyw9",variantClassNames:{size:{200:"_1ho1fywa",300:"_1ho1fywb",400:"_1ho1fywc"},outlined:{true:"_1ho1fywd"}},defaultVariants:{size:"400"},compoundVariants:[]}),EVe=br({defaultClassName:"_1ho1fywe _1mqalmd1 _1mqalmd0 _1rwrsxz1 _1bugis90 _1ho1fyw3",variantClassNames:{state:{Close:"_1ho1fywf",Open:"_1ho1fywg"}},defaultVariants:{state:"Close"},compoundVariants:[]}),yVe=br({defaultClassName:"_1ho1fywh",variantClassNames:{position:{Top:"_1ho1fywi",Bottom:"_1ho1fywj"}},defaultVariants:{},compoundVariants:[]}),xVe=br({defaultClassName:"_1ho1fyw4 _1mqalmd1 _1mqalmd0 _1bugis91 _1ho1fyw3",variantClassNames:{active:{true:"_1ho1fyw5"}},defaultVariants:{},compoundVariants:[]}),wVe=br({defaultClassName:"_1ho1fyw6 _1mqalmd1 _1mqalmd0",variantClassNames:{hasCount:{true:"_1ho1fyw7",false:"_1ho1fyw8"}},defaultVariants:{hasCount:!1},compoundVariants:[]}),kVe="_1ho1fyw1 _1mqalmd1 _1mqalmd0";const SVe=Ie(({as:t="div",className:e,...n},r)=>a.jsx(t,{className:Ve(bVe,e),...n,ref:r})),tl=Ie(({as:t="div",className:e,active:n,...r},o)=>a.jsx(t,{className:Ve(xVe({active:n}),e),...r,ref:o})),wD=Ie(({as:t="div",className:e,hasCount:n,...r},o)=>a.jsx(t,{className:Ve(wVe({hasCount:n}),e),...r,ref:o}));function nl({tooltip:t,children:e}){return t?a.jsx(Br,{delay:400,position:"Right",tooltip:a.jsx(Ao,{style:{maxWidth:Dt(280)},children:a.jsx(x,{size:"H5",children:t})}),children:e}):e(()=>{})}const Qs=Ie(({className:t,size:e,outlined:n,radii:r,...o},i)=>a.jsx(Rt,{className:Ve(CVe({size:e,outlined:n}),t),radii:r,...o,ref:i})),Une=Ie(({as:t="div",className:e,state:n,...r},o)=>a.jsx(t,{className:Ve(EVe({state:n}),e),...r,ref:o})),Vne=Ie(({as:t="div",className:e,position:n,...r},o)=>a.jsx(t,{className:Ve(yVe({position:n}),e),...r,ref:o}));function jVe({scrollable:t,sticky:e}){return a.jsxs(a.Fragment,{children:[a.jsx(y,{direction:"Column",grow:"Yes",children:t}),a.jsx(y,{direction:"Column",shrink:"No",children:e})]})}const L4=Ie(({as:t="div",className:e,...n},r)=>a.jsx(t,{className:Ve(kVe,e),...n,ref:r}));function tI(){return a.jsx(jn,{role:"separator",style:{width:Dt(24),margin:"0 auto"},variant:"Background",size:"300"})}const BVe=f.forwardRef(({requestClose:t},e)=>{const n=F3(),[r]=Ft(ut,"hideActivity"),o=Ql(n,co),i=ge(),s=()=>{o&&(n.forEach(u=>ta(i,u,r)),t())};return a.jsx(zt,{ref:e,style:{maxWidth:Dt(160),width:"100vw"},children:a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:a.jsx(tt,{onClick:s,size:"300",after:a.jsx(Q,{size:"100",src:$.CheckTwice}),radii:"300","aria-disabled":!o,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Mark as Read"})})})})});function AVe(){const t=Xr(),e=ge(),n=Wr(),r=_t(Sm()),o=_t(Co),i=_t(lo),s=RW(e,nr,o,i),u=Ql(s,co),l=lEe(),[c,d]=f.useState(),F=()=>{const m=r.get("home");if(m&&n!==en.Mobile){t(Af(m));return}t(Eh())},h=m=>{m.preventDefault();const D=m.currentTarget.getBoundingClientRect();d(g=>{if(!g)return D})};return a.jsxs(tl,{active:l,children:[a.jsx(nl,{tooltip:"Home",children:m=>a.jsx(Qs,{as:"button",ref:m,outlined:!0,onClick:F,onContextMenu:h,children:a.jsx(Q,{src:$.Home,filled:l})})}),u&&a.jsx(wD,{hasCount:u.total>0,children:a.jsx(Ph,{highlight:u.highlight>0,count:u.total})}),c&&a.jsx(Ut,{anchor:c,position:"Right",align:"Start",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>d(void 0),clickOutsideDeactivates:!0,isKeyForward:m=>m.key==="ArrowDown",isKeyBackward:m=>m.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(BVe,{requestClose:()=>d(void 0)})})})]})}const TVe=()=>!!gi({path:vC(),caseSensitive:!0,end:!1}),IVe=f.forwardRef(({requestClose:t},e)=>{const n=i_(),[r]=Ft(ut,"hideActivity"),o=Ql(n,co),i=ge(),s=()=>{o&&(n.forEach(u=>ta(i,u,r)),t())};return a.jsx(zt,{ref:e,style:{maxWidth:Dt(160),width:"100vw"},children:a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:a.jsx(tt,{onClick:s,size:"300",after:a.jsx(Q,{size:"100",src:$.CheckTwice}),radii:"300","aria-disabled":!o,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Mark as Read"})})})})});function RVe(){const t=Xr(),e=ge(),n=Wr(),r=_t(Sm()),o=_t(Co),i=sE(e,nr,o),s=Ql(i,co),[u,l]=f.useState(),c=TVe(),d=()=>{const h=r.get("direct");if(h&&n!==en.Mobile){t(Af(h));return}t(vC())},F=h=>{h.preventDefault();const m=h.currentTarget.getBoundingClientRect();l(D=>{if(!D)return m})};return a.jsxs(tl,{active:c,children:[a.jsx(nl,{tooltip:"Direct Messages",children:h=>a.jsx(Qs,{as:"button",ref:h,outlined:!0,onClick:d,onContextMenu:F,children:a.jsx(Q,{src:$.User,filled:c})})}),s&&a.jsx(wD,{hasCount:s.total>0,children:a.jsx(Ph,{highlight:s.highlight>0,count:s.total})}),u&&a.jsx(Ut,{anchor:u,position:"Right",align:"Start",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>l(void 0),clickOutsideDeactivates:!0,isKeyForward:h=>h.key==="ArrowDown",isKeyBackward:h=>h.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(IVe,{requestClose:()=>l(void 0)})})})]})}var OVe=["block"];function qne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Hne(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qne(Object(n),!0).forEach(function(r){I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qne(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var $ne=Symbol("tree-item-instruction");function MVe(t){return{x:(t.right+t.left)/2,y:(t.bottom+t.top)/2}}function nI(t){var e=t.client,n=t.borderBox,r=n.height/4;return e.y<=n.top+r?"reorder-above":e.y>=n.bottom-r?"reorder-below":"make-child"}function PVe(t){var e=t.element,n=t.input,r=t.currentLevel,o=t.indentPerLevel,i=t.mode,s={x:n.clientX,y:n.clientY},u=e.getBoundingClientRect();if(i==="standard"){var l=nI({borderBox:u,client:s});return{type:l,indentPerLevel:o,currentLevel:r}}var c=MVe(u);if(i==="expanded"){var d=nI({borderBox:u,client:s});return{type:d==="reorder-above"?d:"make-child",indentPerLevel:o,currentLevel:r}}var F=o*r;if(s.x<u.left+F){if(s.y<c.y)return{type:"reorder-above",indentPerLevel:o,currentLevel:r};var h=(s.x-u.left)/o,m=Math.max(Math.floor(h),0);return{type:"reparent",desiredLevel:m,indentPerLevel:o,currentLevel:r}}return{type:nI({borderBox:u,client:s}),indentPerLevel:o,currentLevel:r}}function LVe(t,e){var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length!==r.length?!1:n.every(function(o){return t[o]===e[o]})}function Wne(t,e){return t.type!==e.type?!1:t.type==="instruction-blocked"&&e.type==="instruction-blocked"?Wne(t.desired,e.desired):LVe(t,e)}var NVe=function(){var t=null;return function(e){return t&&Wne(t,e)?t:(t=e,e)}}();function zVe(t){var e=t.desired,n=t.block;if(n!=null&&n.includes(e.type)&&e.type!=="instruction-blocked"){var r={type:"instruction-blocked",desired:e};return r}return e}function UVe(t,e){var n=e.block,r=rU(e,OVe),o=PVe(r),i=zVe({desired:o,block:n}),s=NVe(i);return Hne(Hne({},t),{},I({},$ne,s))}function VVe(t){var e;return(e=t[$ne])!==null&&e!==void 0?e:null}function qVe({roomId:t,children:e}){const n=km(t,co);return e(n)}function HVe({rooms:t,children:e}){const n=Ql(t,co);return e(n)}const Kne=f.createContext(null),$Ve=Kne.Provider,WVe=()=>{const t=f.useContext(Kne);if(!t)throw new Error("OpenedSidebarFolderAtom is not provided!");return t},KVe=f.forwardRef(({room:t,requestClose:e,onUnpin:n},r)=>{const o=ge(),[i]=Ft(ut,"hideActivity"),s=_t(lo),u=Bi(t),{getPowerLevel:l,canDoAction:c}=yo(u),d=c("invite",l(o.getUserId()??"")),F=My(),h=aE(nr,t.roomId,TW(o,s)),m=Ql(h,co),D=()=>{h.forEach(E=>ta(o,E,i)),e()},g=()=>{n==null||n(t.roomId),e()},p=()=>{const E=vo(o,t.roomId),b=Rs(E)?void 0:wd(t);Vl(_E(E,b)),e()},_=()=>{Au(t.roomId),e()},v=()=>{F(t.roomId),e()};return a.jsxs(zt,{ref:r,style:{maxWidth:Dt(160),width:"100vw"},children:[a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[a.jsx(tt,{onClick:D,size:"300",after:a.jsx(Q,{size:"100",src:$.CheckTwice}),radii:"300",disabled:!m,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Mark as Read"})}),n&&a.jsx(tt,{size:"300",radii:"300",onClick:g,after:a.jsx(Q,{size:"100",src:$.Pin}),children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Unpin"})})]}),a.jsx(jn,{variant:"Surface",size:"300"}),a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[a.jsx(tt,{onClick:_,variant:"Primary",fill:"None",size:"300",after:a.jsx(Q,{size:"100",src:$.UserPlus}),radii:"300",disabled:!d,children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Invite"})}),a.jsx(tt,{onClick:p,size:"300",after:a.jsx(Q,{size:"100",src:$.Link}),radii:"300",children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Copy Link"})}),a.jsx(tt,{onClick:v,size:"300",after:a.jsx(Q,{size:"100",src:$.Setting}),radii:"300",children:a.jsx(x,{style:{flexGrow:1},as:"span",size:"T300",truncate:!0,children:"Space Settings"})})]})]})}),Gne=(t,e,n,r)=>{const[o,i]=f.useState(!1);return f.useEffect(()=>{const s=e.current;return s?Dne({element:s,dragHandle:void 0,getInitialData:()=>({item:t}),onDragStart:()=>{i(!0),n==null||n(t)},onDrop:()=>{i(!1),n==null||n(void 0)}}):void 0},[e,r,t,n]),o},Yne=(t,e)=>{const[n,r]=f.useState();return f.useEffect(()=>{const o=e.current;if(o)return KT({element:o,canDrop:({source:i})=>i.data.item!==t,getData:({input:i,element:s})=>{const u=["reparent"];typeof t=="object"&&t.spaceId&&u.push("make-child");const l=UVe({},{input:i,element:s,currentLevel:0,indentPerLevel:0,mode:"standard",block:u}),c=VVe(l);return r(c??void 0),{item:t,instructionType:c?c.type:void 0}},onDragLeave:()=>r(void 0),onDrop:()=>r(void 0)})},[t,e]),n};function Zne(t,e,n){const[r,o]=f.useState();return f.useEffect(()=>{const i=e.current;if(i)return KT({element:i,canDrop:({source:s})=>s.data.item!==t,getData:()=>(o(n),{item:t,instructionType:n}),onDragLeave:()=>o(void 0),onDrop:()=>o(void 0)})},[t,e,n]),r}const GVe=(t,e,n)=>{f.useEffect(()=>{const r=t.current;if(!r)throw Error("Scroll element ref not configured");return O_(GT({onDrop:({source:o,location:i})=>{e(void 0);const{dropTargets:s}=i.current;if(s.length===0)return;const u=o.data.item,l=s[0].data.item,c=s[0].data.instructionType;c&&n(u,l,c)}}),jne({element:r}))},[t,e,n])};function Jne({space:t,selected:e,onClick:n,folder:r,onDragging:o,disabled:i,onUnpin:s}){var g;const u=ge(),l=Tt(),c=f.useRef(null),d=f.useMemo(()=>r?{folder:r,spaceId:t.roomId}:t.roomId,[r,t]);Gne(d,c,o);const F=(g=Yne(d,c))==null?void 0:g.type,[h,m]=f.useState(),D=p=>{p.preventDefault();const _=p.currentTarget.getBoundingClientRect();m(v=>{if(!v)return _})};return a.jsx(qVe,{roomId:t.roomId,children:p=>a.jsxs(tl,{active:e,ref:c,"aria-disabled":i,"data-drop-child":F==="make-child","data-drop-above":F==="reorder-above","data-drop-below":F==="reorder-below","data-inside-folder":!!r,children:[a.jsx(nl,{tooltip:i?void 0:t.name,children:_=>a.jsx(Qs,{as:"button","data-id":t.roomId,ref:_,size:r?"300":"400",onClick:n,onContextMenu:D,children:a.jsx(ho,{roomId:t.roomId,src:Hl(u,t,96,l)??void 0,alt:t.name,renderFallback:()=>a.jsx(x,{size:r?"H6":"H4",children:Gi(t.name,2)})})})}),p&&a.jsx(wD,{hasCount:p.total>0,children:a.jsx(Ph,{highlight:p.highlight>0,count:p.total})}),h&&a.jsx(Ut,{anchor:h,position:"Right",align:"Start",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>m(void 0),clickOutsideDeactivates:!0,isKeyForward:_=>_.key==="ArrowDown",isKeyBackward:_=>_.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(KVe,{room:t,requestClose:()=>m(void 0),onUnpin:s})})})]})})}function YVe({folder:t,onClose:e,children:n}){const r=f.useRef(null),o=f.useRef(null),i=f.useMemo(()=>({folder:t,open:!0}),[t]),s=Zne(i,r,"reorder-above"),u=Zne(i,o,"reorder-below");return a.jsxs(Une,{state:"Open","data-drop-above":s==="reorder-above","data-drop-below":u==="reorder-below",children:[a.jsx(Vne,{ref:r,position:"Top"}),a.jsx(Qs,{size:"300",children:a.jsx(Me,{"data-id":t.id,size:"300",variant:"Background",onClick:e,children:a.jsx(Q,{size:"400",src:$.ChevronTop,filled:!0})})}),n,a.jsx(Vne,{ref:o,position:"Bottom"})]})}function ZVe({folder:t,selected:e,onOpen:n,onDragging:r,disabled:o}){var F;const i=ge(),s=Tt(),u=f.useRef(null),l=f.useMemo(()=>({folder:t}),[t]);Gne(l,u,r);const c=(F=Yne(l,u))==null?void 0:F.type,d=t.name??t.content.map(h=>{var m;return((m=i.getRoom(h))==null?void 0:m.name)??""}).join(", ")??"Unnamed";return a.jsx(HVe,{rooms:t.content,children:h=>a.jsxs(tl,{active:e,ref:u,"aria-disabled":o,"data-drop-child":c==="make-child","data-drop-above":c==="reorder-above","data-drop-below":c==="reorder-below",children:[a.jsx(nl,{tooltip:o?void 0:d,children:m=>a.jsx(Une,{"data-id":t.id,as:"button",ref:m,onClick:n,children:t.content.map(D=>{const g=i.getRoom(D);return g?a.jsx(Qs,{size:"200",radii:"300",children:a.jsx(ho,{roomId:g.roomId,src:Hl(i,g,96,s)??void 0,alt:g.name,renderFallback:()=>a.jsx(x,{size:"Inherit",children:a.jsx("b",{children:Gi(g.name,2)})})})},D):null})})}),h&&a.jsx(wD,{hasCount:h.total>0,children:a.jsx(Ph,{highlight:h.highlight>0,count:h.total})})]})})}function JVe({scrollRef:t}){const e=Xr(),n=ge(),r=Wr(),o=_t(lo),i=IW(n,nr,o),[s,u]=Rne(i),l=_t(Sm()),[c,d]=Yi(WVe()),[F,h]=f.useState();GVe(t,h,f.useCallback((_,v,E)=>{const b=[],k=(w,A)=>typeof w=="string"&&typeof A=="string"?w===A:typeof w=="object"&&typeof A=="object"?w.id===A.folder.id:!1,C=w=>typeof w=="string"?[w]:w.spaceId?[w.spaceId]:[...w.folder.content];s.forEach(w=>{const A=typeof _=="object"&&typeof v=="object"&&_.folder.id===v.folder.id;if(!A&&k(w,_)){if(typeof _=="object"&&_.spaceId){const O=_.folder.content.filter(j=>j!==_.spaceId);if(O.length===0){d({type:"DELETE",id:_.folder.id});return}b.push({..._.folder,content:O})}return}if(k(w,v)){if(E==="make-child"){const O=C(_);if(typeof v=="string"){const j={id:$P(),content:[v].concat(O)};b.push(j);return}b.push({...v.folder,content:v.folder.content.concat(O)});return}if(typeof v=="object"&&v.spaceId){const O=C(_),j=[];v.folder.content.filter(M=>!O.includes(M)).forEach(M=>{if(M===v.spaceId){E==="reorder-below"&&j.push(M,...O),E==="reorder-above"&&j.push(...O,M);return}j.push(M)});const R={...v.folder,content:j};b.push(R);return}if(typeof _=="string")E==="reorder-below"&&b.push(w),b.push(_),E==="reorder-above"&&b.push(w);else if(_.spaceId){if(E==="reorder-above"&&b.push(_.spaceId),A&&typeof w=="object"){const O={...w,content:w.content.filter(j=>j!==_.spaceId)};O.content.length>0&&b.push(O)}else b.push(w);E==="reorder-below"&&b.push(_.spaceId)}else E==="reorder-below"&&b.push(w),b.push(_.folder),E==="reorder-above"&&b.push(w);return}b.push(w)});const S=XT(n,b);u(P_(n,i,S)),n.setAccountData(tr.CinnySpaces,S)},[n,s,d,u,i]));const m=lS(),D=_=>{const v=_.currentTarget.getAttribute("data-id");if(!v)return;const E=c7(vo(n,v));if(r===en.Mobile){e(E);return}const b=l.get(v);if(b&&b.pathname.startsWith(E)){e(Af(b));return}e(bC(vo(n,v)))},g=_=>{const v=_.currentTarget.getAttribute("data-id");v&&d({type:c.has(v)?"DELETE":"PUT",id:v})},p=f.useCallback(_=>{if(i.includes(_))return;const v=One(s,_),E=XT(n,v);u(P_(n,i,E)),n.setAccountData(tr.CinnySpaces,E)},[n,s,i,u]);return s.length===0?null:a.jsxs(a.Fragment,{children:[a.jsx(tI,{}),a.jsx(L4,{children:s.map(_=>{if(typeof _=="object")return c.has(_.id)?a.jsx(YVe,{folder:_,onClose:g,children:_.content.map(E=>{const b=n.getRoom(E);return b?a.jsx(Jne,{space:b,selected:b.roomId===m,onClick:D,folder:_,onDragging:h,disabled:typeof F=="object"?F.spaceId===b.roomId:!1,onUnpin:i.includes(b.roomId)?void 0:p},b.roomId):null})},_.id):a.jsx(ZVe,{folder:_,selected:!!m&&_.content.includes(m),onOpen:g,onDragging:h,disabled:typeof F=="object"?F.folder.id===_.id:!1},_.id);const v=n.getRoom(_);return v?a.jsx(Jne,{space:v,selected:v.roomId===m,onClick:D,onDragging:h,disabled:typeof F=="string"?F===v.roomId:!1,onUnpin:i.includes(v.roomId)?void 0:p},v.roomId):null})})]})}function XVe(){const t=Wr(),e=Xr(),n=_t(Sm()),r=Cje(),o=_t(h3).length,i=()=>{if(t===en.Mobile){e(h7());return}const s=n.get("inbox");if(s){e(Af(s));return}const u=o>0?yC():If();e(u)};return a.jsxs(tl,{active:r,children:[a.jsx(nl,{tooltip:"Inbox",children:s=>a.jsx(Qs,{as:"button",ref:s,outlined:!0,onClick:i,children:a.jsx(Q,{src:$.Inbox,filled:r})})}),o>0&&a.jsx(wD,{hasCount:!0,children:a.jsx(Ph,{highlight:!0,count:o})})]})}function QVe(){const t=ge(),e=Wr(),n=W1(),r=Xr(),o=_t(Sm()),i=lje(),s=()=>{var d;if(e===en.Mobile){r(Tf());return}const u=o.get("explore");if(u){r(Af(u));return}if((d=n.featuredCommunities)!=null&&d.openAsDefault){r(EC());return}const l=t.getUserId(),c=l?xu(l):void 0;if(c){r(hm(c));return}r(Tf())};return a.jsx(tl,{active:i,children:a.jsx(nl,{tooltip:"Explore Community",children:u=>a.jsx(Qs,{as:"button",ref:u,outlined:!0,onClick:s,children:a.jsx(Q,{src:$.Explore,filled:i})})})})}var Fs="_1ri957w0",rI="_1ri957w1",eqe="_1ri957w2";function gt({title:t,description:e,before:n,after:r,children:o}){return a.jsxs(y,{alignItems:"Center",gap:"300",children:[n&&a.jsx(y,{shrink:"No",children:n}),a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[t&&a.jsx(x,{className:Fs,size:"T300",children:t}),e&&a.jsx(x,{className:Fs,size:"T200",priority:"300",children:e}),o]}),r&&a.jsx(y,{shrink:"No",children:r})]})}const tqe=()=>f.useMemo(()=>[{layout:Fr.Modern,name:"Modern"},{layout:Fr.Compact,name:"Compact"},{layout:Fr.Bubble,name:"Bubble"}],[]),nqe=()=>f.useMemo(()=>[{spacing:"0",name:"None"},{spacing:"100",name:"Ultra Small"},{spacing:"200",name:"Extra Small"},{spacing:"300",name:"Small"},{spacing:"400",name:"Normal"},{spacing:"500",name:"Large"}],[]);var Nt="vkenjr0";const oI=Ie(({themeNames:t,themes:e,selected:n,onSelect:r,...o},i)=>a.jsx(zt,{...o,ref:i,children:a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:e.map(s=>a.jsx(tt,{size:"300",variant:s.id===n.id?"Primary":"Surface",radii:"300",onClick:()=>r(s),children:a.jsx(x,{size:"T300",children:t[s.id]??s.id})},s.id))})}));function rqe({disabled:t}){const e=tA(),n=RJ(),[r,o]=Ft(ut,"themeId"),[i,s]=f.useState(),u=e.find(d=>d.id===r)??n0,l=d=>{s(d.currentTarget.getBoundingClientRect())},c=d=>{o(d.id),s(void 0)};return a.jsxs(a.Fragment,{children:[a.jsx(Ee,{size:"300",variant:"Primary",outlined:!0,fill:"Soft",radii:"300",after:a.jsx(Q,{size:"300",src:$.ChevronBottom}),onClick:t?void 0:l,"aria-disabled":t,children:a.jsx(x,{size:"T300",children:n[u.id]??u.id})}),a.jsx(Ut,{anchor:i,offset:5,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>s(void 0),clickOutsideDeactivates:!0,isKeyForward:d=>d.key==="ArrowDown"||d.key==="ArrowRight",isKeyBackward:d=>d.key==="ArrowUp"||d.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(oI,{themeNames:n,themes:e,selected:u,onSelect:c})})})]})}function oqe(){const t=nA(),e=RJ(),n=tA(),[r,o]=Ft(ut,"lightThemeId"),[i,s]=Ft(ut,"darkThemeId"),u=n.filter(E=>E.kind===Ys.Light),l=n.filter(E=>E.kind===Ys.Dark),c=u.find(E=>E.id===r)??n0,d=l.find(E=>E.id===i)??r_,[F,h]=f.useState(),[m,D]=f.useState(),g=E=>{h(E.currentTarget.getBoundingClientRect())},p=E=>{D(E.currentTarget.getBoundingClientRect())},_=E=>{o(E.id),h(void 0)},v=E=>{s(E.id),D(void 0)};return a.jsxs(y,{wrap:"Wrap",gap:"400",children:[a.jsx(gt,{title:"Light Theme:",after:a.jsx(We,{variant:t===Ys.Light?"Primary":"Secondary",outlined:t===Ys.Light,radii:"Pill",after:a.jsx(Q,{size:"200",src:$.ChevronBottom}),onClick:g,children:a.jsx(x,{size:"B300",children:e[c.id]??c.id})})}),a.jsx(Ut,{anchor:F,offset:5,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>h(void 0),clickOutsideDeactivates:!0,isKeyForward:E=>E.key==="ArrowDown"||E.key==="ArrowRight",isKeyBackward:E=>E.key==="ArrowUp"||E.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(oI,{themeNames:e,themes:u,selected:c,onSelect:_})})}),a.jsx(gt,{title:"Dark Theme:",after:a.jsx(We,{variant:t===Ys.Dark?"Primary":"Secondary",outlined:t===Ys.Dark,radii:"Pill",after:a.jsx(Q,{size:"200",src:$.ChevronBottom}),onClick:p,children:a.jsx(x,{size:"B300",children:e[d.id]??d.id})})}),a.jsx(Ut,{anchor:m,offset:5,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>D(void 0),clickOutsideDeactivates:!0,isKeyForward:E=>E.key==="ArrowDown"||E.key==="ArrowRight",isKeyBackward:E=>E.key==="ArrowUp"||E.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(oI,{themeNames:e,themes:l,selected:d,onSelect:v})})})]})}function iqe(){const[t,e]=Ft(ut,"pageZoom"),[n,r]=f.useState(`${t}`),o=s=>{r(s.target.value)},i=s=>{if(Mn("escape",s)&&(s.stopPropagation(),r(t.toString())),Mn("enter",s)&&"value"in s.target&&typeof s.target.value=="string"){const u=parseInt(s.target.value,10);if(Number.isNaN(u))return;const l=Math.max(Math.min(u,150),75);e(l),r(l.toString())}};return a.jsx(En,{style:{width:Dt(100)},variant:t===parseInt(n,10)?"Secondary":"Success",size:"300",radii:"300",type:"number",min:"75",max:"150",value:n,onChange:o,onKeyDown:i,after:a.jsx(x,{size:"T300",children:"%"}),outlined:!0})}function aqe(){const[t,e]=Ft(ut,"useSystemTheme"),[n,r]=Ft(ut,"twitterEmoji");return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Appearance"}),a.jsxs(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:[a.jsx(gt,{title:"System Theme",description:"Choose between light and dark theme based on system preference.",after:a.jsx(qo,{variant:"Primary",value:t,onChange:e})}),t&&a.jsx(oqe,{})]}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Theme",description:"Theme to use when system theme is not enabled.",after:a.jsx(rqe,{disabled:t})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Twitter Emoji",after:a.jsx(qo,{variant:"Primary",value:n,onChange:r})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Page Zoom",after:a.jsx(iqe,{})})})]})}function sqe(){const[t,e]=Ft(ut,"enterForNewline"),[n,r]=Ft(ut,"isMarkdown"),[o,i]=Ft(ut,"hideActivity");return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Editor"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"ENTER for Newline",description:`Use ${CA()?x_.Command:"Ctrl"} + ENTER to send message and ENTER for newline.`,after:a.jsx(qo,{variant:"Primary",value:t,onChange:e})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Markdown Formatting",after:a.jsx(qo,{variant:"Primary",value:n,onChange:r})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Hide Typing & Read Receipts",description:"Turn off both typing status and read receipts to keep your activity private.",after:a.jsx(qo,{variant:"Primary",value:o,onChange:i})})})]})}function uqe(){var u;const[t,e]=f.useState(),[n,r]=Ft(ut,"messageLayout"),o=tqe(),i=l=>{e(l.currentTarget.getBoundingClientRect())},s=l=>{r(l),e(void 0)};return a.jsxs(a.Fragment,{children:[a.jsx(Ee,{size:"300",variant:"Secondary",outlined:!0,fill:"Soft",radii:"300",after:a.jsx(Q,{size:"300",src:$.ChevronBottom}),onClick:i,children:a.jsx(x,{size:"T300",children:((u=o.find(l=>l.layout===n))==null?void 0:u.name)??n})}),a.jsx(Ut,{anchor:t,offset:5,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>e(void 0),clickOutsideDeactivates:!0,isKeyForward:l=>l.key==="ArrowDown"||l.key==="ArrowRight",isKeyBackward:l=>l.key==="ArrowUp"||l.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(zt,{children:a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:o.map(l=>a.jsx(tt,{size:"300",variant:n===l.layout?"Primary":"Surface",radii:"300",onClick:()=>s(l.layout),children:a.jsx(x,{size:"T300",children:l.name})},l.layout))})})})})]})}function lqe(){var u;const[t,e]=f.useState(),[n,r]=Ft(ut,"messageSpacing"),o=nqe(),i=l=>{e(l.currentTarget.getBoundingClientRect())},s=l=>{r(l),e(void 0)};return a.jsxs(a.Fragment,{children:[a.jsx(Ee,{size:"300",variant:"Secondary",outlined:!0,fill:"Soft",radii:"300",after:a.jsx(Q,{size:"300",src:$.ChevronBottom}),onClick:i,children:a.jsx(x,{size:"T300",children:((u=o.find(l=>l.spacing===n))==null?void 0:u.name)??n})}),a.jsx(Ut,{anchor:t,offset:5,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>e(void 0),clickOutsideDeactivates:!0,isKeyForward:l=>l.key==="ArrowDown"||l.key==="ArrowRight",isKeyBackward:l=>l.key==="ArrowUp"||l.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(zt,{children:a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:o.map(l=>a.jsx(tt,{size:"300",variant:n===l.spacing?"Primary":"Surface",radii:"300",onClick:()=>s(l.spacing),children:a.jsx(x,{size:"T300",children:l.name})},l.spacing))})})})})]})}function cqe(){const[t,e]=Ft(ut,"legacyUsernameColor"),[n,r]=Ft(ut,"hideMembershipEvents"),[o,i]=Ft(ut,"hideNickAvatarEvents"),[s,u]=Ft(ut,"mediaAutoLoad"),[l,c]=Ft(ut,"urlPreview"),[d,F]=Ft(ut,"encUrlPreview"),[h,m]=Ft(ut,"showHiddenEvents");return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Messages"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Message Layout",after:a.jsx(uqe,{})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Message Spacing",after:a.jsx(lqe,{})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Legacy Username Color",after:a.jsx(qo,{variant:"Primary",value:t,onChange:e})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Hide Membership Change",after:a.jsx(qo,{variant:"Primary",value:n,onChange:r})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Hide Profile Change",after:a.jsx(qo,{variant:"Primary",value:o,onChange:i})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Disable Media Auto Load",after:a.jsx(qo,{variant:"Primary",value:!s,onChange:D=>u(!D)})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Url Preview",after:a.jsx(qo,{variant:"Primary",value:l,onChange:c})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Url Preview in Encrypted Room",after:a.jsx(qo,{variant:"Primary",value:d,onChange:F})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",children:a.jsx(gt,{title:"Show Hidden Events",after:a.jsx(qo,{variant:"Primary",value:h,onChange:m})})})]})}function dqe({requestClose:t}){return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"General"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsx(aqe,{}),a.jsx(sqe,{}),a.jsx(cqe,{})]})})})})]})}function hqe(){const t=ge().getUserId();return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Matrix ID"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:t,after:a.jsx(We,{variant:"Secondary",radii:"Pill",onClick:()=>Pbe(t),children:a.jsx(x,{size:"T200",children:"Copy"})})})})]})}const N4=t=>{const e=ge(),[n,r]=f.useState(()=>{const o=e.getUser(t);return{avatarUrl:o==null?void 0:o.avatarUrl,displayName:o==null?void 0:o.displayName}});return f.useEffect(()=>{const o=e.getUser(t),i=(u,l)=>{r(c=>({...c,avatarUrl:l.avatarUrl}))},s=(u,l)=>{r(c=>({...c,displayName:l.displayName}))};return e.getProfileInfo(t).then(u=>r({avatarUrl:u.avatar_url,displayName:u.displayname})),o==null||o.on(ri.AvatarUrl,i),o==null||o.on(ri.DisplayName,s),()=>{o==null||o.removeListener(ri.AvatarUrl,i),o==null||o.removeListener(ri.DisplayName,s)}},[e,t]),n};var Fqe="evl28k3",mqe="evl28k0 _1mqalmd1 _1mqalmd0",Dqe="evl28k2 _1mqalmd1 _1mqalmd0",gqe="evl28k1 _1mqalmd1 _1mqalmd0";const pqe=Ie(({className:t,name:e,url:n,requestClose:r,...o},i)=>{const s=()=>{};return a.jsxs(y,{className:Ve(mqe,t),direction:"Column",...o,ref:i,children:[a.jsxs(In,{className:gqe,size:"400",children:[a.jsxs(y,{grow:"Yes",alignItems:"Center",gap:"200",children:[a.jsx(Me,{size:"300",radii:"300",onClick:r,children:a.jsx(Q,{size:"50",src:$.ArrowLeft})}),a.jsx(x,{size:"T300",truncate:!0,children:"Image Editor"})]}),a.jsx(y,{shrink:"No",alignItems:"Center",gap:"200",children:a.jsx(We,{variant:"Primary",radii:"300",onClick:s,children:a.jsx(x,{size:"B300",children:"Save"})})})]}),a.jsx(y,{grow:"Yes",className:Dqe,justifyContent:"Center",alignItems:"Center",children:a.jsx("img",{className:Fqe,src:n,alt:e})})]})});function fqe({profile:t,userId:e}){var v;const n=ge(),r=Tt(),o=x7(),[i,s]=f.useState(!1),u=((v=o["m.set_avatar_url"])==null?void 0:v.enabled)===!1,l=t.displayName??ln(e)??e,c=t.avatarUrl?Xt(n,t.avatarUrl,r,96,96,"crop")??void 0:void 0,[d,F]=f.useState(),h=j_(d),m=f.useMemo(()=>{if(d)return vD(d)},[d]),D=x0(F,!1),g=f.useCallback(()=>{F(void 0)},[]),p=f.useCallback(E=>{const{mxc:b}=E;n.setAvatarUrl(b),g()},[n,g]),_=()=>{n.setAvatarUrl(""),s(!1)};return a.jsxs(gt,{title:a.jsx(x,{as:"span",size:"L400",children:"Avatar"}),after:a.jsx(Rt,{size:"500",radii:"300",children:a.jsx(wa,{userId:e,src:c,renderFallback:()=>a.jsx(x,{size:"H4",children:Gi(l)})})}),children:[m?a.jsx(y,{gap:"200",direction:"Column",children:a.jsx(B_,{uploadAtom:m,onRemove:g,onComplete:p})}):a.jsxs(y,{gap:"200",children:[a.jsx(Ee,{onClick:()=>D("image/*"),size:"300",variant:"Secondary",fill:"Soft",outlined:!0,radii:"300",disabled:u,children:a.jsx(x,{size:"B300",children:"Upload"})}),c&&a.jsx(Ee,{size:"300",variant:"Critical",fill:"None",radii:"300",disabled:u,onClick:()=>s(!0),children:a.jsx(x,{size:"B300",children:"Remove"})})]}),h&&a.jsx(Rn,{open:!1,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:g,clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(xs,{className:I8,variant:"Surface",size:"500",children:a.jsx(pqe,{name:(d==null?void 0:d.name)??"Unnamed",url:h,requestClose:g})})})})}),a.jsx(Rn,{open:i,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>s(!1),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsxs(cr,{variant:"Surface",children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Remove Avatar"})}),a.jsx(Me,{size:"300",onClick:()=>s(!1),radii:"300",children:a.jsx(Q,{src:$.Cross})})]}),a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsx(y,{direction:"Column",gap:"200",children:a.jsx(x,{priority:"400",children:"Are you sure you want to remove profile avatar?"})}),a.jsx(Ee,{variant:"Critical",onClick:_,children:a.jsx(x,{size:"B400",children:"Remove"})})]})]})})})})]})}function _qe({profile:t,userId:e}){var D;const n=ge(),r=((D=x7()["m.set_displayname"])==null?void 0:D.enabled)===!1,o=t.displayName??ln(e)??e,[i,s]=f.useState(o),[u,l]=et(f.useCallback(g=>n.setDisplayName(g),[n])),c=u.status===he.Loading;f.useEffect(()=>{s(o)},[o]);const d=g=>{const p=g.currentTarget.value;s(p)},F=()=>{s(o)},h=g=>{var _,v;if(g.preventDefault(),c)return;const p=(v=(_=g.target)==null?void 0:_.displayNameInput)==null?void 0:v.value;p&&l(p)},m=i!==o;return a.jsx(gt,{title:a.jsx(x,{as:"span",size:"L400",children:"Display Name"}),children:a.jsx(y,{direction:"Column",grow:"Yes",gap:"100",children:a.jsxs(y,{as:"form",onSubmit:h,gap:"200","aria-disabled":c||r,children:[a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(En,{required:!0,name:"displayNameInput",value:i,onChange:d,variant:"Secondary",radii:"300",style:{paddingRight:le.space.S200},readOnly:c||r,after:m&&!c&&a.jsx(Me,{type:"reset",onClick:F,size:"300",radii:"300",variant:"Secondary",children:a.jsx(Q,{src:$.Cross,size:"100"})})})}),a.jsxs(Ee,{size:"400",variant:m?"Success":"Secondary",fill:m?"Solid":"Soft",outlined:!0,radii:"300",disabled:!m||c,type:"submit",children:[c&&a.jsx(ot,{variant:"Success",fill:"Solid",size:"300"}),a.jsx(x,{size:"B400",children:"Save"})]})]})})})}function vqe(){const t=ge().getUserId(),e=N4(t);return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Profile"}),a.jsxs(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:[a.jsx(fqe,{userId:t,profile:e}),a.jsx(_qe,{userId:t,profile:e})]})]})}function bqe(){var o;const t=ge(),[e,n]=et(f.useCallback(()=>t.getThreePids(),[t])),r=(o=e.status===he.Success?e.data.threepids:void 0)==null?void 0:o.filter(i=>i.medium==="email");return f.useEffect(()=>{n()},[n]),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Contact Information"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Email Address",description:"Email address attached to your account.",children:a.jsx(y,{children:r==null?void 0:r.map(i=>a.jsx(We,{as:"span",variant:"Secondary",radii:"Pill",children:a.jsx(x,{size:"T200",children:i.address})},i.address))})})})]})}function Cqe({userList:t}){const e=ge(),[n,r]=f.useState(""),o=yr(),[i,s]=et(f.useCallback(async F=>{await e.setIgnoredUsers([...t,F])},[e,t])),u=i.status===he.Loading,l=F=>{const h=F.currentTarget.value;r(h)},c=()=>{r("")},d=F=>{var m,D;if(F.preventDefault(),u)return;const h=(D=(m=F.target)==null?void 0:m.userIdInput)==null?void 0:D.value.trim();h&&wu(h)&&s(h).then(()=>{o()&&r("")})};return a.jsxs(y,{as:"form",onSubmit:d,gap:"200","aria-disabled":u,children:[a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(En,{required:!0,name:"userIdInput",value:n,onChange:l,variant:"Secondary",radii:"300",style:{paddingRight:le.space.S200},readOnly:u,after:n&&!u&&a.jsx(Me,{type:"reset",onClick:c,size:"300",radii:"300",variant:"Secondary",children:a.jsx(Q,{src:$.Cross,size:"100"})})})}),a.jsxs(Ee,{size:"400",variant:"Secondary",fill:"Soft",outlined:!0,radii:"300",type:"submit",disabled:u,children:[u&&a.jsx(ot,{variant:"Secondary",size:"300"}),a.jsx(x,{size:"B400",children:"Block"})]})]})}function Eqe({userId:t,userList:e}){const n=ge(),[r,o]=et(f.useCallback(()=>n.setIgnoredUsers(e.filter(u=>u!==t)),[n,t,e])),i=()=>o(),s=r.status===he.Loading;return a.jsx(We,{variant:"Secondary",radii:"Pill",after:s?a.jsx(ot,{variant:"Secondary",size:"100"}):a.jsx(Q,{src:$.Cross,size:"100"}),onClick:i,disabled:s,children:a.jsx(x,{size:"T200",truncate:!0,children:t})})}function yqe(){const t=_T();return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(y,{alignItems:"Center",justifyContent:"SpaceBetween",gap:"200",children:a.jsx(x,{size:"L400",children:"Blocked Users"})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Select User",description:"Prevent receiving messages or invites from user by adding their userId.",children:a.jsxs(y,{direction:"Column",gap:"300",children:[a.jsx(Cqe,{userList:t}),t.length>0&&a.jsxs(y,{direction:"Inherit",gap:"100",children:[a.jsx(x,{size:"L400",children:"Users"}),a.jsx(y,{wrap:"Wrap",gap:"200",children:t.map(e=>a.jsx(Eqe,{userId:e,userList:t},e))})]})]})})})]})}function xqe({requestClose:t}){return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"Account"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsx(vqe,{}),a.jsx(hqe,{}),a.jsx(bqe,{}),a.jsx(yqe,{})]})})})})]})}const wqe=()=>"Notification"in window?window.Notification.permission==="default"?"prompt":window.Notification.permission:"denied";function kqe(t,e="prompt"){const[n,r]=f.useState(e);return f.useEffect(()=>{let o;function i(){r(this.state)}return navigator.permissions.query({name:t}).then(s=>{o=s,i.apply(s),s.addEventListener("change",i)}).catch(()=>{}),()=>{o==null||o.removeEventListener("change",i)}},[t]),n}const Sqe=()=>{const t=ge(),[e,n]=Hce(f.useCallback(async()=>{var i,s;const r=((i=await t.getThreePids())==null?void 0:i.threepids).filter(u=>u.medium==="email").map(u=>u.address);if(r.length===0)return{enabled:!1};const o=((s=await t.getPushers())==null?void 0:s.pushers).find(u=>u.app_id==="m.email"&&r.includes(u.pushkey));return o!=null&&o.pushkey?{enabled:!0,email:o.pushkey}:{enabled:!1,email:r[0]}},[t]));return e.status===he.Success?[e.data,n]:e.status===he.Error?[null,n]:[void 0,n]};function jqe(){const t=ge(),[e,n]=Sqe(),[r,o]=et(f.useCallback(async(s,u)=>{if(u){await t.setPusher({kind:"email",app_id:"m.email",pushkey:s,app_display_name:"Email Notifications",device_display_name:s,lang:"en",data:{brand:"Cinny"},append:!0});return}await t.setPusher({pushkey:s,app_id:"m.email",kind:null})},[t])),i=s=>{e&&e.email&&o(e.email,s).then(()=>{n()})};return a.jsx(gt,{title:"Email Notification",description:a.jsxs(a.Fragment,{children:[e&&!e.email&&a.jsx(x,{as:"span",style:{color:ct.Critical.Main},size:"T200",children:"Your account does not have any email attached."}),e&&e.email&&a.jsxs(a.Fragment,{children:["Send notification to your email. ",`("${e.email}")`]}),e===null&&a.jsx(x,{as:"span",style:{color:ct.Critical.Main},size:"T200",children:"Unexpected Error!"}),e===void 0&&"Send notification to your email."]}),after:a.jsxs(a.Fragment,{children:[r.status!==he.Loading&&typeof e=="object"&&(e==null?void 0:e.email)&&a.jsx(qo,{value:e.enabled,onChange:i}),(r.status===he.Loading||e===void 0)&&a.jsx(ot,{variant:"Secondary"})]})})}function Bqe(){const t=kqe("notifications",wqe()),[e,n]=Ft(ut,"showNotifications"),[r,o]=Ft(ut,"isNotificationSounds"),i=()=>{window.Notification.requestPermission()};return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"System"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Desktop Notifications",description:t==="denied"?a.jsx(x,{as:"span",style:{color:ct.Critical.Main},size:"T200",children:"Notification"in window?"Notification permission is blocked. Please allow notification permission from browser address bar.":"Notifications are not supported by the system."}):a.jsx("span",{children:"Show desktop notifications when message arrive."}),after:t==="prompt"?a.jsx(Ee,{size:"300",radii:"300",onClick:i,children:a.jsx(x,{size:"B300",children:"Enable"})}):a.jsx(qo,{disabled:t!=="granted",value:e,onChange:n})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Notification Sound",description:"Play sound when new message arrive.",after:a.jsx(qo,{value:r,onChange:o})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(jqe,{})})]})}const Aqe=()=>f.useMemo(()=>[Eo.NotifyLoud,Eo.Notify,Eo.OFF],[]),Tqe=()=>f.useMemo(()=>({[Eo.OFF]:"Disable",[Eo.Notify]:"Notify Silent",[Eo.NotifyLoud]:"Notify Loud"}),[]);function iI({pushRule:t,onChange:e}){const n=Aqe(),r=Tqe(),o=dCe(t.actions),[i,s]=et(e),u=i.status===he.Loading,[l,c]=f.useState(),d=h=>{c(h.currentTarget.getBoundingClientRect())},F=h=>{c(void 0),s(h)};return a.jsxs(a.Fragment,{children:[a.jsx(Ee,{size:"300",variant:"Secondary",outlined:!0,fill:"Soft",radii:"300",after:u?a.jsx(ot,{variant:"Secondary",size:"300"}):a.jsx(Q,{size:"300",src:$.ChevronBottom}),onClick:d,disabled:u,children:a.jsx(x,{size:"T300",children:r[o]})}),a.jsx(Ut,{anchor:l,offset:5,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>c(void 0),clickOutsideDeactivates:!0,isKeyForward:h=>h.key==="ArrowDown"||h.key==="ArrowRight",isKeyBackward:h=>h.key==="ArrowUp"||h.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(zt,{children:a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:n.map(h=>a.jsx(tt,{size:"300",variant:"Surface","aria-selected":h===o,radii:"300",onClick:()=>F(h),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T300",children:r[h]})})},h))})})})})]})}const L_=(t,e,n,r,o,i,s)=>({kind:t,pushRule:{rule_id:e,default:!0,enabled:!0,pattern:o,conditions:r,actions:n}}),Iqe=[Nn.Override,Nn.ContentSpecific,Nn.RoomSpecific,Nn.SenderSpecific,Nn.Underride],Rqe=(t,e)=>{const{global:n}=t;let r;return Iqe.some(o=>{var s;const i=(s=n[o])==null?void 0:s.find(u=>u.rule_id===e);return i?(r={kind:o,pushRule:i},!0):!1}),r},Xne=(t,e)=>f.useMemo(()=>Rqe(t,e),[t,e]),Oqe=(t,e,n)=>{const r=[];return n&&r.push({kind:ar.RoomMemberCount,is:"2"}),r.push({kind:ar.EventMatch,key:"type",pattern:e?"m.room.encrypted":"m.room.message"}),{kind:Nn.Underride,pushRule:{rule_id:t,default:!0,enabled:!0,conditions:r,actions:Iu(Eo.NotifyLoud)}}};function z4({ruleId:t,pushRules:e,encrypted:n=!1,oneToOne:r=!1}){const o=ge(),i=Oqe(t,n,r),{kind:s,pushRule:u}=Xne(e,t)??i,l=bS(),c=f.useCallback(async d=>{const F=l(d);await o.setPushRuleActions("global",s,t,F)},[o,l,s,t]);return a.jsx(iI,{pushRule:u,onChange:c})}function Mqe(){const t=kd(tr.PushRules),e=f.useMemo(()=>(t==null?void 0:t.getContent())??{global:{}},[t]);return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsxs(y,{alignItems:"Center",justifyContent:"SpaceBetween",gap:"200",children:[a.jsx(x,{size:"L400",children:"All Messages"}),a.jsxs(y,{gap:"100",children:[a.jsx(x,{size:"T200",children:"Badge: "}),a.jsx(Bt,{radii:"300",variant:"Secondary",fill:"Solid",children:a.jsx(x,{size:"L400",children:"1"})})]})]}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"1-to-1 Chats",after:a.jsx(z4,{pushRules:e,ruleId:Yn.DM,oneToOne:!0})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"1-to-1 Chats (Encrypted)",after:a.jsx(z4,{pushRules:e,ruleId:Yn.EncryptedDM,encrypted:!0,oneToOne:!0})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Rooms",after:a.jsx(z4,{pushRules:e,ruleId:Yn.Message})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Rooms (Encrypted)",after:a.jsx(z4,{pushRules:e,ruleId:Yn.EncryptedMessage,encrypted:!0})})})]})}const Pqe={highlight:!0},Lqe=t=>L_(Nn.Override,Yn.IsUserMention,Iu(Eo.NotifyLoud,{highlight:!0}),[{kind:ar.EventPropertyContains,key:"content.m\\.mentions.user_ids",value:t}]),Nqe=L_(Nn.Override,Yn.ContainsDisplayName,Iu(Eo.NotifyLoud,{highlight:!0}),[{kind:ar.ContainsDisplayName}]),zqe=t=>L_(Nn.ContentSpecific,Yn.ContainsUserName,Iu(Eo.NotifyLoud,{highlight:!0}),void 0,t),Uqe=L_(Nn.Override,Yn.IsRoomMention,Iu(Eo.Notify,{highlight:!0}),[{kind:ar.EventPropertyIs,key:"content.m\\.mentions.room",value:!0},{kind:ar.SenderNotificationPermission,key:"room"}]),Vqe=L_(Nn.Override,Yn.AtRoomNotification,Iu(Eo.Notify,{highlight:!0}),[{kind:ar.EventMatch,key:"content.body",pattern:"@room"},{kind:ar.SenderNotificationPermission,key:"room"}]);function N_({ruleId:t,pushRules:e,defaultPushRuleData:n}){const r=ge(),{kind:o,pushRule:i}=Xne(e,t)??n,s=bS(Pqe),u=f.useCallback(async l=>{const c=s(l);await r.setPushRuleActions("global",o,t,c)},[r,s,o,t]);return a.jsx(iI,{pushRule:i,onChange:u})}function qqe(){const t=ge().getUserId(),{displayName:e}=N4(t),n=kd(tr.PushRules),r=f.useMemo(()=>(n==null?void 0:n.getContent())??{global:{}},[n]);return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsxs(y,{alignItems:"Center",justifyContent:"SpaceBetween",gap:"200",children:[a.jsx(x,{size:"L400",children:"Special Messages"}),a.jsxs(y,{gap:"100",children:[a.jsx(x,{size:"T200",children:"Badge: "}),a.jsx(Bt,{radii:"300",variant:"Success",fill:"Solid",children:a.jsx(x,{size:"L400",children:"1"})})]})]}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:`Mention User ID ("${t}")`,after:a.jsx(N_,{pushRules:r,ruleId:Yn.IsUserMention,defaultPushRuleData:Lqe(t)})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:`Contains Displayname ${e?`("${e}")`:""}`,after:a.jsx(N_,{pushRules:r,ruleId:Yn.ContainsDisplayName,defaultPushRuleData:Nqe})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:`Contains Username ("${ln(t)}")`,after:a.jsx(N_,{pushRules:r,ruleId:Yn.ContainsUserName,defaultPushRuleData:zqe(ln(t)??t)})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Mention @room",after:a.jsx(N_,{pushRules:r,ruleId:Yn.IsRoomMention,defaultPushRuleData:Uqe})})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Contains @room",after:a.jsx(N_,{pushRules:r,ruleId:Yn.AtRoomNotification,defaultPushRuleData:Vqe})})})]})}const Qne={highlight:!0};function Hqe(){const t=ge(),[e,n]=f.useState(""),[r,o]=et(f.useCallback(async c=>{t.addPushRule("global",Nn.ContentSpecific,c,{actions:Iu(Eo.Notify,Qne),pattern:c}),n("")},[t])),i=r.status===he.Loading,s=c=>{const d=c.currentTarget.value;n(d)},u=()=>{n("")},l=c=>{var F,h;if(c.preventDefault(),i)return;const d=(h=(F=c.target)==null?void 0:F.keywordInput)==null?void 0:h.value.trim();d&&o(d)};return a.jsxs(y,{as:"form",onSubmit:l,gap:"200","aria-disabled":i,children:[a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(En,{required:!0,name:"keywordInput",value:e,onChange:s,variant:"Secondary",radii:"300",style:{paddingRight:le.space.S200},readOnly:i,after:e&&!i&&a.jsx(Me,{type:"reset",onClick:u,size:"300",radii:"300",variant:"Secondary",children:a.jsx(Q,{src:$.Cross,size:"100"})})})}),a.jsxs(Ee,{size:"400",variant:"Secondary",fill:"Soft",outlined:!0,radii:"300",type:"submit",disabled:i,children:[i&&a.jsx(ot,{variant:"Secondary",size:"300"}),a.jsx(x,{size:"B400",children:"Save"})]})]})}function $qe({pushRule:t}){const e=ge(),[n,r]=et(f.useCallback(()=>e.deletePushRule("global",Nn.ContentSpecific,t.rule_id),[e,t])),o=n.status===he.Loading;return a.jsx(Me,{onClick:r,size:"300",radii:"Pill",variant:"Secondary",disabled:o,children:o?a.jsx(ot,{size:"100"}):a.jsx(Q,{src:$.Cross,size:"100"})})}function Wqe({pushRule:t}){const e=ge(),n=bS(Qne),r=f.useCallback(async o=>{const i=n(o);await e.setPushRuleActions("global",Nn.ContentSpecific,t.rule_id,i)},[e,n,t]);return a.jsx(iI,{pushRule:t,onChange:r})}function Kqe(){const t=kd(tr.PushRules),e=f.useMemo(()=>(t==null?void 0:t.getContent())??{global:{}},[t]),n=f.useMemo(()=>(e.global.content??[]).filter(r=>r.default===!1&&typeof r.pattern=="string"),[e]);return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsxs(y,{alignItems:"Center",justifyContent:"SpaceBetween",gap:"200",children:[a.jsx(x,{size:"L400",children:"Keyword Messages"}),a.jsxs(y,{gap:"100",children:[a.jsx(x,{size:"T200",children:"Badge: "}),a.jsx(Bt,{radii:"300",variant:"Success",fill:"Solid",children:a.jsx(x,{size:"L400",children:"1"})})]})]}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Select Keyword",description:"Set a notification preference for message containing given keyword.",children:a.jsx(Hqe,{})})}),n.map(r=>a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:`"${r.pattern}"`,before:a.jsx($qe,{pushRule:r}),after:a.jsx(Wqe,{pushRule:r})})},r.rule_id))]})}function Gqe({requestClose:t}){return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"Notifications"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsx(Bqe,{}),a.jsx(Mqe,{}),a.jsx(qqe,{}),a.jsx(Kqe,{}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Block Messages"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{description:'This option has been moved to "Account > Block Users" section.'})})]})]})})})})]})}const aI=t=>{const e=ge();f.useEffect(()=>(e.on(Jn.DevicesUpdated,t),()=>{e.removeListener(Jn.DevicesUpdated,t)}),[e,t])},Yqe=["devices"];function ere(){const t=ge(),e=f.useCallback(async()=>(await t.getDevices()).devices??[],[t]),{data:n,refetch:r}=op({queryKey:Yqe,queryFn:e,staleTime:0,gcTime:1/0,refetchOnMount:"always"}),o=f.useCallback(async()=>{await r()},[r]);return aI(f.useCallback(i=>{const s=t.getUserId();s&&i.includes(s)&&o()},[t,o])),[n??void 0,o]}const tre=t=>f.useMemo(()=>(t==null?void 0:t.map(e=>e.device_id))??[],[t]),nre=t=>{const e=ge().getDeviceId(),n=f.useMemo(()=>t==null?void 0:t.find(o=>o.device_id===e),[t,e]),r=f.useMemo(()=>t==null?void 0:t.filter(o=>o.device_id!==e),[t,e]);return[n,r]},h1=window.crypto.subtle||window.crypto.webkitSubtle;function ms(t,e){const n=new Error(t);return n.friendlyText=e,n}function F1(){return"Your browser does not support the required cryptography extensions"}async function rre(t,e,n){const r=new Date;let o;try{o=await h1.importKey("raw",new TextEncoder().encode(n),{name:"PBKDF2"},!1,["deriveBits"])}catch(d){throw ms(`subtleCrypto.importKey failed: ${d}`,F1())}let i;try{i=await h1.deriveBits({name:"PBKDF2",salt:t,iterations:e,hash:"SHA-512"},o,512)}catch(d){throw ms(`subtleCrypto.deriveBits failed: ${d}`,F1())}console.log(`E2e import/export: deriveKeys took ${new Date-r}ms`);const s=i.slice(0,32),u=i.slice(32),l=h1.importKey("raw",s,{name:"AES-CTR"},!1,["encrypt","decrypt"]).catch(d=>{throw ms(`subtleCrypto.importKey failed for AES key: ${d}`,F1())}),c=h1.importKey("raw",u,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign","verify"]).catch(d=>{throw ms(`subtleCrypto.importKey failed for HMAC key: ${d}`,F1())});return await Promise.all([l,c])}function Zqe(t){const e=window.atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;r+=1)n[r]=e.charCodeAt(r);return n}function Jqe(t){const e=String.fromCharCode.apply(null,t);return window.btoa(e)}const ore="-----BEGIN MEGOLM SESSION DATA-----",ire="-----END MEGOLM SESSION DATA-----";function Xqe(t){const e=new TextDecoder().decode(new Uint8Array(t));let n=0;for(;;){const i=e.indexOf(`
`,n);if(i<0)throw new Error("Header line not found");const s=e.slice(n,i).trim();if(n=i+1,s===ore)break}const r=n;for(;;){const i=e.indexOf(`
`,n);if(e.slice(n,i<0?void 0:i).trim()===ire)break;if(i<0)throw new Error("Trailer line not found");n=i+1}const o=n;return Zqe(e.slice(r,o))}function Qqe(t){const e=Math.ceil(t.length/96),n=new Array(e+3);n[0]=ore;let r=0,o;for(o=1;o<=e;o+=1)n[o]=Jqe(t.subarray(r,r+96)),r+=96;return n[o]=ire,o+=1,n[o]="",new TextEncoder().encode(n.join(`
`)).buffer}async function eHe(t,e){const n=Xqe(t);if(n.length<1)throw ms("Invalid file: too short","Not a valid keyfile");if(n[0]!==1)throw ms("Unsupported version","Not a valid keyfile");const r=n.length-69;if(r<0)throw ms("Invalid file: too short","Not a valid keyfile");const o=n.subarray(1,17),i=n.subarray(17,33),s=n[33]<<24|n[34]<<16|n[35]<<8|n[36],u=n.subarray(37,37+r),l=n.subarray(-32),[c,d]=await rre(o,s,e),F=n.subarray(0,-32);let h;try{h=await h1.verify({name:"HMAC"},d,l,F)}catch(D){throw ms(`subtleCrypto.verify failed: ${D}`,F1())}if(!h)throw ms("hmac mismatch","Authentication check failed: Incorrect password?");let m;try{m=await h1.decrypt({name:"AES-CTR",counter:i,length:64},c,u)}catch(D){throw ms(`subtleCrypto.decrypt failed: ${D}`,F1())}return new TextDecoder().decode(new Uint8Array(m))}async function tHe(t,e,n){n=n||{};const r=n.kdf_rounds||5e5,o=new Uint8Array(16);window.crypto.getRandomValues(o);const i=new Uint8Array(16);window.crypto.getRandomValues(i),i[8]&=127;const[s,u]=await rre(o,r,e),l=new TextEncoder().encode(t);let c;try{c=await h1.encrypt({name:"AES-CTR",counter:i,length:64},s,l)}catch(_){throw ms("subtleCrypto.encrypt failed: "+_,F1())}const d=new Uint8Array(c),F=1+o.length+i.length+4+d.length+32,h=new Uint8Array(F);let m=0;h[m++]=1,h.set(o,m),m+=o.length,h.set(i,m),m+=i.length,h[m++]=r>>24,h[m++]=r>>16&255,h[m++]=r>>8&255,h[m++]=r&255,h.set(d,m),m+=d.length;const D=h.subarray(0,m);let g;try{g=await h1.sign({name:"HMAC"},u,D)}catch(_){throw ms("subtleCrypto.sign failed: "+_,F1())}const p=new Uint8Array(g);return h.set(p,m),Qqe(h)}function nHe(){const t=ge(),e=yr(),[n,r]=et(f.useCallback(async s=>{const u=t.getCrypto();if(!u)throw new Error("Unexpected Error! Crypto module not found!");const l=await u.exportRoomKeysAsJson(),c=await tHe(l,s),d=new Blob([c],{type:"text/plain;charset=us-ascii"});Wh.saveAs(d,"cinny-keys.txt")},[t])),o=n.status===he.Loading,i=s=>{if(s.preventDefault(),o)return;const{passwordInput:u,confirmPasswordInput:l}=s.target,c=u.value,d=l.value;c===d&&r(c).then(()=>{e()&&(u.value="",l.value="")})};return a.jsx(gt,{children:a.jsxs(y,{as:"form",onSubmit:i,direction:"Column",gap:"100",children:[a.jsxs(y,{gap:"200",alignItems:"End",children:[a.jsx(C7,{initialValue:!0,children:(s,u,l,c)=>a.jsxs(a.Fragment,{children:[a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"New Password"}),a.jsx(Ka,{ref:l,name:"passwordInput",size:"400",variant:"Secondary",radii:"300",required:!0,onChange:u,readOnly:o,autoFocus:!0})]}),a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Confirm Password"}),a.jsx(Ka,{ref:c,style:{color:s?void 0:ct.Critical.Main},name:"confirmPasswordInput",size:"400",variant:"Secondary",radii:"300",required:!0,onChange:u,readOnly:o})]})]})}),a.jsx(Ee,{type:"submit",size:"400",variant:"Secondary",fill:"Soft",outlined:!0,radii:"300",disabled:o,before:o?a.jsx(ot,{size:"200",variant:"Secondary",fill:"Soft"}):void 0,children:a.jsx(x,{as:"span",size:"B400",children:"Export"})})]}),n.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:n.error.message})})]})})}function rHe(){const[t,e]=f.useState(!1);return a.jsxs(a.Fragment,{children:[a.jsx(gt,{title:"Export Messages Data",description:"Save password protected copy of encryption data on your device to decrypt messages later.",after:a.jsx(y,{children:a.jsx(Ee,{type:"button",onClick:()=>e(!t),size:"300",variant:"Secondary",fill:"Soft",outlined:!0,radii:"300",before:a.jsx(Q,{size:"100",src:t?$.ChevronTop:$.ChevronBottom,filled:!0}),children:a.jsx(x,{as:"span",size:"B300",truncate:!0,children:t?"Collapse":"Expand"})})})}),t&&a.jsx(nHe,{})]})}function oHe({file:t,onDone:e}){const n=ge(),r=yr(),[o,i]=et(f.useCallback(async l=>{const c=n.getCrypto();if(!c)throw new Error("Unexpected Error! Crypto module not found!");const d=await t.arrayBuffer(),F=await eHe(d,l);await c.importRoomKeysAsJson(F)},[t,n])),s=o.status===he.Loading;f.useEffect(()=>{o.status===he.Success&&(e==null||e())},[e,o]);const u=l=>{if(l.preventDefault(),s)return;const{passwordInput:c}=l.target,d=c.value;d&&i(d).then(()=>{r()&&(c.value="")})};return a.jsx(gt,{children:a.jsxs(y,{as:"form",onSubmit:u,direction:"Column",gap:"100",children:[a.jsxs(y,{gap:"200",alignItems:"End",children:[a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Password"}),a.jsx(Ka,{name:"passwordInput",size:"400",variant:"Secondary",radii:"300",required:!0,autoFocus:!0,readOnly:s})]}),a.jsx(Ee,{type:"submit",size:"400",variant:"Secondary",fill:"Soft",outlined:!0,radii:"300",disabled:s,before:s?a.jsx(ot,{size:"200",variant:"Secondary",fill:"Soft"}):void 0,children:a.jsx(x,{as:"span",size:"B400",children:"Decrypt"})})]}),o.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:o.error.message})})]})})}function iHe(){const[t,e]=f.useState(),n=x0(e),r=f.useCallback(()=>{e(void 0)},[]);return a.jsxs(a.Fragment,{children:[a.jsx(gt,{title:"Import Messages Data",description:"Load password protected copy of encryption data from device to decrypt your messages.",after:a.jsx(y,{children:t?a.jsx(Ee,{style:{maxWidth:Dt(200)},type:"button",onClick:()=>e(void 0),size:"300",variant:"Warning",fill:"Solid",radii:"300",before:a.jsx(Q,{size:"100",src:$.File,filled:!0}),after:a.jsx(Q,{size:"100",src:$.Cross}),children:a.jsx(x,{as:"span",size:"B300",truncate:!0,children:t.name})}):a.jsx(Ee,{type:"button",onClick:()=>n("text/plain"),size:"300",variant:"Secondary",fill:"Soft",outlined:!0,radii:"300",before:a.jsx(Q,{size:"100",src:$.ArrowRight}),children:a.jsx(x,{as:"span",size:"B300",children:"Import"})})})}),t&&a.jsx(oHe,{file:t,onDone:r})]})}function aHe(){return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Local Backup"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(rHe,{})}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(iHe,{})})]})}const sI=()=>{var t;return!!((t=kd(tr.CrossSigningMaster))!=null&&t.getContent())};var sHe="vcu13p0";function kD({variant:t="Primary",title:e,description:n,before:r,after:o,children:i}){return a.jsxs(y,{direction:"Column",className:Ve(sHe,ai({variant:t})),gap:"300",children:[a.jsxs(y,{gap:"200",alignItems:"Center",children:[r&&a.jsx(y,{shrink:"No",alignSelf:"Start",children:r}),a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[e&&a.jsx(x,{size:"L400",className:Fs,children:e}),n&&a.jsx(x,{size:"T200",className:Fs,children:n})]}),o&&a.jsx(y,{shrink:"No",children:o})]}),i]})}const are=async(t,e,n)=>{const r=await t.getDeviceVerificationStatus(e,n);return r?r.crossSigningVerified:null};var vc=(t=>(t[t.Unknown=0]="Unknown",t[t.Unverified=1]="Unverified",t[t.Verified=2]="Verified",t[t.Unsupported=3]="Unsupported",t))(vc||{});const uHe=(t,e,n,r)=>{const o=ge(),i=f.useCallback(async()=>{if(t&&n){const s=await are(t,e,n);if(s===null){r(3);return}r(s?2:1);return}r(0)},[t,n,e,r]);f.useEffect(()=>{i()},[o,i,e]),aI(f.useCallback(s=>{s.includes(e)&&i()},[e,i]))},U4=(t,e,n)=>{const[r,o]=f.useState(0);return uHe(t,e,n,o),r},sre=(t,e,n)=>{const[r,o]=f.useState(),i=yr(),s=f.useCallback(async()=>{let u=0;if(t){const l=n.map(d=>are(t,e,d)),c=await Promise.allSettled(l);q6(c).forEach(d=>{d===!1&&(u+=1)})}i()&&o(u)},[t,e,n,i]);return aI(f.useCallback(u=>{u.includes(e)&&s()},[e,s])),f.useEffect(()=>{s()},[s]),r},ure=f.forwardRef(({handleClose:t},e)=>{const n=ge(),r=!!n.getRooms().find(c=>c.hasEncryptionStateEvent()),o=sI(),i=U4(n.getCrypto(),n.getSafeUserId(),n.getDeviceId()??void 0),[s,u]=et(f.useCallback(async()=>{await GH(n)},[n])),l=s.status===he.Loading;return a.jsxs(cr,{variant:"Surface",ref:e,children:[a.jsx(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300},variant:"Surface",size:"500",children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Logout"})})}),a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[r&&(o?i===vc.Unverified&&a.jsx(kD,{variant:"Critical",title:"Unverified Device",description:"Verify your device before logging out to save your encrypted messages."}):a.jsx(kD,{variant:"Critical",title:"Alert",description:"Enable device verification or export your encrypted data from settings to avoid losing access to your messages."})),a.jsx(x,{priority:"400",children:"You\u2019re about to log out. Are you sure?"}),s.status===he.Error&&a.jsxs(x,{style:{color:ct.Critical.Main},size:"T300",children:["Failed to logout! ",s.error.message]}),a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(Ee,{variant:"Critical",onClick:u,disabled:l,before:l&&a.jsx(ot,{variant:"Critical",fill:"Solid",size:"200"}),children:a.jsx(x,{size:"B400",children:"Logout"})}),a.jsx(Ee,{variant:"Secondary",fill:"Soft",onClick:t,disabled:l,children:a.jsx(x,{size:"B400",children:"Cancel"})})]})]})]})});function uI(){return a.jsx(rt,{className:Nt,style:{height:Dt(66)},variant:"SurfaceVariant",direction:"Column",gap:"400"})}function lHe({ts:t}){return a.jsxs(x,{className:Fs,size:"T200",children:[a.jsx(x,{size:"Inherit",as:"span",priority:"300",children:"Last activity: "}),a.jsxs(a.Fragment,{children:[N8(t)&&"Today",z8(t)&&"Yesterday",!N8(t)&&!z8(t)&&tY(t)," ",O3(t)]})]})}function cHe({device:t}){return a.jsxs(a.Fragment,{children:[typeof t.device_id=="string"&&a.jsxs(x,{className:Fs,size:"T200",priority:"300",children:["Device ID: ",a.jsx("i",{children:t.device_id})]}),typeof t.last_seen_ip=="string"&&a.jsxs(x,{className:Fs,size:"T200",priority:"300",children:["IP Address: ",a.jsx("i",{children:t.last_seen_ip})]})]})}function dHe({crypto:t}){const[e,n]=et(f.useCallback(()=>t.getOwnDeviceKeys(),[t]));return f.useEffect(()=>{n()},[n]),e.status===he.Error?null:a.jsxs(x,{className:Fs,size:"T200",priority:"300",children:["Device Key:"," ",a.jsx("i",{children:e.status===he.Success?e.data.ed25519:"loading..."})]})}function hHe({device:t,onCancel:e,onRename:n,refreshDeviceList:r}){const o=ge(),[i,s]=et(f.useCallback(async c=>{await o.setDeviceDetails(t.device_id,{display_name:c}),await r()},[o,t.device_id,r])),u=i.status===he.Loading;f.useEffect(()=>{i.status===he.Success&&n()},[i,n]);const l=c=>{var h;if(c.preventDefault(),u)return;const d=(h=c.target)==null?void 0:h.nameInput;if(!d)return;const F=d.value.trim();!F||F===t.display_name||s(F)};return a.jsxs(y,{as:"form",onSubmit:l,direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Device Name"}),a.jsxs(y,{gap:"200",children:[a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(En,{name:"nameInput",size:"300",variant:"Secondary",radii:"300",defaultValue:t.display_name,autoFocus:!0,required:!0,readOnly:u})}),a.jsxs(y,{shrink:"No",gap:"200",children:[a.jsx(Ee,{type:"submit",size:"300",variant:"Success",radii:"300",fill:"Solid",disabled:u,before:u&&a.jsx(ot,{size:"100",variant:"Success",fill:"Solid"}),children:a.jsx(x,{size:"B300",children:"Save"})}),a.jsx(Ee,{type:"button",size:"300",variant:"Secondary",radii:"300",fill:"Soft",onClick:e,disabled:u,children:a.jsx(x,{size:"B300",children:"Cancel"})})]})]}),i.status===he.Error?a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:i.error.message}):a.jsx(x,{size:"T200",children:"Device names are visible to public."})]})}function FHe(){const[t,e]=f.useState(!1),n=()=>e(!1);return a.jsxs(a.Fragment,{children:[a.jsx(We,{variant:"Secondary",fill:"Soft",radii:"Pill",onClick:()=>e(!0),children:a.jsx(x,{size:"B300",children:"Logout"})}),t&&a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{onDeactivate:n,clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(ure,{handleClose:n})})})})]})}function mHe({deviceId:t,deleted:e,onDeleteToggle:n,disabled:r}){return e?a.jsx(We,{variant:"Critical",fill:"None",radii:"Pill",onClick:()=>n(t),disabled:r,children:a.jsx(x,{size:"B300",children:"Undo"})}):a.jsx(We,{variant:"Secondary",fill:"None",radii:"Pill",onClick:()=>n(t),disabled:r,children:a.jsx(Q,{size:"50",src:$.Delete})})}function lre({device:t,deleted:e,refreshDeviceList:n,disabled:r,options:o,children:i}){const s=t.last_seen_ts,[u,l]=f.useState(!1),[c,d]=f.useState(!1),F=f.useCallback(()=>{d(!1)},[]);return a.jsxs(a.Fragment,{children:[a.jsxs(gt,{before:a.jsx(Me,{variant:e?"Critical":"Secondary",outlined:e,radii:"300",onClick:()=>l(!u),children:a.jsx(Q,{size:"50",src:u?$.ChevronBottom:$.ChevronRight})}),after:!c&&a.jsxs(y,{shrink:"No",alignItems:"Center",gap:"200",children:[o,!e&&a.jsx(We,{variant:"Secondary",radii:"Pill",onClick:()=>d(!0),disabled:r,children:a.jsx(x,{size:"B300",children:"Edit"})})]}),children:[a.jsx(x,{size:"T300",children:t.display_name??t.device_id}),a.jsxs(y,{direction:"Column",children:[typeof s=="number"&&a.jsx(lHe,{ts:s}),u&&a.jsxs(a.Fragment,{children:[a.jsx(cHe,{device:t}),i]})]})]}),c&&a.jsx(hHe,{device:t,onCancel:()=>d(!1),onRename:F,refreshDeviceList:n})]})}const DHe=[Jt.Password,Jt.Sso];function cre({authData:t,ongoingFlow:e,action:n,onCancel:r}){const o=ge(),i=m7(t),{getStageToComplete:s}=IH(t,e),u=s();return u?a.jsxs(E7,{currentStep:i.length+1,stepCount:e.stages.length,onCancel:r,children:[u.type===Jt.Password&&a.jsx(o3e,{userId:o.getUserId(),stageData:u,onCancel:r,submitAuthDict:n}),u.type===Jt.Sso&&u.session&&a.jsx(I3e,{ssoRedirectURL:o.getFallbackAuthUrl(Jt.Sso,u.session),stageData:u,onCancel:r,submitAuthDict:n})]}):null}function dre({authData:t,unsupported:e,children:n}){const r=AH(t.flows??[],DHe),o=r.length>0?r[0]:void 0;return o?n(o):e()}function gHe({crypto:t,userId:e,deviceId:n,children:r}){const o=U4(t,e,n);return r(o)}function pHe({processing:t,keyContent:e,passphraseContent:n,onDecodedRecoveryKey:r}){const o=ge(),i=yr(),[s,u]=et(f.useCallback(async(d,F,h,m)=>{const D=await II(d,F,h,m);if(!await o.secretStorage.checkKey(D,e))throw new Error("Invalid recovery passphrase.");return D},[o,e])),l=s.status===he.Loading||t,c=d=>{var p;if(l)return;d.preventDefault();const F=(p=d.target)==null?void 0:p.recoveryPassphraseInput;if(!F)return;const h=F.value.trim();if(!h)return;const{salt:m,iterations:D,bits:g}=n;u(h,m,D,g).then(_=>{i()&&(F.value="",r(_))})};return a.jsxs(y,{as:"form",onSubmit:c,direction:"Column",gap:"100",children:[a.jsxs(y,{gap:"200",alignItems:"End",children:[a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Recovery Passphrase"}),a.jsx(Ka,{name:"recoveryPassphraseInput",size:"400",variant:"Secondary",radii:"300",autoFocus:!0,required:!0,outlined:!0,readOnly:l})]}),a.jsx(y,{shrink:"No",gap:"200",children:a.jsx(Ee,{type:"submit",variant:"Success",size:"400",radii:"300",disabled:l,before:l&&a.jsx(ot,{size:"200",variant:"Success",fill:"Solid"}),children:a.jsx(x,{as:"span",size:"B400",children:"Verify"})})})]}),s.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:s.error.message})})]})}function fHe({processing:t,keyContent:e,onDecodedRecoveryKey:n}){const r=ge(),o=yr(),[i,s]=et(f.useCallback(async c=>{const d=TDe(c);if(!await r.secretStorage.checkKey(d,e))throw new Error("Invalid recovery key.");return d},[r,e])),u=i.status===he.Loading||t,l=c=>{var h;c.preventDefault();const d=(h=c.target)==null?void 0:h.recoveryKeyInput;if(!d)return;const F=d.value.trim();F&&s(F).then(m=>{o()&&(d.value="",n(m))})};return a.jsxs(y,{as:"form",onSubmit:l,direction:"Column",gap:"100",children:[a.jsxs(y,{gap:"200",alignItems:"End",children:[a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Recovery Key"}),a.jsx(Ka,{name:"recoveryKeyInput",size:"400",variant:"Secondary",radii:"300",autoFocus:!0,required:!0,outlined:!0,readOnly:u})]}),a.jsx(y,{shrink:"No",gap:"200",children:a.jsx(Ee,{type:"submit",variant:"Success",size:"400",radii:"300",disabled:u,before:u&&a.jsx(ot,{size:"200",variant:"Success",fill:"Solid"}),children:a.jsx(x,{as:"span",size:"B400",children:"Verify"})})})]}),i.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:i.error.message})})]})}function _He({value:t,onChange:e}){const[n,r]=f.useState(),o=s=>{r(s.currentTarget.getBoundingClientRect())},i=s=>{r(void 0),e(s)};return a.jsxs(a.Fragment,{children:[a.jsx(We,{type:"button",variant:"Secondary",fill:"Soft",radii:"Pill",before:a.jsx(Q,{size:"100",src:$.ChevronBottom}),onClick:o,children:a.jsxs(x,{as:"span",size:"B300",children:[t==="passphrase"&&"Recovery Passphrase",t==="key"&&"Recovery Key"]})}),a.jsx(Ut,{anchor:n,offset:5,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>r(void 0),clickOutsideDeactivates:!0,isKeyForward:s=>s.key==="ArrowDown"||s.key==="ArrowRight",isKeyBackward:s=>s.key==="ArrowUp"||s.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(zt,{children:a.jsxs(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:[a.jsx(tt,{size:"300",variant:"Surface","aria-selected":t==="passphrase",radii:"300",onClick:()=>i("passphrase"),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T300",children:"Recovery Passphrase"})})}),a.jsx(tt,{size:"300",variant:"Surface","aria-selected":t==="key",radii:"300",onClick:()=>i("key"),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T300",children:"Recovery Key"})})})]})})})})]})}function vHe({secretStorageKeyId:t,secretStorageKeyContent:e,options:n}){const r=ge(),o=!!e.passphrase,[i,s]=f.useState(o?"passphrase":"key"),u=f.useCallback(async F=>{const h=r.getCrypto();if(!h)throw new Error("Unexpected Error! Crypto object not found.");Z3e(t,F),await h.bootstrapCrossSigning({}),await h.bootstrapSecretStorage({}),await h.loadSessionBackupPrivateKeyFromSecretStorage()},[r,t]),[l,c]=et(u),d=l.status===he.Loading;return a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(gt,{title:"Verify Manually",description:o?"Select a verification method.":"Provide recovery key.",after:a.jsxs(y,{alignItems:"Center",gap:"200",children:[o&&a.jsx(_He,{value:i,onChange:s}),n]})}),l.status===he.Success?a.jsx(x,{size:"T200",style:{color:ct.Success.Main},children:a.jsx("b",{children:"Device verified!"})}):a.jsxs(y,{direction:"Column",gap:"100",children:[i==="key"&&a.jsx(fHe,{processing:d,keyContent:e,onDecodedRecoveryKey:c}),i==="passphrase"&&e.passphrase&&a.jsx(pHe,{processing:d,keyContent:e,passphraseContent:e.passphrase,onDecodedRecoveryKey:c}),l.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:l.error.message})})]})]})}jI=function(t){return t.Sas="m.sas.v1",t.ShowQrCode="m.qr_code.show.v1",t.ScanQrCode="m.qr_code.scan.v1",t.Reciprocate="m.reciprocate.v1",t}({});const bHe=t=>{const e=ge();f.useEffect(()=>(e.on(Jn.VerificationRequestReceived,t),()=>{e.removeListener(Jn.VerificationRequestReceived,t)}),[e,t])},CHe=(t,e)=>{f.useEffect(()=>(t.on(sx.Change,e),()=>{t.removeListener(sx.Change,e)}),[t,e])},EHe=t=>{const[e,n]=f.useState(()=>t.phase);return CHe(t,f.useCallback(()=>{n(t.phase)},[t])),e},yHe=(t,e)=>{f.useEffect(()=>(t.on(KD.Cancel,e),()=>{t.removeListener(KD.Cancel,e)}),[t,e])},xHe=(t,e)=>{f.useEffect(()=>(t.on(KD.ShowSas,e),()=>{t.removeListener(KD.ShowSas,e)}),[t,e])},wHe={padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300};function V4({message:t}){return a.jsxs(y,{alignItems:"Center",gap:"200",children:[a.jsx(ot,{variant:"Secondary",size:"200"}),a.jsx(x,{size:"T300",children:t})]})}function kHe({message:t,onClose:e}){return a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(x,{children:t}),a.jsx(Ee,{variant:"Secondary",fill:"Soft",onClick:e,children:a.jsx(x,{size:"B400",children:"Close"})})]})}function SHe(){return a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(x,{children:"Please accept the request from other device."}),a.jsx(V4,{message:"Waiting for request to be accepted..."})]})}function jHe({onAccept:t}){const[e,n]=et(t),r=e.status===he.Loading;return a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(x,{children:"Click accept to start the verification process."}),a.jsx(Ee,{variant:"Primary",fill:"Solid",onClick:n,before:r&&a.jsx(ot,{size:"100",variant:"Primary",fill:"Solid"}),disabled:r,children:a.jsx(x,{size:"B400",children:"Accept"})})]})}function BHe(){return a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(x,{children:"Verification request has been accepted."}),a.jsx(V4,{message:"Waiting for the response from other device..."})]})}function AHe({onStart:t}){return f.useEffect(()=>{t()},[t]),a.jsx(y,{direction:"Column",gap:"400",children:a.jsx(V4,{message:"Starting verification using emoji comparison..."})})}function THe({sasData:t}){var o;const[e,n]=et(f.useCallback(()=>t.confirm(),[t])),r=e.status===he.Loading||e.status===he.Success;return a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(x,{children:"Confirm the emoji below are displayed on both devices, in the same order:"}),a.jsx(y,{className:ai({variant:"SurfaceVariant"}),style:{borderRadius:le.radii.R400,padding:le.space.S500},gap:"700",wrap:"Wrap",justifyContent:"Center",children:(o=t.sas.emoji)==null?void 0:o.map(([i,s],u)=>a.jsxs(y,{direction:"Column",gap:"100",justifyContent:"Center",alignItems:"Center",children:[a.jsx(x,{size:"H1",children:i}),a.jsx(x,{size:"T200",children:s})]},`${i}${s}${u}`))}),a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(Ee,{variant:"Primary",fill:"Soft",onClick:n,disabled:r,before:r&&a.jsx(ot,{size:"100",variant:"Primary"}),children:a.jsx(x,{size:"B400",children:"They Match"})}),a.jsx(Ee,{variant:"Primary",fill:"Soft",onClick:()=>t.mismatch(),disabled:r,children:a.jsx(x,{size:"B400",children:"Do not Match"})})]})]})}function IHe({verifier:t,onCancel:e}){const[n,r]=f.useState();return xHe(t,r),yHe(t,e),f.useEffect(()=>{t.verify()},[t]),n?a.jsx(THe,{sasData:n}):a.jsx(y,{direction:"Column",gap:"400",children:a.jsx(V4,{message:"Starting verification using emoji comparison..."})})}function RHe({onExit:t}){return a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx("div",{children:a.jsx(x,{children:"Your device is verified."})}),a.jsx(Ee,{variant:"Primary",fill:"Solid",onClick:t,children:a.jsx(x,{size:"B400",children:"Okay"})})]})}function OHe({onClose:t}){return a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(x,{children:"Verification has been canceled."}),a.jsx(Ee,{variant:"Secondary",fill:"Soft",onClick:t,children:a.jsx(x,{size:"B400",children:"Close"})})]})}function hre({request:t,onExit:e}){const n=EHe(t),r=f.useCallback(()=>{t.phase!==Ec.Done&&t.phase!==Ec.Cancelled&&t.cancel(),e()},[t,e]),o=f.useCallback(()=>t.accept(),[t]),i=f.useCallback(async()=>{await t.startVerification(jI.Sas)},[t]);return a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,clickOutsideDeactivates:!1,escapeDeactivates:!1},children:a.jsxs(cr,{variant:"Surface",children:[a.jsxs(In,{style:wHe,variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Device Verification"})}),a.jsx(Me,{size:"300",radii:"300",onClick:r,children:a.jsx(Q,{src:$.Cross})})]}),a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[n===Ec.Requested&&(t.initiatedByMe?a.jsx(SHe,{}):a.jsx(jHe,{onAccept:o})),n===Ec.Ready&&(t.initiatedByMe?a.jsx(AHe,{onStart:i}):a.jsx(BHe,{})),n===Ec.Started&&(t.verifier?a.jsx(IHe,{verifier:t.verifier,onCancel:r}):a.jsx(kHe,{message:"Unexpected Error! Verification is started but verifier is missing.",onClose:r})),n===Ec.Done&&a.jsx(RHe,{onExit:e}),n===Ec.Cancelled&&a.jsx(OHe,{onClose:r})]})]})})})})}function MHe(){const[t,e]=f.useState();bHe(e);const n=f.useCallback(()=>{e(void 0)},[]);return!t||!t.isSelfVerification?null:a.jsx(hre,{request:t,onExit:n})}function PHe(t,e,n,r){return{authData:t,callback:async o=>{const[i,s]=await ei(e(o));if(i instanceof tn&&i.httpStatus===401)return[i.data,void 0];if(i)throw r(i),i;return n(s),[void 0,s]},cancelCallback:r}}function Fre({onComplete:t}){const e=ge(),n=yr(),[r,o]=f.useState(),[i,s]=f.useState(),u=f.useCallback(async D=>{if(!r)throw new Error("Unexpected Error! UIA action is perform without data.");n()&&s(null);const[g]=await r.callback(D);n()&&g&&s(g)},[r,n]),l=f.useCallback(()=>{n()&&(o(void 0),s(void 0))},[n]),c=f.useCallback(D=>new Promise((g,p)=>{D(null).then(()=>{g(),l()}).catch(_=>{if(_ instanceof tn&&_.httpStatus===401){const v=_.data,E=PHe(v,D,g,b=>{l(),p(b)});n()?o(E):p(new Error("Authentication failed! Failed to setup device verification."));return}p(_)})}),[n,l]),[d,F]=et(f.useCallback(async D=>{const g=e.getCrypto();if(!g)throw new Error("Unexpected Error! Crypto module not found!");const p=await g.createRecoveryKeyFromPassphrase(D);if(!p.encodedPrivateKey)throw new Error("Unexpected Error! Failed to create recovery key.");Q3e(),await g.bootstrapSecretStorage({createSecretStorageKey:async()=>p,setupNewSecretStorage:!0}),await g.bootstrapCrossSigning({authUploadDeviceSigningKeys:c,setupNewCrossSigning:!0}),await g.resetKeyBackup(),t(p.encodedPrivateKey)},[e,t,c])),h=d.status===he.Loading,m=D=>{var _;if(D.preventDefault(),h)return;const g=(_=D.target)==null?void 0:_.passphraseInput;let p;g&&g.value.length>0&&(p=g.value),F(p)};return a.jsxs(y,{as:"form",onSubmit:m,direction:"Column",gap:"400",children:[a.jsxs(x,{size:"T300",children:["Generate a ",a.jsx("b",{children:"Recovery Key"})," for verifying identity if you do not have access to other devices. Additionally, setup a passphrase as a memorable alternative."]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Passphrase (Optional)"}),a.jsx(Ka,{name:"passphraseInput",size:"400",readOnly:h})]}),a.jsx(Ee,{type:"submit",disabled:h,before:h&&a.jsx(ot,{size:"200",variant:"Primary",fill:"Solid"}),children:a.jsx(x,{size:"B400",children:"Continue"})}),d.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:d.error?d.error.message:"Unexpected Error!"})}),i!==null&&r&&a.jsx(dre,{authData:i??r.authData,unsupported:()=>a.jsx(x,{size:"T200",children:"Authentication steps to perform this action are not supported by client."}),children:D=>a.jsx(cre,{authData:i??r.authData,ongoingFlow:D,action:u,onCancel:r.cancelCallback})})]})}function mre({recoveryKey:t}){const[e,n]=f.useState(!1),r=()=>{Vl(t)},o=()=>{const s=new Blob([t],{type:"text/plain;charset=us-ascii"});Wh.saveAs(s,"recovery-key.txt")},i=e?t:t.replace(/[^\s]/g,"*");return a.jsxs(y,{direction:"Column",gap:"400",children:[a.jsx(x,{size:"T300",children:"Store the Recovery Key in a safe place for future use, as you will need it to verify your identity if you do not have access to other devices."}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Recovery Key"}),a.jsxs(y,{className:ai({variant:"SurfaceVariant"}),style:{padding:le.space.S300,borderRadius:le.radii.R400},alignItems:"Center",justifyContent:"Center",gap:"400",children:[a.jsx(x,{style:{fontFamily:"monospace"},size:"T200",priority:"300",children:i}),a.jsx(We,{onClick:()=>n(!e),variant:"Secondary",radii:"Pill",children:a.jsx(x,{size:"B300",children:e?"Hide":"Show"})})]})]}),a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(Ee,{onClick:r,children:a.jsx(x,{size:"B400",children:"Copy"})}),a.jsx(Ee,{onClick:o,fill:"Soft",children:a.jsx(x,{size:"B400",children:"Download"})})]})]})}const LHe=f.forwardRef(({onCancel:t},e)=>{const[n,r]=f.useState();return a.jsxs(cr,{ref:e,children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Setup Device Verification"})}),a.jsx(Me,{size:"300",radii:"300",onClick:t,children:a.jsx(Q,{src:$.Cross})})]}),a.jsx(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:n?a.jsx(mre,{recoveryKey:n}):a.jsx(Fre,{onComplete:r})})]})}),NHe=f.forwardRef(({onCancel:t},e)=>{const[n,r]=f.useState(!1);return a.jsxs(cr,{ref:e,children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Reset Device Verification"})}),a.jsx(Me,{size:"300",radii:"300",onClick:t,children:a.jsx(Q,{src:$.Cross})})]}),n?a.jsx(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:a.jsx(Oo,{initial:void 0,children:(o,i)=>o?a.jsx(mre,{recoveryKey:o}):a.jsx(Fre,{onComplete:i})})}):a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(x,{size:"H1",children:"\u270B\u{1F9D1}\u200D\u{1F692}\u{1F91A}"}),a.jsx(x,{size:"T300",children:"Resetting device verification is permanent."}),a.jsxs(x,{size:"T300",children:["Anyone you have verified with will see security alerts and your encryption backup will be lost. You almost certainly do not want to do this, unless you have lost"," ",a.jsx("b",{children:"Recovery Key"})," or ",a.jsx("b",{children:"Recovery Passphrase"})," and every device you can verify from."]})]}),a.jsx(Ee,{variant:"Critical",onClick:()=>r(!0),children:a.jsx(x,{size:"B400",children:"Reset"})})]})]})});function zHe({verificationStatus:t,otherUnverifiedCount:e}){return t===vc.Unknown||typeof e!="number"?a.jsx(ot,{size:"400",variant:"Secondary"}):t===vc.Unverified?a.jsx(Bt,{variant:"Critical",fill:"Solid",size:"500",children:a.jsx(x,{size:"L400",children:"Unverified"})}):e>0?a.jsx(Bt,{variant:"Warning",fill:"Solid",size:"500",children:a.jsxs(x,{size:"L400",children:[e," Unverified"]})}):a.jsx(Bt,{variant:"Success",fill:"Solid",size:"500",children:a.jsx(x,{size:"L400",children:"Verified"})})}function UHe(){return a.jsxs(y,{direction:"Column",children:[a.jsx(x,{size:"T200",children:"Steps to verify from other device."}),a.jsx(x,{as:"div",size:"T200",children:a.jsxs("ul",{style:{margin:`${le.space.S100} 0`},children:[a.jsx("li",{children:"Open your other verified device."}),a.jsxs("li",{children:["Open ",a.jsx("i",{children:"Settings"}),"."]}),a.jsxs("li",{children:["Find this device in ",a.jsx("i",{children:"Devices/Sessions"})," section."]}),a.jsx("li",{children:"Initiate verification."})]})}),a.jsxs(x,{size:"T200",children:["If you do not have any verified device press the ",a.jsx("i",{children:'"Verify Manually"'})," button."]})]})}function VHe({secretStorageKeyId:t,secretStorageKeyContent:e}){const[n,r]=f.useState(!1),[o,i]=f.useState(!1),s=()=>i(!1);return a.jsxs(a.Fragment,{children:[a.jsx(kD,{variant:"Critical",title:"Unverified",description:a.jsxs(a.Fragment,{children:["Start verification from other device or verify manually."," ",a.jsx(x,{as:"a",size:"T200",onClick:()=>r(!n),children:a.jsx("b",{children:n?"View Less":"Learn More"})})]}),after:!o&&a.jsx(Ee,{size:"300",variant:"Critical",fill:"Soft",radii:"300",outlined:!0,onClick:()=>i(!0),children:a.jsx(x,{as:"span",size:"B300",children:"Verify Manually"})}),children:n&&a.jsx(UHe,{})}),o&&a.jsx(vHe,{secretStorageKeyId:t,secretStorageKeyContent:e,options:a.jsx(We,{type:"button",variant:"Secondary",fill:"Soft",radii:"Pill",onClick:s,children:a.jsx(Q,{size:"100",src:$.Cross})})})]})}function qHe({crypto:t,deviceId:e}){const n=ge(),[r,o]=f.useState({status:he.Idle}),i=bk(f.useCallback(()=>t.requestDeviceVerification(n.getSafeUserId(),e),[n,t,e]),o),s=f.useCallback(()=>{o({status:he.Idle})},[]),u=r.status===he.Loading;return a.jsxs(kD,{variant:"Warning",title:"Unverified",description:"Verify device identity and grant access to encrypted messages.",after:a.jsx(Ee,{size:"300",variant:"Warning",radii:"300",onClick:i,before:u&&a.jsx(ot,{size:"100",variant:"Warning",fill:"Solid"}),disabled:u,children:a.jsx(x,{as:"span",size:"B300",children:"Verify"})}),children:[r.status===he.Error&&a.jsx(x,{size:"T200",children:r.error.message}),r.status===he.Success&&a.jsx(hre,{request:r.data,onExit:s})]})}function HHe({visible:t}){const[e,n]=f.useState(!1),r=f.useCallback(()=>n(!1),[]);return a.jsxs(a.Fragment,{children:[t&&a.jsx(Ee,{size:"300",radii:"300",onClick:()=>n(!0),children:a.jsx(x,{as:"span",size:"B300",children:"Enable"})}),e&&a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,clickOutsideDeactivates:!1,escapeDeactivates:!1},children:a.jsx(LHe,{onCancel:r})})})})]})}function $He(){const[t,e]=f.useState(),[n,r]=f.useState(!1),o=f.useCallback(()=>{r(!1)},[]),i=u=>{e(u.currentTarget.getBoundingClientRect())},s=()=>{e(void 0),r(!0)};return a.jsxs(a.Fragment,{children:[a.jsx(Me,{"aria-pressed":!!t,variant:"SurfaceVariant",size:"300",radii:"300",onClick:i,children:a.jsx(Q,{size:"100",src:$.VerticalDots})}),a.jsx(Ut,{anchor:t,offset:5,position:"Bottom",align:"Center",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>e(void 0),clickOutsideDeactivates:!0,isKeyForward:u=>u.key==="ArrowDown"||u.key==="ArrowRight",isKeyBackward:u=>u.key==="ArrowUp"||u.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(zt,{children:a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:a.jsx(tt,{variant:"Critical",onClick:s,size:"300",radii:"300",fill:"None",children:a.jsx(x,{as:"span",size:"T300",truncate:!0,children:"Reset"})})})})})}),n&&a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,clickOutsideDeactivates:!1,escapeDeactivates:!1},children:a.jsx(NHe,{onCancel:o})})})})]})}function WHe({devices:t,refreshDeviceList:e,showVerification:n}){const r=ge(),o=r.getCrypto(),[i,s]=f.useState(new Set),u=f.useCallback(p=>{s(_=>{const v=new Set(_);return v.has(p)?v.delete(p):v.add(p),v})},[]),[l,c]=f.useState({status:he.Idle}),d=bk(f.useCallback(async p=>{await r.deleteMultipleDevices(Array.from(i),p)},[r,i]),f.useCallback(p=>{p.status===he.Success&&(s(new Set),e()),c(p)},[e])),[F,h]=Qfe(l.status===he.Error?l.error:void 0),m=l.status===he.Loading||F!==void 0,D=()=>s(new Set),g=f.useCallback(()=>{c({status:he.Idle})},[]);return t.length>0?a.jsxs(a.Fragment,{children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Others"}),t.sort((p,_)=>!p.last_seen_ts||!_.last_seen_ts?0:p.last_seen_ts<_.last_seen_ts?1:-1).map(p=>a.jsxs(rt,{className:Nt,variant:i.has(p.device_id)?"Critical":"SurfaceVariant",direction:"Column",gap:"400",children:[a.jsx(lre,{device:p,deleted:i.has(p.device_id),refreshDeviceList:e,disabled:m,options:a.jsx(mHe,{deviceId:p.device_id,deleted:i.has(p.device_id),onDeleteToggle:u,disabled:m})}),n&&o&&a.jsx(gHe,{crypto:o,userId:r.getSafeUserId(),deviceId:p.device_id,children:_=>_===vc.Unverified&&a.jsx(qHe,{crypto:o,deviceId:p.device_id})})]},p.device_id))]}),i.size>0&&a.jsx(zt,{style:{position:"sticky",padding:le.space.S200,paddingLeft:le.space.S400,bottom:le.space.S400,left:le.space.S400,right:0,zIndex:1},variant:"Critical",children:a.jsxs(y,{alignItems:"Center",gap:"400",children:[a.jsxs(y,{grow:"Yes",direction:"Column",children:[h?a.jsx(x,{size:"T200",children:a.jsxs("b",{children:["Failed to logout devices! Please try again. ",h.message]})}):a.jsx(x,{size:"T200",children:a.jsxs("b",{children:["Logout from selected devices. (",i.size," selected)"]})}),F&&a.jsx(dre,{authData:F,unsupported:()=>a.jsx(x,{size:"T200",children:"Authentication steps to perform this action are not supported by client."}),children:p=>a.jsx(cre,{authData:F,ongoingFlow:p,action:d,onCancel:g})})]}),a.jsxs(y,{shrink:"No",gap:"200",children:[a.jsx(Ee,{size:"300",variant:"Critical",fill:"None",radii:"300",disabled:m,onClick:D,children:a.jsx(x,{size:"B300",children:"Cancel"})}),a.jsx(Ee,{size:"300",variant:"Critical",radii:"300",disabled:m,before:m&&a.jsx(ot,{variant:"Critical",fill:"Solid",size:"100"}),onClick:()=>d(),children:a.jsx(x,{size:"B300",children:"Logout"})})]})]})})]}):null}const KHe=t=>`m.secret_storage.key.${t}`,GHe=()=>{var t;return(t=kd(tr.SecretStorageDefaultKey))==null?void 0:t.getContent().key},YHe=t=>{var e;return(e=kd(KHe(t)))==null?void 0:e.getContent()};var z_=(t=>(t[t.Idle=0]="Idle",t[t.Fetching=1]="Fetching",t[t.Loading=2]="Loading",t[t.Done=3]="Done",t))(z_||{});const q4=Bn({status:0}),Dre=Bn(t=>t(q4),(t,e,n)=>{if(n.stage===nx.Fetch){e(q4,{status:1});return}if(n.stage===nx.LoadKeys){const{total:r,successes:o,failures:i}=n,s=o+i;if(s===r){e(q4,{status:3});return}e(q4,{status:2,data:{downloaded:s,successes:o,failures:i,total:r}})}}),lI=t=>{const e=ge();f.useEffect(()=>(e.on(Jn.KeyBackupStatus,t),()=>{e.removeListener(Jn.KeyBackupStatus,t)}),[e,t])},ZHe=t=>{const e=yr(),[n,r]=f.useState(!1);return f.useEffect(()=>{t.getActiveSessionBackupVersion().then(o=>{e()&&r(typeof o=="string")})},[t,e]),lI(r),n},gre=t=>{const e=ge();f.useEffect(()=>(e.on(Jn.KeyBackupSessionsRemaining,t),()=>{e.removeListener(Jn.KeyBackupSessionsRemaining,t)}),[e,t])},JHe=t=>{const e=ge();f.useEffect(()=>(e.on(Jn.KeyBackupFailed,t),()=>{e.removeListener(Jn.KeyBackupFailed,t)}),[e,t])},pre=t=>{const e=ge();f.useEffect(()=>(e.on(Jn.KeyBackupDecryptionKeyCached,t),()=>{e.removeListener(Jn.KeyBackupDecryptionKeyCached,t)}),[e,t])},XHe=()=>{const[t,e]=f.useState(0),[n,r]=f.useState();return gre(f.useCallback(o=>{e(o),r(void 0)},[])),JHe(f.useCallback(o=>{typeof o=="string"&&(r(o),e(0))},[])),[t,n]},QHe=t=>{const e=yr(),[n,r]=f.useState(),o=f.useCallback(()=>{t.getKeyBackupInfo().then(i=>{e()&&r(i)})},[t,e]);return f.useEffect(()=>{o()},[o]),lI(o),gre(f.useCallback(i=>{i===0&&o()},[o])),n},e$e=(t,e)=>{const n=yr(),[r,o]=f.useState(),i=f.useCallback(()=>{t.isKeyBackupTrusted(e).then(s=>{n()&&o(s)})},[t,n,e]);return f.useEffect(()=>{i()},[i]),lI(i),pre(i),r},t$e=()=>{const t=Di(Dre),e=ge();pre(f.useCallback(()=>{const n=e.getCrypto();n&&n.restoreKeyBackup({progressCallback(r){t(r)}})},[e,t]))};function n$e({enabled:t}){return a.jsxs(y,{as:"span",gap:"100",alignItems:"Center",children:[a.jsx(Bt,{variant:t?"Success":"Critical",fill:"Solid",size:"200",radii:"Pill"}),a.jsx(x,{as:"span",size:"L400",style:{color:t?ct.Success.Main:ct.Critical.Main},children:t?"Connected":"Disconnected"})]})}function r$e({count:t}){return a.jsxs(y,{as:"span",gap:"100",alignItems:"Center",children:[a.jsx(ot,{size:"50",variant:"Primary",fill:"Soft"}),a.jsxs(x,{as:"span",size:"L400",style:{color:ct.Primary.Main},children:["Syncing (",t,")"]})]})}function fre(){return a.jsxs(y,{grow:"Yes",gap:"200",alignItems:"Center",children:[a.jsx(Bt,{variant:"Secondary",fill:"Solid",radii:"300",children:a.jsx(x,{size:"L400",children:"Restoring: 0%"})}),a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(FF,{variant:"Secondary",size:"300",min:0,max:1,value:0})}),a.jsx(ot,{size:"50",variant:"Secondary",fill:"Soft"})]})}function o$e({total:t,downloaded:e}){return a.jsxs(y,{grow:"Yes",gap:"200",alignItems:"Center",children:[a.jsx(Bt,{variant:"Secondary",fill:"Solid",radii:"300",children:a.jsxs(x,{size:"L400",children:["Restoring: ",`${Math.round(Vg(0,t,e))}%`]})}),a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(FF,{variant:"Secondary",size:"300",min:0,max:t,value:e})}),a.jsx(Bt,{variant:"Secondary",fill:"Soft",radii:"Pill",children:a.jsxs(x,{size:"L400",children:[e," / ",t]})})]})}function i$e({crypto:t,backupInfo:e}){const n=e$e(t,e);return n?a.jsxs(y,{direction:"Column",children:[n.matchesDecryptionKey?a.jsx(x,{size:"T200",style:{color:ct.Success.Main},children:a.jsx("b",{children:"Backup has trusted decryption key."})}):a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:"Backup does not have trusted decryption key!"})}),n.trusted?a.jsx(x,{size:"T200",style:{color:ct.Success.Main},children:a.jsx("b",{children:"Backup has trusted by signature."})}):a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:"Backup does not have trusted signature!"})})]}):null}function a$e({crypto:t}){const[e,n]=Yi(Dre),r=e.status===z_.Fetching||e.status===z_.Loading,o=ZHe(t),i=QHe(t),[s,u]=XHe(),[l,c]=f.useState(),d=D=>{c(D.currentTarget.getBoundingClientRect())},[F,h]=et(f.useCallback(async()=>{await t.restoreKeyBackup({progressCallback(D){n(D)}})},[t,n])),m=()=>{c(void 0),h()};return a.jsxs(kD,{variant:"Surface",title:"Encryption Backup",after:a.jsxs(y,{alignItems:"Center",gap:"200",children:[s===0?a.jsx(n$e,{enabled:o}):a.jsx(r$e,{count:s}),a.jsx(Me,{"aria-pressed":!!l,size:"300",variant:"Surface",radii:"300",onClick:d,children:a.jsx(Q,{size:"100",src:$.VerticalDots})}),a.jsx(Ut,{anchor:l,offset:5,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>c(void 0),clickOutsideDeactivates:!0,isKeyForward:D=>D.key==="ArrowDown"||D.key==="ArrowRight",isKeyBackward:D=>D.key==="ArrowUp"||D.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(zt,{style:{padding:le.space.S100},children:a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(y,{direction:"Column",gap:"200",children:a.jsx(kD,{variant:"SurfaceVariant",title:"Backup Details",description:a.jsxs(a.Fragment,{children:[a.jsxs("span",{children:["Version: ",(i==null?void 0:i.version)??"NIL"]}),a.jsx("br",{}),a.jsxs("span",{children:["Keys: ",(i==null?void 0:i.count)??"NIL"]})]})})}),a.jsx(Ee,{size:"300",variant:"Success",radii:"300","aria-disabled":F.status===he.Loading||r,onClick:F.status===he.Loading||r?void 0:m,before:a.jsx(Q,{size:"100",src:$.Download}),children:a.jsx(x,{size:"B300",children:"Restore Backup"})})]})})})})]}),children:[u&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:u})}),!o&&i===null&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:"No backup present on server!"})}),!u&&!o&&i&&a.jsx(i$e,{crypto:t,backupInfo:i}),F.status===he.Loading&&!r&&a.jsx(fre,{}),e.status===z_.Fetching&&a.jsx(fre,{}),e.status===z_.Loading&&a.jsx(o$e,{total:e.data.total,downloaded:e.data.downloaded}),F.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:F.error.message})})]})}function s$e(){return t$e(),null}function u$e(){return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(uI,{}),a.jsx(uI,{})]})}function l$e({requestClose:t}){const e=ge(),n=e.getCrypto(),r=sI(),[o,i]=ere(),[s,u]=nre(o),l=U4(n,e.getSafeUserId(),s==null?void 0:s.device_id),c=tre(u),d=sre(n,e.getSafeUserId(),c),F=GHe(),h=YHe(F??"");return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"Devices"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Security"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Device Verification",description:"To verify device identity and grant access to encrypted messages.",after:a.jsxs(a.Fragment,{children:[a.jsx(HHe,{visible:!r}),r&&a.jsxs(y,{gap:"200",alignItems:"Center",children:[a.jsx(zHe,{verificationStatus:l,otherUnverifiedCount:d}),a.jsx($He,{})]})]})})})]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Current"}),s?a.jsxs(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:[a.jsx(lre,{device:s,refreshDeviceList:i,options:a.jsx(FHe,{}),children:n&&a.jsx(dHe,{crypto:n})}),r&&l===vc.Unverified&&F&&h&&a.jsx(VHe,{secretStorageKeyId:F,secretStorageKeyContent:h}),n&&l===vc.Verified&&a.jsx(a$e,{crypto:n})]}):a.jsx(uI,{})]}),o===void 0&&a.jsx(u$e,{}),u&&a.jsx(WHe,{devices:u,refreshDeviceList:i,showVerification:r&&l===vc.Verified}),a.jsx(aHe,{})]})})})})]})}function c$e({packs:t,useAuthentication:e,onSelect:n}){const r=ge(),o=f.useMemo(()=>{const F=new Map;return t.filter(h=>!h.deleted).forEach(h=>{if(!h.address)return;const m=F.get(h.address.roomId)??[];m.push(h),F.set(h.address.roomId,m)}),F},[t]),[i,s]=f.useState([]),u=F=>{s(h=>{const m=h.filter(D=>!ds(D,F));return m.length!==h.length||m.push(F),m})},l=F=>{s(h=>{const m=Array.from(h);return F.forEach(D=>{m.find(g=>ds(g,D))||m.push(D)}),m})},c=F=>{s(h=>h.filter(m=>!F.find(D=>ds(m,D))))},d=i.length>0;return a.jsxs(y,{grow:"Yes",direction:"Column",children:[a.jsxs(In,{size:"400",variant:"Surface",style:{padding:`0 ${le.space.S300}`},children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"L400",truncate:!0,children:"Room Packs"})}),a.jsx(y,{shrink:"No",children:a.jsx(We,{radii:"Pill",variant:d?"Success":"SurfaceVariant",outlined:d,onClick:()=>n(i),children:a.jsx(x,{size:"B300",children:d?"Save":"Close"})})})]}),a.jsx(jn,{variant:"Surface",size:"300"}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{size:"300",hideTrack:!0,visibility:"Hover",children:a.jsxs(y,{direction:"Column",gap:"400",style:{paddingLeft:le.space.S300,paddingTop:le.space.S300,paddingBottom:le.space.S300,paddingRight:le.space.S100},children:[Array.from(o.entries()).map(([F,h])=>{const m=r.getRoom(F);if(!m)return null;const D=h.map(p=>p.address).filter(p=>p!==void 0),g=D.every(p=>i.find(_=>ds(p,_)));return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsxs(y,{alignItems:"Center",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"L400",children:m.name})}),a.jsx(y,{shrink:"No",children:a.jsx(We,{variant:g?"Critical":"Surface",radii:"Pill",onClick:()=>{if(g){c(D);return}l(D)},children:a.jsx(x,{size:"B300",children:g?"Unselect All":"Select All"})})})]}),h.map(p=>{const _=p.getAvatarUrl(fr.Emoticon),v=_?Xt(r,_,e):void 0,{address:E}=p;if(!E)return null;const b=!!i.find(k=>ds(k,E));return a.jsx(rt,{className:Nt,variant:b?"Success":"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:p.meta.name??"Unknown",description:a.jsx("span",{className:rI,children:p.meta.attribution}),before:a.jsx(y,{alignItems:"Center",gap:"300",children:a.jsx(Rt,{size:"300",radii:"300",children:v?a.jsx(xl,{style:{objectFit:"contain"},src:v}):a.jsx(U1,{children:a.jsx(Q,{size:"400",src:$.Sticker,filled:!0})})})}),after:a.jsx(U6,{checked:b,variant:"Success",onClick:()=>u(E)})})},p.id)})]},F)}),o.size===0&&a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsxs(y,{justifyContent:"Center",direction:"Column",gap:"200",style:{padding:`${le.space.S700} ${le.space.S400}`,maxWidth:Dt(300),margin:"auto"},children:[a.jsx(x,{size:"H5",align:"Center",children:"No Packs"}),a.jsx(x,{size:"T200",align:"Center",children:"Pack from rooms will appear here. You do not have any room with packs yet."})]})})]})})})]})}function d$e({onViewPack:t}){const e=ge(),n=Tt(),r=FX(),[o,i]=f.useState(),s=_t(nr),u=f.useMemo(()=>{const A=[];return s.forEach(O=>{const j=e.getRoom(O);j&&A.push(j)}),A},[e,s]),l=mX(u),c=f.useMemo(()=>l.filter(A=>!r.find(O=>ds(A.address,O.address))),[l,r]),[d,F]=f.useState([]),[h,m]=f.useState([]),D=f.useMemo(()=>c.filter(A=>!d.find(O=>ds(A.address,O))),[d,c]),g=A=>{m(O=>[...O,A])},p=A=>{m(O=>O.filter(j=>!ds(j,A)))},_=A=>{i(void 0),A.length>0&&F(O=>[...A,...O])},[v,E]=et(f.useCallback(async()=>{var j;const A=((j=e.getAccountData(tr.PoniesEmoteRooms))==null?void 0:j.getContent())??{},O=JSON.parse(JSON.stringify(A));d.forEach(R=>{const M=O.rooms??{},z=M[R.roomId]??{};z[R.stateKey]={},M[R.roomId]=z,O.rooms=M}),h.forEach(R=>{var M,z,T;(z=(M=O.rooms)==null?void 0:M[R.roomId])!=null&&z[R.stateKey]&&((T=O.rooms)==null||delete T[R.roomId][R.stateKey])}),await e.setAccountData(tr.PoniesEmoteRooms,O)},[e,d,h])),b=f.useCallback(()=>{F([]),m([])},[]);f.useEffect(()=>{v.status===he.Success&&b()},[v,b]);const k=A=>{i(A.currentTarget.getBoundingClientRect())},C=v.status===he.Loading,S=h.length>0||d.length>0,w=A=>{const O=A.getAvatarUrl(fr.Emoticon),j=O?Xt(e,O,n):void 0,{address:R}=A;if(!R)return null;const M=!!h.find(z=>ds(z,R));return a.jsx(rt,{className:Nt,variant:M?"Critical":"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:a.jsx("span",{style:{textDecoration:M?"line-through":void 0},children:A.meta.name??"Unknown"}),description:a.jsx("span",{className:rI,children:A.meta.attribution}),before:a.jsxs(y,{alignItems:"Center",gap:"300",children:[M?a.jsx(Me,{size:"300",radii:"Pill",variant:"Critical",onClick:()=>p(R),disabled:C,children:a.jsx(Q,{src:$.Plus,size:"100"})}):a.jsx(Me,{size:"300",radii:"Pill",variant:"Secondary",onClick:()=>g(R),disabled:C,children:a.jsx(Q,{src:$.Cross,size:"100"})}),a.jsx(Rt,{size:"300",radii:"300",children:j?a.jsx(xl,{style:{objectFit:"contain"},src:j}):a.jsx(U1,{children:a.jsx(Q,{size:"400",src:$.Sticker,filled:!0})})})]}),after:!M&&a.jsx(Ee,{variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,onClick:()=>t(A),children:a.jsx(x,{size:"B300",children:"View"})})})},A.id)};return a.jsxs(a.Fragment,{children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Favorite Packs"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Select Pack",description:"Pick emojis and stickers pack from rooms to use in all rooms.",after:a.jsxs(a.Fragment,{children:[a.jsx(Ee,{onClick:k,variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,children:a.jsx(x,{size:"B300",children:"Select"})}),a.jsx(Ut,{anchor:o,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>i(void 0),clickOutsideDeactivates:!0,isKeyForward:A=>A.key==="ArrowDown"||A.key==="ArrowRight",isKeyBackward:A=>A.key==="ArrowUp"||A.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(zt,{style:{display:"flex",maxWidth:Dt(400),width:"100vw",maxHeight:Dt(500)},children:a.jsx(c$e,{packs:D,useAuthentication:n,onSelect:_})})})})]})})}),r.map(w),c.filter(A=>!!d.find(O=>ds(A.address,O))).map(w)]}),S&&a.jsx(zt,{style:{position:"sticky",padding:le.space.S200,paddingLeft:le.space.S400,bottom:le.space.S400,left:le.space.S400,right:0,zIndex:1},variant:"Success",children:a.jsxs(y,{alignItems:"Center",gap:"400",children:[a.jsx(y,{grow:"Yes",direction:"Column",children:v.status===he.Error?a.jsx(x,{size:"T200",children:a.jsx("b",{children:"Failed to apply changes! Please try again."})}):a.jsx(x,{size:"T200",children:a.jsx("b",{children:"Changes saved! Apply when ready."})})}),a.jsxs(y,{shrink:"No",gap:"200",children:[a.jsx(Ee,{size:"300",variant:"Success",fill:"None",radii:"300",disabled:C,onClick:b,children:a.jsx(x,{size:"B300",children:"Reset"})}),a.jsx(Ee,{size:"300",variant:"Success",radii:"300",disabled:C,before:C&&a.jsx(ot,{variant:"Success",fill:"Solid",size:"100"}),onClick:E,children:a.jsx(x,{size:"B300",children:"Apply Changes"})})]})]})})]})}function h$e({onViewPack:t}){const e=ge(),n=Tt(),r=vA(),o=r==null?void 0:r.getAvatarUrl(fr.Emoticon),i=o?Xt(e,o,n):void 0,s=()=>{if(r)t(r);else{const u=new n1(e.getUserId()??"",{},void 0);t(u)}};return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Default Pack"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:(r==null?void 0:r.meta.name)??"Unknown",description:r==null?void 0:r.meta.attribution,before:a.jsx(Rt,{size:"300",radii:"300",children:i?a.jsx(xl,{style:{objectFit:"contain"},src:i}):a.jsx(U1,{children:a.jsx(Q,{size:"400",src:$.Sticker,filled:!0})})}),after:a.jsx(Ee,{variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,onClick:s,children:a.jsx(x,{size:"B300",children:"View"})})})})]})}const cI=()=>t=>{const e=t.includes(fr.Sticker),n=t.includes(fr.Emoticon);return e&&n?"Both":e?"Sticker":n?"Emoji":"Both"};function F$e({selected:t,onChange:e}){const n=cI(),r=n(t),o=s=>n(s)===r,i=f.useMemo(()=>[[fr.Emoticon],[fr.Sticker],[fr.Sticker,fr.Emoticon]],[]);return a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:i.map(s=>a.jsx(tt,{size:"300",variant:o(s)?"SurfaceVariant":"Surface","aria-selected":o(s),radii:"300",onClick:()=>e(s),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T300",children:n(s)})})},n(s)))})}function _re({usage:t,onChange:e,canEdit:n}){const r=cI(),[o,i]=f.useState(),s=u=>{i(u.currentTarget.getBoundingClientRect())};return a.jsxs(a.Fragment,{children:[a.jsx(Ee,{variant:"Secondary",fill:"Soft",size:"300",radii:"300",type:"button",outlined:!0,"aria-disabled":!n,after:n&&a.jsx(Q,{src:$.ChevronBottom,size:"100"}),onClick:n?s:void 0,children:a.jsx(x,{size:"B300",children:r(t)})}),a.jsx(Ut,{anchor:o,offset:5,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>i(void 0),clickOutsideDeactivates:!0,isKeyForward:u=>u.key==="ArrowDown"||u.key==="ArrowRight",isKeyBackward:u=>u.key==="ArrowUp"||u.key==="ArrowLeft",escapeDeactivates:vt},children:a.jsx(zt,{children:a.jsx(F$e,{selected:t,onChange:u=>{i(void 0),e(u)}})})})})]})}var m$e="_14rd4hb1 _1mqalmd1 _1mqalmd0",dI="_14rd4hb0 _1mqalmd1 _1mqalmd0",D$e="_14rd4hb2 _1mqalmd1 _1mqalmd0",g$e="_14rd4hb3";function p$e({defaultShortcode:t,image:e,packUsage:n,useAuthentication:r,canEdit:o,onEdit:i,onDeleteToggle:s,deleted:u}){const l=ge(),c=cI();return a.jsx(gt,{before:a.jsx("img",{className:dI,src:Xt(l,e.url,r)??"",alt:e.shortcode,loading:"lazy"}),title:u?a.jsx("span",{className:m$e,children:e.shortcode}):e.shortcode,description:a.jsxs(y,{as:"span",gap:"200",children:[e.usage&&c(e.usage)!==c(n)&&a.jsx(Bt,{as:"span",variant:"Secondary",size:"400",radii:"300",outlined:!0,children:a.jsx(x,{as:"span",size:"L400",children:c(e.usage)})}),e.body]}),after:o?a.jsxs(y,{shrink:"No",alignItems:"Center",gap:"200",children:[a.jsx(We,{variant:u?"Critical":"Secondary",fill:"None",radii:"Pill",onClick:()=>s==null?void 0:s(t),children:u?a.jsx(x,{size:"B300",children:"Undo"}):a.jsx(Q,{size:"50",src:$.Delete})}),!u&&a.jsx(We,{variant:"Secondary",radii:"Pill",onClick:()=>i==null?void 0:i(t,e),children:a.jsx(x,{size:"B300",children:"Edit"})})]}):void 0})}function f$e({file:t,children:e}){const n=j_(t),r=f.useMemo(()=>vD(t),[t]);return a.jsx(gt,{before:a.jsx("img",{className:dI,src:n,alt:t.name}),children:e(r)})}function _$e({defaultShortcode:t,useAuthentication:e,packUsage:n,image:r,onCancel:o,onSave:i}){const s=ge(),u=r.usage??n,[l,c]=f.useState(u),d=F=>{F.preventDefault();const h=F.target,m=h==null?void 0:h.shortcodeInput,D=h==null?void 0:h.bodyInput;if(!m||!D)return;const g=K6(m.value.trim()),p=D.value.trim()||void 0,_=l;if(!g)return;if(g===r.shortcode&&p===r.body&&fA(_,u)){o(t);return}const v=new a0(g,r.url,{info:r.info,body:p,usage:fA(_,n)?void 0:_});i(t,v)};return a.jsx(gt,{before:a.jsx("img",{className:dI,src:Xt(s,r.url,e)??"",alt:r.shortcode,loading:"lazy"}),children:a.jsxs(y,{as:"form",onSubmit:d,direction:"Column",gap:"200",children:[a.jsxs(y,{direction:"Column",className:D$e,children:[a.jsx(En,{before:a.jsx(x,{size:"L400",children:"Shortcode:"}),defaultValue:r.shortcode,name:"shortcodeInput",variant:"Secondary",size:"300",radii:"0",required:!0,autoFocus:!0}),a.jsx(En,{before:a.jsx(x,{size:"L400",children:"Body:"}),defaultValue:r.body,name:"bodyInput",variant:"Secondary",size:"300",radii:"0"})]}),a.jsxs(y,{gap:"200",children:[a.jsx(y,{shrink:"No",direction:"Column",children:a.jsx(_re,{usage:l,onChange:c,canEdit:!0})}),a.jsx(y,{grow:"Yes"}),a.jsx(Ee,{type:"submit",variant:"Success",size:"300",radii:"300",children:a.jsx(x,{size:"B300",children:"Save"})}),a.jsx(Ee,{type:"reset",variant:"Secondary",fill:"Soft",size:"300",radii:"300",onClick:()=>o(t),children:a.jsx(x,{size:"B300",children:"Cancel"})})]})]})})}function vre({url:t,name:e}){return a.jsx(Rt,{size:"500",className:ai({variant:"Secondary"}),children:t?a.jsx(xl,{src:t,alt:e??"Unknown"}):a.jsx(U1,{children:a.jsx(x,{size:"H2",children:Gi(e??"Unknown")})})})}function v$e({meta:t,canEdit:e,onEdit:n}){const r=ge(),o=Tt(),i=t.avatar?Xt(r,t.avatar,o)??void 0:void 0;return a.jsxs(y,{gap:"400",children:[a.jsxs(y,{grow:"Yes",direction:"Column",gap:"300",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{className:Fs,size:"H5",children:t.name??"Unknown"}),t.attribution&&a.jsx(x,{className:Fs,size:"T200",children:a.jsx(w3,{options:Hh,children:t.attribution})})]}),e&&a.jsx(y,{gap:"200",children:a.jsx(We,{variant:"Secondary",fill:"Soft",radii:"300",before:a.jsx(Q,{size:"50",src:$.Pencil}),onClick:n,outlined:!0,children:a.jsx(x,{size:"B300",children:"Edit"})})})]}),a.jsx(y,{shrink:"No",children:a.jsx(vre,{url:i,name:t.name})})]})}function b$e({meta:t,onCancel:e,onSave:n}){const r=ge(),o=Tt(),[i,s]=f.useState(t.avatar),u=i?Xt(r,i,o)??void 0:void 0,[l,c]=f.useState(),d=j_(l),F=d?i===t.avatar:!1,h=f.useMemo(()=>{if(l)return vD(l)},[l]),m=x0(c,!1),D=f.useCallback(()=>{c(void 0),s(t.avatar)},[t.avatar]),g=f.useCallback(_=>{s(_.mxc)},[]),p=_=>{if(_.preventDefault(),F)return;const v=_.target,E=v==null?void 0:v.nameInput,b=v==null?void 0:v.attributionTextArea;if(!E||!b)return;const k=E.value.trim(),C=b.value.trim();if(!k)return;const S=new Ny({avatar_url:i,display_name:k,attribution:C});n(S)};return a.jsxs(y,{as:"form",onSubmit:p,direction:"Column",gap:"400",children:[a.jsxs(y,{gap:"400",children:[a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Pack Avatar"}),h?a.jsx(y,{gap:"200",direction:"Column",children:a.jsx(B_,{uploadAtom:h,onRemove:D,onComplete:g})}):a.jsxs(y,{gap:"200",children:[a.jsx(Ee,{type:"button",size:"300",variant:"Secondary",fill:"Soft",radii:"300",onClick:()=>m("image/*"),children:a.jsx(x,{size:"B300",children:"Upload"})}),!i&&t.avatar&&a.jsx(Ee,{type:"button",size:"300",variant:"Success",fill:"None",radii:"300",onClick:()=>s(t.avatar),children:a.jsx(x,{size:"B300",children:"Reset"})}),i&&a.jsx(Ee,{type:"button",size:"300",variant:"Critical",fill:"None",radii:"300",onClick:()=>s(void 0),children:a.jsx(x,{size:"B300",children:"Remove"})})]})]}),a.jsx(y,{shrink:"No",children:a.jsx(vre,{url:d??u,name:t.name})})]}),a.jsxs(y,{direction:"Inherit",gap:"100",children:[a.jsx(x,{size:"L400",children:"Name"}),a.jsx(En,{name:"nameInput",defaultValue:t.name,variant:"Secondary",radii:"300",required:!0})]}),a.jsxs(y,{direction:"Inherit",gap:"100",children:[a.jsx(x,{size:"L400",children:"Attribution"}),a.jsx(qg,{name:"attributionTextArea",defaultValue:t.attribution,variant:"Secondary",radii:"300"})]}),a.jsxs(y,{gap:"300",children:[a.jsx(Ee,{type:"submit",variant:"Success",size:"300",radii:"300",disabled:F,children:a.jsx(x,{size:"B300",children:"Save"})}),a.jsx(Ee,{type:"reset",onClick:e,variant:"Secondary",fill:"Soft",size:"300",radii:"300",children:a.jsx(x,{size:"B300",children:"Cancel"})})]})]})}const bre=Ie(({imagePack:t,canEdit:e,onUpdate:n,...r},o)=>{const i=Tt(),[s,u]=f.useState(!1),[l,c]=f.useState(),d=l??t.meta,F=f.useMemo(()=>Array.from(t.images.collection.values()),[t]),[h,m]=f.useState([]),[D,g]=f.useState([]),[p,_]=f.useState(new Set),[v,E]=f.useState(new Map),[b,k]=f.useState(new Set),C=f.useCallback(K=>t.images.collection.has(K)||D.find(H=>H.shortcode===K)!==void 0?!0:Array.from(v).find(([,H])=>H.shortcode===K)!==void 0,[t,v,D]),S=x0(f.useCallback(K=>{const H=K.map(q=>{const V=K6(q.name);if(C(V)){const X=W6(V,C);return nH(q,X)}return V!==q.name?nH(q,V):q});m(q=>[...q,...H])},[C]),!0),w=f.useCallback(K=>{u(!1),c(H=>new Ny({...t.meta.content,...H==null?void 0:H.content,...K.content}))},[t.meta]),A=()=>u(!1),O=f.useCallback(K=>{c(H=>new Ny({...t.meta.content,...H==null?void 0:H.content,usage:K}))},[t.meta]),j=f.useCallback(K=>{m(H=>H.filter(q=>q!==K))},[]),R=f.useCallback(async K=>{const H=await V5(rH(K.file)),q={url:K.mxc,info:n7(H,K.file)},V=a0.fromPackImage(W4e(K.file.name),q);V&&(j(K.file),g(X=>[V,...X]))},[j]),M=K=>{_(H=>{const q=new Set(H);return q.add(K),q})},z=K=>{k(H=>{const q=new Set(H);return q.has(K)?q.delete(K):q.add(K),q})},T=K=>{_(H=>{const q=new Set(H);return q.delete(K),q})},P=(K,H)=>{T(K);const q=K!==H.shortcode&&C(H.shortcode)?new a0(W6(H.shortcode,C),H.url,H.content):H;E(V=>{const X=new Map(V);return X.set(K,q),X})},L=()=>{c(void 0),m([]),g([]),E(new Map),k(new Set)},[U,te]=et(f.useCallback(async()=>{const K={pack:(l==null?void 0:l.content)??t.meta.content,images:{}},H=q=>{if(b.has(q.shortcode)||!K.images)return;const V=v.get(q.shortcode)??q;K.images[V.shortcode]=V.content};return D.forEach(q=>H(q)),F.forEach(q=>H(q)),n==null?void 0:n(K)},[t,F,l,D,v,b,n]));f.useEffect(()=>{U.status===he.Success&&L()},[U]);const ae=l&&!oBe(t.meta,l)||D.length>0||v.size>0||b.size>0,Fe=!s&&p.size===0&&h.length===0,re=U.status===he.Loading,ce=K=>a.jsx(rt,{style:{padding:le.space.S300},variant:b.has(K.shortcode)?"Critical":"SurfaceVariant",direction:"Column",gap:"400",children:p.has(K.shortcode)?a.jsx(_$e,{defaultShortcode:K.shortcode,image:v.get(K.shortcode)??K,packUsage:d.usage,useAuthentication:i,onCancel:T,onSave:P}):a.jsx(p$e,{defaultShortcode:K.shortcode,image:v.get(K.shortcode)??K,packUsage:d.usage,useAuthentication:i,canEdit:e,onEdit:M,deleted:b.has(K.shortcode),onDeleteToggle:z})},K.shortcode);return a.jsxs(y,{grow:"Yes",direction:"Column",gap:"700",...r,ref:o,children:[ae&&a.jsx(zt,{className:g$e,variant:"Success",children:a.jsxs(y,{alignItems:"Center",gap:"400",children:[a.jsx(y,{grow:"Yes",direction:"Column",children:U.status===he.Error?a.jsx(x,{size:"T200",children:a.jsx("b",{children:"Failed to apply changes! Please try again."})}):a.jsx(x,{size:"T200",children:a.jsx("b",{children:"Changes saved! Apply when ready."})})}),a.jsxs(y,{shrink:"No",gap:"200",children:[a.jsx(Ee,{size:"300",variant:"Success",fill:"None",radii:"300",disabled:!Fe||re,onClick:L,children:a.jsx(x,{size:"B300",children:"Reset"})}),a.jsx(Ee,{size:"300",variant:"Success",radii:"300",disabled:!Fe||re,before:re&&a.jsx(ot,{variant:"Success",fill:"Solid",size:"100"}),onClick:te,children:a.jsx(x,{size:"B300",children:"Apply Changes"})})]})]})}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Pack"}),a.jsx(rt,{style:{padding:le.space.S300},variant:"SurfaceVariant",direction:"Column",gap:"400",children:s?a.jsx(b$e,{meta:d,onCancel:A,onSave:w}):a.jsx(v$e,{meta:d,canEdit:e,onEdit:()=>u(!0)})}),a.jsx(rt,{style:{padding:le.space.S300},variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Images Usage",description:"Select how the images are being used: as emojis, as stickers, or as both.",after:a.jsx(_re,{usage:d.usage,canEdit:e,onChange:O})})})]}),F.length===0&&!e?null:a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Images"}),e&&a.jsx(rt,{style:{padding:le.space.S300},variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Upload Images",description:"Select images from your storage to upload them in pack.",after:a.jsx(Ee,{variant:"Secondary",fill:"Soft",size:"300",radii:"300",type:"button",outlined:!0,onClick:()=>S("image/*"),children:a.jsx(x,{size:"B300",children:"Select"})})})}),h.map(K=>a.jsx(rt,{style:{padding:le.space.S300},variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(f$e,{file:K,children:H=>a.jsx(B_,{uploadAtom:H,onRemove:j,onComplete:R})})},K.name)),D.map(ce),F.map(ce)]})]})});function C$e({room:t,stateKey:e}){const n=ge(),r=n.getUserId(),o=Bi(t),{getPowerLevel:i,canSendStateEvent:s}=yo(o),u=s(Re.PoniesRoomEmotes,i(r)),l=f.useMemo(()=>{const F=$P(4);return new n1(F,{},{roomId:t.roomId,stateKey:e})},[t.roomId,e]),c=iBe(t,e)??l,d=f.useCallback(async F=>{const{address:h}=c;h&&await n.sendStateEvent(h.roomId,Re.PoniesRoomEmotes,F,h.stateKey)},[n,c]);return a.jsx(bre,{imagePack:c,canEdit:u,onUpdate:d})}function E$e(){const t=ge(),e=f.useMemo(()=>new n1(t.getUserId()??"",{},void 0),[t]),n=vA(),r=f.useCallback(async o=>{await t.setAccountData(tr.PoniesUserEmotes,o)},[t]);return a.jsx(bre,{imagePack:n??e,canEdit:!0,onUpdate:r})}function Cre({address:t,requestClose:e}){const n=ge(),r=t&&n.getRoom(t.roomId);return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,balance:!0,children:a.jsxs(y,{alignItems:"Center",grow:"Yes",gap:"200",children:[a.jsx(y,{alignItems:"Inherit",grow:"Yes",gap:"200",children:a.jsx(We,{size:"500",radii:"Pill",onClick:e,before:a.jsx(Q,{size:"100",src:$.ArrowLeft}),children:a.jsx(x,{size:"T300",children:"Emojis & Stickers"})})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:e,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:r&&t?a.jsx(C$e,{room:r,stateKey:t.stateKey}):a.jsx(E$e,{})})})})]})}function y$e({requestClose:t}){const[e,n]=f.useState(),r=()=>{n(void 0)};return e?a.jsx(Cre,{address:e.address,requestClose:r}):a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"Emojis & Stickers"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsx(h$e,{onViewPack:n}),a.jsx(d$e,{onViewPack:n})]})})})})]})}class Yr{constructor(e,n,r){this.start=e,this.end=n,this.direction=r}static fromTextAreaElement(e){return new Yr(e.selectionStart,e.selectionEnd,e.selectionDirection)}get selection(){return this.start!==this.end}get length(){return this.end-this.start}}class x$e{constructor(e,n,r){this.textArea=n,this.operations=r,this.size=e,this.intentReg=/^\s*/,this.str="";for(let o=0;o<e;o+=1)this.str+=" "}lineIntent(e){const n=this.textArea.cursorLines(e),r=this.textArea.selection(n).match(this.intentReg);return r?r[0]:""}moveForward(e){const n=this.textArea.cursorLines(e),r=this.textArea.selection(n).split(`
`),o=r.map(s=>`${this.str}${s}`);this.operations.insert(n,o.join(`
`));const i=r.length*this.str.length;return new Yr(e.start===n.start?e.start:e.start+this.str.length,e.end+i,e.direction)}moveBackward(e){const n=this.textArea.cursorLines(e),r=this.textArea.selection(n).split(`
`),o=r.map(F=>F.startsWith(this.str)?F.substring(this.str.length):F.replace(this.intentReg,"")),i=this.operations.insert(n,o.join(`
`)),s=r[0].length-o[0].length,u=this.textArea.cursorLines(new Yr(i.end,i.end,"none")),l=Math.max(e.start-s,n.start),c=n.length-i.length,d=Math.max(u.start,e.end-c);return new Yr(l,d,e.direction)}addNewLine(e){const n=`
${this.lineIntent(e)}`,r=this.operations.insert(e,n);return new Yr(r.end,r.end,"none")}addNextLine(e){const n=`
${this.lineIntent(e)}`,r=this.textArea.cursorLines(e),o=new Yr(r.end,r.end,"none"),i=this.operations.insert(o,n);return new Yr(i.end,i.end,"none")}addPreviousLine(e){var s;const n=`
${this.lineIntent(e)}`,r=((s=this.textArea.prevLine(e))==null?void 0:s.end)??0,o=new Yr(r,r,"none"),i=this.operations.insert(o,n);return new Yr(i.end,i.end,"none")}}class w$e{constructor(e){this.getTarget=e}get target(){return this.getTarget()}selection(e){return this.target.value.substring(e.start,e.end)}lineBeginIndex(e){return this.target.value.substring(0,e.start).lastIndexOf(`
`)+1}lineEndIndex(e){const n=this.target.value.substring(e.end),r=n.indexOf(`
`);return e.end+(r===-1?n.length:r)}cursorLines(e){const n=this.lineBeginIndex(e),r=this.lineEndIndex(e);return new Yr(n,r,"none")}prevLine(e){const n=this.lineBeginIndex(e)-1;return n<0?void 0:this.cursorLines(new Yr(n,n,"none"))}nextLine(e){const n=this.lineEndIndex(e)+1;return n>this.target.value.length?void 0:this.cursorLines(new Yr(n,n,"none"))}}class k$e{constructor(e){this.getTarget=e}get target(){return this.getTarget()}select(e){this.target.setSelectionRange(e.start,e.end,e.direction)}deselect(e){if(e.direction==="backward"){this.target.setSelectionRange(e.start,e.start,"none");return}this.target.setSelectionRange(e.end,e.end,"none")}insert(e,n){const{value:r}=this.target;return this.target.value=`${r.substring(0,e.start)}${n}${r.substring(e.end)}`,new Yr(e.start,e.start+n.length,e.direction)}}const S$e=(t,e,n)=>f.useCallback(r=>{const o=r.currentTarget;if(Mn("tab",r)){r.preventDefault();const i=Yr.fromTextAreaElement(o);t.selection(i)?e.select(n.moveForward(i)):e.deselect(e.insert(i,n.str)),o.focus()}if(Mn("shift+tab",r)){r.preventDefault();const i=Yr.fromTextAreaElement(o),s=n.moveBackward(i);t.selection(i)?e.select(s):e.deselect(s),o.focus()}if(Mn("enter",r)||Mn("shift+enter",r)){r.preventDefault();const i=Yr.fromTextAreaElement(o);e.select(n.addNewLine(i))}if(Mn("mod+enter",r)){r.preventDefault();const i=Yr.fromTextAreaElement(o);e.select(n.addNextLine(i))}if(Mn("mod+shift+enter",r)){r.preventDefault();const i=Yr.fromTextAreaElement(o);e.select(n.addPreviousLine(i))}},[t,e,n]),hI=(t,e)=>{const n=f.useCallback(()=>{const u=t.current;if(!u)throw new Error("TextArea element not found!");return u},[t]),{textArea:r,operations:o,intent:i}=f.useMemo(()=>{const u=new w$e(n),l=new k$e(n);return{textArea:u,operations:l,intent:new x$e(e,u,l)}},[n,e]),s=S$e(r,o,i);return{handleKeyDown:u=>{if(s(u),Mn("escape",u)){const l=Yr.fromTextAreaElement(n());o.deselect(l)}},textArea:r,intent:i,getTarget:n,operations:o}},FI=2;function j$e({type:t,defaultContent:e,submitChange:n,onCancel:r,onSave:o}){const i=yr(),s=f.useRef(null),[u,l]=f.useState(),{handleKeyDown:c,operations:d,getTarget:F}=hI(s,FI),[h,m]=et(n),D=h.status===he.Loading,g=p=>{if(p.preventDefault(),D)return;const _=p.target,v=_==null?void 0:_.typeInput,E=_==null?void 0:_.contentTextArea;if(!v||!E)return;const b=v.value.trim(),k=E.value.trim();let C;try{C=JSON.parse(k)}catch(S){l(S);return}l(void 0),!(!b||C===null||e===JSON.stringify(C,null,FI))&&m(b,C).then(()=>{i()&&o({type:b,content:C})})};return f.useEffect(()=>{var p;if(u){const _=$5(u)??0,v=new Yr(_,_,"none");d.select(v),(p=F())==null||p.focus()}},[u,d,F]),a.jsxs(y,{as:"form",onSubmit:g,grow:"Yes",style:{padding:le.space.S400},direction:"Column",gap:"400","aria-disabled":D,children:[a.jsxs(y,{shrink:"No",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Account Data"}),a.jsxs(y,{gap:"300",children:[a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(En,{variant:t.length>0||D?"SurfaceVariant":"Background",name:"typeInput",size:"400",radii:"300",readOnly:t.length>0||D,defaultValue:t,required:!0})}),a.jsx(Ee,{variant:"Success",size:"400",radii:"300",type:"submit",disabled:D,before:D&&a.jsx(ot,{variant:"Primary",fill:"Solid",size:"300"}),children:a.jsx(x,{size:"B400",children:"Save"})}),a.jsx(Ee,{variant:"Secondary",fill:"Soft",size:"400",radii:"300",type:"button",onClick:r,disabled:D,children:a.jsx(x,{size:"B400",children:"Cancel"})})]}),h.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:h.error.message})})]}),a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(y,{shrink:"No",children:a.jsx(x,{size:"L400",children:"JSON Content"})}),a.jsx(qg,{ref:s,name:"contentTextArea",style:{fontFamily:"monospace"},onKeyDown:c,defaultValue:e,resize:"None",spellCheck:"false",required:!0,readOnly:D}),u&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsxs("b",{children:[u.name,": ",u.message]})})]})]})}function B$e({type:t,defaultContent:e,onEdit:n}){return a.jsxs(y,{direction:"Column",style:{padding:le.space.S400},gap:"400",children:[a.jsxs(y,{shrink:"No",gap:"300",alignItems:"End",children:[a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Account Data"}),a.jsx(En,{variant:"SurfaceVariant",size:"400",radii:"300",readOnly:!0,defaultValue:t,required:!0})]}),a.jsx(Ee,{variant:"Secondary",size:"400",radii:"300",onClick:n,children:a.jsx(x,{size:"B400",children:"Edit"})})]}),a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"JSON Content"}),a.jsx(rt,{variant:"SurfaceVariant",children:a.jsx(Mt,{visibility:"Always",size:"300",hideTrack:!0,children:a.jsx(TB,{size:"T300",style:{padding:`${le.space.S300} ${le.space.S100} ${le.space.S300} ${le.space.S300}`},text:e,langName:"JSON"})})})]})]})}function Ere({type:t,content:e,submitChange:n,requestClose:r}){const[o,i]=f.useState({type:t??"",content:e??{}}),[s,u]=f.useState(!t),l=f.useCallback(()=>{if(!t){r();return}u(!1)},[t,r]),c=f.useCallback(F=>{i(F),u(!1)},[]),d=f.useMemo(()=>JSON.stringify(o.content,null,FI),[o.content]);return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,balance:!0,children:a.jsxs(y,{alignItems:"Center",grow:"Yes",gap:"200",children:[a.jsx(y,{alignItems:"Inherit",grow:"Yes",gap:"200",children:a.jsx(We,{size:"500",radii:"Pill",onClick:r,before:a.jsx(Q,{size:"100",src:$.ArrowLeft}),children:a.jsx(x,{size:"T300",children:"Developer Tools"})})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:r,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",direction:"Column",children:s?a.jsx(j$e,{type:o.type,defaultContent:d,submitChange:n,onCancel:l,onSave:c}):a.jsx(B$e,{type:o.type,defaultContent:d,onEdit:()=>u(!0)})})]})}var A$e="lrhkx50";const U_=Ie(({as:t="div",className:e,variant:n="Surface",...r},o)=>a.jsx(t,{className:Ve(ai({variant:n}),A$e,e),...r,ref:o}));function T$e({expand:t,onExpandToggle:e,onSelect:n}){const r=ge(),[o,i]=f.useState(()=>Array.from(r.store.accountData.keys()));return u3(r,f.useCallback(()=>{i(Array.from(r.store.accountData.keys()))},[r])),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Account Data"}),a.jsxs(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:[a.jsx(gt,{title:"Global",description:"Data stored in your global account data.",after:a.jsx(Ee,{onClick:()=>e(!t),variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,before:a.jsx(Q,{src:t?$.ChevronTop:$.ChevronBottom,size:"100",filled:!0}),children:a.jsx(x,{size:"B300",children:t?"Collapse":"Expand"})})}),t&&a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsxs(y,{justifyContent:"SpaceBetween",children:[a.jsx(x,{size:"L400",children:"Events"}),a.jsxs(x,{size:"L400",children:["Total: ",o.length]})]}),a.jsxs(U_,{children:[a.jsx(tt,{variant:"Surface",fill:"None",size:"300",radii:"0",before:a.jsx(Q,{size:"50",src:$.Plus}),onClick:()=>n(null),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T200",truncate:!0,children:"Add New"})})}),o.sort().map(s=>a.jsx(tt,{variant:"Surface",fill:"None",size:"300",radii:"0",after:a.jsx(Q,{size:"50",src:$.ChevronRight}),onClick:()=>n(s),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T200",truncate:!0,children:s})})},s))]})]})]})]})}function I$e({requestClose:t}){var c;const e=ge(),[n,r]=Ft(ut,"developerTools"),[o,i]=f.useState(!1),[s,u]=f.useState(),l=f.useCallback(async(d,F)=>{await e.setAccountData(d,F)},[e]);return s!==void 0?a.jsx(Ere,{type:s??void 0,content:s?(c=e.getAccountData(s))==null?void 0:c.getContent():void 0,submitChange:l,requestClose:()=>u(void 0)}):a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"Developer Tools"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Options"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Enable Developer Tools",after:a.jsx(qo,{variant:"Primary",value:n,onChange:r})})}),n&&a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Access Token",description:"Copy access token to clipboard.",after:a.jsx(Ee,{onClick:()=>Vl(e.getAccessToken()??"<NO_ACCESS_TOKEN_FOUND>"),variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,children:a.jsx(x,{size:"B300",children:"Copy"})})})})]}),n&&a.jsx(T$e,{expand:o,onExpandToggle:i,onSelect:u})]})})})})]})}function R$e({requestClose:t}){const e=ge();return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"About"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsxs(y,{gap:"400",children:[a.jsx(y,{shrink:"No",children:a.jsx("img",{style:{width:Dt(60),height:Dt(60)},src:xF,alt:"Cinny logo"})}),a.jsxs(y,{direction:"Column",gap:"300",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsxs(y,{gap:"100",alignItems:"End",children:[a.jsx(x,{size:"H3",children:"Cinny"}),a.jsxs(x,{size:"T200",children:["v",Lt.version]})]}),a.jsx(x,{children:"Yet another matrix client."})]}),a.jsxs(y,{gap:"200",wrap:"Wrap",children:[a.jsx(Ee,{as:"a",href:"https://github.com/cinnyapp/cinny",rel:"noreferrer noopener",target:"_blank",variant:"Secondary",fill:"Soft",size:"300",radii:"300",before:a.jsx(Q,{src:$.Code,size:"100",filled:!0}),children:a.jsx(x,{size:"B300",children:"Source Code"})}),a.jsx(Ee,{as:"a",href:"https://cinny.in/#sponsor",rel:"noreferrer noopener",target:"_blank",variant:"Critical",fill:"Soft",size:"300",radii:"300",before:a.jsx(Q,{src:$.Heart,size:"100",filled:!0}),children:a.jsx(x,{size:"B300",children:"Support"})})]})]})]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Options"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Clear Cache & Reload",description:"Clear all your locally stored data and reload from server.",after:a.jsx(Ee,{onClick:()=>KH(e),variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,children:a.jsx(x,{size:"B300",children:"Clear Cache"})})})})]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Credits"}),a.jsx(rt,{className:Nt,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsxs(y,{as:"ul",direction:"Column",gap:"200",style:{margin:0,paddingLeft:le.space.S400},children:[a.jsx("li",{children:a.jsxs(x,{size:"T300",children:["The"," ",a.jsx("a",{href:"https://github.com/matrix-org/matrix-js-sdk",rel:"noreferrer noopener",target:"_blank",children:"matrix-js-sdk"})," ","is \xA9"," ",a.jsx("a",{href:"https://matrix.org/foundation",rel:"noreferrer noopener",target:"_blank",children:"The Matrix.org Foundation C.I.C"})," ","used under the terms of"," ",a.jsx("a",{href:"http://www.apache.org/licenses/LICENSE-2.0",rel:"noreferrer noopener",target:"_blank",children:"Apache 2.0"}),"."]})}),a.jsx("li",{children:a.jsxs(x,{size:"T300",children:["The"," ",a.jsx("a",{href:"https://github.com/mozilla/twemoji-colr",target:"_blank",rel:"noreferrer noopener",children:"twemoji-colr"})," ","font is \xA9"," ",a.jsx("a",{href:"https://mozilla.org/",target:"_blank",rel:"noreferrer noopener",children:"Mozilla Foundation"})," ","used under the terms of"," ",a.jsx("a",{href:"http://www.apache.org/licenses/LICENSE-2.0",target:"_blank",rel:"noreferrer noopener",children:"Apache 2.0"}),"."]})}),a.jsx("li",{children:a.jsxs(x,{size:"T300",children:["The"," ",a.jsx("a",{href:"https://twemoji.twitter.com",target:"_blank",rel:"noreferrer noopener",children:"Twemoji"})," ","emoji art is \xA9"," ",a.jsx("a",{href:"https://twemoji.twitter.com",target:"_blank",rel:"noreferrer noopener",children:"Twitter, Inc and other contributors"})," ","used under the terms of"," ",a.jsx("a",{href:"https://creativecommons.org/licenses/by/4.0/",target:"_blank",rel:"noreferrer noopener",children:"CC-BY 4.0"}),"."]})}),a.jsx("li",{children:a.jsxs(x,{size:"T300",children:["The"," ",a.jsx("a",{href:"https://material.io/design/sound/sound-resources.html",target:"_blank",rel:"noreferrer noopener",children:"Material sound resources"})," ","are \xA9"," ",a.jsx("a",{href:"https://google.com",target:"_blank",rel:"noreferrer noopener",children:"Google"})," ","used under the terms of"," ",a.jsx("a",{href:"https://creativecommons.org/licenses/by/4.0/",target:"_blank",rel:"noreferrer noopener",children:"CC-BY 4.0"}),"."]})})]})})]})]})})})})]})}var yre=(t=>(t[t.GeneralPage=0]="GeneralPage",t[t.AccountPage=1]="AccountPage",t[t.NotificationPage=2]="NotificationPage",t[t.DevicesPage=3]="DevicesPage",t[t.EmojisStickersPage=4]="EmojisStickersPage",t[t.DeveloperToolsPage=5]="DeveloperToolsPage",t[t.AboutPage=6]="AboutPage",t))(yre||{});const O$e=()=>f.useMemo(()=>[{page:0,name:"General",icon:$.Setting},{page:1,name:"Account",icon:$.User},{page:2,name:"Notifications",icon:$.Bell},{page:3,name:"Devices",icon:$.Monitor},{page:4,name:"Emojis & Stickers",icon:$.Smile},{page:5,name:"Developer Tools",icon:$.Terminal},{page:6,name:"About",icon:$.Info}],[]);function xre({initialPage:t,requestClose:e}){const n=ge(),r=Tt(),o=n.getUserId(),i=N4(o),s=i.displayName??ln(o)??o,u=i.avatarUrl?Xt(n,i.avatarUrl,r,96,96,"crop")??void 0:void 0,l=Wr(),[c,d]=f.useState(()=>t||(l===en.Mobile?void 0:0)),F=O$e(),h=()=>{if(l===en.Mobile){d(void 0);return}e()};return a.jsxs(Ad,{nav:l===en.Mobile&&c!==void 0?void 0:a.jsxs(Td,{size:"300",children:[a.jsxs(Id,{outlined:!1,children:[a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"300",children:a.jsx(wa,{userId:o,src:u,renderFallback:()=>a.jsx(x,{size:"H6",children:Gi(s)})})}),a.jsx(x,{size:"H4",truncate:!0,children:"Settings"})]}),a.jsx(y,{shrink:"No",children:l===en.Mobile&&a.jsx(Me,{onClick:e,variant:"Background",children:a.jsx(Q,{src:$.Cross})})})]}),a.jsxs(y,{grow:"Yes",direction:"Column",children:[a.jsx(Rd,{children:a.jsx("div",{style:{flexGrow:1},children:F.map(m=>a.jsx(tt,{variant:"Background",radii:"400","aria-pressed":c===m.page,before:a.jsx(Q,{src:m.icon,size:"100",filled:c===m.page}),onClick:()=>d(m.page),children:a.jsx(x,{style:{fontWeight:c===m.page?le.fontWeight.W600:void 0},size:"T300",truncate:!0,children:m.name})},m.name))})}),a.jsx(y,{style:{padding:le.space.S200},shrink:"No",direction:"Column",children:a.jsx(Oo,{initial:!1,children:(m,D)=>a.jsxs(a.Fragment,{children:[a.jsx(Ee,{size:"300",variant:"Critical",fill:"None",radii:"Pill",before:a.jsx(Q,{src:$.Power,size:"100"}),onClick:()=>D(!0),children:a.jsx(x,{size:"B400",children:"Logout"})}),m&&a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{onDeactivate:()=>D(!1),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(ure,{handleClose:()=>D(!1)})})})})]})})})]})]}),children:[c===0&&a.jsx(dqe,{requestClose:h}),c===1&&a.jsx(xqe,{requestClose:h}),c===2&&a.jsx(Gqe,{requestClose:h}),c===3&&a.jsx(l$e,{requestClose:h}),c===4&&a.jsx(y$e,{requestClose:h}),c===5&&a.jsx(I$e,{requestClose:h}),c===6&&a.jsx(R$e,{requestClose:h})]})}function H4({requestClose:t,children:e}){return a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,clickOutsideDeactivates:!0,onDeactivate:t,escapeDeactivates:vt},children:a.jsx(xs,{size:"500",variant:"Background",children:e})})})})}function M$e(){const t=ge(),e=Tt(),n=t.getUserId(),r=N4(n),[o,i]=f.useState(!1),s=r.displayName??ln(n)??n,u=r.avatarUrl?Xt(t,r.avatarUrl,e,96,96,"crop")??void 0:void 0,l=()=>i(!0),c=()=>i(!1);return a.jsxs(tl,{active:o,children:[a.jsx(nl,{tooltip:s,children:d=>a.jsx(Qs,{as:"button",ref:d,onClick:l,children:a.jsx(wa,{userId:n,src:u,renderFallback:()=>a.jsx(x,{size:"H4",children:Gi(s)})})})}),o&&a.jsx(H4,{requestClose:c,children:a.jsx(xre,{requestClose:c})})]})}var P$e="ohr24n2",L$e="ohr24n3",N$e="ohr24n1";function z$e(){const t=ge(),e=t.getCrypto(),[n]=ere(),[r,o]=nre(n),i=U4(e,t.getSafeUserId(),r==null?void 0:r.device_id)===vc.Unverified,s=tre(o),u=sre(e,t.getSafeUserId(),s),[l,c]=f.useState(!1),d=()=>c(!1),F=i||u!==void 0&&u>0;return a.jsxs(a.Fragment,{children:[F&&a.jsxs(tl,{active:l,className:N$e,children:[a.jsx(nl,{tooltip:i?"Unverified Device":"Unverified Devices",children:h=>a.jsx(Qs,{className:i?P$e:L$e,as:"button",ref:h,outlined:!0,onClick:()=>c(!0),children:a.jsx(Q,{style:{color:i?ct.Critical.Main:ct.Warning.Main},src:$.ShieldUser})})}),!i&&u&&u>0&&a.jsx(wD,{hasCount:!0,children:a.jsx(Bt,{variant:"Warning",size:"400",fill:"Solid",radii:"Pill",outlined:!1,children:a.jsx(x,{as:"span",size:"L400",children:u})})})]}),l&&a.jsx(H4,{requestClose:d,children:a.jsx(xre,{initialPage:yre.DevicesPage,requestClose:d})})]})}function U$e(){return sI()?a.jsx(z$e,{}):null}function V$e(){const t=f.useRef(null);return a.jsx(SVe,{children:a.jsx(jVe,{scrollable:a.jsxs(Mt,{ref:t,variant:"Background",size:"0",children:[a.jsxs(L4,{children:[a.jsx(AVe,{}),a.jsx(RVe,{})]}),a.jsx(JVe,{scrollRef:t}),a.jsx(tI,{}),a.jsxs(L4,{children:[a.jsx(QVe,{}),a.jsx(tl,{children:a.jsx(nl,{tooltip:"Create Space",children:e=>a.jsx(Qs,{as:"button",ref:e,outlined:!0,onClick:()=>s3(!0),children:a.jsx(Q,{src:$.Plus})})})})]})]}),sticky:a.jsxs(a.Fragment,{children:[a.jsx(tI,{}),a.jsxs(L4,{children:[a.jsx(tl,{children:a.jsx(nl,{tooltip:"Search",children:e=>a.jsx(Qs,{as:"button",ref:e,outlined:!0,onClick:()=>CW(),children:a.jsx(Q,{src:$.Search})})})}),a.jsx(U$e,{}),a.jsx(XVe,{}),a.jsx(M$e,{})]})]})})})}function q$e({children:t}){const e=Wr(),n=gi({path:ap,caseSensitive:!0,end:!0}),r=gi({path:sp,caseSensitive:!0,end:!0}),o=gi({path:up,caseSensitive:!0,end:!0}),i=gi({path:lp,caseSensitive:!0,end:!0}),s=gi({path:cp,caseSensitive:!0,end:!0});return e===en.Mobile&&!(n||r||o||i||s)?null:t}function V_({path:t,children:e}){const n=Wr(),r=gi({path:t,caseSensitive:!0,end:!0});return n===en.Mobile&&!r?null:e}const H$e="openedSidebarFolder",$$e=t=>{const e=`${H$e}${t}`,n=Lf(e,r=>{const o=Mf(r,[]);return new Set(o)},(r,o)=>{const i=Array.from(o);Pf(r,i)});return Bn(r=>r(n),(r,o,i)=>{if(i.type==="DELETE"){o(n,po(r(n),s=>{s.delete(i.id)}));return}i.type==="PUT"&&o(n,po(r(n),s=>{s.add(i.id)}))})};function W$e({children:t}){const e=ge().getUserId(),n=f.useMemo(()=>UEe(e),[e]),r=f.useMemo(()=>Rze(e),[e]),o=f.useMemo(()=>o_e(e),[e]),i=f.useMemo(()=>$$e(e),[e]);return a.jsx(t8e,{value:n,children:a.jsx(JUe,{value:r,children:a.jsx(VEe,{value:o,children:a.jsx($Ve,{value:i,children:t})})})})}const K$e="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2707_2015)'%3e%3cpath%20d='M10.5867%2017.3522C10.0727%2017.4492%209.54226%2017.5%209%2017.5C4.30558%2017.5%200.5%2013.6944%200.5%209C0.5%204.30558%204.30558%200.5%209%200.5C13.6944%200.5%2017.5%204.30558%2017.5%209C17.5%209.54226%2017.4492%2010.0727%2017.3522%2010.5867C16.6511%2010.2123%2015.8503%2010%2015%2010C12.2386%2010%2010%2012.2386%2010%2015C10%2015.8503%2010.2123%2016.6511%2010.5867%2017.3522Z'%20fill='white'/%3e%3cpath%20d='M10%206.39999C10%206.67614%209.77614%206.89999%209.5%206.89999C9.22386%206.89999%209%206.67614%209%206.39999C9%206.12385%209.22386%205.89999%209.5%205.89999C9.77614%205.89999%2010%206.12385%2010%206.39999Z'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%200C4%200%200%204%200%209C0%2014%204%2018%209%2018C9.63967%2018%2010.263%2017.9345%2010.8636%2017.8099C10.3186%2017.0091%2010%2016.0417%2010%2015C10%2012.2386%2012.2386%2010%2015%2010C16.0417%2010%2017.0091%2010.3186%2017.8099%2010.8636C17.9345%2010.263%2018%209.63967%2018%209C18%204%2014%200%209%200ZM1.2%2010.8L4.7%208.5V8.2C4.7%206.4%206%205%207.8%204.8H8.2C9.4%204.8%2010.5%205.4%2011.1%206.4C11.4%206.3%2011.7%206.3%2012%206.3C12.4%206.3%2012.8%206.3%2013.2%206.4C13.9%206.6%2014.6%206.9%2015.2%207.3C14.6%207.1%2014%207%2013.3%207C12.1%207%2011.1%207.4%2010.4%208.4C9.7%209.3%209.3%2010.4%209.3%2011.6C9.3%2013.1%208.9%2014.5%208%2015.8C7.93744%2015.8834%207.87923%2015.9625%207.82356%2016.0381C7.6123%2016.325%207.43739%2016.5626%207.2%2016.8C4.2%2016.1%201.9%2013.8%201.2%2010.8Z'%20fill='black'/%3e%3cpath%20d='M18%2015C18%2016.6569%2016.6569%2018%2015%2018C13.3431%2018%2012%2016.6569%2012%2015C12%2013.3431%2013.3431%2012%2015%2012C16.6569%2012%2018%2013.3431%2018%2015Z'%20fill='%23989898'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2707_2015'%3e%3crect%20width='18'%20height='18'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",G$e="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_2707_1961)'%3e%3cpath%20d='M10.5867%2017.3522C10.0727%2017.4492%209.54226%2017.5%209%2017.5C4.30558%2017.5%200.5%2013.6944%200.5%209C0.5%204.30558%204.30558%200.5%209%200.5C13.6944%200.5%2017.5%204.30558%2017.5%209C17.5%209.54226%2017.4492%2010.0727%2017.3522%2010.5867C16.6511%2010.2123%2015.8503%2010%2015%2010C12.2386%2010%2010%2012.2386%2010%2015C10%2015.8503%2010.2123%2016.6511%2010.5867%2017.3522Z'%20fill='white'/%3e%3cpath%20d='M10%206.39999C10%206.67614%209.77614%206.89999%209.5%206.89999C9.22386%206.89999%209%206.67614%209%206.39999C9%206.12385%209.22386%205.89999%209.5%205.89999C9.77614%205.89999%2010%206.12385%2010%206.39999Z'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%200C4%200%200%204%200%209C0%2014%204%2018%209%2018C9.63967%2018%2010.263%2017.9345%2010.8636%2017.8099C10.3186%2017.0091%2010%2016.0417%2010%2015C10%2012.2386%2012.2386%2010%2015%2010C16.0417%2010%2017.0091%2010.3186%2017.8099%2010.8636C17.9345%2010.263%2018%209.63967%2018%209C18%204%2014%200%209%200ZM1.2%2010.8L4.7%208.5V8.2C4.7%206.4%206%205%207.8%204.8H8.2C9.4%204.8%2010.5%205.4%2011.1%206.4C11.4%206.3%2011.7%206.3%2012%206.3C12.4%206.3%2012.8%206.3%2013.2%206.4C13.9%206.6%2014.6%206.9%2015.2%207.3C14.6%207.1%2014%207%2013.3%207C12.1%207%2011.1%207.4%2010.4%208.4C9.7%209.3%209.3%2010.4%209.3%2011.6C9.3%2013.1%208.9%2014.5%208%2015.8C7.93744%2015.8834%207.87923%2015.9625%207.82356%2016.0381C7.6123%2016.325%207.43739%2016.5626%207.2%2016.8C4.2%2016.1%201.9%2013.8%201.2%2010.8Z'%20fill='black'/%3e%3cpath%20d='M18%2015C18%2016.6569%2016.6569%2018%2015%2018C13.3431%2018%2012%2016.6569%2012%2015C12%2013.3431%2013.3431%2012%2015%2012C16.6569%2012%2018%2013.3431%2018%2015Z'%20fill='%2345B83B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2707_1961'%3e%3crect%20width='18'%20height='18'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Y$e="/assets/notification-EtLMRd0T.ogg",Z$e="/assets/invite-DROg5x7-.ogg",J$e=(t,e)=>{const n=f.useRef(e);return f.useEffect(()=>{n.current=t},[t]),n.current};function X$e(){const[t]=Ft(ut,"twitterEmoji");return t?document.documentElement.style.setProperty("--font-emoji","Twemoji"):document.documentElement.style.setProperty("--font-emoji","Twemoji_DISABLED"),null}function Q$e(){const[t]=Ft(ut,"pageZoom");return t===100?document.documentElement.style.removeProperty("font-size"):document.documentElement.style.setProperty("font-size",`calc(1em * ${t/100})`),null}function eWe(){const t=_t(co);return f.useEffect(()=>{let e=!1,n=!1;t.forEach(r=>{r.total>0&&(e=!0),r.highlight>0&&(n=!0)}),tfe(e?n?G$e:K$e:xF)},[t]),null}function tWe(){const t=f.useRef(null),e=_t(h3),n=J$e(e.length,0),r=ge(),o=Xr(),[i]=Ft(ut,"showNotifications"),[s]=Ft(ut,"isNotificationSounds"),u=f.useCallback(c=>{const d=new window.Notification("Invitation",{icon:xF,badge:xF,body:`You have ${c} new invitation request.`,silent:!0});d.onclick=()=>{window.closed||o(yC()),d.close()}},[o]),l=f.useCallback(()=>{var c;(c=t.current)==null||c.play()},[]);return f.useEffect(()=>{e.length>n&&r.getSyncState()==="SYNCING"&&(i&&oH("granted")&&u(e.length-n),s&&l())},[r,e,n,i,s,u,l]),a.jsx("audio",{ref:t,style:{display:"none"},children:a.jsx("source",{src:Z$e,type:"audio/ogg"})})}function nWe(){const t=f.useRef(null),e=f.useRef(),n=f.useRef(new Map),r=ge(),o=Tt(),[i]=Ft(ut,"showNotifications"),[s]=Ft(ut,"isNotificationSounds"),u=Xr(),l=QJ(),c=Mh(),d=f.useCallback(({roomName:h,roomAvatar:m,username:D})=>{var p;const g=new window.Notification(h,{icon:m,badge:m,body:`New inbox notification from ${D}`,silent:!0});g.onclick=()=>{window.closed||u(If()),g.close(),e.current=void 0},(p=e.current)==null||p.close(),e.current=g},[u]),F=f.useCallback(()=>{var h;(h=t.current)==null||h.play()},[]);return f.useEffect(()=>{const h=(m,D,g,p,_)=>{var C;if(r.getSyncState()!=="SYNCING"||document.hasFocus()&&(c===(D==null?void 0:D.roomId)||l)||!D||!_.liveEvent||D.isSpaceRoom()||!Y5(m)||G5(r,D.roomId)===fd.Mute)return;const v=m.getSender(),E=m.getId();if(!v||!E||m.getSender()===r.getUserId())return;const b=Z5(D),k=n.current.get(D.roomId);if(n.current.set(D.roomId,b),b.total!==0&&!(k&&CS(dE(k),dE(b)))){if(i&&oH("granted")){const S=((C=D.getAvatarFallbackMember())==null?void 0:C.getMxcAvatarUrl())??D.getMxcAvatarUrl();d({roomName:D.name??"Unknown",roomAvatar:S?Xt(r,S,o,96,96,"crop")??void 0:void 0,username:wr(D,v)??ln(v)??v,roomId:D.roomId,eventId:E})}s&&F()}};return r.on(Ke.Timeline,h),()=>{r.removeListener(Ke.Timeline,h)}},[r,s,l,i,F,d,c,o]),a.jsx("audio",{ref:t,style:{display:"none"},children:a.jsx("source",{src:Y$e,type:"audio/ogg"})})}function rWe({children:t}){return a.jsxs(a.Fragment,{children:[a.jsx(X$e,{}),a.jsx(Q$e,{}),a.jsx(eWe,{}),a.jsx(tWe,{}),a.jsx(nWe,{}),t]})}function oWe(){const t=nA();return f.useEffect(()=>{document.body.className="",document.body.classList.add(N6,z6),t===Ys.Dark&&document.body.classList.add(...r_.classNames),t===Ys.Light&&document.body.classList.add(...n0.classNames)},[t]),null}function iWe({children:t}){const e=uSe();return f.useEffect(()=>{document.body.className="",document.body.classList.add(N6,z6),document.body.classList.add(...e.classNames)},[e]),a.jsx(lSe,{value:e,children:t})}var m1="_1aclz590";const wre=t=>{var o;const e=(o=vi(t,Re.RoomCanonicalAlias))==null?void 0:o.getContent(),n=e==null?void 0:e.alias,r=f.useMemo(()=>{var s;const i=[];return typeof(e==null?void 0:e.alias)=="string"&&i.push(e.alias),(s=e==null?void 0:e.alt_aliases)==null||s.forEach(u=>{typeof u=="string"&&i.push(u)}),i},[e]);return[n,r]},aWe=t=>{const e=ge();return f.useCallback(async n=>{var s,u;const r=(s=so(t,Re.RoomCanonicalAlias))==null?void 0:s.getContent(),o=[];r!=null&&r.alias&&r.alias!==n&&o.push(r.alias),(u=r==null?void 0:r.alt_aliases)==null||u.forEach(l=>{l!==n&&o.push(l)});const i={alias:n,alt_aliases:o};await e.sendStateEvent(t.roomId,Re.RoomCanonicalAlias,i)},[e,t])},sWe=t=>{const e=ge(),n=f.useCallback(async o=>{var l;const i=(l=so(t,Re.RoomCanonicalAlias))==null?void 0:l.getContent(),s=(i==null?void 0:i.alt_aliases)??[];o.forEach(c=>{s.includes(c)||s.push(c)});const u={alias:i==null?void 0:i.alias,alt_aliases:s};await e.sendStateEvent(t.roomId,Re.RoomCanonicalAlias,u)},[e,t]),r=f.useCallback(async o=>{var l,c;const i=(l=so(t,Re.RoomCanonicalAlias))==null?void 0:l.getContent(),s=[];(c=i==null?void 0:i.alt_aliases)==null||c.forEach(d=>{o.includes(d)||s.push(d)});const u={alias:i==null?void 0:i.alias,alt_aliases:s};await e.sendStateEvent(t.roomId,Re.RoomCanonicalAlias,u)},[e,t]);return{publishAliases:n,unpublishAliases:r}},uWe=t=>{const e=ge(),n=yr(),[r,o]=et(f.useCallback(async()=>(await e.getLocalAliases(t)).aliases,[e,t]));f.useEffect(()=>{o()},[o]);const i=f.useCallback(async u=>{await e.createAlias(u,t),n()&&await o()},[e,t,o,n]),s=f.useCallback(async u=>{await e.deleteAlias(u),n()&&await o()},[e,o,n]);return{localAliasesState:r,addLocalAlias:i,removeLocalAlias:s}};function kre({powerLevels:t}){const e=ge(),n=pr(),r=mr.getPowerLevel(t,e.getSafeUserId()),o=mr.canSendStateEvent(t,Re.RoomCanonicalAlias,r),[i,s]=wre(n),u=aWe(n),[l,c]=et(u),d=l.status===he.Loading;return a.jsxs(rt,{className:m1,variant:"SurfaceVariant",direction:"Column",gap:"400",children:[a.jsx(gt,{title:"Published Addresses",description:a.jsxs("span",{children:["If access is ",a.jsx("b",{children:"Public"}),", Published addresses will be used to join by anyone."]})}),a.jsx(U_,{variant:"Surface",style:{padding:le.space.S300},children:s.length===0?a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"No Addresses"}),a.jsx(x,{size:"T200",children:"To publish an address, it needs to be set as a local address first"})]}):a.jsxs(y,{direction:"Column",gap:"300",children:[s.map(F=>a.jsxs(y,{as:"span",gap:"200",alignItems:"Center",children:[a.jsxs(y,{grow:"Yes",gap:"Inherit",alignItems:"Center",children:[a.jsx(x,{size:"T300",truncate:!0,children:F===i?a.jsx("b",{children:F}):F}),F===i&&a.jsx(Bt,{variant:"Success",fill:"Solid",size:"500",children:a.jsx(x,{size:"L400",children:"Main"})})]}),o&&a.jsx(y,{shrink:"No",gap:"100",children:F===i?a.jsx(We,{variant:"Warning",radii:"Pill",fill:"None",disabled:d,onClick:()=>c(void 0),children:a.jsx(x,{size:"B300",children:"Unset Main"})}):a.jsx(We,{variant:"Success",radii:"Pill",fill:i?"None":"Soft",disabled:d,onClick:()=>c(F),children:a.jsx(x,{size:"B300",children:"Set Main"})})})]},F)),l.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:l.error.message})]})})]})}function lWe({addLocalAlias:t}){const e=ge().getSafeUserId(),n=zf(e),r=yr(),[o,i]=et(t),s=o.status===he.Loading,u=l=>{var F;if(s)return;l.preventDefault();const c=(F=l.target)==null?void 0:F.aliasInput;if(!c)return;const d=K6(c.value.trim());d&&i(`#${d}:${n}`).then(()=>{r()&&(c.value="")})};return a.jsxs(y,{as:"form",onSubmit:u,direction:"Column",gap:"200",children:[a.jsxs(y,{gap:"200",children:[a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(En,{name:"aliasInput",variant:"Secondary",size:"400",radii:"300",before:a.jsx(x,{size:"T200",children:"#"}),readOnly:s,after:a.jsxs(x,{style:{maxWidth:Dt(300)},size:"T200",truncate:!0,children:[":",n]})})}),a.jsx(y,{shrink:"No",children:a.jsx(Ee,{variant:"Success",size:"400",radii:"300",type:"submit",disabled:s,before:s&&a.jsx(ot,{size:"100",variant:"Success",fill:"Solid"}),children:a.jsx(x,{size:"B400",children:"Save"})})})]}),o.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T200",children:o.error.httpStatus===409?"Address is already in use!":o.error.message})]})}function cWe({localAliases:t,removeLocalAlias:e,canEditCanonical:n}){const r=pr(),o=yr(),[,i]=wre(r),{publishAliases:s,unpublishAliases:u}=sWe(r),[l,c]=f.useState([]),d=l.find(w=>i.includes(w)),F=w=>{c(A=>{if(A.includes(w))return A.filter(j=>j!==w);const O=[...A];return O.push(w),O})},h=()=>{o()&&c([])},[m,D]=et(f.useCallback(async w=>{for(let A=0;A<w.length;A+=1){const O=w[A];await e(O)}},[e])),[g,p]=et(s),[_,v]=et(u),E=()=>{D(l).then(h)},b=()=>{p(l).then(h)},k=()=>{v(l).then(h)},C=m.status===he.Loading||g.status===he.Loading||_.status===he.Loading;let S;return m.status===he.Error&&(S=m.error),g.status===he.Error&&(S=g.error),_.status===he.Error&&(S=_.error),a.jsxs(y,{direction:"Column",gap:"300",children:[l.length>0&&a.jsxs(y,{gap:"200",children:[a.jsx(y,{grow:"Yes",children:a.jsxs(x,{size:"L400",children:[l.length," Selected"]})}),a.jsxs(y,{shrink:"No",gap:"Inherit",children:[n&&(d?a.jsx(We,{variant:"Warning",radii:"Pill",disabled:C,onClick:k,before:_.status===he.Loading&&a.jsx(ot,{size:"100",variant:"Warning"}),children:a.jsx(x,{size:"B300",children:"Unpublish"})}):a.jsx(We,{variant:"Success",radii:"Pill",disabled:C,onClick:b,before:g.status===he.Loading&&a.jsx(ot,{size:"100",variant:"Success"}),children:a.jsx(x,{size:"B300",children:"Publish"})})),a.jsx(We,{variant:"Critical",radii:"Pill",disabled:C,onClick:E,before:m.status===he.Loading&&a.jsx(ot,{size:"100",variant:"Critical"}),children:a.jsx(x,{size:"B300",children:"Delete"})})]})]}),t.map(w=>{const A=i.includes(w),O=l.includes(w);return a.jsxs(y,{as:"span",alignItems:"Center",gap:"200",children:[a.jsx(y,{shrink:"No",children:a.jsx(U6,{checked:O,onChange:()=>F(w),size:"50",variant:"Primary",disabled:C})}),a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T300",truncate:!0,children:w})}),a.jsx(y,{shrink:"No",gap:"100",children:A&&a.jsx(Bt,{variant:"Success",fill:"Soft",size:"500",children:a.jsx(x,{size:"L400",children:"Published"})})})]},w)}),S&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:S.message})]})}function Sre({powerLevels:t}){const e=ge(),n=pr(),r=mr.getPowerLevel(t,e.getSafeUserId()),o=mr.canSendStateEvent(t,Re.RoomCanonicalAlias,r),[i,s]=f.useState(!1),{localAliasesState:u,addLocalAlias:l,removeLocalAlias:c}=uWe(n.roomId);return a.jsxs(rt,{className:m1,variant:"SurfaceVariant",direction:"Column",gap:"400",children:[a.jsx(gt,{title:"Local Addresses",description:"Set local address so users can join through your homeserver.",after:a.jsx(Ee,{type:"button",onClick:()=>s(!i),size:"300",variant:"Secondary",fill:"Soft",outlined:!0,radii:"300",before:a.jsx(Q,{size:"100",src:i?$.ChevronTop:$.ChevronBottom,filled:!0}),children:a.jsx(x,{as:"span",size:"B300",truncate:!0,children:i?"Collapse":"Expand"})})}),i&&a.jsxs(U_,{variant:"Surface",style:{padding:le.space.S300},children:[u.status===he.Loading&&a.jsxs(y,{gap:"100",children:[a.jsx(ot,{variant:"Secondary",size:"100"}),a.jsx(x,{size:"T200",children:"Loading..."})]}),u.status===he.Success&&(u.data.length===0?a.jsx(y,{direction:"Column",gap:"100",children:a.jsx(x,{size:"L400",children:"No Addresses"})}):a.jsx(cWe,{localAliases:u.data,removeLocalAlias:c,canEditCanonical:o})),u.status===he.Error&&a.jsx(y,{gap:"100",children:a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:u.error.message})})]}),i&&a.jsx(lWe,{addLocalAlias:l})]})}const jre="m.megolm.v1.aes-sha2";function dWe({powerLevels:t}){var h,m;const e=ge(),n=pr(),r=mr.getPowerLevel(t,e.getSafeUserId()),o=mr.canSendStateEvent(t,Re.RoomEncryption,r),i=((m=(h=vi(n,Re.RoomEncryption))==null?void 0:h.getContent())==null?void 0:m.algorithm)===jre,[s,u]=et(f.useCallback(async()=>{await e.sendStateEvent(n.roomId,Re.RoomEncryption,{algorithm:jre})},[e,n.roomId])),l=s.status===he.Loading,[c,d]=f.useState(!1),F=()=>{u(),d(!1)};return a.jsx(rt,{className:m1,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsxs(gt,{title:"Room Encryption",description:i?"Messages in this room are protected by end-to-end encryption.":"Once enabled, encryption cannot be disabled!",after:i?a.jsx(Bt,{size:"500",variant:"Success",fill:"Solid",radii:"300",children:a.jsx(x,{size:"L400",children:"Enabled"})}):a.jsx(Ee,{size:"300",variant:"Primary",fill:"Solid",radii:"300",disabled:!o,onClick:()=>d(!0),before:l&&a.jsx(ot,{size:"100",variant:"Primary",fill:"Solid"}),children:a.jsx(x,{size:"B300",children:"Enable"})}),children:[s.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T200",children:s.error.message}),c&&a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>d(!1),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsxs(cr,{variant:"Surface",children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:"Enable Encryption"})}),a.jsx(Me,{size:"300",onClick:()=>d(!1),radii:"300",children:a.jsx(Q,{src:$.Cross})})]}),a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsx(x,{priority:"400",children:"Are you sure? Once enabled, encryption cannot be disabled!"}),a.jsx(Ee,{type:"submit",variant:"Primary",onClick:F,children:a.jsx(x,{size:"B400",children:"Enable E2E Encryption"})})]})]})})})})]})})}const hWe=()=>f.useMemo(()=>({[zi.Invited]:"After Invite",[zi.Joined]:"After Join",[zi.Shared]:"All Messages",[zi.WorldReadable]:"All Messages (Guests)"}),[]),FWe=()=>f.useMemo(()=>[zi.Shared,zi.Invited,zi.Joined,zi.WorldReadable],[]);function mWe({powerLevels:t}){var g;const e=ge(),n=pr(),r=mr.getPowerLevel(t,e.getSafeUserId()),o=mr.canSendStateEvent(t,Re.RoomHistoryVisibility,r),i=((g=vi(n,Re.RoomHistoryVisibility))==null?void 0:g.getContent().history_visibility)??zi.Shared,s=FWe(),u=hWe(),[l,c]=f.useState(),d=p=>{c(p.currentTarget.getBoundingClientRect())},[F,h]=et(f.useCallback(async p=>{const _={history_visibility:p};await e.sendStateEvent(n.roomId,Re.RoomHistoryVisibility,_)},[e,n.roomId])),m=F.status===he.Loading,D=p=>{h(p),c(void 0)};return a.jsx(rt,{className:m1,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Message History Visibility",description:"Changes to history visibility will only apply to future messages. The visibility of existing history will have no effect.",after:a.jsx(Ut,{anchor:l,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,returnFocusOnDeactivate:!1,onDeactivate:()=>c(void 0),clickOutsideDeactivates:!0,isKeyForward:p=>p.key==="ArrowDown",isKeyBackward:p=>p.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(zt,{style:{padding:le.space.S100},children:s.map(p=>a.jsx(tt,{size:"300",radii:"300",onClick:()=>D(p),"aria-pressed":p===i,children:a.jsx(x,{as:"span",size:"T300",truncate:!0,children:u[p]})},p))})}),children:a.jsx(Ee,{variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,disabled:!o||m,onClick:d,after:m?a.jsx(ot,{size:"100",variant:"Secondary"}):a.jsx(Q,{size:"100",src:$.ChevronBottom}),children:a.jsx(x,{size:"B300",children:u[i]})})}),children:F.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T200",children:F.error.message})})})}const DWe=()=>f.useMemo(()=>({[un.Invite]:$.HashLock,[un.Knock]:$.HashLock,knock_restricted:$.Hash,[un.Restricted]:$.Hash,[un.Public]:$.HashGlobe,[un.Private]:$.HashLock}),[]),gWe=()=>f.useMemo(()=>({[un.Invite]:$.SpaceLock,[un.Knock]:$.SpaceLock,knock_restricted:$.Space,[un.Restricted]:$.Space,[un.Public]:$.SpaceGlobe,[un.Private]:$.SpaceLock}),[]),pWe=()=>f.useMemo(()=>({[un.Invite]:"Invite Only",[un.Knock]:"Knock & Invite",knock_restricted:"Space Members or Knock",[un.Restricted]:"Space Members",[un.Public]:"Public",[un.Private]:"Invite Only"}),[]);function fWe({icons:t,labels:e,rules:n,value:r,onChange:o,disabled:i,changing:s}){const[u,l]=f.useState(),c=F=>{l(F.currentTarget.getBoundingClientRect())},d=f.useCallback(F=>{l(void 0),o(F)},[o]);return a.jsx(Ut,{anchor:u,position:"Bottom",align:"End",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>l(void 0),clickOutsideDeactivates:!0,isKeyForward:F=>F.key==="ArrowDown",isKeyBackward:F=>F.key==="ArrowUp",escapeDeactivates:vt},children:a.jsx(zt,{children:a.jsx(y,{direction:"Column",gap:"100",style:{padding:le.space.S100},children:n.map(F=>a.jsx(tt,{size:"300",variant:"Surface",radii:"300","aria-pressed":r===F,onClick:()=>d(F),before:a.jsx(Q,{size:"100",src:t[F]}),disabled:i,children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T300",children:e[F]})})},F))})})}),children:a.jsx(Ee,{size:"300",variant:"Secondary",fill:"Soft",radii:"300",outlined:!0,before:a.jsx(Q,{size:"100",src:t[r]??t[un.Restricted]}),after:s?a.jsx(ot,{size:"100",variant:"Secondary",fill:"Soft"}):a.jsx(Q,{size:"100",src:$.ChevronBottom}),onClick:c,disabled:i,children:a.jsx(x,{size:"B300",children:e[r]??"Unsupported"})})})}function Bre({powerLevels:t}){var k,C;const e=ge(),n=pr(),r=parseInt(n.getVersion(),10),o=r>=10,i=r>=8,s=r>=7,u=_t(lo),l=m3(),c=iCe(e,u),d=aE(nr,(l==null?void 0:l.roomId)??"",c),F=mr.getPowerLevel(t,e.getSafeUserId()),h=mr.canSendStateEvent(t,Re.RoomHistoryVisibility,F),m=((C=(k=vi(n,Re.RoomJoinRules))==null?void 0:k.getContent())==null?void 0:C.join_rule)??un.Invite,D=f.useMemo(()=>{const S=[un.Invite];return s&&S.push(un.Knock),i&&l&&S.push(un.Restricted),o&&l&&S.push("knock_restricted"),S.push(un.Public),S},[o,i,s,l]),g=DWe(),p=gWe(),_=pWe(),[v,E]=et(f.useCallback(async S=>{const w=[];if(S===un.Restricted||S==="knock_restricted"){const O=u.get(n.roomId),j=bh(n,Re.SpaceParent).map(R=>R.getStateKey()).filter(R=>typeof R=="string").filter(R=>O==null?void 0:O.has(R));if(j.length===0&&l&&O){const R=d.filter(M=>O.has(M));O.has(l.roomId)&&R.push(l.roomId),R.forEach(M=>j.push(M))}j.forEach(R=>{R&&w.push({type:Pb.RoomMembership,room_id:R})})}const A={join_rule:S};w.length>0&&(A.allow=w),await e.sendStateEvent(n.roomId,Re.RoomJoinRules,A)},[e,n,l,d,u])),b=v.status===he.Loading;return a.jsx(rt,{className:m1,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:n.isSpaceRoom()?"Space Access":"Room Access",description:n.isSpaceRoom()?"Change how people can join the space.":"Change how people can join the room.",after:a.jsx(fWe,{icons:n.isSpaceRoom()?p:g,labels:_,rules:D,value:m,onChange:E,disabled:!h||b,changing:b}),children:v.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T200",children:v.error.message})})})}function _We({canEditAvatar:t,canEditName:e,canEditTopic:n,avatar:r,name:o,topic:i,onClose:s}){const u=pr(),l=ge(),c=yr(),d=Tt(),F=Oy(u),[h,m]=f.useState(r),D=h?Xt(l,h,d)??void 0:void 0,[g,p]=f.useState(),_=j_(g)?h===r:!1,v=f.useMemo(()=>{if(g)return vD(g)},[g]),E=x0(p,!1),b=f.useCallback(()=>{p(void 0),m(r)},[r]),k=f.useCallback(O=>{m(O.mxc)},[]),[C,S]=et(f.useCallback(async(O,j,R)=>{O!==void 0&&await l.sendStateEvent(u.roomId,Re.RoomAvatar,{url:O}),j!==void 0&&await l.sendStateEvent(u.roomId,Re.RoomName,{name:j}),R!==void 0&&await l.sendStateEvent(u.roomId,Re.RoomTopic,{topic:R})},[l,u.roomId])),w=C.status===he.Loading,A=O=>{if(O.preventDefault(),_)return;const j=O.target,R=j==null?void 0:j.nameInput,M=j==null?void 0:j.topicTextArea;if(!R||!M)return;const z=R.value.trim(),T=M.value.trim();h===r&&z===o&&T===i||S(h===r?void 0:h||null,z===o?void 0:z,T===i?void 0:T).then(()=>{c()&&s()})};return a.jsxs(y,{as:"form",onSubmit:A,direction:"Column",gap:"400",children:[a.jsxs(y,{gap:"400",children:[a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Avatar"}),v?a.jsx(y,{gap:"200",direction:"Column",children:a.jsx(B_,{uploadAtom:v,onRemove:b,onComplete:k})}):a.jsxs(y,{gap:"200",children:[a.jsx(Ee,{type:"button",size:"300",variant:"Secondary",fill:"Soft",radii:"300",disabled:!t||w,onClick:()=>E("image/*"),children:a.jsx(x,{size:"B300",children:"Upload"})}),!h&&r&&a.jsx(Ee,{type:"button",size:"300",variant:"Success",fill:"None",radii:"300",disabled:!t||w,onClick:()=>m(r),children:a.jsx(x,{size:"B300",children:"Reset"})}),h&&a.jsx(Ee,{type:"button",size:"300",variant:"Critical",fill:"None",radii:"300",disabled:!t||w,onClick:()=>m(void 0),children:a.jsx(x,{size:"B300",children:"Remove"})})]})]}),a.jsx(y,{shrink:"No",children:a.jsx(Rt,{size:"500",radii:"300",children:a.jsx(ho,{roomId:u.roomId,src:D,alt:o,renderFallback:()=>a.jsx(ts,{space:u.isSpaceRoom(),size:"400",joinRule:(F==null?void 0:F.join_rule)??un.Invite,filled:!0})})})})]}),a.jsxs(y,{direction:"Inherit",gap:"100",children:[a.jsx(x,{size:"L400",children:"Name"}),a.jsx(En,{name:"nameInput",defaultValue:o,variant:"Secondary",radii:"300",readOnly:!e||w})]}),a.jsxs(y,{direction:"Inherit",gap:"100",children:[a.jsx(x,{size:"L400",children:"Topic"}),a.jsx(qg,{name:"topicTextArea",defaultValue:i,variant:"Secondary",radii:"300",readOnly:!n||w})]}),C.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:C.error.message}),a.jsxs(y,{gap:"300",children:[a.jsx(Ee,{type:"submit",variant:"Success",size:"300",radii:"300",disabled:_||w,before:w&&a.jsx(ot,{size:"100",variant:"Success",fill:"Solid"}),children:a.jsx(x,{size:"B300",children:"Save"})}),a.jsx(Ee,{type:"reset",onClick:s,variant:"Secondary",fill:"Soft",size:"300",radii:"300",children:a.jsx(x,{size:"B300",children:"Cancel"})})]})]})}function Are({powerLevels:t}){const e=ge(),n=Tt(),r=pr(),o=_t(Co),{getPowerLevel:i,canSendStateEvent:s}=yo(t),u=i(e.getSafeUserId()),l=i0(r,o.has(r.roomId)),c=t1(r),d=Ry(r),F=Oy(r),h=s(Re.RoomAvatar,u),m=s(Re.RoomName,u),D=s(Re.RoomTopic,u),g=h||m||D,p=l?Xt(e,l,n,96,96,"crop")??void 0:void 0,[_,v]=f.useState(!1),E=f.useCallback(()=>v(!1),[]);return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Profile"}),a.jsx(rt,{className:m1,variant:"SurfaceVariant",direction:"Column",gap:"400",children:_?a.jsx(_We,{canEditAvatar:h,canEditName:m,canEditTopic:D,avatar:l,name:c??"",topic:d??"",onClose:E}):a.jsxs(y,{gap:"400",children:[a.jsxs(y,{grow:"Yes",direction:"Column",gap:"300",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{className:Fs,size:"H5",children:c??"Unknown"}),d&&a.jsx(x,{className:Ve(Fs,eqe),size:"T200",children:a.jsx(w3,{options:Hh,children:d})})]}),g&&a.jsx(y,{gap:"200",children:a.jsx(We,{variant:"Secondary",fill:"Soft",radii:"300",before:a.jsx(Q,{size:"50",src:$.Pencil}),onClick:()=>v(!0),outlined:!0,children:a.jsx(x,{size:"B300",children:"Edit"})})})]}),a.jsx(y,{shrink:"No",children:a.jsx(Rt,{size:"500",radii:"300",children:a.jsx(ho,{roomId:r.roomId,src:p,alt:c,renderFallback:()=>a.jsx(ts,{space:r.isSpaceRoom(),size:"400",joinRule:(F==null?void 0:F.join_rule)??un.Invite,filled:!0})})})})]})})]})}const vWe=t=>{const e=ge(),[n,r]=et(f.useCallback(async()=>(await e.getRoomDirectoryVisibility(t)).visibility===nf.Public,[e,t]));f.useEffect(()=>{r()},[r]);const o=f.useCallback(async i=>{await e.setRoomDirectoryVisibility(t,i?nf.Public:nf.Private),await r()},[e,t,r]);return{visibilityState:n,setVisibility:o}};function Tre({powerLevels:t}){const e=ge(),n=pr(),r=mr.getPowerLevel(t,e.getSafeUserId()),o=mr.canSendStateEvent(t,Re.RoomCanonicalAlias,r),{visibilityState:i,setVisibility:s}=vWe(n.roomId),[u,l]=et(s),c=i.status===he.Loading||u.status===he.Loading;return a.jsx(rt,{className:m1,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsxs(gt,{title:"Publish To Directory",after:a.jsxs(y,{gap:"200",alignItems:"Center",children:[c&&a.jsx(ot,{variant:"Secondary"}),!c&&i.status===he.Success&&a.jsx(qo,{value:i.data,onChange:l,disabled:!o})]}),children:[i.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T200",children:i.error.message}),u.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T200",children:u.error.message})]})})}function Ire({powerLevels:t,requestClose:e}){var C,S,w,A;const n=ge(),r=pr(),{navigateRoom:o,navigateSpace:i}=Mo(),s=(C=vi(r,Re.RoomCreate))==null?void 0:C.getContent(),u=(s==null?void 0:s.room_version)??1,l=(S=s==null?void 0:s.predecessor)==null?void 0:S.room_id,c=(w=x7()["m.room_versions"])==null?void 0:w.default,d=(A=vi(r,Re.RoomTombstone))==null?void 0:A.getContent(),F=d==null?void 0:d.replacement_room,h=mr.getPowerLevel(t,n.getSafeUserId()),m=mr.canSendStateEvent(t,Re.RoomTombstone,h),D=()=>{F&&(e(),r.isSpaceRoom()?i(F):o(F))},g=()=>{var O;l&&(e(),r.isSpaceRoom()?i(l):o(l,(O=s.predecessor)==null?void 0:O.event_id))},[p,_]=et(f.useCallback(async O=>{await n.upgradeRoom(r.roomId,O)},[n,r])),v=p.status===he.Loading,[E,b]=f.useState(!1),k=O=>{var R,M;O.preventDefault();const j=(M=(R=O.target)==null?void 0:R.versionInput)==null?void 0:M.value.trim();j&&(_(j),b(!1))};return a.jsx(rt,{className:m1,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsxs(gt,{title:r.isSpaceRoom()?"Upgrade Space":"Upgrade Room",description:F?d.body||`This ${r.isSpaceRoom()?"space":"room"} has been replaced!`:`Current room version: ${u}.`,after:a.jsxs(y,{alignItems:"Center",gap:"200",children:[l&&a.jsx(Ee,{size:"300",variant:"Secondary",fill:"Soft",outlined:!0,radii:"300",onClick:g,children:a.jsx(x,{size:"B300",children:r.isSpaceRoom()?"Old Space":"Old Room"})}),F?a.jsx(Ee,{size:"300",variant:"Success",fill:"Solid",radii:"300",onClick:D,children:a.jsx(x,{size:"B300",children:r.isSpaceRoom()?"Open New Space":"Open New Room"})}):a.jsx(Ee,{size:"300",variant:"Secondary",fill:"Solid",radii:"300",disabled:v||!m,before:v&&a.jsx(ot,{size:"100",variant:"Secondary",fill:"Solid"}),onClick:()=>b(!0),children:a.jsx(x,{size:"B300",children:"Upgrade"})})]}),children:[p.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T200",children:p.error.message}),E&&a.jsx(Rn,{open:!0,backdrop:a.jsx(On,{}),children:a.jsx(zn,{children:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>b(!1),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsxs(cr,{variant:"Surface",as:"form",onSubmit:k,children:[a.jsxs(In,{style:{padding:`0 ${le.space.S200} 0 ${le.space.S400}`,borderBottomWidth:le.borderWidth.B300},variant:"Surface",size:"500",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"H4",children:r.isSpaceRoom()?"Space Upgrade":"Room Upgrade"})}),a.jsx(Me,{size:"300",onClick:()=>b(!1),radii:"300",children:a.jsx(Q,{src:$.Cross})})]}),a.jsxs(y,{style:{padding:le.space.S400},direction:"Column",gap:"400",children:[a.jsx(x,{priority:"400",style:{color:ct.Critical.Main},children:a.jsx("b",{children:"This action is irreversible!"})}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Version"}),a.jsx(En,{defaultValue:c,name:"versionInput",variant:"Background",required:!0})]}),a.jsx(Ee,{type:"submit",variant:"Secondary",children:a.jsx(x,{size:"B400",children:r.isSpaceRoom()?"Upgrade Space":"Upgrade Room"})})]})]})})})})]})})}function bWe({requestClose:t}){const e=pr(),n=Bi(e);return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"General"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsx(Are,{powerLevels:n}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Options"}),a.jsx(Bre,{powerLevels:n}),a.jsx(mWe,{powerLevels:n}),a.jsx(dWe,{powerLevels:n}),a.jsx(Tre,{powerLevels:n})]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Addresses"}),a.jsx(kre,{powerLevels:n}),a.jsx(Sre,{powerLevels:n})]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Advance Options"}),a.jsx(Ire,{powerLevels:n,requestClose:t})]})]})})})})]})}var CWe="_1cx2qle0 _1mqalmd1 _1mqalmd0 _1bugis90 _1bugis91";const EWe=(t,e)=>wr(t,e.userId)??ln(e.userId)??e.userId,yWe=Ie(({as:t="button",mx:e,room:n,member:r,useAuthentication:o,after:i,...s},u)=>{const l=EWe(n,r),c=ln(r.userId),d=r.getMxcAvatarUrl(),F=d?e.mxcUrlToHttp(d,100,100,"crop",void 0,!1,o):void 0;return a.jsxs(t,{className:CWe,...s,ref:u,children:[a.jsx(Rt,{size:"300",radii:"400",children:a.jsx(wa,{userId:r.userId,src:F??void 0,alt:l,renderFallback:()=>a.jsx(Q,{size:"300",src:$.User,filled:!0})})}),a.jsxs(y,{grow:"Yes",as:"span",direction:"Column",children:[a.jsx(x,{as:"span",size:"T300",truncate:!0,children:a.jsx("b",{children:l})}),a.jsx(y,{alignItems:"Center",justifyContent:"SpaceBetween",gap:"100",children:a.jsx(x,{as:"span",size:"T200",priority:"300",truncate:!0,children:c})})]}),i]})}),xWe=Ie(({as:t="div",fill:e,server:n,...r},o)=>a.jsx(Bt,{as:t,variant:"Secondary",fill:e,radii:"300",...r,ref:o,children:a.jsx(x,{as:"span",size:"L400",truncate:!0,children:n})})),wWe={limit:1e3,matchOptions:{contain:!0},normalizeOptions:{ignoreWhitespace:!1}},kWe=t=>ln(t)??t,SWe=(t,e)=>X5(t,e,kWe);function Rre({requestClose:t}){var j;const e=ge(),n=Tt(),r=pr(),o=f4(e,r.roomId),i=o.length<r.getJoinedMemberCount(),s=Bi(r),{getPowerLevel:u}=yo(s),[,l]=Fc(r,s),[c,d]=f.useState(0),[F,h]=Ft(ut,"memberSortFilterIndex"),m=Zte(c,IT()),D=Jte(F,RT()),g=f.useRef(null),p=f.useRef(null),_=f.useRef(null),v=f.useMemo(()=>Array.from(o).filter(m.filterFn).sort(D.sortFn).sort((R,M)=>M.powerLevel-R.powerLevel),[o,m,D]),[E,b,k]=Qd(v,SWe,wWe);!E&&((j=p.current)!=null&&j.value)&&b(p.current.value);const C=NJ((E==null?void 0:E.items)??v,u,l),S=Ru({count:C.length,getScrollElement:()=>g.current,estimateSize:()=>40,overscan:10}),w=Z1(f.useCallback(R=>{R.target.value?b(R.target.value):k()},[b,k]),{wait:200}),A=()=>{p.current&&(p.current.value="",p.current.focus()),k()},O=R=>{const M=R.currentTarget.getAttribute("data-user-id");ym(M,r.roomId),t()};return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsxs(x,{size:"H3",truncate:!0,children:[r.getJoinedMemberCount()," Members"]})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",style:{position:"relative"},children:a.jsx(Mt,{ref:g,hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"200",children:[a.jsx(y,{style:{position:"sticky",top:le.space.S100,zIndex:1},direction:"Column",gap:"100",children:a.jsx(En,{ref:p,onChange:w,before:a.jsx(Q,{size:"200",src:$.Search}),variant:"SurfaceVariant",size:"500",placeholder:"Search",outlined:!0,after:E&&a.jsx(We,{variant:E.items.length>0?"Success":"Critical",outlined:!0,size:"400",radii:"Pill","aria-pressed":!0,onClick:A,after:a.jsx(Q,{size:"50",src:$.Cross}),children:a.jsx(x,{size:"B300",children:E.items.length===0?"No Results":`${E.items.length} Results`})})})}),a.jsxs(y,{ref:_,alignItems:"Center",justifyContent:"End",gap:"200",children:[a.jsx(Oo,{initial:void 0,children:(R,M)=>a.jsx(Ut,{anchor:R,position:"Bottom",align:"Start",offset:4,content:a.jsx(Xte,{selected:c,onSelect:d,requestClose:()=>M(void 0)}),children:a.jsx(We,{onClick:z=>M(z.currentTarget.getBoundingClientRect()),variant:"SurfaceVariant",size:"400",radii:"300",before:a.jsx(Q,{src:$.Filter,size:"50"}),children:a.jsx(x,{size:"T200",children:m.name})})})}),a.jsx(Oo,{initial:void 0,children:(R,M)=>a.jsx(Ut,{anchor:R,position:"Bottom",align:"End",offset:4,content:a.jsx(Qte,{selected:F,onSelect:h,requestClose:()=>M(void 0)}),children:a.jsx(We,{onClick:z=>M(z.currentTarget.getBoundingClientRect()),variant:"SurfaceVariant",size:"400",radii:"300",after:a.jsx(Q,{src:$.Sort,size:"50"}),children:a.jsx(x,{size:"T200",children:D.name})})})})]}),a.jsx(f3,{style:{top:Dt(64)},scrollRef:g,anchorRef:_,children:a.jsx(Me,{onClick:()=>S.scrollToOffset(0),variant:"Surface",radii:"Pill",outlined:!0,size:"300","aria-label":"Scroll to Top",children:a.jsx(Q,{src:$.ChevronTop,size:"300"})})}),i&&a.jsx(y,{justifyContent:"Center",children:a.jsx(ot,{})}),!i&&!E&&C.length===0&&a.jsx(x,{style:{padding:le.space.S300},align:"Center",children:`No "${m.name}" Members`}),a.jsx(y,{style:{position:"relative",height:S.getTotalSize()},direction:"Column",gap:"100",children:S.getVirtualItems().map(R=>{const M=C[R.index];if("userId"in M){const z=xu(M.userId);return a.jsx(Hs,{virtualItem:R,ref:S.measureElement,children:a.jsx("div",{style:{paddingTop:le.space.S200},children:a.jsx(yWe,{"data-user-id":M.userId,onClick:O,mx:e,room:r,member:M,useAuthentication:n,after:z&&a.jsx(y,{as:"span",shrink:"No",alignSelf:"End",children:a.jsx(xWe,{server:z,fill:"None"})})})})},`${M.userId}-${R.index}`)}return a.jsx(Hs,{virtualItem:R,ref:S.measureElement,children:a.jsx("div",{style:{paddingTop:R.index===0?0:le.space.S500},children:a.jsx(x,{size:"L400",children:M.name})})},R.index)})})]})})})})]})}var sa="_1lne79o0";function jWe({packs:t,roomId:e}){const n=ge(),r=yr(),[o,i]=et(f.useCallback(async(l,c)=>{const d={pack:{display_name:c}};await n.sendStateEvent(e,Re.PoniesRoomEmotes,d,l)},[n,e])),s=o.status===he.Loading,u=l=>{var m;if(l.preventDefault(),s)return;const c=(m=l.target)==null?void 0:m.nameInput;if(!c)return;const d=c==null?void 0:c.value.trim();if(!d)return;let F=d.replace(/\s/g,"-");const h=D=>!!t.find(g=>{var p;return((p=g.address)==null?void 0:p.stateKey)===D});h(F)&&(F=W6(F,h)),i(F,d).then(()=>{r()&&(c.value="")})};return a.jsx(rt,{className:sa,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"New Pack",description:"Add your own emoji and sticker pack to use in room.",children:a.jsxs(y,{style:{marginTop:le.space.S200},as:"form",onSubmit:u,gap:"200",alignItems:"End",children:[a.jsxs(y,{direction:"Column",gap:"100",grow:"Yes",children:[a.jsx(x,{size:"L400",children:"Name"}),a.jsx(En,{name:"nameInput",required:!0,size:"400",variant:"Secondary",radii:"300",readOnly:s}),o.status===he.Error&&a.jsx(x,{style:{color:ct.Critical.Main},size:"T300",children:o.error.message})]}),a.jsx(Ee,{variant:"Success",radii:"300",type:"submit",disabled:s,before:s&&a.jsx(ot,{size:"200",variant:"Success",fill:"Solid"}),children:a.jsx(x,{size:"B400",children:"Create"})})]})})})}function BWe({onViewPack:t}){const e=ge(),n=Tt(),r=pr(),o=yr(),i=Bi(r),{canSendStateEvent:s,getPowerLevel:u}=yo(i),l=s(Re.PoniesRoomEmotes,u(e.getSafeUserId())),c=aBe(r),d=f.useMemo(()=>c.filter(C=>!C.deleted),[c]),[F,h]=f.useState([]),m=F.length>0,[D,g]=et(f.useCallback(async()=>{for(let C=0;C<F.length;C+=1){const S=F[C];await e.sendStateEvent(r.roomId,Re.PoniesRoomEmotes,{},S.stateKey)}},[e,r,F])),p=D.status===he.Loading,_=C=>{h(S=>[...S,C])},v=C=>{h(S=>S.filter(w=>!ds(w,C)))},E=()=>h([]),b=()=>{g().then(()=>{o()&&h([])})},k=C=>{const S=C.getAvatarUrl(fr.Emoticon),w=S?Xt(e,S,n):void 0,{address:A}=C;if(!A)return null;const O=!!F.find(j=>ds(j,A));return a.jsx(rt,{className:sa,variant:O?"Critical":"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:a.jsx("span",{style:{textDecoration:O?"line-through":void 0},children:C.meta.name??"Unknown"}),description:a.jsx("span",{className:rI,children:C.meta.attribution}),before:a.jsxs(y,{alignItems:"Center",gap:"300",children:[l&&(O?a.jsx(Me,{size:"300",radii:"Pill",variant:"Critical",onClick:()=>v(A),disabled:p,children:a.jsx(Q,{src:$.Plus,size:"100"})}):a.jsx(Me,{size:"300",radii:"Pill",variant:"Secondary",onClick:()=>_(A),disabled:p,children:a.jsx(Q,{src:$.Cross,size:"100"})})),a.jsx(Rt,{size:"300",radii:"300",children:w?a.jsx(xl,{style:{objectFit:"contain"},src:w}):a.jsx(U1,{children:a.jsx(Q,{size:"400",src:$.Sticker,filled:!0})})})]}),after:!O&&a.jsx(Ee,{variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,onClick:()=>t(C),children:a.jsx(x,{size:"B300",children:"View"})})})},C.id)};return a.jsxs(a.Fragment,{children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Packs"}),l&&a.jsx(jWe,{roomId:r.roomId,packs:d}),d.map(k),d.length===0&&a.jsx(rt,{className:sa,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsxs(y,{justifyContent:"Center",direction:"Column",gap:"200",style:{padding:`${le.space.S700} ${le.space.S400}`,maxWidth:Dt(300),margin:"auto"},children:[a.jsx(x,{size:"H5",align:"Center",children:"No Packs"}),a.jsx(x,{size:"T200",align:"Center",children:"There are no emoji or sticker packs to display at the moment."})]})})]}),m&&a.jsx(zt,{style:{position:"sticky",padding:le.space.S200,paddingLeft:le.space.S400,bottom:le.space.S400,left:le.space.S400,right:0,zIndex:1},variant:"Critical",children:a.jsxs(y,{alignItems:"Center",gap:"400",children:[a.jsx(y,{grow:"Yes",direction:"Column",children:D.status===he.Error?a.jsx(x,{size:"T200",children:a.jsx("b",{children:"Failed to remove packs! Please try again."})}):a.jsx(x,{size:"T200",children:a.jsxs("b",{children:["Delete selected packs. (",F.length," selected)"]})})}),a.jsxs(y,{shrink:"No",gap:"200",children:[a.jsx(Ee,{size:"300",variant:"Critical",fill:"None",radii:"300",disabled:p,onClick:E,children:a.jsx(x,{size:"B300",children:"Cancel"})}),a.jsx(Ee,{size:"300",variant:"Critical",radii:"300",disabled:p,before:p&&a.jsx(ot,{variant:"Critical",fill:"Solid",size:"100"}),onClick:b,children:a.jsx(x,{size:"B300",children:"Delete"})})]})]})})]})}function Ore({requestClose:t}){const[e,n]=f.useState(),r=()=>{n(void 0)};return e?a.jsx(Cre,{address:e.address,requestClose:r}):a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"Emojis & Stickers"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsx(y,{direction:"Column",gap:"700",children:a.jsx(BWe,{onViewPack:n})})})})})]})}const AWe=()=>f.useMemo(()=>{const t={name:"Messages",items:[{location:{key:qn.RoomMessage},name:"Send Messages"},{location:{key:qn.Sticker},name:"Send Stickers"},{location:{key:qn.Reaction},name:"Send Reactions"},{location:{notification:!0,key:"room"},name:"Ping @room"},{location:{state:!0,key:Re.RoomPinnedEvents},name:"Pin Messages"},{location:{},name:"Other Message Events"}]},e={name:"Moderation",items:[{location:{action:!0,key:"invite"},name:"Invite"},{location:{action:!0,key:"kick"},name:"Kick"},{location:{action:!0,key:"ban"},name:"Ban"},{location:{action:!0,key:"redact"},name:"Delete Others Messages"},{location:{key:qn.RoomRedaction},name:"Delete Self Messages"}]},n={name:"Room Overview",items:[{location:{state:!0,key:Re.RoomAvatar},name:"Room Avatar"},{location:{state:!0,key:Re.RoomName},name:"Room Name"},{location:{state:!0,key:Re.RoomTopic},name:"Room Topic"}]},r={name:"Settings",items:[{location:{state:!0,key:Re.RoomJoinRules},name:"Change Room Access"},{location:{state:!0,key:Re.RoomCanonicalAlias},name:"Publish Address"},{location:{state:!0,key:Re.RoomPowerLevels},name:"Change All Permission"},{location:{state:!0,key:Re.PowerLevelTags},name:"Edit Power Levels"},{location:{state:!0,key:Re.RoomEncryption},name:"Enable Encryption"},{location:{state:!0,key:Re.RoomHistoryVisibility},name:"History Visibility"},{location:{state:!0,key:Re.RoomTombstone},name:"Upgrade Room"},{location:{state:!0},name:"Other Settings"}]},o={name:"Other",items:[{location:{state:!0,key:Re.RoomServerAcl},name:"Change Server ACLs"},{location:{state:!0,key:"im.vector.modular.widgets"},name:"Modify Widgets"}]};return[t,e,n,r,o]},[]),mI={user:!0};function Mre({powerLevels:t,permissionGroups:e}){const n=ge(),r=pr(),o=yr(),{getPowerLevel:i,canSendStateEvent:s}=yo(t),u=s(Re.RoomPowerLevels,i(n.getSafeUserId())),[l,c]=Fc(r,t),d=f.useMemo(()=>Math.max(...rD(l)),[l]),[F,h]=f.useState(new Map);f.useEffect(()=>{h(new Map)},[e]);const m=(k,C,S)=>{h(w=>{const A=new Map;return w.forEach((O,j)=>{A.set(j,O)}),C===S?A.delete(k):A.set(k,C),A})},[D,g]=et(f.useCallback(async()=>{const k=po(t,C=>(e.forEach(S=>S.items.forEach(w=>{const A=fE(t,w.location);iK(C,w.location,A)})),F.forEach((S,w)=>iK(C,w,S)),C));await n.sendStateEvent(r.roomId,Re.RoomPowerLevels,k)},[n,r,t,F,e])),p=f.useCallback(()=>{h(new Map)},[]),_=()=>{g().then(()=>{o()&&p()})},v=D.status===he.Loading,E=F.size>0,b=()=>{const k=fE(t,mI),C=F.get(mI)??k,S=c(C),w=C!==k;return a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Users"}),a.jsx(rt,{variant:"SurfaceVariant",className:sa,direction:"Column",gap:"400",children:a.jsx(gt,{title:"Default Power",description:"Default power level for all users.",after:a.jsx(UJ,{powerLevelTags:l,value:C,onChange:A=>m(mI,A,k),children:(A,O)=>a.jsx(We,{variant:w?"Success":"Secondary",outlined:w,fill:"Soft",radii:"Pill","aria-selected":O,disabled:!u||v,after:w&&a.jsx(Bt,{size:"200",variant:"Success",fill:"Solid",radii:"Pill"}),before:u&&a.jsx(Q,{size:"50",src:O?$.ChevronTop:$.ChevronBottom}),onClick:A,children:a.jsx(x,{size:"B300",truncate:!0,children:S.name})})})})})]})};return a.jsxs(a.Fragment,{children:[b(),e.map((k,C)=>a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:k.name}),k.items.map((S,w)=>{const A=fE(t,S.location),O=F.get(S.location)??A,j=c(O),R=O!==A;return a.jsx(rt,{variant:"SurfaceVariant",className:sa,direction:"Column",gap:"400",children:a.jsx(gt,{title:S.name,description:S.description,after:a.jsx(UJ,{powerLevelTags:l,value:O,onChange:M=>m(S.location,M,A),children:(M,z)=>a.jsxs(We,{variant:R?"Success":"Secondary",outlined:R,fill:"Soft",radii:"Pill","aria-selected":z,disabled:!u||v,after:R&&a.jsx(Bt,{size:"200",variant:"Success",fill:"Solid",radii:"Pill"}),before:u&&a.jsx(Q,{size:"50",src:z?$.ChevronTop:$.ChevronBottom}),onClick:M,children:[a.jsx(x,{size:"B300",truncate:!0,children:j.name}),O<d&&a.jsx(x,{size:"T200",children:"& Above"})]})})})},w)})]},C)),E&&a.jsx(zt,{style:{position:"sticky",padding:le.space.S200,paddingLeft:le.space.S400,bottom:le.space.S400,left:le.space.S400,right:0,zIndex:1},variant:"Success",children:a.jsxs(y,{alignItems:"Center",gap:"400",children:[a.jsx(y,{grow:"Yes",direction:"Column",children:D.status===he.Error?a.jsx(x,{size:"T200",children:a.jsx("b",{children:"Failed to apply changes! Please try again."})}):a.jsx(x,{size:"T200",children:a.jsx("b",{children:"Changes saved! Apply when ready."})})}),a.jsxs(y,{shrink:"No",gap:"200",children:[a.jsx(Ee,{size:"300",variant:"Success",fill:"None",radii:"300",disabled:v,onClick:p,children:a.jsx(x,{size:"B300",children:"Reset"})}),a.jsx(Ee,{size:"300",variant:"Success",radii:"300",disabled:v,before:v&&a.jsx(ot,{variant:"Success",fill:"Solid",size:"100"}),onClick:_,children:a.jsx(x,{size:"B300",children:"Apply Changes"})})]})]})})]})}function TWe({powerLevels:t,power:e,permissionGroups:n,children:r}){const[o,i]=f.useState(),s=u=>{i(u.currentTarget.getBoundingClientRect())};return a.jsx(Ut,{anchor:o,offset:5,position:"Bottom",align:"Center",content:a.jsx(pt,{focusTrapOptions:{initialFocus:!1,onDeactivate:()=>i(void 0),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(zt,{style:{maxHeight:"75vh",maxWidth:Dt(300),display:"flex"},children:a.jsx(y,{grow:"Yes",tabIndex:0,children:a.jsx(Mt,{size:"0",hideTrack:!0,visibility:"Hover",children:a.jsx(y,{style:{padding:le.space.S200},direction:"Column",gap:"400",children:n.map((u,l)=>a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:u.name}),a.jsx("div",{children:u.items.map((c,d)=>{const F=fE(t,c.location)<=e;return a.jsxs(x,{size:"T200",style:{color:F?void 0:ct.Critical.Main},children:[F?"\u2705":"\u274C"," ",c.name]},d)})})]},l))})})})})}),children:r(s,!!o)})}function Pre({powerLevels:t,permissionGroups:e,onEdit:n}){const r=ge(),o=Tt(),i=pr(),[s]=Fc(i,t);return a.jsx(y,{direction:"Column",gap:"100",children:a.jsxs(rt,{variant:"SurfaceVariant",className:sa,direction:"Column",gap:"400",children:[a.jsx(gt,{title:"Power Levels",description:"Manage and customize incremental power levels for users.",after:n&&a.jsx(y,{gap:"200",children:a.jsx(Ee,{variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,onClick:n,children:a.jsx(x,{size:"B300",children:"Edit"})})})}),a.jsx(gt,{children:a.jsx(y,{gap:"200",wrap:"Wrap",children:rD(s).map(u=>{const l=s[u],c=l.icon&&r0(r,o,l.icon);return a.jsx(TWe,{powerLevels:t,power:u,permissionGroups:e,children:(d,F)=>a.jsx(We,{onClick:d,variant:"Secondary","aria-pressed":F,radii:"300",before:a.jsx(jy,{color:l.color}),after:c&&a.jsx(o0,{size:"50",iconSrc:c}),children:a.jsx(x,{size:"T300",truncate:!0,children:a.jsx("b",{children:l.name})})})},u)})})})]})})}function $4(){return($4=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Lre(t,e){if(t==null)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}function DI(t){var e=f.useRef(t),n=f.useRef(function(r){e.current&&e.current(r)});return e.current=t,n.current}var q_=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t>n?n:t<e?e:t},H_=function(t){return"touches"in t},gI=function(t){return t&&t.ownerDocument.defaultView||self},Nre=function(t,e,n){var r=t.getBoundingClientRect(),o=H_(e)?function(i,s){for(var u=0;u<i.length;u++)if(i[u].identifier===s)return i[u];return i[0]}(e.touches,n):e;return{left:q_((o.pageX-(r.left+gI(t).pageXOffset))/r.width),top:q_((o.pageY-(r.top+gI(t).pageYOffset))/r.height)}},zre=function(t){!H_(t)&&t.preventDefault()},Ure=ft.memo(function(t){var e=t.onMove,n=t.onKey,r=Lre(t,["onMove","onKey"]),o=f.useRef(null),i=DI(e),s=DI(n),u=f.useRef(null),l=f.useRef(!1),c=f.useMemo(function(){var m=function(p){zre(p),(H_(p)?p.touches.length>0:p.buttons>0)&&o.current?i(Nre(o.current,p,u.current)):g(!1)},D=function(){return g(!1)};function g(p){var _=l.current,v=gI(o.current),E=p?v.addEventListener:v.removeEventListener;E(_?"touchmove":"mousemove",m),E(_?"touchend":"mouseup",D)}return[function(p){var _=p.nativeEvent,v=o.current;if(v&&(zre(_),!function(b,k){return k&&!H_(b)}(_,l.current)&&v)){if(H_(_)){l.current=!0;var E=_.changedTouches||[];E.length&&(u.current=E[0].identifier)}v.focus(),i(Nre(v,_,u.current)),g(!0)}},function(p){var _=p.which||p.keyCode;_<37||_>40||(p.preventDefault(),s({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},g]},[s,i]),d=c[0],F=c[1],h=c[2];return f.useEffect(function(){return h},[h]),ft.createElement("div",$4({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:F,tabIndex:0,role:"slider"}))}),pI=function(t){return t.filter(Boolean).join(" ")},Vre=function(t){var e=t.color,n=t.left,r=t.top,o=r===void 0?.5:r,i=pI(["react-colorful__pointer",t.className]);return ft.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},ft.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},li=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=Math.pow(10,e)),Math.round(n*t)/n},IWe=function(t){return LWe(fI(t))},fI=function(t){return t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?li(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?li(parseInt(t.substring(6,8),16)/255,2):1}},RWe=function(t){return PWe(MWe(t))},OWe=function(t){var e=t.s,n=t.v,r=t.a,o=(200-e)*n/100;return{h:li(t.h),s:li(o>0&&o<200?e*n/100/(o<=100?o:200-o)*100:0),l:li(o/2),a:li(r,2)}},_I=function(t){var e=OWe(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},MWe=function(t){var e=t.h,n=t.s,r=t.v,o=t.a;e=e/360*6,n/=100,r/=100;var i=Math.floor(e),s=r*(1-n),u=r*(1-(e-i)*n),l=r*(1-(1-e+i)*n),c=i%6;return{r:li(255*[r,u,s,s,l,r][c]),g:li(255*[l,r,r,u,s,s][c]),b:li(255*[s,s,l,r,r,u][c]),a:li(o,2)}},W4=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},PWe=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=o<1?W4(li(255*o)):"";return"#"+W4(e)+W4(n)+W4(r)+i},LWe=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=Math.max(e,n,r),s=i-Math.min(e,n,r),u=s?i===e?(n-r)/s:i===n?2+(r-e)/s:4+(e-n)/s:0;return{h:li(60*(u<0?u+6:u)),s:li(i?s/i*100:0),v:li(i/255*100),a:o}},NWe=ft.memo(function(t){var e=t.hue,n=t.onChange,r=pI(["react-colorful__hue",t.className]);return ft.createElement("div",{className:r},ft.createElement(Ure,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:q_(e+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":li(e),"aria-valuemax":"360","aria-valuemin":"0"},ft.createElement(Vre,{className:"react-colorful__hue-pointer",left:e/360,color:_I({h:e,s:100,v:100,a:1})})))}),zWe=ft.memo(function(t){var e=t.hsva,n=t.onChange,r={backgroundColor:_I({h:e.h,s:100,v:100,a:1})};return ft.createElement("div",{className:"react-colorful__saturation",style:r},ft.createElement(Ure,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:q_(e.s+100*o.left,0,100),v:q_(e.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+li(e.s)+"%, Brightness "+li(e.v)+"%"},ft.createElement(Vre,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:_I(e)})))}),qre=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0},UWe=function(t,e){return t.toLowerCase()===e.toLowerCase()||qre(fI(t),fI(e))};function VWe(t,e,n){var r=DI(n),o=f.useState(function(){return t.toHsva(e)}),i=o[0],s=o[1],u=f.useRef({color:e,hsva:i});f.useEffect(function(){if(!t.equal(e,u.current.color)){var c=t.toHsva(e);u.current={hsva:c,color:e},s(c)}},[e,t]),f.useEffect(function(){var c;qre(i,u.current.hsva)||t.equal(c=t.fromHsva(i),u.current.color)||(u.current={hsva:i,color:c},r(c))},[i,t,r]);var l=f.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[i,l]}var qWe=typeof window<"u"?f.useLayoutEffect:f.useEffect,HWe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Hre=new Map,$We=function(t){qWe(function(){var e=t.current?t.current.ownerDocument:document;if(e!==void 0&&!Hre.has(e)){var n=e.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Hre.set(e,n);var r=HWe();r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[])},WWe=function(t){var e=t.className,n=t.colorModel,r=t.color,o=r===void 0?n.defaultColor:r,i=t.onChange,s=Lre(t,["className","colorModel","color","onChange"]),u=f.useRef(null);$We(u);var l=VWe(n,o,i),c=l[0],d=l[1],F=pI(["react-colorful",e]);return ft.createElement("div",$4({},s,{ref:u,className:F}),ft.createElement(zWe,{hsva:c,onChange:d}),ft.createElement(NWe,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},KWe={defaultColor:"000",toHsva:IWe,fromHsva:function(t){return RWe({h:t.h,s:t.s,v:t.v,a:1})},equal:UWe},GWe=function(t){return ft.createElement(WWe,$4({},t,{colorModel:KWe}))};function YWe({picker:t,onRemove:e,children:n}){const[r,o]=f.useState(),i=s=>{o(s.currentTarget.getBoundingClientRect())};return a.jsx(Ut,{anchor:r,position:"Bottom",align:"Center",content:a.jsx(pt,{focusTrapOptions:{onDeactivate:()=>o(void 0),clickOutsideDeactivates:!0,escapeDeactivates:vt},children:a.jsx(zt,{style:{padding:le.space.S100,borderRadius:le.radii.R500,overflow:"initial"},children:a.jsxs(y,{direction:"Column",gap:"200",children:[t,e&&a.jsx(Ee,{size:"300",variant:"Secondary",fill:"Soft",radii:"400",onClick:()=>e(),children:a.jsx(x,{size:"B300",children:"Remove"})})]})})}),children:n(i,!!r)})}function ZWe(){return a.jsx(Br,{position:"Right",align:"Center",tooltip:a.jsx(Ao,{style:{maxWidth:Dt(200)},children:a.jsxs(y,{direction:"Column",children:[a.jsx(x,{size:"L400",children:"Notice"}),a.jsx(x,{size:"T200",children:"This feature is under testing and may change over time."})]})}),children:t=>a.jsx(Bt,{size:"500",tabIndex:0,ref:t,variant:"Primary",fill:"Solid",children:a.jsx(x,{size:"L400",children:"Beta"})})})}function $re({maxPower:t,power:e,tag:n,onSave:r,onClose:o}){const i=ge(),s=pr(),u=_t(lo),l=Tt(),c=yT(s.roomId,u),[d,F]=f.useState(),h=x0(F,!1),[m,D]=f.useState(n==null?void 0:n.color),[g,p]=f.useState(n==null?void 0:n.icon),_=d&&!g,v=g&&r0(i,l,g),E=f.useMemo(()=>{if(d)return vD(d)},[d]),b=f.useCallback(()=>{F(void 0)},[]),k=f.useCallback(S=>{p({key:S.mxc}),F(void 0)},[]),C=S=>{if(S.preventDefault(),_)return;const w=S.target,A=w==null?void 0:w.powerInput,O=w==null?void 0:w.nameInput;if(!A||!O)return;const j=parseInt(A.value,10);if(Number.isNaN(j)||j>t)return;const R=O.value.trim();R&&(r(e??j,{name:R,color:m,icon:g}),o())};return a.jsxs(y,{onSubmit:C,as:"form",direction:"Column",gap:"400",children:[a.jsx(y,{direction:"Column",gap:"300",children:a.jsxs(y,{gap:"200",children:[a.jsxs(y,{shrink:"No",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Color"}),a.jsx(y,{gap:"200",children:a.jsx(YWe,{picker:a.jsx(GWe,{color:m,onChange:D}),onRemove:()=>D(void 0),children:(S,w)=>a.jsx(Ee,{"aria-pressed":w,onClick:S,size:"300",type:"button",variant:"Secondary",fill:"Soft",radii:"300",before:a.jsx(jy,{color:m}),children:a.jsx(x,{size:"B300",children:"Pick"})})})})]}),a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Name"}),a.jsx(En,{name:"nameInput",defaultValue:n==null?void 0:n.name,placeholder:"Bot",size:"300",variant:"Secondary",radii:"300",required:!0})]}),a.jsxs(y,{style:{maxWidth:Dt(74)},grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Power"}),a.jsx(En,{defaultValue:e,name:"powerInput",size:"300",variant:typeof e=="number"?"SurfaceVariant":"Secondary",radii:"300",type:"number",placeholder:"75",max:t,outlined:typeof e=="number",readOnly:typeof e=="number",required:!0})]})]})}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Icon"}),E&&!v?a.jsx(B_,{uploadAtom:E,onRemove:b,onComplete:k}):a.jsx(y,{gap:"200",alignItems:"Center",children:v?a.jsxs(a.Fragment,{children:[a.jsx(o0,{size:"500",iconSrc:v}),a.jsx(Ee,{onClick:()=>p(void 0),type:"button",size:"300",variant:"Critical",fill:"None",radii:"300",children:a.jsx(x,{size:"B300",children:"Remove"})})]}):a.jsxs(a.Fragment,{children:[a.jsx(Oo,{initial:void 0,children:(S,w)=>a.jsx(Ut,{position:"Bottom",anchor:S,content:a.jsx(qy,{imagePackRooms:c,returnFocusOnDeactivate:!1,allowTextCustomEmoji:!1,addToRecentEmoji:!1,onEmojiSelect:A=>{p({key:A}),w(void 0)},onCustomEmojiSelect:A=>{p({key:A}),w(void 0)},requestClose:()=>{w(void 0)}}),children:a.jsx(Ee,{onClick:A=>w(A.currentTarget.getBoundingClientRect()),type:"button",size:"300",variant:"Secondary",fill:"Soft",radii:"300",before:a.jsx(Q,{size:"50",src:$.SmilePlus}),children:a.jsx(x,{size:"B300",children:"Pick"})})})}),a.jsx(Ee,{onClick:()=>h("image/*"),type:"button",size:"300",variant:"Secondary",fill:"None",radii:"300",children:a.jsx(x,{size:"B300",children:"Import"})})]})})]}),a.jsxs(y,{direction:"Row",gap:"200",justifyContent:"Start",children:[a.jsx(Ee,{style:{minWidth:Dt(64)},type:"submit",size:"300",variant:"Success",radii:"300",disabled:_,children:a.jsx(x,{size:"B300",children:"Save"})}),a.jsx(Ee,{type:"button",size:"300",variant:"Secondary",fill:"Soft",radii:"300",onClick:o,children:a.jsx(x,{size:"B300",children:"Cancel"})})]})]})}function Wre({powerLevels:t,requestClose:e}){const n=ge(),r=Tt(),o=pr(),i=yr(),[s,u]=f.useMemo(()=>{const w=PJ(t);return[w,Math.max(...Array.from(w))]},[t]),[l]=Fc(o,t),[c,d]=f.useState(),[F,h]=f.useState(new Set),[m,D]=f.useState(!1),g=f.useCallback(w=>{h(A=>{const O=new Set(A);return O.has(w)?O.delete(w):O.add(w),O})},[]),p=f.useCallback((w,A)=>{d(O=>{const j={...O??l};return j[w]=A,j})},[l]),[_,v]=et(f.useCallback(async()=>{const w={...c??l};F.forEach(A=>{delete w[A]}),await n.sendStateEvent(o.roomId,Re.PowerLevelTags,w)},[n,o,l,c,F])),E=f.useCallback(()=>{d(void 0),h(new Set)},[]),b=()=>{v().then(()=>{i()&&E()})},k=_.status===he.Loading,C=c||F.size>0,S=c??l;return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,balance:!0,children:a.jsxs(y,{alignItems:"Center",grow:"Yes",gap:"200",children:[a.jsx(y,{alignItems:"Inherit",grow:"Yes",gap:"200",children:a.jsx(We,{size:"500",radii:"Pill",onClick:e,before:a.jsx(Q,{size:"100",src:$.ArrowLeft}),children:a.jsx(x,{size:"T300",children:"Permissions"})})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:e,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsxs(y,{alignItems:"Baseline",gap:"200",justifyContent:"SpaceBetween",children:[a.jsx(x,{size:"L400",children:"Power Levels"}),a.jsx(ZWe,{})]}),a.jsxs(rt,{variant:"SurfaceVariant",className:sa,direction:"Column",gap:"400",children:[a.jsx(gt,{title:"New Power Level",description:"Create a new power level.",after:!m&&a.jsx(Ee,{onClick:()=>D(!0),variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,disabled:k,children:a.jsx(x,{size:"B300",children:"Create"})})}),m&&a.jsx($re,{maxPower:u,onSave:p,onClose:()=>D(!1)})]}),rD(S).map(w=>{const A=S[w],O=A.icon&&r0(n,r,A.icon);return a.jsx(rt,{variant:F.has(w)?"Critical":"SurfaceVariant",className:sa,direction:"Column",gap:"400",children:a.jsx(Oo,{initial:!1,children:(j,R)=>j?a.jsx($re,{maxPower:u,power:w,tag:A,onSave:p,onClose:()=>R(!1)}):a.jsx(gt,{before:a.jsx(jy,{color:A.color}),title:a.jsxs(y,{as:"span",alignItems:"Center",gap:"200",children:[a.jsx("b",{children:F.has(w)?a.jsx("s",{children:A.name}):A.name}),a.jsxs(y,{as:"span",shrink:"No",alignItems:"Inherit",gap:"Inherit",children:[O&&a.jsx(o0,{size:"50",iconSrc:O}),a.jsxs(x,{as:"span",size:"T200",priority:"300",children:["(",w,")"]})]})]}),after:F.has(w)?a.jsx(We,{variant:"Critical",radii:"Pill",disabled:k,onClick:()=>g(w),children:a.jsx(x,{size:"B300",children:"Undo"})}):a.jsxs(y,{shrink:"No",alignItems:"Center",gap:"200",children:[a.jsx(Br,{tooltip:a.jsx(Ao,{style:{maxWidth:Dt(200)},children:s.has(w)?a.jsxs(y,{direction:"Column",children:[a.jsx(x,{size:"L400",children:"Used Power Level"}),a.jsx(x,{size:"T200",children:"You have to remove its use before you can delete it."})]}):a.jsx(x,{children:"Delete"})}),children:M=>a.jsx(We,{ref:M,variant:"Secondary",fill:"None",radii:"Pill",disabled:k,"aria-disabled":s.has(w),onClick:s.has(w)?void 0:()=>g(w),children:a.jsx(Q,{size:"50",src:$.Delete})})}),a.jsx(We,{variant:"Secondary",radii:"Pill",disabled:k,onClick:()=>R(!0),children:a.jsx(x,{size:"B300",children:"Edit"})})]})})})},w)})]}),C&&a.jsx(zt,{style:{position:"sticky",padding:le.space.S200,paddingLeft:le.space.S400,bottom:le.space.S400,left:le.space.S400,right:0,zIndex:1},variant:"Success",children:a.jsxs(y,{alignItems:"Center",gap:"400",children:[a.jsx(y,{grow:"Yes",direction:"Column",children:_.status===he.Error?a.jsx(x,{size:"T200",children:a.jsx("b",{children:"Failed to apply changes! Please try again."})}):a.jsx(x,{size:"T200",children:a.jsx("b",{children:"Changes saved! Apply when ready."})})}),a.jsxs(y,{shrink:"No",gap:"200",children:[a.jsx(Ee,{size:"300",variant:"Success",fill:"None",radii:"300",disabled:k,onClick:E,children:a.jsx(x,{size:"B300",children:"Reset"})}),a.jsx(Ee,{size:"300",variant:"Success",radii:"300",disabled:k,before:k&&a.jsx(ot,{variant:"Success",fill:"Solid",size:"100"}),onClick:b,children:a.jsx(x,{size:"B300",children:"Apply Changes"})})]})]})})]})})})})]})}function JWe({requestClose:t}){const e=ge(),n=pr(),r=Bi(n),{getPowerLevel:o,canSendStateEvent:i}=yo(r),s=i(Re.PowerLevelTags,o(e.getSafeUserId())),u=AWe(),[l,c]=f.useState(!1),d=()=>{c(!0)};return s&&l?a.jsx(Wre,{powerLevels:r,requestClose:()=>c(!1)}):a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"Permissions"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsx(Pre,{powerLevels:r,onEdit:s?d:void 0,permissionGroups:u}),a.jsx(Mre,{powerLevels:r,permissionGroups:u})]})})})})]})}const XWe=t=>{const e=f.useCallback(()=>{const o=t.getLiveTimeline().getState(At.Forward),i=new Map;return o&&o.events.forEach((s,u)=>{if(u===Re.RoomMember)return;const l=new Map;s.forEach((c,d)=>l.set(d,c)),i.set(u,l)}),i},[t]),[n,r]=f.useState(e);return f.useEffect(()=>{const o=t.getLiveTimeline().getState(At.Forward),i=()=>{r(e())};return o==null||o.on(Zt.Events,i),()=>{o==null||o.removeListener(Zt.Events,i)}},[t,e]),n},K4=2;function QWe({type:t,stateKey:e,content:n,requestClose:r}){const o=ge(),i=pr(),s=yr(),u=f.useMemo(()=>JSON.stringify(n,void 0,K4),[n]),l=f.useRef(null),[c,d]=f.useState(),{handleKeyDown:F,operations:h,getTarget:m}=hI(l,K4),[D,g]=et(f.useCallback(v=>o.sendStateEvent(i.roomId,t,v,e),[o,i,t,e])),p=D.status===he.Loading,_=v=>{var C;if(v.preventDefault(),p)return;const E=(C=v.target)==null?void 0:C.contentTextArea;if(!E)return;const b=E.value.trim();let k;try{k=JSON.parse(b)}catch(S){d(S);return}d(void 0),!(k===null||u===JSON.stringify(k,null,K4))&&g(k).then(()=>{s()&&r()})};return f.useEffect(()=>{var v;if(c){const E=$5(c)??0,b=new Yr(E,E,"none");h.select(b),(v=m())==null||v.focus()}},[c,h,m]),a.jsxs(y,{as:"form",onSubmit:_,grow:"Yes",style:{padding:le.space.S400},direction:"Column",gap:"400","aria-disabled":p,children:[a.jsxs(y,{shrink:"No",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"State Event"}),a.jsx(rt,{className:sa,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:t,description:e,after:a.jsxs(y,{gap:"200",children:[a.jsx(Ee,{variant:"Success",size:"300",radii:"300",type:"submit",disabled:p,before:p&&a.jsx(ot,{variant:"Primary",fill:"Solid",size:"300"}),children:a.jsx(x,{size:"B300",children:"Save"})}),a.jsx(Ee,{variant:"Secondary",fill:"Soft",size:"300",radii:"300",onClick:r,disabled:p,children:a.jsx(x,{size:"B300",children:"Cancel"})})]})})}),D.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:D.error.message})})]}),a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(y,{shrink:"No",children:a.jsx(x,{size:"L400",children:"JSON Content"})}),a.jsx(qg,{ref:l,name:"contentTextArea",style:{fontFamily:"monospace"},onKeyDown:F,defaultValue:u,resize:"None",spellCheck:"false",required:!0,readOnly:p}),c&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsxs("b",{children:[c.name,": ",c.message]})})]})]})}function eKe({content:t,eventJSONStr:e,onEditContent:n}){return a.jsx(y,{direction:"Column",style:{padding:le.space.S400},gap:"400",children:a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsxs(y,{gap:"200",alignItems:"End",children:[a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"L400",children:"State Event"})}),n&&a.jsx(y,{shrink:"No",gap:"200",children:a.jsx(We,{variant:"Secondary",fill:"Soft",radii:"300",outlined:!0,onClick:()=>n(t),children:a.jsx(x,{size:"B300",children:"Edit"})})})]}),a.jsx(rt,{variant:"SurfaceVariant",children:a.jsx(Mt,{visibility:"Always",size:"300",hideTrack:!0,children:a.jsx(TB,{size:"T300",style:{padding:`${le.space.S300} ${le.space.S100} ${le.space.S300} ${le.space.S300}`},text:e,langName:"JSON"})})})]})})}function tKe({type:t,stateKey:e,requestClose:n}){const r=ge(),o=pr(),i=vi(o,t,e),[s,u]=f.useState(),l=Bi(o),{getPowerLevel:c,canSendStateEvent:d}=yo(l),F=d(t,c(r.getSafeUserId())),h=f.useMemo(()=>i?JSON.stringify(i.event,null,K4):"",[i]),m=f.useCallback(()=>{u(void 0)},[]);return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,balance:!0,children:a.jsxs(y,{alignItems:"Center",grow:"Yes",gap:"200",children:[a.jsx(y,{alignItems:"Inherit",grow:"Yes",gap:"200",children:a.jsx(We,{size:"500",radii:"Pill",onClick:n,before:a.jsx(Q,{size:"100",src:$.ArrowLeft}),children:a.jsx(x,{size:"T300",children:"Developer Tools"})})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:n,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",direction:"Column",children:s?a.jsx(QWe,{type:t,stateKey:e,content:s,requestClose:m}):a.jsx(eKe,{content:(i==null?void 0:i.getContent())??{},onEditContent:F?u:void 0,eventJSONStr:h})})]})}const nKe=2;function rKe({type:t,stateKey:e,requestClose:n}){const r=ge(),o=pr(),i=yr(),s=typeof e=="string",u=f.useRef(null),[l,c]=f.useState(),{handleKeyDown:d,operations:F,getTarget:h}=hI(u,nKe),[m,D]=et(f.useCallback((_,v,E)=>typeof v=="string"?r.sendStateEvent(o.roomId,_,E,v):r.sendEvent(o.roomId,_,E),[r,o])),g=m.status===he.Loading,p=_=>{if(_.preventDefault(),g)return;const v=_.target,E=v==null?void 0:v.typeInput,b=v==null?void 0:v.stateKeyInput,k=v==null?void 0:v.contentTextArea;if(!E||!k)return;const C=E.value,S=b==null?void 0:b.value,w=k.value.trim();let A;try{A=JSON.parse(w)}catch(O){c(O);return}c(void 0),A!==null&&D(C,S,A).then(()=>{i()&&n()})};return f.useEffect(()=>{var _;if(l){const v=$5(l)??0,E=new Yr(v,v,"none");F.select(E),(_=h())==null||_.focus()}},[l,F,h]),a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,balance:!0,children:a.jsxs(y,{alignItems:"Center",grow:"Yes",gap:"200",children:[a.jsx(y,{alignItems:"Inherit",grow:"Yes",gap:"200",children:a.jsx(We,{size:"500",radii:"Pill",onClick:n,before:a.jsx(Q,{size:"100",src:$.ArrowLeft}),children:a.jsx(x,{size:"T300",children:"Developer Tools"})})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:n,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsxs(y,{as:"form",onSubmit:p,grow:"Yes",style:{padding:le.space.S400},direction:"Column",gap:"400","aria-disabled":g,children:[a.jsxs(y,{shrink:"No",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:s?"State Event Type":"Message Event Type"}),a.jsxs(y,{gap:"300",children:[a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(En,{variant:"Background",name:"typeInput",size:"400",radii:"300",readOnly:g,defaultValue:t,required:!0})}),a.jsx(Ee,{variant:"Success",size:"400",radii:"300",type:"submit",disabled:g,before:g&&a.jsx(ot,{variant:"Primary",fill:"Solid",size:"300"}),children:a.jsx(x,{size:"B400",children:"Send"})})]}),m.status===he.Error&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsx("b",{children:m.error.message})})]}),s&&a.jsxs(y,{shrink:"No",direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"State Key (Optional)"}),a.jsx(En,{variant:"Background",name:"stateKeyInput",size:"400",radii:"300",readOnly:g,defaultValue:e})]}),a.jsxs(y,{grow:"Yes",direction:"Column",gap:"100",children:[a.jsx(y,{shrink:"No",children:a.jsx(x,{size:"L400",children:"JSON Content"})}),a.jsx(qg,{ref:u,name:"contentTextArea",style:{fontFamily:"monospace"},onKeyDown:d,resize:"None",spellCheck:"false",required:!0,readOnly:g}),l&&a.jsx(x,{size:"T200",style:{color:ct.Critical.Main},children:a.jsxs("b",{children:[l.name,": ",l.message]})})]})]})})]})}const oKe=t=>{const e=f.useCallback(()=>{const o=new Map;return Array.from(t.accountData.entries()).forEach(([i,s])=>{const u=s.getContent();o.set(i,u)}),o},[t]),[n,r]=f.useState(e);return f.useEffect(()=>{const o=()=>{r(e())};return t.on(Ke.AccountData,o),()=>{t.removeListener(Ke.AccountData,o)}},[t,e]),n};function Kre({requestClose:t}){const[e,n]=Ft(ut,"developerTools"),r=ge(),o=pr(),i=XWe(o),s=oKe(o),[u,l]=f.useState(!1),[c,d]=f.useState(),[F,h]=f.useState(),[m,D]=f.useState(),[g,p]=f.useState(!1),[_,v]=f.useState(),E=f.useCallback(()=>{h(void 0),D(void 0),v(void 0)},[]),b=f.useCallback(async(k,C)=>{await r.setRoomAccountData(o.roomId,k,C)},[r,o.roomId]);return _!==void 0?a.jsx(Ere,{type:_??void 0,content:_?s.get(_):void 0,submitChange:b,requestClose:E}):m?a.jsx(rKe,{...m,requestClose:E}):F?a.jsx(tKe,{...F,requestClose:E}):a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"Developer Tools"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Options"}),a.jsx(rt,{className:sa,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Enable Developer Tools",after:a.jsx(qo,{variant:"Primary",value:e,onChange:n})})}),e&&a.jsx(rt,{className:sa,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"Room ID",description:`Copy room ID to clipboard. ("${o.roomId}")`,after:a.jsx(Ee,{onClick:()=>Vl(o.roomId??"<NO_ROOM_ID_FOUND>"),variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,children:a.jsx(x,{size:"B300",children:"Copy"})})})})]}),e&&a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Data"}),a.jsx(rt,{className:sa,variant:"SurfaceVariant",direction:"Column",gap:"400",children:a.jsx(gt,{title:"New Message Event",description:"Create and send a new message event within the room.",after:a.jsx(Ee,{onClick:()=>D({}),variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,children:a.jsx(x,{size:"B300",children:"Compose"})})})}),a.jsxs(rt,{className:sa,variant:"SurfaceVariant",direction:"Column",gap:"400",children:[a.jsx(gt,{title:"Room State",description:"State events of the room.",after:a.jsx(Ee,{onClick:()=>l(!u),variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,before:a.jsx(Q,{src:u?$.ChevronTop:$.ChevronBottom,size:"100",filled:!0}),children:a.jsx(x,{size:"B300",children:u?"Collapse":"Expand"})})}),u&&a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsxs(y,{justifyContent:"SpaceBetween",children:[a.jsx(x,{size:"L400",children:"Events"}),a.jsxs(x,{size:"L400",children:["Total: ",i.size]})]}),a.jsxs(U_,{children:[a.jsx(tt,{onClick:()=>D({stateKey:""}),variant:"Surface",fill:"None",size:"300",radii:"0",before:a.jsx(Q,{size:"50",src:$.Plus}),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T200",truncate:!0,children:"Add New"})})}),Array.from(i.keys()).sort().map(k=>{const C=k===c,S=i.get(k);return S?a.jsxs(y,{id:k,direction:"Column",gap:"100",children:[a.jsx(tt,{onClick:()=>d(C?void 0:k),variant:"Surface",fill:"None",size:"300",radii:"0",before:a.jsx(Q,{size:"50",src:C?$.ChevronBottom:$.ChevronRight}),after:a.jsx(x,{size:"L400",children:S.size}),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T200",truncate:!0,children:k})})}),C&&a.jsxs("div",{style:{marginLeft:le.space.S400,borderLeft:`${le.borderWidth.B300} solid ${ct.Surface.ContainerLine}`},children:[a.jsx(tt,{onClick:()=>D({type:k,stateKey:""}),variant:"Surface",fill:"None",size:"300",radii:"0",before:a.jsx(Q,{size:"50",src:$.Plus}),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T200",truncate:!0,children:"Add New"})})}),Array.from(S.keys()).sort().map(w=>a.jsx(tt,{onClick:()=>{h({type:k,stateKey:w})},variant:"Surface",fill:"None",size:"300",radii:"0",after:a.jsx(Q,{size:"50",src:$.ChevronRight}),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T200",truncate:!0,children:w?`"${w}"`:"Default"})})},w))]})]},k):null})]})]})]}),a.jsxs(rt,{className:sa,variant:"SurfaceVariant",direction:"Column",gap:"400",children:[a.jsx(gt,{title:"Account Data",description:"Private personalization data stored within room.",after:a.jsx(Ee,{onClick:()=>p(!g),variant:"Secondary",fill:"Soft",size:"300",radii:"300",outlined:!0,before:a.jsx(Q,{src:g?$.ChevronTop:$.ChevronBottom,size:"100",filled:!0}),children:a.jsx(x,{size:"B300",children:g?"Collapse":"Expand"})})}),g&&a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsxs(y,{justifyContent:"SpaceBetween",children:[a.jsx(x,{size:"L400",children:"Events"}),a.jsxs(x,{size:"L400",children:["Total: ",s.size]})]}),a.jsxs(U_,{children:[a.jsx(tt,{variant:"Surface",fill:"None",size:"300",radii:"0",before:a.jsx(Q,{size:"50",src:$.Plus}),onClick:()=>v(null),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T200",truncate:!0,children:"Add New"})})}),Array.from(s.keys()).sort().map(k=>a.jsx(tt,{variant:"Surface",fill:"None",size:"300",radii:"0",after:a.jsx(Q,{size:"50",src:$.ChevronRight}),onClick:()=>v(k),children:a.jsx(y,{grow:"Yes",children:a.jsx(x,{size:"T200",truncate:!0,children:k})})},k))]})]})]})]})]})})})})]})}const iKe=()=>f.useMemo(()=>[{page:ns.GeneralPage,name:"General",icon:$.Setting},{page:ns.MembersPage,name:"Members",icon:$.User},{page:ns.PermissionsPage,name:"Permissions",icon:$.Lock},{page:ns.EmojisStickersPage,name:"Emojis & Stickers",icon:$.Smile},{page:ns.DeveloperToolsPage,name:"Developer Tools",icon:$.Terminal}],[]);function aKe({initialPage:t,requestClose:e}){const n=pr(),r=ge(),o=Tt(),i=_t(Co),s=i0(n,i.has(n.roomId)),u=t1(n),l=Oy(n),c=s?Xt(r,s,o,96,96,"crop")??void 0:void 0,d=Wr(),[F,h]=f.useState(()=>t||(d===en.Mobile?void 0:ns.GeneralPage)),m=iKe(),D=()=>{if(d===en.Mobile){h(void 0);return}e()};return a.jsxs(Ad,{nav:d===en.Mobile&&F!==void 0?void 0:a.jsxs(Td,{size:"300",children:[a.jsxs(Id,{outlined:!1,children:[a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"300",children:a.jsx(ho,{roomId:n.roomId,src:c,alt:u,renderFallback:()=>a.jsx(ts,{size:"50",joinRule:(l==null?void 0:l.join_rule)??un.Invite,filled:!0})})}),a.jsx(x,{size:"H4",truncate:!0,children:u})]}),a.jsx(y,{shrink:"No",children:d===en.Mobile&&a.jsx(Me,{onClick:e,variant:"Background",children:a.jsx(Q,{src:$.Cross})})})]}),a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(Rd,{children:a.jsx("div",{style:{flexGrow:1},children:m.map(g=>a.jsx(tt,{variant:"Background",radii:"400","aria-pressed":F===g.page,before:a.jsx(Q,{src:g.icon,size:"100",filled:F===g.page}),onClick:()=>h(g.page),children:a.jsx(x,{style:{fontWeight:F===g.page?le.fontWeight.W600:void 0},size:"T300",truncate:!0,children:g.name})},g.name))})})})]}),children:[F===ns.GeneralPage&&a.jsx(bWe,{requestClose:D}),F===ns.MembersPage&&a.jsx(Rre,{requestClose:D}),F===ns.PermissionsPage&&a.jsx(JWe,{requestClose:D}),F===ns.EmojisStickersPage&&a.jsx(Ore,{requestClose:D}),F===ns.DeveloperToolsPage&&a.jsx(Kre,{requestClose:D})]})}function sKe({state:t}){const{roomId:e,spaceId:n,page:r}=t,o=REe(),i=zne(),s=eI(i),u=s(e),l=n?s(n):void 0;return u?a.jsx(H4,{requestClose:o,children:a.jsx(US,{value:l??null,children:a.jsx(oD,{value:u,children:a.jsx(aKe,{initialPage:r,requestClose:o})})})}):null}function uKe(){const t=IEe();return t?a.jsx(sKe,{state:t}):null}function lKe({children:t}){const e=FCe();return a.jsx(hCe,{value:e,children:t})}function cKe({requestClose:t}){const e=pr(),n=Bi(e);return a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"General"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsx(Are,{powerLevels:n}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Options"}),a.jsx(Bre,{powerLevels:n}),a.jsx(Tre,{powerLevels:n})]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Addresses"}),a.jsx(kre,{powerLevels:n}),a.jsx(Sre,{powerLevels:n})]}),a.jsxs(y,{direction:"Column",gap:"100",children:[a.jsx(x,{size:"L400",children:"Advance Options"}),a.jsx(Ire,{powerLevels:n,requestClose:t})]})]})})})})]})}const dKe=()=>f.useMemo(()=>{const t={name:"Manage",items:[{location:{state:!0,key:Re.SpaceChild},name:"Manage space rooms"},{location:{},name:"Message Events"}]},e={name:"Moderation",items:[{location:{action:!0,key:"invite"},name:"Invite"},{location:{action:!0,key:"kick"},name:"Kick"},{location:{action:!0,key:"ban"},name:"Ban"}]},n={name:"Space Overview",items:[{location:{state:!0,key:Re.RoomAvatar},name:"Space Avatar"},{location:{state:!0,key:Re.RoomName},name:"Space Name"},{location:{state:!0,key:Re.RoomTopic},name:"Space Topic"}]},r={name:"Settings",items:[{location:{state:!0,key:Re.RoomJoinRules},name:"Change Space Access"},{location:{state:!0,key:Re.RoomCanonicalAlias},name:"Publish Address"},{location:{state:!0,key:Re.RoomPowerLevels},name:"Change All Permission"},{location:{state:!0,key:Re.PowerLevelTags},name:"Edit Power Levels"},{location:{state:!0,key:Re.RoomTombstone},name:"Upgrade Space"},{location:{state:!0},name:"Other Settings"}]},o={name:"Other",items:[{location:{state:!0,key:Re.RoomServerAcl},name:"Change Server ACLs"}]};return[t,e,n,r,o]},[]);function hKe({requestClose:t}){const e=ge(),n=pr(),r=Bi(n),{getPowerLevel:o,canSendStateEvent:i}=yo(r),s=i(Re.PowerLevelTags,o(e.getSafeUserId())),u=dKe(),[l,c]=f.useState(!1),d=()=>{c(!0)};return s&&l?a.jsx(Wre,{powerLevels:r,requestClose:()=>c(!1)}):a.jsxs(ur,{children:[a.jsx(Dr,{outlined:!1,children:a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(y,{grow:"Yes",alignItems:"Center",gap:"200",children:a.jsx(x,{size:"H3",truncate:!0,children:"Permissions"})}),a.jsx(y,{shrink:"No",children:a.jsx(Me,{onClick:t,variant:"Surface",children:a.jsx(Q,{src:$.Cross})})})]})}),a.jsx(y,{grow:"Yes",children:a.jsx(Mt,{hideTrack:!0,visibility:"Hover",children:a.jsx(Kr,{children:a.jsxs(y,{direction:"Column",gap:"700",children:[a.jsx(Pre,{powerLevels:r,onEdit:s?d:void 0,permissionGroups:u}),a.jsx(Mre,{powerLevels:r,permissionGroups:u})]})})})})]})}const FKe=()=>f.useMemo(()=>[{page:cs.GeneralPage,name:"General",icon:$.Setting},{page:cs.MembersPage,name:"Members",icon:$.User},{page:cs.PermissionsPage,name:"Permissions",icon:$.Lock},{page:cs.EmojisStickersPage,name:"Emojis & Stickers",icon:$.Smile},{page:cs.DeveloperToolsPage,name:"Developer Tools",icon:$.Terminal}],[]);function mKe({initialPage:t,requestClose:e}){const n=pr(),r=ge(),o=Tt(),i=_t(Co),s=i0(n,i.has(n.roomId)),u=t1(n),l=Oy(n),c=s?Xt(r,s,o,96,96,"crop")??void 0:void 0,d=Wr(),[F,h]=f.useState(()=>t||(d===en.Mobile?void 0:cs.GeneralPage)),m=FKe(),D=()=>{if(d===en.Mobile){h(void 0);return}e()};return a.jsxs(Ad,{nav:d===en.Mobile&&F!==void 0?void 0:a.jsxs(Td,{size:"300",children:[a.jsxs(Id,{outlined:!1,children:[a.jsxs(y,{grow:"Yes",gap:"200",children:[a.jsx(Rt,{size:"200",radii:"300",children:a.jsx(ho,{roomId:n.roomId,src:c,alt:u,renderFallback:()=>a.jsx(ts,{space:!0,size:"50",joinRule:(l==null?void 0:l.join_rule)??un.Invite,filled:!0})})}),a.jsx(x,{size:"H4",truncate:!0,children:u})]}),a.jsx(y,{shrink:"No",children:d===en.Mobile&&a.jsx(Me,{onClick:e,variant:"Background",children:a.jsx(Q,{src:$.Cross})})})]}),a.jsx(y,{grow:"Yes",direction:"Column",children:a.jsx(Rd,{children:a.jsx("div",{style:{flexGrow:1},children:m.map(g=>a.jsx(tt,{variant:"Background",radii:"400","aria-pressed":F===g.page,before:a.jsx(Q,{src:g.icon,size:"100",filled:F===g.page}),onClick:()=>h(g.page),children:a.jsx(x,{style:{fontWeight:F===g.page?le.fontWeight.W600:void 0},size:"T300",truncate:!0,children:g.name})},g.name))})})})]}),children:[F===cs.GeneralPage&&a.jsx(cKe,{requestClose:D}),F===cs.MembersPage&&a.jsx(Rre,{requestClose:D}),F===cs.PermissionsPage&&a.jsx(hKe,{requestClose:D}),F===cs.EmojisStickersPage&&a.jsx(Ore,{requestClose:D}),F===cs.DeveloperToolsPage&&a.jsx(Kre,{requestClose:D})]})}function DKe({state:t}){const{roomId:e,spaceId:n,page:r}=t,o=rje(),i=zne(),s=eI(i),u=s(e),l=n?s(n):void 0;return u?a.jsx(H4,{requestClose:o,children:a.jsx(US,{value:l??null,children:a.jsx(oD,{value:u,children:a.jsx(mKe,{initialPage:r,requestClose:o})})})}):null}function gKe(){const t=nje();return t?a.jsx(DKe,{state:t}):null}const pKe=(t,e)=>{const{hashRouter:n}=t,r=e===en.Mobile,o=uk(a.jsxs(Gn,{children:[a.jsx(Gn,{index:!0,loader:()=>{if(y7())return q1(Eh());const i=yH(EH(),window.location.href);return i&&vH(i),q1(Kl())}}),a.jsxs(Gn,{loader:()=>y7()?q1(Eh()):null,element:a.jsxs(a.Fragment,{children:[a.jsx(nfe,{}),a.jsx(oWe,{})]}),children:[a.jsx(Gn,{path:ip,element:a.jsx(qfe,{})}),a.jsx(Gn,{path:Tv,element:a.jsx(q3e,{})}),a.jsx(Gn,{path:Iv,element:a.jsx(Y3e,{})})]}),a.jsxs(Gn,{loader:()=>{if(!y7()){const i=yH(EH(n),window.location.href);return i&&vH(i),q1(Kl())}return null},element:a.jsx(iWe,{children:a.jsx(LCe,{children:a.jsx(W$e,{children:a.jsx(lKe,{children:a.jsx(HCe,{children:a.jsxs(rWe,{children:[a.jsx($Ce,{nav:a.jsx(q$e,{children:a.jsx(V$e,{})}),children:a.jsx($1,{})}),a.jsx(uKe,{}),a.jsx(gKe,{}),a.jsx(MHe,{}),a.jsx(s$e,{})]})})})})})}),children:[a.jsxs(Gn,{path:ap,element:a.jsx(Ad,{nav:a.jsx(V_,{path:ap,children:a.jsx(i8e,{})}),children:a.jsx($1,{})}),children:[r?null:a.jsx(Gn,{index:!0,element:a.jsx(iD,{})}),a.jsx(Gn,{path:sN,element:a.jsx("p",{children:"create"})}),a.jsx(Gn,{path:ude,element:a.jsx("p",{children:"join"})}),a.jsx(Gn,{path:Rv,element:a.jsx(xSe,{})}),a.jsx(Gn,{path:yF,element:a.jsx(qSe,{children:a.jsx(OT,{})})})]}),a.jsxs(Gn,{path:sp,element:a.jsx(Ad,{nav:a.jsx(V_,{path:sp,children:a.jsx(KSe,{})}),children:a.jsx($1,{})}),children:[r?null:a.jsx(Gn,{index:!0,element:a.jsx(iD,{})}),a.jsx(Gn,{path:sN,element:a.jsx(YSe,{})}),a.jsx(Gn,{path:yF,element:a.jsx(GSe,{children:a.jsx(OT,{})})})]}),a.jsxs(Gn,{path:up,element:a.jsx(ZSe,{children:a.jsx(Ad,{nav:a.jsx(V_,{path:up,children:a.jsx(aje,{})}),children:a.jsx($1,{})})}),children:[r?null:a.jsx(Gn,{index:!0,loader:({params:i})=>{const{spaceIdOrAlias:s}=i;return s?q1(bC(s)):null},element:a.jsx(iD,{})}),a.jsx(Gn,{path:uN,element:a.jsx(vVe,{})}),a.jsx(Gn,{path:Rv,element:a.jsx(sje,{})}),a.jsx(Gn,{path:yF,element:a.jsx(uje,{children:a.jsx(OT,{})})})]}),a.jsxs(Gn,{path:lp,element:a.jsx(Ad,{nav:a.jsx(V_,{path:lp,children:a.jsx(Fje,{})}),children:a.jsx($1,{})}),children:[r?null:a.jsx(Gn,{index:!0,loader:()=>q1(EC()),element:a.jsx(iD,{})}),a.jsx(Gn,{path:lN,element:a.jsx(bje,{})}),a.jsx(Gn,{path:cN,element:a.jsx(vje,{})})]}),a.jsxs(Gn,{path:cp,element:a.jsx(Ad,{nav:a.jsx(V_,{path:cp,children:a.jsx(xje,{})}),children:a.jsx($1,{})}),children:[r?null:a.jsx(Gn,{index:!0,loader:()=>q1(If()),element:a.jsx(iD,{})}),a.jsx(Gn,{path:dN,element:a.jsx(BLe,{})}),a.jsx(Gn,{path:hN,element:a.jsx(ULe,{})})]})]}),a.jsx(Gn,{path:"/*",element:a.jsx("p",{children:"Page not found"})})]}));return n!=null&&n.enabled?Jle(o,{basename:n.basename}):Zle(o,{basename:"/"})},fKe=new wce;function _Ke(){const t=QEe();return a.jsx(e8e,{value:t,children:a.jsx(ede,{children:a.jsx(Wce,{fallback:()=>a.jsx(Jce,{}),error:(e,n,r)=>a.jsx(Xce,{error:e,retry:n,ignore:r}),children:e=>a.jsx(Kce,{value:e,children:a.jsxs(Ace,{client:fKe,children:[a.jsx(Pue,{children:a.jsx(ice,{router:pKe(e,t)})}),a.jsx(qce,{initialIsOpen:!1})]})})})})})}const vKe={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class G4{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||vKe,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new G4(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new G4(this.logger,e)}}var rl=new G4;class Y4{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(i=>{let[s,u]=i;for(let l=0;l<u;l++)s(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[s,u]=i;for(let l=0;l<u;l++)s.apply(s,[e,...r])})}}function $_(){let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n}function Gre(t){return t==null?"":""+t}function bKe(t,e,n){t.forEach(r=>{e[r]&&(n[r]=e[r])})}const CKe=/###/g;function W_(t,e,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(CKe,"."):u}function o(){return!t||typeof t=="string"}const i=typeof e!="string"?e:e.split(".");let s=0;for(;s<i.length-1;){if(o())return{};const u=r(i[s]);!t[u]&&n&&(t[u]=new n),Object.prototype.hasOwnProperty.call(t,u)?t=t[u]:t={},++s}return o()?{}:{obj:t,k:r(i[s])}}function Yre(t,e,n){const{obj:r,k:o}=W_(t,e,Object);if(r!==void 0||e.length===1){r[o]=n;return}let i=e[e.length-1],s=e.slice(0,e.length-1),u=W_(t,s,Object);for(;u.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),u=W_(t,s,Object),u&&u.obj&&typeof u.obj[`${u.k}.${i}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${i}`]=n}function EKe(t,e,n,r){const{obj:o,k:i}=W_(t,e,Object);o[i]=o[i]||[],o[i].push(n)}function Z4(t,e){const{obj:n,k:r}=W_(t,e);if(n)return n[r]}function yKe(t,e,n){const r=Z4(t,n);return r!==void 0?r:Z4(e,n)}function Zre(t,e,n){for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):Zre(t[r],e[r],n):t[r]=e[r]);return t}function SD(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var xKe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function wKe(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>xKe[e]):t}class kKe{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const SKe=[" ",",","?","!",";"],jKe=new kKe(20);function BKe(t,e,n){e=e||"",n=n||"";const r=SKe.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const o=jKe.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(t);if(!i){const s=t.indexOf(n);s>0&&!o.test(t.substring(0,s))&&(i=!0)}return i}function vI(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let o=t;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let s,u="";for(let l=i;l<r.length;++l)if(l!==i&&(u+=n),u+=r[l],s=o[u],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<r.length-1)continue;i+=l-i+1;break}o=s}return o}function J4(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class Jre extends Y4{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;e.indexOf(".")>-1?u=e.split("."):(u=[e,n],r&&(Array.isArray(r)?u.push(...r):typeof r=="string"&&i?u.push(...r.split(i)):u.push(r)));const l=Z4(this.data,u);return!l&&!n&&!r&&e.indexOf(".")>-1&&(e=u[0],n=u[1],r=u.slice(2).join(".")),l||!s||typeof r!="string"?l:vI(this.data&&this.data[e]&&this.data[e][n],r,i)}addResource(e,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let u=[e,n];r&&(u=u.concat(s?r.split(s):r)),e.indexOf(".")>-1&&(u=e.split("."),o=n,n=u[1]),this.addNamespaces(n),Yre(this.data,u,o),i.silent||this.emit("added",e,n,r,o)}addResources(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Array.isArray(r[i]))&&this.addResource(e,n,i,r[i],{silent:!0});o.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[e,n];e.indexOf(".")>-1&&(u=e.split("."),o=r,r=n,n=u[1]),this.addNamespaces(n);let l=Z4(this.data,u)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Zre(l,r,i):l={...l,...r},Yre(this.data,u,l),s.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var Xre={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,o){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,n,r,o))}),e}};const Qre={};class X4 extends Y4{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),bKe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=rl.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,n);return r&&r.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&e.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!BKe(e,r,o);if(s&&!u){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const c=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(o)}return typeof i=="string"&&(i=[i]),{key:e,namespaces:i}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:u}=this.extractFromKey(e[e.length-1],n),l=u[u.length-1],c=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(d){const E=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${E}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${E}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const F=this.resolve(e,n);let h=F&&F.res;const m=F&&F.usedKey||s,D=F&&F.exactUsedKey||s,g=Object.prototype.toString.apply(h),p=["[object Number]","[object Function]","[object RegExp]"],_=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&h&&typeof h!="string"&&typeof h!="boolean"&&typeof h!="number"&&p.indexOf(g)<0&&!(typeof _=="string"&&Array.isArray(h))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,{...n,ns:u}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(F.res=E,F.usedParams=this.getUsedParamsDetails(n),F):E}if(i){const E=Array.isArray(h),b=E?[]:{},k=E?D:m;for(const C in h)if(Object.prototype.hasOwnProperty.call(h,C)){const S=`${k}${i}${C}`;b[C]=this.translate(S,{...n,joinArrays:!1,ns:u}),b[C]===S&&(b[C]=h[C])}h=b}}else if(v&&typeof _=="string"&&Array.isArray(h))h=h.join(_),h&&(h=this.extendTranslation(h,e,n,r));else{let E=!1,b=!1;const k=n.count!==void 0&&typeof n.count!="string",C=X4.hasDefaultValue(n),S=k?this.pluralResolver.getSuffix(c,n.count,n):"",w=n.ordinal&&k?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",A=k&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),O=A&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${S}`]||n[`defaultValue${w}`]||n.defaultValue;!this.isValidLookup(h)&&C&&(E=!0,h=O),this.isValidLookup(h)||(b=!0,h=s);const j=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&b?void 0:h,R=C&&O!==h&&this.options.updateMissing;if(b||E||R){if(this.logger.log(R?"updateKey":"missingKey",c,l,s,R?O:h),i){const P=this.resolve(s,{...n,keySeparator:!1});P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let M=[];const z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&z&&z[0])for(let P=0;P<z.length;P++)M.push(z[P]);else this.options.saveMissingTo==="all"?M=this.languageUtils.toResolveHierarchy(n.lng||this.language):M.push(n.lng||this.language);const T=(P,L,U)=>{const te=C&&U!==h?U:j;this.options.missingKeyHandler?this.options.missingKeyHandler(P,l,L,te,R,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(P,l,L,te,R,n),this.emit("missingKey",P,l,L,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?M.forEach(P=>{const L=this.pluralResolver.getSuffixes(P,n);A&&n[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(U=>{T([P],s+U,n[`defaultValue${U}`]||O)})}):T(M,s,O))}h=this.extendTranslation(h,e,n,F,r),b&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${s}`),(b||E)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,E?h:void 0):h=this.options.parseMissingKeyHandler(h))}return o?(F.res=h,F.usedParams=this.getUsedParamsDetails(n),F):h}extendTranslation(e,n,r,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=typeof e=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const h=e.match(this.interpolator.nestingRegexp);d=h&&h.length}let F=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(F={...this.options.interpolation.defaultVariables,...F}),e=this.interpolator.interpolate(e,F,r.lng||this.language||o.usedLng,r),c){const h=e.match(this.interpolator.nestingRegexp),m=h&&h.length;d<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var h=arguments.length,m=new Array(h),D=0;D<h;D++)m[D]=arguments[D];return i&&i[0]===m[0]&&!r.context?(s.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):s.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,l=typeof u=="string"?[u]:u;return e!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(e=Xre.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,s,u;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),d=c.key;o=d;let F=c.namespaces;this.options.fallbackNS&&(F=F.concat(this.options.fallbackNS));const h=n.count!==void 0&&typeof n.count!="string",m=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),D=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);F.forEach(p=>{this.isValidLookup(r)||(u=p,!Qre[`${g[0]}-${p}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(u)&&(Qre[`${g[0]}-${p}`]=!0,this.logger.warn(`key "${o}" for languages "${g.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(_=>{if(this.isValidLookup(r))return;s=_;const v=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,d,_,p,n);else{let b;h&&(b=this.pluralResolver.getSuffix(_,n.count,n));const k=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(d+b),n.ordinal&&b.indexOf(C)===0&&v.push(d+b.replace(C,this.options.pluralSeparator)),m&&v.push(d+k)),D){const S=`${d}${this.options.contextSeparator}${n.context}`;v.push(S),h&&(v.push(S+b),n.ordinal&&b.indexOf(C)===0&&v.push(S+b.replace(C,this.options.pluralSeparator)),m&&v.push(S+k))}}let E;for(;E=v.pop();)this.isValidLookup(r)||(i=E,r=this.getResource(_,p,E,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:u}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,o):this.resourceStore.getResource(e,n,r,o)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&typeof e.replace!="string";let o=r?e.replace:e;if(r&&typeof e.count<"u"&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}function bI(t){return t.charAt(0).toUpperCase()+t.slice(1)}class eoe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=rl.create("languageUtils")}getScriptPartFromCode(e){if(e=J4(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=J4(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=bI(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=bI(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=bI(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o||!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):typeof e=="string"&&i(this.formatLanguageCode(e)),r.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let AKe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],TKe={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const IKe=["v1","v2","v3"],RKe=["v4"],toe={zero:0,one:1,two:2,few:3,many:4,other:5};function OKe(){const t={};return AKe.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:TKe[e.fc]}})}),t}class MKe{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=rl.create("pluralResolver"),(!this.options.compatibilityJSON||RKe.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=OKe()}addRule(e,n){this.rules[e]=n}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(J4(e==="dev"?"en":e),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(o=>`${n}${o}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>toe[o]-toe[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(e,o,n)):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(e,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const r=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let o=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!IKe.includes(this.options.compatibilityJSON)}}function noe(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=yKe(t,e,n);return!i&&o&&typeof n=="string"&&(i=vI(t,n,r),i===void 0&&(i=vI(e,n,r))),i}class PKe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=rl.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:u,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:F,nestingPrefix:h,nestingPrefixEscaped:m,nestingSuffix:D,nestingSuffixEscaped:g,nestingOptionsSeparator:p,maxReplaces:_,alwaysFormat:v}=e.interpolation;this.escape=n!==void 0?n:wKe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?SD(i):s||"{{",this.suffix=u?SD(u):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":F||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=h?SD(h):m||SD("$t("),this.nestingSuffix=D?SD(D):g||SD(")"),this.nestingOptionsSeparator=p||",",this.maxReplaces=_||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,o){let i,s,u;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(m){return m.replace(/\$/g,"$$$$")}const d=m=>{if(m.indexOf(this.formatSeparator)<0){const _=noe(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(_,void 0,r,{...o,...n,interpolationkey:m}):_}const D=m.split(this.formatSeparator),g=D.shift().trim(),p=D.join(this.formatSeparator).trim();return this.format(noe(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),p,r,{...o,...n,interpolationkey:g})};this.resetRegExp();const F=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>c(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?c(this.escape(m)):c(m)}].forEach(m=>{for(u=0;i=m.regex.exec(e);){const D=i[1].trim();if(s=d(D),s===void 0)if(typeof F=="function"){const p=F(e,i,o);s=typeof p=="string"?p:""}else if(o&&Object.prototype.hasOwnProperty.call(o,D))s="";else if(h){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${D} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=Gre(s));const g=m.safeValue(s);if(e=e.replace(i[0],g),h?(m.regex.lastIndex+=s.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;function u(l,c){const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const F=l.split(new RegExp(`${d}[ ]*{`));let h=`{${F[1]}`;l=F[0],h=this.interpolate(h,s);const m=h.match(/'/g),D=h.match(/"/g);(m&&m.length%2===0&&!D||D.length%2!==0)&&(h=h.replace(/'/g,'"'));try{s=JSON.parse(h),c&&(s={...c,...s})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${d}${h}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l}for(;o=this.nestingRegexp.exec(e);){let l=[];s={...r},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(F=>F.trim());o[1]=d.shift(),l=d,c=!0}if(i=n(u.call(this,o[1].trim(),s),s),i&&o[0]===e&&typeof i!="string")return i;typeof i!="string"&&(i=Gre(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),c&&(i=l.reduce((d,F)=>this.format(d,F,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),e=e.replace(o[0],i),this.regexp.lastIndex=0}return e}}function LKe(t){let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);e==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):e==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(i){const[s,...u]=i.split(":"),l=u.join(":").trim().replace(/^'+|'+$/g,""),c=s.trim();n[c]||(n[c]=l),l==="false"&&(n[c]=!1),l==="true"&&(n[c]=!0),isNaN(l)||(n[c]=parseInt(l,10))}})}return{formatName:e,formatOptions:n}}function jD(t){const e={};return function(n,r,o){const i=r+JSON.stringify(o);let s=e[i];return s||(s=t(J4(r),o),e[i]=s),s(n)}}class NKe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=rl.create("formatter"),this.options=e,this.formats={number:jD((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:jD((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:jD((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:jD((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:jD((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(e)}init(e){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=jD(n)}format(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((i,s)=>{const{formatName:u,formatOptions:l}=LKe(s);if(this.formats[u]){let c=i;try{const d=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},F=d.locale||d.lng||o.locale||o.lng||r;c=this.formats[u](i,F,{...l,...o,...d})}catch(d){this.logger.warn(d)}return c}else this.logger.warn(`there was no format function for ${u}`);return i},e)}}function zKe(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class UKe extends Y4{constructor(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=rl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(e,n,r,o){const i={},s={},u={},l={};return e.forEach(c=>{let d=!0;n.forEach(F=>{const h=`${c}|${F}`;!r.reload&&this.store.hasResourceBundle(c,F)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?s[h]===void 0&&(s[h]=!0):(this.state[h]=1,d=!1,s[h]===void 0&&(s[h]=!0),i[h]===void 0&&(i[h]=!0),l[F]===void 0&&(l[F]=!0)))}),d||(u[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(l)}}loaded(e,n,r){const o=e.split("|"),i=o[0],s=o[1];n&&this.emit("failedLoading",i,s,n),r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2;const u={};this.queue.forEach(l=>{EKe(l.loaded,[i],s),zKe(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{u[c]||(u[c]={});const d=l.loaded[c];d.length&&d.forEach(F=>{u[c][F]===void 0&&(u[c][F]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(l=>!l.done)}read(e,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:o,wait:i,callback:s});return}this.readingCalls++;const u=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const F=this.waitingReads.shift();this.read(F.lng,F.ns,F.fcName,F.tried,F.wait,F.callback)}if(c&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,o+1,i*2,s)},i);return}s(c,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(d=>u(null,d)).catch(u):u(null,c)}catch(c){u(c)}return}return l(e,n,u)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(e,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(s,u)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,s),!s&&u&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,u),this.loaded(e,s,u)})}saveMissing(e,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let d;c.length===5?d=c(e,n,r,o,l):d=c(e,n,r,o),d&&typeof d.then=="function"?d.then(F=>u(null,F)).catch(u):u(null,d)}catch(d){u(d)}else c(e,n,r,o,u,l)}!e||!e[0]||this.store.addResource(e[0],n,r,o)}}}function roe(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let e={};if(typeof t[1]=="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ooe(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Q4(){}function VKe(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{typeof t[e]=="function"&&(t[e]=t[e].bind(t))})}class K_ extends Y4{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ooe(e),this.services={},this.logger=rl,this.modules={external:[]},VKe(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=roe();this.options={...o,...this.options,...ooe(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(l){return l?typeof l=="function"?new l:l:null}if(!this.options.isClone){this.modules.logger?rl.init(i(this.modules.logger),this.options):rl.init(null,this.options);let l;this.modules.formatter?l=this.modules.formatter:typeof Intl<"u"&&(l=NKe);const c=new eoe(this.options);this.store=new Jre(this.options.resources,this.options);const d=this.services;d.logger=rl,d.resourceStore=this.store,d.languageUtils=c,d.pluralResolver=new MKe(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(d.formatter=i(l),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new PKe(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new UKe(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(F){for(var h=arguments.length,m=new Array(h>1?h-1:0),D=1;D<h;D++)m[D-1]=arguments[D];e.emit(F,...m)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new X4(this.services,this.options),this.translator.on("*",function(F){for(var h=arguments.length,m=new Array(h>1?h-1:0),D=1;D<h;D++)m[D-1]=arguments[D];e.emit(F,...m)}),this.modules.external.forEach(F=>{F.init&&F.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Q4),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(l=>{this[l]=function(){return e.store[l](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(l=>{this[l]=function(){return e.store[l](...arguments),e}});const s=$_(),u=()=>{const l=(c,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(d),r(c,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return l(null,this.t.bind(this));this.changeLanguage(this.options.lng,l)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),s}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q4;const r=typeof e=="string"?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const o=[],i=s=>{!s||s==="cimode"||this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(s=>i(s)),this.options.preload&&this.options.preload.forEach(s=>i(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(s)})}else n(null)}reloadResources(e,n,r){const o=$_();return e||(e=this.languages),n||(n=this.options.ns),r||(r=Q4),this.services.backendConnector.reload(e,n,i=>{o.resolve(),r(i)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Xre.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const o=$_();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},u=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const c=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,d=>{s(d,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),o}getFixedT(e,n,r){var o=this;const i=function(s,u){let l;if(typeof u!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),F=2;F<c;F++)d[F-2]=arguments[F];l=o.options.overloadTranslationOptionHandler([s,u].concat(d))}else l={...u};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const h=o.options.keySeparator||".";let m;return l.keyPrefix&&Array.isArray(s)?m=s.map(D=>`${l.keyPrefix}${h}${D}`):m=l.keyPrefix?`${l.keyPrefix}${h}${s}`:s,o.t(m,l)};return typeof e=="string"?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(u,l)=>{const c=this.services.backendConnector.state[`${u}|${l}`];return c===-1||c===2};if(n.precheck){const u=n.precheck(this,s);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,e)&&(!o||s(i,e)))}loadNamespaces(e,n){const r=$_();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=$_();typeof e=="string"&&(e=[e]);const o=this.options.preload||[],i=e.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new eoe(roe());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new K_(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q4;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},i=new K_(o);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Jre(this.store.data,o),i.services.resourceStore=i.store),i.translator=new X4(i.services,o),i.translator.on("*",function(s){for(var u=arguments.length,l=new Array(u>1?u-1:0),c=1;c<u;c++)l[c-1]=arguments[c];i.emit(s,...l)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ci=K_.createInstance();Ci.createInstance=K_.createInstance,Ci.createInstance,Ci.dir,Ci.init,Ci.loadResources,Ci.reloadResources,Ci.use,Ci.changeLanguage,Ci.getFixedT,Ci.t,Ci.exists,Ci.setDefaultNamespace,Ci.hasLoadedNamespace,Ci.loadNamespaces,Ci.loadLanguages;const{slice:qKe,forEach:HKe}=[];function $Ke(t){return HKe.call(qKe.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}const ioe=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,WKe=(t,e,n)=>{const r=n||{};r.path=r.path||"/";const o=encodeURIComponent(e);let i=`${t}=${o}`;if(r.maxAge>0){const s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(s)}`}if(r.domain){if(!ioe.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!ioe.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},aoe={create(t,e,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=WKe(t,encodeURIComponent(e),o)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(e)===0)return o.substring(e.length,o.length)}return null},remove(t){this.create(t,"",-1)}};var KKe={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return aoe.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:i}=e;n&&typeof document<"u"&&aoe.create(n,t,r,o,i)}},GKe={name:"querystring",lookup(t){var r;let{lookupQuerystring:e}=t,n;if(typeof window<"u"){let{search:o}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const i=o.substring(1).split("&");for(let s=0;s<i.length;s++){const u=i[s].indexOf("=");u>0&&i[s].substring(0,u)===e&&(n=i[s].substring(u+1))}}return n}};let G_=null;const soe=()=>{if(G_!==null)return G_;try{G_=window!=="undefined"&&window.localStorage!==null;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{G_=!1}return G_};var YKe={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&soe())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&soe()&&window.localStorage.setItem(n,t)}};let Y_=null;const uoe=()=>{if(Y_!==null)return Y_;try{Y_=window!=="undefined"&&window.sessionStorage!==null;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Y_=!1}return Y_};var ZKe={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&uoe())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&uoe()&&window.sessionStorage.setItem(n,t)}},JKe={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let i=0;i<n.length;i++)e.push(n[i]);r&&e.push(r),o&&e.push(o)}return e.length>0?e:void 0}},XKe={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},QKe={name:"path",lookup(t){var r;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(r=n[typeof e=="number"?e:0])==null?void 0:r.replace("/",""):void 0}},eGe={name:"subdomain",lookup(t){var o,i;let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,r=typeof window<"u"&&((i=(o=window.location)==null?void 0:o.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function tGe(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t}}class loe{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=$Ke(n,this.options||{},tGe()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(KKe),this.addDetector(GKe),this.addDetector(YKe),this.addDetector(ZKe),this.addDetector(JKe),this.addDetector(XKe),this.addDetector(QKe),this.addDetector(eGe)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let n=[];return e.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}loe.type="languageDetector";function CI(t){"@babel/helpers - typeof";return CI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CI(t)}function coe(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":CI(XMLHttpRequest))==="object"}function nGe(t){return!!t&&typeof t.then=="function"}function rGe(t){return nGe(t)?t:Promise.resolve(t)}function oGe(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var EI={exports:{}},yI={exports:{}},doe;function iGe(){return doe||(doe=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Qe<"u"&&Qe,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(s){var u=typeof i<"u"&&i||typeof self<"u"&&self||typeof u<"u"&&u,l={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function c(T){return T&&DataView.prototype.isPrototypeOf(T)}if(l.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],F=ArrayBuffer.isView||function(T){return T&&d.indexOf(Object.prototype.toString.call(T))>-1};function h(T){if(typeof T!="string"&&(T=String(T)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(T)||T==="")throw new TypeError('Invalid character in header field name: "'+T+'"');return T.toLowerCase()}function m(T){return typeof T!="string"&&(T=String(T)),T}function D(T){var P={next:function(){var L=T.shift();return{done:L===void 0,value:L}}};return l.iterable&&(P[Symbol.iterator]=function(){return P}),P}function g(T){this.map={},T instanceof g?T.forEach(function(P,L){this.append(L,P)},this):Array.isArray(T)?T.forEach(function(P){this.append(P[0],P[1])},this):T&&Object.getOwnPropertyNames(T).forEach(function(P){this.append(P,T[P])},this)}g.prototype.append=function(T,P){T=h(T),P=m(P);var L=this.map[T];this.map[T]=L?L+", "+P:P},g.prototype.delete=function(T){delete this.map[h(T)]},g.prototype.get=function(T){return T=h(T),this.has(T)?this.map[T]:null},g.prototype.has=function(T){return this.map.hasOwnProperty(h(T))},g.prototype.set=function(T,P){this.map[h(T)]=m(P)},g.prototype.forEach=function(T,P){for(var L in this.map)this.map.hasOwnProperty(L)&&T.call(P,this.map[L],L,this)},g.prototype.keys=function(){var T=[];return this.forEach(function(P,L){T.push(L)}),D(T)},g.prototype.values=function(){var T=[];return this.forEach(function(P){T.push(P)}),D(T)},g.prototype.entries=function(){var T=[];return this.forEach(function(P,L){T.push([L,P])}),D(T)},l.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function p(T){if(T.bodyUsed)return Promise.reject(new TypeError("Already read"));T.bodyUsed=!0}function _(T){return new Promise(function(P,L){T.onload=function(){P(T.result)},T.onerror=function(){L(T.error)}})}function v(T){var P=new FileReader,L=_(P);return P.readAsArrayBuffer(T),L}function E(T){var P=new FileReader,L=_(P);return P.readAsText(T),L}function b(T){for(var P=new Uint8Array(T),L=new Array(P.length),U=0;U<P.length;U++)L[U]=String.fromCharCode(P[U]);return L.join("")}function k(T){if(T.slice)return T.slice(0);var P=new Uint8Array(T.byteLength);return P.set(new Uint8Array(T)),P.buffer}function C(){return this.bodyUsed=!1,this._initBody=function(T){this.bodyUsed=this.bodyUsed,this._bodyInit=T,T?typeof T=="string"?this._bodyText=T:l.blob&&Blob.prototype.isPrototypeOf(T)?this._bodyBlob=T:l.formData&&FormData.prototype.isPrototypeOf(T)?this._bodyFormData=T:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(T)?this._bodyText=T.toString():l.arrayBuffer&&l.blob&&c(T)?(this._bodyArrayBuffer=k(T.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(T)||F(T))?this._bodyArrayBuffer=k(T):this._bodyText=T=Object.prototype.toString.call(T):this._bodyText="",this.headers.get("content-type")||(typeof T=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(T)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var T=p(this);if(T)return T;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var T=p(this);return T||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(v)}),this.text=function(){var T=p(this);if(T)return T;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(b(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(T){var P=T.toUpperCase();return S.indexOf(P)>-1?P:T}function A(T,P){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');P=P||{};var L=P.body;if(T instanceof A){if(T.bodyUsed)throw new TypeError("Already read");this.url=T.url,this.credentials=T.credentials,P.headers||(this.headers=new g(T.headers)),this.method=T.method,this.mode=T.mode,this.signal=T.signal,!L&&T._bodyInit!=null&&(L=T._bodyInit,T.bodyUsed=!0)}else this.url=String(T);if(this.credentials=P.credentials||this.credentials||"same-origin",(P.headers||!this.headers)&&(this.headers=new g(P.headers)),this.method=w(P.method||this.method||"GET"),this.mode=P.mode||this.mode||null,this.signal=P.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(L),(this.method==="GET"||this.method==="HEAD")&&(P.cache==="no-store"||P.cache==="no-cache")){var U=/([?&])_=[^&]*/;if(U.test(this.url))this.url=this.url.replace(U,"$1_="+new Date().getTime());else{var te=/\?/;this.url+=(te.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function O(T){var P=new FormData;return T.trim().split("&").forEach(function(L){if(L){var U=L.split("="),te=U.shift().replace(/\+/g," "),ae=U.join("=").replace(/\+/g," ");P.append(decodeURIComponent(te),decodeURIComponent(ae))}}),P}function j(T){var P=new g,L=T.replace(/\r?\n[\t ]+/g," ");return L.split("\r").map(function(U){return U.indexOf(`
`)===0?U.substr(1,U.length):U}).forEach(function(U){var te=U.split(":"),ae=te.shift().trim();if(ae){var Fe=te.join(":").trim();P.append(ae,Fe)}}),P}C.call(A.prototype);function R(T,P){if(!(this instanceof R))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');P||(P={}),this.type="default",this.status=P.status===void 0?200:P.status,this.ok=this.status>=200&&this.status<300,this.statusText=P.statusText===void 0?"":""+P.statusText,this.headers=new g(P.headers),this.url=P.url||"",this._initBody(T)}C.call(R.prototype),R.prototype.clone=function(){return new R(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},R.error=function(){var T=new R(null,{status:0,statusText:""});return T.type="error",T};var M=[301,302,303,307,308];R.redirect=function(T,P){if(M.indexOf(P)===-1)throw new RangeError("Invalid status code");return new R(null,{status:P,headers:{location:T}})},s.DOMException=u.DOMException;try{new s.DOMException}catch{s.DOMException=function(T,P){this.message=T,this.name=P;var L=Error(T);this.stack=L.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function z(T,P){return new Promise(function(L,U){var te=new A(T,P);if(te.signal&&te.signal.aborted)return U(new s.DOMException("Aborted","AbortError"));var ae=new XMLHttpRequest;function Fe(){ae.abort()}ae.onload=function(){var ce={status:ae.status,statusText:ae.statusText,headers:j(ae.getAllResponseHeaders()||"")};ce.url="responseURL"in ae?ae.responseURL:ce.headers.get("X-Request-URL");var K="response"in ae?ae.response:ae.responseText;setTimeout(function(){L(new R(K,ce))},0)},ae.onerror=function(){setTimeout(function(){U(new TypeError("Network request failed"))},0)},ae.ontimeout=function(){setTimeout(function(){U(new TypeError("Network request failed"))},0)},ae.onabort=function(){setTimeout(function(){U(new s.DOMException("Aborted","AbortError"))},0)};function re(ce){try{return ce===""&&u.location.href?u.location.href:ce}catch{return ce}}ae.open(te.method,re(te.url),!0),te.credentials==="include"?ae.withCredentials=!0:te.credentials==="omit"&&(ae.withCredentials=!1),"responseType"in ae&&(l.blob?ae.responseType="blob":l.arrayBuffer&&te.headers.get("Content-Type")&&te.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(ae.responseType="arraybuffer")),P&&typeof P.headers=="object"&&!(P.headers instanceof g)?Object.getOwnPropertyNames(P.headers).forEach(function(ce){ae.setRequestHeader(ce,m(P.headers[ce]))}):te.headers.forEach(function(ce,K){ae.setRequestHeader(K,ce)}),te.signal&&(te.signal.addEventListener("abort",Fe),ae.onreadystatechange=function(){ae.readyState===4&&te.signal.removeEventListener("abort",Fe)}),ae.send(typeof te._bodyInit>"u"?null:te._bodyInit)})}return z.polyfill=!0,u.fetch||(u.fetch=z,u.Headers=g,u.Request=A,u.Response=R),s.Headers=g,s.Request=A,s.Response=R,s.fetch=z,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=n.fetch?n:r;e=o.fetch,e.default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}(yI,yI.exports)),yI.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof Qe<"u"&&Qe.fetch?n=Qe.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof oGe<"u"&&typeof window>"u"){var r=n||iGe();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(EI,EI.exports);var hoe=EI.exports;const Foe=Rr(hoe),moe=Qn({__proto__:null,default:Foe},[hoe]);function Doe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function goe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Doe(Object(n),!0).forEach(function(r){aGe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Doe(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function aGe(t,e,n){return e=sGe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sGe(t){var e=uGe(t,"string");return w0(e)=="symbol"?e:e+""}function uGe(t,e){if(w0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(w0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function w0(t){"@babel/helpers - typeof";return w0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w0(t)}var bc;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?bc=global.fetch:typeof window<"u"&&window.fetch?bc=window.fetch:bc=fetch);var Z_;coe()&&(typeof global<"u"&&global.XMLHttpRequest?Z_=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Z_=window.XMLHttpRequest));var ex;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ex=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ex=window.ActiveXObject)),!bc&&moe&&!Z_&&!ex&&(bc=Foe||moe),typeof bc!="function"&&(bc=void 0);var xI=function(t,e){if(e&&w0(e)==="object"){var n="";for(var r in e)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e[r]);if(!n)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+n.slice(1)}return t},poe=function(t,e,n,r){var o=function(s){if(!s.ok)return n(s.statusText||"Error",{status:s.status});s.text().then(function(u){n(null,{status:s.status,data:u})}).catch(n)};if(r){var i=r(t,e);if(i instanceof Promise){i.then(o).catch(n);return}}typeof fetch=="function"?fetch(t,e).then(o).catch(n):bc(t,e).then(o).catch(n)},foe=!1,lGe=function(t,e,n,r){t.queryStringParams&&(e=xI(e,t.queryStringParams));var o=goe({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var i=typeof t.requestOptions=="function"?t.requestOptions(n):t.requestOptions,s=goe({method:n?"POST":"GET",body:n?t.stringify(n):void 0,headers:o},foe?{}:i),u=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{poe(e,s,r,u)}catch(l){if(!i||Object.keys(i).length===0||!l.message||l.message.indexOf("not implemented")<0)return r(l);try{Object.keys(i).forEach(function(c){delete s[c]}),poe(e,s,r,u),foe=!0}catch(c){r(c)}}},cGe=function(t,e,n,r){n&&w0(n)==="object"&&(n=xI("",n).slice(1)),t.queryStringParams&&(e=xI(e,t.queryStringParams));try{var o;Z_?o=new Z_:o=new ex("MSXML2.XMLHTTP.3.0"),o.open(n?"POST":"GET",e,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=t.customHeaders;if(i=typeof i=="function"?i():i,i)for(var s in i)o.setRequestHeader(s,i[s]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(u){console&&console.log(u)}},dGe=function(t,e,n,r){if(typeof n=="function"&&(r=n,n=void 0),r=r||function(){},bc&&e.indexOf("file:")!==0)return lGe(t,e,n,r);if(coe()||typeof ActiveXObject=="function")return cGe(t,e,n,r);r(new Error("No fetch and no xhr implementation found!"))};function BD(t){"@babel/helpers - typeof";return BD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BD(t)}function _oe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function wI(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_oe(Object(n),!0).forEach(function(r){voe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_oe(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function hGe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FGe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,boe(r.key),r)}}function mGe(t,e,n){return FGe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function voe(t,e,n){return e=boe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function boe(t){var e=DGe(t,"string");return BD(e)=="symbol"?e:e+""}function DGe(t,e){if(BD(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(BD(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var gGe=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,e,n){return voe({},e,n||"")},parseLoadPayload:function(t,e){},request:dGe,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Coe=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};hGe(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return mGe(t,[{key:"init",value:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=e,this.options=wI(wI(wI({},gGe()),this.options||{}),r),this.allOptions=o,this.services&&this.options.reloadInterval){var i=setInterval(function(){return n.reload()},this.options.reloadInterval);BD(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(e,n,r){this._readAny(e,e,n,n,r)}},{key:"read",value:function(e,n,r){this._readAny([e],e,[n],n,r)}},{key:"_readAny",value:function(e,n,r,o,i){var s=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(e,r)),u=rGe(u),u.then(function(l){if(!l)return i(null,{});var c=s.services.interpolator.interpolate(l,{lng:e.join("+"),ns:r.join("+")});s.loadUrl(c,i,n,o)})}},{key:"loadUrl",value:function(e,n,r,o){var i=this,s=typeof r=="string"?[r]:r,u=typeof o=="string"?[o]:o,l=this.options.parseLoadPayload(s,u);this.options.request(this.options,e,l,function(c,d){if(d&&(d.status>=500&&d.status<600||!d.status))return n("failed loading "+e+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return n("failed loading "+e+"; status code: "+d.status,!1);if(!d&&c&&c.message&&c.message.indexOf("Failed to fetch")>-1)return n("failed loading "+e+": "+c.message,!0);if(c)return n(c,!1);var F,h;try{typeof d.data=="string"?F=i.options.parse(d.data,r,o):F=d.data}catch{h="failed parsing "+e+" to json"}if(h)return n(h,!1);n(null,F)})}},{key:"create",value:function(e,n,r,o,i){var s=this;if(this.options.addPath){typeof e=="string"&&(e=[e]);var u=this.options.parsePayload(n,r,o),l=0,c=[],d=[];e.forEach(function(F){var h=s.options.addPath;typeof s.options.addPath=="function"&&(h=s.options.addPath(F,n));var m=s.services.interpolator.interpolate(h,{lng:F,ns:n});s.options.request(s.options,m,u,function(D,g){l+=1,c.push(D),d.push(g),l===e.length&&typeof i=="function"&&i(c,d)})})}}},{key:"reload",value:function(){var e=this,n=this.services,r=n.backendConnector,o=n.languageUtils,i=n.logger,s=r.language;if(!(s&&s.toLowerCase()==="cimode")){var u=[],l=function(c){var d=o.toResolveHierarchy(c);d.forEach(function(F){u.indexOf(F)<0&&u.push(F)})};l(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return l(c)}),u.forEach(function(c){e.allOptions.ns.forEach(function(d){r.read(c,d,"read",null,null,function(F,h){F&&i.warn("loading namespace ".concat(d," for language ").concat(c," failed"),F),!F&&h&&i.log("loaded namespace ".concat(d," for language ").concat(c),h),r.loaded("".concat(c,"|").concat(d),F,h)})})})}}}])}();if(Coe.type="backend",Ci.use(Coe).use(loe).use(QLe).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",backend:{loadPath:`${Ki("/")}/public/locales/{{lng}}.json`}}),wse(),document.body.classList.add(N6,z6),"serviceWorker"in navigator){const t=`${Ki("/")}/sw.js`;navigator.serviceWorker.register(t),navigator.serviceWorker.addEventListener("message",e=>{var n,r;if(((n=e.data)==null?void 0:n.type)==="token"&&((r=e.data)!=null&&r.responseKey)){const o=localStorage.getItem("cinny_access_token")??void 0;e.source.postMessage({responseKey:e.data.responseKey,token:o})}})}(()=>{const t=document.getElementById("root");if(t===null){console.error("Root container element not found!");return}uP(t).render(a.jsx(_Ke,{}))})()})();export{$D as $,Ooe as A,Moe as B,Jn as C,SI as D,Ce as E,ul as F,Poe as G,zi as H,nx as I,Un as J,an as K,Loe as L,Se as M,eu as N,rx as O,ox as P,Noe as Q,zoe as R,Cc as S,Cr as T,Uoe as U,jI as V,Vn as W,E1 as X,BI as Y,R0 as Z,I as _,_Ge as __tla,Z as a,AI as a0,Voe as b,Qe as c,y1 as d,lt as e,WD as f,Rr as g,ix as h,ax as i,a as j,TI as k,Y as l,x1 as m,sx as n,Ec as o,KD as p,ll as q,f as r,yc as s,or as t,tn as u,Do as v,II as w,RI as x,GD as y,qoe as z};