@goodhood-web/nebenan-base 3.0.1-development.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.mjs +9 -6
- package/lib/ProfileControls/ProfileControls.types.d.ts +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -81,7 +81,7 @@ Valid keys: `+JSON.stringify(Object.keys(Q),null," "));var xe=tn(ke,Re,we,ve,ye
|
|
|
81
81
|
`));r({type:Xn.itemClick,item:t,event:w})}},[r,t]),c=v.useCallback(p=>w=>{var S;if((S=p.onMouseOver)==null||S.call(p,w),!w.defaultPrevented){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(["MUI: The `item` provided to useListItem() is undefined.","This should happen only during server-side rendering under React 17."].join(`
|
|
82
82
|
`));r({type:Xn.itemHover,item:t,event:w})}},[r,t]);let m;return l&&(m=o?0:-1),{getRootProps:(p={})=>{const w=mr(p);return{...p,onClick:d(w),onPointerOver:e?c(w):void 0,tabIndex:m}},highlighted:o,selected:u}}const hd=v.createContext(null);process.env.NODE_ENV!=="production"&&(hd.displayName="CompoundComponentContext");function FA(n){const e=Array.from(n.keys()).map(t=>{const i=n.get(t);return{key:t,subitem:i}});return e.sort((t,i)=>{const r=t.subitem.ref.current,a=i.subitem.ref.current;return r===null||a===null||r===a?0:r.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(e.map(t=>[t.key,t.subitem]))}function nb(){const[n,e]=v.useState(new Map),t=v.useRef(new Set),i=v.useCallback(function(d){t.current.delete(d),e(c=>{const m=new Map(c);return m.delete(d),m})},[]),r=v.useCallback(function(d,c){let m;return typeof d=="function"?m=d(t.current):m=d,t.current.add(m),e(g=>{const p=new Map(g);return p.set(m,c),p}),{id:m,deregister:()=>i(m)}},[i]),a=v.useMemo(()=>FA(n),[n]),o=v.useCallback(function(d){return Array.from(a.keys()).indexOf(d)},[a]);return{contextValue:v.useMemo(()=>({getItemIndex:o,registerItem:r,totalSubitemCount:n.size}),[o,r,n.size]),subitems:a}}function tb(n,e){const t=v.useContext(hd);if(t===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:i}=t,[r,a]=v.useState(typeof n=="function"?void 0:n);return k0(()=>{const{id:o,deregister:u}=i(n,e);return a(o),u},[i,e,n]),{id:r,index:r!==void 0?t.getItemIndex(r):-1,totalItemCount:t.totalSubitemCount}}function AA(n,e){return function(i={}){const r={...i,...n(i)};return{...r,...e(r)}}}function PA(n){return typeof n=="function"?n():n}const lu=v.forwardRef(function(e,t){const{children:i,container:r,disablePortal:a=!1}=e,[o,u]=v.useState(null),l=Xr(v.isValidElement(i)?i.ref:null,t);if(k0(()=>{a||u(PA(r)||document.body)},[r,a]),k0(()=>{if(o&&!a)return w0(t,o),()=>{w0(t,null)}},[t,o,a]),a){if(v.isValidElement(i)){const d={ref:l};return v.cloneElement(i,d)}return k.jsx(v.Fragment,{children:i})}return k.jsx(v.Fragment,{children:o&&WE.createPortal(i,o)})});process.env.NODE_ENV!=="production"&&(lu.propTypes={children:Be.node,container:Be.oneOfType([VF,Be.func]),disablePortal:Be.bool});process.env.NODE_ENV!=="production"&&(lu.propTypes=jF(lu.propTypes));const ib="TabPanel";function LA(n){return Cu(ib,n)}cd(ib,["root","hidden"]);const rb="Tabs";function RA(n){return Cu(rb,n)}cd(rb,["root","horizontal","vertical"]);function zA(n){const{value:e,defaultValue:t,onChange:i,orientation:r="horizontal",direction:a="ltr",selectionFollowsFocus:o=!1}=n,[u,l]=WF({controlled:e,default:t,name:"Tabs",state:"value"}),d=v.useCallback((x,y)=>{l(y),i==null||i(x,y)},[i,l]),{subitems:c,contextValue:m}=nb(),g=v.useRef(()=>{}),p=v.useCallback(x=>{var y;return(y=c.get(x))==null?void 0:y.id},[c]),w=v.useCallback(x=>g.current(x),[]),S=v.useCallback(x=>{g.current=x},[]);return{contextValue:{direction:a,getTabId:w,getTabPanelId:p,onSelected:d,orientation:r,registerTabIdLookup:S,selectionFollowsFocus:o,value:u,...m}}}const Mh=v.createContext(null);process.env.NODE_ENV!=="production"&&(Mh.displayName="TabsContext");function Fh(){const n=v.useContext(Mh);if(n==null)throw new Error("No TabsContext provided");return n}function $A(n){const{value:e,children:t}=n,{direction:i,getItemIndex:r,onSelected:a,orientation:o,registerItem:u,registerTabIdLookup:l,selectionFollowsFocus:d,totalSubitemCount:c,value:m,getTabId:g,getTabPanelId:p}=e,w=v.useMemo(()=>({getItemIndex:r,registerItem:u,totalSubitemCount:c}),[u,r,c]),S=v.useMemo(()=>({direction:i,getTabId:g,getTabPanelId:p,onSelected:a,orientation:o,registerTabIdLookup:l,selectionFollowsFocus:d,value:m}),[i,g,p,a,o,l,d,m]);return k.jsx(hd.Provider,{value:w,children:k.jsx(Mh.Provider,{value:S,children:t})})}const BA=n=>{const{orientation:e}=n;return fd({root:["root",e]},ud(RA))},ab=v.forwardRef(function(e,t){const{children:i,value:r,defaultValue:a,orientation:o="horizontal",direction:u="ltr",onChange:l,selectionFollowsFocus:d,slotProps:c={},slots:m={},...g}=e,p={...e,orientation:o,direction:u},{contextValue:w}=zA(p),S=BA(p),x=m.root??"div",y=dd({elementType:x,externalSlotProps:c.root,externalForwardedProps:g,additionalProps:{ref:t},ownerState:p,className:S.root});return k.jsx(x,{...y,children:k.jsx($A,{value:w,children:i})})});process.env.NODE_ENV!=="production"&&(ab.propTypes={children:Be.node,className:Be.string,defaultValue:Be.oneOfType([Be.number,Be.string]),direction:Be.oneOf(["ltr","rtl"]),onChange:Be.func,orientation:Be.oneOf(["horizontal","vertical"]),selectionFollowsFocus:Be.bool,slotProps:Be.shape({root:Be.oneOfType([Be.func,Be.object])}),slots:Be.shape({root:Be.elementType}),value:Be.oneOfType([Be.number,Be.string])});function OA(n){return n.size}function IA(n){const{value:e,id:t,rootRef:i}=n,r=Fh();if(r===null)throw new Error("No TabContext provided");const{value:a,getTabId:o}=r,u=Y4(t),l=v.useRef(null),d=Xr(l,i),c=v.useMemo(()=>({id:u,ref:l}),[u]),{id:m}=tb(e??OA,c),g=m!==a,p=m!==void 0?o(m):void 0;return{hidden:g,getRootProps:(S={})=>({"aria-labelledby":p??void 0,hidden:g,id:u??void 0,...S,ref:d}),rootRef:d}}const DA=n=>{const{hidden:e}=n;return fd({root:["root",e&&"hidden"]},ud(LA))},sb=v.forwardRef(function(e,t){const{children:i,value:r,slotProps:a={},slots:o={},...u}=e,{hidden:l,getRootProps:d}=IA(e),c={...e,hidden:l},m=DA(c),g=o.root??"div",p=dd({elementType:g,getSlotProps:d,externalSlotProps:a.root,externalForwardedProps:u,additionalProps:{role:"tabpanel",ref:t},ownerState:c,className:m.root});return k.jsx(g,{...p,children:!l&&i})});process.env.NODE_ENV!=="production"&&(sb.propTypes={children:Be.node,className:Be.string,slotProps:Be.shape({root:Be.oneOfType([Be.func,Be.object])}),slots:Be.shape({root:Be.elementType}),value:Be.oneOfType([Be.number,Be.string])});const ob="TabsList";function NA(n){return Cu(ob,n)}cd(ob,["root","horizontal","vertical"]);const ub={valueChange:"valueChange"};function jA(n,e){if(e.type===ub.valueChange)return{...n,highlightedValue:e.value};const t=eb(n,e),{context:{selectionFollowsFocus:i}}=e;if(e.type===Xn.itemsChange){if(t.selectedValues.length>0)return{...t,highlightedValue:t.selectedValues[0]};wt(null,"reset",e.context)}return i&&t.highlightedValue!=null?{...t,selectedValues:[t.highlightedValue]}:t}function HA(n){const{rootRef:e}=n,{direction:t="ltr",onSelected:i,orientation:r="horizontal",value:a,registerTabIdLookup:o,selectionFollowsFocus:u}=Fh(),{subitems:l,contextValue:d}=nb(),c=v.useCallback(Y=>{var P;return(P=l.get(Y))==null?void 0:P.id},[l]);o(c);const m=v.useMemo(()=>Array.from(l.keys()),[l]),g=v.useCallback(Y=>{var P;return Y==null?null:((P=l.get(Y))==null?void 0:P.ref.current)??null},[l]),p=t==="rtl";let w;r==="vertical"?w="vertical":w=p?"horizontal-rtl":"horizontal-ltr";const S=v.useCallback((Y,P)=>{i(Y,P[0]??null)},[i]),x=v.useMemo(()=>a===void 0?{}:a!=null?{selectedValues:[a]}:{selectedValues:[]},[a]),y=v.useCallback(Y=>{var P;return((P=l.get(Y))==null?void 0:P.disabled)??!1},[l]),{contextValue:T,dispatch:F,getRootProps:N,state:{highlightedValue:L,selectedValues:j},rootRef:X}=TA({controlledProps:x,disabledItemsFocusable:!u,focusManagement:"DOM",getItemDomElement:g,isItemDisabled:y,items:m,rootRef:e,onChange:S,orientation:w,reducerActionContext:v.useMemo(()=>({selectionFollowsFocus:u||!1}),[u]),selectionMode:"single",stateReducer:jA});v.useEffect(()=>{a!==void 0&&a!=null&&F({type:ub.valueChange,value:a})},[F,a]);const re=(Y={})=>({...Y,...N(Y),"aria-orientation":r==="vertical"?"vertical":void 0,role:"tablist"});return{contextValue:v.useMemo(()=>({...d,...T}),[d,T]),dispatch:F,getRootProps:re,highlightedValue:L,isRtl:p,orientation:r,rootRef:X,selectedValue:j[0]??null}}function VA(n){const{value:e,children:t}=n,{dispatch:i,getItemIndex:r,getItemState:a,registerItem:o,totalSubitemCount:u}=e,l=v.useMemo(()=>({dispatch:i,getItemState:a,getItemIndex:r}),[i,r,a]),d=v.useMemo(()=>({getItemIndex:r,registerItem:o,totalSubitemCount:u}),[o,r,u]);return k.jsx(hd.Provider,{value:d,children:k.jsx(Th.Provider,{value:l,children:t})})}const GA=n=>{const{orientation:e}=n;return fd({root:["root",e]},ud(NA))},lb=v.forwardRef(function(e,t){const{children:i,slotProps:r={},slots:a={},...o}=e,{isRtl:u,orientation:l,getRootProps:d,contextValue:c}=HA({rootRef:t}),m={...e,isRtl:u,orientation:l},g=GA(m),p=a.root??"div",w=dd({elementType:p,getSlotProps:d,externalSlotProps:r.root,externalForwardedProps:o,ownerState:m,className:g.root});return k.jsx(VA,{value:c,children:k.jsx(p,{...w,children:i})})});process.env.NODE_ENV!=="production"&&(lb.propTypes={children:Be.node,className:Be.string,slotProps:Be.shape({root:Be.oneOfType([Be.func,Be.object])}),slots:Be.shape({root:Be.elementType})});const fb="Tab";function WA(n){return Cu(fb,n)}cd(fb,["root","selected","disabled"]);function UA(n){return n.size}function qA(n){const{value:e,rootRef:t,disabled:i=!1,id:r}=n,a=v.useRef(null),o=Y4(r),{value:u,selectionFollowsFocus:l,getTabPanelId:d}=Fh(),c=v.useMemo(()=>({disabled:i,ref:a,id:o}),[i,a,o]),{id:m,index:g,totalItemCount:p}=tb(e??UA,c),{getRootProps:w,highlighted:S,selected:x}=MA({item:m}),{getRootProps:y,rootRef:T,active:F,focusVisible:N,setFocusVisible:L}=rA({disabled:i,focusableWhenDisabled:!l,type:"button"}),j=Xr(a,t,T),X=m!==void 0?d(m):void 0;return{getRootProps:(se={})=>{const Y=mr(se),P=AA(w,y);return{...se,...P(Y),role:"tab","aria-controls":X,"aria-selected":x,id:o,ref:j}},active:F,focusVisible:N,highlighted:S,index:g,rootRef:j,selected:x||m===u,setFocusVisible:L,totalTabsCount:p}}const ZA=n=>{const{selected:e,disabled:t}=n;return fd({root:["root",e&&"selected",t&&"disabled"]},ud(WA))},db=v.forwardRef(function(e,t){const{action:i,children:r,disabled:a=!1,onChange:o,onClick:u,onFocus:l,slotProps:d={},slots:c={},value:m,...g}=e,p=v.useRef(),w=Xr(p,t),{active:S,highlighted:x,selected:y,getRootProps:T}=qA({...e,rootRef:w,value:m}),F={...e,active:S,disabled:a,highlighted:x,selected:y},N=ZA(F),L=c.root??"button",j=dd({elementType:L,getSlotProps:T,externalSlotProps:d.root,externalForwardedProps:g,additionalProps:{ref:t},ownerState:F,className:N.root});return k.jsx(L,{...j,children:r})});process.env.NODE_ENV!=="production"&&(db.propTypes={action:Be.oneOfType([Be.func,Be.shape({current:Be.shape({focusVisible:Be.func.isRequired})})]),children:Be.node,disabled:Be.bool,onChange:Be.func,slotProps:Be.shape({root:Be.oneOfType([Be.func,Be.object])}),slots:Be.shape({root:Be.elementType}),value:Be.oneOfType([Be.number,Be.string])});var KA=function(e){return YA(e)&&!JA(e)};function YA(n){return!!n&&typeof n=="object"}function JA(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||eP(n)}var QA=typeof Symbol=="function"&&Symbol.for,XA=QA?Symbol.for("react.element"):60103;function eP(n){return n.$$typeof===XA}function nP(n){return Array.isArray(n)?[]:{}}function zf(n,e){return e.clone!==!1&&e.isMergeableObject(n)?fu(nP(n),n,e):n}function tP(n,e,t){return n.concat(e).map(function(i){return zf(i,t)})}function iP(n,e,t){var i={};return t.isMergeableObject(n)&&Object.keys(n).forEach(function(r){i[r]=zf(n[r],t)}),Object.keys(e).forEach(function(r){!t.isMergeableObject(e[r])||!n[r]?i[r]=zf(e[r],t):i[r]=fu(n[r],e[r],t)}),i}function fu(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||tP,t.isMergeableObject=t.isMergeableObject||KA;var i=Array.isArray(e),r=Array.isArray(n),a=i===r;return a?i?t.arrayMerge(n,e,t):iP(n,e,t):zf(e,t)}fu.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,r){return fu(i,r,t)},{})};var x0=fu,cb=typeof global=="object"&&global&&global.Object===Object&&global,rP=typeof self=="object"&&self&&self.Object===Object&&self,qi=cb||rP||Function("return this")(),Jr=qi.Symbol,hb=Object.prototype,aP=hb.hasOwnProperty,sP=hb.toString,mo=Jr?Jr.toStringTag:void 0;function oP(n){var e=aP.call(n,mo),t=n[mo];try{n[mo]=void 0;var i=!0}catch{}var r=sP.call(n);return i&&(e?n[mo]=t:delete n[mo]),r}var uP=Object.prototype,lP=uP.toString;function fP(n){return lP.call(n)}var dP="[object Null]",cP="[object Undefined]",qp=Jr?Jr.toStringTag:void 0;function ja(n){return n==null?n===void 0?cP:dP:qp&&qp in Object(n)?oP(n):fP(n)}function gb(n,e){return function(t){return n(e(t))}}var Ah=gb(Object.getPrototypeOf,Object);function Ha(n){return n!=null&&typeof n=="object"}var hP="[object Object]",gP=Function.prototype,mP=Object.prototype,mb=gP.toString,pP=mP.hasOwnProperty,vP=mb.call(Object);function Zp(n){if(!Ha(n)||ja(n)!=hP)return!1;var e=Ah(n);if(e===null)return!0;var t=pP.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&mb.call(t)==vP}function bP(){this.__data__=[],this.size=0}function pb(n,e){return n===e||n!==n&&e!==e}function gd(n,e){for(var t=n.length;t--;)if(pb(n[t][0],e))return t;return-1}var wP=Array.prototype,kP=wP.splice;function _P(n){var e=this.__data__,t=gd(e,n);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():kP.call(e,t,1),--this.size,!0}function yP(n){var e=this.__data__,t=gd(e,n);return t<0?void 0:e[t][1]}function xP(n){return gd(this.__data__,n)>-1}function SP(n,e){var t=this.__data__,i=gd(t,n);return i<0?(++this.size,t.push([n,e])):t[i][1]=e,this}function _r(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}_r.prototype.clear=bP;_r.prototype.delete=_P;_r.prototype.get=yP;_r.prototype.has=xP;_r.prototype.set=SP;function CP(){this.__data__=new _r,this.size=0}function EP(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function TP(n){return this.__data__.get(n)}function MP(n){return this.__data__.has(n)}function Eu(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var FP="[object AsyncFunction]",AP="[object Function]",PP="[object GeneratorFunction]",LP="[object Proxy]";function vb(n){if(!Eu(n))return!1;var e=ja(n);return e==AP||e==PP||e==FP||e==LP}var h1=qi["__core-js_shared__"],Kp=function(){var n=/[^.]+$/.exec(h1&&h1.keys&&h1.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function RP(n){return!!Kp&&Kp in n}var zP=Function.prototype,$P=zP.toString;function Va(n){if(n!=null){try{return $P.call(n)}catch{}try{return n+""}catch{}}return""}var BP=/[\\^$.*+?()[\]{}|]/g,OP=/^\[object .+?Constructor\]$/,IP=Function.prototype,DP=Object.prototype,NP=IP.toString,jP=DP.hasOwnProperty,HP=RegExp("^"+NP.call(jP).replace(BP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function VP(n){if(!Eu(n)||RP(n))return!1;var e=vb(n)?HP:OP;return e.test(Va(n))}function GP(n,e){return n==null?void 0:n[e]}function Ga(n,e){var t=GP(n,e);return VP(t)?t:void 0}var du=Ga(qi,"Map"),cu=Ga(Object,"create");function WP(){this.__data__=cu?cu(null):{},this.size=0}function UP(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var qP="__lodash_hash_undefined__",ZP=Object.prototype,KP=ZP.hasOwnProperty;function YP(n){var e=this.__data__;if(cu){var t=e[n];return t===qP?void 0:t}return KP.call(e,n)?e[n]:void 0}var JP=Object.prototype,QP=JP.hasOwnProperty;function XP(n){var e=this.__data__;return cu?e[n]!==void 0:QP.call(e,n)}var eL="__lodash_hash_undefined__";function nL(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=cu&&e===void 0?eL:e,this}function $a(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}$a.prototype.clear=WP;$a.prototype.delete=UP;$a.prototype.get=YP;$a.prototype.has=XP;$a.prototype.set=nL;function tL(){this.size=0,this.__data__={hash:new $a,map:new(du||_r),string:new $a}}function iL(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function md(n,e){var t=n.__data__;return iL(e)?t[typeof e=="string"?"string":"hash"]:t.map}function rL(n){var e=md(this,n).delete(n);return this.size-=e?1:0,e}function aL(n){return md(this,n).get(n)}function sL(n){return md(this,n).has(n)}function oL(n,e){var t=md(this,n),i=t.size;return t.set(n,e),this.size+=t.size==i?0:1,this}function ea(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}ea.prototype.clear=tL;ea.prototype.delete=rL;ea.prototype.get=aL;ea.prototype.has=sL;ea.prototype.set=oL;var uL=200;function lL(n,e){var t=this.__data__;if(t instanceof _r){var i=t.__data__;if(!du||i.length<uL-1)return i.push([n,e]),this.size=++t.size,this;t=this.__data__=new ea(i)}return t.set(n,e),this.size=t.size,this}function Hs(n){var e=this.__data__=new _r(n);this.size=e.size}Hs.prototype.clear=CP;Hs.prototype.delete=EP;Hs.prototype.get=TP;Hs.prototype.has=MP;Hs.prototype.set=lL;function fL(n,e){for(var t=-1,i=n==null?0:n.length;++t<i&&e(n[t],t,n)!==!1;);return n}var Yp=function(){try{var n=Ga(Object,"defineProperty");return n({},"",{}),n}catch{}}();function bb(n,e,t){e=="__proto__"&&Yp?Yp(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}var dL=Object.prototype,cL=dL.hasOwnProperty;function wb(n,e,t){var i=n[e];(!(cL.call(n,e)&&pb(i,t))||t===void 0&&!(e in n))&&bb(n,e,t)}function pd(n,e,t,i){var r=!t;t||(t={});for(var a=-1,o=e.length;++a<o;){var u=e[a],l=void 0;l===void 0&&(l=n[u]),r?bb(t,u,l):wb(t,u,l)}return t}function hL(n,e){for(var t=-1,i=Array(n);++t<n;)i[t]=e(t);return i}var gL="[object Arguments]";function Jp(n){return Ha(n)&&ja(n)==gL}var kb=Object.prototype,mL=kb.hasOwnProperty,pL=kb.propertyIsEnumerable,vL=Jp(function(){return arguments}())?Jp:function(n){return Ha(n)&&mL.call(n,"callee")&&!pL.call(n,"callee")},Tu=Array.isArray;function bL(){return!1}var _b=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qp=_b&&typeof module=="object"&&module&&!module.nodeType&&module,wL=Qp&&Qp.exports===_b,Xp=wL?qi.Buffer:void 0,kL=Xp?Xp.isBuffer:void 0,yb=kL||bL,_L=9007199254740991,yL=/^(?:0|[1-9]\d*)$/;function xL(n,e){var t=typeof n;return e=e??_L,!!e&&(t=="number"||t!="symbol"&&yL.test(n))&&n>-1&&n%1==0&&n<e}var SL=9007199254740991;function xb(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=SL}var CL="[object Arguments]",EL="[object Array]",TL="[object Boolean]",ML="[object Date]",FL="[object Error]",AL="[object Function]",PL="[object Map]",LL="[object Number]",RL="[object Object]",zL="[object RegExp]",$L="[object Set]",BL="[object String]",OL="[object WeakMap]",IL="[object ArrayBuffer]",DL="[object DataView]",NL="[object Float32Array]",jL="[object Float64Array]",HL="[object Int8Array]",VL="[object Int16Array]",GL="[object Int32Array]",WL="[object Uint8Array]",UL="[object Uint8ClampedArray]",qL="[object Uint16Array]",ZL="[object Uint32Array]",Rn={};Rn[NL]=Rn[jL]=Rn[HL]=Rn[VL]=Rn[GL]=Rn[WL]=Rn[UL]=Rn[qL]=Rn[ZL]=!0;Rn[CL]=Rn[EL]=Rn[IL]=Rn[TL]=Rn[DL]=Rn[ML]=Rn[FL]=Rn[AL]=Rn[PL]=Rn[LL]=Rn[RL]=Rn[zL]=Rn[$L]=Rn[BL]=Rn[OL]=!1;function KL(n){return Ha(n)&&xb(n.length)&&!!Rn[ja(n)]}function Ph(n){return function(e){return n(e)}}var Sb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ho=Sb&&typeof module=="object"&&module&&!module.nodeType&&module,YL=Ho&&Ho.exports===Sb,g1=YL&&cb.process,zs=function(){try{var n=Ho&&Ho.require&&Ho.require("util").types;return n||g1&&g1.binding&&g1.binding("util")}catch{}}(),e3=zs&&zs.isTypedArray,JL=e3?Ph(e3):KL,QL=Object.prototype,XL=QL.hasOwnProperty;function Cb(n,e){var t=Tu(n),i=!t&&vL(n),r=!t&&!i&&yb(n),a=!t&&!i&&!r&&JL(n),o=t||i||r||a,u=o?hL(n.length,String):[],l=u.length;for(var d in n)(e||XL.call(n,d))&&!(o&&(d=="length"||r&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||xL(d,l)))&&u.push(d);return u}var eR=Object.prototype;function Lh(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||eR;return n===t}var nR=gb(Object.keys,Object),tR=Object.prototype,iR=tR.hasOwnProperty;function rR(n){if(!Lh(n))return nR(n);var e=[];for(var t in Object(n))iR.call(n,t)&&t!="constructor"&&e.push(t);return e}function Eb(n){return n!=null&&xb(n.length)&&!vb(n)}function Rh(n){return Eb(n)?Cb(n):rR(n)}function aR(n,e){return n&&pd(e,Rh(e),n)}function sR(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var oR=Object.prototype,uR=oR.hasOwnProperty;function lR(n){if(!Eu(n))return sR(n);var e=Lh(n),t=[];for(var i in n)i=="constructor"&&(e||!uR.call(n,i))||t.push(i);return t}function zh(n){return Eb(n)?Cb(n,!0):lR(n)}function fR(n,e){return n&&pd(e,zh(e),n)}var Tb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,n3=Tb&&typeof module=="object"&&module&&!module.nodeType&&module,dR=n3&&n3.exports===Tb,t3=dR?qi.Buffer:void 0,i3=t3?t3.allocUnsafe:void 0;function cR(n,e){if(e)return n.slice();var t=n.length,i=i3?i3(t):new n.constructor(t);return n.copy(i),i}function Mb(n,e){var t=-1,i=n.length;for(e||(e=Array(i));++t<i;)e[t]=n[t];return e}function hR(n,e){for(var t=-1,i=n==null?0:n.length,r=0,a=[];++t<i;){var o=n[t];e(o,t,n)&&(a[r++]=o)}return a}function Fb(){return[]}var gR=Object.prototype,mR=gR.propertyIsEnumerable,r3=Object.getOwnPropertySymbols,$h=r3?function(n){return n==null?[]:(n=Object(n),hR(r3(n),function(e){return mR.call(n,e)}))}:Fb;function pR(n,e){return pd(n,$h(n),e)}function Ab(n,e){for(var t=-1,i=e.length,r=n.length;++t<i;)n[r+t]=e[t];return n}var vR=Object.getOwnPropertySymbols,Pb=vR?function(n){for(var e=[];n;)Ab(e,$h(n)),n=Ah(n);return e}:Fb;function bR(n,e){return pd(n,Pb(n),e)}function Lb(n,e,t){var i=e(n);return Tu(n)?i:Ab(i,t(n))}function wR(n){return Lb(n,Rh,$h)}function kR(n){return Lb(n,zh,Pb)}var S0=Ga(qi,"DataView"),C0=Ga(qi,"Promise"),E0=Ga(qi,"Set"),T0=Ga(qi,"WeakMap"),a3="[object Map]",_R="[object Object]",s3="[object Promise]",o3="[object Set]",u3="[object WeakMap]",l3="[object DataView]",yR=Va(S0),xR=Va(du),SR=Va(C0),CR=Va(E0),ER=Va(T0),hr=ja;(S0&&hr(new S0(new ArrayBuffer(1)))!=l3||du&&hr(new du)!=a3||C0&&hr(C0.resolve())!=s3||E0&&hr(new E0)!=o3||T0&&hr(new T0)!=u3)&&(hr=function(n){var e=ja(n),t=e==_R?n.constructor:void 0,i=t?Va(t):"";if(i)switch(i){case yR:return l3;case xR:return a3;case SR:return s3;case CR:return o3;case ER:return u3}return e});var TR=Object.prototype,MR=TR.hasOwnProperty;function FR(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&MR.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var f3=qi.Uint8Array;function Bh(n){var e=new n.constructor(n.byteLength);return new f3(e).set(new f3(n)),e}function AR(n,e){var t=e?Bh(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var PR=/\w*$/;function LR(n){var e=new n.constructor(n.source,PR.exec(n));return e.lastIndex=n.lastIndex,e}var d3=Jr?Jr.prototype:void 0,c3=d3?d3.valueOf:void 0;function RR(n){return c3?Object(c3.call(n)):{}}function zR(n,e){var t=e?Bh(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var $R="[object Boolean]",BR="[object Date]",OR="[object Map]",IR="[object Number]",DR="[object RegExp]",NR="[object Set]",jR="[object String]",HR="[object Symbol]",VR="[object ArrayBuffer]",GR="[object DataView]",WR="[object Float32Array]",UR="[object Float64Array]",qR="[object Int8Array]",ZR="[object Int16Array]",KR="[object Int32Array]",YR="[object Uint8Array]",JR="[object Uint8ClampedArray]",QR="[object Uint16Array]",XR="[object Uint32Array]";function ez(n,e,t){var i=n.constructor;switch(e){case VR:return Bh(n);case $R:case BR:return new i(+n);case GR:return AR(n,t);case WR:case UR:case qR:case ZR:case KR:case YR:case JR:case QR:case XR:return zR(n,t);case OR:return new i;case IR:case jR:return new i(n);case DR:return LR(n);case NR:return new i;case HR:return RR(n)}}var h3=Object.create,nz=function(){function n(){}return function(e){if(!Eu(e))return{};if(h3)return h3(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function tz(n){return typeof n.constructor=="function"&&!Lh(n)?nz(Ah(n)):{}}var iz="[object Map]";function rz(n){return Ha(n)&&hr(n)==iz}var g3=zs&&zs.isMap,az=g3?Ph(g3):rz,sz="[object Set]";function oz(n){return Ha(n)&&hr(n)==sz}var m3=zs&&zs.isSet,uz=m3?Ph(m3):oz,lz=1,fz=2,dz=4,Rb="[object Arguments]",cz="[object Array]",hz="[object Boolean]",gz="[object Date]",mz="[object Error]",zb="[object Function]",pz="[object GeneratorFunction]",vz="[object Map]",bz="[object Number]",$b="[object Object]",wz="[object RegExp]",kz="[object Set]",_z="[object String]",yz="[object Symbol]",xz="[object WeakMap]",Sz="[object ArrayBuffer]",Cz="[object DataView]",Ez="[object Float32Array]",Tz="[object Float64Array]",Mz="[object Int8Array]",Fz="[object Int16Array]",Az="[object Int32Array]",Pz="[object Uint8Array]",Lz="[object Uint8ClampedArray]",Rz="[object Uint16Array]",zz="[object Uint32Array]",An={};An[Rb]=An[cz]=An[Sz]=An[Cz]=An[hz]=An[gz]=An[Ez]=An[Tz]=An[Mz]=An[Fz]=An[Az]=An[vz]=An[bz]=An[$b]=An[wz]=An[kz]=An[_z]=An[yz]=An[Pz]=An[Lz]=An[Rz]=An[zz]=!0;An[mz]=An[zb]=An[xz]=!1;function Vo(n,e,t,i,r,a){var o,u=e&lz,l=e&fz,d=e&dz;if(o!==void 0)return o;if(!Eu(n))return n;var c=Tu(n);if(c){if(o=FR(n),!u)return Mb(n,o)}else{var m=hr(n),g=m==zb||m==pz;if(yb(n))return cR(n,u);if(m==$b||m==Rb||g&&!r){if(o=l||g?{}:tz(n),!u)return l?bR(n,fR(o,n)):pR(n,aR(o,n))}else{if(!An[m])return r?n:{};o=ez(n,m,u)}}a||(a=new Hs);var p=a.get(n);if(p)return p;a.set(n,o),uz(n)?n.forEach(function(x){o.add(Vo(x,e,t,x,n,a))}):az(n)&&n.forEach(function(x,y){o.set(y,Vo(x,e,t,y,n,a))});var w=d?l?kR:wR:l?zh:Rh,S=c?void 0:w(n);return fL(S||n,function(x,y){S&&(y=x,x=n[y]),wb(o,y,Vo(x,e,t,y,n,a))}),o}var $z=1,Bz=4;function Al(n){return Vo(n,$z|Bz)}var p3=Array.isArray,v3=Object.keys,Oz=Object.prototype.hasOwnProperty,Iz=typeof Element<"u";function M0(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){var t=p3(n),i=p3(e),r,a,o;if(t&&i){if(a=n.length,a!=e.length)return!1;for(r=a;r--!==0;)if(!M0(n[r],e[r]))return!1;return!0}if(t!=i)return!1;var u=n instanceof Date,l=e instanceof Date;if(u!=l)return!1;if(u&&l)return n.getTime()==e.getTime();var d=n instanceof RegExp,c=e instanceof RegExp;if(d!=c)return!1;if(d&&c)return n.toString()==e.toString();var m=v3(n);if(a=m.length,a!==v3(e).length)return!1;for(r=a;r--!==0;)if(!Oz.call(e,m[r]))return!1;if(Iz&&n instanceof Element&&e instanceof Element)return n===e;for(r=a;r--!==0;)if(o=m[r],!(o==="_owner"&&n.$$typeof)&&!M0(n[o],e[o]))return!1;return!0}return n!==n&&e!==e}var Dz=function(e,t){try{return M0(e,t)}catch(i){if(i.message&&i.message.match(/stack|recursion/i)||i.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",i.name,i.message),!1;throw i}};const ya=kr(Dz);var Nz=process.env.NODE_ENV==="production";function ys(n,e){if(!Nz){var t="Warning: "+e;typeof console<"u"&&console.warn(t);try{throw Error(t)}catch{}}}var jz=4;function b3(n){return Vo(n,jz)}function Bb(n,e){for(var t=-1,i=n==null?0:n.length,r=Array(i);++t<i;)r[t]=e(n[t],t,n);return r}var Hz="[object Symbol]";function Oh(n){return typeof n=="symbol"||Ha(n)&&ja(n)==Hz}var Vz="Expected a function";function Ih(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(Vz);var t=function(){var i=arguments,r=e?e.apply(this,i):i[0],a=t.cache;if(a.has(r))return a.get(r);var o=n.apply(this,i);return t.cache=a.set(r,o)||a,o};return t.cache=new(Ih.Cache||ea),t}Ih.Cache=ea;var Gz=500;function Wz(n){var e=Ih(n,function(i){return t.size===Gz&&t.clear(),i}),t=e.cache;return e}var Uz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qz=/\\(\\)?/g,Zz=Wz(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(Uz,function(t,i,r,a){e.push(r?a.replace(qz,"$1"):i||t)}),e});function Kz(n){if(typeof n=="string"||Oh(n))return n;var e=n+"";return e=="0"&&1/n==-1/0?"-0":e}var w3=Jr?Jr.prototype:void 0,k3=w3?w3.toString:void 0;function Ob(n){if(typeof n=="string")return n;if(Tu(n))return Bb(n,Ob)+"";if(Oh(n))return k3?k3.call(n):"";var e=n+"";return e=="0"&&1/n==-1/0?"-0":e}function Yz(n){return n==null?"":Ob(n)}function Ib(n){return Tu(n)?Bb(n,Kz):Oh(n)?[n]:Mb(Zz(Yz(n)))}var Db=Sh,Jz={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qz={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Nb={};Nb[Db.ForwardRef]=Jz;Nb[Db.Memo]=Qz;function Qn(){return Qn=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},Qn.apply(this,arguments)}function jb(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,a;for(a=0;a<i.length;a++)r=i[a],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}var vd=C.createContext(void 0);vd.displayName="FormikContext";vd.Provider;vd.Consumer;function Xz(){var n=C.useContext(vd);return n||(process.env.NODE_ENV!=="production"?ys(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):ys()),n}var wi=function(e){return typeof e=="function"},bd=function(e){return e!==null&&typeof e=="object"},e$=function(e){return String(Math.floor(Number(e)))===e},m1=function(e){return Object.prototype.toString.call(e)==="[object String]"},p1=function(e){return bd(e)&&wi(e.then)};function n$(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function jt(n,e,t,i){i===void 0&&(i=0);for(var r=Ib(e);n&&i<r.length;)n=n[r[i++]];return i!==r.length&&!n||n===void 0?t:n}function Ma(n,e,t){for(var i=b3(n),r=i,a=0,o=Ib(e);a<o.length-1;a++){var u=o[a],l=jt(n,o.slice(0,a+1));if(l&&(bd(l)||Array.isArray(l)))r=r[u]=b3(l);else{var d=o[a+1];r=r[u]=e$(d)&&Number(d)>=0?[]:{}}}return(a===0?n:r)[o[a]]===t?n:(t===void 0?delete r[o[a]]:r[o[a]]=t,a===0&&t===void 0&&delete i[o[a]],i)}function Hb(n,e,t,i){t===void 0&&(t=new WeakMap),i===void 0&&(i={});for(var r=0,a=Object.keys(n);r<a.length;r++){var o=a[r],u=n[o];bd(u)?t.get(u)||(t.set(u,!0),i[o]=Array.isArray(u)?[]:{},Hb(u,e,t,i[o])):i[o]=e}return i}function t$(n,e){switch(e.type){case"SET_VALUES":return Qn({},n,{values:e.payload});case"SET_TOUCHED":return Qn({},n,{touched:e.payload});case"SET_ERRORS":return ya(n.errors,e.payload)?n:Qn({},n,{errors:e.payload});case"SET_STATUS":return Qn({},n,{status:e.payload});case"SET_ISSUBMITTING":return Qn({},n,{isSubmitting:e.payload});case"SET_ISVALIDATING":return Qn({},n,{isValidating:e.payload});case"SET_FIELD_VALUE":return Qn({},n,{values:Ma(n.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return Qn({},n,{touched:Ma(n.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return Qn({},n,{errors:Ma(n.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return Qn({},n,e.payload);case"SET_FORMIK_STATE":return e.payload(n);case"SUBMIT_ATTEMPT":return Qn({},n,{touched:Hb(n.values,!0),isSubmitting:!0,submitCount:n.submitCount+1});case"SUBMIT_FAILURE":return Qn({},n,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Qn({},n,{isSubmitting:!1});default:return n}}var ba={},Pl={};function i$(n){var e=n.validateOnChange,t=e===void 0?!0:e,i=n.validateOnBlur,r=i===void 0?!0:i,a=n.validateOnMount,o=a===void 0?!1:a,u=n.isInitialValid,l=n.enableReinitialize,d=l===void 0?!1:l,c=n.onSubmit,m=jb(n,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),g=Qn({validateOnChange:t,validateOnBlur:r,validateOnMount:o,onSubmit:c},m),p=C.useRef(g.initialValues),w=C.useRef(g.initialErrors||ba),S=C.useRef(g.initialTouched||Pl),x=C.useRef(g.initialStatus),y=C.useRef(!1),T=C.useRef({});process.env.NODE_ENV!=="production"&&C.useEffect(function(){typeof u>"u"||(process.env.NODE_ENV!=="production"?ys(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):ys())},[]),C.useEffect(function(){return y.current=!0,function(){y.current=!1}},[]);var F=C.useState(0),N=F[1],L=C.useRef({values:Al(g.initialValues),errors:Al(g.initialErrors)||ba,touched:Al(g.initialTouched)||Pl,status:Al(g.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),j=L.current,X=C.useCallback(function(R){var H=L.current;L.current=t$(H,R),H!==L.current&&N(function(te){return te+1})},[]),re=C.useCallback(function(R,H){return new Promise(function(te,ue){var _e=g.validate(R,H);_e==null?te(ba):p1(_e)?_e.then(function(ge){te(ge||ba)},function(ge){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",ge),ue(ge)}):te(_e)})},[g.validate]),se=C.useCallback(function(R,H){var te=g.validationSchema,ue=wi(te)?te(H):te,_e=H&&ue.validateAt?ue.validateAt(H,R):a$(R,ue);return new Promise(function(ge,Ue){_e.then(function(){ge(ba)},function(ne){ne.name==="ValidationError"?ge(r$(ne)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",ne),Ue(ne))})})},[g.validationSchema]),Y=C.useCallback(function(R,H){return new Promise(function(te){return te(T.current[R].validate(H))})},[]),P=C.useCallback(function(R){var H=Object.keys(T.current).filter(function(ue){return wi(T.current[ue].validate)}),te=H.length>0?H.map(function(ue){return Y(ue,jt(R,ue))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(te).then(function(ue){return ue.reduce(function(_e,ge,Ue){return ge==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||ge&&(_e=Ma(_e,H[Ue],ge)),_e},{})})},[Y]),B=C.useCallback(function(R){return Promise.all([P(R),g.validationSchema?se(R):{},g.validate?re(R):{}]).then(function(H){var te=H[0],ue=H[1],_e=H[2],ge=x0.all([te,ue,_e],{arrayMerge:s$});return ge})},[g.validate,g.validationSchema,P,re,se]),D=ni(function(R){return R===void 0&&(R=j.values),X({type:"SET_ISVALIDATING",payload:!0}),B(R).then(function(H){return y.current&&(X({type:"SET_ISVALIDATING",payload:!1}),X({type:"SET_ERRORS",payload:H})),H})});C.useEffect(function(){o&&y.current===!0&&ya(p.current,g.initialValues)&&D(p.current)},[o,D]);var J=C.useCallback(function(R){var H=R&&R.values?R.values:p.current,te=R&&R.errors?R.errors:w.current?w.current:g.initialErrors||{},ue=R&&R.touched?R.touched:S.current?S.current:g.initialTouched||{},_e=R&&R.status?R.status:x.current?x.current:g.initialStatus;p.current=H,w.current=te,S.current=ue,x.current=_e;var ge=function(){X({type:"RESET_FORM",payload:{isSubmitting:!!R&&!!R.isSubmitting,errors:te,touched:ue,status:_e,values:H,isValidating:!!R&&!!R.isValidating,submitCount:R&&R.submitCount&&typeof R.submitCount=="number"?R.submitCount:0}})};if(g.onReset){var Ue=g.onReset(j.values,zn);p1(Ue)?Ue.then(ge):ge()}else ge()},[g.initialErrors,g.initialStatus,g.initialTouched,g.onReset]);C.useEffect(function(){y.current===!0&&!ya(p.current,g.initialValues)&&d&&(p.current=g.initialValues,J(),o&&D(p.current))},[d,g.initialValues,J,o,D]),C.useEffect(function(){d&&y.current===!0&&!ya(w.current,g.initialErrors)&&(w.current=g.initialErrors||ba,X({type:"SET_ERRORS",payload:g.initialErrors||ba}))},[d,g.initialErrors]),C.useEffect(function(){d&&y.current===!0&&!ya(S.current,g.initialTouched)&&(S.current=g.initialTouched||Pl,X({type:"SET_TOUCHED",payload:g.initialTouched||Pl}))},[d,g.initialTouched]),C.useEffect(function(){d&&y.current===!0&&!ya(x.current,g.initialStatus)&&(x.current=g.initialStatus,X({type:"SET_STATUS",payload:g.initialStatus}))},[d,g.initialStatus,g.initialTouched]);var O=ni(function(R){if(T.current[R]&&wi(T.current[R].validate)){var H=jt(j.values,R),te=T.current[R].validate(H);return p1(te)?(X({type:"SET_ISVALIDATING",payload:!0}),te.then(function(ue){return ue}).then(function(ue){X({type:"SET_FIELD_ERROR",payload:{field:R,value:ue}}),X({type:"SET_ISVALIDATING",payload:!1})})):(X({type:"SET_FIELD_ERROR",payload:{field:R,value:te}}),Promise.resolve(te))}else if(g.validationSchema)return X({type:"SET_ISVALIDATING",payload:!0}),se(j.values,R).then(function(ue){return ue}).then(function(ue){X({type:"SET_FIELD_ERROR",payload:{field:R,value:jt(ue,R)}}),X({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),W=C.useCallback(function(R,H){var te=H.validate;T.current[R]={validate:te}},[]),$=C.useCallback(function(R){delete T.current[R]},[]),q=ni(function(R,H){X({type:"SET_TOUCHED",payload:R});var te=H===void 0?r:H;return te?D(j.values):Promise.resolve()}),de=C.useCallback(function(R){X({type:"SET_ERRORS",payload:R})},[]),Q=ni(function(R,H){var te=wi(R)?R(j.values):R;X({type:"SET_VALUES",payload:te});var ue=H===void 0?t:H;return ue?D(te):Promise.resolve()}),_=C.useCallback(function(R,H){X({type:"SET_FIELD_ERROR",payload:{field:R,value:H}})},[]),pe=ni(function(R,H,te){X({type:"SET_FIELD_VALUE",payload:{field:R,value:H}});var ue=te===void 0?t:te;return ue?D(Ma(j.values,R,H)):Promise.resolve()}),Pe=C.useCallback(function(R,H){var te=H,ue=R,_e;if(!m1(R)){R.persist&&R.persist();var ge=R.target?R.target:R.currentTarget,Ue=ge.type,ne=ge.name,Te=ge.id,We=ge.value,en=ge.checked,hn=ge.outerHTML,ln=ge.options,gn=ge.multiple;te=H||ne||Te,!te&&process.env.NODE_ENV!=="production"&&_3({htmlContent:hn,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),ue=/number|range/.test(Ue)?(_e=parseFloat(We),isNaN(_e)?"":_e):/checkbox/.test(Ue)?u$(jt(j.values,te),en,We):ln&&gn?o$(ln):We}te&&pe(te,ue)},[pe,j.values]),we=ni(function(R){if(m1(R))return function(H){return Pe(H,R)};Pe(R)}),ve=ni(function(R,H,te){H===void 0&&(H=!0),X({type:"SET_FIELD_TOUCHED",payload:{field:R,value:H}});var ue=te===void 0?r:te;return ue?D(j.values):Promise.resolve()}),ye=C.useCallback(function(R,H){R.persist&&R.persist();var te=R.target,ue=te.name,_e=te.id,ge=te.outerHTML,Ue=H||ue||_e;!Ue&&process.env.NODE_ENV!=="production"&&_3({htmlContent:ge,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),ve(Ue,!0)},[ve]),ke=ni(function(R){if(m1(R))return function(H){return ye(H,R)};ye(R)}),be=C.useCallback(function(R){wi(R)?X({type:"SET_FORMIK_STATE",payload:R}):X({type:"SET_FORMIK_STATE",payload:function(){return R}})},[]),Fe=C.useCallback(function(R){X({type:"SET_STATUS",payload:R})},[]),Re=C.useCallback(function(R){X({type:"SET_ISSUBMITTING",payload:R})},[]),tn=ni(function(){return X({type:"SUBMIT_ATTEMPT"}),D().then(function(R){var H=R instanceof Error,te=!H&&Object.keys(R).length===0;if(te){var ue;try{if(ue=Sn(),ue===void 0)return}catch(_e){throw _e}return Promise.resolve(ue).then(function(_e){return y.current&&X({type:"SUBMIT_SUCCESS"}),_e}).catch(function(_e){if(y.current)throw X({type:"SUBMIT_FAILURE"}),_e})}else if(y.current&&(X({type:"SUBMIT_FAILURE"}),H))throw R})}),xe=ni(function(R){if(R&&R.preventDefault&&wi(R.preventDefault)&&R.preventDefault(),R&&R.stopPropagation&&wi(R.stopPropagation)&&R.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var H=n$();H!==null&&H instanceof HTMLButtonElement&&(H.attributes&&H.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?ys(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):ys()))}tn().catch(function(te){console.warn("Warning: An unhandled error was caught from submitForm()",te)})}),zn={resetForm:J,validateForm:D,validateField:O,setErrors:de,setFieldError:_,setFieldTouched:ve,setFieldValue:pe,setStatus:Fe,setSubmitting:Re,setTouched:q,setValues:Q,setFormikState:be,submitForm:tn},Sn=ni(function(){return c(j.values,zn)}),et=ni(function(R){R&&R.preventDefault&&wi(R.preventDefault)&&R.preventDefault(),R&&R.stopPropagation&&wi(R.stopPropagation)&&R.stopPropagation(),J()}),Cr=C.useCallback(function(R){return{value:jt(j.values,R),error:jt(j.errors,R),touched:!!jt(j.touched,R),initialValue:jt(p.current,R),initialTouched:!!jt(S.current,R),initialError:jt(w.current,R)}},[j.errors,j.touched,j.values]),nt=C.useCallback(function(R){return{setValue:function(te,ue){return pe(R,te,ue)},setTouched:function(te,ue){return ve(R,te,ue)},setError:function(te){return _(R,te)}}},[pe,ve,_]),G=C.useCallback(function(R){var H=bd(R),te=H?R.name:R,ue=jt(j.values,te),_e={name:te,value:ue,onChange:we,onBlur:ke};if(H){var ge=R.type,Ue=R.value,ne=R.as,Te=R.multiple;ge==="checkbox"?Ue===void 0?_e.checked=!!ue:(_e.checked=!!(Array.isArray(ue)&&~ue.indexOf(Ue)),_e.value=Ue):ge==="radio"?(_e.checked=ue===Ue,_e.value=Ue):ne==="select"&&Te&&(_e.value=_e.value||[],_e.multiple=!0)}return _e},[ke,we,j.values]),ee=C.useMemo(function(){return!ya(p.current,j.values)},[p.current,j.values]),ae=C.useMemo(function(){return typeof u<"u"?ee?j.errors&&Object.keys(j.errors).length===0:u!==!1&&wi(u)?u(g):u:j.errors&&Object.keys(j.errors).length===0},[u,ee,j.errors,g]),z=Qn({},j,{initialValues:p.current,initialErrors:w.current,initialTouched:S.current,initialStatus:x.current,handleBlur:ke,handleChange:we,handleReset:et,handleSubmit:xe,resetForm:J,setErrors:de,setFormikState:be,setFieldTouched:ve,setFieldValue:pe,setFieldError:_,setStatus:Fe,setSubmitting:Re,setTouched:q,setValues:Q,submitForm:tn,validateForm:D,validateField:O,isValid:ae,dirty:ee,unregisterField:$,registerField:W,getFieldProps:G,getFieldMeta:Cr,getFieldHelpers:nt,validateOnBlur:r,validateOnChange:t,validateOnMount:o});return z}function _3(n){var e=n.htmlContent,t=n.documentationAnchorLink,i=n.handlerName;console.warn("Warning: Formik called `"+i+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+e+`
|
|
83
83
|
Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+t+`
|
|
84
|
-
`)}function r$(n){var e={};if(n.inner){if(n.inner.length===0)return Ma(e,n.path,n.message);for(var r=n.inner,t=Array.isArray(r),i=0,r=t?r:r[Symbol.iterator]();;){var a;if(t){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var o=a;jt(e,o.path)||(e=Ma(e,o.path,o.message))}}return e}function a$(n,e,t,i){t===void 0&&(t=!1);var r=F0(n);return e[t?"validateSync":"validate"](r,{abortEarly:!1,context:r})}function F0(n){var e=Array.isArray(n)?[]:{};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)){var i=String(t);Array.isArray(n[i])===!0?e[i]=n[i].map(function(r){return Array.isArray(r)===!0||Zp(r)?F0(r):r!==""?r:void 0}):Zp(n[i])?e[i]=F0(n[i]):e[i]=n[i]!==""?n[i]:void 0}return e}function s$(n,e,t){var i=n.slice();return e.forEach(function(a,o){if(typeof i[o]>"u"){var u=t.clone!==!1,l=u&&t.isMergeableObject(a);i[o]=l?x0(Array.isArray(a)?[]:{},a,t):a}else t.isMergeableObject(a)?i[o]=x0(n[o],a,t):n.indexOf(a)===-1&&i.push(a)}),i}function o$(n){return Array.from(n).filter(function(e){return e.selected}).map(function(e){return e.value})}function u$(n,e,t){if(typeof n=="boolean")return!!e;var i=[],r=!1,a=-1;if(Array.isArray(n))i=n,a=n.indexOf(t),r=a>=0;else if(!t||t=="true"||t=="false")return!!e;return e&&t&&!r?i.concat(t):r?i.slice(0,a).concat(i.slice(a+1)):i}var l$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function ni(n){var e=C.useRef(n);return l$(function(){e.current=n}),C.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.current.apply(void 0,i)},[])}var f$=C.forwardRef(function(n,e){var t=n.action,i=jb(n,["action"]),r=t??"#",a=Xz(),o=a.handleReset,u=a.handleSubmit;return C.createElement("form",Qn({onSubmit:u,ref:e,onReset:o,action:r},i))});f$.displayName="Form";var Fa={},d$=Le&&Le.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Vb=Le&&Le.__awaiter||function(n,e,t,i){function r(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function u(c){try{d(i.next(c))}catch(m){o(m)}}function l(c){try{d(i.throw(c))}catch(m){o(m)}}function d(c){c.done?a(c.value):r(c.value).then(u,l)}d((i=i.apply(n,e||[])).next())})},Gb=Le&&Le.__generator||function(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(d){return function(c){return l([d,c])}}function l(d){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,r&&(a=d[0]&2?r.return:d[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,d[1])).done)return a;switch(r=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,r=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){t.label=d[1];break}if(d[0]===6&&t.label<a[1]){t.label=a[1],a=d;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(d);break}a[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(n,t)}catch(c){d=[6,c],r=0}finally{i=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}};Object.defineProperty(Fa,"__esModule",{value:!0});Fa.toFormikValidate=Ub=Fa.toFormikValidationSchema=Fa.ValidationError=void 0;var Wb=function(n){d$(e,n);function e(t){var i=n.call(this,t)||this;return i.name="ValidationError",i.inner=[],i}return e}(Error);Fa.ValidationError=Wb;function c$(n){var e=new Wb(n.message);return e.inner=n.errors.map(function(t){return{message:t.message,path:t.path.join(".")}}),e}function h$(n,e){return{validate:function(t){return Vb(this,void 0,void 0,function(){var i;return Gb(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.parseAsync(t,e)];case 1:return r.sent(),[3,3];case 2:throw i=r.sent(),c$(i);case 3:return[2]}})})}}}var Ub=Fa.toFormikValidationSchema=h$;function g$(n){for(var e={},t=0,i=n.errors;t<i.length;t++){var r=i[t];e[r.path.filter(Boolean).join(".")]=r.message}return e}function m$(n,e){var t=this;return function(i){return Vb(t,void 0,void 0,function(){var r;return Gb(this,function(a){switch(a.label){case 0:return[4,n.safeParseAsync(i,e)];case 1:return r=a.sent(),r.success?[2]:[2,g$(r.error)]}})})}}Fa.toFormikValidate=m$;const p$="_form_1haht_141",v$="_fieldset_1haht_145",b$="_fieldSetName_1haht_157",w$="_successBody_1haht_168",k$="_generalError_1haht_175",po={form:p$,fieldset:v$,fieldSetName:b$,successBody:w$,generalError:k$},_$=Ri.object({reasonText:Ri.string({required_error:"Bitte gib eine Begründung ein."}).min(5,"Bitte gib mindestens 5 und höchstens 5000 Zeichen ein.").max(5e3,"Bitte gib mindestens 5 und höchstens 5000 Zeichen ein."),reporterEmail:Ri.string({required_error:"Bitte gib eine gültige E-Mail-Adresse ein."}).email("Bitte gib eine gültige E-Mail-Adresse ein."),reporterFirstName:Ri.string({required_error:"Bitte gib einen gültigen Vornamen ein."}).min(2,"Bitte gib mindestens 2 und höchstens 40 Zeichen ein.").max(40,"Bitte gib mindestens 2 und höchstens 40 Zeichen ein."),reporterLastName:Ri.string({required_error:"Bitte gib einen gültigen Nachnamen ein."}).min(2,"Bitte gib mindestens 2 und höchstens 40 Zeichen ein.").max(40,"Bitte gib mindestens 2 und höchstens 40 Zeichen ein."),selectedReason:Ri.string({invalid_type_error:"Bitte wähle eine Option."}),selectedRole:Ri.string({required_error:"Bitte wähle eine Rolle."})}),qb=({complaintReasons:n,handleModalClick:e,open:t,reporter:i,subjectId:r})=>{const[a,o]=C.useState(!1),[u,l]=C.useState(!1),d=i$({initialValues:{errorText:"",reasonText:"",reporterEmail:i?i.email:"",reporterFirstName:i?i.firstname:"",reporterLastName:i?i.lastname:"",selectedReason:"",selectedRole:"myself"},onSubmit:(y,{setErrors:T,setSubmitting:F})=>{Nn.putComplaint({reason:y.selectedReason,report_origin:y.selectedRole,reporter_email:y.reporterEmail,reporter_firstname:y.reporterFirstName,reporter_id:i==null?void 0:i.id,reporter_lastname:y.reporterLastName,reporter_message:y.reasonText,subject_id:r,subject_type:"HoodMessage"},!i).then(N=>{o(!0)}).catch(N=>{l(!0),T({errorText:"Ein Fehler ist aufgetreten, bitte versuchen Sie es später noch einmal."}),console.log(N)}).finally(()=>{F(!1)})},validationSchema:Ub(_$)}),c=y=>{d.setFieldValue("selectedReason",y)},m=y=>{d.setFieldValue("selectedRole",y)},g=()=>{e()},p=()=>{d.handleSubmit()};if(!n)return null;let w="Inhalt melden",S=k.jsx(V.Form,{className:po.form,children:k.jsxs(V.Fieldset,{className:po.fieldset,children:[k.jsx(V.Typography,{type:"body-regular",children:"Warum hältst du den Inhalt für problematisch?"}),k.jsx(V.Select,{colorScheme:"dark",onChange:c,value:d.values.selectedReason,placeholder:"Bitte wähle einen Grund aus",errorMessage:d.touched.selectedReason?d.errors.selectedReason:void 0,children:n.map(y=>k.jsx("option",{value:y.value,children:y.label_de},y.value))}),k.jsx(V.TextAreaInput,{size:"medium",id:"reasonText",label:"Begründe die Meldung",colorScheme:"filled",value:d.values.reasonText,onChange:d.handleChange,onBlur:d.handleBlur,errorText:d.touched.reasonText?d.errors.reasonText:void 0}),k.jsx(V.Typography,{type:"body-regular",children:"Du erstellst diese Meldung als:"}),k.jsxs(V.Select,{colorScheme:"dark",onChange:m,value:d.values.selectedRole,errorMessage:d.touched.selectedRole?d.errors.selectedRole:void 0,children:[k.jsx("option",{value:"myself",children:"Privatperson"}),k.jsx("option",{value:"non_state_actor",children:"Hinweisgeber (Art. 22 DSA)"}),k.jsx("option",{value:"state_actor",children:"Staatliche Stelle"})]}),k.jsx(V.Divider,{}),!i&&k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:po.fieldSetName,children:[k.jsx(V.TextInput,{colorScheme:"filled",label:"Vorname",size:"large",id:"reporterFirstName",value:d.values.reporterFirstName,onChange:d.handleChange,onBlur:d.handleBlur,errorText:d.touched.reporterFirstName?d.errors.reporterFirstName:void 0}),k.jsx(V.TextInput,{colorScheme:"filled",label:"Nachname",size:"large",id:"reporterLastName",value:d.values.reporterLastName,onChange:d.handleChange,onBlur:d.handleBlur,errorText:d.touched.reporterLastName?d.errors.reporterLastName:void 0})]}),k.jsx(V.TextInput,{colorScheme:"filled",label:"E-Mail-Adresse",size:"large",id:"reporterEmail",value:d.values.reporterEmail,onChange:d.handleChange,onBlur:d.handleBlur,errorText:d.touched.reporterEmail?d.errors.reporterEmail:void 0}),d.errors.errorText&&k.jsx(V.Typography,{type:"body-semibold",className:po.generalError,children:d.errors.errorText})]}),k.jsx(V.Typography,{type:"detail-medium",children:'Mit Klick auf "Absenden" bestätigst du, in gutem Glauben davon überzeugt zu sein, dass die in der Meldung enthaltenen Angaben und Anführungen richtig und vollständig sind.'}),k.jsx(V.Typography,{type:"detail-medium",children:k.jsx(V.Markdown,{text:"Weitere Informationen findest du zum Meldeprozess und Beschwerdegründen in den [Beitragsrichtlinien](https://hilfe.nebenan.de/hc/de/articles/360013128074-Beitrags-und-Kommentarrichtlinien) und zur Verarbeitung personenbezogener Daten in den [Datenschutzbestimmungen](https://nebenan.de/privacy)."})})]})}),x;if(a||u){w=u?"Du hast diesen Inhalt bereits gemeldet.":"Vielen Dank für deine Meldung!";const y=u?"Was passiert im Hintergrund?":"Was passiert jetzt?";S=k.jsxs("div",{className:po.successBody,children:[k.jsx(V.Typography,{type:"h5",children:y}),k.jsx(V.Typography,{type:"body-regular",children:"Wir prüfen, ob ein Verstoß gegen unsere Regeln und Richtlinien oder gegen unsere Nutzungsbedingungen vorliegt. Wenn das der Fall ist, werden wir aktiv."})]})}else x=k.jsxs(k.Fragment,{children:[k.jsx(V.TextButton,{onClick:g,color:"blue",size:"large",text:"Schließen"}),k.jsx(V.ButtonPrimary,{onClick:p,text:"Absenden",color:"highlight"})]});return k.jsx("div",{children:k.jsx(lu,{children:k.jsx(V.Modal,{open:t,onClose:g,modalBody:S,headerTitle:w,modalFooter:x})})})},y$="_modalBody_bj6x7_141",x$="_sheetFooter_bj6x7_153",y3={modalBody:y$,sheetFooter:x$},S$=({cancelText:n="Abbrechen",confirmText:e="Bestätigen",content:t,handleCancel:i,handleConfirm:r,primaryCtaColor:a="primary",title:o})=>{const u=()=>k.jsx(V.CardHeader,{headline:o,as:"h3",rightElement:k.jsx(V.IconButton,{ariaLabel:"close-sheet",onClick:i,icon:"cross",size:"small"})}),l=()=>k.jsxs(k.Fragment,{children:[k.jsx(V.TextButton,{onClick:i,color:"blue",size:"large",text:n}),k.jsx(V.ButtonPrimary,{color:a,onClick:r,size:"medium",text:e})]}),d=k.jsxs("footer",{className:y3.sheetFooter,children:[k.jsx(V.ButtonPrimary,{color:a,fullWidth:!0,onClick:r,size:"medium",text:e}),k.jsx(V.TextButton,{color:"blue",onClick:i,size:"large",text:n})]});return Wr()?k.jsx(V.BottomSheet,{open:!0,onClose:i,sheetBody:t,sheetHeader:u(),footer:d}):k.jsx(V.Modal,{open:!0,onClose:i,modalBody:k.jsx("div",{className:y3.modalBody,children:t}),headerTitle:o,modalFooter:l()})},C$="_root_1bk4f_141",E$="_textButton_1bk4f_148",x3={root:C$,textButton:E$},T$=({alt:n,ariaLabel:e,onClick:t,src:i,text:r})=>k.jsxs("div",{className:x3.root,children:[k.jsx(V.Thumbnail,{src:i,shape:"circular",size:"40",alt:n}),k.jsx(V.Button,{className:x3.textButton,onClick:t,children:k.jsx(V.Typography,{type:"body-regular",as:"span",children:r})}),k.jsx(V.IconButton,{icon:"pencil",size:"small",onClick:t,variant:"green",ariaLabel:e})]}),M$="_container_1raex_141",F$="_sidebarLeft_1raex_149",A$="_navBar_1raex_153",P$="_mainContent_1raex_159",L$="_sidebarRight_1raex_165",vo={container:M$,sidebarLeft:F$,navBar:A$,mainContent:P$,sidebarRight:L$},R$=({children:n,left:e,navbar:t,right:i})=>k.jsxs("div",{className:vo.container,children:[k.jsx("nav",{className:vo.navBar,children:t}),e&&k.jsx("aside",{className:vo.sidebarLeft,children:e}),k.jsx("main",{className:vo.mainContent,children:n}),i&&k.jsx("aside",{className:vo.sidebarRight,children:i})]}),z$=({name:n,onSearchSubmit:e,placeholder:t,ref:i})=>{const[r,a]=C.useState(""),{getInputProps:o}=lA({onChange:c=>{a(c.target.value)},value:r}),u=o(),l=c=>{c.preventDefault(),!d&&(e(r),a(""))},d=!r||r.trim().length<2;return k.jsx("form",{onSubmit:l,children:k.jsx(V.TextInput,{...u,size:"small",id:n,label:t,name:n,colorScheme:"filled",iconButton:{ariaLabelledBy:"searchButton",icon:"search",onClick:l,size:"small",type:"submit"},charLimit:50,showInputHints:!1,ref:i})})},$$="_navbarWrapper_1yqv3_141",B$="_navbar_1yqv3_141",O$="_navbar__left_1yqv3_155",I$="_navbar__right_1yqv3_158",D$="_background_1yqv3_162",bo={navbarWrapper:$$,navbar:B$,navbar__left:O$,navbar__right:I$,background:D$},N$=({left:n,right:e})=>k.jsxs("div",{className:bo.navbarWrapper,children:[k.jsxs("div",{className:bo.navbar,children:[k.jsx("div",{className:bo.navbar__left,children:n}),k.jsx("div",{className:bo.navbar__right,children:e})]}),k.jsx("div",{className:bo.background})]}),j$="Suchen",H$="Oh nein!",V$="Das Emoji konnte nicht gefunden werden",G$="Wähle ein Emoji…",W$="Füge ein benutzerdefiniertes Emoji hinzu",U$={activity:"Aktivität",custom:"Benutzerdefiniert",flags:"Flaggen",foods:"Essen & Trinken",frequent:"Oft genutzt",nature:"Tiere & Natur",objects:"Objekte",people:"Smileys & Personen",places:"Reisen & Orte",search:"Suchergebnisse",symbols:"Symbole"},q$={1:"Standard",2:"Hell",3:"Mittelhell",4:"Mittel",5:"Mitteldunkel",6:"Dunkel",choose:"Wähle eine Standard-Hautfarbe"},Z$={search:j$,search_no_results_1:H$,search_no_results_2:V$,pick:G$,add_custom:W$,categories:U$,skins:q$};function Zb(n){return n&&n.__esModule?n.default:n}function ai(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var wd,Ne,Kb,Go,Yb,S3,$f={},Jb=[],K$=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Hr(n,e){for(var t in e)n[t]=e[t];return n}function Qb(n){var e=n.parentNode;e&&e.removeChild(n)}function A0(n,e,t){var i,r,a,o={};for(a in e)a=="key"?i=e[a]:a=="ref"?r=e[a]:o[a]=e[a];if(arguments.length>2&&(o.children=arguments.length>3?wd.call(arguments,2):t),typeof n=="function"&&n.defaultProps!=null)for(a in n.defaultProps)o[a]===void 0&&(o[a]=n.defaultProps[a]);return cf(n,o,i,r,null)}function cf(n,e,t,i,r){var a={type:n,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Kb};return r==null&&Ne.vnode!=null&&Ne.vnode(a),a}function sr(){return{current:null}}function $s(n){return n.children}function Ni(n,e){this.props=n,this.context=e}function Bs(n,e){if(e==null)return n.__?Bs(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null)return t.__e;return typeof n.type=="function"?Bs(n):null}function Xb(n){var e,t;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null){n.__e=n.__c.base=t.__e;break}return Xb(n)}}function C3(n){(!n.__d&&(n.__d=!0)&&Go.push(n)&&!Bf.__r++||S3!==Ne.debounceRendering)&&((S3=Ne.debounceRendering)||Yb)(Bf)}function Bf(){for(var n;Bf.__r=Go.length;)n=Go.sort(function(e,t){return e.__v.__b-t.__v.__b}),Go=[],n.some(function(e){var t,i,r,a,o,u;e.__d&&(o=(a=(t=e).__v).__e,(u=t.__P)&&(i=[],(r=Hr({},a)).__v=a.__v+1,Dh(u,a,r,t.__n,u.ownerSVGElement!==void 0,a.__h!=null?[o]:null,i,o??Bs(a),a.__h),i5(i,a),a.__e!=o&&Xb(a)))})}function e5(n,e,t,i,r,a,o,u,l,d){var c,m,g,p,w,S,x,y=i&&i.__k||Jb,T=y.length;for(t.__k=[],c=0;c<e.length;c++)if((p=t.__k[c]=(p=e[c])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?cf(null,p,null,null,p):Array.isArray(p)?cf($s,{children:p},null,null,null):p.__b>0?cf(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=t,p.__b=t.__b+1,(g=y[c])===null||g&&p.key==g.key&&p.type===g.type)y[c]=void 0;else for(m=0;m<T;m++){if((g=y[m])&&p.key==g.key&&p.type===g.type){y[m]=void 0;break}g=null}Dh(n,p,g=g||$f,r,a,o,u,l,d),w=p.__e,(m=p.ref)&&g.ref!=m&&(x||(x=[]),g.ref&&x.push(g.ref,null,p),x.push(m,p.__c||w,p)),w!=null?(S==null&&(S=w),typeof p.type=="function"&&p.__k===g.__k?p.__d=l=n5(p,l,n):l=t5(n,p,g,y,w,l),typeof t.type=="function"&&(t.__d=l)):l&&g.__e==l&&l.parentNode!=n&&(l=Bs(g))}for(t.__e=S,c=T;c--;)y[c]!=null&&(typeof t.type=="function"&&y[c].__e!=null&&y[c].__e==t.__d&&(t.__d=Bs(i,c+1)),a5(y[c],y[c]));if(x)for(c=0;c<x.length;c++)r5(x[c],x[++c],x[++c])}function n5(n,e,t){for(var i,r=n.__k,a=0;r&&a<r.length;a++)(i=r[a])&&(i.__=n,e=typeof i.type=="function"?n5(i,e,t):t5(t,i,i,r,i.__e,e));return e}function Of(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){Of(t,e)}):e.push(n)),e}function t5(n,e,t,i,r,a){var o,u,l;if(e.__d!==void 0)o=e.__d,e.__d=void 0;else if(t==null||r!=a||r.parentNode==null)e:if(a==null||a.parentNode!==n)n.appendChild(r),o=null;else{for(u=a,l=0;(u=u.nextSibling)&&l<i.length;l+=2)if(u==r)break e;n.insertBefore(r,a),o=a}return o!==void 0?o:r.nextSibling}function Y$(n,e,t,i,r){var a;for(a in t)a==="children"||a==="key"||a in e||If(n,a,null,t[a],i);for(a in e)r&&typeof e[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||t[a]===e[a]||If(n,a,e[a],t[a],i)}function E3(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||K$.test(e)?t:t+"px"}function If(n,e,t,i,r){var a;e:if(e==="style")if(typeof t=="string")n.style.cssText=t;else{if(typeof i=="string"&&(n.style.cssText=i=""),i)for(e in i)t&&e in t||E3(n.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||E3(n.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")a=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+a]=t,t?i||n.addEventListener(e,a?M3:T3,a):n.removeEventListener(e,a?M3:T3,a);else if(e!=="dangerouslySetInnerHTML"){if(r)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in n)try{n[e]=t??"";break e}catch{}typeof t=="function"||(t!=null&&(t!==!1||e[0]==="a"&&e[1]==="r")?n.setAttribute(e,t):n.removeAttribute(e))}}function T3(n){this.l[n.type+!1](Ne.event?Ne.event(n):n)}function M3(n){this.l[n.type+!0](Ne.event?Ne.event(n):n)}function Dh(n,e,t,i,r,a,o,u,l){var d,c,m,g,p,w,S,x,y,T,F,N=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(l=t.__h,u=e.__e=t.__e,e.__h=null,a=[u]),(d=Ne.__b)&&d(e);try{e:if(typeof N=="function"){if(x=e.props,y=(d=N.contextType)&&i[d.__c],T=d?y?y.props.value:d.__:i,t.__c?S=(c=e.__c=t.__c).__=c.__E:("prototype"in N&&N.prototype.render?e.__c=c=new N(x,T):(e.__c=c=new Ni(x,T),c.constructor=N,c.render=Q$),y&&y.sub(c),c.props=x,c.state||(c.state={}),c.context=T,c.__n=i,m=c.__d=!0,c.__h=[]),c.__s==null&&(c.__s=c.state),N.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Hr({},c.__s)),Hr(c.__s,N.getDerivedStateFromProps(x,c.__s))),g=c.props,p=c.state,m)N.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(N.getDerivedStateFromProps==null&&x!==g&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(x,T),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(x,c.__s,T)===!1||e.__v===t.__v){c.props=x,c.state=c.__s,e.__v!==t.__v&&(c.__d=!1),c.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(L){L&&(L.__=e)}),c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(x,c.__s,T),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(g,p,w)})}c.context=T,c.props=x,c.state=c.__s,(d=Ne.__r)&&d(e),c.__d=!1,c.__v=e,c.__P=n,d=c.render(c.props,c.state,c.context),c.state=c.__s,c.getChildContext!=null&&(i=Hr(Hr({},i),c.getChildContext())),m||c.getSnapshotBeforeUpdate==null||(w=c.getSnapshotBeforeUpdate(g,p)),F=d!=null&&d.type===$s&&d.key==null?d.props.children:d,e5(n,Array.isArray(F)?F:[F],e,t,i,r,a,o,u,l),c.base=e.__e,e.__h=null,c.__h.length&&o.push(c),S&&(c.__E=c.__=null),c.__e=!1}else a==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=J$(t.__e,e,t,i,r,a,o,l);(d=Ne.diffed)&&d(e)}catch(L){e.__v=null,(l||a!=null)&&(e.__e=u,e.__h=!!l,a[a.indexOf(u)]=null),Ne.__e(L,e,t)}}function i5(n,e){Ne.__c&&Ne.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(i){i.call(t)})}catch(i){Ne.__e(i,t.__v)}})}function J$(n,e,t,i,r,a,o,u){var l,d,c,m=t.props,g=e.props,p=e.type,w=0;if(p==="svg"&&(r=!0),a!=null){for(;w<a.length;w++)if((l=a[w])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){n=l,a[w]=null;break}}if(n==null){if(p===null)return document.createTextNode(g);n=r?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,g.is&&g),a=null,u=!1}if(p===null)m===g||u&&n.data===g||(n.data=g);else{if(a=a&&wd.call(n.childNodes),d=(m=t.props||$f).dangerouslySetInnerHTML,c=g.dangerouslySetInnerHTML,!u){if(a!=null)for(m={},w=0;w<n.attributes.length;w++)m[n.attributes[w].name]=n.attributes[w].value;(c||d)&&(c&&(d&&c.__html==d.__html||c.__html===n.innerHTML)||(n.innerHTML=c&&c.__html||""))}if(Y$(n,g,m,r,u),c)e.__k=[];else if(w=e.props.children,e5(n,Array.isArray(w)?w:[w],e,t,i,r&&p!=="foreignObject",a,o,a?a[0]:t.__k&&Bs(t,0),u),a!=null)for(w=a.length;w--;)a[w]!=null&&Qb(a[w]);u||("value"in g&&(w=g.value)!==void 0&&(w!==m.value||w!==n.value||p==="progress"&&!w)&&If(n,"value",w,m.value,!1),"checked"in g&&(w=g.checked)!==void 0&&w!==n.checked&&If(n,"checked",w,m.checked,!1))}return n}function r5(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(i){Ne.__e(i,t)}}function a5(n,e,t){var i,r;if(Ne.unmount&&Ne.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||r5(i,null,e)),(i=n.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){Ne.__e(a,e)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&a5(i[r],e,typeof n.type!="function");t||n.__e==null||Qb(n.__e),n.__e=n.__d=void 0}function Q$(n,e,t){return this.constructor(n,t)}function s5(n,e,t){var i,r,a;Ne.__&&Ne.__(n,e),r=(i=typeof t=="function")?null:t&&t.__k||e.__k,a=[],Dh(e,n=(!i&&t||e).__k=A0($s,null,[n]),r||$f,$f,e.ownerSVGElement!==void 0,!i&&t?[t]:r?null:e.firstChild?wd.call(e.childNodes):null,a,!i&&t?t:r?r.__e:e.firstChild,i),i5(a,n)}wd=Jb.slice,Ne={__e:function(n,e){for(var t,i,r;e=e.__;)if((t=e.__c)&&!t.__)try{if((i=t.constructor)&&i.getDerivedStateFromError!=null&&(t.setState(i.getDerivedStateFromError(n)),r=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(n),r=t.__d),r)return t.__E=t}catch(a){n=a}throw n}},Kb=0,Ni.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Hr({},this.state),typeof n=="function"&&(n=n(Hr({},t),this.props)),n&&Hr(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),C3(this))},Ni.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),C3(this))},Ni.prototype.render=$s,Go=[],Yb=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Bf.__r=0;var X$=0;function ce(n,e,t,i,r){var a,o,u={};for(o in e)o=="ref"?a=e[o]:u[o]=e[o];var l={type:n,props:u,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--X$,__source:i,__self:r};if(typeof n=="function"&&(a=n.defaultProps))for(o in a)u[o]===void 0&&(u[o]=a[o]);return Ne.vnode&&Ne.vnode(l),l}function eB(n,e){try{window.localStorage[`emoji-mart.${n}`]=JSON.stringify(e)}catch{}}function nB(n){try{const e=window.localStorage[`emoji-mart.${n}`];if(e)return JSON.parse(e)}catch{}}var Ur={set:eB,get:nB};const v1=new Map,tB=[{v:15,emoji:"🫨"},{v:14,emoji:"🫠"},{v:13.1,emoji:"😶🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];function iB(){for(const{v:n,emoji:e}of tB)if(o5(e))return n}function rB(){return!o5("🇨🇦")}function o5(n){if(v1.has(n))return v1.get(n);const e=aB(n);return v1.set(n,e),e}const aB=(()=>{let n=null;try{navigator.userAgent.includes("jsdom")||(n=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!n)return()=>!1;const e=25,t=20,i=Math.floor(e/2);return n.font=i+"px Arial, Sans-Serif",n.textBaseline="top",n.canvas.width=t*2,n.canvas.height=e,r=>{n.clearRect(0,0,t*2,e),n.fillStyle="#FF0000",n.fillText(r,0,22),n.fillStyle="#0000FF",n.fillText(r,t,22);const a=n.getImageData(0,0,t,e).data,o=a.length;let u=0;for(;u<o&&!a[u+3];u+=4);if(u>=o)return!1;const l=t+u/4%t,d=Math.floor(u/4/t),c=n.getImageData(l,d,1,1).data;return!(a[u]!==c[0]||a[u+2]!==c[2]||n.measureText(r).width>=t)}})();var F3={latestVersion:iB,noCountryFlags:rB};const P0=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let rt=null;function sB(n){rt||(rt=Ur.get("frequently")||{});const e=n.id||n;e&&(rt[e]||(rt[e]=0),rt[e]+=1,Ur.set("last",e),Ur.set("frequently",rt))}function oB({maxFrequentRows:n,perLine:e}){if(!n)return[];rt||(rt=Ur.get("frequently"));let t=[];if(!rt){rt={};for(let a in P0.slice(0,e)){const o=P0[a];rt[o]=e-a,t.push(o)}return t}const i=n*e,r=Ur.get("last");for(let a in rt)t.push(a);if(t.sort((a,o)=>{const u=rt[o],l=rt[a];return u==l?a.localeCompare(o):u-l}),t.length>i){const a=t.slice(i);t=t.slice(0,i);for(let o of a)o!=r&&delete rt[o];r&&t.indexOf(r)==-1&&(delete rt[t[t.length-1]],t.splice(-1,1,r)),Ur.set("frequently",rt)}return t}var u5={add:sB,get:oB,DEFAULTS:P0},l5={};l5=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var gr={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let ft=null,sn=null;const b1={};async function A3(n){if(b1[n])return b1[n];const t=await(await fetch(n)).json();return b1[n]=t,t}let w1=null,f5=null,d5=!1;function Mu(n,{caller:e}={}){return w1||(w1=new Promise(t=>{f5=t})),n?uB(n):e&&!d5&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),w1}async function uB(n){d5=!0;let{emojiVersion:e,set:t,locale:i}=n;if(e||(e=gr.emojiVersion.value),t||(t=gr.set.value),i||(i=gr.locale.value),sn)sn.categories=sn.categories.filter(l=>!l.name);else{sn=(typeof n.data=="function"?await n.data():n.data)||await A3(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${t}.json`),sn.emoticons={},sn.natives={},sn.categories.unshift({id:"frequent",emojis:[]});for(const l in sn.aliases){const d=sn.aliases[l],c=sn.emojis[d];c&&(c.aliases||(c.aliases=[]),c.aliases.push(l))}sn.originalCategories=sn.categories}if(ft=(typeof n.i18n=="function"?await n.i18n():n.i18n)||(i=="en"?Zb(l5):await A3(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),n.custom)for(let l in n.custom){l=parseInt(l);const d=n.custom[l],c=n.custom[l-1];if(!(!d.emojis||!d.emojis.length)){d.id||(d.id=`custom_${l+1}`),d.name||(d.name=ft.categories.custom),c&&!d.icon&&(d.target=c.target||c),sn.categories.push(d);for(const m of d.emojis)sn.emojis[m.id]=m}}n.categories&&(sn.categories=sn.originalCategories.filter(l=>n.categories.indexOf(l.id)!=-1).sort((l,d)=>{const c=n.categories.indexOf(l.id),m=n.categories.indexOf(d.id);return c-m}));let r=null,a=null;t=="native"&&(r=F3.latestVersion(),a=n.noCountryFlags||F3.noCountryFlags());let o=sn.categories.length,u=!1;for(;o--;){const l=sn.categories[o];if(l.id=="frequent"){let{maxFrequentRows:m,perLine:g}=n;m=m>=0?m:gr.maxFrequentRows.value,g||(g=gr.perLine.value),l.emojis=u5.get({maxFrequentRows:m,perLine:g})}if(!l.emojis||!l.emojis.length){sn.categories.splice(o,1);continue}const{categoryIcons:d}=n;if(d){const m=d[l.id];m&&!l.icon&&(l.icon=m)}let c=l.emojis.length;for(;c--;){const m=l.emojis[c],g=m.id?m:sn.emojis[m],p=()=>{l.emojis.splice(c,1)};if(!g||n.exceptEmojis&&n.exceptEmojis.includes(g.id)){p();continue}if(r&&g.version>r){p();continue}if(a&&l.id=="flags"&&!hB.includes(g.id)){p();continue}if(!g.search){if(u=!0,g.search=","+[[g.id,!1],[g.name,!0],[g.keywords,!1],[g.emoticons,!1]].map(([S,x])=>{if(S)return(Array.isArray(S)?S:[S]).map(y=>(x?y.split(/[-|_|\s]+/):[y]).map(T=>T.toLowerCase())).flat()}).flat().filter(S=>S&&S.trim()).join(","),g.emoticons)for(const S of g.emoticons)sn.emoticons[S]||(sn.emoticons[S]=g.id);let w=0;for(const S of g.skins){if(!S)continue;w++;const{native:x}=S;x&&(sn.natives[x]=g.id,g.search+=`,${x}`);const y=w==1?"":`:skin-tone-${w}:`;S.shortcodes=`:${g.id}:${y}`}}}}u&&Aa.reset(),f5()}function c5(n,e,t){n||(n={});const i={};for(let r in e)i[r]=h5(r,n,e,t);return i}function h5(n,e,t,i){const r=t[n];let a=i&&i.getAttribute(n)||(e[n]!=null&&e[n]!=null?e[n]:null);return r&&(a!=null&&r.value&&typeof r.value!=typeof a&&(typeof r.value=="boolean"?a=a!="false":a=r.value.constructor(a)),r.transform&&a&&(a=r.transform(a)),(a==null||r.choices&&r.choices.indexOf(a)==-1)&&(a=r.value)),a}const lB=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let L0=null;function fB(n){return n.id?n:sn.emojis[n]||sn.emojis[sn.aliases[n]]||sn.emojis[sn.natives[n]]}function dB(){L0=null}async function cB(n,{maxResults:e,caller:t}={}){if(!n||!n.trim().length)return null;e||(e=90),await Mu(null,{caller:t||"SearchIndex.search"});const i=n.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((u,l,d)=>u.trim()&&d.indexOf(u)==l);if(!i.length)return;let r=L0||(L0=Object.values(sn.emojis)),a,o;for(const u of i){if(!r.length)break;a=[],o={};for(const l of r){if(!l.search)continue;const d=l.search.indexOf(`,${u}`);d!=-1&&(a.push(l),o[l.id]||(o[l.id]=0),o[l.id]+=l.id==u?0:d+1)}r=a}return a.length<2||(a.sort((u,l)=>{const d=o[u.id],c=o[l.id];return d==c?u.id.localeCompare(l.id):d-c}),a.length>e&&(a=a.slice(0,e))),a}var Aa={search:cB,get:fB,reset:dB,SHORTCODES_REGEX:lB};const hB=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function gB(n,e){return Array.isArray(n)&&Array.isArray(e)&&n.length===e.length&&n.every((t,i)=>t==e[i])}async function mB(n=1){for(let e in[...Array(n).keys()])await new Promise(requestAnimationFrame)}function pB(n,{skinIndex:e=0}={}){const t=n.skins[e]||(e=0,n.skins[e]),i={id:n.id,name:n.name,native:t.native,unified:t.unified,keywords:n.keywords,shortcodes:t.shortcodes||n.shortcodes};return n.skins.length>1&&(i.skin=e+1),t.src&&(i.src=t.src),n.aliases&&n.aliases.length&&(i.aliases=n.aliases),n.emoticons&&n.emoticons.length&&(i.emoticons=n.emoticons),i}const vB={activity:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ce("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:ce("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ce("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ce("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ce("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),ce("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ce("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),ce("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:ce("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ce("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),ce("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:ce("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ce("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),ce("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ce("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),ce("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ce("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},bB={loupe:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:ce("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:ce("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var Df={categories:vB,search:bB};function R0(n){let{id:e,skin:t,emoji:i}=n;if(n.shortcodes){const u=n.shortcodes.match(Aa.SHORTCODES_REGEX);u&&(e=u[1],u[2]&&(t=u[2]))}if(i||(i=Aa.get(e||n.native)),!i)return n.fallback;const r=i.skins[t-1]||i.skins[0],a=r.src||(n.set!="native"&&!n.spritesheet?typeof n.getImageURL=="function"?n.getImageURL(n.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${n.set}@15.0.1/img/${n.set}/64/${r.unified}.png`:void 0),o=typeof n.getSpritesheetURL=="function"?n.getSpritesheetURL(n.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${n.set}@15.0.1/img/${n.set}/sheets-256/64.png`;return ce("span",{class:"emoji-mart-emoji","data-emoji-set":n.set,children:a?ce("img",{style:{maxWidth:n.size||"1em",maxHeight:n.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:a}):n.set=="native"?ce("span",{style:{fontSize:n.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):ce("span",{style:{display:"block",width:n.size,height:n.size,backgroundImage:`url(${o})`,backgroundSize:`${100*sn.sheet.cols}% ${100*sn.sheet.rows}%`,backgroundPosition:`${100/(sn.sheet.cols-1)*r.x}% ${100/(sn.sheet.rows-1)*r.y}%`}})})}const wB=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class g5 extends wB{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let t in e)this.attributeChangedCallback(t,null,e[t])}attributeChangedCallback(e,t,i){if(!this.component)return;const r=h5(e,{[e]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:r}):(this.component.props[e]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let t=null;const i=e.parent||(t=e.ref&&e.ref.current);t&&(t.innerHTML=""),i&&i.appendChild(this)}}}class kB extends g5{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const t=document.createElement("style");t.textContent=e,this.shadowRoot.insertBefore(t,this.shadowRoot.firstChild)}constructor(e,{styles:t}={}){super(e),this.setShadow(),this.injectStyles(t)}}var m5={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:n=>/\D/.test(n)?n:`${n}px`},set:gr.set,skin:gr.skin};class p5 extends g5{async connectedCallback(){const e=c5(this.props,m5,this);e.element=this,e.ref=t=>{this.component=t},await Mu(),!this.disconnected&&s5(ce(R0,{...e}),this)}constructor(e){super(e)}}ai(p5,"Props",m5);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",p5);var P3,z0=[],L3=Ne.__b,R3=Ne.__r,z3=Ne.diffed,$3=Ne.__c,B3=Ne.unmount;function _B(){var n;for(z0.sort(function(e,t){return e.__v.__b-t.__v.__b});n=z0.pop();)if(n.__P)try{n.__H.__h.forEach(hf),n.__H.__h.forEach($0),n.__H.__h=[]}catch(e){n.__H.__h=[],Ne.__e(e,n.__v)}}Ne.__b=function(n){L3&&L3(n)},Ne.__r=function(n){R3&&R3(n);var e=n.__c.__H;e&&(e.__h.forEach(hf),e.__h.forEach($0),e.__h=[])},Ne.diffed=function(n){z3&&z3(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(z0.push(e)!==1&&P3===Ne.requestAnimationFrame||((P3=Ne.requestAnimationFrame)||function(t){var i,r=function(){clearTimeout(a),O3&&cancelAnimationFrame(i),setTimeout(t)},a=setTimeout(r,100);O3&&(i=requestAnimationFrame(r))})(_B))},Ne.__c=function(n,e){e.some(function(t){try{t.__h.forEach(hf),t.__h=t.__h.filter(function(i){return!i.__||$0(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],Ne.__e(i,t.__v)}}),$3&&$3(n,e)},Ne.unmount=function(n){B3&&B3(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{hf(i)}catch(r){e=r}}),e&&Ne.__e(e,t.__v))};var O3=typeof requestAnimationFrame=="function";function hf(n){var e=n.__c;typeof e=="function"&&(n.__c=void 0,e())}function $0(n){n.__c=n.__()}function yB(n,e){for(var t in e)n[t]=e[t];return n}function I3(n,e){for(var t in n)if(t!=="__source"&&!(t in e))return!0;for(var i in e)if(i!=="__source"&&n[i]!==e[i])return!0;return!1}function Nf(n){this.props=n}(Nf.prototype=new Ni).isPureReactComponent=!0,Nf.prototype.shouldComponentUpdate=function(n,e){return I3(this.props,n)||I3(this.state,e)};var D3=Ne.__b;Ne.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),D3&&D3(n)};var xB=Ne.__e;Ne.__e=function(n,e,t){if(n.then){for(var i,r=e;r=r.__;)if((i=r.__c)&&i.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),i.__c(n,e)}xB(n,e,t)};var N3=Ne.unmount;function k1(){this.__u=0,this.t=null,this.__b=null}function v5(n){var e=n.__.__c;return e&&e.__e&&e.__e(n)}function Ll(){this.u=null,this.o=null}Ne.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),e&&n.__h===!0&&(n.type=null),N3&&N3(n)},(k1.prototype=new Ni).__c=function(n,e){var t=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var r=v5(i.__v),a=!1,o=function(){a||(a=!0,t.__R=null,r?r(u):u())};t.__R=o;var u=function(){if(!--i.__u){if(i.state.__e){var d=i.state.__e;i.__v.__k[0]=function m(g,p,w){return g&&(g.__v=null,g.__k=g.__k&&g.__k.map(function(S){return m(S,p,w)}),g.__c&&g.__c.__P===p&&(g.__e&&w.insertBefore(g.__e,g.__d),g.__c.__e=!0,g.__c.__P=w)),g}(d,d.__c.__P,d.__c.__O)}var c;for(i.setState({__e:i.__b=null});c=i.t.pop();)c.forceUpdate()}},l=e.__h===!0;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),n.then(o,o)},k1.prototype.componentWillUnmount=function(){this.t=[]},k1.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,u,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(d){typeof d.__c=="function"&&d.__c()}),o.__c.__H=null),(o=yB({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=u),o.__c=null),o.__k=o.__k&&o.__k.map(function(d){return a(d,u,l)})),o}(this.__b,t,i.__O=i.__P)}this.__b=null}var r=e.__e&&A0($s,null,n.fallback);return r&&(r.__h=null),[A0($s,null,e.__e?null:n.children),r]};var j3=function(n,e,t){if(++t[1]===t[0]&&n.o.delete(e),n.props.revealOrder&&(n.props.revealOrder[0]!=="t"||!n.o.size))for(t=n.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;n.u=t=t[2]}};(Ll.prototype=new Ni).__e=function(n){var e=this,t=v5(e.__v),i=e.o.get(n);return i[0]++,function(r){var a=function(){e.props.revealOrder?(i.push(r),j3(e,n,i)):r()};t?t(a):a()}},Ll.prototype.render=function(n){this.u=null,this.o=new Map;var e=Of(n.children);n.revealOrder&&n.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return n.children},Ll.prototype.componentDidUpdate=Ll.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){j3(n,t,e)})};var SB=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,CB=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,EB=typeof document<"u",TB=function(n){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(n)};Ni.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(Ni.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var H3=Ne.event;function MB(){}function FB(){return this.cancelBubble}function AB(){return this.defaultPrevented}Ne.event=function(n){return H3&&(n=H3(n)),n.persist=MB,n.isPropagationStopped=FB,n.isDefaultPrevented=AB,n.nativeEvent=n};var V3={configurable:!0,get:function(){return this.class}},G3=Ne.vnode;Ne.vnode=function(n){var e=n.type,t=n.props,i=t;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var a in i={},t){var o=t[a];EB&&a==="children"&&e==="noscript"||a==="value"&&"defaultValue"in t&&o==null||(a==="defaultValue"&&"value"in t&&t.value==null?a="value":a==="download"&&o===!0?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!TB(t.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(a)?a=a.toLowerCase():r&&CB.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():o===null&&(o=void 0),i[a]=o)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Of(t.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=Of(t.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.props=i,t.class!=t.className&&(V3.enumerable="className"in t,t.className!=null&&(i.class=t.className),Object.defineProperty(i,"className",V3))}n.$$typeof=SB,G3&&G3(n)};var W3=Ne.__r;Ne.__r=function(n){W3&&W3(n),n.__c};const PB={light:"outline",dark:"solid"};class LB extends Nf{renderIcon(e){const{icon:t}=e;if(t){if(t.svg)return ce("span",{class:"flex",dangerouslySetInnerHTML:{__html:t.svg}});if(t.src)return ce("img",{src:t.src})}const i=Df.categories[e.id]||Df.categories.custom,r=this.props.icons=="auto"?PB[this.props.theme]:this.props.icons;return i[r]||i}render(){let e=null;return ce("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:ce("div",{class:"flex relative",children:[this.categories.map((t,i)=>{const r=t.name||ft.categories[t.id],a=!this.props.unfocused&&t.id==this.state.categoryId;return a&&(e=i),ce("button",{"aria-label":r,"aria-selected":a||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:o=>o.preventDefault(),onClick:()=>{this.props.onClick({category:t,i})},children:this.renderIcon(t)})}),ce("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:e==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${e*100}%)`:`translateX(${e*100}%)`}})]})})}constructor(){super(),this.categories=sn.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class RB extends Nf{shouldComponentUpdate(e){for(let t in e)if(t!="children"&&e[t]!=this.props[t])return!0;return!1}render(){return this.props.children}}const Rl={rowsPerRender:10};class zB extends Ni{getInitialState(e=this.props){return{skin:Ur.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=ft.rtl?"rtl":"ltr",this.refs={menu:sr(),navigation:sr(),scroll:sr(),search:sr(),searchInput:sr(),skinToneButton:sr(),skinToneRadio:sr()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const t in e)this.nextState[t]=e[t];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let t=!1;for(const r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(t=!0);delete this.nextState;const i=this.getInitialState();if(t)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(e={}){await Mu(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var e;document.removeEventListener("click",this.handleClickOutside),(e=this.darkMedia)==null||e.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const t of this.observers)e.includes(t)||t.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=sn;this.refs.categories=new Map;const t=sn.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=t&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=t,this.grid=[],this.grid.setsize=0;const i=(r,a)=>{const o=[];o.__categoryId=a.id,o.__index=r.length,this.grid.push(o);const u=this.grid.length-1,l=u%Rl.rowsPerRender?{}:sr();return l.index=u,l.posinset=this.grid.setsize+1,r.push(l),o};for(let r of e){const a=[];let o=i(a,r);for(let u of r.emojis)o.length==this.getPerLine()&&(o=i(a,r)),this.grid.setsize+=1,o.push(u);this.refs.categories.set(r.id,{root:sr(),rows:a})}}initTheme(e){if(e!="auto")return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:t,emojiButtonSize:i}=e,r=()=>{const{width:o}=t.getBoundingClientRect();return Math.floor(o/i)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(t),this.observers.push(a),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,t]){const i=this.state.searchResults||this.grid,r=i[e]&&i[e][t];if(r)return Aa.get(r)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const t=new Map,i=o=>{o!=e.state.categoryId&&e.setState({categoryId:o})},r={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const l of o){const d=l.target.dataset.id;t.set(d,l.intersectionRatio)}const u=[...t];for(const[l,d]of u)if(d){i(l);break}},r);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const e={...this.state.visibleRows},t=new IntersectionObserver(i=>{for(const r of i){const a=parseInt(r.target.dataset.index);r.isIntersecting?e[a]=!0:delete e[a]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(Rl.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*Rl.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const r of i)r.current&&t.observe(r.current);this.observers.push(t)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e,input:t,left:i,right:r,up:a,down:o}){const u=this.state.searchResults||this.grid;if(!u.length)return;let[l,d]=this.state.pos;const c=(()=>{if(l==0&&d==0&&!e.repeat&&(i||a))return null;if(l==-1)return!e.repeat&&(r||o)&&t.selectionStart==t.value.length?[0,0]:null;if(i||r){let m=u[l];const g=i?-1:1;if(d+=g,!m[d]){if(l+=g,m=u[l],!m)return l=i?0:u.length-1,d=i?0:u[l].length-1,[l,d];d=i?m.length-1:0}return[l,d]}if(a||o){l+=a?-1:1;const m=u[l];return m?(m[d]||(d=m.length-1),[l,d]):(l=a?0:u.length-1,d=a?0:u[l].length-1,[l,d])}})();if(c)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:c,keyboard:!0},()=>{this.scrollTo({row:c[0]})})}scrollTo({categoryId:e,row:t}){const i=this.state.searchResults||this.grid;if(!i.length)return;const r=this.refs.scroll.current,a=r.getBoundingClientRect();let o=0;if(t>=0&&(e=i[t].__categoryId),e&&(o=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(a.top-r.scrollTop)+1),t>=0)if(!t)o=0;else{const u=i[t].__index,l=o+u*this.props.emojiButtonSize,d=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(l<r.scrollTop)o=l;else if(d>r.scrollTop+a.height)o=d-a.height;else return}this.ignoreMouse(),r.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e,emoji:t,pos:i}){if(this.props.onEmojiSelect&&(!t&&i&&(t=this.getEmojiByPos(i)),t)){const r=pB(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&u5.add(r,this.props),this.props.onEmojiSelect(r,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),Ur.set("skin",e)}renderNav(){return ce(LB,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),t=this.state.searchResults&&!this.state.searchResults.length;return ce("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[ce("div",{class:"flex flex-middle flex-grow",children:[ce("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:ce(R0,{emoji:e,id:t?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),ce("div",{class:`margin-${this.dir[0]}`,children:e||t?ce("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[ce("div",{class:"preview-title ellipsis",children:e?e.name:ft.search_no_results_1}),ce("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:ft.search_no_results_2})]}):ce("div",{class:"preview-placeholder color-c",children:ft.pick})})]}),!e&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:t,posinset:i,grid:r}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,l=(e.skins[o-1]||e.skins[0]).native,d=gB(this.state.pos,t),c=t.concat(e.id).join("");return ce(RB,{selected:d,skin:o,size:a,children:ce("button",{"aria-label":l,"aria-selected":d||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:m=>this.handleEmojiClick({e:m,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(t),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[ce("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),ce(R0,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},c)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return ce("div",{children:[ce("div",{class:"spacer"}),ce("div",{class:"flex flex-middle",children:[ce("div",{class:"search relative flex-grow",children:[ce("input",{type:"search",ref:this.refs.searchInput,placeholder:ft.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),ce("span",{class:"icon loupe flex",children:Df.search.loupe}),this.state.searchResults&&ce("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:Df.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?ce("div",{class:"category",ref:this.refs.search,children:[ce("div",{class:`sticky padding-small align-${this.dir[0]}`,children:ft.categories.search}),ce("div",{children:e.length?e.map((t,i)=>ce("div",{class:"flex",children:t.map((r,a)=>this.renderEmojiButton(r,{pos:[i,a],posinset:i*this.props.perLine+a+1,grid:e}))})):ce("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&ce("a",{onClick:this.props.onAddCustomEmoji,children:ft.add_custom})})})]}):null}renderCategories(){const{categories:e}=sn,t=!!this.state.searchResults,i=this.getPerLine();return ce("div",{style:{visibility:t?"hidden":void 0,display:t?"none":void 0,height:"100%"},children:e.map(r=>{const{root:a,rows:o}=this.refs.categories.get(r.id);return ce("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:a,children:[ce("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||ft.categories[r.id]}),ce("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((u,l)=>{const d=u.index-u.index%Rl.rowsPerRender,c=this.state.visibleRows[d],m="current"in u?u:void 0;if(!c&&!m)return null;const g=l*i,p=g+i,w=r.emojis.slice(g,p);return w.length<i&&w.push(...new Array(i-w.length)),ce("div",{"data-index":u.index,ref:m,class:"flex row",style:{top:l*this.props.emojiButtonSize},children:c&&w.map((S,x)=>{if(!S)return ce("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const y=Aa.get(S);return this.renderEmojiButton(y,{pos:[u.index,x],posinset:u.posinset+x,grid:this.grid})})},u.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:ce("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:ce("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":ft.skins.choose,title:ft.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:ce("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),t=e?e.name:"";return ce("div",{"aria-live":"polite",class:"sr-only",children:t})}renderSkins(){const t=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=i.right-t.right-3:r.left=t.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=i.bottom-t.top+6:(r.top=t.bottom-i.top+3,r.bottom="auto"),ce("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":ft.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(a=>{const o=a+1,u=this.state.skin==o;return ce("div",{children:[ce("input",{type:"radio",name:"skin-tone",value:o,"aria-label":ft.skins[o],ref:u?this.refs.skinToneRadio:null,defaultChecked:u,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(o))}}),ce("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(o),onMouseEnter:()=>this.handleSkinMouseOver(o),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[ce("span",{class:`skin-tone skin-tone-${o}`}),ce("span",{class:"margin-small-lr",children:ft.skins[o]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return ce("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&ce("div",{class:"padding-lr",children:this.renderSearch()}),ce("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:ce("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),ai(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),ai(this,"handleClickOutside",t=>{const{element:i}=this.props;t.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(t))}),ai(this,"handleBaseClick",t=>{this.state.showSkins&&(t.target.closest(".menu")||(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins()))}),ai(this,"handleBaseKeydown",t=>{this.state.showSkins&&t.key=="Escape"&&(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins())}),ai(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),ai(this,"handleSearchInput",async()=>{const t=this.refs.searchInput.current;if(!t)return;const{value:i}=t,r=await Aa.search(i),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},a);const o=t.selectionStart==t.value.length?[0,0]:[-1,-1],u=[];u.setsize=r.length;let l=null;for(let d of r)(!u.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=u.length,u.push(l)),l.push(d);this.ignoreMouse(),this.setState({searchResults:u,pos:o},a)}),ai(this,"handleSearchKeyDown",t=>{const i=t.currentTarget;switch(t.stopImmediatePropagation(),t.key){case"ArrowLeft":this.navigate({e:t,input:i,left:!0});break;case"ArrowRight":this.navigate({e:t,input:i,right:!0});break;case"ArrowUp":this.navigate({e:t,input:i,up:!0});break;case"ArrowDown":this.navigate({e:t,input:i,down:!0});break;case"Enter":t.preventDefault(),this.handleEmojiClick({e:t,pos:this.state.pos});break;case"Escape":t.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),ai(this,"clearSearch",()=>{const t=this.refs.searchInput.current;t&&(t.value="",t.focus(),this.handleSearchInput())}),ai(this,"handleCategoryClick",({category:t,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:t.id})}),ai(this,"openSkins",t=>{const{currentTarget:i}=t,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await mB(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class Nh extends kB{async connectedCallback(){const e=c5(this.props,gr,this);e.element=this,e.ref=t=>{this.component=t},await Mu(e),!this.disconnected&&s5(ce(zB,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:Zb(b5)})}}ai(Nh,"Props",gr);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",Nh);var b5={};b5=`:host {
|
|
84
|
+
`)}function r$(n){var e={};if(n.inner){if(n.inner.length===0)return Ma(e,n.path,n.message);for(var r=n.inner,t=Array.isArray(r),i=0,r=t?r:r[Symbol.iterator]();;){var a;if(t){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var o=a;jt(e,o.path)||(e=Ma(e,o.path,o.message))}}return e}function a$(n,e,t,i){t===void 0&&(t=!1);var r=F0(n);return e[t?"validateSync":"validate"](r,{abortEarly:!1,context:r})}function F0(n){var e=Array.isArray(n)?[]:{};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)){var i=String(t);Array.isArray(n[i])===!0?e[i]=n[i].map(function(r){return Array.isArray(r)===!0||Zp(r)?F0(r):r!==""?r:void 0}):Zp(n[i])?e[i]=F0(n[i]):e[i]=n[i]!==""?n[i]:void 0}return e}function s$(n,e,t){var i=n.slice();return e.forEach(function(a,o){if(typeof i[o]>"u"){var u=t.clone!==!1,l=u&&t.isMergeableObject(a);i[o]=l?x0(Array.isArray(a)?[]:{},a,t):a}else t.isMergeableObject(a)?i[o]=x0(n[o],a,t):n.indexOf(a)===-1&&i.push(a)}),i}function o$(n){return Array.from(n).filter(function(e){return e.selected}).map(function(e){return e.value})}function u$(n,e,t){if(typeof n=="boolean")return!!e;var i=[],r=!1,a=-1;if(Array.isArray(n))i=n,a=n.indexOf(t),r=a>=0;else if(!t||t=="true"||t=="false")return!!e;return e&&t&&!r?i.concat(t):r?i.slice(0,a).concat(i.slice(a+1)):i}var l$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function ni(n){var e=C.useRef(n);return l$(function(){e.current=n}),C.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.current.apply(void 0,i)},[])}var f$=C.forwardRef(function(n,e){var t=n.action,i=jb(n,["action"]),r=t??"#",a=Xz(),o=a.handleReset,u=a.handleSubmit;return C.createElement("form",Qn({onSubmit:u,ref:e,onReset:o,action:r},i))});f$.displayName="Form";var Fa={},d$=Le&&Le.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Vb=Le&&Le.__awaiter||function(n,e,t,i){function r(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function u(c){try{d(i.next(c))}catch(m){o(m)}}function l(c){try{d(i.throw(c))}catch(m){o(m)}}function d(c){c.done?a(c.value):r(c.value).then(u,l)}d((i=i.apply(n,e||[])).next())})},Gb=Le&&Le.__generator||function(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(d){return function(c){return l([d,c])}}function l(d){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,r&&(a=d[0]&2?r.return:d[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,d[1])).done)return a;switch(r=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,r=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){t.label=d[1];break}if(d[0]===6&&t.label<a[1]){t.label=a[1],a=d;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(d);break}a[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(n,t)}catch(c){d=[6,c],r=0}finally{i=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}};Object.defineProperty(Fa,"__esModule",{value:!0});Fa.toFormikValidate=Ub=Fa.toFormikValidationSchema=Fa.ValidationError=void 0;var Wb=function(n){d$(e,n);function e(t){var i=n.call(this,t)||this;return i.name="ValidationError",i.inner=[],i}return e}(Error);Fa.ValidationError=Wb;function c$(n){var e=new Wb(n.message);return e.inner=n.errors.map(function(t){return{message:t.message,path:t.path.join(".")}}),e}function h$(n,e){return{validate:function(t){return Vb(this,void 0,void 0,function(){var i;return Gb(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.parseAsync(t,e)];case 1:return r.sent(),[3,3];case 2:throw i=r.sent(),c$(i);case 3:return[2]}})})}}}var Ub=Fa.toFormikValidationSchema=h$;function g$(n){for(var e={},t=0,i=n.errors;t<i.length;t++){var r=i[t];e[r.path.filter(Boolean).join(".")]=r.message}return e}function m$(n,e){var t=this;return function(i){return Vb(t,void 0,void 0,function(){var r;return Gb(this,function(a){switch(a.label){case 0:return[4,n.safeParseAsync(i,e)];case 1:return r=a.sent(),r.success?[2]:[2,g$(r.error)]}})})}}Fa.toFormikValidate=m$;const p$="_form_1haht_141",v$="_fieldset_1haht_145",b$="_fieldSetName_1haht_157",w$="_successBody_1haht_168",k$="_generalError_1haht_175",po={form:p$,fieldset:v$,fieldSetName:b$,successBody:w$,generalError:k$},_$=Ri.object({reasonText:Ri.string({required_error:"Bitte gib eine Begründung ein."}).min(5,"Bitte gib mindestens 5 und höchstens 5000 Zeichen ein.").max(5e3,"Bitte gib mindestens 5 und höchstens 5000 Zeichen ein."),reporterEmail:Ri.string({required_error:"Bitte gib eine gültige E-Mail-Adresse ein."}).email("Bitte gib eine gültige E-Mail-Adresse ein."),reporterFirstName:Ri.string({required_error:"Bitte gib einen gültigen Vornamen ein."}).min(2,"Bitte gib mindestens 2 und höchstens 40 Zeichen ein.").max(40,"Bitte gib mindestens 2 und höchstens 40 Zeichen ein."),reporterLastName:Ri.string({required_error:"Bitte gib einen gültigen Nachnamen ein."}).min(2,"Bitte gib mindestens 2 und höchstens 40 Zeichen ein.").max(40,"Bitte gib mindestens 2 und höchstens 40 Zeichen ein."),selectedReason:Ri.string({invalid_type_error:"Bitte wähle eine Option."}),selectedRole:Ri.string({required_error:"Bitte wähle eine Rolle."})}),qb=({complaintReasons:n,handleModalClick:e,open:t,reporter:i,subjectId:r})=>{const[a,o]=C.useState(!1),[u,l]=C.useState(!1),d=i$({initialValues:{errorText:"",reasonText:"",reporterEmail:i?i.email:"",reporterFirstName:i?i.firstname:"",reporterLastName:i?i.lastname:"",selectedReason:"",selectedRole:"myself"},onSubmit:(y,{setErrors:T,setSubmitting:F})=>{Nn.putComplaint({reason:y.selectedReason,report_origin:y.selectedRole,reporter_email:y.reporterEmail,reporter_firstname:y.reporterFirstName,reporter_id:i==null?void 0:i.id,reporter_lastname:y.reporterLastName,reporter_message:y.reasonText,subject_id:r,subject_type:"HoodMessage"},!i).then(N=>{o(!0)}).catch(N=>{l(!0),T({errorText:"Ein Fehler ist aufgetreten, bitte versuchen Sie es später noch einmal."}),console.log(N)}).finally(()=>{F(!1)})},validationSchema:Ub(_$)}),c=y=>{d.setFieldValue("selectedReason",y)},m=y=>{d.setFieldValue("selectedRole",y)},g=()=>{e()},p=()=>{d.handleSubmit()};if(!n)return null;let w="Inhalt melden",S=k.jsx(V.Form,{className:po.form,children:k.jsxs(V.Fieldset,{className:po.fieldset,children:[k.jsx(V.Typography,{type:"body-regular",children:"Warum hältst du den Inhalt für problematisch?"}),k.jsx(V.Select,{colorScheme:"dark",onChange:c,value:d.values.selectedReason,placeholder:"Bitte wähle einen Grund aus",errorMessage:d.touched.selectedReason?d.errors.selectedReason:void 0,items:n.map(y=>({label:y.label_de,value:y.value}))}),k.jsx(V.TextAreaInput,{size:"medium",id:"reasonText",label:"Begründe die Meldung",colorScheme:"filled",value:d.values.reasonText,onChange:d.handleChange,onBlur:d.handleBlur,errorText:d.touched.reasonText?d.errors.reasonText:void 0}),k.jsx(V.Typography,{type:"body-regular",children:"Du erstellst diese Meldung als:"}),k.jsx(V.Select,{colorScheme:"dark",onChange:m,value:d.values.selectedRole,errorMessage:d.touched.selectedRole?d.errors.selectedRole:void 0,items:[{label:"Privatperson",value:"myself"},{label:"Hinweisgeber (Art. 22 DSA)",value:"non_state_actor"},{label:"Staatliche Stelle",value:"state_actor"}]}),k.jsx(V.Divider,{}),!i&&k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:po.fieldSetName,children:[k.jsx(V.TextInput,{colorScheme:"filled",label:"Vorname",size:"large",id:"reporterFirstName",value:d.values.reporterFirstName,onChange:d.handleChange,onBlur:d.handleBlur,errorText:d.touched.reporterFirstName?d.errors.reporterFirstName:void 0}),k.jsx(V.TextInput,{colorScheme:"filled",label:"Nachname",size:"large",id:"reporterLastName",value:d.values.reporterLastName,onChange:d.handleChange,onBlur:d.handleBlur,errorText:d.touched.reporterLastName?d.errors.reporterLastName:void 0})]}),k.jsx(V.TextInput,{colorScheme:"filled",label:"E-Mail-Adresse",size:"large",id:"reporterEmail",value:d.values.reporterEmail,onChange:d.handleChange,onBlur:d.handleBlur,errorText:d.touched.reporterEmail?d.errors.reporterEmail:void 0}),d.errors.errorText&&k.jsx(V.Typography,{type:"body-semibold",className:po.generalError,children:d.errors.errorText})]}),k.jsx(V.Typography,{type:"detail-medium",children:'Mit Klick auf "Absenden" bestätigst du, in gutem Glauben davon überzeugt zu sein, dass die in der Meldung enthaltenen Angaben und Anführungen richtig und vollständig sind.'}),k.jsx(V.Typography,{type:"detail-medium",children:k.jsx(V.Markdown,{text:"Weitere Informationen findest du zum Meldeprozess und Beschwerdegründen in den [Beitragsrichtlinien](https://hilfe.nebenan.de/hc/de/articles/360013128074-Beitrags-und-Kommentarrichtlinien) und zur Verarbeitung personenbezogener Daten in den [Datenschutzbestimmungen](https://nebenan.de/privacy)."})})]})}),x;if(a||u){w=u?"Du hast diesen Inhalt bereits gemeldet.":"Vielen Dank für deine Meldung!";const y=u?"Was passiert im Hintergrund?":"Was passiert jetzt?";S=k.jsxs("div",{className:po.successBody,children:[k.jsx(V.Typography,{type:"h5",children:y}),k.jsx(V.Typography,{type:"body-regular",children:"Wir prüfen, ob ein Verstoß gegen unsere Regeln und Richtlinien oder gegen unsere Nutzungsbedingungen vorliegt. Wenn das der Fall ist, werden wir aktiv."})]})}else x=k.jsxs(k.Fragment,{children:[k.jsx(V.TextButton,{onClick:g,color:"blue",size:"large",text:"Schließen"}),k.jsx(V.ButtonPrimary,{onClick:p,text:"Absenden",color:"highlight"})]});return k.jsx("div",{children:k.jsx(lu,{children:k.jsx(V.Modal,{open:t,onClose:g,modalBody:S,headerTitle:w,modalFooter:x})})})},y$="_modalBody_bj6x7_141",x$="_sheetFooter_bj6x7_153",y3={modalBody:y$,sheetFooter:x$},S$=({cancelText:n="Abbrechen",confirmText:e="Bestätigen",content:t,handleCancel:i,handleConfirm:r,primaryCtaColor:a="primary",title:o})=>{const u=()=>k.jsx(V.CardHeader,{headline:o,as:"h3",rightElement:k.jsx(V.IconButton,{ariaLabel:"close-sheet",onClick:i,icon:"cross",size:"small"})}),l=()=>k.jsxs(k.Fragment,{children:[k.jsx(V.TextButton,{onClick:i,color:"blue",size:"large",text:n}),k.jsx(V.ButtonPrimary,{color:a,onClick:r,size:"medium",text:e})]}),d=k.jsxs("footer",{className:y3.sheetFooter,children:[k.jsx(V.ButtonPrimary,{color:a,fullWidth:!0,onClick:r,size:"medium",text:e}),k.jsx(V.TextButton,{color:"blue",onClick:i,size:"large",text:n})]});return Wr()?k.jsx(V.BottomSheet,{open:!0,onClose:i,sheetBody:t,sheetHeader:u(),footer:d}):k.jsx(V.Modal,{open:!0,onClose:i,modalBody:k.jsx("div",{className:y3.modalBody,children:t}),headerTitle:o,modalFooter:l()})},C$="_root_1bk4f_141",E$="_textButton_1bk4f_148",x3={root:C$,textButton:E$},T$=({alt:n,ariaLabel:e,onClick:t,src:i,text:r})=>k.jsxs("div",{className:x3.root,children:[k.jsx(V.Thumbnail,{src:i,shape:"circular",size:"40",alt:n}),k.jsx(V.Button,{className:x3.textButton,onClick:t,children:k.jsx(V.Typography,{type:"body-regular",as:"span",children:r})}),k.jsx(V.IconButton,{icon:"pencil",size:"small",onClick:t,variant:"green",ariaLabel:e})]}),M$="_container_1raex_141",F$="_sidebarLeft_1raex_149",A$="_navBar_1raex_153",P$="_mainContent_1raex_159",L$="_sidebarRight_1raex_165",vo={container:M$,sidebarLeft:F$,navBar:A$,mainContent:P$,sidebarRight:L$},R$=({children:n,left:e,navbar:t,right:i})=>k.jsxs("div",{className:vo.container,children:[k.jsx("nav",{className:vo.navBar,children:t}),e&&k.jsx("aside",{className:vo.sidebarLeft,children:e}),k.jsx("main",{className:vo.mainContent,children:n}),i&&k.jsx("aside",{className:vo.sidebarRight,children:i})]}),z$=({name:n,onSearchSubmit:e,placeholder:t,ref:i})=>{const[r,a]=C.useState(""),{getInputProps:o}=lA({onChange:c=>{a(c.target.value)},value:r}),u=o(),l=c=>{c.preventDefault(),!d&&(e(r),a(""))},d=!r||r.trim().length<2;return k.jsx("form",{onSubmit:l,children:k.jsx(V.TextInput,{...u,size:"small",id:n,label:t,name:n,colorScheme:"filled",iconButton:{ariaLabelledBy:"searchButton",icon:"search",onClick:l,size:"small",type:"submit"},charLimit:50,showInputHints:!1,ref:i})})},$$="_navbarWrapper_1yqv3_141",B$="_navbar_1yqv3_141",O$="_navbar__left_1yqv3_155",I$="_navbar__right_1yqv3_158",D$="_background_1yqv3_162",bo={navbarWrapper:$$,navbar:B$,navbar__left:O$,navbar__right:I$,background:D$},N$=({left:n,right:e})=>k.jsxs("div",{className:bo.navbarWrapper,children:[k.jsxs("div",{className:bo.navbar,children:[k.jsx("div",{className:bo.navbar__left,children:n}),k.jsx("div",{className:bo.navbar__right,children:e})]}),k.jsx("div",{className:bo.background})]}),j$="Suchen",H$="Oh nein!",V$="Das Emoji konnte nicht gefunden werden",G$="Wähle ein Emoji…",W$="Füge ein benutzerdefiniertes Emoji hinzu",U$={activity:"Aktivität",custom:"Benutzerdefiniert",flags:"Flaggen",foods:"Essen & Trinken",frequent:"Oft genutzt",nature:"Tiere & Natur",objects:"Objekte",people:"Smileys & Personen",places:"Reisen & Orte",search:"Suchergebnisse",symbols:"Symbole"},q$={1:"Standard",2:"Hell",3:"Mittelhell",4:"Mittel",5:"Mitteldunkel",6:"Dunkel",choose:"Wähle eine Standard-Hautfarbe"},Z$={search:j$,search_no_results_1:H$,search_no_results_2:V$,pick:G$,add_custom:W$,categories:U$,skins:q$};function Zb(n){return n&&n.__esModule?n.default:n}function ai(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var wd,Ne,Kb,Go,Yb,S3,$f={},Jb=[],K$=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Hr(n,e){for(var t in e)n[t]=e[t];return n}function Qb(n){var e=n.parentNode;e&&e.removeChild(n)}function A0(n,e,t){var i,r,a,o={};for(a in e)a=="key"?i=e[a]:a=="ref"?r=e[a]:o[a]=e[a];if(arguments.length>2&&(o.children=arguments.length>3?wd.call(arguments,2):t),typeof n=="function"&&n.defaultProps!=null)for(a in n.defaultProps)o[a]===void 0&&(o[a]=n.defaultProps[a]);return cf(n,o,i,r,null)}function cf(n,e,t,i,r){var a={type:n,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Kb};return r==null&&Ne.vnode!=null&&Ne.vnode(a),a}function sr(){return{current:null}}function $s(n){return n.children}function Ni(n,e){this.props=n,this.context=e}function Bs(n,e){if(e==null)return n.__?Bs(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null)return t.__e;return typeof n.type=="function"?Bs(n):null}function Xb(n){var e,t;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null){n.__e=n.__c.base=t.__e;break}return Xb(n)}}function C3(n){(!n.__d&&(n.__d=!0)&&Go.push(n)&&!Bf.__r++||S3!==Ne.debounceRendering)&&((S3=Ne.debounceRendering)||Yb)(Bf)}function Bf(){for(var n;Bf.__r=Go.length;)n=Go.sort(function(e,t){return e.__v.__b-t.__v.__b}),Go=[],n.some(function(e){var t,i,r,a,o,u;e.__d&&(o=(a=(t=e).__v).__e,(u=t.__P)&&(i=[],(r=Hr({},a)).__v=a.__v+1,Dh(u,a,r,t.__n,u.ownerSVGElement!==void 0,a.__h!=null?[o]:null,i,o??Bs(a),a.__h),i5(i,a),a.__e!=o&&Xb(a)))})}function e5(n,e,t,i,r,a,o,u,l,d){var c,m,g,p,w,S,x,y=i&&i.__k||Jb,T=y.length;for(t.__k=[],c=0;c<e.length;c++)if((p=t.__k[c]=(p=e[c])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?cf(null,p,null,null,p):Array.isArray(p)?cf($s,{children:p},null,null,null):p.__b>0?cf(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=t,p.__b=t.__b+1,(g=y[c])===null||g&&p.key==g.key&&p.type===g.type)y[c]=void 0;else for(m=0;m<T;m++){if((g=y[m])&&p.key==g.key&&p.type===g.type){y[m]=void 0;break}g=null}Dh(n,p,g=g||$f,r,a,o,u,l,d),w=p.__e,(m=p.ref)&&g.ref!=m&&(x||(x=[]),g.ref&&x.push(g.ref,null,p),x.push(m,p.__c||w,p)),w!=null?(S==null&&(S=w),typeof p.type=="function"&&p.__k===g.__k?p.__d=l=n5(p,l,n):l=t5(n,p,g,y,w,l),typeof t.type=="function"&&(t.__d=l)):l&&g.__e==l&&l.parentNode!=n&&(l=Bs(g))}for(t.__e=S,c=T;c--;)y[c]!=null&&(typeof t.type=="function"&&y[c].__e!=null&&y[c].__e==t.__d&&(t.__d=Bs(i,c+1)),a5(y[c],y[c]));if(x)for(c=0;c<x.length;c++)r5(x[c],x[++c],x[++c])}function n5(n,e,t){for(var i,r=n.__k,a=0;r&&a<r.length;a++)(i=r[a])&&(i.__=n,e=typeof i.type=="function"?n5(i,e,t):t5(t,i,i,r,i.__e,e));return e}function Of(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){Of(t,e)}):e.push(n)),e}function t5(n,e,t,i,r,a){var o,u,l;if(e.__d!==void 0)o=e.__d,e.__d=void 0;else if(t==null||r!=a||r.parentNode==null)e:if(a==null||a.parentNode!==n)n.appendChild(r),o=null;else{for(u=a,l=0;(u=u.nextSibling)&&l<i.length;l+=2)if(u==r)break e;n.insertBefore(r,a),o=a}return o!==void 0?o:r.nextSibling}function Y$(n,e,t,i,r){var a;for(a in t)a==="children"||a==="key"||a in e||If(n,a,null,t[a],i);for(a in e)r&&typeof e[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||t[a]===e[a]||If(n,a,e[a],t[a],i)}function E3(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||K$.test(e)?t:t+"px"}function If(n,e,t,i,r){var a;e:if(e==="style")if(typeof t=="string")n.style.cssText=t;else{if(typeof i=="string"&&(n.style.cssText=i=""),i)for(e in i)t&&e in t||E3(n.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||E3(n.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")a=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+a]=t,t?i||n.addEventListener(e,a?M3:T3,a):n.removeEventListener(e,a?M3:T3,a);else if(e!=="dangerouslySetInnerHTML"){if(r)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in n)try{n[e]=t??"";break e}catch{}typeof t=="function"||(t!=null&&(t!==!1||e[0]==="a"&&e[1]==="r")?n.setAttribute(e,t):n.removeAttribute(e))}}function T3(n){this.l[n.type+!1](Ne.event?Ne.event(n):n)}function M3(n){this.l[n.type+!0](Ne.event?Ne.event(n):n)}function Dh(n,e,t,i,r,a,o,u,l){var d,c,m,g,p,w,S,x,y,T,F,N=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(l=t.__h,u=e.__e=t.__e,e.__h=null,a=[u]),(d=Ne.__b)&&d(e);try{e:if(typeof N=="function"){if(x=e.props,y=(d=N.contextType)&&i[d.__c],T=d?y?y.props.value:d.__:i,t.__c?S=(c=e.__c=t.__c).__=c.__E:("prototype"in N&&N.prototype.render?e.__c=c=new N(x,T):(e.__c=c=new Ni(x,T),c.constructor=N,c.render=Q$),y&&y.sub(c),c.props=x,c.state||(c.state={}),c.context=T,c.__n=i,m=c.__d=!0,c.__h=[]),c.__s==null&&(c.__s=c.state),N.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Hr({},c.__s)),Hr(c.__s,N.getDerivedStateFromProps(x,c.__s))),g=c.props,p=c.state,m)N.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(N.getDerivedStateFromProps==null&&x!==g&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(x,T),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(x,c.__s,T)===!1||e.__v===t.__v){c.props=x,c.state=c.__s,e.__v!==t.__v&&(c.__d=!1),c.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(L){L&&(L.__=e)}),c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(x,c.__s,T),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(g,p,w)})}c.context=T,c.props=x,c.state=c.__s,(d=Ne.__r)&&d(e),c.__d=!1,c.__v=e,c.__P=n,d=c.render(c.props,c.state,c.context),c.state=c.__s,c.getChildContext!=null&&(i=Hr(Hr({},i),c.getChildContext())),m||c.getSnapshotBeforeUpdate==null||(w=c.getSnapshotBeforeUpdate(g,p)),F=d!=null&&d.type===$s&&d.key==null?d.props.children:d,e5(n,Array.isArray(F)?F:[F],e,t,i,r,a,o,u,l),c.base=e.__e,e.__h=null,c.__h.length&&o.push(c),S&&(c.__E=c.__=null),c.__e=!1}else a==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=J$(t.__e,e,t,i,r,a,o,l);(d=Ne.diffed)&&d(e)}catch(L){e.__v=null,(l||a!=null)&&(e.__e=u,e.__h=!!l,a[a.indexOf(u)]=null),Ne.__e(L,e,t)}}function i5(n,e){Ne.__c&&Ne.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(i){i.call(t)})}catch(i){Ne.__e(i,t.__v)}})}function J$(n,e,t,i,r,a,o,u){var l,d,c,m=t.props,g=e.props,p=e.type,w=0;if(p==="svg"&&(r=!0),a!=null){for(;w<a.length;w++)if((l=a[w])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){n=l,a[w]=null;break}}if(n==null){if(p===null)return document.createTextNode(g);n=r?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,g.is&&g),a=null,u=!1}if(p===null)m===g||u&&n.data===g||(n.data=g);else{if(a=a&&wd.call(n.childNodes),d=(m=t.props||$f).dangerouslySetInnerHTML,c=g.dangerouslySetInnerHTML,!u){if(a!=null)for(m={},w=0;w<n.attributes.length;w++)m[n.attributes[w].name]=n.attributes[w].value;(c||d)&&(c&&(d&&c.__html==d.__html||c.__html===n.innerHTML)||(n.innerHTML=c&&c.__html||""))}if(Y$(n,g,m,r,u),c)e.__k=[];else if(w=e.props.children,e5(n,Array.isArray(w)?w:[w],e,t,i,r&&p!=="foreignObject",a,o,a?a[0]:t.__k&&Bs(t,0),u),a!=null)for(w=a.length;w--;)a[w]!=null&&Qb(a[w]);u||("value"in g&&(w=g.value)!==void 0&&(w!==m.value||w!==n.value||p==="progress"&&!w)&&If(n,"value",w,m.value,!1),"checked"in g&&(w=g.checked)!==void 0&&w!==n.checked&&If(n,"checked",w,m.checked,!1))}return n}function r5(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(i){Ne.__e(i,t)}}function a5(n,e,t){var i,r;if(Ne.unmount&&Ne.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||r5(i,null,e)),(i=n.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){Ne.__e(a,e)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&a5(i[r],e,typeof n.type!="function");t||n.__e==null||Qb(n.__e),n.__e=n.__d=void 0}function Q$(n,e,t){return this.constructor(n,t)}function s5(n,e,t){var i,r,a;Ne.__&&Ne.__(n,e),r=(i=typeof t=="function")?null:t&&t.__k||e.__k,a=[],Dh(e,n=(!i&&t||e).__k=A0($s,null,[n]),r||$f,$f,e.ownerSVGElement!==void 0,!i&&t?[t]:r?null:e.firstChild?wd.call(e.childNodes):null,a,!i&&t?t:r?r.__e:e.firstChild,i),i5(a,n)}wd=Jb.slice,Ne={__e:function(n,e){for(var t,i,r;e=e.__;)if((t=e.__c)&&!t.__)try{if((i=t.constructor)&&i.getDerivedStateFromError!=null&&(t.setState(i.getDerivedStateFromError(n)),r=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(n),r=t.__d),r)return t.__E=t}catch(a){n=a}throw n}},Kb=0,Ni.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Hr({},this.state),typeof n=="function"&&(n=n(Hr({},t),this.props)),n&&Hr(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),C3(this))},Ni.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),C3(this))},Ni.prototype.render=$s,Go=[],Yb=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Bf.__r=0;var X$=0;function ce(n,e,t,i,r){var a,o,u={};for(o in e)o=="ref"?a=e[o]:u[o]=e[o];var l={type:n,props:u,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--X$,__source:i,__self:r};if(typeof n=="function"&&(a=n.defaultProps))for(o in a)u[o]===void 0&&(u[o]=a[o]);return Ne.vnode&&Ne.vnode(l),l}function eB(n,e){try{window.localStorage[`emoji-mart.${n}`]=JSON.stringify(e)}catch{}}function nB(n){try{const e=window.localStorage[`emoji-mart.${n}`];if(e)return JSON.parse(e)}catch{}}var Ur={set:eB,get:nB};const v1=new Map,tB=[{v:15,emoji:"🫨"},{v:14,emoji:"🫠"},{v:13.1,emoji:"😶🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];function iB(){for(const{v:n,emoji:e}of tB)if(o5(e))return n}function rB(){return!o5("🇨🇦")}function o5(n){if(v1.has(n))return v1.get(n);const e=aB(n);return v1.set(n,e),e}const aB=(()=>{let n=null;try{navigator.userAgent.includes("jsdom")||(n=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!n)return()=>!1;const e=25,t=20,i=Math.floor(e/2);return n.font=i+"px Arial, Sans-Serif",n.textBaseline="top",n.canvas.width=t*2,n.canvas.height=e,r=>{n.clearRect(0,0,t*2,e),n.fillStyle="#FF0000",n.fillText(r,0,22),n.fillStyle="#0000FF",n.fillText(r,t,22);const a=n.getImageData(0,0,t,e).data,o=a.length;let u=0;for(;u<o&&!a[u+3];u+=4);if(u>=o)return!1;const l=t+u/4%t,d=Math.floor(u/4/t),c=n.getImageData(l,d,1,1).data;return!(a[u]!==c[0]||a[u+2]!==c[2]||n.measureText(r).width>=t)}})();var F3={latestVersion:iB,noCountryFlags:rB};const P0=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let rt=null;function sB(n){rt||(rt=Ur.get("frequently")||{});const e=n.id||n;e&&(rt[e]||(rt[e]=0),rt[e]+=1,Ur.set("last",e),Ur.set("frequently",rt))}function oB({maxFrequentRows:n,perLine:e}){if(!n)return[];rt||(rt=Ur.get("frequently"));let t=[];if(!rt){rt={};for(let a in P0.slice(0,e)){const o=P0[a];rt[o]=e-a,t.push(o)}return t}const i=n*e,r=Ur.get("last");for(let a in rt)t.push(a);if(t.sort((a,o)=>{const u=rt[o],l=rt[a];return u==l?a.localeCompare(o):u-l}),t.length>i){const a=t.slice(i);t=t.slice(0,i);for(let o of a)o!=r&&delete rt[o];r&&t.indexOf(r)==-1&&(delete rt[t[t.length-1]],t.splice(-1,1,r)),Ur.set("frequently",rt)}return t}var u5={add:sB,get:oB,DEFAULTS:P0},l5={};l5=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var gr={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let ft=null,sn=null;const b1={};async function A3(n){if(b1[n])return b1[n];const t=await(await fetch(n)).json();return b1[n]=t,t}let w1=null,f5=null,d5=!1;function Mu(n,{caller:e}={}){return w1||(w1=new Promise(t=>{f5=t})),n?uB(n):e&&!d5&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),w1}async function uB(n){d5=!0;let{emojiVersion:e,set:t,locale:i}=n;if(e||(e=gr.emojiVersion.value),t||(t=gr.set.value),i||(i=gr.locale.value),sn)sn.categories=sn.categories.filter(l=>!l.name);else{sn=(typeof n.data=="function"?await n.data():n.data)||await A3(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${t}.json`),sn.emoticons={},sn.natives={},sn.categories.unshift({id:"frequent",emojis:[]});for(const l in sn.aliases){const d=sn.aliases[l],c=sn.emojis[d];c&&(c.aliases||(c.aliases=[]),c.aliases.push(l))}sn.originalCategories=sn.categories}if(ft=(typeof n.i18n=="function"?await n.i18n():n.i18n)||(i=="en"?Zb(l5):await A3(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),n.custom)for(let l in n.custom){l=parseInt(l);const d=n.custom[l],c=n.custom[l-1];if(!(!d.emojis||!d.emojis.length)){d.id||(d.id=`custom_${l+1}`),d.name||(d.name=ft.categories.custom),c&&!d.icon&&(d.target=c.target||c),sn.categories.push(d);for(const m of d.emojis)sn.emojis[m.id]=m}}n.categories&&(sn.categories=sn.originalCategories.filter(l=>n.categories.indexOf(l.id)!=-1).sort((l,d)=>{const c=n.categories.indexOf(l.id),m=n.categories.indexOf(d.id);return c-m}));let r=null,a=null;t=="native"&&(r=F3.latestVersion(),a=n.noCountryFlags||F3.noCountryFlags());let o=sn.categories.length,u=!1;for(;o--;){const l=sn.categories[o];if(l.id=="frequent"){let{maxFrequentRows:m,perLine:g}=n;m=m>=0?m:gr.maxFrequentRows.value,g||(g=gr.perLine.value),l.emojis=u5.get({maxFrequentRows:m,perLine:g})}if(!l.emojis||!l.emojis.length){sn.categories.splice(o,1);continue}const{categoryIcons:d}=n;if(d){const m=d[l.id];m&&!l.icon&&(l.icon=m)}let c=l.emojis.length;for(;c--;){const m=l.emojis[c],g=m.id?m:sn.emojis[m],p=()=>{l.emojis.splice(c,1)};if(!g||n.exceptEmojis&&n.exceptEmojis.includes(g.id)){p();continue}if(r&&g.version>r){p();continue}if(a&&l.id=="flags"&&!hB.includes(g.id)){p();continue}if(!g.search){if(u=!0,g.search=","+[[g.id,!1],[g.name,!0],[g.keywords,!1],[g.emoticons,!1]].map(([S,x])=>{if(S)return(Array.isArray(S)?S:[S]).map(y=>(x?y.split(/[-|_|\s]+/):[y]).map(T=>T.toLowerCase())).flat()}).flat().filter(S=>S&&S.trim()).join(","),g.emoticons)for(const S of g.emoticons)sn.emoticons[S]||(sn.emoticons[S]=g.id);let w=0;for(const S of g.skins){if(!S)continue;w++;const{native:x}=S;x&&(sn.natives[x]=g.id,g.search+=`,${x}`);const y=w==1?"":`:skin-tone-${w}:`;S.shortcodes=`:${g.id}:${y}`}}}}u&&Aa.reset(),f5()}function c5(n,e,t){n||(n={});const i={};for(let r in e)i[r]=h5(r,n,e,t);return i}function h5(n,e,t,i){const r=t[n];let a=i&&i.getAttribute(n)||(e[n]!=null&&e[n]!=null?e[n]:null);return r&&(a!=null&&r.value&&typeof r.value!=typeof a&&(typeof r.value=="boolean"?a=a!="false":a=r.value.constructor(a)),r.transform&&a&&(a=r.transform(a)),(a==null||r.choices&&r.choices.indexOf(a)==-1)&&(a=r.value)),a}const lB=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let L0=null;function fB(n){return n.id?n:sn.emojis[n]||sn.emojis[sn.aliases[n]]||sn.emojis[sn.natives[n]]}function dB(){L0=null}async function cB(n,{maxResults:e,caller:t}={}){if(!n||!n.trim().length)return null;e||(e=90),await Mu(null,{caller:t||"SearchIndex.search"});const i=n.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((u,l,d)=>u.trim()&&d.indexOf(u)==l);if(!i.length)return;let r=L0||(L0=Object.values(sn.emojis)),a,o;for(const u of i){if(!r.length)break;a=[],o={};for(const l of r){if(!l.search)continue;const d=l.search.indexOf(`,${u}`);d!=-1&&(a.push(l),o[l.id]||(o[l.id]=0),o[l.id]+=l.id==u?0:d+1)}r=a}return a.length<2||(a.sort((u,l)=>{const d=o[u.id],c=o[l.id];return d==c?u.id.localeCompare(l.id):d-c}),a.length>e&&(a=a.slice(0,e))),a}var Aa={search:cB,get:fB,reset:dB,SHORTCODES_REGEX:lB};const hB=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function gB(n,e){return Array.isArray(n)&&Array.isArray(e)&&n.length===e.length&&n.every((t,i)=>t==e[i])}async function mB(n=1){for(let e in[...Array(n).keys()])await new Promise(requestAnimationFrame)}function pB(n,{skinIndex:e=0}={}){const t=n.skins[e]||(e=0,n.skins[e]),i={id:n.id,name:n.name,native:t.native,unified:t.unified,keywords:n.keywords,shortcodes:t.shortcodes||n.shortcodes};return n.skins.length>1&&(i.skin=e+1),t.src&&(i.src=t.src),n.aliases&&n.aliases.length&&(i.aliases=n.aliases),n.emoticons&&n.emoticons.length&&(i.emoticons=n.emoticons),i}const vB={activity:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ce("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:ce("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ce("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ce("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ce("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),ce("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ce("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),ce("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:ce("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ce("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),ce("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:ce("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ce("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),ce("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ce("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),ce("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ce("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ce("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},bB={loupe:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:ce("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:ce("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:ce("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var Df={categories:vB,search:bB};function R0(n){let{id:e,skin:t,emoji:i}=n;if(n.shortcodes){const u=n.shortcodes.match(Aa.SHORTCODES_REGEX);u&&(e=u[1],u[2]&&(t=u[2]))}if(i||(i=Aa.get(e||n.native)),!i)return n.fallback;const r=i.skins[t-1]||i.skins[0],a=r.src||(n.set!="native"&&!n.spritesheet?typeof n.getImageURL=="function"?n.getImageURL(n.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${n.set}@15.0.1/img/${n.set}/64/${r.unified}.png`:void 0),o=typeof n.getSpritesheetURL=="function"?n.getSpritesheetURL(n.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${n.set}@15.0.1/img/${n.set}/sheets-256/64.png`;return ce("span",{class:"emoji-mart-emoji","data-emoji-set":n.set,children:a?ce("img",{style:{maxWidth:n.size||"1em",maxHeight:n.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:a}):n.set=="native"?ce("span",{style:{fontSize:n.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):ce("span",{style:{display:"block",width:n.size,height:n.size,backgroundImage:`url(${o})`,backgroundSize:`${100*sn.sheet.cols}% ${100*sn.sheet.rows}%`,backgroundPosition:`${100/(sn.sheet.cols-1)*r.x}% ${100/(sn.sheet.rows-1)*r.y}%`}})})}const wB=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class g5 extends wB{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let t in e)this.attributeChangedCallback(t,null,e[t])}attributeChangedCallback(e,t,i){if(!this.component)return;const r=h5(e,{[e]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:r}):(this.component.props[e]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let t=null;const i=e.parent||(t=e.ref&&e.ref.current);t&&(t.innerHTML=""),i&&i.appendChild(this)}}}class kB extends g5{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const t=document.createElement("style");t.textContent=e,this.shadowRoot.insertBefore(t,this.shadowRoot.firstChild)}constructor(e,{styles:t}={}){super(e),this.setShadow(),this.injectStyles(t)}}var m5={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:n=>/\D/.test(n)?n:`${n}px`},set:gr.set,skin:gr.skin};class p5 extends g5{async connectedCallback(){const e=c5(this.props,m5,this);e.element=this,e.ref=t=>{this.component=t},await Mu(),!this.disconnected&&s5(ce(R0,{...e}),this)}constructor(e){super(e)}}ai(p5,"Props",m5);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",p5);var P3,z0=[],L3=Ne.__b,R3=Ne.__r,z3=Ne.diffed,$3=Ne.__c,B3=Ne.unmount;function _B(){var n;for(z0.sort(function(e,t){return e.__v.__b-t.__v.__b});n=z0.pop();)if(n.__P)try{n.__H.__h.forEach(hf),n.__H.__h.forEach($0),n.__H.__h=[]}catch(e){n.__H.__h=[],Ne.__e(e,n.__v)}}Ne.__b=function(n){L3&&L3(n)},Ne.__r=function(n){R3&&R3(n);var e=n.__c.__H;e&&(e.__h.forEach(hf),e.__h.forEach($0),e.__h=[])},Ne.diffed=function(n){z3&&z3(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(z0.push(e)!==1&&P3===Ne.requestAnimationFrame||((P3=Ne.requestAnimationFrame)||function(t){var i,r=function(){clearTimeout(a),O3&&cancelAnimationFrame(i),setTimeout(t)},a=setTimeout(r,100);O3&&(i=requestAnimationFrame(r))})(_B))},Ne.__c=function(n,e){e.some(function(t){try{t.__h.forEach(hf),t.__h=t.__h.filter(function(i){return!i.__||$0(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],Ne.__e(i,t.__v)}}),$3&&$3(n,e)},Ne.unmount=function(n){B3&&B3(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{hf(i)}catch(r){e=r}}),e&&Ne.__e(e,t.__v))};var O3=typeof requestAnimationFrame=="function";function hf(n){var e=n.__c;typeof e=="function"&&(n.__c=void 0,e())}function $0(n){n.__c=n.__()}function yB(n,e){for(var t in e)n[t]=e[t];return n}function I3(n,e){for(var t in n)if(t!=="__source"&&!(t in e))return!0;for(var i in e)if(i!=="__source"&&n[i]!==e[i])return!0;return!1}function Nf(n){this.props=n}(Nf.prototype=new Ni).isPureReactComponent=!0,Nf.prototype.shouldComponentUpdate=function(n,e){return I3(this.props,n)||I3(this.state,e)};var D3=Ne.__b;Ne.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),D3&&D3(n)};var xB=Ne.__e;Ne.__e=function(n,e,t){if(n.then){for(var i,r=e;r=r.__;)if((i=r.__c)&&i.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),i.__c(n,e)}xB(n,e,t)};var N3=Ne.unmount;function k1(){this.__u=0,this.t=null,this.__b=null}function v5(n){var e=n.__.__c;return e&&e.__e&&e.__e(n)}function Ll(){this.u=null,this.o=null}Ne.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),e&&n.__h===!0&&(n.type=null),N3&&N3(n)},(k1.prototype=new Ni).__c=function(n,e){var t=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var r=v5(i.__v),a=!1,o=function(){a||(a=!0,t.__R=null,r?r(u):u())};t.__R=o;var u=function(){if(!--i.__u){if(i.state.__e){var d=i.state.__e;i.__v.__k[0]=function m(g,p,w){return g&&(g.__v=null,g.__k=g.__k&&g.__k.map(function(S){return m(S,p,w)}),g.__c&&g.__c.__P===p&&(g.__e&&w.insertBefore(g.__e,g.__d),g.__c.__e=!0,g.__c.__P=w)),g}(d,d.__c.__P,d.__c.__O)}var c;for(i.setState({__e:i.__b=null});c=i.t.pop();)c.forceUpdate()}},l=e.__h===!0;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),n.then(o,o)},k1.prototype.componentWillUnmount=function(){this.t=[]},k1.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,u,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(d){typeof d.__c=="function"&&d.__c()}),o.__c.__H=null),(o=yB({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=u),o.__c=null),o.__k=o.__k&&o.__k.map(function(d){return a(d,u,l)})),o}(this.__b,t,i.__O=i.__P)}this.__b=null}var r=e.__e&&A0($s,null,n.fallback);return r&&(r.__h=null),[A0($s,null,e.__e?null:n.children),r]};var j3=function(n,e,t){if(++t[1]===t[0]&&n.o.delete(e),n.props.revealOrder&&(n.props.revealOrder[0]!=="t"||!n.o.size))for(t=n.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;n.u=t=t[2]}};(Ll.prototype=new Ni).__e=function(n){var e=this,t=v5(e.__v),i=e.o.get(n);return i[0]++,function(r){var a=function(){e.props.revealOrder?(i.push(r),j3(e,n,i)):r()};t?t(a):a()}},Ll.prototype.render=function(n){this.u=null,this.o=new Map;var e=Of(n.children);n.revealOrder&&n.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return n.children},Ll.prototype.componentDidUpdate=Ll.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){j3(n,t,e)})};var SB=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,CB=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,EB=typeof document<"u",TB=function(n){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(n)};Ni.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(Ni.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var H3=Ne.event;function MB(){}function FB(){return this.cancelBubble}function AB(){return this.defaultPrevented}Ne.event=function(n){return H3&&(n=H3(n)),n.persist=MB,n.isPropagationStopped=FB,n.isDefaultPrevented=AB,n.nativeEvent=n};var V3={configurable:!0,get:function(){return this.class}},G3=Ne.vnode;Ne.vnode=function(n){var e=n.type,t=n.props,i=t;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var a in i={},t){var o=t[a];EB&&a==="children"&&e==="noscript"||a==="value"&&"defaultValue"in t&&o==null||(a==="defaultValue"&&"value"in t&&t.value==null?a="value":a==="download"&&o===!0?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!TB(t.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(a)?a=a.toLowerCase():r&&CB.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():o===null&&(o=void 0),i[a]=o)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Of(t.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=Of(t.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.props=i,t.class!=t.className&&(V3.enumerable="className"in t,t.className!=null&&(i.class=t.className),Object.defineProperty(i,"className",V3))}n.$$typeof=SB,G3&&G3(n)};var W3=Ne.__r;Ne.__r=function(n){W3&&W3(n),n.__c};const PB={light:"outline",dark:"solid"};class LB extends Nf{renderIcon(e){const{icon:t}=e;if(t){if(t.svg)return ce("span",{class:"flex",dangerouslySetInnerHTML:{__html:t.svg}});if(t.src)return ce("img",{src:t.src})}const i=Df.categories[e.id]||Df.categories.custom,r=this.props.icons=="auto"?PB[this.props.theme]:this.props.icons;return i[r]||i}render(){let e=null;return ce("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:ce("div",{class:"flex relative",children:[this.categories.map((t,i)=>{const r=t.name||ft.categories[t.id],a=!this.props.unfocused&&t.id==this.state.categoryId;return a&&(e=i),ce("button",{"aria-label":r,"aria-selected":a||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:o=>o.preventDefault(),onClick:()=>{this.props.onClick({category:t,i})},children:this.renderIcon(t)})}),ce("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:e==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${e*100}%)`:`translateX(${e*100}%)`}})]})})}constructor(){super(),this.categories=sn.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class RB extends Nf{shouldComponentUpdate(e){for(let t in e)if(t!="children"&&e[t]!=this.props[t])return!0;return!1}render(){return this.props.children}}const Rl={rowsPerRender:10};class zB extends Ni{getInitialState(e=this.props){return{skin:Ur.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=ft.rtl?"rtl":"ltr",this.refs={menu:sr(),navigation:sr(),scroll:sr(),search:sr(),searchInput:sr(),skinToneButton:sr(),skinToneRadio:sr()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const t in e)this.nextState[t]=e[t];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let t=!1;for(const r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(t=!0);delete this.nextState;const i=this.getInitialState();if(t)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(e={}){await Mu(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var e;document.removeEventListener("click",this.handleClickOutside),(e=this.darkMedia)==null||e.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const t of this.observers)e.includes(t)||t.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=sn;this.refs.categories=new Map;const t=sn.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=t&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=t,this.grid=[],this.grid.setsize=0;const i=(r,a)=>{const o=[];o.__categoryId=a.id,o.__index=r.length,this.grid.push(o);const u=this.grid.length-1,l=u%Rl.rowsPerRender?{}:sr();return l.index=u,l.posinset=this.grid.setsize+1,r.push(l),o};for(let r of e){const a=[];let o=i(a,r);for(let u of r.emojis)o.length==this.getPerLine()&&(o=i(a,r)),this.grid.setsize+=1,o.push(u);this.refs.categories.set(r.id,{root:sr(),rows:a})}}initTheme(e){if(e!="auto")return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:t,emojiButtonSize:i}=e,r=()=>{const{width:o}=t.getBoundingClientRect();return Math.floor(o/i)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(t),this.observers.push(a),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,t]){const i=this.state.searchResults||this.grid,r=i[e]&&i[e][t];if(r)return Aa.get(r)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const t=new Map,i=o=>{o!=e.state.categoryId&&e.setState({categoryId:o})},r={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const l of o){const d=l.target.dataset.id;t.set(d,l.intersectionRatio)}const u=[...t];for(const[l,d]of u)if(d){i(l);break}},r);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const e={...this.state.visibleRows},t=new IntersectionObserver(i=>{for(const r of i){const a=parseInt(r.target.dataset.index);r.isIntersecting?e[a]=!0:delete e[a]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(Rl.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*Rl.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const r of i)r.current&&t.observe(r.current);this.observers.push(t)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e,input:t,left:i,right:r,up:a,down:o}){const u=this.state.searchResults||this.grid;if(!u.length)return;let[l,d]=this.state.pos;const c=(()=>{if(l==0&&d==0&&!e.repeat&&(i||a))return null;if(l==-1)return!e.repeat&&(r||o)&&t.selectionStart==t.value.length?[0,0]:null;if(i||r){let m=u[l];const g=i?-1:1;if(d+=g,!m[d]){if(l+=g,m=u[l],!m)return l=i?0:u.length-1,d=i?0:u[l].length-1,[l,d];d=i?m.length-1:0}return[l,d]}if(a||o){l+=a?-1:1;const m=u[l];return m?(m[d]||(d=m.length-1),[l,d]):(l=a?0:u.length-1,d=a?0:u[l].length-1,[l,d])}})();if(c)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:c,keyboard:!0},()=>{this.scrollTo({row:c[0]})})}scrollTo({categoryId:e,row:t}){const i=this.state.searchResults||this.grid;if(!i.length)return;const r=this.refs.scroll.current,a=r.getBoundingClientRect();let o=0;if(t>=0&&(e=i[t].__categoryId),e&&(o=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(a.top-r.scrollTop)+1),t>=0)if(!t)o=0;else{const u=i[t].__index,l=o+u*this.props.emojiButtonSize,d=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(l<r.scrollTop)o=l;else if(d>r.scrollTop+a.height)o=d-a.height;else return}this.ignoreMouse(),r.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e,emoji:t,pos:i}){if(this.props.onEmojiSelect&&(!t&&i&&(t=this.getEmojiByPos(i)),t)){const r=pB(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&u5.add(r,this.props),this.props.onEmojiSelect(r,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),Ur.set("skin",e)}renderNav(){return ce(LB,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),t=this.state.searchResults&&!this.state.searchResults.length;return ce("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[ce("div",{class:"flex flex-middle flex-grow",children:[ce("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:ce(R0,{emoji:e,id:t?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),ce("div",{class:`margin-${this.dir[0]}`,children:e||t?ce("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[ce("div",{class:"preview-title ellipsis",children:e?e.name:ft.search_no_results_1}),ce("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:ft.search_no_results_2})]}):ce("div",{class:"preview-placeholder color-c",children:ft.pick})})]}),!e&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:t,posinset:i,grid:r}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,l=(e.skins[o-1]||e.skins[0]).native,d=gB(this.state.pos,t),c=t.concat(e.id).join("");return ce(RB,{selected:d,skin:o,size:a,children:ce("button",{"aria-label":l,"aria-selected":d||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:m=>this.handleEmojiClick({e:m,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(t),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[ce("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),ce(R0,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},c)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return ce("div",{children:[ce("div",{class:"spacer"}),ce("div",{class:"flex flex-middle",children:[ce("div",{class:"search relative flex-grow",children:[ce("input",{type:"search",ref:this.refs.searchInput,placeholder:ft.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),ce("span",{class:"icon loupe flex",children:Df.search.loupe}),this.state.searchResults&&ce("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:Df.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?ce("div",{class:"category",ref:this.refs.search,children:[ce("div",{class:`sticky padding-small align-${this.dir[0]}`,children:ft.categories.search}),ce("div",{children:e.length?e.map((t,i)=>ce("div",{class:"flex",children:t.map((r,a)=>this.renderEmojiButton(r,{pos:[i,a],posinset:i*this.props.perLine+a+1,grid:e}))})):ce("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&ce("a",{onClick:this.props.onAddCustomEmoji,children:ft.add_custom})})})]}):null}renderCategories(){const{categories:e}=sn,t=!!this.state.searchResults,i=this.getPerLine();return ce("div",{style:{visibility:t?"hidden":void 0,display:t?"none":void 0,height:"100%"},children:e.map(r=>{const{root:a,rows:o}=this.refs.categories.get(r.id);return ce("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:a,children:[ce("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||ft.categories[r.id]}),ce("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((u,l)=>{const d=u.index-u.index%Rl.rowsPerRender,c=this.state.visibleRows[d],m="current"in u?u:void 0;if(!c&&!m)return null;const g=l*i,p=g+i,w=r.emojis.slice(g,p);return w.length<i&&w.push(...new Array(i-w.length)),ce("div",{"data-index":u.index,ref:m,class:"flex row",style:{top:l*this.props.emojiButtonSize},children:c&&w.map((S,x)=>{if(!S)return ce("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const y=Aa.get(S);return this.renderEmojiButton(y,{pos:[u.index,x],posinset:u.posinset+x,grid:this.grid})})},u.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:ce("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:ce("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":ft.skins.choose,title:ft.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:ce("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),t=e?e.name:"";return ce("div",{"aria-live":"polite",class:"sr-only",children:t})}renderSkins(){const t=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=i.right-t.right-3:r.left=t.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=i.bottom-t.top+6:(r.top=t.bottom-i.top+3,r.bottom="auto"),ce("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":ft.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(a=>{const o=a+1,u=this.state.skin==o;return ce("div",{children:[ce("input",{type:"radio",name:"skin-tone",value:o,"aria-label":ft.skins[o],ref:u?this.refs.skinToneRadio:null,defaultChecked:u,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(o))}}),ce("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(o),onMouseEnter:()=>this.handleSkinMouseOver(o),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[ce("span",{class:`skin-tone skin-tone-${o}`}),ce("span",{class:"margin-small-lr",children:ft.skins[o]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return ce("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&ce("div",{class:"padding-lr",children:this.renderSearch()}),ce("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:ce("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),ai(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),ai(this,"handleClickOutside",t=>{const{element:i}=this.props;t.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(t))}),ai(this,"handleBaseClick",t=>{this.state.showSkins&&(t.target.closest(".menu")||(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins()))}),ai(this,"handleBaseKeydown",t=>{this.state.showSkins&&t.key=="Escape"&&(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins())}),ai(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),ai(this,"handleSearchInput",async()=>{const t=this.refs.searchInput.current;if(!t)return;const{value:i}=t,r=await Aa.search(i),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},a);const o=t.selectionStart==t.value.length?[0,0]:[-1,-1],u=[];u.setsize=r.length;let l=null;for(let d of r)(!u.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=u.length,u.push(l)),l.push(d);this.ignoreMouse(),this.setState({searchResults:u,pos:o},a)}),ai(this,"handleSearchKeyDown",t=>{const i=t.currentTarget;switch(t.stopImmediatePropagation(),t.key){case"ArrowLeft":this.navigate({e:t,input:i,left:!0});break;case"ArrowRight":this.navigate({e:t,input:i,right:!0});break;case"ArrowUp":this.navigate({e:t,input:i,up:!0});break;case"ArrowDown":this.navigate({e:t,input:i,down:!0});break;case"Enter":t.preventDefault(),this.handleEmojiClick({e:t,pos:this.state.pos});break;case"Escape":t.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),ai(this,"clearSearch",()=>{const t=this.refs.searchInput.current;t&&(t.value="",t.focus(),this.handleSearchInput())}),ai(this,"handleCategoryClick",({category:t,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:t.id})}),ai(this,"openSkins",t=>{const{currentTarget:i}=t,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await mB(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class Nh extends kB{async connectedCallback(){const e=c5(this.props,gr,this);e.element=this,e.ref=t=>{this.component=t},await Mu(e),!this.disconnected&&s5(ce(zB,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:Zb(b5)})}}ai(Nh,"Props",gr);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",Nh);var b5={};b5=`:host {
|
|
85
85
|
width: min-content;
|
|
86
86
|
height: 435px;
|
|
87
87
|
min-height: 230px;
|
package/index.mjs
CHANGED
|
@@ -12915,7 +12915,10 @@ const gB = "_form_1haht_141", mB = "_fieldset_1haht_145", pB = "_fieldSetName_1h
|
|
|
12915
12915
|
value: d.values.selectedReason,
|
|
12916
12916
|
placeholder: "Bitte wähle einen Grund aus",
|
|
12917
12917
|
errorMessage: d.touched.selectedReason ? d.errors.selectedReason : void 0,
|
|
12918
|
-
|
|
12918
|
+
items: n.map((y) => ({
|
|
12919
|
+
label: y.label_de,
|
|
12920
|
+
value: y.value
|
|
12921
|
+
}))
|
|
12919
12922
|
}
|
|
12920
12923
|
),
|
|
12921
12924
|
/* @__PURE__ */ k.jsx(
|
|
@@ -12932,17 +12935,17 @@ const gB = "_form_1haht_141", mB = "_fieldset_1haht_145", pB = "_fieldSetName_1h
|
|
|
12932
12935
|
}
|
|
12933
12936
|
),
|
|
12934
12937
|
/* @__PURE__ */ k.jsx(Ae, { type: "body-regular", children: "Du erstellst diese Meldung als:" }),
|
|
12935
|
-
/* @__PURE__ */ k.
|
|
12938
|
+
/* @__PURE__ */ k.jsx(
|
|
12936
12939
|
jp,
|
|
12937
12940
|
{
|
|
12938
12941
|
colorScheme: "dark",
|
|
12939
12942
|
onChange: m,
|
|
12940
12943
|
value: d.values.selectedRole,
|
|
12941
12944
|
errorMessage: d.touched.selectedRole ? d.errors.selectedRole : void 0,
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
12945
|
+
items: [
|
|
12946
|
+
{ label: "Privatperson", value: "myself" },
|
|
12947
|
+
{ label: "Hinweisgeber (Art. 22 DSA)", value: "non_state_actor" },
|
|
12948
|
+
{ label: "Staatliche Stelle", value: "state_actor" }
|
|
12946
12949
|
]
|
|
12947
12950
|
}
|
|
12948
12951
|
),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PopupItemProps } from '../../../../ui/src/lib/Atoms/Dropdowns/PopupItem/PopupItem.types';
|
|
3
3
|
import { OffsetType } from '../../../../ui/src/lib/Organisms/Modals/Popup/Popup.types';
|
|
4
4
|
import { PointOfInterestProfileProps } from './components/PointOfInterestProfileTile/PointOfInterestProfileTile.types';
|
|
5
5
|
export type ProfileControlsProps = {
|
|
6
6
|
moreMenuData: {
|
|
7
7
|
offset?: OffsetType;
|
|
8
|
-
options:
|
|
8
|
+
options: PopupItemProps[];
|
|
9
9
|
};
|
|
10
10
|
tiles: ProfileControlTile[];
|
|
11
11
|
withoutMoreMenu?: boolean;
|