PageSourceSearch

https://amposter.com/static/js/main.5e5ce585.js

js amposter.com collected 2026-10-04 15:25:58 UTC 2,172,021 bytes, 3 lines download raw bytes

1/*! For license information please see main.5e5ce585.js.LICENSE.txt */
2(()=>{var e={543:()=>{},1523:(e,t,n)=>{"use strict";n.d(t,{YK:()=>ee});var r=n(22555);var o,i,a,s,l,c,u,d,p,h,f,m,_,g,v,y,b=n(39790),w=n(55149),x=n(26562),k=n(38458),S=n(24558),C=n(3491),A=n(11454),E=n(49210),j=n(60329),T=n(79567),P=n(99723),N=n(5734),I=(o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m=new WeakMap,_=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakSet,class extends j.Q{constructor(e,t){super(),(0,b.A)(this,y),(0,w.A)(this,o,void 0),(0,w.A)(this,i,void 0),(0,w.A)(this,a,void 0),(0,w.A)(this,s,void 0),(0,w.A)(this,l,void 0),(0,w.A)(this,c,void 0),(0,w.A)(this,u,void 0),(0,w.A)(this,d,void 0),(0,w.A)(this,p,void 0),(0,w.A)(this,h,void 0),(0,w.A)(this,f,void 0),(0,w.A)(this,m,void 0),(0,w.A)(this,_,void 0),(0,w.A)(this,g,void 0),(0,w.A)(this,v,new Set),this.options=t,(0,S.A)(o,this,e),(0,S.A)(d,this,null),(0,S.A)(u,this,(0,T.T)()),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&((0,k.A)(i,this).addObserver(this),U((0,k.A)(i,this),this.options)?(0,x.A)(y,this,R).call(this):this.updateResult(),(0,x.A)(y,this,L).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return H((0,k.A)(i,this),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return H((0,k.A)(i,this),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,(0,x.A)(y,this,F).call(this),(0,x.A)(y,this,z).call(this),(0,k.A)(i,this).removeObserver(this)}setOptions(e){const t=this.options,n=(0,k.A)(i,this);if(this.options=(0,k.A)(o,this).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!==typeof this.options.enabled&&"function"!==typeof this.options.enabled&&"boolean"!==typeof(0,P.Eh)(this.options.enabled,(0,k.A)(i,this)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");(0,x.A)(y,this,B).call(this),(0,k.A)(i,this).setOptions(this.options),t._defaulted&&!(0,P.f8)(this.options,t)&&(0,k.A)(o,this).getQueryCache().notify({type:"observerOptionsUpdated",query:(0,k.A)(i,this),observer:this});const r=this.hasListeners();r&&W((0,k.A)(i,this),n,this.options,t)&&(0,x.A)(y,this,R).call(this),this.updateResult(),!r||(0,k.A)(i,this)===n&&(0,P.Eh)(this.options.enabled,(0,k.A)(i,this))===(0,P.Eh)(t.enabled,(0,k.A)(i,this))&&(0,P.d2)(this.options.staleTime,(0,k.A)(i,this))===(0,P.d2)(t.staleTime,(0,k.A)(i,this))||(0,x.A)(y,this,O).call(this);const a=(0,x.A)(y,this,D).call(this);!r||(0,k.A)(i,this)===n&&(0,P.Eh)(this.options.enabled,(0,k.A)(i,this))===(0,P.Eh)(t.enabled,(0,k.A)(i,this))&&a===(0,k.A)(g,this)||(0,x.A)(y,this,M).call(this,a)}getOptimisticResult(e){const t=(0,k.A)(o,this).getQueryCache().build((0,k.A)(o,this),e),n=this.createResult(t,e);return function(e,t){if(!(0,P.f8)(e.getCurrentResult(),t))return!0;return!1}(this,n)&&((0,S.A)(s,this,n),(0,S.A)(c,this,this.options),(0,S.A)(l,this,(0,k.A)(i,this).state)),n}getCurrentResult(){return(0,k.A)(s,this)}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),null===t||void 0===t||t(n),"promise"===n&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==(0,k.A)(u,this).status||(0,k.A)(u,this).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,n))})}trackProp(e){(0,k.A)(v,this).add(e)}getCurrentQuery(){return(0,k.A)(i,this)}refetch(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return this.fetch((0,r.A)({},t))}fetchOptimistic(e){const t=(0,k.A)(o,this).defaultQueryOptions(e),n=(0,k.A)(o,this).getQueryCache().build((0,k.A)(o,this),t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return(0,x.A)(y,this,R).call(this,(0,r.A)((0,r.A)({},e),{},{cancelRefetch:null===(t=e.cancelRefetch)||void 0===t||t})).then((()=>(this.updateResult(),(0,k.A)(s,this))))}createResult(e,t){const n=(0,k.A)(i,this),o=this.options,m=(0,k.A)(s,this),_=(0,k.A)(l,this),g=(0,k.A)(c,this),v=e!==n?e.state:(0,k.A)(a,this),{state:y}=e;let b,w=(0,r.A)({},y),x=!1;if(t._optimisticResults){const i=this.hasListeners(),a=!i&&U(e,t),s=i&&W(e,n,t,o);(a||s)&&(w=(0,r.A)((0,r.A)({},w),(0,E.k)(y.data,e.options))),"isRestoring"===t._optimisticResults&&(w.fetchStatus="idle")}let{error:C,errorUpdatedAt:A,status:j}=w;b=w.data;let N=!1;if(void 0!==t.placeholderData&&void 0===b&&"pending"===j){let e;var I;if(null!==m&&void 0!==m&&m.isPlaceholderData&&t.placeholderData===(null===g||void 0===g?void 0:g.placeholderData))e=m.data,N=!0;else e="function"===typeof t.placeholderData?t.placeholderData(null===(I=(0,k.A)(f,this))||void 0===I?void 0:I.state.data,(0,k.A)(f,this)):t.placeholderData;void 0!==e&&(j="success",b=(0,P.pl)(null===m||void 0===m?void 0:m.data,e,t),x=!0)}if(t.select&&void 0!==b&&!N)if(m&&b===(null===_||void 0===_?void 0:_.data)&&t.select===(0,k.A)(p,this))b=(0,k.A)(h,this);else try{(0,S.A)(p,this,t.select),b=t.select(b),b=(0,P.pl)(null===m||void 0===m?void 0:m.data,b,t),(0,S.A)(h,this,b),(0,S.A)(d,this,null)}catch(z){(0,S.A)(d,this,z)}(0,k.A)(d,this)&&(C=(0,k.A)(d,this),b=(0,k.A)(h,this),A=Date.now(),j="error");const R="fetching"===w.fetchStatus,O="pending"===j,D="error"===j,M=O&&R,L=void 0!==b,F={status:j,fetchStatus:w.fetchStatus,isPending:O,isSuccess:"success"===j,isError:D,isInitialLoading:M,isLoading:M,data:b,dataUpdatedAt:w.dataUpdatedAt,error:C,errorUpdatedAt:A,failureCount:w.fetchFailureCount,failureReason:w.fetchFailureReason,errorUpdate
2Count:w.errorUpdateCount,isFetched:w.dataUpdateCount>0||w.errorUpdateCount>0,isFetchedAfterMount:w.dataUpdateCount>v.dataUpdateCount||w.errorUpdateCount>v.errorUpdateCount,isFetching:R,isRefetching:R&&!O,isLoadingError:D&&!L,isPaused:"paused"===w.fetchStatus,isPlaceholderData:x,isRefetchError:D&&L,isStale:V(e,t),refetch:this.refetch,promise:(0,k.A)(u,this),isEnabled:!1!==(0,P.Eh)(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===F.status?e.reject(F.error):void 0!==F.data&&e.resolve(F.data)},r=()=>{const e=(0,S.A)(u,this,F.promise=(0,T.T)());t(e)},o=(0,k.A)(u,this);switch(o.status){case"pending":e.queryHash===n.queryHash&&t(o);break;case"fulfilled":"error"!==F.status&&F.data===o.value||r();break;case"rejected":"error"===F.status&&F.error===o.reason||r()}}return F}updateResult(){const e=(0,k.A)(s,this),t=this.createResult((0,k.A)(i,this),this.options);if((0,S.A)(l,this,(0,k.A)(i,this).state),(0,S.A)(c,this,this.options),void 0!==(0,k.A)(l,this).data&&(0,S.A)(f,this,(0,k.A)(i,this)),(0,P.f8)(t,e))return;(0,S.A)(s,this,t);(0,x.A)(y,this,q).call(this,{listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"===typeof t?t():t;if("all"===n||!n&&!(0,k.A)(v,this).size)return!0;const r=new Set(null!==n&&void 0!==n?n:(0,k.A)(v,this));return this.options.throwOnError&&r.add("error"),Object.keys((0,k.A)(s,this)).some((t=>{const n=t;return(0,k.A)(s,this)[n]!==e[n]&&r.has(n)}))})()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&(0,x.A)(y,this,L).call(this)}});function R(e){(0,x.A)(y,this,B).call(this);let t=(0,k.A)(i,this).fetch(this.options,e);return null!==e&&void 0!==e&&e.throwOnError||(t=t.catch(P.lQ)),t}function O(){(0,x.A)(y,this,F).call(this);const e=(0,P.d2)(this.options.staleTime,(0,k.A)(i,this));if(P.S$||(0,k.A)(s,this).isStale||!(0,P.gn)(e))return;const t=(0,P.j3)((0,k.A)(s,this).dataUpdatedAt,e)+1;(0,S.A)(m,this,N.zs.setTimeout((()=>{(0,k.A)(s,this).isStale||this.updateResult()}),t))}function D(){var e;return null!==(e="function"===typeof this.options.refetchInterval?this.options.refetchInterval((0,k.A)(i,this)):this.options.refetchInterval)&&void 0!==e&&e}function M(e){(0,x.A)(y,this,z).call(this),(0,S.A)(g,this,e),!P.S$&&!1!==(0,P.Eh)(this.options.enabled,(0,k.A)(i,this))&&(0,P.gn)((0,k.A)(g,this))&&0!==(0,k.A)(g,this)&&(0,S.A)(_,this,N.zs.setInterval((()=>{(this.options.refetchIntervalInBackground||C.m.isFocused())&&(0,x.A)(y,this,R).call(this)}),(0,k.A)(g,this)))}function L(){(0,x.A)(y,this,O).call(this),(0,x.A)(y,this,M).call(this,(0,x.A)(y,this,D).call(this))}function F(){(0,k.A)(m,this)&&(N.zs.clearTimeout((0,k.A)(m,this)),(0,S.A)(m,this,void 0))}function z(){(0,k.A)(_,this)&&(N.zs.clearInterval((0,k.A)(_,this)),(0,S.A)(_,this,void 0))}function B(){const e=(0,k.A)(o,this).getQueryCache().build((0,k.A)(o,this),this.options);if(e===(0,k.A)(i,this))return;const t=(0,k.A)(i,this);(0,S.A)(i,this,e),(0,S.A)(a,this,e.state),this.hasListeners()&&(null===t||void 0===t||t.removeObserver(this),e.addObserver(this))}function q(e){A.jG.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e((0,k.A)(s,this))})),(0,k.A)(o,this).getQueryCache().notify({query:(0,k.A)(i,this),type:"observerResultsUpdated"})}))}function U(e,t){return function(e,t){return!1!==(0,P.Eh)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&H(e,t,t.refetchOnMount)}function H(e,t,n){if(!1!==(0,P.Eh)(t.enabled,e)&&"static"!==(0,P.d2)(t.staleTime,e)){const r="function"===typeof n?n(e):n;return"always"===r||!1!==r&&V(e,t)}return!1}function W(e,t,n,r){return(e!==t||!1===(0,P.Eh)(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&V(e,n)}function V(e,t){return!1!==(0,P.Eh)(t.enabled,e)&&e.isStaleByTime((0,P.d2)(t.staleTime,e))}var K=n(65043),G=n(63248);n(70579);function Y(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Q=K.createContext(Y()),X=K.createContext(!1),$=(X.Provider,(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()})));function J(e,t,n){var r,o,i,a;const s=K.useContext(X),l=K.useContext(Q),c=(0,G.jE)(n),u=c.defaultQueryOptions(e);
2null===(r=c.getDefaultOptions().queries)||void 0===r||null===(o=r._experimental_beforeQuery)||void 0===o||o.call(r,u);const d=c.getQueryCache().get(u.queryHash);u._optimisticResults=s?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,n=e=>"static"===e?e:Math.max(null!==e&&void 0!==e?e:t,t),r=e.staleTime;e.staleTime="function"===typeof r?function(){return n(r(...arguments))}:n(r),"number"===typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(u),((e,t,n)=>{const r=null!==n&&void 0!==n&&n.state.error&&"function"===typeof e.throwOnError?(0,P.GU)(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))})(u,l,d),(e=>{K.useEffect((()=>{e.clearReset()}),[e])})(l);const p=!c.getQueryCache().get(u.queryHash),[h]=K.useState((()=>new t(c,u))),f=h.getOptimisticResult(u),m=!s&&!1!==e.subscribed;if(K.useSyncExternalStore(K.useCallback((e=>{const t=m?h.subscribe(A.jG.batchCalls(e)):P.lQ;return h.updateResult(),t}),[h,m]),(()=>h.getCurrentResult()),(()=>h.getCurrentResult())),K.useEffect((()=>{h.setOptions(u)}),[u,h]),((e,t)=>(null===e||void 0===e?void 0:e.suspense)&&t.isPending)(u,f))throw $(u,h,l);if((e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:o,suspense:i}=e;return t.isError&&!n.isReset()&&!t.isFetching&&o&&(i&&void 0===t.data||(0,P.GU)(r,[t.error,o]))})({result:f,errorResetBoundary:l,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw f.error;if(null===(i=c.getDefaultOptions().queries)||void 0===i||null===(a=i._experimental_afterQuery)||void 0===a||a.call(i,u,f),u.experimental_prefetchInRender&&!P.S$&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,s)){const e=p?$(u,h,l):null===d||void 0===d?void 0:d.promise;null===e||void 0===e||e.catch(P.lQ).finally((()=>{h.updateResult()}))}return u.notifyOnChangeProps?f:h.trackResult(f)}var Z=n(40117);n(30590);const ee=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){return J(e,I,t)}((0,r.A)({queryKey:["post",e],queryFn:async()=>{const t=Z.firebase.database().ref("posts/".concat(e)),n=await t.once("value");if(!n.exists())throw new Error("\u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f");const o=n.val();return(0,r.A)({id:e},o)},enabled:!!e},t))}},1641:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray,r=t.algo,o=r.SHA256,i=r.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(i),t.HmacSHA224=o._createHmacHelper(i)}(),e.SHA224}(n(84488),n(76368))},1648:(e,t,n)=>{"use strict";n.d(t,{JR:()=>C,_G:()=>p,be:()=>s,gB:()=>m,gl:()=>x});var r=n(22555),o=n(65043),i=n(23585),a=n(41024);function s(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function c(e){return null!==e&&e>=0}const u=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=s(t,r,n),a=t[o],l=i[o];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},d={scaleX:1,scaleY:1},p=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:i,rects:a,overIndex:s}=e;const l=null!=(t=a[n])?t:o;if(!l)return null;if(i===n){const e=a[s];return e?(0,r.A)({x:0,y:n<s?e.top+e.height-(l.top+l.height):e.top-l.top},d):null}const c=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(a,i,n);return i>n&&i<=s?(0,r.A)({x:0,y:-l.height-c},d):i<n&&i>=s?(0,r.A)({x:0,y:l.height+c},d):(0,r.A)({x:0,y:0},d)};const h="Sortable",f=o.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:u,disabled:{draggable:!1,droppable:!1}});function m(e){let{children:t,id:n,items:r,strategy:s=u,disabled:c=!1}=e;const{active:d,dragOverlay:p,droppableRects:m,over:_,measureDroppableContainers:g}=(0,i.fF)(),v=(0,a.YG)(h,n),y=Boolean(null!==p.rect),b=(0,o.useMemo)((()=>r.map((e=>"object"===typeof e&&"id"in e?e.id:e))),[r]),w=null!=d,x=d?b.indexOf(d.id):-1,k=_?b.indexOf(_.id):-1,S=(0,o.useRef)(b),C=!function(e,t){if(e===t)return!0;
2if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(b,S.current),A=-1!==k&&-1===x||C,E=function(e){return"boolean"===typeof e?{draggable:e,droppable:e}:e}(c);(0,a.Es)((()=>{C&&w&&g(b)}),[C,b,w,g]),(0,o.useEffect)((()=>{S.current=b}),[b]);const j=(0,o.useMemo)((()=>({activeIndex:x,containerId:v,disabled:E,disableTransforms:A,items:b,overIndex:k,useDragOverlay:y,sortedRects:l(b,m),strategy:s})),[x,v,E.draggable,E.droppable,A,b,k,m,y,s]);return o.createElement(f.Provider,{value:j},t)}const _=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return s(n,r,o).indexOf(t)},g=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!r)&&((s===i||o!==a)&&(!!n||a!==o&&t===l))},v={duration:200,easing:"ease"},y="transform",b=a.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function x(e){let{animateLayoutChanges:t=g,attributes:n,disabled:s,data:l,getNewIndex:u=_,id:d,strategy:p,resizeObserverConfig:h,transition:m=v}=e;const{items:x,containerId:k,activeIndex:S,disabled:C,disableTransforms:A,sortedRects:E,overIndex:j,useDragOverlay:T,strategy:P}=(0,o.useContext)(f),N=function(e,t){var n,r;if("boolean"===typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(s,C),I=x.indexOf(d),R=(0,o.useMemo)((()=>(0,r.A)({sortable:{containerId:k,index:I,items:x}},l)),[k,l,I,x]),O=(0,o.useMemo)((()=>x.slice(x.indexOf(d))),[x,d]),{rect:D,node:M,isOver:L,setNodeRef:F}=(0,i.zM)({id:d,data:R,disabled:N.droppable,resizeObserverConfig:(0,r.A)({updateMeasurementsFor:O},h)}),{active:z,activatorEvent:B,activeNodeRect:q,attributes:U,setNodeRef:H,listeners:W,isDragging:V,over:K,setActivatorNodeRef:G,transform:Y}=(0,i.PM)({id:d,data:R,attributes:(0,r.A)((0,r.A)({},w),n),disabled:N.draggable}),Q=(0,a.jn)(F,H),X=Boolean(z),$=X&&!A&&c(S)&&c(j),J=!T&&V,Z=J&&$?Y:null,ee=$?null!=Z?Z:(null!=p?p:P)({rects:E,activeNodeRect:q,activeIndex:S,overIndex:j,index:I}):null,te=c(S)&&c(j)?u({id:d,items:x,activeIndex:S,overIndex:j}):I,ne=null==z?void 0:z.id,re=(0,o.useRef)({activeId:ne,items:x,newIndex:te,containerId:k}),oe=x!==re.current.items,ie=t({active:z,containerId:k,isDragging:V,isSorting:X,id:d,index:I,items:x,newIndex:re.current.newIndex,previousItems:re.current.items,previousContainerId:re.current.containerId,transition:m,wasDragging:null!=re.current.activeId}),ae=function(e){let{disabled:t,index:n,node:r,rect:s}=e;const[l,c]=(0,o.useState)(null),u=(0,o.useRef)(n);return(0,a.Es)((()=>{if(!t&&n!==u.current&&r.current){const e=s.current;if(e){const t=(0,i.Sj)(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)}),[t,n,r,s]),(0,o.useEffect)((()=>{l&&c(null)}),[l]),l}({disabled:!ie,index:I,node:M,rect:D});return(0,o.useEffect)((()=>{X&&re.current.newIndex!==te&&(re.current.newIndex=te),k!==re.current.containerId&&(re.current.containerId=k),x!==re.current.items&&(re.current.items=x)}),[X,te,k,x]),(0,o.useEffect)((()=>{if(ne===re.current.activeId)return;if(null!=ne&&null==re.current.activeId)return void(re.current.activeId=ne);const e=setTimeout((()=>{re.current.activeId=ne}),50);return()=>clearTimeout(e)}),[ne]),{active:z,activeIndex:S,attributes:U,data:R,rect:D,index:I,newIndex:te,items:x,isOver:L,isSorting:X,isDragging:V,listeners:W,node:M,overIndex:j,over:K,setNodeRef:Q,setActivatorNodeRef:G,setDroppableNodeRef:F,setDraggableNodeRef:H,transform:null!=ae?ae:ee,transition:function(){if(ae||oe&&re.current.newIndex===I)return b;if(J&&!(0,a.kx)(B)||!m)return;if(X||ie)return a.Ks.Transition.toString((0,r.A)((0,r.A)({},m),{},{property:y}));return}()}}function k(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"===typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const S=[i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left],C=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:s,over:l,scrollableAncestors:c}}=t;if(S.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];
2s.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const a=o.get(n.id);if(a)switch(e.code){case i.vL.Down:r.top<a.top&&t.push(n);break;case i.vL.Up:r.top>a.top&&t.push(n);break;case i.vL.Left:r.left>a.left&&t.push(n);break;case i.vL.Right:r.left<a.left&&t.push(n)}}));const u=(0,i.y$)({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let d=(0,i.Vy)(u,"id");if(d===(null==l?void 0:l.id)&&u.length>1&&(d=u[1].id),null!=d){const e=s.get(n.id),t=s.get(d),l=t?o.get(t.id):null,u=null==t?void 0:t.node.current;if(u&&l&&e&&t){const n=(0,i.sl)(u).some(((e,t)=>c[t]!==e)),o=A(e,t),s=function(e,t){if(!k(e)||!k(t))return!1;if(!A(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),d=n||!o?{x:0,y:0}:{x:s?r.width-l.width:0,y:s?r.height-l.height:0},p={x:l.left,y:l.top};return d.x&&d.y?p:(0,a.Re)(p,d)}}}};function A(e,t){return!(!k(e)||!k(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},2190:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});const r=(0,n(65043).createContext)({})},3343:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},3491:(e,t,n)=>{"use strict";n.d(t,{m:()=>d});var r,o,i,a=n(55149),s=n(38458),l=n(24558),c=n(60329),u=n(99723),d=new(r=new WeakMap,o=new WeakMap,i=new WeakMap,class extends c.Q{constructor(){super(),(0,a.A)(this,r,void 0),(0,a.A)(this,o,void 0),(0,a.A)(this,i,void 0),(0,l.A)(i,this,(e=>{if(!u.S$&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){(0,s.A)(o,this)||this.setEventListener((0,s.A)(i,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=(0,s.A)(o,this))||void 0===e||e.call(this),(0,l.A)(o,this,void 0))}setEventListener(e){var t;(0,l.A)(i,this,e),null===(t=(0,s.A)(o,this))||void 0===t||t.call(this),(0,l.A)(o,this,e((e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()})))}setFocused(e){(0,s.A)(r,this)!==e&&((0,l.A)(r,this,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var e;return"boolean"===typeof(0,s.A)(r,this)?(0,s.A)(r,this):"hidden"!==(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)}})},3892:e=>{e.exports=function(e){return this.__data__.has(e)}},4157:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(65043),a=(r=i)&&r.__esModule?r:{default:r};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return i=l=s(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(u))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return a.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},a.default.createElement(e,o({},l.props,l.state)))},s(l,i)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(a.default.Component)};t.default=l},4262:(e,t,n)=>{var r=n(48895),o=n(54052);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},4423:function(e,t,n){e.exports=function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}(n(84488),n(52238))},4973:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(65043),a=(r=i)&&r.__esModule?r:{default:r};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var l=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return i=l=s(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(u))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return a.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},a.default.createElement(e,o({},l.props,l.state)))},s(l,i)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(a.default.Component)};t.default=l},5077:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("flame",[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]])},5244:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]])},5379:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},5538:(e,t,n)=>{var r=n(97160),o=n(84545),i=n(10793),a=n(27760),s=n(3892),l=n(76788);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},5654:(e,t,n)=>{var r=n(87937),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},5734:(e,t,n)=>{"use strict";n.d(t,{Zq:()=>u,zs:()=>c});var r,o,i=n(55149),a=n(24558),s=n(38458),l={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},c=new(r=new WeakMap,o=new WeakMap,class{constructor(){(0,i.A)(this,r,l),(0,i.A)(this,o,!1)}setTimeoutProvider(e){(0,a.A)(r,this,e)}setTimeout(e,t){return(0,s.A)(r,this).setTimeout(e,t)}clearTimeout(e){(0,s.A)(r,this).clearTimeout(e)}setInterval(e,t){return(0,s.A)(r,this).setInterval(e,t)}clearInterval(e){(0,s.A)(r,this).clearInterval(e)}});function u(e){setTimeout(e,0)}},5791:(e,t,n)=>{var r=n(26924),o=n(22761);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},5896:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,h=3,f=!1,m=!1,_=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(_=!1,w(e),!m)if(null!==r(c))m=!0,S||(S=!0,k());else{var t=r(u);null!==t&&I(x,t.startTime-e)}}var k,S=!1,C=-1,A=5,E=-1;function j(){return!!g||!(t.unstable_now()-E<A)}function T(){if(g=!1,S){var e=t.unstable_now();E=e;var n=!0;try{e:{m=!1,_&&(_=!1,y(C),C=-1),f=!0;var i=h;try{t:{for(w(e),p=r(c);null!==p&&!(p.expirationTime>e&&j());){var a=p.callback;if("function"===typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof s){p.callback=s,w(e),n=!0;break t}p===r(c)&&o(c),w(e)}else o(c);p=r(c)}if(null!==p)n=!0;else{var l=r(u);null!==l&&I(x,l.startTime-e),n=!1}}break e}finally{p=null,h=i,f=!1}n=void 0}}finally{n?k():S=!1}}}if("function"===typeof b)k=function(){b(T)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,N=P.port2;P.port1.onmessage=T,k=function(){N.postMessage(null)}}else k=function(){v(T,0)};function I(e,n){C=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_requestPaint=function(){g=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(_?(y(C),C=-1):_=!0,I(x,i-a))):(e.sortIndex=s,n(c,e),m||f||(m=!0,S||(S=!0,k()))),e},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},6571:(e,t,n)=>{var r=n(11629),o=n(56173);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},6806:(e,t,n)=>{var r=n(61516);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},7423:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=i.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,p,y,b,w,x,k,S,C,A,E,j=this._hash.words,T=u.words,P=d.words,N=a.words,I=s.words,R=l.words,O=c.words;for(x=i=j[0],k=p=j[1],S=y=j[2],C=b=j[3],A=w=j[4],n=0;n<80;n+=1)E=i+e[t+N[n]]|0,E+=n<16?h(p,y,b)+T[0]:n<32?f(p,y,b)+T[1]:n<48?m(p,y,b)+T[2]:n<64?_(p,y,b)+T[3]:g(p,y,b)+T[4],E=(E=v(E|=0,R[n]))+w|0,i=w,w=b,b=v(y,10),y=p,p=E,E=x+e[t+I[n]]|0,E+=n<16?g(k,S,C)+P[0]:n<32?_(k,S,C)+P[1]:n<48?m(k,S,C)+P[2]:n<64?f(k,S,C)+P[3]:h(k,S,C)+P[4],E=(E=v(E|=0,O[n]))+A|0,x=A,A=C,C=v(S,10),S=k,k=E;E=j[1]+y+C|0,j[1]=j[2]+b+A|0,j[2]=j[3]+w+x|0,j[3]=j[4]+i+k|0,j[4]=j[0]+p+S|0,j[0]=E},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function f(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function _(e,t,n){return e&n|t&~n}function g(e,t,n){return e^(t|~n)}function v(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(p),t.HmacRIPEMD160=o._createHmacHelper(p)}(Math),e.RIPEMD160}(n(84488))},7540:(e,t,n)=>{"use strict";n.d(t,{B$:()=>f,DK:()=>h,Dz:()=>T,MB:()=>k,My:()=>u,PV:()=>p,XU:()=>w,YN:()=>m,Zu:()=>b,dl:()=>v,ed:()=>j,g5:()=>P,jr:()=>S,lt:()=>d,q9:()=>_,sI:()=>g,tW:()=>y,yd:()=>x,ye:()=>A,zy:()=>E});var r=n(40117);const o=()=>r.firebase.database(),i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return r.firebase.database.ServerValue.increment(e)},a=()=>{const e=new Date,t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r)},s=e=>"user_activity/".concat(e,"/totals"),l=e=>"user_activity/".concat(e,"/daily/").concat(a());async function c(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"reaction_types";if(!e)return;const u={},d=s(e),p=l(e);u["".concat(d,"/").concat(t)]=i(r),u["".concat(p,"/").concat(n)]=i(r),a&&(u["".concat(d,"/").concat(c,"/").concat(a)]=i(r),u["".concat(p,"/").concat(c,"/").concat(a)]=i(r));try{await o().ref().update(u)}catch(h){console.warn("[userActivityTracker] update failed",h)}}async function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post";if(!e)return;const n=s(e),r=l(e),a={["".concat(n,"/posts")]:i(1),["".concat(r,"/posts")]:i(1),["".concat(n,"/post_types/").concat(t)]:i(1),["".concat(r,"/post_types/").concat(t)]:i(1)};try{await o().ref().update(a)}catch(c){console.warn("[tracker] trackPostCreated failed",c)}}async function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return;const r=s(e),c={["".concat(r,"/posts")]:i(-1),["".concat(r,"/post_types/").concat(t)]:i(-1)};if(n){const r=new Date(n);if("".concat(r.getFullYear(),"-").concat(String(r.getMonth()+1).padStart(2,"0"),"-").concat(String(r.getDate()).padStart(2,"0"))===a()){const n=l(e);c["".concat(n,"/posts")]=i(-1),c["".concat(n,"/post_types/").concat(t)]=i(-1)}}try{await o().ref().update(c)}catch(u){console.warn("[tracker] trackPostDeleted failed",u)}}async function p(e,t){await c(e,"reactions_on_posts","reactions_on_posts",1,t,"reaction_types")}async function h(e,t){await c(e,"reactions_on_posts","reactions_on_posts",-1,t,"reaction_types")}async function f(e,t,n){if(t===n)return;const r=s(e),a=l(e),c={["".concat(r,"/reaction_types/").concat(t)]:i(-1),["".concat(a,"/reaction_types/").concat(t)]:i(-1),["".concat(r,"/reaction_types/").concat(n)]:i(1),["".concat(a,"/reaction_types/").concat(n)]:i(1)};try{await o().ref().update(c)}catch(u){console.warn("[tracker] reaction change failed",u)}}async function m(e,t){await c(e,"reactions_on_comments","reactions_on_comments",1,t,"comment_reaction_types")}async function _(e,t){await c(e,"reactions_on_comments","reactions_on_comments",-1,t,"comment_reaction_types")}async function g(e,t,n){if(t===n)return;const r=s(e),a=l(e),c={["".concat(r,"/comment_reaction_types/").concat(t)]:i(-1),["".concat(a,"/comment_reaction_types/").concat(t)]:i(-1),["".concat(r,"/comment_reaction_types/").concat(n)]:i(1),["".concat(a,"/comment_reaction_types/").concat(n)]:i(1)};try{await o().ref().update(c)}catch(u){console.warn("[tracker] comment reaction change failed",u)}}async function v(e,t){await c(e,"reactions_on_replies","reactions_on_replies",1,t,"reply_reaction_types")}async function y(e,t){await c(e,"reactions_on_replies","reactions_on_replies",-1,t,"reply_reaction_types")}async function b(e,t,n){if(t===n)return;const r=s(e),a=l(e),c={["".concat(r,"/reply_reaction_types/").concat(t)]:i(-1),["".concat(a,"/reply_reaction_types/").concat(t)]:i(-1),["".concat(r,"/reply_reaction_types/").concat(n)]:i(1),["".concat(a,"/reply_reaction_types/").concat(n)]:i(1)};try{await o().ref().update(c)}catch(u){console.warn("[tracker] reply reaction change failed",u)}}async function w(e){await c(e,"comments","comments",1)}async function x(e){await c(e,"comments","comments",-1)}async function k(e){await c(e,"replies","replies",1)}async function S(e){await c(e,"replies","replies",-1)}async function C(e){try{const t=await o().ref(e).once("value");if(!t.exists())return{exists:!1,deleted:!1};const n=t.val();return{exists:!0,deleted:"object"===typeof n&&null!==n&&!0===n.deleted}}catch(t){return console.warn("[tracker] guard check failed for",e,t),{exists:!0,deleted:!1}}}async function A(e){const{exists:t,deleted:n}=await C("posts/".concat(e));return!t||n?"\u062a\u0645 \u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0648\u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0644\u062a\u0641\u0627\u0639\u0644 \u0645\u0639\u0647.":null}async function E(e,t){const{exists:n,deleted:r}=await C("posts/".concat(e,"/comments/").concat(t));return!n||r?"\u062a\u0645 \u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0648\u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0644\u062a\u0641\u0627\u0639\u0644 \u0645\u0639\u0647.":null}async function j(e,t,n){const{exists:r,deleted:o}=await C("posts/".concat(e,"/comments/").concat(t,"/replies/").concat(n));return!r||o?"\u062a\u0645 \u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u0631\u062f \u0648\u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0644\u062a\u0641\u0627\u0639\u0644 \u0645\u0639\u0647.":null}async function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(!e||n<=0)return;const r=s(e),a=l(e),c={["".concat(r,"/tasbeeh_total")]:i(n),["".concat(a,"/tasbeeh_total")]:i(n),["".concat(r,"/tasbeeh_types/").concat(N(t))]:i(n),["".concat(a,"/tasbeeh_types/").concat(N(t))]:i(n)};try{await o().ref().update(c)}catch(u){console.warn("[tracker] trackTasbeehIncrement failed",u)}}async function P(e,t){if(!e||!["morning","evening"].includes(t))return;const n=s(e),r=l(e),a="morning"===t?"adhkar_morning":"adhkar_evening",c={["".concat(n,"/").concat(a)]:i(1),["".concat(r,"/").concat(a)]:i(1)};try{await o().ref().update(c)}catch(u){console.warn("[tracker] trackAdhkarCompleted failed",u)}}function N(e){return e.replace(/[.#$/\[\]]/g,"_").substring(0,80)}},7962:function(e,t,n){e.exports=function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var a=i.slice(0);n.encryptBlock(a,0),i[r-1]=i[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}});return t.Decryptor=n,t}(),e.mode.CTR}(n(84488),n(52238))},8145:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:
2"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]])},8195:(e,t,n)=>{"use strict";function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{A:()=>r})},8676:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(18328);function o(e){return(0,r.G)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},8800:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]])},8875:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],a=[],s=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(o[0]^=c,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=c,o[5]^=d,o[6]^=u,o[7]^=p,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=n._createHelper(s)}(),e.Rabbit}(n(84488),n(78523),n(54199),n(18211),n(52238))},9096:(e,t,n)=>{var r=n(39256),o=n(15029),i=n(33279),a=n(54052),s=n(63932);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},9333:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},9417:(e,t,n)=>{var r=n(46686);e.exports=function(e){return e===e&&!r(e)}},9463:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},9674:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});const r=(0,n(65043).createContext)(null)},9700:(e,t,n)=>{"use strict";n.d(t,{Np:()=>l,k1:()=>u});var r=n(22555),o=n(40117);const i={post:"\u0628\u0644\u0627\u063a \u0645\u0646\u0634\u0648\u0631",comment:"\u0628\u0644\u0627\u063a \u062a\u0639\u0644\u064a\u0642",reply:"\u0628\u0644\u0627\u063a \u0631\u062f",message:"\u0628\u0644\u0627\u063a \u0639\u0646 \u0631\u0633\u0627\u0644\u0629",sarahah:"\u0628\u0644\u0627\u063a \u0639\u0646 \u0635\u0627\u0631\u062d\u0646\u064a"},a=[{score:100,keywords:["\u0647\u0643\u0631","\u0647\u0627\u0643\u0631","hack","hacker","+18","18+","\u0627\u0628\u0627\u062d\u064a\u0629","\u0625\u0628\u0627\u062d\u064a\u0629","\u0628\u0627\u062d\u064a\u0629","\u0627\u0646\u062d\u0631\u0627\u0641","\u062a\u0647\u062f\u064a\u062f","\u0627\u0628\u062a\u0632\u0627\u0632","\u0642\u062a\u0644","\u0633\u0627\u0642\u062a\u0643","\u0627\u0630\u0628\u062d\u0643","\u062a\u0641\u062c\u064a\u0631","\u0627\u0631\u0647\u0627\u0628","\u0625\u0631\u0647\u0627\u0628","\u0645\u062e\u062f\u0631\u0627\u062a","\u062a\u062d\u0631\u0634","\u0627\u063a\u062a\u0635\u0627\u0628","\u0627\u0639\u062a\u062f\u0627\u0621 \u062c\u0646\u0633\u064a","\u0635\u0648\u0631 \u0639\u0627\u0631\u064a\u0629","\u0645\u062d\u062a\u0648\u0649 \u062c\u0646\u0633\u064a","\u0627\u0633\u062a\u063a\u0644\u0627\u0644 \u0627\u0637\u064
21\u0627\u0644","\u0625\u064a\u0630\u0627\u0621 \u0627\u0644\u0646\u0641\u0633","\u0627\u0646\u062a\u062d\u0627\u0631","\u0633\u0644\u0627\u062d","\u0642\u0646\u0628\u0644\u0629","\u062a\u0641\u062e\u064a\u062e"]},{score:80,keywords:["\u0642\u0644\u0629 \u0627\u062f\u0628","\u0642\u0644\u0629 \u0623\u062f\u0628","\u0634\u062a\u0645","\u0633\u0628","\u0645\u0633\u0628\u0627\u062a","\u0627\u0647\u0627\u0646\u0629","\u0625\u0647\u0627\u0646\u0629","\u0633\u062e\u0631\u064a\u0629","\u0627\u0633\u062a\u0647\u0632\u0627\u0621","\u0627\u0633\u0627\u0621\u0629","\u0625\u0633\u0627\u0621\u0629","\u0644\u0639\u0646","\u0642\u0630\u0641","\u0634\u062a\u064a\u0645\u0629","\u062d\u0642\u064a\u0631","\u063a\u0628\u064a","\u0643\u0644\u0628","\u062d\u064a\u0648\u0627\u0646","\u0639\u0646\u0635\u0631\u064a","\u0639\u0646\u0635\u0631\u064a\u0629","\u062a\u0646\u0645\u0631","\u062a\u0634\u0647\u064a\u0631","\u0641\u0636\u064a\u062d\u0629","\u062a\u062e\u0648\u064a\u0641","\u0648\u0639\u064a\u062f","\u0643\u0631\u0627\u0647\u064a\u0629"]},{score:60,keywords:["\u0633\u0631\u0642\u0629","\u0627\u0646\u062a\u062d\u0627\u0644","\u0633\u0628\u0627\u0645","\u0627\u062d\u062a\u064a\u0627\u0644","\u062a\u0632\u0648\u064a\u0631","\u0627\u0646\u062a\u062d\u0627\u0644 \u0634\u062e\u0635\u064a\u0629","\u0645\u062d\u062a\u0627\u0644","\u0645\u0633\u0626","\u0646\u0635\u0628","\u062e\u062f\u0627\u0639","\u0633\u0631\u0642 \u062d\u0633\u0627\u0628","\u062d\u0633\u0627\u0628 \u0645\u0632\u064a\u0641","\u0647\u0648\u064a\u0629 \u0645\u0632\u064a\u0641\u0629","\u0631\u0627\u0628\u0637 \u0645\u0634\u0628\u0648\u0647","\u0641\u064a\u0631\u0648\u0633","\u0628\u0631\u0645\u062c\u064a\u0629 \u062e\u0628\u064a\u062b\u0629","\u062a\u0635\u064a\u062f","\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631","\u0628\u064a\u0627\u0646\u0627\u062a \u0645\u0633\u0631\u0648\u0642\u0629","\u0628\u064a\u0639 \u062d\u0633\u0627\u0628\u0627\u062a","\u0634\u0631\u0627\u0621 \u062d\u0633\u0627\u0628\u0627\u062a"]},{score:35,keywords:["\u0632\u0639\u0627\u062c","\u0627\u0632\u0639\u0627\u062c","\u0645\u062e\u0627\u0644\u0641","\u0645\u062e\u0627\u0644\u0641\u0629","\u0645\u0636\u0627\u064a\u0642\u0629","\u0627\u0633\u062a\u0641\u0632\u0627\u0632","\u0627\u0632\u0639\u0627\u062c \u0645\u062a\u0643\u0631\u0631","\u062a\u0643\u0631\u0627\u0631","\u0631\u0633\u0627\u0626\u0644 \u0645\u0632\u0639\u062c\u0629","\u0625\u0639\u0644\u0627\u0646\u0627\u062a \u0645\u0632\u0639\u062c\u0629","\u0631\u0648\u0627\u0628\u0637 \u0643\u062b\u064a\u0631\u0629","\u0645\u062a\u0627\u0628\u0639\u0629 \u0645\u0632\u0639\u062c\u0629","\u0645\u0644\u0627\u062d\u0642\u0629","\u0627\u0633\u062a\u0641\u0632\u0627\u0632 \u0645\u062a\u0643\u0631\u0631","\u0645\u062d\u062a\u0648\u0649 \u0645\u0636\u0644\u0644","\u062e\u0628\u0631 \u0643\u0627\u0630\u0628"]}],s=e=>String(e||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[\u0623\u0625\u0622\u0627]/g,"\u0627").replace(/\u0649/g,"\u064a").replace(/\u0629/g,"\u0647").replace(/\s+/g," ").trim(),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=[e.reason,e.messageText,e.contentTitle,e.contentText,e.description].filter(Boolean).map(s).join(" ");if(!t)return 0;for(const n of a)if(n.keywords.some((e=>t.includes(s(e)))))return n.score;return 0},c=e=>i[e]||i.post,u=async e=>{let{targetType:t="post",targetId:n,reportedUserId:i=null,reporterId:a,reporterName:s="",reporterTag:u="",messageText:d="",contentTitle:p="",contentText:h="",postId:f=null,commentId:m=null,replyId:_=null,source:g="unified_menu"}=e;if(!a)throw new Error("missing_reporter");if(!n)throw new Error("missing_target");const v=(0,r.A)((0,r.A)({reportKind:"content",targetType:t,targetTypeLabel:c(t),targetId:n,postId:f,commentId:m,replyId:_,reportedUserId:i,reporterId:a,reporterName:s,reporterTag:u,messageText:d.trim(),contentTitle:p,contentText:h},function(){const e=l(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{aiScore:e,severity:(t=e,t>=90?"critical":t>=70?"high":t>=40?"medium":"low")};var t}({reason:d,messageText:d,contentTitle:p,contentText:h})),{},{source:g,status:"open",timestamp:Date.now()}),y=o.firebase.database().ref("content_reports").push();return await y.set(v),"undefined"!==typeof window&&window.dispatchEvent(new CustomEvent("report-created",{detail:{reporterId:a,reportId:y.key,source:g,targetType:t}})),y.key}}
2,9812:(e,t,n)=>{var r=n(56552).Symbol;e.exports=r},9855:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},10385:(e,t,n)=>{"use strict";n.d(t,{Jt:()=>l,Tf:()=>d,hZ:()=>c,yH:()=>u});const r="AmposterCacheDB",o="keyvalStore",i=1;let a=null;function s(){return a||(a=new Promise(((e,t)=>{const n=indexedDB.open(r,i);n.onerror=()=>t(n.error),n.onsuccess=()=>e(n.result),n.onupgradeneeded=e=>{const t=e.target.result;t.objectStoreNames.contains(o)||t.createObjectStore(o)}}))),a}async function l(e){const t=await s();return new Promise(((n,r)=>{const i=t.transaction(o,"readonly").objectStore(o).get(e);i.onsuccess=()=>n(i.result),i.onerror=()=>r(i.error)}))}const c=async(e,t)=>{const n=await s();return new Promise(((r,i)=>{const a=n.transaction(o,"readwrite").objectStore(o).put(t,e);a.onsuccess=()=>r(),a.onerror=()=>i(a.error)}))};async function u(e){const t=await s();return new Promise(((n,r)=>{const i=t.transaction(o,"readwrite").objectStore(o).delete(e);i.onsuccess=()=>n(),i.onerror=()=>r(i.error)}))}async function d(e){const t=await s();return new Promise(((n,r)=>{const i=t.transaction(o,"readwrite").objectStore(o).openCursor();i.onsuccess=t=>{const r=t.target.result;if(r){const t=r.key;"string"===typeof t&&t.startsWith(e)&&r.delete(),r.continue()}else n()},i.onerror=()=>r(i.error)}))}},10396:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},10624:(e,t,n)=>{"use strict";n.d(t,{I:()=>m,o:()=>s});var r=n(65043),o=n(48311),i=n(70579);const a=(0,r.createContext)(null),s=()=>{const e=(0,r.useContext)(a);if(!e)throw new Error("useLanguage must be used within LanguageProvider");return e},l="appLanguage",c="appDirection",u="appBottomNavBarDirection",d="auto",p="auto",h=["ar","en"],f=["auto","rtl","ltr"],m=e=>{let{children:t}=e;const[n,s]=(0,r.useState)((()=>{if("undefined"===typeof window)return"ar";const e=window.localStorage.getItem(l);return h.includes(e)?e:"ar"})),[m,_]=(0,r.useState)((()=>{if("undefined"===typeof window)return d;const e=window.localStorage.getItem(c);return f.includes(e)?e:d})),[g,v]=(0,r.useState)((()=>{if("undefined"===typeof window)return p;const e=window.localStorage.getItem(u);return f.includes(e)?e:p})),y="auto"===m?"ar"===n?"rtl":"ltr":m,b="auto"===g?y:g;(0,r.useEffect)((()=>{"undefined"!==typeof window&&(window.localStorage.setItem(l,n),window.localStorage.setItem(c,m),window.localStorage.setItem(u,g),document.documentElement.lang="ar"===n?"ar":"en",document.documentElement.dir=y)}),[n,m,g,y]);const w=e=>{h.includes(e)&&s(e)},x=e=>{f.includes(e)&&_(e)},k=e=>{f.includes(e)&&v(e)},S=function(e){var t,r,i;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s="string"===typeof a||null==a?{}:a,l="string"===typeof a?a:arguments.length>2?arguments[2]:void 0,c=o.P[n]||{},u=o.P.en||{};let d=null!==(t=null!==(r=null!==(i=c[e])&&void 0!==i?i:u[e])&&void 0!==r?r:l)&&void 0!==t?t:e;return"string"!==typeof d?d:Object.keys(s).reduce(((e,t)=>{const n=s[t];return e.split("{".concat(t,"}")).join(n)}),d)},C=(0,r.useMemo)((()=>({language:n,setLanguage:w,direction:m,setDirection:x,bottomNavBarDirection:g,setBottomNavBarDirection:k,resolvedDirection:y,resolvedBottomNavBarDirection:b,t:S})),[n,m,g,y,b]);return(0,i.jsx)(a.Provider,{value:C,children:t})}},10793:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}
2,11289:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(22555),o=n(65043),i=n(75012),a=(n(54454),n(55290)),s=n(64725),l=(n(13005),n(59773),n(70579));const c=e=>{let{post:t,style:n={}}=e;const[c,u]=(0,o.useState)(!1),[d,p]=(0,o.useState)(!1),[h,f]=(0,o.useState)(null);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{style:(0,r.A)((0,r.A)({},n),{},{marginTop:"16px"}),children:(0,l.jsxs)("div",{onClick:e=>{e.stopPropagation(),window.requestAnimationFrame((()=>{"video"===(null===t||void 0===t?void 0:t.type)?(f(t.id),p(!0)):u(!0)}))},style:{position:"relative",width:"100%",height:"120px",borderRadius:"12px",overflow:"hidden",cursor:"pointer",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",background:"linear-gradient(135deg, #ffd700 0%, #ffed4e 100%)",border:"2px solid #ffd700",transition:"transform 0.2s, box-shadow 0.2s",boxSizing:"border-box"},onMouseEnter:e=>{e.currentTarget.style.transform="scale(1.02)",e.currentTarget.style.boxShadow="0 6px 16px rgba(0,0,0,0.2)"},onMouseLeave:e=>{e.currentTarget.style.transform="scale(1)",e.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.15)"},children:[(0,l.jsx)("div",{style:{position:"absolute",top:"8px",left:"8px",background:"rgba(0,0,0,0.7)",color:"#ffd700",padding:"4px 10px",borderRadius:"12px",fontSize:"11px",fontWeight:"bold",zIndex:2,display:"flex",alignItems:"center",gap:"4px"},children:"\u2b50 \u0625\u0639\u0644\u0627\u0646"}),(0,l.jsx)("img",{src:t.cover?t.cover:t.image?t.image:t.images&&t.images.length>0?t.images[0]:"/assets/images/global/advertisement_default.jpg",alt:"\u0625\u0639\u0644\u0627\u0646",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover"},onError:e=>{e.target.src="/assets/images/global/default_banner.jpg"}}),(0,l.jsxs)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.4)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"20px"},children:[(0,l.jsx)("div",{style:{fontSize:"18px",fontWeight:"bold",color:"#fff",lineHeight:"1.4",textAlign:"center",direction:"rtl",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textShadow:"0 2px 4px rgba(0,0,0,0.8)",marginBottom:"12px"},children:"video"===(null===t||void 0===t?void 0:t.type)&&null!==t&&void 0!==t&&t.title?t.title:(e=>{var t,n;if(!e)return"\u0625\u0639\u0644\u0627\u0646";if("newspaper"===e.type||null!==e&&void 0!==e&&null!==(t=e.newspaper)&&void 0!==t&&null!==(n=t.pages)&&void 0!==n&&n.length){var r,o,i,a,s;const t=(null===e||void 0===e||null===(r=e.newspaper)||void 0===r?void 0:r.title)||(null===e||void 0===e||null===(o=e.newspaper)||void 0===o?void 0:o.newspaperTitle)||(null===e||void 0===e||null===(i=e.newspaper)||void 0===i||null===(a=i.pages)||void 0===a||null===(s=a[0])||void 0===s?void 0:s.pageTitle)||"",n=String(t||"").trim();return n?n.length>60?n.substring(0,60)+"...":n:"\u0625\u0639\u0644\u0627\u0646"}if("poll"===e.type&&e.question){const t=String(e.question||"").trim();return t.length>60?t.substring(0,60)+"...":t}const l=e.content;if(!l)return"\u0625\u0639\u0644\u0627\u0646";const c=document.createElement("div");c.innerHTML=l;const u=c.querySelector("p");if(!u)return"\u0625\u0639\u0644\u0627\u0646";const d=(u.textContent||u.innerText||"").trim();return d.length>60?d.substring(0,60)+"...":d})(t)}),(0,l.jsx)("div",{style:{fontSize:"14px",color:"#fff",display:"flex",alignItems:"center",gap:"6px",textShadow:"0 1px 2px rgba(0,0,0,0.8)"},children:"\ud83d\udc46 \u0627\u0636\u063a\u0637 \u0644\u0644\u0645\u0634\u0627\u0647\u062f\u0629"})]}),(0,l.jsx)("div",{style:{position:"absolute",top:0,left:"-100%",width:"50%",height:"100%",background:"linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent)",animation:"shine 3s infinite",pointerEvents:"none"}}),(0,l.jsx)("style",{children:"\n          @keyframes shine {\n            0% { left: -100%; }\n            20% { left: 100%; }\n            100% { left: 100%; }\n          }\n        "})]})}),c&&("poll"===t.type?(0,l.jsx)(a.A,{post:t,onClose:()=>u(!1)}):(0,l.jsx)(i.Os,{post:t,onClose:()=>u(!1)})),d&&(0,l.jsx)(s.default,{isOpen:d,onClose:()=>p(!1),initialPostId:h,onNavigate:e=>f(e)})]})}},11295:(e,t,n)=>
2{var r=n(9812),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},11454:(e,t,n)=>{"use strict";n.d(t,{jG:()=>o});var r=n(5734).Zq;var o=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()},i=r;const a=r=>{t?e.push(r):i((()=>{n(r)}))};return{batch:r=>{let a;t++;try{a=r()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];a((()=>{e(...n)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e},setScheduler:e=>{i=e}}}()},11629:(e,t,n)=>{var r=n(16913),o=n(46686);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},12002:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=[],s=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(r<<5|r>>>27)+l+a[c];d+=c<20?1518500249+(o&i|~o&s):c<40?1859775393+(o^i^s):c<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,l=s,s=i,i=o<<30|o>>>2,o=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1}(n(84488))},12322:(e,t,n)=>{var r=n(16913),o=n(85990),i=n(22761),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},12463:(e,t,n)=>{"use strict";n.d(t,{II:()=>u,cc:()=>c,v_:()=>l});var r=n(3491),o=n(48024),i=n(79567),a=n(99723);function s(e){return Math.min(1e3*2**e,3e4)}function l(e){return"online"!==(null!==e&&void 0!==e?e:"online")||o.t.isOnline()}var c=class extends Error{constructor(e){super("CancelledError"),this.revert=null===e||void 0===e?void 0:e.revert,this.silent=null===e||void 0===e?void 0:e.silent}};function u(e){let t,n=!1,u=0;const d=(0,i.T)(),p=()=>"pending"!==d.status,h=()=>r.m.isFocused()&&("always"===e.networkMode||o.t.isOnline())&&e.canRun(),f=()=>l(e.networkMode)&&e.canRun(),m=e=>{var n;p()||(null===(n=t)||void 0===n||n(),d.resolve(e))},_=e=>{var n;p()||(null===(n=t)||void 0===n||n(),d.reject(e))},g=()=>new Promise((n=>{var r;t=e=>{(p()||h())&&n(e)},null===(r=e.onPause)||void 0===r||r.call(e)})).then((()=>{var n;(t=void 0,p())||(null===(n=e.onContinue)||void 0===n||n.call(e))})),v=()=>{if(p())return;let t;const r=0===u?e.initialPromise:void 0;try{t=null!==r&&void 0!==r?r:e.fn()}catch(o){t=Promise.reject(o)}Promise.resolve(t).then(m).catch((t=>{var r,o,i;if(p())return;const l=null!==(r=e.retry)&&void 0!==r?r:a.S$?0:3,c=null!==(o=e.retryDelay)&&void 0!==o?o:s,d="function"===typeof c?c(u,t):c,f=!0===l||"number"===typeof l&&u<l||"function"===typeof l&&l(u,t);!n&&f?(u++,null===(i=e.onFail)||void 0===i||i.call(e,u,t),(0,a.yy)(d).then((()=>h()?void 0:g())).then((()=>{n?_(t):v()}))):_(t)}))};return{promise:d,status:()=>d.status,cancel:t=>{if(!p()){var n;const r=new c(t);_(r),null===(n=e.onCancel)||void 0===n||n.call(e,r)}},continue:()=>{var e;return null===(e=t)||void 0===e||e(),d},cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:f,start:()=>(f()?v():g().then(v),d)}}},12622:(e,t,n)=>{var r=n(70705);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},13005:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,DP:()=>s,NP:()=>a});var r=n(65043),o=n(70579);const i=(0,r.createContext)(),a=e=>{let{children:t}=e;const[n,a]=(0,r.useState)((()=>{try{const e=localStorage.getItem("app_theme_preference");if(["dark","light","system"].includes(e))return e;if("dark"===localStorage.getItem("app_theme"))return"dark"}catch(e){}return"system"})),[s,l]=(0,r.useState)("light");(0,r.useEffect)((()=>{const e=()=>{let e=n;"system"===n&&(e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
2k":"light"),l(e);const t=document.documentElement;"dark"===e?(t.classList.add("theme-dark"),t.classList.remove("theme-light")):(t.classList.add("theme-light"),t.classList.remove("theme-dark"));try{localStorage.setItem("app_theme_preference",n)}catch(o){}const r=document.querySelector('meta[name="theme-color"]');r&&r.setAttribute("content","dark"===e?"#000000":"#ffffff")};if(e(),"system"===n){const t=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>e();if(t.addEventListener)return t.addEventListener("change",n),()=>t.removeEventListener("change",n);if(t.addListener)return t.addListener(n),()=>t.removeListener(n)}}),[n]);return(0,o.jsx)(i.Provider,{value:{theme:s,themePreference:n,setTheme:e=>{["dark","light","system"].includes(e)&&a(e)},toggleTheme:()=>{a("dark"===s?"light":"dark")}},children:t})},s=()=>(0,r.useContext)(i),l=i},13028:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},13218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},13440:(e,t,n)=>{var r=n(56552)["__core-js_shared__"];e.exports=r},13714:(e,t,n)=>{"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var o=r(n(41098));o.default.registerVersion("firebase","7.20.0","app"),e.exports=o.default},13786:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("user-minus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]])},14043:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(65043),o=n(65505),i=n(40614),a=n(5077),s=n(70067),l=n(57922),c=n(35746),u=n(13005),d=n(10624),p=n(70579);const h=e=>{let{value:t,onChange:n,onSend:h,placeholder:f,disabled:m=!1,fireComment:_=!1,onFireToggle:g,selectedCoins:v=null,onCoinsClick:y,onCoinsRemove:b,selectedIcon:w=null,onIconClick:x,onIconRemove:k,selectedMentions:S=[],onMentionClick:C,onMentionRemove:A,hideCoinsbtn:E=!1,showMentionsDropdown:j=!1,mentionResults:T=[],onMentionSelect:P,isEditing:N=!1,editingCommentText:I="",onCancelEdit:R,onSaveEdit:O,showCharacterDropdown:D=!1,characterResults:M=[],onCharacterSelect:L,characterCategory:F="prophets",showSurahDropdown:z=!1,surahResults:B=[],onSurahSelect:q,selectedImage:U=null,onImageSelect:H,onImageRemove:W}=e;const V=(0,r.useRef)(null),K=(0,r.useRef)(null),[G,Y]=(0,r.useState)(1),[Q,X]=(0,r.useState)(!1),{theme:$}=(0,u.DP)(),{t:J,language:Z}=(0,d.o)(),ee=f||J("comment_input_box_comment_placeholder");return(0,r.useEffect)((()=>{if(!V.current)return;const e=V.current;if(!t.trim())return Y(1),e.style.height="24px",void(e.style.overflowY="hidden");e.style.height;e.style.height="24px";const n=e.scrollHeight,r=Math.min(Math.max(1,Math.ceil(n/24)),3);Y(r),n>72?(e.style.height="72px",e.style.overflowY="auto"):(e.style.height=n+"px",e.style.overflowY="hidden")}),[t]),(0,p.jsx)("div",{className:"comment-input-box-wrapper",children:(0,p.jsxs)("div",{className:"comment-input-box-container ".concat("dark"===$?"theme-dark-item":"theme-light-item"),children:[j&&(0,p.jsx)("div",{className:"mentions-dropdown",children:(0,p.jsx)("div",{className:"mentions-list",children:0===T.length?(0,p.jsx)("div",{className:"mention-item",children:J("comment_input_box_mentions_no_results_found")}):T.map((e=>(0,p.jsxs)("div",{className:"mention-item ".concat(S.find((t=>t.id===e.id))?"selected":""),onClick:()=>null===P||void 0===P?void 0:P(e),children:[(0,p.jsx)("img",{className:"mentions-user-img",src:e.img,alt:"user-img"}),(0,p.jsxs)("div",{className:"mentions-user-details",children:[(0,p.jsx)("span",{children:e.name}),(0,p.jsx)("span",{children:e.tag})]})]},e.id)))})}),D&&(0,p.jsxs)("div",{className:"mentions-dropdown character-dropdown",children:[(0,p.jsx)("div",{className:"mentions-dropdown-header",children:(0,p.jsx)("span",{children:J("prophets"===F?"comment_input_box_character_category_prophets":"companions"===F?"comment_input_box_character_category_companions":"comment_input_box_character_category_historical")})}),(0,p.jsx)("div",{className:"mentions-list",children:0===M.length?(0,p.jsx)("div",{className:"mention-item",children:J("comment_input_box_character_no_results_found")}):M.map((e=>(0,p.jsxs)("div",{className:"mention-item",onClick:()=>null===L||void 0===L?void 0:L(e),children:[(0,p.jsx)("img",{className:"mentions-user-img",src:e.image||"/assets/images/global/charachter.png",alt:e.name,style:{borderRadius:"8px"}}
2),(0,p.jsxs)("div",{className:"mentions-user-details",children:[(0,p.jsx)("span",{className:"mention-name",children:"en"===Z&&e.nameEn||e.name}),e.tribe&&(0,p.jsx)("span",{className:"mention-subtitle",children:e.tribe})]})]},e.id)))})]}),z&&(0,p.jsxs)("div",{className:"mentions-dropdown surah-dropdown",children:[(0,p.jsx)("div",{className:"mentions-dropdown-header",children:(0,p.jsx)("span",{children:J("comment_input_box_quran_surah_header")})}),(0,p.jsx)("div",{className:"mentions-list",children:0===B.length?(0,p.jsx)("div",{className:"mention-item",children:J("comment_input_box_quran_surah_no_results_found")}):B.map((e=>(0,p.jsxs)("div",{className:"mention-item surah-item",onClick:()=>null===q||void 0===q?void 0:q(e),children:[(0,p.jsx)("div",{className:"surah-number-badge",children:e.number}),(0,p.jsx)("div",{className:"mentions-user-details",children:(0,p.jsxs)("span",{className:"mention-name",children:[J("comment_input_box_quran_surah_name")," ",e.name]})})]},e.number)))})]}),N&&(0,p.jsxs)("div",{className:"edit-mode-banner",children:[(0,p.jsxs)("div",{className:"edit-mode-content",children:[(0,p.jsx)(o.A,{size:18,color:"#1da1f2",style:{flexShrink:0}}),(0,p.jsxs)("div",{className:"edit-mode-text",children:[(0,p.jsx)("span",{className:"edit-mode-title",children:J("comment_input_box_edit_mode_title")}),(0,p.jsxs)("span",{className:"edit-mode-preview",children:[null===I||void 0===I?void 0:I.substring(0,50),(null===I||void 0===I?void 0:I.length)>50?"...":""]})]})]}),(0,p.jsx)(i.A,{size:22,color:"#666",style:{cursor:"pointer",flexShrink:0},onClick:R})]}),(0,p.jsxs)("div",{className:"selected-items-list",children:[_&&(0,p.jsx)("div",{className:"item-badge fire-badge",children:(0,p.jsx)(a.A,{onClick:g,size:20,color:"#fff"})}),v&&(0,p.jsxs)("div",{className:"item-badge coins-badge",children:[(0,p.jsx)("img",{src:"/assets/images/global/coin.png",alt:"coin"}),(0,p.jsx)("span",{children:v}),(0,p.jsx)(i.A,{onClick:b,size:20,color:"dark"===$?"#e6eef6":"#000"})]}),w&&(0,p.jsxs)("div",{className:"item-badge sticker-badge",children:[(0,p.jsx)("img",{src:w,alt:"sticker"}),(0,p.jsx)(i.A,{onClick:k,size:20,color:"#fff"})]}),U&&(0,p.jsxs)("div",{className:"item-badge image-badge",children:[(0,p.jsx)("img",{src:U,alt:"comment-image"}),(0,p.jsx)(i.A,{onClick:W,size:20,color:"#fff"})]}),S.map((e=>(0,p.jsxs)("div",{className:"item-badge mention-badge",children:[(0,p.jsx)("h3",{className:"mention-tag",children:e.tag}),(0,p.jsx)(i.A,{onClick:()=>A(e.id),style:{background:"#ffffff",borderRadius:"50%"},size:20,color:"#ff5c5c"})]},e.id)))]}),(0,p.jsxs)("div",{className:"input-controls-row",children:[!N&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("input",{ref:K,type:"file",accept:"image/*",style:{display:"none"},onChange:async e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(n)if(n.type.startsWith("image/"))try{X(!0);const e=await(async e=>{if("image/gif"===e.type)return console.log("\ud83c\udf9e\ufe0f GIF detected: ".concat((e.size/1024).toFixed(2),"KB - GIFs are preserved as-is")),e;const t=await(n=e,new Promise(((e,t)=>{const r=new FileReader;r.onerror=t,r.onload=t=>e(t.target.result),r.readAsDataURL(n)})));var n;const r=new Image;r.src=t,await new Promise((e=>{r.onload=e}));const o=(e,t,n)=>new Promise((o=>{const i=document.createElement("canvas");i.width=Math.round(e),i.height=Math.round(t),i.getContext("2d").drawImage(r,0,0,i.width,i.height),i.toBlob((e=>o(e)),"image/jpeg",n)}));let i=r.width,a=r.height,s=Math.max(i,a,700);if(s>2e3&&(s=2e3),Math.max(i,a)>s){const e=s/Math.max(i,a);i*=e,a*=e}let l=.9,c=null;for(let u=0;u<12;u++){const t=await o(i,a,l);if(!t)break;if(c=t,t.size<=5242880){const n=new File([t],"image.jpg",{type:"image/jpeg"}),r=(e.size/1024).toFixed(2),o=(n.size/1024).toFixed(2);return console.log("\ud83d\udcf8 Image Compression: ".concat(r,"KB \u2192 ").concat(o,"KB (").concat(Math.round(i),"\xd7").concat(Math.round(a),"px, metadata removed)")),n}l>.45?l=Math.max(.45,l-.08):(i=Math.max(200,Math.round(.9*i)),a=Math.max(200,Math.round(.9*a)))}if(c){const t=new File([c],"image.jpg",{type:"image/jpeg"}),n=(e.size/1024).toFixed(2),r=(t.size/1024).toFixed(2);return console.log("\ud83d\udcf8 Image Compression (final attempt): ".concat(n,"KB \u2192 ").concat(r,"KB (").concat(Math.round(i),"\xd7").concat(Math.round(a),"px, metadata removed)")),t}return e})(n),t=await(async e=>{if(!e)throw new Error("Please select a file");try{console.log("\ud83d\ude80 Starting upload for: ".concat(e.name," (").concat((e.size/1024).toFixed(2),"KB)"));const t=new FormData;t.append("file",e);const n=new AbortController,r=setTimeout((()=>n.abort()),12e4),o=await fetch("https://post-img-uploader.amposter.com/upload",{method:"POST",body:t,signal:n.signal});if(clearTimeout(r),!o.ok){const e=await o.text();throw console.error("Upload error (".concat(o.status,"):"),e),new Error("Upload failed (".concat(o.status,"): ").concat(e))}const i=await o.json();return console.log("\u2705 Upload successful:",i.url),i.url}catch(t){if("AbortError"===t.name)throw new Error("Upload timeout - check your internet connection");throw console.error("Upload error:",t.message),t}})(e);null===H||void 0===H||H(t)}catch(r){console.error("Error uploading image:",r),alert(J("comment_input_box_image_upload_failed"))}finally{X(!1),K.current&&(K.current.value="")}else alert(J("comment_input_box_invalid_image_type"))}}),(0,p.jsx)(s.A,{onClick:()=>{var e;return null===(e=K.current)||void 0===e?void 0:e.click()},size:22,color:U?"#31a8f1":Q?"#999":"#7b7b7b",style:{cursor:Q?"wait":"pointer"}}),!E&&(0,p.jsx)("img",{src:"/assets/images/global/coin.png",alt:"\u0625\u0631\u0633\u0627\u0644 \u0639\u0645\u0644\u0627\u062a",onClick:y,width:"22",height:"22",style:{cursor:"pointer",objectFit:"contain",opacity:v?1:.72,filter:v?"drop-shadow(0 0 4px rgba(49,168,241,.75))":"none"}}),(0,p.jsx)(l.A,{onClick:x,size:22,color:w?"#31a8f1":"#7b7b7b",style:{cursor:"pointer"}})]}),(0,p.jsx)(a.A,{onClick:g,size:22,color:_?"#31a8f1":"#7b7b7b",style:{cursor:"pointer"}}),(0,p.jsxs)("div",{className:"textarea-send-wrapper",children:[(0,p.jsx)("textarea",{ref:V,rows:G,placeholder:m?J("comment_input_box_comments_disabled"):ee,dir:"auto",disabled:m,value:t,onChange:n,className:"comment-textarea",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",inputMode:"text",name:"comment-message",onKeyDown:e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),t.trim()&&h&&h())}}),(0,p.jsx)(c.A,{size:21,color:m?"#ccc":"#31a8f1",onClick:h,style:{cursor:m?"not-allowed":"pointer",marginLeft:"8px",position:"relative",zIndex:3}})]})]})]})})}},14079:(e,t,n)=>{var r=n(88259),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},14657:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},14918:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]])}
vendor: 1,258 bytes, line 2
2,15029:(e,t,n)=>{var r=n(26989),o=n(33097),i=n(53366),a=n(62597),s=n(9417),l=n(91310),c=n(70914);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},15193:(e,t,n)=>{var r=n(16913),o=n(22761);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},15797:(e,t,n)=>{var r=n(64816);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},16095:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},16399:(e,t,n)=>{var r=n(5538),o=n(43668),i=n(69987),a=n(45752),s=n(26924),l=n(54052),c=n(44543),u=n(51268),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,_,g){var v=l(e),y=l(t),b=v?p:s(e),w=y?p:s(t),x=(b=b==d?h:b)==h,k=(w=w==d?h:w)==h,S=b==w;if(S&&c(e)){if(!c(t))return!1;v=!0,x=!1}if(S&&!x)return g||(g=new r),v||u(e)?o(e,t,n,m,_,g):i(e,t,b,n,m,_,g);if(!(1&n)){var C=x&&f.call(e,"__wrapped__"),A=k&&f.call(t,"__wrapped__");
2if(C||A){var E=C?e.value():e,j=A?t.value():t;return g||(g=new r),_(E,j,n,m,g)}}return!!S&&(g||(g=new r),a(e,t,n,m,_,g))}},16600:function(e,t,n){e.exports=function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.x64.Word,s=n.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,d=0,p=0;p<7;p++){if(1&o){var h=(1<<p)-1;h<32?d^=1<<h:s^=1<<h-32}128&o?o=o<<1^113:o<<=1}u[i]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var p=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(j=n[o]).high^=a,j.low^=i}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var h=0,f=0,m=0;m<5;m++)h^=(j=n[p+5*m]).high,f^=j.low;var _=d[p];_.high=h,_.low=f}for(p=0;p<5;p++){var g=d[(p+4)%5],v=d[(p+1)%5],y=v.high,b=v.low;for(h=g.high^(y<<1|b>>>31),f=g.low^(b<<1|y>>>31),m=0;m<5;m++)(j=n[p+5*m]).high^=h,j.low^=f}for(var w=1;w<25;w++){var x=(j=n[w]).high,k=j.low,S=l[w];S<32?(h=x<<S|k>>>32-S,f=k<<S|x>>>32-S):(h=k<<S-32|x>>>64-S,f=x<<S-32|k>>>64-S);var C=d[c[w]];C.high=h,C.low=f}var A=d[0],E=n[0];for(A.high=E.high,A.low=E.low,p=0;p<5;p++)for(m=0;m<5;m++){var j=n[w=p+5*m],T=d[w],P=d[(p+1)%5+5*m],N=d[(p+2)%5+5*m];j.high=T.high^~P.high&N.high,j.low=T.low^~P.low&N.low}j=n[0];var I=u[s];j.high^=I.high,j.low^=I.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],p=d.high,h=d.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(p)}return new o.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(p),n.HmacSHA3=i._createHmacHelper(p)}(Math),e.SHA3}(n(84488),n(59749))},16678:(e,t,n)=>{"use strict";function r(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}var o;n.r(t),n.d(t,{LogLevel:()=>i,Logger:()=>d,setLogLevel:()=>p,setUserLogHandler:()=>h});var i,a=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(i||(i={}));var s={debug:i.DEBUG,verbose:i.VERBOSE,info:i.INFO,warn:i.WARN,error:i.ERROR,silent:i.SILENT},l=i.INFO,c=((o={})[i.DEBUG]="log",o[i.VERBOSE]="log",o[i.INFO]="info",o[i.WARN]="warn",o[i.ERROR]="error",o),u=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];if(!(t<e.logLevel)){var i=(new Date).toISOString(),a=c[t];if(!a)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[a].apply(console,r(["["+i+"]  "+e.name+":"],n))}},d=function(){function e(e){this.name=e,this._logLevel=l,this._logHandler=u,this._userLogHandler=null,a.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in i))throw new TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(e){this._logLevel="string"===typeof e?s[e]:e},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e}
2,enumerable:!1,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,i.DEBUG],e)),this._logHandler.apply(this,r([this,i.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,i.VERBOSE],e)),this._logHandler.apply(this,r([this,i.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,i.INFO],e)),this._logHandler.apply(this,r([this,i.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,i.WARN],e)),this._logHandler.apply(this,r([this,i.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,i.ERROR],e)),this._logHandler.apply(this,r([this,i.ERROR],e))},e}();function p(e){a.forEach((function(t){t.setLogLevel(e)}))}function h(e,t){for(var n=function(n){var r=null;t&&t.level&&(r=s[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var s=o.map((function(e){if(null==e)return null;if("string"===typeof e)return e;if("number"===typeof e||"boolean"===typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(t){return null}})).filter((function(e){return e})).join(" ");n>=(null!==r&&void 0!==r?r:t.logLevel)&&e({level:i[n].toLowerCase(),message:s,args:o,type:t.name})}},r=0,o=a;r<o.length;r++){n(o[r])}}},16904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41098),o=n(62501),i=n(38679),a=n(16678),s=n(55858);function l(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var c=l(r),u=function(){function e(e){this.domStorage_=e,this.prefix_="firebase:"}return e.prototype.set=function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),i.stringify(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:i.jsonEval(t)},e.prototype.remove=function(e){this.domStorage_.removeItem(this.prefixedName_(e))},e.prototype.prefixedName_=function(e){return this.prefix_+e},e.prototype.toString=function(){return this.domStorage_.toString()},e}(),d=function(){function e(){this.cache_={},this.isInMemoryStorage=!0}return e.prototype.set=function(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t},e.prototype.get=function(e){return i.contains(this.cache_,e)?this.cache_[e]:null},e.prototype.remove=function(e){delete this.cache_[e]},e}(),p=function(e){try{if("undefined"!==typeof window&&"undefined"!==typeof window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new u(t)}}catch(n){}return new d},h=p("localStorage"),f=p("sessionStorage"),m=new a.Logger("@firebase/database"),_=function(){var e=1;return function(){return e++}}(),g=function(e){var t=i.stringToByteArray(e),n=new i.Sha1;n.update(t);var r=n.digest();return i.base64.encodeByteArray(r)},v=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=0;r<e.length;r++){var o=e[r];Array.isArray(o)||o&&"object"===typeof o&&"number"===typeof o.length?n+=v.apply(null,o):n+="object"===typeof o?i.stringify(o):o,n+=" "}return n},y=null,b=!0,w=function(e,t){i.assert(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(m.logLevel=a.LogLevel.VERBOSE,y=m.log.bind(m),t&&f.set("logging_enabled",!0)):"function"===typeof e?y=e:(y=null,f.remove("logging_enabled"))},x=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!0===b&&(b=!1,null===y&&!0===f.get("logging_enabled")&&w(!0)),y){var n=v.apply(null,e);y(n)}},k=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];x.apply(void 0,o.__spread([e],t))}},S=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE INTERNAL ERROR: "+v.apply(void 0,o.__spread(e));m.error(n)},C=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE FATAL ERROR: "+v.apply(void 0,o.__spread(e));throw m.error(n),new Error(n)},A=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE WARNING: "+v.apply(void 0,o.__spread(e));m.warn(n)},E=function(e){return"number"===typeof e&&(e!==e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},j="[MIN_NAME]",T="[MAX_NAME]",P=function(e,t){if(e===t)return 0;if(e===j||t===T)return-1;if(t===j||e===T)return 1;var n=F(e),r=F(t);return null!==n?null!==r?n-r===0?e.length-t.length:n-r:-1:null!==r?1:e<t?-1:1},N=function(e,t){return e===t?0:e<t?-1:1},I=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+i.stringify(t))},R=function(e){if("object"!==typeof e||null===e)return i.stringify(e);var t=[];for(var n in e)t.push(n);
2t.sort();for(var r="{",o=0;o<t.length;o++)0!==o&&(r+=","),r+=i.stringify(t[o]),r+=":",r+=R(e[t[o]]);return r+="}"},O=function(e,t){var n=e.length;if(n<=t)return[e];for(var r=[],o=0;o<n;o+=t)o+t>n?r.push(e.substring(o,n)):r.push(e.substring(o,o+t));return r};function D(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}var M=function(e){i.assert(!E(e),"Invalid JSON number");var t,n,r,o,a,s=1023;0===e?(n=0,r=0,t=1/e===-1/0?1:0):(t=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(n=(o=Math.min(Math.floor(Math.log(e)/Math.LN2),s))+s,r=Math.round(e*Math.pow(2,52-o)-Math.pow(2,52))):(n=0,r=Math.round(e/Math.pow(2,-1074))));var l=[];for(a=52;a;a-=1)l.push(r%2?1:0),r=Math.floor(r/2);for(a=11;a;a-=1)l.push(n%2?1:0),n=Math.floor(n/2);l.push(t?1:0),l.reverse();var c=l.join(""),u="";for(a=0;a<64;a+=8){var d=parseInt(c.substr(a,8),2).toString(16);1===d.length&&(d="0"+d),u+=d}return u.toLowerCase()},L=new RegExp("^-?(0*)\\d{1,10}$"),F=function(e){if(L.test(e)){var t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},z=function(e){try{e()}catch(t){setTimeout((function(){var e=t.stack||"";throw A("Exception was thrown by user callback.",e),t}),Math.floor(0))}},B=function(e,t){var n=setTimeout(e,t);return"object"===typeof n&&n.unref&&n.unref(),n},q=function(){function e(e,t){if(void 0===t){this.pieces_=e.split("/");for(var n=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return Object.defineProperty(e,"Empty",{get:function(){return new e("")},enumerable:!1,configurable:!0}),e.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},e.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},e.prototype.popFront=function(){var t=this.pieceNum_;return t<this.pieces_.length&&t++,new e(this.pieces_,t)},e.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},e.prototype.toString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"},e.prototype.toUrlEncodedString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+encodeURIComponent(String(this.pieces_[t])));return e||"/"},e.prototype.slice=function(e){return void 0===e&&(e=0),this.pieces_.slice(this.pieceNum_+e)},e.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var t=[],n=this.pieceNum_;n<this.pieces_.length-1;n++)t.push(this.pieces_[n]);return new e(t,0)},e.prototype.child=function(t){for(var n=[],r=this.pieceNum_;r<this.pieces_.length;r++)n.push(this.pieces_[r]);if(t instanceof e)for(r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else{var o=t.split("/");for(r=0;r<o.length;r++)o[r].length>0&&n.push(o[r])}return new e(n,0)},e.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},e.relativePath=function(t,n){var r=t.getFront(),o=n.getFront();if(null===r)return n;if(r===o)return e.relativePath(t.popFront(),n.popFront());throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+t+")")},e.comparePaths=function(e,t){for(var n=e.slice(),r=t.slice(),o=0;o<n.length&&o<r.length;o++){var i=P(n[o],r[o]);if(0!==i)return i}return n.length===r.length?0:n.length<r.length?-1:1},e.prototype.equals=function(e){if(this.getLength()!==e.getLength())return!1;for(var t=this.pieceNum_,n=e.pieceNum_;t<=this.pieces_.length;t++,n++)if(this.pieces_[t]!==e.pieces_[n])return!1;return!0},e.prototype.contains=function(e){var t=this.pieceNum_,n=e.pieceNum_;if(this.getLength()>e.getLength())return!1;for(;t<this.pieces_.length;){if(this.pieces_[t]!==e.pieces_[n])return!1;++t,++n}return!0},e}(),U=function(){function e(e,t){this.errorPrefix_=t,this.parts_=e.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=i.stringLength(this.parts_[n]);this.checkValid_()}return Object.defineProperty(e,"MAX_PATH_DEPTH",{get:function(){return 32}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!1,configurable:!0}),e.prototype.push=function(e){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(e),this.byteLength_+=i.stringLength(e),this.checkValid_()},e.prototype.pop=function(){var e=this.parts_.pop();this.byteLength_-=i.stringLength(e),this.parts_.length>0&&(this.byteLength_-=1)},e.prototype.checkValid_=function(){if(this.byteLength_>e.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+e.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>e.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+e.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},e.prototype.toErrorString=function(){return 0===this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},e}(),H="5",W="firebaseio.com",V="websocket",K="long_polling",G=function(){function e(e,t,n,r,o,i){void 0===o&&(o=""),void 0===i&&(i=!1),this.secure=t,this.namespace=n,this.webSocketOnly=r,this.persistenceKey=o,this.includeNamespaceInQueryParams=i,this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=h.get("host:"+e)||this.host}return e.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},e.prototype.updateHost=function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&h.set("host:"+this.host,this.internalHost))},e.prototype.connectionURL=function(e,t){var n;if(i.assert("string"===typeof e,"typeof type must == string"),i.assert("object"===typeof t,"typeof params must == object"),e===V)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if(e!==K)throw new Error("Unknown connection type: "+e);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(t.ns=this.namespace);var r=[];return D(t,(function(e,t){r.push(e+"="+t)})),n+r.join("&")},e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},e}();var Y,Q,X=function(e){var t=$(e),n=t.namespace;"firebase.com"===t.domain&&C(t.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),n&&"undefined"!==n||"localhost"===t.domain||C("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),t.secure||"undefined"!==typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&A("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");var r="ws"===t.scheme||"wss"===t.scheme;return{repoInfo:new G(t.host,t.secure,n,r,"",n!==t.subdomain),path:new q(t.pathString)}},$=function(e){var t="",n="",r="",i="",a="",s=!0,l="https",c=443;if("string"===typeof e){var u=e.indexOf("//");u>=0&&(l=e.substring(0,u-1),e=e.substring(u+2));var d=e.indexOf("/");-1===d&&(d=e.length);var p=e.indexOf("?");-1===p&&(p=e.length),t=e.substring(0,Math.min(d,p)),d<p&&(i=function(e){for(var t="",n=e.split("/"),r=0;r<n.length;r++)if(n[r].length>0){var o=n[r];try{o=decodeURIComponent(o.replace(/\+/g," "))}catch(i){}t+="/"+o}return t}(e.substring(d,p)));var h=function(e){var t,n,r={};"?"===e.charAt(0)&&(e=e.substring(1));try{for(var i=o.__values(e.split("&")),a=i.next();!a.done;a=i.next()){var s=a.value;if(0!==s.length){var l=s.split("=");2===l.length?r[decodeURIComponent(l[0])]=decodeURIComponent(l[1]):A("Invalid query segment '"+s+"' in query '"+e+"'")}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}
2(e.substring(Math.min(e.length,p)));(u=t.indexOf(":"))>=0?(s="https"===l||"wss"===l,c=parseInt(t.substring(u+1),10)):u=t.length;var f=t.slice(0,u);if("localhost"===f.toLowerCase())n="localhost";else if(f.split(".").length<=2)n=f;else{var m=t.indexOf(".");r=t.substring(0,m).toLowerCase(),n=t.substring(m+1),a=r}"ns"in h&&(a=h.ns)}return{host:t,port:c,domain:n,subdomain:r,secure:s,scheme:l,pathString:i,namespace:a}},J=/[\[\].#$\/\u0000-\u001F\u007F]/,Z=/[\[\].#$\u0000-\u001F\u007F]/,ee=10485760,te=function(e){return"string"===typeof e&&0!==e.length&&!J.test(e)},ne=function(e){return"string"===typeof e&&0!==e.length&&!Z.test(e)},re=function(e){return null===e||"string"===typeof e||"number"===typeof e&&!E(e)||e&&"object"===typeof e&&i.contains(e,".sv")},oe=function(e,t,n,r,o){o&&void 0===n||ie(i.errorPrefix(e,t,o),n,r)},ie=function(e,t,n){var r=n instanceof q?new U(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+r.toErrorString());if("function"===typeof t)throw new Error(e+"contains a function "+r.toErrorString()+" with contents = "+t.toString());if(E(t))throw new Error(e+"contains "+t.toString()+" "+r.toErrorString());if("string"===typeof t&&t.length>ee/3&&i.stringLength(t)>ee)throw new Error(e+"contains a string greater than "+ee+" utf8 bytes "+r.toErrorString()+" ('"+t.substring(0,50)+"...')");if(t&&"object"===typeof t){var o=!1,a=!1;if(D(t,(function(t,n){if(".value"===t)o=!0;else if(".priority"!==t&&".sv"!==t&&(a=!0,!te(t)))throw new Error(e+" contains an invalid key ("+t+") "+r.toErrorString()+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');r.push(t),ie(e,n,r),r.pop()})),o&&a)throw new Error(e+' contains ".value" child '+r.toErrorString()+" in addition to actual children.")}},ae=function(e,t,n,r,o){if(!o||void 0!==n){var a=i.errorPrefix(e,t,o);if(!n||"object"!==typeof n||Array.isArray(n))throw new Error(a+" must be an object containing the children to replace.");var s=[];D(n,(function(e,t){var n=new q(e);if(ie(a,t,r.child(n)),".priority"===n.getBack()&&!re(t))throw new Error(a+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");s.push(n)})),function(e,t){var n,r;for(n=0;n<t.length;n++)for(var o=(r=t[n]).slice(),i=0;i<o.length;i++)if(".priority"===o[i]&&i===o.length-1);else if(!te(o[i]))throw new Error(e+"contains an invalid key ("+o[i]+") in path "+r.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');t.sort(q.comparePaths);var a=null;for(n=0;n<t.length;n++){if(r=t[n],null!==a&&a.contains(r))throw new Error(e+"contains a path "+a.toString()+" that is ancestor of another path "+r.toString());a=r}}(a,s)}},se=function(e,t,n,r){if(!r||void 0!==n){if(E(n))throw new Error(i.errorPrefix(e,t,r)+"is "+n.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!re(n))throw new Error(i.errorPrefix(e,t,r)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},le=function(e,t,n,r){if(!r||void 0!==n)switch(n){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(i.errorPrefix(e,t,r)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},ce=function(e,t,n,r){if((!r||void 0!==n)&&!te(n))throw new Error(i.errorPrefix(e,t,r)+'was an invalid key = "'+n+'".  Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},ue=function(e,t,n,r){if((!r||void 0!==n)&&!ne(n))throw new Error(i.errorPrefix(e,t,r)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},de=function(e,t){if(".info"===t.getFront())throw new Error(e+" failed = Can't modify data under /.info/")},pe=function(e,t,n){var r=n.path.toString();if("string"!==typeof n.repoInfo.host||0===n.repoInfo.host.length||!te(n.repoInfo.namespace)&&"localhost"!==n.repoInfo.host.split(":")[0]||0!==r.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),ne(e)}(r))throw new Error(i.errorPrefix(e,t,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},he=function(){function e(e,t){this.repo_=e,this.path_=t}return e.prototype.cancel=function(e){i.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),i.val
2idateCallback("OnDisconnect.cancel",1,e,!0);var t=new i.Deferred;return this.repo_.onDisconnectCancel(this.path_,t.wrapCallback(e)),t.promise},e.prototype.remove=function(e){i.validateArgCount("OnDisconnect.remove",0,1,arguments.length),de("OnDisconnect.remove",this.path_),i.validateCallback("OnDisconnect.remove",1,e,!0);var t=new i.Deferred;return this.repo_.onDisconnectSet(this.path_,null,t.wrapCallback(e)),t.promise},e.prototype.set=function(e,t){i.validateArgCount("OnDisconnect.set",1,2,arguments.length),de("OnDisconnect.set",this.path_),oe("OnDisconnect.set",1,e,this.path_,!1),i.validateCallback("OnDisconnect.set",2,t,!0);var n=new i.Deferred;return this.repo_.onDisconnectSet(this.path_,e,n.wrapCallback(t)),n.promise},e.prototype.setWithPriority=function(e,t,n){i.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),de("OnDisconnect.setWithPriority",this.path_),oe("OnDisconnect.setWithPriority",1,e,this.path_,!1),se("OnDisconnect.setWithPriority",2,t,!1),i.validateCallback("OnDisconnect.setWithPriority",3,n,!0);var r=new i.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,e,t,r.wrapCallback(n)),r.promise},e.prototype.update=function(e,t){if(i.validateArgCount("OnDisconnect.update",1,2,arguments.length),de("OnDisconnect.update",this.path_),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,A("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ae("OnDisconnect.update",1,e,this.path_,!1),i.validateCallback("OnDisconnect.update",2,t,!0);var o=new i.Deferred;return this.repo_.onDisconnectUpdate(this.path_,e,o.wrapCallback(t)),o.promise},e}(),fe=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return i.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}(),me=function(){var e="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",t=0,n=[];return function(r){var o,a=r===t;t=r;var s=new Array(8);for(o=7;o>=0;o--)s[o]=e.charAt(r%64),r=Math.floor(r/64);i.assert(0===r,"Cannot push at time == 0");var l=s.join("");if(a){for(o=11;o>=0&&63===n[o];o--)n[o]=0;n[o]++}else for(o=0;o<12;o++)n[o]=Math.floor(64*Math.random());for(o=0;o<12;o++)l+=e.charAt(n[o]);return i.assert(20===l.length,"nextPushId: Length should be 20."),l}}(),_e=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}(),ge=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new _e(j,e),r=new _e(j,t);return 0!==this.compare(n,r)},e.prototype.minPost=function(){return _e.MIN},e}(),ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return Y},set:function(e){Y=e},enumerable:!1,configurable:!0}),t.prototype.compare=function(e,t){return P(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw i.assertionError("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return _e.MIN},t.prototype.maxPost=function(){return new _e(T,Y)},t.prototype.makePost=function(e,t){return i.assert("string"===typeof e,"KeyIndex indexValue must always be a string."),new _e(e,Y)},t.prototype.toString=function(){return".key"},t}(ge),ye=new ve;var be,we,xe,ke=function(e){return"number"===typeof e?"number:"+M(e):"string:"+e},Se=function(e){if(e.isLeafNode()){var t=e.val();i.assert("string"===typeof t||"number"===typeof t||"object"===typeof t&&i.contains(t,".sv"),"Priority must be a string or number.")}else i.assert(e===Q||e.isEmpty(),"priority of unexpected type.");i.assert(e===Q||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Ce=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,i.assert(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Se(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return be},set:function(e){be=e}
2,enumerable:!1,configurable:!0}),e.prototype.isLeafNode=function(){return!0},e.prototype.getPriority=function(){return this.priorityNode_},e.prototype.updatePriority=function(t){return new e(this.value_,t)},e.prototype.getImmediateChild=function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.getChild=function(t){return t.isEmpty()?this:".priority"===t.getFront()?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.hasChild=function(){return!1},e.prototype.getPredecessorChildName=function(e,t){return null},e.prototype.updateImmediateChild=function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)},e.prototype.updateChild=function(t,n){var r=t.getFront();return null===r?n:n.isEmpty()&&".priority"!==r?this:(i.assert(".priority"!==r||1===t.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(r,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(t.popFront(),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1},e.prototype.val=function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+ke(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?M(this.value_):this.value_,this.lazyHash_=g(e)}return this.lazyHash_},e.prototype.getValue=function(){return this.value_},e.prototype.compareTo=function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(i.assert(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))},e.prototype.compareToLeafNode_=function(t){var n=typeof t.value_,r=typeof this.value_,o=e.VALUE_TYPE_ORDER.indexOf(n),a=e.VALUE_TYPE_ORDER.indexOf(r);return i.assert(o>=0,"Unknown leaf type: "+n),i.assert(a>=0,"Unknown leaf type: "+r),o===a?"object"===r?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:a-o},e.prototype.withIndex=function(){return this},e.prototype.isIndexed=function(){return!0},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode()){var t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1},e.VALUE_TYPE_ORDER=["object","boolean","number","string"],e}();var Ae,Ee,je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.getPriority(),r=t.node.getPriority(),o=n.compareTo(r);return 0===o?P(e.name,t.name):o},t.prototype.isDefinedOn=function(e){return!e.getPriority().isEmpty()},t.prototype.indexedValueChanged=function(e,t){return!e.getPriority().equals(t.getPriority())},t.prototype.minPost=function(){return _e.MIN},t.prototype.maxPost=function(){return new _e(T,new Ce("[PRIORITY-POST]",xe))},t.prototype.makePost=function(e,t){var n=we(e);return new _e(t,new Ce("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(ge),Te=new je,Pe=function(){function e(e,t,n,r,o){void 0===o&&(o=null),this.isReverse_=r,this.resultGenerator_=o,this.nodeStack_=[];for(var i=1;!e.isEmpty();)if(i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.isReverse_?e.left:e.right;else{if(0===i){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}return e.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e},e.prototype.hasNext=function(){return this.nodeStack_.length>0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}(),Ne=function(){function e(t,n,r,o,i){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=o?o:Re.EMPTY_NODE,this.right=null!=i?i:Re.EMPTY_NODE}return e.prototype.copy=function(t,n,r,o,i){return new e(null!=t?t:this.key,null!=n?n:this.value,
2null!=r?r:this.color,null!=o?o:this.left,null!=i?i:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r=this,o=n(e,r.key);return(r=o<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===o?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return Re.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),(e=e.copy(null,null,null,e.left.removeMin_(),null)).fixUp_()},e.prototype.remove=function(e,t){var n,r;if(t(e,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return Re.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight_())).rotateLeft_()).colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=(e=e.rotateRight_()).colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");
2if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}(),Ie=function(){function e(){}return e.prototype.copy=function(e,t,n,r,o){return this},e.prototype.insert=function(e,t,n){return new Ne(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}(),Re=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,Ne.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,Ne.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,r=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new Pe(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new Pe(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new Pe(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new Pe(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new Ie,e}(),Oe=Math.log(2),De=function(){function e(e){var t;this.count=(t=e+1,parseInt(Math.log(t)/Oe,10)),this.current_=this.count-1;var n,r=(n=this.count,parseInt(Array(n+1).join("1"),2));this.bits_=e+1&r}return e.prototype.nextBitIsOne=function(){var e=!(this.bits_&1<<this.current_);return this.current_--,e},e}(),Me=function(e,t,n,r){e.sort(t);var o=function(t,r){var i,a,s=r-t;if(0===s)return null;if(1===s)return i=e[t],a=n?n(i):i,new Ne(a,i.node,Ne.BLACK,null,null);var l=parseInt(s/2,10)+t,c=o(t,l),u=o(l+1,r);return i=e[l],a=n?n(i):i,new Ne(a,i.node,Ne.BLACK,c,u)},i=function(t){for(var r=null,i=null,a=e.length,s=function(t,r){var i=a-t,s=a;a-=t;var c=o(i+1,s),u=e[i],d=n?n(u):u;l(new Ne(d,u.node,r,null,c))},l=function(e){r?(r.left=e,r=e):(i=e,r=e)},c=0;c<t.count;++c){var u=t.nextBitIsOne(),d=Math.pow(2,t.count-(c+1));u?s(d,Ne.BLACK):(s(d,Ne.BLACK),s(d,Ne.RED))}return i}(new De(e.length));return new Re(r||t,i)},Le={},Fe=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return i.assert(Le&&Te,"ChildrenNode.ts has not been loaded"),Ae=Ae||new e({".priority":Le},{".priority":Te})},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t=i.safeGet(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof Re?t:null},e.prototype.hasIndex=function(e){return i.contains(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){i.assert(t!==ye,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var r,a=[],s=!1,l=n.getIterator(_e.Wrap),c=l.getNext();c;)s=s||t.isDefinedOn(c.node),a.push(c),c=l.getNext();r=s?Me(a,t.getCompare()):Le;var u=t.toString(),d=o.__assign({},this.indexSet_);d[u]=t;var p=o.__assign({},this.indexes_);return p[u]=r,new e(p,d)},e.prototype.addToIndexes=function(t,n){var r=this;return new e(i.map(this.indexes_,(function(e,o){var a=i.safeGet(r.indexSet_,o);if(i.assert(a,"Missing index implementation for "+o),e===Le){if(a.isDefinedOn(t.node)){for(var s=[],l=n.getIterator(_e.Wrap),c=l.getNext();c;)c.name!==t.name&&s.push(c),c=l.getNext();return s.push(t),Me(s,a.getCompare())}return Le}var u=n.get(t.name),d=e;return u&&(d=d.remove(new _e(t.name,u))),d.insert(t,t.node)})),this.indexSet_)}
2,e.prototype.removeFromIndexes=function(t,n){return new e(i.map(this.indexes_,(function(e){if(e===Le)return e;var r=n.get(t.name);return r?e.remove(new _e(t.name,r)):e})),this.indexSet_)},e}();function ze(e,t){return P(e.name,t.name)}function Be(e,t){return P(e,t)}var qe=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Se(this.priorityNode_),this.children_.isEmpty()&&i.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return Ee||(Ee=new e(new Re(Be),null,Fe.Default))},enumerable:!1,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||Ee},e.prototype.updatePriority=function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)},e.prototype.getImmediateChild=function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?Ee:t},e.prototype.getChild=function(e){var t=e.getFront();return null===t?this:this.getImmediateChild(t).getChild(e.popFront())},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if(i.assert(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var r=new _e(t,n),o=void 0,a=void 0;n.isEmpty()?(o=this.children_.remove(t),a=this.indexMap_.removeFromIndexes(r,this.children_)):(o=this.children_.insert(t,n),a=this.indexMap_.addToIndexes(r,this.children_));var s=o.isEmpty()?Ee:this.priorityNode_;return new e(o,s,a)},e.prototype.updateChild=function(e,t){var n=e.getFront();if(null===n)return t;i.assert(".priority"!==e.getFront()||1===e.getLength(),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(e.popFront(),t);return this.updateImmediateChild(n,r)},e.prototype.isEmpty=function(){return this.children_.isEmpty()},e.prototype.numChildren=function(){return this.children_.count()},e.prototype.val=function(t){if(this.isEmpty())return null;var n={},r=0,o=0,i=!0;if(this.forEachChild(Te,(function(a,s){n[a]=s.val(t),r++,i&&e.INTEGER_REGEXP_.test(a)?o=Math.max(o,Number(a)):i=!1})),!t&&i&&o<2*r){var a=[];for(var s in n)a[s]=n[s];return a}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+ke(this.getPriority().val())+":"),this.forEachChild(Te,(function(t,n){var r=n.hash();""!==r&&(e+=":"+t+":"+r)})),this.lazyHash_=""===e?"":g(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var r=this.resolveIndex_(n);if(r){var o=r.getPredecessorKey(new _e(e,t));return o?o.name:null}return this.children_.getPredecessorKey(e)},e.prototype.getFirstChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()},e.prototype.getFirstChild=function(e){var t=this.getFirstChildName(e);return t?new _e(t,this.children_.get(t)):null},e.prototype.getLastChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()},e.prototype.getLastChild=function(e){var t=this.getLastChildName(e);return t?new _e(t,this.children_.get(t)):null},e.prototype.forEachChild=function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal((function(e){return t(e.name,e.node)})):this.children_.inorderTraversal(t)},e.prototype.getIterator=function(e){return this.getIteratorFrom(e.minPost(),e)},e.prototype.getIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,(function(e){return e}));for(var r=this.children_.getIteratorFrom(e.name,_e.Wrap),o=r.peek();null!=o&&t.compare(o,e)<0;)r.getNext(),o=r.peek();return r},e.prototype.getReverseIterator=function(e){return this.getReverseIteratorFrom(e.maxPost(),e)},e.prototype.getReverseIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,(function(e){return e}));for(var r=this.children_.getReverseIteratorFrom(e.name,_e.Wrap),o=r.peek();null!=o&&t.compare(o,e)>0;)r.getNext(),o=r.peek();return r},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===Ue?-1:0},e.prototype.withIndex=function(t){if(t===ye||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===ye||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;
2if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator(Te),r=t.getIterator(Te),o=n.getNext(),i=r.getNext();o&&i;){if(o.name!==i.name||!o.node.equals(i.node))return!1;o=n.getNext(),i=r.getNext()}return null===o&&null===i}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===ye?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}(),Ue=new(function(e){function t(){return e.call(this,new Re(Be),qe.EMPTY_NODE,Fe.Default)||this}return o.__extends(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return qe.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(qe));Object.defineProperties(_e,{MIN:{value:new _e(j,qe.EMPTY_NODE)},MAX:{value:new _e(T,Ue)}}),ve.__EMPTY_NODE=qe.EMPTY_NODE,Ce.__childrenNodeConstructor=qe,Q=Ue,function(e){xe=e}(Ue);function He(e,t){if(void 0===t&&(t=null),null===e)return qe.EMPTY_NODE;if("object"===typeof e&&".priority"in e&&(t=e[".priority"]),i.assert(null===t||"string"===typeof t||"number"===typeof t||"object"===typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"===typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!==typeof e||".sv"in e)return new Ce(e,He(t));if(e instanceof Array){var n=qe.EMPTY_NODE;return D(e,(function(t,r){if(i.contains(e,t)&&"."!==t.substring(0,1)){var o=He(r);!o.isLeafNode()&&o.isEmpty()||(n=n.updateImmediateChild(t,o))}})),n.updatePriority(He(t))}var r=[],o=!1;if(D(e,(function(e,t){if("."!==e.substring(0,1)){var n=He(t);n.isEmpty()||(o=o||!n.getPriority().isEmpty(),r.push(new _e(e,n)))}})),0===r.length)return qe.EMPTY_NODE;var a=Me(r,ze,(function(e){return e.name}),Be);if(o){var s=Me(r,Te.getCompare());return new qe(a,He(t),new Fe({".priority":s},{".priority":Te}))}return new qe(a,He(t),Fe.Default)}!function(e){we=e}(He);var We,Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?P(e.name,t.name):n},t.prototype.isDefinedOn=function(e){return!0},t.prototype.indexedValueChanged=function(e,t){return!e.equals(t)},t.prototype.minPost=function(){return _e.MIN},t.prototype.maxPost=function(){return _e.MAX},t.prototype.makePost=function(e,t){var n=He(e);return new _e(t,n)},t.prototype.toString=function(){return".value"},t}(ge),Ke=new Ve,Ge=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,i.assert(!t.isEmpty()&&".priority"!==t.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return o.__extends(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),r=this.extractChild(t.node),o=n.compareTo(r);return 0===o?P(e.name,t.name):o},t.prototype.makePost=function(e,t){var n=He(e),r=qe.EMPTY_NODE.updateChild(this.indexPath_,n);return new _e(t,r)},t.prototype.maxPost=function(){var e=qe.EMPTY_NODE.updateChild(this.indexPath_,Ue);return new _e(T,e)},t.prototype.toString=function(){return this.indexPath_.slice().join("/")},t}(ge),Ye=function(){function e(e,t,n){this.node_=e,this.ref_=t,this.index_=n}return e.prototype.val=function(){return i.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},e.prototype.exportVal=function(){return i.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},e.prototype.toJSON=function(){return i.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},e.prototype.exists=function(){return i.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},e.prototype.child=function(t){i.validateArgCount("DataSnapshot.child",0,1,arguments.length),t=String(t),ue("DataSnapshot.child",1,t,!1);var n=new q(t),r=this.ref_.child(n);return new e(this.node_.getChild(n),r,Te)},e.prototype.hasChild=function(e){i.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),ue("DataSnapshot.hasChild",1,e,!1);var t=new q(e);return!this.node_.getChild(t).isEmpty()},e.prototype.getPriority=function(){return i.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},e.prototype.forEach=function(t){var n=this;return i.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),i.val
2idateCallback("DataSnapshot.forEach",1,t,!1),!this.node_.isLeafNode()&&!!this.node_.forEachChild(this.index_,(function(r,o){return t(new e(o,n.ref_.child(r),Te))}))},e.prototype.hasChildren=function(){return i.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(e.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!1,configurable:!0}),e.prototype.numChildren=function(){return i.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},e.prototype.getRef=function(){return i.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),e}(),Qe=function(){function e(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}return e.prototype.getPath=function(){var e=this.snapshot.getRef();return"value"===this.eventType?e.path:e.getParent().path},e.prototype.getEventType=function(){return this.eventType},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+i.stringify(this.snapshot.exportVal())},e}(),Xe=function(){function e(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}return e.prototype.getPath=function(){return this.path},e.prototype.getEventType=function(){return"cancel"},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.path.toString()+":cancel"},e}(),$e=function(){function e(e,t,n){this.callback_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t.getQueryParams().getIndex();return new Qe("value",this,new Ye(e.snapshotNode,t.getRef(),n))},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){i.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callback_;return function(){r.call(t,e.snapshot)}},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Xe(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callback_||!this.callback_||t.callback_===this.callback_&&t.context_===this.context_)},e.prototype.hasAnyCallback=function(){return null!==this.callback_},e}(),Je=function(){function e(e,t,n){this.callbacks_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;
2return t="children_removed"===t?"child_removed":t,i.contains(this.callbacks_,t)},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Xe(this,e,t):null},e.prototype.createEvent=function(e,t){i.assert(null!=e.childName,"Child events should have a childName.");var n=t.getRef().child(e.childName),r=t.getQueryParams().getIndex();return new Qe(e.type,this,new Ye(e.snapshotNode,n,r),e.prevName)},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){i.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callbacks_[e.eventType];return function(){r.call(t,e.snapshot,e.prevName)}},e.prototype.matches=function(t){var n=this;if(t instanceof e){if(!this.callbacks_||!t.callbacks_)return!0;if(this.context_===t.context_){var r=Object.keys(t.callbacks_),o=Object.keys(this.callbacks_),i=r.length;if(i===o.length){if(1===i){var a=r[0],s=o[0];return s===a&&(!t.callbacks_[a]||!this.callbacks_[s]||t.callbacks_[a]===this.callbacks_[s])}return o.every((function(e){return t.callbacks_[e]===n.callbacks_[e]}))}}}return!1},e.prototype.hasAnyCallback=function(){return null!==this.callbacks_},e}(),Ze=function(){function e(e,t,n,r){this.repo=e,this.path=t,this.queryParams_=n,this.orderByCalled_=r}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return i.assert(We,"Reference.ts has not been loaded"),We},set:function(e){We=e},enumerable:!1,configurable:!0}),e.validateQueryEndpoints_=function(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===ye){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",o="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!==j)throw new Error(r);if("string"!==typeof t)throw new Error(o)}if(e.hasEnd()){if(e.getIndexEndName()!==T)throw new Error(r);if("string"!==typeof n)throw new Error(o)}}else if(e.getIndex()===Te){if(null!=t&&!re(t)||null!=n&&!re(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(i.assert(e.getIndex()instanceof Ge||e.getIndex()===Ke,"unknown index type."),null!=t&&"object"===typeof t||null!=n&&"object"===typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},e.validateLimit_=function(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},e.prototype.validateNoPreviousOrderByCall_=function(e){if(!0===this.orderByCalled_)throw new Error(e+": You can't combine multiple orderBy calls.")},e.prototype.getQueryParams=function(){return this.queryParams_},e.prototype.getRef=function(){return i.validateArgCount("Query.ref",0,0,arguments.length),new e.__referenceConstructor(this.repo,this.path)},e.prototype.on=function(t,n,r,o){i.validateArgCount("Query.on",2,4,arguments.length),le("Query.on",1,t,!1),i.validateCallback("Query.on",2,n,!1);var a=e.getCancelAndContextArgs_("Query.on",r,o);if("value"===t)this.onValueEvent(n,a.cancel,a.context);else{var s={};s[t]=n,this.onChildEvent(s,a.cancel,a.context)}return n},e.prototype.onValueEvent=function(e,t,n){var r=new $e(e,t||null,n||null);this.repo.addEventCallbackForQuery(this,r)},e.prototype.onChildEvent=function(e,t,n){var r=new Je(e,t,n);this.repo.addEventCallbackForQuery(this,r)},e.prototype.off=function(e,t,n){i.validateArgCount("Query.off",0,3,arguments.length),le("Query.off",1,e,!0),i.validateCallback("Query.off",2,t,!0),i.validateContextObject("Query.off",3,n,!0);var r=null,o=null;"value"===e?r=new $e(t||null,null,n||null):e&&(t&&((o={})[e]=t),r=new Je(o,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},e.prototype.once=function(t,n,r,o){var a=this;i.validateArgCount("Query.once",1,4,arguments.length),le("Query.once",1,t,!1),i.val
2idateCallback("Query.once",2,n,!0);var s=e.getCancelAndContextArgs_("Query.once",r,o),l=!0,c=new i.Deferred;c.promise.catch((function(){}));var u=function(e){l&&(l=!1,a.off(t,u),n&&n.bind(s.context)(e),c.resolve(e))};return this.on(t,u,(function(e){a.off(t,u),s.cancel&&s.cancel.bind(s.context)(e),c.reject(e)})),c.promise},e.prototype.limitToFirst=function(t){if(i.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!==typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToFirst(t),this.orderByCalled_)},e.prototype.limitToLast=function(t){if(i.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!==typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToLast(t),this.orderByCalled_)},e.prototype.orderByChild=function(t){if(i.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===t)throw new Error('Query.orderByChild: "$key" is invalid.  Use Query.orderByKey() instead.');if("$priority"===t)throw new Error('Query.orderByChild: "$priority" is invalid.  Use Query.orderByPriority() instead.');if("$value"===t)throw new Error('Query.orderByChild: "$value" is invalid.  Use Query.orderByValue() instead.');ue("Query.orderByChild",1,t,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new q(t);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path.  Use Query.orderByValue() instead.");var r=new Ge(n),o=this.queryParams_.orderBy(r);return e.validateQueryEndpoints_(o),new e(this.repo,this.path,o,!0)},e.prototype.orderByKey=function(){i.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var t=this.queryParams_.orderBy(ye);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByPriority=function(){i.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var t=this.queryParams_.orderBy(Te);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByValue=function(){i.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var t=this.queryParams_.orderBy(Ke);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.startAt=function(t,n){void 0===t&&(t=null),i.validateArgCount("Query.startAt",0,2,arguments.length),oe("Query.startAt",1,t,this.path,!0),ce("Query.startAt",2,n,!0);var r=this.queryParams_.startAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===t&&(t=null,n=null),new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.endAt=function(t,n){void 0===t&&(t=null),i.validateArgCount("Query.endAt",0,2,arguments.length),oe("Query.endAt",1,t,this.path,!0),ce("Query.endAt",2,n,!0);var r=this.queryParams_.endAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.equalTo=function(e,t){if(i.validateArgCount("Query.equalTo",1,2,arguments.length),oe("Query.equalTo",1,e,this.path,!1),ce("Query.equalTo",2,t,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set 
2(by another call to endAt or equalTo).");return this.startAt(e,t).endAt(e,t)},e.prototype.toString=function(){return i.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},e.prototype.toJSON=function(){return i.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},e.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},e.prototype.queryIdentifier=function(){var e=this.queryObject(),t=R(e);return"{}"===t?"default":t},e.prototype.isEqual=function(t){if(i.validateArgCount("Query.isEqual",1,1,arguments.length),!(t instanceof e)){throw new Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.")}var n=this.repo===t.repo,r=this.path.equals(t.path),o=this.queryIdentifier()===t.queryIdentifier();return n&&r&&o},e.getCancelAndContextArgs_=function(e,t,n){var r={cancel:null,context:null};if(t&&n)r.cancel=t,i.validateCallback(e,3,r.cancel,!0),r.context=n,i.validateContextObject(e,4,r.context,!0);else if(t)if("object"===typeof t&&null!==t)r.context=t;else{if("function"!==typeof t)throw new Error(i.errorPrefix(e,3,!0)+" must either be a cancel callback or a context object.");r.cancel=t}return r},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),e}(),et=function(){function e(e){this.node_=e}return e.prototype.getImmediateChild=function(t){return new e(this.node_.getImmediateChild(t))},e.prototype.node=function(){return this.node_},e}(),tt=function(){function e(e,t){this.syncTree_=e,this.path_=t}return e.prototype.getImmediateChild=function(t){var n=this.path_.child(t);return new e(this.syncTree_,n)},e.prototype.node=function(){return this.syncTree_.calcCompleteEventCache(this.path_)},e}(),nt=function(e,t,n){return e&&"object"===typeof e?(i.assert(".sv"in e,"Unexpected leaf node or priority contents"),"string"===typeof e[".sv"]?rt(e[".sv"],t,n):"object"===typeof e[".sv"]?ot(e[".sv"],t):void i.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},rt=function(e,t,n){if("timestamp"===e)return n.timestamp;i.assert(!1,"Unexpected server value: "+e)},ot=function(e,t,n){e.hasOwnProperty("increment")||i.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2));var r=e.increment;"number"!==typeof r&&i.assert(!1,"Unexpected increment value: "+r);var o=t.node();if(i.assert(null!==o&&"undefined"!==typeof o,"Expected ChildrenNode.EMPTY_NODE for nulls"),!o.isLeafNode())return r;var a=o.getValue();return"number"!==typeof a?r:a+r},it=function(e,t,n,r){return st(t,new tt(n,e),r)},at=function(e,t,n){return st(e,new et(t),n)};function st(e,t,n){var r,o=e.getPriority().val(),i=nt(o,t.getImmediateChild(".priority"),n);if(e.isLeafNode()){var a=e,s=nt(a.getValue(),t,n);return s!==a.getValue()||i!==a.getPriority().val()?new Ce(s,He(i)):e}var l=e;return r=l,i!==l.getPriority().val()&&(r=r.updatePriority(new Ce(i))),l.forEachChild(Te,(function(e,o){var i=st(o,t.getImmediateChild(e),n);i!==o&&(r=r.updateImmediateChild(e,i))})),r}var lt,ct=function(){function e(){this.value=null,this.children=new Map}return e.prototype.find=function(e){if(null!=this.value)return this.value.getChild(e);if(!e.isEmpty()&&this.children.size>0){var t=e.getFront();return e=e.popFront(),this.children.has(t)?this.children.get(t).find(e):null}return null},e.prototype.remember=function(t,n){if(t.isEmpty())this.value=n,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(t,n);else{var r=t.getFront();this.children.has(r)||this.children.set(r,new e);var o=this.children.get(r);t=t.popFront(),o.remember(t,n)}},e.prototype.forget=function(e){if(e.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var t=this.value;this.value=null;var n=this;return t.forEachChild(Te,(function(e,t){n.remember(new q(e),t)})),this.forget(e)}if(this.children.size>0){var r=e.getFront();if(e=e.popFront(),this.children.has(r))this.children.get(r).forget(e)&&this.children.delete(r);return 0===this.children.size}return!0},e.prototype.forEachTree=function(e,t){null!==this.value?t(e,this.value):this.forEachChild((function(n,r){var o=new q(e.toString()+"/"+n);r.forEachTree(o,t)}))}
2,e.prototype.forEachChild=function(e){this.children.forEach((function(t,n){e(n,t)}))},e}();!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(lt||(lt={}));var ut,dt,pt=function(){function e(e,t,n,r){this.fromUser=e,this.fromServer=t,this.queryId=n,this.tagged=r,i.assert(!r||t,"Tagged queries must be from server.")}return e.User=new e(!0,!1,null,!1),e.Server=new e(!1,!0,null,!1),e.forServerTaggedQuery=function(t){return new e(!1,!0,t,!0)},e}(),ht=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=lt.ACK_USER_WRITE,this.source=pt.User}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return i.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new q(t));return new e(q.Empty,n,this.revert)}return i.assert(this.path.getFront()===t,"operationForChild called for unrelated child."),new e(this.path.popFront(),this.affectedTree,this.revert)},e}(),ft=function(){function e(e,t){void 0===t&&(ut||(ut=new Re(N)),t=ut),this.value=e,this.children=t}return e.fromObject=function(t){var n=e.Empty;return D(t,(function(e,t){n=n.set(new q(e),t)})),n},e.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},e.prototype.findRootMostMatchingPathAndValue=function(e,t){if(null!=this.value&&t(this.value))return{path:q.Empty,value:this.value};if(e.isEmpty())return null;var n=e.getFront(),r=this.children.get(n);if(null!==r){var o=r.findRootMostMatchingPathAndValue(e.popFront(),t);return null!=o?{path:new q(n).child(o.path),value:o.value}:null}return null},e.prototype.findRootMostValueAndPath=function(e){return this.findRootMostMatchingPathAndValue(e,(function(){return!0}))},e.prototype.subtree=function(t){if(t.isEmpty())return this;var n=t.getFront(),r=this.children.get(n);return null!==r?r.subtree(t.popFront()):e.Empty},e.prototype.set=function(t,n){if(t.isEmpty())return new e(n,this.children);var r=t.getFront(),o=(this.children.get(r)||e.Empty).set(t.popFront(),n),i=this.children.insert(r,o);return new e(this.value,i)},e.prototype.remove=function(t){if(t.isEmpty())return this.children.isEmpty()?e.Empty:new e(null,this.children);var n=t.getFront(),r=this.children.get(n);if(r){var o=r.remove(t.popFront()),i=void 0;return i=o.isEmpty()?this.children.remove(n):this.children.insert(n,o),null===this.value&&i.isEmpty()?e.Empty:new e(this.value,i)}return this},e.prototype.get=function(e){if(e.isEmpty())return this.value;var t=e.getFront(),n=this.children.get(t);return n?n.get(e.popFront()):null},e.prototype.setTree=function(t,n){if(t.isEmpty())return n;var r=t.getFront(),o=(this.children.get(r)||e.Empty).setTree(t.popFront(),n),i=void 0;return i=o.isEmpty()?this.children.remove(r):this.children.insert(r,o),new e(this.value,i)},e.prototype.fold=function(e){return this.fold_(q.Empty,e)},e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal((function(r,o){n[r]=o.fold_(e.child(r),t)})),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,q.Empty,t)},e.prototype.findOnPath_=function(e,t,n){var r=!!this.value&&n(t,this.value);if(r)return r;if(e.isEmpty())return null;var o=e.getFront(),i=this.children.get(o);return i?i.findOnPath_(e.popFront(),t.child(o),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,q.Empty,t)},e.prototype.foreachOnPath_=function(t,n,r){if(t.isEmpty())return this;this.value&&r(n,this.value);var o=t.getFront(),i=this.children.get(o);return i?i.foreachOnPath_(t.popFront(),n.child(o),r):e.Empty},e.prototype.foreach=function(e){this.foreach_(q.Empty,e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal((function(n,r){r.foreach_(e.child(n),t)})),this.value&&t(e,this.value)},e.prototype.foreachChild=function(e){this.children.inorderTraversal((function(t,n){n.value&&e(t,n.value)}))},e.Empty=new e(null),e}(),mt=function(){function e(e,t){this.source=e,this.path=t,this.type=lt.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,q.Empty):new e(this.source,this.path.popFront())},e}(),_t=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=lt.OVERWRITE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,q.Empty,this.snap.getImmediateChild(t)):new e(this.source,this.path.popFront(),this.snap)},e}(),gt=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=lt.MERGE}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){var n=this.children.subtree(new q(t));return n.isEmpty()?null:n.value?new _t(this.source,q.Empty,n.value):new e(this.source,q.Empty,n)}return i.assert(this.path.getFront()===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,this.path.popFront(),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}(),vt=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(e.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var t=e.getFront();return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}(),yt=function(){function e(e,t){this.eventCache_=e,this.serverCache_=t}return e.prototype.updateEventSnap=function(t,n,r){return new e(new vt(t,n,r),this.serverCache_)},e.prototype.updateServerSnap=function(t,n,r){return new e(this.eventCache_,new vt(t,n,r))},e.prototype.getEventCache=function(){return this.eventCache_},e.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},e.prototype.getServerCache=function(){return this.serverCache_},e.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},e.Empty=new e(new vt(qe.EMPTY_NODE,!1,!1),new vt(qe.EMPTY_NODE,!1,!1)),e}(),bt=function(){function e(e,t,n,r,o){this.type=e,this.snapshotNode=t,this.childName=n,this.oldSnap=r,this.prevName=o}return e.valueChange=function(t){return new e(e.VALUE,t)},e.childAddedChange=function(t,n){return new e(e.CHILD_ADDED,n,t)},e.childRemovedChange=function(t,n){return new e(e.CHILD_REMOVED,n,t)},e.childChangedChange=function(t,n,r){return new e(e.CHILD_CHANGED,n,t,r)},e.childMovedChange=function(t,n){return new e(e.CHILD_MOVED,n,t)},e.CHILD_ADDED="child_added",e.CHILD_REMOVED="child_removed",e.CHILD_CHANGED="child_changed",e.CHILD_MOVED="child_moved",e.VALUE="value",e}(),wt=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,r,o,a){i.assert(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var s=e.getImmediateChild(t);return s.getChild(r).equals(n.getChild(r))&&s.isEmpty()===n.isEmpty()?e:(null!=a&&(n.isEmpty()?e.hasChild(t)?a.trackChildChange(bt.childRemovedChange(t,s)):i.assert(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):s.isEmpty()?a.trackChildChange(bt.childAddedChange(t,n)):a.trackChildChange(bt.childChangedChange(t,n,s))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(Te,(function(e,r){t.hasChild(e)||n.trackChildChange(bt.childRemovedChange(e,r))})),t.isLeafNode()||t.forEachChild(Te,(function(t,r){if(e.hasChild(t)){var o=e.getImmediateChild(t);o.equals(r)||n.trackChildChange(bt.childChangedChange(t,r,o))}else n.trackChildChange(bt.childAddedChange(t,r))}))),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?qe.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}(),xt=function(){function e(){this.changeMap=new Map}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;i.assert(t===bt.CHILD_ADDED||t===bt.CHILD_CHANGED||t===bt.CHILD_REMOVED,"Only child changes supported for tracking"),i.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var r=this.changeMap.get(n);if(r){var o=r.type;if(t===bt.CHILD_ADDED&&o===bt.CHILD_REMOVED)this.changeMap.set(n,bt.childChangedChange(n,e.snapshotNode,r.snapshotNode));else if(t===bt.CHILD_REMOVED&&o===bt.CHILD_ADDED)this.changeMap.delete(n);else if(t===bt.CHILD_REMOVED&&o===bt.CHILD_CHANGED)this.changeMap.set(n,bt.childRemovedChange(n,r.oldSnap));else if(t===bt.CHILD_CHANGED&&o===bt.CHILD_ADDED)this.changeMap.set(n,bt.childAddedChange(n,e.snapshotNode));else{if(t!==bt.CHILD_CHANGED||o!==bt.CHILD_CHANGED)throw i.assertionError("Illegal combination of changes: "+e+" occurred after "+r);this.changeMap.set(n,bt.childChangedChange(n,e.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,e)},e.prototype.getChanges=function(){return Array.from(this.changeMap.values())},e}(),kt=new(function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}()),St=function(){function e(e,t,n){void 0===n&&(n=null),this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}return e.prototype.getCompleteChild=function(e){var t=this.viewCache_.getEventCache();if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new vt(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(e,n)},e.prototype.getChildAfterChild=function(e,t,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),o=this.writes_.calcIndexedSlice(r,t,1,n,e);return 0===o.length?null:o[0]},e}(),Ct=function(e,t){this.viewCache=e,this.changes=t},At=function(){function e(e){this.filter_=e}return e.prototype.assertIndexed=function(e){i.assert(e.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),i.assert(e.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},e.prototype.applyOperation=function(t,n,r,o){var a,s,l=new xt;if(n.type===lt.OVERWRITE){var c=n;c.source.fromUser?a=this.applyUserOverwrite_(t,c.path,c.snap,r,o,l):(i.assert(c.source.fromServer,"Unknown source."),s=c.source.tagged||t.getServerCache().isFiltered()&&!c.path.isEmpty(),a=this.applyServerOverwrite_(t,c.path,c.snap,r,o,s,l))}else if(n.type===lt.MERGE){var u=n;u.source.fromUser?a=this.applyUserMerge_(t,u.path,u.children,r,o,l):(i.assert(u.source.fromServer,"Unknown source."),s=u.source.tagged||t.getServerCache().isFiltered(),a=this.applyServerMerge_(t,u.path,u.children,r,o,s,l))}else if(n.type===lt.ACK_USER_WRITE){var d=n;a=d.revert?this.revertUserWrite_(t,d.path,r,o,l):this.ackUserWrite_(t,d.path,d.affectedTree,r,o,l)}else{if(n.type!==lt.LISTEN_COMPLETE)throw i.assertionError("Unknown operation type: "+n.type);a=this.listenComplete_(t,n.path,r,l)}var p=l.getChanges();return e.maybeAddValueEvent_(t,a,p),new Ct(a,p)},e.maybeAddValueEvent_=function(e,t,n){var r=t.getEventCache();if(r.isFullyInitialized()){var o=r.getNode().isLeafNode()||r.getNode().isEmpty(),i=e.getCompleteEventSnap();(n.length>0||!e.getEventCache().isFullyInitialized()||o&&!r.getNode().equals(i)||!r.getNode().getPriority().equals(i.getPri
2ority()))&&n.push(bt.valueChange(t.getCompleteEventSnap()))}},e.prototype.generateEventCacheAfterServerEvent_=function(e,t,n,r,o){var a=e.getEventCache();if(null!=n.shadowingWrite(t))return e;var s=void 0,l=void 0;if(t.isEmpty())if(i.assert(e.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),e.getServerCache().isFiltered()){var c=e.getCompleteServerSnap(),u=c instanceof qe?c:qe.EMPTY_NODE,d=n.calcCompleteEventChildren(u);s=this.filter_.updateFullNode(e.getEventCache().getNode(),d,o)}else{var p=n.calcCompleteEventCache(e.getCompleteServerSnap());s=this.filter_.updateFullNode(e.getEventCache().getNode(),p,o)}else{var h=t.getFront();if(".priority"===h){i.assert(1===t.getLength(),"Can't have a priority with additional path components");var f=a.getNode();l=e.getServerCache().getNode();var m=n.calcEventCacheAfterServerOverwrite(t,f,l);s=null!=m?this.filter_.updatePriority(f,m):a.getNode()}else{var _=t.popFront(),g=void 0;if(a.isCompleteForChild(h)){l=e.getServerCache().getNode();var v=n.calcEventCacheAfterServerOverwrite(t,a.getNode(),l);g=null!=v?a.getNode().getImmediateChild(h).updateChild(_,v):a.getNode().getImmediateChild(h)}else g=n.calcCompleteChild(h,e.getServerCache());s=null!=g?this.filter_.updateChild(a.getNode(),h,g,_,r,o):a.getNode()}}return e.updateEventSnap(s,a.isFullyInitialized()||t.isEmpty(),this.filter_.filtersNodes())},e.prototype.applyServerOverwrite_=function(e,t,n,r,o,i,a){var s,l=e.getServerCache(),c=i?this.filter_:this.filter_.getIndexedFilter();if(t.isEmpty())s=c.updateFullNode(l.getNode(),n,null);else if(c.filtersNodes()&&!l.isFiltered()){var u=l.getNode().updateChild(t,n);s=c.updateFullNode(l.getNode(),u,null)}else{var d=t.getFront();if(!l.isCompleteForPath(t)&&t.getLength()>1)return e;var p=t.popFront(),h=l.getNode().getImmediateChild(d).updateChild(p,n);s=".priority"===d?c.updatePriority(l.getNode(),h):c.updateChild(l.getNode(),d,h,p,kt,null)}var f=e.updateServerSnap(s,l.isFullyInitialized()||t.isEmpty(),c.filtersNodes()),m=new St(r,f,o);return this.generateEventCacheAfterServerEvent_(f,t,r,m,a)},e.prototype.applyUserOverwrite_=function(e,t,n,r,o,i){var a,s,l=e.getEventCache(),c=new St(r,e,o);if(t.isEmpty())s=this.filter_.updateFullNode(e.getEventCache().getNode(),n,i),a=e.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var u=t.getFront();if(".priority"===u)s=this.filter_.updatePriority(e.getEventCache().getNode(),n),a=e.updateEventSnap(s,l.isFullyInitialized(),l.isFiltered());else{var d=t.popFront(),p=l.getNode().getImmediateChild(u),h=void 0;if(d.isEmpty())h=n;else{var f=c.getCompleteChild(u);h=null!=f?".priority"===d.getBack()&&f.getChild(d.parent()).isEmpty()?f:f.updateChild(d,n):qe.EMPTY_NODE}if(p.equals(h))a=e;else{var m=this.filter_.updateChild(l.getNode(),u,h,d,c,i);a=e.updateEventSnap(m,l.isFullyInitialized(),this.filter_.filtersNodes())}}}return a},e.cacheHasChild_=function(e,t){return e.getEventCache().isCompleteForChild(t)},e.prototype.applyUserMerge_=function(t,n,r,o,i,a){var s=this,l=t;return r.foreach((function(r,c){var u=n.child(r);e.cacheHasChild_(t,u.getFront())&&(l=s.applyUserOverwrite_(l,u,c,o,i,a))})),r.foreach((function(r,c){var u=n.child(r);e.cacheHasChild_(t,u.getFront())||(l=s.applyUserOverwrite_(l,u,c,o,i,a))})),l},e.prototype.applyMerge_=function(e,t){return t.foreach((function(t,n){e=e.updateChild(t,n)})),e},e.prototype.applyServerMerge_=function(e,t,n,r,o,i,a){var s=this;if(e.getServerCache().getNode().isEmpty()&&!e.getServerCache().isFullyInitialized())return e;var l,c=e;l=t.isEmpty()?n:ft.Empty.setTree(t,n);var u=e.getServerCache().getNode();return l.children.inorderTraversal((function(t,n){if(u.hasChild(t)){var l=e.getServerCache().getNode().getImmediateChild(t),d=s.applyMerge_(l,n);c=s.applyServerOverwrite_(c,new q(t),d,r,o,i,a)}})),l.children.inorderTraversal((function(t,n){var l=!e.getServerCache().isCompleteForChild(t)&&null==n.value;if(!u.hasChild(t)&&!l){var d=e.getServerCache().getNode().getImmediateChild(t),p=s.applyMerge_(d,n);c=s.applyServerOverwrite_(c,new q(t),p,r,o,i,a)}})),c}
2,e.prototype.ackUserWrite_=function(e,t,n,r,o,i){if(null!=r.shadowingWrite(t))return e;var a=e.getServerCache().isFiltered(),s=e.getServerCache();if(null!=n.value){if(t.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(t))return this.applyServerOverwrite_(e,t,s.getNode().getChild(t),r,o,a,i);if(t.isEmpty()){var l=ft.Empty;return s.getNode().forEachChild(ye,(function(e,t){l=l.set(new q(e),t)})),this.applyServerMerge_(e,t,l,r,o,a,i)}return e}var c=ft.Empty;return n.foreach((function(e,n){var r=t.child(e);s.isCompleteForPath(r)&&(c=c.set(e,s.getNode().getChild(r)))})),this.applyServerMerge_(e,t,c,r,o,a,i)},e.prototype.listenComplete_=function(e,t,n,r){var o=e.getServerCache(),i=e.updateServerSnap(o.getNode(),o.isFullyInitialized()||t.isEmpty(),o.isFiltered());return this.generateEventCacheAfterServerEvent_(i,t,n,kt,r)},e.prototype.revertUserWrite_=function(e,t,n,r,o){var a;if(null!=n.shadowingWrite(t))return e;var s=new St(n,e,r),l=e.getEventCache().getNode(),c=void 0;if(t.isEmpty()||".priority"===t.getFront()){var u=void 0;if(e.getServerCache().isFullyInitialized())u=n.calcCompleteEventCache(e.getCompleteServerSnap());else{var d=e.getServerCache().getNode();i.assert(d instanceof qe,"serverChildren would be complete if leaf node"),u=n.calcCompleteEventChildren(d)}c=this.filter_.updateFullNode(l,u,o)}else{var p=t.getFront(),h=n.calcCompleteChild(p,e.getServerCache());null==h&&e.getServerCache().isCompleteForChild(p)&&(h=l.getImmediateChild(p)),(c=null!=h?this.filter_.updateChild(l,p,h,t.popFront(),s,o):e.getEventCache().getNode().hasChild(p)?this.filter_.updateChild(l,p,qe.EMPTY_NODE,t.popFront(),s,o):l).isEmpty()&&e.getServerCache().isFullyInitialized()&&(a=n.calcCompleteEventCache(e.getCompleteServerSnap())).isLeafNode()&&(c=this.filter_.updateFullNode(c,a,o))}return a=e.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(q.Empty),e.updateEventSnap(c,a,this.filter_.filtersNodes())},e}(),Et=function(){function e(e){this.query_=e,this.index_=this.query_.getQueryParams().getIndex()}return e.prototype.generateEventsForChanges=function(e,t,n){var r=this,o=[],i=[];return e.forEach((function(e){e.type===bt.CHILD_CHANGED&&r.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&i.push(bt.childMovedChange(e.childName,e.snapshotNode))})),this.generateEventsForType_(o,bt.CHILD_REMOVED,e,n,t),this.generateEventsForType_(o,bt.CHILD_ADDED,e,n,t),this.generateEventsForType_(o,bt.CHILD_MOVED,i,n,t),this.generateEventsForType_(o,bt.CHILD_CHANGED,e,n,t),this.generateEventsForType_(o,bt.VALUE,e,n,t),o},e.prototype.generateEventsForType_=function(e,t,n,r,o){var i=this,a=n.filter((function(e){return e.type===t}));a.sort(this.compareChanges_.bind(this)),a.forEach((function(t){var n=i.materializeSingleChange_(t,o);r.forEach((function(r){r.respondsTo(t.type)&&e.push(r.createEvent(n,i.query_))}))}))},e.prototype.materializeSingleChange_=function(e,t){return"value"===e.type||"child_removed"===e.type||(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,this.index_)),e},e.prototype.compareChanges_=function(e,t){if(null==e.childName||null==t.childName)throw i.assertionError("Should only compare child_ events.");var n=new _e(e.childName,e.snapshotNode),r=new _e(t.childName,t.snapshotNode);return this.index_.compare(n,r)},e}(),jt=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),r=new wt(n.getIndex()),o=n.getNodeFilter();this.processor_=new At(o);var i=t.getServerCache(),a=t.getEventCache(),s=r.updateFullNode(qe.EMPTY_NODE,i.getNode(),null),l=o.updateFullNode(qe.EMPTY_NODE,a.getNode(),null),c=new vt(s,i.isFullyInitialized(),r.filtersNodes()),u=new vt(l,a.isFullyInitialized(),o.filtersNodes());this.viewCache_=new yt(u,c),this.eventGenerator_=new Et(this.query_)}return e.prototype.getQuery=function(){return this.query_},e.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},e.prototype.getCompleteServerCache=function(e){var t=this.viewCache_.getCompleteServerSnap();return t&&(this.query_.getQueryParams().loadsAllData()||!e.isEmpty()&&!t.getImmediateChild(e.getFront()).isEmpty())?t.getChild(e):null},e.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},e.prototype.addEventRegistration=function(e){this.eventRegistrations_.push(e)},e.prototype.removeEventRegistration=function(e,t){var n=[];if(t){i.assert(null==e,"A cancel should cancel all event registrations.");var r=this.query_.path;this.eventRegistrations_.forEach((function(e){var o=e.createCancelEvent(t,r);o&&n.push(o)}))}if(e){for(var o=[],a=0;a<this.eventRegistrations_.length;++a){var s=this.eventRegistrations_[a];if(s.matches(e)){if(e.hasAnyCallback()){o=o.concat(this.eventRegistrations_.slice(a+1));break}}else o.push(s)}this.eventRegistrations_=o}else this.eventRegistrations_=[];return n},e.prototype.applyOperation=function(e,t,n){e.type===lt.MERGE&&null!==e.source.queryId&&(i.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full c
2ache before handling merges"),i.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var r=this.viewCache_,o=this.processor_.applyOperation(r,e,t,n);return this.processor_.assertIndexed(o.viewCache),i.assert(o.viewCache.getServerCache().isFullyInitialized()||!r.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=o.viewCache,this.generateEventsForChanges_(o.changes,o.viewCache.getEventCache().getNode(),null)},e.prototype.getInitialEvents=function(e){var t=this.viewCache_.getEventCache(),n=[];t.getNode().isLeafNode()||t.getNode().forEachChild(Te,(function(e,t){n.push(bt.childAddedChange(e,t))}));return t.isFullyInitialized()&&n.push(bt.valueChange(t.getNode())),this.generateEventsForChanges_(n,t.getNode(),e)},e.prototype.generateEventsForChanges_=function(e,t,n){var r=n?[n]:this.eventRegistrations_;return this.eventGenerator_.generateEventsForChanges(e,t,r)},e}(),Tt=function(){function e(){this.views=new Map}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return i.assert(dt,"Reference.ts has not been loaded"),dt},set:function(e){i.assert(!dt,"__referenceConstructor has already been defined"),dt=e},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return 0===this.views.size},e.prototype.applyOperation=function(e,t,n){var r,a,s=e.source.queryId;if(null!==s){var l=this.views.get(s);return i.assert(null!=l,"SyncTree gave us an op for an invalid query."),l.applyOperation(e,t,n)}var c=[];try{for(var u=o.__values(this.views.values()),d=u.next();!d.done;d=u.next()){l=d.value;c=c.concat(l.applyOperation(e,t,n))}}catch(p){r={error:p}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return c},e.prototype.addEventRegistration=function(e,t,n,r,o){var i=e.queryIdentifier(),a=this.views.get(i);if(!a){var s=n.calcCompleteEventCache(o?r:null),l=!1;s?l=!0:r instanceof qe?(s=n.calcCompleteEventChildren(r),l=!1):(s=qe.EMPTY_NODE,l=!1);var c=new yt(new vt(s,l,!1),new vt(r,o,!1));a=new jt(e,c),this.views.set(i,a)}return a.addEventRegistration(t),a.getInitialEvents(t)},e.prototype.removeEventRegistration=function(t,n,r){var i,a,s=t.queryIdentifier(),l=[],c=[],u=this.hasCompleteView();if("default"===s)try{for(var d=o.__values(this.views.entries()),p=d.next();!p.done;p=d.next()){var h=o.__read(p.value,2),f=h[0],m=h[1];c=c.concat(m.removeEventRegistration(n,r)),m.isEmpty()&&(this.views.delete(f),m.getQuery().getQueryParams().loadsAllData()||l.push(m.getQuery()))}}catch(_){i={error:_}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}else(m=this.views.get(s))&&(c=c.concat(m.removeEventRegistration(n,r)),m.isEmpty()&&(this.views.delete(s),m.getQuery().getQueryParams().loadsAllData()||l.push(m.getQuery())));return u&&!this.hasCompleteView()&&l.push(new e.__referenceConstructor(t.repo,t.path)),{removed:l,events:c}},e.prototype.getQueryViews=function(){var e,t,n=[];try{for(var r=o.__values(this.views.values()),i=r.next();!i.done;i=r.next()){var a=i.value;a.getQuery().getQueryParams().loadsAllData()||n.push(a)}}catch(s){e={error:s}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e.prototype.getCompleteServerCache=function(e){var t,n,r=null;try{for(var i=o.__values(this.views.values()),a=i.next();!a.done;a=i.next()){var s=a.value;r=r||s.getCompleteServerCache(e)}}
2catch(l){t={error:l}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.prototype.viewForQuery=function(e){if(e.getQueryParams().loadsAllData())return this.getCompleteView();var t=e.queryIdentifier();return this.views.get(t)},e.prototype.viewExistsForQuery=function(e){return null!=this.viewForQuery(e)},e.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},e.prototype.getCompleteView=function(){var e,t;try{for(var n=o.__values(this.views.values()),r=n.next();!r.done;r=n.next()){var i=r.value;if(i.getQuery().getQueryParams().loadsAllData())return i}}catch(a){e={error:a}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return null},e}(),Pt=function(){function e(e){this.writeTree_=e}return e.prototype.addWrite=function(t,n){if(t.isEmpty())return new e(new ft(n));var r=this.writeTree_.findRootMostValueAndPath(t);if(null!=r){var o=r.path,i=r.value,a=q.relativePath(o,t);return i=i.updateChild(a,n),new e(this.writeTree_.set(o,i))}var s=new ft(n);return new e(this.writeTree_.setTree(t,s))},e.prototype.addWrites=function(e,t){var n=this;return D(t,(function(t,r){n=n.addWrite(e.child(t),r)})),n},e.prototype.removeWrite=function(t){return t.isEmpty()?e.Empty:new e(this.writeTree_.setTree(t,ft.Empty))},e.prototype.hasCompleteWrite=function(e){return null!=this.getCompleteNode(e)},e.prototype.getCompleteNode=function(e){var t=this.writeTree_.findRootMostValueAndPath(e);return null!=t?this.writeTree_.get(t.path).getChild(q.relativePath(t.path,e)):null},e.prototype.getCompleteChildren=function(){var e=[],t=this.writeTree_.value;return null!=t?t.isLeafNode()||t.forEachChild(Te,(function(t,n){e.push(new _e(t,n))})):this.writeTree_.children.inorderTraversal((function(t,n){null!=n.value&&e.push(new _e(t,n.value))})),e},e.prototype.childCompoundWrite=function(t){if(t.isEmpty())return this;var n=this.getCompleteNode(t);return new e(null!=n?new ft(n):this.writeTree_.subtree(t))},e.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},e.prototype.apply=function(e){return Nt(q.Empty,this.writeTree_,e)},e.Empty=new e(new ft(null)),e}();function Nt(e,t,n){if(null!=t.value)return n.updateChild(e,t.value);var r=null;return t.children.inorderTraversal((function(t,o){".priority"===t?(i.assert(null!==o.value,"Priority writes must always be leaf nodes"),r=o.value):n=Nt(e.child(t),o,n)})),n.getChild(e).isEmpty()||null===r||(n=n.updateChild(e.child(".priority"),r)),n}var It=function(){function e(){this.visibleWrites_=Pt.Empty,this.allWrites_=[],this.lastWriteId_=-1}return e.prototype.childWrites=function(e){return new Rt(e,this)},e.prototype.addOverwrite=function(e,t,n,r){i.assert(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),this.allWrites_.push({path:e,snap:t,writeId:n,visible:r}),r&&(this.visibleWrites_=this.visibleWrites_.addWrite(e,t)),this.lastWriteId_=n},e.prototype.addMerge=function(e,t,n){i.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:e,children:t,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(e,t),this.lastWriteId_=n},e.prototype.getWrite=function(e){for(var t=0;t<this.allWrites_.length;t++){var n=this.allWrites_[t];if(n.writeId===e)return n}return null},e.prototype.removeWrite=function(e){var t=this,n=this.allWrites_.findIndex((function(t){return t.writeId===e}));i.assert(n>=0,"removeWrite called with nonexistent writeId.");var r=this.allWrites_[n];this.allWrites_.splice(n,1);for(var o=r.visible,a=!1,s=this.allWrites_.length-1;o&&s>=0;){var l=this.allWrites_[s];l.visible&&(s>=n&&this.recordContainsPath_(l,r.path)?o=!1:r.path.contains(l.path)&&(a=!0)),s--}if(o){if(a)return this.resetTree_(),!0;r.snap?this.visibleWrites_=this.visibleWrites_.removeWrite(r.path):D(r.children,(function(e){t.visibleWrites_=t.visibleWrites_.removeWrite(r.path.child(e))}));return!0}return!1},e.prototype.getCompleteWriteData=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcCompleteEventCache=function(t,n,r,o){if(r||o){var i=this.visibleWrites_.childCompoundWrite(t);if(!o&&i.isEmpty())return n;if(o||null!=n||i.hasCompleteWrite(q.Empty)){var a=e.layerTree_(this.allWrites_,(function(e){return(e.visible||o)&&(!r||!~r.indexOf(e.writeId))&&(e.path.contains(t)||t.contains(e.path))}),t);c=n||qe.EMPTY_NODE;return a.apply(c)}return null}var s=this.visibleWrites_.getCompleteNode(t);if(null!=s)return s;var l=this.visibleWrites_.childCompoundWrite(t);if(l.isEmpty())return n;if(null!=n||l.hasCompleteWrite(q.Empty)){var c=n||qe.EMPTY_NODE;return l.apply(c)}return null},e.prototype.calcCompleteEventChildren=function(e,t){var n=qe.EMPTY_NODE,r=this.visibleWrites_.getCompleteNode(e);if(r)return r.isLeafNode()||r.forEachChild(Te,(function(e,t){n=n.updateImmediateChild(e,t)})),n;if(t){var o=this.visibleWrites_.childCompoundWrite(e);return t.forEachChild(Te,(function(e,t){var r=o.childCompoundWrite(new q(e)).apply(t);n=n.updateImmediateChild(e,r)}
2)),o.getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n}return this.visibleWrites_.childCompoundWrite(e).getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n,r){i.assert(n||r,"Either existingEventSnap or existingServerSnap must exist");var o=e.child(t);if(this.visibleWrites_.hasCompleteWrite(o))return null;var a=this.visibleWrites_.childCompoundWrite(o);return a.isEmpty()?r.getChild(t):a.apply(r.getChild(t))},e.prototype.calcCompleteChild=function(e,t,n){var r=e.child(t),o=this.visibleWrites_.getCompleteNode(r);return null!=o?o:n.isCompleteForChild(t)?this.visibleWrites_.childCompoundWrite(r).apply(n.getNode().getImmediateChild(t)):null},e.prototype.shadowingWrite=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcIndexedSlice=function(e,t,n,r,o,i){var a,s=this.visibleWrites_.childCompoundWrite(e),l=s.getCompleteNode(q.Empty);if(null!=l)a=l;else{if(null==t)return[];a=s.apply(t)}if((a=a.withIndex(i)).isEmpty()||a.isLeafNode())return[];for(var c=[],u=i.getCompare(),d=o?a.getReverseIteratorFrom(n,i):a.getIteratorFrom(n,i),p=d.getNext();p&&c.length<r;)0!==u(p,n)&&c.push(p),p=d.getNext();return c},e.prototype.recordContainsPath_=function(e,t){if(e.snap)return e.path.contains(t);for(var n in e.children)if(e.children.hasOwnProperty(n)&&e.path.child(n).contains(t))return!0;return!1},e.prototype.resetTree_=function(){this.visibleWrites_=e.layerTree_(this.allWrites_,e.DefaultFilter_,q.Empty),this.allWrites_.length>0?this.lastWriteId_=this.allWrites_[this.allWrites_.length-1].writeId:this.lastWriteId_=-1},e.DefaultFilter_=function(e){return e.visible},e.layerTree_=function(e,t,n){for(var r=Pt.Empty,o=0;o<e.length;++o){var a=e[o];if(t(a)){var s=a.path,l=void 0;if(a.snap)n.contains(s)?(l=q.relativePath(n,s),r=r.addWrite(l,a.snap)):s.contains(n)&&(l=q.relativePath(s,n),r=r.addWrite(q.Empty,a.snap.getChild(l)));else{if(!a.children)throw i.assertionError("WriteRecord should have .snap or .children");if(n.contains(s))l=q.relativePath(n,s),r=r.addWrites(l,a.children);else if(s.contains(n))if((l=q.relativePath(s,n)).isEmpty())r=r.addWrites(q.Empty,a.children);else{var c=i.safeGet(a.children,l.getFront());if(c){var u=c.getChild(l.popFront());r=r.addWrite(q.Empty,u)}}}}}return r},e}(),Rt=function(){function e(e,t){this.treePath_=e,this.writeTree_=t}return e.prototype.calcCompleteEventCache=function(e,t,n){return this.writeTree_.calcCompleteEventCache(this.treePath_,e,t,n)},e.prototype.calcCompleteEventChildren=function(e){return this.writeTree_.calcCompleteEventChildren(this.treePath_,e)},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,e,t,n)},e.prototype.shadowingWrite=function(e){return this.writeTree_.shadowingWrite(this.treePath_.child(e))},e.prototype.calcIndexedSlice=function(e,t,n,r,o){return this.writeTree_.calcIndexedSlice(this.treePath_,e,t,n,r,o)},e.prototype.calcCompleteChild=function(e,t){return this.writeTree_.calcCompleteChild(this.treePath_,e,t)},e.prototype.child=function(t){return new e(this.treePath_.child(t),this.writeTree_)},e}(),Ot=function(){function e(e){this.listenProvider_=e,this.syncPointTree_=ft.Empty,this.pendingWriteTree_=new It,this.tagToQueryMap=new Map,this.queryToTagMap=new Map}return e.prototype.applyUserOverwrite=function(e,t,n,r){return this.pendingWriteTree_.addOverwrite(e,t,n,r),r?this.applyOperationToSyncPoints_(new _t(pt.User,e,t)):[]},e.prototype.applyUserMerge=function(e,t,n){this.pendingWriteTree_.addMerge(e,t,n);var r=ft.fromObject(t);return this.applyOperationToSyncPoints_(new gt(pt.User,e,r))},e.prototype.ackUserWrite=function(e,t){void 0===t&&(t=!1);var n=this.pendingWriteTree_.getWrite(e);if(this.pendingWriteTree_.removeWrite(e)){var r=ft.Empty;return null!=n.snap?r=r.set(q.Empty,!0):D(n.children,(function(e,t){r=r.set(new q(e),t)})),this.applyOperationToSyncPoints_(new ht(n.path,r,t))}return[]},e.prototype.applyServerOverwrite=function(e,t){return this.applyOperationToSyncPoints_(new _t(pt.Server,e,t))},e.prototype.applyServerMerge=function(e,t){var n=ft.fromObject(t);return this.applyOperationToSyncPoints_(new gt(pt.Server,e,n))},e.prototype.applyListenComplete=function(e){return this.applyOperationToSyncPoints_(new mt(pt.Server,e))},e.prototype.applyTaggedQueryOverwrite=function(t,n,r){var o=this.queryKeyForTag_(r);if(null!=o){var i=e.parseQueryKey_(o),a=i.path,s=i.queryId,l=q.relativePath(a,t),c=new _t(pt.forServerTaggedQuery(s),l,n);return this.applyTaggedOperation_(a,c)}return[]},e.prototype.applyTaggedQueryMerge=function(t,n,r){var o=this.queryKeyForTag_(r);if(o){var i=e.parseQueryKey_(o),a=i.path,s=i.queryId,l=q.relativePath(a,t),c=ft.fromObject(n),u=new gt(pt.forServerTaggedQuery(s),l,c);return this.applyTaggedOperation_(a,u)}return[]},e.prototype.applyTaggedListenComplete=function(t,n){var r=this.queryKeyForTag_(n);if(r){var o=e.parseQueryKey_(r),i=o.path,a=o.queryId,s=q.relativePath(i,t),l=new mt(pt.forServerTaggedQuery(a),s);return this.applyTaggedOperation_(i,l)}return[]},e.prototype.addEventRegistration=function(t,n){var r=t.path,o=null,a=!1;this.syncPointTree_.foreachOnPath(r,(function(e,t){var n=q.relativePath(e,r);o=o||t.getCompleteServerCache(n),a=a||t.hasCompleteView()}));var s,l=this.syncPointTree_.get(r);(l?(a=a||l.hasCompleteView(),o=o||l.getCompleteServerCache(q.Empty)):(l=new Tt,this.syncPointTree_=this.syncPointTree_.set(r,l)),null!=o)?s=!0:(s=!1,o=qe.EMPTY_NODE,this.syncPointTree_.subtree(r).foreachChild((function(e,t){var n=t.getCompleteServerCache(q.Empty);n&&(o=o.updateImmediateChild(e,n))})));var c=l.viewExistsForQuery(t);if(!c&&!t.getQueryParams().loadsAllData()){var u=e.makeQueryKey_(t);i.assert(!this.queryToTagMap.has(u),"View does not exist, but we have a tag");var d=e.getNextQueryTag_();this.queryToTagMap.set(u,d),this.tagToQueryMap.set(d,u)}var p=this.pendingWriteTree_.childWrites(r),h=l.addEventRegistration(t,n,p,o,s);if(!c&&!a){var f=l.viewForQuery(t);h=h.concat(this.setupListener_(t,f))}return h},e.prototype.removeEventRegistration=function(t,n,r){var o=this,i=t.path,a=this.syncPointTree_.get(i),s=[];
2if(a&&("default"===t.queryIdentifier()||a.viewExistsForQuery(t))){var l=a.removeEventRegistration(t,n,r);a.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(i));var c=l.removed;s=l.events;var u=-1!==c.findIndex((function(e){return e.getQueryParams().loadsAllData()})),d=this.syncPointTree_.findOnPath(i,(function(e,t){return t.hasCompleteView()}));if(u&&!d){var p=this.syncPointTree_.subtree(i);if(!p.isEmpty())for(var h=this.collectDistinctViewsForSubTree_(p),f=0;f<h.length;++f){var m=h[f],_=m.getQuery(),g=this.createListenerForView_(m);this.listenProvider_.startListening(e.queryForListening_(_),this.tagForQuery_(_),g.hashFn,g.onComplete)}}if(!d&&c.length>0&&!r)if(u){this.listenProvider_.stopListening(e.queryForListening_(t),null)}else c.forEach((function(t){var n=o.queryToTagMap.get(e.makeQueryKey_(t));o.listenProvider_.stopListening(e.queryForListening_(t),n)}));this.removeTags_(c)}return s},e.prototype.calcCompleteEventCache=function(e,t){var n=this.pendingWriteTree_,r=this.syncPointTree_.findOnPath(e,(function(t,n){var r=q.relativePath(t,e),o=n.getCompleteServerCache(r);if(o)return o}));return n.calcCompleteEventCache(e,r,t,!0)},e.prototype.collectDistinctViewsForSubTree_=function(e){return e.fold((function(e,t,n){if(t&&t.hasCompleteView())return[t.getCompleteView()];var r=[];return t&&(r=t.getQueryViews()),D(n,(function(e,t){r=r.concat(t)})),r}))},e.prototype.removeTags_=function(t){for(var n=0;n<t.length;++n){var r=t[n];if(!r.getQueryParams().loadsAllData()){var o=e.makeQueryKey_(r),i=this.queryToTagMap.get(o);this.queryToTagMap.delete(o),this.tagToQueryMap.delete(i)}}},e.queryForListening_=function(e){return e.getQueryParams().loadsAllData()&&
2!e.getQueryParams().isDefault()?e.getRef():e},e.prototype.setupListener_=function(t,n){var r=t.path,o=this.tagForQuery_(t),a=this.createListenerForView_(n),s=this.listenProvider_.startListening(e.queryForListening_(t),o,a.hashFn,a.onComplete),l=this.syncPointTree_.subtree(r);if(o)i.assert(!l.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var c=l.fold((function(e,t,n){if(!e.isEmpty()&&t&&t.hasCompleteView())return[t.getCompleteView().getQuery()];var r=[];return t&&(r=r.concat(t.getQueryViews().map((function(e){return e.getQuery()})))),D(n,(function(e,t){r=r.concat(t)})),r})),u=0;u<c.length;++u){var d=c[u];this.listenProvider_.stopListening(e.queryForListening_(d),this.tagForQuery_(d))}return s},e.prototype.createListenerForView_=function(e){var t=this,n=e.getQuery(),r=this.tagForQuery_(n);return{hashFn:function(){return(e.getServerCache()||qe.EMPTY_NODE).hash()},onComplete:function(e){if("ok"===e)return r?t.applyTaggedListenComplete(n.path,r):t.applyListenComplete(n.path);var o=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");var r=new Error(e+" at "+t.path.toString()+": "+n);return r.code=e.toUpperCase(),r}(e,n);return t.removeEventRegistration(n,null,o)}}},e.makeQueryKey_=function(e){return e.path.toString()+"$"+e.queryIdentifier()},e.parseQueryKey_=function(e){var t=e.indexOf("$");return i.assert(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new q(e.substr(0,t))}},e.prototype.queryKeyForTag_=function(e){return this.tagToQueryMap.get(e)},e.prototype.tagForQuery_=function(t){var n=e.makeQueryKey_(t);return this.queryToTagMap.get(n)},e.getNextQueryTag_=function(){return e.nextQueryTag_++},e.prototype.applyTaggedOperation_=function(e,t){var n=this.syncPointTree_.get(e);i.assert(n,"Missing sync point for query tag that we're tracking");var r=this.pendingWriteTree_.childWrites(e);return n.applyOperation(t,r,null)},e.prototype.applyOperationToSyncPoints_=function(e){return this.applyOperationHelper_(e,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(q.Empty))},e.prototype.applyOperationHelper_=function(e,t,n,r){if(e.path.isEmpty())return this.applyOperationDescendantsHelper_(e,t,n,r);var o=t.get(q.Empty);null==n&&null!=o&&(n=o.getCompleteServerCache(q.Empty));var i=[],a=e.path.getFront(),s=e.operationForChild(a),l=t.children.get(a);if(l&&s){var c=n?n.getImmediateChild(a):null,u=r.child(a);i=i.concat(this.applyOperationHelper_(s,l,c,u))}return o&&(i=i.concat(o.applyOperation(e,r,n))),i},e.prototype.applyOperationDescendantsHelper_=function(e,t,n,r){var o=this,i=t.get(q.Empty);null==n&&null!=i&&(n=i.getCompleteServerCache(q.Empty));var a=[];return t.children.inorderTraversal((function(t,i){var s=n?n.getImmediateChild(t):null,l=r.child(t),c=e.operationForChild(t);c&&(a=a.concat(o.applyOperationDescendantsHelper_(c,i,s,l)))})),i&&(a=a.concat(i.applyOperation(e,r,n))),a},e.nextQueryTag_=1,e}(),Dt=function(){function e(){this.rootNode_=qe.EMPTY_NODE}return e.prototype.getNode=function(e){return this.rootNode_.getChild(e)},e.prototype.updateSnapshot=function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)},e}(),Mt=function(){function e(){this.counters_={}}return e.prototype.incrementCounter=function(e,t){void 0===t&&(t=1),i.contains(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t},e.prototype.get=function(){return i.deepCopy(this.counters_)},e}(),Lt=function(){function e(){}return e.getCollection=function(e){var t=e.toString();return this.collections_[t]||(this.collections_[t]=new Mt),this.collections_[t]},e.getOrCreateReporter=function(e,t){var n=e.toString();return this.reporters_[n]||(this.reporters_[n]=t()),this.reporters_[n]},e.collections_={},e.reporters_={},e}(),Ft=function(){function e(e){this.collection_=e,this.last_=null}return e.prototype.get=function(){var e=this.collection_.get(),t=o.__assign({},e);return this.last_&&D(this.last_,(function(e,n){t[e]=t[e]-n})),this.last_=e,t},e}(),zt=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new Ft(e);var n=1e4+2e4*Math.random();B(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.includeStat=function(e){this.statsToReport_[e]=!0},e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},r=!1;D(t,(function(t,o){o>0&&i.contains(e.statsToReport_,t)&&(n[t]=o,r=!0)})),r&&this.server_.reportStats(n),B(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}(),Bt=function(){function e(){this.eventLists_=[],this.recursionDepth_=0}return e.prototype.queueEvents=function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n],o=r.getPath();null===t||o.equals(t.getPath())||(this.eventLists_.push(t),t=null),null===t&&(t=new qt(o)),t.add(r)}t&&this.eventLists_.push(t)},e.prototype.raiseEventsAtPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.equals(e)}))},e.prototype.raiseEventsForChangedPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.contains(e)||e.contains(t)}))},e.prototype.raiseQueuedEventsMatchingPredicate_=function(e){this.recursionDepth_++;for(var t=!0,n=0;n<this.eventLists_.length;n++){var r=this.eventLists_[n];if(r)e(r.getPath())?(this.eventLists_[n].raise(),this.eventLists_[n]=null):t=!1}t&&(this.eventLists_=[]),this.recursionDepth_--},e}(),qt=function(){function e(e){this.path_=e,this.events_=[]}
2return e.prototype.add=function(e){this.events_.push(e)},e.prototype.raise=function(){for(var e=0;e<this.events_.length;e++){var t=this.events_[e];if(null!==t){this.events_[e]=null;var n=t.getEventRunner();y&&x("event: "+t.toString()),z(n)}}},e.prototype.getPath=function(){return this.path_},e}(),Ut=function(){function e(e){this.allowedEvents_=e,this.listeners_={},i.assert(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(this.listeners_[e]))for(var r=o.__spread(this.listeners_[e]),i=0;i<r.length;i++)r[i].callback.apply(r[i].context,t)},e.prototype.on=function(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});var r=this.getInitialEvent(e);r&&t.apply(n,r)},e.prototype.off=function(e,t,n){this.validateEventType_(e);for(var r=this.listeners_[e]||[],o=0;o<r.length;o++)if(r[o].callback===t&&(!n||n===r[o].context))return void r.splice(o,1)},e.prototype.validateEventType_=function(e){i.assert(this.allowedEvents_.find((function(t){return t===e})),"Unknown event: "+e)},e}(),Ht=function(e){function t(){var t,n,r=e.call(this,["visible"])||this;return"undefined"!==typeof document&&"undefined"!==typeof document.addEventListener&&("undefined"!==typeof document.hidden?(n="visibilitychange",t="hidden"):"undefined"!==typeof document.mozHidden?(n="mozvisibilitychange",t="mozHidden"):"undefined"!==typeof document.msHidden?(n="msvisibilitychange",t="msHidden"):"undefined"!==typeof document.webkitHidden&&(n="webkitvisibilitychange",t="webkitHidden")),r.visible_=!0,n&&document.addEventListener(n,(function(){var e=!document[t];e!==r.visible_&&(r.visible_=e,r.trigger("visible",e))}),!1),r}return o.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return i.assert("visible"===e,"Unknown event type: "+e),[this.visible_]},t}(Ut),Wt=function(e){function t(){var t=e.call(this,["online"])||this;return t.online_=!0,"undefined"===typeof window||"undefined"===typeof window.addEventListener||i.isMobileCordova()||(window.addEventListener("online",(function(){t.online_||(t.online_=!0,t.trigger("online",!0))}),!1),window.addEventListener("offline",(function(){t.online_&&(t.online_=!1,t.trigger("online",!1))}),!1)),t}return o.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return i.assert("online"===e,"Unknown event type: "+e),[this.online_]},t.prototype.currentlyOnline=function(){return this.online_},t}(Ut),Vt=function(){function e(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return e.prototype.closeAfter=function(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},e.prototype.handleResponse=function(e,t){var n=this;this.pendingResponses[e]=t;for(var r=function(){var e=o.pendingResponses[o.currentResponseNum];delete o.pendingResponses[o.currentResponseNum];for(var t=function(t){e[t]&&z((function(){n.onMessage_(e[t])}))},r=0;r<e.length;++r)t(r);if(o.currentResponseNum===o.closeAfterResponse)return o.onClose&&(o.onClose(),o.onClose=null),"break";o.currentResponseNum++},o=this;this.pendingResponses[this.currentResponseNum];){if("break"===r())break}},e}(),Kt="start",Gt=function(){function e(e,t,n,r,o){this.connId=e,this.repoInfo=t,this.applicationId=n,this.transportSessionId=r,this.lastSessionId=o,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=k(e),this.stats_=Lt.getCollection(t),this.urlFn=function(e){return t.connectionURL(K,e)}}return e.prototype.open=function(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new Vt(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null}),Math.floor(3e4)),function(e){if(i.isNodeSdk()||"complete"===document.readyState)e();else{var t=!1,n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}}((function(){if(!n.isClosed_){n.scriptTagHolder=new Yt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.__read(e,5),i=r[0],a=r[1],s=r[2];r[3],r[4];if(n.incrementIncomingBytes_(e),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,i===Kt)n.id=a,n.password=s;else{if("close"!==i)throw new Error("Unrecognized command received: "+i);a?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(a,(function(){n.onClosed_()}))):n.onClosed_()}}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.__read(e,2),i=r[0],a=r[1];n.incrementIncomingBytes_(e),n.myPacketOrderer.handleResponse(i,a)}),(function(){n.onClosed_()}),n.urlFn);var e={};e[Kt]="t",e.ser=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=n.scriptTagHolder.uniqueCallbackIdentifier),e.v=H,n.transportSessionId&&(e.s=n.transportSessionId),n.lastSessionId&&(e.ls=n.lastSessionId),n.applicationId&&(e.p=n.applicationId),"undefined"!==typeof location&&location.href&&-1!==location.href.indexOf(W)&&(e.r="f");var t=n.urlFn(e);n.log_("Connecting via long-poll to "+t),n.scriptTagHolder.addTag(t,(function(){}))}}))},e.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},e.forceAllow=function(){e.forceAllow_=!0},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){return!i.isNodeSdk()&&(!!e.forceAllow_||!e.forceDisallow_&&"undefined"!==typeof document&&null!=document.createElement&&!("object"===typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))&&!("object"===typeof Windows&&"object"===typeof Windows.UI))},e.prototype.markConnectionHealthy=function(){},e.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},e.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},e.prototype.send=function(e){var t=i.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);for(var n=i.base64Encode(t),r=O(n,1840),o=0;o<r.length;o++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[o]),this.curSegmentNum++},e.prototype.addDisconnectPingFrame=function(e,t){if(!i.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var n={dframe:"t"};n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},e.prototype.incrementIncomingBytes_=function(e){var t=i.stringify(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)},e}(),Yt=function(){function e(t,n,r,o){if(this.onDisconnect=r,this.urlFn=o,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,i.isNodeSdk())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=_(),window["pLPCommand"+this.uniqueCallbackIdentifier]=t,window["pRTLPCB"+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createI
2Frame_();var a="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,11))a='<script>document.domain="'+document.domain+'";<\/script>';var s="<html><body>"+a+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(s),this.myIFrame.doc.close()}catch(l){x("frame writing exception"),l.stack&&x(l.stack),x(l)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||x("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var e=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==e.myIFrame&&(document.body.removeChild(e.myIFrame),e.myIFrame=null)}),Math.floor(0)));var t=this.onDisconnect;t&&(this.onDisconnect=null,t())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;for(var t=this.urlFn(e),n="",r=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;var o=this.pendingSegs.shift();n=n+"&seg"+r+"="+o.seg+"&ts"+r+"="+o.ts+"&d"+r+"="+o.d,r++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t);var r=function(){n.outstandingRequests.delete(t),n.newRequest_()},o=setTimeout(r,Math.floor(25e3));this.addTag(e,(function(){clearTimeout(o),r()}))},e.prototype.addTag=function(e,t){var n=this;i.isNodeSdk()?this.doNodeLongPoll(e,t):setTimeout((function(){try{if(!n.sendNewPolls)return;var r=n.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){var e=r.readyState;e&&"loaded"!==e&&"complete"!==e||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),t())},r.onerror=function(){x("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(o){}}),Math.floor(1))},e}(),Qt="";var Xt=null;"undefined"!==typeof MozWebSocket?Xt=MozWebSocket:"undefined"!==typeof WebSocket&&(Xt=WebSocket);var $t=function(){function e(t,n,r,o,i){this.connId=t,this.applicationId=r,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=k(this.connId),this.stats_=Lt.getCollection(n),this.connURL=e.connectionURL_(n,o,i)}return e.connectionURL_=function(e,t,n){var r={};return r.v=H,!i.isNodeSdk()&&"undefined"!==typeof location&&location.href&&-1!==location.href.indexOf(W)&&(r.r="f"),t&&(r.s=t),n&&(r.ls=n),e.connectionURL(V,r)},e.prototype.open=function(e,t){var n=this;this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,h.set("previous_websocket_failure",!0);try{if(i.isNodeSdk()){var r=i.CONSTANTS.NODE_ADMIN?"AdminNode":"Node",o={headers:{"User-Agent":"Firebase/5/"+Qt+"/"+process.platform+"/"+r,"X-Firebase-GMPID":this.applicationId||""}},a={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0},s=0===this.connURL.indexOf("wss://")?a.HTTPS_PROXY||a.https_proxy:a.HTTP_PROXY||a.http_proxy;s&&(o.proxy={origin:s}),this.mySock=new Xt(this.connURL,[],o)}else{o={headers:{"X-Firebase-GMPID":this.applicationId||""}};this.mySock=new Xt(this.connURL,[],o)}}catch(c){this.log_("Error instantiating WebSocket.");var l=c.message||c.data;return l&&this.log_(l),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0}
2,this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(e){n.handleIncomingFrame(e)},this.mySock.onerror=function(e){n.log_("WebSocket error.  Closing connection.");var t=e.message||e.data;t&&n.log_(t),n.onClosed_()}},e.prototype.start=function(){},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){var t=!1;if("undefined"!==typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(t=!0)}return!t&&null!==Xt&&!e.forceDisallow_},e.previouslyFailed=function(){return h.isInMemoryStorage||!0===h.get("previous_websocket_failure")},e.prototype.markConnectionHealthy=function(){h.remove("previous_websocket_failure")},e.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length===this.totalFrames){var t=this.frames.join("");this.frames=null;var n=i.jsonEval(t);this.onMessage(n)}},e.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},e.prototype.extractFrameCount_=function(e){if(i.assert(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},e.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},e.prototype.send=function(e){this.resetKeepAlive();var t=i.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=O(t,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},e.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},e.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},e.prototype.resetKeepAlive=function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval((function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()}),Math.floor(45e3))},e.prototype.sendString_=function(e){try{this.mySock.send(e)}catch(t){this.log_("Exception thrown from WebSocket.send():",t.message||t.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},e.responsesRequiredToBeHealthy=2,e.healthyTimeout=3e4,e}(),Jt=function(){function e(e){this.initTransports_(e)}return Object.defineProperty(e,"ALL_TRANSPORTS",{get:function(){return[Gt,$t]},enumerable:!1,configurable:!0}),e.prototype.initTransports_=function(t){var n,r,i=$t&&$t.isAvailable(),a=i&&!$t.previouslyFailed();if(t.webSocketOnly&&(i||A("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),a=!0),a)this.transports_=[$t];else{var s=this.transports_=[];try{for(var l=o.__values(e.ALL_TRANSPORTS),c=l.next();!c.done;c=l.next()){var u=c.value;u&&u.isAvailable()&&s.push(u)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}},e.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}(),Zt=function(){function e(e,t,n,r,o,i,a,s){this.id=e,this.repoInfo_=t,this.applicationId_=n,this.onMessage_=r,this.onReady_=o,this.onDisconnect_=i,this.onKill_=a,this.lastSessionId=s,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=k("c:"+this.id+":"),this.transportManager_=new Jt(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,this.applicationId_,void 0,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){e.conn_&&e.conn_.open(n,r)}),Math.floor(0));var o=t.healthyTimeout||0;o>0&&(this.healthyTimeout_=B((function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>
2102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes.  Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes.  Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))}),Math.floor(o)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!==t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){var t={t:"d",d:e};this.sendData_(t)},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=I("t",e),n=I("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=I("t",e),n=I("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},e.prototype.onControl_=function(e){var t=I("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var r=0;r<this.pendingDataMessages.length;++r)this.onDataMessage_(this.pendingDataMessages[r]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?S("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):S("Unknown control packet command: "+t)}},e.prototype.onHandshake_=function(e){var t=e.ts,n=e.v,r=e.h;this.sessionId=e.s,this.repoInfo_.updateHost(r),0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),H!==n&&A("Protocol version mismatch detected"),this.tryStartUpgrade_())},e.prototype.tryStartUpgrade_=function(){var e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)},e.prototype.startUpgrade_=function(e){var t=this;this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),B((function(){t.secondaryConn_&&(t.log_("Timed out trying to upgrade."),t.secondaryConn_.close())}),Math.floor(6e4))},e.prototype.onReset_=function(e){this.log_("Reset packet received.  New host: "+e),this.repoInfo_.updateHost(e),1===this.state_?this.close():(this.closeConnections_(),this.start_())},e.prototype.onConnectionEstablished_=function(e,t){var n=this;this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):B((function(){n.sendPingOnPrimaryIfNecessary_()}),Math.floor(5e3))},e.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},e.prototype.onSecondaryConnectionLost_=function(){var e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()},e.prototype.onConnectionLost_=function(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(h.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},e.prototype.onConnectionShutdown_=function(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()},e.prototype.sendData_=function(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)},e.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},e.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},e}(),en=function(){function e(){}return e.prototype.put=function(e,t,n,r){},e.prototype.merge=function(e,t,n,r){},e.prototype.refreshAuthToken=function(e){},e.prototype.onDisconnectPut=function(e,t,n){},e.prototype.onDisconnectMerge=function(e,t,n){},e.prototype.onDisconnectCancel=function(e,t){},e.prototype.reportStats=function(e){},e}(),tn=1e3,nn=function(e){function t(n,r,o,a,s,l,c){var u=e.call(this)||this;if(u.repoInfo_=n,u.applicationId_=r,u.onDataUpdate_=o,u.onConnectStatus_=a,u.onServerInfoUpdate_=s,u.authTokenProvider_=l,u.authOverride_=c,u.id=t.nextPersistentConnectionId_++,u.log_=k("p:"+u.id+":"),u.interruptReasons_={},u.listens=new Map,u.outstandingPuts_=[],u.outstandingPutCount_=0,u.onDisconnectRequestQueue_=[],u.connected_=!1,u.reconnectDelay_=tn,u.maxReconnectDelay_=3e5,u.securityDebugCallback_=null,u.lastSessionId=null,u.establishConnectionTimer_=null,u.visible_=!1,u.requestCBHash_={},u.requestNumber_=0,u.realtime_=null,u.authToken_=null,u.forceTokenRefresh_=!1,u.invali
2dAuthTokenCount_=0,u.firstConnection_=!0,u.lastConnectionAttemptTime_=null,u.lastConnectionEstablishedTime_=null,c&&!i.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return u.scheduleConnect_(0),Ht.getInstance().on("visible",u.onVisible_,u),-1===n.host.indexOf("fblocal")&&Wt.getInstance().on("online",u.onOnline_,u),u}return o.__extends(t,e),t.prototype.sendRequest=function(e,t,n){var r=++this.requestNumber_,o={r:r,a:e,b:t};this.log_(i.stringify(o)),i.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(o),n&&(this.requestCBHash_[r]=n)},t.prototype.listen=function(e,t,n,r){var o=e.queryIdentifier(),a=e.path.toString();this.log_("Listen called for "+a+" "+o),this.listens.has(a)||this.listens.set(a,new Map),i.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),i.assert(!this.listens.get(a).has(o),"listen() called twice for same path/queryId.");var s={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(a).set(o,s),this.connected_&&this.sendListen_(s)},t.prototype.sendListen_=function(e){var n=this,r=e.query,o=r.path.toString(),i=r.queryIdentifier();this.log_("Listen on "+o+" for "+i);var a={p:o};e.tag&&(a.q=r.queryObject(),a.t=e.tag),a.h=e.hashFn(),this.sendRequest("q",a,(function(a){var s=a.d,l=a.s;t.warnOnListenWarnings_(s,r),(n.listens.get(o)&&n.listens.get(o).get(i))===e&&(n.log_("listen response",a),"ok"!==l&&n.removeListen_(o,i),e.onComplete&&e.onComplete(l,s))}))},t.warnOnListenWarnings_=function(e,t){if(e&&"object"===typeof e&&i.contains(e,"w")){var n=i.safeGet(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+t.getQueryParams().getIndex().toString()+'"',o=t.path.toString();A("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+r+" at "+o+" to your security rules for better performance.")}}},t.prototype.refreshAuthToken=function(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(function(){})),this.reduceReconnectDelayIfAdminCredential_(e)},t.prototype.reduceReconnectDelayIfAdminCredential_=function(e){(e&&40===e.length||i.isAdmin(e))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},t.prototype.tryAuth=function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=i.isValidFormat(t)?"auth":"gauth",r={cred:t};null===this.authOverride_?r.noauth=!0:"object"===typeof this.authOverride_&&(r.authvar=this.authOverride_),this.sendRequest(n,r,(function(n){var r=n.s,o=n.d||"error";e.authToken_===t&&("ok"===r?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(r,o))}))}},t.prototype.unlisten=function(e,t){var n=e.path.toString(),r=e.queryIdentifier();this.log_("Unlisten called for "+n+" "+r),i.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e.queryObject(),t)},t.prototype.sendUnlisten_=function(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);var o={p:e};r&&(o.q=n,o.t=r),this.sendRequest("n",o)},t.prototype.onDisconnectPut=function(e,t,n){this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})},t.prototype.onDisconnectMerge=function(e,t,n){this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})},t.prototype.onDisconnectCancel=function(e,t){this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})},t.prototype.sendOnDisconnect_=function(e,t,n,r){var o={p:t,d:n};this.log_("onDisconnect "+e,o),this.sendRequest(e,o,(function(e){r&&setTimeout((function(){r(e.s,e.d)}),Math.floor(0))}))},t.prototype.put=function(e,t,n,r){this.putInternal("p",e,t,n,r)},t.prototype.merge=function(e,t,n,r){this.putInternal("m",e,t,n,r)},t.prototype.putInternal=function(e,t,n,r,o){var i={p:t,d:n};void 0!==o&&(i.h=o),this.outstandingPuts_.push({action:e,request:i,onComplete:r}),this.outstandingPutCount_++;var a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+t)},t.prototype.sendPut_=function(e){var t=this,n=this.outstandingPuts_[e].action,r=this.outstandingPuts_[e].request,o=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,r,(function(r){t.log_(n+" response",r),delete t.outstandingPuts_[e],t.outstandingPutCount_--,0===t.outstandingPutCount_&&(t.outstandingPuts_=[]),o&&o(r.s,r.d)}))},t.prototype.reportStats=function(e){var t=this;if(this.connected_){var n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,(function(e){if("ok"!==e.s){var n=e.d;t.log_("reportStats","Error sending stats: "+n)}}))}},t.prototype.onDataMessage_=function(e){if("r"in e){this.log_("from server: "+i.stringify(e));var t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}},t.prototype.onDataPush_=function(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):S("Unrecognized action received from server: "+i.stringify(e)+"\nAre you using the latest client?")},t.prototype.onReady_=function(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},t.prototype.scheduleConnect_=function(e){var t=this;i.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((function(){t.establishConnectionTimer_=null,t.establishConnection_()}),Math.floor(e))},t.prototype.onVisible_=function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=tn,this.realtime_||this.scheduleConnect_(0)),this.visible_=e},t.prototype.onOnline_=function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=tn,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())},t.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=tn),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var e=(new Date).getTime()-this.lastConnectionAttemptTime_,t=Math.max(0,this.reconnectDelay_-e);
2t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),o=this.id+":"+t.nextConnectionId_++,a=this,s=this.lastSessionId,l=!1,c=null,u=function(){c?c.close():(l=!0,r())};this.realtime_={close:u,sendRequest:function(e){i.assert(c,"sendRequest call when we're not connected not allowed."),c.sendRequest(e)}};var d=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(d).then((function(t){l?x("getToken() completed but was canceled"):(x("getToken() completed. Creating connection."),a.authToken_=t&&t.accessToken,c=new Zt(o,a.repoInfo_,a.applicationId_,e,n,r,(function(e){A(e+" ("+a.repoInfo_.toString()+")"),a.interrupt("server_kill")}),s))})).then(null,(function(e){a.log_("Failed to get token: "+e),l||(i.CONSTANTS.NODE_ADMIN&&A(e),u())}))}},t.prototype.interrupt=function(e){x("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){x("Resuming connection for reason: "+e),delete this.interruptReasons_[e],i.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=tn,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e<this.outstandingPuts_.length;e++){var t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},t.prototype.onListenRevoked_=function(e,t){var n;n=t?t.map((function(e){return R(e)})).join("$"):"default";var r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")},t.prototype.removeListen_=function(e,t){var n,r=new q(e).toString();if(this.listens.has(r)){var o=this.listens.get(r);n=o.get(t),o.delete(t),0===o.size&&this.listens.delete(r)}else n=void 0;return n},t.prototype.onAuthRevoked_=function(e,t){x("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e,t,n,r;this.tryAuth();try{for(var i=o.__values(this.listens.values()),a=i.next();!a.done;a=i.next()){var s=a.value;try{for(var l=(n=void 0,o.__values(s.values())),c=l.next();!c.done;c=l.next()){var u=c.value;this.sendListen_(u)}}catch(h){n={error:h}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(f){e={error:f}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}for(var d=0;d<this.outstandingPuts_.length;d++)this.outstandingPuts_[d]&&this.sendPut_(d);for(;this.onDisconnectRequestQueue_.length;){var p=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(p.action,p.pathString,p.data,p.onComplete)}},t.prototype.sendConnectStats_=function(){var e={},t="js";i.CONSTANTS.NODE_ADMIN?t="admin_node":i.CONSTANTS.NODE_CLIENT&&(t="node"),e["sdk."+t+"."+Qt.replace(/\./g,"-")]=1,i.isMobileCordova()?e["framework.cordova"]=1:i.isReactNative()&&(e["framework.reactnative"]=1),this.reportStats(e)},t.prototype.shouldReconnect_=function(){var e=Wt.getInstance().currentlyOnline();return i.isEmpty(this.interruptReasons_)&&e},t.nextPersistentConnectionId_=0,t.nextConnectionId_=0,t}
2(en),rn=function(e){function t(t,n,r){var o=e.call(this)||this;return o.repoInfo_=t,o.onDataUpdate_=n,o.authTokenProvider_=r,o.log_=k("p:rest:"),o.listens_={},o}return o.__extends(t,e),t.prototype.reportStats=function(e){throw new Error("Method not implemented.")},t.getListenId_=function(e,t){return void 0!==t?"tag$"+t:(i.assert(e.getQueryParams().isDefault(),"should have a tag if it's not a default query."),e.path.toString())},t.prototype.listen=function(e,n,r,o){var a=this,s=e.path.toString();this.log_("Listen called for "+s+" "+e.queryIdentifier());var l=t.getListenId_(e,r),c={};this.listens_[l]=c;var u=e.getQueryParams().toRestQueryStringParameters();this.restRequest_(s+".json",u,(function(e,t){var n=t;(404===e&&(n=null,e=null),null===e&&a.onDataUpdate_(s,n,!1,r),i.safeGet(a.listens_,l)===c)&&o(e?401===e?"permission_denied":"rest_error:"+e:"ok",null)}))},t.prototype.unlisten=function(e,n){var r=t.getListenId_(e,n);delete this.listens_[r]},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var r=this;void 0===t&&(t={}),t.format="export",this.authTokenProvider_.getToken(!1).then((function(o){var a=o&&o.accessToken;a&&(t.auth=a);var s=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+e+"?ns="+r.repoInfo_.namespace+i.querystring(t);r.log_("Sending REST request for "+s);var l=new XMLHttpRequest;l.onreadystatechange=function(){if(n&&4===l.readyState){r.log_("REST Response for "+s+" received. status:",l.status,"response:",l.responseText);var e=null;if(l.status>=200&&l.status<300){try{e=i.jsonEval(l.responseText)}catch(t){A("Failed to parse JSON response for "+s+": "+l.responseText)}n(null,e)}else 401!==l.status&&404!==l.status&&A("Got unsuccessful REST response for "+s+" Status: "+l.status),n(l.status);n=null}},l.open("GET",s,!0),l.send()}))},t}(en),on="repo_interrupt",an=function(){function e(e,t,n,r){var o=this;if(this.repoInfo_=e,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Bt,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new ct,this.persistentConnection_=null,this.stats_=Lt.getCollection(e),t||("object"===typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)this.server_=new rn(this.repoInfo_,this.onDataUpdate_.bind(this),r),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var a=n.options.databaseAuthVariableOverride;if("undefined"!==typeof a&&null!==a){if("object"!==typeof a)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{i.stringify(a)}catch(s){throw new Error("Invalid authOverride provided: "+s)}}this.persistentConnection_=new nn(this.repoInfo_,n.options.appId,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),r,a),this.server_=this.persistentConnection_}r.addTokenChangeListener((function(e){o.server_.refreshAuthToken(e)})),this.statsReporter_=Lt.getOrCreateReporter(e,(function(){return new zt(o.stats_,o.server_)})),this.transactionsInit_(),this.infoData_=new Dt,this.infoSyncTree_=new Ot({startListening:function(e,t,n,r){var i=[],a=o.infoData_.getNode(e.path);return a.isEmpty()||(i=o.infoSyncTree_.applyServerOverwrite(e.path,a),setTimeout((function(){r("ok")}),0)),i},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new Ot({startListening:function(e,t,n,r){return o.server_.listen(e,n,t,(function(t,n){var i=r(t,n);o.eventQueue_.raiseEventsForChangedPath(e.path,i)})),[]},stopListening:function(e,t){o.server_.unlisten(e,t)}})}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e.prototype.name=function(){return this.repoInfo_.namespace},e.prototype.serverTime=function(){var e=this.infoData_.getNode(new q(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+e},e.prototype.generateServerValues=function(){return(e=(e={timestamp:this.serverTime()})||{}).timestamp=e.timestamp||(new Date).getTime(),e;var e},e.prototype.onDataUpdate_=function(e,t,n,r){this.dataUpdateCount++;var o=new q(e);t=this.interceptServerDataCallback_?this.interceptServerDataCallback_(e,t):t;var a=[];if(r)if(n){var s=i.map(t,(function(e){return He(e)}));a=this.serverSyncTree_.applyTaggedQueryMerge(o,s,r)}else{var l=He(t);a=this.serverSyncTree_.applyTaggedQueryOverwrite(o,l,r)}else if(n){var c=i.map(t,(function(e){return He(e)}));a=this.serverSyncTree_.applyServerMerge(o,c)}else{var u=He(t);a=this.serverSyncTree_.applyServerOverwrite(o,u)}var d=o;a.length>0&&(d=this.rerunTransactions_(o)),this.eventQueue_.raiseEventsForChangedPath(d,a)},e.prototype.interceptServerData_=function(e){this.interceptServerDataCallback_=e},e.prototype.onConnectStatus_=function(e){this.updateInfo_("connected",e),!1===e&&this.runOnDisconnectEvents_()},e.prototype.onServerInfoUpdate_=function(e){var t=this;D(e,(function(e,n){t.updateInfo_(e,n)}))},e.prototype.updateInfo_=function(e,t){var n=new q("/.info/"+e),r=He(t);this.infoData_.updateSnapshot(n,r);var o=this.infoSyncTree_.applyServerOverwrite(n,r);this.eventQueue_.raiseEventsForChangedPath(n,o)},e.prototype.getNextWriteId_=function(){return this.nextWriteId_++},e.prototype.setWithPriority=function(e,t,n,r){var o=this;this.log_("set",{path:e.toString(),value:t,priority:n});var i=this.generateServerValues(),a=He(t,n),s=this.serverSyncTree_.calcCompleteEventCache(e),l=at(a,s,i),c=this.getNextWriteId_(),u=this.serverSyncTree_.applyUserOverwrite(e,l,c,!0);this.eventQueue_.queueEvents(u),this.server_.put(e.toString(),a.val(!0),(function(t,n){var i="ok"===t;i||A("set at "+e+" failed: "+t);var a=o.serverSyncTree_.ackUserWrite(c,!i);o.eventQueue_.raiseEventsForChangedPath(e,a),o.callOnCompleteCallback(r,t,n)}));var d=this.abortTransactions_(e);this.rerunTransactions_(d),this.eventQueue_.raiseEventsForChangedPath(d,[])},e.prototype.update=function(e,t,n){var r=this;this.log_("update",{path:e.toString(),value:t});var o=!0,i=this.generateServerValues(),a={};if(D(t,(function(t,n){o=!1,a[t]=it(e.child(t),He(n),r.serverSyncTree_,i)}
2)),o)x("update() called with empty data.  Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var s=this.getNextWriteId_(),l=this.serverSyncTree_.applyUserMerge(e,a,s);this.eventQueue_.queueEvents(l),this.server_.merge(e.toString(),t,(function(t,o){var i="ok"===t;i||A("update at "+e+" failed: "+t);var a=r.serverSyncTree_.ackUserWrite(s,!i),l=a.length>0?r.rerunTransactions_(e):e;r.eventQueue_.raiseEventsForChangedPath(l,a),r.callOnCompleteCallback(n,t,o)})),D(t,(function(t){var n=r.abortTransactions_(e.child(t));r.rerunTransactions_(n)})),this.eventQueue_.raiseEventsForChangedPath(e,[])}},e.prototype.runOnDisconnectEvents_=function(){var e=this;this.log_("onDisconnectEvents");var t=this.generateServerValues(),n=new ct;this.onDisconnect_.forEachTree(q.Empty,(function(r,o){var i=it(r,o,e.serverSyncTree_,t);n.remember(r,i)}));var r=[];n.forEachTree(q.Empty,(function(t,n){r=r.concat(e.serverSyncTree_.applyServerOverwrite(t,n));var o=e.abortTransactions_(t);e.rerunTransactions_(o)})),this.onDisconnect_=new ct,this.eventQueue_.raiseEventsForChangedPath(q.Empty,r)},e.prototype.onDisconnectCancel=function(e,t){var n=this;this.server_.onDisconnectCancel(e.toString(),(function(r,o){"ok"===r&&n.onDisconnect_.forget(e),n.callOnCompleteCallback(t,r,o)}))},e.prototype.onDisconnectSet=function(e,t,n){var r=this,o=He(t);this.server_.onDisconnectPut(e.toString(),o.val(!0),(function(t,i){"ok"===t&&r.onDisconnect_.remember(e,o),r.callOnCompleteCallback(n,t,i)}))},e.prototype.onDisconnectSetWithPriority=function(e,t,n,r){var o=this,i=He(t,n);this.server_.onDisconnectPut(e.toString(),i.val(!0),(function(t,n){"ok"===t&&o.onDisconnect_.remember(e,i),o.callOnCompleteCallback(r,t,n)}))},e.prototype.onDisconnectUpdate=function(e,t,n){var r=this;if(i.isEmpty(t))return x("onDisconnect().update() called with empty data.  Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(e.toString(),t,(function(o,i){"ok"===o&&D(t,(function(t,n){var o=He(n);r.onDisconnect_.remember(e.child(t),o)})),r.callOnCompleteCallback(n,o,i)}))},e.prototype.addEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.addEventRegistration(e,t):this.serverSyncTree_.addEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.removeEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.removeEventRegistration(e,t):this.serverSyncTree_.removeEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt(on)},e.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume(on)},e.prototype.stats=function(e){if(void 0===e&&(e=!1),"undefined"!==typeof console){var t;e?(this.statsListener_||(this.statsListener_=new Ft(this.stats_)),t=this.statsListener_.get()):t=this.stats_.get();var n=Object.keys(t).reduce((function(e,t){return Math.max(t.length,e)}),0);D(t,(function(e,t){for(var r=e,o=e.length;o<n+2;o++)r+=" ";console.log(r+t)}))}},e.prototype.statsIncrementCounter=function(e){this.stats_.incrementCounter(e),this.statsReporter_.includeStat(e)},e.prototype.log_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";this.persistentConnection_&&(n=this.persistentConnection_.id+":"),x.apply(void 0,o.__spread([n],e))},e.prototype.callOnCompleteCallback=function(e,t,n){e&&z((function(){if("ok"===t)e(null);else{var r=(t||"error").toUpperCase(),o=r;n&&(o+=": "+n);var i=new Error(o);i.code=r,e(i)}}))},Object.defineProperty(e.prototype,"database",{get:function(){return this.__database||(this.__database=new vn(this))},enumerable:!1,configurable:!0}),e}(),sn=function(){function e(t){this.indexedFilter_=new wt(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return e.prototype.getStartPost=function(){return this.startPost_},e.prototype.getEndPost=function(){return this.endPost_},e.prototype.matches=function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0},e.prototype.updateChild=function(e,t,n,r,o,i){return this.matches(new _e(t,n))||(n=qe.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,o,i)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=qe.EMPTY_NODE);var r=t.withIndex(this.index_);r=r.updatePriority(qe.EMPTY_NODE);var o=this;return t.forEachChild(Te,(function(e,t){o.matches(new _e(e,t))||(r=r.updateImmediateChild(e,qe.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.indexedFilter_},e.prototype.getIndex=function(){return this.index_},e.getStartPost_=function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()},e.getEndPost_=function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()},e}
2(),ln=function(){function e(e){this.rangedFilter_=new sn(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft()}return e.prototype.updateChild=function(e,t,n,r,o,i){return this.rangedFilter_.matches(new _e(t,n))||(n=qe.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,r,o,i):this.fullLimitUpdateChild_(e,t,n,o,i)},e.prototype.updateFullNode=function(e,t,n){var r;if(t.isLeafNode()||t.isEmpty())r=qe.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){r=qe.EMPTY_NODE.withIndex(this.index_);var o=void 0;o=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var i=0;o.hasNext()&&i<this.limit_;){var a=o.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),a)<=0:this.index_.compare(a,this.rangedFilter_.getEndPost())<=0))break;r=r.updateImmediateChild(a.name,a.node),i++}}else{r=(r=t.withIndex(this.index_)).updatePriority(qe.EMPTY_NODE);var s=void 0,l=void 0,c=void 0;o=void 0;if(this.reverse_){o=r.getReverseIterator(this.index_),s=this.rangedFilter_.getEndPost(),l=this.rangedFilter_.getStartPost();var u=this.index_.getCompare();c=function(e,t){return u(t,e)}}else o=r.getIterator(this.index_),s=this.rangedFilter_.getStartPost(),l=this.rangedFilter_.getEndPost(),c=this.index_.getCompare();i=0;for(var d=!1;o.hasNext();){a=o.getNext();!d&&c(s,a)<=0&&(d=!0),d&&i<this.limit_&&c(a,l)<=0?i++:r=r.updateImmediateChild(a.name,qe.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},e.prototype.getIndex=function(){return this.index_},e.prototype.fullLimitUpdateChild_=function(e,t,n,r,o){var a;if(this.reverse_){var s=this.index_.getCompare();a=function(e,t){return s(t,e)}}else a=this.index_.getCompare();var l=e;i.assert(l.numChildren()===this.limit_,"");var c=new _e(t,n),u=this.reverse_?l.getFirstChild(this.index_):l.getLastChild(this.index_),d=this.rangedFilter_.matches(c);if(l.hasChild(t)){for(var p=l.getImmediateChild(t),h=r.getChildAfterChild(this.index_,u,this.reverse_);null!=h&&(h.name===t||l.hasChild(h.name));)h=r.getChildAfterChild(this.index_,h,this.reverse_);var f=null==h?1:a(h,c);if(d&&!n.isEmpty()&&f>=0)return null!=o&&o.trackChildChange(bt.childChangedChange(t,n,p)),l.updateImmediateChild(t,n);null!=o&&o.trackChildChange(bt.childRemovedChange(t,p));var m=l.updateImmediateChild(t,qe.EMPTY_NODE);return null!=h&&this.rangedFilter_.matches(h)?(null!=o&&o.trackChildChange(bt.childAddedChange(h.name,h.node)),m.updateImmediateChild(h.name,h.node)):m}return n.isEmpty()?e:d&&a(u,c)>=0?(null!=o&&(o.trackChildChange(bt.childRemovedChange(u.name,u.node)),o.trackChildChange(bt.childAddedChange(t,n))),l.updateImmediateChild(t,n).updateImmediateChild(u.name,qe.EMPTY_NODE)):e},e}(),cn=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Te}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},e.prototype.getIndexStartValue=function(){return i.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return i.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:j},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return i.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return i.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:T},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return i.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.copy_=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_
2=this.index_,t.viewFrom_=this.viewFrom_,t},e.prototype.limit=function(e){var t=this.copy_();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="",t},e.prototype.limitToFirst=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},e.prototype.limitToLast=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},e.prototype.startAt=function(e,t){var n=this.copy_();return n.startSet_=!0,void 0===e&&(e=null),n.indexStartValue_=e,null!=t?(n.startNameSet_=!0,n.indexStartName_=t):(n.startNameSet_=!1,n.indexStartName_=""),n},e.prototype.endAt=function(e,t){var n=this.copy_();return n.endSet_=!0,void 0===e&&(e=null),n.indexEndValue_=e,void 0!==t?(n.endNameSet_=!0,n.indexEndName_=t):(n.endNameSet_=!1,n.indexEndName_=""),n},e.prototype.orderBy=function(e){var t=this.copy_();return t.index_=e,t},e.prototype.getQueryObject=function(){var t=e.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[t.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[t.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[t.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[t.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[t.LIMIT]=this.limit_;var r=this.viewFrom_;""===r&&(r=this.isViewFromLeft()?t.VIEW_FROM_LEFT:t.VIEW_FROM_RIGHT),n[t.VIEW_FROM]=r}return this.index_!==Te&&(n[t.INDEX]=this.index_.toString()),n},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===Te},e.prototype.getNodeFilter=function(){return this.loadsAllData()?new wt(this.getIndex()):this.hasLimit()?new ln(this):new sn(this)},e.prototype.toRestQueryStringParameters=function(){var t,n=e.REST_QUERY_CONSTANTS_,r={};return this.isDefault()||(this.index_===Te?t=n.PRIORITY_INDEX:this.index_===Ke?t=n.VALUE_INDEX:this.index_===ye?t=n.KEY_INDEX:(i.assert(this.index_ instanceof Ge,"Unrecognized index type!"),t=this.index_.toString()),r[n.ORDER_BY]=i.stringify(t),this.startSet_&&(r[n.START_AT]=i.stringify(this.indexStartValue_),this.startNameSet_&&(r[n.START_AT]+=","+i.stringify(this.indexStartName_))),this.endSet_&&(r[n.END_AT]=i.stringify(this.indexEndValue_),this.endNameSet_&&(r[n.END_AT]+=","+i.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?r[n.LIMIT_TO_FIRST]=this.limit_:r[n.LIMIT_TO_LAST]=this.limit_)),r},e.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},e.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},e.DEFAULT=new e,e}(),un=function(e){function t(t,n){if(!(t instanceof an))throw new Error("new Reference() no longer supported - use app.database().");return e.call(this,t,n,cn.DEFAULT,!1)||this}return o.__extends(t,e),t.prototype.getKey=function(){return i.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},t.prototype.child=function(e){return i.validateArgCount("Reference.child",1,1,arguments.length),"number"===typeof e?e=String(e):e instanceof q||(null===this.path.getFront()?function(e,t,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),ue(e,t,n,r)}("Reference.child",1,e,!1):ue("Reference.child",1,e,!1)),new t(this.repo,this.path.child(e))},t.prototype.getParent=function(){i.validateArgCount("Reference.parent",0,0,arguments.length);var e=this.path.parent();return null===e?null:new t(this.repo,e)},t.prototype.getRoot=function(){i.validateArgCount("Reference.root",0,0,arguments.length);for(var e=this;null!==e.getParent();)e=e.getParent();return e},t.prototype.databaseProp=function(){return this.repo.database},t.prototype.set=function(e,t){i.validateArgCount("Reference.set",1,2,arguments.length),de("Reference.set",this.path),oe("Reference.set",1,e,this.path,!1),i.validateCallback("Reference.set",2,t,!0);var n=new i.Deferred;return this.repo.setWithPriority(this.path,e,null,n.wrapCallback(t)),n.promise},t.prototype.update=function(e,t){if(i.validateArgCount("Reference.update",1,2,arguments.length),de("Reference.update",this.path),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];
2e=n,A("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ae("Reference.update",1,e,this.path,!1),i.validateCallback("Reference.update",2,t,!0);var o=new i.Deferred;return this.repo.update(this.path,e,o.wrapCallback(t)),o.promise},t.prototype.setWithPriority=function(e,t,n){if(i.validateArgCount("Reference.setWithPriority",2,3,arguments.length),de("Reference.setWithPriority",this.path),oe("Reference.setWithPriority",1,e,this.path,!1),se("Reference.setWithPriority",2,t,!1),i.validateCallback("Reference.setWithPriority",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var r=new i.Deferred;return this.repo.setWithPriority(this.path,e,t,r.wrapCallback(n)),r.promise},t.prototype.remove=function(e){return i.validateArgCount("Reference.remove",0,1,arguments.length),de("Reference.remove",this.path),i.validateCallback("Reference.remove",1,e,!0),this.set(null,e)},t.prototype.transaction=function(e,t,n){if(i.validateArgCount("Reference.transaction",1,3,arguments.length),de("Reference.transaction",this.path),i.validateCallback("Reference.transaction",1,e,!1),i.validateCallback("Reference.transaction",2,t,!0),function(e,t,n,r){if((!r||void 0!==n)&&"boolean"!==typeof n)throw new Error(i.errorPrefix(e,t,r)+"must be a boolean.")}("Reference.transaction",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===n&&(n=!0);var r=new i.Deferred;"function"===typeof t&&r.promise.catch((function(){}));return this.repo.startTransaction(this.path,e,(function(e,n,o){e?r.reject(e):r.resolve(new fe(n,o)),"function"===typeof t&&t(e,n,o)}),n),r.promise},t.prototype.setPriority=function(e,t){i.validateArgCount("Reference.setPriority",1,2,arguments.length),de("Reference.setPriority",this.path),se("Reference.setPriority",1,e,!1),i.validateCallback("Reference.setPriority",2,t,!0);var n=new i.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),e,null,n.wrapCallback(t)),n.promise},t.prototype.push=function(e,t){i.validateArgCount("Reference.push",0,2,arguments.length),de("Reference.push",this.path),oe("Reference.push",1,e,this.path,!0),i.validateCallback("Reference.push",2,t,!0);var n,r=this.repo.serverTime(),o=me(r),a=this.child(o),s=this.child(o);return n=null!=e?a.set(e,t).then((function(){return s})):Promise.resolve(s),a.then=n.then.bind(n),a.catch=n.then.bind(n,void 0),"function"===typeof t&&n.catch((function(){})),a},t.prototype.onDisconnect=function(){return de("Reference.onDisconnect",this.path),new he(this.repo,this.path)},Object.defineProperty(t.prototype,"database",{get:function(){return this.databaseProp()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this.getKey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getParent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this.getRoot()},enumerable:!1,configurable:!0}),t}(Ze);Ze.__referenceConstructor=un,Tt.__referenceConstructor=un;var dn,pn=function(){this.children={},this.childCount=0,this.value=null},hn=function(){function e(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n=new pn),this.name_=e,this.parent_=t,this.node_=n}return e.prototype.subTree=function(t){for(var n=t instanceof q?t:new q(t),r=this,o=n.getFront();null!==o;){r=new e(o,r,i.safeGet(r.node_.children,o)||new pn),o=(n=n.popFront()).getFront()}return r},e.prototype.getValue=function(){return this.node_.value},e.prototype.setValue=function(e){i.assert("undefined"!==typeof e,"Cannot set value to undefined"),this.node_.value=e,this.updateParents_()},e.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},e.prototype.hasChildren=function(){return this.node_.childCount>0},e.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},e.prototype.forEachChild=function(t){var n=this;D(this.node_.children,(function(r,o){t(new e(r,n,o))}))},e.prototype.forEachDescendant=function(e,t,n){t&&!n&&e(this),this.forEachChild((function(t){t.forEachDescendant(e,!0,n)})),t&&n&&e(this)},e.prototype.forEachAncestor=function(e,t){for(var n=t?this:this.parent();null!==n;){if(e(n))return!0;n=n.parent()}return!1},e.prototype.forEachImmediateDescendantWithValue=function(e){this.forEachChild((function(t){null!==t.getValue()?e(t):t.forEachImmediateDescendantWithValue(e)}))},e.prototype.path=function(){return new q(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},e.prototype.name=function(){return this.name_},e.prototype.parent=function(){return this.parent_},e.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},e.prototype.updateChild_=function(e,t){var n=t.isEmpty(),r=i.contains(this.node_.children,e);n&&r?(delete this.node_.children[e],this.node_.childCount--,this.updateParents_()):n||r||(this.node_.children[e]=t.node_,this.node_.childCount++,this.updateParents_())},e}();!function(e){e[e.RUN=0]="RUN",e[e.SENT=1]="SENT",e[e.COMPLETED=2]="COMPLETED",e[e.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",e[e.NEEDS_ABORT=4]="NEEDS_ABORT"}(dn||(dn={})),an.MAX_TRANSACTION_RETRIES_=25,an.prototype.transactionsInit_=function(){this.transactionQueueTree_=new hn},an.prototype.startTransaction=function(e,t,n,r){this.log_("transaction on "+e);var o=function(){},a=new un(this,e);a.on("value",o);var s={path:e,update:t,onComplete:n,status:null,order:_(),applyLocally:r,retryCount:0,unwatcher:function(){a.off("value",o)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},l=this.getLatestState_(e);s.currentInputSnapshot=l;var c=s.update(l.val());if(void 0===c){if(s.unwatcher(),s.currentOutputSnapshotRaw=null,s.currentOutputSnapshotResolved=null,s.onComplete){var u=new Ye(s.currentInputSnapshot,new un(this,s.path),Te);s.onComplete(null,!1,u)}}else{ie("transaction failed: Data returned ",c,s.path),s.status=dn.RUN;var d=this.transactionQueueTree_.subTree(e),p=d.getValue()||[];p.push(s),d.setValue(p);var h=void 0;if("object"===typeof c&&null!==c&&i.contains(c,".priority"))h=i.safeGet(c,".priority"),i.assert(re(h),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else h=(this.serverSyncTree_.calcCompleteEventCache(e)||qe.EMPTY_NODE).getPriority().val();var f=this.generateServerValues(),m=He(c,h),g=at(m,l,f);s.currentOutputSnapshotRaw=m,s.currentOutputSnapshotResolved=g,s.currentWriteId=this.getNextWriteId_();var v=this.serverSyncTree_.applyUserOverwrite(e,g,s.currentWriteId,s.applyLocally);this.eventQueue_.raiseEventsForChangedPath(e,v),this.sendReadyTransactions_()}},an.prototype.getLatestState_=function(e,t){return this.serverSyncTree_.calcCompleteEventCache(e,t)||qe.EMPTY_NODE},an.prototype.sendReadyTransactions_=function(e){var t=this;if(void 0===e&&(e=this.transactionQueueTree_),e||this.pruneCompletedTransactionsBelowNode_(e),null!==e.getValue()){var n=this.buildTransactionQueue_(e);i.assert(n.length>0,"Sending zero length transaction queue"),n.every((function(e){return e.status===dn.RUN}))&&this.sendTransactionQueue_(e.path(),n)}else e.hasChildren()&&e.forEachChild((function(e){t.sendReadyTransactions_(e)}))},an.prototype.sendTransactionQueue_=function(e,t){for(var n=this,r=t.map((function(e){return e.currentWriteId})),o=this.getLatestState_(e,r),a=o,s=o.hash(),l=0;l<t.length;l++){var c=t[l];i.assert(c.status===dn.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),c.status=dn.SENT,c.retryCount++;var u=q.relativePath(e,c.path);a=a.updateChild(u,c.currentOutputSnapshotRaw)}var d=a.val(!0),p=e;this.server_.put(p.toString(),d,(function(r){n.log_("transaction put response",{path:p.toString(),status:r});var o=[];if("ok"===r){for(var i=[],a=0;a<t.length;a++){if(t[a].status=dn.COMPLETED,o=o.concat(n.serverSyncTree_.ackUserWrite(t[a].currentWriteId)),t[a].onComplete){var s=t[a].currentOutputSnapshotResolved,l=new un(n,t[a].path),c=new Ye(s,l,Te);i.push(t[a].onComplete.bind(null,null,!0,c))}t[a].unwatcher()}n.pruneCompletedTransactionsBelowNode_(n.transactionQueueTree_.subTree(e)),n.sendReadyTransactions_(),n.eventQueue_.raiseEventsForChangedPath(e,o);for(a=0;a<i.length;a++)z(i[a])}else{if("datastale"===r)for(a=0;a<t.length;a++)t[a].status===dn.SENT_NEEDS_ABORT?t[a].status=dn.NEEDS_ABORT:t[a].status=dn.RUN;else{A("transaction at "+p.toString()+" failed: "+r);for(a=0;a<t.length;a++)t[a].status=dn.NEEDS_ABORT,t[a].abortReason=r}n.rerunTransactions_(e)}}),s)},an.prototype.rerunTransactions_=function(e){var t=this.getAncestorTransactionNode_(e),n=t.path(),r=this.buildTransactionQueue_(t);return this.rerunTransactionQueue_(r,n),n},an.prototype.rerunTransactionQueue_=function(e,t){if(0!==e.length){for(var n,r=[],o=[],a=e.filter((function(e){return e.status===dn.RUN})).map((function(e){return e.currentWriteId})),s=0;s<e.length;s++){var l=e[s],c=q.relativePath(t,l.path),u=!1,d=void 0;if(i.assert(null!==c,"rerunTransactionsUnderNode_: relativePath should not be null."),l.status===dn.NEEDS_ABORT)u=!0,d=l.abortReason,o=o.concat(this.serverSyncTree_.ackUserWrite(l.currentWriteId,!0));else if(l.status===dn.RUN)if(l.retryCount>=an.MAX_TRANSACTION_RETRIES_)u=!0,d="maxretry",o=o.concat(this.serverSyncTree_.ackUserWrite(l.currentWriteId,!0));else{var p=this.getLatestState_(l.path,a);l.currentInputSnapshot=p;var h=e[s].update(p.val());if(void 0!==h){ie("transaction failed: Data returned ",h,l.path);var f=He(h);
2"object"===typeof h&&null!=h&&i.contains(h,".priority")||(f=f.updatePriority(p.getPriority()));var m=l.currentWriteId,_=this.generateServerValues(),g=at(f,p,_);l.currentOutputSnapshotRaw=f,l.currentOutputSnapshotResolved=g,l.currentWriteId=this.getNextWriteId_(),a.splice(a.indexOf(m),1),o=(o=o.concat(this.serverSyncTree_.applyUserOverwrite(l.path,g,l.currentWriteId,l.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(m,!0))}else u=!0,d="nodata",o=o.concat(this.serverSyncTree_.ackUserWrite(l.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(t,o),o=[],u&&(e[s].status=dn.COMPLETED,n=e[s].unwatcher,setTimeout(n,Math.floor(0)),e[s].onComplete))if("nodata"===d){var v=new un(this,e[s].path),y=e[s].currentInputSnapshot,b=new Ye(y,v,Te);r.push(e[s].onComplete.bind(null,null,!1,b))}else r.push(e[s].onComplete.bind(null,new Error(d),!1,null))}this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_);for(s=0;s<r.length;s++)z(r[s]);this.sendReadyTransactions_()}},an.prototype.getAncestorTransactionNode_=function(e){var t,n=this.transactionQueueTree_;for(t=e.getFront();null!==t&&null===n.getValue();)n=n.subTree(t),t=(e=e.popFront()).getFront();return n},an.prototype.buildTransactionQueue_=function(e){var t=[];return this.aggregateTransactionQueuesForNode_(e,t),t.sort((function(e,t){return e.order-t.order})),t},an.prototype.aggregateTransactionQueuesForNode_=function(e,t){var n=this,r=e.getValue();if(null!==r)for(var o=0;o<r.length;o++)t.push(r[o]);e.forEachChild((function(e){n.aggregateTransactionQueuesForNode_(e,t)}))},an.prototype.pruneCompletedTransactionsBelowNode_=function(e){var t=this,n=e.getValue();if(n){for(var r=0,o=0;o<n.length;o++)n[o].status!==dn.COMPLETED&&(n[r]=n[o],r++);n.length=r,e.setValue(n.length>0?n:null)}e.forEachChild((function(e){t.pruneCompletedTransactionsBelowNode_(e)}))},an.prototype.abortTransactions_=function(e){var t=this,n=this.getAncestorTransactionNode_(e).path(),r=this.transactionQueueTree_.subTree(e);return r.forEachAncestor((function(e){t.abortTransactionsOnNode_(e)})),this.abortTransactionsOnNode_(r),r.forEachDescendant((function(e){t.abortTransactionsOnNode_(e)})),n},an.prototype.abortTransactionsOnNode_=function(e){var t=e.getValue();if(null!==t){for(var n=[],r=[],o=-1,a=0;a<t.length;a++)if(t[a].status===dn.SENT_NEEDS_ABORT);else if(t[a].status===dn.SENT)i.assert(o===a-1,"All SENT items should be at beginning of queue."),o=a,t[a].status=dn.SENT_NEEDS_ABORT,t[a].abortReason="set";else if(i.assert(t[a].status===dn.RUN,"Unexpected transaction status in abort"),t[a].unwatcher(),r=r.concat(this.serverSyncTree_.ackUserWrite(t[a].currentWriteId,!0)),t[a].onComplete){n.push(t[a].onComplete.bind(null,new Error("set"),!1,null))}-1===o?e.setValue(null):t.length=o+1,this.eventQueue_.raiseEventsForChangedPath(e.path(),r);for(a=0;a<n.length;a++)z(n[a])}};var fn,mn=function(){function e(e,t){var n=this;this.app_=e,this.authProvider_=t,this.auth_=null,this.auth_=t.getImmediate({optional:!0}),this.auth_||t.get().then((function(e){return n.auth_=e}))}return e.prototype.getToken=function(e){return this.auth_?this.auth_.getToken(e).catch((function(e){return e&&"auth/token-not-initialized"===e.code?(x("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(e)})):Promise.resolve(null)},e.prototype.addTokenChangeListener=function(e){this.auth_?this.auth_.addAuthTokenListener(e):(setTimeout((function(){return e(null)}),0),this.authProvider_.get().then((function(t){return t.addAuthTokenListener(e)})))},e.prototype.removeTokenChangeListener=function(e){this.authProvider_.get().then((function(t){return t.removeAuthTokenListener(e)}))},e.prototype.notifyForInvalidToken=function(){var e='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.app_.options?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',A
2(e)},e}(),_n=function(){function e(){}return e.prototype.getToken=function(t){return Promise.resolve({accessToken:e.EMULATOR_AUTH_TOKEN})},e.prototype.addTokenChangeListener=function(t){t(e.EMULATOR_AUTH_TOKEN)},e.prototype.removeTokenChangeListener=function(e){},e.prototype.notifyForInvalidToken=function(){},e.EMULATOR_AUTH_TOKEN="owner",e}(),gn=function(){function e(){this.repos_={},this.useRestClient_=!1}return e.getInstance=function(){return fn||(fn=new e),fn},e.prototype.interrupt=function(){var e,t,n,r;try{for(var i=o.__values(Object.keys(this.repos_)),a=i.next();!a.done;a=i.next()){var s=a.value;try{for(var l=(n=void 0,o.__values(Object.keys(this.repos_[s]))),c=l.next();!c.done;c=l.next()){var u=c.value;this.repos_[s][u].interrupt()}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(p){e={error:p}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.resume=function(){var e,t,n,r;try{for(var i=o.__values(Object.keys(this.repos_)),a=i.next();!a.done;a=i.next()){var s=a.value;try{for(var l=(n=void 0,o.__values(Object.keys(this.repos_[s]))),c=l.next();!c.done;c=l.next()){var u=c.value;this.repos_[s][u].resume()}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(p){e={error:p}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.databaseFromApp=function(e,t,n){var r=n||e.options.databaseURL;void 0===r&&(e.options.projectId||C("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),x("Using default host for project ",e.options.projectId),r=e.options.projectId+"-default-rtdb.firebaseio.com");var o,a=X(r),s=a.repoInfo,l=void 0;"undefined"!==typeof process&&(l={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.FIREBASE_DATABASE_EMULATOR_HOST),l?(o=!0,r="http://"+l+"?ns="+s.namespace,s=(a=X(r)).repoInfo):o=!a.repoInfo.secure;var c=i.CONSTANTS.NODE_ADMIN&&o?new _n:new mn(e,t);return pe("Invalid Firebase Database URL",1,a),a.path.isEmpty()||C("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(s,e,c).database},e.prototype.deleteRepo=function(e){var t=i.safeGet(this.repos_,e.app.name);t&&i.safeGet(t,e.repoInfo_.toURLString())===e||C("Database "+e.app.name+"("+e.repoInfo_+") has already been deleted."),e.interrupt(),delete t[e.repoInfo_.toURLString()]},e.prototype.createRepo=function(e,t,n){var r=i.safeGet(this.repos_,t.name);r||(r={},this.repos_[t.name]=r);var o=i.safeGet(r,e.toURLString());return o&&C("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),o=new an(e,this.useRestClient_,t,n),r[e.toURLString()]=o,o},e.prototype.forceRestClient=function(e){this.useRestClient_=e},e}(),vn=function(){function e(e){this.repo_=e,e instanceof an||C("Don't call new Database() directly - please use firebase.database()."),this.root_=new un(e,q.Empty),this.INTERNAL=new yn(this)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.repo_.app},enumerable:!1,configurable:!0}),e.prototype.ref=function(e){return this.checkDeleted_("ref"),i.validateArgCount("database.ref",0,1,arguments.length),e instanceof un?this.refFromURL(e.toString()):void 0!==e?this.root_.child(e):this.root_},e.prototype.refFromURL=function(e){var t="database.refFromURL";this.checkDeleted_(t),i.validateArgCount(t,1,1,arguments.length);var n=X(e);pe(t,1,n);var r=n.repoInfo;return r.host!==this.repo_.repoInfo_.host&&C(t+": Host name does not match the current database: (found "+r.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},e.prototype.checkDeleted_=function(e){null===this.repo_&&C("Cannot call "+e+" on a deleted database.")},e.prototype.goOffline=function(){i.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},e.prototype.goOnline=function(){i.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},e.ServerValue={TIMESTAMP:{".sv":"timestamp"},increment:function(e){return{".sv":{increment:e}}}},e}(),yn=function(){function e(e){this.database=e}return e.prototype.delete=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){return this.database.checkDeleted_("delete"),gn.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]}))}
2))},e}(),bn=Object.freeze({__proto__:null,forceLongPolling:function(){$t.forceDisallow(),Gt.forceAllow()},forceWebSockets:function(){Gt.forceDisallow()},isWebSocketsAvailable:function(){return $t.isAvailable()},setSecurityDebugCallback:function(e,t){e.repo.persistentConnection_.securityDebugCallback_=t},stats:function(e,t){e.repo.stats(t)},statsIncrementCounter:function(e,t){e.repo.statsIncrementCounter(t)},dataUpdateCount:function(e){return e.repo.dataUpdateCount},interceptServerData:function(e,t){return e.repo.interceptServerData_(t)}}),wn=nn;nn.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},nn.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};var xn=Zt,kn=G,Sn=Object.freeze({__proto__:null,DataConnection:wn,RealTimeConnection:xn,hijackHash:function(e){var t=nn.prototype.put;return nn.prototype.put=function(n,r,o,i){void 0!==i&&(i=e()),t.call(this,n,r,o,i)},function(){nn.prototype.put=t}},ConnectionTarget:kn,queryIdentifier:function(e){return e.queryIdentifier()},forceRestClient:function(e){gn.getInstance().forceRestClient(e)}}),Cn=vn.ServerValue;function An(t){!function(e){Qt=e}(t.SDK_VERSION);var n=t.INTERNAL.registerComponent(new s.Component("database",(function(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal");return gn.getInstance().databaseFromApp(n,r,t)}),"PUBLIC").setServiceProps({Reference:un,Query:Ze,Database:vn,DataSnapshot:Ye,enableLogging:w,INTERNAL:bn,ServerValue:Cn,TEST_ACCESS:Sn}).setMultipleInstances(!0));t.registerVersion("@firebase/database","0.6.12"),i.isNodeSdk()&&(e.exports=n)}An(c.default),t.DataSnapshot=Ye,t.Database=vn,t.OnDisconnect=he,t.Query=Ze,t.Reference=un,t.ServerValue=Cn,t.enableLogging=w,t.registerDatabase=An},16913:(e,t,n)=>{var r=n(9812),o=n(34552),i=n(16095),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},17529:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},18211:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,a=i.MD5,s=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,i=r.hasher.create(),a=o.create(),s=a.words,l=r.keySize,c=r.iterations;s.length<l;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<c;u++)n=i.finalize(n),i.reset();a.concat(n)}return a.sigBytes=4*l,a}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF}(n(84488),n(12002),n(64220))}
2,18328:(e,t,n)=>{"use strict";function r(e){return"object"===typeof e&&null!==e}n.d(t,{G:()=>r})},18630:(e,t,n)=>{var r=n(61516),o=n(6806),i=n(18962),a=n(11295),s=n(38710);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},18902:(e,t,n)=>{var r=n(64816),o=n(86179),i=n(46704);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},18962:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},19340:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]])},19841:(e,t,n)=>{var r=n(16913),o=n(22761);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},20218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(90620)),o=s(n(40840)),i=s(n(12322)),a=s(n(33411));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,i.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=l},20310:(e,t,n)=>{var r=n(21817),o=n(85990),i=n(36140);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},20449:(e,t,n)=>{var r=n(26924),o=n(22761);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},21112:function(e,t,n){e.exports=function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o,r),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);n.call(this,e,t,o,r),this._prevBlock=i}}),t}(),e.mode.CFB}(n(84488),n(52238))},21817:(e,t,n)=>{var r=n(46686),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},22024:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},22555:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,{A:()=>s})},22626:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},22633:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},22662:(e,t,n)=>{var r=n(95575);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},22761:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},22777:(e,t,n)=>{var r=n(15193),o=n(22761),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},22799:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},22929:(e,t,n)=>{var r=n(56552).Uint8Array;e.exports=r},23585:(e,t,n)=>{"use strict";n.d(t,{Mp:()=>Je,Hd:()=>vt,vL:()=>ae,uN:()=>de,cA:()=>ye,AN:()=>_e,IG:()=>we,fp:()=>P,y$:()=>N,Sj:()=>z,Vy:()=>j,sl:()=>q,fF:()=>rt,PM:()=>nt,zM:()=>at,MS:()=>b,FR:()=>w});var r=n(53986),o=n(22555),i=n(65043),a=n(97950),s=n(41024);const l={display:"none"};function c(e){let{id:t,value:n}=e;return i.createElement("div",{id:t,style:l},n)}function u(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return i.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const d=["transform"],p=["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"],h=["active","dragOverlay","transform"],f=(0,i.createContext)(null);const m={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},_={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function g(e){let{announcements:t=_,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=m}=e;const{announce:l,announcement:d}=function(){const[e,t]=(0,i.useState)("");return{announce:(0,i.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),p=(0,s.YG)("DndLiveRegion"),[h,g]=(0,i.useState)(!1);if((0,i.useEffect)((()=>{g(!0)}),[]),function(e){const t=(0,i.useContext)(f);(0,i.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,i.useMemo)((()=>({onDragStart(e){let{active:n}=e;l(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&l(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;l(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;l(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;l(t.onDragCancel({active:n,over:r}))}})),[l,t])),!h)return null;const v=i.createElement(i.Fragment,null,i.createElement(c,{id:r,value:o.draggable}),i.createElement(u,{id:p,announcement:d}));return n?(0,a.createPortal)(v,n):v}var v;function y(){}function b(e,t){return(0,i.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(v||(v={}));const x=Object.freeze({x:0,y:0});function k(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function S(e,t){const n=(0,s.e_)(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function C(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function A(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function E(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function j(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function T(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const P=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=T(t,t.left,t.top),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=k(T(t),o);i.push({id:e,data:{droppableContainer:a,value:n}})}}return i.sort(C)},N=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=E(t),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=E(t),r=o.reduce(((e,t,r)=>e+k(n[r],t)),0),s=Number((r/4).toFixed(4));i.push({id:e,data:{droppableContainer:a,value:s}})}}return i.sort(C)};function I(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*s;return Number((o/(n+r-o)).toFixed(4))}return 0}const R=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:e}=i,r=n.get(e);if(r){const n=I(r,t);n>0&&o.push({id:e,data:{droppableContainer:i,value:n}})}}return o.sort(A)};function O(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:x}function D(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>(0,o.A)((0,o.A)({},t),{},{top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),(0,o.A)({},t))}}const M=D(1);function L(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const F={ignoreTransform:!1};function z(e,t){void 0===t&&(t=F);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,s.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=L(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:l,right:c}=n;return{top:r,left:o,width:i,height:a,bottom:l,right:c}}function B(e){return z(e,{ignoreTransform:!0})}function q(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,s.wz)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,s.sb)(o)||(0,s.xZ)(o))return n;if(n.includes(o))return n;const i=(0,s.zk)(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=(0,s.zk)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"===typeof r&&n.test(r)}))}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=(0,s.zk)(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function U(e){const[t]=q(e,1);return null!=t?t:null}function H(e){return s.Sw&&e?(0,s.l6)(e)?e:(0,s.Ll)(e)?(0,s.wz)(e)||e===(0,s.TW)(e).scrollingElement?window:(0,s.sb)(e)?e:null:null:null}function W(e){return(0,s.l6)(e)?e.scrollX:e.scrollLeft}function V(e){return(0,s.l6)(e)?e.scrollY:e.scrollTop}function K(e){return{x:W(e),y:V(e)}}var G;function Y(e){return!(!s.Sw||!e)&&e===document.scrollingElement}function Q(e){const t={x:0,y:0},n=Y(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(G||(G={}));const X={x:.2,y:.2};function $(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=X);const{isTop:c,isBottom:u,isLeft:d,isRight:p}=Q(e),h={x:0,y:0},f={x:0,y:0},m=t.height*o.y,_=t.width*o.x;return!c&&i<=t.top+m?(h.y=G.Backward,f.y=r*Math.abs((t.top+m-i)/m)):!u&&l>=t.bottom-m&&(h.y=G.Forward,f.y=r*Math.abs((t.bottom-m-l)/m)),!p&&s>=t.right-_?(h.x=G.Forward,f.x=r*Math.abs((t.right-_-s)/_)):!d&&a<=t.left+_&&(h.x=G.Backward,f.x=r*Math.abs((t.left+_-a)/_)),{direction:h,speed:f}}function J(e){if(e===document.scrollingElement){const{innerWidth:e,innerHe
2ight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Z(e){return e.reduce(((e,t)=>(0,s.WQ)(e,K(t))),x)}function ee(e,t){if(void 0===t&&(t=z),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);U(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const te=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+W(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+V(t)),0)}]];class ne{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=q(t),r=Z(n);this.rect=(0,o.A)({},e),this.width=e.width,this.height=e.height;for(const[o,i,a]of te)for(const e of i)Object.defineProperty(this,e,{get:()=>{const t=a(n),i=r[o]-t;return this.rect[e]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class re{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function oe(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"===typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var ie,ae;function se(e){e.preventDefault()}function le(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ie||(ie={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(ae||(ae={}));const ce={start:[ae.Space,ae.Enter],cancel:[ae.Esc],end:[ae.Space,ae.Enter,ae.Tab]},ue=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ae.Right:return(0,o.A)((0,o.A)({},n),{},{x:n.x+25});case ae.Left:return(0,o.A)((0,o.A)({},n),{},{x:n.x-25});case ae.Down:return(0,o.A)((0,o.A)({},n),{},{y:n.y+25});case ae.Up:return(0,o.A)((0,o.A)({},n),{},{y:n.y-25})}};class de{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new re((0,s.TW)(t)),this.windowListeners=new re((0,s.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ie.Resize,this.handleCancel),this.windowListeners.add(ie.VisibilityChange,this.handleCancel),setTimeout((()=>
2this.listeners.add(ie.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&ee(n),t(x)}handleKeyDown(e){if((0,s.kx)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=ce,coordinateGetter:i=ue,scrollBehavior:a="smooth"}=r,{code:l}=e;if(o.end.includes(l))return void this.handleEnd(e);if(o.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:x;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,s.Re)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:s,isLeft:l,isBottom:c,maxScroll:u,minScroll:p}=Q(n),h=J(n),f={x:Math.min(o===ae.Right?h.right-h.width/2:h.right,Math.max(o===ae.Right?h.left:h.left+h.width/2,d.x)),y:Math.min(o===ae.Down?h.bottom-h.height/2:h.bottom,Math.max(o===ae.Down?h.top:h.top+h.height/2,d.y))},m=o===ae.Right&&!s||o===ae.Left&&!l,_=o===ae.Down&&!c||o===ae.Up&&!i;if(m&&f.x!==d.x){const e=n.scrollLeft+t.x,i=o===ae.Right&&e<=u.x||o===ae.Left&&e>=p.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===ae.Right?n.scrollLeft-u.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(_&&f.y!==d.y){const e=n.scrollTop+t.y,i=o===ae.Down&&e<=u.y||o===ae.Up&&e>=p.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===ae.Down?n.scrollTop-u.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,(0,s.WQ)((0,s.Re)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function pe(e){return Boolean(e&&"distance"in e)}function he(e){return Boolean(e&&"delay"in e)}de.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ce,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class fe{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,s.zk)(e);return e instanceof t?e:(0,s.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=(0,s.TW)(i),this.documentListeners=new re(this.document),this.listeners=new re(n),this.windowListeners=new re((0,s.zk)(i)),this.initialCoordinates=null!=(r=(0,s.e_)(o))?r:x,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ie.Resize,this.handleCancel),this.windowListeners.add(ie.DragStart,se),this.windowListeners.add(ie.VisibilityChange,this.handleCancel),this.windowListeners.add(ie.ContextMenu,se),this.documentListeners.add(ie.Key
2down,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(he(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(pe(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ie.Click,le,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ie.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const l=null!=(t=(0,s.e_)(e))?t:x,c=(0,s.Re)(r,l);if(!n&&a){if(pe(a)){if(null!=a.tolerance&&oe(c,a.tolerance))return this.handleCancel();if(oe(c,a.distance))return this.handleStart()}return he(a)&&oe(c,a.tolerance)?this.handleCancel():void this.handlePending(a,c)}e.cancelable&&e.preventDefault(),i(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===ae.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const me={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class _e extends fe{constructor(e){const{event:t}=e,n=(0,s.TW)(t.target);super(e,me,n)}}_e.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const ge={move:{name:"mousemove"},end:{name:"mouseup"}};var ve;!function(e){e[e.RightClick=2]="RightClick"}(ve||(ve={}));class ye extends fe{constructor(e){super(e,ge,(0,s.TW)(e.event.target))}}ye.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ve.RightClick&&(null==r||r({event:n}),!0)}}];const be={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class we extends fe{constructor(e){super(e,be)}static setup(){return window.addEventListener(be.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(be.move.name,e)};function e(){}}}var xe,ke;function Se(e){let{acceleration:t,activator:n=xe.Pointer,canScroll:r,draggingRect:o,enabled:a,interval:l=5,order:c=ke.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:p,delta:h,threshold:f}=e;const m=function(e){let{delta:t,disabled:n}=e;const r=(0,s.ZC)(t);return(0,s.KG)((e=>{if(n||!r||!e)return Ce;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[G.Backward]:e.x[G.Backward]||-1===o.x,[G.Forward]:e.x[G.Forward]||1===o.x},y:{[G.Backward]:e.y[G.Backward]||-1===o.y,[G.Forward]:e.y[G.Forward]||1===o.y}}}),[n,t,r])}({delta:h,disabled:!a}),[_,g]=(0,s.$$)(),v=(0,i.useRef)({x:0,y:0}),y=(0,i.useRef)({x:0,y:0}),b=(0,i.useMemo)((()=>{switch(n){case xe.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case xe.DraggableRect:return o}}),[n,o,u]),w=(0,i.useRef)(null),x=(0,i.useCallback)((()=>{const e=w.current;if(!e)return;const t=v.current.x*y.current.x,n=v.current.y*y.current.y;e.scrollBy(t,n)}),[]),k=(0,i.useMemo)((()=>c===ke.TreeOrder?[...d].reverse():d),[c,d]);(0,i.useEffect)((()=>{if(a&&d.length&&b){for(const e of k){if(!1===(null==r?void 0:r(e)))continue;const n=d.indexOf(e),o=p[n];if(!o)continue;const{direction:i,speed:a}=$(e,o,b,t,f);for(const e of["x","y"])m[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return g(),w.current=e,_(x,l),v.current=a,void(y.current=i)}v.current={x:0,y:0},y.current={x:0,y:0},g()}else g()}),[t,x,r,g,a,l,JSON.stringify(b),JSON.stringify(m),_,d,k,p,JSON.stringify(f)])}we.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(xe||(xe={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
2sedTreeOrder"}(ke||(ke={}));const Ce={x:{[G.Backward]:!1,[G.Forward]:!1},y:{[G.Backward]:!1,[G.Forward]:!1}};var Ae,Ee;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Ae||(Ae={})),function(e){e.Optimized="optimized"}(Ee||(Ee={}));const je=new Map;function Te(e,t){return(0,s.KG)((n=>e?n||("function"===typeof t?t(e):e):null),[t,e])}function Pe(e){let{callback:t,disabled:n}=e;const r=(0,s._q)(t),o=(0,i.useMemo)((()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[n]);return(0,i.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function Ne(e){return new ne(z(e),e)}function Ie(e,t,n){void 0===t&&(t=Ne);const[r,o]=(0,i.useState)(null);function a(){o((r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}))}const l=function(e){let{callback:t,disabled:n}=e;const r=(0,s._q)(t),o=(0,i.useMemo)((()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,n]);return(0,i.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),c=Pe({callback:a});return(0,s.Es)((()=>{a(),e?(null==c||c.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==l||l.disconnect())}),[e]),r}const Re=[];function Oe(e,t){void 0===t&&(t=[]);const n=(0,i.useRef)(null);return(0,i.useEffect)((()=>{n.current=null}),t),(0,i.useEffect)((()=>{const t=e!==x;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,s.Re)(e,n.current):x}function De(e){return(0,i.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Me=[];function Le(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,s.sb)(t)?t:e}const Fe=[{sensor:_e,options:{}},{sensor:de,options:{}}],ze={current:{}},Be={draggable:{measure:B},droppable:{measure:B,strategy:Ae.WhileDragging,frequency:Ee.Optimized},dragOverlay:{measure:z}};class qe extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Ue={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new qe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:y},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Be,measureDroppableContainers:y,windowRect:null,measuringScheduled:!1},He={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:y,draggableNodes:new Map,over:null,measureDroppableContainers:y},We=(0,i.createContext)(He),Ve=(0,i.createContext)(Ue);function Ke(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new qe}}}function Ge(e,t){switch(t.type){case v.DragStart:return(0,o.A)((0,o.A)({},e),{},{draggable:(0,o.A)((0,o.A)({},e.draggable),{},{initialCoordinates:t.initialCoordinates,active:t.active})});case v.DragMove:return null==e.draggable.active?e:(0,o.A)((0,o.A)({},e),{},{draggable:(0,o.A)((0,o.A)({},e.draggable),{},{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})});case v.DragEnd:case v.DragCancel:return(0,o.A)((0,o.A)({},e),{},{draggable:(0,o.A)((0,o.A)({},e.draggable),{},{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case v.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new qe(e.droppable.containers);return i.set(r,n),(0,o.A)((0,o.A)({},e),{},{droppable:(0,o.A)((0,o.A)({},e.droppable),{},{containers:i})})}case v.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;
2const s=new qe(e.droppable.containers);return s.set(n,(0,o.A)((0,o.A)({},a),{},{disabled:i})),(0,o.A)((0,o.A)({},e),{},{droppable:(0,o.A)((0,o.A)({},e.droppable),{},{containers:s})})}case v.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new qe(e.droppable.containers);return a.delete(n),(0,o.A)((0,o.A)({},e),{},{droppable:(0,o.A)((0,o.A)({},e.droppable),{},{containers:a})})}default:return e}}function Ye(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=(0,i.useContext)(We),a=(0,s.ZC)(r),l=(0,s.ZC)(null==n?void 0:n.id);return(0,i.useEffect)((()=>{if(!t&&!r&&a&&null!=l){if(!(0,s.kx)(a))return;if(document.activeElement===a.target)return;const e=o.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,s.ag)(e);if(t){t.focus();break}}}))}}),[r,t,o,l,a]),null}function Qe(e,t){let{transform:n}=t,i=(0,r.A)(t,d);return null!=e&&e.length?e.reduce(((e,t)=>t((0,o.A)({transform:e},i))),n):n}const Xe=(0,i.createContext)((0,o.A)((0,o.A)({},x),{},{scaleX:1,scaleY:1}));var $e;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}($e||($e={}));const Je=(0,i.memo)((function(e){var t,n,l,c;let{id:u,accessibility:d,autoScroll:h=!0,children:m,sensors:_=Fe,collisionDetection:y=R,measuring:b,modifiers:w}=e,k=(0,r.A)(e,p);const S=(0,i.useReducer)(Ge,void 0,Ke),[C,A]=S,[E,T]=function(){const[e]=(0,i.useState)((()=>new Set)),t=(0,i.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,i.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[P,N]=(0,i.useState)($e.Uninitialized),I=P===$e.Initialized,{draggable:{active:D,nodes:L,translate:F},droppable:{containers:B}}=C,W=null!=D?L.get(D):null,V=(0,i.useRef)({initial:null,translated:null}),G=(0,i.useMemo)((()=>{var e;return null!=D?{id:D,data:null!=(e=null==W?void 0:W.data)?e:ze,rect:V}:null}),[D,W]),Q=(0,i.useRef)(null),[X,$]=(0,i.useState)(null),[J,ee]=(0,i.useState)(null),te=(0,s.YN)(k,Object.values(k)),re=(0,s.YG)("DndDescribedBy",u),oe=(0,i.useMemo)((()=>B.getEnabled()),[B]),ie=(ae=b,(0,i.useMemo)((()=>({draggable:(0,o.A)((0,o.A)({},Be.draggable),null==ae?void 0:ae.draggable),droppable:(0,o.A)((0,o.A)({},Be.droppable),null==ae?void 0:ae.droppable),dragOverlay:(0,o.A)((0,o.A)({},Be.dragOverlay),null==ae?void 0:ae.dragOverlay)})),[null==ae?void 0:ae.draggable,null==ae?void 0:ae.droppable,null==ae?void 0:ae.dragOverlay]));var ae;const{droppableRects:se,measureDroppableContainers:le,measuringScheduled:ce}=function(e,t){let{dragging:n,dependencies:r,config:o}=t;const[a,l]=(0,i.useState)(null),{frequency:c,measure:u,strategy:d}=o,p=(0,i.useRef)(e),h=function(){switch(d){case Ae.Always:return!1;case Ae.BeforeDragging:return n;default:return!n}}(),f=(0,s.YN)(h),m=(0,i.useCallback)((function(e){void 0===e&&(e=[]),f.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[f]),_=(0,i.useRef)(null),g=(0,s.KG)((t=>{if(h&&!n)return je;if(!t||t===je||p.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new ne(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,a,n,h,u]);return(0,i.useEffect)((()=>{p.current=e}),[e]),(0,i.useEffect)((()=>{h||m()}),[n,h]),(0,i.useEffect)((()=>{a&&a.length>0&&l(null)}),[JSON.stringify(a)]),(0,i.useEffect)((()=>{h||"number"!==typeof c||null!==_.current||(_.current=setTimeout((()=>{m(),_.current=null}),c))}),[c,h,m,...r]),{droppableRects:g,measureDroppableContainers:m,measuringScheduled:null!=a}}(oe,{dragging:I,dependencies:[F.x,F.y],config:ie.droppable}),ue=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,s.KG)((e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(L,D),de=(0,i.useMemo)((()=>J?(0,s.e_)(J):null),[J]),pe=function(){const e=!1===(null==X?void 0:X.autoScrollEnabled),t="object"===typeof h?!1===h.enabled:!1===h,n=I&&!e&&!t;if("object"===typeof h)return(0,o.A)((0,o.A)({},h),{},{enabled:n});return{enabled:n}}(),he=function(e,t){return Te(e,t)}(ue,ie.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const a=(0,i.useRef)(!1),{x:l,y:c}="boolean"===typeof o?{x:o,y:o}:o;(0,s.Es)((()=>
2{if(!l&&!c||!t)return void(a.current=!1);if(a.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=O(n(e),r);if(l||(o.x=0),c||(o.y=0),a.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=U(e);t&&t.scrollBy({top:o.y,left:o.x})}}),[t,l,c,r,n])}({activeNode:null!=D?L.get(D):null,config:pe.layoutShiftCompensation,initialRect:he,measure:ie.draggable.measure});const fe=Ie(ue,ie.draggable.measure,he),me=Ie(ue?ue.parentElement:null),_e=(0,i.useRef)({activatorEvent:null,active:null,activeNode:ue,collisionRect:null,collisions:null,droppableRects:se,draggableNodes:L,draggingNode:null,draggingNodeRect:null,droppableContainers:B,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ge=B.getNodeFor(null==(t=_e.current.over)?void 0:t.id),ve=function(e){let{measure:t}=e;const[n,r]=(0,i.useState)(null),a=Pe({callback:(0,i.useCallback)((e=>{for(const{target:n}of e)if((0,s.sb)(n)){r((e=>{const r=t(n);return e?(0,o.A)((0,o.A)({},e),{},{width:r.width,height:r.height}):r}));break}}),[t])}),l=(0,i.useCallback)((e=>{const n=Le(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),r(n?t(n):null)}),[t,a]),[c,u]=(0,s.lk)(l);return(0,i.useMemo)((()=>({nodeRef:c,rect:n,setRef:u})),[n,c,u])}({measure:ie.dragOverlay.measure}),ye=null!=(n=ve.nodeRef.current)?n:ue,be=I?null!=(l=ve.rect)?l:fe:null,we=Boolean(ve.nodeRef.current&&ve.rect),xe=O(ke=we?null:fe,Te(ke));var ke;const Ce=De(ye?(0,s.zk)(ye):null),Ee=function(e){const t=(0,i.useRef)(e),n=(0,s.KG)((n=>e?n&&n!==Re&&e&&t.current&&e.parentNode===t.current.parentNode?n:q(e):Re),[e]);return(0,i.useEffect)((()=>{t.current=e}),[e]),n}(I?null!=ge?ge:ue:null),Ne=function(e,t){void 0===t&&(t=z);const[n]=e,r=De(n?(0,s.zk)(n):null),[o,a]=(0,i.useState)(Me);function l(){a((()=>e.length?e.map((e=>Y(e)?r:new ne(t(e),e))):Me))}const c=Pe({callback:l});return(0,s.Es)((()=>{null==c||c.disconnect(),l(),e.forEach((e=>null==c?void 0:c.observe(e)))}),[e]),o}(Ee),qe=Qe(w,{transform:{x:F.x-xe.x,y:F.y-xe.y,scaleX:1,scaleY:1},activatorEvent:J,active:G,activeNodeRect:fe,containerNodeRect:me,draggingNodeRect:be,over:_e.current.over,overlayNodeRect:ve.rect,scrollableAncestors:Ee,scrollableAncestorRects:Ne,windowRect:Ce}),Ue=de?(0,s.WQ)(de,F):null,He=function(e){const[t,n]=(0,i.useState)(null),r=(0,i.useRef)(e),o=(0,i.useCallback)((e=>{const t=H(e.target);t&&n((e=>e?(e.set(t,K(t)),new Map(e)):null))}),[]);return(0,i.useEffect)((()=>{const t=r.current;if(e!==t){i(t);const a=e.map((e=>{const t=H(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,K(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach((e=>{const t=H(e);null==t||t.removeEventListener("scroll",o)}))}}),[o,e]),(0,i.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,s.WQ)(e,t)),x):Z(e):x),[e,t])}(Ee),Je=Oe(He),Ze=Oe(He,[fe]),et=(0,s.WQ)(qe,Je),tt=be?M(be,qe):null,nt=G&&tt?y({active:G,collisionRect:tt,droppableRects:se,droppableContainers:oe,pointerCoordinates:Ue}):null,rt=j(nt,"id"),[ot,it]=(0,i.useState)(null),at=function(e,t,n){return(0,o.A)((0,o.A)({},e),{},{scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1})}(we?qe:(0,s.WQ)(qe,Ze),null!=(c=null==ot?void 0:ot.rect)?c:null,fe),st=(0,i.useRef)(null),lt=(0,i.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==Q.current)return;const o=L.get(Q.current);if(!o)return;const i=e.nativeEvent,s=new n({active:Q.current,activeNode:o,event:i,options:r,context:_e,onAbort(e){if(!L.get(e))return;const{onDragAbort:t}=te.current,n={id:e};null==t||t(n),E({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!L.get(e))return;const{onDragPending:o}=te.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(i),E({type:"onDragPending",event:i})},onStart(e){const t=Q.current;if(null==t)return;const n=L.get(t);if(!n)return;const{onDragStart:r}=te.current,o={activatorEvent:i,active:{id:t,data:n.data,rect:V}};(0,a.unstable_batchedUpdates)((()=>{null==r||r(o),N($e.Initializing),A({type:v.DragStart,initialCoordinates:e,active:t}),E({type:"onDragStart",event:o}),$(st.current),ee(i)}))}
2,onMove(e){A({type:v.DragMove,coordinates:e})},onEnd:l(v.DragEnd),onCancel:l(v.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=_e.current;let s=null;if(t&&o){const{cancelDrop:a}=te.current;if(s={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===v.DragEnd&&"function"===typeof a){await Promise.resolve(a(s))&&(e=v.DragCancel)}}Q.current=null,(0,a.unstable_batchedUpdates)((()=>{A({type:e}),N($e.Uninitialized),it(null),$(null),ee(null),st.current=null;const t=e===v.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=te.current[t];null==e||e(s),E({type:t,event:s})}}))}}st.current=s}),[L]),ct=(0,i.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=L.get(r);if(null!==Q.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},Q.current=r,lt(n,t))}),[L,lt]),ut=function(e,t){return(0,i.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(_,ct);!function(e){(0,i.useEffect)((()=>{if(!s.Sw)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(_),(0,s.Es)((()=>{fe&&P===$e.Initializing&&N($e.Initialized)}),[fe,P]),(0,i.useEffect)((()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:o}=_e.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:et.x,y:et.y},over:o};(0,a.unstable_batchedUpdates)((()=>{null==e||e(i),E({type:"onDragMove",event:i})}
2))}),[et.x,et.y]),(0,i.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=_e.current;if(!e||null==Q.current||!t||!o)return;const{onDragOver:i}=te.current,s=r.get(rt),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};(0,a.unstable_batchedUpdates)((()=>{it(l),null==i||i(c),E({type:"onDragOver",event:c})}))}),[rt]),(0,s.Es)((()=>{_e.current={activatorEvent:J,active:G,activeNode:ue,collisionRect:tt,collisions:nt,droppableRects:se,draggableNodes:L,draggingNode:ye,draggingNodeRect:be,droppableContainers:B,over:ot,scrollableAncestors:Ee,scrollAdjustedTranslate:et},V.current={initial:be,translated:tt}}),[G,ue,nt,tt,L,ye,be,se,B,ot,Ee,et]),Se((0,o.A)((0,o.A)({},pe),{},{delta:F,draggingRect:tt,pointerCoordinates:Ue,scrollableAncestors:Ee,scrollableAncestorRects:Ne}));const dt=(0,i.useMemo)((()=>({active:G,activeNode:ue,activeNodeRect:fe,activatorEvent:J,collisions:nt,containerNodeRect:me,dragOverlay:ve,draggableNodes:L,droppableContainers:B,droppableRects:se,over:ot,measureDroppableContainers:le,scrollableAncestors:Ee,scrollableAncestorRects:Ne,measuringConfiguration:ie,measuringScheduled:ce,windowRect:Ce})),[G,ue,fe,J,nt,me,ve,L,B,se,ot,le,Ee,Ne,ie,ce,Ce]),pt=(0,i.useMemo)((()=>({activatorEvent:J,activators:ut,active:G,activeNodeRect:fe,ariaDescribedById:{draggable:re},dispatch:A,draggableNodes:L,over:ot,measureDroppableContainers:le})),[J,ut,G,fe,A,re,L,ot,le]);return i.createElement(f.Provider,{value:T},i.createElement(We.Provider,{value:pt},i.createElement(Ve.Provider,{value:dt},i.createElement(Xe.Provider,{value:at},m)),i.createElement(Ye,{disabled:!1===(null==d?void 0:d.restoreFocus)})),i.createElement(g,(0,o.A)((0,o.A)({},d),{},{hiddenTextDescribedById:re})))})),Ze=(0,i.createContext)(null),et="button",tt="Draggable";function nt(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const a=(0,s.YG)(tt),{activators:l,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:p,draggableNodes:h,over:f}=(0,i.useContext)(We),{role:m=et,roleDescription:_="draggable",tabIndex:g=0}=null!=o?o:{},v=(null==u?void 0:u.id)===t,y=(0,i.useContext)(v?Xe:Ze),[b,w]=(0,s.lk)(),[x,k]=(0,s.lk)(),S=function(e,t){return(0,i.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(l,t),C=(0,s.YN)(n);(0,s.Es)((()=>(h.set(t,{id:t,key:a,node:b,activatorNode:x,data:C}),()=>{const e=h.get(t);e&&e.key===a&&h.delete(t)})),[h,t]);return{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,i.useMemo)((()=>({role:m,tabIndex:g,"aria-disabled":r,"aria-pressed":!(!v||m!==et)||void 0,"aria-roledescription":_,"aria-describedby":p.draggable})),[r,m,g,v,_,p.draggable]),isDragging:v,listeners:r?void 0:S,node:b,over:f,setNodeRef:w,setActivatorNodeRef:k,transform:y}}function rt(){return(0,i.useContext)(Ve)}const ot="Droppable",it={timeout:25};function at(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const l=(0,s.YG)(ot),{active:c,dispatch:u,over:d,measureDroppableContainers:p}=(0,i.useContext)(We),h=(0,i.useRef)({disabled:n}),f=(0,i.useRef)(!1),m=(0,i.useRef)(null),_=(0,i.useRef)(null),{disabled:g,updateMeasurementsFor:y,timeout:b}=(0,o.A)((0,o.A)({},it),a),w=(0,s.YN)(null!=y?y:r),x=Pe({callback:(0,i.useCallback)((()=>{f.current?(null!=_.current&&clearTimeout(_.current),_.current=setTimeout((()=>{p(Array.isArray(w.current)?w.current:[w.current]),_.current=null}),b)):f.current=!0}),[b]),disabled:g||!c}),k=(0,i.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e))}),[x]),[S,C]=(0,s.lk)(k),A=(0,s.YN)(t);return(0,i.useEffect)((()=>{x&&S.current&&(x.disconnect(),f.current=!1,x.observe(S.current))}),[S,x]),(0,i.useEffect)((()=>(u({type:v.RegisterDroppable,element:{id:r,key:l,disabled:n,node:S,rect:m,data:A}}),()=>u({type:v.UnregisterDroppable,key:l,id:r}))),[r]),(0,i.useEffect)((()=>{n!==h.current.disabled&&(u({type:v.SetDroppableDisabled,id:r,key:l,disabled:n}),h.current.disabled=n)}),[r,l,n,u]),{active:c,rect:m,isOver:(null==d?void 0:d.id)===r,node:S,over:d,setNodeRef:C}}function st(e){let{animation:t,children:n}=e;const[r,o]=(0,i.useState)(null),[a,l]=(0,i.useState)(null),c=(0,s.ZC)(n);return n||r||!c||o(c),(0,s.Es)((()=>
2{if(!a)return;const e=null==r?void 0:r.key,n=null==r?void 0:r.props.id;null!=e&&null!=n?Promise.resolve(t(n,a)).then((()=>{o(null)})):o(null)}),[t,r,a]),i.createElement(i.Fragment,null,n,r?(0,i.cloneElement)(r,{ref:l}):null)}const lt={x:0,y:0,scaleX:1,scaleY:1};function ct(e){let{children:t}=e;return i.createElement(We.Provider,{value:He},i.createElement(Xe.Provider,{value:lt},t))}const ut={position:"fixed",touchAction:"none"},dt=e=>(0,s.kx)(e)?"transform 250ms ease":void 0,pt=(0,i.forwardRef)(((e,t)=>{let{as:n,activatorEvent:r,adjustScale:a,children:l,className:c,rect:u,style:d,transform:p,transition:h=dt}=e;if(!u)return null;const f=a?p:(0,o.A)((0,o.A)({},p),{},{scaleX:1,scaleY:1}),m=(0,o.A)((0,o.A)({},ut),{},{width:u.width,height:u.height,top:u.top,left:u.left,transform:s.Ks.Transform.toString(f),transformOrigin:a&&r?S(r,u):void 0,transition:"function"===typeof h?h(r):h},d);return i.createElement(n,{className:c,style:m,ref:t},l)})),ht=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,s]of Object.entries(i.active))void 0!==s&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,s));if(null!=i&&i.dragOverlay)for(const[e,s]of Object.entries(i.dragOverlay))void 0!==s&&r.node.style.setProperty(e,s);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},ft={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:s.Ks.Transform.toString(t)},{transform:s.Ks.Transform.toString(n)}]},sideEffects:ht({styles:{active:{opacity:"0"}}})};function mt(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:a}=e;return(0,s._q)(((e,l)=>{if(null===t)return;const c=n.get(e);if(!c)return;const u=c.node.current;if(!u)return;const d=Le(l);if(!d)return;const{transform:p}=(0,s.zk)(l).getComputedStyle(l),f=L(p);if(!f)return;const m="function"===typeof t?t:function(e){const{duration:t,easing:n,sideEffects:i,keyframes:a}=(0,o.A)((0,o.A)({},ft),e);return e=>{let{active:s,dragOverlay:l,transform:c}=e,u=(0,r.A)(e,h);if(!t)return;const d={x:l.rect.left-s.rect.left,y:l.rect.top-s.rect.top},p={scaleX:1!==c.scaleX?s.rect.width*c.scaleX/l.rect.width:1,scaleY:1!==c.scaleY?s.rect.height*c.scaleY/l.rect.height:1},f=(0,o.A)({x:c.x-d.x,y:c.y-d.y},p),m=a((0,o.A)((0,o.A)({},u),{},{active:s,dragOverlay:l,transform:{initial:c,final:f}})),[_]=m,g=m[m.length-1];if(JSON.stringify(_)===JSON.stringify(g))return;const v=null==i?void 0:i((0,o.A)({active:s,dragOverlay:l},u)),y=l.node.animate(m,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{y.onfinish=()=>{null==v||v(),e()}}))}}(t);return ee(u,a.draggable.measure),m({active:{id:e,data:c.data,node:u,rect:a.draggable.measure(u)},draggableNodes:n,dragOverlay:{node:l,rect:a.dragOverlay.measure(d)},droppableContainers:i,measuringConfiguration:a,transform:f})}))}let _t=0;function gt(e){return(0,i.useMemo)((()=>{if(null!=e)return _t++,_t}),[e])}const vt=i.memo((e=>
2{let{adjustScale:t=!1,children:n,dropAnimation:r,style:a,transition:s,modifiers:l,wrapperElement:c="div",className:u,zIndex:d=999}=e;const{activatorEvent:p,active:h,activeNodeRect:f,containerNodeRect:m,draggableNodes:_,droppableContainers:g,dragOverlay:v,over:y,measuringConfiguration:b,scrollableAncestors:w,scrollableAncestorRects:x,windowRect:k}=rt(),S=(0,i.useContext)(Xe),C=gt(null==h?void 0:h.id),A=Qe(l,{activatorEvent:p,active:h,activeNodeRect:f,containerNodeRect:m,draggingNodeRect:v.rect,over:y,overlayNodeRect:v.rect,scrollableAncestors:w,scrollableAncestorRects:x,transform:S,windowRect:k}),E=Te(f),j=mt({config:r,draggableNodes:_,droppableContainers:g,measuringConfiguration:b}),T=E?v.setRef:void 0;return i.createElement(ct,null,i.createElement(st,{animation:j},h&&C?i.createElement(pt,{key:C,id:h.id,ref:T,as:c,activatorEvent:p,adjustScale:t,className:u,transition:s,rect:E,style:(0,o.A)({zIndex:d},a),transform:A},n):null))}))},23658:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]])},23781:(e,t,n)=>{var r=n(9417),o=n(28673);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},24190:(e,t,n)=>{var r=n(61340);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},24558:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(26562);function o(e,t,n){return e.set((0,r.A)(e,t),n),n}},24763:()=>{},25051:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},25111:(e,t,n)=>{var r=n(33279);e.exports=function(e){return"function"==typeof e?e:r}},26390:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(22555),o=n(65043),i=n(97950),a=n(75439),s=n(40117),l=n(65982),c=n(85692),u=n(65469),d=n(96172),p=n(13005),h=n(10624),f=n(89927),m=n(92730),_=n(47174),g=n(52222),v=n(70579);function y(e){let{path:t,initialType:n="all",onClose:y,navigate:b,contentOwnerId:w}=e;(0,a.Zp)();const{theme:x}=(0,p.DP)(),{resolvedDirection:k}=(0,h.o)(),S="rtl"===k,{userData:C}=(0,o.useContext)(l.Rs),[A,E]=(0,o.useState)([]),[j,T]=(0,o.useState)(n),[P,N]=(0,o.useState)(null),[I,R]=(0,o.useState)({like:"https://assets.amposter.com/reactions/reaction_pack1/like.png",love:"https://assets.amposter.com/reactions/reaction_pack1/love.png",care:"https://assets.amposter.com/reactions/reaction_pack1/care.png",wow:"https://assets.amposter.com/reactions/reaction_pack1/wow.png",haha:"https://assets.amposter.com/reactions/reaction_pack1/haha.png",sad:"https://assets.amposter.com/reactions/reaction_pack1/sad.png",angry:"https://assets.amposter.com/reactions/reaction_pack1/angry.png"}),O=(0,o.useRef)(!1),D=((0,o.useRef)(null),(0,o.useRef)(!1));(0,o.useEffect)((()=>{if(!w)return;return(0,m._A)(w,(e=>{R(e)}))}),[w]),(0,o.useEffect)((()=>{if(!t)return;let e=!0;return s.firebase.database().ref(t).once("value").then((async t=>{const n=t.val()||{},o=Object.entries(n);e&&E(o.map((e=>{let[t,n]=e;return{id:t,name:"AM-Reaction",tag:"@AM_Reaction",img:"/assets/images/global/user_v2.jpg",subscribed:!1,frame_url:"",followsYou:!1,verified:!1,reaction:n}}))),o.forEach((async t=>{let[n,o]=t;try{const t=await _.A.getProfile(n)||{};if(!e)return;let a=!1;var i;if(null!==C&&void 0!==C&&C.id&&n!==C.id)a=!(null===(i=t.following)||void 0===i||!i[C.id]);E((e=>e.map((e=>e.id!==n?e:(0,r.A)((0,r.A)({},e),{},{name:t.name||"AM-Reaction",tag:t.tag||"@AM_Reaction",img:t.sensitive_img?"/assets/images/global/user_sensitive_img_v2.jpg":t.img||(t.tag?"/assets/images/global/user_v2.jpg":"/assets/images/global/user_reaction.jpg"),subscribed:t.subscribed||!1,frame_url:t.frame_url||"",followsYou:a,verified:!!t.verified,reaction:o})))))}catch(a){}}))})).catch((e=>{console.error("Error loading reactions:",e)})),()=>{e=!1}}),[t,null===C||void 0===C?void 0:C.id]);const[M,L]=(0,o.useState)(!1),F=(0,o.useRef)(!1),z=(0,o.useRef)(null),B=o.useCallback((function(){F.current||(F.current=!0,L(!0),O.current=!0,z.current&&(0,f.tu)(z.current,!1),setTimeout((()=>{null===y||void 0===y||y(),L(!1)}),300))}),[y]),q=(0,o.useRef)(B);(0,o.useEffect)((()=>{q.current=B}),[B]),(0,o.useEffect)((()=>{D.current||(D.current=!0,O.current=!1,z.current=(0,f.GR)("reactions"));const e=e=>{F.current||(0,f.Vz)()===z.current&&(e.preventDefault(),q.current(!0))};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}}),[]);const U=(0,o.useRef)(!1);(0,o.useEffect)((()=>()=>{U.current&&!O.current&&z.current&&(0,f.tu)(z.current,!1),U.current=!0}),[]),(0,o.useEffect)((()=>
2{if(!document.getElementById("reaction-slide-style")){const e=document.createElement("style");e.id="reaction-slide-style",e.innerHTML="\n        @keyframes slideInBottom {\n          0% { transform: translateY(100%); }\n          100% { transform: translateY(0); }\n        }\n        @keyframes slideOutBottom {\n          0% { transform: translateY(0); }\n          100% { transform: translateY(100%); }\n        }\n        .reaction-swipe-pane::-webkit-scrollbar { display: none; }\n      ",document.head.appendChild(e)}}),[]);const H=(0,o.useMemo)((()=>{const e={};return A.forEach((t=>{e[t.reaction]=(e[t.reaction]||0)+1})),e}),[A]),W=(0,o.useMemo)((()=>Array.from(new Set(["all",...A.map((e=>e.reaction))]))),[A]);(0,o.useEffect)((()=>{W.includes(j)||T(W[0]||"all")}),[W,j]);const V=(0,o.useRef)(null),K=(0,o.useRef)(0),G=(0,o.useRef)(0),Y=(0,o.useCallback)((e=>{T((t=>{if(!W||W.length<=1)return t;const n=W.indexOf(t);if(-1===n)return t;let r=n+e;return r<0&&(r=W.length-1),r>=W.length&&(r=0),W[r]}))}),[W]),Q=(0,o.useCallback)((e=>{K.current=e.touches[0].clientX,G.current=e.touches[0].clientY}),[]),X=(0,o.useCallback)((e=>{const t=e.changedTouches[0].clientX-K.current,n=e.changedTouches[0].clientY-G.current;if(Math.abs(t)<50||Math.abs(t)<1.2*Math.abs(n))return;const r=t<0?1:-1;Y(S?-r:r)}),[Y,S]),$=e=>{e&&e.stopPropagation(),B()};if(!t)return null;const J=(0,i.createPortal)((0,v.jsxs)(d.P.div,{className:"reaction-dialog-overlay",dir:k,initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",stiffness:300,damping:30,duration:.3},onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),style:{position:"fixed",inset:0,width:"100dvw",height:"100dvh",background:"dark"===x?"#111516":"#f8f9fa",zIndex:(0,f.v7)(1e3),display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start"},children:[(0,v.jsxs)("div",{className:"top-bar-tools ".concat("dark"===x?"theme-dark-item":"theme-light-item"),style:{display:"flex",alignItems:"center",gap:12,padding:"16px",zIndex:10,borderBottom:"dark"===x?"1px solid #333":"1px solid #e0e0e0"},children:[S?(0,v.jsx)(c.A,{size:24,onClick:$,style:{cursor:"pointer"}}):(0,v.jsx)(u.A,{size:24,onClick:$,style:{cursor:"pointer"}}),(0,v.jsx)("h4",{style:{margin:0,fontSize:"18px",fontWeight:"bold"},children:"\u062a\u0641\u0627\u0639\u0644\u0627\u062a"})]}),(0,v.jsxs)("div",{role:"dialog",className:"reaction-dialog ".concat("dark"===x?"theme-dark-space":"theme-light-space"),onClick:e=>e.stopPropagation(),style:{width:"100%",height:"100%",flex:1,overflow:"auto",borderRadius:0,boxShadow:"none",display:"flex",flexDirection:"column",padding:"12px",boxSizing:"border-box",outline:"none",touchAction:"pan-y"},children:[(0,v.jsx)("div",{className:"reaction-filter",style:{display:"flex",gap:8,marginBottom:8,overflowX:"auto",paddingBottom:"4px"},children:W.map((e=>(0,v.jsx)("div",{className:"reaction-filter-item ".concat(j===e?"active":""),onClick:()=>T(e),style:{display:"flex",alignItems:"center",gap:6,padding:"6px 10px",cursor:"pointer",borderRadius:8,background:j===e&&"dark"===x?"#000":j===e?"#f0f8ff":"transparent",whiteSpace:"nowrap"},children:"all"===e?(0,v.jsxs)("span",{dir:"rtl",children:[A.length," \u0627\u0644\u0643\u0644"]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("img",{src:I[e],alt:e,className:"reaction-filter-icon",style:{width:20,height:20}}),(0,v.jsx)("span",{children:H[e]||0})]})},e)))}),(0,v.jsx)("div",{style:{flex:1,overflow:"hidden",position:"relative",direction:"ltr"},onTouchStart:Q,onTouchEnd:X,children:(0,v.jsx)("div",{ref:V,style:{display:"flex",flexDirection:"row",width:"".concat(100*W.length,"%"),height:"100%",transform:"translateX(-".concat(W.indexOf(j)/W.length*100,"%)"),transition:"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",willChange:"transform"},children:W.map((e=>(0,v.jsx)("div",{dir:k,style:{flex:"0 0 calc(100% / ".concat(W.length,")"),overflowY:"auto",WebkitOverflowScrolling:"touch",height:"100%",display:"flex",flexDirection:"column",gap:10,padding:"4px 2px",boxSizing:"border-box"},children:("all"===e?A:A.filter((t=>t.reaction===e))).map((e=>(0,v.jsxs)("div",{className:"reaction-user",style:{display:"flex",gap:12,alignItems:"center",padding:10,borderRadius:8,cursor:e.id.includes("AM-Reaction")?"default":"pointer",border:"1px solid #f0f
20f0"},onClick:()=>{e.id.includes("AM-Reaction")||N(e.id)},children:[(0,v.jsxs)("div",{className:"reaction-profile",style:{position:"relative",width:52,height:52},children:[(0,v.jsx)("img",{src:e.img,alt:"user",className:"reaction-user-img",style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"50%"}}),(0,v.jsx)("img",{src:I[e.reaction],alt:e.reaction,className:"reaction-user-icon",style:{position:"absolute",right:-6,bottom:-6,width:28,height:28}})]}),(0,v.jsxs)("div",{className:"reaction-user-details",style:{display:"flex",flexDirection:"column"},children:[(0,v.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[(0,v.jsx)("span",{className:"reaction-user-name",style:{fontWeight:600},children:e.name}),!!e.verified&&(0,v.jsx)("img",{src:"/assets/images/global/verified.png",alt:"verified",style:{width:16,height:16,marginLeft:4}}),e.followsYou&&(0,v.jsx)("span",{style:{fontSize:"11px",backgroundColor:"dark"===x?"rgba(255,255,255,0.1)":"#f0f0f0",color:"dark"===x?"#ccc":"#666",padding:"2px 6px",borderRadius:"4px"},children:"\u064a\u062a\u0627\u0628\u0639\u0643"})]}),(0,v.jsx)("span",{className:"reaction-user-tag",style:{color:"#666"},children:e.tag})]})]},e.id)))},e)))})})]})]}),document.body);return(0,v.jsxs)(v.Fragment,{children:[J,P&&(0,v.jsx)(g.A,{userId:P,onClose:()=>N(null),disableHistory:!0})]})}},26501:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a
vendor: 11,038 bytes, line 2
2=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var 
2s={pbox:[],sbox:[]};function l(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t,a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][o],a+=e.sbox[3][i],a}
2function c(e,t,n){let r,i=t,a=n;for(let s=0;s<o;++s)i^=e.pbox[s],a=l(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:a}}function u(e,t,n){let r,i=t,a=n;for(let s=o+1;s>1;--s)i^=e.pbox[s],a=l(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[1],i^=e.pbox[0],{left:i,right:a}}function d(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=a[o][t]}let r=0;for(let a=0;a<o+2;a++)e.pbox[a]=i[a]^t[r],r++,r>=n&&(r=0);let s=0,l=0,u=0;for(let i=0;i<o+2;i+=2)u=c(e,s,l),s=u.left,l=u.right,e.pbox[i]=s,e.pbox[i+1]=l;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)u=c(e,s,l),s=u.left,l=u.right,e.sbox[o][t]=s,e.sbox[o][t+1]=l;return!0}var p=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(s,t,n)}},encryptBlock:function(e,t){var n=c(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(p)}(),e.Blowfish}(n(84488),n(78523),n(54199),n(18211),n(52238))},26511:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("store",[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]])},26533:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},26562:(e,t,n)=>{"use strict";function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>r})},26600:(e,t,n)=>{var r=n(87937)(n(56552),"WeakMap");e.exports=r},26924:(e,t,n)=>{var r=n(97685),o=n(85204),i=n(65387),a=n(72070),s=n(26600),l=n(16913),c=n(96996),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=c(r),_=c(o),g=c(i),v=c(a),y=c(s),b=l;(r&&b(new r(new ArrayBuffer(1)))!=f||o&&b(new o)!=u||i&&b(i.resolve())!=d||a&&b(new a)!=p||s&&b(new s)!=h)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return f;case _:return u;case g:return d;case v:return p;case y:return h}return t}),e.exports=b},26989:(e,t,n)=>{var r=n(16399),o=n(22761);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}}
2,27033:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},27615:(e,t,n)=>{var r=n(95575);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},27760:e=>{e.exports=function(e){return this.__data__.get(e)}},27894:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},28006:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},28024:(e,t,n)=>{"use strict";n.d(t,{Ec:()=>a,Zk:()=>s,h5:()=>o,hY:()=>i});const r=["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645"],o=e=>r.includes(e),i=e=>{const t=Number(null===e||void 0===e?void 0:e.scheduledAt);return Number.isFinite(t)&&t>0?t:null},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();const n=i(e);return null!==n&&n>t},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();const t=new Date(e),n=60*t.getTimezoneOffset()*1e3;return new Date(t.getTime()-n).toISOString().slice(0,16)}},28673:(e,t,n)=>{var r=n(73204),o=n(83713),i=n(6571);e.exports=function(e){return i(e)?r(e):o(e)}},28917:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>i});var r=n(65043),o=n(9674);function i(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,r.useContext)(o.t);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=t,s=(0,r.useId)();(0,r.useEffect)((()=>{if(e)return a(s)}),[e]);const l=(0,r.useCallback)((()=>e&&i&&i(s)),[s,i,e]);return!n&&i?[!1,l]:[!0]}},29075:(e,t,n)=>{var r=n(96614),o=n(56326);e.exports=function(e,t){return r(e,o(e),t)}},29128:(e,t,n)=>{"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(65043),a=(r=i)&&r.__esModule?r:{default:r};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,s=e.height,l=void 0===s?24:s,c=e.style,u=void 0===c?{}:c,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:l},u)},d),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},29144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(40840)),o=a(n(56434)),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],o[t])})),t})),n};t.default=s},29935:(e,t,n)=>{var r=n(61340),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},30474:(e,t,n)=>{var r=n(73204),o=n(58122),i=n(6571);e.exports=function(e){return i(e)?r(e,!0):o(e)}},30502:(e,t,n)=>{"use strict";n.d(t,{AB:()=>a,rG:()=>i});const r=["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0645\u0634\u0631\u0641 \u0627\u0644\u0645\u062d\u062a\u0648\u0649"],o=["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645"],i=e=>!!e&&r.includes(e),a=e=>!!e&&o.includes(e)},30590:(e,t,n)=>{"use strict";n.d(t,{Kd:()=>a,WR:()=>i});var r=n(40117),o=n(47059);const i=()=>{try{var e,t;const n=null===(e=r.authApp.auth())||void 0===e||null===(t=e.currentUser)||void 0===t?void 0:t.uid;if(n)return n;return("function"===typeof a?a():null)||null}catch(n){console.error("Error getting current user ID:",n);try{return"function"===typeof a?a():null}catch(o){return null}}},a=()=>{try{const e=localStorage.getItem("USI");return e?(0,o.af)(e):null}catch(e){return null}}},31130:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]])}
2,31143:(e,t,n)=>{"use strict";n.d(t,{k:()=>c});var r,o=n(55149),i=n(38458),a=n(24558),s=n(5734),l=n(99723),c=(r=new WeakMap,class{constructor(){(0,o.A)(this,r,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,l.gn)(this.gcTime)&&(0,a.A)(r,this,s.zs.setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!==e&&void 0!==e?e:l.S$?1/0:3e5)}clearGcTimeout(){(0,i.A)(r,this)&&(s.zs.clearTimeout((0,i.A)(r,this)),(0,a.A)(r,this,void 0))}})},31837:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("list-plus",[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]])},32588:(e,t,n)=>{"use strict";function r(e,t){const n=e.fromUserName||t("notifications_page_unknown_user");switch(e.type){case"chat_message":return t("notifications_page_text_chat_message",{name:n,snippet:e.messageSnippet||""});case"follow":return t("notifications_page_text_follow",{name:n});case"reaction":return!e.postId||e.commentId||e.replyId?e.postId&&e.commentId&&!e.replyId?t("notifications_page_text_reaction_comment",{name:n}):e.postId&&e.commentId&&e.replyId?t("notifications_page_text_reaction_reply",{name:n}):t("notifications_page_text_reaction_generic",{name:n}):t("notifications_page_text_reaction_post",{name:n});case"mention":case"post":return t("notifications_page_text_mention",{name:n});case"comment":return e.coinsAmount&&e.coinsAmount>0?t("notifications_page_text_comment_with_coins",{name:n,coins:e.coinsAmount}):e.message?t("notifications_page_text_comment_with_message",{name:n,message:e.message}):t("notifications_page_text_comment",{name:n});case"coins_with_comment":return e.message?t("notifications_page_text_comment_with_message",{name:n,message:e.message}):t("notifications_page_text_coins_with_comment",{name:n,coins:e.coinsAmount||""});case"reply":return e.coinsAmount&&e.coinsAmount>0?t("notifications_page_text_reply_with_coins",{name:n,coins:e.coinsAmount}):e.message?t("notifications_page_text_reply_with_message",{name:n,message:e.message}):t("notifications_page_text_reply",{name:n});case"private_message":return t("notifications_page_text_private_message",{name:n,snippet:e.messageSnippet||""});case"group_message":return t("notifications_page_text_group_message",{name:n,group:e.groupName||"",snippet:e.messageSnippet||""});case"team_request":return e.message||t("notifications_page_text_team_request");case"team_approval":return e.message||t("notifications_page_text_team_approval",{team:e.teamName||""});case"team_promotion":return e.message||t("notifications_page_text_team_promotion",{team:e.teamName||"",role:e.teamRole?t("notifications_page_text_team_promotion_role",{role:e.teamRole}):""});case"team_kick":return e.message||t("notifications_page_text_team_kick",{team:e.teamName||""});case"saraha":return e.message?e.isAnonymous?t("notifications_page_text_saraha_named",{message:e.message}):t("notifications_page_text_saraha_from",{name:n,message:e.message}):e.isAnonymous?t("notifications_page_text_saraha_anonymous"):t("notifications_page_text_saraha_generic");case"coins_sent":return e.message||t("notifications_page_text_coins_sent",{name:n,coins:e.coinsAmount||""});case"post_blocked":return e.message||t("notifications_page_post_blocked");case"profile_image_blocked":return e.message||t("notifications_page_profile_image_blocked");case"cover_image_blocked":return e.message||t("notifications_page_cover_image_blocked");case"blocked":return t("reply"===e.originType?"notifications_page_reply_blocked":"notifications_page_comment_blocked",{reason:e.reason});case"unblocked":return t("reply"===e.originType?"notifications_page_reply_unblocked":"notifications_page_comment_unblocked");default:return t("notifications_page_text_default")}}n.d(t,{J:()=>r})},33039:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(22555),o=n(65043),i=n(97950),a=n(75439),s=n(47174),l=n(13005),c=n(10624),u=n(89927),d=n(59773),p=n(75012),h=n(65982),f=n(30590),m=n(34352),_=n(43946),g=n(70579);const v=e=>{let{post:t,postId:n,fallbackPost:v=null,onClose:y,isFromExternal:b=!1}=e;const[w,x]=(0,o.useState)(t||v||null),k=(0,a.Zp)(),{theme:S}=(0,l.DP)(),{resolvedDirection:C}=(0,c.o)(),{userData:A}=(0,h.Jd)(),[E,j]=(0,o.useState)(!1),[T,P]=(0,o.useState)(null);(0,o.useEffect)((()=>{let e=!1;const o=n||(null===t||void 0===t?void 0:t.id);if(x(t||v||null),o)return s.A.getPost(o,!0).then((t=>{e||(!0===(null===t||void 0===t?void 0:t.deleted)&&v?x((0,r.A)((0,r.A)((0,r.A)({},t),v),{},{content:v.content||t.content||"",title:v.title||t.title||"\u0641\u0639\u0627\u0644\u064a\u0629",coverImage:v.coverImage||t.coverImage||null,deleted:!1})):t?x(t):v&&x(v))})).catch((e=>{console.error("Failed to refresh single post:",e)})),()=>{e=!0}}),[v,t,n]);const N=o.useRef(!1),I=o.useRef(!1),R=o.useRef(null),O=o.useRef(!1),D=o.useRef(!1),M=o.useRef(null),L=o.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];N.current||(N.current=!0,window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"close"}})),(0,u.Vz)()===R.current&&(0,u.tu)(R.current,!e))}),[]),F=o.useCallback((()=>{N.current||(j(!0),L(!1),M.current=window.setTimeout(y,250))}),[L,y]),z=o.useCallback((e=>{!N.current&&e&&P(e)}),[]);(0,o.useEffect)((()=>(O.current||(window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"open"}})),R.current=(0,u.GR)("single-post"),O.current=!0),()=>
2{M.current&&window.clearTimeout(M.current),D.current?L(!1):D.current=!0})),[L]);const B=o.useRef(null);(0,o.useEffect)((()=>{B.current={onClose:y,isFromExternal:b,navigate:k,emitClose:L}}),[y,b,k,L]);const q=o.useRef(null);(0,o.useEffect)((()=>{q.current&&window.removeEventListener("popstate",q.current);const e=e=>{if((0,u.G0)())return;if((0,u.Vz)()!==R.current)return;(0,u.Xi)(),e.preventDefault();const{onClose:t,isFromExternal:n,navigate:r,emitClose:o}=B.current;j(!0),o(!0),M.current=window.setTimeout((()=>{n?r("/",{replace:!0}):t(),setTimeout((()=>(0,u.Ps)()),0)}),250)};return q.current=e,window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e),q.current=null}}),[]);const U=!0===(null===w||void 0===w?void 0:w.deleted),H=!0===(null===w||void 0===w?void 0:w.blocked),W=(0,f.WR)()||(null===A||void 0===A?void 0:A.id)||null,V=!!w&&!(0,m.WD)(w,null===A||void 0===A?void 0:A.role,W),K=U||H||V;return(0,i.createPortal)((0,g.jsx)("div",{className:"post-modal-overlay single-post-modal-overlay ".concat(E?"closing":""),dir:C,onMouseDown:e=>{I.current=e.target===e.currentTarget},onClick:()=>{I.current&&F(),I.current=!1},style:{padding:0,position:"fixed",inset:0,background:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(5px)",zIndex:(0,u.v7)(1e3),display:"flex",justifyContent:"center",alignItems:"center"},children:(0,g.jsxs)("div",{className:"post-modal-content single-post-modal-content ".concat("dark"===S?"theme-dark-space":"theme-light-space"," ").concat(E?"closing":""),onClick:e=>e.stopPropagation(),style:{backgroundColor:"#fff",width:"100vw",height:"100vh",display:"flex",flexDirection:"column",position:"relative"},children:[(0,g.jsx)(d.A,{title:!0===(null===w||void 0===w?void 0:w.event)?"\u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629":"\u0627\u0644\u0645\u0646\u0634\u0648\u0631",onBack:F,className:"dark"===S?"theme-dark-item":"theme-light-item"}),(0,g.jsx)("div",{className:"single-post-container ".concat("dark"===S?"theme-dark-space":"theme-light-space"),style:{flex:1,overflowY:"auto"},children:w?K?(0,g.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:"40px 24px",textAlign:"center",gap:"12px"},children:[(0,g.jsx)("span",{style:{fontSize:48},children:V?"\ud83d\udd12":U?"\ud83d\uddd1\ufe0f":"\ud83d\udeab"}),(0,g.jsx)("h2",{style:{margin:0,fontSize:18,fontWeight:700,color:"dark"===S?"#f0f6fc":"#111827"},children:V?"\u0647\u0630\u0647 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629 \u063a\u064a\u0631 \u0645\u0646\u0634\u0648\u0631\u0629 \u0628\u0639\u062f":U?"\u062a\u0645 \u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631":"\u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u062d\u0638\u0648\u0631"}),(0,g.jsx)("p",{style:{margin:0,fontSize:14,color:"dark"===S?"#8b949e":"#6b7280",maxWidth:"28ch",lineHeight:1.7},children:V?"\u064a\u0645\u0643\u0646 \u0644\u0645\u0646\u0634\u0626 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629 \u0648\u0627\u0644\u0625\u0634\u0631\u0627\u0641 \u0627\u0644\u0639\u0627\u0645 \u0641\u0642\u0637 \u0639\u0631\u0636\u0647\u0627 \u062d\u062a\u0649 \u062a\u062a\u0645 \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0642\u0648\u0627\u0639\u062f \u0623\u0648 \u0627\u0644\u062c\u0648\u0627\u0626\u0632.":U?"\u0642\u0627\u0645 \u0635\u0627\u062d\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0623\u0648 \u0623\u062d\u062f \u0627\u0644\u0645\u0634\u0631\u0641\u064a\u0646 \u0628\u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631.":"\u062a\u0645 \u062d\u062c\u0628 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0642\u0650\u0628\u0644 \u0641\u0631\u064a\u0642 \u0627\u0644\u0625\u0634\u0631\u0627\u0641 \u0644\u0645\u062e\u0627\u0644\u0641\u062a\u0647 \u0642\u0648\u0627\u0646\u064a\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642."}),(0,g.jsx)("button",{onClick:F,style:{marginTop:8,padding:"10px 24px",background:"#3b82f6",color:"#fff",border:"none",borderRadius:10,fontSize:14,fontWeight:700,cursor:"pointer"},children:"\u0627\u0644\u0639\u0648\u062f\u0629"})]}):(0,g.jsx)(p.RK,{post:w,isFullView:!0,onHashtagClick:z,onNavigateAway:y}):(0,g.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",color:"#888"},children:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644..."})}),T&&(0,g.jsx)(_.default,{hashtag:T,onClose:()=>P(null)})]})}),document.body)}},33097:(e,t,n)=>{var r=n(52969);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},33279:e=>{e.exports=function(e){return e}},33411:(e,t,n)=>{var r=n(50149),o=n(9096),i=n(38883),a=n(54052);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}}
2,34352:(e,t,n)=>{"use strict";n.d(t,{ID:()=>d,Q$:()=>s,Qf:()=>p,WD:()=>h,f6:()=>u,g5:()=>a,l$:()=>c,yl:()=>l});const r=["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645"],o=[...r,"\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a","\u0645\u0634\u0631\u0641 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a"],i=[...r,"\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a"],a=e=>r.includes(e),s=e=>o.includes(e),l=e=>i.includes(e),c=e=>o.includes(e),u=(e,t,n)=>l(t)||Boolean(n&&(null===e||void 0===e?void 0:e.createdBy)===n),d=e=>{const t=(null===e||void 0===e?void 0:e.eventRules)||(null===e||void 0===e?void 0:e.officialRules)||(null===e||void 0===e?void 0:e.rules);return Array.isArray(t)?t.filter(Boolean):[]},p=e=>Boolean(null===e||void 0===e?void 0:e.allWinners)||Array.isArray(null===e||void 0===e?void 0:e.prizes)&&e.prizes.length>0,h=(e,t,n)=>!0!==(null===e||void 0===e?void 0:e.event)||(e=>!0===(null===e||void 0===e?void 0:e.event)&&(d(e).length>0||p(e)))(e)||l(t)||(null===e||void 0===e?void 0:e.createdBy)===n},34453:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]])},34552:(e,t,n)=>{var r=n(9812),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},34677:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(48311);const o=(e,t)=>{var n,o,i,a;const s=t?t.split("-")[0]:"ar";return null!==(n=null!==(o=null===(i=r.P[s])||void 0===i?void 0:i[e])&&void 0!==o?o:null===(a=r.P.en)||void 0===a?void 0:a[e])&&void 0!==n?n:e},i=(e,t)=>e.replace("{count}",t),a=(e,t)=>{const n=Date.now()-e,r=Math.floor(n/6e4),a=t||(()=>{if("undefined"!==typeof document){const e=document.documentElement.lang;if(e)return e.split("-")[0]}return"undefined"!==typeof navigator&&navigator.language?navigator.language.split("-")[0]:"ar"})();if(r<1)return o("time_ago_just_now",a);if(1===r)return o("time_ago_one_minute",a);if(r<60)return i(o("time_ago_minutes",a),r);const s=Math.floor(r/60);if(1===s)return o("time_ago_one_hour",a);if(2===s)return o("time_ago_two_hours",a);if(s<10)return i(o("time_ago_hours",a),s);if(s<24)return i(o("time_ago_hours_alt",a),s);const l=Math.floor(s/24);if(1===l)return o("time_ago_one_day",a);if(2===l)return o("time_ago_two_days",a);if(l<10)return i(o("time_ago_days",a),l);if(l<30)return i(o("time_ago_days_alt",a),l);const c=Math.floor(l/7);if(1===c)return o("time_ago_one_week",a);if(2===c)return o("time_ago_two_weeks",a);if(c<4)return i(o("time_ago_weeks",a),c);const u=Math.floor(l/30);if(1===u)return o("time_ago_one_month",a);if(2===u)return o("time_ago_two_months",a);if(u<12)return i(o("time_ago_months",a),u);const d=new Date(e),p=d.getFullYear(),h=String(d.getMonth()+1).padStart(2,"0"),f=String(d.getDate()).padStart(2,"0");return"".concat(p,"/").concat(h,"/").concat(f)}},34930:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(65043);function o(e){const t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},35016:(e,t,n)=>{"use strict";n.d(t,{As:()=>l,OJ:()=>u,TA:()=>c});var r=n(65043),o=n(40117),i=n(30590),a=n(70579);const s=(0,r.createContext)(),l=()=>{const e=(0,r.useContext)(s);if(!e)throw new Error("useAuth must be used within AuthProvider");return e},c=()=>{const{currentUserId:e}=l();return e},u=e=>{let{children:t}=e;const[n,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(null),[d,p]=(0,r.useState)(!0),h=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e={current:!0};(()=>{const e=(0,i.Kd)();!!e&&(console.log("\u2705 AuthContext - User loaded from USI/localStorage:",e),u(e),h.current=!0,p(!1))})();const t=o.authApp.auth().onAuthStateChanged((t=>{console.log("\ud83d\udd10 AuthContext - onAuthStateChanged:",null===t||void 0===t?void 0:t.uid),e.current&&(l(t),t?(u(t.uid),h.current=!0):h.current||u(null),p(!1))})),n=setTimeout((()=>{e.current&&(console.log("\u23f1\ufe0f AuthContext - Timeout, setting loading to false"),p(!1))}),3e3);return()=>{e.current=!1,t(),clearTimeout(n)}}),[]);const f={currentUser:n,currentUserId:c,loading:d,isAuthenticated:!!n||!!c,getUserId:()=>{var e,t;return c||(null===(e=o.authApp.auth())||void 0===e||null===(t=e.currentUser)||void 0===t?void 0:t.uid)||null}};return(0,a.jsx)(s.Provider,{value:f,children:t})}},35081:(e,t,n)=>{"use strict";n(16904)},35087:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},35324:(e,t,n)=>{var r=n(54052),o=n(62597),i=n(14079),a=n(41069);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}}
2,35428:(e,t,n)=>{var r=n(16913),o=n(56173),i=n(22761),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},35746:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},35896:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(65043),o=n(97950),i=n(85692),a=n(65469),s=n(75686);const l=(0,n(77784).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);var c=n(13005),u=n(10624),d=n(89927),p=n(70579);const h=e=>{let{imageUrl:t,onClose:n,sourceRect:h}=e;const{theme:f}=(0,c.DP)(),{resolvedDirection:m}=(0,u.o)(),_="rtl"===m,[g,v]=(0,r.useState)(!1),[y,b]=(0,r.useState)(!0),[w,x]=(0,r.useState)(!1),k=(0,r.useRef)(!1),S=(0,r.useRef)(!1),C=(0,r.useRef)(null),A=()=>{k.current||(k.current=!0,x(!0),C.current&&(0,d.tu)(C.current,!S.current),setTimeout((()=>{n()}),400))},E=(0,r.useRef)(!1),j=(0,r.useRef)(!1);(0,r.useEffect)((()=>{E.current||(E.current=!0,C.current=(0,d.GR)("image-viewer"));const e=()=>{(0,d.Vz)()!==C.current||k.current||(S.current=!0,A())};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e),j.current?S.current||k.current||!C.current||(0,d.tu)(C.current,!0):j.current=!0}}),[]),(0,r.useEffect)((()=>{setTimeout((()=>b(!1)),100)}),[]);return(0,o.createPortal)((0,p.jsxs)("div",{className:"image-viewer-overlay ".concat(w?"closing":""," ").concat("dark"===f?"theme-dark-space":"theme-light-space"),dir:m,onClick:A,style:{zIndex:(0,d.v7)(1e3)},children:[(0,p.jsxs)("div",{className:"image-viewer-header",children:[(0,p.jsx)("button",{className:"close-button",onClick:A,children:_?(0,p.jsx)(i.A,{size:28}):(0,p.jsx)(a.A,{size:28})}),(0,p.jsxs)("div",{className:"menu-container",children:[(0,p.jsx)("button",{className:"menu-button",onClick:e=>{e.stopPropagation(),v(!g)},children:(0,p.jsx)(s.A,{size:28})}),g&&(0,p.jsx)("div",{className:"menu-dropdown",onClick:e=>e.stopPropagation(),children:(0,p.jsxs)("button",{className:"menu-item",onClick:async()=>{try{v(!1);const e="https://download-image.amposter.workers.dev/?url=".concat(encodeURIComponent(t)),n=await fetch(e);if(!n.ok)throw new Error("HTTP error! status: ".concat(n.status));const r=await n.blob(),o=window.URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download="amposter-image-".concat(Date.now(),".jpg"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(o)}catch(e){console.error("\u0641\u0634\u0644 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0635\u0648\u0631\u0629:",e),window.open(t,"_blank")}},children:[(0,p.jsx)(l,{size:20}),(0,p.jsx)("span",{children:"\u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0635\u0648\u0631\u0629"})]})})]})]}),(0,p.jsx)("div",{className:"image-container ".concat(y?"zooming":""," ").concat(w?"closing":""),onClick:e=>e.stopPropagation(),style:(()=>{if(!h)return{};const e=h.left+h.width/2,t=h.top+h.height/2,n=window.innerWidth/2,r=window.innerHeight/2;return{"--start-x":"".concat(e-n,"px"),"--start-y":"".concat(t-r,"px"),"--start-scale":Math.min(h.width/window.innerWidth,h.height/window.innerHeight)}})(),children:(0,p.jsx)("img",{src:t,alt:"\u0639\u0631\u0636 \u0627\u0644\u0635\u0648\u0631\u0629"})})]}),document.body)}},36140:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},36210:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},36222:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(22555),o=n(65043),i=n(75439),a=n(40117),s=n(47174),l=n(30590),c=n(65982),u=n(13005),d=n(10624),p=n(66006),h=n(92730),f=n(7540),m=n(91118),_=n(70534),g=n(65871),v=n(56200),y=n(43457),b=n(56095),w=n(8145),x=n(88306),k=n(75686),S=n(70579);const C=["like","love","care","haha","wow","sad","angry"],A={like:"https://assets.amposter.com/reactions/reaction_pack1/like.png",love:"https://assets.amposter.com/reactions/reaction_pack1/love.png",care:"https://assets.amposter.com/reactions/reaction_pack1/care.png",wow:"https://assets.amposter.com/reactions/reaction_pack1/wow.png",haha:"https://assets.amposter.com/reactions/reaction_pack1/haha.png",sad:"https://assets.amposter.com/reactions/reaction_pack1/sad.png",angry:"https://assets.amposter.com/reactions/reaction_pack1/angry.png"},E=e=>{let{postId:t,showMenuButton:n=!0,style:E={}}=e;const{userData:j}=(0,c.Jd)(),{currentModal:T,setCurrentModal:P}=o.useContext(y.V),{theme:N}=(0,u.DP)(),I=(0,i.Zp)(),{t:R}=(0,d.o)(),O=(0,o.useMemo)((()=>({like:R("post_action_reaction_like"),love:R("post_action_reaction_love"),care:R("post_action_reaction_care"),haha:R("post_action_reaction_haha"),wow:R("post_action_reaction_wow"),sad:R("post_action_reaction_sad"),angry:R("post_action_reaction_angry")})),[R]),[D,M]=(0,o.useState)(null),[L,F]=(0,o.useState)(null),[z,B]=(0,o.useState)({}),[q,U]=(0,o.useState)(!1),[H,W]=(0,o.useState)((()=>O.like)),[V,K]=(0,o.useState)(A),[G,Y]=(0,o.useState)(0),[Q,X]=(0,o.useState)(null),[$,J]=(0,o.useState)(null),[Z,ee]=(0,o.useState)(!1),[te,ne]=(0,o.useState)(!1),[re,oe]=(0,o.useState)({post_id:null,comment_id:null,prefillMention:!1}),[ie,ae]=(0,o.useState)({isOpen:!1,title:"",message:"",confirmText:"",cancelText:"",isDangerous:!1,onConfirm:null,cancelAction:null}),[se,le]=(0,o.useState)(!1),ce=(0,o.useRef)(null),ue=(0,o.useRef)(null),de=(0,l.WR)()||(null===j||void 0===j?void 0:j.id)||(null===j||void 0===j?void 0:j.uid),pe=(null===D||void 0===D?void 0:D.createdBy)||(null===D||void 0===D?void 0:D.created_by)||null,he=(Boolean(de&&pe&&de===pe),!1===(null===D||void 0===D?void 0:D.allowComments)),fe=!1===(null===D||void 0===D?void 0:D.allowReactions);(0,o.useEffect)((()=>
2{if(!t)return;s.A.getPost(t).then((e=>{e&&M(e)}));const e=e=>{var n;(null===(n=e.detail)||void 0===n?void 0:n.postId)===t&&s.A.getPost(t).then((e=>{e&&M(e)}))};return window.addEventListener("postUpdated",e),()=>window.removeEventListener("postUpdated",e)}),[t]),(0,o.useEffect)((()=>{if(null===D||void 0===D||!D.createdBy)return;return(0,h._A)(D.createdBy,(e=>{K(e)}))}),[null===D||void 0===D?void 0:D.createdBy]),(0,o.useEffect)((()=>{t&&(a.firebase.database().ref("posts/".concat(t,"/reactionCounts")).once("value").then((e=>{const t=e.val()||{};B(t)})).catch((()=>{a.firebase.database().ref("posts/".concat(t,"/reactions")).once("value").then((e=>{const t=e.val()||{},n={};Object.values(t).forEach((e=>{n[e]=(n[e]||0)+1})),B(n)})).catch((()=>{}))})),de?a.firebase.database().ref("posts/".concat(t,"/reactions/").concat(de)).once("value").then((e=>F(e.val()||null))).catch((()=>{})):F(null))}),[t,de]),(0,o.useEffect)((()=>{t&&a.firebase.database().ref("posts/".concat(t,"/comments")).orderByKey().limitToLast(1).once("value").then((e=>Y(e.numChildren())))}),[t]),(0,o.useEffect)((()=>{if(!de)return void J(null);let e=!0;return(async()=>{try{const t=await s.A.getRole(de),n="object"===typeof t&&null!==t?t.role||Object.values(t)[0]:t;e&&J(n||null)}catch(t){console.error("PostActionsComponent fetchRole error:",t)}})(),()=>{e=!1}}),[de]),(0,o.useEffect)((()=>{if(null===D||void 0===D||!D.team)return void X(null);let e=!0;return(async()=>{try{const t=await s.A.getTeam(D.team);e&&t&&X({id:D.team,name:t.name||"",flag:t.flag||"",level:t.level||""})}catch(t){console.error("PostActionsComponent fetchTeam error:",t)}})(),()=>{e=!1}}),[null===D||void 0===D?void 0:D.team]);const me=e=>{W(O[e]||O.like)};(0,o.useEffect)((()=>{me(L)}),[L,O]);const _e=async e=>{if(!D)return;if(fe)return;if(!j)return void I("/login");if(!j.name||!j.tag)return void I("/create-profile");const t=await(0,f.ye)(D.id);if(t){try{const e=await a.firebase.database().ref("posts/".concat(D.id,"/reactionCounts")).once("value");B(e.val()||{});const t=await a.firebase.database().ref("posts/".concat(D.id,"/reactions/").concat(de)).once("value");F(t.val()||null)}catch(l){}return void alert(t)}const n=a.firebase.database().ref("posts/".concat(D.id,"/reactions/").concat(de)),o=async(e,t)=>{try{await(e=>a.firebase.database().ref("posts/".concat(D.id,"/reactionCounts/").concat(e)))(e).transaction(t)}catch(n){console.warn("Reaction count sync failed:",e,n)}},i=L;F(e===i?null:e),B((t=>{const n=(0,r.A)({},t||{});return i&&i!==e&&(n[i]=Math.max(0,(Number(n[i])||1)-1)),e&&e!==i&&(n[e]=(Number(n[e])||0)+1),e===i&&(n[e]=Math.max(0,(Number(n[e])||1)-1)),n})),window.dispatchEvent(new CustomEvent("postReactionOptimisticUpdate",{detail:{postId:D.id,userId:de,prevReaction:i,nextReaction:e===i?null:e}}));try{i&&i===e?(await n.remove(),await o(e,(e=>Math.max(0,(Number(e)||1)-1))),W(O.like),(0,f.DK)(j.id,e).catch((()=>{}))):(await n.set(e),await o(e,(e=>(Number(e)||0)+1)),i&&i!==e&&await o(i,(e=>Math.max(0,(Number(e)||1)-1))),pe&&pe!==de&&(0,p.xd)(pe,j,"reaction",e,D.id,null,null),me(e),U(!1),i?(0,f.B$)(j.id,i,e).catch((()=>{})):(0,f.PV)(j.id,e).catch((()=>{})));try{const e=(await a.firebase.database().ref("posts/".concat(D.id,"/reactionCounts")).once("value")).val()||{};B(e);try{s.A.updatePostInCache(D.id,{reactionCounts:e})}catch(l){}window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:D.id}}))}catch(l){}}catch(c){console.warn("Reaction update failed, rolling back:",c);try{const e=await a.firebase.database().ref("posts/".concat(D.id,"/reactionCounts")).once("value");if(B(e.val()||{}),de){const e=await a.firebase.database().ref("posts/".concat(D.id,"/reactions/").concat(de)).once("value");F(e.val()||null)}}catch(l){}}},ge=()=>{fe||(ce.current=setTimeout((()=>U(!0)),500))},ve=()=>{clearTimeout(ce.current)},ye=async(e,t)=>{if(null===D||void 0===D||!D.id)return;const n=a.firebase.database().ref("posts/".concat(D.id));await n.child(e).set(t);if((await n.child(e).once("value")).val()!==t)throw new Error("Failed to persist ".concat(e));await s.A.updatePostInCache(D.id,{[e]:t}),M((n=>n?(0,r.A)((0,r.A)({},n),{},{[e]:t}):n)),window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:D.id}}))};if(!D)return null;
2Object.entries(z||{}).sort(((e,t)=>t[1]-e[1])).slice(0,3).length,Object.values(z||{}).reduce(((e,t)=>e+t),0),null===D||void 0===D||D.coins;return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)("div",{className:"post-actions",style:E,children:[(0,S.jsxs)("div",{className:"reaction-button",onTouchStart:ge,onTouchEnd:ve,onMouseDown:ge,onMouseUp:ve,onClick:()=>{fe||q||q||_e(L||"like")},style:{opacity:fe?.5:1,cursor:fe?"not-allowed":"pointer"},children:[!L&&(0,S.jsx)(b.A,{}),C.map((e=>e===L&&(0,S.jsx)("img",{src:V[e],alt:e,onClick:()=>_e(e),className:"post-reaction-icon"},e))),(0,S.jsx)("span",{style:L?{color:"#1da1f2"}:{color:"dark"===N?"#e6eef6":"#000000"},children:fe?R("post_action_reactions_closed"):H})]}),q&&!fe&&(0,S.jsx)("div",{className:"reaction-bar ".concat("dark"===N?"theme-dark-item":"theme-light-item"),children:C.map((e=>(0,S.jsx)("img",{src:V[e],alt:e,onClick:()=>_e(e),className:"post-reaction-icon"},e)))}),(0,S.jsxs)("div",{onClick:()=>{D&&(j?j.name&&j.tag?he?ae({isOpen:!0,title:R("post_action_comments_closed_title"),message:R("post_action_comments_closed_message"),isDangerous:!1,confirmText:R("post_action_ok"),cancelText:R("post_action_view_comments"),action:()=>ae((0,r.A)((0,r.A)({},ie),{},{isOpen:!1})),cancelAction:()=>{ee(!0),P("comments"),ae((0,r.A)((0,r.A)({},ie),{},{isOpen:!1}))}}):(ee(!0),P("comments")):I("/create-profile"):I("/login"))},style:{cursor:he?"not-allowed":"pointer",display:"flex",alignItems:"center",gap:6,opacity:he?.5:1},children:[(0,S.jsx)(w.A,{}),(0,S.jsx)("span",{children:R(he?"post_action_comments_closed":"post_action_comments")})]}),Q?(0,S.jsxs)("div",{onClick:()=>I("/team/".concat(Q.id,"/posts")),style:{display:"flex",alignItems:"center",gap:6,cursor:"pointer"},children:[(0,S.jsx)("img",{src:Q.flag,alt:"team-icon",className:"team-flag",loading:"lazy",decoding:"async"}),(0,S.jsx)("span",{children:Q.name})]}):(0,S.jsxs)("div",{onClick:async()=>{if(!D)return;if(!j)return void I("/login");if(!j.name||!j.tag)return void I("/create-profile");const e="".concat(window.location.origin,"/post/").concat(D.id);if(navigator.share)try{await navigator.share({title:D.title||D.name||R("post_action_default_post_title"),text:R("post_action_share_text"),url:e})}catch(t){"AbortError"!==t.name&&console.error("Error sharing:",t)}else navigator.clipboard.writeText(e).catch((()=>{}))},style:{display:"flex",alignItems:"center",gap:6,cursor:"pointer"},children:[(0,S.jsx)(x.A,{}),(0,S.jsx)("span",{children:R("post_action_share")})]}),n&&(0,S.jsx)("div",{style:{position:"relative"},children:(0,S.jsx)(k.A,{ref:ue,size:18,style:{cursor:"pointer"},onClick:e=>{e.preventDefault(),e.stopPropagation(),se?le(!1):window.requestAnimationFrame((()=>le(!0)))}})})]}),n&&se&&(0,S.jsx)(v.A,{item:D,collection:"posts",type:"post",currentUserId:de,userRole:$,onToggleComments:async()=>{const e=!(!1===(null===D||void 0===D?void 0:D.allowComments));try{await ye("allowComments",e),le(!1)}catch(t){console.error("PostActionsComponent toggle comments error:",t)}},onToggleReactions:async()=>{const e=!(!1===(null===D||void 0===D?void 0:D.allowReactions));try{await ye("allowReactions",e),le(!1)}catch(t){console.error("PostActionsComponent toggle reactions error:",t)}},onClose:()=>le(!1),onUpdated:(e,t)=>{e===(null===D||void 0===D?void 0:D.id)&&M((e=>e?(0,r.A)((0,r.A)({},e),t):e))}}),Z&&(0,S.jsx)(m.A,{postId:D.id,isOpen:Z,onClose:()=>{ee(!1),P(null)},onOpenReply:function(e,t){oe({post_id:e,comment_id:t,prefillMention:!!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])}),ne(!0),P("reply")}}),te&&(0,S.jsx)(_.A,{post_id:re.post_id,comment_id:re.comment_id,prefillMention:re.prefillMention,onClose:()=>{ne(!1),P("comments")}}),(0,S.jsx)(g.A,{isOpen:ie.isOpen,title:ie.title,message:ie.message,confirmText:ie.confirmText,cancelText:ie.cancelText,isDangerous:ie.isDangerous,onConfirm:ie.action,onCancel:()=>{ie.cancelAction?ie.cancelAction():ae((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1})))}})]})},j=o.memo(E)},36954:(e,t,n)=>{var r=n(11629),o=n(37857),i=n(46686),a=n(96996),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},37105:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},37159:(e,t,n)=>{var r=n(12622);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},37475:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},37719:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},37780:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,r=t.algo,o=[],i=[],a=[],s=[],l=[],c=[],u=[],d=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var f=r^r<<1^r<<2^r<<3^r<<4;f=f>>>8^255&f^99,o[n]=f,i[f]=n;var m=e[n],_=e[m],g=e[_],v=257*e[f]^16843008*f;a[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,c[n]=v,v=16843009*g^65537*_^257*m^16843008*n,u[f]=v<<24|v>>>8,d[f]=v<<16|v>>>16,p[f]=v<<8|v>>>24,h[f]=v,n?(n=m^e[e[e[g^m]]],r^=e[e[r]]):n=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],a=0;a<r;a++)a<n?i[a]=t[a]:(c=i[a-1],a%n?n>6&&a%n==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[a/n|0]<<24),i[a]=i[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var c=i[a];else c=i[a-4];s[l]=l<4||a<=4?c:u[o[c>>>24]]^d[o[c>>>16&255]]^p[o[c>>>8&255]]^h[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,p,h,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],h=4,f=1;f<l;f++){var m=r[c>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&p]^n[h++],_=r[u>>>24]^o[d>>>16&255]^i[p>>>8&255]^a[255&c]^n[h++],g=r[d>>>24]^o[p>>>16&255]^i[c>>>8&255]^a[255&u]^n[h++],v=r[p>>>24]^o[c>>>16&255]^i[u>>>8&255]^a[255&d]^n[h++];c=m,u=_,d=g,p=v}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^n[h++],_=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&c])^n[h++],g=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[h++],v=(s[p>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[h++],e[t]=m,e[t+1]=_,e[t+2]=g,e[t+3]=v},keySize:8});t.AES=n._createHelper(m)}(),e.AES}(n(84488),n(78523),n(54199),n(18211),n(52238))},37857:(e,t,n)=>
2{var r=n(13440),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},38268:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},38326:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},38458:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(26562);function o(e,t){return e.get((0,r.A)(e,t))}},38541:(e,t,n)=>{var r=n(9812),o=n(50149),i=n(54052),a=n(19841),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},38679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49886),o={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},i=function(e,t){if(!e)throw a(t)},a=function(e){return new Error("Firebase Database ("+o.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},s=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var o=e.charCodeAt(r);o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=63&o|128):55296===(64512&o)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++r)),t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=63&o|128)}return t},l={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],o=0;o<e.length;o+=3){var i=e[o],a=o+1<e.length,s=a?e[o+1]:0,l=o+2<e.length,c=l?e[o+2]:0,u=i>>2,d=(3&i)<<4|s>>4,p=(15&s)<<2|c>>6,h=63&c;l||(h=64,a||(p=64)),r.push(n[u],n[d],n[p],n[h])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var o=e[n++];if(o<128)t[r++]=String.fromCharCode(o);else if(o>191&&o<224){var i=e[n++];t[r++]=String.fromCharCode((31&o)<<6|63&i)}else if(o>239&&o<365){var a=((7&o)<<18|(63&(i=e[n++]))<<12|(63&(s=e[n++]))<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{i=e[n++];var s=e[n++];t[r++]=String.fromCharCode((15&o)<<12|(63&i)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],o=0;o<e.length;){var i=n[e.charAt(o++)],a=o<e.length?n[e.charAt(o)]:0,s=++o<e.length?n[e.charAt(o)]:64,l=++o<e.length?n[e.charAt(o)]:64;if(++o,null==i||null==a||null==s||null==l)throw Error();var c=i<<2|a>>4;if(r.push(c),64!==s){var u=a<<4&240|s>>2;if(r.push(u),64!==l){var d=s<<6&192|l;r.push(d)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},c=function(e){try{return l.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function u(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=u(e[n],t[n]));return e}var d=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}},e}();function p(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function h(){try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(e){return!1}}var f=function(e){function t(n,r){var o=e.call(this,r)||this;return o.code=n,o.name="FirebaseError",Object.setPrototypeOf(o,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,m.prototype.create),o}return r.__extends(t,e),t}(Error),m=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=t[0]||{},o=this.service+"/"+e,i=this.errors[e],a=i?function(e,t){return e.replace(_,(function(e,n){var r=t[n];return null!=r?String(r):"<"+n+"?>"}))}(i,r):"Error",s=this.serviceName+": "+a+" ("+o+").",l=new f(o,s),c=0,u=Object.keys(r);c<u.length;c++){var d=u[c];
2"_"!==d.slice(-1)&&(d in l&&console.warn('Overwriting FirebaseError base field "'+d+'" can cause unexpected behavior.'),l[d]=r[d])}return l},e}();var _=/\{\$([^}]+)}/g;function g(e){return JSON.parse(e)}var v=function(e){var t={},n={},r={},o="";try{var i=e.split(".");t=g(c(i[0])||""),n=g(c(i[1])||""),o=i[2],r=n.d||{},delete n.d}catch(a){}return{header:t,claims:n,data:r,signature:o}};var y=function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}return e.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},e.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"===typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(r=16;r<80;r++){var o=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(o<<1|o>>>31)}var i,a,s=this.chain_[0],l=this.chain_[1],c=this.chain_[2],u=this.chain_[3],d=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(i=u^l&(c^u),a=1518500249):(i=l^c^u,a=1859775393):r<60?(i=l&c|u&(l|c),a=2400959708):(i=l^c^u,a=3395469782);o=(s<<5|s>>>27)+i+d+a+n[r]&4294967295;d=u,u=c,c=4294967295&(l<<30|l>>>2),l=s,s=o}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+l&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+u&4294967295,this.chain_[4]=this.chain_[4]+d&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,o=this.buf_,i=this.inbuf_;r<t;){if(0===i)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"===typeof e){for(;r<t;)if(o[i]=e.charCodeAt(r),++r,++i===this.blockSize){this.compress_(o),i=0;break}}else for(;r<t;)if(o[i]=e[r],++r,++i===this.blockSize){this.compress_(o),i=0;break}}this.inbuf_=i,this.total_+=t}},e.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var o=24;o>=0;o-=8)e[r]=this.chain_[n]>>o&255,++r;return e},e}();var b=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(n)})).catch((function(e){n.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,n){var r,o=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!==typeof e||null===e)return!1;for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o in e&&"function"===typeof e[o])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=w),void 0===r.error&&(r.error=w),void 0===r.complete&&(r.complete=w);var i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{o.finalError?r.error(o.finalError):r.complete()}catch(e){}})),this.observers.push(r),i},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(r){"undefined"!==typeof console&&console.error&&console.error(r)}}))},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))},e}();function w(){}function x(e,t,n){var r="";switch(t){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4.  Need to update it?")}var o=e+" failed: ";return o+=r+" argument "}var k=144e5;t.CONSTANTS=o,t.Deferred=d,t.ErrorFactory=m,t.FirebaseError=f,t.MAX_VALUE_MILLIS=k,t.RANDOM_FACTOR=.5,t.Sha1=y,t.areCookiesEnabled=function(){return!(!navigator||!navigator.cookieEnabled)},t.assert=i,t.assertionError=a,t.async=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then((function(){e.apply(void 0,n)})).catch((function(e){t&&t(e)}))}},t.base64=l,t.base64Decode=c,t.base64Encode=function(e){var t=s(e);return l.encodeByteArray(t,!0)},t.calculateBackoffMillis=function(e,t,n){void 0===t&&(t=1e3),void 0===n&&(n=2);var r=t*Math.pow(n,e),o=Math.round(.5*r*(Math.random()-.5)*2);return Math.min(k,r+o)},t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.createSubscribe=function(e,t){var n=new b(e,t);return n.subscribe.bind(n)},t.decode=v,t.deepCopy=function(e){return u(void 0,e)},t.deepExtend=u,t.errorPrefix=x,t.getUA=p,t.isAdmin=function(e){var t=v(e).claims;return"object"===typeof t&&!0===t.admin},t.isBrowser=function(){return"object"===typeof self&&self.self===self},t.isBrowserExtension=function(){var e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id},t.isElectron=function(){return p().indexOf("Electron/")>=0},t.isEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.isIE=function(){var e=p();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0},t.isIndexedDBAvailable=function(){return"indexedDB"in self&&null!=indexedDB},t.isMobileCordova=function(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(p())},t.isNode=h,t.isNodeSdk=function(){return!0===o.NODE_CLIENT||!0===o.NODE_ADMIN},t.isReactNative=function(){return"object"===typeof navigator&&"ReactNative"===navigator.product},t.isSafari=function(){return!h()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},t.isUWP=function(){return p().indexOf("MSAppHost/")>=0},t.isValidFormat=function(e){var t=v(e).claims;return!!t&&"object"===typeof t&&t.hasOwnProperty("iat")},t.isValidTimestamp=function(e){var t=v(e).claims,n=Math.floor((new Date).getTime()/1e3),r=0,o=0;return"object"===typeof t&&(t.hasOwnProperty("nbf")?r=t.nbf:t.hasOwnProperty("iat")&&(r=t.iat),o=t.hasOwnProperty("exp")?t.exp:r+86400),!!n&&!!r&&!!o&&n>=r&&n<=o},t.issuedAtTime=function(e){var t=v(e).claims;return"object"===typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.jsonEval=g,t.map=function(e,t,n){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r},t.querystring=function(e){for(var t=[],n=function(e,n){Array.isArray(n)?n.forEac
2h((function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))},r=0,o=Object.entries(e);r<o.length;r++){var i=o[r];n(i[0],i[1])}return t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}})),t},t.safeGet=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0},t.stringLength=function(e){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t},t.stringToByteArray=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var o=e.charCodeAt(r);if(o>=55296&&o<=56319){var a=o-55296;r++,i(r<e.length,"Surrogate pair missing trail surrogate."),o=65536+(a<<10)+(e.charCodeAt(r)-56320)}o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=63&o|128):o<65536?(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128)}return t},t.stringify=function(e){return JSON.stringify(e)},t.validateArgCount=function(e,t,n,r){var o;if(r<t?o="at least "+t:r>n&&(o=0===n?"none":"no more than "+n),o)throw new Error(e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+o+".")},t.validateCallback=function(e,t,n,r){if((!r||n)&&"function"!==typeof n)throw new Error(x(e,t,r)+"must be a valid function.")},t.validateContextObject=function(e,t,n,r){if((!r||n)&&("object"!==typeof n||null===n))throw new Error(x(e,t,r)+"must be a valid context object.")},t.validateIndexedDBOpenable=function(){return new Promise((function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",o=window.indexedDB.open(r);o.onsuccess=function(){o.result.close(),n||window.indexedDB.deleteDatabase(r),e(!0)},o.onupgradeneeded=function(){n=!1},o.onerror=function(){var e;t((null===(e=o.error)||void 0===e?void 0:e.message)||"")}}catch(i){t(i)}}))},t.validateNamespace=function(e,t,n,r){if((!r||n)&&"string"!==typeof n)throw new Error(x(e,t,r)+"must be a valid firebase namespace.")}},38710:(e,t,n)=>{var r=n(61516);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},38883:(e,t,n)=>{var r=n(45652),o=n(6571);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},39019:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>b,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>C,__classPrivateFieldSet:()=>A,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>h,__extends:()=>o,__generator:()=>d,__importDefault:()=>S,__importStar:()=>
2k,__makeTemplateObject:()=>x,__metadata:()=>c,__param:()=>l,__read:()=>m,__rest:()=>a,__spread:()=>_,__spreadArrays:()=>g,__values:()=>f});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof v?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(r){u(i[0][3],r)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
2function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},39256:(e,t,n)=>{var r=n(86532),o=n(23781),i=n(91310);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},39292:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},39658:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,C2:()=>p});var r=n(22555),o=n(65043),i=n(40117);const a=new class{constructor(){this.memoryCache=new Map,this.prefix="amposter_cache_",this.CACHE_DURATIONS={USER_PROFILE:18e4,POSTS:1296e6,TEAMS:3e5,COMMENTS:6e4,ROLES:9e5,NOTIFICATIONS:3e4,SETTINGS:6e5,DRAFT:864e5,FOLLOWING:3e5,SHORT:3e4,MEDIUM:3e5,LONG:36e5}}set(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.CACHE_DURATIONS.MEDIUM,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o={data:t,timestamp:Date.now(),expiry:Date.now()+n};if(this.memoryCache.set(e,o),r)try{localStorage.setItem(this.prefix+e,JSON.stringify(o))}catch(i){console.warn("\u274c Failed to persist cache to localStorage:",i)}return t}get(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.memoryCache.has(e)){const n=this.memoryCache.get(e);if(t||Date.now()<n.expiry)return n.data;this.memoryCache.delete(e)}try{const n=localStorage.getItem(this.prefix+e);if(n){const r=JSON.parse(n);if(t||Date.now()<r.expiry)return this.memoryCache.set(e,r),r.data;localStorage.removeItem(this.prefix+e)}}catch(n){console.warn("\u274c Failed to read cache from localStorage:",n)}return null}delete(e){this.memoryCache.delete(e);try{localStorage.removeItem(this.prefix+e)}catch(t){}}deleteByPrefix(e){for(const n of this.memoryCache.keys())n.startsWith(e)&&this.memoryCache.delete(n);try{const t=[];for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);r&&r.startsWith(this.prefix+e)&&t.push(r)}t.forEach((e=>localStorage.removeItem(e)))}catch(t){}}clear(){this.memoryCache.clear();try{const e=[];for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);n&&n.startsWith(this.prefix)&&e.push(n)}e.forEach((e=>localStorage.removeItem(e)))}catch(e){}}has(e){if(this.memoryCache.has(e))return!0;try{return null!==localStorage.getItem(this.prefix+e)}catch(t){return!1}}size(){return this.memoryCache.size}async getOrSet(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.CACHE_DURATIONS.MEDIUM,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=this.get(e);if(null!==o)return o;const i=await t();return null!==i&&void 0!==i&&this.set(e,i,n,r),i}};var s=n(80535);const l=(e,t)=>"".concat("https://assets.amposter.com/badges","/").concat(e,"/level").concat(t,".png"),c="talent_badges_catalog_v1";function u(){const e=a.get(c,!0);return e&&"object"===typeof e?{settings:e.settings&&"object"===typeof e.settings?e.settings:null,catalog:e.catalog&&"object"===typeof e.catalog?e.catalog:null}:{settings:null,catalog:null}}function d(e,t){null!==e&&null!==t&&a.set(c,{settings:e,catalog:t},2592e6,!0)}const p=(e,t)=>{var n;const r=null===e||void 0===e||null===(n=e.thresholds)||void 0===n?void 0:n.find((e=>e.level===t));return(null===r||void 0===r?void 0:r.image)||l(null===e||void 0===e?void 0:e.key,t)},h=function(){const[e]=(0,o.useState)(u),[t,n]=(0,o.useState)(e.settings),[a,c]=(0,o.useState)(e.catalog),[p,h]=(0,o.useState)(null);(0,o.useEffect)((()=>{const t=i.firebase.database(),r=t.ref("talent_settings"),o=t.ref("talent_catalog");let a=e.settings,s=e.catalog,l=!1,u=!1,p=!1;const f=()=>{!p&&l&&u&&(p=!0,n(a),c(s),d(a,s))},m=e=>{a=e.val()||{},l=!0,p?(n(a),d(a,s)):f()},_=e=>{s=e.val()||{},u=!0,p?(c(s),d(a,s)):f()};return r.on("value",m,(e=>{console.error("useTalentCategories: talent_settings read failed",e),h(e),a=a||{},l=!0,f()})),o.on("value",_,(e=>{console.error("useTalentCategories: talent_catalog read failed",e),h(e),s=s||{},u=!0,f()})),()=>{r.off("value",m),o.off("value",_)}}),[e]);const f=null===t,m=(0,o.useMemo)((()=>t||{}),[t]),_=(0,o.useMemo)((()=>{const e=(null===a||void 0===a?void 0:a.sections)||{},t=new Set(s._0.filter((t=>{var n;return!0!==(null===(n=e[t.key])||void 0===n?void 0:n.deleted)})).map((e=>e.key)));Object.entries(e).forEach((e=>{let[n,r]=e;!0!==(null===r||void 0===r?void 0:r.deleted)&&t.add(n)}));return[...s.UJ.map((e=>function(e,t){const n=(null===t||void 0===t?void 0:t.levels)||{},o=(null===t||void 0===t?void 0:t.meta)||{},i=e.thresholds.map((t=>{var o,i,a,s;return(0,r.A)((0,r.A)({},t),{},{required:null!==(o=null===(i=n[t.level])||void 0===i?void 0:i.required)&&void 0!==o?o:t.required,enabled:!1!==(null===(a=n[t.level])||void 0===a?void 0:a.enabled),image:(null===(s=n[t.level])||void 0===s?void 0:s.image)||l(e.key,t.level)})}));return(0,r.A)((0,r.A)({},e),{},{label:o.name||e.label,description:o.description||e.description,color:o.color||e.color,gradient:o.gradient||(o.color?"linear-gradient(135deg, ".concat(o.color," 0%, ").concat(o.color,"cc 100%)"):e.gradient),group:o.group||e.group,system:"spiritual"===e.group,order:Number.isFinite(Number(o.order))?Number(o.order):999,thresholds:i,custom:!1,disabled:!!o.disabled})}(e,m[e.key]))),...Object.keys(m).filter((e=>{var t,n;return(null===(t=m[e])||void 0===t||null===(n=t.meta)||void 0===n?void 0:n.custom)&&!s.UJ.some((t=>t.key===e))})).map((e=>function(e,t){const n=(null===t||void 0===t?void 0:t.meta)||{},r=(null===t||void 0===t?void 0:t.levels)||{},o=Object.keys(r).map(Number).filter((e=>Number.isFinite(e))).sort(((e,t)=>e-t)),i=o.map((t=>{var n,o,i;return{level:t,required:Number(null===(n=r[t])||void 0===n?void 0:n.required)||0,enabled:!1!==(null===(o=r[t])||void 0===o?void 0:o.enabled),image:(null===(i=r[t])||void 0===i?void 0:i.image)||l(e,t)}})),a=n.color||"#4a8ee8";return{key:e,label:n.name||"\u0645\u0648\u0647\u0628\u0629 \u0628\u062f\u0648\u0646 \u0627\u0633\u0645",description:n.description||"",emoji:n.emoji||"\ud83d\udee1\ufe0f",color:a,gradient:n.gradient||"linear-gradient(135deg, ".concat(a," 0%, ").concat(a," 100%)"),unitLabel:n.unitLabel||(n.name?"\u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 ".concat(n.name):"\u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632"),verification:{type:"admin"},levelNames:o.map((e=>"\u0627\u0644\u0645\u0633\u062a\u0648\u0649 ".concat(e))),thresholds:i,custom:!0,system:!1,disabled:!!n.disabled,order:Number.isFinite(Number(n.order))?Number(n.order):999,group:n.group||"manual",meta:n}}(e,m[e])))].map((e=>t.has(e.group)?e:(0,r.A)((0,r.A)({},e),{},{group:"general"})))}),[m,a]),g=(0,o.useMemo)((()=>{const e=(null===a||void 0===a?void 0:a.sections)||{},t=[...s._0.filter((t=>{var n;return!0!==(null===(n=e[t.key])||void 0===n?void 0:n.deleted)})).map(((t,n)=>{var o,i;return(0,r.A)((0,r.A)({},t),{},{title:(null===(o=e[t.key])||void 0===o?void 0:o.name)||t.title,order:Number.isFinite(Number(null===(i=e[t.key])||void 0===i?void 0:i.order))?Number(e[t.key].order):n})})),...Object.entries(e).filter((e=>{let[t,n]=e;return!s._0.some((e=>e.key===t))&&!0!==(null===n||void 0===n?void 0:n.deleted)})).map((e=>{let[t,n]=e;return{key:t,title:(null===n||void 0===n?void 0:n.name)||"\u0642\u0633\u0645 \u0628\u062f\u0648\u0646 \u0627\u0633\u0645",order:Number.isFinite(Number(null===n||void 0===n?void 0:n.order))?Number(n.order):999}}))].sort(((e,t)=>e.order-t.order));return _.some((e=>
2"general"===e.group))&&t.push({key:"general",title:"\u0639\u0627\u0645",order:1e4,fallback:!0}),t}),[a,_]),v=(0,o.useMemo)((()=>g.filter((e=>_.some((t=>t.group===e.key))))),[g,_]);return{categories:_,groups:v,allGroups:g,loading:f||null===a,error:p,catalog:a||{}}}},39790:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8195);function o(e,t){(0,r.A)(e,t),t.add(e)}},40117:(e,t,n)=>{"use strict";n.r(t),n.d(t,{authApp:()=>gt,authFirebaseConfig:()=>mt,chatApp:()=>_t,defaultFirebaseConfig:()=>ft,firebase:()=>o()});var r=n(13714),o=n.n(r),i=(n(35081),n(75783),n(41098));function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function l(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}var c=n(55858),u="firebasestorage.googleapis.com",d=function(){function e(e,t){this.code_=P(e),this.message_="Firebase Storage: "+t,this.serverResponse_=null,this.name_="FirebaseError"}return e.prototype.codeProp=function(){return this.code},e.prototype.codeEquals=function(e){return P(e)===this.codeProp()},e.prototype.serverResponseProp=function(){return this.serverResponse_},e.prototype.setServerResponseProp=function(e){this.serverResponse_=e},Object.defineProperty(e.prototype,"name",{get:function(){return this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this.code_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this.serverResponse_?this.message_+"\n"+this.serverResponse_:this.message_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!1,configurable:!0}),e}(),p="unknown",h="object-not-found",f="quota-exceeded",m="unauthenticated",_="unauthorized",g="retry-limit-exceeded",v="canceled",y="invalid-url",b="invalid-default-bucket",w="cannot-slice-blob",x="server-file-wrong-size",k="no-download-url",S="invalid-argument",C="invalid-argument-count",A="app-deleted",E="invalid-root-operation",j="invalid-format",T="internal-error";function P(e){return"storage/"+e}function N(){return new d(p,"An unknown error occurred, please check the error payload for server response.")}function I(){return new d(v,"User canceled the upload/download.")}function R(){return new d(w,"Cannot slice blob for upload. Please retry the upload.")}function O(e,t,n){return new d(S,"Invalid argument in `"+t+"` at index "+e+": "+n)}function D(){return new d(A,"The Firebase app was deleted.")}function M(e,t){return new d(j,"String does not match format '"+e+"': "+t)}function L(e){throw new d(T,"Internal error: "+e)}var F={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};
2function z(e){switch(e){case F.RAW:case F.BASE64:case F.BASE64URL:case F.DATA_URL:return;default:throw"Expected one of the event types: ["+F.RAW+", "+F.BASE64+", "+F.BASE64URL+", "+F.DATA_URL+"]."}}var B=function(e,t){this.data=e,this.contentType=t||null};function q(e,t){switch(e){case F.RAW:return new B(U(t));case F.BASE64:case F.BASE64URL:return new B(H(e,t));case F.DATA_URL:return new B(function(e){var t=new W(e);return t.base64?H(F.BASE64,t.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(n){throw M(F.DATA_URL,"Malformed data URL.")}return U(t)}(t.rest)}(t),new W(t).contentType)}throw N()}function U(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296===(64512&r))if(n<e.length-1&&56320===(64512&e.charCodeAt(n+1)))r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r);else t.push(239,191,189);else 56320===(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function H(e,t){switch(e){case F.BASE64:var n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw M(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case F.BASE64URL:var o=-1!==t.indexOf("+"),i=-1!==t.indexOf("/");if(o||i)throw M(e,"Invalid character '"+(o?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(t)}catch(c){throw M(e,"Invalid character found")}for(var s=new Uint8Array(a.length),l=0;l<a.length;l++)s[l]=a.charCodeAt(l);return s}var W=function(e){this.base64=!1,this.contentType=null;var t=e.match(/^data:([^,]+)?,/);if(null===t)throw M(F.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=t[1]||null;null!=n&&(this.base64=(r=n,o=";base64",r.length>=o.length&&r.substring(r.length-o.length)===o),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(",")+1);var r,o};var V,K={STATE_CHANGED:"state_changed"},G="running",Y="pausing",Q="paused",X="success",$="canceling",J="canceled",Z="error",ee={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function te(e){switch(e){case G:case Y:case $:return ee.RUNNING;case Q:return ee.PAUSED;case X:return ee.SUCCESS;case J:return ee.CANCELED;default:return ee.ERROR}}function ne(e){return null!=e}function re(e){return void 0!==e}function oe(e){return"function"===typeof e}function ie(e){return"object"===typeof e}function ae(e){return ie(e)&&null!==e}function se(e){return"string"===typeof e||e instanceof String}function le(e){return ce(e)&&Number.isInteger(e)}function ce(e){return"number"===typeof e||e instanceof Number}function ue(e){return de()&&e instanceof Blob}function de(){return"undefined"!==typeof Blob}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(V||(V={}));var pe=function(){function e(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=V.NO_ERROR,this.sendPromise_=new Promise((function(t){e.xhr_.addEventListener("abort",(function(){e.errorCode_=V.ABORT,t(e)})),e.xhr_.addEventListener("error",(function(){e.errorCode_=V.NETWORK_ERROR,t(e)})),e.xhr_.addEventListener("load",(function(){t(e)}))}))}return e.prototype.send=function(e,t,n,r){if(this.sent_)throw L("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),ne(r))for(var o in r)r.hasOwnProperty(o)&&this.xhr_.setRequestHeader(o,r[o].toString());return ne(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},e.prototype.getErrorCode=function(){if(!this.sent_)throw L("cannot .getErrorCode() before sending");return this.errorCode_},e.prototype.getStatus=function(){if(!this.sent_)throw L("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},e.prototype.getResponseText=function(){if(!this.sent_)throw L("cannot .getResponseText() before sending");return this.xhr_.responseText},e.prototype.abort=function(){this.xhr_.abort()},e.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},e.prototype.addUploadProgressListener=function(e){ne(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},e.prototype.removeUploadProgressListener=function(e){ne(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},e}(),he=function(){function e(){}return e.prototype.createXhrIo=function(){return new pe},e}();function fe(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?Web
2KitBlobBuilder:void 0}function me(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=fe();if(void 0!==n){for(var r=new n,o=0;o<e.length;o++)r.append(e[o]);return r.getBlob()}if(de())return new Blob(e);throw Error("This browser doesn't seem to support creating Blobs")}var _e=function(){function e(e,t){var n=0,r="";ue(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}return e.prototype.size=function(){return this.size_},e.prototype.type=function(){return this.type_},e.prototype.slice=function(t,n){if(ue(this.data_)){var r=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,t,n);return null===r?null:new e(r)}return new e(new Uint8Array(this.data_.buffer,t,n-t),!0)},e.getBlob=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(de()){var r=t.map((function(t){return t instanceof e?t.data_:t}));return new e(me.apply(null,r))}var o=t.map((function(e){return se(e)?q(F.RAW,e).data:e.data_})),i=0;o.forEach((function(e){i+=e.byteLength}));var a=new Uint8Array(i),s=0;return o.forEach((function(e){for(var t=0;t<e.length;t++)a[s++]=e[t]})),new e(a,!0)},e.prototype.uploadData=function(){return this.data_},e}(),ge=function(){function e(e,t){this.bucket=e,this.path_=t}return Object.defineProperty(e.prototype,"path",{get:function(){return this.path_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!1,configurable:!0}),e.prototype.fullServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)},e.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},e.makeFromBucketSpec=function(t){var n;try{n=e.makeFromUrl(t)}catch(r){return new e(t,"")}if(""===n.path)return n;throw new d(b,"Invalid default bucket '"+t+"'.")},e.makeFromUrl=function(t){var n=null,r="([A-Za-z0-9.\\-_]+)";var o=new RegExp("^gs://"+r+"(/(.*))?$","i");function i(e){e.path_=decodeURIComponent(e.path)}for(var a=u.replace(/[.]/g,"\\."),s=[{regex:o,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+a+"/v[A-Za-z0-9_]+/b/"+r+"/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:i},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/"+r+"/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:i}],l=0;l<s.length;l++){var c=s[l],p=c.regex.exec(t);if(p){var h=p[c.indices.bucket],f=p[c.indices.path];f||(f=""),n=new e(h,f),c.postModify(n);break}}if(null==n)throw function(e){return new d(y,"Invalid URL '"+e+"'.")}(t);return n},e}();function ve(e){var t,n;try{t=JSON.parse(e)}catch(r){return null}return ie(n=t)&&!Array.isArray(n)?t:null}function ye(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function be(e){return"https://"+u+"/v0"+e}function we(e){var t=encodeURIComponent,n="?";for(var r in e){if(e.hasOwnProperty(r))n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1)}function xe(e,t){return t}var ke=function(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||xe},Se=null;function Ce(){if(Se)return Se;var e=[];e.push(new ke("bucket")),e.push(new ke("generation")),e.push(new ke("metageneration")),e.push(new ke("name","fullPath",!0));var t=new ke("name");t.xform=function(e,t){return function(e){return!se(e)||e.length<2?e:ye(e)}(t)},e.push(t);var n=new ke("size");return n.xform=function(e,t){return ne(t)?Number(t):t},e.push(n),e.push(new ke("timeCreated")),e.push(new ke("updated")),e.push(new ke("md5Hash",null,!0)),e.push(new ke("cacheControl",null,!0)),e.push(new ke("contentDisposition",null,!0)),e.push(new ke("contentEncoding",null,!0)),e.push(new ke("contentLanguage",null,!0)),e.push(new ke("contentType",null,!0)),e.push(new ke("metadata","customMetadata",!0)),Se=e}function Ae(e,t,n){for(var r={type:"file"},o=n.length,i=0;i<o;i++){var a=n[i];r[a.local]=a.xform(r,t[a.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){var n=e.bucket,r=e.fullPath,o=new ge(n,r);return t.makeStorageReference(o)}})}(r,e),r}function Ee(e,t,n){var r=ve(t);return null===r?null:Ae(e,r,n)}function je(e,t){for(var n={},r=t.length,o=0;o<r;o++){var i=t[o];i.writable&&(n[i.server]=e[i.local])}return JSON.stringify(n)}function Te(e){if(!ie(e)||!e)throw"Expected Metadata object.";for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("customMetadata"===t){if(!ie(n))throw"Expected object for 'customMetadata' mapping."}else if(ae(n))throw"Mapping for '"+t+"' cannot be an object."}}var Pe="maxResults",Ne="pageToken",Ie="prefixes",Re="items";function Oe(e,t,n){var r=ve(n);return null===r?null:function(e,t,n){var r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n[Ie])for(var o=0,i=n[Ie];o<i.length;o++){var a=i[o].replace(/\/$/,""),s=e.makeStorageReference(new ge(t,a));r.prefixes.push(s)}if(n[Re])for(var l=0,c=n[Re];l<c.length;l++){var u=c[l];
2s=e.makeStorageReference(new ge(t,u.name)),r.items.push(s)}return r}(e,t,r)}function De(e){if(!ie(e)||!e)throw"Expected ListOptions object.";for(var t in e)if(t===Pe){if(!le(e[Pe])||e[Pe]<=0)throw"Expected maxResults to be a positive number.";if(e[Pe]>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if(t!==Ne)throw"Unknown option: "+t;if(e[Ne]&&!se(e[Ne]))throw"Expected pageToken to be string."}}var Me=function(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function Le(e){if(!e)throw N()}function Fe(e,t){return function(n,r){var o=Ee(e,r,t);return Le(null!==o),o}}function ze(e,t){return function(n,r){var o=Ee(e,r,t);return Le(null!==o),function(e,t){var n=ve(t);if(null===n)return null;if(!se(n.downloadTokens))return null;var r=n.downloadTokens;if(0===r.length)return null;var o=encodeURIComponent;return r.split(",").map((function(t){var n=e.bucket,r=e.fullPath;return be("/b/"+o(n)+"/o/"+o(r))+we({alt:"media",token:t})}))[0]}(o,r)}}function Be(e){return function(t,n){var r,o,i;return 401===t.getStatus()?r=new d(m,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(i=e.bucket,r=new d(f,"Quota for bucket '"+i+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(o=e.path,r=new d(_,"User does not have permission to access '"+o+"'.")):r=n,r.setServerResponseProp(n.serverResponseProp()),r}}function qe(e){var t=Be(e);return function(n,r){var o,i=t(n,r);return 404===n.getStatus()&&(o=e.path,i=new d(h,"Object '"+o+"' does not exist.")),i.setServerResponseProp(r.serverResponseProp()),i}}function Ue(e,t,n){var r=be(t.fullServerUrl()),o=e.maxOperationRetryTime,i=new Me(r,"GET",Fe(e,n),o);return i.errorHandler=qe(t),i}function He(e,t,n,r,o){var i={};t.isRoot?i.prefix="":i.prefix=t.path+"/",n&&n.length>0&&(i.delimiter=n),r&&(i.pageToken=r),o&&(i.maxResults=o);var a=be(t.bucketOnlyServerUrl()),s=e.maxOperationRetryTime,l=ne
2w Me(a,"GET",function(e,t){return function(n,r){var o=Oe(e,t,r);return Le(null!==o),o}}(e,t.bucket),s);return l.urlParams=i,l.errorHandler=Be(t),l}function We(e,t,n){var r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}var Ve=function(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null};function Ke(e,t){var n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(r){Le(!1)}return Le(!!n&&-1!==(t||["active"]).indexOf(n)),n}var Ge=262144;function Ye(e,t,n,r,o,i,a,s){var l=new Ve(0,0);if(a?(l.current=a.current,l.total=a.total):(l.current=0,l.total=r.size()),r.size()!==l.total)throw new d(x,"Server recorded incorrect upload file size, please retry the upload.");var c=l.total-l.current,u=c;o>0&&(u=Math.min(u,o));var p=l.current,h=p+u,f={"X-Goog-Upload-Command":u===c?"upload, finalize":"upload","X-Goog-Upload-Offset":l.current},m=r.slice(p,h);if(null===m)throw R();var _=t.maxUploadRetryTime,g=new Me(n,"POST",(function(e,n){var o,a=Ke(e,["active","final"]),s=l.current+u,c=r.size();return o="final"===a?Fe(t,i)(e,n):null,new Ve(s,c,"final"===a,o)}),_);return g.headers=f,g.body=m.uploadData(),g.progressCallback=s||null,g.errorHandler=Be(e),g}var Qe=function(e,t,n){if(oe(e)||ne(t)||ne(n))this.next=e,this.error=t||null,this.complete=n||null;else{var r=e;this.next=r.next||null,this.error=r.error||null,this.complete=r.complete||null}},Xe=function(e,t,n,r,o,i){this.bytesTransferred=e,this.totalBytes=t,this.state=n,this.metadata=r,this.task=o,this.ref=i};function $e(e,t,n){for(var r=t.length,o=t.length,i=0;i<t.length;i++)if(t[i].optional){r=i;break}if(!(r<=n.length&&n.length<=o))throw function(e,t,n,r){var o,i;return e===t?(o=e,i=1===e?"argument":"arguments"):(o="between "+e+" and "+t,i="arguments"),new d(C,"Invalid argument count in `"+n+"`: Expected "+o+" "+i+", received "+r+".")}(r,o,e,n.length);for(i=0;i<n.length;i++)try{t[i].validator(n[i])}catch(a){throw a instanceof Error?O(i,e,a.message):O(i,e,a)}}var Je=function(e,t){var n=this;this.validator=function(t){n.optional&&!re(t)||e(t)},this.optional=!!t};function Ze(e,t){function n(e){if(!se(e))throw"Expected string."}var r,o,i;return e?(o=n,i=e,r=function(e){o(e),i(e)}):r=n,new Je(r,t)}function et(e){return new Je(Te,e)}function tt(){return new Je((function(e){if(!(ce(e)&&e>=0))throw"Expected a number 0 or greater."}))}function nt(e,t){return new Je((function(t){if(!(null===t||ne(t)&&t instanceof Object))throw"Expected an Object.";void 0!==e&&null!==e&&e(t)}),t)}function rt(e){return new Je((function(e){if(!(null===e||oe(e)))throw"Expected a Function."}),e)}function ot(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];Promise.resolve().then((function(){return e.apply(void 0,t)}))}}var it=function(){function e(e,t,n,r,o,i){var a=this;void 0===i&&(i=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=e,this.service_=t,this.location_=n,this.blob_=o,this.metadata_=i,this.mappings_=r,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=G,this.errorHandler_=function(e){a.request_=null,a.chunkMultiplier_=1,e.codeEquals(v)?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=e,a.transition_(Z))},this.metadataErrorHandler_=function(e){a.request_=null,e.codeEquals(v)?a.completeTransitions_():(a.error_=e,a.transition_(Z))},this.promise_=new Promise((function(e,t){a.resolve_=e,a.reject_=t,a.start_()})),this.promise_.then(null,(function(){}))}return e.prototype.makeProgressCallback_=function(){var e=this,t=this.transferred_;return function(n){return e.updateProgress_(t+n)}},e.prototype.shouldDoResumable_=function(e){return e.size()>262144},e.prototype.start_=function(){this.state_===G&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},e.prototype.resolveToken_=function(e){var t=this;this.service_.getAuthToken().then((function(n){switch(t.state_){case G:e(n);break;case $:t.transition_(J);break;case Y:t.transition_(Q)}}))},e.prototype.createResumable_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,r,o){var i=t.bucketOnlyServerUrl(),a=We(t,r,o),s={name:a.fullPath},l=be(i),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},u=je(a,n),d=e.maxUploadRetryTime,p=new Me(l,"POST",(function(e){var t;Ke(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(n){Le(!1)}return Le(se(t)),t}),d);
2return p.urlParams=s,p.headers=c,p.body=u,p.errorHandler=Be(t),p}(e.service_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.service_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.uploadUrl_=t,e.needToFetchStatus_=!1,e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.fetchStatus_=function(){var e=this,t=this.uploadUrl_;this.resolveToken_((function(n){var r=function(e,t,n,r){var o=e.maxUploadRetryTime,i=new Me(n,"POST",(function(e){var t=Ke(e,["active","final"]),n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(i){Le(!1)}n||Le(!1);var o=Number(n);return Le(!isNaN(o)),new Ve(o,r.size(),"final"===t)}),o);return i.headers={"X-Goog-Upload-Command":"query"},i.errorHandler=Be(t),i}(e.service_,e.location_,t,e.blob_),o=e.service_.makeRequest(r,n);e.request_=o,o.getPromise().then((function(t){e.request_=null,e.updateProgress_(t.current),e.needToFetchStatus_=!1,t.finalized&&(e.needToFetchMetadata_=!0),e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.continueUpload_=function(){var e=this,t=Ge*this.chunkMultiplier_,n=new Ve(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(o){var i;try{i=Ye(e.location_,e.service_,r,e.blob_,t,e.mappings_,n,e.makeProgressCallback_())}catch(s){return e.error_=s,void e.transition_(Z)}var a=e.service_.makeRequest(i,o);e.request_=a,a.getPromise().then((function(t){e.increaseMultiplier_(),e.request_=null,e.updateProgress_(t.current),t.finalized?(e.metadata_=t.metadata,e.transition_(X)):e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.increaseMultiplier_=function(){Ge*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},e.prototype.fetchMetadata_=function(){var e=this;this.resolveToken_((function(t){var n=Ue(e.service_,e.location_,e.mappings_),r=e.service_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.transition_(X)}),e.metadataErrorHandler_)}))},e.prototype.oneShotUpload_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,r,o){var i=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+s;var l=We(t,r,o),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+je(l,n)+"\r\n--"+s+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",u="\r\n--"+s+"--",d=_e.getBlob(c,r,u);if(null===d)throw R();var p={name:l.fullPath},h=be(i),f=e.maxUploadRetryTime,m=new Me(h,"POST",Fe(e,n),f);return m.urlParams=p,m.headers=a,m.body=d.uploadData(),m.errorHandler=Be(t),m}(e.service_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.service_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.updateProgress_(e.blob_.size()),e.transition_(X)}),e.errorHandler_)}))},e.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},e.prototype.transition_=function(e){if(this.state_!==e)switch(e){case $:case Y:this.state_=e,null!==this.request_&&this.request_.cancel();break;case G:var t=this.state_===Q;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case Q:this.state_=e,this.notifyObservers_();break;case J:this.error_=I(),this.state_=e,this.notifyObservers_();break;case Z:case X:this.state_=e,this.notifyObservers_()}},e.prototype.completeTransitions_=function(){switch(this.state_){case Y:this.transition_(Q);break;case $:this.transition_(J);break;case G:this.start_()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=te(this.state_);return new Xe(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)},enumerable:!1,configurable:!0}),e.prototype.on=function(e,t,n,r){var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",i=rt(!0).validator,a=nt(null,!0).validator;function s(e){try{return void i(e)}catch(t){}try{if(a(e),!(re(e.next)||re(e.error)||re(e.complete)))throw"";return}catch(t){throw o}}$e("on",[Ze((function(){if(e!==K.STATE_CHANGED)throw"Expected one of the event types: ["+K.STATE_CHANGED+"]."})),nt(s,!0),rt(!0),rt(!0)],arguments);var l=this;function c(e){return function(t,n,o){null!==e&&$e("on",e,arguments);var i=new Qe(t,n,r);return l.addObserver_(i),function(){l.removeObserver_(i)}}}var u=[nt((function(e){if(null===e)throw o;s(e)})),rt(!0),rt(!0)];return!(re(t)||re(n)||re(r))?c(u):c(null)(t,n,r)},e.prototype.then=function(e,t){return this.promise_.then(e,t)},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},e.prototype.removeObserver_=function(e){var t=this.observers_.indexOf(e);-1!==t&&this.observers_.splice(t,1)},e.prototype.notifyObservers_=function(){var e=this;
2this.finishPromise_(),this.observers_.slice().forEach((function(t){e.notifyObserver_(t)}))},e.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(te(this.state_)){case ee.SUCCESS:ot(this.resolve_.bind(null,this.snapshot))();break;case ee.CANCELED:case ee.ERROR:ot(this.reject_.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},e.prototype.notifyObserver_=function(e){switch(te(this.state_)){case ee.RUNNING:case ee.PAUSED:e.next&&ot(e.next.bind(e,this.snapshot))();break;case ee.SUCCESS:e.complete&&ot(e.complete.bind(e))();break;default:e.error&&ot(e.error.bind(e,this.error_))()}},e.prototype.resume=function(){$e("resume",[],arguments);var e=this.state_===Q||this.state_===Y;return e&&this.transition_(G),e},e.prototype.pause=function(){$e("pause",[],arguments);var e=this.state_===G;return e&&this.transition_(Y),e},e.prototype.cancel=function(){$e("cancel",[],arguments);var e=this.state_===G||this.state_===Y;return e&&this.transition_($),e},e}(),at=function(){function e(e,t){this.service=e,this.location=t instanceof ge?t:ge.makeFromUrl(t)}return e.prototype.toString=function(){return $e("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},e.prototype.newRef=function(t,n){return new e(t,n)},e.prototype.mappings=function(){return Ce()},e.prototype.child=function(e){$e("child",[Ze()],arguments);var t=function(e,t){var n=t.split("/").filter((function(e){return e.length>0})).join("/");return 0===e.length?n:e+"/"+n}(this.location.path,e),n=new ge(this.location.bucket,t);return this.newRef(this.service,n)},Object.defineProperty(e.prototype,"parent",{get:function(){var e=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this.location.path);if(null===e)return null;var t=new ge(this.location.bucket,e);return this.newRef(this.service,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var e=new ge(this.location.bucket,"");return this.newRef(this.service,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return ye(this.location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this.service},enumerable:!1,configurable:!0}),e.prototype.put=function(e,t){return void 0===t&&(t=null),$e("put",[new Je((function(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||de()&&e instanceof Blob))throw"Expected Blob or File."})),et(!0)],arguments),this.throwIfRoot_("put"),new it(this,this.service,this.location,this.mappings(),new _e(e),t)},e.prototype.putString=function(e,t,n){void 0===t&&(t=F.RAW),$e("putString",[Ze(),Ze(z,!0),et(!0)],arguments),this.throwIfRoot_("putString");var r=q(t,e),o=Object.assign({},n);return!ne(o.contentType)&&ne(r.contentType)&&(o.contentType=r.contentType),new it(this,this.service,this.location,this.mappings(),new _e(r.data,!0),o)},e.prototype.delete=function(){var e=this;return $e("delete",[],arguments),this.throwIfRoot_("delete"),this.service.getAuthToken().then((function(t){var n=function(e,t){var n=be(t.fullServerUrl()),r=e.maxOperationRetryTime,o=new Me(n,"DELETE",(function(e,t){}),r);return o.successCodes=[200,204],o.errorHandler=qe(t),o}(e.service,e.location);return e.service.makeRequest(n,t).getPromise()}))},e.prototype.listAll=function(){$e("listAll",[],arguments);var e={prefixes:[],items:[]};return this.listAllHelper(e).then((function(){return e}))},e.prototype.listAllHelper=function(e,t){return a(this,void 0,void 0,(function(){var n,r,o,i;return s(this,(function(a){switch(a.label){case 0:return n={pageToken:t},[4,this.list(n)];case 1:return r=a.sent(),(o=e.prefixes).push.apply(o,r.prefixes),(i=e.items).push.apply(i,r.items),null==r.nextPageToken?[3,3]:[4,this.listAllHelper(e,r.nextPageToken)];case 2:a.sent(),a.label=3;case 3:return[2]}}
2))}))},e.prototype.list=function(e){var t;$e("list",[(t=!0,new Je(De,t))],arguments);var n=this;return this.service.getAuthToken().then((function(t){var r=e||{},o=He(n.service,n.location,"/",r.pageToken,r.maxResults);return n.service.makeRequest(o,t).getPromise()}))},e.prototype.getMetadata=function(){var e=this;return $e("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.service.getAuthToken().then((function(t){var n=Ue(e.service,e.location,e.mappings());return e.service.makeRequest(n,t).getPromise()}))},e.prototype.updateMetadata=function(e){var t=this;return $e("updateMetadata",[et()],arguments),this.throwIfRoot_("updateMetadata"),this.service.getAuthToken().then((function(n){var r=function(e,t,n,r){var o=be(t.fullServerUrl()),i=je(n,r),a=e.maxOperationRetryTime,s=new Me(o,"PATCH",Fe(e,r),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=i,s.errorHandler=qe(t),s}(t.service,t.location,e,t.mappings());return t.service.makeRequest(r,n).getPromise()}))},e.prototype.getDownloadURL=function(){var e=this;return $e("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.service.getAuthToken().then((function(t){var n=function(e,t,n){var r=be(t.fullServerUrl()),o=e.maxOperationRetryTime,i=new Me(r,"GET",ze(e,n),o);return i.errorHandler=qe(t),i}(e.service,e.location,e.mappings());return e.service.makeRequest(n,t).getPromise().then((function(e){if(null===e)throw new d(k,"The given file does not have any download URLs.");return e}))}))},e.prototype.throwIfRoot_=function(e){if(""===this.location.path)throw function(e){return new d(E,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)},e}(),st=function(){function e(e){this.promise_=Promise.reject(e)}return e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){},e}();var lt=function(){function e(e,t,n,r,o,i,a,s,l,c,u){var d=this;this.pendingXhr_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=o.slice(),this.additionalRetryCodes_=i.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=c,this.timeout_=l,this.pool_=u,this.promise_=new Promise((function(e,t){d.resolve_=e,d.reject_=t,d.start_()}))}return e.prototype.start_=function(){var e=this;function t(t,n){var r,o=e.resolve_,i=e.reject_,a=n.xhr;if(n.wasSuccessCode)try{var s=e.callback_(a,a.getResponseText());re(s)?o(s):o()}catch(l){i(l)}else null!==a?((r=N()).setServerResponseProp(a.getResponseText()),e.errorCallback_?i(e.errorCallback_(a,r)):i(r)):n.canceled?i(r=e.appDelete_?D():I()):i(r=new d(g,"Max retry time for operation exceeded, please try again."))}this.canceled_?t(0,new ct(!1,null,!0)):this.backoffId_=function(e,t,n){var r=1,o=null,i=!1,a=0;function s(){return 2===a}var c=!1;function u(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];c||(c=!0,t.apply(null,e))}function d(t){o=setTimeout((function(){o=null,e(p,s())}),t)}function p(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];c||(e||s()||i?u.call.apply(u,l([null,e],n)):(r<64&&(r*=2),1===a?(a=2,t=0):t=1e3*(r+Math.random()),d(t)))}var h=!1;function f(e){h||(h=!0,c||(null!==o?(e||(a=2),clearTimeout(o),d(0)):e||(a=1)))}return d(0),setTimeout((function(){i=!0,f(!0)}),n),f}((function(t,n){if(n)t(!1,new ct(!1,null,!0));else{var r=e.pool_.createXhrIo();e.pendingXhr_=r,null!==e.progressCallback_&&r.addUploadProgressListener(o),r.send(e.url_,e.method_,e.body_,e.headers_).then((function(n){null!==e.progressCallback_&&n.removeUploadProgressListener(o),e.pendingXhr_=null;var r=n.getErrorCode()===V.NO_ERROR,i=n.getStatus();if(r&&!e.isRetryStatusCode_(i)){var a=-1!==e.successCodes_.indexOf(i);t(!0,new ct(a,n))}else{var s=n.getErrorCode()===V.ABORT;t(!1,new ct(!1,null,s))}}))}function o(t){var n=t.loaded,r=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,r)}}),t,this.timeout_)},e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},e.prototype.isRetryStatusCode_=function(e){var t=e>=500&&e<600,n=-1!==[408,429].indexOf(e),r=-1!==this.additionalRetryCodes_.indexOf(e);return t||n||r},e}(),ct=function(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n};
2function ut(e,t,n,r){var o=we(e.urlParams),a=e.url+o,s=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(s,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(s,n),function(e){var t="undefined"!==typeof i.default?i.default.SDK_VERSION:"AppManager";e["X-Firebase-Storage-Version"]="webjs/"+t}(s),new lt(a,e.method,s,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,r)}var dt=function(){function e(t,n,r,o){var i;this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=t,this.authProvider_=n,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requests_=new Set,this.pool_=r,this.bucket_=null!=o?ge.makeFromBucketSpec(o):e.extractBucket_(null===(i=this.app_)||void 0===i?void 0:i.options),this.internals_=new pt(this)}return e.extractBucket_=function(e){var t=null===e||void 0===e?void 0:e.storageBucket;return null==t?null:ge.makeFromBucketSpec(t)},e.prototype.getAuthToken=function(){return a(this,void 0,void 0,(function(){var e,t;return s(this,(function(n){switch(n.label){case 0:return(e=this.authProvider_.getImmediate({optional:!0}))?[4,e.getToken()]:[3,2];case 1:if(null!==(t=n.sent()))return[2,t.accessToken];n.label=2;case 2:return[2,null]}}))}))},e.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requests_.forEach((function(e){return e.cancel()})),this.requests_.clear()},e.prototype.makeStorageReference=function(e){return new at(this,e)},e.prototype.makeRequest=function(e,t){var n=this;if(this.deleted_)return new st(D());var r=ut(e,this.appId_,t,this.pool_);return this.requests_.add(r),r.getPromise().then((function(){return n.requests_.delete(r)}),(function(){return n.requests_.delete(r)})),r},e.prototype.ref=function(e){if($e("ref",[Ze((function(e){if("string"!==typeof e)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(e))throw"Expected child path but got a URL, use refFromURL instead."}),!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var t=new at(this,this.bucket_);return null!=e?t.child(e):t},e.prototype.refFromURL=function(e){return $e("refFromURL",[Ze((function(e){if("string"!==typeof e)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(e))throw"Expected full URL but got a child path, use ref instead.";try{ge.makeFromUrl(e)}catch(t){throw"Expected valid full URL but got an invalid one."}}),!1)],arguments),new at(this,e)},Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this.maxUploadRetryTime_},enumerable:!1,configurable:!0}),e.prototype.setMaxUploadRetryTime=function(e){$e("setMaxUploadRetryTime",[tt()],arguments),this.maxUploadRetryTime_=e},Object.defineProperty(e.prototype,"maxOperationRetryTime",{get:function(){return this.maxOperationRetryTime_},enumerable:!1,configurable:!0}),e.prototype.setMaxOperationRetryTime=function(e){$e("setMaxOperationRetryTime",[tt()],arguments),this.maxOperationRetryTime_=e},Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!1,configurable:!0}),e}(),pt=function(){function e(e){this.service_=e}return e.prototype.delete=function(){return this.service_.deleteApp(),Promise.resolve()},e}();function ht(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal");return new dt(n,r,new he,t)}!function(e){var t={TaskState:ee,TaskEvent:K,StringFormat:F,Storage:dt,Reference:at};e.INTERNAL.registerComponent(new c.Component("storage",ht,"PUBLIC").setServiceProps(t).setMultipleInstances(!0)),e.registerVersion("@firebase/storage","0.3.43")}(i.default);const ft={apiKey:"AIzaSyA9jtigMm7Y93PSo31ZWrTeASQ-IwZtgkA",authDomain:"amposter2026.firebaseapp.com",databaseURL:"https://amposter2026-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"amposter2026",storageBucket:"amposter2026.firebasestorage.app",messagingSenderId:"890351926290",vapidKey:"BEtBXv7O8RaxLlOCbQSxD9JTr_62HlOQ3HzWjkE-bDKZMhbpKdc5q9RfXkjyNH-kGzL_tS_Ay4qcYgZeIwAWBvE",appId:"1:890351926290:web:76369687d7a6a11c456ccb",measurementId:"G-GFVPHH1BPE"},mt={apiKey:"AIzaSyAO8Sq6NqpetEuJsJ3xG7uh-pJMP17PDNw",authDomain:"kunaiu-bank.firebaseapp.com",databaseURL:"https://kunaiu-bank-default-rtdb.firebaseio.com",projectId:"kunaiu-bank",storageBucket:"kunaiu-bank.appspot.com",messagingSenderId:"55200273605",appId:"1:55200273605:web:2143132c9277e9c7efccac"};o().apps.length?o().app():o().initializeApp(ft),o().auth().setPersistence(o().auth.Auth.Persistence.LOCAL);const _t=o().initializeApp({apiKey:"AIzaSyDsAPUYaWhEJTxZRjVd_T-sGD5BuG7CvY4",authDomain:"amchat2026.firebaseapp.com",databaseURL:"https://amchat2026-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"amchat2026",storageBucket:"amchat2026.firebasestorage.app",messagingSenderId:"144368966545",appId:"1:144368966545:web:d52f6eb046d38a2fe05830",measurementId:"G-RK3EVCKWKK"},"chatApp"),gt=o().initializeApp(mt,"authApp");gt.auth().setPersistence(o().auth.Auth.Persistence.LOCAL)}
2,40614:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},40727:(e,t,n)=>{"use strict";n.d(t,{LH:()=>x,uJ:()=>w});var r=n(40117),o=n(30590);const i="amposter_diagnostic_log_queue_v1",a=1500,s=Date.now();let l=!1,c=!1;const u=()=>"undefined"!==typeof crypto&&"function"===typeof crypto.randomUUID?crypto.randomUUID().replace(/-/g,""):"".concat(Date.now().toString(36)).concat(Math.random().toString(36).slice(2,14)),d=(e,t)=>{try{let n=e.getItem(t);return n||(n=u(),e.setItem(t,n)),n}catch(n){return u()}},p=d(localStorage,"amposter_diagnostic_installation_id"),h=d(sessionStorage,"amposter_diagnostic_session_id"),f=()=>{let e=null,t=null;try{var n;e=(null===(n=r.authApp.auth().currentUser)||void 0===n?void 0:n.uid)||null}catch(s){}try{var i;t=(null===(i=r.firebase.auth().currentUser)||void 0===i?void 0:i.uid)||null}catch(l){}const a=(()=>{try{return(0,o.Kd)()||null}catch(e){return null}})();return{subjectId:e||a||"anonymous_".concat(p),identitySource:e?"identity_auth":a?"local_storage":"anonymous_installation",identityAuthLoggedIn:Boolean(e),databaseAuthLoggedIn:Boolean(t),identityAuthUid:e,databaseAuthUid:t,localStorageUid:a,authUidsMatch:Boolean(e&&t&&e===t)}},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e||"boolean"===typeof e||"number"===typeof e?e:"string"===typeof e?e.slice(0,a):t>=4?"[depth-limit]":Array.isArray(e)?e.slice(0,20).map((e=>m(e,t+1))):e instanceof Error?{name:String(e.name||"Error").slice(0,100),message:String(e.message||"").slice(0,a),code:e.code?String(e.code).slice(0,200):null,stack:e.stack?String(e.stack).slice(0,a):null}:"object"===typeof e?Object.entries(e).slice(0,50).reduce(((e,n)=>{let[r,o]=n;return(e=>/token|password|secret|authorization|cookie|email|credential|localstorage/i.test(e))(r)||(e[r.slice(0,100)]=m(o,t+1)),e}),{}):String(e).slice(0,a)},_=()=>{var e,t,n,r,o,i;const a=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return{online:navigator.onLine,visibility:document.visibilityState,language:navigator.language||null,languages:Array.isArray(navigator.languages)?navigator.languages.slice(0,5):[],platform:(null===(e=navigator.userAgentData)||void 0===e?void 0:e.platform)||navigator.platform||null,mobile:null!==(t=null===(n=navigator.userAgentData)||void 0===n?void 0:n.mobile)&&void 0!==t?t:null,userAgent:navigator.userAgent,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||null,effectiveType:(null===a||void 0===a?void 0:a.effectiveType)||null,downlinkMbps:null!==(r=null===a||void 0===a?void 0:a.downlink)&&void 0!==r?r:null,rttMs:null!==(o=null===a||void 0===a?void 0:a.rtt)&&void 0!==o?o:null,saveData:null!==(i=null===a||void 0===a?void 0:a.saveData)&&void 0!==i?i:null}},g=()=>{try{const e=JSON.parse(localStorage.getItem(i)||"[]");return Array.isArray(e)?e.slice(-100):[]}catch(e){return[]}},v=e=>{try{localStorage.setItem(i,JSON.stringify(e.slice(-100)))}catch(t){}},y=async e=>{let{subjectId:t,payload:n}=e;const o=new AbortController,i=setTimeout((()=>o.abort()),1e4),a=encodeURIComponent(t),s=encodeURIComponent(h),l=r.defaultFirebaseConfig.databaseURL.replace(/\/$/,"");try{const e=await fetch("".concat(l,"/").concat("connection_diagnostics","/").concat(a,"/").concat(s,".json"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),signal:o.signal,cache:"no-store"});if(!e.ok)throw new Error("diagnostic-log-http-".concat(e.status))}finally{clearTimeout(i)}},b=async()=>{if(!l&&navigator.onLine){l=!0;try{const t=g(),n=[];for(const r of t)try{await y(r)}catch(e){n.push(r),n.push(...t.slice(t.indexOf(r)+1));break}v(n)}finally{l=!1}}},w=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info";const r=f(),o=m(t),i={event:String(e||"unknown").slice(0,120),level:["info","warning","error"].includes(n)?n:"info",serverTimestamp:{".sv":"timestamp"},clientTimestamp:Date.now(),sessionElapsedMs:Date.now()-s,sessionId:h,installationId:p,route:"".concat(window.location.pathname).concat(window.location.search).slice(0,500),identity:r,environment:_(),details:o&&"object"===typeof o&&Object.keys(o).length?o:{note:"no_additional_details"}},a={subjectId:r.subjectId,payload:i};try{return await y(a),b(),!0}catch(l){const e=g();return e.push(a),v(e),!1}},x=()=>{var e,t,n;c||(c=!0,w("app_start",{referrerPresent:Boolean(document.referrer),standalone:(null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(display-mode: standalone)").matches)||!0===navigator.standalone,serviceWorkerControlled:Bo
2olean(null===(n=navigator.serviceWorker)||void 0===n?void 0:n.controller),queuedLogs:g().length}),window.addEventListener("online",(()=>{w("browser_online"),b()})),window.addEventListener("offline",(()=>w("browser_offline",{},"warning"))),window.addEventListener("error",(e=>{w("window_error",{message:e.message,filename:e.filename,line:e.lineno,column:e.colno,error:e.error},"error")})),window.addEventListener("unhandledrejection",(e=>{w("unhandled_promise_rejection",{reason:e.reason},"error")})),document.addEventListener("visibilitychange",(()=>{w("visibility_changed",{visibility:document.visibilityState})})),r.authApp.auth().onAuthStateChanged((e=>{var t;return w("identity_auth_state_changed",{loggedIn:Boolean(e),uid:(null===e||void 0===e?void 0:e.uid)||null,providerIds:(null===e||void 0===e||null===(t=e.providerData)||void 0===t?void 0:t.map((e=>e.providerId)).filter(Boolean))||[]})}),(e=>w("identity_auth_observer_error",{error:e},"error"))),r.firebase.auth().onAuthStateChanged((e=>w("database_auth_state_changed",{loggedIn:Boolean(e),uid:(null===e||void 0===e?void 0:e.uid)||null})),(e=>w("database_auth_observer_error",{error:e},"error"))),setInterval(b,3e4))}},40840:(e,t,n)=>{var r=n(94664),o=n(25111);e.exports=function(e,t){return e&&r(e,o(t))}},40973:(e,t,n)=>{"use strict";n.d(t,{g:()=>nt,m:()=>tt});var r=n(40117),o=n(47059),i=n(41098),a=n(55858);var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function l(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function u(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var p,h=n(38679),f=n(48490),m="0.4.17",_=1e4,g="w:"+m,v="FIS_v2",y=36e5,b=((p={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',p["not-registered"]="Firebase Installation is not registered.",p["installation-not-found"]="Firebase Installation not found.",p["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',p["app-offline"]="Could not process request. Application offline.",p["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",p),w=new h.ErrorFactory("installations","Installations",b);function x(e){return e instanceof h.FirebaseError&&e.code.includes("request-failed")}function k(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}
2function S(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}function C(e,t){return l(this,void 0,void 0,(function(){var n,r;return c(this,(function(o){switch(o.label){case 0:return[4,t.json()];case 1:return n=o.sent(),r=n.error,[2,w.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})]}}))}))}function A(e){var t=e.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function E(e,t){var n=t.refreshToken,r=A(e);return r.append("Authorization",function(e){return v+" "+e}(n)),r}function j(e){return l(this,void 0,void 0,(function(){var t;return c(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return(t=n.sent()).status>=500&&t.status<600?[2,e()]:[2,t]}}))}))}function T(e,t){var n=t.fid;return l(this,void 0,void 0,(function(){var t,r,o,i,a,s;return c(this,(function(l){switch(l.label){case 0:return t=k(e),r=A(e),o={fid:n,authVersion:v,appId:e.appId,sdkVersion:g},i={method:"POST",headers:r,body:JSON.stringify(o)},[4,j((function(){return fetch(t,i)}))];case 1:return(a=l.sent()).ok?[4,a.json()]:[3,3];case 2:return s=l.sent(),[2,{fid:s.fid||n,registrationStatus:2,refreshToken:s.refreshToken,authToken:S(s.authToken)}];case 3:return[4,C("Create Installation",a)];case 4:throw l.sent()}}))}))}function P(e){return new Promise((function(t){setTimeout(t,e)}))}function N(e){var t=btoa(String.fromCharCode.apply(String,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}(e)));return t.replace(/\+/g,"-").replace(/\//g,"_")}var I=/^[cdef][\w-]{21}$/;function R(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){var t=N(e);return t.substr(0,22)}(e);return I.test(t)?t:""}catch(p){return""}}function O(e){return e.appName+"!"+e.appId}var D=new Map;function M(e,t){var n=O(e);L(n,t),function(e,t){var n=z();n&&n.postMessage({key:e,fid:t});B()}(n,t)}function L(e,t){var n,r,o=D.get(e);if(o)try{for(var i=u(o),a=i.next();!a.done;a=i.next()){(0,a.value)(t)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}var F=null;function z(){return!F&&"BroadcastChannel"in self&&((F=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){L(e.data.key,e.data.fid)}),F}function B(){0===D.size&&F&&(F.close(),F=null)}var q,U="firebase-installations-store",H=null;function W(){return H||(H=(0,f.openDb)("firebase-installations-database",1,(function(e){if(0===e.oldVersion)e.createObjectStore(U)}))),H}function V(e,t){return l(this,void 0,void 0,(function(){var n,r,o,i,a;return c(this,(function(s){switch(s.label){case 0:return n=O(e),[4,W()];case 1:return r=s.sent(),o=r.transaction(U,"readwrite"),[4,(i=o.objectStore(U)).get(n)];case 2:return a=s.sent(),[4,i.put(t,n)];case 3:return s.sent(),[4,o.complete];case 4:return s.sent(),a&&a.fid===t.fid||M(e,t.fid),[2,t]}}))}))}function K(e){return l(this,void 0,void 0,(function(){var t,n,r;return c(this,(function(o){switch(o.label){case 0:return t=O(e),[4,W()];case 1:return n=o.sent(),[4,(r=n.transaction(U,"readwrite")).objectStore(U).delete(t)];case 2:return o.sent(),[4,r.complete];case 3:return o.sent(),[2]}}))}))}function G(e,t){return l(this,void 0,void 0,(function(){var n,r,o,i,a,s;return c(this,(function(l){switch(l.label){case 0:return n=O(e),[4,W()];case 1:return r=l.sent(),o=r.transaction(U,"readwrite"),[4,(i=o.objectStore(U)).get(n)];case 2:return a=l.sent(),void 0!==(s=t(a))?[3,4]:[4,i.delete(n)];case 3:return l.sent(),[3,6];case 4:return[4,i.put(s,n)];case 5:l.sent(),l.label=6;case 6:return[4,o.complete];case 7:return l.sent(),!s||a&&a.fid===s.fid||M(e,s.fid),[2,s]}}))}))}function Y(e){return l(this,void 0,void 0,(function(){var t,n,r;return c(this,(function(o){switch(o.label){case 0:return[4,G(e,(function(n){var r=function(e){var t=e||{fid:R(),registrationStatus:0};return $(t)}(n),o=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(w.create("app-offline"))};var n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=function(e,t){return l(this,void 0,void 0,(function(){var n,r;return c(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,7]),[4,T(e,t)];case 1:return n=o.sent(),[2,V(e,n)];case 2:return x(r=o.sent())&&409===r.serverCode?[4,K(e)]:[3,4];case 3:return o.sent(),[3,6];case 4:return[4,V(e,{fid:t.fid,registrationStatus:0})];case 5:o.sent(),o.label=6;case 6:throw r;case 7:return[2]}}
2))}))}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:Q(e)}:{installationEntry:t}}(e,r);return t=o.registrationPromise,o.installationEntry}))];case 1:return""!==(n=o.sent()).fid?[3,3]:(r={},[4,t]);case 2:return[2,(r.installationEntry=o.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}}))}))}function Q(e){return l(this,void 0,void 0,(function(){var t,n,r,o;return c(this,(function(i){switch(i.label){case 0:return[4,X(e)];case 1:t=i.sent(),i.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,P(100)];case 3:return i.sent(),[4,X(e)];case 4:return t=i.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,Y(e)];case 6:return n=i.sent(),r=n.installationEntry,(o=n.registrationPromise)?[2,o]:[2,r];case 7:return[2,t]}}))}))}function X(e){return G(e,(function(e){if(!e)throw w.create("installation-not-found");return $(e)}))}function $(e){return 1===(t=e).registrationStatus&&t.registrationTime+_<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}function J(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return l(this,void 0,void 0,(function(){var e,o,i,a,s,l,u;return c(this,(function(c){switch(c.label){case 0:return e=function(e,t){var n=t.fid;return k(e)+"/"+n+"/authTokens:generate"}(n,t),o=E(n,t),(i=r.getImmediate({optional:!0}))&&o.append("x-firebase-client",i.getPlatformInfoString()),a={installation:{sdkVersion:g}},s={method:"POST",headers:o,body:JSON.stringify(a)},[4,j((function(){return fetch(e,s)}))];case 1:return(l=c.sent()).ok?[4,l.json()]:[3,3];case 2:return u=c.sent(),[2,S(u)];case 3:return[4,C("Generate Auth Token",l)];case 4:throw c.sent()}}))}))}function Z(e,t){return void 0===t&&(t=!1),l(this,void 0,void 0,(function(){var n,r,o;return c(this,(function(i){switch(i.label){case 0:return[4,G(e.appConfig,(function(r){if(!te(r))throw w.create("not-registered");var o=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+y}(e)}(o))return r;if(1===o.requestStatus)return n=function(e,t){return l(this,void 0,void 0,(function(){var n,r;return c(this,(function(o){switch(o.label){case 0:return[4,ee(e.appConfig)];case 1:n=o.sent(),o.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,P(100)];case 3:return o.sent(),[4,ee(e.appConfig)];case 4:return n=o.sent(),[3,2];case 5:return 0===(r=n.authToken).requestStatus?[2,Z(e,t)]:[2,r]}}))}))}(e,t),r;if(!navigator.onLine)throw w.create("app-offline");var i=function(e){var t={requestStatus:1,requestTime:Date.now()};return s(s({},e),{authToken:t})}(r);return n=function(e,t){return l(this,void 0,void 0,(function(){var n,r,o;return c(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,8]),[4,J(e,t)];case 1:return n=i.sent(),o=s(s({},t),{authToken:n}),[4,V(e.appConfig,o)];case 2:return i.sent(),[2,n];case 3:return!x(r=i.sent())||401!==r.serverCode&&404!==r.serverCode?[3,5]:[4,K(e.appConfig)];case 4:return i.sent(),[3,7];case 5:return o=s(s({},t),{authToken:{requestStatus:0}}),[4,V(e.appConfig,o)];case 6:i.sent(),i.label=7;case 7:throw r;case 8:return[2]}}
2))}))}(e,i),i}))];case 1:return r=i.sent(),n?[4,n]:[3,3];case 2:return o=i.sent(),[3,4];case 3:o=r.authToken,i.label=4;case 4:return[2,o]}}))}))}function ee(e){return G(e,(function(e){if(!te(e))throw w.create("not-registered");var t,n=e.authToken;return 1===(t=n).requestStatus&&t.requestTime+_<Date.now()?s(s({},e),{authToken:{requestStatus:0}}):e}))}function te(e){return void 0!==e&&2===e.registrationStatus}function ne(e){return l(this,void 0,void 0,(function(){var t;return c(this,(function(n){switch(n.label){case 0:return[4,Y(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))}function re(e,t){return l(this,void 0,void 0,(function(){var n,r,o,i;return c(this,(function(a){switch(a.label){case 0:return n=function(e,t){var n=t.fid;return k(e)+"/"+n}(e,t),r=E(e,t),o={method:"DELETE",headers:r},[4,j((function(){return fetch(n,o)}))];case 1:return(i=a.sent()).ok?[3,3]:[4,C("Delete Installation",i)];case 2:throw a.sent();case 3:return[2]}}))}))}function oe(e,t){var n=e.appConfig;return function(e,t){z();var n=O(e),r=D.get(n);r||(r=new Set,D.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=O(e),r=D.get(n);r&&(r.delete(t),0===r.size&&D.delete(n),B())}(n,t)}}function ie(e){return w.create("missing-app-config-values",{valueName:e})}(q=i.default).INTERNAL.registerComponent(new a.Component("installations",(function(e){var t=e.getProvider("app").getImmediate(),n=function(e){var t,n;if(!e||!e.options)throw ie("App Configuration");if(!e.name)throw ie("App Name");try{for(var r=u(["projectId","apiKey","appId"]),o=r.next();!o.done;o=r.next()){var i=o.value;if(!e.options[i])throw ie(i)}}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),r={appConfig:n,platformLoggerProvider:e.getProvider("platform-logger")},o={app:t,getId:function(){return function(e){return l(this,void 0,void 0,(function(){var t,n,r;return c(this,(function(o){switch(o.label){case 0:return[4,Y(e.appConfig)];case 1:return t=o.sent(),n=t.installationEntry,(r=t.registrationPromise)?r.catch(console.error):Z(e).catch(console.error),[2,n.fid]}}))}))}(r)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),l(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,ne(e.appConfig)];case 1:return n.sent(),[4,Z(e,t)];case 2:return[2,n.sent().token]}}))}))}(r,e)},delete:function(){return function(e){return l(this,void 0,void 0,(function(){var t,n;return c(this,(function(r){switch(r.label){case 0:return[4,G(t=e.appConfig,(function(e){if(!e||0!==e.registrationStatus)return e}))];case 1:if(!(n=r.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw w.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw w.create("app-offline");case 3:return[4,re(t,n)];case 4:return r.sent(),[4,K(t)];case 5:r.sent(),r.label=6;case 6:return[2]}}
2))}))}(r)},onIdChange:function(e){return oe(r,e)}};return o}),"PUBLIC")),q.registerVersion("@firebase/installations",m);var ae=function(){return ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ae.apply(this,arguments)};function se(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function le(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function ce(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ue(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var de,pe,he=n(63089),fe=((de={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',de["only-available-in-window"]="This method is available in a Window context.",de["only-available-in-sw"]="This method is available in a service worker context.",de["permission-default"]="The notification permission was not granted and dismissed instead.",de["permission-blocked"]="The notification permission was not granted and blocked instead.",de["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",de["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",de["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",de["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",de["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",de["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",de["token-update-no-token"]="FCM returned no token when updating the user to push.",de["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",de["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",de["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",de["invalid-vapid-key"]="The public VAPID key must be a string.",de["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",de),me=new h.ErrorFactory("messaging","Messaging",fe),_e="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",ge="FCM_MSG",ve="google.c.a.c_id";function ye(e){var t=new Uint8Array(e),n=btoa(String.fromCharCode.apply(String,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ue(arguments[t]));return e}(t)));return n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function be(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(t),r=new Uint8Array(n.length),o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}!function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(pe||(pe={}));var we="fcm_token_details_db",xe="fcm_token_object_Store";function ke(e){return se(this,void 0,void 0,(function(){var t,n,r,o=this;return le(this,(function(i){switch(i.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(t=i.sent(),n=t.map((function(e){return e.name})),!n.includes(we))return[2,null];i.label=2;case 2:return r=null,[4,(0,he.openDb)(we,5,(function(t){return se(o,void 0,void 0,(function(){var n,o,i,a;return le(this,(function(s){switch(s.label){case 0:return t.oldVersion<2?[2]:t.objectStoreNames.contains(xe)?[4,(n=t.transaction.objectStore(xe)).index("fcmSenderId").get(e)]:[2];case 1:return o=s.sent(),[4,n.clear()];case 2:if(s.sent(),!o)return[2];if(2===t.oldVersion){if(!(i=o).auth||!i.p256dh||!i.endpoint)return[2];r={token:i.fcmToken,createTime:null!==(a=i.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:i.auth,p256dh:i.p256dh,endpoint:i.endpoint,swScope:i.swScope,vapidKey:"string"===typeof i.vapidKey?i.vapidKey:ye(i.vapidKey)}}}else(3===t.oldVersion||4===t.oldVersion)&&(r={token:(i=o).fcmToken,createTime:i.createTime,subscriptionOptions:{auth:ye(i.auth),p256dh:ye(i.p256dh),endpoint:i.endpoint,swScope:i.swScope,vapidKey:ye(i.vapidKey)}});return[2]}}
2))}))}))];case 3:return i.sent().close(),[4,(0,he.deleteDb)(we)];case 4:return i.sent(),[4,(0,he.deleteDb)("fcm_vapid_details_db")];case 5:return i.sent(),[4,(0,he.deleteDb)("undefined")];case 6:return i.sent(),[2,Se(r)?r:null]}}))}))}function Se(e){if(!e||!e.subscriptionOptions)return!1;var t=e.subscriptionOptions;return"number"===typeof e.createTime&&e.createTime>0&&"string"===typeof e.token&&e.token.length>0&&"string"===typeof t.auth&&t.auth.length>0&&"string"===typeof t.p256dh&&t.p256dh.length>0&&"string"===typeof t.endpoint&&t.endpoint.length>0&&"string"===typeof t.swScope&&t.swScope.length>0&&"string"===typeof t.vapidKey&&t.vapidKey.length>0}var Ce="firebase-messaging-store",Ae=null;function Ee(){return Ae||(Ae=(0,he.openDb)("firebase-messaging-database",1,(function(e){if(0===e.oldVersion)e.createObjectStore(Ce)}))),Ae}function je(e){return se(this,void 0,void 0,(function(){var t,n,r;return le(this,(function(o){switch(o.label){case 0:return t=Ne(e),[4,Ee()];case 1:return[4,o.sent().transaction(Ce).objectStore(Ce).get(t)];case 2:return(n=o.sent())?[2,n]:[3,3];case 3:return[4,ke(e.appConfig.senderId)];case 4:return(r=o.sent())?[4,Te(e,r)]:[3,6];case 5:return o.sent(),[2,r];case 6:return[2]}}
2))}))}function Te(e,t){return se(this,void 0,void 0,(function(){var n,r,o;return le(this,(function(i){switch(i.label){case 0:return n=Ne(e),[4,Ee()];case 1:return r=i.sent(),[4,(o=r.transaction(Ce,"readwrite")).objectStore(Ce).put(t,n)];case 2:return i.sent(),[4,o.complete];case 3:return i.sent(),[2,t]}}))}))}function Pe(e){return se(this,void 0,void 0,(function(){var t,n,r;return le(this,(function(o){switch(o.label){case 0:return t=Ne(e),[4,Ee()];case 1:return n=o.sent(),[4,(r=n.transaction(Ce,"readwrite")).objectStore(Ce).delete(t)];case 2:return o.sent(),[4,r.complete];case 3:return o.sent(),[2]}}))}))}function Ne(e){return e.appConfig.appId}function Ie(e,t){return se(this,void 0,void 0,(function(){var n,r,o,i,a,s;return le(this,(function(l){switch(l.label){case 0:return[4,Me(e)];case 1:n=l.sent(),r=Le(t),o={method:"POST",headers:n,body:JSON.stringify(r)},l.label=2;case 2:return l.trys.push([2,5,,6]),[4,fetch(De(e.appConfig),o)];case 3:return[4,l.sent().json()];case 4:return i=l.sent(),[3,6];case 5:throw a=l.sent(),me.create("token-subscribe-failed",{errorInfo:a});case 6:if(i.error)throw s=i.error.message,me.create("token-subscribe-failed",{errorInfo:s});if(!i.token)throw me.create("token-subscribe-no-token");return[2,i.token]}}))}))}function Re(e,t){return se(this,void 0,void 0,(function(){var n,r,o,i,a,s;return le(this,(function(l){switch(l.label){case 0:return[4,Me(e)];case 1:n=l.sent(),r=Le(t.subscriptionOptions),o={method:"PATCH",headers:n,body:JSON.stringify(r)},l.label=2;case 2:return l.trys.push([2,5,,6]),[4,fetch(De(e.appConfig)+"/"+t.token,o)];case 3:return[4,l.sent().json()];case 4:return i=l.sent(),[3,6];case 5:throw a=l.sent(),me.create("token-update-failed",{errorInfo:a});case 6:if(i.error)throw s=i.error.message,me.create("token-update-failed",{errorInfo:s});if(!i.token)throw me.create("token-update-no-token");return[2,i.token]}}))}))}function Oe(e,t){return se(this,void 0,void 0,(function(){var n,r,o,i,a;return le(this,(function(s){switch(s.label){case 0:return[4,Me(e)];case 1:n=s.sent(),r={method:"DELETE",headers:n},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(De(e.appConfig)+"/"+t,r)];case 3:return[4,s.sent().json()];case 4:if((o=s.sent()).error)throw i=o.error.message,me.create("token-unsubscribe-failed",{errorInfo:i});return[3,6];case 5:throw a=s.sent(),me.create("token-unsubscribe-failed",{errorInfo:a});case 6:return[2]}}
2))}))}function De(e){return"https://fcmregistrations.googleapis.com/v1/projects/"+e.projectId+"/registrations"}function Me(e){var t=e.appConfig,n=e.installations;return se(this,void 0,void 0,(function(){var e;return le(this,(function(r){switch(r.label){case 0:return[4,n.getToken()];case 1:return e=r.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":"FIS "+e})]}}))}))}function Le(e){var t=e.p256dh,n=e.auth,r=e.endpoint,o=e.vapidKey,i={web:{endpoint:r,auth:n,p256dh:t}};return o!==_e&&(i.web.applicationPubKey=o),i}function Fe(e,t,n){return se(this,void 0,void 0,(function(){var r,o,i,a;return le(this,(function(s){switch(s.label){case 0:if("granted"!==Notification.permission)throw me.create("permission-blocked");return[4,Ue(t,n)];case 1:return r=s.sent(),[4,je(e)];case 2:return o=s.sent(),i={vapidKey:n,swScope:t.scope,endpoint:r.endpoint,auth:ye(r.getKey("auth")),p256dh:ye(r.getKey("p256dh"))},o?[3,3]:[2,qe(e,i)];case 3:if(function(e,t){var n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,o=t.auth===e.auth,i=t.p256dh===e.p256dh;return n&&r&&o&&i}(o.subscriptionOptions,i))return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,Oe(e,o.token)];case 5:return s.sent(),[3,7];case 6:return a=s.sent(),console.warn(a),[3,7];case 7:return[2,qe(e,i)];case 8:return Date.now()>=o.createTime+6048e5?[2,Be({token:o.token,createTime:Date.now(),subscriptionOptions:i},e,t)]:[2,o.token];case 9:return[2]}}
2))}))}function ze(e,t){return se(this,void 0,void 0,(function(){var n,r;return le(this,(function(o){switch(o.label){case 0:return[4,je(e)];case 1:return(n=o.sent())?[4,Oe(e,n.token)]:[3,4];case 2:return o.sent(),[4,Pe(e)];case 3:o.sent(),o.label=4;case 4:return[4,t.pushManager.getSubscription()];case 5:return(r=o.sent())?[2,r.unsubscribe()]:[2,!0]}}))}))}function Be(e,t,n){return se(this,void 0,void 0,(function(){var r,o,i;return le(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,5]),[4,Re(t,e)];case 1:return r=a.sent(),o=ae(ae({},e),{token:r,createTime:Date.now()}),[4,Te(t,o)];case 2:return a.sent(),[2,r];case 3:return i=a.sent(),[4,ze(t,n)];case 4:throw a.sent(),i;case 5:return[2]}}))}))}function qe(e,t){return se(this,void 0,void 0,(function(){var n,r;return le(this,(function(o){switch(o.label){case 0:return[4,Ie(e,t)];case 1:return n=o.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:t},[4,Te(e,r)];case 2:return o.sent(),[2,r.token]}}))}))}function Ue(e,t){return se(this,void 0,void 0,(function(){var n;return le(this,(function(r){switch(r.label){case 0:return[4,e.pushManager.getSubscription()];case 1:return(n=r.sent())?[2,n]:[2,e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:be(t)})]}}))}))}function He(e){return"object"===typeof e&&!!e&&ve in e}var We=function(){function e(e){var t=this;this.firebaseDependencies=e,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",(function(e){e.waitUntil(t.onPush(e))})),self.addEventListener("pushsubscriptionchange",(function(e){e.waitUntil(t.onSubChange(e))})),self.addEventListener("notificationclick",(function(e){e.waitUntil(t.onNotificationClick(e))}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),e.prototype.setBackgroundMessageHandler=function(e){if(this.isOnBackgroundMessageUsed=!1,!e||"function"!==typeof e)throw me.create("invalid-bg-handler");this.bgMessageHandler=e},e.prototype.onBackgroundMessage=function(e){var t=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=e,function(){t.bgMessageHandler=null}},e.prototype.getToken=function(){var e,t;return se(this,void 0,void 0,(function(){var n;return le(this,(function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,je(this.firebaseDependencies)];case 1:n=r.sent(),this.vapidKey=null!==(t=null===(e=null===n||void 0===n?void 0:n.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==t?t:_e,r.label=2;case 2:return[2,Fe(this.firebaseDependencies,self.registration,this.vapidKey)]}}))}))},e.prototype.deleteToken=function(){return ze(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw me.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw me.create("use-vapid-key-after-get-token");if("string"!==typeof e||0===e.length)throw me.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(){throw me.create("only-available-in-window")},e.prototype.onMessage=function(){throw me.create("only-available-in-window")},e.prototype.onTokenRefresh=function(){throw me.create("only-available-in-window")},e.prototype.onPush=function(e){return se(this,void 0,void 0,(function(){var t,n,r,o;return le(this,(function(i){switch(i.label){case 0:return t=function(e){var t=e.data;if(!t)return null;try{return t.json()}catch(n){return null}}(e),t?[4,Ye()]:(console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return function(e){return e.some((function(e){return"visible"===e.visibilityState&&!e.url.startsWith("chrome-extension://")}))}(n=i.sent())?[2,Ge(n,t)]:(r=!1,t.notification?[4,Qe(Ve(t))]:[3,3]);case 2:i.sent(),r=!0,i.label=3;case 3:return!0===r&&!1===this.isOnBackgroundMessageUsed||this.bgMessageHandler&&(o=function(e){var t={from:e.from,collapseKey:e.collapse_key};return function(e,t){if(t.notification){e.notification={};var n=t.notification.title;n&&(e.notification.title=n);var r=t.notification.body;r&&(e.notification.body=r);var o=t.notification.image;o&&(e.notification.image=o)}}(t,e),function(e,t){t.data&&(e.data=t.data)}(t,e),function(e,t){if(t.fcmOptions){e.fcmOptions={};var n=t.fcmOptions.link;n&&(e.fcmOptions.link=n);var r=t.fcmOptions.analytics_label;r&&(e.fcmOptions.analyticsLabel=r)}}(t,e),t}(t),"function"===typeof this.bgMessageHandler?this.bgMessageHandler(o):this.bgMessageHandler.next(o)),[2]}}))}))},e.prototype.onSubChange=function(e){var t,n;return se(this,void 0,void 0,(function(){var r;return le(this,(function(o){switch(o.label){case 0:return e.newSubscription?[3,2]:[4,ze(this.firebaseDependencies,self.registration)];case 1:case 5:return o.sent(),[2];case 2:return[4,je(this.firebaseDependencies)];case 3:return r=o.sent(),[4,ze(this.firebaseDependencies,self.registration)];case 4:return o.sent(),[4,Fe(this.firebaseDependencies,self.registration,null!==(n=null===(t=null===r||void 0===r?void 0:r.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==n?n:_e)]}}))}))},e.prototype.onNotificationClick=function(e){var t,n;return se(this,void 0,void 0,(function(){var r,o,i,a,s;return le(this,(function(l){switch(l.label){case 0:return(r=null===(n=null===(t=e.notification)||void 0===t?void 0:t.data)||void 0===n?void 0:n[ge])?e.action?[2]:(e.stopImmediatePropagation(),e.notification.close(),o=function(e){var t,n,r,o=null!==(n=null===(t=e.fcmOptions)||void 0===t?void 0:t.link)&&void 0!==n?n:null===(r=e.notification)||void 0===r?void 0:r.click_action;if(o)return o;return He(e.data)?self.location.origin:null}(r),o?(i=new URL(o,self.location.href),a=new URL(self.location.origin),i.host!==a.host?[2]:[4,Ke(i)]):[2]):[2];case 1:return(s=l.sent())?[3,4]:[4,self.clients.openWindow(o)];case 2:return s=l.sent(),[4,(c=3e3,new Promise((function(e){setTimeout(e,c)})))];case 3:return l.sent(),[3,6];case 4:return[4,s.focus()];case 5:s=l.sent(),l.label=6;case 6:return s?(r.messageType=pe.NOTIFICATION_CLICKED,r.isFirebaseMessaging=!0,[2,s.postMessage(r)]):[2]}var c}))}))},e}();function Ve(e){var t,n=ae({},e.notification);return n.data=((t={})[ge]=e,t),n}function Ke(e){return se(this,void 0,void 0,(function(){var t,n,r,o,i,a,s;return le(this,(function(l){switch(l.label){case 0:return[4,Ye()];case 1:t=l.sent();try{for(n=ce(t),r=n.next();!r.done;r=n.next())if(o=r.value,i=new URL(o.url,self.location.href),e.host===i.host)return[2,o]}catch(c){a={error:c}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(a)throw a.error}}return[2,null]}}))}))}function Ge(e,t){var n,r;t.isFirebaseMessaging=!0,t.messageType=pe.PUSH_RECEIVED;try{for(var o=ce(e),i=o.next();!i.done;i=o.next()){i.value.postMessage(t)}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function Ye(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function Qe(e){var t,n=e.actions,r=Notification.maxActions;return n&&r&&n.length>r&&console.warn("This browser only supports "+r+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(t=e.title)&&void 0!==t?t:"",e)}var Xe=function(){function e(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",(function(e){return t.messageEventListener(e)}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app}
2,enumerable:!1,configurable:!0}),e.prototype.messageEventListener=function(e){return se(this,void 0,void 0,(function(){var t,n;return le(this,(function(r){switch(r.label){case 0:return(t=e.data).isFirebaseMessaging?(this.onMessageCallback&&t.messageType===pe.PUSH_RECEIVED&&("function"===typeof this.onMessageCallback?this.onMessageCallback(function(e){return delete e.messageType,delete e.isFirebaseMessaging,e}(Object.assign({},t))):this.onMessageCallback.next(Object.assign({},t))),He(n=t.data)&&"1"===n["google.c.a.e"]?[4,this.logEvent(t.messageType,n)]:[3,2]):[2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},e.prototype.getVapidKey=function(){return this.vapidKey},e.prototype.getSwReg=function(){return this.swRegistration},e.prototype.getToken=function(e){return se(this,void 0,void 0,(function(){return le(this,(function(t){switch(t.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:t.sent(),t.label=2;case 2:if("granted"!==Notification.permission)throw me.create("permission-blocked");return[4,this.updateVapidKey(null===e||void 0===e?void 0:e.vapidKey)];case 3:return t.sent(),[4,this.updateSwReg(null===e||void 0===e?void 0:e.serviceWorkerRegistration)];case 4:return t.sent(),[2,Fe(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}}))}))},e.prototype.updateVapidKey=function(e){return se(this,void 0,void 0,(function(){return le(this,(function(t){return e?this.vapidKey=e:this.vapidKey||(this.vapidKey=_e),[2]}))}))},e.prototype.updateSwReg=function(e){return se(this,void 0,void 0,(function(){return le(this,(function(t){switch(t.label){case 0:return e||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:t.sent(),t.label=2;case 2:if(!e&&this.swRegistration)return[2];if(!(e instanceof ServiceWorkerRegistration))throw me.create("invalid-sw-registration");return this.swRegistration=e,[2]}}))}))},e.prototype.registerDefaultSw=function(){return se(this,void 0,void 0,(function(){var e,t;return le(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 1:return e.swRegistration=n.sent(),this.swRegistration.update().catch((function(){})),[3,3];case 2:throw t=n.sent(),me.create("failed-service-worker-registration",{browserErrorMessage:t.message});case 3:return[2]}}
2))}))},e.prototype.deleteToken=function(){return se(this,void 0,void 0,(function(){return le(this,(function(e){switch(e.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:e.sent(),e.label=2;case 2:return[2,ze(this.firebaseDependencies,this.swRegistration)]}}))}))},e.prototype.requestPermission=function(){return se(this,void 0,void 0,(function(){var e;return le(this,(function(t){switch(t.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(e=t.sent()))return[2];throw"denied"===e?me.create("permission-blocked"):me.create("permission-default")}}))}))},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw me.create("use-vapid-key-after-get-token");if("string"!==typeof e||0===e.length)throw me.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw me.create("invalid-sw-registration");if(this.swRegistration)throw me.create("use-sw-after-get-token");this.swRegistration=e},e.prototype.onMessage=function(e){var t=this;return this.onMessageCallback=e,function(){t.onMessageCallback=null}},e.prototype.setBackgroundMessageHandler=function(){throw me.create("only-available-in-sw")},e.prototype.onBackgroundMessage=function(){throw me.create("only-available-in-sw")},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.logEvent=function(e,t){return se(this,void 0,void 0,(function(){var n;return le(this,(function(r){switch(r.label){case 0:return n=function(e){switch(e){case pe.NOTIFICATION_CLICKED:return"notification_open";case pe.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(e),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r.sent().logEvent(n,{message_id:t[ve],message_name:t["google.c.a.c_l"],message_time:t["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}}))}))},e}();function $e(e){return me.create("missing-app-config-values",{valueName:e})}var Je={isSupported:Ze};function Ze(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}i.default.INTERNAL.registerComponent(new a.Component("messaging",(function(e){var t=e.getProvider("app").getImmediate(),n=function(e){var t,n;if(!e||!e.options)throw $e("App Configuration Object");if(!e.name)throw $e("App Name");var r=e.options;try{for(var o=ce(["projectId","apiKey","appId","messagingSenderId"]),i=o.next();!i.done;i=o.next()){var a=i.value;if(!r[a])throw $e(a)}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return{appName:e.name,projectId:r.projectId,apiKey:r.apiKey,appId:r.appId,senderId:r.messagingSenderId}}(t),r={app:t,appConfig:n,installations:e.getProvider("installations").getImmediate(),analyticsProvider:e.getProvider("analytics-internal")};if(!Ze())throw me.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new We(r):new Xe(r)}),"PUBLIC").setServiceProps(Je));let et=!1;const tt=async e=>{if(!et){et=!0;try{if(!r.firebase.messaging.isSupported())return void console.log("\u0647\u0630\u0627 \u0627\u0644\u0645\u062a\u0635\u0641\u062d \u0644\u0627 \u064a\u062f\u0639\u0645 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a.");try{if("serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations){const e=await navigator.serviceWorker.getRegistrations();for(const r of e){var t,n,i;const e=(null===(t=r.active)||void 0===t?void 0:t.scriptURL)||"",o=(null===(n=r.waiting)||void 0===n?void 0:n.scriptURL)||"",a=(null===(i=r.installing)||void 0===i?void 0:i.scriptURL)||"",s="".concat(e," ").concat(o," ").concat(a),l=s.includes("/service-worker.js")||s.includes("/pwabuilder
2-sw.js"),c=s.includes("/firebase-messaging-sw.js");l&&!c&&(await r.unregister(),console.log("Unregistered legacy service worker to avoid duplicate push notifications."))}}}catch(a){console.warn("Failed to cleanup legacy service workers:",a)}let l="granted";if("Notification"in window&&(l="granted"===Notification.permission?"granted":await Notification.requestPermission()),"granted"!==l)return void console.log("\u0644\u0645 \u064a\u062a\u0645 \u0645\u0646\u062d \u0627\u0644\u0625\u0630\u0646 \u0644\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a.");const c=await navigator.serviceWorker.register("/firebase-messaging-sw.js");await navigator.serviceWorker.ready;const u=r.firebase.messaging(),d=await u.getToken({vapidKey:r.defaultFirebaseConfig.vapidKey,serviceWorkerRegistration:c});if(!d)return void console.warn("\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u062a\u0648\u0643\u0646 FCM.");const p=r.firebase.database().ref("kunaiu_bank/".concat(e,"/fcmTokens/").concat(d)),h=(await p.once("value")).exists(),f=localStorage.getItem("fcm_token_value"),m=f?(0,o.af)(f):null,_=m!==d,g="fcm_token_owner",v=localStorage.getItem(g);if(h&&!_&&v===e)return void console.log("\u0627\u0644\u062a\u0648\u0643\u0646 \u0644\u0627 \u064a\u0632\u0627\u0644 \u0635\u0627\u0644\u062d\u0627\u064b \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u062d\u0627\u0644\u064a.");if(m&&v&&v!==e)try{await r.firebase.database().ref("kunaiu_bank/".concat(v,"/fcmTokens/").concat(m)).remove(),console.log("\u062a\u0645 \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062a\u0648\u0643\u0646 \u0645\u0646 \u0627\u0644\u0645\u0627\u0644\u0643 \u0627\u0644\u0633\u0627\u0628\u0642: ".concat(v))}catch(s){console.warn("\u0641\u0634\u0644 \u0641\u064a \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062a\u0648\u0643\u0646 \u0645\u0646 \u0627\u0644\u0645\u0627\u0644\u0643 \u0627\u0644\u0633\u0627\u0628\u0642:",s)}if(_&&m&&(!v||v===e))try{await r.firebase.database().ref("kunaiu_bank/".concat(e,"/fcmTokens/").concat(m)).remove(),console.log("\u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u062a\u0648\u0643\u0646 \u0627\u0644\u0642\u062f\u064a\u0645 \u0645\u0646 \u0642\u0627\u0639\u062f\u0629 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u062d\u0627\u0644\u064a.")}catch(s){console.warn("\u0644\u0645 \u064a\u062a\u0645\u0643\u0646 \u0645\u0646 \u062d\u0630\u0641 \u0627\u0644\u062a\u0648\u0643\u0646 \u0627\u0644\u0642\u062f\u064a\u0645:",s)}await p.set(!0),localStorage.setItem("fcm_setup_".concat(e),"true"),localStorage.setItem("fcm_token_value",(0,o.yv)(d)),localStorage.setItem(g,e),console.log("\u062a\u0645 \u062a\u062d\u062f\u064a\u062b \u062a\u0648\u0643\u0646 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0628\u0646\u062c\u0627\u062d \u0648\u0631\u0628\u0637\u0647 \u0628\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u062d\u0627\u0644\u064a.")}catch(l){console.error("\u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u0641\u0639\u064a\u0644 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a:",l),localStorage.removeItem("fcm_setup_".concat(e)),localStorage.removeItem("fcm_token_value")}finally{et=!1}}},nt=async e=>{try{const t=localStorage.getItem("fcm_token_value"),n=t?(0,o.af)(t):null;if(n&&e&&(await r.firebase.database().ref("kunaiu_bank/".concat(e,"/fcmTokens/").concat(n)).remove(),console.log("\u062a\u0645 \u062d\u0630\u0641 \u062a\u0648\u0643\u0646 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0645\u0646 \u0642\u0627\u0639\u062f\u0629 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a.")),r.firebase.messaging.isSupported()){const e=r.firebase.messaging();await e.deleteToken()}localStorage.removeItem("fcm_setup_".concat(e)),localStorage.removeItem("fcm_token_value")}catch(t){console.error("\u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062d\u0630\u0641 \u062a\u0648\u0643\u0646 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a:",t)}}},41024:(e,t,n)=>{"use strict";n.d(t,{$$:()=>_,Es:()=>f,KG:()=>v,Ks:()=>j,Ll:()=>l,Re:()=>C,Sw:()=>a,TW:()=>h,WQ:()=>S,YG:()=>x,YN:()=>g,ZC:()=>b,_q:()=>m,ag:()=>P,e_:()=>E,jn:()=>i,kx:()=>A,l6:()=>s,lk:()=>y,sb:()=>d,wz:()=>
2u,xZ:()=>p,zk:()=>c});var r=n(22555),o=n(65043);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const a="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function s(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function c(e){var t,n;return e?s(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){const{Document:t}=c(e);return e instanceof t}function d(e){return!s(e)&&e instanceof c(e).HTMLElement}function p(e){return e instanceof c(e).SVGElement}function h(e){return e?s(e)?e.document:l(e)?u(e)?e:d(e)||p(e)?e.ownerDocument:document:document:document}const f=a?o.useLayoutEffect:o.useEffect;function m(e){const t=(0,o.useRef)(e);return f((()=>{t.current=e})),(0,o.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function _(){const e=(0,o.useRef)(null);return[(0,o.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,o.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function g(e,t){void 0===t&&(t=[e]);const n=(0,o.useRef)(e);return f((()=>{n.current!==e&&(n.current=e)}),t),n}function v(e,t){const n=(0,o.useRef)();return(0,o.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function y(e){const t=m(e),n=(0,o.useRef)(null),r=(0,o.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function b(e){const t=(0,o.useRef)();return(0,o.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function x(e,t){return(0,o.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function k(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.reduce(((t,n)=>{const r=Object.entries(n);for(const[o,i]of r){const n=t[o];null!=n&&(t[o]=n+e*i)}return t}),(0,r.A)({},t))}}const S=k(1),C=k(-1);function A(e){if(!e)return!1;const{KeyboardEvent:t}=c(e.target);return t&&e instanceof t}function E(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=c(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const j=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[j.Translate.toString(e),j.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),T="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function P(e){return e.matches(T)?e:e.querySelector(T)}},41069:(e,t,n)=>{var r=n(38541);e.exports=function(e){return null==e?"":r(e)}},41098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i=n(39019),a=n(38679),s=n(55858),l=n(16678),c=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),u=new a.ErrorFactory("app","Firebase",c),d="@firebase/app",p="[DEFAULT]",h=((o={})[d]="fire-core",o["@firebase/analytics"]="fire-analytics",o["@firebase/auth"]="fire-auth",o["@firebase/database"]="fire-rtdb",o["@firebase/functions"]="fire-fn",o["@firebase/installations"]="fire-iid",o["@firebase/messaging"]="fire-fcm",o["@firebase/performance"]="fire-perf",o["@firebase/remote-config"]="fire-rc",o["@firebase/storage"]="fire-g
2cs",o["@firebase/firestore"]="fire-fst",o["fire-js"]="fire-js",o["firebase-wrapper"]="fire-js-all",o),f=new l.Logger("@firebase/app"),m=function(){function e(e,t,n){var r,o,l=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=a.deepCopy(e),this.container=new s.ComponentContainer(t.name),this._addComponent(new s.Component("app",(function(){return l}),"PUBLIC"));try{for(var c=i.__values(this.firebase_.INTERNAL.components.values()),u=c.next();!u.done;u=c.next()){var d=u.value;this._addComponent(d)}}catch(p){r={error:p}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise((function(t){e.checkDestroyed_(),t()})).then((function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map((function(e){return e.delete()})))})).then((function(){e.isDeleted_=!0}))},e.prototype._getService=function(e,t){return void 0===t&&(t=p),this.checkDestroyed_(),this.container.getProvider(e).getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t=p),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){f.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw u.create("app-deleted",{appName:this.name_})},e}();m.prototype.name&&m.prototype.options||m.prototype.delete||console.log("dc");var _=function e(){var t=function(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,o){void 0===o&&(o={}),"object"===typeof o&&null!==o||(o={name:o});var i=o;void 0===i.name&&(i.name=p);var s=i.name;if("string"!==typeof s||!s)throw u.create("bad-app-name",{appName:String(s)});if(a.contains(t,s))throw u.create("duplicate-app",{appName:s});var l=new e(n,i,r);return t[s]=l,l},app:o,registerVersion:function(e,t,n){var r,o=null!==(r=h[e])&&void 0!==r?r:e;n&&(o+="-"+n);var i=o.match(/\s|\//),a=t.match(/\s|\//);if(i||a){var l=['Unable to register library "'+o+'" with version "'+t+'":'];return i&&l.push('library name "'+o+'" contains illegal characters (whitespace or "/")'),i&&a&&l.push("and"),a&&l.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void f.warn(l.join(" "))}c(new s.Component(o+"-version",(function(){return{library:o,version:t}}),"VERSION"))},setLogLevel:l.setLogLevel,onLog:function(e,t){if(null!==e&&"function"!==typeof e)throw u.create("invalid-log-argument",{appName:name});l.setUserLogHandler(e,t)},apps:null,SDK_VERSION:"7.20.0",INTERNAL:{registerComponent:c,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){return"serverAuth"===t?null:t}}};function o(e){if(e=e||p,!a.contains(t,e))throw u.create("no-app",{appName:e});return t[e]}function c(s){var l,c,d=s.name;if(n.has(d))return f.debug("There were multiple attempts to register component "+d+"."),"PUBLIC"===s.type?r[d]:null;if(n.set(d,s),"PUBLIC"===s.type){var p=function(e){if(void 0===e&&(e=o()),"function"!==typeof e[d])throw u.create("invalid-app-argument",{appName:d});return e[d]()};void 0!==s.serviceProps&&a.deepExtend(p,s.serviceProps),r[d]=p,e.prototype[d]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._getService.bind(this,d).apply(this,s.multipleInstances?e:[])}}try{for(var h=i.__values(Object.keys(t)),m=h.next();!m.done;m=h.next()){var _=m.value;t[_]._addComponent(s)}}catch(g){l={error:g}}finally{try{m&&!m.done&&(c=h.return)&&c.call(h)}finally{if(l)throw l.error}}return"PUBLIC"===s.type?r[d]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(t).map((function(e){return t[e]}))}}),o.App=e,r}(m);return t.INTERNAL=i.__assign(i.__assign({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){a.deepExtend(t,e)},createSubscribe:a.createSubscribe,ErrorFactory:a.ErrorFactory,deepExtend:a.deepExtend}),t}(),g=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null})).filter((function(e){return e})).join(" ")},e}();if(a.isBrowser()&&void 0!==self.firebase){f.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var v=self.firebase.SDK_VERSION;v&&v.indexOf("LITE")>=0&&f.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var y=_.initializeApp;_.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.isNode()&&f.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/rollup-plugin-node-resolve\n      '),y.apply(void 0,e)};var b=_;!function(e,t){e.INTERNAL.registerComponent(new s.Component("platform-logger",(function(e){return new g(e)}),"PRIVATE")),e.registerVersion(d,"0.6.11",t),e.registerVersion("fire-js","")}(b),t.default=b,t.firebase=b}
2,41189:(e,t,n)=>{"use strict";n.d(t,{lx:()=>c,ng:()=>s,pj:()=>a,yc:()=>l});var r=n(22555),o=n(40117);const i={mention:"mentions",reaction:"reactions",post_reaction:"reactions",comment_reaction:"reactions",reply_reaction:"reactions",comment:"comments",reply:"replies",chat_message:"messages",private_message:"messages",group_message:"messages",ban:"bans",unban:"bans",block:"bans"},a={mentions:!0,reactions:!0,comments:!0,replies:!0,messages:!0,bans:!0};async function s(e){if(!e)return(0,r.A)({},a);try{const t=(await o.firebase.database().ref("kunaiu_bank/".concat(e,"/notif_prefs")).once("value")).val();return t?(0,r.A)((0,r.A)({},a),t):(0,r.A)({},a)}catch(t){return console.warn("[notificationPrefs] getNotifPrefs error:",t),(0,r.A)({},a)}}async function l(e,t){if(e)try{await o.firebase.database().ref("kunaiu_bank/".concat(e,"/notif_prefs")).set(t)}catch(n){console.warn("[notificationPrefs] saveNotifPrefs error:",n)}}async function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return{sendInApp:!1,sendPush:!1};try{const[s,l,c]=await Promise.all([o.firebase.database().ref("kunaiu_bank/".concat(e,"/notif_prefs")).once("value"),o.firebase.database().ref("AppStatus/".concat(e,"/status")).once("value"),o.firebase.database().ref("kunaiu_bank/".concat(e,"/mutedChats")).once("value")]),u=c.val()||{},d=u.users||{},p=u.groups||{},h=n.sourceType,f=n.sourceId;if("user"===h&&f&&d[f])return{sendInApp:!1,sendPush:!1};if("group"===h&&f&&p[f])return{sendInApp:!1,sendPush:!1};const m=s.val()||{},_=(0,r.A)((0,r.A)({},a),m),g=i[t];if(!(!g||_[g]))return{sendInApp:!1,sendPush:!1};const v=l.val();return{sendInApp:!0,sendPush:!(v&&"offline"!==v)}}catch(s){return console.warn("[notificationPrefs] shouldNotify error:",s),{sendInApp:!0,sendPush:!0}}}},41497:(e,t,n)=>{"use strict";var r=n(13218);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},41536:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("clock-3",[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},41659:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],a=[],s=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(r[0]^=c,r[1]^=d,r[2]^=u,r[3]^=p,r[4]^=c,r[5]^=d,r[6]^=u,r[7]^=p,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=n._createHelper(s)}(),e.RabbitLegacy}(n(84488),n(78523),n(54199),n(18211),n(52238))},41680:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])}
2,42489:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},43e3:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(22555),o=n(65043),i=n(40614),a=n(39292),s=n(14918),l=n(87978),c=n(13714),u=n.n(c),d=(n(35081),n(65982)),p=n(70579);const h=e=>{let{onClose:t,onSelectIcon:n,currentIconUrl:c}=e;const{userData:h}=(0,o.useContext)(d.Rs),[f,m]=(0,o.useState)("history"),[_,g]=(0,o.useState)("\u0627\u0644\u0623\u0643\u062b\u0631 \u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0627\u064b"),[v,y]=(0,o.useState)([]),[b,w]=(0,o.useState)([]),[x,k]=(0,o.useState)({}),[S,C]=(0,o.useState)(""),[A,E]=(0,o.useState)(null),[j,T]=(0,o.useState)(!1),P=(0,o.useRef)(null),N=(0,o.useRef)(null),I=null===h||void 0===h?void 0:h.id;(0,o.useEffect)((()=>{const e=requestAnimationFrame((()=>requestAnimationFrame((()=>T(!0)))));return()=>cancelAnimationFrame(e)}),[]);const R=(0,o.useCallback)((()=>{T(!1),setTimeout((()=>{null===t||void 0===t||t()}),220)}),[t]);(0,o.useEffect)((()=>{const e=JSON.parse(localStorage.getItem("recent_icons"))||[];y(e)}),[]),(0,o.useEffect)((()=>{I&&u().database().ref("kunaiu_bank/".concat(I,"/favorite_icons")).once("value").then((e=>k(e.val()||{})))}),[I]),(0,o.useEffect)((()=>{(async()=>{const e=(await u().database().ref("store/icons").once("value")).val();if(!e)return;const t=Object.entries(e).filter((e=>{var t;let[,n]=e;return n.free||(null===(t=n.paidBy)||void 0===t?void 0:t[I])})).map((e=>{let[t,n]=e;return{key:t,img:n.img,name:n.name}}));w(t)})()}),[I]);const O=(0,o.useCallback)((e=>{var t;if(!I)return;const n=u().database().ref("kunaiu_bank/".concat(I,"/favorite_icons")),o=(0,r.A)({},x),i=null===(t=Object.entries(o).find((t=>{let[,n]=t;return n.img===e.img})))||void 0===t?void 0:t[0];i?delete o[i]:o[u().database().ref().push().key]=e,k(o),n.set(o)}),[x,I]),D=e=>{m(e),"history"===e?(g("\u0627\u0644\u0623\u0643\u062b\u0631 \u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0627\u064b"),y(JSON.parse(localStorage.getItem("recent_icons"))||[])):"favorites"===e&&(g("\u0627\u0644\u0645\u0641\u0636\u0644\u0629"),y(Object.values(x)))},M=e=>{let t=JSON.parse(localStorage.getItem("recent_icons"))||[];t=t.filter((t=>t.img!==e.img)),t.unshift({name:e.name||"",img:e.img}),t.length>12&&(t=t.slice(0,12)),localStorage.setItem("recent_icons",JSON.stringify(t))},L=e=>Object.values(x).some((t=>t.img===e.img)),F=(e,t,n)=>{B(),P.current=setTimeout((()=>{P.current=null,q(t,n)}),420)},z=e=>{P.current&&(clearTimeout(P.current),P.current=null,n(e.img),M(e))},B=()=>{P.current&&(clearTimeout(P.current),P.current=null)},q=(e,t)=>{const n=N.current.getBoundingClientRect(),r=t.getBoundingClientRect();let o=r.top-n.top-130-8,i=r.left-n.left+r.width/2-90;o<8&&(o=r.bottom-n.top+8),i=Math.max(8,Math.min(i,N.current.offsetWidth-180-8)),E({icon:e,top:o,left:i})},U=()=>E(null),H=v.filter((e=>{var t;return!S||(null===(t=e.name)||void 0===t?void 0:t.includes(S))}));return(0,p.jsx)("div",{className:"icon-dialog-overlay".concat(j?" icon-dialog-overlay--visible":""),onClick:R,children:(0,p.jsxs)("div",{className:"icon-dialog".concat(j?" icon-dialog--visible":""),ref:N,onClick:e=>e.stopPropagation(),children:[(0,p.jsx)("div",{className:"icon-dialog-handle","aria-hidden":"true"}),(0,p.jsxs)("div",{className:"icon-dialog-header",children:[(0,p.jsxs)("div",{className:"header-top",children:[(0,p.jsx)("span",{className:"header-title",children:_}),(0,p.jsx)("div",{className:"close-icon",onClick:R,role:"button","aria-label":"\u0625\u063a\u0644\u0627\u0642",children:(0,p.jsx)(i.A,{size:16})})]}),(0,p.jsxs)("div",{className:"icon-search-wrapper",children:[(0,p.jsx)(a.A,{className:"icon-search-icon"}),(0,p.jsx)("input",{type:"text",placeholder:"\u0627\u0628\u062d\u062b \u0639\u0646 \u0623\u064a\u0642\u0648\u0646\u0629...",value:S,onChange:e=>C(e.target.value.toLowerCase()),className:"icon-search-input"})]})]}),(0,p.jsx)("div",{className:"icon-grid",children:0===H.length?(0,p.jsxs)("div",{className:"icon-grid-empty",children:[(0,p.jsx)(a.A,{size:28,strokeWidth:1.5}),(0,p.jsx)("span",{children:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0646\u062a\u0627\u0626\u062c"})]}):H.slice(0,30).map(((e,t)=>{const n=L(e);return(0,p.jsx)("div",{className:"icon-wrapper ".concat(e.img===c?"selected":""," ").concat(n?"is-fav":""),onMouseDown:t=>F(0,e,t.currentTarget),onMouseUp:()=>z(e),onMouseLeave:B,onTouchStart:t=>F(0,e,t.currentTarget),onTouchEnd:()=>z(e),onTouchCancel:B,onContextMenu:e=>e.preventDefault(),children:(0,p.jsx)("img",{src:e.img,alt:e.name||"icon",className:"icon-img",draggable:!1})},t)}))}),A&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"ctx-scrim",onClick:U}
2),(0,p.jsxs)("div",{className:"ctx-menu",style:{top:A.top,left:A.left},children:[(0,p.jsxs)("div",{className:"ctx-preview",children:[(0,p.jsx)("img",{src:A.icon.img,alt:"",className:"ctx-preview-img"}),(0,p.jsx)("div",{className:"ctx-preview-name",children:A.icon.name})]}),(0,p.jsxs)("div",{className:"ctx-btn ".concat(L(A.icon)?"ctx-btn-danger":""),onClick:()=>{O(A.icon),U()},children:[(0,p.jsx)(s.A,{size:18}),(0,p.jsx)("span",{children:L(A.icon)?"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0645\u0641\u0636\u0644\u0629":"\u0625\u0636\u0627\u0641\u0629 \u0644\u0644\u0645\u0641\u0636\u0644\u0629"})]}),(0,p.jsx)("div",{className:"ctx-sep"}),(0,p.jsxs)("div",{className:"ctx-btn",onClick:()=>{n(A.icon.img),M(A.icon),U()},children:[(0,p.jsx)(i.A,{size:18,style:{transform:"rotate(45deg)"}}),(0,p.jsx)("span",{children:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0647\u0630\u0647 \u0627\u0644\u0623\u064a\u0642\u0648\u0646\u0629"})]})]})]}),(0,p.jsxs)("div",{className:"icon-tabs",children:[(0,p.jsx)("div",{className:"icon-tab ".concat("history"===f?"active":""),onClick:()=>D("history"),title:"\u0627\u0644\u0623\u0643\u062b\u0631 \u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0627\u064b",children:(0,p.jsx)(l.A,{})}),(0,p.jsx)("div",{className:"icon-tab ".concat("favorites"===f?"active":""),onClick:()=>D("favorites"),title:"\u0627\u0644\u0645\u0641\u0636\u0644\u0629",children:(0,p.jsx)(s.A,{})}),b.map((e=>(0,p.jsx)("div",{className:"icon-tab ".concat(f===e.key?"active":""),onClick:()=>(async(e,t)=>{const n=(await u().database().ref("store/icons/".concat(e,"/icons")).once("value")).val();n&&(y(Object.values(n)),g(t),m(e))})(e.key,e.name),title:e.name,children:(0,p.jsx)("img",{src:e.img,alt:e.name})},e.key)))]})]})})}},43457:(e,t,n)=>{"use strict";n.d(t,{V:()=>i,Z:()=>a});var r=n(65043),o=n(70579);const i=r.createContext(),a=e=>{let{children:t}=e;const[n,a]=(0,r.useState)(null);return(0,o.jsx)(i.Provider,{value:{currentModal:n,setCurrentModal:a},children:t})}},43516:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},43668:(e,t,n)=>{var r=n(18902),o=n(52587),i=n(58114);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,_=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var g=e[f],v=t[f];if(a)var y=c?a(v,g,f,t,e,l):a(g,v,f,e,t,l);if(void 0!==y){if(y)continue;m=!1;break}if(_){if(!o(t,(function(e,t){if(!i(_,t)&&(g===e||s(g,e,n,a,l)))return _.push(t)}))){m=!1;break}}else if(g!==v&&!s(g,v,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},43677:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]])},43946:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(65043),o=n(97950),i=n(49527),a=n(89927),s=n(70579);const l=e=>{let{hashtag:t,onClose:n}=e;const l=(0,r.useRef)(null),c=(0,r.useRef)(!1),u=(0,r.useRef)(!1),d=(0,r.useRef)(n);d.current=n;const p=(0,r.useCallback)((()=>{u.current||(u.current=!0,(0,a.tu)(l.current,!0),d.current())}),[]);return(0,r.useEffect)((()=>{c.current||(l.current=(0,a.GR)("hashtag-modal"),c.current=!0);const e=e=>{var t;(0,a.G0)()||(null===(t=e.state)||void 0===t?void 0:t.instanceId)===l.current||(0,a.Vz)()!==l.current||u.current||((0,a.Xi)(),u.current=!0,(0,a.tu)(l.current,!1),d.current(),window.setTimeout((()=>(0,a.Ps)()),0))};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)}),[]),(0,o.createPortal)((0,s.jsx)(i.default,{hashtagOverride:t,onBack:p,isModal:!0,modalZIndex:(0,a.v7)(1e3)}),document.body)}},44288:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function g(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||f}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var b=y.prototype=new v;b.constructor=y,m(b,g.prototype),b.isPureReactComponent=!0;var w=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function S(e,t,r,o,i,a){return r=a.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:a}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function E(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(){}function T(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(s){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0;break;case p:return T((u=e._init)(e._payload),t,o,i,a)}}if(u)return a=a(e),u=""===i?"."+E(e,0):i,w(a)?(o="",null!=u&&(o=u.replace(A,"$&/")+"/"),T(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(l=a,c=o+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+u,a=S(l.type,c,void 0,0,0,l.props)),t.push(a)),1;u=0;var d,f=""===i?".":i+":";if(w(e))for(var m=0;m<e.length;m++)u+=T(i=e[m],t,o,s=f+E(i,m),a);else if("function"===typeof(m=null===(d=e)||"object"!==typeof d?null:"function"===typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(e=m.call(e),m=0;!(i=e.next()).done;)u+=T(i=i.value,t,o,s=f+E(i,m++),a);else if("object"===s){if("function"===typeof e.then)return T(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(j,j):(e.status="pending",e.then((function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)}),(function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,o,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function P(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function R(){}t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return x.H.useMemoCache(e)}}
2,t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.ref&&void 0,void 0!==t.key&&(o=""+t.key),t)!k.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return S(e.type,o,void 0,0,0,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)k.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return S(e,i,void 0,0,0,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=x.T,n={};x.T=n;try{var r=e(),o=x.S;null!==o&&o(n,r),"object"===typeof r&&null!==r&&"function"===typeof r.then&&r.then(R,I)}catch(i){I(i)}finally{x.T=t}},t.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},t.use=function(e){return x.H.use(e)},t.useActionState=function(e,t,n){return x.H.useActionState(e,t,n)},t.useCallback=function(e,t){return x.H.useCallback(e,t)},t.useContext=function(e){return x.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return x.H.useDeferredValue(e,t)},t.useEffect=function(e,t,n){var r=x.H;if("function"===typeof n)throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)},t.useId=function(){return x.H.useId()},t.useImperativeHandle=function(e,t,n){return x.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return x.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return x.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return x.H.useMemo(e,t)},t.useOptimistic=function(e,t){return x.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return x.H.useReducer(e,t,n)},t.useRef=function(e){return x.H.useRef(e)},t.useState=function(e){return x.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return x.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return x.H.useTransition()},t.version="19.1.0"},44353:(e,t,n)=>{e=n.nmd(e);var r=n(56552),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},44543:(e,t,n)=>{e=n.nmd(e);var r=n(56552),o=n(60014),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},45652:(e,t,n)=>{var r=n(94664),o=n(76516)(r);e.exports=o}
2,45752:(e,t,n)=>{var r=n(59395),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var _=l;++d<u;){var g=e[p=c[d]],v=t[p];if(i)var y=l?i(v,g,p,t,e,s):i(g,v,p,e,t,s);if(!(void 0===y?g===v||a(g,v,n,i,s):y)){m=!1;break}_||(_="constructor"==p)}if(m&&!_){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},45921:(e,t,n)=>{var r=n(20449),o=n(47574),i=n(56832),a=i&&i.isSet,s=a?o(a):r;e.exports=s},46672:(e,t,n)=>{"use strict";var r=n(65043);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");var l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=a.p;try{if(l.T=null,a.p=2,e)return e()}finally{l.T=t,a.p=n,a.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,a.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&a.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,r=c(n,t.crossOrigin),o="string"===typeof t.integrity?t.integrity:void 0,i="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?a.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:i}):"script"===n&&a.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:i,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&a.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,r=c(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=c(t.as,t.crossOrigin);a.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else a.d.m(e)},t.requestFormReset=function(e){a.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.1.0"},46686:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},46704:e=>{e.exports=function(e){return this.__data__.has(e)}},47059:(e,t,n)=>{"use strict";n.d(t,{af:()=>s,yv:()=>a});var r=n(86111),o=n.n(r);const i="6ae8d14bf34e5a8d27f937b6d21ef345f98c76e34af8729bd79c5ab836f47a29";
2function a(e){return o().AES.encrypt(JSON.stringify(e),i).toString()}function s(e){const t=o().AES.decrypt(e,i);return JSON.parse(t.toString(o().enc.Utf8))}},47174:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(22555),o=n(40117);const i={TTL:{profiles:3e5,posts:12e4,teams:6e5,comments:12e4,roles:18e5,notifications:6e4,settings:18e5,reactions:36e5,badges:36e5,frames:36e5,teamFlags:36e5,globalImages:1/0,followingPosts:12e4,events:3e5},REALTIME:{enabled:!0,updateInterval:3e4,autoInvalidate:!0},MAX_SIZE:{profiles:100,posts:50,teams:50,comments:200,images:500,api:100},STRATEGIES:{profiles:"cache-first",posts:"cache-first",teams:"cache-first",comments:"network-first",notifications:"network-first",images:"cache-first",cdn:"cache-first",api:"network-first"},CDN:{base:"https://assets.amposter.com",badges:"https://assets.amposter.com/badges",frames:"https://assets.amposter.com/frames",reactions:"https://assets.amposter.com/reactions",tasbeeh:"https://assets.amposter.com/tasbeeh",teamFlags:"https://assets.amposter.com/team_flags",globalImages:"https://assets.amposter.com/global"},FIREBASE_API:{database:"https://amposter2026-default-rtdb.firebaseio.com",auth:"https://identitytoolkit.googleapis.com/v1",storage:"https://firebasestorage.googleapis.com/v0/b/amposter2026.appspot.com"},GLOBAL_IMAGE_PATHS:["/assets/images/global/","/assets/icons/","/assets/images/react/"],NO_CACHE_PATHS:["/api/admin/","/api/auth/login","/api/auth/register","/api/payment/"],INDEXED_DB:{name:"AmposterDB",version:1,stores:{profiles:{keyPath:"id",indexes:["timestamp","name"]},posts:{keyPath:"id",indexes:["timestamp","createdBy"]},teams:{keyPath:"id",indexes:["timestamp","name"]},comments:{keyPath:"id",indexes:["postId","timestamp"]}}},SERVICE_WORKER:{version:"undefined"!==typeof window&&window.SW_VERSION?window.SW_VERSION:"amposter-v2.6",precacheAssets:["/","/index.html","/manifest.json","/assets/icons/icon-192x192.png","/assets/icons/icon-512x512.png"]},PERFORMANCE:{maxConcurrentRequests:6,backgroundSyncInterval:3e4,prefetchOnIdle:!0,lazyLoadImages:!0},DEBUG:!1},a=i;var s=n(10385);const l=a.TTL,c=25,u=a.MAX_SIZE.profiles||100,d={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_VERSION||"1",p="amposter_v".concat(d,"_"),h="amposter_cache_version",f={POSTS:"amposter_posts_cache",POSTS_TIMESTAMP:"amposter_posts_timestamp",TEAMS:"amposter_teams_cache",TEAMS_TIMESTAMP:"amposter_teams_timestamp",EVENTS:"amposter_events_cache",EVENTS_TIMESTAMP:"amposter_events_timestamp",PROFILE_THEMES:"amposter_profile_themes_cache",PROFILE_THEMES_TIMESTAMP:"amposter_profile_themes_timestamp",PROFILES:"amposter_profiles_cache",ROLE:"amposter_role",WINNER:"amposter_winner"};class m{constructor(){this.memoryCache=new Map,this.pendingRequests=new Map,this._refreshQueue=[],this._refreshRunning=!1,this._lastPostsRefresh=0,this._newPostsListener=null,this._newPostsListenerStartTs=null,this._newPostsCallbacks=new Set,this._syncInProgress=!1,this._ensureCacheVersion()}isOnline(){return navigator.onLine}_getStorageKey(e){return"".concat(p).concat(e)}_getFromStorage(e){try{const t=localStorage.getItem(this._getStorageKey(e));return t?JSON.parse(t):null}catch(t){return console.error("Error reading from localStorage:",t),null}}_saveToStorage(e,t){try{localStorage.setItem(this._getStorageKey(e),JSON.stringify(t))}catch(n){if(console.error("Error saving to localStorage:",n),"QuotaExceededError"===n.name){this._clearOldStorage();try{localStorage.setItem(this._getStorageKey(e),JSON.stringify(t))}catch(r){console.error("Still cannot save:",r)}}}}_clearOldStorage(){const e=Object.values(f).map((e=>this._getStorageKey(e)));e.push(h);const t=[];for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);r&&r.startsWith("amposter_")&&!e.includes(r)&&t.push(r)}t.forEach((e=>localStorage.removeItem(e)))}_clearVersionedLocalStorage(){for(let e=localStorage.length-1;e>=0;e--){const t=localStorage.key(e);t&&t.startsWith("amposter_")&&localStorage.removeItem(t)}}_ensureCacheVersion(){try{const e=localStorage.getItem(h);e!==d&&(console.log("[Cache] Version change detected: ".concat(e," -> ").concat(d,". Clearing cache.")),this._clearVersionedLocalStorage(),this.clearAllCache().catch((e=>{console.warn("[Cache] clearAllCache failed during version refresh:",e)})),localStorage.setItem(h,d))}catch(e){console.warn("[Cache] Cache version check failed:",e)}}_getRoleStorage(){const e=this._getFromStorage(f.ROLE);return e&&"object"===typeof e?e:{}}_saveRoleEntry(e,t){const n=this._getRoleStorage();n[e]=t,this._saveToStorage(f.ROLE,n)}_removeRoleEntry(e){const t=this._getRoleStorage();t&&e in t&&(delete t[e],0===Object.keys(t).length?localStorage.removeItem(f.ROLE):this._saveToStorage(f.ROLE,t))}_getWinnerStorage(){const e=this._getFromStorage(f.WINNER);return e&&"object"===typeof e?e:{}}_saveWinnerEntry(e,t){const n=this._getWinnerStorage();n[e]=t,this._saveToStorage(f.WINNER,n)}_removeWinnerEntry(e){const t=this._getWinnerStorage();t&&e in t&&(delete t[e],0===Object.keys(t).length?localStorage.removeItem(f.WINNER):this._saveToStorage(f.WINNER,t))}async _getFromIDB(e){try{const t=await(0,s.Jt)(e);return t?JSON.parse(t):null}catch(t){return console.error("Error reading from IndexedDB:",t),null}}async _saveToIDB(e,t){try{await(0,s.hZ)(e,JSON.stringify(t))}catch(n){console.error("Error saving to IndexedDB:",n)}}async _getProfilesFromStorage(){try{const e=await(0,s.Jt)(f.PROFILES);if(e){const t=JSON.parse(e);if(t&&"object"===typeof t)return this._pruneProfilesCache(t)&&await this._saveProfilesToStorage(t),t}const t=this._getFromStorage(f.PROFILES);return t&&"object"===typeof t?(await this._saveProfilesToStorage(t),localStorage.removeItem(f.PROFILES),t):{}}catch(e){return console.error("Error reading profile cache from IndexedDB:",e),{}}}async _saveProfilesToStorage(e){try{this._pruneProfilesCache(e),await(0,s.hZ)(f.PROFILES,JSON.stringify(e))}catch(t){console.error("IDB profiles save failed:",t)}}_pruneProfilesCache(e){if(!e||"object"!==typeof e)return!1;const t=Object.keys(e);if(t.length<=u)return!1;const n=t.sort(((t,n)=>{var r,o,i,a,s,l;const c=Number((null===(r=e[t])||void 0===r?void 0:r.visits)||0),u=Number((null===(o=e[n])||void 0===o?void 0:o.visits)||0);if(c!==u)return c-u;return((null===(i=e[t])||void 0===i?void 0:i.lastVisitedAt)||(null===(a=e[t])||void 0===a?void 0:a.timestamp)||0)-((null===(s=e[n])||void 0===s?void 0:s.lastVisitedAt)||(null===(l=e[n])||void 0===l?void 0:l.timestamp)||0)}
2)),r=Math.min(t.length-u,10);for(let o=0;o<r;o++)delete e[n[o]];return!0}_touchProfileCacheEntry(e,t){if(!e||"object"!==typeof e)return!1;const n=e[t];return!(!n||"object"!==typeof n)&&(n.visits=(Number(n.visits)||0)+1,n.lastVisitedAt=Date.now(),!0)}async _touchProfileInStorage(e){try{const t=await this._getProfilesFromStorage();if(!this._touchProfileCacheEntry(t,e))return;await this._saveProfilesToStorage(t)}catch(t){console.error("Failed to update profile visit count:",t)}}async _delFromIDB(e){try{await(0,s.yH)(e)}catch(t){console.error("Error deleting from IndexedDB:",t)}}async getLatestPosts(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="latest_posts_".concat(e),r=this.isOnline();if(!t&&this.memoryCache.has(n)){const t=this.memoryCache.get(n);if(!(Date.now()-t.timestamp>=l.posts)||!r)return console.log("\u26a1 Latest ".concat(e," posts from Memory")),t.data}if(!t){const t=this._getFromStorage(f.POSTS),o=this._getFromStorage(f.POSTS_TIMESTAMP);if(t&&Array.isArray(t)&&o){const i=Date.now()-o>=l.posts;if(this.memoryCache.set(n,{data:t,timestamp:o}),!i||!r)return console.log("\ud83d\udcbe Latest posts from localStorage (".concat(t.length,")")),t;if(r)return console.log("\ud83d\udce6 Stale localStorage cache \u2014 refreshing in background"),this._refreshLatestPostsInBackground(e,n),t}}if(!r)return console.warn("\u26a0\ufe0f No posts available offline"),[];if(this.pendingRequests.has(n))return this.pendingRequests.get(n);const o=this._fetchLatestFromFirebase(e,n);return this.pendingRequests.set(n,o),o}async _fetchLatestFromFirebase(e,t){try{console.log("\ud83d\udd25 Fetching latest ".concat(e," posts from Firebase (batching to skip hidden)"));const n=Math.max(e,c),i=6,a=new Map;let s=null;for(let t=0;t<i&&a.size<e;t++){let t=o.firebase.database().ref("posts").orderByChild("timestamp");t=null===s?t.limitToLast(n):t.endAt(s-1).limitToLast(n);const i=await t.once("value");if(!i.exists())break;const l=Object.entries(i.val()||{});if(0===l.length)break;const c=l.map((e=>{let[t,n]=e;return(0,r.A)({id:t,deleted:n.deleted||!1,blocked:n.blocked||!1},n)})).sort(((e,t)=>(t.timestamp||t.createdAt||0)-(e.timestamp||e.createdAt||0)));let u=Number.MAX_SAFE_INTEGER;for(const n of c){const t=n.timestamp||n.createdAt||0;if(t<u&&(u=t),n.deleted||n.blocked||n.hiddenFromFeed)continue;if((n.is_advertisement||"winners"===n.type||Array.isArray(n.winners)||n.createdBy)&&(a.has(n.id)||a.set(n.id,n),a.size>=e))break}if(s=u===Number.MAX_SAFE_INTEGER?null:u,l.length<n)break}const l=[...a.values()].sort(((e,t)=>(t.timestamp||t.createdAt||0)-(e.timestamp||e.createdAt||0))).slice(0,e);return this._saveToStorage(f.POSTS,l),this._saveToStorage(f.POSTS_TIMESTAMP,Date.now()),this.memoryCache.set(t,{data:l,timestamp:Date.now()}),console.log("\u2705 Cached ".concat(l.length," latest posts after batching")),l}catch(n){console.error("\u274c Error fetching latest posts:",n);return this._getFromStorage(f.POSTS)||[]}finally{this.pendingRequests.delete(null!==t&&void 0!==t?t:"latest_posts_".concat(c))}}_refreshLatestPostsInBackground(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;this.pendingRequests.has("_bg_refresh")||(this.pendingRequests.set("_bg_refresh",!0),this._fetchLatestFromFirebase(e,t).catch((()=>{})).finally((()=>this.pendingRequests.delete("_bg_refresh"))))}async fetchOlderPosts(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if(!this.isOnline())return console.warn("\u26a0\ufe0f Cannot fetch older posts offline"),{posts:[],hasMore:!1};const n="older_".concat(e,"_").concat(t);if(this.pendingRequests.has(n))return this.pendingRequests.get(n);const i=(async()=>{try{console.log("\ud83d\udd25 Fetching ".concat(t," posts before ts=").concat(e));const n=await o.firebase.database().ref("posts").orderByChild("timestamp").endAt(e-1).limitToLast(t).once("value");if(!n.exists())return{posts:[],hasMore:!1};const i=Object.entries(n.val()||{}),a=i.length>=t,s=i.map((e=>{let[t,n]=e;return(0,r.A)({id:t,deleted:n.deleted||!1,blocked:n.blocked||!1},n)})).filter((e=>{if(e.deleted||e.blocked||e.hiddenFromFeed)return!1;return e.is_advertisement||"winners"===e.type||Array.isArray(e.winners
2)||!!e.createdBy})).sort(((e,t)=>(t.timestamp||t.createdAt||0)-(e.timestamp||e.createdAt||0)));return console.log("\u2705 Fetched ".concat(s.length," older posts (raw batch: ").concat(i.length,", hasMore: ").concat(a,")")),{posts:s,hasMore:a}}catch(i){return console.error("\u274c fetchOlderPosts error:",i),{posts:[],hasMore:!1}}finally{this.pendingRequests.delete(n)}})();return this.pendingRequests.set(n,i),i}startNewPostsListener(e){return"function"===typeof e&&this._newPostsCallbacks.add(e),this._newPostsListener?(console.log("[Cache:realtime] listener already active"),()=>this._newPostsCallbacks.delete(e)):(this._newPostsListenerStartTs=Date.now(),console.log("[Cache:realtime] starting listener from ts=".concat(this._newPostsListenerStartTs)),this._newPostsListener=o.firebase.database().ref("posts").orderByChild("timestamp").startAt(this._newPostsListenerStartTs),this._newPostsListener.on("child_added",(e=>{const t=e.val();if(!t||t.deleted||t.blocked||t.hiddenFromFeed)return;const n=(0,r.A)({id:e.key},t);(t.timestamp||t.createdAt||0)<this._newPostsListenerStartTs||(console.log("[Cache:realtime] new post detected: ".concat(n.id)),this._addNewPostToLocalCache(n),this._newPostsCallbacks.forEach((e=>{try{e(n)}catch(t){console.error("[Cache:realtime] callback error:",t)}})))})),()=>this._newPostsCallbacks.delete(e))}stopNewPostsListener(){this._newPostsListener&&(this._newPostsListener.off("child_added"),this._newPostsListener=null,this._newPostsListenerStartTs=null,this._newPostsCallbacks.clear(),console.log("[Cache:realtime] listener stopped"))}_addNewPostToLocalCache(e){const t="latest_posts_".concat(c);let n=this._getFromStorage(f.POSTS)||[];e.hiddenFromFeed||n.find((t=>t.id===e.id))||(n.unshift(e),n.length>c&&(n=n.slice(0,c)),this._saveToStorage(f.POSTS,n),this._saveToStorage(f.POSTS_TIMESTAMP,Date.now()),this.memoryCache.set(t,{data:n,timestamp:Date.now()}))}async syncLatestPostsInBackground(e){if(this.isOnline())if(this._syncInProgress)console.log("[Cache:sync] already in progress \u2014 skipping");else{this._syncInProgress=!0;try{const t=await o.firebase.database().ref("posts").orderByChild("timestamp").limitToLast(1).once("value");if(!t.exists())return;const[[n,i]]=Object.entries(t.val()),a=i.timestamp||i.createdAt||0,s=this._getFromStorage(f.POSTS);if(!s||0===s.length){const t=await this.getLatestPosts(c,!0);return void(null===e||void 0===e||e(t))}const l=s.reduce(((e,t)=>Math.max(e,t.timestamp||t.createdAt||0)),0),u=!!s.find((e=>e.id===n));if(a<=l&&u)return void console.log("[Cache:sync] up to date \u2014 no sync needed");console.log("[Cache:sync] new posts found \u2014 fetching since",l+1);const d=await o.firebase.database().ref("posts").orderByChild("timestamp").startAt(l+1).limitToLast(c).once("value");if(!d.exists())return;const p=Object.entries(d.val()).map((e=>{let[t,n]=e;return(0,r.A)({id:t,deleted:n.deleted||!1,blocked:n.blocked||!1},n)})).filter((e=>!e.deleted&&!e.blocked&&!e.hiddenFromFeed));if(0===p.length)return;if(p.length===c){console.log("[Cache:sync] cache very stale (hit limit) \u2014 full refresh");const t=await this.getLatestPosts(c,!0);return void(null===e||void 0===e||e(t))}const h=[...p,...s.filter((e=>!p.find((t=>t.id===e.id))))].sort(((e,t)=>(t.timestamp||t.createdAt||0)-(e.timestamp||e.createdAt||0))).slice(0,c);this._saveToStorage(f.POSTS,h),this._saveToStorage(f.POSTS_TIMESTAMP,Date.now()),this.memoryCache.set("latest_posts_".concat(c),{data:h,timestamp:Date.now()}),console.log("[Cache:sync] added ".concat(p.length," new post(s)")),null===e||void 0===e||e(p)}catch(t){console.warn("[Cache:sync] failed:",t)}finally{this._syncInProgress=!1}}else console.log("[Cache:sync] offline \u2014 skipping")}async getAllPosts(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return console.warn("[Cache] getAllPosts() called \u2014 using getLatestPosts() instead (optimized)"),this.getLatestPosts(c,e)}_refreshProfileInBackground(e){const t="profile_".concat(e);this.pendingRequests.has(t)||(this._refreshQueue.includes(e)||this._refreshQueue.push(e),this._drainRefreshQueue())}_drainRefreshQueue(){if(this._refreshRunning||0===this._refreshQueue.length)return;this._refreshRunning=!0;const e=this._refreshQueue.shift(),t="profile_".concat(e);Promise.all([o.firebase.database().ref("kunaiu_bank/".concat(e)).once("value"),o.firebase.database().ref("Roles/".concat(e)).once("value")]).then((async n=>{let[r,o]=n;const i=r.val(),a=o.val()||null;if(i){i.id=e,i.role=a;const n=await this._getProfilesFromStorage();n[e]={data:i,timestamp:Date.now()},await this._saveProfilesToStorage(n),this.memoryCache.set(t,{data:i,timestamp:Date.now()})}})).catch((t=>
2console.warn("\u26a0\ufe0f Background refresh failed for ".concat(e,":"),t))).finally((()=>{this._refreshRunning=!1,this._refreshQueue.length>0&&setTimeout((()=>this._drainRefreshQueue()),200)}))}async getRole(e){const t="role_".concat(e);if(this.memoryCache.has(t)){const e=this.memoryCache.get(t);if(Date.now()-e.timestamp<18e5)return e.data}const n=this._getRoleStorage()[e];if(n&&Date.now()-n.timestamp<18e5)return this.memoryCache.set(t,n),n.data;if(this.pendingRequests.has(t))return this.pendingRequests.get(t);const r=(async()=>{try{const n=(await o.firebase.database().ref("Roles/".concat(e)).once("value")).val()||null,r={data:n,timestamp:Date.now()};return this.memoryCache.set(t,r),this._saveRoleEntry(e,r),n}catch(n){return console.error("\u274c getRole failed for ".concat(e,":"),n),null}finally{this.pendingRequests.delete(t)}})();return this.pendingRequests.set(t,r),r}invalidateRole(e){this.memoryCache.delete("role_".concat(e)),this._removeRoleEntry(e)}async getWinnerProfile(e){const t="winner_profile_".concat(e),n=this.isOnline();if(this.memoryCache.has(t)){const r=this.memoryCache.get(t);return Date.now()-r.timestamp<l.profiles||!n||this._refreshWinnerProfileInBackground(e),r.data}const r=this._getWinnerStorage()[e];if(r){const o=Date.now()-r.timestamp>=l.profiles;return this.memoryCache.set(t,r),o&&n?(this._refreshWinnerProfileInBackground(e),r.data):r.data}if(!n)return null;if(this.pendingRequests.has(t))return this.pendingRequests.get(t);const i=(async()=>{try{const n=await o.firebase.database().ref("kunaiu_bank/".concat(e)).once("value"),r={img:(n.val()||{}).img||"/assets/images/global/user_V2.jpg"},i={data:r,timestamp:Date.now()};return this.memoryCache.set(t,i),this._saveWinnerEntry(e,i),r}catch(n){return console.error("\u274c getWinnerProfile failed for ".concat(e,":"),n),null}finally{this.pendingRequests.delete(t)}})();return this.pendingRequests.set(t,i),i}_refreshWinnerProfileInBackground(e){const t="winner_profile_".concat(e);this.pendingRequests.has(t)||(this.pendingRequests.set(t,!0),o.firebase.database().ref("kunaiu_bank/".concat(e)).once("value").then((n=>{const r={data:{img:(n.val()||{}).img||"/assets/images/chat/user_profile.png"},timestamp:Date.now()};this.memoryCache.set(t,r),this._saveWinnerEntry(e,r)})).catch((()=>{})).finally((()=>this.pendingRequests.delete(t))))}async getProfile(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="profile_".concat(e),r=this.isOnline();if(!t&&this.memoryCache.has(n)){const e=this.memoryCache.get(n);if(!(Date.now()-e.timestamp>=l.profiles)||!r)return e.data}if(!t){const t=await this._getProfilesFromStorage(),o=t[e];if(o&&o.data){o.data.verified=!!o.data.verified;const i=Date.now()-o.timestamp>=l.profiles;return this.memoryCache.set(n,{data:o.data,timestamp:o.timestamp}),this._touchProfileCacheEntry(t,e),await this._saveProfilesToStorage(t).catch((()=>{})),i&&r&&this._refreshProfileInBackground(e),o.data}}if(!r)return null;if(this.pendingRequests.has(n))return this.pendingRequests.get(n);const i=(async()=>{try{const[r,i]=await Promise.all([o.firebase.database().ref("kunaiu_bank/".concat(e)).once("value"),o.firebase.database().ref("Roles/".concat(e)).once("value")]),a=r.val(),s=i.val()||null;if(a){var t;a.id=e,a.role=s,a.verified=!!a.verified;const r=await this._getProfilesFromStorage(),o=Number((null===(t=r[e])||void 0===t?void 0:t.visits)||0);r[e]={data:a,timestamp:Date.now(),visits:o+1,lastVisitedAt:Date.now()},await this._saveProfilesToStorage(r),this.memoryCache.set(n,{data:a,timestamp:Date.now()})}return a}catch(r){return console.error("\u274c Error fetching profile ".concat(e,":"),r),null}finally{this.pendingRequests.delete(n)}})();return this.pendingRequests.set(n,i),i}async updateProfile(e,t){try{await o.firebase.database().ref("kunaiu_bank/".concat(e)).update(t);const n="profile_".concat(e),i=await this._getProfilesFromStorage();if(i[e]){i[e].data=(0,r.A)((0,r.A)({},i[e].data),t),i[e].timestamp=Date.now(),await this._saveProfilesToStorage(i);const n=this._getWinnerStorage()[e];if(n){t.img&&(n.data.img=t.img),n.timestamp=Date.now(),this._saveWinnerEntry(e,n);const r="winner_profile_".concat(e);
2if(this.memoryCache.has(r)){const e=this.memoryCache.get(r);t.img&&(e.data.img=t.img),e.timestamp=Date.now(),this.memoryCache.set(r,e)}}}if(this.memoryCache.has(n)){const e=this.memoryCache.get(n);e.data=(0,r.A)((0,r.A)({},e.data),t),e.timestamp=Date.now(),this.memoryCache.set(n,e)}return!0}catch(n){throw console.error("\u274c Error updating profile ".concat(e,":"),n),n}}async getAllTeams(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t="all_teams",n=this.isOnline();if(!e&&this.memoryCache.has(t)){const e=this.memoryCache.get(t);if(!(Date.now()-e.timestamp>=l.teams)||!n)return e.data}if(!e){const e=this._getFromStorage(f.TEAMS),r=this._getFromStorage(f.TEAMS_TIMESTAMP);if(e&&r){const o=Date.now()-r>=l.teams;if(this.memoryCache.set(t,{data:e,timestamp:r}),!o||!n)return e}}if(!n)return[];if(this.pendingRequests.has(t))return this.pendingRequests.get(t);const i=(async()=>{try{const e=(await o.firebase.database().ref("teams").once("value")).val()||{},n=Object.entries(e).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)}));return this._saveToStorage(f.TEAMS,n),this._saveToStorage(f.TEAMS_TIMESTAMP,Date.now()),this.memoryCache.set(t,{data:n,timestamp:Date.now()}),n}catch(e){return console.error("\u274c Error fetching teams:",e),this._getFromStorage(f.TEAMS)||[]}finally{this.pendingRequests.delete(t)}})();return this.pendingRequests.set(t,i),i}async getTeam(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="team_".concat(e);if(!t&&this.memoryCache.has(n)){const e=this.memoryCache.get(n);if(Date.now()-e.timestamp<l.teams)return e.data}const r=(await this.getAllTeams()).find((t=>t.id===e));return r?(this.memoryCache.set(n,{data:r,timestamp:Date.now()}),r):null}async getAllEvents(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t="all_events",n=this.isOnline(),i=l.events||l.teams;if(!e&&this.memoryCache.has(t)){const e=this.memoryCache.get(t);if(!(Date.now()-e.timestamp>=i)||!n)return e.data}if(!e){const e=this._getFromStorage(f.EVENTS),r=this._getFromStorage(f.EVENTS_TIMESTAMP);if(e&&r){const o=Date.now()-r>=i;if(this.memoryCache.set(t,{data:e,timestamp:r}),!o||!n)return e}}if(!n)return this._getFromStorage(f.EVENTS)||[];if(this.pendingRequests.has(t))return this.pendingRequests.get(t);const a=(async()=>{try{const e=(await o.firebase.database().ref("events").once("value")).val()||{},n=Object.entries(e).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)}));return this._saveToStorage(f.EVENTS,n),this._saveToStorage(f.EVENTS_TIMESTAMP,Date.now()),this.memoryCache.set(t,{data:n,timestamp:Date.now()}),n}catch(e){return console.error("\u274c Error fetching events:",e),this._getFromStorage(f.EVENTS)||[]}finally{this.pendingRequests.delete(t)}})();return this.pendingRequests.set(t,a),a}invalidateEventsCache(){this.memoryCache.delete("all_events"),localStorage.removeItem(this._getStorageKey(f.EVENTS)),localStorage.removeItem(this._getStorageKey(f.EVENTS_TIMESTAMP))}async getAllProfileThemes(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t="all_profile_themes",n=this.isOnline(),r=l.profile_themes||l.teams;if(!e&&this.memoryCache.has(t)){const e=this.memoryCache.get(t);if(!(Date.now()-e.timestamp>=r)||!n)return e.data}if(!e){const e=this._getFromStorage(f.PROFILE_THEMES),o=this._getFromStorage(f.PROFILE_THEMES_TIMESTAMP);if(e&&o){const i=Date.now()-o>=r;if(this.memoryCache.set(t,{data:e,timestamp:o}),!i||!n)return e}}if(!n)return this._getFromStorage(f.PROFILE_THEMES)||{};if(this.pendingRequests.has(t))return this.pendingRequests.get(t);const i=(async()=>{try{const e=(await o.firebase.database().ref("store/profile_themes").once("value")).val()||{};return this._saveToStorage(f.PROFILE_THEMES,e),this._saveToStorage(f.PROFILE_THEMES_TIMESTAMP,Date.now()),this.memoryCache.set(t,{data:e,timestamp:Date.now()}),e}catch(e){return console.error("\u274c Error fetching profile themes:",e),this._getFromStorage(f.PROFILE_THEMES)||{}}finally{this.pendingRequests.delete(t)}})();return this.pendingRequests.set(t,i),i}async getProfileTheme(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;return(await this.getAllProfileThemes(t))[e]||null}getProfileThemeSync(e){if(!e)return null;const t=this._getFromStorage(f.PROFILE_THEMES);return t&&t[e]||null}invalidateProfileThemesCache(){this.memoryCache.delete("all_profile_themes"),localStorage.removeItem(this._getStorageKey(f.PROFILE_THEMES)),localStorage.removeItem(this._getStorageKey(f.PROFILE_THEMES_TIMESTAMP))}getCachedPost(e){if(!e)return null;const t=this.memoryCache.get("post_".concat(e));if(null!==t&&void 0!==t&&t.data)return t.data;const n=this._getFromStorage(f.POSTS),r=Array.isArray(n)?n.find((t=>String(t.id)===String(e))):null;return r?(this.memoryCache.set("post_".concat(e),{data:r,timestamp:Date.now()}),r):null}async getPost(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="post_".concat(e),i=this.isOnline();if(!t&&this.memoryCache.has(n)){const e=this.memoryCache.get(n);if(!i||Date.now()-e.timestamp<l.posts)return e.data}const a=this._getFromStorage(f.POSTS);if(a){const t=a.find((t=>t.id===e));if(t&&(this.memoryCache.set(n,{data:t,timestamp:Date.now()}),!i))return t}if(!i)return null;try{const t=(await o.firebase.database().ref("posts/".concat(e)).once("value")).val();if(t){const o=(0,r.A)({id:e},t);return this.memoryCache.set(n,{data:o,timestamp:Date.now()}),o}return null}catch(s){return console.error("\u274c Error fetching post ".concat(e,":"),s),null}}
2async getQuiz(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="quiz_".concat(e);if(!t&&this.memoryCache.has(n)){const e=this.memoryCache.get(n);if(Date.now()-e.timestamp<3e5)return e.data}if(!this.isOnline())return null;if(this.pendingRequests.has(n))return this.pendingRequests.get(n);const i=(async()=>{try{const t=await Promise.race([o.firebase.database().ref("posts/".concat(e)).once("value"),new Promise(((e,t)=>setTimeout((()=>t(new Error("TIMEOUT"))),1e4)))]);if(!t.exists())return null;const i=(0,r.A)({id:e},t.val());return this.memoryCache.set(n,{data:i,timestamp:Date.now()}),i}catch(t){return console.error("\u274c Error fetching quiz ".concat(e,":"),t),null}finally{this.pendingRequests.delete(n)}})();return this.pendingRequests.set(n,i),i}async _fetchTypeIndexPage(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=o.firebase.database().ref(e).orderByValue();r=null!=n?r.endAt(n-1).limitToLast(t):r.limitToLast(t);const i=await r.once("value");if(!i.exists())return{ids:[],hasMore:!1,oldestValue:null};const a=Object.entries(i.val()||{}).filter((e=>{let[,t]=e;return"number"===typeof t})).sort(((e,t)=>e[1]-t[1]));if(0===a.length)return{ids:[],hasMore:!1,oldestValue:null};const s=a.length>=t,l=a[0][1];return{ids:a.map((e=>{let[t]=e;return t})).reverse(),hasMore:s,oldestValue:l}}async _fetchVideosPage(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=o.firebase.database().ref("videos").orderByChild("createdAt");r=null!=n?r.endAt(n-1).limitToLast(e):r.limitToLast(e);const i=await r.once("value");if(!i.exists())return{ids:[],hasMore:!1,oldestValue:null,extraById:{}};const a=Object.entries(i.val()||{}).sort(((e,t)=>{var n,r;return((null===(n=e[1])||void 0===n?void 0:n.createdAt)||0)-((null===(r=t[1])||void 0===r?void 0:r.createdAt)||0)}));if(0===a.length)return{ids:[],hasMore:!1,oldestValue:null,extraById:{}};const s=a.length>=e,l=(null===(t=a[0][1])||void 0===t?void 0:t.createdAt)||null,c=a.map((e=>{let[t]=e;return t})).reverse(),u={};return a.forEach((e=>{let[t,n]=e;u[t]=n})),{ids:c,hasMore:s,oldestValue:l,extraById:u}}async _hydratePostsByIds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(await Promise.all(e.map((async e=>{try{const n=await this.getPost(e);return n?t[e]?(0,r.A)((0,r.A)({},t[e]),n):n:t[e]?(0,r.A)({id:e},t[e]):null}catch(n){return t[e]?(0,r.A)({id:e},t[e]):null}})))).filter(Boolean)}async getTypeFeedLatest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;if(!m.TYPE_COLLECTIONS.includes(e))return console.warn('getTypeFeedLatest: unknown type "'.concat(e,'"')),{posts:[],hasMore:!1,oldestValue:null};if(!this.isOnline())return{posts:[],hasMore:!1,oldestValue:null};const n="typefeed_".concat(e,"_").concat(t);if(this.pendingRequests.has(n))return this.pendingRequests.get(n);const r=(async()=>{try{const n="videos"===e?await this._fetchVideosPage(t):await this._fetchTypeIndexPage(e,t);return{posts:await this._hydratePostsByIds(n.ids,n.extraById||{}),hasMore:n.hasMore,oldestValue:n.oldestValue}}catch(r){return console.error("\u274c getTypeFeedLatest[".concat(e,"] error:"),r),{posts:[],hasMore:!1,oldestValue:null}}finally{this.pendingRequests.delete(n)}})();return this.pendingRequests.set(n,r),r}async fetchOlderTypeFeed(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12;if(!m.TYPE_COLLECTIONS.includes(e))return console.warn('fetchOlderTypeFeed: unknown type "'.concat(e,'"')),{posts:[],hasMore:!1,oldestValue:null};if(!this.isOnline()||null==t)return{posts:[],hasMore:!1,oldestValue:null};const r="typefeed_older_".concat(e,"_").concat(t,"_").concat(n);if(this.pendingRequests.has(r))return this.pendingRequests.get(r);const o=(async()=>{try{const r="videos"===e?await this._fetchVideosPage(n,t):await this._fetchTypeIndexPage(e,n,t);return{posts:await this._hydratePostsByIds(r.ids,r.extraById||{}),hasMore:r.hasMore,oldestValue:r.oldestValue}}catch(o){return console.error("\u274c fetchOlderTypeFeed[".concat(e,"] error:"),o),{posts:[],hasMore:!1,oldestValue:null}}finally{this.pendingRequests.delete(r)}})();return this.pendingRequests.set(r,o),o}updatePostInCache(e,t){const n=Date.now(),o="post_".concat(e);
2if(this.memoryCache.has(o)){const e=this.memoryCache.get(o);this.memoryCache.set(o,{data:(0,r.A)((0,r.A)({},e.data),t),timestamp:n})}const i=this._getFromStorage(f.POSTS);if(i){const o=i.findIndex((t=>t.id===e));if(-1!==o)if(t&&!0===t.hiddenFromFeed){const t=i.filter((t=>t.id!==e));this._saveToStorage(f.POSTS,t),this._saveToStorage(f.POSTS_TIMESTAMP,n)}else i[o]=(0,r.A)((0,r.A)({},i[o]),t),this._saveToStorage(f.POSTS,i),this._saveToStorage(f.POSTS_TIMESTAMP,n)}const a="latest_posts_".concat(c);if(this.memoryCache.has(a)){const o=this.memoryCache.get(a),i=o.data.findIndex((t=>t.id===e));-1!==i&&(t&&!0===t.hiddenFromFeed?o.data=o.data.filter((t=>t.id!==e)):o.data[i]=(0,r.A)((0,r.A)({},o.data[i]),t),this.memoryCache.set(a,{data:o.data,timestamp:n}))}}addPostToCache(e){this._addNewPostToLocalCache(e),this.memoryCache.set("post_".concat(e.id),{data:e,timestamp:Date.now()})}removePostFromCache(e){const t=Date.now();this.memoryCache.delete("post_".concat(e));const n=this._getFromStorage(f.POSTS);if(n){const r=n.filter((t=>t.id!==e));this._saveToStorage(f.POSTS,r),this._saveToStorage(f.POSTS_TIMESTAMP,t)}const r="latest_posts_".concat(c);if(this.memoryCache.has(r)){const n=this.memoryCache.get(r);n.data=n.data.filter((t=>t.id!==e)),this.memoryCache.set(r,{data:n.data,timestamp:t})}}async invalidateProfile(e){this.memoryCache.delete("profile_".concat(e));const t=await this._getProfilesFromStorage();delete t[e],await this._saveProfilesToStorage(t)}clearMemoryCache(){this.memoryCache.clear(),console.log("\ud83d\uddd1\ufe0f Memory cache cleared")}async clearAllCache(){this.clearMemoryCache(),localStorage.removeItem(this._getStorageKey(f.POSTS)),localStorage.removeItem(this._getStorageKey(f.POSTS_TIMESTAMP)),localStorage.removeItem(this._getStorageKey(f.TEAMS)),localStorage.removeItem(this._getStorageKey(f.TEAMS_TIMESTAMP)),localStorage.removeItem(this._getStorageKey(f.EVENTS)),localStorage.removeItem(this._getStorageKey(f.EVENTS_TIMESTAMP)),localStorage.removeItem(this._getStorageKey(f.PROFILE_THEMES)),localStorage.removeItem(this._getStorageKey(f.PROFILE_THEMES_TIMESTAMP)),localStorage.removeItem(this._getStorageKey(f.PROFILES)),await this._delFromIDB(f.PROFILES),console.log("\ud83d\uddd1\ufe0f All caches cleared")}async getCacheStats(){const e=(this._getFromStorage(f.POSTS)||[]).length,t=await this._getProfilesFromStorage(),n=Object.keys(t||{}).length,r=(this._getFromStorage(f.TEAMS)||[]).length,o=(this._getFromStorage(f.EVENTS)||[]).length;return{memoryCacheSize:this.memoryCache.size,postsCount:e,profilesCount:n,teamsCount:r,eventsCount:o}}}m.TYPE_COLLECTIONS=["blogs","videos","polls","quizes","newspapers"];const _=new m},47251:(e,t,n)=>{var r=n(98724),o=n(97160),i=n(85204);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},47574:e=>{e.exports=function(e){return function(t){return e(t)}}},48024:(e,t,n)=>{"use strict";n.d(t,{t:()=>d});var r,o,i,a=n(55149),s=n(38458),l=n(24558),c=n(60329),u=n(99723),d=new(r=new WeakMap,o=new WeakMap,i=new WeakMap,class extends c.Q{constructor(){super(),(0,a.A)(this,r,!0),(0,a.A)(this,o,void 0),(0,a.A)(this,i,void 0),(0,l.A)(i,this,(e=>{if(!u.S$&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}))}onSubscribe(){(0,s.A)(o,this)||this.setEventListener((0,s.A)(i,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=(0,s.A)(o,this))||void 0===e||e.call(this),(0,l.A)(o,this,void 0))}setEventListener(e){var t;(0,l.A)(i,this,e),null===(t=(0,s.A)(o,this))||void 0===t||t.call(this),(0,l.A)(o,this,e(this.setOnline.bind(this)))}setOnline(e){(0,s.A)(r,this)!==e&&((0,l.A)(r,this,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return(0,s.A)(r,this)}})},48311:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});const r={ar:{password_show:"\u0625\u0638\u0647\u0627\u0631 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",password_hide:"\u0625\u062e\u0641\u0627\u0621 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",settings_header:"\u
20627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a",settings_section_account_security:"\u0627\u0644\u062d\u0633\u0627\u0628 \u0648\u0627\u0644\u0623\u0645\u0627\u0646",settings_email_address:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a",settings_change_email:"\u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0628\u0631\u064a\u062f",settings_change_password:"\u062a\u063a\u064a\u064a\u0631 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",settings_new_password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u062c\u062f\u064a\u062f\u0629",settings_confirm_password:"\u062a\u0623\u0643\u064a\u062f \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u062c\u062f\u064a\u062f\u0629",settings_save_password:"\u062d\u0641\u0638 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",settings_saving:"\u062c\u0627\u0631\u064a \u0627\u0644\u062d\u0641\u0638...",settings_account_success_title:"\u062a\u0645 \u0627\u0644\u062a\u062d\u062f\u064a\u062b",settings_account_error_title:"\u062a\u0639\u0630\u0631 \u0627\u0644\u062a\u062d\u062f\u064a\u062b",settings_email_updated:"\u062a\u0645 \u062a\u063a\u064a\u064a\u0631 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0628\u0646\u062c\u0627\u062d.",settings_email_verification_sent:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0631\u0627\u0628\u0637 \u062a\u0623\u0643\u064a\u062f \u0625\u0644\u0649 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u062c\u062f\u064a\u062f. \u0644\u0646 \u064a\u062a\u063a\u064a\u0631 \u0628\u0631\u064a\u062f \u0627\u0644\u062d\u0633\u0627\u0628 \u062d\u062a\u0649 \u062a\u0641\u062a\u062d \u0627\u0644\u0631\u0627\u0628\u0637 \u0648\u062a\u0624\u0643\u062f \u0627\u0644\u0639\u0646\u0648\u0627\u0646.",settings_email_already_used:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0645\u0633\u062a\u062e\u062f\u0645 \u0628\u0627\u0644\u0641\u0639\u0644 \u0641\u064a \u062d\u0633\u0627\u0628 \u0622\u062e\u0631.",settings_email_invalid:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u063a\u064a\u0631 \u0635\u0627\u0644\u062d.",settings_password_updated:"\u062a\u0645 \u062a\u063a\u064a\u064a\u0631 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0628\u0646\u062c\u0627\u062d.",settings_password_mismatch:"\u0643\u0644\u0645\u062a\u0627 \u0627\u0644\u0645\u0631\u0648\u0631 \u063a\u064a\u0631 \u0645\u062a\u0637\u0627\u0628\u0642\u062a\u064a\u0646.",settings_password_too_short:"\u064a\u062c\u0628 \u0623\u0646 \u062a\u062a\u0643\u0648\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0645\u0646 6 \u0623\u062d\u0631\u0641 \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644.",settings_account_recent_login:"\u0644\u062d\u0645\u0627\u064a\u0629 \u062d\u0633\u0627\u0628\u0643\u060c \u0633\u062c\u0644 \u0627\u0644\u062e\u0631\u0648\u062c \u062b\u0645 \u0633\u062c\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0645\u062c\u062f\u062f\u0627\u064b \u0642\u0628\u0644 \u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0628\u0631\u064a\u062f \u0623\u0648 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631.",settings_account_update_failed:"\u062a\u0639\u0630\u0631 \u062a\u062d\u062f\u064a\u062b \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062d\u0633\u0627\u0628.",settings_notifications_manage:"\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0648\u0623\u0646\u0648\u0627\u0639\u0647\u0627",settings_section_theme:"\u0627\u0644\u0645\u0638\u0647\u0631",settings_theme_light:"\u0627\u0644\u0648\u0636\u0639 \u0627\u0644\u0641\u0627\u062a\u062d",settings_theme_dark:"\u0627\u0644\u0648\u0636\u0639 \u0627\u0644\u062f\u0627\u0643\u0646",settings_theme_system:"\u062d\u0633\u0628 \u0627\u0644\u0646\u0638\u0627\u0645",settings_toggle_theme_button:"\u062a\u0628\u062f\u064a\u0644 \u0627\u0644\u0648\u0636\u0639 \u0627\u0644\u0622\u0646",settings_section_language:"\u0627\u0644\u0644\u063a\u0629",settings_language_description:"\u0627\u062e\u062a\u0631 \u0644\u063a\u0629 \u0648\u0627\u062c\u0647\u0629 \u0627\u0644\u062a\u0637\u0628\u064a\u0642. \u064a\u0645\u0643\u0646\u0643 \u0625\u0636\u0627\u0641\u0629 \u0644\u063a\u0627\u062a \u0623\u062e\u0631\u0649 \u0644\u0627\u062d\u0642\u0627\u064b.",settings_language_option_ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",settings_language_option_en:"English",settings_section_direction:"\u0627\u062a\u062c\u0627\u0647 \u0627\u0644\u0639\u0631\u0636",settings_direction_description:"\u0627\u062e\u062a\u0631 \u0627\u062a\u062c\u0627\u0647 \u0639\u0631\u0636 \u0627\u0644\u0648\u0627\u062c\u0647\u0629 \u0633\u0648\u0627\u0621 \u062a\u0644\u0642\u0627\u0626\u064a \u0628\u0646\u0627\u0621\u064b \u0639\u0644\u0649 \u0627\u0644\u0644\u063a\u0629 \u0623\u0648 \u0627\u062c\u0639\u0644\u0647\u0627 
2LTR/RTL \u062d\u0633\u0628 \u062a\u0641\u0636\u064a\u0644\u0643.",settings_direction_auto:"\u062a\u0644\u0642\u0627\u0626\u064a (\u062d\u0633\u0628 \u0627\u0644\u0644\u063a\u0629)",settings_direction_rtl:"\u0645\u0646 \u0627\u0644\u064a\u0645\u064a\u0646 \u0625\u0644\u0649 \u0627\u0644\u064a\u0633\u0627\u0631 (RTL)",settings_direction_ltr:"\u0645\u0646 \u0627\u0644\u064a\u0633\u0627\u0631 \u0625\u0644\u0649 \u0627\u0644\u064a\u0645\u064a\u0646 (LTR)",settings_section_notifications:"\u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a",settings_notifications_description:"\u062a\u0641\u0639\u064a\u0644 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0644\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u062a\u0646\u0628\u064a\u0647\u0627\u062a \u062d\u064a\u0629 \u0648\u0645\u0628\u0627\u0634\u0631\u0629 \u0645\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642.",settings_notifications_note_windows:"\u0639\u0644\u0649 \u0648\u064a\u0646\u062f\u0648\u0632 \u064a\u0645\u0643\u0646 \u0623\u0646 \u062a\u0635\u0644\u0643 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u062d\u062a\u0649 \u0625\u0630\u0627 \u0643\u0627\u0646 \u0627\u0644\u0645\u062a\u0635\u0641\u062d \u063a\u064a\u0631 \u0638\u0627\u0647\u0631\u060c \u0644\u0643\u0646 \u0625\u0630\u0627 \u0623\u063a\u0644\u0642\u062a \u0627\u0644\u0645\u062a\u0635\u0641\u062d \u0623\u0648 \u0639\u0637\u0651\u0644\u062a \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0645\u0646 \u0625\u0639\u062f\u0627\u062f\u0627\u062a \u0627\u0644\u0646\u0638\u0627\u0645 \u0641\u0644\u0646 \u062a\u0635\u0644.",settings_windows_step_1:"\u0627\u0636\u063a\u0637 \u0645\u0637\u0648\u0644\u0627\u064b \u0639\u0644\u0649 \u0623\u064a\u0642\u0648\u0646\u0629 \u0627\u0644\u062a\u0637\u0628\u064a\u0642 \u0641\u064a \u0627\u0644\u0634\u0627\u0634\u0629 \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629",settings_windows_step_2:'\u0627\u062e\u062a\u0631 "\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u062a\u0637\u0628\u064a\u0642" \u0623\u0648 "App info"',settings_windows_step_3:'\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 "\u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a" \u0623\u0648 "Notifications"',settings_windows_step_4:"\u0641\u0639\u0651\u0644 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a",settings_check_notifications_button:"\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u0644\u062a\u0641\u0639\u064a\u0644",settings_notifications_enable_button:"\u062a\u0641\u0639\u064a\u0644 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a",settings_notifications_blocked_title:"\u26a0\ufe0f \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0645\u062d\u0638\u0648\u0631\u0629 \u0645\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642",settings_notifications_blocked_details:"\u0644\u0625\u0639\u0627\u062f\u0629 \u062a\u0641\u0639\u064a\u0644 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a\u060c \u0627\u062a\u0628\u0639 \u0627\u0644\u062e\u0637\u0648\u0627\u062a \u0627\u0644\u062a\u0627\u0644\u064a\u0629:",settings_notifications_disabled_note_blocked:"\ud83d\udeab \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0645\u062d\u0638\u0648\u0631\u0629 \u0645\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642 - \u0644\u0627 \u064a\u0645\u0643\u0646 \u0636\u0628\u0637 \u0627\u0644\u062a\u0641\u0636\u064a\u0644\u0627\u062a \u062d\u062a\u0649 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0641\u0639\u064a\u0644 \u0645\u0646 \u0625\u0639\u062f\u0627\u062f\u0627\u062a \u0627\u0644\u062a\u0637\u0628\u064a\u0642",settings_notifications_disabled_note_not_enabled:"\u26a0\ufe0f \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u063a\u064a\u0631 \u0645\u0641\u0639\u0651\u0644\u0629\u060c \u0644\u0643\u0646 \u064a\u0645\u0643\u0646\u0643 \u0636\u0628\u0637 \u062a\u0641\u0636\u064a\u0644\u0627\u062a\u0643 \u0645\u0633\u0628\u0642\u0627\u064b",settings_notification_types_label:"\u0627\u062e\u062a\u0631 \u0623\u0646\u0648\u0627\u0639 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0627\u0644\u062a\u064a \u062a\u0631\u064a\u062f \u0627\u0633\u062a\u0642\u0628\u0627\u0644\u0647\u0627:",settings_notification_type_mention_label:"\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0627\u0644\u0630\u0643\u0631",settings_notification_type_mention_desc:"\u0639\u0646\u062f\u0645\u0627 \u064a\u0630\u0643\u0631\u0643 \u0623\u062d\u062f \u0641\u064a \u0645\u0646\u0634\u0648\u0631 \u0623\u0648 \u062a\u0639\u0644\u064a\u0642",settings_notification_type_reactions_label:"\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0627\u0644\u062a\u0641\u0627\u0639\u0644",settings_notification_type_reactions_desc:"\u0639\u0646\u062f\u0645\u0627 \u064a\u062a\u0641\u0627\u0639\u0644 \u0623\u062d\u062f \u0645\u0639 \u0645\u0646\u0634\u0648\u0631\u0627\u062a\u0643 \u0623\u0648 \u062a\u0639\u0644\u064a\u0642\u0627\u062a\u0643",settings_notification_type_comments_label:"\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",settings_notification_type_comments_desc:"\u0639\u0646\u062f\u0645\u0627 \u064a\u0639\u0644\u0642 \u0623\u062d\u062f \u0639\u0644\u0649 \u0645\u0646\u0634\u0648\u0631\u0627\u062a\u0643",settings_notification_type_replies_label:"\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0627\u0644\u0631\u062f\u0648\u062f",settings_notification_type_replies_desc:"\u0639\u0646\u062f\u0645\u0627 \u064a\u0631\u062f \u0623\u062d\u062f \u0639\u0644\u0649 \u062a\u0639\u0644\u064a\u0642\u0627\u062a\u0643",settings_notification_type_messages_label:"\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0627\u0644\u0631\u0633\u0627\u0626\u0644",settings_notification_type_messages_desc:"\u0639\u0646\u062f \u0648\u0635\u0648\u0644 \u0631\u0633\u0627\u0626\u0644 \u062e\u0627\u0635\u0629 \u0623\u0648 \u062c\u0645\u0627\u0639\u064a\u0629",settings_notification_type_bans_label:"\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0627\u0644\u062d\u0638\u0631",settings_notification_type_bans_desc:"\u0639\u0646\u062f \u062d\u0638\u0631 \u0623\u0648 \u0631\u0641\u0639 \u062d\u0638\u0631 \u0639\u0646 \u0623\u062d\u062f \u0645\u062d\u062a\u0648\u064a\u0627\u062a\u0643",settings_notif_saving_indicator:"\u062c\u0627\u0631\u064a \u0627\u0644\u062d\u0641\u0638...",settings_section_daily_plan:"\u0627\u0644\u062e\u0637\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629",settings_daily_plan_desc:"\u0625\u0630\u0627 \u0643\u0646\u062a \u062a\u0631\u064a\u062f \u0625\u0639\u0627\u062f\u0629 \u0636\u0628\u0637 \u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u062e\u0637\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629\u
2060c \u0633\u064a\u062a\u0645 \u062d\u0630\u0641 \u0625\u0639\u062f\u0627\u062f\u0627\u062a \u0627\u0644\u062e\u0637\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0627\u0644\u062d\u0627\u0644\u064a\u0629",settings_reset_daily_plan_button:"\u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646 \u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u062e\u0637\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629",settings_reset_daily_plan_resetting:"\u062c\u0627\u0631\u064a \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0639\u064a\u064a\u0646...",settings_section_legal_info:"\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0642\u0627\u0646\u0648\u0646\u064a\u0629",settings_terms_of_service:"\u0634\u0631\u0648\u0637 \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645",settings_privacy_policy:"\u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u062e\u0635\u0648\u0635\u064a\u0629",settings_child_safety:"\u0633\u064a\u0627\u0633\u0629 \u062d\u0645\u0627\u064a\u0629 \u0627\u0644\u0623\u0637\u0641\u0627\u0644",settings_section_contact_us:"\u062a\u0648\u0627\u0635\u0644 \u0645\u0639\u0646\u0627",settings_contact_description:"\u0644\u062f\u064a\u0643 \u0633\u0624\u0627\u0644 \u0623\u0648 \u0627\u0642\u062a\u0631\u0627\u062d\u061f \u0646\u062d\u0646 \u0647\u0646\u0627 \u0644\u0644\u0645\u0633\u0627\u0639\u062f\u0629",settings_contact_email_label:"[email protected]",settings_section_danger:"\u0645\u0646\u0637\u0642\u0629 \u0627\u0644\u062e\u0637\u0631",settings_delete_account_warning:"\u062d\u0630\u0641 \u062d\u0633\u0627\u0628\u0643 \u0633\u064a\u0624\u062f\u064a \u0625\u0644\u0649 \u062d\u0630\u0641 \u062c\u0645\u064a\u0639 \u0628\u064a\u0627\u0646\u0627\u062a\u0643 \u0648\u0645\u0646\u0634\u0648\u0631\u0627\u062a\u0643 \u0628\u0634\u0643\u0644 \u0646\u0647\u0627\u0626\u064a",settings_delete_account_button:"\u062d\u0630\u0641 \u0627\u0644\u062d\u0633\u0627\u0628 \u0646\u0647\u0627\u0626\u064a\u0627\u064b",settings_delete_account_processing:"\u062c\u0627\u0631\u064a \u0627\u0644\u062d\u0630\u0641...",settings_confirm_delete_title:"\u062d\u0630\u0641 \u0627\u0644\u062d\u0633\u0627\u0628 \u0646\u0647\u0627\u0626\u064a\u0627\u064b",settings_confirm_delete_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u062d\u0630\u0641 \u062d\u0633\u0627\u0628\u0643\u061f \u0633\u064a\u062a\u0645 \u062d\u0630\u0641 \u062c\u0645\u064a\u0639 \u0628\u064a\u0627\u0646\u0627\u062a\u0643 \u0648\u0645\u0646\u0634\u0648\u0631\u0627\u062a\u0643 \u0628\u0634\u0643\u0644 \u0646\u0647\u0627\u0626\u064a \u0648\u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0633\u062a\u0631\u062c\u0627\u0639\u0647\u0627.\n\n\u26a0\ufe0f \u062a\u062d\u0630\u064a\u0631 \u0645\u0647\u0645: \u0644\u0646 \u062a\u062a\u0645\u0643\u0646 \u0645\u0646 \u0625\u0646\u0634\u0627\u0621 \u062d\u0633\u0627\u0628 \u062c\u062f\u064a\u062f \u0628\u0646\u0641\u0633 \u0627\u0644\u0625\u064a\u0645\u064a\u0644 \u0644\u0645\u062f\u0629 30 \u064a\u0648\u0645.",settings_confirm_delete_confirm:"\u062d\u0630\u0641 \u0627\u0644\u062d\u0633\u0627\u0628",settings_confirm_cancel:"\u0625\u0644\u063a\u0627\u0621",settings_confirm_reset_title:"\u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646 \u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u062e\u0637\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629",settings_confirm_reset_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062d\u0630\u0641 \u0628\u064a\u0627\u0646\u0627\u062a \u062a\u0641\u0636\u064a\u0644 \u0627\u0644\u062e\u0637\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0627\u0644\u062d\u0627\u0644\u064a\u0629\u061f \u0633\u064a\u062a\u0645 \u062d\u0630\u0641 user_prefs/{userId} \u0641\u0642\u0637.",settings_confirm_reset_confirm:"\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0639\u064a\u064a\u0646",settings_reset_success_title:"\u062a\u0645 \u0628\u0646\u062c\u0627\u062d",settings_reset_success_message:"\u062a\u0645\u062a \u0625\u0639\u0627\u062f\u0629 \u0625\u0639\u0627\u062f\u0629 \u062a\u0647\u064a\u0626\u0629 \u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u062e\u0637\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0628\u0646\u062c\u0627\u062d.",settings_error_title:"\u062e\u0637\u0623",settings_error_no_user_message:"\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0639\u062b\u0648\u0631 \u0639\u0644\u0649 \u0645\u0639\u0631\u0641 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645. \u0627\u0644\u0631\u062c\u0627\u0621 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.",settings_error_reset_fail_message:"\u0641\u0634\u0644 \u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646 \u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u062e\u0637\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.",settings_error_delete_prefix:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062d\u0630\u0641 \u0627\u0644\u062d\u0633\u0627\u0628:",settings_unknown_error:"\u062e\u0637\u0623 \u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641",settings_deletion_overlay_title:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u0627\u0644\u062d\u0633\u0627\u0628...",settings_deletion_warning:"\u0644\u0627 \u062a\u063a\u0644\u0642 \u0647\u0630\u0647 \u0627\u0644\u0635\u0641\u062d\u0629 \u0623\u0648 \u062a\u0636\u063a\u0637 \u0639\u0644\u0649 \u0632\u0631 \u0627\u0644\u0631\u062c\u0648\u0639",settings_deletion_step_fetch_posts:"\u062c\u0627\u0631\u064a \u062c\u0644\u0628 \u0628\u064a\u0627\u0646\u0627\u062a \u0645\u0646\u0634\u0648\u0631\u0627\u062a\u0643...",settings_deletion_step_deleting_posts:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 {count} \u0645\u0646\u0634\u0648\u0631...",settings_deletion_step_posts_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u062c\u0645\u064a\u0639 \u0645\u0646\u0634\u0648\u0631\u0627\u062a\u0643",settings_deletion_step_no_posts:"\u2705 \u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0644\u062d\u0630\u0641\u0647\u0627",settings_deletion_step_deleting_role:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u062f\u0648\u0631 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645...",settings_deletion_step_role_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u062f\u0648\u0631 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",settings_deletion_step_deleting_points:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u0627\u0644\u0646\u0642\u0627\u0637 \u0648\u0627\u0644\u0639\u0645\u0644\u0627\u062a...",settings_deletion_step_points_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0646\u0642\u0627\u0637 \u0648\u0627\u0644\u0639\u0645\u0644\u0627\u062a",settings_deletion_step_deleting_hashtags:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u0627\u0644\u0647\u0627\u0634\u062a\u0627\u0642\u0627\u062a...",settings_deletion_step_hashtags_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0647\u0627\u0634\u062a\u0627\u0642\u0627\u062a",settings_deletion_step_deleting_quran_progress:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u062a\u0642\u062f\u0645 \u0627\u0644\u0642\u0631\u0622\u0646...",settings_deletion_step_quran_progress_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u062a\u0642\u062f\u0645 \u0627\u0644\u0642\u0631\u0622\u0646",settings_deletion_step_deleting_quran_status:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u062d\u0627\u0644\u0629 \u0627\u0644\u0642\u0631\u0622\u0646...",settings_deletion_step_quran_
2status_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u062d\u0627\u0644\u0629 \u0627\u0644\u0642\u0631\u0622\u0646",settings_deletion_step_deleting_notifications:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a...",settings_deletion_step_notifications_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a",settings_deletion_step_deleting_suggestions:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u062a\u0642\u0627\u0631\u064a\u0631 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u062d\u0627\u062a...",settings_deletion_step_suggestions_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u062a\u0642\u0627\u0631\u064a\u0631 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u062d\u0627\u062a",settings_deletion_step_deleting_deleted_records:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u0633\u062c\u0644\u0627\u062a \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062d\u0630\u0648\u0641\u0629...",settings_deletion_step_deleted_records_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u0633\u062c\u0644\u0627\u062a \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062d\u0630\u0648\u0641\u0629",settings_deletion_step_deleting_videos:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u0627\u0644\u0641\u064a\u062f\u064a\u0648\u0647\u0627\u062a...",settings_deletion_step_videos_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0641\u064a\u062f\u064a\u0648\u0647\u0627\u062a",settings_deletion_step_deleting_team_posts:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0641\u0631\u064a\u0642...",settings_deletion_step_team_posts_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0641\u0631\u064a\u0642",settings_deletion_step_deleting_profile:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a...",settings_deletion_step_profile_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a",settings_deletion_step_removing_appstatus:"\u062c\u0627\u0631\u064a \u0625\u0632\u0627\u0644\u0629 \u062d\u0627\u0644\u0629 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0645\u0646 AppStatus...",settings_deletion_step_appstatus_removed:"\u2705 \u062a\u0645\u062a \u0625\u0632\u0627\u0644\u0629 \u062d\u0627\u0644\u0629 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0645\u0646 AppStatus",settings_deletion_step_deleting_auth:"\u062c\u0627\u0631\u064a \u062d\u0630\u0641 \u062d\u0633\u0627\u0628 \u0627\u0644\u0645\u0635\u0627\u062f\u0642\u0629...",settings_deletion_step_auth_deleted:"\u2705 \u062a\u0645 \u062d\u0630\u0641 \u062d\u0633\u0627\u0628 \u0627\u0644\u0645\u0635\u0627\u062f\u0642\u0629 \u0646\u0647\u0627\u0626\u064a\u0627\u064b",settings_deletion_step_logged_out_after_delete:"\u2705 \u062a\u0645 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062e\u0631\u0648\u062c",settings_deletion_step_cleanup_cache:"\u062c\u0627\u0631\u064a \u062a\u0646\u0638\u064a\u0641 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u062d\u0644\u064a\u0629 \u0648\u0627\u0644cache...",settings_deletion_step_cleanup_done:"\u2705 \u062a\u0645 \u062a\u0646\u0638\u064a\u0641 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u062d\u0644\u064a\u0629 \u0648\u0627\u0644cache",settings_deletion_step_delete_success:"\u2728 \u062a\u0645 \u062d\u0630\u0641 \u062d\u0633\u0627\u0628\u0643 \u0628\u0646\u062c\u0627\u062d!",settings_deletion_step_logout_warning:"\u26a0\ufe0f \u062a\u0645 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062e\u0631\u0648\u062c (\u064a\u062a\u0637\u0644\u0628 \u062d\u0630\u0641 \u0627\u0644\u062d\u0633\u0627\u0628 \u0625\u0639\u0627\u062f\u0629 \u062a\u0633\u062c\u064a\u0644 \u062f\u062e\u0648\u0644 \u0645\u0624\u062e\u0631\u0627\u064b)",settings_deletion_step_logout_partial:"\u26a0\ufe0f \u062a\u0645 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062e\u0631\u0648\u062c (\u0644\u0645 \u064a\u062a\u0645 \u062d\u0630\u0641 \u062d\u0633\u0627\u0628 \u0627\u0644\u0645\u0635\u0627\u062f\u0642\u0629)",profile_menu_loading:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",profile_menu_feature_dev_message:"{feature} \u0642\u064a\u062f \u0627\u0644\u062a\u0637\u0648\u064a\u0631",profile_menu_profile_image_alt:"\u0635\u0648\u0631\u0629 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a",profile_menu_unknown:"\u0645\u062c\u0647\u0648\u0644",profile_menu_unknown_tag:"\u0645\u062c\u0647\u0648\u0644",profile_menu_view_profile:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a",profile_menu_notifications:"\u0627\u0644\u062a\u0646\u0628\u064a\u0647\u0627\u062a",profile_menu_team:"\u0627\u0644\u0641\u0631\u064a\u0642",profile_menu_friend_requests:"\u0627\u0644\u0645\u0639\u0627\u0631\u0641",profile_menu_messages:"\u0627\u0644\u0631\u0633\u0627\u0626\u0644",profile_menu_store:"\u0627\u0644\u0645\u062a\u062c\u0631",profile_menu_plugins:"\u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062a",profile_menu_plugins_description:"\u0627\u062e\u062a\u0631 \u0627\u0644\u0627\u062e\u062a\u0635\u0627\u0631\u0627\u062a \u0627\u0644\u0625\u0636\u0627\u0641\u064a\u0629 \u0627\u0644\u062a\u064a \u062a\u0631\u064a\u062f \u0625\u0638\u0647\u0627\u0631\u0647\u0627 \u0641\u064a \u0642\u0627\u0626\u0645\u0629 \u0645\u0644\u0641\u0643 \u0627\u0644\u0634\u062e\u0635\u064a.",profile_menu_create_event:"\u0625\u0646\u0634\u0627\u0621 \u0641\u0639\u0627\u0644\u064a\u0629",profile_menu_quran:"\u0627\u0644\u0642\u0631\u0622\u0646 \u0627\u0644\u0643\u0631\u064a\u0645",profile_menu_characters:"\u0627\u0644\u0634\u062e\u0635\u064a\u0627\u062a \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064a\u0629",profile_menu_tasbeeh:"\u0645\u0633\u0627\u0628\u0642\u0629 \u0627\u0644\u0623\u0630\u0643\u0627\u0631",profile_menu_prayer_tracker:"\u0645\u062a\u0627\u0628\u0639\u0629 \u0627\u0644\u0635\u0644\u0648\u0627\u062a",profile_menu_adhkar:"\u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0635\u0628\u0627\u062d \u0648\u0627\u0644\u0645\u0633\u0627\u0621",profile_menu_create_plan:"\u0625\u0646\u0634\u0627\u0621 \u062e\u0637\u0629 \u0627\u0644\u064a\u0648\u0645",profile_menu_saraha:"\u0635\u0627\u0631\u062d\u0646\u064a",profile_menu_currency_log:"\u0633\u062c\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u062a",profile_menu_daily_quiz:"\u0645\u0633\u0627\u0628\u0642\u0629 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u064a\u0648\u0645\u064a\u0629",profile_menu_reports_box:"\u0635\u0646\u062f\u0648\u0642 \u0627\u0644\u0628\u0644\u0627\u063a\u0627\u062a",profile_menu_my_hashtags:"\u0627\u0644\u0647\u0627\u0634\u062a\u0627\u063a\u0627\u062a \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u064a",profile_menu_saved_posts:"\u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062d\u0641\u0648\u0638\u0629",profile_menu_drafts:"\u0627\u0644\u0645\u0633\u0648\u062f\u0627\u062a",profile_menu_events:"\u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",profile_menu_settings:"\u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a",profile_menu_staff:"\u
20637\u0627\u0642\u0645 \u0627\u0644\u0639\u0645\u0644",profile_menu_moderation_log:"\u0633\u062c\u0644 \u0627\u0644\u0625\u062c\u0631\u0627\u0621\u0627\u062a \u0627\u0644\u0625\u062f\u0627\u0631\u064a\u0629",profile_menu_create_daily_question:"\u0625\u0646\u0634\u0627\u0621 \u0633\u0624\u0627\u0644 \u064a\u0648\u0645\u064a",profile_menu_deleted_posts:"\u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062d\u0630\u0648\u0641\u0629",profile_menu_logs_section:"\u0627\u0644\u0633\u062c\u0644\u0627\u062a",profile_menu_suggestions_box:"\u0627\u0644\u0627\u0642\u062a\u0631\u0627\u062d\u0627\u062a",profile_menu_unified_reports_system:"\u0627\u0644\u0628\u0644\u0627\u063a\u0627\u062a",profile_menu_admin_section:"\u0627\u0644\u0625\u062f\u0627\u0631\u0629",profile_menu_switch_account:"\u062a\u0628\u062f\u064a\u0644 \u0627\u0644\u062d\u0633\u0627\u0628",profile_menu_logout:"\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062e\u0631\u0648\u062c",profile_menu_switch_error_generic:"\u062a\u0639\u0630\u0651\u0631 \u0641\u062a\u062d \u0648\u0627\u062c\u0647\u0629 \u062a\u0628\u062f\u064a\u0644 \u0627\u0644\u062d\u0633\u0627\u0628\u0627\u062a. \u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.",profile_menu_switch_session_expired:"\u0627\u0646\u062a\u0647\u062a \u062c\u0644\u0633\u0629 \u0647\u0630\u0627 \u0627\u0644\u062d\u0633\u0627\u0628. \u0627\u0644\u0631\u062c\u0627\u0621 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0645\u062c\u062f\u062f\u0627\u064b.",profile_menu_logout_switch_message:"\u0639\u0646\u062f \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0647\u0630\u0627 \u0627\u0644\u062d\u0633\u0627\u0628 \u0633\u064a\u064f\u0632\u0627\u0644 \u0645\u0646 \u0647\u0630\u0627 \u0627\u0644\u062c\u0647\u0627\u0632. \u0647\u0644 \u062a\u0631\u063a\u0628 \u0641\u064a \u0627\u0644\u0645\u062a\u0627\u0628\u0639\u0629\u061f",profile_menu_add_account:"\u0625\u0636\u0627\u0641\u0629 \u062d\u0633\u0627\u0628",profile_menu_main_account:"\u0627\u0644\u062d\u0633\u0627\u0628 \u0627\u0644\u0631\u0626\u064a\u0633\u064a",islamic_hub_title:"\u0625\u0633\u0644\u0627\u0645\u064a\u0627\u062a",islamic_hub_subtitle:"\u0645\u0633\u0627\u062d\u062a\u0643 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0644\u0644\u062a\u0642\u0631\u0628 \u0645\u0646 \u0627\u0644\u0644\u0647",islamic_hub_desc_adhkar:"\u0627\u0628\u062f\u0623 \u064a\u0648\u0645\u0643 \u0648\u0627\u062e\u062a\u0645\u0647 \u0628\u0630\u0643\u0631 \u0627\u0644\u0644\u0647",islamic_hub_desc_tasbeeh:"\u0646\u0627\u0641\u0633 \u0646\u0641\u0633\u0643 \u0648\u0627\u0643\u0633\u0628 \u0634\u0627\u0631\u0627\u062a \u064a\u0648\u0645\u064a\u0629",islamic_hub_desc_prayer_tracker:"\u062a\u0627\u0628\u0639 \u0635\u0644\u0648\u0627\u062a\u0643 \u0648\u062d\u0627\u0641\u0638 \u0639\u0644\u0649 \u0627\u0646\u062a\u0638\u0627\u0645\u0647\u0627",islamic_hub_desc_characters:"\u062a\u0639\u0631\u0651\u0641 \u0639\u0644\u0649 \u0633\u0650\u064a\u064e\u0631 \u0627\u0644\u0635\u062d\u0627\u0628\u0629 \u0648\u0627\u0644\u0639\u0644\u0645\u0627\u0621",islamic_hub_desc_quran:"\u0627\u0642\u0631\u0623 \u0648\u0627\u062d\u0641\u0638 \u0622\u064a\u0627\u062a \u0627\u0644\u0630\u0643\u0631 \u0627\u0644\u062d\u0643\u064a\u0645",prayer_tracker_title:"\u0645\u062a\u0627\u0628\u0639\u0629 \u0627\u0644\u0635\u0644\u0648\u0627\u062a",prayer_tracker_tab_prayers:"\u0627\u0644\u0635\u0644\u0648\u0627\u062a",prayer_tracker_tab_missed:"\u0627\u0644\u0641\u0627\u0626\u062a\u0629",prayer_tracker_tab_adhkar:"\u0627\u0644\u0623\u0630\u0643\u0627\u0631",prayer_tracker_sunnah_streak:"streak \u0627\u0644\u0633\u0646\u0646",prayer_tracker_fard_progress:"\u0627\u0644\u0641\u0631\u0648\u0636 {done}/{total}",prayer_tracker_sunnah_progress:"\u0627\u0644\u0633\u0646\u0646 {done}/{total}",bottom_nav_home:"\u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629",bottom_nav_missions:"\u0627\u0644\u0634\u0627\u0631\u0627\u062a",bottom_nav_create_post:"\u0625\u0646\u0634\u0627\u0621 \u0645\u0646\u0634\u0648\u0631",bottom_nav_create_newspaper:"\u
20625\u0646\u0634\u0627\u0621 \u062c\u0631\u064a\u062f\u0629",bottom_nav_drafts:"\u0627\u0644\u0645\u0633\u0648\u062f\u0627\u062a",bottom_nav_create_poll:"\u0625\u0646\u0634\u0627\u0621 \u062a\u0635\u0648\u064a\u062a",bottom_nav_create_quiz:"\u0625\u0646\u0634\u0627\u0621 Quiz",bottom_nav_create_video:"\u0641\u064a\u062f\u064a\u0648 \u0642\u0635\u064a\u0631 (Reels)",bottom_nav_team:"\u0625\u0633\u0644\u0627\u0645\u064a\u0627\u062a",bottom_nav_more:"\u0627\u0644\u0645\u0632\u064a\u062f",settings_section_bottom_navbar_direction:"\u0627\u062a\u062c\u0627\u0647 \u0634\u0631\u064a\u0637 \u0627\u0644\u062a\u0646\u0642\u0644 \u0627\u0644\u0633\u0641\u0644\u064a",settings_bottom_navbar_direction_description:"\u064a\u0645\u0643\u0646\u0643 \u0636\u0628\u0637 \u0627\u062a\u062c\u0627\u0647 \u0634\u0631\u064a\u0637 \u0627\u0644\u062a\u0646\u0642\u0644 \u0627\u0644\u0633\u0641\u0644\u064a \u0628\u0634\u0643\u0644 \u0645\u0633\u062a\u0642\u0644 \u0639\u0646 \u0627\u062a\u062c\u0627\u0647 \u0628\u0627\u0642\u064a \u0627\u0644\u062a\u0637\u0628\u064a\u0642.",login_language_toggle_aria:"\u062a\u0628\u062f\u064a\u0644 \u0627\u0644\u0644\u063a\u0629",login_logo_alt:"\u0634\u0639\u0627\u0631 \u0627\u0644\u062a\u0637\u0628\u064a\u0642",login_welcome:"\u0645\u0631\u062d\u0628\u0627\u064b \u0628\u0639\u0648\u062f\u062a\u0643!",login_email_divider:"\u0623\u0648 \u0627\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u0625\u064a\u0645\u064a\u0644",login_email_placeholder:"[email protected]",login_password_placeholder:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",login_confirm_password_placeholder:"\u062a\u0623\u0643\u064a\u062f \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",login_terms_intro:"\u0645\u0646 \u062e\u0644\u0627\u0644 \u0627\u0644\u0645\u062a\u0627\u0628\u0639\u0629\u060c \u0641\u0623\u0646\u062a \u062a\u0648\u0627\u0641\u0642 \u0639\u0644\u0649",login_terms_link:"\u0634\u0631\u0648\u0637 \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645",login_privacy_link:"\u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u062e\u0635\u0648\u0635\u064a\u0629",login_signin_button:"\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644",login_signing_in:"\u062c\u0627\u0631\u064a \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644...",login_signup_button:"\u0625\u0646\u0634\u0627\u0621 \u062d\u0633\u0627\u0628",login_creating_account:"\u062c\u0627\u0631\u064a \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062d\u0633\u0627\u0628...",login_forgot_password:"\u0646\u0633\u064a\u062a \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631\u061f",login_sending_reset:"\u062c\u0627\u0631\u064a \u0625\u0631\u0633\u0627\u0644 \u0631\u0627\u0628\u0637 \u0627\u0644\u0627\u0633\u062a\u0639\u0627\u062f\u0629...",login_install_button:"\u062a\u062b\u0628\u064a\u062a \u0627\u0644\u062a\u0637\u0628\u064a\u0642",login_resend_verification:"\u0625\u0639\u0627\u062f\u0629 \u0625\u0631\u0633\u0627\u0644 \u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u062a\u062d\u0642\u0642",login_no_account:"\u0644\u0627 \u062a\u0645\u0644\u0643 \u062d\u0633\u0627\u0628\u064b\u0627\u061f",login_have_account:"\u0644\u062f\u064a\u0643 \u062d\u0633\u0627\u0628\u061f",login_signup_link:"\u0625\u0646\u0634\u0627\u0621 \u062d\u0633\u0627\u0628",login_signin_link:"\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644",login_error_email_password_required:"\u064a\u0631\u062c\u0649 \u0625\u062f\u062e\u0627\u0644 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0648\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",login_error_password_mismatch:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u063a\u064a\u0631 \u0645\u062a\u0637\u0627\u0628\u0642\u0629",login_error_password_min_length:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u064a\u062c\u0628 \u0623\u0646 \u062a\u0643\u0648\u0646 6 \u0623\u062d\u0631\u0641 \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644",login_
2info_verification_sent:"\ud83d\udce7 \u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0631\u0627\u0628\u0637 \u0627\u0644\u062a\u062d\u0642\u0642 \u0625\u0644\u0649 \u0628\u0631\u064a\u062f\u0643 \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a. \u062a\u062d\u0642\u0642 \u0645\u0646 \u0645\u062c\u0644\u062f \u0627\u0644\u0633\u0628\u0627\u0645 \u0625\u0630\u0627 \u0644\u0645 \u062a\u062c\u062f\u0647.",login_error_email_in_use:"\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0645\u0633\u062a\u062e\u062f\u0645 \u0628\u0627\u0644\u0641\u0639\u0644",login_error_invalid_email:"\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u063a\u064a\u0631 \u0635\u0627\u0644\u062d",login_error_signup_failed:"\u0641\u0634\u0644 \u0641\u064a \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062d\u0633\u0627\u0628",login_error_verify_email:"\u064a\u0631\u062c\u0649 \u062a\u0623\u0643\u064a\u062f \u0628\u0631\u064a\u062f\u0643 \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0623\u0648\u0644\u0627\u064b",login_error_user_not_found:"\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u063a\u064a\u0631 \u0645\u0633\u062c\u0644",login_error_wrong_password:"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d\u0629",login_error_reset_email_required:"\u0623\u062f\u062e\u0644 \u0628\u0631\u064a\u062f\u0643 \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0644\u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",login_info_password_reset_sent:"\u0625\u0630\u0627 \u0643\u0627\u0646 \u0647\u0646\u0627\u0643 \u062d\u0633\u0627\u0628 \u0628\u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u064a\u062f\u060c \u0641\u0642\u062f \u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0631\u0627\u0628\u0637 \u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631. \u062a\u062d\u0642\u0642 \u0645\u0646 \u0645\u062c\u0644\u062f \u0627\u0644\u0633\u0628\u0627\u0645 \u0623\u064a\u0636\u0627\u064b.",login_error_password_reset_failed:"\u062a\u0639\u0630\u0631 \u0625\u0631\u0633\u0627\u0644 \u0631\u0633\u0627\u0644\u0629 \u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631. \u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.",login_error_verification_resend_failed:"\u062a\u0639\u0630\u0631 \u0625\u0639\u0627\u062f\u0629 \u0625\u0631\u0633\u0627\u0644 \u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u062a\u062d\u0642\u0642. \u062d\u0627\u0648\u0644 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.",login_error_user_disabled:"\u062a\u0645 \u062a\u0639\u0637\u064a\u0644 \u0647\u0630\u0627 \u0627\u0644\u062d\u0633\u0627\u0628. \u062a\u0648\u0627\u0635\u0644 \u0645\u0639 \u0627\u0644\u062f\u0639\u0645 \u0644\u0644\u0645\u0633\u0627\u0639\u062f\u0629.",login_error_too_many_requests:"\u0645\u062d\u0627\u0648\u0644\u0627\u062a \u0643\u062b\u064a\u0631\u0629 \u062c\u062f\u0627\u064b. \u0627\u0646\u062a\u0638\u0631 \u0642\u0644\u064a\u0644\u0627\u064b \u062b\u0645 \u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.",login_error_network:"\u062a\u0639\u0630\u0631 \u0627\u0644\u0627\u062a\u0635\u0627\u0644. \u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u062a\u0635\u0627\u0644 \u0627\u0644\u0625\u0646\u062a\u0631\u0646\u062a \u0648\u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.",login_add_account_title:"\u0625\u0636\u0627\u0641\u0629 \u062d\u0633\u0627\u0628",login_add_account_subtitle:"\u0633\u062c\u0651\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u0625\u0636\u0627\u0641\u0629 \u062d\u0633\u0627\u0628 \u0622\u062e\u0631 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062c\u0647\u0627\u0632",login_add_account_cancel:"\u0625\u0644\u063a\u0627\u0621",login_error_signin_failed:"\u0641\u0634\u0644 \u0641\u064a \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644",login_error_google_failed:"\u0641\u0634\u0644 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0639\u0628\u0631 Google",login_
2info_verification_resent:"\ud83d\udce7 \u062a\u0645 \u0625\u0639\u0627\u062f\u0629 \u0625\u0631\u0633\u0627\u0644 \u0631\u0627\u0628\u0637 \u0627\u0644\u062a\u062d\u0642\u0642. \u062a\u062d\u0642\u0642 \u0645\u0646 \u0645\u062c\u0644\u062f \u0627\u0644\u0633\u0628\u0627\u0645 \u0625\u0630\u0627 \u0644\u0645 \u062a\u062c\u062f\u0647.",profile_modal_title:"\u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a",profile_loading:"\u062c\u0627\u0631\u0650 \u062a\u062d\u0645\u064a\u0644 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645...",profile_user_not_found:"\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f",profile_user_not_found_desc:"\u0627\u0644\u0631\u0627\u0628\u0637 \u0627\u0644\u0630\u064a \u062a\u0628\u062d\u062b \u0639\u0646\u0647 \u063a\u064a\u0631 \u0635\u062d\u064a\u062d \u0623\u0648 \u0623\u0646 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0642\u062f \u062a\u0645 \u062d\u0630\u0641\u0647.",profile_go_back:"\u0627\u0644\u0639\u0648\u062f\u0629 \u0644\u0644\u062e\u0644\u0641",profile_logout_confirm_title:"\u062a\u0623\u0643\u064a\u062f \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062e\u0631\u0648\u062c",profile_logout_confirm_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u062d\u0633\u0627\u0628\u0643\u061f",profile_logout_confirm_btn:"\u0646\u0639\u0645\u060c \u062e\u0631\u0648\u062c",profile_logout_error_message:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062e\u0631\u0648\u062c",profile_copy_link:"\u0646\u0633\u062e \u0631\u0627\u0628\u0637 \u0627\u0644\u0628\u0631\u0648\u0641\u0627\u064a\u0644",profile_copied_title:"\u062a\u0645 \u0627\u0644\u0646\u0633\u062e",profile_copy_link_success:"\u062a\u0645 \u0646\u0633\u062e \u0631\u0627\u0628\u0637 \u0627\u0644\u0628\u0631\u0648\u0641\u0627\u064a\u0644",profile_copy_user_id:"\u0646\u0633\u062e \u0645\u0639\u0631\u0641 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 (ID)",profile_copy_id_success:"\u062a\u0645 \u0646\u0633\u062e \u0645\u0639\u0631\u0641 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0628\u0646\u062c\u0627\u062d",profile_view_user_info:"\u0639\u0631\u0636 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",profile_view_activity:"\u0639\u0631\u0636 \u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a \u0627\u0644\u0646\u0634\u0627\u0637",profile_user_notes:"\u0645\u0644\u0627\u062d\u0638\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",profile_add_note:"\u0625\u0636\u0627\u0641\u0629 \u0645\u0644\u0627\u062d\u0638\u0629",profile_edit_note:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629",profile_delete_note:"\u062d\u0630\u0641 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629",profile_note_placeholder:"\u0627\u0643\u062a\u0628 \u0645\u0644\u0627\u062d\u0638\u0629 \u062f\u0627\u062e\u0644\u064a\u0629 \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645...",profile_note_save:"\u062d\u0641\u0638 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629",profile_note_cancel:"\u0625\u0644\u063a\u0627\u0621",profile_no_notes:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0644\u0627\u062d\u0638\u0627\u062a \u0644\u0647\u0630\u0627 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0628\u0639\u062f",profile_notes_load_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0627\u062a",profile_note_added:"\u062a\u0645\u062a \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629 \u0628\u0646\u062c\u0627\u062d",profile_note_updated:"\u062a\u0645 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629 \u0628\u0646\u062c\u0627\u062d",profile_note_deleted:"\u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629 \u0628\u0646\u062c\u0627\u062d",profile_note_save_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062d\u0641\u0638 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629",profile_note_delete_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062d\u0630\u0641 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629",profile_note_empty_error:"\u064a\u0631\u062c\u0649 \u0643\u062a\u0627\u0628\u0629 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629 \u0642\u0628\u0644 \u0627\u0644\u062d\u0641\u0638",profile_note_permission_error:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0643 \u0635\u0644\u0627\u062d\u064a\u0629 \u0644\u0639\u0631\u0636 \u0623\u0648 \u0625\u062f\u0627\u0631\u0629 \u0645\u0644\u0627\u062d\u0638\u0627\u062a \u0647\u0630\u0627 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",profile_note_delete_confirm_title:"\u062d\u0630\u0641 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629",profile_note_delete_confirm_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u062d\u0630\u0641 \u0647\u0630\u0647 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629\u061f \u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0644\u062a\u0631\u0627\u062c\u0639 \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0625\u062c\u0631\u0627\u0621.",profile_note_author:"\u0627\u0644\u0643\u0627\u062a\u0628",profile_note_updated_at:"\u0622\u062e\u0631 \u062a\u062d\u062f\u064a\u062b",profile_note_type_positive:"\u0625\u064a\u062c\u0627\u0628\u064a\u0629",profile_note_type_negative:"\u0633\u0644\u0628\u064a\u0629",profile_note_type_neutral:"\u0645\u062d\u0627\u064a\u062f\u0629",profile_can_participate_events:"\u064a\u0645\u0643\u0646\u0647 \u0627\u0644\u0645\u0634\u0627\u0631\u0643\u0629 \u0641\u064a \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",profile_can_participate_events_desc:"\u064a\u062a\u062d\u0643\u0645 \u0641\u064a \u0627\u0644\u0633\u0645\u0627\u062d \u0644\u0647\u0630\u0627 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0628\u0627\u0644\u0645\u0634\u0627\u0631\u0643\u0629 \u0641\u064a \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",profile_cannot_participate_events:"\u0644\u0627 \u064a\u0645\u0643\u0646\u0647 \u0627\u0644\u0645\u0634\u0627\u0631\u0643\u0629 \u0641\u064a \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",profile_allow_image:"\u0627\u0644\u0633\u0645\u0627\u062d \u0628\u0627\u0644\u0635\u0648\u0631\u0629",profile_ban_image:"\u062d\u0638\u0631 \u0627\u0644\u0635\u0648\u0631\u0629",profile_allow_cover:"\u0627\u0644\u0633\u0645\u0627\u062d \u0628\u0627\u0644\u063a\u0644\u0627\u0641",profile_ban_cover:"\u062d\u0638\u0631 \u0627\u0644\u063a\u0644\u0627\u0641",profile_send_warning:"\u0625\u0631\u0633\u0627\u0644 \u062a\u062d\u0630\u064a\u0631",create_profile_header:"\u
20625\u0646\u0634\u0627\u0621 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a",create_profile_uploading_image:"\u062c\u0627\u0631\u064a \u0631\u0641\u0639 \u0627\u0644\u0635\u0648\u0631\u0629...",create_profile_creating_profile:"\u062c\u0627\u0631\u064a \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a...",create_profile_wait_message:"\u064a\u0631\u062c\u0649 \u0627\u0644\u0627\u0646\u062a\u0638\u0627\u0631 \u0648\u0639\u062f\u0645 \u0625\u063a\u0644\u0627\u0642 \u0627\u0644\u0635\u0641\u062d\u0629",create_profile_timeout_warning:"\u26a0\ufe0f \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0637\u064a\u0621 \u2014 \u064a\u0645\u0643\u0646\u0643 \u0627\u0644\u0645\u062a\u0627\u0628\u0639\u0629 \u0648\u062a\u063a\u064a\u064a\u0631 \u0628\u064a\u0627\u0646\u0627\u062a\u0643 \u0644\u0627\u062d\u0642\u0627\u064b \u0645\u0646 \u0625\u0639\u062f\u0627\u062f\u0627\u062a \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a",create_profile_image_alt:"\u0635\u0648\u0631\u0629 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a",create_profile_name_placeholder:"\u0627\u0644\u0627\u0633\u0645",create_profile_finding_tag:"\u062c\u0627\u0631\u064a \u0625\u064a\u062c\u0627\u062f \u0645\u0639\u0631\u0641 \u0645\u062a\u0627\u062d...",create_profile_tag_placeholder:"\u0645\u0639\u0631\u0641 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",create_profile_refresh_tag_title:"\u062a\u0648\u0644\u064a\u062f \u0645\u0639\u0631\u0641 \u0639\u0634\u0648\u0627\u0626\u064a \u0622\u062e\u0631",create_profile_tag_helper:"\u064a\u0645\u0643\u0646\u0643 \u062a\u063a\u064a\u064a\u0631\u0647 \u0623\u0648 \u0627\u0644\u0625\u0628\u0642\u0627\u0621 \u0639\u0644\u0649 \u0627\u0644\u0645\u0639\u0631\u0641 \u0627\u0644\u0645\u0642\u062a\u0631\u062d \u2014 \u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 \u0641\u0631\u064a\u062f\u064b\u0627 (3 \u0623\u062d\u0631\u0641 \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644)",create_profile_description_placeholder:"\u0627\u0643\u062a\u0628 \u0648\u0635\u0641\u0627\u064b \u0645\u062e\u062a\u0635\u0631\u0627\u064b \u0639\u0646\u0643",create_profile_checking:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0642\u0642...",create_profile_saving:"\u062c\u0627\u0631\u064a \u0627\u0644\u062d\u0641\u0638...",create_profile_create_button:"\u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a",create_profile_crop_title:"\u0642\u0635 \u0627\u0644\u0635\u0648\u0631\u0629",create_profile_crop_desc:"\u062d\u0631\u0643 \u0627\u0644\u0635\u0648\u0631\u0629 \u0648\u0642\u0645 \u0628\u062a\u0643\u0628\u064a\u0631\u0647\u0627 \u0644\u062a\u062d\u062f\u064a\u062f \u0627\u0644\u0645\u0646\u0637\u0642\u0629 \u0627\u0644\u0645\u0631\u063a\u0648\u0628\u0629",create_profile_zoom_label:"\u062a\u0643\u0628\u064a\u0631",create_profile_crop_cancel:"\u0625\u0644\u063a\u0627\u0621 \u0642\u0635 \u0627\u0644\u0635\u0648\u0631\u0629",create_profile_crop_apply:"\u062a\u0623\u0643\u064a\u062f \u0642\u0635 \u0627\u0644\u0635\u0648\u0631\u0629",create_profile_signin_wait_title:"\u062c\u0627\u0631\u064a \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644",create_profile_signin_wait_message:"\u064a\u0631\u062c\u0649 \u0627\u0644\u0627\u0646\u062a\u0638\u0627\u0631 \u062d\u062a\u0649 \u064a\u0643\u062a\u0645\u0644 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0625\u0644\u0649 \u0642\u0627\u0639\u062f\u0629 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u062b\u0645 \u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649",profile_ban_publish:"\u062d\u0638\u0631 \u0627\u0644\u0646\u0634\u0631",profile_ban_comment:"\u062d\u0638\u0631 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",profile_ban_reaction:"\u062d\u0638\u0631 \u0627\u0644\u062a\u0641\u0627\u0639\u0644",profile_ban_message:"\u062d\u0638\u0631 \u0627\u0644\u0631\u0633\u0627\u0626\u0644",profile_ban_permanent:"\u062d\u0638\u0631 \u0639\u0627\u0645",profile_moderation_actions:"\u0625\u062c\u0631\u0627\u0621\u0627\u062a \u0627\u0644\u062d\u0638\u0631",profile_unban_publish:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u0646\u0634\u0631",profile_unban_comment:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",profile_unban_reaction:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u062a\u0641\u0627\u0639\u0644",profile_unban_message:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u0631\u0633\u0627\u0626\u0644",profile_unban_permanent:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062d\u0638\u0631 \u0627\u0644\u0639\u0627\u0645",profile_grant_title:"\u0645\u0646\u062d \u0644\u0642\u0628",profile_grant_badge:"\u0645\u0646\u062d \u0634\u0627\u0631\u0629",profile_add_to_staff:"\u
20625\u0636\u0627\u0641\u0629 \u0625\u0644\u0649 \u0627\u0644\u0637\u0627\u0642\u0645",profile_delete_title:"\u062d\u0630\u0641 \u0644\u0642\u0628",profile_delete_badge:"\u062d\u0630\u0641 \u0634\u0627\u0631\u0629",profile_choose_frame:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0637\u0627\u0631",profile_edit_profile:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a",profile_follow:"\u0645\u062a\u0627\u0628\u0639\u0629",profile_unfollow:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0645\u062a\u0627\u0628\u0639\u0629",profile_follows_you:"\u064a\u062a\u0627\u0628\u0639\u0643",profile_join_date:"\u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0627\u0646\u0636\u0645\u0627\u0645",profile_followers:"\u0627\u0644\u0645\u062a\u0627\u0628\u0639\u0648\u0646",profile_following:"\u064a\u064f\u062a\u0627\u0628\u0650\u0639",profile_insufficient_balance:"\u0631\u0635\u064a\u062f\u0643 \u063a\u064a\u0631 \u0643\u0627\u0641\u064d \u0644\u0625\u062a\u0645\u0627\u0645 \u0627\u0644\u0639\u0645\u0644\u064a\u0629",profile_tab_latest:"\u0622\u062e\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a",profile_tab_lists:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a",profile_loading_more:"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0632\u064a\u062f...",profile_loading_posts:"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a...",profile_no_posts:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u062d\u062a\u0649 \u0627\u0644\u0622\u0646",profile_list_untitled:"\u0642\u0627\u0626\u0645\u0629 \u0628\u062f\u0648\u0646 \u0639\u0646\u0648\u0627\u0646",profile_post_count_unit:"\u0645\u0646\u0634\u0648\u0631",profile_no_lists:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0642\u0648\u0627\u0626\u0645 \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u062d\u062a\u0649 \u0627\u0644\u0622\u0646",profile_no_lists_hint:"\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u0644\u0632\u0631 + \u0644\u0625\u0646\u0634\u0627\u0621 \u0642\u0627\u0626\u0645\u062a\u0643 \u0627\u0644\u0623\u0648\u0644\u0649",profile_cancel:"\u0625\u0644\u063a\u0627\u0621",profile_save:"\u062d\u0641\u0638",profile_delete:"\u062d\u0630\u0641",profile_close:"\u0625\u063a\u0644\u0627\u0642",profile_error_title:"\u062e\u0637\u0623",profile_success_title:"\u062a\u0645 \u0628\u0646\u062c\u0627\u062d",profile_updated_title:"\u062a\u0645 \u0627\u0644\u062a\u062d\u062f\u064a\u062b",profile_sent_title:"\u062a\u0645 \u0627\u0644\u0625\u0631\u0633\u0627\u0644",profile_reported_title:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a",profile_unknown:"\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641",profile_this_user:"\u0647\u0630\u0627 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",profile_send_btn:"\u0625\u0631\u0633\u0627\u0644",profile_update_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0641\u064a \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a",profile_image_banned:"\u062a\u0645 \u062d\u0638\u0631 \u0635\u0648\u0631\u0629 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",profile_image_allowed:"\u062a\u0645 \u0627\u0644\u0633\u0645\u0627\u062d \u0628\u0635\u0648\u0631\u0629 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",profile_cover_banned:"\u062a\u0645 \u062d\u0638\u0631 \u063a\u0644\u0627\u0641 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",profile_cover_allowed:"\u062a\u0645 \u0627\u0644\u0633\u0645\u0627\u062d \u0628\u063a\u0644\u0627\u0641 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",profile_send_warning_title:"\u0625\u0631\u0633\u0627\u0644 \u062a\u062d\u0630\u064a\u0631",profile_send_warning_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0631\u0633\u0627\u0644 \u062a\u062d\u0630\u064a\u0631 \u0625\u0644\u0649 {name}\u061f",profile_warning_sent_success:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062a\u062d\u0630\u064a\u0631 \u0628\u0646\u062c\u0627\u062d",profile_warning_sent_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062a\u062d\u0630\u064a\u0631",profile_already_reported_image:"\u0644\u0642\u062f \u0642\u0645\u062a \u0628\u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0647 \u0627\u0644\u0635\u0648\u0631\u0629 \u0645\u0633\u0628\u0642\u0627\u064b",profile_already_reported_cover:"\u0644\u0642\u062f \u0642\u0645\u062a \u0628\u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u063a\u0644\u0627\u0641 \u0645\u0633\u0628\u0642\u0627\u064b",profile_report_success:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0628\u0646\u062c\u0627\u062d",profile_report_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0641\u064a \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0625\u0628\u0644\u0627\u063a",profile_title_name_required:"\u064a\u062c\u0628 \u0625\u062f\u062e\u0627\u0644 \u0627\u0633\u0645 \u0627\u0644\u0644\u0642\u0628",profile_title_granted_success:"\u062a\u0645 \u0645\u0646\u062d \u0627\u0644\u0644\u0642\u0628 \u0628\u0646\u062c\u0627\u062d",profile_title_granted_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0641\u064a \u0645\u0646\u062d \u0627\u0644\u0644\u0642\u0628",profile_title_deleted_success:"\u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0644\u0642\u0628 \u0628\u0646\u062c\u0627\u062d",profile_title_deleted_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0641\u064a \u062d\u0630\u0641 \u0627\u0644\u0644\u0642\u0628",profile_title_select_required:"\u064a\u0631\u062c\u0649 \u0627\u062e\u062a\u064a\u0627\u0631 \u0644\u0642\u0628 \u0644\u062d\u0630\u0641\u0647",profile_badge_select_required:"\u064a\u0631\u062c\u0649 \u0627\u062e\u062a\u064a\u0627\u0631 \u0634\u0627\u0631\u0629",profile_badge_name_required:"\u064a\u062c\u0628 \u0625\u062f\u062e\u0627\u0644 \u0627\u0633\u0645 \u0627\u0644\u0634\u0627\u0631\u0629",profile_badge_granted_success:"\u062a\u0645 \u0645\u0646\u062d \u0634\u0647\u0627\u062f\u0629 \u0627\u0644\u0625\u0645\u062a\u064a\u0627\u0632 \u0628\u0646\u062c\u0627\u062d",profile_badge_granted_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0641\u064a \u0645\u0646\u062d \u0627\u0644\u0634\u0627\u0631\u0629",profile_badge_deleted_success:"\u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0634\u0627\u0631\u0629 \u0628\u0646\u062c\u0627\u062d",profile_badge_deleted_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0641\u064a \u062d\u0630\u0641 \u0627\u0644\u0634\u0627\u0631\u0629",profile_staff_added_success:"\u062a\u0645 \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0625\u0644\u0649 \u0627\u0644\u0637\u0627\u0642\u0645 \u0628\u0631\u062a\u0628\u0629 \u063a\u064a\u0631 \u0645\u062e\u0635\u0635",profile_staff_added_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0641\u064a \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0625\u0644\u0649 \u0627\u0644\u0637\u0627\u0642\u0645",profile_ban_save_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062d\u0641\u0638 \u0627\u0644\u062d\u0638\u0631",profile_ban_success:"\u062a\u0645 \u062a\u0637\u0628\u064a\u0642 {banLabel} \u0628\u0646\u062c\u0627\u062d",profile_unban_success:"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 {banLabel} \u0628\u0646\u062c\u0627\u062d",profile_ban_generic:"\u0627\u0644\u062d\u0638\u0631",profile_grant_title_dialog_heading:"\u0645\u0646\u062d \u0644\u0642\u0628",profile_title_name_label:"\u0625\u0633\u0645 \u0627\u0644\u0644\u0642\u0628",profile_title_name_placeholder:"\u0623\u062f\u062e\u0644 \u0627\u0633\u0645 \u0627\u0644\u0644\u0642\u0628",profile_duration_label:"\u0645\u062f\u0629 \u0627\u0644\u0644\u0642\u0628",profile_duration_1day:"\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",profile_duration_3days:"3 \u0623\u064a\u0627\u0645",profile_duration_month:"\u0634\u0647\u0631",profile_duration_permanent:"\u062f\u0627\u0626\u0645",profile_bg_color_label:"\u0644\u0648\u0646 \u0627\u0644\u062e\u0644\u0641\u064a\u0629",profile_text_color_label:"\u0644\u0648\u0646 \u0627\u0644\u0646\u0635",profile_preview_label:"\u0645\u0639\u0627\u064a\u0646\u0629",profile_preview_placeholder:"\u0645\u0639\u0627\u064a\u0646\u0629 \u0627\u0644\u0644\u0642\u0628",profile_delete_title_dialog_heading:"\u062d\u0630\u0641 \u0644\u0642\u0628",profile_select_title_to_delete:"\u0627\u062e\u062a\u0631 \u0627\u0644\u0644\u0642\u0628 \u0644\u0644\u062d\u0630\u0641",profile_select_title_placeholder:"-- \u0627\u062e\u062a\u0631 \u0644\u0642\u0628 --",profile_grant_badge_dialog_heading:"\u0645\u0646\u062d \u0634\u0627\u0631\u0629",profile_badge_name_label:"\u0627\u0633\u0645 \u0627\u0644\u0634\u0627\u0631\u0629",profile_badge_name_placeholder:"\u0623\u062f\u062e\u0644 \u0627\u0633\u0645 \u0627\u0644\u0634\u0627\u0631\u0629",profile_select_badge_label:"\u0627\u062e\u062a\u0631 \u0634\u0647\u0627\u062f\u0629",profile_delete_badge_dialog_heading:"\u062d\u0630\u0641 \u0634\u0627\u0631\u0629",profile_select_badge_to_delete:"\u0627\u062e\u062a\u0631 \u0627\u0644\u0634\u0627\u0631\u0629 \u0644\u0644\u062d\u0630\u0641",profile_select_badge_placeholder:"-- \u0627\u062e\u062a\u0631 \u0634\u0647\u0627\u062f\u0629 --",profile_ban_target_label:"\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u0645\u0633\u062a\u0647\u062f\u0641",profile_ban_type_label:"\u0646\u0648\u0639 \u0627\u0644\u062d\u0638\u0631",profile_ban_duration_label:"\u0645\u062f\u0629 \u0627\u0644\u062d\u0638\u0631",profile_ban_temporary:"\u0645\u0624\u0642\u062a",profile_ban_amount_label:"\u0627\u0644\u0639\u062f\u062f",profile_ban_unit_label:"\u0627\u0644\u0648\u062d\u062f\u0629",profile_ban_unit_days:"\u0623\u064a\u0627\u0645",profile_ban_unit_months:"\u0634\u0647\u0648\u0631",profile_ban_reason_label:"\u0627\u0644\u0633\u0628\u0628",profile_ban_reason_placeholder:"\u0627\u0643\u062a\u0628 \u0633\u0628\u0628 \u0627\u0644\u062d\u0638\u0631",profile_unban_confirm_text:"\u0633\u064a\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 {banLabel} \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645.",profile_ban_current_reason:"\u0627\u0644\u0633\u0628\u0628 \u0627\u0644\u062d\u0627\u0644\u064a",profile_unban_confirm_btn:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062d\u0638\u0631",profile_unban_dialog_heading:"\u0625\u0644\u063a\u0627\u0621 {banLabel}",profile_user_info_heading:"\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",profile_info_name:"\u0627\u0644\u0627\u0633\u0645",profile_info_username:"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",profile_info_email:"\u0627\u0644\u0625\u064a\u0645\u064a\u0644",profile_info_currency:"\u0639\u062f\u062f \u0627\u0644\u0639\u0645\u0644\u0627\u062a",profile_info_currency_unit:"\u0639\u0645\u0644\u0629",profile_info_points:"\u0627\u0644\u0646\u0642\u0627\u0637",profile_info_points_unit:"\u0646\u0642\u0637\u0629",profile_info_violations:"\u0639\u062f\u062f \u0627\u0644\u0645\u062e\u0627\u0644\u0641\u0627\u062a",profile_info_violations_unit:"\u0645\u062e\u0627\u0644\u0641\u0629",profile_info_saraha_sent:"\u0635\u0627\u0631\u062d\u0646\u064a \u0627\u0644\u0645\u0631\u0633\u0644\u0629",profile_info_messages_unit:"\u0631\u0633\u0627\u0626\u0644",profile_info_team:"\u0627\u0644\u0641\u0631\u064a\u0642",profile_info_no_team:"\u0644\u0627 \u064a\u0646\u062a\u0645\u064a \u0644\u0641\u0631\u064a\u0642",profile_info_morning_streak:"Streak \u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0635\u0628\u0627\u062d",profile_info_evening_streak:"Streak \u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0645\u0633\u0627\u0621",profile_info_tasbeeh_streak:"Streak \u0627\u0644\u062a\u0633\u0627\u0628\u064a\u062d",profile_info_days_unit:"\u064a\u0648\u0645",profile_info_join_date:"\u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0627\u0646\u0636\u0645\u0627\u0645",profile_info_unavailable:"\u063a\u064a\u0631 \u0645\u062a\u0648\u0641\u0631",profile_back_tooltip:"\u0631\u062c\u0648\u0639",profile_logout_tooltip:"\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062e\u0631\u0648\u062c",profile_options_tooltip:"\u062e\u064a\u0627\u0631\u0627\u062a",profile_drag_list_tooltip:"\u062a\u062d\u0631\u064a\u0643 \u0627\u0644\u0642\u0627\u0626\u0645\u0629",profile_coins_sent_to_ar:"\u0623\u0631\u0633\u0644\u062a \u0639\u0645\u0644\u0627\u062a \u0625\u0644\u0649: {name}",profile_coins_sent_to_ltr:"{name} :\u0623\u0631\u0633\u0644\u062a \u0639\u0645\u0644\u0627\u062a \u0625\u0644\u0649",profile_coins_received_from_ar:"\u062d\u0635\u0644\u062a \u0639\u0644\u0649 \u0639\u0645\u0644\u0627\u062a \u0645\u0646: {name}",profile_coins_received_from_ltr:"{name} :\u062d\u0635\u0644\u062a \u0639\u0644\u0649 \u0639\u0645\u0644\u0627\u062a \u0645\u0646",home_tab_following:"\u0627\u0644\u0645\u062a\u0627\u0628\u0639\u064a\u0646",home_tab_events:"\u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",home_tab_latest:"\u0623\u062e\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a",home_loading_posts:"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a...",home_loading_more:"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0632\u064a\u062f...",home_no_events:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0641\u0639\u0627\u0644\u064a\u0627\u062a",home_no_following_posts:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0645\u0646 \u0627\u0644\u0645\u062a\u0627\u0628\u064e\u0639\u064a\u0646",home_end_of_feed:"\u0648\u0635\u0644\u062a \u0644\u0646\u0647\u0627\u064a\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a",home_status_fab_tooltip:"\u0645\u0627\u0630\u0627 \u064a\u062d\u062f\u062b \u0627\u0644\u0622\u0646\u061f",home_search:"\u0628\u062d\u062b",home_filter_all:"\u0627\u0644\u0643\u0644",home_filter_articles:"\u0645\u0646\u0634\u0648\u0631\u0627\u062a",home_filter_polls:"\u0627\u0633\u062a\u0637\u0644\u0627\u0639\u0627\u062a",home_filter_quizzes:"\u0627\u062e\u062a\u0628\u0627\u0631\u0627\u062a",home_filter_highlights:"\u0623\u0628\u0631\u0632 \u0627\u0644\u0641\u0627\u0626\u0632\u064a\u0646",home_no_filtered_posts:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0645\u0646 \u0647\u0630\u0627 \u0627\u0644\u0646\u0648\u0639 \u062d\u0627\u0644\u064a\u0627\u064b",postcard_ad_cancelled:"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646",postcard_already_reported_message:"\u0644\u0642\u062f \u0642\u0645\u062a \u0628\u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0642\u0628\u0644",postcard_already_reported_title:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0645\u0633\u0628\u0642\u0627\u064b",postcard_banned_reaction_message:"\u0644\u062f\u064a\u0643 \u062d\u0638\u0631 \u0639\u0644\u0649 \u0627\u0644\u062a\u0641\u0627\u0639\u0644 \u0648\u0644\u0627 \u064a\u0645\u0643\u0646\u0643 \u0625\u0631\u0633\u0627\u0644 \u0631\u062f\u0648\u062f \u0641\u0639\u0644.",postcard_banned_title:"\u0645\u062d\u0638\u0648\u0631",postcard_block:"\u062d\u0638\u0631",postcard_block_post_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u062d\u0638\u0631 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0644\u0645\u062e\u0627\u0644\u0641\u062a\u0647 \u0642\u0648\u0627\u0646\u064a\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642\u061f",postcard_block_post_title:"\u062d\u0638\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_blocked_message:"\u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u062d\u0638\u0648\u0631 - \u0645\u062e\u0627\u0644\u0641\u0629 \u0644\u0642\u0648\u0627\u0646\u064a\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642 \ud83d\udeab",postcard_cancel:"\u0625\u0644\u063a\u0627\u0621",postcard_cancel_ad:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646",postcard_cancel_ad_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0644\u063a\u0627\u0621 \u062c\u0639\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0625\u0639\u0644\u0627\u0646\u0627\u064b\u061f",postcard_cancel_ad_title:"\u0625\u0644\u063a\u0627\u0
2621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646",postcard_cannot_edit_message:"\u0644\u0627 \u064a\u0645\u0643\u0646 \u062a\u0639\u062f\u064a\u0644 \u0645\u0646\u0634\u0648\u0631 \u0645\u062d\u0638\u0648\u0631 \u0645\u0646 \u0642\u0628\u0644 \u0627\u0644\u0625\u062f\u0627\u0631\u0629",postcard_cannot_edit_title:"\u0644\u0627 \u064a\u0645\u0643\u0646 \u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_close:"\u0625\u063a\u0644\u0627\u0642",postcard_coin_alt:"coin",postcard_comments:"\u062a\u0639\u0644\u064a\u0642\u0627\u062a",postcard_convert_to_ad:"\u062a\u062d\u0648\u064a\u0644 \u0644\u0625\u0639\u0644\u0627\u0646",postcard_convert_to_ad_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062c\u0639\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0625\u0639\u0644\u0627\u0646\u0627\u064b \u0645\u0645\u064a\u0632\u0627\u064b\u061f",postcard_convert_to_ad_title:"\u062a\u062d\u0648\u064a\u0644 \u0644\u0625\u0639\u0644\u0627\u0646",postcard_converted_to_ad:"\u062a\u0645 \u062a\u062d\u0648\u064a\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0644\u0625\u0639\u0644\u0627\u0646",postcard_copied_title:"\u062a\u0645 \u0627\u0644\u0646\u0633\u062e",postcard_copy_link_failed:"\u0641\u0634\u0644 \u0646\u0633\u062e \u0627\u0644\u0631\u0627\u0628\u0637",postcard_cover_alt:"Cover",postcard_delete:"\u062d\u0630\u0641",postcard_delete_post_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f",postcard_delete_post_title:"\u062d\u0630\u0641 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_done:"\u062a\u0645",postcard_error_title:"\u062e\u0637\u0623",postcard_frame_alt:"Frame",postcard_hide:"\u062d\u062c\u0628",postcard_hide_post_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u062d\u062c\u0628 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f",postcard_hide_post_title:"\u062d\u062c\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_ok:"\u062d\u0633\u0646\u0627\u064b",postcard_pin:"\u062a\u062b\u0628\u064a\u062a",postcard_pin_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062a\u062b\u0628\u064a\u062a \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f",postcard_pin_title:"\u062a\u062b\u0628\u064a\u062a \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_post_blocked:"\u062a\u0645 \u062d\u0638\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_post_link_copied:"\u062a\u0645 \u0646\u0633\u062e \u0631\u0627\u0628\u0637 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0628\u0646\u062c\u0627\u062d",postcard_post_pinned:"\u062a\u0645 \u062a\u062b\u0628\u064a\u062a \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_post_removed_from_saved:"\u062a\u0645 \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0645\u062d\u0641\u0648\u0638\u0627\u062a",postcard_post_saved:"\u062a\u0645 \u062d\u0641\u0638 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_post_title:"\u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_post_unblocked:"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_post_unpinned:"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u062a\u062b\u0628\u064a\u062a \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_profile_image_alt:"\u0635\u0648\u0631\u0629 \u0627\u0644\u0628\u0631\u0648\u0641\u0627\u064a\u0644",postcard_reaction_angry:"\u0623\u063a\u0636\u0628\u0646\u064a",postcard_reaction_care:"\u0623\u062f\u0639\u0645\u0647",postcard_reaction_haha:"\u0647\u0627\u0647\u0627\u0647\u0627",postcard_reaction_like:"\u0623\u0639\u062c\u0628\u0646\u064a",postcard_reaction_love:"\u0623\u062d\u0628\u0628\u062a\u0647",postcard_reaction_sad:"\u0623\u062d\u0632\u0646\u0646\u064a",postcard_reaction_wow:"\u0648\u0627\u0627\u0648",postcard_reactions_closed_message:"\u0635\u0627\u062d\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0642\u062f \u0623\u063a\u0644\u0642 \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_reactions_closed_title:"\u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0645\u063a\u0644\u0642\u0629",postcard_read_more:"\u0627\u0642\u0631\u0623 \u0627\u0644\u0645\u0632\u064a\u062f",postcard_remove:"\u0625\u0632\u0627\u0644\u0629",postcard_remove_from_events_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0632\u0627\u0644\u0629 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a\u061f",postcard_remove_from_events_title:"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",postcard_remove_from_list_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0631\u063a\u0628\u062a\u0643 \u0641\u064a \u0625\u0632\u0627\u0644\u0629 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629\u
2061f",postcard_remove_from_list_title:"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629",postcard_removed_from_events_success:"\u062a\u0645 \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",postcard_removed_from_list_message:"\u062a\u0645\u062a \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0628\u0646\u062c\u0627\u062d! \u0633\u064a\u062a\u0645 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0635\u0641\u062d\u0629.",postcard_removed_title:"\u062a\u0645\u062a \u0627\u0644\u0625\u0632\u0627\u0644\u0629",postcard_report:"\u0625\u0628\u0644\u0627\u063a",postcard_report_post_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f",postcard_report_post_title:"\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_reported_message:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0628\u0646\u062c\u0627\u062d",postcard_reported_title:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a",postcard_set:"\u062a\u0639\u064a\u064a\u0646",postcard_set_as_event_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062a\u0639\u064a\u064a\u0646 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0643\u0641\u0639\u0627\u0644\u064a\u0629\u061f",postcard_set_as_event_success:"\u062a\u0645 \u062a\u0639\u064a\u064a\u0646 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0643\u0641\u0639\u0627\u0644\u064a\u0629",postcard_set_as_event_title:"\u062a\u0639\u064a\u064a\u0646 \u0643\u0645\u0646\u0634\u0648\u0631 \u0641\u0639\u0627\u0644\u064a\u0629",postcard_share_text:"\u0634\u0627\u0647\u062f \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_show_more:"\u0639\u0631\u0636 \u0627\u0644\u0645\u0632\u064a\u062f",postcard_surah_label:"\u0633\u0648\u0631\u0629",postcard_unblock:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062d\u0638\u0631",postcard_unblock_post_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f",postcard_unblock_post_title:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",postcard_unhide:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062d\u062c\u0628",postcard_unhide_post_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0625\u0644\u063a\u0627\u0621 \u062d\u062c\u0628 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f",postcard_unknown_user:"\u0645\u0633\u062a\u062e\u062f\u0645 \u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641",postcard_unpin:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062a\u062b\u0628\u064a\u062a",postcard_unpin_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0644\u063a\u0627\u0621 \u062a\u062b\u0628\u064a\u062a \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f",postcard_unpin_title:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062a\u062b\u0628\u064a\u062a",postcard_verified_alt:"verified",postcard_video_link_copied:"\u062a\u0645 \u0646\u0633\u062e \u0631\u0627\u0628\u0637 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0628\u0646\u062c\u0627\u062d",postcard_viewing_as_moderator:"\u0623\u0646\u062a \u062a\u0631\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u062d\u062a\u0648\u0649 \u0644\u0623\u0646\u0643 \u0645\u0633\u0624\u0648\u0644",postcard_yes:"\u0646\u0639\u0645",unified_post_menu_done:"\u062a\u0645",unified_post_menu_error:"\u062e\u0637\u0623",unified_post_menu_warning:"\u062a\u0646\u0628\u064a\u0647",unified_post_menu_cancel:"\u0625\u0644\u063a\u0627\u0621",unified_post_menu_not_available:"\u063a\u064a\u0631 \u0645\u062a\u0627\u062d",unified_post_menu_copied_title:"\u062a\u0645 \u0627\u0644\u0646\u0633\u062e",unified_post_menu_reported_title:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a",unified_post_menu_edit_post:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_save_post:"\u062d\u0641\u0638 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_remove_from_saved:"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0645\u062d\u0641\u0648\u0638\u0627\u062a",unified_post_menu_post_saved:"\u062a\u0645 \u062d\u0641\u0638 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_post_removed_from_saved:"\u062a\u0645\u062a \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0645\u062d\u0641\u0648\u0638\u0627\u062a",unified_post_menu_save_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062d\u0641\u0638 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_copy_link:"\u0646\u0633\u062e \u0627\u0644\u0631\u0627\u0628\u0637",unified_post_menu_link_copied:"\u062a\u0645 \u0646\u0633\u062e \u0627\u0644\u0631\u0627\u0628\u0637",unified_post_menu_copy_link_failed:"\u0641\u0634\u0644 \u0646\u0633\u062e \u0627\u0644\u0631\u0627\u0628\u0637",unified_post_menu_add_to_list:"\u0625\u0636\u0627\u0641\u0629 \u0625\u0644\u0649 \u0642\u0627\u0626\u0645\u0629",unified_post_menu_remove_from_list:"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629",unified_post_menu_add_to_list_unavailable:"\u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0625\u0644\u0649 \u0642\u0627\u0626\u0645\u0629 \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0629 \u062d\u0627\u0644\u064a\u0627\u064b",unified_post_menu_remove_from_list_unavailable:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0629 \u062d\u0627\u0644\u064a\u0627\u064b",unified_post_menu_open_comments:"\u0641\u062a\u062d \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",unified_post_menu_close_comments:"\u0625\u063a\u0644\u0627\u0642 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",unified_post_menu_enable_comments:"\u0627\u0644\u0633\u0645\u0627\u062d \u0628\u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",unified_post_menu_disable_comments:"\u0645\u0646\u0639 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",unified_post_menu_toggle_comments_message:"\u0647\u0644 \u062a\u0631\u064a\u062f {action} \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f",unified_post_menu_comments_opened:"\u062a\u0645 \u0627\u0644\u0633\u0645\u0627\u062d \u0628\u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",unified_post_menu_comments_closed:"\u062a\u0645 \u0625\u063a\u0644\u0627\u0642 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",unified_post_menu_toggle_comments_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",unified_post_menu_open_reactions:"\u0641\u062a\u062d \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a",unified_post_menu_close_reactions:"\u0625\u063a\u0644\u0627\u0642 \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a",unified_post_menu_enable_reactions:"\u0627\u0644\u0633\u0645\u0627\u062d \u0628\u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a",unified_post_menu_disable_reactions:"\u0645\u0646\u0639 \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a",unified_post_menu_toggle_reactions_message:"\u0647\u0644 \u062a\u0631\u064a\u062f {action} \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f",unified_post_menu_reactions_opened:"\u062a\u0645 \u0627\u0644\u0633\u0645\u0627\u062d \u0628\u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a",unified_post_menu_reactions_closed:"\u062a\u0645 \u0625\u063a\u0644\u0627\u0642 \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a",unified_post_menu_toggle_reactions_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a",unified_post_menu_pin_post:"\u062a\u062b\u0628\u064a\u062a \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_unpin:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062a\u062b\u0628\u064a\u062a",unified_post_menu_pin_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062a\u062b\u0628\u064a\u062a \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0641\u064a \u0628\u0631\u0648\u0641\u0627\u064a\u0644\u0643\u061f",unified_post_menu_unpin_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062a\u062b\u0628\u064a\u062a\u061f",unified_post_menu_post_pinned:"\u062a\u0645 \u062a\u062b\u0628\u064a\u062a \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_post_unpinned:"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u062a\u062b\u0628\u064a\u062a \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_toggle_pin_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u062a\u062b\u0628\u064a\u062a",unified_post_menu_set_as_event:"\u062a\u0639\u064a\u064a\u0646 \u0643\u0641\u0639\u0627\u0644\u064a\u0629",unified_post_menu_remove_from_events:"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",unified_post_menu_set_as_event_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062a\u0639\u064a\u064a\u0646 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0643\u0641\u0639\u0627\u0644\u064a\u0629\u
2061f",unified_post_menu_remove_from_events_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0632\u0627\u0644\u0629 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a\u061f",unified_post_menu_post_set_as_event:"\u062a\u0645 \u062a\u0639\u064a\u064a\u0646 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0643\u0641\u0639\u0627\u0644\u064a\u0629",unified_post_menu_post_removed_from_events:"\u062a\u0645 \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",unified_post_menu_toggle_event_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629",unified_post_menu_convert_to_ad:"\u062a\u062d\u0648\u064a\u0644 \u0644\u0625\u0639\u0644\u0627\u0646 \u0645\u0645\u064a\u0632",unified_post_menu_cancel_ad:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646",unified_post_menu_convert_to_ad_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062a\u062d\u0648\u064a\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0644\u0625\u0639\u0644\u0627\u0646 \u0645\u0645\u064a\u0632\u061f",unified_post_menu_cancel_ad_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u061f",unified_post_menu_post_converted_to_ad:"\u062a\u0645 \u062a\u062d\u0648\u064a\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0644\u0625\u0639\u0644\u0627\u0646",unified_post_menu_ad_cancelled:"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646",unified_post_menu_toggle_ad_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0625\u0639\u0644\u0627\u0646",unified_post_menu_delete_post:"\u062d\u0630\u0641 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_delete_post_message:"\u0633\u064a\u062a\u0645 \u0646\u0642\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0644\u0644\u0645\u062d\u0630\u0648\u0641\u0627\u062a\u060c \u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f\u061f",unified_post_menu_delete_post_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062d\u0630\u0641 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_block_post:"\u062d\u0638\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_unblock_post:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_block_post_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062d\u0638\u0631 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0644\u0645\u062e\u0627\u0644\u0641\u062a\u0647 \u0627\u0644\u0642\u0648\u0627\u0646\u064a\u0646\u061f",unified_post_menu_unblock_post_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f",unified_post_menu_post_blocked:"\u062a\u0645 \u062d\u0638\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_post_unblocked:"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_block_notification:"\u062a\u0645 \u062d\u0638\u0631 \u0645\u0646\u0634\u0648\u0631\u0643 \u0644\u0645\u062e\u0627\u0644\u0641\u062a\u0647 \u0627\u0644\u0642\u0648\u0627\u0646\u064a\u0646",unified_post_menu_unblock_notification:"\u062a\u0645 \u0631\u0641\u0639 \u0627\u0644\u062d\u0638\u0631 \u0639\u0646 \u0645\u0646\u0634\u0648\u0631\u0643",unified_post_menu_toggle_block_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u062d\u0638\u0631",unified_post_menu_hide_from_feed:"\u0625\u062e\u0641\u0627\u0621 \u0645\u0646 \u0623\u062e\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a",unified_post_menu_show_in_feed:"\u0625\u0638\u0647\u0627\u0631 \u0641\u064a \u0623\u062e\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a",unified_post_menu_hide_from_feed_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u062e\u0641\u0627\u0621 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0623\u062e\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a\u061f \u0633\u064a\u0628\u0642\u0649 \u0638\u0627\u0647\u0631\u0627\u064b \u0641\u064a \u0635\u0641\u062d\u0629 \u0627\u0644\u0628\u0631\u0648\u0641\u0627\u064a\u0644.",unified_post_menu_show_in_feed_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0639\u0627\u062f\u0629 \u0638\u0647\u0648\u0631 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0641\u064a \u0623\u062e\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0644\u0644\u062c\u0645\u064a\u0639\u061f",unified_post_menu_post_hidden_from_feed:"\u062a\u0645 \u0625\u062e\u0641\u0627\u0621 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0623\u062e\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a",unified_post_menu_post_shown_in_feed:"\u062a\u0645 \u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0641\u064a \u0623\u062e\u0631 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a",unified_post_menu_toggle_hide_from_feed_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0645\u0646\u0634\u0648\u0631",unified_post_menu_report_content:"\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0645\u062d\u062a\u0648\u0649",unified_post_menu_report_dialog_heading:"\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0645\u062d\u062a\u0648\u0649",unified_post_menu_report_dialog_subtitle:"\u0627\u0643\u062a\u0628 \u0627\u0644\u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u062a\u064a \u062a\u0631\u064a\u062f \u0625\u064a\u0635\u0627\u0644\u0647\u0627",unified_post_menu_report_details_label:"\u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u0628\u0644\u0627\u063a",unified_post_menu_report_details_placeholder:"\u0645\u062b\u0627\u0644: \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0633\u064a\u0621\u060c \u0623\u0648 \u0647\u0630\u0627 \u0627\u0644\u0631\u062f \u064a\u062d\u062a\u0648\u064a \u0639\u0644\u0649 \u062a\u0647\u062f\u064a\u062f...",unified_post_menu_report_details_required:"\u0627\u0643\u062a\u0628 \u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u0628\u0644\u0627\u063a \u0623\u0648\u0644\u0627\u064b",unified_post_menu_report_sent_message:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0644\u0627\u063a \u0628\u0646\u062c\u0627\u062d \u0648\u0633\u064a\u062a\u0645 \u0645\u0631\u0627\u062c\u0639\u062a\u0647",unified_post_menu_send_report:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0644\u0627\u063a",unified_post_menu_report_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0644\u0627\u063a",pcm_reaction_like:"\u0623\u0639\u062c\u0628\u0646\u064a",pcm_reaction_love:"\u0623\u062d\u0628\u0628\u062a\u0647",pcm_reaction_care:"\u0623\u062f\u0639\u0645\u0647",pcm_reaction_haha:"\u0647\u0627\u0647\u0627\u0647\u0627",pcm_reaction_wow:"\u0648\u0627\u0627\u0648",pcm_reaction_sad:"\u0623\u062d\u0632\u0646\u0646\u064a",pcm_reaction_angry:"\u0623\u063a\u0636\u0628\u0646\u064a",pcm_reactions_closed_title:"\u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0645\u063a\u0644\u0642\u0629",pcm_reactions_closed_message:"\u0635\u0627\u062d\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0642\u062f \u0623\u063a\u0644\u0642 \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",pcm_login_required_title:"\u0645\u0637\u0644\u0648\u0628 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644",pcm_login_required_to_react:"\u064a\u0631\u062c\u0649 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u0644\u062a\u0641\u0627\u0639\u0644",pcm_comment_deleted:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0645\u062d\u0630\u0648\u0641",pcm_surah_label:"\u0633\u0648\u0631\u0629",pcm_banned_title:"\u0645\u062d\u0638\u0648\u0631",pcm_banned_comment_message:"\u0644\u062f\u064a\u0643 \u062d\u0638\u0631 \u0639\u0644\u0649 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0648\u0644\u0627 \u064a\u0645\u0643\u0646\u0643 \u0643\u062a\u0627\u0628\u0629 \u062a\u0639\u0644\u064a\u0642.",pcm_login_required_before_comment:"\u064a\u0631\u062c\u0649 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0642\u0628\u0644 \u0625\u0636\u0627\u0641\u0629 \u062a\u0639\u0644\u064a\u0642",pcm_insufficient_coins_title:"\u0639\u0645\u0644\u0627\u062a \u063a\u064a\u0631 \u0643\u0627\u0641\u064a\u0629",pcm_insufficient_coins_message:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0643 \u0631\u0635\u064a\u062f \u0643\u0627\u0641\u064d \u0644\u0625\u0631\u0633\u0627\u0644 \u0647\u0630\u0647 \u0627\u0644\u0645\u0628\u0627\u0644\u063a \u0645\u0639 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_post_deleted:"\u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u062d\u0630\u0648\u0641",pcm_error_title:"\u062e\u0637\u0623",pcm_error_post_owner_missing:"\u062d\u062f\u062b \u062e\u0637\u0623: \u0635\u0627\u062d\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f",pcm_coins_transfer_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u0648\u064a\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u062a. \u0644\u0645 \u064a\u062a\u0645 \u062e\u0635\u0645 \u0623\u064a \u0645\u0628\u0644\u063a.",pcm_block_police:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0645\u062d\u0638\u0648\u0631 - \u0645\u062e\u0627\u0644\u0641\u0629 \u0623\u0645\u0646\u064a\u0629 \ud83d\udc6e",pcm_block_health:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0645\u062d\u0638\u0648\u0631 - \u0645\u062e\u0627\u0644\u0641\u0629 \u0635\u062d\u064a\u0629 \ud83c\udfe5",pcm_block_literature:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0645\u062d\u0638\u0648\u0631 - \u0645\u062e\u0627\u0644\u0641\u0629 \u0622\u062f\u0627\u0628 \ud83d\udcda",pcm_block_law:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0645\u062d\u0638\u0648\u0631 - \u0645\u062e\u0627\u0644\u0641\u0629 \u0642\u0627\u0646\u0648\u0646\u064a\u0629 \u2696\ufe0f",pcm_block_admin:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0645\u062d\u0638\u0648\u0631 - \u0642\u0631\u0627\u0631 \u0625\u062f\u0627\u0631\u064a \ud83d\udd12",pcm_blocked_generic:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0645\u062d\u0638\u0648\u0631",pcm_login_required_action:"\u064a\u0631\u062c\u0649 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u0625\u062c\u0631\u0627\u0621 \u0647\u0630\u0627 \u0627\u0644\u0625\u062c\u0631\u0627\u0621",pcm_already_reported_title:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0645\u0633\u0628\u0642\u0627\u064b",pcm_already_reported_message:"\u0644\u0642\u062f \u0642\u0645\u062a \u0628\u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0645\u0646 \u0642\u0628\u0644",pcm_report_police_title:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0634\u0631\u0637\u0629",pcm_report_police_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0644\u0645\u0631\u0643\u0632 \u0627\u0644\u0634\u0631\u0637\u0629\u
2061f",pcm_login_required_to_report:"\u064a\u0631\u062c\u0649 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u0625\u062a\u0645\u0627\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a",pcm_report_police_theft_reason:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0634\u0631\u0637\u0629 \u0639\u0646 \u0633\u0631\u0642\u0629",pcm_reported_title:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a",pcm_report_police_success:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0625\u0644\u0649 \u0645\u0631\u0643\u0632 \u0627\u0644\u0634\u0631\u0637\u0629 \u0628\u0646\u062c\u0627\u062d",pcm_report_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0627\u0644\u0625\u0628\u0644\u0627\u063a",pcm_report_health_title:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0635\u062d\u0629",pcm_report_health_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0644\u0645\u0631\u0643\u0632 \u0627\u0644\u0635\u062d\u0629\u061f",pcm_report_health_depression_reason:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0635\u062d\u0629 \u0639\u0646 \u062d\u0627\u0644\u0629 \u0625\u0643\u062a\u0626\u0627\u0628",pcm_report_health_success:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0625\u0644\u0649 \u0645\u0631\u0643\u0632 \u0627\u0644\u0635\u062d\u0629 \u0628\u0646\u062c\u0627\u062d",pcm_report_literature_title:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628",pcm_report_literature_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0644\u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628\u061f",pcm_report_literature_abuse_reason:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628 \u0639\u0646 \u0625\u0633\u0627\u0621\u0629",pcm_report_literature_success:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0625\u0644\u0649 \u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628 \u0628\u0646\u062c\u0627\u062d",pcm_report_law_title:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0642\u0627\u0646\u0648\u0646",pcm_report_law_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0644\u0645\u0631\u0643\u0632 \u0627\u0644\u0642\u0627\u0646\u0648\u0646\u061f",pcm_report_law_violation_reason:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0642\u0627\u0646\u0648\u0646 \u0639\u0646 \u0625\u0646\u062a\u0647\u0627\u0643 \u0627\u0644\u0642\u0627\u0646\u0648\u0646",pcm_report_law_success:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0625\u0644\u0649 \u0645\u0631\u0643\u0632 \u0627\u0644\u0642\u0627\u0646\u0648\u0646 \u0628\u0646\u062c\u0627\u062d",pcm_login_required_for_report:"\u064a\u062c\u0628 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u0644\u0625\u0628\u0644\u0627\u063a",pcm_report_submit_success:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0644\u0627\u063a \u0628\u0646\u062c\u0627\u062d. \u0634\u0643\u0631\u0627\u064b \u0644\u0645\u0633\u0627\u0647\u0645\u062a\u0643 \u0641\u064a \u0627\u0644\u062d\u0641\u0627\u0638 \u0639\u0644\u0649 \u0627\u0644\u0645\u062c\u062a\u0645\u0639.",pcm_report_submit_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0644\u0627\u063a. \u062d\u0627\u0648\u0644 \u0644\u0627\u062d\u0642\u0627\u064b.",pcm_delete_comment_title:"\u062d\u0630\u0641 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_delete_comment_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u061f \u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0644\u062a\u0631\u0627\u062c\u0639 \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0625\u062c\u0631\u0627\u0621.",pcm_delete_btn:"\u062d\u0630\u0641",pcm_cancel_bt
2n:"\u0625\u0644\u063a\u0627\u0621",pcm_deleted_title:"\u062a\u0645 \u0627\u0644\u062d\u0630\u0641",pcm_delete_success:"\u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0628\u0646\u062c\u0627\u062d",pcm_delete_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062d\u0630\u0641 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_permissions_title:"\u0635\u0644\u0627\u062d\u064a\u0627\u062a",pcm_no_pin_permission:"\u0644\u0627 \u062a\u0645\u0644\u0643 \u0635\u0644\u0627\u062d\u064a\u0629 \u062a\u062b\u0628\u064a\u062a \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",pcm_unpinned_title:"\u062a\u0645 \u0627\u0644\u0625\u0644\u063a\u0627\u0621",pcm_unpinned_message:"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u062a\u062b\u0628\u064a\u062a \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_pinned_title:"\u062a\u0645 \u0627\u0644\u062a\u062b\u0628\u064a\u062a",pcm_pinned_message:"\u062a\u0645 \u062a\u062b\u0628\u064a\u062a \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0628\u0646\u062c\u0627\u062d",pcm_pin_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062b\u0628\u064a\u062a \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_no_hide_permission:"\u0644\u0627 \u062a\u0645\u0644\u0643 \u0635\u0644\u0627\u062d\u064a\u0629 \u0625\u062e\u0641\u0627\u0621 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",pcm_hide_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u063a\u064a\u064a\u0631 \u062d\u0627\u0644\u0629 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_modal_title:"\u062a\u0639\u0644\u064a\u0642\u0627\u062a \u0627\u0644\u0645\u0646\u0634\u0648\u0631",pcm_pin_comment:"\ud83d\udccc \u062a\u062b\u0628\u064a\u062a \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_unpin_comment:"\ud83d\udccc \u0625\u0644\u063a\u0627\u0621 \u062a\u062b\u0628\u064a\u062a \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_show_comment:"\ud83d\udc41\ufe0f\u200d\ud83d\udde8\ufe0f \u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_hide_comment:"\ud83d\udc7b \u0625\u062e\u0641\u0627\u0621 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_block_notification:"\u062a\u0645 \u062d\u0638\u0631 \u062a\u0639\u0644\u064a\u0642\u0643 \u0644\u0645\u062e\u0627\u0644\u0641\u062a\u0647 \u0642\u0648\u0627\u0646\u064a\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642",pcm_unblock_comment:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_block_comment:"\u062d\u0638\u0631 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_report_comment:"\u0625\u0628\u0644\u0627\u063a \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_hidden_comment_title:"\u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0645\u062e\u0641\u064a",pcm_edit_comment:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_add_comment:"\u0627\u0636\u0627\u0641\u0629 \u062a\u0639\u0644\u064a\u0642",pcm_cannot_send_coins_to_self:"\u0644\u0627 \u064a\u0645\u0643\u0646\u0643 \u0625\u0631\u0633\u0627\u0644 \u0639\u0645\u0644\u0627\u062a \u0625\u0644\u0649 \u0645\u0646\u0634\u0648\u0631\u0643",pcm_insufficient_coins_balance:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0643 \u0639\u0645\u0644\u0627\u062a \u0643\u0627\u0641\u064a\u0629",pcm_report_dialog_heading:"\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_report_dialog_subtitle:"\u0627\u0643\u062a\u0628 \u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u0628\u0644\u0627\u063a \u0644\u064a\u062a\u0645\u0643\u0646 \u0627\u0644\u0645\u0634\u0631\u0641\u0648\u0646 \u0645\u0646 \u0627\u0644\u0645\u0631\u0627\u062c\u0639\u0629 \u0628\u0634\u0643\u0644 \u0623\u0641\u0636\u0644",pcm_report_details_label:"\u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u0628\u0644\u0627\u063a",pcm_report_details_placeholder:"\u0645\u062b\u0627\u0644: \u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0645\u0633\u064a\u0621 \u0623\u0648 \u064a\u062d\u0648\u064a \u0645\u062d\u062a\u0648\u0649 \u063a\u064a\u0631 \u0645\u0646\u0627\u0633\u0628...",pcm_send_report_btn:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0644\u0627\u063a",pcm_yes_btn:"\u0646\u0639\u0645",crm_reaction_like:"\u0623\u0639\u062c\u0628\u0646\u064a",crm_reaction_love:"\u0623\u062d\u0628\u0628\u062a\u0647",crm_reaction_care:"\u0623\u062f\u0639\u0645\u0647",crm_reaction_haha:"\u0647\u0627\u0647\u0627\u0647\u0627",crm_reaction_wow:"\u0648\u0627\u0627\u0648",crm_reaction_sad:"\u0623\u062d\u0632\u0646\u0646\u064a",crm_reaction_angry:"\u0623\u063a\u0636\u0628\u0646\u064a",crm_block_police:"\u0627\u0644\u0631\u062f \u0645\u062d\u0638\u0648\u0631 - \u0645\u062e\u0627\u0644\u0641\u0629 \u0623\u0645\u0646\u064a\u0629 \ud83d\udc6e",crm_block_health:"\u0627\u0644\u0631\u062f \u0645\u062d\u0638\u0648\u0631 - \u0645\u062e\u0627\u0644\u0641\u0629 \u0635\u062d\u064a\u0629 \ud83c\udfe5",crm_block_literature:"\u0627\u0644\u0631\u062f \u0645\u062d\u0638\u0648\u0631 - \u0645\u062e\u0627\u0644\u0641\u0629 \u0622\u062f\u0627\u0628 \ud83d\udcda",crm_block_law:"\u0627\u0644\u0631\u062f \u0645\u062d\u0638\u0648\u0631 - \u0645\u062e\u0627\u0644\u0641\u0629 \u0642\u0627\u0646\u0648\u0646\u064a\u0629 \u2696\ufe0f",crm_block_admin:"\u0627\u0644\u0631\u062f \u0645\u062d\u0638\u0648\u0631 - \u0642\u0631\u0627\u0631 \u0625\u062f\u0627\u0631\u064a \ud83d\udd12",crm_blocked_generic:"\u0627\u0644\u0631\u062f \u0645\u062d\u0638\u0648\u0631",crm_already_reported_title:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0645\u0633\u0628\u0642\u0627\u064b",crm_already_reported_message:"\u0644\u0642\u062f \u0642\u0645\u062a \u0628\u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0631\u062f \u0645\u0646 \u0642\u0628\u0644",crm_report_police_title:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0634\u0631\u0637\u0629",crm_report_police_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0631\u062f \u0644\u0645\u0631\u0643\u0632 \u0627\u0644\u0634\u0631\u0637\u0629\u
2061f",crm_report_police_theft_reason:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0634\u0631\u0637\u0629 \u0639\u0646 \u0633\u0631\u0642\u0629",crm_reported_title:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a",crm_report_police_success:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u0631\u062f \u0625\u0644\u0649 \u0645\u0631\u0643\u0632 \u0627\u0644\u0634\u0631\u0637\u0629 \u0628\u0646\u062c\u0627\u062d",crm_error_title:"\u062e\u0637\u0623",crm_report_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0627\u0644\u0625\u0628\u0644\u0627\u063a",crm_report_health_title:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0635\u062d\u0629",crm_report_health_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0631\u062f \u0644\u0645\u0631\u0643\u0632 \u0627\u0644\u0635\u062d\u0629\u061f",crm_report_health_depression_reason:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0635\u062d\u0629 \u0639\u0646 \u062d\u0627\u0644\u0629 \u0625\u0643\u062a\u0626\u0627\u0628",crm_report_health_success:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u0631\u062f \u0625\u0644\u0649 \u0645\u0631\u0643\u0632 \u0627\u0644\u0635\u062d\u0629 \u0628\u0646\u062c\u0627\u062d",crm_report_literature_title:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628",crm_report_literature_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0631\u062f \u0644\u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628\u061f",crm_report_literature_abuse_reason:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628 \u0639\u0646 \u0625\u0633\u0627\u0621\u0629",crm_report_literature_success:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u0631\u062f \u0625\u0644\u0649 \u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628 \u0628\u0646\u062c\u0627\u062d",crm_report_law_title:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0642\u0627\u0646\u0648\u0646",crm_report_law_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0631\u062f \u0644\u0645\u0631\u0643\u0632 \u0627\u0644\u0642\u0627\u0646\u0648\u0646\u061f",crm_report_law_violation_reason:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0642\u0627\u0646\u0648\u0646 \u0639\u0646 \u0625\u0646\u062a\u0647\u0627\u0643 \u0627\u0644\u0642\u0627\u0646\u0648\u0646",crm_report_law_success:"\u062a\u0645 \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u0631\u062f \u0625\u0644\u0649 \u0645\u0631\u0643\u0632 \u0627\u0644\u0642\u0627\u0646\u0648\u0646 \u0628\u0646\u062c\u0627\u062d",crm_login_required_for_report:"\u064a\u062c\u0628 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u0644\u0625\u0628\u0644\u0627\u063a",crm_report_submit_success:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0644\u0627\u063a \u0628\u0646\u062c\u0627\u062d. \u0634\u0643\u0631\u0627\u064b \u0644\u0645\u0633\u0627\u0647\u0645\u062a\u0643 \u0641\u064a \u0627\u0644\u062d\u0641\u0627\u0638 \u0639\u0644\u0649 \u0627\u0644\u0645\u062c\u062a\u0645\u0639.",crm_report_submit_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0644\u0627\u063a. \u062d\u0627\u0648\u0644 \u0644\u0627\u062d\u0642\u0627\u064b.",crm_delete_reply_title:"\u062d\u0630\u0641 \u0627\u0644\u0631\u062f",crm_delete_reply_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u0631\u062f\u061f \u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0644\u062a\u0631\u0627\u062c\u0639 \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0625\u062c\u0631\u0627\u0621.",crm_delete_btn:"\u062d\u0630\u0641",crm_cancel_bt
2n:"\u0625\u0644\u063a\u0627\u0621",crm_deleted_title:"\u062a\u0645 \u0627\u0644\u062d\u0630\u0641",crm_delete_success:"\u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0631\u062f \u0628\u0646\u062c\u0627\u062d",crm_delete_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062d\u0630\u0641 \u0627\u0644\u0631\u062f",crm_surah_label:"\u0633\u0648\u0631\u0629",crm_banned_title:"\u0645\u062d\u0638\u0648\u0631",crm_banned_reply_message:"\u0644\u062f\u064a\u0643 \u062d\u0638\u0631 \u0639\u0644\u0649 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0648\u0644\u0627 \u064a\u0645\u0643\u0646\u0643 \u0643\u062a\u0627\u0628\u0629 \u0631\u062f.",crm_comment_deleted:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u0645\u062d\u0630\u0648\u0641",crm_reply_deleted:"\u0627\u0644\u0631\u062f \u0645\u062d\u0630\u0648\u0641",crm_modal_title:"\u0631\u062f\u0648\u062f \u0627\u0644\u062a\u0639\u0644\u064a\u0642",crm_block_reason_theft:"\u0631\u062f \u0645\u0633\u0631\u0648\u0642",crm_unblock_reply_theft:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u0631\u062f (\u0633\u0631\u0642\u0629)",crm_block_reply_theft:"\u062d\u0638\u0631 \u0627\u0644\u0631\u062f (\u0631\u062f \u0645\u0633\u0631\u0648\u0642)",crm_block_reason_literature:"\u0631\u062f \u0645\u062e\u0644 \u0644\u0644\u0622\u062f\u0627\u0628",crm_unblock_reply_literature:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u0631\u062f (\u0622\u062f\u0627\u0628)",crm_block_reply_literature:"\u062d\u0638\u0631 \u0627\u0644\u0631\u062f (\u0631\u062f \u0645\u062e\u0644 \u0644\u0644\u0622\u062f\u0627\u0628)",crm_block_reason_law:"\u0631\u062f \u062e\u0627\u0631\u062c \u0639\u0646 \u0627\u0644\u0642\u0627\u0646\u0648\u0646",crm_unblock_reply_law:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u0631\u062f (\u0642\u0627\u0646\u0648\u0646)",crm_block_reply_law:"\u062d\u0638\u0631 \u0627\u0644\u0631\u062f (\u0631\u062f \u062e\u0627\u0631\u062c \u0639\u0646 \u0627\u0644\u0642\u0627\u0646\u0648\u0646)",crm_report_health_depression:"\u0625\u0628\u0644\u0627\u063a \u0645\u0631\u0643\u0632 \u0627\u0644\u0635\u062d\u0629 \u0639\u0646 \u062d\u0627\u0644\u0629 \u0625\u0643\u062a\u0626\u0627\u0628",crm_edit_reply:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0631\u062f",crm_comment_label:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642",crm_reply_on_label:"\u0631\u062f \u0639\u0644\u0649 {target}",crm_report_dialog_heading:"\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u0631\u062f",crm_report_dialog_subtitle:"\u0627\u0643\u062a\u0628 \u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u0628\u0644\u0627\u063a \u0644\u064a\u062a\u0645\u0643\u0646 \u0627\u0644\u0645\u0634\u0631\u0641\u0648\u0646 \u0645\u0646 \u0627\u0644\u0645\u0631\u0627\u062c\u0639\u0629 \u0628\u0634\u0643\u0644 \u0623\u0641\u0636\u0644",crm_report_details_label:"\u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u0628\u0644\u0627\u063a",crm_report_details_placeholder:"\u0645\u062b\u0627\u0644: \u0647\u0630\u0627 \u0627\u0644\u0631\u062f \u064a\u062d\u062a\u0648\u064a \u0639\u0644\u0649 \u0625\u0633\u0627\u0621\u0629 \u0623\u0648 \u062a\u0647\u062f\u064a\u062f...",crm_send_report_btn:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0644\u0627\u063a",crm_yes_btn:"\u0646\u0639\u0645",pcm_coins_sent_to_post:"\u0623\u0631\u0633\u0644\u062a \u0639\u0645\u0644\u0627\u062a \u0625\u0644\u0649 \u0645\u0646\u0634\u0648\u0631 {name}",pcm_coins_sent_with_comment:"\u062e\u0635\u0645 \u0644\u0625\u0631\u0633\u0627\u0644 \u0639\u0645\u0644\u0627\u062a \u0645\u0639 \u062a\u0639\u0644\u064a\u0642 \u0639\u0644\u0649 \u0645\u0646\u0634\u0648\u0631",pcm_coins_received_from:"\u062d\u0635\u0644\u062a \u0639\u0644\u0649 \u0639\u0645\u0644\u0627\u062a \u0645\u0646 {name}",pcm_coins_received_with_comment:"\u0627\u0633\u062a\u0644\u0627\u0645 \u0639\u0645\u0644\u0627\u062a \u0645\u0646 \u062a\u0639\u0644\u064a\u0642 \u0639\u0644\u0649 \u0645\u0646\u0634\u0648\u0631\u0643",pcm_block_reason_fallback:"\u062d\u0638\u0631/\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u062a\u0639\u0644\u064a\u0642 ({blockType})",pcm_comments_closed_banner:"\ud83d\udd12 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a \u0645\u063a\u0644\u0642\u0629 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",pcm_reactions_closed_banner:"\ud83d\udc94 \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0645\u063a\u0644\u0642\u0629 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",pcm_no_comments_yet:"\u0644\u0627\u062a\u0648\u062c\u062f \u062a\u0639\u0644\u064a\u0642\u0627\u062a \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",pcm_pinned_comment_badge:"\ud83d\udccc \u062a\u0639\u0644\u064a\u0642 \u0645\u062b\u0628\u062a",pcm_edit_comment_menu:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_delete_comment_menu:"\u062d\u0630\u0641 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",pcm_spoiler_warning:"\u0647\u0630\u0627 \u0627\u0644\u062a\u0639\u0644\u064a\u0642 \u064a\u062d\u062a\u0648\u064a \u0639\u0644\u0649 \u062d\u0631\u0642, \u0625\u0636\u063a\u0637 \u0644\u0639\u0631\u0636 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",crm_block_reason_fallback:"\u062d\u0638\u0631/\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0631\u062f ({blockType})",crm_edit_reply_menu:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0631\u062f",crm_delete_reply_menu:"\u062d\u0630\u0641 \u0627\u0644\u0631\u062f",crm_report_reply_menu:"\u0625\u0628\u0644\u0627\u063a \u0627\u0644\u0631\u062f",crm_spoiler_warning:"\u0647\u0630\u0627 \u0627\u0644\u0631\u062f \u064a\u062d\u062a\u0648\u064a \u0639\u0644\u0649 \u062d\u0631\u0642 \u0627\u0636\u063a\u0637 \u0644\u0645\u0634\u0627\u0647\u062f\u0629 \u0627\u0644\u0631\u062f",crm_comments_closed_banner:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a \u0645\u063a\u0644\u0642\u0629 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",post_action_reaction_like:"\u0625\u0639\u062c\u0627\u0628",post_action_reaction_love:"\u062d\u0628",post_action_reaction_care:"\u0627\u0647\u062a\u0645\u0627\u0645",post_action_reaction_haha:"\u0636\u062d\u0643",post_action_reaction_wow:"\u062f\u0647\u0634\u0629",post_action_reaction_sad:"\u062d\u0632\u0646",post_action_reaction_angry:"\u063a\u0636\u0628",post_action_default_post_title:"\u0634\u0627\u0647\u062f \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",post_action_share_text:"\u0634\u0627\u0647\u062f \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631!",post_action_share:"\u0645\u0634\u0627\u0631\u0643\u0629",post_action_comments:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",post_action_comments_closed:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a \u0645\u063a\u0644\u0642\u0629",post_action_reactions_closed:"\u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0645\u063a\u0644\u0642\u0629",post_action_comments_closed_title:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a \u0645\u063a\u0644\u0642\u0629",post_action_comments_closed_message:"\u0644\u0642\u062f \u0642\u0627\u0645 \u0627\u0644\u0643\u0627\u062a\u0628 \u0628\u0625\u063a\u0644\u0627\u0642 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631.",post_action_ok:"\u062d\u0633\u0646\u0627\u064b",post_action_view_comments:"\u0639\u0631\u0636 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",hashtag_dropdown_no_results_found:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0646\u062a\u0627\u0626\u062c",hashtag_dropdown_create_new:"\u0625\u0646\u0634\u0627\u0621 \u062c\u062f\u064a\u062f: #",comment_input_box_comment_placeholder:"\u0625\u0636\u0627\u0641\u0629 \u062a\u0639\u0644\u064a\u0642",comment_input_box_invalid_image_type:" \u0635\u064a\u063a\u0629 \u0627\u0644\u0645\u0644\u0641 \u063a\u064a\u0631 \u0645\u062f\u0639\u0648\u0645\u0629",comment_input_box_image_upload_failed:"\u0641\u0634\u0644 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0635\u0648\u0631\u0629",comment_input_box_mentions_no_results_found:"\u0644\u0627\u064a\u0648\u062c\u062f \u0634\u062e\u0635 \u0628\u0647\u0630\u0627 \u0627\u0644\u0625\u0633\u0645",comment_input_box_character_no_results_found:"\u0644\u0627\u062a\u0648\u062c\u062f \u0634\u062e\u0635\u064a\u0627\u062a \u0628\u0647\u0630\u0627 \u0627\u0644\u0625\u0633\u0645",comment_input_box_character_category_prophets:"\u0627\u0644\u0623\u0646\u0628\u064a\u0627\u0621",comment_input_box_character_category_companions:"\u0627\u0644\u0635\u062d\u0627\u0628\u0629",comment_input_box_character_category_historical:"\u0634\u062e\u0635\u064a\u0627\u062a \u062a\u0627\u0631\u064a\u062e\u064a\u0629",comment_input_box_quran_surah_no_results_found:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0633\u0648\u0631\u0629 \u0628\u0647\u0630\u0627 \u0627\u0644\u0625\u0633\u0645",comment_input_box_quran_surah_header:"\u
20633\u0648\u0631 \u0627\u0644\u0642\u0631\u0622\u0646 \u0627\u0644\u0643\u0631\u064a\u0645",comment_input_box_quran_surah_name:"\u0633\u0648\u0631\u0629",comment_input_box_edit_mode_title:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",comment_input_box_comments_disabled:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a \u0645\u063a\u0644\u0642\u0629",time_ago_just_now:"\u0645\u0646\u0630 \u0644\u062d\u0638\u0627\u062a",time_ago_one_minute:"\u0645\u0646\u0630 \u062f\u0642\u064a\u0642\u0629",time_ago_minutes:"\u0645\u0646\u0630 {count} \u062f\u0642\u0627\u0626\u0642",time_ago_one_hour:"\u0642\u0628\u0644 \u0633\u0627\u0639\u0629",time_ago_two_hours:"\u0642\u0628\u0644 \u0633\u0627\u0639\u062a\u064a\u0646",time_ago_hours:"\u0645\u0646\u0630 {count} \u0633\u0627\u0639\u0627\u062a",time_ago_hours_alt:"\u0645\u0646\u0630 {count} \u0633\u0627\u0639\u0629",time_ago_one_day:"\u0642\u0628\u0644 \u064a\u0648\u0645",time_ago_two_days:"\u0642\u0628\u0644 \u064a\u0648\u0645\u064a\u0646",time_ago_days:"\u0645\u0646\u0630 {count} \u0623\u064a\u0627\u0645",time_ago_days_alt:"\u0645\u0646\u0630 {count} \u064a\u0648\u0645",time_ago_one_week:"\u0642\u0628\u0644 \u0623\u0633\u0628\u0648\u0639",time_ago_two_weeks:"\u0642\u0628\u0644 \u0623\u0633\u0628\u0648\u0639\u064a\u0646",time_ago_weeks:"\u0645\u0646\u0630 {count} \u0623\u0633\u0627\u0628\u064a\u0639",time_ago_one_month:"\u0642\u0628\u0644 \u0634\u0647\u0631",time_ago_two_months:"\u0642\u0628\u0644 \u0634\u0647\u0631\u064a\u0646",time_ago_months:"\u0645\u0646\u0630 {count} \u0623\u0634\u0647\u0631",notifications_page_no_notifications:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0625\u0634\u0639\u0627\u0631\u0627\u062a",notifications_page_title:"\u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a",notifications_page_filter_all:"\u0627\u0644\u0643\u0644",notifications_page_filter_posts:"\u0645\u0646\u0634\u0648\u0631\u0627\u062a",notifications_page_filter_comments:"\u062a\u0639\u0644\u064a\u0642\u0627\u062a",notifications_page_filter_coins:"\u0639\u0645\u0644\u0627\u062a",notifications_page_filter_replies:"\u0631\u062f\u0648\u062f",notifications_page_filter_team_request:"\u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0641\u0631\u064a\u0642",notifications_page_filter_team_approval:"\u0642\u0628\u0648\u0644 \u0627\u0644\u0641\u0631\u064a\u0642",notifications_page_filter_team_promotion:"\u062a\u0631\u0642\u064a\u0629 \u0627\u0644\u0641\u0631\u064a\u0642",notifications_page_filter_team_kick:"\u0637\u0631\u062f \u0645\u0646 \u0627\u0644\u0641\u0631\u064a\u0642",notifications_page_filter_saraha:"\u0635\u0627\u0631\u062d\u0646\u064a",notifications_page_filter_coins_sent:"\u0639\u0645\u0644\u0627\u062a \u0648\u0627\u0631\u062f\u0629",notifications_page_filter_blocked:"\u0645\u062d\u0638\u0648\u0631",notifications_page_filter_unblocked:"\u063a\u064a\u0631 \u0645\u062d\u0638\u0648\u0631",notifications_page_tab_follow:"\u0627\u0644\u0645\u062a\u0627\u0628\u0639\u0629",notifications_page_tab_reaction:"\u0627\u0644\u062a\u0641\u0627\u0639\u0644",notifications_page_tab_messages:"\u0627\u0644\u0631\u0633\u0627\u0626\u0644",notifications_page_tab_general:"\u0639\u0627\u0645",notifications_page_mark_all_read:"\u062a\u0645 \u0645\u0634\u0627\u0647\u062f\u0629 \u0627\u0644\u0643\u0644",notifications_page_delete_all:"\u062d\u0630\u0641 \u0627\u0644\u0643\u0644",notifications_page_post_blocked:"\u062a\u0645 \u062d\u0638\u0631 \u0645\u0646\u0634\u0648\u0631\u0643 \u0645\u0646 \u0642\u0628\u0644 \u0627\u0644\u0625\u062f\u0627\u0631\u0629",notifications_page_profile_image_blocked:"\u062a\u0645 \u062d\u0638\u0631 \u0635\u0648\u0631\u0629 \u0645\u0644\u0641\u0643 \u0627\u0644\u0634\u062e\u0635\u064a \u0645\u0646 \u0642\u0628\u0644 \u0627\u0644\u0625\u062f\u0627\u0631\u0629",notifications_page_cover_image_blocked:"\u062a\u0645 \u062d\u0638\u0631 \u063a\u0644\u0627\u0641 \u0645\u0644\u0641\u0643 \u0627\u0644\u0634\u062e\u0635\u064a \u0645\u0646 \u0642\u0628\u0644 \u0627\u0644\u0625\u062f\u0627\u0631\u0629",notifications_page_reply_blocked:"\u062a\u0645 \u062d\u0638\u0631 \u0631\u062f\u0643 \u0644\u0623\u0646\u0647 {reason}",notifications_page_comment_blocked:"\u062a\u0645 \u062d\u0638\u0631 \u062a\u0639\u0644\u064a\u0642\u0643 \u0644\u0623\u0646\u0647 {reason}",notifications_page_reply_unblocked:"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0631\u062f\u0643",notifications_page_comment_unblocked:"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u062a\u0639\u0644\u064a\u0642\u0643",notifications_page_text_chat_message:'\u
20631\u0633\u0627\u0644\u0629 \u062c\u062f\u064a\u062f\u0629 \u0645\u0646 {name}: "{snippet}"',notifications_page_text_follow:"\u0642\u0627\u0645 {name} \u0628\u0645\u062a\u0627\u0628\u0639\u062a\u0643",notifications_page_text_reaction_post:"\u062a\u0641\u0627\u0639\u0644 {name} \u0639\u0644\u0649 \u0645\u0646\u0634\u0648\u0631\u0643",notifications_page_text_reaction_comment:"\u062a\u0641\u0627\u0639\u0644 {name} \u0639\u0644\u0649 \u062a\u0639\u0644\u064a\u0642\u0643",notifications_page_text_reaction_reply:"\u062a\u0641\u0627\u0639\u0644 {name} \u0639\u0644\u0649 \u0631\u062f\u0643",notifications_page_text_reaction_generic:"\u062a\u0641\u0627\u0639\u0644 {name} \u0645\u0639 \u0645\u0646\u0634\u0648\u0631\u0643",notifications_page_text_mention:"\u0630\u0643\u0631\u0643 {name} \u0641\u064a \u0645\u0646\u0634\u0648\u0631",notifications_page_text_comment:"\u0639\u0644\u0642 {name} \u0639\u0644\u0649 \u0645\u0646\u0634\u0648\u0631\u0643",notifications_page_text_comment_with_message:'\u0639\u0644\u0642 {name} \u0639\u0644\u0649 \u0645\u0646\u0634\u0648\u0631\u0643: "{message}"',notifications_page_text_comment_with_coins:"\u0623\u0631\u0633\u0644 \u0644\u0643 {name} {coins} \u0645\u0646 \u0627\u0644\u0639\u0645\u0644\u0627\u062a \u0641\u064a \u062a\u0639\u0644\u064a\u0642",notifications_page_text_coins_with_comment:"\u0623\u0631\u0633\u0644 \u0644\u0643 {name} {coins} \u0645\u0646 \u0627\u0644\u0639\u0645\u0644\u0627\u062a \u0641\u064a \u062a\u0639\u0644\u064a\u0642",notifications_page_text_reply:"\u0631\u062f {name} \u0639\u0644\u0649 \u062a\u0639\u0644\u064a\u0642\u0643",notifications_page_text_reply_with_message:'\u0631\u062f {name} \u0639\u0644\u0649 \u062a\u0639\u0644\u064a\u0642\u0643: "{message}"',notifications_page_text_reply_with_coins:"\u0623\u0631\u0633\u0644 \u0644\u0643 {name} {coins} \u0645\u0646 \u0627\u0644\u0639\u0645\u0644\u0627\u062a \u0641\u064a \u0631\u062f",notifications_page_text_private_message:'\u0631\u0633\u0627\u0644\u0629 \u062e\u0627\u0635\u0629 \u0645\u0646 {name}: "{snippet}"',notifications_page_text_group_message:'\u0631\u0633\u0627\u0644\u0629 \u0645\u062c\u0645\u0648\u0639\u0629 {group} \u0645\u0646 {name}: "{snippet}"',notifications_page_text_team_request:"\u0637\u0644\u0628 \u0627\u0646\u0636\u0645\u0627\u0645 \u062c\u062f\u064a\u062f \u0644\u0641\u0631\u064a\u0642\u0643",notifications_page_text_team_approval:"\u062a\u0645\u062a \u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629 \u0639\u0644\u0649 \u0637\u0644\u0628\u0643 \u0644\u0644\u0627\u0646\u0636\u0645\u0627\u0645 \u0625\u0644\u0649 \u0641\u0631\u064a\u0642 {team}",notifications_page_text_team_promotion:"\u062a\u0645\u062a \u062a\u0631\u0642\u064a\u062a\u0643 \u0641\u064a \u0641\u0631\u064a\u0642 {team}{role}",notifications_page_text_team_promotion_role:" \u0625\u0644\u0649 {role}",notifications_page_text_team_kick:"\u062a\u0645 \u0637\u0631\u062f\u0643 \u0645\u0646 \u0641\u0631\u064a\u0642 {team}",notifications_page_text_saraha_named:'\u0644\u0642\u062f \u0648\u0635\u0644\u062a\u0643 \u0631\u0633\u0627\u0644\u0629 \u0635\u0627\u0631\u062d\u0646\u064a \u0645\u0646 \u0645\u062c\u0647\u0648\u0644: "{message}"',notifications_page_text_saraha_from:'\u0644\u0642\u062f \u0648\u0635\u0644\u062a\u0643 \u0631\u0633\u0627\u0644\u0629 \u0635\u0627\u0631\u062d\u0646\u064a \u0645\u0646 {name}: "{message}"',notifications_page_text_saraha_anonymous:"\u0644\u062f\u064a\u0643 \u0631\u0633\u0627\u0644\u0629 \u0635\u0627\u0631\u062d\u0646\u064a \u062c\u062f\u064a\u062f\u0629 \u0645\u0646 \u0645\u062c\u0647\u0648\u0644",notifications_page_text_saraha_generic:"\u0644\u062f\u064a\u0643 \u0631\u0633\u0627\u0644\u0629 \u0635\u0627\u0631\u062d\u0646\u064a \u062c\u062f\u064a\u062f\u0629",notifications_page_text_coins_sent:"\u0623\u0631\u0633\u0644 \u0644\u0643 {name} {coins} \u0645\u0646 \u0627\u0644\u0639\u0645\u0644\u0627\u062a",notifications_page_text_default:"\u0625\u0634\u0639\u0627\u0631 \u062c\u062f\u064a\u062f",notifications_page_unknown_user:"\u0645\u0633\u062a\u062e\u062f\u0645",notifications_page_load_error:"\u062a\u0639\u0630\u0651\u0631 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a. \u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0648\u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.",notifications_page_retry:"\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629",notifications_page_delete_confirm:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u061f",notifications_page_toast_from:"\u0645\u0646 {name}",notifications_page_toast_new:"\u0625\u0634\u0639\u0627\u0631 \u062c\u062f\u064a\u062f",notifications_page_toast_snooze:"\u0625\u062e\u0641\u0627\u0621",notifications_page_toast_snooze_title:"\u0625\u062e\u0641\u0627\u0621 \u0644\u0645\u062f\u0629 5 \u062f\u0642\u0627\u0626\u0642",friend_requests_title_requests:"\u0637\u0644\u0628\u0627\u062a \u0630\u0627\u062a \u0635\u0650\u0644\u0629",friend_requests_title_contacts:"\u062c\u0647\u0627\u062a \u0627\u0644\u0625\u062a\u0635\u0627\u0644",friend_requests_search_placeholder:"\u0627\u0628\u062d\u062b \u0639\u0646 \u0634\u062e\u0635 \u0630\u0627\u062a \u0635\u0650\u0644\u0629...",friend_requests_no_contacts:"\u0644\u0645 \u062a\u0642\u0645 \u0628\u0625\u0636\u0627\u0641\u0629 \u0623\u064a \u0623\u0634\u062e\u0627\u0635 \u0630\u0627\u062a \u0635\u0650\u0644\u0629 \u0628\u0639\u062f.",friend_requests_no_results:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0646\u062a\u0627\u0626\u062c \u0645\u0637\u0627\u0628\u0642\u0629.",friend_requests_sent_you_request:"\u0623\u0631\u0633\u0644 \u0644\u0643 \u0637\u0644\u0628 \u0634\u062e\u0635 \u0630\u0627\u062a \u0635\u0650\u0644\u0629 \u0628\u0643",friend_requests_accept_btn:"\u0642\u0628\u0648\u0644",friend_requests_reject_btn:"\u0631\u0641\u0636",friend_requests_no_new_requests:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0637\u0644\u0628\u0627\u062a \u0630\u0627\u062a \u0635\u0650\u0644\u0629 \u062c\u062f\u064a\u062f\u0629",friend_requests_edit_name_dialog:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0627\u0633\u0645",friend_requests_update_btn:"\u062a\u062d\u062f\u064a\u062b",friend_requests_cancel_bt
2n:"\u0625\u0644\u063a\u0627\u0621",friend_requests_profile_image_alt:"\u0627\u0644\u0635\u0648\u0631\u0629",friend_requests_more_options_label:"\u0627\u0644\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u062e\u064a\u0627\u0631\u0627\u062a",friend_requests_contacts_count_label:"\u062c\u0647\u0627\u062a \u0627\u0644\u0627\u062a\u0635\u0627\u0644",friend_requests_favorites_section:"\u0627\u0644\u0645\u0641\u0636\u0644\u0627\u062a",friend_requests_remove_favorite:"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0645\u0641\u0636\u0644\u0627\u062a",friend_requests_add_favorite:"\u0625\u0636\u0627\u0641\u0629 \u0625\u0644\u0649 \u0627\u0644\u0645\u0641\u0636\u0644\u0627\u062a",friend_requests_remove_contact:"\u0625\u0632\u0627\u0644\u0629 \u062c\u0647\u0629 \u0627\u0644\u0627\u062a\u0635\u0627\u0644",friend_requests_incoming_tab:"\u0627\u0644\u0648\u0627\u0631\u062f\u0629",friend_requests_add_person_tab:"\u0625\u0636\u0627\u0641\u0629 \u0634\u062e\u0635",friend_requests_add_person_search_placeholder:"\u0627\u0628\u062d\u062b \u0628\u0627\u0644\u0640 UID \u0623\u0648 \u0627\u0644\u0645\u0639\u0631\u0641",friend_requests_add_person_hint:"\u0627\u0628\u062d\u062b \u0628\u0627\u0644\u0640 UID \u0623\u0648 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0644\u0625\u0636\u0627\u0641\u0629 \u0634\u062e\u0635",friend_requests_add_person_searching:"\u062c\u0627\u0631\u064d \u0627\u0644\u0628\u062d\u062b...",friend_requests_add_person_no_results:"\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0639\u062b\u0648\u0631 \u0639\u0644\u0649 \u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646",friend_requests_already_related_label:"\u0645\u0631\u062a\u0628\u0637 \u0628\u0627\u0644\u0641\u0639\u0644",friend_requests_request_sent_label:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0637\u0644\u0628",friend_requests_send_request_btn:"\u0625\u0631\u0633\u0627\u0644 \u0637\u0644\u0628",friend_requests_send_request_error:"\u0641\u0634\u0644 \u0641\u064a \u0625\u0631\u0633\u0627\u0644 \u0637\u0644\u0628 \u0627\u0644\u0635\u062f\u0627\u0642\u0629",messages_title:"\u0627\u0644\u0631\u0633\u0627\u0626\u0644",messages_group_fallback:"\u0645\u062c\u0645\u0648\u0639\u0629",messages_search_chats_placeholder:"\u0627\u0628\u062d\u062b \u0641\u064a \u0627\u0644\u0645\u062d\u0627\u062f\u062b\u0627\u062a...",messages_search_groups_placeholder:"\u0627\u0628\u062d\u062b \u0641\u064a \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0627\u062a...",messages_search_aria:"\u0628\u062d\u062b",messages_new_group_aria:"\u0645\u062c\u0645\u0648\u0639\u0629 \u062c\u062f\u064a\u062f\u0629",messages_tab_friends:"\u0627\u0644\u0645\u0639\u0627\u0631\u0641",messages_tab_groups:"\u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0627\u062a",messages_start_chat_now:"\u0627\u0628\u062f\u0623 \u0627\u0644\u0645\u062d\u0627\u062f\u062b\u0629 \u0627\u0644\u0622\u0646...",messages_no_previous_chats:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0643 \u0631\u0633\u0627\u0626\u0644 \u0633\u0627\u0628\u0642\u0629. \u0627\u0646\u0642\u0631 \u0639\u0644\u0649 \u0627\u0644\u0632\u0631 \u0628\u0627\u0644\u0623\u0633\u0641\u0644 \u0644\u0628\u062f\u0621 \u0645\u062d\u0627\u062f\u062b\u0629.",messages_no_results:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0646\u062a\u0627\u0626\u062c \u0645\u0637\u0627\u0628\u0642\u0629.",messages_public_groups:"\u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0627\u0644\u0639\u0627\u0645\u0629",messages_public_groups_subtitle:"\u0627\u0643\u062a\u0634\u0641 \u0648\u0627\u0633\u062a\u0643\u0634\u0641 \u0627\u0644\u0645\u062c\u062a\u0645\u0639\u0627\u062a",messages_no_messages:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0631\u0633\u0627\u0626\u0644...",messages_no_groups:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0644\u062f\u064a\u0643 \u062d\u0627\u0644\u064a\u0627\u064b... \u064a\u0645\u0643\u0646\u0643 \u0625\u0646\u0634\u0627\u0621 \u0645\u062c\u0645\u0648\u0639\u0629 \u0623\u0648 \u0627\u0644\u0627\u0646\u0636\u0645\u0627\u0645 \u0644\u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0645\u0646 \u0627\u0644\u0627\u0633\u062a\u0643\u0634\u0627\u0641.",messages_new_message:"\u0631\u0633\u0627\u0644\u0629 \u062c\u062f\u064a\u062f\u0629",messages_create_group:"\u0625\u0646\u0634\u0627\u0621 \u0645\u062c\u0645\u0648\u0639\u0629",messages_unmute_notifications:"\u0625\u0644\u063a\u0627\u0621 \u0643\u062a\u0645 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a",messages_mute_notifications:"\u0643\u062a\u0645 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a",messages_rename:"\u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u0627\u0633\u0645",messages_cancel_report:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0628\u0644\u0627\u063a",messages_report:"\u0625\u0628\u0644\u0627\u063a",messages_leave_group:"\u0645\u063a\u0627\u062f\u0631\u0629 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",messages_new_chat_search_placeholder:"\u0627\u0628\u062d\u062b \u0639\u0646 \u0634\u062e\u0635...",messages_start_new_chat:"\u0628\u062f\u0621 \u0645\u062d\u0627\u062f\u062b\u0629 \u062c\u062f\u064a\u062f\u0629",messages_no_available_people:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0623\u0634\u062e\u0627\u0635 \u0645\u062a\u0627\u062d\u064a\u0646 \u0644\u0628\u062f\u0621 \u0645\u062d\u0627\u062f\u062b\u0629 \u062c\u062f\u064a\u062f\u0629.",messages_no_results_short:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0646\u062a\u0627\u0626\u062c.",messages_rename_contact_title:"\u062a\u063a\u064a\u064a\u0631 \u0627\u0633\u0645 \u062c\u0647\u0629 \u0627\u0644\u0627\u062a\u0635\u0627\u0644",messages_rename_contact_subtitle:"\u0633\u064a\u0638\u0647\u0631 \u0647\u0630\u0627 \u0627\u0644\u0627\u0633\u0645 \u0641\u0642\u0637 \u0644\u0643",messages_rename_placeholder:"\u0627\u0643\u062a\u0628 \u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u062c\u062f\u064a\u062f...",messages_cancel:"\u0625\u0644\u063a\u0627\u0621",messages_save:"\u062d\u0641\u0638",quran_title:"\u0627\u0644\u0642\u0631\u0622\u0646 \u0627\u0644\u0643\u0631\u064a\u0645",quran_my_list:"\u0642\u0627\u0626\u0645\u062a\u064a",quran_loading:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",quran_search_placeholder:"\u0627\u0628\u062d\u062b \u0639\u0646 \u0633\u0648\u0631\u0629...",quran_sync_success_title:"\u062a\u0645\u062a \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629",quran_sync_success_message:"\u062a\u0645\u062a \u0645\u0632\u0627\u0645\u0646\u0629 {count} \u062a\u063a\u064a\u064a\u0631 \u0645\u0639 \u0627\u0644\u0633\u064a\u0631\u0641\u0631 \u0628\u0646\u062c\u0627\u062d",quran_offline_title:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0627\u062a\u0635\u0627\u0644",quran_offline_message:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0644\u062f\u064a\u0643 \u0625\u0646\u062a\u0631\u0646\u062a \u0641\u064a \u0627\u0644\u0648\u0642\u062a \u0627\u0644\u062d\u0627\u0644\u064a\u060c \u0633\u064a\u062a\u0645 \u062d\u0641\u0638 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u062f\u0627\u062e\u0644\u064a\u0627\u064b \u0648\u0645\u0632\u0627\u0645\u0646\u062a\u0647\u0627 \u0645\u0639 \u0627\u0644\u0633\u064a\u0631\u0641\u0631 \u0639\u0646\u062f \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0644\u0627\u062d\u0642\u0627\u064b.",quran_unavailable_offline_title:"\u063a\u064a\u0631 \u0645\u062a\u0627\u062d \u0623\u0648\u0641\u0644\u0627\u064a\u0646",quran_unavailable_offline_message:"\u0647\u0630\u0647 \u0627\u0644\u0633\u0648\u0631\u0629 \u0644\u0645 \u062a\u064f\u0641\u062a\u062d \u0645\u0646 \u0642\u0628\u0644 \u0648\u0644\u0627 \u064a\u0648\u062c\u062f \u0644\u0647\u0627 \u0646\u0633\u062e\u0629 \u0645\u062d\u0641\u0648\u0638\u0629. \u064a\u0631\u062c\u0649 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0627\u0644\u0625\u0646\u062a\u0631\u0646\u062a \u0644\u0641\u062a\u062d\u0647\u0627 \u0623\u0648\u0644 \u0645\u0631\u0629.",quran_tab_reading:"\u0627\u0644\u0642\u0631\u0627\u0621\u0629",quran_tab_details:"\u0627\u0644\u062a\u0641\u0627\u0635\u064a\u0644",quran_no_cac
2hed_surah:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0627\u062a\u0635\u0627\u0644 \u0628\u0627\u0644\u0625\u0646\u062a\u0631\u0646\u062a \u0648\u0644\u0627 \u062a\u0648\u062c\u062f \u0646\u0633\u062e\u0629 \u0645\u062d\u0641\u0648\u0638\u0629 \u0644\u0647\u0630\u0647 \u0627\u0644\u0633\u0648\u0631\u0629.",quran_open_once_hint:"\u0627\u0641\u062a\u062d\u0647\u0627 \u0645\u0631\u0629 \u0648\u0627\u062d\u062f\u0629 \u0623\u062b\u0646\u0627\u0621 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u062d\u062a\u0649 \u062a\u064f\u062d\u0641\u0638 \u0644\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u062f\u0648\u0646 \u0625\u0646\u062a\u0631\u0646\u062a.",quran_reset_progress_title:"\u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646 \u0627\u0644\u062a\u0642\u062f\u0645",quran_skip_ayahs_title:"\u062a\u062e\u0637\u064a \u0622\u064a\u0627\u062a",quran_skip_ayahs_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0623\u0646\u0643 \u0642\u0631\u0623\u062a \u062d\u062a\u0649 \u0627\u0644\u0622\u064a\u0629 {target}\u061f \u0622\u062e\u0631 \u0622\u064a\u0629 \u0642\u0631\u0623\u062a\u0647\u0627 \u0643\u0627\u0646\u062a \u0627\u0644\u0622\u064a\u0629 {last}",quran_reset_progress_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646 \u062a\u0642\u062f\u0645 \u0642\u0631\u0627\u0621\u0629 \u0633\u0648\u0631\u0629 {surah}\u061f \u0633\u064a\u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u062a\u0642\u062f\u0645 \u0628\u0627\u0644\u0643\u0627\u0645\u0644.",quran_info_type:"\u0627\u0644\u0646\u0648\u0639",quran_info_ayahs:"\u0639\u062f\u062f \u0627\u0644\u0622\u064a\u0627\u062a",quran_info_surah_number:"\u0631\u0642\u0645 \u0627\u0644\u0633\u0648\u0631\u0629",quran_memorization_status:"\u062d\u0627\u0644\u0629 \u0627\u0644\u062d\u0641\u0638",quran_status_none:"-- \u0644\u0627 \u064a\u0648\u062c\u062f --",quran_status_want_to_memorize:"\u0623\u0631\u063a\u0628 \u0628\u062d\u0641\u0638\u0647\u0627",quran_status_memorizing:"\u0623\u062d\u0641\u0638\u0647\u0627 \u062d\u0627\u0644\u064a\u0627\u064b",quran_status_memorized:"\u062a\u0645 \u062d\u0641\u0638\u0647\u0627",quran_status_later:"\u0623\u062d\u0641\u0638\u0647\u0627 \u0644\u0627\u062d\u0642\u0627\u064b",quran_status_difficult:"\u0635\u0639\u0628\u0629 \u0627\u0644\u062d\u0641\u0638",quran_revelation_meccan:"\u0645\u0643\u064a\u0629",quran_revelation_medinan:"\u0645\u062f\u0646\u064a\u0629",quran_ayah_count:"{count} \u0622\u064a\u0629",my_quran_list_empty_status:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0633\u0648\u0631 \u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u062d\u0627\u0644\u0629",deleted_posts_title:"\u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062d\u0630\u0648\u0641\u0629",deleted_posts_checking_permissions:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u0644\u0635\u0644\u0627\u062d\u064a\u0627\u062a...",deleted_posts_no_permission:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0635\u0644\u0627\u062d\u064a\u0627\u062a \u0644\u0644\u0648\u0635\u0648\u0644 \u0644\u0647\u0630\u0647 \u0627\u0644\u0635\u0641\u062d\u0629",deleted_posts_search_placeholder:"\u0627\u0628\u062d\u062b \u0628\u0640 Post ID \u0623\u0648 User ID \u0623\u0648 \u0627\u0644\u0627\u0633\u0645...",deleted_posts_search_prompt:"\u0627\u0628\u062d\u062b \u0644\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062d\u0630\u0648\u0641\u0629 (\u064a\u062a\u0645 \u0627\u0644\u062a\u062d\u0645\u064a\u0644 \u0641\u0642\u0637 \u0628\u0639\u062f \u0627\u0644\u0628\u062d\u062b \u0644\u062a\u0648\u0641\u064a\u0631 \u0627\u0644\u0627\u0633\u062a\u0647\u0644\u0627\u0643)",deleted_posts_loading:"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062d\u0630\u0648\u0641\u0629...",deleted_posts_empty:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0645\u062d\u0630\u0648\u0641\u0629",deleted_posts_no_results:"\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0639\u062b\u0648\u0631 \u0639\u0644\u0649 \u0646\u062a\u0627\u0626\u062c \u0644\u0644\u0628\u062d\u062b",deleted_posts_deleted_at:"\u0645\u062d\u0630\u0648\u0641",deleted_posts_recover_title:"\u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",deleted_posts_recover_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f",deleted_posts_recover_confirm:"\u0627\u0633\u062a\u0639\u0627\u062f\u0629",deleted_posts_permanent_delete_title:"\u062d\u0630\u0641 \u0646\u0647\u0627\u0626\u064a",deleted_posts_permanent_delete_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0628\u0634\u0643\u0644 \u0646\u0647\u0627\u0626\u064a\u061f \u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0644\u062a\u0631\u0627\u062c\u0639 \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0625\u062c\u0631\u0627\u0621.",deleted_posts_permanent_delete_confirm:"\u062d\u0630\u0641 \u0646\u0647\u0627\u0626\u064a",deleted_posts_yes:"\u0646\u0639\u0645",deleted_posts_cancel:"\u0625\u0644\u063a\u0627\u0621",create_post_list_title:"\u0625\u0646\u0634\u0627\u0621 \u0642\u0627\u0626\u0645\u0629 \u062c\u062f\u064a\u062f\u0629",create_post_list_image_label:"\u0635\u0648\u0631\u0629 \u0627\u0644\u0642\u0627\u0626\u0645\u0629",create_post_list_uploading:"\u062c\u0627\u0631\u064a \u0627\u0644\u0631\u0641\u0639...",create_post_list_image_hint:"\u0627\u0636\u063a\u0637 \u0644\u0627\u062e\u062a\u064a\u0627\u0631 \u0635\u0648\u0631\u0629 \u0627\u0644\u063a\u0644\u0627\u0641 \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u0627\u0644\u0642\u0627\u0626\u0645\u0629",create_post_list_name_label:"\u0627\u0633\u0645 \u0627\u0644\u0642\u0627\u0626\u0645\u0629",create_post_list_name_placeholder:"\u0623\u062f\u062e\u0644 \u0627\u0633\u0645 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0647\u0646\u0627...",create_post_list_create_button:"\u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0642\u0627\u0626\u0645\u0629",create_post_list_creating:"\u062c\u0627\u0631\u064a \u0627\u0644\u0625\u0646\u0634\u0627\u0621...",create_post_list_valid_image_required:"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u062e\u062a\u064a\u0627\u0631 \u0635\u0648\u0631\u0629 \u0635\u0627\u0644\u062d\u0629",create_post_list_upload_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0631\u0641\u0639 \u0627\u0644\u0635\u0648\u0631\u0629",create_post_list_name_and_image_required:"\u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u062f\u062e\u0627\u0644 \u0627\u0633\u0645 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0648\u0627\u062e\u062a\u064a\u0627\u0631 \u0635\u0648\u0631\u0629",create_post_list_success:"\u062a\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0628\u0646\u062c\u0627\u062d!",create_post_list_create_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0642\u0627\u0626\u0645\u0629",saved_posts_title:"\u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062d\u0641\u0648\u0638\u0629",saved_posts_loading:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",saved_posts_empty:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0645\u062d\u0641\u0648\u0638\u0629",team_posts_loading:"\u062a\u062d\u0645\u064a\u0644...",team_posts_team_fallback:"\u0627\u0644\u0641\u0631\u064a\u0642",team_posts_empty:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0644\u0647\u0630\u0627 \u0627\u0644\u0641\u0631\u064a\u0642",team_posts_load_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0641\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a",team_posts_try_another:"\u062c\u0631\u0628 \u0627\u0644\u0628\u062d\u062b \u0639\u0646 \u0641\u0631\u064a\u0642 \u0622\u062e\u0631",team_posts_back_home:"\u0627\u0644\u0639\u0648\u062f\u0629 \u0625\u0644\u0649 \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629",team_posts_count:"{count} \u0645\u0646\u0634\u0648\u0631",team_posts_level:"\u0627\u0644\u0645\u0633\u062a\u0648\u0649: {level}",hashtag_posts_loading:"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a...",hashtag_posts_empty:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0628\u0647\u0630\u0627 \u0627\u0644\u0647\u0627\u0634\u062a\u0627\u0642 \u062d\u062a\u0649 \u0627\u0644\u0622\u0646",hashtag_posts_load_error:"\u062a\u0639\u0630\u0631 \u062a\u062d\u0645\u064a\u0644 \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0647\u0627\u0634\u062a\u0627\u0642",profile_menu_no_daily_quiz_today:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0633\u0624\u0627\u0644 \u0645\u062a\u0627\u062d \u0644\u0644\u064a\u0648\u0645",profile_menu_frame_alt:"\u0625\u0637\u0627\u0631 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a",profile_menu_verified_alt:"\u0645\u0648\u062b\u0642",profile_menu_coin_alt:"\u0639\u0645\u0644\u0629",profile_menu_point_alt:"\u0646\u0642\u0637\u0629",profile_menu_ok:"\u0645\u0648\u0627\u0641\u0642",manage_hashtags_title:"\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0647\u0627\u0634\u062a\u0627\u063a\u0627\u062a",manage_hashtags_loading:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",manage_hashtags_empty:"\u0644\u0645 \u062a\u0642\u0645 \u0628\u0625\u0646\u0634\u0627\u0621 \u0623\u064a \u0647\u0627\u0634\u062a\u0627\u063a\u0627\u062a \u0628\u0639\u062f",manage_hashtags_usage_count:"\u0627\u0633\u062a\u062e\u062f\u0645 {count} \u0645\u0631\u0629",manage_hashtags_private:"\u062e\u0627\u0635",manage_hashtags_delete_title:"\u062d\u0630\u0641 \u0627\u0644\u0647\u0627\u0634\u062a\u0627\u063a",manage_hashtags_delete_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u062d\u0630\u0641 \u0627\u0644\u0647\u0627\u0634\u062a\u0627\u063a #{hashtag}\u061f",staff_loading:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",staff_title:"\u0637\u0627\u0642\u0645 \u0627\u0644\u0645\u0634\u0631\u0641\u064a\u0646",staff_empty:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0628\u064a\u0627\u0646\u0627\u062a \u0645\u062a\u0627\u062d\u0629",staff_group_1:"\u0627\u0644\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0639\u0644\u064a\u0627",staff_group_technical_content:"\u0642\u0633\u0645 \u0641\u0646\u064a \u0645\u062d\u062a\u0648\u0649",staff_group_2:"\u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649",staff_group_3:"\u0642\u0633\u0645 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",staff_group_4:"\u0642\u0633\u0645 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a",staff_group_5:"\u0623\u062e\u0631\u0649",staff_role_1:"\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645",staff_role_1_5:"\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645",staff_role_1_6:"\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0641\u0646\u064a \u0645\u062d\u062a\u0648\u0649",staff_role_1_7:"\u0641\u0646\u064a \u0645\u062d\u062a\u0648\u0649",staff_role_2:"\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649",staff_role_3:"\u0645\u0634\u0631\u0641 \u0627\u0644\u0645\u062d\u062a\u0648\u0649",staff_role_4:"\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",staff_role_5:"\u0645\u0634\u0631\u0641 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",staff_role_6:"\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a",staff_role_7:"\u0645\u0634\u0631\u0641 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a",staff_role_10:"\u063a\u064a\u0631 \u0645\u062e\u0635\u0635",staff_role_user:"\u
20645\u0633\u062a\u062e\u062f\u0645",staff_role_unassigned:"\u063a\u064a\u0631 \u0645\u062e\u0635\u0635",staff_change_role_title:"\u062a\u063a\u064a\u064a\u0631 \u0631\u062a\u0628\u0629 {name}",staff_save:"\u062d\u0641\u0638",staff_cancel:"\u0625\u0644\u063a\u0627\u0621",tasbeeh_title:"\u0645\u0633\u0627\u0628\u0642\u0629 \u0627\u0644\u0623\u0630\u0643\u0627\u0631",tasbeeh_tab_recent:"\u0645\u0624\u062e\u0631\u0627\u064b",tasbeeh_tab_favorites:"\u0627\u0644\u0645\u0641\u0636\u0644\u0629",tasbeeh_tab_main:"\u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629",tasbeeh_empty_favorites:"\u0644\u0645 \u062a\u0642\u0645 \u0628\u0625\u0636\u0627\u0641\u0629 \u0634\u064a\u0621 \u0625\u0644\u0649 \u0627\u0644\u0645\u0641\u0636\u0644\u0629 \u0628\u0639\u062f",tasbeeh_empty_recent:"\u0644\u0645 \u062a\u0642\u0645 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0623\u064a \u0623\u0630\u0643\u0627\u0631 \u0645\u0624\u062e\u0631\u0627\u064b",tasbeeh_show_adhkar:"\u0639\u0631\u0636 \u0627\u0644\u0623\u0630\u0643\u0627\u0631",tasbeeh_counter_sync_title:"\u062a\u0645\u062a \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629",tasbeeh_counter_sync_message:"\u062a\u0645\u062a \u0645\u0632\u0627\u0645\u0646\u0629 \u062a\u0642\u062f\u0645\u0643 \u0645\u0639 \u0627\u0644\u0633\u064a\u0631\u0641\u0631 \u0628\u0646\u062c\u0627\u062d",tasbeeh_counter_offline_title:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0627\u062a\u0635\u0627\u0644",tasbeeh_counter_offline_message:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0644\u062f\u064a\u0643 \u0625\u0646\u062a\u0631\u0646\u062a \u0641\u064a \u0627\u0644\u0648\u0642\u062a \u0627\u0644\u062d\u0627\u0644\u064a\u060c \u0633\u064a\u062a\u0645 \u062d\u0641\u0638 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u062f\u0627\u062e\u0644\u064a\u0627\u064b \u0648\u0645\u0632\u0627\u0645\u0646\u062a\u0647\u0627 \u0639\u0646\u062f \u0641\u062a\u062d \u0627\u0644\u0635\u0641\u062d\u0629 \u0644\u0627\u062d\u0642\u0627\u064b.",tasbeeh_counter_purple_potion_title:"\u062a\u0645 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 Purple Potion",tasbeeh_counter_purple_potion_message:"\u062a\u0645 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 Purple Lazy Potion \u0648\u062d\u0641\u0638 \u062a\u0642\u062f\u0645\u0643 \u0641\u064a \u0627\u0644\u062a\u0633\u0627\u0628\u064a\u062d \u0648\u0627\u0644\u0623\u0630\u0643\u0627\u0631 \u0645\u0639\u0627\u064b.",tasbeeh_counter_streak_broken_title:"\u0627\u0646\u0642\u0637\u0639 \u0627\u0644\u062a\u0642\u062f\u0645",tasbeeh_counter_streak_broken_message:"\u0627\u0646\u0642\u0637\u0639\u062a \u0633\u0644\u0633\u0644\u0629 \u0627\u0644\u062a\u0642\u062f\u0645 \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u0643 \u0648\u0643\u0627\u0646\u062a {count} \u064a\u0648\u0645. \u0627\u0628\u062f\u0623 \u0645\u0646 \u062c\u062f\u064a\u062f.",tasbeeh_counter_blue_potion_title:"\u062a\u0645 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 Blue Potion",tasbeeh_counter_blue_potion_message:"\u062a\u0645 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 Blue Lazy Potion \u0644\u0644\u062d\u0641\u0627\u0638 \u0639\u0644\u0649 \u062a\u0642\u062f\u0645 \u0627\u0644\u062a\u0633\u0627\u0628\u064a\u062d.",tasbeeh_counter_badge_name:"\u062f\u0631\u0639 \u0627\u0644\u0645\u0633\u062a\u0648\u0649 {level}",tasbeeh_counter_badge_updated_title:"\u062a\u0645 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0634\u0627\u0631\u0629",tasbeeh_counter_badge_updated_message:"\u062a\u0647\u0627\u0646\u064a\u0646\u0627! \u062a\u0645\u062a \u062a\u0631\u0642\u064a\u0629 \u0634\u0627\u0631\u062a\u0643 \u0625\u0644\u0649 \u062f\u0631\u0639 \u0627\u0644\u0645\u0633\u062a\u0648\u0649 {level} \u0628\u0639\u062f {count} \u064a\u0648\u0645 \u0645\u062a\u0648\u0627\u0635\u0644.",tasbeeh_counter_badge_new_title:"\u0634\u0627\u0631\u0629 \u062c\u062f\u064a\u062f\u0629",tasbeeh_counter_badge_new_message:"\u062a\u0647\u0627\u0646\u064a\u0646\u0627! \u062d\u0635\u0644\u062a \u0639\u0644\u0649 \u062f\u0631\u0639 \u0627\u0644\u0645\u0633\u062a\u0648\u0649 {level} \u0628\u0639\u062f {count} \u064a\u0648\u0645 \u0645\u062a\u0648\u0627\u0635\u0644.",tasbeeh_counter_temp_block_title:"\u0645\u062d\u0638\u0648\u0631 \u0645\u0624\u0642\u062a\u0627\u064b",tasbeeh_counter_temp_block_message:"\u062a\u0645 \u062a\u0641\u0639\u064a\u0644 \u062d\u0638\u0631 \u0645\u0624\u0642\u062a \u0644\u0645\u062f\u0629 {count} \u062f\u0642\u064a\u0642\u0629 \u0628\u0633\u0628\u0628 \u0645\u062d\u0627\u0648\u0644\u0627\u062a \u0627\u0644\u063a\u0634. \u062d\u0627\u0648\u0644 \u0644\u0627\u062d\u0642\u0627\u064b.",tasbeeh_counter_no_cheating_title:"\u0645\u0645\u0646\u0648\u0639 \u0627\u0644\u063a\u0634",tasbeeh_counter_no_cheating_message:"\u0627\u0644\u063a\u0634 \u063a\u064a\u0631 \u0645\u0633\u0645\u0648\u062d. \u062a\u0645 \u062a\u0641\u0639\u064a\u0644 \u062d\u0638\u0631 \u0645\u0624\u0642\u062a \u0644\u0645\u062f\u0629 {count} \u062f\u0642\u064a\u0642\u0629.",tasbeeh_counter_next_level:"\u0627\u0644\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u062a\u0627\u0644\u064a",tasbeeh_counter_streak_days:"{count} \u064a\u0648\u0645 \u0645\u062a\u0648\u0627\u0635\u0644",tasbeeh_counter_tap_anywhere:"\u0627\u0636\u063a\u0637 \u0641\u064a \u0623\u064a \u0645\u0643\u0627\u0646 \u0644\u0644\u062a\u0633\u0628\u064a\u062d",tasbeeh_counter_achievement_title:"\ud83c\udf96\ufe0f \u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 \u062c\u062f\u064a\u062f\u0629!",tasbeeh_counter_achievement_message:'\u
20648\u0635\u0644\u062a \u0625\u0644\u0649 {count} \u0630\u0643\u0631! \u062d\u0635\u0644\u062a \u0639\u0644\u0649 \u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 "\u0630\u0627\u0643\u0631" \ud83d\udcff',tasbeeh_counter_goal_modal_title:"\u0627\u0644\u0647\u062f\u0641 \u0627\u0644\u064a\u0648\u0645\u064a",tasbeeh_counter_goal_modal_description:"\u0627\u062e\u062a\u0631 \u0639\u062f\u062f \u0627\u0644\u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0630\u064a \u062a\u062d\u062a\u0627\u062c \u0644\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u064a\u0647 \u0644\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 \u0648\u0627\u062d\u062f\u0629.",tasbeeh_counter_goal_modal_label:"\u0627\u0644\u0647\u062f\u0641",tasbeeh_counter_goal_modal_save:"\u062d\u0641\u0638",tasbeeh_counter_goal_modal_cancel:"\u0625\u0644\u063a\u0627\u0621",tasbeeh_counter_goal_modal_invalid:"\u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u062f\u062e\u0627\u0644 \u0631\u0642\u0645 \u0628\u064a\u0646 {min} \u0648 {max}",tasbeeh_sequence_mode:"\u0648\u0636\u0639 \u0627\u0644\u062a\u0633\u0644\u0633\u0644",tasbeeh_sequence_hint:"\u0627\u062e\u062a\u0631 \u0627\u0644\u0623\u0630\u0643\u0627\u0631 \u0628\u0627\u0644\u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0630\u064a \u062a\u0631\u064a\u062f \u0627\u0644\u062a\u0633\u0628\u064a\u062d \u0628\u0647",tasbeeh_sequence_start:"\u0627\u0628\u062f\u0623 \u0627\u0644\u062a\u0633\u0644\u0633\u0644 ({count})",tasbeeh_sequence_cancel:"\u0625\u0644\u063a\u0627\u0621",tasbeeh_sequence_min_error:"\u0627\u062e\u062a\u0631 \u0630\u0643\u0631\u064a\u0646 \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644 \u0644\u0628\u062f\u0621 \u0627\u0644\u062a\u0633\u0644\u0633\u0644",tasbeeh_sequence_progress:"\u0627\u0644\u0630\u0643\u0631 {current} \u0645\u0646 {total}",tasbeeh_sequence_mix_total:"\u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u0645\u0632\u064a\u062c: {count}",tasbeeh_sequence_next_label:"\u0627\u0644\u0630\u0643\u0631 \u0627\u0644\u062a\u0627\u0644\u064a",tasbeeh_sequence_complete_title:"\u0623\u0643\u0645\u0644\u062a \u0627\u0644\u0633\u0644\u0633\u0644\u0629! \ud83c\udf89",tasbeeh_sequence_complete_message:"\u0623\u062d\u0633\u0646\u062a! \u0623\u0643\u0645\u0644\u062a \u062c\u0645\u064a\u0639 \u0627\u0644\u0623\u0630\u0643\u0627\u0631 \u0641\u064a \u0633\u0644\u0633\u0644\u062a\u0643.",store_title:"\u0645\u062a\u062c\u0631 \u0627\u0645\u0628\u0648\u0633\u062a\u0631",store_subtitle:"\u0627\u0643\u062a\u0634\u0641 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u0648\u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062a \u0627\u0644\u0645\u0641\u064a\u062f\u0629",store_points_unit:"\u0646\u0642\u0637\u0629",store_coins_unit:"\u0639\u0645\u0644\u0629",store_current_pack:"\u0627\u0644\u062d\u0632\u0645\u0629 \u0627\u0644\u062d\u0627\u0644\u064a\u0629",store_active_pack:"\u0627\u0644\u062d\u0632\u0645\u0629 \u0627\u0644\u0646\u0634\u0637\u0629",store_remaining_days:"\u0645\u062a\u0628\u0642\u064a {count} \u064a\u0648\u0645",store_expired:"\u0645\u0646\u062a\u0647\u064a\u0629 \u0627\u0644\u0635\u0644\u0627\u062d\u064a\u0629",store_coming_soon:"\u0642\u0631\u064a\u0628\u0627\u064b",store_category_conversion:"\u062a\u062d\u0648\u064a\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u062a \u0648\u0627\u0644\u0646\u0642\u0627\u0637",store_category_potions:"\u0645\u062a\u062c\u0631 \u0627\u0644\u0623\u062f\u0648\u0627\u062a",store_category_reactions:"\u0623\u064a\u0642\u0648\u0646\u0627\u062a \u0627\u0644\u062a\u0641\u0627\u0639\u0644",store_category_stickers:"\u0645\u062a\u062c\u0631 \u0627\u0644\u0645\u0644\u0635\u0642\u0627\u062a",store_category_bubbles:"\u0645\u062a\u062c\u0631 \u0627\u0644\u0641\u0642\u0627\u0639\u0627\u062a",store_category_frames:"\u0625\u0637\u0627\u0631\u0627\u062a \u0627\u0644\u0628\u0631\u0648\u0641\u0627\u064a\u0644",store_category_themes:"\u0644\u0627\u062d\u0642\u0627\u064b",store_category_special:"\u0639\u0631\u0648\u0636 \u062e\u0627\u0635\u0629",store_convert_coins_to_points:"\u062a\u062d\u0648\u064a\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u062a \u0625\u0644\u0649 \u0646\u0642\u0627\u0637",store_convert_points_to_coins:"\u062a\u062d\u0648\u064a\u0644 \u0627\u0644\u0646\u0642\u0627\u0637 \u0625\u0644\u0649 \u0639\u0645\u0644\u0627\u062a",store_convert_coins_subtitle:"\u062d\u0648\u0651\u0644 \u0639\u0645\u0644\u0627\u062a\u0643 \u0625\u0644\u0649 \u0646\u0642\u0627\u0637 \u0644\u0634\u0631\u0627\u0621 \u0627\u0644\u0639\u0646\u0627\u0635\u0631",store_convert_points_subtitle:"\u062d\u0648\u0651\u0644 \u0646\u0642\u0627\u0637\u0643 \u0625\u0644\u0649 \u0639\u0645\u0644\u0627\u062a",store_current_tax:"\u0627\u0644\u0636\u0631\u064a\u0628\u0629 \u0627\u0644\u062d\u0627\u0644\u064a\u0629",store_example:"\u0645\u062b\u0627\u0644",store_conversion_amount_label:"\u0627\u0644\u0645\u0628\u0644\u063a \u0627\u0644\u0645\u0631\u0627\u062f \u062a\u062d\u0648\u064a\u0644\u0647 ({unit})",store_enter_amount:"\u0623\u062f\u062e\u0644 \u0627\u0644\u0645\u0628\u0644\u063a",store_coins_to_convert:"\u0627\u0644\u0639\u0645\u0644\u0627\u062a \u0627\u0644\u0645\u0631\u0627\u062f \u062a\u062d\u0648\u064a\u0644\u0647\u0627",store_points_to_convert:"\u0627\u0644\u0646\u0642\u0627\u0637 \u0627\u0644\u0645\u0631\u0627\u062f \u062a\u062d\u0648\u064a\u0644\u0647\u0627",store_tax:"\u0627\u0644\u0636\u0631\u064a\u0628\u0629",store_points_received:"\u0627\u0644\u0646\u0642\u0627\u0637 \u0627\u0644\u0645\u0633\u062a\u0644\u0645\u0629",store_coins_received:"\u0627\u0644\u0639\u0645\u0644\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u0644\u0645\u0629",store_not_enough_points:"\u0627\u0644\u0645\u0639\u0630\u0631\u0629\u
2060c \u0644\u0627 \u062a\u0645\u0644\u0643 \u0646\u0642\u0627\u0637\u0627\u064b \u0643\u0627\u0641\u064a\u0629",store_not_enough_points_purchase:"\u0646\u0642\u0627\u0637\u0643 \u063a\u064a\u0631 \u0643\u0627\u0641\u064a\u0629 \u0644\u0625\u062a\u0645\u0627\u0645 \u0627\u0644\u0634\u0631\u0627\u0621",store_purchase_success_named:"\u062a\u0645 \u0634\u0631\u0627\u0621 {name} \u0628\u0646\u062c\u0627\u062d!",store_purchase_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0627\u0644\u0634\u0631\u0627\u0621",store_blue_potion_name:"\u062c\u0631\u0639\u0629 \u0627\u0644\u0643\u0633\u0644 \u0627\u0644\u0632\u0631\u0642\u0627\u0621",store_blue_potion_desc:"\u062a\u062d\u0645\u064a \u0633\u0644\u0633\u0644\u0629 \u0627\u0644\u062a\u0633\u0628\u064a\u062d \u0645\u0646 \u0627\u0644\u0627\u0646\u0642\u0637\u0627\u0639",store_orange_potion_name:"\u062c\u0631\u0639\u0629 \u0627\u0644\u0643\u0633\u0644 \u0627\u0644\u0628\u0631\u062a\u0642\u0627\u0644\u064a\u0629",store_orange_potion_desc:"\u062a\u062d\u0645\u064a \u0633\u0644\u0633\u0644\u0629 \u0627\u0644\u0623\u0630\u0643\u0627\u0631 \u0645\u0646 \u0627\u0644\u0627\u0646\u0642\u0637\u0627\u0639",store_purple_potion_name:"\u062c\u0631\u0639\u0629 \u0627\u0644\u0643\u0633\u0644 \u0627\u0644\u0646\u0627\u062f\u0631\u0629",store_purple_potion_desc:"\u062a\u062d\u0645\u064a \u0633\u0644\u0633\u0644\u0629 \u0627\u0644\u062a\u0633\u0628\u064a\u062d \u0648\u0627\u0644\u0623\u0630\u0643\u0627\u0631 \u0645\u0639\u0627\u064b",store_potions_title:"\u0645\u062a\u062c\u0631 \u0627\u0644\u0623\u062f\u0648\u0627\u062a",store_potions_subtitle:"\u0627\u062d\u0645\u0650 \u062a\u0642\u062f\u0645\u0643 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u062c\u0631\u0639\u0627\u062a \u0627\u0644\u0643\u0633\u0644",store_owned_count:"\u062a\u0645\u0644\u0643: {count}",store_buying:"\u062c\u0627\u0631\u064a \u0627\u0644\u0634\u0631\u0627\u0621...",store_buy:"\u0634\u0631\u0627\u0621",store_confirm_purchase_title:"\u062a\u0623\u0643\u064a\u062f \u0627\u0644\u0634\u0631\u0627\u0621",store_confirm_purchase_message:"\u0647\u0644 \u062a\u0648\u062f \u0634\u0631\u0627\u0621 {name}\u061f",store_yes:"\u0646\u0639\u0645",store_no:"\u0644\u0627",store_stickers_title:"\u0645\u062a\u062c\u0631 \u0627\u0644\u0645\u0644\u0635\u0642\u0627\u062a",store_stickers_subtitle:"\u0627\u0634\u062a\u0631\u0650 \u062d\u0632\u0645 \u0645\u0644\u0635\u0642\u0627\u062a \u0644\u062a\u0645\u064a\u064a\u0632 \u0645\u062d\u0627\u062f\u062b\u0627\u062a\u0643",store_sticker:"\u0645\u0644\u0635\u0642",store_stickers_preview:"\u0645\u0639\u0627\u064a\u0646\u0629 \u0627\u0644\u0645\u0644\u0635\u0642\u0627\u062a",store_sticker_purchase_success:"\u062a\u0645 \u0634\u0631\u0627\u0621 \u062d\u0632\u0645\u0629 \u0627\u0644\u0645\u0644\u0635\u0642\u0627\u062a \u0628\u0646\u062c\u0627\u062d!",store_owned:"\u0645\u0645\u0644\u0648\u0643\u0629",store_already_owned:"\u0645\u0645\u0644\u0648\u0643\u0629 \u0628\u0627\u0644\u0641\u0639\u0644",store_no_stickers:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0644\u0635\u0642\u0627\u062a \u0645\u062a\u0627\u062d\u0629 \u0644\u0644\u0634\u0631\u0627\u0621 \u062d\u0627\u0644\u064a\u0627\u064b.",store_preview:"\u0645\u0639\u0627\u064a\u0646\u0629",store_reactions_title:"\u0645\u062a\u062c\u0631 \u0627\u0644\u0623\u064a\u0642\u0648\u0646\u0627\u062a \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u064a\u0629",store_reactions_subtitle:"\u0627\u062e\u062a\u0631 \u062d\u0632\u0645\u062a\u0643 \u0627\u0644\u0645\u0641\u0636\u0644\u0629 \u0645\u0646 \u0627\u0644\u0623\u064a\u0642\u0648\u0646\u0627\u062a",store_reaction_pack_name:"\u062d\u0632\u0645\u0629 \u0627\u0644\u0623\u064a\u0642\u0648\u0646\u0627\u062a {number}",store_reaction_pack_default_desc:"\u0627\u0644\u062d\u0632\u0645\u0629 \u0627\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a\u0629 - \u0645\u062c\u0627\u0646\u064a\u0629",store_reaction_pack_desc:"\u0645\u062c\u0645\u0648\u0639\u0629 \u0645\u0646 7 \u0623\u064a\u0642\u0648\u0646\u0627\u062a \u062a\u0641\u0627\u0639\u0644\u064a\u0629 \u0641\u0631\u064a\u062f\u0629 - \u0635\u0627\u0644\u062d\u0629 \u0644\u0645\u062f\u0629 30 \u064a\u0648\u0645",store_reactions_preview:"\u0645\u0639\u0627\u064a\u0646\u0629 \u0627\u0644\u0623\u064a\u0642\u0648\u0646\u0627\u062a",store_active:"\u0646\u0634\u0637\u0629",store_free:"\u0645\u062c\u0627\u0646\u064a",store_active_now:"\u0646\u0634\u0637\u0629 \u0627\u0644\u0622\u0646",store_activate:"\u062a\u0641\u0639\u064a\u0644",store_activate_free:"\u062a\u0641\u0639\u064a\u0644 \u0645\u062c\u0627\u0646\u0627\u064b",store_loading:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",store_login_required:"\u064a\u062c\u0628 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0627\u0644\u0645\u062a\u062c\u0631",moderation_logs_title:"\u0633\u062c\u0644 \u0625\u062c\u0631\u0627\u0621\u0627\u062a \u0627\u0644\u0645\u0634\u0631\u0641\u064a\u0646",moderation_logs_loading:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",moderation_logs_tab_logs:"\u0627\u0644\u0633\u062c\u0644",moderation_logs_tab_stats:"\u0627\u0644\u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a",moderation_logs_total_actions:"\u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u0625\u062c\u0631\u0627\u0621\u0627\u062a",moderation_logs_need_verification:"\u0625\u062c\u0631\u0627\u0621\u0627\u062a \u062a\u062d\u062a\u0627\u062c \u062a\u062d\u0642\u0642",moderation_logs_verified_actions:"\u0625\u062c\u0631\u0627\u0621\u0627\u062a \u062a\u0645 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646\u0647\u0627",moderation_logs_by_action_type:"\u
2062d\u0633\u0628 \u0646\u0648\u0639 \u0627\u0644\u0625\u062c\u0631\u0627\u0621",moderation_logs_by_content_type:"\u062d\u0633\u0628 \u0646\u0648\u0639 \u0627\u0644\u0645\u062d\u062a\u0648\u0649",moderation_logs_by_block_type:"\u062d\u0633\u0628 \u0646\u0648\u0639 \u0627\u0644\u062d\u0638\u0631",moderation_logs_action_block:"\u062d\u0638\u0631",moderation_logs_action_block_theft:"\u062d\u0638\u0631 \u0633\u0631\u0642\u0629 \u0645\u062d\u062a\u0648\u0649",moderation_logs_action_block_abuse:"\u062d\u0638\u0631 \u0625\u0633\u0627\u0621\u0629",moderation_logs_action_block_legal:"\u062d\u0638\u0631 \u0645\u062e\u0627\u0644\u0641\u0629 \u0642\u0627\u0646\u0648\u0646\u064a\u0629",moderation_logs_action_unblock:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631",moderation_logs_action_unblock_theft:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0633\u0631\u0642\u0629 \u0645\u062d\u062a\u0648\u0649",moderation_logs_action_unblock_abuse:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0625\u0633\u0627\u0621\u0629",moderation_logs_action_unblock_legal:"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0645\u062e\u0627\u0644\u0641\u0629 \u0642\u0627\u0646\u0648\u0646\u064a\u0629",moderation_logs_action_delete:"\u062d\u0630\u0641 \u0645\u0646\u0634\u0648\u0631",moderation_logs_action_delete_short:"\u062d\u0630\u0641",moderation_logs_action_report:"\u0625\u0628\u0644\u0627\u063a",moderation_logs_content_post:"\u0645\u0646\u0634\u0648\u0631",moderation_logs_content_comment:"\u062a\u0639\u0644\u064a\u0642",moderation_logs_content_reply:"\u0631\u062f",moderation_logs_content_profile_image:"\u0635\u0648\u0631\u0629 \u0628\u0631\u0648\u0641\u0627\u064a\u0644",moderation_logs_content_cover_image:"\u0635\u0648\u0631\u0629 \u063a\u0644\u0627\u0641",moderation_logs_block_theft:"\u0633\u0631\u0642\u0629 \u0645\u062d\u062a\u0648\u0649",moderation_logs_block_abuse:"\u0625\u0633\u0627\u0621\u0629",moderation_logs_block_legal:"\u0645\u062e\u0627\u0644\u0641\u0629 \u0642\u0627\u0646\u0648\u0646\u064a\u0629",moderation_logs_search_placeholder:"\u0627\u0628\u062d\u062b \u0639\u0646 \u0645\u0634\u0631\u0641\u060c \u0645\u0633\u062a\u062e\u062f\u0645\u060c \u0623\u0648 ID...",moderation_logs_filter:"\u0641\u0644\u062a\u0631\u0629",moderation_logs_verification_status:"\u062d\u0627\u0644\u0629 \u0627\u0644\u062a\u062d\u0642\u0642",moderation_logs_unverified:"\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u062a\u062d\u0642\u0642",moderation_logs_verified:"\u062a\u0645 \u0627\u0644\u062a\u062d\u0642\u0642",moderation_logs_all:"\u0627\u0644\u0643\u0644",moderation_logs_action_type:"\u0646\u0648\u0639 \u0627\u0644\u0625\u062c\u0631\u0627\u0621",moderation_logs_moderator:"\u0627\u0644\u0645\u0634\u0631\u0641",moderation_logs_empty:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0633\u062c\u0644\u0627\u062a",moderation_logs_on:"\u0639\u0644\u0649",moderation_logs_reason:"\u0627\u0644\u0633\u0628\u0628",moderation_logs_type:"\u0627\u0644\u0646\u0648\u0639",moderation_logs_review_content:"\u0645\u0631\u0627\u062c\u0639\u0629 \u0627\u0644\u0645\u062d\u062a\u0648\u0649",moderation_logs_review:"\u0645\u0631\u0627\u062c\u0639\u0629",moderation_logs_mark_verified:"\u062a\u0645 \u0627\u0644\u062a\u062d\u0642\u0642",moderation_logs_confirm_title:"\u062a\u0623\u0643\u064a\u062f \u0627\u0644\u062a\u062d\u0642\u0642",moderation_logs_confirm_message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646 \u0647\u0630\u0627 \u0627\u0644\u0633\u062c\u0644 \u062a\u0645\u062a \u0645\u0631\u0627\u062c\u0639\u062a\u0647 \u0648\u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646\u0647\u061f",moderation_logs_confirm_yes:"\u0646\u0639\u0645\u060c \u062a\u0645 \u0627\u0644\u062a\u062d\u0642\u0642",moderation_logs_cancel:"\u0625\u0644\u063a\u0627\u0621",adhkar_benefit_title:"\u0627\u0644\u0641\u0627\u0626\u062f\u0629",adhkar_benefit_aria:"\u0639\u0631\u0636 \u0627\u0644\u0641\u0627\u0626\u062f\u0629",adhkar_once:"\u0645\u0631\u0629",adhkar_times:"\u0645\u0631\u0627\u062a",adhkar_tap_hint:"\u0627\u0636\u063a\u0637 \u0644\u0644\u062a\u0633\u0628\u064a\u062d",adhkar_completed_items:"\u0627\u0644\u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0645\u0643\u062a\u0645\u0644\u0629 ({count})",adhkar_loading:"\u062c\u0627\u0631\u064d \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0623\u0630\u0643\u0627\u0631...",adhkar_back:"\u0627\u0644\u0631\u062c\u0648\u0639",adhkar_title:"\u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0635\u0628\u0627\u062d \u0648\u0627\u0644\u0645\u0633\u0627\u0621",adhkar_subtitle:"\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0643\u0644 \u0630\u0643\u0631 \u0644\u0644\u062a\u0633\u0628\u064a\u062d. \u0627\u0636\u063a\u0637 \u0639\u0644\u0649 ? \u0644\u0645\u0639\u0631\u0641\u0629 \u0627\u0644\u0641\u0627\u0626\u062f\u0629.",adhkar_morning_tab:"\u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0635\u0628\u0627\u062d",adhkar_evening_tab:"\u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0645\u0633\u0627\u0621",adhkar_progress:"\u0627\u0644\u062a\u0642\u062f\u0645",adhkar_streak_days:"{count} \u064a\u0648\u0645",adhkar_done_title:"\u0623\u062d\u0633\u0646\u062a! \u0623\u062a\u0645\u0645\u062a \u062c\u0645\u064a\u0639 \u0627\u0644\u0623\u0630\u0643\u0627\u0631",adhkar_done_subtitle:"\u062a\u0642\u0628\u0644 \u0627\u0644\u0644\u0647 \u0645\u0646\u0643 \u0648\u0628\u0627\u0631\u0643 \u0641\u064a \u064a\u0648\u0645\u0643",adhkar_done_badge_subtitle:"\u062a\u0647\u0627\u0646\u064a\u0646\u0627\u060c \u0644\u0642\u062f \u062d\u0635\u0644\u062a \u0639\u0644\u0649 \u0634\u0627\u0631\u0629 \u0635\u0627\u0644\u062d\u0629 \u0644\u0646\u0647\u0627\u064a\u0629 \u0627\u0644\u064a\u0648\u0645",adhkar_benefit_dialog_title:"\u0641\u0627\u0626\u062f\u0629 \u0627\u0644\u0630\u0643\u0631",adhkar_reorder_btn:"\u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0623\u0630\u0643\u0627\u0631",adhkar_reorder_done_btn:"\u062a\u0645",adhkar_reorder_hint:"\u0627\u0633\u062d\u0628 \u2630 \u0644\u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u062a\u0631\u062a\u064a\u0628\u060c \u0623\u0648 \u0627\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u0623\u0633\u0647\u0645",adhkar_reset_order_btn:"\u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a",adhkar_reset_order_confirm_title:"\u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a\u061f",adhkar_reset_order_confirm_message:"\u0633\u064a\u0639\u0648\u062f \u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0623\u0630\u0643\u0627\u0631 \u0625\u0644\u0649 \u0648\u0636\u0639\u0647 \u0627\u0644\u0623\u0635\u0644\u064a. \u0627\u0644\u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u062e\u0627\u0635\u0629 \u0648\u0627\u0644\u0645\u062e\u0641\u064a\u0629 \u0644\u0646 \u062a\u062a\u0623\u062b\u0631.",adhkar_drag_handle:"\u0627\u0633\u062d\u0628 \u0644\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0631\u062a\u064a\u0628",adhkar_move_up:"\u062a\u062d\u0631\u064a\u0643 \u0644\u0644\u0623\u0639\u0644\u0649",adhkar_move_down:"\u062a\u062d\u0631\u064a\u0643 \u0644\u0644\u0623\u0633\u0641\u0644",adhkar_custom_badge:"\u062e\u0627\u0635",adhkar_delete_custom:"\u062d\u0630\u0641 \u0627\u0644\u0630\u0643\u0631 \u0627\u0644\u062e\u0627\u0635",adhkar_add_custom_btn:"\u0625\u0636\u0627\u0641\u0629 \u0630\u0643\u0631 \u062e\u0627\u0635",adhkar_add_custom_title:"\u0625\u0636\u0627\u0641\u0629 \u0630\u0643\u0631 \u062e\u0627\u0635 \u0628\u0643",adhkar_add_custom_name_label:"\u0627\u0633\u0645 \u0627\u0644\u0630\u0643\u0631",adhkar_add_custom_text_label:"\u0646\u0635 \u0627\u0644\u0630\u0643\u0631",adhkar_add_custom_repeat_label:"\u0639\u062f\u062f \u0627\u0644\u062a\u0643\u0631\u0627\u0631",adhkar_add_custom_benefit_label:"\u0627\u0644\u0641\u0627\u0626\u062f\u0629 (\u0627\u062e\u062a\u064a\u0627\u0631\u064a)",adhkar_add_custom_cancel:"\u0625\u0644\u063a\u0627\u0621",adhkar_add_custom_save:"\u062d\u0641\u0638",adhkar_add_custom_saving:"\u062c\u0627\u0631\u064d \u0627\u0644\u062d\u0641\u0638...",adhkar_add_custom_error:"\u064a\u0631\u062c\u0649 \u0643\u062a\u0627\u0628\u0629 \u0646\u0635 \u0627\u0644\u0630\u0643\u0631 \u0623\u0648\u0644\u0627\u064b",adhkar_hide_base:"\u0625\u062e\u0641\u0627\u0621 \u0647\u0630\u0627 \u0627\u0644\u0630\u0643\u0631",adhkar_restore_base:"\u0625\u0639\u0627\u062f\u0629 \u062a\u0641\u0639\u064a\u0644",adhkar_hidden_items:"\u0627\u0644\u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0645\u062e\u0641\u064a\u0629 ({count})",adhkar_min_count_title:"\u0627\u0644\u062d\u062f \u0627\u0644\u0623\u062f\u0646\u0649 \u0644\u0644\u0623\u0630\u0643\u0627\u0631",adhkar_min_count_message:"\u064a\u062c\u0628 \u0623\u0646 \u064a\u0628\u0642\u0649 {count} \u0630\u0643\u0631\u0627\u064b \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644 \u0636\u0645\u0646 \u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645. \u0623\u0636\u0641 \u0630\u0643\u0631\u0627\u064b \u0622\u062e\u0631 \u0623\u0648\u0644\u0627\u064b \u0625\u0646 \u0623\u0631\u062f\u062a \u062d\u0630\u0641 \u0623\u0648 \u0625\u062e\u0641\u0627\u0621 \u0627\u0644\u0645\u0632\u064a\u062f.",suggestions_box_status_all:"\u0627\u0644\u0643\u0644",suggestions_box_status_pending:"\u0642\u064a\u062f \u0627\u0644\u0645\u0631\u0627\u062c\u0639\u0629",suggestions_box_status_in_development:"\u0642\u064a\u062f \u0627\u0644\u062a\u0637\u0648\u064a\u0631",suggestions_box_status_completed:"\u062a\u0645 \u0627\u0644\u0625\u0646\u062c\u0627\u0632",suggestions_box_status_rejected:"\u0645\u0631\u0641\u0648\u0636",suggestions_box_moderator:"\u0645\u0634\u0631\u0641",suggestions_box_user:"\u
20645\u0633\u062a\u062e\u062f\u0645",suggestions_box_reply_placeholder:"\u0627\u0643\u062a\u0628 \u0631\u062f\u0643 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0637\u0644\u0628...",suggestions_box_sending:"\u062c\u0627\u0631\u064a \u0627\u0644\u0625\u0631\u0633\u0627\u0644",suggestions_box_send_reply:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u062f",suggestions_box_type_suggestion:"\u0627\u0642\u062a\u0631\u0627\u062d",suggestions_box_type_problem:"\u0645\u0634\u0643\u0644\u0629",suggestions_box_request_content:"\u0645\u062d\u062a\u0648\u0649 \u0627\u0644\u0637\u0644\u0628",suggestions_box_change_status:"\u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u062d\u0627\u0644\u0629",suggestions_box_delete_request:"\u062d\u0630\u0641 \u0627\u0644\u0637\u0644\u0628",suggestions_box_moderator_replies:"\u0631\u062f\u0648\u062f \u0627\u0644\u0625\u0634\u0631\u0627\u0641 ({count})",suggestions_box_recently:"\u0645\u0646\u0630 \u0642\u0644\u064a\u0644",suggestions_box_confirm:"\u062a\u0623\u0643\u064a\u062f",suggestions_box_cancel:"\u0625\u0644\u063a\u0627\u0621",suggestions_box_confirm_status_title:"\u062a\u0623\u0643\u064a\u062f \u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u062d\u0627\u0644\u0629",suggestions_box_confirm_status_message:'\u062a\u063a\u064a\u064a\u0631 \u062d\u0627\u0644\u0629 \u0627\u0644\u0637\u0644\u0628 \u0625\u0644\u0649 "{status}"\u061f',suggestions_box_done:"\u062a\u0645",suggestions_box_error:"\u062e\u0637\u0623",suggestions_box_status_success:"\u062a\u0645 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u062d\u0627\u0644\u0629 \u0628\u0646\u062c\u0627\u062d",suggestions_box_status_error:"\u062a\u0639\u0630\u0631 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u062d\u0627\u0644\u0629",suggestions_box_delete_title:"\u062d\u0630\u0641 \u0627\u0644\u0637\u0644\u0628",suggestions_box_delete_message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062d\u0630\u0641 {type} \u0646\u0647\u0627\u0626\u064a\u0627\u061f \u0633\u064a\u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0631\u062f\u0648\u062f \u0627\u0644\u0645\u0631\u062a\u0628\u0637\u0629 \u0628\u0647 \u0623\u064a\u0636\u0627.",suggestions_box_delete:"\u062d\u0630\u0641",suggestions_box_deleted:"\u062a\u0645 \u0627\u0644\u062d\u0630\u0641",suggestions_box_delete_success:"\u062a\u0645 \u062d\u0630\u0641 \u0627\u0644\u0637\u0644\u0628 \u0628\u0646\u062c\u0627\u062d",suggestions_box_delete_error:"\u062a\u0639\u0630\u0631 \u062d\u0630\u0641 \u0627\u0644\u0637\u0644\u0628",suggestions_box_title:"\u0635\u0646\u062f\u0648\u0642 \u0627\u0644\u0627\u0642\u062a\u0631\u0627\u062d\u0627\u062a \u0648\u0627\u0644\u0645\u0634\u0627\u0643\u0644",my_reports_suggestions_tab:"\u0627\u0644\u0645\u0634\u0627\u0643\u0644/\u0627\u0644\u0627\u0642\u062a\u0631\u0627\u062d\u0627\u062a",my_reports_no_suggestions:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u0634\u0627\u0643\u0644/\u0627\u0642\u062a\u0631\u0627\u062d\u0627\u062a",suggestions_box_loading:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",suggestions_box_total:"\u0627\u0644\u0625\u062c\u0645\u0627\u0644\u064a",suggestions_box_waiting_review:"\u0628\u0627\u0646\u062a\u0638\u0627\u0631 \u0627\u0644\u0645\u0631\u0627\u062c\u0639\u0629",suggestions_box_empty_title:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0637\u0644\u0628\u0627\u062a",suggestions_box_empty_message:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0637\u0644\u0628\u0627\u062a \u0645\u0637\u0627\u0628\u0642\u0629 \u0644\u0644\u0641\u0644\u062a\u0631 \u0627\u0644\u0645\u062d\u062f\u062f.",pack_create_title:"\u0625\u0646\u0634\u0627\u0621 \u0645\u062c\u0645\u0648\u0639\u0629 \u0623\u0630\u0643\u0627\u0631",pack_edit_title:"\u062a\u0639\u062f\u064a\u0644 \u0645\u062c\u0645\u0648\u0639\u0629 \u0627\u0644\u0623\u0630\u0643\u0627\u0631",pack_status_draft:"\u0645\u0633\u0648\u062f\u0629",pack_status_published:"\u0645\u0646\u0634\u0648\u0631\u0629",pack_saving:"\u062c\u0627\u0631\u064d \u0627\u0644\u062d\u0641\u0638\u2026",pack_title_label:"\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",pack_title_placeholder:"\u0645\u062b\u0627\u0644: \u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0635\u0628\u0627\u062d - \u062d\u0635\u0646 \u0627\u0644\u0645\u0633\u0644\u0645",pack_description_label:"\u0627\u0644\u0648\u0635\u0641",pack_description_placeholder:"\u0645\u0627 \u0627\u0644\u0630\u064a \u064a\u0645\u064a\u0632 \u0647\u0630\u0647 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629 (\u0627\u0644\u062a\u0631\u062a\u064a\u0628\u060c \u0627\u0644\u0645\u0635\u062f\u0631\u060c \u0623\u062f\u0639\u064a\u0629 \u0625\u0636\u0627\u0641\u064a\u0629)\u061f",pack_type_label:"\u0627\u0644\u0646\u0648\u0639",pack_type_both:"\u0635\u0628\u0627\u062d \u0648\u0645\u0633\u0627\u0621",pack_language_label:"\u0627\u0644\u0644\u063a\u0629",pack_language_ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",pack_language_en:"\u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629",pack_language_both:"\u0639\u0631\u0628\u064a \u0648\u0625\u0646\u062c\u0644\u064a\u0632\u064a",pack_scholar_label:"\u0627\u0644\u0634\u064a\u062e / \u0627\u0644\u0639\u0627\u0644\u0645 (\u0627\u062e\u062a\u064a\u0627\u0631\u064a)",pack_scholar_placeholder:"\u0645\u062b\u0627\u0644: \u0627\u0628\u0646 \u0628\u0627\u0632",pack_source_label:"\u0627\u0644\u0645\u0635\u062f\u0631 (\u0627\u062e\u062a\u064a\u0627\u0631\u064a)",pack_source_placeholder:"\u0645\u062b\u0627\u0644: \u062d\u0635\u0646 \u0627\u0644\u0645\u0633\u0644\u0645\u060c \u0635\u062d\u064a\u062d \u0627\u0644\u0628\u062e\u0627\u0631\u064a",pack_items_title:"\u0623\u0630\u0643\u0627\u0631 \u0647\u0630\u0647 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629 ({count})",pack_add_item_title:"\u0625\u0636\u0627\u0641\u0629 \u0630\u0643\u0631",pack_edit_item_title:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0630\u0643\u0631",pack_duplicate_item:"\u0646\u0633\u062e \u0627\u0644\u0630\u0643\u0631",pack_add_below_item:"\u0625\u0636\u0627\u0641\u0629 \u0630\u0643\u0631 \u0623\u0633\u0641\u0644 \u0647\u0630\u0627",pack_untitled_
2item:"\u0630\u0643\u0631 \u0628\u0644\u0627 \u0639\u0646\u0648\u0627\u0646",pack_item_time_label:"\u064a\u0646\u0637\u0628\u0642 \u0647\u0630\u0627 \u0627\u0644\u0630\u0643\u0631 \u0639\u0644\u0649",pack_item_time_both:"\u0643\u0644\u0627\u0647\u0645\u0627",pack_item_time_morning:"\u0627\u0644\u0635\u0628\u0627\u062d \u0641\u0642\u0637",pack_item_time_evening:"\u0627\u0644\u0645\u0633\u0627\u0621 \u0641\u0642\u0637",pack_no_items_yet:'\u0644\u0645 \u062a\u064f\u0636\u0641 \u0623\u064a \u0623\u0630\u0643\u0627\u0631 \u0628\u0639\u062f. \u0627\u0636\u063a\u0637 "\u0625\u0636\u0627\u0641\u0629 \u0630\u0643\u0631" \u0644\u0644\u0628\u062f\u0621.',pack_filter_all:"\u0627\u0644\u0643\u0644",pack_filter_no_items:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0623\u0630\u0643\u0627\u0631 \u0645\u0637\u0627\u0628\u0642\u0629 \u0644\u0647\u0630\u0627 \u0627\u0644\u0641\u0644\u062a\u0631.",pack_min_items_hint:"\u062a\u062d\u062a\u0627\u062c \u0645\u0627 \u0644\u0627 \u064a\u0642\u0644 \u0639\u0646 {count} \u0630\u0643\u0631 \u0644\u062a\u062a\u0645\u0643\u0646 \u0645\u0646 \u0627\u0644\u0646\u0634\u0631.",pack_publish:"\u0646\u0634\u0631 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",pack_republish:"\u0646\u0634\u0631 \u0627\u0644\u062a\u062d\u062f\u064a\u062b",pack_publishing:"\u062c\u0627\u0631\u064d \u0627\u0644\u0646\u0634\u0631\u2026",pack_published_title:"\u062a\u0645 \u0646\u0634\u0631 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",pack_published_message:"\u0645\u062c\u0645\u0648\u0639\u062a\u0643 \u0627\u0644\u0622\u0646 \u0645\u0631\u0626\u064a\u0629 \u0644\u0644\u0645\u0631\u0627\u062c\u0639\u064a\u0646\u060c \u0648\u0633\u062a\u0638\u0647\u0631 \u0644\u0644\u062c\u0645\u064a\u0639 \u0628\u0639\u062f \u0627\u0644\u062a\u0648\u062b\u064a\u0642.",pack_publish_error_title:"\u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0644\u0646\u0634\u0631 \u0627\u0644\u0622\u0646",pack_publish_generic_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0627\u0644\u0646\u0634\u0631. \u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.",pack_missing_title_error:"\u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u0636\u0627\u0641\u0629 \u0639\u0646\u0648\u0627\u0646 \u0644\u0644\u0645\u062c\u0645\u0648\u0639\u0629 \u0642\u0628\u0644 \u0627\u0644\u0646\u0634\u0631.",pack_min_items_error:"\u0644\u062f\u064a\u0643 {current} \u0630\u0643\u0631 \u2014 \u062a\u062d\u062a\u0627\u062c {count} \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644 \u0644\u0644\u0646\u0634\u0631.",pack_first_publish_changelog:"\u0627\u0644\u0625\u0635\u062f\u0627\u0631 \u0627\u0644\u0623\u0648\u0644",pack_browse_btn:"\u0645\u062a\u062c\u0631 \u0627\u0644\u0623\u0630\u0643\u0627\u0631",pack_browse_title:"\u0627\u0633\u062a\u0639\u0631\u0636 \u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0627\u0644\u0623\u0630\u0643\u0627\u0631",pack_create_new:"\u0625\u0646\u0634\u0627\u0621",pack_search_placeholder:"\u0627\u0628\u062d\u062b \u0628\u0627\u0644\u0639\u0646\u0648\u0627\u0646\u2026",pack_sort_popularity:"\u0627\u0644\u0623\u0643\u062b\u0631 \u062a\u0646\u0632\u064a\u0644\u0627\u064b",pack_sort_rating:"\u0627\u0644\u0623\u0639\u0644\u0649 \u062a\u0642\u064a\u064a\u0645\u0627\u064b",pack_sort_recent:"\u0627\u0644\u0623\u062d\u062f\u062b \u062a\u062d\u062f\u064a\u062b\u0627\u064b",pack_sort_installs:"\u0627\u0644\u0623\u0643\u062b\u0631 \u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0627\u064b \u062d\u0627\u0644\u064a\u0627\u064b",pack_verified_only:"\u0627\u0644\u0645\u0648\u062b\u0651\u0642\u0629 \u0641\u0642\u0637",pack_verified_label:"\u0645\u062c\u0645\u0648\u0639\u0629 \u0645\u0648\u062b\u0651\u0642\u0629",pack_no_results:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0628\u0639\u062f. \u0643\u0646 \u0623\u0648\u0644 \u0645\u0646 \u064a\u0646\u0634\u0631!",pack_no_ratings_yet:"\u0644\u0627 \u062a\u0648\u062c\u062f \u062a\u0642\u064a\u064a\u0645\u0627\u062a \u0628\u0639\u062f",pack_reviews_modal_title:"\u062a\u0642\u064a\u064a\u0645\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646",pack_reviews_empty:"\u0644\u0627 \u062a\u0648\u062c\u062f \u062a\u0642\u064a\u064a\u0645\u0627\u062a \u0644\u0639\u0631\u0636\u0647\u0627 \u0628\u0639\u062f",pack_reviews_no_comment:"\u0628\u062f\u0648\u0646 \u062a\u0639\u0644\u064a\u0642",pack_anonymous_reviewer:"\u0645\u0633\u062a\u062e\u062f\u0645",pack_install:"\u062a\u062b\u0628\u064a\u062a",pack_uninstall:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062a\u062b\u0628\u064a\u062a",pack_use_this:"\u0627\u0633\u062a\u062e\u062f\u0645 \u0647\u0630\u0647 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",pack_currently_active:"\u0645\u064f\u0641\u0639\u0651\u0644\u0629 \u062d\u0627\u0644\u064a\u0627\u064b",pack_bookmark:"\u062d\u0641\u0638",pack_resume_drafts_title:"\u0644\u062f\u064a\u0643 \u0645\u0633\u0648\u062f\u0627\u062a \u0633\u0627\u0628\u0642\u0629",pack_resume_drafts_subtitle:"\u0623\u0643\u0645\u0644 \u0645\u0633\u0648\u062f\u0629 \u0645\u0648\u062c\u0648\u062f\u0629\u060c \u0623\u0648 \u0627\u0628\u062f\u0623 \u0645\u062c\u0645\u0648\u0639\u0629 \u062c\u062f\u064a\u062f\u0629 \u0645\u0646 \u0627\u0644\u0635\u0641\u0631.",pack_continue_draft:"\u0645\u062a\u0627\u0628\u0639\u0629",pack_start_new_pack:"\u0625\u0646\u0634\u0627\u0621 \u0645\u062c\u0645\u0648\u0639\u0629 \u062c\u062f\u064a\u062f\u0629",pack_untitled_draft:"\u0645\u0633\u0648\u062f\u0629 \u0628\u0644\u0627 \u0639\u0646\u0648\u0627\u0646",pack_draft_item_count:"{count} \u0630\u0643\u0631",pack_edit_my_pack:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",pack_official_title:"\u0627\u0644\u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0623\u0635\u0644\u064a\u0629",pack_official_description:"\u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a\u0629 \u0627\u0644\u0645\u062f\u0645\u062c\u0629 \u0641\u064a \u0627\u0644\u062a\u0637\u0628\u064a\u0642",pack_installing:"\u062c\u0627\u0631\u064d \u0627\u0644\u062a\u062b\u0628\u064a\u062a\u2026",pack_rate_button:"\u0642\u064a\u0651\u0645 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",pack_rate_modal_title:"\u0642\u064a\u0651\u0645 \u0647\u0630\u0647 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",pack_rate_stars_label:"\u062a\u0642\u064a\u064a\u0645\u0643",pack_rate_text_label:"\u062a\u0639\u0644\u064a\u0642 (\u0627\u062e\u062a\u064a\u0627\u0631\u064a)",pack_rate_text_placeholder:"\u0634\u0627\u0631\u0643\u0646\u0627 \u0631\u0623\u064a\u0643 \u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629\u2026",pack_rate_select_stars_error:"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u062e\u062a\u064a\u0627\u0631 \u0639\u062f\u062f \u0627\u0644\u0646\u062c\u0648\u0645 \u0623\u0648\u0644\u0627\u064b.",pack_rate_generic_error:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062a\u0642\u064a\u064a\u0645. \u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.",pack_rate_submitting:"\u062c\u0627\u0631\u064d \u0627\u0644\u0625\u0631\u0633\u0627\u0644\u2026",pack_rate_submit:"\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u062a\u0642\u064a\u064a\u0645",pack_bookmarked_only:"\u0627\u0644\u0645\u062d\u0641\u0648\u0638\u0629 \u0641\u0642\u0637",pack_bookmarked_empty:"\u0644\u0645 \u062a\u062d\u0641\u0638 \u0623\u064a \u0645\u062c\u0645\u0648\u0639\u0629 \u0628\u0639\u062f.",pack_admin_verify:"\u062a\u0648\u062b\u064a\u0642 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",pack_admin_unverify:"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062a\u0648\u062b\u064a\u0642",pack_admin_unverify_confirm_title:"\u0625\u0644\u063a\u0627\u0621 \u062a\u0648\u062b\u064a\u0642 \u0647\u0630\u0647 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629\u061f",pack_admin_unverify_confirm_message:"\u0633\u062a\u0641\u0642\u062f \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629 \u0634\u0627\u0631\u0629 \u0627\u0644\u062a\u0648\u062b\u064a\u0642 \u0648\u062a\u0638\u0647\u0631 \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646 \u0643\u0645\u062c\u0645\u0648\u0639\u0629 \u063a\u064a\u0631 \u0645\u0648\u062b\u0651\u0642\u0629. \u064a\u0645\u0643\u0646\u0643 \u062a\u0648\u062b\u064a\u0642\u0647\u0627 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649 \u0641\u064a \u0623\u064a \u0648\u0642\u062a.",pack_admin_ban_author:"\u062d\u0638\u0631 \u0635\u0627\u062d\u0628 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",pack_admin_delete_pack:"\u062d\u0630\u0641 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",pack_admin_ban_confirm_title:"\u062d\u0638\u0631 \u0635\u0627\u062d\u0628 \u0647\u0630\u0647 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629\u061f",pack_admin_ban_confirm_message:"\u0644\u0646 \u064a\u062a\u0645\u0643\u0646 \u0647\u0630\u0627 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0645\u0646 \u0625\u0646\u0634\u0627\u0621 \u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0623\u0630\u0643\u0627\u0631 \u062c\u062f\u064a\u062f\u0629 \u0628\u0639\u062f \u0627\u0644\u0622\u0646. \u0644\u0627 \u064a\u0624\u062b\u0631 \u0647\u0630\u0627 \u0639\u0644\u0649 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0627\u0644\u062a\u064a \u0646\u0634\u0631\u0647\u0627 \u0633\u0627\u0628\u0642\u0627\u064b.",pack_admin_delete_confirm_title:"\u062d\u0630\u0641 \u0647\u0630\u0647 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629\u061f",pack_admin_delete_confirm_message:"\u0633\u062a\u064f\u0632\u0627\u0644 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629 \u0645\u0646 \u0627\u0644\u0645\u062a\u062c\u0631 \u0641\u0648\u0631\u0627\u064b \u0648\u0644\u0646 \u062a\u0638\u0647\u0631 \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646 \u0628\u0639\u062f \u0627\u0644\u0622\u0646. \u0647\u0630\u0627 \u0627\u0644\u0625\u062c\u0631\u0627\u0621 \u0645\u062e\u0635\u0635 \u0644\u0644\u0645\u062d\u062a\u0648\u0649 \u0627\u0644\u0645\u0633\u064a\u0621 \u0623\u0648 \u0627\u0644\u0645\u062e\u0627\u0644\u0641.",pack_publish_editor_forbidden:"\u0641\u0642\u0637 \u0645\u0624\u0644\u0641 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629 \u064a\u0645\u0643\u0646\u0647 \u0646\u0634\u0631 \u0627\u0644\u062a\u062d\u062f\u064a\u062b\u0627\u062a. \u064a\u0645\u0643\u0646\u0643 \u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0645\u062d\u062a\u0648\u0649 \u0648\u062d\u0641\u0638\u0647 \u0643\u0645\u0633\u0648\u062f\u0629\u060c \u0648\u0633\u064a\u062a\u0648\u0644\u0649 \u0627\u0644\u0645\u0624\u0644\u0641 \u0646\u0634\u0631\u0647.",pack_banned_title:"\u0644\u0627 \u064a\u0645\u0643\u0646 \u0625\u0646\u0634\u0627\u0621 \u0645\u062c\u0645\u0648\u0639\u0629",pack_banned_from_creating:"\u062a\u0645 \u062d\u0638\u0631\u0643 \u0645\u0646 \u0625\u0646\u0634\u0627\u0621 \u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0623\u0630\u0643\u0627\u0631 \u062c\u062f\u064a\u062f\u0629 \u0628\u0633\u0628\u0628 \u0625\u0633\u0627\u0621\u0629 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0633\u0627\u0628\u0642\u0629.",pack_delete_item_confirm_title:"\u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u0630\u0643\u0631\u061f",pack_delete_item_confirm_message:"\u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0644\u062a\u0631\u0627\u062c\u0639 \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0625\u062c\u0631\u0627\u0621 \u0628\u0639\u062f \u0627\u0644\u062d\u0630\u0641.",pack_confirm_delete:"\u062d\u0630\u0641",pack_verification_verified_badge:"\u0645\u0648\u062b\u0651\u0642\u0629",pack_verification_pending_badge:"\u0642\u064a\u062f \u0627\u0644\u0645\u0631\u0627\u062c\u0639\u0629",pack_editor_role_badge:"\u0645\u062d\u0631\u0631 (\u0628\u062f\u0648\u0646 \u0635\u0644\u0627\u062d\u064a\u0629 \u0646\u0634\u0631)",pack_more_options:"\u0627\u0644\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u062e\u064a\u0627\u0631\u0627\u062a"},en:{password_show:"Show password",password_hide:"Hide password",settings_header:"Settings",settings_section_account_security:"Account and security",settings_email_address:"Email address",settings_change_email:"Change email",settings_change_password:"Change password",settings_new_password:"New password",settings_confirm_password:"Confirm new password",settings_save_password:"Save password",settings_saving:"Saving...",settings_account_success_title:"Updated",settings_account_error_title:"Update failed",settings_email_updated:"Your email address was changed successfully.",settings_email_verification_sent:"A confirmation link 
2was sent to the new email. Your account email will not change until you open the link and verify it.",settings_email_already_used:"This email address is already used by another account.",settings_email_invalid:"Enter a valid email address.",settings_password_updated:"Your password was changed successfully.",settings_password_mismatch:"The passwords do not match.",settings_password_too_short:"The password must contain at least 6 characters.",settings_account_recent_login:"For account security, sign out and sign in again before changing your email or password.",settings_account_update_failed:"Could not update the account details.",settings_notifications_manage:"Manage notifications and types",settings_section_theme:"Appearance",settings_theme_light:"Light mode",settings_theme_dark:"Dark mode",settings_theme_system:"System default",settings_toggle_theme_button:"Switch theme now",settings_section_language:"Language",settings_language_description:"Choose the app interface language. More languages can be added later.",settings_language_option_ar:"Arabic",settings_language_option_en:"English",settings_section_direction:"Layout direction",settings_direction_description:"Choose the user interface direction. You can use auto or force RTL/LTR as preferred.",settings_direction_auto:"Auto (based on language)",settings_direction_rtl:"Right-to-left (RTL)",settings_direction_ltr:"Left-to-right (LTR)",settings_section_notifications:"Notifications",settings_notifications_description:"Enable notifications to receive live updates from the app.",settings_notifications_note_windows:"On Windows, notifications may arrive even if the browser is not visible. If the browser is closed or notifications are disabled in system settings, they will not arrive.",settings_windows_step_1:"Long press the app icon on the home screen",settings_windows_step_2:'Choose "App info"',settings_windows_step_3:'Go to "Notifications"',settings_windows_step_4:"Enable notifications",settings_check_notifications_button:"Check activation",settings_notifications_enable_button:"Enable notifications",settings_notifications_blocked_title:"\u26a0\ufe0f Notifications are blocked",settings_notifications_blocked_details:"To re-enable notifications, follow these steps:",settings_notifications_disabled_note_blocked:"\ud83d\udeab Notifications are blocked by the app and cannot be changed until you re-enable them from app settings",settings_notifications_disabled_note_not_enabled:"\u26a0\ufe0f Notifications are not enabled yet, but you can set your preferences in advance",settings_notification_types_label:"Cho
2ose the notification types you want to receive:",settings_notification_type_mention_label:"Mention notifications",settings_notification_type_mention_desc:"When someone mentions you in a post or comment",settings_notification_type_reactions_label:"Reaction notifications",settings_notification_type_reactions_desc:"When someone reacts to your posts or comments",settings_notification_type_comments_label:"Comment notifications",settings_notification_type_comments_desc:"When someone comments on your posts",settings_notification_type_replies_label:"Reply notifications",settings_notification_type_replies_desc:"When someone replies to your comments",settings_notification_type_messages_label:"Message notifications",settings_notification_type_messages_desc:"When a private or group message arrives",settings_notification_type_bans_label:"Ban notifications",settings_notification_type_bans_desc:"When your content is banned or unbanned",settings_notif_saving_indicator:"Saving...",settings_section_daily_plan:"Daily plan",settings_daily_plan_desc:"If you want to reset your daily plan questions, your current daily plan settings will be removed.",settings_reset_daily_plan_button:"Reset daily plan questions",settings_reset_daily_plan_resetting:"Resetting...",settings_section_legal_info:"Legal information",settings_terms_of_service:"Terms of service",settings_privacy_policy:"Privacy policy",settings_child_safety:"Child safety policy",settings_section_contact_us:"Contact us",settings_contact_description:"Have a question or suggestion? We are here to help.",settings_contact_email_label:"[email protected]",settings_section_danger:"Danger zone",settings_delete_account_warning:"Deleting your account will permanently remove all your data and posts.",settings_delete_account_button:"Delete account permanently",settings_delete_account_processing:"Deleting...",settings_confirm_delete_title:"Delete account permanently",settings_confirm_delete_message:"Are you sure you want to delete your account? All your data and posts will be permanently removed and cannot be recovered.\n\n\u26a0\ufe0f Important warning: You will not be able to create a new account with the same email for 30 days.",settings_confirm_delete_confirm:"Delete account",settings_confirm_cancel:"Cancel",settings_confirm_reset_title:"Reset daily plan questions",settings_confirm_reset_message:"Do you want to delete the current daily plan preference data? Only user_prefs/{userId} will be removed.",settings_confirm_reset_confirm:"Reset",settings_reset_success_title:"Success",settings_reset_success_message:"Daily plan questions have been reset successfully.",settings_error_title:"Error",settings_error_no_user_message:"User ID not found. Please log in again.",settings_error_reset_fail_message:"Failed to reset daily plan questions. Please try again.",settings_error_delete_prefix:"An error occurred while deleting the account:",settings_unknown_error:"Unknown error",settings_deletion_overlay_title:"Deleting account...",settings_deletion_warning:"Do not close this page or press the back button",settings_deletion_step_fetch_posts:"Fetching your posts data...",settings_deletion_step_deleting_posts:"Deleting {count} posts...",settings_deletion_step_posts_deleted:"\u2705 All your posts have been deleted",settings_deletion_step_no_posts:"\u2705 No posts to delete",settings_deletion_step_deleting_role:"Deleting user role...",settings_deletion_step_role_deleted:"\u2705 User role deleted",settings_deletion_step_deleting_points:"Deleting points and currency...",settings_deletion_step_points_deleted:"\u2705 Points and currency deleted",settings_deletion_step_deleting_hashtags:"Deleting hashtags...",settings_deletion_step_hashtags_deleted:"\u2705 Hashtags deleted",settings_deletion_step_deleting_quran_progress:"Deleting Quran progress...",settings_deletion_step_quran_progress_deleted:"\u2705 Quran progress deleted",settings_deletion_step_deleting_quran_status:"Deleting Quran status...",settings_deletion_step_quran_status_deleted:"\u2705 Quran status deleted",settings_deletion_step_deleting_notifications:"Deleting notifications...",settings_deletion_step_notifications_deleted:"\u2705 Notifications deleted",settings_deletion_step_deleting_suggestions:"Deleting suggestion reports...",settings_deletion_step_suggestions_deleted:"\u2705 Suggestion reports deleted",settings_deletion_step_deleting_deleted_records:"Deleting deleted post records...",settings_deletion_step_deleted_records_deleted:"\u2705 Deleted post records removed",settings_deletion_step_deleting_videos:"Deleting videos...",settings_deletion_step_videos_deleted:"\u2705 Videos deleted",settings_deletion_step_deleting_team_posts:"Deleting team posts...",settings_deletion_step_team_posts_deleted:"\u2705 Team posts deleted",settings_deletion_step_deleting_profile:"Deleting profile data...",settings_deletion_step_profile_deleted:"\u2705 Profile data deleted",settings_deletion_step_removing_appstatus:"Removing AppStatus entry...",settings_deletion_step_appstatus_removed:"\u2705 AppStatus entry removed",settings_deletion_step_deleting_auth:"Deleting authentication account...",settings_deletion_step_auth_deleted:"\u2705 Authentication account deleted",settings_deletion_step_logged_out_after_delete:"\u2705 Logged out",settings_deletion_step_cleanup_cache:"Cleaning local data and cache...",settings_deletion_step_cleanup_done:"\u2705 Local data and cache 
2cleaned",settings_deletion_step_delete_success:"\u2728 Your account has been deleted successfully!",settings_deletion_step_logout_warning:"\u26a0\ufe0f Logged out (account deletion requires recent login to delete)",settings_deletion_step_logout_partial:"\u26a0\ufe0f Logged out (authentication account was not deleted)",profile_menu_loading:"Loading...",profile_menu_feature_dev_message:"{feature} is under development",profile_menu_profile_image_alt:"Profile image",profile_menu_unknown:"Unknown",profile_menu_unknown_tag:"Unknown",profile_menu_view_profile:"View profile",profile_menu_notifications:"Notifications",profile_menu_team:"Team",profile_menu_friend_requests:"Contacts",profile_menu_messages:"Messages",profile_menu_store:"Store",profile_menu_plugins:"Plugins",profile_menu_plugins_description:"Choose which optional shortcuts appear in your profile menu.",profile_menu_create_event:"Create event",profile_menu_quran:"Quran",profile_menu_characters:"Islamic characters",profile_menu_tasbeeh:"Azkar challenge",profile_menu_prayer_tracker:"Prayer tracker",profile_menu_adhkar:"Morning and evening Azkar",profile_menu_create_plan:"Create today plan",profile_menu_saraha:"Saraha",profile_menu_currency_log:"Currency log",profile_menu_daily_quiz:"Daily quiz",profile_menu_reports_box:"Reports box",profile_menu_my_hashtags:"My hashtags",profile_menu_saved_posts:"Saved posts",profile_menu_drafts:"Drafts",profile_menu_events:"Events",profile_menu_settings:"Settings",profile_menu_staff:"Staff",profile_menu_moderation_log:"Moderation log",profile_menu_create_daily_question:"Create daily question",profile_menu_deleted_posts:"Deleted posts",profile_menu_logs_section:"Logs",profile_menu_suggestions_box:"Suggestions",profile_menu_unified_reports_system:"Reports",profile_menu_admin_section:"Administration",profile_menu_switch_account:"Switch account",profile_menu_logout:"Logout",profile_menu_switch_error_generic:"Unable to open account switcher. Please try again.",profile_menu_switch_session_expired:"This account's session has expired. Please sign in again.",profile_menu_logout_switch_message:"Logging out of this account will remove it from this device. Do you want to continue?",profile_menu_add_account:"Add account",profile_menu_main_account:"Main account",islamic_hub_title:"Islamic",islamic_hub_subtitle:"Your daily space to grow closer to Allah",islamic_hub_desc_adhkar:"Start and close your day remembering Allah",islamic_hub_desc_tasbeeh:"Challenge yourself and earn daily badges",islamic_hub_desc_prayer_tracker:"Track your prayers and stay consistent",islamic_hub_desc_characters:"Learn the stories of companions and scholars",islamic_hub_desc_quran:"Read and memorize the verses of the Quran",bottom_nav_home:"Home",bottom_nav_missions:"Badges",bottom_nav_create_post:"Create post",bottom_nav_create_newspaper:"Create newspaper",bottom_nav_drafts:"Drafts",bottom_nav_create_poll:"Create poll",bottom_nav_create_quiz:"Create quiz",bottom_nav_create_video:"Create short video (Reels)",bottom_nav_team:"Islamic",bottom_nav_more:"More",settings_section_bottom_navbar_direction:"Bottom navigation direction",settings_bottom_navbar_direction_description:"Set the bottom navigation bar direction independently from the rest of the app.",login_language_toggle_aria:"Toggle language",login_logo_alt:"App logo",login_welcome:"Welcome back!",login_email_divider:"Or use email",login_email_placeholder:"[email protected]",login_password_placeholder:"Password",login_confirm_password_placeholder:"Confirm password",login_terms_intro:"By continuing, you agree to",login_terms_link:"Terms of service",login_privacy_link:"Privacy policy",login_signin_button:"Sign in",login_signing_in:"Signing in...",login_signup_button:"Create account",login_creating_account:"Creating account...",login_forgot_password:"Forgot password?",login_sending_reset:"Sending reset link...",login_install_button:"Install app",login_resend_verification:"Resend verification email",login_no_account:"Don\u2019t have an account?",login_have_account:"Already have an account?",login_signup_link:"Create account",login_signin_link:"Sign in",login_error_email_password_required:"Please enter email and password",login_error_password_mismatch:"Passwords do not match",login_error_password_min_length:"Password must be at least 6 characters",login_info_verification_sent:"\ud83d\udce7 Verification link has been sent to your email. Check spam if you do not see it.",login_error_email_in_use:"Email is already in use",login_error_invalid_email:"Invalid email address",login_error_signup_failed:"Failed to create account",login_error_verify_email:"Please verify your email first",login_error_user_not_found:"Email is not registered",login_error_wrong_password:"Incorrect password",login_error_reset_email_required:"Enter your email address to reset your password",login_info_password_reset_sent:"If an account exists for this email, a password reset link has been sent. Check your spam folder too.",login_error_password_reset_failed:"Could not send the password reset email. Please try again.",login_error_verification_resend_failed:"Could not resend the verification email. Please try signing in again.",login_error_user_disabled:"This account has been disabled. Contact support for help.",login_error_too_many_requests:"Too many attempts. Please wait a little and try again.",login_error_network:"Unable to connect. Check your internet connection and try again.",login_add_account_title:"Add account",login_add_account_subtitle:"Sign in to add another account to this device",login_add_account_cancel:"Cancel",login_error_signin_failed:"Failed to sign in",login_error_google_failed:"Google sign-in failed",login_info_verification_resent:"\ud83d\udce7 Verification email resent. Check spam if you do not see it.",profile_modal_title:"Profile",profile_loading:"Loading user data...",profile_user_not_found:"User not found",profile_user_not_found_desc:"The link you are looking for is incorrect or the user has been deleted.",profile_go_back:"Go back",profile_logout_confirm_title:"Confirm logout",profile_logout_confirm_message:"Do you want to log out of your account?",profile_logout_confirm_btn:"Yes, log out",profile_logout_error_message:"An error occurred while logging out",profile_copy_link:"Copy profile link",profile_copied_title:"Copied",profile_copy_link_success:"Profile link copied",profile_copy_user_id:"Copy user ID",profile_copy_id_success:"User ID copied successfully",profile_view_user_info:"View user info",profile_view_activity:"View activity stats",profile_user_notes:"User notes",profile_add_note:"Add note",profile_edit_note:"Edit note",profile_delete_note:"Delete note",profile_note_placeholder:"Write an internal note about this user...",profile_note_save:"Save note",profile_note_cancel:"Cancel",profile_no_notes:"No notes yet for this user",profile_notes_load_error:"An error occurred while loading notes",profile_note_added:"Note added successfully",profile_note_updated:"Note updated successfully",profile_note_deleted:"Note deleted successfully",profile_note_save_error:"An error occurred while saving the note",profile_note_delete_error:"An error occurred while deleting the note",profile_note_empty_error:"Please write a note before saving",profile_note_permission_error:"You don't have permission to view or manage this user's notes",profile_note_delete_confirm_title:"Delete note",profile_note_delete_confirm_message:"Are you sure you want to delete this note? This cannot be undone.",profile_note_author:"Author",profile_note_updated_at:"Last updated",profile_note_type_positive:"Positive",profile_note_type_negative:"Negative",profile_note_type_neutral:"Neutral",profile_can_participate_events:"Can participate in events",profile_can_participate_events_desc:"Controls whether this user is allowed to 
2join events",profile_cannot_participate_events:"Cannot participate in events",profile_allow_image:"Allow image",profile_ban_image:"Ban image",profile_allow_cover:"Allow cover",profile_ban_cover:"Ban cover",profile_send_warning:"Send warning",profile_ban_publish:"Ban publishing",profile_ban_comment:"Ban commenting",profile_ban_reaction:"Ban reactions",profile_ban_message:"Ban messaging",profile_ban_permanent:"General ban",profile_moderation_actions:"Blocking actions",profile_unban_publish:"Unban publishing",profile_unban_comment:"Unban commenting",profile_unban_reaction:"Unban reactions",profile_unban_message:"Unban messaging",profile_unban_permanent:"Remove general ban",profile_grant_title:"Grant title",profile_grant_badge:"Grant badge",profile_add_to_staff:"Add to staff",profile_delete_title:"Delete title",profile_delete_badge:"Delete badge",profile_choose_frame:"Choose frame",profile_edit_profile:"Edit profile",profile_follow:"Follow",profile_unfollow:"Unfollow",profile_follows_you:"Follows you",profile_join_date:"Joined",profile_followers:"Followers",profile_following:"Following",profile_insufficient_balance:"Your balance is insufficient to complete the operation",profile_tab_latest:"Latest posts",profile_tab_lists:"Post lists",profile_loading_more:"Loading more...",profile_loading_posts:"Loading posts...",profile_no_posts:"No posts yet",profile_list_untitled:"Untitled list",profile_post_count_unit:"posts",profile_no_lists:"No post lists yet",profile_no_lists_hint:"Tap the + button to create your first list",profile_cancel:"Cancel",profile_save:"Save",profile_delete:"Delete",profile_close:"Close",profile_error_title:"Error",profile_success_title:"Success",profile_updated_title:"Updated",profile_sent_title:"Sent",profile_reported_title:"Reported",profile_unknown:"Unknown",profile_this_user:"this user",profile_send_btn:"Send",profile_update_error:"An error occurred while updating the data",profile_image_banned:"User image has been banned",profile_image_allowed:"User image has been allowed",profile_cover_banned:"User cover has been banned",profile_cover_allowed:"User cover has been allowed",profile_send_warning_title:"Send warning",profile_send_warning_message:"Do you want to send a warning to {name}?",profile_warning_sent_success:"Warning sent successfully",profile_warning_sent_error:"An error occurred while sending the warning",profile_already_reported_image:"You have already reported this image",profile_already_reported_cover:"You have already reported this cover",profile_report_success:"Report sent successfully",profile_report_error:"An error occurred while sending the report",profile_title_name_required:"Please enter a title name",profile_title_granted_success:"Title granted successfully",profile_title_granted_error:"An error occurred while granting the title",profile_title_deleted_success:"Title deleted successfully",profile_title_deleted_error:"An error occurred while deleting the title",profile_title_select_required:"Please select a title to delete",profile_badge_select_required:"Please select a badge",profile_badge_name_required:"Please enter a badge name",profile_badge_granted_success:"Badge granted successfully",profile_badge_granted_error:"An error occurred while granting the badge",profile_badge_deleted_success:"Badge deleted successfully",profile_badge_deleted_error:"An error occurred while deleting the badge",profile_staff_added_success:"User added to staff with unassigned role",profile_staff_added_error:"An error occurred while adding the user to staff",profile_ban_save_error:"An error occurred while saving the ban",profile_ban_success:"{banLabel} applied successfully",profile_unban_success:"{banLabel} removed successfully",profile_ban_generic:"Ban",profile_grant_title_dialog_heading:"Grant title",profile_title_name_label:"Title name",profile_title_name_placeholder:"Enter title name",profile_duration_label:"Duration",profile_duration_1day:"One day",profile_duration_3days:"3 days",profile_duration_month:"One month",profile_duration_permanent:"Permanent",profile_bg_color_label:"Background color",profile_text_color_label:"Text color",profile_preview_label:"Preview",profile_preview_placeholder:"Title preview",profile_delete_title_dialog_heading:"Delete title",profile_select_title_to_delete:"Select a title to delete",profile_select_title_placeholder:"-- Select a title --",profile_grant_badge_dialog_heading:"Grant badge",profile_badge_name_label:"Badge name",profile_badge_name_placeholder:"Enter badge name",profile_select_badge_label:"Select a badge",profile_delete_badge_dialog_heading:"Delete badge",profile_select_badge_to_delete:"Select a badge to delete",profile_select_badge_placeholder:"-- Select a badge --",profile_ban_target_label:"Target user",profile_ban_type_label:"Ban type",profile_ban_duration_label:"Ban duration",profile_ban_temporary:"Temporary",profile_ban_amount_label:"Amount",profile_ban_unit_label:"Unit",profile_ban_unit_days:"Days",profile_ban_unit_months:"Months",profile_ban_reason_label:"Reason",profile_ban_reason_placeholder:"Enter ban reason",profile_unban_confirm_text:"{banLabel} will be removed from this user.",profile_ban_current_reason:"Current reason",profile_unban_confirm_btn:"Remove ban",profile_unban_dialog_heading:"Remove {banLabel}",profile_user_info_heading:"User information",profile_info_name:"Name",profile_info_username:"Username",profile_info_email:"Email",profile_info_currency:"Currency count",profile_info_currency_unit:"coins",profile_info_points:"Points",profile_info_points_unit:"points",profile_info_violations:"Violations",profile_info_violations_unit:"violations",profile_info_saraha_sent:"Saraha messages sent",profile_info_messages_unit:"messages",profile_info_team:"Team",profile_info_no_team:"Not part of any team",profile_info_morning_streak:"Morning Azkar streak",profile_info_evening_streak:"Evening Azkar streak",profile_info_tasbeeh_streak:"Tasbeeh streak",profile_info_days_unit:"days",profile_info_join_date:"Join date",profile_info_unavailable:"Not available",profile_back_tooltip:"Go back",profile_logout_tooltip:"Log out",profile_options_tooltip:"Options",profile_drag_list_tooltip:"Drag list",profile_coins_sent_to_ar:"Sent coins to: {name}",profile_coins_sent_to_ltr:"Sent coins to: {name}",profile_coins_received_from_ar:"Received coins from: {name}",profile_coins_received_from_ltr:"Received coins from: {name}",create_profile_header:"Create profile",create_profile_uploading_image:"Uploading image...",create_profile_creating_profile:"Creating profile...",create_profile_wait_message:"Please wait and do not close the page",create_profile_timeout_warning:"\u26a0\ufe0f The connection is slow. You can continue and change your data later from profile settings",create_profile_image_alt:"Profile image",create_profile_name_placeholder:"Name",create_profile_finding_tag:"Finding an available tag...",create_profile_tag_placeholder:"User tag",create_profile_refresh_tag_title:"Generate another random tag",create_profile_tag_helper:"You can change it or keep the suggested tag \u2014 it must be unique (at least 3 characters)",create_profile_description_placeholder:"Write a short description about yourself",create_profile_checking:"Checking...",create_profile_saving:"Saving...",create_profile_create_button:"Create profile",create_profile_crop_title:"Crop image",create_profile_crop_desc:"Move and zoom the image to choose the desired area",create_profile_zoom_label:"Zoom",create_profile_crop_cancel:"Cancel crop",create_profile_crop_apply:"Apply crop",create_profile_signin_wait_title:"Signing in",create_profile_signin_wait_message:"Please wait until database sign-in is complete, then try again",home_tab_following:"Following",home_tab_events:"Events",home_tab_latest:"Latest Posts",home_loading_posts:"Loading posts...",home_loading_more:"Loading more...",home_no_events:"No events yet",home_no_following_posts:"No posts from people you follow",home_end_of_feed:"You have reached the end",home_status_fab_tooltip:"What is happening now?",home_search:"Search",home_filter_all:"All",home_filter_articles:"Articles",home_filter_polls:"Polls",home_filter_quizzes:"Quizzes",home_filter_highlights:"Highlights",home_no_filtered_posts:"No posts of this type yet",postcard_ad_cancelled:"Advertisement cancelled",postcard_already_reported_message:"You have already reported this post",postcard_already_reported_title:"Already reported",postcard_banned_reaction_message:"You are banned from reacting and cannot send reactions.",postcard_banned_title:"Banned",postcard_block:"Block",postcard_block_post_message:"Are you sure you want to block this post for violating app rules?",postcard_block_post_title:"Block post",postcard_blocked_message:"This post is blocked - violates app rules \ud83d\udeab",postcard_cancel:"Cancel",postcard_cancel_ad:"Cancel advertisement",postcard_cancel_ad_message:"Do you want to stop making this post an advertisement?",postcard_cancel_ad_title:"Cancel advertisement",postcard_cannot_edit_message:"This post cannot be edited because it was blocked by administration",postcard_cannot_edit_title:"Cannot edit post",postcard_close:"Close",postcard_coin_alt:"coin",postcard_comments:"Comments",postcard_convert_to_ad:"Convert to ad",postcard_convert_to_ad_message:"Do you want to make this post a featured advertisement?",postcard_convert_to_ad_title:"Convert to ad",postcard_converted_to_ad:"Post converted to advertisement",postcard_copied_title:"Copied",postcard_copy_link_failed:"Failed to copy link",postcard_cover_alt:"Cover",postcard_delete:"Delete",postcard_delete_post_message:"Are you sure you want to delete this post?",postcard_delete_post_title:"Delete post",postcard_done:"Done",postcard_error_title:"Error",postcard_frame_alt:"Frame",postcard_hide:"Hide",postcard_hide_post_message:"Are you sure you want to hide this post?",postcard_hide_post_title:"Hide post",postcard_ok:"OK",postcard_pin:"Pin",postcard_pin_message:"Do you want to pin this post?",postcard_pin_title:"Pin post",postcard_post_blocked:"Post blocked",postcard_post_link_copied:"Post link copied successfully",postcard_post_pinned:"Post pinned",postcard_post_removed_from_saved:"Post removed from saved items",postcard_post_saved:"Post saved",postcard_post_title:"Post",postcard_post_unblocked:"Post unblocked",postcard_post_unpinned:"Post unpinned",postcard_profile_image_alt:"Profile picture",postcard_reaction_angry:"Angered me",postcard_reaction_care:"Support",postcard_reaction_haha:"Haha",postcard_reaction_like:"Like",postcard_reaction_love:"Love",postcard_reaction_sad:"Saddened me",postcard_reaction_wow:"Wow",postcard_reactions_closed_message:"The post owner has closed reactions on this post",postcard_reactions_closed_title:"Reactions closed",postcard_read_more:"Read more",postcard_remove:"Remove",postcard_remove_from_events_message:"Do you want to remove this post from events?",postcard_remove_from_events_title:"Remove from events",postcard_remove_from_list_message:"Are you sure you want to remove this post from the list?",postcard_remove_from_list_title:"Remove from list",postcard_removed_from_events_success:"Post removed from events",postcard_removed_from_list_message:"Post removed from the list successfully! The page will refresh.",postcard_removed_title:"Removed",postcard_report:"Report",postcard_report_post_message:"Are you sure you want to report this post?",postcard_report_post_title:"Report post",postcard_reported_message:"Post reported successfully",postcard_reported_title:"Reported",postcard_set:"Set",postcard_set_as_event_message:"Do you want to set this post as an event?",postcard_set_as_event_success:"Post set as an event",postcard_set_as_event_title:"Set as event post",postcard_share_text:"Check out this post",postcard_show_more:"Show more",postcard_surah_label:"Surah",postcard_unblock:"Unblock",postcard_unblock_post_message:"Are you sure you want to unblock this post?",postcard_unblock_post_title:"Unblock post",postcard_unhide:"Unhide",postcard_unhide_post_message:"Are you sure you want to unhide this post?",postcard_unknown_user:"Unknown user",postcard_unpin:"Unpin",postcard_unpin_message:"Do you want to unpin this post?",postcard_unpin_title:"Unpin post",postcard_verified_alt:"verified",postcard_video_link_copied:"Video link copied successfully",postcard_viewing_as_moderator:"You are viewing this content because you are a moderator",postcard_yes:"Yes",unified_post_menu_done:"Done",unified_post_menu_error:"Error",unified_post_menu_warning:"Warning",unified_post_menu_cancel:"Cancel",unified_post_menu_not_available:"Not available",unified_post_menu_copied_title:"Copied",unified_post_menu_reported_title:"Reported",unified_post_menu_edit_post:"Edit post",unified_post_menu_save_post:"Save post",unified_post_menu_remove_from_saved:"Remove from saved",unified_post_menu_post_saved:"Post saved",unified_post_menu_post_removed_from_saved:"Post removed from saved items",unified_post_menu_save_error:"An error occurred while saving the post",unified_post_menu_copy_link:"Copy link",unified_post_menu_link_copied:"Link copied",unified_post_menu_copy_link_failed:"Failed to copy link",unified_post_menu_add_to_list:"Add to list",unified_post_menu_remove_from_list:"Remove from list",unified_post_menu_add_to_list_unavailable:"Adding post to a list is not available right now",unified_post_menu_remove_from_list_unavailable:"Removing post from list is not available right now",unified_post_menu_open_comments:"Open comments",unified_post_menu_close_comments:"Close comments",unified_post_menu_enable_comments:"allow comments",unified_post_menu_disable_comments:"disable comments",unified_post_menu_toggle_comments_message:"Do you want to {action} on this post?",unified_post_menu_comments_opened:"Comments have been enabled",unified_post_menu_comments_closed:"Comments have been closed",unified_post_menu_toggle_comments_error:"An error occurred while updating comments",unified_post_menu_open_reactions:"Open reactions",unified_post_menu_close_reactions:"Close reactions",unified_post_menu_enable_reactions:"allow reactions",unified_post_menu_disable_reactions:"disable reactions",unified_post_menu_toggle_reactions_message:"Do you want to {action} on this post?",unified_post_menu_reactions_opened:"Reactions have been enabled",unified_post_menu_reactions_closed:"Reactions have been closed",unified_post_menu_toggle_reactions_error:"An error occurred while updating reactions",unified_post_menu_pin_post:"Pin post",unified_post_menu_unpin:"Unpin",unified_post_menu_pin_message:"Do you want to pin this post to your profile?",unified_post_menu_unpin_message:"Do you want to remove the pin?",unified_post_menu_post_pinned:"Post pinned",unified_post_menu_post_unpinned:"Post unpinned",unified_post_menu_toggle_pin_error:"An error occurred while updating the pin",unified_post_menu_set_as_event:"Set as event",unified_post_menu_remove_from_events:"Remove from events",unified_post_menu_set_as_event_message:"Do you want to set this post as an event?",unified_post_menu_remove_from_events_message:"Do you want to remove this post from events?",unified_post_menu_post_set_as_event:"Post set as an event",unified_post_menu_post_removed_from_events:"Post removed from events",unified_post_menu_toggle_event_error:"An error occurred while updating the event",unified_post_menu_convert_to_ad:"Convert to featured ad",unified_post_menu_cancel_ad:"Cancel advertisement",unified_post_menu_convert_to_ad_message:"Do you want to convert this post to a featured advertisement?",unified_post_menu_cancel_ad_message:"Do you want to cancel the advertisement?",unified_post_menu_post_converted_to_ad:"Post converted to advertisement",unified_post_menu_ad_cancelled:"Advertisement cancelled",unified_post_menu_toggle_ad_error:"An error occurred while updating the advertisement",unified_post_menu_delete_post:"Delete post",unified_post_menu_delete_post_message:"The post will be moved to trash. Are you sure?",unified_post_menu_delete_post_error:"An error occurred while deleting the post",unified_post_menu_block_post:"Block post",unified_post_menu_unblock_post:"Unblock post",unified_post_menu_block_post_message:"Do you want to block this post for violating the rules?",unified_post_menu_unblock_post_message:"Do you want to unblock this post?",unified_post_menu_post_blocked:"Post blocked",unified_post_menu_post_unblocked:"Post unblocked",unified_post_menu_block_not
2ification:"Your post has been blocked for violating the rules",unified_post_menu_unblock_notification:"The block on your post has been lifted",unified_post_menu_toggle_block_error:"An error occurred while updating the block",unified_post_menu_hide_from_feed:"Hide from latest posts",unified_post_menu_show_in_feed:"Show in latest posts",unified_post_menu_hide_from_feed_message:"Do you want to hide this post from latest posts? It will still be visible on the profile page.",unified_post_menu_show_in_feed_message:"Do you want to show this post again in latest posts for everyone?",unified_post_menu_post_hidden_from_feed:"Post hidden from latest posts",unified_post_menu_post_shown_in_feed:"Post shown in latest posts",unified_post_menu_toggle_hide_from_feed_error:"An error occurred while updating the post",unified_post_menu_report_content:"Report content",unified_post_menu_report_dialog_heading:"Report content",unified_post_menu_report_dialog_subtitle:"Write the details you want to deliver",unified_post_menu_report_details_label:"Report details",unified_post_menu_report_details_placeholder:"Example: this post is offensive, or this reply contains a threat...",unified_post_menu_report_details_required:"Please write the report details first",unified_post_menu_report_sent_message:"Report sent successfully and will be reviewed",unified_post_menu_send_report:"Send report",unified_post_menu_report_error:"An error occurred while sending the report",pcm_reaction_like:"Like",pcm_reaction_love:"Love",pcm_reaction_care:"Support",pcm_reaction_haha:"Haha",pcm_reaction_wow:"Wow",pcm_reaction_sad:"Saddened me",pcm_reaction_angry:"Angered me",pcm_reactions_closed_title:"Reactions closed",pcm_reactions_closed_message:"The post owner has closed reactions on this post",pcm_login_required_title:"Login required",pcm_login_required_to_react:"Please log in to react",pcm_comment_deleted:"Comment deleted",pcm_surah_label:"Surah",pcm_banned_title:"Banned",pcm_banned_comment_message:"You are banned from commenting and cannot post a comment.",pcm_login_required_before_comment:"Please log in before adding a comment",pcm_insufficient_coins_title:"Insufficient coins",pcm_insufficient_coins_message:"You do not have enough balance to send these amounts with the comment",pcm_post_deleted:"Post deleted",pcm_error_title:"Error",pcm_error_post_owner_missing:"An error occurred: post owner not found",pcm_coins_transfer_error:"An error occurred while transferring coins. No amount was deducted.",pcm_block_police:"Comment blocked - security violation \ud83d\udc6e",pcm_block_health:"Comment blocked - health violation \ud83c\udfe5",pcm_block_literature:"Comment blocked - conduct violation \ud83d\udcda",pcm_block_law:"Comment blocked - legal violation \u2696\ufe0f",pcm_block_admin:"Comment blocked - administrative decision \ud83d\udd12",pcm_blocked_generic:"Comment blocked",pcm_login_required_action:"Please log in to perform this action",pcm_already_reported_title:"Already reported",pcm_already_reported_message:"You have already reported this comment",pcm_report_police_title:"Report to Police Center",pcm_report_police_message:"Are you sure you want to report this comment to the Police Center?",pcm_login_required_to_report:"Please log in to complete the report",pcm_report_police_theft_reason:"Police Center report for theft",pcm_reported_title:"Reported",pcm_report_police_success:"The comment has been successfully reported to the Police Center",pcm_report_error:"An error occurred while reporting",pcm_report_health_title:"Report to Health Center",pcm_report_health_message:"Are you sure you want to report this comment to the Health Center?",pcm_report_health_depression_reason:"Health Center report for depression",pcm_report_health_success:"The comment has been successfully reported to the Health Center",pcm_report_literature_title:"Report to Conduct Center",pcm_report_literature_message:"Are you sure you want to report this comment to the Conduct Center?",pcm_report_literature_abuse_reason:"Conduct Center report for abuse",pcm_report_literature_success:"The comment has been successfully reported to the Conduct Center",pcm_report_law_title:"Report to Law Center",pcm_report_law_message:"Are you sure you want to report this comment to the Law Center?",pcm_report_law_violation_reason:"Law Center report for legal violation",pcm_report_law_success:"The comment has been successfully reported to the Law Center",pcm_login_required_for_report:"You must be logged in to report",pcm_report_submit_success:"Report submitted successfully. Thank y
2ou for helping keep the community safe.",pcm_report_submit_error:"An error occurred while submitting the report. Please try again later.",pcm_delete_comment_title:"Delete comment",pcm_delete_comment_message:"Are you sure you want to delete this comment? This action cannot be undone.",pcm_delete_btn:"Delete",pcm_cancel_btn:"Cancel",pcm_deleted_title:"Deleted",pcm_delete_success:"Comment deleted successfully",pcm_delete_error:"An error occurred while deleting the comment",pcm_permissions_title:"Permissions",pcm_no_pin_permission:"You do not have permission to pin comments",pcm_unpinned_title:"Unpinned",pcm_unpinned_message:"Comment has been unpinned",pcm_pinned_title:"Pinned",pcm_pinned_message:"Comment pinned successfully",pcm_pin_error:"An error occurred while pinning the comment",pcm_no_hide_permission:"You do not have permission to hide comments",pcm_hide_error:"An error occurred while changing the comment state",pcm_modal_title:"Post comments",pcm_pin_comment:"\ud83d\udccc Pin comment",pcm_unpin_comment:"\ud83d\udccc Unpin comment",pcm_show_comment:"\ud83d\udc41\ufe0f\u200d\ud83d\udde8\ufe0f Show comment",pcm_hide_comment:"\ud83d\udc7b Hide comment",pcm_block_notification:"Your comment was blocked for violating app rules",pcm_unblock_comment:"Unblock comment",pcm_block_comment:"Block comment",pcm_report_comment:"Report comment",pcm_hidden_comment_title:"This comment is hidden",pcm_edit_comment:"Edit comment",pcm_add_comment:"Add a comment",pcm_cannot_send_coins_to_self:"You cannot send coins to your own post",pcm_insufficient_coins_balance:"You do not have enough coins",pcm_report_dialog_heading:"Report comment",pcm_report_dialog_subtitle:"Write the report details so moderators can review it better",pcm_report_details_label:"Report details",pcm_report_details_placeholder:"Example: this comment is offensive or contains inappropriate content...",pcm_send_report_btn:"Send report",pcm_yes_btn:"Yes",crm_reaction_like:"Like",crm_reaction_love:"Love",crm_reaction_care:"Support",crm_reaction_haha:"Haha",crm_reaction_wow:"Wow",crm_reaction_sad:"Saddened me",crm_reaction_angry:"Angered me",crm_block_police:"Reply blocked - security violation \ud83d\udc6e",crm_block_health:"Reply blocked - health violation \ud83c\udfe5",crm_block_literature:"Reply blocked - conduct violation \ud83d\udcda",crm_block_law:"Reply blocked - legal violation \u2696\ufe0f",crm_block_admin:"Reply blocked - administrative decision \ud83d\udd12",crm_blocked_generic:"Reply blocked",crm_already_reported_title:"Already reported",crm_already_reported_message:"You have already reported this reply",crm_report_police_title:"Report to Police Center",crm_report_police_message:"Are you sure you want to report this reply to the Police Center?",crm_report_police_theft_reason:"Police Center report for theft",crm_reported_title:"Reported",crm_report_police_success:"The reply has been successfully reported to the Police Center",crm_error_title:"Error",crm_report_error:"An error occurred while reporting",crm_report_health_title:"Report to Health Center",crm_report_health_message:"Are you sure you want to report this reply to the Health Center?",crm_report_health_depression_reason:"Health Center report for depression",crm_report_health_success:"The reply has been successfully reported to the Health Center",crm_report_literature_title:"Report to Conduct Center",crm_report_literature_message:"Are you sure you want to report this reply to the Conduct Center?",crm_report_literature_abuse_reason:"Conduct Center report for abuse",crm_report_literature_success:"The reply has been successfully reported to the Conduct Center",crm_report_law_title:"Report to Law Center",crm_report_law_message:"Are you sure you want to report this reply to the Law Center?",crm_report_law_violation_reason:"Law Center report for legal violation",crm_report_law_success:"The reply has been successfully reported to the Law Center",crm_login_required_for_report:"You must be logged in to report",crm_report_submit_success:"Report submitted successfully. Thank you for helping keep the community safe.",crm_report_submit_error:"An error occurred while submitting the report. Please try again later.",crm_delete_reply_title:"Delete reply",crm_delete_reply_message:"Are you sure you want to delete this reply? This action cannot be undone.",crm_delete_btn:"Delete",crm_cancel_bt
2n:"Cancel",crm_deleted_title:"Deleted",crm_delete_success:"Reply deleted successfully",crm_delete_error:"An error occurred while deleting the reply",crm_surah_label:"Surah",crm_banned_title:"Banned",crm_banned_reply_message:"You are banned from commenting and cannot post a reply.",crm_comment_deleted:"Comment deleted",crm_reply_deleted:"Reply deleted",crm_modal_title:"Comment replies",crm_block_reason_theft:"Stolen reply",crm_unblock_reply_theft:"Unblock reply (theft)",crm_block_reply_theft:"Block reply (stolen reply)",crm_block_reason_literature:"Conduct-violating reply",crm_unblock_reply_literature:"Unblock reply (conduct)",crm_block_reply_literature:"Block reply (conduct-violating reply)",crm_block_reason_law:"Illegal reply",crm_unblock_reply_law:"Unblock reply (law)",crm_block_reply_law:"Block reply (illegal reply)",crm_report_health_depression:"Health Center report for depression",crm_edit_reply:"Edit reply",crm_comment_label:"Comment",crm_reply_on_label:"Reply to {target}",crm_report_dialog_heading:"Report reply",crm_report_dialog_subtitle:"Write the report details so moderators can review it better",crm_report_details_label:"Report details",crm_report_details_placeholder:"Example: this reply contains abuse or a threat...",crm_send_report_btn:"Send report",crm_yes_btn:"Yes",pcm_coins_sent_to_post:"Sent coins to post {name}",pcm_coins_sent_with_comment:"Deduction for sending coins with a comment on a post",pcm_coins_received_from:"Received coins from {name}",pcm_coins_received_with_comment:"Received coins from a comment on your post",pcm_block_reason_fallback:"Block/unblock comment ({blockType})",pcm_comments_closed_banner:"\ud83d\udd12 Comments are closed on this post",pcm_reactions_closed_banner:"\ud83d\udc94 Reactions are closed on this post",pcm_no_comments_yet:"No comments on this post yet",pcm_pinned_comment_badge:"\ud83d\udccc Pinned comment",pcm_edit_comment_menu:"Edit comment",pcm_delete_comment_menu:"Delete comment",pcm_spoiler_warning:"This comment contains a spoiler. Click to view.",crm_block_reason_fallback:"Block/unblock reply ({blockType})",crm_edit_reply_menu:"Edit reply",crm_delete_reply_menu:"Delete reply",crm_report_reply_menu:"Report reply",crm_spoiler_warning:"This reply contains a spoiler. Click to view.",crm_comments_closed_banner:"Comments are closed on this post",post_action_reaction_like:"Like",post_action_reaction_love:"Love",post_action_reaction_care:"Care",post_action_reaction_haha:"Haha",post_action_reaction_wow:"Wow",post_action_reaction_sad:"Sad",post_action_reaction_angry:"Angry",post_action_default_post_title:"Check out this post",post_action_share_text:"Check out this post!",post_action_share:"Share",post_action_comments:"Comments",post_action_comments_closed:"Comments Closed",post_action_reactions_closed:"Reactions Closed",post_action_comments_closed_title:"Comments are closed",post_action_comments_closed_message:"The author has closed comments on this post.",post_action_ok:"OK",post_action_view_comments:"View Comments",hashtag_dropdown_no_results_found:"No results found",hashtag_dropdown_create_new:"#: Create New",comment_input_box_comment_placeholder:"Add a comment",comment_input_box_invalid_image_type:"Unsupported image format",comment_input_box_image_upload_failed:"Image upload failed",comment_input_box_mentions_no_results_found:"No user found with that name",comment_input_box_character_no_results_found:"No characters found with that name",comment_input_box_character_category_prophets:"Prophets",comment_input_box_character_category_companions:"Companions",comment_input_box_character_category_historical:"Historical characters",comment_input_box_quran_surah_no_results_found:"No surah found with that name",comment_input_box_quran_surah_header:"Quran Surahs",comment_input_box_quran_surah_name:"Surah",comment_input_box_edit_mode_title:"Edit comment",comment_input_box_comments_disabled:"Comments are disabled",time_ago_just_now:"Just now",time_ago_one_minute:"1 minute ago",time_ago_minutes:"{count} minutes ago",time_ago_one_hour:"1 hour ago",time_ago_two_hours:"2 hours ago",time_ago_hours:"{count} hours ago",time_ago_hours_alt:"{count} hours ago",time_ago_one_day:"1 day ago",time_ago_two_days:"2 days ago",time_ago_days:"{count} days ago",time_ago_days_alt:"{count} days ago",time_ago_one_week:"1 week ago",time_ago_two_weeks:"2 weeks ago",time_ago_weeks:"{count} weeks ago",time_ago_one_month:"1 month ago",time_ago_two_months:"2 months ago",time_ago_months:"{count} months ago",notifications_page_no_notifications:"No notifications",notifications_page_title:"Notifications",notifications_page_filter_all:"All",notifications_page_filter_posts:"Posts",notifications_page_filter_comments:"Comments",notifications_page_filter_coins:"Coins",notifications_page_filter_replies:"Replies",notifications_page_filter_team_request:"Team requests",notifications_page_filter_team_approval:"Team approval",notifications_page_filter_team_promotion:"Team promotion",notifications_page_filter_team_kick:"Team kick",notifications_page_filter_saraha:"Saraha",notifications_page_filter_coins_sent:"Coins received",notifications_page_filter_blocked:"Blocked",notifications_page_filter_unblocked:"Unblocked",notifications_page_tab_follow:"Follow",notifications_page_tab_reaction:"Reactions",notifications_page_tab_messages:"Messages",notifications_page_tab_general:"General",notifications_page_mark_all_read:"Mark all as read",notifications_page_delete_all:"Delete all",notifications_page_post_blocked:"Your post has been blocked by admin",notifications_page_profile_image_blocked:"Your profile image has been blocked by admin",notifications_page_cover_image_blocked:"Your cover image has been blocked by admin",notifications_page_reply_blocked:"Your reply has been blocked because {reason}",notifications_page_comment_blocked:"Your comment has been blocked because {reason}",notifications_page_reply_unblocked:"Your reply has been unblocked",notifications_page_comment_unblocked:"Your comment has been unblocked",notifications_page_text_chat_message:'New message from {name}: "{snippet}"',notifications_page_text_follow:"{name} started following you",notifications_page_text_reaction_post:"{name} reacted to your post",notifications_page_text_reaction_comment:"{name} reacted to your comment",notifications_page_text_reaction_reply:"{name} reacted to your reply",notifications_page_text_reaction_generic:"{name} reacted to your post",notifications_page_text_mention:"{name} mentioned you in a post",notifications_page_text_comment:"{name} commented on your post",notifications_page_text_comment_with_message:'{name} commented on your post: "{message}"',notifications_page_text_comment_with_coins:"{name} sent you {coins} coins in a comment",notifications_page_text_coins_with_comment:"{name} sent you {coins} coins in a comment",notifications_page_text_reply:"{name} replied to your comment",notifications_page_text_reply_with_message:'{name} replied to your comment: "{message}"',notifications_page_text_reply_with_coins:"{name} sent you {coins} coins in a reply",notifications_page_text_private_message:'Private message from {name}: "{snippet}"',notifications_page_text_group_message:'Message in {group} from {name}: "{snippet}"',notifications_page_text_team_request:"New request to join your team",notifications_page_text_team_approval:"Your request to join {team} was approved",notifications_page_text_team_promotion:"You were promoted in {team}{role}",notifications_page_text_team_promotion_role:" to {role}",notifications_page_text_team_kick:"You were removed from {team}",notifications_page_text_saraha_named:'You received an anonymous message: "{message}"',notifications_page_text_saraha_from:'You received a message from {name}: "{message}"',notifications_page_text_saraha_anonymous:"You have a new anonymous message",notifications_page_text_saraha_generic:"You have a new message",notifications_page_text_coins_sent:"{name} sent you {coins} coins",notifications_page_text_default:"New notification",notifications_page_unknown_user:"Someone",notifications_page_load_error:"Couldn't load notifications. Check your connection and try again.",notifications_page_retry:"Retry",notifications_page_delete_confirm:"Delete this notification?",notifications_page_toast_from:"From {name}",notifications_page_toast_new:"New notification",notifications_page_toast_snooze:"Snooze",notifications_page_toast_snooze_title:"Hide for 5 minutes",friend_requests_title_requests:"Friend Requests",friend_requests_title_contacts:"Contacts",friend_requests_search_placeholder:"Search for a contact...",friend_requests_no_contacts:"You haven't added any contacts yet.",friend_requests_no_results:"No matching results.",friend_requests_sent_you_request:"Sent you a friend request",friend_requests_accept_btn:"Accept",friend_requests_reject_btn:"Reject",friend_requests_no_new_requests:"No new friend requests",friend_requests_edit_name_dialog:"Edit Name",friend_requests_update_btn:"Update",friend_requests_cancel_bt
2n:"Cancel",friend_requests_profile_image_alt:"Profile image",friend_requests_more_options_label:"More options",friend_requests_contacts_count_label:"contacts",friend_requests_favorites_section:"Favorites",friend_requests_remove_favorite:"Remove favorite",friend_requests_add_favorite:"Add to favorites",friend_requests_remove_contact:"Remove contact",friend_requests_incoming_tab:"Incoming",friend_requests_add_person_tab:"Add person",friend_requests_add_person_search_placeholder:"Search by UID or handle",friend_requests_add_person_hint:"Search by UID or username to add someone",friend_requests_add_person_searching:"Searching...",friend_requests_add_person_no_results:"No users found",friend_requests_already_related_label:"Already related",friend_requests_request_sent_label:"Request sent",friend_requests_send_request_btn:"Send request",friend_requests_send_request_error:"Failed to send friend request",messages_title:"Messages",messages_group_fallback:"Group",messages_search_chats_placeholder:"Search conversations...",messages_search_groups_placeholder:"Search groups...",messages_search_aria:"Search",messages_new_group_aria:"New group",messages_tab_friends:"Contacts",messages_tab_groups:"Groups",messages_start_chat_now:"Start the conversation now...",messages_no_previous_chats:"You do not have previous messages. Tap the button below to start a conversation.",messages_no_results:"No matching results.",messages_public_groups:"Public groups",messages_public_groups_subtitle:"Discover and explore communities",messages_no_messages:"No messages...",messages_no_groups:"You do not have any groups right now. You can create a group or join groups from discover.",messages_new_message:"New message",messages_create_group:"Create group",messages_unmute_notifications:"Unmute notifications",messages_mute_notifications:"Mute notifications",messages_rename:"Rename",messages_cancel_report:"Cancel report",messages_report:"Report",messages_leave_group:"Leave group",messages_new_chat_search_placeholder:"Search for a person...",messages_start_new_chat:"Start a new conversation",messages_no_available_people:"No people are available to start a new conversation.",messages_no_results_short:"No results.",messages_rename_contact_title:"Rename contact",messages_rename_contact_subtitle:"This name will only appear to you",messages_rename_placeholder:"Type the new name...",messages_cancel:"Cancel",messages_save:"Save",quran_title:"Quran",quran_my_list:"My list",quran_loading:"Loading...",quran_search_placeholder:"Search for a surah...",quran_sync_success_title:"Synced",quran_sync_success_message:"{count} changes were synced with the server successfully",quran_offline_title:"No connection",quran_offline_message:"You do not have internet right now. Data will be saved locally and synced with the server the next time you connect.",quran_unavailable_offline_title:"Unavailable offline",quran_unavailable_offline_message:"This surah has not been opened before and has no saved copy. Please connect to the internet to open it for the first time.",quran_tab_reading:"Reading",quran_tab_details:"Details",quran_no_cached_surah:"There is no internet connection and no saved copy for this surah.",quran_open_once_hint:"Open it once while connected so it can be saved for offline use.",quran_reset_progress_title:"Reset progress",quran_skip_ayahs_title:"Skip verses",quran_skip_ayahs_message:"Are you sure you have read up to verse {target}? Your last read verse was {last}.",quran_reset_progress_message:"Are you sure you want to reset your reading progress for {surah}? All progress will be deleted.",quran_info_type:"Type",quran_info_ayahs:"Verses",quran_info_surah_number:"Surah number",quran_memorization_status:"Memorization status",quran_status_none:"-- None --",quran_status_want_to_memorize:"I want to memorize it",quran_status_memorizing:"Currently memorizing",quran_status_memorized:"Memorized",quran_status_later:"Memorize later",quran_status_difficult:"Difficult to memorize",quran_revelation_meccan:"Meccan",quran_revelation_medinan:"Medinan",quran_ayah_count:"{count} verses",my_quran_list_empty_status:"No surahs in this status",deleted_posts_title:"Deleted posts",deleted_posts_checking_permissions:"Checking permissions...",deleted_posts_no_permission:"You do not have permission to access this page",deleted_posts_search_placeholder:"Search by Post ID, User ID, or name...",deleted_posts_search_prompt:"Search to show deleted posts. Results load only after searching to reduce usage.",deleted_posts_loading:"Loading deleted posts...",deleted_posts_empty:"No deleted posts",deleted_posts_no_results:"No search results found",deleted_posts_deleted_at:"Deleted",deleted_posts_recover_title:"Recover post",deleted_posts_recover_message:"Do you want to re
2cover this post?",deleted_posts_recover_confirm:"Recover",deleted_posts_permanent_delete_title:"Permanent delete",deleted_posts_permanent_delete_message:"Do you want to permanently delete this post? This action cannot be undone.",deleted_posts_permanent_delete_confirm:"Delete permanently",deleted_posts_yes:"Yes",deleted_posts_cancel:"Cancel",create_post_list_title:"Create new list",create_post_list_image_label:"List image",create_post_list_uploading:"Uploading...",create_post_list_image_hint:"Tap to choose the cover image for the list",create_post_list_name_label:"List name",create_post_list_name_placeholder:"Enter the list name here...",create_post_list_create_button:"Create list",create_post_list_creating:"Creating...",create_post_list_valid_image_required:"Please choose a valid image",create_post_list_upload_error:"An error occurred while uploading the image",create_post_list_name_and_image_required:"Please enter a list name and choose an image",create_post_list_success:"List created successfully!",create_post_list_create_error:"An error occurred while creating the list",saved_posts_title:"Saved posts",saved_posts_loading:"Loading...",saved_posts_empty:"No saved posts",team_posts_loading:"Loading...",team_posts_team_fallback:"Team",team_posts_empty:"No posts for this team",team_posts_load_error:"An error occurred while loading posts",team_posts_try_another:"Try searching for another team",team_posts_back_home:"Back to home",team_posts_count:"{count} posts",team_posts_level:"Level: {level}",hashtag_posts_loading:"Loading posts...",hashtag_posts_empty:"No posts with this hashtag yet",hashtag_posts_load_error:"Could not load hashtag posts",profile_menu_no_daily_quiz_today:"No question is available for today",profile_menu_frame_alt:"Profile frame",profile_menu_verified_alt:"Verified",profile_menu_coin_alt:"Coin",profile_menu_point_alt:"Point",profile_menu_ok:"OK",manage_hashtags_title:"Manage hashtags",manage_hashtags_loading:"Loading...",manage_hashtags_empty:"You have not created any hashtags yet",manage_hashtags_usage_count:"Used {count} times",manage_hashtags_private:"Private",manage_hashtags_delete_title:"Delete hashtag",manage_hashtags_delete_message:"Are you sure you want to delete #{hashtag}?",staff_loading:"Loading...",staff_title:"Staff",staff_empty:"No data available",staff_group_1:"Senior administration",staff_group_technical_content:"Content technical department",staff_group_2:"Content department",staff_group_3:"Events department",staff_group_4:"Data department",staff_group_5:"Other",staff_role_1:"Super admin",staff_role_1_5:"Deputy super admin",staff_role_1_6:"Content technical department manager",staff_role_1_7:"Content technician",staff_role_2:"Content department manager",staff_role_3:"Content moderator",staff_role_4:"Events department manager",staff_role_5:"Events moderator",staff_role_6:"Data department manager",staff_role_7:"Data moderator",staff_role_10:"Unassigned",staff_role_user:"User",staff_role_unassigned:"Unassigned",staff_change_role_title:"Change {name} role",staff_save:"Save",staff_cancel:"Cancel",tasbeeh_title:"Adhkar challenge",tasbeeh_tab_recent:"Recent",tasbeeh_tab_favorites:"Favorites",tasbeeh_tab_main:"Main",tasbeeh_empty_favorites:"You have not added anything to favorites yet",tasbeeh_empty_recent:"You have not used any adhkar recently",tasbeeh_show_adhkar:"Show adhkar",tasbeeh_counter_sync_title:"Synced",tasbeeh_counter_sync_message:"Your progress was synced with the server successfully",tasbeeh_counter_offline_title:"No connection",tasbeeh_counter_offline_message:"You are offline right now. Data will be saved locally and synced with the server the next time you open the page.",tasbeeh_counter_purple_potion_title:"Purple Potion used",tasbeeh_counter_purple_potion_message:"Purple Lazy Potion was used. Your tasbeeh and adhkar progress were both protected.",tasbeeh_counter_streak_broken_title:"Progress streak broke",tasbeeh_counter_streak_broken_message:"Your streak was {count} days and has now reset. Start again.",tasbeeh_counter_blue_potion_title:"Blue Potion used",tasbeeh_counter_blue_potion_message:"Blue Lazy Potion was used to protect your tasbeeh progress.",tasbeeh_counter_badge_name:"Shield level {level}",tasbeeh_counter_badge_updated_title:"Badge updated",tasbeeh_counter_badge_updated_message:"Congratulations! Your badge was upgraded to shield level {level} after {count} consecutive days.",tasbeeh_counter_badge_new_title:"New badge",tasbeeh_counter_badge_new_message:"Congratulations! You earned shield level {level} after {count}
2 consecutive days.",tasbeeh_counter_temp_block_title:"Temporarily blocked",tasbeeh_counter_temp_block_message:"A temporary block was activated for {count} minutes because of cheating attempts. Try again later.",tasbeeh_counter_no_cheating_title:"Cheating is not allowed",tasbeeh_counter_no_cheating_message:"Cheating is not allowed. A temporary block was activated for {count} minutes.",tasbeeh_counter_next_level:"Next level",tasbeeh_counter_streak_days:"{count} consecutive days",tasbeeh_counter_tap_anywhere:"Tap anywhere to count",tasbeeh_counter_achievement_title:"\ud83c\udf96\ufe0f New achievement point!",tasbeeh_counter_achievement_message:'You reached {count} dhikr! You earned a "Dhakir" achievement point \ud83d\udcff',tasbeeh_counter_goal_modal_title:"Daily goal",tasbeeh_counter_goal_modal_description:"Choose how many dhikr you need to reach in order to earn one achievement point.",tasbeeh_counter_goal_modal_label:"Goal",tasbeeh_counter_goal_modal_save:"Save",tasbeeh_counter_goal_modal_cancel:"Cancel",tasbeeh_counter_goal_modal_invalid:"Please enter a number between {min} and {max}",tasbeeh_sequence_mode:"Sequence mode",tasbeeh_sequence_hint:"Select the adhkar in the order you want to recite them",tasbeeh_sequence_start:"Start sequence ({count})",tasbeeh_sequence_cancel:"Cancel",tasbeeh_sequence_min_error:"Select at least two adhkar to start a sequence",tasbeeh_sequence_progress:"Dhikr {current} of {total}",tasbeeh_sequence_mix_total:"Mix total: {count}",tasbeeh_sequence_next_label:"Next dhikr",tasbeeh_sequence_complete_title:"Sequence complete! \ud83c\udf89",tasbeeh_sequence_complete_message:"Well done! You completed all the adhkar in your sequence.",store_title:"Amposter Store",store_subtitle:"Discover useful items and add-ons",store_points_unit:"points",store_coins_unit:"coins",store_current_pack:"Current pack",store_active_pack:"Active pack",store_remaining_days:"{count} days left",store_expired:"Expired",store_coming_soon:"Coming soon",store_category_conversion:"Coins and points exchange",store_category_potions:"Tools store",store_category_reactions:"Reaction icons",store_category_stickers:"Stickers store",store_category_bubbles:"Bubbles store",store_category_frames:"Profile frames",store_category_themes:"Coming soon",store_category_special:"Special offers",store_convert_coins_to_points:"Convert coins to points",store_convert_points_to_coins:"Convert points to coins",store_convert_coins_subtitle:"Convert your coins into points to buy items",store_convert_points_subtitle:"Convert your points into coins",store_current_tax:"Current tax",store_example:"Example",store_conversion_amount_label:"Amount to convert ({unit})",store_enter_amount:"Enter amount",store_coins_to_convert:"Coins to convert",store_points_to_convert:"Points to convert",store_tax:"Tax",store_points_received:"Points received",store_coins_received:"Coins received",store_not_enough_points:"Sorry, you do not have enough points",store_not_enough_points_purchase:"You do not have enough points to complete the purchase",store_purchase_success_named:"{name} purchased successfully!",store_purchase_error:"An error occurred during purchase",store_blue_potion_name:"Blue Lazy Potion",store_blue_potion_desc:"Protects your tasbeeh streak from breaking",store_orange_potion_name:"Orange Lazy Potion",store_orange_potion_desc:"Protects your adhkar streak from breaking",store_purple_potion_name:"Rare Lazy Potion",store_purple_potion_desc:"Protects both your tasbeeh and adhkar streaks",store_potions_title:"Tools store",store_potions_subtitle:"Protect your progress with Lazy Potions",store_owned_count:"Owned: {count}",store_buying:"Buying...",store_buy:"Buy",store_confirm_purchase_title:"Confirm purchase",store_confirm_purchase_message:"Do you want to buy {name}?",store_yes:"Yes",store_no:"No",store_stickers_title:"Stickers store",store_stickers_subtitle:"Buy sticker packs to make your chats stand out",store_sticker:"Sticker",store_stickers_preview:"Stickers preview",store_sticker_purchase_success:"Sticker pack purchased successfully!",store_owned:"Owned",store_already_owned:"Already owned",store_no_stickers:"No stickers are available for purchase right now.",store_preview:"Preview",store_reactions_title:"Reaction icons store",store_reactions_subtitle:"Cho
2ose your favorite icon pack",store_reaction_pack_name:"Icon pack {number}",store_reaction_pack_default_desc:"Default pack - free",store_reaction_pack_desc:"A set of 7 unique reaction icons - valid for 30 days",store_reactions_preview:"Icons preview",store_active:"Active",store_free:"Free",store_active_now:"Active now",store_activate:"Activate",store_activate_free:"Activate for free",store_loading:"Loading...",store_login_required:"You must log in to access the store",moderation_logs_title:"Moderator action logs",moderation_logs_loading:"Loading...",moderation_logs_tab_logs:"Logs",moderation_logs_tab_stats:"Statistics",moderation_logs_total_actions:"Total actions",moderation_logs_need_verification:"Actions needing verification",moderation_logs_verified_actions:"Verified actions",moderation_logs_by_action_type:"By action type",moderation_logs_by_content_type:"By content type",moderation_logs_by_block_type:"By block type",moderation_logs_action_block:"Block",moderation_logs_action_block_theft:"Content theft block",moderation_logs_action_block_abuse:"Abuse block",moderation_logs_action_block_legal:"Legal violation block",moderation_logs_action_unblock:"Unblock",moderation_logs_action_unblock_theft:"Unblock content theft",moderation_logs_action_unblock_abuse:"Unblock abuse",moderation_logs_action_unblock_legal:"Unblock legal violation",moderation_logs_action_delete:"Delete post",moderation_logs_action_delete_short:"Delete",moderation_logs_action_report:"Report",moderation_logs_content_post:"Post",moderation_logs_content_comment:"Comment",moderation_logs_content_reply:"Reply",moderation_logs_content_profile_image:"Profile image",moderation_logs_content_cover_image:"Cover image",moderation_logs_block_theft:"Content theft",moderation_logs_block_abuse:"Abuse",moderation_logs_block_legal:"Legal violation",moderation_logs_search_placeholder:"Search moderator, user, or ID...",moderation_logs_filter:"Filter",moderation_logs_verification_status:"Verification status",moderation_logs_unverified:"Unverified",moderation_logs_verified:"Verified",moderation_logs_all:"All",moderation_logs_action_type:"Action type",moderation_logs_moderator:"Moderator",moderation_logs_empty:"No logs",moderation_logs_on:"On",moderation_logs_reason:"Reason",moderation_logs_type:"Type",moderation_logs_review_content:"Review content",moderation_logs_review:"Review",moderation_logs_mark_verified:"Mark verified",moderation_logs_confirm_title:"Confirm verification",moderation_logs_confirm_message:"Are you sure this log has been reviewed and verified?",moderation_logs_confirm_yes:"Yes, verified",moderation_logs_cancel:"Cancel",adhkar_benefit_title:"Benefit",adhkar_benefit_aria:"Show benefit",adhkar_once:"time",adhkar_times:"times",adhkar_tap_hint:"Tap to count",adhkar_completed_items:"Completed adhkar ({count})",adhkar_loading:"Loading adhkar...",adhkar_back:"Back",adhkar_title:"Morning and Evening Adhkar",adhkar_subtitle:"Tap each dhikr to count it. Tap ? to see the benefit.",adhkar_morning_tab:"Morning adhkar",adhkar_evening_tab:"Evening adhkar",adhkar_progress:"Progress",adhkar_streak_days:"{count} days",adhkar_done_title:"Well done! You completed all adhkar",adhkar_done_subtitle:"May Allah accept it from you and bless your day",adhkar_done_badge_subtitle:"Congratulations, you earned a badge for finishing today",adhkar_benefit_dialog_title:"Dhikr benefit",adhkar_reorder_btn:"Reorder adhkar",adhkar_reorder_done_btn:"Done",adhkar_reorder_hint:"Drag \u2630 to reorder, or use the arrows",adhkar_reset_order_btn:"Reset to default order",adhkar_reset_order_confirm_title:"Reset to default order?",adhkar_reset_order_confirm_message:"The adhkar order will go back to its original state. Your custom and hidden adhkar are not affected.",adhkar_drag_handle:"Drag to reorder",adhkar_move_up:"Move up",adhkar_move_down:"Move down",adhkar_custom_badge:"Private",adhkar_delete_custom:"Delete this custom dhikr",adhkar_add_custom_btn:"Add custom dhikr",adhkar_add_custom_title:"Add your own dhikr",adhkar_add_custom_name_label:"Dhikr name",adhkar_add_custom_text_label:"Dhikr text",adhkar_add_custom_repeat_label:"Repeat count",adhkar_add_custom_benefit_label:"Benefit (optional)",adhkar_add_custom_cancel:"Cancel",adhkar_add_custom_save:"Save",adhkar_add_custom_saving:"Saving...",adhkar_add_custom_error:"Please enter the dhikr text first",adhkar_hide_base:"Hide this d
2hikr",adhkar_restore_base:"Restore",adhkar_hidden_items:"Hidden adhkar ({count})",adhkar_min_count_title:"Minimum adhkar required",adhkar_min_count_message:"At least {count} adhkar must remain in this section. Add another dhikr first if you want to remove or hide more.",suggestions_box_status_all:"All",suggestions_box_status_pending:"Pending review",suggestions_box_status_in_development:"In development",suggestions_box_status_completed:"Completed",suggestions_box_status_rejected:"Rejected",suggestions_box_moderator:"Moderator",suggestions_box_user:"User",suggestions_box_reply_placeholder:"Write your reply to this request...",suggestions_box_sending:"Sending",suggestions_box_send_reply:"Send reply",suggestions_box_type_suggestion:"Suggestion",suggestions_box_type_problem:"Problem",suggestions_box_request_content:"Request content",suggestions_box_change_status:"Change status",suggestions_box_delete_request:"Delete request",suggestions_box_moderator_replies:"Moderator replies ({count})",suggestions_box_recently:"Just now",
2suggestions_box_confirm:"Confirm",suggestions_box_cancel:"Cancel",suggestions_box_confirm_status_title:"Confirm status change",suggestions_box_confirm_status_message:'Change request status to "{status}"?',suggestions_box_done:"Done",suggestions_box_error:"Error",suggestions_box_status_success:"Status updated successfully",suggestions_box_status_error:"Could not update status",suggestions_box_delete_title:"Delete request",suggestions_box_delete_message:"Do you want to permanently delete this {type}? Related replies will also be deleted.",suggestions_box_delete:"Delete",suggestions_box_deleted:"Deleted",suggestions_box_delete_success:"Request deleted successfully",suggestions_box_delete_error:"Could not delete request",suggestions_box_title:"Suggestions and Problems Box",suggestions_box_loading:"Loading...",suggestions_box_total:"Total",suggestions_box_waiting_review:"Awaiting review",suggestions_box_empty_title:"No requests",suggestions_box_empty_message:"No requests match the selected filter.",create_plan_plan_title:"Today's Plan",create_plan_title:"Create Today's Plan",create_plan_remaining_questions:"{count} questions remaining",create_plan_fetching_prayer_times:"Fetching prayer times...",create_plan_loading_settings:"Loading your settings...",create_plan_ready_title:"Ready to build the plan!",create_plan_ready_subtitle:"All questions have been answered",create_plan_create_daily_plan:"Create daily plan",create_plan_back:"Back",create_plan_reset_all:"Start over",create_plan_question_hasWork:"Do you have work today?",create_plan_option_hasWork_yes_today:"Yes, today",create_plan_option_hasWork_no_today:"No, not today",create_plan_option_hasWork_yes_always:"I always have work",create_plan_option_hasWork_no_always:"I never have work",create_plan_question_workStartTime:"When does your shift start?",create_plan_question_workEndTime:"When does your shift end?",create_plan_question_hasSchool:"Do you have school or university today?",create_plan_yes_hasSchool:"Yes, today",create_plan_no_hasSchool:"No, I do not",create_plan_question_schoolStartTime:"When does school or university start?",create_plan_question_schoolEndTime:"When does school or university end?",create_plan_question_mealsPerDay:"How many times do you eat per day?",create_plan_option_mealsPerDay_1:"Once",create_plan_option_mealsPerDay_2:"Twice",create_plan_option_mealsPerDay_3:"Three times",create_plan_question_breakfastTime:"When is breakfast?",create_plan_question_lunchTime:"When is lunch?",create_plan_question_dinnerTime:"When is dinner?",create_plan_question_cookOwnMeals:"Do you usually cook your own meals?",create_plan_yes_cookOwnMeals:"Yes, I cook myself",create_plan_no_cookOwnMeals:"No, they are prepared for me",create_plan_question_addPrayers:"Add the obligatory prayers to the plan?",create_plan_yes_addPrayers:"Yes, add them",create_plan_no_addPrayers:"No thanks",create_plan_question_country:"What is your country?",create_plan_subtitle_country:"Used to calculate prayer times accurately",create_plan_question_addSunnah:"Add sunnah prayers too?",create_plan_yes_addSunnah:"Yes, add them",create_plan_no_addSunnah:"No, obligatory prayers only",create_plan_question_isWudu:"Do you have wudu now?",create_plan_yes_isWudu:"Yes, I have wudu",create_plan_no_isWudu:"No, I do not",create_plan_question_addAdhkar:"Add morning and evening adhkar?",create_plan_yes_addAdhkar:"Yes, add them",create_plan_no_addAdhkar:"No thanks",create_plan_question_wantStudyToday:"Do you want to study today?",create_plan_yes_wantStudyToday:"Yes",create_plan_no_wantStudyToday:"Not today",create_plan_question_studyHours:"How many hours would you like to study?",create_plan_option_studyHours_1:"One hour",create_plan_option_studyHours_2:"Two hours",create_plan_option_studyHours_3:"3 hours",create_plan_option_studyHours_4:"4 hours",create_plan_option_studyHours_5:"5 hours",create_plan_option_studyHours_6:"6 hours",create_plan_question_studySessionDuration:"How long should each study session be?",create_plan_question_doesHousework:"Are you responsible for housework?",create_plan_yes_doesHousework:"Yes, I am responsible",create_plan_no_doesHousework:"No, someone else does it",create_plan_question_needLaundry:"Do you need to do laundry today?",create_plan_question_laundryDuration:"How long will laundry take?",create_plan_question_needSweep:"Do you need to sweep the house today?",create_plan_question_sweepDuration:"How much time do you need for sweeping?",create_plan_question_needOrganizeHome:"Do you need to organize the house today?",create_plan_question_organizeDuration:"How much time do you need to organize the house?",create_plan_question_wantsHygiene:"Do you need to do personal care tasks today?",create_plan_yes_wantsHygiene:"Yes, today",create_plan_no_wantsHygiene:"No, not today",create_plan_question_hygieneTypes:"What do you want to do today?",create_plan_question_barberDistance:"How far is the barber?",create_plan_question_barberWait:"How long do you usually wait at the barber?",create_plan_question_wantsVisit:"Would you like to visit a friend or relative today?",create_plan_yes_wantsVisit:"Yes, I have a visit",create_plan_no_wantsVisit:"No, not today",create_plan_question_visitTime:"When is the visit?",create_plan_question_visitDuration:"How long is the expected visit?",create_plan_question_wantsExercise:"Do you have exercise today?",create_plan_yes_wantsExercise:"Yes, I have exercise",create_plan_no_wantsExercise:"No, not today",create_plan_question_exerciseDuration:"How long is the exercise?",create_plan_question_wantsHobby:"Do you want to reserve time for a hobby today?",create_plan_yes_wantsHobby:"Yes, I want that",create_plan_no_wantsHobby:"Not today",create_plan_question_hobbyName:"What is your hobby?",create_plan_question_hobbyDuration:"How much time do you want to reserve for the hobby?",create_plan_question_hasAppointments:"Do you have an appointment with someone today?",create_plan_yes_hasAppointments:"Yes, I have an appointment",create_plan_no_hasAppointments:"No, I do n
2ot",create_plan_question_appointment1Time:"When is your first appointment?",create_plan_question_hasAppointment2:"Do you have another appointment?",create_plan_yes_hasAppointment2:"Yes, another appointment",create_plan_no_hasAppointment2:"No, that is all",create_plan_question_appointment2Time:"When is your second appointment?",prayer_tracker_title:"Prayer Tracker",prayer_tracker_tab_prayers:"Prayers",prayer_tracker_tab_missed:"Missed",prayer_tracker_tab_adhkar:"Adhkar",prayer_tracker_sunnah_streak:"Sunnah streak",prayer_tracker_fard_progress:"Obligatory {done}/{total}",prayer_tracker_sunnah_progress:"Sunnah {done}/{total}",characters_title:"Islamic Characters",characters_add_character:"Add character",characters_send_contribution:"Send contribution",characters_search_placeholder:"Search for a character...",characters_tab_prophets:"Prophets",characters_tab_companions:"Companions",characters_tab_historical:"Historical characters",characters_top_contributors:"Top contributors",characters_contributions_count:"Contributions ({count})",characters_no_results:"No results",my_reports_title:"My Reports",my_reports_loading:"Loading your reports...",my_reports_refresh:"Refresh",my_reports_refreshing:"Refreshing",my_reports_create:"Create",my_reports_create_subtitle:"New suggestion or problem",my_reports_total:"Total",my_reports_active:"Under review",my_reports_replied:"Replied",my_reports_done:"Completed",my_reports_reports_tab:"Reports",my_reports_suggestions_tab:"Problems / Suggestions",my_reports_search_placeholder:"Search...",my_reports_show_filters:"Show filters",my_reports_no_reports:"No reports",my_reports_no_suggestions:"No problems / suggestions",my_reports_no_reports_message:"Reports you send from any section will appear here with their status and messages.",my_reports_no_suggestions_message:"Suggestions or problems you send will appear here with their status and reply.",my_reports_submit_success:"Request sent successfully",my_reports_submit_error:"Could not send request",my_reports_edit_request:"Edit request",my_reports_new_request:"New request",my_reports_edit_suggestion_problem:"Edit suggestion or problem",my_reports_suggestion_problem:"Suggestion or problem",my_reports_close:"Close",my_reports_cancel_edit:"Cancel edit",my_reports_suggestion:"Suggestion",my_reports_problem:"Problem",my_reports_suggestion_placeholder:"Write your suggestion here...",my_reports_problem_placeholder:"Write the problem details here...",my_reports_sending:"Sending",my_reports_send:"Send",my_reports_active_limit:"You have {activeCount} active requests. You can send up to {max} requests before they are approved or completed.",reports_title:"Moderation Center",reports_search_placeholder:"Search...",reports_show_filters:"Show filters",reports_loading:"Loading data...",reports_stat_pending:"Pending",reports_stat_investigating:"Investigating",reports_stat_escalated:"Escalated",reports_stat_high_risk:"High risk",reports_stat_action_taken:"Action taken",reports_stat_rejected:"Rejected",reports_filter_active:"Active requests",reports_filter_all_statuses:"All statuses",reports_filter_all_types:"All types",reports_filter_all_priorities:"All priorities",reports_filter_high_risk:"High risk (70%+)",reports_sort_newest:"Newest",reports_sort_severity:"Highest severity",reports_sort_escalated:"Escalated first",reports_filter_count:"{count} reports",reports_empty:"No reports match the filters",daily_missions_loading_title:"Today's Missions",daily_missions_loading:"Loading missions...",daily_missions_title:"Adventurers Guild",daily_missions_rank:"RANK",daily_missions_rank_info:"Rank information",daily_missions_mana_info:"Mana information",daily_missions_bonus_info:"Team bonus information",daily_missions_empty_mana:"Empty energy!",daily_missions_adventurer:"Adventurer",daily_missions_coins:"Coins",daily_missions_today_missions:"Today's missions",daily_missions_total_completed:"Total completed",daily_missions_team_level:"Level {level}",daily_missions_team_bonus_coins:"+{count} coins",daily_missions_mana_depleted_banner:"\u26a0\ufe0f Your daily energy is depleted! You accepted {accepted}/{limit} missions today. Raise your rank to increase your daily limit.",daily_missions_all_categories:"\ud83d\udde1\ufe0f All",daily_missions_category_engagement:"Engagement",daily_missions_category_creation:"Creation",daily_missions_category_social:"Social",daily_missions_category_dhikr:"Dhikr",daily_missions_show_locked:"Show locked",daily_missions_hide_locked:"Hide locked",daily_missions_mana_depleted_title:"Your daily energy is depleted",daily_missions_mana_depleted_dialog_title:"\u26a1 Energy depleted",daily_missions_mana_depleted_dialog_message:"You reached your daily limit ({limit} missions). Raise your rank to increase your energy!",daily_missions_daily_mana_limit_title:"\u26a1 Daily energy depleted",daily_missions_daily_mana_limit_message:"You reached your daily limit ({limit} missions). Raise your rank to increase your daily energy!",daily_missions_no_mana_title:"\u26a1 No energy",daily_missions_no_mana_message:"You cannot accept a new mission because your energy is empty.",daily_missions_failure_title:"\u26a1 Failed",daily_missions_mana_deduct_error:"Could not deduct energy. Please try again later.",daily_missions_error_title:"Error",daily_missions_accept_error:"Could not accept the mission. Please try again.",daily_missions_must_accept_title:"Accept the mission first",daily_missions_must_accept_message:"You must accept the mission before you can claim its reward.",daily_missions_incomplete_title:"Incomplete",daily_missions_incomplete_message:"You have not completed this mission yet.",daily_missions_claim_success_title:"\ud83c\udf89 Reward claimed!",daily_missions_claim_success_message:"You received {coins} coins and {xp} XP{team}",daily_missions_claim_success_team_points:" + {points} team points",daily_missions_claim_error:"Could not claim the reward. Please try again.",daily_missions_accept:"Accept",daily_missions_claim:"Claim",daily_missions_empty:"No missions are available in this category right now",daily_missions_empty_subt
2itle:"Raise your rank to unlock new missions",daily_missions_footer_reset:"Daily missions reset every day \xb7 {date}",daily_missions_info_mana_title:"\u26a1 Mana System",daily_missions_info_mana_line_0:"Energy represents how many daily missions you can accept.",daily_missions_info_mana_line_1:"Each user has a daily limit based on rank:",daily_missions_info_mana_line_2:"\u2022 Rank F \u2192 4 missions/day",daily_missions_info_mana_line_3:"\u2022 Rank E \u2192 5 missions/day",daily_missions_info_mana_line_4:"\u2022 Rank D \u2192 6 missions/day",daily_missions_info_mana_line_5:"\u2022 Rank C \u2192 7 missions/day",daily_missions_info_mana_line_6:"\u2022 Rank B \u2192 8 missions/day",daily_missions_info_mana_line_7:"\u2022 Rank A \u2192 9 missions/day",daily_missions_info_mana_line_8:"\u2022 Rank S \u2192 10 missions/day",daily_missions_info_mana_line_9:"Every accepted mission lowers the energy bottle. Raise your rank to increase daily energy!",daily_missions_info_bonus_title:"\ud83e\ude99 Team Bonus System",daily_missions_info_bonus_line_0:"If you are in a team, you receive extra coins when claiming any mission reward.",daily_missions_info_bonus_line_1:"The bonus depends on your team level:",daily_missions_info_bonus_line_2:"\u2022 Level 1 \u2192 +2 coins",daily_missions_info_bonus_line_3:"\u2022 Level 2 \u2192 +5 coins",daily_missions_info_bonus_line_4:"\u2022 Level 3 \u2192 +8 coins",daily_missions_info_bonus_line_5:"\u2022 Level 4 \u2192 +12 coins",daily_missions_info_bonus_line_6:"\u2022 Level 5 \u2192 +15 coins",daily_missions_info_bonus_line_7:"\u2022 Level 6 \u2192 +20 coins",daily_missions_info_bonus_line_8:"\u2022 Level 7 \u2192 +24 coins",daily_missions_info_bonus_line_9:"\u2022 Level 8 \u2192 +30 coins",daily_missions_info_bonus_line_10:"\u2022 Level 9 \u2192 +35 coins",daily_missions_info_bonus_line_11:"\u2022 Level 10+ \u2192 +40 coins",daily_missions_info_bonus_line_12:"Level up your team together to earn bigger rewards!",daily_missions_info_ranks_title:"\ud83c\udfc5 Rank System",daily_missions_info_ranks_line_0:"Your rank depends on the total XP you collect from missions:",daily_missions_info_ranks_line_1:"\u2022 Rank F \u2192 0 \u2013 199 XP",daily_missions_info_ranks_line_2:"\u2022 Rank E \u2192 200 \u2013 699 XP",daily_missions_info_ranks_line_3:"\u2022 Rank D \u2192 700 \u2013 2,499 XP",daily_missions_info_ranks_line_4:"\u2022 Rank C \u2192 2,500 \u2013 7,999 XP",daily_missions_info_ranks_line_5:"\u2022 Rank B \u2192 8,000 \u2013 21,999 XP",daily_missions_info_ranks_line_6:"\u2022 Rank A \u2192 22,000 \u2013 54,999 XP",daily_missions_info_ranks_line_7:"\u2022 Rank S \u2192 55,000+ XP",daily_missions_info_ranks_line_8:"Higher ranks unlock new missions and increase your daily energy!",daily_missions_mission_daily_react_posts_F_title:"Beginner Reactor \ud83d\udd25",daily_missions_mission_daily_react_posts_F_desc:"React to {req} posts today",daily_missions_mission_daily_react_posts_F_team_desc:"Have your team reach {req} post reactions today",daily_missions_mission_daily_react_posts_C_title:"Pro Reactor \ud83d\udd25",daily_missions_mission_daily_react_posts_C_desc:"React to {req} posts today",daily_missions_mission_daily_react_posts_C_team_desc:"Have your team reach {req} post reactions today",daily_missions_mission_daily_react_posts_A_title:"Legend Reactor \ud83d\udd25",daily_missions_mission_daily_react_posts_A_desc:"React to {req} posts today",daily_missions_mission_daily_react_posts_A_team_desc:"Have your team reach {req} post reactions today",daily_missions_mission_daily_react_comments_F_title:"Comment Companion \ud83d\udcac",daily_missions_mission_daily_react_comments_F_desc:"React to {req} comments today",daily_missions_mission_daily_react_comments_F_team_desc:"Have your team react to {req} comments today",daily_missions_mission_daily_react_comments_C_title:"Active Comment Reader \ud83d\udcac",daily_missions_mission_daily_react_comments_C_desc:"React to {req} comments today",daily_missions_mission_daily_react_comments_C_team_desc:"Have your team react to {req} comments today",daily_missions_mission_daily_react_comments_A_title:"Comment Master \ud83d\udcac",daily_missions_mission_daily_react_comments_A_desc:"React to {req} comments today",daily_missions_mission_daily_react_comments_A_team_desc:"Have your team react to {req} comments today",daily_missions_mission_daily_react_replies_F_title:"Reply Reactor \u21a9\ufe0f",daily_missions_mission_daily_react_replies_F_desc:"React to {req} replies today",daily_missions_mission_daily_react_replies_F_team_desc:"Have your team react to {req} replies today",daily_missions_mission_daily_react_replies_C_title:"Enthusiastic Replier \u21a9\ufe0f",daily_missions_mission_daily_react_replies_C_desc:"React to {req} replies today",daily_missions_mission_daily_react_replies_C_team_desc:"Have your team react to {req} replies today",daily_missions_mission_daily_react_replies_A_title:"Reply Prince \u21a9\ufe0f",daily_missions_mission_daily_react_replies_A_desc:"React to {req} replies today",daily_missions_mission_daily_react_replies_A_team_desc:"Have your team react to {req} replies today",daily_missions_mission_total_react_posts_100_title:"Post Lover \u2764\ufe0f",daily_missions_mission_total_react_posts_100_desc:"Reach {req} total reactions on posts",daily_missions_mission_total_react_posts_100_team_desc:"Have your team reach {req} total post reactions",daily_missions_mission_total_react_comments_50_title:"Comment Reader \ud83d\udcd6",daily_missions_mission_total_react_comments_50_desc:"Reach {req} total reactions on comments",daily_missions_mission_total_react_comments_50_team_desc:"Have your team reach {req} total comment reactions",daily_missions_mission_total_react_replies_50_title:"Reply Lover \ud83d\udc8c",daily_missions_mission_total_react_replies_50_desc:"Reach {req} total reactions on replies",daily_missions_mission_total_react_replies_50_team_desc:"Have your team reach {req} total reply reactions",daily_missions_mission_daily_posts_F_title:"Content Maker \ud83d\udcdd",daily_missions_mission_daily_posts_F_desc:"Create {req} post today",daily_missions_mission_daily_posts_F_team_desc:"Have your team create {req} post today",daily_missions_mission_daily_posts_C_title:"Active Publisher \ud83d\ude80",daily_missions_mission_daily_posts_C_desc:"Create {req} posts today",daily_missions_mission_daily_posts_C_team_desc:"Have your team create {req} posts today",daily_missions_mission_daily_posts_A_title:"Content Machine \u26a1",daily_missions_mission_daily_posts_A_desc:"Create {req} posts today",daily_missions_mission_daily_posts_A_team_desc:"Have your team create {req} posts today",daily_missions_mission_total_posts_10_title:"Ten Posts \u2694\ufe0f",daily_missions_mission_total_posts_10_desc:"Publish {req} posts in total",daily_missions_mission_total_posts_10_team_desc:"Have your team publish {req} posts in total",daily_missions_mission_total_posts_50_title:"Pro Blogger \ud83d\udcdc",daily_missions_mission_total_posts_50_desc:"Publish {req} posts in total",daily_missions_mission_total_posts_50_team_desc:"Have your team publish {req} posts in total",daily_missions_mission_daily_comments_F_title:"Commenter of the Day \ud83d\udca1",daily_missions_mission_daily_comments_F_desc:"Write {req} comments today",daily_missions_mission_daily_comments_F_team_desc:"Have your team write {req} comments today",daily_missions_mission_daily_comments_C_title:"Experienced Commenter \ud83d\udca1",daily_missions_mission_daily_comments_C_desc:"Write {req} comments today",daily_missions_mission_daily_comments_C_team_desc:"Have your team write {req} comments today",daily_missions_mission_daily_comments_A_title:"Voice of Opinion \ud83d\udde3\ufe0f",daily_missions_mission_daily_comments_A_desc:"Write {req} comments today",daily_missions_mission_daily_comments_A_team_desc:"Have your team write {req} comments today",daily_missions_mission_total_comments_25_title:"Opinion Holder \ud83d\udde3\ufe0f",daily_missions_mission_total_comments_25_desc:"Write {req} comments in total",daily_missions_mission_total_comments_25_team_desc:"Have your team write {req} comments in total",daily_missions_mission_daily_replies_F_title:"Fast Replier \u26a1",daily_missions_mission_daily_replies_F_desc:"Write {req} replies today",daily_missions_mission_daily_replies_F_team_desc:"Have your team write {req} replies today",daily_missions_mission_daily_replies_C_title:"Active Converser \u26a1",daily_missions_mission_daily_replies_C_desc:"Write {req} replies today",daily_missions_mission_daily_replies_C_team_desc:"Have your team write {req} replies today",daily_missions_mission_daily_replies_A_title:"Skilled Converser \ud83c\udf99\ufe0f",daily_missions_mission_daily_replies_A_desc:"Write {req} replies today",daily_missions_mission_daily_replies_A_team_desc:"Have your team write {req}
2 replies today",daily_missions_mission_total_replies_25_title:"Skilled Converser \ud83c\udf99\ufe0f",daily_missions_mission_total_replies_25_desc:"Write {req} replies in total",daily_missions_mission_total_replies_25_team_desc:"Have your team write {req} replies in total",daily_missions_mission_daily_tasbeeh_F_title:"Dhikr of the Day \ud83d\udcff",daily_missions_mission_daily_tasbeeh_F_desc:"Say tasbeeh {req} times today",daily_missions_mission_daily_tasbeeh_F_team_desc:"Have your team say tasbeeh {req} times today",daily_missions_mission_daily_tasbeeh_C_title:"Dedicated Tasbeeh \ud83c\udf19",daily_missions_mission_daily_tasbeeh_C_desc:"Say tasbeeh {req} times today",daily_missions_mission_daily_tasbeeh_C_team_desc:"Have your team say tasbeeh {req} times today",daily_missions_mission_daily_tasbeeh_A_title:"Master of Dhikr \u2728",daily_missions_mission_daily_tasbeeh_A_desc:"Say tasbeeh {req} times today",daily_missions_mission_daily_tasbeeh_A_team_desc:"Have your team say tasbeeh {req} times today",daily_missions_mission_total_tasbeeh_1000_title:"One Thousand Tasbeeh \ud83c\udfc5",daily_missions_mission_total_tasbeeh_1000_desc:"Say tasbeeh {req} times in total",daily_missions_mission_total_tasbeeh_1000_team_desc:"Have your team say tasbeeh {req} times in total",daily_missions_mission_adhkar_morning_title:"Morning Adhkar \ud83c\udf05",daily_missions_mission_adhkar_morning_desc:"Complete morning adhkar today",daily_missions_mission_adhkar_morning_team_desc:"Complete morning adhkar today",daily_missions_mission_adhkar_evening_title:"Evening Adhkar \ud83c\udf06",daily_missions_mission_adhkar_evening_desc:"Complete evening adhkar today",daily_missions_mission_adhkar_evening_team_desc:"Complete evening adhkar today",daily_missions_mission_adhkar_both_title:"A Full Day of Dhikr \u2728",daily_missions_mission_adhkar_both_desc:"Complete morning and evening adhkar on the same day",daily_missions_mission_adhkar_both_team_desc:"Complete morning and evening adhkar on the same day",winners_card_title:"Adhkar Contest Results",winners_card_today:"Today: {date}",winners_card_empty:"There are no winners for today in the Adhkar contest.",winners_card_unknown:"Unknown",winners_card_tasbeeh_count:"{count} tasbeeh",winners_card_reward_stars:"{count} stars",winners_card_participation:"Participation",winners_card_prize_1:"\ud83e\udd47 1st place: {count} stars + one-day badge certificate",winners_card_prize_2:"\ud83e\udd48 2nd place: {count} stars",winners_card_prize_3:"\ud83e\udd49 3rd place: {count} stars",winners_card_prize_4:"\ud83c\udfc5 4th place: {count} stars",winners_card_prize_5:"\ud83c\udf96\ufe0f 5th place: {count} stars",winners_card_prizes_note:"The top 5 receive prizes; the rest are honorable participants.",pack_create_title:"Create Adhkar Pack",pack_edit_title:"Edit Adhkar Pack",pack_status_draft:"Draft",pack_status_published:"Published",pack_saving:"Saving\u2026",pack_title_label:"Pack title",pack_title_placeholder:"e.g. Morning Adhkar \u2014 Hisn al-Muslim",pack_description_label:"Description",pack_description_placeholder:"What makes this pack different (ordering, source, extra duas)?",pack_type_label:"Type",pack_type_both:"Morning & Evening",pack_language_label:"Language",pack_language_ar:"Arabic",pack_language_en:"English",pack_language_both:"Arabic & English",pack_scholar_label:"Scholar (optional)",pack_scholar_placeholder:"e.g. Ibn Baz",pack_source_label:"Source (optional)",pack_source_placeholder:"e.g. Hisn al-Muslim, Sahih al-Bukhari",pack_items_title:"Adhkar in this pack ({count})",pack_add_item_title:"Add dhikr",pack_edit_item_title:"Edit dhikr",pack_duplicate_item:"Duplicate dhikr",pack_add_below_item:"Add dhikr below this",pack_untitled_item:"Untitled dhikr",pack_item_time_label:"This dhikr applies to",pack_item_time_both:"Both",pack_item_time_morning:"Morning only",pack_item_time_evening:"Evening only",pack_no_items_yet:'No adhkar added yet. Tap "Add dhikr" to start.',pack_filter_all:"All",pack_filter_no_items:"No adhkar match this filter.",pack_min_items_hint:"You need at least {count} adhkar to publish.",pack_publish:"Publish pack",pack_republish:"Publish update",pack_publishing:"Publishing\u2026",pack_published_title:"Pack published",pack_published_message:"Your pack is now visible to reviewers and, once verified, to everyone.",pack_publish_error_title:"Cannot publish yet",pack_publish_generic_error:"Something went wrong while publishing. Please try again.",pack_missing_title_error:"Please give your pack a title before publishing.",pack_min_items_error:"You have {current} adhkar \u2014 you need at least {count} to publish.",pack_first_publish_changelog:"Initial release",pack_browse_btn:"Community packs",pack_browse_title:"Browse Adhkar packs",pack_create_new:"Create",pack_search_placeholder:"Search by title\u2026",pack_sort_popularity:"Most downloaded",pack_sort_rating:"Top rated",pack_sort_recent:"Recently updated",pack_sort_installs:"Most used now",pack_verified_only:"Verified only",pack_verified_label:"Verified pack",pack_no_results:"No packs foun
2d. Be the first to publish one!",pack_no_ratings_yet:"No ratings yet",pack_reviews_modal_title:"User reviews",pack_reviews_empty:"No reviews to show yet",pack_reviews_no_comment:"No comment left",pack_anonymous_reviewer:"User",pack_install:"Install",pack_uninstall:"Uninstall",pack_use_this:"Use this pack",pack_currently_active:"Currently active",pack_bookmark:"Bookmark",pack_resume_drafts_title:"You have earlier drafts",pack_resume_drafts_subtitle:"Continue an existing draft, or start a brand new pack.",pack_continue_draft:"Continue",pack_start_new_pack:"Start a new pack",pack_untitled_draft:"Untitled draft",pack_draft_item_count:"{count} adhkar",pack_edit_my_pack:"Edit pack",pack_official_title:"Original Adhkar",pack_official_description:"The app's built-in default list",pack_installing:"Installing\u2026",pack_rate_button:"Rate this pack",pack_rate_modal_title:"Rate this pack",pack_rate_stars_label:"Your rating",pack_rate_text_label:"Comment (optional)",pack_rate_text_placeholder:"Share your thoughts on this pack\u2026",pack_rate_select_stars_error:"Please select a star rating first.",pack_rate_generic_error:"Something went wrong while submitting your rating. Please try again.",pack_rate_submitting:"Submitting\u2026",pack_rate_submit:"Submit rating",pack_bookmarked_only:"Bookmarked only",pack_bookmarked_empty:"You haven't bookmarked any packs yet.",pack_admin_verify:"Verify pack",pack_admin_unverify:"Unverify pack",pack_admin_unverify_confirm_title:"Unverify this pack?",pack_admin_unverify_confirm_message:"The pack will lose its verified badge and appear to users as unverified. You can verify it again at any time.",pack_admin_ban_author:"Ban pack author",pack_admin_delete_pack:"Delete pack",pack_admin_ban_confirm_title:"Ban this pack's author?",pack_admin_ban_confirm_message:"This user will no longer be able to create new Adhkar packs. This does not affect packs they already published.",pack_admin_delete_confirm_title:"Delete this pack?",pack_admin_delete_confirm_message:"The pack will be removed from the store immediately and will no longer be visible to users. Use this for offensive or non-compliant content.",pack_publish_editor_forbidden:"Only the pack's author can publish updates. You can edit the content and save it as a draft, and the author will publish it.",pack_banned_title:"Cannot create a pack",pack_banned_from_creating:"You have been banned from creating new Adhkar packs due to prior misuse.",pack_delete_item_confirm_title:"Delete this dhikr?",pack_delete_item_confirm_message:"This cannot be undone once deleted.",pack_confirm_delete:"Delete",pack_verification_verified_badge:"Verified",pack_verification_pending_badge:"Under review",pack_editor_role_badge:"Editor (no publish rights)",pack_more_options:"More options"}}},48490:function(e,t){!function(e){"use strict";function t(e){return Array.prototype.slice.call(e)}function n(e){return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function r(e,t,r){var o,i=new Promise((function(i,a){n(o=e[t].apply(e,r)).then(i,a)}));return i.request=o,i}function o(e,t,n){var o=r(e,t,n);return o.then((function(e){if(e)return new u(e,o.request)}))}function i(e,t,n){n.forEach((function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})}))}function a(e,t,n,o){o.forEach((function(o){o in n.prototype&&(e.prototype[o]=function(){return r(this[t],o,arguments)})}))}function s(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})}))}function l(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return o(this[t],r,arguments)})}))}function c(e){this._index=e}function u(e,t){this._cursor=e,this._request=t}function d(e){this._store=e}function p(e){this._tx=e,this.complete=new Promise((function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}}))}function h(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new p(n)}function f(e){this._db=e}function m(e,t,n){var o=r(indexedDB,"open",[e,t]),i=o.request;return i&&(i.onupgradeneeded=function(e){n&&n(new h(i.result,e.oldVersion,i.transaction))}),o.then((function(e){return new f(e)}))}function _(e){return r(indexedDB,"deleteDatabase",[e])}i(c,"_index",["name","keyPath","multiEntry","unique"]),a(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),l(c,"_index",IDBIndex,["openCursor","o
2penKeyCursor"]),i(u,"_cursor",["direction","key","primaryKey","value"]),a(u,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(e){e in IDBCursor.prototype&&(u.prototype[e]=function(){var t=this,r=arguments;return Promise.resolve().then((function(){return t._cursor[e].apply(t._cursor,r),n(t._request).then((function(e){if(e)return new u(e,t._request)}))}))})})),d.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))},d.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))},i(d,"_store",["name","keyPath","indexNames","autoIncrement"]),a(d,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),l(d,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(d,"_store",IDBObjectStore,["deleteIndex"]),p.prototype.objectStore=function(){return new d(this._tx.objectStore.apply(this._tx,arguments))},i(p,"_tx",["objectStoreNames","mode"]),s(p,"_tx",IDBTransaction,["abort"]),h.prototype.createObjectStore=function(){return new d(this._db.createObjectStore.apply(this._db,arguments))},i(h,"_db",["name","version","objectStoreNames"]),s(h,"_db",IDBDatabase,["deleteObjectStore","close"]),f.prototype.transaction=function(){return new p(this._db.transaction.apply(this._db,arguments))},i(f,"_db",["name","version","objectStoreNames"]),s(f,"_db",IDBDatabase,["close"]),["openCursor","o
2penKeyCursor"].forEach((function(e){[d,c].forEach((function(n){e in n.prototype&&(n.prototype[e.replace("open","iterate")]=function(){var n=t(arguments),r=n[n.length-1],o=this._store||this._index,i=o[e].apply(o,n.slice(0,-1));i.onsuccess=function(){r(i.result)}})}))})),[c,d].forEach((function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise((function(o){n.iterateCursor(e,(function(e){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():o(r)):o(r)}))}))})})),e.openDb=m,e.deleteDb=_,Object.defineProperty(e,"__esModule",{value:!0})}(t)},48734:(e,t,n)=>{var r=n(95575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},48895:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},49210:(e,t,n)=>{"use strict";n.d(t,{X:()=>w,k:()=>k});var r,o,i,a,s,l,c,u,d=n(22555),p=n(39790),h=n(55149),f=n(26562),m=n(38458),_=n(24558),g=n(99723),v=n(11454),y=n(12463),b=n(31143),w=(r=new WeakMap,o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakSet,class extends b.k{constructor(e){var t;super(),(0,p.A)(this,u),(0,h.A)(this,r,void 0),(0,h.A)(this,o,void 0),(0,h.A)(this,i,void 0),(0,h.A)(this,a,void 0),(0,h.A)(this,s,void 0),(0,h.A)(this,l,void 0),(0,h.A)(this,c,void 0),(0,_.A)(c,this,!1),(0,_.A)(l,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],(0,_.A)(a,this,e.client),(0,_.A)(i,this,(0,m.A)(a,this).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,(0,_.A)(r,this,C(this.options)),this.state=null!==(t=e.state)&&void 0!==t?t:(0,m.A)(r,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null===(e=(0,m.A)(s,this))||void 0===e?void 0:e.promise}setOptions(e){if(this.options=(0,d.A)((0,d.A)({},(0,m.A)(l,this)),e),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=C(this.options);void 0!==e.data&&(this.setState(S(e.data,e.dataUpdatedAt)),(0,_.A)(r,this,e))}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||(0,m.A)(i,this).remove(this)}setData(e,t){const n=(0,g.pl)(this.state.data,e,this.options);return(0,f.A)(u,this,x).call(this,{data:n,type:"success",dataUpdatedAt:null===t||void 0===t?void 0:t.updatedAt,manual:null===t||void 0===t?void 0:t.manual}),n}setState(e,t){(0,f.A)(u,this,x).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null===(t=(0,m.A)(s,this))||void 0===t?void 0:t.promise;return null===(n=(0,m.A)(s,this))||void 0===n||n.cancel(e),r?r.then(g.lQ).catch(g.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState((0,m.A)(r,this))}isActive(){return this.observers.some((e=>!1!==(0,g.Eh)(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===g.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some((e=>"static"===(0,g.d2)(e.options.staleTime,this)))}isStale(){return this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,g.j3)(this.state.dataUpdatedAt,e))}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=(0,m.A)(s,this))||void 0===e||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=(0,m.A)(s,this))||void 0===e||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),(0,m.A)(i,this).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||((0,m.A)(s,this)&&((0,m.A)(c,this)?(0,m.A)(s,this).cancel({revert:!0}):(0,m.A)(s,this).cancelRetry()),this.scheduleGc()),(0,m.A)(i,this).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||(0,f.A)(u,this,x).call(this,{type:"invalidate"})}async fetch(e,t){var n,r,l;if("idle"!==this.state.fetchStatus&&"rejected"!==(null===(n=(0,m.A)(s,this))||void 0===n?void 0:n.status()))if(void 0!==this.state.data&&null!==t&&void 0!==t&&t.cancelRefetch)this.cancel({silent:!0});else if((0,m.A)(s,this))return(0,m.A)(s,this).continueRetry(),(0,m.A)(s,this).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const p=new AbortController,h=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>((0,_.A)(c,this,!0),p.signal)}
2)},v=()=>{const e=(0,g.ZM)(this.options,t),n=(()=>{const e={client:(0,m.A)(a,this),queryKey:this.queryKey,meta:this.meta};return h(e),e})();return(0,_.A)(c,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)},b=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:(0,m.A)(a,this),state:this.state,fetchFn:v};return h(e),e})();var w;(null===(r=this.options.behavior)||void 0===r||r.onFetch(b,this),(0,_.A)(o,this,this.state),"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(l=b.fetchOptions)||void 0===l?void 0:l.meta))&&(0,f.A)(u,this,x).call(this,{type:"fetch",meta:null===(w=b.fetchOptions)||void 0===w?void 0:w.meta});(0,_.A)(s,this,(0,y.II)({initialPromise:null===t||void 0===t?void 0:t.initialPromise,fn:b.fetchFn,onCancel:e=>{e instanceof y.cc&&e.revert&&this.setState((0,d.A)((0,d.A)({},(0,m.A)(o,this)),{},{fetchStatus:"idle"})),p.abort()},onFail:(e,t)=>{(0,f.A)(u,this,x).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{(0,f.A)(u,this,x).call(this,{type:"pause"})},onContinue:()=>{(0,f.A)(u,this,x).call(this,{type:"continue"})},retry:b.options.retry,retryDelay:b.options.retryDelay,networkMode:b.options.networkMode,canRun:()=>!0}));try{var k,S,C,A;const e=await(0,m.A)(s,this).start();if(void 0===e)throw new Error("".concat(this.queryHash," data is undefined"));return this.setData(e),null===(k=(S=(0,m.A)(i,this).config).onSuccess)||void 0===k||k.call(S,e,this),null===(C=(A=(0,m.A)(i,this).config).onSettled)||void 0===C||C.call(A,e,this.state.error,this),e}catch(N){var E,j,T,P;if(N instanceof y.cc){if(N.silent)return(0,m.A)(s,this).promise;if(N.revert){if(void 0===this.state.data)throw N;return this.state.data}}throw(0,f.A)(u,this,x).call(this,{type:"error",error:N}),null===(E=(j=(0,m.A)(i,this).config).onError)||void 0===E||E.call(j,N,this),null===(T=(P=(0,m.A)(i,this).config).onSettled)||void 0===T||T.call(P,this.state.data,N,this),N}finally{this.scheduleGc()}}});function x(e){this.state=(t=>{var n;switch(e.type){case"failed":return(0,d.A)((0,d.A)({},t),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return(0,d.A)((0,d.A)({},t),{},{fetchStatus:"paused"});case"continue":return(0,d.A)((0,d.A)({},t),{},{fetchStatus:"fetching"});case"fetch":return(0,d.A)((0,d.A)((0,d.A)({},t),k(t.data,this.options)),{},{fetchMeta:null!==(n=e.meta)&&void 0!==n?n:null});case"success":const r=(0,d.A)((0,d.A)((0,d.A)({},t),S(e.data,e.dataUpdatedAt)),{},{dataUpdateCount:t.dataUpdateCount+1},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});return(0,_.A)(o,this,e.manual?r:void 0),r;case"error":const i=e.error;return(0,d.A)((0,d.A)({},t),{},{error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0});case"invalidate":return(0,d.A)((0,d.A)({},t),{},{isInvalidated:!0});case"setState":return(0,d.A)((0,d.A)({},t),e.state)}})(this.state),v.jG.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),(0,m.A)(i,this).notify({query:this,type:"updated",action:e})}))}function k(e,t){return(0,d.A)({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,y.v_)(t.networkMode)?"fetching":"paused"},void 0===e&&{error:null,status:"pending"})}function S(e,t){return{data:e,dataUpdatedAt:null!==t&&void 0!==t?t:Date.now(),error:null,isInvalidated:!1,status:"success"}}function C(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!==r&&void 0!==r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}},49527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(65043),o=n(75439),i=n(40117),a=n(47174),s=n(75012),l=n(54454),c=n(59773),u=n(98655),d=n(56804),p=n(13005),h=n(10624),f=n(28024),m=n(70579);const _=e=>{try{const t=JSON.parse(localStorage.getItem(e)||"null");return Array.isArray(null===t||void 0===t?void 0:t.posts)?t.posts.filter((e=>!(0,f.Ec)(e))):[]}catch(t){return[]}},g=(e,t)=>{try{localStorage.setItem(e,JSON.stringify({posts:t,timestamp:Date.now()}))}catch(n){console.warn("Could not cache hashtag posts:",n)}},v=e=>{let{hashtagOverride:t=null,onBack:n=null,isModal:v=!1,modalZIndex:y=null}=e;const{hashtag:b}=(0,o.g)(),w=(0,o.Zp)(),{theme:x}=(0,p.DP)(),{t:k,resolvedDirection:S}=(0,h.o)(),C=null!==t&&void 0!==t?t:b,A=(0,r.useMemo)((()=>{try{return decodeURIComponent(C||"")}catch(e){return C||""}}),[C]),E="hashtagPostsCache:".concat(A.toLocaleLowerCase()),j=(0,r.useMemo)((()=>_(E)),[E]),[T,P]=(0,r.useState)(j),[N,I]=(0,r.useState)(0===j.length),[R,O]=(0,r.useState)(!1),[D,M]=(0,r.useState)(null);return(0,r.useEffect)((()=>
2{if(!A)return;let e=!1;const t=_(E);P(t),I(0===t.length),O(t.length>0),M(null);return(async()=>{try{const n=(await i.firebase.database().ref("hashtags/".concat(A)).once("value")).val()||{},r=Object.entries(n).filter((e=>{let[t,n]=e;return"isPublic"!==t&&null!==n&&!1!==n})).map((e=>{let[t]=e;return t})),o=new Map;r.forEach((e=>{const n=a.A.getCachedPost(e)||t.find((t=>String(t.id)===String(e)));n&&o.set(e,n)})),!e&&o.size>0&&(P([...o.values()].filter((e=>!e.deleted&&!(0,f.Ec)(e))).sort(((e,t)=>(t.timestamp||t.createdAt||0)-(e.timestamp||e.createdAt||0)))),I(!1));const s=r.filter((e=>!o.has(e))),l=await Promise.all(s.map((e=>a.A.getPost(e)))),c=[...o.values(),...l];if(e)return;const u=c.filter((e=>e&&!e.deleted&&!(0,f.Ec)(e))).sort(((e,t)=>(t.timestamp||t.createdAt||0)-(e.timestamp||e.createdAt||0)));P(u),g(E,u)}catch(n){console.error("Error fetching hashtag posts:",n),e||0!==t.length||M(k("hashtag_posts_load_error"))}finally{e||(I(!1),O(!1))}})(),()=>{e=!0}}),[E,A,k]),(0,r.useEffect)((()=>{const e=e=>{P((t=>{const n=t.filter((t=>{var n;return t.id!==(null===(n=e.detail)||void 0===n?void 0:n.postId)}));return g(E,n),n}))};return window.addEventListener("postDeleted",e),()=>window.removeEventListener("postDeleted",e)}),[E]),(0,m.jsxs)("div",{className:"hashtag-page ".concat(v?"hashtag-page--modal":""," ").concat("dark"===x?"theme-dark-space":"theme-light-space"),dir:S,style:y?{zIndex:y}:void 0,children:[(0,m.jsx)(c.A,{title:(0,m.jsxs)("span",{className:"hashtag-page-title",children:[(0,m.jsx)(d.A,{size:19}),A]}),onBack:n||(()=>w(-1)),right:T.length>0?(0,m.jsx)("span",{className:"hashtag-post-count",children:T.length}):null,className:"dark"===x?"theme-dark-item":"theme-light-item"}),R&&(0,m.jsx)("div",{className:"hashtag-refresh-bar"}),N?(0,m.jsx)(u.A,{message:k("hashtag_posts_loading"),size:"small"}):D?(0,m.jsxs)("div",{className:"hashtag-state",children:[(0,m.jsx)(d.A,{size:34}),(0,m.jsx)("p",{children:D})]}):0===T.length?(0,m.jsxs)("div",{className:"hashtag-state",children:[(0,m.jsx)(d.A,{size:34}),(0,m.jsx)("p",{children:k("hashtag_posts_empty")})]}):(0,m.jsx)("main",{className:"hashtag-posts-container",children:T.map((e=>"poll"===e.type?(0,m.jsx)(l.G,{post:e},e.id):(0,m.jsx)(s.RK,{post:e,isFullView:!1},e.id)))})]})}},49886:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>b,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>C,__classPrivateFieldSet:()=>A,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>h,__extends:()=>o,__generator:()=>d,__importDefault:()=>S,__importStar:()=>
2k,__makeTemplateObject:()=>x,__metadata:()=>c,__param:()=>l,__read:()=>m,__rest:()=>a,__spread:()=>_,__spreadArrays:()=>g,__values:()=>f});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof v?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(r){u(i[0][3],r)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
2function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},50149:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},50477:()=>{},51104:(e,t,n)=>{var r=n(96614),o=n(28673);e.exports=function(e,t){return e&&r(t,o(t),e)}},51268:(e,t,n)=>{var r=n(35428),o=n(47574),i=n(56832),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},51884:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]])},51946:(e,t,n)=>{var r=n(61340);e.exports=function(e){return r(this.__data__,e)>-1}},52074:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},52222:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(65043),o=n(97950),i=n(13005),a=n(10624),s=n(89927),l=n(59773),c=n(65159),u=n(70579);const d=r.memo((e=>{let{userId:t}=e;return(0,u.jsx)(c.default,{overrideUserId:t,isModal:!0})})),p=e=>{let{userId:t,onClose:n,disableHistory:c=!1}=e;const{theme:p}=(0,i.DP)(),{t:h}=(0,a.o)(),[f,m]=(0,r.useState)(!1),_=(0,r.useRef)(!1),g=(0,r.useRef)(null),v=(0,r.useRef)(!1),y=(0,r.useRef)(null),b=(0,r.useRef)(n);b.current=n;const w=(0,r.useCallback)((()=>{_.current||(_.current=!0,m(!0),c||(0,s.tu)(y.current,!0),g.current=window.setTimeout((()=>b.current()),250))}),[c]);return(0,r.useEffect)((()=>{v.current||(y.current=(0,s.GR)("profile-modal"),v.current=!0);const e=e=>{var t;(0,s.G0)()||(null===(t=e.state)||void 0===t?void 0:t.instanceId)===y.current||_.current||(0,s.Vz)()!==y.current||((0,s.Xi)(),_.current=!0,m(!0),(0,s.tu)(y.current,!1),g.current=window.setTimeout((()=>b.current()),250),window.setTimeout((()=>(0,s.Ps)()),0))};if(window.addEventListener("popstate",e),!c){const t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("popstate",e),g.current&&window.clearTimeout(g.current),document.body.style.overflow=t}}return()=>{window.removeEventListener("popstate",e),g.current&&window.clearTimeout(g.current)}}),[]),(0,o.createPortal)((0,u.jsx)("div",{className:"profile-modal-overlay ".concat(f?"closing-overlay":""),onClick:e=>{e.target===e.currentTarget&&w()},style:{zIndex:(0,s.v7)(1e3)},children:(0,u.jsxs)("div",{className:"profile-modal-content ".concat(f?"closing":""," ").concat("dark"===p?"theme-dark-space":"theme-light-space"),onClick:e=>e.stopPropagation(),children:[(0,u.jsx)(l.A,{title:h("profile_modal_title"),onBack:w,className:"dark"===p?"theme-dark-item":"theme-light-item"}),(0,u.jsx)("div",{className:"profile-modal-body",children:(0,u.jsx)(d,{userId:t})})]})}),document.body)}},52238:function(e,t,n){e.exports=function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo.EvpKDF,u=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:g}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt
2(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),d=(r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),n.mode={}),p=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=d.CBC=function(){var e=p.extend();function n(e,n,r){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=i}}),e}(),f=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var l=i.create(a,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m=(r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),_=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},g=r.SerializableCipher=o.extend({cfg:o.extend({format:_}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return m.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=i.random(8)),o)a=c.create({keySize:t+n,hasher:o}).compute(e,r);else var a=c.create({keySize:t+n}).compute(e,r);var s=i.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:r})}},y=r.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:v}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=g.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,g.decrypt.call(this,e,t,o.key,r)}})}()}(n(84488),n(18211))},52587:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},52866:(e,t,n)=>{var r=n(52969);e.exports=function(e){return function(t){return r(t,e)}}},52969:(e,t,n)=>{var r=n(35324),o=n(70914);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},53366:(e,t,n)=>{var r=n(27894),o=n(99057);e.exports=function(e,t){return null!=e&&o(e,t,r)}},53818:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(22555);const o="notificationsCacheV2",i="__legacy__";const a=new class{constructor(){const e=this.loadFromStorage();this.userId=(null===e||void 0===e?void 0:e.userId)||null,this.windows=(null===e||void 0===e?void 0:e.windows)||{},this.unreadCounts=(null===e||void 0===e?void 0:e.unreadCounts)||{total:0},this.listeners=new Set}loadFromStorage(){try{const e=localStorage.getItem(o);return e?JSON.parse(e):null}catch(e){return console.error("Error loading notifications cache",e),null}}saveToStorage(){try{localStorage.setItem(o,JSON.stringify({userId:this.userId,windows:this.windows,unreadCounts:this.unreadCounts}))}catch(e){console.error("Error saving notifications cache",e)}}_resetIfDifferentUser(e){this.userId!==e&&(this.userId=e,this.windows={},this.unreadCounts={total:0})}getWindow(e,t){if(this.userId!==e)return null;const n=this.windows[t];return n?(0,r.A)((0,r.A)({},n),{},{items:[...n.items]}):null}setFirstPage(e,t,n){let{items:r,hasMore:o,oldestTimestamp:i}=n;this._resetIfDifferentUser(e),this.windows[t]={items:r,hasMore:o,oldestTimestamp:i,timestamp:Date.now()},this.saveToStorage(),this.notifyListeners()}appendPage(e,t,n){let{items:r,hasMore:o,oldestTimestamp:i}=n;if(this.userId!==e)return;const a=this.windows[t]||{items:[],hasMore:!0,oldestTimestamp:null,timestamp:null},s=new Set(a.items.map((e=>e.id))),l=[...a.items,...r.filter((e=>!s.has(e.id)))];this.windows[t]={items:l,hasMore:o,oldestTimestamp:i,timestamp:Date.now()},this.saveToStorage(),this.notifyListeners()}updateNotificationEverywhere(e,t,n){if(this.userId!==e)return;let o=!1;
2Object.keys(this.windows).forEach((e=>{const i=this.windows[e];-1!==i.items.findIndex((e=>e.id===t))&&(i.items=i.items.map((e=>e.id===t?(0,r.A)((0,r.A)({},e),n):e)),o=!0)})),o&&(this.saveToStorage(),this.notifyListeners())}removeNotificationEverywhere(e,t){if(this.userId!==e)return;let n=!1;Object.keys(this.windows).forEach((e=>{const r=this.windows[e];r.items.some((e=>e.id===t))&&(r.items=r.items.filter((e=>e.id!==t)),n=!0)})),n&&(this.saveToStorage(),this.notifyListeners())}removeManyEverywhere(e,t){if(this.userId!==e)return;const n=new Set(t);let r=!1;Object.keys(this.windows).forEach((e=>{const t=this.windows[e];t.items.some((e=>n.has(e.id)))&&(t.items=t.items.filter((e=>!n.has(e.id))),r=!0)})),r&&(this.saveToStorage(),this.notifyListeners())}markManyReadEverywhere(e,t){let{preserveHighlight:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.userId!==e)return;const o=new Set(t);let i=!1;Object.keys(this.windows).forEach((e=>{const t=this.windows[e];t.items.some((e=>o.has(e.id)))&&(t.items=t.items.map((e=>o.has(e.id)?(0,r.A)((0,r.A)({},e),{},{read:!0,highlighted:!!n}):e)),i=!0)})),i&&(this.saveToStorage(),this.notifyListeners())}getUnreadCounts(e){return this.userId!==e?{total:0}:(0,r.A)({},this.unreadCounts)}setUnreadCounts(e,t){this._resetIfDifferentUser(e),this.unreadCounts=t,this.saveToStorage(),this.notifyListeners()}isValid(e,t,n){const r="number"===typeof t,o=r?i:t,a=r?t:null!==n&&void 0!==n?n:3e5;if(this.userId!==e)return!1;const s=this.windows[o];return!(null===s||void 0===s||!s.timestamp)&&Date.now()-s.timestamp<a}isStale(e,t,n){const r="number"===typeof t,o=r?i:t,a=r?t:null!==n&&void 0!==n?n:3e5;if(this.userId!==e)return!1;const s=this.windows[o];return!(null===s||void 0===s||!s.timestamp)&&Date.now()-s.timestamp>=a}get(e){const t=this.getWindow(e,i);return t?{notifications:t.items,timestamp:t.timestamp}:null}set(e,t){this.setFirstPage(e,i,{items:t,hasMore:!1,oldestTimestamp:null})}addNotification(e,t){this._resetIfDifferentUser(e);const n=this.windows[i]||{items:[],hasMore:!0,oldestTimestamp:null,timestamp:null},o=n.items.findIndex((e=>e.id===t.id));n.items=-1!==o?n.items.map((e=>e.id===t.id?(0,r.A)((0,r.A)({},e),t):e)):[t,...n.items],n.timestamp=Date.now(),this.windows[i]=n,Object.keys(this.windows).forEach((e=>{if(e===i)return;const n=this.windows[e];n.items.some((e=>e.id===t.id))&&(n.items=n.items.map((e=>e.id===t.id?(0,r.A)((0,r.A)({},e),t):e)))})),this.saveToStorage(),this.notifyListeners()}removeNotification(e,t){this.removeNotificationEverywhere(e,t)}updateNotification(e,t,n){this.updateNotificationEverywhere(e,t,n)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}notifyListeners(){this.listeners.forEach((e=>e({userId:this.userId,windows:this.windows,unreadCounts:this.unreadCounts})))}clear(){this.userId=null,this.windows={},this.unreadCounts={total:0},this.saveToStorage(),this.notifyListeners()}}},53930:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,a=i.SHA256,s=i.HMAC,l=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),i=o.create(),a=o.create([1]),l=i.words,c=a.words,u=n.keySize,d=n.iterations;l.length<u;){var p=r.update(t).finalize(a);r.reset();for(var h=p.words,f=h.length,m=p,_=1;_<d;_++){m=r.finalize(m),r.reset();for(var g=m.words,v=0;v<f;v++)h[v]^=g[v]}i.concat(p),c[0]++}return i.sigBytes=4*u,i}});t.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)}}(),e.PBKDF2}(n(84488),n(76368),n(64220))},53986:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>r})},54052:e=>{var t=Array.isArray;e.exports=t},54160:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},54199:function(e,t,n){e.exports=function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}
2var i=this._hash.words,a=e[t+0],l=e[t+1],h=e[t+2],f=e[t+3],m=e[t+4],_=e[t+5],g=e[t+6],v=e[t+7],y=e[t+8],b=e[t+9],w=e[t+10],x=e[t+11],k=e[t+12],S=e[t+13],C=e[t+14],A=e[t+15],E=i[0],j=i[1],T=i[2],P=i[3];E=c(E,j,T,P,a,7,s[0]),P=c(P,E,j,T,l,12,s[1]),T=c(T,P,E,j,h,17,s[2]),j=c(j,T,P,E,f,22,s[3]),E=c(E,j,T,P,m,7,s[4]),P=c(P,E,j,T,_,12,s[5]),T=c(T,P,E,j,g,17,s[6]),j=c(j,T,P,E,v,22,s[7]),E=c(E,j,T,P,y,7,s[8]),P=c(P,E,j,T,b,12,s[9]),T=c(T,P,E,j,w,17,s[10]),j=c(j,T,P,E,x,22,s[11]),E=c(E,j,T,P,k,7,s[12]),P=c(P,E,j,T,S,12,s[13]),T=c(T,P,E,j,C,17,s[14]),E=u(E,j=c(j,T,P,E,A,22,s[15]),T,P,l,5,s[16]),P=u(P,E,j,T,g,9,s[17]),T=u(T,P,E,j,x,14,s[18]),j=u(j,T,P,E,a,20,s[19]),E=u(E,j,T,P,_,5,s[20]),P=u(P,E,j,T,w,9,s[21]),T=u(T,P,E,j,A,14,s[22]),j=u(j,T,P,E,m,20,s[23]),E=u(E,j,T,P,b,5,s[24]),P=u(P,E,j,T,C,9,s[25]),T=u(T,P,E,j,f,14,s[26]),j=u(j,T,P,E,y,20,s[27]),E=u(E,j,T,P,S,5,s[28]),P=u(P,E,j,T,h,9,s[29]),T=u(T,P,E,j,v,14,s[30]),E=d(E,j=u(j,T,P,E,k,20,s[31]),T,P,_,4,s[32]),P=d(P,E,j,T,y,11,s[33]),T=d(T,P,E,j,x,16,s[34]),j=d(j,T,P,E,C,23,s[35]),E=d(E,j,T,P,l,4,s[36]),P=d(P,E,j,T,m,11,s[37]),T=d(T,P,E,j,v,16,s[38]),j=d(j,T,P,E,w,23,s[39]),E=d(E,j,T,P,S,4,s[40]),P=d(P,E,j,T,a,11,s[41]),T=d(T,P,E,j,f,16,s[42]),j=d(j,T,P,E,g,23,s[43]),E=d(E,j,T,P,b,4,s[44]),P=d(P,E,j,T,k,11,s[45]),T=d(T,P,E,j,A,16,s[46]),E=p(E,j=d(j,T,P,E,h,23,s[47]),T,P,a,6,s[48]),P=p(P,E,j,T,v,10,s[49]),T=p(T,P,E,j,C,15,s[50]),j=p(j,T,P,E,_,21,s[51]),E=p(E,j,T,P,k,6,s[52]),P=p(P,E,j,T,f,10,s[53]),T=p(T,P,E,j,w,15,s[54]),j=p(j,T,P,E,l,21,s[55]),E=p(E,j,T,P,y,6,s[56]),P=p(P,E,j,T,A,10,s[57]),T=p(T,P,E,j,g,15,s[58]),j=p(j,T,P,E,S,21,s[59]),E=p(E,j,T,P,m,6,s[60]),P=p(P,E,j,T,x,10,s[61]),T=p(T,P,E,j,h,15,s[62]),j=p(j,T,P,E,b,21,s[63]),i[0]=i[0]+E|0,i[1]=i[1]+j|0,i[2]=i[2]+T|0,i[3]=i[3]+P|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t}function u(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t}function d(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t}function p(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t}n.MD5=i._createHelper(l),n.HmacMD5=i._createHmacHelper(l)}(Math),e.MD5}(n(84488))},54371:(e,t,n)=>{"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(65043),a=(r=i)&&r.__esModule?r:{default:r};t.A=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,s=e.height,l=void 0===s?24:s,c=e.style,u=void 0===c?{}:c,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:l},u)},d),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},54454:(e,t,n)=>{"use strict";n.d(t,{G:()=>F});var r=n(22555),o=n(65043),i=n(75439),a=n(40117),s=n(47174),l=n(65982),c=n(34677),u=n(30590),d=n(10385),p=n(65871),h=n(81518),f=n(91118),m=n(30502),_=(n(63451),n(34453)),g=n(75686),v=n(26533),y=n(93528),b=n(9855),w=n(31837),x=n(72313),k=n(88306),S=n(23658),C=n(77819),A=n(37475),E=n(75088),j=n(36210),T=(n(66006),n(92730)),P=n(26390),N=n(97950),I=n(13005),R=n(10624),O=n(52222),D=n(71200),M=n(36222),L=n(70579);const F=e=>{let{post:t,listId:n,listOwnerId:F}=e;const{userData:z}=(0,l.Jd)(),{theme:B}=(0,I.DP)(),{resolvedDirection:q}=(0,R.o)(),U=(0,i.Zp)(),[H,W]=(0,o.useState)((()=>{if(!t)return t;let e=t.options;if(e&&!Array.isArray(e))try{e=Object.keys(e).map((t=>e[t]))}catch(n){console.warn("PollCard: failed to normalize initial post.o
2ptions",n,t.options),e=[]}return(0,r.A)((0,r.A)({},t),{},{options:e})})),V=String((null===t||void 0===t?void 0:t.id)||""),[K,G]=(0,o.useState)({name:"",tag:"",img:"",id:"",subscribed:!1,frame_url:"",role:null}),[Y,Q]=(0,o.useState)([]),[X,$]=(0,o.useState)(!1),[J,Z]=(0,o.useState)(null),[ee,te]=(0,o.useState)(0),ne=(0,o.useRef)(null),re=(0,o.useRef)(null),oe=(0,o.useRef)(null),ie=(0,o.useRef)(null),[ae,se]=(0,o.useState)(null),[le,ce]=(0,o.useState)(null),[ue,de]=(0,o.useState)(!1),[pe,he]=(0,o.useState)([]),[fe,me]=(0,o.useState)([]),[_e,ge]=(0,o.useState)(!1),[ve,ye]=(0,o.useState)(0),[be,we]=(0,o.useState)(0),[xe,ke]=(0,o.useState)(null),[Se,Ce]=(0,o.useState)({isOpen:!1,title:"",message:"",isDangerous:!1,onConfirm:()=>{},onCancel:()=>{}}),[Ae,Ee]=(0,o.useState)({isOpen:!1,title:"",message:"",type:"success"}),[je,Te]=(0,o.useState)(!1),[Pe,Ne]=(0,o.useState)(null),[Ie,Re]=(0,o.useState)(!1),[Oe,De]=(0,o.useState)(null),[Me,Le]=(0,o.useState)(null),[Fe,ze]=(0,o.useState)((()=>(null===H||void 0===H?void 0:H.reactionCounts)||{})),[Be,qe]=(0,o.useState)(!1),[Ue,He]=(0,o.useState)("\u0623\u0639\u062c\u0628\u0646\u064a"),[We,Ve]=(0,o.useState)({like:"https://assets.amposter.com/reactions/reaction_pack1/like.png",love:"https://assets.amposter.com/reactions/reaction_pack1/love.png",care:"https://assets.amposter.com/reactions/reaction_pack1/care.png",wow:"https://assets.amposter.com/reactions/reaction_pack1/wow.png",haha:"https://assets.amposter.com/reactions/reaction_pack1/haha.png",sad:"https://assets.amposter.com/reactions/reaction_pack1/sad.png",angry:"https://assets.amposter.com/reactions/reaction_pack1/angry.png"});if((0,o.useEffect)((()=>{ze((null===H||void 0===H?void 0:H.reactionCounts)||{})}),[null===H||void 0===H?void 0:H.reactionCounts]),(0,o.useEffect)((()=>(document.body.style.overflow=ae?"hidden":"",()=>{document.body.style.overflow=""})),[ae]),(0,o.useEffect)((()=>{(async()=>{const e=t.createdBy;if(e)try{const n=await s.A.getProfile(e);if(n){const r=await s.A.getRole(e);let o=n.subscribed||!1,i=n.frame_url||"";if(n.frame_expire&&n.frame_expire<Date.now()&&(o=!1,i=""),G({name:n.name||"\u0645\u0633\u062a\u062e\u062f\u0645 \u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641",tag:n.tag||"unknown",img:n.img||"/assets/images/global/user_v2.jpg",id:e||"unknown",subscribed:o,frame_url:i,role:r}),t.team){const e=await s.A.getTeam(t.team);e&&De({id:t.team,name:e.name||"",flag:e.flag||"",level:e.level||""})}}else console.warn("\u26a0\ufe0f PollCard: No data returned from getProfile for",e),G({name:"\u0645\u0633\u062a\u062e\u062f\u0645 \u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641",tag:"unknown",img:"/assets/images/global/user_v2.jpg",id:e||"unknown",subscribed:!1,frame_url:"",role:null})}catch(n){console.error("\u274c PollCard fetchUserData error:",n),G({name:"\u0645\u0633\u062a\u062e\u062f\u0645 \u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641",tag:"unknown",img:"/assets/images/global/user_v2.jpg",id:e||"unknown",subscribed:!1,frame_url:"",role:null})}else console.warn("\u26a0\ufe0f PollCard: No userId provided for post",V)})(),(async()=>{const e=(0,u.WR)();if(e){const t=await s.A.getRole(e);ce(t||null)}})()}),[t.createdBy]),(0,o.useEffect)((()=>{if(null===H||void 0===H||!H.createdBy)return;return(0,T._A)(H.createdBy,(e=>{Ve(e)}))}),[null===H||void 0===H?void 0:H.createdBy]),(0,o.useEffect)((()=>{let e=!0;if(null===H||void 0===H||!H.id)return;return(async()=>{try{if(null!==z&&void 0!==z&&z.id){const t=await a.firebase.database().ref("posts/".concat(H.id,"/reactions/").concat(z.id)).once("value");if(!e)return;if(t.exists()){const e=t.val();Le(e),Ge(e)}else Le(null),He("\u0623\u0639\u062c\u0628\u0646\u064a")}else Le(null),He("\u0623\u0639\u062c\u0628\u0646\u064a");const t=await a.firebase.database().ref("posts/".concat(H.id,"/reactionCounts")).once("value");if(!e)return;ze(t.val()||{})}catch(t){console.error("PollCard fetchReactionState error:",t)}})(),()=>{e=!1}}),[null===z||void 0===z?void 0:z.id,null===H||void 0===H?void 0:H.id]),(0,o.useEffect)((()=>{if(!H.options)return;const e=new Set;H.options.forEach((t=>
2{t.votes&&Object.keys(t.votes).forEach((t=>e.add(t)))})),he(Array.from(e))}),[H.options]),(0,o.useEffect)((()=>{(async()=>{if(0!==pe.length)try{const e=await Promise.all(pe.slice(0,10).map((async e=>{const t=a.firebase.database().ref("kunaiu_bank/".concat(e)),n=await t.once("value");if(n.exists()){const t=n.val();return{id:e,img:t.img||"/assets/images/global/user_v2.jpg",name:t.name||"\u0645\u0633\u062a\u062e\u062f\u0645"}}return null})));me(e.filter((e=>null!==e)))}catch(e){console.error("Error fetching voters data:",e)}})()}),[pe]),(0,o.useEffect)((()=>{(async()=>{const e=(0,u.WR)();if(e&&V)try{const t="kunaiu_saved_posts_".concat(e),n=JSON.parse(localStorage.getItem(t)||"{}");if(n&&Object.prototype.hasOwnProperty.call(n,V))return void de(!0);const r=a.firebase.database().ref("kunaiu_bank/".concat(e,"/saved_posts/").concat(V)),o=await r.once("value");de(o.exists())}catch(t){console.error("Error checking if poll is saved:",t)}})()}),[V,null===z||void 0===z?void 0:z.id]),(0,o.useEffect)((()=>{const e=H.comments?Object.keys(H.comments).length:0;ye(e);const t=H.coins||0;we(t)}),[H.comments,H.coins]),(0,o.useEffect)((()=>{if(null===z||void 0===z||!z.id)return;const e=a.firebase.database().ref("posts/".concat(V)),t=e.on("value",(e=>{if(e.exists()){const n=e.val();let o=n.options;if(o&&!Array.isArray(o))try{o=Object.keys(o).map((e=>o[e]))}catch(t){console.warn("PollCard: failed to normalize options",t,n.options),o=[]}const i=(0,r.A)((0,r.A)({},n),{},{options:o});W(i);const a=[];(i.options||[]).forEach(((e,t)=>{e&&e.votes&&e.votes[z.id]&&a.push(t)})),Q(a)}}));return()=>e.off("value",t)}),[V,null===z||void 0===z?void 0:z.id]),!t||null==t.id)return console.warn("PollCard: Missing essential poll data",t),(0,L.jsx)("div",{className:"poll-card error-card ".concat("dark"===B?"theme-dark-item":"theme-light-item"),children:(0,L.jsx)("div",{style:{padding:"20px",textAlign:"center",color:"dark"===B?"#cbd6e3":"#666"},children:"\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u063a\u064a\u0631 \u0645\u062a\u0648\u0641\u0631\u0629 \u0623\u0648 \u062a\u0627\u0644\u0641\u0629"})});if(!H||null==H.id)return(0,L.jsx)("div",{className:"poll-card loading-card ".concat("dark"===B?"theme-dark-item":"theme-light-item"),children:(0,L.jsx)("div",{style:{padding:"20px",textAlign:"center",color:"dark"===B?"#cbd6e3":"#666"},children:"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062a\u0635\u0648\u064a\u062a..."})});const Ke=()=>H.endTime&&Date.now()>H.endTime,Ge=e=>{switch(e){case"like":default:He("\u0623\u0639\u062c\u0628\u0646\u064a");break;case"love":He("\u0623\u062d\u0628\u0628\u062a\u0647");break;case"care":He("\u0623\u062f\u0639\u0645\u0647");break;case"haha":He("\u0647\u0627\u0647\u0627\u0647\u0627");break;case"wow":He("\u0648\u0627\u0627\u0648");break;case"sad":He("\u0623\u062d\u0632\u0646\u0646\u064a");break;case"angry":He("\u0623\u063a\u0636\u0628\u0646\u064a")}},Ye=e=>{z?Ke()?Ee({isOpen:!0,title:"\u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0645\u0646\u062a\u0647\u064a",message:"\u0644\u0642\u062f \u0627\u0646\u062a\u0647\u062a \u0645\u062f\u0629 \u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a",type:"error"}):!H.multipleChoice&&Y.length>0&&!Y.includes(e)||(ne.current&&(clearTimeout(ne.current),ne.current=null),oe.current&&(clearInterval(oe.current),oe.current=null),ie.current&&(clearInterval(ie.current),ie.current=null),re.current=Date.now(),Z(e),$(!0),te(0),oe.current=setInterval((()=>{oe.current&&te((e=>e>=100?(oe.current&&(clearInterval(oe.current),oe.current=null),100):e+100/7))}),100),ne.current=setTimeout((()=>{Xe(e)}),700)):U("/login")},Qe=()=>{ne.current&&(clearTimeout(ne.current),ne.current=null),oe.current&&(clearInterval(oe.current),oe.current=null);Date.now()-re.current<700&&(ie.current&&(clearInterval(ie.current),ie.current=null),ie.current=setInterval((()=>{te((e=>e<=0?(ie.current&&(clearInterval(ie.current),ie.current=null),$(!1),Z(null),te(0),0):Math.max(0,e-10)))}),50))},Xe=async e=>{try{z.id,a.firebase.database().ref("posts/".concat(V,"/options/").concat(e));if(!Y.includes(e)&&Y.length>0&&!H.multipleChoice)return void Ce({isOpen:!0,title:"\u062a\u063a\u064a\u064a\u0631 \u0627\u0644\u062a\u0635\u0648\u064a\u062a",message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u062a\u063a\u064a\u064a\u0631 \u062a\u0635\u0648\u064a\u062a\u0643\u061f \u0633\u064a\u062a\u0645 \u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646 \u0639\u062f\u062f \u0627\u0644\u062a\u0635\u0648\u064a\u062a\u0627\u062a \u0627\u0644\u0625\u062c\u0645\u0627\u0644\u064a.",isDangerous:!1,onConfirm:async()=>{await $e(e),await a.firebase.database().ref("posts/".concat(V,"/totalVotes")).set(0),Ce((0,r.A)((0,r.A)({},Se),{},{isOpen:!1}))},onCancel:()=>Ce((0,r.A)((0,r.A)({},Se),{},{isOpen:!1}))});await $e(e)}catch(t){console.error("Error voting:",t),$(!1),Z(null),te(0)}},$e=async e=>{const t=z.id,n=a.firebase.database().ref("posts/".concat(V,"/options/").concat(e));if(Y.includes(e))await n.child("votes/".concat(t)).remove(),await n.child("voteCount").transaction((e=>Math.max((e||1)-1,0))),await a.firebase.database().ref("posts/".concat(V,"/totalVotes")).transaction((e=>Math.max((e||1)-1,0)));else{if(!H.multipleChoice&&Y.length>0){const e=Y[0];await a.firebase.database().ref("posts/".concat(V,"/options/").concat(e,"/votes/").concat(t)).remove(),await a.firebase.database().ref("posts/".concat(V,"/options/").concat(e,"/voteCount")).transaction((e=>Math.max((e||1)-1,0)))}else await a.firebase.database().ref("posts/".concat(V,"/totalVotes")).transaction((e=>(e||0)+1));await n.child("votes/".concat(t)).set(!0),await n.child("voteCount").transaction((e=>(e||0)+1))}setTimeout((()=>{$(!1),Z(null),te(0)}),300)},Je=()=>{const e="https://amposter.com/poll/".concat(H.id);navigator.clipboard.writeText(e).then((()=>{Ee({isOpen:!0,title:"\u062a\u0645 \u0627\u0644\u0646\u0633\u062e",message:"\u062a\u0645 \u0646\u0633\u062e \u0631\u0627\u0628\u0637 \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0628\u0646\u062c\u0627\u062d",type:"success"}),se(null)}))},Ze=async e=>{const t=!0===H[e];Ce({isOpen:!0,title:t?"\u0625\u0644\u063a\u0627\u0621 \u062d\u062c\u0628 \u0627\u0644\u062a\u0635\u0648\u064a\u062a":"\u062d\u062c\u0628 \u0627\u0644\u062a\u0635\u0648\u064a\u062a",message:t?"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0644\u063a\u0627\u0621 \u062d\u062c\u0628 \u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a\u061f":"\u
20647\u0644 \u062a\u0631\u064a\u062f \u062d\u062c\u0628 \u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a\u061f",isDangerous:!0,confirmText:t?"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062d\u062c\u0628":"\u062d\u062c\u0628",cancelText:"\u0625\u0644\u063a\u0627\u0621",onConfirm:async()=>{try{const n=!t;await a.firebase.database().ref("posts/".concat(H.id)).update({[e]:n}),window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:H.id}})),Ee({isOpen:!0,title:"\u062a\u0645",message:n?"\u062a\u0645 \u062d\u062c\u0628 \u0627\u0644\u062a\u0635\u0648\u064a\u062a":"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062d\u062c\u0628",type:"success"})}catch(n){console.error("Error blocking poll:",n),Ee({isOpen:!0,title:"\u062e\u0637\u0623",type:"error",message:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u062f\u064a\u062b \u062d\u0627\u0644\u0629 \u0627\u0644\u062d\u0638\u0631"})}finally{se(null),Ce((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1})))}},onCancel:()=>Ce((0,r.A)((0,r.A)({},Se),{},{isOpen:!1}))})},et=async()=>{const e=!0===H.blocked;Ce({isOpen:!0,title:e?"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u062a\u0635\u0648\u064a\u062a":"\u062d\u0638\u0631 \u0627\u0644\u062a\u0635\u0648\u064a\u062a",message:e?"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a\u061f":"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u062d\u0638\u0631 \u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a\u061f",isDangerous:!0,confirmText:e?"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062d\u0638\u0631":"\u062d\u0638\u0631",cancelText:"\u0625\u0644\u063a\u0627\u0621",onConfirm:async()=>{try{const t=!e;if(await a.firebase.database().ref("posts/".concat(H.id)).update({blocked:t,blocked_at:t?Date.now():null}),t&&H.createdBy){const e=a.firebase.database().ref("Notifications/".concat(H.createdBy)).push();await e.set({type:"post_blocked",postId:H.id,message:"\u062a\u0645 \u062d\u0638\u0631 \u062a\u0635\u0648\u064a\u062a\u0643 \u0644\u0645\u062e\u0627\u0644\u0641\u062a\u0647 \u0642\u0648\u0627\u0646\u064a\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642",timestamp:Date.now(),read:!1})}await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;try{const r=(0,u.WR)();if(!r)return;await a.firebase.database().ref("moderation_logs").push({moderatorId:r,moderatorRole:le,actionType:e,blockType:t,contentType:"post",contentId:H.id,targetUserId:H.createdBy,targetUserName:K.name,reason:n,timestamp:Date.now(),verified:!1})}catch(r){console.error("Error logging moderation action:",r)}}(t?"block":"unblock","content_violation",t?"\u062d\u0638\u0631 \u062a\u0635\u0648\u064a\u062a \u0644\u0645\u062e\u0627\u0644\u0641\u062a\u0647 \u0627\u0644\u0642\u0648\u0627\u0646\u064a\u0646":"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u062a\u0635\u0648\u064a\u062a"),W((e=>(0,r.A)((0,r.A)({},e),{},{blocked:t,blocked_at:t?Date.now():null}))),await s.A.updatePostInCache(H.id,{blocked:t,blocked_at:t?Date.now():null}),window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:H.id}})),Ee({isOpen:!0,title:"\u062a\u0645",type:"success",message:t?"\u062a\u0645 \u062d\u0638\u0631 \u0627\u0644\u062a\u0635\u0648\u064a\u062a":"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u062a\u0635\u0648\u064a\u062a"})}catch(t){console.error("Error blocking poll:",t),Ee({isOpen:!0,title:"\u062e\u0637\u0623",type:"error",message:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u062f\u064a\u062b \u062d\u0627\u0644\u0629 \u0627\u0644\u062d\u0638\u0631"})}finally{se(null),Ce((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1})))}},onCancel:()=>Ce((0,r.A)((0,r.A)({},Se),{},{isOpen:!1}))})};return(0,L.jsxs)(L.Fragment,{children:[xe&&(0,L.jsx)(P.A,{path:xe.path,initialType:xe.type||"all",onClose:()=>ke(null),navigate:U,contentOwnerId:null===H||void 0===H?void 0:H.createdBy}),(0,L.jsxs)("div",{className:"poll-card ".concat("dark"===B?"theme-dark-item":"theme-light-item"),dir:q,children:[(0,L.jsxs)("div",{className:"image_userdetails_container",dir:q,children:[(0,L.jsxs)("div",{className:"post-profile-img ".concat(null!==K&&void 0!==K&&K.subscribed?"subscribed":""),onClick:()=>Ne(K.id),style:{cursor:"pointer"},role:"button","aria-label":"Open profile ".concat(null===K||void 0===K?void 0:K.name),children:[(0,L.jsx)("div",{className:"post-profile-image-overlay",children:(null===K||void 0===K?void 0:K.subscribed)&&(0,L.jsx)("img",{src:null===K||void 0===K?void 0:K.frame_url,alt:"Frame",className:"avatar-frame"})}),(0,L.jsx)("img",{src:K.img||"/assets/images/global/user_v2.jpg",alt:"\u0635\u0648\u0631\u0629 \u0627\u0644\u0628\u0631\u0648\u0641\u0627\u064a\u0644",loading:"lazy",className:"post-profile-image"})]}),(0,L.jsxs)("div",{className:"userdetails_container",children:[(0,L.jsxs)("div",{className:"userdetails_header",children:[(0,L.jsxs)("div",{className:"name",onClick:e=>{e.stopPropagation(),Ne(K.id)},style:{cursor:"pointer"},role:"button",children:[K.name,!!K.verified&&(0,L.jsx)("img",{src:"/assets/images/global/verified.png",alt:"verified",style:{width:"16px",height:"16px",marginLeft:"4px",verticalAlign:"middle"}})]}
2),(0,L.jsx)(_.A,{size:10,color:"#888",style:{marginRight:"4px"}}),(0,L.jsxs)("div",{className:"post-time-options",children:[(0,L.jsx)("span",{className:"post-time",children:(0,c.f)(t.timestamp)}),(0,L.jsxs)("div",{style:{position:"relative"},children:[(0,L.jsx)(g.A,{size:18,style:{cursor:"pointer"},onClick:()=>se(ae===H.id?null:H.id)}),ae===H.id&&(0,N.createPortal)((0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:"menu-portal-backdrop",onClick:()=>se(null)}),(0,L.jsxs)("div",{className:"post_menu_options ".concat("dark"===B?"theme-dark":""),role:"dialog","aria-modal":"true",children:[(0,u.WR)()===H.createdBy&&(0,L.jsxs)("div",{className:"menu-item edit-item",onClick:()=>{Ce({isOpen:!0,title:"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u062a\u0635\u0648\u064a\u062a",message:"\u062a\u062d\u0630\u064a\u0631: \u0639\u0646\u062f \u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u062a\u0635\u0648\u064a\u062a\u060c \u0633\u064a\u062a\u0645 \u0641\u0642\u062f\u0627\u0646 \u062c\u0645\u064a\u0639 \u0627\u0644\u0623\u0635\u0648\u0627\u062a \u0627\u0644\u062d\u0627\u0644\u064a\u0629 \u0648\u0633\u064a\u062a\u0645 \u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646 \u0639\u062f\u062f \u0627\u0644\u0645\u0635\u0648\u062a\u064a\u0646 \u0625\u0644\u0649 \u0635\u0641\u0631. \u0647\u0644 \u062a\u0631\u064a\u062f \u0627\u0644\u0645\u062a\u0627\u0628\u0639\u0629\u061f",isDangerous:!0,confirmText:"\u0645\u062a\u0627\u0628\u0639\u0629",cancelText:"\u0625\u0644\u063a\u0627\u0621",onConfirm:()=>{sessionStorage.setItem("editingPoll",JSON.stringify(H)),U("/create-poll?edit=".concat(H.id)),Ce((0,r.A)((0,r.A)({},Se),{},{isOpen:!1}))},onCancel:()=>Ce((0,r.A)((0,r.A)({},Se),{},{isOpen:!1}))}),se(null)},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(v.A,{size:18}),"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u062a\u0635\u0648\u064a\u062a"]}),(0,L.jsxs)("div",{className:"menu-item",onClick:()=>{se(null),(async()=>{const e=(0,u.WR)();if(e)try{const n=a.firebase.database().ref("kunaiu_bank/".concat(e,"/saved_posts/").concat(V));if((await n.once("value")).exists()){await n.remove(),de(!1),Ee({isOpen:!0,title:"\u062a\u0645",type:"success",message:"\u062a\u0645 \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0645\u0646 \u0627\u0644\u0645\u062d\u0641\u0648\u0638\u0627\u062a"});try{const t="kunaiu_saved_posts_".concat(e),n=JSON.parse(localStorage.getItem(t)||"{}");delete n[V],localStorage.setItem(t,JSON.stringify(n));const r="saved_posts_page_".concat(e),o=await(0,d.Jt)(r),i=o?JSON.parse(o):[];if(Array.isArray(i)){const e=i.filter((e=>e.id!==V));await(0,d.hZ)(r,JSON.stringify(e))}}catch(t){}window.dispatchEvent(new CustomEvent("savedPostChanged",{detail:{postId:V,saved:!1,userId:e}}))}else{const o=Date.now();await n.set({savedAt:o}),de(!0),Ee({isOpen:!0,title:"\u062a\u0645",type:"success",message:"\u062a\u0645 \u062d\u0641\u0638 \u0627\u0644\u062a\u0635\u0648\u064a\u062a"});try{const t="kunaiu_saved_posts_".concat(e),n=JSON.parse(localStorage.getItem(t)||"{}");n[V]={savedAt:o},localStorage.setItem(t,JSON.stringify(n));const i="saved_posts_page_".concat(e),a=await(0,d.Jt)(i),s=a?JSON.parse(a):[];if(Array.isArray(s)){const e=[(0,r.A)((0,r.A)({id:V},H),{},{savedAt:o}),...s.filter((e=>e.id!==V))];await(0,d.hZ)(i,JSON.stringify(e))}}catch(t){}window.dispatchEvent(new CustomEvent("savedPostChanged",{detail:{postId:V,saved:!0,userId:e,savedAt:o}}))}se(null)}catch(n){console.error("Error saving poll:",n)}else U("/login")})()},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(y.A,{size:18}),ue?"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0645\u062d\u0641\u0648\u0638\u0627\u062a":"\u062d\u0641\u0638 \u0627\u0644\u062a\u0635\u0648\u064a\u062a"]}),n&&F===(null===z||void 0===z?void 0:z.id)&&(0,L.jsxs)("div",{className:"menu-item danger-item delete-item",onClick:()=>{n&&F&&(Ce({isOpen:!0,title:"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629",message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0631\u063a\u0628\u062a\u0643 \u0641\u064a \u0625\u0632\u0627\u0644\u0629 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629\u
2061f",confirmText:"\u0625\u0632\u0627\u0644\u0629",cancelText:"\u0625\u0644\u063a\u0627\u0621",isDangerous:!0,onConfirm:async()=>{Ce((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1})));try{const e=a.firebase.database().ref("user_posts_list/".concat(F,"/").concat(n,"/posts")),t=await e.once("value");if(t.exists()){let n=t.val();Array.isArray(n)||(n=Object.values(n));const r=n.filter((e=>e!==H.id));await e.set(r),Ee({isOpen:!0,title:"\u062a\u0645\u062a \u0627\u0644\u0625\u0632\u0627\u0644\u0629",type:"success",message:"\u062a\u0645\u062a \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0628\u0646\u062c\u0627\u062d! \u0633\u064a\u062a\u0645 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0635\u0641\u062d\u0629."}),setTimeout((()=>window.location.reload()),1500)}}catch(e){console.error("Error removing from list",e)}}}),se(null))},style:{display:"flex",alignItems:"center",gap:"8px",color:"#e6594c"},children:[(0,L.jsx)(b.A,{size:18}),"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629"]}),(0,L.jsxs)("div",{className:"menu-item",onClick:()=>{se(null),Re(!0)},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(w.A,{size:18}),"\u0625\u0636\u0627\u0641\u0629 \u0625\u0644\u0649 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a"]}),(0,L.jsxs)("div",{className:"menu-item",onClick:()=>{Je(),se(null)},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(x.A,{size:18}),"\u0646\u0633\u062e \u0627\u0644\u0631\u0627\u0628\u0637"]}),(0,L.jsxs)("div",{className:"menu-item",onClick:()=>{(async()=>{const e="".concat(window.location.origin,"/poll/").concat(H.id);if(navigator.Share2)try{await navigator.Share2({title:H.question,url:e}),se(null)}catch(t){"AbortError"!==t.name&&Je()}else Je()})(),se(null)},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(k.A,{size:18}),"\u0645\u0634\u0627\u0631\u0643\u0629"]}),(0,m.AB)(le)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"menu-item",onClick:()=>{se(null),(async()=>{(0,m.AB)(le)&&Ce({isOpen:!0,title:H.main_post?"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a":"\u062a\u0639\u064a\u064a\u0646 \u0643\u0645\u0646\u0634\u0648\u0631 \u0641\u0639\u0627\u0644\u064a\u0629",message:H.main_post?"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0632\u0627\u0644\u0629 \u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0645\u0646 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a\u061f":"\u0647\u0644 \u062a\u0631\u064a\u062f \u062a\u0639\u064a\u064a\u0646 \u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0643\u0641\u0639\u0627\u0644\u064a\u0629\u061f",isDangerous:!1,confirmText:H.main_post?"\u0625\u0632\u0627\u0644\u0629":"\u062a\u0639\u064a\u064a\u0646",cancelText:"\u0625\u0644\u063a\u0627\u0621",onConfirm:async()=>{try{const e=!H.main_post;await a.firebase.database().ref("posts/".concat(H.id)).update({main_post:e}),e?await a.firebase.database().ref("EpicPost/".concat(H.id)).set(Date.now()):await a.firebase.database().ref("EpicPost/".concat(H.id)).remove(),await s.A.updatePostInCache(H.id,{main_post:e}),W((t=>(0,r.A)((0,r.A)({},t),{},{main_post:e}))),window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:H.id}})),se(null),Ee({isOpen:!0,title:"\u062a\u0645",type:"success",message:e?"\u062a\u0645 \u062a\u0639\u064a\u064a\u0646 \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0643\u0641\u0639\u0627\u0644\u064a\u0629":"\u062a\u0645 \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0645\u0646 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a"})}catch(e){console.error("Error toggling main poll:",e)}},onCancel:()=>Ce((0,r.A)((0,r.A)({},Se),{},{isOpen:!1}))})})()},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(S.A,{size:18}),H.main_post?"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a":"\u062a\u0639\u064a\u064a\u0646 \u0643\u0645\u0646\u0634\u0648\u0631 \u0641\u0639\u0627\u0644\u064a\u0629"]}),(0,L.jsxs)("div",{className:"menu-item",onClick:()=>{se(null),(async()=>{(0,m.AB)(le)&&Ce({isOpen:!0,title:H.is_advertisement?"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646":"\u062a\u062d\u0648\u064a\u0644 \u0644\u0625\u0639\u0644\u0627\u0646",message:H.is_advertisement?"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0644\u063a\u0627\u0621 \u062c\u0639\u0644 \u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0625\u0639\u0644\u0627\u0646\u0627\u064b\u061f":"\u
20647\u0644 \u062a\u0631\u064a\u062f \u062c\u0639\u0644 \u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0625\u0639\u0644\u0627\u0646\u0627\u064b \u0645\u0645\u064a\u0632\u0627\u064b\u061f",isDangerous:!1,confirmText:H.is_advertisement?"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646":"\u062a\u062d\u0648\u064a\u0644 \u0644\u0625\u0639\u0644\u0627\u0646",cancelText:"\u0625\u0644\u063a\u0627\u0621",onConfirm:async()=>{try{const e=!H.is_advertisement;await a.firebase.database().ref("posts/".concat(H.id)).update({is_advertisement:e,advertisement_timestamp:e?Date.now():null}),await s.A.updatePostInCache(H.id,{is_advertisement:e,advertisement_timestamp:e?Date.now():null}),W((t=>(0,r.A)((0,r.A)({},t),{},{is_advertisement:e}))),window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:H.id}})),se(null),Ee({isOpen:!0,title:"\u062a\u0645",type:"success",message:e?"\u062a\u0645 \u062a\u062d\u0648\u064a\u0644 \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0644\u0625\u0639\u0644\u0627\u0646":"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"})}catch(e){console.error("Error toggling advertisement for poll:",e)}},onCancel:()=>Ce((0,r.A)((0,r.A)({},Se),{},{isOpen:!1}))})})()},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(C.A,{size:18}),H.is_advertisement?"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646":"\u062a\u062d\u0648\u064a\u0644 \u0644\u0625\u0639\u0644\u0627\u0646"]})]}),(0,u.WR)()===H.createdBy&&(0,L.jsxs)("div",{className:"menu-item delete-item",onClick:()=>{Ce({isOpen:!0,title:"\u062d\u0630\u0641 \u0627\u0644\u062a\u0635\u0648\u064a\u062a",message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u062d\u0630\u0641 \u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a\u061f",isDangerous:!0,confirmText:"\u062d\u0630\u0641",cancelText:"\u0625\u0644\u063a\u0627\u0621",onConfirm:async()=>{try{await a.firebase.database().ref("posts/".concat(H.id)).update({deleted:!0,deletedAt:Date.now(),deletedBy:z.id}),window.dispatchEvent(new CustomEvent("postDeleted",{detail:{postId:H.id}})),se(null)}catch(e){console.error("Error deleting poll:",e)}},onCancel:()=>Ce((0,r.A)((0,r.A)({},Se),{},{isOpen:!1}))}),se(null)},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(b.A,{size:18}),"\u062d\u0630\u0641 \u0627\u0644\u062a\u0635\u0648\u064a\u062a"]}),(0,m.rG)(le)&&(0,u.WR)()!==H.createdBy&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"menu-item block-item",onClick:()=>{se(null),et()},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(A.A,{size:18}),H.blocked?"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0627\u0644\u062a\u0635\u0648\u064a\u062a":"\u062d\u0638\u0631 \u0627\u0644\u062a\u0635\u0648\u064a\u062a"]}),(0,L.jsxs)("div",{className:"menu-item block-item",onClick:()=>{Ze("police_block"),se(null)},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(A.A,{size:18}),H.police_block?"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0633\u0631\u0642\u0629":"\u062d\u0638\u0631 \u0633\u0631\u0642\u0629"]}),(0,L.jsxs)("div",{className:"menu-item block-item",onClick:()=>{Ze("etiquette_block"),se(null)},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(A.A,{size:18}),H.etiquette_block?"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0625\u0633\u0627\u0621\u0629":"\u062d\u0638\u0631 \u0625\u0633\u0627\u0621\u0629"]}),(0,L.jsxs)("div",{className:"menu-item block-item",onClick:()=>{Ze("law_block"),se(null)},style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,L.jsx)(A.A,{size:18}),H.law_block?"\u0625\u0644\u063a\u0627\u0621 \u062d\u0638\u0631 \u0645\u062e\u0627\u0644\u0641\u0629 \u0623\u0645\u0646\u064a\u0629":"\u062d\u0638\u0631 \u0645\u062e\u0627\u0644\u0641\u0629 \u0623\u0645\u0646\u064a\u0629"]})]})]})]}),document.body)]})]})]}),(0,L.jsx)("div",{className:"userdetails_sub_header",children:(0,L.jsx)("div",{className:"userhandle",children:K.tag})})]})]}),(H.blocked||H.police_block||H.etiquette_block||H.law_block)&&!(0,m.rG)(le)?(0,L.jsx)("div",{className:"poll-options-error",children:(0,L.jsx)("div",{style:{padding:"20px",textAlign:"center"},children:(0,L.jsx)("p",{dir:"auto",style:{color:"#e74c3c",fontWeight:"bold"},children:"\u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0645\u062d\u0638\u0648\u0631 \u0628\u0633\u0628\u0628 \u0645\u062e\u0627\u0644\u0641\u062a\u0647 \u0642\u0648\u0627\u0646\u064a\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642"})})}):(0,L.jsxs)(L.Fragment,{children:[(H.blocked||H.police_block||H.etiquette_block||H.law_block)&&(0,m.rG)(le)&&(0,L.jsx)("div",{style:{padding:"10px",backgroundColor:"#fff3cd",borderRadius:"8px",border:"2px s
2olid #ffc107",marginBottom:"10px",textAlign:"center"},children:(0,L.jsx)("p",{dir:"auto",style:{color:"#856404",fontWeight:"bold",margin:0,fontSize:"14px"},children:"\u26a0\ufe0f \u0647\u0630\u0627 \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u0645\u062d\u0638\u0648\u0631 \u0628\u0633\u0628\u0628 \u0645\u062e\u0627\u0644\u0641\u062a\u0647 \u0642\u0648\u0627\u0646\u064a\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642 - \u0623\u0646\u062a \u062a\u0631\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u062d\u062a\u0648\u0649 \u0644\u0623\u0646\u0643 \u0645\u0633\u0624\u0648\u0644"})}),H.question?(0,L.jsx)("div",{className:"poll-question",children:(0,L.jsx)("h2",{dir:"auto",children:H.question})}):(0,L.jsx)("div",{className:"poll-question",children:(0,L.jsx)("h2",{dir:"auto",children:"\u062a\u0635\u0648\u064a\u062a"})}),(0,L.jsxs)("div",{className:"poll-time-remaining",children:[(0,L.jsx)(E.A,{size:16}),(0,L.jsx)("span",{children:(()=>{if(!H.endTime)return"\u0645\u0641\u062a\u0648\u062d";const e=H.endTime-Date.now();if(e<=0)return"\u0645\u0646\u062a\u0647\u064a";const t=Math.floor(e/864e5),n=Math.floor(e%864e5/36e5);return t>0?"".concat(t," \u064a\u0648\u0645 \u0645\u062a\u0628\u0642\u064a"):n>0?"".concat(n," \u0633\u0627\u0639\u0629 \u0645\u062a\u0628\u0642\u064a\u0629"):"\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629"})()})]}),H.options&&H.options.length>0?(0,L.jsx)("div",{className:"poll-options",children:H.options.map(((e,t)=>{const n=(r=e.voteCount||0,0===H.totalVotes?0:Math.round(r/H.totalVotes*100));var r;const o=Y.includes(t),i=X&&J===t,a=Ke(),s=(()=>{if(!H.options||0===H.totalVotes)return-1;let e=0,t=-1;return H.options.forEach(((n,r)=>{const o=n.voteCount||0;o>e&&(e=o,t=r)})),e>0?t:-1})(),l=t===s&&H.totalVotes>0;return(0,L.jsxs)("div",{style:{marginBottom:"0px"},children:[(0,L.jsxs)("div",{className:"poll-option ".concat(o?"voted":""," ").concat(i?"voting":""," ").concat(a?"expired":""," ").concat(l?"winner":""),onMouseDown:()=>!a&&Ye(t),onMouseUp:Qe,onMouseLeave:Qe,onTouchStart:()=>!a&&Ye(t),onTouchEnd:Qe,children:[(0,L.jsx)("div",{className:"poll-progress-bar",style:{width:"".concat(n,"%")}}),(0,L.jsxs)("div",{className:"poll-option-content",children:[e.image&&(0,L.jsx)("img",{src:e.image,alt:"option",className:"poll-option-image"}),(0,L.jsxs)("div",{className:"poll-option-text-container",children:[(0,L.jsx)("div",{className:"poll-option-text",children:e.text}),(0,L.jsxs)("div",{className:"poll-option-stats",children:[(0,L.jsxs)("span",{className:"poll-percentage",children:[n,"%"]}),(0,L.jsxs)("span",{className:"poll-votes",children:[e.voteCount||0," \u0635\u0648\u062a"]})]})]}),o&&(0,L.jsx)("div",{className:"poll-check-icon",children:(0,L.jsx)(j.A,{size:20})})]}),i&&(0,L.jsx)("div",{className:"voting-animation",children:(0,L.jsx)("div",{className:"voting-fill-bar",style:{width:"".concat(ee,"%")}})})]}),e.votes&&Object.keys(e.votes).length>0&&(0,L.jsxs)("div",{className:"option-voters",children:[Object.keys(e.votes).slice(0,6).map((e=>{const t=fe.find((t=>t.id===e));return t?(0,L.jsx)("img",{src:t.img,alt:t.name,className:"option-voter-avatar",onClick:t=>{t.stopPropagation(),Ne(e)},title:t.name},e):null})),Object.keys(e.votes).length>6&&(0,L.jsxs)("div",{className:"option-more-voters",children:["+",Object.keys(e.votes).length-6]})]})]},t)}))}):(0,L.jsx)("div",{className:"poll-options-error",children:(0,L.jsx)("div",{style:{padding:"20px",textAlign:"center",color:"#666"},children:"\u062e\u064a\u0627\u0631\u0627\u062a \u0627\u0644\u062a\u0635\u0648\u064a\u062a \u063a\u064a\u0631 \u0645\u062a\u0648\u0641\u0631\u0629"})})]}),(0,L.jsxs)("div",{className:"poll-footer",children:[(()=>{const e=Object.entries(Fe||{}).sort(((e,t)=>t[1]-e[1])).slice(0,3),t=e.length,n=Object.values(Fe||{}).reduce(((e,t)=>e+t),0);return(0,L.jsxs)("div",{className:"post-top-bar",children:[(0,L.jsxs)("div",{className:"top-reactions",style:{display:"flex",alignItems:"center",position:"relative",cursor:"pointer"},onClick:()=>ke({path:"posts/".concat(H.id,"/reactions")}),children:[(0,L.jsx)("span",{className:"top-reaction-icons","aria-label":"".concat(t," reaction types"),children:e.map((e=>{let[t]=e;return(0,L.jsx)("img",{src:We[t],alt:t,className:"post-reaction-icon"},t)}))}),n>0&&(0,L.jsx)("span",{className:"reaction-count",children:n}),be>0&&(0,L.jsxs)("div",{style:{position:"relative",marginInlineStart:"6px",zIndex:5,display:"flex",alignItems:"center",gap:"3px"},children:[(0,L.jsx)("span",{style:{fontSize:"10px",color:"dark"===B?"#8fa3b8":"#ccc",userSelect:"none",lineHeight:1},children:"\u2726"}),(0,L.jsx)("img",{src:"/assets/images/global/coin.png",alt:"coin",style:{width:"20px",height:"20px"},loading:"lazy",decoding:"async"}),(0,L.jsx)("span",{style:{fontSize:"13px",color:"dark"===B?"#e6eef6":"#555"},children:be})]})]}),(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",color:"#666",cursor:"pointer"},onClick:()=>Te(!0),children:[(0,L.jsx)("span",{children:"\u062a\u0639\u0644\u064a\u0642\u0627\u062a"}),(0,L.jsx)("span",{children:ve})]}),(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",color:"#666"},children:[(0,L.jsx)("span",{children:"\u0645\u0635\u0648\u062a\u0648\u0646"}),(0,L.jsx)("span",{children:pe.length})]})]})]})})(),H.multipleChoice&&(0,L.jsx)("span",{className:"poll-multiple-badge",children:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0645\u062a\u0639\u062f\u062f"})]}),(0,L.jsx)("hr",{className:"divider"}),(0,L.jsx)(M.A,{postId:V,showMenuButton:!1})]}),je&&(0,L.jsx)(f.A,{postId:H.id,isOpen:je,onClose:()=>{console.log("Closing comments modal"),Te(!1)}}),Ie&&(0,L.jsx)(D.A,{postId:H.id,onClose:()=>Re(!1)}),(0,L.jsx)(p.A,{isOpen:Se.isOpen,onConfirm:Se.onConfirm,onCancel:Se.onCancel,t
2itle:Se.title,message:Se.message,confirmText:Se.confirmText,cancelText:Se.cancelText,isDangerous:Se.isDangerous}),(0,L.jsx)(h.A,{isOpen:Ae.isOpen,title:Ae.title,message:Ae.message,type:Ae.type,onClose:()=>Ee((0,r.A)((0,r.A)({},Ae),{},{isOpen:!1}))}),_e&&(0,L.jsx)("div",{className:"voters-modal-overlay",onClick:()=>ge(!1),children:(0,L.jsxs)("div",{className:"voters-modal-content",onClick:e=>e.stopPropagation(),children:[(0,L.jsxs)("div",{className:"voters-modal-header",children:[(0,L.jsxs)("h3",{children:["\u0627\u0644\u0645\u0635\u0648\u062a\u0648\u0646 (",pe.length,")"]}),(0,L.jsx)("button",{className:"voters-modal-close",onClick:()=>ge(!1),children:"\u2715"})]}),(0,L.jsx)("div",{className:"voters-modal-body",children:fe.map((e=>(0,L.jsxs)("div",{className:"voter-modal-item",onClick:()=>{Ne(e.id),ge(!1)},children:[(0,L.jsx)("img",{src:e.img,alt:e.name,className:"voter-modal-avatar"}),(0,L.jsx)("span",{className:"voter-modal-name",children:e.name})]},e.id)))})]})}),Pe&&(0,L.jsx)(O.A,{userId:Pe,onClose:()=>Ne(null)})]})}},55119:(e,t,n)=>{var r=n(96614),o=n(30474);e.exports=function(e,t){return e&&r(t,o(t),e)}},55149:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8195);function o(e,t,n){(0,r.A)(e,t),t.set(e,n)}},55290:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(65043),o=n(97950),i=n(89927),a=n(13005),s=n(59773),l=n(54454),c=n(70579);const u=e=>{let{post:t,onClose:n}=e;const u=r.useRef(!1),d=(0,r.useRef)(!1),p=(0,r.useRef)(null),{theme:h}=(0,a.DP)();return(0,r.useEffect)((()=>(u.current=!1,window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"open"}})),p.current=(0,i.GR)("single-poll"),()=>{window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"close"}})),u.current||(0,i.tu)(p.current,!0)})),[]),(0,r.useEffect)((()=>{const e=e=>{if((0,i.G0)())return;(0,i.Vz)()===p.current&&((0,i.Xi)(),e.preventDefault(),(0,i.tu)(p.current),u.current=!0,n(),setTimeout((()=>(0,i.Ps)()),0))};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)}),[n]),(0,o.createPortal)((0,c.jsx)("div",{className:"post-modal-overlay",onMouseDown:e=>{d.current=e.target===e.currentTarget},onClick:()=>{d.current&&n(),d.current=!1},style:{padding:0,position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0,0,0,0.6)",backdropFilter:"blur(5px)",zIndex:(0,i.v7)(1e3),display:"flex",justifyContent:"center",alignItems:"center"},children:(0,c.jsxs)("div",{className:"post-modal-content",onClick:e=>e.stopPropagation(),style:{backgroundColor:"#fff",width:"100vw",height:"100vh",display:"flex",flexDirection:"column",position:"relative"},children:[(0,c.jsx)(s.A,{title:"\u0627\u0644\u062a\u0635\u0648\u064a\u062a",onBack:()=>n(),className:"dark"===h?"theme-dark-item":"theme-light-item"}),(0,c.jsx)("div",{className:"single-post-container ".concat("dark"===h?"theme-dark-space":"theme-light-space"),style:{flex:1,overflowY:"auto"},children:(0,c.jsx)(l.G,{post:t})})]})}),document.body)}},55858:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(80819),o=n(38679),i=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e}(),a="[DEFAULT]",s=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return e.prototype.get=function(e){void 0===e&&(e=a);var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new o.Deferred;this.instancesDeferred.set(t,n);try{var r=this.getOrInitializeService(t);r&&n.resolve(r)}catch(i){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t=r.__assign({identifier:a,optional:!1},e),n=t.identifier,o=t.optional,i=this.normalizeInstanceIdentifier(n);try{var s=this.getOrInitializeService(i);if(!s){if(o)return null;throw Error("Service "+this.name+" is not available")}return s}catch(l){if(o)return null;throw l}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");
2if(this.component=e,function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService(a)}catch(p){}try{for(var o=r.__values(this.instancesDeferred.entries()),i=o.next();!i.done;i=o.next()){var s=r.__read(i.value,2),l=s[0],c=s[1],u=this.normalizeInstanceIdentifier(l);try{var d=this.getOrInitializeService(u);c.resolve(d)}catch(p){}}}catch(h){t={error:h}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},e.prototype.clearInstance=function(e){void 0===e&&(e=a),this.instancesDeferred.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(r.__spread(e.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()})),e.filter((function(e){return"_delete"in e})).map((function(e){return e._delete()}))))];case 1:return t.sent(),[2]}}))}))},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.getOrInitializeService=function(e){var t=this.instances.get(e);return!t&&this.component&&(t=this.component.instanceFactory(this.container,function(e){return e===a?void 0:e}(e)),this.instances.set(e,t)),t||null},e.prototype.normalizeInstanceIdentifier=function(e){return this.component?this.component.multipleInstances?e:a:e},e}();var l=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new s(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();t.Component=i,t.ComponentContainer=l,t.Provider=s},55906:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},56095:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("thumbs-up",[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]])},56099:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
2],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},56173:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56174:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},56200:(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var r=n(22555),o=n(65043),i=n(97950),a=n(75439),s=n(40117),l=n(47174),c=n(30590),u=n(89927),d=n(13005),p=n(10624),h=n(9700),f=n(95577),m=n(65871),_=n(81518),g=n(39658),v=n(65505),y=n(93528),b=n(31837),w=n(9855),x=n(72313),k=n(28006),S=n(61064),C=n(65727),A=n(14918),E=n(77784);const j=(0,E.A)("heart-off",[["path",{d:"M10.5 4.893a5.5 5.5 0 0 1 1.091.931.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 1.872-1.002 3.356-2.187 4.655",key:"1inpfl"}],["path",{d:"m16.967 16.967-3.459 3.346a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 2.747-4.761",key:"vbc6x7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var T=n(77819),P=n(37475),N=n(35087),I=n(94651),R=n(71482);const O=(0,E.A)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);var D=n(37719),M=n(66006),L=n(7540),F=n(67586),z=n(70579);const B=e=>["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","super_admin"].includes(e),q=e=>["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","super_admin"].includes(e),U={post:"blogs",video:"videos",poll:"polls",quiz:"quizes",newspaper:"newspapers"},H=e=>{let{item:t,collection:n="posts",currentUserId:E,userRole:H,onClose:W,onDeleted:V,onUpdated:K,onEdit:G,listId:Y,listOwnerId:Q,onAddToList:X,onRemoveFromList:$,showAddToList:J=!0,reportTargetType:Z="post"}=e;const ee=(0,a.Zp)(),{theme:te}=(0,d.DP)(),{t:ne,resolvedDirection:re}=(0,p.o)(),oe=E||(0,c.WR)(),{categories:ie}=(0,g.Ay)(),ae=(0,o.useMemo)((()=>ie.filter((e=>{var t;return"admin"===(null===(t=e.verification)||void 0===t?void 0:t.type)&&!e.disabled}))),[ie]),[se,le]=(0,o.useState)(t),ce=oe&&((null===se||void 0===se?void 0:se.createdBy)===oe||(null===se||void 0===se?void 0:se.created_by)===oe),ue=["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0634\u0631\u0641 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","super_admin"].includes(H);const[de,pe]=(0,o.useState)({isOpen:!1,title:"",message:"",action:null,isDangerous:!1}),[he,fe]=(0,o.useState)({isOpen:!1,title:"",message:"",type:"success",closeMenuAfterClose:!1}),[me,_e]=(0,o.useState)(!1),[ge,ve]=(0,o.useState)({isOpen:!1,targetType:Z,messageText:""}),[ye,be]=(0,o.useState)(!1),[we,xe]=(0,o.useState)(null),[ke,Se]=(0,o.useState)(!1),Ce=(0,o.useMemo)((()=>(0,u.v7)(2e3)),[]);(0,o.useEffect)((()=>{le(t)}),[t]),(0,o.useEffect)((()=>{if(!oe||null===se||void 0===se||!se.id)return;(async()=>{try{const e=s.firebase.database().ref("kunaiu_bank/".concat(oe,"/saved_posts/").concat(se.id)),t=await e.once("value");_e(t.exists())}catch(e){console.error("UnifiedPostMenu checkSaved error:",e)}})()}),[null===se||void 0===se?void 0:se.id,oe]),(0,o.useEffect)((()=>{let e=!1;if(oe&&null!==se&&void 0!==se&&se.team)return(0,f.jo)(se.team,oe).then((t=>{e||Se(!!t.removeForeignPosts)})),()=>{e=!0};Se(!1)}),[null===se||void 0===se?void 0:se.team,oe]);const Ae=async e=>{null!==se&&void 0!==se&&se.id&&(await s.firebase.database().ref("".concat(n,"/").concat(se.id)).update(e),await l.A.updatePostInCache(se.id,e),le((t=>t?(0,r.A)((0,r.A)({},t),e):t)),window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:se.id,updates:e}})),null===K||void 0===K||K(se.id,e))},Ee=function(e,t){fe({isOpen:!0,title:e,message:t,type:"success",closeMenuAfterClose:!(arguments.length>2&&void 0!==arguments[2])||arguments[2]})},je=(e,t)=>
2{fe({isOpen:!0,title:e,message:t,type:"error",closeMenuAfterClose:!1})},Te=async()=>{if(!oe)return void ee("/login");const e=s.firebase.database().ref("kunaiu_bank/".concat(oe,"/saved_posts/").concat(se.id));try{if((await e.once("value")).exists()){await e.remove(),_e(!1);try{const e="kunaiu_saved_posts_".concat(oe),t=JSON.parse(localStorage.getItem(e)||"{}");delete t[se.id],localStorage.setItem(e,JSON.stringify(t))}catch(t){console.error("UnifiedPostMenu save cache cleanup error:",t)}window.dispatchEvent(new CustomEvent("savedPostChanged",{detail:{postId:se.id,saved:!1,userId:oe}})),Ee(ne("unified_post_menu_done"),ne("unified_post_menu_post_removed_from_saved"))}else{const n=Date.now();await e.set({savedAt:n}),_e(!0);try{const e="kunaiu_saved_posts_".concat(oe),t=JSON.parse(localStorage.getItem(e)||"{}");t[se.id]={savedAt:n},localStorage.setItem(e,JSON.stringify(t))}catch(t){console.error("UnifiedPostMenu save cache set error:",t)}window.dispatchEvent(new CustomEvent("savedPostChanged",{detail:{postId:se.id,saved:!0,userId:oe,savedAt:n}})),Ee(ne("unified_post_menu_done"),ne("unified_post_menu_post_saved"))}}catch(t){console.error("Error saving post:",t),je(ne("unified_post_menu_error"),ne("unified_post_menu_save_error"))}},Pe=async()=>{const e="".concat(window.location.origin,"/post/").concat(se.id);try{await navigator.clipboard.writeText(e),t=ne("unified_post_menu_copied_title"),n=ne("unified_post_menu_link_copied"),r=e,fe({isOpen:!0,title:t,type:"success",message:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("div",{children:n}),(0,z.jsx)("div",{style:{marginTop:"8px",wordBreak:"break-all",fontFamily:"monospace",background:"rgba(0,0,0,0.04)",padding:"6px 8px",borderRadius:"6px"},children:r})]})})}catch(o){console.error("Error copying to clipboard:",o),je(ne("unified_post_menu_error"),ne("unified_post_menu_copy_link_failed"))}var t,n,r},Ne=()=>{if(X)return X(),void(null===W||void 0===W||W());je(ne("unified_post_menu_not_available"),ne("unified_post_menu_add_to_list_unavailable"))},Ie=()=>{if($)return $(),void(null===W||void 0===W||W());je(ne("unified_post_menu_not_available"),ne("unified_post_menu_remove_from_list_unavailable"))},Re=()=>{null!==se&&void 0!==se&&se.team&&pe({isOpen:!0,title:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0641\u0631\u064a\u0642",message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0632\u0627\u0644\u0629 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0641\u0631\u064a\u0642\u061f \u0633\u064a\u0628\u0642\u0649 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646\u0634\u0648\u0631\u0627\u064b \u0639\u0627\u0645\u0627\u064b \u0648\u0644\u0646 \u064a\u0638\u0647\u0631 \u0636\u0645\u0646 \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0641\u0631\u064a\u0642 \u0628\u0639\u062f \u0627\u0644\u0622\u0646.",isDangerous:!0,action:async()=>{try{await(0,f.U)(se.team,se.id,n),await l.A.updatePostInCache(se.id,{team:null}),le((e=>e?(0,r.A)((0,r.A)({},e),{},{team:null}):e)),Se(!1),window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:se.id,updates:{team:null}}})),null===K||void 0===K||K(se.id,{team:null}),Ee(ne("unified_post_menu_done"),"\u062a\u0645\u062a \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0641\u0631\u064a\u0642")}catch(e){console.error("UnifiedPostMenu remove from team error:",e),je(ne("unified_post_menu_error"),"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0641\u0631\u064a\u0642")}}})},Oe=()=>{be(!0)},De=()=>{const e=null===se||void 0===se?void 0:se.achievementGrant;e&&pe({isOpen:!0,title:"\u0625\u0632\u0627\u0644\u0629 \u0646\u0642\u0637\u0629 \u0627\u0644\u0625\u0646\u062c\u0627\u0632",message:'\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0632\u0627\u0644\u0629 \u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 "'.concat(e.categoryLabel,'" \u0627\u0644\u0645\u0645\u0646\u0648\u062d\u0629 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u061f'),isDangerous:!0,action:async()=>{try{const t=se.createdBy||se.created_by;t&&await s.firebase.database().ref("kunaiu_bank/".concat(t,"/talents/").concat(e.category)).transaction((e=>Math.max(0,(e||0)-1))),await Ae({achievementGrant:null}),Ee(ne("unified_post_menu_done"),"\u062a\u0645 \u0625\u0632\u0627\u0644\u0629 \u0646\u0642\u0637\u0629 \u0627\u0644\u0625\u0646\u062c\u0627\u0632 \u0645\u0646 \u0627\u0644\u0645\u0646\u0634\u0648\u0631")}catch(t){console.error("UnifiedPostMenu remove achievement error:",t),je(ne("unified_post_menu_error"),"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0625\u0632\u0627\u0644\u0629 \u0646\u0642\u0637\u0629 \u0627\u0644\u0625\u0646\u062c\u0627\u0632")}}})},Me=e=>{null===e||void 0===e||e()},Le=J&&X,Fe=Y&&Q&&oe&&String(Q)===String(oe)&&$;return(0,i.createPortal)((0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("div",{className:"menu-portal-backdrop",onClick:W,style:{zIndex:Ce-1,position:"fixed",inset:0,background:"rgba(0,0,0,0.4)"}}),(0,z.jsxs)("div",{className:"post_menu_options ".concat("dark"===te?"theme-dark":""),role:"dialog","aria-modal":"true",style:{zIndex:Ce,position:"fixed",bottom:0,left:0,right:0,width:"100%",borderRadius:"20px 20px 0 0",paddingBottom:"30px",opacity:1,animation:"sheetUp 240ms cubic-bezier(.2,.9,.2,1) forwards"},children:[ce&&!t.deleted&&(0,z.jsxs)("div",{className:"menu-item edit-item",onClick:()=>{"function"===typeof G?(null===W||void 0===W||W(),G(t)):(sessionStorage.setItem("editingPost",JSON.stringify(t)),ee("/create?edit=".concat(t.id)),null===W||void 0===W||W())},children:[(0,z.jsx)(v.A,{size:18})," ",ne("unified_post_menu_edit_post")]}),(0,z.jsxs)("div",{className:"menu-item",onClick:()=>Me(Te),children:[(0,z.jsx)(y.A,{size:18})," ",ne(me?"unified_post_menu_remove_from_saved":"unified_post_menu_save_post")]}),Le&&(0,z.jsxs)("div",{className:"menu-item",onClick:()=>Me(Ne),children:[(0,z.jsx)(b.A,{size:18})," ",ne("unified_post_menu_add_to_list")]}),Fe&&(0,z.jsxs)("div",{className:"menu-item danger-item delete-item",onClick:()=>Me(Ie),style:{color:"#e6594c"},children:[(0,z.jsx)(w.A,{size:18})," ",ne("unified_post_menu_remove_from_list")]}),(0,z.jsxs)("div",{className:"menu-item",onClick:()=>Me(Pe),children:[(0,z.jsx)(x.A,{size:18})," ",ne("unified_post_menu_copy_link")]}),ce&&(0,z.jsxs)("div",{className:"menu-item",onClick:()=>{pe({isOpen:!0,title:t.pinned?ne("unified_post_menu_unpin"):ne("unified_post_menu_pin_post"),message:t.pinned?ne("unified_post_menu_unpin_message"):ne("unified_post_menu_pin_message"),isDangerous:!1,action:async()=>{try{await Ae({pinned:!t.pinned}),Ee(ne("unified_post_menu_done"),t.pinned?ne("unified_post_menu_post_unpinned"):ne("unified_post_menu_post_pinned"))}catch(e){console.error("UnifiedPostMenu toggle pin error:",e),je(ne("unified_post_menu_error"),ne("unified_post_menu_toggle_pin_error"))}}})},children:[(0,z.jsx)(k.A,{size:18})," ",t.pinned?ne("unified_post_menu_unpin"):ne("unified_post_menu_pin_post")]}),ce&&(0,z.jsxs)("div",{className:"menu-item",onClick:()=>{const e=!0===(null===se||void 0===se?void 0:se.allowComments);
2pe({isOpen:!0,title:ne(e?"unified_post_menu_close_comments":"unified_post_menu_open_comments"),message:ne("unified_post_menu_toggle_comments_message",{action:ne(e?"unified_post_menu_disable_comments":"unified_post_menu_enable_comments")}),isDangerous:!1,action:async()=>{try{const t=!e;await s.firebase.database().ref("posts/".concat(se.id,"/allowComments")).set(t),await l.A.updatePostInCache(se.id,{allowComments:t}),le((e=>e?(0,r.A)((0,r.A)({},e),{},{allowComments:t}):e)),window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:se.id,updates:{allowComments:t}}})),null===K||void 0===K||K(se.id,{allowComments:t}),Ee(ne("unified_post_menu_done"),ne(e?"unified_post_menu_comments_closed":"unified_post_menu_comments_opened"))}catch(t){console.error("UnifiedPostMenu toggle comments error:",t),je(ne("unified_post_menu_error"),ne("unified_post_menu_toggle_comments_error"))}}})},children:[!1===t.allowComments?(0,z.jsx)(S.A,{size:18}):(0,z.jsx)(C.A,{size:18}),!1===t.allowComments?ne("unified_post_menu_open_comments"):ne("unified_post_menu_close_comments")]}),ce&&(0,z.jsxs)("div",{className:"menu-item",onClick:()=>{const e=!0===(null===se||void 0===se?void 0:se.allowReactions);pe({isOpen:!0,title:ne(e?"unified_post_menu_close_reactions":"unified_post_menu_open_reactions"),message:ne("unified_post_menu_toggle_reactions_message",{action:ne(e?"unified_post_menu_disable_reactions":"unified_post_menu_enable_reactions")}),isDangerous:!1,action:async()=>{try{const t=!e;await s.firebase.database().ref("posts/".concat(se.id,"/allowReactions")).set(t),await l.A.updatePostInCache(se.id,{allowReactions:t}),le((e=>e?(0,r.A)((0,r.A)({},e),{},{allowReactions:t}):e)),window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:se.id,updates:{allowReactions:t}}})),null===K||void 0===K||K(se.id,{allowReactions:t}),Ee(ne("unified_post_menu_done"),ne(e?"unified_post_menu_reactions_closed":"unified_post_menu_reactions_opened"))}catch(t){console.error("UnifiedPostMenu toggle reactions error:",t),je(ne("unified_post_menu_error"),ne("unified_post_menu_toggle_reactions_error"))}}})},children:[!1===t.allowReactions?(0,z.jsx)(A.A,{size:18}):(0,z.jsx)(j,{size:18}),!1===t.allowReactions?ne("unified_post_menu_open_reactions"):ne("unified_post_menu_close_reactions")]}),B(H)&&(0,z.jsxs)("div",{className:"menu-item",onClick:()=>{const e=!!se.is_advertisement;pe({isOpen:!0,title:ne(e?"unified_post_menu_cancel_ad":"unified_post_menu_convert_to_ad"),message:ne(e?"unified_post_menu_cancel_ad_message":"unified_post_menu_convert_to_ad_message"),isDangerous:!1,action:async()=>{try{await Ae({is_advertisement:!e,advertisement_timestamp:e?null:Date.now()}),Ee(ne("unified_post_menu_done"),ne(e?"unified_post_menu_ad_cancelled":"unified_post_menu_post_converted_to_ad"))}catch(t){console.error("UnifiedPostMenu toggle ad error:",t),je(ne("unified_post_menu_error"),ne("unified_post_menu_toggle_ad_error"))}}})},children:[(0,z.jsx)(T.A,{size:18})," ",t.is_advertisement?ne("unified_post_menu_cancel_ad"):ne("unified_post_menu_convert_to_ad")]}),ce&&(0,z.jsxs)("div",{className:"menu-item delete-item",onClick:()=>{pe({isOpen:!0,title:ne("unified_post_menu_delete_post"),message:ne("unified_post_menu_delete_post_message"),isDangerous:!0,action:async()=>{try{await(0,F.SP)(se),await s.firebase.database().ref("".concat(n,"/").concat(se.id)).update({deleted:!0,deletedAt:Date.now(),deletedBy:oe}),await s.firebase.database().ref("deleted/".concat(se.id)).set(!0);const e=U[se.type];e&&await s.firebase.database().ref("".concat(e,"/").concat(se.id)).remove(),await l.A.removePostFromCache(se.id);const t=se.createdBy||se.created_by;t&&(0,L.lt)(t,se.type||"post",se.timestamp||se.createdAt||null).catch((()=>{})),window.dispatchEvent(new CustomEvent("postDeleted",{detail:{postId:se.id}})),null===V||void 0===V||V(se.id),null===W||void 0===W||W()}catch(e){console.error("UnifiedPostMenu delete error:",e),je(ne("unified_post_menu_error"),ne("unified_post_menu_delete_post_error"))}}})},children:[(0,z.jsx)(w.A,{size:18})," ",ne("unified_post_menu_delete_post")]}),ue&&!ce&&!t.deleted&&(0,z.jsxs)("div",{className:"menu-item block-item",onClick:()=>{const e=!0===se.blocked;pe({isOpen:!0,title:ne(e?"unified_post_menu_unblock_post":"unified_post_menu_block_post"),message:ne(e?"unified_post_menu_unblock_post_message":"unified_post_menu_block_post_message"),isDangerous:!0,action:async()=>{try{const o=!e;if(await s.firebase.database().ref("".concat(n,"/").concat(se.id)).update({blocked:o,blocked_at:o?Date.now():null}),se.createdBy)try{await(0,M.CG)(se.createdBy,o?"ban":"unban","post",ne(o?"unified_post_menu_block_notification":"unified_post_menu_unblock_notification"),"post",se.id,null,null,oe)}catch(t){console.error("UnifiedPostMenu block notification error:",t)}await l.A.updatePostInCache(se.id,{blocked:o,blocked_at:o?Date.now():null}),le((e=>e?(0,r.A)((0,r.A)({},e),{},{blocked:o,blocked_at:o?Date.now():null}):e)),window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:se.id,updates:{blocked:o}}})),null===K||void 0===K||K(se.id,{blocked:o,blocked_at:o?Date.now():null}),Ee(ne("unified_post_menu_done"),ne(o?"unified_post_menu_post_blocked":"unified_post_menu_post_unblocked"))}catch(o){console.error("UnifiedPostMenu block error:",o),je(ne("unified_post_menu_error"),ne("unified_post_menu_toggle_block_error"))}}})},children:[(0,z.jsx)(P.A,{size:18})," ",t.blocked?ne("unified_post_menu_unblock_post"):ne("unified_post_menu_block_post")]}),ue&&!t.deleted&&(0,z.jsxs)("div",{className:"menu-item",onClick:()=>{const e=!0===se.hiddenFromFeed;pe({isOpen:!0,title:ne(e?"unified_post_menu_show_in_feed":"unified_post_menu_hide_from_feed"),message:ne(e?"unified_post_menu_show_in_feed_message":"unified_post_menu_hide_from_feed_message"),isDangerous:!e,action:async()=>{try{const t=!e;await s.firebase.database().ref("".concat(n,"/").concat(se.id)).update({hiddenFromFeed:t,hiddenFromFeedAt:t?Date.now():null}),await l.A.updatePostInCache(se.id,{hiddenFromFeed:t,hiddenFromFeedAt:t?Date.now():null}),le((e=>e?(0,r.A)((0,r.A)({},e),{},{hiddenFromFeed:t}):e)),window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:se.id,updates:{hiddenFromFeed:t}}})),null===K||void 0===K||K(se.id,{hiddenFromFeed:t}),Ee(ne("unified_post_menu_done"),ne(t?"unified_post_menu_post_hidden_from_feed":"unified_post_menu_post_shown_in_feed"))}catch(t){console.error("UnifiedPostMenu toggle hide from feed error:",t),je(ne("unified_post_menu_error"),ne("unified_post_menu_toggle_hide_from_feed_error"))}}})},style:{color:se.hiddenFromFeed?"#22c55e":"#f59e0b"},children:[se.hiddenFromFeed?(0,z.jsx)(N.A,{size:18}):(0,z.jsx)(I.A,{size:18}),se.hiddenFromFeed?ne("unified_post_menu_show_in_feed"):ne("unified_post_menu_hide_from_feed")]}),ke&&(null===se||void 0===se?void 0:se.team)&&!t.deleted&&(0,z.jsxs)("div",{className:"menu-item danger-item",onClick:()=>Me(Re),style:{color:"#f59e0b"},children:[(0,z.jsx)(R.A,{size:18})," \u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0641\u0631\u064a\u0642"]}),q(H)&&!t.deleted&&(se.achievementGrant?(0,z.jsxs)("div",{className:"menu-item danger-item",onClick:()=>Me(De),style:{color:"#e6594c"},children:[(0,z.jsx)(O,{size:18})," \u0625\u0632\u0627\u0644\u0629 \u0646\u0642\u0637\u0629 \u0627\u0644\u0625\u0646\u062c\u0627\u0632 (",se.achievementGrant.categoryLabel,")"]}):(0,z.jsxs)("div",{className:"menu-item",onClick:()=>Me(Oe),children:[(0,z.jsx)(O,{size:18})," \u0645\u0646\u062d \u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632"]})),!ce&&!ue&&(0,z.jsxs)("div",{className:"menu-item report-item",onClick:()=>{ve({isOpen:!0,targetType:Z,messageText:""})},children:[(0,z.jsx)(D.A,{size:18})," ",ne("unified_post_menu_report_content")]})]}),ge.isOpen&&(0,i.createPortal)((0,z.jsx)("div",{style:{position:"fixed",inset:0,zIndex:Ce+2,background:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:16},onClick:()=>ve({isOpen:!1,targetType:"post",messageText:""}),children:(0,z.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{width:"100%",maxWidth:420,borderRadius:20,background:"dark"===te?"#111827":"#ffffff",color:"dark"===te?"#e5e7eb":"#111827",boxShadow:"0 18px 60px rgba(0,0,0,0.35)",padding:18,direction:re},children:[(0,z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:12}
2,children:[(0,z.jsx)("div",{style:{width:42,height:42,borderRadius:12,background:"rgba(255, 84, 84, 0.12)",display:"flex",alignItems:"center",justifyContent:"center",color:"#ff5454"},children:(0,z.jsx)(D.A,{size:20})}),(0,z.jsxs)("div",{children:[(0,z.jsx)("div",{style:{fontSize:18,fontWeight:800},children:ne("unified_post_menu_report_dialog_heading")}),(0,z.jsx)("div",{style:{fontSize:13,opacity:.75},children:ne("unified_post_menu_report_dialog_subtitle")})]})]}),(0,z.jsx)("label",{style:{display:"block",fontSize:13,fontWeight:700,marginBottom:6},children:ne("unified_post_menu_report_details_label")}),(0,z.jsx)("textarea",{value:ge.messageText,onChange:e=>ve((t=>(0,r.A)((0,r.A)({},t),{},{messageText:e.target.value}))),rows:5,placeholder:ne("unified_post_menu_report_details_placeholder"),style:{width:"100%",resize:"vertical",padding:"12px 14px",borderRadius:12,border:"dark"===te?"1px solid #334155":"1px solid #d1d5db",background:"dark"===te?"#0f172a":"#fff",color:"inherit",marginBottom:16,boxSizing:"border-box"}}),(0,z.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,z.jsx)("button",{onClick:()=>ve({isOpen:!1,targetType:"post",messageText:""}),style:{flex:1,border:"none",borderRadius:12,padding:"12px 14px",cursor:"pointer",background:"dark"===te?"#334155":"#e5e7eb",color:"inherit",fontWeight:700},children:ne("unified_post_menu_cancel")}),(0,z.jsx)("button",{onClick:async()=>{if(!oe)return void ee("/login");if(null===se||void 0===se||!se.id)return;const e=ge.messageText.trim();if(e)try{const t=await l.A.getProfile(oe),n=(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t?void 0:t.displayName)||"",r=(null===t||void 0===t?void 0:t.tag)||"";if(!n||!r)return void ee("/create-profile");await(0,h.k1)({targetType:ge.targetType,targetId:se.id,postId:se.id,reportedUserId:se.createdBy||se.created_by||null,reporterId:oe,reporterName:n,reporterTag:r,messageText:e,contentTitle:se.title||se.name||"",contentText:"string"===typeof se.content?se.content:"",source:"UnifiedPostMenu"}),ve({isOpen:!1,targetType:"post",messageText:""}),fe({isOpen:!0,title:ne("unified_post_menu_reported_title"),message:ne("unified_post_menu_report_sent_message"),type:"success",closeMenuAfterClose:!0})}catch(t){if(console.error("UnifiedPostMenu report error:",t),"missing_reporter"===(null===t||void 0===t?void 0:t.message))return void ee("/login");je(ne("unified_post_menu_error"),ne("unified_post_menu_report_error"))}else je(ne("unified_post_menu_warning"),ne("unified_post_menu_report_details_required"))},style:{flex:1,border:"none",borderRadius:12,padding:"12px 14px",cursor:"pointer",background:"#ff5454",color:"#fff",fontWeight:800},children:ne("unified_post_menu_send_report")})]})]})}),document.body),ye&&(0,i.createPortal)((0,z.jsx)("div",{style:{position:"fixed",inset:0,zIndex:Ce+2,background:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:16},onClick:()=>!we&&be(!1),children:(0,z.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{width:"100%",maxWidth:420,maxHeight:"80vh",overflowY:"auto",borderRadius:20,background:"dark"===te?"#111827":"#ffffff",color:"dark"===te?"#e5e7eb":"#111827",boxShadow:"0 18px 60px rgba(0,0,0,0.35)",padding:18,direction:re},children:[(0,z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14}
2,children:[(0,z.jsx)("div",{style:{width:42,height:42,borderRadius:12,background:"rgba(245, 158, 11, 0.14)",display:"flex",alignItems:"center",justifyContent:"center",color:"#f59e0b"},children:(0,z.jsx)(O,{size:20})}),(0,z.jsxs)("div",{children:[(0,z.jsx)("div",{style:{fontSize:18,fontWeight:800},children:"\u0645\u0646\u062d \u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632"}),(0,z.jsx)("div",{style:{fontSize:13,opacity:.75},children:"\u0627\u062e\u062a\u0631 \u0641\u0626\u0629 \u0627\u0644\u0645\u0648\u0647\u0628\u0629 \u2014 \u0646\u0642\u0637\u0629 \u062a\u0648\u062b\u064a\u0642 \u064a\u062f\u0648\u064a \u0648\u0627\u062d\u062f\u0629 \u0641\u0642\u0637 \u0644\u0643\u0644 \u0645\u0646\u0634\u0648\u0631"})]})]}),(0,z.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:ae.map((e=>(0,z.jsxs)("button",{disabled:!!we,onClick:()=>(async e=>{if(null===se||void 0===se||!se.id||we)return;const t=ae.find((t=>t.key===e));if(!t)return;const n=se.createdBy||se.created_by;if(n)if(se.achievementGrant)je(ne("unified_post_menu_error"),"\u062a\u0645 \u0645\u0646\u062d \u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0633\u0628\u0642\u0627\u064b");else{xe(e);try{const r=s.firebase.database();await r.ref("kunaiu_bank/".concat(n,"/talents/").concat(e)).transaction((e=>(e||0)+1));const o={category:e,categoryLabel:t.label,grantedBy:oe,grantedAt:Date.now()};await Ae({achievementGrant:o}),be(!1),Ee(ne("unified_post_menu_done"),'\u062a\u0645 \u0645\u0646\u062d \u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 "'.concat(t.label,'" \u0644\u0635\u0627\u062d\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631'))}catch(r){console.error("UnifiedPostMenu grant achievement error:",r),je(ne("unified_post_menu_error"),"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0645\u0646\u062d \u0646\u0642\u0637\u0629 \u0627\u0644\u0625\u0646\u062c\u0627\u0632")}finally{xe(null)}}else je(ne("unified_post_menu_error"),"\u062a\u0639\u0630\u0631 \u062a\u062d\u062f\u064a\u062f \u0635\u0627\u062d\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631")})(e.key),style:{display:"flex",alignItems:"center",gap:12,width:"100%",border:"none",borderRadius:14,padding:"12px 14px",cursor:we?"default":"pointer",background:"dark"===te?"#1f2937":"#f3f4f6",color:"inherit",textAlign:"right",opacity:we&&we!==e.key?.5:1},children:[(0,z.jsx)("span",{style:{width:38,height:38,borderRadius:10,flexShrink:0,background:e.gradient,display:"flex",alignItems:"center",justifyContent:"center",fontSize:18},children:e.emoji}),(0,z.jsxs)("span",{style:{flex:1},children:[(0,z.jsx)("div",{style:{fontWeight:700,fontSize:14},children:e.label}),(0,z.jsx)("div",{style:{fontSize:12,opacity:.65},children:e.unitLabel})]}),we===e.key&&(0,z.jsx)("span",{style:{fontSize:12,opacity:.7},children:"\u062c\u0627\u0631\u0650 \u0627\u0644\u0625\u0631\u0633\u0627\u0644..."})]},e.key)))}),(0,z.jsx)("button",{onClick:()=>be(!1),disabled:!!we,style:{marginTop:14,width:"100%",border:"none",borderRadius:12,padding:"12px 14px",cursor:"pointer",background:"dark"===te?"#334155":"#e5e7eb",color:"inherit",fontWeight:700},children:ne("unified_post_menu_cancel")})]})}),document.body),(0,z.jsx)(m.A,{isOpen:de.isOpen,title:de.title,message:de.message,isDangerous:de.isDangerous,onConfirm:async()=>{const e=de.action;pe((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1}))),await(null===e||void 0===e?void 0:e())},onCancel:()=>pe((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1})))}),(0,z.jsx)(_.A,{isOpen:he.isOpen,title:he.title,message:he.message,type:he.type,onClose:()=>{const e=he.closeMenuAfterClose;fe((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1,closeMenuAfterClose:!1}))),e&&(null===W||void 0===W||W())}})]}),document.body)}},56326:(e,t,n)=>{var r=n(48895),o=n(85990),i=n(69621),a=n(57828),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},56327:()=>{},56380:function(e,t,n){e.exports=function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}});return t.Decryptor=n,t}(),e.mode.OFB}(n(84488),n(52238))},56434:(e,t,n)=>{var r=n(97132);e.exports=function(e){return r(e,5)}}
2,56552:(e,t,n)=>{var r=n(37105),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},56804:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]])},56832:(e,t,n)=>{e=n.nmd(e);var r=n(37105),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},56874:(e,t,n)=>{var r=n(12622);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},57061:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.Hasher,r=t.x64,o=r.Word,i=r.WordArray,a=t.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],d=n[6],p=n[7],h=r.high,f=r.low,m=o.high,_=o.low,g=i.high,v=i.low,y=a.high,b=a.low,w=s.high,x=s.low,k=u.high,S=u.low,C=d.high,A=d.low,E=p.high,j=p.low,T=h,P=f,N=m,I=_,R=g,O=v,D=y,M=b,L=w,F=x,z=k,B=S,q=C,U=A,H=E,W=j,V=0;V<80;V++){var K,G,Y=c[V];if(V<16)G=Y.high=0|e[t+2*V],K=Y.low=0|e[t+2*V+1];else{var Q=c[V-15],X=Q.high,$=Q.low,J=(X>>>1|$<<31)^(X>>>8|$<<24)^X>>>7,Z=($>>>1|X<<31)^($>>>8|X<<24)^($>>>7|X<<25),ee=c[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[V-7],ae=ie.high,se=ie.low,le=c[V-16],ce=le.high,ue=le.low;G=(G=(G=J+ae+((K=Z+se)>>>0<Z>>>0?1:0))+re+((K+=oe)>>>0<oe>>>0?1:0))+ce+((K+=ue)>>>0<ue>>>0?1:0),Y.high=G,Y.low=K}
2var de,pe=L&z^~L&q,he=F&B^~F&U,fe=T&N^T&R^N&R,me=P&I^P&O^I&O,_e=(T>>>28|P<<4)^(T<<30|P>>>2)^(T<<25|P>>>7),ge=(P>>>28|T<<4)^(P<<30|T>>>2)^(P<<25|T>>>7),ve=(L>>>14|F<<18)^(L>>>18|F<<14)^(L<<23|F>>>9),ye=(F>>>14|L<<18)^(F>>>18|L<<14)^(F<<23|L>>>9),be=l[V],we=be.high,xe=be.low,ke=H+ve+((de=W+ye)>>>0<W>>>0?1:0),Se=ge+me;H=q,W=U,q=z,U=B,z=L,B=F,L=D+(ke=(ke=(ke=ke+pe+((de+=he)>>>0<he>>>0?1:0))+we+((de+=xe)>>>0<xe>>>0?1:0))+G+((de+=K)>>>0<K>>>0?1:0))+((F=M+de|0)>>>0<M>>>0?1:0)|0,D=R,M=O,R=N,O=I,N=T,I=P,T=ke+(_e+fe+(Se>>>0<ge>>>0?1:0))+((P=de+Se|0)>>>0<de>>>0?1:0)|0}f=r.low=f+P,r.high=h+T+(f>>>0<P>>>0?1:0),_=o.low=_+I,o.high=m+N+(_>>>0<I>>>0?1:0),v=i.low=v+O,i.high=g+R+(v>>>0<O>>>0?1:0),b=a.low=b+M,a.high=y+D+(b>>>0<M>>>0?1:0),x=s.low=x+F,s.high=w+L+(x>>>0<F>>>0?1:0),S=u.low=S+B,u.high=k+z+(S>>>0<B>>>0?1:0),A=d.low=A+U,d.high=C+q+(A>>>0<U>>>0?1:0),j=p.low=j+W,p.high=E+H+(j>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512}(n(84488),n(59749))},57514:(e,t,n)=>{"use strict";t.H8=void 0;var r=c(n(20218)),o=c(n(29144)),i=c(n(79211)),a=c(n(4157)),s=c(n(4973)),l=c(n(97642));function c(e){return e&&e.__esModule?e:{default:e}}a.default,t.H8=a.default,s.default,l.default;var u=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,r.default)(n),l=(0,o.default)(e,s);return(0,i.default)(l)};t.Ay=u},57828:e=>{e.exports=function(){return[]}},57856:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},57887:(e,t,n)=>{var r=n(5791),o=n(47574),i=n(56832),a=i&&i.isMap,s=a?o(a):r;e.exports=s},57922:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]])},58114:e=>{e.exports=function(e,t){return e.has(t)}},58122:(e,t,n)=>{var r=n(46686),o=n(36140),i=n(43516),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},58527:()=>{},59395:(e,t,n)=>{var r=n(4262),o=n(69621),i=n(28673);e.exports=function(e){return r(e,i,o)}},59570:(e,t,n)=>{"use strict";n.d(t,{N:()=>w});var r=n(70579),o=n(65043),i=n(2190),a=n(34930),s=n(93110),l=n(22555),c=n(9674),u=n(8676),d=n(91051);function p(e,t){if("function"===typeof e)return e(t);null!==e&&void 0!==e&&(e.current=t)}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.useCallback(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1;const r=t.map((t=>{const r=p(t,e);return n||"function"!==typeof r||(n=!0),r}));if(n)return()=>{for(let e=0;e<r.length;e++){const n=r[e];"function"===typeof n?n():p(t[e],null)}}}}(...t),t)}class f extends o.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if((0,u.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){const e=t.offsetParent,n=(0,u.s)(e)&&e.offsetWidth||0,r=(0,u.s)(e)&&e.offsetHeight||0,o=getComputedStyle(t),i=this.props.sizeRef.current;i.height=parseFloat(o.height),i.width=parseFloat(o.width),i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left,i.bottom=r-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function m(e){var t,n;let{children:i,isPresent:a,anchorX:s,anchorY:l,root:c,pop:u}=e;const p=(0,o.useId)(),m=(0,o.useRef)(null),_=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=(0,o.useContext)(d.Q),v=null!==(t=null===(n=i.props)||void 0===n?void 0:n.ref)&&void 0!==t?t:null===i||void 0===i?void 0:i.ref,y=h(m,v);return(0,o.useInsertionEffect)((()=>{const{width:e,height:t,top:n,left:r,right:o,bottom:i}=_.current;if(a||!1===u||!m.current||!e||!t)return;const d="left"===s?"left: ".concat(r):"right: ".concat(o),h="bottom"===l?"bottom: ".concat(i):"top: ".concat(n);m.current.dataset.motionPopId=p;const f=document.createElement("style");g&&(f.nonce=g);const v=null!==c&&void 0!==c?c:document.head;return v.appendChild(f),f.sheet&&f.sheet.insertRule('\n          [data-motion-pop-id="'.concat(p,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat(d,"px !important;\n            ").concat(h,"px !important;\n          }\n        ")),()=>{var e;null===(e=m.current)||void 0===e||e.removeAttribute("data-motion-pop-id"),v.contains(f)&&v.removeChild(f)}}),[a]),(0,r.jsx)(f,{isPresent:a,childRef:m,sizeRef:_,pop:u,children:!1===u?i:o.cloneElement(i,{ref:y})})}const _=e=>{let{children:t,initial:n,isPresent:i,onExitComplete:s,custom:u,presenceAffectsLayout:d,mode:p,anchorX:h,anchorY:f,root:_}=e;const v=(0,a.M)(g),y=(0,o.useId)();let b=!0,w=(0,o.useMemo)((()=>(b=!1,{id:y,initial:n,isPresent:i,custom:u,onExitComplete:e=>{v.set(e,!0);for(const t of v.values())if(!t)return;s&&s()},register:e=>(v.set(e,!1),()=>v.delete(e))})),[i,v,s]);return d&&b&&(w=(0,l.A)({},w)),(0,o.useMemo)((()=>{v.forEach(((e,t)=>v.set(t,!1)))}),[i]),o.useEffect((()=>{!i&&!v.size&&s&&s()}),[i]),t=(0,r.jsx)(m,{pop:"popLayout"===p,isPresent:i,anchorX:h,anchorY:f,root:_,children:t}),(0,r.jsx)(c.t.Provider,{value:w,children:t})};function g(){return new Map}var v=n(28917);const y=e=>e.key||"";function b(e){const t=[];
2return o.Children.forEach(e,(e=>{(0,o.isValidElement)(e)&&t.push(e)})),t}const w=e=>{let{children:t,custom:n,initial:l=!0,onExitComplete:c,presenceAffectsLayout:u=!0,mode:d="sync",propagate:p=!1,anchorX:h="left",anchorY:f="top",root:m}=e;const[g,w]=(0,v.xQ)(p),x=(0,o.useMemo)((()=>b(t)),[t]),k=p&&!g?[]:x.map(y),S=(0,o.useRef)(!0),C=(0,o.useRef)(x),A=(0,a.M)((()=>new Map)),E=(0,o.useRef)(new Set),[j,T]=(0,o.useState)(x),[P,N]=(0,o.useState)(x);(0,s.E)((()=>{S.current=!1,C.current=x;for(let e=0;e<P.length;e++){const t=y(P[e]);k.includes(t)?(A.delete(t),E.current.delete(t)):!0!==A.get(t)&&A.set(t,!1)}}),[P,k.length,k.join("-")]);const I=[];if(x!==j){let e=[...x];for(let t=0;t<P.length;t++){const n=P[t],r=y(n);k.includes(r)||(e.splice(t,0,n),I.push(n))}return"wait"===d&&I.length&&(e=I),N(b(e)),T(x),null}const{forceRender:R}=(0,o.useContext)(i.L);return(0,r.jsx)(r.Fragment,{children:P.map((e=>{const t=y(e),o=!(p&&!g)&&(x===P||k.includes(t));return(0,r.jsx)(_,{isPresent:o,initial:!(S.current&&!l)&&void 0,custom:n,presenceAffectsLayout:u,mode:d,root:m,onExitComplete:o?void 0:()=>{if(E.current.has(t))return;if(!A.has(t))return;E.current.add(t),A.set(t,!0);let e=!0;A.forEach((t=>{t||(e=!1)})),e&&(null===R||void 0===R||R(),N(C.current),p&&(null===w||void 0===w||w()),c&&c())},anchorX:h,anchorY:f,children:e},t)}))})}},59749:function(e,t,n){e.exports=function(e){return function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=n.x64={};a.Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),e}(n(84488))},59773:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});n(65043);var r=n(75439),o=n(65469),i=n(85692),a=n(13005),s=n(10624),l=n(70579);const c=e=>{let{title:t,onBack:n,right:c,className:u}=e;const d=(0,r.Zp)(),{theme:p}=(0,a.DP)(),{resolvedDirection:h}=(0,s.o)(),f="ltr"===h;return(0,l.jsxs)("div",{className:"activity-top-bar ".concat("dark"===p?"theme-dark":""," ").concat(f?"atb-ltr":""," ").concat(u||""),dir:h,children:[(0,l.jsx)("button",{className:"atb-back",onClick:()=>{if("function"===typeof n)return n();d(-1)},"aria-label":"back",children:f?(0,l.jsx)(o.A,{size:20}):(0,l.jsx)(i.A,{size:20})}),c&&(0,l.jsx)("div",{className:"atb-right",children:c}),(0,l.jsx)("h1",{className:"atb-title",children:t})]})}},60014:e=>{e.exports=function(){return!1}},60329:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},60806:(e,t,n)=>{"use strict";n.d(t,{A:()=>V});var r=n(22555),o=n(65043),i=n(75439),a=n(56099),s=n(65505),l=n(9855),c=n(8800),u=n(68773),d=n(35087),p=n(38326),h=n(71360);const f=(0,n(77784).A)("swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]]);var m=n(9463),_=n(5077),g=n(41536),v=n(87978),y=n(40117),b=n(47174),w=n(30590),x=n(34352),k=n(13005),S=n(65982),C=n(59773),A=n(65871),E=n(33039),j=n(89927),T=n(67586),P=n(70579);const N=10,I="/assets/images/global/coin.png",R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(r)},O=()=>{const e=new Date;return e.setDate(e.getDate()-1),R(e)},D=e=>{if(!e)return"\u2014";const[t,n,r]=String(e).slice(0,10).split("-");return t&&n&&r?"".concat(r,"-").concat(n,"-").concat(t):e},M=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R();return e.startDate&&e.startDate>t?"upcoming":e.endDate&&e.endDate<t?"ended":"active"},L={active:{label:"\u062c\u0627\u0631\u064a\u0629 \u0627\u0644\u0622\u0646",className:"active"},upcoming:{label:"\u0642\u0627\u062f\u0645\u0629",className:"upcoming"},ended:{label:"\u0645\u0646\u062a\u0647\u064a\u0629",className:"ended"},draft:{label:"\u0628\u0627\u0646\u062a\u0638\u0627\u0631 \u0627\u0644\u0625\u0639\u062f\u0627\u062f",className:"upcoming"}},F=e=>1===e?"\ud83e\udd47":2===e?"\ud83e\udd48":3===e?"\ud83e\udd49":"\ud83c\udf96\ufe0f",z=e=>{const t=e.val()||{};return Object.entries(t).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)}))},B=async e=>Promise.all(e.map((async e=>{if((0,T.dS)(e.iconUrl))return e;try{const t=e.postId||e.id,n=await y.firebase.database().ref("posts/".concat(t)).once("value");if(!n.exists())return e;const o=(0,r.A)({id:t},n.val()),i=o.coverImage&&(0,T.dS)(o.coverImage)?o.coverImage:Array.isArray(o.images)?o.images.find(T.dS):null;return i?(0,r.A)((0,r.A)({},e),{},{iconUrl:i}):e}catch(t){return e}}))),q=async e=>Promise.all(e.map((async e=>{if(!e.createdBy||e.creatorName&&e.creatorImage)return e;try{const t=await b.A.getProfile(e.createdBy);return t?(0,r.A)((0,r.A)({},e),{},{creatorName:e.creatorName||t.name||t.tag||"\u0645\u0633\u062a\u062e\u062f\u0645",creatorImage:e.creatorImage||t.img||"/assets/images/global/user_v2.jpg"}):e}catch(t){return e}})));function U(e){let{event:t,large:n=!1}=e;return(0,T.dS)(t.iconUrl)?(0,P.jsx)("img",{className:"event-icon-image ".concat(n?"large":""),src:t.iconUrl,alt:""}):(0,P.jsx)("div",{className:"event-icon-fallback ".concat(n?"large":""),children:(0,P.jsx)(a.A,{size:n?32:24})})}function H(e){let{event:t,detailed:n=!1}=e;return t.allWinners||Array.isArray(t.prizes)&&t.prizes.length?(0,P.jsxs)("section",{className:n?"event-detail-block prize":"event-card-prizes",children:[n&&(0,P.jsxs)("h3",{children:[(0,P.jsx)(a.A,{size:17})," \u0627\u0644\u062c\u0648\u0627\u0626\u0632"]}),t.allWinners?(0,P.jsxs)("div",{className:"event-all-winners",children:[(0,P.jsx)(a.A,{size:15})," \u062c\u0645\u064a\u0639 \u0627\u0644\u0645\u0634\u0627\u0631\u0643\u064a\u0646 \u0641\u0627\u0626\u0632\u0648\u0646 ",(0,P.jsxs)("b",{children:[(0,P.jsx)("img",{src:I,alt:""}
2),Number(t.coinsForAll||0).toLocaleString("ar")]})]}):(0,P.jsx)("div",{className:"event-prize-list",children:t.prizes.map(((e,t)=>(0,P.jsxs)("span",{className:"event-prize",children:[(0,P.jsx)("i",{children:F(Number(e.place))})," \u0627\u0644\u0645\u0631\u0643\u0632 ",e.place,(0,P.jsxs)("b",{children:[(0,P.jsx)("img",{src:I,alt:""}),Number(e.coins||0).toLocaleString("ar")]})]},"".concat(e.place,"-").concat(t))))})]}):null}function W(e){var t,n;let{event:r,isDark:o,canEdit:i,canDelete:a,selectMode:p,onClick:h,onEdit:f,onDelete:m,onPreview:_}=e;const g=L[r.draft?"draft":M(r)];return(0,P.jsxs)("article",{className:"event-card ".concat(o?"is-dark":""),onClick:h,children:[(0,P.jsx)("div",{className:"event-card-accent"}),!p&&(i||a)&&(0,P.jsxs)("div",{className:"event-card-actions",children:[i&&(0,P.jsx)("button",{onClick:e=>{e.stopPropagation(),f()},"aria-label":"\u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629",children:(0,P.jsx)(s.A,{size:15})}),a&&(0,P.jsx)("button",{className:"delete",onClick:e=>{e.stopPropagation(),m()},"aria-label":"\u062d\u0630\u0641 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629",children:(0,P.jsx)(l.A,{size:15})})]}),p&&(0,P.jsx)("span",{className:"event-select-badge",children:"\u0625\u0631\u0633\u0627\u0644 \u21a9"}),(0,P.jsxs)("div",{className:"event-card-heading",children:[(0,P.jsx)(U,{event:r}),(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{className:"event-status ".concat(g.className),children:g.label}),(0,P.jsx)("h2",{children:r.title})]})]}),r.description&&(0,P.jsx)("p",{className:"event-card-description",children:r.description}),(r.startDate||r.endDate)&&(0,P.jsxs)("div",{className:"event-date-line",children:[(0,P.jsx)(c.A,{size:15}),(0,P.jsxs)("span",{dir:"ltr",children:[D(r.startDate)," \u2014 ",D(r.endDate)]})]}),(0,P.jsx)(H,{event:r}),((null===(t=r.officialRules||r.rules)||void 0===t?void 0:t.length)||(null===(n=r.personalRules)||void 0===n?void 0:n.length))&&(0,P.jsxs)("div",{className:"event-card-rule-note",children:[(0,P.jsx)(u.A,{size:14})," \u062a\u062a\u0636\u0645\u0646 \u0642\u0648\u0627\u0639\u062f \u0648\u062a\u0639\u0644\u064a\u0645\u0627\u062a \u0644\u0644\u0645\u0634\u0627\u0631\u0643\u0629"]}),r.draft&&(0,P.jsxs)("div",{className:"event-draft-footer",children:[(0,P.jsxs)("div",{className:"event-creator",children:[(0,P.jsx)("img",{src:r.creatorImage||"/assets/images/global/user_v2.jpg",alt:""}),(0,P.jsxs)("span",{children:[(0,P.jsx)("small",{children:"\u0623\u0646\u0634\u0623\u0647\u0627"}),(0,P.jsx)("b",{children:r.creatorName||"\u0645\u0633\u062a\u062e\u062f\u0645"})]})]}),(0,P.jsxs)("button",{type:"button",className:"event-preview-button",onClick:e=>{e.stopPropagation(),_()},children:[(0,P.jsx)(d.A,{size:15})," \u0645\u0639\u0627\u064a\u0646\u0629 \u0627\u0644\u0645\u062d\u062a\u0648\u0649"]})]})]})}function V(){let{onClose:e,onNavigate:t,onSelectEvent:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{theme:r}=(0,k.DP)(),s="dark"===r,l=(0,i.Zp)(),{userData:c}=(0,o.useContext)(S.Rs),d=null===c||void 0===c?void 0:c.role,I=(0,w.WR)()||(null===c||void 0===c?void 0:c.id)||null,D=(0,x.g5)(d),L=(0,x.yl)(d),F=(0,x.Q$)(d),U=(0,x.l$)(d),H=(0,o.useRef)(null),V=(0,o.useRef)(null),G=(0,o.useRef)(0),[Y,Q]=(0,o.useState)("current"),[X,$]=(0,o.useState)((()=>R())),[J,Z]=(0,o.useState)([]),[ee,te]=(0,o.useState)([]),[ne,re]=(0,o.useState)(!0),[oe,ie]=(0,o.useState)(!1),[ae,se]=(0,o.useState)(!1),[le,ce]=(0,o.useState)(!0),[ue,de]=(0,o.useState)(null),[pe,he]=(0,o.useState)([]),[fe,me]=(0,o.useState)(!1),[_e,ge]=(0,o.useState)(null),[ve,ye]=(0,o.useState)(null),be=(0,o.useMemo)((()=>["current",...U?["upcoming"]:[],...L?["drafts"]:[],"history"]),[L,U]),we=(0,o.useCallback)((e=>{Q(e),H.current&&(H.current.scrollTop=0)}),[]),xe=(0,o.useCallback)((e=>t?t(e):l(e)),[l,t]),ke=(0,o.useCallback)((async()=>{re(!0);try{const e=await y.firebase.database().ref("events").orderByChild("endDate").startAt(X).once("value");Z(await B(z(e)))}catch(e){console.error("Error loading current events:",e);const t=await b.A.getAllEvents();Z(t.filter((e=>"ended"!==M(e,X))))}finally{re(!1)}}),[X]);(0,o.useEffect)((()=>{ke()}),[ke]),(0,o.useEffect)((()=>{const e=new Date,t=new Date(e);t.setHours(24,0,1,0);const n=window.setTimeout((()=>$(R())),t.getTime()-e.getTime());return()=>window.clearTimeout(n)}),[X]),(0,o.useEffect)((()=>{se(!1),ce(!0),de(null)}),[X]);const Se=(0,o.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!oe&&(e||le)){ie(!0);try{let t=y.firebase.database().ref("events").orderByChild("endDate");const n=e?null:ue;
2t=n?t.endAt(n.value,n.key).limitToLast(N+2):t.endAt(O()).limitToLast(N+1);const r=await t.once("value");let o=z(r).filter((e=>"ended"===M(e,X))).sort(((e,t)=>String(t.endDate).localeCompare(String(e.endDate))||t.id.localeCompare(e.id)));n&&(o=o.filter((e=>e.id!==n.key)));const i=o.length>N;o=o.slice(0,N),o=await B(o),te((t=>e?o:[...t,...o.filter((e=>!t.some((t=>t.id===e.id))))]));const a=o[o.length-1];de(a?{value:a.endDate,key:a.id}:n),ce(i),se(!0)}catch(t){console.error("Error loading event history:",t)}finally{ie(!1)}}}),[ue,le,oe,X]);(0,o.useEffect)((()=>{"history"!==Y||ae||Se(!0)}),[ae,Se,Y]),(0,o.useEffect)((()=>{"drafts"===Y&&!fe&&L&&(re(!0),y.firebase.database().ref("event_drafts").orderByChild("createdAt").once("value").then((async e=>{const t=z(e).sort(((e,t)=>Number(t.createdAt||0)-Number(e.createdAt||0))),n=await B(t);he(await q(n))})).catch((e=>console.error("Error loading event drafts:",e))).finally((()=>{me(!0),re(!1)})))}),[L,fe,Y]);const Ce=(0,o.useMemo)((()=>J.filter((e=>"active"===M(e,X))).sort(((e,t)=>String(e.endDate).localeCompare(String(t.endDate))))),[J,X]),Ae=(0,o.useMemo)((()=>U?J.filter((e=>"upcoming"===M(e,X))).sort(((e,t)=>String(e.startDate).localeCompare(String(t.startDate)))):[]),[U,J,X]),Ee="drafts"===Y?pe:"history"===Y?ee:"upcoming"===Y?Ae:Ce,je=e=>n?n(e):ge(e),Te=e=>(0,x.f6)(e,d,I);return(0,P.jsxs)("div",{className:"events-page ".concat(s?"is-dark":""),children:[(0,P.jsx)("style",{children:K}),e?(0,P.jsxs)("header",{className:"events-modal-header",children:[(0,P.jsx)("button",{onClick:e,"aria-label":"\u0625\u063a\u0644\u0627\u0642",children:(0,P.jsx)(p.A,{size:20})}),(0,P.jsx)("b",{children:n?"\u0627\u062e\u062a\u0631 \u0641\u0639\u0627\u0644\u064a\u0629 \u0644\u0644\u0625\u0631\u0633\u0627\u0644":"\u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a"}),F&&!n&&(0,P.jsx)("button",{className:"events-create-small",onClick:()=>xe("/create-event"),"aria-label":"\u0625\u0646\u0634\u0627\u0621 \u0641\u0639\u0627\u0644\u064a\u0629",children:(0,P.jsx)(h.A,{size:20})})]}):(0,P.jsx)(C.A,{title:"\u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",className:s?"theme-dark-item":"theme-light-item"}),(0,P.jsxs)("div",{className:"events-scroll-area",ref:H,onScroll:e=>{if("history"!==Y||oe||!le)return;const t=e.currentTarget;t.scrollHeight-t.scrollTop-t.clientHeight<220&&Se(!1)},onTouchStart:e=>{if(n||1!==e.touches.length||e.target.closest("button, a, input, textarea, select"))return void(V.current=null);const t=e.touches[0];V.current={x:t.clientX,y:t.clientY}},onTouchEnd:e=>{const t=V.current;if(V.current=null,!t||1!==e.changedTouches.length)return;const n=e.changedTouches[0],r=n.clientX-t.x,o=n.clientY-t.y;if(Math.abs(r)<55||Math.abs(r)<=1.15*Math.abs(o))return;const i=be.indexOf(Y),a=r>0?i+1:i-1;a<0||a>=be.length||(G.current=Date.now()+450,we(be[a]))},onClickCapture:e=>{Date.now()>=G.current||(e.preventDefault(),e.stopPropagation())},children:[(0,P.jsxs)("button",{className:"guild-banner",onClick:()=>xe("/daily-missions"),children:[(0,P.jsx)("span",{children:(0,P.jsx)(f,{size:24})}),(0,P.jsxs)("div",{children:[(0,P.jsx)("b",{children:"\u0646\u0642\u0627\u0628\u0629 \u0627\u0644\u0645\u063a\u0627\u0645\u0631\u064a\u0646"}),(0,P.jsx)("small",{children:"\u0627\u0644\u0645\u0647\u0627\u0645 \u0627\u0644\u064a\u0648\u0645\u064a\u0629 \u0648\u0627\u0644\u0645\u0643\u0627\u0641\u0622\u062a"})]}),(0,P.jsx)(m.A,{size:19})]}),!n&&(0,P.jsxs)("nav",{className:"events-tabs","aria-label":"\u062a\u0635\u0641\u064a\u0629 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a",children:[(0,P.jsxs)("button",{className:"current"===Y?"active":"",onClick:()=>we("current"),children:[(0,P.jsx)(_.A,{size:16})," \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a \u0627\u0644\u062d\u0627\u0644\u064a\u0629"]}),U&&(0,P.jsxs)("button",{className:"upcoming"===Y?"active":"",onClick:()=>we("upcoming"),children:[(0,P.jsx)(g.A,{size:16})," \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a \u0627\u0644\u0642\u0627\u062f\u0645\u0629"]}),L&&(0,P.jsxs)("button",{className:"drafts"===Y?"active":"",onClick:()=>we("drafts"),children:[(0,P.jsx)(u.A,{size:16})," \u0628\u0627\u0646\u062a\u0638\u0627\u0631 \u0627\u0644\u0625\u0639\u062f\u0627\u062f"]}),(0,P.jsxs)("button",{className:"history"===Y?"active":"",onClick:()=>we("history"),children:[(0,P.jsx)(v.A,{size:16})," \u0633\u062c\u0644 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a"]})]}),F&&!e&&!n&&(0,P.jsxs)("button",{className:"events-create",onClick:()=>xe("/create-event"),children:[(0,P.jsx)(h.A,{size:17})," \u0625\u0646\u0634\u0627\u0621 \u0641\u0639\u0627\u0644\u064a\u0629"]}),(0,P.jsxs)("div",{className:"events-list-heading",children:[(0,P.jsx)("h1",{children:n?"\u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a \u0627\u0644\u0645\u062a\u0627\u062d\u0629":"drafts"===Y?"\u0641\u0639\u0627\u0644\u064a\u0627\u062a \u062a\u062d\u062a\u0627\u062c \u0642\u0648\u0627\u0639\u062f \u0623\u0648 \u062c\u0648\u0627\u0626\u0632":"history"===Y?"\u0633\u062c\u0644 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a \u0627\u0644\u0645\u0646\u062a\u0647\u064a\u0629":"upcoming"===Y?"\u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a \u0627\u0644\u0642\u0627\u062f\u0645\u0629":"\u062c\u0627\u0631\u064a\u0629 \u0627\u0644\u0622\u0646"}),"history"===Y&&(0,P.jsx)("small",{children:"\u064a\u062a\u0645 \u062a\u062d\u0645\u064a\u0644 \u0661\u0660 \u0641\u0639\u0627\u0644\u064a\u0627\u062a \u0641\u064a \u0643\u0644 \u0645\u0631\u0629"})]}),ne&&"history"!==Y||oe&&!ee.length?(0,P.jsx)("div",{className:"events-state",children:"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a..."}):0===Ee.length?(0,P.jsxs)("div",{className:"events-state empty",children:[(0,P.jsx)(a.A,{size:24}),(0,P.jsx)("span",{children:"drafts"===Y?"\u0644\u0627 \u062a\u0648\u062c\u062f \u0641\u0639\u0627\u0644\u064a\u0627\u062a \u0628\u0627\u0646\u062a\u0638\u0627\u0631 \u0627\u0644\u0625\u0639\u062f\u0627\u062f":"history"===Y?"\u0644\u0627 \u062a\u0648\u062c\u062f \u0641\u0639\u0627\u0644\u064a\u0627\u062a \u0645\u0646\u062a\u0647\u064a\u0629 \u0628\u0639\u062f":"upcoming"===Y?"\u0644\u0627 \u062a\u0648\u062c\u062f \u0641\u0639\u0627\u0644\u064a\u0627\u062a \u0642\u0627\u062f\u0645\u0629":"\u0644\u0627 \u062a\u0648\u062c\u062f \u0641\u0639\u0627\u0644\u064a\u0627\u062a \u062c\u0627\u0631\u064a\u0629 \u062d\u0627\u0644\u064a\u0627\u064b"})]}):(0,P.jsx)("div",{className:"events-list",children:Ee.map((e=>(0,P.jsx)(W,{event:e,isDark:s,canEdit:Te(e),canDelete:D,selectMode:Boolean(n),onClick:()=>je(e),onPreview:()=>je(e),onEdit:()=>xe("/edit-event/".concat(e.id)),onDelete:()=>(e=>{D&&ye(e)})(e)},e.id)))}),"history"===Y&&ee.length>0&&(0,P.jsx)("div",{className:"history-footer",children:oe?"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0632\u064a\u062f...":le?"\u0645\u0631\u0651\u0631 \u0644\u0644\u0623\u0633\u0641\u0644 \u0644\u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0632\u064a\u062f":"\u062a\u0645 \u0639\u0631\u0636 \u0643\u0627\u0645\u0644 \u0627\u0644\u0633\u062c\u0644"})]}),_e&&(0,P.jsx)(E.A,{postId:_e.postId||_e.id,fallbackPost:(0,T.IQ)(_e),onClose:()=>ge(null),zIndex:(0,j.v7)()}),(0,P.jsx)(A.A,{isOpen:Boolean(ve),title:"\u062d\u0630\u0641 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629",message:ve?"\u0647\u0644 \u062a\u0631\u064a\u062f \u062d\u0630\u0641 \u0641\u0639\u0627\u0644\u064a\u0629 \xab".concat(ve.title,"\xbb \u0646\u0647\u0627\u0626\u064a\u0627\u064b\u061f"):"",confirmText:"\u062d\u0630\u0641",cancelText:"\u0625\u0644\u063a\u0627\u0621",isDangerous:!0,onConfirm:async()=>{const e=ve;if(D&&e){ye(null);try{const t=e.postId||e.id;await Promise.all([y.firebase.database().ref("events/".concat(e.id)).remove(),y.firebase.database().ref("event_drafts/".concat(t)).remove(),y.firebase.database().ref("blogs/".concat(t)).remove(),y.firebase.database().ref("posts/".concat(t)).remove()]),await Promise.all([y.firebase.database().ref("deleted/".concat(t)).remove().catch((()=>null)),e.createdBy?y.firebase.database().ref("user_posts/".concat(e.createdBy,"/").concat(t)).remove().catch((()=>null)):Promise.resolve()]),b.A.removePostFromCache(t),b.A.invali
2dateEventsCache(),Z((t=>t.filter((t=>t.id!==e.id)))),te((t=>t.filter((t=>t.id!==e.id)))),he((t=>t.filter((t=>t.id!==e.id))))}catch(t){console.error("Error deleting event:",t),window.alert("\u062a\u0639\u0630\u0631 \u062d\u0630\u0641 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629\u060c \u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.")}}},onCancel:()=>ye(null)})]})}const K='\n@import url(\'https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap\');\n.events-page{height:100vh;min-height:0;background:#f3f6fb;color:#172033;direction:rtl;font-family:"Almarai",sans-serif;display:flex;flex-direction:column}.events-page.is-dark{background:#090d15;color:#edf2fc}.events-modal-header{height:62px;box-sizing:border-box;flex:0 0 62px;padding:10px 14px;display:grid;grid-template-columns:38px 1fr 38px;align-items:center;border-bottom:1px solid #e1e6ef;background:rgba(255,255,255,.92);backdrop-filter:blur(14px)}.is-dark .events-modal-header{background:rgba(15,20,30,.94);border-color:#232b39}.events-modal-header>b{text-align:center;font-size:17px}.events-modal-header button{width:36px;height:36px;border:0;border-radius:50%;background:#eef1f5;color:inherit;display:grid;place-items:center;cursor:pointer}.is-dark .events-modal-header button{background:#202938}.events-create-small{grid-column:3}.events-scroll-area{flex:1;overflow-y:auto;padding:18px 16px 42px;scrollbar-width:none}.events-scroll-area::-webkit-scrollbar{display:none}.events-scroll-area>*{width:min(720px,100%);box-sizing:border-box;margin-inline:auto}\n.guild-banner{border:0;border-radius:19px;padding:15px 17px;background:linear-gradient(135deg,#7048c9,#4b2a91);box-shadow:0 8px 24px rgba(88,49,167,.25);color:#fff;display:flex;align-items:center;gap:13px;cursor:pointer;font-family:inherit}.guild-banner>span{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.16);display:grid;place-items:center}.guild-banner>div{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:3px}.guild-banner b{font-size:15px}.guild-banner small{color:rgba(255,255,255,.75)}.events-tabs{margin-top:17px!important;display:flex;gap:7px;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}.events-tabs button{white-space:nowrap;border:1px solid #dfe5ed;border-radius:999px;background:#fff;color:#697386;padding:9px 13px;font:700 12px "Almarai",sans-serif;display:flex;align-items:center;gap:6px;cursor:pointer}.is-dark .events-tabs button{background:#131a26;border-color:#283244;color:#aeb7c8}.events-tabs button.active{background:#315de0;border-color:#315de0;color:#fff;box-shadow:0 5px 15px rgba(49,93,224,.25)}.events-create{margin-top:13px!important;border:0;border-radius:12px;padding:11px;background:rgba(49,93,224,.1);color:#315de0;font:800 13px "Almarai",sans-serif;display:flex;justify-content:center;align-items:center;gap:6px;cursor:pointer}.is-dark .events-create{color:#8faaff;background:rgba(79,124,255,.13)}.events-list-heading{margin-top:23px!important;margin-bottom:12px!important;display:flex;align-items:end;justify-content:space-between}.events-list-heading h1{font-size:15px;margin:0}.events-list-heading small{color:#8992a2;font-size:10px}.events-list{display:flex;flex-direction:column;gap:13px}\n.event-card{position:relative;overflow:hidden;border:1px solid #e1e6ef;border-radius:20px;background:linear-gradient(145deg,#fff,#f8faff);box-shadow:0 8px 26px rgba(40,55,85,.07);padding:17px;cursor:pointer;display:flex;flex-direction:column;gap:11px;transition:transform .16s,box-shadow .16s}.event-card:hover{transform:translateY(-2px);box-shadow:0 11px 30px rgba(40,55,85,.11)}.event-card.is-dark{background:linear-gradient(145deg,#151c29,#111722);border-color:#273143;box-shadow:0 10px 28px rgba(0,0,0,.24)}.event-card-accent{position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,#4f7cff,#8c5bd7,#18a57a)}.event-card-heading{display:flex;align-items:center;gap:12px;padding-inline-end:72px}.event-card-heading>div{min-width:0}.event-card h2{font-size:17px;margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-icon-image,.event-icon-fallback{width:52px;height:52px;flex:0 0 52px;border-radius:15px;object-fit:cover}.event-icon-image{border:1px solid rgba(79,124,255,.2)}.event-icon-fallback{display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#4f7cff,#7657e8)}.event-icon-image.large,.event-icon-fallback.large{width:72px;height:72px;flex-basis:72px;border-radius:20px}.event-status{display:inline-block;border-radius:999px;padding:3px 8px;font-size:9.5px;font-weight:800}.event-status.active{color:#087d58;background:rgba(24,165,122,.13)}
2.event-status.upcoming{color:#315dcc;background:rgba(49,93,224,.12)}.event-status.ended{color:#777f8d;background:rgba(110,120,135,.13)}.is-dark .event-status.active{color:#61deb6}.is-dark .event-status.upcoming{color:#91adff}.is-dark .event-status.ended{color:#adb6c5}.event-card-description{margin:0;color:#687386;font-size:12.5px;line-height:1.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.is-dark .event-card-description{color:#a6b0c1}.event-date-line{display:flex;align-items:center;gap:7px;color:#687386;font-size:12px;font-weight:700}.is-dark .event-date-line{color:#aab4c5}.event-card-actions{position:absolute;top:14px;left:13px;display:flex;gap:5px;z-index:2}.event-card-actions button{width:32px;height:32px;border:0;border-radius:10px;background:#edf1f7;color:#4f6079;display:grid;place-items:center;cursor:pointer}.is-dark .event-card-actions button{background:#222c3c;color:#c4cede}.event-card-actions button.delete{color:#d54141;background:rgba(220,61,61,.1)}.event-select-badge{position:absolute;top:15px;left:14px;border-radius:999px;padding:5px 9px;background:#315de0;color:#fff;font-size:10px;font-weight:800}.event-card-rule-note{display:flex;align-items:center;gap:6px;color:#7052be;background:rgba(112,82,190,.08);border-radius:10px;padding:8px 10px;font-size:11px;font-weight:700}.is-dark .event-card-rule-note{color:#bca7f1;background:rgba(143,109,225,.12)}.event-draft-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:11px;border-top:1px solid #e6eaf1}.is-dark .event-draft-footer{border-color:#293345}.event-creator{display:flex;align-items:center;gap:8px;min-width:0}.event-creator img{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#e8edf4;flex:0 0 34px}.event-creator span{display:flex;flex-direction:column;min-width:0;gap:2px}.event-creator small{font-size:9px;color:#8a94a5}.event-creator b{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.event-preview-button{flex:0 0 auto;border:1px solid rgba(49,93,224,.2);border-radius:11px;padding:8px 11px;background:rgba(49,93,224,.09);color:#315de0;font:800 11px "Almarai",sans-serif;display:flex;align-items:center;justify-content:center;gap:5px;cursor:pointer}.is-dark .event-preview-button{color:#9bb1ff;background:rgba(79,124,255,.12);border-color:rgba(112,145,255,.2)}\n.event-card-prizes{overflow:hidden}.event-prize-list{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}.event-prize{flex:0 0 auto;display:flex;align-items:center;gap:5px;border-radius:999px;padding:6px 9px;background:#fff5d8;color:#805c12;font-size:10.5px;font-weight:700}.is-dark .event-prize{background:rgba(227,171,55,.12);color:#f1c76c}.event-prize i{font-style:normal}.event-prize b,.event-all-winners b{display:flex;align-items:center;gap:3px}.event-prize img,.event-all-winners img{width:14px;height:14px}.event-all-winners{width:fit-content;display:flex;align-items:center;gap:7px;border-radius:999px;padding:7px 10px;background:#fff5d8;color:#805c12;font-size:11px;font-weight:800}.is-dark .event-all-winners{background:rgba(227,171,55,.12);color:#f1c76c}.events-state{padding:55px 20px;text-align:center;color:#8490a3}.events-state.empty{display:flex;flex-direction:column;align-items:center;gap:9px;border:1px dashed #d5dce7;border-radius:18px}.is-dark .events-state.empty{border-color:#2b3546}.history-footer{text-align:center;padding:24px;color:#8993a3;font-size:11px}\n.event-detail-layer{position:fixed;inset:0;background:rgba(4,8,15,.62);backdrop-filter:blur(5px);display:flex;align-items:flex-end;justify-content:center;padding:18px;box-sizing:border-box;direction:rtl;font-family:"Almarai",sans-serif}.event-detail-sheet{position:relative;width:min(680px,100%);max-height:min(86vh,820px);overflow-y:auto;background:#fff;color:#182033;border-radius:25px;padding:23px;box-sizing:border-box;box-shadow:0 24px 80px rgba(0,0,0,.28)}.event-detail-layer.is-dark .event-detail-sheet{background:#111824;color:#edf2fc}.event-detail-close{position:absolute;top:15px;left:15px;width:36px;height:36px;border:0;border-radius:50%;background:#eef1f5;color:inherit;display:grid;place-items:center;cursor:pointer}.is-dark .event-detail-close{background:#222b39}.event-detail-header{display:flex;align-items:center;gap:14px;padding-inline-end:10px}.event-detail-header h2{margin:5px 0;font-size:21px}.event-detail-header small{color:#818b9b}.event-detail-sheet>.event-date-line{margin-top:18px;background:#f3f6fa;border-radius:12px;padding:10px 12px;width:fit-content}.is-dark .event-detail-sheet>.event-date-line{background:#1c2533}.event-description{white-space:pre-wrap;line-height:1.9;font-size:14px;margin:18px 0}.event-detail-block{border-radius:16px;padding:14px 15px;margin-top:11px}.event-detail-block h3{display:flex;align-items:center;gap:7px;margin:0 0 10px;font-size:13px}.event-detail-block ol{margin:0;padding-inline-start:21px;
2display:flex;flex-direction:column;gap:7px;font-size:12.5px;line-height:1.7}.event-detail-block.official{background:rgba(118,87,232,.09);border:1px solid rgba(118,87,232,.18)}.event-detail-block.official h3{color:#6545cf}.is-dark .event-detail-block.official h3{color:#bca8ff}.event-detail-block.personal{background:rgba(24,165,122,.09);border:1px solid rgba(24,165,122,.18)}.event-detail-block.personal h3{color:#12805f}.is-dark .event-detail-block.personal h3{color:#68d7b5}.event-detail-block.prize{background:rgba(230,162,26,.09);border:1px solid rgba(230,162,26,.18)}.event-legacy-post{width:100%;margin-top:13px;border:1px solid #dce2eb;border-radius:12px;background:transparent;color:#57657a;padding:11px;font:700 12px "Almarai",sans-serif;cursor:pointer}.is-dark .event-legacy-post{border-color:#303b4d;color:#b1bdcf}.event-detail-actions{display:flex;gap:8px;margin-top:18px}.event-detail-actions button{flex:1;border:0;border-radius:12px;padding:11px;font:800 12px "Almarai",sans-serif;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}.event-detail-actions .edit{background:#315de0;color:#fff}.event-detail-actions .delete{background:rgba(220,61,61,.11);color:#d33b3b}\n@media(min-width:700px){.event-detail-layer{align-items:center}.event-detail-sheet{border-radius:25px}}@media(max-width:520px){.events-scroll-area{padding-inline:12px}.event-card{padding:15px}.event-card-heading{padding-inline-end:67px}.event-draft-footer{align-items:stretch;flex-direction:column}.event-preview-button{width:100%;min-height:40px}.event-detail-layer{padding:0;align-items:flex-end}.event-detail-sheet{border-radius:24px 24px 0 0;padding:20px 16px;max-height:91vh}.event-detail-actions{flex-direction:column}}\n'},60940:(e,t,n)=>{"use strict";n.d(t,{K:()=>a,M:()=>s});var r=n(65043),o=n(40117),i=n(70579);const a=(0,r.createContext)(),s=e=>{let{children:t}=e;const[n,s]=(0,r.useState)(null),[l,c]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{o.firebase.database().ref("Tokens").once("value").then((e=>{e.exists()?(console.log("\ud83d\udd11 \u062a\u0645 \u062a\u062d\u0645\u064a\u0644 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062a\u0648\u0643\u0646\u0627\u062a:",e.val()),s(e.val())):(console.warn("\u26a0\ufe0f \u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0639\u062b\u0648\u0631 \u0639\u0644\u0649 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062a\u0648\u0643\u0646\u0627\u062a!"),s(null))})).catch((e=>{console.error("\u274c \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062c\u0644\u0628 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062a\u0648\u0643\u0646\u0627\u062a:",e),s(null)})).finally((()=>{c(!1)}))}),[]),(0,i.jsx)(a.Provider,{value:{tokensData:n,loadingTokens:l},children:t})}}
2,61064:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("lock-open",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]])},61143:(e,t,n)=>{var r=n(13028)(Object.keys,Object);e.exports=r},61197:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(65043),o=n(75439),i=n(10624),a=n(9333),s=n(27033),l=n(41680),c=n(70929),u=n(77784);const d=(0,u.A)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);var p=n(5244),h=n(95919);const f=(0,u.A)("user-star",[["path",{d:"M16.051 12.616a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.866l-1.156-1.153a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z",key:"1m8t9f"}],["path",{d:"M8 15H7a4 4 0 0 0-4 4v2",key:"l9tmp8"}],["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}]]);var m=n(71360),_=n(5379),g=n(43457),v=n(13005),y=n(70579);const b=[180,0,60,240,120,300],w=()=>{const e=(0,o.zy)(),t=(0,o.Zp)(),[u,w]=(0,r.useState)(!1),{currentModal:x}=(0,r.useContext)(g.V),{theme:k}=(0,v.DP)(),{resolvedBottomNavBarDirection:S,t:C}=(0,i.o)();(0,r.useEffect)((()=>{const e=window.requestIdleCallback||(e=>window.setTimeout(e,800)),t=window.cancelIdleCallback||window.clearTimeout,r=e((()=>(n.e(5380).then(n.bind(n,75380)),n.e(2992).then(n.bind(n,42992)),n.e(8649).then(n.bind(n,28649)),Promise.all([n.e(5808),n.e(3796)]).then(n.bind(n,73796)),Promise.all([n.e(5808),n.e(5882)]).then(n.bind(n,35882)),Promise.all([n.e(8690),n.e(959),n.e(2617)]).then(n.bind(n,46476)),Promise.all([n.e(1719),n.e(1193)]).then(n.bind(n,11719)),n.e(110).then(n.bind(n,60110)),void n.e(1294).then(n.bind(n,91294)))));return()=>t(r)}),[]);const A=[{path:"/create?type=video",label:C("bottom_nav_create_video"),Icon:a.A,color:"#F43F5E",tint:"rgba(244, 63, 94, 0.14)"},{path:"/create-poll",label:C("bottom_nav_create_poll"),Icon:s.A,color:"#10B981",tint:"rgba(16, 185, 129, 0.14)"},{path:"/create",label:C("bottom_nav_create_post"),Icon:l.A,color:"#3B82F6",tint:"rgba(59, 130, 246, 0.14)"},{path:"/create?type=newspaper",label:C("bottom_nav_create_newspaper"),Icon:c.A,color:"#F59E0B",tint:"rgba(245, 158, 11, 0.14)"},{path:"/create-quiz",label:C("bottom_nav_create_quiz"),Icon:d,color:"#8B5CF6",tint:"rgba(139, 92, 246, 0.14)"},{path:"/drafts",label:C("bottom_nav_drafts"),Icon:p.A,color:"#64748B",tint:"rgba(100, 116, 139, 0.14)"}],E=(e,t)=>{let{path:n,label:r,Icon:o,color:i,tint:a}=e;return(0,y.jsxs)("div",{className:"bnav-fan-item",style:{"--delay":"".concat(b[t],"ms")},onClick:()=>j(n),children:[(0,y.jsx)("div",{className:"bnav-fan-bubble",style:{backgroundColor:a},children:(0,y.jsx)(o,{size:22,color:i})}),(0,y.jsx)("span",{className:"bnav-fan-label",children:r})]},n)},j=e=>{w(!1),t(e,{replace:!0})};return"single-video"===x||"user-status"===x?null:(0,y.jsxs)(y.Fragment,{children:[u&&(0,y.jsx)("div",{className:"bnav-overlay",onClick:()=>w(!1)}),(0,y.jsxs)("div",{className:"bottom-navbar ".concat("dark"===k?"theme-dark-space":"theme-light-space"," ").concat(S),dir:S,children:[(0,y.jsxs)(o.k2,{to:"/",replace:!0,className:()=>{const t="/"===e.pathname||"/post"===e.pathname;return"bnav-item ".concat(t?"active":""," ").concat("dark"===k?"theme-dark-item":"theme-light-item")},children:[(0,y.jsx)("span",{className:"bnav-icon-wrap",children:(0,y.jsx)(h.A,{size:22})}),(0,y.jsx)("span",{className:"bnav-label",children:C("bottom_nav_home")})]}),(0,y.jsxs)(o.k2,{to:"/talents-badges",replace:!0,className:e=>{let{isActive:t}=e;return"bnav-item ".concat(t?"active":""," ").concat("dark"===k?"theme-dark-item":"theme-light-item")},children:[(0,y.jsx)("span",{className:"bnav-icon-wrap",children:(0,y.jsx)(f,{size:22})}),(0,y.jsx)("span",{className:"bnav-label",children:C("bottom_nav_missions")})]}),(0,y.jsxs)("div",{className:"bnav-item bnav-center-container",children:[(0,y.jsx)("button",{className:"bnav-center-btn ".concat(u?"menu-open":""),onClick:e=>{e.preventDefault(),w(!u)},"aria-label":C("bottom_nav_create_post"),"aria-expanded":u,children:(0,y.jsx)(m.A,{size:26,color:"#fff"})}),u&&(0,y.jsxs)("div",{className:"bnav-fan-menu ".concat("dark"===k?"theme-panel-dark":"theme-panel-light"),dir:S,children:[(0,y.jsx)("div",{className:"bnav-fan-row bnav-fan-row-top",children:A.slice(3,6).map(((e,t)=>E(e,3+t)))}),(0,y.jsx)("div",{className:"bnav-fan-row bnav-fan-row-bottom",children:A.slice(0,3).map(((e,t)=>E(e,t)))})]})]}),(0,y.jsx)(o.k2,{to:"/islamic",replace:!0,className:e=>{let{isActive:t}=e;return"bnav-item ".concat(t?"active":""," ").concat("dark"===k?"theme-dark-item":"theme-light-item")},children:e=>{let{isActive:t}=e;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("span",{className:"bnav-icon-wrap",children:(0,y.jsxs)("svg",{className:"bnav-team-icon ".concat(t?"active":""),viewBox:"0 0 350 270",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsx)("path",{fill:"currentColor",d:"m183.88 15.84c4.46 3.04 8.24 6.61 9.71 11.92 0.49 2.66 0.36 5.4 0.35 8.11q0 1.06 0.01 2.12 0 2.91 0 5.83 0 3.14 0.01 6.29 0 5.45 0 10.9 0.01 7.88 0.02 15.76 0.03 
212.81 0.04 25.61 0 0.76 0 1.55 0.01 8.55 0.02 17.09 0 3.1 0 6.2c0 0.76 0 0.76 0 1.54q0.01 12.76 0.04 25.51 0.01 7.87 0.01 15.74 0 5.39 0.01 10.77 0.01 3.11 0.01 6.22-0.01 2.85 0.01 5.7 0 1.51-0.01 3.02c0.04 4.67 0.76 8.37 3.24 12.37q0.37 0.62 0.74 1.24c2.8 3.97 6.88 5.83 11.53 6.77 4.83 0.51 9.16-0.24 13.1-3.16 4.18-3.54 7.37-7.13 7.92-12.81 0.2-3.56 0.16-7.13 0.14-10.7q0-1.81 0.01-3.63 0.01-3.88 0-7.77-0.01-5.62 0.01-11.25 0.02-9.13 0.01-18.26 0-0.55 0-1.11 0-2.21 0-4.42 0-6.1 0.01-12.19 0-0.55 0-1.1 0-9.11 0.02-18.22 0.01-6.11 0-12.22 0-3.8 0.01-7.59 0-1.76-0.01-3.52 0-2.41 0.01-4.81-0.01-0.7-0.01-1.41c0.02-2.49 0.19-4.02 1.73-6.07 0.35-1.12 0.35-1.12 0.51-2.04q0.5 0 1.02 0c0.17-0.55 0.17-0.55 0.35-1.12 1.49-3.2 4.68-5.5 7.8-7.04 1.71-0.37 3.36-0.51 5.1-0.51q0-0.51 0-1.02c3.91-0.18 7.11-0.03 10.71 1.53 0.51 0.19 0.51 0.19 1.03 0.39 4.22 1.81 7.81 5.51 9.57 9.74 1.11 3.04 1.35 5.73 1.32 8.94 0 0.78 0 0.78 0.01 1.57q0 2.57-0.01 5.15 0 1.85 0 3.7 0 4.5-0.01 9-0.01 5.25-0.01 10.49 0 9.36-0.02 18.72-0.02 9.08-0.02 18.15 0 0.56 0 1.14 0 1.12 0 2.25 0 0.55 0 1.12c0 0.55 0 0.55 0 1.12q-0.01 8.66-0.02 17.32-0.01 3.14-0.01 6.27 0 5.44-0.01 10.88-0.01 1.8-0.01 3.61 0 2.46-0.01 4.92c0 0.72 0 0.72 0 1.44-0.03 7.34-0.03 7.34-1.09 8.4q-0.11 1.03-0.19 2.07c-0.25 2.41-0.92 4.37-1.85 6.6-0.21 0.58-0.21 0.58-0.43 1.17-1.99 5.36-5.01 9.94-8.39 14.51q-0.41 0.54-0.82 1.1-0.38 0.51-0.78 1.02c-0.34 0.46-0.34 0.46-0.68 0.92q-0.31 0.32-0.63 0.65-0.5 0-1.02 0-0.5 1.01-1.02 2.04-0.5 0-1.02 0c-0.15 0.45-0.15 0.45-0.31 0.9-0.96 1.56-2.23 2.2-3.77 3.18q-0.46 0.49-0.95 0.99c-1.18 1.15-2.31 1.82-3.76 2.58q-0.68 0.37-1.38 0.74-0.76 0.39-1.55 0.79-0.47 0.25-0.94 0.5c-2.45 1.26-4.9 2.27-7.51 3.13q-0.59 0.2-1.19 0.41c-3.27 1.05-6.46 1.58-9.87 1.92-1.36 0.01-1.36 0.01-1.91 0.67q-1.3 0.07-2.6 0.07-0.78 0-1.59 0-0.83 0-1.68-0.01-0.82 0.01-1.68 0.01-0.78 0-1.59 0c-0.72 0-0.72 0-1.47 0-1.12-0.07-1.12-0.07-1.63-0.58q-1.01-0.17-2.03-0.27c-5.64-0.69-10.19-1.79-15.31-4.32q-0.89-0.37-1.8-0.76c-1.6-0.7-3.14-1.44-4.67-2.27-0.7-0.36-0.7-0.36-1.41-0.74-1.32-0.83-2.27-1.74-3.34-2.86q-0.5-0.25-1.02-0.51 0-0.5 0-1.02c-1.43-0.44-1.43-0.44-3.06-0.51-1.14 0.93-1.14 0.93-2.04 2.04q-0.75 0.25-1.53 0.51-0.77 0.76-1.53 1.53-1.25 0.85-2.55 1.63-0.66 0.4-1.34 0.82c-1.21 0.61-1.21 0.61-2.74 0.61q0 0.51 0 1.02-1.25 0-2.55 0 0 0.51 0 1.02-0.47 0.14-0.95 0.28-0.65 0.2-1.31 0.39-0.71 0.21-1.43 0.42-1.76 0.56-3.48 1.21c-5.46 1.81-15.96 4.5-21.39 1.78q-1.04-0.17-2.09-0.29c-5.28-0.68-9.86-1.58-14.74-3.79q-0.85-0.35-1.72-0.71c-1.96-0.87-3.79-1.87-5.64-2.95q-0.48-0.28-0.98-0.57-1.19-0.69-2.36-1.38 0-0.5 0-1.02-0.54-0.17-1.09-0.35c-1.84-0.84-3.04-1.83-4.52-3.22q0-0.5 0-1.02-1.01-0.5-2.04-1.02 0-0.5 0-1.02-0.44-0.17-0.9-0.35c-1.43-0.83-2.17-1.81-3.18-3.12q-0.5-0.65-1.02-1.31c-0.51-0.66-0.51-0.66-1.02-1.34q-0.53-0.64-1.08-1.31c-0.85-1.09-1.5-2.1-2.11-3.34q-0.26-0.5-0.52-1.02c-0.37-0.96-0.37-0.96-0.37-2.48q-0.5 0-1.02 0c-4.22-9.92-5.69-18.95-5.67-29.69q0-1.32 0-2.63 0-3.54 0.01-7.08 0-3.71 0-7.41 0-7.02 0.01-14.03 0.01-7.98 0.01-15.97 0.01-16.42 0.03-32.84-0.43 0.34-0.86 0.67-0.55 0.42-1.12 0.86-0.55 0.43-1.11 0.87c-0.99 0.66-0.99 0.66-2.01 0.66q-0.5 1.01-1.02 2.04-0.5 0-1.02 0-0.25 0.76-0.51 1.53c-1.25 1.37-1.25 1.37-2.55 2.55q-0.5 0-1.02 0-0.5 1.01-1.02 2.04-0.5 0-1.02 0-0.06 0.43-0.13 0.86c-0.49 1.53-1.41 2.49-2.42 3.73q-0.25 0.76-0.51 1.53-0.5 0-1.02 0-0.17 0.58-0.35 1.18c-0.56 1.59-1.2 3.04-1.92 4.56-3.27 7.16-3.98 14.36-4.1 22.15-0.16 6.39-2.38 11.2-7.02 15.62-4.05 3.34-7.52 4.09-12.68 4.14q-0.65 0.01-1.31 0.02c-4.12-0.06-7.23-1.39-10.87-3.3q0-0.51 0-1.02-0.45-0.19-0.91-0.39c-3.13-1.74-5.12-4.97-6.23-8.28-0.61-3.11-0.6-6.15-0.6-9.31q0-0.87 0-1.77c0.09-13.39 0.09-13.39 1.62-14.93q0.12-1.16 0.2-2.32c0.19-2.17 0.63-3.92 1.46-5.91 0.44-1.05 0.44-1.05 0.83-2.61 1.28-4.26 3.2-8.28 5.16-12.26q0.25-0.5 0.5-1.02c0.85-1.72 1.78-3.29 2.91-4.84 1.23-1.53 1.23-1.53 1.69-3.17q0.51 0 1.02 0c0.19-0.54 0.19-0.54 0.37-1.1 0.74-1.65 1.68-2.81 2.85-4.19 1.37-1.63 2.69-3.24 3.89-5 0.52-0.71 0.52-0.71 1.05-1.44q0.51 0 1.02 0 0.51-1 1.02-2.03 0.51 0 1.02 0 0.16-0.43 0.32-0.87c0.77-1.29 1.69-2.08 2.88-2.99 0.96-0.78 0.96-0.78 2.06-1.93 1.42-1.41 2.89-2.69 4.43-3.97q0.77-0.64 1.56-1.31c1.32-1.03 2.61-1.88 4.05-2.7q1.56-1.02 3.13-2.05c0.95-0.5 0.95-0.5 2.48-0.5q0-0.51 0-1.02 0.77-0.39 1.57-0.79 0.5-0.25 1.02-0.51 1.12-0.56 2.24-1.12 2.5-1.23 4.97-2.53c3.36-1.76 6.71-3.01 10.32-4.14 1.83-0.58 1.83-0.58 3.63-1.4 1.62-0.68 3.02-1.04 4.75-1.31 1.71-0.14 1.71-0.14 3.12-0.95 6.74-0.48 11.87 0.78 17.15 4.97 4.23 3.82 6.19 9.26 6.49 14.88 0.1 3.08 0.08 6.15 0.07 9.22q0 1.77 0.01 3.54 0 3.8 0 7.59-0.01 6 0 12 0.03 8.42 0.02 16.83c0 0.54 0 0.54 0 1.08q0 2.15 0 4.32 0 5.94 0.01 11.89 0 0.53 0 1.08 0 8.9 0.02 17.79 0.01 5.97 0 11.94 0 3.7 0.01 7.41 0 1.72-0.01 3.44 0 2.34 0.01 4.69-0.01 0.68-0.01 1.37c0.03 3.77 0.95 6.8 3.1 9.96 1.17 1.74 1.17 1.74 1.17 2.87q1.01 0.5 2.04 1.02 0 0.5 0 1.02 0.46 0.09 0.93 0.18c1.
211 0.33 1.11 0.33 2.64 1.35q1.27 0.29 2.55 0.51 0 0.5 0 1.02c3.54 0 7.07 0 10.71 0q0-0.51 0-1.02c0.67-0.19 0.67-0.19 1.34-0.39 1.82-0.67 3.19-1.57 4.78-2.67q0.57-0.25 1.15-0.51c1.17-0.67 1.41-1.32 1.91-2.55q0.51-1.02 1.02-2.04 0.51 0 1.02 0 0.09-0.51 0.2-1.02c0.31-1.53 0.31-1.53 0.83-3.24 0.77-3.06 0.64-6.15 0.62-9.28q0.01-1.06 0.01-2.11 0-2.88-0.01-5.76 0-3.11 0.01-6.22 0-5.39-0.01-10.77 0-8.53 0.01-17.05 0.01-2.92 0.01-5.84 0-0.72 0-1.47 0.01-8.29 0.01-16.59 0-0.75 0.01-1.53 0.01-12.28-0.01-24.56 0-12.62 0.03-25.24 0.01-7.78 0-15.55-0.01-5.33 0.01-10.67 0.01-3.07-0.01-6.14-0.01-2.82 0.01-5.64 0-1.49-0.01-2.99c0.04-4.42 1.05-7.91 2.88-11.92q0.51 0 1.02 0 0.21-0.61 0.41-1.24 0.31-0.65 0.61-1.31c0.76-0.25 0.76-0.25 1.53-0.51q0.24-0.5 0.48-1.02c0.54-1.02 0.54-1.02 1.63-1.4q0.47-0.06 0.95-0.13 0-0.5 0-1.02 0.95-0.5 1.91-0.99 0.53-0.27 1.08-0.55c4.81-2.19 12.08-1.81 16.66 0.68z"}),(0,y.jsx)("path",{fill:"currentColor",d:"m319.77 65.15c0.47 0.15 0.47 0.15 0.95 0.3 4.86 1.59 7.54 4.46 10.39 8.63 2.28 4.52 2.65 8.99 2.63 13.98q0 0.96 0 1.94 0.01 2.65 0.01 5.3-0.01 2.86 0 5.73 0.02 5.6 0.01 11.21 0 4.55 0 9.11 0 0.65 0 1.31 0 1.32 0.01 2.64 0 12.37-0.01 24.74 0 11.3 0.02 22.6 0.02 11.62 0.01 23.24 0 6.52 0.01 13.04 0.01 5.54 0 11.09-0.01 2.83 0 5.66 0.01 3.07-0.01 6.14c0.01 0.88 0.01 0.88 0.02 1.78-0.06 6.21-1.61 12.02-5.88 16.67-4.55 4.1-9.92 5.97-16 5.75-1.61-0.16-2.92-0.52-4.4-1.16q-1.04-0.36-2.07-0.73c-3.43-1.32-5.36-3.06-7.62-5.9-0.47-0.55-0.47-0.55-0.96-1.11-0.57-0.93-0.57-0.93-0.57-2.97q-0.5 0-1.02 0c-0.9-4.1-1.17-8.01-1.15-12.21q0-0.96 0-1.95-0.01-2.65 0-5.3 0-2.87-0.01-5.74 0-5.61 0-11.22 0.01-4.57 0-9.13c0-0.65 0-0.65 0-1.31q0-1.33 0-2.65 0-12.38 0.01-24.76 0-10.61 0-21.22-0.01-12.34-0.01-24.67 0-1.32 0-2.64 0-0.64 0-1.31 0.01-4.55 0-9.11 0-5.55 0-11.11 0.01-2.83 0-5.66 0-3.07 0.01-6.15 0-0.88-0.01-1.79c0.02-3.4 0.34-6.54 1.16-9.84q0.51 0 1.02 0 0.03-0.51 0.06-1.02c1.26-4.31 4.82-7.07 8.61-9.18 4.79-2.17 9.81-3.12 14.79-1.02z"}),(0,y.jsx)("path",{fill:"currentColor",d:"m332.01 81.47q0.75 0 1.53 0c0 51.83 0 103.66 0 157.06q-0.76 0-1.53 0c0-51.83 0-103.66 0-157.06z"}),(0,y.jsx)("path",{fill:"currentColor",d:"m295.29 176.32q0.25 0 0.51 0c0 20.87 0 41.73 0 63.23q-0.75-0.5-1.53-1.02c-0.19-0.97-0.19-0.97-0.19-2.18q0-0.69-0.01-1.4 0.01-0.75 0.01-1.53 0-0.79 0-1.61-0.01-2.65 0.01-5.3 0-1.85 0-3.69 0-3.87 0.01-7.75 0.01-4.94 0.01-9.89 0-3.81 0-7.63 0.01-1.82 0.01-3.64c-0.01-12.19-0.01-12.19 1.17-17.59z"}),(0,y.jsx)("path",{fill:"currentColor",d:"m295.8 80.96c0 26.75 0 53.51 0 81.08q-0.5 0.25-1.02 0.51-0.15-1.9-0.28-3.79-0.05-0.52-0.09-1.07c-0.13-1.84-0.12-3.47 0.11-5.31 0.36-3.09 0.33-6.16 0.33-9.26q0-0.98 0-1.99 0-2.68 0-5.35 0-2.81 0-5.62 0-4.7 0-9.41-0.01-5.44 0-10.88 0-4.69 0-9.37 0-2.79 0-5.58 0-3.11 0-6.21 0-0.93 0-1.87 0-0.85 0-1.71 0-0.73 0-1.48c0.01-1.18 0.01-1.18-0.58-2.18 1.02-0.51 1.02-0.51 1.53-0.51z"}),(0,y.jsx)("path",{fill:"currentColor",d:"m71.93 119.2c-0.58 1.74-1.09 2.07-2.55 3.06q-0.51-0.5-1.02-1.02c1.85-2.04 1.85-2.04 3.57-2.04z"}),(0,y.jsx)("path",{fill:"currentColor",d:"m242.25 66.17c-0.41 0.99-0.41 0.99-1.01 2.04-1.53 0.51-1.53 0.51-3.06 0 2.93-2.04 2.93-2.04 4.07-2.04z"})]})}),(0,y.jsx)("span",{className:"bnav-label",children:C("bottom_nav_team")})]})}}),(0,y.jsxs)(o.k2,{to:"/more",replace:!0,className:e=>{let{isActive:t}=e;return"bnav-item ".concat(t?"active":""," ").concat("dark"===k?"theme-dark-item":"theme-light-item")},children:[(0,y.jsx)("span",{className:"bnav-icon-wrap",children:(0,y.jsx)(_.A,{size:22})}),(0,y.jsx)("span",{className:"bnav-label",children:C("bottom_nav_more")})]})]})]})}},61340:(e,t,n)=>{var r=n(93211);e.exports=function(e,t){for(var n=e.length;n--;
2)if(r(e[n][0],t))return n;return-1}},61516:(e,t,n)=>{var r=n(22929);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},61714:(e,t,n)=>{var r=n(61340);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},62501:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>b,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>C,__classPrivateFieldSet:()=>A,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>h,__extends:()=>o,__generator:()=>d,__importDefault:()=>S,__importStar:()=>k,__makeTemplateObject:()=>x,__metadata:()=>c,__param:()=>l,__read:()=>m,__rest:()=>a,__spread:()=>_,__spreadArrays:()=>g,__values:()=>f});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof v?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(r){u(i[0][3],r)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
2function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},62597:(e,t,n)=>{var r=n(54052),o=n(19841),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},62849:(e,t,n)=>{"use strict";n.d(t,{m:()=>o});const r=/^(?:https?:\/\/)?(?:www\.)?amposter\.com\/post\/([a-zA-Z0-9_-]+)\/?(?:[?#].*)?$/i;function o(e){if(!e||"string"!==typeof e)return null;const t=e.trim().match(r);return t?t[1]:null}},63089:function(e,t){!function(e){"use strict";function t(e){return Array.prototype.slice.call(e)}function n(e){return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function r(e,t,r){var o,i=new Promise((function(i,a){n(o=e[t].apply(e,r)).then(i,a)}));return i.request=o,i}function o(e,t,n){var o=r(e,t,n);return o.then((function(e){if(e)return new u(e,o.request)}))}function i(e,t,n){n.forEach((function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})}))}function a(e,t,n,o){o.forEach((function(o){o in n.prototype&&(e.prototype[o]=function(){return r(this[t],o,arguments)})}))}function s(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})}))}function l(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return o(this[t],r,arguments)})}))}function c(e){this._index=e}function u(e,t){this._cursor=e,this._request=t}function d(e){this._store=e}function p(e){this._tx=e,this.complete=new Promise((function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}}))}function h(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new p(n)}function f(e){this._db=e}function m(e,t,n){var o=r(indexedDB,"open",[e,t]),i=o.request;return i&&(i.onupgradeneeded=function(e){n&&n(new h(i.result,e.oldVersion,i.transaction))}),o.then((function(e){return new f(e)}))}function _(e){return r(indexedDB,"deleteDatabase",[e])}i(c,"_index",["name","keyPath","multiEntry","unique"]),a(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),l(c,"_index",IDBIndex,["openCursor","o
2penKeyCursor"]),i(u,"_cursor",["direction","key","primaryKey","value"]),a(u,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(e){e in IDBCursor.prototype&&(u.prototype[e]=function(){var t=this,r=arguments;return Promise.resolve().then((function(){return t._cursor[e].apply(t._cursor,r),n(t._request).then((function(e){if(e)return new u(e,t._request)}))}))})})),d.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))},d.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))},i(d,"_store",["name","keyPath","indexNames","autoIncrement"]),a(d,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),l(d,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(d,"_store",IDBObjectStore,["deleteIndex"]),p.prototype.objectStore=function(){return new d(this._tx.objectStore.apply(this._tx,arguments))},i(p,"_tx",["objectStoreNames","mode"]),s(p,"_tx",IDBTransaction,["abort"]),h.prototype.createObjectStore=function(){return new d(this._db.createObjectStore.apply(this._db,arguments))},i(h,"_db",["name","version","objectStoreNames"]),s(h,"_db",IDBDatabase,["deleteObjectStore","close"]),f.prototype.transaction=function(){return new p(this._db.transaction.apply(this._db,arguments))},i(f,"_db",["name","version","objectStoreNames"]),s(f,"_db",IDBDatabase,["close"]),["openCursor","o
2penKeyCursor"].forEach((function(e){[d,c].forEach((function(n){e in n.prototype&&(n.prototype[e.replace("open","iterate")]=function(){var n=t(arguments),r=n[n.length-1],o=this._store||this._index,i=o[e].apply(o,n.slice(0,-1));i.onsuccess=function(){r(i.result)}})}))})),[c,d].forEach((function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise((function(o){n.iterateCursor(e,(function(e){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():o(r)):o(r)}))}))})})),e.openDb=m,e.deleteDb=_,Object.defineProperty(e,"__esModule",{value:!0})}(t)},63248:(e,t,n)=>{"use strict";n.d(t,{Ht:()=>s,jE:()=>a});var r=n(65043),o=n(70579),i=r.createContext(void 0),a=e=>{const t=r.useContext(i);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:n}=e;return r.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]),(0,o.jsx)(i.Provider,{value:t,children:n})}},63329:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]])},63451:(e,t,n)=>{"use strict";n.d(t,{$k:()=>i,DO:()=>c,OR:()=>u,YG:()=>p,_c:()=>r,t3:()=>s,to:()=>a,z:()=>o});const r={PUBLISH:"publish",COMMENT:"comment",REACTION:"reaction",MESSAGE:"message",FULL:"full"},o={[r.PUBLISH]:"\u062d\u0638\u0631 \u0627\u0644\u0646\u0634\u0631",[r.COMMENT]:"\u062d\u0638\u0631 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",[r.REACTION]:"\u062d\u0638\u0631 \u0627\u0644\u062a\u0641\u0627\u0639\u0644",[r.MESSAGE]:"\u062d\u0638\u0631 \u0627\u0644\u0631\u0633\u0627\u0626\u0644",[r.FULL]:"\u062d\u0638\u0631 \u062f\u0627\u0626\u0645"},i=["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649"],a=["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0645\u0634\u0631\u0641 \u0627\u0644\u0645\u062d\u062a\u0648\u0649"],s=i,l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();if(!e||"object"!==typeof e)return!1;if(!1===e.active||!0===e.revoked)return!1;if(!0===e.permanent)return!0;if(null===e.expiresAt||"undefined"===typeof e.expiresAt)return!0;const n=Number(e.expiresAt);return!Number.isNaN(n)&&n>t},c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();const r=null===e||void 0===e?void 0:e.bans;if(!r||"object"!==typeof r)return null;const o=r[t];return l(o,n)?o:null},u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return!!c(e,t,n)},d=(e,t)=>{const n=Number(e);return!n||n<=0?0:"months"===t?30*n*24*60*60*1e3:24*n*60*60*1e3},p=e=>{let{banType:t,reason:n="",durationMode:r="permanent",durationAmount:o=1,durationUnit:i="days",createdBy:a=null,createdByRole:s=null}=e;const l=Date.now(),c="permanent"===r,u=c?null:d(o,i),p=c||!u?null:l+u;return{active:!0,type:t,reason:n.trim()||"",createdAt:l,updatedAt:l,createdBy:a,createdByRole:s,permanent:c,expiresAt:p,durationMode:r,durationAmount:c?null:Number(o),durationUnit:c?null:i}}},63932:(e,t,n)=>{var r=n(10396),o=n(52866),i=n(62597),a=n(70914);e.exports=function(e){return i(e)?r(a(e)):o(e)}},63944:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},63961:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7
2a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]])},63967:()=>{},64220:function(e,t,n){e.exports=function(e){!function(){var t=e,n=t.lib.Base,r=t.enc.Utf8;t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=a.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}()}(n(84488))},64708:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.CipherParams,r=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return n.create({ciphertext:t})}}}(),e.format.Hex}(n(84488),n(52238))},64725:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R});var r=n(22555),o=n(65043),i=n(97950),a=n(75439),s=n(1523),l=n(98655),c=n(40117),u=n(85692),d=n(64830),p=n(19340),h=n(75699),f=n(43677),m=n(56095),_=n(8145),g=n(5379),v=n(65505),y=n(30590),b=n(66006),w=n(26390),x=n(91118),k=n(52222),S=n(33039),C=n(65871),A=n(81518),E=n(65982),j=n(43457),T=n(47174),P=n(30502),N=n(13005),I=n(70579);const R=e=>{var t,n;let{isOpen:R,onClose:O=null,onNavigate:D=null,initialPostId:M=null}=e;const{postId:L}=(0,a.g)(),F=(0,a.Zp)(),z=M||L,{data:B,isLoading:q,error:U,refetch:H}=(0,s.YK)(z,{refetchOnWindowFocus:!0}),W="undefined"!==typeof R,V=W&&!R,[K,G]=(0,o.useState)(0),[Y,Q]=(0,o.useState)(0),[X,$]=(0,o.useState)(!1),[J,Z]=(0,o.useState)(!1),[ee,te]=(0,o.useState)(1),[ne,re]=(0,o.useState)(!1),[oe,ie]=(0,o.useState)(!1),[ae,se]=(0,o.useState)(!1),[le,ce]=(0,o.useState)(!1),[ue,de]=(0,o.useState)(!1),[pe,he]=(0,o.useState)(!1),[fe,me]=(0,o.useState)({isOpen:!1,title:"",message:"",type:"success"}),[_e,ge]=(0,o.useState)(!1),[ve,ye]=(0,o.useState)(!1),[be,we]=(0,o.useState)(!1),[xe,ke]=(0,o.useState)(!1),[Se,Ce]=(0,o.useState)(null),[Ae,Ee]=(0,o.useState)(null),je=(0,o.useRef)(null),Te=(0,o.useRef)(null),Pe=(0,o.useRef)(null),Ne=(0,o.useRef)(!1),[Ie,Re]=(0,o.useState)(B||null),[Oe,De]=(0,o.useState)(null),[Me,Le]=(0,o.useState)(0),[Fe,ze]=(0,o.useState)(null),[Be,qe]=(0,o.useState)(!1),[Ue,He]=(0,o.useState)(!1),[We,Ve]=(0,o.useState)(null),Ke=(0,o.useRef)(null),Ge=(0,o.useRef)(null),Ye=((0,o.useRef)(null),(0,o.useRef)(!1),(0,o.useRef)(0),(0,o.useRef)(null),(0,o.useRef)(!1)),Qe=((0,o.useRef)(!1),(0,o.useRef)([])),Xe=(0,o.useRef)([]),{userData:$e}=(0,o.useContext)(E.Rs),{currentModal:Je,setCurrentModal:Ze}=(0,o.useContext)(j.V),{theme:et}=(0,N.DP)(),tt=Ie||B,nt=(null===tt||void 0===tt?void 0:tt.id)||z,rt=(e=>{var t;if(!e)return"";const n="string"===typeof e.video?e.video:(null===(t=e.video)||void 0===t?void 0:t.url)||e.videoUrl||e.video_url||"";return n?n.startsWith("r2://")?"https://post-video.amposter.com/".concat(n.replace(/^r2:\/\//,"")):n:""})(tt),ot=()=>{var e;null===(e=Te.current)||void 0===e||e.pause(),$(!1)},it=(0,P.rG)(null===$e||void 0===$e?void 0:$e.role)||["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645"].includes(null===$e||void 0===$e?void 0:$e.role)||Boolean(null===$e||void 0===$e?void 0:$e.isAdmin),[at,st]=((0,P.AB)(null===$e||void 0===$e?void 0:$e.role)||["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645"].includes(null===$e||void 0===$e?void 0:$e.role)||Boolean(null===$e||void 0===$e?void 0:$e.isAdmin),(0,o.useState)(null)),[lt,ct]=(0,o.useState)({}),[ut,dt]=(0,o.useState)(!1),[pt,ht]=(0,o.useState)("\u0623\u0639\u062c\u0628\u0646\u064a"),[ft]=(0,o.useState)({like:"https://assets.amposter.com/reactions/reaction_pack1/like.png",love:"https://assets.amposter.com/reactions/reaction_pack1/love.png",care:"https://assets.amposter.com/reactions/reaction_pack1/care.png",wow:"https://assets.amposter.com/reactions/reaction_pack1/wow.png",haha:"https://assets.amposter.com/reactions/reaction_pack1/haha.png",sad:"https://assets.amposter.com/reactions/reaction_pack1/sad.png",angry:"https://assets.amposter.com/reactions/reaction_pack1/angry.png"});(0,o.useEffect)((()=>{B&&Re(B)}),[B]),(0,o.useEffect)((()=>{let e=!0;return T.A.getAllPosts().then((t=>{e&&Array.isArray(t)&&(Xe.current=t)}
2)).catch((()=>{})),()=>{e=!1}}),[]);const mt=(0,o.useRef)(0);(0,o.useEffect)((()=>{const e=Te.current;if(!e||!rt)return;console.log("\ud83c\udfac Loading video:",nt,rt),G(0),Q(0);let t=null,n=0,r=!1;const o=async()=>{try{if(e.muted=Ne.current,Z(Ne.current),await e.play(),r)return;$(!0)}catch(t){if(r)return;console.log("\u23f8\ufe0f Autoplay failed:",t),$(!1)}};try{e.pause(),e.currentTime=0,e.removeAttribute("src"),e.load()}catch(c){console.warn("Reset error:",c)}const i=()=>{try{Q(e.duration||0),G(e.currentTime||0)}catch(c){}},a=()=>o(),s=()=>{r||n>=2?$(!1):(n+=1,t=window.setTimeout((()=>{r||(e.src=rt,e.load())}),500*n))};try{e.addEventListener("loadedmetadata",i,{once:!0}),e.addEventListener("loadeddata",a),e.addEventListener("canplay",a),e.addEventListener("error",s)}catch(c){}try{e.preload="auto",e.src=rt}catch(c){}try{var l;e.poster=(null===tt||void 0===tt?void 0:tt.coverImage)||(null===tt||void 0===tt||null===(l=tt.video)||void 0===l?void 0:l.thumbnail)||""}catch(c){}try{e.playbackRate=ee}catch(c){}try{e.muted=Ne.current,Z(Ne.current)}catch(c){}try{e.loop=!0}catch(c){}try{e.load()}catch(c){}return e.readyState>=2&&o(),()=>{r=!0,t&&window.clearTimeout(t);try{e.removeEventListener("loadedmetadata",i),e.removeEventListener("loadeddata",a),e.removeEventListener("canplay",a),e.removeEventListener("error",s)}catch(c){}}}),[nt,rt,mt.current]),(0,o.useEffect)((()=>{const e=Te.current;if(e)try{e.playbackRate=ee}catch(t){console.warn("Failed to apply playbackRate",t)}}),[ee]),(0,o.useEffect)((()=>{const e=Te.current;if(!e)return;const t=()=>G(e.currentTime),n=()=>Q(e.duration),r=()=>$(!0),o=()=>$(!1),i=()=>Z(e.muted);return e.addEventListener("timeupdate",t),e.addEventListener("loadedmetadata",n),e.addEventListener("play",r),e.addEventListener("pause",o),e.addEventListener("volumechange",i),e.readyState>=1&&(Q(e.duration||0),G(e.currentTime||0),Z(e.muted),$(!e.paused)),()=>{try{e.removeEventListener("timeupdate",t),e.removeEventListener("loadedmetadata",n),e.removeEventListener("play",r),e.removeEventListener("pause",o),e.removeEventListener("volumechange",i)}catch(a){}}}),[null===Ie||void 0===Ie?void 0:Ie.id,null===Ie||void 0===Ie||null===(t=Ie.video)||void 0===t?void 0:t.url]),(0,o.useEffect)((()=>{(async()=>{try{const e=localStorage.getItem("currentUserId")||(null===$e||void 0===$e?void 0:$e.id)||null;if(!e||!nt)return;const t=c.firebase.database().ref("kunaiu_bank/".concat(e,"/saved_posts/").concat(nt)),n=await t.once("value");ge(n.exists())}catch(e){console.error("Error checking saved status",e)}})()}),[nt,$e]),(0,o.useEffect)((()=>{let e=!0;const t=null===tt||void 0===tt?void 0:tt.createdBy;if(t)return T.A.getProfile(t).then((t=>{e&&De(t||null)})).catch((()=>{e&&De(null)})),()=>{e=!1};De(null)}),[null===tt||void 0===tt?void 0:tt.createdBy]),(0,o.useEffect)((()=>{if(!nt)return;const e=c.firebase.database().ref("posts/".concat(nt,"/comments")),t=e=>{const t=e.val()||{};Le(Object.values(t).filter((e=>e&&!e.deleted)).length)};return e.on("value",t),()=>e.off("value",t)}),[nt]),(0,o.useEffect)((()=>{if(!nt)return;const e=c.firebase.database().ref("posts/".concat(nt,"/reactions")),t=e=>{const t=e.val()||{},n={};Object.values(t).forEach((e=>{n[e]=(n[e]||0)+1})),ct(n);const r=(0,y.WR)()||(null===$e||void 0===$e?void 0:$e.id)||null,o=r&&t[r]?t[r]:null;st(o),kt(o)};return e.on("value",t),()=>e.off("value",t)}),[nt,$e]),(0,o.useEffect)((()=>()=>{const e=Te.current;if(e)try{e.pause(),e.currentTime=0,e.removeAttribute("src"),e.load()}catch(t){}}),[]),(0,o.useEffect)((()=>{null!==B&&void 0!==B&&B.blocked?qe(!0):qe(!1)}),[null===B||void 0===B?void 0:B.blocked]),(0,o.useEffect)((()=>{if(W){if(R)try{Ze("single-video")}catch(e){}else try{Ze(null)}catch(e){}return()=>{try{Ze(null)}catch(e){}}}}),[W,R]);const _t=async()=>{try{const e=await c.firebase.database().ref("videos").orderByChild("createdAt").limitToLast(500).once("value");return e.exists()?Object.entries(e.val()||{}).filter((e=>{let[,t]=e;return t&&!t.blocked})).sort(((e,t)=>(t[1].createdAt||0)-(e[1].createdAt||0))):[]}catch(e){return console.error("Error loading videos index",e),[]}},gt=async e=>{var t,n;const r=await _t(),o=r.findIndex((t=>{let[n]=t;return String(n)===String(e)}));return-1===o?(null===(t=r[0])||void 0===t?void 0:t[0])||null:(null===(n=r[o+1])||void 0===n?void 0:n[0])||null},vt=gt,yt=async e=>{if(!e)return null;try{let t=await c.firebase.database().ref("posts/".concat(e)).once("value");if(t.exists()){const e=t.val();return e.blocked?null:(0,r.A)({id:t.key},e)}}catch(n){}try{let n=await c.firebase.database().ref("video/".concat(e)).once("value");if(n.exists()){var t;const e=n.val();if(e.blocked)return null;const o="string"===typeof e?e:e.url||(null===(t=e.video)||void 0===t?void 0:t.url);if(o)return(0,r.A)((0,r.A)({id:n.key},e),{},{video:(0,r.A)((0,r.A)({},e.video||{}),{},{url:o})})}}catch(n){}return null},bt=async e=>{var t,n;const r=await _t(),o=r.findIndex((t=>{let[n]=t;return String(n)===String(e)}));return-1===o?(null===(t=r[0])||void 0===t?void 0:t[0])||null:(null===(n=r[o-1])||void 0===n?void 0:n[0])||null},wt=bt,xt=async e=>{if(!Ye.current){Ye.current=!0,Ve(e),He(!0);try{await new Promise((e=>setTimeout(e,180))),"up"===e?await(async()=>{try{var e;console.log("=== NEXT BUTTON CLICKED ===");const r=(null===Ie||void 0===Ie?void 0:Ie.id)||z;try{const e=Te.current;if(e)try{e.play().catch((()=>{}))}catch(n){}}catch(n){}const o=Xe.current||[];if(o&&o.length>0)try{const e=o.filter((e=>"video"===e.type&&!e.blocked)).sort(((e,t)=>(t.timestamp||0)-(e.timestamp||0))),i=e.findIndex((e=>String(e.id)===String(r)));let a=null;if(-1===i?a=e.length>0?e[0]:null:i+1<e.length&&(a=e[i+1]),a){var t;try{Qe.current.push(r)}catch(n){}const e=Te.current;if(e)try{e.pause()}catch(n){}return console.log("\ud83d\udd0d Cached next.video object:",a.video),G(0),Q(0),$(!1),ze(a.coverImage||(null===(t=a.video)||void 0===t?void 0:t.thumbnail)||null),mt.current+=1,Re(a),D?D(a.id):F("/video/".concat(a.id),{replace:!0}),ze(null),console.log("\ud83d\udce6 Next post loaded (from cache):",a.id,"nextId:",a.id),void console.log("=== NEXT BUTTON COMPLETE (cache) ===")}}catch(n){}let i=await gt(r),a="posts";if(i||(i=await vt(r),a="videos"),!i)return void me({isOpen:!0,title:"\u0646\u0647\u0627\u064a\u0629",message:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0641\u064a\u062f\u064a\u0648 \u062a\u0627\u0644\u064a",type:"info"});try{Qe.current.push(r)}catch(n){}const s=await yt(i);if(!s)return void me({isOpen:!0,title:"\u062e\u0637\u0623",message:"\u062a\u0639\u0630\u0631 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062a\u0627\u0644\u064a \u0623\u0648 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0645\u062d\u0638\u0648\u0631",type:"error"});console.log("\ud83d\udce6 Next post loaded:",s.id,"source:",a,"nextId:",i);const l=Te.current;if(l)try{l.pause()}catch(n){}G(0),Q(0),$(!1),ze(s.coverImage||(null===(e=s.video)||void 0===e?void 0:e.thumbnail)||null),mt.current+=1,Re(s),D?D(s.id):F("/video/".concat(s.id),{replace:!0}),ze(null),console.log("=== NEXT BUTTON COMPLETE ===")}catch(r){console.error("Next button navigation failed",r),me({isOpen:!0,title:"\u062e\u0637\u0623",message:"\u062a\u0639\u0630\u0631 \u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0644\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062a\u0627\u0644\u064a",type:"error"})}})():await(async()=>{try{var e,t;console.log("=== PREV BUTTON CLICKED ===");let r=null;try{Qe.current&&Qe.current.length>0&&(r=Qe.current.pop(),console.log("Using history stack prevId=",r))}catch(n){r=null}let o="posts",i=null;if(r&&(i=await yt(r),o=i&&i.id?i.source||"posts":o),!i){const e=(null===Ie||void 0===Ie?void 0:Ie.id)||z;if(r=await bt(e),r||(r=await wt(e)),!r)return void me({isOpen:!0,title:"\u0628\u062f\u0627\u064a\u0629",message:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0641\u064a\u062f\u064a\u0648 \u0633\u0627\u0628\u0642",type:"info"});if(i=await yt(r),!i)return void me({isOpen:!0,title:"\u0628\u062f\u0627\u064a\u0629",message:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0641\u064a\u062f\u064a\u0648 \u0633\u0627\u0628\u0642",type:"info"})}if(!i)return void me({isOpen:!0,title:"\u062e\u0637\u0623",message:"\u062a\u0639\u0630\u0631 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u0633\u0627\u0628\u0642",type:"error"});console.log("\ud83d\udce6 Prev post loaded:",null===(e=i)||void 0===e?void 0:e.id,"source:",o,"prevId:",r);const a=Te.current;if(a)try{a.pause()}catch(n){}G(0),Q(0),$(!1),ze(i.coverImage||(null===(t=i.video)||void 0===t?void 0:t.thumbnail)||null),mt.current+=1,Re(i),ze(null),console.log("=== PREV BUTTON COMPLETE ==="),D?D(i.id):F("/video/".concat(i.id),{replace:!0})}catch(r){console.error("Prev button navigation failed",r),me({isOpen:!0,title:"\u062e\u0637\u0623",message:"\u062a\u0639\u0630\u0631 \u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0644\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u0633\u0627\u0628\u0642",type:"error"})}})()}finally{Ye.current=!1,He(!1),Ve(null)}}};(0,o.useEffect)((()=>
2{if(V)return;const e=e=>{e.target.matches('input, textarea, [contenteditable="true"]')||("ArrowDown"===e.key||"PageDown"===e.key?(e.preventDefault(),xt("up")):"ArrowUp"!==e.key&&"PageUp"!==e.key||(e.preventDefault(),xt("down")))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}));const kt=e=>{switch(e){case"like":default:ht("\u0623\u0639\u062c\u0628\u0646\u064a");break;case"love":ht("\u0623\u062d\u0628\u0628\u062a\u0647");break;case"care":ht("\u0623\u062f\u0639\u0645\u0647");break;case"haha":ht("\u0647\u0627\u0647\u0627\u0647\u0627");break;case"wow":ht("\u0648\u0627\u0627\u0627\u0648");break;case"sad":ht("\u0623\u062d\u0632\u0646\u0646\u064a");break;case"angry":ht("\u0623\u063a\u0636\u0628\u0646\u064a")}},St=e=>{const t=(0,y.WR)()||(null===$e||void 0===$e?void 0:$e.id)||null;if(!t)return void me({isOpen:!0,title:"\u0645\u0637\u0644\u0648\u0628 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644",message:"\u064a\u0631\u062c\u0649 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u0644\u062a\u0641\u0627\u0639\u0644 \u0645\u0639 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",type:"info"});if(!1===(null===tt||void 0===tt?void 0:tt.allowReactions))return void me({isOpen:!0,title:"\u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0645\u063a\u0644\u0642\u0629",message:"\u0635\u0627\u062d\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0642\u062f \u0623\u063a\u0644\u0642 \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",type:"info"});const n=c.firebase.database().ref("posts/".concat(nt,"/reactions/").concat(t));at===e?(n.remove(),st(null),ht("\u0623\u0639\u062c\u0628\u0646\u064a")):((null===tt||void 0===tt?void 0:tt.createdBy)!==t&&(0,b.xd)(tt.createdBy,$e,"reaction",e,nt,null,null),n.set(e),st(e),kt(e),dt(!1))},Ct=()=>{je.current&&clearTimeout(je.current),je.current=setTimeout((()=>{dt(!0)}),500)},At=()=>{je.current&&(clearTimeout(je.current),je.current=null,ut||St(at||"like"))},Et=()=>{const e=Te.current;e&&(e.paused?e.play().catch((()=>{})):e.pause())},jt=()=>{const e=Te.current;e&&(e.muted=!e.muted,Ne.current=e.muted,Z(e.muted))},Tt=e=>{if(!e||isNaN(e))return"0:00";const t=Math.floor(e),n=Math.floor(t/60),r=t%60;return"".concat(n,":").concat(r.toString().padStart(2,"0"))},Pt=Boolean((null===Ie||void 0===Ie?void 0:Ie.blocked)||(null===B||void 0===B?void 0:B.blocked)||Be);if(V)return null;const Nt=Ie||B;if(q&&(!Nt||String(Nt.id)!==String(z)))return(0,I.jsx)(l.A,{message:"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0641\u064a\u062f\u064a\u0648...",overlay:!0,size:"medium"});if(U||!Nt)return(0,i.createPortal)((0,I.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0,0,0,0.5)",zIndex:1e4},onClick:()=>F(-1),children:(0,I.jsxs)("div",{style:{backgroundColor:"#fff",padding:"30px",borderRadius:"12px",textAlign:"center",maxWidth:"400px"},onClick:e=>e.stopPropagation(),children:[(0,I.jsx)("h2",{children:"\u26a0\ufe0f \u062e\u0637\u0623"}),(0,I.jsx)("p",{children:(null===U||void 0===U?void 0:U.message)||"\u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f"}),(0,I.jsx)("button",{onClick:()=>F(-1),style:{marginTop:"20px"},children:"\u0627\u0644\u0639\u0648\u062f\u0629"})]})}),document.body);if(Nt.type&&"video"!==Nt.type)return(0,i.createPortal)((0,I.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0,0,0,0.5)",zIndex:1e4},onClick:()=>F(-1),children:(0,I.jsxs)("div",{style:{backgroundColor:"#fff",padding:"30px",borderRadius:"12px",textAlign:"center",maxWidth:"400px"},onClick:e=>e.stopPropagation(),children:[(0,I.jsx)("h2",{children:"\u26a0\ufe0f \u062e\u0637\u0623"}),(0,I.jsx)("p",{children:"\u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0644\u064a\u0633 \u0641\u064a\u062f\u064a\u0648"}),(0,I.jsx)("button",{onClick:()=>F(-1),style:{marginTop:"20px"},children:"\u0627\u0644\u0639\u0648\u062f\u0629"})]})}),document.body);const It=(0,I.jsxs)("div",{className:"single-video-overlay ".concat(Ue?"animating ".concat(We):""),onPointerDownCapture:e=>e.stopPropagation(),onTouchStartCapture:e=>{e.stopPropagation(),(e=>{var t;if(e.target.closest("button, input, .custom-video-controls, .video-overlay-controls, .menu-popup"))return;const n=null===(t=e.touches)||void 0===t?void 0:t[0];n&&(Ke.current=n.clientY,Ge.current=n.clientX)})(e)},onTouchEndCapture:e=>{e.stopPropagation(),(e=>{var t;if(null===Ke.current)return;const n=null===(t=e.changedTouches)||void 0===t?void 0:t[0];if(!n)return;const r=n.clientY-Ke.current,o=n.clientX-Ge.current;Ke.current=null,Ge.current=null,Math.abs(r)<55||Math.abs(r)<=Math.abs(o)||xt(r<0?"up":"down")})(e)},onWheel:e=>{Math.abs(e.deltaY)<45||Ue||(e.preventDefault(),xt(e.deltaY>0?"up":"down"))},children:[Fe&&(0,I.jsx)("div",{className:"next-video-preview",style:{backgroundImage:"url(".concat(Fe,")"),backgroundSize:"cover",backgroundPosition:"center"}}),Ae&&(0,I.jsx)(w.A,{path:Ae.path,initialType:Ae.type||"all",onClose:()=>Ee(null),navigate:F,contentOwnerId:null===B||void 0===B?void 0:B.createdBy}),(0,I.jsxs)("div",{ref:Pe,className:"video-wrapper",children:[(0,I.jsx)("button",{className:"back-button",type:"button","aria-label":"\u0631\u062c\u0648\u0639",title:"\u0631\u062c\u0648\u0639",onClick:()=>{"undefined"!==typeof R?O&&O():F(-1)},children:(0,I.jsx)(u.A,{size:24,strokeWidth:2.25})}),Pt?(0,I.jsxs)("div",{className:"blocked-overlay",children:[(0,I.jsx)("div",{className:"blocked-text",children:"\u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0645\u062d\u0638\u0648\u0631"}),it&&(0,I.jsx)("button",{className:"unblock-button",onClick:()=>he(!0),title:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062d\u0638\u0631",children:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062d\u0638\u0631"})]}):(0,I.jsxs)(o.Fragment,{children:[(0,I.jsx)("video",{ref:Te,className:"video-player visible",playsInl
2ine:!0,loop:!0,poster:(null===Ie||void 0===Ie?void 0:Ie.coverImage)||(null===Ie||void 0===Ie||null===(n=Ie.video)||void 0===n?void 0:n.thumbnail)||"",onClick:Et,role:"button","aria-label":X?"\u0625\u064a\u0642\u0627\u0641 \u0627\u0644\u0641\u064a\u062f\u064a\u0648":"\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"}),!X&&(0,I.jsx)("button",{type:"button",className:"reel-play-button",onClick:Et,"aria-label":"\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0641\u064a\u062f\u064a\u0648",children:(0,I.jsx)(d.A,{size:34,fill:"currentColor"})}),(0,I.jsxs)("div",{className:"custom-video-controls",children:[(0,I.jsx)("div",{className:"progress-bar",onClick:e=>{var t,n;const r=Te.current;if(!r)return;const o=e.currentTarget.getBoundingClientRect(),i=(e.clientX||(null===(t=e.touches)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.clientX))-o.left,a=Math.max(0,Math.min(1,i/o.width))*Y;r.currentTime=a,G(a)},children:(0,I.jsx)("div",{className:"progress-fill",style:{width:"".concat(Y?K/Y*100:0,"%")}})}),(0,I.jsxs)("div",{className:"controls-row",children:[(0,I.jsxs)("div",{className:"controls-left",children:[(0,I.jsx)("button",{className:"control-btn",onClick:Et,children:X?(0,I.jsx)(p.A,{size:20}):(0,I.jsx)(d.A,{size:20})}),(0,I.jsxs)("span",{className:"time-display",children:[Tt(K)," / ",Tt(Y)]})]}),(0,I.jsxs)("div",{className:"controls-right",children:[(0,I.jsx)("button",{className:"control-btn",onClick:jt,children:J?(0,I.jsx)(h.A,{size:20}):(0,I.jsx)(f.A,{size:20})}),(0,I.jsxs)("div",{className:"speed-control",children:[(0,I.jsxs)("button",{className:"control-btn",onClick:()=>re(!ne),children:[ee,"x"]}),ne&&(0,I.jsx)("div",{className:"speed-menu",children:[.5,.75,1,1.25,1.5,2].map((e=>(0,I.jsxs)("div",{className:"speed-option ".concat(e===ee?"active":""),onClick:()=>(e=>{const t=Te.current;if(te(e),re(!1),t)try{t.playbackRate=e}catch(n){console.warn("Failed to set playbackRate",n)}})(e),children:[e,"x ",e===ee&&"\u2713"]},e)))})]})]})]})]}),X&&J&&(0,I.jsx)("div",{className:"unmute-hint",onClick:jt,role:"button","aria-label":"\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0635\u0648\u062a",children:"\u0627\u0636\u063a\u0637 \u0644\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0635\u0648\u062a"}),(0,I.jsxs)("div",{className:"reel-info",dir:"auto",children:[(0,I.jsxs)("button",{type:"button",className:"reel-author",onClick:()=>{null!==tt&&void 0!==tt&&tt.createdBy&&(ot(),Ce(tt.createdBy))},"aria-label":"\u0639\u0631\u0636 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a \u0644\u0640 ".concat((null===Oe||void 0===Oe?void 0:Oe.name)||(null===Oe||void 0===Oe?void 0:Oe.tag)||""),children:[(0,I.jsx)("img",{src:null!==Oe&&void 0!==Oe&&Oe.sensitive_img?
2"/assets/images/global/user_sensitive_img_v2.jpg":(null===Oe||void 0===Oe?void 0:Oe.img)||"/assets/images/global/user_v2.jpg",alt:""}),(0,I.jsx)("span",{children:(null===Oe||void 0===Oe?void 0:Oe.name)||(null===Oe||void 0===Oe?void 0:Oe.tag)||""})]}),((null===tt||void 0===tt?void 0:tt.title)||(null===tt||void 0===tt?void 0:tt.content))&&(0,I.jsxs)("button",{type:"button",className:"reel-content-preview",onClick:()=>{nt&&(ot(),ke(!0))},"aria-label":"\u0639\u0631\u0636 \u0645\u062d\u062a\u0648\u0649 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",children:[(null===tt||void 0===tt?void 0:tt.title)&&(0,I.jsx)("h2",{children:tt.title}),(null===tt||void 0===tt?void 0:tt.content)&&(0,I.jsx)("p",{children:tt.content.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()})]})]}),(0,I.jsxs)("div",{className:"video-overlay-controls",children:[(0,I.jsx)("button",{className:"like-button",onMouseDown:Ct,onTouchStart:Ct,onMouseUp:At,onMouseLeave:At,onTouchEnd:At,onClick:()=>{ut||St(at||"like")},title:"\u0625\u0639\u062c\u0627\u0628",children:at?(0,I.jsx)("img",{src:ft[at],alt:at,style:{width:28,height:28}}):(0,I.jsx)(m.A,{})}),(0,I.jsx)("span",{className:"reel-action-count",children:Object.values(lt).reduce(((e,t)=>e+t),0)}),(0,I.jsx)("button",{className:"comment-button",onClick:()=>{we(!0)},title:"\u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",children:(0,I.jsx)(_.A,{})}),(0,I.jsx)("span",{className:"reel-action-count",children:Me}),ut&&(0,I.jsx)("div",{className:"reaction-bar video-reaction-bar ".concat("dark"===et?"theme-dark-item":"theme-light-item"),children:Object.keys(ft).map((e=>(0,I.jsx)("img",{src:ft[e],alt:e,onClick:()=>St(e),className:"post-reaction-icon"},e)))}),(0,I.jsxs)("div",{style:{position:"relative"},children:[(0,I.jsx)("button",{className:"menu-button",onClick:()=>ie((e=>!e)),title:"\u0627\u0644\u0645\u0632\u064a\u062f",children:(0,I.jsx)(g.A,{})}),oe&&(0,I.jsxs)("div",{className:"menu-popup",children:[String((null===tt||void 0===tt?void 0:tt.createdBy)||"")===String((null===$e||void 0===$e?void 0:$e.id)||(0,y.WR)()||"")&&(0,I.jsxs)("div",{className:"video-menu-item",onClick:()=>{nt&&tt&&(ot(),ie(!1),sessionStorage.setItem("editingPost",JSON.stringify(tt)),F("/create?edit=".concat(nt),{replace:!0}))},children:[(0,I.jsx)(v.A,{size:16})," \u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0648\u0627\u0644\u0645\u062d\u062a\u0648\u0649"]}),(0,I.jsx)("div",{className:"video-menu-item",onClick:async()=>{try{await navigator.clipboard.writeText(window.location.origin+"/video/".concat(nt)),me({isOpen:!0,title:"\u062a\u0645 \u0627\u0644\u0646\u0633\u062e",message:"\u0631\u0627\u0628\u0637 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0646\u064f\u0633\u062e \u0644\u0644\u062d\u0627\u0641\u0638\u0629",type:"success"}),ie(!1)}catch(e){console.error("Copy failed",e),me({isOpen:!0,title:"\u0641\u0634\u0644",message:"\u062a\u0639\u0630\u0631 \u0646\u0633\u062e \u0627\u0644\u0631\u0627\u0628\u0637",type:"error"})}},children:"\u0646\u0633\u062e \u0631\u0627\u0628\u0637 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"}),(0,P.AB)(null===$e||void 0===$e?void 0:$e.role)&&(0,I.jsx)("div",{className:"video-menu-item",onClick:()=>{se(!0),ie(!1)},children:null!==Ie&&void 0!==Ie&&Ie.is_advertisement?"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646":"\u062a\u062d\u0648\u064a\u0644 \u0644\u0625\u0639\u0644\u0627\u0646"}),(0,P.rG)(null===$e||void 0===$e?void 0:$e.role)&&(0,I.jsx)("div",{className:"video-menu-item",onClick:()=>{de(!0),ie(!1)},children:"\u062d\u0638\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"}),!(0,P.rG)(null===$e||void 0===$e?void 0:$e.role)&&!(0,P.AB)(null===$e||void 0===$e?void 0:$e.role)&&(0,I.jsx)("div",{className:"video-menu-item",onClick:()=>{ce(!0),ie(!1)},children:"\u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"}),(0,I.jsx)("div",{className:"video-menu-item",onClick:async()=>{const e=(0,y.WR)()||(null===$e||void 0===$e?void 0:$e.id)||localStorage.getItem("currentUserId")||null;if(!e)return F("/login");try{const t=c.firebase.database().ref("kunaiu_bank/".concat(e,"/saved_posts/").concat(nt));(await t.once("value")).exists()?(await t.remove(),ge(!1),me({isOpen:!0,title:"\u062a\u0645 \u0627\u0644\u062d\u0630\u0641",message:"\u062a\u0645\u062a \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0645\u062d\u0641\u0648\u0638\u0627\u062a",type:"success"})):(await t.set({savedAt:Date.now(),postId:nt}),ge(!0),me({isOpen:!0,title:"\u062a\u0645 \u0627\u0644\u062d\u0641\u0638",message:"\u062a\u0645 \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0644\u0644\u0645\u062d\u0641\u0648\u0638\u0627\u062a",type:"success"})),ie(!1)}catch(t){console.error("Save failed",t),me({isOpen:!0,title:"\u062e\u0637\u0623",message:"\u0641\u0634\u0644 \u062d\u0641\u0638 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",type:"error"})}},children:_e?"\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0645\u062d\u0641\u0648\u0638\u0627\u062a":"\u062d\u0641\u0638 \u0627\u0644\u0645\u0646\u0634\u0648\u0631"})]})]})]})]})]}),(0,I.jsx)(C.A,{isOpen:le,title:"\u062a\u0623\u0643\u064a\u062f \u0627\u0644\u0625\u0628\u0644\u0627\u063a",message:"\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0623\u0646\u0643 \u062a\u0631\u064a\u062f \u0627\u0644\u0625\u0628\u0644\u0627\u063a \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648\u061f",isDangerous:!1,onConfirm:async()=>{ce(!1);const e=(0,y.WR)()||(null===$e||void 0===$e?void 0:$e.id)||localStorage.getItem("currentUserId")||null;if(!e)return F("/login");try{const t=c.firebase.database().ref("video_reports/".concat(nt,"/").concat(e));await t.set({reportedAt:Date.now()}),me({isOpen:!0,title:"\u062a\u0645 \u0627\u0644\u0628\u0644\u0627\u063a",message:"\u0634\u0643\u0631\u064b\u0627 \u0644\u0644\u0625\u0628\u0644\u0627\u063a\u060c \u0633\u0646\u0631\u0627\u062c\u0639\u0647 \u0642\u0631\u064a\u0628\u064b\u0627",type:"success"}),ie(!1)}catch(t){console.error("Report failed",t),me({isOpen:!0,title:"\u062e\u0637\u0623",message:"\u0641\u0634\u0644 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0628\u0644\u0627\u063a",type:"error"})}},onCancel:()=>ce(!1)}),(0,I.jsx)(C.A,{isOpen:ue,title:"\u062a\u0623\u0643\u064a\u062f \u0627\u0644\u062d\u0638\u0631",message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u062d\u0638\u0631 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648\u061f \u0647\u0630\u0627 \u0627\u0644\u0625\u062c\u0631\u0627\u0621 \u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0644\u062a\u0631\u0627\u062c\u0639 \u0639\u0646\u0647 \u0628\u0633\u0647\u0648\u0644\u0629.",isDangerous:!0,onConfirm:async()=>{de(!1);try{const t=(null===Ie||void 0===Ie?void 0:Ie.id)||z;await c.firebase.database().ref("posts/".concat(t)).update({blocked:!0});try{await T.A.updatePostInCache(t,{blocked:!0})}catch(e){}const n=Te.current;if(n)try{n.pause()}catch(e){}Re((e=>e?(0,r.A)((0,r.A)({},e),{},{blocked:!0}):e)),qe(!0),me({isOpen:!0,title:"\u0645\u062d\u0638\u0648\u0631",message:"\u062a\u0645 \u062d\u0638\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648",type:"success"}),ie(!1)}catch(t){console.error("Block failed",t),me({isOpen:!0,title:"\u062e\u0637\u0623",message:"\u0641\u0634\u0644 \u062d\u0638\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648",type:"error"})}},onCancel:()=>de(!1)}),(0,I.jsx)(C.A,{isOpen:pe,title:"\u062a\u0623\u0643\u064a\u062f \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062d\u0638\u0631",message:"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062d\u0638\u0631 \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648\u061f",isDangerous:!1,onConfirm:async()=>{he(!1);try{const t=(null===Ie||void 0===Ie?void 0:Ie.id)||z;await c.firebase.database().ref("posts/".concat(t)).update({blocked:!1});try{await T.A.updatePostInCache(t,{blocked:!1})}catch(e){}window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:t}}));try{await(null===H||void 0===H?void 0:H())}catch(e){}Re((e=>e?(0,r.A)((0,r.A)({},e),{},{blocked:!1}):e)),qe(!1),me({isOpen:!0,title:"\u062a\u0645",message:"\u062a\u0645 \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062d\u0638\u0631",type:"success"}),ie(!1);const n=Te.current;if(n)try{setTimeout((()=>{n.play().catch((()=>{}))}),200)}catch(e){}}catch(t){console.error("Unblock failed",t),me({isOpen:!0,title:"\u062e\u0637\u0623",message:"\u0641\u0634\u0644 \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u062d\u0638\u0631",type:"error"})}},onCancel:()=>he(!1)}),(0,I.jsx)(C.A,{isOpen:ae,title:null!==Ie&&void 0!==Ie&&Ie.is_advertisement?"\u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646":"\u062a\u062d\u0648\u064a\u0644 \u0644\u0625\u0639\u0644\u0627\u0646",message:null!==Ie&&void 0!==Ie&&Ie.is_advertisement?"\u0647\u0644 \u062a\u0631\u064a\u062f \u0625\u0644\u063a\u0627\u0621 \u062c\u0639\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0625\u0639\u0644\u0627\u0646\u0627\u064b\u061f":"\u
20647\u0644 \u062a\u0631\u064a\u062f \u062c\u0639\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0625\u0639\u0644\u0627\u0646\u0627\u064b \u0645\u0645\u064a\u0632\u0627\u064b\u061f",isDangerous:!1,onConfirm:async()=>{if((0,P.AB)(null===$e||void 0===$e?void 0:$e.role)){se(!1);try{const t=!(null!==tt&&void 0!==tt&&tt.is_advertisement);await c.firebase.database().ref("posts/".concat(nt)).update({is_advertisement:t,advertisement_timestamp:t?Date.now():null});try{await T.A.updatePostInCache(nt,{is_advertisement:t,advertisement_timestamp:t?Date.now():null})}catch(e){}window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:nt}})),me({isOpen:!0,title:"\u062a\u0645",message:t?"\u062a\u0645 \u062a\u062d\u0648\u064a\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0644\u0625\u0639\u0644\u0627\u0646":"\u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u0625\u0639\u0644\u0627\u0646",type:"success"});try{Re((e=>e?(0,r.A)((0,r.A)({},e),{},{is_advertisement:t}):e))}catch(e){}}catch(t){console.error("Error toggling advertisement for video:",t),me({isOpen:!0,title:"\u062e\u0637\u0623",message:"\u0641\u0634\u0644 \u062a\u063a\u064a\u064a\u0631 \u062d\u0627\u0644\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646",type:"error"})}}},onCancel:()=>se(!1)}),(0,I.jsx)(A.A,{isOpen:fe.isOpen,title:fe.title,message:fe.message,type:fe.type,onClose:()=>me((0,r.A)((0,r.A)({},fe),{},{isOpen:!1}))}),be&&(0,I.jsx)(x.A,{isOpen:be,postId:nt,onClose:()=>we(!1)}),xe&&(0,I.jsx)(S.A,{post:tt,postId:nt,onClose:()=>ke(!1)}),Se&&(0,I.jsx)(k.A,{userId:Se,onClose:()=>Ce(null)})]});return(0,i.createPortal)(It,document.body)}},64816:(e,t,n)=>{var r=n(47251),o=n(37159),i=n(80438),a=n(69394),s=n(56874);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},64830:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]])},65010:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]])},65043:(e,t,n)=>{"use strict";e.exports=n(44288)},65159:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>el});var r=n(22555),o=n(65043),i=n(97950),a=n(23585),s=n(1648),l=n(41024),c=n(75439),u=n(65982),d=n(60940),p=n(47059),h=n(40117),f=n(47174),m=n(59570),_=n(96172),g=n(73546),v=n(81518),y=n(65871),b=n(75012),w=n(54454),x=n(11289),k=n(35896),S=n(13005),C=n(59773),A=n(52222),E=n(89927),j=n(70579);const T=e=>{let{userId:t,type:n="followers",onClose:a}=e;const{userData:s}=(0,o.useContext)(u.Rs),{theme:l}=(0,S.DP)(),[c,d]=(0,o.useState)([]),[p,m]=(0,o.useState)(!0),[_,g]=(0,o.useState)(!1),[v,y]=(0,o.useState)(!0),[b,w]=(0,o.useState)(null),[x,k]=(0,o.useState)(!1),T=(0,o.useRef)(null),P=(0,o.useRef)(!1),N=(0,o.useRef)(!1),I=(0,o.useRef)(null),R=(0,o.useRef)(null),O=(0,o.useRef)(!1),D=(0,o.useRef)(0),M=(0,o.useRef)(null),L=(0,o.useRef)(a);L.current=a;const F=(0,o.useCallback)((()=>{N.current||(N.current=!0,k(!0),(0,E.tu)(T.current,!0),I.current=window.setTimeout((()=>L.current()),250))}),[]);(0,o.useEffect)((()=>{P.current||(T.current=(0,E.GR)("followers-following"),P.current=!0);const e=e=>{var t;(0,E.G0)()||(null===(t=e.state)||void 0===t?void 0:t.instanceId)===T.current||(0,E.Vz)()!==T.current||N.current||((0,E.Xi)(),N.current=!0,k(!0),(0,E.tu)(T.current,!1),I.current=window.setTimeout((()=>L.current()),250),window.setTimeout((()=>(0,E.Ps)()),0))},t=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e),I.current&&window.clearTimeout(I.current),document.body.style.overflow=t}}),[]);const z=(0,o.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(O.current&&!e)return;e&&(D.current+=1,R.current=null,O.current=!1);const o=D.current,i=R.current;O.current=!0,e?m(!0):g(!0);try{const a=h.firebase.database().ref("kunaiu_bank/".concat(t,"/").concat(n)),s=i?a.orderByKey().endAt(i).limitToLast(27):a.orderByKey().limitToLast(26),l=await s.once("value");if(o!==D.current)return;const c=[];l.forEach((e=>{e.key!==i&&c.push(e.key)}));const u=c.slice(-25),p=c.length>u.length,m=[...u].reverse(),_=await Promise.all(m.map((async e=>{const t=await f.A.getProfile(e);return t?(0,r.A)({id:e},t):null})));if(o!==D.current)return;R.current=u[0]||null,y(p),d((t=>{const n=_.filter(Boolean);if(e)return n;const r=new Set(t.map((e=>e.id)));return[...t,...n.filter((e=>!r.has(e.id)))]}))}catch(a){console.error("Error fetching users:",a),o===D.current&&y(!1)}finally{o===D.current&&(O.current=!1,m(!1),g(!1))}}),[t,n]);(0,o.useEffect)((()=>(d([]),y(!0),z(!0),()=>{D.current+=1,O.current=!1})),[z]),(0,o.useEffect)((()=>{const e=M.current;if(!e||p||_||!v||"undefined"===typeof IntersectionObserver)return;const t=new IntersectionObserver((e=>{let[t]=e;t.isIntersecting&&z(!1)}),{root:e.closest(".profile-modal-body"),rootMargin:"200px 0px"});return t.observe(e),()=>t.disconnect()}),[v,p,_,z]);const B="followers"===n?"\u0627\u0644\u0645\u062a\u0627\u0628\u0639\u0648\u0646":"\u064a\u064f\u062a\u0627\u0628\u0650\u0639";return(0,i.createPortal)((0,j.jsxs)("div",{className:"profile-modal-overlay ".concat(x?"closing-overlay":""),onClick:e=>{e.target===e.currentTarget&&F()},style:{zIndex:(0,E.v7)(1e3)},children:[(0,j.jsxs)("div",{className:"profile-modal-content ".concat(x?"closing":""," ").concat("dark"===l?"theme-dark-space":"theme-light-space"),onClick:e=>e.stopPropagation(),children:[(0,j.jsx)(C.A,{title:B,onBack:F,className:"dark"===l?"theme-dark-item":"theme-light-item"}),(0,j.jsx)("div",{className:"profile-modal-body",children:p?(0,j.jsx)("div",{className:"loading",style:{color:"dark"===l?"#e6eef6":"#666",padding:24},children:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644..."}):(0,j.jsx)("div",{className:"notifications-list ".concat("dark"===l?"theme-dark-space":""),dir:"rtl",children:c.length>0?(0,j.jsxs)(j.Fragment,{children:[c.map((e=>{const t=(null===s||void 0===s?void 0:s.id)&&e.following&&e.following[s.id];return(0,j.jsxs)("div",{className:"follower-item ".concat("dark"===l?"theme-dark-item":"theme-light-item"),onClick:()=>w(e.id),style:{cursor:"pointer",borderBottomColor:"dark"===l?"#222":"#f0f0f0"},children:[(0,j.jsx)("div",{className:"notification-avatar",children:(0,j.jsx)("img",{src:e.sensitive_img?"/assets/images/global/user_sensitive_img_v2.jpg":e.img||"/assets/images/global/user_v2.jpg",alt:"\u0635\u0648\u0631\u0629 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",className:"user-avatar"})}),(0,j.jsx)("div",{className:"notification-content",children:(0,j.jsxs)("div",{style:{marginRight:"10px"},className:"notification-text",children:[(0,j.jsx)("span",{className:"follow-user-name",style:{color:"dark"===l?"#e6eef6":"#333"},children:e.name}),(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,j.jsx)("span",{className:"user-tag",style:{color:"dark"===l?"#aaa":"#666"},children:e.tag||"no-tag"}),t&&e.id!==(null===s||void 0===s?void 0:s.id)&&(0,j.jsx)("span",{style:{fontSize:"11px",backgroundColor:"dark"===l?"rgba(255,255,255,0.1)":"#f0f0f0",color:"dark"===l?"#ccc":"#666",padding:"2px 6px",borderRadius:"4px",lineHeight:1},children:"\u064a\u062a\u0627\u0628\u0639\u0643"})]})]})})]},e.id)})),v&&(0,j.jsx)("button",{ref:M,type:"button",className:"followers-load-more",onClick:()=>z(!1),disabled:_,children:_?"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0632\u064a\u062f...":"\u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0645\u0632\u064a\u062f"})]}
2):(0,j.jsxs)("div",{className:"no-data",style:{color:"dark"===l?"#aaa":"#666"},children:["\u0644\u0627 \u064a\u0648\u062c\u062f ",B.toLowerCase()," \u062d\u062a\u0649 \u0627\u0644\u0622\u0646"]})})})]}),b&&(0,j.jsx)(A.A,{userId:b,onClose:()=>w(null),disableHistory:!1})]}),document.body)};var P=n(10624),N=n(86490),I=n(57514),R={},O=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(R[o])return R[o];var i=function(e,t,n,r){if("undefined"===typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return R[o]=i,i},D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M=function(e){var t=e.white,n=e.grey,r=e.size,i=e.renderers,a=e.borderRadius,s=e.boxShadow,l=e.children,c=(0,I.Ay)({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+O(t,n,r,i.canvas)+") center left"}}});return(0,o.isValidElement)(l)?o.cloneElement(l,D({},l.props,{style:D({},l.props.style,c.grid)})):o.createElement("div",{style:c.grid})};M.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};const L=M;var F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function B(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var q=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=B(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=function(e,t,n,r,o){var i=o.clientWidth,a=o.clientHeight,s="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,c=s-(o.getBoundingClientRect().left+window.pageXOffset),u=l-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var d=void 0;if(d=u<0?0:u>a?1:Math.round(100*u/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var p=void 0;if(r!==(p=c<0?0:c>i?1:Math.round(100*c/i)/100))return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},B(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),z(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,I.Ay)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}}
2,overwrite:F({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return o.createElement("div",{style:n.alpha},o.createElement("div",{style:n.checkboard},o.createElement(L,{renderers:this.props.renderers})),o.createElement("div",{style:n.gradient}),o.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.createElement("div",{style:n.pointer},this.props.pointer?o.createElement(this.props.pointer,this.props):o.createElement("div",{style:n.slider}))))}}]),t}(o.PureComponent||o.Component);const U=q;var H=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var W=[38,40],V=1;const K=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,W.indexOf(t)>-1)){var o=n.getArrowOffset(),i=38===e.keyCode?r+o:r-o;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+V++,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
2(t,e),H(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,I.Ay)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.createElement("div",{style:t.wrap},o.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(o.PureComponent||o.Component);var G=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Q=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=function(e,t,n,r){var o=r.clientWidth,i=r.clientHeight,a="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(r.getBoundingClientRect().left+window.pageXOffset),c=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var u=void 0;if(u=c<0?359:c>i?0:360*(-100*c/i+100)/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(d=l<0?0:l>o?359:100*l/o*360/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},Y(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),G(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,I.Ay)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxSh
2adow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return o.createElement("div",{style:r.hue},o.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),o.createElement("div",{style:r.pointer},this.props.pointer?o.createElement(this.props.pointer,this.props):o.createElement("div",{style:r.slider}))))}}]),t}(o.PureComponent||o.Component);const X=Q;var $=n(65173),J=n.n($);const Z=function(){this.__data__=[],this.size=0};const ee=function(e,t){return e===t||e!==e&&t!==t};const te=function(e,t){for(var n=e.length;n--;)if(ee(e[n][0],t))return n;return-1};var ne=Array.prototype.splice;const re=function(e){var t=this.__data__,n=te(t,e);return!(n<0)&&(n==t.length-1?t.pop():ne.call(t,n,1),--this.size,!0)};const oe=function(e){var t=this.__data__,n=te(t,e);return n<0?void 0:t[n][1]};const ie=function(e){return te(this.__data__,e)>-1};const ae=function(e,t){var n=this.__data__,r=te(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function se(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}se.prototype.clear=Z,se.prototype.delete=re,se.prototype.get=oe,se.prototype.has=ie,se.prototype.set=ae;const le=se;const ce=function(){this.__data__=new le,this.size=0};const ue=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const de=function(e){return this.__data__.get(e)};const pe=function(e){return this.__data__.has(e)};const he="object"==typeof global&&global&&global.Object===Object&&global;var fe="object"==typeof self&&self&&self.Object===Object&&self;const me=he||fe||Function("return this")();const _e=me.Symbol;var ge=Object.prototype,ve=ge.hasOwnProperty,ye=ge.toString,be=_e?_e.toStringTag:void 0;const we=function(e){var t=ve.call(e,be),n=e[be];try{e[be]=void 0;var r=!0}catch(i){}var o=ye.call(e);return r&&(t?e[be]=n:delete e[be]),o};var xe=Object.prototype.toString;const ke=function(e){return xe.call(e)};var Se=_e?_e.toStringTag:void 0;const Ce=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Se&&Se in Object(e)?we(e):ke(e)};const Ae=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Ee=function(e){if(!Ae(e))return!1;var t=Ce(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const je=me["__core-js_shared__"];var Te=function(){var e=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();const Pe=function(e){return!!Te&&Te in e};var Ne=Function.prototype.toString;const Ie=function(e){if(null!=e){try{return Ne.call(e)}catch(t){}try{return e+""}catch(t){}}return""};var Re=/^\[object .+?Constructor\]$/,Oe=Function.prototype,De=Object.prototype,Me=Oe.toString,Le=De.hasOwnProperty,Fe=RegExp("^"+Me.call(Le).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ze=function(e){return!(!Ae(e)||Pe(e))&&(Ee(e)?Fe:Re).test(Ie(e))};const Be=function(e,t){return null==e?void 0:e[t]};const qe=function(e,t){var n=Be(e,t);return ze(n)?n:void 0};const Ue=qe(me,"Map");const He=qe(Object,"create");const We=function(){this.__data__=He?He(null):{},this.size=0};const Ve=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Ke=Object.prototype.hasOwnProperty;const Ge=function(e){var t=this.__data__;if(He){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ke.call(t,e)?t[e]:void 0};var Ye=Object.prototype.hasOwnProperty;const Qe=function(e){var t=this.__data__;return He?void 0!==t[e]:Ye.call(t,e)};const Xe=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=He&&void 0===t?"__lodash_hash_undefined__":t,this};function $e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}$e.prototype.clear=We,$e.prototype.delete=Ve,$e.prototype.get=Ge,$e.prototype.has=Qe,$e.prototype.set=Xe;const Je=$e;const Ze=function(){this.size=0,this.__data__={hash:new Je,map:new(Ue||le),string:new Je}};const et=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const tt=function(e,t){var n=e.__data__;return et(t)?n["string"==typeof t?"string":"hash"]:n.map};const nt=function(e){var t=tt(this,e).delete(e);return this.size-=t?1:0,t};const rt=function(e){return tt(this,e).get(e)};const ot=function(e){return tt(this,e).has(e)};const it=function(e,t){var n=tt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function at(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}at.prototype.clear=Ze,at.prototype.delete=nt,at.prototype.get=rt,at.prototype.has=ot,at.prototype.set=it;const st=at;const lt=function(e,t){var n=this.__data__;if(n instanceof le){var r=n.__data__;if(!Ue||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new st(r)}return n.set(e,t),this.size=n.size,this};function ct(e){var t=this.__data__=new le(e);this.size=t.size}ct.prototype.clear=ce,ct.prototype.delete=ue,ct.prototype.get=de,ct.prototype.has=pe,ct.prototype.set=lt;const ut=ct;const dt=function(){try{var e=qe(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();
vendor: 4,722 bytes, line 2
2const pt=function(e,t,n){"__proto__"==t&&dt?dt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};const ht=function(e,t,n){(void 0!==n&&!ee(e[t],n)||void 0===n&&!(t in e))&&pt(e,t,n)};const ft=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}();var mt="object"==typeof exports&&exports&&!exports.nodeType&&exports,_t=mt&&"object"==typeof module&&module&&!module.nodeType&&module,gt=_t&&_t.exports===mt?me.Buffer:void 0,vt=gt?gt.allocUnsafe:void 0;const yt=function(e,t){if(t)return e.slice();var n=e.length,r=vt?vt(n):new e.constructor(n);return e.copy(r),r};const bt=me.Uint8Array;const wt=function(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t};const xt=function(e,t){var n=t?wt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const kt=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var St=Object.create;const Ct=function(){function e(){}return function(t){if(!Ae(t))return{};if(St)return St(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const At=function(e,t){return function(n){return e(t(n))}};const Et=At(Object.getPrototypeOf,Object);var jt=Object.prototype;const Tt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||jt)};const Pt=function(e){return"function"!=typeof e.constructor||Tt(e)?{}:Ct(Et(e))};const Nt=function(e){return null!=e&&"object"==typeof e};const It=function(e){return Nt(e)&&"[object Arguments]"==Ce(e)};var Rt=Object.prototype,Ot=Rt.hasOwnProperty,Dt=Rt.propertyIsEnumerable;const Mt=It(function(){return arguments}())?It:function(e){return Nt(e)&&Ot.call(e,"callee")&&!Dt.call(e,"callee")};const Lt=Array.isArray;const Ft=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};const zt=function(e){return null!=e&&Ft(e.length)&&!Ee(e)};const Bt=function(e){return Nt(e)&&zt(e)};const qt=function(){return!1};var Ut="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ht=Ut&&"object"==typeof module&&module&&!module.nodeType&&module,Wt=Ht&&Ht.exports===Ut?me.Buffer:void 0;const Vt=(Wt?Wt.isBuffer:void 0)||qt;var Kt=Function.prototype,Gt=Object.prototype,Yt=Kt.toString,Qt=Gt.hasOwnProperty,Xt=Yt.call(Object);const $t=function(e){if(!Nt(e)||"[object Object]"!=Ce(e))return!1;var t=Et(e);if(null===t)return!0;var n=Qt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Yt.call(n)==Xt};var Jt={};Jt["[object Float32Array]"]=Jt["[object Float64Array]"]=Jt["[object Int8Array]"]=Jt["[object Int16Array]"]=Jt["[object Int32Array]"]=Jt["[object Uint8Array]"]=Jt["[object Uint8ClampedArray]"]=Jt["[object Uint16Array]"]=Jt["[object Uint32Array]"]=!0,Jt["[object Arguments]"]=Jt["[object Array]"]=Jt["[object ArrayBuffer]"]=Jt["[object Boolean]"]=Jt["[object DataView]"]=Jt["[object Date]"]=Jt["[object Error]"]=Jt["[object Function]"]=Jt["[object Map]"]=Jt["[object Number]"]=Jt["[object Object]"]=Jt["[object RegExp]"]=Jt["[object Set]"]=Jt["[object String]"]=Jt["[object WeakMap]"]=!1;const Zt=function(e){return Nt(e)&&Ft(e.length)&&!!Jt[Ce(e)]};const en=function(e){return function(t){return e(t)}};var tn="object"==typeof exports&&exports&&!exports.nodeType&&exports,nn=tn&&"object"==typeof module&&module&&!module.nodeType&&module,rn=nn&&nn.exports===tn&&he.process,on=function(){try{var e=nn&&nn.require&&nn.require("util").types;return e||rn&&rn.binding&&rn.binding("util")}catch(t){}}();var an=on&&on.isTypedArray;const sn=an?en(an):Zt;const ln=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]};var cn=Object.prototype.hasOwnProperty;const un=function(e,t,n){var r=e[t];cn.call(e,t)&&ee(r,n)&&(void 0!==n||t in e)||pt(e,t,n)};const dn=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?pt(n,s,l):un(n,s,l)}return n};const pn=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var hn=/^(?:0|[1-9]\d*)$/;const fn=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&hn.test(e))&&e>-1&&e%1==0&&e<t};var mn=Object.prototype.hasOwnProperty;const _n=function(e,t){var n=Lt(e),r=!n&&Mt(e),o=!n&&!r&&Vt(e),i=!n&&!r&&!o&&sn(e),a=n||r||o||i,s=a?pn(e.length,String):[],l=s.length;for(var c in e)!t&&!mn.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||fn(c,l))||s.push(c);return s};const gn=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var vn=Object.prototype.hasOwnProperty;const yn=function(e){if(!Ae(e))return gn(e);var t=Tt(e),n=[];
2for(var r in e)("constructor"!=r||!t&&vn.call(e,r))&&n.push(r);return n};const bn=function(e){return zt(e)?_n(e,!0):yn(e)};const wn=function(e){return dn(e,bn(e))};const xn=function(e,t,n,r,o,i,a){var s=ln(e,n),l=ln(t,n),c=a.get(l);if(c)ht(e,n,c);else{var u=i?i(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var p=Lt(l),h=!p&&Vt(l),f=!p&&!h&&sn(l);u=l,p||h||f?Lt(s)?u=s:Bt(s)?u=kt(s):h?(d=!1,u=yt(l,!0)):f?(d=!1,u=xt(l,!0)):u=[]:$t(l)||Mt(l)?(u=s,Mt(s)?u=wn(s):Ae(s)&&!Ee(s)||(u=Pt(l))):d=!1}d&&(a.set(l,u),o(u,l,r,i,a),a.delete(l)),ht(e,n,u)}};const kn=function e(t,n,r,o,i){t!==n&&ft(n,(function(a,s){if(i||(i=new ut),Ae(a))xn(t,n,s,r,e,o,i);else{var l=o?o(ln(t,s),a,s+"",t,n,i):void 0;void 0===l&&(l=a),ht(t,s,l)}}),bn)};const Sn=function(e){return e};const Cn=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var An=Math.max;const En=function(e,t,n){return t=An(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=An(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),Cn(e,this,s)}};const jn=function(e){return function(){return e}};const Tn=dt?function(e,t){return dt(e,"toString",{configurable:!0,enumerable:!1,value:jn(t),writable:!0})}:Sn;var Pn=Date.now;const Nn=function(e){var t=0,n=0;return function(){var r=Pn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Tn);const In=function(e,t){return Nn(En(e,t,Sn),e+"")};const Rn=function(e,t,n){if(!Ae(n))return!1;var r=typeof t;return!!("number"==r?zt(n)&&fn(t,n.length):"string"==r&&t in n)&&ee(n[t],e)};const On=function(e){return In((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&Rn(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t}))}((function(e,t,n){kn(e,t,n)}));var Dn=function(e){var t=e.zDepth,n=e.radius,r=e.background,i=e.children,a=e.styles,s=void 0===a?{}:a,l=(0,I.Ay)(On({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":1===t});return o.createElement("div",{style:l.wrap},o.createElement("div",{style:l.bg}),o.createElement("div",{style:l.content},i))};Dn.propTypes={background:J().string,zDepth:J().oneOf([0,1,2,3,4,5]),radius:J().number,styles:J().object},Dn.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};const Mn=Dn;const Ln=function(){return me.Date.now()};var Fn=/\s/;const zn=function(e){for(var t=e.length;t--&&Fn.test(e.charAt(t)););return t};var Bn=/^\s+/;const qn=function(e){return e?e.slice(0,zn(e)+1).replace(Bn,""):e};const Un=function(e){return"symbol"==typeof e||Nt(e)&&"[object Symbol]"==Ce(e)};var Hn=/^[-+]0x[0-9a-f]+$/i,Wn=/^0b[01]+$/i,Vn=/^0o[0-7]+$/i,Kn=parseInt;const Gn=function(e){if("number"==typeof e)return e;if(Un(e))return NaN;if(Ae(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ae(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qn(e);var n=Wn.test(e);return n||Vn.test(e)?Kn(e.slice(2),n?2:8):Hn.test(e)?NaN:+e};var Yn=Math.max,Qn=Math.min;const Xn=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function m(){var e=Ln();if(f(e))return _(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?Qn(n,i-(e-c)):n}(e))}function _(e){return s=void 0,p&&r?h(e):(r=o=void 0,a)}function g(){var e=Ln(),n=f(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?h(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=Gn(t)||0,Ae(n)&&(u=!!n.leading,i=(d="maxWait"in n)?Yn(Gn(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},g.flush=function(){return void 0===s?a:_(Ln())},g};const $n=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Ae(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Xn(e,t,{leading:r,maxWait:t,trailing:o})};var Jn=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Zn=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"===typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,i=r.height,a="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(n.getBoundingClientRect().left+window.pageXOffset),c=s-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>o&&(l=o),c<0?c=0:c>i&&(c=i);var u=l/o,d=1-c/i;return{h:t.h,s:u,v:d,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=$n((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
vendor: 5,606 bytes, line 2
2(t,e),Jn(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,a=t.pointer,s=t.circle,l=(0,I.Ay)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:a,circle:s}},{custom:!!this.props.style});return o.createElement("div",{style:l.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),o.createElement("div",{style:l.white,className:"saturation-white"},o.createElement("div",{style:l.black,className:"saturation-black"}),o.createElement("div",{style:l.pointer},this.props.pointer?o.createElement(this.props.pointer,this.props):o.createElement("div",{style:l.circle}))))}}]),t}(o.PureComponent||o.Component);const er=Zn;const tr=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};const nr=At(Object.keys,Object);var rr=Object.prototype.hasOwnProperty;const or=function(e){if(!Tt(e))return nr(e);var t=[];for(var n in Object(e))rr.call(e,n)&&"constructor"!=n&&t.push(n);return t};const ir=function(e){return zt(e)?_n(e):or(e)};const ar=function(e,t){return function(n,r){if(null==n)return n;if(!zt(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}((function(e,t){return e&&ft(e,t,ir)}));const sr=function(e){return"function"==typeof e?e:Sn};const lr=function(e,t){return(Lt(e)?tr:ar)(e,sr(t))};function cr(e){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cr(e)}var ur=/^\s+/,dr=/\s+$/;function pr(e,t){if(t=t||{},(e=e||"")instanceof pr)return e;if(!(this instanceof pr))return new pr(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(ur,"").replace(dr,"").toLowerCase();var t,n=!1;if(Tr[e])e=Tr[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=zr.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=zr.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=zr.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=zr.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=zr.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=zr.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=zr.hex8.exec(e))return{r:Or(t[1]),g:Or(t[2]),b:Or(t[3]),a:Fr(t[4]),format:n?"name":"hex8"};if(t=zr.hex6.exec(e))return{r:Or(t[1]),g:Or(t[2]),b:Or(t[3]),format:n?"name":"hex"};if(t=zr.hex4.exec(e))return{r:Or(t[1]+""+t[1]),g:Or(t[2]+""+t[2]),b:Or(t[3]+""+t[3]),a:Fr(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=zr.hex3.exec(e))return{r:Or(t[1]+""+t[1]),g:Or(t[2]+""+t[2]),b:Or(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==cr(e)&&(Br(e.r)&&Br(e.g)&&Br(e.b)?(l=e.r,c=e.g,u=e.b,t={r:255*Ir(l,255),g:255*Ir(c,255),b:255*Ir(u,255)},a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Br(e.h)&&Br(e.s)&&Br(e.v)?(r=Mr(e.s),o=Mr(e.v),t=function(e,t,n){e=6*Ir(e,360),t=Ir(t,100),n=Ir(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,a,i,i,s,n][l],u=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return{r:255*c,g:255*u,b:255*d}}(e.h,r,o),a=!0,s="hsv"):Br(e.h)&&Br(e.s)&&Br(e.l)&&(r=Mr(e.s),i=Mr(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=Ir(e,360),t=Ir(t,100),n=Ir(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a));var l,c,u;return n=Nr(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function hr(e,t,n){e=Ir(e,255),t=Ir(t,255),n=Ir(n,255);
vendor: 1,924 bytes, line 2
2var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:s}}function fr(e,t,n){e=Ir(e,255),t=Ir(t,255),n=Ir(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:s}}function mr(e,t,n,r){var o=[Dr(Math.round(e).toString(16)),Dr(Math.round(t).toString(16)),Dr(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function _r(e,t,n,r){return[Dr(Lr(r)),Dr(Math.round(e).toString(16)),Dr(Math.round(t).toString(16)),Dr(Math.round(n).toString(16))].join("")}function gr(e,t){t=0===t?0:t||10;var n=pr(e).toHsl();return n.s-=t/100,n.s=Rr(n.s),pr(n)}function vr(e,t){t=0===t?0:t||10;var n=pr(e).toHsl();return n.s+=t/100,n.s=Rr(n.s),pr(n)}function yr(e){return pr(e).desaturate(100)}function br(e,t){t=0===t?0:t||10;var n=pr(e).toHsl();return n.l+=t/100,n.l=Rr(n.l),pr(n)}function wr(e,t){t=0===t?0:t||10;var n=pr(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),pr(n)}function xr(e,t){t=0===t?0:t||10;var n=pr(e).toHsl();return n.l-=t/100,n.l=Rr(n.l),pr(n)}function kr(e,t){var n=pr(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,pr(n)}function Sr(e){var t=pr(e).toHsl();return t.h=(t.h+180)%360,pr(t)}function Cr(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=pr(e).toHsl(),r=[pr(e)],o=360/t,i=1;i<t;i++)r.push(pr({h:(n.h+i*o)%360,s:n.s,l:n.l}));return r}function Ar(e){var t=pr(e).toHsl(),n=t.h;
vendor: 6,274 bytes, line 2
2return[pr(e),pr({h:(n+72)%360,s:t.s,l:t.l}),pr({h:(n+216)%360,s:t.s,l:t.l})]}function Er(e,t,n){t=t||6,n=n||30;var r=pr(e).toHsl(),o=360/n,i=[pr(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(pr(r));return i}function jr(e,t){t=t||6;for(var n=pr(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(pr({h:r,s:o,v:i})),i=(i+s)%1;return a}pr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=Nr(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=fr(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=fr(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=hr(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=hr(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return mr(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[Dr(Math.round(e).toString(16)),Dr(Math.round(t).toString(16)),Dr(Math.round(n).toString(16)),Dr(Lr(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Ir(this._r,255))+"%",g:Math.round(100*Ir(this._g,255))+"%",b:Math.round(100*Ir(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Ir(this._r,255))+"%, "+Math.round(100*Ir(this._g,255))+"%, "+Math.round(100*Ir(this._b,255))+"%)":"rgba("+Math.round(100*Ir(this._r,255))+"%, "+Math.round(100*Ir(this._g,255))+"%, "+Math.round(100*Ir(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Pr[mr(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+_r(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=pr(e);n="#"+_r(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return pr(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(br,arguments)},brighten:function(){return this._applyModification(wr,arguments)},darken:function(){return this._applyModification(xr,arguments)},desaturate:function(){return this._applyModification(gr,arguments)},saturate:function(){return this._applyModification(vr,arguments)},greyscale:function(){return this._applyModification(yr,arguments)},spin:function(){return this._applyModification(kr,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Er,arguments)},complement:function(){return this._applyCombination(Sr,arguments)},monochromatic:function(){return this._applyCombination(jr,arguments)},splitcomplement:function(){return this._applyCombination(Ar,arguments)},triad:function(){return this._applyCombination(Cr,[3])},tetrad:function(){return this._applyCombination(Cr,[4])}},pr.fromRatio=function(e,t){if("object"==cr(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:Mr(e[r]));e=n}return pr(e,t)},pr.equals=function(e,t){return!(!e||!t)&&pr(e).toRgbString()==pr(t).toRgbString()},pr.random=function(){return pr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},pr.mix=function(e,t,n){n=0===n?0:n||50;var r=pr(e).toRgb(),o=pr(t).toRgb(),i=n/100;return pr({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},pr.readability=function(e,t){var n=pr(e),r=pr(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},pr.isReadable=function(e,t,n){var r,o,i=pr.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},pr.mostReadable=function(e,t,n){var r,o,i,a,s=null,l=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;
vendor: 1,589 bytes, line 2
2for(var c=0;c<t.length;c++)(r=pr.readability(e,t[c]))>l&&(l=r,s=pr(t[c]));return pr.isReadable(e,s,{level:i,size:a})||!o?s:(n.includeFallbackColors=!1,pr.mostReadable(e,["#fff","#000"],n))};var Tr=pr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
20",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Pr=pr.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(Tr);function Nr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ir(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Rr(e){return Math.min(1,Math.max(0,e))}function Or(e){return parseInt(e,16)}function Dr(e){return 1==e.length?"0"+e:""+e}function Mr(e){return e<=1&&(e=100*e+"%"),e}function Lr(e){return Math.round(255*parseFloat(e)).toString(16)}function Fr(e){return Or(e)/255}var zr=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"
2+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Br(e){return!!zr.CSS_UNIT.exec(e)}var qr=function(e){var t=0,n=0;return lr(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},Ur=function(e,t){var n=e.hex?pr(e.hex):pr(e),r=n.toHsl(),o=n.toHsv(),i=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===a&&0===i.a?"transparent":"#"+a,rgb:i,hsv:o,oldHue:e.h||t||r.h,source:e.source}},Hr=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&pr(e).isValid()},Wr=function(e){if(!e)return"#fff";var t=Ur(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},Vr=function(e,t){return pr(t+" ("+e.replace("\xb0","")+")")._ok},Kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gr=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();const Yr=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(qr(e)){var r=Ur(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(qr(e)){var r=Ur(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=Kr({},Ur(e.color,0)),t.debounce=Xn((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),Gr(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),o.createElement(e,Kr({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return Kr({},Ur(e.color,t.oldHue))}}]),n}(o.PureComponent||o.Component);return t.propTypes=Kr({},e.propTypes),t.defaultProps=Kr({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};var Qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xr=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function $r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};const Zr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return t=n=$r(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(i))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},$r(n,t)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
2(r,n),Xr(r,[{key:"render",value:function(){return o.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},o.createElement(e,Qr({},this.props,this.state)))}}]),r}(o.Component)}((function(e){var t=e.color,n=e.style,r=e.onClick,i=void 0===r?function(){}:r,a=e.onHover,s=e.title,l=void 0===s?t:s,c=e.children,u=e.focus,d=e.focusStyle,p=void 0===d?{}:d,h="transparent"===t,f=(0,I.Ay)({default:{swatch:Jr({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,u?p:{})}}),m={};return a&&(m.onMouseOver=function(e){return a(t,e)}),o.createElement("div",Jr({style:f.swatch,onClick:function(e){return i(t,e)},title:l,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&i(t,e)}},m),c,h&&o.createElement(L,{borderRadius:f.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))}));const eo=function(e){var t=e.direction,n=(0,I.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return o.createElement("div",{style:n.picker})};var to=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no=function(e){var t=e.rgb,n=e.hsl,r=e.width,i=e.height,a=e.onChange,s=e.direction,l=e.style,c=e.renderers,u=e.pointer,d=e.className,p=void 0===d?"":d,h=(0,I.Ay)({default:{picker:{position:"relative",width:r,height:i},alpha:{radius:"2px",style:l}}});return o.createElement("div",{style:h.picker,className:"alpha-picker "+p},o.createElement(U,to({},h.alpha,{rgb:t,hsl:n,pointer:u,renderers:c,onChange:a,direction:s})))};no.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:eo};Yr(no);const ro=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o};const oo=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const io=function(e){return this.__data__.has(e)};function ao(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new st;++t<n;)this.add(e[t])}ao.prototype.add=ao.prototype.push=oo,ao.prototype.has=io;const so=ao;const lo=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};const co=function(e,t){return e.has(t)};const uo=function(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,h=2&n?new so:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var f=e[d],m=t[d];if(r)var _=a?r(m,f,d,t,e,i):r(f,m,d,e,t,i);if(void 0!==_){if(_)continue;p=!1;break}if(h){if(!lo(t,(function(e,t){if(!co(h,t)&&(f===e||o(f,e,n,r,i)))return h.push(t)}))){p=!1;break}}else if(f!==m&&!o(f,m,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p};const po=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};const ho=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var fo=_e?_e.prototype:void 0,mo=fo?fo.valueOf:void 0;const _o=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new bt(e),new bt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ee(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=po;case"[object Set]":var l=1&r;if(s||(s=ho),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=uo(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(mo)return mo.call(e)==mo.call(t)}return!1};const go=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};const vo=function(e,t,n){var r=t(e);return Lt(e)?r:go(r,n(e))};const yo=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};const bo=function(){return[]};var wo=Object.prototype.propertyIsEnumerable,xo=Object.getOwnPropertySymbols;const ko=xo?function(e){return null==e?[]:(e=Object(e),yo(xo(e),(function(t){return wo.call(e,t)})))}:bo;const So=function(e){return vo(e,ir,ko)};
vendor: 1,679 bytes, line 2
2var Co=Object.prototype.hasOwnProperty;const Ao=function(e,t,n,r,o,i){var a=1&n,s=So(e),l=s.length;if(l!=So(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Co.call(t,u)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var h=!0;i.set(e,t),i.set(t,e);for(var f=a;++c<l;){var m=e[u=s[c]],_=t[u];if(r)var g=a?r(_,m,u,t,e,i):r(m,_,u,e,t,i);if(!(void 0===g?m===_||o(m,_,n,r,i):g)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(h=!1)}return i.delete(e),i.delete(t),h};const Eo=qe(me,"DataView");const jo=qe(me,"Promise");const To=qe(me,"Set");const Po=qe(me,"WeakMap");var No="[object Map]",Io="[object Promise]",Ro="[object Set]",Oo="[object WeakMap]",Do="[object DataView]",Mo=Ie(Eo),Lo=Ie(Ue),Fo=Ie(jo),zo=Ie(To),Bo=Ie(Po),qo=Ce;(Eo&&qo(new Eo(new ArrayBuffer(1)))!=Do||Ue&&qo(new Ue)!=No||jo&&qo(jo.resolve())!=Io||To&&qo(new To)!=Ro||Po&&qo(new Po)!=Oo)&&(qo=function(e){var t=Ce(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ie(n):"";if(r)switch(r){case Mo:return Do;case Lo:return No;case Fo:return Io;case zo:return Ro;case Bo:return Oo}return t});const Uo=qo;var Ho="[object Arguments]",Wo="[object Array]",Vo="[object Object]",Ko=Object.prototype.hasOwnProperty;const Go=function(e,t,n,r,o,i){var a=Lt(e),s=Lt(t),l=a?Wo:Uo(e),c=s?Wo:Uo(t),u=(l=l==Ho?Vo:l)==Vo,d=(c=c==Ho?Vo:c)==Vo,p=l==c;if(p&&Vt(e)){if(!Vt(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new ut),a||sn(e)?uo(e,t,n,r,o,i):_o(e,t,l,n,r,o,i);if(!(1&n)){var h=u&&Ko.call(e,"__wrapped__"),f=d&&Ko.call(t,"__wrapped__");
2if(h||f){var m=h?e.value():e,_=f?t.value():t;return i||(i=new ut),o(m,_,n,r,i)}}return!!p&&(i||(i=new ut),Ao(e,t,n,r,o,i))};const Yo=function e(t,n,r,o,i){return t===n||(null==t||null==n||!Nt(t)&&!Nt(n)?t!==t&&n!==n:Go(t,n,r,o,e,i))};const Qo=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new ut;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?Yo(u,c,3,r,d):p))return!1}}return!0};const Xo=function(e){return e===e&&!Ae(e)};const $o=function(e){for(var t=ir(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Xo(o)]}return t};const Jo=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};const Zo=function(e){var t=$o(e);return 1==t.length&&t[0][2]?Jo(t[0][0],t[0][1]):function(n){return n===e||Qo(n,e,t)}};var ei=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ti=/^\w*$/;const ni=function(e,t){if(Lt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Un(e))||(ti.test(e)||!ei.test(e)||null!=t&&e in Object(t))};function ri(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ri.Cache||st),n}ri.Cache=st;const oi=ri;var ii=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ai=/\\(\\)?/g;const si=function(e){var t=oi(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ii,(function(e,n,r,o){t.push(r?o.replace(ai,"$1"):n||e)})),t}));var li=_e?_e.prototype:void 0,ci=li?li.toString:void 0;const ui=function e(t){if("string"==typeof t)return t;if(Lt(t))return ro(t,e)+"";if(Un(t))return ci?ci.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const di=function(e){return null==e?"":ui(e)};const pi=function(e,t){return Lt(e)?e:ni(e,t)?[e]:si(di(e))};const hi=function(e){if("string"==typeof e||Un(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};const fi=function(e,t){for(var n=0,r=(t=pi(t,e)).length;null!=e&&n<r;)e=e[hi(t[n++])];return n&&n==r?e:void 0};const mi=function(e,t,n){var r=null==e?void 0:fi(e,t);return void 0===r?n:r};const _i=function(e,t){return null!=e&&t in Object(e)};const gi=function(e,t,n){for(var r=-1,o=(t=pi(t,e)).length,i=!1;++r<o;){var a=hi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ft(o)&&fn(a,o)&&(Lt(e)||Mt(e))};const vi=function(e,t){return null!=e&&gi(e,t,_i)};const yi=function(e,t){return ni(e)&&Xo(t)?Jo(hi(e),t):function(n){var r=mi(n,e);return void 0===r&&r===t?vi(n,e):Yo(t,r,3)}};const bi=function(e){return function(t){return null==t?void 0:t[e]}};const wi=function(e){return function(t){return fi(t,e)}};const xi=function(e){return ni(e)?bi(hi(e)):wi(e)};const ki=function(e){return"function"==typeof e?e:null==e?Sn:"object"==typeof e?Lt(e)?yi(e[0],e[1]):Zo(e):xi(e)};const Si=function(e,t){var n=-1,r=zt(e)?Array(e.length):[];return ar(e,(function(e,o,i){r[++n]=t(e,o,i)})),r};const Ci=function(e,t){return(Lt(e)?ro:Si)(e,ki(t,3))};const Ai=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,i=(0,I.Ay)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return o.createElement("div",{style:i.swatches},Ci(t,(function(e){return o.createElement(Zr,{key:e,color:e,style:i.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})})),o.createElement("div",{style:i.clear}))};var Ei=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,i=e.colors,a=e.width,s=e.triangle,l=e.styles,c=void 0===l?{}:l,u=e.className,d=void 0===u?"":u,p="transparent"===r,h=function(e,n){Hr(e)&&t({hex:e,source:"hex"},n)},f=(0,I.Ay)(On({default:{card:{width:a,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:Wr(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},c),{"hide-triangle":"hide"===s});return o.createElement("div",{style:f.card,className:"block-picker "+d},o.createElement("div",{style:f.triangle}),o.createElement("div",{style:f.head},p&&o.createElement(L,{borderRadius:"6px 6px 0 0"}),o.createElement("div",{style:f.label},r)),o.createElement("div",{style:f.body},o.createElement(Ai,{colors:i,onClick:h,onSwatchHover:n}),o.createElement(K,{style:{input:f.input},value:r,onChange:h})))};
2Ei.propTypes={width:J().oneOfType([J().string,J().number]),colors:J().arrayOf(J().string),triangle:J().oneOf(["top","hide"]),styles:J().object},Ei.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};Yr(Ei);var ji={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},Ti={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},Pi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},Ni={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},Ii={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},Ri={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},Oi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},Di={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},Mi={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},Li={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},Fi={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},zi={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},Bi={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},qi={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},Ui={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},Hi={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},Wi={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},Vi={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"};var Ki=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,i=e.hover,a=e.active,s=e.circleSize,l=e.circleSpacing,c=(0,I.Ay)({default:{swatch:{width:s,height:s,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:i,active:a});return o.createElement("div",{style:c.swatch},o.createElement(Zr,{style:c.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:c.Swatch.boxSh
2adow+", 0 0 5px "+t}}))};Ki.defaultProps={circleSize:28,circleSpacing:14};const Gi=(0,I.H8)(Ki);var Yi=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,i=e.colors,a=e.hex,s=e.circleSize,l=e.styles,c=void 0===l?{}:l,u=e.circleSpacing,d=e.className,p=void 0===d?"":d,h=(0,I.Ay)(On({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-u,marginBottom:-u}}},c)),f=function(e,t){return n({hex:e,source:"hex"},t)};return o.createElement("div",{style:h.card,className:"circle-picker "+p},Ci(i,(function(e){return o.createElement(Gi,{key:e,color:e,onClick:f,onSwatchHover:r,active:a===e.toLowerCase(),circleSize:s,circleSpacing:u})})))};Yi.propTypes={width:J().oneOfType([J().string,J().number]),circleSize:J().number,circleSpacing:J().number,styles:J().object},Yi.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[ji[500],Ti[500],Pi[500],Ni[500],Ii[500],Ri[500],Oi[500],Di[500],Mi[500],Li[500],Fi[500],zi[500],Bi[500],qi[500],Ui[500],Hi[500],Wi[500],Vi[500]],styles:{}};Yr(Yi);const Qi=function(e){return void 0===e};var Xi=n(29128),$i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var Ji=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?Hr(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"===typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"===typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(Qi(e.s)?n.props.hsl.s:e.s),l:Number(Qi(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),$i(t,[{key:"render",value:function(){var e=this,t=(0,I.Ay)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=o.createElement("div",{style:t.fields,className:"flexbox-fix"},o.createElement("div",{style:t.field},o.createElement(K,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}
2))):"rgb"===this.state.view?n=o.createElement("div",{style:t.fields,className:"flexbox-fix"},o.createElement("div",{style:t.field},o.createElement(K,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(K,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(K,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),o.createElement("div",{style:t.alpha},o.createElement(K,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=o.createElement("div",{style:t.fields,className:"flexbox-fix"},o.createElement("div",{style:t.field},o.createElement(K,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(K,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(K,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),o.createElement("div",{style:t.alpha},o.createElement(K,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),o.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,o.createElement("div",{style:t.toggle},o.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},o.createElement(Xi.A,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(o.Component);Ji.defaultProps={view:"hex"};const Zi=Ji;const ea=function(){var e=(0,I.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.createElement("div",{style:e.picker})};const ta=function(){var e=(0,I.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return o.createElement("div",{style:e.picker})};var na=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,i=e.rgb,a=e.hsl,s=e.hsv,l=e.hex,c=e.renderers,u=e.styles,d=void 0===u?{}:u,p=e.className,h=void 0===p?"":p,f=e.defaultView,m=(0,I.Ay)(On({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},d),{disableAlpha:r});return o.createElement("div",{style:m.picker,className:"chrome-picker "+h},o.createElement("div",{style:m.saturation},o.createElement(er,{style:m.Saturation,hsl:a,hsv:s,pointer:ta,onChange:n})),o.createElement("div",{style:m.body},o.createElement("div",{style:m.controls,className:"flexbox-fix"},o.createElement("div",{style:m.color},o.createElement("div",{style:m.swatch},o.createElement("div",{style:m.active}),o.createElement(L,{renderers:c}))),o.createElement("div",{style:m.toggles},o.createElement("div",{style:m.hue},o.createElement(X,{style:m.Hue,hsl:a,pointer:ea,onChange:n})),o.createElement("div",{style:m.alpha},o.createElement(U,{style:m.Alpha,rgb:i,hsl:a,pointer:ea,renderers:c,onChange:n})))),o.createElement(Zi,{rgb:i,hsl:a,hex:l,view:f,onChange:n,disableAlpha:r})))};
2na.propTypes={width:J().oneOfType([J().string,J().number]),disableAlpha:J().bool,styles:J().object,defaultView:J().oneOf(["hex","rgb","hsl"])},na.defaultProps={width:225,disableAlpha:!1,styles:{}};Yr(na);const ra=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,a=e.active,s=(0,I.Ay)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:Wr(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:a,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return o.createElement(Zr,{style:s.color,color:t,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},o.createElement("div",{style:s.dot}))};const oa=function(e){var t=e.hex,n=e.rgb,r=e.onChange,i=(0,I.Ay)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),a=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return o.createElement("div",{style:i.fields,className:"flexbox-fix"},o.createElement("div",{style:i.active}),o.createElement(K,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:t,onChange:a}),o.createElement(K,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:a}),o.createElement(K,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:a}),o.createElement(K,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:a}))};var ia=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,i=e.hex,a=e.rgb,s=e.styles,l=void 0===s?{}:s,c=e.className,u=void 0===c?"":c,d=(0,I.Ay)(On({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),p=function(e,n){e.hex?Hr(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return o.createElement(Mn,{style:d.Compact,styles:l},o.createElement("div",{style:d.compact,className:"compact-picker "+u},o.createElement("div",null,Ci(r,(function(e){return o.createElement(ra,{key:e,color:e,active:e.toLowerCase()===i,onClick:p,onSwatchHover:n})})),o.createElement("div",{style:d.clear})),o.createElement(oa,{hex:i,rgb:a,onChange:p})))};ia.propTypes={colors:J().arrayOf(J().string),styles:J().object},ia.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};Yr(ia);const aa=(0,I.H8)((function(e){var t=e.hover,n=e.color,r=e.onClick,i=e.onSwatchHover,a={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=(0,I.Ay)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:a}},{hover:t});return o.createElement("div",{style:s.swatch},o.createElement(Zr,{color:n,onClick:r,onHover:i,focusStyle:a}))}));var sa=function(e){var t=e.width,n=e.colors,r=e.onChange,i=e.onSwatchHover,a=e.triangle,s=e.styles,l=void 0===s?{}:s,c=e.className,u=void 0===c?"":c,d=(0,I.Ay)(On({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},l),{"hide-triangle":"hide"===a,"top-left-triangle":"top-left"===a,"top-right-triangle":"top-right"===a,"bottom-left-triangle":"bottom-left"===a,"bottom-right-triangle":"bottom-right"===a}),p=function(e,t){return r({hex:e,source:"hex"},t)};return o.createElement("div",{style:d.card,className:"github-picker "+u},o.createElement("div",{style:d.triangleShadow}),o.createElement("div",{style:d.triangle}),Ci(n,(function(e){return o.createElement(aa,{color:e,key:e,onClick:p,onSwatchHover:i})})))};
2sa.propTypes={width:J().oneOfType([J().string,J().number]),colors:J().arrayOf(J().string),triangle:J().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:J().object},sa.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};Yr(sa);const la=function(e){var t=e.direction,n=(0,I.Ay)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return o.createElement("div",{style:n.picker})};var ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ua=function(e){var t=e.width,n=e.height,r=e.onChange,i=e.hsl,a=e.direction,s=e.pointer,l=e.styles,c=void 0===l?{}:l,u=e.className,d=void 0===u?"":u,p=(0,I.Ay)(On({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},c));return o.createElement("div",{style:p.picker,className:"hue-picker "+d},o.createElement(X,ca({},p.hue,{hsl:i,pointer:s,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:a})))};ua.propTypes={styles:J().object},ua.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:la,styles:{}};Yr(ua);Yr((function(e){var t=e.onChange,n=e.hex,r=e.rgb,i=e.styles,a=void 0===i?{}:i,s=e.className,l=void 0===s?"":s,c=(0,I.Ay)(On({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},a)),u=function(e,n){e.hex?Hr(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n)};return o.createElement(Mn,{styles:a},o.createElement("div",{style:c.material,className:"material-picker "+l},o.createElement(K,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"hex",value:n,onChange:u}),o.createElement("div",{style:c.split,className:"flexbox-fix"},o.createElement("div",{style:c.third},o.createElement(K,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:r.r,onChange:u})),o.createElement("div",{style:c.third},o.createElement(K,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:r.g,onChange:u})),o.createElement("div",{style:c.third},o.createElement(K,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:r.b,onChange:u})))))}));const da=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,i=e.hex,a=(0,I.Ay)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),s=function(e,o){e["#"]?Hr(e["#"])&&t({hex:e["#"],source:"hex"},o):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},o):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"},o)};return o.createElement("div",{style:a.fields}
2,o.createElement(K,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"h",value:Math.round(r.h),onChange:s}),o.createElement(K,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"s",value:Math.round(100*r.s),onChange:s}),o.createElement(K,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"v",value:Math.round(100*r.v),onChange:s}),o.createElement("div",{style:a.divider}),o.createElement(K,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),o.createElement(K,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),o.createElement(K,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}),o.createElement("div",{style:a.divider}),o.createElement(K,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),o.createElement("div",{style:a.fieldSymbols},o.createElement("div",{style:a.symbol},"\xb0"),o.createElement("div",{style:a.symbol},"%"),o.createElement("div",{style:a.symbol},"%")))};const pa=function(e){var t=e.hsl,n=(0,I.Ay)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return o.createElement("div",{style:n.picker})};const ha=function(){var e=(0,I.Ay)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return o.createElement("div",{style:e.pointer},o.createElement("div",{style:e.left},o.createElement("div",{style:e.leftInside})),o.createElement("div",{style:e.right},o.createElement("div",{style:e.rightInside})))};const fa=function(e){var t=e.onClick,n=e.label,r=e.children,i=e.active,a=(0,I.Ay)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return o.createElement("div",{style:a.button,onClick:t},n||r)};const ma=function(e){var t=e.rgb,n=e.currentColor,r=(0,I.Ay)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return o.createElement("div",null,o.createElement("div",{style:r.label},"new"),o.createElement("div",{style:r.swatches},o.createElement("div",{style:r.new}),o.createElement("div",{style:r.current})),o.createElement("div",{style:r.label},"current"))};var _a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var ga=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),_a(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,i=void 0===r?"":r,a=(0,I.Ay)(On({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px s
2olid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return o.createElement("div",{style:a.picker,className:"photoshop-picker "+i},o.createElement("div",{style:a.head},this.props.header),o.createElement("div",{style:a.body,className:"flexbox-fix"},o.createElement("div",{style:a.saturation},o.createElement(er,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:pa,onChange:this.props.onChange})),o.createElement("div",{style:a.hue},o.createElement(X,{direction:"vertical",hsl:this.props.hsl,pointer:ha,onChange:this.props.onChange})),o.createElement("div",{style:a.controls},o.createElement("div",{style:a.top,className:"flexbox-fix"},o.createElement("div",{style:a.previews},o.createElement(ma,{rgb:this.props.rgb,currentColor:this.state.currentColor})),o.createElement("div",{style:a.actions},o.createElement(fa,{label:"OK",onClick:this.props.onAccept,active:!0}),o.createElement(fa,{label:"Cancel",onClick:this.props.onCancel}),o.createElement(da,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(o.Component);ga.propTypes={header:J().string,styles:J().object},ga.defaultProps={header:"Color Picker",styles:{}};Yr(ga);const va=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,a=e.disableAlpha,s=(0,I.Ay)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),l=function(e,o){e.hex?Hr(e.hex)&&t({hex:e.hex,source:"hex"},o):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},o):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},o))};return o.createElement("div",{style:s.fields,className:"flexbox-fix"},o.createElement("div",{style:s.double},o.createElement(K,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:l})),o.createElement("div",{style:s.single},o.createElement(K,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.single},o.createElement(K,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.single},o.createElement(K,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.alpha},o.createElement(K,{style:{input:s.input,label:s.label},label:"a",value:Math.round(100*n.a),onChange:l,dragLabel:"true",dragMax:"100"})))};var ya=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ba=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,a=(0,I.Ay)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),s=function(e,t){r({hex:e,source:"hex"},t)};return o.createElement("div",{style:a.colors,className:"flexbox-fix"},t.map((function(e){var t="string"===typeof e?{color:e}:e,n=""+t.color+(t.title||"");return o.createElement("div",{key:n,style:a.swatchWrap},o.createElement(Zr,ya({},t,{style:a.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};
2ba.propTypes={colors:J().arrayOf(J().oneOfType([J().string,J().shape({color:J().string,title:J().string})])).isRequired};const wa=ba;var xa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ka=function(e){var t=e.width,n=e.rgb,r=e.hex,i=e.hsv,a=e.hsl,s=e.onChange,l=e.onSwatchHover,c=e.disableAlpha,u=e.presetColors,d=e.renderers,p=e.styles,h=void 0===p?{}:p,f=e.className,m=void 0===f?"":f,_=(0,I.Ay)(On({default:xa({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:c});return o.createElement("div",{style:_.picker,className:"sketch-picker "+m},o.createElement("div",{style:_.saturation},o.createElement(er,{style:_.Saturation,hsl:a,hsv:i,onChange:s})),o.createElement("div",{style:_.controls,className:"flexbox-fix"},o.createElement("div",{style:_.sliders},o.createElement("div",{style:_.hue},o.createElement(X,{style:_.Hue,hsl:a,onChange:s})),o.createElement("div",{style:_.alpha},o.createElement(U,{style:_.Alpha,rgb:n,hsl:a,renderers:d,onChange:s}))),o.createElement("div",{style:_.color},o.createElement(L,null),o.createElement("div",{style:_.activeColor}))),o.createElement(va,{rgb:n,hsl:a,hex:r,onChange:s,disableAlpha:c}),o.createElement(wa,{colors:u,onClick:s,onSwatchHover:l}))};ka.propTypes={disableAlpha:J().bool,width:J().oneOfType([J().string,J().number]),styles:J().object},ka.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};Yr(ka);const Sa=function(e){var t=e.hsl,n=e.offset,r=e.onClick,i=void 0===r?function(){}:r,a=e.active,s=e.first,l=e.last,c=(0,I.Ay)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:a,first:s,last:l});return o.createElement("div",{style:c.swatch,onClick:function(e){return i({h:t.h,s:.5,l:n,source:"hsl"},e)}})};const Ca=function(e){var t=e.onClick,n=e.hsl,r=(0,I.Ay)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return o.createElement("div",{style:r.swatches},o.createElement("div",{style:r.swatch},o.createElement(Sa,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:t,first:!0})),o.createElement("div",{style:r.swatch},o.createElement(Sa,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:t})),o.createElement("div",{style:r.swatch},o.createElement(Sa,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:t})),o.createElement("div",{style:r.swatch},o.createElement(Sa,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:t})),o.createElement("div",{style:r.swatch},o.createElement(Sa,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:t,last:!0})),o.createElement("div",{style:r.clear}))};const Aa=function(){var e=(0,I.Ay)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.createElement("div",{style:e.picker})};
2var Ea=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,i=e.styles,a=void 0===i?{}:i,s=e.className,l=void 0===s?"":s,c=(0,I.Ay)(On({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},a));return o.createElement("div",{style:c.wrap||{},className:"slider-picker "+l},o.createElement("div",{style:c.hue},o.createElement(X,{style:c.Hue,hsl:t,pointer:r,onChange:n})),o.createElement("div",{style:c.swatches},o.createElement(Ca,{hsl:t,onClick:n})))};Ea.propTypes={styles:J().object},Ea.defaultProps={pointer:Aa,styles:{}};Yr(Ea);var ja=n(54371);const Ta=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,a=e.first,s=e.last,l=e.active,c=(0,I.Ay)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:Wr(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:a,last:s,active:l,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return o.createElement(Zr,{color:t,style:c.color,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},o.createElement("div",{style:c.check},o.createElement(ja.A,null)))};const Pa=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,i=e.active,a=(0,I.Ay)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return o.createElement("div",{style:a.group},Ci(r,(function(e,a){return o.createElement(Ta,{key:e,color:e,active:e.toLowerCase()===i,first:0===a,last:a===r.length-1,onClick:t,onSwatchHover:n})})))};var Na=function(e){var t=e.width,n=e.height,r=e.onChange,i=e.onSwatchHover,a=e.colors,s=e.hex,l=e.styles,c=void 0===l?{}:l,u=e.className,d=void 0===u?"":u,p=(0,I.Ay)(On({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},c)),h=function(e,t){return r({hex:e,source:"hex"},t)};return o.createElement("div",{style:p.picker,className:"swatches-picker "+d},o.createElement(Mn,null,o.createElement("div",{style:p.overflow},o.createElement("div",{style:p.body},Ci(a,(function(e){return o.createElement(Pa,{key:e.toString(),group:e,active:s,onClick:h,onSwatchHover:i})})),o.createElement("div",{style:p.clear})))))};Na.propTypes={width:J().oneOfType([J().string,J().number]),height:J().oneOfType([J().string,J().number]),colors:J().arrayOf(J().arrayOf(J().string)),styles:J().object},Na.defaultProps={width:320,height:240,colors:[[ji[900],ji[700],ji[500],ji[300],ji[100]],[Ti[900],Ti[700],Ti[500],Ti[300],Ti[100]],[Pi[900],Pi[700],Pi[500],Pi[300],Pi[100]],[Ni[900],Ni[700],Ni[500],Ni[300],Ni[100]],[Ii[900],Ii[700],Ii[500],Ii[300],Ii[100]],[Ri[900],Ri[700],Ri[500],Ri[300],Ri[100]],[Oi[900],Oi[700],Oi[500],Oi[300],Oi[100]],[Di[900],Di[700],Di[500],Di[300],Di[100]],[Mi[900],Mi[700],Mi[500],Mi[300],Mi[100]],["#194D33",Li[700],Li[500],Li[300],Li[100]],[Fi[900],Fi[700],Fi[500],Fi[300],Fi[100]],[zi[900],zi[700],zi[500],zi[300],zi[100]],[Bi[900],Bi[700],Bi[500],Bi[300],Bi[100]],[qi[900],qi[700],qi[500],qi[300],qi[100]],[Ui[900],Ui[700],Ui[500],Ui[300],Ui[100]],[Hi[900],Hi[700],Hi[500],Hi[300],Hi[100]],[Wi[900],Wi[700],Wi[500],Wi[300],Wi[100]],[Vi[900],Vi[700],Vi[500],Vi[300],Vi[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};Yr(Na);var Ia=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,i=e.colors,a=e.width,s=e.triangle,l=e.styles,c=void 0===l?{}:l,u=e.className,d=void 0===u?"":u,p=(0,I.Ay)(On({default:{card:{width:a,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",dis
2play:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},c),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s}),h=function(e,n){Hr(e)&&t({hex:e,source:"hex"},n)};return o.createElement("div",{style:p.card,className:"twitter-picker "+d},o.createElement("div",{style:p.triangleShadow}),o.createElement("div",{style:p.triangle}),o.createElement("div",{style:p.body},Ci(i,(function(e,t){return o.createElement(Zr,{key:t,color:e,hex:e,style:p.swatch,onClick:h,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),o.createElement("div",{style:p.hash},"#"),o.createElement(K,{label:null,style:{input:p.input},value:r.replace("#",""),onChange:h}),o.createElement("div",{style:p.clear})))};Ia.propTypes={width:J().oneOfType([J().string,J().number]),triangle:J().oneOf(["hide","top-left","top-right"]),colors:J().arrayOf(J().string),styles:J().object},Ia.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};const Ra=Yr(Ia);var Oa=function(e){var t=(0,I.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return o.createElement("div",{style:t.picker})};Oa.propTypes={hsl:J().shape({h:J().number,s:J().number,l:J().number,a:J().number})},Oa.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Da=Oa;var Ma=function(e){var t=(0,I.Ay)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return o.createElement("div",{style:t.picker})};Ma.propTypes={hsl:J().shape({h:J().number,s:J().number,l:J().number,a:J().number})},Ma.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const La=Ma;const Fa=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,i=e.hex,a=e.hsv,s=function(e,n){if(e.hex)Hr(e.hex)&&t({hex:e.hex,source:"hex"},n);else if(e.rgb){var r=e.rgb.split(",");Vr(e.rgb,"rgb")&&t({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},n)}else if(e.hsv){var o=e.hsv.split(",");Vr(e.hsv,"hsv")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("\xb0",""),1==o[1]?o[1]=.01:1==o[2]&&(o[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsv"},n))}else if(e.hsl){var i=e.hsl.split(",");Vr(e.hsl,"hsl")&&(i[2]=i[2].replace("%",""),i[1]=i[1].replace("%",""),i[0]=i[0].replace("\xb0",""),1==d[1]?d[1]=.01:1==d[2]&&(d[2]=.01),t({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:"hsl"},n))}},l=(0,I.Ay)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),c=n.r+", "+n.g+", "+n.b,u=Math.round(r.h)+"\xb0, "+Math.round(100*r.s)+"%, "+Math.round(100*r.l)+"%",d=Math.round(a.h)+"\xb0, "+Math.round(100*a.s)+"%, "+Math.round(100*a.v)+"%";return o.createElement("div",{style:l.wrap,className:"flexbox-fix"},o.createElement("div",{style:l.fields},o.createElement("div",{style:l.double},o.createElement(K,{style:{input:l.input,label:l.label},label:"hex",value:i,onChange:s})),o.createElement("div",{style:l.column},o.createElement("div",{style:l.single},o.createElement(K,{style:{input:l.input2,label:l.label2},label:"rgb",value:c,onChange:s})),o.createElement("div",{style:l.single},o.createElement(K,{style:{input:l.input2,label:l.label2},label:"hsv",value:d,onChange:s})),o.createElement("div",{style:l.single},o.createElement(K,{style:{input:l.input2,label:l.label2},label:"hsl",value:u,onChange:s})))))};
2var za=function(e){var t=e.width,n=e.onChange,r=e.rgb,i=e.hsl,a=e.hsv,s=e.hex,l=e.header,c=e.styles,u=void 0===c?{}:c,d=e.className,p=void 0===d?"":d,h=(0,I.Ay)(On({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+r.r+", "+r.g+", "+r.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},Hue:{radius:"2px"}}},u));return o.createElement("div",{style:h.picker,className:"google-picker "+p},o.createElement("div",{style:h.head},l),o.createElement("div",{style:h.swatch}),o.createElement("div",{style:h.saturation},o.createElement(er,{hsl:i,hsv:a,pointer:Da,onChange:n})),o.createElement("div",{style:h.body},o.createElement("div",{style:h.controls,className:"flexbox-fix"},o.createElement("div",{style:h.hue},o.createElement(X,{style:h.Hue,hsl:i,radius:"4px",pointer:La,onChange:n}))),o.createElement(Fa,{rgb:r,hsl:i,hex:s,hsv:a,onChange:n})))};za.propTypes={width:J().oneOfType([J().string,J().number]),styles:J().object,header:J().string},za.defaultProps={width:652,styles:{},header:"Color picker"};Yr(za);var Ba=n(34677),qa=n(66006),Ua=n(89223),Ha=n(10385),Wa=n(28024),Va=n(71360),Ka=n(84259),Ga=n(22633),Ya=n(99996),Qa=n(9463),Xa=n(26511),$a=n(75686),Ja=n(72313),Za=n(57856),es=n(77784);const ts=(0,es.A)("chart-no-axes-column",[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]]),ns=(0,es.A)("sticky-note",[["path",{d:"M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",key:"1dfntj"}],["path",{d:"M15 3v5a1 1 0 0 0 1 1h5",key:"6s6qgf"}]]);var rs=n(42489),os=n(37719),is=n(37475),as=n(75088),ss=n(63944),ls=n(5077),cs=n(51884);const us=(0,es.A)("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);var ds=n(13786),ps=n(41680),hs=n(9333),fs=n(76955),ms=n(70929),_s=n(31130);const gs=(0,es.A)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);var vs=n(8145),ys=n(65010),bs=n(56095),ws=n(56804);const xs={like:"https://assets.amposter.com/reactions/reaction_pack1/like.png",love:"https://assets.amposter.com/reactions/reaction_pack1/love.png",care:"https://assets.amposter.com/reactions/reaction_pack1/care.png",haha:"https://assets.amposter.com/reactions/reaction_pack1/haha.png",wow:"https://assets.amposter.com/reactions/reaction_pack1/wow.png",sad:"https://assets.amposter.com/reactions/reaction_pack1/sad.png",angry:"https://assets.amposter.com/reactions/reaction_pack1/angry.png"},ks={like:"\u0623\u0639\u062c\u0628\u0646\u064a",love:"\u0623\u062d\u0628\u0628\u062a\u0647",care:"\u0623\u062f\u0639\u0645\u0647",haha:"\u0647\u0627\u0647\u0627\u0647\u0627",wow:"\u0648\u0627\u0648",sad:"\u0623\u062d\u0632\u0646\u0646\u064a",angry:"\u0623\u063a\u0636\u0628\u0646\u064a"},Ss={post:{label:"\u0645\u0646\u0634\u0648\u0631",icon:ps.A,color:"#3b82f6"},poll:{label:"\u0627\u0633\u062a\u0637\u0644\u0627\u0639",icon:ts,color:"#8b5cf6"},video:{label:"\u0641\u064a\u062f\u064a\u0648",icon:hs.A,color:"#ef4444"},quiz:{label:"\u0643\u0648\u064a\u0632",icon:fs.A,color:"#f59e0b"},newspaper:{label:"\u062c\u0631\u064a\u062f\u0629",icon:ms.A,color:"#10b981"},winners:{label:"\u0641\u0627\u0626\u0632\u0648\u0646",icon:_s.A,color:"#f97316"}},Cs=e=>"number"===typeof e?e.toLocaleString("ar-EG"):null!==e&&void 0!==e?e:0,As=e=>{let{label:t,value:n,icon:r,color:o,theme:i}=e;return(0,j.jsxs)("div",{style:{background:"dark"===i?"#1e2732":"#f8fafc",border:"1px solid ".concat("dark"===i?"#2d3748":"#e2e8f0"),borderRadius:14,padding:"14px 16px",display:"flex",alignItems:"center",gap:12,direction:"rtl"}
2,children:[(0,j.jsx)("div",{style:{width:42,height:42,borderRadius:12,background:"".concat(o,"20"),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,j.jsx)(r,{size:20,color:o})}),(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{style:{fontSize:20,fontWeight:800,color:"dark"===i?"#e5e7eb":"#111"},children:Cs(n)}),(0,j.jsx)("div",{style:{fontSize:12,color:"dark"===i?"#6b7280":"#64748b",marginTop:1},children:t})]})]})},Es=e=>{let{children:t,theme:n}=e;return(0,j.jsx)("div",{style:{fontSize:13,fontWeight:700,color:"dark"===n?"#6b7280":"#94a3b8",textTransform:"uppercase",letterSpacing:1,margin:"20px 0 10px",direction:"rtl"},children:t})},js=e=>{let{icon:t,type:n,label:r,value:o,total:i,theme:a}=e;const s=i>0?Math.round(o/i*100):0;return(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:8,direction:"rtl"},children:[(0,j.jsx)("img",{src:t,alt:n,style:{width:24,height:24,objectFit:"contain",flexShrink:0}}),(0,j.jsxs)("div",{style:{flex:1},children:[(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:3},children:[(0,j.jsx)("span",{style:{fontSize:13,color:"dark"===a?"#d1d5db":"#374151"},children:r}),(0,j.jsx)("span",{style:{fontSize:13,fontWeight:700,color:"dark"===a?"#e5e7eb":"#111"},children:Cs(o)})]}),(0,j.jsx)("div",{style:{height:5,borderRadius:99,background:"dark"===a?"#2d3748":"#e2e8f0"},children:(0,j.jsx)("div",{style:{height:"100%",borderRadius:99,background:"#3b82f6",width:"".concat(s,"%"),transition:"width 0.5s ease"}})})]}),(0,j.jsxs)("span",{style:{fontSize:11,color:"dark"===a?"#6b7280":"#94a3b8",width:32,textAlign:"left"},children:[s,"%"]})]})},Ts=e=>{let{dateKey:t,data:n,theme:r}=e;const o=(n.reactions_on_posts||0)+(n.reactions_on_comments||0)+(n.reactions_on_replies||0);return(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 0",borderBottom:"1px solid ".concat("dark"===r?"#2d3748":"#f1f5f9"),direction:"rtl",gap:8,flexWrap:"wrap"},children:[(0,j.jsx)("span",{style:{fontSize:13,color:"dark"===r?"#9ca3af":"#64748b",fontFamily:"monospace"},children:t}),(0,j.jsxs)("div",{style:{display:"flex",gap:12,flexWrap:"wrap"},children:[n.posts>0&&(0,j.jsxs)("span",{style:{fontSize:12,color:"#3b82f6"},children:["\ud83d\udcdd ",n.posts," \u0645\u0646\u0634\u0648\u0631"]}),n.comments>0&&(0,j.jsxs)("span",{style:{fontSize:12,color:"#10b981"},children:["\ud83d\udcac ",n.comments," \u062a\u0639\u0644\u064a\u0642"]}),n.replies>0&&(0,j.jsxs)("span",{style:{fontSize:12,color:"#8b5cf6"},children:["\u21a9\ufe0f ",n.replies," \u0631\u062f"]}),o>0&&(0,j.jsxs)("span",{style:{fontSize:12,color:"#f59e0b"},children:["\u2764\ufe0f ",o," \u062a\u0641\u0627\u0639\u0644"]})]})]})},Ps=e=>{let{userId:t,userName:n,onClose:a}=e;const{theme:s}=(0,S.DP)(),[l,c]=(0,o.useState)(null),[u,d]=(0,o.useState)(!0),[p,f]=(0,o.useState)("totals"),m=o.useRef(null),_=o.useRef(!1),g=(0,o.useCallback)((()=>{_.current||(_.current=!0,m.current&&(0,E.tu)(m.current,!0),a())}),[a]);(0,o.useEffect)((()=>{m.current=(0,E.GR)("user-activity-modal");const e=()=>{_.current||(0,E.Vz)()!==m.current||(_.current=!0,(0,E.tu)(m.current,!1),a())};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)}),[]),(0,o.useEffect)((()=>{t&&(d(!0),h.firebase.database().ref("user_activity/".concat(t)).once("value").then((e=>{c(e.val()||{}),d(!1)})).catch((()=>{c({}),d(!1)})))}),[t]);const v=(null===l||void 0===l?void 0:l.totals)||{},y=(null===l||void 0===l?void 0:l.daily)||{},b=y[(()=>{const e=new Date;return"".concat(e.getFullYear(),"-").concat(String(e.getMonth()+1).padStart(2,"0"),"-").concat(String(e.getDate()).padStart(2,"0"))})()]||{},w=v.reaction_types||{},x=v.comment_reaction_types||{},k=v.reply_reaction_types||{},A=v.reactions_on_posts||0,T=v.reactions_on_comments||0,P=v.reactions_on_replies||0,N=v.post_types||{},I=v.posts||0,R=Object.entries(y).sort(((e,t)=>t[0].localeCompare(e[0]))).slice(0,30),O="dark"===s?"#111827":"#ffffff",D="dark"===s?"#e5e7eb":"#111827",M="dark"===s?"#2d3748":"#e2e8f0",L={background:"#3b82f6",color:"#fff"},F={background:"dark"===s?"#1e2732":"#f1f5f9",color:"dark"===s?"#9ca3af":"#64748b"};return(0,i.createPortal)((0,j.jsx)("div",{onClick:g,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.55)",zIndex:(0,E.v7)(1e3),display:"flex",alignItems:"flex-end",justifyContent:"center"},children:(0,j.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{width:"100%",maxWidth:560,maxHeight:"92vh",background:O,borderRadius:"20px 20px 0 0",display:"flex",flexDirection:"column",overflow:"hidden",direction:"rtl"},children:[(0,j.jsx)(C.A,{title:"\u0646\u0634\u0627\u0637 ".concat(n||"\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645"),onBack:g,className:"dark"===s?"theme-dark-item":"theme-light-item"}),u?(0,j.jsx)("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",color:D,fontSize:15},children:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644\u2026"}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{style:{display:"flex",gap:8,padding:"12px 16px 0",borderBottom:"1px solid ".concat(M)},children:[{key:"totals",label:"\u0627\u0644\u0625\u062c\u0645\u0627\u0644\u064a\u0627\u062a"},{key:"reactions",label:"\u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a"},{key:"daily",label:"\u0627\u0644\u064a\u0648\u0645\u064a"}].map((e=>(0,j.jsx)("button",{onClick:()=>f(e.key),style:(0,r.A)((0,r.A)({}
2,p===e.key?L:F),{},{border:"none",borderRadius:"10px 10px 0 0",padding:"8px 18px",fontSize:13,fontWeight:700,cursor:"pointer",transition:"all 0.2s"}),children:e.label},e.key)))}),(0,j.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:"0 16px 32px"},children:["totals"===p&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Es,{theme:s,children:"\u0627\u0644\u064a\u0648\u0645"}),(0,j.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[(0,j.jsx)(As,{label:"\u0645\u0646\u0634\u0648\u0631\u0627\u062a",value:b.posts||0,icon:gs,color:"#3b82f6",theme:s}),(0,j.jsx)(As,{label:"\u062a\u0639\u0644\u064a\u0642\u0627\u062a",value:b.comments||0,icon:vs.A,color:"#10b981",theme:s}),(0,j.jsx)(As,{label:"\u0631\u062f\u0648\u062f",value:b.replies||0,icon:ys.A,color:"#8b5cf6",theme:s}),(0,j.jsx)(As,{label:"\u062a\u0641\u0627\u0639\u0644\u0627\u062a",value:(b.reactions_on_posts||0)+(b.reactions_on_comments||0)+(b.reactions_on_replies||0),icon:bs.A,color:"#f59e0b",theme:s})]}),(0,j.jsx)(Es,{theme:s,children:"\u0627\u0644\u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u0643\u0644\u064a"}),(0,j.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[(0,j.jsx)(As,{label:"\u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a",value:I,icon:ps.A,color:"#3b82f6",theme:s}),(0,j.jsx)(As,{label:"\u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a",value:v.comments||0,icon:vs.A,color:"#10b981",theme:s}),(0,j.jsx)(As,{label:"\u0625\u062c\u0645\u0627\u0644\u064a \u0627\u0644\u0631\u062f\u0648\u062f",value:v.replies||0,icon:ys.A,color:"#8b5cf6",theme:s}),(0,j.jsx)(As,{label:"\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0639\u0644\u0649 \u0645\u0646\u0634\u0648\u0631\u0627\u062a",value:A,icon:bs.A,color:"#ef4444",theme:s}),(0,j.jsx)(As,{label:"\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0639\u0644\u0649 \u062a\u0639\u0644\u064a\u0642\u0627\u062a",value:T,icon:bs.A,color:"#f59e0b",theme:s}),(0,j.jsx)(As,{label:"\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0639\u0644\u0649 \u0631\u062f\u0648\u062f",value:P,icon:bs.A,color:"#f97316",theme:s})]}),I>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Es,{theme:s,children:"\u0623\u0646\u0648\u0627\u0639 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a"}),(0,j.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[Object.entries(Ss).map((e=>{let[t,n]=e;const r=N[t]||0;return r?(0,j.jsx)(As,{label:n.label,value:r,icon:n.icon,color:n.color,theme:s},t):null})),Object.entries(N).filter((e=>{let[t]=e;return!Ss[t]})).map((e=>{let[t,n]=e;return(0,j.jsx)(As,{label:t,value:n,icon:ws.A,color:"#6b7280",theme:s},t)}))]})]})]}),"reactions"===p&&(0,j.jsxs)(j.Fragment,{children:[A>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(Es,{theme:s,children:["\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0639\u0644\u0649 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a (",Cs(A),")"]}),Object.entries(xs).map((e=>{let[t,n]=e;const r=w[t]||0;return r?(0,j.jsx)(js,{type:t,icon:n,label:ks[t],value:r,total:A,theme:s},t):null}))]}),T>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(Es,{theme:s,children:["\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0639\u0644\u0649 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a (",Cs(T),")"]}),Object.entries(xs).map((e=>{let[t,n]=e;const r=x[t]||0;return r?(0,j.jsx)(js,{type:t,icon:n,label:ks[t],value:r,total:T,theme:s},t):null}))]}),P>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(Es,{theme:s,children:["\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0639\u0644\u0649 \u0627\u0644\u0631\u062f\u0648\u062f (",Cs(P),")"]}),Object.entries(xs).map((e=>{let[t,n]=e;const r=k[t]||0;return r?(0,j.jsx)(js,{type:t,icon:n,label:ks[t],value:r,total:P,theme:s},t):null}))]}),0===A&&0===T&&0===P&&(0,j.jsx)("div",{style:{textAlign:"center",color:"dark"===s?"#6b7280":"#94a3b8",marginTop:40,fontSize:14},children:"\u0644\u0627 \u062a\u0648\u062c\u062f \u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0645\u0633\u062c\u0644\u0629 \u0628\u0639\u062f"})]}),"daily"===p&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Es,{theme:s,children:"\u0622\u062e\u0631 30 \u064a\u0648\u0645"}),0===R.length?(0,j.jsx)("div",{style:{textAlign:"center",color:"dark"===s?"#6b7280":"#94a3b8",marginTop:40,fontSize:14},children:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0628\u064a\u0627\u0646\u0627\u062a \u064a\u0648\u0645\u064a\u0629 \u0628\u0639\u062f"}):R.map((e=>{let[t,n]=e;return(0,j.jsx)(Ts,{dateKey:t,data:n,theme:s},t)}
2))]})]})]})]})}),document.body)},Ns=(0,es.A)("thumbs-down",[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}],["path",{d:"M17 14V2",key:"8ymqnk"}]]);var Is=n(56174),Rs=n(40614);const Os=(0,es.A)("calendar-check",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]),Ds=(0,es.A)("calendar-x",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m14 14-4 4",key:"rymu2i"}],["path",{d:"m10 14 4 4",key:"3sz06r"}]]);var Ms=n(22024),Ls=n(65505),Fs=n(9855),zs=n(88693);const Bs=["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0645\u0634\u0631\u0641 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0645\u0634\u0631\u0641 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a"],qs=["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0645\u0634\u0631\u0641 \u0627\u0644\u0645\u062d\u062a\u0648\u0649"],Us=["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645"],Hs=["positive","negative","neutral"],Ws=e=>{if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const n=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),o=t.getFullYear(),i=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0");return"".concat(n,"-").concat(r,"-").concat(o," ").concat(i,":").concat(a)},Vs=e=>{let{userId:t,userName:n,currentUserId:a,currentUserName:s,currentUserRole:l,isSuperAdmin:c,onClose:u}=e;const{theme:d}=(0,S.DP)(),{t:p,resolvedDirection:f}=(0,P.o)(),m="rtl"===f||"undefined"!==typeof document&&"rtl"===document.documentElement.dir,_="dark"===d,g=(0,o.useMemo)((()=>!!l&&Bs.includes(l)),[l]),b=(0,o.useMemo)((()=>!!l&&qs.includes(l)),[l]),w=(0,o.useMemo)((()=>!!l&&Us.includes(l)),[l]),x=(0,o.useMemo)((()=>!!l&&["\u0645\u0634\u0631\u0641 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a"].includes(l)),[l]),[k,C]=(0,o.useState)(!0),[A,T]=(0,o.useState)(!1),[N,I]=(0,o.useState)([]),[R,O]=(0,o.useState)(!0),[D,M]=(0,o.useState)(!1),[L,F]=(0,o.useState)(!1),[z,B]=(0,o.useState)(null),[q,U]=(0,o.useState)(""),[H,W]=(0,o.useState)("neutral"),[V,K]=(0,o.useState)(!1),[G,Y]=(0,o.useState)({isOpen:!1,title:"",message:"",type:"info"}),[Q,X]=(0,o.useState)({isOpen:!1,title:"",message:"",onConfirm:null,onCancel:null});(0,o.useEffect)((()=>{if(!t||!g)return void C(!1);C(!0),T(!1);const e=h.firebase.database().ref("user_staff_notes/".concat(t)),n=h.firebase.database().ref("kunaiu_bank/".concat(t,"/can_participate_events")),o=e=>{const t=e.val()||{},n=Object.entries(t).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)})).sort(((e,t)=>(t.createdAt||0)-(e.createdAt||0)));I(n),C(!1)},i=e=>{const t=e.val();O(!1!==t)};return e.on("value",o,(e=>{console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u062c\u0644\u0628 \u0645\u0644\u0627\u062d\u0638\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645:",e),T(!0),C(!1)})),n.on("value",i),()=>{e.off("value",o),n.off("value",i)}}),[t,g]);const $=async function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{if(!a)return;await h.firebase.database().ref("moderation_logs").push({moderatorId:a,moderatorRole:l,actionType:e,blockType:null,contentType:"user_note",contentId:null,targetUserId:t,targetUserName:n||null,reason:r,timestamp:Date.now(),verified:!1})}catch(o){console.error("Error logging moderation action:",o)}},J=()=>{F(!1),B(null),U(""),W("neutral")},Z=e=>!!e&&(!!w||!!b&&e.authorId===a),ee={positive:{icon:bs.A,label:p("profile_note_type_positive"),className:"note-type-positive"},negative:{icon:Ns,label:p("profile_note_type_negative"),className:"note-type-negative"},neutral:{icon:Is.A,label:p("profile_note_type_neutral"),className:"note-type-neutral"}};return g?(0,i.createPortal)((0,j.jsxs)("div",{className:"user-notes-overlay",onClick:u,style:{zIndex:(0,E.v7)(11e3)},children:[(0,j.jsxs)("div",{className:"user-notes-modal ".concat(_?"theme-dark-bg":""),onClick:e=>e.stopPropagation(),dir:m?"rtl":"ltr",children:[(0,j.jsxs)("div",{className:"user-notes-header",children:[(0,j.jsxs)("h3",{children:[(0,j.jsx)(ns,{size:18})," ",p("profile_user_notes"),n?" \u2014 ".concat(n):""]}),(0,j.jsx)("button",{className:"user-notes-icon-btn",onClick:u,children:(0,j.jsx)(Rs.A,{size:20})})]}),(0,j.jsxs)("div",{className:"user-notes-event-flag",children:[(0,j.jsxs)("div",{className:"user-notes-event-flag-text",children:[R?(0,j.jsx)(Os,{size:18}):(0,j.jsx)(Ds,{size:18}),(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:"user-notes-event-flag-label",children:p("profile_can_participate_events")}),(0,j.jsx)("div",{className:"user-notes-event-flag-desc",children:p("profile_can_participate_events_desc")})]})]}),(0,j.jsxs)("label",{className:"switch ".concat(x?"is-disabled":""),title:p(x?"profile_note_permission_error":R?"profile_can_participate_events":"profile_cannot_participate_events"),children:[(0,j.jsx)("input",{type:"checkbox",checked:R,onChange:async()=>
2{if(!g||!t)return;const e=!R;M(!0);try{await h.firebase.database().ref("kunaiu_bank/".concat(t,"/can_participate_events")).set(e),await $(e?"allow_event_participation":"block_event_participation")}catch(n){console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u062a\u062d\u062f\u064a\u062b \u0625\u0630\u0646 \u0627\u0644\u0645\u0634\u0627\u0631\u0643\u0629 \u0628\u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a:",n),Y({isOpen:!0,title:p("profile_error_title"),message:p("profile_update_error"),type:"error"})}finally{M(!1)}},disabled:D||x,role:"switch","aria-checked":R}),(0,j.jsx)("span",{className:"slider",children:D&&(0,j.jsx)(Ms.A,{size:14,className:"user-notes-spin user-notes-toggle-loader"})})]})]}),(0,j.jsxs)("div",{className:"user-notes-content",children:[(0,j.jsxs)("div",{className:"user-notes-scroll-area",children:[k&&(0,j.jsxs)("div",{className:"user-notes-loading",children:[(0,j.jsx)(Ms.A,{size:22,className:"user-notes-spin"}),(0,j.jsx)("span",{children:p("profile_loading")})]}),!k&&A&&(0,j.jsx)("p",{className:"user-notes-error-text",children:p("profile_notes_load_error")}),!k&&!A&&0===N.length&&!L&&(0,j.jsx)("p",{className:"user-notes-empty",children:p("profile_no_notes")}),!k&&!A&&N.map((e=>{const n=ee[Hs.includes(e.type)?e.type:"neutral"],o=n.icon,i=Z(e);return(0,j.jsxs)("div",{className:"user-note-card ".concat(n.className),children:[(0,j.jsxs)("div",{className:"user-note-card-top",children:[(0,j.jsxs)("span",{className:"user-note-type-badge",children:[(0,j.jsx)(o,{size:14}),n.label]}),i&&(0,j.jsxs)("div",{className:"user-note-actions",children:[(0,j.jsx)("button",{className:"user-notes-icon-btn",onClick:()=>(e=>{B(e.id),U(e.content||""),W(Hs.includes(e.type)?e.type:"neutral"),F(!0)})(e),title:p("profile_edit_note"),children:(0,j.jsx)(Ls.A,{size:15})}),(0,j.jsx)("button",{className:"user-notes-icon-btn danger",onClick:()=>(e=>{Z(e)&&X({isOpen:!0,title:p("profile_note_delete_confirm_title"),message:p("profile_note_delete_confirm_message"),onConfirm:async()=>{try{await h.firebase.database().ref("user_staff_notes/".concat(t,"/").concat(e.id)).remove(),await $("delete_user_note"),Y({isOpen:!0,title:p("profile_success_title"),message:p("profile_note_deleted"),type:"success"})}catch(n){console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u062d\u0630\u0641 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629:",n),Y({isOpen:!0,title:p("profile_error_title"),message:p("profile_note_delete_error"),type:"error"})}finally{X((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1})))}},onCancel:()=>X((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1})))})})(e),title:p("profile_delete_note"),children:(0,j.jsx)(Fs.A,{size:15})})]})]}),(0,j.jsx)("p",{className:"user-note-content",children:e.content}),(0,j.jsxs)("div",{className:"user-note-meta",children:[(0,j.jsxs)("span",{children:[p("profile_note_author"),": ",e.authorName||p("profile_unknown")]}),(0,j.jsx)("span",{children:Ws(e.createdAt)})]}),e.updatedAt&&(0,j.jsx)("div",{className:"user-note-meta user-note-meta-updated",children:(0,j.jsxs)("span",{children:[p("profile_note_updated_at"),": ",Ws(e.updatedAt)]})})]},e.id)})),L&&(0,j.jsxs)("div",{className:"user-note-editor",children:[(0,j.jsx)("div",{className:"user-note-type-select",children:Hs.map((e=>{const t=ee[e],n=t.icon;return(0,j.jsxs)("button",{type:"button",className:"user-note-type-option ".concat(t.className," ").concat(H===e?"is-selected":""),onClick:()=>W(e),children:[(0,j.jsx)(n,{size:14}),t.label]},e)}))}),(0,j.jsx)("textarea",{className:"user-note-textarea",placeholder:p("profile_note_placeholder"),value:q,onChange:e=>U(e.target.value),rows:4,maxLength:2e3,autoFocus:!0}),(0,j.jsxs)("div",{className:"user-note-editor-actions",children:[(0,j.jsx)("button",{className:"user-notes-btn secondary",onClick:J,disabled:V,children:p("profile_note_cancel")}),(0,j.jsxs)("button",{className:"user-notes-btn primary",onClick:async()=>{if(!g||!t||!a)return;if(z&&!Z(N.find((e=>e.id===z))))return;if(!z&&!b)return;const e=q.trim();if(e){K(!0);try{if(z){const n=N.find((e=>e.id===z));if(!Z(n))return Y({isOpen:!0,title:p("profile_error_title"),message:p("profile_note_permission_error"),type:"error"}),void K(!1);await h.firebase.database().ref("user_staff_notes/".concat(t,"/").concat(z)).update({content:e,type:H,updatedAt:Date.now(),updatedBy:a,updatedByName:s||""}),await $("edit_user_note"),Y({isOpen:!0,title:p("profile_updated_title"),message:p("profile_note_updated"),type:"success"})}else{const n=h.firebase.database().ref("user_staff_notes/".concat(t)).push();await n.set({content:e,type:H,authorId:a,authorName:s||"",createdAt:Date.now(),updatedAt:null}),await $("add_user_note"),Y({isOpen:!0,title:p("profile_success_title"),message:p("profile_note_added"),type:"success"})}J()}catch(n){console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u062d\u0641\u0638 \u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0629:",n),Y({isOpen:!0,title:p("profile_error_title"),message:p("profile_note_save_error"),type:"error"})}finally{K(!1)}}else Y({isOpen:!0,title:p("profile_error_title"),message:p("profile_note_empty_error"),type:"error"})},disabled:V,children:[V?(0,j.jsx)(Ms.A,{size:15,className:"user-notes-spin"}):(0,j.jsx)(zs.A,{size:15}),p("profile_note_save")]})]})]})]}),!L&&b&&(0,j.jsx)("div",{className:"user-notes-footer",children:(0,j.jsxs)("button",{className:"user-notes-btn primary user-notes-add-btn",onClick:()=>{b&&(B(null),U(""),W("neutral"),F(!0))},children:[(0,j.jsx)(Va.A,{size:16}),p("profile_add_note")]})})]})]}),G.isOpen&&(0,j.jsx)(v.A,{isOpen:G.isOpen,title:G.title,message:G.message,type:G.type,onClose:()=>Y((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1})))}),Q.isOpen&&(0,j.jsx)(y.A,{isOpen:Q.isOpen,title:Q.title,message:Q.message,onConfirm:Q.onConfirm,onCancel:Q.onCancel,confirmText:p("profile_delete"),cancelText:p("profile_cancel"),isDangerous:!0})]}),document.body):(0,i.createPortal)((0,j.jsx)("div",{className:"user-notes-overlay",onClick:u,style:{zIndex:(0,E.v7)(11e3)},children:(0,j.jsxs)("div",{className:"user-notes-modal ".concat(_?"theme-dark-bg":""),onClick:e=>e.stopPropagation(),dir:m?"rtl":"ltr",children:[(0,j.jsxs)("div",{className:"user-notes-header",children:[(0,j.jsxs)("h3",{children:[(0,j.jsx)(ns,{size:18})," ",p("profile_user_notes")]}),(0,j.jsx)("button",{className:"user-notes-icon-btn",onClick:u,children:(0,j.jsx)(Rs.A,{size:20})})]}),(0,j.jsx)("p",{className:"user-notes-permission-denied",children:p("profile_note_permission_error")})]})}),document.body)};var Ks=n(63451);const Gs=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"number"===typeof e.warningsCount?e.warningsCount:"number"===typeof e.warnings?e.warnings:Array.isArray(e.warnings)?e.warnings.length:e.warnings&&"object"===typeof e.warnings?Object.keys(e.warnings).length:0},Ys=e=>{if(!e)return null;const t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return null;const n=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),o=t.getFullYear();return"".concat(n,"-").concat(r,"-").concat(o)},Qs=e=>"string"===typeof e?e:e&&"object"===typeof e&&(e.role||Object.values(e)[0])||null,Xs=["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0645\u0634\u0631\u0641 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0645\u0634\u0631\u0641 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0627\u062a"];function $s(e){let{id:t,children:n,disabled:i,handle:a}=e;
2const{attributes:c,listeners:u,setNodeRef:d,transform:p,transition:h,isDragging:f}=(0,s.gl)({id:t,disabled:i}),m={transform:l.Ks.Transform.toString(p),transition:h,opacity:f?.7:1,zIndex:f?100:"auto",cursor:"default"},_=o.Children.only(n);if(_&&_.props&&Array.isArray(_.props.children)){const[e,...t]=_.props.children,n="undefined"!==typeof document&&"rtl"===document.dir;let i=e;e&&"h3"===e.type&&(i=o.cloneElement(e,{style:(0,r.A)((0,r.A)({},e.props.style),{},{margin:0})}));const s=(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexDirection:n?"row-reverse":"row",marginBottom:"8px"},children:[a(u),i]});return(0,j.jsx)("div",(0,r.A)((0,r.A)({ref:d,style:m},c),{},{children:o.cloneElement(_,{},[s,...t])}))}return(0,j.jsx)("div",(0,r.A)((0,r.A)({ref:d,style:m},c),{},{children:_}))}function Js(e){let{id:t,children:n,index:o,total:i,onMove:a,isRTL:c}=e;const{attributes:u,listeners:d,setNodeRef:p,transform:h,transition:f,isDragging:m}=(0,s.gl)({id:t});return(0,j.jsxs)("div",{ref:p,className:"profile-pinned-post ".concat(m?"is-dragging":""),style:{transform:l.Ks.Transform.toString(h),transition:f},children:[(0,j.jsxs)("div",{className:"profile-pinned-order-controls",dir:c?"rtl":"ltr",children:[(0,j.jsx)("button",(0,r.A)((0,r.A)((0,r.A)({type:"button",className:"profile-pinned-drag-handle","aria-label":c?"\u0627\u0633\u062d\u0628 \u0644\u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0627\u0644\u0645\u062b\u0628\u062a":"Drag to reorder pinned post"},u),d),{},{children:(0,j.jsx)(Ka.A,{size:19})})),(0,j.jsx)("span",{children:c?"\u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0627\u0644\u0645\u062b\u0628\u062a ".concat(o+1):"Pinned post ".concat(o+1)}),(0,j.jsxs)("div",{className:"profile-pinned-move-buttons",children:[(0,j.jsx)("button",{type:"button",disabled:0===o,onClick:()=>a(t,-1),"aria-label":c?"\u0646\u0642\u0644 \u0644\u0644\u0623\u0639\u0644\u0649":"Move up",children:(0,j.jsx)(Ga.A,{size:18})}),(0,j.jsx)("button",{type:"button",disabled:o===i-1,onClick:()=>a(t,1),"aria-label":c?"\u0646\u0642\u0644 \u0644\u0644\u0623\u0633\u0641\u0644":"Move down",children:(0,j.jsx)(Ya.A,{size:18})})]})]}),n]})}const Zs=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.is_advertisement?(0,j.jsx)(x.A,{post:e},e.id):"poll"===e.type?(0,j.jsx)(w.G,{post:e},e.id):(0,j.jsx)(b.RK,(0,r.A)({post:e},t),e.id)},el=e=>{var t,n,l,b;let{overrideUserId:w,isModal:x=!1}=e;const C=(0,c.g)(),A=w||C.user_id,I=(0,c.Zp)(),{userData:R,loading:O}=(0,o.useContext)(u.Rs),D=(0,o.useContext)(d.K),{theme:M}=(null===D||void 0===D||D.tokensData,null===D||void 0===D||D.loadingTokens,(0,S.DP)()),{t:L,resolvedDirection:F}=(0,P.o)(),z="rtl"===F||"undefined"!==typeof document&&"rtl"===document.documentElement.dir,B=(0,a.FR)((0,a.MS)(a.cA,{activationConstraint:{distance:6}}),(0,a.MS)(a.IG,{activationConstraint:{delay:180,tolerance:8}})),[q,U]=(0,o.useState)(!1),H=(0,o.useRef)(null),[W,V]=(0,o.useState)(!0),[K,G]=(0,o.useState)(!0),[Y,Q]=(0,o.useState)(null),[X,$]=(0,o.useState)(null),[J,Z]=(0,o.useState)(!1),[ee,te]=(0,o.useState)(!1),[ne,re]=(0,o.useState)(!1),[oe,ie]=(0,o.useState)(!1),[ae,se]=(0,o.useState)({isOpen:!1,title:"",message:"",type:"info"}),[le,ce]=(0,o.useState)({isOpen:!1,title:"",message:"",onConfirm:null,onCancel:null,confirmText:"",cancelText:"",isDangerous:!1}),[ue,de]=(0,o.useState)(null),[pe,he]=(0,o.useState)(null),[fe,me]=(0,o.useState)([]),[_e,ge]=(0,o.useState)(!1),[ve,ye]=(0,o.useState)(10),[be,we]=(0,o.useState)(!1),[xe,ke]=(0,o.useState)({text:"",bg:"#000000",tx:"#000000",duration:"permanent"}),[Se,Ce]=(0,o.useState)(!1),[Ae,Ee]=(0,o.useState)(!1),[je,Te]=(0,o.useState)(!1),[Pe,Ne]=(0,o.useState)(!1),[Ie,Re]=(0,o.useState)(null),[Oe,De]=(0,o.useState)(null),[Me,Le]=(0,o.useState)(!1),[Fe,ze]=(0,o.useState)(null),[Be,qe]=(0,o.useState)(""),[Ue,He]=(0,o.useState)("permanent"),[We,Ve]=(0,o.useState)(!1),[Ke,Ge]=(0,o.useState)(null),[Ye,Qe]=(0,o.useState)(!1),[Xe,$e]=(0,o.useState)("ban"),[Je,Ze]=(0,o.useState)(Ks._c.PUBLISH),[et,tt]=(0,o.useState)("permanent"),[nt,rt]=(0,o.useState)("1"),[ot,it]=(0,o.useState)("days"),[at,st]=(0,o.useState)(""),[lt,ct]=(0,o.useState)(!1),[ut,dt]=(0,o.useState)(!1),[pt,ht]=(0,o.useState)(!1),[ft,mt]=(0,o.useState)(!1),[_t,gt]=(0,o.useState)(!1),[vt,yt]=(0,o.useState)(null),bt=null!==Y&&void 0!==Y&&Y.badge&&"object"===typeof(null===Y||void 0===Y?void 0:Y.badge)?Object.values(Y.badge).filter((e=>e&&(!e.expiryDate||e.expiryDate>Date.now()))):[],[wt,xt]=(0,o.useState)(!1),[kt,St]=(0,o.useState)(""),[Ct,At]=(0,o.useState)(null),[Et,jt]=(0,o.useState)("latest"),[Tt,Pt]=(0,o.useState)([]),[Nt,It]=(0,o.useState)("left"),Rt=(0,o.useRef)(null),Ot=(0,o.useRef)(10),Dt=(0,o.useRef)(0);(0,o.useEffect)((()=>()=>{H.current&&window.clearTimeout(H.current)}),[]),(0,o.useEffect)((()=>{null!==R&&void 0!==R&&R.id&&f.A.getRole(R.id).then((e=>{de(Qs(e)||null)})).catch((e=>{console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u062c\u0644\u0628 \u0627\u0644\u062f\u0648\u0631:",e)}))}),[null===R||void 0===R?void 0:R.id]),(0,o.useEffect)((()=>
2{if(x)return;const e=sessionStorage.getItem("profile_scroll_".concat(A));return e?window.scrollTo(0,parseInt(e,10)):window.scrollTo(0,0),()=>{sessionStorage.setItem("profile_scroll_".concat(A),window.scrollY.toString())}}),[A,x]),(0,o.useEffect)((()=>{if(null===R||void 0===R||!R.id||null===Y||void 0===Y||!Y.id||R.id===Y.id)return;h.firebase.database().ref("kunaiu_bank/".concat(Y.id,"/friend_requests")).once("value").then((e=>{if(e.exists()){const t=[];e.forEach((e=>{try{const n=(0,p.af)(e.val());t.push(n)}catch(n){console.error("Error decrypting friend request:",n)}}));const n=t.some((e=>e.id===R.id));Z(n)}else Z(!1)})).catch((e=>{console.error("Error checking friend requests:",e)}))}),[null===R||void 0===R?void 0:R.id,null===Y||void 0===Y?void 0:Y.id]),(0,o.useEffect)((()=>{const e=e=>{e.target.closest(".color-picker-container")||(mt(!1),gt(!1)),e.target.closest(".badge-tooltip-container")||yt(null)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]),(0,o.useEffect)((()=>{if(O||!A)return;(async()=>{Y||V(!0);let e=A;if(R&&R.id===e){const t=(0,r.A)({},R);t.frame_expire&&t.frame_expire<Date.now()&&(t.subscribed=!1,t.frame_url=null,h.firebase.database().ref("kunaiu_bank/".concat(e)).update({subscribed:!1,frame_url:null})),Q((0,r.A)((0,r.A)({},t),{},{followers:Object.keys(t.followers||{}).length,following:Object.keys(t.following||{}).length}));const n=Object.values(t.titles||{}).some((e=>e.expiryDate))||Object.values(t.badge||{}).some((e=>e.expiryDate));return n&&Lt(t),he(ue),void V(!1)}try{const i=await f.A.getProfile(e);if(i){var t,n,o;i.frame_expire&&i.frame_expire<Date.now()&&(i.subscribed=!1,i.frame_url=null,h.firebase.database().ref("kunaiu_bank/".concat(e)).update({subscribed:!1,frame_url:null})),Q((0,r.A)((0,r.A)({},i),{},{id:e,followers:Object.keys(i.followers||{}).length,following:Object.keys(i.following||{}).length}));const a=Object.values(i.titles||{}).some((e=>e.expiryDate))||Object.values(i.badge||{}).some((e=>e.expiryDate));a&&Lt(i),null!==R&&void 0!==R&&null!==(t=R.following)&&void 0!==t&&t[e]?ct(!0):ct(!1),null!==(n=i.following)&&void 0!==n&&n[null===R||void 0===R?void 0:R.id]?dt(!0):dt(!1),null!==R&&void 0!==R&&null!==(o=R.contacts)&&void 0!==o&&o[e]?ht(!0):ht(!1)}else Q(null)}catch(a){console.error("\u274c \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062c\u0644\u0628 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a:",a),Q(null)}V(!1);const i=await f.A.getRole(e);he(i||null)})();const e=async e=>{var t;const n=null===e||void 0===e||null===(t=e.detail)||void 0===t?void 0:t.userId;if(n===A)try{var o;const t=(null===e||void 0===e||null===(o=e.detail)||void 0===o?void 0:o.profile)||await f.A.getProfile(n,!0);if(t){Q((0,r.A)((0,r.A)({},t),{},{followers:Object.keys(t.followers||{}).length,following:Object.keys(t.following||{}).length}));const e=Object.values(t.titles||{}).some((e=>e.expiryDate))||Object.values(t.badge||{}).some((e=>e.expiryDate));e&&Lt(t),R&&t.following&&t.following[R.id]?dt(!0):dt(!1)}}catch(i){console.warn("Failed to handle profile-updated event",i)}};return window.addEventListener("profile-updated",e),()=>{window.removeEventListener("profile-updated",e)}}),[A,O]),(0,o.useEffect)((()=>{const e=null===Y||void 0===Y?void 0:Y.active_profile_theme;if(!e)return void $(null);const t=f.A.getProfileThemeSync(e);t&&$(t);let n=!1;return f.A.getProfileTheme(e).then((e=>{!n&&e&&$(e)})),()=>{n=!0}}),[null===Y||void 0===Y?void 0:Y.active_profile_theme]);const Mt=(0,o.useMemo)((()=>{if(!X)return{};const e=X.colors||{},t=X.assets||{},n={};return e.iconBg&&(n["--profile-icon-bg"]=e.iconBg),e.iconBorder&&(n["--profile-icon-border"]=e.iconBorder),e.iconColor&&(n["--profile-icon-color"]=e.iconColor),t.containerTexture&&(n["--profile-container-bg-image"]="url(".concat(t.containerTexture,")")),t.tabsTexture&&(n["--profile-tabs-bg-image"]="url(".concat(t.tabsTexture,")")),t.buttonImage&&(n["--profile-button-bg-image"]="url(".concat(t.buttonImage,")"),n["--profile-button-bg-fallback"]="transparent"),e.buttonText&&(n["--profile-button-text-color"]=e.buttonText),e.buttonTextHover&&(n["--profile-button-text-color-hover"]=e.buttonTextHover),e.username&&(n["--profile-username-color"]=e.username),e.handle&&(n["--profile-handle-color"]=e.handle),e.joinDate&&(n["--profile-joindate-color"]=e.j
2oinDate),e.stats&&(n["--profile-stats-color"]=e.stats),e.tabColor&&(n["--profile-tab-color"]=e.tabColor),e.tabActiveColor&&(n["--profile-tab-active-color"]=e.tabActiveColor),n}),[X]);(0,o.useRef)(null);(0,o.useEffect)((()=>{if(!R||!Y)return;if(R.id!==Y.id)return;const e=(0,r.A)({},R);e.frame_expire&&e.frame_expire<Date.now()&&(e.subscribed=!1,e.frame_url=null),Q((t=>(0,r.A)((0,r.A)((0,r.A)({},t),e),{},{followers:Object.keys(e.followers||{}).length,following:Object.keys(e.following||{}).length})))}),[R]);const Lt=e=>{const t=Date.now();let n=!1;if(e.titles&&"object"===typeof e.titles){const r=[];if(Object.entries(e.titles).forEach((e=>{let[n,o]=e;o.expiryDate&&o.expiryDate<=t&&r.push(n)})),r.length>0){n=!0;const t=h.firebase.database().ref("kunaiu_bank/".concat(e.id,"/titles"));r.forEach((e=>{t.child(e).remove()}))}}if(e.badge&&"object"===typeof e.badge){const r=[];if(Object.entries(e.badge).forEach((e=>{let[n,o]=e;o.expiryDate&&o.expiryDate<=t&&r.push(n)})),r.length>0){n=!0;const t=h.firebase.database().ref("kunaiu_bank/".concat(e.id,"/badge"));r.forEach((e=>{t.child(e).remove()}))}}return n};(0,o.useEffect)((()=>{if(!A)return;(async()=>{const e="profile_posts_".concat(A);try{const t=await(0,Ha.Jt)(e);if(t){const e=JSON.parse(t);Array.isArray(e)&&e.length>0&&(me(e.filter((e=>!(0,Wa.Ec)(e)))),G(!1))}}catch(t){console.warn("Failed to load posts from IndexedDB:",t)}try{const t=h.firebase.database().ref("user_posts/".concat(A)),r=await t.once("value");if(r.exists()){const t=Object.keys(r.val()).reverse(),o=async e=>{const t=await f.A.getPost(e);return t&&!t.deleted?t:null},i=e=>e.filter((e=>null!==e&&!e.deleted&&!(0,Wa.Ec)(e))).sort(((e,t)=>{if(e.pinned&&!t.pinned)return-1;if(!e.pinned&&t.pinned)return 1;if(e.pinned&&t.pinned){const n=Number.isFinite(Number(e.pinnedOrder))?Number(e.pinnedOrder):Number.MAX_SAFE_INTEGER,r=Number.isFinite(Number(t.pinnedOrder))?Number(t.pinnedOrder):Number.MAX_SAFE_INTEGER;if(n!==r)return n-r}return(t.timestamp||0)-(e.timestamp||0)})),a=await Promise.all(t.slice(0,10).map(o));let s=i(a);me(s),G(!1);try{await(0,Ha.hZ)(e,JSON.stringify(s))}catch(n){}if(t.length>10){const n=await Promise.all(t.slice(10).map(o));me((t=>{const r=i([...s,...n]);return(0,Ha.hZ)(e,JSON.stringify(r)).catch((e=>{})),r}))}}else{me([]),G(!1);try{await(0,Ha.hZ)(e,JSON.stringify([]))}catch(n){}}}catch(r){console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u062c\u0644\u0628 \u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645:",r),me((e=>0===e.length?[]:e)),G(!1)}})()}),[A]),(0,o.useEffect)((()=>{const e=e=>{const{postId:t}=e.detail;console.log("\ud83d\uddd1\ufe0f Removing deleted post ".concat(t," from profile")),me((e=>e.filter((e=>e.id!==t))))};return window.addEventListener("postDeleted",e),()=>window.removeEventListener("postDeleted",e)}),[]),(0,o.useEffect)((()=>{const e=e=>{const{postId:t}=e.detail;console.log("\ud83d\udcdd Updating post ".concat(t," in profile")),f.A.getPost(t).then((e=>{e&&me((n=>n.map((n=>n.id===t?e:n)).sort(((e,t)=>{if(e.pinned&&!t.pinned)return-1;if(!e.pinned&&t.pinned)return 1;if(e.pinned&&t.pinned){const n=Number.isFinite(Number(e.pinnedOrder))?Number(e.pinnedOrder):Number.MAX_SAFE_INTEGER,r=Number.isFinite(Number(t.pinnedOrder))?Number(t.pinnedOrder):Number.MAX_SAFE_INTEGER;if(n!==r)return n-r}return(t.timestamp||0)-(e.timestamp||0)}))))})).catch((e=>{console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0645\u0646\u0634\u0648\u0631:",e)}))};return window.addEventListener("postUpdated",e),()=>window.removeEventListener("postUpdated",e)}),[]),(0,o.useEffect)((()=>{if(!A)return;h.firebase.database().ref("user_posts_list/".concat(A)).once("value").then((e=>{if(e.exists()){const t=e.val(),n=Object.keys(t).map((e=>(0,r.A)((0,r.A)({},t[e]),{},{id:e})));n.sort(((e,t)=>new Date(t.date||0)-new Date(e.date||0))),Pt(n)}else Pt([])})).catch((e=>{console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u062c\u0644\u0628 \u0642\u0648\u0627\u0626\u0645 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a:",e),Pt([])}))}),[A]),(0,o.useEffect)((()=>{Ot.current=ve}),[ve]),(0,o.useEffect)((()=>{Dt.current=fe.length}),[fe.length]);const Ft=(0,o.useRef)(!1);(0,o.useEffect)((()=>{const e=()=>{const e=window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-400,t=Ot.current<Dt.current;e&&t&&!Ft.current&&(Ft.current=!0,ye((e=>{const t=Math.min(e+10,Dt.current);return Ot.current=t,Ft.current=!1,t})))};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)}),[]);
2const zt=async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;try{const o=null===R||void 0===R?void 0:R.id;if(!o)return;await h.firebase.database().ref("moderation_logs").push({moderatorId:o,moderatorRole:ue,actionType:e,blockType:null,contentType:t,contentId:n,targetUserId:Y.id,targetUserName:Y.name,reason:r,timestamp:Date.now(),verified:!1})}catch(o){console.error("Error logging moderation action:",o)}},Bt=()=>{if(!R||!Y)return;const e=h.firebase.database().ref("kunaiu_bank/".concat(Y.id,"/friend_requests")),t=(0,p.yv)({id:R.id,name:R.name});J?e.once("value",(t=>{t.forEach((t=>{try{(0,p.af)(t.val()).id===R.id&&(e.child(t.key).remove(),Z(!1))}catch(n){console.error("\ud83d\udd10 \u062e\u0637\u0623 \u0641\u064a \u0641\u0643 \u0627\u0644\u062a\u0634\u0641\u064a\u0631:",n)}}))})):(e.push(t),Z(!0))},qt=e=>{It("latest"===Et?"left":"right"),jt(e)},Ut=async e=>{const t={};e.forEach(((e,n)=>{t["posts/".concat(e.id,"/pinnedOrder")]=n})),me((t=>{const n=t.filter((e=>!e.pinned)),o=[...e.map(((e,t)=>(0,r.A)((0,r.A)({},e),{},{pinnedOrder:t}))),...n];return(0,Ha.hZ)("profile_posts_".concat(A),JSON.stringify(o)).catch((()=>{})),o})),e.forEach(((e,t)=>{f.A.updatePostInCache(e.id,{pinnedOrder:t})}));try{await h.firebase.database().ref().update(t)}catch(n){console.error("Failed to save pinned post order:",n),se({isOpen:!0,title:z?"\u062a\u0639\u0630\u0631 \u062d\u0641\u0638 \u0627\u0644\u062a\u0631\u062a\u064a\u0628":"Could not save order",message:z?"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062d\u0641\u0638 \u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062b\u0628\u062a\u0629.":"An error occurred while saving the pinned-post order.",type:"error"})}},Ht=(e,t)=>{const n=fe.filter((e=>e.pinned)),r=n.findIndex((t=>t.id===e)),o=r+t;r<0||o<0||o>=n.length||Ut((0,s.be)(n,r,o))},Wt=(0,o.useMemo)((()=>{if(!ue)return!1;return["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0622\u062f\u0627\u0628","\u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628"].includes(ue)}),[ue]),Vt=((0,o.useMemo)((()=>{if(!ue)return!1;return["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0622\u062f\u0627\u0628","\u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628"].includes(ue)}),[ue]),(0,o.useMemo)((()=>{if(!ue)return!1;return["\u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0622\u062f\u0627\u0628","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0645\u0634\u0631\u0641 \u0627\u0644\u0645\u062d\u062a\u0648\u0649"].includes(ue)}),[ue])),Kt=(0,o.useMemo)((()=>!!ue&&["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645"].includes(ue)),[ue]),Gt=(0,o.useMemo)((()=>Qs(ue)),[ue]),Yt=(0,o.useMemo)((()=>Ks.$k.includes(Gt)),[Gt]),Qt=(0,o.useMemo)((()=>Ks.to.includes(Gt)),[Gt]),Xt=(0,o.useMemo)((()=>Ks.t3.includes(Gt)),[Gt]),$t=(0,o.useMemo)((()=>!!ue&&Xs.includes(ue)),[ue]),Jt=()=>{if(!Vt||R.id===Y.id)return;const e=!Y.sensitive_img;h.firebase.database().ref("kunaiu_bank/".concat(Y.id)).update({sensitive_img:e}).then((async()=>{if(Q((t=>(0,r.A)((0,r.A)({},t),{},{sensitive_img:e}))),await zt(e?"block":"unblock","profile_image",Y.id,e?"\u062d\u0638\u0631 \u0635\u0648\u0631\u0629 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645":"\u0627\u0644\u0633\u0645\u0627\u062d \u0628\u0635\u0648\u0631\u0629 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645"),e&&Y.id){const e=h.firebase.database().ref("Notifications/".concat(Y.id)).push();await e.set({type:"profile_image_blocked",message:"\u062a\u0645 \u062d\u0638\u0631 \u0635\u0648\u0631\u0629 \u0645\u0644\u0641\u0643 \u0627\u0644\u0634\u062e\u0635\u064a",timestamp:Date.now(),read:!1})}se({isOpen:!0,title:L("profile_updated_title"),message:L(e?"profile_image_banned":"profile_image_allowed"),type:"success"}),re(!1)})).catch((e=>{console.error("\u274c \u062e\u0637\u0623:",e),se({isOpen:!0,title:L("profile_error_title"),message:L("profile_update_error"),type:"error"})}))},Zt=()=>{if(!Vt||R.id===Y.id)return;const e=!Y.sensitive_cover;h.firebase.database().ref("kunaiu_bank/".concat(Y.id)).update({sensitive_cover:e}).then((async()=>
2{if(Q((t=>(0,r.A)((0,r.A)({},t),{},{sensitive_cover:e}))),await zt(e?"block":"unblock","cover_image",Y.id,e?"\u062d\u0638\u0631 \u063a\u0644\u0627\u0641 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645":"\u0627\u0644\u0633\u0645\u0627\u062d \u0628\u063a\u0644\u0627\u0641 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645"),e&&Y.id){const e=h.firebase.database().ref("Notifications/".concat(Y.id)).push();await e.set({type:"cover_image_blocked",message:"\u062a\u0645 \u062d\u0638\u0631 \u063a\u0644\u0627\u0641 \u0645\u0644\u0641\u0643 \u0627\u0644\u0634\u062e\u0635\u064a",timestamp:Date.now(),read:!1})}se({isOpen:!0,title:L("profile_updated_title"),message:L(e?"profile_cover_banned":"profile_cover_allowed"),type:"success"}),re(!1)})).catch((e=>{console.error("\u274c \u062e\u0637\u0623:",e),se({isOpen:!0,title:L("profile_error_title"),message:L("profile_update_error"),type:"error"})}))},en=()=>{if(!Vt||(null===R||void 0===R?void 0:R.id)===(null===Y||void 0===Y?void 0:Y.id)||null===Y||void 0===Y||!Y.id)return;const e=Y.name||Y.tag||L("profile_this_user");ce({isOpen:!0,title:L("profile_send_warning_title"),message:L("profile_send_warning_message",{name:e}),onConfirm:async()=>{try{const e=h.firebase.database().ref("kunaiu_bank/".concat(Y.id,"/warnings")).push();await e.set({senderId:(null===R||void 0===R?void 0:R.id)||null,senderName:(null===R||void 0===R?void 0:R.name)||"",reason:"\u062a\u062d\u0630\u064a\u0631 \u0625\u062f\u0627\u0631\u064a",timestamp:Date.now(),read:!1}),await zt("warn","profile",Y.id,"\u062a\u062d\u0630\u064a\u0631 \u0625\u062f\u0627\u0631\u064a"),Y.id&&await h.firebase.database().ref("Notifications/".concat(Y.id)).push({type:"profile_warning",message:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u062a\u062d\u0630\u064a\u0631 \u0625\u0644\u0649 \u0645\u0644\u0641\u0643 \u0627\u0644\u0634\u062e\u0635\u064a",timestamp:Date.now(),read:!1}),Q((e=>(0,r.A)((0,r.A)({},e),{},{warningsCount:Gs(e)+1}))),se({isOpen:!0,title:L("profile_sent_title"),message:L("profile_warning_sent_success"),type:"success"})}catch(e){console.error("Error sending warning:",e),se({isOpen:!0,title:L("profile_error_title"),message:L("profile_warning_sent_error"),type:"error"})}finally{ce((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1}))),re(!1)}},onCancel:()=>ce((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1}))),confirmText:L("profile_send_btn"),cancelText:L("profile_cancel"),isDangerous:!0})},tn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ban";if("ban"===t&&!Yt)return;if("ban"===t&&e===Ks._c.FULL&&!Qt)return;if("unban"===t&&!Xt)return;const n=(0,Ks.DO)(Y,e);Ze(e),$e(t),tt(e===Ks._c.FULL||null!==n&&void 0!==n&&n.permanent?"permanent":"days"),rt(null!==n&&void 0!==n&&n.durationAmount?String(n.durationAmount):"1"),it((null===n||void 0===n?void 0:n.durationUnit)||"days"),st((null===n||void 0===n?void 0:n.reason)||""),Qe(!0)};return O||W?(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh",backgroundColor:"#f5f5f5"},children:[(0,j.jsx)("div",{className:"loading-spinner",style:{width:"40px",height:"40px",border:"4px solid #f3f3f3",borderTop:"4px solid #1da1f2",borderRadius:"50%",animation:"spin 1s linear infinite",marginTop:"20px"}}),(0,j.jsx)("p",{style:{marginTop:"20px",color:"#666",fontSize:"18px",fontWeight:"500"},children:L("profile_loading")})]}):Y?(0,j.jsxs)("div",{className:"profile-page ".concat(X?"":"profile-page--default-theme"," ").concat(q?"profile-page--leaving":""),style:Mt,children:[(0,j.jsxs)("div",{className:"profile-header",children:[(0,j.jsx)("div",{className:"cover-photo",style:{backgroundImage:"url(".concat(Y.sensitive_cover?"/assets/images/global/sensitive_cover.jpg":Y.cover_img||"/assets/images/global/default_cover_img.jpg",")")},onClick:e=>{if(e.target.closest(".cover-photo-icon-btn")||e.target.closest(".cover-photo-dropdown-menu")||e.target.closest(".cover-photo-menu-container")||"BUTTON"===e.target.tagName)return;const t=Y.sensitive_cover?"/assets/images/global/sensitive_cover.jpg":Y.cover_img||"/assets/images/global/default_cover_img.jpg",n=e.currentTarget.getBoundingClientRect();At(n),St(t),xt(!0)},children:(0,j.jsxs)("div",{className:"cover-photo-controls",children:[!x&&(0,j.jsx)("button",{className:"cover-photo-icon-btn profile-icon-btn profile-back-btn",onClick:()=>{q||(U(!0),H.current=window.setTimeout((()=>I(-1)),250))},title:L("profile_back_tooltip"),children:(0,j.jsx)(Qa.A,{size:24,color:"#333"})}),x&&(0,j.jsx)("div",{}
2),(0,j.jsxs)("div",{className:"cover-photo-right-controls",children:[(null===R||void 0===R?void 0:R.id)===(null===Y||void 0===Y?void 0:Y.id)&&(0,j.jsx)("button",{className:"cover-photo-icon-btn profile-icon-btn",onClick:()=>I("/store"),title:L("profile_menu_store"),children:(0,j.jsx)(Xa.A,{size:23})}),(0,j.jsxs)("div",{className:"cover-photo-menu-container",children:[(0,j.jsx)("button",{className:"cover-photo-icon-btn profile-icon-btn",onClick:()=>re(!ne),title:L("profile_options_tooltip"),children:(0,j.jsx)($a.A,{size:24,color:"#333"})}),ne&&(0,i.createPortal)((0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:"profile-menu-backdrop",onClick:()=>re(!1),style:{zIndex:(0,E.v7)(9999)}}),(0,j.jsxs)("div",{className:"cover-photo-dropdown-menu post_menu_options profile-menu-sheet ".concat("dark"===M?"theme-dark":""),dir:F,style:{zIndex:(0,E.v7)(1e4)},children:[(0,j.jsxs)("button",{className:"dropdown-item",onClick:()=>{const e="".concat(window.location.origin,"/profile/").concat(A);navigator.clipboard.writeText(e).then((()=>{se({isOpen:!0,title:L("profile_copied_title"),message:L("profile_copy_link_success"),type:"success"}),re(!1)})).catch((e=>{console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u0627\u0644\u0646\u0633\u062e:",e)}))},children:[(0,j.jsx)(Ja.A,{size:18}),(0,j.jsx)("span",{children:L("profile_copy_link")})]}),Kt&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("button",{className:"dropdown-item",onClick:()=>{navigator.clipboard.writeText((null===Y||void 0===Y?void 0:Y.id)||A).then((()=>{se({isOpen:!0,title:L("profile_copied_title"),message:L("profile_copy_id_success"),type:"success"}),re(!1)})).catch((e=>{console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u0627\u0644\u0646\u0633\u062e:",e)}))},children:[(0,j.jsx)(Ja.A,{size:18}),(0,j.jsx)("span",{children:L("profile_copy_user_id")})]}),(0,j.jsxs)("button",{className:"dropdown-item",onClick:()=>{Ee(!0),re(!1)},children:[(0,j.jsx)(Za.A,{size:18}),(0,j.jsx)("span",{children:L("profile_view_user_info")})]}),(0,j.jsxs)("button",{className:"dropdown-item",onClick:()=>{Te(!0),re(!1)},children:[(0,j.jsx)(ts,{size:18}),(0,j.jsx)("span",{children:L("profile_view_activity")})]})]}),$t&&(null===R||void 0===R?void 0:R.id)!==(null===Y||void 0===Y?void 0:Y.id)&&(0,j.jsxs)("button",{className:"dropdown-item",onClick:()=>{Ne(!0),re(!1)},children:[(0,j.jsx)(ns,{size:18}),(0,j.jsx)("span",{children:L("profile_user_notes")})]}),(Wt||Vt)&&(null===R||void 0===R?void 0:R.id)!==(null===Y||void 0===Y?void 0:Y.id)&&(0,j.jsxs)("details",{className:"moderation-menu-group",children:[(0,j.jsxs)("summary",{className:"dropdown-item danger-item",onClick:e=>{e.preventDefault(),re(!1),ie(!0)},children:[(0,j.jsx)(rs.A,{size:18}),(0,j.jsx)("span",{children:L("profile_moderation_actions")}),(0,j.jsx)(Qa.A,{size:17,className:"moderation-menu-chevron"})]}),(0,j.jsxs)("div",{className:"moderation-menu-items",children:[(0,j.jsxs)("button",{className:"dropdown-item danger-item",onClick:Jt,children:[(0,j.jsx)(rs.A,{size:18}),(0,j.jsx)("span",{children:Y.sensitive_img?L("profile_allow_image"):L("profile_ban_image")})]}),(0,j.jsxs)("button",{className:"dropdown-item danger-item",onClick:Zt,children:[(0,j.jsx)(rs.A,{size:18}),(0,j.jsx)("span",{children:Y.sensitive_cover?L("profile_allow_cover"):L("profile_ban_cover")})]}),(0,j.jsxs)("button",{className:"dropdown-item danger-item",onClick:()=>{en(),re(!1)},children:[(0,j.jsx)(os.A,{size:18}),(0,j.jsx)("span",{children:L("profile_send_warning")})]}),Yt&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("button",{className:"dropdown-item danger-item",onClick:()=>{tn(Ks._c.PUBLISH,"ban"),re(!1)},children:[(0,j.jsx)(is.A,{size:18}),(0,j.jsx)("span",{children:L("profile_ban_publish")})]}),(0,j.jsxs)("button",{className:"dropdown-item danger-item",onClick:()=>{tn(Ks._c.COMMENT,"ban"),re(!1)},children:[(0,j.jsx)(is.A,{size:18}),(0,j.jsx)("span",{children:L("profile_ban_comment")})]}),(0,j.jsxs)("button",{className:"dropdown-item danger-item",onClick:()=>{tn(Ks._c.REACTION,"ban"),re(!1)},children:[(0,j.jsx)(is.A,{size:18}),(0,j.jsx)("span",{children:L("profile_ban_reaction")})]}),(0,j.jsxs)("button",{className:"dropdown-item danger-item",onClick:()=>{tn(Ks._c.MESSAGE,"ban"),re(!1)},children:[(0,j.jsx)(is.A,{size:18}),(0,j.jsx)("span",{children:L("profile_ban_message")})]})]}),Qt&&(0,j.jsxs)("button",{className:"dropdown-item danger-item",onClick:()=>{tn(Ks._c.FULL,"ban"),re(!1)},children:[(0,j.jsx)(as.A,{size:18}),(0,j.jsx)("span",{children:L("profile_ban_permanent")})]}),Xt&&(0,j.jsxs)(j.Fragment,{children:[(0,Ks.DO)(Y,Ks._c.PUBLISH)&&(0,j.jsxs)("button",{className:"dropdown-item admin-item",onClick:()=>{tn(Ks._c.PUBLISH,"unban"),re(!1)},children:[(0,j.jsx)(is.A,{size:18}),(0,j.jsx)("span",{children:L("profile_unban_publish")})]}),(0,Ks.DO)(Y,Ks._c.COMMENT)&&(0,j.jsxs)("button",{className:"dropdown-item admin-item",onClick:()=>{tn(Ks._c.COMMENT,"unban"),re(!1)},children:[(0,j.jsx)(is.A,{size:18}),(0,j.jsx)("span",{children:L("profile_unban_comment")})]}),(0,Ks.DO)(Y,Ks._c.REACTION)&&(0,j.jsxs)("button",{className:"dropdown-item admin-item",onClick:()=>{tn(Ks._c.REACTION,"unban"),re(!1)},children:[(0,j.jsx)(is.A,{size:18}),(0,j.jsx)("span",{children:L("profile_unban_reaction")})]}),(0,Ks.DO)(Y,Ks._c.MESSAGE)&&(0,j.jsxs)("button",{className:"dropdown-item admin-item",onClick:()=>{tn(Ks._c.MESSAGE,"unban"),re(!1)},children:[(0,j.jsx)(is.A,{size:18}),(0,j.jsx)("span",{children:L("profile_unban_message")})]}),(0,Ks.DO)(Y,Ks._c.FULL)&&(0,j.jsxs)("button",{className:"dropdown-item admin-item",onClick:()=>{tn(Ks._c.FULL,"unban"),re(!1)},children:[(0,j.jsx)(is.A,{size:18}),(0,j.jsx)("span",{children:L("profile_unban_permanent")})]})]})]})]}),Kt&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("button",{className:"dropdown-item admin-item",onClick:()=>{Kt&&(ke({text:"",bg:"#000000",tx:"#000000"}),we(!0)),re(!1)},children:[(0,j.jsx)(ss.A,{size:18}),(0,j.jsx)("span",{children:L("profile_grant_title")})]}),(0,j.jsxs)("button",{className:"dropdown-item admin-item",onClick:()=>{Kt&&(ze(null),qe(""),Le(!0)),re(!1)},children:[(0,j.jsx)(ls.A,{size:18}),(0,j.jsx)("span",{children:L("profile_grant_badge")})]}),!pe&&(0,j.jsxs)("button",{className:"dropdown-item admin-item",onClick:()=>{(async()=>{try{await h.firebase.database().ref("Roles/".concat(Y.id)).set("\u063a\u064a\u0631 \u0645\u062e\u0635\u0635"),se({isOpen:!0,title:L("profile_success_title"),message:L("profile_staff_added_success"),type:"success"}),re(!1)}catch(e){console.error("Error adding to staff:",e),se({isOpen:!0,title:L("profile_error_title"),message:L("profile_staff_added_error"),type:"error"})}})(),re(!1)},children:[(0,j.jsx)(cs.A,{size:18}),(0,j.jsx)("span",{children:L("profile_add_to_staff")})]}),Y.titles&&"object"===typeof Y.titles&&Object.values(Y.titles).filter((e=>!e.expiryDate||e.expiryDate>Date.now())).length>0&&(0,j.jsxs)("button",{className:"dropdown-item danger-item",onClick:()=>{De(null),Ce(!0),re(!1)},children:[(0,j.jsx)(ss.A,{size:18}),(0,j.jsx)("span",{children:L("profile_delete_title")})]}),Y.badge&&"object"===typeof Y.badge&&Object.values(Y.badge).filter((e=>!e.expiryDate||e.expiryDate>Date.now())).length>0&&(0,j.jsxs)("button",{className:"dropdown-item danger-item",onClick:()=>{Ge(null),Ve(!0),re(!1)},children:[(0,j.jsx)(ls.A,{size:18}),(0,j.jsx)("span",{children:L("profile_delete_badge")})]})]})]})]}),document.body)]})]})]})}),(0,j.jsx)("div",{className:"profile-container ".concat("dark"===M?"theme-dark-item":"theme-light-item"),children:(0,j.jsxs)("div",{className:"profile-left",children:[(()=>{const e=Boolean((null===Y||void 0===Y?void 0:Y.subscribed)&&(null===Y||void 0===Y?void 0:Y.frame_url)),t=(0,N.MF)(Y),n=(0,N.k2)(t);return(0,j.jsxs)("div",{className:"profile-image-border",style:e?{position:"relative",padding:"12px"}:{borderRadius:"50%"},children:[(0,j.jsx)("div",{className:"profile-image-overlay",children:(null===Y||void 0===Y?void 0:Y.subscribed)&&(null===Y||void 0===Y?void 0:Y.frame_url)&&(0,j.jsx)("img",{src:Y.frame_url,alt:"Frame",style:(0,r.A)((0,r.A)({position:"absolute",top:0},z?{right:0}:{left:0}),{},{zIndex:5,width:"100%",height:"100%",objectFit:"cover",cursor:"pointer"}),onClick:e=>{const t=e.currentTarget.getBoundingClientRect();At(t),St(Y.sensitive_img?"/assets/images/global/user_sensitive_img_v2.jpg":Y.img||"/assets/images/global/user_v2.jpg"),xt(!0)}})}),(0,j.jsx)("img",{style:e?{borderRadius:n,cursor:"pointer"}:{borderRadius:"50%",cursor:"pointer",border:X?"5px solid var(--profile-tab-active-color, var(--profile-icon-color, #1da1f2))":void 0,boxSizing:"border-box"},src:Y.sensitive_img?"/assets/images/global/user_sensitive_img_v2.jpg":Y.img||"/assets/images/global/user_v2.jpg",alt:L("profile_menu_profile_image_alt"),className:"profile-image",onClick:e=>{const t=e.currentTarget.getBoundingClientRect();At(t),St(Y.sensitive_img?"/assets/images/global/user_sensitive_img_v2.jpg":Y.img||"/assets/images/global/user_v2.jpg"),xt(!0)}})]})})(),(null===R||void 0===R?void 0:R.id)==Y.id&&(0,j.jsx)("div",{style:{display:"flex",position:"absolute",top:"8px",left:0,width:"100%",alignItems:"center",justifyContent:"flex-end",gap:"6px",padding:"0 12px",margin:"5px 0 6px 0"},children:(0,j.jsx)("div",{className:"profile-button",onClick:()=>I("/edit-profile"),children:(0,j.jsx)("h2",{children:L("profile_edit_profile")})})}),(null===R||void 0===R?void 0:R.id)!==Y.id&&(0,j.jsxs)("div",{style:{display:"flex",position:"absolute",top:"5px",left:0,width:"100%",alignItems:"center",justifyContent:"flex-end",gap:"6px",padding:"0 12px",margin:"10px 0 6px 0"},children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"5px"},children:[(0,j.jsx)("div",{className:"tool-btn coin-tool-btn",onClick:()=>te(!0),children:(0,j.jsx)("img",{src:"/assets/images/global/coin.png",alt:"\u0625\u0631\u0633\u0627\u0644 \u0639\u0645\u0644\u0627\u062a",width:"22",height:"22",style:{display:"block",objectFit:"contain"}})}),pt?(0,j.jsx)("div",{className:"tool-btn",style:{opacity:.5,cursor:"not-allowed"},children:(0,j.jsx)(us,{size:20})}):J?(0,j.jsx)("div",{style:{borderColor:"#e6594c"},className:"tool-btn",onClick:Bt,children:(0,j.jsx)(ds.A,{size:20,color:"#e6594c"})}):(0,j.jsx)("div",{className:"tool-btn",onClick:Bt,children:(0,j.jsx)(cs.A,{size:20})})]}),(0,j.jsx)("div",{className:"follow-button",onClick:()=>
2{if(!R||!Y)return;const e=h.firebase.database().ref("kunaiu_bank/".concat(R.id)),t=h.firebase.database().ref("kunaiu_bank/".concat(Y.id));lt?(e.child("following").child(Y.id).remove(),t.child("followers").child(R.id).remove(),ct(!1),Q((e=>(0,r.A)((0,r.A)({},e),{},{followers:(e.followers||0)-1})))):(e.child("following").child(Y.id).set(!0),t.child("followers").child(R.id).set(!0),ct(!0),Q((e=>(0,r.A)((0,r.A)({},e),{},{followers:(e.followers||0)+1}))),(0,qa.XJ)(Y.id,R))},children:(0,j.jsx)("h3",{children:L(lt?"profile_unfollow":"profile_follow")})})]}),(0,j.jsx)("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:z?"right":"left",alignItems:"center",width:"100%",marginBottom:"5px",gap:"6px"},children:(0,j.jsxs)("div",{className:"username",style:null!==Y&&void 0!==Y&&Y.subscribed?{marginTop:"10px"}:{},children:[Y.name,!!Y.verified&&(0,j.jsx)("img",{src:"/assets/images/global/verified.png",alt:"verified",style:{width:"16px",height:"16px",marginLeft:"4px",verticalAlign:"middle"}})]})}),(0,j.jsxs)("div",{style:(0,r.A)({display:"flex",alignItems:"center",gap:"8px"},(null===R||void 0===R?void 0:R.id)===(null===Y||void 0===Y?void 0:Y.id)?{marginTop:"3px"}:{transform:"translateY(-5px)"}),children:[(0,j.jsx)("div",{className:"user-handle",children:Y.tag||"no-handle"}),ut&&(0,j.jsx)("span",{style:{fontSize:"11px",backgroundColor:"dark"===M?"rgba(255,255,255,0.1)":"#f0f0f0",color:"dark"===M?"#ccc":"#666",padding:"2px 6px",borderRadius:"4px",lineHeight:1},children:L("profile_follows_you")})]}),Y.description&&(0,j.jsx)("div",{className:"profile-description",children:Y.description}),(0,j.jsx)("div",{className:"user-titles",children:Y.titles&&"object"===typeof Y.titles?Object.values(Y.titles).filter((e=>!e.expiryDate||e.expiryDate>Date.now())).map(((e,t)=>(0,j.jsx)("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",border:"2px solid ".concat(e.bg),color:e.tx,padding:"4px 10px",borderRadius:"5px",minWidth:"20px",minHeight:"30px",textAlign:"center",margin:"2.5px",lineHeight:"20px",height:"18px",verticalAlign:"middle",fontSize:"12px"},children:e.text},t))):null}),(0,j.jsxs)("div",{className:"user-badges",style:{position:"relative"},children:[bt.length>0&&bt.map(((e,t)=>(0,j.jsx)("div",{style:{position:"relative",display:"inline-block"},children:(0,j.jsx)("img",{src:e.imageUrl||"https://assets.amposter.com/badges/badge".concat(e.id,".png"),alt:e.name,width:"30",style:{margin:"4px",marginRight:"5px",cursor:"pointer"},onClick:()=>yt(vt===e?null:e)})},t))),null!==vt&&(0,i.createPortal)((0,j.jsxs)("div",{className:"badge-tooltip-container ".concat("dark"===M?"theme-dark-item":"theme-light-item"),style:{position:"fixed",bottom:"0",left:"0",right:"0",backgroundColor:"dark"===M?"#0b0b0b":"white",borderTop:"dark"===M?"1px solid #222":"1px solid #ddd",borderRadius:"12px 12px 0 0",padding:"20px",boxShadow:"dark"===M?"0 -2px 8px rgba(0,0,0,0.6)":"0 -2px 8px rgba(0, 0, 0, 0.15)",zIndex:999999,textAlign:"center"},children:[(0,j.jsx)("div",{style:{marginBottom:"12px"},children:(0,j.jsx)("img",{src:vt.imageUrl||"https://assets.amposter.com/badges/badge".concat(vt.id,".png"),alt:vt.name,width:"100",style:{borderRadius:"8px"}})}),(0,j.jsx)("div",{style:{fontWeight:"bold",fontSize:"16px",marginBottom:"8px"},children:vt.name}),(null===R||void 0===R?void 0:R.id)===Y.id&&(0,j.jsx)("div",{style:{color:"dark"===M?"#c8dbe4":"#666",fontSize:"14px"},children:(0,Ba.f)(vt.grantedDate)})]}),document.body)]}),(0,j.jsxs)("div",{className:"join-date",children:[(0,j.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,j.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),(0,j.jsxs)("span",{children:[L("profile_join_date"),": ",Ys(Y.joined_date)||"-"]})]}),(0,j.jsxs)("div",{className:"user-stats",children:[(0,j.jsxs)("div",{className:"stat",onClick:()=>Re({type:"followers"}),style:{cursor:"pointer"},children:[(0,j.jsx)("strong",{children:Y.followers||0})," ",L("profile_followers")]}),(0,j.jsxs)("div",{className:"stat",onClick:()=>Re({type:"following"}),style:{cursor:"pointer"},children:[(0,j.jsx)("strong",{children:Y.following||0})," ",L("profile_following")]})]})]})}),ee&&(0,j.jsx)(g.A,{onClose:()=>te(!1),onSend:async(e,t,n)=>{const o=R.id,i=R.name;try{await(0,Ua.Cz)(o,e.id,t,n,{senderName:i,recipientName:null===Y||void 0===Y?void 0:Y.name,senderMessage:L("profile_coins_sent_to_ar",{name:(null===Y||void 0===Y?void 0:Y.name)||""}),recipientMessage:L("profile_coins_received_from_ar",{name:i})}),Q((e=>e?(0,r.A)((0,r.A)({},e),{},{value:(Number(e.value)||0)+Number(t)}):e)),te(!1),await(0,qa.oM)(e.id,{id:o,name:i},t,n)}catch(a){throw se({isOpen:!0,title:L("profile_send_coins_error_title","\u062a\u0639\u0630\u0631 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u062a"),message:a.message||L("profile_send_coins_error","\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u062a"),type:"error"}),a}},targetUserId:Y.id})]}),(0,j.jsxs)("div",{className:"profile-posts-section ".concat("dark"===M?"theme-dark-space":"theme-light-space"),children:[(0,j.jsxs)("div",{className:"profile-tabs-header ".concat("dark"===M?"theme-dark-item":"theme-light-item"),children:[(0,j.jsx)("button",{onClick:()=>qt("latest"),className:"profile-tab-button ".concat("latest"===Et?"active":""),children:L("profile_tab_latest")}),(0,j.jsx)("button",{onClick:()=>qt("lists"),className:"profile-tab-button ".concat("lists"===Et?"active":""),children:L("profile_tab_lists")})]}),(0,j.jsx)("div",{style:{overflow:"hidden",position:"relative",minHeight:"50vh"},onTouchStart:e=>{Rt.current={startX:e.touches[0].clientX,startY:e.touches[0].clientY}},onTouchEnd:e=>{if(!Rt.current)return;const t=e.changedTouches[0].clientX-Rt.current.startX,n=e.changedTouches[0].clientY-Rt.current.startY;if(Rt.current=null,Math.abs(t)<50||Math.abs(t)<Math.abs(n))return;const r=["latest","lists"],o=r.indexOf(Et);t<0&&o<r.length-1?qt(r[o+1]):t>0&&o>0&&qt(r[o-1])},children:(0,j.jsx)(m.N,{mode:"wait",children:(0,j.jsxs)(_.P.div,{initial:{x:"left"===Nt?100:-100,opacity:0}
2,animate:{x:0,opacity:1},exit:{x:"left"===Nt?-100:100,opacity:0},transition:{duration:.3},style:{width:"100%"},children:["latest"===Et&&(0,j.jsx)(j.Fragment,{children:fe.length>0?(0,j.jsxs)(j.Fragment,{children:[(null===R||void 0===R?void 0:R.id)===(null===Y||void 0===Y?void 0:Y.id)&&_e&&fe.filter((e=>e.pinned)).length>1?(0,j.jsx)(a.Mp,{sensors:B,collisionDetection:a.fp,onDragEnd:e=>{let{active:t,over:n}=e;if(!n||t.id===n.id)return;const r=fe.filter((e=>e.pinned)),o=r.findIndex((e=>e.id===t.id)),i=r.findIndex((e=>e.id===n.id));o<0||i<0||Ut((0,s.be)(r,o,i))},children:(0,j.jsx)(s.gB,{items:fe.filter((e=>e.pinned)).map((e=>e.id)),strategy:s._G,children:fe.slice(0,ve).map((e=>{if(!e.pinned)return Zs(e);const t=fe.filter((e=>e.pinned)),n=t.findIndex((t=>t.id===e.id));return(0,j.jsx)(Js,{id:e.id,index:n,total:t.length,onMove:Ht,isRTL:z,children:Zs(e,{canManagePinnedOrder:!0,isPinnedOrderMode:_e,onTogglePinnedOrder:()=>ge(!1)})},e.id)}))})}):fe.slice(0,ve).map((e=>Zs(e,{canManagePinnedOrder:Boolean(e.pinned&&(null===R||void 0===R?void 0:R.id)===(null===Y||void 0===Y?void 0:Y.id)&&fe.filter((e=>e.pinned)).length>1),isPinnedOrderMode:_e,onTogglePinnedOrder:()=>ge(!0)}))),ve<fe.length&&(0,j.jsxs)("div",{style:{padding:"20px",textAlign:"center",color:"#1da1f2",fontSize:"14px",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px"},children:[(0,j.jsx)("div",{style:{width:"16px",height:"16px",border:"2px solid #1da1f2",borderTopColor:"transparent",borderRadius:"50%",animation:"spin 1s linear infinite"}}),L("profile_loading_more")," (",ve,"/",fe.length,")"]})]}):K?(0,j.jsxs)("div",{style:{textAlign:"center",padding:"60px",color:"#1da1f2"},children:[(0,j.jsx)("span",{style:{animation:"spin 1s linear infinite",display:"inline-block"},children:"\u27f3"}),L("profile_loading_posts")]}):(0,j.jsx)("div",{className:"no-posts-container",children:L("profile_no_posts")})}),"lists"===Et&&(0,j.jsx)(j.Fragment,{children:Tt.length>0?(null===R||void 0===R?void 0:R.id)===(null===Y||void 0===Y?void 0:Y.id)?(0,j.jsx)(a.Mp,{collisionDetection:a.fp,onDragEnd:e=>{let{active:t,over:n}=e;if(!n||t.id===n.id)return;const r=Tt.findIndex((e=>e.id===t.id)),o=Tt.findIndex((e=>e.id===n.id)),i=(0,s.be)(Tt,r,o);Pt(i);const a={};i.forEach(((e,t)=>{a["".concat(e.id,"/order")]=t})),h.firebase.database().ref("user_posts_list/".concat(A)).update(a)},children:(0,j.jsx)(s.gB,{items:Tt.map((e=>e.id)),strategy:s._G,children:(0,j.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"16px",padding:"16px"},children:Tt.map((e=>(0,j.jsx)($s,{id:e.id,handle:e=>(0,j.jsx)("span",(0,r.A)((0,r.A)({},e),{},{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"grab",width:32,height:32,borderRadius:"50%",background:"dark"===M?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)",boxShadow:"0 1px 4px rgba(0,0,0,0.08)",fontSize:22,color:"#fff",userSelect:"none",touchAction:"none",WebkitUserSelect:"none"},title:L("profile_drag_list_tooltip"),children:"\u2630"})),children:(0,j.jsxs)("div",{onClick:()=>I("/list/".concat(A,"/").concat(e.id)),style:{backgroundColor:"dark"===M?"#161b22":"#fff",border:"dark"===M?"1px solid #222":"1px solid #e1e8ed",borderRadius:"12px",padding:"16px",cursor:"pointer",transition:"all 0.3s ease",backgroundImage:e.image?"linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url(".concat(e.image,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",color:e.image||"dark"===M?"#fff":"#1a1a1a",boxShadow:"dark"===M?"none":"0 1px 3px rgba(0,0,0,0.1)",minHeight:"120px",display:"flex",flexDirection:"column",justifyContent:"space-between",userSelect:"none"},onMouseEnter:e=>{e.currentTarget.style.boxShadow="dark"===M?"0 4px 12px rgba(29, 161, 242, 0.2)":"0 4px 12px rgba(0,0,0,0.15)",e.currentTarget.style.borderColor="#1da1f2"},onMouseLeave:e=>{e.currentTarget.style.boxShadow="dark"===M?"none":"0 1px 3px rgba(0,0,0,0.1)",e.currentTarget.style.borderColor="dark"===M?"#222":"#e1e8ed"},children:[(0,j.jsx)("h3",{style:{margin:"0 0 8px 0",fontSize:"18px",fontWeight:"700",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name||L("profile_list_untitled")}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",fontSize:"13px",color:e.image?"rgba(255,255,255,0.8)":"dark"===M?"#8899aa":"#666"},children:[(0,j.jsxs)("span",{children:[e.posts&&Array.isArray(e.posts)?e.posts.length:0," ",L("profile_post_count_unit")]}),(0,j.jsx)("span",{children:e.date?(0,Ba.f)(e.date):"-"})]})]})},e.id)))})})}):(0,j.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"16px",padding:"16px"},children:Tt.map((e=>(0,j.jsxs)("div",{onClick:()=>I("/list/".concat(A,"/").concat(e.id)),style:{backgroundColor:"dark"===M?"#161b22":"#fff",border:"dark"===M?"1px solid #222":"1px solid #e1e8ed",borderRadius:"12px",padding:"16px",cursor:"pointer",transition:"all 0.3s ease",backgroundImage:e.image?"linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url(".concat(e.image,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",color:e.image||"dark"===M?"#fff":"#1a1a1a",boxShadow:"dark"===M?"none":"0 1px 3px rgba(0,0,0,0.1)",minHeight:"120px",display:"flex",flexDirection:"column",justifyContent:"space-between"},onMouseEnter:e=>{e.currentTarget.style.boxShadow="dark"===M?"0 4px 12px rgba(29, 161, 242, 0.2)":"0 4px 12px rgba(0,0,0,0.15)",e.currentTarget.style.borderColor="#1da1f2"},onMouseLeave:e=>{e.currentTarget.style.boxShadow="dark"===M?"none":"0 1px 3px rgba(0,0,0,0.1)",e.currentTarget.style.borderColor="dark"===M?"#222":"#e1e8ed"},children:[(0,j.jsx)("h3",{style:{margin:"0 0 8px 0",fontSize:"18px",fontWeight:"700",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name||L("profile_list_untitled")}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",fontSize:"13px",color:e.image?"rgba(255,255,255,0.8)":"dark"===M?"#8899aa":"#666"},children:[(0,j.jsxs)("span",{children:[e.posts&&Array.isArray(e.posts)?e.posts.length:0," ",L("profile_post_count_unit")]}),(0,j.jsx)("span",{children:e.date?(0,Ba.f)(e.date):"-"})]})]},e.id)))}):(0,j.jsxs)("div",{className:"no-posts-container",style:{padding:"60px 20px",textAlign:"center"},children:[(0,j.jsx)("p",{style:{fontSize:"16px",color:"dark"===M?"#8899aa":"#666",margin:"0 0 8px 0"},children:L("profile_no_lists")}),(null===R||void 0===R?void 0:R.id)===(null===Y||void 0===Y?void 0:Y.id)&&(0,j.jsx)("p",{style:{fontSize:"14px",color:"dark"===M?"#657786":"#999",margin:0},children:L("profile_no_lists_hint")})]})})]},Et)})})]}),(0,i.createPortal)((0,j.jsx)(m.N,{children:"lists"===Et&&(null===R||void 0===R?void 0:R.id)===(null===Y||void 0===Y?void 0:Y.id)&&(0,j.jsx)(_.P.button,{onClick:()=>I("/create-post-list"),initial:{scale:0},animate:{scale:1},exit:{scale:0},style:{position:"fixed",bottom:"20px",right:"20px",width:"56px",height:"56px",borderRadius:"50%",backgroundColor:"#1da1f2",border:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 12px rgba(29, 161, 242, 0.4)",zIndex:999999}
2,whileHover:{scale:1.1,boxShadow:"0 6px 16px rgba(29, 161, 242, 0.6)"},whileTap:{scale:.95},children:(0,j.jsx)(Va.A,{size:24,color:"white",strokeWidth:3})})}),document.body),oe&&(0,i.createPortal)((0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:"menu-portal-backdrop",onClick:()=>ie(!1),style:{zIndex:(0,E.v7)(1e4)-1,position:"fixed",inset:0,background:"rgba(0,0,0,0.4)"}}),(0,j.jsxs)("div",{className:"post_menu_options profile-menu-sheet profile-moderation-sheet ".concat("dark"===M?"theme-dark":""),role:"dialog","aria-modal":"true","aria-label":L("profile_moderation_actions"),dir:F,style:{zIndex:(0,E.v7)(1e4)},children:[(0,j.jsx)("div",{className:"profile-sheet-title",children:L("profile_moderation_actions")}),(0,j.jsxs)("button",{className:"menu-item danger-item",onClick:()=>{Jt(),ie(!1)},children:[(0,j.jsx)(rs.A,{size:18})," ",Y.sensitive_img?L("profile_allow_image"):L("profile_ban_image")]}),(0,j.jsxs)("button",{className:"menu-item danger-item",onClick:()=>{Zt(),ie(!1)},children:[(0,j.jsx)(rs.A,{size:18})," ",Y.sensitive_cover?L("profile_allow_cover"):L("profile_ban_cover")]}),(0,j.jsxs)("button",{className:"menu-item danger-item",onClick:()=>{en(),ie(!1)},children:[(0,j.jsx)(os.A,{size:18})," ",L("profile_send_warning")]}),Yt&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("button",{className:"menu-item danger-item",onClick:()=>{tn(Ks._c.PUBLISH,"ban"),ie(!1)},children:[(0,j.jsx)(is.A,{size:18})," ",L("profile_ban_publish")]}),(0,j.jsxs)("button",{className:"menu-item danger-item",onClick:()=>{tn(Ks._c.COMMENT,"ban"),ie(!1)},children:[(0,j.jsx)(is.A,{size:18})," ",L("profile_ban_comment")]}),(0,j.jsxs)("button",{className:"menu-item danger-item",onClick:()=>{tn(Ks._c.REACTION,"ban"),ie(!1)},children:[(0,j.jsx)(is.A,{size:18})," ",L("profile_ban_reaction")]}),(0,j.jsxs)("button",{className:"menu-item danger-item",onClick:()=>{tn(Ks._c.MESSAGE,"ban"),ie(!1)},children:[(0,j.jsx)(is.A,{size:18})," ",L("profile_ban_message")]})]}),Qt&&(0,j.jsxs)("button",{className:"menu-item danger-item",onClick:()=>{tn(Ks._c.FULL,"ban"),ie(!1)},children:[(0,j.jsx)(as.A,{size:18})," ",L("profile_ban_permanent")]}),Xt&&(0,j.jsxs)(j.Fragment,{children:[(0,Ks.DO)(Y,Ks._c.PUBLISH)&&(0,j.jsxs)("button",{className:"menu-item admin-item",onClick:()=>{tn(Ks._c.PUBLISH,"unban"),ie(!1)},children:[(0,j.jsx)(is.A,{size:18})," ",L("profile_unban_publish")]}),(0,Ks.DO)(Y,Ks._c.COMMENT)&&(0,j.jsxs)("button",{className:"menu-item admin-item",onClick:()=>{tn(Ks._c.COMMENT,"unban"),ie(!1)},children:[(0,j.jsx)(is.A,{size:18})," ",L("profile_unban_comment")]}),(0,Ks.DO)(Y,Ks._c.REACTION)&&(0,j.jsxs)("button",{className:"menu-item admin-item",onClick:()=>{tn(Ks._c.REACTION,"unban"),ie(!1)},children:[(0,j.jsx)(is.A,{size:18})," ",L("profile_unban_reaction")]}),(0,Ks.DO)(Y,Ks._c.MESSAGE)&&(0,j.jsxs)("button",{className:"menu-item admin-item",onClick:()=>{tn(Ks._c.MESSAGE,"unban"),ie(!1)},children:[(0,j.jsx)(is.A,{size:18})," ",L("profile_unban_message")]}),(0,Ks.DO)(Y,Ks._c.FULL)&&(0,j.jsxs)("button",{className:"menu-item admin-item",onClick:()=>{tn(Ks._c.FULL,"unban"),ie(!1)},children:[(0,j.jsx)(is.A,{size:18})," ",L("profile_unban_permanent")]})]})]})]}),document.body),(0,i.createPortal)((0,j.jsx)(v.A,{isOpen:ae.isOpen,onClose:()=>se((0,r.A)((0,r.A)({},ae),{},{isOpen:!1})),title:ae.title,message:ae.message,type:ae.type}),document.body),(0,i.createPortal)((0,j.jsx)(y.A,{isOpen:le.isOpen,title:le.title,message:le.message,onConfirm:le.onConfirm,onCancel:le.onCancel,confirmText:le.confirmText,cancelText:le.cancelText,isDangerous:le.isDangerous}),document.body),be&&(0,i.createPortal)((0,j.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:(0,E.v7)(1e3)},children:(0,j.jsxs)("div",{style:{backgroundColor:"#fff",borderRadius:"12px",padding:"30px",maxWidth:"400px",width:"90%",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.2)"},children:[(0,j.jsx)("h2",{style:{marginTop:0,marginBottom:"20px",textAlign:"center"},children:L("profile_grant_title_dialog_heading")}),(0,j.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_title_name_label")}),(0,j.jsx)("input",{type:"text",value:xe.text,onChange:e=>ke((0,r.A)((0,r.A)({},xe),{},{text:e.target.value})),placeholder:L("profile_title_name_placeholder"),style:{width:"100%",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"}})]}),(0,j.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_duration_label")}),(0,j.jsxs)("select",{value:xe.duration,onChange:e=>ke((0,r.A)((0,r.A)({},xe),{},{duration:e.target.value})),style:{width:"100%",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"},children:[(0,j.jsx)("option",{value:"1day",children:L("profile_duration_1day")}),(0,j.jsx)("option",{value:"3days",children:L("profile_duration_3days")}),(0,j.jsx)("option",{value:"month",children:L("profile_duration_month")}),(0,j.jsx)("option",{value:"permanent",children:L("profile_duration_permanent")})]})]}),(0,j.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_bg_color_label")}),(0,j.jsxs)("div",{style:{display:"flex",gap:"10px",alignItems:"center",position:"relative"},className:"color-picker-container",children:[(0,j.jsx)("div",{onClick:()=>mt(!ft),style:{width:"60px",height:"40px",border:"1px solid #ddd",borderRadius:"6px",cursor:"pointer",backgroundColor:xe.bg}}),(0,j.jsx)("input",{type:"text",value:xe.bg,onChange:e=>ke((0,r.A)((0,r.A)({},xe),{},{bg:e.target.value})),style:{flex:1,padding:"8px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px"}}),ft&&(0,j.jsx)("div",{style:{position:"absolute",top:"50px",left:"0",zIndex:(0,E.v7)(1e3)},children:(0,j.jsx)(Ra,{color:xe.bg,onChangeComplete:e=>{ke((0,r.A)((0,r.A)({},xe),{},{bg:e.hex})),mt(!1)}})})]})]}),(0,j.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_text_color_label")}),(0,j.jsxs)("div",{style:{display:"flex",gap:"10px",alignItems:"center",position:"relative"},className:"color-picker-container",children:[(0,j.jsx)("div",{onClick:()=>gt(!_t),style:{width:"60px",height:"40px",border:"1px solid #ddd",borderRadius:"6px",cursor:"pointer",backgroundColor:xe.tx}}),(0,j.jsx)("input",{type:"text",value:xe.tx,onChange:e=>ke((0,r.A)((0,r.A)({},xe),{},{tx:e.target.value})),style:{flex:1,padding:"8px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px"}}),_t&&(0,j.jsx)("div",{style:{position:"absolute",top:"50px",left:"0",zIndex:(0,E.v7)(1e3)},children:(0,j.jsx)(Ra,{color:xe.tx,onChangeComplete:e=>{ke((0,r.A)((0,r.A)({},xe),{},{tx:e.hex})),gt(!1)}})})]})]}),(0,j.jsxs)("div",{style:{marginBottom:"20px",textAlign:"center"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_preview_label")}
2),(0,j.jsx)("span",{style:{border:"2px solid ".concat(xe.bg),color:xe.tx,padding:"4px 10px",borderRadius:"6px",display:"inline-block",fontSize:"14px"},children:xe.text||L("profile_preview_placeholder")})]}),(0,j.jsxs)("div",{style:{display:"flex",gap:"10px",justifyContent:"flex-end"},children:[(0,j.jsx)("button",{onClick:()=>we(!1),style:{padding:"10px 20px",border:"1px solid #ddd",borderRadius:"6px",backgroundColor:"#f5f5f5",cursor:"pointer",fontSize:"14px"},children:L("profile_cancel")}),(0,j.jsx)("button",{onClick:()=>{if(!xe.text.trim())return void se({isOpen:!0,title:L("profile_error_title"),message:L("profile_title_name_required"),type:"error"});const e=Date.now();let t=null;switch(xe.duration){case"1day":t=e+864e5;break;case"3days":t=e+2592e5;break;case"month":t=e+2592e6;break;default:t=null}const n=h.firebase.database().ref("kunaiu_bank/".concat(Y.id,"/titles")),r={text:xe.text,bg:xe.bg,tx:xe.tx,grantedDate:e,expiryDate:t};n.push(r).then((()=>{se({isOpen:!0,title:L("profile_success_title"),message:L("profile_title_granted_success"),type:"success"}),we(!1),ke({text:"",bg:"#000000",tx:"#000000",duration:"permanent"})})).catch((e=>{console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u0645\u0646\u062d \u0627\u0644\u0644\u0642\u0628:",e),se({isOpen:!0,title:L("profile_error_title"),message:L("profile_title_granted_error"),type:"error"})}))},style:{padding:"10px 20px",border:"none",borderRadius:"6px",backgroundColor:"#4CAF50",color:"#fff",cursor:"pointer",fontSize:"14px"},children:L("profile_save")})]})]})}),document.body),Se&&Y.titles&&"object"===typeof Y.titles&&Object.values(Y.titles).filter((e=>!e.expiryDate||e.expiryDate>Date.now())).length>0&&(0,i.createPortal)((0,j.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:(0,E.v7)(1e3)},children:(0,j.jsxs)("div",{style:{backgroundColor:"#fff",borderRadius:"12px",padding:"30px",maxWidth:"400px",width:"90%",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.2)"},children:[(0,j.jsx)("h2",{style:{marginTop:0,marginBottom:"20px",textAlign:"center"},children:L("profile_delete_title_dialog_heading")}),(0,j.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_select_title_to_delete")}),(0,j.jsxs)("select",{value:null!==Oe?Oe:"",onChange:e=>De(parseInt(e.target.value)),style:{width:"100%",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"},children:[(0,j.jsx)("option",{value:"",children:L("profile_select_title_placeholder")}),Object.values(Y.titles).filter((e=>!e.expiryDate||e.expiryDate>Date.now())).map(((e,t)=>(0,j.jsx)("option",{value:t,children:e.text},t)))]})]}),null!==Oe&&(0,j.jsxs)("div",{style:{marginBottom:"20px",textAlign:"center"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_preview_label")}),(0,j.jsx)("span",{style:{backgroundColor:Object.values(Y.titles)[Oe].bg,color:Object.values(Y.titles)[Oe].tx,padding:"4px 10px",borderRadius:"16px",display:"inline-block",fontSize:"14px"},children:Object.values(Y.titles)[Oe].text})]}),(0,j.jsxs)("div",{style:{display:"flex",gap:"10px",justifyContent:"flex-end"},children:[(0,j.jsx)("button",{onClick:()=>{Ce(!1),De(null)},style:{padding:"10px 20px",border:"1px solid #ddd",borderRadius:"6px",backgroundColor:"#f5f5f5",cursor:"pointer",fontSize:"14px"},children:L("profile_cancel")}),(0,j.jsx)("button",{onClick:()=>{if(null===Oe)return void se({isOpen:!0,title:L("profile_error_title"),message:L("profile_title_select_required"),type:"error"});const e=h.firebase.database().ref("kunaiu_bank/".concat(Y.id,"/titles")),t=Object.entries(Y.titles),[n]=t[Oe];e.child(n).remove().then((()=>{se({isOpen:!0,title:L("profile_success_title"),message:L("profile_title_deleted_success"),type:"success"}),Ce(!1),De(null),Q((e=>{const t=(0,r.A)({},e.titles);return delete t[n],(0,r.A)((0,r.A)({},e),{},{titles:t})}))})).catch((e=>{console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u062d\u0630\u0641 \u0627\u0644\u0644\u0642\u0628:",e),se({isOpen:!0,title:L("profile_error_title"),message:L("profile_title_deleted_error"),type:"error"})}))},style:{padding:"10px 20px",border:"none",borderRadius:"6px",backgroundColor:"#e6594c",color:"#fff",cursor:"pointer",fontSize:"14px"},children:L("profile_delete")})]})]})}),document.body),Me&&(0,i.createPortal)((0,j.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:(0,E.v7)(1e3)},children:(0,j.jsxs)("div",{style:{backgroundColor:"#fff",borderRadius:"12px",padding:"30px",maxWidth:"500px",width:"90%",maxHeight:"80vh",overflowY:"auto",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.2)"},children:[(0,j.jsx)("h2",{style:{marginTop:0,marginBottom:"20px",textAlign:"center"},children:L("profile_grant_badge_dialog_heading")}),(0,j.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_badge_name_label")}),(0,j.jsx)("input",{type:"text",value:Be,onChange:e=>qe(e.target.value),placeholder:L("profile_badge_name_placeholder"),style:{width:"100%",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"}})]}),(0,j.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_duration_label")}),(0,j.jsxs)("select",{value:Ue,onChange:e=>He(e.target.value),style:{width:"100%",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"},children:[(0,j.jsx)("option",{value:"1day",children:L("profile_duration_1day")}),(0,j.jsx)("option",{value:"3days",children:L("profile_duration_3days")}),(0,j.jsx)("option",{value:"month",children:L("profile_duration_month")}),(0,j.jsx)("option",{value:"permanent",children:L("profile_duration_permanent")})]})]}),(0,j.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_select_badge_label")}),(0,j.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:"12px",maxHeight:"150px",overflowY:"auto",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",backgroundColor:"#f9f9f9"},children:Array.from({length:17},((e,t)=>t+1)).map((e=>(0,j.jsx)("div",{onClick:()=>ze(e),style:{display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:Fe===e?"3px solid #4CAF50":"2px solid #ddd",borderRadius:"8px",padding:"12px",backgroundColor:Fe===e?"#f0f8f0":"#fff",transition:"all 0.3s"},children:(0,j.jsx)("img",{src:"https://assets.amposter.com/badges/badge".concat(e,".png"),alt:"badge".concat(e),width:"32",height:"32",style:{pointerEvents:"none"}})},e)))})]}),(0,j.jsxs)("div",{style:{display:"flex",gap:"10px",justifyContent:"flex-end"},children:[(0,j.jsx)("button",{onClick:()=>{Le(!1),ze(null),qe(""),He("permanent")},style:{padding:"10px 20px",border:"1px solid #ddd",borderRadius:"6px",backgroundColor:"#f5f5f5",cursor:"pointer",fontSize:"14px"},children:L("profile_cancel")}),(0,j.jsx)("button",{onClick:()=>
2{if(!Fe)return void se({isOpen:!0,title:L("profile_error_title"),message:L("profile_badge_select_required"),type:"error"});if(!Be.trim())return void se({isOpen:!0,title:L("profile_error_title"),message:L("profile_badge_name_required"),type:"error"});const e=Date.now();let t=null;switch(Ue){case"1day":t=e+864e5;break;case"3days":t=e+2592e5;break;case"month":t=e+2592e6;break;default:t=null}const n=h.firebase.database().ref("kunaiu_bank/".concat(Y.id,"/badge")),o={id:Fe,name:Be,grantedDate:e,expiryDate:t},i=n.push();i.set(o).then((()=>{se({isOpen:!0,title:L("profile_success_title"),message:L("profile_badge_granted_success"),type:"success"}),Le(!1),ze(null),qe(""),He("permanent"),Q((e=>(0,r.A)((0,r.A)({},e),{},{badge:(0,r.A)((0,r.A)({},e.badge),{},{[i.key]:o})})))})).catch((e=>{console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u0645\u0646\u062d \u0627\u0644\u0634\u0627\u0631\u0629:",e),se({isOpen:!0,title:L("profile_error_title"),message:L("profile_badge_granted_error"),type:"error"})}))},style:{padding:"10px 20px",border:"none",borderRadius:"6px",backgroundColor:"#4CAF50",color:"#fff",cursor:"pointer",fontSize:"14px"},children:L("profile_save")})]})]})}),document.body),We&&Y.badge&&"object"===typeof Y.badge&&Object.values(Y.badge).filter((e=>!e.expiryDate||e.expiryDate>Date.now())).length>0&&(0,i.createPortal)((0,j.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:(0,E.v7)(1e3)},children:(0,j.jsxs)("div",{style:{backgroundColor:"#fff",borderRadius:"12px",padding:"30px",maxWidth:"400px",width:"90%",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.2)"},children:[(0,j.jsx)("h2",{style:{marginTop:0,marginBottom:"20px",textAlign:"center"},children:L("profile_delete_badge_dialog_heading")}),(0,j.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_select_badge_to_delete")}),(0,j.jsxs)("select",{value:null!==Ke?Ke:"",onChange:e=>Ge(""===e.target.value?null:parseInt(e.target.value)),style:{width:"100%",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"},children:[(0,j.jsx)("option",{value:"",children:L("profile_select_badge_placeholder")}),bt.map(((e,t)=>(0,j.jsx)("option",{value:t,children:e.name},t)))]})]}),null!==Ke&&bt[Ke]&&(0,j.jsxs)("div",{style:{marginBottom:"20px",textAlign:"center"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_preview_label")}),(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"10px"},children:[(0,j.jsx)("img",{src:"https://assets.amposter.com/badges/badge".concat(bt[Ke].id,".png"),alt:"badge",width:"40",height:"40"}),(0,j.jsx)("span",{children:bt[Ke].name})]})]}),(0,j.jsxs)("div",{style:{display:"flex",gap:"10px",justifyContent:"flex-end"},children:[(0,j.jsx)("button",{onClick:()=>{Ve(!1),Ge(null)},style:{padding:"10px 20px",border:"1px solid #ddd",borderRadius:"6px",backgroundColor:"#f5f5f5",cursor:"pointer",fontSize:"14px"},children:L("profile_cancel")}),(0,j.jsx)("button",{onClick:()=>{if(null===Ke||!bt[Ke])return void se({isOpen:!0,title:L("profile_error_title"),message:L("profile_badge_select_required"),type:"error"});const e=bt[Ke];let t=null;if(Object.entries(Y.badge||{}).forEach((n=>{let[r,o]=n;o===e&&(t=r)})),!t)return;h.firebase.database().ref("kunaiu_bank/".concat(Y.id,"/badge")).child(t).remove().then((()=>{se({isOpen:!0,title:L("profile_success_title"),message:L("profile_badge_deleted_success"),type:"success"}),Ve(!1),Ge(null),Q((e=>{const n=(0,r.A)({},e.badge);return delete n[t],(0,r.A)((0,r.A)({},e),{},{badge:n})}))})).catch((e=>{console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u062d\u0630\u0641 \u0627\u0644\u0634\u0627\u0631\u0629:",e),se({isOpen:!0,title:L("profile_error_title"),message:L("profile_badge_deleted_error"),type:"error"})}))},style:{padding:"10px 20px",border:"none",borderRadius:"6px",backgroundColor:"#e6594c",color:"#fff",cursor:"pointer",fontSize:"14px"},children:L("profile_delete")})]})]})}),document.body),Ye&&(0,i.createPortal)((0,j.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.55)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:(0,E.v7)(1e3)},children:(0,j.jsxs)("div",{style:{backgroundColor:"#fff",borderRadius:"12px",padding:"30px",maxWidth:"520px",width:"92%",maxHeight:"85vh",overflowY:"auto",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.2)"},children:[(0,j.jsx)("h2",{style:{marginTop:0,marginBottom:"18px",textAlign:"center"},children:"unban"===Xe?L("profile_unban_dialog_heading",{banLabel:Ks.z[Je]||L("profile_ban_generic")}):Ks.z[Je]||L("profile_ban_generic")}
2),(0,j.jsxs)("div",{style:{marginBottom:"16px",color:"#666",fontSize:"14px",lineHeight:1.6},children:[L("profile_ban_target_label"),": ",(0,j.jsx)("strong",{children:(null===Y||void 0===Y?void 0:Y.name)||(null===Y||void 0===Y?void 0:Y.tag)||L("profile_unknown")})]}),"ban"===Xe?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_ban_type_label")}),(0,j.jsxs)("select",{value:Je,onChange:e=>{const t=e.target.value;Ze(t),t===Ks._c.FULL&&tt("permanent")},style:{width:"100%",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"},children:[(0,j.jsx)("option",{value:Ks._c.PUBLISH,children:L("profile_ban_publish")}),(0,j.jsx)("option",{value:Ks._c.COMMENT,children:L("profile_ban_comment")}),(0,j.jsx)("option",{value:Ks._c.REACTION,children:L("profile_ban_reaction")}),(0,j.jsx)("option",{value:Ks._c.MESSAGE,children:L("profile_ban_message")}),(0,j.jsx)("option",{value:Ks._c.FULL,children:L("profile_ban_permanent")})]})]}),(0,j.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_ban_duration_label")}),(0,j.jsxs)("select",{value:et,onChange:e=>tt(e.target.value),disabled:Je===Ks._c.FULL,style:{width:"100%",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"},children:[(0,j.jsx)("option",{value:"permanent",children:L("profile_duration_permanent")}),(0,j.jsx)("option",{value:"temporary",children:L("profile_ban_temporary")})]})]}),Je!==Ks._c.FULL&&"temporary"===et&&(0,j.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px",marginBottom:"16px"},children:[(0,j.jsxs)("div",{children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_ban_amount_label")}),(0,j.jsx)("input",{type:"number",min:"1",value:nt,onChange:e=>rt(e.target.value),style:{width:"100%",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"}})]}),(0,j.jsxs)("div",{children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_ban_unit_label")}),(0,j.jsxs)("select",{value:ot,onChange:e=>it(e.target.value),style:{width:"100%",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"},children:[(0,j.jsx)("option",{value:"days",children:L("profile_ban_unit_days")}),(0,j.jsx)("option",{value:"months",children:L("profile_ban_unit_months")})]})]})]}),(0,j.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,j.jsx)("label",{style:{display:"block",marginBottom:"8px",fontWeight:"bold"},children:L("profile_ban_reason_label")}),(0,j.jsx)("textarea",{value:at,onChange:e=>st(e.target.value),placeholder:L("profile_ban_reason_placeholder"),rows:4,style:{width:"100%",padding:"10px",border:"1px solid #ddd",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box",resize:"vertical"}})]})]}):(0,j.jsxs)("div",{style:{marginBottom:"20px",color:"#555",lineHeight:1.7},children:[L("profile_unban_confirm_text",{banLabel:Ks.z[Je]||L("profile_ban_generic")}),(null===(t=(0,Ks.DO)(Y,Je))||void 0===t?void 0:t.reason)&&(0,j.jsxs)("div",{style:{marginTop:"8px"},children:[L("profile_ban_current_reason"),": ",(0,j.jsx)("strong",{children:(0,Ks.DO)(Y,Je).reason})]})]}),(0,j.jsxs)("div",{style:{display:"flex",gap:"10px",justifyContent:"flex-end"},children:[(0,j.jsx)("button",{onClick:()=>{Qe(!1),st(""),rt("1"),it("days"),tt("permanent")},style:{padding:"10px 20px",border:"1px solid #ddd",borderRadius:"6px",backgroundColor:"#f5f5f5",cursor:"pointer",fontSize:"14px"},children:L("profile_cancel")}),(0,j.jsx)("button",{onClick:async()=>{if(null!==Y&&void 0!==Y&&Y.id&&null!==R&&void 0!==R&&R.id&&("ban"!==Xe||Yt)&&("ban"!==Xe||Je!==Ks._c.FULL||Qt)&&("unban"!==Xe||Xt))try{const e=h.firebase.database().ref("kunaiu_bank/".concat(Y.id));if("unban"===Xe)await e.child("bans/".concat(Je)).remove(),Q((e=>{const t=(0,r.A)({},(null===e||void 0===e?void 0:e.bans)||{});return delete t[Je],(0,r.A)((0,r.A)({},e),{},{bans:t})}));else{const t=(0,Ks.YG)({banType:Je,reason:at,durationMode:Je===Ks._c.FULL?"permanent":et,durationAmount:nt,durationUnit:ot,createdBy:R.id,createdByRole:Gt});await e.child("bans/".concat(Je)).set(t),Q((e=>(0,r.A)((0,r.A)({},e),{},{bans:(0,r.A)((0,r.A)({},(null===e||void 0===e?void 0:e.bans)||{}),{},{[Je]:t})})))}await zt("unban"===Xe?"unban":"ban","ban_".concat(Je),Y.id,at||Ks.z[Je]||"\u062d\u0638\u0631 \u0625\u062f\u0627\u0631\u064a"),se({isOpen:!0,title:L("profile_success_title"),message:L("unban"===Xe?"profile_unban_success":"profile_ban_success",{banLabel:Ks.z[Je]||L("profile_ban_generic")}),type:"success"}),Qe(!1),st(""),rt("1"),it("days"),tt("permanent"),re(!1)}catch(e){console.error("Error saving ban:",e),se({isOpen:!0,title:L("profile_error_title"),message:L("profile_ban_save_error"),type:"error"})}},style:{padding:"10px 20px",border:"none",borderRadius:"6px",backgroundColor:"#e6594c",color:"#fff",cursor:"pointer",fontSize:"14px"},children:L("unban"===Xe?"profile_unban_confirm_btn":"profile_save")})]})]})}),document.body),wt&&(0,j.jsx)(k.A,{imageUrl:kt,onClose:()=>xt(!1),sourceRect:Ct}),Ie&&(0,j.jsx)(T,{userId:A,type:Ie.type,onClose:()=>Re(null)}),je&&(0,j.jsx)(Ps,{userId:A,userName:null===Y||void 0===Y?void 0:Y.name,onClose:()=>Te(!1)}),Pe&&$t&&Y&&(0,j.jsx)(Vs,{userId:Y.id||A,userName:Y.name,currentUserId:null===R||void 0===R?void 0:R.id,currentUserName:null===R||void 0===R?void 0:R.name,currentUserRole:ue,isSuperAdmin:Kt,onClose:()=>Ne(!1)}),Ae&&Y&&(0,i.createPortal)((0,j.jsx)("div",{className:"modal-overlay",onClick:()=>Ee(!1),style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:11e3},children:(0,j.jsxs)("div",{className:"modal-content ".concat("dark"===M?"theme-dark-bg":""),onClick:e=>e.stopPropagation(),style:{backgroundColor:"dark"===M?"#1e2732":"#fff",color:"dark"===M?"#e5e7eb":"#333",borderRadius:"12px",padding:"24px",width:"90%",maxWidth:"400px",maxHeight:"85vh",overflowY:"auto",boxShadow:"0 10px 25px rgba(0,0,0,0.2)",direction:"rtl"},children:[(0,j.jsx)("h3",{style:{margin:"0 0 20px 0",borderBottom:"dark"===M?"1px solid #38444d":"1px solid #eee",paddingBottom:"10px"},children:L("profile_user_info_heading")}),(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"12px",fontSize:"15px"},children:[(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderBottom:"dark"===M?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",paddingBottom:"8px"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_name"),":"]}),(0,j.jsx)("span",{children:Y.name||L("profile_info_unavailable")})]}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderBottom:"dark"===M?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",paddingBottom:"8px"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_username"),":"]}),(0,j.jsx)("span",{dir:"ltr",children:Y.tag||L("profile_info_unavailable")})]}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderBottom:"dark"===M?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",paddingBottom:"8px"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_email"),":"]}),(0,j.jsx)("span",{dir:"ltr",children:Y.email||L("profile_info_unavailable")})]}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderBottom:"dark"===M?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",paddingBottom:"8px"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_currency"),":"]}),(0,j.jsxs)("span",{children:[Y.value||0," ",L("profile_info_currency_unit")]})]}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderBottom:"dark"===M?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",paddingBottom:"8px"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_points"),":"]}),(0,j.jsxs)("span",{children:[Y.points||0," ",L("profile_info_points_unit")]})]}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderBottom:"dark"===M?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",paddingBottom:"8px"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_violations"),":"]}),(0,j.jsxs)("span",{children:[Gs(Y)," ",L("profile_info_violations_unit")]})]}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderBottom:"dark"===M?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",paddingBottom:"8px"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_saraha_sent"),":"]}),(0,j.jsxs)("span",{children:[Y.sentSarhneCount||0," ",L("profile_info_messages_unit")]})]}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderBottom:"dark"===M?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",paddingBottom:"8px"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_team"),":"]}),(0,j.jsx)("span",{children:Y.teamName||L("profile_info_no_team")})]}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderBottom:"dark"===M?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",paddingBottom:"8px"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_morning_streak"),":"]}),(0,j.jsxs)("span",{children:[(null===(n=Y.morning_adhkar_streak)||void 0===n?void 0:n.count)||Y.morning_adhkar_streak||0," ",L("profile_info_days_unit")]})]}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderBottom:"dark"===M?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",paddingBottom:"8px"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_evening_streak"),":"]}),(0,j.jsxs)("span",{children:[(null===(l=Y.evening_adhkar_streak)||void 0===l?void 0:l.count)||Y.evening_adhkar_streak||0," ",L("profile_info_days_unit")]})]}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderBottom:"dark"===M?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",paddingBottom:"8px"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_tasbeeh_streak"),":"]}),(0,j.jsxs)("span",{children:[(null===(b=Y.tasbeeh_streak)||void 0===b?void 0:b.count)||Y.tasbeeh_streak||0," ",L("profile_info_days_unit")]})]}),(0,j.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,j.jsxs)("strong",{style:{color:"dark"===M?"#aaa":"#666"},children:[L("profile_info_join_date"),":"]}),(0,j.jsx)("span",{dir:"ltr",children:Y.joinDate?new Date(Y.joinDate).toLocaleDateString("en-GB"):L("profile_info_unavailable")})]})]}),(0,j.jsx)("button",{onClick:()=>Ee(!1),style:{width:"100%",padding:"12px",marginTop:"24px",backgroundColor:"#1da1f2",color:"white",border:"none",borderRadius:"8px",fontSize:"16px",fontWeight:"bold",cursor:"pointer"},children:L("profile_close")})]})}),document.body)]}):(0,j.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh",backgroundColor:"#f5f5f5",padding:"20px"},children:(0,j.jsxs)("div",{style:{backgroundColor:"#fff",borderRadius:"12px",padding:"40px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.1)",textAlign:"center",maxWidth:"400px",
2width:"100%"},children:[(0,j.jsx)("div",{style:{fontSize:"48px",marginBottom:"20px",color:"#e74c3c"},children:"\ud83d\ude14"}),(0,j.jsx)("h2",{style:{margin:"0 0 16px 0",color:"#333",fontSize:"24px",fontWeight:"600"},children:L("profile_user_not_found")}),(0,j.jsx)("p",{style:{margin:"0 0 30px 0",color:"#666",fontSize:"16px",lineHeight:"1.5"},children:L("profile_user_not_found_desc")}),(0,j.jsx)("button",{onClick:()=>I(-1),style:{backgroundColor:"#1da1f2",color:"#fff",border:"none",borderRadius:"8px",padding:"12px 24px",fontSize:"16px",fontWeight:"500",cursor:"pointer",transition:"background-color 0.2s"},onMouseOver:e=>e.target.style.backgroundColor="#0d8bf0",onMouseOut:e=>e.target.style.backgroundColor="#1da1f2",children:L("profile_go_back")})]})})}},65173:(e,t,n)=>{e.exports=n(41497)()},65387:(e,t,n)=>{var r=n(87937)(n(56552),"Promise");e.exports=r},65469:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},65505:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},65624:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(65043),o=n(97950),i=n(70579);const a=12,s=e=>{var t,n;let{reactionTypes:s,reactionIcons:l,onSelect:c,onClose:u,theme:d}=e;const p=(0,r.useRef)(null),h=(0,r.useRef)(null),[f,m]=(0,r.useState)(null);return(0,r.useLayoutEffect)((()=>{const e=()=>{var e;const t=null===(e=p.current)||void 0===e?void 0:e.parentElement,n=h.current;if(!t||!n)return;const r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=Math.max(a,window.innerWidth-o.width-a),s=r.left+(r.width-o.width)/2,l=Math.min(Math.max(s,a),i),c=r.top>=o.height+8+a?r.top-o.height-8:r.bottom+8,u=Math.max(a,window.innerHeight-o.height-a),d=Math.min(Math.max(c,a),u);m({left:l,top:d})};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}}),[]),(0,r.useEffect)((()=>{const e=e=>{var t;const n=h.current,r=null===(t=p.current)||void 0===t?void 0:t.parentElement;null!==n&&void 0!==n&&n.contains(e.target)||null!==r&&void 0!==r&&r.contains(e.target)||u()},t=e=>{"Escape"===e.key&&u()};return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",t)}}),[u]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{ref:p,className:"comment-reaction-picker-anchor","aria-hidden":"true"}),(0,o.createPortal)((0,i.jsx)("div",{ref:h,className:"comment-reaction-picker ".concat("dark"===d?"theme-dark-item":"theme-light-item"),role:"toolbar","aria-label":"Choose a reaction",style:{left:null!==(t=null===f||void 0===f?void 0:f.left)&&void 0!==t?t:a,top:null!==(n=null===f||void 0===f?void 0:f.top)&&void 0!==n?n:a,visibility:f?"visible":"hidden"},onClick:e=>e.stopPropagation(),children:s.map((e=>(0,i.jsx)("button",{type:"button",className:"comment-reaction-picker-option","aria-label":e,onClick:t=>{t.stopPropagation(),c(e)},children:(0,i.jsx)("img",{src:l[e],alt:""})},e)))}),document.body)]})}},65727:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},65871:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(65043),o=n(97950),i=n(77819),a=n(70579);const s=e=>{let{isOpen:t,onConfirm:n,onCancel:s,title:l,message:c,confirmText:u="\u0646\u0639\u0645",cancelText:d="\u0644\u0627",isDangerous:p=!1}=e;return(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"",()=>{document.body.style.overflow=""})),[t]),t?(0,o.createPortal)((0,a.jsx)("div",{className:"confirm-dialog-overlay",onClick:s,children:(0,a.jsxs)("div",{className:"confirm-dialog ".concat(p?"dangerous":""),onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("div",{className:"confirm-icon",children:(0,a.jsx)(i.A,{size:32,color:p?"#f44336":"#ff9800"})}),l&&(0,a.jsx)("h3",{className:"confirm-title",children:l}),(0,a.jsx)("p",{className:"confirm-message",children:c}),(0,a.jsxs)("div",{className:"confirm-buttons",children:[(0,a.jsx)("button",{className:"confirm-btn secondary",onClick:s,children:d}),(0,a.jsx)("button",{className:"confirm-btn ".concat(p?"dangerous":"primary"),onClick:n,children:u})]})]})}),document.body):null}},65982:(e,t,n)=>{"use strict";n.d(t,{mH:()=>p,Rs:()=>h,vu:()=>m,Jd:()=>f});var r=n(22555),o=n(65043),i=n(47059),a=n(40117),s=n(30590),l=n(47174),c=n(40727);const u=e=>Boolean((null===e||void 0===e?void 0:e.name)&&(null===e||void 0===e?void 0:e.tag));var d=n(70579);const p="https://login-api.amposter.com/get-token",h=(0,o.createContext)(),f=()=>(0,o.useContext)(h),m=e=>{let{children:t}=e;const[n,f]=(0,o.useState)(null),[m,_]=(0,o.useState)(!0),[g,v]=(0,o.useState)(0),[y,b]=(0,o.useState)("loading"),w=(0,o.useRef)(!1),x=(0,o.useRef)(null),k=(0,o.useRef)("loading"),S=(0,o.useRef)(null),C=(0,o.useCallback)((async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;for(let o=1;o<=t;o+=1){const i=new AbortController,s=setTimeout((()=>i.abort()),12e3);try{var n;const r=Date.now();(0,c.uJ)("custom_token_request_started",{uid:e,attempt:o,attempts:t}),console.log("\ud83d\udd11 UserContext - Requesting custom token (attempt ".concat(o,"/").concat(t,")"));const s=await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uid:e}),signal:i.signal});if((0,c.uJ)("custom_token_http_response",{uid:e,attempt:o,status:s.status,ok:s.ok,durationMs:Date.now()-r},s.ok?"info":"error"),!s.ok)throw new Error("Token server error: ".concat(s.status));const{token:l}=await s.json();if(!l)throw new Error("Token server returned no token");return await a.firebase.auth().signInWithCustomToken(l),(0,c.uJ)("database_custom_token_signin_succeeded",{uid:e,attempt:o,totalAttemptDurationMs:Date.now()-r,resultingDatabaseUid:(null===(n=a.firebase.auth().currentUser)||void 0===n?void 0:n.uid)||null}),console.log("\u2705 UserContext - Signed in to database project successfully"),!0}catch(r){(0,c.uJ)("database_custom_token_signin_failed",{uid:e,attempt:o,attempts:t,error:r},"error"),console.error("\u274c UserContext - Custom token attempt ".concat(o," failed:"),r),o<t&&await new Promise((e=>setTimeout(e,750*o)))}finally{clearTimeout(s)}}return!1}),[]),A=(0,o.useCallback)((async e=>{const t=Date.now();(0,c.uJ)("profile_rest_fallback_started",{uid:e});const n=a.firebase.auth().currentUser;if(!n||n.uid!==e)throw new Error("Database user is not authenticated");const r=await n.getIdToken(),o=a.defaultFirebaseConfig.databaseURL.replace(/\/$/,""),i=new AbortController,s=setTimeout((()=>i.abort()),15e3),l=async e=>{const t="".concat(o,"/").concat(e,".json?auth=").concat(encodeURIComponent(r)),n=await fetch(t,{signal:i.signal,cache:"no-store"});if(!n.ok)throw new Error("Database REST error: ".concat(n.status));return n.json()};try{const[n,r]=await Promise.all([l("kunaiu_bank/".concat(encodeURIComponent(e))),l("Roles/".concat(encodeURIComponent(e)))]);return(0,c.uJ)("profile_rest_fallback_succeeded",{uid:e,durationMs:Date.now()-t,profileExists:Boolean(n),profileHasName:Boolean(null===n||void 0===n?void 0:n.name),profileHasTag:Boolean(null===n||void 0===n?void 0:n.tag),roleExists:Boolean(r)}),{profile:n,role:r||null}}catch(u){throw(0,c.uJ)("profile_rest_fallback_failed",{uid:e,durationMs:Date.now()-t,error:u},"error"),u}finally{clearTimeout(s)}}),[]),E=(0,o.useCallback)((e=>{S.current&&clearInterval(S.current),S.current=setInterval((async()=>{console.log("\ud83d\udd04 UserContext - Refreshing custom token..."),await C(e)}),33e5)}),[C]),j=(0,o.useCallback)((()=>{_(!0),b("loading"),k.current="loading",v((e=>e+1))}),[]);return(0,o.useEffect)((()=>{const e={current:!0};let t=null,n=null,o=null,d=null,p=null,h=null,m=null,g=null,v=null,y=!1;const j=e=>{_(e)},T=e=>{x.current=e,f(e)},P=e=>{k.current=e,b(e),"loading"!==e&&h&&(clearTimeout(h),h=null),"loading"!==e&&m&&(clearTimeout(m),m=null)};return(async()=>{await(async()=>{const t=(0,s.Kd)();if(t)try{var n,r;console.log("\ud83d\udcf1 UserContext - Loading user from USI/localStorage:",t);const o=await l.A._getProfilesFromStorage(),i=(null===(n=l.A.memoryCache.get("profile_".concat(t)))||void 0===n?void 0:n.data)||(null===(r=o[t])||void 0===r?void 0:r.data)||null;if((0,c.uJ)("local_profile_cache_checked",{uid:t,cacheFound:Boolean(i),completeProfile:u(i)}),u(i))return console.log("\u2705 UserContext - User loaded from cache"),e.current&&T(i),e.current&&P("ready"),w.current=!0,e.current&&j(!1),!0;console.log("\u26a0\ufe0f UserContext - USI exists but no cached profile; waiting for authenticated read"),w.current=!0}catch(o){(0,c.uJ)("local_profile_cache_failed",{uid:t,error:o},"error"),console.error("\u274c Failed to load user from storage:",o),e.current&&P("error"),e.current&&j(!1)}else console.log("\u2139\ufe0f UserContext - No USI found, user needs to login");return!1})(),a.authApp.auth().getRedirectResult().then((e=>{e.user&&console.log("\ud83d\udd10 Redirect user:",e.user)})).catch((e=>{console.error("\u274c Redirect error:",e)})),t=a.authApp.auth().onAuthStateChanged((async t=>{const f=Date.now();if((0,c.uJ)("user_context_auth_callback",{loggedIn:Boolean(t),authUid:(null===t||void 0===t?void 0:t.uid)||null,localStorageUid:(0,s.Kd)(),previousProfileStatus:k.current,cachedUserPresent:Boolean(x.current)}),console.log("\ud83d\udd10 UserContext - onAuthStateChanged:",null===t||void 0===t?void 0:t.uid),!e.current)return;if(n&&d&&(n.off("value",d),n=null,d=null),o&&p&&(o.off("value",p),o=null,p=null),v&&(v.off(),v=null),g&&(g.off(),g=null),y=!1,!t){const e=(0,s.Kd)(),t=(e=>{let{storedUid:t,cachedProfile:n,profileStatus:r}=e;return t&&"ready"===r&&u(n)?"preserve-offline":t?"clear-stale":"signed-out"}
2)({storedUid:e,cachedProfile:x.current,profileStatus:k.current});return"preserve-offline"===t?(console.log("\u2705 UserContext - Firebase signed out; preserving complete cached profile for offline use"),w.current=!0,void(0,c.uJ)("offline_cached_session_preserved",{uid:e,profileComplete:!0})):("clear-stale"===t?((0,c.uJ)("stale_local_session_cleared",{staleUid:e,reason:"identity_auth_signed_out_and_no_complete_cached_profile"},"warning"),console.warn("\u26a0\ufe0f UserContext - Clearing stale USI because Firebase Auth is signed out")):console.log("\u26a0\ufe0f UserContext - Firebase user is signed out"),localStorage.removeItem("USI"),T(null),P("signed-out"),j(!1),w.current=!1,a.firebase.auth().currentUser&&a.firebase.auth().signOut().catch((e=>{(0,c.uJ)("stale_database_session_signout_failed",{error:e},"error")})),void(S.current&&(clearInterval(S.current),S.current=null)))}j(!0),P("loading");(0,s.Kd)()!==t.uid&&(console.log("\ud83d\udcbe UserContext - Synchronizing USI with authenticated user"),localStorage.setItem("USI",(0,i.yv)(t.uid))),w.current=!0;const _=t.uid;console.log("\ud83d\udcf1 UserContext - uid:",_),h&&clearTimeout(h),m&&clearTimeout(m),m=setTimeout((()=>{var t;e.current&&"loading"===k.current&&(0,c.uJ)("profile_check_over_15_seconds",{uid:_,elapsedMs:Date.now()-f,browserOnline:navigator.onLine,databaseAuthenticated:Boolean(a.firebase.auth().currentUser),databaseAuthUid:(null===(t=a.firebase.auth().currentUser)||void 0===t?void 0:t.uid)||null},"warning")}),15e3),h=setTimeout((()=>{e.current&&"loading"===k.current&&(console.warn("\u23f1\ufe0f UserContext - Profile verification timed out"),(0,c.uJ)("profile_check_timed_out",{uid:_,elapsedMs:Date.now()-f,timeoutMs:6e4,browserOnline:navigator.onLine,databaseAuthenticated:Boolean(a.firebase.auth().currentUser)},"error"),P("error"),j(!1))}),6e4);let b=!1;const N=e=>{l.A._getProfilesFromStorage().then((t=>{const n=t[_]||{};t[_]=(0,r.A)((0,r.A)({},n),{},{data:e,timestamp:Date.now()}),l.A._saveProfilesToStorage(t).catch((()=>{})),l.A.memoryCache.set("profile_".concat(_),{data:e,timestamp:Date.now()})})).catch((()=>{}))};if(!await C(_))return(0,c.uJ)("profile_check_stopped_database_auth_failed",{uid:_,elapsedMs:Date.now()-f},"error"),void(e.current&&(P("error"),j(!1)));E(_),n=a.firebase.database().ref("kunaiu_bank/".concat(_)),o=a.firebase.database().ref("Roles/".concat(_)),(0,c.uJ)("realtime_profile_listeners_attached",{uid:_,elapsedMs:Date.now()-f}),d=n.on("value",(t=>{var n;if(!e.current)return;if(!t.exists())return(0,c.uJ)("realtime_profile_missing",{uid:_,elapsedMs:Date.now()-f},"warning"),b=!0,T({id:_}),P("missing"),void j(!1);b=!0;const o=(0,r.A)((0,r.A)({},t.val()),{},{id:_,role:(null===(n=x.current)||void 0===n?void 0:n.role)||null});(0,c.uJ)("realtime_profile_received",{uid:_,elapsedMs:Date.now()-f,profileHasName:Boolean(o.name),profileHasTag:Boolean(o.tag),profileComplete:u(o)}),T(o),P(u(o)?"ready":"missing"),j(!1),N(o)}),(t=>{(0,c.uJ)("realtime_profile_listener_failed",{uid:_,elapsedMs:Date.now()-f,error:t},"error"),console.error("\u274c Realtime profile listener failed:",t),e.current&&"loading"===k.current&&(P("error"),j(!1))})),p=o.on("value",(t=>{if(!e.current)return;const n=t.val()||null;if((0,c.uJ)("realtime_role_received",{uid:_,elapsedMs:Date.now()-f,roleExists:Boolean(n)}),x.current){const e=(0,r.A)((0,r.A)({},x.current),{},{id:_,role:n});T(e),N(e)}})),A(_).then((t=>{let{profile:n,role:o}=t;if(!e.current||b)return;if(!n)return(0,c.uJ)("profile_resolved_missing_via_rest",{uid:_,elapsedMs:Date.now()-f},"warning"),T({id:_}),P("missing"),void j(!1);const i=(0,r.A)((0,r.A)({},n),{},{id:_,role:o});(0,c.uJ)("profile_resolved_via_rest",{uid:_,elapsedMs:Date.now()-f,profileComplete:u(i)}),T(i),P(u(i)?"ready":"missing"),j(!1),N(i)})).catch((e=>{console.warn("\u26a0\ufe0f UserContext - REST profile fallback failed:",e)}));try{_&&(g=a.firebase.database().ref("status/".concat(_)),v=a.firebase.database().ref(".info/connected"),v.on("value",(e=>{!0===e.val()&&(g.set({state:"online",lastChanged:a.firebase.database.ServerValue.TIMESTAMP}),y||(g.onDisconnect().set({state:"offline",lastChanged:a.firebase.database.ServerValue.TIMESTAMP}),y=!0))}))),l.A.getProfile(_).then((i=>{u(i)?(console.log("\u2705 UserContext - User data loaded from cache/Firebase"),t.email&&!i.email&&(a.firebase.database().ref("kunaiu_bank/".concat(_,"/email")).set(t.email).catch(console.error),i.email=t.email),l.A._getProfilesFromStorage().then((e=>{e[_]={data:i,timestamp:Date.now()},l.A._saveProfilesToStorage(e).catch((()=>{}))})).catch((()=>{})),e.current&&!b&&T(i),e.current&&P("ready"),e.current&&j(!1)):(console.log("\u26a0\ufe0f UserContext - No profile data, fetching from Firebase"),Promise.all([n.once("value"),o.once("value")]).then((n=>{let[o,i]=n;const s=o.exists()?o.val():{},c=i.exists()?i.val():null;t.email&&!s.email&&(a.firebase.database().ref("kunaiu_bank/".concat(_,"/email")).set(t.email).catch(console.error),s.email=t.email);const d=(0,r.A)((0,r.A)({},s),{},{role:c,id:_});l.A._getProfilesFromStorage().then((e=>{e[_]={data:d,timestamp:Date.now()},l.A._saveProfilesToStorage(e).catch((()=>{})),l.A.memoryCache.set("profile_".concat(_),{data:d,timestamp:Date.now()})})).catch((()=>{})),console.log("\u2705 UserContext - User data loaded from Firebase"),e.current&&!b&&T(d),e.current&&P(u(d)?"ready":"missing"),e.current&&j(!1)})).catch((t=>{console.error("\u274c Error fetching user data:",t),e.current&&"loading"===k.current&&P("error"),e.current&&j(!1)})))})).catch((t=>{console.error("\u274c Error getting profile from cache:",t),e.current&&"loading"===k.current&&P("error"),e.current&&j(!1)}))}catch(I){console.error("\u274c Error in UserContext:",I),e.current&&P("error"),e.current&&j(!1)}}))})(),()=>{e.current=!1,t&&t(),n&&d&&n.off("value",d),o&&p&&o.off("value",p),h&&clearTimeout(h),m&&clearTimeout(m),v&&v.off(),g&&g.off(),S.current&&(clearInterval(S.current),S.current=null)}}),[A,g,C,E]),(0,d.jsx)(h.Provider,{value:{userData:n,setUserData:f,loading:m,profileStatus:y,retryProfile:j},children:t})}},66006:(e,t,n)=>{"use strict";n.d(t,{AV:()=>m,CG:()=>f,Lg:()=>c,XJ:()=>h,_Y:()=>u,oM:()=>y,oO:()=>s,p2:()=>l,qK:()=>g,xd:()=>p,xf:()=>v,yp:()=>_});var r=n(22555),o=n(40117),i=n(41189),a=n(71180);const s=async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e||!t||!n)return;const{sourceType:s="user",sourceId:l=t.id,groupId:c=null,groupName:u=null}=r;let d=n;d.length>50&&(d=d.substring(0,47)+"...");const p=c?"group_message":"private_message",{sendInApp:h,sendPush:f}=await(0,i.lx)(e,p,{sourceType:c?"group":s,sourceId:c||l});if(!h)return;const m={type:p,fromUser:t.id,fromUserName:t.name||"Unknown",messageSnippet:d};c&&(m.groupId=c,u&&(m.groupName=u));try{await(0,a.fg)(e,m)}catch(_){console.error("Failed to send chat notification:",_)}if(f)try{await o.firebase.database().ref("PushQueue").push({title:c?"\u0631\u0633\u0627\u0644\u0629 \u0645\u0646 \u0645\u062c\u0645\u0648\u0639\u0629 ".concat(u||"").trim():"\u0645\u0646 ".concat(t.name),body:d,url:c?"/messages/group/".concat(c):"/messages/chat/".concat(t.id),targetUserId:e,timestamp:Date.now()})}catch(_){console.error("Failed to push chat notification:",_)}},l=(e,t,n,r)=>{const i=o.firebase.database().ref("kunaiu_bank/".concat(e));i.once("value").then((e=>{const o=e.val();if(!o)return void(r&&r("\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f"));const a=o.value||0;if(a<t)return void(r?r("\u0631\u0635\u064a\u062f\u0643 \u063a\u064a\u0631 \u0643\u0627\u0641\u064d \u0644\u0625\u062a\u0645\u0627\u0645 \u0627\u0644\u0639\u0645\u0644\u064a\u0629"):alert("\u0631\u0635\u064a\u062f\u0643 \u063a\u064a\u0631 \u0643\u0627\u0641\u064d \u0644\u0625\u062a\u0645\u0627\u0645 \u0627\u0644\u0639\u0645\u0644\u064a\u0629"));const s=a-t;i.update({value:s}).then((()=>{n&&n(s)})).catch((e=>{console.error("\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0637\u0631\u062d \u0627\u0644\u0639\u0645\u0644\u0627\u062a:",e),r&&r("\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0637\u0631\u062d \u0627\u0644\u0639\u0645\u0644\u0627\u062a")}))})).catch((e=>{console.error("\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062c\u0644\u0628 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645:",e),r&&r("\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062c\u0644\u0628 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645")}))},c=(e,t,n,r)=>{const i=o.firebase.database().ref("kunaiu_bank/".concat(e));i.once("value").then((e=>{if(!e.val())return void(r&&r("\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f"));const o=i.child("history_rewards").push(),a=t.date||Date.now(),s={amount:t.amount,date:a,reason:t.reason,id:t.id,type:t.type};t.currency&&(s.currency=t.currency),t.msg&&(s.msg=t.msg),o.set(s).then((()=>{n&&n(o.key)})).catch((e=>{console.error("\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0625\u0636\u0627\u0641\u0629 \u0633\u062c\u0644 \u0627\u0644\u0645\u0643\u0627\u0641\u0622\u062a:",e),r&&r("\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u0625\u0636\u0627\u0641\u0629 \u0633\u062c\u0644 \u0627\u0644\u0645\u0643\u0627\u0641\u0622\u062a")}))})).catch((e=>{console.error("\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062c\u0644\u0628 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645:",e),r&&r("\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062c\u0644\u0628 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645")}))},u=async(e,t,n,r,s,l,c)=>{const{sendInApp:u,sendPush:d}=await(0,i.lx)(e,n);if(!u)return;const p={type:n,postId:r,commentId:s,replyId:l,fromUser:t.id,fromUserTag:t.tag||"@Unknown",fromUserName:t.name||"Unknown"};if(c&&c>0&&(p.coinsAmount=c),await(0,a.fg)(e,p),!d)return;let h="Amposter",f="".concat(t.name," \u0623\u0631\u0633\u0644 \u0644\u0643 \u0625\u0634\u0639\u0627\u0631\u0627\u064b"),m="/";"comment"===n?(c&&c>0?(h="\u062d\u0635\u0644\u062a \u0639\u0644\u0649 \u0639\u0645\u0644\u0627\u062a",f="\u0623\u0631\u0633\u0644 ".concat(t.name," \u0644\u0643 ").concat(c," \u0645\u0646 \u0627\u0644\u0639\u0645\u0644\u0627\u062a \u0645\u0639 \u062a\u0639\u0644\u064a\u0642\u0647")):(h="\u062a\u0639\u0644\u064a\u0642 \u062c\u062f\u064a\u062f",f="\u0639\u0644\u0642 ".concat(t.name," \u0639\u0644\u0649 \u0645\u0646\u0634\u0648\u0631\u0643")),m="/post/".concat(r,"/comment/").concat(s,"/single")):"reply"===n?(h="\u0631\u062f \u062c\u062f\u064a\u062f",f="\u0631\u062f ".concat(t.name," \u0639\u0644\u0649 \u062a\u0639\u0644\u064a\u0642\u0643"),m="/post/".concat(r,"/comment/").concat(s,"/reply/").concat(l,"/single")):"mention"===n&&(h="\u062a\u0645 \u0630\u0643\u0631\u0643",f="\u0630\u0643\u0631\u0643 ".concat(t.name," \u0641\u064a \u0645\u0646\u0634\u0648\u0631"),m=r?"/post/".concat(r):"/"),await o.firebase.database().ref("PushQueue").push({title:h,body:f,url:m,targetUserId:e,timestamp:Date.now()})},d=async(e,t,n,s)=>{if(e&&t&&null!==n&&void 0!==n&&n.type)try{const{sendInApp:l,sendPush:c}
2=await(0,i.lx)(e,n.type);if(!l)return;const u=(0,r.A)((0,r.A)({},n),{},{fromUser:n.hasOwnProperty("fromUser")?n.fromUser:t.id,fromUserTag:n.hasOwnProperty("fromUserTag")?n.fromUserTag:t.tag||"@Unknown",fromUserName:n.hasOwnProperty("fromUserName")?n.fromUserName:t.name||"Unknown"});if(await(0,a.fg)(e,u),!c||!s)return;await o.firebase.database().ref("PushQueue").push((0,r.A)({targetUserId:e,timestamp:Date.now()},s))}catch(l){console.error("Failed to create app notification:",l)}},p=async(e,t,n,r,s,l,c)=>{const{sendInApp:u,sendPush:d}=await(0,i.lx)(e,"reaction");if(!u)return;if(await(0,a.fg)(e,{postId:s,commentId:l,replyId:c,type:n,reactionType:r,fromUser:t.id,fromUserTag:t.tag||"@Unknown",fromUserName:t.name||"Unknown"}),!d)return;let p="\u062a\u0641\u0627\u0639\u0644 ".concat(t.name," \u0639\u0644\u0649 \u0645\u0646\u0634\u0648\u0631\u0643 \u0623\u0648 \u062a\u0639\u0644\u064a\u0642\u0643"),h=s?"/post/".concat(s):"/";s&&l&&c?p="\u062a\u0641\u0627\u0639\u0644 ".concat(t.name," \u0639\u0644\u0649 \u0631\u062f\u0643"):s&&l?p="\u062a\u0641\u0627\u0639\u0644 ".concat(t.name," \u0639\u0644\u0649 \u062a\u0639\u0644\u064a\u0642\u0643"):s&&(p="\u062a\u0641\u0627\u0639\u0644 ".concat(t.name," \u0639\u0644\u0649 \u0645\u0646\u0634\u0648\u0631\u0643")),await o.firebase.database().ref("PushQueue").push({title:"\u062a\u0641\u0627\u0639\u0644 \u062c\u062f\u064a\u062f",body:p,url:h,targetUserId:e,timestamp:Date.now()})},h=async(e,t)=>{if(e&&null!==t&&void 0!==t&&t.id){try{await(0,a.fg)(e,{follower:t.id,type:"follow",fromUser:t.id,fromUserTag:t.tag||"@Unknown",fromUserName:t.name||"Unknown"})}catch(n){console.error("Failed to write follow notification:",n)}try{await o.firebase.database().ref("PushQueue").push({title:"\u0645\u062a\u0627\u0628\u0639 \u062c\u062f\u064a\u062f",body:"\u0642\u0627\u0645 ".concat(t.name," \u0628\u0645\u062a\u0627\u0628\u0639\u062a\u0643"),url:"/profile/".concat(t.id),targetUserId:e,timestamp:Date.now()})}catch(n){console.error("Failed to write follow push notification:",n)}}},f=async(e,t,n,r,s,l,c,u,d)=>{const{sendInApp:p,sendPush:h}=await(0,i.lx)(e,"unban"===t?"unban":"ban");if(!p)return;if(await(0,a.fg)(e,{type:t,fromUser:d,originType:s,postId:l,commentId:c,reason:r,replyId:u,blockType:n,blockedBy:d}),!h)return;let f="",m="",_=l||null;"unban"===t?l&&c&&u?(f="\u0631\u0641\u0639 \u0627\u0644\u062d\u0638\u0631 \u0639\u0646 \u0627\u0644\u0631\u062f",m="\u0644\u0642\u062f \u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062d\u0638\u0631 \u0639\u0646 \u0631\u062f\u0643",_="/post/".concat(l,"/comment/").concat(c,"/reply/").concat(u,"/single")):l&&c?(f="\u0631\u0641\u0639 \u0627\u0644\u062d\u0638\u0631 \u0639\u0646 \u0627\u0644\u062a\u0639\u0644\u064a\u0642",m="\u0644\u0642\u062f \u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062d\u0638\u0631 \u0639\u0646 \u062a\u0639\u0644\u064a\u0642\u0643",_="/post/".concat(l,"/comment/").concat(c,"/single")):l?(f="\u0631\u0641\u0639 \u0627\u0644\u062d\u0638\u0631 \u0639\u0646 \u0627\u0644\u0645\u0646\u0634\u0648\u0631",m="\u0644\u0642\u062f \u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062d\u0638\u0631 \u0639\u0646 \u0645\u0646\u0634\u0648\u0631\u0643",_="/post/".concat(l)):(f="\u0631\u0641\u0639 \u0627\u0644\u062d\u0638\u0631",m="\u0644\u0642\u062f \u062a\u0645 \u0625\u0644\u063a\u0627\u0621 \u0627\u0644\u062d\u0638\u0631 \u0639\u0646 \u0623\u062d\u062f \u0645\u062d\u062a\u0648\u064a\u0627\u062a\u0643"):(f="\u062d\u0638\u0631 \u062c\u062f\u064a\u062f",m="\u0644\u0642\u062f \u062a\u0644\u0642\u064a\u062a \u062d\u0638\u0631 \u0644\u0645\u0646\u0634\u0648\u0631\u0643 \u0627\u0648 \u062a\u0639\u0644\u064a\u0642\u0643 \u0627\u0648 \u0631\u062f\u0643",l&&c&&u?(f="\u062d\u0638\u0631 \u0631\u062f \u0645\u062e\u0627\u0644\u0641",m="\u0644\u0642\u062f \u062a\u0644\u0642\u064a\u062a \u062d\u0638\u0631 \u0639\u0644\u0649 \u0631\u062f\u0643 \u0644\u0645\u062e\u0627\u0644\u0641\u062a\u0643 \u0627\u0644\u0642\u0648\u0627\u0646\u064a\u0646",_="/post/".concat(l,"/comment/").concat(c,"/reply/").concat(u,"/single")):l&&c?(f="\u062d\u0638\u0631 \u062a\u0639\u0644\u064a\u0642 \u0645\u062e\u0627\u0644\u0641",m="\u0644\u0642\u062f \u062a\u0644\u0642\u064a\u062a \u062d\u0638\u0631 \u0639\u0644\u0649 \u062a\u0639\u0644\u064a\u0642\u0643 \u0644\u0645\u062e\u0627\u0644\u0641\u062a\u0643 \u0627\u0644\u0642\u0648\u0627\u0646\u064a\u0646",_="/post/".concat(l,"/comment/").concat(c,"/single")):l&&(f="\u062d\u0638\u0631 \u0645\u0646\u0634\u0648\u0631 \u0645\u062e\u0627\u0644\u0641",m="\u0644\u0642\u062f \u062a\u0644\u0642\u064a\u062a \u062d\u0638\u0631 \u0639\u0644\u0649 \u0645\u0646\u0634\u0648\u0631\u0643 \u0644\u0645\u062e\u0627\u0644\u0641\u062a\u0643 \u0627\u0644\u0642\u0648\u0627\u0646\u064a\u0646",_="/post/".concat(l))),await o.firebase.database().ref("PushQueue").push({title:f,body:m,url:_,targetUserId:e,timestamp:Date.now()})},m=async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;await d(e,t,{type:"team_request",teamName:n,team_id:r},{title:"Amposter",body:"\u0637\u0644\u0628 ".concat(t.name," \u0627\u0644\u0627\u0646\u0636\u0645\u0627\u0645 \u0644\u0641\u0631\u064a\u0642\u0643"),url:"/team"})},_=async(e,t,n)=>{await d(e,t,{type:"team_approval",teamName:n},{title:"\u062a\u0645 \u0642\u0628\u0648\u0644 \u0637\u0644\u0628\u0643",body:"\u062a\u0645 \u0642\u0628\u0648\u0644 \u0637\u0644\u0628\u0643 \u0628\u0627\u0644\u0627\u0646\u0636\u0645\u0627\u0645 \u0644\u0641\u0631\u064a\u0642 ".concat(n),url:"/team"})},g=async(e,t,n,r)=>{await d(e,t,{type:"team_promotion",teamName:n,teamRole:r},{title:"\u062a\u0645\u062a \u062a\u0631\u0642\u064a\u062a\u0643",body:"\u062a\u0645\u062a \u062a\u0631\u0642\u064a\u062a\u0643 \u0641\u064a \u0641\u0631\u064a\u0642 ".concat(n," \u0625\u0644\u0649 ").concat(r),url:"/team"})},v=async(e,t,n)=>{await d(e,t,{type:"team_kick",teamName:n},{title:"\u062a\u0645 \u0637\u0631\u062f\u0643 \u0645\u0646 \u0627\u0644\u0641\u0631\u064a\u0642",body:"\u062a\u0645 \u0637\u0631\u062f\u0643 \u0645\u0646 \u0641\u0631\u064a\u0642 ".concat(n),url:"/team"})},y=async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";await d(e,t,{type:"coins_sent",coinsAmount:n,message:r},{title:"\u062d\u0635\u0644\u062a \u0639\u0644\u0649 \u0639\u0645\u0644\u0627\u062a",body:"".concat(t.name," \u0623\u0631\u0633\u0644 \u0644\u0643 ").concat(n," \u0645\u0646 \u0627\u0644\u0639\u0645\u0644\u0627\u062a"),url:"/profile/".concat(e)})}},67147:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("at-sign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]])},67586:(e,t,n)=>{"use strict";n.d(t,{IQ:()=>u,SP:()=>c,dS:()=>a,j:()=>l,lm:()=>s});var r=n(22555),o=n(40117);const i="https://post-img.amposter.com/",a=e=>{if("string"!==typeof e||!/^https?:\/\//i.test(e))return!1;const t=e.startsWith(i)?e.slice(30):"";return!/^\d+\/?$/.test(t)},s=e=>[null===e||void 0===e?void 0:e.coverImage,...Array.isArray(null===e||void 0===e?void 0:e.images)?e.images:[]].find(a)||null,l=e=>({id:e.id,type:e.type||"post",event:!0,eventPublished:!0,createdBy:e.createdBy||null,title:e.title||"\u0641\u0639\u0627\u0644\u064a\u0629",content:e.content||"",coverImage:s(e),images:Array.isArray(e.images)?e.images.filter(a):[],timestamp:e.timestamp||e.createdAt||null,order:e.order||null,allowComments:!1,allowReactions:!1,allowView:!0}),c=async e=>{if(!0!==(null===e||void 0===e?void 0:e.event)||null===e||void 0===e||!e.id)return!1;const t=o.firebase.database().ref("events/".concat(e.id));return!!(await t.once("value")).exists()&&(await t.child("postSnapshot").set(l(e)),!0)},u=e=>{var t;if(!e)return null;const n=e.postSnapshot||{};return(0,r.A)((0,r.A)({},n),{},{id:e.postId||e.id,type:n.type||"post",event:!0,eventPublished:!0,createdBy:n.createdBy||e.createdBy,title:n.title||e.title||"\u0641\u0639\u0627\u0644\u064a\u0629",content:n.content||e.content||"",coverImage:s(n)||s({coverImage:e.iconUrl}
2),startDate:e.startDate,endDate:e.endDate,eventRules:e.rules||e.officialRules||[],prizes:e.prizes||null,allWinners:!0===e.allWinners,coinsForAll:null!==(t=e.coinsForAll)&&void 0!==t?t:null,allowComments:!1,allowReactions:!1,allowView:!0,eventSnapshot:!0})}},68592:(e,t,n)=>{var r=n(4262),o=n(56326),i=n(30474);e.exports=function(e){return r(e,i,o)}},68773:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]])},69194:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},69394:(e,t,n)=>{var r=n(12622);e.exports=function(e){return r(this,e).has(e)}},69621:(e,t,n)=>{var r=n(17529),o=n(57828),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},69987:(e,t,n)=>{var r=n(9812),o=n(22929),i=n(93211),a=n(43668),s=n(54160),l=n(52074),c=r?r.prototype:void 0,u=c?c.valueOf
2:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var _=a(h(e),h(t),r,c,d,p);return p.delete(e),_;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},70067:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},70534:(e,t,n)=>{"use strict";n.d(t,{A:()=>B});var r=n(22555),o=n(65043),i=n(97950),a=n(75439),s=n(65982),l=n(40117),c=n(30590),u=n(89927),d=n(47174),p=n(66006),h=n(5379),f=n(65010),m=n(34453),_=n(67147),g=n(5077),v=n(40614),y=n(37719),b=n(43e3),w=n(14043),x=n(26390),k=n(81518),S=n(65871),C=n(35896),A=n(52222),E=n(9700),j=n(10624),T=n(34677),P=n(92730),N=n(63451),I=n(7540),R=n(30502),O=n(13005),D=n(59773),M=n(65624),L=n(86490),F=(n(63967),n(543),n(70579));const z=["like","love","care","haha","wow","sad","angry"],B=e=>{var t;let{post_id:n,comment_id:B,onClose:q,prefillMention:U=!1,initialReplyId:H=null}=e;const W=(0,o.useContext)(s.Rs),{t:V,resolvedDirection:K}=(0,j.o)(),G=(null===W||void 0===W?void 0:W.userData)||W||null,Y=(0,N.OR)(G,N._c.COMMENT),Q=(0,a.Zp)(),X=o.useRef(!1),$=o.useRef(!1),{theme:J}=(0,O.DP)(),Z=()=>{try{var e;const t=null!==l.firebase&&void 0!==l.firebase&&null!==(e=l.firebase.auth)&&void 0!==e&&e.call(l.firebase)&&l.firebase.auth().currentUser?l.firebase.auth().currentUser.uid:null;if(t)return t}catch(t){}if(W&&W.userData&&W.userData.id)return W.userData.id;try{const e=c.WR&&"function"===typeof c.WR?(0,c.WR)():null;if(e)return e}catch(t){}return null},ee=o.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ne.current&&((0,u.tu)(ne.current,!e),X.current=!0),q()}),[q]),te=(0,o.useRef)(!1),ne=(0,o.useRef)(null);(0,o.useEffect)((()=>($.current||(X.current=!1,window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"open"}})),ne.current=(0,u.GR)("replies"),$.current=!0),()=>{te.current?(window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"close"}})),!X.current&&ne.current&&(0,u.tu)(ne.current,!0)):te.current=!0})),[]);const re=(0,o.useRef)(ee);(0,o.useEffect)((()=>{re.current=ee}),[ee]),(0,o.useEffect)((()=>{const e=e=>{(0,u.Vz)()===ne.current&&(e.preventDefault(),re.current(!0))};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)}),[]);const[oe,ie]=(0,o.useState)(null),[ae,se]=(0,o.useState)(null),[le,ce]=(0,o.useState)(null),[ue,de]=(0,o.useState)(!0),[pe,he]=(0,o.useState)([]),fe=(0,o.useRef)({}),me=(0,o.useRef)(!1),[_e,ge]=(0,o.useState)(""),[ve,ye]=(0,o.useState)([]),[be,we]=(0,o.useState)([]),[xe,ke]=(0,o.useState)(!1),[Se,Ce]=(0,o.useState)(!1),[Ae,Ee]=(0,o.useState)(null),[je,Te]=(0,o.useState)(null),[Pe,Ne]=(0,o.useState)(!1),[Ie,Re]=(0,o.useState)(null),[Oe,De]=(0,o.useState)({like:"https://assets.amposter.com/reactions/reaction_pack1/like.png",love:"https://assets.amposter.com/reactions/reaction_pack1/love.png",care:"https://assets.amposter.com/reactions/reaction_pack1/care.png",wow:"https://assets.amposter.com/reactions/reaction_pack1/wow.png",haha:"https://assets.amposter.com/reactions/reaction_pack1/haha.png",sad:"https://assets.amposter.com/reactions/reaction_pack1/sad.png",angry:"https://assets.amposter.com/reactions/reaction_pack1/angry.png"});(0,o.useEffect)((()=>{me.current=!1}),[n,B,H]),(0,o.useEffect)((()=>{if(!H||me.current)return;const e=fe.current[H];e&&(me.current=!0,e.scrollIntoView({block:"center",behavior:"smooth"}))}),[H,pe]);const[Me,Le]=(0,o.useState)(!1),[Fe,ze]=(0,o.useState)([]),[Be,qe]=(0,o.useState)(""),[Ue,He]=(0,o.useState)("prophets"),[We,Ve]=(0,o.useState)([]),[Ke,Ge]=(0,o.useState)(!1),[Ye,Qe]=(0,o.useState)([]),[Xe,$e]=(0,o.useState)(""),[Je,Ze]=(0,o.useState)(!1),[et,tt]=(0,o.useState)(""),[nt,rt]=(0,o.useState)(null),ot=(0,o.useRef)({}),[it,at]=(0,o.useState)(null),st=[{number:1,name:"\u0627\u0644\u0641\u0627\u062a\u062d\u0629"},{number:2,name:"\u0627\u0644\u0628\u0642\u0631\u0629"},{number:3,name:"\u0622\u0644 \u0639\u0645\u0631\u0627\u0646"},{number:4,name:"\u0627\u0644\u0646\u0633\u0627\u0621"},{number:5,name:"\u0627\u0644\u0645\u0627\u0626\u062f\u0629"},{number:6,name:"\u0627\u0644\u0623\u0646\u0639\u0627\u0645"},{number:7,name:"\u0627\u0644\u0623\u0639\u0631\u0627\u0641"},{number:8,name:"\u0627\u0644\u0623\u0646\u0641\u0627\u0644"},{number:9,name:"\u0627\u0644\u062a\u0648\u0628\u0629"},{number:10,name:"\u064a\u0648\u0646\u0633"},{number:11,name:"\u0647\u0648\u062f"},{number:12,name:"\u064a\u0648\u0633\u0641"},{number:13,name:"\u0627\u0644\u0631\u0639\u062f"},{number:14,name:"\u0625\u0628\u0631\u0627\u0647\u064a\u0645"},{number:15,name:"\u0627\u0644\u062d\u062c\u0631"},{number:16,name:"\u0627\u0644\u0646\u062d\u0644"},{number:17,name:"\u0627\u0644\u0625\u0633\u0631\u0627\u0621"},{number:18,name:"\u0627\u0644\u0643\u0647\u0641"},{number:19,name:"\u0645\u0631\u064a\u0645"},{number:20,name:"\u0637\u0647"},{number:21,name:"\u0627\u0644\u0623\u0646\u0628\u064a\u0627\u0621"},{number:22,name:"\u0627\u0644\u062d\u062c"},{number:23,name:"\u0627\u0644\u0645\u0624\u0645\u0646\u0648\u0646"},{number:24,name:"\u0627\u0644\u0646\u0648\u0631"},{number:25,name:"\u0627\u0644\u0641\u0631\u0642\u0627\u0646"},{number:26,name:"\u0627\u0644\u0634\u0639\u0631\u0627\u0621"},{number:27,name:"\u0627\u0644\u0646\u0645\u0644"},{number:28,name:"\u0627\u0644\u0642\u0635\u0635"},{number:29,name:"\u0627\u0644\u0639\u0646\u0643\u0628\u0648\u062a"},{number:30,name:"\u0627\u0644\u0631\u0648\u0645"},{number:31,name:"\u0644\u0642\u0645\u0627\u0646"},{number:32,name:"\u0627\u0644\u0633\u062c\u062f\u0629"},{number:33,name:"\u0627\u0644\u0623\u062d\u0632\u0627\u0628"},{number:34,name:"\u0633\u0628\u0623"},{number:35,name:"\u0641\u0627\u0637\u0631"},{number:36,name:"\u064a\u0633"},{number:37,name:"\u0627\u0644\u0635\u0627\u0641\u0627\u062a"},{number:38,name:"\u0635"},{number:39,name:"\u0627\u0644\u0632\u0645\u0631"},{number:40,name:"\u063a\u0627\u0641\u0631"},{number:41,name:"\u0641\u0635\u0644\u062a"},{number:42,name:"\u0627\u0644\u0634\u0648\u0631\u0649"},{number:43,name:"\u0627\u0644\u0632\u062e\u0631\u0641"},{number:44,name:"\u0627\u0644\u062f\u062e\u0627\u0646"},{number:45,name:"\u0627\u0644\u062c\u0627\u062b\u064a\u0629"},{number:46,name:"\u0627\u0644\u0623\u062d\u0642\u0627\u0641"},{number:47,name:"\u0645\u062d\u0645\u062f"},{number:48,name:"\u0627\u0644\u0641\u062a\u062d"},{number:49,name:"\u0627\u0644\u062d\u062c\u0631\u0627\u062a"},{number:50,name:"\u0642"},{number:51,name:"\u0627\u0644\u0630\u0627\u0631\u064a\u0627\u062a"},{number:52,name:"\u0627\u0644\u0637\u0648\u0631"},{number:53,name:"\u0627\u0644\u0646\u062c\u0645"},{number:54,name:"\u0627\u0644\u0642\u0645\u0631"},{number:55,name:"\u0627\u0644\u0631\u062d\u0645\u0646"},{number:56,name:"\u0627\u0644\u0648\u0627\u0642\u0639\u0629"},{number:57,name:"\u0627\u0644\u062d\u062f\u064a\u062f"},{number:58,name:"\u0627\u0644\u0645\u062c\u0627\u062f\u0644\u0629"},{number:59,name:"\u0627\u0644\u062d\u0634\u0631"},{number:60,name:"\u0627\u0644\u0645\u0645\u062a\u062d\u0646\u0629"},{number:61,name:"\u0627\u0644\u0635\u0641"},{number:62,name:"\u0627\u0644\u062c\u0645\u0639\u0629"},{number:63,name:"\u0627\u0644\u0645\u0646\u0627\u0641\u0642\u0648\u0646"},{number:64,name:"\u0627\u0644\u062a\u063a\u0627\u0628\u0646"},{number:65,name:"\u0627\u0644\u0637\u0644\u0627\u0642"},{number:66,name:"\u0627\u0644\u062a\u062d\u0631\u064a\u0645"},{number:67,name:"\u0627\u0644\u0645\u0644\u0643"},{number:68,name:"\u0627\u0644\u0642\u0644\u0645"},{number:69,name:"\u0627\u0644\u062d\u0627\u0642\u0629"},{number:70,name:"\u0627\u0644\u0645\u0639\u0627\u0631\u062c"},{number:71,name:"\u0646\u0648\u062d"},{number:72,name:"\u0627\u0644\u062c\u0646"},{number:73,name:"\u0627\u0644\u0645\u0632\u0645\u0644"},{number:74,name:"\u0627\u0644\u0645\u062f\u062b\u0631"},{number:75,name:"\u0627\u0644\u0642\u064a\u0627\u0645\u0629"},{number:76,name:"\u0627\u0644\u0625\u0646\u0633\u0627\u0646"},{number:77,name:"\u0627\u0644\u0645\u0631\u0633\u0644\u0627\u062a"},{number:78,name:"\u0627\u0644\u0646\u0628\u0623"},{number:79,name:"\u0627\u0644\u0646\u0627\u0632\u0639\u0627\u062a"},{number:80,name:"\u0639\u0628\u0633"},{number:81,name:"\u0627\u0644\u062a\u0643\u0648\u064a\u0631"},{number:82,name:"\u0627\u0644\u0625\u0646\u0641\u0637\u0627\u0631"}
2,{number:83,name:"\u0627\u0644\u0645\u0637\u0641\u0641\u064a\u0646"},{number:84,name:"\u0627\u0644\u0625\u0646\u0634\u0642\u0627\u0642"},{number:85,name:"\u0627\u0644\u0628\u0631\u0648\u062c"},{number:86,name:"\u0627\u0644\u0637\u0627\u0631\u0642"},{number:87,name:"\u0627\u0644\u0623\u0639\u0644\u0649"},{number:88,name:"\u0627\u0644\u063a\u0627\u0634\u064a\u0629"},{number:89,name:"\u0627\u0644\u0641\u062c\u0631"},{number:90,name:"\u0627\u0644\u0628\u0644\u062f"},{number:91,name:"\u0627\u0644\u0634\u0645\u0633"},{number:92,name:"\u0627\u0644\u0644\u064a\u0644"},{number:93,name:"\u0627\u0644\u0636\u062d\u0649"},{number:94,name:"\u0627\u0644\u0634\u0631\u062d"},{number:95,name:"\u0627\u0644\u062a\u064a\u0646"},{number:96,name:"\u0627\u0644\u0639\u0644\u0642"},{number:97,name:"\u0627\u0644\u0642\u062f\u0631"},{number:98,name:"\u0627\u0644\u0628\u064a\u0646\u0629"},{number:99,name:"\u0627\u0644\u0632\u0644\u0632\u0644\u0629"},{number:100,name:"\u0627\u0644\u0639\u0627\u062f\u064a\u0627\u062a"},{number:101,name:"\u0627\u0644\u0642\u0627\u0631\u0639\u0629"},{number:102,name:"\u0627\u0644\u062a\u0643\u0627\u062b\u0631"},{number:103,name:"\u0627\u0644\u0639\u0635\u0631"},{number:104,name:"\u0627\u0644\u0647\u0645\u0632\u0629"},{number:105,name:"\u0627\u0644\u0641\u064a\u0644"},{number:106,name:"\u0642\u0631\u064a\u0634"},{number:107,name:"\u0627\u0644\u0645\u0627\u0639\u0648\u0646"},{number:108,name:"\u0627\u0644\u0643\u0648\u062b\u0631"},{number:109,name:"\u0627\u0644\u0643\u0627\u0641\u0631\u0648\u0646"},{number:110,name:"\u0627\u0644\u0646\u0635\u0631"},{number:111,name:"\u0627\u0644\u0645\u0633\u062f"},{number:112,name:"\u0627\u0644\u0625\u062e\u0644\u0627\u0635"},{number:113,name:"\u0627\u0644\u0641\u0644\u0642"},{number:114,name:"\u0627\u0644\u0646\u0627\u0633"}],[lt,ct]=(0,o.useState)({}),[ut,dt]=(0,o.useState)({}),[pt,ht]=(0,o.useState)(null),[ft,mt]=(0,o.useState)(null),[_t,gt]=(0,o.useState)(null),[vt,yt]=(0,o.useState)({isOpen:!1,targetType:"reply",targetId:null,messageText:""}),bt=(0,o.useMemo)((()=>(0,u.v7)(2e3)),[]),[wt,xt]=(0,o.useState)(null),[kt,St]=(0,o.useState)(""),[Ct,At]=(0,o.useState)({}),[Et,jt]=(0,o.useState)({}),[Tt,Pt]=(0,o.useState)(null),[Nt,It]=(0,o.useState)(null),[Rt,Ot]=(0,o.useState)({isOpen:!1,title:"",message:"",type:"info"}),[Dt,Mt]=(0,o.useState)({isOpen:!1,title:"",message:"",action:null,isDangerous:!1}),Lt=(0,o.useRef)({}),Ft=(0,o.useRef)([]),zt=e=>{if(!e)return e;const t=[];let n=0;const r=/(<(prophets|companions|historical):([^:>]+):([^>]+)>)|(\^(\d+):([^\s<]+))|(https?:\/\/[^\s]+)/g;let o;for(;null!==(o=r.exec(e));){if(o.index>n&&t.push(e.substring(n,o.index)),o[1]){const e=o[2],n=o[3],r=o[4];t.push((0,F.jsx)("span",{className:"character-link-mark",style:{color:"#1da1f2",fontWeight:"bold",cursor:"pointer",padding:"2px 6px",borderRadius:"4px"},onClick:t=>{t.stopPropagation(),window.location.href="/character/".concat(e,"/").concat(n)},children:r},o.index))}else if(o[5]){const e=o[6],n=o[7];t.push((0,F.jsxs)("span",{className:"surah-link-mark",style:{color:"#1da1f2",fontWeight:"bold",cursor:"pointer",padding:"2px 6px",borderRadius:"4px"},onClick:t=>{t.stopPropagation(),window.location.href="/quran?surah=".concat(e)},children:[V("crm_surah_label")," ",n]},o.index))}else if(o[8]){const e=o[8];t.push((0,F.jsx)("a",{href:e,style:{color:"#1da1f2",textDecoration:"underline"},onClick:e=>e.stopPropagation(),children:e},o.index))}n=o.index+o[0].length}return n<e.length&&t.push(e.substring(n)),t.length>0?t:e},Bt=e=>{switch(e){case"like":default:return V("crm_reaction_like");case"love":return V("crm_reaction_love");case"care":return V("crm_reaction_care");case"haha":return V("crm_reaction_haha");case"wow":return V("crm_reaction_wow");case"sad":return V("crm_reaction_sad");case"angry":return V("crm_reaction_angry")}},qt=()=>(0,R.rG)(ft),Ut=e=>{const t={police:V("crm_block_police"),health:V("crm_block_health"),literature:V("crm_block_literature"),law:V("crm_block_law"),all_admin:V("crm_block_admin")};return e.police?t.police:e.health?t.health:e.literature?t.literature:e.law?t.law:e.all_admin?t.all_admin:V("crm_blocked_generic")},Ht=async(e,t)=>{const n=Z();if(!n)return!1;try{const r=await l.firebase.database().ref(t).orderByChild("replyId").equalTo(e).once("value");if(!r.exists())return!1;const o=r.val()||{};for(const e in o)if(o[e]&&o[e].reportedBy===n)return!0;return!1}catch(r){return console.error("Error checking previous reports:",r),!1}},Wt=async(e,t,r,o)=>{if(!r)return;const i=!0===t[r],a=Z();try{const s=!i;
2if(await l.firebase.database().ref("posts/".concat(n,"/comments/").concat(B,"/replies/").concat(e)).update({[r]:s}),await Kt(s?"block":"unblock","reply",e,o||V("crm_block_reason_fallback",{blockType:r})),a&&t.owner&&t.owner!==a){const i=s?"blocked":"unblocked";(0,p.CG)(t.owner,i,r,o,"reply",n,B,e,a)}gt(null)}catch(s){console.error("Error blocking/unblocking reply:",s)}},Vt=async e=>{if(kt.trim())try{const t={msg:kt.trim()};void 0!==Ct[e]&&(t.fire=Ct[e]),await l.firebase.database().ref("posts/".concat(n,"/comments/").concat(B,"/replies/").concat(e)).update(t),xt(null),St(""),At({}),gt(null)}catch(t){console.error("Error editing reply:",t)}};(0,o.useEffect)((()=>{if(null===ae||void 0===ae||!ae.id)return;return(0,P._A)(ae.id,(e=>{De(e)}))}),[null===ae||void 0===ae?void 0:ae.id]),(0,o.useEffect)((()=>{if(!n||!B)return;(async()=>{const e=Z();if(e){const t=await d.A.getRole(e);mt(t)}})();const e=l.firebase.database().ref("posts/".concat(n,"/comments/").concat(B,"/replies")).orderByChild("timestamp"),t=async e=>{const t=e.val(),n=e.key,r=t.owner,[o,i]=await Promise.all([d.A.getProfile(r),d.A.getRole(r)]),a=o||{},s={key:n,owner:r,name:a.name||"AM-Reaction",tag:a.tag||"@AM_Reaction",img:a.img||(a.tag?"/assets/images/global/user_v2.jpg":"/assets/images/global/user_reaction.jpg"),subscribed:a.subscribed||!1,frame_url:a.frame_url||"",frame_border_radius:a.frame_border_radius||"",sensitive_img:a.sensitive_img||!1,role:i,verified:!!a.verified,msg:t.msg,sticker:t.sticker,image:t.image||t.img||t.photo||t.picture||null,fire:t.fire,coins:t.coins,mentions:t.mentions||[],timestamp:t.timestamp,police:t.police||!1,health:t.health||!1,literature:t.literature||!1,law:t.law||!1,all_admin:t.all_admin||!1};he((e=>[...e.filter((e=>e.key!==n)),s].sort(((e,t)=>e.timestamp-t.timestamp))))};return e.on("child_added",t),e.on("child_changed",t),e.on("child_removed",(e=>{he((t=>t.filter((t=>t.key!==e.key)))),ct((t=>{const n=(0,r.A)({},t);return delete n[e.key],n}))})),(async()=>{const e=l.firebase.database().ref("posts/".concat(n,"/comments/").concat(B)),t=(await e.once("value")).val();if(!t)return;const[o,i]=await Promise.all([d.A.getProfile(t.owner),d.A.getRole(t.owner)]),a=o||{},s={id:t.owner,name:a.name||"AM-Reaction",tag:a.tag||"@AM_Reaction",img:a.img||(a.tag?"/assets/images/global/user_v2.jpg":"/assets/images/global/user_reaction.jpg"),subscribed:a.subscribed||!1,frame_url:a.frame_url||"",frame_border_radius:a.frame_border_radius||"",sensitive_img:a.sensitive_img||!1,role:i,verified:!!a.verified};try{const e=await d.A.getPost(n);e&&e.createdBy&&ce(e.createdBy),e&&de(!1!==e.allowComments)}catch(c){console.error("Error fetching post owner:",c)}ie((0,r.A)((0,r.A)({},t),{},{key:B})),se(s),U&&ye([{id:s.id,tag:s.tag}]),Pt("comment"),It({tag:s.tag,msg:t.msg})})(),()=>e.off()}),[n,B]),(0,o.useEffect)((()=>{if(!n||!B)return;try{Ft.current.forEach((e=>{try{e.off()}catch(t){}}))}catch(t){}if(Ft.current=[],!pe||0===pe.length)return;let e=!0;return pe.forEach((t=>{const o=l.firebase.database().ref("posts/".concat(n,"/comments/").concat(B,"/replies/").concat(t.key,"/reactions"));o.on("value",(n=>{if(!e)return;const o=n.val()||{},i={};Object.values(o).forEach((e=>{i[e]=(i[e]||0)+1})),ct((e=>(0,r.A)((0,r.A)({},e),{},{[t.key]:i})));const a=Z();a&&o[a]&&dt((e=>(0,r.A)((0,r.A)({},e),{},{[t.key]:o[a]})))})),Ft.current.push(o)})),()=>{e=!1;try{Ft.current.forEach((e=>{try{e.off()}catch(t){}}))}catch(t){}Ft.current=[]}}),[pe,n,B]);const Kt=async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;try{const o=Z();if(!o)return;await l.firebase.database().ref("moderation_logs").push({moderatorId:o,moderatorRole:ft,actionType:e,blockType:null,contentType:t,contentId:n,targetUserId:null,targetUserName:null,reason:r,timestamp:Date.now(),verified:!1})}catch(o){console.error("Error logging moderation action:",o)}};(0,o.useEffect)((()=>{(async()=>{try{const e=l.firebase.database().ref("characters/".concat(Ue)),t=(await e.once("value")).val();if(t){const e=Object.entries(t).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)}));Ve(e.sort(((e,t)=>e.order-t.order)))}else Ve([])}catch(e){console.error("Error loading characters:",e)}})()}),[Ue]),(0,o.useEffect)((()=>
2{if(!Me)return void ze([]);const e=We.filter((e=>{var t,n;return(null===(t=e.name)||void 0===t?void 0:t.toLowerCase().includes(Be.toLowerCase()))||(null===(n=e.tribe)||void 0===n?void 0:n.toLowerCase().includes(Be.toLowerCase()))})).slice(0,8);ze(e)}),[Be,We,Me]),(0,o.useEffect)((()=>{if(!Ke)return void Qe([]);const e=Xe.replace(/^\u0633\u0648\u0631\u0629\s*/i,"").trim(),t=st.filter((t=>t.name.includes(e)||t.number.toString().includes(e)||"\u0633\u0648\u0631\u0629 ".concat(t.name).includes(Xe))).slice(0,8);Qe(t)}),[Xe,Ke]);const Gt=e=>{Lt.current[e]=setTimeout((()=>{ht(e)}),500)},Yt=e=>{clearTimeout(Lt.current[e])};return oe?(0,i.createPortal)((0,F.jsxs)("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"dark"===J?"rgb(12,12,12)":"#fff",color:"dark"===J?"#e6eef6":"inherit",zIndex:(0,u.v7)(1e3),display:"flex",flexDirection:"column",overflow:"hidden"},className:"directional-comment-thread ".concat("dark"===J?"theme-dark-space":"theme-light-space"),dir:K,children:[(0,F.jsx)(D.A,{title:V("crm_modal_title"),onBack:ee,className:"dark"===J?"theme-dark-space":"theme-light-space"}),(0,F.jsxs)("div",{style:{flex:1,overflowY:"auto"},children:[Ie&&(0,F.jsx)(x.A,{path:Ie.path,initialType:Ie.type||"all",onClose:()=>Re(null),contentOwnerId:Ie.ownerId||(null===ae||void 0===ae?void 0:ae.id)}),(0,F.jsxs)("div",{className:"comments-container",children:[(0,F.jsx)("div",{className:"comment-user",children:(0,F.jsxs)("div",{className:"comment-user-profile",children:[(0,F.jsxs)("div",{className:"comment-profile ".concat(null!==ae&&void 0!==ae&&ae.frame_url?"subscribed has-frame":""),onClick:()=>at(null===ae||void 0===ae?void 0:ae.id),style:{cursor:"pointer",borderRadius:null!==ae&&void 0!==ae&&ae.frame_url?(0,L.MF)(ae):"50%"},children:[(null===ae||void 0===ae?void 0:ae.frame_url)&&(0,F.jsx)("div",{className:"comment-profile-image-overlay",children:(0,F.jsx)("img",{src:ae.frame_url,alt:"Frame",className:"avatar-frame"})}),(0,F.jsx)("img",{src:null!==ae&&void 0!==ae&&ae.sensitive_img?"/assets/images/global/user_sensitive_img_v2.jpg":null===ae||void 0===ae?void 0:ae.img,alt:"user",className:"comment-user-img",style:{cursor:"pointer"}})]}),(0,F.jsxs)("div",{className:"container-comment-user-details",children:[(0,F.jsxs)("div",{className:"comment-user-details",children:[(0,F.jsxs)("span",{className:"comment-user-name",children:[null===ae||void 0===ae?void 0:ae.name,!(null===ae||void 0===ae||!ae.verified)&&(0,F.jsx)("img",{src:"/assets/images/global/verified.png",alt:"verified",style:{width:"16px",height:"16px",marginInlineStart:"4px",verticalAlign:"middle"}})]}),(0,F.jsx)("span",{className:"comment-user-tag",children:null===ae||void 0===ae?void 0:ae.tag}),(0,F.jsx)("span",{}),(0,F.jsx)(h.A,{size:20})]}),(0,F.jsx)("div",{style:{backgroundColor:"#e2f4ff"},className:"comment-container",children:(0,F.jsx)("p",{style:{color:"#165895"},dir:"auto",children:zt(oe.msg)})}),oe.sticker&&(0,F.jsx)("div",{className:"sticker_container",children:(0,F.jsx)("img",{className:"sticker_img",src:oe.sticker,alt:"sticker"})}),(0,F.jsx)("div",{className:"comment-tools",children:(0,F.jsx)("div",{className:"comment-actions",children:(0,F.jsx)("div",{onClick:()=>{Pt("comment"),It({tag:null===ae||void 0===ae?void 0:ae.tag,msg:oe.msg}),ve.find((e=>e.id===(null===ae||void 0===ae?void 0:ae.id)))||ye([...ve,{id:ae.id,tag:ae.tag}])},style:{cursor:"pointer"},children:(0,F.jsx)(f.A,{color:"comment"===Tt?"#31a8f1ff":"#7b7b7b"})})})})]})]})}),pe.map((e=>(0,F.jsx)("div",{ref:t=>{t?fe.current[e.key]=t:delete fe.current[e.key]},className:"comment-user",children:(0,F.jsxs)("div",{className:"comment-user-profile",children:[(0,F.jsxs)("div",{className:"comment-profile ".concat(e.frame_url?"subscribed has-frame":""),onClick:()=>at(e.owner),style:{cursor:"pointer",borderRadius:e.frame_url?(0,L.MF)(e):"50%"},children:[e.frame_url&&(0,F.jsx)("div",{className:"comment-profile-image-overlay",children:(0,F.jsx)("img",{src:e.frame_url,alt:"Frame",className:"avatar-frame"})}),(0,F.jsx)("img",{src:e.sensitive_img?"/assets/images/global/user_sensitive_img_v2.jpg":e.img,alt:"user",className:"comment-user-img",style:{cursor:"pointer"}})]}),(0,F.jsxs)("div",{className:"container-comment-user-details",children:[(0,F.jsxs)("div",{className:"comment-user-details",children:[(0,F.jsxs)("span",{className:"comment-user-name",children:[e.name,!!e.verified&&(0,F.jsx)("img",{src:"/assets/images/global/verified.png",alt:"verified",style:{width:"16px",height:"16px",marginInlineStart:"4px",verticalAlign:"middle"}})]}),(0,F.jsx)("span",{className:"comment-user-tag",children:e.tag}),(0,F.jsx)(m.A,{size:8,color:"#888",style:{marginInlineStart:"4px"}}),(0,F.jsx)("span",{className:"post-time",children:(0,T.f)(e.timestamp)}),(!(e.police||e.health||e.literature||e.law||e.all_admin)||qt())&&(0,F.jsxs)("div",{style:{position:"relative",marginInlineStart:"auto",overflow:"visible"},children:[(0,F.jsx)(h.A,{size:16,color:"#888",style:{marginInlineStart:"auto",marginInlineEnd:"4px",cursor:"pointer"},onClick:()=>gt(_t===e.key?null:e.key)}),_t===e.key&&(0,i.createPortal)((0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:"menu-portal-backdrop",onClick:()=>gt(null)}),(0,F.jsxs)("div",{className:"post_menu_options ".concat("dark"===J?"theme-dark":""),role:"dialog","aria-modal":"true",children:[Z()===e.owner&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"menu-item edit-item",onClick:()=>{return t=e.key,n=e.msg,r=e.fire,xt(t),St(n),At({[t]:r||!1}),void gt(null);var t,n,r},children:V("crm_edit_reply_menu")}),(0,F.jsx)("div",{className:"menu-item delete-item",onClick:()=>{return t=e.key,void Mt({isOpen:!0,title:V("crm_delete_reply_title"),message:V("crm_delete_reply_message"),isDangerous:!0,confirmText:V("crm_delete_btn"),cancelText:V("crm_cancel_bt
2n"),action:async()=>{try{var e;const r=await l.firebase.database().ref("posts/".concat(n,"/comments/").concat(B,"/replies/").concat(t)).once("value"),o=r.exists()&&(null===(e=r.val())||void 0===e?void 0:e.owner)||null;await l.firebase.database().ref("posts/".concat(n,"/comments/").concat(B,"/replies/").concat(t)).remove(),o&&(0,I.jr)(o).catch((()=>{})),gt(null),Ot({isOpen:!0,title:V("crm_deleted_title"),message:V("crm_delete_success"),type:"success"})}catch(r){console.error("Error deleting reply:",r),Ot({isOpen:!0,title:V("crm_error_title"),message:V("crm_delete_error"),type:"error"})}}});var t},children:V("crm_delete_reply_menu")})]}),Z()!==e.owner&&(0,F.jsxs)(F.Fragment,{children:[qt()&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"menu-item "+(e.police?"unblock-item":"block-item"),onClick:()=>Wt(e.key,e,"police",V("crm_block_reason_theft")),children:e.police?V("crm_unblock_reply_theft"):V("crm_block_reply_theft")}),(0,F.jsx)("div",{className:"menu-item "+(e.literature?"unblock-item":"block-item"),onClick:()=>Wt(e.key,e,"literature",V("crm_block_reason_literature")),children:e.literature?V("crm_unblock_reply_literature"):V("crm_block_reply_literature")}),(0,F.jsx)("div",{className:"menu-item "+(e.law?"unblock-item":"block-item"),onClick:()=>Wt(e.key,e,"law",V("crm_block_reason_law")),children:e.law?V("crm_unblock_reply_law"):V("crm_block_reply_law")}),(0,F.jsx)("div",{className:"menu-item report-item",onClick:()=>(async e=>{await Ht(e,"content_reports")?Ot({isOpen:!0,title:V("crm_already_reported_title"),message:V("crm_already_reported_message"),type:"warning"}):Mt({isOpen:!0,title:V("crm_report_health_title"),message:V("crm_report_health_message"),isDangerous:!1,action:async()=>{const t=Z();if(t)try{await l.firebase.database().ref("content_reports").push({replyId:e,commentId:B,postId:n,reportedBy:t,reportType:"depression",reportCategory:"health",targetType:"reply",status:"open",reason:V("crm_report_health_depression_reason"),timestamp:Date.now()}),gt(null),Ot({isOpen:!0,title:V("crm_reported_title"),message:V("crm_report_health_success"),type:"success"})}catch(r){console.error("Error reporting to health:",r),Ot({isOpen:!0,title:V("crm_error_title"),message:V("crm_report_error"),type:"error"})}}})})(e.key),children:V("crm_report_health_depression")})]}),!qt()&&(0,F.jsx)("div",{className:"menu-item report-item",onClick:()=>{return t=e.key,gt(null),void yt({isOpen:!0,targetType:"reply",targetId:t,messageText:""});var t},children:V("crm_report_reply_menu")})]})]})]}),document.body)]})]}),e.mentions&&e.mentions.length>0&&(0,F.jsx)("div",{className:"comment-title-container",children:e.mentions.map(((e,t)=>(0,F.jsxs)("div",{className:"comment-mention-container",onClick:()=>{e.id&&window.open("/profile/".concat(e.id),"_blank")},children:[(0,F.jsx)(_.A,{size:15,color:"#ffffff"}),(0,F.jsx)("span",{id:"mention-tag",children:e.tag.replace("@","")})]},t)))}),!wt&&(0,F.jsx)(F.Fragment,{children:e.police||e.health||e.literature||e.law||e.all_admin?(0,F.jsx)("div",{className:"comment-container",style:{background:"#ffebee",color:"#c62828"},children:(0,F.jsx)("p",{dir:"auto",children:Ut(e)})}):e.fire&&!Et[e.key]?(0,F.jsxs)("div",{className:"comment-container",onClick:()=>{return t=e.key,void jt((e=>(0,r.A)((0,r.A)({},e),{},{[t]:!e[t]})));var t},style:{display:"flex",alignItems:"center",gap:6,color:"#c74040",cursor:"pointer"},children:[(0,F.jsx)(g.A,{}),(0,F.jsx)("p",{dir:"auto",children:V("crm_spoiler_warning")})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:"comment-container",children:(0,F.jsx)("p",{dir:"auto",children:zt(e.msg)})}),e.sticker&&(0,F.jsx)("div",{className:"sticker_container",children:(0,F.jsx)("img",{className:"sticker_img",src:e.sticker,alt:"sticker"})}),e.image&&e.image.trim()&&"null"!==e.image&&"undefined"!==e.image&&(0,F.jsx)("div",{className:"comment-image-container",children:(0,F.jsx)("img",{ref:t=>ot.current[e.key]=t,className:"comment-image",src:e.image,alt:"reply",onClick:t=>{if(t.stopPropagation(),ot.current[e.key]){const t=ot.current[e.key].getBoundingClientRect();rt(t)}tt(e.image),Ze(!0)},style:{cursor:"pointer"}})})]})}),!(e.police||e.health||e.literature||e.law||e.all_admin)&&(0,F.jsxs)("div",{className:"comment-tools",children:[(0,F.jsxs)("div",{className:"comment-actions",children:[(0,F.jsxs)("div",{className:"reaction-button",onTouchStart:()=>Gt(e.key),onTouchEnd:()=>Yt(e.key),onMouseDown:()=>Gt(e.key),onMouseUp:()=>Yt(e.key),onClick:t=>{t.stopPropagation(),(async e=>{var t,o;if(pt===e)return;const i=ut[e],a=Z();if(!a)return;if(null===W||void 0===W||null===(t=W.userData)||void 0===t||!t.name||null===W||void 0===W||null===(o=W.userData)||void 0===o||!o.tag)return void Q("/create-profile");const s=await(0,I.ed)(n,B,e);if(s)return void Ot({isOpen:!0,title:V("crm_reply_deleted"),message:s,type:"warning"});const c=l.firebase.database().ref("posts/".concat(n,"/comments/").concat(B,"/replies/").concat(e,"/reactions/").concat(a));if(i)await c.remove(),dt((t=>(0,r.A)((0,r.A)({},t),{},{[e]:null}))),(0,I.tW)(a,i).catch((()=>{}));else{await c.set("like"),dt((t=>(0,r.A)((0,r.A)({},t),{},{[e]:"like"}))),(0,I.dl)(a,"like").catch((()=>{}));const t=pe.find((t=>t.key===e));if(t&&t.owner!==a){const r=await d.A.getProfile(a)||{};(0,p.xd)(t.owner,r,"reaction","like",n,B,e)}}})(e.key)}
2,style:{position:"relative",cursor:"pointer",userSelect:"none"},children:[(0,F.jsx)("span",{style:(0,r.A)((0,r.A)({},ut[e.key]?{color:"#1da1f2"}:{color:"dark"===J?"#e6eef6":"#000"}),{},{pointerEvents:"none"}),onTouchEnd:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),children:Bt(ut[e.key])}),pt===e.key&&(0,F.jsx)(M.A,{reactionTypes:z,reactionIcons:Oe,theme:J,onSelect:t=>(async(e,t)=>{var o,i;const a=Z();if(!a)return;if(null===W||void 0===W||null===(o=W.userData)||void 0===o||!o.name||null===W||void 0===W||null===(i=W.userData)||void 0===i||!i.tag)return void Q("/create-profile");const s=await(0,I.ed)(n,B,e);if(s)return Ot({isOpen:!0,title:V("crm_reply_deleted"),message:s,type:"warning"}),void ht(null);const c=l.firebase.database().ref("posts/".concat(n,"/comments/").concat(B,"/replies/").concat(e,"/reactions/").concat(a)),u=ut[e];if(u!==t){await c.set(t),dt((n=>(0,r.A)((0,r.A)({},n),{},{[e]:t}))),u?(0,I.Zu)(a,u,t).catch((()=>{})):(0,I.dl)(a,t).catch((()=>{}));const o=pe.find((t=>t.key===e));if(o&&o.owner!==a){const r=await d.A.getProfile(a)||{};(0,p.xd)(o.owner,r,"reaction",t,n,B,e)}}ht(null)})(e.key,t),onClose:()=>ht(null)})]}),(0,F.jsx)("div",{onClick:()=>{Pt(e.key),It({tag:e.tag,msg:e.msg}),ve.find((t=>t.id===e.owner))||ye([...ve,{id:e.owner,tag:e.tag}])},style:{cursor:"pointer"},children:(0,F.jsx)(f.A,{color:Tt===e.key?"#31a8f1ff":"#7b7b7b"})})]}),Object.values(lt[e.key]||{}).reduce(((e,t)=>e+t),0)>0&&(0,F.jsx)("div",{className:"reactions-container",children:(0,F.jsx)("div",{className:"top-reactions",style:{display:"flex",alignItems:"center",position:"relative",cursor:"pointer"},onClick:()=>Re({path:"posts/".concat(n,"/comments/").concat(B,"/replies/").concat(e.key,"/reactions"),ownerId:e.owner}),children:(0,F.jsxs)("div",{className:"reaction-preview",style:{position:"relative",display:"inline-flex",alignItems:"center",height:"24px",width:"".concat(12*(lt[e.key]?Object.keys(lt[e.key]):[]).slice(0,3).length+26,"px")},children:[Object.values(lt[e.key]||{}).reduce(((e,t)=>e+t),0)>0&&(0,F.jsx)("span",{style:{position:"absolute",left:"0px",zIndex:10,marginTop:"2px"},children:Object.values(lt[e.key]||{}).reduce(((e,t)=>e+t),0)}),(lt[e.key]?Object.keys(lt[e.key]):[]).slice(0,3).map(((e,t,n)=>(0,F.jsx)("img",{src:Oe[e],className:"reaction-icon",style:{position:"absolute",left:"".concat(14+12*t,"px"),zIndex:n.length-t}},e)))]})})})]})]})]})},e.key)))]})]}),(0,F.jsxs)("div",{className:"main-input-container",style:{borderTop:"1px solid #eee",padding:"8px"},children:[(0,F.jsxs)("div",{className:"selected-mentions-list",children:[Pe&&(0,F.jsx)("div",{className:"comment-fire-icon",children:(0,F.jsx)(g.A,{onClick:()=>Ne(!1),size:20,color:"#fff"})}),Ae&&(0,F.jsxs)("div",{className:"sticker-icon",children:[(0,F.jsx)("img",{src:Ae,alt:"sticker"}),(0,F.jsx)(v.A,{onClick:()=>Ee(null),size:20,color:"#fff"})]}),ve.map((e=>(0,F.jsxs)("div",{className:"selected-mention-container",children:[(0,F.jsx)("h3",{className:"selected-mention-tag",children:e.tag}),(0,F.jsx)(v.A,{onClick:()=>ye(ve.filter((t=>t.id!==e.id))),style:{background:"#ffffff",borderRadius:"50%"},size:20,color:"#ff5c5cff"})]},e.id)))]}),!ue&&(0,F.jsx)("div",{style:{padding:"16px",textAlign:"center",color:"#e74c3c",fontWeight:"bold",fontSize:"14px"},children:V("crm_comments_closed_banner")}),(0,F.jsxs)("div",{className:"input-container",style:{opacity:ue&&!Y?1:.5,pointerEvents:ue&&!Y?"auto":"none"},children:[(0,F.jsx)(w.A,{isEditing:null!==wt,editingCommentText:kt,onCancelEdit:()=>{xt(null),St(""),At({})},onSaveEdit:()=>{wt&&Vt(wt)},value:null!==wt?kt:_e,onChange:e=>{const t=e.target.value;if(null!==wt)St(t);else{ge(t);const n=t.lastIndexOf("@"),r=t.lastIndexOf("<"),o=t.lastIndexOf("^"),i=Math.max(n,r,o);if(-1===i)ke(!1),Le(!1),Ge(!1),we([]),ze([]),Qe([]);else if(i===n){Le(!1),Ge(!1);const r=t.slice(n+1).trim();ke(!0),r.length>0?(async t=>{const n=t.startsWith("@")?t:"@"+t;if(n.slice(1).length<2)we([]);else try{const e=await l.firebase.database().ref("kunaiu_bank").orderByChild("tag").startAt(n).endAt(n+"\uf8ff").limitToFirst(6).once("value");if(e.exists()){const t=e.val(),n=Object.entries(t).map((e=>{let[t,n]=e;return{id:t,tag:n.tag||"",name:n.name||"Unknown",img:n.img||"/assets/images/global/user_v2.jpg"}}));we(n)}else we([])}catch(e){console.error("mention search",e),we([])}})(r):we([])}else if(i===r){ke(!1),Ge(!1);const e=t.slice(r+1).trim();Le(!0),qe(e)}else if(i===o){ke(!1),Le(!1);const e=t.slice(o+1).trim();Ge(!0),$e(e)}}},onSend:()=>{wt?Vt(wt):(async()=>{var e,t;const o=Z();if(!o||!_e.trim()&&!Ae&&!je)return;if(Y)return void Ot({isOpen:!0,title:V("crm_banned_title"),message:V("crm_banned_reply_message"),type:"warning"});if(null===W||void 0===W||null===(e=W.userData)||void 0===e||!e.name||null===W||void 0===W||null===(t=W.userData)||void 0===t||!t.tag)return void Q("/create-profile");const i=await(0,I.zy)(n,B);if(i)return void Ot({isOpen:!0,title:V("crm_comment_deleted"),message:i,type:"warning"});const a=l.firebase.database().ref("posts/".concat(n,"/comments/").concat(B,"/replies")).push(),s=(0,r.A)((0,r.A)({id:a.key,owner:o,msg:_e.trim(),mentions:ve,fire:Pe,sticker:Ae,image:je,timestamp:Date.now()},"comment"===Tt?{parent_comment_id:B}:{}),Tt&&"comment"!==Tt?{parent_reply_id:Tt}:{});try{const e=await d.A.getProfile(o)||{};await a.set(s),(0,I.MB)(o).catch((()=>{}));const t=new Set;for(const r of ve)r.id&&r.id!==o&&(t.add(r.id),(0,p._Y)(r.id,e,"reply",n,B,a.key));ae&&ae.id&&ae.id!==o&&!t.has(ae.id)&&(t.add(ae.id),(0,p._Y)(ae.id,e,"reply",n,B,a.key)),le&&le!==o&&!t.has(le)&&(0,p._Y)(le,e,"reply",n,B,a.key),ye([]),ge(""),St(""),Ne(!1),Ee(null),Te(null),Pt(null),It(null)}catch(c){console.error("send reply error",c)}})()},placeholder:null!==wt?V("crm_edit_reply"):V("crm_reply_on_label",Nt?{target:Nt.tag}:{target:(null===ae||void 0===ae?void 0:ae.tag)||V("crm_comment_label")}),disabled:!ue||Y,fireComment:null!==wt?void 0!==Ct[wt]?Ct[wt]:(null===(t=pe.find((e=>e.key===wt)))||void 0===t?void 0:t.fire)||!1:Pe,onFireToggle:()=>{wt?At((e=>(0,r.A)((0,r.A)({},e),{},{[wt]:!e[wt]}))):Ne(!Pe)},selectedIcon:Ae,onIconClick:()=>Ce(!0),onIconRemove:()=>Ee(null),selectedMentions:ve,onMentionClick:()=>ke(!xe),onMentionRemove:e=>ye(ve.filter((t=>
2t.id!==e))),hideCoinsbtn:!0,showMentionsDropdown:xe,mentionResults:be,onMentionSelect:e=>{ve.find((t=>t.id===e.id))?ye(ve.filter((t=>t.id!==e.id))):(ye([...ve,{id:e.id,tag:e.tag}]),ke(!1),ge((e=>{const t=e.lastIndexOf("@");return-1!==t?e.slice(0,t).trimEnd()+" ":e})))},showCharacterDropdown:Me,characterResults:Fe,onCharacterSelect:e=>{const t="<".concat(Ue,":").concat(e.id,":").concat(e.name,">");ge((e=>{const n=e.lastIndexOf("<");return-1!==n?e.slice(0,n)+t+" ":e+t+" "})),Le(!1),qe("")},characterCategory:Ue,showSurahDropdown:Ke,surahResults:Ye,onSurahSelect:e=>{const t="^".concat(e.number,":").concat(e.name);ge((e=>{const n=e.lastIndexOf("^");return-1!==n?e.slice(0,n)+t+" ":e+t+" "})),Ge(!1),$e("")},selectedImage:je,onImageSelect:Te,onImageRemove:()=>Te(null)}),Se&&(0,F.jsx)(b.A,{onClose:()=>Ce(!1),onSelectIcon:e=>{Ee(e),Ce(!1)},currentIconUrl:Ae})]})]}),vt.isOpen&&(0,i.createPortal)((0,F.jsx)("div",{style:{position:"fixed",inset:0,zIndex:bt+2,background:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:16},onClick:()=>yt({isOpen:!1,targetType:"reply",targetId:null,messageText:""}),children:(0,F.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{width:"100%",maxWidth:420,borderRadius:20,background:"dark"===J?"#111827":"#ffffff",color:"dark"===J?"#e5e7eb":"#111827",boxShadow:"0 18px 60px rgba(0,0,0,0.35)",padding:18,direction:K},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:12}
2,children:[(0,F.jsx)("div",{style:{width:42,height:42,borderRadius:12,background:"rgba(255, 84, 84, 0.12)",display:"flex",alignItems:"center",justifyContent:"center",color:"#ff5454"},children:(0,F.jsx)(y.A,{size:20})}),(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{style:{fontSize:18,fontWeight:800},children:V("crm_report_dialog_heading")}),(0,F.jsx)("div",{style:{fontSize:13,opacity:.75},children:V("crm_report_dialog_subtitle")})]})]}),(0,F.jsx)("label",{style:{display:"block",fontSize:13,fontWeight:700,marginBottom:6},children:V("crm_report_details_label")}),(0,F.jsx)("textarea",{value:vt.messageText,onChange:e=>yt((t=>(0,r.A)((0,r.A)({},t),{},{messageText:e.target.value}))),rows:5,placeholder:V("crm_report_details_placeholder"),style:{width:"100%",resize:"vertical",padding:"12px 14px",borderRadius:12,border:"dark"===J?"1px solid #334155":"1px solid #d1d5db",background:"dark"===J?"#0f172a":"#fff",color:"inherit",marginBottom:16,boxSizing:"border-box"}}),(0,F.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,F.jsx)("button",{onClick:()=>yt({isOpen:!1,targetType:"reply",targetId:null,messageText:""}),style:{flex:1,border:"none",borderRadius:12,padding:"12px 14px",cursor:"pointer",background:"dark"===J?"#334155":"#e5e7eb",color:"inherit",fontWeight:700},children:V("crm_cancel_btn")}),(0,F.jsx)("button",{onClick:async()=>{const e=Z();if(!e)return yt((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1}))),Ot({isOpen:!0,title:V("crm_error_title"),message:V("crm_login_required_for_report"),type:"error"});const t=pe.find((e=>e.key===vt.targetId));try{await(0,E.k1)({targetType:"reply",targetId:vt.targetId,postId:n,commentId:B,replyId:vt.targetId,reportedUserId:(null===t||void 0===t?void 0:t.owner)||null,reporterId:e,messageText:vt.messageText,contentText:(null===t||void 0===t?void 0:t.msg)||"",source:"reply_report_modal"}),yt({isOpen:!1,targetType:"reply",targetId:null,messageText:""}),Ot({isOpen:!0,title:V("crm_reported_title"),message:V("crm_report_submit_success"),type:"success"})}catch(o){console.error("Error submitting reply report:",o),Ot({isOpen:!0,title:V("crm_error_title"),message:V("crm_report_submit_error"),type:"error"})}},style:{flex:1,border:"none",borderRadius:12,padding:"12px 14px",cursor:"pointer",background:"#ff5454",color:"#fff",fontWeight:800},children:V("crm_send_report_btn")})]})]})}),document.body),(0,F.jsx)(k.A,{isOpen:Rt.isOpen,onClose:()=>Ot((0,r.A)((0,r.A)({},Rt),{},{isOpen:!1})),title:Rt.title,message:Rt.message,type:Rt.type}),(0,F.jsx)(S.A,{isOpen:Dt.isOpen,onConfirm:()=>{var e;null===(e=Dt.action)||void 0===e||e.call(Dt),Mt((0,r.A)((0,r.A)({},Dt),{},{isOpen:!1}))},onCancel:()=>Mt((0,r.A)((0,r.A)({},Dt),{},{isOpen:!1})),title:Dt.title,message:Dt.message,confirmText:Dt.confirmText||V("crm_yes_btn"),cancelText:Dt.cancelText||V("crm_cancel_btn"),isDangerous:Dt.isDangerous}),Je&&et&&(0,F.jsx)(C.A,{imageUrl:et,sourceRect:nt,onClose:()=>Ze(!1)}),it&&(0,F.jsx)(A.A,{userId:it,onClose:()=>at(null)})]}),document.body):null}},70548:function(e,t,n){e.exports=function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}(n(84488),n(52238))},70579:(e,t,n)=>{"use strict";e.exports=n(22799)},70705:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},70914:(e,t,n)=>{var r=n(19841);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},70929:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]])},71180:(e,t,n)=>{"use strict";n.d(t,{FN:()=>p,Gh:()=>_,Gj:()=>y,Jj:()=>u,a6:()=>m,fg:()=>c,gC:()=>g,g_:()=>v,mm:()=>b,uC:()=>d});var r=n(22555),o=n(40117);const i=new Set(["chat_message","private_message","group_message","saraha"]);function a(e){return"follow"===e?"follow":"reaction"===e?"reaction":i.has(e)?"messages":"general"}function s(e,t,n){const r=o.firebase.database().ref("NotificationsUnreadCount/".concat(e,"/").concat(t));return(n>0?r.set(o.firebase.database.ServerValue.increment(n)):r.transaction((e=>Math.max(0,(Number(e)||0)+n)))).catch((n=>(console.warn("Unread counter sync failed (".concat(e,"/").concat(t,"):"),n),null)))}
2function l(e,t,n){return Promise.allSettled([s(e,"total",n),s(e,t,n)])}async function c(e,t){if(!e||null===t||void 0===t||!t.type)return null;const n=a(t.type),i=o.firebase.database().ref("Notifications/".concat(e)).push().key,s=(0,r.A)((0,r.A)({},t),{},{timestamp:t.timestamp||Date.now(),read:!1,highlighted:!0}),c={["Notifications/".concat(e,"/").concat(i)]:s,["NotificationsByCategory/".concat(e,"/").concat(n,"/").concat(i)]:s,["NotificationsByType/".concat(e,"/").concat(s.type,"/").concat(i)]:s};return await o.firebase.database().ref().update(c),l(e,n,1),i}async function u(e,t){if(!e||null===t||void 0===t||!t.id)return;const n=a(t.type),r={["Notifications/".concat(e,"/").concat(t.id,"/read")]:!0,["Notifications/".concat(e,"/").concat(t.id,"/highlighted")]:!1,["NotificationsByCategory/".concat(e,"/").concat(n,"/").concat(t.id,"/read")]:!0,["NotificationsByCategory/".concat(e,"/").concat(n,"/").concat(t.id,"/highlighted")]:!1,["NotificationsByType/".concat(e,"/").concat(t.type,"/").concat(t.id,"/read")]:!0,["NotificationsByType/".concat(e,"/").concat(t.type,"/").concat(t.id,"/highlighted")]:!1};await o.firebase.database().ref().update(r),t.read||l(e,n,-1)}async function d(e,t){if(!e||null===t||void 0===t||!t.id)return;const n=a(t.type),r={["Notifications/".concat(e,"/").concat(t.id,"/read")]:!1,["Notifications/".concat(e,"/").concat(t.id,"/highlighted")]:!0,["NotificationsByCategory/".concat(e,"/").concat(n,"/").concat(t.id,"/read")]:!1,["NotificationsByCategory/".concat(e,"/").concat(n,"/").concat(t.id,"/highlighted")]:!0,["NotificationsByType/".concat(e,"/").concat(t.type,"/").concat(t.id,"/read")]:!1,["NotificationsByType/".concat(e,"/").concat(t.type,"/").concat(t.id,"/highlighted")]:!0};await o.firebase.database().ref().update(r),t.read&&l(e,n,1)}async function p(e,t){if(!e||null===t||void 0===t||!t.id)return;const n=a(t.type),r={["Notifications/".concat(e,"/").concat(t.id)]:null,["NotificationsByCategory/".concat(e,"/").concat(n,"/").concat(t.id)]:null,["NotificationsByType/".concat(e,"/").concat(t.type,"/").concat(t.id)]:null};await o.firebase.database().ref().update(r),t.read||l(e,n,-1)}const h=400;async function f(e){const t=Object.keys(e);for(let n=0;n<t.length;n+=h){const r={};t.slice(n,n+h).forEach((t=>{r[t]=e[t]})),await o.firebase.database().ref().update(r)}}async function m(e,t){let{category:n,type:i}=t;if(!e)return;const l=i?"NotificationsByType/".concat(e,"/").concat(i):"NotificationsByCategory/".concat(e,"/").concat(n),c=(await o.firebase.database().ref(l).once("value")).val();if(!c)return;const u=Object.entries(c).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)})),d=u.filter((e=>!e.read)),p=u.filter((e=>{var t;return null!==(t=e.highlighted)&&void 0!==t?t:!e.read}));if(0===d.length&&0===p.length)return[];const h={};u.forEach((t=>{const r=i?a(t.type):n;h["Notifications/".concat(e,"/").concat(t.id,"/read")]=!0,h["Notifications/".concat(e,"/").concat(t.id,"/highlighted")]=!1,h["NotificationsByCategory/".concat(e,"/").concat(r,"/").concat(t.id,"/read")]=!0,h["NotificationsByCategory/".concat(e,"/").concat(r,"/").concat(t.id,"/highlighted")]=!1,h["NotificationsByType/".concat(e,"/").concat(t.type,"/").concat(t.id,"/read")]=!0,h["NotificationsByType/".concat(e,"/").concat(t.type,"/").concat(t.id,"/highlighted")]=!1})),await f(h);const m={};return d.forEach((e=>{const t=i?a(e.type):n;m[t]=(m[t]||0)+1})),s(e,"total",-d.length),Object.entries(m).forEach((t=>{let[n,r]=t;s(e,n,-r)})),u.map((e=>e.id))}async function _(e,t){let{category:n,type:i}=t;if(!e)return[];const l=i?"NotificationsByType/".concat(e,"/").concat(i):"NotificationsByCategory/".concat(e,"/").concat(n),c=(await o.firebase.database().ref(l).orderByChild("read").equalTo(!1).once("value")).val();if(!c)return[];const u=Object.entries(c).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)})),d={};u.forEach((t=>{const r=i?a(t.type):n;d["Notifications/".concat(e,"/").concat(t.id,"/read")]=!0,d["Notifications/".concat(e,"/").concat(t.id,"/highlighted")]=!0,d["NotificationsByCategory/".concat(e,"/").concat(r,"/").concat(t.id,"/read")]=!0,d["NotificationsByCategory/".concat(e,"/").concat(r,"/").concat(t.id,"/highlighted")]=!0,d["NotificationsByType/".concat(e,"/").concat(t.type,"/").concat(t.id,"/read")]=!0,d["NotificationsByType/".concat(e,"/").concat(t.type,"/").concat(t.id,"/highlighted")]=!0})),await f(d);const p={};return u.forEach((e=>{const t=i?a(e.type):n;p[t]=(p[t]||0)+1}
2)),s(e,"total",-u.length),Object.entries(p).forEach((t=>{let[n,r]=t;s(e,n,-r)})),u.map((e=>e.id))}async function g(e,t){let{category:n,type:i}=t;if(!e)return;const l=i?"NotificationsByType/".concat(e,"/").concat(i):"NotificationsByCategory/".concat(e,"/").concat(n),c=(await o.firebase.database().ref(l).once("value")).val();if(!c)return[];const u=Object.entries(c).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)}));if(0===u.length)return[];const d={};let p=0;const h={};return u.forEach((t=>{const r=i?a(t.type):n;d["Notifications/".concat(e,"/").concat(t.id)]=null,d["NotificationsByCategory/".concat(e,"/").concat(r,"/").concat(t.id)]=null,d["NotificationsByType/".concat(e,"/").concat(t.type,"/").concat(t.id)]=null,t.read||(p+=1,h[r]=(h[r]||0)+1)})),await f(d),p>0&&(s(e,"total",-p),Object.entries(h).forEach((t=>{let[n,r]=t;s(e,n,-r)}))),u.map((e=>e.id))}function v(e){let{userId:t,category:n,type:r,pageSize:i,beforeTimestamp:a}=e;const s=r?"NotificationsByType/".concat(t,"/").concat(r):"NotificationsByCategory/".concat(t,"/").concat(n);let l=o.firebase.database().ref(s).orderByChild("timestamp");return l=null!=a?l.endAt(a-1).limitToLast(i):l.limitToLast(i),l}function y(e){const t=e.val();return t?Object.entries(t).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)})).sort(((e,t)=>t.timestamp-e.timestamp)):[]}function b(e,t){if(!e)return()=>{};const n=o.firebase.database().ref("NotificationsUnreadCount/".concat(e)),r=e=>t(e.val()||{total:0});return n.on("value",r),()=>n.off("value",r)}},71200:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(22555),o=n(65043),i=n(40117),a=n(65982),s=n(13005),l=n(81518),c=n(40614),u=n(70067),d=n(36210),p=n(70579);const h=e=>{let{postId:t,onClose:n}=e;const{userData:h}=(0,o.useContext)(a.Rs),{theme:f}=(0,s.DP)(),[m,_]=(0,o.useState)([]),[g,v]=(0,o.useState)(!0),[y,b]=(0,o.useState)([]),[w,x]=(0,o.useState)(!1),[k,S]=(0,o.useState)({isOpen:!1,title:"",message:"",type:"info"});(0,o.useEffect)((()=>{if(null===h||void 0===h||!h.id)return;(async()=>{try{const e=i.firebase.database().ref("user_posts_list/".concat(h.id)),n=await e.once("value");if(n.exists()){const e=n.val(),o=Object.keys(e).map((t=>(0,r.A)({id:t},e[t]))),i=[];o.forEach((e=>{(e.posts?Array.isArray(e.posts)?e.posts:Object.values(e.posts):[]).includes(t)&&i.push(e.id)})),b(i),o.sort(((e,t)=>new Date(t.date||0)-new Date(e.date||0))),_(o)}}catch(e){console.error("Error fetching lists:",e)}finally{v(!1)}})()}),[h,t]);return(0,p.jsxs)("div",{className:"add-list-modal-overlay ".concat("dark"===f?"theme-dark-bg":""),onClick:n,children:[(0,p.jsxs)("div",{className:"add-list-modal-content",onClick:e=>e.stopPropagation(),children:[(0,p.jsxs)("div",{className:"add-list-modal-header",children:[(0,p.jsx)("h3",{children:"\u0625\u0636\u0627\u0641\u0629 \u0625\u0644\u0649 \u0642\u0627\u0626\u0645\u0629"}),(0,p.jsx)("button",{className:"add-list-close-btn",onClick:n,children:(0,p.jsx)(c.A,{size:24})})]}),(0,p.jsx)("div",{className:"add-list-modal-body",children:g?(0,p.jsx)("div",{style:{textAlign:"center",padding:"20px"},children:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644..."}):m.length>0?(0,p.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:m.map((e=>{const t=y.includes(e.id);return(0,p.jsxs)("div",{className:"add-list-item ".concat(t?"selected":""),onClick:()=>{return t=e.id,void b((e=>e.includes(t)?e.filter((e=>e!==t)):[...e,t]));var t},children:[e.image?(0,p.jsx)("img",{src:e.image,alt:e.name,className:"list-cover-img"}):(0,p.jsx)("div",{className:"list-cover-placeholder",children:(0,p.jsx)(u.A,{size:24})}),(0,p.jsxs)("div",{className:"list-info",children:[(0,p.jsx)("p",{className:"list-name",children:e.name||"\u0628\u062f\u0648\u0646 \u0627\u0633\u0645"}),(0,p.jsxs)("p",{className:"list-count",children:[e.posts?Array.isArray(e.posts)?e.posts.length:Object.keys(e.posts).length:0," \u0645\u0646\u0634\u0648\u0631"]})]}),t&&(0,p.jsx)(d.A,{color:"#1da1f2",size:20})]},e.id)}))}):(0,p.jsx)("div",{className:"empty-lists-msg",children:"\u0644\u0627 \u062a\u0648\u062c\u062f \u0644\u062f\u064a\u0643 \u0642\u0648\u0627\u0626\u0645 \u0628\u0639\u062f. \u0642\u0645 \u0628\u0625\u0646\u0634\u0627\u0621 \u0642\u0627\u0626\u0645\u0629 \u0645\u0646 \u0635\u0641\u062d\u062a\u0643 \u0627\u0644\u0634\u062e\u0635\u064a\u0629 \u0623\u0648\u0644\u0627\u064b."})}),(0,p.jsx)("div",{className:"add-list-modal-footer",children:(0,p.jsx)("button",{className:"btn-primary",onClick:async()=>
2{if(null!==h&&void 0!==h&&h.id&&t){x(!0);try{const e={};m.forEach((n=>{let r=n.posts?Array.isArray(n.posts)?n.posts:Object.values(n.posts):[];const o=y.includes(n.id),i=r.includes(t);o&&!i?(r.push(t),e["user_posts_list/".concat(h.id,"/").concat(n.id,"/posts")]=r):!o&&i&&(r=r.filter((e=>e!==t)),e["user_posts_list/".concat(h.id,"/").concat(n.id,"/posts")]=r)})),Object.keys(e).length>0?(await i.firebase.database().ref().update(e),S({isOpen:!0,title:"\u0646\u062c\u0627\u062d",message:"\u062a\u0645 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0642\u0648\u0627\u0626\u0645 \u0628\u0646\u062c\u0627\u062d!",type:"success"}),setTimeout((()=>n()),1500)):n()}catch(e){console.error("Error saving to lists:",e),S({isOpen:!0,title:"\u062e\u0637\u0623",message:"\u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0642\u0648\u0627\u0626\u0645",type:"error"})}finally{x(!1)}}},disabled:w||0===m.length,children:w?"\u062c\u0627\u0631\u064a \u0627\u0644\u062d\u0641\u0638...":"\u062d\u0641\u0638"})})]}),(0,p.jsx)(l.A,{isOpen:k.isOpen,onClose:()=>S((0,r.A)((0,r.A)({},k),{},{isOpen:!1})),title:k.title,message:k.message,type:k.type})]})}},71360:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},71482:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("flag",[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]])},71775:(e,t,n)=>{var r=n(5654);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},72070:(e,t,n)=>{var r=n(87937)(n(56552),"Set");e.exports=r},72154:(e,t,n)=>{var r=n(95575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},72313:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},73204:(e,t,n)=>{var r=n(3343),o=n(22777),i=n(54052),a=n(44543),s=n(69194),l=n(51268),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],m=f.length;for(var _ in e)!t&&!c.call(e,_)||h&&("length"==_||d&&("offset"==_||"parent"==_)||p&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,m))||f.push(_);return f}},73546:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(22555),o=n(65043),i=n(22626),a=n(65982),s=n(89927),l=(n(56327),n(70579));const c=e=>{let{onClose:t,onSend:n,targetUserId:c=null,messageOption:u=!0,sendType:d=null,externalError:p=""}=e;const{userData:h}=(0,o.useContext)(a.Rs),[f,m]=(0,o.useState)(null),[_,g]=(0,o.useState)(""),[v,y]=(0,o.useState)(""),[b,w]=(0,o.useState)(!1),[x,k]=(0,o.useState)(p),[S,C]=(0,o.useState)(!1),A=(0,o.useRef)(null),E=(0,o.useRef)(null),j=(0,o.useRef)(!1),T=(0,o.useRef)(null),P=(0,o.useRef)(t);P.current=t;const N=(0,o.useMemo)((()=>null!==h&&void 0!==h&&h.contacts?Object.entries(h.contacts).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)})):[]),[h]),I=(0,o.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];j.current||(j.current=!0,E.current&&((0,s.tu)(E.current,!e),E.current=null),P.current())}),[]);(0,o.useEffect)((()=>{T.current&&(clearTimeout(T.current),T.current=null),E.current||(E.current=(0,s.GR)("send-coins")),window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"open"}}));const e=()=>{(0,s.Vz)()!==E.current||j.current||I(!0)};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e),window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"close"}}));const t=E.current;T.current=setTimeout((()=>{t&&E.current===t&&((0,s.tu)(t,!0),E.current=null)}),0)}}),[I]);return(0,o.useEffect)((()=>{const e=e=>{A.current&&!A.current.contains(e.target)&&w(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,o.useEffect)((()=>{k(p)}),[p]),(0,l.jsx)("div",{className:"send-dialog-overlay",onClick:e=>e.stopPropagation(),children:(0,l.jsxs)("div",{className:"send-dialog-box",children:[(0,l.jsx)("h3",{children:"\u0625\u0631\u0633\u0627\u0644 \u0639\u0645\u0644\u0627\u062a"}),!c&&(0,l.jsxs)("div",{className:"input-group",children:[(0,l.jsx)("label",{children:"\u0625\u0644\u0649"}),(0,l.jsxs)("div",{className:"input-with-icon-and-dropdown",ref:A,children:[(0,l.jsxs)("div",{className:"input-with-icon",children:[(0,l.jsx)("input",{type:"text",readOnly:!0,placeholder:"\u0627\u062e\u062a\u0631 \u0634\u062e\u0635\u064b\u0627 \u0630\u0627\u062a \u0635\u0650\u0644\u0629",value:(null===f||void 0===f?void 0:f.contactName)||"",onClick:()=>w(!b),style:{cursor:"pointer"}}),(0,l.jsx)(i.A,{className:"icon-button",onClick:()=>w(!b)})]}),b&&(0,l.jsx)("div",{className:"friend-list-popup",children:0===N.length?(0,l.jsx)("div",{className:"friend-list-item no-friends-msg",children:"\u0644\u0627 \u064a\u0648\u062c\u062f \u0623\u0634\u062e\u0627\u0635 \u0630\u0627\u062a \u0635\u0650\u0644\u0629"}):N.map((e=>(0,l.jsx)("div",{className:"friend-list-item",onClick:()=>(e=>{m(e),w(!1)})(e),children:e.contactName},e.id)))})]})]}),(0,l.jsxs)("div",{className:"input-group",children:[(0,l.jsx)("label",{children:"\u0627\u0644\u0645\u0628\u0644\u063a"}
2),(0,l.jsx)("input",{type:"number",value:_,onChange:e=>{g(e.target.value),k("")},placeholder:"\u0623\u062f\u062e\u0644 \u0627\u0644\u0645\u0628\u0644\u063a",className:"amount-input",style:{color:x?"red":"black"}})]}),u&&(0,l.jsxs)("div",{className:"input-group",children:[(0,l.jsx)("label",{children:"\u0631\u0633\u0627\u0644\u0629 (\u0627\u062e\u062a\u064a\u0627\u0631\u064a)"}),(0,l.jsx)("textarea",{id:"custom-text-input",maxLength:"150",value:v,onChange:e=>{const t=e.target.value;y(t);const n=/[\u0600-\u06FF]/.test(t)?"rtl":"ltr";e.target.setAttribute("dir",n)},placeholder:"\u0627\u0643\u062a\u0628 \u0631\u0633\u0627\u0644\u0629 \u0625\u0646 \u0623\u0631\u062f\u062a"})]}),x&&(0,l.jsx)("div",{className:"error-msg",children:x}),(0,l.jsxs)("div",{className:"send-dialog-actions",children:[(0,l.jsx)("button",{className:"cancel-button",onClick:()=>I(!1),disabled:S,children:"\u0625\u0644\u063a\u0627\u0621"}),(0,l.jsx)("button",{className:"send-button",onClick:async()=>{if(S)return;const e=Number(_);if(!f&&!c)return void k("\u064a\u0631\u062c\u0649 \u0627\u062e\u062a\u064a\u0627\u0631 \u0634\u062e\u0635 \u0630\u0627\u062a \u0635\u0650\u0644\u0629 \u0644\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u062a \u0625\u0644\u064a\u0647");if(!Number.isSafeInteger(e)||e<=0)return void k("\u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u062f\u062e\u0627\u0644 \u0645\u0628\u0644\u063a \u0635\u062d\u064a\u062d \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631");k("");const t=c?{id:c}:f;C(!0);try{await n(t,e,v)}catch(r){k((null===r||void 0===r?void 0:r.message)||"\u062a\u0639\u0630\u0631 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u062a. \u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.")}finally{C(!1)}},disabled:S,children:S?"\u062c\u0627\u0631\u064a \u0627\u0644\u0625\u0631\u0633\u0627\u0644...":"comment"===d?"\u0625\u0636\u0627\u0641\u0629":"\u0625\u0631\u0633\u0627\u0644"})]})]})})}},74503:function(e,t,n){e.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray}(n(84488))},74646:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<r;l++)i.push(o.charAt(s>>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<o.length;a++)i[o.charCodeAt(a)]=a}var s=o.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(n=l)}return r(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url}(n(84488))},75012:(e,t,n)=>{"use strict";n.d(t,{RK:()=>ee,Os:()=>te,Ay:()=>ne});var r=n(22555),o=n(65043),i=n(97950),a=n(65982),s=n(10624),l=n(26390),c=n(75439),u=n(40117),d=n(47174),p=n(30590),h=(n(10385),n(34677)),f=n(65871),m=n(81518),_=n(91118),g=n(64725),v=n(35896),y=n(43457),b=n(70534),w=n(52222),x=n(71200),
2k=n(13005),S=n(89927),C=n(59773),A=n(36222),E=n(56200),j=n(40614),T=n(38326),P=n(9463),N=n(70929),I=n(70579);function R(e){var t,n,r;let{newspaper:a,onClose:s,theme:l}=e;const[c,u]=(0,o.useState)(0),d=(null===a||void 0===a||null===(t=a.pages)||void 0===t?void 0:t.length)||0,[p,h]=(0,o.useState)(null),f=(0,o.useRef)(null),m=(0,o.useRef)(null),_=(0,o.useCallback)((()=>{u((e=>Math.min(e+1,d-1)))}),[d]),g=(0,o.useCallback)((()=>{u((e=>Math.max(e-1,0)))}),[]);(0,o.useEffect)((()=>{const e=e=>{"ArrowLeft"===e.key&&_(),"ArrowRight"===e.key&&g(),"Escape"===e.key&&(null===s||void 0===s||s())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[_,g,s]);const y=(0,o.useRef)(null);if((0,o.useEffect)((()=>{y.current=(0,S.GR)("newspaper-viewer");const e=()=>{(0,S.G0)()||(0,S.Vz)()===y.current&&((0,S.Xi)(),null===s||void 0===s||s(),setTimeout((()=>(0,S.Ps)()),0))};return window.addEventListener("popstate",e),()=>{(0,S.tu)(y.current),window.removeEventListener("popstate",e)}}),[s]),null===a||void 0===a||null===(n=a.pages)||void 0===n||!n.length)return null;const b=a.pages[c],w=a.title||a.newspaperTitle||b.pageTitle||"\u0627\u0644\u062c\u0631\u064a\u062f\u0629";return(0,i.createPortal)((0,I.jsxs)("div",{className:"nv-overlay ".concat("dark"===l?"nv-overlay-dark":""),onTouchStart:e=>{f.current=e.touches[0].clientX,m.current=e.touches[0].clientY},onTouchEnd:e=>{if(null===f.current)return;const t=e.changedTouches[0].clientX-f.current,n=Math.abs(e.changedTouches[0].clientY-m.current);Math.abs(t)>50&&n<80&&(t<0?_():g()),f.current=null},dir:"rtl",style:{zIndex:(0,S.v7)(1e3)},children:[(0,I.jsx)("button",{className:"nv-close",onClick:s,"aria-label":"\u0625\u063a\u0644\u0627\u0642",children:(0,I.jsx)(j.A,{size:18})}),(0,I.jsx)("div",{className:"nv-scroll-area",children:(0,I.jsxs)("div",{className:"nv-page",children:[(0,I.jsxs)("div",{className:"nv-newspaper-head",children:[(0,I.jsx)("img",{src:"/assets/icons/app_logo_newspaper.png",alt:"logo",className:"nv-head-logo"}),(0,I.jsxs)("div",{className:"nv-head-center",children:[(0,I.jsxs)("div",{className:"nv-page-title",children:[w,!!a.verified&&(0,I.jsx)("img",{src:"/assets/images/global/verified.png",alt:"verified",style:{width:"16px",height:"16px",marginLeft:"6px",verticalAlign:"middle"}})]}),(0,I.jsxs)("div",{className:"nv-page-num",children:["PAGE-",c+1]})]}),(0,I.jsx)("img",{src:"/assets/icons/app_logo_newspaper.png",alt:"logo",className:"nv-head-logo"})]}),(0,I.jsx)("div",{className:"nv-page-divider"}),null===(r=b.articles)||void 0===r?void 0:r.map((e=>{var t,n;return(0,I.jsxs)("div",{className:"nv-article",children:[e.subtitle&&(0,I.jsx)("div",{className:"nv-subtitle nv-subtitle-".concat(e.subtitleColor||"blue"),children:e.subt
2itle}),(0,I.jsxs)("div",{className:"nv-article-inner ".concat(null!==(t=e.images)&&void 0!==t&&t[0]?"":"nv-article-inner--no-image"),children:[(null===(n=e.images)||void 0===n?void 0:n[0])&&(0,I.jsx)("div",{className:"nv-images",children:(0,I.jsxs)("div",{className:"nv-img-block",style:{cursor:"pointer"},onClick:t=>{const n=t.currentTarget.getBoundingClientRect();h({url:e.images[0].dataUrl||e.images[0].url,sourceRect:n})},children:[(0,I.jsx)("img",{src:e.images[0].dataUrl||e.images[0].url,alt:e.images[0].caption||""}),e.images[0].caption&&(0,I.jsx)("div",{className:"nv-img-caption",children:e.images[0].caption})]})}),e.body&&(0,I.jsx)("p",{className:"nv-body",children:e.body})]})]},e.id)})),d>1&&(0,I.jsxs)("div",{className:"nv-inline-pagination",children:[(0,I.jsxs)("span",{children:[c+1," / ",d]}),(0,I.jsx)("div",{className:"nv-dots",children:a.pages.map(((e,t)=>(0,I.jsx)("button",{className:"nv-dot ".concat(t===c?"nv-dot-active":""),onClick:()=>u(t)},t)))})]})]},c)}),c<d-1&&(0,I.jsx)("button",{className:"nv-nav nv-nav-next",onClick:_,"aria-label":"\u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629",children:(0,I.jsx)(T.A,{size:24})}),c>0&&(0,I.jsx)("button",{className:"nv-nav nv-nav-prev",onClick:g,"aria-label":"\u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629",children:(0,I.jsx)(P.A,{size:24})}),p&&(0,I.jsx)(v.A,{imageUrl:p.url,sourceRect:p.sourceRect,onClose:()=>h(null)})]}),document.body)}function O(e){var t,n;let{newspaper:r,onOpen:o}=e;if(null===r||void 0===r||null===(t=r.pages)||void 0===t||!t.length)return null;const i=r.pages[0];return(0,I.jsxs)("div",{className:"nfp-root",dir:"rtl",children:[(0,I.jsxs)("div",{className:"nfp-badge",children:[(0,I.jsx)(N.A,{size:13}),(0,I.jsx)("span",{children:"\u062c\u0631\u064a\u062f\u0629"})]}),(0,I.jsxs)("div",{className:"nfp-preview",onClick:o,role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&(null===o||void 0===o?void 0:o()),children:[(0,I.jsxs)("div",{className:"nfp-page-title",children:[r.title||i.pageTitle,!!r.verified&&(0,I.jsx)("img",{src:"/assets/images/global/verified.png",alt:"verified",style:{width:"16px",height:"16px",marginLeft:"6px",verticalAlign:"middle"}})]}),(0,I.jsx)("div",{className:"nfp-divider"}),null===(n=i.articles)||void 0===n?void 0:n.slice(0,3).map((e=>{var t;return(0,I.jsxs)("div",{className:"nfp-article",children:[e.subtitle&&(0,I.jsx)("div",{className:"nfp-subtitle nfp-subtitle-".concat(e.subtitleColor||"blue"),children:e.subt
2itle}),(0,I.jsxs)("div",{className:"nfp-article-row",children:[(null===(t=e.images)||void 0===t?void 0:t[0])&&(0,I.jsx)("div",{className:"nfp-img-thumb",children:(0,I.jsx)("img",{src:e.images[0].dataUrl||e.images[0].url,alt:""})}),e.body&&(0,I.jsxs)("p",{className:"nfp-body-preview",children:[e.body.slice(0,140),e.body.length>140?"\u2026":""]})]})]},e.id)})),r.pages.length>1&&(0,I.jsxs)("div",{className:"nfp-more-pages",children:[r.pages.length," \u0635\u0641\u062d\u0627\u062a \u2014 \u0627\u0636\u063a\u0637 \u0644\u0644\u0642\u0631\u0627\u0621\u0629"]})]})]})}n(9700);var D=n(65505),M=n(77784);const L=(0,M.A)("map-pin-check",[["path",{d:"M19.43 12.935c.357-.967.57-1.955.57-2.935a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32.197 32.197 0 0 0 .813-.728",key:"1dq61d"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"m16 18 2 2 4-4",key:"1mkfmb"}]]),F=(0,M.A)("map-pin-pen",[["path",{d:"M17.97 9.304A8 8 0 0 0 2 10c0 4.69 4.887 9.562 7.022 11.468",key:"1fahp3"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"10",r:"3",key:"1ns7v1"}]]);var z=n(75686),B=n(64830),q=n(63961),U=n(66006),H=n(92730),W=n(63451),V=n(86490),K=n(62849),G=n(34352);const Y=e=>String(null!==e&&void 0!==e?e:"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),Q=e=>{if(!e)return"";const[t,n,r]=String(e).slice(0,10).split("-");return t&&n&&r?"".concat(r,"-").concat(n,"-").concat(t):String(e)},X=(e,t)=>{const n=(null===t||void 0===t?void 0:t[e])||null,r=(null===n||void 0===n?void 0:n.title)||"\u0645\u0646\u0634\u0648\u0631 \u0645\u0631\u062a\u0628\u0637",o=(e=>{if("undefined"!==typeof document){const t=document.createElement("div");return t.innerHTML=String(e||""),(t.textContent||"").replace(/\s+/g," ").trim()}return String(e||"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()})((null===n||void 0===n?void 0:n.content)||"\u0627\u0636\u063a\u0637 \u0644\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0643\u0627\u0645\u0644\u0627\u064b").slice(0,115),i=(e=>{const t=(null===e||void 0===e?void 0:e.coverImage)||(Array.isArray(null===e||void 0===e?void 0:e.images)?e.images.find(Boolean):null);if(t)return t;const n=String((null===e||void 0===e?void 0:e.content)||"").match(/<img[^>]+src=["']([^"']+)["']/i);return(null===n||void 0===n?void 0:n[1])||""})(n);return'<span class="embedded-post-card" data-post-id="'.concat(Y(e),'" role="button" tabindex="0" dir="rtl">').concat(i?'<img src="'.concat(Y(i),'" alt="" />'):'<span class="embedded-post-card__placeholder">\ud83d\udcdd</span>','<span class="embedded-post-card__copy"><strong>').concat(Y(r),"</strong><span>").concat(Y(o||"\u0627\u0636\u063a\u0637 \u0644\u0639\u0631\u0636 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0643\u0627\u0645\u0644\u0627\u064b"),"</span></span></span>")},$=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=String(e||"");if(!o.includes("$"))return o;let i=o.replace(/\$\u0645\u0646\u0634\u0648\u0631\s*(?::\s*([A-Za-z0-9_-]+)|\[([A-Za-z0-9_-]+)\])/g,((e,t,r)=>X(t||r,n))),a=0;return i=i.replace(/\$\u0641\u0627\u0626\u0632\s*(?::\s*([A-Za-z0-9_-]+)|\[([A-Za-z0-9_-]+)\])/g,((e,t,n)=>(a+=1,((e,t,n)=>{const r=(null===n||void 0===n?void 0:n[e])||null,o=(null===r||void 0===r?void 0:r.name)||"\u0641\u0627\u0626\u0632",i=(null===r||void 0===r?void 0:r.tag)||"",a=null!==r&&void 0!==r&&r.sensitive_img?
2"/assets/images/global/user_sensitive_img_v2.jpg":(null===r||void 0===r?void 0:r.img)
2||"/assets/images/chat/user_profile.png",s=(null===r||void 0===r?void 0:r.frame_url)||"";return'<span class="embedded-winner-card embedded-winner-card--rank-'.concat(Math.min(t,4),'" data-user-id="').concat(Y(e),'" role="button" tabindex="0" dir="rtl"><span class="embedded-winner-card__rank">').concat((e=>"#".concat(e))(t),'</span><span class="embedded-winner-card__avatar').concat(s?" has-frame":"",'">').concat(s?'<img class="embedded-winner-card__frame" src="'.concat(Y(s),'" alt="" />'):"",'<img class="embedded-winner-card__image" src="').concat(Y(a),'" alt="" /></span><span class="embedded-winner-card__copy"><strong>').concat(Y(o),"</strong>").concat(i?'<span dir="ltr">'.concat(Y(i),"</span>"):"","</span></span>")})(t||n,a,r)))),!0===(null===t||void 0===t?void 0:t.event)&&(i=i.replace(/\$\u0627\u0644\u062a\u0627\u0631\u064a\u062e/g,(()=>(e=>{if((null===e||void 0===e||!e.startDate)&&(null===e||void 0===e||!e.endDate))return"";const t=Q(e.startDate),n=Q(e.endDate),r=t&&n?"".concat(t," \u2014 ").concat(n):t||n;return'<span class="event-inline-meta event-inline-meta--dates" dir="rtl"><span class="event-inline-meta__title">\ud83d\udcc5 \u0645\u0648\u0639\u062f \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629</span><span class="event-inline-meta__date-value" dir="ltr">'.concat(Y(r),"</span></span>")})(t))).replace(/\$\u0627\u0644\u0642\u0648\u0627\u0646\u064a\u0646/g,(()=>(e=>{const t=(0,G.ID)(e);if(!t.length)return"";const n=t.map(((e,t)=>'<span class="event-inline-meta__row"><b>'.concat(t+1,"</b><span>").concat(Y(e),"</span></span>"))).join("");return'<span class="event-inline-meta event-inline-meta--rules" dir="rtl"><span class="event-inline-meta__title">\ud83d\udcdc \u0627\u0644\u0642\u0648\u0627\u0646\u064a\u0646 \u0627\u0644\u0631\u0633\u0645\u064a\u0629</span><span class="event-inline-meta__list">'.concat(n,"</span></span>")})(t))).replace(/\$(?:\u0627\u0644\u062c\u0648\u0627\u0626\u0632|\u0627\u0644\u062c\u0627\u0626\u0632\u0629)/g,(()=>(e=>{if(!(0,G.Qf)(e))return"";if(e.allWinners)return'<span class="event-inline-meta event-inline-meta--prizes" dir="rtl"><span class="event-inline-meta__title">\u2728 \u0627\u0644\u062c\u0648\u0627\u0626\u0632</span><span class="event-inline-meta__winner"><strong>\u062c\u0645\u064a\u0639 \u0627\u0644\u0645\u0634\u0627\u0631\u0643\u064a\u0646 \u0641\u0627\u0626\u0632\u0648\u0646</strong><b><img src="/assets/images/global/coin.png" alt="" />'.concat(Number(e.coinsForAll||0).toLocaleString("ar"),"</b></span></span>");const t=e.prizes.map((e=>{return'<span class="event-inline-meta__prize"><span>'.concat((t=Number(e.place),1===t?"\ud83e\udd47":2===t?"\ud83e\udd48":3===t?"\ud83e\udd49":"\ud83c\udf96\ufe0f"),"</span><strong>\u0627\u0644\u0645\u0631\u0643\u0632 ").concat(Y(e.place),'</strong><b><img src="/assets/images/global/coin.png" alt="" />').concat(Number(e.coins||0).toLocaleString("ar"),"</b></span>");var t})).join("");return'<span class="event-inline-meta event-inline-meta--prizes" dir="rtl"><span class="event-inline-meta__title">\u2728 \u0627\u0644\u062c\u0648\u0627\u0626\u0632</span><span class="event-inline-meta__prize-grid">'.concat(t,"</span></span>")})(t)))),i};n(67586),n(58527);const J=o.lazy((()=>Promise.resolve().then(n.bind(n,43946)))),Z=e=>["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0634\u0631\u0641 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649"].includes(e),ee=e=>{var t,n;let{post:i,isFullView:C=!1,style:j={},listId:T,listOwnerId:P,onHashtagClick:N,onNavigateAway:M,canManagePinnedOrder:G=!1,isPinnedOrderMode:Y=!1,onTogglePinnedOrder:Q}=e;const{userData:X}=(0,a.Jd)(),{t:J,resolvedDirection:ee}=(0,s.o)(),{currentModal:ne,setCurrentModal:re}=o.useContext(y.V),[oe,ie]=(0,o.useState)(i),[ae,se]=(0,o.useState)({name:"",tag:"",img:"",id:"",subscribed:!1,frame_url:"",frame_border_radius:"",sensitive_img:!1,role:null}),[le,ce]=(0,o.useState)(null),[ue,de]=(0,o.useState)(null),[pe,he]=(0,o.useState)({}),[fe,me]=(0,o.useState)(!1),[_e,ge]=(0,o.useState)(J("postcard_reaction_like","\u0623\u0639\u062c\u0628\u0646\u064a")),[ve,ye]=(0,o.useState)({like:"https://assets.amposter.com/reactions/reaction_pack1/like.png",love:"https://assets.amposter.com/reactions/reaction_pack1/love.png",care:"https://assets.amposter.com/reactions/reaction_pack1/care.png",wow:"https://assets.amposter.com/reactions/reaction_pack1/wow.png",haha:"https://assets.amposter.com/reactions/reaction_pack1/haha.png",sad:"https://assets.amposter.com/reactions/reaction_pack1/sad.png",angry:"https://assets.amposter.com/reactions/reaction_pack1/angry.png"}),[be,we]=((0,o.useRef)(),(0,o.useState)(null)),[xe,ke]=(0,o.useState)(null),[Se,Ce]=(0,o.useState)(null),[Ae,Ee]=(0,o.useState)(!1),[je,Te]=(0,o.useState)(0),[Pe,Ne]=(0,o.useState)(0),[Ie,Re]=(0,o.useState)({isOpen:!1,title:"",message:"",action:null,isDangerous:!1}),[Oe,De]=(0,o.useState)({isOpen:!1,title:"",message:""}),[Me,Le]=(0,o.useState)(!1),[Fe,ze]=(0,o.useState)(!1),[Be,qe]=(0,o.useState)({post_id:null,comment_id:null}),[Ue,He]=(0,o.useState)(!1),[We,Ve]=(0,o.useState)(i),[Ke,Ge]=(0,o.useState)(!1),[Ye,Qe]=(0,o.useState)(null),[Xe,$e]=(0,o.useState)(!1),[Je,Ze]=(0,o.useState)(!1),[et,tt]=(0,o.useState)(null),[nt,rt]=(0,o.useState)(null),[ot,it]=(0,o.useState)(null),[at,st]=(0,o.useState)(!1),[lt,ct]=(0,o.useState)(!1),[ut,dt]=(0,o.useState)({}),[pt,ht]=(0,o.useState)({});(0,o.useEffect)((()=>{ie(i)}),[i]);
2const ft=(0,c.Zp)(),mt=(0,o.useRef)(),_t=(0,o.useRef)(null),gt=(0,o.useRef)(null),{theme:vt}=(0,k.DP)(),yt=Boolean(null===oe||void 0===oe||null===(t=oe.newspaper)||void 0===t||null===(n=t.pages)||void 0===n?void 0:n.length),bt=(0,o.useMemo)((()=>(e=>{const t=new Set,n=/\$\u0645\u0646\u0634\u0648\u0631\s*(?::\s*([A-Za-z0-9_-]+)|\[([A-Za-z0-9_-]+)\])/g;let r;for(;null!==(r=n.exec(String(e||"")));)t.add(r[1]||r[2]);return[...t]})((null===oe||void 0===oe?void 0:oe.content)||"")),[null===oe||void 0===oe?void 0:oe.content]),wt=(0,o.useMemo)((()=>(e=>{const t=new Set,n=/\$\u0641\u0627\u0626\u0632\s*(?::\s*([A-Za-z0-9_-]+)|\[([A-Za-z0-9_-]+)\])/g;let r;for(;null!==(r=n.exec(String(e||"")));)t.add(r[1]||r[2]);return[...t]})((null===oe||void 0===oe?void 0:oe.content)||"")),[null===oe||void 0===oe?void 0:oe.content]);(0,o.useEffect)((()=>{let e=!1;if(bt.length)return Promise.all(bt.map((async e=>{try{const t=await d.A.getPost(e);return t&&!t.deleted?[e,t]:[e,null]}catch(t){return console.warn("Failed to load embedded post preview:",e,t),[e,null]}}))).then((t=>{e||dt(Object.fromEntries(t))})),()=>{e=!0};dt({})}),[bt]),(0,o.useEffect)((()=>{let e=!1;if(wt.length)return Promise.all(wt.map((async e=>{try{return[e,await d.A.getProfile(e)||null]}catch(t){return console.warn("Failed to load embedded winner profile:",e,t),[e,null]}}))).then((t=>{e||ht(Object.fromEntries(t))})),()=>{e=!0};ht({})}),[wt]),(0,o.useEffect)((()=>{if(C||yt)return void ct(!1);const e=document.createElement("div");e.innerHTML=$(oe.content||"",oe);const t=(e.textContent||"").replace(/\u00a0/g," ").replace(/\s+/g," ").trim();ct(t.length>160)}),[C,yt,oe.content]);let xt="",kt="",St="";const Ct=o.useCallback((e=>{if(e&&e.stopPropagation(),!C)return"video"===oe.type?(Qe(oe.id),void Ge(!0)):void window.requestAnimationFrame((()=>{Ve(oe),He(!0)}))}),[C,oe]);Object.keys(pe);(0,o.useEffect)((()=>{if(null===oe||void 0===oe||!oe.createdBy)return;return(0,H._A)(oe.createdBy,(e=>{ye(e)}))}),[null===oe||void 0===oe?void 0:oe.createdBy]),(0,o.useEffect)((()=>{const e=e=>{var t;const n=null===(t=e.detail)||void 0===t?void 0:t.postId;n===oe.id&&(console.log("\ud83d\udcdd Updating post ".concat(n," in PostCard")),d.A.getPost(n).then((e=>{e?ie(e):u.firebase.database().ref("posts/".concat(n)).once("value").then((e=>{if(e.exists()){const t=(0,r.A)({id:n},e.val());ie(t)}})).catch((e=>{console.error("\u274c \u062e\u0637\u0623 \u0641\u064a \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0641\u064a PostCard:",e)}))})).catch((e=>{console.error("\u274c Error reading post from cache:",e)})))};return window.addEventListener("postUpdated",e),()=>window.removeEventListener("postUpdated",e)}),[oe.id]),(0,o.useEffect)((()=>{const e=e=>{const{postId:t,userId:n,prevReaction:o,nextReaction:i}=e.detail||{};if(t!==oe.id)return;he((e=>{const t=(0,r.A)({},e||{});if(o){const e=Math.max(0,(t[o]||0)-1);e>0?t[o]=e:delete t[o]}return i&&(t[i]=(t[i]||0)+1),t}));const a=null===X||void 0===X?void 0:X.id;a&&n===a&&(de(i||null),i?At(i):ge(J("postcard_reaction_like","\u0623\u0639\u062c\u0628\u0646\u064a")))};return window.addEventListener("postReactionOptimisticUpdate",e),()=>window.removeEventListener("postReactionOptimisticUpdate",e)}),[oe.id,null===X||void 0===X?void 0:X.id]),(0,o.useEffect)((()=>{if(!Ke){if(_t.current){_t.current=null;try{window.history.back()}catch(n){}}return}const e="".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,9));_t.current=e;try{const t={__kunaiu_modal:!0,uid:e,type:"video"};window.history.pushState(t,"")}catch(n){console.warn("Failed to push history state:",n)}const t=t=>{var n,r,o;const i=!0===(null===(n=t.state)||void 0===n?void 0:n.__kunaiu_modal)&&(null===(r=t.state)||void 0===r?void 0:r.uid)===e&&"video"===(null===(o=t.state)||void 0===o?void 0:o.type);_t.current!==e||i||(_t.current=null,Ge(!1))};return window.addEventListener("popstate",t),()=>{window.removeEventListener("popstate",t)}}),[Ke]),(0,o.useEffect)((()=>{const e=e=>{const t=e.target.closest(".embedded-winner-card[data-user-id]");if(t)return e.preventDefault(),e.stopPropagation(),void it(t.dataset.userId);const n=e.target.closest(".embedded-post-card[data-post-id]");if(n){e.preventDefault(),e.stopPropagation();const t=n.dataset.postId,r=ut[t];return void(r?Promise.resolve(r):d.A.getPost(t,!0)).then((e=>{e&&!e.deleted&&(Ve(e),He(!0))})).catch((e=>console.error("Failed to open embedded post:",e)))}const o=e.target.closest(".post-content a[href]");if(o){let t;try{t=new URL(o.href,window.location.origin)}catch(p){return void e.stopPropagation()}const n=t.origin===window.location.origin&&t.pathname.match(/^\/post\/([^/?#]+)\/?$/i),i=(0,K.m)(o.getAttribute("href"))||(n?decode
2URIComponent(n[1]):null);return i?(e.preventDefault(),e.stopPropagation(),i===String(oe.id)?void(C||(Ve(oe),He(!0))):void d.A.getPost(i).then((e=>e||u.firebase.database().ref("posts/".concat(i)).once("value").then((e=>e.exists()?(0,r.A)({id:i},e.val()):null)))).then((e=>{e&&(Ve(e),He(!0))})).catch((e=>console.error("Failed to open linked post:",e)))):void e.stopPropagation()}const i=e.target.closest(".mention-mark");if(i&&i.dataset.id)return e.stopPropagation(),void it(i.dataset.id);const a=e.target.closest(".hashtag-mark");if(a&&a.dataset.hashtag){e.stopPropagation();const t=a.dataset.hashtag;return void("function"===typeof N?N(t):ft("/hashtag/".concat(encodeURIComponent(t))))}const s=e.target.closest(".character-link-mark");if(s&&s.dataset.category&&s.dataset.id){e.stopPropagation();const t=s.dataset.category,n=s.dataset.id;return void ft("/characters/".concat(t,"/").concat(n))}const l=e.target.closest(".surah-link-mark");if(l&&l.dataset.number){e.stopPropagation();const t=l.dataset.number;return void ft("/quran?surah=".concat(t))}const c=e.target.closest(".post-content img");if(c&&c.src){e.stopPropagation();const t=c.getBoundingClientRect();return tt(t),rt(c.src),void $e(!0)}},t=mt.current;if(t)return t.addEventListener("click",e),()=>t.removeEventListener("click",e)}),[C,ut,ft,N,oe]),(0,o.useEffect)((()=>{let e=!0;const t=oe.comments?Object.keys(oe.comments).length:0;Te(t);const n=oe.coins||0;Ne(n),(async()=>{const t=oe.createdBy;if(t)try{const n=await d.A.getProfile(t);if(!e)return;if(n){const r=await d.A.getRole(t);if(!e)return;let o=n.subscribed||!1,i=n.frame_url||"",a=n.frame_border_radius||"";n.frame_expire&&n.frame_expire<Date.now()&&(o=!1,i="",a="");const s={name:n.name||J("postcard_unknown_user","\u0645\u0633\u062a\u062e\u062f\u0645 \u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"),tag:n.tag||"unknown",img:n.img||"/assets/images/global/user_v2.jpg",id:t||"unknown",subscribed:o,frame_url:i,frame_border_radius:a,sensitive_img:n.sensitive_img||!1,role:r,verified:!!n.verified};if(se(s),oe.team){const t=await d.A.getTeam(oe.team);if(!e)return;t&&ce({id:oe.team,name:t.name||"",flag:t.flag||"",level:t.level||""})}}else{if(console.warn("\u26a0\ufe0f PostCard: No data returned from getProfile for",t),!e)return;se({name:J("postcard_unknown_user","\u0645\u0633\u062a\u062e\u062f\u0645 \u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"),tag:"unknown",img:"/assets/images/global/user_v2.jpg",id:t||"unknown",subscribed:!1,frame_url:"",sensitive_img:!1,role:null,verified:!1})}}catch(n){if(console.error("\u274c PostCard fetchUserData error:",n),!e)return;se({name:J("postcard_unknown_user","\u0645\u0633\u062a\u062e\u062f\u0645 \u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"),tag:"unknown",img:"/assets/images/global/user_v2.jpg",id:oe.createdBy||"unknown",subscribed:!1,frame_url:"",sensitive_img:!1,role:null})}else console.warn("\u26a0\ufe0f PostCard: No userId provided")})(),(async()=>{if(X&&X.id)try{const t=await u.firebase.database().ref("posts/".concat(null===oe||void 0===oe?void 0:oe.id,"/reactions")).once("value");if(!e)return;const n=t.val()||{},r={};Object.values(n).forEach((e=>{r[e]=(r[e]||0)+1}));const o=n[null===X||void 0===X?void 0:X.id]||null;he(r),de(o),At(o)}catch(t){console.error("\u274c PostCard fetchReactions error:",t)}})();return((0,p.WR)()||(null===X||void 0===X?void 0:X.id)||(null===X||void 0===X?void 0:X.uid))&&((async()=>{const e=(0,p.WR)();if(e)try{const t="kunaiu_saved_posts_".concat(e),n=JSON.parse(localStorage.getItem(t)||"{}");if(n&&Object.prototype.hasOwnProperty.call(n,oe.id))return void Ee(!0);const r=u.firebase.database().ref("kunaiu_bank/".concat(e,"/saved_posts/").concat(oe.id)),o=await r.once("value");Ee(o.exists())}catch(t){console.error("Error checking if post is saved:",t)}})(),(async()=>{const e=(0,p.WR)()||(null===X||void 0===X?void 0:X.id)||(null===X||void 0===X?void 0:X.uid);if(e)try{const t=await d.A.getRole(e),n="object"===typeof t&&null!==t?t.role||Object.values(t)[0]:t;Ce(n||null)}catch(t){console.error("\u274c [fetchUserRole] Error fetching role:",t)}})()),()=>{e=!1}}),[oe.createdBy,null===oe||void 0===oe?void 0:oe.id,null===X||void 0===X?void 0:X.id]);const At=e=>
2{switch(e){case"like":default:ge(J("postcard_reaction_like","\u0623\u0639\u062c\u0628\u0646\u064a"));break;case"love":ge(J("postcard_reaction_love","\u0623\u062d\u0628\u0628\u062a\u0647"));break;case"care":ge(J("postcard_reaction_care","\u0623\u062f\u0639\u0645\u0647"));break;case"haha":ge(J("postcard_reaction_haha","\u0647\u0627\u0647\u0627\u0647\u0627"));break;case"wow":ge(J("postcard_reaction_wow","\u0648\u0627\u0627\u0648"));break;case"sad":ge(J("postcard_reaction_sad","\u0623\u062d\u0632\u0646\u0646\u064a"));break;case"angry":ge(J("postcard_reaction_angry","\u0623\u063a\u0636\u0628\u0646\u064a"))}},Et=()=>{X?X.name&&X.tag?(Le(!0),re("comments")):ft("/create-profile"):ft("/login")};xt=Object.entries(pe).sort(((e,t)=>t[1]-e[1])).slice(0,3),kt=xt.length,St=Object.values(pe).reduce(((e,t)=>e+t),0);const jt=e=>e.blocked?J("postcard_blocked_message","\u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u062d\u0638\u0648\u0631 - \u0645\u062e\u0627\u0644\u0641\u0629 \u0644\u0642\u0648\u0627\u0646\u064a\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642 \ud83d\udeab"):null,Tt=()=>Z(Se),Pt=async()=>{if(!X)return void ft("/login");if(!X.name||!X.tag)return void ft("/create-profile");const e="".concat(window.location.origin,"/post/").concat(oe.id);if(navigator.share)try{await navigator.share({title:ae.name,text:J("postcard_share_text","\u0634\u0627\u0647\u062f \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631"),url:e}),ke(null)}catch(t){"AbortError"!==t.name&&console.error("Error sharing:",t)}else(()=>{const e="video"===(null===oe||void 0===oe?void 0:oe.type)?"https://amposter.com/video/".concat(oe.id):"https://amposter.com/post/".concat(oe.id);navigator.clipboard.writeText(e).then((()=>{De({isOpen:!0,title:J("postcard_copied_title","\u062a\u0645 \u0627\u0644\u0646\u0633\u062e"),type:"success",message:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{children:"video"===(null===oe||void 0===oe?void 0:oe.type)?J("postcard_video_link_copied","\u062a\u0645 \u0646\u0633\u062e \u0631\u0627\u0628\u0637 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0628\u0646\u062c\u0627\u062d"):J("postcard_post_link_copied","\u062a\u0645 \u0646\u0633\u062e \u0631\u0627\u0628\u0637 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0628\u0646\u062c\u0627\u062d")}),(0,I.jsx)("div",{style:{marginTop:"8px",wordBreak:"break-all",fontFamily:"monospace",background:"rgba(0,0,0,0.04)",padding:"6px 8px",borderRadius:"6px"},children:e})]})}),ke(null)})).catch((e=>{console.error("Error copying to clipboard:",e),De({isOpen:!0,type:"error",title:J("postcard_error_title","\u062e\u0637\u0623"),message:J("postcard_copy_link_failed","\u0641\u0634\u0644 \u0646\u0633\u062e \u0627\u0644\u0631\u0627\u0628\u0637")})}))})()},Nt=()=>{fe||(async e=>{if(!X)return void ft("/login");if(!X.name||!X.tag)return void ft("/create-profile");if((0,W.OR)(X,W._c.REACTION))return void Re({isOpen:!0,title:J("postcard_banned_title","\u0645\u062d\u0638\u0648\u0631"),message:J("postcard_banned_reaction_message","\u0644\u062f\u064a\u0643 \u062d\u0638\u0631 \u0639\u0644\u0649 \u0627\u0644\u062a\u0641\u0627\u0639\u0644 \u0648\u0644\u0627 \u064a\u0645\u0643\u0646\u0643 \u0625\u0631\u0633\u0627\u0644 \u0631\u062f\u0648\u062f \u0641\u0639\u0644."),isDangerous:!1,confirmText:J("postcard_ok","\u062d\u0633\u0646\u0627\u064b"),cancelText:"",action:()=>Re((0,r.A)((0,r.A)({},Ie),{},{isOpen:!1}))});if(!1===oe.allowReactions)return void Re({isOpen:!0,title:J("postcard_reactions_closed_title","\u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0645\u063a\u0644\u0642\u0629"),message:J("postcard_reactions_closed_message","\u0635\u0627\u062d\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0642\u062f \u0623\u063a\u0644\u0642 \u0627\u0644\u062a\u0641\u0627\u0639\u0644\u0627\u062a \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631"),isDangerous:!1,confirmText:J("postcard_ok","\u062d\u0633\u0646\u0627\u064b"),cancelText:"",action:()=>Re((0,r.A)((0,r.A)({},Ie),{},{isOpen:!1}))});const t=(0,p.WR)()||(null===X||void 0===X?void 0:X.id)||(null===X||void 0===X?void 0:X.uid);if(!t)return;const n=u.firebase.database().ref("posts/".concat(null===oe||void 0===oe?void 0:oe.id,"/reactions/").concat(t));ue===e?(n.remove().catch((e=>console.error("Failed to remove post reaction:",e))),de(null),ge(J("postcard_reaction_like","\u0623\u0639\u062c\u0628\u0646\u064a")),he((t=>{const n=(0,r.A)({},t);return n[e]>1?n[e]-=1:delete n[e],n}))):((null===oe||void 0===oe?void 0:oe.createdBy)!==t&&(0,U.xd)(oe.createdBy,X,"reaction",e,null===oe||void 0===oe?void 0:oe.id,null,null),n.set(e).catch((e=>console.error("Failed to save post reaction:",e))),de(e),At(e),me(!1),he((t=>{const n=(0,r.A)({},t);return ue&&(n[ue]>1?n[ue]-=1:delete n[ue]),n[e]=(n[e]||0)+1,n})))})(ue||"like")},It=(0,p.WR)()||(null===X||void 0===X?void 0:X.id)||(null===X||void 0===X?void 0:X.uid)||(null===ae||void 0===ae?void 0:ae.id),Rt=(It&&(null===oe||void 0===oe?void 0:oe.createdBy)&&oe.createdBy,(0,o.useRef)(null)),[Ot,Dt]=(0,o.useState)({top:"0px",left:"0px"});return(0,o.useEffect)((()=>(document.body.style.overflow=xe?"hidden":"",()=>{document.body.style.overflow=""})),[xe]),(0,I.jsxs)(I.Fragment,{children:[be&&(0,I.jsx)(l.A,{path:be.path,initialType:be.type||"all",onClose:()=>we(null),navigate:ft,contentOwnerId:null===oe||void 0===oe?void 0:oe.createdBy},be.path),(0,I.jsxs)("div",{className:"post-card ".concat("dark"===vt?"theme-dark-item":"theme-light-item"),style:j,dir:ee,children:[(0,I.jsxs)("div",{className:"image_userdetails_container",children:[(0,I.jsxs)("div",{className:"post-profile-img ".concat(null!==ae&&void 0!==ae&&ae.frame_url?"subscribed has-frame":""),"data-frame-shape":null!==ae&&void 0!==ae&&ae.frame_url?"custom"
2:"circle",onClick:()=>it(ae.id),style:{cursor:"pointer"},role:"button","aria-label":"Open profile ".concat(null===ae||void 0===ae?void 0:ae.name),children:[(0,I.jsx)("div",{className:"post-profile-image-overlay",children:(null===ae||void 0===ae?void 0:ae.frame_url)&&(0,I.jsx)("img",{src:null===ae||void 0===ae?void 0:ae.frame_url,alt:J("postcard_frame_alt","Frame"),className:"avatar-frame"})}),(0,I.jsx)("div",{className:"post-profile-image-mask",style:{borderRadius:null!==ae&&void 0!==ae&&ae.frame_url?(0,V.k2)((0,V.MF)(ae)):"50%"},children:(0,I.jsx)("img",{src:ae.sensitive_img?"/assets/images/global/user_sensitive_img_v2.jpg":ae.img||"/assets/images/global/user_v2.jpg",alt:J("postcard_profile_image_alt","\u0635\u0648\u0631\u0629 \u0627\u0644\u0628\u0631\u0648\u0641\u0627\u064a\u0644"),loading:"lazy",className:"post-profile-image"})})]}),(0,I.jsxs)("div",{className:"userdetails_container",children:[(0,I.jsxs)("div",{className:"userdetails_header",children:[(0,I.jsxs)("div",{className:"name",onClick:e=>{e.stopPropagation(),it(ae.id)},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:"2px"},role:"button",children:[ae.name,!!ae.verified&&(0,I.jsx)("img",{src:"/assets/images/global/verified.png",alt:J("postcard_verified_alt","verified"),style:{width:"16px",height:"16px",marginLeft:"4px",verticalAlign:"middle"}})]}),(0,I.jsx)("span",{style:{color:"#bbb",fontSize:"12px",margin:"0 3px",lineHeight:1,userSelect:"none"},children:"\xb7"}),(0,I.jsxs)("div",{className:"post-time-options",children:[(0,I.jsxs)("span",{className:"post-time",children:[oe.pinned&&(0,I.jsx)(q.A,{size:14,style:{marginLeft:"4px",verticalAlign:"middle",color:"#1da1f2"}}),oe.edited&&(0,I.jsx)(D.A,{size:14,style:{marginLeft:"4px",verticalAlign:"middle",color:"#888"}}),(0,h.f)(oe.timestamp)]}),(0,I.jsxs)("div",{className:"post-menu-actions",style:{position:"relative"},children:[G&&(0,I.jsx)("button",{type:"button",className:"pinned-order-toggle",onClick:e=>{e.stopPropagation(),null===Q||void 0===Q||Q()},"aria-label":Y?J("postcard_finish_pinned_order","\u0625\u0646\u0647\u0627\u0621 \u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062b\u0628\u062a\u0629"):J("postcard_order_pinned_posts","\u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062b\u0628\u062a\u0629"),title:Y?J("postcard_finish_pinned_order","\u0625\u0646\u0647\u0627\u0621 \u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062b\u0628\u062a\u0629"):J("postcard_order_pinned_posts","\u062a\u0631\u062a\u064a\u0628 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u0645\u062b\u0628\u062a\u0629"),children:Y?(0,I.jsx)(L,{size:18}):(0,I.jsx)(F,{size:18})}),(0,I.jsx)(z.A,{id:"post_options",size:18,style:{cursor:"pointer"},ref:Rt,onClick:()=>{xe!==oe.id?ke(oe.id):ke(null)}}),xe===oe.id&&(0,I.jsx)(E.A,{item:oe,type:"post",currentUserId:It,userRole:Se,reportTargetType:"post",listId:T,listOwnerId:P,onAddToList:()=>st(!0),onRemoveFromList:()=>{T&&P&&(Re({isOpen:!0,title:J("postcard_remove_from_list_title","\u0625\u0632\u0627\u0644\u0629 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629"),message:J("postcard_remove_from_list_message","\u0647\u0644 \u0623\u0646\u062a \u0645\u062a\u0623\u0643\u062f \u0645\u0646 \u0631\u063a\u0628\u062a\u0643 \u0641\u064a \u0625\u0632\u0627\u0644\u0629 \u0647\u0630\u0627 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629\u
2061f"),confirmText:J("postcard_remove","\u0625\u0632\u0627\u0644\u0629"),cancelText:J("postcard_cancel","\u0625\u0644\u063a\u0627\u0621"),isDangerous:!0,action:async()=>{Re((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1})));try{const e=u.firebase.database().ref("user_posts_list/".concat(P,"/").concat(T,"/posts")),t=await e.once("value");if(t.exists()){let n=t.val();Array.isArray(n)||(n=Object.values(n));const r=n.filter((e=>String(e)!==String(oe.id)));await e.set(r),De({isOpen:!0,title:J("postcard_removed_title","\u062a\u0645\u062a \u0627\u0644\u0625\u0632\u0627\u0644\u0629"),type:"success",message:J("postcard_removed_from_list_message","\u062a\u0645\u062a \u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631 \u0645\u0646 \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0628\u0646\u062c\u0627\u062d! \u0633\u064a\u062a\u0645 \u062a\u062d\u062f\u064a\u062b \u0627\u0644\u0635\u0641\u062d\u0629.")}),setTimeout((()=>window.location.reload()),1500)}}catch(e){console.error("Error removing from list",e)}}}),ke(null))},onEdit:()=>{oe.blocked?Re({isOpen:!0,title:J("postcard_cannot_edit_title","\u0644\u0627 \u064a\u0645\u0643\u0646 \u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0645\u0646\u0634\u0648\u0631"),message:J("postcard_cannot_edit_message","\u0644\u0627 \u064a\u0645\u0643\u0646 \u062a\u0639\u062f\u064a\u0644 \u0645\u0646\u0634\u0648\u0631 \u0645\u062d\u0638\u0648\u0631 \u0645\u0646 \u0642\u0628\u0644 \u0627\u0644\u0625\u062f\u0627\u0631\u0629"),isDangerous:!1,confirmText:J("postcard_ok","\u062d\u0633\u0646\u0627\u064b"),cancelText:"",action:()=>Re((0,r.A)((0,r.A)({},Ie),{},{isOpen:!1}))}):(sessionStorage.setItem("editingPost",JSON.stringify(oe)),C&&(0,S.Vz)()?((0,S.z0)(ft,"/create?edit=".concat(oe.id)),null===M||void 0===M||M()):ft("/create?edit=".concat(oe.id)))},onClose:()=>ke(null)})]})]})]}),(0,I.jsx)("div",{className:"userdetails_sub_header",children:(0,I.jsx)("div",{className:"userhandle",onClick:e=>{e.stopPropagation(),it(ae.id)},style:{cursor:"pointer"},role:"button",children:ae.tag})})]})]}),oe.blocked&&!Tt()?(0,I.jsx)("div",{className:"post-content",style:{padding:"20px",backgroundColor:"#fee",borderRadius:"8px",border:"2px solid #e74c3c",textAlign:"center"},children:(0,I.jsx)("p",{dir:"auto",style:{color:"#e74c3c",fontWeight:"bold",margin:0},children:jt(oe)})}):(0,I.jsxs)(I.Fragment,{children:[oe.blocked&&Tt()&&(0,I.jsx)("div",{style:{padding:"10px",backgroundColor:"#fff3cd",borderRadius:"8px",border:"2px solid #ffc107",marginBottom:"10px",textAlign:"center"},children:(0,I.jsxs)("p",{dir:"auto",style:{color:"#856404",fontWeight:"bold",margin:0,fontSize:"14px"},children:["\u26a0\ufe0f ",jt(oe)," - ",J("postcard_viewing_as_moderator","\u0623\u0646\u062a \u062a\u0631\u0649 \u0647\u0630\u0627 \u0627\u0644\u0645\u062d\u062a\u0648\u0649 \u0644\u0623\u0646\u0643 \u0645\u0633\u0624\u0648\u0644")]})}),"video"===oe.type&&oe.title&&(0,I.jsx)("div",{className:"video-title",onClick:Ct,style:{cursor:"pointer",fontWeight:700,marginBottom:8},children:oe.title}),yt?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(O,{newspaper:oe.newspaper,post:oe,onOpen:()=>Ze(!0),onReact:Nt,onComment:Et,onShare:Pt,reactionCount:St,commentCount:je,userReaction:ue,reactionIcons:ve}),Je&&(0,I.jsx)(R,{newspaper:oe.newspaper,onClose:()=>Ze(!1),theme:vt,post:oe,onReact:Nt,onComment:Et,onShare:Pt,reactionCount:St,commentCount:je,userReaction:ue})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{ref:mt,className:"post-content ".concat(C?"post-content--full":"post-content--excerpt"),dir:"auto",dangerouslySetInnerHTML:{__html:oe.blocked&&!Tt()?'<p dir="auto" style="color: #e74c3c; font-weight: bold;">'.concat(jt(oe),"</p>"):(e=>{if(!e)return e;const t=document.createElement("div");t.innerHTML=e,t.querySelectorAll("span[data-mention], span.mention-mark").forEach((e=>{e.classList.add("mention-mark")})),t.querySelectorAll("span[data-hashtag], span.hashtag-mark").forEach((e=>{e.classList.add("hashtag-mark");const t=e.textContent.trim().replace(/^#/,"");t&&(e.dataset.hashtag=t)})),t.querySelectorAll("a[href]").forEach((e=>{e.classList.add("post-content-link"),e.setAttribute("rel","noopener noreferrer")}));const n=e=>{if(e.nodeType===Node.TEXT_NODE){let t=e.textContent;const n=/<(prophets|companions|historical):([^:>]+):([^>]+)>/g;t=t.replace(n,((e,t,n,r)=>'<span class="character-link-mark" data-category="'.concat(t,'" data-id="').concat(n,'" style="color: rgb(29, 161, 242); font-weight: bold; cursor: pointer; background-color: rgba(29, 161, 242, 0.1); padding: 2px 6px; border-radius: 4px;">').concat(r,"</span>")));const r=/\^(\d+):([^\s<]+)/g;
2t=t.replace(r,((e,t,n)=>'<span class="surah-link-mark" data-number="'.concat(t,'" style="color: rgb(29, 161, 242); font-weight: bold; cursor: pointer; background-color: rgba(29, 161, 242, 0.1); padding: 2px 6px; border-radius: 4px;">').concat(J("postcard_surah_label","\u0633\u0648\u0631\u0629")," ").concat(n,"</span>")));const o=/(#[\u0600-\u06FF\w]+)/g;t=t.replace(o,((e,t)=>{const n=t.substring(1);return'<span class="hashtag-mark" data-hashtag="'.concat(n,'" style="color: rgb(29, 161, 242); font-weight: 500; cursor: pointer;">').concat(t,"</span>")}));const i=/(@[\u0600-\u06FF\w]+)/g;t=t.replace(i,((e,t)=>'<span class="mention-mark" style="color: #1da1f2; font-weight: bold; cursor: pointer;">'.concat(t,"</span>")));const a=/\[([^\]]+)\]\((https?:\/\/[^\s<)]+)\)/g;t=t.replace(a,((e,t,n)=>'<a href="'.concat(n,'" style="color: #1da1f2; text-decoration: none;">').concat(t,"</a>")));const s=/(https?:\/\/[^\s<]+)/g;t=t.replace(s,((e,t)=>'<a href="'.concat(t,'" style="color: #1da1f2; text-decoration: none;">').concat(t,"</a>")));const l=document.createElement("span");l.innerHTML=t,e.parentNode.replaceChild(l,e)}else e.nodeType!==Node.ELEMENT_NODE||["A","CODE","PRE"].includes(e.tagName)||e.matches(".mention-mark, .hashtag-mark, .character-link-mark, .surah-link-mark, .embedded-winner-card")||Array.from(e.childNodes).forEach(n)};Array.from(t.childNodes).forEach(n);const r=new Map;return(Array.isArray(oe.mentions)?oe.mentions:[]).forEach((e=>{const t=String(e.username||e.tag||"").replace(/^@/,"").trim(),n=e.userId||e.id;t&&n&&r.set(t.toLocaleLowerCase(),n)})),t.querySelectorAll(".mention-mark").forEach((e=>{if(e.dataset.id)return;const t=e.textContent.trim().replace(/^@/,"").toLocaleLowerCase(),n=r.get(t);n&&(e.dataset.id=n)})),t.innerHTML})($(C?oe.content||"":(e=>{if(!e)return"";const t=document.createElement("div"),n=document.createElement("div"),r=new Set(["P","DIV","H1","H2","H3","H4","H5","H6","BLOCKQUOTE","LI","PRE"]);t.innerHTML=e;const o=e=>{if(e.nodeType!==Node.TEXT_NODE){if(e.nodeType===Node.ELEMENT_NODE&&!["SCRIPT","STYLE","IMG"].includes(e.tagName))if("BR"!==e.tagName){if("A"===e.tagName){const t=(e.textContent||"").trim(),r=e.getAttribute("href")||"";if(t&&/^(https?:\/\/|\/)/i.test(r)){const e=document.createElement("a");e.href=r,e.textContent=t,n.appendChild(e)}else t&&n.appendChild(document.createTextNode(t))}else Array.from(e.childNodes).forEach(o);r.has(e.tagName)&&n.appendChild(document.createTextNode(" "))}else n.appendChild(document.createTextNode(" "))}else n.appendChild(document.createTextNode(e.textContent||""))};Array.from(t.childNodes).forEach(o),n.querySelectorAll("*").forEach((e=>e.removeAttribute("style")));const i=document.createTreeWalker(n,NodeFilter.SHOW_TEXT);let a=i.nextNode();for(;a;)a.textContent=a.textContent.replace(/\u00a0/g," ").replace(/\s+/g," "),a=i.nextNode();let s=160;const l=[],c=document.createTreeWalker(n,NodeFilter.SHOW_TEXT);let u=c.nextNode();for(;u;)l.push(u),u=c.nextNode();return l.forEach((e=>{if(s<=0)return void(e.textContent="");if(e.textContent.length<=s)return void(s-=e.textContent.length);let t=e.textContent.slice(0,s);const n=t.lastIndexOf(" ");n>Math.floor(.65*s)&&(t=t.slice(0,n)),e.textContent=t.trimEnd(),s=0})),n.innerHTML.trim()})(oe.content||""),oe,ut,pt))},onClick:Ct,style:{cursor:C?"default":"pointer"}}),!C&&lt&&(0,I.jsxs)("button",{type:"button",className:"read-more",onClick:Ct,children:[J("postcard_read_more","\u0627\u0642\u0631\u0623 \u0627\u0644\u0645\u0632\u064a\u062f"),"\u2026"]})]})]}),oe.coverImage&&!C&&!yt&&(!oe.blocked||Tt())&&(0,I.jsxs)("div",{onClick:e=>{if("video"===oe.type)Qe(oe.id),Ge(!0);else{if(e.stopPropagation(),gt.current){const e=gt.current.getBoundingClientRect();tt(e)}rt(oe.coverImage),$e(!0)}},style:{position:"relative",cursor:"pointer"},children:[(0,I.jsx)("img",{ref:gt,className:"cover-img",src:oe.coverImage,alt:J("postcard_cover_alt","Cover"),loading:"lazy",style:{display:"block"},onError:e=>{e.target.style.display="none"}}),"video"===oe.type&&(0,I.jsx)("div",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,I.jsx)("div",{style:{background:"rgba(0,0,0,0.45)",borderRadius:"50%",padding:8},children:(0,I.jsx)(B.A,{size:44,color:"#fff"})})})]}),(0,I.jsxs)("div",{className:"post-top-bar",children:[(0,I.jsxs)("div",{className:"top-reactions",style:{display:"flex",alignItems:"center",position:"relative",curs
2or:"pointer"},onClick:()=>we({path:"posts/".concat(null===oe||void 0===oe?void 0:oe.id,"/reactions")}),children:[(0,I.jsx)("span",{className:"top-reaction-icons","aria-label":"".concat(kt," reaction types"),children:xt.map((e=>{let[t]=e;return(0,I.jsx)("img",{src:ve[t],alt:t,className:"post-reaction-icon"},t)}))}),St>0&&(0,I.jsx)("span",{className:"reaction-count",style:{position:"relative",zIndex:5},children:St}),Pe>0&&(0,I.jsxs)("div",{style:{position:"relative",marginLeft:"6px",zIndex:5,display:"flex",alignItems:"center",gap:"3px"},children:[(0,I.jsx)("span",{style:{fontSize:"10px",color:"dark"===vt?"#8fa3b8":"#ccc",userSelect:"none",lineHeight:1},children:"\u2726"}),(0,I.jsx)("img",{src:"/assets/images/global/coin.png",alt:J("postcard_coin_alt","coin"),style:{width:"20px",height:"20px"},loading:"lazy",decoding:"async"}),(0,I.jsx)("span",{style:{fontSize:"13px",color:"dark"===vt?"#e6eef6":"#555"},children:Pe})]})]}),(0,I.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px",fontSize:"14px",color:"#666",cursor:"pointer"},onClick:Et,children:[(0,I.jsx)("span",{children:J("postcard_comments","\u062a\u0639\u0644\u064a\u0642\u0627\u062a")}),(0,I.jsx)("span",{children:je})]})]}),(0,I.jsx)("hr",{className:"divider"}),(0,I.jsx)(A.A,{postId:oe.id,showMenuButton:!1})]}),(0,I.jsx)(f.A,{isOpen:Ie.isOpen,onConfirm:()=>{var e;null===(e=Ie.action)||void 0===e||e.call(Ie),Re((0,r.A)((0,r.A)({},Ie),{},{isOpen:!1}))},onCancel:()=>{var e;null===(e=Ie.cancelAction)||void 0===e||e.call(Ie),Re((0,r.A)((0,r.A)({},Ie),{},{isOpen:!1}))},title:Ie.title,message:Ie.message,confirmText:Ie.confirmText||J("postcard_yes","\u0646\u0639\u0645"),cancelText:Ie.cancelText||J("postcard_cancel","\u0625\u0644\u063a\u0627\u0621"),isDangerous:Ie.isDangerous}),(0,I.jsx)(m.A,{isOpen:Oe.isOpen,title:Oe.title,message:Oe.message,type:Oe.type,onClose:()=>De((0,r.A)((0,r.A)({},Oe),{},{isOpen:!1}))}),Me&&(0,I.jsx)(_.A,{postId:oe.id,isOpen:Me,onClose:()=>{Le(!1),re(null)},onOpenReply:function(e,t){qe({post_id:e,comment_id:t,prefillMention:!!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])}),ze(!0),re("reply")}}),Ue&&(0,I.jsx)(te,{post:We||oe,onClose:()=>He(!1)}),Ke&&(0,I.jsx)(g.default,{isOpen:Ke,onClose:()=>Ge(!1),initialPostId:Ye,onNavigate:e=>Qe(e)}),Fe&&(0,I.jsx)(b.A,{post_id:Be.post_id,comment_id:Be.comment_id,prefillMention:Be.prefillMention,onClose:()=>{ze(!1),re("comments")}}),Xe&&nt&&(0,I.jsx)(v.A,{imageUrl:nt,sourceRect:et,onClose:()=>{$e(!1),rt(null)}}),ot&&(0,I.jsx)(w.A,{userId:ot,onClose:()=>it(null)}),at&&(0,I.jsx)(x.A,{postId:oe.id,onClose:()=>st(!1)})]})},te=e=>{let{post:t,onClose:n,isFromExternal:r=!1}=e;const[l,u]=(0,o.useState)(t||null),h=o.useRef(!1),f=o.useRef(!1),m=o.useRef(null),_=(0,c.Zp)(),{theme:g}=(0,k.DP)(),{t:v,resolvedDirection:y}=(0,s.o)(),{userData:b}=(0,a.Jd)(),[w,x]=(0,o.useState)(null);(0,o.useEffect)((()=>{let e=!1;const n=null===t||void 0===t?void 0:t.id;if(u(t||null),n)return d.A.getPost(n,!0).then((t=>{!e&&t&&u(t)})).catch((e=>{console.error("Failed to refresh single post:",e)})),()=>{e=!0}}),[t]);const A=o.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(h.current)return;h.current=!0,window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"close"}}));(0,S.Vz)()===m.current&&(0,S.tu)(m.current,!e)}),[]),E=o.useCallback((()=>{A(!1),n()}),[A,n]),j=o.useCallback((e=>{!h.current&&e&&x(e)}),[]),T=o.useRef(!1),P=o.useRef(!1);(0,o.useEffect)((()=>(T.current||(window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"open"}})),m.current=(0,S.GR)("single-post"),T.current=!0),()=>{P.current?A(!1):P.current=!0})),[A]);const N=o.useRef(null);(0,o.useEffect)((()=>{N.current={onClose:n,isFromExternal:r,navigate:_,emitClose:A}}),[n,r,_,A]);const R=o.useRef(null);(0,o.useEffect)((()=>{R.current&&window.removeEventListener("popstate",R.current);const e=e=>{if((0,S.G0)())return;if((0,S.Vz)()===m.current){(0,S.Xi)(),e.preventDefault();const{onClose:t,isFromExternal:n,navigate:r,emitClose:o}=N.current;o(!0),n?r("/",{replace:!0}):t(),setTimeout((()=>(0,S.Ps)()),0)}};return R.current=e,window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e),R.current=null}}),[]);const O=(0,p.WR)()||(null===b||void 0===b?void 0:b.id)||null,D=!!l&&!(0,G.WD)(l,null===b||void 0===b?void 0:b.role,O);return(0,i.createPortal)((0,I.jsx)("div",{className:"post-modal-overlay",dir:y,onMouseDown:e=>{f.current=e.target===e.currentTarget},onClick:()=>{f.current&&E(),f.current=!1},style:{padding:0,position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(5px)",zIndex:(0,S.v7)(1e3),display:"flex",justifyContent:"center",alignItems:"center"},children:(0,I.jsxs)("div",{className:"post-modal-content",onClick:e=>e.stopPropagation(),style:{backgroundColor:"#fff",width:"100vw",height:"100vh",display:"flex",flexDirection:"column",position:"relative"},children:[(0,I.jsx)(C.A,{title:!0===(null===l||void 0===l?void 0:l.event)?"\u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629":v("postcard_post_title","\u0627\u0644\u0645\u0646\u0634\u0648\u0631"),onBack:E,className:"dark"===g?"theme-dark-item":"theme-light-item"}),(0,I.jsx)("div",{className:"single-post-container ".concat("dark"===g?"theme-dark-space":"theme-light-space"),style:{flex:1,overflowY:"auto"},children:l?D?(0,I.jsxs)("div",{style:{display:"flex",minHeight:"60vh",padding:"40px 24px",textAlign:"center",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:12},children:[(0,I.jsx)("span",{style:{fontSize:48},children:"\ud83d\udd12"}),(0,I.jsx)("h2",{style:{margin:0,fontSize:18,color:"dark"===g?"#f0f6fc":"#111827"},children:"\u0647\u0630\u0647 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629 \u063a\u064a\u0631 \u0645\u0646\u0634\u0648\u0631\u0629 \u0628\u0639\u062f"}),(0,I.jsx)("p",{style:{margin:0,maxWidth:"32ch",lineHeight:1.7,color:"dark"===g?"#8b949e":"#6b7280"},children:"\u064a\u0645\u0643\u0646 \u0644\u0645\u0646\u0634\u0626 \u0627\u0644\u0641\u0639\u0627\u0644\u064a\u0629 \u0648\u0627\u0644\u0625\u0634\u0631\u0627\u0641 \u0627\u0644\u0639\u0627\u0645 \u0641\u0642\u0637 \u0639\u0631\u0636\u0647\u0627 \u062d\u062a\u0649 \u062a\u062a\u0645 \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0642\u0648\u0627\u0639\u062f \u0623\u0648 \u0627\u0644\u062c\u0648\u0627\u0626\u0632."})]}):(0,I.jsx)(ee,{post:l,isFullView:!0,onHashtagClick:j,onNavigateAway:n}):(0,I.jsx)("div",{style:{display:"grid",placeItems:"center",minHeight:"50vh",color:"#888"},children:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644..."})}),w&&(0,I.jsx)(o.Suspense,{fallback:null,children:(0,I.jsx)(J,{hashtag:w,onClose:()=>x(null)})})]})}),document.body)},ne=o.memo(ee,((e,t)=>
2{var n,r,o,i,a,s,l,c;return(null===(n=e.post)||void 0===n?void 0:n.id)===(null===(r=t.post)||void 0===r?void 0:r.id)&&(null===(o=e.post)||void 0===o?void 0:o.edited)===(null===(i=t.post)||void 0===i?void 0:i.edited)&&(null===(a=e.post)||void 0===a?void 0:a.commentsCount)===(null===(s=t.post)||void 0===s?void 0:s.commentsCount)&&(null===(l=e.post)||void 0===l?void 0:l.pinned)===(null===(c=t.post)||void 0===c?void 0:c.pinned)&&e.isFullView===t.isFullView&&e.onNavigateAway===t.onNavigateAway}))},75088:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},75439:(e,t,n)=>{"use strict";n.d(t,{B6:()=>D,BV:()=>Ie,C5:()=>Te,Kd:()=>pt,Zp:()=>de,g:()=>pe,k2:()=>mt,ok:()=>yt,qh:()=>Pe,zy:()=>le});var r=n(53986),o=n(22555),i=n(65043);const a=["sri"],s=["page"],l=["page","matches"],c=["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],u=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],d=["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];var p="popstate";function h(){return b((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return g("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:v(t)}),null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function f(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function m(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function _(e,t){return{usr:e.state,key:e.key,idx:t}}function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return(0,o.A)((0,o.A)({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?y(t):t),{},{state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)})}function v(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function y(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function b(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,l="POP",c=null,u=d();function d(){return(s.state||{idx:null}).idx}function h(){l="POP";let e=d(),t=null==e?null:e-u;u=e,c&&c({action:l,location:m.location,delta:t})}function f(e){return w(e)}null==u&&(u=0,s.replaceState((0,o.A)((0,o.A)({},s.state),{},{idx:u}),""));let m={get action(){return l},get location(){return e(i,s)},listen(e){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(p,h),c=e,()=>{i.removeEventListener(p,h),c=null}},createHref:e=>
2t(i,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l="PUSH";let r=g(m.location,e,t);n&&n(r,e),u=d()+1;let o=_(r,u),p=m.createHref(r);try{s.pushState(o,"",p)}catch(h){if(h instanceof DOMException&&"DataCloneError"===h.name)throw h;i.location.assign(p)}a&&c&&c({action:l,location:m.location,delta:1})},replace:function(e,t){l="REPLACE";let r=g(m.location,e,t);n&&n(r,e),u=d();let o=_(r,u),i=m.createHref(r);s.replaceState(o,"",i),a&&c&&c({action:l,location:m.location,delta:0})},go:e=>s.go(e)};return m}function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="http://localhost";"undefined"!==typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),f(n,"No window.location.(origin|href) available to create URL");let r="string"===typeof e?e:v(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}new WeakMap;function x(e,t){return k(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function k(e,t,n,r){let o=F(("string"===typeof t?y(t):t).pathname||"/",n);if(null==o)return null;let i=S(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let s=0;null==a&&s<i.length;++s){let e=L(o);a=O(i[s],e,r)}return a}function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=function(e,i){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=arguments.length>3?arguments[3]:void 0,l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;f(l.relativePath.startsWith(r),'Absolute route path "'.concat(l.relativePath,'" nested under path "').concat(r,'" is not valid. An absolute child route path must start with the combined path of all its parent routes.')),l.relativePath=l.relativePath.slice(r.length)}let c=H([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(f(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'.concat(c,'".')),S(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:R(c,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!==(n=e.path)&&void 0!==n&&n.includes("?"))for(let r of C(e.path))i(e,t,!0,r);else i(e,t)})),t}function C(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=C(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}var A=/^:[\w-]+$/,E=3,j=2,T=1,P=10,N=-2,I=e=>"*"===e;function R(e,t){let n=e.split("/"),r=n.length;return n.some(I)&&(r+=N),t&&(r+=j),n.filter((e=>!I(e))).reduce(((e,t)=>e+(A.test(t)?E:""===t?T:P)),r)}function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u=D({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=D({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(o,u.params),a.push({params:o,pathname:H([i,u.pathname]),pathnameBase:W(H([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=H([i,u.pathnameBase]))}return a}function D(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=M(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function M(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];m("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'.concat(e,'" will be treated as if it were "').concat(e.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(e.replace(/\*$/,"/*"),'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function L(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return m(!1,'The URL path "'.concat(e,'" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (').concat(t,").")),e}}function F(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function z(e,t,n,r){return"Cannot include a '".concat(e,"' character in a manually specified `to.").concat(t,"` field [").concat(JSON.stringify(r),"].  Please separate it out to the `to.").concat(n,'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.')}function B(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function q(e){let t=B(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function U(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?r=y(e):(r=(0,o.A)({},e),f(!r.pathname||!r.pathname.includes("?"),z("?","pathname","search",r)),f(!r.pathname||!r.pathname.includes("#"),z("#","pathname","hash",r)),f(!r.search||!r.search.includes("#"),z("#","search","hash",r)));let a,s=""===e||""===r.pathname,l=s?"/":r.pathname;if(null==l)a=n;else{let e=t.length-1;if(!i&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",{pathname:n,search:r="",hash:o=""}="string"===typeof e?y(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:V(r),hash:K(o)}}(r,a),u=l&&"/"!==l&&l.endsWith("/"),d=(s||"."===l)&&n.endsWith("/");return c.pathname.endsWith("/")||!u&&!d||(c.pathname+="/"),c}var H=e=>e.join("/").replace(/\/\/+/g,"/"),W=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",K=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function G(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var Y=["POST","PUT","PATCH","DELETE"],Q=(new Set(Y),["GET",...Y]);new Set(Q),Symbol("ResetLoaderData");var X=i.createContext(null);X.displayName="DataRouter";var $=i.createContext(null);$.displayName="DataRouterState";var J=i.createContext(!1);var Z=i.createContext({isTransitioning:!1});Z.displayName="ViewTransition";var ee=i.createContext(new Map);ee.displayName="Fetchers";var te=i.createContext(null);te.displayName="Await";var ne=i.createContext(null);ne.displayName="Navigation";var re=i.createContext(null);re.displayName="Location";var oe=i.createContext({outlet:null,matches:[],isDataRoute:!1});oe.displayName="Route";var ie=i.createContext(null);ie.displayName="RouteError";var ae=!0;function se(){return null!=i.useContext(re)}function le(){return f(se(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(re).location}var ce="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ue(e){i.useContext(ne).static||i.useLayoutEffect(e)}function de(){let{isDataRoute:e}=i.useContext(oe);return e?function(){let{router:e}=we("useNavigate"),t=ke("useNavigate"),n=i.useRef(!1);ue((()=>{n.current=!0}));let r=i.useCallback((async function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(n.current,ce),n.current&&("number"===typeof r?e.navigate(r):await e.navigate(r,(0,o.A)({fromRouteId:t},i)))}),[e,t]);return r}():function(){f(se(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(X),{basename:t,navigator:n}=i.useContext(ne),{matches:r}=i.useContext(oe),{pathname:o}=le(),a=JSON.stringify(q(r)),s=i.useRef(!1);ue((()=>{s.current=!0}));let l=i.useCallback((function(r){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(m(s.current,ce),!s.current)return;if("number"===typeof r)return void n.go(r);let l=U(r,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:H([t,l.pathname])),(i.replace?n.replace:n.push)(l,i.state,i)}),[t,n,a,o,e]);return l}()}i.createContext(null);function pe(){let{matches:e}=i.useContext(oe),t=e[e.length-1];return t?t.params:{}}function he(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{matches:n}=i.useContext(oe),{pathname:r}=le(),o=JSON.stringify(q(n));return i.useMemo((()=>U(e,JSON.parse(o),r,"path"===t)),[e,o,r,t])}function fe(e,t,n,r,a){f(se(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=i.useContext(ne),{matches:l}=i.useContext(oe),c=l[l.length-1],u=c?c.params:{},d=c?c.pathname:"/",p=c?c.pathnameBase:"/",h=c&&c.route;if(ae){let e=h&&h.path||"";Ae(d,!h||e.endsWith("*")||e.endsWith("*?"),'You rendered descendant <Routes> (or called `useRoutes()`) at "'.concat(d,'" (under <Route path="').concat(e,'">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won\'t match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="').concat(e,'"> to <Route path="').concat("/"===e?"*":"".concat(e,"/*"),'">.'))}let _,g=le();if(t){var v;let e="string"===typeof t?y(t):t;f("/"===p||(null===(v=e.pathname)||void 0===v?void 0:v.startsWith(p)),'When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "'.concat(p,'" but pathname "').concat(e.pathname,'" was given in the `location` prop.')),_=e}else _=g;let b=_.pathname||"/",w=b;if("/"!==p){let e=p.replace(/^\//,"").split("/");w="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let k=x(e,{pathname:w});ae&&(m(h||null!=k,'No routes matched location "'.concat(_.pathname).concat(_.search).concat(_.hash,'" ')),m(null==k||void 0!==k[k.length-1].route.element||void 0!==k[k.length-1].route.Component||void 0!==k[k.length-1].route.lazy,'Matched leaf route at location "'.concat(_.pathname).concat(_.search).concat(_.hash,'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')));let S=ye(k&&k.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:H([p,s.encodeLocation?s.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:H([p,s.encodeLocation?s.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),l,n,r,a);return t&&S?i.createElement(re.Provider,{value:{location:(0,o.A)({pathname:"/",search:"",hash:"",state:null,key:"default"},_),navigationType:"POP"}},S):S}function me(){let e=Se(),t=G(e)?"".concat(e.status," ").concat(e.statusText):e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return ae&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=i.createElement(i.Fragment,null,i.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route."))),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application 
2Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:o},n):null,s)}var _e=i.createElement(me,null),ge=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return void 0!==this.state.error?i.createElement(oe.Provider,{value:this.props.routeContext},i.createElement(ie.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ve(e){let{routeContext:t,match:n,children:r}=e,o=i.useContext(X);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(oe.Provider,{value:t},r)}function ye(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let o=e,a=null===n||void 0===n?void 0:n.errors;if(null!=a){let e=o.findIndex((e=>e.route.id&&void 0!==(null===a||void 0===a?void 0:a[e.route.id])));f(e>=0,"Could not find a matching route for errors on route IDs: ".concat(Object.keys(a).join(","))),o=o.slice(0,Math.min(o.length,e+1))}let s=!1,l=-1;if(n)for(let i=0;i<o.length;i++){let e=o[i];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(l=i),e.route.id){let{loaderData:t,errors:r}=n,i=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!r||void 0===r[e.route.id]);if(e.route.lazy||i){s=!0,o=l>=0?o.slice(0,l+1):[o[0]];break}}}return o.reduceRight(((e,c,u)=>{let d,p=!1,h=null,f=null;n&&(d=a&&c.route.id?a[c.route.id]:void 0,h=c.route.errorElement||_e,s&&(l<0&&0===u?(Ae("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,f=null):l===u&&(p=!0,f=c.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,u+1)),_=()=>{let t;return t=d?h:p?f:c.route.Component?i.createElement(c.route.Component,null):c.route.element?c.route.element:e,i.createElement(ve,{match:c,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(c.route.ErrorBoundary||c.route.errorElement||0===u)?i.createElement(ge,{location:n.location,revalidation:n.revalidation,component:h,error:d,children:_(),routeContext:{outlet:null,matches:m,isDataRoute:!0},unstable_onError:r}):_()}),null)}function be(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function we(e){let t=i.useContext(X);return f(t,be(e)),t}function xe(e){let t=i.useContext($);return f(t,be(e)),t}function ke(e){let t=function(e){let t=i.useContext(oe);return f(t,be(e)),t}(e),n=t.matches[t.matches.length-1];return f(n.route.id,"".concat(e,' can only be used on routes that contain a unique "id"')),n.route.id}function Se(){var e;let t=i.useContext(ie),n=xe("useRouteError"),r=ke("useRouteError");return void 0!==t?t:null===(e=n.errors)||void 0===e?void 0:e[r]}var Ce={};function Ae(e,t,n){t||Ce[e]||(Ce[e]=!0,m(!1,n))}var Ee={};function je(e,t){e||Ee[t]||(Ee[t]=!0,console.warn(t))}i.memo((function(e){let{routes:t,future:n,state:r,unstable_onError:o}=e;return fe(t,void 0,r,o,n)}));function Te(e){let{to:t,replace:n,state:r,relative:o}=e;f(se(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=i.useContext(ne);m(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=i.useContext(oe),{pathname:l}=le(),c=de(),u=U(t,q(s),l,"path"===o),d=JSON.stringify(u);return i.useEffect((()=>{c(JSON.parse(d),{replace:n,state:r,relative:o})}),[c,d,o,n,r]),null}function Pe(e){f(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ne(e){let{basename:t="/",children:n=null,location:r,navigationType:o="POP",navigator:a,static:s=!1}
2=e;f(!se(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=t.replace(/^\/*/,"/"),c=i.useMemo((()=>({basename:l,navigator:a,static:s,future:{}})),[l,a,s]);"string"===typeof r&&(r=y(r));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:_="default"}=r,g=i.useMemo((()=>{let e=F(u,l);return null==e?null:{location:{pathname:e,search:d,hash:p,state:h,key:_},navigationType:o}}),[l,u,d,p,h,_,o]);return m(null!=g,'<Router basename="'.concat(l,'"> is not able to match the URL "').concat(u).concat(d).concat(p,"\" because it does not start with the basename, so the <Router> won't render anything.")),null==g?null:i.createElement(ne.Provider,{value:c},i.createElement(re.Provider,{children:n,value:g}))}function Ie(e){let{children:t,location:n}=e;return fe(Re(t),n)}i.Component;function Re(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;let o=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,Re(e.props.children,o));f(e.type===Pe,"[".concat("string"===typeof e.type?e.type:e.type.name,"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>")),f(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Re(e.props.children,o)),n.push(a)})),n}var Oe="get",De="application/x-www-form-urlencoded";function Me(e){return null!=e&&"string"===typeof e.tagName}function Le(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}var Fe=null;var ze=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Be(e){return null==e||ze.has(e)?e:(m(!1,'"'.concat(e,'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "').concat(De,'"')),null)}function qe(e,t){let n,r,o,i,a;if(Me(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?F(a,t):null,n=e.getAttribute("method")||Oe,o=Be(e.getAttribute("enctype"))||De,i=new FormData(e)}else if(function(e){return Me(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Me(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?F(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Oe,o=Be(e.getAttribute("formenctype"))||Be(a.getAttribute("enctype"))||De,i=new FormData(a,e),!function(){if(null===Fe)try{new FormData(document.createElement("form"),0),Fe=!1}catch(e){Fe=!0}return Fe}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?"".concat(t,"."):"";i.append("".concat(e,"x"),"0"),i.append("".concat(e,"y"),"0")}else t&&i.append(t,r)}}else{if(Me(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Oe,r=null,o=De,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!==typeof window?window:"undefined"!==typeof globalThis&&globalThis;function Ue(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}Symbol("SingleFetchRedirect");function He(e,t,n){let r="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname="_root.".concat(n):t&&"/"===F(r.pathname,t)?r.pathname="".concat(t.replace(/\/$/,""),"/_root.").concat(n):r.pathname="".concat(r.pathname.replace(/\/$/,""),".").concat(n),r}async function We(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error("Error loading route module `".concat(e.module,"`, reloading page...")),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
2isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Ve(e){return null!=e&&"string"===typeof e.page}function Ke(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"===typeof e.imageSrcSet&&"string"===typeof e.imageSizes:"string"===typeof e.rel&&"string"===typeof e.href)}function Ge(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>{var r;return n[t].pathname!==e.pathname||(null===(r=n[t].route.path)||void 0===r?void 0:r.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===i?t.filter(((e,t)=>a(e,t)||s(e,t))):"data"===i?t.filter(((t,i)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){var c;let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:(null===(c=n[0])||void 0===c?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof r)return r}return!0})):[]}function Ye(e,t){let{includeHydrateFallback:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function Qe(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Ve(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e}),[])}function Xe(e,t){return"lazy"===e.mode&&!0===t}function $e(){let e=i.useContext(X);return Ue(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Je(){let e=i.useContext($);return Ue(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ze=i.createContext(void 0);function et(){let e=i.useContext(Ze);return Ue(e,"You must render this element inside a <HydratedRouter> element"),e}function tt(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function nt(e,t,n){if(n&&!at)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Ze.displayName="FrameworkContext";function rt(e){let{page:t}=e,n=(0,r.A)(e,s),{router:a}=$e(),l=i.useMemo((()=>x(a.routes,t,a.basename)),[a.routes,t,a.basename]);return l?i.createElement(it,(0,o.A)({page:t,matches:l},n)):null}function ot(e){let{manifest:t,routeModules:n}=et(),[r,a]=i.useState([]);return i.useEffect((()=>{let r=!1;return async function(e,t,n){return Qe((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await We(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Ke).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?(0,o.A)((0,o.A)({},e),{},{rel:"prefetch",as:"style"}):(0,o.A)((0,o.A)({},e),{},{rel:"prefetch"}))))}(e,t,n).then((e=>{r||a(e)})),()=>{r=!0}}),[e,t,n]),r}function it(e){let{page:t,matches:n}=e,a=(0,r.A)(e,l),s=le(),{manifest:c,routeModules:u}=et(),{basename:d}=$e(),{loaderData:p,matches:h}=Je(),f=i.useMemo((()=>Ge(t,n,h,c,s,"data")),[t,n,h,c,s]),m=i.useMemo((()=>Ge(t,n,h,c,s,"assets")),[t,n,h,c,s]),_=i.useMemo((()=>{if(t===s.pathname+s.search+s.hash)return[];let e=new Set,r=!1;if(n.forEach((t=>{var n;let o=c.routes[t.route.id];o&&o.hasLoader&&(!f.some((e=>e.route.id===t.route.id))&&t.route.id in p&&null!==(n=u[t.route.id])&&void 0!==n&&n.shouldRevalidate||o.hasClientLoader?r=!0:e.add(t.route.id))})),0===e.size)return[];let o=He(t,d,"data");return r&&e.size>0&&o.searchParams.set("_routes",n.filter((t=>e.has(t.route.id))).map((e=>e.route.id)).join(",")),[o.pathname+o.search]}),[d,p,s,c,f,n,t,u]),g=i.useMemo((()=>Ye(m,c)),[m,c]),v=ot(m);return i.createElement(i.Fragment,null,_.map((e=>i.createElement("link",(0,o.A)({key:e,rel:"prefetch",as:"fetch",href:e},a)))),g.map((e=>i.createElement("link",(0,o.A)({key:e,rel:"modulepreload",href:e},a)))),v.map((e=>{let{key:t,link:n}=e;return i.createElement("link",(0,o.A)({key:t,nonce:a.nonce},n))})))}var at=!1;function st(e){let{manifest:t,serverHandoffString:n,isSpaMode:s,renderMeta:l,routeDiscovery:c,ssr:u}=et(),{router:d,static:p,staticContext:h}=$e(),{matches:f}=Je(),m=i.useContext(J),_=Xe(c,u);l&&(l.didRenderScripts=!0);let g=nt(f,null,s);i.useEffect((()=>{at=!0}),[]);let v=i.useMemo((()=>{var s;if(m)return null;let l=h?"window.__reactRouterContext = ".concat(n,";").concat("window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}
2).pipeThrough(new TextEncoderStream());"):" ",c=p?"".concat(null!==(s=t.hmr)&&void 0!==s&&s.runtime?"import ".concat(JSON.stringify(t.hmr.runtime),";"):"").concat(_?"":"import ".concat(JSON.stringify(t.url)),";\n").concat(g.map(((e,n)=>{let r="route".concat(n),o=t.routes[e.route.id];Ue(o,"Route ".concat(e.route.id," not found in manifest"));let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:l,module:c}=o,u=[...i?[{module:i,varName:"".concat(r,"_clientAction")}]:[],...a?[{module:a,varName:"".concat(r,"_clientLoader")}]:[],...s?[{module:s,varName:"".concat(r,"_clientMiddleware")}]:[],...l?[{module:l,varName:"".concat(r,"_HydrateFallback")}]:[],{module:c,varName:"".concat(r,"_main")}];return 1===u.length?"import * as ".concat(r," from ").concat(JSON.stringify(c),";"):[u.map((e=>"import * as ".concat(e.varName,' from "').concat(e.module,'";'))).join("\n"),"const ".concat(r," = {").concat(u.map((e=>"...".concat(e.varName))).join(","),"};")].join("\n")})).join("\n"),"\n  ").concat(_?"window.__reactRouterManifest = ".concat(JSON.stringify(function(e,t){let{sri:n}=e,i=(0,r.A)(e,a),s=new Set(t.state.matches.map((e=>e.route.id))),l=t.state.location.pathname.split("/").filter(Boolean),c=["/"];for(l.pop();l.length>0;)c.push("/".concat(l.join("/"))),l.pop();c.forEach((e=>{let n=x(t.routes,e,t.basename);n&&n.forEach((e=>s.add(e.route.id)))}));let u=[...s].reduce(((e,t)=>Object.assign(e,{[t]:i.routes[t]})),{});return(0,o.A)((0,o.A)({},i),{},{routes:u,sri:!!n||void 0})}(t,d),null,2),";"):"","\n  window.__reactRouterRouteModules = {").concat(g.map(((e,t)=>"".concat(JSON.stringify(e.route.id),":route").concat(t))).join(","),"};\n\nimport(").concat(JSON.stringify(t.entry.module),");"):" ";return i.createElement(i.Fragment,null,i.createElement("script",(0,o.A)((0,o.A)({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:l},type:void 0})),i.createElement("script",(0,o.A)((0,o.A)({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:c},type:"module",async:!0})))}),[]),y=at||m?[]:(b=t.entry.imports.concat(Ye(g,t,{includeHydrateFallback:!0})),[...new Set(b)]);var b;let w="object"===typeof t.sri?t.sri:{};return je(!m,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),at||m?null:i.createElement(i.Fragment,null,"object"===typeof t.sri?i.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:w})}}):null,_?null:i.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:w[t.url],suppressHydrationWarning:!0}),i.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:w[t.entry.module],suppressHydrationWarning:!0}),y.map((t=>i.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:w[t],suppressHydrationWarning:!0}))),v)}function lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)}))}}i.Component;function ct(e){let{error:t,isOutsideRemixApp:n}=e;console.error(t);let r,o=i.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n        );\n      '}});if(G(t))return i.createElement(ut,{title:"Unhandled Thrown Response!"},i.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),ae?o:null);if(t instanceof Error)r=t;else{let e=null==t?"Unknown Error":"object"===typeof t&&"toString"in t?t.toString():JSON.stringify(t);r=new Error(e)}return i.createElement(ut,{title:"Application Error!",isOutsideRemixApp:n},i.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),i.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),o)}function ut(e){var t;let{title:n,renderScripts:r,isOutsideRemixApp:o,children:a}=e,{routeModules:s}=et();return null!==(t=s.root)&&void 0!==t&&t.Layout&&!o?a:i.createElement("html",{lang:"en"},i.createElement("head",null,i.createElement("meta",{charSet:"utf-8"}),i.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),i.createElement("title",null,n)),i.createElement("body",null,i.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},a,r?i.createElement(st,null):null)))}var dt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{dt&&(window.__reactRouterVersion="7.9.3")}catch(kt){}function pt(e){let{basename:t,children:n,window:r}=e,o=i.useRef();null==o.current&&(o.current=h({window:r,v5Compat:!0}));let a=o.current,[s,l]=i.useState({action:a.action,location:a.location}),c=i.useCallback((e=>{i.startTransition((()=>l(e)))}),[l]);return i.useLayoutEffect((()=>a.listen(c)),[a,c]),i.createElement(Ne,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}var ht=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ft=i.forwardRef((function(e,t){let n,{onClick:a,discover:s="render",prefetch:l="none",relative:u,reloadDocument:d,replace:p,state:h,target:_,to:g,preventScrollReset:y,viewTransition:b}=e,w=(0,r.A)(e,c),{basename:x}=i.useContext(ne),k="string"===typeof g&&ht.test(g),S=!1;if("string"===typeof g&&k&&(n=g,dt))try{let e=new URL(window.location.href),t=g.startsWith("//")?new URL(e.protocol+g):new URL(g),n=F(t.pathname,x);t.origin===e.origin&&null!=n?g=n+t.search+t.hash:S=!0}catch(kt){m(!1,'<Link to="'.concat(g,'">
2 contains an invalid URL which will probably break when clicked - please update to a valid URL path.'))}let C=function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(se(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=i.useContext(ne),{hash:o,pathname:a,search:s}=he(e,{relative:t}),l=a;return"/"!==n&&(l="/"===a?n:H([n,a])),r.createHref({pathname:l,search:s,hash:o})}(g,{relative:u}),[A,E,j]=function(e,t){let n=i.useContext(Ze),[r,o]=i.useState(!1),[a,s]=i.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:p}=t,h=i.useRef(null);i.useEffect((()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{s(e.isIntersecting)}))}),{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}}),[e]),i.useEffect((()=>{if(r){let e=setTimeout((()=>{s(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let f=()=>{o(!0)},m=()=>{o(!1),s(!1)};return n?"intent"!==e?[a,h,{}]:[a,h,{onFocus:tt(l,f),onBlur:tt(c,m),onMouseEnter:tt(u,f),onMouseLeave:tt(d,m),onTouchStart:tt(p,f)}]:[!1,h,{}]}(l,w),T=function(e){let{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=de(),c=le(),u=he(e,{relative:a});return i.useCallback((i=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(i,t)){i.preventDefault();let t=void 0!==n?n:v(c)===v(u);l(e,{replace:t,state:r,preventScrollReset:o,relative:a,viewTransition:s})}}),[c,l,u,n,r,t,e,o,a,s])}(g,{replace:p,state:h,target:_,preventScrollReset:y,relative:u,viewTransition:b});let P=i.createElement("a",(0,o.A)((0,o.A)((0,o.A)({},w),j),{},{href:n||C,onClick:S||d?a:function(e){a&&a(e),e.defaultPrevented||T(e)},ref:lt(t,E),target:_,"data-discover":k||"render"!==s?void 0:"true"}));return A&&!k?i.createElement(i.Fragment,null,P,i.createElement(rt,{page:C})):P}));ft.displayName="Link";var mt=i.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:a=!1,className:s="",end:l=!1,style:c,to:d,viewTransition:p,children:h}=e,m=(0,r.A)(e,u),_=he(d,{relative:m.relative}),g=le(),v=i.useContext($),{navigator:y,basename:b}=i.useContext(ne),w=null!=v&&function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.useContext(Z);f(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vt("useViewTransitionState"),o=he(e,{relative:t});if(!n.isTransitioning)return!1;let a=F(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=F(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=D(o.pathname,s)||null!=D(o.pathname,a)}(_)&&!0===p,x=y.encodeLocation?y.encodeLocation(_).pathname:_.pathname,k=g.pathname,S=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;a||(k=k.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&b&&(S=F(S,b)||S);const C="/"!==x&&x.endsWith("/")?x.length-1:x.length;let A,E=k===x||!l&&k.startsWith(x)&&"/"===k.charAt(C),j=null!=S&&(S===x||!l&&S.startsWith(x)&&"/"===S.charAt(x.length)),T={isActive:E,isPending:j,isTransitioning:w},P=E?n:void 0;A="function"===typeof s?s(T):[s,E?"active":null,j?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let N="function"===typeof c?c(T):c;return i.createElement(ft,(0,o.A)((0,o.A)({},m),{},{"aria-current":P,className:A,ref:t,style:N,to:d,viewTransition:p}),"function"===typeof h?h(T):h)}));mt.displayName="NavLink";var _t=i.forwardRef(((e,t)=>{let{discover:n="render",fetcherKey:a,navigate:s,reloadDocument:l,replace:c,state:u,method:p=Oe,action:h,onSubmit:m,relative:_,preventScrollReset:g,viewTransition:y}=e,b=(0,r.A)(e,d),w=xt(),x=function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{basename:n}=i.useContext(ne),r=i.useContext(oe);f(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s=(0,o.A)({},he(e||".",{relative:t})),l=le();if(null==e){s.search=l.search;let e=new URLSearchParams(s.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>
2e)).forEach((t=>e.append("index",t)));let n=e.toString();s.search=n?"?".concat(n):""}}e&&"."!==e||!a.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(s.pathname="/"===s.pathname?n:H([n,s.pathname]));return v(s)}(h,{relative:_}),k="get"===p.toLowerCase()?"get":"post",S="string"===typeof h&&ht.test(h);return i.createElement("form",(0,o.A)((0,o.A)({ref:t,method:k,action:x,onSubmit:l?m:e=>{if(m&&m(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null===t||void 0===t?void 0:t.getAttribute("formmethod"))||p;w(t||e.currentTarget,{fetcherKey:a,method:n,navigate:s,replace:c,state:u,relative:_,preventScrollReset:g,viewTransition:y})}},b),{},{"data-discover":S||"render"!==n?void 0:"true"}))}));function gt(e){return"".concat(e," must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.")}function vt(e){let t=i.useContext(X);return f(t,gt(e)),t}function yt(e){m("undefined"!==typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=i.useRef(Le(e)),n=i.useRef(!1),r=le(),o=i.useMemo((()=>function(e,t){let n=Le(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))}
2)),n}(r.search,n.current?null:t.current)),[r.search]),a=de(),s=i.useCallback(((e,t)=>{const r=Le("function"===typeof e?e(new URLSearchParams(o)):e);n.current=!0,a("?"+r,t)}),[a,o]);return[o,s]}_t.displayName="Form";var bt=0,wt=()=>"__".concat(String(++bt),"__");function xt(){let{router:e}=vt("useSubmit"),{basename:t}=i.useContext(ne),n=ke("useRouteId");return i.useCallback((async function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{action:i,method:a,encType:s,formData:l,body:c}=qe(r,t);if(!1===o.navigate){let t=o.fetcherKey||wt();await e.fetch(t,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||a,formEncType:o.encType||s,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:c,formMethod:o.method||a,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[e,t,n])}},75686:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},75699:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]])},75783:(e,t,n)=>{(function(){var e,t=n(41098).default,r="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};var o=function(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof n.g&&n.g,e];for(var t=0;t<e.length;++t){var r=e[t];if(r&&r.Math==Math)return r}return globalThis}(this);function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function a(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:i(e)}}!function(e,t){if(t){var n=o;e=e.split(".");for(var i=0;i<e.length-1;i++){var a=e[i];a in n||(n[a]={}),n=n[a]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&r(n,e,{configurable:!0,writable:!0,value:t})}}("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(n){t.reject(n)}}function n(){this.a=null}function r(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var i=o.setTimeout;n.prototype.c=function(e){i(e,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(r){this.f(r)}}}this.a=null},n.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.m),reject:e(this.g)}},t.prototype.m=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.s(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.u(e):this.h(e)}},t.prototype.u=function(e){var t=void 0;try{t=e.then}catch(n){return void this.g(n)}"function"==typeof t?this.w(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)s.b(this.a[e]);this.a=null}};var s=new n;return t.prototype.s=function(e){var t=this.f();e.Oa(t.resolve,t.reject)},t.prototype.w=function(e,t){var n=this.f();try{e.call(t,n.resolve,n.reject)}catch(r){n.reject(r)}},t.prototype.then=function(e,n){function r(e,t){return"function"==typeof e?function(t){try{o(e(t))}catch(n){i(n)}}:t}var o,i,a=new t((function(e,t){o=e,i=t}));return this.Oa(r(e,o),r(n,i)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Oa=function(e,t){function n(){switch(r.b){case 1:e(r.c);break;case 2:t(r.c);break;default:throw Error("Unexpected state: "+r.b)}}var r=this;null==this.a?s.b(n):this.a.push(n)},t.resolve=r,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var o=a(e),i=o.next();!i.done;i=o.next())r(i.value).Oa(t,n)}))},t.all=function(e){var n=a(e),o=n.next();return o.done?r([]):new t((function(e,t){function i(t){return function(n){a[t]=n,0==--s&&e(a)}}var a=[],s=0;do{a.push(void 0),s++,r(o.value).Oa(i(a.length-1),t),o=n.next()}while(!o.done)}))},t}));var s=s||{},l=this||self,c=/^[\w+/_-]+[=]{0,2}$/,u=null;function d(){}function p(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);
2if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&"undefined"!=typeof e.splice&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof e.call&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&"undefined"==typeof e.call)return"object";return t}function h(e){var t=p(e);return"array"==t||"object"==t&&"number"==typeof e.length}function f(e){return"function"==p(e)}function m(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function _(e){return Object.prototype.hasOwnProperty.call(e,g)&&e[g]||(e[g]=++v)}var g="closure_uid_"+(1e9*Math.random()>>>0),v=0;function y(e,t,n){return e.call.apply(e.bind,arguments)}function b(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function w(e,t,n){return(w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?y:b).apply(null,arguments)}function x(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var k=Date.now||function(){return+new Date};function S(e,t){function n(){}n.prototype=t.prototype,e.Za=t.prototype,e.prototype=new n,e.prototype.constructor=e}function C(e,t,n){this.code=j+e,this.message=t||T[e]||"",this.a=n||null}function A(e){var t=e&&e.code;return t?new C(t.substring(j.length),e.message,e.serverResponse):null}S(C,Error),C.prototype.v=function(){var e={code:this.code,message:this.message};return this.a&&(e.serverResponse=this.a),e},C.prototype.toJSON=function(){return this.v()};var E,j="auth/",T={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
2ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
2d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},P={hd:{Ra:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},pd:{Ra:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://securetoken.googleapis.com/v1/token",Ua:"https://identitytoolkit.googleapis.com/v2/",id:"p"},rd:{Ra:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},sd:{Ra:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Xa:"https://test-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function N(e){for(var t in P)if(P[t].id===e)return{firebaseEndpoint:(e=P[t]).Ra,secureTokenEndpoint:e.Xa,identityPlatformEndpoint:e.Ua};return null}function I(e){if(!e)return!1;
2try{return!!e.$goog_Thenable}catch(t){return!1}}function R(e){if(Error.captureStackTrace)Error.captureStackTrace(this,R);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function O(e,t){for(var n="",r=(e=e.split("%s")).length-1,o=0;o<r;o++)n+=e[o]+(o<t.length?t[o]:"%s");R.call(this,n+e[r])}function D(e,t){throw new O("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function M(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function L(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function F(){this.b=this.a=null}E=N("__EID__")?"__EID__":void 0,S(R,Error),R.prototype.name="CustomError",S(O,R),O.prototype.name="AssertionError",M.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var z=new M((function(){return new q}),(function(e){e.reset()}));function B(){var e=gt,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function q(){this.next=this.b=this.a=null}F.prototype.add=function(e,t){var n=z.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},q.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},q.prototype.reset=function(){this.next=this.b=this.a=null};var U=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},H=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,o="string"===typeof e?e.split(""):e,i=0;i<r;i++)i in o&&t.call(n,o[i],i,e)};var W=Array.prototype.filter?function(e,t){return Array.prototype.filter.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=[],o=0,i="string"===typeof e?e.split(""):e,a=0;a<n;a++)if(a in i){var s=i[a];t.call(void 0,s,a,e)&&(r[o++]=s)}return r},V=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=Array(n),o="string"===typeof e?e.split(""):e,i=0;i<n;i++)i in o&&(r[i]=t.call(void 0,o[i],i,e));return r},K=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,r="string"===typeof e?e.split(""):e,o=0;o<n;o++)if(o in r&&t.call(void 0,r[o],o,e))return!0;return!1};function G(e,t){return 0<=U(e,t)}function Y(e,t){var n;return(n=0<=(t=U(e,t)))&&Array.prototype.splice.call(e,t,1),n}function Q(e,t){!function(e,t){for(var n="string"===typeof e?e.split(""):e,r=e.length-1;0<=r;--r)r in n&&t.call(void 0,n[r],r,e)}(e,(function(n,r){t.call(void 0,n,r,e)&&1==Array.prototype.splice.call(e,r,1).length&&0}))}function X(e){return Array.prototype.concat.apply([],arguments)}function $(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}var J,Z=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},ee=/&/g,te=/</g,ne=/>/g,re=/"/g,oe=/'/g,ie=/\x00/g,ae=/[\x00&<>"']/;function se(e,t){return-1!=e.indexOf(t)}function le(e,t){return e<t?-1:e>t?1:0}e:{var ce=l.navigator;if(ce){var ue=ce.userAgent;if(ue){J=ue;break e}}J=""}function de(e){return se(J,e)}function pe(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function he(e){for(var t in e)return!1;return!0}function fe(e){var t,n={};for(t in e)n[t]=e[t];return n}var me="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function _e(e,t){for(var n,r,o=1;o<arguments.length;o++){for(n in r=arguments[o])e[n]=r[n];for(var i=0;i<me.length;i++)n=me[i],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function ge(e,t){e:{try{var n=e&&e.ownerDocument,r=n&&(n.defaultView||n.parentWindow);if((r=r||l).Element&&r.Location){var o=r;break e}}catch(a){}o=null}if(o&&"undefined"!=typeof o[t]&&(!e||!(e instanceof o[t])&&(e instanceof o.Location||e instanceof o.Element))){if(m(e))try{var i=e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(a){i="<object could not be stringified>"}else i=void 0===e?"undefined":null===e?"null":typeof e;D("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,i)}}function ve(e,t){this.a=e===we&&t||"",this.b=be}function ye(e){return e instanceof ve&&e.constructor===ve&&e.b===be?e.a:(D("expected object of type Const, got '"+e+"'"),"type_error:Const")}ve.prototype.ra=!0,ve.prototype.qa=function(){return this.a},ve.prototype.toString=function(){return"Const{"+this.a+"}"};var be={},we={},xe=new ve(we,"");function ke(e,t){this.a=e===Te&&t||"",this.b=je}function Se(e){return e instanceof ke&&e.constructor===ke&&e.b===je?e.a:(D("expected object of type TrustedResourceUrl, got '"+e+"' of type "+p(e)),"type_error:TrustedResourceUrl")}function Ce(e,t){var n=ye(e);if(!Ee.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return e=n.replace(Ae,(function(e,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw Error('Found marker, "'+r+'", in format str
2ing, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[r])instanceof ve?ye(e):encodeURIComponent(String(e))})),new ke(Te,e)}ke.prototype.ra=!0,ke.prototype.qa=function(){return this.a.toString()},ke.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Ae=/%{(\w+)}/g,Ee=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,je={},Te={};function Pe(e,t){this.a=e===De&&t||"",this.b=Oe}function Ne(e){return e instanceof Pe&&e.constructor===Pe&&e.b===Oe?e.a:(D("expected object of type SafeUrl, got '"+e+"' of type "+p(e)),"type_error:SafeUrl")}Pe.prototype.ra=!0,Pe.prototype.qa=function(){return this.a.toString()},Pe.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Ie=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Re(e){return e instanceof Pe?e:(e="object"==typeof e&&e.ra?e.qa():String(e),Ie.test(e)||(e="about:invalid#zClosurez"),new Pe(De,e))}var Oe={},De={};function Me(){this.a="",this.b=Fe}function Le(e){return e instanceof Me&&e.constructor===Me&&e.b===Fe?e.a:(D("expected object of type SafeHtml, got '"+e+"' of type "+p(e)),"type_error:SafeHtml")}Me.prototype.ra=!0,Me.prototype.qa=function(){return this.a.toString()},Me.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Fe={};function ze(e){var t=new Me;return t.a=e,t}ze("<!DOCTYPE html>");var Be=ze("");function qe(e,t){for(var n=e.split("%s"),r="",o=Array.prototype.slice.call(arguments,1);o.length&&1<n.length;)r+=n.shift()+o.shift();return r+n.join("%s")}function Ue(e){return ae.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(ee,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(te,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(ne,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(re,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(oe,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(ie,"&#0;"))),e}function He(e){return He[" "](e),e}ze("<br>"),He[" "]=d;var We,Ve=de("Opera"),Ke=de("Trident")||de("MSIE"),Ge=de("Edge"),Ye=Ge||Ke,Qe=de("Gecko")&&!(se(J.toLowerCase(),"webkit")&&!de("Edge"))&&!(de("Trident")||de("MSIE"))&&!de("Edge"),Xe=se(J.toLowerCase(),"webkit")&&!de("Edge");function $e(){var e=l.document;return e?e.documentMode:void 0}e:{var Je="",Ze=function(){var e=J;return Qe?/rv:([^\);]+)(\)|;)/.exec(e):Ge?/Edge\/([\d\.]+)/.exec(e):Ke?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):Xe?/WebKit\/(\S+)/.exec(e):Ve?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(Ze&&(Je=Ze?Ze[1]:""),Ke){var et=$e();if(null!=et&&et>parseFloat(Je)){We=String(et);break e}}We=Je}var tt,nt={};function rt(e){return function(e,t){var n=nt;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=Z(String(We)).split("."),r=Z(String(e)).split("."),o=Math.max(n.length,r.length),i=0;0==t&&i<o;i++){var a=n[i]||"",s=r[i]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=le(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||le(0==a[2].length,0==s[2].length)||le(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t}))}tt=l.document&&Ke?$e():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(ca){}var ot=!Ke||9<=Number(tt);function it(e){var t=document;return"string"===typeof e?t.getElementById(e):e}function at(e,t){pe(t,(function(t,n){t&&"object"==typeof t&&t.ra&&(t=t.qa()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:ct.hasOwnProperty(n)?e.setAttribute(ct[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t}))}var st,lt,ct={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function ut(e,t,n){var r=arguments,o=document,i=String(r[0]),a=r[1];if(!ot&&a&&(a.name||a.type)){if(i=["<",i],a.name&&i.push(' name="',Ue(a.name),'"'),a.type){i.push(' type="',Ue(a.type),'"');var s={};_e(s,a),delete s.type,a=s}i.push(">"),i=i.join("")}return i=dt(o,i),a&&("string"===typeof a?i.className=a:Array.isArray(a)?i.className=a.join(" "):at(i,a)),2<r.length&&function(e,t,n){function r(n){n&&t.appendChild("string"===typeof n?e.createTextNode(n):n)}for(var o=2;o<n.length;o++){var i=n[o];!h(i)||m(i)&&0<i.nodeType?r(i):H(pt(i)?$(i):i,r)}}(o,i,r),i}function dt(e,t){return t=String(t),"application/xhtml+xml"===e.contentType&&(t=t.toLowerCase()),e.createElement(t)}function pt(e){if(e&&"number"==typeof e.length){if(m(e))return"function"==typeof e.item||"string"==typeof e.item;if(f(e))return"function"==typeof e.item}return!1}function ht(e){l.setTimeout((function(){throw e}
2),0)}function ft(){var e=l.MessageChannel;if("undefined"===typeof e&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!de("Presto")&&(e=function(){var e=dt(document,"IFRAME");e.style.display="none",function(e){var t=new ke(Te,ye(xe));ge(e,"HTMLIFrameElement"),e.src=Se(t).toString()}(e),document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.write(Le(Be)),e.close();var n="callImmediate"+Math.random(),r="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=w((function(e){"*"!=r&&e.origin!=r||e.data!=n||this.port1.onmessage()}),this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,r)}}}),"undefined"!==typeof e&&!de("Trident")&&!de("MSIE")){var t=new e,n={},r=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).Db;n.Db=null,e()}},function(e){r.next={Db:e},r=r.next,t.port2.postMessage(0)}}return function(e){l.setTimeout(e,0)}}function mt(e,t){lt||function(){if(l.Promise&&l.Promise.resolve){var e=l.Promise.resolve(void 0);lt=function(){e.then(vt)}}else lt=function(){var e=vt;!f(l.setImmediate)||l.Window&&l.Window.prototype&&!de("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(st||(st=ft()),st(e)):l.setImmediate(e)}}(),_t||(lt(),_t=!0),gt.add(e,t)}var _t=!1,gt=new F;function vt(){for(var e;e=B();){try{e.a.call(e.b)}catch(t){ht(t)}L(z,e)}_t=!1}function yt(e,t){if(this.a=bt,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=d)try{var n=this;e.call(t,(function(e){Rt(n,wt,e)}),(function(e){if(!(e instanceof Bt))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(t){}Rt(n,xt,e)}))}catch(r){Rt(this,xt,r)}}var bt=0,wt=2,xt=3;function kt(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}kt.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var St=new M((function(){return new kt}),(function(e){e.reset()}));function Ct(e,t,n){var r=St.get();return r.g=e,r.b=t,r.f=n,r}function At(e){if(e instanceof yt)return e;var t=new yt(d);return Rt(t,wt,e),t}function Et(e){return new yt((function(t,n){n(e)}))}function jt(e,t,n){Ot(e,t,n,null)||mt(x(t,e))}function Tt(e){return new yt((function(t){var n=e.length,r=[];if(n)for(var o=function(e,o,i){n--,r[e]=o?{Mb:!0,value:i}:{Mb:!1,reason:i},0==n&&t(r)},i=0;i<e.length;i++)jt(e[i],x(o,i,!0),x(o,i,!1));else t(r)}))}function Pt(e,t){if(e.a==bt)if(e.c){var n=e.c;if(n.b){for(var r=0,o=null,i=null,a=n.b;a&&(a.c||(r++,a.a==e&&(o=a),!(o&&1<r)));a=a.next)o||(i=a);o&&(n.a==bt&&1==r?Pt(n,t):(i?((r=i).next==n.f&&(n.f=r),r.next=r.next.next):Mt(n),Lt(n,o,xt,t)))}e.c=null}else Rt(e,xt,t)}function Nt(e,t){e.b||e.a!=wt&&e.a!=xt||Dt(e),e.f?e.f.next=t:e.b=t,e.f=t}function It(e,t,n,r){var o=Ct(null,null,null);return o.a=new yt((function(e,i){o.g=t?function(n){try{var o=t.call(r,n);e(o)}catch(a){i(a)}}:e,o.b=n?function(t){try{var o=n.call(r,t);void 0===o&&t instanceof Bt?i(t):e(o)}catch(a){i(a)}}:i})),o.a.c=e,Nt(e,o),o.a}function Rt(e,t,n){e.a==bt&&(e===n&&(t=xt,n=new TypeError("Promise cannot resolve to itself")),e.a=1,Ot(n,e.Yc,e.Zc,e)||(e.i=n,e.a=t,e.c=null,Dt(e),t!=xt||n instanceof Bt||function(e,t){e.g=!0,mt((function(){e.g&&zt.call(null,t)}))}(e,n)))}function Ot(e,t,n,r){if(e instanceof yt)return Nt(e,Ct(t||d,n||null,r)),!0;if(I(e))return e.then(t,n,r),!0;if(m(e))try{var o=e.then;if(f(o))return function(e,t,n,r,o){function i(e){s||(s=!0,r.call(o,e))}function a(e){s||(s=!0,n.call(o,e))}var s=!1;try{t.call(e,a,i)}catch(l){i(l)}}(e,o,t,n,r),!0}catch(i){return n.call(r,i),!0}return!1}function Dt(e){e.h||(e.h=!0,mt(e.ec,e))}function Mt(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function Lt(e,t,n,r){if(n==xt&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,Ft(t,n,r);else try{t.c?t.g.call(t.f):Ft(t,n,r)}catch(o){zt.call(null,o)}L(St,t)}function Ft(e,t,n){t==wt?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}yt.prototype.then=function(e,t,n){return It(this,f(e)?e:null,f(t)?t:null,n)},yt.prototype.$goog_Thenable=!0,(e=yt.prototype).ma=function(e,t){return(e=Ct(e,e,t)).c=!0,Nt(this,e),this},e.o=function(e,t){return It(this,null,e,t)},e.cancel=function(e){if(this.a==bt){var t=new Bt(e);mt((function(){Pt(this,t)}),this)}},e.Yc=function(e){this.a=bt,Rt(this,wt,e)},e.Zc=function(e){this.a=bt,Rt(this,xt,e)},e.ec=function(){for(var e;e=Mt(this);)Lt(this,e,this.a,this.i);this.h=!1};var zt=ht;function Bt(e){R.call(this,e)}function qt(){0!=Ut&&(Ht[_(this)]=this),this.wa=this.wa,this.na=this.na}S(Bt,R),Bt.prototype.name="cancel";var Ut=0,Ht={};function Wt(e){if(!e.wa&&(e.wa=!0,e.Ba(),0!=Ut)){var t=_(e);if(0!=Ut&&e.na&&0<e.na.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Ht[t]}}qt.prototype.wa=!1,qt.prototype.Ba=function(){if(this.na)for(;this.na.length;)this.na.shift()()};var Vt=Object.freeze||function(e){return e},Kt=!Ke||9<=Number(tt),Gt=Ke&&!rt("9"),Yt=function(){if(!l.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{l.addEventListener("test",d,t),l.removeEventListener("test",d,t)}catch(n){}return e}();function Qt(e,t){this.type=e,this.b=this.target=t,this.defaultPrevented=!1}function Xt(e,t){if(Qt.call(this,e?e.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=t,t=e.relatedTarget){if(Qe){e:{try{He(t.nodeName);var o=!0;break e}catch(i){}o=!1}o||(t=null)}}
2else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:$t[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}Qt.prototype.preventDefault=function(){this.defaultPrevented=!0},S(Xt,Qt);var $t=Vt({2:"touch",3:"pen",4:"mouse"});Xt.prototype.preventDefault=function(){Xt.Za.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,Gt)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(t){}},Xt.prototype.f=function(){return this.a};var Jt="closure_listenable_"+(1e6*Math.random()|0),Zt=0;function en(e,t,n,r,o){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.Ta=o,this.key=++Zt,this.ua=this.Na=!1}function tn(e){e.ua=!0,e.listener=null,e.proxy=null,e.src=null,e.Ta=null}function nn(e){this.src=e,this.a={},this.b=0}function rn(e,t){var n=t.type;n in e.a&&Y(e.a[n],t)&&(tn(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function on(e,t,n,r){for(var o=0;o<e.length;++o){var i=e[o];if(!i.ua&&i.listener==t&&i.capture==!!n&&i.Ta==r)return o}return-1}nn.prototype.add=function(e,t,n,r,o){var i=e.toString();(e=this.a[i])||(e=this.a[i]=[],this.b++);var a=on(e,t,r,o);return-1<a?(t=e[a],n||(t.Na=!1)):((t=new en(t,this.src,i,!!r,o)).Na=n,e.push(t)),t};var an="closure_lm_"+(1e6*Math.random()|0),sn={};function ln(e,t,n,r,o){if(r&&r.once)un(e,t,n,r,o);else if(Array.isArray(t))for(var i=0;i<t.length;i++)ln(e,t[i],n,r,o);else n=yn(n),e&&e[Jt]?wn(e,t,n,m(r)?!!r.capture:!!r,o):cn(e,t,n,!1,r,o)}function cn(e,t,n,r,o,i){if(!t)throw Error("Invalid event type");var a=m(o)?!!o.capture:!!o,s=gn(e);if(s||(e[an]=s=new nn(e)),!(n=s.add(t,n,r,a,i)).proxy){if(r=function(){var e=_n,t=Kt?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)Yt||(o=a),void 0===o&&(o=!1),e.addEventListener(t.toString(),r,o);else if(e.attachEvent)e.attachEvent(hn(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}0}}function un(e,t,n,r,o){if(Array.isArray(t))for(var i=0;i<t.length;i++)un(e,t[i],n,r,o);else n=yn(n),e&&e[Jt]?xn(e,t,n,m(r)?!!r.capture:!!r,o):cn(e,t,n,!0,r,o)}function dn(e,t,n,r,o){if(Array.isArray(t))for(var i=0;i<t.length;i++)dn(e,t[i],n,r,o);else r=m(r)?!!r.capture:!!r,n=yn(n),e&&e[Jt]?(e=e.u,(t=String(t).toString())in e.a&&(-1<(n=on(i=e.a[t],n,r,o))&&(tn(i[n]),Array.prototype.splice.call(i,n,1),0==i.length&&(delete e.a[t],e.b--)))):e&&(e=gn(e))&&(t=e.a[t.toString()],e=-1,t&&(e=on(t,n,r,o)),(n=-1<e?t[e]:null)&&pn(n))}function pn(e){if("number"!==typeof e&&e&&!e.ua){var t=e.src;if(t&&t[Jt])rn(t.u,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(hn(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=gn(t))?(rn(n,e),0==n.b&&(n.src=null,t[an]=null)):tn(e)}}}function hn(e){return e in sn?sn[e]:sn[e]="on"+e}function fn(e,t,n,r){var o=!0;if((e=gn(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var i=t[e];i&&i.capture==n&&!i.ua&&(i=mn(i,r),o=o&&!1!==i)}return o}function mn(e,t){var n=e.listener,r=e.Ta||e.src;return e.Na&&pn(e),n.call(r,t)}function _n(e,t){if(e.ua)return!0;if(!Kt){if(!t)e:{t=["window","event"];for(var n=l,r=0;r<t.length;r++)if(null==(n=n[t[r]])){t=null;break e}t=n}if(t=new Xt(r=t,this),n=!0,!(0>r.keyCode||void 0!=r.returnValue)){e:{var o=!1;if(0==r.keyCode)try{r.keyCode=-1;break e}catch(a){o=!0}(o||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],o=t.b;o;o=o.parentNode)r.push(o);for(e=e.type,o=r.length-1;0<=o;o--){t.b=r[o];var i=fn(r[o],e,!0,t);n=n&&i}for(o=0;o<r.length;o++)t.b=r[o],i=fn(r[o],e,!1,t),n=n&&i}return n}return mn(e,new Xt(t,this))}function gn(e){return(e=e[an])instanceof nn?e:null}var vn="__closure_events_fn_"+(1e9*Math.random()>>>0);function yn(e){return f(e)?e:(e[vn]||(e[vn]=function(t){return e.handleEvent(t)}),e[vn])}function bn(){qt.call(this),this.u=new nn(this),this.Yb=this,this.eb=null}function wn(e,t,n,r,o){e.u.add(String(t),n,!1,r,o)}function xn(e,t,n,r,o){e.u.add(String(t),n,!0,r,o)}function kn(e,t,n,r){if(!(t=e.u.a[String(t)]))return!0;t=t.concat();for(var o=!0,i=0;i<t.length;++i){var a=t[i];if(a&&!a.ua&&a.capture==n){var s=a.listener,l=a.Ta||a.src;a.Na&&rn(e.u,a),o=!1!==s.call(l,r)&&o}}return o&&!r.defaultPrevented}function Sn(e,t,n){if(f(e))n&&(e=w(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=w(e.handleEvent,e)}return 2147483647<Number(t)?-1:l.setTimeout(e,t||0)}function Cn(e){var t=null;return new yt((function(n,r){-1==(t=Sn((function(){n(void 0)}),e))&&r(Error("Failed to schedule timer."))})).o((function(e){throw l.clearTimeout(t),e}))}function An(e){if(e.V&&"function"==typeof e.V)return e.V();if("string"===typeof e)return e.split("");
2if(h(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}function En(e){if(e.X&&"function"==typeof e.X)return e.X();if(!e.V||"function"!=typeof e.V){if(h(e)||"string"===typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var r in t=[],n=0,e)t[n++]=r;return t}}function jn(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof jn)for(n=e.X(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function Tn(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Pn(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var o={};for(n=t=0;t<e.a.length;)Pn(o,r=e.a[t])||(e.a[n++]=r,o[r]=1),t++;e.a.length=n}}function Pn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}S(bn,qt),bn.prototype[Jt]=!0,bn.prototype.addEventListener=function(e,t,n,r){ln(this,e,t,n,r)},bn.prototype.removeEventListener=function(e,t,n,r){dn(this,e,t,n,r)},bn.prototype.dispatchEvent=function(e){var t,n=this.eb;if(n)for(t=[];n;n=n.eb)t.push(n);n=this.Yb;var r=e.type||e;if("string"===typeof e)e=new Qt(e,n);else if(e instanceof Qt)e.target=e.target||n;else{var o=e;_e(e=new Qt(r,n),o)}if(o=!0,t)for(var i=t.length-1;0<=i;i--){var a=e.b=t[i];o=kn(a,r,!0,e)&&o}if(o=kn(a=e.b=n,r,!0,e)&&o,o=kn(a,r,!1,e)&&o,t)for(i=0;i<t.length;i++)o=kn(a=e.b=t[i],r,!1,e)&&o;return o},bn.prototype.Ba=function(){if(bn.Za.Ba.call(this),this.u){var e,t=this.u;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)tn(n[r]);delete t.a[e],t.b--}}this.eb=null},(e=jn.prototype).V=function(){Tn(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},e.X=function(){return Tn(this),this.a.concat()},e.clear=function(){this.b={},this.c=this.a.length=0},e.get=function(e,t){return Pn(this.b,e)?this.b[e]:t},e.set=function(e,t){Pn(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},e.forEach=function(e,t){for(var n=this.X(),r=0;r<n.length;r++){var o=n[r],i=this.get(o);e.call(t,i,o,this)}};var Nn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function In(e,t){var n;this.b=this.i=this.f="",this.l=null,this.g=this.c="",this.h=!1,e instanceof In?(this.h=void 0!==t?t:e.h,Rn(this,e.f),this.i=e.i,this.b=e.b,On(this,e.l),this.c=e.c,Dn(this,er(e.a)),this.g=e.g):e&&(n=String(e).match(Nn))?(this.h=!!t,Rn(this,n[1]||"",!0),this.i=Bn(n[2]||""),this.b=Bn(n[3]||"",!0),On(this,n[4]),this.c=Bn(n[5]||"",!0),Dn(this,n[6]||"",!0),this.g=Bn(n[7]||"")):(this.h=!!t,this.a=new Yn(null,this.h))}function Rn(e,t,n){e.f=n?Bn(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function On(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.l=t}else e.l=null}function Dn(e,t,n){t instanceof Yn?(e.a=t,function(e,t){t&&!e.f&&(Qn(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&($n(this,t),Zn(this,n,e))}),e)),e.f=t}(e.a,e.h)):(n||(t=qn(t,Kn)),e.a=new Yn(t,e.h))}function Mn(e,t,n){e.a.set(t,n)}function Ln(e,t){return e.a.get(t)}function Fn(e){return e instanceof In?new In(e):new In(e,void 0)}function zn(e,t){var n=new In(null,void 0);return Rn(n,"https"),e&&(n.b=e),t&&(n.c=t),n}function Bn(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function qn(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,Un),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Un(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}In.prototype.toString=function(){var e=[],t=this.f;t&&e.push(qn(t,Hn,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.i)&&e.push(qn(t,Hn,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.l)&&e.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(qn(n,"/"==n.charAt(0)?Vn:Wn,!0))),(n=this.a.toString())&&e.push("?",n),(n=this.g)&&e.push("#",qn(n,Gn)),e.join("")},In.prototype.resolve=function(e){var t=new In(this),n=!!e.f;n?Rn(t,e.f):n=!!e.i,n?t.i=e.i:n=!!e.b,n?t.b=e.b:n=null!=e.l;var r=e.c;if(n)On(t,e.l);else if(n=!!e.c){if("/"!=r.charAt(0))if(this.b&&!this.c)r="/"+r;else{var o=t.c.lastIndexOf("/");-1!=o&&(r=t.c.substr(0,o+1)+r)}if(".."==(o=r)||"."==o)r="";else if(se(o,"./")||se(o,"/.")){r=0==o.lastIndexOf("/",0),o=o.split("/");for(var i=[],a=0;a<o.length;){var s=o[a++];"."==s?r&&a==o.length&&i.push(""):".."==s?((1<i.length||1==i.length&&""!=i[0])&&i.pop(),r&&a==o.length&&i.push("")):(i.push(s),r=!0)}r=i.join("/")}else r=o}return n?t.c=r:n=""!==e.a.toString(),n?Dn(t,er(e.a)):n=!!e.g,n&&(t.g=e.g),t};var Hn=/[#\/\?@]/g,Wn=/[#\?:]/g,Vn=/[#\?]/g,Kn=/[#\?@]/g,Gn=/#/g;function Yn(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Qn(e){e.a||(e.a=new jn,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),o=null;if(0<=r){var i=e[n].substring(0,r);o=e[n].substring(r+1)}else i=e[n];
2t(i,o?decodeURIComponent(o.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Xn(e){var t=En(e);if("undefined"==typeof t)throw Error("Keys are undefined");var n=new Yn(null,void 0);e=An(e);for(var r=0;r<t.length;r++){var o=t[r],i=e[r];Array.isArray(i)?Zn(n,o,i):n.add(o,i)}return n}function $n(e,t){Qn(e),t=tr(e,t),Pn(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Pn((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&Tn(e)))}function Jn(e,t){return Qn(e),t=tr(e,t),Pn(e.a.b,t)}function Zn(e,t,n){$n(e,t),0<n.length&&(e.c=null,e.a.set(tr(e,t),$(n)),e.b+=n.length)}function er(e){var t=new Yn;return t.c=e.c,e.a&&(t.a=new jn(e.a),t.b=e.b),t}function tr(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function nr(e){var t=[];return or(new rr,e,t),t.join("")}function rr(){}function or(e,t,n){if(null==t)n.push("null");else{if("object"==typeof t){if(Array.isArray(t)){var r=t;t=r.length,n.push("[");for(var o="",i=0;i<t;i++)n.push(o),or(e,r[i],n),o=",";return void n.push("]")}if(!(t instanceof String||t instanceof Number||t instanceof Boolean)){for(r in n.push("{"),o="",t)Object.prototype.hasOwnProperty.call(t,r)&&("function"!=typeof(i=t[r])&&(n.push(o),sr(r,n),n.push(":"),or(e,i,n),o=","));return void n.push("}")}t=t.valueOf()}switch(typeof t){case"string":sr(t,n);break;case"number":n.push(isFinite(t)&&!isNaN(t)?String(t):"null");break;case"boolean":n.push(String(t));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof t)}}}(e=Yn.prototype).add=function(e,t){Qn(this),this.c=null,e=tr(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},e.clear=function(){this.a=this.c=null,this.b=0},e.forEach=function(e,t){Qn(this),this.a.forEach((function(n,r){H(n,(function(n){e.call(t,n,r,this)}),this)}),this)},e.X=function(){Qn(this);for(var e=this.a.V(),t=this.a.X(),n=[],r=0;r<t.length;r++)for(var o=e[r],i=0;i<o.length;i++)n.push(t[r]);return n},e.V=function(e){Qn(this);var t=[];if("string"===typeof e)Jn(this,e)&&(t=X(t,this.a.get(tr(this,e))));else{e=this.a.V();for(var n=0;n<e.length;n++)t=X(t,e[n])}return t},e.set=function(e,t){return Qn(this),this.c=null,Jn(this,e=tr(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},e.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},e.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.X(),n=0;n<t.length;n++){var r=t[n],o=encodeURIComponent(String(r));r=this.V(r);for(var i=0;i<r.length;i++){var a=o;""!==r[i]&&(a+="="+encodeURIComponent(String(r[i]))),e.push(a)}}return this.c=e.join("&")};var ir={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ar=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function sr(e,t){t.push('"',e.replace(ar,(function(e){var t=ir[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),ir[e]=t),t})),'"')}function lr(){var e=jr();return Ke&&!!tt&&11==tt||/Edge\/\d+/.test(e)}function cr(){return l.window&&l.window.location.href||self&&self.location&&self.location.href||""}function ur(e,t){t=t||l.window;var n="about:blank";e&&(n=Ne(Re(e))),t.location.href=n}function dr(e,t){var n,r=[];for(n in e)n in t?typeof e[n]!=typeof t[n]?r.push(n):"object"==typeof e[n]&&null!=e[n]&&null!=t[n]?0<dr(e[n],t[n]).length&&r.push(n):e[n]!==t[n]&&r.push(n):r.push(n);for(n in t)n in e||r.push(n);return r}function pr(e){return!!((e=(e||jr()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function hr(e){e=e||l.window;try{e.close()}catch(t){}}function fr(e,t,n){var r=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var o=(window.screen.availHeight-n)/2,i=(window.screen.availWidth-t)/2;for(a in t={width:t,height:n,top:0<o?o:0,left:0<i?i:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=jr().toLowerCase(),r&&(t.target=r,se(n,"crios/")&&(t.target="_blank")),Cr(jr())==kr&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),r=window,t=n instanceof Pe?n:Re("undefined"!=typeof n.href?n.href:String(n)),n=e.target||n.target,o=[],e)switch(a){case"width":case"height":case"top":case"left":o.push(a+"="+e[a]);break;case"target":case"noopener":case"noreferrer":break;default:o.push(a+"="+(e[a]?1:0))}var a=o.join(",");
2if((de("iPhone")&&!de("iPod")&&!de("iPad")||de("iPad")||de("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(ge(a=dt(document,"A"),"HTMLAnchorElement"),t instanceof Pe||t instanceof Pe||(t="object"==typeof t&&t.ra?t.qa():String(t),Ie.test(t)||(t="about:invalid#zClosurez"),t=new Pe(De,t)),a.href=Ne(t),a.setAttribute("target",n),e.noreferrer&&a.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,r,1),a.dispatchEvent(e),a={}):e.noreferrer?(a=r.open("",n,a),e=Ne(t),a&&(Ye&&se(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),a.opener=null,e=ze('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Ue(e)+'">'),r=a.document)&&(r.write(Le(e)),r.close())):(a=r.open(Ne(t),n,a))&&e.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var mr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,_r=/^[^@]+@[^@]+$/;function gr(){var e=null;return new yt((function(t){"complete"==l.document.readyState?t():(e=function(){t()},un(window,"load",e))})).o((function(t){throw dn(window,"load",e),t}))}function vr(e){return e=e||jr(),!("file:"!==Rr()&&"ionic:"!==Rr()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function yr(){var e=l.window;try{return!(!e||e==e.top)}catch(t){return!1}}function br(){return"undefined"!==typeof l.WorkerGlobalScope&&"function"===typeof l.importScripts}function wr(){return t.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":t.INTERNAL.hasOwnProperty("node")?"Node":br()?"Worker":"Browser"}function xr(){var e=wr();return"ReactNative"===e||"Node"===e}var kr="Firefox",Sr="Chrome";function Cr(e){var t=e.toLowerCase();return se(t,"opera/")||se(t,"opr/")||se(t,"opios/")?"Opera":se(t,"iemobile")?"IEMobile":se(t,"msie")||se(t,"trident/")?"IE":se(t,"edge/")?"Edge":se(t,"firefox/")?kr:se(t,"silk/")?"Silk":se(t,"blackberry")?"Blackberry":se(t,"webos")?"Webos":!se(t,"safari/")||se(t,"chrome/")||se(t,"crios/")||se(t,"android")?!se(t,"chrome/")&&!se(t,"crios/")||se(t,"edge/")?se(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":Sr:"Safari"}var Ar={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function Er(e,t){t=t||[];var n,r=[],o={};for(n in Ar)o[Ar[n]]=!0;for(n=0;n<t.length;n++)"undefined"!==typeof o[t[n]]&&(delete o[t[n]],r.push(t[n]));return r.sort(),(t=r).length||(t=["FirebaseCore-web"]),"Browser"===(r=wr())?r=Cr(o=jr()):"Worker"===r&&(r=Cr(o=jr())+"-"+r),r+"/JsCore/"+e+"/"+t.join(",")}function jr(){return l.navigator&&l.navigator.userAgent||""}function Tr(e,t){e=e.split("."),t=t||l;for(var n=0;n<e.length&&"object"==typeof t&&null!=t;n++)t=t[e[n]];return n!=e.length&&(t=void 0),t}function Pr(){try{var e=l.localStorage,t=Fr();if(e)return e.setItem(t,"1"),e.removeItem(t),!lr()||!!l.indexedDB}catch(n){return br()&&!!l.indexedDB}return!1}function Nr(){return(Ir()||"chrome-extension:"===Rr()||vr())&&!xr()&&Pr()&&!br()}function Ir(){return"http:"===Rr()||"https:"===Rr()}function Rr(){return l.location&&l.location.protocol||null}function Or(e){return!pr(e=e||jr())&&Cr(e)!=kr}function Dr(e){return"undefined"===typeof e?null:nr(e)}function Mr(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(n[t]=e[t]);return n}function Lr(e){if(null!==e)return JSON.parse(e)}function Fr(e){return e||Math.floor(1e9*Math.random()).toString()}function zr(e){return"Safari"!=Cr(e=e||jr())&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function Br(){var e=l.___jsl;if(e&&e.H)for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var n=0;n<e.CP.length;n++)e.CP[n]=null}function qr(e,t){if(e>t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=jr(),t=wr(),this.b=pr(e)||"ReactNative"===t}function Ur(){var e=l.document;return!e||"undefined"===typeof e.visibilityState||"visible"==e.visibilityState}function Hr(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(n){}return null}function Wr(){return!(!Tr("fireauth.oauthhelper",l)&&!Tr("fireauth.iframe",l))}qr.prototype.get=function(){var e=l.navigator;return!e||"boolean"!==typeof e.onLine||!Ir()&&"chrome-extension:"!==Rr()&&"undefined"===typeof e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Vr,Kr={};function Gr(e){Kr[e]||(Kr[e]=!0,"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(e))}try{var Yr={};Object.defineProperty(Yr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Yr,"abcd",{configurable:!0,enumerable:!0,value:2}),Vr=2==Yr.abcd}catch(ca){Vr=!1}function Qr(e,t,n){Vr?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function Xr(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&Qr(e,n,t[n])}function $r(e){var t={};return Xr(t,e),t}function Jr(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)Qr(t,n,Jr(e[n]));return t}function Zr(e){var t=e&&(e[oo]?"phone":null);if(!(t&&e&&e[ro]))throw new C("internal-error","Internal assert: invalid MultiFactorInfo object");Qr(this,"uid",e[ro]),Qr(this,"displayName",e[to]||null);var n=null;e[no]&&(n=new Date(e[no]).toUTCString()),Qr(this,"enrollmentTime",n),Qr(this,"factorId",t)}function eo(e){try{var t=new io(e)}catch(n){t=null}return t}Zr.prototype.v=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var to="displayName",no="enrolledAt",ro="mfaEnrollmentId",oo="phoneInfo";function io(e){Zr.call(this,e),Qr(this,"phoneNumber",e[oo])}function ao(e){var t={},n=e[uo],r=e[ho],o=e[fo];if(e=eo(e[po]),!o||o!=lo&&o!=co&&!n||o==co&&!r||o==so&&!e)throw Error("Invalid checkActionCode response!");o==co?(t[_o]=n||null,t[vo]=n||null,t[mo]=r):(t[_o]=r||null,t[vo]=r||null,t[mo]=n||null),t[go]=e||null,Qr(this,bo,o),Qr(this,yo,Jr(t))}S(io,Zr),io.prototype.v=function(){var e=io.Za.v.call(this);return e.phoneNumber=this.phoneNumber,e};var so="REVERT_SECOND_FACTOR_ADDITION",lo="EMAIL_SIGNIN",co="VERIFY_AND_CHANGE_EMAIL",uo="email",po="mfaInfo",ho="newEmail",fo="requestType",mo="email",_o="fromEmail",go="multiFactorInfo",vo="previousEmail",yo="data",bo="operation";
2function wo(e){var t=Ln(e=Fn(e),xo)||null,n=Ln(e,ko)||null,r=Ln(e,Ao)||null;if(r=r&&jo[r]||null,!t||!n||!r)throw new C("argument-error",xo+", "+ko+"and "+Ao+" are required in a valid action code URL.");Xr(this,{apiKey:t,operation:r,code:n,continueUrl:Ln(e,So)||null,languageCode:Ln(e,Co)||null,tenantId:Ln(e,Eo)||null})}var xo="apiKey",ko="oobCode",So="continueUrl",Co="languageCode",Ao="mode",Eo="tenantId",jo={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:so,signIn:lo,verifyAndChangeEmail:co,verifyEmail:"VERIFY_EMAIL"};function To(e){try{return new wo(e)}catch(t){return null}}function Po(e){var t=e[Do];if("undefined"===typeof t)throw new C("missing-continue-uri");if("string"!==typeof t||"string"===typeof t&&!t.length)throw new C("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[No];if(n&&"object"===typeof n){t=n[Fo];var r=n[Mo];if(n=n[Lo],"string"===typeof t&&t.length){if(this.a=t,"undefined"!==typeof r&&"boolean"!==typeof r)throw new C("argument-error",Mo+" property must be a boolean when specified.");if(this.g=!!r,"undefined"!==typeof n&&("string"!==typeof n||"string"===typeof n&&!n.length))throw new C("argument-error",Lo+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof t)throw new C("argument-error",Fo+" property must be a non empty string when specified.");if("undefined"!==typeof r||"undefined"!==typeof n)throw new C("missing-android-pkg-name")}}else if("undefined"!==typeof n)throw new C("argument-error",No+" property must be a non null object when specified.");if(this.f=null,(t=e[Oo])&&"object"===typeof t){if("string"===typeof(t=t[zo])&&t.length)this.f=t;else if("undefined"!==typeof t)throw new C("argument-error",zo+" property must be a non empty string when specified.")}else if("undefined"!==typeof t)throw new C("argument-error",Oo+" property must be a non null object when specified.");if("undefined"!==typeof(t=e[Ro])&&"boolean"!==typeof t)throw new C("argument-error",Ro+" property must be a boolean when specified.");if(this.c=!!t,"undefined"!==typeof(e=e[Io])&&("string"!==typeof e||"string"===typeof e&&!e.length))throw new C("argument-error",Io+" property must be a non empty string when specified.");this.i=e||null}var No="android",Io="dynamicLinkDomain",Ro="handleCodeInApp",Oo="iOS",Do="url",Mo="installApp",Lo="minimumVersion",Fo="packageName",zo="bundleId";function Bo(e){var t={};for(var n in t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f,t.dynamicLinkDomain=e.i,t)null===t[n]&&delete t[n];return t}var qo=null;function Uo(e){var t="";return function(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),o=qo[n];if(null!=o)return o;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!qo){qo={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var r=e.concat(t[n].split("")),o=0;o<r.length;o++){var i=r[o];void 0===qo[i]&&(qo[i]=o)}}}();for(var r=0;;){var o=n(-1),i=n(0),a=n(64),s=n(64);if(64===s&&-1===o)break;t(o<<2|i>>4),64!=a&&(t(i<<4&240|a>>2),64!=s&&t(a<<6&192|s))}}(e,(function(e){t+=String.fromCharCode(e)})),t}function Ho(e){var t=Vo(e);if(!(t&&t.sub&&t.iss&&t.aud&&t.exp))throw Error("Invalid JWT");this.g=e,this.c=t.exp,this.h=t.sub,k(),this.a=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.f=t.firebase&&t.firebase.tenant||null,this.b=!!t.is_anonymous||"anonymous"==this.a}function Wo(e){try{return new Ho(e)}catch(t){return null}}function Vo(e){if(!e)return null;if(3!=(e=e.split(".")).length)return null;for(var t=(4-(e=e[1]).length%4)%4,n=0;n<t;n++)e+=".";try{return JSON.parse(Uo(e))}catch(r){}return null}Ho.prototype.S=function(){return this.f},Ho.prototype.i=function(){return this.b},Ho.prototype.toString=function(){return this.g};var Ko="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Go=["client_id","response_type","scope","redirect_uri","state"],Yo={kd:{Ha:"locale",ta:700,sa:600,ea:"facebook.com",Va:Go},md:{Ha:null,ta:500,sa:750,ea:"github.com",Va:Go},nd:{Ha:"hl",ta:515,sa:680,ea:"google.com",Va:Go},td:{Ha:"lang",ta:485,sa:705,ea:"twitter.com",Va:Ko},gd:{Ha:"locale",ta:640,sa:600,ea:"apple.com",Va:[]}};function Qo(e){for(var t in Yo)if(Yo[t].ea==e)return Yo[t];return null}function Xo(e){var t={};t["facebook.com"]=ti,t["google.com"]=ri,t["github.com"]=ni,t["twitter.com"]=oi;var n=e&&e[Jo];try{if(n)return t[n]?new t[n](e):new ei(e);if("undefined"!==typeof e[$o])return new Zo(e)}catch(r){}return null}var $o="idToken",Jo="providerId";function Zo(e){var t=e[Jo];if(!t&&e[$o]){var n=Wo(e[$o]);n&&n.a&&(t=n.a)}if(!t)throw Error("Invalid additional user info!");"anonymous"!=t&&"custom"!=t||(t=null),n=!1,"undefined"!==typeof e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),Qr(this,"providerId",t),Qr(this,"isNewUser",n)}function ei(e){Zo.call(this,e),Qr(this,"profile",Jr((e=Lr(e.rawUserInfo||"{}"))||{}))}function ti(e){if(ei.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function ni(e){if(ei.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Qr(this,"username",this.profile&&this.profile.login||null)}function ri(e){if(ei.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function oi(e){if(ei.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Qr(this,"username",e.screenName||null)}function ii(e){var t=Fn(e),n=Ln(t,"link"),r=Ln(Fn(n),"link");return t=Ln(t,"deep_link_id"),Ln(Fn(t),"link")||t||r||n||e}function ai(e,t){if(!e&&!t)throw new C("internal-error","Internal assert: no raw session string available");if(e&&t)throw new C("internal-error","Internal assert: unable to determine the session type");this.a=e||null,this.b=t||null,this.type=this.a?si:li}S(ei,Zo),S(ti,ei),S(ni,ei),S(ri,ei),S(oi,ei);var si="enroll",li="signin";function ci(){}function ui(e,t){return e.then((function(e){if(e[Za]){var n=Wo(e[Za]);if(!n||t!=n.h)throw new C("user-mismatch");return e}throw new C("user-mismatch")})).o((function(e){throw e&&e.code&&e.code==j+"user-not-found"?new C("user-mismatch"):e}))}function di(e,t){if(!t)throw new C("internal-error","failed to construct a credential");this.a=t,Qr(this,"providerId",e),Qr(this,"signInMethod",e)}function pi(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function hi(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new di(e.providerId,e.pendingToken)}catch(t){}return null}function fi(e,t,n){if(this.a=null,t.idToken||t.accessToken)t.idToken&&Qr(this,"idToken",t.idToken),t.accessToken&&Qr(this,"accessToken",t.accessToken),t.nonce&&!t.pen
2dingToken&&Qr(this,"nonce",t.nonce),t.pendingToken&&(this.a=t.pendingToken);else{if(!t.oauthToken||!t.oauthTokenSecret)throw new C("internal-error","failed to construct a credential");Qr(this,"accessToken",t.oauthToken),Qr(this,"secret",t.oauthTokenSecret)}Qr(this,"providerId",e),Qr(this,"signInMethod",n)}function mi(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,e.nonce&&!e.a&&(t.nonce=e.nonce),t={postBody:Xn(t).toString(),requestUri:"http://localhost"},e.a&&(delete t.postBody,t.pendingToken=e.a),t}function _i(e){if(e&&e.providerId&&e.signInMethod){var t={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new fi(e.providerId,t,e.signInMethod)}catch(n){}}return null}function gi(e,t){this.Oc=t||[],Xr(this,{providerId:e,isOAuthProvider:!0}),this.Fb={},this.lb=(Qo(e)||{}).Ha||null,this.kb=null}function vi(e){if("string"!==typeof e||0!=e.indexOf("saml."))throw new C("argument-error",'SAML provider IDs must be prefixed with "saml."');gi.call(this,e,[])}function yi(e){gi.call(this,e,Go),this.a=[]}function bi(){yi.call(this,"facebook.com")}function wi(e){if(!e)throw new C("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return m(e)&&(t=e.accessToken),(new bi).credential({accessToken:t})}function xi(){yi.call(this,"github.com")}function ki(e){if(!e)throw new C("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return m(e)&&(t=e.accessToken),(new xi).credential({accessToken:t})}function Si(){yi.call(this,"google.com"),this.Aa("profile")}function Ci(e,t){var n=e;return m(e)&&(n=e.idToken,t=e.accessToken),(new Si).credential({idToken:n,accessToken:t})}function Ai(){gi.call(this,"twitter.com",Ko)}function Ei(e,t){var n=e;if(m(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new C("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new fi("twitter.com",n,"twitter.com")}function ji(e,t,n){this.a=e,this.f=t,Qr(this,"providerId","password"),Qr(this,"signInMethod",n===Pi.EMAIL_LINK_SIGN_IN_METHOD?Pi.EMAIL_LINK_SIGN_IN_METHOD:Pi.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Ti(e){return e&&e.email&&e.password?new ji(e.email,e.password,e.signInMethod):null}function Pi(){Xr(this,{providerId:"password",isOAuthProvider:!1})}function Ni(e,t){if(!(t=Ii(t)))throw new C("argument-error","Invalid email link!");return new ji(e,t.code,Pi.EMAIL_LINK_SIGN_IN_METHOD)}function Ii(e){return(e=To(e=ii(e)))&&e.operation===lo?e:null}function Ri(e){if(!(e.bb&&e.ab||e.Ja&&e.da))throw new C("internal-error");this.a=e,Qr(this,"providerId","phone"),this.ea="phone",Qr(this,"signInMethod","phone")}function Oi(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var t={};return H(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){e[n]&&(t[n]=e[n])})),new Ri(t)}return null}function Di(e){return e.a.Ja&&e.a.da?{temporaryProof:e.a.Ja,phoneNumber:e.a.da}:{sessionInfo:e.a.bb,code:e.a.ab}}function Mi(e){try{this.a=e||t.auth()}catch(n){throw new C("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Xr(this,{providerId:"phone",isOAuthProvider:!1})}function Li(e,t){if(!e)throw new C("missing-verification-id");if(!t)throw new C("missing-verification-code");return new Ri({bb:e,ab:t})}function Fi(e){if(e.temporaryProof&&e.phoneNumber)return new Ri({Ja:e.temporaryProof,da:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,r=e&&e.oauthTokenSecret,o=e&&e.nonce,i=e&&e.oauthIdToken,a=e&&e.pendingToken;try{switch(t){case"google.com":return Ci(i,n);case"facebook.com":return wi(n);case"github.com":return ki(n);case"twitter.com":return Ei(n,r);default:return n||r||i||a?a?0==t.indexOf("saml.")?new di(t,a):new fi(t,{pendingToken:a,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},t):new yi(t).credential({idToken:i,accessToken:n,rawNonce:o}):null}}catch(s){return null}}function zi(e){if(!e.isOAuthProvider)throw new C("invalid-oauth-provider")}function Bi(e,t,n,r,o,i,a){if(this.c=e,this.b=t||null,this.g=n||null,this.f=r||null,this.i=i||null,this.h=a||null,this.a=o||null,!this.g&&!this.a)throw new C("invalid-auth-event");
2if(this.g&&this.a)throw new C("invalid-auth-event");if(this.g&&!this.f)throw new C("invalid-auth-event")}function qi(e){return(e=e||{}).type?new Bi(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&A(e.error),e.postBody,e.tenantId):null}function Ui(){this.b=null,this.a=[]}ai.prototype.Fa=function(){return this.a?At(this.a):At(this.b)},ai.prototype.v=function(){return this.type==si?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},ci.prototype.ia=function(){},ci.prototype.b=function(){},ci.prototype.c=function(){},ci.prototype.v=function(){},di.prototype.ia=function(e){return ys(e,pi(this))},di.prototype.b=function(e,t){var n=pi(this);return n.idToken=t,bs(e,n)},di.prototype.c=function(e,t){return ui(ws(e,pi(this)),t)},di.prototype.v=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},fi.prototype.ia=function(e){return ys(e,mi(this))},fi.prototype.b=function(e,t){var n=mi(this);return n.idToken=t,bs(e,n)},fi.prototype.c=function(e,t){return ui(ws(e,mi(this)),t)},fi.prototype.v=function(){var e={providerId:this.providerId,sign
2InMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},gi.prototype.Ia=function(e){return this.Fb=fe(e),this},S(vi,gi),S(yi,gi),yi.prototype.Aa=function(e){return G(this.a,e)||this.a.push(e),this},yi.prototype.Nb=function(){return $(this.a)},yi.prototype.credential=function(e,t){var n;if(!(n=m(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:t||null}).idToken&&!n.accessToken)throw new C("argument-error","credential failed: must provide the ID token and/or the access token.");return new fi(this.providerId,n,this.providerId)},S(bi,yi),Qr(bi,"PROVIDER_ID","facebook.com"),Qr(bi,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),S(xi,yi),Qr(xi,"PROVIDER_ID","github.com"),Qr(xi,"GITHUB_SIGN_IN_METHOD","github.com"),S(Si,yi),Qr(Si,"PROVIDER_ID","google.com"),Qr(Si,"GOOGLE_SIGN_IN_METHOD","google.com"),S(Ai,gi),Qr(Ai,"PROVIDER_ID","twitter.com"),Qr(Ai,"TWITTER_SIGN_IN_METHOD","twitter.com"),ji.prototype.ia=function(e){return this.signInMethod==Pi.EMAIL_LINK_SIGN_IN_METHOD?nl(e,Ts,{email:this.a,oobCode:this.f}):nl(e,$s,{email:this.a,password:this.f})},ji.prototype.b=function(e,t){return this.signInMethod==Pi.EMAIL_LINK_SIGN_IN_METHOD?nl(e,Ps,{idToken:t,email:this.a,oobCode:this.f}):nl(e,Hs,{idToken:t,email:this.a,password:this.f})},ji.prototype.c=function(e,t){return ui(this.ia(e),t)},ji.prototype.v=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Xr(Pi,{PROVIDER_ID:"password"}),Xr(Pi,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Xr(Pi,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Ri.prototype.ia=function(e){return e.cb(Di(this))},Ri.prototype.b=function(e,t){var n=Di(this);return n.idToken=t,nl(e,Zs,n)},Ri.prototype.c=function(e,t){var n=Di(this);return n.operation="REAUTH",ui(e=nl(e,el,n),t)},Ri.prototype.v=function(){var e={providerId:"phone"};return this.a.bb&&(e.verificationId=this.a.bb),this.a.ab&&(e.verificationCode=this.a.ab),this.a.Ja&&(e.temporaryProof=this.a.Ja),this.a.da&&(e.phoneNumber=this.a.da),e},Mi.prototype.cb=function(e,t){var n=this.a.b;return At(t.verify()).then((function(r){if("string"!==typeof r)throw new C("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");if("recaptcha"===t.type){var o,i=m(e)?e.session:null,a=m(e)?e.phoneNumber:e;return o=i&&i.type==si?i.Fa().then((function(e){return function(e,t){return nl(e,Vs,t).then((function(e){return e.phoneSessionInfo.sessionInfo}))}(n,{idToken:e,phoneEnrollmentInfo:{phoneNumber:a,recaptchaToken:r}})})):i&&i.type==li?i.Fa().then((function(t){return function(e,t){return nl(e,Ks,t).then((function(e){return e.phoneResponseInfo.sessionInfo}))}(n,{mfaPendingCredential:t,mfaEnrollmentId:e.multiFactorHint&&e.multiFactorHint.uid||e.multiFactorUid,phoneSignInInfo:{recaptchaToken:r}})})):function(e,t){return nl(e,qs,t)}(n,{phoneNumber:a,recaptchaToken:r}),o.then((function(e){return"function"===typeof t.reset&&t.reset(),e}),(function(e){throw"function"===typeof t.reset&&t.reset(),e}))}throw new C("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}))},Xr(Mi,{PROVIDER_ID:"phone"}),Xr(Mi,{PHONE_SIGN_IN_METHOD:"phone"}),Bi.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.h&&e.push(this.h),e.join("-")},Bi.prototype.S=function(){return this.h},Bi.prototype.v=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.v()}};var Hi,Wi=null;function Vi(e){var t="unauthorized-domain",n=void 0,r=Fn(e);e=r.b,"chrome-extension"==(r=r.f)?n=qe("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==r||"https"==r?n=qe("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",C.call(this,t,n)}function Ki(e,t,n){C.call(this,e,n),(e=t||{}).Gb&&Qr(this,"email",e.Gb),e.da&&Qr(this,"phoneNumber",e.da),e.credential&&Qr(this,"credential",e.credential),e.Wb&&Qr(this,"tenantId",e.Wb)}function Gi(e){if(e.code){var t=e.code||"";0==t.indexOf(j)&&(t=t.substring(j.length));var n={credential:Fi(e),Wb:e.tenantId};if(e.email)n.Gb=e.email;else if(e.phoneNumber)n.da=e.phoneNumber;else if(!n.credential)return new C(t,e.message||void 0);return new Ki(t,n,e.message)}return null}function Yi(){}function Qi(e){return e.c||(e.c=e.b())}function Xi(){}function $i(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var r=t[n];try{return new ActiveXObject(r),e.f=r}catch(o){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function Ji(){}function Zi(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=w(this.oc,this),this.a.onerror=w(this.Pb,this),this.a.onprogress=w(this.pc,this),this.a.ontimeout=w(this.tc,this)}function ea(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function ta(e,t,n){this.reset(e,t,n,void 0,void 0)}S(Vi,C),S(Ki,C),Ki.prototype.v=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber),this.tenantId&&(e.tenantId=this.tenantId);var t=this.credential&&this.credential.v();return t&&_e(e,t),e},Ki.prototype.toJSON=function(){return this.v()},Yi.prototype.c=null,S(Xi,Yi),Xi.prototype.a=function(){var e=$i(this);return e?new ActiveXObject(e):new XMLHttpRequest},Xi.prototype.b=function(){var e={};return $i(this)&&(e[0]=!0,e[1]=!0),e},Hi=new Xi,S(Ji,Yi),Ji.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new Zi;throw Error("Unsupported browser")},Ji.prototype.b=function(){return{}},(e=Zi.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},e.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},e.abort=function(){this.a.abort()},e.setRequestHeader=function(){},e.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},e.oc=function(){this.status=200,this.response=this.responseText=this.a.responseText,ea(this,4)},e.Pb=function(){this.status=500,this.response=this.responseText="",ea(this,4)},e.tc=function(){this.Pb()},e.pc=function(){this.status=200,ea(this,1)},e.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},ta.prototype.a=null;function na(e){this.f=e,this.b=this.c=this.a=null}function ra(e,t){this.name=e,this.value=t}ta.prototype.reset=function(e,t,n,r,o){"number"==typeof o||0,r||k(),delete this.a},ra.prototype.toString=function(){return this.name};var oa=new ra("SEVERE",1e3),ia=new ra("WARNING",900),aa=new ra("
2CONFIG",700),sa=new ra("FINE",500);function la(e){return e.c?e.c:e.a?la(e.a):(D("Root logger has no level set."),null)}na.prototype.log=function(e,t,n){if(e.value>=la(this).value)for(f(t)&&(t=t()),e=new ta(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var ca,ua={},da=null;function pa(e){var t;if(da||(da=new na(""),ua[""]=da,da.c=aa),!(t=ua[e])){t=new na(e);var n=e.lastIndexOf("."),r=e.substr(n+1);(n=pa(e.substr(0,n))).b||(n.b={}),n.b[r]=t,t.a=n,ua[e]=t}return t}function ha(e,t){e&&e.log(sa,t,void 0)}function fa(e){this.f=e}function ma(e){bn.call(this),this.s=e,this.readyState=_a,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=pa("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}S(fa,Yi),fa.prototype.a=function(){return new ma(this.f)},fa.prototype.b=(ca={},function(){return ca}),S(ma,bn);var _a=0;function ga(e){e.c.read().then(e.nc.bind(e)).catch(e.Sa.bind(e))}function va(e,t){t&&e.f&&(e.status=e.f.status,e.statusText=e.f.statusText),e.readyState=4,e.f=null,e.c=null,e.l=null,ya(e)}function ya(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function ba(e){bn.call(this),this.headers=new jn,this.D=e||null,this.c=!1,this.B=this.a=null,this.h=this.P=this.l="",this.f=this.O=this.i=this.N=!1,this.g=0,this.s=null,this.m=wa,this.w=this.R=!1}(e=ma.prototype).open=function(e,t){if(this.readyState!=_a)throw this.abort(),Error("Error reopening a connection");this.m=e,this.g=t,this.readyState=1,ya(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.i,method:this.m,credentials:void 0,cache:void 0};e&&(t.body=e),this.s.fetch(new Request(this.g,t)).then(this.sc.bind(this),this.Sa.bind(this))},e.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,va(this,!1)),this.readyState=_a},e.sc=function(e){this.a&&(this.f=e,this.b||(this.b=e.headers,this.readyState=2,ya(this)),this.a&&(this.readyState=3,ya(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):"undefined"!==typeof l.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.l=new TextDecoder,ga(this)):e.text().then(this.rc.bind(this),this.Sa.bind(this)))))},e.nc=function(e){if(this.a){var t=this.l.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.response=this.responseText+=t),e.done?va(this,!0):ya(this),3==this.readyState&&ga(this)}},e.rc=function(e){this.a&&(this.response=this.responseText=e,va(this,!0))},e.qc=function(e){this.a&&(this.response=e,va(this,!0))},e.Sa=function(e){var t=this.h;t&&t.log(ia,"Failed to fetch url "+this.g,e instanceof Error?e:Error(e)),this.a&&va(this,!0)},e.setRequestHeader=function(e,t){this.i.append(e,t)},e.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.h)&&e.log(ia,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},e.getAllResponseHeaders=function(){if(!this.b){var e=this.h;return e&&e.log(ia,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},S(ba,bn);var wa="";ba.prototype.b=pa("goog.net.XhrIo");var xa=/^https?$/i,ka=["POST","PUT"];function Sa(e,t,n,r,o){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.P=n,e.N=!1,e.c=!0,e.a=e.D?e.D.a():Hi.a(),e.B=e.D?Qi(e.D):Qi(Hi),e.a.onreadystatechange=w(e.Sb,e);try{ha(e.b,Ra(e,"Opening Xhr")),e.O=!0,e.a.open(n,String(t),!0),e.O=!1}catch(a){return ha(e.b,Ra(e,"Error opening Xhr: "+a.message)),void Aa(e,a)}t=r||"";var i=new jn(e.headers);o&&function(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(h(e)||"string"===typeof e)H(e,t,void 0);else for(var n=En(e),r=An(e),o=r.length,i=0;i<o;i++)t.call(void 0,r[i],n&&n[i],e)}(o,(function(e,t){i.set(t,e)})),o=function(e){e:{for(var t=Ca,n=e.length,r="string"===typeof e?e.split(""):e,o=0;o<n;o++)if(o in r&&t.call(void 0,r[o],o,e)){t=o;break e}t=-1}return 0>t?null:"string"===typeof e?e.charAt(t):e[t]}(i.X()),r=l.FormData&&t instanceof l.FormData,!G(ka,n)||o||r||i.set("Content-Type","application/x-www-form-urlencoded;
2charset=utf-8"),i.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.R&&(e.a.withCredentials=e.R);try{Pa(e),0<e.g&&(e.w=function(e){return Ke&&rt(9)&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(e.a),ha(e.b,Ra(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.w)),e.w?(e.a.timeout=e.g,e.a.ontimeout=w(e.Ka,e)):e.s=Sn(e.Ka,e.g,e)),ha(e.b,Ra(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(a){ha(e.b,Ra(e,"Send error: "+a.message)),Aa(e,a)}}function Ca(e){return"content-type"==e.toLowerCase()}function Aa(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,Ea(e),Ta(e)}function Ea(e){e.N||(e.N=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function ja(e){if(e.c&&"undefined"!=typeof s)if(e.B[1]&&4==Na(e)&&2==Ia(e))ha(e.b,Ra(e,"Local request error detected and ignored"));else if(e.i&&4==Na(e))Sn(e.Sb,0,e);else if(e.dispatchEvent("readystatechange"),4==Na(e)){ha(e.b,Ra(e,"Request complete")),e.c=!1;try{var t,n=Ia(e);e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var o;if(o=0===n){var i=String(e.l).match(Nn)[1]||null;if(!i&&l.self&&l.self.location){var a=l.self.location.protocol;i=a.substr(0,a.length-1)}o=!xa.test(i?i.toLowerCase():"")}t=o}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var c=2<Na(e)?e.a.statusText:""}catch(u){ha(e.b,"Can not get status: "+u.message),c=""}e.h=c+" ["+Ia(e)+"]",Ea(e)}}finally{Ta(e)}}}function Ta(e,t){if(e.a){Pa(e);var n=e.a,r=e.B[0]?d:null;e.a=null,e.B=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(o){(e=e.b)&&e.log(oa,"Problem encountered resetting onreadystatechange: "+o.message,void 0)}}}function Pa(e){e.a&&e.w&&(e.a.ontimeout=null),e.s&&(l.clearTimeout(e.s),e.s=null)}function Na(e){return e.a?e.a.readyState:0}function Ia(e){try{return 2<Na(e)?e.a.status:-1}catch(t){return-1}}function Ra(e,t){return t+" ["+e.P+" "+e.l+" "+Ia(e)+"]"}function Oa(e){var t=Va;this.g=[],this.w=t,this.s=e||null,this.f=this.a=!1,this.c=void 0,this.u=this.B=this.i=!1,this.h=0,this.b=null,this.l=0}function Da(e,t,n){e.a=!0,e.c=n,e.f=!t,za(e)}function Ma(e){if(e.a){if(!e.u)throw new Ba(e);e.u=!1}}function La(e,t,n,r){e.g.push([t,n,r]),e.a&&za(e)}function Fa(e){return K(e.g,(function(e){return f(e[1])}))}function za(e){if(e.h&&e.a&&Fa(e)){var t=e.h,n=Ha[t];n&&(l.clearTimeout(n.a),delete Ha[t]),e.h=0}e.b&&(e.b.l--,delete e.b),t=e.c;for(var r=n=!1;e.g.length&&!e.i;){var o=e.g.shift(),i=o[0],a=o[1];if(o=o[2],i=e.f?a:i)try{var s=i.call(o||e.s,t);void 0!==s&&(e.f=e.f&&(s==t||s instanceof Error),e.c=t=s),(I(t)||"function"===typeof l.Promise&&t instanceof l.Promise)&&(r=!0,e.i=!0)}catch(c){t=c,e.f=!0,Fa(e)||(n=!0)}}e.c=t,r&&(s=w(e.m,e,!0),r=w(e.m,e,!1),t instanceof Oa?(La(t,s,r),t.B=!0):t.then(s,r)),n&&(t=new Ua(t),Ha[t.a]=t,e.h=t.a)}function Ba(){R.call(this)}function qa(){R.call(this)}function Ua(e){this.a=l.setTimeout(w(this.c,this),0),this.b=e}(e=ba.prototype).Ka=function(){"undefined"!=typeof s&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",ha(this.b,Ra(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},e.abort=function(){this.a&&this.c&&(ha(this.b,Ra(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ta(this))},e.Ba=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Ta(this,!0)),ba.Za.Ba.call(this)},e.Sb=function(){this.wa||(this.O||this.i||this.f?ja(this):this.Hc())},e.Hc=function(){ja(this)},e.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case wa:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(oa,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(t){return ha(this.b,"Can not get response: "+t.message),null}},Oa.prototype.cancel=function(e){if(this.a)this.c instanceof Oa&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):(t.l--,0>=t.l&&t.cancel())}this.w?this.w.call(this.s,this):this.u=!0,this.a||(e=new qa(this),Ma(this),Da(this,!1,e))}},Oa.prototype.m=function(e,t){this.i=!1,Da(this,e,t)},Oa.prototype.then=function(e,t,n){var r,o,i=new yt((function(e,t){r=e,o=t}));return La(this,r,(function(e){e instanceof qa?i.cancel():o(e)})),i.then(e,t,n)}
2,Oa.prototype.$goog_Thenable=!0,S(Ba,R),Ba.prototype.message="Deferred has already fired",Ba.prototype.name="AlreadyCalledError",S(qa,R),qa.prototype.message="Deferred was canceled",qa.prototype.name="CanceledError",Ua.prototype.c=function(){throw delete Ha[this.a],this.b};var Ha={};function Wa(e){var t={},n=t.document||document,r=Se(e).toString(),o=dt(document,"SCRIPT"),i={Tb:o,Ka:void 0},a=new Oa(i),s=null,d=null!=t.timeout?t.timeout:5e3;return 0<d&&(s=window.setTimeout((function(){Ka(o,!0);var e=new Qa(Ya,"Timeout reached for loading script "+r);Ma(a),Da(a,!1,e)}),d),i.Ka=s),o.onload=o.onreadystatechange=function(){o.readyState&&"loaded"!=o.readyState&&"complete"!=o.readyState||(Ka(o,t.ud||!1,s),Ma(a),Da(a,!0,null))},o.onerror=function(){Ka(o,!0,s);var e=new Qa(Ga,"Error while loading script "+r);Ma(a),Da(a,!1,e)},_e(i=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),at(o,i),function(e,t){ge(e,"HTMLScriptElement"),e.src=Se(t),null===u&&(u=(t=(t=l.document).querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&c.test(t)?t:""),(t=u)&&e.setAttribute("nonce",t)}(o,e),function(e){var t;return(t=(e||document).getElementsByTagName("HEAD"))&&0!=t.length?t[0]:e.documentElement}(n).appendChild(o),a}function Va(){if(this&&this.Tb){var e=this.Tb;e&&"SCRIPT"==e.tagName&&Ka(e,!0,this.Ka)}}function Ka(e,t,n){null!=n&&l.clearTimeout(n),e.onload=d,e.onerror=d,e.onreadystatechange=d,t&&window.setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),0)}var Ga=0,Ya=1;function Qa(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),R.call(this,n),this.code=e}function Xa(e){this.f=e}function $a(e,n,r){if(this.c=e,e=n||{},this.u=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=e.secureTokenTimeout||es,this.g=fe(e.secureTokenHeaders||ts),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.l=e.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.i=e.firebaseTimeout||ns,this.a=fe(e.firebaseHeaders||rs),r&&(this.a["X-Client-Version"]=r,this.g["X-Client-Version"]=r),r="Node"==wr(),!(r=l.XMLHttpRequest||r&&t.INTERNAL.node&&t.INTERNAL.node.XMLHttpRequest)&&!br())throw new C("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,br()?this.f=new fa(self):xr()?this.f=new Xa(r):this.f=new Ji,this.b=null}S(Qa,R),S(Xa,Yi),Xa.prototype.a=function(){return new this.f},Xa.prototype.b=function(){return{}};var Ja,Za="idToken",es=new qr(3e4,6e4),ts={"Content-Type":"application/x-www-form-urlencoded"},ns=new qr(3e4,6e4),rs={"Content-Type":"application/json"};function os(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function is(e,t){t?(e.a["X-Client-Version"]=t,e.g["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.g["X-Client-Version"])}function as(e,t,n,r,o,i,a){(function(){var e=jr();return!((e=Cr(e)!=Sr?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e)&&(!Ke||!tt||9<tt)})()||br()?e=w(e.w,e):(Ja||(Ja=new yt((function(e,t){!function(e,t){if(((window.gapi||{}).client||{}).request)e();else{l[ls]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))},function(e,t){La(e,null,t,void 0)}(Wa(Ce(ss,{onload:ls})),(function(){t(Error("CORS_UNSUPPORTED"))}))}}(e,t)}))),e=w(e.s,e)),e(t,n,r,o,i,a)}$a.prototype.S=function(){return this.b},$a.prototype.w=function(e,t,n,r,o,i){if(br()&&("undefined"===typeof l.fetch||"undefined"===typeof l.Headers||"undefined"===typeof l.Request))throw new C("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new ba(this.f);if(i){a.g=Math.max(0,i);var s=setTimeout((function(){a.dispatchEvent("timeout")}),i)}wn(a,"complete",(function(){s&&clearTimeout(s);var e=null;try{e=JSON.parse(function(e){try{return e.a?e.a.responseText:""}catch(t){return ha(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(n){e=null}t&&t(e)})),xn(a,"ready",(function(){s&&clearTimeout(s),Wt(this)})),xn(a,"timeout",(function(){s&&clearTimeout(s),Wt(this),t&&t(null)})),Sa(a,e,n,r,o)};var ss=new ve(we,"https://apis.google.com/js/client.js?onload=%{onload}"),ls="__fcb"+Math.floor(1e6*Math.random()).toString();function cs(e,t,n,r,o,i,a){var s=Fn(t+n);Mn(s,"key",e.c),a&&Mn(s,"cb",k().toString());var l="GET"==r;if(l)for(var c in o)o.hasOwnProperty(c)&&Mn(s,c,o[c]);return new yt((function(t,n){as(e,s.toString(),(function(e){e?e.error?n(ol(e,i||{})):t(e):n(new C("network-request-failed"))}),r,l?void 0:nr(Mr(o)),e.a,e.i.get())}))}function us(e){if("string"!==typeof(e=e.email)||!_r.test(e))throw new C("invalid-email")}function ds(e){"email"in e&&us(e)}function ps(e){if(!e[Za]){if(e.mfaPendingCredential)throw new C("multi-factor-auth-required",null,fe(e));throw new C("internal-error")}}function hs(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new C("internal-error")}else{if(!e.sessionInfo)throw new C("missing-verification-id");if(!e.code)throw new C("missing-verification-code")}}$a.prototype.s=function(e,t,n,r,o){var i=this;Ja.then((function(){window.gapi.client.setApiKey(i.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:r,headers:o,authType:"none",callback:function(e){window.gapi.auth.setToken(a),t&&t(e)}})})).o((function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})}))},$a.prototype.vb=function(){return nl(this,Ws,{})},$a.prototype.xb=function(e,t){return nl(this,Us,{idToken:e,email:t})},$a.prototype.yb=function(e,t){return nl(this,Hs,{idToken:e,password:t})};
2var fs={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function ms(e){if(!e.phoneVerificationInfo)throw new C("internal-error");if(!e.phoneVerificationInfo.sessionInfo)throw new C("missing-verification-id");if(!e.phoneVerificationInfo.code)throw new C("missing-verification-code")}function _s(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new C("internal-error")}function gs(e,t){return t.oauthIdToken&&t.providerId&&0==t.providerId.indexOf("oidc.")&&!t.pendingToken&&(e.sessionId?t.nonce=e.sessionId:e.postBody&&(Jn(e=new Yn(e.postBody),"nonce")&&(t.nonce=e.get("nonce")))),t}function vs(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=Gi(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=Gi(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=Gi(e)):e.errorMessage&&(t=rl(e.errorMessage)),t)throw t;ps(e)}function ys(e,t){return t.returnIdpCredential=!0,nl(e,Gs,t)}function bs(e,t){return t.returnIdpCredential=!0,nl(e,Qs,t)}function ws(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,nl(e,Ys,t)}function xs(e){if(!e.oobCode)throw new C("invalid-action-code")}(e=$a.prototype).zb=function(e,t){var n={idToken:e},r=[];return pe(fs,(function(e,o){var i=t[o];null===i?r.push(e):o in t&&(n[o]=i)})),r.length&&(n.deleteAttribute=r),nl(this,Us,n)},e.rb=function(e,t){return _e(e={requestType:"PASSWORD_RESET",email:e},t),nl(this,Ls,e)},e.sb=function(e,t){return _e(e={requestType:"EMAIL_SIGNIN",email:e},t),nl(this,Os,e)},e.qb=function(e,t){return _e(e={requestType:"VERIFY_EMAIL",idToken:e},t),nl(this,Ds,e)},e.Ab=function(e,t,n){return _e(e={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:e,newEmail:t},n),nl(this,Ms,e)},e.cb=function(e){return nl(this,Js,e)},e.jb=function(e,t){return nl(this,Bs,{oobCode:e,newPassword:t})},e.Pa=function(e){return nl(this,Ss,{oobCode:e})},e.fb=function(e){return nl(this,ks,{oobCode:e})};var ks={endpoint:"setAccountInfo",A:xs,Y:"email",C:!0},Ss={endpoint:"resetPassword",A:xs,G:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t&&"VERIFY_AND_CHANGE_EMAIL"!=t)throw new C("internal-error")},C:!0},Cs={endpoint:"signupNewUser",A:function(e){if(us(e),!e.password)throw new C("weak-password")},G:ps,U:!0,C:!0},As={endpoint:"createAuthUri",C:!0},Es={endpoint:"deleteAccount",M:["idToken"]},js={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],A:function(e){if("array"!=p(e.deleteProvider))throw new C("internal-error")}},Ts={endpoint:"emailLinkSignin",M:["email","oobCode"],A:us,G:ps,U:!0,C:!0},Ps={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],A:us,G:ps,U:!0},Ns={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],A:ms,G:ps,C:!0,La:!0},Is={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],A:ms,G:ps,C:!0,La:!0},Rs={endpoint:"getAccountInfo"},Os={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new C("internal-error");us(e)},Y:"email",C:!0},Ds={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],A:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new C("internal-error")},Y:"email",C:!0},Ms={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],A:function(e){if("VERIFY_AND_CHANGE_EMAIL"!=e.requestType)throw new C("internal-error")},Y:"email",C:!0},Ls={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(e){if("PASSWORD_RESET"!=e.requestType)throw new C("internal-error");us(e)},Y:"email",C:!0},Fs={hb:!0,endpoint:"getProjectConfig",Rb:"GET"},zs={hb:!0,endpoint:"getRecaptchaParam",Rb:"GET",G:function(e){if(!e.recaptchaSiteKey)throw new C("internal-error")}},Bs={endpoint:"resetPassword",A:xs,Y:"email",C:!0},qs={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Y:"sessionInfo",C:!0},Us={endpoint:"setAccountInfo",M:["idToken"],A:ds,U:!0},Hs={endpoint:"setAccountInfo",M:["idToken"],A:function(e){if(ds(e),!e.password)throw new C("weak-password")},G:ps,U:!0},Ws={endpoint:"signupNewUser",G:ps,U:!0,C:!0},Vs={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],A:function(e){if(!e.phoneEnrollmentInfo)throw new C("internal-error");
2if(!e.phoneEnrollmentInfo.phoneNumber)throw new C("missing-phone-number");if(!e.phoneEnrollmentInfo.recaptchaToken)throw new C("missing-app-credential")},G:function(e){if(!e.phoneSessionInfo||!e.phoneSessionInfo.sessionInfo)throw new C("internal-error")},C:!0,La:!0},Ks={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(e){if(!e.phoneSignInInfo||!e.phoneSignInInfo.recaptchaToken)throw new C("missing-app-credential")},G:function(e){if(!e.phoneResponseInfo||!e.phoneResponseInfo.sessionInfo)throw new C("internal-error")},C:!0,La:!0},Gs={endpoint:"verifyAssertion",A:_s,Wa:gs,G:vs,U:!0,C:!0},Ys={endpoint:"verifyAssertion",A:_s,Wa:gs,G:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new C("user-not-found");if(e.errorMessage)throw rl(e.errorMessage);ps(e)},U:!0,C:!0},Qs={endpoint:"verifyAssertion",A:function(e){if(_s(e),!e.idToken)throw new C("internal-error")},Wa:gs,G:vs,U:!0},Xs={endpoint:"verifyCustomToken",A:function(e){if(!e.token)throw new C("invalid-custom-token")},G:ps,U:!0,C:!0},$s={endpoint:"verifyPassword",A:function(e){if(us(e),!e.password)throw new C("wrong-password")},G:ps,U:!0,C:!0},Js={endpoint:"verifyPhoneNumber",A:hs,G:ps,C:!0},Zs={endpoint:"verifyPhoneNumber",A:function(e){if(!e.idToken)throw new C("internal-error");hs(e)},G:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",Gi(e);ps(e)}},el={Eb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:hs,G:ps,C:!0},tl={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],G:function(e){if(!!e[Za]^!!e.refreshToken)throw new C("internal-error")},C:!0,La:!0};function nl(e,t,n){if(!function(e,t){if(!t||!t.length)return!0;if(!e)return!1;for(var n=0;n<t.length;n++){var r=e[t[n]];if(void 0===r||null===r||""===r)return!1}return!0}(n,t.M))return Et(new C("internal-error"));var r,o=!!t.La,i=t.Rb||"POST";return At(n).then(t.A).then((function(){return t.U&&(n.returnSecureToken=!0),t.C&&e.b&&"undefined"===typeof n.tenantId&&(n.tenantId=e.b),cs(e,o?e.l:e.h,t.endpoint,i,n,t.Eb,t.hb||!1)})).then((function(e){return r=e,t.Wa?t.Wa(n,r):r})).then(t.G).then((function(){if(!t.Y)return r;if(!(t.Y in r))throw new C("internal-error");return r[t.Y]}))}function rl(e){return ol({error:{errors:[{message:e}],code:400,message:e}})}function ol(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new C(r[n]):null)return n;for(var o in n=e.error&&e.error.message||"",_e(r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
2NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},t||{}),t=(t=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<t.length?t[1]:void 0,r)if(0===n.indexOf(o))return new C(r[o],t);return!t&&e&&(t=Dr(e)),new C("internal-error",t)}function il(e){this.b=e,this.a=null,this.nb=function(e){return(cl||(cl=new yt((function(e,t){function n(){Br(),Tr("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){Br(),t(Error("Network Error"))},timeout:sl.get()})}if(Tr("gapi.iframes.Iframe"))e();else if(Tr("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();l[r]=function(){Tr("gapi.load")?n():t(Error("Network Error"))},At(Wa(r=Ce(al,{onload:r}))).o((function(){t(Error("Network Error"))}))}})).o((function(e){throw cl=null,e})))).then((function(){return new yt((function(t,n){Tr("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:Tr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(r){function o(){clearTimeout(i),t()}e.a=r,e.a.restyle({setHideOnLeave:!1});var i=setTimeout((function(){n(Error("Network Error"))}),ll.get());r.ping(o).then(o,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var al=new ve(we,"https://apis.google.com/js/api.js?onload=%{onload}"),sl=new qr(3e4,6e4),ll=new qr(5e3,15e3),cl=null;function ul(e,t,n){this.i=e,this.g=t,this.h=n,this.f=null,this.a=zn(this.i,"/__/auth/iframe"),Mn(this.a,"apiKey",this.g),Mn(this.a,"appName",this.h),this.b=null,this.c=[]}function dl(e,t,n,r,o){this.s=e,this.m=t,this.c=n,this.u=r,this.i=this.g=this.l=null,this.a=o,this.h=this.f=null}function pl(e){try{return t.app(e).auth().Ea()}catch(n){return[]}}function hl(e,t,n,r,o){this.u=e,this.f=t,this.b=n,this.c=r||null,this.h=o||null,this.m=this.s=this.w=null,this.g=[],this.l=this.a=null}function fl(e){var t=cr();return function(e){return nl(e,Fs,{}).then((function(e){return e.authorizedDomains||[]}))}(e).then((function(e){e:{var n=Fn(t),r=n.f;n=n.b;for(var o=0;o<e.length;o++){var i=e[o],a=n,s=r;if(0==i.indexOf("chrome-extension://")?a=Fn(i).b==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:mr.test(i)?a=a==i:(i=i.split(".").join("\\."),a=new RegExp("^(.+\\."+i+"|"+i+")$","i").test(a)),a){e=!0;break e}}e=!1}if(!e)throw new Vi(cr())}))}function ml(e){return e.l||(e.l=gr().then((function(){if(!e.s){var t=e.c,n=e.h,r=pl(e.b),o=new ul(e.u,e.f,e.b);o.f=t,o.b=n,o.c=$(r||[]),e.s=o.toString()}e.i=new il(e.s),function(e){if(!e.i)throw Error("IfcHandler must be initialized!");!function(e,t){e.nb.then((function(){e.a.register("authEvent",t,Tr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(e.i,(function(t){var n={};if(t&&t.authEvent){var r=!1;for(t=qi(t.authEvent),n=0;n<e.g.length;n++)r=e.g[n](t)||r;return(n={}).status=r?"ACK":"ERROR",At(n)}return n.status="ERROR",At(n)}))}(e)}))),e.l}function _l(e){return e.m||(e.w=e.c?Er(e.c,pl(e.b)):null,e.m=new $a(e.f,N(e.h),e.w)),e.m}function gl(e,t,n,r,o,i,a,s,l,c,u){return(e=new dl(e,t,n,r,o)).l=i,e.g=a,e.i=s,e.b=fe(l||null),e.f=c,e.ub(u).toString()}function vl(e){if(this.a=e||t.INTERNAL.reactNative&&t.INTERNAL.reactNative.AsyncStorage,!this.a)throw new C("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function yl(e){this.b=e,this.a={},this.f=w(this.c,this)}ul.prototype.toString=function(){return this.f?Mn(this.a,"v",this.f):$n(this.a.a,"v"),this.b?Mn(this.a,"eid",this.b):$n(this.a.a,"eid"),this.c.length?Mn(this.a,"fw",this.c.join(",")):$n(this.a.a,"fw"),this.a.toString()},dl.prototype.ub=function(e){return this.h=e,this},dl.prototype.toString=function(){var e=zn(this.s,"/__/auth/handler");if(Mn(e,"apiKey",this.m),Mn(e,"appName",this.c),Mn(e,"authType",this.u),this.a.isOAuthProvider){var n=this.a;try{var r=t.app(this.c).auth().ja()}catch(l){r=null}for(var o in n.kb=r,Mn(e,"providerId",this.a.providerId),r=Mr((n=this.a).Fb))r[o]=r[o].toString();o=n.Oc,r=fe(r);for(var i=0;i<o.length;i++){var a=o[i];a in r&&delete r[a]}n.lb&&n.kb&&!r[n.lb]&&(r[n.lb]=n.kb),he(r)||Mn(e,"customParameters",Dr(r))}if("function"===typeof this.a.Nb&&((n=this.a.Nb()).length&&Mn(e,"scopes",n.join(","))),this.l?Mn(e,"redirectUrl",this.l):$n(e.a,"redirectUrl"),this.g?Mn(e,"eventId",this.g):$n(e.a,"eventId"),this.i?Mn(e,"v",this.i):$n(e.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Ln(e,s)&&Mn(e,s,this.b[s]);return this.h?Mn(e,"tid",this.h):$n(e.a,"tid"),this.f?Mn(e,"eid",this.f):$n(e.a,"eid"),(s=pl(this.c)).length&&Mn(e,"fw",s.join(",")),e.toString()},(e=hl.prototype).Lb=function(e,t,n){var r=new C("popup-closed-by-user"),o=new C("web-storage-unsupported"),i=this,a=!1;return this.ka().then((function(){(function(e){var t={type:"webStorageSupport"};return ml(e).then((function(){return function(e,t){return e.nb.then((function(){return new yt((function(n){e.a.send(t.type,t,n,Tr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(e.i,t)})).then((function(e){if(e&&e.length&&"undefined"!==typeof e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()}))})(i).then((function(n){n||(e&&hr(e),t(o),a=!0)}))})).o((function(){})).then((function(){if(!a)return function(e){return new yt((function(t){return function n(){Cn(2e3).then((function(){if(e&&!e.closed)return n();t()}))}()}))}(e)})).then((function(){if(!a)return Cn(n).then((function(){t(r)}))}))},e.Ub=function(){var e=jr();return!Or(e)&&!zr(e)},e.Qb=function(){return!1}
2,e.Jb=function(e,t,n,r,o,i,a,s){if(!e)return Et(new C("popup-blocked"));if(a&&!Or())return this.ka().o((function(t){hr(e),o(t)})),r(),At();this.a||(this.a=fl(_l(this)));var l=this;return this.a.then((function(){var t=l.ka().o((function(t){throw hr(e),o(t),t}));return r(),t})).then((function(){(zi(n),a)||ur(gl(l.u,l.f,l.b,t,n,null,i,l.c,void 0,l.h,s),e)})).o((function(e){throw"auth/network-request-failed"==e.code&&(l.a=null),e}))},e.Kb=function(e,t,n,r){this.a||(this.a=fl(_l(this)));var o=this;return this.a.then((function(){zi(t),ur(gl(o.u,o.f,o.b,e,t,cr(),n,o.c,void 0,o.h,r))})).o((function(e){throw"auth/network-request-failed"==e.code&&(o.a=null),e}))},e.ka=function(){var e=this;return ml(this).then((function(){return e.i.nb})).o((function(){throw e.a=null,new C("network-request-failed")}))},e.Xb=function(){return!0},e.Ca=function(e){this.g.push(e)},e.Qa=function(e){Q(this.g,(function(t){return t==e}))},(e=vl.prototype).get=function(e){return At(this.a.getItem(e)).then((function(e){return e&&Lr(e)}))},e.set=function(e,t){return At(this.a.setItem(e,Dr(t)))},e.T=function(e){return At(this.a.removeItem(e))},e.ba=function(){},e.ha=function(){};var bl,wl=[];function xl(e,t,n){he(e.a)&&e.b.addEventListener("message",e.f),"undefined"===typeof e.a[t]&&(e.a[t]=[]),e.a[t].push(n)}function kl(e){this.a=e}function Sl(e){this.c=e,this.b=!1,this.a=[]}function Cl(e,t,n,r){var o,i,a,s,l=n||{},c=null;if(e.b)return Et(Error("connection_unavailable"));var u=r?800:50,d="undefined"!==typeof MessageChannel?new MessageChannel:null;return new yt((function(n,r){d?(o=Math.floor(Math.random()*Math.pow(10,20)).toString(),d.port1.start(),a=setTimeout((function(){r(Error("unsupported_event"))}),u),c={messageChannel:d,onMessage:i=function(e){e.data.eventId===o&&("ack"===e.data.status?(clearTimeout(a),s=setTimeout((function(){r(Error("timeout"))}),3e3)):"done"===e.data.status?(clearTimeout(s),"undefined"!==typeof e.data.response?n(e.data.response):r(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),r(Error("invalid_response"))))}},e.a.push(c),d.port1.addEventListener("message",i),e.c.postMessage({eventType:t,eventId:o,data:l},[d.port2])):r(Error("connection_unavailable"))})).then((function(t){return Al(e,c),t})).o((function(t){throw Al(e,c),t}))}function Al(e,t){if(t){var n=t.messageChannel,r=t.onMessage;n&&(n.port1.removeEventListener("message",r),n.port1.close()),Q(e.a,(function(e){return e==t}))}}function El(){if(!Pl())throw new C("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.u=l.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.s=!1,this.h=null;var e=this;br()&&self?(this.l=function(){var e=br()?self:null;if(H(wl,(function(n){n.b==e&&(t=n)})),!t){var t=new yl(e);wl.push(t)}return t}(),xl(this.l,"keyChanged",(function(t,n){return Dl(e).then((function(t){return 0<t.length&&H(e.a,(function(e){e(t)})),{keyProcessed:G(t,n.key)}}))})),xl(this.l,"ping",(function(){return At(["keyChanged"])}))):function(){var e=l.navigator;return e&&e.serviceWorker?At().then((function(){return e.serviceWorker.ready})).then((function(e){return e.active||null})).o((function(){return null})):At(null)}().then((function(t){(e.h=t)&&(e.g=new Sl(new kl(t)),Cl(e.g,"ping",null,!0).then((function(t){t[0].fulfilled&&G(t[0].value,"keyChanged")&&(e.s=!0)})).o((function(){})))}))}function jl(e){return new yt((function(t,n){var r=e.u.open("firebaseLocalStorageDb",1);r.onerror=function(e){try{e.preventDefault()}catch(t){}n(Error(e.target.error))},r.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(t){n(t)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?t(r):function(e){return new yt((function(t,n){var r=e.u.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){t()},r.onerror=function(e){n(Error(e.target.error))}}))}(e).then((function(){return jl(e)})).then((function(e){t(e)})).o((function(e){n(e)}))}}))}function Tl(e){return e.m||(e.m=jl(e)),e.m}function Pl(){try{return!!l.indexedDB}catch(ca){return!1}}function Nl(e){return e.objectStore("firebaseLocalStorage")}function Il(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function Rl(e){return new yt((function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(e.target.error)}}))}function Ol(e,t){return e.g&&e.h&&function(){var e=l.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?Cl(e.g,"keyChanged",{key:t},e.s).then((function(){})).o((function(){})):At()}function Dl(e){return Tl(e).then((function(e){var t=Nl(Il(e,!1));return t.getAll?Rl(t.getAll()):new yt((function(e,n){var r=[],o=t.openCursor();o.onsuccess=function(t){(t=t.target.result)?(r.push(t.value),t.continue()):e(r)},o.onerror=function(e){n(e.target.error)}}))})).then((function(t){var n={},r=[];if(0==e.b){for(r=0;r<t.length;r++)n[t[r].fbase_key]=t[r].value;r=dr(e.c,n),e.c=n}return r}))}function Ml(e){e.i&&e.i.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function Ll(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=At().then((function(){if(Pl()){var e=Fr(),r="__sak"+e;return bl||(bl=new El),(n=bl).set(r,e).then((function(){return n.get(r)})).then((function(t){if(t!==e)throw Error("indexedDB not supported!");return n.T(r)})).then((function(){return n})).o((function(){return t.c}))}return t.c})).then((function(e){return t.type=e.type,e.ba((function(e){H(t.a,(function(t){t(e)}))})),e}))}function Fl(){this.a={},this.type="inMemory"}function zl(){if(!function(){var e="Node"==wr();if(e=Bl()||e&&t.INTERNAL.node&&t.INTERNAL.node.localStorage,!e)return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(n){return!1}}()){if("Node"==wr())throw new C("internal-error","The LocalStorage compatibility library was not found.");throw new C("web-storage-unsupported")}this.a=Bl()||t.INTERNAL.node.localStorage,this.type="localStorage"}function Bl(){try{var e=l.localStorage,t=Fr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(n){return null}}function ql(){this.type="nullStorage"}function Ul(){if(!function(){var e="Node"==wr();if(e=Hl()||e&&t.INTERNAL.node&&t.INTERNAL.node.sessionStorage,!e)return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(n){return!1}}()){if("Node"==wr())throw new C("internal-error","The SessionStorage compatibility library was not found.");throw new C("web-storage-unsupported")}this.a=Hl()||t.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Hl(){try{var e=l.sessionStorage,t=Fr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(n){return null}}function Wl(){var e={};e.Browser=Gl,e.Node=Yl,e.ReactNative=Ql,e.Worker=Xl,this.a=e[wr()]}yl.prototype.c=function(e){var t=e.data.eventType,n=e.data.eventId,r=this.a[t];if(r&&0<r.length){e.ports[0].postMessage({status:"ack",eventId:n,eventType:t,response:null});var o=[];H(r,(function(t){o.push(At().then((function(){return t(e.origin,e.data.data)})))})),Tt(o).then((function(r){var o=[];H(r,(function(e){o.push({fulfilled:e.Mb,value:e.value,reason:e.reason?e.reason.message:void 0})})),H(o,(function(e){for(var t in e)"undefined"===typeof e[t]&&delete e[t]})),e.ports[0].postMessage({status:"done",eventId:n,eventType:t,response:o})}))}},kl.prototype.postMessage=function(e,t){this.a.postMessage(e,t)},Sl.prototype.close=function(){for(;0<this.a.length;)Al(this,this.a[0]);this.b=!0},(e=El.prototype).set=function(e,t){var n,r=!1,o=this;return Tl(this).then((function(t){return Rl((t=Nl(Il(n=t,!0))).get(e))})).then((function(i){var a=Nl(Il(n,!0));return i?(i.value=t,Rl(a.put(i))):(o.b++,r=!0,(i={}).fbase_key=e,i.value=t,Rl(a.add(i)))})).then((function(){return o.c[e]=t,Ol(o,e)})).ma((function(){r&&o.b--}))},e.get=function(e){return Tl(this).then((function(t){return Rl(Nl(Il(t,!1)).get(e))})).then((function(e){return e&&e.value}))},e.T=function(e){var t=!1,n=this;return Tl(this).then((function(r){return t=!0,n.b++,Rl(Nl(Il(r,!0)).delete(e))})).then((function(){return delete n.c[e],Ol(n,e)})).ma((function(){t&&n.b--}))},e.ba=function(e){0==this.a.length&&function(e){function t(){e.f=setTimeout((function(){e.i=Dl(e).then((function(t){0<t.length&&H(e.a,(function(e){e(t)}))}
2)).then((function(){t()})).o((function(e){"STOP_EVENT"!=e.message&&t()}))}),800)}Ml(e),t()}(this),this.a.push(e)},e.ha=function(e){Q(this.a,(function(t){return t==e})),0==this.a.length&&Ml(this)},(e=Ll.prototype).get=function(e){return this.b.then((function(t){return t.get(e)}))},e.set=function(e,t){return this.b.then((function(n){return n.set(e,t)}))},e.T=function(e){return this.b.then((function(t){return t.T(e)}))},e.ba=function(e){this.a.push(e)},e.ha=function(e){Q(this.a,(function(t){return t==e}))},(e=Fl.prototype).get=function(e){return At(this.a[e])},e.set=function(e,t){return this.a[e]=t,At()},e.T=function(e){return delete this.a[e],At()},e.ba=function(){},e.ha=function(){},(e=zl.prototype).get=function(e){var t=this;return At().then((function(){return Lr(t.a.getItem(e))}))},e.set=function(e,t){var n=this;return At().then((function(){var r=Dr(t);null===r?n.T(e):n.a.setItem(e,r)}))},e.T=function(e){var t=this;return At().then((function(){t.a.removeItem(e)}))},e.ba=function(e){l.window&&ln(l.window,"storage",e)},e.ha=function(e){l.window&&dn(l.window,"storage",e)},(e=ql.prototype).get=function(){return At(null)},e.set=function(){return At()},e.T=function(){return At()},e.ba=function(){},e.ha=function(){},(e=Ul.prototype).get=function(e){var t=this;return At().then((function(){return Lr(t.a.getItem(e))}))},e.set=function(e,t){var n=this;return At().then((function(){var r=Dr(t);null===r?n.T(e):n.a.setItem(e,r)}))},e.T=function(e){var t=this;return At().then((function(){t.a.removeItem(e)}))},e.ba=function(){},e.ha=function(){};var Vl,Kl,Gl={F:zl,$a:Ul},Yl={F:zl,$a:Ul},Ql={F:vl,$a:ql},Xl={F:zl,$a:ql},$l={od:"local",NONE:"none",qd:"session"};function Jl(){var e=!(zr(jr())||!yr()),t=Or(),n=Pr();this.m=e,this.h=t,this.l=n,this.a={},Vl||(Vl=new Wl),e=Vl;try{this.g=!lr()&&Wr()||!l.indexedDB?new e.a.F:new Ll(br()?new Fl:new e.a.F)}catch(r){this.g=new Fl,this.h=!0}try{this.i=new e.a.$a}catch(r){this.i=new Fl}this.u=new Fl,this.f=w(this.Vb,this),this.b={}}function Zl(){return Kl||(Kl=new Jl),Kl}function ec(e,t){switch(t){case"session":return e.i;case"none":return e.u;default:return e.g}}function tc(e,t){return"firebase:"+e.name+(t?":"+t:"")}function nc(e,t,n){return n=tc(t,n),"local"==t.F&&(e.b[n]=null),ec(e,t.F).T(n)}function rc(e){e.c&&(clearInterval(e.c),e.c=null)}function oc(e){this.a=e,this.b=Zl()}(e=Jl.prototype).get=function(e,t){return ec(this,e.F).get(tc(e,t))},e.set=function(e,t,n){var r=tc(e,n),o=this,i=ec(this,e.F);return i.set(r,t).then((function(){return i.get(r)})).then((function(t){"local"==e.F&&(o.b[r]=t)}))},e.addListener=function(e,t,n){e=tc(e,t),this.l&&(this.b[e]=l.localStorage.getItem(e)),he(this.a)&&(ec(this,"local").ba(this.f),this.h||(lr()||!Wr())&&l.indexedDB||!this.l||function(e){rc(e),e.c=setInterval((function(){for(var t in e.a){var n=l.localStorage.getItem(t),r=e.b[t];n!=r&&(e.b[t]=n,n=new Xt({type:"storage",key:t,target:window,oldValue:r,newValue:n,a:!0}),e.Vb(n))}}),1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},e.removeListener=function(e,t,n){e=tc(e,t),this.a[e]&&(Q(this.a[e],(function(e){return e==n})),0==this.a[e].length&&delete this.a[e]),he(this.a)&&(ec(this,"local").ha(this.f),rc(this))},e.Vb=function(e){if(e&&e.f){var t=e.a.key;if(null==t)for(var n in this.a){var r=this.b[n];"undefined"===typeof r&&(r=null);var o=l.localStorage.getItem(n);o!==r&&(this.b[n]=o,this.ib(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if("undefined"!==typeof e.a.a?ec(this,"local").ha(this.f):rc(this),this.m)if(n=l.localStorage.getItem(t),(r=e.a.newValue)!==n)null!==r?l.localStorage.setItem(t,r):l.localStorage.removeItem(t);else if(this.b[t]===r&&"undefined"===typeof e.a.a)return;var i=this;n=function(){"undefined"===typeof e.a.a&&i.b[t]===l.localStorage.getItem(t)||(i.b[t]=l.localStorage.getItem(t),i.ib(t))},Ke&&tt&&10==tt&&l.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else H(e,w(this.ib,this))},e.ib=function(e){this.a[e]&&H(this.a[e],(function(e){e()}))};var ic,ac={name:"authEvent",F:"local"};function sc(){this.a=Zl()}function lc(e,t){this.b=cc,this.f=l.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.l=l.Int32Array?new Int32Array(64):Array(64),void 0===ic&&(ic=l.Int32Array?new Int32Array(_c):_c),this.reset()}S(lc,(function(){this.b=-1}));for(var cc=64,uc=cc-1,dc=[],pc=0;pc<uc;pc++)dc[pc]=0;var hc=X(128,dc);function fc(e){for(var t=e.f,n=e.l,r=0,o=0;o<t.length;)n[r++]=t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3],o=4*r;for(t=16;64>t;
2t++){o=0|n[t-15],r=0|n[t-2];var i=(0|n[t-16])+((o>>>7|o<<25)^(o>>>18|o<<14)^o>>>3)|0,a=(0|n[t-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[t]=i+a|0}r=0|e.a[0],o=0|e.a[1];var s=0|e.a[2],l=0|e.a[3],c=0|e.a[4],u=0|e.a[5],d=0|e.a[6];for(i=0|e.a[7],t=0;64>t;t++){var p=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&s^o&s)|0;a=(i=i+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&u^~c&d)+(0|ic[t])|0)+(0|n[t])|0)|0,i=d,d=u,u=c,c=l+a|0,l=s,s=o,o=r,r=a+p|0}e.a[0]=e.a[0]+r|0,e.a[1]=e.a[1]+o|0,e.a[2]=e.a[2]+s|0,e.a[3]=e.a[3]+l|0,e.a[4]=e.a[4]+c|0,e.a[5]=e.a[5]+u|0,e.a[6]=e.a[6]+d|0,e.a[7]=e.a[7]+i|0}function mc(e,t,n){void 0===n&&(n=t.length);var r=0,o=e.c;if("string"===typeof t)for(;r<n;)e.f[o++]=t.charCodeAt(r++),o==e.b&&(fc(e),o=0);else{if(!h(t))throw Error("message must be string or array");for(;r<n;){var i=t[r++];if(!("number"==typeof i&&0<=i&&255>=i&&i==(0|i)))throw Error("message must be a byte array");e.f[o++]=i,o==e.b&&(fc(e),o=0)}}e.c=o,e.g+=n}lc.prototype.reset=function(){this.g=this.c=0,this.a=l.Int32Array?new Int32Array(this.h):$(this.h)};var _c=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function gc(){lc.call(this,8,vc)}S(gc,lc);var vc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function yc(e,t,n,r,o){this.u=e,this.i=t,this.l=n,this.m=r||null,this.s=o||null,this.h=t+":"+n,this.w=new sc,this.g=new oc(this.h),this.f=null,this.b=[],this.a=this.c=null}function bc(e){return new C("invalid-cordova-configuration",e)}function wc(e){var t=new gc;mc(t,e),e=[];var n=8*t.g;56>t.c?mc(t,hc,56-t.c):mc(t,hc,t.b-(t.c-56));for(var r=63;56<=r;r--)t.f[r]=255&n,n/=256;for(fc(t),r=n=0;r<t.i;r++)for(var o=24;0<=o;o-=8)e[n++]=t.a[r]>>o&255;return function(e){return V(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join("")}(e)}function xc(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(r){}}function kc(e){return e.f||(e.f=e.ka().then((function(){return new yt((function(t){e.Ca((function n(r){return t(r),e.Qa(n),!1})),function(e){function t(t){r=!0,o&&o.cancel(),Sc(e).then((function(r){var o=n;if(r&&t&&t.url){var i=null;-1!=(o=ii(t.url)).indexOf("/__/auth/callback")&&(i=(i="object"===typeof(i=Lr(Ln(i=Fn(o),"firebaseError")||null))?A(i):null)?new Bi(r.c,r.b,null,null,i,null,r.S()):new Bi(r.c,r.b,o,r.f,null,null,r.S())),o=i||n}xc(e,o)}))}var n=new Bi("unknown",null,null,null,new C("no-auth-event")),r=!1,o=Cn(500).then((function(){return Sc(e).then((function(){r||xc(e,n)}))})),i=l.handleOpenURL;l.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(Tr("BuildInfo.packageName",l).toLowerCase()+"://")&&t({url:e}),"function"===typeof i)try{i(e)}catch(n){console.error(n)}},Wi||(Wi=new Ui),function(e){var t=Wi;t.a.push(e),t.b||(t.b=function(e){for(var n=0;n<t.a.length;n++)t.a[n](e)},"function"===typeof(e=Tr("universalLinks.subscribe",l))&&e(null,t.b))}(t)}(e)}))}))),e.f}function Sc(e){var t=null;return function(e){return e.b.get(ac,e.a).then((function(e){return qi(e)}))}(e.g).then((function(n){return t=n,nc((n=e.g).b,ac,n.a)})).then((function(){return t}))}function Cc(e){this.a=e,this.b=Zl()}(e=yc.prototype).ka=function(){return this.Ga?this.Ga:this.Ga=(vr(void 0)?gr().then((function(){return new yt((function(e,t){var n=l.document,r=setTimeout((function(){t(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(r),e()}),!1)}))})):Et(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!==typeof Tr("universalLinks.subscribe",l))throw bc("cordova-universal-links-plugin-fix is not installed");if("undefined"===typeof Tr("BuildInfo.packageName",l))throw bc("cordova-plugin-buildinfo is not installed");if("function"!==typeof Tr("cordova.plugins.browsertab.openUrl",l))throw bc("cordova-plugin-browsertab is not installed");if("function"!==typeof Tr("cordova.InAppBrowser.open",l))throw bc("cordova-plugin-inappbrowser is not installed")}),(function(){throw new C("cordova-not-ready")}))},e.Lb=function(e,t){return t(new C("operation-not-supported-in-this-environment")),At()},e.Jb=function(){return Et(new C("operation-not-supported-in-this-environment"))},e.Xb=function(){return!1},e.Ub=function(){return!0},e.Qb=function(){return!0},e.Kb=function(e,t,n,r){if(this.c)return Et(new C("redirect-operation-pending"));var o=this,i=l.document,a=null,s=null,c=null,u=null;return this.c=At().then((function(){return zi(t),kc(o)})).then((function(){return function(e,t,n,r,o){var i=function(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}(),a=new Bi(t,r,null,i,new C("no-auth-event"),null,o),s=Tr("BuildInfo.packageName",l);if("string"!==typeof s)throw new C("invalid-cordova-configuration");var c=Tr("BuildInfo.displayName",l),u={};if(jr().toLowerCase().match(/iphone|ipad|ipod/))u.ibi=s;else{if(!jr().toLowerCase().match(/android/))return Et(new C("operation-not-supported-in-this-environment"));u.apn=s}c&&(u.appDisplayName=c),i=wc(i),u.sessionId=i;var d=gl(e.u,e.i,e.l,t,n,null,r,e.m,u,e.s,o);return e.ka().then((function(){var t=e.h;return e.w.a.set(ac,a.v(),t)})).then((function(){var t=Tr("cordova.plugins.browsertab.isAvailable",l);if("function"!==typeof t)throw new C("invalid-cordova-configuration");var n=null;t((function(t){if(t){if("function"!==typeof(n=Tr("cordova.plugins.browsertab.openUrl",l)))throw new C("invalid-cordova-configuration");n(d)}else{if("function"!==typeof(n=Tr("cordova.InAppBrowser.open",l)))throw new C("invalid-cordova-configuration");t=jr(),e.a=n(d,t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(o,e,t,n,r)})).then((function(){return new yt((function(e,t){s=function(){var t=Tr("cordova.plugins.browsertab.close",l);return e(),"function"===typeof t&&t(),o.a&&"function"===typeof o.a.close&&(o.a.close(),o.a=null),!1},o.Ca(s),c=function(){a||(a=Cn(2e3).then((function(){t(new C("redirect-cancelled-by-user"))})))},u=function(){Ur()&&c()},i.addEventListener("resume",c,!1),jr().toLowerCase().match(/android/)||i.addEventListener("visibilitychange",u,!1)})).o((function(e){return Sc(o).then((function(){throw e}))}))})).ma((function(){c&&i.removeEventListener("resume",c,!1),u&&i.removeEventListener("visibilitychange",u,!1),a&&a.cancel(),s&&o.Qa(s),o.c=null}))},e.Ca=function(e){this.b.push(e),kc(this).o((function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new Bi("unknown",null,null,null,new C("no-auth-event")),e(t))}))},e.Qa=function(e){Q(this.b,(function(t){return t==e}))};var Ac={name:"pendingRedirect",F:"session"};function Ec(e){return nc(e.b,Ac,e.a)}function jc(e,t,n){this.i={},this.w=0,this.D=e,this.u=t,this.m=n,this.h=[],this.f=!1,this.l=w(this.s,this),this.b=new Uc,this.B=new Gc,this.g=new Cc(this.u
2+":"+this.m),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.B,this.c.linkViaPopup=this.B,this.c.reauthViaPopup=this.B,this.a=Tc(this.D,this.u,this.m,E)}function Tc(e,n,r,o){var i=t.SDK_VERSION||null;return vr()?new yc(e,n,r,i,o):new hl(e,n,r,i,o)}function Pc(e){e.f||(e.f=!0,e.a.Ca(e.l));var t=e.a;return e.a.ka().o((function(n){throw e.a==t&&e.reset(),n}))}function Nc(e){e.a.Ub()&&Pc(e).o((function(t){var n=new Bi("unknown",null,null,null,new C("operation-not-supported-in-this-environment"));Lc(t)&&e.s(n)})),e.a.Qb()||Hc(e.b)}function Ic(e,t){G(e.h,t)||e.h.push(t),e.f||function(e){return e.b.get(Ac,e.a).then((function(e){return"pending"==e}))}(e.g).then((function(t){t?Ec(e.g).then((function(){Pc(e).o((function(t){var n=new Bi("unknown",null,null,null,new C("operation-not-supported-in-this-environment"));Lc(t)&&e.s(n)}))})):Nc(e)})).o((function(){Nc(e)}))}function Rc(e,t){Q(e.h,(function(e){return e==t}))}jc.prototype.reset=function(){this.f=!1,this.a.Qa(this.l),this.a=Tc(this.D,this.u,this.m),this.i={}},jc.prototype.s=function(e){if(!e)throw new C("invalid-auth-event");if(6e5<=k()-this.w&&(this.i={},this.w=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var t=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.Cb(e.c,e.b)){(t=this.c[e.c])&&(t.h(e,r),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.w=k())),t=!0;break}}return Hc(this.b),t};var Oc=new qr(2e3,1e4),Dc=new qr(3e4,6e4);function Mc(e,t,n,r,o,i,a){return e.a.Jb(t,n,r,(function(){e.f||(e.f=!0,e.a.Ca(e.l))}),(function(){e.reset()}),o,i,a)}function Lc(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function Fc(e,t,n,r,o){var i;return function(e){return e.b.set(Ac,"pending",e.a)}(e.g).then((function(){return e.a.Kb(t,n,r,o).o((function(t){if(Lc(t))throw new C("operation-not-supported-in-this-environment");return i=t,Ec(e.g).then((function(){throw i}))})).then((function(){return e.a.Xb()?new yt((function(){})):Ec(e.g).then((function(){return e.pa()})).then((function(){})).o((function(){}))}))}))}function zc(e,t,n,r,o){return e.a.Lb(r,(function(e){t.la(n,null,e,o)}),Oc.get())}jc.prototype.pa=function(){return this.b.pa()};var Bc={};function qc(e,t,n){var r=t+":"+n;return Bc[r]||(Bc[r]=new jc(e,t,n)),Bc[r]}function Uc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Hc(e){e.g||(e.g=!0,Kc(e,!1,null,null))}function Wc(e){e.g&&!e.i&&Kc(e,!1,null,null)}function Vc(e,t){if(e.b=function(){return At(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function Kc(e,t,n,r){t?r?function(e,t){if(e.b=function(){return Et(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,r):Vc(e,n):Vc(e,{user:null}),e.f=[],e.c=[]}function Gc(){}function Yc(){this.Bb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.Bb},set:function(e){this.Bb=e},enumerable:!1})}function Qc(e,t){this.a=t,Qr(this,"verificationId",e)}function Xc(e,t,n,r){return new Mi(e).cb(t,n).then((function(e){return new Qc(e,r)}))}function $c(e){var t=Vo(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new C("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Xr(this,{token:e,expirationTime:Hr(1e3*t.exp),authTime:Hr(1e3*t.auth_time),issuedAtTime:Hr(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,signInSecondFactor:t.firebase&&t.firebase.sign_in_second_factor?t.firebase.sign_in_second_factor:null,claims:t})}function Jc(e,t,n){var r=t&&t[eu];if(!r)throw new C("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=e,this.f=fe(t),this.g=n,this.c=new ai(null,r),this.b=[];var o=this;H(t[Zc]||[],(function(e){(e=eo(e))&&o.b.push(e)})),Qr(this,"auth",this.a),Qr(this,"session",this.c),Qr(this,"hints",this.b)}Uc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Uc.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n=e.c,r=e.b,o=e.a&&"auth/web-storage-unsupported"==e.a.code,i=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!o&&!i),"unknown"!=n||o||i?e.a?(Kc(this,!0,null,e.a),At()):t.Da(n,r)?function(e,t,n){n=n.Da(t.c,t.b);var r=t.g,o=t.f,i=t.i,a=t.S(),s=!!t.c.match(/Redirect$/);n(r,o,a,i).then((function(t){Kc(e,s,t,null)})).o((function(t){Kc(e,s,null,t)}))}(this,e,t):Et(new C("invalid-auth-event")):(Kc(this,!1,null,null),At())}else Et(new C("invalid-auth-event"))},Uc.prototype.pa=function(){var e=this;return new yt((function(t,n){e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),function(e){var t=new C("timeout");e.a&&e.a.cancel(),e.a=Cn(Dc.get()).then((function(){e.b||(e.g=!0,Kc(e,!0,null,t))}))}(e))}))},Gc.prototype.h=function(e,t){if(e){var n=e.c,r=e.b;e.a?(t.la(e.c,null,e.a,e.b),At()):t.Da(n,r)?function(e,t){var n=e.b,r=e.c;t.Da(r,n)(e.g,e.f,e.S(),e.i).then((function(e){t.la(r,e,null,n)})).o((function(e){t.la(r,null,e,n)}
2))}(e,t):Et(new C("invalid-auth-event"))}else Et(new C("invalid-auth-event"))},Qc.prototype.confirm=function(e){return e=Li(this.verificationId,e),this.a(e)};var Zc="mfaInfo",eu="mfaPendingCredential";function tu(e,t,n,r){C.call(this,"multi-factor-auth-required",r,t),this.b=new Jc(e,t,n),Qr(this,"resolver",this.b)}function nu(e,t,n){if(e&&m(e.serverResponse)&&"auth/multi-factor-auth-required"===e.code)try{return new tu(t,e.serverResponse,n,e.message)}catch(r){}return null}function ru(){}function ou(e){Qr(this,"factorId",e.ea),this.a=e}function iu(e){if(ou.call(this,e),this.a.ea!=Mi.PROVIDER_ID)throw new C("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function au(e,t){for(var n in Qt.call(this,e),t)this[n]=t[n]}function su(e,t){this.a=e,this.b=[],this.c=w(this.wc,this),ln(this.a,"userReloaded",this.c);var n=[];t&&t.multiFactor&&t.multiFactor.enrolledFactors&&H(t.multiFactor.enrolledFactors,(function(e){var t=null,r={};if(e){e.uid&&(r[ro]=e.uid),e.displayName&&(r[to]=e.displayName),e.enrollmentTime&&(r[no]=new Date(e.enrollmentTime).toISOString()),e.phoneNumber&&(r[oo]=e.phoneNumber);try{t=new io(r)}catch(o){}e=t}else e=null;e&&n.push(e)})),lu(this,n)}function lu(e,t){e.b=t,Qr(e,"enrolledFactors",t)}function cu(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function uu(e,t){e.stop(),e.b=Cn(function(e,t){return t?(e.a=e.c,e.g()):(t=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),t)}(e,t)).then((function(){return function(){var e=l.document,t=null;return Ur()||!e?At():new yt((function(n){t=function(){Ur()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)})).o((function(n){throw e.removeEventListener("visibilitychange",t,!1),n}))}()})).then((function(){return e.h()})).then((function(){uu(e,!0)})).o((function(t){e.i(t)&&uu(e,!1)}))}function du(e){this.c=e,this.b=this.a=null}function pu(e){return e.b&&1e3*e.b.c||0}function hu(e,t){var n=t.refreshToken;e.b=Wo(t[Za]||""),e.a=n}function fu(e,t){return function(e,t){return new yt((function(n,r){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?as(e,e.u+"?key="+encodeURIComponent(e.c),(function(e){e?e.error?r(ol(e)):e.access_token&&e.refresh_token?n(e):r(new C("internal-error")):r(new C("network-request-failed"))}),"POST",Xn(t).toString(),e.g,e.m.get()):r(new C("internal-error"))}))}(e.c,t).then((function(t){return e.b=Wo(t.access_token),e.a=t.refresh_token,{accessToken:e.b.toString(),refreshToken:e.a}})).o((function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t}))}function mu(e,t){this.a=e||null,this.b=t||null,Xr(this,{lastSignInTime:Hr(t||null),creationTime:Hr(e||null)})}function _u(e,t,n,r,o,i){Xr(this,{uid:e,displayName:r||null,photoURL:o||null,email:n||null,phoneNumber:i||null,providerId:t})}function gu(e,n,r){this.N=[],this.l=e.apiKey,this.m=e.appName,this.s=e.authDomain||null,e=t.SDK_VERSION?Er(t.SDK_VERSION):null,this.a=new $a(this.l,N(E),e),this.b=new du(this.a),Su(this,n[Za]),hu(this.b,n),Qr(this,"refreshToken",this.b.a),Eu(this,r||{}),bn.call(this),this.P=!1,this.s&&Nr()&&(this.i=qc(this.s,this.l,this.m)),this.R=[],this.h=null,this.B=function(e){return new cu((function(){return e.I(!0)}),(function(e){return!(!e||"auth/network-request-failed"!=e.code)}),(function(){var t=pu(e.b)-k()-3e5;return 0<t?t:0}))}(this),this.Z=w(this.Ma,this);var o=this;this.oa=null,this.za=function(e){o.va(e.g)},this.aa=null,this.W=[],this.ya=function(e){yu(o,e.c)},this.$=null,this.O=new su(this,r),Qr(this,"multiFactor",this.O)}function vu(e,t){e.aa&&dn(e.aa,"languageCodeChanged",e.za),(e.aa=t)&&ln(t,"languageCodeChanged",e.za)}function yu(e,n){e.W=n,is(e.a,t.SDK_VERSION?Er(t.SDK_VERSION,e.W):null)}function bu(e,t){e.$&&dn(e.$,"frameworkChanged",e.ya),(e.$=t)&&ln(t,"frameworkChanged",e.ya)}function wu(e){try{return t.app(e.m).auth()}catch(n){throw new C("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function xu(e){e.D||e.B.b||(e.B.start(),dn(e,"tokenChanged",e.Z),ln(e,"tokenChanged",e.Z))}function ku(e){dn(e,"tokenChanged",e.Z),e.B.stop()}function Su(e,t){e.xa=t,Qr(e,"_lat",t)}function Cu(e){for(var t=[],n=0;n<e.R.length;n++)t.push(e.R[n](e));return Tt(t).then((function(){return e}))}function Au(e){e.i&&!e.P&&(e.P=!0,Ic(e.i,e))}function Eu(e,t){Xr(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,tenantId:t.tenantId||null,metadata:new mu(t.createdAt,t.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function ju(){}function Tu(e){return At().then((function(){if(e.D)throw new C("app-deleted")}))}function Pu(e){return V(e.providerData,(function(e){return e.providerId}))}function Nu(e,t){t&&(Iu(e,t.providerId),e.providerData.push(t))}function Iu(e,t){Q(e.providerData,(function(e){return e.providerId==t}))}function Ru(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&Qr(e,t,n)}function Ou(e,t){e!=t&&(Xr(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,tenantId:t.tenantId,providerData:[]}),t.metadata?Qr(e,"metadata",function(e){return new mu(e.a,e.b)}(t.metadata)):Qr(e,"metadata",new mu),H(t.providerData,(function(t){Nu(e,t)})),function(e,t){e.b=t.b,e.a=t.a}(e.b,t.b),Qr(e,"refreshToken",e.b.a),lu(e.O,t.O.b))}function Du(e){return e.I().then((function(t){var n=e.isAnonymous;return function(e,t){return nl(e.a,Rs,{idToken:t}).then(w(e.Ic,e))}(e,t).then((function(){return n||Ru(e,"isAnonymous",!1),t}))}))}function Mu(e,t){t[Za]&&e.xa!=t[Za]&&(hu(e.b,t),e.dispatchEvent(new au("tokenChanged")),Su(e,t[Za]),Ru(e,"refreshToken",e.b.a))}function Lu(e,t){return Du(e).then((function(){if(G(Pu(e),t))return Cu(e).then((function(){throw new C("provider-already-linked")}))}))}function Fu(e,t,n){return $r({user:e,credential:Fi(t),additionalUserInfo:t=Xo(t),operationType:n})}function zu(e,t){return Mu(e,t),e.reload().then((function(){return e}))}
2function Bu(e,n,r,o,i){if(!Nr())return Et(new C("operation-not-supported-in-this-environment"));if(e.h&&!i)return Et(e.h);var a=Qo(r.providerId),s=Fr(e.uid+":::"),l=null;(!Or()||yr())&&e.s&&r.isOAuthProvider&&(l=gl(e.s,e.l,e.m,n,r,null,s,t.SDK_VERSION||null,null,null,e.tenantId));var c=fr(l,a&&a.ta,a&&a.sa);return o=o().then((function(){if(Uu(e),!i)return e.I().then((function(){}))})).then((function(){return Mc(e.i,c,n,r,s,!!l,e.tenantId)})).then((function(){return new yt((function(t,r){e.la(n,null,new C("cancelled-popup-request"),e.g||null),e.f=t,e.w=r,e.g=s,e.c=zc(e.i,e,n,c,s)}))})).then((function(e){return c&&hr(c),e?$r(e):null})).o((function(e){throw c&&hr(c),e})),Hu(e,o,i)}function qu(e,t,n,r,o){if(!Nr())return Et(new C("operation-not-supported-in-this-environment"));if(e.h&&!o)return Et(e.h);var i=null,a=Fr(e.uid+":::");return r=r().then((function(){if(Uu(e),!o)return e.I().then((function(){}))})).then((function(){return e.fa=a,Cu(e)})).then((function(t){return e.ga&&(t=(t=e.ga).b.set(Ku,e.v(),t.a)),t})).then((function(){return Fc(e.i,t,n,a,e.tenantId)})).o((function(t){if(i=t,e.ga)return Gu(e.ga);throw i})).then((function(){if(i)throw i})),Hu(e,r,o)}function Uu(e){if(!e.i||!e.P){if(e.i&&!e.P)throw new C("internal-error");throw new C("auth-domain-config-required")}}function Hu(e,t,n){var r=function(e,t,n){return e.h&&!n?(t.cancel(),Et
2(e.h)):t.o((function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.h||e.dispatchEvent(new au("userInvalidated")),e.h=t),t}))}(e,t,n);return e.N.push(r),r.ma((function(){Y(e.N,r)})),r.o((function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=nu(t.v(),wu(e),w(e.hc,e))),n||t}))}function Wu(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName},n={};if(!e.stsTokenManager||!e.stsTokenManager.accessToken)return null;n[Za]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null;var r=new gu(t,n,e);return e.providerData&&H(e.providerData,(function(e){e&&Nu(r,$r(e))})),e.redirectEventId&&(r.fa=e.redirectEventId),r}function Vu(e){this.a=e,this.b=Zl()}Jc.prototype.Pc=function(e){var t=this;return e.ob(this.a.b,this.c).then((function(e){var n=fe(t.f);return delete n[Zc],delete n[eu],_e(n,e),t.g(n)}))},S(tu,C),ru.prototype.ob=function(e,t,n){return t.type==si?function(e,t,n,r){return n.Fa().then((function(n){return n={idToken:n},"undefined"!==typeof r&&(n.displayName=r),_e(n,{phoneVerificationInfo:Di(e.a)}),nl(t,Ns,n)}))}(this,e,t,n):function(e,t,n){return n.Fa().then((function(n){return _e(n={mfaPendingCredential:n},{phoneVerificationInfo:Di(e.a)}),nl(t,Is,n)}))}(this,e,t)},S(ou,ru),S(iu,ou),S(au,Qt),(e=su.prototype).wc=function(e){lu(this,function(e){var t=[];return H(e.mfaInfo||[],(function(e){(e=eo(e))&&t.push(e)})),t}(e.ed))},e.Ob=function(){return this.a.I().then((function(e){return new ai(e,null)}))},e.dc=function(e,t){var n=this,r=this.a.a;return this.Ob().then((function(n){return e.ob(r,n,t)})).then((function(e){return Mu(n.a,e),n.a.reload()}))},e.$c=function(e){var t=this,n="string"===typeof e?e:e.uid,r=this.a.a;return this.a.I().then((function(e){return nl(r,tl,{idToken:e,mfaEnrollmentId:n})})).then((function(e){var r=W(t.b,(function(e){return e.uid!=n}));return lu(t,r),Mu(t.a,e),t.a.reload().o((function(e){if("auth/user-token-expired"!=e.code)throw e}))}))},e.v=function(){return{multiFactor:{enrolledFactors:V(this.b,(function(e){return e.v()}))}}},cu.prototype.start=function(){this.a=this.c,uu(this,!0)},cu.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},du.prototype.v=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:pu(this)}},du.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?Et(new C("user-token-expired")):e||!this.b||k()>pu(this)-3e4?this.a?fu(this,{grant_type:"refresh_token",refresh_token:this.a}):At(null):At({accessToken:this.b.toString(),refreshToken:this.a})},mu.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},S(gu,bn),gu.prototype.va=function(e){this.oa=e,os(this.a,e)},gu.prototype.ja=function(){return this.oa},gu.prototype.Ea=function(){return $(this.W)},gu.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},Qr(gu.prototype,"providerId","firebase"),(e=gu.prototype).reload=function(){var e=this;return Hu(this,Tu(this).then((function(){return Du(e).then((function(){return Cu(e)})).then(ju)})))},e.mc=function(e){return this.I(e).then((function(e){return new $c(e)}))},e.I=function(e){var t=this;return Hu(this,Tu(this).then((function(){return t.b.getToken(e)})).then((function(e){if(!e)throw new C("internal-error");return e.accessToken!=t.xa&&(Su(t,e.accessToken),t.dispatchEvent(new au("tokenChanged"))),Ru(t,"refreshToken",e.refreshToken),e.accessToken})))},e.Ic=function(e){if(!(e=e.users)||!e.length)throw new C("internal-error");Eu(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt,tenantId:e.tenantId});for(var t=function(e){return(e=e.providerUserInfo)&&e.length?V(e,(function(e){return new _u(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)})):[]}(e),n=0;n<t.length;n++)Nu(this,t[n]);Ru(this,"isAnonymous",!(this.email&&e.passwordHash)&&!(this.providerData&&this.providerData.length)),this.dispatchEvent(new au("userReloaded",{ed:e}))},e.Jc=function(e){return Gr("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.pb(e)},e.pb=function(e){var t=this,n=null;return Hu(this,e.c(this.a,this.uid).then((function(e){return Mu(t,e),n=Fu(t,e,"reauthenticate"),t.h=null,t.reload()})).then((function(){return n})),!0)},e.Ac=function(e){return Gr("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.mb(e)},e.mb=function(e){var t=this,n=null;return Hu(this,Lu(this,e.providerId).then((function(){return t.I()})).then((function(n){return e.b(t.a,n)})).then((function(e){return n=Fu(t,e,"link"),zu(t,e)})).then((function(){return n})))},e.Bc=function(e,t){var n=this;return Hu(this,Lu(this,"phone").then((function(){return Xc(wu(n),e,t,w(n.mb,n))})))},e.Kc=function(e,t){var n=this;return Hu(this,At().then((function(){return Xc(wu(n),e,t,w(n.pb,n))}
2)),!0)},e.xb=function(e){var t=this;return Hu(this,this.I().then((function(n){return t.a.xb(n,e)})).then((function(e){return Mu(t,e),t.reload()})))},e.cd=function(e){var t=this;return Hu(this,this.I().then((function(n){return e.b(t.a,n)})).then((function(e){return Mu(t,e),t.reload()})))},e.yb=function(e){var t=this;return Hu(this,this.I().then((function(n){return t.a.yb(n,e)})).then((function(e){return Mu(t,e),t.reload()})))},e.zb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Tu(this);var t=this;return Hu(this,this.I().then((function(n){return t.a.zb(n,{displayName:e.displayName,photoUrl:e.photoURL})})).then((function(e){return Mu(t,e),Ru(t,"displayName",e.displayName||null),Ru(t,"photoURL",e.photoUrl||null),H(t.providerData,(function(e){"password"===e.providerId&&(Qr(e,"displayName",t.displayName),Qr(e,"photoURL",t.photoURL))})),Cu(t)})).then(ju))},e.ad=function(e){var t=this;return Hu(this,Du(this).then((function(n){return G(Pu(t),e)?function(e,t,n){return nl(e,js,{idToken:t,deleteProvider:n})}(t.a,n,[e]).then((function(e){var n={};return H(e.providerUserInfo||[],(function(e){n[e.providerId]=!0})),H(Pu(t),(function(e){n[e]||Iu(t,e)})),n[Mi.PROVIDER_ID]||Qr(t,"phoneNumber",null),Cu(t)})):Cu(t).then((function(){throw new C("no-such-provider")}))})))},e.delete=function(){var e=this;return Hu(this,this.I().then((function(t){return nl(e.a,Es,{idToken:t})})).then((function(){e.dispatchEvent(new au("userDeleted"))}))).then((function(){for(var t=0;t<e.N.length;t++)e.N[t].cancel("app-deleted");vu(e,null),bu(e,null),e.N=[],e.D=!0,ku(e),Qr(e,"refreshToken",null),e.i&&Rc(e.i,e)}))},e.Cb=function(e,t){return!!("linkViaPopup"==e&&(this.g||null)==t&&this.f||"reauthViaPopup"==e&&(this.g||null)==t&&this.f||"linkViaRedirect"==e&&(this.fa||null)==t||"reauthViaRedirect"==e&&(this.fa||null)==t)},e.la=function(e,t,n,r){"linkViaPopup"!=e&&"reauthViaPopup"!=e||r!=(this.g||null)||(n&&this.w?this.w(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},e.Da=function(e,t){return"linkViaPopup"==e&&t==(this.g||null)?w(this.Hb,this):"reauthViaPopup"==e&&t==(this.g||null)?w(this.Ib,this):"linkViaRedirect"==e&&(this.fa||null)==t?w(this.Hb,this):"reauthViaRedirect"==e&&(this.fa||null)==t?w(this.Ib,this):null},e.Cc=function(e){var t=this;return Bu(this,"linkViaPopup",e,(function(){return Lu(t,e.providerId).then((function(){return Cu(t)}))}),!1)},e.Lc=function(e){return Bu(this,"reauthViaPopup",e,(function(){return At()}),!0)},e.Dc=function(e){var t=this;return qu(this,"linkViaRedirect",e,(function(){return Lu(t,e.providerId)}),!1)},e.Mc=function(e){return qu(this,"reauthViaRedirect",e,(function(){return At()}),!0)},e.Hb=function(e,t,n,r){var o=this;this.c&&(this.c.cancel(),this.c=null);var i=null;return Hu(this,this.I().then((function(n){return bs(o.a,{requestUri:e,postBody:r,sessionId:t,idToken:n})})).then((function(e){return i=Fu(o,e,"link"),zu(o,e)})).then((function(){return i})))},e.Ib=function(e,t,n,r){var o=this;this.c&&(this.c.cancel(),this.c=null);var i=null;return Hu(this,At().then((function(){return ui(ws(o.a,{requestUri:e,sessionId:t,postBody:r,tenantId:n}),o.uid)})).then((function(e){return i=Fu(o,e,"reauthenticate"),Mu(o,e),o.h=null,o.reload()})).then((function(){return i})),!0)},e.qb=function(e){var t=this,n=null;return Hu(this,this.I().then((function(t){return n=t,"undefined"===typeof e||he(e)?{}:Bo(new Po(e))})).then((function(e){return t.a.qb(n,e)})).then((function(e){if(t.email!=e)return t.reload()})).then((function(){})))},e.Ab=function(e,t){var n=this,r=null;return Hu(this,this.I().then((function(e){return r=e,"undefined"===typeof t||he(t)?{}:Bo(new Po(t))})).then((function(t){return n.a.Ab(r,e,t)})).then((function(e){if(n.email!=e)return n.reload()})).then((function(){})))},e.hc=function(e){var t=null,n=this;return Hu(this,e=ui(At(e),n.uid).then((function(e){return t=Fu(n,e,"reauthenticate"),Mu(n,e),n.h=null,n.reload()})).then((function(){return t})),!0)},e.toJSON=function(){return this.v()},e.v=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.b.v(),redirectEventId:this.fa||null};return this.metadata&&_e(e,this.metadata.v()),H(this.providerData,(function(t){e.providerData.push(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))})),_e(e,this.O.v()),e};var Ku={name:"redirectUser",F:"session"};function Gu(e){return nc(e.b,Ku,e.a)}function Yu(e){this.a=e,this.b=Zl(),this.c=null,this.f=function(e){var t=$u("local"),n=$u("session"),r=$u("none");return function(e,t,n){var r=tc(t,n),o=ec(e,t.F);return e.get(t,n).then((function(i){var a=null;try{a=Lr(l.localStorage.getItem(r))}catch(s){}if(a&&!i)return l.localStorage.removeItem(r),e.set(t,a,n);a&&i&&"localStorage"!=o.type&&l.localStorage.removeItem(r)}))}(e.b,t,e.a).then((function(){return e.b.get(n,e.a)})).then((function(o){return o?n:e.b.get(r,e.a).then((function(n){return n?r:e.b.get(t,e.a).then((function(n){return n?t:e.b.get(Xu,e.a).then((function(e){return e?$u(e):t}))}))}))})).then((function(t){return e.c=t,Qu(e,t.F)})).o((function(){e.c||(e.c=t)}))}(this),this.b.addListener($u("local"),this.a,w(this.g,this))}function Qu(e,t){var n,r=[];for(n in $l)$l[n]!==t&&r.push(nc(e.b,$u($l[n]),e.a));return r.push(nc(e.b,Xu,e.a)),function(e){return new yt((function(t,n){var r=e.length,o=[];if(r)for(var i=function(e,n){r--,o[e]=n,0==r&&t(o)},a=function(e){n(e)},s=0;s<e.length;s++)jt(e[s],x(i,s),a);else t(o)}))}(r)}Yu.prototype.g=function(){var e=this,t=$u("local");td(this,(function(){return At().then((function(){return e.c&&"local"!=e.c.F?e.b.get(t,e.a):null})).then((function(n){if(n)return Qu(e,"local").then((function(){e.c=t}))}))}))};var Xu={name:"persistence",F:"session"};function $u(e){return{name:"authUser",F:e}}function Ju(e,t){return td(e,(function(){return e.b.set(e.c,t.v(),e.a)}))}function Zu(e){return td(e,(function(){return nc(e.b,e.c,e.a)}))}function ed(e,t){return td(e,(function(){return e.b.get(e.c,e.a).then((function(e){return e&&t&&(e.authDomain=t),Wu(e||{})}))}))}function td(e,t){return e.f=e.f.then(t,t),e.f}
2function nd(e){if(this.l=!1,Qr(this,"settings",new Yc),Qr(this,"app",e),!ud(this).options||!ud(this).options.apiKey)throw new C("invalid-api-key");e=t.SDK_VERSION?Er(t.SDK_VERSION):null,this.b=new $a(ud(this).options&&ud(this).options.apiKey,N(E),e),this.P=[],this.m=[],this.O=[],this.$b=t.INTERNAL.createSubscribe(w(this.xc,this)),this.W=void 0,this.ac=t.INTERNAL.createSubscribe(w(this.yc,this)),ld(this,null),this.i=new Yu(ud(this).options.apiKey+":"+ud(this).name),this.B=new Vu(ud(this).options.apiKey+":"+ud(this).name),this.Z=fd(this,function(e){var t=ud(e).options.authDomain,n=function(e){var t=function(e,t){return e.b.get(Ku,e.a).then((function(e){return e&&t&&(e.authDomain=t),Wu(e||{})}))}(e.B,ud(e).options.authDomain).then((function(t){return(e.D=t)&&(t.ga=e.B),Gu(e.B)}));return fd(e,t)}(e).then((function(){return ed(e.i,t)})).then((function(t){return t?(t.ga=e.B,e.D&&(e.D.fa||null)==(t.fa||null)?t:t.reload().then((function(){return Ju(e.i,t).then((function(){return t}))})).o((function(n){return"auth/network-request-failed"==n.code?t:Zu(e.i)}))):null})).then((function(t){ld(e,t||null)}));return fd(e,n)}(this)),this.h=fd(this,function(e){return e.Z.then((function(){return ad(e)})).o((function(){})).then((function(){if(!e.l)return e.oa()})).o((function(){})).then((function(){if(!e.l){e.aa=!0;var t=e.i;t.b.addListener($u("local"),t.a,e.oa)}}))}(this)),this.aa=!1,this.oa=w(this.Xc,this),this.Ma=w(this.ca,this),this.xa=w(this.jc,this),this.ya=w(this.uc,this),this.za=w(this.vc,this),this.a=null,function(e){var t=ud(e).options.authDomain,n=ud(e).options.apiKey;t&&Nr()&&(e.Zb=e.Z.then((function(){if(!e.l){if(e.a=qc(t,n,ud(e).name),Ic(e.a,e),dd(e)&&Au(dd(e)),e.D){Au(e.D);var r=e.D;r.va(e.ja()),vu(r,e),yu(r=e.D,e.N),bu(r,e),e.D=null}return e.a}})))}(this),this.INTERNAL={},this.INTERNAL.delete=w(this.delete,this),this.INTERNAL.logFramework=w(this.Ec,this),this.s=0,bn.call(this),function(e){Object.defineProperty(e,"lc",{get:function(){return this.ja()},set:function(e){this.va(e)},enumerable:!1}),e.$=null,Object.defineProperty(e,"ti",{get:function(){return this.S()},set:function(e){this.ub(e)},enumerable:!1}),e.R=null}(this),this.N=[]}function rd(e){Qt.call(this,"languageCodeChanged"),this.g=e}function od(e){Qt.call(this,"frameworkChanged"),this.c=e}function id(e){return e.Zb||Et(new C("auth-domain-config-required"))}function ad(e){if(!Nr())return Et(new C("operation-not-supported-in-this-environment"));var t=id(e).then((function(){return e.a.pa()})).then((function(e){return e?$r(e):null}));return fd(e,t)}function sd(e,t){var n={};return n.apiKey=ud(e).options.apiKey,n.authDomain=ud(e).options.authDomain,n.appName=ud(e).name,e.Z.then((function(){return function(e,t,n,r){var o=new gu(e,t);return n&&(o.ga=n),r&&yu(o,r),o.reload().then((function(){return o}))}(n,t,e.B,e.Ea())})).then((function(t){return dd(e)&&t.uid==dd(e).uid?(Ou(dd(e),t),e.ca(t)):(ld(e,t),Au(t),e.ca(t))})).then((function(){hd(e)}))}function ld(e,t){dd(e)&&(function(e,t){Q(e.R,(function(e){return e==t}))}(dd(e),e.Ma),dn(dd(e),"tokenChanged",e.xa),dn(dd(e),"userDeleted",e.ya),dn(dd(e),"userInvalidated",e.za),ku(dd(e))),t&&(t.R.push(e.Ma),ln(t,"tokenChanged",e.xa),ln(t,"userDeleted",e.ya),ln(t,"userInvalidated",e.za),0<e.s&&xu(t)),Qr(e,"currentUser",t),t&&(t.va(e.ja()),vu(t,e),yu(t,e.N),bu(t,e))}function cd(e,t){var n=null,r=null;return fd(e,t.then((function(t){return n=Fi(t),r=Xo(t),sd(e,t)}),(function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=nu(t.v(),e,w(e.ic,e))),n||t})).then((function(){return $r({user:dd(e),credential:n,additionalUserInfo:r,operationType:"signIn"})})))}function ud(e){return e.app}function dd(e){return e.currentUser}function pd(e){return dd(e)&&dd(e)._lat||null}function hd(e){if(e.aa){for(var t=0;t<e.m.length;t++)e.m[t]&&e.m[t](pd(e));if(e.W!==e.getUid()&&e.O.length)for(e.W=e.getUid(),t=0;t<e.O.length;t++)e.O[t]&&e.O[t](pd(e))}}function fd(e,t){return e.P.push(t),t.ma((function(){Y(e.P,t)})),t}function md(){}function _d(){this.a={},this.b=1e12}Yu.prototype.tb=function(e){var t=null,n=this;return function(e){var t=new C("invalid-persistence-type"),n=new C("unsupported-persistence-type");e:{for(r in $l)if($l[r]==e){var r=!0;break e}r=!1}if(!r||"string"!==typeof e)throw t;switch(wr()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;case"Worker":if("session"===e||!Pl()&&"none"!==e)throw n;break;default:if(!Pr()&&"none"!==e)throw n}}
2(e),td(this,(function(){return e!=n.c.F?n.b.get(n.c,n.a).then((function(r){return t=r,Qu(n,e)})).then((function(){if(n.c=$u(e),t)return n.b.set(n.c,t,n.a)})):At()}))},S(nd,bn),S(rd,Qt),S(od,Qt),(e=nd.prototype).tb=function(e){return fd(this,e=this.i.tb(e))},e.va=function(e){this.$===e||this.l||(this.$=e,os(this.b,this.$),this.dispatchEvent(new rd(this.ja())))},e.ja=function(){return this.$},e.dd=function(){var e=l.navigator;this.va(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},e.Ec=function(e){this.N.push(e),is(this.b,t.SDK_VERSION?Er(t.SDK_VERSION,this.N):null),this.dispatchEvent(new od(this.N))},e.Ea=function(){return $(this.N)},e.ub=function(e){this.R===e||this.l||(this.R=e,this.b.b=this.R)},e.S=function(){return this.R},e.toJSON=function(){return{apiKey:ud(this).options.apiKey,authDomain:ud(this).options.authDomain,appName:ud(this).name,currentUser:dd(this)&&dd(this).v()}},e.Cb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==t&&!!this.f;default:return!1}},e.la=function(e,t,n,r){"signInViaPopup"==e&&this.g==r&&(n&&this.w?this.w(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},e.Da=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.g==t&&this.f?w(this.gc,this):null},e.gc=function(e,t,n,r){var o=this,i={requestUri:e,postBody:r,sessionId:t,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),o.Z.then((function(){return cd(o,ys(o.b,i))}))},e.Vc=function(e){if(!Nr())return Et(new C("operation-not-supported-in-this-environment"));var n=this,r=Qo(e.providerId),o=Fr(),i=null;(!Or()||yr())&&ud(this).options.authDomain&&e.isOAuthProvider&&(i=gl(ud(this).options.authDomain,ud(this).options.apiKey,ud(this).name,"signInViaPopup",e,null,o,t.SDK_VERSION||null,null,null,this.S()));var a=fr(i,r&&r.ta,r&&r.sa);return fd(this,r=id(this).then((function(t){return Mc(t,a,"signInViaPopup",e,o,!!i,n.S())})).then((function(){return new yt((function(e,t){n.la("signInViaPopup",null,new C("cancelled-popup-request"),n.g),n.f=e,n.w=t,n.g=o,n.c=zc(n.a,n,"signInViaPopup",a,o)}))})).then((function(e){return a&&hr(a),e?$r(e):null})).o((function(e){throw a&&hr(a),e})))},e.Wc=function(e){if(!Nr())return Et(new C("operation-not-supported-in-this-environment"));var t=this,n=id(this).then((function(){return function(e){return td(e,(function(){return e.b.set(Xu,e.c.F,e.a)}))}(t.i)})).then((function(){return Fc(t.a,"signInViaRedirect",e,void 0,t.S())}));return fd(this,n)},e.pa=function(){var e=this;return ad(this).then((function(t){return e.a&&Wc(e.a.b),t})).o((function(t){throw e.a&&Wc(e.a.b),t}))},e.bd=function(e){if(!e)return Et(new C("null-user"));if(this.R!=e.tenantId)return Et(new C("tenant-id-mismatch"));var t=this,n={};n.apiKey=ud(this).options.apiKey,n.authDomain=ud(this).options.authDomain,n.appName=ud(this).name;var r=function(e,t,n,r){var o=e.b,i={};return i[Za]=o.b&&o.b.toString(),i.refreshToken=o.a,t=new gu(t||{apiKey:e.l,authDomain:e.s,appName:e.m},i),n&&(t.ga=n),r&&yu(t,r),Ou(t,e),t}(e,n,t.B,t.Ea());return fd(this,this.h.then((function(){if(ud(t).options.apiKey!=e.l)return r.reload()})).then((function(){return dd(t)&&e.uid==dd(t).uid?(Ou(dd(t),e),t.ca(e)):(ld(t,r),Au(r),t.ca(r))})).then((function(){hd(t)})))},e.wb=function(){var e=this;return fd(this,this.h.then((function(){return e.a&&Wc(e.a.b),dd(e)?(ld(e,null),Zu(e.i).then((function(){hd(e)}))):At()})))},e.Xc=function(){var e=this;return ed(this.i,ud(this).options.authDomain).then((function(t){if(!e.l){var n;if(n=dd(e)&&t){n=dd(e).uid;var r=t.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==r&&null!==r&&""!==r&&n==r}if(n)return Ou(dd(e),t),dd(e).I();(dd(e)||t)&&(ld(e,t),t&&(Au(t),t.ga=e.B),e.a&&Ic(e.a,e),hd(e))}}))},e.ca=function(e){return Ju(this.i,e)},e.jc=function(){hd(this),this.ca(dd(this))},e.uc=function(){this.wb()},e.vc=function(){this.wb()},e.ic=function(e){var t=this;return this.h.then((function(){return cd(t,At(e))}))},e.xc=function(e){var t=this;this.addAuthTokenListener((function(){e.next(dd(t))}))},e.yc=function(e){var t=this;!function(e,t){e.O.push(t),fd(e,e.h.then((function(){!e.l&&G(e.O,t)&&e.W!==e.getUid()&&(e.W=e.getUid(),t(pd(e)))})))}(this,(function(){e.next(dd(t))}))},e.Gc=function(e,t,n){var r=this;return this.aa&&Promise.resolve().then((function(){"function"===typeof e?e(dd(r)):"function"===typeof e.next&&e.next(dd(r))})),this.$b(e,t,n)},e.Fc=function(e,t,n){var r=this;return this.aa&&Promise.resolve().then((function(){r.W=r.getUid(),"function"===typeof e?e(dd(r)):"function"===typeof e.next&&e.next(dd(r))})),this.ac(e,t,n)},e.kc=function(e){var t=this;return fd(this,this.h.then((function(){return dd(t)?dd(t).I(e).then((function(e){return{accessToken:e}})):null})))},e.Rc=function(e){var t=this;return this.h.then((function(){return cd(t,nl(t.b,Xs,{token:e}))})).then((function(e){var n=e.user;return Ru(n,"isAnonymous",!1),t.ca(n),e}))},e.Sc=function(e,t){var n=this;return this.h.then((function(){return cd(n,nl(n.b,$s,{email:e,password:t}))}))},e.cc=function(e,t){var n=this;return this.h.then((function(){return cd(n,nl(n.b,Cs,{email:e,password:t}))}))},e.Ya=function(e){var t=this;return this.h.then((function(){return cd(t,e.ia(t.b))}))},e.Qc=function(e){return Gr("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Ya(e)},e.vb=function(){var e=this;return this.h.then((function(){var t=dd(e);if(t&&t.isAnonymous){var n=$r({providerId:null,isNewUser:!1});return $r({user:t,credential:null,additionalUserInfo:n,operationType:"signIn"})}return cd(e,e.b.vb()).then((function(t){var n=t.user;return Ru(n,"isAnonymous",!0),e.ca(n),t}))}))},e.getUid=function(){return dd(this)&&dd(this).uid||null},e.bc=function(e){this.addAuthTokenListener(e),this.s++,0<this.s&&dd(this)&&xu(dd(this))},e.Nc=function(e){var t=this;H(this.m,(function(n){n==e&&t.s--})),0>this.s&&(this.s=0),0==this.s&&dd(this)&&ku(dd(this)),this.removeAuthTokenListener(e)},e.addAuthTokenListener=function(e){var t=this;this.m.push(e),fd(this,this.h.then((function(){t.l||G(t.m,e)&&e(pd(t))})))},e.removeAuthTokenListener=function(e){Q(this.m,(function(t){return t==e}))},e.delete=function(){this.l=!0;for(var e=0;e<this.P.length;e++)this.P[e].cancel("app-deleted");return this.P=[],this.i&&(e=this.i).b.removeListener($u("local"),e.a,this.oa),this.a&&(Rc(this.a,this),Wc(this.a.b)),Promise.resolve()},e.fc=function(e){return fd(this,function(e,t){return nl(e,As,{identifier:t,continueUri:Ir()?cr():"http://localhost"}).then((function(e){return e.signinMethods||[]}))}(this.b,e))},e.zc=function(e){return!!Ii(e)},e.sb=function(e,t){var n=this;return fd(this,At().then((function(){var e=new Po(t);if(!e.c)throw new C("argument-error",Ro+" must be true when sending sign in link to email");return Bo(e)})).then((function(t){return n.b.sb(e,t)})).then((function(){})))},e.fd=function(e){return this.Pa(e).then((function(e){return e.data.email}))},e.jb=function(e,t){return fd(this,this.b.jb(e,t).then((function(){})))},e.Pa=function(e){return fd(this,this.b.Pa(e).then((function(e){return new ao(e)})))},e.fb=function(e){return fd(this,this.b.fb(e).then((function(){})))},e.rb=function(e,t){var n=this;return fd(this,At().then((function(){return"undefined"===typeof t||he(t)?{}:Bo(new Po(t))})).then((function(t){return n.b.rb(e,t)})).then((function(){})))},e.Uc=function(e,t){return fd(this,Xc(this,e,t,w(this.Ya,this)))},e.Tc=function(e,t){var n=this;return fd(this,At().then((function(){var r=t||cr(),o=Ni(e,r);if(!(r=Ii(r)))throw new C("argument-error","Invalid email link!");if(r.tenantId!==n.S())throw new C("tenant-id-mismatch");return n.Ya(o)})))},md.prototype.render=function(){},md.prototype.reset=function(){},md.prototype.getResponse=function(){},md.prototype.execute=function(){};var gd=null;function vd(e,t){return(t=yd(t))&&e.a[t]||null}function yd(e){return(e="undefined"===typeof e?1e12:e)?e.toString():null}function bd(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=it(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():ln(this.f,"click",this.i)}function wd(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function xd(){}function kd(){}_d.prototype.render=function(e,t){return this.a[this.b.toString()]=new bd(e,t),this.b++},_d.prototype.reset=function(e){var t=vd(this,e);e=yd(e),t&&e&&(t.delete(),delete this.a[e])},_d.prototype.getResponse=function(e){return(e=vd(this,e))?e.getResponse():null},_d.prototype.execute=function(e){(e=vd(this,e))&&e.execute()},bd.prototype.getResponse=function(){return wd(this),this.b},bd.prototype.execute=function(){wd(this);var e=this;this.a||(this.a=setTimeout((function(){e.b=function(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(r){}e.a=setTimeout((function(){if(e.a=null,e.b=null,n)try{n()}catch(r){}e.h&&e.execute()}),6e4)}),500))},bd.prototype.delete=function(){wd(this),this.g=!0,clearTimeout(this.a),this.a=null,dn(this.f,"click",this.i)},Qr(xd,"FACTOR_ID","phone"),kd.prototype.g=function(){return gd||(gd=new _d),At(gd)},kd.prototype.c=function(){};var Sd=null;function Cd(){this.b=l.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var Ad=new ve(we,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Ed=new qr(3e4,6e4);Cd.prototype.g=function(e){var t=this;return new yt((function(n,r){var o=setTimeout((function(){r(new C("network-request-failed"))}),Ed.get());!l.grecaptcha||e!==t.f&&!t.b?(l[t.a]=function(){if(l.grecaptcha){t.f=e;var i=l.grecaptcha.render;
2l.grecaptcha.render=function(e,n){return e=i(e,n),t.b++,e},clearTimeout(o),n(l.grecaptcha)}else clearTimeout(o),r(new C("internal-error"));delete l[t.a]},At(Wa(Ce(Ad,{onload:t.a,hl:e||""}))).o((function(){clearTimeout(o),r(new C("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(o),n(l.grecaptcha))}))},Cd.prototype.c=function(){this.b--};var jd=null;function Td(e,t,n,r,o,i,a){if(Qr(this,"type","recaptcha"),this.c=this.f=null,this.D=!1,this.u=t,this.g=null,a?(Sd||(Sd=new kd),a=Sd):(jd||(jd=new Cd),a=jd),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Id])throw new C("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Rd],!l.document)throw new C("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!it(t)||!this.i&&it(t).hasChildNodes())throw new C("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new $a(e,i||null,o||null),this.w=r||function(){return null};var s=this;this.l=[];var c=this.a[Pd];this.a[Pd]=function(e){if(Od(s,e),"function"===typeof c)c(e);else if("string"===typeof c){var t=Tr(c,l);"function"===typeof t&&t(e)}};var u=this.a[Nd];this.a[Nd]=function(){if(Od(s,null),"function"===typeof u)u();else if("string"===typeof u){var e=Tr(u,l);"function"===typeof e&&e()}}}var Pd="callback",Nd="expired-callback",Id="sitekey",Rd="size";function Od(e,t){for(var n=0;n<e.l.length;n++)try{e.l[n](t)}catch(r){}}function Dd(e,t){return e.h.push(t),t.ma((function(){Y(e.h,t)})),t}function Md(e){if(e.D)throw new C("internal-error","RecaptchaVerifier instance has been destroyed.")}function Ld(e,n,r){var o=!1;try{this.b=r||t.app()}catch(s){throw new C("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new C("invalid-api-key");r=this.b.options.apiKey;var i=this,a=null;try{a=this.b.auth().Ea()}catch(s){}try{o=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=t.SDK_VERSION?Er(t.SDK_VERSION,a):null,Td.call(this,r,e,n,(function(){try{var e=i.b.auth().ja()}catch(t){e=null}return e}),a,N(E),o)}function Fd(e,t,n,r){e:{n=Array.prototype.slice.call(n);for(var o=0,i=!1,a=0;a<t.length;a++)if(t[a].optional)i=!0;else{if(i)throw new C("internal-error","Argument validator encountered a required argument after an optional argument.");o++}if(i=t.length,n.length<o||i<n.length)r="Expected "+(o==i?1==o?"1 argument":o+" arguments":o+"-"+i+" arguments")+" but got "+n.length+".";else{for(o=0;o<n.length;o++)if(i=t[o].optional&&void 0===n[o],!t[o].K(n[o])&&!i){if(t=t[o],0>o||o>=zd.length)throw new C("internal-error","Argument validator received an unsupported number of arguments.");n=zd[o],r=(r?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.J+".";break e}r=null}}if(r)throw new C("argument-error",e+" failed: "+r)}(e=Td.prototype).Ga=function(){var e=this;return this.f?this.f:this.f=Dd(this,At().then((function(){if(Ir()&&!br())return gr();throw new C("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return e.m.g(e.w())})).then((function(t){return e.g=t,nl(e.s,zs,{})})).then((function(t){e.a[Id]=t.recaptchaSiteKey})).o((function(t){throw e.f=null,t})))},e.render=function(){Md(this);var e=this;return Dd(this,this.Ga().then((function(){if(null===e.c){var t=e.u;if(!e.i){var n=it(t);t=ut("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c})))},e.verify=function(){Md(this);var e=this;return Dd(this,this.render().then((function(t){return new yt((function(n){var r=e.g.getResponse(t);if(r)n(r);else{var o=function(t){t&&(function(e,t){Q(e.l,(function(e){return e==t}))}(e,o),n(t))};e.l.push(o),e.i&&e.g.execute(e.c)}}))})))},e.reset=function(){Md(this),null!==this.c&&this.g.reset(this.c)},e.clear=function(){Md(this),this.D=!0,this.m.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=it(this.u);for(var t;t=e.firstChild;)e.removeChild(t)}},S(Ld,Td);var zd="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Bd(e,t){return{name:e||"",J:"a valid string",optional:!!t,K:function(e){return"string"===typeof e}}}function qd(e,t){return{name:e||"",J:"a boolean",optional:!!t,K:function(e){return"boolean"===typeof e}}}function Ud(e,t){return{name:e||"",J:"a valid object",optional:!!t,K:m}}function Hd(e,t){return{name:e||"",J:"a function",optional:!!t,K:function(e){return"function"===typeof e}}}function Wd(e,t){return{name:e||"",J:"null",optional:!!t,K:function(e){return null===e}}}function Vd(e){return{name:e?e+"Credential":"credential",J:e?"a valid "+e+" credential":"a valid credential",optional:!1,K:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.ia||!n)}}}function Kd(e,t){return m(e)&&"string"===typeof e.type&&e.type===t&&"function"===typeof e.Fa}function Gd(e){return m(e)&&"string"===typeof e.uid}function Yd(e,t,n,r){return{name:n||"",J:e.J+" or "+t.J,optional:!!r,K:function(n){return e.K(n)||t.K(n)}}}function Qd(e,t){for(var n in t){var r=t[n].name;e[r]=Jd(r,e[n],t[n].j)}}function Xd(e,t){for(var n in t){var r=t[n].name;r!==n&&Object.defineProperty(e,r,{get:x((function(e){return this[e]}
2),n),set:x((function(e,t,n,r){Fd(e,[n],[r],!0),this[t]=r}),r,n,t[n].gb),enumerable:!0})}}function $d(e,t,n,r){e[t]=Jd(t,n,r)}function Jd(e,t,n){function r(){var e=Array.prototype.slice.call(arguments);return Fd(i,n,e),t.apply(this,e)}if(!n)return t;var o,i=function(e){return e=e.split("."),e[e.length-1]}(e);for(o in t)r[o]=t[o];for(o in t.prototype)r.prototype[o]=t.prototype[o];return r}Qd(nd.prototype,{fb:{name:"applyActionCode",j:[Bd("code")]},Pa:{name:"checkActionCode",j:[Bd("code")]},jb:{name:"confirmPasswordReset",j:[Bd("code"),Bd("newPassword")]},cc:{name:"createUserWithEmailAndPassword",j:[Bd("email"),Bd("password")]},fc:{name:"fetchSignInMethodsForEmail",j:[Bd("email")]},pa:{name:"getRedirectResult",j:[]},zc:{name:"isSignInWithEmailLink",j:[Bd("emailLink")]},Fc:{name:"onAuthStateChanged",j:[Yd(Ud(),Hd(),"nextOrObserver"),Hd("opt_error",!0),Hd("opt_completed",!0)]},Gc:{name:"onIdTokenChanged",j:[Yd(Ud(),Hd(),"nextOrObserver"),Hd("opt_error",!0),Hd("opt_completed",!0)]},rb:{name:"sendPasswordResetEmail",j:[Bd("email"),Yd(Ud("opt_actionCodeSettings",!0),Wd(null,!0),"opt_actionCodeSettings",!0)]},sb:{name:"sendSignInLinkToEmail",j:[Bd("email"),Ud("actionCodeSettings")]},tb:{name:"setPersistence",j:[Bd("persistence")]},Qc:{name:"signInAndRetrieveDataWithCredential",j:[Vd()]},vb:{name:"signInAnonymously",j:[]},Ya:{name:"signInWithCredential",j:[Vd()]},Rc:{name:"signInWithCustomToken",j:[Bd("token")]},Sc:{name:"signInWithEmailAndPassword",j:[Bd("email"),Bd("password")]},Tc:{name:"signInWithEmailLink",j:[Bd("email"),Bd("emailLink",!0)]},Uc:{name:"signInWithPhoneNumber",j:[Bd("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Vc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Wc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},bd:{name:"updateCurrentUser",j:[Yd({name:"user",J:"an instance of Firebase User",optional:!1,K:function(e){return!!(e&&e instanceof gu)}},Wd(),"user")]},wb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Bd(null,!0)]},dd:{name:"useDeviceLanguage",j:[]},fd:{name:"verifyPasswordResetCode",j:[Bd("code")]}}),Xd(nd.prototype,{lc:{name:"languageCode",gb:Yd(Bd(),Wd(),"languageCode")},ti:{name:"tenantId",gb:Yd(Bd(),Wd(),"tenantId")}}),nd.Persistence=$l,nd.Persistence.LOCAL="local",nd.Persistence.SESSION="session",nd.Persistence.NONE="none",Qd(gu.prototype,{delete:{name:"delete",j:[]},mc:{name:"getIdTokenResult",j:[qd("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[qd("opt_forceRefresh",!0)]},Ac:{name:"linkAndRetrieveDataWithCredential",j:[Vd()]},mb:{name:"linkWithCredential",j:[Vd()]},Bc:{name:"linkWithPhoneNumber",j:[Bd("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Cc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Dc:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Jc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Vd()]},pb:{name:"reauthenticateWithCredential",j:[Vd()]},Kc:{name:"reauthenticateWithPhoneNumber",j:[Bd("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Lc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Mc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},qb:{name:"sendEmailVerification",j:[Yd(Ud("opt_actionCodeSettings",!0),Wd(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Bd(null,!0)]},ad:{name:"unlink",j:[Bd("provider")]},xb:{name:"updateEmail",j:[Bd("email")]},yb:{name:"updatePassword",j:[Bd("password")]},cd:{name:"updatePhoneNumber",j:[Vd("phone")]},zb:{name:"updateProfile",j:[Ud("profile")]},Ab:{name:"verifyBeforeUpdateEmail",j:[Bd("email"),Yd(Ud("opt_actionCodeSettings",!0),Wd(null,!0),"opt_actionCodeSettings",!0)]}}),Qd(_d.prototype,{execute:{name:"execute"},render:{name:"render"}
2,reset:{name:"reset"},getResponse:{name:"getResponse"}}),Qd(md.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Qd(yt.prototype,{ma:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),Xd(Yc.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",gb:qd("appVerificationDisabledForTesting")}}),Qd(Qc.prototype,{confirm:{name:"confirm",j:[Bd("verificationCode")]}}),$d(ci,"fromJSON",(function(e){e="string"===typeof e?JSON.parse(e):e;for(var t,n=[_i,Ti,Oi,hi],r=0;r<n.length;r++)if(t=n[r](e))return t;return null}),[Yd(Bd(),Ud(),"json")]),$d(Pi,"credential",(function(e,t){return new ji(e,t)}),[Bd("email"),Bd("password")]),Qd(ji.prototype,{v:{name:"toJSON",j:[Bd(null,!0)]}}),Qd(bi.prototype,{Aa:{name:"addScope",j:[Bd("scope")]},Ia:{name:"setCustomParameters",j:[Ud("customOAuthParameters")]}}),$d(bi,"credential",wi,[Yd(Bd(),Ud(),"token")]),$d(Pi,"credentialWithLink",Ni,[Bd("email"),Bd("emailLink")]),Qd(xi.prototype,{Aa:{name:"addScope",j:[Bd("scope")]},Ia:{name:"setCustomParameters",j:[Ud("customOAuthParameters")]}}),$d(xi,"credential",ki,[Yd(Bd(),Ud(),"token")]),Qd(Si.prototype,{Aa:{name:"addScope",j:[Bd("scope")]},Ia:{name:"setCustomParameters",j:[Ud("customOAuthParameters")]}}),$d(Si,"credential",Ci,[Yd(Bd(),Yd(Ud(),Wd()),"idToken"),Yd(Bd(),Wd(),"accessToken",!0)]),Qd(Ai.prototype,{Ia:{name:"setCustomParameters",j:[Ud("customOAuthParameters")]}}),$d(Ai,"credential",Ei,[Yd(Bd(),Ud(),"token"),Bd("secret",!0)]),Qd(yi.prototype,{Aa:{name:"addScope",j:[Bd("scope")]},credential:{name:"credential",j:[Yd(Bd(),Yd(Ud(),Wd()),"optionsOrIdToken"),Yd(Bd(),Wd(),"accessToken",!0)]},Ia:{name:"setCustomParameters",j:[Ud("customOAuthParameters")]}}),Qd(fi.prototype,{v:{name:"toJSON",j:[Bd(null,!0)]}}),Qd(di.prototype,{v:{name:"toJSON",j:[Bd(null,!0)]}}),$d(Mi,"credential",Li,[Bd("verificationId"),Bd("verificationCode")]),Qd(Mi.prototype,{cb:{name:"verifyPhoneNumber",j:[Yd(Bd(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(e){return!!e&&(e.session&&e.phoneNumber?Kd(e.session,si)&&"string"===typeof e.phoneNumber:e.session&&e.multiFactorHint?Kd(e.session,li)&&Gd(e.multiFactorHint):e.session&&e.multiFactorUid?Kd(e.session,li)&&"string"===typeof e.multiFactorUid:!!e.phoneNumber&&"string"===typeof e.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]}}),Qd(Ri.prototype,{v:{name:"toJSON",j:[Bd(null,!0)]}}),Qd(C.prototype,{toJSON:{name:"toJSON",j:[Bd(null,!0)]}}),Qd(Ki.prototype,{toJSON:{name:"toJSON",j:[Bd(null,!0)]}}),Qd(Vi.prototype,{toJSON:{name:"toJSON",j:[Bd(null,!0)]}}),Qd(tu.prototype,{toJSON:{name:"toJSON",j:[Bd(null,!0)]}}),Qd(Jc.prototype,{Pc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.ob}}]}}),Qd(su.prototype,{Ob:{name:"getSession",j:[]},dc:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.ob}},Bd("displayName",!0)]},$c:{name:"unenroll",j:[Yd({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Gd},Bd(),"multiFactorInfoIdentifier")]}}),Qd(Ld.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),$d(wo,"parseLink",To,[Bd("link")]),$d(xd,"assertion",(function(e){return new iu(e)}),[Vd("phone")]),function(){if("undefined"===typeof t||!t.INTERNAL||!t.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:lo,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:so,VERIFY_AND_CHANGE_EMAIL:co,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:nd,AuthCredential:ci,Error:C};$d(e,"EmailAuthProvider",Pi,[]),$d(e,"FacebookAuthProvider",bi,[]),$d(e,"GithubAuthProvider",xi,[]),$d(e,"GoogleAuthProvider",Si,[]),$d(e,"TwitterAuthProvider",Ai,[]),$d(e,"OAuthProvider",yi,[Bd("providerId")]),$d(e,"SAMLAuthProvider",vi,[Bd("providerId")]),$d(e,"PhoneAuthProvider",Mi,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(e){return!!(e&&e instanceof nd)}}]),$d(e,"RecaptchaVerifier",Ld,[Yd(Bd(),{name:"",J:"an HTML element",optional:!1,K:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),Ud("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(e){return!!(e&&e instanceof t.app.App)}}]),$d(e,"ActionCodeURL",wo,[]),$d(e,"PhoneMultiFactorGenerator",xd,[]),t.INTERNAL.registerComponent({name:"auth",instanceFactory:function(e){return new nd(e=e.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:e,instantiationMode:"LAZY",type:"PUBLIC"}),t.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(e){return{getUid:w((e=e.getProvider("auth").getImmediate()).getUid,e),getToken:w(e.kc,e),addAuthTokenListener:w(e.bc,e),removeAuthTokenListener:w(e.Nc,e)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),t.registerVersion("@firebase/auth","0.14.9"),t.INTERNAL.extendNamespace({User:gu})}()}).apply("undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},76368:function(e,t,n){e.exports=function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(s[o]=n(t.pow(r,.5))),l[o]=n(t.pow(r,1/3)),o++),r++}();var c=[],u=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],d=n[6],p=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var f=c[h-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,_=c[h-2],g=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;c[h]=m+c[h-7]+g+c[h-16]}var v=r&o^r&i^o&i,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[h]+c[h];p=d,d=u,u=s,s=a+b|0,a=i,i=o,o=r,r=b+(y+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(u),n.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256}(n(84488))},76516:(e,t,n)=>{var r=n(6571);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}}
2,76788:(e,t,n)=>{var r=n(97160),o=n(85204),i=n(64816);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},76955:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},77784:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(22555),o=n(53986),i=n(65043);const a=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,((e,t,n)=>n?n.toUpperCase():t.toLowerCase())))(e);return t.charAt(0).toUpperCase()+t.slice(1)},s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const c=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],u=(0,i.forwardRef)(((e,t)=>{let{color:n="currentColor",size:a=24,strokeWidth:u=2,absoluteStrokeWidth:d,className:p="",children:h,iconNode:f}=e,m=(0,o.A)(e,c);return(0,i.createElement)("svg",(0,r.A)((0,r.A)((0,r.A)({ref:t},l),{},{width:a,height:a,stroke:n,strokeWidth:d?24*Number(u)/Number(a):u,className:s("lucide",p)},!h&&!(e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(m)&&{"aria-hidden":"true"}),m),[...f.map((e=>{let[t,n]=e;return(0,i.createElement)(t,n)})),...Array.isArray(h)?h:[h]])})),d=["className"],p=(e,t)=>{const n=(0,i.forwardRef)(((n,l)=>{let{className:c}=n,p=(0,o.A)(n,d);return(0,i.createElement)(u,(0,r.A)({ref:l,iconNode:t,className:s("lucide-".concat((h=a(e),h.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())),"lucide-".concat(e),c)},p));var h}));return n.displayName=a(e),n}},77819:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},78168:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray,r=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var a=o(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16}(n(84488))},78420:(e,t,n)=>{var r=n(71775),o=n(93211),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},78523:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s<n;s++)o.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(n(84488))},78853:(e,t,n)=>{"use strict";e.exports=n(5896)},79092:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.x64,r=n.Word,o=n.WordArray,i=t.algo,a=i.SHA512,s=i.SHA384=a.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1
2731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),e.SHA384}(n(84488),n(59749),n(57061))},79211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(40840),i=(r=o)&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},l=t.autoprefix=function(e){var t={};return(0,i.default)(e,(function(e,n){var r={};(0,i.default)(e,(function(e,t){var n=s[t];n?r=a({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=l},79475:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.BlockCipher,i=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c
vendor: 7,629 bytes, line 2
2=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
2u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],u=l[i];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^o[l])&u[l])>>>0];this._lBlock=a,this._rBlock=i^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=o._createHelper(d);var f=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(f)}(),e.TripleDES}(n(84488),n(78523),n(54199),n(18211),n(52238))},79567:(e,t,n)=>{"use strict";function r(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}n.d(t,{T:()=>r})},79638:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var a=o%n,s=t[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+s)%256;var l=r[o];r[o]=r[i],r[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}t.RC4=n._createHelper(o);var a=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=n._createHelper(a)}(),e.RC4}(n(84488),n(78523),n(54199),n(18211),n(52238))}
2,80438:(e,t,n)=>{var r=n(12622);e.exports=function(e){return r(this,e).get(e)}},80535:(e,t,n)=>{"use strict";n.d(t,{J5:()=>i,UJ:()=>o,_0:()=>r,xm:()=>a});const r=[{key:"creative",title:"\u0627\u0644\u0625\u0628\u062f\u0627\u0639 \u0648\u0627\u0644\u0641\u0646\u0648\u0646",emoji:"\ud83c\udfa8"},{key:"spiritual",title:"\u0627\u0644\u0631\u0648\u062d\u0627\u0646\u064a\u0627\u062a",emoji:"\ud83d\udd4c"},{key:"manual",title:"\u062a\u0648\u062b\u064a\u0642 \u064a\u062f\u0648\u064a",emoji:"\ud83d\udee1\ufe0f"}],o=[{key:"design",label:"\u0645\u0635\u0645\u0645 \u0627\u0644\u062c\u0631\u0627\u0641\u064a\u0643",levelNames:["\u0645\u0628\u062a\u062f\u0626","\u0647\u0627\u0648\u064d","\u0645\u0635\u0645\u0645","\u0645\u062d\u062a\u0631\u0641","\u062e\u0628\u064a\u0631","\u0623\u0633\u0637\u0648\u0631\u0629"],emoji:"\ud83c\udfa8",description:"\u062a\u0635\u0645\u064a\u0645 \u0627\u0644\u062c\u0631\u0627\u0641\u064a\u0643 \u0648\u0627\u0644\u0647\u0648\u064a\u0627\u062a \u0627\u0644\u0628\u0635\u0631\u064a\u0629",color:"#e8834a",gradient:"linear-gradient(135deg, #e8834a 0%, #c9583a 100%)",unitLabel:"\u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 \u0645\u0635\u0645\u0645",group:"creative",verification:{type:"admin"},thresholds:[{level:1,required:15},{level:2,required:40},{level:3,required:65},{level:4,required:100},{level:5,required:125},{level:6,required:150}]},{key:"writing",label:"\u0627\u0644\u0643\u0627\u062a\u0628 \u0627\u0644\u0645\u0628\u062f\u0639",levelNames:["\u0647\u0627\u0648\u064d","\u0643\u0627\u062a\u0628 \u0646\u0627\u0634\u0626","\u0643\u0627\u062a\u0628","\u0643\u0627\u062a\u0628 \u0645\u062a\u0645\u0631\u0633","\u0643\u0627\u062a\u0628 \u0645\u062d\u062a\u0631\u0641","\u0623\u062f\u064a\u0628"],emoji:"\u270d\ufe0f",description:"\u0627\u0644\u062a\u0623\u0644\u064a\u0641 \u0648\u0627\u0644\u0643\u062a\u0627\u0628\u0629 \u0627\u0644\u0625\u0628\u062f\u0627\u0639\u064a\u0629",color:"#7c4ae8",gradient:"linear-gradient(135deg, #7c4ae8 0%, #5b2dc9 100%)",unitLabel:"\u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 \u0643\u0627\u062a\u0628",group:"creative",verification:{type:"admin"},thresholds:[{level:1,required:14},{level:2,required:30},{level:3,required:55},{level:4,required:80},{level:5,required:100},{level:6,required:140}]},{key:"painting",label:"\u0627\u0644\u0631\u0633\u0627\u0645",levelNames:["\u0645\u0628\u062a\u062f\u0626","\u0647\u0627\u0648\u064d","\u0631\u0633\u0627\u0645","\u0631\u0633\u0627\u0645 \u0645\u0627\u0647\u0631","\u0641\u0646\u0627\u0646","\u0641\u0646\u0627\u0646 \u0623\u0633\u0637\u0648\u0631\u064a"],emoji:"\ud83d\uddbc\ufe0f",description:"\u0623\u0639\u0645\u0627\u0644 \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u062a\u0642\u0644\u064a\u062f\u064a \u0648\u0627\u0644\u062a\u0644\u0648\u064a\u0646 \u0627\u0644\u064a\u062f\u0648\u064a",color:"#d1495b",gradient:"linear-gradient(135deg, #d1495b 0%, #a52f40 100%)",unitLabel:"\u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 \u0631\u0633\u0627\u0645",group:"creative",verification:{type:"admin"},thresholds:[{level:1,required:15},{level:2,required:40},{level:3,required:65},{level:4,required:100},{level:5,required:125},{level:6,required:150}]},{key:"coloring",label:"\u0627\u0644\u0645\u0644\u0648\u0646 \u0627\u0644\u0631\u0642\u0645\u064a",levelNames:["\u0645\u0628\u062a\u062f\u0626","\u0647\u0627\u0648\u064d","\u0645\u0644\u0648\u0651\u0646","\u0645\u0644\u0648\u0651\u0646 \u0645\u0627\u0647\u0631","\u062e\u0628\u064a\u0631 \u062a\u0644\u0648\u064a\u0646","\u0623\u0633\u0637\u0648\u0631\u0629 \u0627\u0644\u0623\u0644\u0648\u0627\u0646"],emoji:"\ud83d\udd8d\ufe0f",description:"\u0627\u0644\u062a\u0644\u0648\u064a\u0646 \u0648\u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u0631\u0642\u0645\u064a",color:"#4a8ee8",gradient:"linear-gradient(135deg, #4a8ee8 0%, #2d5fc9 100%)",unitLabel:"\u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 \u0645\u0644\u0648\u0651\u0646",group:"creative",verification:{type:"admin"},thresholds:[{level:1,required:15},{level:2,required:40},{level:3,required:65},{level:4,required:100},{level:5,required:125},{level:6,required:150}]},{key:"journalism",label:"\u0627\u0644\u0635\u062d\u0641\u064a",levelNames:["\u0645\u062a\u062f\u0631\u0628","\u0645\u062d\u0631\u0631 \u0645\u0628\u062a\u062f\u0626","\u0635\u062d\u0641\u064a","\u0635\u062d\u0641\u064a \u0645\u062a\u0645\u0631\u0633","\u0645\u062d\u0631\u0631 \u0623\u0648\u0644","\u0635\u062d\u0641\u064a \u0645\u062d\u062a\u0631\u0641"],emoji:"\ud83d\udcf0",description:"\u0627\u0644\u062a\u063a\u0637\u064a\u0629 \u0627\u0644\u0635\u062d\u0641\u064a\u0629 \u0648\u0643\u062a\u0627\u0628\u0629 \u0627\u0644\u0623\u062e\u0628\u0627\u0631",color:"#2f9e44",gradient:"linear-gradient(135deg, #2f9e44 0%, #1f7a30 100%)",unitLabel:"\u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 \u0635\u062d\u0641\u064a",group:"creative",verification:{type:"admin"},thresholds:[{level:1,required:15},{level:2,required:40},{level:3,required:65},{level:4,required:100},{level:5,required:125},{level:6,required:150}]},{key:"dhikr",label:"\u0627\u0644\u0630\u0627\u0643\u0631 \u0627\u0644\u0644\u0647 \u0643\u062b\u064a\u0631\u0627\u064b",levelNames:["\u0645\u0628\u062a\u062f\u0626","\u0645\u0648\u0627\u0638\u0628","\u0630\u0627\u0643\u0631","\u0630\u0627\u0643\u0631 \u0645\u062a\u0645\u0631\u0633","\u0630\u0627\u0643\u0631 \u0645\u062e\u0644\u0635","\u0630\u0627\u0643\u0631 \u0627\u0644\u0644\u0647 \u0643\u062b\u064a\u0631\u0627\u064b"],emoji:"\ud83d\udcff",description:"\u0627\u0644\u0627\u0633\u062a\u0645\u0631\u0627\u0631 \u0627\u0644\u064a\u0648\u0645\u064a \u0639\u0644\u0649 \u0627\u0644\u062a\u0633\u0628\u064a\u062d \u0648\u0627\u0644\u0630\u0643\u0631",color:"#c8a000",gradient:"linear-gradient(135deg, #c8a000 0%, #8f7300 100%)",unitLabel:"\u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 \u0630\u0627\u0643\u0631",group:"spiritual",verification:{type:"streak",route:"/tasbeeh"},thresholds:[{level:1,required:30},{level:2,required:60},{level:3,required:100},{level:4,required:125},{level:5,required:160},{level:6,required:200}]},{key:"adhkar",label:"\u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0635\u0628\u0627\u062d \u0648\u0627\u0644\u0645\u0633\u0627\u0621",levelNames:["\u0645\u0628\u062a\u062f\u0626","\u0645\u0648\u0627\u0638\u0628","\u0645\u062d\u0627\u0641\u0638","\u0645\u062d\u0627\u0641\u0638 \u0645\u062a\u0645\u0631\u0633","\u0645\u0644\u062a\u0632\u0645","\u062d\u0627\u0631\u0633 \u0627\u0644\u0623\u0630\u0643\u0627\u0631"],emoji:"\ud83c\udf05",description:"\u0627\u0644\u0645\u0648\u0627\u0638\u0628\u0629 \u0639\u0644\u0649 \u0623\u0630\u0643\u0627\u0631 \u0627\u0644\u0635\u0628\u0627\u062d \u0648\u0627\u0644\u0645\u0633\u0627\u0621",color:"#16a085",gradient:"linear-gradient(135deg, #16a085 0%, #0e6b58 100%)",unitLabel:"\u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 \u0645\u062d\u0627\u0641\u0638",group:"spiritual",verification:{type:"streak",route:"/adhkar"},thresholds:[{level:1,required:30},{level:2,required:60},{level:3,required:100},{level:4,required:125},{level:5,required:160},{level:6,required:200}]},{key:"quran",label:"\u062d\u0627\u0641\u0638 \u0627\u0644\u0642\u0631\u0622\u0646",levelNames:["\u0645\u0628\u062a\u062f\u0626","\u062d\u0627\u0641\u0638 \u062c\u0632\u0621","\u062d\u0627\u0641\u0638 \u0623\u062c\u0632\u0627\u0621","\u062d\u0627\u0641\u0638 \u0645\u062a\u0645\u0631\u0633","\u062d\u0627\u0641\u0638 \u0645\u062a\u0642\u0646","\u062d\u0627\u0641\u0638 \u0627\u0644\u0642\u0631\u0622\u0646"],emoji:"\ud83d\udcd7",description:"\u062d\u0641\u0638 \u0648\u0645\u0631\u0627\u062c\u0639\u0629 \u0627\u0644\u0642\u0631\u0622\u0646 \u0627\u0644\u0643\u0631\u064a\u0645",color:"#2c7a4b",gradient:"linear-gradient(135deg, #2c7a4b 
20%, #1d5433 100%)",unitLabel:"\u0646\u0642\u0637\u0629 \u0625\u0646\u062c\u0627\u0632 \u062d\u0627\u0641\u0638 \u0627\u0644\u0642\u0631\u0622\u0646",group:"spiritual",verification:{type:"quiz",route:"/quran"},thresholds:[{level:1,required:50},{level:2,required:125},{level:3,required:225},{level:4,required:350},{level:5,required:475},{level:6,required:604}]}],i=e=>{const t=o.find((t=>t.key===e));return(null===t||void 0===t?void 0:t.thresholds)||[]},a=e=>{const t=o.find((t=>t.key===e));return(null===t||void 0===t?void 0:t.levelNames)||[]}},80726:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},80819:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>b,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>C,__classPrivateFieldSet:()=>A,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>h,__extends:()=>o,__generator:()=>d,__importDefault:()=>S,__importStar:()=>k,__makeTemplateObject:()=>x,__metadata:()=>c,__param:()=>l,__read:()=>m,__rest:()=>a,__spread:()=>_,__spreadArrays:()=>g,__values:()=>f});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof v?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(r){u(i[0][3],r)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
2function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function A(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},81518:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(65043),o=n(88078);const i=e=>{let{isOpen:t,title:n,message:i,onClose:a,onCancel:s}=e;const l=(0,o.dj)();return(0,r.useEffect)((()=>{if(!t)return;const e=i||n;e&&l(e),s?s():a&&a()}),[t,n,i,a,s,l]),null}},83713:(e,t,n)=>{var r=n(36140),o=n(61143),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},84259:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},84391:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(97004)},84488:function(e,t,n){e.exports=function(){var e=e||function(e,t){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(50477)}catch(_){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(_){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(_){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var s=0;s<o;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new c.init(t,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},f=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,s=i/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,i);if(l){for(var d=0;d<l;d+=a)this._doProcessBlock(o,d);n=o.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(s.Hasher=f.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math);return e}()},84545:(e,t,n)=>{var r=n(97160);e.exports=function(){this.__data__=new r,this.size=0}}
2,85204:(e,t,n)=>{var r=n(87937)(n(56552),"Map");e.exports=r},85692:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},85990:(e,t,n)=>{var r=n(13028)(Object.getPrototypeOf,Object);e.exports=r},86111:function(e,t,n){e.exports=function(e){return e}(n(84488),n(59749),n(74503),n(78168),n(78523),n(74646),n(54199),n(12002),n(76368),n(1641),n(57061),n(79092),n(16600),n(7423),n(64220),n(53930),n(18211),n(52238),n(21112),n(7962),n(98049),n(56380),n(88099),n(91884),n(89132),n(4423),n(70548),n(94087),n(64708),n(37780),n(79475),n(79638),n(8875),n(41659),n(26501))},86179:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},86490:(e,t,n)=>{"use strict";n.d(t,{MF:()=>r,k2:()=>o});const r=e=>(null===e||void 0===e?void 0:e.frame_border_radius)||"10%",o=e=>e||"10%"},86532:(e,t,n)=>{var r=n(5538),o=n(26989);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(i)var f=i(d,p,u,e,t,h);if(!(void 0===f?o(p,d,3,i,h):f))return!1}}return!0}},87563:e=>{e.exports=function(){this.__data__=[],this.size=0}},87937:(e,t,n)=>{var r=n(36954),o=n(14657);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},87978:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},88078:(e,t,n)=>{"use strict";n.d(t,{tE:()=>c,dj:()=>u});var r=n(65043),o=n(97950),i=n(70579);const a=(0,r.createContext)(null),s={short:2e3,long:3500};let l=0;const c=e=>{let{children:t}=e;const[n,c]=(0,r.useState)([]),[u,d]=(0,r.useState)(null),[p,h]=(0,r.useState)(!1),f=(0,r.useRef)(null),m=(0,r.useRef)(null),_=(0,r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return;const n="number"===typeof t.duration?t.duration:s[t.duration]||s.short,r=++l;c((t=>[...t,{id:r,message:e,duration:n}]))}),[]);return(0,r.useEffect)((()=>{if(!u&&n.length>0){const[e,...t]=n;d(e),c(t)}}),[n,u]),(0,r.useEffect)((()=>{if(!u)return;h(!1);const e=requestAnimationFrame((()=>h(!0)));return f.current=setTimeout((()=>{h(!1),m.current=setTimeout((()=>{d(null)}),250)}),u.duration),()=>{cancelAnimationFrame(e),clearTimeout(f.current),clearTimeout(m.current)}}),[u]),(0,i.jsxs)(a.Provider,{value:_,children:[t,u&&(0,o.createPortal)((0,i.jsx)("div",{className:"toast-layer",role:"status","aria-live":"polite","aria-atomic":"true",children:(0,i.jsx)("div",{className:"toast-pill ".concat(p?"toast-visible":"toast-hidden"),children:u.message})}),document.body)]})},u=()=>{const e=(0,r.useContext)(a);if(null===e)throw new Error("useToast \u064a\u062c\u0628 \u0623\u0646 \u064a\u064f\u0633\u062a\u062e\u062f\u0645 \u062f\u0627\u062e\u0644 <ToastProvider>");return e}},88099:function(e,t,n){e.exports=function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB}(n(84488),n(52238))},88259:(e,t,n)=>{var r=n(15797);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},88306:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},88693:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},89132:function(e,t,n){e.exports=function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}(n(84488),n(52238))}
2,89223:(e,t,n)=>{"use strict";n.d(t,{Cz:()=>s});var r=n(22555),o=n(40117);const i=(e,t,n)=>{const r=new Error(t);return r.code=e,n&&(r.cause=n),r},a=e=>{const t=Number(e);if(!Number.isSafeInteger(t)||t<=0)throw i("INVALID_AMOUNT","\u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u062f\u062e\u0627\u0644 \u0645\u0628\u0644\u063a \u0635\u062d\u064a\u062d \u0623\u0643\u0628\u0631 \u0645\u0646 \u0635\u0641\u0631");return t},s=async function(e,t,n){var s,l,c;let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const p=a(n);if(!e||!t)throw i("USER_REQUIRED","\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0631\u0633\u0644 \u0623\u0648 \u0627\u0644\u0645\u0633\u062a\u0644\u0645 \u063a\u064a\u0631 \u0645\u0643\u062a\u0645\u0644\u0629");if(e===t)throw i("SAME_USER","\u0644\u0627 \u064a\u0645\u0643\u0646\u0643 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u062a \u0625\u0644\u0649 \u0646\u0641\u0633\u0643");const[h,f]=await Promise.all([o.firebase.database().ref("kunaiu_bank/".concat(e)).once("value"),o.firebase.database().ref("kunaiu_bank/".concat(t)).once("value")]);if(!h.exists())throw i("SENDER_NOT_FOUND","\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u0645\u0631\u0633\u0644 \u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f");if(!f.exists())throw i("RECIPIENT_NOT_FOUND","\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u0645\u0633\u062a\u0642\u0628\u0644 \u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f");const m=Number(null===(s=h.val())||void 0===s?void 0:s.value)||0;if(m<p)throw i("INSUFFICIENT_BALANCE","\u0631\u0635\u064a\u062f\u0643 \u063a\u064a\u0631 \u0643\u0627\u0641\u064d \u0644\u0625\u062a\u0645\u0627\u0645 \u0627\u0644\u0639\u0645\u0644\u064a\u0629");const _=d.senderName||"\u0645\u0633\u062a\u062e\u062f\u0645",g=d.recipientName||(null===(l=f.val())||void 0===l?void 0:l.name)||"\u0645\u0633\u062a\u062e\u062f\u0645",v=d.senderMessage||"\u0623\u0631\u0633\u0644\u062a \u0639\u0645\u0644\u0627\u062a \u0625\u0644\u0649 ".concat(g),y=d.recipientMessage||"\u062d\u0635\u0644\u062a \u0639\u0644\u0649 \u0639\u0645\u0644\u0627\u062a \u0645\u0646 ".concat(_),b=o.firebase.database().ref("kunaiu_bank/".concat(e,"/history_rewards")).push().key,w=o.firebase.database().ref("kunaiu_bank/".concat(t,"/history_rewards")).push().key,x=o.firebase.database().ref("coin_transfers").push().key,k=Date.now();await o.firebase.database().ref().update({["kunaiu_bank/".concat(e,"/value")]:o.firebase.database.ServerValue.increment(-p),["kunaiu_bank/".concat(t,"/value")]:o.firebase.database.ServerValue.increment(p),["kunaiu_bank/".concat(e,"/coin_transfer_receipt")]:{id:x,recipientId:t,amount:p,timestamp:k},["kunaiu_bank/".concat(e,"/history_rewards/").concat(b)]:(0,r.A)({amount:"-".concat(p),date:k,msg:u||v,reason:v,type:d.type||"Transfer",id:t,transfer_id:x},d.postId?{post_id:d.postId}:{}),["kunaiu_bank/".concat(t,"/history_rewards/").concat(w)]:(0,r.A)({amount:"".concat(p),date:k,msg:u||y,reason:y,type:d.type||"Transfer",id:e,transfer_id:x},d.postId?{post_id:d.postId}:{})});const S={senderId:e,recipientId:t,amount:p,senderBalance:m-p,recipientBalance:(Number(null===(c=f.val())||void 0===c?void 0:c.value)||0)+p};return window.dispatchEvent(new CustomEvent("coin-balance-updated",{detail:S})),S}},89927:(e,t,n)=>{"use strict";n.d(t,{FV:()=>f,G0:()=>d,GR:()=>s,Ps:()=>h,Vz:()=>u,Xi:()=>p,tu:()=>l,v7:()=>c,z0:()=>m});let r=[],o=0,i=!1,a=null;const s=e=>{0===r.length&&(a=window.location.pathname,console.log("\ud83d\udcbe Saved page path:",a));const t="".concat(e,"__").concat(++o);return r.push({type:e,instanceId:t}),window.history.pushState({modal:e,instanceId:t,stackIndex:r.length,savedPath:a},""),console.log("Modal pushed:",t,"Stack:",r.map((e=>e.instanceId))),t},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r.findIndex((t=>t.instanceId===e));if(-1===n&&(n=r.map((e=>e.type)).lastIndexOf(e)),-1!==n&&r.splice(n,1),0===r.length&&(a=null,console.log("\u2705 All modals closed, cleared saved path")),console.log("Modal popped:",e,"Stack:",r.map((e=>e.instanceId)),"popHistory:",t),t){p();try{window.history.back()}catch(o){}finally{setTimeout((()=>h()),0)}}},c=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3)+(r.length+1)*e},u=()=>r.length>0?r[r.length-1].instanceId:null,d=()=>i,p=()=>{i=!0},h=()=>{i=!1},f=()=>{r=[],a=null,console.log("Modal stack reset")},m=(e,t)=>
2{r=[],window.history.replaceState(null,""),e(t,{replace:!0}),console.log("Navigated from modal to:",t)}},90620:(e,t,n)=>{var r=n(16913),o=n(54052),i=n(22761);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},91051:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});const r=(0,n(65043).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},91118:(e,t,n)=>{"use strict";n.d(t,{A:()=>H});var r=n(22555),o=n(65043),i=n(97950),a=n(75439),s=n(40117),l=n(65982),c=n(34453),u=n(5379),d=n(67147),p=n(5077),h=n(94651),f=n(8145),m=n(65010),_=n(37719),g=n(34677),v=n(30590),y=n(26390),b=n(73546),w=n(14043),x=n(43e3),k=n(81518),S=n(65871),C=(n(70534),n(35896)),A=n(52222),E=n(66006),j=n(89223),T=n(89927),P=n(92730),N=n(7540),I=n(30502),R=n(9700),O=n(47174),D=n(59773),M=n(65624),L=n(63451),F=(n(63967),n(13005)),z=n(10624),B=n(86490),q=(n(543),n(70579));const U=["like","love","care","haha","wow","sad","angry"],H=e=>{var t;let{postId:n,isOpen:H,onClose:W,onOpenReply:V}=e;const K=(0,a.Zp)(),G=o.useRef(!1),Y=o.useRef(!1),Q=o.useRef(null),{theme:X}=(0,F.DP)(),{t:$,resolvedDirection:J}=(0,z.o)(),[Z,ee]=(0,o.useState)(!1),te=o.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Y.current||(Y.current=!0,ee(!0),setTimeout((()=>{Q.current&&((0,T.tu)(Q.current,!e),G.current=!0),ee(!1),Y.current=!1,W()}),250))}),[W]),ne=o.useRef(!1),re=o.useRef(!1);(0,o.useEffect)((()=>(ne.current||(G.current=!1,window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"open"}})),Q.current=(0,T.GR)("comments"),ne.current=!0),()=>{re.current?(window.dispatchEvent(new CustomEvent("modalChange",{detail:{action:"close"}})),!G.current&&Q.current&&(0,T.tu)(Q.current,!0)):re.current=!0})),[]),(0,o.useEffect)((()=>{H||(ne.current=!1,Q.current=null)}),[H]),(0,o.useEffect)((()=>{if(!H)return;const e=e=>{var t;(0,T.G0)()||(null===(t=e.state)||void 0===t?void 0:t.instanceId)===Q.current||(0,T.Vz)()===Q.current&&(e.preventDefault(),te(!0))};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)}),[H,te]);const{userData:oe}=(0,l.Jd)(),ie=(0,L.OR)(oe,L._c.COMMENT),[ae,se]=(0,o.useState)(null),[le,ce]=(0,o.useState)([]),[ue,de]=(0,o.useState)({}),[pe,he]=(0,o.useState)({}),[fe,me]=(0,o.useState)({}),[_e,ge]=(0,o.useState)({}),[ve,ye]=(0,o.useState)(null),[be,we]=(0,o.useState)("all"),[xe,ke]=(0,o.useState)([]),[Se,Ce]=(0,o.useState)(!1),[Ae,Ee]=(0,o.useState)(null),[je,Te]=(0,o.useState)(null),[Pe,Ne]=(0,o.useState)({isOpen:!1,targetType:"comment",targetId:null,messageText:""}),[Ie,Re]=(0,o.useState)(null),[Oe,De]=(0,o.useState)(null),[Me,Le]=(0,o.useState)(""),[Fe,ze]=(0,o.useState)({like:"https://assets.amposter.com/reactions/reaction_pack1/like.png",love:"https://assets.amposter.com/reactions/reaction_pack1/love.png",care:"https://assets.amposter.com/reactions/reaction_pack1/care.png",wow:"https://assets.amposter.com/reactions/reaction_pack1/wow.png",haha:"https://assets.amposter.com/reactions/reaction_pack1/haha.png",sad:"https://assets.amposter.com/reactions/reaction_pack1/sad.png",angry:"https://assets.amposter.com/reactions/reaction_pack1/angry.png"}),[Be,qe]=(0,o.useState)(""),[Ue,He]=(0,o.useState)(!1),[We,Ve]=(0,o.useState)([]),[Ke,Ge]=(0,o.useState)([]),[Ye,Qe]=(0,o.useState)(!1),[Xe,$e]=(0,o.useState)(null),[Je,Ze]=(0,o.useState)(null),[et,tt]=(0,o.useState)(null),[nt,rt]=(0,o.useState)(!1),[ot,it]=(0,o.useState)(!1),[at,st]=(0,o.useState)(""),[lt,ct]=(0,o.useState)(!1),[ut,dt]=(0,o.useState)([]),[pt,ht]=(0,o.useState)(""),[ft,mt]=(0,o.useState)("prophets"),[_t,gt]=(0,o.useState)([]),[vt,yt]=(0,o.useState)(!1),[bt,wt]=(0,o.useState)([]),[xt,kt]=(0,o.useState)(""),[St,Ct]=(0,o.useState)(!1),[At,Et]=(0,o.useState)(""),[jt,Tt]=(0,o.useState)(null),Pt=(0,o.useRef)({}),Nt=(0,o.useRef)([]),[It,Rt]=(0,o.useState)(null),[Ot,Dt]=(0,o.useState)(!1),[Mt,Lt]=(0,o.useState)(!0),Ft=((0,o.useRef)(0),(0,o.useRef)(null)),zt=(0,o.useRef)(null),Bt=(0,o.useRef)(null),qt=[{number:1,name:"\u0627\u0644\u0641\u0627\u062a\u062d\u0629"},{number:2,name:"\u0627\u0644\u0628\u0642\u0631\u0629"},{number:3,name:"\u0622\u0644 \u0639\u0645\u0631\u0627\u0646"},{number:4,name:"\u0627\u0644\u0646\u0633\u0627\u0621"},{number:5,name:"\u0627\u0644\u0645\u0627\u0626\u062f\u0629"},{number:6,name:"\u0627\u0644\u0623\u0646\u0639\u0627\u0645"},{number:7,name:"\u0627\u0644\u0623\u0639\u0631\u0627\u0641"},{number:8,name:"\u0627\u0644\u0623\u0646\u0641\u0627\u0644"},{number:9,name:"\u0627\u0644\u062a\u0648\u0628\u0629"},{number:10,name:"\u064a\u0648\u0646\u0633"},{number:11,name:"\u0647\u0648\u062f"},{number:12,name:"\u064a\u0648\u0633\u0641"},{number:13,name:"\u0627\u0644\u0631\u0639\u062f"},{number:14,name:"\u0625\u0628\u0631\u0627\u0647\u064a\u0645"},{number:15,name:"\u0627\u0644\u062d\u062c\u0631"},{number:16,name:"\u0627\u0644\u0646\u062d\u0644"},{number:17,name:"\u0627\u0644\u0625\u0633\u0631\u0627\u0621"},{number:18,name:"\u0627\u0644\u0643\u0647\u0641"},{number:19,name:"\u0645\u0631\u064a\u0645"},{number:20,name:"\u0637\u0647"},{number:21,name:"\u0627\u0644\u0623\u0646\u0628\u064a\u0627\u0621"},{number:22,name:"\u0627\u0644\u062d\u062c"},{number:23,name:"\u0627\u0644\u0645\u0624\u0645\u0646\u0648\u0646"},{number:24,name:"\u0627\u0644\u0646\u0648\u0631"},{number:25,name:"\u0627\u0644\u0641\u0631\u0642\u0627\u0646"},{number:26,name:"\u0627\u0644\u0634\u0639\u0631\u0627\u0621"},{number:27,name:"\u0627\u0644\u0646\u0645\u0644"},{number:28,name:"\u0627\u0644\u0642\u0635\u0635"},{number:29,name:"\u0627\u0644\u0639\u0646\u0643\u0628\u0648\u062a"},{number:30,name:"\u0627\u0644\u0631\u0648\u0645"},{number:31,name:"\u0644\u0642\u0645\u0627\u0646"},{number:32,name:"\u0627\u0644\u0633\u062c\u062f\u0629"},{number:33,name:"\u0627\u0644\u0623\u062d\u0632\u0627\u0628"},{number:34,name:"\u0633\u0628\u0623"},{number:35,name:"\u0641\u0627\u0637\u0631"},{number:36,name:"\u064a\u0633"},{number:37,name:"\u0627\u0644\u0635\u0627\u0641\u0627\u062a"},{number:38,name:"\u0635"},{number:39,name:"\u0627\u0644\u0632\u0645\u0631"},{number:40,name:"\u063a\u0627\u0641\u0631"},{number:41,name:"\u0641\u0635\u0644\u062a"},{number:42,name:"\u0627\u0644\u0634\u0648\u0631\u0649"},{number:43,name:"\u0627\u0644\u0632\u062e\u0631\u0641"},{number:44,name:"\u0627\u0644\u062f\u062e\u0627\u0646"},{number:45,name:"\u0627\u0644\u062c\u0627\u062b\u064a\u0629"},{number:46,name:"\u0627\u0644\u0623\u062d\u0642\u0627\u0641"},{number:47,name:"\u0645\u062d\u0645\u062f"},{number:48,name:"\u0627\u0644\u0641\u062a\u062d"},{number:49,name:"\u0627\u0644\u062d\u062c\u0631\u0627\u062a"},{number:50,name:"\u0642"},{number:51,name:"\u0627\u0644\u0630\u0627\u0631\u064a\u0627\u062a"},{number:52,name:"\u0627\u0644\u0637\u0648\u0631"},{number:53,name:"\u0627\u0644\u0646\u062c\u0645"},{number:54,name:"\u0627\u0644\u0642\u0645\u0631"},{number:55,name:"\u0627\u0644\u0631\u062d\u0645\u0646"},{number:56,name:"\u0627\u0644\u0648\u0627\u0642\u0639\u0629"},{number:57,name:"\u0627\u0644\u062d\u062f\u064a\u062f"},{number:58,name:"\u0627\u0644\u0645\u062c\u0627\u062f\u0644\u0629"},{number:59,name:"\u0627\u0644\u062d\u0634\u0631"},{number:60,name:"\u0627\u0644\u0645\u0645\u062a\u062d\u0646\u0629"},{number:61,name:"\u0627\u0644\u0635\u0641"},{number:62,name:"\u0627\u0644\u062c\u0645\u0639\u0629"},{number:63,name:"\u0627\u0644\u0645\u0646\u0627\u0641\u0642\u0648\u0646"},{number:64,name:"\u0627\u0644\u062a\u063a\u0627\u0628\u0646"},{number:65,name:"\u0627\u0644\u0637\u0644\u0627\u0642"},{number:66,name:"\u0627\u0644\u062a\u062d\u0631\u064a\u0645"},{number:67,name:"\u0627\u0644\u0645\u0644\u0643"},{number:68,name:"\u0627\u0644\u0642\u0644\u0645"},{number:69,name:"\u0627\u0644\u062d\u0627\u0642\u0629"},{number:70,name:"\u0627\u0644\u0645\u0639\u0627\u0631\u062c"},{number:71,name:"\u0646\u0648\u062d"},{number:72,name:"\u0627\u0644\u062c\u0646"},{number:73,name:"\u0627\u0644\u0645\u0632\u0645\u0644"},{number:74,name:"\u0627\u0644\u0645\u062f\u062b\u0631"},{number:75,name:"\u0627\u0644\u0642\u064a\u0627\u0645\u0629"},{number:76,name:"\u0627\u0644\u0625\u0646\u0633\u0627\u0646"},{number:77,name:"\u0627\u0644\u0645\u0631\u0633\u0644\u0627\u062a"},{number:78,name:"\u0627\u0644\u0646\u0628\u0623"},{number:79,name:"\u0627\u0644\u0646\u0627\u0632\u0639\u0627\u062a"},{number:80,name:"\u0639\u0628\u0633"},{number:81,name:"\u0627\u0644\u062a\u0643\u0648\u064a\u0631"},{number:82,name:"\u0627\u0644\u0625\u0646\u0641\u0637\u0627\u0631"}
2,{number:83,name:"\u0627\u0644\u0645\u0637\u0641\u0641\u064a\u0646"},{number:84,name:"\u0627\u0644\u0625\u0646\u0634\u0642\u0627\u0642"},{number:85,name:"\u0627\u0644\u0628\u0631\u0648\u062c"},{number:86,name:"\u0627\u0644\u0637\u0627\u0631\u0642"},{number:87,name:"\u0627\u0644\u0623\u0639\u0644\u0649"},{number:88,name:"\u0627\u0644\u063a\u0627\u0634\u064a\u0629"},{number:89,name:"\u0627\u0644\u0641\u062c\u0631"},{number:90,name:"\u0627\u0644\u0628\u0644\u062f"},{number:91,name:"\u0627\u0644\u0634\u0645\u0633"},{number:92,name:"\u0627\u0644\u0644\u064a\u0644"},{number:93,name:"\u0627\u0644\u0636\u062d\u0649"},{number:94,name:"\u0627\u0644\u0634\u0631\u062d"},{number:95,name:"\u0627\u0644\u062a\u064a\u0646"},{number:96,name:"\u0627\u0644\u0639\u0644\u0642"},{number:97,name:"\u0627\u0644\u0642\u062f\u0631"},{number:98,name:"\u0627\u0644\u0628\u064a\u0646\u0629"},{number:99,name:"\u0627\u0644\u0632\u0644\u0632\u0644\u0629"},{number:100,name:"\u0627\u0644\u0639\u0627\u062f\u064a\u0627\u062a"},{number:101,name:"\u0627\u0644\u0642\u0627\u0631\u0639\u0629"},{number:102,name:"\u0627\u0644\u062a\u0643\u0627\u062b\u0631"},{number:103,name:"\u0627\u0644\u0639\u0635\u0631"},{number:104,name:"\u0627\u0644\u0647\u0645\u0632\u0629"},{number:105,name:"\u0627\u0644\u0641\u064a\u0644"},{number:106,name:"\u0642\u0631\u064a\u0634"},{number:107,name:"\u0627\u0644\u0645\u0627\u0639\u0648\u0646"},{number:108,name:"\u0627\u0644\u0643\u0648\u062b\u0631"},{number:109,name:"\u0627\u0644\u0643\u0627\u0641\u0631\u0648\u0646"},{number:110,name:"\u0627\u0644\u0646\u0635\u0631"},{number:111,name:"\u0627\u0644\u0645\u0633\u062f"},{number:112,name:"\u0627\u0644\u0625\u062e\u0644\u0627\u0635"},{number:113,name:"\u0627\u0644\u0641\u0644\u0642"},{number:114,name:"\u0627\u0644\u0646\u0627\u0633"}],[Ut,Ht]=(0,o.useState)({post_id:null,comment_id:null}),[Wt,Vt]=(0,o.useState)({isOpen:!1,title:"",message:"",type:"info"}),[Kt,Gt]=(0,o.useState)({isOpen:!1,title:"",message:"",action:null,isDangerous:!1}),Yt=(0,o.useRef)(null),Qt=(0,o.useRef)(!1),[Xt,$t]=(0,o.useState)(null),[Jt,Zt]=(0,o.useState)(null),[en,tn]=(0,o.useState)(null),nn=((0,o.useMemo)((()=>"all"===be?xe:xe.filter((e=>e.reaction===be))),[be,xe]),e=>{if(!e)return e;const t=[];let n=0;const r=/(<(prophets|companions|historical):([^:>]+):([^>]+)>)|(\^(\d+):([^\s<]+))|(https?:\/\/[^\s]+)/g;let o;for(;null!==(o=r.exec(e));){if(o.index>n&&t.push(e.substring(n,o.index)),o[1]){const e=o[2],n=o[3],r=o[4];t.push((0,q.jsx)("span",{className:"character-link-mark",style:{color:"#1da1f2",fontWeight:"bold",cursor:"pointer",padding:"2px 6px",borderRadius:"4px"},onClick:t=>{t.stopPropagation(),window.location.href="/characters/".concat(e,"/").concat(n)},children:r},o.index))}else if(o[5]){const e=o[6],n=o[7];t.push((0,q.jsxs)("span",{className:"surah-link-mark",style:{color:"#1da1f2",fontWeight:"bold",cursor:"pointer",padding:"2px 6px",borderRadius:"4px"},onClick:t=>{t.stopPropagation(),window.location.href="/quran?surah=".concat(e)},children:[$("pcm_surah_label")," ",n]},o.index))}else if(o[8]){const e=o[8];t.push((0,q.jsx)("a",{href:e,style:{color:"#1da1f2",textDecoration:"underline"},onClick:e=>e.stopPropagation(),children:e},o.index))}n=o.index+o[0].length}return n<e.length&&t.push(e.substring(n)),t.length>0?t:e});(0,o.useEffect)((()=>(H?document.body.classList.add("modal-open"):document.body.classList.remove("modal-open"),()=>{document.body.classList.remove("modal-open")})),[H]),(0,o.useEffect)((()=>{if(!Xt)return;return(0,P._A)(Xt,(e=>{ze(e)}))}),[Xt]),(0,o.useEffect)((()=>{if(!H||!n)return;se((0,v.WR)());(async()=>{try{const e=await O.A.getPost(n);e&&e.createdBy&&($t(e.createdBy),Zt(e),tn(e.pinned_comment||null))}catch(e){console.error("Error fetching post owner:",e)}})(),Nt.current=[];let e=null;return e=setTimeout((()=>{const e=s.firebase.database().ref("posts/".concat(n,"/comments")).orderByChild("timestamp").limitToLast(20),t=e=>{(async()=>{try{const t=e.val(),o=e.key,i=t.owner,[a,l]=await Promise.all([O.A.getProfile(i),O.A.getRole(i)]),c=a||{},u={key:o,userId:i||"AM-Reaction",name:c.name||"AM-Reaction",tag:c.tag||"@AM_Reaction",img:c.img||(null!=c.tag?"/assets/images/global/user_v2.jpg":"/assets/images/global/user_reaction.jpg"),subscribed:c.subscribed||!1,frame_url:c.frame_url||"",frame_border_radius:c.frame_border_radius||"",sensitive_img:c.sensitive_img||!1,role:l,verified:!!c.verified,reaction:(0,r.A)((0,r.A)({},t),{},{key:o})};ce((e=>{const t=e.findIndex((e=>e.key===o));if(t>=0){const n=[...e];return n[t]=u,n.sort(((e,t)=>t.reaction.timestamp-e.reaction.timestamp))}return[...e,u].sort(((e,t)=>t.reaction.timestamp-e.reaction.timestamp))}));const d=s.firebase.database().ref("posts/".concat(n,"/comments/").concat(o,"/replies"));d.on("value",(e=>{const t=e.val()||{};
2ge((e=>(0,r.A)((0,r.A)({},e),{},{[o]:Object.keys(t).length})))})),Nt.current.push(d);const p=s.firebase.database().ref("posts/".concat(n,"/comments/").concat(o,"/reactions"));p.on("value",(e=>{const t=e.val()||{},n={};Object.values(t).forEach((e=>{n[e]=(n[e]||0)+1})),de((e=>(0,r.A)((0,r.A)({},e),{},{[o]:n})));const i=(0,v.WR)()||(null===oe||void 0===oe?void 0:oe.id);i&&t[i]&&he((e=>(0,r.A)((0,r.A)({},e),{},{[o]:t[i]})))})),Nt.current.push(p)}catch(t){console.error("Error processing comment:",t)}})()};e.on("child_added",t),e.on("child_changed",t),e.on("child_removed",(e=>{const t=e.key;ce((e=>e.filter((e=>e.key!==t)))),de((e=>{const n=(0,r.A)({},e);return delete n[t],n}))})),Nt.current.push(e);const o=s.firebase.database().ref("posts/".concat(n,"/comments")).orderByChild("timestamp").startAt(Date.now());o.on("child_added",t),Nt.current.push(o)}),0),()=>{e&&clearTimeout(e);try{Nt.current.forEach((e=>{try{e.off()}catch(t){}}))}catch(t){}Nt.current=[]}}),[n,H]);const rn=o.useCallback((()=>{if(Ot||!Mt||!n)return;Dt(!0);const e=le.length>0?le[le.length-1].reaction.timestamp:Date.now();s.firebase.database().ref("posts/".concat(n,"/comments")).orderByChild("timestamp").endAt(e-1).limitToLast(20).once("value",(e=>{if(Dt(!1),!e.exists())return void Lt(!1);const t=e.val();Object.keys(t).length<20&&Lt(!1),Object.keys(t).forEach((e=>{const o=t[e],i=o.owner;(async()=>{try{if(le.some((t=>t.key===e)))return;const[t,a]=await Promise.all([O.A.getProfile(i),O.A.getRole(i)]),l=t||{},c={key:e,userId:i||"AM-Reaction",name:l.name||"AM-Reaction",tag:l.tag||"@AM_Reaction",img:l.img||(null!=l.tag?"/assets/images/global/user_v2.jpg":"/assets/images/global/user_reaction.jpg"),subscribed:l.subscribed||!1,frame_url:l.frame_url||"",frame_border_radius:l.frame_border_radius||"",sensitive_img:l.sensitive_img||!1,role:a,reaction:(0,r.A)((0,r.A)({},o),{},{key:e})};ce((t=>{const n=t.findIndex((t=>t.key===e));if(n>=0){const e=[...t];return e[n]=c,e.sort(((e,t)=>t.reaction.timestamp-e.reaction.timestamp))}return[...t,c].sort(((e,t)=>t.reaction.timestamp-e.reaction.timestamp))}));const u=s.firebase.database().ref("posts/".concat(n,"/comments/").concat(e,"/reactions"));u.on("value",(t=>{const n=t.val()||{},o={};Object.values(n).forEach((e=>{o[e]=(o[e]||0)+1})),de((t=>(0,r.A)((0,r.A)({},t),{},{[e]:o})));const i=(0,v.WR)()||(null===oe||void 0===oe?void 0:oe.id);i&&n[i]&&he((t=>(0,r.A)((0,r.A)({},t),{},{[e]:n[i]})))})),Nt.current.push(u);const d=s.firebase.database().ref("posts/".concat(n,"/comments/").concat(e,"/replies"));d.on("value",(t=>{const n=t.val()||{};ge((t=>(0,r.A)((0,r.A)({},t),{},{[e]:Object.keys(n).length})))})),Nt.current.push(d)}catch(t){}})()}))}))}),[Ot,Mt,n,le,oe]);(0,o.useEffect)((()=>{Bt.current=rn}),[rn]),(0,o.useEffect)((()=>{const e=new IntersectionObserver((e=>{e[0].isIntersecting&&Bt.current&&Bt.current()}),{threshold:.1});return zt.current&&e.observe(zt.current),Ft.current=e,()=>{e.disconnect()}}),[]),(0,o.useEffect)((()=>{(async()=>{const e=ae||(0,v.WR)();if(e)try{const t=await O.A.getRole(e);Re(t||null),console.log("\ud83d\udd10 PostCommentsModal - fetched userRole:",t,"for uid",e)}catch(t){console.error("\ud83d\udd10 PostCommentsModal - error fetching role for uid",e,t)}})()}),[ae]);const on=async()=>{if(null!==oe&&void 0!==oe&&oe.id)return oe.id;const e=(0,v.WR)();if(!e)return null;try{if(await O.A.getProfile(e))return e}catch(t){}return null},an=e=>{if(!e)return $("pcm_reaction_like");switch(e){case"like":default:return $("pcm_reaction_like");case"love":return $("pcm_reaction_love");case"care":return $("pcm_reaction_care");case"haha":return $("pcm_reaction_haha");case"wow":return $("pcm_reaction_wow");case"sad":return $("pcm_reaction_sad");case"angry":return $("pcm_reaction_angry")}},sn=e=>{const t=ue[e]||{};return Object.entries(t).sort(((e,t)=>t[1]-e[1])).slice(0,3).map((e=>{let[t]=e;return t}))},ln=e=>{Qt.current=!1,Yt.current=setTimeout((()=>{Qt.current=!0,ye(e)}),500)},cn=async e=>{Yt.current&&clearTimeout(Yt.current),Qt.current};(0,o.useEffect)((()=>{(async()=>{try{const e=s.firebase.database().ref("characters/".concat(ft)),t=(await e.once("value")).val();if(t){const e=Object.entries(t).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)}));gt(e.sort(((e,t)=>e.order-t.order)))}else gt([])}catch(e){console.error("Error loading characters:",e)}})()}),[ft]),(0,o.useEffect)((()=>
2{if(!lt)return void dt([]);const e=_t.filter((e=>{var t,n;return(null===(t=e.name)||void 0===t?void 0:t.toLowerCase().includes(pt.toLowerCase()))||(null===(n=e.tribe)||void 0===n?void 0:n.toLowerCase().includes(pt.toLowerCase()))})).slice(0,8);dt(e)}),[pt,_t,lt]),(0,o.useEffect)((()=>{if(!vt)return void wt([]);const e=xt.replace(/^\u0633\u0648\u0631\u0629\s*/i,"").trim(),t=qt.filter((t=>t.name.includes(e)||t.number.toString().includes(e)||"\u0633\u0648\u0631\u0629 ".concat(t.name).includes(xt))).slice(0,8);wt(t)}),[xt,vt]);const un=()=>(0,I.rG)(Ie),dn=e=>{const t={police:$("pcm_block_police"),health:$("pcm_block_health"),literature:$("pcm_block_literature"),law:$("pcm_block_law"),all_admin:$("pcm_block_admin")};return e.police?t.police:e.health?t.health:e.literature?t.literature:e.law?t.law:e.all_admin?t.all_admin:$("pcm_blocked_generic")},pn=async(e,t,r,o)=>{if(!r)return;const i=!0===t[r];if(await on())try{const a=!i;if(await s.firebase.database().ref("posts/".concat(n,"/comments/").concat(e)).update({[r]:a}),await async function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;try{const o=(0,v.WR)()||(null===oe||void 0===oe?void 0:oe.id);if(!o)return;await s.firebase.database().ref("moderation_logs").push({moderatorId:o,moderatorRole:Ie,actionType:e,blockType:null,contentType:t,contentId:n,targetUserId:null,targetUserName:null,reason:r,timestamp:Date.now(),verified:!1})}catch(o){console.error("Error logging moderation action:",o)}}(a?"block":"unblock","comment",e,o||$("pcm_block_reason_fallback",{blockType:r})),ae&&t.owner&&t.owner!==ae){const i=a?"blocked":"unblocked";(0,E.CG)(t.owner,i,r,o,"comment",n,e,null,ae)}Te(null)}catch(a){console.error("Error blocking/unblocking comment:",a)}else Vt({isOpen:!0,title:$("pcm_login_required_title"),message:$("pcm_login_required_action"),type:"warning"})},[hn,fn]=(0,o.useState)({}),mn=async e=>{if(Me.trim())try{const t={msg:Me.trim()};void 0!==hn[e]&&(t.fire=hn[e]),await s.firebase.database().ref("posts/".concat(n,"/comments/").concat(e)).update(t),De(null),Le(""),fn({}),Te(null)}catch(t){console.error("Error editing comment:",t)}};return H||Z?(0,i.createPortal)((0,q.jsxs)("div",{className:"comment-dialog-overlay directional-comment-thread ".concat(Z?"closing-overlay":""," ").concat("dark"===X?"theme-dark-space":"theme-light-space"),dir:J,style:{zIndex:(0,T.v7)(1e3)},children:[(0,q.jsxs)("div",{className:"comment-dialog ".concat(Z?"closing":""," ").concat("dark"===X?"theme-dark-item":"theme-light-item"),onClick:e=>e.stopPropagation(),children:[(0,q.jsx)(D.A,{title:$("pcm_modal_title"),onBack:()=>te(!1),className:"dark"===X?"theme-dark-item":"theme-light-item"}
2),Jt&&!1===Jt.allowComments&&(0,q.jsx)("div",{style:{backgroundColor:"#fff3cd",border:"1px solid #ffc107",padding:"10px 15px",margin:"10px 15px 0 15px",borderRadius:"6px",textAlign:"center",color:"#856404",fontWeight:"bold",fontSize:"14px"},children:$("pcm_comments_closed_banner")}),Jt&&!1===Jt.allowReactions&&(0,q.jsx)("div",{style:{backgroundColor:"#f8d7da",border:"1px solid #f5c6cb",padding:"10px 15px",margin:"10px 15px 0 15px",borderRadius:"6px",textAlign:"center",color:"#721c24",fontWeight:"bold",fontSize:"14px"},children:$("pcm_reactions_closed_banner")}),Ae&&(0,q.jsx)(y.A,{path:Ae.path,initialType:Ae.type||"all",onClose:()=>Ee(null),navigate:K,contentOwnerId:Xt}),(0,q.jsxs)("div",{className:"comments-container",children:[0===le.length?(0,q.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"40px 20px",color:"#888",fontSize:"16px"},children:(0,q.jsx)("p",{children:$("pcm_no_comments_yet")})}):[...le].sort(((e,t)=>en===e.key?-1:en===t.key?1:t.reaction.timestamp-e.reaction.timestamp)).filter((e=>!e.reaction.isHidden||ae===Xt||ae===e.reaction.owner)).map((e=>(0,q.jsxs)("div",{className:"comment-user ".concat(en===e.reaction.key?"pinned-comment":""),children:[en===e.reaction.key&&(0,q.jsx)("div",{className:"pinned-badge",children:$("pcm_pinned_comment_badge")}),(0,q.jsxs)("div",{className:"comment-user-profile",children:[(0,q.jsxs)("div",{className:"comment-profile ".concat(e.frame_url?"subscribed has-frame":""),style:(0,r.A)({borderRadius:e.frame_url?(0,B.MF)(e):"50%"},(e.reaction.owner||"").includes("AM-Reaction")?{}:{cursor:"pointer"}),onClick:()=>{(e.reaction.owner||"").includes("AM-Reaction")||Rt(e.reaction.owner)},children:[e.frame_url&&(0,q.jsx)("div",{className:"comment-profile-image-overlay",children:(0,q.jsx)("img",{src:e.frame_url,alt:"Frame",className:"avatar-frame"})}),(0,q.jsx)("img",{src:e.sensitive_img?"/assets/images/global/user_sensitive_img_v2.jpg":e.img,alt:"user",className:"comment-user-img"})]}),(0,q.jsxs)("div",{className:"container-comment-user-details",children:[(0,q.jsxs)("div",{className:"comment-user-details",children:[(0,q.jsxs)("span",{className:"comment-user-name",children:[e.name,!!e.verified&&(0,q.jsx)("img",{src:"/assets/images/global/verified.png",alt:"verified",style:{width:"16px",height:"16px",marginInlineStart:"4px",verticalAlign:"middle"}})]}),(0,q.jsx)("span",{className:"comment-user-tag",children:e.tag}),(0,q.jsx)(c.A,{size:8,color:"#888",style:{marginInlineStart:"4px"}}),(0,q.jsx)("span",{className:"post-time",children:(0,g.f)(e.reaction.timestamp)}),(!(e.reaction.police||e.reaction.health||e.reaction.literature||e.reaction.law||e.reaction.all_admin)||un())&&(0,q.jsx)("div",{style:{position:"relative",marginInlineStart:"auto",overflow:"visible"},children:Oe!==e.reaction.key&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(u.A,{size:16,color:"#888",style:{marginInlineStart:"auto",marginInlineEnd:"4px",cursor:"pointer"},onClick:()=>Te(je===e.reaction.key?null:e.reaction.key)}),je===e.reaction.key&&(0,i.createPortal)((0,q.jsxs)("div",{children:[(0,q.jsx)("div",{className:"menu-portal-backdrop",onClick:()=>Te(null)}),(0,q.jsxs)("div",{className:"post_menu_options ".concat("dark"===X?"theme-dark":""),role:"dialog","aria-modal":"true",children:[ae===e.reaction.owner&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)("div",{className:"menu-item edit-item",onClick:()=>{var t,n;t=e.reaction.key,n=e.reaction.msg,De(t),Le(n),Te(null),Te(null)},children:$("pcm_edit_comment_menu")}),(0,q.jsx)("div",{className:"menu-item delete-item",onClick:()=>{var t;Te(null),t=e.reaction.key,Gt({isOpen:!0,title:$("pcm_delete_comment_title"),message:$("pcm_delete_comment_message"),isDangerous:!0,confirmText:$("pcm_delete_btn"),cancelText:$("pcm_cancel_btn"),action:async()=>{try{var e;const r=await s.firebase.database().ref("posts/".concat(n,"/comments/").concat(t)).once("value"),o=r.exists()&&(null===(e=r.val())||void 0===e?void 0:e.owner)||null;await s.firebase.database().ref("posts/".concat(n,"/comments/").concat(t)).remove(),o&&(0,N.yd)(o).catch((()=>{})),Te(null),Vt({isOpen:!0,title:$("pcm_deleted_title"),message:$("pcm_delete_success"),type:"success"})}catch(r){console.error("Error deleting comment:",r),Vt({isOpen:!0,title:$("pcm_error_title"),message:$("pcm_delete_error"),type:"error"})}}})},children:$("pcm_delete_comment_menu")})]}),ae===Xt&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)("div",{className:"menu-item ".concat(en===e.reaction.key?"unpin-item":"pin-item"),onClick:()=>{Te(null),(async e=>{const t=await on();if(!t||t!==Xt)return Te(null),void Vt({isOpen:!0,title:$("pcm_permissions_title"),message:$("pcm_no_pin_permission"),type:"warning"});try{en===e?(await s.firebase.database().ref("posts/".concat(n,"/pinned_comment")).remove(),tn(null),Vt({isOpen:!0,title:$("pcm_unpinned_title"),message:$("pcm_unpinned_message"),type:"success"})):(await s.firebase.database().ref("posts/".concat(n,"/pinned_comment")).set(e),tn(e),Vt({isOpen:!0,title:$("pcm_pinned_title"),message:$("pcm_pinned_message"),type:"success"})),Te(null);try{window.dispatchEvent(new CustomEvent("postUpdated",{detail:{postId:n}}))}catch(r){console.warn("Could not dispatch postUpdated event",r)}}catch(o){console.error("Error pinning comment:",o),Vt({isOpen:!0,title:$("pcm_error_title"),message:$("pcm_pin_error"),type:"error"})}})(e.reaction.key)},children:en===e.reaction.key?$("pcm_unpin_comment"):$("pcm_pin_comment")}),(0,q.jsx)("div",{className:"menu-item hide-item",onClick:()=>{Te(null),(async(e,t)=>{const r=await on();if(!r||r!==Xt)return Te(null),void Vt({isOpen:!0,title:$("pcm_permissions_title"),message:$("pcm_no_hide_permission"),type:"warning"});try{t?await s.firebase.database().ref("posts/".concat(n,"/comments/").concat(e,"/isHidden")).remove():await s.firebase.database().ref("posts/".concat(n,"/comments/").concat(e,"/isHidden")).set(!0),Te(null)}catch(o){console.error("Error hiding comment:",o),Vt({isOpen:!0,title:$("pcm_error_title"),message:$("pcm_hide_error"),type:"error"})}})(e.reaction.key,e.reaction.isHidden)},children:e.reaction.isHidden?$("pcm_show_comment"):$("pcm_hide_comment")})]}),ae!==e.reaction.owner&&(0,q.jsx)(q.Fragment,{children:un()?(0,q.jsx)(q.Fragment,{children:(0,q.jsx)("div",{className:"menu-item "+(e.reaction.all_admin?"unblock-item":"block-item"),onClick:()=>{pn(e.reaction.key,e.reaction,"all_admin",$("pcm_block_notification")),Te(null)},children:e.reaction.all_admin?$("pcm_unblock_comment"):$("pcm_block_comment")})}):(0,q.jsx)(q.Fragment,{children:(0,q.jsx)("div",{className:"menu-item report-item",onClick:()=>{return t=e.reaction.key,Te(null),void Ne({isOpen:!0,targetType:"comment",targetId:t,messageText:""});var t},children:$("pcm_report_comment")})})})]})]}),document.body)]})})]}),(e.reaction.coins||e.reaction.mentions||e.reaction.fire||e.reaction.sticker)&&(0,q.jsxs)("div",{className:"comment-title-container",children:[e.reaction.coins&&(0,q.jsxs)("div",{className:"comment-coins-container",children:[(0,q.jsx)("img",{className:"coin-comment",src:"/assets/images/global/coin.png",alt:"coin"}),(0,q.jsx)("span",{className:"comment-coins-count",children:e.reaction.coins})]}),e.reaction.mentions&&e.reaction.mentions.map(((e,t)=>(0,q.jsxs)("div",{className:"comment-mention-container",onClick:()=>{e.id&&Rt(e.id)},children:[(0,q.jsx)(d.A,{size:15,color:"#ffffff"}),(0,q.jsx)("span",{id:"mention-tag",children:e.tag.replace("@","")})]},t)))]}),e.reaction.fire&&!fe[e.reaction.key]?(0,q.jsxs)("div",{onClick:()=>{return t=e.reaction.key,void me((e=>(0,r.A)((0,r.A)({},e),{},{[t]:!e[t]})));var t},className:"comment-container",style:{display:"flex",alignItems:"center",gap:"5px",textAlign:"center",justifyContent:"center",color:"#c74040",cursor:"pointer"},children:[(0,q.jsx)(p.A,{}),(0,q.jsx)("p",{dir:"auto",children:$("pcm_spoiler_warning")})]}):(0,q.jsx)(q.Fragment,{children:e.reaction.police||e.reaction.health||e.reaction.literature||e.reaction.law||e.reaction.all_admin?(0,q.jsx)("div",{className:"comment-container",style:{background:"#ffebee",color:"#c62828"},children:(0,q.jsx)("p",{dir:"auto",children:dn(e.reaction)})}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)("div",{className:"comment-container",style:{position:"relative",opacity:e.reaction.isHidden?.6:1},children:(0,q.jsxs)("p",{dir:"auto",children:[e.reaction.isHidden&&(0,q.
2jsx)(h.A,{size:16,color:"#888",title:$("pcm_hidden_comment_title"),style:{marginInlineEnd:"6px",verticalAlign:"middle",display:"inline-block"}}),nn(e.reaction.msg)]})}),e.reaction.sticker&&(0,q.jsx)("div",{className:"sticker_container",children:(0,q.jsx)("img",{className:"sticker_img",src:e.reaction.sticker,alt:"sticker"})}),e.reaction.image&&(0,q.jsx)("div",{className:"comment-image-container",children:(0,q.jsx)("img",{ref:t=>Pt.current[e.reaction.key]=t,className:"comment-image",src:e.reaction.image,alt:"comment",onClick:t=>{if(t.stopPropagation(),Pt.current[e.reaction.key]){const t=Pt.current[e.reaction.key].getBoundingClientRect();Tt(t)}Et(e.reaction.image),Ct(!0)},style:{cursor:"pointer"}})})]})}),!(e.reaction.police||e.reaction.health||e.reaction.literature||e.reaction.law||e.reaction.all_admin)&&(0,q.jsxs)("div",{className:"comment-tools",children:[(0,q.jsxs)("div",{className:"comment-actions",children:[(0,q.jsxs)("div",{className:"reaction-button",onTouchStart:()=>ln(e.reaction.key),onTouchEnd:()=>cn(e.reaction.key),onMouseDown:()=>ln(e.reaction.key),onMouseUp:()=>cn(e.reaction.key),onMouseLeave:()=>{clearTimeout(Yt.current)},onClick:t=>{t.stopPropagation(),(async e=>{if(ve===e)return;if(Jt&&!1===Jt.allowReactions)return void Vt({isOpen:!0,title:$("pcm_reactions_closed_title"),message:$("pcm_reactions_closed_message"),type:"warning"});const t=await on();if(!t)return void Vt({isOpen:!0,title:$("pcm_login_required_title"),message:$("pcm_login_required_to_react"),type:"warning"});const o=await(0,N.zy)(n,e);if(o)return void Vt({isOpen:!0,title:$("pcm_comment_deleted"),message:o,type:"warning"});const i=pe[e],a=s.firebase.database().ref("posts/".concat(n,"/comments/").concat(e,"/reactions/").concat(t));if(i)await a.remove(),he((t=>(0,r.A)((0,r.A)({},t),{},{[e]:null}))),(0,N.q9)(t,i).catch((()=>{}));else{await s.firebase.database().ref("posts/".concat(n,"/comments/").concat(e,"/reactions/").concat(t)).set("like"),he((t=>(0,r.A)((0,r.A)({},t),{},{[e]:"like"}))),(0,N.YN)(t,"like").catch((()=>{}));const o=le.find((t=>t.key===e));if(o&&o.userId!==t){const r=await O.A.getProfile(t)||{};(0,E.xd)(o.userId,r,"reaction","like",n,e,null)}}})(e.reaction.key)},style:{position:"relative",cursor:"pointer",userSelect:"none"},children:[(0,q.jsx)("span",{style:(0,r.A)((0,r.A)({},pe[e.reaction.key]?{color:"#1da1f2"}:{color:"dark"===X?"#e6eef6":"#000000"}),{},{pointerEvents:"none"}),onTouchEnd:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),children:an(pe[e.reaction.key])}),ve===e.reaction.key&&(0,q.jsx)(M.A,{reactionTypes:U,reactionIcons:Fe,theme:X,onSelect:t=>(async(e,t)=>{if(Jt&&!1===Jt.allowReactions)return void Vt({isOpen:!0,title:$("pcm_reactions_closed_title"),message:$("pcm_reactions_closed_message"),type:"warning"});const o=await on();if(!o)return void Vt({isOpen:!0,title:$("pcm_login_required_title"),message:$("pcm_login_required_to_react"),type:"warning"});if(null===oe||void 0===oe||!oe.name||null===oe||void 0===oe||!oe.tag)return void K("/create-profile");const i=await(0,N.zy)(n,e);if(i)return void Vt({isOpen:!0,title:$("pcm_comment_deleted"),message:i,type:"warning"});const a=s.firebase.database().ref("posts/".concat(n,"/comments/").concat(e,"/reactions/").concat(o)),l=pe[e];if(l!==t){const i=le.find((t=>t.key===e));if(!i)return;const s=i.userId;if(await a.set(t),l?(0,N.sI)(o,l,t).catch((()=>{})):(0,N.YN)(o,t).catch((()=>{})),s!==o){const r=await O.A.getProfile(o)||{};(0,E.xd)(s,r,"reaction",t,n,e,null)}he((n=>(0,r.A)((0,r.A)({},n),{},{[e]:t})))}ye(null)})(e.reaction.key,t),onClose:()=>ye(null)})]}),(0,q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"4px",cursor:"pointer"},onClick:()=>{null!==Oe&&(De(null),Le(""),fn({})),V&&V(n,e.reaction.key,!1)},children:[(0,q.jsx)(f.A,{}),(0,q.jsx)("span",{children:_e[e.reaction.key]||0})]}),(0,q.jsx)("div",{onClick:()=>{null!==Oe&&(De(null),Le(""),fn({})),V&&V(n,e.reaction.key,!0)},style:{cursor:"pointer"},children:(0,q.jsx)(m.A,{})})]}),Object.values(ue[e.reaction.key]||{}).reduce(((e,t)=>e+t),0)>0&&(0,q.jsx)("div",{className:"reactions-container",children:(0,q.jsx)("div",{className:"top-reactions",style:{display:"flex",alignItems:"center",position:"relative",curs
2or:"pointer"},onClick:()=>Ee({path:"posts/".concat(n,"/comments/").concat(e.reaction.key,"/reactions")}),children:(0,q.jsxs)("div",{className:"reaction-preview",style:{position:"relative",display:"inline-flex",alignItems:"center",height:"24px",width:"".concat(12*sn(e.reaction.key).length+26,"px")},children:[Object.values(ue[e.reaction.key]||{}).reduce(((e,t)=>e+t),0)>0&&(0,q.jsx)("span",{style:{position:"absolute",left:"0px",zIndex:10,marginTop:"2px"},children:Object.values(ue[e.reaction.key]||{}).reduce(((e,t)=>e+t),0)}),sn(e.reaction.key).map(((t,r,o)=>(0,q.jsx)("img",{src:Fe[t],className:"reaction-icon",style:{position:"absolute",left:"".concat(12+12*r,"px"),zIndex:o.length-r},onClick:r=>{r.stopPropagation(),Ee({path:"posts/".concat(n,"/comments/").concat(e.reaction.key,"/reactions"),type:t})}},t)))]})})})]})]})]})]},e.reaction.key))),(0,q.jsx)("div",{ref:zt,style:{padding:"10px 0",display:"flex",justifyContent:"center"},children:Ot&&(0,q.jsx)("div",{className:"spinner",style:{width:"20px",height:"20px",border:"2px solid #ccc",borderTopColor:"#1da1f2",borderRadius:"50%",animation:"spin 1s linear infinite"}})})]}),(0,q.jsx)(w.A,{isEditing:null!==Oe,editingCommentText:Me,onCancelEdit:()=>{De(null),Le(""),fn({})},onSaveEdit:()=>{Oe&&mn(Oe)},value:null!==Oe?Me:Be,onChange:e=>{const t=e.target.value;null!==Oe?Le(t):qe(t);const n=t.lastIndexOf("@");if(-1===n||0!==n&&" "!==t[n-1]&&"\n"!==t[n-1])He(!1),Ve([]);else{const r=t.slice(n+1).split(/[\s\n]/)[0];He(!0),ct(!1),yt(!1),r.length>0?(async t=>{const n=t.startsWith("@")?t:"@"+t;if(n.slice(1).length<4)Ve([]);else try{const e=await s.firebase.database().ref("kunaiu_bank").orderByChild("tag").startAt(n).endAt(n+"\uf8ff").limitToFirst(5).once("value");if(e.exists()){const t=e.val(),n=Object.entries(t).map((e=>{let[t,n]=e;return{id:t,tag:n.tag||"",name:n.name||"Unknown",img:n.img||"/assets/images/global/user_v2.jpg"}}));Ve(n)}else Ve([])}catch(e){console.error("Error fetching mentions",e)}})(r):Ve([])}const r=t.lastIndexOf("<");if(-1===r||0!==r&&" "!==t[r-1]&&"\n"!==t[r-1])ct(!1),ht("");else{const e=t.slice(r+1).split(/[\s\n]/)[0];e.includes(">")?ct(!1):(ht(e),ct(!0),He(!1),yt(!1))}const o=t.lastIndexOf("^");if(-1===o||0!==o&&" "!==t[o-1]&&"\n"!==t[o-1])yt(!1),kt("");else{const e=t.slice(o+1).split(/[\s\n]/)[0];e.includes(":")?yt(!1):(kt(e),yt(!0),He(!1),ct(!1))}},onSend:()=>{null!==Oe?mn(Oe):(async()=>{if(!Be.trim())return;if(ie)return void Vt({isOpen:!0,title:$("pcm_banned_title"),message:$("pcm_banned_comment_message"),type:"warning"});const e=await on();if(!e)return void Vt({isOpen:!0,title:$("pcm_login_required_title"),message:$("pcm_login_required_before_comment"),type:"warning"});if(null===oe||void 0===oe||!oe.name||null===oe||void 0===oe||!oe.tag)return void K("/create-profile");let t=oe;if(!t||t.id!==e)try{const n=await O.A.getProfile(e);t=n?(0,r.A)((0,r.A)({},n),{},{id:e}):{id:e}}catch(o){t={id:e}}try{const r=Xe&&Number(Xe)>0?Number(Xe):0;if(r>0){if(((await s.firebase.database().ref("kunaiu_bank/".concat(oe.id,"/value")).once("value")).val()||0)<r)return void Vt({isOpen:!0,title:$("pcm_insufficient_coins_title"),message:$("pcm_insufficient_coins_message"),type:"warning"})}const o=s.firebase.database().ref("posts/".concat(n,"/comments")).push(),i=o.key,a=await(0,N.ye)(n);if(a)return void Vt({isOpen:!0,title:$("pcm_post_deleted"),message:a,type:"warning"});const l={id:i,msg:Be,owner:t.id,timestamp:Date.now(),fire:Ye,coins:r>0?r:null,sticker:Je,image:et,mentions:Ke,reactions:{},replyTo:null};if(await o.set(l),(0,N.XU)(e).catch((()=>{})),r>0&&Xt){try{const e=(await s.firebase.database().ref("kunaiu_bank/".concat(Xt)).once("value")).val();if(!e)return void Vt({isOpen:!0,title:$("pcm_error_title"),message:$("pcm_error_post_owner_missing"),type:"error"});await(0,j.Cz)(oe.id,Xt,r,"",{senderName:oe.name,recipientName:e.name,senderMessage:$("pcm_coins_sent_to_post",{name:e.name}),recipientMessage:$("pcm_coins_received_from",{name:oe.name}),postId:n})}catch(at){return console.error("Error handling coins transfer:",at),await o.remove().catch((()=>{})),void Vt({isOpen:!0,title:$("pcm_error_title"),message:at.message||$("pcm_coins_transfer_error"),type:"error"})}s.firebase.database().ref("posts/".concat(n,"/coins")).transaction((e=>(Number(e)||0)+r)).catch((e=>console.error("Could not update post coin total:",e)))}const c=r>0?r:null;qe(""),Qe(!1),$e(null),Ze(null),tt(null),Ge([]);for(const e of Ke)if((e.id||e.userId)&&(e.id||e.userId)!==t.id){const r=e.id||e.userId;await(0,E._Y)(r,t,"comment",n,i,null,c)}Xt&&Xt!==t.id&&!Ke.some((e=>(e.id||e.userId)===Xt))&&await(0,E._Y)(Xt,t,"comment",n,i,null,c)}catch(i){console.error("Error sending comment:",i)}})()},placeholder:$(null!==Oe?"pcm_edit_comment":"pcm_add_comment"),disabled:Jt&&!1===Jt.allowComments||ie,fireComment:null!==Oe?void 0!==hn[Oe]?hn[Oe]:(null===(t=le.find((e=>e.key===Oe)))||void 0===t?void 0:t.reaction.fire)||!1:Ye,onFireToggle:()=>{if(null!==Oe){const e=le.find((e=>e.key===Oe));fn((0,r.A)((0,r.A)({},hn),{},{[Oe]:void 0!==hn[Oe]?!hn[Oe]:!(null!==e&&void 0!==e&&e.reaction.fire)}))}else Qe(!Ye)},selectedCoins:Xe,onCoinsClick:()=>rt(!0),onCoinsRemove:()=>$e(null),selectedIcon:Je,onIconClick:()=>it(!0),onIconRemove:()=>Ze(null),selectedMentions:Ke,onMentionClick:()=>He(!Ue),onMentionRemove:e=>Ge(Ke.filter((t=>
2t.id!==e))),hideCoinsbtn:!Xt||ae===Xt,showMentionsDropdown:Ue,mentionResults:We,onMentionSelect:e=>{Ke.find((t=>t.id===e.id))?Ge(Ke.filter((t=>t.id!==e.id))):(Ge([...Ke,{id:e.id,tag:e.tag}]),He(!1),qe((e=>{const t=e.lastIndexOf("@");return-1!==t?e.slice(0,t).trimEnd()+" ":e})))},showCharacterDropdown:lt,characterResults:ut,onCharacterSelect:e=>{const t="<".concat(ft,":").concat(e.id,":").concat(e.name,">");qe((e=>{const n=e.lastIndexOf("<");return-1!==n?e.slice(0,n)+t+" ":e+t+" "})),ct(!1),ht("")},characterCategory:ft,showSurahDropdown:vt,surahResults:bt,onSurahSelect:e=>{const t="^".concat(e.number,":").concat(e.name);qe((e=>{const n=e.lastIndexOf("^");return-1!==n?e.slice(0,n)+t+" ":e+t+" "})),yt(!1),kt("")},selectedImage:et,onImageSelect:tt,onImageRemove:()=>tt(null)}),nt&&(0,q.jsx)(b.A,{onClose:()=>{rt(!1),st("")},onSend:async(e,t)=>{st("");const n=(0,v.WR)();if(e&&n&&e===n)st($("pcm_cannot_send_coins_to_self"));else{if(n&&t>0){if((((await s.firebase.database().ref("kunaiu_bank/".concat(n)).once("value")).val()||{}).value||0)<t)return void st($("pcm_insufficient_coins_balance"))}$e(t),rt(!1)}},targetUserId:Xt,messageOption:!1,sendType:"comment",externalError:at}),ot&&(0,q.jsx)(x.A,{onClose:()=>it(!1),onSelectIcon:e=>{Ze(e),it(!1)},currentIconUrl:Je}),Pe.isOpen&&(0,i.createPortal)((0,q.jsx)("div",{style:{position:"fixed",inset:0,zIndex:(0,T.v7)(2e3)+2,background:"rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",padding:16},onClick:()=>Ne({isOpen:!1,targetType:"comment",targetId:null,messageText:""}),children:(0,q.jsxs)("div",{onClick:e=>e.stopPropagation(),style:{width:"100%",maxWidth:420,borderRadius:20,background:"dark"===X?"#111827":"#ffffff",color:"dark"===X?"#e5e7eb":"#111827",boxShadow:"0 18px 60px rgba(0,0,0,0.35)",padding:18,direction:J},children:[(0,q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:12}
2,children:[(0,q.jsx)("div",{style:{width:42,height:42,borderRadius:12,background:"rgba(255, 84, 84, 0.12)",display:"flex",alignItems:"center",justifyContent:"center",color:"#ff5454"},children:(0,q.jsx)(_.A,{size:20})}),(0,q.jsxs)("div",{children:[(0,q.jsx)("div",{style:{fontSize:18,fontWeight:800},children:$("pcm_report_dialog_heading")}),(0,q.jsx)("div",{style:{fontSize:13,opacity:.75},children:$("pcm_report_dialog_subtitle")})]})]}),(0,q.jsx)("label",{style:{display:"block",fontSize:13,fontWeight:700,marginBottom:6},children:$("pcm_report_details_label")}),(0,q.jsx)("textarea",{value:Pe.messageText,onChange:e=>Ne((t=>(0,r.A)((0,r.A)({},t),{},{messageText:e.target.value}))),rows:5,placeholder:$("pcm_report_details_placeholder"),style:{width:"100%",resize:"vertical",padding:"12px 14px",borderRadius:12,border:"dark"===X?"1px solid #334155":"1px solid #d1d5db",background:"dark"===X?"#0f172a":"#fff",color:"inherit",marginBottom:16,boxSizing:"border-box"}}),(0,q.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,q.jsx)("button",{onClick:()=>Ne({isOpen:!1,targetType:"comment",targetId:null,messageText:""}),style:{flex:1,border:"none",borderRadius:12,padding:"12px 14px",cursor:"pointer",background:"dark"===X?"#334155":"#e5e7eb",color:"inherit",fontWeight:700},children:$("pcm_cancel_btn")}),(0,q.jsx)("button",{onClick:async()=>{const e=await on();if(!e)return Ne((e=>(0,r.A)((0,r.A)({},e),{},{isOpen:!1}))),Vt({isOpen:!0,title:$("pcm_error_title"),message:$("pcm_login_required_for_report"),type:"error"});const t=le.find((e=>e.reaction.key===Pe.targetId));try{var o,i;await(0,R.k1)({targetType:"comment",targetId:Pe.targetId,postId:n,reportedUserId:(null===t||void 0===t||null===(o=t.reaction)||void 0===o?void 0:o.owner)||null,reporterId:e,messageText:Pe.messageText,contentText:(null===t||void 0===t||null===(i=t.reaction)||void 0===i?void 0:i.msg)||"",source:"comment_report_modal"}),Ne({isOpen:!1,targetType:"comment",targetId:null,messageText:""}),Vt({isOpen:!0,title:$("pcm_reported_title"),message:$("pcm_report_submit_success"),type:"success"})}catch(a){console.error("Error submitting comment report:",a),Vt({isOpen:!0,title:$("pcm_error_title"),message:$("pcm_report_submit_error"),type:"error"})}},style:{flex:1,border:"none",borderRadius:12,padding:"12px 14px",cursor:"pointer",background:"#ff5454",color:"#fff",fontWeight:800},children:$("pcm_send_report_btn")})]})]})}),document.body),(0,q.jsx)(k.A,{isOpen:Wt.isOpen,onClose:()=>Vt((0,r.A)((0,r.A)({},Wt),{},{isOpen:!1})),title:Wt.title,message:Wt.message,type:Wt.type}),(0,q.jsx)(S.A,{isOpen:Kt.isOpen,onConfirm:()=>{var e;null===(e=Kt.action)||void 0===e||e.call(Kt),Gt((0,r.A)((0,r.A)({},Kt),{},{isOpen:!1}))},onCancel:()=>Gt((0,r.A)((0,r.A)({},Kt),{},{isOpen:!1})),title:Kt.title,message:Kt.message,confirmText:Kt.confirmText||$("pcm_yes_btn"),cancelText:Kt.cancelText||$("pcm_cancel_btn"),isDangerous:Kt.isDangerous})]}),St&&At&&(0,q.jsx)(C.A,{imageUrl:At,sourceRect:jt,onClose:()=>Ct(!1)}),It&&(0,q.jsx)(A.A,{userId:It,onClose:()=>Rt(null)})]}),document.body):null}},91310:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},91884:function(e,t,n){e.exports=function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}(n(84488),n(52238))},91980:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},92730:(e,t,n)=>{"use strict";n.d(t,{_A:()=>i});var r=n(40117);const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?"https://assets.amposter.com/reactions/reaction_pack".concat(t,"/").concat(e,".png"):"https://assets.amposter.com/reactions/reaction_pack1/".concat(e,".png")},i=(e,t)=>{if(!e){const e={like:o("like",1),love:o("love",1),care:o("care",1),haha:o("haha",1),wow:o("wow",1),sad:o("sad",1),angry:o("angry",1)};return t(e),()=>{}}const n=r.firebase.database().ref("kunaiu_bank/".concat(e)),i=n.on("value",(e=>{const n=e.val(),r=(null===n||void 0===n?void 0:n.reactions_icon)||1,i=null===n||void 0===n?void 0:n.expired_reaction_icon,a=i&&new Date(i)<new Date?1:r,s={like:o("like",a),love:o("love",a),care:o("care",a),haha:o("haha",a),wow:o("wow",a),sad:o("sad",a),angry:o("angry",a)};t(s)}));return()=>n.off("value",i)}},93110:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(65043);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},93211:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}}
2,93528:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]])},94087:function(e,t,n){e.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(n(84488),n(52238))},94258:(e,t,n)=>{var r=n(55906)();e.exports=r},94651:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},94664:(e,t,n)=>{var r=n(94258),o=n(28673);e.exports=function(e,t){return e&&r(e,t,o)}},95575:(e,t,n)=>{var r=n(87937)(Object,"create");e.exports=r},95577:(e,t,n)=>{"use strict";n.d(t,{E7:()=>a,EF:()=>u,JG:()=>l,U:()=>p,jo:()=>d,rv:()=>s,xp:()=>i});var r=n(22555),o=n(40117);const i=Object.values({REVIEW_JOIN_REQUESTS:"reviewJoinRequests",EDIT_DESCRIPTION:"editDescription",CHANGE_FLAG:"changeFlag",REMOVE_FOREIGN_POSTS:"removeForeignPosts",MANAGE_RANKS:"manageRanks"}),a={reviewJoinRequests:"\u0645\u0631\u0627\u062c\u0639\u0629 \u0648\u0642\u0628\u0648\u0644 \u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0627\u0646\u0636\u0645\u0627\u0645",editDescription:"\u062a\u0639\u062f\u064a\u0644 \u0646\u0628\u0630\u0629 \u0627\u0644\u0641\u0631\u064a\u0642",changeFlag:"\u062a\u063a\u064a\u064a\u0631 \u0639\u0644\u0645 \u0627\u0644\u0641\u0631\u064a\u0642",removeForeignPosts:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0627\u0644\u062a\u064a \u0644\u0627 \u062a\u062e\u0635 \u0627\u0644\u0641\u0631\u064a\u0642",manageRanks:"\u062a\u0639\u062f\u064a\u0644 \u0648\u062d\u0630\u0641 \u0627\u0644\u0631\u062a\u0628 \u0628\u0639\u062f \u0625\u0646\u0634\u0627\u0626\u0647\u0627"},s=i.reduce(((e,t)=>(e[t]=!1,e)),{}),l=(0,r.A)((0,r.A)({},s),{},{reviewJoinRequests:!0,removeForeignPosts:!0}),c=i.reduce(((e,t)=>(e[t]=!0,e)),{});function u(e){let{role:t,customRankId:n,rolePermissions:o,customRanks:i}=e;return 1===t?(0,r.A)({},c):n&&i&&i[n]?(0,r.A)((0,r.A)({},s),i[n].permissions||{}):2===t?(0,r.A)((0,r.A)({},l),o&&o[2]||{}):(0,r.A)({},s)}async function d(e,t){if(!e||!t)return(0,r.A)({},s);try{const n=o.firebase.database(),[i,a,l]=await Promise.all([n.ref("teams/".concat(e,"/members/").concat(t)).once("value"),n.ref("teams/".concat(e,"/rolePermissions")).once("value"),n.ref("teams/".concat(e,"/customRanks")).once("value")]);if(!i.exists())return(0,r.A)({},s);const c=i.val();return u({role:c.role,customRankId:c.customRankId||null,rolePermissions:a.val()||{},customRanks:l.val()||{}})}catch(n){return console.error("fetchUserTeamPermissions error:",n),(0,r.A)({},s)}}async function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"posts";if(!e||!t)return;const r=o.firebase.database(),i={};i["Team_Posts/".concat(e,"/").concat(t)]=null,i["".concat(n,"/").concat(t,"/team")]=null,await r.ref().update(i)}},95919:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},96172:(e,t,n)=>{"use strict";n.d(t,{P:()=>Hs});const r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=(()=>new Set(r))();var i=n(22555);const a=(e,t,n)=>n>t?t:n<e?e:n,s={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},l=(0,i.A)((0,i.A)({},s),{},{transform:e=>a(0,1,e)}),c=(0,i.A)((0,i.A)({},s),{},{default:1}),u=e=>Math.round(1e5*e)/1e5,d=/-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)/g;const p=/^(?:#[0-9a-f]{3,8}|(?:rgb|h[s\u017F]l)a?\((?:-?[\.0-9]+%?[\t-\r ,\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+){2}-?[\.0-9]+%?[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[,\/][\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?(?:\b[0-9]+(?:\.[0-9]+)?|\.[0-9]+)?%?\))$/i,h=(e,t)=>n=>Boolean("string"===typeof n&&p.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),f=(e,t,n)=>r=>{if("string"!==typeof r)return r;const[o,i,a,s]=r.match(d);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},m=(0,i.A)((0,i.A)({},s),{},{transform:e=>Math.round((e=>a(0,255,e))(e))}),_={test:h("rgb","red"),parse:f("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:o=1}=e;return"rgba("+m.transform(t)+", "+m.transform(n)+", "+m.transform(r)+", "+u(l.transform(o))+")"}};const g={test:h("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
2a:o?parseInt(o,16)/255:1}},transform:_.transform},v=e=>({test:t=>"string"===typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),y=v("deg"),b=v("%"),w=v("px"),x=v("vh"),k=v("vw"),S=(()=>(0,i.A)((0,i.A)({},b),{},{parse:e=>b.parse(e)/100,transform:e=>b.transform(100*e)}))(),C={test:h("hsl","hue"),parse:f("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:o=1}=e;return"hsla("+Math.round(t)+", "+b.transform(u(n))+", "+b.transform(u(r))+", "+u(l.transform(o))+")"}},A={test:e=>_.test(e)||g.test(e)||C.test(e),parse:e=>_.test(e)?_.parse(e):C.test(e)?C.parse(e):g.parse(e),transform:e=>"string"===typeof e?e:e.hasOwnProperty("red")?_.transform(e):C.transform(e),getAnimatableNone:e=>{const t=A.parse(e);return t.alpha=0,A.transform(t)}},E=/(?:#[0-9a-f]{3,8}|(?:rgb|h[s\u017F]l)a?\((?:-?[\.0-9]+%?[\t-\r ,\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+){2}-?[\.0-9]+%?[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[,\/][\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?(?:\b[0-9]+(?:\.[0-9]+)?|\.[0-9]+)?%?\))/gi;const j="number",T="color",P=/var[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*--(?:[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*|[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*,(?:[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:(?![\t-\r \(\)\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uD800-\uDFFF\uFEFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\((?:(?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|\((?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])*\))*\))+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)\)|#[0-9a-f]{3,8}|(?:rgb|h[s\u017F]l)a?\((?:-?[\.0-9]+%?[\t-\r ,\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+){2}-?[\.0-9]+%?[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[,\/][\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?(?:\b[0-9]+(?:\.[0-9]+)?|\.[0-9]+)?%?\)|-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)/gi;function N(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(P,(e=>(A.test(e)?(r.color.push(i),o.push(T),n.push(A.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(j),n.push(parseFloat(e))),++i,"${}"))).split("${}");return{values:n,split:a,indexes:r,types:o}}function I(e){let{split:t,types:n}=e;const r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===j?u(e[i]):t===T?A.transform(e[i]):e[i]}return o}}const R=(e,t)=>{return"number"===typeof e?null!==t&&void 0!==t&&t.trim().endsWith("/")?e:0:"number"===typeof(n=e)?0:A.test(n)?A.getAnimatableNone(n):n;var n};const O={test:function(e){var t,n;return isNaN(e)&&"string"===typeof e&&((null===(t=e.match(d))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(E))||void 0===n?void 0:n.length)||0)>0},parse:function(e){return N(e).values},createTransformer:function(e){return I(N(e))},getAnimatableNone:function(e){const t=N(e);return I(t)(t.values.map(((e,n)=>R(e,t.split[n]))))}},D=new Set(["brightness","contrast","saturate","opacity"]);function M(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(d)||[];if(!r)return e;const o=n.replace(r,"");let i=D.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const L=/\b([\x2Da-z]*)\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\)/g,F=(0,i.A)((0,i.A)({},O),{},{getAnimatableNone:e=>{const t=e.match(L);return t?t.map(M).join(" "):e}}),z=(0,i.A)((0,i.A)({},O),{},{getAnimatableNone:e=>{const t=O.parse(e);return O.createTransformer(e)(t.map((e=>"number"===typeof e?0:"object"===typeof e?(0,i.A)((0,i.A)({},e),{},{alpha:1}):e)))}}),B=(0,i.A)((0,i.A)({},s),{},{transform:Math.round}),q={rotate:y,rotateX:y,rotateY:y,rotateZ:y,scale:c,scaleX:c,scaleY:c,scaleZ:c,skew:y,skewX:y,skewY:y,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:l,originX:S,originY:S,originZ:w},U=(0,i.A)((0,i.A)({borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w},q),{},{zIndex:B,fillOpacity:l,strokeOpacity:l,numOctaves:B}),H=(0,i.A)((0,i.A)({},U),{},{color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:F,WebkitFilter:F,mask:z,WebkitMask:z}),W=e=>H[e],V=()=>({x:{min:0,max:0},y:{min:0,max:0}}),K=e=>Boolean(e&&e.getVelocity),G=new Set(["width","height","top","left","right","bottom",...r]),Y=e=>t=>t.test(e),Q=[s,w,b,y,k,x,{test:e=>"auto"===e,parse:e=>e}],X=e=>Q.find(Y(e));function $(e,t){return t?"".concat(e,". For more information and steps for solving, visit https://motion.dev/troubleshooting/").concat(t):e}var J;let Z=()=>{},ee=()=>{};"undefined"!==typeof process&&"production"!==(null===(J={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})||void 0===J?void 0:J.NODE_ENV)&&(Z=(e,t,n)=>{e||"undefined"===typeof console||console.warn($(t,n))}
2,ee=(e,t,n)=>{if(!e)throw new Error($(t,n))});const te=e=>/^-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)$/.test(e),ne=e=>t=>"string"===typeof t&&t.startsWith(e),re=ne("--"),oe=ne("var(--"),ie=e=>!!oe(e)&&ae.test(e.split("/*")[0].trim()),ae=/var\(--(?:[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*|[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*,(?:[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:(?![\t-\r \(\)\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uD800-\uDFFF\uFEFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\((?:(?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|\((?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])*\))*\))+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)\)$/i;function se(e){return"string"===typeof e&&e.split("/*")[0].includes("var(--")}const le=/^var\(--(?:([\x2D0-9A-Z_a-z]+)|([\x2D0-9A-Z_a-z]+), ?([ #%\(\),-\.0-9A-Za-z]+))\)/;function ce(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;ee(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'),"max-css-var-depth");const[r,o]=function(e){const t=le.exec(e);if(!t)return[,];const[,n,r,o]=t;return["--".concat(null!==n&&void 0!==n?n:r),o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return te(e)?parseFloat(e):e}return ie(o)?ce(o,t,n+1):o}const ue=e=>180*e/Math.PI,de=e=>{const t=ue(Math.atan2(e[1],e[0]));return he(t)},pe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:de,rotateZ:de,skewX:e=>ue(Math.atan(e[1])),skewY:e=>ue(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},he=e=>((e%=360)<0&&(e+=360),e),fe=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),me=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),_e={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fe,scaleY:me,scale:e=>(fe(e)+me(e))/2,rotateX:e=>he(ue(Math.atan2(e[6],e[5]))),rotateY:e=>he(ue(Math.atan2(-e[2],e[0]))),rotateZ:de,rotate:de,skewX:e=>ue(Math.atan(e[4])),skewY:e=>ue(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ge(e){return e.includes("scale")?1:0}function ve(e,t){if(!e||"none"===e)return ge(t);const n=e.match(/^matrix3d\(([\t-\r ,-\.0-9e\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)\)$/);let r,o;if(n)r=_e,o=n;else{const t=e.match(/^matrix\(([\t-\r ,-\.0-9e\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)\)$/);r=pe,o=t}if(!o)return ge(t);const i=r[t],a=o[1].split(",").map(ye);return"function"===typeof i?i(a):a[i]}function ye(e){return parseFloat(e.trim())}const be=e=>e===s||e===w,we=new Set(["x","y","z"]),xe=r.filter((e=>!we.has(e)));const ke={width:(e,t)=>{let{x:n}=e,{paddingLeft:r="0",paddingRight:o="0",boxSizing:i}=t;const a=n.max-n.min;return"border-box"===i?a:a-parseFloat(r)-parseFloat(o)},height:(e,t)=>{let{y:n}=e,{paddingTop:r="0",paddingBottom:o="0",boxSizing:i}=t;const a=n.max-n.min;return"border-box"===i?a:a-parseFloat(r)-parseFloat(o)},top:(e,t)=>{let{top:n}=t;return parseFloat(n)},left:(e,t)=>{let{left:n}=t;return parseFloat(n)},bottom:(e,t)=>{let{y:n}=e,{top:r}=t;return parseFloat(r)+(n.max-n.min)},right:(e,t)=>{let{x:n}=e,{left:r}=t;return parseFloat(r)+(n.max-n.min)},x:(e,t)=>{let{transform:n}=t;return ve(n,"x")},y:(e,t)=>{let{transform:n}=t;return ve(n,"y")}};ke.translateX=ke.x,ke.translateY=ke.y;const Se=e=>e,Ce={},Ae=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Ee={value:null,addProjectionMetrics:null};function je(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Ae.reduce(((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,o=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){a.has(t)&&(u.schedule(t),e()),l++,t(s)}const u={schedule:function(e){const t=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&o?n:r;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(e),t.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(s=e,o)return void(i=!0);o=!0;const a=n;
2n=r,r=a,n.forEach(c),t&&Ee.value&&Ee.value.frameloop[t].push(l),l=0,n.clear(),o=!1,i&&(i=!1,u.process(e))}};return u}(i,t?n:void 0),e)),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:p,render:h,postRender:f}=a,m=()=>{const i=Ce.useManualTiming,a=i?o.timestamp:performance.now();n=!1,i||(o.delta=r?1e3/60:Math.max(Math.min(a-o.timestamp,40),1)),o.timestamp=a,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),d.process(o),p.process(o),h.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},_=Ae.reduce(((t,i)=>{const s=a[i];return t[i]=function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,o.isProcessing||e(m)),s.schedule(t,i,a)},t}),{});return{schedule:_,cancel:e=>{for(let t=0;t<Ae.length;t++)a[Ae[t]].cancel(e)},state:o,steps:a}}const{schedule:Te,cancel:Pe,state:Ne,steps:Ie}=je("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:Se,!0),Re=new Set;let Oe=!1,De=!1,Me=!1;function Le(){if(De){const e=Array.from(Re).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return xe.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((t=>{var n;let[r,o]=t;null===(n=e.getValue(r))||void 0===n||n.set(o)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}De=!1,Oe=!1,Re.forEach((e=>e.complete(Me))),Re.clear()}function Fe(){Re.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(De=!0)}))}class ze{constructor(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Re.add(this),Oe||(Oe=!0,Te.read(Fe),Te.resolveKeyframes(Le))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const o=null===r||void 0===r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);void 0!==r&&null!==r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}!function(e){for(let n=1;n<e.length;n++){var t;null!==(t=e[n])&&void 0!==t||(e[n]=e[n-1])}}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Re.delete(this)}cancel(){"scheduled"===this.state&&(Re.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const Be=e=>/^0(?:[\0-\x08\x0E-\x1F!-\x2D\/-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+$/.test(e);const qe=new Set([F,z]);function Ue(e,t){let n=W(e);return qe.has(n)||(n=O),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const He=new Set(["auto","none","0"]);class We extends ze{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let s=0;s<e.length;s++){let n=e[s];if("string"===typeof n&&(n=n.trim(),ie(n))){const r=ce(n,t.current);void 0!==r&&(e[s]=r),s===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!G.has(n)||2!==e.length)return;const[r,o]=e,i=X(r),a=X(o);if(se(r)!==se(o)&&ke[n])this.needsMeasurement=!0;else if(i!==a)if(be(i)&&be(a))for(let s=0;s<e.length;s++){const t=e[s];"string"===typeof t&&(e[s]=parseFloat(t))}else ke[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let o=0;o<e.length;o++)(null===e[o]||("number"===typeof(r=e[o])?0===r:null===r||"none"===r||"0"===r||Be(r)))&&n.push(o);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"===typeof t&&!He.has(t)&&N(t).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=Ue(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ke[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=ke[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),null!==(e=this.removedTransforms)&&void 0!==e&&e.length&&this.removedTransforms.forEac
2h((e=>{let[n,r]=e;t.getValue(n).set(r)})),this.resolveNoneKeyframes()}}var Ve=n(53986);const Ke=e=>1e3*e,Ge=e=>e/1e3;function Ye(e,t){-1===e.indexOf(t)&&e.push(t)}function Qe(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xe{constructor(){this.subscriptions=[]}add(e){return Ye(this.subscriptions,e),()=>Qe(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function $e(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}function Je(e){let t;return()=>(void 0===t&&(t=e()),t)}const Ze={};function et(e,t){const n=Je(e);return()=>{var e;return null!==(e=Ze[t])&&void 0!==e?e:n()}}const tt=et((()=>void 0!==window.ScrollTimeline),"scrollTimeline"),nt=e=>null!==e;function rt(e,t,n){let{repeat:r,repeatType:o="loop"}=t,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const a=e.filter(nt),s=i<0||r&&"loop"!==o&&r%2===1?0:a.length-1;return s&&void 0!==n?n:a[s]}class ot{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise((e=>{this.resolve=e}))}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const it={layout:0,mainThread:0,waapi:0},at=e=>Array.isArray(e)&&"number"===typeof e[0],st=et((()=>{try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),lt=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(1e4*e(i/(o-1)))/1e4+", ";return"linear(".concat(r.substring(0,r.length-2),")")},ct=e=>{let[t,n,r,o]=e;return"cubic-bezier(".concat(t,", ").concat(n,", ").concat(r,", ").concat(o,")")},ut={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ct([0,.65,.55,1]),circOut:ct([.55,0,1,.45]),backIn:ct([.31,.01,.66,-.59]),backOut:ct([.33,1.53,.69,.99])};function dt(e,t){return e?"function"===typeof e?st()?lt(e,t):"ease-out":at(e)?ct(e):Array.isArray(e)?e.map((e=>dt(e,t)||ut.easeOut)):ut[e]:void 0}function pt(e,t,n){let{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;const u={[t]:n};l&&(u.offset=l);const d=dt(s,o);Array.isArray(d)&&(u.easing=d),Ee.value&&it.waapi++;const p={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"};c&&(p.pseudoElement=c);const h=e.animate(u,p);return Ee.value&&h.finished.finally((()=>{it.waapi--})),h}function ht(e){return"function"===typeof e&&"applyToOptions"in e}const ft=["type"];class mt extends ot{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=Boolean(o),this.allowFlatten=i,this.options=e,ee("string"!==typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function(e){let{type:t}=e,n=(0,Ve.A)(e,ft);return ht(t)&&st()?t.applyToOptions(n):(null!==(r=n.duration)&&void 0!==r||(n.duration=300),null!==(o=n.ease)&&void 0!==o||(n.ease="easeOut"),n);var r,o}(e);this.animation=pt(t,n,r,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const e=rt(r,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),$e(t,n,e),this.animation.cancel()}null===s||void 0===s||s(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;null===(e=(t=this.animation).finish)||void 0===e||e.call(t)}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e;const t=null===(e=this.options)||void 0===e?void 0:e.element;var n,r;!this.isPseudoElement&&null!==t&&void 0!==t&&t.isConnected&&(null===(n=(r=this.animation).commitStyles)||void 0===n||n.call(r))}get duration(){var e,t;const n=(null===(e=this.animation.effect)||void 0===e||null===(t=e.getComputedTiming)||void 0===t?void 0:t.call(e).duration)||0;return Ge(Number(n))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ge(e)}get time(){return Ge(Number(this.animation.currentTime)||0)}set time(e){const t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ke(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){var e;return null!==(e=this.manualStartTime)&&void 0!==e?e:Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline(e){let{timeline:t,rangeStart:n,rangeEnd:r,observe:o}=e;var i;this.allowFlatten&&(null===(i=this.animation.effect)||void 0===i||i.updateTiming({easing:"linear"}));return this.animation.onfinish=null,t&&tt()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Se):o(this)}}const _t=new Set(["opacity","clipPath","filter","transform"]),{schedule:gt,cancel:vt}=je(queueMicrotask,!1);let yt;function bt(){yt=void 0}const wt={now:()=>(void 0===yt&&wt.set(Ne.isProcessing||Ce.useManualTiming?Ne.timestamp:performance.now()),yt),set:e=>{yt=e,queueMicrotask(bt)}};function xt(e,t){return t?e*(1e3/t):0}const kt={current:void 0};class St{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=wt.now();var n;if((this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev)&&(null===(n=this.events.change)||void 0===n||n.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=wt.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Xe);const n=this.events[e].add(t);return"change"===e?()=>{n(),Te.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
2setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;null===(e=this.events.change)||void 0===e||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return kt.current&&kt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=wt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return xt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,t;null===(e=this.dependents)||void 0===e||e.clear(),null===(t=this.events.destroy)||void 0===t||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ct(e,t){return new St(e,t)}const At=[...Q,A,O],Et=new WeakMap;function jt(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}function Tt(e){return"string"===typeof e||Array.isArray(e)}const Pt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nt=["initial",...Pt];function It(e){return jt(e.animate)||Nt.some((t=>Tt(e[t])))}function Rt(e){return Boolean(It(e)||e.variants)}const Ot={current:null},Dt={current:!1},Mt="undefined"!==typeof window;function Lt(e){const t=[{},{}];return null===e||void 0===e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function Ft(e,t,n,r){if("function"===typeof t){const[o,i]=Lt(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t){const[o,i]=Lt(r);t=t(void 0!==n?n:e.custom,o,i)}return t}const zt=["willChange"],Bt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let qt={};function Ut(e){qt=e}class Ht{scrapeMotionValuesFromProps(e,t,n){return{}}constructor(e){let{parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:a,blockInitialAnimation:s,visualState:l}=e,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ze,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=wt.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Te.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget=(0,i.A)({},u),this.initialValues=n.initial?(0,i.A)({},u):{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=a,this.options=c,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=It(n),this.isVariantNode=Rt(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const p=this.scrapeMotionValuesFromProps(n,{},this),{willChange:h}=p,f=(0,Ve.A)(p,zt);for(const i in f){const e=f[i];void 0!==u[i]&&K(e)&&e.set(u[i])}}mount(e){var t,n;if(this.hasBeenMounted)for(const o in this.initialValues){var r;null===(r=this.values.get(o))||void 0===r||r.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o]}this.current=e,Et.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
2h(((e,t)=>this.bindToMotionValue(t,e))),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(Dt.current||function(){if(Dt.current=!0,Mt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ot.current=e.matches;e.addEventListener("change",t),t()}else Ot.current=!1}(),this.shouldReduceMotion=Ot.current),this.shouldSkipAnimations=null!==(t=this.skipAnimationsConfig)&&void 0!==t&&t,null===(n=this.parent)||void 0===n||n.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),Pe(this.notifyUpdate),Pe(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null===(e=this.parent)||void 0===e||e.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(e){var t;this.children.add(e),null!==(t=this.enteringChildren)&&void 0!==t||(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&_t.has(e)&&this.current instanceof HTMLElement){const{factory:n,keyframes:r,times:o,ease:i,duration:a}=t.accelerate,s=new mt({element:this.current,name:e,keyframes:r,times:o,ease:i,duration:Ke(a)}),l=n(s);return void this.valueSubscriptions.set(e,(()=>{l(),s.cancel()}))}const n=o.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Te.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}));let i;"undefined"!==typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in qt){const t=qt[e];
2if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Bt.length;n++){const t=Bt[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(K(o))e.addValue(r,o);else if(K(i))e.addValue(r,Ct(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,Ct(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Ct(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var o;return void 0!==r&&null!==r&&("string"===typeof r&&(te(r)||Be(r))?r=parseFloat(r):(o=r,!At.find(Y(o))&&O.test(t)&&(r=Ue(e,t))),this.setBaseTarget(e,K(r)?r.get():r)),K(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if("string"===typeof t||"object"===typeof t){var r;const o=Ft(this.props,t,null===(r=this.presenceContext)||void 0===r?void 0:r.custom);o&&(n=o[e])}if(t&&void 0!==n)return n;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||K(o)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Xe),this.events[e].add(t)}notify(e){if(this.events[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.events[e].notify(...n)}}scheduleRenderMicrotask(){gt.render(this.render)}}class Wt extends Ht{constructor(){super(...arguments),this.KeyframeResolver=We}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){const n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,t){let{vars:n,style:r}=t;delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;K(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent="".concat(e))})))}}function Vt(e){return e.replace(/([A-Z])/g,(e=>"-".concat(e.toLowerCase())))}const Kt=(e,t)=>
2t&&"number"===typeof e?t.transform(e):e,Gt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yt=r.length;function Qt(e,t,n){const{style:i,vars:a,transformOrigin:s}=e;let l=!1,c=!1;for(const r in t){const e=t[r];if(o.has(r))l=!0;else if(re(r))a[r]=e;else{const t=Kt(e,U[r]);r.startsWith("origin")?(c=!0,s[r]=t):i[r]=t}}if(t.transform||(l||n?i.transform=function(e,t,n){let o="",i=!0;for(let a=0;a<Yt;a++){const s=r[a],l=e[s];if(void 0===l)continue;let c=!0;if("number"===typeof l)c=l===(s.startsWith("scale")?1:0);else{const e=parseFloat(l);c=s.startsWith("scale")?1===e:0===e}if(!c||n){const e=Kt(l,U[s]);c||(i=!1,o+="".concat(Gt[s]||s,"(").concat(e,") ")),n&&(t[s]=e)}}return o=o.trim(),n?o=n(t,i?"":o):i&&(o="none"),o}(t,e.transform,n):i.transform&&(i.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;i.transformOrigin="".concat(e," ").concat(t," ").concat(n)}}const Xt={offset:"stroke-dashoffset",array:"stroke-dasharray"},$t={offset:"strokeDashoffset",array:"strokeDasharray"};const Jt=["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"],Zt=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function en(e,t,n,r,o){let{attrX:i,attrY:a,attrScale:s,pathLength:l,pathSpacing:c=1,pathOffset:u=0}=t;if(Qt(e,(0,Ve.A)(t,Jt),r),n)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;var h,f;(d.transform&&(p.transform=d.transform,delete d.transform),p.transform||d.transformOrigin)&&(p.transformOrigin=null!==(h=d.transformOrigin)&&void 0!==h?h:"50% 50%",delete d.transformOrigin);p.transform&&(p.transformBox=null!==(f=null===o||void 0===o?void 0:o.transformBox)&&void 0!==f?f:"fill-box",delete d.transformBox);for(const m of Zt)void 0!==d[m]&&(p[m]=d[m],delete d[m]);void 0!==i&&(d.x=i),void 0!==a&&(d.y=a),void 0!==s&&(d.scale=s),void 0!==l&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.pathLength=1;const i=o?Xt:$t;e[i.offset]="".concat(-r),e[i.array]="".concat(t," ").concat(n)}(d,l,c,u,!1)}const tn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),nn=e=>"string"===typeof e&&"svg"===e.toLowerCase();function rn(e,t,n,r){let{style:o,vars:i}=t;const a=e.style;let s;for(s in o)a[s]=o[s];for(s in null===r||void 0===r||r.applyProjectionStyles(a,n),i)a.setProperty(s,i[s])}function on(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const an={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!w.test(e))return e;e=parseFloat(e)}const n=on(e,t.target.x),r=on(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},sn=(e,t,n)=>e+(t-e)*n,ln={correct:(e,t)=>{let{treeScale:n,projectionDelta:r}=t;const o=e,i=O.parse(e);if(i.length>5)return o;const a=O.createTransformer(e),s="number"!==typeof i[0]?1:0,l=r.x.scale*n.x,c=r.y.scale*n.y;i[0+s]/=l,i[1+s]/=c;const u=sn(l,c,.5);return"number"===typeof i[2+s]&&(i[2+s]/=u),"number"===typeof i[3+s]&&(i[3+s]/=u),a(i)}},cn={borderRadius:(0,i.A)((0,i.A)({},an),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:an,borderTopRightRadius:an,borderBottomLeftRadius:an,borderBottomRightRadius:an,boxShadow:ln};function un(e,t){let{layout:n,layoutId:r}=t;return o.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!cn[e]||"opacity"===e)}function dn(e,t,n){const r=e.style,o=null===t||void 0===t?void 0:t.style,i={};if(!r)return i;for(const s in r){var a;(K(r[s])||o&&K(o[s])||un(s,e)||void 0!==(null===n||void 0===n||null===(a=n.getValue(s))||void 0===a?void 0:a.liveStyle))&&(i[s]=r[s])}return i}function pn(e,t,n){const o=dn(e,t,n);for(const i in e)if(K(e[i])||K(t[i])){o[-1!==r.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]}return o}class hn extends Wt{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=V}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(o.has(t)){const e=W(t);return e&&e.default||0}return t=tn.has(t)?t:Vt(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return pn(e,t,n)}
2build(e,t,n){en(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){rn(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(tn.has(o)?o:Vt(o),t.attrs[o])}(e,t,0,r)}mount(e){this.isSVGTag=nn(e.tagName),super.mount(e)}}function fn(e){let{top:t,left:n,right:r,bottom:o}=e;return{x:{min:n,max:r},y:{min:t,max:o}}}function mn(e){return void 0===e||1===e}function _n(e){let{scale:t,scaleX:n,scaleY:r}=e;return!mn(t)||!mn(n)||!mn(r)}function gn(e){return _n(e)||vn(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vn(e){return yn(e.x)||yn(e.y)}function yn(e){return e&&"0%"!==e}function bn(e,t,n){return n+t*(e-n)}function wn(e,t,n,r,o){return void 0!==o&&(e=bn(e,o,r)),bn(e,n,r)+t}function xn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;e.min=wn(e.min,t,n,r,o),e.max=wn(e.max,t,n,r,o)}function kn(e,t){let{x:n,y:r}=t;xn(e.x,n.translate,n.scale,n.originPoint),xn(e.y,r.translate,r.scale,r.originPoint)}const Sn=.999999999999,Cn=1.0000000000001;function An(e,t){e.min+=t,e.max+=t}function En(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;xn(e,t,n,sn(e.min,e.max,o),r)}function jn(e,t){return"string"===typeof e?parseFloat(e)/100*(t.max-t.min):e}function Tn(e,t,n){const r=null!==n&&void 0!==n?n:e;En(e.x,jn(t.x,r.x),t.scaleX,t.scale,t.originX),En(e.y,jn(t.y,r.y),t.scaleY,t.scale,t.originY)}function Pn(e,t){return fn(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class Nn extends Wt{constructor(){super(...arguments),this.type="html",this.renderInstance=rn}readValueFromInstance(e,t){var n,r;if(o.has(t))return null!==(n=this.projection)&&void 0!==n&&n.isProjecting?ge(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ve(n,t)})(e,t);{const n=(r=e,window.getComputedStyle(r)),o=(re(t)?n.getPropertyValue(t):n[t])||0;return"string"===typeof o?o.trim():o}}measureInstanceViewportBox(e,t){let{transformPagePoint:n}=t;return Pn(e,n)}build(e,t,n){Qt(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return dn(e,t,n)}}var In=n(65043);const Rn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function On(e){return"string"===typeof e&&!e.includes("-")&&!!(Rn.indexOf(e)>-1||/[A-Z]/.test(e))}const Dn=(e,t)=>{var n;return(null!==(n=t.isSVG)&&void 0!==n?n:On(e))?new hn(t):new Nn(t,{allowProjection:e!==In.Fragment})};var Mn=n(70579),Ln=n(2190);const Fn=(0,In.createContext)({strict:!1});var zn=n(91051);const Bn=(0,In.createContext)({});function qn(e){const{initial:t,animate:n}=function(e,t){if(It(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Tt(t)?t:void 0,animate:Tt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,In.useContext)(Bn));return(0,In.useMemo)((()=>({initial:t,animate:n})),[Un(t),Un(n)])}function Un(e){return Array.isArray(e)?e.join(" "):e}const Hn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wn(e,t,n){for(const r in t)K(t[r])||un(r,n)||(e[r]=t[r])}function Vn(e,t){const n={};return Wn(n,e.style||{},e),Object.assign(n,function(e,t){let{transformTemplate:n}=e;return(0,In.useMemo)((()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return Qt(e,t,n),Object.assign({},e.vars,e.style)}),[t])}(e,t)),n}function Kn(e,t){const n={},r=Vn(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Gn=()=>(0,i.A)((0,i.A)({},{style:{},transform:{},transformOrigin:{},vars:{}}),{},{attrs:{}});function Yn(e,t,n,r){const o=(0,In.useMemo)((()=>{const n=Gn();return en(n,t,nn(r),e.transformTemplate,e.style),(0,i.A)((0,i.A)({},n.attrs),{},{style:(0,i.A)({},n.style)})}),[t]);if(e.style){const t={};Wn(t,e.style,e),o.style=(0,i.A)((0,i.A)({},t),o.style)}return o}const Qn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Xn(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Qn.has(e)}let $n=e=>!Xn(e);try{"function"===typeof(Jn=require("@emotion/is-prop-valid").default)&&($n=e=>e.startsWith("on")?!Xn(e):Jn(e))}catch(Ws){}var Jn;function Zn(e,t,n,r,o){let{latestValues:a}=r,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0;const c=((null!==l&&void 0!==l?l:On(e))?Yn:Kn)(t,a,o,e),u=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"===typeof e.values||K(e[o])||($n(o)||!0===n&&Xn(o)||!t&&!Xn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(t,"string"===typeof e,s),d=e!==In.Fragment?(0,i.A)((0,i.A)((0,i.A)({},u),c),{},{ref:n}):{},{children:p}=t,h=(0,In.useMemo)((()=>
2K(p)?p.get():p),[p]);return(0,In.createElement)(e,(0,i.A)((0,i.A)({},d),{},{children:h}))}function er(e){return K(e)?e.get():e}var tr=n(9674),nr=n(34930);const rr=["transitionEnd","transition"];function or(e,t,n,r){const o={},i=r(e,{});for(const p in i)o[p]=er(i[p]);let{initial:a,animate:s}=e;const l=It(e),c=Rt(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!==typeof d&&!jt(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=Ft(e,t[n]);if(r){const{transitionEnd:e,transition:t}=r,n=(0,Ve.A)(r,rr);for(const r in n){let e=n[r];if(Array.isArray(e)){e=e[u?e.length-1:0]}null!==e&&(o[r]=e)}for(const r in e)o[r]=e[r]}}}return o}const ir=e=>(t,n)=>{const r=(0,In.useContext)(Bn),o=(0,In.useContext)(tr.t),i=()=>function(e,t,n,r){let{scrapeMotionValuesFromProps:o,createRenderState:i}=e;return{latestValues:or(t,n,r,o),renderState:i()}}(e,t,r,o);return n?i():(0,nr.M)(i)},ar=ir({scrapeMotionValuesFromProps:dn,createRenderState:Hn}),sr=ir({scrapeMotionValuesFromProps:pn,createRenderState:Gn}),lr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let cr=!1;function ur(){return function(){if(cr)return;const e={};for(const t in lr)e[t]={isEnabled:e=>lr[t].some((t=>!!e[t]))};Ut(e),cr=!0}(),qt}const dr=Symbol.for("motionComponentSymbol");function pr(e,t,n){const r=(0,In.useRef)(n);(0,In.useInsertionEffect)((()=>{r.current=n}));const o=(0,In.useRef)(null);return(0,In.useCallback)((n=>{var i;n&&(null===(i=e.onMount)||void 0===i||i.call(e,n));const a=r.current;if("function"===typeof a)if(n){const e=a(n);"function"===typeof e&&(o.current=e)}else o.current?(o.current(),o.current=null):a(n);else a&&(a.current=n);t&&(n?t.mount(n):t.unmount())}),[t])}const hr="data-"+Vt("framerAppearId"),fr=(0,In.createContext)({});function mr(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var _r=n(93110);function gr(e,t,n,r,o,i){var a,s,l,c;const{visualElement:u}=(0,In.useContext)(Bn),d=(0,In.useContext)(Fn),p=(0,In.useContext)(tr.t),h=(0,In.useContext)(zn.Q),f=h.reducedMotion,m=h.skipAnimations,_=(0,In.useRef)(null),g=(0,In.useRef)(!1);r=r||d.renderer,!_.current&&r&&(_.current=r(e,{visualState:t,parent:u,props:n,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:f,skipAnimations:m,isSVG:i}),g.current&&_.current&&(_.current.manuallyAnimateOnMount=!0));const v=_.current,y=(0,In.useContext)(fr);!v||v.projection||!o||"html"!==v.type&&"svg"!==v.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:vr(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&mr(s),visualElement:e,animationType:"string"===typeof i?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}(_.current,n,o,y);const b=(0,In.useRef)(!1);(0,In.useInsertionEffect)((()=>{v&&b.current&&v.update(n,p)}));const w=n[hr],x=(0,In.useRef)(Boolean(w)&&"undefined"!==typeof window&&!(null!==(a=(s=window).MotionHandoffIsComplete)&&void 0!==a&&a.call(s,w))&&(null===(l=(c=window).MotionHasOptimisedAnimation)||void 0===l?void 0:l.call(c,w)));return(0,_r.E)((()=>{g.current=!0,v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),x.current&&v.animationState&&v.animationState.animateChanges())})),(0,In.useEffect)((()=>{v&&(!x.current&&v.animationState&&v.animationState.animateChanges(),x.current&&(queueMicrotask((()=>{var e,t;null===(e=(t=window).MotionHandoffMarkAsComplete)||void 0===e||e.call(t,w)})),x.current=!1),v.enteringChildren=void 0)})),v}function vr(e){if(e)return!1!==e.options.allowProjection?e.projection:vr(e.parent)}function yr(e){var t,n;let{forwardMotionProps:r=!1,type:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;a&&function(e){const t=ur();for(const n in e)t[n]=(0,i.A)((0,i.A)({},t[n]),e[n]);Ut(t)}(a);const l=o?"svg"===o:On(e),c=l?sr:ar;function u(t,n){let o;const a=(0,i.A)((0,i.A)((0,i.A)({},(0,In.useContext)(zn.Q)),t),{},{layoutId:br(t)}),{isStatic:u}=a,d=qn(t),p=c(t,u);if(!u&&"undefined"!==typeof window){!function(){(0,In.useContext)(Fn).strict;0}();const t=function(e){const t=ur(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o=(0,i.A)((0,i.A)({},n),r);return{MeasureLayout:null!==n&&void 0!==n&&n.isEnabled(e)||null!==r&&void 0!==r&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}
2(a);o=t.MeasureLayout,d.visualElement=gr(e,p,a,s,t.ProjectionNode,l)}return(0,Mn.jsxs)(Bn.Provider,{value:d,children:[o&&d.visualElement?(0,Mn.jsx)(o,(0,i.A)({visualElement:d.visualElement},a)):null,Zn(e,t,pr(p,d.visualElement,n),p,u,r,l)]})}u.displayName="motion.".concat("string"===typeof e?e:"create(".concat(null!==(t=null!==(n=e.displayName)&&void 0!==n?n:e.name)&&void 0!==t?t:"",")"));const d=(0,In.forwardRef)(u);return d[dr]=e,d}function br(e){let{layoutId:t}=e;const n=(0,In.useContext)(Ln.L).id;return n&&void 0!==t?n+"-"+t:t}function wr(e,t){if("undefined"===typeof Proxy)return yr;const n=new Map,r=(n,r)=>yr(n,r,e,t);return new Proxy(((e,t)=>r(e,t)),{get:(o,i)=>"create"===i?r:(n.has(i)||n.set(i,yr(i,void 0,e,t)),n.get(i))})}class xr{constructor(e){this.isMounted=!1,this.node=e}update(){}}function kr(e,t,n){const r=e.getProps();return Ft(r,t,void 0!==n?n:r.custom,e)}const Sr=["inherit"];function Cr(e,t){if(null!==e&&void 0!==e&&e.inherit&&t){const{inherit:n}=e,r=(0,Ve.A)(e,Sr);return(0,i.A)((0,i.A)({},t),r)}return e}function Ar(e,t){var n,r;const o=null!==(n=null!==(r=null===e||void 0===e?void 0:e[t])&&void 0!==r?r:null===e||void 0===e?void 0:e.default)&&void 0!==n?n:e;return o!==e?Cr(o,e):o}const Er=e=>Array.isArray(e),jr=["transitionEnd","transition"];function Tr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ct(n))}function Pr(e,t){const n=e.getValue("willChange");if(r=n,Boolean(K(r)&&r.add))return n.add(t);if(!n&&Ce.WillChange){const n=new Ce.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function Nr(e){return e.props[hr]}const Ir=(e,t)=>n=>t(e(n)),Rr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Ir)};function Or(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Dr(e,t){return n=>n>0?t:e}const Mr=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Lr=[g,_,C];function Fr(e){const t=(n=e,Lr.find((e=>e.test(n))));var n;if(Z(Boolean(t),"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."),"color-not-animatable"),!Boolean(t))return!1;let r=t.parse(e);return t===C&&(r=function(e){let{hue:t,saturation:n,lightness:r,alpha:o}=e;t/=360,n/=100,r/=100;let i=0,a=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,o=2*r-e;i=Or(o,e,t+1/3),a=Or(o,e,t),s=Or(o,e,t-1/3)}else i=a=s=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*s),alpha:o}}(r)),r}const zr=(e,t)=>{const n=Fr(e),r=Fr(t);if(!n||!r)return Dr(e,t);const o=(0,i.A)({},n);return e=>(o.red=Mr(n.red,r.red,e),o.green=Mr(n.green,r.green,e),o.blue=Mr(n.blue,r.blue,e),o.alpha=sn(n.alpha,r.alpha,e),_.transform(o))},Br=new Set(["none","hidden"]);function qr(e,t){return n=>sn(e,t,n)}function Ur(e){return"number"===typeof e?qr:"string"===typeof e?ie(e)?Dr:A.test(e)?zr:Vr:Array.isArray(e)?Hr:"object"===typeof e?A.test(e)?zr:Wr:Dr}function Hr(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>Ur(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function Wr(e,t){const n=(0,i.A)((0,i.A)({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Ur(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Vr=(e,t)=>{const n=O.createTransformer(t),r=N(e),o=N(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Br.has(e)&&!o.values.length||Br.has(t)&&!r.values.length?function(e,t){return Br.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Rr(Hr(function(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){var o;const a=t.types[i],s=e.indexes[a][r[a]],l=null!==(o=e.values[s])&&void 0!==o?o:0;n[i]=l,r[a]++}return n}(r,o),o.values),n):(Z(!0,"Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),"complex-values-different"),Dr(e,t))};function Kr(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return sn(e,t,n);return Ur(e)(e,t)}const Gr=e=>{const t=t=>{let{timestamp:n}=t;return e(n)};return{start:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Te.update(t,e)},stop:()=>Pe(t),now:()=>Ne.isProcessing?Ne.timestamp:wt.now()}},Yr=2e4;function Qr(e){let t=0;let n=e.next(t);for(;!n.done&&t<Yr;)t+=50,n=e.next(t);return t>=Yr?1/0:t}const Xr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function $r(e,t){return e*Math.sqrt(1-t*t)}const Jr=.001;const Zr=["duration","bounce"],eo=["stiffness","damping","mass"];function to(e,t){return t.some((t=>void 0!==e[t]))}function no(e){let t=(0,i.A)({velocity:Xr.velocity,stiffness:Xr.stiffness,damping:Xr.damping,mass:Xr.mass,isResolvedFromDuration:!1},e);if(!to(e,eo)&&to(e,Zr))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,s=2*a(.05,1,1-(e.bounce||0))*Math.sqrt(o);t=(0,i.A)((0,i.A)({},t),{},{mass:Xr.mass,stiffness:o,damping:s})}else{const n=function(e){let t,n,{duration:r=Xr.duration,bounce:o=Xr.bounce,velocity:i=Xr.velocity,mass:s=Xr.mass}=e;Z(r<=Ke(Xr.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-o;
2l=a(Xr.minDamping,Xr.maxDamping,l),r=a(Xr.minDuration,Xr.maxDuration,Ge(r)),l<1?(t=e=>{const t=e*l,n=t*r,o=t-i,a=$r(e,l),s=Math.exp(-n);return Jr-o/a*s},n=e=>{const n=e*l*r,o=n*i+i,a=Math.pow(l,2)*Math.pow(e,2)*r,s=Math.exp(-n),c=$r(Math.pow(e,2),l);return(-t(e)+Jr>0?-1:1)*((o-a)*s)/c}):(t=e=>Math.exp(-e*r)*((e-i)*r+1)-.001,n=e=>Math.exp(-e*r)*(r*r*(i-e)));const c=function(e,t,n){let r=n;for(let o=1;o<12;o++)r-=e(r)/t(r);return r}(t,n,5/r);if(r=Ke(r),isNaN(c))return{stiffness:Xr.stiffness,damping:Xr.damping,duration:r};{const e=Math.pow(c,2)*s;return{stiffness:e,damping:2*l*Math.sqrt(s*e),duration:r}}}((0,i.A)((0,i.A)({},e),{},{velocity:0}));t=(0,i.A)((0,i.A)((0,i.A)({},t),n),{},{mass:Xr.mass}),t.isResolvedFromDuration=!0}return t}function ro(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xr.visualDuration,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xr.bounce;const n="object"!==typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:p,velocity:h,isResolvedFromDuration:f}=no((0,i.A)((0,i.A)({},n),{},{velocity:-Ge(n.velocity||0)})),m=h||0,_=u/(2*Math.sqrt(c*d)),g=s-a,v=Ge(Math.sqrt(c/d)),y=Math.abs(g)<5;let b,w,x,k,S,C;if(r||(r=y?Xr.restSpeed.granular:Xr.restSpeed.default),o||(o=y?Xr.restDelta.granular:Xr.restDelta.default),_<1)x=$r(v,_),k=(m+_*v*g)/x,b=e=>{const t=Math.exp(-_*v*e);return s-t*(k*Math.sin(x*e)+g*Math.cos(x*e))},S=_*v*k+g*x,C=_*v*g-k*x,w=e=>Math.exp(-_*v*e)*(S*Math.sin(x*e)+C*Math.cos(x*e));else if(1===_){b=e=>s-Math.exp(-v*e)*(g+(m+v*g)*e);const e=m+v*g;w=t=>Math.exp(-v*t)*(v*e*t-m)}else{const e=v*Math.sqrt(_*_-1);b=t=>{const n=Math.exp(-_*v*t),r=Math.min(e*t,300);return s-n*((m+_*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};const t=(m+_*v*g)/e,n=_*v*t-g*e,r=_*v*g-t*e;w=t=>{const o=Math.exp(-_*v*t),i=Math.min(e*t,300);return o*(n*Math.sinh(i)+r*Math.cosh(i))}}const A={calculatedDuration:f&&p||null,velocity:e=>Ke(w(e)),next:e=>{if(!f&&_<1){const t=Math.exp(-_*v*e),n=Math.sin(x*e),i=Math.cos(x*e),a=s-t*(k*n+g*i),c=Ke(t*(S*n+C*i));return l.done=Math.abs(c)<=r&&Math.abs(s-a)<=o,l.value=l.done?s:a,l}const t=b(e);if(f)l.done=e>=p;else{const n=Ke(w(e));l.done=Math.abs(n)<=r&&Math.abs(s-t)<=o}return l.value=l.done?s:t,l},toString:()=>{const e=Math.min(Qr(A),Yr),t=lt((t=>A.next(e*t).value),e,30);return e+"ms "+t},toTransition:()=>{}};return A}ro.applyToOptions=e=>{const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;const n=(arguments.length>2?arguments[2]:void 0)((0,i.A)((0,i.A)({},e),{},{keyframes:[0,t]})),r=Math.min(Qr(n),Yr);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:Ge(r)}}(e,100,ro);return e.ease=t.ease,e.duration=Ke(t.duration),e.type="keyframes",e};function oo(e,t,n){const r=Math.max(t-5,0);return xt(n-e(r),t-r)}function io(e){let{keyframes:t,velocity:n=0,power:r=.8,timeConstant:o=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:l,max:c,restDelta:u=.5,restSpeed:d}=e;const p=t[0],h={done:!1,value:p},f=e=>void 0===l?c:void 0===c||Math.abs(l-e)<Math.abs(c-e)?l:c;let m=r*n;const _=p+m,g=void 0===s?_:s(_);g!==_&&(m=g-p);const v=e=>-m*Math.exp(-e/o),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);h.done=Math.abs(t)<=u,h.value=h.done?g:n};let w,x;const k=e=>{var t;(t=h.value,void 0!==l&&t<l||void 0!==c&&t>c)&&(w=e,x=ro({keyframes:[h.value,f(h.value)],velocity:oo(y,e,h.value),damping:i,stiffness:a,restDelta:u,restSpeed:d}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),k(e)),void 0!==w&&e>=w?x.next(e-w):(!t&&b(e),h)}}}const ao=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function so(e,t,n,r){if(e===t&&n===r)return Se;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=ao(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:ao(o(e),t,r)}const lo=so(.42,0,1,1),co=so(0,0,.58,1),uo=so(.42,0,.58,1),po=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ho=e=>t=>1-e(1-t),fo=so(.33,1.53,.69,.99),mo=ho(fo),_o=po(mo),go=e=>e>=1?1:(e*=2)<1?.5*mo(e):.5*(2-Math.pow(2,-10*(e-1))),vo=e=>1-Math.sin(Math.acos(e)),yo=ho(vo),bo=po(vo),wo={linear:Se,easeIn:lo,easeInOut:uo,easeOut:co,circIn:vo,circInOut:bo,circOut:yo,backIn:mo,backInOut:_o,backOut:fo,anticipate:go},xo=e=>{if(at(e)){ee(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return so(t,n,r,o)}return"string"===typeof e?(ee(void 0!==wo[e],"Invalid easing type '".concat(e,"'"),"invalid-easing-type"),wo[e]):e},ko=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};function So(e,t){let{clamp:n=!0,ease:r,mixer:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=e.length;if(ee(i===t.length,"Both input and output ranges must be the same length","range-length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=function(e,t,n){const r=[],o=n||Ce.mix||Kr,i=e.length-1;for(let a=0;a<i;a++){let n=o(e[a],e[a+1]);if(t){const e=Array.isArray(t)?t[a]||Se:t;n=Rr(e,n)}r.push(n)}return r}(t,r,o),c=l.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=ko(e[r],e[r+1],n);return l[r](o)};return n?t=>u(a(e[0],e[i-1],t)):u}function Co(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ko(0,t,r);e.push(sn(n,1,o))}}(t,e.length-1),t}function Ao(e){let{duration:t=300,keyframes:n,times:r,ease:o="easeInOut"}=e;const i=(e=>Array.isArray(e)&&"number"!==typeof e[0])(o)?o.map(xo):xo(o),a={done:!1,value:n[0]},s=function(e,t){return e.map((e=>e*t))}(r&&r.length===n.length?r:Co(n),t),l=So(s,n,{ease:Array.isArray(i)?i:(c=n,u=i,c.map((()=>u||uo)).splice(0,c.length-1))});var c,u;return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}const Eo={decay:io,inertia:io,tween:Ao,keyframes:Ao,spring:ro};function jo(e){"string"===typeof e.type&&(e.type=Eo[e.type])}const To=e=>e/100;class Po extends ot{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var e,t;const{motionValue:n}=this.options;n&&n.updatedAt!==wt.now()&&this.tick(wt.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null===(e=(t=this.options).onStop)||void 0===e||e.call(t))},it.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;jo(e);
2const{type:t=Ao,repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=e;let{keyframes:s}=e;const l=t||Ao;l!==Ao&&"number"!==typeof s[0]&&(this.mixKeyframes=Rr(To,Kr(s[0],s[1])),s=[0,100]);const c=l((0,i.A)((0,i.A)({},e),{},{keyframes:s}));"mirror"===o&&(this.mirroredGenerator=l((0,i.A)((0,i.A)({},e),{},{keyframes:[...s].reverse(),velocity:-a}))),null===c.calculatedDuration&&(c.calculatedDuration=Qr(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{generator:n,totalDuration:r,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:p,repeatDelay:h,type:f,onUpdate:m,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let y,b=this.currentTime,w=n;if(d){const e=Math.min(this.currentTime,r)/s;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,d+1);Boolean(t%2)&&("reverse"===p?(n=1-n,h&&(n-=h/s)):"mirror"===p&&(w=i)),b=a(0,1,n)*s}v?(this.delayState.value=u[0],y=this.delayState):y=w.next(b),o&&!v&&(y.value=o(y.value));let{done:x}=y;v||null===l||(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return k&&f!==io&&(y.value=rt(u,this.options,_,this.speed)),m&&m(y.value),k&&this.finish(),y}then(e,t){return this.finished.then(e,t)}get duration(){return Ge(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Ge(e)}get time(){return Ge(this.currentTime)}set time(e){e=Ke(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);return oo((e=>this.generator.next(e).value),e,this.generator.next(e).value)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(wt.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Ge(this.currentTime))}play(){var e,t;if(this.isStopped)return;const{driver:n=Gr,startTime:r}=this.options;this.driver||(this.driver=n((e=>this.tick(e)))),null===(e=(t=this.options).onPlay)||void 0===e||e.call(t);const o=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=o):null!==this.holdTime?this.startTime=o-this.holdTime:this.startTime||(this.startTime=null!==r&&void 0!==r?r:o),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(wt.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state="finished",null===(e=(t=this.options).onComplete)||void 0===e||e.call(t)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null===(e=(t=this.options).onCancel)||void 0===e||e.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,it.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null===(t=this.driver)||void 0===t||t.stop(),e.observe(this)}}const No={anticipate:go,backInOut:_o,circInOut:bo};function Io(e){"string"===typeof e.ease&&e.ease in No&&(e.ease=No[e.ease])}const Ro=["motionValue","onUpdate","onComplete","element"];class Oo extends mt{constructor(e){Io(e),jo(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const t=this.options,{motionValue:n,onUpdate:r,onComplete:o,element:s}=t,l=(0,Ve.A)(t,Ro);if(!n)return;if(void 0!==e)return void n.set(e);const c=new Po((0,i.A)((0,i.A)({},l),{},{autoplay:!1})),u=Math.max(10,wt.now()-this.startTime),d=a(0,10,u-10),p=c.sample(u).value,{name:h}=this.options;s&&h&&$e(s,h,p),n.setWithVelocity(c.sample(Math.max(0,u-d)).value,p,d),c.stop()}}const Do=(e,t)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!O.test(e)&&"0"!==e||e.startsWith("url(")));function Mo(e){e.duration=0,e.type="keyframes"}
2const Lo=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;const Fo=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),zo=Je((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));function Bo(e){var t;const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:a,type:s,keyframes:l}=e;if(!((null===n||void 0===n||null===(t=n.owner)||void 0===t?void 0:t.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return zo()&&r&&(_t.has(r)||Fo.has(r)&&function(e){for(let t=0;t<e.length;t++)if("string"===typeof e[t]&&Lo.test(e[t]))return!0;return!1}(l))&&("transform"!==r||!u)&&!c&&!o&&"mirror"!==i&&0!==a&&"inertia"!==s}const qo=["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"];class Uo extends ot{constructor(e){var t;let{autoplay:n=!0,delay:r=0,type:o="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l="loop",keyframes:c,name:u,motionValue:d,element:p}=e,h=(0,Ve.A)(e,qo);super(),this.stop=()=>{var e,t;this._animation&&(this._animation.stop(),null===(t=this.stopTimeline)||void 0===t||t.call(this));null===(e=this.keyframeResolver)||void 0===e||e.cancel()},this.createdAt=wt.now();const f=(0,i.A)({autoplay:n,delay:r,type:o,repeat:a,repeatDelay:s,repeatType:l,name:u,motionValue:d,element:p},h),m=(null===p||void 0===p?void 0:p.KeyframeResolver)||ze;this.keyframeResolver=new m(c,((e,t,n)=>this.onKeyframesResolved(e,t,f,!n)),u,d,p),null===(t=this.keyframeResolver)||void 0===t||t.scheduleResolve()}onKeyframesResolved(e,t,n,r){var o;this.keyframeResolver=void 0;const{name:a,type:s,velocity:l,delay:c,isHandoff:u,onUpdate:d}=n;this.resolvedAt=wt.now();let p=!0;(function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=Do(o,t),s=Do(i,t);return Z(a===s,"You are trying to animate ".concat(t,' from "').concat(o,'" to "').concat(i,'". "').concat(a?i:o,'" is not an animatable value.'),"value-not-animatable"),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||ht(n))&&r)})(e,a,s,l)||(p=!1,!Ce.instantAnimations&&c||null===d||void 0===d||d(rt(e,n,t)),e[0]=e[e.length-1],Mo(n),n.repeat=0);const h=r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,f=(0,i.A)((0,i.A)({startTime:h,finalKeyframe:t},n),{},{keyframes:e}),m=p&&!u&&Bo(f),_=null===(o=f.motionValue)||void 0===o||null===(o=o.owner)||void 0===o?void 0:o.current;let g;if(m)try{g=new Oo((0,i.A)((0,i.A)({},f),{},{element:_}))}catch(Ws){g=new Po(f)}else g=new Po(f);g.finished.then((()=>{this.notifyFinished()})).catch(Se),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then((()=>{}))}get animation(){var e;this._animation||(null===(e=this.keyframeResolver)||void 0===e||e.resume(),Me=!0,Fe(),Le(),Me=!1);return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),null===(e=this.keyframeResolver)||void 0===e||e.cancel()}}const Ho={type:"spring",stiffness:500,damping:25,restSpeed:10},Wo={type:"keyframes",duration:.8},Vo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ko=(e,t)=>{let{keyframes:n}=t;return n.length>2?Wo:o.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}
2:Ho:Vo},Go=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);const Yo=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return s=>{const l=Ar(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u-=Ke(c);const d=(0,i.A)((0,i.A)({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity()},l),{},{delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:o});(function(e){for(const t in e)if(!Go.has(t))return!0;return!1})(l)||Object.assign(d,Ko(e,d)),d.duration&&(d.duration=Ke(d.duration)),d.repeatDelay&&(d.repeatDelay=Ke(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(Mo(d),0===d.delay&&(p=!0)),(Ce.instantAnimations||Ce.skipAnimations||null!==o&&void 0!==o&&o.shouldSkipAnimations)&&(p=!0,Mo(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,p&&!a&&void 0!==t.get()){const e=rt(d.keyframes,l);if(void 0!==e)return void Te.update((()=>{d.onUpdate(e),d.onComplete()}))}return l.isSync?new Po(d):new Uo(d)}},Qo=["transition","transitionEnd"];function Xo(e,t){let{protectedKeys:n,needsAnimating:r}=e;const o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}function $o(e,t){var n;let{delay:r=0,transitionOverride:o,type:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:s,transitionEnd:l}=t,c=(0,Ve.A)(t,Qo);const u=e.getDefaultTransition();s=s?Cr(s,u):u;const d=null===(n=s)||void 0===n?void 0:n.reduceMotion;o&&(s=o);const p=[],h=a&&e.animationState&&e.animationState.getState()[a];for(const m in c){var f;const t=e.getValue(m,null!==(f=e.latestValues[m])&&void 0!==f?f:null),n=c[m];if(void 0===n||h&&Xo(h,m))continue;const o=(0,i.A)({delay:r},Ar(s||{},m)),a=t.get();if(void 0!==a&&!t.isAnimating()&&!Array.isArray(n)&&n===a&&!o.velocity){Te.update((()=>t.set(n)));continue}let l=!1;if(window.MotionHandoffAnimation){const t=Nr(e);if(t){const e=window.MotionHandoffAnimation(t,m,Te);null!==e&&(o.startTime=e,l=!0)}}Pr(e,m);const u=null!==d&&void 0!==d?d:e.shouldReduceMotion;t.start(Yo(m,t,n,u&&G.has(m)?{type:!1}:o,e,l));const _=t.animation;_&&p.push(_)}if(l){const t=()=>Te.update((()=>{l&&function(e,t){let n=kr(e,t)||{},{transitionEnd:r={},transition:o={}}=n,a=(0,Ve.A)(n,jr);a=(0,i.A)((0,i.A)({},a),r);for(const i in a)Tr(e,i,(s=a[i],Er(s)?s[s.length-1]||0:s));var s}(e,l)}));p.length?Promise.all(p).then(t):t()}return p}function Jo(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const i=Array.from(e).sort(((e,t)=>e.sortNodePosition(t))).indexOf(t),a=e.size,s=(a-1)*r;return"function"===typeof n?n(i,a):1===o?i*r:s-i*r}function Zo(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=kr(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(a=r.transitionOverride);const s=o?()=>Promise.all($o(e,o,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:o=0,staggerChildren:s,staggerDirection:l}=a;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=arguments.length>6?arguments[6]:void 0;const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(Zo(c,t,(0,i.A)((0,i.A)({},s),{},{delay:n+("function"===typeof r?0:r)+Jo(e.variantChildren,c,r,o,a)})).then((()=>c.notify("AnimationComplete",t))));return Promise.all(l)}(e,t,n,o,s,l,r)}:()=>Promise.resolve(),{when:c}=a;if(c){const[e,t]="beforeChildren"===c?[s,l]:[l,s];return e().then((()=>t()))}return Promise.all([s(),l(r.delay)])}const ei=Nt.length;function ti(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&ti(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<ei;n++){const r=Nt[n],o=e.props[r];(Tt(o)||!1===o)&&(t[r]=o)}return t}function ni(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const ri=["transition","transitionEnd"],oi=[...Pt].reverse(),ii=Pt.length;function ai(e){return t=>Promise.all(t.map((t=>{let{animation:n,options:r}=t;return function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Zo(e,t,r)));n=Promise.all(o)}else if("string"===typeof t)n=Zo(e,t,r);else{const o="function"===typeof t?kr(e,t,r.custom):t;n=Promise.all($o(e,o,r))}return n.then((()=>
2{e.notify("AnimationComplete",t)}))}(e,n,r)})))}function si(e){let t=ai(e),n=ui(),r=!0,o=!1;const a=t=>(n,r)=>{var o;const a=kr(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(a){const{transition:e,transitionEnd:t}=a,r=(0,Ve.A)(a,ri);n=(0,i.A)((0,i.A)((0,i.A)({},n),r),t)}return n};function s(s){const{props:l}=e,c=ti(e.parent)||{},u=[],d=new Set;let p={},h=1/0;for(let t=0;t<ii;t++){const f=oi[t],m=n[f],_=void 0!==l[f]?l[f]:c[f],g=Tt(_),v=f===s?m.isActive:null;!1===v&&(h=t);let y=_===c[f]&&_!==l[f]&&g;if(y&&(r||o)&&e.manuallyAnimateOnMount&&(y=!1),m.protectedKeys=(0,i.A)({},p),!m.isActive&&null===v||!_&&!m.prevProp||jt(_)||"boolean"===typeof _)continue;if("exit"===f&&m.isActive&&!0!==v){m.prevResolvedValues&&(p=(0,i.A)((0,i.A)({},p),m.prevResolvedValues));continue}const b=li(m.prevProp,_);let w=b||f===s&&m.isActive&&!y&&g||t>h&&g,x=!1;const k=Array.isArray(_)?_:[_];let S=k.reduce(a(f),{});!1===v&&(S={});const{prevResolvedValues:C={}}=m,A=(0,i.A)((0,i.A)({},C),S),E=t=>{w=!0,d.has(t)&&(x=!0,d.delete(t)),m.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in A){const t=S[e],n=C[e];if(p.hasOwnProperty(e))continue;let r=!1;r=Er(t)&&Er(n)?!ni(t,n):t!==n,r?void 0!==t&&null!==t?E(e):d.add(e):void 0!==t&&d.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=_,m.prevResolvedValues=S,m.isActive&&(p=(0,i.A)((0,i.A)({},p),S)),(r||o)&&e.blockInitialAnimation&&(w=!1);const j=y&&b;w&&(!j||x)&&u.push(...k.map((t=>{const n={type:f};if("string"===typeof t&&(r||o)&&!j&&e.manuallyAnimateOnMount&&e.parent){const{parent:r}=e,o=kr(r,t);if(r.enteringChildren&&o){const{delayChildren:t}=o.transition||{};n.delay=Jo(r.enteringChildren,e,t)}}return{animation:t,options:n}})))}if(d.size){const t={};if("boolean"!==typeof l.initial){const n=kr(e,Array.isArray(l.initial)?l.initial[0]:l.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!==r&&void 0!==r?r:null})),u.push({animation:t})}let f=Boolean(u.length);return!r||!1!==l.initial&&l.initial!==l.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,o=!1,f?t(u):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const i=s(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ui(),o=!0}}}function li(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!ni(t,e)}function ci(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ui(){return{animate:ci(!0),whileInView:ci(),whileHover:ci(),whileTap:ci(),whileDrag:ci(),whileFocus:ci(),exit:ci()}}const di=["transition","transitionEnd"];let pi=0;const hi={animation:{Feature:class extends xr{constructor(e){super(e),e.animationState||(e.animationState=si(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();jt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends xr{constructor(){super(...arguments),this.id=pi++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){const{initial:e,custom:t}=this.node.getProps();if("string"===typeof e){const n=kr(this.node,e,t);if(n){const{transition:e,transitionEnd:t}=n,o=(0,Ve.A)(n,di);for(const n in o){var r;null===(r=this.node.getValue(n))||void 0===r||r.jump(o[n])}}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);return void(this.isExitComplete=!1)}const o=this.node.animationState.setActive("exit",!e);t&&!e&&o.then((()=>
2{this.isExitComplete=!0,t(this.id)}))}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}},fi={x:!1,y:!1};function mi(){return fi.x||fi.y}function _i(e){return[e("x"),e("y")]}function gi(e){return e.max-e.min}function vi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;e.origin=r,e.originPoint=sn(t.min,t.max,e.origin),e.scale=gi(n)/gi(t),e.translate=sn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function yi(e,t,n,r){vi(e.x,t.x,n.x,r?r.originX:void 0),vi(e.y,t.y,n.y,r?r.originY:void 0)}function bi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=r?sn(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+gi(t)}function wi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=r?sn(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+gi(t)}function xi(e,t,n,r){wi(e.x,t.x,n.x,null===r||void 0===r?void 0:r.x),wi(e.y,t.y,n.y,null===r||void 0===r?void 0:r.y)}const ki=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const Si=new Set(["INPUT","SELECT","TEXTAREA"]);function Ci(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var Ai=n(18328);function Ei(e){return(0,Ai.G)(e)&&"ownerSVGElement"in e}function ji(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"===typeof e){var r;let o=document;t&&(o=t.current);const i=null!==(r=null===n||void 0===n?void 0:n[e])&&void 0!==r?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter((e=>null!=e))}const Ti=new WeakMap;let Pi;const Ni=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:Ei(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Ii=Ni("inline","width","offsetWidth"),Ri=Ni("block","height","offsetHeight");function Oi(e){var t;let{target:n,borderBoxSize:r}=e;null===(t=Ti.get(n))||void 0===t||t.forEach((e=>{e(n,{get width(){return Ii(n,r)},get height(){return Ri(n,r)}})}))}function Di(e){e.forEach(Oi)}function Mi(e,t){Pi||"undefined"!==typeof ResizeObserver&&(Pi=new ResizeObserver(Di));const n=ji(e);return n.forEach((e=>{var n;let r=Ti.get(e);r||(r=new Set,Ti.set(e,r)),r.add(t),null===(n=Pi)||void 0===n||n.observe(e)})),()=>{n.forEach((e=>{const n=Ti.get(e);var r;(null===n||void 0===n||n.delete(t),null!==n&&void 0!==n&&n.size)||(null===(r=Pi)||void 0===r||r.unobserve(e))}))}}const Li=new Set;let Fi;function zi(e){return Li.add(e),Fi||(Fi=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Li.forEach((t=>t(e)))},window.addEventListener("resize",Fi)),()=>{Li.delete(e),Li.size||"function"!==typeof Fi||(window.removeEventListener("resize",Fi),Fi=void 0)}}function Bi(e,t){return"function"===typeof e?zi(e):Mi(e,t)}const qi=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary;function Ui(e){return{point:{x:e.pageX,y:e.pageY}}}function Hi(e,t,n,r){return Ci(e,t,(e=>t=>qi(t)&&e(t,Ui(t)))(n),r)}const Wi=e=>{let{current:t}=e;return t?t.ownerDocument.defaultView:null},Vi=(e,t)=>Math.abs(e-t);const Ki=new Set(["auto","scroll"]);class Gi{constructor(e,t){let{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:a=3,element:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Yi(this.lastRawMoveEventInfo,this.transformPagePoint));const e=Xi(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Vi(e.x,t.x),r=Vi(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Ne;this.history.push((0,i.A)((0,i.A)({},r),{},{timestamp:o}));const{onStart:a,onMove:s}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>
2{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Yi(t,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Xi("pointercancel"===e.type?this.lastMoveEventInfo:Yi(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!qi(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;const l=Yi(Ui(e),this.transformPagePoint),{point:c}=l,{timestamp:u}=Ne;this.history=[(0,i.A)((0,i.A)({},c),{},{timestamp:u})];const{onSessionStart:d}=t;d&&d(e,Xi(l,this.history)),this.removeListeners=Rr(Hi(this.contextWindow,"pointermove",this.handlePointerMove),Hi(this.contextWindow,"pointerup",this.handlePointerUp),Hi(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){const e=getComputedStyle(t);(Ki.has(e.overflowX)||Ki.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o=r.x-t.x,i=r.y-t.y;0===o&&0===i||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o,this.lastMoveEventInfo.point.y+=i):this.history.length>0&&(this.history[0].x-=o,this.history[0].y-=i),this.scrollPositions.set(e,r),Te.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Pe(this.updatePoint)}}function Yi(e,t){return t?{point:t(e.point)}:e}function Qi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xi(e,t){let{point:n}=e;return{point:n,delta:Qi(n,Ji(t)),offset:Qi(n,$i(t)),velocity:Zi(t,.1)}}function $i(e){return e[0]}function Ji(e){return e[e.length-1]}function Zi(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ji(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ke(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>2*Ke(t)&&(r=e[1]);const i=Ge(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ea(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ta(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const na=.35;function ra(e,t,n){return{min:oa(e,t),max:oa(e,n)}}function oa(e,t){return"number"===typeof e?e:e[t]||0}const ia=new WeakMap;class aa{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e){let{snapToCursor:t=!1,distanceThreshold:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new Gi(e,{onSessionStart:e=>{t&&this.snapToCursor(Ui(e).point),this.stopAnimation()},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?fi[i]?null:(fi[i]=!0,()=>{fi[i]=!1}):fi.x||fi.y?null:(fi.x=fi.y=!0,()=>{fi.x=fi.y=!1}),!this.openDragLock))return;var i;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_i((e=>{let t=this.getAxisMotionValue(e).get()||0;if(b.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=gi(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Te.update((()=>o(e,t)),!1,!0),Pr(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>
2{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&Te.update((()=>i(e,t)),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{const{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:Wi(this.visualElement),element:this.visualElement.current})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Te.postRender((()=>a(n,r)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!la(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,t,n){let{min:r,max:o}=t;return void 0!==r&&e<r?e=n?sn(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?sn(o,e,n.max):Math.min(e,o)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&mr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,t){let{top:n,left:r,bottom:o,right:i}=t;return{x:ea(e.x,r,i),y:ea(e.y,n,o)}}(r.layoutBox,t),this.elastic=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:na;return!1===e?e=0:!0===e&&(e=na),{x:ra(e,"left","right"),y:ra(e,"top","bottom")}}(n),o!==this.constraints&&!mr(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&_i((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!mr(e))return!1;const n=e.current;ee(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Pn(e,n),{scroll:o}=t;return o&&(An(r.x,o.offset.x),An(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:ta(e.x,t.x),y:ta(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function(e){let{x:t,y:n}=e;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=fn(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=_i((s=>{if(!la(s,t,this.currentDirection))return;let c=l&&l[s]||{};!0!==a&&a!==s||(c={min:0,max:0});const u=r?200:1e6,d=r?40:1e7,p=(0,i.A)((0,i.A)({type:"inertia",velocity:n?e[s]:0,bounceStiffness:u,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),c);return this.startAxisValueAnimation(s,p)}));return Promise.all(c).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Pr(this.visualElement,e),n.start(Yo(e,n,0,t,this.visualElement,!1))}stopAnimation(){_i((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag".concat(e.toUpperCase()),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){_i((t=>{const{drag:n}=this.getProps();if(!la(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t],a=o.get()||0;o.set(e[t]-sn(n,i,.5)+a)}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!mr(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};_i((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=gi(e),o=gi(t);return o>r?n=ko(t.min,t.max-r,e.min):r>o&&(n=ko(e.min,e.max-o,t.min)),a(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),_i((t=>{if(!la(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(sn(o,i,r[t]))})),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;ia.set(this.visualElement,this);const e=this.visualElement.current,t=Hi(e,"pointerdown",(t=>{const{drag:n,dragListener:r=!0}=this.getProps(),o=t.target,i=o!==e&&function(e){return Si.has(e.tagName)||!0===e.isContentEditable}(o);n&&r&&!i&&this.start(t)}));let n;const r=()=>{const{dragConstraints:t}=this.getProps();mr(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||(n=function(e,t,n){const r=Bi(e,sa(n)),o=Bi(t,sa(n));return()=>{r(),o()}}(e,t.current,(()=>this.scalePositionWithinConstraints()))))},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Te.read(r);const a=Ci(window,"resize",(()=>this.scalePositionWithinConstraints())),s=o.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n}=e;this.isDragging&&n&&(_i((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{a(),t(),i(),s&&s(),n&&n()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:a=na,dragMomentum:s=!0}=e;return(0,i.A)((0,i.A)({},e),{},{drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:a,dragMomentum:s})}}function sa(e){let t=!0;return()=>{t?t=!1:e()}}function la(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}const ca=e=>(t,n)=>{e&&Te.update((()=>e(t,n)),!1,!0)};const ua={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var da=n(28917);let pa=!1;class ha extends In.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),pa&&o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions((0,i.A)((0,i.A)({},o.options),{},{layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()}))),ua.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,{projection:a}=n;return a?(a.isPresent=o,e.layoutDependency!==t&&a.setOptions((0,i.A)((0,i.A)({},a.options),{},{layoutDependency:t})),pa=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==o?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Te.postRender((()=>{const e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),gt.postRender((()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;pa=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function fa(e){const[t,n]=(0,da.xQ)(),r=(0,In.useContext)(Ln.L);return(0,Mn.jsx)(ha,(0,i.A)((0,i.A)({},e),{},{layoutGroup:r,switchLayoutGroup:(0,In.useContext)(fr),isPresent:t,safeToRemove:n}))}function ma(e,t){const n=wt.now(),r=o=>{let{timestamp:i}=o;const a=i-n;a>=t&&(Pe(r),e(a-t))};return Te.setup(r,!0),()=>Pe(r)}const _a=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],ga=_a.length,va=e=>"string"===typeof e?parseFloat(e):e,ya=e=>"number"===typeof e||w.test(e);function ba(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const wa=ka(0,.5,yo),xa=ka(.5,.95,Se);function ka(e,t,n){return r=>r<e?0:r>t?1:n(ko(e,t,r))}function Sa(e,t){e.min=t.min,e.max=t.max}function Ca(e,t){Sa(e.x,t.x),Sa(e.y,t.y)}function Aa(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ea(e,t,n,r,o){return e=bn(e-=t,1/n,r),void 0!==o&&(e=bn(e,1/o,r)),e}function ja(e,t,n,r,o){let[i,a,s]=n;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;b.test(t)&&(t=parseFloat(t),t=sn(a.min,a.max,t/100)-a.min);if("number"!==typeof t)return;let s=sn(i.min,i.max,r);e===i&&(s-=t),e.min=Ea(e.min,t,n,s,o),e.max=Ea(e.max,t,n,s,o)}(e,t[i],t[a],t[s],t.scale,r,o)}const Ta=["x","scaleX","originX"],Pa=["y","scaleY","originY"];function Na(e,t,n,r){ja(e.x,t,Ta,n?n.x:void 0,r?r.x:void 0),ja(e.y,t,Pa,n?n.y:void 0,r?r.y:void 0)}function Ia(e){return 0===e.translate&&1===e.scale}function Ra(e){return Ia(e.x)&&Ia(e.y)}function Oa(e,t){return e.min===t.min&&e.max===t.max}function Da(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ma(e,t){return Da(e.x,t.x)&&Da(e.y,t.y)}function La(e){return gi(e.x)/gi(e.y)}function Fa(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class za{constructor(){this.members=[]}add(e){Ye(this.members,e);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;const r=n.instance;r&&!1!==r.isConnected||n.snapshot||(Qe(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Qe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){var t;const e=this.members[n];if(!1!==e.isPresent&&!1!==(null===(t=e.instance)||void 0===t?void 0:t.isConnected))return this.promote(e),!0}return!1}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();const{layoutDependency:o}=n.options,{layoutDependency:i}=e.options;var r;if(void 0===o||o!==i)e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),null!==(r=e.root)&&void 0!==r&&r.isUpdating&&(e.isLayoutDirty=!0);!1===e.options.crossfade&&n.hide()}}
2exitAnimationComplete(){this.members.forEach((e=>{var t,n,r,o,i;null===(t=(n=e.options).onExitComplete)||void 0===t||t.call(n),null===(r=e.resumingFrom)||void 0===r||null===(o=(i=r.options).onExitComplete)||void 0===o||o.call(i)}))}scheduleRender(){this.members.forEach((e=>e.instance&&e.scheduleRender(!1)))}removeLeadSnapshot(){var e;null!==(e=this.lead)&&void 0!==e&&e.snapshot&&(this.lead.snapshot=void 0)}}const Ba=(e,t)=>e.depth-t.depth;class qa{constructor(){this.children=[],this.isDirty=!1}add(e){Ye(this.children,e),this.isDirty=!0}remove(e){Qe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ba),this.isDirty=!1,this.children.forEach(e)}}const Ua={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Ha=["","X","Y","Z"];let Wa=0;function Va(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ka(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Nr(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Te,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ka(r)}function Ga(e){let{attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:o,resetTransform:s}=e;return class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=Wa++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ee.value&&(Ua.nodes=Ua.calculatedTargetDeltas=Ua.calculatedProjections=0),this.nodes.forEach(Xa),this.nodes.forEach(is),this.nodes.forEach(as),this.nodes.forEach($a),Ee.addProjectionMetrics&&Ee.addProjectionMetrics(Ua)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=t?t.root||t:this,this.path=t?[...t.path,t]:[],this.parent=t,this.depth=t?t.depth+1:0;for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new qa)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Xe),this.eventHandlers.get(e).add(t)}notifyListeners(e){const t=this.eventHandlers.get(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t&&t.notify(...r)}hasListeners(e){return this.eventHandlers.has(e)}mount(e){if(this.instance)return;var n;this.isSVG=Ei(e)&&!(Ei(n=e)&&"svg"===n.tagName),this.instance=e;const{layoutId:r,layout:o,visualElement:a}=this.options;if(a&&!a.current&&a.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||r)&&(this.isLayoutDirty=!0),t){let n,r=0;const o=()=>this.root.updateBlockedByResize=!1;Te.read((()=>{r=window.innerWidth})),t(e,(()=>{const e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=ma(o,250),ua.hasAnimatedSinceResize&&(ua.hasAnimatedSinceResize=!1,this.nodes.forEach(os)))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&a&&(r||o)&&this.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n,hasRelativeLayoutChanged:r,layout:o}=e;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||a.getDefaultTransition()||ps,{onLayoutAnimationStart:l,onLayoutAnimationComplete:c}=a.getProps(),u=!this.targetLayout||!Ma(this.targetLayout,o),d=!n&&r;if(this.options.layoutRoot||this.resumeFrom||d||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e=(0,i.A)((0,i.A)({},Ar(s,"layout")),{},{onPlay:l,onComplete:c});(a.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,d)}else n||os(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Pe(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
2h(ss),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ka(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o<this.path.length;o++){const e=this.path[o];e.shouldResetTransform=!0,"string"!==typeof e.latestValues.x&&"string"!==typeof e.latestValues.y||(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked()){const e=this.updateBlockedByResize;return this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(es),void this.nodes.forEach(Za)}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(ts);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ns),this.nodes.forEach(rs),this.nodes.forEach(Ya),this.nodes.forEach(Qa)):this.nodes.forEach(ts),this.clearAllSnapshots();const e=wt.now();Ne.delta=a(0,1e3/60,e-Ne.timestamp),Ne.timestamp=e,Ne.isProcessing=!0,Ie.update.process(Ne),Ie.preRender.process(Ne),Ie.render.process(Ne),Ne.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ja),this.sharedNodes.forEach(ls)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Te.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||gi(this.snapshot.measuredBox.x)||gi(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}}),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=o(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!s)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Ra(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||gn(this.latestValues)||o)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),ms((r=n).x),ms(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(gs))){const{scroll:e}=this.root;e&&(An(n.x,e.offset.x),An(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(Ca(n,e),null!==(t=this.scroll)&&void 0!==t&&t.wasRoot)return n;for(let r=0;r<this.path.length;r++){const t=this.path[r],{scroll:o,options:i}=t;t!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&Ca(n,e),An(n.x,o.offset.x),An(n.y,o.offset.y))}return n}applyTransform(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(arguments.length>2?arguments[2]:void 0)||{x:{min:0,max:0},y:{min:0,max:0}};Ca(n,e);for(let i=0;i<this.path.length;i++){var r;const e=this.path[i];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&(An(n.x,-e.scroll.offset.x),An(n.y,-e.scroll.offset.y)),gn(e.latestValues)&&Tn(n,e.latestValues,null===(r=e.layout)||void 0===r?void 0:r.layoutBox)}var o;gn(this.latestValues)&&Tn(n,this.latestValues,null===(o=this.layout)||void 0===o?void 0:o.layoutBox);return n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Ca(t,e);for(let r=0;r<this.path.length;r++){var n;const e=this.path[r];if(!gn(e.latestValues))continue;let o;e.instance&&(_n(e.latestValues)&&e.updateSnapshot(),o={x:{min:0,max:0},y:{min:0,max:0}},Ca(o,e.measurePageBox())),Na(t,e.latestValues,null===(n=e.snapshot)||void 0===n?void 0:n.layoutBox,o)}return gn(this.latestValues)&&Na(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options=(0,i.A)((0,i.A)((0,i.A)({},this.options),e),{},{crossfade:void 0===e.crossfade||e.crossfade})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ne.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
2haredProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||null!==(e=this.parent)&&void 0!==e&&e.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(!this.layout||!o&&!i)return;this.resolvedRelativeTargetAt=Ne.timestamp;const a=this.getClosestProjectingParent();var s,l,c,u;(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,l=this.relativeTarget,c=this.relativeParent.target,u=this.options.layoutAnchor||void 0,bi(s.x,l.x,c.x,null===u||void 0===u?void 0:u.x),bi(s.y,l.y,c.y,null===u||void 0===u?void 0:u.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.applyTransform(this.layout.layoutBox,!1,this.target):Ca(this.target,this.layout.layoutBox),kn(this.target,this.targetDelta)):Ca(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&Boolean(a.resumingFrom)===Boolean(this.resumingFrom)&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Ee.value&&Ua.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!_n(this.parent.latestValues)&&!vn(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},xi(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Ca(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||null!==(e=this.parent)&&void 0!==e&&e.isProjectionDirty)&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Ne.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Ca(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let l=0;l<o;l++){i=n[l],a=i.projectionDelta;const{visualElement:o}=i.options;var s;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(An(e.x,-i.scroll.offset.x),An(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,kn(e,a)),r&&gn(i.latestValues)&&Tn(e,i.latestValues,null===(s=i.layout)||void 0===s?void 0:s.layoutBox))}t.x<Cn&&t.x>Sn&&(t.x=1),t.y<Cn&&t.y>Sn&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(Aa(this.prevProjectionDelta.x,this.projectionDelta.x),Aa(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),yi(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&Fa(this.projectionDelta.x,this.prevProjectionDelta.x)&&Fa(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Ee.value&&Ua.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var e;let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,r=n?n.latestValues:{},o=(0,i.A)({},this.latestValues),a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,d=Boolean(l&&!u&&!0===this.options.crossfade&&!this.path.some(ds));let p;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var i,c,h,f,m,_;cs(a.x,e.x,n),cs(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xi(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),h=this.relativeTarget,f=this.relativeTargetOrigin,m=s,_=n,us(h.x,f.x,m.x,_),us(h.y,f.y,m.y,_),p&&(i=this.relativeTarget,c=p,Oa(i.x,c.x)&&Oa(i.y,c.y))&&(this.isProjectionDirty=!1),p||(p={x:{min:0,max:0},y:{min:0,max:0}}),Ca(p,this.relativeTarget)),l&&(this.animationValues=o,function(e,t,n,r,o,i){var a,s;if(o)e.opacity=sn(0,null!==(a=n.opacity)&&void 0!==a?a:1,wa(r)),e.opacityExit=sn(null!==(s=t.opacity)&&void 0!==s?s:1,0,xa(r));else if(i){var l,c;e.opacity=sn(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=n.opacity)&&void 0!==c?c:1,r)}for(let u=0;u<ga;u++){const o=_a[u];let i=ba(t,o),a=ba(n,o);void 0===i&&void 0===a||(i||(i=0),a||(a=0),0===i||0===a||ya(i)===ya(a)?(e[o]=Math.max(sn(va(i),va(a),r),0),(b.test(a)||b.test(i))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=sn(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){var t,n;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),null===(n=this.resumingFrom)||void 0===n||null===(n=n.currentAnimation)||void 0===n||n.stop(),this.pendingAnimation&&(Pe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update((()=>{ua.hasAnimatedSinceResize=!0,it.layout++,this.motionValue||(this.motionValue=Ct(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){const r=K(e)?e:Ct(e);return r.start(Yo("",r,t,n)),r.animation}
2(this.motionValue,[0,1e3],(0,i.A)((0,i.A)({},e),{},{velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{it.layout--},onComplete:()=>{it.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&_s(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=gi(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=gi(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Ca(t,n),Tn(t,o),yi(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new za);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote(){let{needsReset:e,transition:t,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&Va("z",e,r,this.animationValues);for(let o=0;o<Ha.length;o++)Va("rotate".concat(Ha[o]),e,r,this.animationValues),Va("skew".concat(Ha[o]),e,r,this.animationValues);e.render();for(const o in r)e.setStaticValue(o,r[o]),this.animationValues&&(this.animationValues[o]=r[o]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=er(null===t||void 0===t?void 0:t.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=er(null===t||void 0===t?void 0:t.pointerEvents)||""),void(this.hasProjected&&!gn(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const o=r.animationValues||r.latestValues;this.applyTransformsToTarget();let i=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null===n||void 0===n?void 0:n.z)||0;if((o||i||a)&&(r="translate3d(".concat(o,"px, ").concat(i,"px, ").concat(a,"px) ")),1===t.x&&1===t.y||(r+="scale(".concat(1/t.x,", ").concat(1/t.y,") ")),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=n;e&&(r="perspective(".concat(e,"px) ").concat(r)),t&&(r+="rotate(".concat(t,"deg) ")),o&&(r+="rotateX(".concat(o,"deg) ")),i&&(r+="rotateY(".concat(i,"deg) ")),a&&(r+="skewX(".concat(a,"deg) ")),s&&(r+="skewY(".concat(s,"deg) "))}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+="scale(".concat(s,", ").concat(l,")")),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);n&&(i=n(o,i)),e.transform=i;const{x:a,y:s}=this.projectionDelta;var l,c;(e.transformOrigin="".concat(100*a.origin,"% ").concat(100*s.origin,"% 0"),r.animationValues)?e.opacity=r===this?null!==(l=null!==(c=o.opacity)&&void 0!==c?c:this.latestValues.opacity)&&void 0!==l?l:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:e.opacity=r===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const u in cn){if(void 0===o[u])continue;const{correct:t,applyTo:n,isCSSVariable:a}=cn[u],s="none"===i?o[u]:t(o[u],r);if(n){const t=n.length;for(let r=0;r<t;r++)e[n[r]]=s}
2else a?this.options.visualElement.renderState.vars[u]=s:e[u]=s}this.options.layoutId&&(e.pointerEvents=r===this?er(null===t||void 0===t?void 0:t.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Za),this.root.sharedNodes.clear()}}}function Ya(e){e.updateLayout()}function Qa(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;if("size"===o)_i((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=gi(r);r.min=t[e].min,r.max=r.min+o}));else if("x"===o||"y"===o){const e="x"===o?"y":"x";Sa(i?n.measuredBox[e]:n.layoutBox[e],t[e])}else _s(o,n.layoutBox,t)&&_i((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=gi(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};yi(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?yi(s,e.applyTransform(r,!0),n.measuredBox):yi(s,t,n.layoutBox);const l=!Ra(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=e.options.layoutAnchor||void 0,s={x:{min:0,max:0},y:{min:0,max:0}};xi(s,n.layoutBox,o.layoutBox,a);const l={x:{min:0,max:0},y:{min:0,max:0}};xi(l,t,i.layoutBox,a),Ma(s,l)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Xa(e){Ee.value&&Ua.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function $a(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ja(e){e.clearSnapshot()}function Za(e){e.clearMeasurements()}function es(e){e.isLayoutDirty=!0,e.updateLayout()}function ts(e){e.isLayoutDirty=!1}function ns(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function rs(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function os(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function is(e){e.resolveTargetDelta()}function as(e){e.calcProjection()}function ss(e){e.resetSkewAndRotation()}function ls(e){e.removeLeadSnapshot()}function cs(e,t,n){e.translate=sn(t.translate,0,n),e.scale=sn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function us(e,t,n,r){e.min=sn(t.min,n.min,r),e.max=sn(t.max,n.max,r)}function ds(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ps={duration:.45,ease:[.4,0,.1,1]},hs=e=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fs=hs("applewebkit/")&&!hs("chrome/")?Math.round:Se;function ms(e){e.min=fs(e.min),e.max=fs(e.max)}
2function _s(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=La(t),o=La(n),i=.2,!(Math.abs(r-o)<=i));var r,o,i}function gs(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const vs=Ga({attachResizeListener:(e,t)=>Ci(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||(null===(e=document.body)||void 0===e?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||(null===(t=document.body)||void 0===t?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),ys={current:void 0},bs=Ga({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ys.current){const e=new vs({});e.mount(window),e.setOptions({layoutScroll:!0}),ys.current=e}return ys.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ws={pan:{Feature:class extends xr{constructor(){super(...arguments),this.removePointerDownListener=Se}onPointerDown(e){this.session=new Gi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ca(e),onStart:ca(t),onMove:ca(n),onEnd:(e,t)=>{delete this.session,r&&Te.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Hi(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends xr{constructor(e){super(e),this.removeGroupControls=Se,this.removeListeners=Se,this.controls=new aa(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Se}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:bs,MeasureLayout:fa}};function xs(e,t){const n=ji(e),r=new AbortController;return[n,(0,i.A)((0,i.A)({passive:!0},t),{},{signal:r.signal}),()=>r.abort()]}function ks(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o,i]=xs(e,n);return r.forEach((e=>{let n,r=!1,i=!1;const a=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},s=e=>{r=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),i&&(i=!1,a(e))},l=e=>{"touch"!==e.pointerType&&(r?i=!0:a(e))};e.addEventListener("pointerenter",(r=>{if("touch"===r.pointerType||mi())return;i=!1;const a=t(e,r);"function"===typeof a&&(n=a,e.addEventListener("pointerleave",l,o))}),o),e.addEventListener("pointerdown",(()=>{r=!0,window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",s,o)}),o)})),i}function Ss(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&Te.postRender((()=>o(t,Ui(t))))}var Cs=n(8676);const As=(e,t)=>!!t&&(e===t||As(e,t.parentElement)),Es=new WeakSet;function js(e){return t=>{"Enter"===t.key&&e(t)}}function Ts(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Ps(e){return qi(e)&&!mi()}const Ns=new WeakSet;function Is(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o,i]=xs(e,n),a=e=>{const r=e.currentTarget;if(!Ps(e))return;if(Ns.has(e))return;Es.add(r),n.stopPropagation&&Ns.add(e);const i=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),Es.has(r)&&Es.delete(r),Ps(e)&&"function"===typeof i&&i(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||As(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),(0,Cs.s)(e)&&(e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=js((()=>
2{if(Es.has(n))return;Ts(n,"down");const e=js((()=>{Ts(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>Ts(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o))),t=e,ki.has(t.tagName)||!0===t.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))})),i}function Rs(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&Te.postRender((()=>o(t,Ui(t))))}const Os=["root"],Ds=new WeakMap,Ms=new WeakMap,Ls=e=>{const t=Ds.get(e.target);t&&t(e)},Fs=e=>{e.forEach(Ls)};function zs(e,t,n){const r=function(e){let{root:t}=e,n=(0,Ve.A)(e,Os);const r=t||document;Ms.has(r)||Ms.set(r,{});const o=Ms.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(Fs,(0,i.A)({root:t},n))),o[a]}(t);return Ds.set(e,n),r.observe(e),()=>{Ds.delete(e),r.unobserve(e)}}const Bs={some:0,all:1};const qs={inView:{Feature:class extends xr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;null===(e=this.stopObserver)||void 0===e||e.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:"number"===typeof o?o:Bs[o]};this.stopObserver=zs(this.node.current,a,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==n[e]}(e,t));n&&this.startObserver()}unmount(){var e;null===(e=this.stopObserver)||void 0===e||e.call(this),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends xr{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Is(e,((e,t)=>(Rs(this.node,t,"Start"),(e,t)=>{let{success:n}=t;return Rs(this.node,e,n?"End":"Cancel")})),{useGlobalTarget:t,stopPropagation:!1===(null===n||void 0===n?void 0:n.tap)})}unmount(){}}},focus:{Feature:class extends xr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Rr(Ci(this.node.current,"focus",(()=>this.onFocus())),Ci(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends xr{mount(){const{current:e}=this.node;e&&(this.unmount=ks(e,((e,t)=>(Ss(this.node,t,"Start"),e=>Ss(this.node,e,"End")))))}unmount(){}}}},Us={layout:{ProjectionNode:bs,MeasureLayout:fa}},Hs=wr((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},hi),qs),ws),Us),Dn)},96614:(e,t,n)=>{var r=n(78420),o=n(71775);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},96996:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},97004:(e,t,n)=>{"use strict";var r=n(78853),o=n(65043),i=n(97950);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function c(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function u(e){if(l(e)!==e)throw Error(a(188))}function d(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=d(e)))return t;e=e.sibling}return null}var p=Object.assign,h=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),b=Symbol.for("react.consumer"),w=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope");var E=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var j=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var T=Symbol.iterator;function P(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=T&&e[T]||e["@@iterator"])?e:null}var N=Symbol.for("react.client.reference");function I(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===N?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case v:return"Profiler";case g:return"StrictMode";case k:return"Suspense";case S:return"SuspenseList";case E:return"Activity"}if("object"===typeof e)switch(e.$$typeof){case m:return"Portal";case w:return(e.displayName||"Context")+".Provider";case b:return(e._context.displayName||"Context")+".Consumer";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:I(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return I(e(t))}catch(n){}}return null}var R=Array.isArray,O=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M={pending:!1,data:null,method:null,action:null},L=[],F=-1;function z(e){return{current:e}}function B(e){0>F||(e.current=L[F],L[F]=null,F--)}function q(e,t){F++,L[F]=e.current,e.current=t}var U=z(null),H=z(null),W=z(null),V=z(null);function K(e,t){switch(q(W,t),q(H,e),q(U,null),t.nodeType){case 9:case 11:e=(e
vendor: 4,567 bytes, line 2
2=t.documentElement)&&(e=e.namespaceURI)?od(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=id(t=od(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(U),q(U,e)}function G(){B(U),B(H),B(W)}function Y(e){null!==e.memoizedState&&q(V,e);var t=U.current,n=id(t,e.type);t!==n&&(q(H,e),q(U,n))}function Q(e){H.current===e&&(B(U),B(H)),V.current===e&&(B(V),Yd._currentValue=M)}var X=Object.prototype.hasOwnProperty,$=r.unstable_scheduleCallback,J=r.unstable_cancelCallback,Z=r.unstable_shouldYield,ee=r.unstable_requestPaint,te=r.unstable_now,ne=r.unstable_getCurrentPriorityLevel,re=r.unstable_ImmediatePriority,oe=r.unstable_UserBlockingPriority,ie=r.unstable_NormalPriority,ae=r.unstable_LowPriority,se=r.unstable_IdlePriority,le=r.log,ce=r.unstable_setDisableYieldValue,ue=null,de=null;function pe(e){if("function"===typeof le&&ce(e),de&&"function"===typeof de.setStrictMode)try{de.setStrictMode(ue,e)}catch(t){}}var he=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(fe(e)/me|0)|0},fe=Math.log,me=Math.LN2;var _e=256,ge=4194304;function ve(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194048&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ye(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=ve(r):0!==(a&=s)?o=ve(a):n||0!==(n=s&~e)&&(o=ve(n)):0!==(s=r&~i)?o=ve(s):0!==a?o=ve(a):n||0!==(n=r&~e)&&(o=ve(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&0!==(4194048&n))?t:o}function be(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function we(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function xe(){var e=_e;return 0===(4194048&(_e<<=1))&&(_e=256),e}function ke(){var e=ge;return 0===(62914560&(ge<<=1))&&(ge=4194304),e}function Se(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ce(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ae(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-he(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194090&n}function Ee(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-he(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function je(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Te(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Pe(){var e=D.p;return 0!==e?e:void 0===(e=window.event)?32:cp(e.type)}var Ne=Math.random().toString(36).slice(2),Ie="__reactFiber$"+Ne,Re="__reactProps$"+Ne,Oe="__reactContainer$"+Ne,De="__reactEvents$"+Ne,Me="__reactListeners$"+Ne,Le="__reactHandles$"+Ne,Fe="__reactResources$"+Ne,ze="__reactMarker$"+Ne;function Be(e){delete e[Ie],delete e[Re],delete e[De],delete e[Me],delete e[Le]}function qe(e){var t=e[Ie];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Oe]||n[Ie]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=yd(e);null!==e;){if(n=e[Ie])return n;e=yd(e)}return t}n=(e=n).parentNode}return null}function Ue(e){if(e=e[Ie]||e[Oe]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function He(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(a(33))}function We(e){var t=e[Fe];return t||(t=e[Fe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ve(e){e[ze]=!0}var Ke=new Set,Ge={};function Ye(e,t){Qe(e,t),Qe(e+"Capture",t)}function Qe(e,t){for(Ge[e]=t,e=0;e<t.length;e++)Ke.add(t[e])}var Xe,$e,Je=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
2037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ze={},et={};function tt(e,t,n){if(o=t,X.call(et,o)||!X.call(Ze,o)&&(Je.test(o)?et[o]=!0:(Ze[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function nt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function rt(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ot(e){if(void 0===Xe)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xe=t&&t[1]||"",$e=-1<n.stack.indexOf("\n    at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Xe+e+$e}var it=!1;function at(e,t){if(!e||it)return"";it=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(o){var r=o}Reflect.construct(e,[],n)}
2else{try{n.call()}catch(i){r=i}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"===typeof n.catch&&n.catch((function(){}))}}catch(s){if(s&&r&&"string"===typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),c=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===c.length)for(r=l.length-1,o=c.length-1;1<=r&&0<=o&&l[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==c[o]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{it=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ot(n):""}function st(e){switch(e.tag){case 26:case 27:case 5:return ot(e.type);case 16:return ot("Lazy");case 13:return ot("Suspense");case 19:return ot("SuspenseList");case 0:case 15:return at(e.type,!1);case 11:return at(e.type.render,!1);case 1:return at(e.type,!0);case 31:return ot("Activity");default:return""}}function lt(e){try{var t="";do{t+=st(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ut(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function dt(e){e._valueTracker||(e._valueTracker=function(e){var t=ut(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ut(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ht(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var ft=/[\n"\\]/g;function mt(e){return e.replace(ft,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function _t(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ct(t)):e.value!==""+ct(t)&&(e.value=""+ct(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?vt(e,a,ct(t)):null!=n?vt(e,a,ct(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!==typeof o&&"symbol"!==typeof o),null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s?e.name=""+ct(s):e.removeAttribute("name")}function gt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i&&(e.type=i),null!=t||null!=n){if(!("submit"!==i&&"reset"!==i||void 0!==t&&null!==t))return;n=null!=n?""+ct(n):"",t=null!=t?""+ct(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!==typeof(r=null!=r?r:o)&&"symbol"!==typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a&&(e.name=a)}function vt(e,t,n){"number"===t&&ht(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function yt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ct(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function bt(e,t,n){null==t||((t=""+ct(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ct(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function wt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(a(92));if(R(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ct(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function xt(e,t){if(t){var n=e.firstChild;
2if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var kt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function St(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!==typeof n||0===n||kt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ct(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(a(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&St(e,o,r)}else for(var i in t)t.hasOwnProperty(i)&&St(e,i,t[i])}function At(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Et=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
2-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Tt(e){return jt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Pt=null;function Nt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var It=null,Rt=null;function Ot(e){var t=Ue(e);if(t&&(e=t.stateNode)){var n=e[Re]||null;e:switch(e=t.stateNode,t.type){case"input":if(_t(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+mt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[Re]||null;if(!o)throw Error(a(90));_t(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&pt(r)}break e;case"textarea":bt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&yt(e,!!n.multiple,t,!1)}}}var Dt=!1;function Mt(e,t,n){if(Dt)return e(t,n);Dt=!0;try{return e(t)}finally{if(Dt=!1,(null!==It||null!==Rt)&&(qc(),It&&(t=It,e=Rt,Rt=It=null,Ot(t),e)))for(t=0;t<e.length;t++)Ot(e[t])}}function Lt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Re]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ft=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),zt=!1;if(Ft)try{var Bt={};Object.defineProperty(Bt,"passive",{get:function(){zt=!0}}),window.addEventListener("test",Bt,Bt),window.removeEventListener("test",Bt,Bt)}catch(Rp){zt=!1}var qt=null,Ut=null,Ht=null;function Wt(){if(Ht)return Ht;var e,t,n=Ut,r=n.length,o="value"in qt?qt.value:qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Ht=o.slice(e,1<t?1-t:void 0)}function Vt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Kt(){return!0}function Gt(){return!1}function Yt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Kt:Gt,this.isPropagationStopped=Gt,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kt)},persist:function(){},isPersistent:Kt}),t}var Qt,Xt,$t,Jt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zt=Yt(Jt),en=p({},Jt,{view:0,detail:0}),tn=Yt(en),nn=p({},en,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,404 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$t&&($t&&"mousemove"===e.type?(Qt=e.screenX-$t.screenX,Xt=e.screenY-$t.screenY):Xt=Qt=0,$t=e),Qt)},movementY:function(e){return"movementY"in e?e.movementY:Xt}}),rn=Yt(nn),on=Yt(p({},nn,{dataTransfer:0})),an=Yt(p({},en,{relatedTarget:0})),sn=Yt(p({},Jt,{animationName:0,elapsedTime:0,pseudoElement:0})),ln=Yt(p({},Jt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),cn=Yt(p({},Jt,{data:0})),un={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},pn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=pn[e])&&!!t[e]}function fn(){return hn}var mn=Yt(p({},en,{key:function(e){if(e.key){var t=un[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Vt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?dn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fn,charCode:function(e){return"keypress"===e.type?Vt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Vt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),_n=Yt(p({},nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),gn=Yt(p({},en,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fn})),vn=Yt(p({},Jt,{propertyName:0,elapsedTime:0,pseudoElement:0})),yn=Yt(p({},nn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),bn=Yt(p({},Jt,{newState:0,oldState:0})),wn=[9,13,27,32],xn=Ft&&"CompositionEvent"in window,kn=null;Ft&&"documentMode"in document&&(kn=document.documentMode);var Sn=Ft&&"TextEvent"in window&&!kn,Cn=Ft&&(!xn||kn&&8<kn&&11>=kn),An=String.fromCharCode(32),En=!1;function jn(e,t){switch(e){case"keyup":return-1!==wn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Pn=!1;var Nn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function In(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Nn[e.type]:"textarea"===t}function Rn(e,t,n,r){It?Rt?Rt.push(r):Rt=[r]:It=r,0<(t=Wu(t,"onChange")).length&&(n=new Zt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var On=null,Dn=null;function Mn(e){Mu(e,0)}function Ln(e){if(pt(He(e)))return e}function Fn(e,t){if("change"===e)return t}var zn=!1;if(Ft){var Bn;if(Ft){var qn="oninput"in document;if(!qn){var Un=document.createElement("div");Un.setAttribute("oninput","return;"),qn="function"===typeof Un.oninput}Bn=qn}else Bn=!1;zn=Bn&&(!document.documentMode||9<document.documentMode)}function Hn(){On&&(On.detachEvent("onpropertychange",Wn),Dn=On=null)}function Wn(e){if("value"===e.propertyName&&Ln(Dn)){var t=[];Rn(t,Dn,e,Nt(e)),Mt(Mn,t)}}function Vn(e,t,n){"focusin"===e?(Hn(),Dn=n,(On=t).attachEvent("onpropertychange",Wn)):"focusout"===e&&Hn()}function Kn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ln(Dn)}function Gn(e,t){if("click"===e)return Ln(t)}function Yn(e,t){if("input"===e||"change"===e)return Ln(t)}var Qn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Xn(e,t){if(Qn(e,t))return!0;
vendor: 4,361 bytes, line 2
2if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!X.call(t,o)||!Qn(e[o],t[o]))return!1}return!0}function $n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jn(e,t){var n,r=$n(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$n(r)}}function Zn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Zn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function er(e){for(var t=ht((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ht((e=t.contentWindow).document)}return t}function tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nr=Ft&&"documentMode"in document&&11>=document.documentMode,rr=null,or=null,ir=null,ar=!1;function sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ar||null==rr||rr!==ht(r)||("selectionStart"in(r=rr)&&tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ir&&Xn(ir,r)||(ir=r,0<(r=Wu(or,"onSelect")).length&&(t=new Zt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var cr={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},ur={},dr={};function pr(e){if(ur[e])return ur[e];if(!cr[e])return e;var t,n=cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in dr)return ur[e]=n[t];return e}Ft&&(dr=document.createElement("div").style,"AnimationEvent"in window||(delete cr.animationend.animation,delete cr.animationiteration.animation,delete cr.animationstart.animation),"TransitionEvent"in window||delete cr.transitionend.transition);var hr=pr("animationend"),fr=pr("animationiteration"),mr=pr("animationstart"),_r=pr("transitionrun"),gr=pr("transitionstart"),vr=pr("transitioncancel"),yr=pr("transitionend"),br=new Map,wr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function xr(e,t){br.set(e,t),Ye(t,[e])}wr.push("scrollEnd");var kr=new WeakMap;function Sr(e,t){if("object"===typeof e&&null!==e){var n=kr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:lt(t)},kr.set(e,t),t)}return{value:e,source:t,stack:lt(t)}}var Cr=[],Ar=0,Er=0;function jr(){for(var e=Ar,t=Er=Ar=0;t<e;){var n=Cr[t];Cr[t++]=null;var r=Cr[t];Cr[t++]=null;var o=Cr[t];Cr[t++]=null;var i=Cr[t];if(Cr[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Ir(n,o,i)}}function Tr(e,t,n,r){Cr[Ar++]=e,Cr[Ar++]=t,Cr[Ar++]=n,Cr[Ar++]=r,Er|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Pr(e,t,n,r){return Tr(e,t,n,r),Rr(e)}function Nr(e,t){return Tr(e,null,null,t),Rr(e)}function Ir(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;
vendor: 7,625 bytes, line 2
2)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-he(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function Rr(e){if(50<Ic)throw Ic=0,Rc=null,Error(a(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Or={};function Dr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mr(e,t,n,r){return new Dr(e,t,n,r)}function Lr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fr(e,t){var n=e.alternate;return null===n?((n=Mr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function zr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Br(e,t,n,r,o,i){var s=0;if(r=e,"function"===typeof e)Lr(e)&&(s=1);else if("string"===typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,U.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case E:return(e=Mr(31,n,t,o)).elementType=E,e.lanes=i,e;case _:return qr(n.children,o,i,t);case g:s=8,o|=24;break;case v:return(e=Mr(12,n,t,2|o)).elementType=v,e.lanes=i,e;case k:return(e=Mr(13,n,t,o)).elementType=k,e.lanes=i,e;case S:return(e=Mr(19,n,t,o)).elementType=S,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case y:case w:s=10;break e;case b:s=9;break e;case x:s=11;break e;case C:s=14;break e;case A:s=16,r=null;break e}s=29,n=Error(a(130,null===e?"null":typeof e,"")),r=null}return(t=Mr(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function qr(e,t,n,r){return(e=Mr(7,e,r,t)).lanes=n,e}function Ur(e,t,n){return(e=Mr(6,e,null,t)).lanes=n,e}function Hr(e,t,n){return(t=Mr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Wr=[],Vr=0,Kr=null,Gr=0,Yr=[],Qr=0,Xr=null,$r=1,Jr="";function Zr(e,t){Wr[Vr++]=Gr,Wr[Vr++]=Kr,Kr=e,Gr=t}function eo(e,t,n){Yr[Qr++]=$r,Yr[Qr++]=Jr,Yr[Qr++]=Xr,Xr=e;var r=$r;e=Jr;var o=32-he(r)-1;r&=~(1<<o),n+=1;var i=32-he(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,$r=1<<32-he(t)+o|n<<o|r,Jr=i+e}else $r=1<<i|n<<o|r,Jr=e}function to(e){null!==e.return&&(Zr(e,1),eo(e,1,0))}function no(e){for(;e===Kr;)Kr=Wr[--Vr],Wr[Vr]=null,Gr=Wr[--Vr],Wr[Vr]=null;for(;e===Xr;)Xr=Yr[--Qr],Yr[Qr]=null,Jr=Yr[--Qr],Yr[Qr]=null,$r=Yr[--Qr],Yr[Qr]=null}var ro=null,oo=null,io=!1,ao=null,so=!1,lo=Error(a(519));function co(e){throw _o(Sr(Error(a(418,"")),e)),lo}function uo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ie]=e,t[Re]=r,n){case"dialog":Lu("cancel",t),Lu("close",t);break;case"iframe":case"object":case"embed":Lu("load",t);break;case"video":case"audio":for(n=0;n<Ou.length;n++)Lu(Ou[n],t);break;case"source":Lu("error",t);break;case"img":case"image":case"link":Lu("error",t),Lu("load",t);break;case"details":Lu("toggle",t);break;case"input":Lu("invalid",t),gt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),dt(t);break;case"select":Lu("invalid",t);break;case"textarea":Lu("invalid",t),wt(t,r.value,r.defaultValue,r.children),dt(t)}"string"!==typeof(n=r.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Xu(t.textContent,n)?(null!=r.popover&&(Lu("beforetoggle",t),Lu("toggle",t)),null!=r.onScroll&&Lu("scroll",t),null!=r.onScrollEnd&&Lu("scrollend",t),null!=r.onClick&&(t.onclick=$u),t=!0):t=!1,t||co(e)}function po(e){for(ro=e.return;ro;)switch(ro.tag){case 5:case 13:return void(so=!1);case 27:case 3:return void(so=!0);default:ro=ro.return}}function ho(e){if(e!==ro)return!1;if(!io)return po(e),io=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||ad(e.type,e.memoizedProps)),t=!t),t&&oo&&co(e),po(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){oo=gd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}oo=null}}else 27===n?(n=oo,hd(e.type)?(e=vd,vd=null,oo=e):oo=n):oo=ro?gd(e.stateNode.nextSibling):null;return!0}function fo(){oo=ro=null,io=!1}function mo(){var e=ao;return null!==e&&(null===yc?yc=e:yc.push.apply(yc,e),ao=null),e}function _o(e){null===ao?ao=[e]:ao.push(e)}var go=z(null),vo=null,yo=null;function bo(e,t,n){q(go,t._currentValue),t._currentValue=n}function wo(e){e._currentValue=go.current,B(go)}function xo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ko(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var s=o.child;i=i.firstContext;e:for(;null!==i;){var l=i;i=o;for(var c=0;c<t.length;c++)if(l.context===t[c]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),xo(i.return,n,e),r||(s=null);break e}i=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(i=s.alternate)&&(i.lanes|=n),xo(s,n,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function So(e,t,n,r){e=null;for(var o=t,i=!1;null!==o;){if(!i)if(0!==(524288&o.flags))i=!0;else if(0!==(262144&o.flags))break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(a(387));if(null!==(s=s.memoizedProps)){var l=o.type;Qn(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===V.current){if(null===(s=o.alternate))throw Error(a(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(Yd):e=[Yd])}o=o.return}null!==e&&ko(t,e,n,r),t.flags|=262144}function Co(e){for(e=e.firstContext;null!==e;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
vendor: 9,251 bytes, line 2
2function Ao(e){vo=e,yo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Eo(e){return To(vo,e)}function jo(e,t){return null===vo&&Ao(e),To(e,t)}function To(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===yo){if(null===e)throw Error(a(308));yo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else yo=yo.next=t;return n}var Po="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},No=r.unstable_scheduleCallback,Io=r.unstable_NormalPriority,Ro={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oo(){return{controller:new Po,data:new Map,refCount:0}}function Do(e){e.refCount--,0===e.refCount&&No(Io,(function(){e.controller.abort()}))}var Mo=null,Lo=0,Fo=0,zo=null;function Bo(){if(0===--Lo&&null!==Mo){null!==zo&&(zo.status="fulfilled");var e=Mo;Mo=null,Fo=0,zo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var qo=O.S;O.S=function(e,t){"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===Mo){var n=Mo=[];Lo=0,Fo=Tu(),zo={status:"pending",value:void 0,then:function(e){n.push(e)}}}Lo++,t.then(Bo,Bo)}(0,t),null!==qo&&qo(e,t)};var Uo=z(null);function Ho(){var e=Uo.current;return null!==e?e:rc.pooledCache}function Wo(e,t){q(Uo,null===t?Uo.current:t.pool)}function Vo(){var e=Ho();return null===e?null:{parent:Ro._currentValue,pool:e}}var Ko=Error(a(460)),Go=Error(a(474)),Yo=Error(a(542)),Qo={then:function(){}};function Xo(e){return"fulfilled"===(e=e.status)||"rejected"===e}function $o(){}function Jo(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then($o,$o),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ti(e=t.reason),e;default:if("string"===typeof t.status)t.then($o,$o);else{if(null!==(e=rc)&&100<e.shellSuspendCounter)throw Error(a(482));(e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ti(e=t.reason),e}throw Zo=t,Ko}}var Zo=null;function ei(){if(null===Zo)throw Error(a(459));var e=Zo;return Zo=null,e}function ti(e){if(e===Ko||e===Yo)throw Error(a(483))}var ni=!1;function ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ii(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ai(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&nc)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Rr(e),Ir(e,null,n),t}return Tr(e,r,t,n),Rr(e)}function si(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194048&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ee(e,n)}}function li(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ci=!1;function ui(){if(ci){if(null!==zo)throw zo}}function di(e,t,n,r){ci=!1;var o=e.updateQueue;ni=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var h=-536870913&s.lane,f=h!==s.lane;if(f?(ic&h)===h:(r&h)===h){0!==h&&h===Fo&&(ci=!0),null!==u&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,_=s;h=t;var g=n;switch(_.tag){case 1:if("function"===typeof(m=_.payload)){d=m.call(g,d,h);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(h="function"===typeof(m=_.payload)?m.call(g,d,h):m)||void 0===h)break e;d=p({},d,h);break e;case 2:ni=!0}}null!==(h=s.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=o.callbacks)?o.callbacks=[h]:f.push(h))}else f={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,a|=h;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null===i&&(o.shared.lanes=0),hc|=a,e.lanes=a,e.memoizedState=d}}function pi(e,t){if("function"!==typeof e)throw Error(a(191,e));e.call(t)}function hi(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)pi(n[e],t)}var fi=z(null),mi=z(0);function _i(e,t){q(mi,e=dc),q(fi,t),dc=e|t.baseLanes}function gi(){q(mi,dc),q(fi,fi.current)}function vi(){dc=mi.current,B(fi),B(mi)}var yi=0,bi=null,wi=null,xi=null,ki=!1,Si=!1,Ci=!1,Ai=0,Ei=0,ji=null,Ti=0;function Pi(){throw Error(a(321))}function Ni(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function Ii(e,t,n,r,o,i){return yi=i,bi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=null===e||null===e.memoizedState?Ka:Ga,Ci=!1,i=n(r,o),Ci=!1,Si&&(i=Oi(t,n,r,o)),Ri(e),i}function Ri(e){O.H=Va;var t=null!==wi&&null!==wi.next;if(yi=0,xi=wi=bi=null,ki=!1,Ei=0,ji=null,t)throw Error(a(300));null===e||Es||null!==(e=e.dependencies)&&Co(e)&&(Es=!0)}function Oi(e,t,n,r){bi=e;var o=0;do{if(Si&&(ji=null),Ei=0,Si=!1,25<=o)throw Error(a(301));if(o+=1,xi=wi=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}O.H=Ya,i=t(n,r)}while(Si);return i}function Di(){var e=O.H,t=e.useState()[0];return t="function"===typeof t.then?qi(t):t,e=e.useState()[0],(null!==wi?wi.memoizedState:null)!==e&&(bi.flags|=1024),t}function Mi(){var e=0!==Ai;return Ai=0,e}function Li(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fi(e){if(ki){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ki=!1}yi=0,xi=wi=bi=null,Si=!1,Ei=Ai=0,ji=null}function zi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===xi?bi.memoizedState=xi=e:xi=xi.next=e,xi}function Bi(){if(null===wi){var e=bi.alternate;e=null!==e?e.memoizedState:null}else e=wi.next;var t=null===xi?bi.memoizedState:xi.next;if(null!==t)xi=t,wi=e;else{if(null===e){if(null===bi.alternate)throw Error(a(467));throw Error(a(310))}e={memoizedState:(wi=e).memoizedState,baseState:wi.baseState,baseQueue:wi.baseQueue,queue:wi.queue,next:null},null===xi?bi.memoizedState=xi=e:xi=xi.next=e}return xi}function qi(e){var t=Ei;return Ei+=1,null===ji&&(ji=[]),e=Jo(ji,e,t),t=bi,null===(null===xi?t.memoizedState:xi.next)&&(t=t.alternate,O.H=null===t||null===t.memoizedState?Ka:Ga),e}function Ui(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return qi(e);if(e.$$typeof===w)return Eo(e)}throw Error(a(438,String(e)))}function Hi(e){var t=null,n=bi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=bi.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map((function(e){return e.slice()})),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},bi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=j;return t.index++,n}function Wi(e,t){return"function"===typeof t?t(e):t}function Vi(e){return Ki(Bi(),wi,e)}function Ki(e,t,n){var r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=n;var o=e.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}t.baseQueue=o=i,r.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var l=s=null,c=null,u=t=o.next,d=!1;do{var p=-536870913&u.lane;if(p!==u.lane?(ic&p)===p:(yi&p)===p){var h=u.revertLane;if(0===h)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),p===Fo&&(d=!0);else{if((yi&h)===h){u=u.next,h===Fo&&(d=!0);continue}p={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=p,s=i):c=c.next=p,bi.lanes|=h,hc|=h}p=u.action,Ci&&n(i,p),i=u.hasEagerState?u.eagerState:n(i,p)}else h={lane:p,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=h,s=i):c=c.next=h,bi.lanes|=p,hc|=p;u=u.next}while(null!==u&&u!==t);if(null===c?s=i:c.next=l,!Qn(i,e.memoizedState)&&(Es=!0,d&&null!==(n=zo)))throw n;e.memoizedState=i,e.baseState=s,e.baseQueue=c,r.lastRenderedState=i}
2return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Gi(e){var t=Bi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);Qn(i,t.memoizedState)||(Es=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Yi(e,t,n){var r=bi,o=Bi(),i=io;if(i){if(void 0===n)throw Error(a(407));n=n()}else n=t();var s=!Qn((wi||o).memoizedState,n);if(s&&(o.memoizedState=n,Es=!0),o=o.queue,ga(2048,8,$i.bind(null,r,o,e),[e]),o.getSnapshot!==t||s||null!==xi&&1&xi.memoizedState.tag){if(r.flags|=2048,fa(9,{destroy:void 0,resource:void 0},Xi.bind(null,r,o,n,t),null),null===rc)throw Error(a(349));i||0!==(124&yi)||Qi(r,t,n)}return n}function Qi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=bi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},bi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Xi(e,t,n,r){t.value=n,t.getSnapshot=r,Ji(t)&&Zi(e)}function $i(e,t,n){return n((function(){Ji(t)&&Zi(e)}))}function Ji(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch(r){return!0}}function Zi(e){var t=Nr(e,2);null!==t&&Mc(t,e,2)}function ea(e){var t=zi();if("function"===typeof e){var n=e;if(e=n(),Ci){pe(!0);try{n()}finally{pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wi,lastRenderedState:e},t}function ta(e,t,n,r){return e.baseState=n,Ki(e,wi,"function"===typeof r?r:Wi)}function na(e,t,n,r,o){if(Ua(e))throw Error(a(485));if(null!==(e=t.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==O.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,ra(t,i)):(i.next=n.next,t.pending=n.next=i)}}function ra(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=O.T,a={};O.T=a;try{var s=n(o,r),l=O.S;null!==l&&l(a,s),oa(e,t,s)}catch(c){aa(e,t,c)}finally{O.T=i}}else try{oa(e,t,i=n(o,r))}catch(u){aa(e,t,u)}}function oa(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then((function(n){ia(e,t,n)}),(function(n){return aa(e,t,n)})):ia(e,t,n)}function ia(e,t,n){t.status="fulfilled",t.value=n,sa(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,ra(e,n)))}function aa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,sa(t),t=t.next}while(t!==r)}e.action=null}function sa(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function la(e,t){return t}function ca(e,t){if(io){var n=rc.formState;if(null!==n){e:{var r=bi;if(io){if(oo){t:{for(var o=oo,i=so;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=gd(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){oo=gd(o.nextSibling),r="F!"===o.data;break e}}co(r)}r=!1}r&&(t=n[0])}}return(n=zi()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:t},n.queue=r,n=za.bind(null,bi,r),r.dispatch=n,r=ea(!1),i=qa.bind(null,bi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=zi()).queue=o,n=na.bind(null,bi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function ua(e){return da(Bi(),wi,e)}function da(e,t,n){if(t=Ki(e,t,la)[0],e=Vi(Wi)[0],"object"===typeof t&&null!==t&&"function"===typeof t.then)try{var r=qi(t)}catch(a){if(a===Ko)throw Yo;throw a}else r=t;var o=(t=Bi()).queue,i=o.dispatch;return n!==t.memoizedState&&(bi.flags|=2048,fa(9,{destroy:void 0,resource:void 0},pa.bind(null,o,n),null)),[r,i,e]}function pa(e,t){e.action=t}function ha(e){var t=Bi(),n=wi;if(null!==n)return da(t,n,e);Bi(),t=t.memoizedState;var r=(n=Bi()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function fa(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=bi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},bi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ma(){return Bi().memoizedState}function _a(e,t,n,r){var o=zi();r=void 0===r?null:r,bi.flags|=e,o.memoizedState=fa(1|t,{destroy:void 0,resource:void 0},n,r)}function ga(e,t,n,r){var o=Bi();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==wi&&null!==r&&Ni(r,wi.memoizedState.deps)?o.memoizedState=fa(t,i,n,r):(bi.flags|=e,o.memoizedState=fa(1|t,i,n,r))}function va(e,t){_a(8390656,8,e,t)}function ya(e,t){ga(2048,8,e,t)}function ba(e,t){return ga(4,2,e,t)}function wa(e,t){return ga(4,4,e,t)}function xa(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function ka(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,ga(4,4,xa.bind(null,t,e),n)}function Sa(){}function Ca(e,t){var n=Bi();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Ni(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Aa(e,t){var n=Bi();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Ni(t,r[1]))return r[0];if(r=e(),Ci){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[r,t],r}function Ea(e,t,n){return void 0===n||0!==(1073741824&yi)?e.memoizedState=t:(e.memoizedState=n,e=Dc(),bi.lanes|=e,hc|=e,n)}function ja(e,t,n,r){return Qn(n,t)?n:null!==fi.current?(e=Ea(e,n,r),Qn(e,t)||(Es=!0),e):0===(42&yi)?(Es=!0,e.memoizedState=n):(e=Dc(),bi.lanes|=e,hc|=e,t)}function Ta(e,t,n,r,o){var i=D.p;D.p=0!==i&&8>i?i:8;var a=O.T,s={};O.T=s,qa(e,!1,t,n);try{var l=o(),c=O.S;if(null!==c&&c(s,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)Ba(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then((function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)}),(function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)})),r}(l,r),Oc());else Ba(e,t,r,Oc())}catch(u){Ba(e,t,{then:function(){},status:"rejected",reason:u},Oc())}finally{D.p=i,O.T=a}}function Pa(){}function Na(e,t,n,r){if(5!==e.tag)throw Error(a(476));var o=Ia(e).queue;Ta(e,o,t,M,null===n?Pa:function(){return Ra(e),n(r)})}function Ia(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:M,baseState:M,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wi,lastRenderedState:M},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wi,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function Ra(e){Ba(e,Ia(e).next.queue,{},Oc())}function Oa(){return Eo(Yd)}function Da(){return Bi().memoizedState}function Ma(){return Bi().memoizedState}function La(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Oc(),r=ai(t,e=ii(n),n);return null!==r&&(Mc(r,t,n),si(r,t,n)),t={cache:Oo()},void(e.payload=t)}t=t.return}}
vendor: 4,230 bytes, line 2
2function Fa(e,t,n){var r=Oc();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ua(e)?Ha(t,n):null!==(n=Pr(e,t,n,r))&&(Mc(n,e,r),Wa(n,t,r))}function za(e,t,n){Ba(e,t,n,Oc())}function Ba(e,t,n,r){var o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ua(e))Ha(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Qn(s,a))return Tr(e,t,o,0),null===rc&&jr(),!1}catch(l){}if(null!==(n=Pr(e,t,o,r)))return Mc(n,e,r),Wa(n,t,r),!0}return!1}function qa(e,t,n,r){if(r={lane:2,revertLane:Tu(),action:r,hasEagerState:!1,eagerState:null,next:null},Ua(e)){if(t)throw Error(a(479))}else null!==(t=Pr(e,n,r,2))&&Mc(t,e,2)}function Ua(e){var t=e.alternate;return e===bi||null!==t&&t===bi}function Ha(e,t){Si=ki=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wa(e,t,n){if(0!==(4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ee(e,n)}}var Va={readContext:Eo,use:Ui,useCallback:Pi,useContext:Pi,useEffect:Pi,useImperativeHandle:Pi,useLayoutEffect:Pi,useInsertionEffect:Pi,useMemo:Pi,useReducer:Pi,useRef:Pi,useState:Pi,useDebugValue:Pi,useDeferredValue:Pi,useTransition:Pi,useSyncExternalStore:Pi,useId:Pi,useHostTransitionStatus:Pi,useFormState:Pi,useActionState:Pi,useOptimistic:Pi,useMemoCache:Pi,useCacheRefresh:Pi},Ka={readContext:Eo,use:Ui,useCallback:function(e,t){return zi().memoizedState=[e,void 0===t?null:t],e},useContext:Eo,useEffect:va,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,_a(4194308,4,xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _a(4194308,4,e,t)},useInsertionEffect:function(e,t){_a(4,2,e,t)},useMemo:function(e,t){var n=zi();t=void 0===t?null:t;var r=e();if(Ci){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=zi();if(void 0!==n){var o=n(t);if(Ci){pe(!0);try{n(t)}finally{pe(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=Fa.bind(null,bi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},zi().memoizedState=e},useState:function(e){var t=(e=ea(e)).queue,n=za.bind(null,bi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Sa,useDeferredValue:function(e,t){return Ea(zi(),e,t)},useTransition:function(){var e=ea(!1);return e=Ta.bind(null,bi,e.queue,!0,!1),zi().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=bi,o=zi();if(io){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===rc)throw Error(a(349));0!==(124&ic)||Qi(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,va($i.bind(null,r,i,e),[e]),r.flags|=2048,fa(9,{destroy:void 0,resource:void 0},Xi.bind(null,r,i,n,t),null),n},useId:function(){var e=zi(),t=rc.identifierPrefix;if(io){var n=Jr;t="\xab"+t+"R"+(n=($r&~(1<<32-he($r)-1)).toString(32)+n),0<(n=Ai++)&&(t+="H"+n.toString(32)),t+="\xbb"}else t="\xab"+t+"r"+(n=Ti++).toString(32)+"\xbb";return e.memoizedState=t},useHostTransitionStatus:Oa,useFormState:ca,useActionState:ca,useOptimistic:function(e){var t=zi();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=qa.bind(null,bi,!0,n),n.dispatch=t,[e,t]},useMemoCache:Hi,useCacheRefresh:function(){return zi().memoizedState=La.bind(null,bi)}},Ga={readContext:Eo,use:Ui,useCallback:Ca,useContext:Eo,useEffect:ya,useImperativeHandle:ka,useInsertionEffect:ba,useLayoutEffect:wa,useMemo:Aa,useReducer:Vi,useRef:ma,useState:function(){return Vi(Wi)},useDebugValue:Sa,useDeferredValue:function(e,t){return ja(Bi(),wi.memoizedState,e,t)},useTransition:function(){var e=Vi(Wi)[0],t=Bi().memoizedState;return["boolean"===typeof e?e:qi(e),t]},useSyncExternalStore:Yi,useId:Da,useHostTransitionStatus:Oa,useFormState:ua,useActionState:ua,useOptimistic:function(e,t){return ta(Bi(),0,e,t)},useMemoCache:Hi,useCacheRefresh:Ma},Ya={readContext:Eo,use:Ui,useCallback:Ca,useContext:Eo,useEffect:ya,useImperativeHandle:ka,useInsertionEffect:ba,useLayoutEffect:wa,useMemo:Aa,useReducer:Gi,useRef
vendor: 4,428 bytes, line 2
2:ma,useState:function(){return Gi(Wi)},useDebugValue:Sa,useDeferredValue:function(e,t){var n=Bi();return null===wi?Ea(n,e,t):ja(n,wi.memoizedState,e,t)},useTransition:function(){var e=Gi(Wi)[0],t=Bi().memoizedState;return["boolean"===typeof e?e:qi(e),t]},useSyncExternalStore:Yi,useId:Da,useHostTransitionStatus:Oa,useFormState:ha,useActionState:ha,useOptimistic:function(e,t){var n=Bi();return null!==wi?ta(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Hi,useCacheRefresh:Ma},Qa=null,Xa=0;function $a(e){var t=Xa;return Xa+=1,null===Qa&&(Qa=[]),Jo(Qa,e,t)}function Ja(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function Za(e,t){if(t.$$typeof===h)throw Error(a(525));throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function es(e){return(0,e._init)(e._payload)}function ts(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=Fr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ur(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===A&&es(i)===t.type)?(Ja(t=o(t,n.props),n),t.return=e,t):(Ja(t=Br(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=qr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Ur(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case f:return Ja(n=Br(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case m:return(t=Hr(t,e.mode,n)).return=e,t;case A:return p(e,t=(0,t._init)(t._payload),n)}if(R(t)||P(t))return(t=qr(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return p(e,$a(t),n);if(t.$$typeof===w)return p(e,jo(e,t),n);Za(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case f:return n.key===o?c(e,t,n,r):null;case m:return n.key===o?u(e,t,n,r):null;case A:return h(e,t,n=(o=n._init)(n._payload),r)}if(R(n)||P(n))return null!==o?null:d(e,t,n,r,null);if("function"===typeof n.then)return h(e,t,$a(n),r);if(n.$$typeof===w)return h(e,t,jo(e,n),r);Za(e,n)}return null}function g(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r||"bigint"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case f:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case m:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case A:return g(e,t,n,r=(0,r._init)(r._payload),o)}if(R(r)||P(r))return d(t,e=e.get(n)||null,r,o,null);if("function"===typeof r.then)return g(e,t,n,$a(r),o);if(r.$$typeof===w)return g(e,t,n,jo(t,r),o);Za(t,r)}return null}function v(l,c,u,d){if("object"===typeof u&&null!==u&&u.type===_&&null===u.key&&(u=u.props.children),"object"===typeof u&&null!==u){switch(u.$$typeof){case f:e:{for(var y=u.key;null!==c;){if(c.key===y){if((y=u.type)===_){if(7===c.tag){n(l,c.sibling),(d=o(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===y||"object"===typeof y&&null!==y&&y.$$typeof===A&&es(y)===c.type){n(l,c.sibling),Ja(d=o(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===_?((d=qr(u.props.children,l.mode,d,u.key)).return=l,l=d):(Ja(d=Br(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return s(l);case m:e:{for(y=u.key;null!==c;){if(c.key===y){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(
2d=o(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Hr(u,l.mode,d)).return=l,l=d}return s(l);case A:return v(l,c,u=(y=u._init)(u._payload),d)}if(R(u))return function(o,a,s,l){for(var c=null,u=null,d=a,f=a=0,m=null;null!==d&&f<s.length;f++){d.index>f?(m=d,d=null):m=d.sibling;var _=h(o,d,s[f],l);if(null===_){null===d&&(d=m);break}e&&d&&null===_.alternate&&t(o,d),a=i(_,a,f),null===u?c=_:u.sibling=_,u=_,d=m}if(f===s.length)return n(o,d),io&&Zr(o,f),c;if(null===d){for(;f<s.length;f++)null!==(d=p(o,s[f],l))&&(a=i(d,a,f),null===u?c=d:u.sibling=d,u=d);return io&&Zr(o,f),c}for(d=r(d);f<s.length;f++)null!==(m=g(d,o,f,s[f],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?f:m.key),a=i(m,a,f),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(o,e)})),io&&Zr(o,f),c}(l,c,u,d);if(P(u)){if("function"!==typeof(y=P(u)))throw Error(a(150));return function(o,s,l,c){if(null==l)throw Error(a(151));for(var u=null,d=null,f=s,m=s=0,_=null,v=l.next();null!==f&&!v.done;m++,v=l.next()){f.index>m?(_=f,f=null):_=f.sibling;var y=h(o,f,v.value,c);if(null===y){null===f&&(f=_);break}e&&f&&null===y.alternate&&t(o,f),s=i(y,s,m),null===d?u=y:d.sibling=y,d=y,f=_}if(v.done)return n(o,f),io&&Zr(o,m),u;if(null===f){for(;!v.done;m++,v=l.next())null!==(v=p(o,v.value,c))&&(s=i(v,s,m),null===d?u=v:d.sibling=v,d=v);return io&&Zr(o,m),u}for(f=r(f);!v.done;m++,v=l.next())null!==(v=g(f,o,m,v.value,c))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),s=i(v,s,m),null===d?u=v:d.sibling=v,d=v);return e&&f.forEach((function(e){return t(o,e)})),io&&Zr(o,m),u}(l,c,u=y.call(u),d)}if("function"===typeof u.then)return v(l,c,$a(u),d);if(u.$$typeof===w)return v(l,c,jo(l,u),d);Za(l,u)}return"string"===typeof u&&""!==u||"number"===typeof u||"bigint"===typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=o(c,u)).return=l,l=d):(n(l,c),(d=Ur(u,l.mode,d)).return=l,l=d),s(l)):n(l,c)}return function(e,t,n,r){try{Xa=0;var o=v(e,t,n,r);return Qa=null,o}catch(a){if(a===Ko||a===Yo)throw a;var i=Mr(29,a,null,e.mode);return i.lanes=r,i.return=e,i}}}var ns=ts(!0),rs=ts(!1),os=z(null),is=null;function as(e){var t=e.alternate;q(us,1&us.current),q(os,e),null===is&&(null===t||null!==fi.current||null!==t.memoizedState)&&(is=e)}function ss(e){if(22===e.tag){if(q(us,us.current),q(os,e),null===is){var t=e.alternate;null!==t&&null!==t.memoizedState&&(is=e)}}else ls()}function ls(){q(us,us.current),q(os,os.current)}function cs(e){B(os),is===e&&(is=null),B(us)}var us=z(0);function ds(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||_d(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ps(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var hs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Oc(),o=ii(r);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=ai(e,o,r))&&(Mc(t,e,r),si(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Oc(),o=ii(r);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=ai(e,o,r))&&(Mc(t,e,r),si(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Oc(),r=ii(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=ai(e,r,n))&&(Mc(t,e,n),si(t,e,n))}};function fs(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Xn(n,r)||!Xn(o,i))}function ms(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hs.enqueueReplaceState(t,t.state,null)}function _s(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=p({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}var gs="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function vs(e){gs(e)}function ys(e){console.error(e)}function bs(e){gs(e)}function ws(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout((function(){throw n}))}}function xs(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout((function(){throw r}))}}function ks(e,t,n){return(n=ii(n)).tag=3,n.payload={element:null},n.callback=function(){ws(e,t)},n}function Ss(e){return(e=ii(e)).tag=3,e}function Cs(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"===typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){xs(t,n,r)}}var a=n.stateNode;null!==a&&"function"===typeof a.componentDidCatch&&(e.callback=function(){xs(t,n,r),"function"!==typeof o&&(null===Sc?Sc=new Set([this]):Sc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var As=Error(a(461)),Es=!1;function js(e,t,n,r){t.child=null===e?rs(t,null,n,r):ns(t,e.child,n,r)}function Ts(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Ao(t),r=Ii(e,t,n,a,i,o),s=Mi(),null===e||Es?(io&&s&&to(t),t.flags|=1,js(e,t,r,o),t.child):(Li(e,t,o),Qs(e,t,o))}function Ps(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Lr(i)||void 0!==i.defaultProps||null!==n.compare?((e=Br(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ns(e,t,i,r,o))}if(i=e.child,!Xs(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Xn)(a,r)&&e.ref===t.ref)return Qs(e,t,o)}return t.flags|=1,(e=Fr(i,r)).ref=t.ref,e.return=t,t.child=e}function Ns(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Xn(i,r)&&e.ref===t.ref){if(Es=!1,t.pendingProps=r=i,!Xs(e,o))return t.lanes=e.lanes,Qs(e,t,o);0!==(131072&e.flags)&&(Es=!0)}}return Ds(e,t,n,r,o)}function Is(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0!==(128&t.flags)){if(r=null!==i?i.baseLanes|n:n,null!==e){for(o=t.child=e.child,i=0;null!==o;)i=i|o.lanes|o.childLanes,o=o.sibling;t.childLanes=i&~r}else t.childLanes=0,t.child=null;return Rs(e,t,r,n)}if(0===(536870912&n))return t.lanes=t.childLanes=536870912,Rs(e,t,null!==i?i.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null}
2,null!==e&&Wo(0,null!==i?i.cachePool:null),null!==i?_i(t,i):gi(),ss(t)}else null!==i?(Wo(0,i.cachePool),_i(t,i),ls(),t.memoizedState=null):(null!==e&&Wo(0,null),gi(),ls());return js(e,t,o,n),t.child}function Rs(e,t,n,r){var o=Ho();return o=null===o?null:{parent:Ro._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Wo(0,null),gi(),ss(t),null!==e&&So(e,t,r,!0),null}function Os(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(a(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ds(e,t,n,r,o){return Ao(t),n=Ii(e,t,n,r,void 0,o),r=Mi(),null===e||Es?(io&&r&&to(t),t.flags|=1,js(e,t,n,o),t.child):(Li(e,t,o),Qs(e,t,o))}function Ms(e,t,n,r,o,i){return Ao(t),t.updateQueue=null,n=Oi(t,r,n,o),Ri(e),r=Mi(),null===e||Es?(io&&r&&to(t),t.flags|=1,js(e,t,n,i),t.child):(Li(e,t,i),Qs(e,t,i))}function Ls(e,t,n,r,o){if(Ao(t),null===t.stateNode){var i=Or,a=n.contextType;"object"===typeof a&&null!==a&&(i=Eo(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=hs,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},ri(t),a=n.contextType,i.context="object"===typeof a&&null!==a?Eo(a):Or,i.state=t.memoizedState,"function"===typeof(a=n.getDerivedStateFromProps)&&(ps(t,n,a,r),i.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(a=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&hs.enqueueReplaceState(i,i.state,null),di(t,r,i,o),ui(),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=_s(n,s);i.props=l;var c=i.context,u=n.contextType;a=Or,"object"===typeof u&&null!==u&&(a=Eo(u));var d=n.getDerivedStateFromProps;u="function"===typeof d||"function"===typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,u||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s||c!==a)&&ms(t,i,r,a),ni=!1;var p=t.memoizedState;i.state=p,di(t,r,i,o),ui(),c=t.memoizedState,s||p!==c||ni?("function"===typeof d&&(ps(t,n,d,r),c=t.memoizedState),(l=ni||fs(t,n,l,r,p,c,a))?(u||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=l):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,oi(e,t),u=_s(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,p=i.context,c=n.contextType,l=Or,"object"===typeof c&&null!==c&&(l=Eo(c)),(c="function"===typeof(s=n.getDerivedStateFromProps)||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(a!==d||p!==l)&&ms(t,i,r,l),ni=!1,p=t.memoizedState,i.state=p,di(t,r,i,o),ui();var h=t.memoizedState;a!==d||p!==h||ni||null!==e&&null!==e.dependencies&&Co(e.dependencies)?("function"===typeof s&&(ps(t,n,s,r),h=t.memoizedState),(u=ni||fs(t,n,u,r,p,h,l)||null!==e&&null!==e.dependencies&&Co(e.dependencies))?(c||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=u):("function"!==typeof i.componentDidUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Os(e,t),r=0!==(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!==typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=ns(t,e.child,null,o),t.child=ns(t,null,n,o)):js(e,t,n,o),t.memoizedState=i.state,e=t.child):e=Qs(e,t,o),e}function Fs(e,t,n,r){return fo(),t.flags|=256,js(e,t,n,r),t.child}var zs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bs(e){return{baseLanes:e,cachePool:Vo()}}
vendor: 9,086 bytes, line 2
2function qs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=_c),e}function Us(e,t,n){var r,o=t.pendingProps,i=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&us.current)),r&&(i=!0,t.flags&=-129),r=0!==(32&t.flags),t.flags&=-33,null===e){if(io){if(i?as(t):ls(),io){var l,c=oo;if(l=c){e:{for(l=c,c=so;8!==l.nodeType;){if(!c){c=null;break e}if(null===(l=gd(l.nextSibling))){c=null;break e}}c=l}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==Xr?{id:$r,overflow:Jr}:null,retryLane:536870912,hydrationErrors:null},(l=Mr(18,null,null,0)).stateNode=c,l.return=t,t.child=l,ro=t,oo=null,l=!0):l=!1}l||co(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return _d(c)?t.lanes=32:t.lanes=536870912,null;cs(t)}return c=o.children,o=o.fallback,i?(ls(),c=Ws({mode:"hidden",children:c},i=t.mode),o=qr(o,i,n,null),c.return=t,o.return=t,c.sibling=o,t.child=c,(i=t.child).memoizedState=Bs(n),i.childLanes=qs(e,r,n),t.memoizedState=zs,o):(as(t),Hs(t,c))}if(null!==(l=e.memoizedState)&&null!==(c=l.dehydrated)){if(s)256&t.flags?(as(t),t.flags&=-257,t=Vs(e,t,n)):null!==t.memoizedState?(ls(),t.child=e.child,t.flags|=128,t=null):(ls(),i=o.fallback,c=t.mode,o=Ws({mode:"visible",children:o.children},c),(i=qr(i,c,n,null)).flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,ns(t,e.child,null,n),(o=t.child).memoizedState=Bs(n),o.childLanes=qs(e,r,n),t.memoizedState=zs,t=i);else if(as(t),_d(c)){if(r=c.nextSibling&&c.nextSibling.dataset)var u=r.dgst;r=u,(o=Error(a(419))).stack="",o.digest=r,_o({value:o,source:null,stack:null}),t=Vs(e,t,n)}else if(Es||So(e,t,n,!1),r=0!==(n&e.childLanes),Es||r){if(null!==(r=rc)&&(0!==(o=0!==((o=0!==(42&(o=n&-n))?1:je(o))&(r.suspendedLanes|n))?0:o)&&o!==l.retryLane))throw l.retryLane=o,Nr(e,o),Mc(r,e,o),As;"$?"===c.data||Gc(),t=Vs(e,t,n)}else"$?"===c.data?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,oo=gd(c.nextSibling),ro=t,io=!0,ao=null,so=!1,null!==e&&(Yr[Qr++]=$r,Yr[Qr++]=Jr,Yr[Qr++]=Xr,$r=e.id,Jr=e.overflow,Xr=t),(t=Hs(t,o.children)).flags|=4096);return t}return i?(ls(),i=o.fallback,c=t.mode,u=(l=e.child).sibling,(o=Fr(l,{mode:"hidden",children:o.children})).subtreeFlags=65011712&l.subtreeFlags,null!==u?i=Fr(u,i):(i=qr(i,c,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,null===(c=e.child.memoizedState)?c=Bs(n):(null!==(l=c.cachePool)?(u=Ro._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=Vo(),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=qs(e,r,n),t.memoizedState=zs,o):(as(t),e=(n=e.child).sibling,(n=Fr(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Hs(e,t){return(t=Ws({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Ws(e,t){return(e=Mr(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Vs(e,t,n){return ns(t,e.child,null,n),(e=Hs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ks(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xo(e.return,t,n)}function Gs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ys(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(js(e,t,r.children,n),0!==(2&(r=us.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ks(e,n,t);else if(19===e.tag)Ks(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(q(us,r),o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ds(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Gs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ds(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Gs(t,!0,n,null,i);break;case"together":Gs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),hc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(So(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Fr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Xs(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Co(e))}function $s(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Es=!0;else{if(!Xs(e,n)&&0===(128&t.flags))return Es=!1,function(e,t,n){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),bo(0,Ro,e.memoizedState.cache),fo();break;case 27:case 5:Y(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:bo(0,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(as(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Us(e,t,n):(as(t),null!==(e=Qs(e,t,n))?e.sibling:null);as(t);break;case 19:var o=0!==(128&e.flags);if((r=0!==(n&t.childLanes))||(So(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return Ys(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),q(us,us.current),r)break;return null;case 22:case 23:return t.lanes=0,Is(e,t,n);case 24:bo(0,Ro,e.memoizedState.cache)}return Qs(e,t,n)}(e,t,n);Es=0!==(131072&e.flags)}else Es=!1,io&&0!==(1048576&t.flags)&&eo(t,Gr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,o=r._init;if(r=o(r._payload),t.type=r,"function"!==typeof r){if(void 0!==r&&null!==r){if((o=r.$$typeof)===x){t.tag=11,t=Ts(null,t,r,e,n);break e}if(o===C){t.tag=14,t=Ps(null,t,r,e,n);break e}}throw t=I(r)||r,Error(a(306,t,""))}Lr(r)?(e=_s(r,e),t.tag=1,t=Ls(null,t,r,e,n)):(t.tag=0,t=Ds(null,t,r,e,n))}return t;case 0:return Ds(e,t,t.type,t.pendingProps,n);case 1:return Ls(e,t,r=t.type,o=_s(r,t.pendingProps),n);case 3:e:{if(K(t,t.stateNode.containerInfo),null===e)throw Error(a(387));r=t.pendingProps;var i=t.memoizedState;o=i.element,oi(e,t),di(t,r,null,n);var s=t.memoizedState;if(r=s.cache,bo(0,Ro,r),r!==i.cache&&ko(t,[Ro],n,!0),ui(),r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Fs(e,t,r,n);break e}if(r!==o){_o(o=Sr(Error(a(424)),t)),t=Fs(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(oo=gd(e.firstChild),ro=t,io=!0,ao=null,so=!0,n=rs(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fo(),r===o){t=Qs(e,t,n);break e}js(e,t,r,n)}t=t.child}return t;case 26:return Os(e,t),null===e?(n=jd(t.type,null,t.pendingProps,null))?t.memoizedState=n:io||(n=t.type,e=t.pendingProps,(r=rd(W.current).createElement(n))[Ie]=t,r[Re]=e,ed(r,n,e),Ve(r),t.stateNode=r):t.memoizedState=jd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Y(t),null===e&&io&&(r=t.stateNode=bd(t.type,t.pendingProps,W.current),ro=t,so=!0,o=oo,hd(t.type)?(vd=o,oo=gd(r.firstChild)):oo=o),js(e,t,t.pendingProps.children,n),Os(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&io&&((o=r=oo)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[ze])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=gd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,so))?(t.stateNode=r,ro=t,oo=gd(r.firstChild),so=!1,o=!0):o=!1),o||co(t)),Y(t),o=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,r=i.children,ad(o,i)?r=null:null!==s&&ad(o,s)&&(t.flags|=32),null!==t.memoizedState&&(o=Ii(e,t,Di,null,null,n),Yd._currentValue=o),Os(e,t),js(e,t,r,n),t.child;case 6:return null===e&&io&&((e=n=oo)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;
vendor: 8,935 bytes, line 2
2){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=gd(e.nextSibling)))return null}return e}(n,t.pendingProps,so))?(t.stateNode=n,ro=t,oo=null,e=!0):e=!1),e||co(t)),null;case 13:return Us(e,t,n);case 4:return K(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ns(t,null,r,n):js(e,t,r,n),t.child;case 11:return Ts(e,t,t.type,t.pendingProps,n);case 7:return js(e,t,t.pendingProps,n),t.child;case 8:case 12:return js(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,bo(0,t.type,r.value),js(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Ao(t),r=r(o=Eo(o)),t.flags|=1,js(e,t,r,n),t.child;case 14:return Ps(e,t,t.type,t.pendingProps,n);case 15:return Ns(e,t,t.type,t.pendingProps,n);case 19:return Ys(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?((n=Ws(r,n)).ref=t.ref,t.child=n,n.return=t,t=n):((n=Fr(e.child,r)).ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Is(e,t,n);case 24:return Ao(t),r=Eo(Ro),null===e?(null===(o=Ho())&&(o=rc,i=Oo(),o.pooledCache=i,i.refCount++,null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:r,cache:o},ri(t),bo(0,Ro,o)):(0!==(e.lanes&n)&&(oi(e,t),di(t,null,null,n),ui()),o=e.memoizedState,i=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),bo(0,Ro,r)):(r=i.cache,bo(0,Ro,r),r!==o.cache&&ko(t,[Ro],n,!0))),js(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Js(e){e.flags|=4}function Zs(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!qd(t)){if(null!==(t=os.current)&&((4194048&ic)===ic?null!==is:(62914560&ic)!==ic&&0===(536870912&ic)||t!==is))throw Zo=Qo,Go;e.flags|=8192}}function el(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?ke():536870912,e.lanes|=t,gc|=t)}function tl(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function rl(e,t,n){var r=t.pendingProps;switch(no(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return nl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),wo(Ro),G(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ho(t)?Js(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,mo())),nl(t),null;case 26:return n=t.memoizedState,null===e?(Js(t),null!==n?(nl(t),Zs(t,n)):(nl(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Js(t),nl(t),Zs(t,n)):(nl(t),t.flags&=-16777217):(e.memoizedProps!==r&&Js(t),nl(t),t.flags&=-16777217),null;case 27:Q(t),n=W.current;var o=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Js(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return nl(t),null}e=U.current,ho(t)?uo(t):(e=bd(o,r,n),t.stateNode=e,Js(t))}return nl(t),null;case 5:if(Q(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Js(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return nl(t),null}if(e=U.current,ho(t))uo(t);else{switch(o=rd(W.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"===typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"===typeof r.is?o.createElement(n,{is:r.is}):o.createElement(n)}}e[Ie]=t,e[Re]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(ed(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Js(t)}}return nl(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&Js(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(e=W.current,ho(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=ro))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[Ie]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Xu(e.nodeValue,n)))||co(t)}else(e=rd(e).createTextNode(r))[Ie]=t,t.stateNode=e}return nl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=ho(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[Ie]=t}else fo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;nl(t),o=!1}else o=mo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(cs(t),t):(cs(t),null)}if(cs(t),0!==(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool);var i=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==o&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),el(t,t.updateQueue),nl(t),null;case 4:return G(),null===e&&Bu(t.stateNode.containerInfo),nl(t),null;case 10:return wo(t.type),nl(t),null;case 19:if(B(us),null===(o=t.memoizedState))return nl(t),null;if(r=0!==(128&t.flags),null===(i=o.rendering))if(r)tl(o,!1);else{if(0!==pc||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=ds(e))){for(t.flags|=128,tl(o,!1),e=i.updateQueue,t.updateQueue=e,el(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)zr(n,e),n=n.sibling;return q(us,1&us.current|2),t.child}e=e.sibling}null!==o.tail&&te()>xc&&(t.flags|=128,r=!0,tl(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ds(i))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,el(t,e),tl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!io)return nl(t),null}else 2*te()-o.renderingStartTime>xc&&536870912!==n&&(t.flags|=128,r=!0,tl(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=o.last)?e.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=te(),t.sibling=null,e=us.current,q(us,r?1&e|2:1&e),t):(nl(t),null);case 22:case 23:return cs(t),vi(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&(nl(t),6&t.subtreeFlags&&(t.flags|=8192)):nl(t),null!==(n=t.updateQueue)&&el(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&B(Uo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wo(Ro),nl(t),null;case 25:case 30:return null}throw Error(a(156,t.tag))}function ol(e,t){switch(no(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return wo(Ro),G(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Q(t),null;case 13:if(cs(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return B(us),null;case 4:return G(),null;case 10:return wo(t.type),null;case 22:case 23:return cs(t),vi(),null!==e&&B(Uo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return wo(Ro),null;default:return null}}function il(e,t){switch(no(t),t.tag){case 3:wo(Ro),G();break;case 26:case 27:case 5:Q(t);break;case 4:G();break;case 13:cs(t);break;case 19:B(us);break;case 10:wo(t.type);break;case 22:case 23:cs(t),vi(),null!==e&&B(Uo);break;
vendor: 4,811 bytes, line 2
2case 24:wo(Ro)}}function al(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(s){uu(t,t.return,s)}}function sl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n,c=s;try{c()}catch(u){uu(o,l,u)}}}r=r.next}while(r!==i)}}catch(u){uu(t,t.return,u)}}function ll(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{hi(t,n)}catch(r){uu(e,e.return,r)}}}function cl(e,t,n){n.props=_s(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){uu(e,t,r)}}function ul(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"===typeof n?e.refCleanup=n(r):n.current=r}}catch(o){uu(e,t,o)}}function dl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"===typeof r)try{r()}catch(o){uu(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(i){uu(e,t,i)}else n.current=null}function pl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(o){uu(e,e.return,o)}}function hl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,i=null,s=null,l=null,c=null,u=null,d=null;for(f in n){var p=n[f];if(n.hasOwnProperty(f)&&null!=p)switch(f){case"checked":case"value":break;case"defaultValue":c=p;default:r.hasOwnProperty(f)||Ju(e,t,f,null,r,p)}}for(var h in r){var f=r[h];if(p=n[h],r.hasOwnProperty(h)&&(null!=f||null!=p))switch(h){case"type":i=f;break;case"name":o=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":s=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(a(137,t));break;default:f!==p&&Ju(e,t,h,f,r,p)}}return void _t(e,s,l,c,u,d,i,o);case"select":for(i in f=s=l=h=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":f=c;default:r.hasOwnProperty(i)||Ju(e,t,i,null,r,c)}for(o in r)if(i=r[o],c=n[o],r.hasOwnProperty(o)&&(null!=i||null!=c))switch(o){case"value":h=i;break;case"defaultValue":l=i;break;case"multiple":s=i;default:i!==c&&Ju(e,t,o,i,r,c)}return t=l,n=s,r=f,void(null!=h?yt(e,!!n,h,!1):!!r!==!!n&&(null!=t?yt(e,!!n,t,!0):yt(e,!!n,n?[]:"",!1)));case"textarea":for(l in f=h=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:Ju(e,t,l,null,r,o)}for(s in r)if(o=r[s],i=n[s],r.hasOwnProperty(s)&&(null!=o||null!=i))switch(s){case"value":h=o;break;case"defaultValue":f=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(a(91));break;default:o!==i&&Ju(e,t,s,o,r,i)}return void bt(e,h,f);case"option":for(var m in n)if(h=n[m],n.hasOwnProperty(m)&&null!=h&&!r.hasOwnProperty(m))if("selected"===m)e.selected=!1;else Ju(e,t,m,null,r,h);for(c in r)if(h=r[c],f=n[c],r.hasOwnProperty(c)&&h!==f&&(null!=h||null!=f))if("selected"===c)e.selected=h&&"function"!==typeof h&&"symbol"!==typeof h;else Ju(e,t,c,h,r,f);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _ in n)h=n[_],n.hasOwnProperty(_)&&null!=h&&!r.hasOwnProperty(_)&&Ju(e,t,_,null,r,h);for(u in r)if(h=r[u],f=n[u],r.hasOwnProperty(u)&&h!==f&&(null!=h||null!=f))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(a(137,t));break;default:Ju(e,t,u,h,r,f)}return;default:if(At(t)){for(var g in n)h=n[g],n.hasOwnProperty(g)&&void 0!==h&&!r.hasOwnProperty(g)&&Zu(e,t,g,void 0,r,h);for(d in r)h=r[d],f=n[d],!r.hasOwnProperty(d)||h===f||void 0===h&&void 0===f||Zu(e,t,d,h,r,f);return}}for(var v in n)h=n[v],n.hasOwnProperty(v)&&null!=h&&!r.hasOwnProperty(v)&&Ju(e,t,v,null,r,h);for(p in r)h=r[p],f=n[p],!r.hasOwnProperty(p)||h===f||null==h&&null==f||Ju(e,t,p,h,r,f)}(r,e.type,n,t),r[Re]=t}catch(o){uu(e,e.return,o)}}function fl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&hd(e.type)||4===e.tag}function ml(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||fl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&hd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function _l(e,t,n){var r=e.tag;
vendor: 20,872 bytes, line 2
2if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=$u));else if(4!==r&&(27===r&&hd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(_l(e,t,n),e=e.sibling;null!==e;)_l(e,t,n),e=e.sibling}function gl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&hd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(gl(e,t,n),e=e.sibling;null!==e;)gl(e,t,n),e=e.sibling}function vl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ed(t,r,n),t[Ie]=e,t[Re]=n}catch(i){uu(e,e.return,i)}}var yl=!1,bl=!1,wl=!1,xl="function"===typeof WeakSet?WeakSet:Set,kl=null;function Sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ll(e,n),4&r&&al(5,n);break;case 1:if(Ll(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){uu(n,n.return,a)}else{var o=_s(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){uu(n,n.return,s)}}64&r&&ll(n),512&r&&ul(n,n.return);break;case 3:if(Ll(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{hi(e,t)}catch(a){uu(n,n.return,a)}}break;case 27:null===t&&4&r&&vl(n);case 26:case 5:Ll(e,n),null===t&&4&r&&pl(n),512&r&&ul(n,n.return);break;case 12:Ll(e,n);break;case 13:Ll(e,n),4&r&&Pl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=fu.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||yl)){t=null!==t&&null!==t.memoizedState||bl,o=yl;var i=bl;yl=r,(bl=t)&&!i?zl(e,n,0!==(8772&n.subtreeFlags)):Ll(e,n),yl=o,bl=i}break;case 30:break;default:Ll(e,n)}}function Cl(e){var t=e.alternate;null!==t&&(e.alternate=null,Cl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Be(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Al=null,El=!1;function jl(e,t,n){for(n=n.child;null!==n;)Tl(e,t,n),n=n.sibling}function Tl(e,t,n){if(de&&"function"===typeof de.onCommitFiberUnmount)try{de.onCommitFiberUnmount(ue,n)}catch(i){}switch(n.tag){case 26:bl||dl(n,t),jl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:bl||dl(n,t);var r=Al,o=El;hd(n.type)&&(Al=n.stateNode,El=!1),jl(e,t,n),wd(n.stateNode),Al=r,El=o;break;case 5:bl||dl(n,t);case 6:if(r=Al,o=El,Al=null,jl(e,t,n),El=o,null!==(Al=r))if(El)try{(9===Al.nodeType?Al.body:"HTML"===Al.nodeName?Al.ownerDocument.body:Al).removeChild(n.stateNode)}catch(a){uu(n,t,a)}else try{Al.removeChild(n.stateNode)}catch(a){uu(n,t,a)}break;case 18:null!==Al&&(El?(fd(9===(e=Al).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Ep(e)):fd(Al,n.stateNode));break;case 4:r=Al,o=El,Al=n.stateNode.containerInfo,El=!0,jl(e,t,n),Al=r,El=o;break;case 0:case 11:case 14:case 15:bl||sl(2,n,t),bl||sl(4,n,t),jl(e,t,n);break;case 1:bl||(dl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount&&cl(n,t,r)),jl(e,t,n);break;case 21:jl(e,t,n);break;case 22:bl=(r=bl)||null!==n.memoizedState,jl(e,t,n),bl=r;break;default:jl(e,t,n)}}function Pl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Ep(e)}catch(n){uu(t,t.return,n)}}function Nl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new xl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new xl),t;default:throw Error(a(435,e.tag))}}(e);t.forEach((function(t){var r=mu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}function Il(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(hd(l.type)){Al=l.stateNode,El=!1;break e}break;case 5:Al=l.stateNode,El=!1;break e;case 3:case 4:Al=l.stateNode.containerInfo,El=!0;break e}l=l.return}if(null===Al)throw Error(a(160));Tl(i,s,o),Al=null,El=!1,null!==(i=o.alternate)&&(i.return=null),o.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)Ol(t,e),t=t.sibling}var Rl=null;function Ol(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Il(t,e),Dl(e),4&r&&(sl(3,e,e.return),al(3,e),sl(5,e,e.return));break;case 1:Il(t,e),Dl(e),512&r&&(bl||null===n||dl(n,n.return)),64&r&&yl&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var o=Rl;if(Il(t,e),Dl(e),512&r&&(bl||null===n||dl(n,n.return)),4&r){var i=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":(!(i=o.getElementsByTagName("title")[0])||i[ze]||i[Ie]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(r),o.head.insertBefore(i,o.querySelector("head > title"))),ed(i,r,n),i[Ie]=e,Ve(i),r=i;break e;case"link":var s=zd("link","href",o).get(r+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((i=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}ed(i=o.createElement(r),r,n),o.head.appendChild(i);break;case"meta":if(s=zd("meta","content",o).get(r+(n.content||"")))for(l=0;l<s.length;l++)if((i=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}ed(i=o.createElement(r),r,n),o.head.appendChild(i);break;default:throw Error(a(468,r))}i[Ie]=e,Ve(i),r=i}e.stateNode=r}else Bd(o,e.type,e.stateNode);else e.stateNode=Od(o,r,e.memoizedProps);else i!==r?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===r?Bd(o,e.type,e.stateNode):Od(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&hl(e,e.memoizedProps,n.memoizedProps)}break;case 27:Il(t,e),Dl(e),512&r&&(bl||null===n||dl(n,n.return)),null!==n&&4&r&&hl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Il(t,e),Dl(e),512&r&&(bl||null===n||dl(n,n.return)),32&e.flags){o=e.stateNode;try{xt(o,"")}catch(f){uu(e,e.return,f)}}4&r&&null!=e.stateNode&&hl(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(wl=!0);break;case 6:if(Il(t,e),Dl(e),4&r){if(null===e.stateNode)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(f){uu(e,e.return,f)}}break;case 3:if(Fd=null,o=Rl,Rl=Sd(t.containerInfo),Il(t,e),Rl=o,Dl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ep(t.containerInfo)}catch(f){uu(e,e.return,f)}wl&&(wl=!1,Ml(e));break;case 4:r=Rl,Rl=Sd(e.stateNode.containerInfo),Il(t,e),Dl(e),Rl=r;break;case 12:default:Il(t,e),Dl(e);break;case 13:Il(t,e),Dl(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(wc=te()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Nl(e,r)));break;case 22:o=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=yl,d=bl;if(yl=u||o,bl=d||c,Il(t,e),bl=d,yl=u,Dl(e),8192&r)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||c||yl||bl||Fl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(i=c.stateNode,o)"function"===typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=c.stateNode;var p=c.memoizedProps.style,h=void 0!==p&&null!==p&&p.hasOwnProperty("display")?p.display:null;l.style.display=null==h||"boolean"===typeof h?"":(""+h).trim()}}catch(f){uu(c,c.return,f)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=o?"":c.memoizedProps}catch(f){uu(c,c.return,f)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,Nl(e,n))));break;case 19:Il(t,e),Dl(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Nl(e,r)));case 30:case 21:}}function Dl(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(fl(r)){n=r;break}r=r.return}if(null==n)throw Error(a(160));switch(n.tag){case 27:var o=n.stateNode;gl(e,ml(e),o);break;case 5:var i=n.stateNode;32&n.flags&&(xt(i,""),n.flags&=-33),gl(e,ml(e),i);break;case 3:case 4:var s=n.stateNode.containerInfo;_l(e,ml(e),s);break;default:throw Error(a(161))}}catch(l){uu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Ml(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Ml(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ll(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Sl(e,t.alternate,t),t=t.sibling}function Fl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:sl(4,t,t.return),Fl(t);break;case 1:dl(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&cl(t,t.return,n),Fl(t);break;case 27:wd(t.stateNode);case 26:case 5:dl(t,t.return),Fl(t);break;case 22:null===t.memoizedState&&Fl(t);break;default:Fl(t)}e=e.sibling}}function zl(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:zl(o,i,n),al(4,i);break;case 1:if(zl(o,i,n),"function"===typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(c){uu(r,r.return,c)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)pi(l[o],s)}catch(c){uu(r,r.return,c)}}n&&64&a&&ll(i),ul(i,i.return);break;case 27:vl(i);case 26:case 5:zl(o,i,n),n&&null===r&&4&a&&pl(i),ul(i,i.return);break;case 12:zl(o,i,n);break;case 13:zl(o,i,n),n&&4&a&&Pl(o,i);break;case 22:null===i.memoizedState&&zl(o,i,n),ul(i,i.return);break;case 30:break;default:zl(o,i,n)}t=t.sibling}}function Bl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Do(n))}function ql(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Do(e))}function Ul(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Hl(e,t,n,r),t=t.sibling}function Hl(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ul(e,t,n,r),2048&o&&al(9,t);break;case 1:case 13:default:Ul(e,t,n,r);break;case 3:Ul(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Do(e)));break;case 12:if(2048&o){Ul(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"===typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){uu(t,t.return,l)}}else Ul(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?Ul(e,t,n,r):Vl(e,t):2&i._visibility?Ul(e,t,n,r):(i._visibility|=2,Wl(e,t,n,r,0!==(10256&t.subtreeFlags))),2048&o&&Bl(a,t);break;case 24:Ul(e,t,n,r),2048&o&&ql(t.alternate,t)}}function Wl(e,t,n,r,o){for(o=o&&0!==(10256&t.subtreeFlags),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:Wl(i,a,s,l,o),al(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?Wl(i,a,s,l,o):Vl(i,a):(u._visibility|=2,Wl(i,a,s,l,o)),o&&2048&c&&Bl(a.alternate,a);break;case 24:Wl(i,a,s,l,o),o&&2048&c&&ql(a.alternate,a);break;default:Wl(i,a,s,l,o)}t=t.sibling}}function Vl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:Vl(n,r),2048&o&&Bl(r.alternate,r);break;case 24:Vl(n,r),2048&o&&ql(r.alternate,r);break;default:Vl(n,r)}t=t.sibling}}var Kl=8192;function Gl(e){if(e.subtreeFlags&Kl)for(e=e.child;null!==e;)Yl(e),e=e.sibling}function Yl(e){switch(e.tag){case 26:Gl(e),e.flags&Kl&&null!==e.memoizedState&&function(e,t,n){if(null===Ud)throw Error(a(475));var r=Ud;if("stylesheet"===t.type&&("string"!==typeof n.media||!1!==matchMedia(n.media).matches)&&0===(4&t.state.loading)){if(null===t.instance){var o=Td(n.href),i=e.querySelector(Pd(o));if(i)return null!==(e=i._p)&&"object"===typeof e&&"function"===typeof e.then&&(r.count++,r=Wd.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=i,void Ve(i);i=e.ownerDocument||e,n=Nd(n),(o=xd.get(o))&&Md(n,o),Ve(i=i.createElement("link"));var s=i;s._p=new Promise((function(e,t){s.onload=e,s.onerror=t})),ed(i,"link",n),t.instance=i}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&0===(3&t.state.loading)&&(r.count++,t=Wd.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(Rl,e.memoizedState,e.memoizedProps);break;case 5:default:Gl(e);break;case 3:case 4:var t=Rl;Rl=Sd(e.stateNode.containerInfo),Gl(e),Rl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Kl,Kl=16777216,Gl(e),Kl=t):Gl(e))}}function Ql(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Xl(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];kl=r,Zl(r,e)}Ql(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)$l(e),e=e.sibling}function $l(e){switch(e.tag){case 0:case 11:case 15:Xl(e),2048&e.flags&&sl(9,e,e.return);break;case 3:case 12:default:Xl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,Jl(e)):Xl(e)}}function Jl(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];kl=r,Zl(r,e)}Ql(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:sl(8,t,t.return),Jl(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,Jl(t));break;default:Jl(t)}e=e.sibling}}function Zl(e,t){for(;null!==kl;){var n=kl;switch(n.tag){case 0:case 11:case 15:sl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Do(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,kl=r;else e:for(n=e;null!==kl;){var o=(r=kl).sibling,i=r.return;if(Cl(r),r===n){kl=null;break e}if(null!==o){o.return=i,kl=o;break e}kl=i}}}var ec={getCacheForType:function(e){var t=Eo(Ro),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},tc="function"===typeof WeakMap?WeakMap:Map,nc=0,rc=null,oc=null,ic=0,ac=0,sc=null,lc=!1,cc=!1,uc=!1,dc=0,pc=0,hc=0,fc=0,mc=0,_c=0,gc=0,vc=null,yc=null,bc=!1,wc=0,xc=1/0,kc=null,Sc=null,Cc=0,Ac=null,Ec=null,jc=0,Tc=0,Pc=null,Nc=null,Ic=0,Rc=null;function Oc(){if(0!==(2&nc)&&0!==ic)return ic&-ic;if(null!==O.T){return 0!==Fo?Fo:Tu()}return Pe()}function Dc(){0===_c&&(_c=0===(536870912&ic)||io?xe():536870912);var e=os.current;return null!==e&&(e.flags|=32),_c}function Mc(e,t,n){(e!==rc||2!==ac&&9!==ac)&&null===e.cancelPendingCommit||(Hc(e,0),Bc(e,ic,_c,!1)),Ce(e,n),0!==(2&nc)&&e===rc||(e===rc&&(0===(2&nc)&&(fc|=n),4===pc&&Bc(e,ic,_c,!1)),xu(e))}function Lc(e,t,n){if(0!==(6&nc))throw Error(a(327));for(var r=!n&&0===(124&t)&&0===(t&e.expiredLanes)||be(e,t),o=r?function(e,t){var n=nc;nc|=2;var r=Vc(),o=Kc();rc!==e||ic!==t?(kc=null,xc=te()+500,Hc(e,t)):cc=be(e,t);e:for(;;)try{if(0!==ac&&null!==oc){t=oc;var i=sc;t:switch(ac){case 1:ac=0,sc=null,Zc(e,t,i,1);break;case 2:case 9:if(Xo(i)){ac=0,sc=null,Jc(t);break}t=function(){2!==ac&&9!==ac||rc!==e||(ac=7),xu(e)},i.then(t,t);break e;case 3:ac=7;break e;case 4:ac=5;break e;case 7:Xo(i)?(ac=0,sc=null,Jc(t)):(ac=0,sc=null,Zc(e,t,i,7));break;case 5:var s=null;switch(oc.tag){case 26:s=oc.memoizedState;case 5:case 27:var l=oc;if(!s||qd(s)){ac=0,sc=null;var c=l.sibling;if(null!==c)oc=c;else{var u=l.return;null!==u?(oc=u,eu(u)):oc=null}break t}}ac=0,sc=null,Zc(e,t,i,5);break;case 6:ac=0,sc=null,Zc(e,t,i,6);break;case 8:Uc(),pc=6;break e;default:throw Error(a(462))}}Xc();break}catch(d){Wc(e,d)}return yo=vo=null,O.H=r,O.A=o,nc=n,null!==oc?0:(rc=null,ic=0,jr(),pc)}(e,t):Yc(e,t,!0),i=r;;){if(0===o){cc&&!r&&Bc(e,t,0,!1);break}if(n=e.current.alternate,!i||zc(n)){if(2===o){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=vc;var c=l.current.memoizedState.isDehydrated;if(c&&(Hc(l,s).flags|=256),2!==(s=Yc(l,s,!1))){if(uc&&!c){l.errorRecoveryDisabledLanes|=i,fc|=i,o=4;break e}i=yc,yc=o,null!==i&&(null===yc?yc=i:yc.push.apply(yc,i))}o=s}if(i=!1,2!==o)continue}}if(1===o){Hc(e,0),Bc(e,t,0,!0);break}e:{switch(r=e,i=o){case 0:case 1:throw Error(a(345));case 4:if((4194048&t)!==t)break;case 6:Bc(r,t,_c,!lc);break e;case 2:yc=null;break;case 3:case 5:break;default:throw Error(a(329))}if((62914560&t)===t&&10<(o=wc+300-te())){if(Bc(r,t,_c,!lc),0!==ye(r,0,!0))break e;r.timeoutHandle=ld(Fc.bind(null,r,n,yc,kc,bc,t,_c,fc,gc,lc,i,2,-0,0),o)}else Fc(r,n,yc,kc,bc,t,_c,fc,gc,lc,i,0,-0,0)}break}o=Yc(e,t,!1),i=!1}xu(e)}function Fc(e,t,n,r,o,i,s,l,c,u,d,p,h,f){if(e.timeoutHandle=-1,(8192&(p=t.subtreeFlags)||16785408===(16785408&p))&&(Ud={stylesheets:null,count:0,unsuspend:Hd},Yl(t),null!==(p=function(){if(null===Ud)throw Error(a(475));var e=Ud;return e.stylesheets&&0===e.count&&Kd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout((function(){if(e.stylesheets&&Kd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}),6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=p(nu.bind(null,e,t,i,n,r,o,s,l,c,d,1,h,f)),void Bc(e,i,s,!u);nu(e,t,i,n,r,o,s,l,c)}function zc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Qn(i(),o))return!1}catch(a){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bc(e,t,n,r){t&=~mc,t&=~fc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-he(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Ae(e,n,t)}function qc(){return 0!==(6&nc)||(ku(0,!1),!1)}function Uc(){if(null!==oc){if(0===ac)var e=oc.return;else yo=vo=null,Fi(e=oc),Qa=null,Xa=0,e=oc;for(;null!==e;)il(e.alternate,e),e=e.return;oc=null}}function Hc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,cd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Uc(),rc=e,oc=n=Fr(e.current,null),ic=t,ac=0,sc=null,lc=!1,cc=be(e,t),uc=!1,gc=_c=mc=fc=hc=pc=0,yc=vc=null,bc=!1,0!==(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-he(r),i=1<<o;t|=e[o],r&=~i}return dc=t,jr(),n}function Wc(e,t){bi=null,O.H=Va,t===Ko||t===Yo?(t=ei(),ac=3):t===Go?(t=ei(),ac=4):ac=t===As?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,sc=t,null===oc&&(pc=1,ws(e,Sr(t,e.current)))}function Vc(){var e=O.H;return O.H=Va,null===e?Va:e}function Kc(){var e=O.A;return O.A=ec,e}function Gc(){pc=4,lc||(4194048&ic)!==ic&&null!==os.current||(cc=!0),0===(134217727&hc)&&0===(134217727&fc)||null===rc||Bc(rc,ic,_c,!1)}function Yc(e,t,n){var r=nc;nc|=2;var o=Vc(),i=Kc();rc===e&&ic===t||(kc=null,Hc(e,t)),t=!1;var a=pc;e:for(;;)try{if(0!==ac&&null!==oc){var s=oc,l=sc;switch(ac){case 8:Uc(),a=6;break e;case 3:case 2:case 9:case 6:null===os.current&&(t=!0);var c=ac;if(ac=0,sc=null,Zc(e,s,l,c),n&&cc){a=0;break e}break;default:c=ac,ac=0,sc=null,Zc(e,s,l,c)}}Qc(),a=pc;break}catch(u){Wc(e,u)}return t&&e.shellSuspendCounter++,yo=vo=null,nc=r,O.H=o,O.A=i,null===oc&&(rc=null,ic=0,jr()),a}function Qc(){for(;null!==oc;)$c(oc)}function Xc(){for(;null!==oc&&!Z();)$c(oc)}function $c(e){var t=$s(e.alternate,e,dc);e.memoizedProps=e.pendingProps,null===t?eu(e):oc=t}
vendor: 4,379 bytes, line 2
2function Jc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ms(n,t,t.pendingProps,t.type,void 0,ic);break;case 11:t=Ms(n,t,t.pendingProps,t.type.render,t.ref,ic);break;case 5:Fi(t);default:il(n,t),t=$s(n,t=oc=zr(t,dc),dc)}e.memoizedProps=e.pendingProps,null===t?eu(e):oc=t}function Zc(e,t,n,r){yo=vo=null,Fi(t),Qa=null,Xa=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,null!==r&&"object"===typeof r&&"function"===typeof r.then){if(null!==(t=n.alternate)&&So(t,n,o,!0),null!==(n=os.current)){switch(n.tag){case 13:return null===is?Gc():null===n.alternate&&0===pc&&(pc=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===Qo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),du(e,r,o)),!1;case 22:return n.flags|=65536,r===Qo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),du(e,r,o)),!1}throw Error(a(435,n.tag))}return du(e,r,o),Gc(),!1}if(io)return null!==(t=os.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==lo&&_o(Sr(e=Error(a(422),{cause:r}),n))):(r!==lo&&_o(Sr(t=Error(a(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=Sr(r,n),li(e,o=ks(e.stateNode,r,o)),4!==pc&&(pc=2)),!1;var i=Error(a(520),{cause:r});if(i=Sr(i,n),null===vc?vc=[i]:vc.push(i),4!==pc&&(pc=2),null===t)return!0;r=Sr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,li(n,e=ks(n.stateNode,r,e)),!1;case 1:if(t=n.type,i=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==i&&"function"===typeof i.componentDidCatch&&(null===Sc||!Sc.has(i))))return n.flags|=65536,o&=-o,n.lanes|=o,Cs(o=Ss(o),e,n,r),li(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,ic))return pc=1,ws(e,Sr(n,e.current)),void(oc=null)}catch(i){if(null!==o)throw oc=o,i;return pc=1,ws(e,Sr(n,e.current)),void(oc=null)}32768&t.flags?(io||1===r?e=!0:cc||0!==(536870912&ic)?e=!1:(lc=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=os.current)&&13===r.tag&&(r.flags|=16384))),tu(t,e)):eu(t)}function eu(e){var t=e;do{if(0!==(32768&t.flags))return void tu(t,lc);e=t.return;var n=rl(t.alternate,t,dc);if(null!==n)return void(oc=n);if(null!==(t=t.sibling))return void(oc=t);oc=t=e}while(null!==t);0===pc&&(pc=5)}function tu(e,t){do{var n=ol(e.alternate,e);if(null!==n)return n.flags&=32767,void(oc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(oc=e);oc=e=n}while(null!==e);pc=6,oc=null}function nu(e,t,n,r,o,i,s,l,c){e.cancelPendingCommit=null;do{su()}while(0!==Cc);if(0!==(6&nc))throw Error(a(327));if(null!==t){if(t===e.current)throw Error(a(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-he(n),d=1<<u;s[u]=0,l[u]=-1;var p=c[u];if(null!==p)for(c[u]=null,u=0;u<p.length;u++){var h=p[u];null!==h&&(h.lane&=-536870913)}n&=~d}0!==r&&Ae(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,i|=Er,s,l,c),e===rc&&(oc=rc=null,ic=0),Ec=t,Ac=e,jc=n,Tc=i,Pc=o,Nc=r,0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?(e.callbackNode=null,e.callbackPriority=0,$(ie,(function(){return lu(),null}))):(e.callbackNode=null,e.callbackPriority=0),r=0!==(13878&t.flags),0!==(13878&t.subtreeFlags)||r){r=O.T,O.T=null,o=D.p,D.p=2,s=nc,nc|=4;try{!function(e,t){if(e=e.containerInfo,td=np,tr(e=er(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(_){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var f;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==i||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(f=p.firstChild);)h=p,p=f;for(;;){if(p===e)break t;if(h===n&&++u===o&&(l=s),h===i&&++d===r&&(c=s),null!==(f=p.nextSibling))break;h=(p=h).parentNode}p=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;
2for(nd={focusedElem:e,selectionRange:n},np=!1,kl=t;null!==kl;)if(e=(t=kl).child,0!==(1024&t.subtreeFlags)&&null!==e)e.return=t,kl=e;else for(;null!==kl;){switch(i=(t=kl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==i){e=void 0,n=t,o=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var m=_s(n.type,o,(n.elementType,n.type));e=r.getSnapshotBeforeUpdate(m,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(g){uu(n,n.return,g)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))md(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":md(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(a(163))}if(null!==(e=t.sibling)){e.return=t.return,kl=e;break}kl=t.return}}(e,t)}finally{nc=s,D.p=o,O.T=r}}Cc=1,ru(),ou(),iu()}}function ru(){if(1===Cc){Cc=0;var e=Ac,t=Ec,n=0!==(13878&t.flags);if(0!==(13878&t.subtreeFlags)||n){n=O.T,O.T=null;var r=D.p;D.p=2;var o=nc;nc|=4;try{Ol(t,e);var i=nd,a=er(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&Zn(s.ownerDocument.documentElement,s)){if(null!==l&&tr(s)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var h=p.getSelection(),f=s.textContent.length,m=Math.min(l.start,f),_=void 0===l.end?m:Math.min(l.end,f);!h.extend&&m>_&&(a=_,_=m,m=a);var g=Jn(s,m),v=Jn(s,_);if(g&&v&&(1!==h.rangeCount||h.anchorNode!==g.node||h.anchorOffset!==g.offset||h.focusNode!==v.node||h.focusOffset!==v.offset)){var y=d.createRange();y.setStart(g.node,g.offset),h.removeAllRanges(),m>_?(h.addRange(y),h.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),h.addRange(y))}}}}for(d=[],h=s;h=h.parentNode;)1===h.nodeType&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for("function"===typeof s.focus&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}np=!!td,nd=td=null}finally{nc=o,D.p=r,O.T=n}}e.current=t,Cc=2}}function ou(){if(2===Cc){Cc=0;var e=Ac,t=Ec,n=0!==(8772&t.flags);if(0!==(8772&t.subtreeFlags)||n){n=O.T,O.T=null;var r=D.p;D.p=2;var o=nc;nc|=4;try{Sl(e,t.alternate,t)}finally{nc=o,D.p=r,O.T=n}}Cc=3}}function iu(){if(4===Cc||3===Cc){Cc=0,ee();var e=Ac,t=Ec,n=jc,r=Nc;0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?Cc=5:(Cc=0,Ec=Ac=null,au(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Sc=null),Te(n),t=t.stateNode,de&&"function"===typeof de.onCommitFiberRoot)try{de.onCommitFiberRoot(ue,t,void 0,128===(128&t.current.flags))}catch(l){}if(null!==r){t=O.T,o=D.p,D.p=2,O.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{O.T=t,D.p=o}}0!==(3&jc)&&su(),xu(e),o=e.pendingLanes,0!==(4194090&n)&&0!==(42&o)?e===Rc?Ic++:(Ic=0,Rc=e):Ic=0,ku(0,!1)}}function au(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Do(t)))}function su(e){return ru(),ou(),iu(),lu()}function lu(){if(5!==Cc)return!1;var e=Ac,t=Tc;Tc=0;var n=Te(jc),r=O.T,o=D.p;try{D.p=32>n?32:n,O.T=null,n=Pc,Pc=null;var i=Ac,s=jc;if(Cc=0,Ec=Ac=null,jc=0,0!==(6&nc))throw Error(a(331));var l=nc;if(nc|=4,$l(i.current),Hl(i,i.current,s,n),nc=l,ku(0,!1),de&&"function"===typeof de.onPostCommitFiberRoot)try{de.onPostCommitFiberRoot(ue,i)}catch(c){}return!0}finally{D.p=o,O.T=r,au(e,t)}}function cu(e,t,n){t=Sr(n,t),null!==(e=ai(e,t=ks(e.stateNode,t,2),2))&&(Ce(e,2),xu(e))}function uu(e,t,n){if(3===e.tag)cu(e,e,n);else for(;null!==t;){if(3===t.tag){cu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Sc||!Sc.has(r))){e=Sr(n,e),null!==(r=ai(t,n=Ss(2),2))&&(Cs(n,r,t,e),Ce(r,2),xu(r));break}}t=t.return}}function du(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new tc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(uc=!0,o.add(n),e=pu.bind(null,e,t,n),t.then(e,e))}function pu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,rc===e&&(ic&n)===n&&(4===pc||3===pc&&(62914560&ic)===ic&&300>te()-wc?0===(2&nc)&&Hc(e,0):mc|=n,gc===ic&&(gc=0)),xu(e)}function hu(e,t){0===t&&(t=ke()),null!==(e=Nr(e,t))&&(Ce(e,t),xu(e))}function fu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),hu(e,n)}function mu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}null!==r&&r.delete(t),hu(e,n)}var _u=null,gu=null,vu=!1,yu=!1,bu=!1,wu=0;function xu(e){e!==gu&&null===e.next&&(null===gu?_u=gu=e:gu=gu.next=e),yu=!0,vu||(vu=!0,dd((function(){0!==(6&nc)?$(re,Su):Cu()})))}function ku(e,t){if(!bu&&yu){bu=!0;do{for(var n=!1,r=_u;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-he(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,ju(r,i))}else i=ic,0===(3&(i=ye(r,r===rc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||be(r,i)||(n=!0,ju(r,i));r=r.next}}while(n);bu=!1}}function Su(){Cu()}function Cu(){yu=vu=!1;var e=0;0!==wu&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==sd&&(sd=e,!0);return sd=null,!1}()&&(e=wu),wu=0);for(var t=te(),n=null,r=_u;null!==r;){var o=r.next,i=Au(r,t);0===i?(r.next=null,null===n?_u=o:n.next=o,null===o&&(gu=n)):(n=r,(0!==e||0!==(3&i))&&(yu=!0)),r=o}ku(e,!1)}function Au(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-he(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=we(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=ic,n=ye(e,e===(t=rc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===ac||9===ac)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&J(r),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||be(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&J(r),Te(n)){case 2:case 8:n=oe;break;case 32:default:n=ie;break;case 268435456:n=se}return r=Eu.bind(null,e),n=$(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&J(r),e.callbackPriority=2,e.callbackNode=null,2}function Eu(e,t){if(0!==Cc&&5!==Cc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(su()&&e.callbackNode!==n)return null;var r=ic;return 0===(r=ye(e,e===rc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Lc(e,r,t),Au(e,te()),null!=e.callbackNode&&e.callbackNode===n?Eu.bind(null,e):null)}
vendor: 5,286 bytes, line 2
2function ju(e,t){if(su())return null;Lc(e,t,!0)}function Tu(){return 0===wu&&(wu=xe()),wu}function Pu(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:Tt(""+e)}function Nu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Iu=0;Iu<wr.length;Iu++){var Ru=wr[Iu];xr(Ru.toLowerCase(),"on"+(Ru[0].toUpperCase()+Ru.slice(1)))}xr(hr,"onAnimationEnd"),xr(fr,"onAnimationIteration"),xr(mr,"onAnimationStart"),xr("dblclick","onDoubleClick"),xr("focusin","onFocus"),xr("focusout","onBlur"),xr(_r,"onTransitionRun"),xr(gr,"onTransitionStart"),xr(vr,"onTransitionCancel"),xr(yr,"onTransitionEnd"),Qe("onMouseEnter",["mouseout","mouseover"]),Qe("onMouseLeave",["mouseout","mouseover"]),Qe("onPointerEnter",["pointerout","pointerover"]),Qe("onPointerLeave",["pointerout","pointerover"]),Ye("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ye("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ye("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ye("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ye("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ye("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ou="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Du=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ou));function Mu(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){gs(u)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=c;try{i(o)}catch(u){gs(u)}o.currentTarget=null,i=l}}}}function Lu(e,t){var n=t[De];void 0===n&&(n=t[De]=new Set);var r=e+"__bubble";n.has(r)||(qu(t,e,2,!1),n.add(r))}function Fu(e,t,n){var r=0;t&&(r|=4),qu(n,e,r,t)}var zu="_reactListening"+Math.random().toString(36).slice(2);function Bu(e){if(!e[zu]){e[zu]=!0,Ke.forEach((function(t){"selectionchange"!==t&&(Du.has(t)||Fu(t,!1,e),Fu(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zu]||(t[zu]=!0,Fu("selectionchange",!1,t))}}function qu(e,t,n,r){switch(cp(t)){case 2:var o=rp;break;case 8:o=op;break;default:o=ip}n=o.bind(null,t,n,e),o=void 0,!zt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Uu(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&a.stateNode.containerInfo===o)return;a=a.return}for(;null!==s;){if(null===(a=qe(s)))return;if(5===(c=a.tag)||6===c||26===c||27===c){r=i=a;continue e}s=s.parentNode}}r=r.return}Mt((function(){var r=i,o=Nt(n),a=[];e:{var s=br.get(e);if(void 0!==s){var c=Zt,u=e;switch(e){case"keypress":if(0===Vt(n))break e;case"keydown":case"keyup":c=mn;break;case"focusin":u="focus",c=an;break;case"focusout":u="blur",c=an;break;case"beforeblur":case"afterblur":c=an;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=rn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=on;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=gn;break;case hr:case fr:case mr:c=sn;break;case yr:c=vn;break;case"scroll":case"scrollend":c=tn;break;case"wheel":c=yn;break;case"copy":case"cut":case"paste":c=ln;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=_n;break;case"toggle":case"beforetoggle":c=bn}var d=0!==(4&t),p=!d&&("scroll"===e||"scrollend"===e),h=d?null!==s?s+"Capture":null:s;d=[];for(var f,m=r;null!==m;){var _=m;if(f=_.stateNode,5!==(_=_.tag)&&26!==_&&27!==_||null===f||null===h||null!=(_=Lt(m,h))&&d.push(Hu(m,_,f)),p)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,o),a.push({event:s,listeners:d}))}}if(0===(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Pt||!(u=n.relatedTarget||n.fromElement)||!qe(u)&&!u[Oe])&&(c||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?qe(u):null)&&(p=l(u),d=u.tag,u!==p||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){
vendor: 6,851 bytes, line 2
2if(d=rn,_="onMouseLeave",h="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=_n,_="onPointerLeave",h="onPointerEnter",m="pointer"),p=null==c?s:He(c),f=null==u?s:He(u),(s=new d(_,m+"leave",c,n,o)).target=p,s.relatedTarget=f,_=null,qe(o)===r&&((d=new d(h,m+"enter",u,n,o)).target=f,d.relatedTarget=p,_=d),p=_,c&&u)e:{for(h=u,m=0,f=d=c;f;f=Vu(f))m++;for(f=0,_=h;_;_=Vu(_))f++;for(;0<m-f;)d=Vu(d),m--;for(;0<f-m;)h=Vu(h),f--;for(;m--;){if(d===h||null!==h&&d===h.alternate)break e;d=Vu(d),h=Vu(h)}d=null}else d=null;null!==c&&Ku(a,s,c,d,!1),null!==u&&null!==p&&Ku(a,p,u,d,!0)}if("select"===(c=(s=r?He(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var g=Fn;else if(In(s))if(zn)g=Yn;else{g=Kn;var v=Vn}else!(c=s.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&At(r.elementType)&&(g=Fn):g=Gn;switch(g&&(g=g(e,r))?Rn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&vt(s,"number",s.value)),v=r?He(r):window,e){case"focusin":(In(v)||"true"===v.contentEditable)&&(rr=v,or=r,ir=null);break;case"focusout":ir=or=rr=null;break;case"mousedown":ar=!0;break;case"contextmenu":case"mouseup":case"dragend":ar=!1,sr(a,n,o);break;case"selectionchange":if(nr)break;case"keydown":case"keyup":sr(a,n,o)}var y;if(xn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Pn?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Cn&&"ko"!==n.locale&&(Pn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Pn&&(y=Wt()):(Ut="value"in(qt=o)?qt.value:qt.textContent,Pn=!0)),0<(v=Wu(r,b)).length&&(b=new cn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Tn(n))&&(b.data=y))),(y=Sn?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(En=!0,An);case"textInput":return(e=t.data)===An&&En?null:e;default:return null}}(e,n):function(e,t){if(Pn)return"compositionend"===e||!xn&&jn(e,t)?(e=Wt(),Ht=Ut=qt=null,Pn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(b=Wu(r,"onBeforeInput")).length&&(v=new cn("onBeforeInput","beforeinput",null,n,o),a.push({event:v,listeners:b}),v.data=y)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Pu((o[Re]||null).action),a=r.submitter;a&&null!==(t=(t=a[Re]||null)?Pu(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new Zt("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==wu){var e=a?Nu(o,a):new FormData(o);Na(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"===typeof i&&(s.preventDefault(),e=a?Nu(o,a):new FormData(o),Na(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(a,e,r,n,o)}Mu(a,t)}))}function Hu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wu(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Lt(e,n))&&r.unshift(Hu(e,o,i)),null!=(o=Lt(e,t))&&r.push(Hu(e,o,i))),3===e.tag)return r;e=e.return}return[]}function Vu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Ku(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===c||(l=c,o?null!=(c=Lt(n,i))&&a.unshift(Hu(n,c,l)):o||null!=(c=Lt(n,i))&&a.push(Hu(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gu=/\r\n?/g,Yu=/\u0000|\uFFFD/g;function Qu(e){return("string"===typeof e?e:""+e).replace(Gu,"\n").replace(Yu,"")}function Xu(e,t){return t=Qu(t),Qu(e)===t}function $u(){}function Ju(e,t,n,r,o,i){switch(n){case"children":"string"===typeof r?"body"===t||"textarea"===t&&""===r||xt(e,r):("number"===typeof r||"bigint"===typeof r)&&"body"!==t&&xt(e,""+r);break;case"className":nt(e,"class",r);break;case"tabIndex":nt(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":nt(e,n,r);break;case"style":Ct(e,r,i);break;case"data":if("object"!==t){nt(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"===typeof r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=Tt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"===typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof i&&("formAction"===n?("input"!==t&&Ju(e,t,"name",o.name,o,null),Ju(e,t,"formEncType",o.formEncType,o,null),Ju(e,t,"formMethod",o.formMethod,o,null),Ju(e,t,"formTarget",o.formTarget,o,null)):(Ju(e,t,"encType",o.encType,o,null),Ju(e,t,"method",o.method,o,null),Ju(e,t,"target",o.target,o,null))),null==r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=Tt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=$u);break;case"onScroll":null!=r&&Lu("scroll",e);break;case"onScrollEnd":null!=r&&Lu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(a(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"muted":e.muted=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"===typeof r||"boolean"===typeof r||"symbol"===typeof r){e.removeAttribute("xlink:href");break}n=Tt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
2ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!==typeof r&&"symbol"!==typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"===typeof r||"symbol"===typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Lu("beforetoggle",e),Lu("toggle",e),tt(e,"popover",r);break;case"xlinkActuate":rt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":rt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":rt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":rt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":rt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":rt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":rt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":rt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":rt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":tt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&tt(e,n=Et.get(n)||n,r)}}function Zu(e,t,n,r,o,i){switch(n){case"style":Ct(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(a(60));e.innerHTML=n}}break;case"children":"string"===typeof r?xt(e,r):("number"===typeof r||"bigint"===typeof r)&&xt(e,""+r);break;case"onScroll":null!=r&&Lu("scroll",e);break;case"onScrollEnd":null!=r&&Lu("scrollend",e);break;case"onClick":null!=r&&(e.onclick=$u);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ge.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"===typeof(i=null!=(i=e[Re]||null)?i[n]:null)&&e.removeEventListener(t,i,o),"function"!==typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):tt(e,n,r):("function"!==typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function ed(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Lu("error",e),Lu("load",e);var r,o=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Ju(e,t,r,s,n,null)}}return i&&Ju(e,t,"srcSet",n.srcSet,n,null),void(o&&Ju(e,t,"src",n.src,n,null));case"input":Lu("invalid",e);var l=r=s=i=null,c=null,u=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":i=d;break;case"type":s=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(a(137,t));break;default:Ju(e,t,o,d,n,null)}}return gt(e,r,l,c,u,s,i,!1),void dt(e);case"select":for(i in Lu("invalid",e),o=s=r=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":o=l;default:Ju(e,t,i,l,n,null)}return t=r,n=s,e.multiple=!!o,void(null!=t?yt(e,!!o,t,!1):null!=n&&yt(e,!!o,n,!0));case"textarea":for(s in Lu("invalid",e),r=i=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":o=l;break;case"defaultValue":i=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(a(91));break;default:Ju(e,t,s,l,n,null)}return wt(e,o,i,r),void dt(e);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(o=n[c]))if("selected"===c)e.selected=o&&"function"!==typeof o&&"symbol"!==typeof o;else Ju(e,t,c,o,n,null);return;case"dialog":Lu("beforetoggle",e),Lu("toggle",e),Lu("cancel",e),Lu("close",e);break;case"iframe":case"object":Lu("load",e);break;case"video":case"audio":for(o=0;o<Ou.length;o++)Lu(Ou[o],e);break;case"image":Lu("error",e),Lu("load",e);break;case"details":Lu("toggle",e);break;case"embed":case"source":case"link":Lu("error",e),Lu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(o=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Ju(e,t,u,o,n,null)}return;default:if(At(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(o=n[d])&&Zu(e,t,d,o,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(o=n[l])&&Ju(e,t,l,o,n,null))}var td=null,nd=null;
vendor: 4,435 bytes, line 2
2function rd(e){return 9===e.nodeType?e:e.ownerDocument}function od(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function id(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function ad(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var sd=null;var ld="function"===typeof setTimeout?setTimeout:void 0,cd="function"===typeof clearTimeout?clearTimeout:void 0,ud="function"===typeof Promise?Promise:void 0,dd="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ud?function(e){return ud.resolve(null).then(e).catch(pd)}:ld;function pd(e){setTimeout((function(){throw e}))}function hd(e){return"head"===e}function fd(e,t){var n=t,r=0,o=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0<r&&8>r){n=r;var a=e.ownerDocument;if(1&n&&wd(a.documentElement),2&n&&wd(a.body),4&n)for(wd(n=a.head),a=n.firstChild;a;){var s=a.nextSibling,l=a.nodeName;a[ze]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===a.rel.toLowerCase()||n.removeChild(a),a=s}}if(0===o)return e.removeChild(i),void Ep(t);o--}else"$"===n||"$?"===n||"$!"===n?o++:r=n.charCodeAt(0)-48;else r=0;n=i}while(n);Ep(t)}function md(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":md(n),Be(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function _d(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function gd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var vd=null;function yd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function bd(e,t,n){switch(t=rd(n),e){case"html":if(!(e=t.documentElement))throw Error(a(452));return e;case"head":if(!(e=t.head))throw Error(a(453));return e;case"body":if(!(e=t.body))throw Error(a(454));return e;default:throw Error(a(451))}}function wd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Be(e)}var xd=new Map,kd=new Set;function Sd(e){return"function"===typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Cd=D.d;D.d={f:function(){var e=Cd.f(),t=qc();return e||t},r:function(e){var t=Ue(e);null!==t&&5===t.tag&&"form"===t.type?Ra(t):Cd.r(e)},D:function(e){Cd.D(e),Ed("dns-prefetch",e,null)},C:function(e,t){Cd.C(e,t),Ed("preconnect",e,t)},L:function(e,t,n){Cd.L(e,t,n);var r=Ad;if(r&&e&&t){var o='link[rel="preload"][as="'+mt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+mt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(o+='[imagesizes="'+mt(n.imageSizes)+'"]')):o+='[href="'+mt(e)+'"]';var i=o;switch(t){case"style":i=Td(e);break;case"script":i=Id(e)}xd.has(i)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),xd.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Pd(i))||"script"===t&&r.querySelector(Rd(i))||(ed(t=r.createElement("link"),"link",e),Ve(t),r.head.appendChild(t)))}},m:function(e,t){Cd.m(e,t);var n=Ad;if(n&&e){var r=t&&"string"===typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+mt(r)+'"][href="'+mt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Id(e)}if(!xd.has(i)&&(e=p({rel:"modulepreload",href:e},t),xd.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Rd(i)))return}ed(r=n.createElement("link"),"link",e),Ve(r),n.head.appendChild(r)}}},X:function(e,t){Cd.X(e,t);var n=Ad;if(n&&e){var r=We(n).hoistableScripts,o=Id(e),i=r.get(o);i||((i=n.querySelector(Rd(o)))||(e=p({src:e,async:!0},t),(t=xd.get(o))&&Ld(e,t),Ve(i=n.createElement("script")),ed(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}
2,S:function(e,t,n){Cd.S(e,t,n);var r=Ad;if(r&&e){var o=We(r).hoistableStyles,i=Td(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Pd(i)))s.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=xd.get(i))&&Md(e,n);var l=a=r.createElement("link");Ve(l),ed(l,"link",e),l._p=new Promise((function(e,t){l.onload=e,l.onerror=t})),l.addEventListener("load",(function(){s.loading|=1})),l.addEventListener("error",(function(){s.loading|=2})),s.loading|=4,Dd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){Cd.M(e,t);var n=Ad;if(n&&e){var r=We(n).hoistableScripts,o=Id(e),i=r.get(o);i||((i=n.querySelector(Rd(o)))||(e=p({src:e,async:!0,type:"module"},t),(t=xd.get(o))&&Ld(e,t),Ve(i=n.createElement("script")),ed(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Ad="undefined"===typeof document?null:document;function Ed(e,t,n){var r=Ad;if(r&&"string"===typeof t&&t){var o=mt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"===typeof n&&(o+='[crossorigin="'+n+'"]'),kd.has(o)||
vendor: 4,167 bytes, line 2
2(kd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(ed(t=r.createElement("link"),"link",e),Ve(t),r.head.appendChild(t)))}}function jd(e,t,n,r){var o,i,s,l,c=(c=W.current)?Sd(c):null;if(!c)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=Td(n.href),(r=(n=We(c).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=Td(n.href);var u=We(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Pd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),xd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xd.set(e,n),u||(o=c,i=e,s=n,l=d.state,o.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=o.createElement("link"),l.preload=i,i.addEventListener("load",(function(){return l.loading|=1})),i.addEventListener("error",(function(){return l.loading|=2})),ed(i,"link",s),Ve(i),o.head.appendChild(i))))),t&&null===r)throw Error(a(528,""));return d}if(t&&null!==r)throw Error(a(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=Id(n),(r=(n=We(c).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Td(e){return'href="'+mt(e)+'"'}function Pd(e){return'link[rel="stylesheet"]['+e+"]"}function Nd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Id(e){return'[src="'+mt(e)+'"]'}function Rd(e){return"script[async]"+e}function Od(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+mt(n.href)+'"]');if(r)return t.instance=r,Ve(r),r;var o=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Ve(r=(e.ownerDocument||e).createElement("style")),ed(r,"style",o),Dd(r,n.precedence,e),t.instance=r;case"stylesheet":o=Td(n.href);var i=e.querySelector(Pd(o));if(i)return t.state.loading|=4,t.instance=i,Ve(i),i;r=Nd(n),(o=xd.get(o))&&Md(r,o),Ve(i=(e.ownerDocument||e).createElement("link"));var s=i;return s._p=new Promise((function(e,t){s.onload=e,s.onerror=t})),ed(i,"link",r),t.state.loading|=4,Dd(i,n.precedence,e),t.instance=i;case"script":return i=Id(n.src),(o=e.querySelector(Rd(i)))?(t.instance=o,Ve(o),o):(r=n,(o=xd.get(i))&&Ld(r=p({},n),o),Ve(o=(e=e.ownerDocument||e).createElement("script")),ed(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(a(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Dd(r,n.precedence,e));return t.instance}function Dd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Md(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Ld(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Fd=null;function zd(e,t,n){if(null===Fd){var r=new Map,o=Fd=new Map;o.set(n,r)}else(r=(o=Fd).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[ze]||i[Ie]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}
vendor: 4,225 bytes, line 2
2function Bd(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function qd(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var Ud=null;function Hd(){}function Wd(){if(this.count--,0===this.count)if(this.stylesheets)Kd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Vd=null;function Kd(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Vd=new Map,t.forEach(Gd,e),Vd=null,Wd.call(e))}function Gd(e,t){if(!(4&t.state.loading)){var n=Vd.get(e);if(n)var r=n.get(null);else{n=new Map,Vd.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=Wd.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var Yd={$$typeof:w,Provider:null,Consumer:null,_currentValue:M,_currentValue2:M,_threadCount:0};function Qd(e,t,n,r,o,i,a,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Se(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Se(0),this.hiddenUpdates=Se(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Xd(e,t,n,r,o,i,a,s,l,c,u,d){return e=new Qd(e,t,n,a,s,l,c,d),t=1,!0===i&&(t|=24),i=Mr(3,null,null,t),e.current=i,i.stateNode=e,(t=Oo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},ri(i),e}function $d(e){return e?e=Or:Or}function Jd(e,t,n,r,o,i){o=$d(o),null===r.context?r.context=o:r.pendingContext=o,(r=ii(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=ai(e,r,t))&&(Mc(n,0,t),si(n,e,t))}function Zd(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ep(e,t){Zd(e,t),(e=e.alternate)&&Zd(e,t)}function tp(e){if(13===e.tag){var t=Nr(e,67108864);null!==t&&Mc(t,0,67108864),ep(e,67108864)}}var np=!0;function rp(e,t,n,r){var o=O.T;O.T=null;var i=D.p;try{D.p=2,ip(e,t,n,r)}finally{D.p=i,O.T=o}}function op(e,t,n,r){var o=O.T;O.T=null;var i=D.p;try{D.p=8,ip(e,t,n,r)}finally{D.p=i,O.T=o}}function ip(e,t,n,r){if(np){var o=ap(r);if(null===o)Uu(e,t,r,sp,n),vp(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return dp=yp(dp,e,t,n,r,o),!0;case"dragenter":return pp=yp(pp,e,t,n,r,o),!0;case"mouseover":return hp=yp(hp,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return fp.set(i,yp(fp.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,mp.set(i,yp(mp.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(vp(e,r),4&t&&-1<gp.indexOf(e)){for(;null!==o;){var i=Ue(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=ve(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-he(a);s.entanglements[1]|=l,a&=~l}xu(i),0===(6&nc)&&(xc=te()+500,ku(0,!1))}}break;case 13:null!==(s=Nr(i,2))&&Mc(s,0,2),qc(),ep(i,2)}if(null===(i=ap(r))&&Uu(e,t,r,sp,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Uu(e,t,r,null,n)}}function ap(e){return lp(e=Nt(e))}var sp=null;function lp(e){if(sp=null,null!==(e=qe(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=c(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return sp=e,null}function cp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 7,650 bytes, line 2
2:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ne()){case re:return 2;case oe:return 8;case ie:case ae:return 32;case se:return 268435456;default:return 32}default:return 32}}var up=!1,dp=null,pp=null,hp=null,fp=new Map,mp=new Map,_p=[],gp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vp(e,t){switch(e){case"focusin":case"focusout":dp=null;break;case"dragenter":case"dragleave":pp=null;break;case"mouseover":case"mouseout":hp=null;break;case"pointerover":case"pointerout":fp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mp.delete(t.pointerId)}}function yp(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Ue(t))&&tp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function bp(e){var t=qe(e.target);if(null!==t){var n=l(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void function(e,t){var n=D.p;try{return D.p=e,t()}finally{D.p=n}}(e.priority,(function(){if(13===n.tag){var e=Oc();e=je(e);var t=Nr(n,e);null!==t&&Mc(t,0,e),ep(n,e)}}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function wp(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=ap(e.nativeEvent);if(null!==n)return null!==(t=Ue(n))&&tp(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Pt=r,n.target.dispatchEvent(r),Pt=null,t.shift()}return!0}function xp(e,t,n){wp(e)&&n.delete(t)}function kp(){up=!1,null!==dp&&wp(dp)&&(dp=null),null!==pp&&wp(pp)&&(pp=null),null!==hp&&wp(hp)&&(hp=null),fp.forEach(xp),mp.forEach(xp)}function Sp(e,t){e.blockedOn===t&&(e.blockedOn=null,up||(up=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,kp)))}var Cp=null;function Ap(e){Cp!==e&&(Cp=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,(function(){Cp===e&&(Cp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],o=e[t+2];if("function"!==typeof r){if(null===lp(r||n))continue;break}var i=Ue(n);null!==i&&(e.splice(t,3),t-=3,Na(i,{pending:!0,data:o,method:n.method,action:r},r,o))}})))}function Ep(e){function t(t){return Sp(t,e)}null!==dp&&Sp(dp,e),null!==pp&&Sp(pp,e),null!==hp&&Sp(hp,e),fp.forEach(t),mp.forEach(t);for(var n=0;n<_p.length;n++){var r=_p[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<_p.length&&null===(n=_p[0]).blockedOn;)bp(n),null===n.blockedOn&&_p.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[Re]||null;if("function"===typeof i)a||Ap(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[Re]||null)s=a.formAction;else if(null!==lp(o))continue}else s=a.action;"function"===typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Ap(n)}}}function jp(e){this._internalRoot=e}function Tp(e){this._internalRoot=e}Tp.prototype.render=jp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Jd(t.current,Oc(),e,t,null,null)},Tp.prototype.unmount=jp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Jd(e.current,2,null,e,null,null),qc(),t[Oe]=null}},Tp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_p.length&&0!==t&&t<_p[n].priority;n++);_p.splice(n,0,e),0===n&&bp(e)}};var Pp=o.version;if("19.1.0"!==Pp)throw Error(a(527,Pp,"19.1.0"));D.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return u(o),e;if(i===r)return u(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?d(e):null)?null:e.stateNode};var Np={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.1.0"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ip=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ip.isDisabled&&Ip.supportsFiber)try{ue=Ip.inject(Np),de=Ip}catch(Op){}}t.createRoot=function(e,t){if(!s(e))throw Error(a(299));var n=!1,r="",o=vs,i=ys,l=bs;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(i=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Xd(e,1,!1,null,0,n,r,o,i,l,0,null),e[Oe]=t.current,Bu(e),new jp(t)},t.hydrateRoot=function(e,t,n){if(!s(e))throw Error(a(299));var r=!1,o="",i=vs,l=ys,c=bs,u=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onUncaughtError&&(i=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(u=n.formState)),(t=Xd(e,1,!0,t,0,r,o,i,l,c,0,u)).context=$d(null),n=t.current,(o=ii(r=je(r=Oc()))).callback=null,ai(n,o,r),n=r,t.current.lanes=n,Ce(t,n),xu(t),e[Oe]=t.current,Bu(e),new Tp(t)},t.version="19.1.0"},97132:(e,t,n)=>{var r=n(5538),o=n(80726),i=n(78420),a=n(51104),s=n(55119),l=n(44353),c=n(91980),u=n(98124),d=n(29075),p=n(59395),h=n(68592),f=n(26924),m=n(38268),_=n(18630),g=n(20310),v=n(54052),y=n(44543),b=n(57887),w=n(46686),x=n(45921),k=n(28673),S=n(30474),C="[object Arguments]",A="[object Function]",E="[object Object]",j={};j[C]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array
2]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j[E]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j[A]=j["[object WeakMap]"]=!1,e.exports=function e(t,n,T,P,N,I){var R,O=1&n,D=2&n,M=4&n;if(T&&(R=N?T(t,P,N,I):T(t)),void 0!==R)return R;if(!w(t))return t;var L=v(t);if(L){if(R=m(t),!O)return c(t,R)}else{var F=f(t),z=F==A||"[object GeneratorFunction]"==F;if(y(t))return l(t,O);if(F==E||F==C||z&&!N){if(R=D||z?{}:g(t),!O)return D?d(t,s(R,t)):u(t,a(R,t))}else{if(!j[F])return N?t:{};R=_(t,F,O)}}I||(I=new r);var B=I.get(t);if(B)return B;I.set(t,R),x(t)?t.forEach((function(r){R.add(e(r,n,T,r,t,I))})):b(t)&&t.forEach((function(r,o){R.set(o,e(r,n,T,o,t,I))}));var q=L?void 0:(M?D?h:p:D?S:k)(t);return o(q||t,(function(r,o){q&&(r=t[o=r]),i(R,o,e(r,n,T,o,t,I))})),R}},97160:(e,t,n)=>{var r=n(87563),o=n(29935),i=n(24190),a=n(51946),s=n(61714);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},97642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2===0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},97685:(e,t,n)=>{var r=n(87937)(n(56552),"DataView");e.exports=r},97950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(46672)},98049:function(e,t,n){e.exports=function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<o;l++)e[t+l]^=s[l]}});return t.Decryptor=o,t}(),e.mode.CTRGladman}(n(84488),n(52238))},98124:(e,t,n)=>{var r=n(96614),o=n(69621);e.exports=function(e,t){return r(e,o(e),t)}},98655:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(65043);var r=n(70579);const o=e=>{let{message:t="\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644...",overlay:n=!1,size:o="medium"}=e;const i=(0,r.jsxs)("div",{className:"loading-spinner-container ".concat(o),children:[(0,r.jsxs)("div",{className:"modern-loader",children:[(0,r.jsx)("div",{className:"loader-icon",children:(0,r.jsx)("img",{src:"/assets/icons/icon-512x512.png",alt:"Loading"})}),(0,r.jsxs)("div",{className:"wave-dots",children:[(0,r.jsx)("div",{className:"wave-dot"}),(0,r.jsx)("div",{className:"wave-dot"}),(0,r.jsx)("div",{className:"wave-dot"}),(0,r.jsx)("div",{className:"wave-dot"}),(0,r.jsx)("div",{className:"wave-dot"})]}),(0,r.jsxs)("div",{className:"pulse-rings",children:[(0,r.jsx)("div",{className:"pulse-ring"}),(0,r.jsx)("div",{className:"pulse-ring"}),(0,r.jsx)("div",{className:"pulse-ring"})]}),(0,r.jsx)("div",{className:"gradient-spinner",children:(0,r.jsx)("div",{className:"gradient-inner"})})]}),t&&(0,r.jsxs)("div",{className:"loading-message-wrapper",children:[(0,r.jsx)("p",{className:"loading-message",children:t}),(0,r.jsxs)("div",{className:"loading-dots",children:[(0,r.jsx)("span",{}),(0,r.jsx)("span",{}),(0,r.jsx)("span",{})]})]})]});return n?(0,r.jsx)("div",{className:"loading-spinner-overlay",children:i}):i}},98724:(e,t,n)=>{var r=n(27615),o=n(25051),i=n(72154),a=n(48734),s=n(22662);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},99057:(e,t,n)=>{var r=n(35324),o=n(22777),i=n(54052),a=n(69194),s=n(56173),l=n(70914);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(p,u)&&(i(e)||o(e))}}
2,99723:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>m,EN:()=>f,Eh:()=>u,F$:()=>h,GU:()=>j,MK:()=>d,S$:()=>o,ZM:()=>E,ZZ:()=>C,Zw:()=>a,d2:()=>c,f8:()=>v,gn:()=>s,hT:()=>A,j3:()=>l,lQ:()=>i,nJ:()=>p,ox:()=>T,pl:()=>k,y9:()=>S,yy:()=>x});var r=n(5734),o="undefined"===typeof window||"Deno"in globalThis;function i(){}function a(e,t){return"function"===typeof e?e(t):e}function s(e){return"number"===typeof e&&e>=0&&e!==1/0}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t){return"function"===typeof e?e(t):e}function u(e,t){return"function"===typeof e?e(t):e}function d(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==h(a,t.options))return!1}else if(!m(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof s||t.isStale()===s)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function p(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(f(t.options.mutationKey)!==f(i))return!1}else if(!m(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function h(e,t){return((null===t||void 0===t?void 0:t.queryKeyHashFn)||f)(e)}function f(e){return JSON.stringify(e,((e,t)=>b(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function m(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&Object.keys(t).every((n=>m(e[n],t[n]))))}var _=Object.prototype.hasOwnProperty;function g(e,t){if(e===t)return e;const n=y(e)&&y(t);if(!n&&(!b(e)||!b(t)))return t;const r=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),i=o.length,a=n?new Array(i):{};let s=0;for(let l=0;l<i;l++){const i=n?l:o[l],c=e[i],u=t[i];if(c===u){a[i]=c,(n?l<r:_.call(e,i))&&s++;continue}if(null===c||null===u||"object"!==typeof c||"object"!==typeof u){a[i]=u;continue}const d=g(c,u);a[i]=d,d===c&&s++}return r===i&&s===r?e:a}function v(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!w(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!w(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function x(e){return new Promise((t=>{r.zs.setTimeout(t,e)}))}function k(e,t,n){return"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?g(e,t):t}function S(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[...e,t];return n&&r.length>n?r.slice(1):r}function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var A=Symbol();function E(e,t){return!e.queryFn&&null!==t&&void 0!==t&&t.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==A?e.queryFn:()=>Promise.reject(new Error("Missing queryFn: '".concat(e.queryHash,"'")))}function j(e,t){return"function"===typeof e?e(...t):!!e}function T(e,t,n){let r,o=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(null!==r&&void 0!==r||(r=t()),o||(o=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}},99996:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(77784).A)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{40:"f6b4ca7c",50:"78eaaf3b",86:"199f5028",110:"00e91d33",117:"ce13c0b1",173:"792bc7e9",321:"adf2e88a",575:"9dde5f82",709:"fdd7a152",734:"19183e09",780:"5a6a95e7",959:"70534a5a",980:"614c2efd",1155:"9c911acd",1158:"55b8654e",1294:"87acbd29",1386:"04f9f1f2",1587:"97572b1b",1719:"75c7afe8",1729:"1f581f0b",1738:"a5b11bdd",1844:"b1d500c6",2052:"fc712039",2079:"d88c5b20",2244:"fc2f09b9",2286:"60b9d221",2304:"c75ce6d0",2583:"2c0aef3c",2617:"9911750d",2674:"4cfb8f1d",2774:"e30d8ea8",2900:"964e5f9e",2992:"0f6c1ba2",3184:"d40d4900",3201:"507e4bd2",3251:"cdf962be",3645:"f49b98e6",3753:"ae246b48",3796:"72aa58d6",3917:"a0bdee7a",4065:"a19f370f",4455:"07ab0ca8",4631:"f9a267c9",4945:"eee7c2b7",5380:"f1feab5e",5424:"fff9d696",5448:"f3f031a9",5736:"2b373f50",5808:"3dc3139f",5882:"6346d0f3",5902:"
214e7382e",6038:"781d203a",6453:"d4d3116c",6721:"650adf43",6845:"fe695816",6959:"ac1958bf",7257:"690a5239",7433:"b2f2a987",7500:"997ad5a3",7690:"5ad1c02e",7889:"59e6750c",8001:"4cb5c7fe",8054:"a7ebd3f7",8330:"f526823d",8649:"867994d3",8665:"29955515",8690:"99bb07b6",8737:"253644d7",8777:"818a7323",8778:"01df0049",9024:"de74abd1",9425:"c7df2345",9570:"d2085334",9820:"1fe367dc",9875:"3e8554d8",9963:"a9993d92"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{40:"3defb704",86:"2825a536",110:"3f87066d",117:"44d98511",173:"a270fe6c",575:"86f3c345",709:"60fe1e4d",734:"a12d10ca",959:"b5c52d81",1155:"0ffabfd5",1193:"059a562c",1294:"164a656d",1386:"a0567757",1587:"a7e5908f",1729:"96e9de28",1738:"5848862a",1844:"5f96d233",2052:"18dfb990",2286:"53796860",2304:"e3586630",2432:"c5f2b624",2583:"28fe8103",2617:"8b5f9978",2674:"0ac2ad9f",2900:"aef12cb7",2992:"c08bbf3d",3184:"335b5a7f",3201:"deb0859d",3251:"a20b3701",3645:"1a66dc21",3753:"442210be",3917:"43a0a95a",4455:"a52602f7",4631:"9fbf011f",5424:"36b53d41",5448:"e53332ab",5902:"66c60b32",6038:"335b5a7f",6721:"fee7f430",6845:"25cb7a21",6959:"5573bb71",7433:"8e1a61d1",7500:"1f92aa7e",7690:"501d2c5c",7889:"794e58cf",8001:"07a8d831",8054:"ce21ca69",8330:"f8b8831b",8649:"9671837b",8665:"f5798857",8737:"ed99c778",8778:"b44c81be",9024:"49a413d8",9425:"e5c2215b",9570:"978970dd",9820:"6a7f4ff6",9875:"06517060",9963:"6e249112"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="kunaiu-addon-v2:";n.l=(r,o,i,a)=>{if(e[r])e[r].push(o);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[o];var p=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var o=n.miniCssF(e),i=n.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var a;if((o=(a=i[r]).getAttribute("data-href"))===e||o===t)return a}})(o,i))return t();((e,t,r,o,i)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)o();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,a.parentNode&&a.parentNode.removeChild(a),i(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,i,null,t,r)})),t={8792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{40:1,86:1,110:1,117:1,173:1,575:1,709:1,734:1,959:1,1155:1,1193:1,1294:1,1386:1,1587:1,1729:1,1738:1,1844:1,2052:1,2286:1,2304:1,2432:1,2583:1,2617:1,2674:1,2900:1,2992:1,3184:1,3201:1,3251:1,3645:1,3753:1,3917:1,4455:1,4631:1,5424:1,5448:1,5902:1,6038:1,6721:1,6845:1,6959:1,7433:1,7500:1,7690:1,7889:1,8001:1,8054:1,8330:1,8649:1,8665:1,8737:1,8778:1,9024:1,9425:1,9570:1,9820:1,9875:1,9963:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={8792:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else if(/^(1193|2432)$/.test(t))e[t]=0;else{var i=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=i);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,i,a=r[0],s=r[1],l=r[2],c=0;if(a.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)l(n)}for(t&&t(r);c<a.length;c++)i=a[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkkunaiu_addon_v2=self.webpackChunkkunaiu_addon_v2||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(65043),t=n(84391),r=n(22555),o=n(75439),i=n(65982),a=n(60940),s=n(61197),l=n(13005),c=n(10624),u=n(97950);function d(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=d(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const p=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=d(e))&&(r&&(r+=" "),r+=t);return r};let h={data:""},f=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||h},m=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_=/\/\*[^]*?\*\/|  +/g,g=/\n+/g,v=(e,t)=>
2{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?v(a,i):i+"{"+v(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=v(a,t?t.replace(/([^,])+/g,(e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=v.p?v.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},y={},b=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+b(e[n]);return t}return e},w=(e,t,n,r,o)=>{let i=b(e),a=y[i]||(y[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!y[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=m.exec(e.replace(_,""));)t[4]?r.shift():t[3]?(n=t[3].replace(g," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(g," ").trim();return r[0]})(e);y[a]=v(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&y.g?y.g:null;return n&&(y.g=y[a]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(y[a],t,r,s),a};function x(e){let t=this||{},n=e.call?e(t.p):e;return w(n.unshift?n.raw?((e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":v(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),""))(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,f(t.target),t.g,t.o,t.k)}x.bind({g:1}),x.bind({k:1});function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function C(){return C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}function A(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function E(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var T=function(){return""},P=e.createContext({enqueueSnackbar:T,closeSnackbar:T}),N="@media (max-width:599.95px)",I="@media (min-width:600px)",R=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},O=function(e){return""+R(e.vertical)+R(e.horizontal)},D=function(e){return!!e||0===e},M="unmounted",L="exited",F="entering",z="entered",B="exiting",q=function(e){function t(t){var n;n=e.call(this,t)||this;var r,o=t.appear;return n.appearStatus=null,t.in?o?(r=L,n.appearStatus=F):r=z:r=t.unmountOnExit||t.mountOnEnter?M:L,n.state={status:r},n.nextCallback=null,n}A(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===M?{status:L}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==F&&n!==z&&(t=F):n!==F&&n!==z||(t=B)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!==typeof e&&"string"!==typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===F?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===L&&this.setState({status:M})},n.performEnter=function(e){var t=this,n=this.props.enter,r=e,o=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,r),this.safeSetState({status:F},(function(){t.props.onEntering&&t.props.onEntering(t.node,r),t.onTransitionEnd(o.enter,(function(){t.safeSetState({status:z}
2,(function(){t.props.onEntered&&t.props.onEntered(t.node,r)}))}))}))):this.safeSetState({status:z},(function(){t.props.onEntered&&t.props.onEntered(t.node,r)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:B},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:L},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:L},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===M)return null;var t=this.props;return(0,t.children)(e,E(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},S(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(e.Component);function U(){}function H(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function W(t,n){return(0,e.useMemo)((function(){return null==t&&null==n?null:function(e){H(t,e),H(n,e)}}),[t,n])}function V(e){var t=e.timeout,n=e.style,r=void 0===n?{}:n,o=e.mode;return{duration:"object"===typeof t?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}q.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:U,onEntering:U,onEntered:U,onExit:U,onExiting:U,onExited:U};var K="cubic-bezier(0.4, 0, 0.2, 1)",G="cubic-bezier(0.0, 0, 0.2, 1)",Y="cubic-bezier(0.4, 0, 0.6, 1)",Q=function(e){e.scrollTop=e.scrollTop},X=function(e){return Math.round(e)+"ms"};function $(e,t){void 0===e&&(e=["all"]);var n=t||{},r=n.duration,o=void 0===r?300:r,i=n.easing,a=void 0===i?K:i,s=n.delay,l=void 0===s?0:s;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"===typeof o?o:X(o),n="string"===typeof l?l:X(l);return e+" "+t+" "+a+" "+n})).join(",")}function J(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function Z(e,t){if(t){var n=function(e,t){var n,r=t.getBoundingClientRect(),o=J(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=o.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,s=0;if(n&&"none"!==n&&"string"===typeof n){var l=n.split("(")[1].split(")")[0].split(",");a=parseInt(l[4],10),s=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(o.innerWidth+a-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-a)+"px)";case"up":return"translateY("+(o.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var ee=(0,e.forwardRef)((function(t,n){var r=t.children,o=t.direction,i=void 0===o?"down":o,a=t.in,s=t.style,l=t.timeout,c=void 0===l?0:l,u=t.onEnter,d=t.onEntered,p=t.onExit,h=t.onExited,f=E(t,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=(0,e.useRef)(null),_=W(r.ref,m),g=W(_,n),v=(0,e.useCallback)((function(){m.current&&Z(i,m.current)}),[i]);return(0,e.useEffect)((function(){if(!a&&"down"!==i&&"right"!==i){var e=function(e,t){var n;function r(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(r,i)}),t)}return void 0===t&&(t=166),r.clear=function(){clearTimeout(n)},r}((function(){m.current&&Z(i,m.current)})),t=J(m.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[i,a]),(0,e.useEffect)((function(){a||v()}),[a,v]),(0,e.createElement)(q,Object.assign({appear:!0,nodeRef:m,onEnter:function(e,t){Z(i,e),Q(e),u&&u(e,t)},onEntered:d,onEntering:function(e){var t=(null===s||void 0===s?void 0:s.transitionTimingFunction)||G,n=V({timeout:c,mode:"enter",style:C({},s,{transitionTimingFunction:t})});e.style.webkitTransition=$("-webkit-transform",n),e.style.transition=$("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null===s||void 0===s?void 0:s.transitionTimingFunction)||Y,n=V({timeout:c,mode:"exit",style:C({},s,{transitionTimingFunction:t})});e.style.webkitTransition=$("-webkit-transform",n),e.style.transition=$("transform",n),Z(i,e),p&&p(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",h&&h(e)},in:a,timeout:c},f),(function(t,n){return(0,e.cloneElement)(r,C({ref:g,style:C({visibility:"exited"!==t||a?void 0:"hidden"},s,{},r.props.style)},n))}))}));ee.displayName="Slide";var te=function(t){return e.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},ne=function(){return e.createElement(te,null,e.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n        10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},re=function(){return e.createElement(te,null,e.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},oe=function(){return e.createElement(te,null,e.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n        6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n        13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},ie=function(){return e.createElement(te,null,e.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n        0 22,12A10,10 0 0,0 12,2Z"}))},ae={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:e.createElement(ne,null),warning:e.createElement(re,null),error:e.createElement(oe,null),info:e.createElement(ie,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:ee,transitionDuration:{enter:225,exit:195}},se=function(e,t){return function(n,r){return void 0===r&&(r=!1),r?C({},ae[n],{},t[n],{},e[n]):"autoHideDuration"===n?function(e,t){var n=function(e){return"number"===typeof e||null===e};return n(e)?e:n(t)?t:ae.autoHideDuration}(e.autoHideDuration,t.autoHideDuration):"transitionDuration"===n?function(e,t){var n=function(e,t){return t.some((function(t){return typeof e===t}))};return n(e,["string","number"])?e:n(e,["object"])?C({},ae.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?C({},ae.transitionDuration,{},t):ae.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||ae[n]}};function le(e){return Object.entries(e).reduce((function(e,t){var n,r=t[0],o=t[1];return C({},e,((n={})[r]=x(o),n))}),{})}var ce="notistack-SnackbarContainer",ue="notistack-Snackbar",de="notistack-CollapseWrapper",pe="notistack-MuiContent",he=function(e){return"notistack-MuiContent-"+e},fe=le({root:{height:0},entered:{height:"auto"}}),me="0px",_e=(0,e.forwardRef)((function(t,n){var r=t.children,o=t.in,i=t.onExited,a=(0,e.useRef)(null),s=(0,e.useRef)(null),l=W(n,s),c=function(){return a.current?a.current.clientHeight:0};return(0,e.createElement)(q,{in:o,unmountOnExit:!0,onEnter:function(e){e.style.height=me},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=c(),n=V({timeout:175,mode:"enter"}),r=n.duration,o=n.easing;e.style.transitionDuration="string"===typeof r?r:r+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=o||""},onExit:function(e){e.style.height=c()+"px"},onExited:i,onExiting:function(e){Q(e);var t=V({timeout:175,mode:"exit"}),n=t.duration,r=t.easing;e.style.transitionDuration="string"===typeof n?n:n+"ms",e.style.height=me,e.style.transitionTimingFunction=r||""},nodeRef:s,timeout:175},(function(t,n){return(0,e.createElement)("div",Object.assign({ref:l,className:p(fe.root,"entered"===t&&fe.entered),style:C({pointerEvents:"all",overflow:"hidden",minHeight:me,transition:$("height")},"entered"===t&&{overflow:"visible"},{},"exited"===t&&!o&&{visibility:"hidden"})},n),(0,e.createElement)("div",{ref:a,className:de,style:{display:"flex",width:"100%"}},r))}))}));_e.displayName="Collapse";
2var ge={right:"left",left:"right",bottom:"up",top:"down"},ve=function(e){return"anchorOrigin"+O(e)},ye=function(){};function be(e,t){return e.reduce((function(e,n){return null===n||void 0===n?e:function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=[].concat(o);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}}),ye)}var we="undefined"!==typeof window?e.useLayoutEffect:e.useEffect;function xe(t){var n=(0,e.useRef)(t);return we((function(){n.current=t})),(0,e.useCallback)((function(){return n.current.apply(void 0,arguments)}),[])}var ke,Se=(0,e.forwardRef)((function(t,n){var r=t.children,o=t.className,i=t.autoHideDuration,a=t.disableWindowBlurListener,s=void 0!==a&&a,l=t.onClose,c=t.id,u=t.open,d=t.SnackbarProps,h=void 0===d?{}:d,f=(0,e.useRef)(),m=xe((function(){l&&l.apply(void 0,arguments)})),_=xe((function(e){l&&null!=e&&(f.current&&clearTimeout(f.current),f.current=setTimeout((function(){m(null,"timeout",c)}),e))}));(0,e.useEffect)((function(){return u&&_(i),function(){f.current&&clearTimeout(f.current)}}),[u,i,_]);var g=function(){f.current&&clearTimeout(f.current)},v=(0,e.useCallback)((function(){null!=i&&_(.5*i)}),[i,_]);return(0,e.useEffect)((function(){if(!s&&u)return window.addEventListener("focus",v),window.addEventListener("blur",g),function(){window.removeEventListener("focus",v),window.removeEventListener("blur",g)}}),[s,v,u]),(0,e.createElement)("div",Object.assign({ref:n},h,{className:p(ue,o),onMouseEnter:function(e){h.onMouseEnter&&h.onMouseEnter(e),g()},onMouseLeave:function(e){h.onMouseLeave&&h.onMouseLeave(e),v()}}),r)}));Se.displayName="Snackbar";var Ce=le({root:(ke={display:"flex",flexWrap:"wrap",flexGrow:1},ke[I]={flexGrow:"initial",minWidth:"288px"},ke)}),Ae=(0,e.forwardRef)((function(t,n){var r=t.className,o=E(t,["className"]);return e.createElement("div",Object.assign({ref:n,className:p(Ce.root,r)},o))}));Ae.displayName="SnackbarContent";var Ee=le({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),je="notistack-snackbar",Te=(0,e.forwardRef)((function(t,n){var r=t.id,o=t.message,i=t.action,a=t.iconVariant,s=t.variant,l=t.hideIconVariant,c=t.style,u=t.className,d=a[s],h=i;return"function"===typeof h&&(h=h(r)),e.createElement(Ae,{ref:n,role:"alert","aria-describedby":je,style:c,className:p(pe,he(s),Ee.root,Ee[s],u,!l&&d&&Ee.lessPadding)},e.createElement("div",{id:je,className:Ee.message},l?null:d,o),h&&e.createElement("div",{className:Ee.action},h))}));Te.displayName="MaterialDesignContent";var Pe,Ne,Ie,Re,Oe,De=(0,e.memo)(Te),Me=le({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),Le=function(t){var n=(0,e.useRef)(),r=(0,e.useState)(!0),o=r[0],i=r[1],a=be([t.snack.onClose,t.onClose]),s=(0,e.useCallback)((function(){n.current=setTimeout((function(){i((function(e){return!e}))}),125)}),[]);(0,e.useEffect)((function(){return function(){n.current&&clearTimeout(n.current)}}),[]);var l,c=t.snack,u=t.classes,d=t.Component,h=void 0===d?De:d,f=(0,e.useMemo)((function(){return function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter((function(e){return!t[e]})).reduce((function(t,n){var r;return C({},t,((r={})[n]=e[n],r))}),{})}(u)}),[u]),m=c.open,_=c.SnackbarProps,g=c.TransitionComponent,v=c.TransitionProps,y=c.transitionDuration,b=c.disableWindowBlurListener,w=c.content,x=E(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),k=C({direction:(l=x.anchorOrigin,"center"!==l.horizontal?ge[l.horizontal]:ge[l.vertical]),timeout:y},v),S=w;"function"===typeof S&&(S=S(x.id,x.message));var A=["onEnter","onEntered","onExit","onExited"].reduce((function(e,n){var r;return C({},e,((r={})[n]=be([t.snack[n],t[n]],x.id),r))}),{});return e.createElement(_e,{in:o,onExited:A.onExited},e.createElement(Se,{open:m,id:x.id,disableWindowBlurListener:b,autoHideDuration:x.autoHideDuration,className:p(Me.wrappedRoot,f.root,f[ve(x.anchorOrigin)]),SnackbarProps:_,onClose:a},e.createElement(g,Object.assign({},k,{appear:!0,in:m,onExit:A.onExit,onExited:s,onEnter:A.onEnter,onEntered:be([A.onEntered,function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)}],x.id)}),S||e.createElement(h,Object.assign({},x)))))},Fe={default:20,dense:4},ze={default:6,dense:2},Be="."+de,qe=le({root:(Pe={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:$(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Pe[Be]={padding:ze.default+"px 0px",transition:"padding 300ms ease 0ms"},Pe.maxWidth="calc(100% - "+2*Fe.default+"px)",Pe[N]={width:"100%",maxWidth:"calc(100% - 32px)"},Pe),rootDense:(Ne={}
2,Ne[Be]={padding:ze.dense+"px 0px"},Ne),top:{top:Fe.default-ze.default+"px",flexDirection:"column"},bottom:{bottom:Fe.default-ze.default+"px",flexDirection:"column-reverse"},left:(Ie={left:Fe.default+"px"},Ie[I]={alignItems:"flex-start"},Ie[N]={left:"16px"},Ie),right:(Re={right:Fe.default+"px"},Re[I]={alignItems:"flex-end"},Re[N]={right:"16px"},Re),center:(Oe={left:"50%",transform:"translateX(-50%)"},Oe[I]={alignItems:"center"},Oe)}),Ue=function(t){var n=t.classes,r=void 0===n?{}:n,o=t.anchorOrigin,i=t.dense,a=t.children,s=p(ce,qe[o.vertical],qe[o.horizontal],qe.root,r.containerRoot,r["containerAnchorOrigin"+O(o)],i&&qe.rootDense);return e.createElement("div",{className:s},a)},He=(0,e.memo)(Ue),We=function(t){return!("string"===typeof t||(0,e.isValidElement)(t))},Ve=function(t){function n(e){var n;return(n=t.call(this,e)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),void 0===e||null===e)throw new Error("enqueueSnackbar called with invalid argument");var r=We(e)?e:t,o=We(e)?e.message:e,i=r.key,a=r.preventDuplicate,s=E(r,["key","preventDuplicate"]),l=D(i),c=l?i:(new Date).getTime()+Math.random(),u=se(s,n.props),d=C({id:c},s,{message:o,open:!0,entered:!1,requestClose:!1,persist:u("persist"),action:u("action"),content:u("content"),variant:u("variant"),anchorOrigin:u("anchorOrigin"),disableWindowBlurListener:u("disableWindowBlurListener"),autoHideDuration:u("autoHideDuration"),hideIconVariant:u("hideIconVariant"),TransitionComponent:u("TransitionComponent"),transitionDuration:u("transitionDuration"),TransitionProps:u("TransitionProps",!0),iconVariant:u("iconVariant",!0),style:u("style",!0),SnackbarProps:u("SnackbarProps",!0),className:p(n.props.className,s.className)});return d.persist&&(d.autoHideDuration=void 0),n.setState((function(e){if(void 0===a&&n.props.preventDuplicate||a){var t=function(e){return l?e.id===c:e.message===o},r=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(r||i)return e}return n.handleDisplaySnack(C({},e,{queue:[].concat(e.queue,[d])}))})),c},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?C({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var o=e.snacks.map((function(e){return t||e.persist&&!r?C({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),C({},e,{open:!1})):C({},e,{requestClose:!0}))}));return C({},e,{snacks:o})},n.handleEnteredSnack=function(e,t,r){if(!D(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===r?C({},e,{entered:!0}):C({},e)}))}}))},n.handleCloseSnack=function(e,t,r){n.props.onClose&&n.props.onClose(e,t,r);var o=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return o||e.id===r?e.entered?C({},e,{open:!1}):C({},e,{requestClose:!0}):C({},e)})),queue:n.filter((function(e){return e.id!==r}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));D(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!D(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var r=n.processQueue(C({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===r.queue.length?r:n.handleDismissOldest(r)}))},n.enqueueSnackbar,n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(j(n)),closeSnackbar:n.closeSnackbar.bind(j(n))}},n}return A(n,t),n.prototype.render=function(){var t=this,n=this.state.contextValue,r=this.props,o=r.domRoot,i=r.children,a=r.dense,s=void 0!==a&&a,l=r.Components,c=void 0===l?{}:l,d=r.classes,p=this.state.snacks.reduce((function(e,t){var n,r=O(t.anchorOrigin),o=e[r]||[];return C({},e,((n={})[r]=[].concat(o,[t]),n))}),{}),h=Object.keys(p).map((function(n){var r=p[n],o=r[0];return e.createElement(He,{key:n,dense:s,anchorOrigin:o.anchorOrigin,classes:d},r.map((function(n){return e.createElement(Le,{key:n.id,snack:n,classes:d,Component:c[n.variant],onClose:t.handleCloseSnack,onEnter:t.props.onEnter,onExit:t.props.onExit,onExited:be([t.handleExitedSnack,t.props.onExited],n.id),onEntered:be([t.handleEnteredSnack,t.props.onEntered],n.id)})})))}));return e.createElement(P.Provider,{value:n},i,o?(0,u.createPortal)(h,o):h)},S(n,[{key:"maxSnack",get:function(){return this.props.maxSnack||ae.maxSnack}}]),n}(e.Component),Ke=n(40117),Ge=n(89927),Ye=n(53818),Qe=n(71180),Xe=n(32588),$e=n(96172),Je=n(63329),Ze=n(70579);const et=()=>{const{userData:t}=(0,e.useContext)(i.Rs),n=(0,o.Zp)(),{enqueueSnackbar:a,closeSnackbar:s}=(0,e.useContext)(P),{t:l,language:u}=(0,c.o)(),d="ar"===u?"rtl":"ltr",p=(0,e.useRef)({}),h=(0,e.useRef)({users:{},groups:{}}),f=(0,e.useRef)(!1),m=(0,e.useRef)(0),_=(0,e.useRef)((null===t||void 0===t?void 0:t.id)||null);_.current=(null===t||void 0===t?void 0:t.id)||null;const g=async e=>{const r=null===t||void 0===t?void 0:t.id;if(Date.now()<m.current)return;if((e=>{return!!e&&("group_message"===e.type&&e.groupId?Boolean(null===(t=h.current.groups)||void 0===t?void 0:t[e.groupId]):("private_message"===e.type||"chat_message"===e.type)&&Boolean(null===(n=h.current.users)||void 0===n?void 0:n[e.fromUser]));var t,n})(e))return;const o=e.fromUser;let i=p.current[o];if(!i&&o)try{i=(await Ke.firebase.database().ref("kunaiu_bank/".concat(o,"/img")).once("value")).val(),p.current[o]=i}catch(y){console.error("Error fetching user image:",y)}if(!r||_.current!==r)return;f.current=!1;const c=(0,Xe.J)(e,l),u=async()=>{await(async e=>{if(null!==t&&void 0!==t&&t.id&&e&&(!e.read||!0===e.highlighted)){Ye.A.updateNotification(t.id,e.id,{read:!0,highlighted:!1});try{await(0,Qe.Jj)(t.id,e)}catch(y){console.error("Error marking notification as read:",y)}}})(e),(0,Ge.FV)(),window.history.replaceState(null,"");let r="/";e.groupId?r="/messages/group/".concat(e.groupId):"chat_message"===e.type||"private_message"===e.type?r="/messages/chat/".concat(e.fromUser):"group_message"===e.type&&e.groupId?r="/messages/group/".concat(e.groupId):"follow"===e.type?r="/profile/".concat(e.fromUser):"coins_with_comment"===e.type?e.postId&&e.commentId?r="/post/".concat(e.postId,"/comment/").concat(e.commentId,"/single"):e.postId&&(r="/post/".concat(e.postId)):r=e.postId?e.commentId&&e.replyId?"/post/".concat(e.postId,"/comment/").concat(e.commentId,"/reply/").concat(e.replyId,"/single"):e.commentId?"/post/".concat(e.postId,"/comment/").concat(e.commentId,"/single"):"/post/".concat(e.postId):"/notifications";const o={replace:!0};e.preloadedContent&&(o.state={preloadedContent:e.preloadedContent}),n(r,o)};let g;const v=(0,Ze.jsxs)($e.P.div,{drag:"x",dragConstraints:{left:0,right:0},dragElastic:.9,dragMomentum:!1,onDragStart:()=>{f.current=!0},onDragEnd:(e,t)=>{Math.abs(t.offset.x)>55||Math.abs(t.velocity.x)>500?s(g):window.setTimeout((()=>{f.current=!1}),0)},whileTap:{cursor:"grabbing"},style:{display:"flex",alignItems:"flex-start",direction:d,width:"100%",padding:"4px",position:"relative",touchAction:"pan-y",cursor:"grab"},onClick:async e=>{f.current||(s(g),await u())},children:[i&&(0,Ze.jsx)("img",{src:i,alt:"user",style:{width:40,height:40,borderRadius:"50%",marginInlineEnd:12,objectFit:"cover"}}),(0,Ze.jsxs)("div",{style:{flex:1},children:[(0,Ze.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,Ze.jsx)("h4",{style:{margin:0,color:"#111",fontSize:"0.95rem"},children:"chat_message"===e.type||"private_message"===e.type||"group_message"===e.type?l("notifications_page_toast_from",{name:e.fromUserName||l("notifications_page_unknown_user")}):l("notifications_page_toast_new")}),(0,Ze.jsxs)("button",{onClick:e=>{e.stopPropagation(),m.current=Date.now()+3e5,s(g)},style:{background:"rgba(0,0,0,0.05)",border:"none",borderRadius:"8px",padding:"4px 8px",display:"flex",alignItems:"center",gap:"4px",cursor:"pointer",fontSize:"0.75rem",color:"#666",transition:"background 0.2s"},title:l("notifications_page_toast_snooze_title"),children:[(0,Ze.jsx)(Je.A,{size:14})," ",l("notifications_page_toast_snooze")]})]}),(0,Ze.jsx)("p",{style:{margin:"5px 0 0 0",fontSize:"0.85rem",color:"#444",lineHeight:1.4},children:c})]})]});g=a(v,{variant:"default",style:{backgroundColor:"#fff",borderRadius:"12px",boxShadow:"0 4px 15px rgba(0,0,0,0.15)",direction:d,minWidth:"300px",padding:"12px 14px"},autoHideDuration:4e3})};return(0,e.useEffect)((()=>
2{if(null===t||void 0===t||!t.id)return;const e=Ke.firebase.database().ref("kunaiu_bank/".concat(t.id,"/mutedChats")),n=e=>{const t=e.val()||{};h.current={users:t.users||{},groups:t.groups||{}}};return e.on("value",n),()=>e.off("value",n)}),[null===t||void 0===t?void 0:t.id]),(0,e.useEffect)((()=>{if(null===t||void 0===t||!t.id)return;const e=t.id;s();let n=!1,o=new Set;const i=Ke.firebase.database().ref("Notifications/".concat(e)).orderByChild("timestamp").limitToLast(100),a=t=>{const i=t.val();if(!i)return void(n||(n=!0,Ye.A.set(e,[])));const a=Object.entries(i).map((e=>{let[t,n]=e;return(0,r.A)({id:t},n)})).sort(((e,t)=>t.timestamp-e.timestamp));if(!n)return n=!0,o=new Set(a.map((e=>e.id))),void Ye.A.set(e,a);const s=a.filter((e=>!o.has(e.id))).sort(((e,t)=>e.timestamp-t.timestamp));a.forEach((e=>o.add(e.id))),s.forEach((t=>{(async e=>{try{const t={};if(e.postId){const n=await Ke.firebase.database().ref("posts/".concat(e.postId)).once("value");n.exists()&&(t.post=(0,r.A)({id:e.postId},n.val()))}if(e.postId&&e.commentId){const n=await Ke.firebase.database().ref("posts/".concat(e.postId,"/comments/").concat(e.commentId)).once("value");n.exists()&&(t.comment=(0,r.A)({id:e.commentId},n.val()))}if(e.postId&&e.commentId&&e.replyId){const n=await Ke.firebase.database().ref("posts/".concat(e.postId,"/comments/").concat(e.commentId,"/replies/").concat(e.replyId)).once("value");n.exists()&&(t.reply=(0,r.A)({id:e.replyId},n.val()))}return(0,r.A)((0,r.A)({},e),{},{preloadedContent:t})}catch(t){return console.error("Error fetching notification content:",t),e}})(t).then((t=>{Ye.A.addNotification(e,t),g(t)}))}))};return i.on("value",a),()=>{i.off("value",a),s()}}),[null===t||void 0===t?void 0:t.id]),null};var tt,nt,rt,ot,it,at,st,lt,ct,ut=n(43457),dt=n(55149),pt=n(38458),ht=n(24558),ft=n(99723),mt=n(49210),_t=n(11454),gt=n(60329),vt=(tt=new WeakMap,class extends gt.Q{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),(0,dt.A)(this,tt,void 0),this.config=e,(0,ht.A)(tt,this,new Map)}build(e,t,n){var r;const o=t.queryKey,i=null!==(r=t.queryHash)&&void 0!==r?r:(0,ft.F$)(o,t);let a=this.get(i);return a||(a=new mt.X({client:e,queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){(0,pt.A)(tt,this).has(e.queryHash)||((0,pt.A)(tt,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=(0,pt.A)(tt,this).get(e.queryHash);t&&(e.destroy(),t===e&&(0,pt.A)(tt,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){_t.jG.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return(0,pt.A)(tt,this).get(e)}getAll(){return[...(0,pt.A)(tt,this).values()]}find(e){const t=(0,r.A)({exact:!0},e);return this.getAll().find((e=>(0,ft.MK)(t,e)))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>(0,ft.MK)(e,t))):t}notify(e){_t.jG.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){_t.jG.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){_t.jG.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}}),yt=n(39790),bt=n(26562),wt=n(31143),xt=n(12463),kt=(nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,at=new WeakSet,class extends wt.k{constructor(e){super(),(0,yt.A)(this,at),(0,dt.A)(this,nt,void 0),(0,dt.A)(this,rt,void 0),(0,dt.A)(this,ot,void 0),(0,dt.A)(this,it,void 0),(0,ht.A)(nt,this,e.client),this.mutationId=e.mutationId,(0,ht.A)(ot,this,e.mutationCache),(0,ht.A)(rt,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){(0,pt.A)(rt,this).includes(e)||((0,pt.A)(rt,this).push(e),this.clearGcTimeout(),(0,pt.A)(ot,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){(0,ht.A)(rt,this,(0,pt.A)(rt,this).filter((t=>t!==e))),this.scheduleGc(),(0,pt.A)(ot,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){(0,pt.A)(rt,this).length||("pending"===this.state.status?this.scheduleGc():(0,pt.A)(ot,this).remove(this))}continue(){var e,t;return null!==(e=null===(t=(0,pt.A)(it,this))||void 0===t?void 0:t.continue())&&void 0!==e?e:this.execute(this.state.variables)}async execute(e){var t;const n=()=>{(0,bt.A)(at,this,St).call(this,{type:"continue"})},r={client:(0,pt.A)(nt,this),meta:this.options.meta,mutationKey:this.options.mutationKey};(0,ht.A)(it,this,(0,xt.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{(0,bt.A)(at,this,St).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{(0,bt.A)(at,this,St).call(this,{type:"pause"})},onContinue:n,retry:null!==(t=this.options.retry)&&void 0!==t?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>(0,pt.A)(ot,this).canRun(this)}));const o="pending"===this.state.status,i=!(0,pt.A)(it,this).canStart();try{var a,s,l,c,u,d,p,f;if(o)n();else{var m,_,g,v;(0,bt.A)(at,this,St).call(this,{type:"pending",variables:e,isPaused:i}),await(null===(m=(_=(0,pt.A)(ot,this).config).onMutate)||void 0===m?void 0:m.call(_,e,this,r));const t=await(null===(g=(v=this.options).onMutate)||void 0===g?void 0:g.call(v,e,r));t!==this.state.context&&(0,bt.A)(at,this,St).call(this,{type:"pending",context:t,variables:e,isPaused:i})}const t=await(0,pt.A)(it,this).start();return await(null===(a=(s=(0,pt.A)(ot,this).config).onSuccess)||void 0===a?void 0:a.call(s,t,e,this.state.context,this,r)),await(null===(l=(c=this.options).onSuccess)||void 0===l?void 0:l.call(c,t,e,this.state.context,r)),await(null===(u=(d=(0,pt.A)(ot,this).config).onSettled)||void 0===u?void 0:u.call(d,t,null,this.state.variables,this.state.context,this,r)),await(null===(p=(f=this.options).onSettled)||void 0===p?void 0:p.call(f,t,null,e,this.state.context,r)),(0,bt.A)(at,this,St).call(this,{type:"success",data:t}),t}catch(E){try{var y,b;await(null===(y=(b=(0,pt.A)(ot,this).config).onError)||void 0===y?void 0:y.call(b,E,e,this.state.context,this,r))}catch(h){Promise.reject(h)}try{var w,x;await(null===(w=(x=this.options).onError)||void 0===w?void 0:w.call(x,E,e,this.state.context,r))}catch(h){Promise.reject(h)}try{var k,S;await(null===(k=(S=(0,pt.A)(ot,this).config).onSettled)||void 0===k?void 0:k.call(S,void 0,E,this.state.variables,this.state.context,this,r))}catch(h){Promise.reject(h)}try{var C,A;
2await(null===(C=(A=this.options).onSettled)||void 0===C?void 0:C.call(A,void 0,E,e,this.state.context,r))}catch(h){Promise.reject(h)}throw(0,bt.A)(at,this,St).call(this,{type:"error",error:E}),E}finally{(0,pt.A)(ot,this).runNext(this)}}});function St(e){this.state=(t=>{switch(e.type){case"failed":return(0,r.A)((0,r.A)({},t),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return(0,r.A)((0,r.A)({},t),{},{isPaused:!0});case"continue":return(0,r.A)((0,r.A)({},t),{},{isPaused:!1});case"pending":return(0,r.A)((0,r.A)({},t),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()});case"success":return(0,r.A)((0,r.A)({},t),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return(0,r.A)((0,r.A)({},t),{},{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"})}})(this.state),_t.jG.batch((()=>{(0,pt.A)(rt,this).forEach((t=>{t.onMutationUpdate(e)})),(0,pt.A)(ot,this).notify({mutation:this,type:"updated",action:e})}))}var Ct=(st=new WeakMap,lt=new WeakMap,ct=new WeakMap,class extends gt.Q{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),(0,dt.A)(this,st,void 0),(0,dt.A)(this,lt,void 0),(0,dt.A)(this,ct,void 0),this.config=e,(0,ht.A)(st,this,new Set),(0,ht.A)(lt,this,new Map),(0,ht.A)(ct,this,0)}build(e,t,n){var r;const o=new kt({client:e,mutationCache:this,mutationId:(0,ht.A)(ct,this,(r=(0,pt.A)(ct,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(o),o}add(e){(0,pt.A)(st,this).add(e);const t=At(e);if("string"===typeof t){const n=(0,pt.A)(lt,this).get(t);n?n.push(e):(0,pt.A)(lt,this).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if((0,pt.A)(st,this).delete(e)){const t=At(e);if("string"===typeof t){const n=(0,pt.A)(lt,this).get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&(0,pt.A)(lt,this).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=At(e);if("string"===typeof t){const n=(0,pt.A)(lt,this).get(t),r=null===n||void 0===n?void 0:n.find((e=>"pending"===e.state.status));return!r||r===e}return!0}runNext(e){const t=At(e);if("string"===typeof t){var n,r;const o=null===(n=(0,pt.A)(lt,this).get(t))||void 0===n?void 0:n.find((t=>
2t!==e&&t.state.isPaused));return null!==(r=null===o||void 0===o?void 0:o.continue())&&void 0!==r?r:Promise.resolve()}return Promise.resolve()}clear(){_t.jG.batch((()=>{(0,pt.A)(st,this).forEach((e=>{this.notify({type:"removed",mutation:e})})),(0,pt.A)(st,this).clear(),(0,pt.A)(lt,this).clear()}))}getAll(){return Array.from((0,pt.A)(st,this))}find(e){const t=(0,r.A)({exact:!0},e);return this.getAll().find((e=>(0,ft.nJ)(t,e)))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter((t=>(0,ft.nJ)(e,t)))}notify(e){_t.jG.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return _t.jG.batch((()=>Promise.all(e.map((e=>e.continue().catch(ft.lQ))))))}});function At(e){var t;return null===(t=e.options.scope)||void 0===t?void 0:t.id}var Et,jt,Tt,Pt,Nt,It,Rt,Ot,Dt=n(3491),Mt=n(48024);function Lt(e){return{onFetch:(t,n)=>{var r,o,i;const a=t.options,s=null===(r=t.fetchOptions)||void 0===r||null===(r=r.meta)||void 0===r||null===(r=r.fetchMore)||void 0===r?void 0:r.direction,l=(null===(o=t.state.data)||void 0===o?void 0:o.pages)||[],c=(null===(i=t.state.data)||void 0===i?void 0:i.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const p=async()=>{let n=!1;const r=(0,ft.ZM)(t.options,t.fetchOptions),o=async(e,o,i)=>{if(n)return Promise.reject();if(null==o&&e.pages.length)return Promise.resolve(e);const a=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:o,direction:i?"backward":"forward",meta:t.options.meta};var r;return r=e,(0,ft.ox)(r,(()=>t.signal),(()=>n=!0)),e})(),s=await r(a),{maxPages:l}=t.options,c=i?ft.ZZ:ft.y9;return{pages:c(e.pages,s,l),pageParams:c(e.pageParams,o,l)}};if(s&&l.length){const e="backward"===s,t={pages:l,pageParams:c},n=(e?zt:Ft)(a,t);u=await o(t,n,e)}else{const t=null!==e&&void 0!==e?e:l.length;do{var i;const e=0===d?null!==(i=c[0])&&void 0!==i?i:a.initialPageParam:Ft(a,u);if(d>0&&null==e)break;u=await o(u,e),d++}while(d<t)}return u};t.options.persister?t.fetchFn=()=>{var e,r;return null===(e=(r=t.options).persister)||void 0===e?void 0:e.call(r,p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=p}}}function Ft(e,t){let{pages:n,pageParams:r}=t;const o=n.length-1;return n.length>0?e.getNextPageParam(n[o],n,r[o],r):void 0}function zt(e,t){var n;let{pages:r,pageParams:o}=t;return r.length>0?null===(n=e.getPreviousPageParam)||void 0===n?void 0:n.call(e,r[0],r,o[0],o):void 0}var Bt=(Et=new WeakMap,jt=new WeakMap,Tt=new WeakMap,Pt=new WeakMap,Nt=new WeakMap,It=new WeakMap,Rt=new WeakMap,Ot=new WeakMap,class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,dt.A)(this,Et,void 0),(0,dt.A)(this,jt,void 0),(0,dt.A)(this,Tt,void 0),(0,dt.A)(this,Pt,void 0),(0,dt.A)(this,Nt,void 0),(0,dt.A)(this,It,void 0),(0,dt.A)(this,Rt,void 0),(0,dt.A)(this,Ot,void 0),(0,ht.A)(Et,this,e.queryCache||new vt),(0,ht.A)(jt,this,e.mutationCache||new Ct),(0,ht.A)(Tt,this,e.defaultOptions||{}),(0,ht.A)(Pt,this,new Map),(0,ht.A)(Nt,this,new Map),(0,ht.A)(It,this,0)}mount(){var e;(0,ht.A)(It,this,(e=(0,pt.A)(It,this),e++,e)),1===(0,pt.A)(It,this)&&((0,ht.A)(Rt,this,Dt.m.subscribe((async e=>{e&&(await this.resumePausedMutations(),(0,pt.A)(Et,this).onFocus())}))),(0,ht.A)(Ot,this,Mt.t.subscribe((async e=>{e&&(await this.resumePausedMutations(),(0,pt.A)(Et,this).onOnline())}))))}unmount(){var e,t,n;(0,ht.A)(It,this,(e=(0,pt.A)(It,this),e--,e)),0===(0,pt.A)(It,this)&&(null===(t=(0,pt.A)(Rt,this))||void 0===t||t.call(this),(0,ht.A)(Rt,this,void 0),null===(n=(0,pt.A)(Ot,this))||void 0===n||n.call(this),(0,ht.A)(Ot,this,void 0))}isFetching(e){return(0,pt.A)(Et,this).findAll((0,r.A)((0,r.A)({},e),{},{fetchStatus:"fetching"})).length}isMutating(e){return(0,pt.A)(jt,this).findAll((0,r.A)((0,r.A)({},e),{},{status:"pending"})).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=(0,pt.A)(Et,this).get(n.queryHash))||void 0===t?void 0:t.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=(0,pt.A)(Et,this).build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,ft.d2)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return(0,pt.A)(Et,this).findAll(e).map((e=>{let{queryKey:t,state:n}=e;return[t,n.data]}))}setQueryData(e,t,n){const o=this.defaultQueryOptions({queryKey:e}),i=(0,pt.A)(Et,this).get(o.queryHash),a=null===i||void 0===i?void 0:i.state.data,s=(0,ft.Zw)(t,a);if(void 0!==s)return(0,pt.A)(Et,this).build(this,o).setData(s,(0,r.A)((0,r.A)({},n),{},{manual:!0}))}
2setQueriesData(e,t,n){return _t.jG.batch((()=>(0,pt.A)(Et,this).findAll(e).map((e=>{let{queryKey:r}=e;return[r,this.setQueryData(r,t,n)]}))))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=(0,pt.A)(Et,this).get(n.queryHash))||void 0===t?void 0:t.state}removeQueries(e){const t=(0,pt.A)(Et,this);_t.jG.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=(0,pt.A)(Et,this);return _t.jG.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries((0,r.A)({type:"active"},e),t))))}cancelQueries(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,r.A)({revert:!0},t),o=_t.jG.batch((()=>(0,pt.A)(Et,this).findAll(e).map((e=>e.cancel(n)))));return Promise.all(o).then(ft.lQ).catch(ft.lQ)}invalidateQueries(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _t.jG.batch((()=>{var n,o;return(0,pt.A)(Et,this).findAll(e).forEach((e=>{e.invalidate()})),"none"===(null===e||void 0===e?void 0:e.refetchType)?Promise.resolve():this.refetchQueries((0,r.A)((0,r.A)({},e),{},{type:null!==(n=null!==(o=null===e||void 0===e?void 0:e.refetchType)&&void 0!==o?o:null===e||void 0===e?void 0:e.type)&&void 0!==n?n:"active"}),t)}))}refetchQueries(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=(0,r.A)((0,r.A)({},n),{},{cancelRefetch:null===(t=n.cancelRefetch)||void 0===t||t}),i=_t.jG.batch((()=>(0,pt.A)(Et,this).findAll(e).filter((e=>!e.isDisabled()&&!e.isStatic())).map((e=>{let t=e.fetch(void 0,o);return o.throwOnError||(t=t.catch(ft.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(i).then(ft.lQ)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=(0,pt.A)(Et,this).build(this,t);return n.isStaleByTime((0,ft.d2)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ft.lQ).catch(ft.lQ)}fetchInfiniteQuery(e){return e.behavior=Lt(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ft.lQ).catch(ft.lQ)}ensureInfiniteQueryData(e){return e.behavior=Lt(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Mt.t.isOnline()?(0,pt.A)(jt,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return(0,pt.A)(Et,this)}getMutationCache(){return(0,pt.A)(jt,this)}getDefaultOptions(){return(0,pt.A)(Tt,this)}setDefaultOptions(e){(0,ht.A)(Tt,this,e)}setQueryDefaults(e,t){(0,pt.A)(Pt,this).set((0,ft.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...(0,pt.A)(Pt,this).values()],n={};return t.forEach((t=>{(0,ft.Cp)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)})),n}setMutationDefaults(e,t){(0,pt.A)(Nt,this).set((0,ft.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...(0,pt.A)(Nt,this).values()],n={};return t.forEach((t=>{(0,ft.Cp)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t=(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},(0,pt.A)(Tt,this).queries),this.getQueryDefaults(e.queryKey)),e),{},{_defaulted:!0});return t.queryHash||(t.queryHash=(0,ft.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ft.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return null!==e&&void 0!==e&&e._defaulted?e:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},(0,pt.A)(Tt,this).mutations),(null===e||void 0===e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{},{_defaulted:!0})}clear(){(0,pt.A)(Et,this).clear(),(0,pt.A)(jt,this).clear()}}),qt=n(63248);const Ut=new Bt({defaultOptions:{queries:{staleTime:3e5,cacheTime:6e5,refetchOnWindowFocus:!0,refetchOnReconnect:!0,retry:1}}}),Ht=e=>{let{children:t}=e;return(0,Ze.jsx)(qt.Ht,{client:Ut,children:t})};var Wt=n(88078),Vt=n(47174);var Kt=n(40973);const Gt=()=>{const{userData:t}=(0,e.useContext)(i.Rs),[n,r]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{if(!t)return;(async()=>{try{if(!await Ke.firebase.messaging.isSupported())return}catch(r){return}if("Notification"in window&&"granted"===Notification.permission)return void setTimeout((()=>
2{(0,Kt.m)(t.id)}),1e3);if(!("Notification"in window))return;if("Notification"in window&&"denied"===Notification.permission)return;if(sessionStorage.getItem("pushPromptCancelled"))return;const e=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone,n="undefined"!==typeof navigator&&/Windows/i.test(navigator.userAgent||"");e||n?setTimeout((()=>{(0,Kt.m)(t.id)}),1500):console.log("\u064a\u062a\u0645 \u062a\u062c\u0627\u0647\u0644 \u0637\u0644\u0628 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0647\u0646\u0627\u060c \u0648\u0633\u064a\u064f\u0637\u0644\u0628 \u0641\u0642\u0637 \u0641\u064a PWA \u0623\u0648 \u0639\u0644\u0649 \u0648\u064a\u0646\u062f\u0648\u0632.")})()}),[t]),null},Yt=[{key:"chatting",label:"\u064a\u062a\u062d\u062f\u062b",icon:"\ud83d\udcac",color:"#2196F3",patterns:["/messages/chat/","/messages/group/","/messages"]},{key:"reading_quran",label:"\u064a\u0642\u0631\u0623 \u0627\u0644\u0642\u0631\u0622\u0646",icon:"\ud83d\udcd6",color:"#4CAF50",patterns:["/quran","/my-quran-list"]},{key:"dhikr",label:"\u064a\u0642\u0631\u0623 \u0627\u0644\u0623\u0630\u0643\u0627\u0631",icon:"\ud83d\udcff",color:"#9C27B0",patterns:["/adhkar","/tasbeeh","/Tasbeeh"]},{key:"prayer",label:"\u064a\u062a\u0627\u0628\u0639 \u0635\u0644\u0648\u0627\u062a\u0647",icon:"\ud83d\udd4c",color:"#FF9800",patterns:["/prayer-tracker"]},{key:"team",label:"\u0641\u064a \u0635\u0641\u062d\u0629 \u0627\u0644\u0641\u0631\u064a\u0642",icon:"\ud83d\udc65",color:"#607D8B",patterns:["/team"]},{key:"profile",label:"\u064a\u0646\u0633\u0642 \u0628\u0631\u0648\u0641\u0627\u064a\u0644\u0647",icon:"\u270f\ufe0f",color:"#E91E63",patterns:["/profile","/edit-profile"]},{key:"browsing",label:"\u064a\u062a\u0635\u0641\u062d \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a",icon:"\ud83d\udcf0",color:"#00BCD4",patterns:["/","/post","/hashtag","/saved-posts","/video","/poll"]}],Qt=["/create-profile","/login","/register","/emergency-login"];function Xt(e){const t=e.toLowerCase();for(const n of Yt)for(const e of n.patterns)if(t===e.toLowerCase()||t.startsWith(e.toLowerCase()+"/")||t.startsWith(e.toLowerCase())){if("/"===e&&"/"!==t)continue;return n}return{key:"online",label:"\u0645\u062a\u0635\u0644",icon:"\ud83d\udfe2",color:"#4CAF50",patterns:[]}}const $t=()=>{const{userData:t}=(0,e.useContext)(i.Rs),n=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uid)||null;return function(t){const n=(0,o.zy)(),r=(0,e.useRef)(null),i=(0,e.useRef)(t),a=(0,e.useRef)(null);(0,e.useEffect)((()=>{i.current=t}),[t]),(0,e.useEffect)((()=>{if(!t)return;const e="AppStatus/".concat(t),n=Ke.firebase.database().ref(e);return r.current=n,n.onDisconnect().remove(),()=>{n.onDisconnect().cancel(),n.remove().catch((()=>{}))}}),[t]),(0,e.useEffect)((()=>{if(!t)return;const e=n.pathname.toLowerCase(),o=Qt.some((t=>e===t||e.startsWith(t+"/"))),i=r.current||Ke.firebase.database().ref("AppStatus/".concat(t));if(r.current=i,o)return i.remove().catch((e=>console.warn("[useUserStatus] Failed to remove AppStatus on ignored route:",e))),void(a.current=null);const s=Xt(n.pathname);a.current=s.key,i.set({status:s.key}).catch((e=>console.warn("[useUserStatus] Failed to set status:",e)))}),[t,n.pathname]),(0,e.useEffect)((()=>{if(!t)return;const e=()=>{var e;null===(e=r.current)||void 0===e||e.set({status:"offline"}).catch((e=>console.warn("[useUserStatus] Failed to set offline on blur/hidden:",e)))},n=()=>{var e;if(!i.current)return;const t=window.location.pathname.toLowerCase(),n=Qt.some((e=>t===e||t.startsWith(e+"/")));if(n)return;const o=a.current||Xt(window.location.pathname).key;a.current=o,null===(e=r.current)||void 0===e||e.set({status:o}).catch((e=>console.warn("[useUserStatus] Failed to restore status on focus/visible:",e)))},o=()=>{document.hidden?e():n()},s=()=>{e()},l=()=>{n()},c=()=>{var e;null===(e=r.current)||void 0===e||e.remove()};return document.addEventListener("visibilitychange",o),window.addEventListener("blur",s),window.addEventListener("focus",l),window.addEventListener("beforeunload",c),()=>{document.removeEventListener("visibilitychange",o),window.removeEventListener("blur",s),window.removeEventListener("focus",l),window.removeEventListener("beforeunload",c)}}),[t])}(!(null===t||void 0===t||!t.name||null===t||void 0===t||!t.tag)?n:null),null};var Jt=n(63451),Zt=n(60806),en=n(59773);const tn=()=>{const{theme:t}=(0,l.DP)(),[n,r]=(0,e.useState)("ar"),o={ar:{title:"\u0634\u0631\u0648\u0637 \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645",welcome:"\u0645\u0631\u062d\u0628\u0627\u064b \u0628\u0643\u0645 \u0641\u064a \u0642\u0648\u0627\u0646\u064a\u0646 Amposter",intro:"\u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0643 \u0644\u062a\u0637\u0628\u064a\u0642 \u0627\u0644\u0648\u064a\u0628 Amposter \u0641\u0623\u0646\u062a \u062a\u0648\u0627\u0641\u0642 \u0639\u0644\u0649 \u0627\u0644\u0627\u0644\u062a\u0632\u0627\u0645 \u0628\u0627\u0644\u0642\u0648\u0627\u0646\u064a\u0646 \u0627\u0644\u062a\u0627\u0644\u064a\u0629:",rules:[{title:"1- \u0645\u0645\u0646\u0648\u0639 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0635\u0648\u0631\u0629 \u0644\u0628\u0646\u062a \u0628\u062f\u0648\u0646 \u062d\u062c\u0627\u0628",desc:"\u0641\u064a \u0623\u064a \u0645\u0643\u0627\u0646 \u062f\u0627\u062e\u0644 \u0627\u0644\u062a\u0637\u0628\u064a\u0642\u060c \u0633\u0648\u0627\u0621 \u0643\u0627\u0646 \u0630\u0644\u0643 \u0641\u064a \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a\u060c \u0627\u0644\u0635\u0648\u0631\u0629 \u0627\u0644\u0634\u062e\u0635\u064a\u0629\u
2060c \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a\u060c \u0623\u0648 \u0627\u0644\u0641\u064a\u062f\u064a\u0648\u0647\u0627\u062a."},{title:"2- \u0645\u0645\u0646\u0648\u0639 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0623\u064a \u0623\u063a\u0646\u064a\u0629 \u0645\u062e\u0627\u0644\u0641\u0629",desc:"\u0648\u064a\u0634\u0645\u0644 \u0630\u0644\u0643 \u0627\u0644\u0623\u063a\u0627\u0646\u064a \u0627\u0644\u062a\u064a \u062a\u062d\u062a\u0648\u064a \u0639\u0644\u0649 \u0645\u0648\u0633\u064a\u0642\u0649\u060c \u0643\u0644\u0645\u0627\u062a \u0633\u064a\u0626\u0629\u060c \u0623\u0648 \u0635\u0648\u062a \u0627\u0645\u0631\u0623\u0629."},{title:"3- \u0645\u0645\u0646\u0648\u0639 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0643\u0644\u0645\u0627\u062a \u0627\u0644\u0639\u0627\u0637\u0641\u064a\u0629",desc:"\u0645\u062b\u0644: (\u0623\u062d\u0628\u0643\u060c \u062d\u0628\u064a\u0628\u062a\u064a\u060c \u0648\u0645\u0627 \u0634\u0627\u0628\u0647)."},{title:"4- \u0645\u0645\u0646\u0648\u0639 \u0625\u0632\u0639\u0627\u062c \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646 \u0627\u0644\u0622\u062e\u0631\u064a\u0646",desc:"\u0633\u0648\u0627\u0621 \u0628\u062a\u0639\u0644\u064a\u0642 \u0645\u0633\u064a\u0621\u060c \u0645\u0636\u0627\u064a\u0642\u0629\u060c \u0623\u0648 \u0623\u064a \u062a\u0635\u0631\u0641 \u064a\u0633\u0628\u0628 \u0627\u0644\u0625\u0632\u0639\u0627\u062c."},{title:"5- \u0645\u0645\u0646\u0648\u0639 \u0625\u0633\u0627\u0621\u0629 \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645",desc:"\u0648\u064a\u0634\u0645\u0644 \u0630\u0644\u0643 \u0627\u0644\u0633\u0628\u0627\u0645\u060c \u0627\u0644\u062a\u062e\u0631\u064a\u0628\u060c \u0623\u0648 \u0623\u064a \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u064a\u0633\u064a\u0621 \u0644\u0644\u062a\u0637\u0628\u064a\u0642 \u0623\u0648 \u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0647."},{title:"6- \u0645\u0645\u0646\u0648\u0639 \u0627\u0646\u062a\u062d\u0627\u0644 \u0627\u0644\u0634\u062e\u0635\u064a\u0629",desc:"\u064a\u064f\u0645\u0646\u0639 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0633\u0645\u060c \u0635\u0648\u0631\u0629\u060c \u0623\u0648 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0634\u062e\u0635 \u0622\u062e\u0631 \u0628\u0642\u0635\u062f \u0627\u0644\u062a\u0636\u0644\u064a\u0644."},{title:"7- \u0645\u0645\u0646\u0648\u0639 \u0646\u0634\u0631 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0634\u062e\u0635\u064a\u0629",desc:"\u0645\u062b\u0644 \u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u0647\u0648\u0627\u062a\u0641\u060c \u0627\u0644\u0639\u0646\u0627\u0648\u064a\u0646\u060c \u0623\u0648 \u0623\u064a \u0628\u064a\u0627\u0646\u0627\u062a \u062d\u0633\u0627\u0633\u0629 \u062e\u0627\u0635\u0629 \u0628\u0643 \u0623\u0648 \u0628\u063a\u064a\u0631\u0643."},{title:"8- \u0645\u0645\u0646\u0648\u0639 \u0646\u0634\u0631 \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u0627\u062a \u0623\u0648 \u0627\u0644\u0631\u0648\u0627\u0628\u0637 \u0628\u062f\u0648\u0646 \u0625\u0630\u0646 \u0645\u0633\u0628\u0642",desc:"\u0645\u062b\u0644 \u0627\u0644\u0631\u0648\u0627\u0628\u0637 \u0627\u0644\u0645\u0634\u0628\u0648\u0647\u0629."},{title:"9- \u0627\u0644\u0627\u0644\u062a\u0632\u0627\u0645 \u0628\u0627\u0644\u0623\u062f\u0628 \u0627\u0644\u0639\u0627\u0645 \u0648\u0627\u062d\u062a\u0631\u0627\u0645 \u0627\u0644\u062c\u0645\u064a\u0639",desc:"\u0623\u064a \u0645\u062d\u062a\u0648\u0649 \u064a\u062e\u0627\u0644\u0641 \u0627\u0644\u0623\u062e\u0644\u0627\u0642 \u0627\u0644\u0639\u0627\u0645\u0629 \u0623\u0648 \u064a\u062b\u064a\u0631 \u0627\u0644\u0641\u062a\u0646 \u064a\u064f\u0639\u062f \u0645\u062e\u0627\u0644\u0641\u0629 \u0635\u0631\u064a\u062d\u0629."},{title:"10- \u0644\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u062a\u0637\u0628\u064a\u0642 \u0627\u0644\u062d\u0642 \u0627\u0644\u0643\u0627\u0645\u0644 \u0641\u064a \u0627\u0644\u062d\u0638\u0631",desc:"\u0641\u064a \u062d\u0627\u0644 \u0631\u0623\u062a \u0623\u0646 \u0627\u0644\u0645\u062d\u062a\u0648\u0649 \u0645\u062e\u0627\u0644\u0641 \u0644\u0644\u0642\u0648\u0627\u0646\u064a\u0646."}],footer:"\u0623\u064a \u0645\u062e\u0627\u0644\u0641\u0629 \u0644\u0647\u0630\u0647 \u0627\u0644\u0642\u0648\u0627\u0646\u064a\u0646 \u0642\u062f \u062a\u0639\u0631\u0636 \u0635\u0627\u062d\u0628\u0647\u0627 \u0644\u0644\u062a\u062d\u0630\u064a\u0631\u060c \u062b\u0645 \u0627\u0644\u062d\u0638\u0631 \u0641\u064a \u062d\u0627\u0644 \u0639\u062f\u0645 \u0627\u0644\u0627\u0644\u062a\u0632\u0627\u0645.",closing:"\u0645\u0639\u0627\u064b \u0646\u0635\u0646\u0639 \u0628\u064a\u0626\u0629 \u0645\u062d\u062a\u0631\u0645\u0629 \u0648\u0645\u0645\u062a\u0639\u0629 \u0644\u0644\u062c\u0645\u064a\u0639 \u2764\ufe0f"},en:{title:"Terms of Service",welcome:"Welcome to Amposter Rules",intro:"By using Amposter Web App, you agree to comply with the following rules:",rules:[{title:"1- Prohibited: Using images of women without hijab",desc:"Anywhere in the app, whether in posts, profile pictures, comments, or videos."},{title:"2- Prohibited: Using any inappropriate music",desc:"This includes songs containing music, bad words, or female voice."}
2,{title:"3- Prohibited: Using romantic words",desc:"Such as: (I love you, my darling, and similar expressions)."},{title:"4- Prohibited: Harassing other users",desc:"Whether through offensive comments, harassment, or any behavior that causes annoyance."},{title:"5- Prohibited: Abuse of use",desc:"This includes spam, vandalism, or any use that harms the app or its users."},{title:"6- Prohibited: Identity theft",desc:"Using someone else's name, picture, or information with the intent to deceive is prohibited."},{title:"7- Prohibited: Publishing personal information",desc:"Such as phone numbers, addresses, or any sensitive data belonging to you or others."},{title:"8- Prohibited: Publishing ads or links without prior permission",desc:"Such as suspicious links."},{title:"9- Commitment to public decency and respect for everyone",desc:"Any content that violates public morals or incites discord is considered a clear violation."},{title:"10- The app administration has full right to ban",desc:"If it sees that the content violates the rules."}],footer:"Any violation of these rules may subject the violator to a warning, then a ban if non-compliance continues.",closing:"Together we create a respectful and enjoyable environment for everyone \u2764\ufe0f"}}[n];return(0,Ze.jsxs)("div",{className:"terms-page ".concat("dark"===t?"theme-dark-space":"theme-light-space"),children:[(0,Ze.jsx)(en.A,{title:o.title,className:"dark"===t?"theme-dark-item":"theme-light-item"}),(0,Ze.jsxs)("div",{className:"terms-content",children:[(0,Ze.jsxs)("div",{className:"language-toggle",children:[(0,Ze.jsx)("button",{className:"lang-btn ".concat("ar"===n?"active":""," ").concat("dark"===t?"theme-dark-item":""),onClick:()=>r("ar"),children:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"}),(0,Ze.jsx)("button",{className:"lang-btn ".concat("en"===n?"active":""," ").concat("dark"===t?"theme-dark-item":""),onClick:()=>r("en"),children:"English"})]}),(0,Ze.jsxs)("div",{className:"terms-card ".concat("dark"===t?"theme-dark-item":""),dir:"ar"===n?"rtl":"ltr",children:[(0,Ze.jsx)("h2",{children:o.welcome}),(0,Ze.jsx)("p",{className:"intro-text",children:o.intro}),(0,Ze.jsx)("div",{className:"rules-list",children:o.rules.map(((e,t)=>(0,Ze.jsxs)("div",{className:"rule-item",children:[(0,Ze.jsx)("h3",{children:e.title}),(0,Ze.jsx)("p",{children:e.desc})]},t)))}),(0,Ze.jsxs)("div",{className:"footer-section",children:[(0,Ze.jsx)("p",{className:"warning-text",children:o.footer}),(0,Ze.jsx)("p",{className:"closing-text",children:o.closing})]})]})]})]})};n(24763);const nn=()=>{const{theme:t}=(0,l.DP)(),[n,r]=(0,e.useState)("ar"),o={ar:{title:"\u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u062e\u0635\u0648\u0635\u064a\u0629",lastUpdated:"\u0622\u062e\u0631 \u062a\u062d\u062f\u064a\u062b: \u0641\u0628\u0631\u0627\u064a\u0631 2026",sections:[{title:"1. \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u062a\u064a \u0646\u062c\u0645\u0639\u0647\u0627",content:["\u0639\u0646\u062f \u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0641\u064a Amposter\u060c \u0646\u0637\u0644\u0628 \u0645\u0646\u0643 \u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0633\u0645 \u0645\u0633\u062a\u062e\u062f\u0645 \u064a\u0638\u0647\u0631 \u0644\u0644\u062c\u0645\u064a\u0639.","\u0644\u0627 \u0646\u0637\u0644\u0628 \u0645\u0646\u0643 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0633\u0645\u0643 \u0627\u0644\u062d\u0642\u064a\u0642\u064a - \u064a\u0645\u0643\u0646\u0643 \u0627\u062e\u062a\u064a\u0627\u0631 \u0623\u064a \u0627\u0633\u0645 \u062a\u0641\u0636\u0644\u0647.","\u0633\u064a\u0643\u0648\u0646 \u0644\u062f\u064a\u0643 \u0645\u0639\u0631\u0641 \u062d\u0633\u0627\u0628 \u0641\u0631\u064a\u062f (ID) \u064a\u0643\u0648\u0646 \u0645\u0631\u0626\u064a\u0627\u064b \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646 \u0627\u0644\u0622\u062e\u0631\u064a\u0646.","\u0644\u0627 \u0646\u0642\u0648\u0645 \u0628\u062c\u0645\u0639 \u0623\u0648 \u062a\u062e\u0632\u064a\u0646 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0634\u062e\u0635\u064a\u0629 \u062d\u0633\u0627\u0633\u0629 \u0645\u0646 \u062d\u0633\u0627\u0628\u0643 \u0641\u064a Google \u0623\u0648 \u0623\u064a \u062e\u062f\u0645\u0629 \u062a\u0633\u062c\u064a\u0644 \u062f\u062e\u0648\u0644 \u0623\u062e\u0631\u0649."]},{title:"2. \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062a\u064a \u064a\u062a\u0645 \u0625\u0646\u0634\u0627\u0624\u0647\u0627 \u0623\u062b\u0646\u0627\u0621 \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645",content:["\u0639\u0646\u062f \u0627\u0633\u062a\u062e\u062f\u0627\u0645\u0643 \u0644\u0644\u062a\u0637\u0628\u064a\u0642\u060c \u064a\u062a\u0645 \u0625\u0646\u0634\u0627\u0621 \u0628\u064a\u0627\u0646\u0627\u062a \u0625\u0636\u0627\u0641\u064a\u0629 \u062a\u062a\u0639\u0644\u0642 \u0628\u0646\u0634\u0627\u0637\u0643:","\u2022 \u0639\u062f\u062f \u0627\u0644\u0639\u0645\u0644\u0627\u062a \u0627\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a\u0629 (Coins)","\u2022 \u0639\u062f\u062f \u0627\u0644\u0646\u0642\u0627\u0637 (Points)",'\u2022 \u0631\u0633\u0627\u0626\u0644 "\u0635\u0627\u0631\u062d\u0646\u064a"',"\u2022 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0648\u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a","\u2022 \u062a\u0642\u062f\u0645 \u0642\u0631\u0627\u0621\u0629 \u0627\u0644\u0642\u0631\u0622\u0646","\u2022 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a","\u2022 \u0627\u0644\u0647\u0627\u0634\u062a\u0627\u0642\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u0629","\u0647\u0630\u0647 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u064a\u062a\u0645 \u062a\u062e\u0632\u064a\u0646\u0647\u0627 \u0644\u062a\u062d\u0633\u064a\u0646 \u062a\u062c\u0631\u0628\u062a\u0643 \u062f\u0627\u062e\u0644 \u0627\u0644\u062a\u0637\u0628\u064a\u0642 \u0648\u0647\u064a \u0645\u0631\u062a\u0628\u0637\u0629 \u0628\u062d\u0633\u0627\u0628\u0643 \u0641\u0642\u0637."]}
2,{title:"3. \u0643\u064a\u0641 \u0646\u0633\u062a\u062e\u062f\u0645 \u0645\u0639\u0644\u0648\u0645\u0627\u062a\u0643",content:["\u0646\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0645\u062c\u0645\u0639\u0629 \u0644\u0640:","\u2022 \u062a\u0642\u062f\u064a\u0645 \u0648\u062a\u062d\u0633\u064a\u0646 \u062e\u062f\u0645\u0627\u062a\u0646\u0627","\u2022 \u062a\u062e\u0635\u064a\u0635 \u062a\u062c\u0631\u0628\u062a\u0643 \u062f\u0627\u062e\u0644 \u0627\u0644\u062a\u0637\u0628\u064a\u0642","\u2022 \u0627\u0644\u062a\u0648\u0627\u0635\u0644 \u0645\u0639\u0643 \u062d\u0648\u0644 \u0627\u0644\u062a\u062d\u062f\u064a\u062b\u0627\u062a \u0648\u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a","\u2022 \u0636\u0645\u0627\u0646 \u0623\u0645\u0646 \u0648\u0633\u0644\u0627\u0645\u0629 \u0627\u0644\u0645\u0646\u0635\u0629","\u2022 \u0627\u0644\u0627\u0645\u062a\u062b\u0627\u0644 \u0644\u0642\u0648\u0627\u0646\u064a\u0646\u0646\u0627 \u0648\u0634\u0631\u0648\u0637 \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645"]},{title:"4. \u0645\u0634\u0627\u0631\u0643\u0629 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a",content:["\u0646\u062d\u0646 \u0644\u0627 \u0646\u0628\u064a\u0639 \u0623\u0648 \u0646\u0624\u062c\u0631 \u0623\u0648 \u0646\u0634\u0627\u0631\u0643 \u0645\u0639\u0644\u0648\u0645\u0627\u062a\u0643 \u0627\u0644\u0634\u062e\u0635\u064a\u0629 \u0645\u0639 \u0623\u0637\u0631\u0627\u0641 \u062b\u0627\u0644\u062b\u0629.","\u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0645\u0631\u0626\u064a\u0629 (\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0648\u0645\u0639\u0631\u0641 \u0627\u0644\u062d\u0633\u0627\u0628) \u062a\u0643\u0648\u0646 \u0645\u062a\u0627\u062d\u0629 \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646 \u0627\u0644\u0622\u062e\u0631\u064a\u0646 \u0643\u062c\u0632\u0621 \u0645\u0646 \u0627\u0644\u062a\u0641\u0627\u0639\u0644 \u0627\u0644\u0627\u062c\u062a\u0645\u0627\u0639\u064a.","\u0642\u062f \u0646\u0643\u0634\u0641 \u0639\u0646 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0625\u0630\u0627 \u0643\u0627\u0646 \u0630\u0644\u0643 \u0645\u0637\u0644\u0648\u0628\u0627\u064b \u0628\u0645\u0648\u062c\u0628 \u0627\u0644\u0642\u0627\u0646\u0648\u0646 \u0623\u0648 \u0644\u062d\u0645\u0627\u064a\u0629 \u062d\u0642\u0648\u0642\u0646\u0627."]},{title:"5. \u0623\u0645\u0646 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a",content:["\u0646\u062a\u062e\u0630 \u062a\u062f\u0627\u0628\u064a\u0631 \u0623\u0645\u0646\u064a\u0629 \u0645\u0639\u0642\u0648\u0644\u0629 \u0644\u062d\u0645\u0627\u064a\u0629 \u0628\u064a\u0627\u0646\u0627\u062a\u0643 \u0645\u0646 \u0627\u0644\u0648\u0635\u0648\u0644 \u063a\u064a\u0631 \u0627\u0644\u0645\u0635\u0631\u062d \u0628\u0647 \u0623\u0648 \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u063a\u064a\u0631 \u0627\u0644\u0633\u0644\u064a\u0645.","\u0645\u0639 \u0630\u0644\u0643\u060c \u0644\u0627 \u064a\u0645\u0643\u0646 \u0636\u0645\u0627\u0646 \u0623\u0645\u0646 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0628\u0646\u0633\u0628\u0629 100\u066a \u0639\u0628\u0631 \u0627\u0644\u0625\u0646\u062a\u0631\u0646\u062a.","\u0623\u0646\u062a \u0645\u0633\u0624\u0648\u0644 \u0639\u0646 \u0627\u0644\u062d\u0641\u0627\u0638 \u0639\u0644\u0649 \u0633\u0631\u064a\u0629 \u062d\u0633\u0627\u0628\u0643 \u0648\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u0643."]},{title:"6. \u062d\u0630\u0641 \u0627\u0644\u062d\u0633\u0627\u0628",content:["\u064a\u0645\u0643\u0646\u0643 \u062d\u0630\u0641 \u062d\u0633\u0627\u0628\u0643 \u0641\u064a \u0623\u064a \u0648\u0642\u062a \u0645\u0646 \u062e\u0644\u0627\u0644 \u0635\u0641\u062d\u0629 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a.","\u0639\u0646\u062f \u062d\u0630\u0641 \u062d\u0633\u0627\u0628\u0643\u060c \u0633\u064a\u062a\u0645 \u0625\u0632\u0627\u0644\u0629 \u062c\u0645\u064a\u0639 \u0628\u064a\u0627\u0646\u0627\u062a\u0643 \u0628\u0634\u0643\u0644 \u062f\u0627\u0626\u0645:","\u2022 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u062d\u0633\u0627\u0628","\u2022 \u0627\u0644\u0645\u0646\u0634\u0648\u0631\u0627\u062a \u0648\u0627\u0644\u062a\u0639\u0644\u064a\u0642\u0627\u062a","\u2022 \u0627\u0644\u0646\u0642\u0627\u0637 \u0648\u0627\u0644\u0639\u0645\u0644\u0627\u062a","\u2022 \u062a\u0642\u062f\u0645 \u0627\u0644\u0642\u0631\u0622\u0646","\u2022 \u062c\u0645\u064a\u0639 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0631\u062a\u0628\u0637\u0629 \u0628\u062d\u0633\u0627\u0628\u0643","\u0644\u0627\u062d\u0638 \u0623\u0646 \u0647\u0630\u0627 \u0627\u0644\u0625\u062c\u0631\u0627\u0621 \u0646\u0647\u0627\u0626\u064a \u0648\u0644\u0627 \u064a\u0645\u0643\u0646 \u0627\u0644\u062a\u0631\u0627\u062c\u0639 \u0639\u0646\u0647."]},{title:"7. \u062d\u0642\u0648\u0642 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645",content:["\u0644\u062f\u064a\u0643 \u0627\u0644\u062d\u0642 \u0641\u064a:","\u2022 \u0627\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0628\u064a\u0627\u0646\u0627\u062a\u0643 \u0627\u0644\u0634\u062e\u0635\u064a\u0629","\u2022 \u062a\u062d\u062f\u064a\u062b \u0623\u0648 \u062a\u0635\u062d\u064a\u062d \u0645\u0639\u0644\u0648\u0645\u0627\u062a\u0643","\u2022 \u062d\u0630\u0641 \u062d\u0633\u0627\u0628\u0643 \u0648\u0628\u064a\u0627\u0646\u0627\u062a\u0643","\u2022 \u0627\u0644\u0627\u0639\u062a\u0631\u0627\u0636 \u0639\u0644\u0649 \u0645\u0639\u0627\u0644\u062c\u0629 \u0628\u064a\u0627\u0646\u0627\u062a\u0643","\u2022 \u0633\u062d\u0628 \u0645\u0648\u0627\u0641\u0642\u062a\u0643 \u0641\u064a \u0623\u064a \u0648\u0642\u062a"]},{title:"8. \u0627\u0644\u062a\u063a\u064a\u064a\u0631\u0627\u062a \u0639\u0644\u0649 \u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u062e\u0635\u0648\u0635\u064a\u0629",content:["\u0642\u062f \u0646\u0642\u0648\u0645 \u0628\u062a\u062d\u062f\u064a\u062b \u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u062e\u0635\u0648\u0635\u064a\u0629 \u0645\u0646 \u0648\u0642\u062a \u0644\u0622\u062e\u0631.","\u0633\u064a\u062a\u0645 \u0625\u062e\u0637\u0627\u0631\u0643 \u0628\u0623\u064a \u062a\u063a\u064a\u064a\u0631\u0627\u062a \u062c\u0648\u0647\u0631\u064a\u0629 \u0645\u0646 \u062e\u0644\u0627\u0644 \u0625\u0634\u0639\u0627\u0631 \u062f\u0627\u062e\u0644 \u0627\u0644\u062a\u0637\u0628\u064a\u0642.","\u0627\u0633\u062a\u0645\u0631\u0627\u0631\u0643 \u0641\u064a \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062a\u0637\u0628\u064a\u0642 \u0628\u0639\u062f \u0627\u0644\u062a\u063a\u064a\u064a\u0631\u0627\u062a \u064a\u0639\u0646\u064a \u0645\u0648\u0627\u0641\u0642\u062a\u0643 \u0639\u0644\u0649 \u0627\u0644\u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u0645\u062d\u062f\u062b\u0629."]},{title:"9. \u0627\u062a\u0635\u0644 \u0628\u0646\u0627",content:["\u0625\u0630\u0627 \u0643\u0627\u0646 \u0644\u062f\u064a\u0643 \u0623\u064a \u0623\u0633\u0626\u0644\u0629 \u062d\u0648\u0644 \u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u062e\u0635\u0648\u0635\u064a\u0629 \u0647\u0630\u0647\u060c \u064a\u0645\u0643\u0646\u0643 \u0627\u0644\u062a\u0648\u0627\u0635\u0644 \u0645\u0639\u0646\u0627 \u0639\u0628\u0631:","\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a: supp
2[email protected]",'\u0623\u0648 \u0645\u0646 \u062e\u0644\u0627\u0644 \u0635\u0641\u062d\u0629 "\u0627\u062a\u0635\u0644 \u0628\u0646\u0627" \u062f\u0627\u062e\u0644 \u0627\u0644\u062a\u0637\u0628\u064a\u0642.']}]},en:{title:"Privacy Policy",lastUpdated:"Last Updated: February 2026",sections:[{title:"1. Information We Collect",content:["When registering on Amposter, we ask you to choose a username that is visible to everyone.","We do not require you to use your real name - you can choose any name you prefer.","You will have a unique account ID that is visible to other users.","We do not collect or store sensitive personal information from your Google account or any other login service."]},{title:"2. Data Generated During Use",content:["When using the app, additional data related to your activity is generated:","\u2022 Number of virtual coins","\u2022 Number of points",'\u2022 "Saraha" messages',"\u2022 Posts and comments","\u2022 Quran reading progress","\u2022 Notifications","\u2022 Used hashtags","This data is stored to enhance your experience within the app and is linked only to your account."]},{title:"3. How We Use Your Information",content:["We use the collected information to:","\u2022 Provide and improve our services","\u2022 Personalize your experience within the app","\u2022 Communicate with you about updates and notifications","\u2022 Ensure platform security and safety","\u2022 Comply with our rules and terms of use"]},{title:"4. Information Sharing",content:["We do not sell, rent, or share your personal information with third parties.","Visible information (username and account ID) is available to other users as part of social interaction.","We may disclose information if required by law or to protect our rights."]},{title:"5. Data Security",content:["We take reasonable security measures to protect your data from unauthorized access or misuse.","However, 100% data security cannot be guaranteed over the internet.","You are responsible for maintaining the confidentiality of your account and password."]},{title:"6. Account Deletion",content:["You can delete your account at any time through the Settings page.","When deleting your account, all your data will be permanently removed:","\u2022 Account information","\u2022 Posts and comments","\u2022 Points and coins","\u2022 Quran progress","\u2022 All data associated with your account","Note that this action is final and cannot be undone."]},{title:"7. User Rights",content:["You have the right to:","\u2022 Access your personal data","\u2022 Update or correct your information","\u2022 Delete your account and data","\u2022 Object to data processing","\u2022 Withdraw your consent at any time"]},{title:"8. Changes to Privacy Policy",content:["We may update the privacy policy from time to time.","You will be notified of any material changes through an in-app notification.","Your continued use of the app after changes means your acceptance of the updated policy."]},{title:"9. Contact Us",content:["If you have any questions about this privacy policy, you can contact us via:","Email: [email protected]",'Or through the "Contact Us" page within the app.']}]}}[n];return(0,Ze.jsxs)("div",{className:"privacy-page ".concat("dark"===t?"theme-dark-space":"theme-light-space"),children:[(0,Ze.jsx)(en.A,{title:o.title,className:"dark"===t?"theme-dark-item":"theme-light-item"}),(0,Ze.jsxs)("div",{className:"privacy-content",children:[(0,Ze.jsxs)("div",{className:"language-toggle",children:[(0,Ze.jsx)("button",{className:"lang-btn ".concat("ar"===n?"active":""," ").concat("dark"===t?"theme-dark-item":""),onClick:()=>r("ar"),children:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"}),(0,Ze.jsx)("button",{className:"lang-btn ".concat("en"===n?"active":""," ").concat("dark"===t?"theme-dark-item":""),onClick:()=>r("en"),children:"English"})]}),(0,Ze.jsxs)("div",{className:"privacy-card ".concat("dark"===t?"theme-dark-item":""),dir:"ar"===n?"rtl":"ltr",children:[(0,Ze.jsxs)("div",{className:"header-section",children:[(0,Ze.jsx)("h2",{children:o.title}),(0,Ze.jsx)("p",{className:"last-updated",children:o.lastUpdated})]}),(0,Ze.jsx)("div",{className:"sections-list",children:o.sections.map(((e,t)=>(0,Ze.jsxs)("div",{className:"section-item",children:[(0,Ze.jsx)("h3",{children:e.title}),(0,Ze.jsx)("div",{className:"section-content",children:e.content.map(((e,t)=>(0,Ze.jsx)("p",{children:e},t)))})]},t)))})]})]})]})};var rn=n(40727);const on="__amposterDiagnosticsPatched",an=new Set(["name","tag","description","img","cover_img","sensitive_img","sensitive_cover","active_frame_id","active_frame_color_id","frame_url","frame_border_radius","active_profile_theme"]),sn=e=>({name:(null===e||void 0===e?void 0:e.name)||"Error",message:(null===e||void 0===e?void 0:e.message)||String(e||"Unknown error"),code:(null===e||void 0===e?void 0:e.code)||null}),ln=e=>{try{const t=new URL("string"===typeof e?e:null===e||void 0===e?void 0:e.url,window.location.origin);return{host:t.host,path:t.pathname.slice(0,500)}}catch(t){return{host:null,path:"unparseable-url"}}},cn=e=>{try{const t=new URL(e.toString());return decodeURIComponent(t.pathname).replace(/^\/+/,"").slice(0,800)}catch(t){return"unknown"}},un=e=>!e||"object"!==typeof e||Array.isArray(e)?[]:Object.keys(e).slice(0,80),dn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];
2const r=e.split("/").filter(Boolean);return r.includes("reactions")?"remove"===t?"reaction_removed":"reaction_changed":r.includes("comments")?"remove"===t?"comment_deleted":"comment_changed":r.includes("friend_requests")?"friend_request_changed":r.includes("saved_posts")?"saved_post_changed":r.includes("notifications")?"notification_changed":"posts"===r[0]?r.length<=2&&("set"===t||"push"===t)?"post_created_or_replaced":"remove"===t?"post_deleted":"post_updated":"kunaiu_bank"===r[0]&&(an.has(r[2])||n.some((e=>an.has(e))))?"profile_updated":"kunaiu_bank"===r[0]&&2===r.length&&"update"===t?"user_record_updated":"events"===r[0]?"event_changed":"teams"===r[0]?"team_changed":"chats"===r[0]||"messages"===r[0]?"message_changed":"database_operation"},pn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,rn.uJ)("database_".concat(t.operation,"_").concat(e),(0,r.A)((0,r.A)({},t),n?{error:sn(n)}:{}),"failed"===e?"error":"info")},hn=(e,t)=>{const n=null===e||void 0===e?void 0:e[t];if("function"!==typeof n||n[on])return;const o=function(){const e=Date.now(),o=cn(this);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];const l=un(a[0]),c={operation:t,action:dn(o,t,l),databasePath:o,changedKeys:l};let u;(0,rn.uJ)("database_".concat(t,"_started"),c);try{u=n.apply(this,a)}catch(d){throw pn("failed",(0,r.A)((0,r.A)({},c),{},{durationMs:Date.now()-e}),d),d}return u&&"function"===typeof u.then?u.then((t=>(pn("succeeded",(0,r.A)((0,r.A)({},c),{},{durationMs:Date.now()-e})),t)),(t=>{throw pn("failed",(0,r.A)((0,r.A)({},c),{},{durationMs:Date.now()-e}),t),t})):u};o[on]=!0,e[t]=o},fn=()=>{try{const e=Ke.firebase.database().ref("/"),t=Object.getPrototypeOf(e);["set","update","remove","transaction","once"].forEach((e=>{hn(t,e)}));const n=t.push;if("function"===typeof n&&!n[on]){const e=function(){const e=Date.now(),t=cn(this);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const s=un(i[0]),l={operation:"push",action:dn(t,"push",s),databasePath:t,changedKeys:s};(0,rn.uJ)("database_push_started",l);try{const t=n.apply(this,i);return i.length>0&&t&&"function"===typeof t.then?t.then((()=>pn("succeeded",(0,r.A)((0,r.A)({},l),{},{durationMs:Date.now()-e}))),(t=>pn("failed",(0,r.A)((0,r.A)({},l),{},{durationMs:Date.now()-e}),t))):pn("succeeded",(0,r.A)((0,r.A)({},l),{},{durationMs:Date.now()-e,keyAllocatedOnly:!0})),t}catch(c){throw pn("failed",(0,r.A)((0,r.A)({},l),{},{durationMs:Date.now()-e}),c),c}};e[on]=!0,t.push=e}const o=t.on;if("function"===typeof o&&!o[on]){const e=function(e,t,n,r){const i=cn(this);(0,rn.uJ)("database_listener_attached",{operation:"on",eventType:e,databasePath:i,action:dn(i,"on")});const a="function"===typeof n?t=>((0,rn.uJ)("database_listener_failed",{eventType:e,databasePath:i,error:sn(t)},"error"),n.call(r,t)):n;return o.call(this,e,t,a,r)};e[on]=!0,t.on=e}}catch(e){(0,rn.uJ)("database_diagnostics_install_failed",{error:sn(e)},"error")}},mn=(e,t)=>!t.path.includes("/connection_diagnostics/")&&((t.host!==window.location.host||"GET"!==e)&&("GET"!==e&&"HEAD"!==e)),_n=()=>{var e,t;const n=null===(e=window.XMLHttpRequest)||void 0===e?void 0:e.prototype;if(!n||null!==(t=n.open)&&void 0!==t&&t[on])return;const o=n.open,i=n.send,a=function(e,t){this.__amposterDiagnosticRequest={method:String(e||"GET").toUpperCase(),url:ln(t)};for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return o.call(this,e,t,...r)};a[on]=!0,n.open=a,n.send=function(e){const t=this.__amposterDiagnosticRequest;if(!t||!mn(t.method,t.url))return i.call(this,e);const n=Date.now(),o=(0,r.A)({transport:"xhr",method:t.method},t.url);return(0,rn.uJ)("http_request_started",o),this.addEventListener("loadend",(()=>{const e=this.status>=200&&this.status<400;(0,rn.uJ)(e?"http_request_succeeded":"http_request_failed",(0,r.A)((0,r.A)({},o),{},{status:this.status,durationMs:Date.now()-n}),e?"info":"error")}),{once:!0}),i.call(this,e)}},gn=e=>{var t,n,r,o,i,a,s;const l=null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"href");let c=null;if(l)try{c=new URL(l,window.location.origin).pathname}catch(u){}return{element:(null===(n=e.tagName)||void 0===n?void 0:n.toLowerCase())||null,id:e.id||null,role:(null===(r=e.getAttribute)||void 0===r?void 0:r.call(e,"role"))||null,type:(null===(o=e.getAttribute)||void 0===o?void 0:o.call(e,"type"))||null,name:(null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"name"))||null,ariaLabel:(null===(a=e.getAttribute)||void 0===a?void 0:a.call(e,"aria-label"))||null,title:(null===(s=e.getAttribute)||void 0===s?void 0:s.call(e,"title"))||null,classNames:Array.from(e.classList||[]).slice(0,8),href:c}},vn=e.lazy((()=>n.e(2304).then(n.bind(n,2304)))),yn=e.lazy((()=>n.e(8001).then(n.bind(n,98001)))),bn=e.lazy((()=>n.e(6721).then(n.bind(n,16721)))),wn=e.lazy((()=>Promise.all([n.e(5380),n.e(4945),n.e(2674)]).then(n.bind(n,17831)))),xn=e.lazy((()=>n.e(8737).then(n.bind(n,8737)))),kn=e.lazy((()=>n.e(40).then(n.bind(n,10040)))),Sn=e.lazy((()=>n.e(3645).then(n.bind(n,3645)))),Cn=e.lazy((()=>n.e(3917).then(n.bind(n,3917)))),An=e.lazy((()=>Promise.resolve().then(n.bind(n,65159)))),En=e.lazy((()=>Promise.all([n.e(8690),n.e(959),n.e(2617)]).then(n.bind(n,46476)))),jn=e.lazy((()=>Promise.all([n.e(1719),n.e(9875)]).then(n.bind(n,23131)))),Tn=e.lazy((()=>
2n.e(3184).then(n.bind(n,73184)))),Pn=e.lazy((()=>n.e(6038).then(n.bind(n,26038)))),Nn=e.lazy((()=>n.e(1738).then(n.bind(n,91738)))),In=e.lazy((()=>n.e(2774).then(n.bind(n,92774)))),Rn=e.lazy((()=>n.e(9570).then(n.bind(n,49570)))),On=e.lazy((()=>n.e(9820).then(n.bind(n,49820)))),Dn=e.lazy((()=>n.e(7500).then(n.bind(n,57500)))),Mn=e.lazy((()=>n.e(6959).then(n.bind(n,66959)))),Ln=e.lazy((()=>Promise.resolve().then(n.bind(n,49527)))),Fn=e.lazy((()=>n.e(1587).then(n.bind(n,81587)))),zn=e.lazy((()=>n.e(6845).then(n.bind(n,36845)))),Bn=e.lazy((()=>n.e(2286).then(n.bind(n,92286)))),qn=e.lazy((()=>n.e(1386).then(n.bind(n,31386)))),Un=e.lazy((()=>Promise.all([n.e(8777),n.e(5448)]).then(n.bind(n,95448)))),Hn=e.lazy((()=>Promise.all([n.e(8777),n.e(1844)]).then(n.bind(n,21844)))),Wn=e.lazy((()=>n.e(8649).then(n.bind(n,28649)))),Vn=e.lazy((()=>n.e(3201).then(n.bind(n,33201)))),Kn=e.lazy((()=>n.e(8778).then(n.bind(n,98778)))),Gn=e.lazy((()=>Promise.all([n.e(5808),n.e(980)]).then(n.bind(n,50980)))),Yn=e.lazy((()=>n.e(4455).then(n.bind(n,64455)))),Qn=e.lazy((()=>n.e(7433).then(n.bind(n,57433)))),Xn=e.lazy((()=>n.e(2052).then(n.bind(n,42052)))),$n=e.lazy((()=>n.e(9024).then(n.bind(n,9024)))),Jn=e.lazy((()=>n.e(5902).then(n.bind(n,15902)))),Zn=e.lazy((()=>
2n.e(3753).then(n.bind(n,83753)))),er=e.lazy((()=>n.e(117).then(n.bind(n,50117)))),tr=e.lazy((()=>n.e(1294).then(n.bind(n,91294)))),nr=e.lazy((()=>n.e(7690).then(n.bind(n,97690)))),rr=e.lazy((()=>n.e(8665).then(n.bind(n,28665)))),or=e.lazy((()=>n.e(1155).then(n.bind(n,61155)))),ir=e.lazy((()=>n.e(4631).then(n.bind(n,24631)))),ar=e.lazy((()=>n.e(5424).then(n.bind(n,25424)))),sr=e.lazy((()=>n.e(3251).then(n.bind(n,93251)))),lr=e.lazy((()=>n.e(9963).then(n.bind(n,99963)))),cr=e.lazy((()=>n.e(2900).then(n.bind(n,72900)))),ur=e.lazy((()=>n.e(8054).then(n.bind(n,78054)))),dr=e.lazy((()=>n.e(2583).then(n.bind(n,42583)))),pr=e.lazy((()=>n.e(9425).then(n.bind(n,29425)))),hr=e.lazy((()=>n.e(734).then(n.bind(n,10734)))),fr=e.lazy((()=>n.e(86).then(n.bind(n,90086)))),mr=e.lazy((()=>n.e(709).then(n.bind(n,50709)))),_r=e.lazy((()=>n.e(110).then(n.bind(n,60110)))),gr=e.lazy((()=>Promise.resolve().then(n.bind(n,64725)))),vr=e.lazy((()=>n.e(8330).then(n.bind(n,8330)))),yr=e.lazy((()=>n.e(575).then(n.bind(n,20575)))),br=e.lazy((()=>n.e(7889).then(n.bind(n,27889)))),wr=e.lazy((()=>n.e(173).then(n.bind(n,70173)))),xr=e.lazy((()=>Promise.all([n.e(1719),n.e(1193)]).then(n.bind(n,11719)))),kr=e.lazy((()=>
2n.e(780).then(n.bind(n,780)))),Sr=e.lazy((()=>Promise.all([n.e(4945),n.e(2432)]).then(n.bind(n,44945)))),Cr=e.lazy((()=>n.e(2992).then(n.bind(n,42992)))),Ar=e.lazy((()=>Promise.all([n.e(8690),n.e(959),n.e(321)]).then(n.bind(n,72244)))),Er=e.lazy((()=>Promise.all([n.e(50),n.e(1158)]).then(n.bind(n,61158)))),jr=e.lazy((()=>Promise.all([n.e(5380),n.e(5736)]).then(n.bind(n,95736)))),Tr=e.lazy((()=>Promise.all([n.e(50),n.e(4065)]).then(n.bind(n,64065)))),Pr=e.lazy((()=>n.e(5380).then(n.bind(n,75380)))),Nr=e.lazy((()=>n.e(2079).then(n.bind(n,22079)))),Ir=e.lazy((()=>n.e(7257).then(n.bind(n,97257)))),Rr=e.lazy((()=>Promise.all([n.e(5808),n.e(3796)]).then(n.bind(n,73796)))),Or=e.lazy((()=>Promise.all([n.e(5808),n.e(5882)]).then(n.bind(n,35882)))),Dr=e.lazy((()=>n.e(1729).then(n.bind(n,71729)))),Mr=()=>(0,Ze.jsx)("div",{style:{minHeight:"40vh",display:"flex",alignItems:"center",justifyContent:"center",color:"#666",fontSize:"16px",fontWeight:600},children:"\u062c\u0627\u0631\u064a \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0635\u0641\u062d\u0629..."}),Lr=()=>(e.useEffect((()=>{let e=0;const t=t=>{e++;const n=e;console.log("[PostsSyncService] #".concat(n," sync triggered \u2014 reason: ").concat(t)),Vt.A.syncLatestPostsInBackground((e=>{var t;console.log("[PostsSyncService] #".concat(n," callback received \u2014 newPosts count:"),null!==(t=null===e||void 0===e?void 0:e.length)&&void 0!==t?t:"undefined/null"),e&&0!==e.length?(console.log("[PostsSyncService] #".concat(n," dispatching newPostsSynced with ").concat(e.length," posts")),window.dispatchEvent(new CustomEvent("newPostsSynced",{detail:{posts:e}}))):console.log("[PostsSyncService] #".concat(n," no new posts \u2014 nothing to dispatch"))}))};t("initial load");const n=setInterval((()=>t("interval")),3e5),r=()=>{document.hidden||t("visibilitychange")};return document.addEventListener("visibilitychange",r),()=>{clearInterval(n),document.removeEventListener("visibilitychange",r)}}),[]),null),Fr=()=>{const t=(0,o.zy)(),{loading:n}=e.useContext(i.Rs),{currentModal:r}=e.useContext(ut.V),[a,l]=e.useState(!1);e.useEffect((()=>{const e=[".post-modal-overlay",".comment-dialog-overlay",".profile-modal-overlay",".reaction-dialog-overlay",".image-viewer-overlay",".saraha-overlay",".send-dialog-overlay",".icon-dialog-overlay",".single-video-overlay",".modal-overlay"].join(","),t=()=>{const t=!!document.querySelector(e);l(t)};t();const n=new MutationObserver(t);return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0}),()=>n.disconnect()}),[]);return["/create","/post/:post_id/comments","/post/:post_id/comment/:comment_id/single","/post/:post_id/comment/:comment_id/replies/:reply_id","/post/:post_id/comment/:comment_id/replies/:reply_id/single","/post/:post_id/comment/:comment_id/reply/:reply_id/single","/post/:post_id/comments/:comment_id","/post/:post_id/comments/:comment_id/single","/post/:post_id/comments/:comment_id/replies/:reply_id","/post/:post_id/comments/:comment_id/replies/:reply_id/single","/post/:post_id/comment/:comment_id","/post/:post_id/comment/:comment_id/reply/:reply_id","/post/:postId","/poll/:postId","/video/:postId","/character/:category/:id","/profile/:profile_id","/list/:profile_id/:id","/administrators","/hashtag/:hashtag","/team/:teamId/posts","/frames-store","/bubble-store","/store","/quran","/my-quran-list","/characters","/characters/:category/:character_id","/edit-profile","/tasbeeh","/notifications","/saved-posts","/suggestion-report","/suggestions-box","/police-reports","/literature-reports","/law-reports","/health-reports","/reports","/tasbeeh/counter","/login","/emergency-login","/create-profile","/manage-hashtags","/create-poll","/create-video","/create-quiz","/settings","/daily_quiz","/adhkar","/create-post-list","/friends","/messages","/messages/create-group","/messages/chat/:id","/messages/group/:groupid","/contacts","/messages/discover","/prayer-tracker","/create-plan","/my-reports","/admin/talents","TalentsBadges/:categoryKey","/talentQuiz/:category","/events","/create-event","/edit-event/:eventId","/adhkar-packs","/pack-editor/:packId","/saraha","/team"].some((e=>(0,o.B6)({path:e,end:!0},t.pathname)))||t.pathname.startsWith("/tasbeeh")||n||a||null!==r?null:(0,Ze.jsx)(s.A,{})},zr=()=>{const t=(0,o.zy)(),{userData:n,loading:r}=e.useContext(i.Rs),[a,s]=e.useState(!1),l=(0,o.B6)({path:"/",end:!0},t.pathname)||(0,o.B6)({path:"/post",end:!0},t.pathname);return e.useEffect((()=>{l&&s(!0)}),[l]),!r&&n&&n.name&&n.tag&&(a||l)?(0,Ze.jsx)("div",{style:{display:l?"block":"none"},children:(0,Ze.jsx)(jn,{})}):null},Br=()=>{const[t,n]=e.useState(!1),[r,o]=e.useState("\u0627\u0644\u0633\u064a\u0631\u0641\u0631 \u0642\u064a\u062f \u0627\u0644\u0635\u064a\u0627\u0646\u0629 \u062d\u0627\u0644\u064a\u0627\u064b");return e.useEffect((()=>
2{const e=Ke.firebase.database().ref("site_maintenance"),t=e.on("value",(e=>{const t=e.val()||{};!0===t.enabled?(n(!0),t.message&&o(t.message)):n(!1)}));return()=>{e.off("value",t)}}),[]),t?(0,Ze.jsx)("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0, 0, 0, 0.85)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:999999,backdropFilter:"blur(5px)"},children:(0,Ze.jsxs)("div",{style:{textAlign:"center",color:"#fff",padding:"40px 20px",maxWidth:"400px",borderRadius:"12px",background:"rgba(20, 20, 20, 0.95)",border:"2px solid rgba(255, 100, 100, 0.3)",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.5)"},children:[(0,Ze.jsx)("div",{style:{fontSize:"48px",marginBottom:"20px"},children:"\ud83d\udd27"}),(0,Ze.jsx)("h2",{style:{margin:"0 0 10px 0",fontSize:"24px"},children:"\u0635\u064a\u0627\u0646\u0629 \u0627\u0644\u0645\u0648\u0642\u0639"}),(0,Ze.jsx)("p",{style:{margin:"0",fontSize:"16px",color:"#ccc",lineHeight:"1.6"},children:r}),(0,Ze.jsx)("p",{style:{margin:"15px 0 0 0",fontSize:"14px",color:"#999"},children:"\u064a\u0631\u062c\u0649 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u0627\u064b"})]})}):null},qr=t=>{let{allowedRoles:n,children:r}=t;const{userData:a}=e.useContext(i.Rs);return a&&n.includes(a.role)?r:(0,Ze.jsx)(o.C5,{to:"/",replace:!0})},Ur=e=>{let{title:t,message:n,onBack:r}=e;return(0,Ze.jsx)("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"#050505",color:"#fff",textAlign:"center",padding:"24px"},children:(0,Ze.jsxs)("div",{children:[(0,Ze.jsx)("div",{style:{fontSize:"clamp(28px, 8vw, 52px)",fontWeight:800,marginBottom:12},children:"\u0623\u0646\u062a \u0645\u062d\u0638\u0648\u0631"}),t&&(0,Ze.jsx)("div",{style:{fontSize:18,marginBottom:8,color:"#ffb3b3"},children:t}),n&&(0,Ze.jsx)("div",{style:{fontSize:15,color:"#d0d0d0",lineHeight:1.7,marginBottom:r?20:0},children:n}),r&&(0,Ze.jsx)("button",{type:"button",onClick:r,style:{marginTop:10,padding:"12px 20px",borderRadius:999,border:"none",background:"#2563eb",color:"#fff",fontWeight:700,cursor:"pointer"},children:"\u0627\u0644\u0639\u0648\u062f\u0629 \u0644\u0644\u062e\u0644\u0641"})]})})},Hr=t=>{let{banType:n,children:r}=t;const{userData:a,loading:s}=e.useContext(i.Rs),l=(0,o.Zp)();if(s)return null;const c=(0,Jt.DO)(a,n);return c?(0,Ze.jsx)(Ur,{title:Jt.z[n]||"\u062d\u0638\u0631 \u0646\u0634\u0637",message:c.reason||"\u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645 \u063a\u064a\u0631 \u0645\u062a\u0627\u062d \u0628\u0633\u0628\u0628 \u0627\u0644\u062d\u0638\u0631 \u0627\u0644\u062d\u0627\u0644\u064a.",onBack:()=>{window.history.length>1?l(-1):l("/posts",{replace:!0})}}):r},Wr=t=>{let{children:n}=t;const{userData:r,loading:o}=e.useContext(i.Rs),a=(0,Jt.DO)(r,Jt._c.FULL);return o?null:a?(0,Ze.jsx)(Ur,{}):n},Vr=t=>{let{children:n}=t;const{userData:r,loading:a,profileStatus:s,retryProfile:l}=e.useContext(i.Rs);return a?(0,Ze.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",background:"white"},children:[(0,Ze.jsx)("img",{src:"/assets/icons/icon-192x192.png",alt:"App Icon",style:{width:"80px",height:"80px",marginBottom:"20px"}}),(0,Ze.jsx)("div",{children:"\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644..."})]}):"error"===s?(0,Ze.jsxs)("div",{dir:"rtl",style:{display:"flex",flexDirection:"column",gap:14,justifyContent:"center",alignItems:"center",minHeight:"100vh",padding:24,textAlign:"center",background:"white"},children:[(0,Ze.jsx)("img",{src:"/assets/icons/icon-192x192.png",alt:"App Icon",style:{width:"80px",height:"80px"}}),(0,Ze.jsx)("div",{style:{fontSize:18,fontWeight:700},children:"\u062a\u0639\u0630\u0651\u0631 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a"}),(0,Ze.jsx)("div",{style:{color:"#666",maxWidth:420},children:"\u0644\u0645 \u0646\u062a\u0645\u0643\u0646 \u0645\u0646 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0627\u0644\u062e\u0627\u062f\u0645. \u0628\u064a\u0627\u0646\u0627\u062a\u0643 \u0622\u0645\u0646\u0629\u
2060c \u0648\u0644\u0646 \u064a\u062a\u0645 \u0646\u0642\u0644\u0643 \u0625\u0644\u0649 \u0625\u0646\u0634\u0627\u0621 \u0645\u0644\u0641 \u0634\u062e\u0635\u064a \u062c\u062f\u064a\u062f."}),(0,Ze.jsx)("button",{type:"button",onClick:l,style:{border:0,borderRadius:10,padding:"11px 24px",background:"#2563eb",color:"white",fontWeight:700,cursor:"pointer"},children:"\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629"})]}):"signed-out"===s||!r&&"missing"!==s?(0,Ze.jsx)(o.C5,{to:"/login",replace:!0}):"missing"===s?(0,Ze.jsx)(o.C5,{to:"/create-profile",replace:!0}):n},Kr=()=>{const e=(0,o.zy)(),t=new URLSearchParams(e.search);return t.set("type","video"),(0,Ze.jsx)(o.C5,{to:"/create?".concat(t.toString()),replace:!0})},Gr="__amposterPwaExitGuard",Yr=()=>{const t=(0,o.zy)(),n=(0,Wt.dj)(),{currentModal:i}=e.useContext(ut.V);return e.useEffect((()=>{var e,o;const a=(null===(e=(o=window).matchMedia)||void 0===e?void 0:e.call(o,"(display-mode: standalone)").matches)||!0===window.navigator.standalone||document.referrer.startsWith("android-app://"),s="/"===t.pathname||"/post"===t.pathname;if(!a||!s)return;let l=null;const c=()=>{var e;if(null!==(e=window.history.state)&&void 0!==e&&e[Gr])return;const t=window.history.state||{},n=(0,r.A)((0,r.A)({},t),{},{[Gr]:!0});"number"===typeof t.idx&&(n.idx=t.idx+1),window.history.pushState(n,"",window.location.href)};c();const u=e=>{var t;const r=Boolean(document.querySelector([".post-modal-overlay",".comment-dialog-overlay",".profile-modal-overlay",".reaction-dialog-overlay",".image-viewer-overlay",".single-video-overlay",".modal-overlay"].join(",")));null!==(t=e.state)&&void 0!==t&&t[Gr]||(0,Ge.G0)()||(0,Ge.Vz)()||null!==i||r||"/"!==window.location.pathname&&"/post"!==window.location.pathname||(n("\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0632\u0631 \u0627\u0644\u0631\u062c\u0648\u0639 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649 \u0644\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0627\u0644\u062a\u0637\u0628\u064a\u0642",{duration:2500}),window.clearTimeout(l),l=window.setTimeout(c,2500))};return window.addEventListener("popstate",u),()=>{window.removeEventListener("popstate",u),window.clearTimeout(l)}}),[i,t.pathname,n]),null},Qr=()=>{const t=(0,o.zy)();return e.useEffect((()=>{!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,rn.uJ)("page_view",{pathname:String(e||"/").slice(0,500),hasQuery:Boolean(t)})}(t.pathname,t.search)}),[t.pathname,t.search]),null};const Xr=function(){e.useEffect((()=>{const e=["amposter_role_","amposter_winner_"],t=[];for(let n=0;n<localStorage.length;n++){const r=localStorage.key(n);r&&(e.some((e=>r.startsWith(e)))&&"amposter_role"!==r&&"amposter_winner"!==r&&t.push(r))}t.forEach((e=>localStorage.removeItem(e)))}),[]),e.useEffect((()=>{const e=[()=>n.e(7889).then(n.bind(n,27889)),()=>Promise.all([n.e(8690),n.e(959),n.e(321)]).then(n.bind(n,72244)),()=>Promise.all([n.e(1719),n.e(9875)]).then(n.bind(n,23131)),()=>n.e(9024).then(n.bind(n,9024)),()=>Promise.resolve().then(n.bind(n,65159))];let t=!1,r=0;const o=()=>{if(t||r>=e.length)return;(0,e[r++])().catch((()=>{})),i()},i=()=>{"requestIdleCallback"in window?window.requestIdleCallback(o,{timeout:2e3}):setTimeout(o,1200)};return i(),()=>{t=!0}}),[]);const t=()=>(0,Ze.jsx)(Tr,{talentType:"plants"}),r=()=>(0,Ze.jsx)(Tr,{talentType:"chemistry"}),s=()=>(0,Ze.jsx)(Tr,{talentType:"zakat"}),u=()=>(0,Ze.jsx)(Tr,{talentType:"quran"});return(0,Ze.jsx)(Ht,{children:(0,Ze.jsx)(ut.Z,{children:(0,Ze.jsx)(Ve,{maxSnack:1,anchorOrigin:{vertical:"top",horizontal:"center"},children:(0,Ze.jsx)(Wt.tE,{children:(0,Ze.jsx)(o.Kd,{children:(0,Ze.jsx)(l.NP,{children:(0,Ze.jsx)(c.I,{children:(0,Ze.jsx)(i.vu,{children:(0,Ze.jsxs)(Wr,{children:[(0,Ze.jsx)(Br,{}),(0,Ze.jsx)(et,{}),(0,Ze.jsx)(Lr,{}),(0,Ze.jsx)(Yr,{}),(0,Ze.jsx)(Qr,{}),(0,Ze.jsx)($t,{}),(0,Ze.jsxs)(e.Suspense,{fallback:(0,Ze.jsx)(Mr,{}),children:[(0,Ze.jsx)(zr,{}),(0,Ze.jsx)("div",{className:"route-page-animator",children:(0,Ze.jsxs)(o.BV,{children:[(0,Ze.jsx)(o.qh,{path:"/",element:(0,Ze.jsx)(Vr,{children:(0,Ze.jsx)("div",{})})}),(0,Ze.jsx)(o.qh,{path:"/login",element:(0,Ze.jsx)(xn,{})}),(0,Ze.jsx)(o.qh,{path:"/emergency-login",element:(0,Ze.jsx)(hr,{})}),(0,Ze.jsx)(o.qh,{path:"/register",element:(0,Ze.jsx)(kn,{})}),(0,Ze.jsx)(o.qh,{path:"/saraha",element:(0,Ze.jsx)(Dr,{})}),(0,Ze.jsx)(o.qh,{path:"/friends",element:(0,Ze.jsx)(Sn,{})}),(0,Ze.jsx)(o.qh,{path:"/contacts",element:(0,Ze.jsx)(Cn,{})}),(0,Ze.jsx)(o.qh,{path:"/create",element:(0,Ze.jsx)(Hr,{banType:Jt._c.PUBLISH,children:(0,Ze.jsx)(En,{})})}),(0,Ze.jsx)(o.qh,{path:"/create-quiz",element:(0,Ze.jsx)(Hr,{banType:Jt._c.PUBLISH,children:(0,Ze.jsx)(xr,{})})}),(0,Ze.jsx)(o.qh,{path:"/post",element:(0,Ze.jsx)(Vr,{children:(0,Ze.jsx)("div",{})})}),(0,Ze.jsx)(o.qh,{path:"/post/:postId",element:(0,Ze.jsx)(Nn,{})}),(0,Ze.jsx)(o.qh,{path:"/poll/:postId",element:(0,Ze.jsx)(In,{})}),(0,Ze.jsx)(o.qh,{path:"/video/:postId",element:(0,Ze.jsx)(gr,{})}),(0,Ze.jsx)(o.qh,{path:"/character/:category/:id",element:(0,Ze.jsx)(mr,{})}),(0,Ze.jsx)(o.qh,{path:"/hashtag/:hashtag",element:(0,Ze.jsx)(Ln,{})}),(0,Ze.jsx)(o.qh,{path:"/team/:teamId/posts",element:(0,Ze.jsx)(Fn,{})}),(0,Ze.jsx)(o.qh,{path:"/frames-store",element:(0,Ze.jsx)(zn,{})}),(0,Ze.jsx)(o.qh,{path:"/bubble-store",element:(0,Ze.jsx)(Sr,{})}),(0,Ze.jsx)(o.qh,{path:"/create-post-list",element:(0,Ze.jsx)(Bn,{})}),(0,Ze.jsx)(o.qh,{path:"/list/:userId/:listId",element:(0,Ze.jsx)(qn,{})}),(0,Ze.jsx)(o.qh,{path:"/store",element:(0,Ze.jsx)(ur,{})}),(0,Ze.jsx)(o.qh,{path:"/quran",element:(0,Ze.jsx)(dr,{})}),(0,Ze.jsx)(o.qh,{path:"/my-quran-list",element:(0,Ze.jsx)(pr,{})}),(0,Ze.jsx)(o.qh,{path:"/characters",element:(0,Ze.jsx)(fr,{})}),(0,Ze.jsx)(o.qh,{path:"/characters/:category/:id",element:(0,Ze.jsx)(mr,{})}),(0,Ze.jsx)(o.qh,{path:"/edit-profile",element:(0,Ze.jsx)(Un,{})}),(0,Ze.jsx)(o.qh,{path:"/create-profile",element:(0,Ze.jsx)(Hn,{})}),(0,Ze.jsx)(o.qh,{path:"/deleted_posts",element:(0,Ze.jsx)(qr,{allowedRoles:["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","super_admin"],children:(0,Ze.jsx)(Rn,{})})}),(0,Ze.jsx)(o.qh,{path:"/manage-hashtags",element:(0,Ze.jsx)(cr,{})}),(0,Ze.jsx)(o.qh,{path:"/administrators",element:(0,Ze.jsx)(On,{})}),(0,Ze.jsx)(o.qh,{path:"/moderation-logs",element:(0,Ze.jsx)(Dn,{})}),(0,Ze.jsx)(o.qh,{path:"/team",element:(0,Ze.jsx)(Mn,{})}),(0,Ze.jsx)(o.qh,{path:"/post/:post_id/comments",element:(0,Ze.jsx)(Tn,{})}),(0,Ze.jsx)(o.qh,{path:"/post/:post_id/comment/:comment_id",element:(0,Ze.jsx)(Pn,{})}),(0,Ze.jsx)(o.qh,{path:"/post/:post_id/comment/:comment_id/replies/:reply_id",element:(0,Ze.jsx)(Zn,{})}),(0,Ze.jsx)(o.qh,{path:"/post/:post_id/comment/:comment_id/reply/:reply_id/single",element:(0,Ze.jsx)(Zn,{})}),(0,Ze.jsx)(o.qh,{path:"/post/:post_id/comment/:comment_id/single",element:(0,Ze.jsx)(Jn,{})}),(0,Ze.jsx)(o.qh,{path:"/post/:post_id/comments/:comment_id",element:(0,Ze.jsx)(Pn,{})}),(0,Ze.jsx)(o.qh,{path:"/post/:post_id/comments/:comment_id/single",element:(0,Ze.jsx)(Jn,{})}),(0,Ze.jsx)(o.qh,{path:"/post/:post_id/comments/:comment_id/replies/:reply_id",element:(0,Ze.jsx)(Zn,{})}),(0,Ze.jsx)(o.qh,{path:"/post/:post_id/comments/:comment_id/replies/:reply_id/single",element:(0,Ze.jsx)(Zn,{})}),(0,Ze.jsx)(o.qh,{path:"/more",element:(0,Ze.jsx)(Wn,{})}),(0,Ze.jsx)(o.qh,{path:"/daily_quiz",element:(0,Ze.jsx)(yr,{})}),(0,Ze.jsx)(o.qh,{path:"/daily-missions",element:(0,Ze.jsx)(br,{})}),(0,Ze.jsx)(o.qh,{path:"/create-daily-quiz",element:(0,Ze.jsx)(qr,{allowedRoles:["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","super_admin","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0645\u0634\u0631\u0641 \u0627\u0644\u0623\u0633\u0626\u0644\u0629"],children:(0,Ze.jsx)(wr,{})})}),(0,Ze.jsx)(o.qh,{path:"/settings",element:(0,Ze.jsx)(Vn,{})}),(0,Ze.jsx)(o.qh,{path:"/terms",element:(0,Ze.jsx)(tn,{})}),(0,Ze.jsx)(o.qh,{path:"/privacy",element:(0,Ze.jsx)(nn,{})}),(0,Ze.jsx)(o.qh,{path:"/child-safety",element:(0,Ze.jsx)(kr,{})}),(0,Ze.jsx)(o.qh,{path:"/notifications",element:(0,Ze.jsx)($n,{})}),(0,Ze.jsx)(o.qh,{path:"/my-reports",element:(0,Ze.jsx)(Vr,{children:(0,Ze.jsx)(nr,{})})}),(0,Ze.jsx)(o.qh,{path:"/messages",element:(0,Ze.jsx)(Hr,{banType:Jt._c.MESSAGE,children:(0,Ze.jsx)(vn,{})})}),(0,Ze.jsx)(o.qh,{path:"/messages/chat/:id",element:(0,Ze.jsx)(Hr,{banType:Jt._c.MESSAGE,children:(0,Ze.jsx)(wn,{isGroup:!1})})}),(0,Ze.jsx)(o.qh,{path:"/messages/group/:id",element:(0,Ze.jsx)(Hr,{banType:Jt._c.MESSAGE,children:(0,Ze.jsx)(wn,{isGroup:!0})})}),(0,Ze.jsx)(o.qh,{path:"/messages/create-group",element:(0,Ze.jsx)(Hr,{banType:Jt._c.MESSAGE,children:(0,Ze.jsx)(yn,{})})}),(0,Ze.jsx)(o.qh,{path:"/messages/discover",element:(0,Ze.jsx)(bn,{})}),(0,Ze.jsx)(o.qh,{path:"/Tasbeeh",element:(0,Ze.jsx)(Kn,{})}),(0,Ze.jsx)(o.qh,{path:"/adhkar",element:(0,Ze.jsx)(Gn,{})}),(0,Ze.jsx)(o.qh,{path:"/Tasbeeh/Counter",element:(0,Ze.jsx)(Yn,{})}),(0,Ze.jsx)(o.qh,{path:"/Tasbeeh/Leaderboard",element:(0,Ze.jsx)(Qn,{})}),(0,Ze.jsx)(o.qh,{path:"/prayer-tracker",element:(0,Ze.jsx)(Xn,{})}),(0,Ze.jsx)(o.qh,{path:"/saved-posts",element:(0,Ze.jsx)(er,{})}),(0,Ze.jsx)(o.qh,{path:"/drafts",element:(0,Ze.jsx)(Vr,{children:(0,Ze.jsx)(tr,{})})}),(0,Ze.jsx)(o.qh,{path:"/create-poll",element:(0,Ze.jsx)(Hr,{banType:Jt._c.PUBLISH,children:(0,Ze.jsx)(_r,{})})}),(0,Ze.jsx)(o.qh,{path:"/create-video",element:(0,Ze.jsx)(Kr,{})}),(0,Ze.jsx)(o.qh,{path:"/create-plan",element:(0,Ze.jsx)(vr,{})}),(0,Ze.jsx)(o.qh,{path:"/talents-badges",element:(0,Ze.jsx)(Pr,{})}),(0,Ze.jsx)(o.qh,{path:"/TalentsBadges/:categoryKey",element:(0,Ze.jsx)(Nr,{})}),(0,Ze.jsx)(o.qh,{path:"/admin/talents",element:(0,Ze.jsx)(qr,{allowedRoles:["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","super_admin","\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0641\u0646\u064a \u0645\u062d\u062a\u0648\u0649","\u0641\u0646\u064a \u0645\u062d\u062a\u0648\u0649"],children:(0,Ze.jsx)(Ir,{})})}),(0,Ze.jsx)(o.qh,{path:"/suggestions-box",element:(0,Ze.jsx)(qr,{allowedRoles:["\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","super_admin"],children:(0,Ze.jsx)(rr,{})})}),(0,Ze.jsx)(o.qh,{path:"/reports",element:(0,Ze.jsx)(qr,{allowedRoles:["\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0645\u0634\u0631\u0641 \u0627\u0644\u0645\u062d\u062a\u0648\u0649","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","super_admin"],children:(0,Ze.jsx)(lr,{})})}),(0,Ze.jsx)(o.qh,{path:"/police-reports",element:(0,Ze.jsx)(qr,{allowedRoles:["\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0634\u0631\u0637\u0629","\u0645\u0631\u0643\u0632 \u0627\u0644\u0634\u0631\u0637\u0629","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","super_admin"],children:(0,Ze.jsx)(or,{})})}),(0,Ze.jsx)(o.qh,{path:"/literature-reports",element:(0,Ze.jsx)(qr,{allowedRoles:["\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0622\u062f\u0627\u0628","\u0645\u0631\u0643\u0632 \u0627\u0644\u0622\u062f\u0627\u0628","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","super_admin"],children:(0,Ze.jsx)(ir,{})})}),(0,Ze.jsx)(o.qh,{path:"/law-reports",element:(0,Ze.jsx)(qr,{allowedRoles:["\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0642\u0627\u0646\u0648\u0646","\u0645\u0631\u0643\u0632 \u0627\u0644\u0642\u0627\u0646\u0648\u0646","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","super_admin"],children:(0,Ze.jsx)(ar,{})})}),(0,Ze.jsx)(o.qh,{path:"/health-reports",element:(0,Ze.jsx)(qr,{allowedRoles:["\u0645\u0633\u0624\u0648\u0644 \u0642\u0633\u0645 \u0627\u0644\u0635\u062d\u0629","\u0645\u0631\u0643\u0632 \u0627\u0644\u0635\u062d\u0629","\u0646\u0627\u0626\u0628 \u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","\u0627\u0644\u0645\u0634\u0631\u0641 \u0627\u0644\u0639\u0627\u0645","super_admin"],children:(0,Ze.jsx)(sr,{})})}),(0,Ze.jsx)(o.qh,{path:"/TalentQuiz/math",element:(0,Ze.jsx)(Er,{})}),(0,Ze.jsx)(o.qh,{path:"/TalentQuiz/plants",element:(0,Ze.jsx)(t,{})}),(0,Ze.jsx)(o.qh,{path:"/TalentQuiz/chemistry",element:(0,Ze.jsx)(r,{})}),(0,Ze.jsx)(o.qh,{path:"/TalentQuiz/zakat",element:(0,Ze.jsx)(s,{})}),(0,Ze.jsx)(o.qh,{path:"/TalentQuiz/quran",element:(0,Ze.jsx)(u,{})}),(0,Ze.jsx)(o.qh,{path:"/TalentQuiz/wpm",element:(0,Ze.jsx)(jr,{})}),(0,Ze.jsx)(o.qh,{path:"/islamic",element:(0,Ze.jsx)(Cr,{})}),(0,Ze.jsx)(o.qh,{path:"/events",element:(0,Ze.jsx)(Zt.A,{})}),(0,Ze.jsx)(o.qh,{path:"/create-event",element:(0,Ze.jsx)(Ar,{})}),(0,Ze.jsx)(o.qh,{path:"/edit-event/:eventId",element:(0,Ze.jsx)(Ar,{})}),(0,Ze.jsx)(o.qh,{path:"/adhkar-packs",element:(0,Ze.jsx)(Rr,{})}),(0,Ze.jsx)(o.qh,{path:"/pack-editor/:packId",element:(0,Ze.jsx)(Or,{})}),(0,Ze.jsx)(o.qh,{path:"/profile/:user_id",element:(0,Ze.jsx)(a.M,{children:(0,Ze.jsx)(An,{})})})]})})]}),(0,Ze.jsx)(Fr,{}),(0,Ze.jsx)(Gt,{})]})})})})})})})})})},$r=e=>{e&&e instanceof Function&&n.e(6453).then(n.bind(n,46453)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:i,getTTFB:a}=t;n(e),r(e),o(e),i(e),a(e)}))},Jr=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function Zr(e,t){navigator.serviceWorker.register(e).then((e=>{e.onupdatefound=()=>{const n=e.installing;null!=n&&(n.onstatechange=()=>{"installed"===n.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(e)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(e)))})}})).catch((e=>{console.error("Error during service worker registration:",e)}))}var eo=n(35016);(0,rn.LH)(),window[on]||(window[on]=!0,fn(),(()=>{var e;if(null!==(e=window.fetch)&&void 0!==e&&e[on])return;const t=window.fetch.bind(window),n=async function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=String(n.method||(null===e||void 0===e?void 0:e.method)||"GET").toUpperCase(),i=ln(e);if(!mn(o,i))return t(e,n);const a=Date.now(),s=(0,r.A)({transport:"fetch",method:o},i);(0,rn.uJ)("http_request_started",s);try{const o=await t(e,n);return(0,rn.uJ)(o.ok?"http_request_succeeded":"http_request_failed",(0,r.A)((0,r.A)({},s),{},{status:o.status,durationMs:Date.now()-a}),o.ok?"info":"error"),o}catch(l){throw(0,rn.uJ)("http_request_failed",(0,r.A)((0,r.A)({},s),{},{durationMs:Date.now()-a,error:sn(l)}),"error"),l}};n[on]=!0,window.fetch=n})(),_n(),document.addEventListener("click",(e=>{const t=e.target instanceof Element?e.target.closest('button, a, [role="button"], input[type="submit"]'):null;t&&(0,rn.uJ)("ui_action_clicked",gn(t))}),{capture:!0}),document.addEventListener("submit",(e=>{e.target instanceof HTMLFormElement&&(0,rn.uJ)("form_submitted",gn(e.target))}
2),{capture:!0}),document.addEventListener("change",(e=>{const t=e.target;if(!(t instanceof HTMLInputElement)||"file"!==t.type)return;const n=Array.from(t.files||[]);(0,rn.uJ)("files_selected",{input:gn(t),fileCount:n.length,files:n.slice(0,10).map((e=>({type:e.type||"unknown",size:e.size})))})}),{capture:!0}),(0,rn.uJ)("deep_diagnostics_installed",{database:!0,fetch:!0,xhr:!0,ui:!0}));const to="amposter_cache_version",no="2.3";localStorage.getItem(to)!==no&&(console.log("\ud83e\uddf9 Clearing old cache..."),localStorage.setItem(to,no),Vt.A.clearAllCache().then((()=>{console.log("\u2705 Cache cleared and version updated to",no)})).catch((e=>{console.error("\u274c Error clearing cache:",e)})));t.createRoot(document.getElementById("root")).render((0,Ze.jsx)(e.StrictMode,{children:(0,Ze.jsx)(eo.OJ,{children:(0,Ze.jsx)(Xr,{})})})),function(e){if("serviceWorker"in navigator){if(new URL("",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{const t="".concat("","/service-worker.js");Jr?(!function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const r=n.headers.get("content-type");404===n.status||null!=r&&-1===r.indexOf("javascript")?navigator.serviceWorker.ready.then((e=>{e.unregister().then((()=>{window.location.reload()}))})):Zr(e,t)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))}(t,e),navigator.serviceWorker.ready.then((()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")}))):Zr(t,e)}))}}();const ro=()=>{document.documentElement.style.setProperty("--vh","".concat(.01*window.innerHeight,"px"))};ro(),window.addEventListener("resize",ro);document.addEventListener("contextmenu",(e=>{var t;(t=e.target)instanceof Element&&Boolean(t.closest('input, textarea, [contenteditable="true"], [contenteditable="plaintext-only"]'))||e.preventDefault()}),{capture:!0}),document.addEventListener("dragstart",(e=>{e.target instanceof Element&&e.target.closest("img, video, audio, svg")&&e.preventDefault()}),{capture:!0}),$r()})()})();
3//# sourceMappingURL=main.5e5ce585.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.