@goodhood-web/nebenan-base 1.7.0-development.16 → 1.7.0-development.18
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 +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -210,7 +210,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const r="<p>An err
|
|
|
210
210
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach(r=>i.set(r)),i}static accessor(e){const i=(this[Lm]=this[Lm]={accessors:{}}).accessors,r=this.prototype;function a(o){const d=pf(o);i[d]||(zM(r,o),i[d]=!0)}return oe.isArray(e)?e.forEach(a):a(e),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);oe.reduceDescriptors(Jt.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(i){this[t]=i}}});oe.freezeMethods(Jt);function J1(n,e){const t=this||dd,i=e||t,r=Jt.from(i.headers);let a=i.data;return oe.forEach(n,function(d){a=d.call(t,a,r.normalize(),e?e.status:void 0)}),r.normalize(),a}function P2(n){return!!(n&&n.__CANCEL__)}function gl(n,e,t){dn.call(this,n??"canceled",dn.ERR_CANCELED,e,t),this.name="CanceledError"}oe.inherits(gl,dn,{__CANCEL__:!0});function A2(n,e,t){const i=t.config.validateStatus;!t.status||!i||i(t.status)?n(t):e(new dn("Request failed with status code "+t.status,[dn.ERR_BAD_REQUEST,dn.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function BM(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function IM(n,e){n=n||10;const t=new Array(n),i=new Array(n);let r=0,a=0,o;return e=e!==void 0?e:1e3,function(f){const h=Date.now(),p=i[a];o||(o=h),t[r]=f,i[r]=h;let m=a,b=0;for(;m!==r;)b+=t[m++],m=m%n;if(r=(r+1)%n,r===a&&(a=(a+1)%n),h-o<e)return;const x=p&&h-p;return x?Math.round(b*1e3/x):void 0}}function OM(n,e){let t=0;const i=1e3/e;let r=null;return function(){const o=this===!0,d=Date.now();if(o||d-t>i)return r&&(clearTimeout(r),r=null),t=d,n.apply(null,arguments);r||(r=setTimeout(()=>(r=null,t=Date.now(),n.apply(null,arguments)),i-(d-t)))}}const Zc=(n,e,t=3)=>{let i=0;const r=IM(50,250);return OM(a=>{const o=a.loaded,d=a.lengthComputable?a.total:void 0,f=o-i,h=r(f),p=o<=d;i=o;const m={loaded:o,total:d,progress:d?o/d:void 0,bytes:f,rate:h||void 0,estimated:h&&d&&p?(d-o)/h:void 0,event:a,lengthComputable:d!=null};m[e?"download":"upload"]=!0,n(m)},t)},DM=Ui.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let i;function r(a){let o=a;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return i=r(window.location.href),function(o){const d=oe.isString(o)?r(o):o;return d.protocol===i.protocol&&d.host===i.host}}():function(){return function(){return!0}}(),jM=Ui.hasStandardBrowserEnv?{write(n,e,t,i,r,a){const o=[n+"="+encodeURIComponent(e)];oe.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),oe.isString(i)&&o.push("path="+i),oe.isString(r)&&o.push("domain="+r),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $M(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function HM(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function L2(n,e){return n&&!$M(e)?HM(n,e):e}const zm=n=>n instanceof Jt?{...n}:n;function zs(n,e){e=e||{};const t={};function i(h,p,m){return oe.isPlainObject(h)&&oe.isPlainObject(p)?oe.merge.call({caseless:m},h,p):oe.isPlainObject(p)?oe.merge({},p):oe.isArray(p)?p.slice():p}function r(h,p,m){if(oe.isUndefined(p)){if(!oe.isUndefined(h))return i(void 0,h,m)}else return i(h,p,m)}function a(h,p){if(!oe.isUndefined(p))return i(void 0,p)}function o(h,p){if(oe.isUndefined(p)){if(!oe.isUndefined(h))return i(void 0,h)}else return i(void 0,p)}function d(h,p,m){if(m in e)return i(h,p);if(m in n)return i(void 0,h)}const f={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:d,headers:(h,p)=>r(zm(h),zm(p),!0)};return oe.forEach(Object.keys(Object.assign({},n,e)),function(p){const m=f[p]||r,b=m(n[p],e[p],p);oe.isUndefined(b)&&m!==d||(t[p]=b)}),t}const z2=n=>{const e=zs({},n);let{data:t,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:a,headers:o,auth:d}=e;e.headers=o=Jt.from(o),e.url=F2(L2(e.baseURL,e.url),n.params,n.paramsSerializer),d&&o.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(oe.isFormData(t)){if(Ui.hasStandardBrowserEnv||Ui.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((f=o.getContentType())!==!1){const[h,...p]=f?f.split(";").map(m=>m.trim()).filter(Boolean):[];o.setContentType([h||"multipart/form-data",...p].join("; "))}}if(Ui.hasStandardBrowserEnv&&(i&&oe.isFunction(i)&&(i=i(e)),i||i!==!1&&DM(e.url))){const h=r&&a&&jM.read(a);h&&o.set(r,h)}return e},NM=typeof XMLHttpRequest<"u",VM=NM&&function(n){return new Promise(function(t,i){const r=z2(n);let a=r.data;const o=Jt.from(r.headers).normalize();let{responseType:d}=r,f;function h(){r.cancelToken&&r.cancelToken.unsubscribe(f),r.signal&&r.signal.removeEventListener("abort",f)}let p=new XMLHttpRequest;p.open(r.method.toUpperCase(),r.url,!0),p.timeout=r.timeout;function m(){if(!p)return;const x=Jt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),F={data:!d||d==="text"||d==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:x,config:n,request:p};A2(function(T){t(T),h()},function(T){i(T),h()},F),p=null}"onloadend"in p?p.onloadend=m:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(m)},p.onabort=function(){p&&(i(new dn("Request aborted",dn.ECONNABORTED,r,p)),p=null)},p.onerror=function(){i(new dn("Network Error",dn.ERR_NETWORK,r,p)),p=null},p.ontimeout=function(){let _=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const F=r.transitional||R2;r.timeoutErrorMessage&&(_=r.timeoutErrorMessage),i(new dn(_,F.clarifyTimeoutError?dn.ETIMEDOUT:dn.ECONNABORTED,r,p)),p=null},a===void 0&&o.setContentType(null),"setRequestHeader"in p&&oe.forEach(o.toJSON(),function(_,F){p.setRequestHeader(F,_)}),oe.isUndefined(r.withCredentials)||(p.withCredentials=!!r.withCredentials),d&&d!=="json"&&(p.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&p.addEventListener("progress",Zc(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",Zc(r.onUploadProgress)),(r.cancelToken||r.signal)&&(f=x=>{p&&(i(!x||x.type?new gl(null,n,p):x),p.abort(),p=null)},r.cancelToken&&r.cancelToken.subscribe(f),r.signal&&(r.signal.aborted?f():r.signal.addEventListener("abort",f)));const b=BM(r.url);if(b&&Ui.protocols.indexOf(b)===-1){i(new dn("Unsupported protocol "+b+":",dn.ERR_BAD_REQUEST,n));return}p.send(a||null)})},GM=(n,e)=>{let t=new AbortController,i;const r=function(f){if(!i){i=!0,o();const h=f instanceof Error?f:this.reason;t.abort(h instanceof dn?h:new gl(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{r(new dn(`timeout ${e} of ms exceeded`,dn.ETIMEDOUT))},e);const o=()=>{n&&(a&&clearTimeout(a),a=null,n.forEach(f=>{f&&(f.removeEventListener?f.removeEventListener("abort",r):f.unsubscribe(r))}),n=null)};n.forEach(f=>f&&f.addEventListener&&f.addEventListener("abort",r));const{signal:d}=t;return d.unsubscribe=o,[d,()=>{a&&clearTimeout(a),a=null}]},WM=function*(n,e){let t=n.byteLength;if(!e||t<e){yield n;return}let i=0,r;for(;i<t;)r=i+e,yield n.slice(i,r),i=r},UM=async function*(n,e,t){for await(const i of n)yield*WM(ArrayBuffer.isView(i)?i:await t(String(i)),e)},Bm=(n,e,t,i,r)=>{const a=UM(n,e,r);let o=0;return new ReadableStream({type:"bytes",async pull(d){const{done:f,value:h}=await a.next();if(f){d.close(),i();return}let p=h.byteLength;t&&t(o+=p),d.enqueue(new Uint8Array(h))},cancel(d){return i(d),a.return()}},{highWaterMark:2})},Im=(n,e)=>{const t=n!=null;return i=>setTimeout(()=>e({lengthComputable:t,total:n,loaded:i}))},Ru=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",B2=Ru&&typeof ReadableStream=="function",Nh=Ru&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),ZM=B2&&(()=>{let n=!1;const e=new Request(Ui.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e})(),Om=64*1024,Vh=B2&&!!(()=>{try{return oe.isReadableStream(new Response("").body)}catch{}})(),qc={stream:Vh&&(n=>n.body)};Ru&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!qc[e]&&(qc[e]=oe.isFunction(n[e])?t=>t[e]():(t,i)=>{throw new dn(`Response type '${e}' is not supported`,dn.ERR_NOT_SUPPORT,i)})})})(new Response);const qM=async n=>{if(n==null)return 0;if(oe.isBlob(n))return n.size;if(oe.isSpecCompliantForm(n))return(await new Request(n).arrayBuffer()).byteLength;if(oe.isArrayBufferView(n))return n.byteLength;if(oe.isURLSearchParams(n)&&(n=n+""),oe.isString(n))return(await Nh(n)).byteLength},KM=async(n,e)=>{const t=oe.toFiniteNumber(n.getContentLength());return t??qM(e)},YM=Ru&&(async n=>{let{url:e,method:t,data:i,signal:r,cancelToken:a,timeout:o,onDownloadProgress:d,onUploadProgress:f,responseType:h,headers:p,withCredentials:m="same-origin",fetchOptions:b}=z2(n);h=h?(h+"").toLowerCase():"text";let[x,_]=r||a||o?GM([r,a],o):[],F,R;const T=()=>{!F&&setTimeout(()=>{x&&x.unsubscribe()}),F=!0};let D;try{if(f&&ZM&&t!=="get"&&t!=="head"&&(D=await KM(p,i))!==0){let V=new Request(e,{method:"POST",body:i,duplex:"half"}),Z;oe.isFormData(i)&&(Z=V.headers.get("content-type"))&&p.setContentType(Z),V.body&&(i=Bm(V.body,Om,Im(D,Zc(f)),null,Nh))}oe.isString(m)||(m=m?"cors":"omit"),R=new Request(e,{...b,signal:x,method:t.toUpperCase(),headers:p.normalize().toJSON(),body:i,duplex:"half",withCredentials:m});let j=await fetch(R);const N=Vh&&(h==="stream"||h==="response");if(Vh&&(d||N)){const V={};["status","statusText","headers"].forEach(ue=>{V[ue]=j[ue]});const Z=oe.toFiniteNumber(j.headers.get("content-length"));j=new Response(Bm(j.body,Om,d&&Im(Z,Zc(d,!0)),N&&T,Nh),V)}h=h||"text";let B=await qc[oe.findKey(qc,h)||"text"](j,n);return!N&&T(),_&&_(),await new Promise((V,Z)=>{A2(V,Z,{data:B,headers:Jt.from(j.headers),status:j.status,statusText:j.statusText,config:n,request:R})})}catch(j){throw T(),j&&j.name==="TypeError"&&/fetch/i.test(j.message)?Object.assign(new dn("Network Error",dn.ERR_NETWORK,n,R),{cause:j.cause||j}):dn.from(j,j&&j.code,n,R)}}),Gh={http:hM,xhr:VM,fetch:YM};oe.forEach(Gh,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Dm=n=>`- ${n}`,JM=n=>oe.isFunction(n)||n===null||n===!1,I2={getAdapter:n=>{n=oe.isArray(n)?n:[n];const{length:e}=n;let t,i;const r={};for(let a=0;a<e;a++){t=n[a];let o;if(i=t,!JM(t)&&(i=Gh[(o=String(t)).toLowerCase()],i===void 0))throw new dn(`Unknown adapter '${o}'`);if(i)break;r[o||"#"+a]=i}if(!i){const a=Object.entries(r).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let o=e?a.length>1?`since :
|
|
211
211
|
`+a.map(Dm).join(`
|
|
212
212
|
`):" "+Dm(a[0]):"as no adapter specified";throw new dn("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:Gh};function X1(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new gl(null,n)}function jm(n){return X1(n),n.headers=Jt.from(n.headers),n.data=J1.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),I2.getAdapter(n.adapter||dd.adapter)(n).then(function(i){return X1(n),i.data=J1.call(n,n.transformResponse,i),i.headers=Jt.from(i.headers),i},function(i){return P2(i)||(X1(n),i&&i.response&&(i.response.data=J1.call(n,n.transformResponse,i.response),i.response.headers=Jt.from(i.response.headers))),Promise.reject(i)})}const O2="1.7.2",Up={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Up[n]=function(i){return typeof i===n||"a"+(e<1?"n ":" ")+n}});const $m={};Up.transitional=function(e,t,i){function r(a,o){return"[Axios v"+O2+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,d)=>{if(e===!1)throw new dn(r(o," has been removed"+(t?" in "+t:"")),dn.ERR_DEPRECATED);return t&&!$m[o]&&($m[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,o,d):!0}};function XM(n,e,t){if(typeof n!="object")throw new dn("options must be an object",dn.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let r=i.length;for(;r-- >0;){const a=i[r],o=e[a];if(o){const d=n[a],f=d===void 0||o(d,a,n);if(f!==!0)throw new dn("option "+a+" must be "+f,dn.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new dn("Unknown option "+a,dn.ERR_BAD_OPTION)}}const Wh={assertOptions:XM,validators:Up},ka=Wh.validators;let Ss=class{constructor(e){this.defaults=e,this.interceptors={request:new Am,response:new Am}}async request(e,t){try{return await this._request(e,t)}catch(i){if(i instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
|
213
|
-
`+a):i.stack=a}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=zs(this.defaults,t);const{transitional:i,paramsSerializer:r,headers:a}=t;i!==void 0&&Wh.assertOptions(i,{silentJSONParsing:ka.transitional(ka.boolean),forcedJSONParsing:ka.transitional(ka.boolean),clarifyTimeoutError:ka.transitional(ka.boolean)},!1),r!=null&&(oe.isFunction(r)?t.paramsSerializer={serialize:r}:Wh.assertOptions(r,{encode:ka.function,serialize:ka.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&oe.merge(a.common,a[t.method]);a&&oe.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),t.headers=Jt.concat(o,a);const d=[];let f=!0;this.interceptors.request.forEach(function(F){typeof F.runWhen=="function"&&F.runWhen(t)===!1||(f=f&&F.synchronous,d.unshift(F.fulfilled,F.rejected))});const h=[];this.interceptors.response.forEach(function(F){h.push(F.fulfilled,F.rejected)});let p,m=0,b;if(!f){const _=[jm.bind(this),void 0];for(_.unshift.apply(_,d),_.push.apply(_,h),b=_.length,p=Promise.resolve(t);m<b;)p=p.then(_[m++],_[m++]);return p}b=d.length;let x=t;for(m=0;m<b;){const _=d[m++],F=d[m++];try{x=_(x)}catch(R){F.call(this,R);break}}try{p=jm.call(this,x)}catch(_){return Promise.reject(_)}for(m=0,b=h.length;m<b;)p=p.then(h[m++],h[m++]);return p}getUri(e){e=zs(this.defaults,e);const t=L2(e.baseURL,e.url);return F2(t,e.params,e.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(e){Ss.prototype[e]=function(t,i){return this.request(zs(i||{},{method:e,url:t,data:(i||{}).data}))}});oe.forEach(["post","put","patch"],function(e){function t(i){return function(a,o,d){return this.request(zs(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Ss.prototype[e]=t(),Ss.prototype[e+"Form"]=t(!0)});let QM=class D2{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const o=new Promise(d=>{i.subscribe(d),a=d}).then(r);return o.cancel=function(){i.unsubscribe(a)},o},e(function(a,o,d){i.reason||(i.reason=new gl(a,o,d),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new D2(function(r){e=r}),cancel:e}}};function eP(n){return function(t){return n.apply(null,t)}}function nP(n){return oe.isObject(n)&&n.isAxiosError===!0}const Uh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Uh).forEach(([n,e])=>{Uh[e]=n});function j2(n){const e=new Ss(n),t=m2(Ss.prototype.request,e);return oe.extend(t,Ss.prototype,e,{allOwnKeys:!0}),oe.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return j2(zs(n,r))},t}const Qn=j2(dd);Qn.Axios=Ss;Qn.CanceledError=gl;Qn.CancelToken=QM;Qn.isCancel=P2;Qn.VERSION=O2;Qn.toFormData=Fu;Qn.AxiosError=dn;Qn.Cancel=Qn.CanceledError;Qn.all=function(e){return Promise.all(e)};Qn.spread=eP;Qn.isAxiosError=nP;Qn.mergeConfig=zs;Qn.AxiosHeaders=Jt;Qn.formToJSON=n=>M2(oe.isHTMLForm(n)?new FormData(n):n);Qn.getAdapter=I2.getAdapter;Qn.HttpStatusCode=Uh;Qn.default=Qn;const{Axios:NI,AxiosError:VI,CanceledError:GI,isCancel:WI,CancelToken:UI,VERSION:ZI,all:qI,Cancel:KI,isAxiosError:tP,spread:YI,toFormData:JI,AxiosHeaders:XI,HttpStatusCode:QI,formToJSON:eO,getAdapter:nO,mergeConfig:tO}=Qn,Jp=class Jp{static setup(e){return this.instance||(this.instance=Qn.create({baseURL:e.baseUrl}),e.basicAuth&&(this.instance.defaults.auth={password:e.basicAuth.password,username:e.basicAuth.username}),e.authToken&&(this.instance.defaults.headers.common["X-Auth-Token"]=e.authToken),this.instance.interceptors.response.use(t=>t,t=>{throw tP(t)?new Error(this.generateErrorMsg(t)):t})),this.instance}static generateErrorMsg(e){return e.response?`API Error: ${e.response.status} - ${e.response.data}`:e.request?"API Error: Request made but no response received.":`API Error: ${e.message}`}static getApi(){if(!this.instance)throw new Error("API instance is not initialized. Call setup first.");return this.instance}};Jp.instance=null;let Zh=Jp;async function iP(n){return(await Zh.getApi().post("/public/v1/complaints.json",{complaint:n})).data}const rP="_form_1fm69_106",aP="_fieldset_1fm69_110",sP="_fieldSetName_1fm69_121",oP="_successBody_1fm69_127",lP="_generalError_1fm69_134",gf={form:rP,fieldset:aP,fieldSetName:sP,successBody:oP,generalError:lP},fP=ks.object({reasonText:ks.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:ks.string({required_error:"Bitte gib eine gültige E-Mail-Adresse ein."}).email("Bitte gib eine gültige E-Mail-Adresse ein."),reporterFirstName:ks.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:ks.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:ks.string({invalid_type_error:"Bitte wähle eine Option."}),selectedRole:ks.string({required_error:"Bitte wähle eine Rolle."})}),dP=({handleModalClick:n,open:e,subjectId:t})=>{const[i,r]=P.useState(!1),a=uF({initialValues:{errorText:"",reasonText:"",reporterEmail:"",reporterFirstName:"",reporterLastName:"",selectedReason:"",selectedRole:"myself"},onSubmit:(_,{setErrors:F,setSubmitting:R})=>{iP({reason:_.selectedReason,report_origin:_.selectedRole,reporter_email:_.reporterEmail,reporter_firstname:_.reporterFirstName,reporter_lastname:_.reporterLastName,reporter_message:_.reasonText,subject_id:t,subject_type:"HoodMessage"}).then(T=>{r(!0)}).catch(T=>{F({errorText:"Ein Fehler ist aufgetreten, bitte versuchen Sie es später noch einmal."}),console.log(T)}).finally(()=>{R(!1)})},validationSchema:g2(fP)}),o=_=>{a.setFieldValue("selectedReason",_)},d=_=>{a.setFieldValue("selectedRole",_)},f=FR(),h=()=>{n()},p=()=>{a.handleSubmit()};let m="Inhalt melden",b=L.jsx(K8,{className:gf.form,children:L.jsxs(q8,{className:gf.fieldset,children:[L.jsx(on,{type:"body-regular",children:"Warum hältst du den Inhalt für problematisch?"}),L.jsx(Kg,{colorScheme:"dark",onChange:o,value:a.values.selectedReason,placeholder:"Bitte wähle einen Grund aus",errorMessage:a.touched.selectedReason?a.errors.selectedReason:void 0,children:f.complaint_reasons.map(_=>L.jsx("option",{value:_.value,children:_.label_de},_.value))}),L.jsx(Ox,{size:"small",id:"reasonText",label:"Begründe die Meldung",colorScheme:"dark",value:a.values.reasonText,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reasonText?a.errors.reasonText:void 0}),L.jsx(on,{type:"body-regular",children:"Du erstellst diese Meldung als:"}),L.jsxs(Kg,{colorScheme:"dark",onChange:d,value:a.values.selectedRole,errorMessage:a.touched.selectedRole?a.errors.selectedRole:void 0,children:[L.jsx("option",{value:"myself",children:"Privatperson"}),L.jsx("option",{value:"non_state_actor",children:"Hinweisgeber (Art. 22 DSA)"}),L.jsx("option",{value:"state_actor",children:"Staatliche Stelle"})]}),L.jsx(xp,{}),L.jsxs("div",{className:gf.fieldSetName,children:[L.jsx(V1,{colorScheme:"dark",label:"Vorname",size:"medium",id:"reporterFirstName",value:a.values.reporterFirstName,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterFirstName?a.errors.reporterFirstName:void 0}),L.jsx(V1,{colorScheme:"dark",label:"Nachname",size:"medium",id:"reporterLastName",value:a.values.reporterLastName,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterLastName?a.errors.reporterLastName:void 0})]}),L.jsx(V1,{colorScheme:"dark",label:"E-Mail-Adresse",size:"medium",id:"reporterEmail",value:a.values.reporterEmail,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterEmail?a.errors.reporterEmail:void 0}),a.errors.errorText&&L.jsx(on,{type:"body-semibold",className:gf.generalError,children:a.errors.errorText}),L.jsx(on,{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.'}),L.jsx(on,{type:"detail-medium",children:L.jsx(Q7,{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;return i?(m="Vielen Dank für deine Meldung!",b=L.jsxs("div",{className:gf.successBody,children:[L.jsx(on,{type:"h5",children:"Was passiert jetzt?"}),L.jsx(on,{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."})]})):x=L.jsx(pu,{onClick:p,text:"Absenden",color:"highlight"}),L.jsx("div",{children:L.jsx(Fs,{children:L.jsx(xv,{open:e,onClose:h,modalBody:b,headerTitle:m,modalFooter:x,closeButtonText:"Schließen"})})})},$2=()=>"ontouchstart"in window,cP=({cancelText:n="Abbrechen",confirmText:e="Bestätigen",content:t,handleCancel:i,handleConfirm:r,primaryCtaColor:a="primary",title:o})=>{const d=()=>L.jsx(id,{children:t}),f=()=>L.jsx(tl,{headline:o,as:"h3",rightElement:L.jsx(Xt,{ariaLabel:"close-sheet",onClick:i,icon:"cross",size:"small"})}),h=()=>L.jsx(pu,{color:a,onClick:r,size:"medium",text:e});return $2()?L.jsx(z8,{open:!0,onClose:i,sheetBody:d(),sheetHeader:f(),ctaButtonProps:{color:"primary",fullWidth:!0,onClick:r,size:"medium",text:e},linkProps:{color:"blue",onClick:i,size:"large",text:n}}):L.jsx(xv,{open:!0,onClose:i,modalBody:d(),headerTitle:o,closeButtonText:n,modalFooter:h()})},uP="_root_ius6r_106",hP="_textButton_ius6r_113",Hm={root:uP,textButton:hP},pP=({alt:n,ariaLabel:e,onClick:t,src:i,text:r})=>L.jsxs("div",{className:Hm.root,children:[L.jsx(rl,{src:i,shape:"circular",size:"40",alt:n}),L.jsx(Ci,{className:Hm.textButton,onClick:t,children:L.jsx(on,{type:"body-regular",as:"span",children:r})}),L.jsx(Xt,{icon:"pencil",size:"small",onClick:t,variant:"circular",ariaLabel:e})]}),gP="_container_16u0z_106",mP="_sidebarLeft_16u0z_114",vP="_navBar_16u0z_118",kP="_mainContent_16u0z_124",wP="_sidebarRight_16u0z_130",mf={container:gP,sidebarLeft:mP,navBar:vP,mainContent:kP,sidebarRight:wP},bP=({children:n,left:e,navbar:t,right:i})=>L.jsxs("div",{className:mf.container,children:[L.jsx("nav",{className:mf.navBar,children:t}),e&&L.jsx("aside",{className:mf.sidebarLeft,children:e}),L.jsx("main",{className:mf.mainContent,children:n}),i&&L.jsx("aside",{className:mf.sidebarRight,children:i})]}),yP="_inputContainer_ow9ut_106",_P="_searchInput_ow9ut_121",xP="_searchButton_ow9ut_165",dc={inputContainer:yP,"inputContainer--invalid":"_inputContainer--invalid_ow9ut_118",searchInput:_P,searchButton:xP},SP=({name:n,onSearchSubmit:e,placeholder:t,ref:i})=>{const[r,a]=P.useState(""),[o,d]=P.useState(!0),{getInputProps:f}=cp({inputRef:i,onChange:x=>{a(x.target.value),p(x.target.value)},value:r}),h=f(),p=x=>{const _=x.length<250;d(_)},m=x=>{x.preventDefault(),o&&(e(r),a(""))},b=!r||r.trim().length<2;return L.jsx("form",{onSubmit:m,children:L.jsxs("div",{className:Ke(dc.inputContainer,{[dc["inputContainer--invalid"]]:!o}),children:[L.jsx("input",{...h,type:"text",name:n,placeholder:t,className:dc.searchInput}),L.jsx(Xt,{icon:"search",className:dc.searchButton,size:"small",ariaLabelledBy:"searchButton",onClick:m,disabled:b,type:"submit"})]})})},CP="_navbarWrapper_k1l82_106",EP="_navbar_k1l82_106",TP="_right_k1l82_118",cc={navbarWrapper:CP,navbar:EP,right:TP},FP=({left:n,right:e})=>L.jsx("div",{className:cc.navbarWrapper,children:L.jsxs("div",{className:cc.navbar,children:[L.jsx("div",{className:cc.left,children:n}),L.jsx("div",{className:cc.right,children:e})]})}),RP="Suchen",MP="Oh nein!",PP="Das Emoji konnte nicht gefunden werden",AP="Wähle ein Emoji…",LP="Füge ein benutzerdefiniertes Emoji hinzu",zP={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"},BP={1:"Standard",2:"Hell",3:"Mittelhell",4:"Mittel",5:"Mitteldunkel",6:"Dunkel",choose:"Wähle eine Standard-Hautfarbe"},IP={search:RP,search_no_results_1:MP,search_no_results_2:PP,pick:AP,add_custom:LP,categories:zP,skins:BP};function H2(n){return n&&n.__esModule?n.default:n}function xi(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Mu,Ye,N2,Mf,V2,Nm,Kc={},G2=[],OP=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _a(n,e){for(var t in e)n[t]=e[t];return n}function W2(n){var e=n.parentNode;e&&e.removeChild(n)}function qh(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?Mu.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 xc(n,o,i,r,null)}function xc(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??++N2};return r==null&&Ye.vnode!=null&&Ye.vnode(a),a}function Ir(){return{current:null}}function fl(n){return n.children}function hr(n,e){this.props=n,this.context=e}function dl(n,e){if(e==null)return n.__?dl(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"?dl(n):null}function U2(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 U2(n)}}function Vm(n){(!n.__d&&(n.__d=!0)&&Mf.push(n)&&!Yc.__r++||Nm!==Ye.debounceRendering)&&((Nm=Ye.debounceRendering)||V2)(Yc)}function Yc(){for(var n;Yc.__r=Mf.length;)n=Mf.sort(function(e,t){return e.__v.__b-t.__v.__b}),Mf=[],n.some(function(e){var t,i,r,a,o,d;e.__d&&(o=(a=(t=e).__v).__e,(d=t.__P)&&(i=[],(r=_a({},a)).__v=a.__v+1,Zp(d,a,r,t.__n,d.ownerSVGElement!==void 0,a.__h!=null?[o]:null,i,o??dl(a),a.__h),Y2(i,a),a.__e!=o&&U2(a)))})}function Z2(n,e,t,i,r,a,o,d,f,h){var p,m,b,x,_,F,R,T=i&&i.__k||G2,D=T.length;for(t.__k=[],p=0;p<e.length;p++)if((x=t.__k[p]=(x=e[p])==null||typeof x=="boolean"?null:typeof x=="string"||typeof x=="number"||typeof x=="bigint"?xc(null,x,null,null,x):Array.isArray(x)?xc(fl,{children:x},null,null,null):x.__b>0?xc(x.type,x.props,x.key,null,x.__v):x)!=null){if(x.__=t,x.__b=t.__b+1,(b=T[p])===null||b&&x.key==b.key&&x.type===b.type)T[p]=void 0;else for(m=0;m<D;m++){if((b=T[m])&&x.key==b.key&&x.type===b.type){T[m]=void 0;break}b=null}Zp(n,x,b=b||Kc,r,a,o,d,f,h),_=x.__e,(m=x.ref)&&b.ref!=m&&(R||(R=[]),b.ref&&R.push(b.ref,null,x),R.push(m,x.__c||_,x)),_!=null?(F==null&&(F=_),typeof x.type=="function"&&x.__k===b.__k?x.__d=f=q2(x,f,n):f=K2(n,x,b,T,_,f),typeof t.type=="function"&&(t.__d=f)):f&&b.__e==f&&f.parentNode!=n&&(f=dl(b))}for(t.__e=F,p=D;p--;)T[p]!=null&&(typeof t.type=="function"&&T[p].__e!=null&&T[p].__e==t.__d&&(t.__d=dl(i,p+1)),X2(T[p],T[p]));if(R)for(p=0;p<R.length;p++)J2(R[p],R[++p],R[++p])}function q2(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"?q2(i,e,t):K2(t,i,i,r,i.__e,e));return e}function Jc(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){Jc(t,e)}):e.push(n)),e}function K2(n,e,t,i,r,a){var o,d,f;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(d=a,f=0;(d=d.nextSibling)&&f<i.length;f+=2)if(d==r)break e;n.insertBefore(r,a),o=a}return o!==void 0?o:r.nextSibling}function DP(n,e,t,i,r){var a;for(a in t)a==="children"||a==="key"||a in e||Xc(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]||Xc(n,a,e[a],t[a],i)}function Gm(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||OP.test(e)?t:t+"px"}function Xc(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||Gm(n.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||Gm(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?Um:Wm,a):n.removeEventListener(e,a?Um:Wm,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 Wm(n){this.l[n.type+!1](Ye.event?Ye.event(n):n)}function Um(n){this.l[n.type+!0](Ye.event?Ye.event(n):n)}function Zp(n,e,t,i,r,a,o,d,f){var h,p,m,b,x,_,F,R,T,D,j,N=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(f=t.__h,d=e.__e=t.__e,e.__h=null,a=[d]),(h=Ye.__b)&&h(e);try{e:if(typeof N=="function"){if(R=e.props,T=(h=N.contextType)&&i[h.__c],D=h?T?T.props.value:h.__:i,t.__c?F=(p=e.__c=t.__c).__=p.__E:("prototype"in N&&N.prototype.render?e.__c=p=new N(R,D):(e.__c=p=new hr(R,D),p.constructor=N,p.render=$P),T&&T.sub(p),p.props=R,p.state||(p.state={}),p.context=D,p.__n=i,m=p.__d=!0,p.__h=[]),p.__s==null&&(p.__s=p.state),N.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=_a({},p.__s)),_a(p.__s,N.getDerivedStateFromProps(R,p.__s))),b=p.props,x=p.state,m)N.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(N.getDerivedStateFromProps==null&&R!==b&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(R,D),!p.__e&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(R,p.__s,D)===!1||e.__v===t.__v){p.props=R,p.state=p.__s,e.__v!==t.__v&&(p.__d=!1),p.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(B){B&&(B.__=e)}),p.__h.length&&o.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(R,p.__s,D),p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(b,x,_)})}p.context=D,p.props=R,p.state=p.__s,(h=Ye.__r)&&h(e),p.__d=!1,p.__v=e,p.__P=n,h=p.render(p.props,p.state,p.context),p.state=p.__s,p.getChildContext!=null&&(i=_a(_a({},i),p.getChildContext())),m||p.getSnapshotBeforeUpdate==null||(_=p.getSnapshotBeforeUpdate(b,x)),j=h!=null&&h.type===fl&&h.key==null?h.props.children:h,Z2(n,Array.isArray(j)?j:[j],e,t,i,r,a,o,d,f),p.base=e.__e,e.__h=null,p.__h.length&&o.push(p),F&&(p.__E=p.__=null),p.__e=!1}else a==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=jP(t.__e,e,t,i,r,a,o,f);(h=Ye.diffed)&&h(e)}catch(B){e.__v=null,(f||a!=null)&&(e.__e=d,e.__h=!!f,a[a.indexOf(d)]=null),Ye.__e(B,e,t)}}function Y2(n,e){Ye.__c&&Ye.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(i){i.call(t)})}catch(i){Ye.__e(i,t.__v)}})}function jP(n,e,t,i,r,a,o,d){var f,h,p,m=t.props,b=e.props,x=e.type,_=0;if(x==="svg"&&(r=!0),a!=null){for(;_<a.length;_++)if((f=a[_])&&"setAttribute"in f==!!x&&(x?f.localName===x:f.nodeType===3)){n=f,a[_]=null;break}}if(n==null){if(x===null)return document.createTextNode(b);n=r?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,b.is&&b),a=null,d=!1}if(x===null)m===b||d&&n.data===b||(n.data=b);else{if(a=a&&Mu.call(n.childNodes),h=(m=t.props||Kc).dangerouslySetInnerHTML,p=b.dangerouslySetInnerHTML,!d){if(a!=null)for(m={},_=0;_<n.attributes.length;_++)m[n.attributes[_].name]=n.attributes[_].value;(p||h)&&(p&&(h&&p.__html==h.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||""))}if(DP(n,b,m,r,d),p)e.__k=[];else if(_=e.props.children,Z2(n,Array.isArray(_)?_:[_],e,t,i,r&&x!=="foreignObject",a,o,a?a[0]:t.__k&&dl(t,0),d),a!=null)for(_=a.length;_--;)a[_]!=null&&W2(a[_]);d||("value"in b&&(_=b.value)!==void 0&&(_!==m.value||_!==n.value||x==="progress"&&!_)&&Xc(n,"value",_,m.value,!1),"checked"in b&&(_=b.checked)!==void 0&&_!==n.checked&&Xc(n,"checked",_,m.checked,!1))}return n}function J2(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(i){Ye.__e(i,t)}}function X2(n,e,t){var i,r;if(Ye.unmount&&Ye.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||J2(i,null,e)),(i=n.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){Ye.__e(a,e)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&X2(i[r],e,typeof n.type!="function");t||n.__e==null||W2(n.__e),n.__e=n.__d=void 0}function $P(n,e,t){return this.constructor(n,t)}function Q2(n,e,t){var i,r,a;Ye.__&&Ye.__(n,e),r=(i=typeof t=="function")?null:t&&t.__k||e.__k,a=[],Zp(e,n=(!i&&t||e).__k=qh(fl,null,[n]),r||Kc,Kc,e.ownerSVGElement!==void 0,!i&&t?[t]:r?null:e.firstChild?Mu.call(e.childNodes):null,a,!i&&t?t:r?r.__e:e.firstChild,i),Y2(a,n)}Mu=G2.slice,Ye={__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}},N2=0,hr.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_a({},this.state),typeof n=="function"&&(n=n(_a({},t),this.props)),n&&_a(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),Vm(this))},hr.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Vm(this))},hr.prototype.render=fl,Mf=[],V2=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Yc.__r=0;var HP=0;function me(n,e,t,i,r){var a,o,d={};for(o in e)o=="ref"?a=e[o]:d[o]=e[o];var f={type:n,props:d,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--HP,__source:i,__self:r};if(typeof n=="function"&&(a=n.defaultProps))for(o in a)d[o]===void 0&&(d[o]=a[o]);return Ye.vnode&&Ye.vnode(f),f}function NP(n,e){try{window.localStorage[`emoji-mart.${n}`]=JSON.stringify(e)}catch{}}function VP(n){try{const e=window.localStorage[`emoji-mart.${n}`];if(e)return JSON.parse(e)}catch{}}var Sa={set:NP,get:VP};const Q1=new Map,GP=[{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 WP(){for(const{v:n,emoji:e}of GP)if(e3(e))return n}function UP(){return!e3("🇨🇦")}function e3(n){if(Q1.has(n))return Q1.get(n);const e=ZP(n);return Q1.set(n,e),e}const ZP=(()=>{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 d=0;for(;d<o&&!a[d+3];d+=4);if(d>=o)return!1;const f=t+d/4%t,h=Math.floor(d/4/t),p=n.getImageData(f,h,1,1).data;return!(a[d]!==p[0]||a[d+2]!==p[2]||n.measureText(r).width>=t)}})();var Zm={latestVersion:WP,noCountryFlags:UP};const Kh=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let wt=null;function qP(n){wt||(wt=Sa.get("frequently")||{});const e=n.id||n;e&&(wt[e]||(wt[e]=0),wt[e]+=1,Sa.set("last",e),Sa.set("frequently",wt))}function KP({maxFrequentRows:n,perLine:e}){if(!n)return[];wt||(wt=Sa.get("frequently"));let t=[];if(!wt){wt={};for(let a in Kh.slice(0,e)){const o=Kh[a];wt[o]=e-a,t.push(o)}return t}const i=n*e,r=Sa.get("last");for(let a in wt)t.push(a);if(t.sort((a,o)=>{const d=wt[o],f=wt[a];return d==f?a.localeCompare(o):d-f}),t.length>i){const a=t.slice(i);t=t.slice(0,i);for(let o of a)o!=r&&delete wt[o];r&&t.indexOf(r)==-1&&(delete wt[t[t.length-1]],t.splice(-1,1,r)),Sa.set("frequently",wt)}return t}var n3={add:qP,get:KP,DEFAULTS:Kh},t3={};t3=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 $r={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 Tt=null,kn=null;const eh={};async function qm(n){if(eh[n])return eh[n];const t=await(await fetch(n)).json();return eh[n]=t,t}let nh=null,i3=null,r3=!1;function cd(n,{caller:e}={}){return nh||(nh=new Promise(t=>{i3=t})),n?YP(n):e&&!r3&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),nh}async function YP(n){r3=!0;let{emojiVersion:e,set:t,locale:i}=n;if(e||(e=$r.emojiVersion.value),t||(t=$r.set.value),i||(i=$r.locale.value),kn)kn.categories=kn.categories.filter(f=>!f.name);else{kn=(typeof n.data=="function"?await n.data():n.data)||await qm(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${t}.json`),kn.emoticons={},kn.natives={},kn.categories.unshift({id:"frequent",emojis:[]});for(const f in kn.aliases){const h=kn.aliases[f],p=kn.emojis[h];p&&(p.aliases||(p.aliases=[]),p.aliases.push(f))}kn.originalCategories=kn.categories}if(Tt=(typeof n.i18n=="function"?await n.i18n():n.i18n)||(i=="en"?H2(t3):await qm(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),n.custom)for(let f in n.custom){f=parseInt(f);const h=n.custom[f],p=n.custom[f-1];if(!(!h.emojis||!h.emojis.length)){h.id||(h.id=`custom_${f+1}`),h.name||(h.name=Tt.categories.custom),p&&!h.icon&&(h.target=p.target||p),kn.categories.push(h);for(const m of h.emojis)kn.emojis[m.id]=m}}n.categories&&(kn.categories=kn.originalCategories.filter(f=>n.categories.indexOf(f.id)!=-1).sort((f,h)=>{const p=n.categories.indexOf(f.id),m=n.categories.indexOf(h.id);return p-m}));let r=null,a=null;t=="native"&&(r=Zm.latestVersion(),a=n.noCountryFlags||Zm.noCountryFlags());let o=kn.categories.length,d=!1;for(;o--;){const f=kn.categories[o];if(f.id=="frequent"){let{maxFrequentRows:m,perLine:b}=n;m=m>=0?m:$r.maxFrequentRows.value,b||(b=$r.perLine.value),f.emojis=n3.get({maxFrequentRows:m,perLine:b})}if(!f.emojis||!f.emojis.length){kn.categories.splice(o,1);continue}const{categoryIcons:h}=n;if(h){const m=h[f.id];m&&!f.icon&&(f.icon=m)}let p=f.emojis.length;for(;p--;){const m=f.emojis[p],b=m.id?m:kn.emojis[m],x=()=>{f.emojis.splice(p,1)};if(!b||n.exceptEmojis&&n.exceptEmojis.includes(b.id)){x();continue}if(r&&b.version>r){x();continue}if(a&&f.id=="flags"&&!nA.includes(b.id)){x();continue}if(!b.search){if(d=!0,b.search=","+[[b.id,!1],[b.name,!0],[b.keywords,!1],[b.emoticons,!1]].map(([F,R])=>{if(F)return(Array.isArray(F)?F:[F]).map(T=>(R?T.split(/[-|_|\s]+/):[T]).map(D=>D.toLowerCase())).flat()}).flat().filter(F=>F&&F.trim()).join(","),b.emoticons)for(const F of b.emoticons)kn.emoticons[F]||(kn.emoticons[F]=b.id);let _=0;for(const F of b.skins){if(!F)continue;_++;const{native:R}=F;R&&(kn.natives[R]=b.id,b.search+=`,${R}`);const T=_==1?"":`:skin-tone-${_}:`;F.shortcodes=`:${b.id}:${T}`}}}}d&&Cs.reset(),i3()}function a3(n,e,t){n||(n={});const i={};for(let r in e)i[r]=s3(r,n,e,t);return i}function s3(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 JP=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let Yh=null;function XP(n){return n.id?n:kn.emojis[n]||kn.emojis[kn.aliases[n]]||kn.emojis[kn.natives[n]]}function QP(){Yh=null}async function eA(n,{maxResults:e,caller:t}={}){if(!n||!n.trim().length)return null;e||(e=90),await cd(null,{caller:t||"SearchIndex.search"});const i=n.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((d,f,h)=>d.trim()&&h.indexOf(d)==f);if(!i.length)return;let r=Yh||(Yh=Object.values(kn.emojis)),a,o;for(const d of i){if(!r.length)break;a=[],o={};for(const f of r){if(!f.search)continue;const h=f.search.indexOf(`,${d}`);h!=-1&&(a.push(f),o[f.id]||(o[f.id]=0),o[f.id]+=f.id==d?0:h+1)}r=a}return a.length<2||(a.sort((d,f)=>{const h=o[d.id],p=o[f.id];return h==p?d.id.localeCompare(f.id):h-p}),a.length>e&&(a=a.slice(0,e))),a}var Cs={search:eA,get:XP,reset:QP,SHORTCODES_REGEX:JP};const nA=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function tA(n,e){return Array.isArray(n)&&Array.isArray(e)&&n.length===e.length&&n.every((t,i)=>t==e[i])}async function iA(n=1){for(let e in[...Array(n).keys()])await new Promise(requestAnimationFrame)}function rA(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 aA={activity:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("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"}),me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("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"}),me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("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"}),me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("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"}),me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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"})})}},sA={loupe:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:me("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 Qc={categories:aA,search:sA};function Jh(n){let{id:e,skin:t,emoji:i}=n;if(n.shortcodes){const d=n.shortcodes.match(Cs.SHORTCODES_REGEX);d&&(e=d[1],d[2]&&(t=d[2]))}if(i||(i=Cs.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 me("span",{class:"emoji-mart-emoji","data-emoji-set":n.set,children:a?me("img",{style:{maxWidth:n.size||"1em",maxHeight:n.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:a}):n.set=="native"?me("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}):me("span",{style:{display:"block",width:n.size,height:n.size,backgroundImage:`url(${o})`,backgroundSize:`${100*kn.sheet.cols}% ${100*kn.sheet.rows}%`,backgroundPosition:`${100/(kn.sheet.cols-1)*r.x}% ${100/(kn.sheet.rows-1)*r.y}%`}})})}const oA=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class o3 extends oA{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=s3(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 lA extends o3{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 l3={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:n=>/\D/.test(n)?n:`${n}px`},set:$r.set,skin:$r.skin};class f3 extends o3{async connectedCallback(){const e=a3(this.props,l3,this);e.element=this,e.ref=t=>{this.component=t},await cd(),!this.disconnected&&Q2(me(Jh,{...e}),this)}constructor(e){super(e)}}xi(f3,"Props",l3);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",f3);var Km,Xh=[],Ym=Ye.__b,Jm=Ye.__r,Xm=Ye.diffed,Qm=Ye.__c,e0=Ye.unmount;function fA(){var n;for(Xh.sort(function(e,t){return e.__v.__b-t.__v.__b});n=Xh.pop();)if(n.__P)try{n.__H.__h.forEach(Sc),n.__H.__h.forEach(Qh),n.__H.__h=[]}catch(e){n.__H.__h=[],Ye.__e(e,n.__v)}}Ye.__b=function(n){Ym&&Ym(n)},Ye.__r=function(n){Jm&&Jm(n);var e=n.__c.__H;e&&(e.__h.forEach(Sc),e.__h.forEach(Qh),e.__h=[])},Ye.diffed=function(n){Xm&&Xm(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(Xh.push(e)!==1&&Km===Ye.requestAnimationFrame||((Km=Ye.requestAnimationFrame)||function(t){var i,r=function(){clearTimeout(a),n0&&cancelAnimationFrame(i),setTimeout(t)},a=setTimeout(r,100);n0&&(i=requestAnimationFrame(r))})(fA))},Ye.__c=function(n,e){e.some(function(t){try{t.__h.forEach(Sc),t.__h=t.__h.filter(function(i){return!i.__||Qh(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],Ye.__e(i,t.__v)}}),Qm&&Qm(n,e)},Ye.unmount=function(n){e0&&e0(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{Sc(i)}catch(r){e=r}}),e&&Ye.__e(e,t.__v))};var n0=typeof requestAnimationFrame=="function";function Sc(n){var e=n.__c;typeof e=="function"&&(n.__c=void 0,e())}function Qh(n){n.__c=n.__()}function dA(n,e){for(var t in e)n[t]=e[t];return n}function t0(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 eu(n){this.props=n}(eu.prototype=new hr).isPureReactComponent=!0,eu.prototype.shouldComponentUpdate=function(n,e){return t0(this.props,n)||t0(this.state,e)};var i0=Ye.__b;Ye.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),i0&&i0(n)};var cA=Ye.__e;Ye.__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)}cA(n,e,t)};var r0=Ye.unmount;function th(){this.__u=0,this.t=null,this.__b=null}function d3(n){var e=n.__.__c;return e&&e.__e&&e.__e(n)}function uc(){this.u=null,this.o=null}Ye.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),e&&n.__h===!0&&(n.type=null),r0&&r0(n)},(th.prototype=new hr).__c=function(n,e){var t=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var r=d3(i.__v),a=!1,o=function(){a||(a=!0,t.__R=null,r?r(d):d())};t.__R=o;var d=function(){if(!--i.__u){if(i.state.__e){var h=i.state.__e;i.__v.__k[0]=function m(b,x,_){return b&&(b.__v=null,b.__k=b.__k&&b.__k.map(function(F){return m(F,x,_)}),b.__c&&b.__c.__P===x&&(b.__e&&_.insertBefore(b.__e,b.__d),b.__c.__e=!0,b.__c.__P=_)),b}(h,h.__c.__P,h.__c.__O)}var p;for(i.setState({__e:i.__b=null});p=i.t.pop();)p.forceUpdate()}},f=e.__h===!0;i.__u++||f||i.setState({__e:i.__b=i.__v.__k[0]}),n.then(o,o)},th.prototype.componentWillUnmount=function(){this.t=[]},th.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,d,f){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(h){typeof h.__c=="function"&&h.__c()}),o.__c.__H=null),(o=dA({},o)).__c!=null&&(o.__c.__P===f&&(o.__c.__P=d),o.__c=null),o.__k=o.__k&&o.__k.map(function(h){return a(h,d,f)})),o}(this.__b,t,i.__O=i.__P)}this.__b=null}var r=e.__e&&qh(fl,null,n.fallback);return r&&(r.__h=null),[qh(fl,null,e.__e?null:n.children),r]};var a0=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]}};(uc.prototype=new hr).__e=function(n){var e=this,t=d3(e.__v),i=e.o.get(n);return i[0]++,function(r){var a=function(){e.props.revealOrder?(i.push(r),a0(e,n,i)):r()};t?t(a):a()}},uc.prototype.render=function(n){this.u=null,this.o=new Map;var e=Jc(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},uc.prototype.componentDidUpdate=uc.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){a0(n,t,e)})};var uA=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,hA=/^(?: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]/,pA=typeof document<"u",gA=function(n){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(n)};hr.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(hr.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var s0=Ye.event;function mA(){}function vA(){return this.cancelBubble}function kA(){return this.defaultPrevented}Ye.event=function(n){return s0&&(n=s0(n)),n.persist=mA,n.isPropagationStopped=vA,n.isDefaultPrevented=kA,n.nativeEvent=n};var o0={configurable:!0,get:function(){return this.class}},l0=Ye.vnode;Ye.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];pA&&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)&&!gA(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&&hA.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=Jc(t.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=Jc(t.children).forEach(function(d){d.props.selected=i.multiple?i.defaultValue.indexOf(d.props.value)!=-1:i.defaultValue==d.props.value})),n.props=i,t.class!=t.className&&(o0.enumerable="className"in t,t.className!=null&&(i.class=t.className),Object.defineProperty(i,"className",o0))}n.$$typeof=uA,l0&&l0(n)};var f0=Ye.__r;Ye.__r=function(n){f0&&f0(n),n.__c};const wA={light:"outline",dark:"solid"};class bA extends eu{renderIcon(e){const{icon:t}=e;if(t){if(t.svg)return me("span",{class:"flex",dangerouslySetInnerHTML:{__html:t.svg}});if(t.src)return me("img",{src:t.src})}const i=Qc.categories[e.id]||Qc.categories.custom,r=this.props.icons=="auto"?wA[this.props.theme]:this.props.icons;return i[r]||i}render(){let e=null;return me("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:me("div",{class:"flex relative",children:[this.categories.map((t,i)=>{const r=t.name||Tt.categories[t.id],a=!this.props.unfocused&&t.id==this.state.categoryId;return a&&(e=i),me("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)})}),me("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=kn.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class yA extends eu{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 hc={rowsPerRender:10};class _A extends hr{getInitialState(e=this.props){return{skin:Sa.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=Tt.rtl?"rtl":"ltr",this.refs={menu:Ir(),navigation:Ir(),scroll:Ir(),search:Ir(),searchInput:Ir(),skinToneButton:Ir(),skinToneRadio:Ir()},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 cd(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}=kn;this.refs.categories=new Map;const t=kn.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 d=this.grid.length-1,f=d%hc.rowsPerRender?{}:Ir();return f.index=d,f.posinset=this.grid.setsize+1,r.push(f),o};for(let r of e){const a=[];let o=i(a,r);for(let d of r.emojis)o.length==this.getPerLine()&&(o=i(a,r)),this.grid.setsize+=1,o.push(d);this.refs.categories.set(r.id,{root:Ir(),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 Cs.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 f of o){const h=f.target.dataset.id;t.set(h,f.intersectionRatio)}const d=[...t];for(const[f,h]of d)if(h){i(f);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*(hc.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*hc.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 d=this.state.searchResults||this.grid;if(!d.length)return;let[f,h]=this.state.pos;const p=(()=>{if(f==0&&h==0&&!e.repeat&&(i||a))return null;if(f==-1)return!e.repeat&&(r||o)&&t.selectionStart==t.value.length?[0,0]:null;if(i||r){let m=d[f];const b=i?-1:1;if(h+=b,!m[h]){if(f+=b,m=d[f],!m)return f=i?0:d.length-1,h=i?0:d[f].length-1,[f,h];h=i?m.length-1:0}return[f,h]}if(a||o){f+=a?-1:1;const m=d[f];return m?(m[h]||(h=m.length-1),[f,h]):(f=a?0:d.length-1,h=a?0:d[f].length-1,[f,h])}})();if(p)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:p,keyboard:!0},()=>{this.scrollTo({row:p[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 d=i[t].__index,f=o+d*this.props.emojiButtonSize,h=f+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(f<r.scrollTop)o=f;else if(h>r.scrollTop+a.height)o=h-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=rA(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&n3.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}),Sa.set("skin",e)}renderNav(){return me(bA,{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 me("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[me("div",{class:"flex flex-middle flex-grow",children:[me("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:me(Jh,{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})}),me("div",{class:`margin-${this.dir[0]}`,children:e||t?me("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[me("div",{class:"preview-title ellipsis",children:e?e.name:Tt.search_no_results_1}),me("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:Tt.search_no_results_2})]}):me("div",{class:"preview-placeholder color-c",children:Tt.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,f=(e.skins[o-1]||e.skins[0]).native,h=tA(this.state.pos,t),p=t.concat(e.id).join("");return me(yA,{selected:h,skin:o,size:a,children:me("button",{"aria-label":f,"aria-selected":h||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:[me("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}}),me(Jh,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},p)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return me("div",{children:[me("div",{class:"spacer"}),me("div",{class:"flex flex-middle",children:[me("div",{class:"search relative flex-grow",children:[me("input",{type:"search",ref:this.refs.searchInput,placeholder:Tt.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),me("span",{class:"icon loupe flex",children:Qc.search.loupe}),this.state.searchResults&&me("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:Qc.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?me("div",{class:"category",ref:this.refs.search,children:[me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Tt.categories.search}),me("div",{children:e.length?e.map((t,i)=>me("div",{class:"flex",children:t.map((r,a)=>this.renderEmojiButton(r,{pos:[i,a],posinset:i*this.props.perLine+a+1,grid:e}))})):me("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&me("a",{onClick:this.props.onAddCustomEmoji,children:Tt.add_custom})})})]}):null}renderCategories(){const{categories:e}=kn,t=!!this.state.searchResults,i=this.getPerLine();return me("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 me("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:a,children:[me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||Tt.categories[r.id]}),me("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((d,f)=>{const h=d.index-d.index%hc.rowsPerRender,p=this.state.visibleRows[h],m="current"in d?d:void 0;if(!p&&!m)return null;const b=f*i,x=b+i,_=r.emojis.slice(b,x);return _.length<i&&_.push(...new Array(i-_.length)),me("div",{"data-index":d.index,ref:m,class:"flex row",style:{top:f*this.props.emojiButtonSize},children:p&&_.map((F,R)=>{if(!F)return me("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const T=Cs.get(F);return this.renderEmojiButton(T,{pos:[d.index,R],posinset:d.posinset+R,grid:this.grid})})},d.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:me("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:me("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":Tt.skins.choose,title:Tt.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:me("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),t=e?e.name:"";return me("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"),me("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Tt.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(a=>{const o=a+1,d=this.state.skin==o;return me("div",{children:[me("input",{type:"radio",name:"skin-tone",value:o,"aria-label":Tt.skins[o],ref:d?this.refs.skinToneRadio:null,defaultChecked:d,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:f=>{(f.code=="Enter"||f.code=="Space"||f.code=="Tab")&&(f.preventDefault(),this.handleSkinClick(o))}}),me("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:[me("span",{class:`skin-tone skin-tone-${o}`}),me("span",{class:"margin-small-lr",children:Tt.skins[o]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return me("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"&&me("div",{class:"padding-lr",children:this.renderSearch()}),me("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:me("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(),xi(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),xi(this,"handleClickOutside",t=>{const{element:i}=this.props;t.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(t))}),xi(this,"handleBaseClick",t=>{this.state.showSkins&&(t.target.closest(".menu")||(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins()))}),xi(this,"handleBaseKeydown",t=>{this.state.showSkins&&t.key=="Escape"&&(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins())}),xi(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),xi(this,"handleSearchInput",async()=>{const t=this.refs.searchInput.current;if(!t)return;const{value:i}=t,r=await Cs.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],d=[];d.setsize=r.length;let f=null;for(let h of r)(!d.length||f.length==this.getPerLine())&&(f=[],f.__categoryId="search",f.__index=d.length,d.push(f)),f.push(h);this.ignoreMouse(),this.setState({searchResults:d,pos:o},a)}),xi(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}}),xi(this,"clearSearch",()=>{const t=this.refs.searchInput.current;t&&(t.value="",t.focus(),this.handleSearchInput())}),xi(this,"handleCategoryClick",({category:t,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:t.id})}),xi(this,"openSkins",t=>{const{currentTarget:i}=t,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await iA(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 qp extends lA{async connectedCallback(){const e=a3(this.props,$r,this);e.element=this,e.ref=t=>{this.component=t},await cd(e),!this.disconnected&&Q2(me(_A,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:H2(c3)})}}xi(qp,"Props",$r);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",qp);var c3={};c3=`:host {
|
|
213
|
+
`+a):i.stack=a}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=zs(this.defaults,t);const{transitional:i,paramsSerializer:r,headers:a}=t;i!==void 0&&Wh.assertOptions(i,{silentJSONParsing:ka.transitional(ka.boolean),forcedJSONParsing:ka.transitional(ka.boolean),clarifyTimeoutError:ka.transitional(ka.boolean)},!1),r!=null&&(oe.isFunction(r)?t.paramsSerializer={serialize:r}:Wh.assertOptions(r,{encode:ka.function,serialize:ka.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&oe.merge(a.common,a[t.method]);a&&oe.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),t.headers=Jt.concat(o,a);const d=[];let f=!0;this.interceptors.request.forEach(function(F){typeof F.runWhen=="function"&&F.runWhen(t)===!1||(f=f&&F.synchronous,d.unshift(F.fulfilled,F.rejected))});const h=[];this.interceptors.response.forEach(function(F){h.push(F.fulfilled,F.rejected)});let p,m=0,b;if(!f){const _=[jm.bind(this),void 0];for(_.unshift.apply(_,d),_.push.apply(_,h),b=_.length,p=Promise.resolve(t);m<b;)p=p.then(_[m++],_[m++]);return p}b=d.length;let x=t;for(m=0;m<b;){const _=d[m++],F=d[m++];try{x=_(x)}catch(R){F.call(this,R);break}}try{p=jm.call(this,x)}catch(_){return Promise.reject(_)}for(m=0,b=h.length;m<b;)p=p.then(h[m++],h[m++]);return p}getUri(e){e=zs(this.defaults,e);const t=L2(e.baseURL,e.url);return F2(t,e.params,e.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(e){Ss.prototype[e]=function(t,i){return this.request(zs(i||{},{method:e,url:t,data:(i||{}).data}))}});oe.forEach(["post","put","patch"],function(e){function t(i){return function(a,o,d){return this.request(zs(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Ss.prototype[e]=t(),Ss.prototype[e+"Form"]=t(!0)});let QM=class D2{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const o=new Promise(d=>{i.subscribe(d),a=d}).then(r);return o.cancel=function(){i.unsubscribe(a)},o},e(function(a,o,d){i.reason||(i.reason=new gl(a,o,d),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new D2(function(r){e=r}),cancel:e}}};function eP(n){return function(t){return n.apply(null,t)}}function nP(n){return oe.isObject(n)&&n.isAxiosError===!0}const Uh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Uh).forEach(([n,e])=>{Uh[e]=n});function j2(n){const e=new Ss(n),t=m2(Ss.prototype.request,e);return oe.extend(t,Ss.prototype,e,{allOwnKeys:!0}),oe.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return j2(zs(n,r))},t}const Qn=j2(dd);Qn.Axios=Ss;Qn.CanceledError=gl;Qn.CancelToken=QM;Qn.isCancel=P2;Qn.VERSION=O2;Qn.toFormData=Fu;Qn.AxiosError=dn;Qn.Cancel=Qn.CanceledError;Qn.all=function(e){return Promise.all(e)};Qn.spread=eP;Qn.isAxiosError=nP;Qn.mergeConfig=zs;Qn.AxiosHeaders=Jt;Qn.formToJSON=n=>M2(oe.isHTMLForm(n)?new FormData(n):n);Qn.getAdapter=I2.getAdapter;Qn.HttpStatusCode=Uh;Qn.default=Qn;const{Axios:NI,AxiosError:VI,CanceledError:GI,isCancel:WI,CancelToken:UI,VERSION:ZI,all:qI,Cancel:KI,isAxiosError:tP,spread:YI,toFormData:JI,AxiosHeaders:XI,HttpStatusCode:QI,formToJSON:eO,getAdapter:nO,mergeConfig:tO}=Qn,Jp=class Jp{static setup(e){return this.instance||(this.instance=Qn.create({baseURL:e.baseUrl}),e.basicAuth&&(this.instance.defaults.auth={password:e.basicAuth.password,username:e.basicAuth.username}),e.authToken&&(this.instance.defaults.headers.common["X-Auth-Token"]=e.authToken),e.language&&(this.instance.defaults.headers.common["Accept-Language"]=e.language),this.instance.interceptors.response.use(t=>t,t=>{throw tP(t)?new Error(this.generateErrorMsg(t)):t})),this.instance}static generateErrorMsg(e){return e.response?`API Error: ${e.response.status} - ${e.response.data}`:e.request?"API Error: Request made but no response received.":`API Error: ${e.message}`}static getApi(){if(!this.instance)throw new Error("API instance is not initialized. Call setup first.");return this.instance}};Jp.instance=null;let Zh=Jp;async function iP(n){return(await Zh.getApi().post("/public/v1/complaints.json",{complaint:n})).data}const rP="_form_1fm69_106",aP="_fieldset_1fm69_110",sP="_fieldSetName_1fm69_121",oP="_successBody_1fm69_127",lP="_generalError_1fm69_134",gf={form:rP,fieldset:aP,fieldSetName:sP,successBody:oP,generalError:lP},fP=ks.object({reasonText:ks.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:ks.string({required_error:"Bitte gib eine gültige E-Mail-Adresse ein."}).email("Bitte gib eine gültige E-Mail-Adresse ein."),reporterFirstName:ks.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:ks.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:ks.string({invalid_type_error:"Bitte wähle eine Option."}),selectedRole:ks.string({required_error:"Bitte wähle eine Rolle."})}),dP=({handleModalClick:n,open:e,subjectId:t})=>{const[i,r]=P.useState(!1),a=uF({initialValues:{errorText:"",reasonText:"",reporterEmail:"",reporterFirstName:"",reporterLastName:"",selectedReason:"",selectedRole:"myself"},onSubmit:(_,{setErrors:F,setSubmitting:R})=>{iP({reason:_.selectedReason,report_origin:_.selectedRole,reporter_email:_.reporterEmail,reporter_firstname:_.reporterFirstName,reporter_lastname:_.reporterLastName,reporter_message:_.reasonText,subject_id:t,subject_type:"HoodMessage"}).then(T=>{r(!0)}).catch(T=>{F({errorText:"Ein Fehler ist aufgetreten, bitte versuchen Sie es später noch einmal."}),console.log(T)}).finally(()=>{R(!1)})},validationSchema:g2(fP)}),o=_=>{a.setFieldValue("selectedReason",_)},d=_=>{a.setFieldValue("selectedRole",_)},f=FR(),h=()=>{n()},p=()=>{a.handleSubmit()};let m="Inhalt melden",b=L.jsx(K8,{className:gf.form,children:L.jsxs(q8,{className:gf.fieldset,children:[L.jsx(on,{type:"body-regular",children:"Warum hältst du den Inhalt für problematisch?"}),L.jsx(Kg,{colorScheme:"dark",onChange:o,value:a.values.selectedReason,placeholder:"Bitte wähle einen Grund aus",errorMessage:a.touched.selectedReason?a.errors.selectedReason:void 0,children:f.complaint_reasons.map(_=>L.jsx("option",{value:_.value,children:_.label_de},_.value))}),L.jsx(Ox,{size:"small",id:"reasonText",label:"Begründe die Meldung",colorScheme:"dark",value:a.values.reasonText,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reasonText?a.errors.reasonText:void 0}),L.jsx(on,{type:"body-regular",children:"Du erstellst diese Meldung als:"}),L.jsxs(Kg,{colorScheme:"dark",onChange:d,value:a.values.selectedRole,errorMessage:a.touched.selectedRole?a.errors.selectedRole:void 0,children:[L.jsx("option",{value:"myself",children:"Privatperson"}),L.jsx("option",{value:"non_state_actor",children:"Hinweisgeber (Art. 22 DSA)"}),L.jsx("option",{value:"state_actor",children:"Staatliche Stelle"})]}),L.jsx(xp,{}),L.jsxs("div",{className:gf.fieldSetName,children:[L.jsx(V1,{colorScheme:"dark",label:"Vorname",size:"medium",id:"reporterFirstName",value:a.values.reporterFirstName,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterFirstName?a.errors.reporterFirstName:void 0}),L.jsx(V1,{colorScheme:"dark",label:"Nachname",size:"medium",id:"reporterLastName",value:a.values.reporterLastName,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterLastName?a.errors.reporterLastName:void 0})]}),L.jsx(V1,{colorScheme:"dark",label:"E-Mail-Adresse",size:"medium",id:"reporterEmail",value:a.values.reporterEmail,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterEmail?a.errors.reporterEmail:void 0}),a.errors.errorText&&L.jsx(on,{type:"body-semibold",className:gf.generalError,children:a.errors.errorText}),L.jsx(on,{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.'}),L.jsx(on,{type:"detail-medium",children:L.jsx(Q7,{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;return i?(m="Vielen Dank für deine Meldung!",b=L.jsxs("div",{className:gf.successBody,children:[L.jsx(on,{type:"h5",children:"Was passiert jetzt?"}),L.jsx(on,{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."})]})):x=L.jsx(pu,{onClick:p,text:"Absenden",color:"highlight"}),L.jsx("div",{children:L.jsx(Fs,{children:L.jsx(xv,{open:e,onClose:h,modalBody:b,headerTitle:m,modalFooter:x,closeButtonText:"Schließen"})})})},$2=()=>"ontouchstart"in window,cP=({cancelText:n="Abbrechen",confirmText:e="Bestätigen",content:t,handleCancel:i,handleConfirm:r,primaryCtaColor:a="primary",title:o})=>{const d=()=>L.jsx(id,{children:t}),f=()=>L.jsx(tl,{headline:o,as:"h3",rightElement:L.jsx(Xt,{ariaLabel:"close-sheet",onClick:i,icon:"cross",size:"small"})}),h=()=>L.jsx(pu,{color:a,onClick:r,size:"medium",text:e});return $2()?L.jsx(z8,{open:!0,onClose:i,sheetBody:d(),sheetHeader:f(),ctaButtonProps:{color:"primary",fullWidth:!0,onClick:r,size:"medium",text:e},linkProps:{color:"blue",onClick:i,size:"large",text:n}}):L.jsx(xv,{open:!0,onClose:i,modalBody:d(),headerTitle:o,closeButtonText:n,modalFooter:h()})},uP="_root_ius6r_106",hP="_textButton_ius6r_113",Hm={root:uP,textButton:hP},pP=({alt:n,ariaLabel:e,onClick:t,src:i,text:r})=>L.jsxs("div",{className:Hm.root,children:[L.jsx(rl,{src:i,shape:"circular",size:"40",alt:n}),L.jsx(Ci,{className:Hm.textButton,onClick:t,children:L.jsx(on,{type:"body-regular",as:"span",children:r})}),L.jsx(Xt,{icon:"pencil",size:"small",onClick:t,variant:"circular",ariaLabel:e})]}),gP="_container_16u0z_106",mP="_sidebarLeft_16u0z_114",vP="_navBar_16u0z_118",kP="_mainContent_16u0z_124",wP="_sidebarRight_16u0z_130",mf={container:gP,sidebarLeft:mP,navBar:vP,mainContent:kP,sidebarRight:wP},bP=({children:n,left:e,navbar:t,right:i})=>L.jsxs("div",{className:mf.container,children:[L.jsx("nav",{className:mf.navBar,children:t}),e&&L.jsx("aside",{className:mf.sidebarLeft,children:e}),L.jsx("main",{className:mf.mainContent,children:n}),i&&L.jsx("aside",{className:mf.sidebarRight,children:i})]}),yP="_inputContainer_ow9ut_106",_P="_searchInput_ow9ut_121",xP="_searchButton_ow9ut_165",dc={inputContainer:yP,"inputContainer--invalid":"_inputContainer--invalid_ow9ut_118",searchInput:_P,searchButton:xP},SP=({name:n,onSearchSubmit:e,placeholder:t,ref:i})=>{const[r,a]=P.useState(""),[o,d]=P.useState(!0),{getInputProps:f}=cp({inputRef:i,onChange:x=>{a(x.target.value),p(x.target.value)},value:r}),h=f(),p=x=>{const _=x.length<250;d(_)},m=x=>{x.preventDefault(),o&&(e(r),a(""))},b=!r||r.trim().length<2;return L.jsx("form",{onSubmit:m,children:L.jsxs("div",{className:Ke(dc.inputContainer,{[dc["inputContainer--invalid"]]:!o}),children:[L.jsx("input",{...h,type:"text",name:n,placeholder:t,className:dc.searchInput}),L.jsx(Xt,{icon:"search",className:dc.searchButton,size:"small",ariaLabelledBy:"searchButton",onClick:m,disabled:b,type:"submit"})]})})},CP="_navbarWrapper_k1l82_106",EP="_navbar_k1l82_106",TP="_right_k1l82_118",cc={navbarWrapper:CP,navbar:EP,right:TP},FP=({left:n,right:e})=>L.jsx("div",{className:cc.navbarWrapper,children:L.jsxs("div",{className:cc.navbar,children:[L.jsx("div",{className:cc.left,children:n}),L.jsx("div",{className:cc.right,children:e})]})}),RP="Suchen",MP="Oh nein!",PP="Das Emoji konnte nicht gefunden werden",AP="Wähle ein Emoji…",LP="Füge ein benutzerdefiniertes Emoji hinzu",zP={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"},BP={1:"Standard",2:"Hell",3:"Mittelhell",4:"Mittel",5:"Mitteldunkel",6:"Dunkel",choose:"Wähle eine Standard-Hautfarbe"},IP={search:RP,search_no_results_1:MP,search_no_results_2:PP,pick:AP,add_custom:LP,categories:zP,skins:BP};function H2(n){return n&&n.__esModule?n.default:n}function xi(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Mu,Ye,N2,Mf,V2,Nm,Kc={},G2=[],OP=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _a(n,e){for(var t in e)n[t]=e[t];return n}function W2(n){var e=n.parentNode;e&&e.removeChild(n)}function qh(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?Mu.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 xc(n,o,i,r,null)}function xc(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??++N2};return r==null&&Ye.vnode!=null&&Ye.vnode(a),a}function Ir(){return{current:null}}function fl(n){return n.children}function hr(n,e){this.props=n,this.context=e}function dl(n,e){if(e==null)return n.__?dl(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"?dl(n):null}function U2(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 U2(n)}}function Vm(n){(!n.__d&&(n.__d=!0)&&Mf.push(n)&&!Yc.__r++||Nm!==Ye.debounceRendering)&&((Nm=Ye.debounceRendering)||V2)(Yc)}function Yc(){for(var n;Yc.__r=Mf.length;)n=Mf.sort(function(e,t){return e.__v.__b-t.__v.__b}),Mf=[],n.some(function(e){var t,i,r,a,o,d;e.__d&&(o=(a=(t=e).__v).__e,(d=t.__P)&&(i=[],(r=_a({},a)).__v=a.__v+1,Zp(d,a,r,t.__n,d.ownerSVGElement!==void 0,a.__h!=null?[o]:null,i,o??dl(a),a.__h),Y2(i,a),a.__e!=o&&U2(a)))})}function Z2(n,e,t,i,r,a,o,d,f,h){var p,m,b,x,_,F,R,T=i&&i.__k||G2,D=T.length;for(t.__k=[],p=0;p<e.length;p++)if((x=t.__k[p]=(x=e[p])==null||typeof x=="boolean"?null:typeof x=="string"||typeof x=="number"||typeof x=="bigint"?xc(null,x,null,null,x):Array.isArray(x)?xc(fl,{children:x},null,null,null):x.__b>0?xc(x.type,x.props,x.key,null,x.__v):x)!=null){if(x.__=t,x.__b=t.__b+1,(b=T[p])===null||b&&x.key==b.key&&x.type===b.type)T[p]=void 0;else for(m=0;m<D;m++){if((b=T[m])&&x.key==b.key&&x.type===b.type){T[m]=void 0;break}b=null}Zp(n,x,b=b||Kc,r,a,o,d,f,h),_=x.__e,(m=x.ref)&&b.ref!=m&&(R||(R=[]),b.ref&&R.push(b.ref,null,x),R.push(m,x.__c||_,x)),_!=null?(F==null&&(F=_),typeof x.type=="function"&&x.__k===b.__k?x.__d=f=q2(x,f,n):f=K2(n,x,b,T,_,f),typeof t.type=="function"&&(t.__d=f)):f&&b.__e==f&&f.parentNode!=n&&(f=dl(b))}for(t.__e=F,p=D;p--;)T[p]!=null&&(typeof t.type=="function"&&T[p].__e!=null&&T[p].__e==t.__d&&(t.__d=dl(i,p+1)),X2(T[p],T[p]));if(R)for(p=0;p<R.length;p++)J2(R[p],R[++p],R[++p])}function q2(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"?q2(i,e,t):K2(t,i,i,r,i.__e,e));return e}function Jc(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){Jc(t,e)}):e.push(n)),e}function K2(n,e,t,i,r,a){var o,d,f;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(d=a,f=0;(d=d.nextSibling)&&f<i.length;f+=2)if(d==r)break e;n.insertBefore(r,a),o=a}return o!==void 0?o:r.nextSibling}function DP(n,e,t,i,r){var a;for(a in t)a==="children"||a==="key"||a in e||Xc(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]||Xc(n,a,e[a],t[a],i)}function Gm(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||OP.test(e)?t:t+"px"}function Xc(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||Gm(n.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||Gm(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?Um:Wm,a):n.removeEventListener(e,a?Um:Wm,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 Wm(n){this.l[n.type+!1](Ye.event?Ye.event(n):n)}function Um(n){this.l[n.type+!0](Ye.event?Ye.event(n):n)}function Zp(n,e,t,i,r,a,o,d,f){var h,p,m,b,x,_,F,R,T,D,j,N=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(f=t.__h,d=e.__e=t.__e,e.__h=null,a=[d]),(h=Ye.__b)&&h(e);try{e:if(typeof N=="function"){if(R=e.props,T=(h=N.contextType)&&i[h.__c],D=h?T?T.props.value:h.__:i,t.__c?F=(p=e.__c=t.__c).__=p.__E:("prototype"in N&&N.prototype.render?e.__c=p=new N(R,D):(e.__c=p=new hr(R,D),p.constructor=N,p.render=$P),T&&T.sub(p),p.props=R,p.state||(p.state={}),p.context=D,p.__n=i,m=p.__d=!0,p.__h=[]),p.__s==null&&(p.__s=p.state),N.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=_a({},p.__s)),_a(p.__s,N.getDerivedStateFromProps(R,p.__s))),b=p.props,x=p.state,m)N.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(N.getDerivedStateFromProps==null&&R!==b&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(R,D),!p.__e&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(R,p.__s,D)===!1||e.__v===t.__v){p.props=R,p.state=p.__s,e.__v!==t.__v&&(p.__d=!1),p.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(B){B&&(B.__=e)}),p.__h.length&&o.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(R,p.__s,D),p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(b,x,_)})}p.context=D,p.props=R,p.state=p.__s,(h=Ye.__r)&&h(e),p.__d=!1,p.__v=e,p.__P=n,h=p.render(p.props,p.state,p.context),p.state=p.__s,p.getChildContext!=null&&(i=_a(_a({},i),p.getChildContext())),m||p.getSnapshotBeforeUpdate==null||(_=p.getSnapshotBeforeUpdate(b,x)),j=h!=null&&h.type===fl&&h.key==null?h.props.children:h,Z2(n,Array.isArray(j)?j:[j],e,t,i,r,a,o,d,f),p.base=e.__e,e.__h=null,p.__h.length&&o.push(p),F&&(p.__E=p.__=null),p.__e=!1}else a==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=jP(t.__e,e,t,i,r,a,o,f);(h=Ye.diffed)&&h(e)}catch(B){e.__v=null,(f||a!=null)&&(e.__e=d,e.__h=!!f,a[a.indexOf(d)]=null),Ye.__e(B,e,t)}}function Y2(n,e){Ye.__c&&Ye.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(i){i.call(t)})}catch(i){Ye.__e(i,t.__v)}})}function jP(n,e,t,i,r,a,o,d){var f,h,p,m=t.props,b=e.props,x=e.type,_=0;if(x==="svg"&&(r=!0),a!=null){for(;_<a.length;_++)if((f=a[_])&&"setAttribute"in f==!!x&&(x?f.localName===x:f.nodeType===3)){n=f,a[_]=null;break}}if(n==null){if(x===null)return document.createTextNode(b);n=r?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,b.is&&b),a=null,d=!1}if(x===null)m===b||d&&n.data===b||(n.data=b);else{if(a=a&&Mu.call(n.childNodes),h=(m=t.props||Kc).dangerouslySetInnerHTML,p=b.dangerouslySetInnerHTML,!d){if(a!=null)for(m={},_=0;_<n.attributes.length;_++)m[n.attributes[_].name]=n.attributes[_].value;(p||h)&&(p&&(h&&p.__html==h.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||""))}if(DP(n,b,m,r,d),p)e.__k=[];else if(_=e.props.children,Z2(n,Array.isArray(_)?_:[_],e,t,i,r&&x!=="foreignObject",a,o,a?a[0]:t.__k&&dl(t,0),d),a!=null)for(_=a.length;_--;)a[_]!=null&&W2(a[_]);d||("value"in b&&(_=b.value)!==void 0&&(_!==m.value||_!==n.value||x==="progress"&&!_)&&Xc(n,"value",_,m.value,!1),"checked"in b&&(_=b.checked)!==void 0&&_!==n.checked&&Xc(n,"checked",_,m.checked,!1))}return n}function J2(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(i){Ye.__e(i,t)}}function X2(n,e,t){var i,r;if(Ye.unmount&&Ye.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||J2(i,null,e)),(i=n.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){Ye.__e(a,e)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&X2(i[r],e,typeof n.type!="function");t||n.__e==null||W2(n.__e),n.__e=n.__d=void 0}function $P(n,e,t){return this.constructor(n,t)}function Q2(n,e,t){var i,r,a;Ye.__&&Ye.__(n,e),r=(i=typeof t=="function")?null:t&&t.__k||e.__k,a=[],Zp(e,n=(!i&&t||e).__k=qh(fl,null,[n]),r||Kc,Kc,e.ownerSVGElement!==void 0,!i&&t?[t]:r?null:e.firstChild?Mu.call(e.childNodes):null,a,!i&&t?t:r?r.__e:e.firstChild,i),Y2(a,n)}Mu=G2.slice,Ye={__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}},N2=0,hr.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_a({},this.state),typeof n=="function"&&(n=n(_a({},t),this.props)),n&&_a(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),Vm(this))},hr.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Vm(this))},hr.prototype.render=fl,Mf=[],V2=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Yc.__r=0;var HP=0;function me(n,e,t,i,r){var a,o,d={};for(o in e)o=="ref"?a=e[o]:d[o]=e[o];var f={type:n,props:d,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--HP,__source:i,__self:r};if(typeof n=="function"&&(a=n.defaultProps))for(o in a)d[o]===void 0&&(d[o]=a[o]);return Ye.vnode&&Ye.vnode(f),f}function NP(n,e){try{window.localStorage[`emoji-mart.${n}`]=JSON.stringify(e)}catch{}}function VP(n){try{const e=window.localStorage[`emoji-mart.${n}`];if(e)return JSON.parse(e)}catch{}}var Sa={set:NP,get:VP};const Q1=new Map,GP=[{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 WP(){for(const{v:n,emoji:e}of GP)if(e3(e))return n}function UP(){return!e3("🇨🇦")}function e3(n){if(Q1.has(n))return Q1.get(n);const e=ZP(n);return Q1.set(n,e),e}const ZP=(()=>{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 d=0;for(;d<o&&!a[d+3];d+=4);if(d>=o)return!1;const f=t+d/4%t,h=Math.floor(d/4/t),p=n.getImageData(f,h,1,1).data;return!(a[d]!==p[0]||a[d+2]!==p[2]||n.measureText(r).width>=t)}})();var Zm={latestVersion:WP,noCountryFlags:UP};const Kh=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let wt=null;function qP(n){wt||(wt=Sa.get("frequently")||{});const e=n.id||n;e&&(wt[e]||(wt[e]=0),wt[e]+=1,Sa.set("last",e),Sa.set("frequently",wt))}function KP({maxFrequentRows:n,perLine:e}){if(!n)return[];wt||(wt=Sa.get("frequently"));let t=[];if(!wt){wt={};for(let a in Kh.slice(0,e)){const o=Kh[a];wt[o]=e-a,t.push(o)}return t}const i=n*e,r=Sa.get("last");for(let a in wt)t.push(a);if(t.sort((a,o)=>{const d=wt[o],f=wt[a];return d==f?a.localeCompare(o):d-f}),t.length>i){const a=t.slice(i);t=t.slice(0,i);for(let o of a)o!=r&&delete wt[o];r&&t.indexOf(r)==-1&&(delete wt[t[t.length-1]],t.splice(-1,1,r)),Sa.set("frequently",wt)}return t}var n3={add:qP,get:KP,DEFAULTS:Kh},t3={};t3=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 $r={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 Tt=null,kn=null;const eh={};async function qm(n){if(eh[n])return eh[n];const t=await(await fetch(n)).json();return eh[n]=t,t}let nh=null,i3=null,r3=!1;function cd(n,{caller:e}={}){return nh||(nh=new Promise(t=>{i3=t})),n?YP(n):e&&!r3&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),nh}async function YP(n){r3=!0;let{emojiVersion:e,set:t,locale:i}=n;if(e||(e=$r.emojiVersion.value),t||(t=$r.set.value),i||(i=$r.locale.value),kn)kn.categories=kn.categories.filter(f=>!f.name);else{kn=(typeof n.data=="function"?await n.data():n.data)||await qm(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${t}.json`),kn.emoticons={},kn.natives={},kn.categories.unshift({id:"frequent",emojis:[]});for(const f in kn.aliases){const h=kn.aliases[f],p=kn.emojis[h];p&&(p.aliases||(p.aliases=[]),p.aliases.push(f))}kn.originalCategories=kn.categories}if(Tt=(typeof n.i18n=="function"?await n.i18n():n.i18n)||(i=="en"?H2(t3):await qm(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),n.custom)for(let f in n.custom){f=parseInt(f);const h=n.custom[f],p=n.custom[f-1];if(!(!h.emojis||!h.emojis.length)){h.id||(h.id=`custom_${f+1}`),h.name||(h.name=Tt.categories.custom),p&&!h.icon&&(h.target=p.target||p),kn.categories.push(h);for(const m of h.emojis)kn.emojis[m.id]=m}}n.categories&&(kn.categories=kn.originalCategories.filter(f=>n.categories.indexOf(f.id)!=-1).sort((f,h)=>{const p=n.categories.indexOf(f.id),m=n.categories.indexOf(h.id);return p-m}));let r=null,a=null;t=="native"&&(r=Zm.latestVersion(),a=n.noCountryFlags||Zm.noCountryFlags());let o=kn.categories.length,d=!1;for(;o--;){const f=kn.categories[o];if(f.id=="frequent"){let{maxFrequentRows:m,perLine:b}=n;m=m>=0?m:$r.maxFrequentRows.value,b||(b=$r.perLine.value),f.emojis=n3.get({maxFrequentRows:m,perLine:b})}if(!f.emojis||!f.emojis.length){kn.categories.splice(o,1);continue}const{categoryIcons:h}=n;if(h){const m=h[f.id];m&&!f.icon&&(f.icon=m)}let p=f.emojis.length;for(;p--;){const m=f.emojis[p],b=m.id?m:kn.emojis[m],x=()=>{f.emojis.splice(p,1)};if(!b||n.exceptEmojis&&n.exceptEmojis.includes(b.id)){x();continue}if(r&&b.version>r){x();continue}if(a&&f.id=="flags"&&!nA.includes(b.id)){x();continue}if(!b.search){if(d=!0,b.search=","+[[b.id,!1],[b.name,!0],[b.keywords,!1],[b.emoticons,!1]].map(([F,R])=>{if(F)return(Array.isArray(F)?F:[F]).map(T=>(R?T.split(/[-|_|\s]+/):[T]).map(D=>D.toLowerCase())).flat()}).flat().filter(F=>F&&F.trim()).join(","),b.emoticons)for(const F of b.emoticons)kn.emoticons[F]||(kn.emoticons[F]=b.id);let _=0;for(const F of b.skins){if(!F)continue;_++;const{native:R}=F;R&&(kn.natives[R]=b.id,b.search+=`,${R}`);const T=_==1?"":`:skin-tone-${_}:`;F.shortcodes=`:${b.id}:${T}`}}}}d&&Cs.reset(),i3()}function a3(n,e,t){n||(n={});const i={};for(let r in e)i[r]=s3(r,n,e,t);return i}function s3(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 JP=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let Yh=null;function XP(n){return n.id?n:kn.emojis[n]||kn.emojis[kn.aliases[n]]||kn.emojis[kn.natives[n]]}function QP(){Yh=null}async function eA(n,{maxResults:e,caller:t}={}){if(!n||!n.trim().length)return null;e||(e=90),await cd(null,{caller:t||"SearchIndex.search"});const i=n.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((d,f,h)=>d.trim()&&h.indexOf(d)==f);if(!i.length)return;let r=Yh||(Yh=Object.values(kn.emojis)),a,o;for(const d of i){if(!r.length)break;a=[],o={};for(const f of r){if(!f.search)continue;const h=f.search.indexOf(`,${d}`);h!=-1&&(a.push(f),o[f.id]||(o[f.id]=0),o[f.id]+=f.id==d?0:h+1)}r=a}return a.length<2||(a.sort((d,f)=>{const h=o[d.id],p=o[f.id];return h==p?d.id.localeCompare(f.id):h-p}),a.length>e&&(a=a.slice(0,e))),a}var Cs={search:eA,get:XP,reset:QP,SHORTCODES_REGEX:JP};const nA=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function tA(n,e){return Array.isArray(n)&&Array.isArray(e)&&n.length===e.length&&n.every((t,i)=>t==e[i])}async function iA(n=1){for(let e in[...Array(n).keys()])await new Promise(requestAnimationFrame)}function rA(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 aA={activity:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("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"}),me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("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"}),me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("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"}),me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("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"}),me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("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"})})}},sA={loupe:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:me("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:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:me("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 Qc={categories:aA,search:sA};function Jh(n){let{id:e,skin:t,emoji:i}=n;if(n.shortcodes){const d=n.shortcodes.match(Cs.SHORTCODES_REGEX);d&&(e=d[1],d[2]&&(t=d[2]))}if(i||(i=Cs.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 me("span",{class:"emoji-mart-emoji","data-emoji-set":n.set,children:a?me("img",{style:{maxWidth:n.size||"1em",maxHeight:n.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:a}):n.set=="native"?me("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}):me("span",{style:{display:"block",width:n.size,height:n.size,backgroundImage:`url(${o})`,backgroundSize:`${100*kn.sheet.cols}% ${100*kn.sheet.rows}%`,backgroundPosition:`${100/(kn.sheet.cols-1)*r.x}% ${100/(kn.sheet.rows-1)*r.y}%`}})})}const oA=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class o3 extends oA{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=s3(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 lA extends o3{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 l3={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:n=>/\D/.test(n)?n:`${n}px`},set:$r.set,skin:$r.skin};class f3 extends o3{async connectedCallback(){const e=a3(this.props,l3,this);e.element=this,e.ref=t=>{this.component=t},await cd(),!this.disconnected&&Q2(me(Jh,{...e}),this)}constructor(e){super(e)}}xi(f3,"Props",l3);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",f3);var Km,Xh=[],Ym=Ye.__b,Jm=Ye.__r,Xm=Ye.diffed,Qm=Ye.__c,e0=Ye.unmount;function fA(){var n;for(Xh.sort(function(e,t){return e.__v.__b-t.__v.__b});n=Xh.pop();)if(n.__P)try{n.__H.__h.forEach(Sc),n.__H.__h.forEach(Qh),n.__H.__h=[]}catch(e){n.__H.__h=[],Ye.__e(e,n.__v)}}Ye.__b=function(n){Ym&&Ym(n)},Ye.__r=function(n){Jm&&Jm(n);var e=n.__c.__H;e&&(e.__h.forEach(Sc),e.__h.forEach(Qh),e.__h=[])},Ye.diffed=function(n){Xm&&Xm(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(Xh.push(e)!==1&&Km===Ye.requestAnimationFrame||((Km=Ye.requestAnimationFrame)||function(t){var i,r=function(){clearTimeout(a),n0&&cancelAnimationFrame(i),setTimeout(t)},a=setTimeout(r,100);n0&&(i=requestAnimationFrame(r))})(fA))},Ye.__c=function(n,e){e.some(function(t){try{t.__h.forEach(Sc),t.__h=t.__h.filter(function(i){return!i.__||Qh(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],Ye.__e(i,t.__v)}}),Qm&&Qm(n,e)},Ye.unmount=function(n){e0&&e0(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{Sc(i)}catch(r){e=r}}),e&&Ye.__e(e,t.__v))};var n0=typeof requestAnimationFrame=="function";function Sc(n){var e=n.__c;typeof e=="function"&&(n.__c=void 0,e())}function Qh(n){n.__c=n.__()}function dA(n,e){for(var t in e)n[t]=e[t];return n}function t0(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 eu(n){this.props=n}(eu.prototype=new hr).isPureReactComponent=!0,eu.prototype.shouldComponentUpdate=function(n,e){return t0(this.props,n)||t0(this.state,e)};var i0=Ye.__b;Ye.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),i0&&i0(n)};var cA=Ye.__e;Ye.__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)}cA(n,e,t)};var r0=Ye.unmount;function th(){this.__u=0,this.t=null,this.__b=null}function d3(n){var e=n.__.__c;return e&&e.__e&&e.__e(n)}function uc(){this.u=null,this.o=null}Ye.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),e&&n.__h===!0&&(n.type=null),r0&&r0(n)},(th.prototype=new hr).__c=function(n,e){var t=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var r=d3(i.__v),a=!1,o=function(){a||(a=!0,t.__R=null,r?r(d):d())};t.__R=o;var d=function(){if(!--i.__u){if(i.state.__e){var h=i.state.__e;i.__v.__k[0]=function m(b,x,_){return b&&(b.__v=null,b.__k=b.__k&&b.__k.map(function(F){return m(F,x,_)}),b.__c&&b.__c.__P===x&&(b.__e&&_.insertBefore(b.__e,b.__d),b.__c.__e=!0,b.__c.__P=_)),b}(h,h.__c.__P,h.__c.__O)}var p;for(i.setState({__e:i.__b=null});p=i.t.pop();)p.forceUpdate()}},f=e.__h===!0;i.__u++||f||i.setState({__e:i.__b=i.__v.__k[0]}),n.then(o,o)},th.prototype.componentWillUnmount=function(){this.t=[]},th.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,d,f){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(h){typeof h.__c=="function"&&h.__c()}),o.__c.__H=null),(o=dA({},o)).__c!=null&&(o.__c.__P===f&&(o.__c.__P=d),o.__c=null),o.__k=o.__k&&o.__k.map(function(h){return a(h,d,f)})),o}(this.__b,t,i.__O=i.__P)}this.__b=null}var r=e.__e&&qh(fl,null,n.fallback);return r&&(r.__h=null),[qh(fl,null,e.__e?null:n.children),r]};var a0=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]}};(uc.prototype=new hr).__e=function(n){var e=this,t=d3(e.__v),i=e.o.get(n);return i[0]++,function(r){var a=function(){e.props.revealOrder?(i.push(r),a0(e,n,i)):r()};t?t(a):a()}},uc.prototype.render=function(n){this.u=null,this.o=new Map;var e=Jc(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},uc.prototype.componentDidUpdate=uc.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){a0(n,t,e)})};var uA=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,hA=/^(?: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]/,pA=typeof document<"u",gA=function(n){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(n)};hr.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(hr.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var s0=Ye.event;function mA(){}function vA(){return this.cancelBubble}function kA(){return this.defaultPrevented}Ye.event=function(n){return s0&&(n=s0(n)),n.persist=mA,n.isPropagationStopped=vA,n.isDefaultPrevented=kA,n.nativeEvent=n};var o0={configurable:!0,get:function(){return this.class}},l0=Ye.vnode;Ye.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];pA&&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)&&!gA(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&&hA.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=Jc(t.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=Jc(t.children).forEach(function(d){d.props.selected=i.multiple?i.defaultValue.indexOf(d.props.value)!=-1:i.defaultValue==d.props.value})),n.props=i,t.class!=t.className&&(o0.enumerable="className"in t,t.className!=null&&(i.class=t.className),Object.defineProperty(i,"className",o0))}n.$$typeof=uA,l0&&l0(n)};var f0=Ye.__r;Ye.__r=function(n){f0&&f0(n),n.__c};const wA={light:"outline",dark:"solid"};class bA extends eu{renderIcon(e){const{icon:t}=e;if(t){if(t.svg)return me("span",{class:"flex",dangerouslySetInnerHTML:{__html:t.svg}});if(t.src)return me("img",{src:t.src})}const i=Qc.categories[e.id]||Qc.categories.custom,r=this.props.icons=="auto"?wA[this.props.theme]:this.props.icons;return i[r]||i}render(){let e=null;return me("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:me("div",{class:"flex relative",children:[this.categories.map((t,i)=>{const r=t.name||Tt.categories[t.id],a=!this.props.unfocused&&t.id==this.state.categoryId;return a&&(e=i),me("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)})}),me("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=kn.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class yA extends eu{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 hc={rowsPerRender:10};class _A extends hr{getInitialState(e=this.props){return{skin:Sa.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=Tt.rtl?"rtl":"ltr",this.refs={menu:Ir(),navigation:Ir(),scroll:Ir(),search:Ir(),searchInput:Ir(),skinToneButton:Ir(),skinToneRadio:Ir()},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 cd(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}=kn;this.refs.categories=new Map;const t=kn.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 d=this.grid.length-1,f=d%hc.rowsPerRender?{}:Ir();return f.index=d,f.posinset=this.grid.setsize+1,r.push(f),o};for(let r of e){const a=[];let o=i(a,r);for(let d of r.emojis)o.length==this.getPerLine()&&(o=i(a,r)),this.grid.setsize+=1,o.push(d);this.refs.categories.set(r.id,{root:Ir(),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 Cs.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 f of o){const h=f.target.dataset.id;t.set(h,f.intersectionRatio)}const d=[...t];for(const[f,h]of d)if(h){i(f);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*(hc.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*hc.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 d=this.state.searchResults||this.grid;if(!d.length)return;let[f,h]=this.state.pos;const p=(()=>{if(f==0&&h==0&&!e.repeat&&(i||a))return null;if(f==-1)return!e.repeat&&(r||o)&&t.selectionStart==t.value.length?[0,0]:null;if(i||r){let m=d[f];const b=i?-1:1;if(h+=b,!m[h]){if(f+=b,m=d[f],!m)return f=i?0:d.length-1,h=i?0:d[f].length-1,[f,h];h=i?m.length-1:0}return[f,h]}if(a||o){f+=a?-1:1;const m=d[f];return m?(m[h]||(h=m.length-1),[f,h]):(f=a?0:d.length-1,h=a?0:d[f].length-1,[f,h])}})();if(p)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:p,keyboard:!0},()=>{this.scrollTo({row:p[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 d=i[t].__index,f=o+d*this.props.emojiButtonSize,h=f+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(f<r.scrollTop)o=f;else if(h>r.scrollTop+a.height)o=h-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=rA(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&n3.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}),Sa.set("skin",e)}renderNav(){return me(bA,{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 me("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[me("div",{class:"flex flex-middle flex-grow",children:[me("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:me(Jh,{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})}),me("div",{class:`margin-${this.dir[0]}`,children:e||t?me("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[me("div",{class:"preview-title ellipsis",children:e?e.name:Tt.search_no_results_1}),me("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:Tt.search_no_results_2})]}):me("div",{class:"preview-placeholder color-c",children:Tt.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,f=(e.skins[o-1]||e.skins[0]).native,h=tA(this.state.pos,t),p=t.concat(e.id).join("");return me(yA,{selected:h,skin:o,size:a,children:me("button",{"aria-label":f,"aria-selected":h||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:[me("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}}),me(Jh,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},p)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return me("div",{children:[me("div",{class:"spacer"}),me("div",{class:"flex flex-middle",children:[me("div",{class:"search relative flex-grow",children:[me("input",{type:"search",ref:this.refs.searchInput,placeholder:Tt.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),me("span",{class:"icon loupe flex",children:Qc.search.loupe}),this.state.searchResults&&me("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:Qc.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?me("div",{class:"category",ref:this.refs.search,children:[me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Tt.categories.search}),me("div",{children:e.length?e.map((t,i)=>me("div",{class:"flex",children:t.map((r,a)=>this.renderEmojiButton(r,{pos:[i,a],posinset:i*this.props.perLine+a+1,grid:e}))})):me("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&me("a",{onClick:this.props.onAddCustomEmoji,children:Tt.add_custom})})})]}):null}renderCategories(){const{categories:e}=kn,t=!!this.state.searchResults,i=this.getPerLine();return me("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 me("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:a,children:[me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||Tt.categories[r.id]}),me("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((d,f)=>{const h=d.index-d.index%hc.rowsPerRender,p=this.state.visibleRows[h],m="current"in d?d:void 0;if(!p&&!m)return null;const b=f*i,x=b+i,_=r.emojis.slice(b,x);return _.length<i&&_.push(...new Array(i-_.length)),me("div",{"data-index":d.index,ref:m,class:"flex row",style:{top:f*this.props.emojiButtonSize},children:p&&_.map((F,R)=>{if(!F)return me("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const T=Cs.get(F);return this.renderEmojiButton(T,{pos:[d.index,R],posinset:d.posinset+R,grid:this.grid})})},d.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:me("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:me("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":Tt.skins.choose,title:Tt.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:me("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),t=e?e.name:"";return me("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"),me("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Tt.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(a=>{const o=a+1,d=this.state.skin==o;return me("div",{children:[me("input",{type:"radio",name:"skin-tone",value:o,"aria-label":Tt.skins[o],ref:d?this.refs.skinToneRadio:null,defaultChecked:d,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:f=>{(f.code=="Enter"||f.code=="Space"||f.code=="Tab")&&(f.preventDefault(),this.handleSkinClick(o))}}),me("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:[me("span",{class:`skin-tone skin-tone-${o}`}),me("span",{class:"margin-small-lr",children:Tt.skins[o]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return me("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"&&me("div",{class:"padding-lr",children:this.renderSearch()}),me("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:me("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(),xi(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),xi(this,"handleClickOutside",t=>{const{element:i}=this.props;t.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(t))}),xi(this,"handleBaseClick",t=>{this.state.showSkins&&(t.target.closest(".menu")||(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins()))}),xi(this,"handleBaseKeydown",t=>{this.state.showSkins&&t.key=="Escape"&&(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins())}),xi(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),xi(this,"handleSearchInput",async()=>{const t=this.refs.searchInput.current;if(!t)return;const{value:i}=t,r=await Cs.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],d=[];d.setsize=r.length;let f=null;for(let h of r)(!d.length||f.length==this.getPerLine())&&(f=[],f.__categoryId="search",f.__index=d.length,d.push(f)),f.push(h);this.ignoreMouse(),this.setState({searchResults:d,pos:o},a)}),xi(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}}),xi(this,"clearSearch",()=>{const t=this.refs.searchInput.current;t&&(t.value="",t.focus(),this.handleSearchInput())}),xi(this,"handleCategoryClick",({category:t,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:t.id})}),xi(this,"openSkins",t=>{const{currentTarget:i}=t,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await iA(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 qp extends lA{async connectedCallback(){const e=a3(this.props,$r,this);e.element=this,e.ref=t=>{this.component=t},await cd(e),!this.disconnected&&Q2(me(_A,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:H2(c3)})}}xi(qp,"Props",$r);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",qp);var c3={};c3=`:host {
|
|
214
214
|
width: min-content;
|
|
215
215
|
height: 435px;
|
|
216
216
|
min-height: 230px;
|
package/index.mjs
CHANGED
|
@@ -24181,7 +24181,7 @@ const {
|
|
|
24181
24181
|
}), e.basicAuth && (this.instance.defaults.auth = {
|
|
24182
24182
|
password: e.basicAuth.password,
|
|
24183
24183
|
username: e.basicAuth.username
|
|
24184
|
-
}), e.authToken && (this.instance.defaults.headers.common["X-Auth-Token"] = e.authToken), this.instance.interceptors.response.use(
|
|
24184
|
+
}), e.authToken && (this.instance.defaults.headers.common["X-Auth-Token"] = e.authToken), e.language && (this.instance.defaults.headers.common["Accept-Language"] = e.language), this.instance.interceptors.response.use(
|
|
24185
24185
|
(t) => t,
|
|
24186
24186
|
(t) => {
|
|
24187
24187
|
throw sP(t) ? new Error(this.generateErrorMsg(t)) : t;
|