PageSourceSearch

https://notnow.dev/static/js/main.qxCxIqDs.js

js notnow.dev collected 2026-10-03 23:51:47 UTC 1,398,269 bytes, 696 lines download raw bytes

vendor: 1,135 bytes, lines 1-5
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/sticker_picker.B0j2YsOB.js","static/css/sticker_picker.BzJVB0Ta.css","static/js/settings_modal.B74APXc5.js","static/css/settings_modal.dQ5YFZGx.css","static/js/update_notification.DdDhzBg0.js","static/css/update_notification.BJ1CAGCw.css"])))=>i.map(i=>d[i]);
2(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
3* @vue/shared v3.5.19
4* (c) 2018-present Yuxi (Evan) You and Vue contributors
5* @license MIT
6**//*! #__NO_SIDE_EFFECTS__ */function Gy(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const fn={},Pl=[],to=()=>{},j8=()=>!1,Zh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ky=e=>e.startsWith("onUpdate:"),xn=Object.assign,xy=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},PD=Object.prototype.hasOwnProperty,Zt=(e,t)=>PD.call(e,t),lt=Array.isArray,Ll=e=>nc(e)==="[object Map]",tc=e=>nc(e)==="[object Set]",u3=e=>nc(e)==="[object Date]",LD=e=>nc(e)==="[object RegExp]",wt=e=>typeof e=="function",kn=e=>typeof e=="string",Ir=e=>typeof e=="symbol",pn=e=>e!==null&&typeof e=="object",B8=e=>(pn(e)||wt(e))&&wt(e.then)&&wt(e.catch),z8=Object.prototype.toString,nc=e=>z8.call(e),OD=e=>nc(e).slice(8,-1),q8=e=>nc(e)==="[object Object]",Yy=e=>kn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vu=Gy(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Qh=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},RD=/-(\w)/g,br=Qh(e=>e.replace(RD,(t,n)=>n?n.toUpperCase():"")),MD=/\B([A-Z])/g,Vi=Qh(e=>e.replace(MD,"-$1").toLowerCase()),ep=Qh(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hf=Qh(e=>e?`on${ep(e)}`:""),Oi=(e,t)=>!Object.is(e,t),Ol=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},H8=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},ah=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ND=e=>{const t=kn(e)?Number(e):NaN;return isNaN(t)?e:t};let d3;const tp=()=>d3||(d3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hn(e){if(lt(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=kn(s)?jD(s):hn(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(kn(e)||pn(e))return e}const FD=/;(?![^(]*\))/g,DD=/:([^]+)/,UD=/\/\*[^]*?\*\//g;function jD(e){const t={};return e.replace(UD,"").split(FD).forEach(n=>{if(n){const s=n.split(DD);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function he(e){let t="";if(kn(e))t=e;else if(lt(e))for(let n=0;n<e.length;n++){const s=he(e[n]);s&&(t+=s+" ")}else if(pn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function lh(e){if(!e)return null;let{class:t,style:n}=e;return t&&!kn(t)&&(e.class=he(t)),n&&(e.style=hn(n)),e}const BD="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",zD=Gy(BD);function V8(e){return!!e||e===""}function qD(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=La(e[s],t[s]);return n}function La(e,t){if(e===t)return!0;let n=u3(e),s=u3(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ir(e),s=Ir(t),n||s)return e===t;if(n=lt(e),s=lt(t),n||s)return n&&s?qD(e,t):!1;if(n=pn(e),s=pn(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(a&&!c||!a&&c||!La(e[i],t[i]))return!1}}return String(e)===String(t)}function Xy(e,t){return e.findIndex(n=>La(n,t))}const W8=e=>!!(e&&e.__v_isRef===!0),w=e=>kn(e)?e:e==null?"":lt(e)||pn(e)&&(e.toString===z8||!wt(e.toString))?W8(e)?w(e.value):JSON.stringify(e,G8,2):String(e),G8=(e,t)=>W8(t)?G8(e,t.value):Ll(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[gg(s,o)+" =>"]=r,n),{})}:tc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>gg(n))}:Ir(t)?gg(t):pn(t)&&!lt(t)&&!q8(t)?String(t):t,gg=(e,t="")=>{var n;return Ir(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
7* @vue/reactivity v3.5.19
8* (c) 2018-present Yuxi (Evan) You and Vue contributors
9* @license MIT
vendor: 5,587 bytes, line 10
10**/let ds;class K8{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ds,!t&&ds&&(this.index=(ds.scopes||(ds.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ds;try{return ds=this,t()}finally{ds=n}}}on(){++this._on===1&&(this.prevScope=ds,ds=this)}off(){this._on>0&&--this._on===0&&(ds=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function np(e){return new K8(e)}function x8(){return ds}function HD(e,t=!1){ds&&ds.cleanups.push(e)}let vn;const vg=new WeakSet;class Y8{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ds&&ds.active&&ds.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,vg.has(this)&&(vg.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||J8(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,f3(this),Z8(this);const t=vn,n=$r;vn=this,$r=!0;try{return this.fn()}finally{Q8(this),vn=t,$r=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Qy(t);this.deps=this.depsTail=void 0,f3(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?vg.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){A0(this)&&this.run()}get dirty(){return A0(this)}}let X8=0,bu,yu;function J8(e,t=!1){if(e.flags|=8,t){e.next=yu,yu=e;return}e.next=bu,bu=e}function Jy(){X8++}function Zy(){if(--X8>0)return;if(yu){let t=yu;for(yu=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;bu;){let t=bu;for(bu=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Z8(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Q8(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Qy(s),VD(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function A0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(eA(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function eA(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bu)||(e.globalVersion=Bu,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!A0(e))))return;e.flags|=2;const t=e.dep,n=vn,s=$r;vn=e,$r=!0;try{Z8(e);const r=e.fn(e._value);(t.version===0||Oi(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{vn=n,$r=s,Q8(e),e.flags&=-3}}function Qy(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Qy(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function VD(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let $r=!0;const tA=[];function Ho(){tA.push($r),$r=!1}function Vo(){const e=tA.pop();$r=e===void 0?!0:e}function f3(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=vn;vn=void 0;try{t()}finally{vn=n}}}let Bu=0;class WD{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class e_{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!vn||!$r||vn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==vn)n=this.activeLink=new WD(vn,this),vn.deps?(n.prevDep=vn.depsTail,vn.depsTail.nextDep=n,vn.depsTail=n):vn.deps=vn.depsTail=n,nA(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=vn.depsTail,n.nextDep=void 0,vn.depsTail.nextDep=n,vn.depsTail=n,vn.deps===n&&(vn.deps=s)}return n}trigger(t){this.version++,Bu++,this.notify(t)}notify(t){Jy();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Zy()}}}function nA(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)nA(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ch=new WeakMap,Aa=Symbol(""),E0=Symbol(""),zu=Symbol("");function fs(e,t,n){if($r&&vn){let s=ch.get(e);s||ch.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new e_),r.map=s,r.key=n),r.track()}}function Ro(e,t,n,s,r,o){const i=ch.get(e);if(!i){Bu++;return}const a=c=>{c&&c.trigger()};if(Jy(),t==="clear")i.forEach(a);else{const c=lt(e),u=c&&Yy(n);if(c&&n==="length"){const f=Number(s);
vendor: 5,231 bytes, line 10
10i.forEach((h,v)=>{(v==="length"||v===zu||!Ir(v)&&v>=f)&&a(h)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(zu)),t){case"add":c?u&&a(i.get("length")):(a(i.get(Aa)),Ll(e)&&a(i.get(E0)));break;case"delete":c||(a(i.get(Aa)),Ll(e)&&a(i.get(E0)));break;case"set":Ll(e)&&a(i.get(Aa));break}}Zy()}function GD(e,t){const n=ch.get(e);return n&&n.get(t)}function bl(e){const t=Mt(e);return t===e?t:(fs(t,"iterate",zu),mr(e)?t:t.map(ts))}function sp(e){return fs(e=Mt(e),"iterate",zu),e}const KD={__proto__:null,[Symbol.iterator](){return bg(this,Symbol.iterator,ts)},concat(...e){return bl(this).concat(...e.map(t=>lt(t)?bl(t):t))},entries(){return bg(this,"entries",e=>(e[1]=ts(e[1]),e))},every(e,t){return To(this,"every",e,t,void 0,arguments)},filter(e,t){return To(this,"filter",e,t,n=>n.map(ts),arguments)},find(e,t){return To(this,"find",e,t,ts,arguments)},findIndex(e,t){return To(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return To(this,"findLast",e,t,ts,arguments)},findLastIndex(e,t){return To(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return To(this,"forEach",e,t,void 0,arguments)},includes(...e){return yg(this,"includes",e)},indexOf(...e){return yg(this,"indexOf",e)},join(e){return bl(this).join(e)},lastIndexOf(...e){return yg(this,"lastIndexOf",e)},map(e,t){return To(this,"map",e,t,void 0,arguments)},pop(){return Kc(this,"pop")},push(...e){return Kc(this,"push",e)},reduce(e,...t){return h3(this,"reduce",e,t)},reduceRight(e,...t){return h3(this,"reduceRight",e,t)},shift(){return Kc(this,"shift")},some(e,t){return To(this,"some",e,t,void 0,arguments)},splice(...e){return Kc(this,"splice",e)},toReversed(){return bl(this).toReversed()},toSorted(e){return bl(this).toSorted(e)},toSpliced(...e){return bl(this).toSpliced(...e)},unshift(...e){return Kc(this,"unshift",e)},values(){return bg(this,"values",ts)}};function bg(e,t,n){const s=sp(e),r=s[t]();return s!==e&&!mr(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.value&&(o.value=n(o.value)),o}),r}const xD=Array.prototype;function To(e,t,n,s,r,o){const i=sp(e),a=i!==e&&!mr(e),c=i[t];if(c!==xD[t]){const h=c.apply(e,o);return a?ts(h):h}let u=n;i!==e&&(a?u=function(h,v){return n.call(this,ts(h),v,e)}:n.length>2&&(u=function(h,v){return n.call(this,h,v,e)}));const f=c.call(i,u,s);return a&&r?r(f):f}function h3(e,t,n,s){const r=sp(e);let o=n;return r!==e&&(mr(e)?n.length>3&&(o=function(i,a,c){return n.call(this,i,a,c,e)}):o=function(i,a,c){return n.call(this,i,ts(a),c,e)}),r[t](o,...s)}function yg(e,t,n){const s=Mt(e);fs(s,"iterate",zu);const r=s[t](...n);return(r===-1||r===!1)&&r_(n[0])?(n[0]=Mt(n[0]),s[t](...n)):r}function Kc(e,t,n=[]){Ho(),Jy();const s=Mt(e)[t].apply(e,n);return Zy(),Vo(),s}const YD=Gy("__proto__,__v_isRef,__isVue"),sA=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ir));function XD(e){Ir(e)||(e=String(e));const t=Mt(this);return fs(t,"has",e),t.hasOwnProperty(e)}class rA{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?iU:lA:o?aA:iA).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=lt(t);if(!r){let c;if(i&&(c=KD[n]))return c;if(n==="hasOwnProperty")return XD}const a=Reflect.get(t,n,Sn(t)?t:s);return(Ir(n)?sA.has(n):YD(n))||(r||fs(t,"get",n),o)?a:Sn(a)?i&&Yy(n)?a:a.value:pn(a)?r?cA(a):Pr(a):a}}class oA extends rA{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const c=Wo(o);if(!mr(s)&&!Wo(s)&&(o=Mt(o),s=Mt(s)),!lt(t)&&Sn(o)&&!Sn(s))return c||(o.value=s),!0}const i=lt(t)&&Yy(n)?Number(n)<t.length:Zt(t,n),a=Reflect.set(t,n,s,Sn(t)?t:r);return t===Mt(r)&&(i?Oi(s,o)&&Ro(t,"set",n,s):Ro(t,"add",n,s)),a}deleteProperty(t,n){const s=Zt(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Ro(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Ir(n)||!sA.has(n))&&fs(t,"has",n),s}ownKeys(t){return fs(t,"iterate",lt(t)?"length":Aa),Reflect.ownKeys(t)}}class JD extends rA{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ZD=new oA,QD=new JD,eU=new oA(!0);const I0=e=>e,bf=e=>Reflect.getPrototypeOf(e);function tU(e,t,n){return function(...s){const r=this.__v_raw,o=Mt(r),i=Ll(o),a=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=r[e](...s),f=n?I0:t?uh:ts;return!t&&fs(o,"iterate",c?E0:Aa),{next(){const{value:h,done:v}=u.next();return v?{value:h,done:v}:{value:a?[f(h[0]),f(h[1])]:f(h),done:v}},[Symbol.iterator](){return this}}}}function yf(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nU(e,t){const n={get(r){const o=this.__v_raw,i=Mt(o),a=Mt(r);e||(Oi(r,a)&&fs(i,"get",r),fs(i,"get",a));const{has:c}=bf(i),u=t?I0:e?uh:ts;if(c.call(i,r))return u(o.get(r));if(c.call(i,a))return u(o.get(a));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&fs(Mt(r),"iterate",Aa),Reflect.get(r,"size",r)},has(r){const o=this.__v_raw,i=Mt(o),a=Mt(r);return e||(Oi(r,a)&&fs(i,"has",r),fs(i,"has",a)),r===a?o.has(r):o.has(r)||o.has(a)}
vendor: 5,563 bytes, lines 10-13
10,forEach(r,o){const i=this,a=i.__v_raw,c=Mt(a),u=t?I0:e?uh:ts;return!e&&fs(c,"iterate",Aa),a.forEach((f,h)=>r.call(o,u(f),u(h),i))}};return xn(n,e?{add:yf("add"),set:yf("set"),delete:yf("delete"),clear:yf("clear")}:{add(r){!t&&!mr(r)&&!Wo(r)&&(r=Mt(r));const o=Mt(this);return bf(o).has.call(o,r)||(o.add(r),Ro(o,"add",r,r)),this},set(r,o){!t&&!mr(o)&&!Wo(o)&&(o=Mt(o));const i=Mt(this),{has:a,get:c}=bf(i);let u=a.call(i,r);u||(r=Mt(r),u=a.call(i,r));const f=c.call(i,r);return i.set(r,o),u?Oi(o,f)&&Ro(i,"set",r,o):Ro(i,"add",r,o),this},delete(r){const o=Mt(this),{has:i,get:a}=bf(o);let c=i.call(o,r);c||(r=Mt(r),c=i.call(o,r)),a&&a.call(o,r);const u=o.delete(r);return c&&Ro(o,"delete",r,void 0),u},clear(){const r=Mt(this),o=r.size!==0,i=r.clear();return o&&Ro(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=tU(r,e,t)}),n}function t_(e,t){const n=nU(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Zt(n,r)&&r in s?n:s,r,o)}const sU={get:t_(!1,!1)},rU={get:t_(!1,!0)},oU={get:t_(!0,!1)};const iA=new WeakMap,aA=new WeakMap,lA=new WeakMap,iU=new WeakMap;function aU(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function lU(e){return e.__v_skip||!Object.isExtensible(e)?0:aU(OD(e))}function Pr(e){return Wo(e)?e:s_(e,!1,ZD,sU,iA)}function n_(e){return s_(e,!1,eU,rU,aA)}function cA(e){return s_(e,!0,QD,oU,lA)}function s_(e,t,n,s,r){if(!pn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=lU(e);if(o===0)return e;const i=r.get(e);if(i)return i;const a=new Proxy(e,o===2?s:n);return r.set(e,a),a}function Bo(e){return Wo(e)?Bo(e.__v_raw):!!(e&&e.__v_isReactive)}function Wo(e){return!!(e&&e.__v_isReadonly)}function mr(e){return!!(e&&e.__v_isShallow)}function r_(e){return e?!!e.__v_raw:!1}function Mt(e){const t=e&&e.__v_raw;return t?Mt(t):e}function rp(e){return!Zt(e,"__v_skip")&&Object.isExtensible(e)&&H8(e,"__v_skip",!0),e}const ts=e=>pn(e)?Pr(e):e,uh=e=>pn(e)?cA(e):e;function Sn(e){return e?e.__v_isRef===!0:!1}function Kn(e){return dA(e,!1)}function uA(e){return dA(e,!0)}function dA(e,t){return Sn(e)?e:new cU(e,t)}class cU{constructor(t,n){this.dep=new e_,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Mt(t),this._value=n?t:ts(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||mr(t)||Wo(t);t=s?t:Mt(t),Oi(t,n)&&(this._rawValue=t,this._value=s?t:ts(t),this.dep.trigger())}}function Lt(e){return Sn(e)?e.value:e}const uU={get:(e,t,n)=>t==="__v_raw"?e:Lt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Sn(r)&&!Sn(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function fA(e){return Bo(e)?e:new Proxy(e,uU)}function dU(e){const t=lt(e)?new Array(e.length):{};for(const n in e)t[n]=hU(e,n);return t}class fU{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return GD(Mt(this._object),this._key)}}function hU(e,t,n){const s=e[t];return Sn(s)?s:new fU(e,t,n)}class pU{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new e_(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&vn!==this)return J8(this,!0),!0}get value(){const t=this.dep.track();return eA(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function mU(e,t,n=!1){let s,r;return wt(e)?s=e:(s=e.get,r=e.set),new pU(s,r,n)}const _f={},dh=new WeakMap;let ba;function gU(e,t=!1,n=ba){if(n){let s=dh.get(n);s||dh.set(n,s=[]),s.push(e)}}function vU(e,t,n=fn){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:a,call:c}=n,u=A=>r?A:mr(A)||r===!1||r===0?Mo(A,1):Mo(A);let f,h,v,y,S=!1,C=!1;if(Sn(e)?(h=()=>e.value,S=mr(e)):Bo(e)?(h=()=>u(e),S=!0):lt(e)?(C=!0,S=e.some(A=>Bo(A)||mr(A)),h=()=>e.map(A=>{if(Sn(A))return A.value;if(Bo(A))return u(A);if(wt(A))return c?c(A,2):A()})):wt(e)?t?h=c?()=>c(e,2):e:h=()=>{if(v){Ho();try{v()}finally{Vo()}}const A=ba;ba=f;try{return c?c(e,3,[y]):e(y)}finally{ba=A}}:h=to,t&&r){const A=h,R=r===!0?1/0:r;h=()=>Mo(A(),R)}const I=x8(),$=()=>{f.stop(),I&&I.active&&xy(I.effects,f)};if(o&&t){const A=t;t=(...R)=>{A(...R),$()}}let k=C?new Array(e.length).fill(_f):_f;const P=A=>{if(!(!(f.flags&1)||!f.dirty&&!A))if(t){const R=f.run();if(r||S||(C?R.some((B,N)=>Oi(B,k[N])):Oi(R,k))){v&&v();const B=ba;ba=f;try{const N=[R,k===_f?void 0:C&&k[0]===_f?[]:k,y];k=R,c?c(t,3,N):t(...N)}finally{ba=B}}}else f.run()};return a&&a(P),f=new Y8(h),f.scheduler=i?()=>i(P,!1):P,y=A=>gU(A,!1,f),v=f.onStop=()=>{const A=dh.get(f);if(A){if(c)c(A,4);else for(const R of A)R();dh.delete(f)}},t?s?P(!0):k=f.run():i?i(P.bind(null,!0),!0):f.run(),$.pause=f.pause.bind(f),$.resume=f.resume.bind(f),$.stop=$,$}function Mo(e,t=1/0,n){if(t<=0||!pn(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Sn(e))Mo(e.value,t,n);else if(lt(e))for(let s=0;s<e.length;s++)Mo(e[s],t,n);else if(tc(e)||Ll(e))e.forEach(s=>{Mo(s,t,n)});else if(q8(e)){for(const s in e)Mo(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Mo(e[s],t,n)}return e}/**
11* @vue/runtime-core v3.5.19
12* (c) 2018-present Yuxi (Evan) You and Vue contributors
13* @license MIT
14**/function sd(e,t,n,s){try{return s?e(...s):e()}catch(r){rd(r,t,n)}}function Lr(e,t,n,s){if(wt(e)){const r=sd(e,t,n,s);return r&&B8(r)&&r.catch(o=>{rd(o,t,n)}),r}if(lt(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Lr(e[o],t,n,s));return r}}function rd(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||fn;if(t){let a=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const f=a.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,c,u)===!1)return}a=a.parent}if(o){Ho(),sd(o,null,10,[e,c,u]),Vo();return}}bU(e,n,r,s,i)}function bU(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const $s=[];let Wr=-1;const Rl=[];let yi=null,Cl=0;const hA=Promise.resolve();let fh=null;function Ri(e){const t=fh||hA;return e?t.then(this?e.bind(this):e):t}function yU(e){let t=Wr+1,n=$s.length;for(;t<n;){const s=t+n>>>1,r=$s[s],o=qu(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function o_(e){if(!(e.flags&1)){const t=qu(e),n=$s[$s.length-1];!n||!(e.flags&2)&&t>=qu(n)?$s.push(e):$s.splice(yU(t),0,e),e.flags|=1,pA()}}function pA(){fh||(fh=hA.then(gA))}function _U(e){lt(e)?Rl.push(...e):yi&&e.id===-1?yi.splice(Cl+1,0,e):e.flags&1||(Rl.push(e),e.flags|=1),pA()}function p3(e,t,n=Wr+1){for(;n<$s.length;n++){const s=$s[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;$s.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function mA(e){if(Rl.length){const t=[...new Set(Rl)].sort((n,s)=>qu(n)-qu(s));if(Rl.length=0,yi){yi.push(...t);return}for(yi=t,Cl=0;Cl<yi.length;Cl++){const n=yi[Cl];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}yi=null,Cl=0}}const qu=e=>e.id==null?e.flags&2?-1:1/0:e.id;function gA(e){try{for(Wr=0;Wr<$s.length;Wr++){const t=$s[Wr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),sd(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Wr<$s.length;Wr++){const t=$s[Wr];t&&(t.flags&=-2)}Wr=-1,$s.length=0,mA(),fh=null,($s.length||Rl.length)&&gA()}}let rs=null,op=null;function hh(e){const t=rs;return rs=e,op=e&&e.type.__scopeId||null,t}function wU(e){op=e}function SU(){op=null}const kU=e=>X;function X(e,t=rs,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&E3(-1);const o=hh(t);let i;try{i=e(...r)}finally{hh(o),s._d&&E3(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function at(e,t){if(rs===null)return e;const n=dp(rs),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,a,c=fn]=t[r];o&&(wt(o)&&(o={mounted:o,updated:o}),o.deep&&Mo(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:c}))}return e}function pa(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];o&&(a.oldValue=o[i].value);let c=a.dir[s];c&&(Ho(),Lr(c,n,8,[e.el,a,e,t]),Vo())}}const vA=Symbol("_vte"),bA=e=>e.__isTeleport,_u=e=>e&&(e.disabled||e.disabled===""),m3=e=>e&&(e.defer||e.defer===""),g3=e=>typeof SVGElement<"u"&&e instanceof SVGElement,v3=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,P0=(e,t)=>{const n=e&&e.to;return kn(n)?t?t(n):null:n},yA={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,a,c,u){const{mc:f,pc:h,pbc:v,o:{insert:y,querySelector:S,createText:C,createComment:I}}=u,$=_u(t.props);let{shapeFlag:k,children:P,dynamicChildren:A}=t;if(e==null){const R=t.el=C(""),B=t.anchor=C("");y(R,n,s),y(B,n,s);const N=(H,D)=>{k&16&&(r&&r.isCE&&(r.ce._teleportTarget=H),f(P,H,D,r,o,i,a,c))},Y=()=>{const H=t.target=P0(t.props,S),D=_A(H,t,C,y);H&&(i!=="svg"&&g3(H)?i="svg":i!=="mathml"&&v3(H)&&(i="mathml"),$||(N(H,D),Vf(t,!1)))};$&&(N(n,B),Vf(t,!0)),m3(t.props)?(t.el.__isMounted=!1,qn(()=>{Y(),delete t.el.__isMounted},o)):Y()}else{if(m3(t.props)&&e.el.__isMounted===!1){qn(()=>{yA.process(e,t,n,s,r,o,i,a,c,u)},o);return}t.el=e.el,t.targetStart=e.targetStart;const R=t.anchor=e.anchor,B=t.target=e.target,N=t.targetAnchor=e.targetAnchor,Y=_u(e.props),H=Y?n:B,D=Y?R:N;if(i==="svg"||g3(B)?i="svg":(i==="mathml"||v3(B))&&(i="mathml"),A?(v(e.dynamicChildren,A,H,r,o,i,a),f_(e,t,!0)):c||h(e,t,H,D,r,o,i,a,!1),$)Y?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):wf(t,n,R,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const oe=t.target=P0(t.props,S);oe&&wf(t,oe,null,u,0)}else Y&&wf(t,B,N,u,1);Vf(t,$)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:i,children:a,anchor:c,targetStart:u,targetAnchor:f,target:h,props:v}=e;if(h&&(r(u),r(f)),o&&r(c),i&16){const y=o||!_u(v);for(let S=0;S<a.length;S++){const C=a[S];s(C,t,n,y,!!C.dynamicChildren)}}},move:wf,hydrate:$U};function wf(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:c,children:u,props:f}=e,h=o===2;if(h&&s(i,t,n),(!h||_u(f))&&c&16)for(let v=0;v<u.length;v++)r(u[v],t,n,2);h&&s(a,t,n)}function $U(e,t,n,s,r,o,{o:{nextSibling:i,parentNode:a,querySelector:c,insert:u,createText:f}},h){const v=t.target=P0(t.props,c);if(v){const y=_u(t.props),S=v._lpa||v.firstChild;if(t.shapeFlag&16)if(y)t.anchor=h(i(e),t,a(e),n,s,r,o),t.targetStart=S,t.targetAnchor=S&&i(S);else{t.anchor=i(e);let C=S;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,v._lpa=t.targetAnchor&&i(t.targetAnchor);break}}C=i(C)}t.targetAnchor||_A(v,t,f,u),h(S&&i(S),t,v,n,s,r,o)}Vf(t,y)}return t.anchor&&i(t.anchor)}const Yn=yA;function Vf(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function _A(e,t,n,s){const r=t.targetStart=n(""),o=t.targetAnchor=n("");return r[vA]=o,e&&(s(r,e),s(o,e)),o}const Oo=Symbol("_leaveCb"),Sf=Symbol("_enterCb");function CU(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
vendor: 19,363 bytes, line 14
14ingVNodes:new Map};return ap(()=>{e.isMounted=!0}),lp(()=>{e.isUnmounting=!0}),e}const dr=[Function,Array],wA={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:dr,onEnter:dr,onAfterEnter:dr,onEnterCancelled:dr,onBeforeLeave:dr,onLeave:dr,onAfterLeave:dr,onLeaveCancelled:dr,onBeforeAppear:dr,onAppear:dr,onAfterAppear:dr,onAppearCancelled:dr},SA=e=>{const t=e.subTree;return t.component?SA(t.component):t},TU={name:"BaseTransition",props:wA,setup(e,{slots:t}){const n=ro(),s=CU();return()=>{const r=t.default&&CA(t.default(),!0);if(!r||!r.length)return;const o=kA(r),i=Mt(e),{mode:a}=i;if(s.isLeaving)return _g(o);const c=b3(o);if(!c)return _g(o);let u=L0(c,i,s,n,h=>u=h);c.type!==ns&&Ul(c,u);let f=n.subTree&&b3(n.subTree);if(f&&f.type!==ns&&!Ti(c,f)&&SA(n).type!==ns){let h=L0(f,i,s,n);if(Ul(f,h),a==="out-in"&&c.type!==ns)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,f=void 0},_g(o);a==="in-out"&&c.type!==ns?h.delayLeave=(v,y,S)=>{const C=$A(s,f);C[String(f.key)]=f,v[Oo]=()=>{y(),v[Oo]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{S(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return o}}};function kA(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ns){t=n;break}}return t}const AU=TU;function $A(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function L0(e,t,n,s,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:v,onLeave:y,onAfterLeave:S,onLeaveCancelled:C,onBeforeAppear:I,onAppear:$,onAfterAppear:k,onAppearCancelled:P}=t,A=String(e.key),R=$A(n,e),B=(H,D)=>{H&&Lr(H,s,9,D)},N=(H,D)=>{const oe=D[1];B(H,D),lt(H)?H.every(le=>le.length<=1)&&oe():H.length<=1&&oe()},Y={mode:i,persisted:a,beforeEnter(H){let D=c;if(!n.isMounted)if(o)D=I||c;else return;H[Oo]&&H[Oo](!0);const oe=R[A];oe&&Ti(e,oe)&&oe.el[Oo]&&oe.el[Oo](),B(D,[H])},enter(H){let D=u,oe=f,le=h;if(!n.isMounted)if(o)D=$||u,oe=k||f,le=P||h;else return;let Pe=!1;const qe=H[Sf]=Ke=>{Pe||(Pe=!0,Ke?B(le,[H]):B(oe,[H]),Y.delayedLeave&&Y.delayedLeave(),H[Sf]=void 0)};D?N(D,[H,qe]):qe()},leave(H,D){const oe=String(e.key);if(H[Sf]&&H[Sf](!0),n.isUnmounting)return D();B(v,[H]);let le=!1;const Pe=H[Oo]=qe=>{le||(le=!0,D(),qe?B(C,[H]):B(S,[H]),H[Oo]=void 0,R[oe]===e&&delete R[oe])};R[oe]=e,y?N(y,[H,Pe]):Pe()},clone(H){const D=L0(H,t,n,s,r);return r&&r(D),D}};return Y}function _g(e){if(od(e))return e=Go(e),e.children=null,e}function b3(e){if(!od(e))return bA(e.type)&&e.children?kA(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&wt(n.default))return n.default()}}function Ul(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ul(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function CA(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===Se?(i.patchFlag&128&&r++,s=s.concat(CA(i.children,t,a))):(t||i.type!==ns)&&s.push(a!=null?Go(i,{key:a}):i)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function Wi(e,t){return wt(e)?xn({name:e.name},t,{setup:e}):e}function i_(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function wu(e,t,n,s,r=!1){if(lt(e)){e.forEach((S,C)=>wu(S,t&&(lt(t)?t[C]:t),n,s,r));return}if(Ea(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&wu(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?dp(s.component):s.el,i=r?null:o,{i:a,r:c}=e,u=t&&t.r,f=a.refs===fn?a.refs={}:a.refs,h=a.setupState,v=Mt(h),y=h===fn?j8:S=>Zt(v,S);if(u!=null&&u!==c){if(kn(u))f[u]=null,y(u)&&(h[u]=null);else if(Sn(u)){u.value=null;const S=t;S.k&&(f[S.k]=null)}}if(wt(c))sd(c,a,12,[i,f]);else{const S=kn(c),C=Sn(c);if(S||C){const I=()=>{if(e.f){const $=S?y(c)?h[c]:f[c]:c.value;if(r)lt($)&&xy($,o);else if(lt($))$.includes(o)||$.push(o);else if(S)f[c]=[o],y(c)&&(h[c]=f[c]);else{const k=[o];c.value=k,e.k&&(f[e.k]=k)}}else S?(f[c]=i,y(c)&&(h[c]=i)):C&&(c.value=i,e.k&&(f[e.k]=i))};i?(I.id=-1,qn(I,n)):I()}}}const y3=e=>e.nodeType===8;tp().requestIdleCallback;tp().cancelIdleCallback;function EU(e,t){if(y3(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(y3(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const Ea=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function gr(e){wt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:o,timeout:i,suspensible:a=!0,onError:c}=e;let u=null,f,h=0;const v=()=>(h++,u=null,y()),y=()=>{let S;return u||(S=u=t().catch(C=>{if(C=C instanceof Error?C:new Error(String(C)),c)return new Promise((I,$)=>{c(C,()=>I(v()),()=>$(C),h+1)});throw C}).then(C=>S!==u&&u?u:(C&&(C.__esModule||C[Symbol.toStringTag]==="Module")&&(C=C.default),f=C,C)))};return Wi({name:"AsyncComponentWrapper",__asyncLoader:y,__asyncHydrate(S,C,I){let $=!1;(C.bu||(C.bu=[])).push(()=>$=!0);const k=()=>{$||I()},P=o?()=>{const A=o(k,R=>EU(S,R));A&&(C.bum||(C.bum=[])).push(A)}:k;f?P():y().then(()=>!C.isUnmounted&&P())},get __asyncResolved(){return f},setup(){const S=ss;if(i_(S),f)return()=>wg(f,S);const C=P=>{u=null,rd(P,S,13,!s)};if(a&&S.suspense||jl)return y().then(P=>()=>wg(P,S)).catch(P=>(C(P),()=>s?T(s,{error:P}):null));const I=Kn(!1),$=Kn(),k=Kn(!!r);return r&&setTimeout(()=>{k.value=!1},r),i!=null&&setTimeout(()=>{if(!I.value&&!$.value){const P=new Error(`Async component timed out after ${i}ms.`);C(P),$.value=P}},i),y().then(()=>{I.value=!0,S.parent&&od(S.parent.vnode)&&S.parent.update()}).catch(P=>{C(P),$.value=P}),()=>{if(I.value&&f)return wg(f,S);if($.value&&s)return T(s,{error:$.value});if(n&&!k.value)return T(n)}}})}function wg(e,t){const{ref:n,props:s,children:r,ce:o}=t.vnode,i=T(e,s,r);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const od=e=>e.type.__isKeepAlive,IU={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ro(),s=n.ctx;if(!s.renderer)return()=>{const k=t.default&&t.default();return k&&k.length===1?k[0]:k};const r=new Map,o=new Set;let i=null;const a=n.suspense,{renderer:{p:c,m:u,um:f,o:{createElement:h}}}=s,v=h("div");s.activate=(k,P,A,R,B)=>{const N=k.component;u(k,P,A,0,a),c(N.vnode,k,P,A,N,a,R,k.slotScopeIds,B),qn(()=>{N.isDeactivated=!1,N.a&&Ol(N.a);const Y=k.props&&k.props.onVnodeMounted;Y&&hr(Y,N.parent,k)},a)},s.deactivate=k=>{const P=k.component;mh(P.m),mh(P.a),u(k,v,null,1,a),qn(()=>{P.da&&Ol(P.da);const A=k.props&&k.props.onVnodeUnmounted;A&&hr(A,P.parent,k),P.isDeactivated=!0},a)};function y(k){Sg(k),f(k,n,a,!0)}function S(k){r.forEach((P,A)=>{const R=D0(P.type);R&&!k(R)&&C(A)})}function C(k){const P=r.get(k);P&&(!i||!Ti(P,i))?y(P):i&&Sg(i),r.delete(k),o.delete(k)}os(()=>[e.include,e.exclude],([k,P])=>{k&&S(A=>ru(k,A)),P&&S(A=>!ru(P,A))},{flush:"post",deep:!0});let I=null;const $=()=>{I!=null&&(gh(n.subTree.type)?qn(()=>{r.set(I,kf(n.subTree))},n.subTree.suspense):r.set(I,kf(n.subTree)))};return ap($),EA($),lp(()=>{r.forEach(k=>{const{subTree:P,suspense:A}=n,R=kf(P);if(k.type===R.type&&k.key===R.key){Sg(R);const B=R.component.da;B&&qn(B,A);return}y(k)})}),()=>{if(I=null,!t.default)return i=null;const k=t.default(),P=k[0];if(k.length>1)return i=null,k;if(!Mi(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let A=kf(P);if(A.type===ns)return i=null,A;const R=A.type,B=D0(Ea(A)?A.type.__asyncResolved||{}:R),{include:N,exclude:Y,max:H}=e;if(N&&(!B||!ru(N,B))||Y&&B&&ru(Y,B))return A.shapeFlag&=-257,i=A,P;const D=A.key==null?R:A.key,oe=r.get(D);return A.el&&(A=Go(A),P.shapeFlag&128&&(P.ssContent=A)),I=D,oe?(A.el=oe.el,A.component=oe.component,A.transition&&Ul(A,A.transition),A.shapeFlag|=512,o.delete(D),o.add(D)):(o.add(D),H&&o.size>parseInt(H,10)&&C(o.values().next().value)),A.shapeFlag|=256,i=A,gh(P.type)?P:A}}},T5e=IU;function ru(e,t){return lt(e)?e.some(n=>ru(n,t)):kn(e)?e.split(",").includes(t):LD(e)?(e.lastIndex=0,e.test(t)):!1}function PU(e,t){TA(e,"a",t)}function LU(e,t){TA(e,"da",t)}function TA(e,t,n=ss){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ip(t,s,n),n){let r=n.parent;for(;r&&r.parent;)od(r.parent.vnode)&&OU(s,t,n,r),r=r.parent}}function OU(e,t,n,s){const r=ip(t,e,s,!0);a_(()=>{xy(s[t],r)},n)}function Sg(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function kf(e){return e.shapeFlag&128?e.ssContent:e}function ip(e,t,n=ss,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Ho();const a=ad(n),c=Lr(t,n,e,i);return a(),Vo(),c});return s?r.unshift(o):r.push(o),o}}const Jo=e=>(t,n=ss)=>{(!jl||e==="sp")&&ip(e,(...s)=>t(...s),n)},AA=Jo("bm"),ap=Jo("m"),RU=Jo("bu"),EA=Jo("u"),lp=Jo("bum"),a_=Jo("um"),MU=Jo("sp"),NU=Jo("rtg"),FU=Jo("rtc");function DU(e,t=ss){ip("ec",e,t)}const l_="components",UU="directives";function O(e,t){return c_(l_,e,!0,t)||e}const IA=Symbol.for("v-ndc");function Oa(e){return kn(e)?c_(l_,e,!1)||e:e||IA}function sc(e){return c_(UU,e)}function c_(e,t,n=!0,s=!1){const r=rs||ss;if(r){const o=r.type;if(e===l_){const a=D0(o,!1);if(a&&(a===t||a===br(t)||a===ep(br(t))))return o}const i=_3(r[e]||o[e],t)||_3(r.appContext[e],t);return!i&&s?o:i}}function _3(e,t){return e&&(e[t]||e[br(t)]||e[ep(br(t))])}function We(e,t,n,s){let r;const o=n,i=lt(e);if(i||kn(e)){const a=i&&Bo(e);let c=!1,u=!1;a&&(c=!mr(e),u=Wo(e),e=sp(e)),r=new Array(e.length);for(let f=0,h=e.length;f<h;f++)r[f]=t(c?u?uh(ts(e[f])):ts(e[f]):e[f],f,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,o)}else if(pn(e))if(e[Symbol.iterator])r=Array.from(e,(a,c)=>t(a,c,void 0,o));else{const a=Object.keys(e);r=new Array(a.length);for(let c=0,u=a.length;c<u;c++){const f=a[c];r[c]=t(e[f],f,c,o)}}else r=[];return r}function Ot(e,t,n={},s,r){if(rs.ce||rs.parent&&Ea(rs.parent)&&rs.parent.ce)return t!=="default"&&(n.name=t),p(),x(Se,null,[T("slot",n,s&&s())],64);let o=e[t];o&&o._c&&(o._d=!1),p();const i=o&&PA(o(n)),a=n.key||i&&i.key,c=x(Se,{key:(a&&!Ir(a)?a:`_${t}`)+(!i&&s?"_fb":"")},i||(s?s():[]),i&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function PA(e){return e.some(t=>Mi(t)?!(t.type===ns||t.type===Se&&!PA(t.children)):!0)?e:null}function jU(e,t){const n={};for(const s in e)n[Hf(s)]=e[s];return n}const O0=e=>e?xA(e)?dp(e):O0(e.parent):null,Su=xn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>O0(e.parent),$root:e=>O0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>OA(e),$forceUpdate:e=>e.f||(e.f=()=>{o_(e.update)}),$nextTick:e=>e.n||(e.n=Ri.bind(e.proxy)),$watch:e=>aj.bind(e)}),kg=(e,t)=>e!==fn&&!e.__isScriptSetup&&Zt(e,t),BU={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:a,appContext:c}=e;let u;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(kg(s,t))return i[t]=1,s[t];if(r!==fn&&Zt(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&Zt(u,t))return i[t]=3,o[t];if(n!==fn&&Zt(n,t))return i[t]=4,n[t];R0&&(i[t]=0)}}const f=Su[t];let h,v;if(f)return t==="$attrs"&&fs(e.attrs,"get",""),f(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==fn&&Zt(n,t))return i[t]=4,n[t];if(v=c.config.globalProperties,Zt(v,t))return v[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return kg(r,t)?(r[t]=n,!0):s!==fn&&Zt(s,t)?(s[t]=n,!0):Zt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o,type:i}},a){let c,u;return!!(n[a]||e!==fn&&a[0]!=="$"&&Zt(e,a)||kg(t,a)||(c=o[0])&&Zt(c,a)||Zt(s,a)||Zt(Su,a)||Zt(r.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Zt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function w3(e){return lt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let R0=!0;function zU(e){const t=OA(e),n=e.proxy,s=e.ctx;R0=!1,t.beforeCreate&&S3(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:a,provide:c,inject:u,created:f,beforeMount:h,mounted:v,beforeUpdate:y,updated:S,activated:C,deactivated:I,beforeDestroy:$,beforeUnmount:k,destroyed:P,unmounted:A,render:R,renderTracked:B,renderTriggered:N,errorCaptured:Y,serverPrefetch:H,expose:D,inheritAttrs:oe,components:le,directives:Pe,filters:qe}=t;if(u&&qU(u,s,null),i)for(const ze in i){const ot=i[ze];wt(ot)&&(s[ze]=ot.bind(n))}if(r){const ze=r.call(n,n);pn(ze)&&(e.data=Pr(ze))}if(R0=!0,o)for(const ze in o){const ot=o[ze],Ct=wt(ot)?ot.bind(n,n):wt(ot.get)?ot.get.bind(n,n):to,dt=!wt(ot)&&wt(ot.set)?ot.set.bind(n):to,bt=vt({get:Ct,set:dt});Object.defineProperty(s,ze,{enumerable:!0,configurable:!0,get:()=>bt.value,set:It=>bt.value=It})}if(a)for(const ze in a)LA(a[ze],s,n,ze);if(c){const ze=wt(c)?c.call(n):c;Reflect.ownKeys(ze).forEach(ot=>{Ml(ot,ze[ot])})}f&&S3(f,e,"c");function Ge(ze,ot){lt(ot)?ot.forEach(Ct=>ze(Ct.bind(n))):ot&&ze(ot.bind(n))}if(Ge(AA,h),Ge(ap,v),Ge(RU,y),Ge(EA,S),Ge(PU,C),Ge(LU,I),Ge(DU,Y),Ge(FU,B),Ge(NU,N),Ge(lp,k),Ge(a_,A),Ge(MU,H),lt(D))if(D.length){const ze=e.exposed||(e.exposed={});D.forEach(ot=>{Object.defineProperty(ze,ot,{get:()=>n[ot],set:Ct=>n[ot]=Ct,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===to&&(e.render=R),oe!=null&&(e.inheritAttrs=oe),le&&(e.components=le),Pe&&(e.directives=Pe),H&&i_(e)}function qU(e,t,n=to){lt(e)&&(e=M0(e));for(const s in e){const r=e[s];let o;pn(r)?"default"in r?o=Ys(r.from||s,r.default,!0):o=Ys(r.from||s):o=Ys(r),Sn(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function S3(e,t,n){Lr(lt(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function LA(e,t,n,s){let r=s.includes(".")?VA(n,s):()=>n[s];if(kn(e)){const o=t[e];wt(o)&&os(r,o)}else if(wt(e))os(r,e.bind(n));else if(pn(e))if(lt(e))e.forEach(o=>LA(o,t,n,s));else{const o=wt(e.handler)?e.handler.bind(n):t[e.handler];wt(o)&&os(r,o,e)}}function OA(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let c;return a?c=a:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>ph(c,u,i,!0)),ph(c,t,i)),pn(t)&&o.set(t,c),c}function ph(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&ph(e,o,n,!0),r&&r.forEach(i=>ph(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=HU[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const HU={data:k3,props:$3,emits:$3,methods:ou,computed:ou,beforeCreate:Ss,created:Ss,beforeMount:Ss,mounted:Ss,beforeUpdate:Ss,updated:Ss,beforeDestroy:Ss,beforeUnmount:Ss,destroyed:Ss,unmounted:Ss,activated:Ss,deactivated:Ss,errorCaptured:Ss,serverPrefetch:Ss,components:ou,directives:ou,watch:WU,provide:k3,inject:VU};function k3(e,t){return t?e?function(){return xn(wt(e)?e.call(this,this):e,wt(t)?t.call(this,this):t)}:t:e}function VU(e,t){return ou(M0(e),M0(t))}function M0(e){if(lt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ss(e,t){return e?[...new Set([].concat(e,t))]:t}function ou(e,t){return e?xn(Object.create(null),e,t):t}function $3(e,t){return e?lt(e)&&lt(t)?[...new Set([...e,...t])]:xn(Object.create(null),w3(e),w3(t??{})):t}function WU(e,t){if(!e)return t;if(!t)return e;const n=xn(Object.create(null),e);for(const s in t)n[s]=Ss(e[s],t[s]);return n}function RA(){return{app:null,config:{isNativeTag:j8,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let GU=0;function KU(e,t){return function(s,r=null){wt(s)||(s=xn({},s)),r!=null&&!pn(r)&&(r=null);const o=RA(),i=new WeakSet,a=[];let c=!1;const u=o.app={_uid:GU++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Tj,get config(){return o.config},set config(f){},use(f,...h){return i.has(f)||(f&&wt(f.install)?(i.add(f),f.install(u,...h)):wt(f)&&(i.add(f),f(u,...h))),u},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),u},component(f,h){return h?(o.components[f]=h,u):o.components[f]},directive(f,h){return h?(o.directives[f]=h,u):o.directives[f]},mount(f,h,v){if(!c){const y=u._ceVNode||T(s,r);return y.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),e(y,f,v),c=!0,u._container=f,f.__vue_app__=u,dp(y.component)}},onUnmount(f){a.push(f)},unmount(){c&&(Lr(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(f,h){return o.provides[f]=h,u},runWithContext(f){const h=Ia;Ia=u;try{return f()}finally{Ia=h}}};return u}}let Ia=null;function Ml(e,t){if(ss){let n=ss.provides;const s=ss.parent&&ss.parent.provides;s===n&&(n=ss.provides=Object.create(s)),n[e]=t}}function Ys(e,t,n=!1){const s=ro();if(s||Ia){let r=Ia?Ia._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&wt(t)?t.call(s&&s.proxy):t}}function xU(){return!!(ro()||Ia)}const MA={},NA=()=>Object.create(MA),FA=e=>Object.getPrototypeOf(e)===MA;function YU(e,t,n,s=!1){const r={},o=NA();e.propsDefaults=Object.create(null),DA(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:n_(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function XU(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,a=Mt(r),[c]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let v=f[h];if(cp(e.emitsOptions,v))continue;const y=t[v];if(c)if(Zt(o,v))y!==o[v]&&(o[v]=y,u=!0);else{const S=br(v);r[S]=N0(c,a,S,y,e,!1)}else y!==o[v]&&(o[v]=y,u=!0)}}}else{DA(e,t,r,o)&&(u=!0);let f;for(const h in a)(!t||!Zt(t,h)&&((f=Vi(h))===h||!Zt(t,f)))&&(c?n&&(n[h]!==void 0||n[f]!==void 0)&&(r[h]=N0(c,a,h,void 0,e,!0)):delete r[h]);if(o!==a)for(const h in o)(!t||!Zt(t,h))&&(delete o[h],u=!0)}u&&Ro(e.attrs,"set","")}function DA(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,a;if(t)for(let c in t){if(vu(c))continue;const u=t[c];let f;r&&Zt(r,f=br(c))?!o||!o.includes(f)?n[f]=u:(a||(a={}))[f]=u:cp(e.emitsOptions,c)||(!(c in s)||u!==s[c])&&(s[c]=u,i=!0)}if(o){const c=Mt(n),u=a||fn;for(let f=0;f<o.length;f++){const h=o[f];n[h]=N0(r,c,h,u[h],e,!Zt(u,h))}}return i}function N0(e,t,n,s,r,o){const i=e[n];if(i!=null){const a=Zt(i,"default");if(a&&s===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&wt(c)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const f=ad(r);s=u[n]=c.call(null,t),f()}}else s=c;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!a?s=!1:i[1]&&(s===""||s===Vi(n))&&(s=!0))}return s}const JU=new WeakMap;function UA(e,t,n=!1){const s=n?JU:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},a=[];let c=!1;if(!wt(e)){const f=h=>{c=!0;const[v,y]=UA(h,t,!0);xn(i,v),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return pn(e)&&s.set(e,Pl),Pl;if(lt(o))for(let f=0;f<o.length;f++){const h=br(o[f]);C3(h)&&(i[h]=fn)}else if(o)for(const f in o){const h=br(f);if(C3(h)){const v=o[f],y=i[h]=lt(v)||wt(v)?{type:v}:xn({}
vendor: 19,542 bytes, line 14
14,v),S=y.type;let C=!1,I=!0;if(lt(S))for(let $=0;$<S.length;++$){const k=S[$],P=wt(k)&&k.name;if(P==="Boolean"){C=!0;break}else P==="String"&&(I=!1)}else C=wt(S)&&S.name==="Boolean";y[0]=C,y[1]=I,(C||Zt(y,"default"))&&a.push(h)}}const u=[i,a];return pn(e)&&s.set(e,u),u}function C3(e){return e[0]!=="$"&&!vu(e)}const u_=e=>e==="_"||e==="_ctx"||e==="$stable",d_=e=>lt(e)?e.map(xr):[xr(e)],ZU=(e,t,n)=>{if(t._n)return t;const s=X((...r)=>d_(t(...r)),n);return s._c=!1,s},jA=(e,t,n)=>{const s=e._ctx;for(const r in e){if(u_(r))continue;const o=e[r];if(wt(o))t[r]=ZU(r,o,s);else if(o!=null){const i=d_(o);t[r]=()=>i}}},BA=(e,t)=>{const n=d_(t);e.slots.default=()=>n},zA=(e,t,n)=>{for(const s in t)(n||!u_(s))&&(e[s]=t[s])},QU=(e,t,n)=>{const s=e.slots=NA();if(e.vnode.shapeFlag&32){const r=t._;r?(zA(s,t,n),n&&H8(s,"_",r,!0)):jA(t,s)}else t&&BA(e,t)},ej=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=fn;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:zA(r,t,n):(o=!t.$stable,jA(t,r)),i=t}else t&&(BA(e,t),i={default:1});if(o)for(const a in r)!u_(a)&&i[a]==null&&delete r[a]},qn=pj;function tj(e){return nj(e)}function nj(e,t){const n=tp();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:a,createComment:c,setText:u,setElementText:f,parentNode:h,nextSibling:v,setScopeId:y=to,insertStaticContent:S}=e,C=(W,G,ee,pe=null,we=null,be=null,j=void 0,q=null,te=!!G.dynamicChildren)=>{if(W===G)return;W&&!Ti(W,G)&&(pe=_e(W),It(W,we,be,!0),W=null),G.patchFlag===-2&&(te=!1,G.dynamicChildren=null);const{type:fe,ref:je,shapeFlag:ke}=G;switch(fe){case id:I(W,G,ee,pe);break;case ns:$(W,G,ee,pe);break;case Wf:W==null&&k(G,ee,pe,j);break;case Se:le(W,G,ee,pe,we,be,j,q,te);break;default:ke&1?R(W,G,ee,pe,we,be,j,q,te):ke&6?Pe(W,G,ee,pe,we,be,j,q,te):(ke&64||ke&128)&&fe.process(W,G,ee,pe,we,be,j,q,te,Ue)}je!=null&&we?wu(je,W&&W.ref,be,G||W,!G):je==null&&W&&W.ref!=null&&wu(W.ref,null,be,W,!0)},I=(W,G,ee,pe)=>{if(W==null)s(G.el=a(G.children),ee,pe);else{const we=G.el=W.el;G.children!==W.children&&u(we,G.children)}},$=(W,G,ee,pe)=>{W==null?s(G.el=c(G.children||""),ee,pe):G.el=W.el},k=(W,G,ee,pe)=>{[W.el,W.anchor]=S(W.children,G,ee,pe,W.el,W.anchor)},P=({el:W,anchor:G},ee,pe)=>{let we;for(;W&&W!==G;)we=v(W),s(W,ee,pe),W=we;s(G,ee,pe)},A=({el:W,anchor:G})=>{let ee;for(;W&&W!==G;)ee=v(W),r(W),W=ee;r(G)},R=(W,G,ee,pe,we,be,j,q,te)=>{G.type==="svg"?j="svg":G.type==="math"&&(j="mathml"),W==null?B(G,ee,pe,we,be,j,q,te):H(W,G,we,be,j,q,te)},B=(W,G,ee,pe,we,be,j,q)=>{let te,fe;const{props:je,shapeFlag:ke,transition:re,dirs:me}=W;if(te=W.el=i(W.type,be,je&&je.is,je),ke&8?f(te,W.children):ke&16&&Y(W.children,te,null,pe,we,$g(W,be),j,q),me&&pa(W,null,pe,"created"),N(te,W,W.scopeId,j,pe),je){for(const rt in je)rt!=="value"&&!vu(rt)&&o(te,rt,null,je[rt],be,pe);"value"in je&&o(te,"value",null,je.value,be),(fe=je.onVnodeBeforeMount)&&hr(fe,pe,W)}me&&pa(W,null,pe,"beforeMount");const xe=sj(we,re);xe&&re.beforeEnter(te),s(te,G,ee),((fe=je&&je.onVnodeMounted)||xe||me)&&qn(()=>{fe&&hr(fe,pe,W),xe&&re.enter(te),me&&pa(W,null,pe,"mounted")},we)},N=(W,G,ee,pe,we)=>{if(ee&&y(W,ee),pe)for(let be=0;be<pe.length;be++)y(W,pe[be]);if(we){let be=we.subTree;if(G===be||gh(be.type)&&(be.ssContent===G||be.ssFallback===G)){const j=we.vnode;N(W,j,j.scopeId,j.slotScopeIds,we.parent)}}},Y=(W,G,ee,pe,we,be,j,q,te=0)=>{for(let fe=te;fe<W.length;fe++){const je=W[fe]=q?_i(W[fe]):xr(W[fe]);C(null,je,G,ee,pe,we,be,j,q)}},H=(W,G,ee,pe,we,be,j)=>{const q=G.el=W.el;let{patchFlag:te,dynamicChildren:fe,dirs:je}=G;te|=W.patchFlag&16;const ke=W.props||fn,re=G.props||fn;let me;if(ee&&ma(ee,!1),(me=re.onVnodeBeforeUpdate)&&hr(me,ee,G,W),je&&pa(G,W,ee,"beforeUpdate"),ee&&ma(ee,!0),(ke.innerHTML&&re.innerHTML==null||ke.textContent&&re.textContent==null)&&f(q,""),fe?D(W.dynamicChildren,fe,q,ee,pe,$g(G,we),be):j||ot(W,G,q,null,ee,pe,$g(G,we),be,!1),te>0){if(te&16)oe(q,ke,re,ee,we);else if(te&2&&ke.class!==re.class&&o(q,"class",null,re.class,we),te&4&&o(q,"style",ke.style,re.style,we),te&8){const xe=G.dynamicProps;for(let rt=0;rt<xe.length;rt++){const ut=xe[rt],Qt=ke[ut],Wt=re[ut];(Wt!==Qt||ut==="value")&&o(q,ut,Qt,Wt,we,ee)}}te&1&&W.children!==G.children&&f(q,G.children)}else!j&&fe==null&&oe(q,ke,re,ee,we);((me=re.onVnodeUpdated)||je)&&qn(()=>{me&&hr(me,ee,G,W),je&&pa(G,W,ee,"updated")},pe)},D=(W,G,ee,pe,we,be,j)=>{for(let q=0;q<G.length;q++){const te=W[q],fe=G[q],je=te.el&&(te.type===Se||!Ti(te,fe)||te.shapeFlag&198)?h(te.el):ee;C(te,fe,je,null,pe,we,be,j,!0)}},oe=(W,G,ee,pe,we)=>{if(G!==ee){if(G!==fn)for(const be in G)!vu(be)&&!(be in ee)&&o(W,be,G[be],null,we,pe);for(const be in ee){if(vu(be))continue;const j=ee[be],q=G[be];j!==q&&be!=="value"&&o(W,be,q,j,we,pe)}"value"in ee&&o(W,"value",G.value,ee.value,we)}},le=(W,G,ee,pe,we,be,j,q,te)=>{const fe=G.el=W?W.el:a(""),je=G.anchor=W?W.anchor:a("");let{patchFlag:ke,dynamicChildren:re,slotScopeIds:me}=G;me&&(q=q?q.concat(me):me),W==null?(s(fe,ee,pe),s(je,ee,pe),Y(G.children||[],ee,je,we,be,j,q,te)):ke>0&&ke&64&&re&&W.dynamicChildren?(D(W.dynamicChildren,re,ee,we,be,j,q),(G.key!=null||we&&G===we.subTree)&&f_(W,G,!0)):ot(W,G,ee,je,we,be,j,q,te)},Pe=(W,G,ee,pe,we,be,j,q,te)=>{G.slotScopeIds=q,W==null?G.shapeFlag&512?we.ctx.activate(G,ee,pe,j,te):qe(G,ee,pe,we,be,j,te):Ke(W,G,te)},qe=(W,G,ee,pe,we,be,j)=>{const q=W.component=_j(W,pe,we);if(od(W)&&(q.ctx.renderer=Ue),wj(q,!1,j),q.asyncDep){if(we&&we.registerDep(q,Ge,j),!W.el){const te=q.subTree=T(ns);$(null,te,G,ee),W.placeholder=te.el}}else Ge(q,W,G,ee,we,be,j)},Ke=(W,G,ee)=>{const pe=G.component=W.component;if(fj(W,G,ee))if(pe.asyncDep&&!pe.asyncResolved){ze(pe,G,ee);return}else pe.next=G,pe.update();else G.el=W.el,pe.vnode=G},Ge=(W,G,ee,pe,we,be,j)=>{const q=()=>{if(W.isMounted){let{next:ke,bu:re,u:me,parent:xe,vnode:rt}=W;{const On=qA(W);if(On){ke&&(ke.el=rt.el,ze(W,ke,j)),On.asyncDep.then(()=>{W.isUnmounted||q()});return}}let ut=ke,Qt;ma(W,!1),ke?(ke.el=rt.el,ze(W,ke,j)):ke=rt,re&&Ol(re),(Qt=ke.props&&ke.props.onVnodeBeforeUpdate)&&hr(Qt,xe,ke,rt),ma(W,!0);const Wt=T3(W),En=W.subTree;W.subTree=Wt,C(En,Wt,h(En.el),_e(En),W,we,be),ke.el=Wt.el,ut===null&&hj(W,Wt.el),me&&qn(me,we),(Qt=ke.props&&ke.props.onVnodeUpdated)&&qn(()=>hr(Qt,xe,ke,rt),we)}else{let ke;const{el:re,props:me}=G,{bm:xe,m:rt,parent:ut,root:Qt,type:Wt}=W,En=Ea(G);ma(W,!1),xe&&Ol(xe),!En&&(ke=me&&me.onVnodeBeforeMount)&&hr(ke,ut,G),ma(W,!0);{Qt.ce&&Qt.ce._def.shadowRoot!==!1&&Qt.ce._injectChildStyle(Wt);const On=W.subTree=T3(W);C(null,On,ee,pe,W,we,be),G.el=On.el}if(rt&&qn(rt,we),!En&&(ke=me&&me.onVnodeMounted)){const On=G;qn(()=>hr(ke,ut,On),we)}(G.shapeFlag&256||ut&&Ea(ut.vnode)&&ut.vnode.shapeFlag&256)&&W.a&&qn(W.a,we),W.isMounted=!0,G=ee=pe=null}};W.scope.on();const te=W.effect=new Y8(q);W.scope.off();const fe=W.update=te.run.bind(te),je=W.job=te.runIfDirty.bind(te);je.i=W,je.id=W.uid,te.scheduler=()=>o_(je),ma(W,!0),fe()},ze=(W,G,ee)=>{G.component=W;const pe=W.vnode.props;W.vnode=G,W.next=null,XU(W,G.props,pe,ee),ej(W,G.children,ee),Ho(),p3(W),Vo()},ot=(W,G,ee,pe,we,be,j,q,te=!1)=>{const fe=W&&W.children,je=W?W.shapeFlag:0,ke=G.children,{patchFlag:re,shapeFlag:me}=G;if(re>0){if(re&128){dt(fe,ke,ee,pe,we,be,j,q,te);return}else if(re&256){Ct(fe,ke,ee,pe,we,be,j,q,te);return}}me&8?(je&16&&Ht(fe,we,be),ke!==fe&&f(ee,ke)):je&16?me&16?dt(fe,ke,ee,pe,we,be,j,q,te):Ht(fe,we,be,!0):(je&8&&f(ee,""),me&16&&Y(ke,ee,pe,we,be,j,q,te))},Ct=(W,G,ee,pe,we,be,j,q,te)=>{W=W||Pl,G=G||Pl;const fe=W.length,je=G.length,ke=Math.min(fe,je);let re;for(re=0;re<ke;re++){const me=G[re]=te?_i(G[re]):xr(G[re]);C(W[re],me,ee,null,we,be,j,q,te)}fe>je?Ht(W,we,be,!0,!1,ke):Y(G,ee,pe,we,be,j,q,te,ke)},dt=(W,G,ee,pe,we,be,j,q,te)=>{let fe=0;const je=G.length;let ke=W.length-1,re=je-1;for(;fe<=ke&&fe<=re;){const me=W[fe],xe=G[fe]=te?_i(G[fe]):xr(G[fe]);if(Ti(me,xe))C(me,xe,ee,null,we,be,j,q,te);else break;fe++}for(;fe<=ke&&fe<=re;){const me=W[ke],xe=G[re]=te?_i(G[re]):xr(G[re]);if(Ti(me,xe))C(me,xe,ee,null,we,be,j,q,te);else break;ke--,re--}if(fe>ke){if(fe<=re){const me=re+1,xe=me<je?G[me].el:pe;for(;fe<=re;)C(null,G[fe]=te?_i(G[fe]):xr(G[fe]),ee,xe,we,be,j,q,te),fe++}}else if(fe>re)for(;fe<=ke;)It(W[fe],we,be,!0),fe++;else{const me=fe,xe=fe,rt=new Map;for(fe=xe;fe<=re;fe++){const ln=G[fe]=te?_i(G[fe]):xr(G[fe]);ln.key!=null&&rt.set(ln.key,fe)}let ut,Qt=0;const Wt=re-xe+1;let En=!1,On=0;const Cs=new Array(Wt);for(fe=0;fe<Wt;fe++)Cs[fe]=0;for(fe=me;fe<=ke;fe++){const ln=W[fe];if(Qt>=Wt){It(ln,we,be,!0);continue}let Rn;if(ln.key!=null)Rn=rt.get(ln.key);else for(ut=xe;ut<=re;ut++)if(Cs[ut-xe]===0&&Ti(ln,G[ut])){Rn=ut;break}Rn===void 0?It(ln,we,be,!0):(Cs[Rn-xe]=fe+1,Rn>=On?On=Rn:En=!0,C(ln,G[Rn],ee,null,we,be,j,q,te),Qt++)}const tr=En?rj(Cs):Pl;for(ut=tr.length-1,fe=Wt-1;fe>=0;fe--){const ln=xe+fe,Rn=G[ln],nr=G[ln+1],Fr=ln+1<je?nr.el||nr.placeholder:pe;Cs[fe]===0?C(null,Rn,ee,Fr,we,be,j,q,te):En&&(ut<0||fe!==tr[ut]?bt(Rn,ee,Fr,2):ut--)}}},bt=(W,G,ee,pe,we=null)=>{const{el:be,type:j,transition:q,children:te,shapeFlag:fe}=W;if(fe&6){bt(W.component.subTree,G,ee,pe);return}if(fe&128){W.suspense.move(G,ee,pe);return}if(fe&64){j.move(W,G,ee,Ue);return}if(j===Se){s(be,G,ee);for(let ke=0;ke<te.length;ke++)bt(te[ke],G,ee,pe);s(W.anchor,G,ee);return}if(j===Wf){P(W,G,ee);return}if(pe!==2&&fe&1&&q)if(pe===0)q.beforeEnter(be),s(be,G,ee),qn(()=>q.enter(be),we);else{const{leave:ke,delayLeave:re,afterLeave:me}=q,xe=()=>{W.ctx.isUnmounted?r(be):s(be,G,ee)},rt=()=>{be._isLeaving&&be[Oo](!0),ke(be,()=>{xe(),me&&me()})};re?re(be,xe,rt):rt()}else s(be,G,ee)},It=(W,G,ee,pe=!1,we=!1)=>{const{type:be,props:j,ref:q,children:te,dynamicChildren:fe,shapeFlag:je,patchFlag:ke,dirs:re,cacheIndex:me}=W;if(ke===-2&&(we=!1),q!=null&&(Ho(),wu(q,null,ee,W,!0),Vo()),me!=null&&(G.renderCache[me]=void 0),je&256){G.ctx.deactivate(W);return}const xe=je&1&&re,rt=!Ea(W);let ut;if(rt&&(ut=j&&j.onVnodeBeforeUnmount)&&hr(ut,G,W),je&6)ft(W.component,ee,pe);else{if(je&128){W.suspense.unmount(ee,pe);return}xe&&pa(W,null,G,"beforeUnmount"),je&64?W.type.remove(W,G,ee,Ue,pe):fe&&!fe.hasOnce&&(be!==Se||ke>0&&ke&64)?Ht(fe,G,ee,!1,!0):(be===Se&&ke&384||!we&&je&16)&&Ht(te,G,ee),pe&&nt(W)}(rt&&(ut=j&&j.onVnodeUnmounted)||xe)&&qn(()=>{ut&&hr(ut,G,W),xe&&pa(W,null,G,"unmounted")},ee)},nt=W=>{const{type:G,el:ee,anchor:pe,transition:we}=W;if(G===Se){_t(ee,pe);return}if(G===Wf){A(W);return}const be=()=>{r(ee),we&&!we.persisted&&we.afterLeave&&we.afterLeave()};if(W.shapeFlag&1&&we&&!we.persisted){const{leave:j,delayLeave:q}=we,te=()=>j(ee,be);q?q(W.el,be,te):te()}else be()},_t=(W,G)=>{let ee;for(;W!==G;)ee=v(W),r(W),W=ee;r(G)},ft=(W,G,ee)=>{const{bum:pe,scope:we,job:be,subTree:j,um:q,m:te,a:fe}=W;mh(te),mh(fe),pe&&Ol(pe),we.stop(),be&&(be.flags|=8,It(j,W,G,ee)),q&&qn(q,G),qn(()=>{W.isUnmounted=!0},G)},Ht=(W,G,ee,pe=!1,we=!1,be=0)=>{for(let j=be;j<W.length;j++)It(W[j],G,ee,pe,we)},_e=W=>{if(W.shapeFlag&6)return _e(W.component.subTree);if(W.shapeFlag&128)return W.suspense.next();const G=v(W.anchor||W.el),ee=G&&G[vA];return ee?v(ee):G};let Me=!1;const Fe=(W,G,ee)=>{W==null?G._vnode&&It(G._vnode,null,null,!0):C(G._vnode||null,W,G,null,null,null,ee),G._vnode=W,Me||(Me=!0,p3(),mA(),Me=!1)},Ue={p:C,um:It,m:bt,r:nt,mt:qe,mc:Y,pc:ot,pbc:D,n:_e,o:e};return{render:Fe,hydrate:void 0,createApp:KU(Fe)}}function $g({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ma({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function sj(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function f_(e,t,n=!1){const s=e.children,r=t.children;if(lt(s)&&lt(r))for(let o=0;o<s.length;o++){const i=s[o];let a=r[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[o]=_i(r[o]),a.el=i.el),!n&&a.patchFlag!==-2&&f_(i,a)),a.type===id&&a.patchFlag!==-1&&(a.el=i.el),a.type===ns&&!a.el&&(a.el=i.el)}}function rj(e){const t=e.slice(),n=[0];let s,r,o,i,a;const c=e.length;for(s=0;s<c;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<u?o=a+1:i=a;u<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function qA(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qA(t)}function mh(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const oj=Symbol.for("v-scx"),ij=()=>Ys(oj);function os(e,t,n){return HA(e,t,n)}function HA(e,t,n=fn){const{immediate:s,deep:r,flush:o,once:i}=n,a=xn({},n),c=t&&s||!t&&o!=="post";let u;if(jl){if(o==="sync"){const y=ij();u=y.__watcherHandles||(y.__watcherHandles=[])}else if(!c){const y=()=>{};return y.stop=to,y.resume=to,y.pause=to,y}}const f=ss;a.call=(y,S,C)=>Lr(y,f,S,C);let h=!1;o==="post"?a.scheduler=y=>{qn(y,f&&f.suspense)}:o!=="sync"&&(h=!0,a.scheduler=(y,S)=>{S?y():o_(y)}),a.augmentJob=y=>{t&&(y.flags|=4),h&&(y.flags|=2,f&&(y.id=f.uid,y.i=f))};const v=vU(e,t,a);return jl&&(u?u.push(v):c&&v()),v}function aj(e,t,n){const s=this.proxy,r=kn(e)?e.includes(".")?VA(s,e):()=>s[e]:e.bind(s,s);let o;wt(t)?o=t:(o=t.handler,n=t);const i=ad(this),a=HA(r,o.bind(s),n);return i(),a}function VA(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const lj=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${br(t)}Modifiers`]||e[`${Vi(t)}Modifiers`];function cj(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||fn;let r=n;const o=t.startsWith("update:"),i=o&&lj(s,t.slice(7));i&&(i.trim&&(r=n.map(f=>kn(f)?f.trim():f)),i.number&&(r=n.map(ah)));let a,c=s[a=Hf(t)]||s[a=Hf(br(t))];!c&&o&&(c=s[a=Hf(Vi(t))]),c&&Lr(c,e,6,r);const u=s[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Lr(u,e,6,r)}}function WA(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},a=!1;if(!wt(e)){const c=u=>{const f=WA(u,t,!0);f&&(a=!0,xn(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!a?(pn(e)&&s.set(e,null),null):(lt(o)?o.forEach(c=>i[c]=null):xn(i,o),pn(e)&&s.set(e,i),i)}function cp(e,t){return!e||!Zh(t)?!1:(t=t.slice(2).replace(/Once$/,""),Zt(e,t[0].toLowerCase()+t.slice(1))||Zt(e,Vi(t))||Zt(e,t))}function T3(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:a,emit:c,render:u,renderCache:f,props:h,data:v,setupState:y,ctx:S,inheritAttrs:C}=e,I=hh(e);let $,k;try{if(n.shapeFlag&4){const A=r||s,R=A;$=xr(u.call(R,A,f,h,y,v,S)),k=a}else{const A=t;$=xr(A.length>1?A(h,{attrs:a,slots:i,emit:c}):A(h,null)),k=t.props?a:uj(a)}}catch(A){ku.length=0,rd(A,e,1),$=T(ns)}let P=$;if(k&&C!==!1){const A=Object.keys(k),{shapeFlag:R}=P;A.length&&R&7&&(o&&A.some(Ky)&&(k=dj(k,o)),P=Go(P,k,!1,!0))}return n.dirs&&(P=Go(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&Ul(P,n.transition),$=P,hh(I),$}const uj=e=>{let t;for(const n in e)(n==="class"||n==="style"||Zh(n))&&((t||(t={}))[n]=e[n]);return t},dj=(e,t)=>{const n={};for(const s in e)(!Ky(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function fj(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:a,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?A3(s,i,u):!!i;if(c&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const v=f[h];if(i[v]!==s[v]&&!cp(u,v))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?A3(s,i,u):!0:!!i;return!1}function A3(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!cp(n,o))return!0}return!1}function hj({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const gh=e=>e.__isSuspense;function pj(e,t){t&&t.pendingBranch?lt(e)?t.effects.push(...e):t.effects.push(e):_U(e)}const Se=Symbol.for("v-fgt"),id=Symbol.for("v-txt"),ns=Symbol.for("v-cmt"),Wf=Symbol.for("v-stc"),ku=[];let xs=null;function p(e=!1){ku.push(xs=e?null:[])}function mj(){ku.pop(),xs=ku[ku.length-1]||null}let Hu=1;function E3(e,t=!1){Hu+=e,e<0&&xs&&t&&(xs.hasOnce=!0)}function GA(e){return e.dynamicChildren=Hu>0?xs||Pl:null,mj(),Hu>0&&xs&&xs.push(e),e}function b(e,t,n,s,r,o){return GA(g(e,t,n,s,r,o,!0))}function x(e,t,n,s,r){return GA(T(e,t,n,s,r,!0))}function Mi(e){return e?e.__v_isVNode===!0:!1}function Ti(e,t){return e.type===t.type&&e.key===t.key}const KA=({key:e})=>e??null,Gf=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?kn(e)||Sn(e)||wt(e)?{i:rs,r:e,k:t,f:!!n}:e:null);function g(e,t=null,n=null,s=0,r=null,o=e===Se?0:1,i=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&KA(t),ref:t&&Gf(t),scopeId:op,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:rs};return a?(h_(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=kn(n)?8:16),Hu>0&&!i&&xs&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&xs.push(c),c}const T=gj;function gj(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===IA)&&(e=ns),Mi(e)){const a=Go(e,t,!0);return n&&h_(a,n),Hu>0&&!o&&xs&&(a.shapeFlag&6?xs[xs.indexOf(e)]=a:xs.push(a)),a.patchFlag=-2,a}if(Cj(e)&&(e=e.__vccOpts),t){t=up(t);let{class:a,style:c}=t;a&&!kn(a)&&(t.class=he(a)),pn(c)&&(r_(c)&&!lt(c)&&(c=xn({},c)),t.style=hn(c))}const i=kn(e)?1:gh(e)?128:bA(e)?64:pn(e)?4:wt(e)?2:0;return g(e,t,n,s,r,i,o,!0)}function up(e){return e?r_(e)||FA(e)?xn({},e):e:null}function Go(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:a,transition:c}=e,u=t?An(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&KA(u),ref:t&&t.ref?n&&o?lt(o)?o.concat(Gf(t)):[o,Gf(t)]:Gf(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Go(e.ssContent),ssFallback:e.ssFallback&&Go(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Ul(f,c.clone(f)),f}function de(e=" ",t=0){return T(id,null,e,t)}function vj(e,t){const n=T(Wf,null,e);return n.staticCount=t,n}function E(e="",t=!1){return t?(p(),x(ns,null,e)):T(ns,null,e)}function xr(e){return e==null||typeof e=="boolean"?T(ns):lt(e)?T(Se,null,e.slice()):Mi(e)?_i(e):T(id,null,String(e))}function _i(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Go(e)}function h_(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(lt(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),h_(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!FA(t)?t._ctx=rs:r===3&&rs&&(rs.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else wt(t)?(t={default:t,_ctx:rs},n=32):(t=String(t),s&64?(n=16,t=[de(t)]):n=8);e.children=t,e.shapeFlag|=n}function An(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=he([t.class,s.class]));else if(r==="style")t.style=hn([t.style,s.style]);else if(Zh(r)){const o=t[r],i=s[r];i&&o!==i&&!(lt(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function hr(e,t,n,s=null){Lr(e,t,7,[n,s])}const bj=RA();let yj=0;
vendor: 1,035 bytes, line 14
14function _j(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||bj,o={uid:yj++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new K8(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:UA(s,r),emitsOptions:WA(s,r),emit:null,emitted:null,propsDefaults:fn,inheritAttrs:s.inheritAttrs,ctx:fn,data:fn,props:fn,attrs:fn,slots:fn,refs:fn,setupState:fn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=cj.bind(null,o),e.ce&&e.ce(o),o}let ss=null;const ro=()=>ss||rs;let vh,F0;{const e=tp(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>
vendor: 1,796 bytes, lines 14-17
14i(o)):r[0](o)}};vh=t("__VUE_INSTANCE_SETTERS__",n=>ss=n),F0=t("__VUE_SSR_SETTERS__",n=>jl=n)}const ad=e=>{const t=ss;return vh(e),e.scope.on(),()=>{e.scope.off(),vh(t)}},I3=()=>{ss&&ss.scope.off(),vh(null)};function xA(e){return e.vnode.shapeFlag&4}let jl=!1;function wj(e,t=!1,n=!1){t&&F0(t);const{props:s,children:r}=e.vnode,o=xA(e);YU(e,s,o,t),QU(e,r,n||t);const i=o?Sj(e,t):void 0;return t&&F0(!1),i}function Sj(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,BU);const{setup:s}=n;if(s){Ho();const r=e.setupContext=s.length>1?$j(e):null,o=ad(e),i=sd(s,e,0,[e.props,r]),a=B8(i);if(Vo(),o(),(a||e.sp)&&!Ea(e)&&i_(e),a){if(i.then(I3,I3),t)return i.then(c=>{P3(e,c)}).catch(c=>{rd(c,e,0)});e.asyncDep=i}else P3(e,i)}else YA(e)}function P3(e,t,n){wt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pn(t)&&(e.setupState=fA(t)),YA(e)}function YA(e,t,n){const s=e.type;e.render||(e.render=s.render||to);{const r=ad(e);Ho();try{zU(e)}finally{Vo(),r()}}}const kj={get(e,t){return fs(e,"get",""),e[t]}};function $j(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,kj),slots:e.slots,emit:e.emit,expose:t}}function dp(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fA(rp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Su)return Su[n](e)},has(t,n){return n in t||n in Su}})):e.proxy}function D0(e,t=!0){return wt(e)?e.displayName||e.name:e.name||t&&e.__name}function Cj(e){return wt(e)&&"__vccOpts"in e}const vt=(e,t)=>mU(e,t,jl);function Zo(e,t,n){const s=arguments.length;return s===2?pn(t)&&!lt(t)?Mi(t)?T(e,null,[t]):T(e,t):T(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Mi(n)&&(n=[n]),T(e,t,n))}const Tj="3.5.19";/**
15* @vue/runtime-dom v3.5.19
16* (c) 2018-present Yuxi (Evan) You and Vue contributors
17* @license MIT
18**/let U0;const L3=typeof window<"u"&&window.trustedTypes;if(L3)try{U0=L3.createPolicy("vue",{createHTML:e=>e})}catch{}const XA=U0?e=>U0.createHTML(e):e=>e,Aj="http://www.w3.org/2000/svg",Ej="http://www.w3.org/1998/Math/MathML",Po=typeof document<"u"?document:null,O3=Po&&Po.createElement("template"),Ij={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Po.createElementNS(Aj,e):t==="mathml"?Po.createElementNS(Ej,e):n?Po.createElement(e,{is:n}):Po.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Po.createTextNode(e),createComment:e=>Po.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Po.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{O3.innerHTML=XA(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=O3.content;if(s==="svg"||s==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},pi="transition",xc="animation",Vu=Symbol("_vtc"),JA={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Pj=xn({},wA,JA),Lj=e=>(e.displayName="Transition",e.props=Pj,e),ZA=Lj((e,{slots:t})=>Zo(AU,Oj(e),t)),ga=(e,t=[])=>{lt(e)?e.forEach(n=>n(...t)):e&&e(...t)},R3=e=>e?lt(e)?e.some(t=>t.length>1):e.length>1:!1;function Oj(e){const t={};for(const le in e)le in JA||(t[le]=e[le]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=i,appearToClass:f=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,S=Rj(r),C=S&&S[0],I=S&&S[1],{onBeforeEnter:$,onEnter:k,onEnterCancelled:P,onLeave:A,onLeaveCancelled:R,onBeforeAppear:B=$,onAppear:N=k,onAppearCancelled:Y=P}=t,H=(le,Pe,qe,Ke)=>{le._enterCancelled=Ke,va(le,Pe?f:a),va(le,Pe?u:i),qe&&qe()},D=(le,Pe)=>{le._isLeaving=!1,va(le,h),va(le,y),va(le,v),Pe&&Pe()},oe=le=>(Pe,qe)=>{const Ke=le?N:k,Ge=()=>H(Pe,le,qe);ga(Ke,[Pe,Ge]),M3(()=>{va(Pe,le?c:o),Ao(Pe,le?f:a),R3(Ke)||N3(Pe,s,C,Ge)})};return xn(t,{onBeforeEnter(le){ga($,[le]),Ao(le,o),Ao(le,i)},onBeforeAppear(le){ga(B,[le]),Ao(le,c),Ao(le,u)},onEnter:oe(!1),onAppear:oe(!0),onLeave(le,Pe){le._isLeaving=!0;const qe=()=>D(le,Pe);Ao(le,h),le._enterCancelled?(Ao(le,v),U3()):(U3(),Ao(le,v)),M3(()=>{le._isLeaving&&(va(le,h),Ao(le,y),R3(A)||N3(le,s,I,qe))}),ga(A,[le,qe])},onEnterCancelled(le){H(le,!1,void 0,!0),ga(P,[le])},onAppearCancelled(le){H(le,!0,void 0,!0),ga(Y,[le])},onLeaveCancelled(le){D(le),ga(R,[le])}})}function Rj(e){if(e==null)return null;if(pn(e))return[Cg(e.enter),Cg(e.leave)];{const t=Cg(e);return[t,t]}}function Cg(e){return ND(e)}function Ao(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Vu]||(e[Vu]=new Set)).add(t)}function va(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Vu];n&&(n.delete(t),n.size||(e[Vu]=void 0))}function M3(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Mj=0;function N3(e,t,n,s){const r=e._endId=++Mj,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:a,propCount:c}=Nj(e,t);if(!i)return s();const u=i+"end";let f=0;const h=()=>{e.removeEventListener(u,v),o()},v=y=>{y.target===e&&++f>=c&&h()};setTimeout(()=>{f<c&&h()},a+1),e.addEventListener(u,v)}function Nj(e,t){const n=window.getComputedStyle(e),s=S=>(n[S]||"").split(", "),r=s(`${pi}Delay`),o=s(`${pi}Duration`),i=F3(r,o),a=s(`${xc}Delay`),c=s(`${xc}Duration`),u=F3(a,c);let f=null,h=0,v=0;t===pi?i>0&&(f=pi,h=i,v=o.length):t===xc?u>0&&(f=xc,h=u,v=c.length):(h=Math.max(i,u),f=h>0?i>u?pi:xc:null,v=f?f===pi?o.length:c.length:0);const y=f===pi&&/\b(transform|all)(,|$)/.test(s(`${pi}Property`).toString());return{type:f,timeout:h,propCount:v,hasTransform:y}}function F3(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>D3(n)+D3(e[s])))}function D3(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function U3(){return document.body.offsetHeight}function Fj(e,t,n){const s=e[Vu];
vendor: 7,520 bytes, line 18
18s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bh=Symbol("_vod"),QA=Symbol("_vsh"),Cr={beforeMount(e,{value:t},{transition:n}){e[bh]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Yc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Yc(e,!0),s.enter(e)):s.leave(e,()=>{Yc(e,!1)}):Yc(e,t))},beforeUnmount(e,{value:t}){Yc(e,t)}};function Yc(e,t){e.style.display=t?e[bh]:"none",e[QA]=!t}const Dj=Symbol(""),Uj=/(^|;)\s*display\s*:/;function jj(e,t,n){const s=e.style,r=kn(n);let o=!1;if(n&&!r){if(t)if(kn(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Kf(s,a,"")}else for(const i in t)n[i]==null&&Kf(s,i,"");for(const i in n)i==="display"&&(o=!0),Kf(s,i,n[i])}else if(r){if(t!==n){const i=s[Dj];i&&(n+=";"+i),s.cssText=n,o=Uj.test(n)}}else t&&e.removeAttribute("style");bh in e&&(e[bh]=o?s.display:"",e[QA]&&(s.display="none"))}const j3=/\s*!important$/;function Kf(e,t,n){if(lt(n))n.forEach(s=>Kf(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Bj(e,t);j3.test(n)?e.setProperty(Vi(s),n.replace(j3,""),"important"):e[s]=n}}const B3=["Webkit","Moz","ms"],Tg={};function Bj(e,t){const n=Tg[t];if(n)return n;let s=br(t);if(s!=="filter"&&s in e)return Tg[t]=s;s=ep(s);for(let r=0;r<B3.length;r++){const o=B3[r]+s;if(o in e)return Tg[t]=o}return t}const z3="http://www.w3.org/1999/xlink";function q3(e,t,n,s,r,o=zD(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(z3,t.slice(6,t.length)):e.setAttributeNS(z3,t,n):n==null||o&&!V8(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Ir(n)?String(n):n)}function H3(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?XA(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=V8(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function No(e,t,n,s){e.addEventListener(t,n,s)}function zj(e,t,n,s){e.removeEventListener(t,n,s)}const V3=Symbol("_vei");function qj(e,t,n,s,r=null){const o=e[V3]||(e[V3]={}),i=o[t];if(s&&i)i.value=s;else{const[a,c]=Hj(t);if(s){const u=o[t]=Gj(s,r);No(e,a,u,c)}else i&&(zj(e,a,i,c),o[t]=void 0)}}const W3=/(?:Once|Passive|Capture)$/;function Hj(e){let t;if(W3.test(e)){t={};let s;for(;s=e.match(W3);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Vi(e.slice(2)),t]}let Ag=0;const Vj=Promise.resolve(),Wj=()=>Ag||(Vj.then(()=>Ag=0),Ag=Date.now());function Gj(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Lr(Kj(s,n.value),t,5,[s])};return n.value=e,n.attached=Wj(),n}function Kj(e,t){if(lt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const G3=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xj=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Fj(e,s,i):t==="style"?jj(e,n,s):Zh(t)?Ky(t)||qj(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Yj(e,t,s,i))?(H3(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&q3(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!kn(s))?H3(e,br(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),q3(e,t,s,i))};function Yj(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&G3(t)&&wt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return G3(t)&&kn(n)?!1:t in e}const Ni=e=>{const t=e.props["onUpdate:modelValue"]||!1;return lt(t)?n=>Ol(t,n):t};function Xj(e){e.target.composing=!0}function K3(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const vr=Symbol("_assign"),Nt={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[vr]=Ni(r);const o=s||r.props&&r.props.type==="number";No(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=ah(a)),e[vr](a)}),n&&No(e,"change",()=>{e.value=e.value.trim()}),t||(No(e,"compositionstart",Xj),No(e,"compositionend",K3),No(e,"change",K3))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[vr]=Ni(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?ah(e.value):e.value,c=t??"";a!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},Jj={deep:!0,created(e,t,n){e[vr]=Ni(n),No(e,"change",()=>{const s=e._modelValue,r=Bl(e),o=e.checked,i=e[vr];if(lt(s)){const a=Xy(s,r),c=a!==-1;if(o&&!c)i(s.concat(r));else if(!o&&c){const u=[...s];u.splice(a,1),i(u)}}else if(tc(s)){const a=new Set(s);o?a.add(r):a.delete(r),i(a)}else i(e5(e,o))})},mounted:x3,beforeUpdate(e,t,n){e[vr]=Ni(n),x3(e,t,n)}};function x3(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(lt(t))r=Xy(t,s.props.value)>-1;else if(tc(t))r=t.has(s.props.value);else{if(t===n)return;r=La(t,e5(e,!0))}e.checked!==r&&(e.checked=r)}const Zj={created(e,{value:t},n){e.checked=La(t,n.props.value),e[vr]=Ni(n),No(e,"change",()=>{e[vr](Bl(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[vr]=Ni(s),t!==n&&(e.checked=La(t,s.props.value))}},Qj={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=tc(t);No(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?ah(Bl(i)):Bl(i));e[vr](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Ri(()=>{e._assigning=!1})}),e[vr]=Ni(s)},mounted(e,{value:t}){Y3(e,t)},beforeUpdate(e,t,n){e[vr]=Ni(n)},updated(e,{value:t}){e._assigning||Y3(e,t)}};function Y3(e,t){const n=e.multiple,s=lt(t);if(!(n&&!s&&!tc(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],a=Bl(i);if(n)if(s){const c=typeof a;c==="string"||c==="number"?i.selected=t.some(u=>String(u)===String(a)):i.selected=Xy(t,a)>-1}else i.selected=t.has(a);else if(La(Bl(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Bl(e){return"_value"in e?e._value:e.value}function e5(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const $u={created(e,t,n){$f(e,t,n,null,"created")},mounted(e,t,n){$f(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){$f(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){$f(e,t,n,s,"updated")}};function eB(e,t){switch(e){case"SELECT":return Qj;case"TEXTAREA":return Nt;default:switch(t){case"checkbox":return Jj;case"radio":return Zj;default:return Nt}}}function $f(e,t,n,s,r){const i=eB(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,s)}const tB=["ctrl","shift","alt","meta"],nB={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tB.some(n=>e[`${n}Key`]&&!t.includes(n))},Te=(e,t)=>
18{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i<t.length;i++){const a=nB[t[i]];if(a&&a(r,t))return}return e(r,...o)})},sB={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},zo=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const o=Vi(r.key);if(t.some(i=>i===o||sB[i]===o))return e(r)})},rB=xn({patchProp:xj},Ij);let X3;function oB(){return X3||(X3=tj(rB))}const iB=(...e)=>{const t=oB().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=lB(s);if(!r)return;const o=t._component;!wt(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,aB(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function aB(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lB(e){return kn(e)?document.querySelector(e):e}function cB(){return t5().__VUE_DEVTOOLS_GLOBAL_HOOK__}function t5(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const uB=typeof Proxy=="function",dB="devtools-plugin:setup",fB="plugin:settings:set";let yl,j0;function hB(){var e;return yl!==void 0||(typeof window<"u"&&window.performance?(yl=!0,j0=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(yl=!0,j0=globalThis.perf_hooks.performance):yl=!1),yl}function pB(){return hB()?j0.now():Date.now()}class mB{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const i in t.settings){const a=t.settings[i];s[i]=a.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},s);try{const i=localStorage.getItem(r),a=JSON.parse(i);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(r,JSON.stringify(i))}catch{}o=i},now(){return pB()}},n&&n.on(fB,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...c)=>{this.onQueue.push({method:a,args:c})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...c)=>(this.targetQueue.push({method:a,args:c,resolve:()=>{}}),this.fallbacks[a](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:a,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function gB(e,t){const n=e,s=t5(),r=cB(),o=uB&&n.enableEarlyProxy;if(r&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))r.emit(dB,e,t);else{const i=o?new mB(n,r):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
19 * vuex v4.1.0
20 * (c) 2022 Evan You
21 * @license MIT
22 */var vB="store";function rc(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function n5(e){return e!==null&&typeof e=="object"}function bB(e){return e&&typeof e.then=="function"}function yB(e,t){return function(){return e(t)}}function s5(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var s=t.indexOf(e);s>-1&&t.splice(s,1)}}function r5(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;fp(e,n,[],e._modules.root,!0),p_(e,n,t)}function p_(e,t,n){var s=e._state,r=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,i={},a={},c=np(!0);c.run(function(){rc(o,function(u,f){i[f]=yB(u,e),a[f]=vt(function(){return i[f]()}),Object.defineProperty(e.getters,f,{get:function(){return a[f].value},enumerable:!0})})}),e._state=Pr({data:t}),e._scope=c,e.strict&&$B(e),s&&n&&e._withCommit(function(){s.data=null}),r&&r.stop()}function fp(e,t,n,s,r){var o=!n.length,i=e._modules.getNamespace(n);if(s.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=s),!o&&!r){var a=m_(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit(function(){a[c]=s.state})}var u=s.context=_B(e,i,n);
22s.forEachMutation(function(f,h){var v=i+h;wB(e,v,f,u)}),s.forEachAction(function(f,h){var v=f.root?h:i+h,y=f.handler||f;SB(e,v,y,u)}),s.forEachGetter(function(f,h){var v=i+h;kB(e,v,f,u)}),s.forEachChild(function(f,h){fp(e,t,n.concat(h),f,r)})}function _B(e,t,n){var s=t==="",r={dispatch:s?e.dispatch:function(o,i,a){var c=yh(o,i,a),u=c.payload,f=c.options,h=c.type;return(!f||!f.root)&&(h=t+h),e.dispatch(h,u)},commit:s?e.commit:function(o,i,a){var c=yh(o,i,a),u=c.payload,f=c.options,h=c.type;(!f||!f.root)&&(h=t+h),e.commit(h,u,f)}};return Object.defineProperties(r,{getters:{get:s?function(){return e.getters}:function(){return o5(e,t)}},state:{get:function(){return m_(e.state,n)}}}),r}function o5(e,t){if(!e._makeLocalGettersCache[t]){var n={},s=t.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,s)===t){var o=r.slice(s);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function wB(e,t,n,s){var r=e._mutations[t]||(e._mutations[t]=[]);r.push(function(i){n.call(e,s.state,i)})}function SB(e,t,n,s){var r=e._actions[t]||(e._actions[t]=[]);r.push(function(i){var a=n.call(e,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:e.getters,rootState:e.state},i);return bB(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):a})}function kB(e,t,n,s){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(s.state,s.getters,o.state,o.getters)})}function $B(e){os(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function m_(e,t){return t.reduce(function(n,s){return n[s]},e)}function yh(e,t,n){return n5(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var CB="vuex bindings",J3="vuex:mutations",Eg="vuex:actions",_l="vuex",TB=0;function AB(e,t){gB({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[CB]},function(n){n.addTimelineLayer({id:J3,label:"Vuex Mutations",color:Z3}),n.addTimelineLayer({id:Eg,label:"Vuex Actions",color:Z3}),n.addInspector({id:_l,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(s){if(s.app===e&&s.inspectorId===_l)if(s.filter){var r=[];c5(r,t._modules.root,s.filter,""),s.rootNodes=r}else s.rootNodes=[l5(t._modules.root,"")]}),n.on.getInspectorState(function(s){if(s.app===e&&s.inspectorId===_l){var r=s.nodeId;o5(t,r),s.state=PB(OB(t._modules,r),r==="root"?t.getters:t._makeLocalGettersCache,r)}}),n.on.editInspectorState(function(s){if(s.app===e&&s.inspectorId===_l){var r=s.nodeId,o=s.path;r!=="root"&&(o=r.split("/").filter(Boolean).concat(o)),t._withCommit(function(){s.set(t._state.data,o,s.state.value)})}}),t.subscribe(function(s,r){var o={};s.payload&&(o.payload=s.payload),o.state=r,n.notifyComponentUpdate(),n.sendInspectorTree(_l),n.sendInspectorState(_l),n.addTimelineEvent({layerId:J3,event:{time:Date.now(),title:s.type,data:o}})}),t.subscribeAction({before:function(s,r){var o={};s.payload&&(o.payload=s.payload),s._id=TB++,s._time=Date.now(),o.state=r,n.addTimelineEvent({layerId:Eg,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:o}})},after:function(s,r){var o={},i=Date.now()-s._time;o.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},s.payload&&(o.payload=s.payload),o.state=r,n.addTimelineEvent({layerId:Eg,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:o}})}})})}var Z3=8702998,EB=6710886,IB=16777215,i5={label:"namespaced",textColor:IB,backgroundColor:EB};function a5(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function l5(e,t){return{id:t||"root",label:a5(t),tags:e.namespaced?[i5]:[],children:Object.keys(e._children).map(function(n){return l5(e._children[n],t+n+"/")})}}function c5(e,t,n,s){s.includes(n)&&e.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:t.namespaced?[i5]:[]}
22),Object.keys(t._children).forEach(function(r){c5(e,t._children[r],n,s+r+"/")})}function PB(e,t,n){t=n==="root"?t:t[n];var s=Object.keys(t),r={state:Object.keys(e.state).map(function(i){return{key:i,editable:!0,value:e.state[i]}})};if(s.length){var o=LB(t);r.getters=Object.keys(o).map(function(i){return{key:i.endsWith("/")?a5(i):i,editable:!1,value:B0(function(){return o[i]})}})}return r}function LB(e){var t={};return Object.keys(e).forEach(function(n){var s=n.split("/");if(s.length>1){var r=t,o=s.pop();s.forEach(function(i){r[i]||(r[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),r=r[i]._custom.value}),r[o]=B0(function(){return e[n]})}else t[n]=B0(function(){return e[n]})}),t}function OB(e,t){var n=t.split("/").filter(function(s){return s});return n.reduce(function(s,r,o){var i=s[r];if(!i)throw new Error('Missing module "'+r+'" for path "'+t+'".');return o===n.length-1?i:i._children},t==="root"?e:e.root._children)}function B0(e){try{return e()}catch(t){return t}}var Rr=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var s=t.state;this.state=(typeof s=="function"?s():s)||{}},u5={namespaced:{configurable:!0}};u5.namespaced.get=function(){return!!this._rawModule.namespaced};Rr.prototype.addChild=function(t,n){this._children[t]=n};Rr.prototype.removeChild=function(t){delete this._children[t]};Rr.prototype.getChild=function(t){return this._children[t]};Rr.prototype.hasChild=function(t){return t in this._children};Rr.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Rr.prototype.forEachChild=function(t){rc(this._children,t)};Rr.prototype.forEachGetter=function(t){this._rawModule.getters&&rc(this._rawModule.getters,t)};Rr.prototype.forEachAction=function(t){this._rawModule.actions&&rc(this._rawModule.actions,t)};Rr.prototype.forEachMutation=function(t){this._rawModule.mutations&&rc(this._rawModule.mutations,t)};Object.defineProperties(Rr.prototype,u5);var ja=function(t){this.register([],t,!1)};ja.prototype.get=function(t){return t.reduce(function(n,s){return n.getChild(s)},this.root)};ja.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(s,r){return n=n.getChild(r),s+(n.namespaced?r+"/":"")},"")};ja.prototype.update=function(t){d5([],this.root,t)};ja.prototype.register=function(t,n,s){var r=this;s===void 0&&(s=!0);var o=new Rr(n,s);if(t.length===0)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}n.modules&&rc(n.modules,function(a,c){r.register(t.concat(c),a,s)})};ja.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),s=t[t.length-1],r=n.getChild(s);r&&r.runtime&&n.removeChild(s)};ja.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),s=t[t.length-1];return n?n.hasChild(s):!1};function d5(e,t,n){if(t.update(n),n.modules)for(var s in n.modules){if(!t.getChild(s))return;d5(e.concat(s),t.getChild(s),n.modules[s])}}function RB(e){return new Ns(e)}var Ns=function(t){var n=this;t===void 0&&(t={});var s=t.plugins;s===void 0&&(s=[]);var r=t.strict;r===void 0&&(r=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ja(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,a=this,c=a.dispatch,u=a.commit;this.dispatch=function(v,y){return c.call(i,v,y)},this.commit=function(v,y,S){return u.call(i,v,y,S)},this.strict=r;var f=this._modules.root.state;fp(this,f,[],this._modules.root),p_(this,f),s.forEach(function(h){return h(n)})},g_={state:{configurable:!0}};Ns.prototype.install=function(t,n){t.provide(n||vB,this),t.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!1;s&&AB(t,this)};g_.state.get=function(){return this._state.data};g_.state.set=function(e){};Ns.prototype.commit=function(t,n,s){var r=this,o=yh(t,n,s),i=o.type,a=o.payload,c={type:i,payload:a},u=this._mutations[i];u&&(this._withCommit(function(){u.forEach(function(h){h(a)})}
22),this._subscribers.slice().forEach(function(f){return f(c,r.state)}))};Ns.prototype.dispatch=function(t,n){var s=this,r=yh(t,n),o=r.type,i=r.payload,a={type:o,payload:i},c=this._actions[o];if(c){try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(a,s.state)})}catch{}var u=c.length>1?Promise.all(c.map(function(f){return f(i)})):c[0](i);return new Promise(function(f,h){u.then(function(v){try{s._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(a,s.state)})}catch{}f(v)},function(v){try{s._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(a,s.state,v)})}catch{}h(v)})})}};Ns.prototype.subscribe=function(t,n){return s5(t,this._subscribers,n)};Ns.prototype.subscribeAction=function(t,n){var s=typeof t=="function"?{before:t}:t;return s5(s,this._actionSubscribers,n)};Ns.prototype.watch=function(t,n,s){var r=this;return os(function(){return t(r.state,r.getters)},n,Object.assign({},s))};Ns.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};Ns.prototype.registerModule=function(t,n,s){s===void 0&&(s={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),fp(this,this.state,t,this._modules.get(t),s.preserveState),p_(this,this.state)};Ns.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var s=m_(n.state,t.slice(0,-1));delete s[t[t.length-1]]}),r5(this)};Ns.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Ns.prototype.hotUpdate=function(t){this._modules.update(t),r5(this,!0)};Ns.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(Ns.prototype,g_);var mn=b_(function(e,t){var n={};return v_(t).forEach(function(s){var r=s.key,o=s.val;n[r]=function(){var a=this.$store.state,c=this.$store.getters;if(e){var u=y_(this.$store,"mapState",e);if(!u)return;a=u.context.state,c=u.context.getters}return typeof o=="function"?o.call(this,a,c):a[o]},n[r].vuex=!0}),n}),bn=b_(function(e,t){var n={};return v_(t).forEach(function(s){var r=s.key,o=s.val;o=e+o,n[r]=function(){if(!(e&&!y_(this.$store,"mapGetters",e)))return this.$store.getters[o]},n[r].vuex=!0}),n}),MB=b_(function(e,t){var n={};return v_(t).forEach(function(s){var r=s.key,o=s.val;n[r]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var u=this.$store.dispatch;if(e){var f=y_(this.$store,"mapActions",e);if(!f)return;u=f.context.dispatch}return typeof o=="function"?o.apply(this,[u].concat(a)):u.apply(this.$store,[o].concat(a))}}),n});function v_(e){return NB(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function NB(e){return Array.isArray(e)||n5(e)}function b_(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function y_(e,t,n){var s=e._modulesNamespaceMap[n];return s}/*!
23 * pinia v3.0.3
24 * (c) 2025 Eduardo San Martin Morote
25 * @license MIT
26 */let f5;const hp=e=>f5=e,h5=Symbol();function z0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Cu;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Cu||(Cu={}));function FB(){const e=np(!0),t=e.run(()=>Kn({}));let n=[],s=[];const r=rp({install(o){hp(r),r._a=o,o.provide(h5,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const p5=()=>{};function Q3(e,t,n,s=p5){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&x8()&&HD(r),r}function wl(e,...t){e.slice().forEach(n=>{n(...t)})}const DB=e=>e(),ek=Symbol(),Ig=Symbol();function q0(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];z0(r)&&z0(s)&&e.hasOwnProperty(n)&&!Sn(s)&&!Bo(s)?e[n]=q0(r,s):e[n]=s}return e}const UB=Symbol();function jB(e){return!z0(e)||!Object.prototype.hasOwnProperty.call(e,UB)}const{assign:bi}=Object;function BB(e){return!!(Sn(e)&&e.effect)}function zB(e,t,n,s){const{state:r,actions:o,getters:i}=t,a=n.state.value[e];let c;function u(){a||(n.state.value[e]=r?r():{});const f=dU(n.state.value[e]);return bi(f,o,Object.keys(i||{}).reduce((h,v)=>(h[v]=rp(vt(()=>{hp(n);const y=n._s.get(e);return i[v].call(y,y)})),h),{}))}return c=m5(e,u,t,n,s,!0),c}function m5(e,t,n={},s,r,o){let i;const a=bi({actions:{}},n),c={deep:!0};let u,f,h=[],v=[],y;const S=s.state.value[e];!o&&!S&&(s.state.value[e]={}),Kn({});let C;function I(Y){let H;u=f=!1,typeof Y=="function"?(Y(s.state.value[e]),H={type:Cu.patchFunction,storeId:e,events:y}):(q0(s.state.value[e],Y),H={type:Cu.patchObject,payload:Y,storeId:e,events:y});const D=C=Symbol();Ri().then(()=>{C===D&&(u=!0)}),f=!0,wl(h,H,s.state.value[e])}const $=o?function(){const{state:H}=n,D=H?H():{};this.$patch(oe=>{bi(oe,D)})}:p5;function k(){i.stop(),h=[],v=[],s._s.delete(e)}const P=(Y,H="")=>{if(ek in Y)return Y[Ig]=H,Y;const D=function(){hp(s);const oe=Array.from(arguments),le=[],Pe=[];function qe(ze){le.push(ze)}function Ke(ze){Pe.push(ze)}wl(v,{args:oe,name:D[Ig],store:R,after:qe,onError:Ke});let Ge;try{Ge=Y.apply(this&&this.$id===e?this:R,oe)}catch(ze){throw wl(Pe,ze),ze}return Ge instanceof Promise?Ge.then(ze=>(wl(le,ze),ze)).catch(ze=>(wl(Pe,ze),Promise.reject(ze))):(wl(le,Ge),Ge)};return D[ek]=!0,D[Ig]=H,D},A={_p:s,$id:e,$onAction:Q3.bind(null,v),$patch:I,$reset:$,$subscribe(Y,H={}){const D=Q3(h,Y,H.detached,()=>oe()),oe=i.run(()=>os(()=>s.state.value[e],le=>
26{(H.flush==="sync"?f:u)&&Y({storeId:e,type:Cu.direct,events:y},le)},bi({},c,H)));return D},$dispose:k},R=Pr(A);s._s.set(e,R);const N=(s._a&&s._a.runWithContext||DB)(()=>s._e.run(()=>(i=np()).run(()=>t({action:P}))));for(const Y in N){const H=N[Y];if(Sn(H)&&!BB(H)||Bo(H))o||(S&&jB(H)&&(Sn(H)?H.value=S[Y]:q0(H,S[Y])),s.state.value[e][Y]=H);else if(typeof H=="function"){const D=P(H,Y);N[Y]=D,a.actions[Y]=H}}return bi(R,N),bi(Mt(R),N),Object.defineProperty(R,"$state",{get:()=>s.state.value[e],set:Y=>{I(H=>{bi(H,Y)})}}),s._p.forEach(Y=>{bi(R,i.run(()=>Y({store:R,app:s._a,pinia:s,options:a})))}),S&&o&&n.hydrate&&n.hydrate(R.$state,S),u=!0,f=!0,R}/*! #__NO_SIDE_EFFECTS__ */function vs(e,t,n){let s;const r=typeof t=="function";s=r?n:t;function o(i,a){const c=xU();return i=i||(c?Ys(h5,null):null),i&&hp(i),i=f5,i._s.has(e)||(r?m5(e,t,s,i):zB(e,s,i)),i._s.get(e)}return o.$id=e,o}let qB="Store";function pp(...e){return e.reduce((t,n)=>(t[n.$id+qB]=function(){return n(this.$pinia)},t),{})}function sn(e,t){return Array.isArray(t)?t.reduce((n,s)=>(n[s]=function(){return e(this.$pinia)[s]},n),{}):Object.keys(t).reduce((n,s)=>(n[s]=function(){const r=e(this.$pinia),o=t[s];return typeof o=="function"?o.call(this,r):r[o]},n),{})}function mp(e,t){return Array.isArray(t)?t.reduce((n,s)=>(n[s]=function(...r){return e(this.$pinia)[s](...r)},n),{}):Object.keys(t).reduce((n,s)=>(n[s]=function(...r){return e(this.$pinia)[t[s]](...r)},n),{})}(function(){if(!(typeof window>"u"))try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),e.defaultPrevented!==!0)throw new Error("Could not prevent default")}catch{var t=function(s,r){var o,i;return r=r||{},r.bubbles=!!r.bubbles,r.cancelable=!!r.cancelable,o=document.createEvent("CustomEvent"),o.initCustomEvent(s,r.bubbles,r.cancelable,r.detail),i=o.preventDefault,o.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch{this.defaultPrevented=!0}},o};t.prototype=window.Event.prototype,window.CustomEvent=t}})();/*! (c) Andrea Giammarchi - ISC */var H0={};try{H0.EventTarget=new EventTarget().constructor}catch{(function(t,n){var s=t.create,r=t.defineProperty,o=i.prototype;a(o,"addEventListener",function(u,f,h){for(var v=n.get(this),y=v[u]||(v[u]=[]),S=0,C=y.length;S<C;S++)if(y[S].listener===f)return;
26y.push({target:this,listener:f,options:h})}),a(o,"dispatchEvent",function(u){var f=n.get(this),h=f[u.type];return h&&(a(u,"target",this),a(u,"currentTarget",this),h.slice(0).some(c,u),delete u.currentTarget,delete u.target),!0}),a(o,"removeEventListener",function(u,f){for(var h=n.get(this),v=h[u]||(h[u]=[]),y=0,S=v.length;y<S;y++)if(v[y].listener===f){v.splice(y,1);return}}),H0.EventTarget=i;function i(){n.set(this,s(null))}function a(u,f,h){r(u,f,{configurable:!0,writable:!0,value:h})}function c(u){var f=u.options;return f&&f.once&&u.target.removeEventListener(this.type,u.listener),typeof u.listener=="function"?u.listener.call(u.target,this):u.listener.handleEvent(this),this._stopImmediatePropagationFlag}})(Object,new WeakMap)}const HB=H0.EventTarget;try{new EventTarget().dispatchEvent()}catch{window.EventTarget=HB}const VB="modulepreload",WB=function(e){return"/"+e},tk={},Ve=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let i=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=i(n.map(u=>{if(u=WB(u),u in tk)return;tk[u]=!0;const f=u.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const v=document.createElement("link");if(v.rel=f?"stylesheet":VB,f||(v.as="script"),v.crossOrigin="",v.href=u,c&&v.setAttribute("nonce",c),document.head.appendChild(v),f)return new Promise((y,S)=>{v.addEventListener("load",y),v.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return r.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var ps=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iu={exports:{}};/**
27 * @license
28 * Lodash <https://lodash.com/>
29 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
30 * Released under MIT license <https://lodash.com/license>
31 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
32 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
33 */var GB=iu.exports,nk;function KB(){return nk||(nk=1,function(e,t){(function(){var n,s="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,v=2,y=4,S=1,C=2,I=1,$=2,k=4,P=8,A=16,R=32,B=64,N=128,Y=256,H=512,D=30,oe="...",le=800,Pe=16,qe=1,Ke=2,Ge=3,ze=1/0,ot=9007199254740991,Ct=17976931348623157e292,dt=NaN,bt=4294967295,It=bt-1,nt=bt>>>1,_t=[["ary",N],["bind",I],["bindKey",$],["curry",P],["curryRight",A],["flip",H],["partial",R],["partialRight",B],["rearg",Y]],ft="[object Arguments]",Ht="[object Array]",_e="[object AsyncFunction]",Me="[object Boolean]",Fe="[object Date]",Ue="[object DOMException]",pt="[object Error]",W="[object Function]",G="[object GeneratorFunction]",ee="[object Map]",pe="[object Number]",we="[object Null]",be="[object Object]",j="[object Promise]",q="[object Proxy]",te="[object RegExp]",fe="[object Set]",je="[object String]",ke="[object Symbol]",re="[object Undefined]",me="[object WeakMap]",xe="[object WeakSet]",rt="[object ArrayBuffer]",ut="[object DataView]",Qt="[object Float32Array]",Wt="[object Float64Array]",En="[object Int8Array]",On="[object Int16Array]",Cs="[object Int32Array]",tr="[object Uint8Array]",ln="[object Uint8ClampedArray]",Rn="[object Uint16Array]",nr="[object Uint32Array]",Fr=/\b__p \+= '';/g,cc=/\b(__p \+=) '' \+/g,Fs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dr=/&(?:amp|lt|gt|quot|#39);/g,Ya=/[&<>"']/g,sr=RegExp(Dr.source),uc=RegExp(Ya.source),dc=/<%-([\s\S]+?)%>/g,fc=/<%([\s\S]+?)%>/g,Xa=/<%=([\s\S]+?)%>/g,hc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ds=/^\w*$/,pc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ta=/[\\^$.*+?()[\]{}|]/g,mc=RegExp(ta.source),na=/^\s+/,Ja=/\s/,Ur=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gc=/\{\n\/\* \[wrapped with (.+)\] \*/,vc=/,? & /,bc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yc=/[()=,{}\[\]\/\s]/,_c=/\\(\\)?/g,jr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Za=/\w*$/,wc=/^[-+]0x[0-9a-f]+$/i,Sc=/^0b[01]+$/i,kc=/^\[object .+?Constructor\]$/,$c=/^0o[0-7]+$/i,Cc=/^(?:0|[1-9]\d*)$/,sa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,122 bytes, line 33
337f]/g,ti=/($^)/,co=/['\n\r\u2028\u2029\\]/g,Ts="\\ud800-\\udfff",Qa="\\u0300-\\u036f",Us="\\ufe20-\\ufe2f",el="\\u20d0-\\u20ff",uo=Qa+Us+el,ni="\\u2700-\\u27bf",tl="a-z\\xdf-\\xf6\\xf8-\\xff",nl="\\xac\\xb1\\xd7\\xf7",ra="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tc="\\u2000-\\u206f",Ac=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",F="A-Z\\xc0-\\xd6\\xd8-\\xde",J="\\ufe0e\\ufe0f",z=nl+ra+Tc+Ac,se="['’]",ce="["+Ts+"]",ne="["+z+"]",Ce="["+uo+"]",Ie="\\d+",Oe="["+ni+"]",Re="["+tl+"]",De="[^"+Ts+z+Ie+ni+tl+F+"]",Ze="\\ud83c[\\udffb-\\udfff]",Tt="(?:"+Ce+"|"+Ze+")",Bt="[^"+Ts+"]",zt="(?:\\ud83c[\\udde6-\\uddff]){2}",cn="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="["+F+"]",Zn="\\u200d",Br="(?:"+Re+"|"+De+")",fo="(?:"+xt+"|"+De+")",sl="(?:"+se+"(?:d|ll|m|re|s|t|ve))?",si="(?:"+se+"(?:D|LL|M|RE|S|T|VE))?",Ec=Tt+"?",ho="["+J+"]?",oa="(?:"+Zn+"(?:"+[Bt,zt,cn].join("|")+")"+ho+Ec+")*",ri="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ic="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ad=ho+Ec+oa,Ed="(?:"+[Oe,zt,cn].join("|")+")"+Ad,Pc="(?:"+[Bt+Ce+"?",Ce,zt,cn,ce].join("|")+")",Id=RegExp(se,"g"),po=RegExp(Ce,"g"),mo=RegExp(Ze+"(?="+Ze+")|"+Pc+Ad,"g"),cm=RegExp([xt+"?"+Re+"+"+sl+"(?="+[ne,xt,"$"].join("|")+")",fo+"+"+si+"(?="+[ne,xt+Br,"$"].join("|")+")",xt+"?"+Br+"+"+sl,xt+"+"+si,Ic,ri,Ie,Ed].join("|"),"g"),Pd=RegExp("["+Zn+Ts+uo+J+"]"),um=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ld=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],dm=-1,un={};un[Qt]=un[Wt]=un[En]=un[On]=un[Cs]=un[tr]=un[ln]=un[Rn]=un[nr]=!0,un[ft]=un[Ht]=un[rt]=un[Me]=un[ut]=un[Fe]=un[pt]=un[W]=un[ee]=un[pe]=un[be]=un[te]=un[fe]=un[je]=un[me]=!1;var en={};en[ft]=en[Ht]=en[rt]=en[ut]=en[Me]=en[Fe]=en[Qt]=en[Wt]=en[En]=en[On]=en[Cs]=en[ee]=en[pe]=en[be]=en[te]=en[fe]=en[je]=en[ke]=en[tr]=en[ln]=en[Rn]=en[nr]=!0,en[pt]=en[W]=en[me]=!1;var fm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ie={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ye={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,Dt=parseInt,Yt=typeof ps=="object"&&ps&&ps.Object===Object&&ps,gn=typeof self=="object"&&self&&self.Object===Object&&self,yt=Yt||gn||Function("return this")(),on=t&&!t.nodeType&&t,jn=on&&!0&&e&&!e.nodeType&&e,is=jn&&jn.exports===on,go=is&&Yt.process,as=function(){try{var ae=jn&&jn.require&&jn.require("util").t
vendor: 13,151 bytes, line 33
33ypes;return ae||go&&go.binding&&go.binding("util")}catch{}}(),rl=as&&as.isArrayBuffer,Lc=as&&as.isDate,aw=as&&as.isMap,lw=as&&as.isRegExp,cw=as&&as.isSet,uw=as&&as.isTypedArray;function js(ae,$e,ve){switch(ve.length){case 0:return ae.call($e);case 1:return ae.call($e,ve[0]);case 2:return ae.call($e,ve[0],ve[1]);case 3:return ae.call($e,ve[0],ve[1],ve[2])}return ae.apply($e,ve)}function QO(ae,$e,ve,Qe){for(var St=-1,Gt=ae==null?0:ae.length;++St<Gt;){var Bn=ae[St];$e(Qe,Bn,ve(Bn),ae)}return Qe}function rr(ae,$e){for(var ve=-1,Qe=ae==null?0:ae.length;++ve<Qe&&$e(ae[ve],ve,ae)!==!1;);return ae}function eR(ae,$e){for(var ve=ae==null?0:ae.length;ve--&&$e(ae[ve],ve,ae)!==!1;);return ae}function dw(ae,$e){for(var ve=-1,Qe=ae==null?0:ae.length;++ve<Qe;)if(!$e(ae[ve],ve,ae))return!1;return!0}function oi(ae,$e){for(var ve=-1,Qe=ae==null?0:ae.length,St=0,Gt=[];++ve<Qe;){var Bn=ae[ve];$e(Bn,ve,ae)&&(Gt[St++]=Bn)}return Gt}function Od(ae,$e){var ve=ae==null?0:ae.length;return!!ve&&ol(ae,$e,0)>-1}function hm(ae,$e,ve){for(var Qe=-1,St=ae==null?0:ae.length;++Qe<St;)if(ve($e,ae[Qe]))return!0;return!1}function $n(ae,$e){for(var ve=-1,Qe=ae==null?0:ae.length,St=Array(Qe);++ve<Qe;)St[ve]=$e(ae[ve],ve,ae);return St}function ii(ae,$e){for(var ve=-1,Qe=$e.length,St=ae.length;++ve<Qe;)ae[St+ve]=$e[ve];return ae}function pm(ae,$e,ve,Qe){var St=-1,Gt=ae==null?0:ae.length;for(Qe&&Gt&&(ve=ae[++St]);++St<Gt;)ve=$e(ve,ae[St],St,ae);return ve}function tR(ae,$e,ve,Qe){var St=ae==null?0:ae.length;for(Qe&&St&&(ve=ae[--St]);St--;)ve=$e(ve,ae[St],St,ae);return ve}function mm(ae,$e){for(var ve=-1,Qe=ae==null?0:ae.length;++ve<Qe;)if($e(ae[ve],ve,ae))return!0;return!1}var nR=gm("length");function sR(ae){return ae.split("")}function rR(ae){return ae.match(bc)||[]}function fw(ae,$e,ve){var Qe;return ve(ae,function(St,Gt,Bn){if($e(St,Gt,Bn))return Qe=Gt,!1}),Qe}function Rd(ae,$e,ve,Qe){for(var St=ae.length,Gt=ve+(Qe?1:-1);Qe?Gt--:++Gt<St;)if($e(ae[Gt],Gt,ae))return Gt;return-1}function ol(ae,$e,ve){return $e===$e?gR(ae,$e,ve):Rd(ae,hw,ve)}function oR(ae,$e,ve,Qe){for(var St=ve-1,Gt=ae.length;++St<Gt;)if(Qe(ae[St],$e))return St;return-1}function hw(ae){return ae!==ae}function pw(ae,$e){var ve=ae==null?0:ae.length;return ve?bm(ae,$e)/ve:dt}function gm(ae){return function($e){return $e==null?n:$e[ae]}}function vm(ae){return function($e){return ae==null?n:ae[$e]}}function mw(ae,$e,ve,Qe,St){return St(ae,function(Gt,Bn,dn){ve=Qe?(Qe=!1,Gt):$e(ve,Gt,Bn,dn)}),ve}function iR(ae,$e){var ve=ae.length;for(ae.sort($e);ve--;)ae[ve]=ae[ve].value;return ae}function bm(ae,$e){for(var ve,Qe=-1,St=ae.length;++Qe<St;){var Gt=$e(ae[Qe]);Gt!==n&&(ve=ve===n?Gt:ve+Gt)}return ve}function ym(ae,$e){for(var ve=-1,Qe=Array(ae);++ve<ae;)Qe[ve]=$e(ve);return Qe}function aR(ae,$e){return $n($e,function(ve){return[ve,ae[ve]]})}function gw(ae){return ae&&ae.slice(0,_w(ae)+1).replace(na,"")}function Bs(ae){return function($e){return ae($e)}}function _m(ae,$e){return $n($e,function(ve){return ae[ve]})}function Oc(ae,$e){return ae.has($e)}function vw(ae,$e){for(var ve=-1,Qe=ae.length;++ve<Qe&&ol($e,ae[ve],0)>-1;);return ve}function bw(ae,$e){for(var ve=ae.length;ve--&&ol($e,ae[ve],0)>-1;);return ve}function lR(ae,$e){for(var ve=ae.length,Qe=0;ve--;)ae[ve]===$e&&++Qe;return Qe}var cR=vm(fm),uR=vm(V);function dR(ae){return"\\"+ye[ae]}function fR(ae,$e){return ae==null?n:ae[$e]}function il(ae){return Pd.test(ae)}function hR(ae){return um.test(ae)}function pR(ae){for(var $e,ve=[];!($e=ae.next()).done;)ve.push($e.value);return ve}function wm(ae){var $e=-1,ve=Array(ae.size);return ae.forEach(function(Qe,St){ve[++$e]=[St,Qe]}),ve}function yw(ae,$e){return function(ve){return ae($e(ve))}}function ai(ae,$e){for(var ve=-1,Qe=ae.length,St=0,Gt=[];++ve<Qe;){var Bn=ae[ve];(Bn===$e||Bn===f)&&(ae[ve]=f,Gt[St++]=ve)}return Gt}function Md(ae){var $e=-1,ve=Array(ae.size);return ae.forEach(function(Qe){ve[++$e]=Qe}),ve}function mR(ae){var $e=-1,ve=Array(ae.size);return ae.forEach(function(Qe){ve[++$e]=[Qe,Qe]}),ve}function gR(ae,$e,ve){for(var Qe=ve-1,St=ae.length;++Qe<St;)if(ae[Qe]===$e)return Qe;return-1}function vR(ae,$e,ve){for(var Qe=ve+1;Qe--;)if(ae[Qe]===$e)return Qe;return Qe}function al(ae){return il(ae)?yR(ae):nR(ae)}function yr(ae){return il(ae)?_R(ae):sR(ae)}function _w(ae){for(var $e=ae.length;$e--&&Ja.test(ae.charAt($e)););return $e}var bR=vm(ie);function yR(ae){for(var $e=mo.lastIndex=0;mo.test(ae);)++$e;return $e}function _R(ae){return ae.match(mo)||[]}function wR(ae){return ae.match(cm)||[]}var SR=function ae($e){$e=$e==null?yt:ll.defaults(yt.Object(),$e,ll.pick(yt,Ld));var ve=$e.Array,Qe=$e.Date,St=$e.Error,Gt=$e.Function,Bn=$e.Math,dn=$e.Object,Sm=$e.RegExp,kR=$e.String,or=$e.TypeError,Nd=ve.prototype,$R=Gt.prototype,cl=dn.prototype,Fd=$e["__core-js_shared__"],Dd=$R.toString,tn=cl.hasOwnProperty,CR=0,ww=function(){var l=/[^.]+$/.exec(Fd&&Fd.keys&&Fd.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),Ud=cl.toString,TR=Dd.call(dn),AR=yt._,ER=Sm("^"+Dd.call(tn).replace(ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jd=is?$e.Buffer:n,li=$e.Symbol,Bd=$e.Uint8Array,Sw=jd?jd.allocUnsafe:n,zd=yw(dn.getPrototypeOf,dn),kw=dn.create,$w=cl.propertyIsEnumerable,qd=Nd.splice,Cw=li?li.isConcatSpreadable:n,Rc=li?li.iterator:n,ia=li?li.toStringTag:n,Hd=function(){try{var l=da(dn,"defineProperty");return l({},"",{}),l}catch{}}(),IR=$e.clearTimeout!==yt.clearTimeout&&$e.clearTimeout,PR=Qe&&Qe.now!==yt.Date.now&&Qe.now,LR=$e.setTimeout!==yt.setTimeout&&$e.setTimeout,Vd=Bn.ceil,Wd=Bn.floor,km=dn.getOwnPropertySymbols,OR=jd?jd.isBuffer:n,Tw=$e.isFinite,RR=Nd.join,MR=yw(dn.keys,dn),zn=Bn.max,ls=Bn.min,NR=Qe.now,FR=$e.parseInt,Aw=Bn.random,DR=Nd.reverse,$m=da($e,"DataView"),Mc=da($e,"Map"),Cm=da($e,"Promise"),ul=da($e,"Set"),Nc=da($e,"WeakMap"),Fc=da(dn,"create"),Gd=Nc&&new Nc,dl={},UR=fa($m),jR=fa(Mc),BR=fa(Cm),zR=fa(ul),qR=fa(Nc),Kd=li?li.prototype:n,Dc=Kd?Kd.valueOf:n,Ew=Kd?Kd.toString:n;function M(l){if(In(l)&&!$t(l)&&!(l instanceof Ut)){if(l instanceof ir)return l;if(tn.call(l,"__wrapped__"))return IS(l)}return new ir(l)}var fl=function(){function l(){}return function(d){if(!Tn(d))return{};if(kw)return kw(d);l.prototype=d;var m=new l;return l.prototype=n,m}}();function xd(){}function ir(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}M.templateSettings={escape:dc,evaluate:fc,interpolate:Xa,variable:"",imports:{_:M}},M.prototype=xd.prototype,M.prototype.constructor=M,ir.prototype=fl(xd.prototype),ir.prototype.constructor=ir;function Ut(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=bt,this.__views__=[]}function HR(){var l=new Ut(this.__wrapped__);return l.__actions__=As(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=As(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=As(this.__views__),l}function VR(){if(this.__filtered__){var l=new Ut(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function WR(){var l=this.__wrapped__.value(),d=this.__dir__,m=$t(l),_=d<0,L=m?l.length:0,U=s7(0,L,this.__views__),K=U.start,Q=U.end,ue=Q-K,Ae=_?Q:K-1,Ee=this.__iteratees__,Le=Ee.length,He=0,st=ls(ue,this.__takeCount__);if(!m||!_&&L==ue&&st==ue)return Zw(l,this.__actions__);var mt=[];e:for(;ue--&&He<st;){Ae+=d;for(var Et=-1,gt=l[Ae];++Et<Le;){var Rt=Ee[Et],qt=Rt.iteratee,Hs=Rt.type,ws=qt(gt);if(Hs==Ke)gt=ws;else if(!ws){if(Hs==qe)continue e;break e}}mt[He++]=gt}return mt}Ut.prototype=fl(xd.prototype),Ut.prototype.constructor=Ut;function aa(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d<m;){var _=l[d];this.set(_[0],_[1])}}function GR(){this.__data__=Fc?Fc(null):{},this.size=0}function KR(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function xR(l){var d=this.__data__;if(Fc){var m=d[l];return m===c?n:m}return tn.call(d,l)?d[l]:n}function YR(l){var d=this.__data__;return Fc?d[l]!==n:tn.call(d,l)}function XR(l,d){var m=this.__data__;return this.size+=this.has(l)?0:1,m[l]=Fc&&d===n?c:d,this}aa.prototype.clear=GR,aa.prototype.delete=KR,aa.prototype.get=xR,aa.prototype.has=YR,aa.prototype.set=XR;function vo(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d<m;){var _=l[d];this.set(_[0],_[1])}}function JR(){this.__data__=[],this.size=0}function ZR(l){var d=this.__data__,m=Yd(d,l);if(m<0)return!1;var _=d.length-1;return m==_?d.pop():qd.call(d,m,1),--this.size,!0}function QR(l){var d=this.__data__,m=Yd(d,l);return m<0?n:d[m][1]}function eM(l){return Yd(this.__data__,l)>-1}function tM(l,d){var m=this.__data__,_=Yd(m,l);return _<0?(++this.size,m.push([l,d])):m[_][1]=d,this}vo.prototype.clear=JR,vo.prototype.delete=ZR,vo.prototype.get=QR,vo.prototype.has=eM,vo.prototype.set=tM;function bo(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d<m;){var _=l[d];this.set(_[0],_[1])}}function nM(){this.size=0,this.__data__={hash:new aa,map:new(Mc||vo),string:new aa}}function sM(l){var d=lf(this,l).delete(l);return this.size-=d?1:0,d}function rM(l){return lf(this,l).get(l)}function oM(l){return lf(this,l).has(l)}function iM(l,d){var m=lf(this,l),_=m.size;return m.set(l,d),this.size+=m.size==_?0:1,this}bo.prototype.clear=nM,bo.prototype.delete=sM,bo.prototype.get=rM,bo.prototype.has=oM,bo.prototype.set=iM;function la(l){var d=-1,m=l==null?0:l.length;for(this.__data__=new bo;++d<m;)this.add(l[d])}function aM(l){return this.__data__.set(l,c),this}function lM(l){return this.__data__.has(l)}la.prototype.add=la.prototype.push=aM,la.prototype.has=lM;function _r(l){var d=this.__data__=new vo(l);this.size=d.size}function cM(){this.__data__=new vo,this.size=0}function uM(l){var d=this.__data__,m=d.delete(l);return this.size=d.size,m}function dM(l){return this.__data__.get(l)}function fM(l){return this.__data__.has(l)}function hM(l,d){var m=this.__data__;if(m instanceof vo){var _=m.__data__;if(!Mc||_.length<r-1)return _.push([l,d]),this.size=++m.size,this;m=this.__data__=new bo(_)}return m.set(l,d),this.size=m.size,this}_r.prototype.clear=cM,_r.prototype.delete=uM,_r.prototype.get=dM,_r.prototype.has=fM,_r.prototype.set=hM;function Iw(l,d){var m=$t(l),_=!m&&ha(l),L=!m&&!_&&hi(l),U=!m&&!_&&!L&&gl(l),K=m||_||L||U,Q=K?ym(l.length,kR):[],ue=Q.length;for(var Ae in l)(d||tn.call(l,Ae))&&!(K&&(Ae=="length"||L&&(Ae=="offset"||Ae=="parent")||U&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||So(Ae,ue)))&&Q.push(Ae);return Q}function Pw(l){var d=l.length;return d?l[Fm(0,d-1)]:n}function pM(l,d){return cf(As(l),ca(d,0,l.length))}function mM(l){return cf(As(l))}function Tm(l,d,m){(m!==n&&!wr(l[d],m)||m===n&&!(d in l))&&yo(l,d,m)}function Uc(l,d,m){var _=l[d];(!(tn.call(l,d)&&wr(_,m))||m===n&&!(d in l))&&yo(l,d,m)}function Yd(l,d){for(var m=l.length;m--;)if(wr(l[m][0],d))return m;return-1}function gM(l,d,m,_){return ci(l,function(L,U,K){d(_,L,m(L),K)}),_}function Lw(l,d){return l&&qr(d,Gn(d),l)}function vM(l,d){return l&&qr(d,Is(d),l)}function yo(l,d,m){d=="__proto__"&&Hd?Hd(l,d,{configurable:!0,enumerable:!0,value:m,writable:!0}):l[d]=m}function Am(l,d){for(var m=-1,_=d.length,L=ve(_),U=l==null;++m<_;)L[m]=U?n:ag(l,d[m]);return L}function ca(l,d,m){return l===l&&(m!==n&&(l=l<=m?l:m),d!==n&&(l=l>=d?l:d)),l}function ar(l,d,m,_,L,U){var K,Q=d&h,ue=d&v,Ae=d&y;if(m&&(K=L?m(l,_,L,U):m(l)),K!==n)return K;if(!Tn(l))return l;var Ee=$t(l);if(Ee){if(K=o7(l),!Q)return As(l,K)}else{var Le=cs(l),He=Le==W||Le==G;if(hi(l))return tS(l,Q);if(Le==be||Le==ft||He&&!L){if(K=ue||He?{}:_S(l),!Q)return ue?xM(l,vM(K,l)):KM(l,Lw(K,l))}else{if(!en[Le])return L?l:{};K=i7(l,Le,Q)}}U||(U=new _r);var st=U.get(l);if(st)return st;U.set(l,K),YS(l)?l.forEach(function(gt){K.add(ar(gt,d,m,gt,l,U))}):KS(l)&&l.forEach(function(gt,Rt){K.set(Rt,ar(gt,d,m,Rt,l,U))});var mt=Ae?ue?Km:Gm:ue?Is:Gn,Et=Ee?n:mt(l);return rr(Et||l,function(gt,Rt){Et&&(Rt=gt,gt=l[Rt]),Uc(K,Rt,ar(gt,d,m,Rt,l,U))}),K}function bM(l){var d=Gn(l);return function(m){return Ow(m,l,d)}}function Ow(l,d,m){var _=m.length;if(l==null)return!_;for(l=dn(l);_--;){var L=m[_],U=d[L],K=l[L];if(K===n&&!(L in l)||!U(K))return!1}return!0}function Rw(l,d,m){if(typeof l!="function")throw new or(i);return Wc(function(){l.apply(n,m)},d)}function jc(l,d,m,_){var L=-1,U=Od,K=!0,Q=l.length,ue=[],Ae=d.length;if(!Q)return ue;m&&(d=$n(d,Bs(m))),_?(U=hm,K=!1):d.length>=r&&(U=Oc,K=!1,d=new la(d));e:for(;++L<Q;){var Ee=l[L],Le=m==null?Ee:m(Ee);if(Ee=_||Ee!==0?Ee:0,K&&Le===Le){for(var He=Ae;He--;)if(d[He]===Le)continue e;ue.push(Ee)}else U(d,Le,_)||ue.push(Ee)}return ue}var ci=iS(zr),Mw=iS(Im,!0);function yM(l,d){var m=!0;return ci(l,function(_,L,U){return m=!!d(_,L,U),m}),m}function Xd(l,d,m){for(var _=-1,L=l.length;++_<L;){var U=l[_],K=d(U);if(K!=null&&(Q===n?K===K&&!qs(K):m(K,Q)))var Q=K,ue=U}return ue}function _M(l,d,m,_){var L=l.length;for(m=At(m),m<0&&(m=-m>L?0:L+m),_=_===n||_>L?L:At(_),_<0&&(_+=L),_=m>_?0:JS(_);m<_;)l[m++]=d;return l}function Nw(l,d){var m=[];return ci(l,function(_,L,U){d(_,L,U)&&m.push(_)}),m}function Qn(l,d,m,_,L){var U=-1,K=l.length;for(m||(m=l7),L||(L=[]);++U<K;){var Q=l[U];d>0&&m(Q)?d>1?Qn(Q,d-1,m,_,L):ii(L,Q):_||(L[L.length]=Q)}return L}
vendor: 8,195 bytes, line 33
33var Em=aS(),Fw=aS(!0);function zr(l,d){return l&&Em(l,d,Gn)}function Im(l,d){return l&&Fw(l,d,Gn)}function Jd(l,d){return oi(d,function(m){return ko(l[m])})}function ua(l,d){d=di(d,l);for(var m=0,_=d.length;l!=null&&m<_;)l=l[Hr(d[m++])];return m&&m==_?l:n}function Dw(l,d,m){var _=d(l);return $t(l)?_:ii(_,m(l))}function ys(l){return l==null?l===n?re:we:ia&&ia in dn(l)?n7(l):m7(l)}function Pm(l,d){return l>d}function wM(l,d){return l!=null&&tn.call(l,d)}function SM(l,d){return l!=null&&d in dn(l)}function kM(l,d,m){return l>=ls(d,m)&&l<zn(d,m)}function Lm(l,d,m){for(var _=m?hm:Od,L=l[0].length,U=l.length,K=U,Q=ve(U),ue=1/0,Ae=[];K--;){var Ee=l[K];K&&d&&(Ee=$n(Ee,Bs(d))),ue=ls(Ee.length,ue),Q[K]=!m&&(d||L>=120&&Ee.length>=120)?new la(K&&Ee):n}Ee=l[0];var Le=-1,He=Q[0];e:for(;++Le<L&&Ae.length<ue;){var st=Ee[Le],mt=d?d(st):st;if(st=m||st!==0?st:0,!(He?Oc(He,mt):_(Ae,mt,m))){for(K=U;--K;){var Et=Q[K];if(!(Et?Oc(Et,mt):_(l[K],mt,m)))continue e}He&&He.push(mt),Ae.push(st)}}return Ae}function $M(l,d,m,_){return zr(l,function(L,U,K){d(_,m(L),U,K)}),_}function Bc(l,d,m){d=di(d,l),l=$S(l,d);var _=l==null?l:l[Hr(cr(d))];return _==null?n:js(_,l,m)}function Uw(l){return In(l)&&ys(l)==ft}function CM(l){return In(l)&&ys(l)==rt}function TM(l){return In(l)&&ys(l)==Fe}function zc(l,d,m,_,L){return l===d?!0:l==null||d==null||!In(l)&&!In(d)?l!==l&&d!==d:AM(l,d,m,_,zc,L)}function AM(l,d,m,_,L,U){var K=$t(l),Q=$t(d),ue=K?Ht:cs(l),Ae=Q?Ht:cs(d);ue=ue==ft?be:ue,Ae=Ae==ft?be:Ae;var Ee=ue==be,Le=Ae==be,He=ue==Ae;if(He&&hi(l)){if(!hi(d))return!1;K=!0,Ee=!1}if(He&&!Ee)return U||(U=new _r),K||gl(l)?vS(l,d,m,_,L,U):e7(l,d,ue,m,_,L,U);if(!(m&S)){var st=Ee&&tn.call(l,"__wrapped__"),mt=Le&&tn.call(d,"__wrapped__");if(st||mt){var Et=st?l.value():l,gt=mt?d.value():d;return U||(U=new _r),L(Et,gt,m,_,U)}}return He?(U||(U=new _r),t7(l,d,m,_,L,U)):!1}function EM(l){return In(l)&&cs(l)==ee}function Om(l,d,m,_){var L=m.length,U=L,K=!_;if(l==null)return!U;for(l=dn(l);L--;){var Q=m[L];if(K&&Q[2]?Q[1]!==l[Q[0]]:!(Q[0]in l))return!1}for(;++L<U;){Q=m[L];var ue=Q[0],Ae=l[ue],Ee=Q[1];if(K&&Q[2]){if(Ae===n&&!(ue in l))return!1}else{var Le=new _r;if(_)var He=_(Ae,Ee,ue,l,d,Le);if(!(He===n?zc(Ee,Ae,S|C,_,Le):He))return!1}}return!0}function jw(l){if(!Tn(l)||u7(l))return!1;var d=ko(l)?ER:kc;return d.test(fa(l))}function IM(l){return In(l)&&ys(l)==te}function PM(l){return In(l)&&cs(l)==fe}function LM(l){return In(l)&&mf(l.length)&&!!un[ys(l)]}function Bw(l){return typeof l=="function"?l:l==null?Ps:typeof l=="object"?$t(l)?Hw(l[0],l[1]):qw(l):l3(l)}function Rm(l){if(!Vc(l))return MR(l);var d=[];for(var m in dn(l))tn.call(l,m)&&m!="constructor"&&d.push(m);return d}function OM(l){if(!Tn(l))return p7(l);var d=Vc(l),m=[];for(var _ in l)_=="constructor"&&(d||!tn.call(l,_))||m.push(_);return m}function Mm(l,d){return l<d}function zw(l,d){var m=-1,_=Es(l)?ve(l.length):[];return ci(l,function(L,U,K){_[++m]=d(L,U,K)}),_}function qw(l){var d=Ym(l);return d.length==1&&d[0][2]?SS(d[0][0],d[0][1]):function(m){return m===l||Om(m,l,d)}}function Hw(l,d){return Jm(l)&&wS(d)?SS(Hr(l),d):function(m){var _=ag(m,l);return _===n&&_===d?lg(m,l):zc(d,_,S|C)}}function Zd(l,d,m,_,L){l!==d&&Em(d,function(U,K){if(L||(L=new _r),Tn(U))RM(l,d,K,m,Zd,_,L);else{var Q=_?_(Qm(l,K),U,K+"",l,d,L):n;Q===n&&(Q=U),Tm(l,K,Q)}},Is)}function RM(l,d,m,_,L,U,K){var Q=Qm(l,m),ue=Qm(d,m),Ae=K.get(ue);if(Ae){Tm(l,m,Ae);return}var Ee=U?U(Q,ue,m+"",l,d,K):n,Le=Ee===n;if(Le){var He=$t(ue),st=!He&&hi(ue),mt=!He&&!st&&gl(ue);Ee=ue,He||st||mt?$t(Q)?Ee=Q:Mn(Q)?Ee=As(Q):st?(Le=!1,Ee=tS(ue,!0)):mt?(Le=!1,Ee=nS(ue,!0)):Ee=[]:Gc(ue)||ha(ue)?(Ee=Q,ha(Q)?Ee=ZS(Q):(!Tn(Q)||ko(Q))&&(Ee=_S(ue))):Le=!1}Le&&(K.set(ue,Ee),L(Ee,ue,_,U,K),K.delete(ue)),Tm(l,m,Ee)}function Vw(l,d){var m=l.length;if(m)return d+=d<0?m:0,So(d,m)?l[d]:n}function Ww(l,d,m){d.length?d=$n(d,function(U){return $t(U)?function(K){return ua(K,U.length===1?U[0]:U)}:U}):d=[Ps];var _=-1;d=$n(d,Bs(ht()));var L=zw(l,function(U,K,Q){var ue=$n(d,function(Ae){return Ae(U)});return{criteria:ue,index:++_,value:U}});return iR(L,function(U,K){return GM(U,K,m)})}function MM(l,d){return Gw(l,d,function(m,_){return lg(l,_)})}function Gw(l,d,m){for(var _=-1,L=d.length,U={};++_<L;){var K=d[_],Q=ua(l,K);m(Q,K)&&qc(U,di(K,l),Q)}return U}function NM(l){return function(d){return ua(d,l)}}function Nm(l,d,m,_){var L=_?oR:ol,U=-1,K=d.length,Q=l;for(l===d&&(d=As(d)),m&&(Q=$n(l,Bs(m)));++U<K;)for(var ue=0,Ae=d[U],Ee=m?m(Ae):Ae;(ue=L(Q,Ee,ue,_))>-1;)Q!==l&&qd.call(Q,ue,1),qd.call(l,ue,1);return l}function Kw(l,d){for(var m=l?d.length:0,_=m-1;m--;){var L=d[m];if(m==_||L!==U){var U=L;So(L)?qd.call(l,L,1):jm(l,L)}}return l}function Fm(l,d){return l+Wd(Aw()*(d-l+1))}function FM(l,d,m,_){for(var L=-1,U=zn(Vd((d-l)/(m||1)),0),K=ve(U);U--;)K[_?U:++L]=l,l+=m;return K}function Dm(l,d){var m="";if(!l||d<1||d>ot)return m;do d%2&&(m+=l),d=Wd(d/2),d&&(l+=l);while(d);return m}function Pt(l,d){return eg(kS(l,d,Ps),l+"")}function DM(l){return Pw(vl(l))}function UM(l,d){var m=vl(l);return cf(m,ca(d,0,m.length))}function qc(l,d,m,_){if(!Tn(l))return l;d=di(d,l);for(var L=-1,U=d.length,K=U-1,Q=l;Q!=null&&++L<U;){var ue=Hr(d[L]),Ae=m;if(ue==="__proto__"||ue==="constructor"||ue==="prototype")return l;if(L!=K){var Ee=Q[ue];Ae=_?_(Ee,ue,Q):n,Ae===n&&(Ae=Tn(Ee)?Ee:So(d[L+1])?[]:{})}Uc(Q,ue,Ae),Q=Q[ue]}return l}var xw=Gd?function(l,d){return Gd.set(l,d),l}:Ps,jM=Hd?function(l,d){return Hd(l,"toString",{configurable:!0,enumerable:!1,value:ug(d),writable:!0})}:Ps;function BM(l){return cf(vl(l))}function lr(l,d,m){var _=-1,L=l.length;d<0&&(d=-d>L?0:L+d),m=m>L?L:m,m<0&&(m+=L),L=d>m?0:m-d>>>0,d>>>=0;for(var U=ve(L);++_<L;)U[_]=l[_+d];return U}function zM(l,d){var m;return ci(l,function(_,L,U){return m=d(_,L,U),!m}),!!m}function Qd(l,d,m){var _=0,L=l==null?_:l.length;if(typeof d=="number"&&d===d&&L<=nt){for(;_<L;){var U=_+L>>>1,K=l[U];K!==null&&!qs(K)&&(m?K<=d:K<d)?_=U+1:L=U}return L}return Um(l,d,Ps,m)}function Um(l,d,m,_){var L=0,U=l==null?0:l.length;if(U===0)return 0;d=m(d);for(var K=d!==d,Q=d===null,ue=qs(d),Ae=d===n;L<U;){var Ee=Wd((L+U)/2),Le=m(l[Ee]),He=Le!==n,st=Le===null,mt=Le===Le,Et=qs(Le);if(K)var gt=_||mt;else Ae?gt=mt&&(_||He):Q?gt=mt&&He&&(_||!st):ue?gt=mt&&He&&!st&&(_||!Et):st||Et?gt=!1:gt=_?Le<=d:Le<d;gt?L=Ee+1:U=Ee}return ls(U,It)}function Yw(l,d){for(var m=-1,_=l.length,L=0,U=[];++m<_;){var K=l[m],Q=d?d(K):K;if(!m||!wr(Q,ue)){var ue=Q;U[L++]=K===0?0:K}}return U}function Xw(l){return typeof l=="number"?l:qs(l)?dt:+l}function zs(l){if(typeof l=="string")return l;if($t(l))return $n(l,zs)+"";if(qs(l))return Ew?Ew.call(l):"";var d=l+"";return d=="0"&&1/l==-1/0?"-0":d}function ui(l,d,m){var _=-1,L=Od,U=l.length,K=!0,Q=[],ue=Q;if(m)K=!1,L=hm;else if(U>=r){var Ae=d?null:ZM(l);if(Ae)return Md(Ae);K=!1,L=Oc,ue=new la}else ue=d?[]:Q;e:for(;++_<U;){var Ee=l[_],Le=d?d(Ee):Ee;if(Ee=m||Ee!==0?Ee:0,K&&Le===Le){for(var He=ue.length;He--;)if(ue[He]===Le)continue e;d&&ue.push(Le),Q.push(Ee)}else L(ue,Le,m)||(ue!==Q&&ue.push(Le),Q.push(Ee))}return Q}function jm(l,d){return d=di(d,l),l=$S(l,d),l==null||delete l[Hr(cr(d))]}function Jw(l,d,m,_){return qc(l,d,m(ua(l,d)),_)}function ef(l,d,m,_){for(var L=l.length,U=_?L:-1;(_?U--:++U<L)&&d(l[U],U,l););return m?lr(l,_?0:U,_?U+1:L):lr(l,_?U+1:0,_?L:U)}function Zw(l,d){var m=l;return m instanceof Ut&&(m=m.value()),pm(d,function(_,L){return L.func.apply(L.thisArg,ii([_],L.args))},m)}function Bm(l,d,m){var _=l.length;if(_<2)return _?ui(l[0]):[];for(var L=-1,U=ve(_);++L<_;)for(var K=l[L],Q=-1;++Q<_;)Q!=L&&(U[L]=jc(U[L]||K,l[Q],d,m));return ui(Qn(U,1),d,m)}function Qw(l,d,m){for(var _=-1,L=l.length,U=d.length,K={};++_<L;){var Q=_<U?d[_]:n;m(K,l[_],Q)}return K}function zm(l){return Mn(l)?l:[]}function qm(l){return typeof l=="function"?l:Ps}function di(l,d){return $t(l)?l:Jm(l,d)?[l]:ES(Xt(l))}var qM=Pt;function fi(l,d,m){var _=l.length;return m=m===n?_:m,!d&&m>=_?l:lr(l,d,m)}var eS=IR||function(l){return yt.clearTimeout(l)};function tS(l,d){if(d)return l.slice();var m=l.length,_=Sw?Sw(m):new l.constructor(m);return l.copy(_),_}function Hm(l){var d=new l.constructor(l.byteLength);return new Bd(d).set(new Bd(l)),d}function HM(l,d){var m=d?Hm(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.byteLength)}
vendor: 5,335 bytes, line 33
33function VM(l){var d=new l.constructor(l.source,Za.exec(l));return d.lastIndex=l.lastIndex,d}function WM(l){return Dc?dn(Dc.call(l)):{}}function nS(l,d){var m=d?Hm(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.length)}function sS(l,d){if(l!==d){var m=l!==n,_=l===null,L=l===l,U=qs(l),K=d!==n,Q=d===null,ue=d===d,Ae=qs(d);if(!Q&&!Ae&&!U&&l>d||U&&K&&ue&&!Q&&!Ae||_&&K&&ue||!m&&ue||!L)return 1;if(!_&&!U&&!Ae&&l<d||Ae&&m&&L&&!_&&!U||Q&&m&&L||!K&&L||!ue)return-1}return 0}function GM(l,d,m){for(var _=-1,L=l.criteria,U=d.criteria,K=L.length,Q=m.length;++_<K;){var ue=sS(L[_],U[_]);if(ue){if(_>=Q)return ue;var Ae=m[_];return ue*(Ae=="desc"?-1:1)}}return l.index-d.index}function rS(l,d,m,_){for(var L=-1,U=l.length,K=m.length,Q=-1,ue=d.length,Ae=zn(U-K,0),Ee=ve(ue+Ae),Le=!_;++Q<ue;)Ee[Q]=d[Q];for(;++L<K;)(Le||L<U)&&(Ee[m[L]]=l[L]);for(;Ae--;)Ee[Q++]=l[L++];return Ee}function oS(l,d,m,_){for(var L=-1,U=l.length,K=-1,Q=m.length,ue=-1,Ae=d.length,Ee=zn(U-Q,0),Le=ve(Ee+Ae),He=!_;++L<Ee;)Le[L]=l[L];for(var st=L;++ue<Ae;)Le[st+ue]=d[ue];for(;++K<Q;)(He||L<U)&&(Le[st+m[K]]=l[L++]);return Le}function As(l,d){var m=-1,_=l.length;for(d||(d=ve(_));++m<_;)d[m]=l[m];return d}function qr(l,d,m,_){var L=!m;m||(m={});for(var U=-1,K=d.length;++U<K;){var Q=d[U],ue=_?_(m[Q],l[Q],Q,m,l):n;ue===n&&(ue=l[Q]),L?yo(m,Q,ue):Uc(m,Q,ue)}return m}function KM(l,d){return qr(l,Xm(l),d)}function xM(l,d){return qr(l,bS(l),d)}function tf(l,d){return function(m,_){var L=$t(m)?QO:gM,U=d?d():{};return L(m,l,ht(_,2),U)}}function hl(l){return Pt(function(d,m){var _=-1,L=m.length,U=L>1?m[L-1]:n,K=L>2?m[2]:n;for(U=l.length>3&&typeof U=="function"?(L--,U):n,K&&_s(m[0],m[1],K)&&(U=L<3?n:U,L=1),d=dn(d);++_<L;){var Q=m[_];Q&&l(d,Q,_,U)}return d})}function iS(l,d){return function(m,_){if(m==null)return m;if(!Es(m))return l(m,_);for(var L=m.length,U=d?L:-1,K=dn(m);(d?U--:++U<L)&&_(K[U],U,K)!==!1;);return m}}function aS(l){return function(d,m,_){for(var L=-1,U=dn(d),K=_(d),Q=K.length;Q--;){var ue=K[l?Q:++L];if(m(U[ue],ue,U)===!1)break}return d}}function YM(l,d,m){var _=d&I,L=Hc(l);function U(){var K=this&&this!==yt&&this instanceof U?L:l;return K.apply(_?m:this,arguments)}return U}function lS(l){return function(d){d=Xt(d);var m=il(d)?yr(d):n,_=m?m[0]:d.charAt(0),L=m?fi(m,1).join(""):d.slice(1);return _[l]()+L}}function pl(l){return function(d){return pm(i3(o3(d).replace(Id,"")),l,"")}}function Hc(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var m=fl(l.prototype),_=l.apply(m,d);return Tn(_)?_:m}}function XM(l,d,m){var _=Hc(l);function L(){for(var U=arguments.length,K=ve(U),Q=U,ue=ml(L);Q--;)K[Q]=arguments[Q];var Ae=U<3&&K[0]!==ue&&K[U-1]!==ue?[]:ai(K,ue);if(U-=Ae.length,U<m)return hS(l,d,nf,L.placeholder,n,K,Ae,n,n,m-U);var Ee=this&&this!==yt&&this instanceof L?_:l;return js(Ee,this,K)}return L}function cS(l){return function(d,m,_){var L=dn(d);if(!Es(d)){var U=ht(m,3);d=Gn(d),m=function(Q){return U(L[Q],Q,L)}}var K=l(d,m,_);return K>-1?L[U?d[K]:K]:n}}function uS(l){return wo(function(d){var m=d.length,_=m,L=ir.prototype.thru;for(l&&d.reverse();_--;){var U=d[_];if(typeof U!="function")throw new or(i);if(L&&!K&&af(U)=="wrapper")var K=new ir([],!0)}for(_=K?_:m;++_<m;){U=d[_];var Q=af(U),ue=Q=="wrapper"?xm(U):n;ue&&Zm(ue[0])&&ue[1]==(N|P|R|Y)&&!ue[4].length&&ue[9]==1?K=K[af(ue[0])].apply(K,ue[3]):K=U.length==1&&Zm(U)?K[Q]():K.thru(U)}return function(){var Ae=arguments,Ee=Ae[0];if(K&&Ae.length==1&&$t(Ee))return K.plant(Ee).value();for(var Le=0,He=m?d[Le].apply(this,Ae):Ee;++Le<m;)He=d[Le].call(this,He);return He}})}function nf(l,d,m,_,L,U,K,Q,ue,Ae){var Ee=d&N,Le=d&I,He=d&$,st=d&(P|A),mt=d&H,Et=He?n:Hc(l);function gt(){for(var Rt=arguments.length,qt=ve(Rt),Hs=Rt;Hs--;)qt[Hs]=arguments[Hs];if(st)var ws=ml(gt),Vs=lR(qt,ws);if(_&&(qt=rS(qt,_,L,st)),U&&(qt=oS(qt,U,K,st)),Rt-=Vs,st&&Rt<Ae){var Nn=ai(qt,ws);return hS(l,d,nf,gt.placeholder,m,qt,Nn,Q,ue,Ae-Rt)}var Sr=Le?m:this,Co=He?Sr[l]:l;return Rt=qt.length,Q?qt=g7(qt,Q):mt&&Rt>1&&qt.reverse(),Ee&&ue<Rt&&(qt.length=ue),this&&this!==yt&&this instanceof gt&&(Co=Et||Hc(Co)),Co.apply(Sr,qt)}return gt}function dS(l,d){return function(m,_){return $M(m,l,d(_),{})}}function sf(l,d){return function(m,_){var L;if(m===n&&_===n)return d;if(m!==n&&(L=m),_!==n){if(L===n)return _;typeof m=="string"||typeof _=="string"?(m=zs(m),_=zs(_)):(m=Xw(m),_=Xw(_)),L=l(m,_)}return L}}function Vm(l){return wo(function(d){return d=$n(d,Bs(ht())),Pt(function(m){var _=this;return l(d,function(L){return js(L,_,m)})})})}function rf(l,d){d=d===n?" ":zs(d);var m=d.length;if(m<2)return m?Dm(d,l):d;var _=Dm(d,Vd(l/al(d)));return il(d)?fi(yr(_),0,l).join(""):_.slice(0,l)}function JM(l,d,m,_){var L=d&I,U=Hc(l);function K(){for(var Q=-1,ue=arguments.length,Ae=-1,Ee=_.length,Le=ve(Ee+ue),He=this&&this!==yt&&this instanceof K?U:l;++Ae<Ee;)Le[Ae]=_[Ae];for(;ue--;)Le[Ae++]=arguments[++Q];return js(He,L?m:this,Le)}return K}function fS(l){return function(d,m,_){return _&&typeof _!="number"&&_s(d,m,_)&&(m=_=n),d=$o(d),m===n?(m=d,d=0):m=$o(m),_=_===n?d<m?1:-1:$o(_),FM(d,m,_,l)}}
vendor: 11,554 bytes, lines 33-35
33function of(l){return function(d,m){return typeof d=="string"&&typeof m=="string"||(d=ur(d),m=ur(m)),l(d,m)}}function hS(l,d,m,_,L,U,K,Q,ue,Ae){var Ee=d&P,Le=Ee?K:n,He=Ee?n:K,st=Ee?U:n,mt=Ee?n:U;d|=Ee?R:B,d&=~(Ee?B:R),d&k||(d&=-4);var Et=[l,d,L,st,Le,mt,He,Q,ue,Ae],gt=m.apply(n,Et);return Zm(l)&&CS(gt,Et),gt.placeholder=_,TS(gt,l,d)}function Wm(l){var d=Bn[l];return function(m,_){if(m=ur(m),_=_==null?0:ls(At(_),292),_&&Tw(m)){var L=(Xt(m)+"e").split("e"),U=d(L[0]+"e"+(+L[1]+_));return L=(Xt(U)+"e").split("e"),+(L[0]+"e"+(+L[1]-_))}return d(m)}}var ZM=ul&&1/Md(new ul([,-0]))[1]==ze?function(l){return new ul(l)}:hg;function pS(l){return function(d){var m=cs(d);return m==ee?wm(d):m==fe?mR(d):aR(d,l(d))}}function _o(l,d,m,_,L,U,K,Q){var ue=d&$;if(!ue&&typeof l!="function")throw new or(i);var Ae=_?_.length:0;if(Ae||(d&=-97,_=L=n),K=K===n?K:zn(At(K),0),Q=Q===n?Q:At(Q),Ae-=L?L.length:0,d&B){var Ee=_,Le=L;_=L=n}var He=ue?n:xm(l),st=[l,d,m,_,L,Ee,Le,U,K,Q];if(He&&h7(st,He),l=st[0],d=st[1],m=st[2],_=st[3],L=st[4],Q=st[9]=st[9]===n?ue?0:l.length:zn(st[9]-Ae,0),!Q&&d&(P|A)&&(d&=-25),!d||d==I)var mt=YM(l,d,m);else d==P||d==A?mt=XM(l,d,Q):(d==R||d==(I|R))&&!L.length?mt=JM(l,d,m,_):mt=nf.apply(n,st);var Et=He?xw:CS;return TS(Et(mt,st),l,d)}function mS(l,d,m,_){return l===n||wr(l,cl[m])&&!tn.call(_,m)?d:l}function gS(l,d,m,_,L,U){return Tn(l)&&Tn(d)&&(U.set(d,l),Zd(l,d,n,gS,U),U.delete(d)),l}function QM(l){return Gc(l)?n:l}function vS(l,d,m,_,L,U){var K=m&S,Q=l.length,ue=d.length;if(Q!=ue&&!(K&&ue>Q))return!1;var Ae=U.get(l),Ee=U.get(d);if(Ae&&Ee)return Ae==d&&Ee==l;var Le=-1,He=!0,st=m&C?new la:n;for(U.set(l,d),U.set(d,l);++Le<Q;){var mt=l[Le],Et=d[Le];if(_)var gt=K?_(Et,mt,Le,d,l,U):_(mt,Et,Le,l,d,U);if(gt!==n){if(gt)continue;He=!1;break}if(st){if(!mm(d,function(Rt,qt){if(!Oc(st,qt)&&(mt===Rt||L(mt,Rt,m,_,U)))return st.push(qt)})){He=!1;break}}else if(!(mt===Et||L(mt,Et,m,_,U))){He=!1;break}}return U.delete(l),U.delete(d),He}function e7(l,d,m,_,L,U,K){switch(m){case ut:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case rt:return!(l.byteLength!=d.byteLength||!U(new Bd(l),new Bd(d)));case Me:case Fe:case pe:return wr(+l,+d);case pt:return l.name==d.name&&l.message==d.message;case te:case je:return l==d+"";case ee:var Q=wm;case fe:var ue=_&S;if(Q||(Q=Md),l.size!=d.size&&!ue)return!1;var Ae=K.get(l);if(Ae)return Ae==d;_|=C,K.set(l,d);var Ee=vS(Q(l),Q(d),_,L,U,K);return K.delete(l),Ee;case ke:if(Dc)return Dc.call(l)==Dc.call(d)}return!1}function t7(l,d,m,_,L,U){var K=m&S,Q=Gm(l),ue=Q.length,Ae=Gm(d),Ee=Ae.length;if(ue!=Ee&&!K)return!1;for(var Le=ue;Le--;){var He=Q[Le];if(!(K?He in d:tn.call(d,He)))return!1}var st=U.get(l),mt=U.get(d);if(st&&mt)return st==d&&mt==l;var Et=!0;U.set(l,d),U.set(d,l);for(var gt=K;++Le<ue;){He=Q[Le];var Rt=l[He],qt=d[He];if(_)var Hs=K?_(qt,Rt,He,d,l,U):_(Rt,qt,He,l,d,U);if(!(Hs===n?Rt===qt||L(Rt,qt,m,_,U):Hs)){Et=!1;break}gt||(gt=He=="constructor")}if(Et&&!gt){var ws=l.constructor,Vs=d.constructor;ws!=Vs&&"constructor"in l&&"constructor"in d&&!(typeof ws=="function"&&ws instanceof ws&&typeof Vs=="function"&&Vs instanceof Vs)&&(Et=!1)}return U.delete(l),U.delete(d),Et}function wo(l){return eg(kS(l,n,OS),l+"")}function Gm(l){return Dw(l,Gn,Xm)}function Km(l){return Dw(l,Is,bS)}var xm=Gd?function(l){return Gd.get(l)}:hg;function af(l){for(var d=l.name+"",m=dl[d],_=tn.call(dl,d)?m.length:0;_--;){var L=m[_],U=L.func;if(U==null||U==l)return L.name}return d}function ml(l){var d=tn.call(M,"placeholder")?M:l;return d.placeholder}function ht(){var l=M.iteratee||dg;return l=l===dg?Bw:l,arguments.length?l(arguments[0],arguments[1]):l}function lf(l,d){var m=l.__data__;return c7(d)?m[typeof d=="string"?"string":"hash"]:m.map}function Ym(l){for(var d=Gn(l),m=d.length;m--;){var _=d[m],L=l[_];d[m]=[_,L,wS(L)]}return d}function da(l,d){var m=fR(l,d);return jw(m)?m:n}function n7(l){var d=tn.call(l,ia),m=l[ia];try{l[ia]=n;var _=!0}catch{}var L=Ud.call(l);return _&&(d?l[ia]=m:delete l[ia]),L}var Xm=km?function(l){return l==null?[]:(l=dn(l),oi(km(l),function(d){return $w.call(l,d)}))}:pg,bS=km?function(l){for(var d=[];l;)ii(d,Xm(l)),l=zd(l);return d}:pg,cs=ys;($m&&cs(new $m(new ArrayBuffer(1)))!=ut||Mc&&cs(new Mc)!=ee||Cm&&cs(Cm.resolve())!=j||ul&&cs(new ul)!=fe||Nc&&cs(new Nc)!=me)&&(cs=function(l){var d=ys(l),m=d==be?l.constructor:n,_=m?fa(m):"";if(_)switch(_){case UR:return ut;case jR:return ee;case BR:return j;case zR:return fe;case qR:return me}return d});function s7(l,d,m){for(var _=-1,L=m.length;++_<L;){var U=m[_],K=U.size;switch(U.type){case"drop":l+=K;break;case"dropRight":d-=K;break;case"take":d=ls(d,l+K);break;case"takeRight":l=zn(l,d-K);break}}return{start:l,end:d}}function r7(l){var d=l.match(gc);return d?d[1].split(vc):[]}function yS(l,d,m){d=di(d,l);for(var _=-1,L=d.length,U=!1;++_<L;){var K=Hr(d[_]);if(!(U=l!=null&&m(l,K)))break;l=l[K]}return U||++_!=L?U:(L=l==null?0:l.length,!!L&&mf(L)&&So(K,L)&&($t(l)||ha(l)))}function o7(l){var d=l.length,m=new l.constructor(d);return d&&typeof l[0]=="string"&&tn.call(l,"index")&&(m.index=l.index,m.input=l.input),m}function _S(l){return typeof l.constructor=="function"&&!Vc(l)?fl(zd(l)):{}}function i7(l,d,m){var _=l.constructor;switch(d){case rt:return Hm(l);case Me:case Fe:return new _(+l);case ut:return HM(l,m);case Qt:case Wt:case En:case On:case Cs:case tr:case ln:case Rn:case nr:return nS(l,m);case ee:return new _;case pe:case je:return new _(l);case te:return VM(l);case fe:return new _;case ke:return WM(l)}}function a7(l,d){var m=d.length;if(!m)return l;var _=m-1;return d[_]=(m>1?"& ":"")+d[_],d=d.join(m>2?", ":" "),l.replace(Ur,`{
34/* [wrapped with `+d+`] */
35`)}function l7(l){return $t(l)||ha(l)||!!(Cw&&l&&l[Cw])}function So(l,d){var m=typeof l;return d=d??ot,!!d&&(m=="number"||m!="symbol"&&Cc.test(l))&&l>-1&&l%1==0&&l<d}function _s(l,d,m){if(!Tn(m))return!1;var _=typeof d;return(_=="number"?Es(m)&&So(d,m.length):_=="string"&&d in m)?wr(m[d],l):!1}function Jm(l,d){if($t(l))return!1;var m=typeof l;return m=="number"||m=="symbol"||m=="boolean"||l==null||qs(l)?!0:Ds.test(l)||!hc.test(l)||d!=null&&l in dn(d)}function c7(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function Zm(l){var d=af(l),m=M[d];if(typeof m!="function"||!(d in Ut.prototype))return!1;if(l===m)return!0;var _=xm(m);return!!_&&l===_[0]}function u7(l){return!!ww&&ww in l}var d7=Fd?ko:mg;function Vc(l){var d=l&&l.constructor,m=typeof d=="function"&&d.prototype||cl;return l===m}function wS(l){return l===l&&!Tn(l)}function SS(l,d){return function(m){return m==null?!1:m[l]===d&&(d!==n||l in dn(m))}}function f7(l){var d=hf(l,function(_){return m.size===u&&m.clear(),_}),m=d.cache;return d}function h7(l,d){var m=l[1],_=d[1],L=m|_,U=L<(I|$|N),K=_==N&&m==P||_==N&&m==Y&&l[7].length<=d[8]||_==(N|Y)&&d[7].length<=d[8]&&m==P;if(!(U||K))return l;_&I&&(l[2]=d[2],L|=m&I?0:k);var Q=d[3];if(Q){var ue=l[3];l[3]=ue?rS(ue,Q,d[4]):Q,l[4]=ue?ai(l[3],f):d[4]}return Q=d[5],Q&&(ue=l[5],l[5]=ue?oS(ue,Q,d[6]):Q,l[6]=ue?ai(l[5],f):d[6]),Q=d[7],Q&&(l[7]=Q),_&N&&(l[8]=l[8]==null?d[8]:ls(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=L,l}function p7(l){var d=[];if(l!=null)for(var m in dn(l))d.push(m);return d}function m7(l){return Ud.call(l)}function kS(l,d,m){return d=zn(d===n?l.length-1:d,0),function(){for(var _=arguments,L=-1,U=zn(_.length-d,0),K=ve(U);++L<U;)K[L]=_[d+L];L=-1;for(var Q=ve(d+1);++L<d;)Q[L]=_[L];return Q[d]=m(K),js(l,this,Q)}}function $S(l,d){return d.length<2?l:ua(l,lr(d,0,-1))}function g7(l,d){for(var m=l.length,_=ls(d.length,m),L=As(l);_--;){var U=d[_];l[_]=So(U,m)?L[U]:n}return l}function Qm(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var CS=AS(xw),Wc=LR||function(l,d){return yt.setTimeout(l,d)},eg=AS(jM);function TS(l,d,m){var _=d+"";return eg(l,a7(_,v7(r7(_),m)))}function AS(l){var d=0,m=0;return function(){var _=NR(),L=Pe-(_-m);if(m=_,L>0){if(++d>=le)return arguments[0]}else d=0;return l.apply(n,arguments)}}function cf(l,d){var m=-1,_=l.length,L=_-1;for(d=d===n?_:d;++m<d;){var U=Fm(m,L),K=l[U];l[U]=l[m],l[m]=K}return l.length=d,l}var ES=f7(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(pc,function(m,_,L,U){d.push(L?U.replace(_c,"$1"):_||m)}),d});function Hr(l){if(typeof l=="string"||qs(l))return l;var d=l+"";return d=="0"&&1/l==-1/0?"-0":d}function fa(l){if(l!=null){try{return Dd.call(l)}catch{}try{return l+""}catch{}}return""}function v7(l,d){return rr(_t,function(m){var _="_."+m[0];d&m[1]&&!Od(l,_)&&l.push(_)}),l.sort()}function IS(l){if(l instanceof Ut)return l.clone();var d=new ir(l.__wrapped__,l.__chain__);return d.__actions__=As(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function b7(l,d,m){(m?_s(l,d,m):d===n)?d=1:d=zn(At(d),0);var _=l==null?0:l.length;if(!_||d<1)return[];for(var L=0,U=0,K=ve(Vd(_/d));L<_;)K[U++]=lr(l,L,L+=d);return K}function y7(l){for(var d=-1,m=l==null?0:l.length,_=0,L=[];++d<m;){var U=l[d];U&&(L[_++]=U)}return L}function _7(){var l=arguments.length;if(!l)return[];for(var d=ve(l-1),m=arguments[0],_=l;_--;)d[_-1]=arguments[_];return ii($t(m)?As(m):[m],Qn(d,1))}var w7=Pt(function(l,d){return Mn(l)?jc(l,Qn(d,1,Mn,!0)):[]}),S7=Pt(function(l,d){var m=cr(d);return Mn(m)&&(m=n),Mn(l)?jc(l,Qn(d,1,Mn,!0),ht(m,2)):[]}),k7=Pt(function(l,d){var m=cr(d);return Mn(m)&&(m=n),Mn(l)?jc(l,Qn(d,1,Mn,!0),n,m):[]});function $7(l,d,m){var _=l==null?0:l.length;return _?(d=m||d===n?1:At(d),lr(l,d<0?0:d,_)):[]}function C7(l,d,m){var _=l==null?0:l.length;return _?(d=m||d===n?1:At(d),d=_-d,lr(l,0,d<0?0:d)):[]}function T7(l,d){return l&&l.length?ef(l,ht(d,3),!0,!0):[]}function A7(l,d){return l&&l.length?ef(l,ht(d,3),!0):[]}function E7(l,d,m,_){var L=l==null?0:l.length;return L?(m&&typeof m!="number"&&_s(l,d,m)&&(m=0,_=L),_M(l,d,m,_)):[]}function PS(l,d,m){var _=l==null?0:l.length;if(!_)return-1;var L=m==null?0:At(m);return L<0&&(L=zn(_+L,0)),Rd(l,ht(d,3),L)}function LS(l,d,m){var _=l==null?0:l.length;if(!_)return-1;var L=_-1;return m!==n&&(L=At(m),L=m<0?zn(_+L,0):ls(L,_-1)),Rd(l,ht(d,3),L,!0)}function OS(l){var d=l==null?0:l.length;return d?Qn(l,1):[]}function I7(l){var d=l==null?0:l.length;return d?Qn(l,ze):[]}function P7(l,d){var m=l==null?0:l.length;return m?(d=d===n?1:At(d),Qn(l,d)):[]}function L7(l){for(var d=-1,m=l==null?0:l.length,_={};++d<m;){var L=l[d];_[L[0]]=L[1]}return _}function RS(l){return l&&l.length?l[0]:n}function O7(l,d,m){var _=l==null?0:l.length;if(!_)return-1;var L=m==null?0:At(m);return L<0&&(L=zn(_+L,0)),ol(l,d,L)}function R7(l){var d=l==null?0:l.length;return d?lr(l,0,-1):[]}var M7=Pt(function(l){var d=$n(l,zm);return d.length&&d[0]===l[0]?Lm(d):[]}),N7=Pt(function(l){var d=cr(l),m=$n(l,zm);return d===cr(m)?d=n:m.pop(),m.length&&m[0]===l[0]?Lm(m,ht(d,2)):[]}),F7=Pt(function(l){var d=cr(l),m=$n(l,zm);return d=typeof d=="function"?d:n,d&&m.pop(),m.length&&m[0]===l[0]?Lm(m,n,d):[]});function D7(l,d){return l==null?"":RR.call(l,d)}function cr(l){var d=l==null?0:l.length;return d?l[d-1]:n}function U7(l,d,m){var _=l==null?0:l.length;if(!_)return-1;var L=_;return m!==n&&(L=At(m),L=L<0?zn(_+L,0):ls(L,_-1)),d===d?vR(l,d,L):Rd(l,hw,L,!0)}function j7(l,d){return l&&l.length?Vw(l,At(d)):n}var B7=Pt(MS);function MS(l,d){return l&&l.length&&d&&d.length?Nm(l,d):l}function z7(l,d,m){return l&&l.length&&d&&d.length?Nm(l,d,ht(m,2)):l}function q7(l,d,m){return l&&l.length&&d&&d.length?Nm(l,d,n,m):l}var H7=wo(function(l,d){var m=l==null?0:l.length,_=Am(l,d);return Kw(l,$n(d,function(L){return So(L,m)?+L:L}).sort(sS)),_});function V7(l,d){var m=[];
vendor: 28,963 bytes, lines 35-52
35if(!(l&&l.length))return m;var _=-1,L=[],U=l.length;for(d=ht(d,3);++_<U;){var K=l[_];d(K,_,l)&&(m.push(K),L.push(_))}return Kw(l,L),m}function tg(l){return l==null?l:DR.call(l)}function W7(l,d,m){var _=l==null?0:l.length;return _?(m&&typeof m!="number"&&_s(l,d,m)?(d=0,m=_):(d=d==null?0:At(d),m=m===n?_:At(m)),lr(l,d,m)):[]}function G7(l,d){return Qd(l,d)}function K7(l,d,m){return Um(l,d,ht(m,2))}function x7(l,d){var m=l==null?0:l.length;if(m){var _=Qd(l,d);if(_<m&&wr(l[_],d))return _}return-1}function Y7(l,d){return Qd(l,d,!0)}function X7(l,d,m){return Um(l,d,ht(m,2),!0)}function J7(l,d){var m=l==null?0:l.length;if(m){var _=Qd(l,d,!0)-1;if(wr(l[_],d))return _}return-1}function Z7(l){return l&&l.length?Yw(l):[]}function Q7(l,d){return l&&l.length?Yw(l,ht(d,2)):[]}function eN(l){var d=l==null?0:l.length;return d?lr(l,1,d):[]}function tN(l,d,m){return l&&l.length?(d=m||d===n?1:At(d),lr(l,0,d<0?0:d)):[]}function nN(l,d,m){var _=l==null?0:l.length;return _?(d=m||d===n?1:At(d),d=_-d,lr(l,d<0?0:d,_)):[]}function sN(l,d){return l&&l.length?ef(l,ht(d,3),!1,!0):[]}function rN(l,d){return l&&l.length?ef(l,ht(d,3)):[]}var oN=Pt(function(l){return ui(Qn(l,1,Mn,!0))}),iN=Pt(function(l){var d=cr(l);return Mn(d)&&(d=n),ui(Qn(l,1,Mn,!0),ht(d,2))}),aN=Pt(function(l){var d=cr(l);return d=typeof d=="function"?d:n,ui(Qn(l,1,Mn,!0),n,d)});function lN(l){return l&&l.length?ui(l):[]}function cN(l,d){return l&&l.length?ui(l,ht(d,2)):[]}function uN(l,d){return d=typeof d=="function"?d:n,l&&l.length?ui(l,n,d):[]}function ng(l){if(!(l&&l.length))return[];var d=0;return l=oi(l,function(m){if(Mn(m))return d=zn(m.length,d),!0}),ym(d,function(m){return $n(l,gm(m))})}function NS(l,d){if(!(l&&l.length))return[];var m=ng(l);return d==null?m:$n(m,function(_){return js(d,n,_)})}var dN=Pt(function(l,d){return Mn(l)?jc(l,d):[]}),fN=Pt(function(l){return Bm(oi(l,Mn))}),hN=Pt(function(l){var d=cr(l);return Mn(d)&&(d=n),Bm(oi(l,Mn),ht(d,2))}),pN=Pt(function(l){var d=cr(l);return d=typeof d=="function"?d:n,Bm(oi(l,Mn),n,d)}),mN=Pt(ng);function gN(l,d){return Qw(l||[],d||[],Uc)}function vN(l,d){return Qw(l||[],d||[],qc)}var bN=Pt(function(l){var d=l.length,m=d>1?l[d-1]:n;return m=typeof m=="function"?(l.pop(),m):n,NS(l,m)});function FS(l){var d=M(l);return d.__chain__=!0,d}function yN(l,d){return d(l),l}function uf(l,d){return d(l)}var _N=wo(function(l){var d=l.length,m=d?l[0]:0,_=this.__wrapped__,L=function(U){return Am(U,l)};return d>1||this.__actions__.length||!(_ instanceof Ut)||!So(m)?this.thru(L):(_=_.slice(m,+m+(d?1:0)),_.__actions__.push({func:uf,args:[L],thisArg:n}),new ir(_,this.__chain__).thru(function(U){return d&&!U.length&&U.push(n),U}))});function wN(){return FS(this)}function SN(){return new ir(this.value(),this.__chain__)}function kN(){this.__values__===n&&(this.__values__=XS(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function $N(){return this}function CN(l){for(var d,m=this;m instanceof xd;){var _=IS(m);_.__index__=0,_.__values__=n,d?L.__wrapped__=_:d=_;var L=_;m=m.__wrapped__}return L.__wrapped__=l,d}function TN(){var l=this.__wrapped__;if(l instanceof Ut){var d=l;return this.__actions__.length&&(d=new Ut(this)),d=d.reverse(),d.__actions__.push({func:uf,args:[tg],thisArg:n}),new ir(d,this.__chain__)}return this.thru(tg)}function AN(){return Zw(this.__wrapped__,this.__actions__)}var EN=tf(function(l,d,m){tn.call(l,m)?++l[m]:yo(l,m,1)});function IN(l,d,m){var _=$t(l)?dw:yM;return m&&_s(l,d,m)&&(d=n),_(l,ht(d,3))}function PN(l,d){var m=$t(l)?oi:Nw;return m(l,ht(d,3))}var LN=cS(PS),ON=cS(LS);function RN(l,d){return Qn(df(l,d),1)}function MN(l,d){return Qn(df(l,d),ze)}function NN(l,d,m){return m=m===n?1:At(m),Qn(df(l,d),m)}function DS(l,d){var m=$t(l)?rr:ci;return m(l,ht(d,3))}function US(l,d){var m=$t(l)?eR:Mw;return m(l,ht(d,3))}var FN=tf(function(l,d,m){tn.call(l,m)?l[m].push(d):yo(l,m,[d])});function DN(l,d,m,_){l=Es(l)?l:vl(l),m=m&&!_?At(m):0;var L=l.length;return m<0&&(m=zn(L+m,0)),gf(l)?m<=L&&l.indexOf(d,m)>-1:!!L&&ol(l,d,m)>-1}var UN=Pt(function(l,d,m){var _=-1,L=typeof d=="function",U=Es(l)?ve(l.length):[];return ci(l,function(K){U[++_]=L?js(d,K,m):Bc(K,d,m)}),U}),jN=tf(function(l,d,m){yo(l,m,d)});function df(l,d){var m=$t(l)?$n:zw;return m(l,ht(d,3))}function BN(l,d,m,_){return l==null?[]:($t(d)||(d=d==null?[]:[d]),m=_?n:m,$t(m)||(m=m==null?[]:[m]),Ww(l,d,m))}var zN=tf(function(l,d,m){l[m?0:1].push(d)},function(){return[[],[]]});function qN(l,d,m){var _=$t(l)?pm:mw,L=arguments.length<3;return _(l,ht(d,4),m,L,ci)}function HN(l,d,m){var _=$t(l)?tR:mw,L=arguments.length<3;return _(l,ht(d,4),m,L,Mw)}function VN(l,d){var m=$t(l)?oi:Nw;return m(l,pf(ht(d,3)))}function WN(l){var d=$t(l)?Pw:DM;return d(l)}function GN(l,d,m){(m?_s(l,d,m):d===n)?d=1:d=At(d);var _=$t(l)?pM:UM;return _(l,d)}function KN(l){var d=$t(l)?mM:BM;return d(l)}function xN(l){if(l==null)return 0;if(Es(l))return gf(l)?al(l):l.length;var d=cs(l);return d==ee||d==fe?l.size:Rm(l).length}function YN(l,d,m){var _=$t(l)?mm:zM;return m&&_s(l,d,m)&&(d=n),_(l,ht(d,3))}var XN=Pt(function(l,d){if(l==null)return[];var m=d.length;return m>1&&_s(l,d[0],d[1])?d=[]:m>2&&_s(d[0],d[1],d[2])&&(d=[d[0]]),Ww(l,Qn(d,1),[])}),ff=PR||function(){return yt.Date.now()};function JN(l,d){if(typeof d!="function")throw new or(i);return l=At(l),function(){if(--l<1)return d.apply(this,arguments)}}function jS(l,d,m){return d=m?n:d,d=l&&d==null?l.length:d,_o(l,N,n,n,n,n,d)}function BS(l,d){var m;if(typeof d!="function")throw new or(i);return l=At(l),function(){return--l>0&&(m=d.apply(this,arguments)),l<=1&&(d=n),m}}var sg=Pt(function(l,d,m){var _=I;if(m.length){var L=ai(m,ml(sg));_|=R}return _o(l,_,d,m,L)}),zS=Pt(function(l,d,m){var _=I|$;if(m.length){var L=ai(m,ml(zS));_|=R}return _o(d,_,l,m,L)});function qS(l,d,m){d=m?n:d;var _=_o(l,P,n,n,n,n,n,d);return _.placeholder=qS.placeholder,_}function HS(l,d,m){d=m?n:d;var _=_o(l,A,n,n,n,n,n,d);return _.placeholder=HS.placeholder,_}function VS(l,d,m){var _,L,U,K,Q,ue,Ae=0,Ee=!1,Le=!1,He=!0;if(typeof l!="function")throw new or(i);d=ur(d)||0,Tn(m)&&(Ee=!!m.leading,Le="maxWait"in m,U=Le?zn(ur(m.maxWait)||0,d):U,He="trailing"in m?!!m.trailing:He);function st(Nn){var Sr=_,Co=L;return _=L=n,Ae=Nn,K=l.apply(Co,Sr),K}function mt(Nn){return Ae=Nn,Q=Wc(Rt,d),Ee?st(Nn):K}function Et(Nn){var Sr=Nn-ue,Co=Nn-Ae,c3=d-Sr;return Le?ls(c3,U-Co):c3}function gt(Nn){var Sr=Nn-ue,Co=Nn-Ae;return ue===n||Sr>=d||Sr<0||Le&&Co>=U}function Rt(){var Nn=ff();if(gt(Nn))return qt(Nn);Q=Wc(Rt,Et(Nn))}function qt(Nn){return Q=n,He&&_?st(Nn):(_=L=n,K)}function Hs(){Q!==n&&eS(Q),Ae=0,_=ue=L=Q=n}function ws(){return Q===n?K:qt(ff())}function Vs(){var Nn=ff(),Sr=gt(Nn);if(_=arguments,L=this,ue=Nn,Sr){if(Q===n)return mt(ue);if(Le)return eS(Q),Q=Wc(Rt,d),st(ue)}return Q===n&&(Q=Wc(Rt,d)),K}return Vs.cancel=Hs,Vs.flush=ws,Vs}var ZN=Pt(function(l,d){return Rw(l,1,d)}),QN=Pt(function(l,d,m){return Rw(l,ur(d)||0,m)});function eF(l){return _o(l,H)}function hf(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new or(i);var m=function(){var _=arguments,L=d?d.apply(this,_):_[0],U=m.cache;if(U.has(L))return U.get(L);var K=l.apply(this,_);return m.cache=U.set(L,K)||U,K};return m.cache=new(hf.Cache||bo),m}hf.Cache=bo;function pf(l){if(typeof l!="function")throw new or(i);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function tF(l){return BS(2,l)}var nF=qM(function(l,d){d=d.length==1&&$t(d[0])?$n(d[0],Bs(ht())):$n(Qn(d,1),Bs(ht()));var m=d.length;return Pt(function(_){for(var L=-1,U=ls(_.length,m);++L<U;)_[L]=d[L].call(this,_[L]);return js(l,this,_)})}),rg=Pt(function(l,d){var m=ai(d,ml(rg));return _o(l,R,n,d,m)}),WS=Pt(function(l,d){var m=ai(d,ml(WS));return _o(l,B,n,d,m)}),sF=wo(function(l,d){return _o(l,Y,n,n,n,d)});function rF(l,d){if(typeof l!="function")throw new or(i);return d=d===n?d:At(d),Pt(l,d)}function oF(l,d){if(typeof l!="function")throw new or(i);return d=d==null?0:zn(At(d),0),Pt(function(m){var _=m[d],L=fi(m,0,d);return _&&ii(L,_),js(l,this,L)})}function iF(l,d,m){var _=!0,L=!0;if(typeof l!="function")throw new or(i);return Tn(m)&&(_="leading"in m?!!m.leading:_,L="trailing"in m?!!m.trailing:L),VS(l,d,{leading:_,maxWait:d,trailing:L})}function aF(l){return jS(l,1)}function lF(l,d){return rg(qm(d),l)}function cF(){if(!arguments.length)return[];var l=arguments[0];return $t(l)?l:[l]}function uF(l){return ar(l,y)}function dF(l,d){return d=typeof d=="function"?d:n,ar(l,y,d)}function fF(l){return ar(l,h|y)}function hF(l,d){return d=typeof d=="function"?d:n,ar(l,h|y,d)}function pF(l,d){return d==null||Ow(l,d,Gn(d))}function wr(l,d){return l===d||l!==l&&d!==d}var mF=of(Pm),gF=of(function(l,d){return l>=d}),ha=Uw(function(){return arguments}())?Uw:function(l){return In(l)&&tn.call(l,"callee")&&!$w.call(l,"callee")},$t=ve.isArray,vF=rl?Bs(rl):CM;function Es(l){return l!=null&&mf(l.length)&&!ko(l)}function Mn(l){return In(l)&&Es(l)}function bF(l){return l===!0||l===!1||In(l)&&ys(l)==Me}var hi=OR||mg,yF=Lc?Bs(Lc):TM;function _F(l){return In(l)&&l.nodeType===1&&!Gc(l)}function wF(l){if(l==null)return!0;if(Es(l)&&($t(l)||typeof l=="string"||typeof l.splice=="function"||hi(l)||gl(l)||ha(l)))return!l.length;var d=cs(l);if(d==ee||d==fe)return!l.size;if(Vc(l))return!Rm(l).length;for(var m in l)if(tn.call(l,m))return!1;return!0}function SF(l,d){return zc(l,d)}function kF(l,d,m){m=typeof m=="function"?m:n;var _=m?m(l,d):n;return _===n?zc(l,d,n,m):!!_}function og(l){if(!In(l))return!1;var d=ys(l);return d==pt||d==Ue||typeof l.message=="string"&&typeof l.name=="string"&&!Gc(l)}function $F(l){return typeof l=="number"&&Tw(l)}function ko(l){if(!Tn(l))return!1;var d=ys(l);return d==W||d==G||d==_e||d==q}function GS(l){return typeof l=="number"&&l==At(l)}function mf(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=ot}function Tn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function In(l){return l!=null&&typeof l=="object"}var KS=aw?Bs(aw):EM;function CF(l,d){return l===d||Om(l,d,Ym(d))}function TF(l,d,m){return m=typeof m=="function"?m:n,Om(l,d,Ym(d),m)}function AF(l){return xS(l)&&l!=+l}function EF(l){if(d7(l))throw new St(o);return jw(l)}function IF(l){return l===null}function PF(l){return l==null}function xS(l){return typeof l=="number"||In(l)&&ys(l)==pe}function Gc(l){if(!In(l)||ys(l)!=be)return!1;var d=zd(l);if(d===null)return!0;var m=tn.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&Dd.call(m)==TR}var ig=lw?Bs(lw):IM;function LF(l){return GS(l)&&l>=-9007199254740991&&l<=ot}var YS=cw?Bs(cw):PM;function gf(l){return typeof l=="string"||!$t(l)&&In(l)&&ys(l)==je}function qs(l){return typeof l=="symbol"||In(l)&&ys(l)==ke}var gl=uw?Bs(uw):LM;function OF(l){return l===n}function RF(l){return In(l)&&cs(l)==me}function MF(l){return In(l)&&ys(l)==xe}var NF=of(Mm),FF=of(function(l,d){return l<=d});function XS(l){if(!l)return[];if(Es(l))return gf(l)?yr(l):As(l);if(Rc&&l[Rc])return pR(l[Rc]());var d=cs(l),m=d==ee?wm:d==fe?Md:vl;return m(l)}function $o(l){if(!l)return l===0?l:0;if(l=ur(l),l===ze||l===-1/0){var d=l<0?-1:1;return d*Ct}return l===l?l:0}function At(l){var d=$o(l),m=d%1;return d===d?m?d-m:d:0}function JS(l){return l?ca(At(l),0,bt):0}function ur(l){if(typeof l=="number")return l;if(qs(l))return dt;if(Tn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Tn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=gw(l);var m=Sc.test(l);return m||$c.test(l)?Dt(l.slice(2),m?2:8):wc.test(l)?dt:+l}function ZS(l){return qr(l,Is(l))}function DF(l){return l?ca(At(l),-9007199254740991,ot):l===0?l:0}function Xt(l){return l==null?"":zs(l)}var UF=hl(function(l,d){if(Vc(d)||Es(d)){qr(d,Gn(d),l);return}for(var m in d)tn.call(d,m)&&Uc(l,m,d[m])}),QS=hl(function(l,d){qr(d,Is(d),l)}),vf=hl(function(l,d,m,_){qr(d,Is(d),l,_)}),jF=hl(function(l,d,m,_){qr(d,Gn(d),l,_)}),BF=wo(Am);function zF(l,d){var m=fl(l);return d==null?m:Lw(m,d)}var qF=Pt(function(l,d){l=dn(l);var m=-1,_=d.length,L=_>2?d[2]:n;for(L&&_s(d[0],d[1],L)&&(_=1);++m<_;)for(var U=d[m],K=Is(U),Q=-1,ue=K.length;++Q<ue;){var Ae=K[Q],Ee=l[Ae];(Ee===n||wr(Ee,cl[Ae])&&!tn.call(l,Ae))&&(l[Ae]=U[Ae])}return l}),HF=Pt(function(l){return l.push(n,gS),js(e3,n,l)});function VF(l,d){return fw(l,ht(d,3),zr)}function WF(l,d){return fw(l,ht(d,3),Im)}function GF(l,d){return l==null?l:Em(l,ht(d,3),Is)}function KF(l,d){return l==null?l:Fw(l,ht(d,3),Is)}function xF(l,d){return l&&zr(l,ht(d,3))}function YF(l,d){return l&&Im(l,ht(d,3))}function XF(l){return l==null?[]:Jd(l,Gn(l))}function JF(l){return l==null?[]:Jd(l,Is(l))}function ag(l,d,m){var _=l==null?n:ua(l,d);return _===n?m:_}function ZF(l,d){return l!=null&&yS(l,d,wM)}function lg(l,d){return l!=null&&yS(l,d,SM)}var QF=dS(function(l,d,m){d!=null&&typeof d.toString!="function"&&(d=Ud.call(d)),l[d]=m},ug(Ps)),e9=dS(function(l,d,m){d!=null&&typeof d.toString!="function"&&(d=Ud.call(d)),tn.call(l,d)?l[d].push(m):l[d]=[m]},ht),t9=Pt(Bc);function Gn(l){return Es(l)?Iw(l):Rm(l)}function Is(l){return Es(l)?Iw(l,!0):OM(l)}function n9(l,d){var m={};return d=ht(d,3),zr(l,function(_,L,U){yo(m,d(_,L,U),_)}),m}function s9(l,d){var m={};return d=ht(d,3),zr(l,function(_,L,U){yo(m,L,d(_,L,U))}),m}var r9=hl(function(l,d,m){Zd(l,d,m)}),e3=hl(function(l,d,m,_){Zd(l,d,m,_)}),o9=wo(function(l,d){var m={};if(l==null)return m;var _=!1;d=$n(d,function(U){return U=di(U,l),_||(_=U.length>1),U}),qr(l,Km(l),m),_&&(m=ar(m,h|v|y,QM));for(var L=d.length;L--;)jm(m,d[L]);return m});function i9(l,d){return t3(l,pf(ht(d)))}var a9=wo(function(l,d){return l==null?{}:MM(l,d)});function t3(l,d){if(l==null)return{};var m=$n(Km(l),function(_){return[_]});return d=ht(d),Gw(l,m,function(_,L){return d(_,L[0])})}function l9(l,d,m){d=di(d,l);var _=-1,L=d.length;for(L||(L=1,l=n);++_<L;){var U=l==null?n:l[Hr(d[_])];U===n&&(_=L,U=m),l=ko(U)?U.call(l):U}return l}function c9(l,d,m){return l==null?l:qc(l,d,m)}function u9(l,d,m,_){return _=typeof _=="function"?_:n,l==null?l:qc(l,d,m,_)}var n3=pS(Gn),s3=pS(Is);function d9(l,d,m){var _=$t(l),L=_||hi(l)||gl(l);if(d=ht(d,4),m==null){var U=l&&l.constructor;L?m=_?new U:[]:Tn(l)?m=ko(U)?fl(zd(l)):{}:m={}}return(L?rr:zr)(l,function(K,Q,ue){return d(m,K,Q,ue)}),m}function f9(l,d){return l==null?!0:jm(l,d)}function h9(l,d,m){return l==null?l:Jw(l,d,qm(m))}function p9(l,d,m,_){return _=typeof _=="function"?_:n,l==null?l:Jw(l,d,qm(m),_)}function vl(l){return l==null?[]:_m(l,Gn(l))}function m9(l){return l==null?[]:_m(l,Is(l))}function g9(l,d,m){return m===n&&(m=d,d=n),m!==n&&(m=ur(m),m=m===m?m:0),d!==n&&(d=ur(d),d=d===d?d:0),ca(ur(l),d,m)}function v9(l,d,m){return d=$o(d),m===n?(m=d,d=0):m=$o(m),l=ur(l),kM(l,d,m)}function b9(l,d,m){if(m&&typeof m!="boolean"&&_s(l,d,m)&&(d=m=n),m===n&&(typeof d=="boolean"?(m=d,d=n):typeof l=="boolean"&&(m=l,l=n)),l===n&&d===n?(l=0,d=1):(l=$o(l),d===n?(d=l,l=0):d=$o(d)),l>d){var _=l;l=d,d=_}if(m||l%1||d%1){var L=Aw();return ls(l+L*(d-l+tt("1e-"+((L+"").length-1))),d)}return Fm(l,d)}var y9=pl(function(l,d,m){return d=d.toLowerCase(),l+(m?r3(d):d)});function r3(l){return cg(Xt(l).toLowerCase())}function o3(l){return l=Xt(l),l&&l.replace(sa,cR).replace(po,"")}function _9(l,d,m){l=Xt(l),d=zs(d);var _=l.length;m=m===n?_:ca(At(m),0,_);var L=m;return m-=d.length,m>=0&&l.slice(m,L)==d}function w9(l){return l=Xt(l),l&&uc.test(l)?l.replace(Ya,uR):l}function S9(l){return l=Xt(l),l&&mc.test(l)?l.replace(ta,"\\$&"):l}var k9=pl(function(l,d,m){return l+(m?"-":"")+d.toLowerCase()}),$9=pl(function(l,d,m){return l+(m?" ":"")+d.toLowerCase()}),C9=lS("toLowerCase");function T9(l,d,m){l=Xt(l),d=At(d);var _=d?al(l):0;if(!d||_>=d)return l;var L=(d-_)/2;return rf(Wd(L),m)+l+rf(Vd(L),m)}function A9(l,d,m){l=Xt(l),d=At(d);var _=d?al(l):0;return d&&_<d?l+rf(d-_,m):l}function E9(l,d,m){l=Xt(l),d=At(d);var _=d?al(l):0;return d&&_<d?rf(d-_,m)+l:l}function I9(l,d,m){return m||d==null?d=0:d&&(d=+d),FR(Xt(l).replace(na,""),d||0)}function P9(l,d,m){return(m?_s(l,d,m):d===n)?d=1:d=At(d),Dm(Xt(l),d)}function L9(){var l=arguments,d=Xt(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var O9=pl(function(l,d,m){return l+(m?"_":"")+d.toLowerCase()});function R9(l,d,m){return m&&typeof m!="number"&&_s(l,d,m)&&(d=m=n),m=m===n?bt:m>>>0,m?(l=Xt(l),l&&(typeof d=="string"||d!=null&&!ig(d))&&(d=zs(d),!d&&il(l))?fi(yr(l),0,m):l.split(d,m)):[]}var M9=pl(function(l,d,m){return l+(m?" ":"")+cg(d)});function N9(l,d,m){return l=Xt(l),m=m==null?0:ca(At(m),0,l.length),d=zs(d),l.slice(m,m+d.length)==d}function F9(l,d,m){var _=M.templateSettings;m&&_s(l,d,m)&&(d=n),l=Xt(l),d=vf({},d,_,mS);var L=vf({},d.imports,_.imports,mS),U=Gn(L),K=_m(L,U),Q,ue,Ae=0,Ee=d.interpolate||ti,Le="__p += '",He=Sm((d.escape||ti).source+"|"+Ee.source+"|"+(Ee===Xa?jr:ti).source+"|"+(d.evaluate||ti).source+"|$","g"),st="//# sourceURL="+(tn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++dm+"]")+`
36`;l.replace(He,function(gt,Rt,qt,Hs,ws,Vs){return qt||(qt=Hs),Le+=l.slice(Ae,Vs).replace(co,dR),Rt&&(Q=!0,Le+=`' +
37__e(`+Rt+`) +
38'`),ws&&(ue=!0,Le+=`';
39`+ws+`;
40__p += '`),qt&&(Le+=`' +
41((__t = (`+qt+`)) == null ? '' : __t) +
42'`),Ae=Vs+gt.length,gt}),Le+=`';
43`;var mt=tn.call(d,"variable")&&d.variable;if(!mt)Le=`with (obj) {
44`+Le+`
45}
46`;else if(yc.test(mt))throw new St(a);Le=(ue?Le.replace(Fr,""):Le).replace(cc,"$1").replace(Fs,"$1;"),Le="function("+(mt||"obj")+`) {
47`+(mt?"":`obj || (obj = {});
48`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(ue?`, __j = Array.prototype.join;
49function print() { __p += __j.call(arguments, '') }
50`:`;
51`)+Le+`return __p
52}`;var Et=a3(function(){return Gt(U,st+"return "+Le).apply(n,K)});if(Et.source=Le,og(Et))throw Et;return Et}function D9(l){return Xt(l).toLowerCase()}function U9(l){return Xt(l).toUpperCase()}function j9(l,d,m){if(l=Xt(l),l&&(m||d===n))return gw(l);if(!l||!(d=zs(d)))return l;var _=yr(l),L=yr(d),U=vw(_,L),K=bw(_,L)+1;return fi(_,U,K).join("")}function B9(l,d,m){if(l=Xt(l),l&&(m||d===n))return l.slice(0,_w(l)+1);if(!l||!(d=zs(d)))return l;var _=yr(l),L=bw(_,yr(d))+1;return fi(_,0,L).join("")}function z9(l,d,m){if(l=Xt(l),l&&(m||d===n))return l.replace(na,"");if(!l||!(d=zs(d)))return l;var _=yr(l),L=vw(_,yr(d));return fi(_,L).join("")}function q9(l,d){var m=D,_=oe;if(Tn(d)){var L="separator"in d?d.separator:L;m="length"in d?At(d.length):m,_="omission"in d?zs(d.omission):_}l=Xt(l);var U=l.length;if(il(l)){var K=yr(l);U=K.length}if(m>=U)return l;var Q=m-al(_);if(Q<1)return _;var ue=K?fi(K,0,Q).join(""):l.slice(0,Q);if(L===n)return ue+_;if(K&&(Q+=ue.length-Q),ig(L)){if(l.slice(Q).search(L)){var Ae,Ee=ue;for(L.global||(L=Sm(L.source,Xt(Za.exec(L))+"g")),L.lastIndex=0;Ae=L.exec(Ee);)var Le=Ae.index;ue=ue.slice(0,Le===n?Q:Le)}}else if(l.indexOf(zs(L),Q)!=Q){var He=ue.lastIndexOf(L);He>-1&&(ue=ue.slice(0,He))}return ue+_}function H9(l){return l=Xt(l),l&&sr.test(l)?l.replace(Dr,bR):l}var V9=pl(function(l,d,m){return l+(m?" ":"")+d.toUpperCase()}),cg=lS("toUpperCase");function i3(l,d,m){return l=Xt(l),d=m?n:d,d===n?hR(l)?wR(l):rR(l):l.match(d)||[]}var a3=Pt(function(l,d){try{return js(l,n,d)}catch(m){return og(m)?m:new St(m)}}),W9=wo(function(l,d){return rr(d,function(m){m=Hr(m),yo(l,m,sg(l[m],l))}),l});function G9(l){var d=l==null?0:l.length,m=ht();return l=d?$n(l,function(_){if(typeof _[1]!="function")throw new or(i);return[m(_[0]),_[1]]}):[],Pt(function(_){for(var L=-1;++L<d;){var U=l[L];if(js(U[0],this,_))return js(U[1],this,_)}})}function K9(l){return bM(ar(l,h))}function ug(l){return function(){return l}}function x9(l,d){return l==null||l!==l?d:l}var Y9=uS(),X9=uS(!0);function Ps(l){return l}function dg(l){return Bw(typeof l=="function"?l:ar(l,h))}function J9(l){return qw(ar(l,h))}function Z9(l,d){return Hw(l,ar(d,h))}var Q9=Pt(function(l,d){return function(m){return Bc(m,l,d)}}),eD=Pt(function(l,d){return function(m){return Bc(l,m,d)}});function fg(l,d,m){var _=Gn(d),L=Jd(d,_);m==null&&!(Tn(d)&&(L.length||!_.length))&&(m=d,d=l,l=this,L=Jd(d,Gn(d)));var U=!(Tn(m)&&"chain"in m)||!!m.chain,K=ko(l);return rr(L,function(Q){var ue=d[Q];l[Q]=ue,K&&(l.prototype[Q]=function(){var Ae=this.__chain__;if(U||Ae){var Ee=l(this.__wrapped__),Le=Ee.__actions__=As(this.__actions__);return Le.push({func:ue,args:arguments,thisArg:l}),Ee.__chain__=Ae,Ee}return ue.apply(l,ii([this.value()],arguments))})}),l}function tD(){return yt._===this&&(yt._=AR),this}function hg(){}function nD(l){return l=At(l),Pt(function(d){return Vw(d,l)})}var sD=Vm($n),rD=Vm(dw),oD=Vm(mm);function l3(l){return Jm(l)?gm(Hr(l)):NM(l)}function iD(l){return function(d){return l==null?n:ua(l,d)}}var aD=fS(),lD=fS(!0);function pg(){return[]}function mg(){return!1}function cD(){return{}}function uD(){return""}function dD(){return!0}function fD(l,d){if(l=At(l),l<1||l>ot)return[];var m=bt,_=ls(l,bt);d=ht(d),l-=bt;for(var L=ym(_,d);++m<l;)d(m);return L}function hD(l){return $t(l)?$n(l,Hr):qs(l)?[l]:As(ES(Xt(l)))}function pD(l){var d=++CR;return Xt(l)+d}var mD=sf(function(l,d){return l+d},0),gD=Wm("ceil"),vD=sf(function(l,d){return l/d},1),bD=Wm("floor");function yD(l){return l&&l.length?Xd(l,Ps,Pm):n}function _D(l,d){return l&&l.length?Xd(l,ht(d,2),Pm):n}function wD(l){return pw(l,Ps)}function SD(l,d){return pw(l,ht(d,2))}function kD(l){return l&&l.length?Xd(l,Ps,Mm):n}function $D(l,d){return l&&l.length?Xd(l,ht(d,2),Mm):n}var CD=sf(function(l,d){return l*d},1),TD=Wm("round"),AD=sf(function(l,d){return l-d},0);function ED(l){return l&&l.length?bm(l,Ps):0}function ID(l,d){return l&&l.length?bm(l,ht(d,2)):0}return M.after=JN,M.ary=jS,M.assign=UF,M.assignIn=QS,M.assignInWith=vf,M.assignWith=jF,M.at=BF,M.before=BS,M.bind=sg,M.bindAll=W9,M.bindKey=zS,M.castArray=cF,M.chain=FS,M.chunk=b7,M.compact=y7,M.concat=_7,M.cond=G9,M.conforms=K9,M.constant=ug,M.countBy=EN,M.create=zF,M.curry=qS,M.curryRight=HS,M.debounce=VS,M.defaults=qF,M.defaultsDeep=HF,M.defer=ZN,M.delay=QN,M.difference=w7,M.differenceBy=S7,M.differenceWith=k7,M.drop=$7,M.dropRight=C7,M.dropRightWhile=T7,M.dropWhile=A7,M.fill=E7,M.filter=PN,M.flatMap=RN,M.flatMapDeep=MN,M.flatMapDepth=NN,M.flatten=OS,M.flattenDeep=I7,M.flattenDepth=P7,M.flip=eF,M.flow=Y9,M.flowRight=X9,M.fromPairs=L7,M.functions=XF,M.functionsIn=JF,M.groupBy=FN,M.initial=R7,M.intersection=M7,M.intersectionBy=N7,M.intersectionWith=F7,M.invert=QF,M.invertBy=e9,M.invokeMap=UN,M.iteratee=dg,M.keyBy=jN,M.keys=Gn,M.keysIn=Is,M.map=df,M.mapKeys=n9,M.mapValues=s9,M.matches=J9,M.matchesProperty=Z9,M.memoize=hf,M.merge=r9,M.mergeWith=e3,M.method=Q9,M.methodOf=eD,M.mixin=fg,M.negate=pf,M.nthArg=nD,M.omit=o9,M.omitBy=i9,M.once=tF,M.orderBy=BN,M.over=sD,M.overArgs=nF,M.overEvery=rD,M.overSome=oD,M.partial=rg,M.partialRight=WS,M.partition=zN,M.pick=a9,M.pickBy=t3,M.property=l3,M.propertyOf=iD,M.pull=B7,M.pullAll=MS,M.pullAllBy=z7,M.pullAllWith=q7,M.pullAt=H7,M.range=aD,M.rangeRight=lD,M.rearg=sF,M.reject=VN,M.remove=V7,M.rest=rF,M.reverse=tg,M.sampleSize=GN,M.set=c9,M.setWith=u9,M.shuffle=KN,M.slice=W7,M.sortBy=XN,M.sortedUniq=Z7,M.sortedUniqBy=Q7,M.split=R9,M.spread=oF,M.tail=eN,M.take=tN,M.takeRight=nN,M.takeRightWhile=sN,M.takeWhile=rN,M.tap=yN,M.throttle=iF,M.thru=uf,M.toArray=XS,M.toPairs=n3,M.toPairsIn=s3,M.toPath=hD,M.toPlainObject=ZS,M.transform=d9,M.unary=aF,M.union=oN,M.unionBy=iN,M.unionWith=aN,M.uniq=lN,M.uniqBy=cN,M.uniqWith=uN,M.unset=f9,M.unzip=ng,M.unzipWith=NS,M.update=h9,M.updateWith=p9,M.values=vl,M.valuesIn=m9,M.without=dN,M.words=i3,M.wrap=lF,M.xor=fN,M.xorBy=hN,M.xorWith=pN,M.zip=mN,M.zipObject=gN,M.zipObjectDeep=vN,M.zipWith=bN,M.entries=n3,M.entriesIn=s3,M.extend=QS,M.extendWith=vf,fg(M,M),M.add=mD,M.attempt=a3,M.camelCase=y9,M.capitalize=r3,M.ceil=gD,M.clamp=g9,M.clone=uF,M.cloneDeep=fF,M.cloneDeepWith=hF,M.cloneWith=dF,M.conformsTo=pF,M.deburr=o3,M.defaultTo=x9,M.divide=vD,M.endsWith=_9,M.eq=wr,M.escape=w9,M.escapeRegExp=S9,M.every=IN,M.find=LN,M.findIndex=PS,M.findKey=VF,M.findLast=ON,M.findLastIndex=LS,M.findLastKey=WF,M.floor=bD,M.forEach=DS,M.forEachRight=US,M.forIn=GF,M.forInRight=KF,M.forOwn=xF,M.forOwnRight=YF,M.get=ag,M.gt=mF,M.gte=gF,M.has=ZF,M.hasIn=lg,M.head=RS,M.identity=Ps,M.includes=DN,M.indexOf=O7,M.inRange=v9,M.invoke=t9,M.isArguments=ha,M.isArray=$t,M.isArrayBuffer=vF,M.isArrayLike=Es,M.isArrayLikeObject=Mn,M.isBoolean=bF,M.isBuffer=hi,M.isDate=yF,M.isElement=_F,M.isEmpty=wF,M.isEqual=SF,M.isEqualWith=kF,M.isError=og,M.isFinite=$F,M.isFunction=ko,M.isInteger=GS,M.isLength=mf,M.isMap=KS,M.isMatch=CF,M.isMatchWith=TF,M.isNaN=AF,M.isNative=EF,M.isNil=PF,M.isNull=IF,M.isNumber=xS,M.isObject=Tn,M.isObjectLike=In,M.isPlainObject=Gc,M.isRegExp=ig,M.isSafeInteger=LF,M.isSet=YS,M.isString=gf,M.isSymbol=qs,M.isTypedArray=gl,M.isUndefined=OF,M.isWeakMap=RF,M.isWeakSet=MF,M.join=D7,M.kebabCase=k9,M.last=cr,M.lastIndexOf=U7,M.lowerCase=$9,M.lowerFirst=C9,M.lt=NF,M.lte=FF,M.max=yD,M.maxBy=_D,M.mean=wD,M.meanBy=SD,M.min=kD,M.minBy=$D,M.stubArray=pg,M.stubFalse=mg,M.stubObject=cD,M.stubString=uD,M.stubTrue=dD,M.multiply=CD,M.nth=j7,M.noConflict=tD,M.noop=hg,M.now=ff,M.pad=T9,M.padEnd=A9,M.padStart=E9,M.parseInt=I9,M.random=b9,M.reduce=qN,M.reduceRight=HN,M.repeat=P9,M.replace=L9,M.result=l9,M.round=TD,M.runInContext=ae,M.sample=WN,M.size=xN,M.snakeCase=O9,M.some=YN,M.sortedIndex=G7,M.sortedIndexBy=K7,M.sortedIndexOf=x7,M.sortedLastIndex=Y7,M.sortedLastIndexBy=X7,M.sortedLastIndexOf=J7,M.startCase=M9,M.startsWith=N9,M.subtract=AD,M.sum=ED,M.sumBy=ID,M.template=F9,M.times=fD,M.toFinite=$o,M.toInteger=At,M.toLength=JS,M.toLower=D9,M.toNumber=ur,M.toSafeInteger=DF,M.toString=Xt,M.toUpper=U9,M.trim=j9,M.trimEnd=B9,M.trimStart=z9,M.truncate=q9,M.unescape=H9,M.uniqueId=pD,M.upperCase=V9,M.upperFirst=cg,M.each=DS,M.eachRight=US,M.first=RS,fg(M,function(){var l={};return zr(M,function(d,m){tn.call(M.prototype,m)||(l[m]=d)}),l}(),{chain:!1}),M.VERSION=s,rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){M[l].placeholder=M}),rr(["drop","take"],function(l,d){Ut.prototype[l]=function(m){m=m===n?1:zn(At(m),0);var _=this.__filtered__&&!d?new Ut(this):this.clone();return _.__filtered__?_.__takeCount__=ls(m,_.__takeCount__):_.__views__.push({size:ls(m,bt),type:l+(_.__dir__<0?"Right":"")}),_},Ut.prototype[l+"Right"]=function(m){return this.reverse()[l](m).reverse()}}),rr(["filter","map","takeWhile"],function(l,d){var m=d+1,_=m==qe||m==Ge;Ut.prototype[l]=function(L){var U=this.clone();return U.__iteratees__.push({iteratee:ht(L,3),type:m}),U.__filtered__=U.__filtered__||_,U}}),rr(["head","last"],function(l,d){var m="take"+(d?"Right":"");Ut.prototype[l]=function(){return this[m](1).value()[0]}}),rr(["initial","tail"],function(l,d){var m="drop"+(d?"":"Right");Ut.prototype[l]=function(){return this.__filtered__?new Ut(this):this[m](1)}}),Ut.prototype.compact=function(){return this.filter(Ps)},Ut.prototype.find=function(l){return this.filter(l).head()},Ut.prototype.findLast=function(l){return this.reverse().find(l)},Ut.prototype.invokeMap=Pt(function(l,d){return typeof l=="function"?new Ut(this):this.map(function(m){return Bc(m,l,d)})}),Ut.prototype.reject=function(l){return this.filter(pf(ht(l)))},Ut.prototype.slice=function(l,d){l=At(l);var m=this;return m.__filtered__&&(l>0||d<0)?new Ut(m):(l<0?m=m.takeRight(-l):l&&(m=m.drop(l)),d!==n&&(d=At(d),m=d<0?m.dropRight(-d):m.take(d-l)),m)},Ut.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Ut.prototype.toArray=function(){return this.take(bt)},zr(Ut.prototype,function(l,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),L=M[_?"take"+(d=="last"?"Right":""):d],U=_||/^find/.test(d);L&&(M.prototype[d]=function(){var K=this.__wrapped__,Q=_?[1]:arguments,ue=K instanceof Ut,Ae=Q[0],Ee=ue||$t(K),Le=function(Rt){var qt=L.apply(M,ii([Rt],Q));return _&&He?qt[0]:qt};Ee&&m&&typeof Ae=="function"&&Ae.length!=1&&(ue=Ee=!1);var He=this.__chain__,st=!!this.__actions__.length,mt=U&&!He,Et=ue&&!st;if(!U&&Ee){K=Et?K:new Ut(this);var gt=l.apply(K,Q);return gt.__actions__.push({func:uf,args:[Le],thisArg:n}),new ir(gt,He)}return mt&&Et?l.apply(this,Q):(gt=this.thru(Le),mt?_?gt.value()[0]:gt.value():gt)})}),rr(["pop","push","shift","sort","splice","unshift"],function(l){var d=Nd[l],m=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var L=arguments;if(_&&!this.__chain__){var U=this.value();return d.apply($t(U)?U:[],L)}return this[m](function(K){return d.apply($t(K)?K:[],L)})}}),zr(Ut.prototype,function(l,d){var m=M[d];if(m){var _=m.name+"";tn.call(dl,_)||(dl[_]=[]),dl[_].push({name:d,func:m})}}),dl[nf(n,$).name]=[{name:"wrapper",func:n}],Ut.prototype.clone=HR,Ut.prototype.reverse=VR,Ut.prototype.value=WR,M.prototype.at=_N,M.prototype.chain=wN,M.prototype.commit=SN,M.prototype.next=kN,M.prototype.plant=CN,M.prototype.reverse=TN,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=AN,M.prototype.first=M.prototype.head,Rc&&(M.prototype[Rc]=$N),M},ll=SR();jn?((jn.exports=ll)._=ll,on._=ll):yt._=ll}).call(GB)}
52(iu,iu.exports)),iu.exports}var Z=KB();const Fi=bs(Z);/*!
53 * escape-html
54 * Copyright(c) 2012-2013 TJ Holowaychuk
55 * Copyright(c) 2015 Andreas Lubbe
56 * Copyright(c) 2015 Tiancheng "Timothy" Gu
57 * MIT Licensed
58 */var Pg,sk;function xB(){if(sk)return Pg;sk=1;var e=/["'&<>]/;Pg=t;function t(n){var s=""+n,r=e.exec(s);if(!r)return s;var o,i="",a=0,c=0;for(a=r.index;a<s.length;a++){switch(s.charCodeAt(a)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}c!==a&&(i+=s.substring(c,a)),c=a+1,i+=o}return c!==a?i+s.substring(c,a):i}return Pg}var YB=xB();const _h=bs(YB),XB=2e3,JB=!1;function ZB(e){return e&&e.rel}function QB(e,t){function n(s){e[s]=Object.assign({},t,{rel:s})}return t.rel.split(/\s+/).forEach(n),e}function ez(e,t){const n=t.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return n&&(e[n[1]]=n[2]),e}function tz(e){try{const t=e.match(/<?([^>]*)>(.*)/),n=t[1],s=t[2].split(";"),r={},o=new URL(n,"https://example.com");for(const[a,c]of o.searchParams)r[a]=c;s.shift();let i=s.reduce(ez,{});return i=Object.assign({},r,i),i.url=n,i}catch{return null}}function nz(e,t){if(!e)return!1;t=t||{};const n=t.maxHeaderLength||XB,s=t.throwOnMaxHeaderLengthExceeded||JB;if(e.length>n){if(s)throw new Error("Input string too long, it should be under "+n+" characters.");return!1}return!0}function sz(e,t){return nz(e,t)?e.split(/,\s*</).map(tz).filter(ZB).reduce(QB,{}):null}const g5=(e,t)=>{var a,c;const n=t.text.toLowerCase(),s=t.summary.toLowerCase(),r=(a=t.in_reply_to_screen_name)==null?void 0:a.toLowerCase(),o=(c=t.user.screen_name)==null?void 0:c.toLowerCase(),i=(t.attentions||[]).map(u=>u.screen_name.toLowerCase());return e.toSorted((u,f)=>f.order-u.order).map(u=>{const{hide:f,expires:h,name:v,value:y,type:S,enabled:C}=u;if(!C||y===""||h!==null&&h<Date.now())return!1;switch(S){case"word":{const I=y.toLowerCase();if(n.toLowerCase().includes(I)||s.toLowerCase().includes(I))return{hide:f,name:v};break}case"regexp":try{const I=new RegExp(y,"i");return I.test(n)||I.test(s)?{hide:f,name:v}:!1}catch{return!1}case"user":{if(o.includes(y)||r.includes(y)||i.some(I=>I.includes(y)))return{hide:f,name:v};break}case"user_regexp":try{const I=new RegExp(y,"i");return I.test(o)||I.test(r)||i.some($=>I.test($))?{hide:f,name:v}:!1}catch{return!1}}}).filter(u=>u)};function rz(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),s=window.atob(n);return Uint8Array.from([...s].map(r=>r.charCodeAt(0)))}function Gi(){return"serviceWorker"in navigator}function v5(){return"PushManager"in window}function gp(){return Gi()?navigator.serviceWorker.register("/sw-pleroma.js",{type:"classic"}).catch(t=>console.error("Unable to get or create a service worker.",t)):void 0}function oz(e,t,n){if(!t)return Promise.reject(new Error("Web Push is disabled in config"));if(!n)return Promise.reject(new Error("VAPID public key is not found"));const s={userVisibleOnly:!1,applicationServerKey:rz(n)};return e.pushManager.subscribe(s)}function iz(e){return e.pushManager.getSubscription().then(t=>{if(t!==null)return t.unsubscribe()})}function az(e){return fetch("/api/v1/push/subscription/",{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}).then(t=>{if(!t.ok)throw new Error("Bad status code from server.");return t})}function lz(e,t,n){return window.fetch("/api/v1/push/subscription/",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({subscription:e,data:{alerts:{follow:n.follows,favourite:n.likes,mention:n.mentions,reblog:n.repeats,move:n.moves}}})}).then(s=>{if(!s.ok)throw new Error("Bad status code from server.");return s.json()}).then(s=>{if(!s.id)throw new Error("Bad response from server.");return s})}async function cz(e){Gi()&&(await gp(),navigator.serviceWorker.addEventListener("message",t=>{const{dispatch:n}=e,{type:s,...r}=t.data;switch(s){case"notificationClicked":n("notificationClicked",{id:r.id})}}))}async function uz(e){if(!Gi)return;const{active:t}=await window.navigator.serviceWorker.getRegistration()||{};if(!t)return console.error("No serviceworker found!");t.postMessage({type:"desktopNotification",content:e})}async function b5({id:e}){if(!Gi)return;const{active:t}=await window.navigator.serviceWorker.getRegistration()||{};if(!t)return console.error("No serviceworker found!");e>=0?t.postMessage({type:"desktopNotificationClose",content:{id:e}}):t.postMessage({type:"desktopNotificationClose",content:{all:!0}})}async function dz(){if(!Gi)return;const{active:e}=await window.navigator.serviceWorker.getRegistration()||{};if(!e)return console.error("No serviceworker found!");e.postMessage({type:"updateFocus"})}function fz(e,t,n,s){v5()&&gp().then(r=>oz(r,e,t)).then(r=>lz(r,n,s)).catch(r=>console.warn(`Failed to setup Web Push Notifications: ${r.message}`))}function hz(e){v5()&&Promise.all([az(e),gp().then(t=>iz(t).then(n=>[t,n])).then(([,t])=>{t||console.warn("Push subscription cancellation wasn't successful")})]).catch(t=>console.warn(`Failed to disable Web Push Notifications: ${t.message}`))}const A5e="pleroma-fe",E5e="pleroma-fe-emoji",I5e=e=>caches.delete(e),rk={failCreateNotif:!1},y5=(e,t)=>{if("Notification"in window&&window.Notification.permission==="granted"&&!e.notifications.desktopNotificationSilence){if(Gi())uz(t);else if(!rk.failCreateNotif)try{const n=new window.Notification(t.title,t);setTimeout(n.close.bind(n),5e3)}catch{rk.failCreateNotif=!0}}},pz=(e,{id:t})=>{"Notification"in window&&window.Notification.permission==="granted"&&Gi()&&b5({id:t})},mz=()=>{"Notification"in window&&window.Notification.permission==="granted"&&Gi()&&b5({})},vp=vs("i18n",{state:()=>({i18n:null}),actions:{setI18n(e){this.$patch({i18n:e.global})}}}),gz=Object.freeze(Object.defineProperty({__proto__:null,useI18nStore:vp},Symbol.toStringTag,{value:"Module"})),vz=1e3*60*5,ms=vs("announcements",{state:()=>({announcements:[],supportsAnnouncements:!0,fetchAnnouncementsTimer:void 0}),getters:{unreadAnnouncementCount(){return window.vuex.state.users.currentUser?this.announcements.filter(t=>!(t.inactive||t.read)).length:0}},actions:{fetchAnnouncements(){if(!this.supportsAnnouncements)return Promise.resolve();const e=window.vuex.state.users.currentUser,t=e&&e.privileges.includes("announcements_manage_announcements");return(async()=>
58{if(!t)return window.vuex.state.api.backendInteractor.fetchAnnouncements();const s=await window.vuex.state.api.backendInteractor.adminFetchAnnouncements(),o=(await window.vuex.state.api.backendInteractor.fetchAnnouncements()).reduce((a,c)=>(a[c.id]=c,a),{}),i=a=>o[a.id];return s.forEach(a=>{const c=i(a);c?a.read=c.read:a.inactive=!0}),s})().then(s=>{this.announcements=s}).catch(s=>{if(s&&s.statusCode===404)this.supportsAnnouncements=!1;else throw s})},markAnnouncementAsRead(e){return window.vuex.state.api.backendInteractor.dismissAnnouncement({id:e}).then(()=>{const t=this.announcements.findIndex(n=>n.id===e);t<0||(this.announcements[t].read=!0)})},startFetchingAnnouncements(){if(this.fetchAnnouncementsTimer)return;const e=setInterval(()=>this.fetchAnnouncements(),vz);return this.fetchAnnouncementsTimer=e,this.fetchAnnouncements()},stopFetchingAnnouncements(){const e=this.fetchAnnouncementsTimer;this.fetchAnnouncementsTimer=void 0,clearInterval(e)},postAnnouncement({content:e,startsAt:t,endsAt:n,allDay:s}){return window.vuex.state.api.backendInteractor.postAnnouncement({content:e,startsAt:t,endsAt:n,allDay:s}).then(()=>this.fetchAnnouncements())},editAnnouncement({id:e,content:t,startsAt:n,endsAt:s,allDay:r}){return window.vuex.state.api.backendInteractor.editAnnouncement({id:e,content:t,startsAt:n,endsAt:s,allDay:r}).then(()=>this.fetchAnnouncements())},deleteAnnouncement(e){return window.vuex.state.api.backendInteractor.deleteAnnouncement({id:e}).then(()=>this.fetchAnnouncements())}}}),bz=Object.freeze(Object.defineProperty({__proto__:null,useAnnouncementsStore:ms},Symbol.toStringTag,{value:"Module"})),yz=()=>{const e=document.createElement("canvas");e.width=1,e.height=1;const t=e.getContext("2d");if(!t)return!1;t.fillStyle="#0f161e",t.fillRect(0,0,1,1);const{data:n}=t.getImageData(0,0,1,1);return n.join(",")==="15,22,30,255"},_z=()=>{const e=[],r=()=>{if(!yz())return;document.querySelectorAll('link[rel="icon"]').forEach(f=>{if(f){const h=document.createElement("canvas");h.width=128,h.height=128;const v=new Image;v.crossOrigin="anonymous",v.src=f.href;const y=h.getContext("2d");e.push({favcanvas:h,favimg:v,favcontext:y,favicon:f})}})},o=u=>u.complete&&u.naturalHeight!==0,i=()=>{e.length!==0&&e.forEach(({favimg:u,favcanvas:f,favcontext:h,favicon:v})=>{!u||!h||!v||(h.clearRect(0,0,128,128),o(u)&&h.drawImage(u,0,0,u.width,u.height,0,0,128,128),v.href=f.toDataURL("image/png"))})};return{initFaviconService:r,clearFaviconBadge:i,drawFaviconBadge:()=>{e.length!==0&&(i(),e.forEach(({favimg:u,favcanvas:f,favcontext:h,favicon:v})=>{if(!u||!h||!h)return;const S=`${getComputedStyle(document.body).getPropertyValue("--badgeNotification")||"rgb(240, 100, 100)"}`;o(u)&&h.drawImage(u,0,0,u.width,u.height,0,0,128,128),h.fillStyle=S,h.beginPath(),h.arc(96,32,32,0,2*Math.PI,!1),h.fill(),v.href=f.toDataURL("image/png")}))},getOriginalFavicons:()=>[...e]}},wh=_z(),_5=new Set(["mention","pleroma:report","follow_request"]);let Cf=null;const __=e=>e.state.notifications.data,w5=e=>{const t=e.rootGetters||e.getters,{notificationVisibility:n}=t.mergedConfig;return[n.likes&&"like",n.mentions&&"mention",n.statuses&&"status",n.repeats&&"repeat",n.follows&&"follow",n.followRequest&&"follow_request",n.moves&&"move",n.emojiReactions&&"pleroma:emoji_reaction",n.reports&&"pleroma:report",n.polls&&"poll"].filter(s=>s)},wz=new Set(["like","mention","status","repeat","pleroma:emoji_reaction","poll"]),ld=e=>wz.has(e),Sz=e=>!(ld(e.type)&&!e.status),kz=(e,t)=>{const n=Number(e.id),s=Number(t.id),r=!Number.isNaN(n),o=!Number.isNaN(s);return r&&o?n>s?-1:1:r&&!o?1:!r&&o||e.id>t.id?-1:1},$z=e=>e.status?e.status.muted?!0:g5(e.status).length>0:!1,Cz=(e,t)=>{const n=e.rootState||e.state;if(t.seen||!w5(e).includes(t.type)||t.type==="mention"&&$z(t))return;const s=Tz(t,vp().i18n);y5(n,s)},xf=(e,t)=>__(e).map(s=>s).sort(kz).filter(s=>(t||w5(e)).includes(s.type)),w_=e=>{const n=(e.rootGetters||e.getters).mergedConfig.ignoreInactionableSeen;return xf(e).filter(({seen:s,type:r})=>n?s?!1:_5.has(r):!s)},Tz=(e,t)=>{if(Cf===null){const i=wh.getOriginalFavicons(),a=i[i.length-1];a?Cf=a.favimg.src:Cf="about:blank"}const n={tag:e.id,type:e.type,badge:Cf},s=e.status,r=e.from_profile.name;n.title=r,n.icon=e.from_profile.profile_image_url;let o;
58switch(e.type){case"like":o="favorited_you";break;case"status":o="subscribed_status";break;case"repeat":o="repeated_you";break;case"follow":o="followed_you";break;case"move":o="migrated_to";break;case"follow_request":o="follow_request";break;case"pleroma:report":o="submitted_report";break;case"poll":o="poll_ended";break}return e.type==="pleroma:emoji_reaction"?n.body=t.t("notifications.reacted_with",[e.emoji]):o?n.body=t.t("notifications."+o):ld(e.type)&&(n.body=e.status.text),s&&s.attachments&&s.attachments.length>0&&!s.nsfw&&s.attachments[0].mimetype.startsWith("image/")&&(n.image=s.attachments[0].url),n},S5=e=>{const t=e.rootGetters||e.getters,n=t.mergedConfig;return n.showExtraNotifications?[n.showChatsInExtraNotifications?t.unreadChatCount:0,n.showAnnouncementsInExtraNotifications?ms().unreadAnnouncementCount:0,n.showFollowRequestsInExtraNotifications?t.followRequestCount:0].reduce((s,r)=>s+r,0):0},Nl=2147483647,Xr=36,S_=1,Wu=26,Az=38,Ez=700,k5=72,$5=128,C5="-",Iz=/^xn--/,Pz=/[^\0-\x7F]/,Lz=/[\x2E\u3002\uFF0E\uFF61]/g,Oz={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Lg=Xr-S_,Jr=Math.floor,Og=String.fromCharCode;function wi(e){throw new RangeError(Oz[e])}function Rz(e,t){const n=[];let s=e.length;for(;s--;)n[s]=t(e[s]);return n}function T5(e,t){const n=e.split("@");let s="";n.length>1&&(s=n[0]+"@",e=n[1]),e=e.replace(Lz,".");const r=e.split("."),o=Rz(r,t).join(".");return s+o}function A5(e){const t=[];let n=0;const s=e.length;for(;n<s;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<s){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((r&1023)<<10)+(o&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const Mz=e=>String.fromCodePoint(...e),Nz=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Xr},ok=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},E5=function(e,t,n){let s=0;for(e=n?Jr(e/Ez):e>>1,e+=Jr(e/t);e>Lg*Wu>>1;s+=Xr)e=Jr(e/Lg);return Jr(s+(Lg+1)*e/(e+Az))},I5=function(e){const t=[],n=e.length;let s=0,r=$5,o=k5,i=e.lastIndexOf(C5);i<0&&(i=0);for(let a=0;a<i;++a)e.charCodeAt(a)>=128&&wi("not-basic"),t.push(e.charCodeAt(a));for(let a=i>0?i+1:0;a<n;){const c=s;for(let f=1,h=Xr;;h+=Xr){a>=n&&wi("invalid-input");const v=Nz(e.charCodeAt(a++));v>=Xr&&wi("invalid-input"),v>Jr((Nl-s)/f)&&wi("overflow"),s+=v*f;const y=h<=o?S_:h>=o+Wu?Wu:h-o;if(v<y)break;const S=Xr-y;f>Jr(Nl/S)&&wi("overflow"),f*=S}const u=t.length+1;o=E5(s-c,u,c==0),Jr(s/u)>Nl-r&&wi("overflow"),r+=Jr(s/u),s%=u,t.splice(s++,0,r)}return String.fromCodePoint(...t)},P5=function(e){const t=[];e=A5(e);const n=e.length;let s=$5,r=0,o=k5;for(const c of e)c<128&&t.push(Og(c));const i=t.length;let a=i;for(i&&t.push(C5);a<n;){let c=Nl;for(const f of e)f>=s&&f<c&&(c=f);const u=a+1;c-s>Jr((Nl-r)/u)&&wi("overflow"),r+=(c-s)*u,s=c;for(const f of e)if(f<s&&++r>Nl&&wi("overflow"),f===s){let h=r;for(let v=Xr;;v+=Xr){const y=v<=o?S_:v>=o+Wu?Wu:v-o;if(h<y)break;const S=h-y,C=Xr-y;t.push(Og(ok(y+S%C,0))),h=Jr(S/C)}t.push(Og(ok(h,0))),o=E5(r,u,a===i),r=0,++a}++r,++s}return t.join("")},Fz=function(e){return T5(e,function(t){return Iz.test(t)?I5(t.slice(4).toLowerCase()):t})},Dz=function(e){return T5(e,function(t){return Pz.test(t)?"xn--"+P5(t):t})},Uz={version:"2.3.1",ucs2:{decode:A5,encode:Mz},decode:I5,encode:P5,toASCII:Dz,toUnicode:Fz},jz=e=>e.is_post_verb?"status":e.retweeted_status?"retweet":typeof e.uri=="string"&&e.uri.match(/(fave|objectType=Favourite)/)||typeof e.text=="string"&&e.text.match(/favorited/)?"favorite":e.text.match(/deleted notice {{tag/)||e.qvitter_delete_notice?"deletion":e.text.match(/started following/)||e.activity_type==="follow"?"follow":"unknown",Cn=e=>{const t={},n=Object.prototype.hasOwnProperty.call(e,"acct"),s=n&&!Object.prototype.hasOwnProperty.call(e,"avatar");if(t.inLists=null,t.id=String(e.id),t._original=e,n){if(t.screen_name=e.acct,t.fqn=e.fqn,t.statusnet_profile_url=e.url,t.mute_expires_at=e.mute_expires_at,t.block_expires_at=e.block_expires_at,s)return t;if(t.emoji=e.emojis,t.name=_h(e.display_name),t.name_html=t.name,t.name_unescaped=e.display_name,t.description=e.note,t.description_html=e.note,t.fields=e.fields,t.fields_html=e.fields.map(r=>({name:_h(r.name),value:r.value})),t.fields_text=e.fields.map(r=>({name:unescape(r.name.replace(/<[^>]*>/g,"")),value:unescape(r.value.replace(/<[^>]*>/g,""))})),t.profile_image_url=e.avatar,t.profile_image_url_original=e.avatar,t.cover_photo=e.header,t.friends_count=e.following_count,t.bot=e.bot,t.privileges=[],e.pleroma){e.pleroma.settings_store&&(t.storage=e.pleroma.settings_store["pleroma-fe"]);const r=e.pleroma.relationship;t.background_image=e.pleroma.background_image,t.favicon=e.pleroma.favicon,t.token=e.pleroma.chat_token,r&&(t.relationship=r),t.allow_following_move=e.pleroma.allow_following_move,t.hide_favorites=e.pleroma.hide_favorites,t.hide_follows=e.pleroma.hide_follows,t.hide_followers=e.pleroma.hide_followers,t.hide_follows_count=e.pleroma.hide_follows_count,t.hide_followers_count=e.pleroma.hide_followers_count,t.rights={moderator:e.pleroma.is_moderator,admin:e.pleroma.is_admin},t.rights.admin?t.role="admin":t.rights.moderator?t.role="moderator":t.role="member",t.birthday=e.pleroma.birthday,e.pleroma.privileges?t.privileges=e.pleroma.privileges:e.pleroma.is_admin?t.privileges=["users_read","users_manage_invites","users_manage_activation_state","users_manage_tags","users_manage_credentials","users_delete","messages_read","messages_delete","instances_delete","reports_manage_reports","moderation_log_read","announcements_manage_announcements","emoji_manage_emoji","statistics_read"]:e.pleroma.is_moderator?t.privileges=["messages_delete","reports_manage_reports"]:t.privileges=[]}e.source&&(t.description=e.source.note,t.default_scope=e.source.privacy,t.fields=e.source.fields,e.source.pleroma&&(t.no_rich_text=e.source.pleroma.no_rich_text,t.show_role=e.source.pleroma.show_role,t.discoverable=e.source.pleroma.discoverable,t.show_birthday=e.pleroma.show_birthday,t.actor_type=e.source.pleroma.actor_type)),t.is_local=!t.screen_name.includes("@")}else t.screen_name=e.screen_name,t.name=e.name,t.name_html=e.name_html,t.description=e.description,t.description_html=e.description_html,t.profile_image_url=e.profile_image_url,t.profile_image_url_original=e.profile_image_url_original,t.cover_photo=e.cover_photo,t.friends_count=e.friends_count,t.statusnet_profile_url=e.statusnet_profile_url,t.is_local=e.is_local,t.role=e.role,t.show_role=e.show_role,e.rights&&(t.rights={moderator:e.rights.delete_others_notice,admin:e.rights.admin}),t.no_rich_text=e.no_rich_text,t.default_scope=e.default_scope,t.hide_follows=e.hide_follows,t.hide_followers=e.hide_followers,t.hide_follows_count=e.hide_follows_count,t.hide_followers_count=e.hide_followers_count,t.background_image=e.background_image,t.token=e.token,t.relationship={muting:e.muted,blocking:e.statusnet_blocking,followed_by:e.follows_you,following:e.following};
58if(t.created_at=new Date(e.created_at),t.locked=e.locked,t.followers_count=e.followers_count,t.statuses_count=e.statuses_count,e.pleroma&&(t.follow_request_count=e.pleroma.follow_request_count,t.tags=e.pleroma.tags,t.deactivated=typeof e.pleroma.is_active<"u"?!e.pleroma.is_active:e.pleroma.deactivated,t.notification_settings=e.pleroma.notification_settings,t.unread_chat_count=e.pleroma.unread_chat_count),t.tags=t.tags||[],t.rights=t.rights||{},t.notification_settings=t.notification_settings||{},t.screen_name_ui=t.screen_name,t.screen_name&&t.screen_name.includes("@")){const r=t.screen_name.split("@"),o=Uz.toUnicode(r[1]);o!==r[1]?(t.screen_name_ui_contains_non_ascii=!0,t.screen_name_ui=[r[0],o].join("@")):t.screen_name_ui_contains_non_ascii=!1}return t},bp=e=>{const t={};return!Object.prototype.hasOwnProperty.call(e,"oembed")?(t.mimetype=e.pleroma?e.pleroma.mime_type:e.type,t.meta=e.meta,t.id=e.id):t.mimetype=e.mimetype,t.url=e.url,t.large_thumb_url=e.preview_url,t.description=e.description,t},Bz=e=>{const t={};return t.text=e.text,t.spoiler_text=e.spoiler_text,t.content_type=e.content_type,t},rn=e=>{var r,o;const t={},n=Object.prototype.hasOwnProperty.call(e,"account");if(n){t.favorited=e.favourited,t.fave_num=e.favourites_count,t.repeated=e.reblogged,t.repeat_num=e.reblogs_count,t.bookmarked=e.bookmarked,t.type=e.reblog?"retweet":"status",t.nsfw=e.sensitive,t.raw_html=e.content,t.emojis=e.emojis,t.tags=e.tags,t.edited_at=e.edited_at;const{pleroma:i}=e;e.pleroma?(t.text=i.content?e.pleroma.content["text/plain"]:e.content,t.summary=i.spoiler_text?e.pleroma.spoiler_text["text/plain"]:e.spoiler_text,t.statusnet_conversation_id=e.pleroma.conversation_id,t.is_local=i.local,t.in_reply_to_screen_name=i.in_reply_to_account_acct,t.thread_muted=i.thread_muted,t.emoji_reactions=i.emoji_reactions,t.parent_visible=i.parent_visible===void 0?!0:i.parent_visible,t.quote_visible=i.quote_visible||!0,t.quotes_count=i.quotes_count,t.bookmark_folder_id=i.bookmark_folder):(t.text=e.content,t.summary=e.spoiler_text);const a=(i==null?void 0:i.quote)||e.quote,c=a?rn(a):void 0;t.quote=c,t.quote_id=((r=e.quote)==null?void 0:r.id)??e.quote_id??(c==null?void 0:c.id)??i.quote_id,t.quote_url=((o=e.quote)==null?void 0:o.url)??(c==null?void 0:c.url)??i.quote_url,t.in_reply_to_status_id=e.in_reply_to_id,t.in_reply_to_user_id=e.in_reply_to_account_id,t.replies_count=e.replies_count,t.type==="retweet"&&(t.retweeted_status=rn(e.reblog)),t.summary_raw_html=_h(e.spoiler_text),t.external_url=e.url,t.poll=e.poll,t.poll&&(t.poll.options=(t.poll.options||[]).map(u=>({...u,title_html:_h(u.title)}))),t.pinned=e.pinned,t.muted=e.muted}else t.favorited=e.favorited,t.fave_num=e.fave_num,t.repeated=e.repeated,t.repeat_num=e.repeat_num,t.type=jz(e),e.nsfw===void 0?(t.nsfw=zz(e),e.retweeted_status&&(t.nsfw=e.retweeted_status.nsfw)):t.nsfw=e.nsfw,t.raw_html=e.statusnet_html,t.text=e.text,t.in_reply_to_status_id=e.in_reply_to_status_id,t.in_reply_to_user_id=e.in_reply_to_user_id,t.in_reply_to_screen_name=e.in_reply_to_screen_name,t.statusnet_conversation_id=e.statusnet_conversation_id,t.type==="retweet"&&(t.retweeted_status=rn(e.retweeted_status)),t.summary=e.summary,t.summary_html=e.summary_html,t.external_url=e.external_url,t.is_local=e.is_local;t.id=String(e.id),t.visibility=e.visibility,t.card=e.card,t.created_at=new Date(e.created_at),t.in_reply_to_status_id=t.in_reply_to_status_id?String(t.in_reply_to_status_id):null,t.in_reply_to_user_id=t.in_reply_to_user_id?String(t.in_reply_to_user_id):null,t.user=Cn(n?e.account:e.user),t.attentions=((n?e.mentions:e.attentions)||[]).map(Cn),t.attachments=((n?e.media_attachments:e.attachments)||[]).map(bp);const s=n?e.reblog:e.retweeted_status;return s&&(t.retweeted_status=rn(s)),t.favoritedBy=[],t.rebloggedBy=[],Object.prototype.hasOwnProperty.call(e,"originalStatus")&&Object.assign(t,e.originalStatus),t},L5=e=>{const t={favourite:"like",reblog:"repeat"},n=!Object.prototype.hasOwnProperty.call(e,"ntype"),s={};if(n)s.type=t[e.type]||e.type,s.seen=e.pleroma.is_seen,s.status=ld(s.type)&&e.status!==null?rn(e.status):null,s.target=s.type!=="move"?null:Cn(e.target),s.from_profile=Cn(e.account),s.emoji=e.emoji,s.emoji_url=e.emoji_url,e.report&&(s.report=e.report,s.report.content=e.report.content,s.report.acct=Cn(e.report.account),s.report.actor=Cn(e.report.actor),s.report.statuses=e.report.statuses.map(rn));else{const r=rn(e.notice);s.type=e.ntype,s.seen=!!e.is_seen,s.status=s.type==="like"?rn(e.notice.favorited_status):r,s.action=r,s.from_profile=s.type==="pleroma:chat_mention"?Cn(e.account):Cn(e.from_profile)}return s.created_at=new Date(e.created_at),s.id=parseInt(e.id),s},zz=e=>{const t=/#nsfw/i;return(e.tags||[]).includes("nsfw")||!!(e.text||"").match(t)},qz=(e,t={})=>{var i,a;const n=t.flakeId,s=sz(e);if(!s)return;const r=(i=s.next)==null?void 0:i.max_id,o=(a=s.prev)==null?void 0:a.min_id;return{maxId:n?r:parseInt(r,10),minId:n?o:parseInt(o,10)}},k_=e=>{const t={};return t.id=e.id,t.account=Cn(e.account),t.unread=e.unread,t.lastMessage=O5(e.last_message),t.updated_at=new Date(e.updated_at),t},O5=e=>{if(!e)return;if(e.isNormalized)return e;const t=e;return t.id=e.id,t.created_at=new Date(e.created_at),t.chat_id=e.chat_id,t.emojis=e.emojis,t.content=e.content,e.attachment?t.attachments=[bp(e.attachment)]:t.attachments=[],t.pending=!!e.pending,t.error=!1,t.idempotency_key=e.idempotency_key,t.isNormalized=!0,t};function Hz(e){return Object.entries(e).reduce((t,[n,s])=>{const r=s.reduce((o,i)=>{const a=Z.capitalize(n.replace(/_/g," "));return o+[a,i].join(" ")+". "},"");return[...t,r]},[])}function Di(e,t,n,s){this.name="StatusCodeError",this.statusCode=e,this.message=e+" - "+(JSON&&JSON.stringify?JSON.stringify(t):t),this.error=t,this.options=n,this.response=s,Error.captureStackTrace&&Error.captureStackTrace(this)}Di.prototype=Object.create(Error.prototype);Di.prototype.constructor=Di;
58class Vz extends Error{constructor(t){super(),Error.captureStackTrace&&Error.captureStackTrace(this);try{if(typeof t=="string"&&(t=JSON.parse(t),t.hasOwnProperty("error")&&(t=JSON.parse(t.error))),typeof t=="object"){const n=JSON.parse(t.error);n.ap_id&&(n.username=n.ap_id,delete n.ap_id),this.message=Hz(n)}else this.message=t}catch{this.message=t}}}const Wz="/api/pleroma/mutes_import",Gz="/api/pleroma/blocks_import",Kz="/api/pleroma/follow_import",xz="/api/pleroma/delete_account",Yz="/api/pleroma/change_email",Xz="/api/pleroma/change_password",Jz="/api/pleroma/move_account",$_="/api/pleroma/aliases",R5="/api/pleroma/admin/users/tag",M5=(e,t)=>`/api/pleroma/admin/users/${e}/permission_group/${t}`,Zz="/api/pleroma/admin/users/activate",Qz="/api/pleroma/admin/users/deactivate",eq="/api/v1/pleroma/admin/users",tq="/api/v1/suggestions",nq="/api/pleroma/notification_settings",sq="/api/v1/pleroma/notifications/read",rq="/api/pleroma/accounts/mfa",oq="/api/pleroma/accounts/mfa/backup_codes",iq="/api/pleroma/accounts/mfa/setup/totp",aq="/api/pleroma/accounts/mfa/confirm/totp",lq="/api/pleroma/accounts/mfa/totp",cq="/api/v1/accounts/verify_credentials",uq="/api/v1/accounts",dq="/api/v1/favourites",fq="/api/v1/notifications",hq=e=>`/api/v1/notifications/${e}/dismiss`,pq=e=>`/api/v1/statuses/${e}/favourite`,mq=e=>`/api/v1/statuses/${e}/unfavourite`,gq=e=>`/api/v1/statuses/${e}/reblog`,vq=e=>`/api/v1/statuses/${e}/unreblog`,bq=e=>`/api/v1/statuses/${e}`,yq=e=>`/api/v1/accounts/${e}/follow`,_q=e=>`/api/v1/accounts/${e}/unfollow`,wq=e=>`/api/v1/accounts/${e}/following`,Sq=e=>`/api/v1/accounts/${e}/followers`,kq="/api/v1/follow_requests",$q=e=>`/api/v1/follow_requests/${e}/authorize`,Cq=e=>`/api/v1/follow_requests/${e}/reject`,Tq="/api/v1/timelines/direct",ik="/api/v1/timelines/public",Aq="/api/v1/timelines/home",N5=e=>`/api/v1/statuses/${e}`,Eq=e=>`/api/v1/statuses/${e}/context`,Iq=e=>`/api/v1/statuses/${e}/source`,Pq=e=>`/api/v1/statuses/${e}/history`,Lq="/api/v1/accounts",Oq="/api/v1/accounts/lookup",Rq="/api/v1/accounts/relationships",V0=e=>`/api/v1/accounts/${e}/statuses`,Mq=e=>`/api/v1/accounts/${e}/lists`,C_=e=>`/api/v1/lists/${e}`,Nq=e=>`/api/v1/timelines/list/${e}`,T_=e=>`/api/v1/lists/${e}/accounts`,Fq=e=>`/api/v1/timelines/tag/${e}`,Dq="/api/v1/bookmarks",Uq="/api/v1/timelines/bubble",jq="/api/v1/blocks/",Bq="/api/v1/mutes/",zq=e=>`/api/v1/accounts/${e}/block`,qq=e=>`/api/v1/accounts/${e}/unblock`,Hq=e=>`/api/v1/accounts/${e}/mute`,Vq=e=>`/api/v1/accounts/${e}/unmute`,Wq=e=>`/api/v1/accounts/${e}/remove_from_followers`,Gq=e=>`/api/v1/accounts/${e}/note`,Kq=e=>`/api/v1/statuses/${e}/bookmark`,xq=e=>`/api/v1/statuses/${e}/unbookmark`,Yq="/api/v1/statuses",F5="/api/v1/media",Xq=e=>`/api/v1/polls/${e}/votes`,Jq=e=>`/api/v1/polls/${e}`,Zq=e=>`/api/v1/statuses/${e}/favourited_by`,Qq=e=>`/api/v1/statuses/${e}/reblogged_by`,A_="/api/v1/accounts/update_credentials",eH="/api/v1/reports",tH=e=>`/api/v1/statuses/${e}/pin`,nH=e=>`/api/v1/statuses/${e}/unpin`,sH=e=>`/api/v1/statuses/${e}/mute`,rH=e=>`/api/v1/statuses/${e}/unmute`,oH="/api/v2/search",iH="/api/v1/accounts/search",E_="/api/v1/domain_blocks",D5="/api/v1/lists",aH="/api/v1/streaming",lH="/api/v1/instance/peers",cH="/api/v1/announcements",uH=e=>`/api/v1/announcements/${e}/dismiss`,dH=e=>`/api/v1/pleroma/statuses/${e}/reactions`,fH=(e,t)=>`/api/v1/pleroma/statuses/${e}/reactions/${t}`,hH=(e,t)=>`/api/v1/pleroma/statuses/${e}/reactions/${t}`,pH="/api/v1/pleroma/chats",mH=e=>`/api/v1/pleroma/chats/by-account-id/${e}`,U5=e=>`/api/v1/pleroma/chats/${e}/messages`,gH=e=>`/api/v1/pleroma/chats/${e}/read`,vH=(e,t)=>`/api/v1/pleroma/chats/${e}/messages/${t}`,bH="/api/v1/pleroma/admin/reports",j5="/api/v1/pleroma/backups",yH="/api/v1/pleroma/admin/announcements",_H="/api/v1/pleroma/admin/announcements",wH=e=>`/api/v1/pleroma/admin/announcements/${e}`,SH=e=>`/api/v1/pleroma/admin/announcements/${e}`,kH=e=>`/api/v1/pleroma/accounts/${e}/scrobbles`,$H=e=>`/api/v1/pleroma/statuses/${e}/quotes`,CH=e=>`/api/v1/pleroma/accounts/${e}/favourites`,B5="/api/v1/pleroma/bookmark_folders",z5=e=>`/api/v1/pleroma/bookmark_folders/${e}`,q5="/api/v1/pleroma/admin/config",TH="/api/v1/pleroma/admin/config/descriptions",AH="/api/v1/pleroma/admin/frontends",EH="/api/v1/pleroma/admin/frontends/install",IH="/api/pleroma/admin/reload_emoji",PH="/api/pleroma/emoji/packs/import",LH=(e,t)=>`/api/v1/pleroma/emoji/packs?page=${e}&page_size=${t}`,I_=e=>`/api/v1/pleroma/emoji/pack?name=${e}`,OH="/api/v1/pleroma/emoji/packs/download",RH="/api/v1/pleroma/emoji/packs/download_zip",MH=(e,t,n)=>`/api/v1/pleroma/emoji/packs/remote?url=${e}&page=${t}&page_size=${n}`,P_=e=>`/api/v1/pleroma/emoji/packs/files?name=${e}`,NH=window.fetch,Be=(e,t)=>{t=t||{};const s=""+e;return t.credentials="same-origin",NH(s,t)},ct=({method:e,url:t,params:n,payload:s,credentials:r,headers:o={}})=>{const i={method:e,headers:{Accept:"application/json","Content-Type":"application/json",...o}};return n&&(t+="?"+Object.entries(n).map(([a,c])=>encodeURIComponent(a)+"="+encodeURIComponent(c)).join("&")),s&&(i.body=JSON.stringify(s)),r&&(i.headers={...i.headers,...Je(r)}),Be(t,i).then(a=>new Promise((c,u)=>a.json().then(f=>
58a.ok?c(f):u(new Di(a.status,f,{url:t,options:i},a))).catch(f=>u(new Di(a.status,f,{url:t,options:i},a)))))},FH=({credentials:e,settings:t})=>{const n=new FormData;return Z.each(t,(s,r)=>{n.append(r,s)}),Be(`${nq}?${new URLSearchParams(t)}`,{headers:Je(e),method:"PUT",body:n}).then(s=>s.json())},DH=({credentials:e,avatar:t=null,avatarName:n=null,banner:s=null,background:r=null})=>{const o=new FormData;return t!==null&&(n!==null?o.append("avatar",t,n):o.append("avatar",t)),s!==null&&o.append("header",s),r!==null&&o.append("pleroma_background_image",r),Be(A_,{headers:Je(e),method:"PATCH",body:o}).then(i=>i.json()).then(i=>{if(i.error)throw new Error(i.error);return Cn(i)})},UH=({credentials:e,params:t})=>{const n=new FormData;for(const s in t)s==="fields_attributes"?t[s].forEach((r,o)=>{n.append(s+`[${o}][name]`,r.name),n.append(s+`[${o}][value]`,r.value)}):(typeof t[s]=="object"&&(console.warn("Object detected in updateProfile API call. This will not work, use updateProfileJSON instead."),console.warn(`Object:
59`+JSON.stringify(t[s],null,2))),n.append(s,t[s]));return Be(A_,{headers:Je(e),method:"PATCH",body:n}).then(s=>s.json()).then(s=>Cn(s))},jH=({credentials:e,params:t})=>ct({url:A_,credentials:e,payload:t,method:"PATCH"}).then(n=>n.json()).then(n=>Cn(n)),BH=({params:e,credentials:t})=>{const{nickname:n,...s}=e;return Be(uq,{method:"POST",headers:{...Je(t),"Content-Type":"application/json"},body:JSON.stringify({nickname:n,locale:"en_US",agreement:!0,...s})}).then(r=>r.ok?r.json():r.json().then(o=>{throw new Vz(o)}))},zH=()=>Be("/api/pleroma/captcha").then(e=>e.json()),Je=e=>e?{Authorization:`Bearer ${e}`}:{},qH=({id:e,credentials:t,...n})=>{const s=yq(e),r={};return n.reblogs!==void 0&&(r.reblogs=n.reblogs),n.notify!==void 0&&(r.notify=n.notify),Be(s,{body:JSON.stringify(r),headers:{...Je(t),"Content-Type":"application/json"},method:"POST"}).then(o=>o.json())},HH=({id:e,credentials:t})=>{const n=_q(e);return Be(n,{headers:Je(t),method:"POST"}).then(s=>s.json())},VH=({id:e,credentials:t})=>{const n=Mq(e);return Be(n,{headers:Je(t)}).then(s=>s.json())},WH=({id:e,credentials:t})=>ct({url:tH(e),credentials:t,method:"POST"}).then(n=>rn(n)),GH=({id:e,credentials:t})=>ct({url:nH(e),credentials:t,method:"POST"}).then(n=>rn(n)),KH=({id:e,credentials:t})=>ct({url:sH(e),credentials:t,method:"POST"}).then(n=>rn(n)),xH=({id:e,credentials:t})=>ct({url:rH(e),credentials:t,method:"POST"}).then(n=>rn(n)),YH=({id:e,expiresIn:t,credentials:n})=>{const s={};return t&&(s.duration=t),ct({url:zq(e),credentials:n,method:"POST",payload:s})},XH=({id:e,credentials:t})=>Be(qq(e),{headers:Je(t),method:"POST"}).then(n=>n.json()),JH=({id:e,credentials:t})=>Be(Wq(e),{headers:Je(t),method:"POST"}).then(n=>n.json()),ZH=({id:e,credentials:t,comment:n})=>ct({url:Gq(e),credentials:t,payload:{comment:n},method:"POST"}),QH=({id:e,credentials:t})=>{const n=$q(e);return Be(n,{headers:Je(t),method:"POST"}).then(s=>s.json())},eV=({id:e,credentials:t})=>{const n=Cq(e);return Be(n,{headers:Je(t),method:"POST"}).then(s=>s.json())},H5=({id:e,credentials:t})=>{const n=`${Lq}/${e}`;return ct({url:n,credentials:t}).then(s=>Cn(s))},tV=({name:e,credentials:t})=>ct({url:Oq,credentials:t,params:{acct:e}}).then(n=>n.id).catch(n=>{if(n&&n.statusCode===404)return e;throw n}).then(n=>H5({id:n,credentials:t})),nV=({id:e,credentials:t})=>{const n=`${Rq}/?id=${e}`;return Be(n,{headers:Je(t)}).then(s=>new Promise((r,o)=>s.json().then(i=>s.ok?r(i):o(new Di(s.status,i,{url:n},s)))))},V5=({id:e,maxId:t,sinceId:n,limit:s=20,credentials:r})=>{let o=wq(e);const i=[t&&`max_id=${t}`,n&&`since_id=${n}`,s&&`limit=${s}`,"with_relationships=true"].filter(a=>a).join("&");return o=o+(i?"?"+i:""),Be(o,{headers:Je(r)}).then(a=>a.json()).then(a=>a.map(Cn))},sV=({id:e,credentials:t})=>new Promise(async(n,s)=>{try{let r=[],o=!0;for(;o;){const i=r.length>0?Z.last(r).id:void 0,a=await V5({id:e,maxId:i,credentials:t});r=Z.concat(r,a),a.length===0&&(o=!1)}n(r)}catch(r){s(r)}}),rV=({id:e,maxId:t,sinceId:n,limit:s=20,credentials:r})=>{let o=Sq(e);const i=[t&&`max_id=${t}`,n&&`since_id=${n}`,s&&`limit=${s}`,"with_relationships=true"].filter(a=>a).join("&");return o+=i?"?"+i:"",Be(o,{headers:Je(r)}).then(a=>a.json()).then(a=>a.map(Cn))},oV=({credentials:e})=>Be(kq,{headers:Je(e)}).then(n=>n.json()).then(n=>n.map(Cn)),iV=({credentials:e})=>Be(D5,{headers:Je(e)}).then(n=>n.json()),aV=({title:e,credentials:t})=>{const n=D5,s=Je(t);return s["Content-Type"]="application/json",Be(n,{headers:s,method:"POST",body:JSON.stringify({title:e})}).then(r=>r.json())},lV=({listId:e,credentials:t})=>{const n=C_(e);return Be(n,{headers:Je(t)}).then(s=>s.json())},cV=({listId:e,title:t,credentials:n})=>{const s=C_(e),r=Je(n);return r["Content-Type"]="application/json",Be(s,{headers:r,method:"PUT",body:JSON.stringify({title:t})})},uV=({listId:e,credentials:t})=>{const n=T_(e);return Be(n,{headers:Je(t)}).then(s=>s.json()).then(s=>s.map(({id:r})=>r))},dV=({listId:e,accountIds:t,credentials:n})=>{const s=T_(e),r=Je(n);return r["Content-Type"]="application/json",Be(s,{headers:r,method:"POST",body:JSON.stringify({account_ids:t})})},fV=({listId:e,accountIds:t,credentials:n})=>{const s=T_(e),r=Je(n);return r["Content-Type"]="application/json",Be(s,{headers:r,method:"DELETE",body:JSON.stringify({account_ids:t})})},hV=({listId:e,credentials:t})=>{const n=C_(e);return Be(n,{method:"DELETE",headers:Je(t)})},pV=({id:e,credentials:t})=>{const n=Eq(e);return Be(n,{headers:Je(t)}).then(s=>{if(s.ok)return s;throw new Error("Error fetching timeline",s)}).then(s=>s.json()).then(({ancestors:s,descendants:r})=>({ancestors:s.map(rn),descendants:r.map(rn)}))},mV=({id:e,credentials:t})=>{const n=N5(e);return Be(n,{headers:Je(t)}).then(s=>{if(s.ok)return s;throw new Error("Error fetching timeline",s)}).then(s=>s.json()).then(s=>rn(s))},gV=({id:e,credentials:t})=>{const n=Iq(e);return Be(n,{headers:Je(t)}).then(s=>{if(s.ok)return s;throw new Error("Error fetching source",s)}).then(s=>s.json()).then(s=>Bz(s))},vV=({status:e,credentials:t})=>{const n=Pq(e.id);return ct({url:n,credentials:t}).then(s=>(s.reverse(),s.map(r=>(r.originalStatus=e,rn(r)))))},bV=({tag:e,credentials:t,user:n})=>{const r={nicknames:[n.screen_name],tags:[e]},o=Je(t);return o["Content-Type"]="application/json",Be(R5,{method:"PUT",headers:o,body:JSON.stringify(r)})},yV=({tag:e,credentials:t,user:n})=>{const r={nicknames:[n.screen_name],tags:[e]},o=Je(t);return o["Content-Type"]="application/json",Be(R5,{method:"DELETE",headers:o,body:JSON.stringify(r)})},_V=({right:e,credentials:t,user:n})=>{const s=n.screen_name;return Be(M5(s,e),{method:"POST",headers:Je(t),body:{}})},wV=({right:e,credentials:t,user:n})=>{const s=n.screen_name;return Be(M5(s,e),{method:"DELETE",headers:Je(t),body:{}})},SV=({credentials:e,user:{screen_name:t}})=>ct({url:Zz,method:"PATCH",credentials:e,payload:{nicknames:[t]}}).then(n=>Z.get(n,"users.0")),kV=({credentials:e,user:{screen_name:t}})=>ct({url:Qz,method:"PATCH",credentials:e,payload:{nicknames:[t]}}).then(n=>Z.get(n,"users.0")),$V=({credentials:e,user:t})=>{const n=t.screen_name,s=Je(e);return Be(`${eq}?nickname=${n}`,{method:"DELETE",headers:s})},CV=({timeline:e,credentials:t,since:n=!1,minId:s=!1,until:r=!1,userId:o=!1,listId:i=!1,statusId:a=!1,tag:c=!1,withMuted:u=!1,replyVisibility:f="all",includeTypes:h=[],bookmarkFolderId:v=!1})=>{const y={public:ik,friends:Aq,dms:Tq,notifications:fq,publicAndExternal:ik,user:V0,media:V0,list:Nq,favorites:dq,publicFavorites:CH,tag:Fq,bookmarks:Dq,quotes:$H,bubble:Uq},S=e==="notifications",C=[];let I=y[e];e==="favorites"&&o&&(I=y.publicFavorites(o)),(e==="user"||e==="media")&&(I=I(o)),e==="list"&&(I=I(i)),e==="quotes"&&(I=I(a)
59),s&&C.push(["min_id",s]),n&&C.push(["since_id",n]),r&&C.push(["max_id",r]),c&&(I=I(c)),e==="media"&&C.push(["only_media",1]),e==="public"&&C.push(["local",!0]),(e==="public"||e==="publicAndExternal")&&C.push(["only_media",!1]),e!=="favorites"&&e!=="bookmarks"&&C.push(["with_muted",u]),f!=="all"&&C.push(["reply_visibility",f]),h.size>0&&h.forEach(k=>{C.push(["include_types[]",k])}),e==="bookmarks"&&v&&C.push(["folder_id",v]),C.push(["limit",20]);const $=Z.map(C,k=>`${k[0]}=${k[1]}`).join("&");return I+=`?${$}`,Be(I,{headers:Je(t)}).then(async k=>{const P=k.ok,A=await k.json();if(P&&!A.errors){const R=qz(k.headers.get("Link"),{flakeId:e!=="bookmarks"&&e!=="notifications"});return{data:A.map(S?L5:rn),pagination:R}}else return A.errors||(A.errors=[]),A.status=k.status,A.statusText=k.statusText,A})},TV=({id:e,credentials:t})=>{const n=V0(e)+"?pinned=true";return ct({url:n,credentials:t}).then(s=>s.map(rn))},AV=e=>Be(cq,{headers:Je(e)}).then(t=>t.ok?t.json():{error:t}).then(t=>t.error?t:Cn(t)),EV=({id:e,credentials:t})=>ct({url:pq(e),method:"POST",credentials:t}).then(n=>rn(n)),IV=({id:e,credentials:t})=>ct({url:mq(e),method:"POST",credentials:t}).then(n=>rn(n)),PV=({id:e,credentials:t})=>ct({url:gq(e),method:"POST",credentials:t}).then(n=>rn(n)),LV=({id:e,credentials:t})=>ct({url:vq(e),method:"POST",credentials:t}).then(n=>rn(n)),OV=({id:e,credentials:t,...n})=>ct({url:Kq(e),headers:Je(t),method:"POST",payload:{folder_id:n.folder_id}}),RV=({id:e,credentials:t})=>ct({url:xq(e),headers:Je(t),method:"POST"}),MV=({credentials:e,status:t,spoilerText:n,visibility:s,sensitive:r,poll:o,mediaIds:i=[],inReplyToStatusId:a,quoteId:c,contentType:u,preview:f,idempotencyKey:h})=>{const v=new FormData,y=o.options||[];if(v.append("status",t),v.append("source","Pleroma FE"),n&&v.append("spoiler_text",n),s&&v.append("visibility",s),r&&v.append("sensitive",r),u&&v.append("content_type",u),i.forEach(C=>{v.append("media_ids[]",C)}),y.some(C=>C!=="")){const C={expires_in:parseInt(o.expiresIn,10),multiple:o.multiple};Object.keys(C).forEach(I=>{v.append(`poll[${I}]`,C[I])}),y.forEach(I=>{v.append("poll[options][]",I)})}a&&v.append("in_reply_to_id",a),c&&v.append("quote_id",c),f&&v.append("preview","true");const S=Je(e);return h&&(S["idempotency-key"]=h),Be(Yq,{body:v,method:"POST",headers:S}).then(C=>C.json()).then(C=>C.error?C:rn(C))},NV=({id:e,credentials:t,status:n,spoilerText:s,sensitive:r,poll:o,mediaIds:i=[],contentType:a})=>{const c=new FormData,u=o.options||[];if(c.append("status",n),s&&c.append("spoiler_text",s),r&&c.append("sensitive",r),a&&c.append("content_type",a),i.forEach(h=>{c.append("media_ids[]",h)}),u.some(h=>h!=="")){const h={expires_in:parseInt(o.expiresIn,10),multiple:o.multiple};Object.keys(h).forEach(v=>{c.append(`poll[${v}]`,h[v])}),u.forEach(v=>{c.append("poll[options][]",v)})}const f=Je(t);return Be(N5(e),{body:c,method:"PUT",headers:f}).then(h=>h.json()).then(h=>h.error?h:rn(h))},FV=({id:e,credentials:t})=>ct({url:bq(e),credentials:t,method:"DELETE"}),DV=({formData:e,credentials:t})=>Be(F5,{body:e,method:"POST",headers:Je(t)}).then(n=>n.json()).then(n=>bp(n)),UV=({id:e,description:t,credentials:n})=>ct({url:`${F5}/${e}`,method:"PUT",headers:Je(n),payload:{description:t}}).then(s=>bp(s)),jV=({file:e,credentials:t})=>{const n=new FormData;return n.append("list",e),Be(Wz,{body:n,method:"POST",headers:Je(t)}).then(s=>s.ok)},BV=({file:e,credentials:t})=>{const n=new FormData;return n.append("list",e),Be(Gz,{body:n,method:"POST",headers:Je(t)}).then(s=>s.ok)},zV=({file:e,credentials:t})=>{const n=new FormData;return n.append("list",e),Be(Kz,{body:n,method:"POST",headers:Je(t)}).then(s=>s.ok)},qV=({credentials:e,password:t})=>{const n=new FormData;return n.append("password",t),Be(xz,{body:n,method:"POST",headers:Je(e)}).then(s=>s.json())},HV=({credentials:e,email:t,password:n})=>{const s=new FormData;return s.append("email",t),s.append("password",n),Be(Yz,{body:s,method:"POST",headers:Je(e)}).then(r=>r.json())},VV=({credentials:e,password:t,targetAccount:n})=>{const s=new FormData;return s.append("password",t),s.append("target_account",n),Be(Jz,{body:s,method:"POST",headers:Je(e)}).then(r=>r.json())},WV=({credentials:e,alias:t})=>ct({url:$_,method:"PUT",credentials:e,payload:{alias:t}}),GV=({credentials:e,alias:t})=>ct({url:$_,method:"DELETE",credentials:e,payload:{alias:t}}),KV=({credentials:e})=>ct({url:$_,method:"GET",credentials:e,params:{_cacheBooster:new Date().getTime()}}),xV=({credentials:e,password:t,newPassword:n,newPasswordConfirmation:s})=>{const r=new FormData;return r.append("password",t),r.append("new_password",n),r.append("new_password_confirmation",s),Be(Xz,{body:r,method:"POST",headers:Je(e)}).then(o=>o.json())},YV=({credentials:e})=>Be(rq,{headers:Je(e),method:"GET"}).then(t=>t.json()),XV=({credentials:e,password:t})=>{const n=new FormData;return n.append("password",t),Be(lq,{body:n,method:"DELETE",headers:Je(e)}).then(s=>s.json())},JV=({credentials:e,password:t,token:n})=>{const s=new FormData;return s.append("password",t),s.append("code",n),Be(aq,{body:s,headers:Je(e),method:"POST"}).then(r=>r.json())},ZV=({credentials:e})=>Be(iq,{headers:Je(e),method:"GET"}).then(t=>t.json()),QV=({credentials:e})=>Be(oq,{headers:Je(e),method:"GET"}).then(t=>t.json()),eW=({maxId:e,credentials:t})=>{const n=new URLSearchParams({with_relationships:!0});return e&&n.append("max_id",e),ct({url:`${Bq}?${n.toString()}`,credentials:t}).then(s=>s.map(Cn))}
59,tW=({id:e,expiresIn:t,credentials:n})=>{const s={};return t&&(s.expires_in=t),ct({url:Hq(e),credentials:n,method:"POST",payload:s})},nW=({id:e,credentials:t})=>ct({url:Vq(e),credentials:t,method:"POST"}),sW=({maxId:e,credentials:t})=>{const n=new URLSearchParams({with_relationships:!0});return e&&n.append("max_id",e),ct({url:`${jq}?${n.toString()}`,credentials:t}).then(s=>s.map(Cn))},rW=({credentials:e})=>ct({url:j5,method:"POST",credentials:e}),oW=({credentials:e})=>ct({url:j5,method:"GET",credentials:e,params:{_cacheBooster:new Date().getTime()}}),iW=({credentials:e})=>Be("/api/oauth_tokens.json",{headers:Je(e)}).then(n=>{if(n.ok)return n.json();throw new Error("Error fetching auth tokens",n)}),aW=({id:e,credentials:t})=>{const n=`/api/oauth_tokens/${e}`;return Be(n,{headers:Je(t),method:"DELETE"})},lW=({credentials:e})=>Be(tq,{headers:Je(e)}).then(t=>t.json()),cW=({id:e,credentials:t,single:n=!1})=>{const s=new FormData;return n?s.append("id",e):s.append("max_id",e),Be(sq,{body:s,headers:Je(t),method:"POST"}).then(r=>r.json())},uW=({pollId:e,choices:t,credentials:n})=>(new FormData().append("choices",t),ct({url:Xq(encodeURIComponent(e)),method:"POST",credentials:n,payload:{choices:t}})),dW=({pollId:e,credentials:t})=>ct({url:Jq(encodeURIComponent(e)),method:"GET",credentials:t}),fW=({id:e,credentials:t})=>ct({url:Zq(e),method:"GET",credentials:t}).then(n=>n.map(Cn)),hW=({id:e,credentials:t})=>ct({url:Qq(e),method:"GET",credentials:t}).then(n=>n.map(Cn)),pW=({id:e,credentials:t})=>ct({url:dH(e),credentials:t}).then(n=>n.map(s=>(s.accounts=s.accounts.map(Cn),s))),mW=({id:e,emoji:t,credentials:n})=>ct({url:fH(e,t),method:"PUT",credentials:n}).then(rn),gW=({id:e,emoji:t,credentials:n})=>ct({url:hH(e,t),method:"DELETE",credentials:n}).then(rn),vW=({credentials:e,userId:t,statusIds:n,comment:s,forward:r})=>ct({url:eH,method:"POST",payload:{account_id:t,status_ids:n,comment:s,forward:r},credentials:e}),bW=({credentials:e,query:t})=>ct({url:iH,params:{q:t,resolve:!0},credentials:e}).then(n=>n.map(Cn)),yW=({credentials:e,q:t,resolve:n,limit:s,offset:r,following:o,type:i})=>{let a=oH;const c=[];t&&c.push(["q",encodeURIComponent(t)]),n&&c.push(["resolve",n]),s&&c.push(["limit",s]),r&&c.push(["offset",r]),o&&c.push(["following",!0]),i&&c.push(["type",i]),c.push(["with_relationships",!0]);const u=Z.map(c,f=>`${f[0]}=${f[1]}`).join("&");return a+=`?${u}`,Be(a,{headers:Je(e)}).then(f=>{if(f.ok)return f;throw new Error("Error fetching search result",f)}).then(f=>f.json()).then(f=>(f.accounts=f.accounts.slice(0,s).map(h=>Cn(h)),f.statuses=f.statuses.slice(0,s).map(h=>rn(h)),f))},_W=({credentials:e})=>ct({url:lH,credentials:e}),wW=({credentials:e})=>ct({url:E_,credentials:e}),SW=({domain:e,credentials:t})=>ct({url:E_,method:"POST",payload:{domain:e},credentials:t}),kW=({domain:e,credentials:t})=>ct({url:E_,method:"DELETE",payload:{domain:e},credentials:t}),$W=({credentials:e,id:t})=>ct({url:hq(t),method:"POST",payload:{id:t},credentials:e}),CW=({credentials:e})=>ct({url:yH,credentials:e}),TW=({credentials:e})=>ct({url:cH,credentials:e}),AW=({id:e,credentials:t})=>ct({url:uH(e),credentials:t,method:"POST"}),W5=({content:e,startsAt:t,endsAt:n,allDay:s})=>{const r={content:e};return typeof t<"u"&&(r.starts_at=t?new Date(t).toISOString():null),typeof n<"u"&&(r.ends_at=n?new Date(n).toISOString():null),typeof s<"u"&&(r.all_day=s),r},EW=({credentials:e,content:t,startsAt:n,endsAt:s,allDay:r})=>ct({url:_H,credentials:e,method:"POST",payload:W5({content:t,startsAt:n,endsAt:s,allDay:r})}),IW=({id:e,credentials:t,content:n,startsAt:s,endsAt:r,allDay:o})=>ct({url:wH(e),credentials:t,method:"PATCH",payload:W5({content:n,startsAt:s,endsAt:r,allDay:o})}),PW=({id:e,credentials:t})=>ct({url:SH(e),credentials:t,method:"DELETE"}),LW=({credentials:e,stream:t,args:n={}},s)=>{const r=new URL(aH,s);return e&&r.searchParams.append("access_token",e),t&&r.searchParams.append("stream",t),Object.entries(n).forEach(([o,i])=>{r.searchParams.append(o,i)}),r},OW=new Set(["update","notification","delete","filters_changed","status.update"]),RW=new Set(["pleroma:chat_update","pleroma:respond"]),MW=({url:e,preprocessor:t=NW,id:n="Unknown",credentials:s})=>{const r=new EventTarget,o=new WebSocket(e);if(!o)throw new Error(`Failed to create socket ${n}`);const i=(c,u,f=h=>h)=>{c.addEventListener(u,h=>
59{r.dispatchEvent(new CustomEvent(u,{detail:f(h)}))})};o.addEventListener("open",c=>{console.debug(`[WS][${n}] Socket connected`,c),s&&o.send(JSON.stringify({type:"pleroma:authenticate",token:s}))}),o.addEventListener("error",c=>{console.debug(`[WS][${n}] Socket errored`,c)}),o.addEventListener("close",c=>{console.debug(`[WS][${n}] Socket disconnected with code ${c.code}`,c)});const a=()=>{r.dispatchEvent(new CustomEvent("pleroma:authenticated"))};return i(o,"open"),i(o,"close"),i(o,"message",c=>t(c,{onAuthenticated:a})),i(o,"error"),r.close=()=>{o.close(1e3,"Shutting down socket")},r.getState=()=>o.readyState,r.subscribe=(c,u={})=>{console.debug(`[WS][${n}] Subscribing to stream ${c} with args`,u),o.send(JSON.stringify({type:"subscribe",stream:c,...u}))},r.unsubscribe=(c,u={})=>{console.debug(`[WS][${n}] Unsubscribing from stream ${c} with args`,u),o.send(JSON.stringify({type:"unsubscribe",stream:c,...u}))},r},NW=(e,{onAuthenticated:t=()=>{}}={})=>{const{data:n}=e;if(!n)return;const s=JSON.parse(n),{event:r,payload:o}=s;if(OW.has(r)||RW.has(r)){if(r==="delete")return{event:r,id:o};const i=o?JSON.parse(o):null;if(r==="pleroma:respond")return i.type==="pleroma:authenticate"&&(i.result==="success"?(console.debug("[WS] Successfully authenticated"),t()):(console.error("[WS] Unable to authenticate:",i.error),e.target.close())),null;if(r==="update")return{event:r,status:rn(i)};if(r==="status.update")return{event:r,status:rn(i)};if(r==="notification")return{event:r,notification:L5(i)};if(r==="pleroma:chat_update")return{event:r,chatUpdate:k_(i)}}else return console.warn("Unknown event",e),null},Ks=Object.freeze({JOINED:1,CLOSED:2,ERROR:3,DISABLED:4,STARTING:5,STARTING_INITIAL:6}),FW=({credentials:e})=>Be(pH,{headers:Je(e)}).then(t=>t.json()).then(t=>({chats:t.map(k_).filter(n=>n)})),DW=({accountId:e,credentials:t})=>ct({url:mH(e),method:"POST",credentials:t}),UW=({id:e,credentials:t,maxId:n,sinceId:s,limit:r=20})=>{let o=U5(e);const i=[n&&`max_id=${n}`,s&&`since_id=${s}`,r&&`limit=${r}`].filter(a=>a).join("&");return o=o+(i?"?"+i:""),ct({url:o,method:"GET",credentials:t})},jW=({id:e,content:t,mediaId:n=null,idempotencyKey:s,credentials:r})=>{const o={content:t};n&&(o.media_id=n);const i={};return s&&(i["idempotency-key"]=s),ct({url:U5(e),method:"POST",payload:o,credentials:r,headers:i})},BW=({id:e,lastReadId:t,credentials:n})=>ct({url:gH(e),method:"POST",payload:{last_read_id:t},credentials:n}),zW=({chatId:e,messageId:t,credentials:n})=>ct({url:vH(e,t),method:"DELETE",credentials:n}),qW=({id:e,state:t,credentials:n})=>Be(bH,{headers:{...Je(n),Accept:"application/json","Content-Type":"application/json"},method:"PATCH",body:JSON.stringify({reports:[{id:e,state:t}]})}).then(s=>{if(s.status>=500)throw Error(s.statusText);return s.status>=400?s.json():s}).then(s=>{if(s.errors)throw Error(s.errors[0].message)}),HW=({credentials:e})=>Be(q5,{headers:Je(e)}).then(t=>t.ok?t.json():{error:t}),VW=({credentials:e})=>Be(TH,{headers:Je(e)}).then(t=>t.ok?t.json():{error:t}),WW=({credentials:e})=>Be(AH,{headers:Je(e)}).then(t=>t.ok?t.json():{error:t}),GW=({credentials:e,payload:t})=>Be(q5,{headers:{Accept:"application/json","Content-Type":"application/json",...Je(e)},method:"POST",body:JSON.stringify(t)}).then(n=>n.ok?n.json():{error:n}),KW=({credentials:e,payload:t})=>Be(EH,{headers:{Accept:"application/json","Content-Type":"application/json",...Je(e)},method:"POST",body:JSON.stringify(t)}).then(n=>n.ok?n.json():{error:n}),xW=({accountId:e,limit:t=1})=>{let n=kH(e);const s=[["limit",t]],r=Z.map(s,o=>`${o[0]}=${o[1]}`).join("&");return n+=`?${r}`,Be(n,{}).then(o=>o.ok?o.json():{error:o})},YW=({name:e})=>Be(I_(e),{method:"DELETE"}),XW=()=>Be(IH,{method:"POST"}),JW=()=>Be(PH),ZW=({name:e})=>Be(I_(e),{method:"POST"}),QW=({page:e,pageSize:t})=>Be(LH(e,t)),eG=({instance:e,page:t,pageSize:n})=>(e.startsWith("http")||(e="https://"+e),Be(MH(e,t,n),{headers:{"Content-Type":"application/json"}})),tG=({instance:e,packName:t,as:n})=>Be(OH,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e,name:t,as:n})}),nG=({url:e,packName:t,file:n})=>{const s=new FormData;return n&&s.set("file",n),e&&s.set("url",e),s.set("name",t),Be(RH,{method:"POST",body:s})},sG=({name:e,newData:t})=>Be(I_(e),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({metadata:t})}),rG=({packName:e,file:t,shortcode:n,filename:s})=>{const r=new FormData;return s.trim()!==""&&r.set("filename",s),n.trim()!==""&&r.set("shortcode",n),r.set("file",t),Be(P_(e),{method:"POST",body:r})}
59,oG=({packName:e,shortcode:t,newShortcode:n,newFilename:s,force:r})=>Be(P_(e),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({shortcode:t,new_shortcode:n,new_filename:s,force:r})}),iG=({packName:e,shortcode:t})=>Be(`${P_(e)}&shortcode=${t}`,{method:"DELETE"}),aG=({credentials:e})=>Be(B5,{headers:Je(e)}).then(n=>n.json()),lG=({name:e,emoji:t,credentials:n})=>{const s=B5,r=Je(n);return r["Content-Type"]="application/json",Be(s,{headers:r,method:"POST",body:JSON.stringify({name:e,emoji:t})}).then(o=>o.json())},cG=({folderId:e,name:t,emoji:n,credentials:s})=>{const r=z5(e),o=Je(s);return o["Content-Type"]="application/json",Be(r,{headers:o,method:"PATCH",body:JSON.stringify({name:t,emoji:n})}).then(i=>i.json())},uG=({folderId:e,credentials:t})=>{const n=z5(e);return Be(n,{method:"DELETE",headers:Je(t)})},Ln={verifyCredentials:AV,fetchTimeline:CV,fetchPinnedStatuses:TV,fetchConversation:pV,fetchStatus:mV,fetchStatusSource:gV,fetchStatusHistory:vV,fetchFriends:V5,exportFriends:sV,fetchFollowers:rV,followUser:qH,unfollowUser:HH,pinOwnStatus:WH,unpinOwnStatus:GH,muteConversation:KH,unmuteConversation:xH,blockUser:YH,unblockUser:XH,removeUserFromFollowers:JH,editUserNote:ZH,fetchUser:H5,fetchUserByName:tV,fetchUserRelationship:nV,favorite:EV,unfavorite:IV,retweet:PV,unretweet:LV,bookmarkStatus:OV,unbookmarkStatus:RV,postStatus:MV,editStatus:NV,deleteStatus:FV,uploadMedia:DV,setMediaDescription:UV,fetchMutes:eW,muteUser:tW,unmuteUser:nW,fetchBlocks:sW,fetchOAuthTokens:iW,revokeOAuthToken:aW,tagUser:bV,untagUser:yV,deleteUser:$V,addRight:_V,deleteRight:wV,activateUser:SV,deactivateUser:kV,register:BH,getCaptcha:zH,updateProfileImages:DH,updateProfile:UH,updateProfileJSON:jH,importMutes:jV,importBlocks:BV,importFollows:zV,deleteAccount:qV,changeEmail:HV,moveAccount:VV,addAlias:WV,deleteAlias:GV,listAliases:KV,changePassword:xV,settingsMFA:YV,mfaDisableOTP:XV,generateMfaBackupCodes:QV,mfaSetupOTP:ZV,mfaConfirmOTP:JV,addBackup:rW,listBackups:oW,fetchFollowRequests:oV,fetchLists:iV,createList:aV,getList:lV,updateList:cV,getListAccounts:uV,addAccountsToList:dV,removeAccountsFromList:fV,deleteList:hV,approveUser:QH,denyUser:eV,suggestions:lW,markNotificationsAsSeen:cW,dismissNotification:$W,vote:uW,fetchPoll:dW,fetchFavoritedByUsers:fW,fetchRebloggedByUsers:hW,fetchEmojiReactions:pW,reactWithEmoji:mW,unreactWithEmoji:gW,reportUser:vW,updateNotificationSettings:FH,search2:yW,searchUsers:bW,fetchKnownDomains:_W,fetchDomainMutes:wW,muteDomain:SW,unmuteDomain:kW,chats:FW,getOrCreateChat:DW,chatMessages:UW,sendChatMessage:jW,readChat:BW,deleteChatMessage:zW,setReportState:qW,fetchUserInLists:VH,fetchAnnouncements:TW,dismissAnnouncement:AW,postAnnouncement:EW,editAnnouncement:IW,deleteAnnouncement:PW,fetchScrobbles:xW,adminFetchAnnouncements:CW,fetchInstanceDBConfig:HW,fetchInstanceConfigDescriptions:VW,fetchAvailableFrontends:WW,pushInstanceDBConfig:GW,installFrontend:KW,importEmojiFromFS:JW,reloadEmoji:XW,listEmojiPacks:QW,createEmojiPack:ZW,deleteEmojiPack:YW,saveEmojiPackMetadata:sG,addNewEmojiFile:rG,updateEmojiFile:oG,deleteEmojiFile:iG,listRemoteEmojiPacks:eG,downloadRemoteEmojiPack:tG,downloadRemoteEmojiPackZIP:nG,fetchBookmarkFolders:aG,createBookmarkFolder:lG,updateBookmarkFolder:cG,deleteBookmarkFolder:uG};/*! js-cookie v3.0.5 | MIT */function Tf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)e[s]=n[s]}return e}var dG={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function W0(e,t){function n(r,o,i){if(!(typeof document>"u")){i=Tf({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,i[c]!==!0&&(a+="="+i[c].split(";")[0]));return document.cookie=r+"="+e.write(o,r)+a}}function s(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var o=document.cookie?document.cookie.split("; "):[],i={},a=0;a<o.length;a++){var c=o[a].split("="),u=c.slice(1).join("=");try{var f=decodeURIComponent(c[0]);if(i[f]=e.read(u,f),r===f)break}catch{}}return r?i[r]:i}}return Object.create({set:n,get:s,remove:function(r,o){n(r,"",Tf({},o,{expires:-1}))},withAttributes:function(r){return W0(this.converter,Tf({},this.attributes,r))},withConverter:function(r){return W0(Tf({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var fG=W0(dG,{path:"/"});const hG={name:"Alert",selector:".alert",validInnerComponents:["Text","Icon","Link","Border","ButtonUnstyled"],variants:{normal:".neutral",error:".error",warning:".warning",success:".success"},editor:{border:1,aspect:"3 / 1"},defaultRules:[{directives:{background:"--text",opacity:.5,blur:"9px"}},{parent:{component:"Alert"},component:"Border",directives:{textColor:"--parent"}},{variant:"error",directives:{background:"--cRed"}},{variant:"warning",directives:{background:"--cOrange"}},{variant:"success",directives:{background:"--cGreen"}}]},pG=Object.freeze(Object.defineProperty({__proto__:null,default:hG},Symbol.toStringTag,{value:"Module"})),mG={name:"Badge",selector:".badge",validInnerComponents:["Text","Icon"],variants:{notification:".-notification"},defaultRules:[{component:"Root",directives:{"--badgeNotification":"color | --cRed"}},{directives:{background:"--cGreen"}},{variant:"notification",directives:{background:"--cRed"}}]},gG=Object.freeze(Object.defineProperty({__proto__:null,default:mG},Symbol.toStringTag,{value:"Module"})),vG={name:"Border",selector:"/*border*/",virtual:!0,defaultRules:[{directives:{textColor:"$mod(--parent 10)",textAuto:"no-auto"}}]},bG=Object.freeze(Object.defineProperty({__proto__:null,default:vG},Symbol.toStringTag,{value:"Module"})),yG={name:"Button",selector:".button-default",states:{toggled:".toggled",focused:":focus-within",pressed:":active",hover:":is(:hover, :focus-visible):not(:disabled)",disabled:":disabled"},variants:{danger:".-danger",transparent:".-transparent"},editor:{aspect:"2 / 1"},validInnerComponents:["Text","Icon"],defaultRules:[{component:"Root",directives:{"--buttonDefaultHoverGlow":"shadow | 0 0 1 2 --text / 0.4","--buttonDefaultFocusGlow":"shadow | 0 0 1 2 --link / 0.5","--buttonDefaultShadow":"shadow | 0 0 2 #000000","--buttonDefaultBevel":"shadow | $borderSide(#FFFFFF top 0.2 1), $borderSide(#000000 bottom 0.2 1)","--buttonPressedBevel":"shadow | inset 0 0 4 #000000, $borderSide(#FFFFFF bottom 0.2 1), $borderSide(#000000 top 0.2 1)"}},{directives:{background:"--fg",shadow:["--buttonDefaultShadow","--buttonDefaultBevel"],roundness:3}},{variant:"danger",directives:{background:"--cRed"}},{variant:"transparent",directives:{opacity:.5}},{component:"Text",parent:{component:"Button",variant:"transparent"},directives:{textColor:"--text"}},{component:"Icon",parent:{component:"Button",variant:"transparent"},directives:{textColor:"--text"}},{state:["hover"],directives:{shadow:["--buttonDefaultHoverGlow","--buttonDefaultBevel"]}},{state:["focused"],directives:{shadow:["--buttonDefaultFocusGlow","--buttonDefaultBevel"]}},{state:["pressed"],directives:{shadow:["--buttonDefaultShadow","--buttonPressedBevel"]}},{state:["pressed","hover"],directives:{shadow:["--buttonPressedBevel","--buttonDefaultHoverGlow"]}},{state:["toggled"],directives:{background:"--accent,-24.2",shadow:["--buttonDefaultShadow","--buttonPressedBevel"]}},{state:["toggled","hover"],directives:{background:"--accent,-24.2",shadow:["--buttonDefaultHoverGlow","--buttonPressedBevel"]}},{state:["toggled","focused"],directives:{background:"--accent,-24.2",shadow:["--buttonDefaultHoverGlow","--buttonPressedBevel"]}},{state:["toggled","hover","focused"],directives:{background:"--accent,-24.2",shadow:["--buttonDefaultHoverGlow","--buttonPressedBevel"]}},{state:["toggled","disabled"],directives:{background:"$blend(--accent 0.25 --parent)",shadow:["--buttonPressedBevel"]}},{state:["disabled"],directives:{background:"$blend(--inheritedBackgroun
59d 0.25 --parent)",shadow:["--buttonDefaultBevel"]}},{component:"Text",parent:{component:"Button",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}},{component:"Icon",parent:{component:"Button",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}}]},_G=Object.freeze(Object.defineProperty({__proto__:null,default:yG},Symbol.toStringTag,{value:"Module"})),wG={name:"ButtonUnstyled",selector:".button-unstyled",notEditable:!0,transparent:!0,states:{toggled:".toggled",disabled:":disabled",hover:":is(:hover, :focus-visible):not(:disabled)",focused:":focus-within:not(:is(:focus-visible))"},validInnerComponents:["Text","Link","Icon","Badge"],defaultRules:[{directives:{shadow:[]}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["hover"]},directives:{textColor:"--parent--text"}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["toggled"]},directives:{textColor:"--parent--text"}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["toggled","hover"]},directives:{textColor:"--parent--text"}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["toggled","focused"]},directives:{textColor:"--parent--text"}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["toggled","focused","hover"]},directives:{textColor:"--parent--text"}},{component:"Text",parent:{component:"ButtonUnstyled",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}}]},SG=Object.freeze(Object.defineProperty({__proto__:null,default:wG},Symbol.toStringTag,{value:"Module"})),kG={name:"Chat",selector:".chat-message-list",validInnerComponents:["Text","Link","Icon","Avatar","ChatMessage"],defaultRules:[{directives:{background:"--bg",blur:"5px"}}]},$G=Object.freeze(Object.defineProperty({__proto__:null,default:kG},Symbol.toStringTag,{value:"Module"})),CG={name:"ChatMessage",selector:".chat-message",variants:{outgoing:".outgoing"},validInnerComponents:["Text","Icon","Border","PollGraph"],defaultRules:[{directives:{background:"--bg, 2",backgroundNoCssColor:"yes"}},{variant:"outgoing",directives:{background:"--bg, 5"}}]},TG=Object.freeze(Object.defineProperty({__proto__:null,default:CG},Symbol.toStringTag,{value:"Module"})),AG={name:"FunText",selector:"/*fun-text*/",virtual:!0,variants:{greentext:".greentext",cyantext:".cyantext"},states:{faint:".faint"},defaultRules:[{directives:{textColor:"--text",textAuto:"preserve"}},{state:["faint"],directives:{textOpacity:.5}},{variant:"greentext",directives:{textColor:"--cGreen",textAuto:"preserve"}},{variant:"cyantext",directives:{textColor:"--cBlue",textAuto:"preserve"}}]},EG=Object.freeze(Object.defineProperty({__proto__:null,default:AG},Symbol.toStringTag,{value:"Module"})),IG={name:"Icon",virtual:!0,selector:".svg-inline--fa",defaultRules:[{component:"Icon",directives:{textColor:"$blend(--stack 0.5 --parent--text)",textAuto:"no-auto"}}]},PG=Object.freeze(Object.defineProperty({__proto__:null,default:IG},Symbol.toStringTag,{value:"Module"})),LG={name:"Input",selector:".input",states:{hover:":is(:hover, :focus-visible):not(.disabled)",focused:":focus-within",disabled:".disabled"},variants:{checkbox:".-checkbox",radio:".-radio"},validInnerComponents:["Text","Icon"],defaultRules:[{component:"Root",directives:{"--defaultInputBevel":"shadow | $borderSide(#FFFFFF bottom 0.2), $borderSide(#000000 top 0.2), inset 0 0 2 #000000 / 0.15, 1 0 1 1 --text / 0.15, -1 0 1 1 --text / 0.15","--defaultInputHoverGlow":"shadow | 0 0 4 --text / 0.5","--defaultInputFocusGlow":"shadow | 0 0 4 4 --link / 0.5"}},{variant:"checkbox",directives:{roundness:1}},{directives:{"--font":"generic | inherit",background:"--fg, -5",roundness:3,shadow:[{x:0,y:0,blur:2,spread:0,color:"#000000",alpha:1},"--defaultInputBevel"]}},{state:["hover"],directives:{shadow:["--defaultInputHoverGlow","--defaultInputBevel"]}},{state:["focused"],directives:{shadow:["--defaultInputFocusGlow","--defaultInputBevel"]}},{state:["focused","hover"],directives:{shadow:["--defaultInputFocusGlow","--defaultInputHoverGlow","--defaultInputBevel"]}},{state:["disabled"],directives:{background:"--parent"}},{component:"Text",parent:{component:"Input",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}},{component:"Icon",parent:{component:"Input",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}}]},OG=Object.freeze(Object.defineProperty({__proto__:null,default:LG},Symbol.toStringTag,{value:"Module"})),RG={name:"Link",selector:"a",virtual:!0,states:{faint:".faint"},defaultRules:[{component:"Link",directives:{textColor:"--link"}},{component:"Link",state:["faint"],directives:{textOpacity:.5,textOpacityMode:"fake"}}]},MG=Object.freeze(Object.defineProperty({__proto__:null,default:RG},Symbol.toStringTag,{value:"Module"})),NG={name:"MenuItem",selector:".menu-item",validInnerComponents:["Text","Icon","Border"],states:{hover:":is(:hover, :focus-visible, :has(:focus-visible)):not(.disabled)",active:".-active",disabled:".disabled"},defaultRules:[{directives:{background:"--bg",opacity:0}
59},{state:["hover"],directives:{background:"$mod(--bg 5)",opacity:1}},{state:["active"],directives:{background:"$mod(--bg 10)",opacity:1}},{state:["active","hover"],directives:{background:"$mod(--bg 15)",opacity:1}},{component:"Text",parent:{component:"MenuItem",state:["hover"]},directives:{textColor:"--link",textAuto:"no-preserve"}},{component:"Text",parent:{component:"MenuItem",state:["active"]},directives:{textColor:"--link",textAuto:"no-preserve"}},{component:"Icon",parent:{component:"MenuItem",state:["active"]},directives:{textColor:"--link",textAuto:"no-preserve"}},{component:"Icon",parent:{component:"MenuItem",state:["hover"]},directives:{textColor:"--link",textAuto:"no-preserve"}},{component:"Text",parent:{component:"MenuItem",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}},{component:"Icon",parent:{component:"MenuItem",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}}]},FG=Object.freeze(Object.defineProperty({__proto__:null,default:NG},Symbol.toStringTag,{value:"Module"})),DG={name:"MobileDrawer",selector:".mobile-drawer",validInnerComponents:["MenuItem"],defaultRules:[{directives:{background:"--bg",backgroundNoCssColor:"yes"}}]},UG=Object.freeze(Object.defineProperty({__proto__:null,default:DG},Symbol.toStringTag,{value:"Module"})),jG={name:"Modals",selector:[".modal-view","#modal",".shout-panel"],lazy:!0,notEditable:!0,validInnerComponents:["Panel"],defaultRules:[]},BG=Object.freeze(Object.defineProperty({__proto__:null,default:jG},Symbol.toStringTag,{value:"Module"})),zG={name:"Notification",selector:".Notification",validInnerComponents:["Text","Link","Icon","Border","Avatar","PollGraph"],defaultRules:[]},qG=Object.freeze(Object.defineProperty({__proto__:null,default:zG},Symbol.toStringTag,{value:"Module"})),HG={name:"Panel",selector:".panel",validInnerComponents:["Text","Link","Icon","Border","PanelHeader","Post","Notification","MenuItem"],validInnerComponentsLite:["Text","Link","Icon","Border","PanelHeader"],defaultRules:[{directives:{backgroundNoCssColor:"yes",background:"--bg",roundness:3,blur:"5px",shadow:[{x:0,y:0,blur:3,spread:0,color:"#000000",alpha:.5},{x:0,y:4,blur:6,spread:3,color:"#000000",alpha:.3}]}}]},VG=Object.freeze(Object.defineProperty({__proto__:null,default:HG},Symbol.toStringTag,{value:"Module"})),WG={name:"PanelHeader",selector:".panel-heading",validInnerComponents:["Text","Link","Icon","Button","ButtonUnstyled","Alert"],defaultRules:[{component:"PanelHeader",directives:{backgroundNoCssColor:"yes",background:"--fg",shadow:[{x:0,y:1,blur:3,spread:0,color:"#000000",alpha:.4},{x:0,y:1,blur:0,spread:0,color:"#ffffff",alpha:.2,inset:!0}]}}]},GG=Object.freeze(Object.defineProperty({__proto__:null,default:WG},Symbol.toStringTag,{value:"Module"})),KG={name:"PollGraph",selector:".result-fill",defaultRules:[{directives:{background:"--accent",opacity:.5}}]},xG=Object.freeze(Object.defineProperty({__proto__:null,default:KG},Symbol.toStringTag,{value:"Module"})),YG={name:"Popover",selector:".popover",lazy:!0,variants:{modal:".modal"},validInnerComponents:["MenuItem"],defaultRules:[{directives:{background:"--bg",blur:"10px",shadow:[{x:2,y:2,blur:3,spread:0,color:"#000000",alpha:.5}]}}]},XG=Object.freeze(Object.defineProperty({__proto__:null,default:YG},Symbol.toStringTag,{value:"Module"})),JG={name:"Root",selector:":root",notEditable:!0,defaultRules:[{directives:{"--bg":"color | #121a24","--fg":"color | #182230","--text":"color | #b9b9ba","--link":"color | #d8a070","--accent":"color | #d8a070","--cRed":"color | #FF0000","--cBlue":"color | #0095ff","--cGreen":"color | #0fa00f","--cOrange":"color | #ffa500","--font":"generic | sans-serif","--monoFont":"generic | monospace","--wallpaper":"color | --bg, -2","--selectionBackground":"color | --accent","--selectionText":"color | $textColor(--accent --text no-preserve)"}}]},ZG=Object.freeze(Object.defineProperty({__proto__:null,default:JG},Symbol.toStringTag,{value:"Module"})),QG={name:"Scrollbar",selector:["::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-resizer"],notEditable:!0,defaultRules:[{directives:{background:"--wallpaper"}}]},eK=Object.freeze(Object.defineProperty({__proto__:null,default:QG},Symbol.toStringTag,{value:"Module"})),Sh=(e,t)=>({x:0,y:e?1:-1,blur:0,spread:0,color:t?"#000000":"#FFFFFF",alpha:.2,inset:!0}),Rg=[Sh(!0,!1),Sh(!1,!0)],Af=[Sh(!0,!0),Sh(!1,!1)],Mg={x:0,y:0,blur:2,spread:0,color:"#000000",alpha:1},Ng={x:0,y:0,blur:4,spread:0,color:"--text",alpha:1},tK={name:"ScrollbarElement",selector:"::-webkit-scrollbar-button",notEditable:!0,states:{pressed:":active",hover:":is(:hover, :focus-visible, :has(:focus-visible)):not(:disabled)",disabled:":disabled"},validInnerComponents:["Text"],defaultRules:[{directives:{background:"--fg",shadow:[Mg,...Rg],roundness:3}},{state:["hover"],directives:{shadow:[Ng,...Rg]}},{state:["pressed"],directives:{shadow:[Mg,...Af]}},{state:["hover","pressed"],directives:{shadow:[Ng,...Af]}},{state:["toggled"],directives:{background:"--accent,-24.2",shadow:[Mg,...Af]}},{state:["toggled","hover"],directives:{background:"--accent,-24.2",shadow:[Ng,...Af]}},{state:["disabled"],directives:{background:"$blend(--inheritedBackgroun
59d 0.25 --parent)",shadow:[...Rg]}},{component:"Text",parent:{component:"Button",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}}]},nK=Object.freeze(Object.defineProperty({__proto__:null,default:tK},Symbol.toStringTag,{value:"Module"})),sK={name:"Post",selector:".Status",states:{selected:".-focused"},validInnerComponents:["Text","Link","Icon","Border","Avatar","PollGraph"],defaultRules:[{directives:{background:"--bg"}},{state:["selected"],directives:{background:"--inheritedBackground, 10"}}]},rK=Object.freeze(Object.defineProperty({__proto__:null,default:sK},Symbol.toStringTag,{value:"Module"})),oK={name:"Tab",selector:".tab",states:{active:".active",hover:":is(:hover, :focus-visible, :has(:focus-visible)):not(.disabled)",disabled:".disabled"},validInnerComponents:["Text","Icon"],defaultRules:[{directives:{background:"--fg",shadow:["--buttonDefaultShadow","--buttonDefaultBevel"],roundness:3}},{state:["hover"],directives:{shadow:["--buttonDefaultHoverGlow","--buttonDefaultBevel"]}},{state:["active"],directives:{opacity:0}},{state:["hover","active"],directives:{shadow:["--buttonDefaultShadow","--buttonDefaultBevel"]}},{state:["disabled"],directives:{background:"$blend(--inheritedBackground 0.25 --parent)",shadow:["--buttonDefaultBevel"]}},{component:"Text",parent:{component:"Tab",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}},{component:"Icon",parent:{component:"Tab",state:["active"]},directives:{textColor:"--text"}},{component:"Icon",parent:{component:"Tab",state:["active","hover"]},directives:{textColor:"--text"}}]},iK=Object.freeze(Object.defineProperty({__proto__:null,default:oK},Symbol.toStringTag,{value:"Module"})),aK={name:"Text",selector:"/*text*/",virtual:!0,states:{faint:".faint"},defaultRules:[{directives:{textColor:"--text",textAuto:"no-preserve"}},{state:["faint"],directives:{textOpacity:.5}}]},lK=Object.freeze(Object.defineProperty({__proto__:null,default:aK},Symbol.toStringTag,{value:"Module"})),cK={name:"TopBar",selector:"nav",validInnerComponents:["Link","Text","Icon","Button","ButtonUnstyled","Input","Badge"],defaultRules:[{directives:{background:"--fg",shadow:[{x:0,y:1,blur:4,spread:0,color:"#000000",alpha:.4},{x:0,y:2,blur:7,spread:0,color:"#000000",alpha:.3}]}},{component:"Link",parent:{component:"TopBar"},directives:{textColor:"--text"}},{component:"Icon",parent:{component:"ButtonUnstyled",parent:{component:"TopBar"}},directives:{textColor:"--parent--text"}}]},uK=Object.freeze(Object.defineProperty({__proto__:null,default:cK},Symbol.toStringTag,{value:"Module"})),dK={name:"Underlay",selector:"#content",outOfTreeSelector:".underlay",validInnerComponents:["Panel"],defaultRules:[{directives:{background:"#000000",opacity:.2}}]},fK=Object.freeze(Object.defineProperty({__proto__:null,default:dK},Symbol.toStringTag,{value:"Module"})),hK={name:"Avatar",selector:".Avatar",variants:{compact:".-compact"},defaultRules:[{directives:{roundness:3,shadow:[{x:0,y:1,blur:4,spread:0,color:"#000000",alpha:.2}]}}]},pK=Object.freeze(Object.defineProperty({__proto__:null,default:hK},Symbol.toStringTag,{value:"Module"})),mK={name:"UserCard",selector:".user-card",notEditable:!0,defaultRules:[{directives:{"--profileTint":"color | $alpha(--background 1)"}}]},gK=Object.freeze(Object.defineProperty({__proto__:null,default:mK},Symbol.toStringTag,{value:"Module"})),vK={A:{X:1.0985*100,Y:1*100,Z:.35585*100},B:{X:.99072*100,Y:1*100,Z:.85223*100},C:{X:.98074*100,Y:1*100,Z:1.18232*100},D50:{X:.96422*100,Y:1*100,Z:.82521*100},D55:{X:.95682*100,Y:1*100,Z:.92149*100},D65:{X:.95047*100,Y:1*100,Z:1.08883*100},D75:{X:.94972*100,Y:1*100,Z:1.22638*100},E:{X:1*100,Y:1*100,Z:1*100},F2:{X:.99186*100,Y:1*100,Z:.67393*100},F7:{X:.95041*100,Y:1*100,Z:1.08747*100},F11:{X:1.00962*100,Y:1*100,Z:.6435*100}};function L_(e){return vK[e]}const bK={BRADFORD:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],INVERSE_BRADFORD:[[.9869929,-.1470543,.1599627],[.4323053,.5183603,.0492912],[-.0085287,.0400428,.9684867]],SRGB_XYZ:[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],INVERSE_SRGB_XYZ:[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]]};function zl(e){return bK[e]}const fr=function(e,t){const n=new Set(Object.keys(e));return t.every(s=>n.has(s))},Fg=(e,t)=>
59typeof e=="string"&&e.slice(0,t.length)===t,O_={hex:e=>Fg(e,"#"),rgb:e=>fr(e,["r","g","b"]),cssrgb:e=>Fg(e,"rgb("),hsl:e=>fr(e,["h","s","l"]),csshsl:e=>Fg(e,"hsl("),hsv:e=>fr(e,["h","s","v"]),cmyk:e=>fr(e,["c","m","y","k"]),yiq:e=>fr(e,["y","i","q"]),XYZ:e=>fr(e,["X","Y","Z"]),xyY:e=>fr(e,["x","y","Y"]),lms:e=>fr(e,["rho","gamma","beta"]),cielab:e=>fr(e,["L","a","b"]),cieluv:e=>fr(e,["L","u","v"]),cielch:e=>fr(e,["L","C","h"]),hsluv:e=>fr(e,["hu","s","l"])},yK=Object.keys(O_);function _K(e){const t=yK.find(n=>O_[n](e));if(!t)throw new Error("No type found for color "+e);return t}const G5=.008856,G0=903.3,Dg=L_("D65"),ak=e=>Math.pow(e,3)>G5?Math.pow(e,3):(116*e-16)/G0,wK={XYZ:e=>{const t=(e.L+16)/116,n=e.a/500+t,s=t-e.b/200,r=ak(n),o=ak(s),i=e.L>G0*G5?Math.pow(t,3):e.L/G0;return{X:r*Dg.X,Y:i*Dg.Y,Z:o*Dg.Z}}};function K0(e){return e*(Math.PI/180)}const SK={cieluv:e=>{const t=K0(e.h),n=e.C*Math.cos(t),s=e.C*Math.sin(t);return{L:e.L,u:n,v:s}},hsluv:e=>{if(e.L>99.9999999)return{hu:e.h,s:0,l:100};if(e.L<1e-8)return{hu:e.h,s:0,l:0};const t=.008856,n=903.3,s=(e.L+16)/1560896,r=s>t?s:e.L/n,o=zl("INVERSE_SRGB_XYZ");let i=[];for(let f=0;f<3;f++){let h=o[f][0],v=o[f][1],y=o[f][2];for(let S=0;S<2;S++){let C=(284517*h-94839*y)*r,I=(838422*y+769860*v+731718*h)*e.L*r-769860*S*e.L,$=(632260*y-126452*v)*r+126452*S;i.push({m:C/$,b:I/$})}}var a=Number.MAX_VALUE;let c=K0(e.h);i.forEach(f=>{let h=f.b/(Math.sin(c)-f.m*Math.cos(c));h>=0&&(a=Math.min(a,h))});let u=a;return{hu:e.h,s:e.C/u*100,l:e.L}}};function kK(e){return e*(180/Math.PI)}const $K={XYZ:e=>{const s=L_("D65"),r=S=>S.X*4/(S.X+15*S.Y+3*S.Z),o=S=>S.Y*9/(S.X+15*S.Y+3*S.Z),i=r(s),a=o(s),c=1/3*(52*e.L/(e.u+13*e.L*i)-1),u=e.L>903.3*.008856?Math.pow((e.L+16)/116,3):e.L/903.3,f=-5*u,v=(u*(39*e.L/(e.v+13*e.L*a)-5)-f)/(c- -1/3),y=v*c+f;return{X:v*100,Y:u*100,Z:y*100}},cielch:e=>{const t=Math.sqrt(Math.pow(e.u,2)+Math.pow(e.v,2));let n=Math.atan2(e.v,e.u);return n<0&&(n+=2*Math.PI),n=kK(n),{L:e.L,C:t,h:n}}},lk=e=>{var t=255*(1-e.c)*(1-e.k),n=255*(1-e.m)*(1-e.k),s=255*(1-e.y)*(1-e.k);return{r:t,g:n,b:s}},CK={rgb:lk,cssrgb:e=>{const{r:t,g:n,b:s}=lk(e);return"rgb("+Math.round(t)+","+Math.round(n)+","+Math.round(s)+")"}},TK={hsl:e=>{const t=e.replace(/(hsl\(|\)|%|[\s]*)/g,"").split(",").map(n=>parseInt(n,10));return{h:t[0],s:t[1],l:t[2]}}},AK={rgb:e=>{const t=e.replace(/((rgb\(|\))|[\s]*)/g,"").split(",").map(n=>parseInt(n,10));return{r:t[0],g:t[1],b:t[2]}}},EK={rgb:e=>{const t=e.replace("#","").match(/.{2}/g).map(n=>parseInt(n,16));return{r:t[0],g:t[1],b:t[2]}}};function IK(e,t){return(e%t+t)%t}const PK={rgb:e=>{if(e.s===0){var t=e.l/100*255;return{r:t,g:t,b:t}}else{var n,s,r;e.l>=50?n=e.l/100+e.s/100-e.l/100*(e.s/100):n=e.l/100*(1+e.s/100),s=2*(e.l/100)-n,r=e.h/360;var o=(r+.333)%1,i=r,a=IK(r-.333,1),c,u,f;return 6*o<1?c=s+(n-s)*6*o:2*o<1?c=n:3*o<2?c=s+(n-s)*((.666-o)*6):c=s,6*i<1?u=s+(n-s)*6*i:2*i<1?u=n:3*i<2?u=s+(n-s)*((.666-i)*6):u=s,6*a<1?f=s+(n-s)*6*a:2*a<1?f=n:3*a<2?f=s+(n-s)*((.666-a)*6):f=s,c<0&&(c=0),u<0&&(u=0),f<0&&(f=0),{r:c*255,g:u*255,b:f*255}}},csshsl:e=>"hsl("+Math.round(e.h)+","+Math.round(e.s)+"%,"+Math.round(e.l)+"%)",hsv:e=>{const t=Object.assign({},e,{s:e.s/100,l:e.l/100});var n=t.s*(t.l<.5?t.l:1-t.l),s=t.h,r=2*n/(t.l+n),o=t.l+n;return{h:s,s:r*100,v:o*100}}},LK={cielch:e=>{if(e.L>99.9999999)return{L:100,C:0,h:e.hu};if(e.L<1e-8)return{L:0,C:0,h:e.hu};const t=.008856,n=903.3,s=(e.l+16)/1560896,r=s>t?s:e.l/n,o=zl("INVERSE_SRGB_XYZ");let i=[];for(let f=0;f<3;f++){let h=o[f][0],v=o[f][1],y=o[f][2];for(let S=0;S<2;S++){let C=(284517*h-94839*y)*r,I=(838422*y+769860*v+731718*h)*e.l*r-769860*S*e.l,$=(632260*y-126452*v)*r+126452*S;i.push({m:C/$,b:I/$})}}var a=Number.MAX_VALUE;let c=K0(e.hu);i.forEach(f=>{let h=f.b/(Math.sin(c)-f.m*Math.cos(c));h>=0&&(a=Math.min(a,h))});let u=a;return{L:e.l,C:u/100*e.s,h:e.hu}}},OK={hsl:e=>{const t=Object.assign({},e,{h:e.h/360,s:e.s/100,v:e.v/100});let n=t.h,s;(2-t.s)*t.v<1?s=t.s*t.v/((2-t.s)*t.v):s=t.s*t.v/(2-(2-t.s)*t.v);let r=(2-t.s)*t.v/2;return{h:n*360,s:s*100,l:r*100}}},RK={XYZ:e=>{const t=[e.rho,e.gamma,e.beta],s=zl("INVERSE_BRADFORD").map(r=>t.reduce((o,i,a)=>r[a]*i+o,0));return{X:s[0]*100,Y:s[1]*100,Z:s[2]*100}}};function ql(e,t){return e<t[0]?e=t[0]:e>t[1]&&(e=t[1]),e}const Ug=e=>ql(e,[0,255]);function MK(e){return{r:Ug(e.r),g:Ug(e.g),b:Ug(e.b)}}
59function ck(e){if(Math.cbrt)return Math.cbrt(e);var t=Math.pow(Math.abs(e),.3333333333333333);return e<0?-t:t}const uk=.008856,dk=903.3,Sl=L_("D65"),K5={rgb:e=>{let t=[e.X,e.Y,e.Z].map(a=>a/100),s=zl("INVERSE_SRGB_XYZ").map(a=>t.reduce((c,u,f)=>a[f]*u+c,0)),[r,o,i]=s.map(a=>a<=.0031308?a*12.92:1.055*Math.pow(a,1/2.4)-.055).map(a=>a*255);return MK({r,g:o,b:i})},lms:e=>{let t=[e.X,e.Y,e.Z].map(r=>r/100),s=zl("BRADFORD").map(r=>t.reduce((o,i,a)=>r[a]*i+o,0));return{rho:s[0],gamma:s[1],beta:s[2]}},cielab:e=>{const t=e.X/Sl.X,n=e.Y/Sl.Y,s=e.Z/Sl.Z,r=c=>c>uk?ck(c):(dk*c+16)/116,o=r(t),i=r(n),a=r(s);return{L:116*i-16,a:500*(o-i),b:200*(i-a)}},cieluv:e=>{const t=e.Y/Sl.Y,n=t>uk?116*ck(t)-16:dk*t,s=a=>a.X*4/(a.X+15*a.Y+3*a.Z),r=a=>a.Y*9/(a.X+15*a.Y+3*a.Z),o=13*n*(s(e)-s(Sl)),i=13*n*(r(e)-r(Sl));return{L:n,u:o,v:i}},xyY:e=>{const t=e.X/(e.X+e.Y+e.Z),n=e.Y/(e.X+e.Y+e.Z);return{x:t,y:n,Y:e.Y}}},{lms:NK,cielab:FK,cieluv:DK,xyY:UK}=K5,fk=e=>{var t=e.r/255,n=e.g/255,s=e.b/255,r=[t,n,s].sort(),o=(r[0]+r[2])/2*100,i,a;return r[0]===r[2]?(i=0,a=0):(o>=50?i=(r[2]-r[0])/(2-r[2]-r[0])*100:i=(r[2]-r[0])/(r[2]+r[0])*100,r[2]===t?a=(n-s)/(r[2]-r[0])*60:r[2]===n?a=(2+(s-t)/(r[2]-r[0]))*60:a=(4+(t-n)/(r[2]-r[0]))*60,a<0?a+=360:a>360&&(a=a%360)),{h:a,s:i,l:o}},jK=e=>DK(au(e)),au=e=>{let n=[e.r,e.g,e.b].map(a=>a/255).map(a=>a<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)),s=zl("SRGB_XYZ"),[r,o,i]=s.map(a=>n.reduce((c,u,f)=>a[f]*u+c,0)).map(a=>a*100);return{X:r,Y:o,Z:i}},BK={hex:e=>{var t=Math.round(e.r).toString(16);t.length===1&&(t="0"+t);var n=Math.round(e.g).toString(16);n.length===1&&(n="0"+n);var s=Math.round(e.b).toString(16);return s.length===1&&(s="0"+s),"#"+t+n+s},cssrgb:e=>"rgb("+Math.round(e.r)+","+Math.round(e.g)+","+Math.round(e.b)+")",hsl:fk,csshsl:e=>{var{h:t,s:n,l:s}=fk(e);return"hsl("+Math.round(t)+","+Math.round(n)+"%,"+Math.round(s)+"%)"},cmyk:e=>{var t=e.r/255,n=e.g/255,s=e.b/255,r=1-Math.max(t,n,s);return r!==1?{c:(1-t-r)/(1-r),m:(1-n-r)/(1-r),y:(1-s-r)/(1-r),k:r}:{c:0,m:0,y:0,k:r}},yiq:e=>{var t=.299*(e.r/255)+.587*(e.g/255)+.114*(e.b/255),n=.596*(e.r/255)+-.274*(e.g/255)+-.322*(e.b/255),s=.211*(e.r/255)+-.523*(e.g/255)+.312*(e.b/255);return n=ql(n,[-.5957,.5957]),s=ql(s,[-.5226,.5226]),{y:t,i:n,q:s}},XYZ:au,lms:e=>NK(au(e)),cielab:e=>FK(au(e)),cieluv:jK,xyY:e=>UK(au(e))},zK={XYZ:e=>{const{x:t,y:n,Y:s}=e,r=s/n*t,o=s/n*(1-t-n);return{X:r,Y:s,Z:o}}},jg=e=>ql(e,[0,255]),qK={rgb:e=>
59{const t=ql(e.i,[-.5957,.5957]),n=ql(e.q,[-.5226,.5226]),s=255*jg(e.y+.956*t+.621*n),r=255*jg(e.y+-.272*t+-.647*n),o=255*jg(e.y+-1.106*t+-1.703*n);return{r:s,g:r,b:o}}},x5=Object.freeze(Object.defineProperty({__proto__:null,XYZ:K5,cielab:wK,cielch:SK,cieluv:$K,cmyk:CK,csshsl:TK,cssrgb:AK,hex:EK,hsl:PK,hsluv:LK,hsv:OK,lms:RK,rgb:BK,xyY:zK,yiq:qK},Symbol.toStringTag,{value:"Module"})),HK={rgb:{default:"XYZ",csshsl:"hsl",hsv:"hsl"},hex:"rgb",hsl:"rgb",hsv:"hsl",csshsl:"hsl",cssrgb:"rgb",cmyk:"rgb",XYZ:{default:"rgb",cielch:"cieluv",hsluv:"cieluv"},xyY:"XYZ",lms:"XYZ",cieluv:{default:"XYZ",hsluv:"cielch"},cielch:"cieluv",cielab:"XYZ",yiq:"rgb",hsluv:"cielch"};function Hl(e,t,n){if(t===void 0)throw new Error("No value provided");const s=n||_K(t);if(s===e)return t;if(x5[s][e])return hk(s,e,t);const r=HK[s],o=typeof r=="string"?r:r[e]||r.default,i=hk(s,o,t);return Hl(e,i,o)}const hk=(e,t,n)=>x5[e][t](n),VK=Object.keys(O_);function kt(e){const t={};return VK.forEach(n=>{Object.defineProperty(t,n,{get:()=>WK(n,e),enumerable:!0})}),t}const WK=(e,t)=>Array.isArray(t)?t.map(n=>Hl(e,n)):Hl(e,t);function Ls(e,t){var n=Hl("hsl",t);return n.l+=e,n.l<0?n.l=0:n.l>100&&(n.l=100),kt(n)}function Y5(e){var t=Hl("rgb",e),n=(t.r*299+t.g*587+t.b*114)/1e3;return n>=128?t={r:0,g:0,b:0}:t={r:255,g:255,b:255},kt(t)}function X5(e){var t=Hl("hsl",e);return t.l=100-t.l,kt(t)}var Bg,pk;function GK(){if(pk)return Bg;pk=1;function e(i,a){for(;i.length<a;)i="0"+i;return i}function t(i,a){var c,u,f;if(a.length===0)return i;for(c=0,f=a.length;c<f;c++)u=a.charCodeAt(c),i=(i<<5)-i+u,i|=0;return i<0?i*-2:i}function n(i,a,c){return Object.keys(a).sort().reduce(u,i);function u(f,h){return s(f,a[h],h,c)}}function s(i,a,c,u){var f=t(t(t(i,c),r(a)),typeof a);if(a===null)return t(f,"null");if(a===void 0)return t(f,"undefined");if(typeof a=="object"||typeof a=="function"){if(u.indexOf(a)!==-1)return t(f,"[Circular]"+c);u.push(a);var h=n(f,a,u);if(!("valueOf"in a)||typeof a.valueOf!="function")return h;try{return t(h,String(a.valueOf()))}catch(v){return t(h,"[valueOf exception]"+(v.stack||v.message))}}return t(f,a.toString())}function r(i){return Object.prototype.toString.call(i)}function o(i){return e(s(0,i,"",[]).toString(16),8)}return Bg=o,Bg}var KK=GK();const J5=bs(KK),kh=(e,t,n)=>{if(!(e===null||typeof e>"u"))return e[0]==="#"||e==="transparent"?e:(typeof e=="object"&&({r:e,g:t,b:n}=e),[e,t,n]=[e,t,n].map(s=>(s=Math.ceil(s),s=s<0?0:s,s=s>255?255:s,s)),`#${((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)}`)},zg=e=>{const t=e/255;return t<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},Ra=e=>{const t=zg(e.r),n=zg(e.g),s=zg(e.b);return .2126*t+.7152*n+.0722*s},lu=(e,t)=>{const n=Ra(e),s=Ra(t),[r,o]=n>s?[n,s]:[s,n];return(r+.05)/(o+.05)},P5e=(e,t,n)=>lu(x0(n,t),e),xK=(e,t,n)=>{const s=(r,o)=>{switch(n){case"+":return Math.min(r+o,255);case"-":return Math.max(r-o,0);default:return r}};return{r:s(e.r,t.r),g:s(e.g,t.g),b:s(e.b,t.b)}},Fo=(e,t,n)=>t===1||typeof t>"u"?e:{r:e.r*t+n.r*(1-t),g:e.g*t+n.g*(1-t),b:e.b*t+n.b*(1-t)},x0=(e,t)=>t.reduce((n,[s,r])=>Fo(s,r,n),e),yp=e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},ya=(e,t)=>({r:(e.r+t.r)/2,g:(e.g+t.g)/2,b:(e.b+t.b)/2}),Vl=function(e){const t={r:0,g:0,b:0,a:1};return e!==null?(e.r!==void 0&&!isNaN(e.r)&&(t.r=e.r),e.g!==void 0&&!isNaN(e.g)&&(t.g=e.g),e.b!==void 0&&!isNaN(e.b)&&(t.b=e.b),e.a!==void 0&&!isNaN(e.a)&&(t.a=e.a)):(t.r=255,t.g=255,t.b=255),`rgba(${Math.floor(t.r)}, ${Math.floor(t.g)}, ${Math.floor(t.b)}, ${t.a})`},R_=function(e,t,n){const s=lu(e,t);if(!n&&s<4.5)return Y5(e).rgb;const r=kt(t).hex,o=X5(r).hex,i=lu(e,kt(o).rgb);let a;i>s?a=o:a=r;let c=lu(e,t);const u=kt(kh(a)).hsl,f=u.l>=50?1:-1,h=1;for(;c<4.5&&u.l>20&&u.l<80;)u.l+=f*h,u.l=Math.min(100,Math.max(0,u.l)),c=lu(e,kt(u).rgb);const v=typeof t.a<"u"?{a:t.a}:{};return Object.assign(kt(u).rgb,v)},Z5=(e,t)=>{let n={};if(typeof e=="object")n=e;else if(typeof e=="string")if(e.startsWith("#"))n=yp(e);else return e;return Vl({...n,a:t})},Q5=(e,t,{findColor:n,findShadow:s},{dynamicVars:r,staticVars:o})=>{const{funcName:i,argsString:a}=/\$(?<funcName>\w+)\((?<argsString>[#a-zA-Z0-9-+,.'"\s]*)\)/.exec(e).groups,c=a.split(/ /g).map(f=>f.trim()),u=t[i];if(c.length<u.argsNeeded)throw new Error(`$${i} requires at least ${u.argsNeeded} arguments, but ${c.length} were provided`);return u.exec(c,{findColor:n,findShadow:s},{dynamicVars:r,staticVars:o})},YK={alpha:{argsNeeded:2,documentation:"Changes alpha value of the color only to be used for CSS variables",args:["color: source color used","amount: alpha value"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o]=e,i=kt(t(r,{dynamicVars:n,staticVars:s})).rgb,a=Number(o);return{...i,a}}},brightness:{argsNeeded:2,document:"Changes brightness/lightness of color in HSL colorspace",args:["color: source color used","amount: lightness value"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o]=e,i=kt(t(r,{dynamicVars:n,staticVars:s})).hsl;return i.l+=Number(o),{...kt(i).rgb}}},textColor:{argsNeeded:2,documentation:"Get text color with adequate contrast for given background and intended text color. Same function is used internally",args:["background: color of backdrop where text will be shown","foreground: intended text color",`[preserve]: (optional) intended color preservation:
60'preserve' - try to preserve the color
61'no-preserve' - if can't get adequate color - fall back to black or white
62'no-auto' - don't do anything (useless as a color function)`],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o,i="preserve"]=e,a=kt(t(r,{dynamicVars:n,staticVars:s})).rgb,c=kt(t(o,{dynamicVars:n,staticVars:s})).rgb;return R_(a,c,i==="preserve")}}
62,blend:{argsNeeded:3,documentation:"Alpha blending between two colors",args:["background: bottom layer color","amount: opacity of top layer","foreground: upper layer color"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o,i]=e,a=kt(t(r,{dynamicVars:n,staticVars:s})).rgb,c=kt(t(i,{dynamicVars:n,staticVars:s})).rgb,u=Number(o);return Fo(a,u,c)}},shift:{argsNeeded:2,documentation:"Arithmetic blend between two colors",args:["origin: base color","value: shift value","operator: math operator to use (+ or -)"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o,i]=e,a=kt(t(r,{dynamicVars:n,staticVars:s})).rgb,c=kt(t(o,{dynamicVars:n,staticVars:s})).rgb;return xK(a,c,i)}},boost:{argsNeeded:2,documentation:"If given color is dark makes it darker, if color is light - makes it lighter",args:["color: source color","amount: how much darken/brighten the color"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o]=e,i=kt(t(r,{dynamicVars:n,staticVars:s})).rgb,a=Number(o),u=Ra(i)<.5?-1:1;return Ls(a*u,i).rgb}},mod:{argsNeeded:2,documentation:"Old function that increases or decreases brightness depending if background color is dark or light. Advised against using it as it might give unexpected results.",args:["color: source color","amount: how much darken/brighten the color"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o]=e,i=kt(t(r,{dynamicVars:n,staticVars:s})).rgb,a=Number(o),c=n.lowerLevelBackground??i,f=Ra(kt(c).rgb)<.5?1:-1;return Ls(a*f,i).rgb}}},XK={borderSide:{argsNeeded:3,documentation:"Simulate a border on a side with a shadow, best works on inset border",args:["color: border color",'side: string indicating on which side border should be, takes either one word or two words joined by dash (i.e. "left" or "bottom-right")',"width: border width (thickness)","[alpha]: (Optional) border opacity, defaults to 1 (fully opaque)","[inset]: (Optional) whether border should be on the inside or outside, defaults to inside"],exec:e=>{const[t,n,s="1",r="1",o="inset"]=e,i=Number(r),a=o==="inset",c={x:0,y:0,blur:0,spread:0,color:t,alpha:Number(s),inset:a};return n.split("-").forEach(u=>{switch(u){case"left":c.x=i*(o?1:-1);break;case"right":c.x=-1*i*(o?1:-1);break;case"top":c.y=i*(o?1:-1);break;case"bottom":c.y=-1*i*(o?1:-1);break}}),[c]}}},$h=e=>{const t=[];let n=e;for(;n;)t.push(n),n=n.parent;return t},JK=e=>{const t=[e.map(n=>[n])];for(let n=2;n<=e.length;n++){const o=t[t.length-1].map(c=>{const u=new Set;return c.forEach(h=>u.add(h)),e.filter(h=>!u.has(h)).map(h=>[...c,h])}).reduce((c,u)=>[...c,...u],[]),i=new Set,a=o.map(Z.sortBy).filter(c=>i.has(c.join())?!1:(i.add(c.join()),!0));t.push(a)}return t.reduce((n,s)=>[...n,...s],[])},eE=e=>(t,n,s,r)=>{const o=!!r;if(!t&&!o)return null;const i=e[t.component],{states:a={},variants:c={},outOfTreeSelector:u}=i,f=(A=[],R=[])=>A.length===0?R.map(B=>[B]):R.length===0?A.map(B=>[B]):A.map(B=>R.map(N=>[B,N])).flat();let h=Array.isArray(i.selector)?i.selector:[i.selector];(n||s)&&(h=[h[0]]),h=h.map(A=>A===":root"?"":o?A:u&&!n?u:A);const v=t.variant||"normal";let y=null;v!=="normal"?y=c[v]:y=(c==null?void 0:c.normal)??"",y=Array.isArray(y)?y:[y],(n||s)&&(y=[y[0]]);const I=(t.state||[]).filter(A=>A!=="normal").map(A=>{const R=a[A]||"";let B=Array.isArray(R)?R:[R];return(n||s)&&(B=[B[0]]),B.sort(N=>N.startsWith(":")?1:/^[a-z]/.exec(N)?-1:0).join(""),B}).reduce((A,R)=>f(A,R).map(B=>B.join("")),[]),$=f(h,y).map(A=>A.join("")),k=f($,I).map(A=>A.join("")),P=f(k,r).map(A=>A.join(" "));return t.parent?eE(e)(t.parent,n,s,P):P.join(", ").trim()},mk=(e,t,n)=>{if(e.component!==t.component||(t.variant!=="normal"||n)&&e.variant!==t.variant)return!1;if(t.state.length>1||n){const s=new Set(t.state),r=new Set(e.state);if(!([...r].every(i=>s.has(i))&&[...s].every(i=>r.has(i))))return!1}return!0},qg=(e,t)=>n=>{if(e.parent===null&&n.parent||!mk(e,n,t))return!1;if(e.parent!==void 0&&e.parent!==null){if(!n.parent)return!0;const s=$h(e),r=$h(n);if(s.length<r.length)return!1;for(let o=0;o<s.length;o++){const i=s[o],a=r[o];if(!a)return!0;if(!mk(i,a,t))return!1}}return!0},gk=e=>{e.variant=e.variant??"normal",e.state=[...new Set(["normal",...e.state||[]])]},tE=e=>{const t=["_full","inset","x","y","blur","spread","color","alpha","name"],n=["^","(?:(inset)\\s+)?","(?:(-?[0-9]+(?:\\.[0-9]+)?)\\s+)","(?:(-?[0-9]+(?:\\.[0-9]+)?)\\s+)","(?:(-?[0-9]+(?:\\.[0-9]+)?)\\s+)?","(?:(-?[0-9]+(?:\\.[0-9]+)?)\\s+)?","(#[0-9a-f]{6}|--[a-z0-9\\-_]+|\\$[a-z0-9\\-()_ ]+)","(?:\\s+\\/\\s+([0-9]+(?:\\.[0-9]+)?)\\s*)?","(?:\\s+#(\\w+)\\s*)?","$"].join(""),r=new RegExp(n,"gis").exec(e);if(r==null){if(e.startsWith("$")||e.startsWith("--"))return e;throw new Error(`Invalid shadow definition: '${e}'`)}else{const o=new Set(["x","y","blur","spread","alpha"]),{x:i,y:a,blur:c,spread:u,alpha:f,inset:h,color:v,name:y}=Object.fromEntries(t.map((S,C)=>{if(o.has(S)){const I=Number(r[C]);return Number.isNaN(I)?S==="alpha"?[S,1]:[S,0]:[S,I]}else return S==="inset"?[S,!!r[C]]:[S,r[C]]}).filter(([,S])=>S!==!1).slice(1));return{x:i,y:a,blur:c,spread:u,color:v,alpha:f,inset:h,name:y}}},ZK=e=>{const t=[{selector:null,content:[]}];let n="";const s=()=>{let o=t[t.length-1];return o==null&&(o={selector:null,content:[]}),o},r=o=>{n!==""&&(o==="content"?s().content.push(n.trim()):s().selector=n.trim(),n="")};for(let o=0;o<e.length;o++){const i=e[o];i===";"?r("content"):i==="{"?r("header"):i==="}
62"?(r("content"),t.push({selector:null,content:[]}),n=""):n+=i}return t},QK=e=>{const n=ZK(e).filter(s=>s.selector!=null).map(s=>{const{selector:r,content:o}=s;let i=0;return r.split(/,/g).map(u=>{const f={component:""};let h=null;return u.split(/ /g).reverse().forEach((v,y,S)=>{const C={component:""};let I="component";for(let $=0;$<v.length;$++){const k=v[$];switch(k){case".":{I="variant",C.variant="";break}case":":{I="state",C.state=C.state||[],i++;break}default:I==="state"?(C.state[i-1]==null&&C.state.push(""),C.state[i-1]+=k):C[I]+=k}}h!==null?(h.parent={...C},h=h.parent):(Object.keys(C).forEach($=>{f[$]=C[$]}),y!==S.length-1&&(f.parent={component:""}),h=f)}),f.directives=Object.fromEntries(o.map(v=>{const[y,S]=v.split(":");let C=(S||"").trim();return y==="shadow"&&(C==="none"?C=[]:C=S.split(",").map(I=>tE(I.trim()))),Number.isNaN(Number(S))||(C=Number(S)),[y,C]})),f})});return Z.flattenDeep(n)},Hn={Root:null,Text:null,FunText:null,Link:null,Icon:null,Border:null,PanelHeader:null,Panel:null,Chat:null,ChatMessage:null,Button:null},Y0=(e,{dynamicVars:t,staticVars:n})=>(e||[]).map(s=>{let r;if(typeof s=="string")if(s.startsWith("$"))r=Q5(s,XK,{findColor:Pa,findShadow:Y0},{dynamicVars:t,staticVars:n});else if(s.startsWith("--")){const i=s.substring(2);return Y0(n[i],{dynamicVars:t,staticVars:n})}else r=tE(s);else r=s;return(Array.isArray(r)?r:[r]).map(i=>({...i,color:Pa(i.color,{dynamicVars:t,staticVars:n})}))}),Pa=(e,{dynamicVars:t,staticVars:n})=>{try{if(typeof e!="string"||!e.startsWith("--")&&!e.startsWith("$"))return e;let s=null;if(e.startsWith("--")){const[r,o]=e.split(/,/g).map(a=>a.trim()),i=r.substring(2);if(i==="stack"){const{r:a,g:c,b:u}=t.stacked;s={r:a,g:c,b:u}}else if(i.startsWith("parent"))if(i==="parent"){const{r:a,g:c,b:u}=t.lowerLevelBackground??{};s={r:a,g:c,b:u}}else{const a=i.replace(/^parent/,"");s=kt(t.lowerLevelVirtualDirectivesRaw[a]).rgb}else{const a=n[i],c=t[i];!a&&!c&&(console.warn(t,i,t[i]),console.warn(`Couldn't find variable "${i}", falling back to magenta. Variables are:
63Static:
64${JSON.stringify(n,null,2)}
65Dynamic:
66${JSON.stringify(t,null,2)}`)),s=kt(a??c??"#FF00FF").rgb}if(o){const a=t.lowerLevelBackground??s,u=Ra(kt(a).rgb)<.5?1:-1;s=Ls(Number.parseFloat(o)*u,s).rgb}}if(e.startsWith("$"))try{s=Q5(e,YK,{findColor:Pa},{dynamicVars:t,staticVars:n})}catch(r){console.error("Failure executing color function",r,`
67 Function: `+e),s="#FF00FF"}return s}catch(s){throw new Error(`Couldn't find color "${e}", variables are:
68Static:
69${JSON.stringify(n,null,2)}
70Dynamic:
71${JSON.stringify(t,null,2)}
72Error: ${s}`)}},ex=(e,t,n,s)=>{const r=e.textOpacity,o=kt(n.lowerLevelBackground).rgb,i=kt(Pa(t,{dynamicVars:n,staticVars:s})).rgb;if(r==null||r>=1)return kt(i).hex;if(r===0)return kt(o).hex;switch(e.textOpacityMode){case"fake":return kt(Fo(i,r,o)).hex;case"mixrgb":return kt(ya(o,i)).hex;default:return Vl({a:r,...i})}},vk=Object.assign({"/src/components/alert.style.js":pG,"/src/components/badge.style.js":gG,"/src/components/border.style.js":bG,"/src/components/button.style.js":_G,"/src/components/button_unstyled.style.js":SG,"/src/components/chat/chat.style.js":$G,"/src/components/chat_message/chat_message.style.js":TG,"/src/components/fun_text.style.js":EG,"/src/components/icon.style.js":PG,"/src/components/input.style.js":OG,"/src/components/link.style.js":MG,"/src/components/menu_item.style.js":FG,"/src/components/mobile_drawer.style.js":UG,"/src/components/modal/modals.style.js":BG,"/src/components/notification/notification.style.js":qG,"/src/components/panel.style.js":VG,"/src/components/panel_header.style.js":GG,"/src/components/poll/poll_graph.style.js":xG,"/src/components/popover.style.js":XG,"/src/components/root.style.js":ZG,"/src/components/scrollbar.style.js":eK,"/src/components/scrollbar_element.style.js":nK,"/src/components/status/post.style.js":rK,"/src/components/tab_switcher/tab.style.js":iK,"/src/components/text.style.js":lK,"/src/components/top_bar.style.js":uK,"/src/components/underlay.style.js":fK,"/src/components/user_avatar/avatar.style.js":pK,"/src/components/user_card/user_card.style.js":gK});
72Object.keys(vk).forEach(e=>{const t=vk[e].default;Hn[t.name]!=null&&console.warn(`Component in file ${e} is trying to override existing component ${t.name}! You have collisions/duplicates!`),Hn[t.name]=t});Object.keys(Hn).forEach(e=>{e!=="Root"&&(Hn.Root.validInnerComponents=Hn.Root.validInnerComponents||[],Hn.Root.validInnerComponents.push(e))});Object.keys(Hn).forEach(e=>{const t=Hn[e],{validInnerComponents:n=[]}=t;n.forEach(s=>{const r=Hn[s];t.possibleChildren=t.possibleChildren||[],t.possibleChildren.push(r),r.possibleParents=r.possibleParents||[],r.possibleParents.push(t)})});const nE=J5(Hn),Hg=eE(Hn),sE=()=>nE,tx=({inputRuleset:e,ultimateBackgroundColor:t,debug:n=!1,liteMode:s=!1,editMode:r=!1,onlyNormalState:o=!1,initialStaticVars:i={}})=>{const a="Root";if(!e)throw new Error("Ruleset is null or undefined!");const c={...i},u={},f={},v=[...Object.values(Hn).map(D=>(D.defaultRules||[]).map(oe=>({source:"Built-in",component:D.name,...oe}))).reduce((D,oe)=>[...D,...oe],[]),...e].map(D=>{gk(D);let oe=D.parent;for(;oe;)gk(oe),oe=oe.parent;return D}).map((D,oe)=>({data:D,index:oe})).toSorted(({data:D,index:oe},{data:le,index:Pe})=>{const qe=$h(D).length,Ke=$h(le).length;let Ge=0,ze=0;return Ge+=qe*1e3,ze+=Ke*1e3,Ge+=D.variant!=="normal"?100:0,ze+=le.variant!=="normal"?100:0,Ge+=D.state.filter(ot=>ot!=="normal").length*1e3,ze+=le.state.filter(ot=>ot!=="normal").length*1e3,Ge+=D.component==="Text"?1:0,ze+=le.component==="Text"?1:0,D._specificityScore=Ge,le._specificityScore=ze,Ge===ze?oe-Pe:Ge-ze}).map(({data:D})=>D);t||(console.warn("No ultimate background color provided, falling back to panel color"),t=v.findLast(oe=>{var le;return oe.component==="Root"&&((le=oe.directives)==null?void 0:le["--bg"])}).directives["--bg"].split("|")[1].trim());const y=new Set(Object.values(Hn).filter(D=>D.virtual).map(D=>D.name)),S=new Set(Object.values(Hn).filter(D=>D.transparent).map(D=>D.name)),C=new Set(Object.values(Hn).filter(D=>D.notEditable).map(D=>D.name)),I=new Set([]);Object.values(Hn).forEach(D=>{const oe=v.filter(qe=>qe.component===D.name),le=oe.map(qe=>qe.directives.background).filter(qe=>qe),Pe=oe.map(qe=>qe.directives.opacity).filter(qe=>qe);(le.some(qe=>qe.match(/--parent/))||Pe.some(qe=>qe!=null&&qe<1))&&I.add(D.name)});const $=D=>{var oe,le,Pe,qe;try{const Ke=Hg(D,!0),Ge=Hg(D),ze=Ke.split(/ /g).slice(0,-1).join(" "),ot=Ke.split(/ /g).slice(-1)[0],Ct=ze;let dt=(oe=f[Ct])==null?void 0:oe.background;r&&!dt&&(dt="#00FFFF");const bt=(le=f[Ct])==null?void 0:le.virtualDirectives,It=(Pe=f[Ct])==null?void 0:Pe.virtualDirectivesRaw,nt=f[Ke]||{lowerLevelSelector:Ct,lowerLevelBackground:dt,lowerLevelVirtualDirectives:bt,lowerLevelVirtualDirectivesRaw:It},ft=v.filter(qg(D)).map(_e=>_e.directives).reduce((_e,Me)=>({..._e,...Me}),{}),Ht={...D,directives:ft};if(f[Ke]=f[Ke]||{},f[Ke].computedRule=Ht,f[Ke].dynamicVars=nt,f[Ke].virtualDirectives={},f[Ke].virtualDirectivesRaw=((qe=f[Ct])==null?void 0:qe.virtualDirectivesRaw)||{},y.has(D.component)){const _e=["--",D.component.toLowerCase(),D.variant==="normal"?"":D.variant[0].toUpperCase()+D.variant.slice(1).toLowerCase(),...Z.sortBy(D.state.filter(q=>q!=="normal")).map(q=>q[0].toUpperCase()+q.slice(1).toLowerCase())].join("");let Me=ft.textColor,Fe=ft.textAuto,Ue=ft.textOpacity,pt=ft.textOpacityMode;const W=[...Ke.split(/ /g).slice(0,-1),ot].join(" "),G=f[W];(Me==null||Ue==null||pt==null)&&(Me=ft.textColor??G.textColor,Fe=ft.textAuto??G.textAuto,Ue=ft.textOpacity??G.textOpacity,pt=ft.textOpacityMode??G.textOpacityMode);const ee={...Ht,directives:{...Ht.directives,textColor:Me,textAuto:Fe??"preserve",textOpacity:Ue,textOpacityMode:pt}};nt.inheritedBackground=dt,nt.stacked=kt(u[Ct]).rgb;const pe=kt(Pa(Me,{dynamicVars:nt,staticVars:c})).rgb,we=ee.directives.textAuto==="no-auto"?pe:R_(kt(u[Ct]).rgb,pe,ee.directives.textAuto==="preserve"),be={...f[Ct].virtualDirectives||{}},j={...f[Ct].virtualDirectivesRaw||{}};return be[_e]=ex(ee.directives,we,nt),j[_e]=we,f[Ct].virtualDirectives=be,f[Ct].virtualDirectivesRaw=j,{dynamicVars:nt,selector:Ge.split(/ /g).slice(0,-1).join(" "),...D,directives:{},virtualDirectives:be,virtualDirectivesRaw:j}}else{f[Ke]=f[Ke]||{};const _e=u[Ct]||kt(t).rgb;if(ft.background){let Ue=null;const pt=v.filter(qg({component:D.component,variant:D.variant,parent:D.parent})),W=pt[pt.length-1];if(W)Ue=W;else{const we=v.filter(qg({component:D.component,parent:D.parent}));Ue=we[we.length-1]}const G=Hg({...Ue,parent:D.parent},!0),ee=f[G].background;
72nt.inheritedBackground=ee;const pe=kt(Pa(ft.background,{dynamicVars:nt,staticVars:c})).rgb;if(!u[Ke]){let we;const be=ft.opacity??1;be>=1?we=pe:be<=0?we=_e:we=Fo(pe,ft.opacity,_e),u[Ke]=we,f[Ke].background={...pe,a:ft.opacity??1}}}return ft.shadow&&(nt.shadow=Z.flattenDeep(Y0(Z.flattenDeep(ft.shadow),{dynamicVars:nt,staticVars:c}))),u[Ke]||(ft.background="transparent",ft.opacity=0,u[Ke]=_e,f[Ke].background={..._e,a:0}),nt.stacked=u[Ke],nt.background=f[Ke].background,Object.entries(ft).filter(([Ue])=>Ue.startsWith("--")).forEach(([Ue,pt])=>{const[W,G]=pt.split("|").map(ee=>ee.trim());switch(W){case"color":{const ee=Pa(G,{dynamicVars:nt,staticVars:c});nt[Ue]=ee,D.component===a&&(c[Ue.substring(2)]=ee);break}case"shadow":{const ee=G.split(/,/g).map(pe=>pe.trim()).filter(pe=>pe);nt[Ue]=ee,D.component===a&&(c[Ue.substring(2)]=ee);break}case"generic":{nt[Ue]=G,D.component===a&&(c[Ue.substring(2)]=G);break}}}),{dynamicVars:nt,selector:Ge,...D,directives:ft}}}catch(Ke){const{component:Ge,variant:ze,state:ot}=D;throw new Error(`Error processing combination ${Ge}.${ze}:${ot.join(":")}: ${Ke}`)}},k=(D,oe)=>{var It,nt;const le=[],{states:Pe={},variants:qe={}}=D;let Ke;r?Ke=(D.validInnerComponentsLite||D.validInnerComponents||[]).filter(ft=>y.has(ft)&&!C.has(ft)):s?Ke=D.validInnerComponentsLite||D.validInnerComponents||[]:D.name==="Root"||D.states!=null||(It=D.background)!=null&&It.includes("--parent")?Ke=D.validInnerComponents||[]:Ke=((nt=D.validInnerComponents)==null?void 0:nt.filter(_t=>y.has(_t)||S.has(_t)||I.has(_t)))||[];const Ge={normal:"",...Pe},ze={normal:"",...qe},ot=Ke.map(_t=>{const ft=Hn[_t];return ft===void 0&&console.error(`Component ${D.name} references a component ${_t} which does not exist!`),ft}),Ct=Object.keys(Ge).filter(_t=>_t!=="normal"),dt=o&&!y.has(D.name)?[["normal"]]:[["normal"],...JK(Ct).map(_t=>["normal",..._t]).filter(_t=>_t.indexOf("disabled")>=0?!(_t.indexOf("hover")>=0||_t.indexOf("focused")>=0||_t.indexOf("pressed")>=0):!0)];return Object.keys(ze).map(_t=>dt.map(ft=>({variant:_t,state:ft}))).reduce((_t,ft)=>[..._t,...ft],[]).forEach(_t=>{_t.component=D.name,_t.lazy=D.lazy||(oe==null?void 0:oe.lazy),_t.parent=oe,!s&&_t.state.indexOf("hover")>=0&&(_t.lazy=!0),!s&&(oe==null?void 0:oe.component)!=="Root"&&!y.has(D.name)&&!S.has(D.name)&&I.has(D.name)&&(_t.lazy=!0),le.push(_t),ot.forEach(ft=>{le.push(...k(ft,_t))})}),le},P=performance.now(),A=k(Hn[a]??Hn.Root),R=performance.now();n&&console.debug("Tree traveral took "+(R-P)+" ms");const B=A.map(D=>D.lazy?async()=>$(D):$(D)).filter(D=>D),N=performance.now();n&&console.debug("Eager processing took "+(N-R)+" ms");const Y=[],H=[];return B.forEach(D=>{typeof D=="function"?H.push(D):Y.push(D)}),{lazy:H,eager:Y,staticVars:c,engineChecksum:nE,themeChecksum:J5([H,Y])}},Tu=(e,t=1)=>Vl({...kt(e).rgb,a:t}),bk=(e,t)=>e.length===0?"none":e.filter(n=>t?n.inset:n).map(n=>[n.x,n.y,n.blur,n.spread].map(s=>s+"px ").concat([Tu(n.color,n.alpha),n.inset?"inset":""]).join(" ")).join(", "),nx=e=>e.length===0?"none":e.filter(t=>!t.inset&&Number(t.spread)===0).map(t=>[t.x,t.y,t.blur/2].map(n=>n+"px").concat([Tu(t.color,t.alpha)]).join(" ")).map(t=>`drop-shadow(${t})`).join(" "),yk=(e,t)=>e.map(n=>{let s=n.selector;s||(s="html");const r=s+" {",o="}",i=Object.entries(n.virtualDirectives||{}).map(([c,u])=>"  "+c+": "+u).join(`;
73`),a=Object.entries(n.directives).map(([c,u])=>{switch(c){case"roundness":return"  "+["--roundness: "+u+"px"].join(`;
74  `);case"shadow":return n.dynamicVars.shadow?"  "+["--shadow: "+bk(n.dynamicVars.shadow),"--shadowFilter: "+nx(n.dynamicVars.shadow),"--shadowInset: "+bk(n.dynamicVars.shadow,!0)].join(`;
75  `):"";case"background":{if(t)return`
76            --background: ${Tu(n.dynamicVars.stacked)};
77            background-color: ${Tu(n.dynamicVars.stacked)};
78          `;if(u==="transparent")return n.component==="Root"?null:[n.directives.backgroundNoCssColor!=="yes"?"background-color: "+u:"","  --background: "+u].filter(v=>v).join(`;
79`);const f=Tu(n.dynamicVars.background,n.directives.opacity),h=["--background: "+f];return n.directives.backgroundNoCssColor!=="yes"&&h.push("background-color: "+f),h.filter(v=>v).join(`;
80`)}case"blur":{const f=[];return n.directives.opacity<1&&(f.push(`--backdrop-filter: blur(${u}) `),n.directives.backgroundNoCssColor!=="yes"&&f.push(`backdrop-filter: blur(${u}) `)),f.join(`;
81`)}case"font":return"font-family: "+u;case"textColor":return n.directives.textNoCssColor==="yes"?"":"color: "+u;default:if(c.startsWith("--")){const[f,h]=u.split("|").map(v=>v.trim());switch(f){case"color":{const v=n.dynamicVars[c];return typeof v=="string"?c+": "+Vl(yp(v)):c+": "+Vl(v)}case"generic":return c+": "+h;default:return null}}return null}}).filter(c=>c).map(c=>"  "+c+";").join(`
82`);return[r,a,n.component==="Text"&&n.state.indexOf("faint")<0&&n.directives.textNoCssColor!=="yes"?"  color: var(--text);":"",i,o].filter(c=>c).join(`
83`)}).filter(n=>n),L5e=(e,t)=>e.map(n=>n.startsWith("html")?n.replace("html",t):n.startsWith("#content")?n.replace("#content",t):t+" > "+n),sx=(window.navigator.language||"en").split("-")[0],rE={theme:"pleroma-dark",palette:null,style:null,defaultAvatar:"/images/avi.png",defaultBanner:"/images/banner.png",background:"/static/aurora_borealis.jpg",embeddedToS:!0,logo:"/static/logo.svg",logoMargin:".2em",logoMask:!0,logoLeft:!1,redirectRootLogin:"/main/friends",redirectRootNoLogin:"/main/all",hide
83Sitename:!1,nsfwCensorImage:void 0,showFeaturesPanel:!0,showInstanceSpecificPanel:!1},_p={expertLevel:0,hideISP:!1,hideInstanceWallpaper:!1,hideShoutbox:!1,hideMutedPosts:!1,hideMutedThreads:!0,hideWordFilteredPosts:!1,muteBotStatuses:!1,muteSensitiveStatuses:!1,collapseMessageWithSubject:!1,padEmoji:!0,hideAttachments:!1,hideAttachmentsInConv:!1,hideScrobbles:!1,hideScrobblesAfter:"2d",maxThumbnails:16,hideNsfw:!0,preloadImage:!0,loopVideo:!0,loopVideoSilentOnly:!0,streaming:!1,emojiReactionsOnTimeline:!0,alwaysShowNewPostButton:!1,autohideFloatingPostButton:!1,pauseOnUnfocused:!0,stopGifs:!0,replyVisibility:"all",thirdColumnMode:"notifications",notificationVisibility:{follows:!0,mentions:!0,statuses:!0,likes:!0,repeats:!0,moves:!0,emojiReactions:!0,followRequest:!0,reports:!0,chatMention:!0,polls:!0},notificationNative:{follows:!0,mentions:!0,statuses:!0,likes:!1,repeats:!1,moves:!1,emojiReactions:!1,followRequest:!0,reports:!0,chatMention:!0,polls:!0},webPushNotifications:!1,webPushAlwaysShowNotifications:!1,interfaceLanguage:sx,hideScopeNotice:!1,useStreamingApi:!1,sidebarRight:!1,scopeCopy:!0,subjectLineBehavior:"email",alwaysShowSubjectInput:!0,postContentType:"text/plain",minimalScopesMode:!1,hideFilteredStatuses:!1,modalOnRepeat:!1,modalOnUnfollow:!1,modalOnBlock:!0,modalOnMute:!1,modalOnMuteConversation:!1,modalOnMuteDomain:!0,modalOnDelete:!0,modalOnLogout:!0,modalOnApproveFollow:!1,modalOnDenyFollow:!1,modalOnRemoveUserFromFollowers:!1,onMuteDefaultAction:"ask",onBlockDefaultAction:"ask",modalMobileCenter:!1,playVideosInModal:!1,useOneClickNsfw:!1,useContainFit:!0,disableStickyHeaders:!1,showScrollbars:!1,userPopoverAvatarAction:"open",userPopoverOverlay:!1,userCardLeftJustify:!1,userCardHidePersonalMarks:!1,sidebarColumnWidth:"25rem",contentColumnWidth:"45rem",notifsColumnWidth:"25rem",themeEditorMinWidth:"0rem",emojiReactionsScale:.5,textSize:"1rem",emojiSize:"2.2rem",navbarSize:"3.5rem",panelHeaderSize:"3.2rem",forcedRoundness:-1,navbarColumnStretch:!1,greentext:!1,mentionLinkDisplay:"short",mentionLinkShowTooltip:!0,mentionLinkShowAvatar:!1,mentionLinkFadeDomain:!0,mentionLinkShowYous:!1,mentionLinkBoldenYou:!0,hidePostStats:!1,hideBotIndication:!1,hideUserStats:!1,virtualScrolling:!0,sensitiveByDefault:!1,conversationDisplay:"linear",conversationTreeAdvanced:!1,conversationOtherRepliesButton:"below",conversationTreeFadeAncestors:!1,showExtraNotifications:!0,showExtraNotificationsTip:!0,showChatsInExtraNotifications:!0,showAnnouncementsInExtraNotifications:!0,showFollowRequestsInExtraNotifications:!0,maxDepthInThread:6,autocompleteSelect:!1,closingDrawerMarksAsSeen:!0,unseenAtTop:!1,ignoreInactionableSeen:!1,unsavedPostAction:"confirm",autoSaveDraft:!1,useAbsoluteTimeFormat:!1,absoluteTimeFormatMinAge:"0d",absoluteTime12h:"24h",imageCompression:!0,alwaysUseJpeg:!1},rx=e=>Object.fromEntries(Object.keys(e).map(t=>[t,void 0])),Yf={...rx(_p),theme:void 0,colors:{},customTheme:void 0,customThemeSource:void 0,style:null,styleCustomData:null,palette:null,paletteCustomData:null,themeDebug:!1,forceThemeRecompilation:!1,theme3hacks:{underlay:"none",fonts:{interface:void 0,input:void 0,post:void 0,monospace:void 0}},muteWords:[],highlight:{}};function Ef(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Vg={exports:{}};/*!
84    localForage -- Offline Storage, Improved
85    Version 1.10.0
86    https://localforage.github.io/localForage
87    (c) 2013-2017 Mozilla, Apache License 2.0
88*/var _k;function ox(){return _k||(_k=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(s,r,o){function i(u,f){if(!r[u]){if(!s[u]){var h=typeof Ef=="function"&&Ef;if(!f&&h)return h(u,!0);if(a)return a(u,!0);var v=new Error("Cannot find module '"+u+"'");throw v.code="MODULE_NOT_FOUND",v}var y=r[u]={exports:{}};s[u][0].call(y.exports,function(S){var C=s[u][1][S];return i(C||S)},y,y.exports,n,s,r,o)}return r[u].exports}for(var a=typeof Ef=="function"&&Ef,c=0;c<o.length;c++)i(o[c]);return i}({1:[function(n,s,r){(function(o){var i=o.MutationObserver||o.WebKitMutationObserver,a;if(i){var c=0,u=new i(S),f=o.document.createTextNode("");u.observe(f,{characterData:!0}
vendor: 28,765 bytes, line 88
88),a=function(){f.data=c=++c%2}}else if(!o.setImmediate&&typeof o.MessageChannel<"u"){var h=new o.MessageChannel;h.port1.onmessage=S,a=function(){h.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?a=function(){var I=o.document.createElement("script");I.onreadystatechange=function(){S(),I.onreadystatechange=null,I.parentNode.removeChild(I),I=null},o.document.documentElement.appendChild(I)}:a=function(){setTimeout(S,0)};var v,y=[];function S(){v=!0;for(var I,$,k=y.length;k;){for($=y,y=[],I=-1;++I<k;)$[I]();k=y.length}v=!1}s.exports=C;function C(I){y.push(I)===1&&!v&&a()}}).call(this,typeof ps<"u"?ps:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,s,r){var o=n(1);function i(){}var a={},c=["REJECTED"],u=["FULFILLED"],f=["PENDING"];s.exports=h;function h(R){if(typeof R!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,R!==i&&C(this,R)}h.prototype.catch=function(R){return this.then(null,R)},h.prototype.then=function(R,B){if(typeof R!="function"&&this.state===u||typeof B!="function"&&this.state===c)return this;var N=new this.constructor(i);if(this.state!==f){var Y=this.state===u?R:B;y(N,Y,this.outcome)}else this.queue.push(new v(N,R,B));return N};function v(R,B,N){this.promise=R,typeof B=="function"&&(this.onFulfilled=B,this.callFulfilled=this.otherCallFulfilled),typeof N=="function"&&(this.onRejected=N,this.callRejected=this.otherCallRejected)}v.prototype.callFulfilled=function(R){a.resolve(this.promise,R)},v.prototype.otherCallFulfilled=function(R){y(this.promise,this.onFulfilled,R)},v.prototype.callRejected=function(R){a.reject(this.promise,R)},v.prototype.otherCallRejected=function(R){y(this.promise,this.onRejected,R)};function y(R,B,N){o(function(){var Y;try{Y=B(N)}catch(H){return a.reject(R,H)}Y===R?a.reject(R,new TypeError("Cannot resolve promise with itself")):a.resolve(R,Y)})}a.resolve=function(R,B){var N=I(S,B);if(N.status==="error")return a.reject(R,N.value);var Y=N.value;if(Y)C(R,Y);else{R.state=u,R.outcome=B;for(var H=-1,D=R.queue.length;++H<D;)R.queue[H].callFulfilled(B)}return R},a.reject=function(R,B){R.state=c,R.outcome=B;for(var N=-1,Y=R.queue.length;++N<Y;)R.queue[N].callRejected(B);return R};function S(R){var B=R&&R.then;if(R&&(typeof R=="object"||typeof R=="function")&&typeof B=="function")return function(){B.apply(R,arguments)}}function C(R,B){var N=!1;function Y(le){N||(N=!0,a.reject(R,le))}function H(le){N||(N=!0,a.resolve(R,le))}function D(){B(H,Y)}var oe=I(D);oe.status==="error"&&Y(oe.value)}function I(R,B){var N={};try{N.value=R(B),N.status="success"}catch(Y){N.status="error",N.value=Y}return N}h.resolve=$;function $(R){return R instanceof this?R:a.resolve(new this(i),R)}h.reject=k;function k(R){var B=new this(i);return a.reject(B,R)}h.all=P;function P(R){var B=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=R.length,Y=!1;if(!N)return this.resolve([]);for(var H=new Array(N),D=0,oe=-1,le=new this(i);++oe<N;)Pe(R[oe],oe);return le;function Pe(qe,Ke){B.resolve(qe).then(Ge,function(ze){Y||(Y=!0,a.reject(le,ze))});function Ge(ze){H[Ke]=ze,++D===N&&!Y&&(Y=!0,a.resolve(le,H))}}}h.race=A;function A(R){var B=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=R.length,Y=!1;if(!N)return this.resolve([]);for(var H=-1,D=new this(i);++H<N;)oe(R[H]);return D;function oe(le){B.resolve(le).then(function(Pe){Y||(Y=!0,a.resolve(D,Pe))},function(Pe){Y||(Y=!0,a.reject(D,Pe))})}}},{1:1}],3:[function(n,s,r){(function(o){typeof o.Promise!="function"&&(o.Promise=n(2))}).call(this,typeof ps<"u"?ps:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,s,r){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F};function i(F,J){if(!(F instanceof J))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var c=a();function u(){try{if(!c||!c.open)return!1;var F=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),J=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!F||J)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(F,J){F=F||[],J=J||{};try{return new Blob(F,J)}catch(ne){if(ne.name!=="TypeError")throw ne;for(var z=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,se=new z,ce=0;ce<F.length;ce+=1)se.append(F[ce]);return se.getBlob(J.type)}}typeof Promise>"u"&&n(3);var h=Promise;function v(F,J){J&&F.then(function(z){J(null,z)},function(z){J(z)})}function y(F,J,z){typeof J=="function"&&F.then(J),typeof z=="function"&&F.catch(z)}function S(F){return typeof F!="string"&&(console.warn(F+" used as a key, but it is not a string."),F=String(F)),F}function C(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var I="local-forage-detect-blob-support",$=void 0,k={},P=Object.prototype.toString,A="readonly",R="readwrite";function B(F){for(var J=F.length,z=new ArrayBuffer(J),se=new Uint8Array(z),ce=0;ce<J;ce++)se[ce]=F.charCodeAt(ce);return z}function N(F){return new h(function(J){var z=F.transaction(I,R),se=f([""]);z.objectStore(I).put(se,"key"),z.onabort=function(ce){ce.preventDefault(),ce.stopPropagation(),J(!1)},z.oncomplete=function(){var ce=navigator.userAgent.match(/Chrome\/(\d+)/),ne=navigator.userAgent.match(/Edge\//);J(ne||!ce||parseInt(ce[1],10)>=43)}}).catch(function(){return!1})}function Y(F){return typeof $=="boolean"?h.resolve($):N(F).then(function(J){return $=J,$})}function H(F){var J=k[F.name],z={};z.promise=new h(function(se,ce){z.resolve=se,z.reject=ce}),J.deferredOperations.push(z),J.dbReady?J.dbReady=J.dbReady.then(function(){return z.promise}):J.dbReady=z.promise}function D(F){var J=k[F.name],z=J.deferredOperations.pop();if(z)return z.resolve(),z.promise}function oe(F,J){var z=k[F.name],se=z.deferredOperations.pop();if(se)return se.reject(J),se.promise}function le(F,J){return new h(function(z,se){if(k[F.name]=k[F.name]||It(),F.db)if(J)H(F),F.db.close();else return z(F.db);var ce=[F.name];J&&ce.push(F.version);var ne=c.open.apply(c,ce);J&&(ne.onupgradeneeded=function(Ce){var Ie=ne.result;try{Ie.createObjectStore(F.storeName),Ce.oldVersion<=1&&Ie.createObjectStore(I)}catch(Oe){if(Oe.name==="ConstraintError")console.warn('The database "'+F.name+'" has been upgraded from version '+Ce.oldVersion+" to version "+Ce.newVersion+', but the storage "'+F.storeName+'" already exists.');else throw Oe}}),ne.onerror=function(Ce){Ce.preventDefault(),se(ne.error)},ne.onsuccess=function(){var Ce=ne.result;Ce.onversionchange=function(Ie){Ie.target.close()},z(Ce),D(F)}})}function Pe(F){return le(F,!1)}function qe(F){return le(F,!0)}function Ke(F,J){if(!F.db)return!0;var z=!F.db.objectStoreNames.contains(F.storeName),se=F.version<F.db.version,ce=F.version>F.db.version;if(se&&(F.version!==J&&console.warn('The database "'+F.name+`" can't be downgraded from version `+F.db.version+" to version "+F.version+"."),F.version=F.db.version),ce||z){if(z){var ne=F.db.version+1;ne>F.version&&(F.version=ne)}return!0}return!1}function Ge(F){return new h(function(J,z){var se=new FileReader;se.onerror=z,se.onloadend=function(ce){var ne=btoa(ce.target.result||"");J({__local_forage_encoded_blob:!0,data:ne,type:F.type})},se.readAsBinaryString(F)})}function ze(F){var J=B(atob(F.data));return f([J],{type:F.type})}function ot(F){return F&&F.__local_forage_encoded_blob}function Ct(F){var J=this,z=J._initReady().then(function(){var se=k[J._dbInfo.name];if(se&&se.dbReady)return se.dbReady});return y(z,F,F),z}function dt(F){H(F);for(var J=k[F.name],z=J.forages,se=0;se<z.length;se++){var ce=z[se];ce._dbInfo.db&&(ce._dbInfo.db.close(),ce._dbInfo.db=null)}return F.db=null,Pe(F).then(function(ne){return F.db=ne,Ke(F)?qe(F):ne}).then(function(ne){F.db=J.db=ne;for(var Ce=0;Ce<z.length;Ce++)z[Ce]._dbInfo.db=ne}).catch(function(ne){throw oe(F,ne),ne})}function bt(F,J,z,se){se===void 0&&(se=1);try{var ce=F.db.transaction(F.storeName,J);z(null,ce)}catch(ne){if(se>0&&(!F.db||ne.name==="InvalidStateError"||ne.name==="NotFoundError"))return h.resolve().then(function(){if(!F.db||ne.name==="NotFoundError"&&!F.db.objectStoreNames.contains(F.storeName)&&F.version<=F.db.version)return F.db&&(F.version=F.db.version+1),qe(F)}).then(function(){return dt(F).then(function(){bt(F,J,z,se-1)})}).catch(z);z(ne)}}function It(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function nt(F){var J=this,z={db:null};if(F)for(var se in F)z[se]=F[se];var ce=k[z.name];ce||(ce=It(),k[z.name]=ce),ce.forages.push(J),J._initReady||(J._initReady=J.ready,J.ready=Ct);var ne=[];function Ce(){return h.resolve()}for(var Ie=0;Ie<ce.forages.length;Ie++){var Oe=ce.forages[Ie];Oe!==J&&ne.push(Oe._initReady().catch(Ce))}var Re=ce.forages.slice(0);return h.all(ne).then(function(){return z.db=ce.db,Pe(z)}).then(function(De){return z.db=De,Ke(z,J._defaultConfig.version)?qe(z):De}).then(function(De){z.db=ce.db=De,J._dbInfo=z;for(var Ze=0;Ze<Re.length;Ze++){var Tt=Re[Ze];Tt!==J&&(Tt._dbInfo.db=z.db,Tt._dbInfo.version=z.version)}})}function _t(F,J){var z=this;F=S(F);var se=new h(function(ce,ne){z.ready().then(function(){bt(z._dbInfo,A,function(Ce,Ie){if(Ce)return ne(Ce);try{var Oe=Ie.objectStore(z._dbInfo.storeName),Re=Oe.get(F);Re.onsuccess=function(){var De=Re.result;De===void 0&&(De=null),ot(De)&&(De=ze(De)),ce(De)},Re.onerror=function(){ne(Re.error)}}catch(De){ne(De)}})}).catch(ne)});return v(se,J),se}function ft(F,J){var z=this,se=new h(function(ce,ne){z.ready().then(function(){bt(z._dbInfo,A,function(Ce,Ie){if(Ce)return ne(Ce);try{var Oe=Ie.objectStore(z._dbInfo.storeName),Re=Oe.openCursor(),De=1;Re.onsuccess=function(){var Ze=Re.result;if(Ze){var Tt=Ze.value;ot(Tt)&&(Tt=ze(Tt));var Bt=F(Tt,Ze.key,De++);Bt!==void 0?ce(Bt):Ze.continue()}else ce()},Re.onerror=function(){ne(Re.error)}}catch(Ze){ne(Ze)}})}).catch(ne)});return v(se,J),se}function Ht(F,J,z){var se=this;F=S(F);var ce=new h(function(ne,Ce){var Ie;se.ready().then(function(){return Ie=se._dbInfo,P.call(J)==="[object Blob]"?Y(Ie.db).then(function(Oe){return Oe?J:Ge(J)}):J}).then(function(Oe){bt(se._dbInfo,R,function(Re,De){if(Re)return Ce(Re);try{var Ze=De.objectStore(se._dbInfo.storeName);Oe===null&&(Oe=void 0);var Tt=Ze.put(Oe,F);De.oncomplete=function(){Oe===void 0&&(Oe=null),ne(Oe)},De.onabort=De.onerror=function(){var Bt=Tt.error?Tt.error:Tt.transaction.error;Ce(Bt)}}catch(Bt){Ce(Bt)}})}).catch(Ce)});return v(ce,z),ce}function _e(F,J){var z=this;F=S(F);var se=new h(function(ce,ne){z.ready().then(function(){bt(z._dbInfo,R,function(Ce,Ie){if(Ce)return ne(Ce);try{var Oe=Ie.objectStore(z._dbInfo.storeName),Re=Oe.delete(F);Ie.oncomplete=function(){ce()},Ie.onerror=function(){ne(Re.error)},Ie.onabort=function(){var De=Re.error?Re.error:Re.transaction.error;ne(De)}}catch(De){ne(De)}})}).catch(ne)});return v(se,J),se}function Me(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){bt(J._dbInfo,R,function(ne,Ce){if(ne)return ce(ne);try{var Ie=Ce.objectStore(J._dbInfo.storeName),Oe=Ie.clear();Ce.oncomplete=function(){se()},Ce.onabort=Ce.onerror=function(){var Re=Oe.error?Oe.error:Oe.transaction.error;ce(Re)}}catch(Re){ce(Re)}})}).catch(ce)});return v(z,F),z}function Fe(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){bt(J._dbInfo,A,function(ne,Ce){if(ne)return ce(ne);try{var Ie=Ce.objectStore(J._dbInfo.storeName),Oe=Ie.count();Oe.onsuccess=function(){se(Oe.result)},Oe.onerror=function(){ce(Oe.error)}}catch(Re){ce(Re)}})}).catch(ce)});return v(z,F),z}function Ue(F,J){var z=this,se=new h(function(ce,ne){if(F<0){ce(null);return}z.ready().then(function(){bt(z._dbInfo,A,function(Ce,Ie){if(Ce)return ne(Ce);try{var Oe=Ie.objectStore(z._dbInfo.storeName),Re=!1,De=Oe.openKeyCursor();De.onsuccess=function(){var Ze=De.result;if(!Ze){ce(null);return}F===0||Re?ce(Ze.key):(Re=!0,Ze.advance(F))},De.onerror=function(){ne(De.error)}}catch(Ze){ne(Ze)}})}).catch(ne)});return v(se,J),se}function pt(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){bt(J._dbInfo,A,function(ne,Ce){if(ne)return ce(ne);try{var Ie=Ce.objectStore(J._dbInfo.storeName),Oe=Ie.openKeyCursor(),Re=[];Oe.onsuccess=function(){var De=Oe.result;if(!De){se(Re);return}Re.push(De.key),De.continue()},Oe.onerror=function(){ce(Oe.error)}}catch(De){ce(De)}})}).catch(ce)});return v(z,F),z}function W(F,J){J=C.apply(this,arguments);var z=this.config();F=typeof F!="function"&&F||{},F.name||(F.name=F.name||z.name,F.storeName=F.storeName||z.storeName);var se=this,ce;if(!F.name)ce=h.reject("Invalid arguments");else{var ne=F.name===z.name&&se._dbInfo.db,Ce=ne?h.resolve(se._dbInfo.db):Pe(F).then(function(Ie){var Oe=k[F.name],Re=Oe.forages;Oe.db=Ie;for(var De=0;De<Re.length;De++)Re[De]._dbInfo.db=Ie;return Ie});F.storeName?ce=Ce.then(function(Ie){if(Ie.objectStoreNames.contains(F.storeName)){var Oe=Ie.version+1;H(F);var Re=k[F.name],De=Re.forages;Ie.close();for(var Ze=0;Ze<De.length;Ze++){var Tt=De[Ze];Tt._dbInfo.db=null,Tt._dbInfo.version=Oe}var Bt=new h(function(zt,cn){var xt=c.open(F.name,Oe);xt.onerror=function(Zn){var Br=xt.result;Br.close(),cn(Zn)},xt.onupgradeneeded=function(){var Zn=xt.result;Zn.deleteObjectStore(F.storeName)},xt.onsuccess=function(){var Zn=xt.result;Zn.close(),zt(Zn)}});return Bt.then(function(zt){Re.db=zt;for(var cn=0;cn<De.length;cn++){var xt=De[cn];xt._dbInfo.db=zt,D(xt._dbInfo)}}).catch(function(zt){throw(oe(F,zt)||h.resolve()).catch(function(){}),zt})}}):ce=Ce.then(function(Ie){H(F);var Oe=k[F.name],Re=Oe.forages;Ie.close();for(var De=0;De<Re.length;De++){var Ze=Re[De];Ze._dbInfo.db=null}var Tt=new h(function(Bt,zt){var cn=c.deleteDatabase(F.name);cn.onerror=function(){var xt=cn.result;xt&&xt.close(),zt(cn.error)},cn.onblocked=function(){console.warn('dropInstance blocked for database "'+F.name+'" until all open connections are closed')},cn.onsuccess=function(){var xt=cn.result;xt&&xt.close(),Bt(xt)}});return Tt.then(function(Bt){Oe.db=Bt;for(var zt=0;zt<Re.length;zt++){var cn=Re[zt];D(cn._dbInfo)}}).catch(function(Bt){throw(oe(F,Bt)||h.resolve()).catch(function(){}),Bt})})}return v(ce,J),ce}var G={_driver:"asyncStorage",_initStorage:nt,_support:u(),iterate:ft,getItem:_t,setItem:Ht,removeItem:_e,clear:Me,length:Fe,key:Ue,keys:pt,dropInstance:W};function ee(){return typeof openDatabase=="function"}var pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",we="~~local_forage_type~",be=/^~~local_forage_type~([^~]+)~/,j="__lfsc__:",q=j.length,te="arbf",fe="blob",je="si08",ke="ui08",re="uic8",me="si16",xe="si32",rt="ur16",ut="ui32",Qt="fl32",Wt="fl64",En=q+te.length,On=Object.prototype.toString;function Cs(F){var J=F.length*.75,z=F.length,se,ce=0,ne,Ce,Ie,Oe;F[F.length-1]==="="&&(J--,F[F.length-2]==="="&&J--);var Re=new ArrayBuffer(J),De=new Uint8Array(Re);for(se=0;se<z;se+=4)ne=pe.indexOf(F[se]),Ce=pe.indexOf(F[se+1]),Ie=pe.indexOf(F[se+2]),Oe=pe.indexOf(F[se+3]),De[ce++]=ne<<2|Ce>>4,De[ce++]=(Ce&15)<<4|Ie>>2,De[ce++]=(Ie&3)<<6|Oe&63;return Re}function tr(F){var J=new Uint8Array(F),z="",se;for(se=0;se<J.length;se+=3)z+=pe[J[se]>>2],z+=pe[(J[se]&3)<<4|J[se+1]>>4],z+=pe[(J[se+1]&15)<<2|J[se+2]>>6],z+=pe[J[se+2]&63];return J.length%3===2?z=z.substring(0,z.length-1)+"=":J.length%3===1&&(z=z.substring(0,z.length-2)+"=="),z}function ln(F,J){var z="";if(F&&(z=On.call(F)),F&&(z==="[object ArrayBuffer]"||F.buffer&&On.call(F.buffer)==="[object ArrayBuffer]")){var se,ce=j;F instanceof ArrayBuffer?(se=F,ce+=te):(se=F.buffer,z==="[object Int8Array]"?ce+=je:z==="[object Uint8Array]"?ce+=ke:z==="[object Uint8ClampedArray]"?ce+=re:z==="[object Int16Array]"?ce+=me:z==="[object Uint16Array]"?ce+=rt:z==="[object Int32Array]"?ce+=xe:z==="[object Uint32Array]"?ce+=ut:z==="[object Float32Array]"?ce+=Qt:z==="[object Float64Array]"?ce+=Wt:J(new Error("Failed to get type for BinaryArray"))),J(ce+tr(se))}else if(z==="[object Blob]"){var ne=new FileReader;ne.onload=function(){var Ce=we+F.type+"~"+tr(this.result);J(j+fe+Ce)},ne.readAsArrayBuffer(F)}else try{J(JSON.stringify(F))}catch(Ce){console.error("Couldn't convert value into a JSON string: ",F),J(null,Ce)}}function Rn(F){if(F.substring(0,q)!==j)return JSON.parse(F);var J=F.substring(En),z=F.substring(q,En),se;if(z===fe&&be.test(J)){var ce=J.match(be);se=ce[1],J=J.substring(ce[0].length)}var ne=Cs(J);switch(z){case te:return ne;case fe:return f([ne],{type:se});case je:return new Int8Array(ne);case ke:return new Uint8Array(ne);case re:return new Uint8ClampedArray(ne);case me:return new Int16Array(ne);case rt:return new Uint16Array(ne);case xe:return new Int32Array(ne);case ut:return new Uint32Array(ne);case Qt:return new Float32Array(ne);case Wt:return new Float64Array(ne);default:throw new Error("Unkown type: "+z)}}var nr={serialize:ln,deserialize:Rn,stringToBuffer:Cs,bufferToString:tr};function Fr(F,J,z,se){F.executeSql("CREATE TABLE IF NOT EXISTS "+J.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],z,se)}function cc(F){var J=this,z={db:null};if(F)for(var se in F)z[se]=typeof F[se]!="string"?F[se].toString():F[se];var ce=new h(function(ne,Ce){try{z.db=openDatabase(z.name,String(z.version),z.description,z.size)}catch(Ie){return Ce(Ie)}z.db.transaction(function(Ie){Fr(Ie,z,function(){J._dbInfo=z,ne()},function(Oe,Re){Ce(Re)})},Ce)});return z.serializer=nr,ce}function Fs(F,J,z,se,ce,ne){F.executeSql(z,se,ce,function(Ce,Ie){Ie.code===Ie.SYNTAX_ERR?Ce.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[J.storeName],function(Oe,Re){Re.rows.length?ne(Oe,Ie):Fr(Oe,J,function(){Oe.executeSql(z,se,ce,ne)},ne)},ne):ne(Ce,Ie)},ne)}function Dr(F,J){var z=this;F=S(F);var se=new h(function(ce,ne){z.ready().then(function(){var Ce=z._dbInfo;Ce.db.transaction(function(Ie){Fs(Ie,Ce,"SELECT * FROM "+Ce.storeName+" WHERE key = ? LIMIT 1",[F],function(Oe,Re){var De=Re.rows.length?Re.rows.item(0).value:null;De&&(De=Ce.serializer.deserialize(De)),ce(De)},function(Oe,Re){ne(Re)})})}).catch(ne)});return v(se,J),se}function Ya(F,J){var z=this,se=new h(function(ce,ne){z.ready().then(function(){var Ce=z._dbInfo;Ce.db.transaction(function(Ie){Fs(Ie,Ce,"SELECT * FROM "+Ce.storeName,[],function(Oe,Re){for(var De=Re.rows,Ze=De.length,Tt=0;Tt<Ze;Tt++){var Bt=De.item(Tt),zt=Bt.value;if(zt&&(zt=Ce.serializer.deserialize(zt)),zt=F(zt,Bt.key,Tt+1),zt!==void 0){ce(zt);return}}ce()},function(Oe,Re){ne(Re)})})}).catch(ne)});return v(se,J),se}function sr(F,J,z,se){var ce=this;F=S(F);var ne=new h(function(Ce,Ie){ce.ready().then(function(){J===void 0&&(J=null);var Oe=J,Re=ce._dbInfo;Re.serializer.serialize(J,function(De,Ze){Ze?Ie(Ze):Re.db.transaction(function(Tt){Fs(Tt,Re,"INSERT OR REPLACE INTO "+Re.storeName+" (key, value) VALUES (?, ?)",[F,De],function(){Ce(Oe)},function(Bt,zt){Ie(zt)})},function(Tt){if(Tt.code===Tt.QUOTA_ERR){if(se>0){Ce(sr.apply(ce,[F,Oe,z,se-1]));return}Ie(Tt)}})})}).catch(Ie)});return v(ne,z),ne}function uc(F,J,z){return sr.apply(this,[F,J,z,1])}function dc(F,J){var z=this;F=S(F);var se=new h(function(ce,ne){z.ready().then(function(){var Ce=z._dbInfo;Ce.db.transaction(function(Ie){Fs(Ie,Ce,"DELETE FROM "+Ce.storeName+" WHERE key = ?",[F],function(){ce()},function(Oe,Re){ne(Re)})})}).catch(ne)});return v(se,J),se}function fc(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){var ne=J._dbInfo;ne.db.transaction(function(Ce){Fs(Ce,ne,"DELETE FROM "+ne.storeName,[],function(){se()},function(Ie,Oe){ce(Oe)})})}).catch(ce)});return v(z,F),z}function Xa(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){var ne=J._dbInfo;ne.db.transaction(function(Ce){Fs(Ce,ne,"SELECT COUNT(key) as c FROM "+ne.storeName,[],function(Ie,Oe){var Re=Oe.rows.item(0).c;se(Re)},function(Ie,Oe){ce(Oe)})})}).catch(ce)});return v(z,F),z}function hc(F,J){var z=this,se=new h(function(ce,ne){z.ready().then(function(){var Ce=z._dbInfo;Ce.db.transaction(function(Ie){Fs(Ie,Ce,"SELECT key FROM "+Ce.storeName+" WHERE id = ? LIMIT 1",[F+1],function(Oe,Re){var De=Re.rows.length?Re.rows.item(0).key:null;ce(De)},function(Oe,Re){ne(Re)})})}).catch(ne)});return v(se,J),se}function Ds(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){var ne=J._dbInfo;ne.db.transaction(function(Ce){Fs(Ce,ne,"SELECT key FROM "+ne.storeName,[],function(Ie,Oe){for(var Re=[],De=0;De<Oe.rows.length;De++)Re.push(Oe.rows.item(De).key);se(Re)},function(Ie,Oe){ce(Oe)})})}).catch(ce)});return v(z,F),z}function pc(F){return new h(function(J,z){F.transaction(function(se){se.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(ce,ne){for(var Ce=[],Ie=0;Ie<ne.rows.length;Ie++)Ce.push(ne.rows.item(Ie).name);J({db:F,storeNames:Ce})},function(ce,ne){z(ne)})},function(se){z(se)})})}function ta(F,J){J=C.apply(this,arguments);var z=this.config();F=typeof F!="function"&&F||{},F.name||(F.name=F.name||z.name,F.storeName=F.storeName||z.storeName);var se=this,ce;return F.name?ce=new h(function(ne){var Ce;F.name===z.name?Ce=se._dbInfo.db:Ce=openDatabase(F.name,"","",0),F.storeName?ne({db:Ce,storeNames:[F.storeName]}):ne(pc(Ce))}).then(function(ne){return new h(function(Ce,Ie){ne.db.transaction(function(Oe){function Re(Bt){return new h(function(zt,cn){Oe.executeSql("DROP TABLE IF EXISTS "+Bt,[],function(){zt()},function(xt,Zn){cn(Zn)})})}for(var De=[],Ze=0,Tt=ne.storeNames.length;Ze<Tt;Ze++)De.push(Re(ne.storeNames[Ze]));h.all(De).then(function(){Ce()}).catch(function(Bt){Ie(Bt)})},function(Oe){Ie(Oe)})})}):ce=h.reject("Invalid arguments"),v(ce,J),ce}var mc={_driver:"webSQLStorage",_initStorage:cc,_support:ee(),iterate:Ya,getItem:Dr,setItem:uc,removeItem:dc,clear:fc,length:Xa,key:hc,keys:Ds,dropInstance:ta};function na(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Ja(F,J){var z=F.name+"/";return F.storeName!==J.storeName&&(z+=F.storeName+"/"),z}function Ur(){var F="_localforage_support_test";try{return localStorage.setItem(F,!0),localStorage.removeItem(F),!1}catch{return!0}}function gc(){return!Ur()||localStorage.length>0}function vc(F){var J=this,z={};if(F)for(var se in F)z[se]=F[se];return z.keyPrefix=Ja(F,J._defaultConfig),gc()?(J._dbInfo=z,z.serializer=nr,h.resolve()):h.reject()}function bc(F){var J=this,z=J.ready().then(function(){for(var se=J._dbInfo.keyPrefix,ce=localStorage.length-1;ce>=0;ce--){var ne=localStorage.key(ce);ne.indexOf(se)===0&&localStorage.removeItem(ne)}});return v(z,F),z}function yc(F,J){var z=this;F=S(F);var se=z.ready().then(function(){var ce=z._dbInfo,ne=localStorage.getItem(ce.keyPrefix+F);return ne&&(ne=ce.serializer.deserialize(ne)),ne});return v(se,J),se}function _c(F,J){var z=this,se=z.ready().then(function(){for(var ce=z._dbInfo,ne=ce.keyPrefix,Ce=ne.length,Ie=localStorage.length,Oe=1,Re=0;Re<Ie;Re++){var De=localStorage.key(Re);if(De.indexOf(ne)===0){var Ze=localStorage.getItem(De);if(Ze&&(Ze=ce.serializer.deserialize(Ze)),Ze=F(Ze,De.substring(Ce),Oe++),Ze!==void 0)return Ze}}});return v(se,J),se}function jr(F,J){var z=this,se=z.ready().then(function(){var ce=z._dbInfo,ne;try{ne=localStorage.key(F)}catch{ne=null}return ne&&(ne=ne.substring(ce.keyPrefix.length)),ne});return v(se,J),se}function Za(F){var J=this,z=J.ready().then(function(){for(var se=J._dbInfo,ce=localStorage.length,ne=[],Ce=0;Ce<ce;Ce++){var Ie=localStorage.key(Ce);Ie.indexOf(se.keyPrefix)===0&&ne.push(Ie.substring(se.keyPrefix.length))}return ne});return v(z,F),z}function wc(F){var J=this,z=J.keys().then(function(se){return se.length});return v(z,F),z}function Sc(F,J){var z=this;F=S(F);var se=z.ready().then(function(){var ce=z._dbInfo;localStorage.removeItem(ce.keyPrefix+F)});return v(se,J),se}function kc(F,J,z){var se=this;F=S(F);var ce=se.ready().then(function(){J===void 0&&(J=null);var ne=J;return new h(function(Ce,Ie){var Oe=se._dbInfo;Oe.serializer.serialize(J,function(Re,De){if(De)Ie(De);else try{localStorage.setItem(Oe.keyPrefix+F,Re),Ce(ne)}catch(Ze){(Ze.name==="QuotaExceededError"||Ze.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Ie(Ze),Ie(Ze)}})})});return v(ce,z),ce}function $c(F,J){if(J=C.apply(this,arguments),F=typeof F!="function"&&F||{},!F.name){var z=this.config();F.name=F.name||z.name,F.storeName=F.storeName||z.storeName}var se=this,ce;return F.name?ce=new h(function(ne){F.storeName?ne(Ja(F,se._defaultConfig)):ne(F.name+"/")}).then(function(ne){for(var Ce=localStorage.length-1;Ce>=0;Ce--){var Ie=localStorage.key(Ce);Ie.indexOf(ne)===0&&localStorage.removeItem(Ie)}}):ce=h.reject("Invalid arguments"),v(ce,J),ce}var Cc={_driver:"localStorageWrapper",_initStorage:vc,_support:na(),iterate:_c,getItem:yc,setItem:kc,removeItem:Sc,clear:bc,length:wc,key:jr,keys:Za,dropInstance:$c},sa=function(J,z){return J===z||typeof J=="number"&&typeof z=="number"&&isNaN(J)&&isNaN(z)},ti=function(J,z){for(var se=J.length,ce=0;ce<se;){if(sa(J[ce],z))return!0;ce++}return!1},co=Array.isArray||function(F){return Object.prototype.toString.call(F)==="[object Array]"},Ts={},Qa={},Us={INDEXEDDB:G,WEBSQL:mc,LOCALSTORAGE:Cc},el=[Us.INDEXEDDB._driver,Us.WEBSQL._driver,Us.LOCALSTORAGE._driver],uo=["dropInstance"],ni=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(uo),tl={description:"",driver:el.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function nl(F,J){F[J]=function(){var z=arguments;return F.ready().then(function(){return F[J].apply(F,z)})}}function ra(){for(var F=1;F<arguments.length;F++){var J=arguments[F];if(J)for(var z in J)J.hasOwnProperty(z)&&(co(J[z])?arguments[0][z]=J[z].slice():arguments[0][z]=J[z])}return arguments[0]}var Tc=function(){function F(J){i(this,F);for(var z in Us)if(Us.hasOwnProperty(z)){var se=Us[z],ce=se._driver;this[z]=ce,Ts[ce]||this.defineDriver(se)}this._defaultConfig=ra({},tl),this._config=ra({},this._defaultConfig,J),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return F.prototype.config=function(z){if((typeof z>"u"?"undefined":o(z))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var se in z){if(se==="storeName"&&(z[se]=z[se].replace(/\W/g,"_")),se==="version"&&typeof z[se]!="number")return new Error("Database version must be a number.");this._config[se]=z[se]}return"driver"in z&&z.driver?this.setDriver(this._config.driver):!0}else return typeof z=="string"?this._config[z]:this._config},F.prototype.defineDriver=function(z,se,ce){var ne=new h(function(Ce,Ie){try{var Oe=z._driver,Re=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!z._driver){Ie(Re);return}for(var De=ni.concat("_initStorage"),Ze=0,Tt=De.length;Ze<Tt;Ze++){var Bt=De[Ze],zt=!ti(uo,Bt);if((zt||z[Bt])&&typeof z[Bt]!="function"){Ie(Re);return}}var cn=function(){for(var Br=function(ho){return function(){var oa=new Error("Method "+ho+" is not implemented by the current driver"),ri=h.reject(oa);return v(ri,arguments[arguments.length-1]),ri}},fo=0,sl=uo.length;fo<sl;fo++){var si=uo[fo];z[si]||(z[si]=Br(si))}};cn();var xt=function(Br){Ts[Oe]&&console.info("Redefining LocalForage driver: "+Oe),Ts[Oe]=z,Qa[Oe]=Br,Ce()};"_support"in z?z._support&&typeof z._support=="function"?z._support().then(xt,Ie):xt(!!z._support):xt(!0)}catch(Zn){Ie(Zn)}});return y(ne,se,ce),ne},F.prototype.driver=function(){return this._driver||null},F.prototype.getDriver=function(z,se,ce){var ne=Ts[z]?h.resolve(Ts[z]):h.reject(new Error("Driver not found."));return y(ne,se,ce),ne},F.prototype.getSerializer=function(z){var se=h.resolve(nr);return y(se,z),se},F.prototype.ready=function(z){var se=this,ce=se._driverSet.then(function(){return se._ready===null&&(se._ready=se._initDriver()),se._ready});return y(ce,z,z),ce},F.prototype.setDriver=function(z,se,ce){var ne=this;co(z)||(z=[z]);var Ce=this._getSupportedDrivers(z);function Ie(){ne._config.driver=ne.driver()}function Oe(Ze){return ne._extend(Ze),Ie(),ne._ready=ne._initStorage(ne._config),ne._ready}function Re(Ze){return function(){var Tt=0;function Bt(){for(;Tt<Ze.length;){var zt=Ze[Tt];return Tt++,ne._dbInfo=null,ne._ready=null,ne.getDriver(zt).then(Oe).cat
88ch(Bt)}Ie();var cn=new Error("No available storage method found.");return ne._driverSet=h.reject(cn),ne._driverSet}return Bt()}}var De=this._driverSet!==null?this._driverSet.catch(function(){return h.resolve()}):h.resolve();return this._driverSet=De.then(function(){var Ze=Ce[0];return ne._dbInfo=null,ne._ready=null,ne.getDriver(Ze).then(function(Tt){ne._driver=Tt._driver,Ie(),ne._wrapLibraryMethodsWithReady(),ne._initDriver=Re(Ce)})}).catch(function(){Ie();var Ze=new Error("No available storage method found.");return ne._driverSet=h.reject(Ze),ne._driverSet}),y(this._driverSet,se,ce),this._driverSet},F.prototype.supports=function(z){return!!Qa[z]},F.prototype._extend=function(z){ra(this,z)},F.prototype._getSupportedDrivers=function(z){for(var se=[],ce=0,ne=z.length;ce<ne;ce++){var Ce=z[ce];this.supports(Ce)&&se.push(Ce)}return se},F.prototype._wrapLibraryMethodsWithReady=function(){for(var z=0,se=ni.length;z<se;z++)nl(this,ni[z])},F.prototype.createInstance=function(z){return new F(z)},F}(),Ac=new Tc;s.exports=Ac},{3:3}]},{},[4])(4)})}(Vg)),Vg.exports}var ix=ox();const M_=bs(ix),ax=!!document.adoptedStyleSheets,Au={},Gu=(e,t=1e3)=>{if(Au[e])return Au[e];const n={rules:[],ready:!1,priority:t,clear(){this.rules=[]},addRule(s){var o,i;let r=s;(o=CSS.supports)!=null&&o.call(CSS,"backdrop-filter","blur()")||(r=r.replace(/backdrop-filter:[^;]+;/g,"")),!(!((i=CSS.supports)!=null&&i.call(CSS,"selector(::-webkit-scrollbar)"))&&r.startsWith("::-webkit"))&&this.rules.push(r.replace(/var\(--shadowFilter\)[^;]*;/g,""))}};return Au[e]=n,n},X0=Z.throttle(()=>{if(ax)document.adoptedStyleSheets=Object.values(Au).filter(e=>e.ready).sort((e,t)=>e.priority-t.priority).map(e=>{const t=new CSSStyleSheet;
88return e.rules.forEach(n=>t.insertRule(n)),t});else{const e=document.getElementById("custom-styles-holder");for(let t=e.sheet.cssRules.length-1;t>=0;--t)e.sheet.deleteRule(t);Object.values(Au).filter(t=>t.ready).sort((t,n)=>t.priority-n.priority).forEach(t=>{t.rules.forEach(n=>e.sheet.insertRule(n))})}},500),oE="pleroma-eager-styles",iE="pleroma-lazy-styles",lx=(e,t,n)=>{const{onNewRule:s=()=>{},onLazyFinished:r=()=>{},onEagerFinished:o=()=>{}}=t,i=tx({inputRuleset:e,debug:n});yk(i.eager,n).forEach(f=>{s(f,!1)}),o();let a=0;const c=Z.chunk(i.lazy,200),u=()=>{const f=c[a];Promise.all(f.map(h=>h())).then(h=>{yk(h.filter(v=>v),n).forEach(v=>{s(v,!0)}),a+=1,a<c.length?setTimeout(u,0):r()})};return{lazyProcessFunc:u}},cx=async()=>{console.info("Trying to load compiled theme data from cache");const e=await M_.getItem("pleromafe-theme-cache");if(!e)return null;try{if(e.engineChecksum===sE()){const t=Gu(oE,10),n=Gu(iE,20);return e.data[0].forEach(s=>t.addRule(s)),e.data[1].forEach(s=>n.addRule(s)),t.ready=!0,n.ready=!0,console.info("Loaded theme from cache"),!0}else console.warn("Engine checksum doesn't match, cache not usable, clearing"),localStorage.removeItem("pleroma-fe-theme-cache")}catch(t){return console.error("Failed to load theme cache:",t),!1}},ux=(e,t=()=>{},n=()=>{},s)=>{const r=Gu(oE,10),o=Gu(iE,20);r.clear(),o.clear();const{lazyProcessFunc:i}=lx(e,{onNewRule(a,c){c?o.addRule(a):r.addRule(a)},onEagerFinished(){r.ready=!0,X0(),t(),console.info("Eager part of theme finished, waiting for lazy part to finish to store cache")},onLazyFinished(){o.ready=!0,X0();const a={engineChecksum:sE(),data:[r.rules,o.rules]};n(a),M_.setItem("pleromafe-theme-cache",a),console.info("Theme cache stored")}},s);setTimeout(i,0)},aE=({sidebarColumnWidth:e,contentColumnWidth:t,notifsColumnWidth:n,themeEditorMinWidth:s,emojiReactionsScale:r,emojiSize:o,navbarSize:i,panelHeaderSize:a,textSize:c,forcedRoundness:u})=>{const f={sidebarColumnWidth:e,contentColumnWidth:t,notifsColumnWidth:n,themeEditorMinWidth:parseInt(s)===0?"fit-content":s,emojiReactionsScale:r,emojiSize:o,navbarSize:i,panelHeaderSize:a,textSize:c};switch(u){case"disable":break;case"0":f.forcedRoundness="0";break;case"1":f.forcedRoundness="1px";break;case"2":f.forcedRoundness="0.4rem";break}return f},dx=aE(Yf),J0=e=>{const t=aE(e);if(t===dx)return;const n=Object.entries(t).filter(([,r])=>r).map(([r,o])=>`--${r}: ${o}`).join(";"),s=Gu("theme-holder",30);s.clear(),s.addRule(`:root { ${n} }`),Object.prototype.hasOwnProperty.call(t,"forcedRoundness")&&s.addRule(` *:not(.preview-block) {
89        --roundness: var(--forcedRoundness) !important;
90    }`),s.ready=!0,X0()},Wg=async(e,t=JSON.parse)=>{const n="no-store",s=e.replace(/\.(\w+)$/,".custom.$1");let r,o;const i=c=>Object.entries(c).map(([u,f])=>typeof f=="object"?[u,()=>Promise.resolve(f)]:typeof f=="string"?[u,()=>window.fetch(f,{cache:n}).then(h=>h.text()).then(h=>t(h)).catch(h=>(console.error(h),null))]:(console.error(`Unknown resource format - ${u} is a ${typeof f}`),[u,null]));try{const u=await(await window.fetch(e,{cache:n})).json();r=i(u)}catch{r=[],console.warn(`Builtin resources at ${e} unavailable`)}try{const u=await(await window.fetch(s,{cache:n})).json();o=i(u)}catch{o=[],console.warn(`Custom resources at ${s} unavailable`)}const a=[...o,...r];return a.length===0?Promise.reject(new Error(`Resource at ${e} and ${s} completely unavailable. Panicking`)):Promise.resolve(Object.fromEntries(a))},lE=["ar","ca","cs","de","eo","en","es","et","eu","fi","fr","ga","he","hu","it","ja","ja_easy","ko","nan-TW","nb","nl","oc","pl","pdc","pt","ro","ru","sk","te","uk","zh","zh_Hant"],fx={ja:"ja_pedantic"},hx=e=>fx[e]||e,N_=e=>{const t=Array.isArray(e)?e:[e];return t.includes("en")?t:t.concat(["en"])},cE={mrf:{federation:"Federation",keyword:{keyword_policies:"Keyword policies",ftl_removal:'Removal from "The Whole Known Network" Timeline',reject:"Reject",replace:"Replace",is_replaced_by:"→"},mrf_policies:"Enabled MRF policies",mrf_policies_desc:"MRF policies manipulate the federation behaviour of the instance.  The following policies are enabled:",simple:{simple_policies:"Instance-specific policies",instance:"Instance",reason:"Reason",
90not_applicable:"N/A",accept:"Accept",accept_desc:"This instance only accepts messages from the following instances:",reject:"Reject",reject_desc:"This instance will not accept messages from the following instances:",quarantine:"Quarantine",quarantine_desc:"This instance will send only public posts to the following instances:",ftl_removal:'Removal from "Known Network" Timeline',ftl_removal_desc:'This instance removes these instances from "Known Network" timeline:',media_removal:"Media Removal",media_removal_desc:"This instance removes media from posts on the following instances:",media_nsfw:"Media force-set as sensitive",media_nsfw_desc:"This instance forces media to be set sensitive in posts on the following instances:"}},staff:"Staff",terms:"Terms of Service"},uE={page_header:"Announcements",title:"Announcement",mark_as_read_action:"Mark as read",post_form_header:"Post announcement",post_placeholder:"Type your announcement content here...",post_action:"Post",post_error:"Error: {error}",close_error:"Close",delete_action:"Delete",start_time_prompt:"Start time: ",end_time_prompt:"End time: ",all_day_prompt:"This is an all-day event",published_time_display:"Published at {time}",start_time_display:"Starts at {time}",end_time_display:"Ends at {time}",edit_action:"Edit",submit_edit_action:"Submit",cancel_edit_action:"Cancel",inactive_message:"This announcement is inactive"},dE={title:"Shoutbox"},fE={mute:"Mute",mute_progress:"Muting…",unmute:"Unmute",unmute_progress:"Unmuting…"},hE={export:"Export",processing:"Processing, you'll soon be asked to download your file"},pE={shout:"Shoutbox",pleroma_chat_messages:"Pleroma Chat",gopher:"Gopher",media_proxy:"Media proxy",scope_options:"Scope options",text_limit:"Text limit",title:"Features",who_to_follow:"Who to follow",upload_limit:"Upload limit"},mE={error_fetching_user:"Error fetching user",find_user:"Find user"},gE={apply:"Apply",submit:"Submit",more:"More",loading:"Loading…",generic_error:"An error occured",generic_error_message:"An error occured: {0}",error_retry:"Please try again",retry:"Try again",optional:"optional",show_more:"Show more",show_less:"Show less",never_show_again:"Never show again",dismiss:"Dismiss",cancel:"Cancel",disable:"Disable",enable:"Enable",confirm:"Confirm",verify:"Verify",close:"Close",undo:"Undo",yes:"Yes",no:"No",peek:"Peek",scroll_to_top:"Scroll to top",role:{admin:"Admin",moderator:"Moderator"},unpin:"Unpin item",pin:"Pin item",flash_content:"Click to show Flash content using Ruffle (Experimental, may not work).",flash_security:"Note that this can be potentially dangerous since Flash content is still arbitrary code.",flash_fail:"Failed to load flash content, see console for details.",scope_in_timeline:{local:"Non-federated",direct:"Direct",private:"Followers-only",public:"Public",unlisted:"Unlisted"}},vE={crop_picture:"Crop picture",save:"Save",save_without_cropping:"Save without cropping",cancel:"Cancel"},bE={submit:"Submit",import:"Import",success:"Imported successfully.",error:"An error occured while importing this file."},yE={login:"Log in",description:"Log in with OAuth",logout:"Log out",logout_confirm_title:"Logout confirmation",logout_confirm:"Do you really want to logout?",logout_confirm_accept_button:"Logout",logout_confirm_cancel_button:"Do not logout",password:"Password",placeholder:"e.g. lain",register:"Register",username:"Username",hint:"Log in to join the discussion",authentication_code:"Authentication code",enter_recovery_code:"Enter a recovery code",enter_two_factor_code:"Enter a two-factor code",recovery_code:"Recovery code",heading:{totp:"Two-factor authentication",recovery:"Two-factor recovery"}},_E={previous:"Previous",next:"Next",counter:"{current} / {total}",hide:"Close media viewer"},wE={about:"About",administration:"Administration",back:"Back",friend_requests:"Follow requests",mentions:"Mentions",interactions:"Interactions",dms:"Direct messages",public_tl:"Public timeline",bubble:"Bubble timeline",timeline:"Timeline",home_timeline:"Home timeline",twkn:"Known Network",bookmarks:"Bookmarks",all_bookmarks:"All bookmarks",bookmark_folders:"Bookmark folders",user_search:"User Search",search:"Search",search_close:"Close search bar",who_to_follow:"Who to follow",preferences:"Preferences",timelines:"Timelines",chats:"Chats",lists:"Lists",edit_nav_mobile:"Customize navigation bar",edit_pinned:"Edit pinned items",edit_finish:"Done editing",mobile_sidebar:"Toggle mobile sidebar",mobile_notifications:"Open notifications (there are unread ones)",mobile_notifications_close:"Close notifications",mobile_notifications_mark_as_seen:"Mark all as seen",announcements:"Announcements",quotes:"Quotes",drafts:"Drafts"},SE={broken_favorite:"Unknown status, searching for it…",error:"Error fetching notifications: {0}",favorited_you:"favorited your status",followed_you:"followed you",follow_request:"wants to follow you",load_older:"Load older notifications",notifications:"Notifications",read:"Read!",repeated_you:"repeated your status",no_more_notifications:"No more notifications",migrated_to:"migrated to",reacted_with:"reacted with {0}",submitted_report:"submitted a report",poll_ended:"poll has ended",unread_announcements:"{num} unread announcement | {num} unread announcements",unread_chats:"{num} unread chat | {num} unread chats",unread_follow_requests:"{num} new follow request | {num} new follow requests",configuration_tip:"You can customize what to display here in {theSettings}. {dismiss}",configuration_tip_settings:"the settings",configuration_tip_dismiss:"Do not show again",subscribed_status:"posted"},kE={add_poll:"Add poll",add_option:"Add option",option:"Option",votes:"votes",people_voted_count:"{count} person voted | {count} people voted",votes_count:"{count} vote | {count} votes",vote:"Vote",type:"Poll type",single_choice:"Single choice",multiple_choices:"Multiple choices",expiry:"Poll age",expires_at:"Poll ends {0}",expires_in:"Poll ends in {0}",expired:"Poll ended {0} ago",expired_at:"Poll ended {0}",not_enough_options:"Too few unique options in poll",non_anonymous:"Public poll",non_anonymous_title:"Other instances may display the options you voted for"},$E={stickers:"Stickers",emoji:"Emoji",keep_open:"Keep picker open",search_emoji:"Search for an emoji",add_emoji:"Insert emoji",custom:"Custom emoji",hide_custom_emoji:"Hide custom emojis",unpacked:"Unpacked emoji",unicode:"Unicode emoji",unicode_groups:{activities:"Activities","animals-and-nature":"Animals & Nature",flags:"Flags","food-and-drink":"Food & Drink",objects:"Objects","people-and-body":"People & Body","smileys-and-emotion":"Smileys & Emotion",symbols:"Symbols","travel-and-places":"Travel & Places"},load_all_hint:"Loaded first {saneAmount} emoji, loading all emoji may cause performance issues.",load_all:"Loading all {emojiAmount} emoji",regional_indicator:"Regional indicator {letter}"},CE={storage_unavailable:"Pleroma could not access browser storage. Your login or your local settings won't be saved and you might encounter unexpected issues. Try enabling cookies."},TE={favs_repeats:"Repeats and favorites",follows:"New follows",emoji_reactions:"Emoji Reactions",reports:"Reports",moves:"User migrates",load_older:"Load older interactions",statuses:"Subscriptions"},AE={edit_status:"Edit status",new_status:"Post new status",reply_option:"Reply to this status",quote_option:"Quote this status",account_not_locked_warning:"Your account is not {0}. Anyone can follow you to view your follower-only posts.",account_not_locked_warning_link:"locked",attachments_sensitive:"Mark attachments as sensitive",media_description:"Media description",content_type:{"text/plain":"Plain text","text/html":"HTML","text/markdown":"Markdown","text/bbcode":"BBCode","text/x.misskeymarkdown":"MFM"},content_type_selection:"Post format",content_warning:"Subject (optional)",default:"Just landed in L.A.",direct_warning_to_all:"This post will be visible to all the mentioned users.",direct_warning_to_first_only:"This post will only be visible to the mentioned users at the beginning of the message.",edit_remote_warning:"Other remote instances may not support editing and unable to re
90ceive the latest version of your post.",edit_unsupported_warning:"Pleroma does not support editing mentions or polls.",posting:"Posting",post:"Post",preview:"Preview",preview_empty:"Empty",empty_status_error:"Can't post an empty status with no files",media_description_error:"Failed to update media, try again",scope_notice:{public:"This post will be visible to everyone",private:"This post will be visible to your followers only",unlisted:"This post will not be visible in Public Timeline and The Whole Known Network"},scope_notice_dismiss:"Close this notice",scope:{direct:"Direct - post to mentioned users only",private:"Followers-only - post to followers only",public:"Public - post to public timelines",unlisted:"Unlisted - do not post to public timelines"},close_confirm_title:"Closing post form",close_confirm:"What do you want to do with your current writing?",close_confirm_save_button:"Save",close_confirm_discard_button:"Discard",close_confirm_continue_composing_button:"Continue composing",auto_save_nothing_new:"Nothing new to save.",auto_save_saved:"Saved.",auto_save_saving:"Saving...",save_to_drafts_button:"Save to drafts",save_to_drafts_and_close_button:"Save to drafts and close",more_post_actions:"More post actions..."},EE={bio_optional:"Bio (optional)",email:"Email",email_optional:"Email (optional)",fullname:"Display name",password_confirm:"Password confirmation",registration:"Registration",token:"Invite token",captcha:"CAPTCHA",new_captcha:"Click the image to get a new captcha",username_placeholder:"e.g. lain",fullname_placeholder:"e.g. Lain Iwakura",bio_placeholder:`e.g.
91Hi, I'm Lain.
92I’m an anime girl living in suburban Japan. You may know me from the Wired.`,reason:"Reason to register",reason_placeholder:`This instance approves registrations manually.
93Let the administration know why you want to register.`,register:"Register",validations:{username_required:"cannot be left blank",fullname_required:"cannot be left blank",email_required:"cannot be left blank",password_required:"cannot be left blank",password_confirmation_required:"cannot be left blank",password_confirmation_match:"should be the same as password",birthday_required:"cannot be left blank",birthday_min_age:"must be on or before {date}"},email_language:"In which language do you want to receive emails from the server?",birthday:"Birthday:",birthday_optional:"Birthday (optional):"},IE={remote_user_resolver:"Remote user resolver",searching_for:"Searching for",error:"Not found."},PE={reporter:"Reporter:",reported_user:"Reported user:",reported_statuses:"Reported statuses:",notes:"Notes:",state:"State:",state_open:"Open",state_closed:"Closed",state_resolved:"Resolved"},LE={select_all:"Select all"},OE=JSON.parse(`{"add_language":"Add fallback language","remove_language":"Remove","primary_language":"Primary language:","fallback_language":"Fallback language {index}:","actor_type":"This account is:","actor_type_description":"Marking your account as a group will make it automatically repeat statuses that mention it.","actor_type_Person":"a normal user","actor_type_person_proper":"a person","actor_type_Service":"a bot","actor_type_Group":"a group","mobile_center_dialog":"Vertically center dialogs on mobile","app_name":"App name","expert_mode":"Show advanced","save":"Save changes","reset":"Reset changes","security":"Security","toggle_edit":"Edit","change_banner":"Change banner","change_avatar":"Change avatar","setting_changed":"Setting is different from default","setting_server_side":"This setting is tied to your profile and affects all sessions and clients","enter_current_password_to_confirm":"Enter your current password to confirm your identity","post_look_feel":"Posts Look & Feel","posts":"Posts","developer":"Developer","debug":"Debug","mention_links":"Mention Links","appearance":"Appearance","confirm_new_setting":"Confirm new setting?","confirm_new_question":"Does this look ok? Setting will be reverted in 10 seconds.","confirm_new_question_countdown":"Does this look ok? Setting will be reverted in 1 second. | Does this look ok? Setting will be reverted in {count} seconds.","revert":"Revert","confirm":"Confirm","text_size":"Text and interface size","text_size_tip":"Use {0} for absolute values, {1} will scale with browser default text size.","text_size_tip2":"Values other than {0} might break some things and themes","emoji_size":"Emoji size","navbar_size":"Top bar size","panel_header_size":"Panel header size","visual_tweaks":"Minor visual tweaks","theme_debug":"Show what background theme engine assumes when dealing with transparancy","scale_and_layout":"Interface scale and layout","timelines":"Timelines","format_and_language":"Format and Language","confirmations":"Confirmations","layout":"Layout","enabled":"Enabled","clutter":"Clutter","filter":{"clutter":"Remove clutter","mute_filter":"Mute Filters","type":"Filter type","regexp":"RegExp","plain":"Simple","user":"User (Simple)","user_regexp":"User (RegExp)","hide":"Hide completely","name":"Name","value":"Value","expires":"Expires","expired":"Expired","copy":"Duplicate","save":"Save","delete":"Remove","new":"Create new","import":"Import","export":"Export","regexp_error":"Invalid Regular Expression","never_expires":"Never","total_count":"Total {count} custom filter|Total {count} custom filters","expired_count":"{count} expired filter|{count} expired filters","custom_filters":"Custom filters","purge_expired":"Remove expired filters","import_failure":"The selected file is not a supported Pleroma filter.","help":{"word":"Simple and RegExp filters test against post's content and subject.","user":"User filter matches full user handle (user{'@'}domain) in the following: author, reply-to and mentions","regexp":"Regex variants are more advanced and use {link} to match instead of simple substring search.","regexp_link":"Regular Expressions","regexp_url":"https://en.wikipedia.org/wiki/Regular_expression"}},"mfa":{"otp":"OTP","setup_otp":"Setup OTP","wait_pre_setup_otp":"presetting OTP","confirm_and_enable":"Confirm & enable OTP","title":"Two-factor Authentication","generate_new_recovery_codes":"Generate new recovery codes","warning_of_generate_new_codes":"When you generate new recovery codes, your old codes won’t work anymore.","recovery_codes":"Recovery codes.","waiting_a_recovery_codes":"Receiving backup codes…","recovery_codes_warning":"Write the codes down or save them somewhere secure - otherwise you won't see them again. If you lose access to your 2FA app and recovery codes you'll be locked out of your account.","authentication_methods":"Authentication methods","scan":{"title":"Scan","desc":"Using your two-factor app, scan this QR code or enter text key:","
93secret_code":"Key"},"verify":{"desc":"To enable two-factor authentication, enter the code from your two-factor app:"}},"units":{"time":{"m":"minutes","s":"seconds","h":"hours","d":"days"}},"lists_navigation":"Show lists in navigation","allow_following_move":"Allow auto-follow when following account moves","attachmentRadius":"Attachments","attachments":"Attachments","image_compression":"Compress images before uploading","always_use_jpeg":"Always convert images to JPEG format","avatar":"Avatar","avatarAltRadius":"Avatars (notifications)","avatarRadius":"Avatars","background":"Background","bio":"Bio","profile_other":"Other","email_language":"Language for receiving emails from the server","block_export":"Block export","block_export_button":"Export your blocks to a csv file","block_import":"Block import","block_import_error":"Error importing blocks","blocks_imported":"Blocks imported! Processing them will take a while.","mute_export":"Mute export","mute_export_button":"Export your mutes to a csv file","mute_import":"Mute import","mute_import_error":"Error importing mutes","mutes_imported":"Mutes imported! Processing them will take a while.","import_mutes_from_a_csv_file":"Import mutes from a csv file","account_backup":"Account backup","account_backup_description":"This allows you to download an archive of your account information and your posts, but they cannot yet be imported into a Pleroma account.","account_backup_table_head":"Backup","download_backup":"Download","backup_not_ready":"This backup is not ready yet.","backup_running":"This backup is in progress, processed {number} record. | This backup is in progress, processed {number} records.","backup_failed":"This backup has failed.","remove_backup":"Remove","list_backups_error":"Error fetching backup list: {error}","add_backup":"Create a new backup","added_backup":"Added a new backup.","add_backup_error":"Error adding a new backup: {error}","blocks_tab":"Blocks","btnRadius":"Buttons","cBlue":"Blue (Reply, follow)","cGreen":"Green (Retweet)","cOrange":"Orange (Favorite)","cRed":"Red (Cancel)","change_email":"Change email","change_email_error":"There was an issue changing your email.","changed_email":"Email changed successfully!","change_password":"Change password","change_password_error":"There was an issue changing your password.","changed_password":"Password changed successfully!","chatMessageRadius":"Chat message","collapse_subject":"Collapse posts with subjects","composing":"Composing","replies":"Replying","confirm_new_password":"Confirm new password","current_password":"Current password","confirm_dialogs":"Ask for confirmation when","confirm_dialogs_repeat":"repeating a status","confirm_dialogs_unfollow":"unfollowing a user","confirm_dialogs_block":"blocking a user","confirm_dialogs_mute":"muting a user","confirm_dialogs_mute_domain":"muting domains","confirm_dialogs_mute_conversation":"muting conversations","confirm_dialogs_delete":"deleting a status","confirm_dialogs_logout":"logging out","confirm_dialogs_approve_follow":"approving a follower","confirm_dialogs_deny_follow":"denying a follower","confirm_dialogs_remove_follower":"removing a follower","mutes_and_blocks":"Mutes and Blocks","data_import_export_tab":"Data import / export","default_vis":"Default visibility scope","delete_account":"Delete account","delete_account_description":"Permanently delete your data and deactivate your account.","delete_account_error":"There was an issue deleting your account. If this persists please contact your instance administrator.","delete_account_instructions":"Type your password in the input below to confirm account deletion.","account_alias":"Account aliases","account_alias_table_head":"Alias","list_aliases_error":"Error fetching aliases: {error}","hide_list_aliases_error_action":"Close","remove_alias":"Remove this alias","new_alias_target":"Add a new alias (e.g. {example})","added_alias":"Alias is added.","add_alias_error":"Error adding alias: {error}","move_account":"Move account","move_account_notes":"If you want to move the account somewhere else, you must go to your target account and add an alias pointing here.","move_account_target":"Target account (e.g. {example})","moved_account":"Account is moved.","move_account_error":"Error moving account: {error}","discoverable":"Allow discovery of this account in search results and other services","domain_mutes":"Domains","avatar_size_instruction":"The recommended minimum size for avatar images is 150x150 pixels. Recommended aspect ratio is 1:1","banner_size_instruction":"The recommended minimum size for banner images is 450x150 pixels. Recommended aspect ratio is 3:1","pad_emoji":"Pad emoji with spaces when adding from picker","autocomplete_select_first":"Automatically select the first candidate when autocomplete results are available","unsaved_post_action":"When you try to close an unsaved posting form","unsaved_post_action_save":"Save it to drafts","unsaved_post_action_discard":"Discard it","unsaved_post_action_confirm":"Ask every time","auto_save_draft":"Save drafts as you compose","emoji_reactions_on_timeline":"Show emoji reactions on timeline","emoji_reactions_scale":"Reactions scale factor","absolute_time_format":"Use absolute time format","absolute_time_format_min_age":"Only use for time older than this amount of time","absolute_time_format_12h":"Time format","absolute_time_format_12h_12h":"12 hour format (i.e. 10:00 PM)","absolute_time_format_12h_24h":"24 hour format (i.e. 22:00)","export_theme":"Save preset","filtering":"Filtering","wordfilter":"Wordfilter","filtering_explanation":"All statuses containing these words will be muted, one per line","word_filter_and_more":"Word filter and more...","follow_export":"Follow export","follow_export_button":"Export your follows to a csv file","follow_import":"Follow import","follow_import_error":"Error importing followers","import_export":{"title":"Import / Export","follows":"List of users you follow","blocks":"List of users you block","mutes":"List of users you mute"},"follows_imported":"Follows imported! Processing them will take a while.","accent":"Accent","foreground":"Foreground","general":"General","hide_attachments_in_convo":"Hide attachments in conversations","hide_attachments_in_tl":"Hide attachments in timeline","hide_media_previews":"Hide media previews","hide_muted_posts":"Hide posts of muted users","mute_bot_posts":"Mute bot posts","hide_actor_type_indication":"Hide actor type (bots, groups, etc.) indication in posts","hide_scrobbles":"Hide scrobbles","hide_scrobbles_after":"Hide scrobbles older than","mute_sensitive_posts":"Mute sensitive posts","hide_all_muted_posts":"Hide muted posts","max_thumbnails":"Maximum amount of thumbnails per post (empty = no limit)","hide_isp":"Hide instance-specific panel","hide_shoutbox":"Hide instance shoutbox","right_sidebar":"Reverse order of columns","navbar_column_stretch":"Stretch navbar to columns width","always_show_post_button":"Always show floating New Post button","hide_wallpaper":"Hide instance wallpaper","preload_images":"Preload images","use_one_click_nsfw":"Open NSFW attachments with just one click","hide_post_stats":"Hide post statistics (e.g. the number of favorites)","hide_user_stats":"Hide user statistics (e.g. the number of followers)","hide_filtered_statuses":"Hide all filtered posts","hide_muted_statuses":"Completely hide all muted posts","hide_wordfiltered_statuses":"Hide word-filtered statuses","hide_muted_threads":"Hide muted threads","import_blocks_from_a_csv_file":"Import blocks from a csv file","import_followers_from_a_csv_file":"Import follows from a csv file","import_theme":"Load preset","inputRadius":"Input fields","checkboxRadius":"Checkboxes","instance_default":"(default: {value})","instance_default_simple":"(default)","interface":"Interface","interfaceLanguage":"Interface language","invali
93d_theme_imported":"The selected file is not a supported Pleroma theme. No changes to your theme were made.","limited_availability":"Unavailable in your browser","links":"Links","lock_account_description":"Restrict your account to approved followers only","loop_video":"Loop videos","loop_video_silent_only":"Loop only videos without sound (i.e. Mastodon's \\"gifs\\")","mutes_tab":"Mutes","play_videos_in_modal":"Play videos in a popup frame","url":"URL","preview":"Preview","file_export_import":{"backup_restore":"Settings backup","backup_settings":"Backup settings to file","backup_settings_theme":"Backup settings and theme to file","restore_settings":"Restore settings from file","errors":{"invalid_file":"The selected file is not a supported Pleroma settings backup. No changes were made.","file_too_new":"Incompatile major version: {fileMajor}, this PleromaFE (settings ver {feMajor}) is too old to handle it","file_too_old":"Incompatile major version: {fileMajor}, file version is too old and not supported (min. set. ver. {feMajor})","file_slightly_new":"File minor version is different, some settings might not load"}},"profile_fields":{"label":"Profile metadata","add_field":"Add field","name":"Label","value":"Content"},"birthday":{"label":"Birthday","show_birthday":"Show my birthday"},"account_profile_edit":"Edit Profile","account_privacy":"Privacy","use_contain_fit":"Don't crop the attachment in thumbnails","name":"Name","name_bio":"Name & bio","new_email":"New email","new_password":"New password","user_profiles":"User Profiles","notification_visibility":"Types of notifications to show","notification_visibility_in_column":"Show in notifications column/drawer","notification_visibility_native_notifications":"Show a native notification","notification_visibility_follows":"Follows","notification_visibility_follow_requests":"Follow requests","notification_visibility_likes":"Favorites","notification_visibility_mentions":"Mentions","notification_visibility_repeats":"Repeats","notification_visibility_reports":"Reports","notification_visibility_moves":"User Migrates","notification_visibility_emoji_reactions":"Reactions","notification_visibility_polls":"Ends of polls you voted in","notification_visibility_statuses":"Subscriptions","notification_show_extra":"Show extra notifications in the notifications column","notification_extra_chats":"Show unread chats","notification_extra_announcements":"Show unread announcements","notification_extra_follow_requests":"Show new follow requests","notification_extra_tip":"Show the customization tip for extra notifications","no_rich_text_description":"Strip rich text formatting from all posts","no_blocks":"No blocks","no_mutes":"No mutes","hide_favorites_description":"Don't show list of my favorites (people still get notified)","hide_follows_description":"Don't show who I'm following","hide_followers_description":"Don't show who's following me","hide_follows_count_description":"Don't show follow count","hide_followers_count_description":"Don't show follower count","show_admin_badge":"Show \\"Admin\\" badge in my profile","show_moderator_badge":"Show \\"Moderator\\" badge in my profile","nsfw_clickthrough":"Hide sensitive/NSFW media","oauth_tokens":"OAuth tokens","token":"Token","refresh_token":"Refresh token","valid_until":"Valid until","revoke_token":"Revoke","panelRadius":"Panels","pause_on_unfocused":"Pause when tab is not focused","presets":"Presets","profile_background":"Profile background","profile_banner":"Profile banner","profile_tab":"Profile","radii_help":"Set up interface edge rounding (in pixels)","replies_in_timeline":"Replies in timeline","reply_visibility_all":"Show all replies","reply_visibility_following":"Only show replies directed at me or users I'm following","reply_visibility_self":"Only show replies directed at me","reply_visibility_following_short":"Show replies to my follows","reply_visibility_self_short":"Show replies to self only","autohide_floating_post_button":"Automatically hide New Post button (mobile)","saving_err":"Error saving settings","saving_ok":"Settings saved","search_user_to_block":"Search whom you want to block","search_user_to_mute":"Search whom you want to mute","security_tab":"Security","scope_copy":"Copy scope when replying (DMs are always copied)","minimal_scopes_mode":"Minimize post scope selection options","set_new_avatar":"Set new avatar","set_new_profile_background":"Set new profile background","set_new_background":"Set new background","set_new_profile_banner":"Set new profile banner","reset_avatar":"Reset avatar","reset_banner":"Reset banner","reset_profile_background":"Reset profile background","reset_profile_banner":"Reset profile banner","reset_avatar_confirm":"Do you really want to reset the avatar?","reset_banner_confirm":"Do you really want to reset the banner?","reset_background_confirm":"Do you really want to reset the background?","settings":"Settings","subject_input_always_show":"Always show subject field","subject_line_behavior":"Copy subject when replying","subject_line_email":"Like email: \\"re: subject\\"","subject_line_mastodon":"Like mastodon: copy as is","
93subject_line_noop":"Do not copy","force_theme_recompilation_debug":"Disable theme cahe, force recompile on each boot","conversation_display":"Conversation display style","conversation_display_tree":"Tree-style","conversation_display_tree_quick":"Tree view","disable_sticky_headers":"Don't stick column headers to top of the screen","show_scrollbars":"Show side column's scrollbars","third_column_mode":"When there's enough space, show third column containing","third_column_mode_none":"Don't show third column at all","third_column_mode_notifications":"Notifications column","third_column_mode_postform":"Main post form and navigation","columns":"Columns","column_sizes":"Column sizes","column_sizes_sidebar":"Sidebar","column_sizes_content":"Content","column_sizes_notifs":"Notifications","scale_and_font":"Scale and Font","theme_editor_min_width":"Minimum width of theme editor (0 for \\"fit-content\\")","tree_advanced":"Allow more flexible navigation in tree view","tree_fade_ancestors":"Display ancestors of the current status in faint text","conversation_display_linear":"Linear-style","conversation_display_linear_quick":"Linear view","conversation_other_replies_button":"Show the \\"other replies\\" button","conversation_other_replies_button_below":"Below statuses","conversation_other_replies_button_inside":"Inside statuses","max_depth_in_thread":"Maximum number of levels in thread to display by default","post_status_content_type":"Post status content type","default_post_status_content_type":"Default post status content type","sensitive_by_default":"Mark posts as sensitive by default","stop_gifs":"Pause animated images until you hover on them","streaming":"Automatically show new posts when scrolled to the top","auto_update":"Show new posts automatically","user_mutes":"Users","useStreamingApi":"Receive posts and notifications real-time","use_websockets":"Use websockets (Realtime updates)","text":"Text","theme":"Theme","theme_old":"Theme editor (old)","theme_help":"Use hex color codes (#rrggbb) to customize your color theme.","theme_help_v2_1":"You can also override certain component's colors and opacity by toggling the checkbox, use \\"Clear all\\" button to clear all overrides.","theme_help_v2_2":"Icons underneath some entries are background/text contrast indicators, hover over for detailed info. Please keep in mind that when using transparency contrast indicators show the worst possible case.","tooltipRadius":"Tooltips/alerts","type_domains_to_mute":"Search domains to mute","upload_a_photo":"Upload a photo","upload_picture":"Upload picture","select_picture":"Select picture","user_settings":"User Settings","values":{"false":"no","true":"yes"},"virtual_scrolling":"Optimize timeline rendering","use_at_icon":"Display {'@'} symbol as an icon instead of text","mention_link_display":"Display mention links","mention_link_display_short":"always as short names (e.g. {'@'}foo)","mention_link_display_full_for_remote":"as full names only for remote users (e.g. {'@'}foo{'@'}example.org)","mention_link_display_full":"always as full names (e.g. {'@'}foo{'@'}example.org)","mention_link_use_tooltip":"Show user card when clicking mention links","mention_link_show_avatar":"Show user avatar beside the link","mention_link_show_avatar_quick":"Show user avatar next to mentions","mention_link_fade_domain":"Fade domains (e.g. {'@'}example.org in {'@'}foo{'@'}example.org)","mention_link_bolden_you":"Highlight mention of you when you are mentioned","user_popover_avatar_action":"Popover avatar click action","user_popover_avatar_action_zoom":"Zoom the avatar","user_popover_avatar_action_close":"Close the popover","user_popover_avatar_action_open":"Open profile","user_popover_avatar_overlay":"Show user popover over user avatar","user_card_left_justify":"Justify user bio to the left","user_card_hide_personal_marks":"Hide personal marks (highlight/note) in user profiles","posts_appearance":"Posts Appearance","fun":"Fun","greentext":"Meme arrows","plaintext_quotes":"Highlight plaintext {0}","greentext_quotes":">quotes","show_yous":"Show (You)s","notifications":"Notifications","notification_setting_annoyance":"Annoyance","notification_setting_drawer_marks_as_seen":"Closing drawer (mobile) marks all notifications as read","notification_setting_ignore_inactionable_seen":"Ignore read state of inactionable notifications (likes, repeats etc)","notification_setting_ignore_inactionable_seen_tip":"This will not actually mark those notifications as read, and you'll still get desktop notifications about them if you chose so","notification_setting_unseen_at_top":"Show unread notifications above others","notification_setting_filters":"Filters","notification_setting_filters_chrome_push":"On some browsers (chrome) it might be impossible to completely filter out notifications by type when they arrive by Push","notification_setting_block_from_strangers":"Block notifications from users who you do not follow","notification_setting_privacy":"Privacy","
93notification_setting_hide_notification_contents":"Hide the sender and contents of push notifications","notification_mutes":"To stop receiving notifications from a specific user, use a mute.","notification_blocks":"Blocking a user stops all notifications as well as unsubscribes them.","enable_web_push_notifications":"Enable web push notifications","enable_web_push_always_show":"Always show web push notifications","enable_web_push_always_show_tip":"Some browsers (Chromium, Chrome) require that push messages always result in a notification, otherwise generic 'Website was updated in background' is shown, enable this to prevent this notification from showing, as Chrome seem to hide push notifications if tab is in focus. Can result in showing duplicate notifications on other browsers.","more_settings":"More settings","style":{"style_section":"Style","custom_theme_used":"(Custom theme)","custom_style_used":"(Custom style)","stock_theme_used":"(Stock theme)","themes2_outdated":"Editor for Themes V2 is being phased out and will eventually be replaced with a new one that takes advantage of new Themes V3 engine. It should still work but experience might be degraded and inconsistent.","appearance_tab_note":"Changes on this tab do not affect the theme used, so exported theme will be different from what seen in the UI","visual_tweaks_section_note":"Changes in this section do not affect the theme used, exported theme will be different from what seen in the UI","update_preview":"Update preview","themes3":{"define":"Override","palette":{"label":"Color schemes","name_label":"Color scheme name","import":"Import palette","export":"Export palette","apply":"Apply palette","bg":"Panel background","fg":"Buttons etc.","text":"Text","link":"Links","accent":"Accent color","cRed":"Red color","cBlue":"Blue color","cGreen":"Green color","cOrange":"Orange color","wallpaper":"Wallpaper","v2_unsupported":"Older v2 themes don't support palettes. Switch to v3 theme to make use of palettes","bundled":"Bundled palettes","style":"Palettes provided by selected style","user":"Custom palette","imported":"Imported"},"editor":{"title":"Style editor","reset_style":"Reset","load_style":"Open from file","save_style":"Save","style_name":"Stylesheet name","style_author":"Made by","style_license":"License","style_website":"Website","component_selector":"Component","variant_selector":"Variant","states_selector":"States","main_tab":"Main","shadows_tab":"Shadows","background":"Background color","text_color":"Text color","icon_color":"Icon color","link_color":"Link color","contrast":"Text contrast","roundness":"Roundness","opacity":"Opacity","border_color":"Border color","include_in_rule":"Add to rule","test_string":"TEST","invalid":"Invalid","refresh_preview":"Refresh preview","apply_preview":"Apply","text_auto":{"label":"Auto-contrast","no-preserve":"Black or White","preserve":"Keep color","no-auto":"Disabled"},"component_tab":"Components style","palette_tab":"Color schemes","variables_tab":"Variables (Advanced)","variables":{"label":"Variables","name_label":"Name:","type_label":"Type:","type_shadow":"Shadow","type_color":"Color","type_generic":"Generic","virtual_color":"Variable color value"}},"hacks":{"underlay_overrides":"Change underlay","underlay_override_mode_none":"Theme default","underlay_override_mode_opaque":"Replace with solid color","underlay_override_mode_transparent":"Remove entirely (might break some themes)","force_interface_roundness":"Override interface roundness/sharpness","forced_roundness_mode_disabled":"Use theme defaults","forced_roundness_mode_sharp":"Force sharp edges","forced_roundness_mode_nonsharp":"Force not-so-sharp (1px roundness) edges","forced_roundness_mode_round":"Force round edges"},"font":{"group-builtin":"Browser default fonts","builtin":{"serif":"Serif","sans-serif":"Sans-serif","monospace":"Monospace","inherit":"Unchanged"},"group-local":"Locally installed fonts","local-unavailable1":"List of locally installed fonts unavailalbe","local-unavailable2":"Use manual entry to specify custom font","font_list_unavailable":"Couldn't get locally installed fonts: {error}","lookup_local_fonts":"Load list of fonts installed on this computer","enter_manually":"Enter font name family manually","entry":"Enter {fontFamily}","select":"Select font","label":"{label} font"}},"interface_font_user_override":"Override theme/browser font used","switcher":{"keep_color":"Keep colors","keep_shadows":"Keep shadows","keep_opacity":"Keep opacity","keep_roundness":"Keep roundness","keep_fonts":"Keep fonts","save_load_hint":"\\"Keep\\" options preserve currently set options when selecting or loading themes, it also stores said options when exp
93orting a theme. When all checkboxes unset, exporting theme will save everything.","reset":"Reset","clear_all":"Clear all","clear_opacity":"Clear opacity","load_theme":"Load theme","keep_as_is":"Keep as is","use_snapshot":"Old version","use_source":"New version","help":{"upgraded_from_v2":"PleromaFE has been upgraded, theme could look a little bit different than you remember.","v2_imported":"File you imported was made for older FE. We try to maximize compatibility but there still could be inconsistencies.","future_version_imported":"File you imported was made in newer version of FE.","older_version_imported":"File you imported was made in older version of FE.","snapshot_present":"Theme snapshot is loaded, so all values are overriden. You can load theme's actual data instead.","snapshot_missing":"No theme snapshot was in the file so it could look different than originally envisioned.","fe_upgraded":"PleromaFE's theme engine upgraded after version update.","fe_downgraded":"PleromaFE's version rolled back.","migration_snapshot_ok":"Just to be safe, theme snapshot loaded. You can try loading theme data.","migration_napshot_gone":"For whatever reason snapshot was missing, some stuff could look different than you remember.","snapshot_source_mismatch":"Versions conflict: most likely FE was rolled back and updated again, if you changed theme using older version of FE you most likely want to use old version, otherwise use new version."}},"common":{"color":"Color","opacity":"Opacity","contrast":{"hint":"Contrast ratio is {ratio}, it {level} {context}","level":{"aa":"meets Level AA guideline (minimal)","aaa":"meets Level AAA guideline (recommended)","bad":"doesn't meet any accessibility guidelines"},"context":{"18pt":"for large (18pt+) text","text":"for text"}}},"common_colors":{"_tab_label":"Common","main":"Common colors","foreground_hint":"See \\"Advanced\\" tab for more detailed control","rgbo":"Icons, accents, badges"},"advanced_colors":{"_tab_label":"Advanced","alert":"Alert background","alert_error":"Error","alert_warning":"Warning","alert_neutral":"Neutral","post":"Posts/User bios","badge":"Badge background","popover":"Tooltips, menus, popovers","badge_notification":"Notification","panel_header":"Panel header","top_bar":"Top bar","borders":"Borders","buttons":"Buttons","inputs":"Input fields","faint_text":"Faded text","underlay":"Underlay","wallpaper":"Wallpaper","poll":"Poll graph","icons":"Icons","highlight":"Highlighted elements","pressed":"Pressed","selectedPost":"Selected post","selectedMenu":"Selected menu item","disabled":"Disabled","toggled":"Toggled","tabs":"Tabs","chat":{"incoming":"Incoming","outgoing":"Outgoing","border":"Border"}},"radii":{"_tab_label":"Roundness"},"shadows":{"_tab_label":"Shadow and lighting","component":"Component","override":"Override","shadow_id":"Shadow #{value}","offset":"Shadow offset","zoom":"Zoom","offset-x":"x:","offset-y":"y:","light_grid":"Use light checkerboard","color_override":"Use different color","name":"Name","blur":"Blur","spread":"Spread","inset":"Inset","raw":"Plain shadow","expression":"Expression (advanced)","empty_expression":"Empty expression","hintV3":"For shadows you can also use the {0} notation to use other color slot.","filter_hint":{"always_drop_shadow":"Warning, this shadow always uses {0} when browser supports it.","drop_shadow_syntax":"{0} does not support {1} parameter and {2} keyword.","avatar_inset_short":"Separate inset shadow","avatar_inset":"Please note that combining both inset and non-inset shadows on avatars might give unexpected results with transparent avatars.","spread_zero":"Shadows with spread > 0 will appear as if it was set to zero","inset_classic":"Inset shadows will be using {0}"},"components":{"panel":"Panel","panelHeader":"Panel header","topBar":"Top bar","avatar":"User avatar (in profile view)","avatarStatus":"User avatar (in post display)","popup":"Popups and tooltips","button":"Button","buttonHover":"Button (hover)","buttonPressed":"Button (pressed)","buttonPressedHover":"Button (pressed+hover)","input":"Input field"}},"fonts":{"_tab_label":"Fonts","help":"Select font to use for elements of UI. For \\"custom\\" you have to enter exact font name as it appears in system.","components":{"interface":"Interface","input":"Input fields","post":"Post text","monospace":"Monospaced text"},"components_inline":{"interface":"interface","input":"input fields","post":"post text","monospace":"monospaced text"},"override":"Override {0} font","family":"Font name","size":"Size (in px)","weight":"Weight (boldness)","custom"
93:"Custom"},"preview":{"header":"Preview","content":"Content","error":"Example error","button":"Button","text":"A bunch of more {0} and {1}","mono":"content","input":"Just landed in L.A.","faint_link":"helpful manual","fine_print":"Read our {0} to learn nothing useful!","header_faint":"This is fine","checkbox":"I have skimmed over terms and conditions","link":"a nice lil' link"}},"version":{"title":"Version","backend_version":"Backend version","frontend_version":"Frontend version"},"commit_value":"Save","commit_value_tooltip":"Value is not saved, press this button to commit your changes","reset_value":"Reset","reset_value_tooltip":"Reset draft","hard_reset_value":"Hard reset","hard_reset_value_tooltip":"Remove setting from storage, forcing use of default value","cache":"Cache","clear_asset_cache":"Clear asset cache","clear_emoji_cache":"Clear emoji cache"}`),RE={window_title:"Administration",wip_notice:"This admin dashboard is experimental and WIP, {adminFeLink}.",old_ui_link:"old admin UI available here",reset_all:"Reset all",commit_all:"Save all",tabs:{nodb:"No DB Config",instance:"Instance",limits:"Limits",frontends:"Front-ends",mailer:"EMails",media_proxy:"Media Proxy",emoji:"Emoji",uploads:"Uploads",monitoring:"Monitoring",registrations:"Registrations",links:"Links",job_queues:"Job Queues",auth:"Auth",posts:"Posts",rate_limit:"Rate Limits",http:"HTTP",federation:"Federation",other:"Other"},posts:{global:"Global settings",local:"Local posts",remote:"Remote posts"},other:{uncategorized:"Uncategorized",user_backup:"User Backup",reports:"Reports",privileges:"Privileges"},monitoring:{builtins:"Built-in Tools",prometheus:"Prometheus Exporter"},federation:{global:"Global settings",restrictions:"Restrictions",activitypub:"ActivityPub"},http:{outbound:"Outgoing connections",incoming:"Incoming connections",security:"HTTP Security",web_push:"Web Push",web_push_description:"Web Push VAPID settings. You can use the mix task web_push.gen.keypair to generate it."},auth:{MFA:"Multi-factor Authentication",LDAP:"LDAP Settings",OAuth:"Oauth2 settings",TOTP:"One-time Passwords (TOTP)",backup_codes:"Backup codes"},job_queues:{Gun:{title:"Gun queues",connections_pools:"Gun connections pool",pools:{title:"Gun worker pools",default:"Default pool",federation:"Federation pool",media:"Media pool",rich_media:"Rich media pool",upload:"Upload pool"}},Hackney:{title:"Hackney pools",federation:"Federation",media:"Media",rich_media:"Rich media",upload:"Upload"},queues:"Queues"},rate_limit:{rate_limit:"Rate Limit",amount:"Amount",unauthenticated:"Unauthenticated",authenticated:"Authenticated",period:"Time period",separate:"Separate rate limits for authenticated/unauthenticated users"},nodb:{heading:"Database config is disabled",text:"You need to change backend config files so that {property} is set to {value}, see more in {documentation}.",documentation:"documentation",text2:"Most configuration options will be unavailable."},captcha:{native:"Native",kocaptcha:"KoCaptcha"},instance:{instance:"Instance information",pwa:{manifest:"PWA Manifest",optional:"(optional)",no_icons:"No icons defined",icon:{purpose:"Icon purpose",any:"Any",monochrome:"Monochrome",maskable:"Maskable"}},misc_brand:"Miscellaneous elements",branding:"Branding",access:"Instance access",rich_metadata:"Metadata",restrict:{header:"Restrict access for anonymous visitors",description:"Detailed setting for allowing/disallowing access to certain aspects of API. By default (indeterminate state) it will disallow if instance is not public, ticked checkbox means disallow access even if instance is public, unticked means allow access even if instance is private. Please note that unexpected behavior might happen if some settings are set, i.e. if profile access is disabled posts will show without profile information.",timelines:"Timelines access",profiles:"User profiles access",activities:"Statuses/activities access"},":unauthenticated":"Unauthenticated",":all":"Everyone"},registrations:{welcome:{title:"Welcome message",description:"Send new users a message when they sign up",direct_message:"Via direct message",chat_message:"Via chat",email_message:"Via email"},restrictions:"Restrictions",autofollow:"Autofollow"},links:{no_scheme:"No scheme",link_previews:"Link previews",link_formatter:"Link formatter"},uploads:{attachments:"Attachments settings",upload:"Upload",local_uploader:"Local files",filenames:"Filenames, Titles and Descriptions",uploader_settings:"Uploader settings"}
93,media_proxy:{basic:"Basic Settings",invalidation:"Cache Invalidation",limits:"Limits",thumbnails:"Thumbnail Generation",invalidation_settings:"Cache Invalidation"},mailer:{styling:"Styling",assets:"Assets",colors:"Color palette",adapter:"Mailing Adapter",auth:"Authentication"},limits:{arbitrary_limits:"Arbitrary limits",posts:"Post limits",other:"Misc. limits",uploads:"Attachments limits",users:"User profile limits",profile_fields:"Profile fields limits",user_uploads:"Profile media limits"},frontend:{title:"Frontend management",repository:"Repository link",versions:"Available versions",build_url:"Build URL",reinstall:"Reinstall",is_default:"(Default)",is_default_custom:"(Default, version: {version})",install:"Install",install_version:"Install version {version}",more_install_options:"More install options",more_default_options:"More default setting options",set_default:"Set default",set_default_version:"Set version {version} as default",wip_notice:"Please note that this section is a WIP and lacks certain features as backend implementation of front-end management is incomplete.",default_frontend:"Default frontend",default_frontend_tip:"Default frontend will be shown to all users. Currently there's no way to for a user to select personal frontend. If you switch away from PleromaFE you'll most likely have to use old and buggy AdminFE to do instance configuration until we replace it.",default_frontend_unavail:"Default frontend settings are not available, as this requires configuration in the database",available_frontends:"Available for install",failure_installing_frontend:"Failed to install frontend {version}: {reason}",success_installing_frontend:"Frontend {version} successfully installed"},emoji:{global_actions:"Global actions",reload:"Reload emoji",reload_short:"Refresh",advanced:"Advanced",importFS:"Import emoji from filesystem",import_pack:"Upload emoji pack",import_pack_short:"Import",error:"Error: {0}",create_pack:"Create pack",delete_pack:"Delete pack",new_pack_name:"New pack name",create:"Create",emoji_packs:"Emoji packs",remote_packs:"Remote packs",remote_packs_short:"Remote",do_list:"List",remote_pack_instance:"Remote pack instance",emoji_pack:"Emoji pack",edit_pack:"Edit pack",metadata:"Metadata",description:"Description",homepage:"Homepage",fallback_src:"Fallback source",fallback_sha256:"Fallback SHA256",share:"Share",save:"Save",save_meta:"Save metadata",revert_meta:"Revert metadata",delete:"Delete",revert:"Revert",add_file:"Add file",adding_new:"Adding new emoji",shortcode:"Shortcode",filename:"Filename",emoji_source:"Emoji file source",upload_url:"Upload from URL",new_shortcode:"Shortcode, leave blank to infer",new_filename:"Filename, leave blank to infer",delete_confirm:"Are you sure you want to delete {0}?",download_pack:"Download pack",downloading_pack:"Downloading {0}",download:"Download",download_as_name:"New name",download_as_name_full:"New name, leave blank to reuse",files:"Files",editing:"Editing {0}",copying:"Copying {0}",copy_to:"Copy to",copy_to_pack:"Copy to local pack",delete_title:"Delete?",metadata_changed:"Metadata different from saved",emoji_changed:"Unsaved emoji file changes, check highlighted emoji",replace_warning:"This will REPLACE the local pack of the same name",copied_successfully:'Successfully copied emoji "{0}" to pack "{1}"'},generic_enforcement:{if_available:"If available",always:"Always",never:"Never"},temp_overrides:{":pleroma":{":connections_pool":{":max_idle_time":{label:"Maximum idle time",description:"Maximum idle time before CONFIRM"},":retry":{label:"Retry",description:"Number of retries for making a connection CONFIRM"}},":pools":{":rich_media":{label:"Rich media",description:"idk"}},":rate_limit":{":oauth_app_creation":{label:"OAuth app creation",description:"For registering new OAuth App ID"},":ap_routes":{label:"ActivityPub",description:"Federation endpoints"},":account_confirmation_resend":{label:"Account confirmation resend",description:"How often user can resend confirmation mail"}},Pleroma_DOT_Formatter:{":attribute_toggle":{label:"Set {attr} attribute"},":truncate_toggle":{label:"Truncate"},":class":{label:"Value"},":rel":{label:"Value"}},Pleroma_DOT_Uploaders_DOT_Uploader:{":timeout":{label:"Timeout",description:"Amount of milliseconds before dropping connection"}},Pleroma_DOT_Upload:{":default_description":{label:"Default description",description:"Default description to give to a file. Setting it to ':filename' will use file's filename as description."}}
93,":instance":{":public":{label:"Instance is public",description:"Disabling this will make all API accessible only for logged-in users, this will make Public and Federated timelines inaccessible to anonymous visitors."},":limit_to_local_content":{label:"Limit search to local content",description:"Disables global network search for unauthenticated (default), all users or none"},":description_limit":{label:"Limit",description:"Character limit for attachment descriptions"},":background_image":{label:"Background image",description:"Background image (primarily used by PleromaFE)"}},":http_security":{":allow_unsafe_eval":{label:"Allow unsafe-eval",description:"Allow unsafe evaluation of scripts (required for Flash support)"},":report_url":{label:"Report URL",description:"URL to report security violations to"}}}}},ME={unit:{days:"{0} day | {0} days",days_short:"{0}d",days_suffix:"day(s)",hours:"{0} hour | {0} hours",hours_short:"{0}h",hours_suffix:"hour(s)",minutes:"{0} minute | {0} minutes",minutes_short:"{0}min",minutes_suffix:"minute(s)",months:"{0} month | {0} months",months_short:"{0}mo",months_suffix:"month(s)",seconds:"{0} second | {0} seconds",seconds_short:"{0}s",seconds_suffix:"second(s)",weeks:"{0} week | {0} weeks",weeks_short:"{0}w",weeks_suffix:"week(s)",years:"year(s)",years_short:"{0}y"},in_future:"in {0}",in_past:"{0} ago",now:"just now",now_short:"now"},NE={collapse:"Collapse",conversation:"Conversation",error:"Error fetching timeline: {0}",load_older:"Load older statuses",no_retweet_hint:"Post is marked as followers-only or direct and cannot be repeated",repeated:"repeated",show_new:"Show new",reload:"Reload",up_to_date:"Up-to-date",no_more_statuses:"No more statuses",no_statuses:"No statuses",socket_reconnected:"Realtime connection established",socket_broke:"Realtime connection lost: CloseEvent code {0}",quick_view_settings:"Quick view settings",quick_filter_settings:"Quick filter settings",filter_settings:"Filter"},FE={favorites:"Favorites",repeats:"Repeats",quotes:"Quotes",repeat_confirm:"Do you really want to repeat this status?",repeat_confirm_title:"Repeat confirmation",repeat_confirm_accept_button:"Repeat",repeat_confirm_cancel_button:"Do not repeat",delete:"Delete status",delete_error:"Error deleting status: {0}",edit:"Edit status",edited_at:"(last edited {time})",pin:"Pin on profile",unpin:"Unpin from profile",pinned:"Pinned",bookmark:"Bookmark",unbookmark:"Unbookmark",delete_confirm:"Do you really want to delete this status?",delete_confirm_title:"Delete confirmation",delete_confirm_accept_button:"Delete",delete_confirm_cancel_button:"Keep",reply_to:"Reply to",reply_to_with_icon:"{icon} {replyTo}",reply_to_with_arg:"{replyToWithIcon} {user}",mentions:"Mentions",replies_list:"Replies:",replies_list_with_others:"Replies (+{numReplies} other): | Replies (+{numReplies} others):",mute_ellipsis:"Mute…",mute_user:"Mute user",unmute_user:"Unmute user",mute_domain:"Mute domain",unmute_domain:"Unmute domain",mute_conversation:"Mute conversation",unmute_conversation:"Unmute conversation",status_unavailable:"Status unavailable",copy_link:"Copy link to status",external_source:"External source",muted_words:"Wordfiltered: {word} | Wordfiltered: {word} and {numWordsMore} more words",muted_filters:"Filtered: {name} | Wordfiltered: {name} and {filtersMore} more words",multi_reason_mute:"{main} + one more reason | {main} + {numReasonsMore} more reasons",muted_user:"User muted",thread_muted:"Thread muted",thread_muted_and_words:", has words:",sensitive_muted:"Muting sensitive content",bot_muted:"Muting bot content",show_full_subject:"Show full subject",hide_full_subject:"Hide full subject",show_content:"Show content",hide_content:"Hide content",status_deleted:"This post was deleted",unknown_user:"unknown user",unknown_user_info:"Unable to fetch information about this user",nsfw:"NSFW",expand:"Expand",you:"(You)",plus_more:"+{number} more",many_attachments:"Post has {number} attachment(s)",collapse_attachments:"Collapse attachments",show_all_attachments:"Show all attachments",show_attachment_in_modal:"Show in media modal",show_attachment_description:"Preview description (open attachment for full description)",hide_attachment:"Hide attachment",remove_attachment:"Remove attachment",attachment_stop_flash:"Stop Flash player",move_up:"Shift attachment left",move_down:"Shift attachment right",open_gallery:"Open gallery",thread_hide:"Hide this thread",thread_show:"Show this thread",thread_show_full:"Show everything under this thread ({numStatus} status in total, max depth {depth}) | Show everything under this thread ({numStatus} statuses in total, max depth {depth})",thread_show_full_with_icon:"{icon} {text}",thread_follow:"See the remaining part of this thread ({numStatus} status in total) | See the remaining part of this thread ({numStatus} statuses in total)",thread_follow_with_icon:"{icon} {text}",ancestor_follow:"See {numReplies} other reply under this status | See {numReplies} other replies under this status",ancestor_follow_with_icon:"{icon} {text}",show_all_conversation_with_icon:"{icon} {text}",show_all_conversation:"Show full conversation ({numStatus} other status) | Show full conversation ({numStatus} other statuses)",show_only_conversation_under_this:"Only show replies to this status",status_history:"Status history",reaction_count_label:"{num} person reacted | {num} people reacted",hide_quote:"Hide the quoted status",display_quote:"Display the quoted status",invisible_quote:"Quoted status unavailable: {link}",more_actions:"More actions on this status",loading:"Loading...",load_error:"Unable to load status: {error}"}
93,DE={approve:"Approve",approve_confirm_title:"Approve confirmation",approve_confirm_accept_button:"Approve",approve_confirm_cancel_button:"Do not approve",approve_confirm:"Do you want to approve {user}'s follow request?",block:"Block",blocked:"Blocked!",block_confirm_title:"Block confirmation",block_confirm:"Do you really want to block {user}?",block_confirm_accept_button:"Block",block_confirm_cancel_button:"Do not block",deactivated:"Deactivated",deny:"Deny",deny_confirm_title:"Deny confirmation",deny_confirm_accept_button:"Deny",deny_confirm_cancel_button:"Do not deny",deny_confirm:"Do you want to deny {user}'s follow request?",edit_profile:"Edit profile",favorites:"Favorites",follow:"Follow",follow_cancel:"Cancel request",follow_sent:"Request sent!",follow_progress:"Requesting…",follow_unfollow:"Unfollow",unfollow_confirm_title:"Unfollow confirmation",unfollow_confirm:"Do you really want to unfollow {user}?",unfollow_confirm_accept_button:"Unfollow",unfollow_confirm_cancel_button:"Do not unfollow",followees:"Following",followers:"Followers",following:"Following!",follows_you:"Follows you!",hidden:"Hidden",its_you:"It's you!",media:"Media",mention:"Mention",message:"Message",mute:"Mute",muted:"Muted",mute_confirm_title:"Mute confirmation",mute_confirm:"Do you really want to mute {user}?",mute_confirm_accept_button:"Mute",mute_confirm_cancel_button:"Do not mute",mute_or:"or",expire_in:"Expire in",expire_mute_message:"Are you sure you want to mute {0}?",expire_block_message:"Are you sure you want to block {0}?",dont_ask_again_mute:"Always mute users this way",dont_ask_again_block:"Always block users this way",mute_block_temporarily:"Temporarily",mute_block_forever:"Forever",mute_block_never:"Never",mute_block_ask:"Ask",default_mute_expiration:"Always mute users",default_block_expiration:"Always block users",default_expiration_time:"Expire in",mute_expires_forever:"Muted forever",mute_expires_at:"Muted until {0}",block_expires_forever:"Blocked forever",block_expires_at:"Blocked until {0}",mute_duration_prompt:"Mute this user for (0 for indefinite time):",statuses_per_day:"Statuses per day",remote_follow:"Remote follow",remove_follower:"Remove follower",remove_follower_confirm_title:"Remove follower confirmation",remove_follower_confirm_accept_button:"Remove",remove_follower_confirm_cancel_button:"Keep",remove_follower_confirm:"Do you really want to remove {user} from your followers?",report:"Report",statuses:"Statuses",subscribe:"Subscribe",unsubscribe:"Unsubscribe",unblock:"Unblock",unblock_progress:"Unblocking…",block_progress:"Blocking…",unmute:"Unmute",unmute_progress:"Unmuting…",mute_progress:"Muting…",hide_repeats:"Hide repeats",show_repeats:"Show repeats",bot:"Bot",group:"Group",birthday:"Born {birthday}",admin_menu:{moderation:"Moderation",grant_admin:"Grant Admin",revoke_admin:"Revoke Admin",grant_moderator:"Grant Moderator",revoke_moderator:"Revoke Moderator",activate_account:"Activate account",deactivate_account:"Deactivate account",delete_account:"Delete account",force_nsfw:"Mark all posts as NSFW",strip_media:"Remove media from posts",force_unlisted:"Force posts to be unlisted",sandbox:"Force posts to be followers-only",disable_remote_subscription:"Disallow following user from remote instances",disable_any_subscription:"Disallow following user at all",quarantine:"Disallow user posts from federating",delete_user:"Delete user",delete_user_data_and_deactivate_confirmation:"This will permanently delete the data from this account and deactivate it. Are you absolutely sure?"},highlight_new:{disabled:"Don't highlight",solid:"Solid background",striped:"Striped background",side:"Side stripe"},personal_note:"Personal note",note_blank_click:"Click to add note",highlight_header:"Highlight user's posts and mentions"},UE={timeline_title:"User timeline",profile_does_not_exist:"Sorry, this profile does not exist.",profile_loading_error:"Sorry, there was an error loading this profile."},jE={title:"Reporting {0}",add_comment_description:"The report will be sent to your instance moderators. You can provide an explanation of why you are reporting this account below:",additional_comments:"Additional comments",forward_description:"The account is from another server. Send a copy of the report there as well?",forward_to:"Forward to {0}",submit:"Submit",generic_error:"An error occurred while processing your request."},BE={more:"More",who_to_follow:"Who to follow"},zE={media_upload:"Upload media",mentions:"Mentions",repeat:"Repeat",unrepeat:"Unrepeat",reply:"Reply",add_reaction:"Add Reaction",favorite:"Favorite",unfavorite:"Unfavorite",user_settings:"User Settings",accept_follow_request:"Accept follow request",reject_follow_request:"Reject follow request",bookmark:"Bookmark",toggle_expand:"Expand or collapse notification to show post in full",toggle_mute:"Expand or collapse notification to reveal muted content",autocomplete_available:"{number} result is available. Use up and down keys to navigate through them. | {number} results are available. Use up and down keys to navigate through them."}
93,qE={error:{base:"Upload failed.",message:"Upload failed: {0}",file_too_big:"File too big [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Try again later"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}},HE={people:"People",hashtags:"Hashtags",person_talking:"{count} person talking",people_talking:"{count} people talking",no_results:"No results",no_more_results:"No more results",load_more:"Load more results"},VE={forgot_password:"Forgot password?",password_reset:"Password reset",instruction:"Enter your email address or username. We will send you a link to reset your password.",placeholder:"Your email or username",check_email:"Check your email for a link to reset your password.",return_home:"Return to the home page",too_many_requests:"You have reached the limit of attempts, try again later.",password_reset_disabled:"Password reset is disabled. Please contact your instance administrator.",password_reset_required:"You must reset your password to log in.",password_reset_required_but_mailer_is_disabled:"You must reset your password, but password reset is disabled. Please contact your instance administrator."},WE={you:"You:",message_user:"Message {nickname}",delete:"Delete",chats:"Chats",new:"New Chat",empty_message_error:"Cannot post empty message",more:"More",delete_confirm:"Do you really want to delete this message?",error_loading_chat:"Something went wrong when loading the chat.",error_sending_message:"Something went wrong when sending the message.",empty_chat_list_placeholder:"You don't have any chats yet. Start a new chat!"},GE={manage_bookmark_folders:"Manage bookmark folders"},KE={lists:"Lists",new:"New List",title:"List title",search:"Search users",create:"Create",save:"Save changes",delete:"Delete list",following_only:"Limit to Following",manage_lists:"Manage lists",manage_members:"Manage list members",add_members:"Search for more users",remove_from_list:"Remove from list",add_to_list:"Add to list",is_in_list:"Already in list",editing_list:"Editing list {listTitle}",creating_list:"Creating new list",update_title:"Save Title",really_delete:"Really delete list?",error:"Error manipulating lists: {0}"},xE={audio:"Audio",video:"Video",image:"Image",file:"File"},YE={today:"Today"},XE={big_update_title:"Please bear with us",big_update_content:"We haven't had a release in a while, so things might look and feel different than what you're used to.",update_bugs:"Please report any issues and bugs on {pleromaGitlab}, as we have changed a lot, and although we test thoroughly and use development versions ourselves, we may have missed some things. We welcome your feedback and suggestions on issues you might encounter, or how to improve Pleroma and Pleroma-FE.",update_bugs_gitlab:"Pleroma GitLab",update_changelog:"For more details on what's changed, see {theFullChangelog}.",update_changelog_here:"the full changelog",art_by:"Art by {linkToArtist}"},JE={tooltip:"This domain contains non-ascii characters."},ZE={drafts:"Drafts",no_drafts:"You have no drafts",empty:"(No content)",poll_tooltip:"Draft contains a poll",continue:"Continue composing",save:"Save without posting",abandon:"Abandon draft",abandon_confirm_title:"Abandon confirmation",abandon_confirm:"Do you really want to abandon this draft?",abandon_confirm_accept_button:"Abandon",abandon_confirm_cancel_button:"Keep",replying:"Replying to {statusLink}",editing:"Editing {statusLink}",unavailable:"(unavailable)"},QE={loading:"Loading...",theme:"Applying theme, please wait warmly...",fun_1:"Drink more water",fun_2:"Take it easy!",fun_3:"Suya...",fun_4:"My Pleroma machine is full power!",error:"Something went wrong"},eI={select_folder:"Select bookmark folder",creating_folder:"Creating bookmark folder",editing_folder:"Editing folder {folderName}",emoji:"Emoji",name:"Folder name",new:"New Folder",create:"Create folder",delete:"Delete folder",update_folder:"Save changes",really_delete:"Do you really want to delete the folder?",error:"Error manipulating bookmark folders: {0}"},tI={about:cE,announcements:uE,shoutbox:dE,domain_mute_card:fE,exporter:hE,features_panel:pE,finder:mE,general:gE,image_cropper:vE,importer:bE,login:yE,media_modal:_E,nav:wE,notifications:SE,polls:kE,emoji:$E,errors:CE,interactions:TE,post_status:AE,registration:EE,remote_user_resolver:IE,report:PE,selectable_list:LE,settings:OE,admin_dash:RE,time:ME,timeline:NE,status:FE,user_card:DE,user_profile:UE,user_reporting:jE,who_to_follow:BE,tool_tip:zE,upload:qE,search:HE,password_reset:VE,chats:WE,bookmarks:GE,lists:KE,file_type:xE,display_date:YE,update:XE,unicode_domain_indicator:JE,drafts:ZE,splash:QE,bookmark_folders:eI},px=Object.freeze(Object.defineProperty({__proto__:null,about:cE,admin_dash:RE,announcements:uE,bookmark_folders:eI,bookmarks:GE,chats:WE,default:tI,display_date:YE,domain_mute_card:fE,drafts:ZE,emoji:$E,errors:CE,exporter:hE,features_panel:pE,file_type:xE,finder:mE,general:gE,image_cropper:vE,importer:bE,interactions:TE,lists:KE,login:yE,media_modal:_E,nav:wE,notifications:SE,password_reset:VE,polls:kE,post_status:AE,registration:EE,remote_user_resolver:IE,report:PE,search:HE,selectable_list:LE,settings:OE,shoutbox:dE,splash:QE,status:FE,time:ME,timeline:NE,tool_tip:zE,unicode_domain_indicator:JE,update:XE,upload:qE,user_card:DE,user_profile:UE,user_reporting:jE,who_to_follow:BE},Symbol.toStringTag,{value:"Module"})),wk="en",mx=e=>lE.includes(e),gx=Object.assign({
93"./ar.json":()=>Ve(()=>import("./i18n/ar.Cr-3kZBh.js"),[]),
93"./ca.json":()=>Ve(()=>import("./i18n/ca.Bv4d2Muy.js"),[]),
93"./cs.json":()=>Ve(()=>import("./i18n/cs.EyNXpVXW.js"),[]),
93"./de.json":()=>Ve(()=>import("./i18n/de.CvXWIhiF.js"),[]),
93"./en.json":()=>Ve(()=>Promise.resolve().then(()=>px),void 0),
93"./eo.json":()=>Ve(()=>import("./i18n/eo.C9h09SOv.js"),[]),
93"./es.json":()=>Ve(()=>import("./i18n/es.BFMlvXsf.js"),[]),
93"./et.json":()=>Ve(()=>import("./i18n/et.fhuMKZXQ.js"),[]),
93"./eu.json":()=>Ve(()=>import("./i18n/eu.C1UxLEb6.js"),[]),
93"./fa.json":()=>Ve(()=>import("./i18n/fa.BxVyTR8q.js"),[]),
93"./fi.json":()=>Ve(()=>import("./i18n/fi.Brm9lhAA.js"),[]),
93"./fr.json":()=>Ve(()=>import("./i18n/fr.DzBG0KvL.js"),[]),
93"./ga.json":()=>Ve(()=>import("./i18n/ga.CPJnGxWv.js"),[]),
93"./he.json":()=>Ve(()=>import("./i18n/he.BllNuLoC.js"),[]),
93"./hu.json":()=>Ve(()=>import("./i18n/hu.CljyAvQa.js"),[]),
93"./id.json":()=>Ve(()=>import("./i18n/id.DLjgbCu5.js"),[]),
93"./it.json":()=>Ve(()=>import("./i18n/it.ERg696CD.js"),[]),
93"./ja_easy.json":()=>Ve(()=>import("./i18n/ja_easy.PsomvmuF.js"),[]),
93"./ja_pedantic.json":()=>Ve(()=>import("./i18n/ja_pedantic.VWLd9bHt.js"),[]),
93"./ko.json":()=>Ve(()=>import("./i18n/ko.b1sv0xRp.js"),[]),
93"./nan-TW.json":()=>Ve(()=>import("./i18n/nan-TW.Ci98X1S7.js"),[]),
93"./nb.json":()=>Ve(()=>import("./i18n/nb.DCCmz1gh.js"),[]),
93"./nl.json":()=>Ve(()=>import("./i18n/nl.D6wYIlyz.js"),[]),
93"./oc.json":()=>Ve(()=>import("./i18n/oc.C4DhJxhs.js"),[]),
93"./pdc.json":()=>Ve(()=>import("./i18n/pdc.FmFgRqLi.js"),[]),
93"./pl.json":()=>Ve(()=>import("./i18n/pl.CPLK-gPs.js"),[]),
93"./pt.json":()=>Ve(()=>import("./i18n/pt.BzQabObA.js"),[]),
93"./ro.json":()=>Ve(()=>import("./i18n/ro.BA9koejw.js"),[]),
93"./ru.json":()=>Ve(()=>import("./i18n/ru.CYi-PMDA.js"),[]),
93"./sk.json":()=>Ve(()=>import("./i18n/sk.fGdLyyK_.js"),[]),
93"./te.json":()=>Ve(()=>import("./i18n/te.CikZ4jPW.js"),[]),
93"./uk.json":()=>Ve(()=>import("./i18n/uk.CkmtgYNq.js"),[]),
93"./vi.json":()=>Ve(()=>import("./i18n/vi.BsGK9mjD.js"),[]),
93"./zh.json":()=>Ve(()=>import("./i18n/zh.BZkJuR5j.js"),[]),
93"./zh_Hant.json":()=>Ve(()=>import("./i18n/zh_Hant.dSMADUQ9.js"),[])
93}),vx=e=>{const t=hx(e);return gx[`./${t}.json`]()},wp={languages:lE,default:{en:tI},setLanguage:async(e,t)=>{const n=(Array.isArray(t)?t:[t]).filter(o=>o);n.includes(wk)||n.push(wk);const[s,...r]=n;if(!(s===e.locale&&Z.isEqual(r,e.fallbackLocale))){for(const o of n)if(mx(o)){const i=await vx(o);e.setLocaleMessage(o,i.default)}e.fallbackLocale=r,e.locale=s}}};var Gg,Sk;function bx(){return Sk||(Sk=1,Gg={aa:{name:"Afar",nativeName:"Afaraf"},ab:{name:"Abkhaz",nativeName:"аҧсуа бызшәа"},ae:{name:"Avestan",nativeName:"avesta"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},am:{name:"Amharic",nativeName:"አማርኛ"},an:{name:"Aragonese",nativeName:"aragonés"},ar:{name:"Arabic",nativeName:"العربية"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},be:{name:"Belarusian",nativeName:"беларуская мова"},bg:{name:"Bulgarian",nativeName:"български език"},bi:{name:"Bislama",nativeName:"Bislama"},bm:{name:"Bambara",nativeName:"bamanankan"},bn:{name:"Bengali",nativeName:"বাংলা"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},br:{name:"Breton",nativeName:"brezhoneg"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},ca:{name:"Catalan",nativeName:"Català"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ch:{name:"Chamorro",nativeName:"Chamoru"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},cs:{name:"Czech",nativeName:"Č
vendor: 5,413 bytes, line 93
93eština"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},cy:{name:"Welsh",nativeName:"Cymraeg"},da:{name:"Danish",nativeName:"Dansk"},de:{name:"German",nativeName:"Deutsch"},dv:{name:"Divehi",nativeName:"ދިވެހި"},dz:{name:"Dzongkha",nativeName:"རྫོང་ཁ"},ee:{name:"Ewe",nativeName:"Eʋegbe"},el:{name:"Greek",nativeName:"Ελληνικά"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},es:{name:"Spanish",nativeName:"Español"},et:{name:"Estonian",nativeName:"eesti"},eu:{name:"Basque",nativeName:"euskara"},fa:{name:"Persian",nativeName:"فارسی"},ff:{name:"Fula",nativeName:"Fulfulde"},fi:{name:"Finnish",nativeName:"suomi"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fo:{name:"Faroese",nativeName:"Føroyskt"},fr:{name:"French",nativeName:"Français"},fy:{name:"Western Frisian",nativeName:"Frysk"},ga:{name:"Irish",nativeName:"Gaeilge"},gd:{name:"Scottish Gaelic",nativeName:"Gàidhlig"},gl:{name:"Galician",nativeName:"galego"},gn:{name:"Guaraní",nativeName:"Avañe'ẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},gv:{name:"Manx",nativeName:"Gaelg"},ha:{name:"Hausa",nativeName:"هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hr:{name:"Croatian",nativeName:"Hrvatski"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},hu:{name:"Hungarian",nativeName:"magyar"},hy:{name:"Armenian",nativeName:"Հայերեն"},hz:{name:"Herero",nativeName:"Otjiherero"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Interlingue"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語"},jv:{name:"Javanese",nativeName:"basa Jawa"},ka:{name:"Georgian",nativeName:"ქართული"},kg:{name:"Kongo",nativeName:"Kikongo"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},kk:{name:"Kazakh",nativeName:"қазақ тілі"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},km:{name:"Khmer",nativeName:"ខេមរភាសា"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},ko:{name:"Korean",nativeName:"한국어"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},ku:{name:"Kurdish",nativeName:"Kurdî"},kv:{name:"Komi",nativeName:"коми кыв"},kw:{name:"Cornish",nativeName:"Kernewek"},ky:{name:"Kyrgyz",nativeName:"Кыргызча"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Ganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:"Kiluba"},lv:{name:"Latvian",nativeName:"latviešu valoda"},mg:{name:"Malagasy",nativeName:"fiteny malagasy"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mi:{name:"Māori",nativeName:"te reo Māori"},mk:{name:"Macedonian",nativeName:"македонски јазик"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mn:{name:"Mongolian",nativeName:"Монгол хэл"},mr:{name:"Marathi",nativeName:"मराठी"},ms:{name:"Malay",nativeName:"Bahasa Melayu"},mt:{name:"Maltese",nativeName:"Malti"},my:{name:"Burmese",nativeName:"ဗမာစာ"},na:{name:"Nauru",nativeName:"Dorerin Naoero"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"Northern Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nl:{name:"Dutch",nativeName:"Nederlands"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},nr:{name:"Southern Ndebele",nativeName:"isiNdebele"},nv:{name:"Navajo",nativeName:"Diné bizaad"},ny:{name:"Chichewa",nativeName:"chiCheŵa"},oc:{name:"Occitan",nativeName:"occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},pl:{name:"Polish",nativeName:"Polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"Ikirundi"},ro:{name:"Romanian",nativeName:"Română"},ru:{name:"Russian",nativeName:"Русский"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"
93Slovenčina"},sl:{name:"Slovenian",nativeName:"slovenščina"},sm:{name:"Samoan",nativeName:"gagana fa'a Samoa"},sn:{name:"Shona",nativeName:"chiShona"},so:{name:"Somali",nativeName:"Soomaaliga"},sq:{name:"Albanian",nativeName:"Shqip"},sr:{name:"Serbian",nativeName:"српски језик"},ss:{name:"Swati",nativeName:"SiSwati"},st:{name:"Southern Sotho",nativeName:"Sesotho"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sv:{name:"Swedish",nativeName:"Svenska"},sw:{name:"Swahili",nativeName:"Kiswahili"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},tk:{name:"Turkmen",nativeName:"Türkmençe"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татар теле"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"ئۇيغۇرچە‎"},uk:{name:"Ukrainian",nativeName:"Українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"Ўзбек"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"walon"},wo:{name:"Wolof",nativeName:"Wollof"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"},zh:{name:"Chinese",nativeName:"中文"},zu:{name:"Zulu",nativeName:"isiZulu"}}),Gg}var Kg,kk;function yx(){if(kk)return Kg;kk=1;const e=bx(),t={},n={},s=[],r=[],o=[];for(const i in e){const{name:a,nativeName:c}=e[i];t[i]=n[a.toLowerCase()]=n[c.toLowerCase()]={code:i,name:a,nativeName:c},s.push(i),r.push(a),o.push(c)}return Kg=class Xf{static getLanguages(a=[]){return a.map(c=>Xf.validate(c)?Object.assign({},t[c]):{code:c,name:"",nativeName:""})}static getName(a){return Xf.validate(a)?e[a].name:""}static getAllNames(){return r.slice()}static getNativeName(a){return Xf.validate(a)?e[a].nativeName:""}static getAllNativeNames(){return o.slice()}static getCode(a){return a=a.toLowerCase(),n.hasOwnProperty(a)?n[a].code:""}static getAllCodes(){return s.slice()}static validate(a){return e.hasOwnProperty(a)}},Kg}var _x=yx();const wx=bs(_x),Sx={pdc:"en",ja_easy:"ja",zh_Hant:"zh-HANT",zh:"zh-Hans"},F_=e=>Sx[e]||e,nI=e=>F_(e).replace("_","-"),kx=e=>(Array.isArray(e)?e:[e]).map(nI).join(","),sI=e=>{const n={pdc:"Pennsilfaanisch-Deitsch",ja_easy:"やさしいにほんご","nan-TW":"臺語(閩南語)",zh:"简体中文",zh_Hant:"繁體中文"}[e]||wx.getNativeName(e),s=F_(e);return n.charAt(0).toLocaleUpperCase(s)+n.slice(1)},$x=Fi.map(wp.languages,e=>({code:e,name:sI(e)})).sort((e,t)=>e.name.localeCompare(t.name)),Tr={internalToBrowserLocale:F_,internalToBackendLocale:nI,internalToBackendLocaleMulti:kx,languages:$x,getLanguageName:sI},rI={undelay:null,topBar:null,badge:null,profileTint:null,fg:null,bg:"underlay",highlight:"bg",panel:"bg",popover:"bg",selectedMenu:"popover",btn:"bg",btnPanel:"panel",btnTopBar:"topBar",input:"bg",inputPanel:"panel",inputTopBar:"topBar",alert:"bg",alertPanel:"panel",poll:"bg",chatBg:"underlay",chatMessage:"chatBg"},Cx={profileTint:.5,alert:.5,input:.5,faint:.5,underlay:.15,alertPopup:.95},Ui={bg:{depends:[],opacity:"bg",priority:1},wallpaper:{depends:["bg"],color:(e,t)=>Ls(-2*e,t).rgb},fg:{depends:[],priority:1},text:{depends:[],layer:"bg",opacity:null,priority:1},underlay:{default:"#000000",opacity:"underlay"},link:{depends:["accent"],priority:1},accent:{depends:["link"],priority:1},faint:{depends:["text"],opacity:"faint"},faintLink:{depends:["link"],opacity:"faint"},postFaintLink:{depends:["postLink"],opacity:"faint"},cBlue:"#0000ff",cRed:"#FF0000",cGreen:"#00FF00",cOrange:"#E3FF00",profileBg:{depends:["bg"],color:(e,t)=>({r:Math.floor(t.r*.53),g:Math.floor(t.g*.56),b:Math.floor(t.b*.59)})},profileTint:{depends:["bg"],layer:"profileTint",opacity:"profileTint"},highlight:{depends:["bg"],color:(e,t)=>
93Ls(5*e,t).rgb},highlightLightText:{depends:["lightText"],layer:"highlight",textColor:!0},highlightPostLink:{depends:["postLink"],layer:"highlight",textColor:"preserve"},highlightFaintText:{depends:["faint"],layer:"highlight",textColor:!0},highlightFaintLink:{depends:["faintLink"],layer:"highlight",textColor:"preserve"},highlightPostFaintLink:{depends:["postFaintLink"],layer:"highlight",textColor:"preserve"},highlightText:{depends:["text"],layer:"highlight",textColor:!0},highlightLink:{depends:["link"],layer:"highlight",textColor:"preserve"},highlightIcon:{depends:["highlight","highlightText"],color:(e,t,n)=>ya(t,n)},popover:{depends:["bg"],opacity:"popover"},popoverLightText:{depends:["lightText"],layer:"popover",textColor:!0},popoverPostLink:{depends:["postLink"],layer:"popover",textColor:"preserve"},popoverFaintText:{depends:["faint"],layer:"popover",textColor:!0},popoverFaintLink:{depends:["faintLink"],layer:"popover",textColor:"preserve"},popoverPostFaintLink:{depends:["postFaintLink"],layer:"popover",textColor:"preserve"},popoverText:{depends:["text"],layer:"popover",textColor:!0},popoverLink:{depends:["link"],layer:"popover",textColor:"preserve"},popoverIcon:{depends:["popover","popoverText"],color:(e,t,n)=>ya(t,n)},selectedPost:"--highlight",selectedPostFaintText:{depends:["highlightFaintText"],layer:"highlight",variant:"selectedPost",textColor:!0},selectedPostLightText:{depends:["highlightLightText"],layer:"highlight",variant:"selectedPost",textColor:!0},selectedPostPostLink:{depends:["highlightPostLink"],layer:"highlight",variant:"selectedPost",textColor:"preserve"},selectedPostFaintLink:{depends:["highlightFaintLink"],layer:"highlight",variant:"selectedPost",textColor:"preserve"},selectedPostText:{depends:["highlightText"],layer:"highlight",variant:"selectedPost",textColor:!0},selectedPostLink:{depends:["highlightLink"],layer:"highlight",variant:"selectedPost",textColor:"preserve"},selectedPostIcon:{depends:["selectedPost","selectedPostText"],color:(e,t,n)=>ya(t,n)},selectedMenu:{depends:["bg"],color:(e,t)=>Ls(5*e,t).rgb},selectedMenuLightText:{depends:["highlightLightText"],layer:"selectedMenu",variant:"selectedMenu",textColor:!0},selectedMenuFaintText:{depends:["highlightFaintText"],layer:"selectedMenu",variant:"selectedMenu",textColor:!0},selectedMenuFaintLink:{depends:["highlightFaintLink"],layer:"selectedMenu",variant:"selectedMenu",textColor:"preserve"},selectedMenuText:{depends:["highlightText"],layer:"selectedMenu",variant:"selectedMenu",textColor:!0},selectedMenuLink:{depends:["highlightLink"],layer:"selectedMenu",variant:"selectedMenu",textColor:"preserve"},selectedMenuIcon:{depends:["selectedMenu","selectedMenuText"],color:(e,t,n)=>ya(t,n)},selectedMenuPopover:{depends:["popover"],color:(e,t)=>Ls(5*e,t).rgb},selectedMenuPopoverLightText:{depends:["selectedMenuLightText"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:!0},selectedMenuPopoverFaintText:{depends:["selectedMenuFaintText"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:!0},selectedMenuPopoverFaintLink:{depends:["selectedMenuFaintLink"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:"preserve"},selectedMenuPopoverText:{depends:["selectedMenuText"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:!0},selectedMenuPopoverLink:{depends:["selectedMenuLink"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:"preserve"},selectedMenuPopoverIcon:{depends:["selectedMenuPopover","selectedMenuText"],color:(e,t,n)=>ya(t,n)},lightText:{depends:["text"],layer:"bg",textColor:"preserve",color:(e,t)=>Ls(20*e,t).rgb},postLink:{depends:["link"],layer:"bg",textColor:"preserve"},postGreentext:{depends:["cGreen"],layer:"bg",textColor:"preserve"},postCyantext:{depends:["cBlue"],layer:"bg",textColor:"preserve"},border:{depends:["fg"],opacity:"border",color:(e,t)=>Ls(2*e,t).rgb},poll:{depends:["accent","bg"],copacity:"poll",color:(e,t,n)=>Fo(t,.4,n)},pollText:{depends:["text"],layer:"poll",textColor:!0},icon:{depends:["bg","text"],inheritsOpacity:!1,color:(e,t,n)=>ya(t,n)},fgText:{depends:["text"],layer:"fg",textColor:!0},fgLink:{depends:["link"],layer:"fg",textColor:"preserve"},panel:{depends:["fg"],opacity:"panel"},panelText:{depends:["text"],layer:"panel",textColor:!0},panelFaint:{depends:["fgText"],layer:"panel",opacity:"faint",textColor:!0},panelLink:{depends:["fgLink"],layer:"panel",textColor:"preserve"},topBar:"--fg",topBarText:{depends:["fgText"],layer:"topBar",textColor:!0},topBarLink:{depends:["fgLink"],layer:"topBar",textColor:"preserve"},tab:{depends:["btn"]},tabText:{depends:["btnText"],layer:"btn",textColor:!0},tabActiveText:{depends:["text"],layer:"bg",textColor:!0}
93,btn:{depends:["fg"],variant:"btn",opacity:"btn"},btnText:{depends:["fgText"],layer:"btn",textColor:!0},btnPanelText:{depends:["btnText"],layer:"btnPanel",variant:"btn",textColor:!0},btnTopBarText:{depends:["btnText"],layer:"btnTopBar",variant:"btn",textColor:!0},btnPressed:{depends:["btn"],layer:"btn"},btnPressedText:{depends:["btnText"],layer:"btn",variant:"btnPressed",textColor:!0},btnPressedPanel:{depends:["btnPressed"],layer:"btn"},btnPressedPanelText:{depends:["btnPanelText"],layer:"btnPanel",variant:"btnPressed",textColor:!0},btnPressedTopBar:{depends:["btnPressed"],layer:"btn"},btnPressedTopBarText:{depends:["btnTopBarText"],layer:"btnTopBar",variant:"btnPressed",textColor:!0},btnToggled:{depends:["btn"],layer:"btn",color:(e,t)=>Ls(e*20,t).rgb},btnToggledText:{depends:["btnText"],layer:"btn",variant:"btnToggled",textColor:!0},btnToggledPanelText:{depends:["btnPanelText"],layer:"btnPanel",variant:"btnToggled",textColor:!0},btnToggledTopBarText:{depends:["btnTopBarText"],layer:"btnTopBar",variant:"btnToggled",textColor:!0},btnDisabled:{depends:["btn","bg"],color:(e,t,n)=>Fo(t,.25,n)},btnDisabledText:{depends:["btnText","btnDisabled"],layer:"btn",variant:"btnDisabled",color:(e,t,n)=>Fo(t,.25,n)},btnDisabledPanelText:{depends:["btnPanelText","btnDisabled"],layer:"btnPanel",variant:"btnDisabled",color:(e,t,n)=>Fo(t,.25,n)},btnDisabledTopBarText:{depends:["btnTopBarText","btnDisabled"],layer:"btnTopBar",variant:"btnDisabled",color:(e,t,n)=>Fo(t,.25,n)},input:{depends:["fg"],opacity:"input"},inputText:{depends:["text"],layer:"input",textColor:!0},inputPanelText:{depends:["panelText"],layer:"inputPanel",variant:"input",textColor:!0},inputTopbarText:{depends:["topBarText"],layer:"inputTopBar",variant:"input",textColor:!0},alertError:{depends:["cRed"],opacity:"alert"},alertErrorText:{depends:["text"],layer:"alert",variant:"alertError",textColor:!0},alertErrorPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertError",textColor:!0},alertWarning:{depends:["cOrange"],opacity:"alert"},alertWarningText:{depends:["text"],layer:"alert",variant:"alertWarning",textColor:!0},alertWarningPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertWarning",textColor:!0},alertSuccess:{depends:["cGreen"],opacity:"alert"},alertSuccessText:{depends:["text"],layer:"alert",variant:"alertSuccess",textColor:!0},alertSuccessPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertSuccess",textColor:!0},alertNeutral:{depends:["text"],opacity:"alert"},alertNeutralText:{depends:["text"],layer:"alert",variant:"alertNeutral",color:(e,t)=>X5(t).rgb,textColor:!0},alertNeutralPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertNeutral",textColor:!0},alertPopupError:{depends:["alertError"],opacity:"alertPopup"},alertPopupErrorText:{depends:["alertErrorText"],layer:"popover",variant:"alertPopupError",textColor:!0},alertPopupWarning:{depends:["alertWarning"],opacity:"alertPopup"},alertPopupWarningText:{depends:["alertWarningText"],layer:"popover",variant:"alertPopupWarning",textColor:!0},alertPopupSuccess:{depends:["alertSuccess"],opacity:"alertPopup"},alertPopupSuccessText:{depends:["alertSuccessText"],layer:"popover",variant:"alertPopupSuccess",textColor:!0},alertPopupNeutral:{depends:["alertNeutral"],opacity:"alertPopup"},alertPopupNeutralText:{depends:["alertNeutralText"],layer:"popover",variant:"alertPopupNeutral",textColor:!0},badgeNotification:"--cRed",badgeNotificationText:{depends:["text","badgeNotification"],layer:"badge",variant:"badgeNotification",textColor:"bw"},badgeNeutral:"--cGreen",badgeNeutralText:{depends:["text","badgeNeutral"],layer:"badge",variant:"badgeNeutral",textColor:"bw"},chatBg:{depends:["bg"]},chatMessageIncomingBg:{depends:["chatBg"]},chatMessageIncomingText:{depends:["text"],layer:"chatMessage",variant:"chatMessageIncomingBg",textColor:!0},chatMessageIncomingLink:{depends:["link"],layer:"chatMessage",variant:"chatMessageIncomingBg",textColor:"preserve"},chatMessageIncomingBorder:{depends:["border"],opacity:"border",color:(e,t)=>Ls(2*e,t).rgb},chatMessageOutgoingBg:{depends:["chatMessageIncomingBg"],color:(e,t)=>
93Ls(5*e,t).rgb},chatMessageOutgoingText:{depends:["text"],layer:"chatMessage",variant:"chatMessageOutgoingBg",textColor:!0},chatMessageOutgoingLink:{depends:["link"],layer:"chatMessage",variant:"chatMessageOutgoingBg",textColor:"preserve"},chatMessageOutgoingBorder:{depends:["chatMessageOutgoingBg"],opacity:"border",color:(e,t)=>Ls(2*e,t).rgb}},Tx=3,oI=(e,t=rI)=>{const n=[e];let s=t[e];for(;s;)n.unshift(s),s=t[s];return n},$k=(e,t=e,n,s,r)=>oI(e).map(o=>[o===e?s[t]:s[o],o===e?r[n]||1:r[o]]),cd=(e,t)=>{const n=t[e];if(typeof n=="string"&&n.startsWith("--"))return[n.substring(2)];{if(n===null)return[];const{depends:s,layer:r,variant:o}=n,i=r?oI(r).map(a=>a===r?o||r:a):[];return Array.isArray(s)?[...s,...i]:[...i]}},Ax=(e=Ui,t=cd)=>{const n=Object.keys(e),s=new Set(n),r=new Set,o=new Set,i=[...n],a=[],c=u=>{if(s.has(u))s.delete(u),r.add(u),t(u,e).forEach(c),r.delete(u),o.add(u),a.push(u);else if(r.has(u))a.push(u);else if(!o.has(u))throw new Error("Unintended condition in topoSort!")};for(;i.length>0;)c(i.pop());return a.map((u,f)=>({data:u,index:f})).sort(({data:u,index:f},{data:h,index:v})=>{const y=t(u,e).length,S=t(h,e).length;return y===S||S!==0&&y!==0?f-v:y===0&&S!==0?-1:S===0&&y!==0?1:0}).map(({data:u})=>u)},D_=e=>typeof e=="object"?e:{depends:e.startsWith("--")?[e.substring(2)]:[],default:e.startsWith("#")?e:void 0},Eu=(e,t=Ui,n=cd)=>{const s=D_(t[e]);if(s.opacity===null)return;if(s.opacity)return s.opacity;const r=(o,i=[e])=>{const a=n(o,t)[0];if(a===void 0)return;const c=t[a];if(c!==void 0)return c.opacity||c===null?c.opacity:c.depends&&i.includes(a)?r(a,[...i,a]):null};if(s.depends)return r(e)},Ck=(e,t=Ui,n=cd)=>{const s=D_(t[e]);if(rI[e])return e;if(s.layer===null)return;if(s.layer)return s.layer;const r=(o,i=[e])=>{const a=n(o,t)[0];if(a===void 0)return;const c=t[a];if(c!==void 0)return c.layer||c===null?c.layer:c.depends?r(c,[...i,a]):null};if(s.depends)return r(e)},Ex=Ax(Object.entries(Ui).sort(([,e],[,t])=>(e&&e.priority||0)-(t&&t.priority||0)).reduce((e,[t,n])=>({...e,[t]:n}),{})),Ix=Object.entries(Ui).reduce((e,[t])=>{const n=Eu(t,Ui,cd);return n?{...e,[n]:{defaultValue:Cx[n]||1,affectedSlots:[...e[n]&&e[n].affectedSlots||[],t]}}:e},{}),iI=(e,t,n)=>{if(typeof e!="string"||!e.startsWith("--"))return e;let s=null;const[r,o]=e.split(/,/g).map(a=>a.trim()),i=r.substring(2);return s=t(i),o&&(s=Ls(Number.parseFloat(o)*n,s).rgb),s},Px=(e,t)=>Ex.reduce(({colors:n,opacity:s},r)=>{const o=e[r],i=D_(Ui[r]),a=cd(r,Ui),c=!!i.textColor,u=i.variant||i.layer;let f=null;c?f=x0({...n[a[0]]||kt(e[r]||"#FF00FF").rgb},$k(Ck(r)||"bg",u||"bg",Eu(u),n,s)):u&&u!==r?f=n[u]||kt(e[u]).rgb:f=n.bg||kt(e.bg);const v=Ra(f)<.5?1:-1;let y=null;if(o){let I=o;if(I==="transparent"){const $=$k(Ck(r),r,Eu(r)||r,n,s).slice(0,-1);I={...x0(kt("#FF00FF").rgb,$),a:0}}else typeof o=="string"&&o.startsWith("--")?I=iI(o,$=>n[$]||e[$],v):typeof o=="string"&&o.startsWith("#")&&(I=kt(I).rgb);y={...I}}else if(i.default)y=kt(i.default).rgb;else{const I=(k,P)=>({...P}),$=i.color||I;if(i.textColor)if(i.textColor==="bw")y=Y5(f).rgb;else{let k={...n[a[0]]};i.color&&(k=$(v,...a.map(P=>({...n[P]})))),y=R_(f,{...k},i.textColor==="preserve")}else y=$(v,...a.map(k=>({...n[k]})))}if(!y)throw new Error("Couldn't generate color for "+r);const S=i.opacity||Eu(r),C=i.opacity;if(C===null)y.a=1;else if(o==="transparent")y.a=0;else{const I=C&&t[S]!==void 0,$=a[0],k=$&&n[$];!C&&k&&!i.textColor&&C!==null?y.a=k.a:!k&&!S?delete y.a:k&&k.a===0?y.a=0:y.a=Number(I?t[S]:(Ix[S]||{}).defaultValue)}return(Number.isNaN(y.a)||y.a===void 0)&&(y.a=1),S?{colors:{...n,[r]:y},opacity:{...s,[S]:y.a}}:{colors:{...n,[r]:y},opacity:s}},{colors:{},opacity:{}}),Lx=(e,t,n,s)=>({rules:{...n.rules,...e.rules,...t.rules,...s.rules},theme:{...n.theme,...e.theme,...t.theme,...s.theme}}),Tk=e=>{const t=Rx(e);return Lx(t,Mx(e),Dx(e,t.theme.colors),Nx(e))},Ak=(e,t)=>e.length===0?"none":e.filter(n=>t?n.inset:n).map(n=>[n.x,n.y,n.blur,n.spread].map(s=>s+"px").concat([Z5(n.color,n.alpha),n.inset?"inset":""]).join(" ")).join(", "),Ox=e=>e.length===0?"none":e.filter(t=>!t.inset&&Number(t.spread)===0).map(t=>[t.x,t.y,t.blur/2].map(n=>n+"px").concat([Z5(t.color,t.alpha)]).join(" ")).map(t=>`drop-shadow(${t})`).join(" "),Rx=e=>{const t=e.themeEngineVersion?e.colors||e:jx(e.colors||e),{colors:n,op
93acity:s}=Px(t,e.opacity||{}),r=Object.entries(n).reduce((o,[i,a])=>(a&&(o.solid[i]=kh(a),o.complete[i]=typeof a.a>"u"?kh(a):Vl(a)),o),{complete:{},solid:{}});return{rules:{colors:Object.entries(r.complete).filter(([,o])=>o).map(([o,i])=>`--${o}: ${i}`).join(";")},theme:{colors:r.solid,opacity:s}}},Mx=e=>{let t=e.radii||{};typeof e.btnRadius<"u"&&(t=Object.entries(e).filter(([s])=>s.endsWith("Radius")).reduce((s,r)=>(s[r[0].split("Radius")[0]]=r[1],s),{}));const n=Object.entries(t).filter(([,s])=>s).reduce((s,[r,o])=>(s[r]=o,s),{btn:4,input:4,checkbox:2,panel:10,avatar:5,avatarAlt:50,tooltip:2,attachment:5,chatMessage:t.panel});return{rules:{radii:Object.entries(n).filter(([,s])=>s).map(([s,r])=>`--${s}Radius: ${r}px`).join(";")},theme:{radii:n}}},Nx=e=>{const t=Object.entries(e.fonts||{}).filter(([,n])=>n).reduce((n,[s,r])=>(n[s]=Object.entries(r).filter(([,o])=>o).reduce((o,[i,a])=>(o[i]=a,o),n[s]),n),{interface:{family:"sans-serif"},input:{family:"inherit"},post:{family:"inherit"},postCode:{family:"monospace"}});return{rules:{fonts:Object.entries(t).filter(([,n])=>n).map(([n,s])=>`--${n}Font: ${s.family}`).join(";")},theme:{fonts:t}}},Ch=(e,t)=>({x:0,y:e?1:-1,blur:0,spread:0,color:t?"#000000":"#FFFFFF",alpha:.2,inset:!0}),Ek=[Ch(!0,!1),Ch(!1,!0)],Ik=[Ch(!0,!0),Ch(!1,!1)],Pk={x:0,y:0,blur:4,spread:0,color:"--faint",alpha:1},Fx={panel:[{x:1,y:1,blur:4,spread:0,color:"#000000",alpha:.6}],topBar:[{x:0,y:0,blur:4,spread:0,color:"#000000",alpha:.6}],popup:[{x:2,y:2,blur:3,spread:0,color:"#000000",alpha:.5}],avatar:[{x:0,y:1,blur:8,spread:0,color:"#000000",alpha:.7}],avatarStatus:[],panelHeader:[],button:[{x:0,y:0,blur:2,spread:0,color:"#000000",alpha:1},...Ek],buttonHover:[Pk,...Ek],buttonPressed:[Pk,...Ik],input:[...Ik,{x:0,y:0,blur:2,inset:!0,spread:0,color:"#000000",alpha:1}]},Dx=(e,t)=>{const n={button:"btn",panel:"bg",top:"topBar",popup:"popover",avatar:"bg",panelHeader:"panel",input:"input"},s=Object.fromEntries(Object.entries(e.shadows||{}).map(([i,a])=>[i,a.map(c=>({color:"#000000",...c}))])),r=s&&!e.themeEngineVersion?Ux(s,e.opacity):s||{},o=Object.entries({...Fx,...r}).reduce((i,[a,c])=>{const u=a.replace(/[A-Z].*$/,""),f=n[u],v=Ra(kt(t[f]).rgb)<.5?1:-1,y=c.reduce((S,C)=>[...S,{...C,color:kh(iI(C.color,I=>kt(t[I]).rgb,v))}],[]);return{...i,[a]:y}},{});return{rules:{shadows:Object.entries(o).map(([i,a])=>[`--${i}Shadow: ${Ak(a)}`,`--${i}ShadowFilter: ${Ox(a)}`,`--${i}ShadowInset: ${Ak(a,!0)}`].join(";")).join(";")},theme:{shadows:o}}},Ux=(e,t)=>Object.entries(e).reduce((n,[s,r])=>{const o=({color:c="#000000"})=>c.startsWith("--"),i=({color:c})=>t[Eu(c.substring(2).split(",")[0])],a=r.reduce((c,u)=>[...c,{...u,alpha:o(u)?i(u)||1:u.alpha}],[]);return{...n,[s]:a}},{}),jx=e=>Object.entries(e).reduce((t,[n,s])=>{const r=["","Panel","TopBar"];switch(n){case"lightBg":return{...t,highlight:s};case"btnText":return{...t,...r.reduce((o,i)=>({...o,["btn"+i+"Text"]:s}),{})};default:return{...t,[n]:s}}},{}),Bx=["bg","wallpaper","fg","text","underlay","link","accent","faint","faintLink","postFaintLink","cBlue","cRed","cGreen","cOrange","profileBg","profileTint","highlight","highlightLightText","highlightPostLink","highlightFaintText","highlightFaintLink","highlightPostFaintLink","highlightText","highlightLink","highlightIcon","popover","popoverLightText","popoverPostLink","popoverFaintText","popoverFaintLink","popoverPostFaintLink","popoverText","popoverLink","popoverIcon","selectedPost","selectedPostFaintText","selectedPostLightText","selectedPostPostLink","selectedPostFaintLink","selectedPostText","selectedPostLink","selectedPostIcon","selectedMenu","selectedMenuLightText","selectedMenuFaintText","selectedMenuFaintLink","selectedMenuText","selectedMenuLink","selectedMenuIcon","selectedMenuPopover","selectedMenuPopoverLightText","selectedMenuPopoverFaintText","selectedMenuPopoverFaintLink","selectedMenuPopoverText","selectedMenuPopoverLink","selectedMenuPopoverIcon","lightText","postLink","postGreentext","postCyantext","border","poll","pollText","icon","fgText","fgLink","panel","panelText","panelFaint","panelLink","topBar","topBarText","topB
93arLink","tab","tabText","tabActiveText","btn","btnText","btnPanelText","btnTopBarText","btnPressed","btnPressedText","btnPressedPanel","btnPressedPanelText","btnPressedTopBar","btnPressedTopBarText","btnToggled","btnToggledText","btnToggledPanelText","btnToggledTopBarText","btnDisabled","btnDisabledText","btnDisabledPanelText","btnDisabledTopBarText","input","inputText","inputPanelText","inputTopbarText","alertError","alertErrorText","alertErrorPanelText","alertWarning","alertWarningText","alertWarningPanelText","alertSuccess","alertSuccessText","alertSuccessPanelText","alertNeutral","alertNeutralText","alertNeutralPanelText","alertPopupError","alertPopupErrorText","alertPopupWarning","alertPopupWarningText","alertPopupSuccess","alertPopupSuccessText","alertPopupNeutral","alertPopupNeutralText","badgeNeutral","badgeNeutralText","badgeNotification","badgeNotificationText","chatBg","chatMessageIncomingBg","chatMessageIncomingText","chatMessageIncomingLink","chatMessageIncomingBorder","chatMessageOutgoingBg","chatMessageOutgoingText","chatMessageOutgoingLink","chatMessageOutgoingBorder"],zx=new Set(["bg","fg","text","link","accent","cBlue","cRed","cGreen","cOrange","wallpaper"]),qx=new Set(["interface","input","post","postCode"]),Hx=new Set(["alert","alertPopup","bg","border","btn","faint","input","panel","popover","profileTint","underlay"]),Vx=new Set(["panel","topBar","popup","avatar","avatarStatus","panelHeader","button","buttonHover","buttonPressed","input"]),Wx=new Set(["btn","input","checkbox","panel","avatar","avatarAlt","tooltip","attachment","chatMessage"]),Gx=["border","icon","highlight","lightText","popover","panel","topBar","tab","btn","input","selectedMenu","alert","alertPopup","badge","post","selectedPost","poll","chatBg","chatMessage"],Kx=new Set(["border","icon","highlight","lightText","chatBg"]),xx=Object.fromEntries(Gx.map(e=>[e,Bx.filter(t=>e==="alert"?t.startsWith(e)&&!t.startsWith("alertPopup"):t.startsWith(e))])),Yx=e=>{e.colors.accent=e.colors.accent||e.colors.link,e.colors.link=e.colors.link||e.colors.accent;const t=()=>{const c={};return zx.forEach(u=>{c["--"+u]="color | "+kt(e.colors[u]).hex}),{component:"Root",directives:c}},n=()=>{const c=[];return Object.keys(e.opacity||{}).forEach(u=>{if(!Hx.has(u)||e.opacity[u]===void 0)return null;const f=e.opacity[u],h={source:"2to3"};switch(u){case"alert":h.component="Alert";break;case"alertPopup":h.component="Alert",h.parent={component:"Popover"};break;case"bg":h.component="Panel";break;case"border":h.component="Border";break;case"btn":h.component="Button";break;case"faint":h.component="Text",h.state=["faint"];break;case"input":h.component="Input";break;case"panel":h.component="PanelHeader";break;case"popover":h.component="Popover";break;case"profileTint":return null;case"underlay":h.component="Underlay";break}switch(u){case"alert":case"alertPopup":case"bg":case"btn":case"input":case"panel":case"popover":case"underlay":h.directives={opacity:f};break;case"faint":case"border":h.directives={textOpacity:f};break}c.push(h),h.component==="Button"&&(c.push({...h,component:"ScrollbarElement"}),c.push({...h,component:"Tab"}),c.push({...h,component:"Tab",state:["active"],directives:{opacity:0}})),h.component==="Panel"&&c.push({...h,component:"Post"})}),c},s=()=>{const c=[];return Object.keys(e.radii||{}).forEach(u=>{if(!Wx.has(u)||e.radii[u]===void 0)return null;const f=e.radii[u],h={source:"2to3"};switch(u){case"btn":h.component="Button";break;case"tab":h.component="Tab";break;case"input":h.component="Input";break;case"checkbox":h.component="Input",h.variant="checkbox";break;case"panel":h.component="Panel";break;case"avatar":h.component="Avatar";break;case"avatarAlt":h.component="Avatar",h.variant="compact";break;case"tooltip":h.component="Popover";break;case"ChatMessage":h.component="Button";break}h.directives={roundness:f},c.push(h),h.component==="Button"&&(c.push({...h,component:"ScrollbarElement"}),c.push({...h,component:"Tab"}))}),c},r=()=>{const c=[];return Object.keys(e.fonts||{}).forEach(u=>{if(!qx.has(u)||!e.fonts[u])return;const f=e.fonts[u].family,h={source:"2to3"};switch(u){case"interface":case"postCode":h.component="Root";break;case"input":h.component="Input";break;case"post":h.component="RichContent";break}switch(u){case"interface":case"input":case"post":h.directives={"--font":"generic | "+f};break;case"postCode":h.directives={"--monoFont":"generic | "+f},c.push({...h,component:"RichContent"});break}c.push(h)}),c},o=()=>{const c=[];return Object.keys(e.shadows||{}
93).forEach(u=>{if(!Vx.has(u))return;const f=e.shadows[u],h={source:"2to3"};switch(u){case"panel":h.component="Panel";break;case"topBar":h.component="TopBar";break;case"popup":h.component="Popover";break;case"avatar":h.component="Avatar";break;case"avatarStatus":h.component="Avatar",h.parent={component:"Post"};break;case"panelHeader":h.component="PanelHeader";break;case"button":h.component="Button";break;case"buttonHover":h.component="Button",h.state=["hover"];break;case"buttonPressed":h.component="Button",h.state=["pressed"];break;case"input":h.component="Input";break}h.directives={shadow:f},c.push(h),u==="topBar"&&c.push({...h,component:"PanelHeader",parent:{component:"MobileDrawer"}}),u==="avatarStatus"&&c.push({...h,parent:{component:"Notification"}}),u==="buttonPressed"&&(c.push({...h,state:["toggled"]}),c.push({...h,state:["toggled","focus"]}),c.push({...h,state:["pressed","focus"]}),c.push({...h,state:["toggled","focus","hover"]}),c.push({...h,state:["pressed","focus","hover"]})),h.component==="Button"&&(c.push({...h,component:"ScrollbarElement"}),c.push({...h,component:"Tab"}))}),c},a=Object.entries(xx).map(([c,u])=>{if(Kx.has(c))return null;const f={source:"2to3"};return c==="alertPopup"?(f.component="Alert",f.parent={component:"Popover"}):c==="selectedPost"?(f.component="Post",f.state=["selected"]):c==="selectedMenu"?(f.component="MenuItem",f.state=["hover"]):c==="chatMessageIncoming"?f.component="ChatMessage":c==="chatMessageOutgoing"?(f.component="ChatMessage",f.variant="outgoing"):c==="panel"?f.component="PanelHeader":c==="topBar"?f.component="TopBar":c==="chatMessage"?f.component="ChatMessage":c==="poll"?f.component="PollGraph":c==="btn"?f.component="Button":f.component=c[0].toUpperCase()+c.slice(1).toLowerCase(),u.map(h=>{var $,k;if(!e.colors[h])return null;const y=(h.replace(c,"")||"Bg").match(/[A-Z][a-z]*/g),S=y.slice(-1)[0];let C={source:"2to3",directives:{}},I=[];switch(S){case"Text":case"Faint":case"Link":case"Icon":case"Greentext":case"Cyantext":case"Border":C.parent=f,C.directives.textColor=e.colors[h],I=y.slice(0,-1);break;default:C={...f,directives:{}},C.directives.background=e.colors[h],I=y;break}if(S==="Text"||S==="Link"){const P=y.slice(-2)[0];if(P==="Light")return null;P==="Faint"&&(C.state=["faint"],I=y.slice(0,-2))}switch(S){case"Text":case"Link":case"Icon":case"Border":C.component=S;break;case"Greentext":case"Cyantext":C.component="FunText",C.variant=S.toLowerCase();break;case"Faint":C.component="Text",C.state=["faint"];break}switch(I=I.filter(P=>P!=="Bg"),S==="Link"&&c==="selectedPost"&&(I=I.filter(P=>P!=="Post")),c==="popover"&&I[0]==="Post"&&(C.component="Post",C.parent={source:"2to3hack",component:"Popover"},I=I.filter(P=>P!=="Post")),c==="selectedMenu"&&I[0]==="Popover"&&(C.parent={source:"2to3hack",component:"Popover"},I=I.filter(P=>P!=="Popover")),c){case"btn":case"input":case"alert":{I.find(R=>R==="Panel")&&(C.parent={source:"2to3hack",component:"PanelHeader",parent:C.parent},I=I.filter(R=>R!=="Panel")),I.find(R=>R==="Top")&&(C.parent={source:"2to3hack",component:"TopBar",parent:C.parent},I=I.filter(R=>R!=="Top"&&R!=="Bar"));break}}if(I.length>0&&(c==="btn"?C.state=I.map(P=>P.toLowerCase()):C.variant=I[0].toLowerCase()),C.component==="Panel")return[C,{...C,component:"MobileDrawer"}];if(C.component==="Button"){const P=[C,{...C,component:"Tab"},{...C,component:"ScrollbarElement"}];return(($=C.state)==null?void 0:$.indexOf("toggled"))>=0&&(P.push({...C,state:[...C.state,"focused"]}),P.push({...C,state:[...C.state,"hover"]}),P.push({...C,state:[...C.state,"hover","focused"]})),((k=C.state)==null?void 0:k.indexOf("hover"))>=0&&P.push({...C,state:[...C.state,"focused"]}),P}else return C.component==="Badge"?C.variant==="notification"?[C,{component:"Root",directives:{"--badgeNotification":"color | "+C.directives.background}}]:C.variant==="neutral"?[{...C,variant:"normal"}]:[C]:C.component==="TopBar"?[C,{...C,parent:{component:"MobileDrawer"},component:"PanelHeader"}]:[C]})}).filter(c=>c).reduce((c,u)=>[...c,...u],[]).filter(c=>c).reduce((c,u)=>[...c,...u],[]);return[t(),...o(),...s(),...n(),...r(),...a]},Xe=vs("interface",{state:()=>({localFonts:null,themeApplied:!1,themeChangeInProgress:!1,themeVersion:"v3",styleNameUsed:null,styleDataUsed:null,useStylePalette:!1,paletteNameUsed:null,paletteDataUsed:null,themeNameUsed:null,themeDataUsed:null,temporaryChangesTimeoutId:null,temporaryChangesCountdown:-1,temporaryChangesConfirm:()=>{},temporaryChangesRevert:()=>{},settingsModalState:"hidden",settingsModalLoadedUser:!1,settingsModalLoadedAdmin:!1,settingsModalTargetTab:null,settingsModalMode:"user",settings:{currentSaveStateNotice:null,noticeClearTimeout:null,notificationPermission:null},browserSupport:{cssFilter:window.CSS&&window.CSS.supports&&(window.CSS.supports("filter","drop-shadow(0 0)")||window.CSS.supports("-webkit-filter","drop-shadow(0 0)")),localFonts:typeof window.queryLocalFonts=="function"},layoutType:"normal",globalNotices:[],layoutHeight:0,lastTimeline:null}),actions:{setTemporaryChanges({confirm:e,revert:t}){this.temporaryChangesCountdown=10,this.temporaryChangesConfirm=e,this.temporaryChangesRevert=t;const n=()=>{this.temporaryChangesCountdown===1?(this.temporaryChangesRevert(),this.clearTemporaryChanges()):(this.temporaryChangesCountdown--,this.temporaryChangesTimeoutId=setTimeout(n,1e3))};this.temporaryChangesTimeoutId=setTimeout(n,1e3)},clearTemporaryChanges(){this.temporaryChangesTimeoutId??clearTimeout(this.temporaryChangesTimeoutId),this.temporaryChangesTimeoutId=null,this.temporaryChangesCountdown=-1,this.temporaryChangesConfirm=()=>{},this.temporaryChangesRevert=()=>{}},setPageTitle(e=""){try{document.title=`${e} ${window.vuex.state.instance.name}`}catch(t){console.error(`${t}`)}},settingsSaved({success:e,error:t}){e?(this.noticeClearTimeout&&clearTimeout(this.noticeClearTimeout),this.settings.currentSaveStateNotice={error:!1,data:e},this.settings.noticeClearTimeout=setTimeout(()=>delete this.settings.currentSaveStateNotice,2e3)):this.settings.currentSaveStateNotice={error:!0,errorData:t}},setNotificationPermission(e){this.notificationPermission=e}
93,closeSettingsModal(){this.settingsModalState="hidden"},openSettingsModal(e){this.settingsModalMode=e,this.settingsModalState="visible",e==="user"?this.settingsModalLoadedUser||(this.settingsModalLoadedUser=!0):e==="admin"&&(this.settingsModalLoadedAdmin||(this.settingsModalLoadedAdmin=!0))},togglePeekSettingsModal(){switch(this.settingsModalState){case"minimized":this.settingsModalState="visible";return;case"visible":this.settingsModalState="minimized";return;default:throw new Error("Illegal minimization state of settings modal")}},clearSettingsModalTargetTab(){this.settingsModalTargetTab=null},openSettingsModalTab(e,t="user"){this.settingsModalTargetTab=e,this.openSettingsModal(t)},removeGlobalNotice(e){this.globalNotices=this.globalNotices.filter(t=>t!==e)},pushGlobalNotice({messageKey:e,messageArgs:t={},level:n="error",timeout:s=0}){const r={messageKey:e,messageArgs:t,level:n};this.globalNotices.push(r);const o=this.globalNotices[this.globalNotices.length-1];return s&&setTimeout(()=>this.removeGlobalNotice(o),s),o},setLayoutHeight(e){this.layoutHeight=e},setLayoutWidth(e){let t=e;e!==void 0?this.layoutWidth=e:t=this.layoutWidth;const s=t<=800?"mobile":"normal",{thirdColumnMode:r}=window.vuex.getters.mergedConfig;if(r==="none"||!window.vuex.state.users.currentUser)this.layoutType=s;else{const o=t>=1300;this.layoutType=o?"wide":s}},setFontsList(e){this.localFonts=[...new Set(e.map(t=>t.family)).values()]},queryLocalFonts(){this.localFonts===null&&(this.setFontsList([]),this.browserSupport.localFonts&&window.queryLocalFonts().then(e=>{this.setFontsList(e)}).catch(e=>{this.pushGlobalNotice({messageKey:"settings.style.themes3.font.font_list_unavailable",messageArgs:{error:e},level:"error"})}))},setLastTimeline(e){this.lastTimeline=e},async fetchPalettesIndex(){try{const e=await Wg("/static/palettes/index.json");return window.vuex.commit("setInstanceOption",{name:"palettesIndex",value:e}),e}catch(e){return console.error("Could not fetch palettes index",e),window.vuex.commit("setInstanceOption",{name:"palettesIndex",value:{_error:e}}),Promise.resolve({})}},setPalette(e){this.resetThemeV3Palette(),this.resetThemeV2(),window.vuex.commit("setOption",{name:"palette",value:e}),this.applyTheme({recompile:!0})},setPaletteCustom(e){this.resetThemeV3Palette(),this.resetThemeV2(),window.vuex.commit("setOption",{name:"paletteCustomData",value:e}),this.applyTheme({recompile:!0})},async fetchStylesIndex(){try{const e=await Wg("/static/styles/index.json",QK);return window.vuex.commit("setInstanceOption",{name:"stylesIndex",value:e}),e}catch(e){return console.error("Could not fetch styles index",e),window.vuex.commit("setInstanceOption",{name:"stylesIndex",value:{_error:e}}),Promise.resolve({})}},setStyle(e){this.resetThemeV3(),this.resetThemeV2(),this.resetThemeV3Palette(),window.vuex.commit("setOption",{name:"style",value:e}),this.useStylePalette=!0,this.applyTheme({recompile:!0}).then(()=>{this.useStylePalette=!1})},setStyleCustom(e){this.resetThemeV3(),this.resetThemeV2(),this.resetThemeV3Palette(),window.vuex.commit("setOption",{name:"styleCustomData",value:e}),this.useStylePalette=!0,this.applyTheme({recompile:!0}).then(()=>{this.useStylePalette=!1})},async fetchThemesIndex(){try{const e=await Wg("/static/styles.json");return window.vuex.commit("setInstanceOption",{name:"themesIndex",value:e}),e}catch(e){return console.error("Could not fetch themes index",e),window.vuex.commit("setInstanceOption",{name:"themesIndex",value:{_error:e}}),Promise.resolve({})}},setTheme(e){this.resetThemeV3(),this.resetThemeV3Palette(),this.resetThemeV2(),window.vuex.commit("setOption",{name:"theme",value:e}),this.applyTheme({recompile:!0})},setThemeCustom(e){this.resetThemeV3(),this.resetThemeV3Palette(),this.resetThemeV2(),window.vuex.commit("setOption",{name:"customTheme",value:e}),window.vuex.commit("setOption",{name:"customThemeSource",value:e}),this.applyTheme({recompile:!0})},resetThemeV3(){window.vuex.commit("setOption",{name:"style",value:null}),window.vuex.commit("setOption",{name:"styleCustomData",value:null})},resetThemeV3Palette(){window.vuex.commit("setOption",{name:"palette",value:null}),window.vuex.commit("setOption",{name:"paletteCustomData",value:null})},resetThemeV2(){window.vuex.commit("setOption",{name:"theme",value:null}),window.vuex.commit("setOption",{name:"customTheme",value:null}),window.vuex.commit("setOption",{name:"customThemeSource",value:null})},async getThemeData(){var C;const e=async(I,$,k,P)=>{const A=I[0].toUpperCase()+I.slice(1),R={};if(k)R.nameUsed="custom",R.dataUsed=k;else{if(R.nameUsed=P,R.nameUsed==null)return R.dataUsed=null,R;let B=$[R.nameUsed];if(!B){if(I==="style"||I==="palette")return R;const N=Object.keys($)[0];B=$[N],console.warn(`${A} with id '${this.styleNameUsed}' not found, trying back to '${N}'`),B||(console.warn(`${A} doesn't have a fallback, defaulting to stock.`),B=()=>Promise.resolve(null))}R.dataUsed=await B()}return R},{style:t,palette:n}=window.vuex.state.instance;let{theme:s,themesIndex:r,stylesIndex:o,palettesIndex:i}=window.vuex.state.instance;const{style:a,styleCustomData:c,palette:u,paletteCustomData:f}=window.vuex.state.config;let{theme:h,customTheme:v,customThemeSource:y}=window.vuex.state.config,S;if(console.debug(`User V3 palette: ${u}, style: ${a} , custom: ${!!c}`),console.debug(`User V2 name: ${h}, source: ${!!y}, snapshot: ${!!v}`),console.debug(`Instance V3 palette: ${n}, style: ${t}`),console.debug("Instance V2 theme: "+s),u||f||a||c||(n||t)&&s==null&&h==null?(s=null,h=null,y=null,v=null,S="v3"):h||v||y||s?S="v2":S="v3",S==="v3"){const I=await Promise.all([this.fetchPalettesIndex(),this.fetchStylesIndex()]);i=I[0],o=I[1]}
93else r=(await Promise.all([this.fetchThemesIndex()]))[0];if(this.themeVersion=S,console.debug("Version used",S),S==="v3"){this.themeDataUsed=null,this.themeNameUsed=null;const I=await e("style",o,c,a||t);this.styleNameUsed=I.nameUsed,this.styleDataUsed=I.dataUsed;let $=null;(C=I.dataUsed)==null||C.filter(P=>P.component==="@palette").map(P=>{const A=Object.fromEntries(Object.entries(P.directives).filter(([R])=>R));return{name:P.variant,...A}}).forEach(P=>{const A="style."+P.name.toLowerCase().replace(/ /g,"_");$||($=A),i[A]=()=>Promise.resolve(P)});const k=await e("palette",i,f,this.useStylePalette?$:u||n);if(this.useStylePalette&&window.vuex.commit("setOption",{name:"palette",value:$}),this.paletteNameUsed=k.nameUsed,this.paletteDataUsed=k.dataUsed,this.paletteDataUsed&&(this.paletteDataUsed.link=this.paletteDataUsed.link||this.paletteDataUsed.accent,this.paletteDataUsed.accent=this.paletteDataUsed.accent||this.paletteDataUsed.link),Array.isArray(this.paletteDataUsed)){const[P,A,R,B,N,Y="#FF0000",H="#00FF00",D="#0000FF",oe="#E3FF00"]=k.dataUsed;this.paletteDataUsed={name:P,bg:A,fg:R,text:B,link:N,accent:N,cRed:Y,cBlue:D,cGreen:H,cOrange:oe}}console.debug("Palette data used",k.dataUsed)}else{this.styleNameUsed=null,this.styleDataUsed=null,this.paletteNameUsed=null,this.paletteDataUsed=null;const I=await e("theme",r,y||v,h||s);this.themeNameUsed=I.nameUsed,this.themeDataUsed=I.dataUsed}},async setThemeApplied(){this.themeApplied=!0},async applyTheme({recompile:e=!1}={}){const{forceThemeRecompilation:t,themeDebug:n,theme3hacks:s}=window.vuex.state.config;this.themeChangeInProgress=!0;const r=t||e;if(await this.getThemeData(),!r&&!n&&await cx())return this.themeChangeInProgress=!1,this.setThemeApplied();window.splashUpdate("splash.theme");try{const o=(()=>{if(!this.paletteDataUsed)return null;const u={component:"Root",directives:{}};return Object.entries(this.paletteDataUsed).filter(([f])=>f!=="name").forEach(([f,h])=>{let v;switch(f){case"background":v="bg";break;case"foreground":v="fg";break;default:v=f}u.directives["--"+v]="color | "+h}),u})(),i=this.themeDataUsed&&Yx(aI(this.themeDataUsed)),a=[];Object.entries(s).forEach(([u,f])=>{switch(u){case"fonts":{Object.entries(s.fonts).forEach(([h,v])=>{if(v!=null&&v.family)switch(h){case"interface":a.push({component:"Root",directives:{"--font":"generic | "+v.family}});break;case"input":a.push({component:"Input",directives:{"--font":"generic | "+v.family}});break;case"post":a.push({component:"RichContent",directives:{"--font":"generic | "+v.family}});break;case"monospace":a.push({component:"Root",directives:{"--monoFont":"generic | "+v.family}});break}});break}case"underlay":{if(f!=="none"){const h={component:"Underlay",directives:{}};f==="opaque"&&(h.directives.opacity=1,h.directives.background="--wallpaper"),f==="transparent"&&(h.directives.opacity=0),a.push(h)}break}}});const c=[i,this.styleDataUsed,o,a].filter(u=>u);return ux(c.flat(),()=>this.setThemeApplied(),()=>{this.themeChangeInProgress=!1},n)}catch(o){window.splashError(o)}}}}),aI=e=>{let t,n;if(e.themeFileVerison===1)return Tk(e).theme;Object.prototype.hasOwnProperty.call(e,"_pleroma_theme_version")||Object.prototype.hasOwnProperty.call(e,"source")||Object.prototype.hasOwnProperty.call(e,"theme")?(t=e.theme,n=e.source):(Object.prototype.hasOwnProperty.call(e,"themeEngineVersion")||Object.prototype.hasOwnProperty.call(e,"colors"))&&(t=e,n=e);let s;return n&&n.themeEngineVersion===Tx?s={...t||{},...n}:s=t,Tk(s).theme},Xx=Object.freeze(Object.defineProperty({__proto__:null,normalizeThemeData:aI,useInterfaceStore:Xe},Symbol.toStringTag,{value:"Module"})),Jx="userLanguage",Zx=new Set(["sidebarColumnWidth","contentColumnWidth","notifsColumnWidth","themeEditorMinWidth","textSize","navbarSize","panelHeaderSize","forcedRoundness","emojiSize","emojiReactionsScale"]),lI=Object.keys(_p),Qx={state:{...Yf},getters:{defaultConfig(e,t,n){const{instance:s}=n;return{...Yf,...Object.fromEntries(lI.map(r=>[r,s[r]]))}},mergedConfig(e,t,n,s){const{defaultConfig:r}=s;return{...r,...Object.fromEntries(Object.entries(e).filter(([,o])=>o!==void 0))}}},mutations:{setOptionTemporarily(e,{name:t,value:n}){Z.set(e,t,n),J0(e)},setOption(e,{name:t,value:n}){Z.set(e,t,n)},setHighlight(e,{user:t,color:n,type:s}){const r=this.state.config.highlight[t];n||s?e.highlight[t]={color:n||r.color,type:s||r.type}:delete e.highlight[t]}},actions:{loadSettings({dispatch:e},t){const n=new Set(Object.keys(Yf)),s=new Set(Object.keys(t)),r=new Set;for(const o of s)n.has(o)&&r.add(o);r.forEach(o=>e("setOption",{name:o,value:t[o]}))},setHighlight({commit:e},{user:t,color:n,type:s}){e("setHighlight",{user:t,color:n,type:s})},setOptionTemporarily({commit:e,dispatch:t,state:n},{name:s,value:r}){if(Xe().temporaryChangesTimeoutId!==null){console.warn("Can't track more than one temporary change");return}const o=n[s];e("setOptionTemporarily",{name:s,value:r});const i=()=>{t("setOption",{name:s,value:r}),Xe().clearTemporaryChanges()},a=()=>{e("setOptionTemporarily",{name:s,value:o}),Xe().clearTemporaryChanges()};Xe().setTemporaryChanges({confirm:i,revert:a})},setThemeV2({commit:e,dispatch:t},{customTheme:n,customThemeSource:s}){e("setOption",{name:"theme",value:"custom"}),e("setOption",{name:"customTheme",value:n}),e("setOption",{name:"customThemeSource",value:s}),t("setTheme",{themeData:s,recompile:!0})},setOption({commit:e,dispatch:t,state:n},{name:s,value:r}){if(new Set(["useStreamingApi"]).has(s))switch(s){case"useStreamingApi":{t(r?"enableMastoSockets":"disableMastoSockets").then(()=>{e("setOption",{name:"useStreamingApi",value:r})}).catch(a=>{console.error("Failed starting MastoAPI Streaming socket",a),t("disableMastoSockets"),t("setOption",{name:"useStreamingApi",value:!1})});break}}else switch(e("setOption",{name:s,value:r}),Zx.has(s)&&J0(n),s.startsWith("theme3hacks")&&t("applyTheme",{recompile:!0}),s){case"theme":if(r==="custom")break;t("setTheme",{themeName:r,recompile:!0,saveData:!0});break;case"themeDebug":{t("setTheme",{recompile:!0});break}case"interfaceLanguage":wp.setLanguage(vp().i18n,r),t("loadUnicodeEmojiData",r),fG.set(Jx,Tr.internalToBackendLocaleMulti(r));break;case"thirdColumnMode":Xe().setLayoutWidth(void 0);break}}}},eY={ar:()=>Ve(()=>import("./emoji-annotations/ar.B8mhZA6U.js"),[]),ca:()=>Ve(()=>import("./emoji-annotations/ca.BNs7Pavf.js"),[]),cs:()=>Ve(()=>import("./emoji-annotations/cs.CdaRuLZ2.js"),[]),de:()=>Ve(()=>import("./emoji-annotations/de.i-ePE-E2.js"),[]),en:()=>Ve(()=>import("./emoji-annotations/en.UxzeFsjk.js"),[]),es:()=>Ve(()=>import("./emoji-annotations/es.BgprEtDA.js"),[]),et:()=>Ve(()=>import("./emoji-annotations/et.RsBIeRrK.js"),[]),eu:()=>Ve(()=>import("./emoji-annotations/eu.DflrXXOX.js"),[]),fi:()=>Ve(()=>import("./emoji-annotations/fi.BQTjfiqL.js"),[]),fr:()=>Ve(()=>import("./emoji-annotations/fr.6uuBHV2n.js"),[]),ga:()=>Ve(()=>import("./emoji-annotations/ga.D-L92xRm.js"),[]),he:()=>Ve(()=>import("./emoji-annotations/he.Ql7ZB6oR.js"),[]),hu:()=>Ve(()=>import("./emoji-annotations/hu.CfFMlYJN.js"),[]),it:()=>Ve(()=>import("./emoji-annotations/it.CjUsZ0f4.js"),[]),ja:()=>Ve(()=>import("./emoji-annotations/ja.Cp7hRpKj.js"),[]),ja_easy:()=>Ve(()=>import("./emoji-annotations/ja.Cp7hRpKj.js"),[]),ko:()=>Ve(()=>import("./emoji-annotations/ko.DGjjBGsA.js"),[]),nl:()=>Ve(()=>import("./emoji-annotations/nl.BCmP3XAV.js"),[]),pl:()=>Ve(()=>import("./emoji-annotations/pl.C1i62U33.js"),[]),pt:()=>Ve(()=>import("./emoji-annotations/pt.qcD2jbqr.js"),[]),ro:()=>Ve(()=>import("./emoji-annotations/ro.Q0r94aGX.js"),[]),ru:()=>Ve(()=>import("./emoji-annotations/ru.BsjC3M1d.js"),[]),sk:()=>Ve(()=>import("./emoji-annotations/sk.BrZ6jXEe.js"),[]),te:()=>Ve(()=>import("./emoji-annotations/te.3rQpXN4b.js"),[]),uk:()=>Ve(()=>import("./emoji-annotations/uk.C7RXZT0o.js"),[]),zh:()=>Ve(()=>import("./emoji-annotations/zh.DXJ_1nIQ.js"),[]),zh_Hant:()=>Ve(()=>import("./emoji-annotations/zh_Hant.ccXyIXaI.js"),[])},Lk=["smileys-and-emotion","people-and-body","animals-and-nature","food-and-drink","travel-and-places","activities","objects","symbols","flags"],tY=(()=>{const n="A".codePointAt(0),s=new Array(26);for(let r=127462;r<=127487;++r){const o=String.fromCodePoint(n+r-127462);s[r-127462]={replacement:String.fromCodePoint(r),imageUrl:!1,displayText:"regional_indicator_"+o,displayTextI18n:{key:"emoji.regional_indicator",args:{letter:o}}}}return s})(),nY="/main/ostatus",sY={name:"Pleroma FE",registrationOpen:!0,server:"http://localhost:4040/",textlimit:5e3,themesIndex:void 0,stylesIndex:void 0,palettesIndex:void 0,themeData:void 0,vapidPublicKey:void 0,loginMethod:"password",disableUpdateNotification:!1,fontsOverride:{},...rE,..._p,customEmoji:[],customEmojiFetched:!1,emoji:{},emojiFetched:!1,unicodeEmojiAnnotations:{},pleromaExtensionsAvailable:!0,postFormats:[],restrictedNicknames:[],safeDM:!0,knownDomains:[],birthdayRequired:!1,birthdayMinAge:0,shoutAvailable:!1,pleromaChatMessagesAvailable:!1,pleromaCustomEmojiReactionsAvailable:!1,pleromaBookmarkFoldersAvailable:!1,pleromaPublicF
93avouritesAvailable:!0,statusNotificationTypeAvailable:!0,gopherAvailable:!1,mediaProxyAvailable:!1,suggestionsEnabled:!1,suggestionsWeb:"",quotingAvailable:!1,groupActorAvailable:!1,blockExpiration:!1,localBubbleInstances:[],instanceSpecificPanelContent:"",tos:"",backendVersion:"",backendRepository:"",frontendVersion:"",pollsAvailable:!1,pollLimits:{max_options:4,max_option_chars:255,min_expiration:60,max_expiration:60*60*24}},rY=e=>eY[e]().then(t=>t.default),Ok=(e,t)=>{const n=Object.keys(t);return{...e,annotations:n.reduce((s,r)=>(s[r]=t[r][e.replacement],s),{})}},oY=e=>(e.symbols.push(...tY),e),iY={state:sY,mutations:{setInstanceOption(e,{name:t,value:n}){typeof n<"u"&&(e[t]=n)},setKnownDomains(e,t){e.knownDomains=t},setUnicodeEmojiAnnotations(e,{lang:t,annotations:n}){e.unicodeEmojiAnnotations[t]=n}},getters:{instanceDefaultConfig(e){return lI.map(t=>[t,e[t]]).reduce((t,[n,s])=>({...t,[n]:s}),{})},groupedCustomEmojis(e){const t=n=>{const s=n.tags.filter(r=>r.startsWith("pack:")).map(r=>{const o=r.slice(5);return{id:`custom-${o}`,text:o}});return s.length?s:[{id:"unpacked"}]};return e.customEmoji.reduce((n,s)=>(t(s).forEach(({id:r,text:o})=>{n[r]||(n[r]={id:r,text:o,image:s.imageUrl,emojis:[]}),n[r].emojis.push(s)}),n),{})},standardEmojiList(e){return Lk.map(t=>(e.emoji[t]||[]).map(n=>Ok(n,e.unicodeEmojiAnnotations))).reduce((t,n)=>t.concat(n),[])},standardEmojiGroupList(e){return Lk.map(t=>({id:t,emojis:(e.emoji[t]||[]).map(n=>Ok(n,e.unicodeEmojiAnnotations))}))},instanceDomain(e){return new URL(e.server).hostname},remoteInteractionLink(e){const n=(e.server.endsWith("/")?e.server.slice(0,-1):e.server)+nY;return({statusId:s,nickname:r})=>s?`${n}?status_id=${s}`:`${n}?nickname=${r}`}},actions:{setInstanceOption({commit:e,dispatch:t},{name:n,value:s}){switch(e("setInstanceOption",{name:n,value:s}),n){case"name":Xe().setPageTitle();break;case"shoutAvailable":s&&t("initializeSocket");break}},async getStaticEmoji({commit:e}){try{const t=(await Ve(async()=>{const{default:s}=await import("./emoji.CF2IDMqM.js");return{default:s}},[])).default,n=Object.keys(t).reduce((s,r)=>(s[r]=t[r].map(o=>({displayText:o.slug,imageUrl:!1,replacement:o.emoji})),s),{});e("setInstanceOption",{name:"emoji",value:oY(n)})}catch(t){console.warn(`Can't load static emoji
94`,t)}},loadUnicodeEmojiData({commit:e,state:t},n){const s=N_(n);return Promise.all(s.map(async r=>{if(!t.unicodeEmojiAnnotations[r])try{const o=await rY(r);e("setUnicodeEmojiAnnotations",{lang:r,annotations:o})}catch(o){console.warn(`Error loading unicode emoji annotations for ${r}: `,o)}}))},async getCustomEmoji({commit:e,state:t}){try{let n=await window.fetch("/api/v1/pleroma/emoji");if(n.ok||(n=await window.fetch("/api/pleroma/emoji.json")),n.ok){const s=await n.json(),r=Array.isArray(s)?Object.assign({},...s):s,o=(u,f)=>{const h=u.toLowerCase(),v=f.toLowerCase();return h>v?1:h<v?-1:0},i=(u,f)=>{const h=u==="",v=f==="";return h===v?0:h&&!v?1:-1},a=(u,f)=>{const h=S=>(S.tags.filter(C=>C.startsWith("pack:"))[0]||"").slice(5),v=h(u),y=h(f);return i(v,y)||o(v,y)||o(u.displayText,f.displayText)},c=Object.entries(r).map(([u,f])=>{const h=f.image_url;return{displayText:u,imageUrl:h?t.server+h:f,tags:h?f.tags.sort((v,y)=>v>y?1:0):["utf"],replacement:`:${u}: `}}).sort(a);e("setInstanceOption",{name:"customEmoji",value:c})}else throw n}catch(n){console.warn(`Can't load custom emojis
95`,n)}},fetchEmoji({dispatch:e,state:t}){t.customEmojiFetched||(t.customEmojiFetched=!0,e("getCustomEmoji")),t.emojiFetched||(t.emojiFetched=!0,e("getStaticEmoji"))},async getKnownDomains({commit:e,rootState:t}){try{const n=await Ln.fetchKnownDomains({credentials:t.users.currentUser.credentials});e("setKnownDomains",n)}catch(n){console.warn(`Can't load known domains
96`,n)}}}},Gs=(e=0)=>({statuses:[],statusesObject:{},faves:[],visibleStatuses:[],visibleStatusesObject:{},newStatusCount:0,maxId:0,minId:0,minVisibleId:0,loading:!1,followers:[],friends:[],userId:e,flushMarker:0}),cI=()=>({allStatuses:[],scrobblesNextFetch:{},allStatusesObject:{},conversationsObject:{},maxId:0,favorites:new Set,pleromaScrobblesAvailable:!0,timelines:{mentions:Gs(),public:Gs(),user:Gs(),favorites:Gs(),media:Gs(),publicAndExternal:Gs(),friends:Gs(),tag:Gs(),dms:Gs(),bookmarks:Gs(),list:Gs(),bubble:Gs()}}),aY=e=>(e.deleted=!1,e.attachments=e.attachments||[],e),cu=(e,t,n)=>{const s=t[n.id];return s?(Z.merge(s,Z.omitBy(n,(r,o)=>r===null||o==="user")),s.attachments.splice(s.attachments.length),{item:s,new:!1}):(aY(n),e.push(n),t[n.id]=n,{item:n,new:!0})},Rk=(e,t)=>{const n=Number(e.id),s=Number(t.id),r=!Number.isNaN(n),o=!Number.isNaN(s);return r&&o?n>s?-1:1:r&&!o?1:!r&&o||e.id>t.id?-1:1},xg=e=>(e.visibleStatuses=e.visibleStatuses.sort(Rk),e.statuses=e.statuses.sort(Rk),e.minVisibleId=(Z.last(e.visibleStatuses)||{}).id,e),lY=(e,t)=>
96{const n=e.pleromaScrobblesAvailable;!n||!t.name||t.id==="undefined"||e.scrobblesNextFetch[t.id]&&e.scrobblesNextFetch[t.id]>Date.now()||(e.scrobblesNextFetch[t.id]=Date.now()+24*60*60*1e3,n&&Ln.fetchScrobbles({accountId:t.id}).then(s=>{if(s!=null&&s.error){e.pleromaScrobblesAvailable=!1;return}s.length>0&&(t.latestScrobble=s[0],e.scrobblesNextFetch[t.id]=Date.now()+60*1e3)}).catch(s=>{console.warn("cannot fetch scrobbles",s)}))},cY=(e,t)=>{lY(e,t.user);const n=cu(e.allStatuses,e.allStatusesObject,t);if(n.new){const s=n.item,r=e.conversationsObject,o=s.statusnet_conversation_id;r[o]?r[o].push(s):r[o]=[s]}return n},uY=(e,{statuses:t,showImmediately:n=!1,timeline:s,user:r={},noIdUpdate:o=!1,userId:i,pagination:a={}})=>{if(!Z.isArray(t))return!1;const c=e.allStatuses,u=e.timelines[s],f=a.maxId||(t.length>0?Z.minBy(t,"id").id:0),h=a.minId||(t.length>0?Z.maxBy(t,"id").id:0),v=s&&(h>u.maxId||u.maxId===0)&&t.length>0,y=s&&(f<u.minId||u.minId===0)&&t.length>0;if(!o&&v&&(u.maxId=h),!o&&y&&(u.minId=f),(s==="user"||s==="media")&&u.userId!==i)return;const S=($,k,P=!0)=>{const A=cY(e,$),R=A.item;if(A.new){if(R.type==="status"&&Z.find(R.attentions,{id:r.id})){const N=e.timelines.mentions;u!==N&&(cu(N.statuses,N.statusesObject,R),N.newStatusCount+=1,xg(N))}if(R.visibility==="direct"){const N=e.timelines.dms;cu(N.statuses,N.statusesObject,R),N.newStatusCount+=1,xg(N)}}let B;return s&&P&&(B=cu(u.statuses,u.statusesObject,R)),s&&k?cu(u.visibleStatuses,u.visibleStatusesObject,R):s&&P&&B.new&&(u.newStatusCount+=1),R.quote&&S(R.quote,!1,!1),R},C=$=>{const k=Z.find(c,{id:$.in_reply_to_status_id});return k&&($.user.id===r.id?k.favorited=!0:k.fave_num+=1),k},I={status:$=>{S($,n)},edit:$=>{S($,n)},retweet:$=>{const k=S($.retweeted_status,!1,!1);let P;s&&Z.find(u.statuses,A=>A.retweeted_status?A.id===k.id||A.retweeted_status.id===k.id:A.id===k.id)?P=S($,!1,!1):P=S($,n),P.retweeted_status=k},favorite:$=>{e.favorites.has($.id)||(e.favorites.add($.id),C($))},follow:()=>{},default:$=>{console.warn("unknown status type"),console.warn($)}};Z.each(t,$=>{const k=$.type;(I[k]||I.default)($)}),s&&s!=="bookmarks"&&xg(u)},dY=(e,{timeline:t,userId:n})=>{const s=e.timelines[t];n&&(Z.remove(s.statuses,{user:{id:n}}),Z.remove(s.visibleStatuses,{user:{id:n}}),s.minVisibleId=s.visibleStatuses.length>0?Z.last(s.visibleStatuses).id:0,s.maxId=s.statuses.length>0?Z.first(s.statuses).id:0)},fY={addNewStatuses:uY,removeStatus:dY,showNewStatuses(e,{timeline:t}){const n=e.timelines[t];n.newStatusCount=0,n.visibleStatuses=Z.slice(n.statuses,0,50),n.minVisibleId=Z.last(n.visibleStatuses).id,n.minId=n.minVisibleId,n.visibleStatusesObject={},Z.each(n.visibleStatuses,s=>{n.visibleStatusesObject[s.id]=s})},resetStatuses(e){const t=cI();Object.entries(t).forEach(([n,s])=>{e[n]=s})},clearTimeline(e,{timeline:t,excludeUserId:n=!1}){const s=n?e.timelines[t].userId:void 0;e.timelines[t]=Gs(s)},setFavorited(e,{status:t,value:n}){const s=e.allStatusesObject[t.id];s.favorited!==n&&(n?s.fave_num++:s.fave_num--),s.favorited=n},setFavoritedConfirm(e,{status:t,user:n}){const s=e.allStatusesObject[t.id];s.favorited=t.favorited,s.fave_num=t.fave_num;const r=Z.findIndex(s.favoritedBy,{id:n.id});r!==-1&&!s.favorited?s.favoritedBy.splice(r,1):r===-1&&s.favorited&&s.favoritedBy.push(n)},setMutedStatus(e,t){const n=e.allStatusesObject[t.id];n.thread_muted=t.thread_muted,n.thread_muted!==void 0&&e.conversationsObject[n.statusnet_conversation_id].forEach(s=>{s.thread_muted=n.thread_muted})},setRetweeted(e,{status:t,value:n}){const s=e.allStatusesObject[t.id];s.repeated!==n&&(n?s.repeat_num++:s.repeat_num--),s.repeated=n},setRetweetedConfirm(e,{status:t,user:n}){const s=e.allStatusesObject[t.id];s.repeated=t.repeated,s.repeat_num=t.repeat_num;const r=Z.findIndex(s.rebloggedBy,{id:n.id});r!==-1&&!s.repeated?s.rebloggedBy.splice(r,1):r===-1&&s.repeated&&s.rebloggedBy.push(n)},setBookmarked(e,{status:t,value:n}){const s=e.allStatusesObject[t.id];s.bookmarked=n,s.bookmark_folder_id=t.bookmark_folder_id},setBookmarkedConfirm(e,{status:t}){const n=e.allStatusesObject[t.id];n.bookmarked=t.bookmarked,t.pleroma&&(n.bookmark_folder_id=t.pleroma.bookmark_folder)},setDeleted(e,{status:t}){const n=e.allStatusesObject[t.id];n&&(n.deleted=!0)},setManyDeleted(e,t){Object.values(e.allStatusesObject).forEach(n=>{t(n)&&(n.deleted=!0)})}
96,setLoading(e,{timeline:t,value:n}){e.timelines[t].loading=n},setNsfw(e,{id:t,nsfw:n}){const s=e.allStatusesObject[t];s.nsfw=n},queueFlush(e,{timeline:t,id:n}){e.timelines[t].flushMarker=n},queueFlushAll(e){Object.keys(e.timelines).forEach(t=>{e.timelines[t].flushMarker=e.timelines[t].maxId})},addRepeats(e,{id:t,rebloggedByUsers:n,currentUser:s}){const r=e.allStatusesObject[t];r.rebloggedBy=n.filter(o=>o),r.repeat_num=r.rebloggedBy.length,r.repeated=!!r.rebloggedBy.find(({id:o})=>s.id===o)},addFavs(e,{id:t,favoritedByUsers:n,currentUser:s}){const r=e.allStatusesObject[t];r.favoritedBy=n.filter(o=>o),r.fave_num=r.favoritedBy.length,r.favorited=!!r.favoritedBy.find(({id:o})=>s.id===o)},addEmojiReactionsBy(e,{id:t,emojiReactions:n}){const s=e.allStatusesObject[t];s.emoji_reactions=n},addOwnReaction(e,{id:t,emoji:n,currentUser:s}){const r=e.allStatusesObject[t],o=Z.findIndex(r.emoji_reactions,{name:n}),i=r.emoji_reactions[o]||{name:n,count:0,accounts:[]},a={...i,count:i.count+1,me:!0,accounts:[...i.accounts,s]};o>=0?r.emoji_reactions[o]=a:r.emoji_reactions=[...r.emoji_reactions,a]},removeOwnReaction(e,{id:t,emoji:n,currentUser:s}){const r=e.allStatusesObject[t],o=Z.findIndex(r.emoji_reactions,{name:n});if(o<0)return;const i=r.emoji_reactions[o],a=i.accounts||[],c={...i,count:i.count-1,me:!1,accounts:a.filter(u=>
96u.id!==s.id)};c.count>0?r.emoji_reactions[o]=c:r.emoji_reactions=r.emoji_reactions.filter(u=>u.name!==n)},updateStatusWithPoll(e,{id:t,poll:n}){const s=e.allStatusesObject[t];s.poll=n},setVirtualHeight(e,{statusId:t,height:n}){e.allStatusesObject[t].virtualHeight=n}},hY={state:cI(),actions:{addNewStatuses({rootState:e,commit:t},{statuses:n,showImmediately:s=!1,timeline:r=!1,noIdUpdate:o=!1,userId:i,pagination:a}){t("addNewStatuses",{statuses:n,showImmediately:s,timeline:r,noIdUpdate:o,user:e.users.currentUser,userId:i,pagination:a})},fetchStatus({rootState:e,dispatch:t},n){return e.api.backendInteractor.fetchStatus({id:n}).then(s=>t("addNewStatuses",{statuses:[s]}))},fetchStatusSource({rootState:e},t){return Ln.fetchStatusSource({id:t.id,credentials:e.users.currentUser.credentials})},fetchStatusHistory(e,t){return Ln.fetchStatusHistory({status:t})},deleteStatus({rootState:e,commit:t},n){Ln.deleteStatus({id:n.id,credentials:e.users.currentUser.credentials}).then(()=>{t("setDeleted",{status:n})}).catch(s=>{Xe().pushGlobalNotice({level:"error",messageKey:"status.delete_error",messageArgs:[s.message],timeout:5e3})})},deleteStatusById({rootState:e,commit:t},n){const s=e.statuses.allStatusesObject[n];t("setDeleted",{status:s})},markStatusesAsDeleted({commit:e},t){e("setManyDeleted",t)},favorite({rootState:e,commit:t},n){t("setFavorited",{status:n,value:!0}),e.api.backendInteractor.favorite({id:n.id}).then(s=>t("setFavoritedConfirm",{status:s,user:e.users.currentUser}))},unfavorite({rootState:e,commit:t},n){t("setFavorited",{status:n,value:!1}),e.api.backendInteractor.unfavorite({id:n.id}).then(s=>t("setFavoritedConfirm",{status:s,user:e.users.currentUser}))},fetchPinnedStatuses({rootState:e,dispatch:t},n){e.api.backendInteractor.fetchPinnedStatuses({id:n}).then(s=>t("addNewStatuses",{statuses:s,timeline:"user",userId:n,showImmediately:!0,noIdUpdate:!0}))},pinStatus({rootState:e,dispatch:t},n){return e.api.backendInteractor.pinOwnStatus({id:n}).then(s=>t("addNewStatuses",{statuses:[s]}))},unpinStatus({rootState:e,dispatch:t},n){e.api.backendInteractor.unpinOwnStatus({id:n}).then(s=>t("addNewStatuses",{statuses:[s]}))},muteConversation({rootState:e,commit:t},{id:n}){return e.api.backendInteractor.muteConversation({id:n}).then(s=>t("setMutedStatus",s))},unmuteConversation({rootState:e,commit:t},{id:n}){return e.api.backendInteractor.unmuteConversation({id:n}).then(s=>t("setMutedStatus",s))},retweet({rootState:e,commit:t},n){t("setRetweeted",{status:n,value:!0}),e.api.backendInteractor.retweet({id:n.id}).then(s=>t("setRetweetedConfirm",{status:s.retweeted_status,user:e.users.currentUser}))},unretweet({rootState:e,commit:t},n){t("setRetweeted",{status:n,value:!1}),e.api.backendInteractor.unretweet({id:n.id}).then(s=>t("setRetweetedConfirm",{status:s,user:e.users.currentUser}))},bookmark({rootState:e,commit:t},n){t("setBookmarked",{status:n,value:!0}),e.api.backendInteractor.bookmarkStatus({id:n.id,folder_id:n.bookmark_folder_id}).then(s=>{t("setBookmarkedConfirm",{status:s})})},unbookmark({rootState:e,commit:t},n){t("setBookmarked",{status:n,value:!1}),e.api.backendInteractor.unbookmarkStatus({id:n.id}).then(s=>{t("setBookmarkedConfirm",{status:s})})},queueFlush({commit:e},{timeline:t,id:n}){e("queueFlush",{timeline:t,id:n})},queueFlushAll({commit:e}){e("queueFlushAll")},fetchFavsAndRepeats({rootState:e,commit:t},n){Promise.all([e.api.backendInteractor.fetchFavoritedByUsers({id:n}),e.api.backendInteractor.fetchRebloggedByUsers({id:n})]).then(([s,r])=>{t("addFavs",{id:n,favoritedByUsers:s,currentUser:e.users.currentUser}),t("addRepeats",{id:n,rebloggedByUsers:r,currentUser:e.users.currentUser})})},reactWithEmoji({rootState:e,dispatch:t,commit:n},{id:s,emoji:r}){const o=e.users.currentUser;o&&(n("addOwnReaction",{id:s,emoji:r,currentUser:o}),e.api.backendInteractor.reactWithEmoji({id:s,emoji:r}).then(()=>{t("fetchEmojiReactionsBy",s)}))},unreactWithEmoji({rootState:e,dispatch:t,commit:n},{id:s,emoji:r}){const o=e.users.currentUser;o&&(n("removeOwnReaction",{id:s,emoji:r,currentUser:o}),e.api.backendInteractor.unreactWithEmoji({id:s,emoji:r}).then(()=>{t("fetchEmojiReactionsBy",s)}))},fetchEmojiReactionsBy({rootState:e,commit:t},n){return e.api.backendInteractor.fetchEmojiReactions({id:n}).then(s=>{t("addEmojiReactionsBy",{id:n,emojiReactions:s,currentUser:e.users.currentUser})})},fetchFavs({rootState:e,commit:t},n){e.api.backendInteractor.fetchFavoritedByUsers({id:n}).then(s=>t("addFavs",{id:n,favoritedByUsers:s,currentUser:e.users.currentUser}))},fetchRepeats({rootState:e,commit:t},n){e.api.backendInteractor.fetchRebloggedByUsers({id:n}).then(s=>t("addRepeats",{id:n,rebloggedByUsers:s,currentUser:e.users.currentUser}))},search(e,{q:t,resolve:n,limit:s,offset:r,following:o,type:i}){return e.rootState.api.backendInteractor.search2({q:t,resolve:n,limit:s,offset:r,following:o,type:i}).then(a=>(e.commit("addNewUsers",a.accounts),e.commit("addNewUsers",a.statuses.map(c=>c.user).filter(c=>c)),e.commit("addNewStatuses",{statuses:a.statuses}),a))},setVirtualHeight({commit:e},{statusId:t,height:n}){e("setVirtualHeight",{statusId:t,height:n})}},mutations:fY},ge=(e,t)=>
96{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},pY={provide:{popoversZLayer:"modals"},props:{isOpen:{type:Boolean,default:!0},noBackground:{type:Boolean,default:!1}},emits:["backdropClicked"],computed:{classes(){return{"modal-background":!this.noBackground,open:this.isOpen}}}};function mY(e,t,n,s,r,o){const i=sc("body-scroll-lock");return at((p(),b("div",{class:he(["modal-view",o.classes]),onClick:t[0]||(t[0]=Te(a=>e.$emit("backdropClicked"),["self"]))},[Ot(e.$slots,"default")],2)),[[Cr,n.isOpen],[i,n.isOpen&&!n.noBackground]])}const ud=ge(pY,[["render",mY]]);/*!
97 * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
98 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
99 * Copyright 2024 Fonticons, Inc.
100 */function gY(e,t,n){return(t=bY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mk(Object(n),!0).forEach(function(s){gY(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mk(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function vY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bY(e){var t=vY(e,"string");return typeof t=="symbol"?t:t+""}const Nk=()=>{};let U_={},uI={},dI=null,fI={mark:Nk,measure:Nk};try{typeof window<"u"&&(U_=window),typeof document<"u"&&(uI=document),typeof MutationObserver<"u"&&(dI=MutationObserver),typeof performance<"u"&&(fI=performance)}catch{}const{userAgent:Fk=""}=U_.navigator||{},ji=U_,wn=uI,Dk=dI,If=fI;ji.document;const Qo=!!wn.documentElement&&!!wn.head&&typeof wn.addEventListener=="function"&&typeof wn.createElement=="function",hI=~Fk.indexOf("MSIE")||~Fk.indexOf("Trident/");var yY=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,_Y=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,pI={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},wY={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},mI=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],gs="classic",Sp="duotone",SY="sharp",kY="sharp-duotone",gI=[gs,Sp,SY,kY],$Y={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},CY={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},TY=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),AY={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"}
100,sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},EY=["fak","fa-kit","fakd","fa-kit-duotone"],Uk={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},IY=["kit"],PY={kit:{"fa-kit":"fak"}},LY=["fak","fakd"],OY={kit:{fak:"fa-kit"}},jk={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Pf={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},RY=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],MY=["fak","fa-kit","fakd","fa-kit-duotone"],NY={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},FY={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},DY={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},Z0={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},UY=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Q0=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...RY,...UY],jY=["solid","regular","light","thin","duotone","brands"],vI=[1,2,3,4,5,6,7,8,9,10],BY=vI.concat([11,12,13,14,15,16,17,18,19,20]),zY=[...Object.keys(DY),...jY,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Pf.GROUP,Pf.SWAP_OPACITY,Pf.PRIMARY,Pf.SECONDARY].concat(vI.map(e=>"".concat(e,"x"))).concat(BY.map(e=>"w-".concat(e))),qY={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Ko="___FONT_AWESOME___",ey=16,bI="fa",yI="svg-inline--fa",Ma="data-fa-i2svg",ty="data-fa-pseudo-element",HY="data-fa-pseudo-element-pending",j_="data-prefix",B_="data-icon",Bk="fontawesome-i2svg",VY="async",WY=["HTML","HEAD","STYLE","SCRIPT"],_I=(()=>{try{return!0}catch{return!1}})();function dd(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[gs]}})}const wI=Ne({},pI);wI[gs]=Ne(Ne(Ne(Ne({},{"fa-duotone":"duotone"}),pI[gs]),Uk.kit),Uk["kit-duotone"]);const GY=dd(wI),ny=Ne({},AY);ny[gs]=Ne(Ne(Ne(Ne({},{duotone:"fad"}),ny[gs]),jk.kit),jk["kit-duotone"]);const zk=dd(ny),sy=Ne({},Z0);sy[gs]=Ne(Ne({},sy[gs]),OY.kit);const z_=dd(sy),ry=Ne({},FY);ry[gs]=Ne(Ne({},ry[gs]),PY.kit);dd(ry);const KY=yY,SI="fa-layers-text",xY=_Y,YY=Ne({},$Y);dd(YY);const XY=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Yg=wY,JY=[...IY,...zY],Iu=ji.FontAwesomeConfig||{};function ZY(e){var t=wn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function QY(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}wn&&typeof wn.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEac
100h(t=>{let[n,s]=t;const r=QY(ZY(n));r!=null&&(Iu[s]=r)});const kI={styleDefault:"solid",familyDefault:gs,cssPrefix:bI,replacementClass:yI,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Iu.familyPrefix&&(Iu.cssPrefix=Iu.familyPrefix);const Wl=Ne(Ne({},kI),Iu);Wl.autoReplaceSvg||(Wl.observeMutations=!1);const it={};Object.keys(kI).forEach(e=>{Object.defineProperty(it,e,{enumerable:!0,set:function(t){Wl[e]=t,Pu.forEach(n=>n(it))},get:function(){return Wl[e]}})});Object.defineProperty(it,"familyPrefix",{enumerable:!0,set:function(e){Wl.cssPrefix=e,Pu.forEach(t=>t(it))},get:function(){return Wl.cssPrefix}});ji.FontAwesomeConfig=it;const Pu=[];function eX(e){return Pu.push(e),()=>{Pu.splice(Pu.indexOf(e),1)}}const mi=ey,Zr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function tX(e){if(!e||!Qo)return;const t=wn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=wn.head.childNodes;let s=null;for(let r=n.length-1;r>-1;r--){const o=n[r],i=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(s=o)}return wn.head.insertBefore(t,s),e}const nX="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ku(){let e=12,t="";for(;e-- >0;)t+=nX[Math.random()*62|0];return t}function oc(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function q_(e){return e.classList?oc(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function $I(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function sX(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat($I(e[n]),'" '),"").trim()}function kp(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function H_(e){return e.size!==Zr.size||e.x!==Zr.x||e.y!==Zr.y||e.rotate!==Zr.rotate||e.flipX||e.flipY}function rX(e){let{transform:t,containerWidth:n,iconWidth:s}=e;const r={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(o," ").concat(i," ").concat(a)},u={transform:"translate(".concat(s/2*-1," -256)")};return{outer:r,inner:c,path:u}}function oX(e){let{transform:t,width:n=ey,height:s=ey,startCentered:r=!1}=e,o="";return r&&hI?o+="translate(".concat(t.x/mi-n/2,"em, ").concat(t.y/mi-s/2,"em) "):r?o+="translate(calc(-50% + ".concat(t.x/mi,"em), calc(-50% + ").concat(t.y/mi,"em)) "):o+="translate(".concat(t.x/mi,"em, ").concat(t.y/mi,"em) "),o+="scale(".concat(t.size/mi*(t.flipX?-1:1),", ").concat(t.size/mi*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var iX=
vendor: 12,335 bytes, lines 100-653
100`:root, :host {
101  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
102  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
103  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
104  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
105  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
106  --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
107  --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
108  --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
109  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
110  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
111  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
112  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
113  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
114  --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
115  --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
116  --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
117  --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
118}
119
120svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
121  overflow: visible;
122  box-sizing: content-box;
123}
124
125.svg-inline--fa {
126  display: var(--fa-display, inline-block);
127  height: 1em;
128  overflow: visible;
129  vertical-align: -0.125em;
130}
131.svg-inline--fa.fa-2xs {
132  vertical-align: 0.1em;
133}
134.svg-inline--fa.fa-xs {
135  vertical-align: 0em;
136}
137.svg-inline--fa.fa-sm {
138  vertical-align: -0.0714285705em;
139}
140.svg-inline--fa.fa-lg {
141  vertical-align: -0.2em;
142}
143.svg-inline--fa.fa-xl {
144  vertical-align: -0.25em;
145}
146.svg-inline--fa.fa-2xl {
147  vertical-align: -0.3125em;
148}
149.svg-inline--fa.fa-pull-left {
150  margin-right: var(--fa-pull-margin, 0.3em);
151  width: auto;
152}
153.svg-inline--fa.fa-pull-right {
154  margin-left: var(--fa-pull-margin, 0.3em);
155  width: auto;
156}
157.svg-inline--fa.fa-li {
158  width: var(--fa-li-width, 2em);
159  top: 0.25em;
160}
161.svg-inline--fa.fa-fw {
162  width: var(--fa-fw-width, 1.25em);
163}
164
165.fa-layers svg.svg-inline--fa {
166  bottom: 0;
167  left: 0;
168  margin: auto;
169  position: absolute;
170  right: 0;
171  top: 0;
172}
173
174.fa-layers-counter, .fa-layers-text {
175  display: inline-block;
176  position: absolute;
177  text-align: center;
178}
179
180.fa-layers {
181  display: inline-block;
182  height: 1em;
183  position: relative;
184  text-align: center;
185  vertical-align: -0.125em;
186  width: 1em;
187}
188.fa-layers svg.svg-inline--fa {
189  transform-origin: center center;
190}
191
192.fa-layers-text {
193  left: 50%;
194  top: 50%;
195  transform: translate(-50%, -50%);
196  transform-origin: center center;
197}
198
199.fa-layers-counter {
200  background-color: var(--fa-counter-background-color, #ff253a);
201  border-radius: var(--fa-counter-border-radius, 1em);
202  box-sizing: border-box;
203  color: var(--fa-inverse, #fff);
204  line-height: var(--fa-counter-line-height, 1);
205  max-width: var(--fa-counter-max-width, 5em);
206  min-width: var(--fa-counter-min-width, 1.5em);
207  overflow: hidden;
208  padding: var(--fa-counter-padding, 0.25em 0.5em);
209  right: var(--fa-right, 0);
210  text-overflow: ellipsis;
211  top: var(--fa-top, 0);
212  transform: scale(var(--fa-counter-scale, 0.25));
213  transform-origin: top right;
214}
215
216.fa-layers-bottom-right {
217  bottom: var(--fa-bottom, 0);
218  right: var(--fa-right, 0);
219  top: auto;
220  transform: scale(var(--fa-layers-scale, 0.25));
221  transform-origin: bottom right;
222}
223
224.fa-layers-bottom-left {
225  bottom: var(--fa-bottom, 0);
226  left: var(--fa-left, 0);
227  right: auto;
228  top: auto;
229  transform: scale(var(--fa-layers-scale, 0.25));
230  transform-origin: bottom left;
231}
232
233.fa-layers-top-right {
234  top: var(--fa-top, 0);
235  right: var(--fa-right, 0);
236  transform: scale(var(--fa-layers-scale, 0.25));
237  transform-origin: top right;
238}
239
240.fa-layers-top-left {
241  left: var(--fa-left, 0);
242  right: auto;
243  top: var(--fa-top, 0);
244  transform: scale(var(--fa-layers-scale, 0.25));
245  transform-origin: top left;
246}
247
248.fa-1x {
249  font-size: 1em;
250}
251
252.fa-2x {
253  font-size: 2em;
254}
255
256.fa-3x {
257  font-size: 3em;
258}
259
260.fa-4x {
261  font-size: 4em;
262}
263
264.fa-5x {
265  font-size: 5em;
266}
267
268.fa-6x {
269  font-size: 6em;
270}
271
272.fa-7x {
273  font-size: 7em;
274}
275
276.fa-8x {
277  font-size: 8em;
278}
279
280.fa-9x {
281  font-size: 9em;
282}
283
284.fa-10x {
285  font-size: 10em;
286}
287
288.fa-2xs {
289  font-size: 0.625em;
290  line-height: 0.1em;
291  vertical-align: 0.225em;
292}
293
294.fa-xs {
295  font-size: 0.75em;
296  line-height: 0.0833333337em;
297  vertical-align: 0.125em;
298}
299
300.fa-sm {
301  font-size: 0.875em;
302  line-height: 0.0714285718em;
303  vertical-align: 0.0535714295em;
304}
305
306.fa-lg {
307  font-size: 1.25em;
308  line-height: 0.05em;
309  vertical-align: -0.075em;
310}
311
312.fa-xl {
313  font-size: 1.5em;
314  line-height: 0.0416666682em;
315  vertical-align: -0.125em;
316}
317
318.fa-2xl {
319  font-size: 2em;
320  line-height: 0.03125em;
321  vertical-align: -0.1875em;
322}
323
324.fa-fw {
325  text-align: center;
326  width: 1.25em;
327}
328
329.fa-ul {
330  list-style-type: none;
331  margin-left: var(--fa-li-margin, 2.5em);
332  padding-left: 0;
333}
334.fa-ul > li {
335  position: relative;
336}
337
338.fa-li {
339  left: calc(-1 * var(--fa-li-width, 2em));
340  position: absolute;
341  text-align: center;
342  width: var(--fa-li-width, 2em);
343  line-height: inherit;
344}
345
346.fa-border {
347  border-color: var(--fa-border-color, #eee);
348  border-radius: var(--fa-border-radius, 0.1em);
349  border-style: var(--fa-border-style, solid);
350  border-width: var(--fa-border-width, 0.08em);
351  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
352}
353
354.fa-pull-left {
355  float: left;
356  margin-right: var(--fa-pull-margin, 0.3em);
357}
358
359.fa-pull-right {
360  float: right;
361  margin-left: var(--fa-pull-margin, 0.3em);
362}
363
364.fa-beat {
365  animation-name: fa-beat;
366  animation-delay: var(--fa-animation-delay, 0s);
367  animation-direction: var(--fa-animation-direction, normal);
368  animation-duration: var(--fa-animation-duration, 1s);
369  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
370  animation-timing-function: var(--fa-animation-timing, ease-in-out);
371}
372
373.fa-bounce {
374  animation-name: fa-bounce;
375  animation-delay: var(--fa-animation-delay, 0s);
376  animation-direction: var(--fa-animation-direction, normal);
377  animation-duration: var(--fa-animation-duration, 1s);
378  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
379  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
380}
381
382.fa-fade {
383  animation-name: fa-fade;
384  animation-delay: var(--fa-animation-delay, 0s);
385  animation-direction: var(--fa-animation-direction, normal);
386  animation-duration: var(--fa-animation-duration, 1s);
387  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
388  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
389}
390
391.fa-beat-fade {
392  animation-name: fa-beat-fade;
393  animation-delay: var(--fa-animation-delay, 0s);
394  animation-direction: var(--fa-animation-direction, normal);
395  animation-duration: var(--fa-animation-duration, 1s);
396  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
397  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
398}
399
400.fa-flip {
401  animation-name: fa-flip;
402  animation-delay: var(--fa-animation-delay, 0s);
403  animation-direction: var(--fa-animation-direction, normal);
404  animation-duration: var(--fa-animation-duration, 1s);
405  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
406  animation-timing-function: var(--fa-animation-timing, ease-in-out);
407}
408
409.fa-shake {
410  animation-name: fa-shake;
411  animation-delay: var(--fa-animation-delay, 0s);
412  animation-direction: var(--fa-animation-direction, normal);
413  animation-duration: var(--fa-animation-duration, 1s);
414  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
415  animation-timing-function: var(--fa-animation-timing, linear);
416}
417
418.fa-spin {
419  animation-name: fa-spin;
420  animation-delay: var(--fa-animation-delay, 0s);
421  animation-direction: var(--fa-animation-direction, normal);
422  animation-duration: var(--fa-animation-duration, 2s);
423  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
424  animation-timing-function: var(--fa-animation-timing, linear);
425}
426
427.fa-spin-reverse {
428  --fa-animation-direction: reverse;
429}
430
431.fa-pulse,
432.fa-spin-pulse {
433  animation-name: fa-spin;
434  animation-direction: var(--fa-animation-direction, normal);
435  animation-duration: var(--fa-animation-duration, 1s);
436  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
437  animation-timing-function: var(--fa-animation-timing, steps(8));
438}
439
440@media (prefers-reduced-motion: reduce) {
441  .fa-beat,
442.fa-bounce,
443.fa-fade,
444.fa-beat-fade,
445.fa-flip,
446.fa-pulse,
447.fa-shake,
448.fa-spin,
449.fa-spin-pulse {
450    animation-delay: -1ms;
451    animation-duration: 1ms;
452    animation-iteration-count: 1;
453    transition-delay: 0s;
454    transition-duration: 0s;
455  }
456}
457@keyframes fa-beat {
458  0%, 90% {
459    transform: scale(1);
460  }
461  45% {
462    transform: scale(var(--fa-beat-scale, 1.25));
463  }
464}
465@keyframes fa-bounce {
466  0% {
467    transform: scale(1, 1) translateY(0);
468  }
469  10% {
470    transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
471  }
472  30% {
473    transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
474  }
475  50% {
476    transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
477  }
478  57% {
479    transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
480  }
481  64% {
482    transform: scale(1, 1) translateY(0);
483  }
484  100% {
485    transform: scale(1, 1) translateY(0);
486  }
487}
488@keyframes fa-fade {
489  50% {
490    opacity: var(--fa-fade-opacity, 0.4);
491  }
492}
493@keyframes fa-beat-fade {
494  0%, 100% {
495    opacity: var(--fa-beat-fade-opacity, 0.4);
496    transform: scale(1);
497  }
498  50% {
499    opacity: 1;
500    transform: scale(var(--fa-beat-fade-scale, 1.125));
501  }
502}
503@keyframes fa-flip {
504  50% {
505    transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
506  }
507}
508@keyframes fa-shake {
509  0% {
510    transform: rotate(-15deg);
511  }
512  4% {
513    transform: rotate(15deg);
514  }
515  8%, 24% {
516    transform: rotate(-18deg);
517  }
518  12%, 28% {
519    transform: rotate(18deg);
520  }
521  16% {
522    transform: rotate(-22deg);
523  }
524  20% {
525    transform: rotate(22deg);
526  }
527  32% {
528    transform: rotate(-12deg);
529  }
530  36% {
531    transform: rotate(12deg);
532  }
533  40%, 100% {
534    transform: rotate(0deg);
535  }
536}
537@keyframes fa-spin {
538  0% {
539    transform: rotate(0deg);
540  }
541  100% {
542    transform: rotate(360deg);
543  }
544}
545.fa-rotate-90 {
546  transform: rotate(90deg);
547}
548
549.fa-rotate-180 {
550  transform: rotate(180deg);
551}
552
553.fa-rotate-270 {
554  transform: rotate(270deg);
555}
556
557.fa-flip-horizontal {
558  transform: scale(-1, 1);
559}
560
561.fa-flip-vertical {
562  transform: scale(1, -1);
563}
564
565.fa-flip-both,
566.fa-flip-horizontal.fa-flip-vertical {
567  transform: scale(-1, -1);
568}
569
570.fa-rotate-by {
571  transform: rotate(var(--fa-rotate-angle, 0));
572}
573
574.fa-stack {
575  display: inline-block;
576  vertical-align: middle;
577  height: 2em;
578  position: relative;
579  width: 2.5em;
580}
581
582.fa-stack-1x,
583.fa-stack-2x {
584  bottom: 0;
585  left: 0;
586  margin: auto;
587  position: absolute;
588  right: 0;
589  top: 0;
590  z-index: var(--fa-stack-z-index, auto);
591}
592
593.svg-inline--fa.fa-stack-1x {
594  height: 1em;
595  width: 1.25em;
596}
597.svg-inline--fa.fa-stack-2x {
598  height: 2em;
599  width: 2.5em;
600}
601
602.fa-inverse {
603  color: var(--fa-inverse, #fff);
604}
605
606.sr-only,
607.fa-sr-only {
608  position: absolute;
609  width: 1px;
610  height: 1px;
611  padding: 0;
612  margin: -1px;
613  overflow: hidden;
614  clip: rect(0, 0, 0, 0);
615  white-space: nowrap;
616  border-width: 0;
617}
618
619.sr-only-focusable:not(:focus),
620.fa-sr-only-focusable:not(:focus) {
621  position: absolute;
622  width: 1px;
623  height: 1px;
624  padding: 0;
625  margin: -1px;
626  overflow: hidden;
627  clip: rect(0, 0, 0, 0);
628  white-space: nowrap;
629  border-width: 0;
630}
631
632.svg-inline--fa .fa-primary {
633  fill: var(--fa-primary-color, currentColor);
634  opacity: var(--fa-primary-opacity, 1);
635}
636
637.svg-inline--fa .fa-secondary {
638  fill: var(--fa-secondary-color, currentColor);
639  opacity: var(--fa-secondary-opacity, 0.4);
640}
641
642.svg-inline--fa.fa-swap-opacity .fa-primary {
643  opacity: var(--fa-secondary-opacity, 0.4);
644}
645
646.svg-inline--fa.fa-swap-opacity .fa-secondary {
647  opacity: var(--fa-primary-opacity, 1);
648}
649
650.svg-inline--fa mask .fa-primary,
651.svg-inline--fa mask .fa-secondary {
652  fill: black;
653}`;
653function CI(){const e=bI,t=yI,n=it.cssPrefix,s=it.replacementClass;let r=iX;if(n!==e||s!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");r=r.replace(o,".".concat(n,"-")).replace(i,"--".concat(n,"-")).replace(a,".".concat(s))}return r}let qk=!1;function Xg(){it.autoAddCss&&!qk&&(tX(CI()),qk=!0)}var aX={mixout(){return{dom:{css:CI,insertCss:Xg}}},hooks(){return{beforeDOMElementCreation(){Xg()},beforeI2svg(){Xg()}}}};const xo=ji||{};xo[Ko]||(xo[Ko]={});xo[Ko].styles||(xo[Ko].styles={});xo[Ko].hooks||(xo[Ko].hooks={});xo[Ko].shims||(xo[Ko].shims=[]);var Qr=xo[Ko];const TI=[],AI=function(){wn.removeEventListener("DOMContentLoaded",AI),Th=1,TI.map(e=>e())};let Th=!1;Qo&&(Th=(wn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(wn.readyState),Th||wn.addEventListener("DOMContentLoaded",AI));function lX(e){Qo&&(Th?setTimeout(e,0):TI.push(e))}function fd(e){const{tag:t,attributes:n={},children:s=[]}=e;return typeof e=="string"?$I(e):"<".concat(t," ").concat(sX(n),">").concat(s.map(fd).join(""),"</").concat(t,">")}function Hk(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Jg=function(t,n,s,r){var o=Object.keys(t),i=o.length,a=n,c,u,f;for(s===void 0?(c=1,f=t[o[0]]):(c=0,f=s);c<i;c++)u=o[c],f=a(f,t[u],u,t);return f};function cX(e){const t=[];let n=0;const s=e.length;for(;n<s;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<s){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((r&1023)<<10)+(o&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}function oy(e){const t=cX(e);return t.length===1?t[0].toString(16):null}function uX(e,t){const n=e.length;let s=e.charCodeAt(t),r;return s>=55296&&s<=56319&&n>t+1&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(s-55296)*1024+r-56320+65536:s}function Vk(e){return Object.keys(e).reduce((t,n)=>{const s=e[n];return!!s.icon?t[s.iconName]=s.icon:t[n]=s,t},{})}function iy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:s=!1}=n,r=Vk(t);typeof Qr.hooks.addPack=="function"&&!s?Qr.hooks.addPack(e,Vk(t)):Qr.styles[e]=Ne(Ne({},Qr.styles[e]||{}),r),e==="fas"&&iy("fa",t)}const{styles:xu,shims:dX}=Qr,EI=Object.keys(z_),fX=EI.reduce((e,t)=>(e[t]=Object.keys(z_[t]),e),{});let V_=null,II={},PI={},LI={},OI={},RI={};function hX(e){return~JY.indexOf(e)}function pX(e,t){const n=t.split("-"),s=n[0],r=n.slice(1).join("-");return s===e&&r!==""&&!hX(r)?r:null}const MI=()=>{const e=s=>Jg(xu,(r,o,i)=>(r[i]=Jg(o,s,{}),r),{});II=e((s,r,o)=>(r[3]&&(s[r[3]]=o),r[2]&&r[2].filter(a=>typeof a=="number").forEach(a=>{s[a.toString(16)]=o}),s)),PI=e((s,r,o)=>(s[o]=o,r[2]&&r[2].filter(a=>typeof a=="string").forEach(a=>{s[a]=o}),s)),RI=e((s,r,o)=>{const i=r[2];return s[o]=o,i.forEach(a=>{s[a]=o}),s});const t="far"in xu||it.autoFetchSvg,n=Jg(dX,(s,r)=>{const o=r[0];let i=r[1];const a=r[2];return i==="far"&&!t&&(i="fas"),typeof o=="string"&&(s.names[o]={prefix:i,iconName:a}),typeof o=="number"&&(s.unicodes[o.toString(16)]={prefix:i,iconName:a}),s},{names:{},unicodes:{}});LI=n.names,OI=n.unicodes,V_=$p(it.styleDefault,{family:it.familyDefault})};eX(e=>{V_=$p(e.styleDefault,{family:it.familyDefault})});MI();function W_(e,t){return(II[e]||{})[t]}function mX(e,t){return(PI[e]||{})[t]}function Sa(e,t){return(RI[e]||{})[t]}function NI(e){return LI[e]||{prefix:null,iconName:null}}function gX(e){const t=OI[e],n=W_("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Bi(){return V_}const FI=()=>({prefix:null,iconName:null,rest:[]}
653);function vX(e){let t=gs;const n=EI.reduce((s,r)=>(s[r]="".concat(it.cssPrefix,"-").concat(r),s),{});return gI.forEach(s=>{(e.includes(n[s])||e.some(r=>fX[s].includes(r)))&&(t=s)}),t}function $p(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=gs}=t,s=GY[n][e];if(n===Sp&&!e)return"fad";const r=zk[n][e]||zk[n][s],o=e in Qr.styles?e:null;return r||o||null}function bX(e){let t=[],n=null;return e.forEach(s=>{const r=pX(it.cssPrefix,s);r?n=r:s&&t.push(s)}),{iconName:n,rest:t}}function Wk(e){return e.sort().filter((t,n,s)=>s.indexOf(t)===n)}function Cp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let s=null;const r=Q0.concat(MY),o=Wk(e.filter(h=>r.includes(h))),i=Wk(e.filter(h=>!Q0.includes(h))),a=o.filter(h=>(s=h,!mI.includes(h))),[c=null]=a,u=vX(o),f=Ne(Ne({},bX(i)),{},{prefix:$p(c,{family:u})});return Ne(Ne(Ne({},f),SX({values:e,family:u,styles:xu,config:it,canonical:f,givenPrefix:s})),yX(n,s,f))}function yX(e,t,n){let{prefix:s,iconName:r}=n;if(e||!s||!r)return{prefix:s,iconName:r};const o=t==="fa"?NI(r):{},i=Sa(s,r);return r=o.iconName||i||r,s=o.prefix||s,s==="far"&&!xu.far&&xu.fas&&!it.autoFetchSvg&&(s="fas"),{prefix:s,iconName:r}}const _X=gI.filter(e=>e!==gs||e!==Sp),wX=Object.keys(Z0).filter(e=>e!==gs).map(e=>Object.keys(Z0[e])).flat();function SX(e){const{values:t,family:n,canonical:s,givenPrefix:r="",styles:o={},config:i={}}=e,a=n===Sp,c=t.includes("fa-duotone")||t.includes("fad"),u=i.familyDefault==="duotone",f=s.prefix==="fad"||s.prefix==="fa-duotone";if(!a&&(c||u||f)&&(s.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(s.prefix="fab"),!s.prefix&&_X.includes(n)&&(Object.keys(o).find(v=>wX.includes(v))||i.autoFetchSvg)){const v=TY.get(n).defaultShortPrefixId;s.prefix=v,s.iconName=Sa(s.prefix,s.iconName)||s.iconName}return(s.prefix==="fa"||r==="fa")&&(s.prefix=Bi()||"fas"),s}class kX{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];const r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(o=>{this.definitions[o]=Ne(Ne({},this.definitions[o]||{}),r[o]),iy(o,r[o]);const i=z_[gs][o];i&&iy(i,r[o]),MI()})}reset(){this.definitions={}}_pullDefinitions(t,n){const s=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(s).map(r=>{const{prefix:o,iconName:i,icon:a}=s[r],c=a[2];t[o]||(t[o]={}),c.length>0&&c.forEach(u=>{typeof u=="string"&&(t[o][u]=a)}),t[o][i]=a}),t}}let Gk=[],El={};const Fl={},$X=Object.keys(Fl);function CX(e,t){let{mixoutsTo:n}=t;return Gk=e,El={},Object.keys(Fl).forEach(s=>{$X.indexOf(s)===-1&&delete Fl[s]}),Gk.forEach(s=>{const r=s.mixout?s.mixout():{};if(Object.keys(r).forEach(o=>{typeof r[o]=="function"&&(n[o]=r[o]),typeof r[o]=="object"&&Object.keys(r[o]).forEach(i=>{n[o]||(n[o]={}),n[o][i]=r[o][i]})}),s.hooks){const o=s.hooks();Object.keys(o).forEach(i=>{El[i]||(El[i]=[]),El[i].push(o[i])})}s.provides&&s.provides(Fl)}),n}function ay(e,t){for(var n=arguments.length,s=new Array(n>2?n-2:0),r=2;r<n;r++)s[r-2]=arguments[r];return(El[e]||[]).forEach(i=>{t=i.apply(null,[t,...s])}),t}function Na(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];(El[e]||[]).forEach(o=>{o.apply(null,n)})}function zi(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Fl[e]?Fl[e].apply(null,t):void 0}function ly(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Bi();if(t)return t=Sa(n,t)||t,Hk(DI.definitions,n,t)||Hk(Qr.styles,n,t)}const DI=new kX,TX=()=>{it.autoReplaceSvg=!1,it.observeMutations=!1,Na("noAuto")},AX={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Qo?(Na("beforeI2svg",e),zi("pseudoElements2svg",e),zi("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;it.autoReplaceSvg===!1&&(it.autoReplaceSvg=!0),it.observeMutations=!0,lX(()=>{IX({autoReplaceSvgRoot:t}),Na("watch",e)})}},EX={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Sa(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=$p(e[0]);return{prefix:n,iconName:Sa(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(it.cssPrefix,"-"))>-1||e.match(KY))){const t=Cp(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Bi(),iconName:Sa(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Bi();return{prefix:t,iconName:Sa(t,e)||e}}}},Js={noAuto:TX,config:it,dom:AX,parse:EX,library:DI,findIconDefinition:ly,toHtml:fd},IX=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=wn}=e;(Object.keys(Qr.styles).length>0||it.autoFetchSvg)&&Qo&&it.autoReplaceSvg&&Js.dom.i2svg({node:t})};function Tp(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>fd(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Qo)return;const n=wn.createElement("div");return n.innerHTML=e.html,n.children}}),e}function PX(e){let{children:t,main:n,mask:s,attributes:r,styles:o,transform:i}=e;if(H_(i)&&n.found&&!s.found){const{width:a,height:c}=n,u={x:a/c/2,y:.5};r.style=kp(Ne(Ne({},o),{},{"transform-origin":"".concat(u.x+i.x/16,"em ").concat(u.y+i.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}function LX(e){let{prefix:t,iconName:n,children:s,attributes:r,symbol:o}=e;const i=o===!0?"".concat(t,"-").concat(it.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ne(Ne({},r),{},{id:i}),children:s}]}]}function G_(e){const{icons:{main:t,mask:n},prefix:s,iconName:r,transform:o,symbol:i,title:a,maskId:c,titleId:u,extra:f,watchable:h=!1}=e,{width:v,height:y}=n.found?n:t,S=LY.includes(s),C=[it.replacementClass,r?"".concat(it.cssPrefix,"-").concat(r):""].filter(R=>f.classes.indexOf(R)===-1).filter(R=>R!==""||!!R).concat(f.classes).join(" ");let I={children:[],attributes:Ne(Ne({},f.attributes),{},{"data-prefix":s,"data-icon":r,class:C,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(y)})};const $=S&&!~f.classes.indexOf("fa-fw")?{width:"".concat(v/y*16*.0625,"em")}:{};h&&(I.attributes[Ma]=""),a&&(I.children.push({tag:"title",attributes:{id:I.attributes["aria-labelledby"]||"title-".concat(u||Ku())},children:[a]}),delete I.attributes.title);const k=Ne(Ne({},I),{},{prefix:s,iconName:r,main:t,mask:n,maskId:c,transform:o,symbol:i,styles:Ne(Ne({},$),f.styles)}),{children:P,attributes:A}=n.found&&t.found?zi("generateAbstractMask",k)||{children:[],attributes:{}}:zi("generateAbstractIcon",k)||{children:[],attributes:{}};return k.children=P,k.attributes=A,i?LX(k):PX(k)}function Kk(e){const{content:t,width:n,height:s,transform:r,title:o,extra:i,watchable:a=!1}=e,c=Ne(Ne(Ne({},i.attributes),o?{title:o}:{}),{},{class:i.classes.join(" ")});a&&(c[Ma]="");const u=Ne({},i.styles);H_(r)&&(u.transform=oX({transform:r,startCentered:!0,width:n,height:s}),u["-webkit-transform"]=u.transform);const f=kp(u);f.length>0&&(c.style=f);const h=[];return h.push({tag:"span",attributes:c,children:[t]}),o&&h.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),h}function OX(e){const{content:t,title:n,extra:s}=e,r=Ne(Ne(Ne({},s.attributes),n?{title:n}:{}),{},{class:s.classes.join(" ")}),o=kp(s.styles);o.length>0&&(r.style=o);const i=[];return i.push({tag:"span",attributes:r,children:[t]}),n&&i.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),i}const{styles:Zg}=Qr;function cy(e){const t=e[0],n=e[1],[s]=e.slice(4);let r=null;return Array.isArray(s)?r={tag:"g",attributes:{class:"".concat(it.cssPrefix,"-").concat(Yg.GROUP)},children:[{tag:"path",attributes:{class:"".concat(it.cssPrefix,"-").concat(Yg.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(it.cssPrefix,"-").concat(Yg.PRIMARY),fill:"currentColor",d:s[1]}}]}
653:r={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:n,icon:r}}const RX={found:!1,width:512,height:512};function MX(e,t){!_I&&!it.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function uy(e,t){let n=t;return t==="fa"&&it.styleDefault!==null&&(t=Bi()),new Promise((s,r)=>{if(n==="fa"){const o=NI(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Zg[t]&&Zg[t][e]){const o=Zg[t][e];return s(cy(o))}MX(e,t),s(Ne(Ne({},RX),{},{icon:it.showMissingIcons&&e?zi("missingIconAbstract")||{}:{}}))})}const xk=()=>{},dy=it.measurePerformance&&If&&If.mark&&If.measure?If:{mark:xk,measure:xk},uu='FA "6.7.2"',NX=e=>(dy.mark("".concat(uu," ").concat(e," begins")),()=>UI(e)),UI=e=>{dy.mark("".concat(uu," ").concat(e," ends")),dy.measure("".concat(uu," ").concat(e),"".concat(uu," ").concat(e," begins"),"".concat(uu," ").concat(e," ends"))};var K_={begin:NX,end:UI};const Jf=()=>{};function Yk(e){return typeof(e.getAttribute?e.getAttribute(Ma):null)=="string"}function FX(e){const t=e.getAttribute?e.getAttribute(j_):null,n=e.getAttribute?e.getAttribute(B_):null;return t&&n}function DX(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(it.replacementClass)}function UX(){return it.autoReplaceSvg===!0?Zf.replace:Zf[it.autoReplaceSvg]||Zf.replace}function jX(e){return wn.createElementNS("http://www.w3.org/2000/svg",e)}function BX(e){return wn.createElement(e)}function jI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?jX:BX}=t;if(typeof e=="string")return wn.createTextNode(e);const s=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){s.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){s.appendChild(jI(o,{ceFn:n}))}),s}function zX(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Zf={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(jI(n),t)}),t.getAttribute(Ma)===null&&it.keepOriginalSource){let n=wn.createComment(zX(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~q_(t).indexOf(it.replacementClass))return Zf.replace(e);const s=new RegExp("".concat(it.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((i,a)=>(a===it.replacementClass||a.match(s)?i.toSvg.push(a):i.toNode.push(a),i),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const r=n.map(o=>fd(o)).join(`
654`);t.setAttribute(Ma,""),t.innerHTML=r}};function Xk(e){e()}function BI(e,t){const n=typeof t=="function"?t:Jf;if(e.length===0)n();else{let s=Xk;it.mutateApproach===VY&&(s=ji.requestAnimationFrame||Xk),s(()=>{const r=UX(),o=K_.begin("mutate");e.map(r),o(),n()})}}let x_=!1;function zI(){x_=!0}function fy(){x_=!1}let Ah=null;function Jk(e){if(!Dk||!it.observeMutations)return;const{treeCallback:t=Jf,nodeCallback:n=Jf,pseudoElementsCallback:s=Jf,observeMutationsRoot:r=wn}=e;Ah=new Dk(o=>
654{if(x_)return;const i=Bi();oc(o).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!Yk(a.addedNodes[0])&&(it.searchPseudoElements&&s(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&it.searchPseudoElements&&s(a.target.parentNode),a.type==="attributes"&&Yk(a.target)&&~XY.indexOf(a.attributeName))if(a.attributeName==="class"&&FX(a.target)){const{prefix:c,iconName:u}=Cp(q_(a.target));a.target.setAttribute(j_,c||i),u&&a.target.setAttribute(B_,u)}else DX(a.target)&&n(a.target)})}),Qo&&Ah.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function qX(){Ah&&Ah.disconnect()}function HX(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((s,r)=>{const o=r.split(":"),i=o[0],a=o.slice(1);return i&&a.length>0&&(s[i]=a.join(":").trim()),s},{})),n}function VX(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),s=e.innerText!==void 0?e.innerText.trim():"";let r=Cp(q_(e));return r.prefix||(r.prefix=Bi()),t&&n&&(r.prefix=t,r.iconName=n),r.iconName&&r.prefix||(r.prefix&&s.length>0&&(r.iconName=mX(r.prefix,e.innerText)||W_(r.prefix,oy(e.innerText))),!r.iconName&&it.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}function WX(e){const t=oc(e.attributes).reduce((r,o)=>(r.name!=="class"&&r.name!=="style"&&(r[o.name]=o.value),r),{}),n=e.getAttribute("title"),s=e.getAttribute("data-fa-title-id");return it.autoA11y&&(n?t["aria-labelledby"]="".concat(it.replacementClass,"-title-").concat(s||Ku()):(t["aria-hidden"]="true",t.focusable="false")),t}function GX(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Zr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Zk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:s,rest:r}=VX(e),o=WX(e),i=ay("parseNodeAttributes",{},e);let a=t.styleParser?HX(e):[];return Ne({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:s,transform:Zr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:a,attributes:o}},i)}const{styles:KX}=Qr;function qI(e){const t=it.autoReplaceSvg==="nest"?Zk(e,{styleParser:!1}):Zk(e);return~t.extra.classes.indexOf(SI)?zi("generateLayersText",e,t):zi("generateSvgReplacementMutation",e,t)}function xX(){return[...EY,...Q0]}function Qk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Qo)return Promise.resolve();const n=wn.documentElement.classList,s=f=>n.add("".concat(Bk,"-").concat(f)),r=f=>n.remove("".concat(Bk,"-").concat(f)),o=it.autoFetchSvg?xX():mI.concat(Object.keys(KX));o.includes("fa")||o.push("fa");const i=[".".concat(SI,":not([").concat(Ma,"])")].concat(o.map(f=>".".concat(f,":not([").concat(Ma,"])"))).join(", ");if(i.length===0)return Promise.resolve();let a=[];try{a=oc(e.querySelectorAll(i))}catch{}if(a.length>0)s("pending"),r("complete");else return Promise.resolve();const c=K_.begin("onTree"),u=a.reduce((f,h)=>{try{const v=qI(h);v&&f.push(v)}catch(v){_I||v.name==="MissingIcon"&&console.error(v)}return f},[]);return new Promise((f,h)=>{Promise.all(u).then(v=>{BI(v,()=>{s("active"),s("complete"),r("pending"),typeof t=="function"&&t(),c(),f()})}).catch(v=>{c(),h(v)})})}function YX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;qI(e).then(n=>{n&&BI([n],t)})}function XX(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=(t||{}).icon?t:ly(t||{});let{mask:r}=n;return r&&(r=(r||{}).icon?r:ly(r||{})),e(s,Ne(Ne({},n),{},{mask:r}))}}const JX=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Zr,symbol:s=!1,mask:r=null,maskId:o=null,title:i=null,titleId:a=null,classes:c=[],attributes:u={},styles:f={}}=t;if(!e)return;const{prefix:h,iconName:v,icon:y}=e;return Tp(Ne({type:"icon"},e),()=>(Na("beforeDOMElementCreation",{iconDefinition:e,params:t}),it.autoA11y&&(i?u["aria-labelledby"]="".concat(it.replacementClass,"-title-").concat(a||Ku()):(u["aria-hidden"]="true",u.focusable="false")),G_({icons:{main:cy(y),mask:r?cy(r.icon):{found:!1,width:null,height:null,icon:{}}},prefix:h,iconName:v,transform:Ne(Ne({},Zr),n),symbol:s,title:i,maskId:o,titleId:a,extra:{attributes:u,styles:f,classes:c}})))};var ZX={mixout(){return{icon:XX(JX)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Qk,e.nodeCallback=YX,e}}},provides(e){e.i2svg=function(t){const{node:n=wn,callback:s=()=>{}}=t;return Qk(n,s)},e.generateSvgReplacementMutation=function(t,n){const{iconName:s,title:r,titleId:o,prefix:i,transform:a,symbol:c,mask:u,maskId:f,extra:h}=n;return new Promise((v,y)=>{Promise.all([uy(s,i),u.iconName?uy(u.iconName,u.prefix):Promise.resolve({foun
654d:!1,width:512,height:512,icon:{}})]).then(S=>{let[C,I]=S;v([t,G_({icons:{main:C,mask:I},prefix:i,iconName:s,transform:a,symbol:c,maskId:f,title:r,titleId:o,extra:h,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:s,main:r,transform:o,styles:i}=t;const a=kp(i);a.length>0&&(s.style=a);let c;return H_(o)&&(c=zi("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),n.push(c||r.icon),{children:n,attributes:s}}}},QX={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Tp({type:"layer"},()=>{Na("beforeDOMElementCreation",{assembler:e,params:t});let s=[];return e(r=>{Array.isArray(r)?r.map(o=>{s=s.concat(o.abstract)}):s=s.concat(r.abstract)}),[{tag:"span",attributes:{class:["".concat(it.cssPrefix,"-layers"),...n].join(" ")},children:s}]})}}}},eJ={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:s=[],attributes:r={},styles:o={}}=t;return Tp({type:"counter",content:e},()=>(Na("beforeDOMElementCreation",{content:e,params:t}),OX({content:e.toString(),title:n,extra:{attributes:r,styles:o,classes:["".concat(it.cssPrefix,"-layers-counter"),...s]}})))}}}},tJ={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Zr,title:s=null,classes:r=[],attributes:o={},styles:i={}}=t;return Tp({type:"text",content:e},()=>(Na("beforeDOMElementCreation",{content:e,params:t}),Kk({content:e,transform:Ne(Ne({},Zr),n),title:s,extra:{attributes:o,styles:i,classes:["".concat(it.cssPrefix,"-layers-text"),...r]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:s,transform:r,extra:o}=n;let i=null,a=null;if(hI){const c=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();i=u.width/c,a=u.height/c}return it.autoA11y&&!s&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,Kk({content:t.innerHTML,width:i,height:a,transform:r,title:s,extra:o,watchable:!0})])}}};const nJ=new RegExp('"',"ug"),e$=[1105920,1112319],t$=Ne(Ne(Ne(Ne({},{FontAwesome:{normal:"fas",400:"fas"}}),CY),qY),NY),hy=Object.keys(t$).reduce((e,t)=>(e[t.toLowerCase()]=t$[t],e),{}),sJ=Object.keys(hy).reduce((e,t)=>{const n=hy[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function rJ(e){const t=e.replace(nJ,""),n=uX(t,0),s=n>=e$[0]&&n<=e$[1],r=t.length===2?t[0]===t[1]:!1;return{value:oy(r?t[0]:t),isSecondary:s||r}}function oJ(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),s=parseInt(t),r=isNaN(s)?"normal":s;return(hy[n]||{})[r]||sJ[n]}function n$(e,t){const n="".concat(HY).concat(t.replace(":","-"));return new Promise((s,r)=>{if(e.getAttribute(n)!==null)return s();const i=oc(e.children).filter(v=>v.getAttribute(ty)===t)[0],a=ji.getComputedStyle(e,t),c=a.getPropertyValue("font-family"),u=c.match(xY),f=a.getPropertyValue("font-weight"),h=a.getPropertyValue("content");if(i&&!u)return e.removeChild(i),s();if(u&&h!=="none"&&h!==""){const v=a.getPropertyValue("content");let y=oJ(c,f);const{value:S,isSecondary:C}=rJ(v),I=u[0].startsWith("FontAwesome");let $=W_(y,S),k=$;if(I){const P=gX(S);P.iconName&&P.prefix&&($=P.iconName,y=P.prefix)}if($&&!C&&(!i||i.getAttribute(j_)!==y||i.getAttribute(B_)!==k)){e.setAttribute(n,k),i&&e.removeChild(i);const P=GX(),{extra:A}=P;A.attributes[ty]=t,uy($,y).then(R=>{const B=G_(Ne(Ne({},P),{},{icons:{main:R,mask:FI()},prefix:y,iconName:k,extra:A,watchable:!0})),N=wn.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(N,e.firstChild):e.appendChild(N),N.outerHTML=B.map(Y=>fd(Y)).join(`
655`),e.removeAttribute(n),s()}).catch(r)}else s()}else s()})}function iJ(e){return Promise.all([n$(e,"::before"),n$(e,"::after")])}function aJ(e){return e.parentNode!==document.head&&!~WY.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(ty)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function s$(e){if(Qo)return new Promise((t,n)=>{const s=oc(e.querySelectorAll("*")).filter(aJ).map(iJ),r=K_.begin("searchPseudoElements");zI(),Promise.all(s).then(()=>{r(),fy(),t()}).catch(()=>{r(),fy(),n()})})}var lJ={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=s$,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=wn}=t;it.searchPseudoElements&&s$(n)}}};let r$=!1;var cJ={mixout(){return{dom:{unwatch(){zI(),r$=!0}}}},hooks(){return{bootstrap(){Jk(ay("mutationObserverCallbacks",{}))},noAuto(){qX()},watch(e){const{observeMutationsRoot:t}=e;r$?fy():Jk(ay("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const o$=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,s)=>{const r=s.toLowerCase().split("-"),o=r[0];let i=r.slice(1).join("-");if(o&&i==="h")return n.flipX=!0,n;if(o&&i==="v")return n.flipY=!0,n;if(i=parseFloat(i),isNaN(i))return n;switch(o){case"grow":n.size=n.size+i;break;case"shrink":n.size=n.size-i;break;case"left":n.x=n.x-i;break;case"right":n.x=n.x+i;break;case"up":n.y=n.y-i;break;case"down":n.y=n.y+i;break;case"rotate":n.rotate=n.rotate+i;break}return n},t)};var uJ={mixout(){return{parse:{transform:e=>o$(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=o$(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:s,containerWidth:r,iconWidth:o}=t;const i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(s.x*32,", ").concat(s.y*32,") "),c="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),u="rotate(".concat(s.rotate," 0 0)"),f={transform:"".concat(a," ").concat(c," ").concat(u)},h={transform:"translate(".concat(o/2*-1," -256)")},v={outer:i,inner:f,path:h};return{tag:"g",attributes:Ne({},v.outer),children:[{tag:"g",attributes:Ne({},v.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Ne(Ne({},n.icon.attributes),v.path)}]}]}}}};const Qg={x:0,y:0,width:"100%",height:"100%"};function i$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function dJ(e){return e.tag==="g"?e.children:[e]}var fJ={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),s=n?Cp(n.split(" ").map(r=>r.trim())):FI();return s.prefix||(s.prefix=Bi()),e.mask=s,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:s,main:r,mask:o,maskId:i,transform:a}=t;const{width:c,icon:u}=r,{width:f,icon:h}
vendor: 4,992 bytes, lines 655-659
655=o,v=rX({transform:a,containerWidth:f,iconWidth:c}),y={tag:"rect",attributes:Ne(Ne({},Qg),{},{fill:"white"})},S=u.children?{children:u.children.map(i$)}:{},C={tag:"g",attributes:Ne({},v.inner),children:[i$(Ne({tag:u.tag,attributes:Ne(Ne({},u.attributes),v.path)},S))]},I={tag:"g",attributes:Ne({},v.outer),children:[C]},$="mask-".concat(i||Ku()),k="clip-".concat(i||Ku()),P={tag:"mask",attributes:Ne(Ne({},Qg),{},{id:$,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,I]},A={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:dJ(h)},P]};return n.push(A,{tag:"rect",attributes:Ne({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat($,")")},Qg)}),{children:n,attributes:s}}}},hJ={provides(e){let t=!1;ji.matchMedia&&(t=ji.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],s={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Ne(Ne({},s),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=Ne(Ne({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:Ne(Ne({},s),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:Ne(Ne({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ne(Ne({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(i),n.push({tag:"path",attributes:Ne(Ne({},s),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Ne(Ne({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:Ne(Ne({},s),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ne(Ne({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},pJ={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),s=n===null?!1:n===""?!0:n;return e.symbol=s,e}}}},mJ=[aX,ZX,QX,eJ,tJ,lJ,cJ,uJ,fJ,hJ,pJ];CX(mJ,{mixoutsTo:Js});Js.noAuto;const HI=Js.config,et=Js.library;Js.dom;const py=Js.parse;Js.findIconDefinition;Js.toHtml;const gJ=Js.icon;Js.layer;Js.text;Js.counter;/*!
656 * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
657 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
658 * Copyright 2024 Fonticons, Inc.
659 */const vJ={prefix:"fas",iconName:"at",icon:[512,512,[61946],"40","M256 64C150 64 64 150 64 256s86 192 192 192c17.7 0 32 14.3 32 32s-14.3 32-32 32C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256l0 32c0 53-43 96-96 96c-29.3 0-55.6-13.2-73.2-33.9C320 371.1 289.5 384 256 384c-70.7 0-128-57.3-128-128s57.3-128 128-128c27.9 0 53.7 8.9 74.7 24.1c5.7-5 13.1-8.1 21.3-8.1c17.7 0 32 14.3 32 32l0 80 0 32c0 17.7 14.3 32 32 32s32-14.3 32-32l0-32c0-106-86-192-192-192zm64 192a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},bJ={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-
6597.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},yJ=bJ,O5e={prefix:"fas",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l96 0 0 80c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L309.3 416 448 416c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0z"]},_J={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},wJ=_J,R5e={prefix:"fas",iconName:"door-open",icon:[576,512,[],"f52b","M320 32c0-9.9-4.5-19.2-12.3-25.2S289.8-1.4 280.2 1l-179.9 45C79 51.3 64 70.5 64 92.5L64 448l-32 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 192 0 32 0 0-32 0-448zM256 256c0 17.7-10.7 32-24 32s-24-14.3-24-32s10.7-32 24-32s24 14.3 24 32zm96-128l96 0 0 352c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0 0-320c0-35.3-28.7-64-64-64l-96 0 0 64z"]},SJ={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},VI=SJ,kJ={prefix:"fas",iconName:"face-smile-beam",icon:[512,512,[128522,"smile-beam"],"f5b8","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM164.1 325.5C182 346.2 212.6 368 256 368s74-21.8 91.9-42.5c5.8-6.7 15.9-7.4 22.6-1.6s7.4 15.9 1.6 22.6C349.8 372.1 311.1 400 256 400s-93.8-27.9-116.1-53.5c-5.8-6.7-5.1-16.8 1.6-22.6s16.8-5.1 22.6 1.6zm53.5-96.7s0 0 0 0c0 0 0 0 0 0l-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2c0 0 0 0 0 0c0 0 0 0 0 0s0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8c0 0 0 0 0 0s0 0 0 0zm160 0c0 0 0 0 0 0l-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2c0 0 0 0 0 0c0 0 0 0 0 0s0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8c0 0 0 0 0 0s0 0 0 0s0 0 0 0z"]},Ap=kJ,$J={prefix:"fas",iconName:"angles-down",icon:[448,512,["angle-double-down"],"f103","M246.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 402.7 361.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 210.7 361.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},WI=$J,CJ={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s1
6595.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},TJ=CJ,hd={prefix:"fas",iconName:"comments",icon:[640,512,[128490,61670],"f086","M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"]},Zs={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},AJ={prefix:"fas",iconName:"paw",icon:[512,512,[],"f1b0","M226.5 92.9c14.3 42.9-.3 86.2-32.6 96.8s-70.1-15.6-84.4-58.5s.3-86.2 32.6-96.8s70.1 15.6 84.4 58.5zM100.4 198.6c18.9 32.4 14.3 70.1-10.2 84.1s-59.7-.9-78.5-33.3S-2.7 179.3 21.8 165.3s59.7 .9 78.5 33.3zM69.2 401.2C121.6 259.9 214.7 224 256 224s134.4 35.9 186.8 177.2c3.6 9.7 5.2 20.1 5.2 30.5l0 1.6c0 25.8-20.9 46.7-46.7 46.7c-11.5 0-22.9-1.4-34-4.2l-88-22c-15.3-3.8-31.3-3.8-46.6 0l-88 22c-11.1 2.8-22.5 4.2-34 4.2C84.9 480 64 459.1 64 433.3l0-1.6c0-10.4 1.6-20.8 5.2-30.5zM421.8 282.7c-24.5-14-29.1-51.7-10.2-84.1s54-47.3 78.5-33.3s29.1 51.7 10.2 84.1s-54 47.3-78.5 33.3zM310.1 189.7c-32.3-10.6-46.9-53.9-32.6-96.8s52.1-69.1 84.4-58.5s46.9 53.9 32.6 96.8s-52.1 69.1-84.4 58.5z"]},GI={prefix:"fas",iconName:"reply",icon:[512,512,[61714,"mail-reply"],"f3e5","M205 34.8c11.5 5.1 19 16.6 19 29.2l0 64 112 0c97.2 0 176 78.8 176 176c0 113.3-81.5 163.9-100.2 174.1c-2.5 1.4-5.3 1.9-8.1 1.9c-10.9 0-19.7-8.9-19.7-19.7c0-7.5 4.3-14.4 9.8-19.5c9.4-8.8 22.2-26.4 22.2-56.7c0-53-43-96-96-96l-96 0 0 64c0 12.6-7.4 24.1-19 29.2s-25 3-34.4-5.4l-160-144C3.9 225.7 0 217.1 0 208s3.9-17.7 10.6-23.8l160-144c9.4-8.5 22.9-10.6 34.4-5.4z"]},EJ={prefix:"fas",iconName:"compass",icon:[512,512,[129517],"f14e","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm50.7-186.9L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},M5e={prefix:"fas",iconName:"laptop-code",icon:[640,512,[],"f5fc","M64 96c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 256-64 0 0-256L128 96l0 256-64 0L64 96zM0 403.2C0 392.6 8.6 384 19.2 384l601.6 0c10.6 0 19.2 8.6 19.2 19.2c0 42.4-34.4 76.8-76.8 76.8L76.8 480C34.4 480 0 445.6 0 403.2zM281 209l-31 31 31 31c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-48-48c-9.4-9.4-9.4-24.6 0-33.9l48-48c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9zM393 175l48 48c9.4 9.4 9.4 24.6 0 33.9l-48 48c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l31-31-31-31c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},KI={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},IJ={prefix:"fas",iconName:"people-group",icon:[640,512,[],"e533","M72 88a56 56 0 1 1 112 0A56 56 0 1 1 72 88zM64 245.7C54 256.9 48 271.8 48 288s6 31.1 16 42.3l0-84.7zm144.4-49.3C178.7 222.7 160 261.2 160 304c0 34.3 12 65.8 32 9
6590.5l0 21.5c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-26.8C26.2 371.2 0 332.7 0 288c0-61.9 50.1-112 112-112l32 0c24 0 46.2 7.5 64.4 20.3zM448 416l0-21.5c20-24.7 32-56.2 32-90.5c0-42.8-18.7-81.3-48.4-107.7C449.8 183.5 472 176 496 176l32 0c61.9 0 112 50.1 112 112c0 44.7-26.2 83.2-64 101.2l0 26.8c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32zm8-328a56 56 0 1 1 112 0A56 56 0 1 1 456 88zM576 245.7l0 84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM320 32a64 64 0 1 1 0 128 64 64 0 1 1 0-128zM240 304c0 16.2 6 31 16 42.3l0-84.7c-10 11.3-16 26.1-16 42.3zm144-42.3l0 84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM448 304c0 44.7-26.2 83.2-64 101.2l0 42.8c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-42.8c-37.8-18-64-56.5-64-101.2c0-61.9 50.1-112 112-112l32 0c61.9 0 112 50.1 112 112z"]},PJ={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M272 384c9.6-31.9 29.5-59.1 49.2-86.2c0 0 0 0 0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4c0 0 0 0 0 0c19.8 27.1 39.7 54.4 49.2 86.2l160 0zM192 512c44.2 0 80-35.8 80-80l0-16-160 0 0 16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"]},LJ={prefix:"fas",iconName:"flag",icon:[448,512,[127988,61725],"f024","M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32L0 64 0 368 0 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-128 64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-247.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48l0-16z"]},Ep={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},OJ={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M339.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L568.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S517.7-4.4 499.1 9.6L262.4 187.2c-24 18-38.2 46.1-38.4 76.1L339.3 367.1zm-19.6 25.4l-116-104.4C143.9 290.3 96 339.6 96 400c0 3.9 .2 7.8 .6 11.6C98.4 429.1 86.4 448 68.8 448L64 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},N5e=OJ,xI={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},RJ={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},MJ=RJ,NJ={prefix:"fas",iconName:"share-nodes",icon:[448,512,["share-alt"],"f1e0","M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z"]},FJ=NJ,YI={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192l42.7 0c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0L21.3 320C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7l42.7 0C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3l-213.3 0zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352l117.3 0C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7l-330.7 0c-14.7 0-26.7-11.9-26.7-26.7z"]},Y_={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},F5e={prefix:"fas",iconName:"hand",icon:[512,512,[129306,9995,"hand-paper"],"f256","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 208c0 8.8-7.2 16-16 16s-16-7.2
659-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 272c0 1.5 0 3.1 .1 4.6L67.6 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64l19.2 0c97.2 0 176-78.8 176-176l0-208c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 176c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208z"]},X_={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},DJ={prefix:"fas",iconName:"igloo",icon:[576,512,[],"f7ae","M320 33.8L320 160 48.5 160C100.2 82.8 188.1 32 288 32c10.8 0 21.5 .6 32 1.8zM352 160l0-120.9C424.9 55.7 487.2 99.8 527.5 160L352 160zM29.9 192L96 192l0 128L0 320c0-46 10.8-89.4 29.9-128zM192 320l-64 0 0-128 320 0 0 128-64 0 0 32 192 0 0 80c0 26.5-21.5 48-48 48l-176 0 0-128c0-35.3-28.7-64-64-64s-64 28.7-64 64l0 128L48 480c-26.5 0-48-21.5-48-48l0-80 192 0 0-32zm288 0l0-128 66.1 0c19.2 38.6 29.9 82 29.9 128l-96 0z"]},J_={prefix:"fas",iconName:"bookmark",icon:[384,512,[128278,61591],"f02e","M0 48V487.7C0 501.1 10.9 512 24.3 512c5 0 9.9-1.5 14-4.4L192 400 345.7 507.6c4.1 2.9 9 4.4 14 4.4c13.4 0 24.3-10.9 24.3-24.3V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48z"]},UJ={prefix:"fas",iconName:"folder",icon:[512,512,[128193,128447,61716,"folder-blank"],"f07b","M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8L243.2 57.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"]},D5e={prefix:"fas",iconName:"gauge",icon:[512,512,["dashboard","gauge-med","tachometer-alt-average"],"f624","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm320 96c0-26.9-16.5-49.9-40-59.3L280 88c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 204.7c-23.5 9.5-40 32.5-40 59.3c0 35.3 28.7 64 64 64s64-28.7 64-64zM144 176a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm-16 80a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm288 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM400 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},jJ={prefix:"fas",iconName:"pen-clip",icon:[512,512,["pen-alt"],"f305","M453.3 19.3l39.4 39.4c25 25 25 65.5 0 90.5l-52.1 52.1s0 0 0 0l-1-1s0 0 0 0l-16-16-96-96-17-17 52.1-52.1c25-25 65.5-25 90.5 0zM241 114.9c-9.4-9.4-24.6-9.4-33.9 0L105 217c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L173.1 81c28.1-28.1 73.7-28.1 101.8 0L288 94.1l17 17 96 96 16 16 1 1-17 17L229.5 412.5c-48 48-109.2 80.8-175.8 94.1l-25 5c-7.9 1.6-16-.9-21.7-6.6s-8.1-13.8-6.6-21.7l5-25c13.3-66.6 46.1-127.8 94.1-175.8L254.1 128 241 114.9z"]},U5e=jJ,Z_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},j5e={prefix:"fas",iconName:"key",icon:[512,512,[128273],"f084","M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"]},pd={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75l-8.7 0-32 0-96 0c-35.3 0-64 28.7-64 64l0 96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-128 8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-147.6c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4L480 32zm-64 76.7L416 240l0 131.3C357.2 317.8 280.5 288 200.7 288l-8.7 0 0-96 8.7 0c79.8 0 156.5-29.8 215.3-83.3z"]},md={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},BJ={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},Q_={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},zJ={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},qJ={prefix:"fas",iconName:"right-to-bracket",icon:[512,512,["sign-in-alt"],"f2f6","M217.9 105.9L340.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L217.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1L32 320c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM352 416l64 0c17.7 0 32-14.3 32-32l0-256c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c53 0 96 43 96 96l0 256c0 53-43 96-96 96l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},XI=qJ,B5e={prefix:"fas",iconName:"folder-open",icon:[576,512,[128194,128449,61717],"f07c","M88.7 223.8L0 375.8 0 96C0 60.7 28.7 32 64 32l117.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 28.3 18.7 45.3 18.7L416 96c35.3 0 64 28.7 64 64l0 32-336 0c-22.8 0-43.8 12.1-55.3 31.8zm27.6 16.1C122.1 230 132.6 224 144 224l400 0c11.5 0 22 6.1 27.7 16.1s5.7 22.2-.1 32.1l-112 192C453.9 474 443.4 480 432 480L32 480c-11.5 0-22-6.1-27.7-16.1s-5.7-22.2 .1-32.1l112-192z"]}
vendor: 6,550 bytes, line 659
659,JI={prefix:"fas",iconName:"city",icon:[640,512,[127961],"f64f","M480 48c0-26.5-21.5-48-48-48L336 0c-26.5 0-48 21.5-48 48l0 48-64 0 0-72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 72-64 0 0-72c0-13.3-10.7-24-24-24S64 10.7 64 24l0 72L48 96C21.5 96 0 117.5 0 144l0 96L0 464c0 26.5 21.5 48 48 48l256 0 32 0 96 0 160 0c26.5 0 48-21.5 48-48l0-224c0-26.5-21.5-48-48-48l-112 0 0-144zm96 320l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16zM240 416l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16zM128 400c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32zM560 256c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0zM256 176l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16zM112 160c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0zM256 304c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32zM112 320l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16zm304-48l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16zM400 64c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0zm16 112l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16z"]},HJ={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},z5e=HJ,q5e={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 64L208 64c-8.8 0-16 7.2-16 16l0 16-64 0 0-16c0-44.2 35.8-80 80-80L432 0c44.2 0 80 35.8 80 80l0 224c0 44.2-35.8 80-80 80l-16 0 0-64 16 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192zm64 32c0 17.7 14.3 32 32 32l192 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 192c-17.7 0-32 14.3-32 32z"]},VJ={prefix:"fas",iconName:"square-plus",icon:[448,512,[61846,"plus-square"],"f0fe","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM200 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},WJ=VJ,e2={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l96 0 32 0 208 0c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},GJ={prefix:"fas",iconName:"table-columns",icon:[512,512,["columns"],"f0db","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 64l0 256 160 0 0-256L64 160zm384 0l-160 0 0 256 160 0 0-256z"]},H5e=GJ,KJ={prefix:"fas",iconName:"angles-right",icon:[512,512,[187,"angle-double-right"],"f101","M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"]},ZI=KJ,xJ={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},YJ=xJ,V5e={prefix:"fas",iconName:"file-import",icon:[512,512,["arrow-right-to-file"],"f56f","M128 64c0-35.3 28.7-64 64-64L352 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64l-256 0c-35.3 0-64-28.7-64-64l0-112 174.1 0-39 39c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l39 39L128 288l0-224zm0 224l0 48L24 336c-13.3 0-24-10.7-24-24s10.7-24 24-24l104 0zM512 128l-128 0L384 0 512 128z"]},XJ={prefix:"fas",iconName:"box-open",icon:[640,512,[],"f49e","M58.9 42.1c3-6.1 9.6-9.6 16.3-8.7L320 64 564.8 33.4c6.7-.8 13.3 2.7 16.3 8.7l41.7 83.4c9 17.9-.6 39.6-19.8 45.1L439.6 217.3c-13.9 4-28.8-1.9-36.2-14.3L320 64 236.6 203c-7.4 12.4-22.3 18.3-36.2 14.3L37.1 170.6c-19.3-5.5-28.8-27.2-19.8-45.1L58.9 42.1zM321.1 128l54.9 91.4c14.9 24.8 44.6 36.6 72.5 28.6L576 211.6l0 167c0 22-15 41.2-36.4 46.6l-204.1 51c-10.2 2.6-20.9 2.6-31 0l-204.1-51C79 419.7 64 400.5 64 378.5l0-167L191.6 248c27.8 8 57.6-3.8 72.5-28.6L318.9 128l2.2 0z"]},W5e={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},G5e={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160 352 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l111.5 0c0 0 0 0 0 0l.4 0c17.7 0 32-14.3 32-32l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1L16 432c0 17.7 14.3 32 32 32s32-14.3 32-32l0-35.1 17.6 17.5c0 0 0 0 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.8c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-
6597.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352l34.4 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L48.4 288c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},QI={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32l432 0c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9 320 448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6l0-79.1L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]},eP={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},K5e={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},tP={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},JJ={prefix:"fas",iconName:"square-poll-horizontal",icon:[448,512,["poll-h"],"f682","M448 96c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320zM256 160c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32zm64 64c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l192 0zM192 352c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32z"]},Ip=JJ,ZJ={prefix:"fas",iconName:"basketball",icon:[512,512,[127936,"basketball-ball"],"f434","M86.6 64l85.2 85.2C194.5 121.7 208 86.4 208 48c0-14.7-2-28.9-5.7-42.4C158.6 15 119 35.5 86.6 64zM64 86.6C35.5 119 15 158.6 5.6 202.3C19.1 206 33.3 208 48 208c38.4 0 73.7-13.5 101.3-36.1L64 86.6zM256 0c-7.3 0-14.6 .3-21.8 .9C238 16 240 31.8 240 48c0 47.3-17.1 90.5-45.4 124L256 233.4 425.4 64C380.2 24.2 320.9 0 256 0zM48 240c-16.2 0-32-2-47.1-5.8C.3 241.4 0 248.7 0 256c0 64.9 24.2 124.2 64 169.4L233.4 256 172 194.6C138.5 222.9 95.3 240 48 240zm463.1 37.8c.6-7.2 .9-14.5 .9-21.8c0-64.9-24.2-124.2-64-169.4L278.6 256 340 317.4c33.4-28.3 76.7-45.4 124-45.4c16.2 0 32 2 47.1 5.8zm-4.7 31.9C492.9 306 478.7 304 464 304c-38.4 0-73.7 13.5-101.3 36.1L448 425.4c28.5-32.3 49.1-71.9 58.4-115.7zM340.1 362.7C317.5 390.3 304 425.6 304 464c0 14.7 2 28.9 5.7 42.4C353.4 497 393 476.5 425.4 448l-85.2-85.2zM317.4 340L256 278.6 86.6 448c45.1 39.8 104.4 64 169.4 64c7.3 0 14.6-.3 21.8-.9C274 496 272 480.2 272 464c0-47.3 17.1-90.5 45.4-124z"]},QJ=ZJ,t2={prefix:"fas",iconName:"wrench",icon:[512,512,[128295],"f0ad","M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7L336 192c-8.8 0-16-7.2-16-16l0-57.4c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},x5e={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},eZ={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},tZ={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-6
6595.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]},nZ={prefix:"fas",iconName:"bus",icon:[576,512,[128653],"f207","M288 0C422.4 0 512 35.2 512 80l0 16 0 32c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32l0 160c0 17.7-14.3 32-32 32l0 32c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-32-192 0 0 32c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-32c-17.7 0-32-14.3-32-32l0-160c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32c0 0 0 0 0 0l0-32s0 0 0 0l0-16C64 35.2 153.6 0 288 0zM128 160l0 96c0 17.7 14.3 32 32 32l112 0 0-160-112 0c-17.7 0-32 14.3-32 32zM304 288l112 0c17.7 0 32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-112 0 0 160zM144 400a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm288 0a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM384 80c0-8.8-7.2-16-16-16L208 64c-8.8 0-16 7.2-16 16s7.2 16 16 16l160 0c8.8 0 16-7.2 16-16z"]},sZ={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-242.7c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32L64 32zm0 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32L96 224c-17.7 0-32-14.3-32-32l0-64zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},rZ=sZ,oZ={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},nP=oZ,iZ={prefix:"fas",iconName:"cake-candles",icon:[448,512,[127874,"birthday-cake","cake"],"f1fd","M86.4 5.5L61.8 47.6C58 54.1 56 61.6 56 69.2L56 72c0 22.1 17.9 40 40 40s40-17.9 40-40l0-2.8c0-7.6-2-15-5.8-21.6L105.6 5.5C103.6 2.1 100 0 96 0s-7.6 2.1-9.6 5.5zm128 0L189.8 47.6c-3.8 6.5-5.8 14-5.8 21.6l0 2.8c0 22.1 17.9 40 40 40s40-17.9 40-40l0-2.8c0-7.6-2-15-5.8-21.6L233.6 5.5C231.6 2.1 228 0 224 0s-7.6 2.1-9.6 5.5zM317.8 47.6c-3.8 6.5-5.8 14-5.8 21.6l0 2.8c0 22.1 17.9 40 40 40s40-17.9 40-40l0-2.8c0-7.6-2-15-5.8-21.6L361.6 5.5C359.6 2.1 356 0 352 0s-7.6 2.1-9.6 5.5L317.8 47.6zM128 176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 48c-35.3 0-64 28.7-64 64l0 71c8.3 5.2 18.1 9 28.8 9c13.5 0 27.2-6.1 38.4-13.4c5.4-3.5 9.9-7.1 13-9.7c1.5-1.3 2.7-2.4 3.5-3.1c.4-.4 .7-.6 .8-.8l.1-.1s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0c3.1-3.2 7.4-4.9 11.9-4.8s8.6 2.1 11.6 5.4c0 0 0 0 0 0s0 0 0 0l.1 .1c.1 .1 .4 .4 .7 .7c.7 .7 1.7 1.7 3.1 3c2.8 2.6 6.8 6.1 11.8 9.5c10.2 7.1 23 13.1 36.3 13.1s26.1-6 36.3-13.1c5-3.5 9-6.9 11.8-9.5c1.4-1.3 2.4-2.3 3.1-3c.3-.3 .6-.6 .7-.7l.1-.1c3-3.5 7.4-5.4 12-5.4s9 2 12 5.4l.1 .1c.1 .1 .4 .4 .7 .7c.7 .7 1.7 1.7 3.1 3c2.8 2.6 6.8 6.1 11.8 9.5c10.2 7.1 23 13.1 36.3 13.1s26.1-6 36.3-13.1c5-3.5 9-6.9 11.8-9.5c1.4-1.3 2.4-2.3 3.1-3c.3-.3 .6-.6 .7-.7l.1-.1c2.9-3.4 7.1-5.3 11.6-5.4s8.7 1.6 11.9 4.8c0 0 0 0 0 0s0 0 0 0s0 0 0 0l.1 .1c.2 .2 .4 .4 .8 .8c.8 .7 1.9 1.8 3.5 3.1c3.1 2.6 7.5 6.2 13 9.7c11.2 7.3 24.9 13.4 38.4 13.4c10.7 0 20.5-3.9 28.8-9l0-71c0-35.3-28.7-64-64-64l0-48c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 48-64 0 0-48c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 48-64 0 0-48zM448 394.6c-8.5 3.3-18.2 5.4-28.8 5.4c-22.5 0-42.4-9.9-55.8-18.6c-4.1-2.7-7.8-5.4-10.9-7.8c-2.8 2.4-6.1 5-9.8 7.5C329.8 390 310.6 400 288 400s-41.8-10-54.6-18.9c-3.5-2.4-6.7-4.9-9.4-7.2c-2.7 2.3-5.9 4.7-9.4 7.2C201.8 390 182.6 400 160 400s-41.8-10-54.6-18.9c-3.7-2.6-7-5.2-9.8-7.5c-3.1 2.4-6.8 5.1-10.9 7.8C71.2 390.1 51.3 400 28.8 400c-10.6 0-20.3-2.2-28.8-5.4L0 480c0 17.7 14.3 32 32 32l384 0c17.7 0 32-14.3 32-32l0-85.4z"]},aZ=iZ,Pp={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]}
vendor: 6,111 bytes, line 659
659,Y5e={prefix:"fas",iconName:"circle-nodes",icon:[512,512,[],"e4e2","M418.4 157.9c35.3-8.3 61.6-40 61.6-77.9c0-44.2-35.8-80-80-80c-43.4 0-78.7 34.5-80 77.5L136.2 151.1C121.7 136.8 101.9 128 80 128c-44.2 0-80 35.8-80 80s35.8 80 80 80c12.2 0 23.8-2.7 34.1-7.6L259.7 407.8c-2.4 7.6-3.7 15.8-3.7 24.2c0 44.2 35.8 80 80 80s80-35.8 80-80c0-27.7-14-52.1-35.4-66.4l37.8-207.7zM156.3 232.2c2.2-6.9 3.5-14.2 3.7-21.7l183.8-73.5c3.6 3.5 7.4 6.7 11.6 9.5L317.6 354.1c-5.5 1.3-10.8 3.1-15.8 5.5L156.3 232.2z"]},lZ={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Lp=lZ,cZ={prefix:"fas",iconName:"check-double",icon:[448,512,[],"f560","M342.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 178.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l80 80c12.5 12.5 32.8 12.5 45.3 0l160-160zm96 128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 402.7 54.6 297.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l256-256z"]},gd={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},uZ={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},n2=uZ,X5e={prefix:"fas",iconName:"keyboard",icon:[576,512,[9e3],"f11c","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm16 64l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM64 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80-176c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM160 336c0-8.8 7.2-16 16-16l224 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-224 0c-8.8 0-16-7.2-16-16l0-32zM272 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM256 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM368 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM352 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM464 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM448 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z"]},J5e={prefix:"fas",iconName:"sliders",icon:[512,512,["sliders-h"],"f1de","M0 416c0 17.7 14.3 32 32 32l54.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-246.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 384c-17.7 0-32 14.3-32 32zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32-80c-32.8 0-61 19.7-73.3 48L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l246.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48l54.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-54.7 0c-12.3-28.3-40.5-48-73.3-48zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm73.3-64C253 35.7 224.8 16 192 16s-61 19.7-73.3 48L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l86.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 128c17.7 0 32-14.3 32-32s-14.3-32-32-32L265.3 64z"]},sP={prefix:"fas",iconName:"folder-tree",icon:[576,512,[],"f802","M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32l0 96L0 384c0 35.3 28.7 64 64 64l192 0 0-64L64 384l0-224 192 0 0-64L64 96l0-64zM288 192c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32l-98.7 0c-8.5 0-16.6-3.4-22.6-9.4L409.4 9.4c-6-6-14.1-9.4-22.6-9.4L320 0c-17.7 0-32 14.3-32 32l0 160zm0 288c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32l-98.7 0c-8.5 0-16.6-3.4-22.6-9.4l-13.3-13.3c-6-6-14.1-9.4-22.6-9.4L320 288c-17.7 0-32 14.3-32 32l0 160z"]},dZ={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},fZ=dZ,Z5e={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-6
6595.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},hZ={prefix:"fas",iconName:"eye-dropper",icon:[512,512,["eye-dropper-empty","eyedropper"],"f1fb","M341.6 29.2L240.1 130.8l-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4L482.8 170.4c39-39 39-102.2 0-141.1s-102.2-39-141.1 0zM55.4 323.3c-15 15-23.4 35.4-23.4 56.6l0 42.4L5.4 462.2c-8.5 12.7-6.8 29.6 4 40.4s27.7 12.5 40.4 4L89.7 480l42.4 0c21.2 0 41.6-8.4 56.6-23.4L309.4 335.9l-45.3-45.3L143.4 411.3c-3 3-7.1 4.7-11.3 4.7L96 416l0-36.1c0-4.2 1.7-8.3 4.7-11.3L221.4 247.9l-45.3-45.3L55.4 323.3z"]},pZ={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},rP=pZ,Q5e={prefix:"fas",iconName:"tower-broadcast",icon:[576,512,["broadcast-tower"],"f519","M80.3 44C69.8 69.9 64 98.2 64 128s5.8 58.1 16.3 84c6.6 16.4-1.3 35-17.7 41.7s-35-1.3-41.7-17.7C7.4 202.6 0 166.1 0 128S7.4 53.4 20.9 20C27.6 3.6 46.2-4.3 62.6 2.3S86.9 27.6 80.3 44zM555.1 20C568.6 53.4 576 89.9 576 128s-7.4 74.6-20.9 108c-6.6 16.4-25.3 24.3-41.7 17.7S489.1 228.4 495.7 212c10.5-25.9 16.3-54.2 16.3-84s-5.8-58.1-16.3-84C489.1 27.6 497 9 513.4 2.3s35 1.3 41.7 17.7zM352 128c0 23.7-12.9 44.4-32 55.4L320 480c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-296.6c-19.1-11.1-32-31.7-32-55.4c0-35.3 28.7-64 64-64s64 28.7 64 64zM170.6 76.8C163.8 92.4 160 109.7 160 128s3.8 35.6 10.6 51.2c7.1 16.2-.3 35.1-16.5 42.1s-35.1-.3-42.1-16.5c-10.3-23.6-16-49.6-16-76.8s5.7-53.2 16-76.8c7.1-16.2 25.9-23.6 42.1-16.5s23.6 25.9 16.5 42.1zM464 51.2c10.3 23.6 16 49.6 16 76.8s-5.7 53.2-16 76.8c-7.1 16.2-25.9 23.6-42.1 16.5s-23.6-25.9-16.5-42.1c6.8-15.6 10.6-32.9 10.6-51.2s-3.8-35.6-10.6-51.2c-7.1-16.2 .3-35.1 16.5-42.1s35.1 .3 42.1 16.5z"]},oP={prefix:"fas",iconName:"stop",icon:[384,512,[9209],"f04d","M0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"]},iP={prefix:"fas",iconName:"upload",icon:[512,512,[],"f093","M288 109.3L288 352c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-242.7-73.4 73.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l128-128c12.5-12.5 32.8-12.5 45.3 0l128 128c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L288 109.3zM64 352l128 0c0 35.3 28.7 64 64 64s64-28.7 64-64l128 0c35.3 0 64 28.7 64 64l0 32c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64l0-32c0-35.3 28.7-64 64-64zM432 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},mZ={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},eEe=mZ,gZ={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},vd=gZ,ic={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},s2={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]},vZ={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},aP=vZ,bZ={prefix:"fas",iconName:"bars-staggered",icon:[512,512,["reorder","stream"],"f550","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},lP=bZ,yZ={prefix:"fas",iconName:"ice-cream",icon:[448,512,[127848],"f810","M367.1 160c.6-5.3 .9-10.6 .9-16C368 64.5 303.5 0 224 0S80 64.5 80 144c0 5.4 .3 10.7 .9 16l-.9 0c-26.5 0-48 21.5-48 48s21.5 48 48 48l53.5 0 181 0 53.5 0c26.5 0 48-21.5 48-48s-21.5-48-48-48l-.9 0zM96 288L200.8 497.7c4.4 8.8 13.3 14.3 23.2 14.3s18.8-5.5 23.2-14.3L352 288 96 288z"]},r2={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},tEe=r2,_Z={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},wZ={prefix:"fas",iconName:"font",icon:[448,512,[],"f031","M254 52.8C249.3 40.3 237.3 32 224 32s-25.3 8.3-30 20.8L57.8 416 32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-1.8 0 18-48 159.6 0 18 48-1.8 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-25.8 0L254 52.8zM279.8 304l-111.6 0L224 155.1 279.8 304z"]},SZ={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Ba=SZ,cP={prefix:"fas",iconName:"file-pen",icon:[576,512,[128221,"file-edit"],"f31c","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 125.7-86.8 86.8c-10.3 10.3-17.5 23.1-21 37.2l-18.7 74.9c-2.3 9.2-1.8 18.8 1.3 27.5L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM549.8 235.7l14.4 14.4c15.6 15.6 15.6 40.9 0 56.6l-29.4 29.4-71-71 29.4-29.4c15.6-15.6 40.9-15.6 56.6 0zM311.9 417L441.1 287.8l71 71L382.9 487.9c-4.1 4.1-9.2 7-14.9 8.4l-60.1 15c-5.5 1.4-11.2-.2-15.2-4.2s-5.6-9.7-4.2-15.2l15-60.1c1.4-5.6 4.3-10.8 8.4-14.9z"]},kZ={prefix:"fas",iconName:"suitcase-rolling",icon:[384,512,[],"f5c1","M144 56c0-4.4 3.6-8 8-8l80 0c4.4 0 8 3.6 8 8l0 72-96 0 0-72zm176 72l-32 0 0-72c0-30.9-25.1-56-56-56L152 0C121.1 0 96 25.1 96 56l0 72-32 0c-35.3 0-64 28.7-64 64L0 416c0 35.3 28.7 64 64 64c0 17.7 14.3 32 32 32s32-14.3 32-32l128 0c0 17.7 14.3 32 32 32s32-14.3 32-32c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64zM112 224l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 128l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]}
vendor: 4,322 bytes, line 659
659,za={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},o2={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},$Z={prefix:"fas",iconName:"circle-half-stroke",icon:[512,512,[9680,"adjust"],"f042","M448 256c0-106-86-192-192-192l0 384c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},nEe=$Z,i2={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},CZ={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Xn=CZ,qa={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},bd={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},a2={prefix:"fas",iconName:"retweet",icon:[576,512,[],"f079","M272 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-112 0c-17.7 0-32-14.3-32-32l0-128 32 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-64-64c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l32 0 0 128c0 53 43 96 96 96l112 0zM304 96c-17.7 0-32 14.3-32 32s14.3 32 32 32l112 0c17.7 0 32 14.3 32 32l0 128-32 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8l-32 0 0-128c0-53-43-96-96-96L304 96z"]},TZ={prefix:"fas",iconName:"face-smile",icon:[512,512,[128578,"smile"],"f118","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM164.1 325.5C182 346.2 212.6 368 256 368s74-21.8 91.9-42.5c5.8-6.7 15.9-7.4 22.6-1.6s7.4 15.9 1.6 22.6C349.8 372.1 311.1 400 256 400s-93.8-27.9-116.1-53.5c-5.8-6.7-5.1-16.8 1.6-22.6s16.8-5.1 22.6 1.6zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},AZ=TZ,l2={prefix:"fas",iconName:"thumbtack",icon:[384,512,[128204,128392,"thumb-tack"],"f08d","M32 32C32 14.3 46.3 0 64 0L320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-29.5 0 11.4 148.2c36.7 19.9 65.7 53.2 79.5 94.7l1 3c3.3 9.8 1.6 20.5-4.4 28.8s-15.7 13.3-26 13.3L32 352c-10.3 0-19.9-4.9-26-13.3s-7.7-19.1-4.4-28.8l1-3c13.8-41.5 42.8-74.8 79.5-94.7L93.5 64 64 64C46.3 64 32 49.7 32 32zM160 384l64 0 0 96c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-96z"]},EZ={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},sEe={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8
659C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},IZ={prefix:"fas",iconName:"angles-left",icon:[512,512,[171,"angle-double-left"],"f100","M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"]},PZ=IZ,uP={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M75 75L41 41C25.9 25.9 0 36.6 0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1c0-13.3-10.7-24-24-24z"]},LZ=uP,rEe={prefix:"fas",iconName:"file-export",icon:[576,512,["arrow-right-from-file"],"f56e","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 128-168 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l168 0 0 112c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zM384 336l0-48 110.1 0-39-39c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9l-80 80c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l39-39L384 336zm0-208l-128 0L256 0 384 128z"]},c2={prefix:"fas",iconName:"music",icon:[512,512,[127925],"f001","M499.1 6.3c8.1 6 12.9 15.6 12.9 25.7l0 72 0 264c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6L448 147 192 223.8 192 432c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6L128 200l0-72c0-14.1 9.3-26.6 22.8-30.7l320-96c9.7-2.9 20.2-1.1 28.3 5z"]},oEe={prefix:"fas",iconName:"broom",icon:[576,512,[129529],"f51a","M566.6 54.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192-34.7-34.7c-4.2-4.2-10-6.6-16-6.6c-12.5 0-22.6 10.1-22.6 22.6l0 29.1L364.3 320l29.1 0c12.5 0 22.6-10.1 22.6-22.6c0-6-2.4-11.8-6.6-16l-34.7-34.7 192-192zM341.1 353.4L222.6 234.9c-42.7-3.7-85.2 11.7-115.8 42.3l-8 8C76.5 307.5 64 337.7 64 369.2c0 6.8 7.1 11.2 13.2 8.2l51.1-25.5c5-2.5 9.5 4.1 5.4 7.9L7.3 473.4C2.7 477.6 0 483.6 0 489.9C0 502.1 9.9 512 22.1 512l173.3 0c38.8 0 75.9-15.4 103.4-42.8c30.6-30.6 45.9-73.1 42.3-11
6595.8z"]},OZ={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},dP=OZ,RZ={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},MZ={prefix:"fas",iconName:"rss",icon:[448,512,["feed"],"f09e","M0 64C0 46.3 14.3 32 32 32c229.8 0 416 186.2 416 416c0 17.7-14.3 32-32 32s-32-14.3-32-32C384 253.6 226.4 96 32 96C14.3 96 0 81.7 0 64zM0 416a64 64 0 1 1 128 0A64 64 0 1 1 0 416zM32 160c159.1 0 288 128.9 288 288c0 17.7-14.3 32-32 32s-32-14.3-32-32c0-123.7-100.3-224-224-224c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Op={prefix:"fas",iconName:"user-plus",icon:[640,512,[],"f234","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM504 312l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},Rp={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},NZ={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},FZ=NZ,iEe={prefix:"fas",iconName:"database",icon:[448,512,[],"f1c0","M448 80l0 48c0 44.2-100.3 80-224 80S0 172.2 0 128L0 80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6L448 288c0 44.2-100.3 80-224 80S0 332.2 0 288L0 186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6l0 85.9c0 44.2-100.3 80-224 80S0 476.2 0 432l0-85.9z"]},DZ={prefix:"fas",iconName:"align-right",icon:[448,512,[],"f038","M448 64c0 17.7-14.3 32-32 32L192 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},UZ={prefix:"fas",iconName:"magnifying-glass-plus",icon:[512,512,["search-plus"],"f00e","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM184 296c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64 64 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-64 0 0-64c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64-64 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l64 0 0 64z"]},fP=UZ,aEe={prefix:"fas",iconName:"thumbs-up",icon:[512,512,[128077,61575],"f164","M313.4 32.9c26 5.2 42.9 30.5 37.7 56.5l-2.3 11.4c-5.3 26.7-15.1 52.1-28.8 75.2l144 0c26.5 0 48 21.5 48 48c0 18.5-10.5 34.6-25.9 42.6C497 275.4 504 288.9 504 304c0 23.4-16.8 42.9-38.9 47.1c4.4 7.3 6.9 15.8 6.9 24.9c0 21.3-13.9 39.4-33.1 45.6c.7 3.3 1.1 6.8 1.1 10.4c0 26.5-21.5 48-48 48l-97.5 0c-19 0-37.5-5.6-53.3-16.1l-38.5-25.7C176 420.4 160 390.4 160 358.3l0-38.3 0-48 0-24.9c0-29.2 13.3-56.7 36-75l7.4-5.9c26.5-21.2 44.6-51 51.2-84.2l2.3-11.4c5.2-26 30.5-42.9 56.5-37.7zM32 192l64 0c17.7 0 32 14.3 32 32l0 224c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32L0 224c0-17.7 14.3-32 32-32z"]},jZ={prefix:"fas",iconName:"note-sticky",icon:[448,512,[62026,"sticky-note"],"f249","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l224 0 0-112c0-26.5 21.5-48 48-48l112 0 0-224c0-35.3-28.7-64-64-64L64 32zM448 352l-45.3 0L336 352c-8.8 0-16 7.2-16 16l0 66.7 0 45.3 32-32 64-64 32-32z"]},BZ=jZ,zZ={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M0 128C0 92.7 28.7 64 64 64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2l0 256c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1l0-17.1 0-128 0-17.1 14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z"]};et.add(Xn);const qZ=1,Lu=1,hP=new Date("2022-08-04"),pP=1e3,my=1001,Rs={dirty:!1,flagStorage:{updateCounter:0,configMigration:0,reset:0},prefsStorage:{_journal:[],simple:{dontShowUpdateNotifs:!1,collapseN
659av:!1,muteFilters:{}},collections:{pinnedStatusActions:["reply","retweet","favorite","emoji"],pinnedNavItems:["home","dms","chats"]}},raw:null,cache:null},mP={...Rs.flagStorage,updateCounter:qZ},u2=(e,t,n)=>{const s=e.indexOf(t),r=s+n,o=[...e];return o.splice(s,1),o.splice(Z.clamp(r,0,o.length+1),0,t),o},a$=(e,t)=>({...e,_user:t,_timestamp:Date.now(),_version:Lu}),l$=e=>e._timestamp>0&&e._version>0,c$=e=>{e.prefsStorage=e.prefsStorage||{simple:{},collections:{}},Object.entries(Rs.prefsStorage.simple).forEach(([t,n])=>{typeof n=="number"||typeof n=="boolean"||typeof n=="object"&&n!=null||(console.warn(`Preference simple.${t} as invalid type, reinitializing`),Z.set(e.prefsStorage.simple,t,Rs.prefsStorage.simple[t]))}),Object.entries(Rs.prefsStorage.collections).forEach(([t,n])=>{Array.isArray(n)||(console.warn(`Preference collections.${t} as invalid type, reinitializing`),Z.set(e.prefsStorage.collections,t,Rs.prefsStorage.collections[t]))})},gP=(e,t,n)=>{const s={recent:null,stale:null,needUpload:!1},r=l$(e||{}),o=l$(t||{});!o&&r?(s.needUpload=!0,console.debug("Nothing valid stored on server, assuming cache to be source of truth"),s.recent=e,s.stale=t):!r&&o?(console.debug("Valid storage on server found, no local cache found, using live as source of truth"),s.recent=t,s.stale=e):r&&o?(console.debug("Both sources have valid data, figuring things out..."),t._timestamp===e._timestamp&&t._version===e._version?(console.debug("Same version/timestamp on both source, source of truth irrelevant"),s.recent=e,s.stale=t):(console.debug("Different timestamp, figuring out which one is more recent"),t._timestamp<e._timestamp?(s.recent=e,s.stale=t):(s.recent=t,s.stale=e))):(console.debug("Both sources are invalid, start from scratch"),s.needUpload=!0);const i=(a,c)=>({_user:a._user??c._user,_version:a._version??c._version,_timestamp:a._timestamp??c._timestamp,needUpload:c.needUpload??a.needUpload,prefsStorage:Z.merge(a.prefsStorage,c.prefsStorage),flagStorage:Z.merge(a.flagStorage,c.flagStorage)});return s.recent=n?s.recent:s.recent&&i(Rs,s.recent),s.stale=n?s.stale:s.stale&&i(Rs,s.stale),s},vP=(e,t)=>Array.from(new Set([...Object.keys(Mt((e||{}).flagStorage||{})),...Object.keys(Mt((t||{}).flagStorage||{}))])),bP=(e,t,n)=>t.flagStorage?e.flagStorage?Object.fromEntries(n.map(s=>{const r=e.flagStorage[s],o=t.flagStorage[s];return[s,Number((r>o?r:o)||0)]})):t.flagStorage:e.flagStorage,yP=(...e)=>{const t=Z.flatten(e.map(r=>Array.isArray(r)?r:[])).filter(r=>Object.prototype.hasOwnProperty.call(r,"path")&&Object.prototype.hasOwnProperty.call(r,"operation")&&Object.prototype.hasOwnProperty.call(r,"args")&&Object.prototype.hasOwnProperty.call(r,"timestamp")),n=Z.groupBy(t,"path"),s=Object.entries(n).map(([r,o])=>{if(o.sort((i,a)=>i.timestamp>a.timestamp?1:-1),r.startsWith("collections")){const i=Z.findLastIndex(o,({operation:c})=>c==="removeFromCollection");let a;return i>0?a=o.slice(i):a=o,Z.uniqWith(a,(c,u)=>c.path!==u.path||c.operation!==u.operation?!1:c.operation==="addToCollection"?c.args[0]===u.args[0]:!1)}else return r.startsWith("simple")?Z.takeRight(o):o});return Z.flatten(s).sort((r,o)=>r.timestamp>o.timestamp?1:-1)},_P=(e,t)=>{if(!t)return e;if(!e)return t;const{_journal:n,...s}=e,{_journal:r}=t,o={...s},i=yP(r,n);return i.forEach(({path:a,operation:c,args:u})=>{if(a.startsWith("_"))throw new Error(`journal contains entry to edit internal (starts with _) field '${a}', something is incorrect here, ignoring.`);switch(c){case"set":if(a.startsWith("collections")||a.startsWith("objectCollections"))throw new Error('Illegal operation "set" on a collection');if(a.split(/\./g).length<=1)throw new Error(`Calling set on depth <= 1 (path: ${a}) is not allowed`);Z.set(o,a,u[0]);break;case"unset":if(a.startsWith("collections")||a.startsWith("objectCollections"))throw new Error('Illegal operation "unset" on a collection');if(a.split(/\./g).length<=2)throw new Error(`Calling unset on depth <= 2 (path: ${a})  is not allowed`);Z.unset(o,a);break;case"addToCollection":Z.set(o,a,Array.from(new Set(Z.get(o,a)).add(u[0])));break;case"removeFromCollection":{const f=new Set(Z.get(o,a));f.delete(u[0]),Z.set(o,a,Array.from(f));break}case"reorderCollection":{const[f,h]=u;Z.set(o,a,u2(Z.get(o,a),f,h));break}default:throw new Error(`Unknown journal operation: '${c}', did we forget to run reverse migrations beforehand?`)}}),{...o,_journal:i}},wP=(e,t=Rs.flagStorage)=>{let n={...e};const s=Object.keys(e);if(e.reset>=pP&&e.reset<=my){console.debug("Received command to trim the flags");const r=new Set(Object.keys(t));n={}
659,s.forEach(o=>{r.has(o)&&(n[o]=e[o])}),e.reset===my&&(console.debug("Received command to reset the flags"),Object.keys(t).forEach(o=>{n[o]=0}))}else e.reset>0&&e.reset<9e3&&(console.debug("Received command to reset the flags"),s.forEach(r=>{n[r]=0}));return n.reset=0,n},SP=e=>e&&(e._version<Lu&&(console.debug("Local cached data has older version, seeing if there any migrations that can be applied"),console.debug("No migrations found")),e._version>Lu&&(console.debug("Local cached data has newer version, seeing if there any reverse migrations that can be applied"),window._PLEROMA_HOTPATCH&&window._PLEROMA_HOTPATCH.reverseMigrations)?(console.debug("Found hotpatch migration, applying"),window._PLEROMA_HOTPATCH.reverseMigrations.call({},"serverSideStorage",{from:e._version,to:Lu},e)):e),_n=vs("serverSideStorage",{state(){return Z.cloneDeep(Rs)},actions:{setFlag({flag:e,value:t}){this.flagStorage[e]=t,this.dirty=!0},setPreference({path:e,value:t}){if(e.startsWith("_"))throw new Error(`Tried to edit internal (starts with _) field '${e}', ignoring.`);if(e.startsWith("collections")||e.startsWith("objectCollections"))throw new Error(`Invalid operation 'set' for collection field '${e}', ignoring.`);if(e.split(/\./g).length<=1)throw new Error(`Calling set on depth <= 1 (path: ${e}) is not allowed`);if(e.split(/\./g).length>3)throw new Error(`Calling set on depth > 3 (path: ${e})  is not allowed`);Z.set(this.prefsStorage,e,t),this.prefsStorage._journal=[...this.prefsStorage._journal,{operation:"set",path:e,args:[t],timestamp:Date.now()}],this.dirty=!0},unsetPreference({path:e,value:t}){if(e.startsWith("_"))throw new Error(`Tried to edit internal (starts with _) field '${e}', ignoring.`);if(e.startsWith("collections")||e.startsWith("objectCollections"))throw new Error(`Invalid operation 'unset' for collection field '${e}', ignoring.`);if(e.split(/\./g).length<=2)throw new Error(`Calling unset on depth <= 2 (path: ${e})  is not allowed`);if(e.split(/\./g).length>3)throw new Error(`Calling unset on depth > 3 (path: ${e})  is not allowed`);Z.unset(this.prefsStorage,e,t),this.prefsStorage._journal=[...this.prefsStorage._journal,{operation:"unset",path:e,args:[],timestamp:Date.now()}],this.dirty=!0},addCollectionPreference({path:e,value:t}){if(e.startsWith("_"))throw new Error(`tried to edit internal (starts with _) field '${e}'`);if(e.startsWith("collections")){const n=new Set(Z.get(this.prefsStorage,e));n.add(t),Z.set(this.prefsStorage,e,[...n])}else if(e.startsWith("objectCollections")){const{_key:n}=t;if(!n&&typeof n!="string")throw new Error("Object for storage is missing _key field!");const s=new Set(Z.get(this.prefsStorage,e+".index"));s.add(n),Z.set(this.prefsStorage,e+".index",[...s]),Z.set(this.prefsStorage,e+".data."+n,t)}this.prefsStorage._journal=[...this.prefsStorage._journal,{operation:"addToCollection",path:e,args:[t],timestamp:Date.now()}],this.dirty=!0},removeCollectionPreference({path:e,value:t}){if(e.startsWith("_"))throw new Error(`tried to edit internal (starts with _) field '${e}', ignoring.`);const n=new Set(Z.get(this.prefsStorage,e));n.delete(t),Z.set(this.prefsStorage,e,[...n]),this.prefsStorage._journal=[...this.prefsStorage._journal,{operation:"removeFromCollection",path:e,args:[t],timestamp:Date.now()}],this.dirty=!0},reorderCollectionPreference({path:e,value:t,movement:n}){if(e.startsWith("_"))throw new Error(`tried to edit internal (starts with _) field '${e}', ignoring.`);const s=Z.get(this.prefsStorage,e),r=u2(s,t,n);Z.set(this.prefsStorage,e,r),this.prefsStorage._journal=[...this.prefsStorage._journal,{operation:"arrangeCollection",path:e,args:[t],timestamp:Date.now()}],this.dirty=!0},updateCache({username:e}){this.prefsStorage._journal=yP(this.prefsStorage._journal),this.cache=a$({flagStorage:Mt(this.flagStorage),prefsStorage:Mt(this.prefsStorage)},e)},clearServerSideStorage(){const e={...Z.cloneDeep(Rs)};Object.keys(this).forEach(t=>{this[t]=e[t]})},setServerSideStorage(e){const t=e.storage;this.raw=t;let n=this.cache;n&&n._user!==e.fqn&&(console.warn("Cache belongs to another user! reinitializing local cache!"),n=null),n=SP(n);let{recent:s,stale:r,needUpload:o}=gP(n,t);const i=e.created_at>hP,a=i?mP:Rs.flagStorage;let c=!1;if(s===null&&(console.debug(`Data is empty, initializing for ${i?"new":"existing"} user`),s=a$({flagStorage:{...a},prefsStorage:{...Rs.prefsStorage}})),!o&&s&&r){console.debug("Checking if data needs merging...");const{_timestamp:v,_version:y,...S}=s,{_timestamp:C,_version:I,...$}=r;c=!Z.isEqual(S,$),console.debug(`Data ${c?"needs":"doesn't need"} merging`)}const u=vP(s,r);let f,h;c?(console.debug("Merging the data..."),f=bP(s,r,u),c$(s),c$(r),h=_P(s.prefsStorage,r.prefsStorage)):(f=s.flagStorage,h=s.prefsStorage),f=wP(f),s.flagStorage={...a,...f},s.prefsStorage={...Rs.prefsStorage,...h},this.dirty=c||o,this.cache=s,r&&s&&!this.dirty&&(this.cache._timestamp=Math.min(r._timestamp,s._timestamp)),this.flagStorage=this.cache.flagStorage,this.prefsStorage=this.cache.prefsStorage},pushServerSideStorage({force:e=!1}={}){if(!(this.dirty||e))return;this.updateCache({username:window.vuex.state.users.currentUser.fqn});const n={pleroma_settings_store:{"pleroma-fe":this.cache}};window.vuex.state.api.backendInteractor.updateProfileJSON({params:n}).then(s=>{this.setServerSideStorage(s),this.dirty=!1})}}}),HZ=Object.freeze(Object.defineProperty({__proto__:null,COMMAND_TRIM_FLAGS:pP,COMMAND_TRIM_FLAGS_AND_RESET:my,NEW_USER_DATE:hP,VERSION:Lu,_doMigrations:SP,_getAllFlags:vP,_getRecentData:gP,_mergeFlags:bP,_mergePrefs:_P,_moveItemInArray:u2,_resetFlags:wP,defaultState:Rs,newUserFlags:mP,useServerSideStorageStore:_n},Symbol.toStringTag,{value:"Module"}));var e1,u$;function kP(){if(u$)return e1;u$=1;function e(t,n){for(var s=-1,r=t==null?0:t.length,o=0,i=[];++s<r;){var a=t[s];n(a,s,t)&&(i[o++]=a)}return i}return e1=e,e1}var t1,d$;function VZ(){if(d$)return t1;d$=1;function e(t){return function(n,s,r){for(var o=-1,i=Object(n),a=r(n),c=a.length;c--;){var u=a[t?c:++o];if(s(i[u],u,i)===!1)break}return n}}return t1=e,t1}var n1,f$;function $P(){if(f$)return n1;f$=1;var e=VZ(),t=e();return n1=t,n1}var s1,h$;function WZ(){if(h$)return s1;h$=1;function e(t,n){for(var s=-1,r=Array(t);++s<t;)r[s]=n(s);return r}return s1=e,s1}var r1,p$;function CP(){if(p$)return r1;p$=1;var e=typeof ps=="object"&&ps&&ps.Object===Object&&ps;return r1=e,r1}var o1,m$;function oo(){if(m$)return o1;m$=1;
vendor: 11,561 bytes, line 659
659var e=CP(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return o1=n,o1}var i1,g$;function Mp(){if(g$)return i1;g$=1;var e=oo(),t=e.Symbol;return i1=t,i1}var a1,v$;function GZ(){if(v$)return a1;v$=1;var e=Mp(),t=Object.prototype,n=t.hasOwnProperty,s=t.toString,r=e?e.toStringTag:void 0;function o(i){var a=n.call(i,r),c=i[r];try{i[r]=void 0;var u=!0}catch{}var f=s.call(i);return u&&(a?i[r]=c:delete i[r]),f}return a1=o,a1}var l1,b$;function KZ(){if(b$)return l1;b$=1;var e=Object.prototype,t=e.toString;function n(s){return t.call(s)}return l1=n,l1}var c1,y$;function ac(){if(y$)return c1;y$=1;var e=Mp(),t=GZ(),n=KZ(),s="[object Null]",r="[object Undefined]",o=e?e.toStringTag:void 0;function i(a){return a==null?a===void 0?r:s:o&&o in Object(a)?t(a):n(a)}return c1=i,c1}var u1,_$;function Ha(){if(_$)return u1;_$=1;function e(t){return t!=null&&typeof t=="object"}return u1=e,u1}var d1,w$;function xZ(){if(w$)return d1;w$=1;var e=ac(),t=Ha(),n="[object Arguments]";function s(r){return t(r)&&e(r)==n}return d1=s,d1}var f1,S$;function Np(){if(S$)return f1;S$=1;var e=xZ(),t=Ha(),n=Object.prototype,s=n.hasOwnProperty,r=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(i){return t(i)&&s.call(i,"callee")&&!r.call(i,"callee")};return f1=o,f1}var h1,k$;function Qs(){if(k$)return h1;k$=1;var e=Array.isArray;return h1=e,h1}var du={exports:{}},p1,$$;function YZ(){if($$)return p1;$$=1;function e(){return!1}return p1=e,p1}du.exports;var C$;function Fp(){return C$||(C$=1,function(e,t){var n=oo(),s=YZ(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i?n.Buffer:void 0,c=a?a.isBuffer:void 0,u=c||s;e.exports=u}(du,du.exports)),du.exports}var m1,T$;function d2(){if(T$)return m1;T$=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(s,r){var o=typeof s;return r=r??e,!!r&&(o=="number"||o!="symbol"&&t.test(s))&&s>-1&&s%1==0&&s<r}return m1=n,m1}var g1,A$;function f2(){if(A$)return g1;A$=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return g1=t,g1}var v1,E$;function XZ(){if(E$)return v1;E$=1;var e=ac(),t=f2(),n=Ha(),s="[object Arguments]",r="[object Array]",o="[object Boolean]",i="[object Date]",a="[object Error]",c="[object Function]",u="[object Map]",f="[object Number]",h="[object Object]",v="[object RegExp]",y="[object Set]",S="[object String]",C="[object WeakMap]",I="[object ArrayBuffer]",$="[object DataView]",k="[object Float32Array]",P="[object Float64Array]",A="[object Int8Array]",R="[object Int16Array]",B="[object Int32Array]",N="[object Uint8Array]",Y="[object Uint8ClampedArray]",H="[object Uint16Array]",D="[object Uint32Array]",oe={};oe[k]=oe[P]=oe[A]=oe[R]=oe[B]=oe[N]=oe[Y]=oe[H]=oe[D]=!0,oe[s]=oe[r]=oe[I]=oe[o]=oe[$]=oe[i]=oe[a]=oe[c]=oe[u]=oe[f]=oe[h]=oe[v]=oe[y]=oe[S]=oe[C]=!1;function le(Pe){return n(Pe)&&t(Pe.length)&&!!oe[e(Pe)]}return v1=le,v1}var b1,I$;function JZ(){if(I$)return b1;I$=1;function e(t){return function(n){return t(n)}}return b1=e,b1}var fu={exports:{}};fu.exports;var P$;function ZZ(){return P$||(P$=1,function(e,t){var n=CP(),s=t&&!t.nodeType&&t,r=s&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===s,i=o&&n.process,a=function(){try{var c=r&&r.require&&r.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=a}(fu,fu.exports)),fu.exports}var y1,L$;function Dp(){if(L$)return y1;L$=1;var e=XZ(),t=JZ(),n=ZZ(),s=n&&n.isTypedArray,r=s?t(s):e;return y1=r,y1}var _1,O$;function TP(){if(O$)return _1;O$=1;var e=WZ(),t=Np(),n=Qs(),s=Fp(),r=d2(),o=Dp(),i=Object.prototype,a=i.hasOwnProperty;function c(u,f){var h=n(u),v=!h&&t(u),y=!h&&!v&&s(u),S=!h&&!v&&!y&&o(u),C=h||v||y||S,I=C?e(u.length,String):[],$=I.length;for(var k in u)(f||a.call(u,k))&&!(C&&(k=="length"||y&&(k=="offset"||k=="parent")||S&&(k=="buffer"||k=="byteLength"||k=="byteOffset")||r(k,$)))&&I.push(k);return I}return _1=c,_1}var w1,R$;function Up(){if(R$)return w1;R$=1;var e=Object.prototype;function t(n){var s=n&&n.constructor,r=typeof s=="function"&&s.prototype||e;return n===r}return w1=t,w1}var S1,M$;function AP(){if(M$)return S1;M$=1;function e(t,n){return function(s){return t(n(s))}}return S1=e,S1}var k1,N$;function QZ(){if(N$)return k1;N$=1;var e=AP(),t=e(Object.keys,Object);return k1=t,k1}var $1,F$;function EP(){if(F$)return $1;F$=1;var e=Up(),t=QZ(),n=Object.prototype,s=n.hasOwnProperty;function r(o){if(!e(o))return t(o);var i=[];for(var a in Object(o))s.call(o,a)&&a!="constructor"&&i.push(a);return i}return $1=r,$1}var C1,D$;function Ki(){if(D$)return C1;D$=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return C1=e,C1}var T1,U$;function jp(){if(U$)return T1;U$=1;var e=ac(),t=Ki(),n="[object AsyncFunction]",s="[object Function]",r="[object GeneratorFunction]",o="[object Proxy]";function i(a){if(!t(a))return!1;var c=e(a);return c==s||c==r||c==n||c==o}return T1=i,T1}var A1,j$;function Va(){if(j$)return A1;j$=1;var e=jp(),t=f2();function n(s){return s!=null&&t(s.length)&&!e(s)}return A1=n,A1}var E1,B$;function h2(){if(B$)return E1;B$=1;var e=TP(),t=EP(),n=Va();function s(r){return n(r)?e(r):t(r)}return E1=s,E1}var I1,z$;function eQ(){if(z$)return I1;z$=1;var e=$P(),t=h2();function n(s,r){return s&&e(s,r,t)}return I1=n,I1}var P1,q$;function tQ(){if(q$)return P1;q$=1;var e=Va();function t(n,s){return function(r,o){if(r==null)return r;if(!e(r))return n(r,o);for(var i=r.length,a=s?i:-1,c=Object(r);(s?a--:++a<i)&&o(c[a],a,c)!==!1;);return r}}return P1=t,P1}var L1,H$;function p2(){if(H$)return L1;H$=1;var e=eQ(),t=tQ(),n=t(e);return L1=n,L1}var O1,V$;function nQ(){if(V$)return O1;V$=1;var e=p2();function t(n,s){var r=[];return e(n,function(o,i,a){s(o,i,a)&&r.push(o)}),r}return O1=t,O1}var R1,W$;function sQ(){if(W$)return R1;W$=1;function e(){this.__data__=[],this.size=0}return R1=e,R1}var M1,G$;function yd(){if(G$)return M1;G$=1;function e(t,n){return t===n||t!==t&&n!==n}return M1=e,M1}var N1,K$;function Bp(){if(K$)return N1;K$=1;var e=yd();function t(n,s){for(var r=n.length;r--;)if(e(n[r][0],s))return r;return-1}return N1=t,N1}var F1,x$;function rQ(){if(x$)return F1;x$=1;var e=Bp(),t=Array.prototype,n=t.splice;function s(r){var o=this.__data__,i=e(o,r);if(i<0)return!1;var a=o.length-1;return i==a?o.pop():n.call(o,i,1),--this.size,!0}return F1=s,F1}var D1,Y$;function oQ(){if(Y$)return D1;Y$=1;var e=Bp();function t(n){var s=this.__data__,r=e(s,n);return r<0?void 0:s[r][1]}return D1=t,D1}var U1,X$;function iQ(){if(X$)return U1;X$=1;var e=Bp();function t(n){return e(this.__data__,n)>-1}return U1=t,U1}var j1,J$;function aQ(){if(J$)return j1;J$=1;var e=Bp();function t(n,s){var r=this.__data__,o=e(r,n);return o<0?(++this.size,r.push([n,s])):r[o][1]=s,this}return j1=t,j1}var B1,Z$;function zp(){if(Z$)return B1;Z$=1;var e=sQ(),t=rQ(),n=oQ(),s=iQ(),r=aQ();function o(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var u=i[a];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=s,o.prototype.set=r,B1=o,B1}var z1,Q$;function lQ(){if(Q$)return z1;Q$=1;var e=zp();function t(){this.__data__=new e,this.size=0}return z1=t,z1}var q1,e4;function cQ(){if(e4)return q1;e4=1;function e(t){var n=this.__data__,s=n.delete(t);return this.size=n.size,s}return q1=e,q1}var H1,t4;function uQ(){if(t4)return H1;t4=1;function e(t){return this.__data__.get(t)}return H1=e,H1}var V1,n4;function dQ(){if(n4)return V1;n4=1;function e(t){return this.__data__.has(t)}return V1=e,V1}var W1,s4;function fQ(){if(s4)return W1;s4=1;var e=oo(),t=e["__core-js_shared__"];return W1=t,W1}var G1,r4;function hQ(){if(r4)return G1;r4=1;var e=fQ(),t=function(){var s=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}();function n(s){return!!t&&t in s}return G1=n,G1}var K1,o4;function IP(){if(o4)return K1;o4=1;var e=Function.prototype,t=e.toString;function n(s){if(s!=null){try{return t.call(s)}catch{}try{return s+""}catch{}}return""}return K1=n,K1}var x1,i4;function pQ(){if(i4)return x1;i4=1;var e=jp(),t=hQ(),n=Ki(),s=IP(),r=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,c=i.toString,u=a.hasOwnProperty,f=RegExp("^"+c.call(u).replace(r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(v){if(!n(v)||t(v))return!1;var y=e(v)?f:o;return y.test(s(v))}return x1=h,x1}var Y1,a4;function mQ(){if(a4)return Y1;a4=1;function e(t,n){return t==null?void 0:t[n]}return Y1=e,Y1}var X1,l4;function Wa(){if(l4)return X1;l4=1;var e=pQ(),t=mQ();function n(s,r){var o=t(s,r);return e(o)?o:void 0}return X1=n,X1}var J1,c4;function m2(){if(c4)return J1;c4=1;var e=Wa(),t=oo(),n=e(t,"Map");return J1=n,J1}var Z1,u4;function qp(){if(u4)return Z1;u4=1;var e=Wa(),t=e(Object,"create");return Z1=t,Z1}var Q1,d4;function gQ(){if(d4)return Q1;d4=1;var e=qp();function t(){this.__data__=e?e(null):{},this.size=0}return Q1=t,Q1}var ev,f4;function vQ(){if(f4)return ev;f4=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return ev=e,ev}var tv,h4;function bQ(){if(h4)return tv;h4=1;var e=qp(),t="__lodash_hash_undefined__",n=Object.prototype,s=n.hasOwnProperty;function r(o){var i=this.__data__;if(e){var a=i[o];return a===t?void 0:a}return s.call(i,o)?i[o]:void 0}return tv=r,tv}var nv,p4;function yQ(){if(p4)return nv;p4=1;var e=qp(),t=Object.prototype,n=t.hasOwnProperty;function s(r){var o=this.__data__;return e?o[r]!==void 0:n.call(o,r)}return nv=s,nv}var sv,m4;function _Q(){if(m4)return sv;m4=1;var e=qp(),t="__lodash_hash_undefined__";function n(s,r){var o=this.__data__;return this.size+=this.has(s)?0:1,o[s]=e&&r===void 0?t:r,this}return sv=n,sv}var rv,g4;function wQ(){if(g4)return rv;g4=1;var e=gQ(),t=vQ(),n=bQ(),s=yQ(),r=_Q();function o(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var u=i[a];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=s,o.prototype.set=r,rv=o,rv}var ov,v4;function SQ(){if(v4)return ov;v4=1;var e=wQ(),t=zp(),n=m2();function s(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ov=s,ov}var iv,b4;function kQ(){if(b4)return iv;b4=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return iv=e,iv}var av,y4;function Hp(){if(y4)return av;y4=1;var e=kQ();function t(n,s){var r=n.__data__;return e(s)?r[typeof s=="string"?"string":"hash"]:r.map}return av=t,av}var lv,_4;function $Q(){if(_4)return lv;_4=1;var e=Hp();function t(n){var s=e(this,n).delete(n);return this.size-=s?1:0,s}return lv=t,lv}var cv,w4;function CQ(){if(w4)return cv;w4=1;var e=Hp();function t(n){return e(this,n).get(n)}return cv=t,cv}var uv,S4;function TQ(){if(S4)return uv;S4=1;var e=Hp();function t(n){return e(this,n).has(n)}return uv=t,uv}var dv,k4;function AQ(){if(k4)return dv;k4=1;var e=Hp();function t(n,s){var r=e(this,n),o=r.size;return r.set(n,s),this.size+=r.size==o?0:1,this}return dv=t,dv}var fv,$4;function g2(){if($4)return fv;$4=1;var e=SQ(),t=$Q(),n=CQ(),s=TQ(),r=AQ();function o(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var u=i[a];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=s,o.prototype.set=r,fv=o,fv}var hv,C4;function EQ(){if(C4)return hv;C4=1;var e=zp(),t=m2(),n=g2(),s=200;function r(o,i){var a=this.__data__;if(a instanceof e){var c=a.__data__;if(!t||c.length<s-1)return c.push([o,i]),this.size=++a.size,this;a=this.__data__=new n(c)}return a.set(o,i),this.size=a.size,this}return hv=r,hv}var pv,T4;
vendor: 8,701 bytes, line 659
659function v2(){if(T4)return pv;T4=1;var e=zp(),t=lQ(),n=cQ(),s=uQ(),r=dQ(),o=EQ();function i(a){var c=this.__data__=new e(a);this.size=c.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=r,i.prototype.set=o,pv=i,pv}var mv,A4;function IQ(){if(A4)return mv;A4=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return mv=t,mv}var gv,E4;function PQ(){if(E4)return gv;E4=1;function e(t){return this.__data__.has(t)}return gv=e,gv}var vv,I4;function LQ(){if(I4)return vv;I4=1;var e=g2(),t=IQ(),n=PQ();function s(r){var o=-1,i=r==null?0:r.length;for(this.__data__=new e;++o<i;)this.add(r[o])}return s.prototype.add=s.prototype.push=t,s.prototype.has=n,vv=s,vv}var bv,P4;function OQ(){if(P4)return bv;P4=1;function e(t,n){for(var s=-1,r=t==null?0:t.length;++s<r;)if(n(t[s],s,t))return!0;return!1}return bv=e,bv}var yv,L4;function RQ(){if(L4)return yv;L4=1;function e(t,n){return t.has(n)}return yv=e,yv}var _v,O4;function PP(){if(O4)return _v;O4=1;var e=LQ(),t=OQ(),n=RQ(),s=1,r=2;function o(i,a,c,u,f,h){var v=c&s,y=i.length,S=a.length;if(y!=S&&!(v&&S>y))return!1;var C=h.get(i),I=h.get(a);if(C&&I)return C==a&&I==i;var $=-1,k=!0,P=c&r?new e:void 0;for(h.set(i,a),h.set(a,i);++$<y;){var A=i[$],R=a[$];if(u)var B=v?u(R,A,$,a,i,h):u(A,R,$,i,a,h);if(B!==void 0){if(B)continue;k=!1;break}if(P){if(!t(a,function(N,Y){if(!n(P,Y)&&(A===N||f(A,N,c,u,h)))return P.push(Y)})){k=!1;break}}else if(!(A===R||f(A,R,c,u,h))){k=!1;break}}return h.delete(i),h.delete(a),k}return _v=o,_v}var wv,R4;function LP(){if(R4)return wv;R4=1;var e=oo(),t=e.Uint8Array;return wv=t,wv}var Sv,M4;function MQ(){if(M4)return Sv;M4=1;function e(t){var n=-1,s=Array(t.size);return t.forEach(function(r,o){s[++n]=[o,r]}),s}return Sv=e,Sv}var kv,N4;function NQ(){if(N4)return kv;N4=1;function e(t){var n=-1,s=Array(t.size);return t.forEach(function(r){s[++n]=r}),s}return kv=e,kv}var $v,F4;function FQ(){if(F4)return $v;F4=1;var e=Mp(),t=LP(),n=yd(),s=PP(),r=MQ(),o=NQ(),i=1,a=2,c="[object Boolean]",u="[object Date]",f="[object Error]",h="[object Map]",v="[object Number]",y="[object RegExp]",S="[object Set]",C="[object String]",I="[object Symbol]",$="[object ArrayBuffer]",k="[object DataView]",P=e?e.prototype:void 0,A=P?P.valueOf:void 0;function R(B,N,Y,H,D,oe,le){switch(Y){case k:if(B.byteLength!=N.byteLength||B.byteOffset!=N.byteOffset)return!1;B=B.buffer,N=N.buffer;case $:return!(B.byteLength!=N.byteLength||!oe(new t(B),new t(N)));case c:case u:case v:return n(+B,+N);case f:return B.name==N.name&&B.message==N.message;case y:case C:return B==N+"";case h:var Pe=r;case S:var qe=H&i;if(Pe||(Pe=o),B.size!=N.size&&!qe)return!1;var Ke=le.get(B);if(Ke)return Ke==N;H|=a,le.set(B,N);var Ge=s(Pe(B),Pe(N),H,D,oe,le);return le.delete(B),Ge;case I:if(A)return A.call(B)==A.call(N)}return!1}return $v=R,$v}var Cv,D4;function DQ(){if(D4)return Cv;D4=1;function e(t,n){for(var s=-1,r=n.length,o=t.length;++s<r;)t[o+s]=n[s];return t}return Cv=e,Cv}var Tv,U4;function UQ(){if(U4)return Tv;U4=1;var e=DQ(),t=Qs();function n(s,r,o){var i=r(s);return t(s)?i:e(i,o(s))}return Tv=n,Tv}var Av,j4;function jQ(){if(j4)return Av;j4=1;function e(){return[]}return Av=e,Av}var Ev,B4;function BQ(){if(B4)return Ev;B4=1;var e=kP(),t=jQ(),n=Object.prototype,s=n.propertyIsEnumerable,r=Object.getOwnPropertySymbols,o=r?function(i){return i==null?[]:(i=Object(i),e(r(i),function(a){return s.call(i,a)}))}:t;return Ev=o,Ev}var Iv,z4;function zQ(){if(z4)return Iv;z4=1;var e=UQ(),t=BQ(),n=h2();function s(r){return e(r,n,t)}return Iv=s,Iv}var Pv,q4;function qQ(){if(q4)return Pv;q4=1;var e=zQ(),t=1,n=Object.prototype,s=n.hasOwnProperty;function r(o,i,a,c,u,f){var h=a&t,v=e(o),y=v.length,S=e(i),C=S.length;if(y!=C&&!h)return!1;for(var I=y;I--;){var $=v[I];if(!(h?$ in i:s.call(i,$)))return!1}var k=f.get(o),P=f.get(i);if(k&&P)return k==i&&P==o;var A=!0;f.set(o,i),f.set(i,o);for(var R=h;++I<y;){$=v[I];var B=o[$],N=i[$];if(c)var Y=h?c(N,B,$,i,o,f):c(B,N,$,o,i,f);if(!(Y===void 0?B===N||u(B,N,a,c,f):Y)){A=!1;break}R||(R=$=="constructor")}if(A&&!R){var H=o.constructor,D=i.constructor;H!=D&&"constructor"in o&&"constructor"in i&&!(typeof H=="function"&&H instanceof H&&typeof D=="function"&&D instanceof D)&&(A=!1)}return f.delete(o),f.delete(i),A}return Pv=r,Pv}var Lv,H4;function HQ(){if(H4)return Lv;H4=1;var e=Wa(),t=oo(),n=e(t,"DataView");return Lv=n,Lv}var Ov,V4;function VQ(){if(V4)return Ov;V4=1;var e=Wa(),t=oo(),n=e(t,"Promise");return Ov=n,Ov}var Rv,W4;function WQ(){if(W4)return Rv;W4=1;var e=Wa(),t=oo(),n=e(t,"Set");return Rv=n,Rv}var Mv,G4;function GQ(){if(G4)return Mv;G4=1;var e=Wa(),t=oo(),n=e(t,"WeakMap");return Mv=n,Mv}var Nv,K4;function OP(){if(K4)return Nv;K4=1;var e=HQ(),t=m2(),n=VQ(),s=WQ(),r=GQ(),o=ac(),i=IP(),a="[object Map]",c="[object Object]",u="[object Promise]",f="[object Set]",h="[object WeakMap]",v="[object DataView]",y=i(e),S=i(t),C=i(n),I=i(s),$=i(r),k=o;return(e&&k(new e(new ArrayBuffer(1)))!=v||t&&k(new t)!=a||n&&k(n.resolve())!=u||s&&k(new s)!=f||r&&k(new r)!=h)&&(k=function(P){var A=o(P),R=A==c?P.constructor:void 0,B=R?i(R):"";if(B)switch(B){case y:return v;case S:return a;case C:return u;case I:return f;case $:return h}return A}),Nv=k,Nv}var Fv,x4;function KQ(){if(x4)return Fv;x4=1;var e=v2(),t=PP(),n=FQ(),s=qQ(),r=OP(),o=Qs(),i=Fp(),a=Dp(),c=1,u="[object Arguments]",f="[object Array]",h="[object Object]",v=Object.prototype,y=v.hasOwnProperty;function S(C,I,$,k,P,A){var R=o(C),B=o(I),N=R?f:r(C),Y=B?f:r(I);N=N==u?h:N,Y=Y==u?h:Y;var H=N==h,D=Y==h,oe=N==Y;if(oe&&i(C)){if(!i(I))return!1;R=!0,H=!1}if(oe&&!H)return A||(A=new e),R||a(C)?t(C,I,$,k,P,A):n(C,I,N,$,k,P,A);if(!($&c)){var le=H&&y.call(C,"__wrapped__"),Pe=D&&y.call(I,"__wrapped__");if(le||Pe){var qe=le?C.value():C,Ke=Pe?I.value():I;return A||(A=new e),P(qe,Ke,$,k,A)}}return oe?(A||(A=new e),s(C,I,$,k,P,A)):!1}return Fv=S,Fv}var Dv,Y4;function b2(){if(Y4)return Dv;Y4=1;var e=KQ(),t=Ha();function n(s,r,o,i,a){return s===r?!0:s==null||r==null||!t(s)&&!t(r)?s!==s&&r!==r:e(s,r,o,i,n,a)}return Dv=n,Dv}var Uv,X4;function xQ(){if(X4)return Uv;X4=1;var e=v2(),t=b2(),n=1,s=2;function r(o,i,a,c){var u=a.length,f=u,h=!c;if(o==null)return!f;for(o=Object(o);u--;){var v=a[u];if(h&&v[2]?v[1]!==o[v[0]]:!(v[0]in o))return!1}for(;++u<f;){v=a[u];var y=v[0],S=o[y],C=v[1];if(h&&v[2]){if(S===void 0&&!(y in o))return!1}else{var I=new e;if(c)var $=c(S,C,y,o,i,I);if(!($===void 0?t(C,S,n|s,c,I):$))return!1}}return!0}return Uv=r,Uv}var jv,J4;function RP(){if(J4)return jv;J4=1;var e=Ki();function t(n){return n===n&&!e(n)}return jv=t,jv}var Bv,Z4;function YQ(){if(Z4)return Bv;Z4=1;var e=RP(),t=h2();function n(s){for(var r=t(s),o=r.length;o--;){var i=r[o],a=s[i];r[o]=[i,a,e(a)]}return r}return Bv=n,Bv}var zv,Q4;function MP(){if(Q4)return zv;Q4=1;function e(t,n){return function(s){return s==null?!1:s[t]===n&&(n!==void 0||t in Object(s))}}return zv=e,zv}var qv,eC;function XQ(){if(eC)return qv;eC=1;var e=xQ(),t=YQ(),n=MP();function s(r){var o=t(r);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(i){return i===r||e(i,r,o)}}return qv=s,qv}var Hv,tC;function y2(){if(tC)return Hv;tC=1;var e=ac(),t=Ha(),n="[object Symbol]";function s(r){return typeof r=="symbol"||t(r)&&e(r)==n}return Hv=s,Hv}var Vv,nC;function _2(){if(nC)return Vv;nC=1;var e=Qs(),t=y2(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function r(o,i){if(e(o))return!1;var a=typeof o;return a=="number"||a=="symbol"||a=="boolean"||o==null||t(o)?!0:s.test(o)||!n.test(o)||i!=null&&o in Object(i)}return Vv=r,Vv}var Wv,sC;function JQ(){if(sC)return Wv;sC=1;var e=g2(),t="Expected a function";function n(s,r){if(typeof s!="function"||r!=null&&typeof r!="function")throw new TypeError(t);var o=function(){var i=arguments,a=r?r.apply(this,i):i[0],c=o.cache;if(c.has(a))return c.get(a);var u=s.apply(this,i);return o.cache=c.set(a,u)||c,u};return o.cache=new(n.Cache||e),o}return n.Cache=e,Wv=n,Wv}var Gv,rC;function ZQ(){if(rC)return Gv;rC=1;var e=JQ(),t=500;function n(s){var r=e(s,function(i){return o.size===t&&o.clear(),i}),o=r.cache;return r}return Gv=n,Gv}var Kv,oC;function QQ(){if(oC)return Kv;oC=1;var e=ZQ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,s=e(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(t,function(i,a,c,u){o.push(c?u.replace(n,"$1"):a||i)}),o});return Kv=s,Kv}var xv,iC;function NP(){if(iC)return xv;iC=1;function e(t,n){for(var s=-1,r=t==null?0:t.length,o=Array(r);++s<r;)o[s]=n(t[s],s,t);return o}return xv=e,xv}var Yv,aC;function eee(){if(aC)return Yv;aC=1;var e=Mp(),t=NP(),n=Qs(),s=y2(),r=e?e.prototype:void 0,o=r?r.toString:void 0;function i(a){if(typeof a=="string")return a;
659if(n(a))return t(a,i)+"";if(s(a))return o?o.call(a):"";var c=a+"";return c=="0"&&1/a==-1/0?"-0":c}return Yv=i,Yv}var Xv,lC;function FP(){if(lC)return Xv;lC=1;var e=eee();function t(n){return n==null?"":e(n)}return Xv=t,Xv}var Jv,cC;function DP(){if(cC)return Jv;cC=1;var e=Qs(),t=_2(),n=QQ(),s=FP();function r(o,i){return e(o)?o:t(o,i)?[o]:n(s(o))}return Jv=r,Jv}var Zv,uC;function Vp(){if(uC)return Zv;uC=1;var e=y2();function t(n){if(typeof n=="string"||e(n))return n;var s=n+"";return s=="0"&&1/n==-1/0?"-0":s}return Zv=t,Zv}var Qv,dC;function UP(){if(dC)return Qv;dC=1;var e=DP(),t=Vp();function n(s,r){r=e(r,s);for(var o=0,i=r.length;s!=null&&o<i;)s=s[t(r[o++])];return o&&o==i?s:void 0}return Qv=n,Qv}var eb,fC;function jP(){if(fC)return eb;fC=1;var e=UP();function t(n,s,r){var o=n==null?void 0:e(n,s);return o===void 0?r:o}return eb=t,eb}var tb,hC;function tee(){if(hC)return tb;hC=1;function e(t,n){return t!=null&&n in Object(t)}return tb=e,tb}var nb,pC;function nee(){if(pC)return nb;pC=1;var e=DP(),t=Np(),n=Qs(),s=d2(),r=f2(),o=Vp();function i(a,c,u){c=e(c,a);for(var f=-1,h=c.length,v=!1;++f<h;){var y=o(c[f]);if(!(v=a!=null&&u(a,y)))break;a=a[y]}return v||++f!=h?v:(h=a==null?0:a.length,!!h&&r(h)&&s(y,h)&&(n(a)||t(a)))}return nb=i,nb}var sb,mC;function see(){if(mC)return sb;mC=1;var e=tee(),t=nee();function n(s,r){return s!=null&&t(s,r,e)}return sb=n,sb}var rb,gC;function ree(){if(gC)return rb;gC=1;var e=b2(),t=jP(),n=see(),s=_2(),r=RP(),o=MP(),i=Vp(),a=1,c=2;function u(f,h){return s(f)&&r(h)?o(i(f),h):function(v){var y=t(v,f);return y===void 0&&y===h?n(v,f):e(h,y,a|c)}}return rb=u,rb}var ob,vC;function w2(){if(vC)return ob;vC=1;function e(t){return t}return ob=e,ob}var ib,bC;function oee(){if(bC)return ib;bC=1;function e(t){return function(n){return n==null?void 0:n[t]}}return ib=e,ib}var ab,yC;function iee(){if(yC)return ab;yC=1;var e=UP();function t(n){return function(s){return e(s,n)}}return ab=t,ab}var lb,_C;function aee(){if(_C)return lb;_C=1;var e=oee(),t=iee(),n=_2(),s=Vp();function r(o){return n(o)?e(s(o)):t(o)}return lb=r,lb}var cb,wC;function S2(){if(wC)return cb;wC=1;var e=XQ(),t=ree(),n=w2(),s=Qs(),r=aee();function o(i){return typeof i=="function"?i:i==null?n:typeof i=="object"?s(i)?t(i[0],i[1]):e(i):r(i)}return cb=o,cb}var ub,SC;function lee(){if(SC)return ub;SC=1;var e=kP(),t=nQ(),n=S2(),s=Qs();function r(o,i){var a=s(o)?e:t;return a(o,n(i,3))}return ub=r,ub}var cee=lee();const uee=bs(cee),qi=vs("reports",{state:()=>({reportModal:{userId:null,statuses:[],preTickedIds:[],activated:!1},reports:{}}),actions:{openUserReportingModal({userId:e,statusIds:t=[]}){const n=t.map(o=>window.vuex.state.statuses.allStatusesObject[o]),s=t,r=n.concat(uee(window.vuex.state.statuses.allStatuses,o=>o.user.id===e&&!s.includes(o.id)));this.reportModal.userId=e,this.reportModal.statuses=r,this.reportModal.preTickedIds=s,this.reportModal.activated=!0},closeUserReportingModal(){this.reportModal.activated=!1},setReportState({id:e,state:t}){const n=this.reports[e].state;this.reports[e].state=t,window.vuex.state.api.backendInteractor.setReportState({id:e,state:t}).catch(s=>{console.error("Failed to set report state",s),Xe().pushGlobalNotice({level:"error",messageKey:"general.generic_error_message",messageArgs:[s.message],timeout:5e3}),this.reports[e].state=n})},addReport(e){this.reports[e.id]=e}}}),dee=Object.freeze(Object.defineProperty({__proto__:null,useReportsStore:qi},Symbol.toStringTag,{value:"Module"})),fee=()=>({desktopNotificationSilence:!0,maxId:0,minId:Number.POSITIVE_INFINITY,data:[],idStore:{},loading:!1}),kC=()=>({...fee()}),hee={state:kC(),mutations:{addNewNotifications(e,{notifications:t}){t.forEach(n=>{e.data.push(n),e.idStore[n.id]=n})},clearNotifications(e){const t=kC();Object.keys(e).forEach(n=>{e[n]=t[n]})},updateNotificationsMinMaxId(e,t){e.maxId=t>e.maxId?t:e.maxId,e.minId=t<e.minId?t:e.minId},setNotificationsLoading(e,{value:t}){e.loading=t},setNotificationsSilence(e,{value:t}){e.desktopNotificationSilence=t},markNotificationsAsSeen(e){e.data.forEach(t=>{t.seen=!0})},markSingleNotificationAsSeen(e,{id:t}){const n=e.idStore[t];n&&(n.seen=!0)}
659,dismissNotification(e,{id:t}){e.data=e.data.filter(n=>n.id!==t),delete e.idStore[t]},updateNotification(e,{id:t,updater:n}){const s=e.idStore[t];s&&n(s)}},actions:{addNewNotifications(e,{notifications:t}){const{commit:n,dispatch:s,state:r,rootState:o}=e,i=t.filter(c=>Sz(c)?!0:(console.error("Invalid notification:",c),n("updateNotificationsMinMaxId",c.id),!1)),a=i.filter(c=>ld(c.type)&&c.status);n("addNewStatuses",{statuses:a.map(c=>c.status)}),a.forEach(c=>{const u=c.status.id,f=o.statuses.allStatusesObject[u];f&&(c.status=f)}),i.forEach(c=>{c.type==="pleroma:report"&&qi().addReport(c.report),c.type==="pleroma:emoji_reaction"&&s("fetchEmojiReactionsBy",c.status.id),r.idStore.hasOwnProperty(c.id)?c.seen&&(r.idStore[c.id].seen=!0):(n("updateNotificationsMinMaxId",c.id),n("addNewNotifications",{notifications:[c]}),Cz(e,Object.values(_n().prefsStorage.simple.muteFilters)))})},notificationClicked({state:e,dispatch:t},{id:n}){const s=e.idStore[n],{type:r,seen:o}=s;if(!o)switch(r){case"mention":case"pleroma:report":case"follow_request":break;default:t("markSingleNotificationAsSeen",{id:n})}},setNotificationsLoading({commit:e},{value:t}){e("setNotificationsLoading",{value:t})},setNotificationsSilence({commit:e},{value:t}){e("setNotificationsSilence",{value:t})},markNotificationsAsSeen({rootState:e,state:t,commit:n}){n("markNotificationsAsSeen"),Ln.markNotificationsAsSeen({id:t.maxId,credentials:e.users.currentUser.credentials}).then(()=>{mz()})},markSingleNotificationAsSeen({rootState:e,commit:t},{id:n}){t("markSingleNotificationAsSeen",{id:n}),Ln.markNotificationsAsSeen({single:!0,id:n,credentials:e.users.currentUser.credentials}).then(()=>{pz(e,{id:n})})},dismissNotificationLocal({commit:e},{id:t}){e("dismissNotification",{id:t})},dismissNotification({rootState:e,commit:t},{id:n}){t("dismissNotification",{id:n}),e.api.backendInteractor.dismissNotification({id:n})},updateNotification({commit:e},{id:t,updater:n}){e("updateNotification",{id:t,updater:n})}}},Ga=(e,t)=>{let n=!1,s=null;const r=()=>{const i=e();if(!(i&&i.finally)){console.warn("promiseInterval: promise call did not return a promise, stopping interval.");return}i.finally(()=>{n||(s=window.setTimeout(r,t))})},o=()=>{n=!0,window.clearTimeout(s)};return s=window.setTimeout(r,t),{stop:o}},pee=({store:e,statuses:t,timeline:n,showImmediately:s,userId:r,listId:o,pagination:i})=>{const a=Z.camelCase(n);e.dispatch("addNewStatuses",{timeline:a,userId:r,listId:o,statuses:t,showImmediately:s,pagination:i})},gy=({store:e,credentials:t,timeline:n="friends",older:s=!1,showImmediately:r=!1,userId:o=!1,listId:i=!1,statusId:a=!1,bookmarkFolderId:c=!1,tag:u=!1,until:f,since:h})=>{const v={timeline:n,credentials:t},y=e.rootState||e.state,{getters:S}=e,C=y.statuses.timelines[Z.camelCase(n)],{hideMutedPosts:I,replyVisibility:$}=S.mergedConfig,k=!!y.users.currentUser;s?v.until=f||C.minId:h===void 0?v.since=C.maxId:h!==null&&(v.since=h),v.userId=o,v.listId=i,v.statusId=a,v.bookmarkFolderId=c,v.tag=u,v.withMuted=!I,k&&["friends","public","publicAndExternal","bubble"].includes(n)&&(v.replyVisibility=$);const P=C.statuses.length;return Ln.fetchTimeline(v).then(A=>{if(A.errors){if(n==="favorites"){y.instance.pleromaPublicFavouritesAvailable=!1;return}throw new Error(`${A.status} ${A.statusText}`)}const{data:R,pagination:B}=A;return!s&&R.length>=20&&!C.loading&&P>0&&e.dispatch("queueFlush",{timeline:n,id:C.maxId}),pee({store:e,statuses:R,timeline:n,showImmediately:r,userId:o,listId:i,pagination:B}),{statuses:R,pagination:B}}).catch(A=>{Xe().pushGlobalNotice({level:"error",messageKey:"timeline.error",messageArgs:[A.message],timeout:5e3})})},mee=({timeline:e="friends",credentials:t,store:n,userId:s=!1,listId:r=!1,statusId:o=!1,bookmarkFolderId:i=!1,tag:a=!1})=>{const u=(n.rootState||n.state).statuses.timelines[Z.camelCase(e)],f=u.visibleStatuses.length===0;return u.userId=s,u.listId=r,u.bookmarkFolderId=i,gy({timeline:e,credentials:t,store:n,showImmediately:f,userId:s,listId:r,statusId:o,bookmarkFolderId:i,tag:a}),Ga(()=>gy({timeline:e,credentials:t,store:n,userId:s,listId:r,statusId:o,bookmarkFolderId:i,tag:a}),1e4)},Eh={fetchAndUpdate:gy,startFetching:mee},gee=({store:e,notifications:t,older:n})=>{e.dispatch("addNewNotifications",{notifications:t,older:n})},vy=new Set(["mention","status","favourite","reblog","follow","follow_request","move","poll","pleroma:emoji_reaction","pleroma:report"]),BP=({store:e,credentials:t,older:n=!1,since:s})=>{const r={credentials:t},{getters:o}=e,i=e.rootState||e.state,a=i.notifications,c=o.mergedConfig.hideMutedPosts;if(i.instance.pleromaChatMessagesAvailable&&vy.add("pleroma:chat_mention"),r.includeTypes=vy,r.withMuted=!c,r.timeline="notifications",n)return a.minId!==Number.POSITIVE_INFINITY&&(r.until=a.minId),Qf({store:e,args:r,older:n});{s===void 0&&a.maxId!==Number.POSITIVE_INFINITY?r.since=a.maxId:s!==null&&(r.since=s);const u=Qf({store:e,args:r,older:n}),f=a.data,h=f.filter(y=>y.seen).map(y=>y.id),v=f.filter(y=>!y.seen).map(y=>y.id);if(h.length>0&&h.length>0){const y=Math.min(...v);y!==1/0&&(r.since=!1,r.minId=y-1,Qf({store:e,args:r,older:n}))}return u}},Qf=({store:e,args:t,older:n})=>Ln.fetchTimeline(t).then(s=>{if(s.errors){if(s.status===400&&s.statusText.includes("Invalid value for enum"))return s.statusText.matchAll(/(\w+) - Invalid value for enum./g).toArray().map(o=>
659o[1]).forEach(o=>vy.delete(o)),Qf({store:e,args:t,older:n});throw new Error(`${s.status} ${s.statusText}`)}const r=s.data;return gee({store:e,notifications:r,older:n}),r}).catch(s=>{Xe().pushGlobalNotice({level:"error",messageKey:"notifications.error",messageArgs:[s.message],timeout:5e3}),console.error(s)}),vee=({credentials:e,store:t})=>{setTimeout(()=>t.dispatch("setNotificationsSilence",!1),1e4);const n=()=>BP({credentials:e,store:t});return n(),Ga(n,1e4)},by={fetchAndUpdate:BP,startFetching:vee},bee=({store:e,credentials:t})=>Ln.fetchFollowRequests({credentials:t}).then(n=>{e.commit("setFollowRequests",n),e.commit("addNewUsers",n)},()=>{}).catch(()=>{}),yee=({credentials:e,store:t})=>{const n=()=>bee({credentials:e,store:t});return n(),Ga(n,1e4)},_ee={startFetching:yee},Fn=vs("lists",{state:()=>({allLists:[],allListsObject:{}}),getters:{findListTitle(){return e=>{if(this.allListsObject[e])return this.allListsObject[e].title}},findListAccounts(){return e=>[...this.allListsObject[e].accountIds]}},actions:{setLists(e){this.allLists=e},createList({title:e}){return window.vuex.state.api.backendInteractor.createList({title:e}).then(t=>(this.setList({listId:t.id,title:e}),t))},fetchList({listId:e}){return window.vuex.state.api.backendInteractor.getList({listId:e}).then(t=>this.setList({listId:t.id,title:t.title}))},fetchListAccounts({listId:e}){return window.vuex.state.api.backendInteractor.getListAccounts({listId:e}).then(t=>{this.allListsObject[e]||(this.allListsObject[e]={accountIds:[]}),this.allListsObject[e].accountIds=t})},setList({listId:e,title:t}){window.vuex.state.api.backendInteractor.updateList({listId:e,title:t}),this.allListsObject[e]||(this.allListsObject[e]={accountIds:[]}),this.allListsObject[e].title=t;const n=Z.find(this.allLists,{id:e});n?n.title=t:this.allLists.push({id:e,title:t})},setListAccounts({listId:e,accountIds:t}){var o;const n=((o=this.allListsObject[e])==null?void 0:o.accountIds)||[],s=t.filter(i=>!n.includes(i)),r=n.filter(i=>!t.includes(i));this.allListsObject[e]||(this.allListsObject[e]={accountIds:[]}),this.allListsObject[e].accountIds=t,s.length>0&&window.vuex.state.api.backendInteractor.addAccountsToList({listId:e,accountIds:s}),r.length>0&&window.vuex.state.api.backendInteractor.removeAccountsFromList({listId:e,accountIds:r})},addListAccount({listId:e,accountId:t}){return window.vuex.state.api.backendInteractor.addAccountsToList({listId:e,accountIds:[t]}).then(n=>(this.allListsObject[e]||(this.allListsObject[e]={accountIds:[]}),this.allListsObject[e].accountIds.push(t),n))},removeListAccount({listId:e,accountId:t}){return window.vuex.state.api.backendInteractor.removeAccountsFromList({listId:e,accountIds:[t]}).then(n=>{this.allListsObject[e]||(this.allListsObject[e]={accountIds:[]});const{accountIds:s}=this.allListsObject[e],r=new Set(s);return r.delete(t),this.allListsObject[e].accountIds=[...r],n})},deleteList({listId:e}){window.vuex.state.api.backendInteractor.deleteList({listId:e}),delete this.allListsObject[e],Z.remove(this.allLists,t=>t.id===e)}}}),wee=Object.freeze(Object.defineProperty({__proto__:null,useListsStore:Fn},Symbol.toStringTag,{value:"Module"})),See=({credentials:e})=>Ln.fetchLists({credentials:e}).then(t=>{Fn().setLists(t)},()=>{}).catch(()=>{}),kee=({credentials:e,store:t})=>{const n=()=>See({credentials:e});return n(),Ga(n,24e4)},$ee={startFetching:kee},no=vs("bookmarkFolders",{state:()=>({allFolders:[]}),getters:{findBookmarkFolderName(){return e=>{const t=this.allFolders.find(n=>n.id===e);if(t)return t.name}}},actions:{setBookmarkFolders(e){this.allFolders=e},setBookmarkFolder({id:e,name:t,emoji:n,emoji_url:s}){const r=Z.find(this.allFolders,{id:e});r?(r.name=t,r.emoji=n,r.emoji_url=s):this.allFolders.push({id:e,name:t,emoji:n,emoji_url:s})},createBookmarkFolder({name:e,emoji:t}){return window.vuex.state.api.backendInteractor.createBookmarkFolder({name:e,emoji:t}).then(n=>(this.setBookmarkFolder(n),n))},updateBookmarkFolder({folderId:e,name:t,emoji:n}){return window.vuex.state.api.backendInteractor.updateBookmarkFolder({folderId:e,name:t,emoji:n}).then(s=>(this.setBookmarkFolder(s),s))},deleteBookmarkFolder({folderId:e}){window.vuex.state.api.backendInteractor.deleteBookmarkFolder({folderId:e}),Z.remove(this.allFolders,t=>t.id===e)}}}),Cee=Object.freeze(Object.defineProperty({__proto__:null,useBookmarkFoldersStore:no},Symbol.toStringTag,{value:"Module"})),Tee=({credentials:e})=>Ln.fetchBookmarkFolders({credentials:e}).then(t=>{no().setBookmarkFolders(t)},()=>{}).catch(()=>{}),Aee=({credentials:e,store:t})=>{const n=()=>Tee({credentials:e});return n(),Ga(n,24e4)},Eee={startFetching:Aee},Ih=e=>({startFetchingTimeline({timeline:t,store:n,userId:s=!1,listId:r=!1,statusId:o=!1,bookmarkFolderId:i=!1,tag:a}){return Eh.startFetching({timeline:t,store:n,credentials:e,userId:s,listId:r,statusId:o,bookmarkFolderId:i,tag:a})},fetchTimeline(t){return Eh.fetchAndUpdate({...t,credentials:e})},startFetchingNotifications({store:t}){return by.startFetching({store:t,credentials:e})},fetchNotifications(t){return by.fetchAndUpdate({...t,credentials:e})},startFetchingFollowRequests({store:t}){return _ee.startFetching({store:t,credentials:e})},startFetchingLists({store:t}){return $ee.startFetching({store:t,credentials:e})},startFetchingBookmarkFolders({store:t}){return Eee.startFetching({store:t,credentials:e})},startUserSocket({store:t}){const n=t.rootState.instance.server.replace("http","ws"),s=LW({},n);return MW({url:s,id:"Unified",credentials:e})},...Object.entries(Ln).reduce((t,[n,s])=>({...t,[n]:r=>s({credentials:e,...r})}),{}),verifyCredentials:Ln.verifyCredentials}),Ph=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Lh=()=>window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,zP=`${window.location.origin}/oauth-callback`,k2=async e=>{if(e.ok)return e.json().catch(t=>{throw new Di(e.status,t,{},e)});throw new Di(e.status,await e.text(),{},e)},Iee=e=>{const t=`${e}/api/v1/apps`,n=new window.FormData;return n.append("client_name","PleromaFE"),n.append("website","https://pleroma.social"),n.append("redirect_uris",zP),n.append("scopes","read write follow push admin"),window.fetch(t,{method:"POST",body:n}).then(k2).then(s=>({clientId:s.client_id,clientSecret:s.client_secret}))},Pee=({instance:e,appToken:t})=>window.fetch(`${e}/api/v1/apps/verify_credentials`,{method:"GET",headers:{Authorization:`Bearer ${t}`}}).then(k2),Lee=({instance:e,clientId:t})=>{const n={response_type:"code",client_id:t,redirect_uri:zP,scope:"read write follow push admin"},s=Z.reduce(n,(o,i,a)=>{const c=`${a}=${encodeURIComponent(i)}`;return o?`${o}&${c}`:c},!1),r=`${e}/oauth/authorize?${s}`;window.location.href=r},Oee=({clientId:e,clientSecret:t,instance:n,username:s,password:r})=>{const o=`${n}/oauth/token`,i=new window.FormData;return i.append("client_id",e),i.append("client_secret",t),i.append("grant_type","password"),i.append("username",s),i.append("password",r),window.fetch(o,{method:"POST",body:i}).then(a=>a.json())},Ree=({clientId:e,clientSecret:t,instance:n,code:s})=>{const r=`${n}/oauth/token`,o=new window.FormData;return o.append("client_id",e),o.append("client_secret",t),o.append("grant_type","authorization_code"),o.append("code",s),o.append("redirect_uri",`${window.location.origin}/oauth-callback`),window.fetch(r,{method:"POST",body:o}).then(i=>i.json())},Mee=({clientId:e,clientSecret:t,instance:n})=>{const s=`${n}/oauth/token`,r=new window.FormData;return r.append("client_id",e),r.append("client_secret",t),r.append("grant_type","client_credentials"),r.append("redirect_uri",`${window.location.origin}/oauth-callback`),window.fetch(s,{method:"POST",body:r}).then(k2)},Nee=({app:e,instance:t,mfaToken:n,code:s})=>{const r=`${t}/oauth/mfa/challenge`,o=new window.FormData;return o.append("client_id",e.client_id),o.append("client_secret",e.client_secret),o.append("mfa_token",n),o.append("code",s),o.append("challenge_type","totp"),window.fetch(r,{method:"POST",body:o}).then(i=>i.json())},Fee=({app:e,instance:t,mfaToken:n,code:s})=>{const r=`${t}/oauth/mfa/challenge`,o=new window.FormData;return o.append("client_id",e.client_id),o.append("client_secret",e.client_secret),o.append("mfa_token",n),o.append("code",s),o.append("challenge_type","recovery"),window.fetch(r,{method:"POST",body:o}).then(i=>i.json())},Dee=({app:e,instance:t,token:n})=>{const s=`${t}/oauth/revoke`,r=new window.FormData;return r.append("client_id",e.clientId),r.append("client_secret",e.clientSecret),r.append("token",n),window.fetch(s,{method:"POST",body:r}).then(o=>o.json())},Oh={login:Lee,getToken:Ree,getTokenWithCredentials:Oee,verifyOTPCode:Nee,verifyRecoveryCode:Fee,revokeToken:Dee},Uee=e=>e.statusCode===422||e.statusCode===400||e.statusCode===401,jee=e=>e.statusCode===401||e.statusCode===400,Ar=vs("oauth",{state:()=>({clientId:!1,clientSecret:!1,appToken:!1,userToken:!1}),getters:{getToken(){return this.userToken||this.appToken},getUserToken(){return this.userToken}},actions:{setClientData({clientId:e,clientSecret:t}){this.clientId=e,this.clientSecret=t},setAppToken(e){this.appToken=e},setToken(e){this.userToken=e},clearToken(){this.userToken=!1},async createApp(){const{state:e}=window.vuex,t=e.instance.server,n=await Iee(t);return this.setClientData(n),n},async ensureApp(){return this.clientId&&this.clientSecret?{clientId:this.clientId,clientSecret:this.clientSecret}:this.createApp()},async getAppToken(){const{state:e}=window.vuex,t=e.instance.server,n=await Mee({clientId:this.clientId,clientSecret:this.clientSecret,instance:t});return this.setAppToken(n.access_token),n.access_token},async ensureAppToken(){const{state:e}=window.vuex;if(this.appToken)try{return await Pee({instance:e.instance.server,appToken:this.appToken}),this.appToken}catch(t){if(Uee(t))this.setAppToken(!1);else throw t}try{await this.ensureApp()}catch(t){throw console.error("Cannot create app",t),t}try{return await this.getAppToken()}catch(t){if(jee(t))return this.setClientData({clientId:!1,clientSecret:!1}),await this.createApp(),await this.getAppToken();throw console.error("Cannot get app token",t),t}}},persist:{afterLoad(e){return e.token&&!e.userToken&&(e.userToken=e.token),"token"in e&&delete e.token,e}}}),Bee=Object.freeze(Object.defineProperty({__proto__:null,useOAuthStore:Ar},Symbol.toStringTag,{value:"Module"})),es=[];for(let e=0;e<256;++e)es.push((e+256).toString(16).slice(1));function zee(e,t=0){return(es[e[t+0]]+es[e[t+1]]+es[e[t+2]]+es[e[t+3]]+"-"+es[e[t+4]]+es[e[t+5]]+"-"+es[e[t+6]]+es[e[t+7]]+"-"+es[e[t+8]]+es[e[t+9]]+"-"+es[e[t+10]]+es[e[t+11]]+es[e[t+12]]+es[e[t+13]]+es[e[t+14]]+es[e[t+15]]).toLowerCase()}let db;const qee=new Uint8Array(16);function Hee(){if(!db){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");db=crypto.getRandomValues.bind(crypto)}return db(qee)}const Vee=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$C={randomUUID:Vee};function qP(e,t,n){var r;if($C.randomUUID&&!e)return $C.randomUUID();e=e||{};const s=e.random??((r=e.rng)==null?void 0:r.call(e))??Hee();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,zee(s)}const Wee=[{field:"muteFilters",store:"server-side",migrationFlag:"configMigration",migrationNum:1,description:"Mute filters, wordfilter/regexp/etc",valueType:"complex",migration(e,t){t.config.muteWords.forEach((n,s)=>{const r=qP();e.setPreference({path:"simple.muteFilters."+r,value:{type:"word",value:n,name:n,enabled:!0,expires:null,hide:!1,order:s}})})}}
659],Gee=(e,t,n)=>{if(!n)return!1;const s=t[n.id];return s?(Z.mergeWith(s,n,$2),{item:s,new:!1}):(e.push(n),t[n.id]=n,{item:n,new:!0})},$2=(e,t)=>{if(Z.isArray(e)&&Z.isArray(t))return e.length=t.length,Z.mergeWith(e,t,$2)},Kee=()=>{const e=window.Notification;return e?e.permission==="default"?e.requestPermission():Promise.resolve(e.permission):Promise.resolve(null)},CC=(e,t)=>{const n=t.id,s=typeof t=="object"?t.expiresIn:0,r=e.state.relationships[n]||{id:n};return e.commit("updateUserRelationship",[r]),e.commit("addBlockId",n),e.rootState.api.backendInteractor.blockUser({id:n,expiresIn:s}).then(o=>{e.commit("updateUserRelationship",[o]),e.commit("addBlockId",n),e.commit("removeStatus",{timeline:"friends",userId:n}),e.commit("removeStatus",{timeline:"public",userId:n}),e.commit("removeStatus",{timeline:"publicAndExternal",userId:n})})},TC=(e,t)=>e.rootState.api.backendInteractor.unblockUser({id:t}).then(n=>e.commit("updateUserRelationship",[n])),xee=(e,t)=>e.rootState.api.backendInteractor.removeUserFromFollowers({id:t}).then(n=>e.commit("updateUserRelationship",[n])),Yee=(e,{id:t,comment:n})=>e.rootState.api.backendInteractor.editUserNote({id:t,comment:n}).then(s=>e.commit("updateUserRelationship",[s])),AC=(e,t)=>{const n=typeof t=="object"?t.id:t,s=typeof t=="object"?t.expiresIn:0,r=e.state.relationships[n]||{id:n};return e.commit("updateUserRelationship",[r]),e.commit("addMuteId",n),e.rootState.api.backendInteractor.muteUser({id:n,expiresIn:s}).then(o=>{e.commit("updateUserRelationship",[o]),e.commit("addMuteId",n)})},EC=(e,t)=>{const n=e.state.relationships[t]||{id:t};return n.muting=!1,e.commit("updateUserRelationship",[n]),e.rootState.api.backendInteractor.unmuteUser({id:t}).then(s=>e.commit("updateUserRelationship",[s]))},Xee=(e,t)=>e.rootState.api.backendInteractor.followUser({id:t,reblogs:!1}).then(n=>{e.commit("updateUserRelationship",[n])}),Jee=(e,t)=>e.rootState.api.backendInteractor.followUser({id:t,reblogs:!0}).then(n=>e.commit("updateUserRelationship",[n])),IC=(e,t)=>e.rootState.api.backendInteractor.muteDomain({domain:t}).then(()=>e.commit("addDomainMute",t)),PC=(e,t)=>e.rootState.api.backendInteractor.unmuteDomain({domain:t}).then(()=>e.commit("removeDomainMute",t)),Zee={tagUser(e,{user:{id:t},tag:n}){const s=e.usersObject[t],o=(s.tags||[]).concat([n]);s.tags=o},untagUser(e,{user:{id:t},tag:n}){const s=e.usersObject[t],o=(s.tags||[]).filter(i=>i!==n);s.tags=o},updateRight(e,{user:{id:t},right:n,value:s}){const r=e.usersObject[t],o=r.rights;o[n]=s,r.rights=o},updateActivationStatus(e,{user:{id:t},deactivated:n}){const s=e.usersObject[t];s.deactivated=n},setCurrentUser(e,t){e.lastLoginName=t.screen_name,e.currentUser=Z.mergeWith(e.currentUser||{},t,$2)},clearCurrentUser(e){e.currentUser=!1,e.lastLoginName=!1},beginLogin(e){e.loggingIn=!0},endLogin(e){e.loggingIn=!1},saveFriendIds(e,{id:t,friendIds:n}){const s=e.usersObject[t];s.friendIds=Z.uniq(Z.concat(s.friendIds||[],n))},saveFollowerIds(e,{id:t,followerIds:n}){const s=e.usersObject[t];s.followerIds=Z.uniq(Z.concat(s.followerIds||[],n))},clearFriends(e,t){const n=e.usersObject[t];n&&(n.friendIds=[])},clearFollowers(e,t){const n=e.usersObject[t];n&&(n.followerIds=[])},addNewUsers(e,t){Z.each(t,n=>{n.relationship&&(e.relationships[n.relationship.id]=n.relationship);const s=Gee(e.users,e.usersObject,n),r=s.item;s.new&&r.screen_name&&!r.screen_name.includes("@")&&(e.usersByNameObject[r.screen_name.toLowerCase()]=r)})},updateUserRelationship(e,t){t.forEach(n=>{e.relationships[n.id]=n})},updateUserInLists(e,{id:t,inLists:n}){e.usersObject[t].inLists=n},saveBlockIds(e,t){e.currentUser.blockIds=t},addBlockId(e,t){e.currentUser.blockIds.indexOf(t)===-1&&e.currentUser.blockIds.push(t)},setBlockIdsMaxId(e,t){e.currentUser.blockIdsMaxId=t},saveMuteIds(e,t){e.currentUser.muteIds=t},setMuteIdsMaxId(e,t){e.currentUser.muteIdsMaxId=t},addMuteId(e,t){e.currentUser.muteIds.indexOf(t)===-1&&e.currentUser.muteIds.push(t)},saveDomainMutes(e,t){e.currentUser.domainMutes=t},addDomainMute(e,t){e.currentUser.domainMutes.indexOf(t)===-1&&e.currentUser.domainMutes.push(t)},removeDomainMute(e,t){const n=e.currentUser.domainMutes.indexOf(t);n!==-1&&e.currentUser.domainMutes.splice(n,1)},setPinnedToUser(e,t){const n=e.usersObject[t.user.id];n.pinnedStatusIds=n.pinnedStatusIds||[];const s=n.pinnedStatusIds.indexOf(t.id);t.pinned&&s===-1?n.pinnedStatusIds.push(t.id):!t.pinned&&s!==-1&&n.pinnedStatusIds.splice(s,1)},setUserForStatus(e,t){t.user=e.usersObject[t.user.id]},setUserForNotification(e,t){t.type!=="follow"&&(t.action.user=e.usersObject[t.action.user.id]),t.from_profile=e.usersObject[t.from_profile.id]},setColor(e,{user:{id:t},highlighted:n}){const s=e.usersObject[t];s.highlight=n},signUpPending(e){e.signUpPending=!0,e.signUpErrors=[],e.signUpNotice={}},signUpSuccess(e){e.signUpPending=!1},signUpFailure(e,t){e.signUpPending=!1,e.signUpErrors=t,e.signUpNotice={}},signUpNotice(e,t){e.signUpPending=!1,e.signUpErrors=[],e.signUpNotice=t}},Qee={findUser:e=>t=>e.usersObject[t],findUserByName:e=>t=>e.usersByNameObject[t.toLowerCase()],findUserByUrl:e=>t=>e.users.find(n=>n.statusnet_profile_url&&n.statusnet_profile_url.toLowerCase()===t.toLowerCase()),relationship:e=>t=>t&&e.relationships[t]||{id:t,loading:!0}},ete={loggingIn:!1,lastLoginName:!1,currentUser:!1,users:[],usersObject:{},usersByNameObject:{},signUpPending:!1,signUpErrors:[],signUpNotice:{},relationships:{}},tte={state:ete,mutations:Zee,getters:Qee,actions:{fetchUserIfMissing(e,t){e.getters.findUser(t)||e.dispatch("fetchUser",t)},fetchUser(e,t){return e.rootState.api.backendInteractor.fetchUser({id:t}).then(n=>(e.commit("addNewUsers",[n]),n))},fetchUserByName(e,t){return e.rootState.api.backendInteractor.fetchUserByName({name:t}).then(n=>(e.commit("addNewUsers",[n]),n))},fetchUserRelationship(e,t){e.state.currentUser&&e.rootState.api.backendInteractor.fetchUserRelationship({id:t}).then(n=>e.commit("updateUserRelationship",n))},fetchUserInLists(e,t){e.state.currentUser&&e.rootState.api.backendInteractor.fetchUserInLists({id:t}).then(n=>e.commit("updateUserInLists",{id:t,inLists:n}))},fetchBlocks(e,t){const{reset:n}=t||{},s=e.state.currentUser.blockIdsMaxId;return e.rootState.api.backendInteractor.fetchBlocks({maxId:s}).then(r=>(n?e.commit("saveBlockIds",Z.map(r,"id")):Z.map(r,"id").map(o=>e.commit("addBlockId",o)),r.length&&e.commit("setBlockIdsMaxId",Z.last(r).id),e.commit("addNewUsers",r),r))},blockUser(e,t){return CC(e,t)},unblockUser(e,t){return TC(e,t)},removeUserFromFollowers(e,t){return xee(e,t)},blockUsers(e,t=[]){return Promise.all(t.map(n=>CC(e,n)))},unblockUsers(e,t=[]){return Promise.all(t.map(n=>
659TC(e,n)))},editUserNote(e,t){return Yee(e,t)},fetchMutes(e,t){const{reset:n}=t||{},s=e.state.currentUser.muteIdsMaxId;return e.rootState.api.backendInteractor.fetchMutes({maxId:s}).then(r=>(n?e.commit("saveMuteIds",Z.map(r,"id")):Z.map(r,"id").map(o=>e.commit("addMuteId",o)),r.length&&e.commit("setMuteIdsMaxId",Z.last(r).id),e.commit("addNewUsers",r),r))},muteUser(e,t){return AC(e,t)},unmuteUser(e,t){return EC(e,t)},hideReblogs(e,t){return Xee(e,t)},showReblogs(e,t){return Jee(e,t)},muteUsers(e,t=[]){return Promise.all(t.map(n=>AC(e,n)))},unmuteUsers(e,t=[]){return Promise.all(t.map(n=>EC(e,n)))},fetchDomainMutes(e){return e.rootState.api.backendInteractor.fetchDomainMutes().then(t=>(e.commit("saveDomainMutes",t),t))},muteDomain(e,t){return IC(e,t)},unmuteDomain(e,t){return PC(e,t)},muteDomains(e,t=[]){return Promise.all(t.map(n=>IC(e,n)))},unmuteDomains(e,t=[]){return Promise.all(t.map(n=>PC(e,n)))},fetchFriends({rootState:e,commit:t},n){const s=e.users.usersObject[n],r=Z.last(s.friendIds);return e.api.backendInteractor.fetchFriends({id:n,maxId:r}).then(o=>(t("addNewUsers",o),t("saveFriendIds",{id:n,friendIds:Z.map(o,"id")}),o))},fetchFollowers({rootState:e,commit:t},n){const s=e.users.usersObject[n],r=Z.last(s.followerIds);return e.api.backendInteractor.fetchFollowers({id:n,maxId:r}).then(o=>(t("addNewUsers",o),t("saveFollowerIds",{id:n,followerIds:Z.map(o,"id")}),o))},clearFriends({commit:e},t){e("clearFriends",t)},clearFollowers({commit:e},t){e("clearFollowers",t)},subscribeUser({rootState:e,commit:t},n){return e.api.backendInteractor.followUser({id:n,notify:!0}).then(s=>t("updateUserRelationship",[s]))},unsubscribeUser({rootState:e,commit:t},n){return e.api.backendInteractor.followUser({id:n,notify:!1}).then(s=>t("updateUserRelationship",[s]))},toggleActivationStatus({rootState:e,commit:t},{user:n}){(n.deactivated?e.api.backendInteractor.activateUser:e.api.backendInteractor.deactivateUser)({user:n}).then(r=>{const o=!r.is_active;t("updateActivationStatus",{user:r,deactivated:o})})},registerPushNotifications(e){const t=e.state.currentUser.credentials,n=e.rootState.instance.vapidPublicKey,s=e.rootState.config.webPushNotifications,r=e.rootState.config.notificationVisibility;fz(s,n,t,r)},unregisterPushNotifications(e){const t=e.state.currentUser.credentials;hz(t)},addNewUsers({commit:e},t){e("addNewUsers",t)},addNewStatuses(e,{statuses:t}){const n=Z.map(t,"user"),s=Z.compact(Z.map(t,"retweeted_status.user"));e.commit("addNewUsers",n),e.commit("addNewUsers",s),Z.each(t,r=>{e.commit("setUserForStatus",r),e.commit("setPinnedToUser",r)}),Z.each(Z.compact(Z.map(t,"retweeted_status")),r=>{e.commit("setUserForStatus",r),e.commit("setPinnedToUser",r)})},addNewNotifications(e,{notifications:t}){const n=Z.map(t,"from_profile"),s=Z.map(t,"target").filter(a=>a),r=t.map(a=>a.id);e.commit("addNewUsers",n),e.commit("addNewUsers",s);const o=e.rootState.notifications.idStore,i=Object.entries(o).filter(([a])=>r.includes(a)).map(([,a])=>a);Z.each(i,a=>{e.commit("setUserForNotification",a)})},searchUsers({rootState:e,commit:t},{query:n}){return e.api.backendInteractor.searchUsers({query:n}).then(s=>(t("addNewUsers",s),s))},async signUp(e,t){const n=Ar();e.commit("signUpPending");try{const s=await n.ensureAppToken(),r=await Ln.register({credentials:s,params:{...t}});return r.access_token?(e.commit("signUpSuccess"),n.setToken(r.access_token),e.dispatch("loginUser",r.access_token),"ok"):(e.commit("signUpNotice",r),"request_sent")}catch(s){const r=s.message;throw e.commit("signUpFailure",r),s}},async getCaptcha(e){return e.rootState.api.backendInteractor.getCaptcha()},logout(e){const t=Ar(),{instance:n}=e.rootState;return t.ensureApp().then(s=>{const r={app:s,instance:n.server,token:t.userToken};return Oh.revokeToken(r)}).then(()=>{e.commit("clearCurrentUser"),e.dispatch("disconnectFromSocket"),t.clearToken(),e.dispatch("stopFetchingTimeline","friends"),e.commit("setBackendInteractor",Ih(t.getToken)),e.dispatch("stopFetchingNotifications"),e.dispatch("stopFetchingLists"),e.dispatch("stopFetchingBookmarkFolders"),e.dispatch("stopFetchingFollowRequests"),e.commit("clearNotifications"),e.commit("resetStatuses"),e.dispatch("resetChats"),Xe().set
659LastTimeline("public-timeline"),Xe().setLayoutWidth(Ph()),Xe().setLayoutHeight(Lh()),e.commit("clearServerSideStorage")})},loginUser(e,t){return new Promise((n,s)=>{const r=e.commit,o=e.dispatch,i=e.rootState;r("beginLogin"),e.rootState.api.backendInteractor.verifyCredentials(t).then(a=>{if(a.error){const c=a.error;r("endLogin"),[400,401,403,422].includes(c.status)&&Ar().clearToken(),c.status===401?s(new Error("Wrong username or password")):s(new Error("An error occurred, please try again"))}else{const c=a;c.credentials=t,c.blockIds=[],c.muteIds=[],c.domainMutes=[],r("setCurrentUser",c),_n().setServerSideStorage(c),r("addNewUsers",[c]),o("fetchEmoji"),Kee().then(h=>Xe().setNotificationPermission(h)),r("setBackendInteractor",Ih(t));const{configMigration:u}=_n().flagStorage;Wee.filter(h=>h.store==="server-side"&&h.migrationNum>0&&h.migrationNum>u).toSorted((h,v)=>h.configMigration-v.configMigration).forEach(h=>{h.migration(_n(),e.rootState),_n().setFlag({flag:"configMigration",value:h.migrationNum}),_n().pushServerSideStorage()}),c.token&&(o("setWsToken",c.token),o("initializeSocket"));const f=()=>{o("startFetchingTimeline",{timeline:"friends"}),o("startFetchingNotifications"),i.instance.pleromaChatMessagesAvailable&&o("startFetchingChats")};o("startFetchingLists"),o("startFetchingBookmarkFolders"),c.locked&&o("startFetchingFollowRequests"),e.getters.mergedConfig.useStreamingApi?(o("fetchTimeline",{timeline:"friends",since:null}),o("fetchNotifications",{since:null}),o("enableMastoSockets",!0).catch(h=>{console.error("Failed initializing MastoAPI Streaming socket",h)}).then(()=>{o("fetchChats",{latest:!0}),setTimeout(()=>o("setNotificationsSilence",!1),1e4)})):f(),o("fetchMutes"),Xe().setLayoutWidth(Ph()),Xe().setLayoutHeight(Lh()),e.rootState.api.backendInteractor.fetchFriends({id:c.id}).then(h=>r("addNewUsers",h))}r("endLogin"),n()}).catch(a=>{console.error(a),r("endLogin"),s(new Error("Failed to connect to server, try again"))})})}}},HP=(e,t)=>{if(!t.lastMessage||e.rootState.chats.currentChatId===t.id&&!document.hidden||e.rootState.users.currentUser.id===t.lastMessage.account_id)return;const n={tag:t.lastMessage.id,title:t.account.name,icon:t.account.profile_image_url,body:t.lastMessage.content};t.lastMessage.attachment&&t.lastMessage.attachment.type==="image"&&(n.image=t.lastMessage.attachment.preview_url),y5(e.rootState,n)},nte=({content:e,chatId:t,attachments:n,userId:s,idempotencyKey:r})=>{const o={content:e,chat_id:t,created_at:new Date,id:`${new Date().getTime()}`,attachments:n,account_id:s,idempotency_key:r,emojis:[],pending:!0,isNormalized:!0};return n[0]&&(o.attachment=n[0]),o};var Ou=e=>typeof e=="function"?e:function(){return e},ste=typeof self<"u"?self:null,hu=typeof window<"u"?window:null,Kr=ste||hu||globalThis,rte="2.0.0",Yr={connecting:0,open:1,closing:2,closed:3},ote=1e4,ite=1e3,Ws={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Lo={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},yy={longpoll:"longpoll",websocket:"websocket"},ate={complete:4},_y="base64url.bearer.phx.",Lf=class{constructor(e,t,n,s){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(s=>s.status===e).forEach(s=>s.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},VP=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},lte=class{constructor(e,t,n){this.state=Ws.closed,this.topic=e,this.params=Ou(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Lf(this,Lo.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new VP(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Ws.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Ws.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=Ws.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=Ws.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new Lf(this,Lo.leave,Ou({}),this.timeout).send(),this.state=Ws.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Lo.reply,(s,r)=>{this.trigger(this.replyEventName(r),s)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(e){this.on(Lo.close,e)}onError(e){return this.on(Lo.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new Lf(this,e,function(){return t},n);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Ws.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Lo.close,"leave")},n=new Lf(this,Lo.leave,Ou({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}isMember(e,t,n,s){return this.topic!==e?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Ws.joining,this.joinPush.resend(e))}trigger(e,t,n,s){let r=this.onMessage(e,t,n,s);if(t&&!r)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(i=>i.event===e);for(let i=0;i<o.length;i++)o[i].callback(r,n,s||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Ws.closed}isErrored(){return this.state===Ws.errored}isJoined(){return this.state===Ws.joined}isJoining(){return this.state===Ws.joining}isLeaving(){return this.state===Ws.leaving}}
659,Rh=class{static request(e,t,n,s,r,o,i){if(Kr.XDomainRequest){let a=new Kr.XDomainRequest;return this.xdomainRequest(a,e,t,s,r,o,i)}else if(Kr.XMLHttpRequest){let a=new Kr.XMLHttpRequest;return this.xhrRequest(a,e,t,n,s,r,o,i)}else{if(Kr.fetch&&Kr.AbortController)return this.fetchRequest(e,t,n,s,r,o,i);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,s,r,o,i){let a={method:e,headers:n,body:s},c=null;return r&&(c=new AbortController,setTimeout(()=>c.abort(),r),a.signal=c.signal),Kr.fetch(t,a).then(u=>u.text()).then(u=>this.parseJSON(u)).then(u=>i&&i(u)).catch(u=>{u.name==="AbortError"&&o?o():i&&i(null)}),c}static xdomainRequest(e,t,n,s,r,o,i){return e.timeout=r,e.open(t,n),e.onload=()=>{let a=this.parseJSON(e.responseText);i&&i(a)},o&&(e.ontimeout=o),e.onprogress=()=>{},e.send(s),e}static xhrRequest(e,t,n,s,r,o,i,a){e.open(t,n,!0),e.timeout=o;for(let[c,u]of Object.entries(s))e.setRequestHeader(c,u);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===ate.complete&&a){let c=this.parseJSON(e.responseText);a(c)}},i&&(e.ontimeout=i),e.send(r),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let r=t?`${t}[${s}]`:s,o=e[s];typeof o=="object"?n.push(this.serialize(o,r)):n.push(encodeURIComponent(r)+"="+encodeURIComponent(o))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},cte=e=>{let t="",n=new Uint8Array(e),s=n.byteLength;for(let r=0;r<s;r++)t+=String.fromCharCode(n[r]);return btoa(t)},Xc=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(_y)&&(this.authToken=atob(t[1].slice(_y.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Yr.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+yy.websocket),"$1/"+yy.longpoll)}endpointURL(){return Rh.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Yr.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Yr.open||this.readyState===Yr.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:s,messages:r}=t;this.token=s}else n=0;switch(n){case 200:r.forEach(o=>{setTimeout(()=>this.onmessage({data:o}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Yr.open,this.onopen({}),this.poll();break;
vendor: 4,491 bytes, lines 659-660
659case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=cte(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(`
660`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let r of this.reqs)r.abort();this.readyState=Yr.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(e,t,n,s,r){let o,i=()=>{this.reqs.delete(o),s()};o=Rh.request(e,this.endpointURL(),t,n,this.timeout,i,a=>{this.reqs.delete(o),this.isActive()&&r(a)}),this.reqs.add(o)}},Of={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,s,r,o,i]=JSON.parse(e);return t({join_ref:n,ref:s,topic:r,event:o,payload:i})}},binaryEncode(e){let{join_ref:t,ref:n,event:s,topic:r,payload:o}=e,i=this.META_LENGTH+t.length+n.length+r.length+s.length,a=new ArrayBuffer(this.HEADER_LENGTH+i),c=new DataView(a),u=0;c.setUint8(u++,this.KINDS.push),c.setUint8(u++,t.length),c.setUint8(u++,n.length),c.setUint8(u++,r.length),c.setUint8(u++,s.length),Array.from(t,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(n,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(r,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(s,h=>c.setUint8(u++,h.charCodeAt(0)));var f=new Uint8Array(a.byteLength+o.byteLength);return f.set(new Uint8Array(a),0),f.set(new Uint8Array(o),a.byteLength),f.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,s);case this.KINDS.reply:return this.decodeReply(e,t,s);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,s)}},decodePush(e,t,n){let s=t.getUint8(1),r=t.getUint8(2),o=t.getUint8(3),i=this.HEADER_LENGTH+this.META_LENGTH-1,a=n.decode(e.slice(i,i+s));i=i+s;let c=n.decode(e.slice(i,i+r));i=i+r;let u=n.decode(e.slice(i,i+o));i=i+o;let f=e.slice(i,e.byteLength);return{join_ref:a,ref:null,topic:c,event:u,payload:f}},decodeReply(e,t,n){let s=t.getUint8(1),r=t.getUint8(2),o=t.getUint8(3),i=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(e.slice(a,a+s));a=a+s;let u=n.decode(e.slice(a,a+r));a=a+r;let f=n.decode(e.slice(a,a+o));a=a+o;let h=n.decode(e.slice(a,a+i));a=a+i;let v=e.slice(a,e.byteLength),y={status:h,response:v};return{join_ref:c,ref:u,topic:f,event:Lo.reply,payload:y}},decodeBroadcast(e,t,n){let s=t.getUint8(1),r=t.getUint8(2),o=this.HEADER_LENGTH+2,i=n.decode(e.slice(o,o+s));o=o+s;let a=n.decode(e.slice(o,o+r));o=o+r;let c=e.slice(o,e.byteLength);return{join_ref:null,ref:null,topic:i,event:a,payload:c}}},ute=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=t.timeout||ote,this.transport=t.transport||Kr.WebSocket||Xc,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||Kr&&Kr.sessionStorage,this.establishedConnections=0,this.defaultEncoder=Of.encode.bind(Of),this.defaultDecoder=Of.decode.bind(Of),this.closeWasClean=!1,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Xc?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;hu&&hu.addEventListener&&(hu.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),n=this.connectClock)}),hu.addEventListener("pageshow",s=>{n===this.connectClock&&(n=null,this.connect())}
vendor: 1,624 bytes, line 660
660)),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,r,o)=>{console.log(`${s}: ${r}`,o)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Ou(t.params||{}),this.endPoint=`${e}/${yy.websocket}`,this.vsn=t.vsn||rte,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new VP(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return Xc}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Rh.appendParams(Rh.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Ou(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Xc?this.connectWithF
vendor: 4,150 bytes, line 660
660allback(Xc,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let s=this.onMessage(r=>{r.ref===t&&(this.off([s]),e(Date.now()-n))});return!0}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${_y}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,s=!0,r,o,i=a=>{this.log("transport",`falling back to ${e.name}...`,a),this.off([r,o]),s=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${e.name}`))return i("memorized");this.fallbackTimer=setTimeout(i,t),o=this.onError(a=>{this.log("transport","error",a),s&&!n&&(clearTimeout(this.fallbackTimer),i(a))}),this.onOpen(()=>{if(n=!0,!s)return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${e.name}`,"true"),this.log("transport",`established ${e.name} fallback`);clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(i,t),this.ping(a=>{this.log("transport","connected to primary after",a),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`${this.transport.name} connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,e])=>e())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),ite,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();let s=this.connectClock;this.waitForBufferDone(()=>{s===this.connectClock&&(this.conn&&(t?this.conn.close(t,n||""):this.conn.close()),this.waitForSocketClosed(()=>{s===this.connectClock&&(this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e())}))})}waitForBufferDone(e,t=1){if(t===5||!this.conn||!this.conn.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(e,t+1)},150*t)}waitForSocketClosed(e,t=1){if(t===5||!this.conn||this.conn.readyState===Yr.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(e,t+1)},150*t)}onConnClose(e){let t=e&&e.code;this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&t!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,n])=>n(e))}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,n=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,s])=>{s(e,t,n)}),(t===this.transport||n>0)&&this.triggerChanError()}
660triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(Lo.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Yr.connecting:return"connecting";case Yr.open:return"open";case Yr.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new lte(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:s,ref:r,join_ref:o}=e;this.log("push",`${t} ${n} (${o}, ${r})`,s)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:s,payload:r,ref:o,join_ref:i}=t;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${r.status||""} ${n} ${s} ${o&&"("+o+")"||""}`,r);for(let a=0;a<this.channels.length;a++){const c=this.channels[a];c.isMember(n,s,r,i)&&c.trigger(s,r,o,i)}for(let a=0;a<this.stateChangeCallbacks.message.length;a++){let[,c]=this.stateChangeCallbacks.message[a];c(t)}})}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};const Gl=vs("shout",{state:()=>({messages:[],channel:{state:""},joined:!1}),actions:{initializeShout(e){const t=e.channel("chat:public");t.joinPush.receive("ok",()=>{this.joined=!0}),t.onClose(()=>{this.joined=!1}),t.onError(()=>{this.joined=!1}),t.on("new_msg",n=>{this.messages.push(n),this.messages=this.messages.slice(-19,20)}),t.on("messages",({messages:n})=>{this.messages=n.slice(-19,20)}),t.join(),this.channel=t}}}),dte=Object.freeze(Object.defineProperty({__proto__:null,useShoutStore:Gl},Symbol.toStringTag,{value:"Module"})),fte=e=>1e3*e,hte={state:{retryMultiplier:1,backendInteractor:Ih(),fetchers:{},socket:null,mastoUserSocket:null,mastoUserSocketStatus:null,followRequests:[]},getters:{followRequestCount:e=>e.followRequests.length},mutations:{setBackendInteractor(e,t){e.backendInteractor=t},addFetcher(e,{fetcherName:t,fetcher:n}){e.fetchers[t]=n},removeFetcher(e,{fetcherName:t}){e.fetchers[t].stop(),delete e.fetchers[t]},setWsToken(e,t){e.wsToken=t},setSocket(e,t){e.socket=t},setFollowRequests(e,t){e.followRequests=t},setMastoUserSocketStatus(e,t){e.mastoUserSocketStatus=t},incrementRetryMultiplier(e){e.retryMultiplier=Math.max(++e.retryMultiplier,3)},resetRetryMultiplier(e){e.retryMultiplier=1}},actions:{enableMastoSockets(e,t){const{state:n,dispatch:s,commit:r}=e;if(!(n.mastoUserSocket&&![WebSocket.CLOSED,WebSocket.CLOSING].includes(n.mastoUserSocket.getState())))return t?r("setMastoUserSocketStatus",Ks.STARTING_INITIAL):r("setMastoUserSocketStatus",Ks.STARTING),s("startMastoUserSocket")},disableMastoSockets(e){const{state:t,dispatch:n,commit:s}=e;if(t.mastoUserSocket)return s("setMastoUserSocketStatus",Ks.DISABLED),n("stopMastoUserSocket")},startMastoUserSocket(e){return new Promise((t,n)=>{try{const{state:s,commit:r,dispatch:o,rootState:i}=e,a=i.statuses.timelines.friends;s.mastoUserSocket=s.backendInteractor.startUserSocket({store:e}),s.mastoUserSocket.addEventListener("pleroma:authenticated",()=>{s.mastoUserSocket.subscribe("user")}
660),s.mastoUserSocket.addEventListener("message",({detail:c})=>{c&&(c.event==="notification"?o("addNewNotifications",{notifications:[c.notification],older:!1}):c.event==="update"?o("addNewStatuses",{statuses:[c.status],userId:!1,showImmediately:a.visibleStatuses.length===0,timeline:"friends"}):c.event==="status.update"?o("addNewStatuses",{statuses:[c.status],userId:!1,showImmediately:c.status.id in a.visibleStatusesObject,timeline:"friends"}):c.event==="delete"?o("deleteStatusById",c.id):c.event==="pleroma:chat_update"&&setTimeout(()=>{o("addChatMessages",{chatId:c.chatUpdate.id,messages:[c.chatUpdate.lastMessage]}),o("updateChat",{chat:c.chatUpdate}),HP(e,c.chatUpdate)},100))}),s.mastoUserSocket.addEventListener("open",()=>{s.mastoUserSocketStatus!==Ks.STARTING_INITIAL&&Xe().pushGlobalNotice({level:"success",messageKey:"timeline.socket_reconnected",timeout:5e3}),new Set([Ks.ERROR,Ks.DISABLED]).has(s.mastoUserSocketStatus)&&(o("stopFetchingTimeline",{timeline:"friends"}),o("stopFetchingNotifications"),o("stopFetchingChats")),r("resetRetryMultiplier"),r("setMastoUserSocketStatus",Ks.JOINED)}),s.mastoUserSocket.addEventListener("error",({detail:c})=>{console.error("Error in MastoAPI websocket:",c),o("clearOpenedChats")}),s.mastoUserSocket.addEventListener("close",({detail:c})=>{const u=new Set([1e3,1001]),{code:f}=c;u.has(f)?(console.debug(`Not restarting socket becasue of closure code ${f} is in ignore list`),r("setMastoUserSocketStatus",Ks.CLOSED)):(console.warn(`MastoAPI websocket disconnected, restarting. CloseEvent code: ${f}`),setTimeout(()=>{o("startMastoUserSocket")},fte(s.retryMultiplier)),r("incrementRetryMultiplier"),s.mastoUserSocketStatus!==Ks.ERROR&&(o("startFetchingTimeline",{timeline:"friends"}),o("startFetchingNotifications"),o("startFetchingChats"),Xe().pushGlobalNotice({level:"error",messageKey:"timeline.socket_broke",messageArgs:[f],timeout:5e3})),r("setMastoUserSocketStatus",Ks.ERROR)),o("clearOpenedChats")}),t()}catch(s){n(s)}})},stopMastoUserSocket({state:e,dispatch:t}){t("startFetchingTimeline",{timeline:"friends"}),t("startFetchingNotifications"),t("startFetchingChats"),e.mastoUserSocket.close()},startFetchingTimeline(e,{timeline:t="friends",tag:n=!1,userId:s=!1,listId:r=!1,statusId:o=!1,bookmarkFolderId:i=!1}){if(t==="favourites"&&!e.rootState.instance.pleromaPublicFavouritesAvailable||e.state.fetchers[t])return;const a=e.state.backendInteractor.startFetchingTimeline({timeline:t,store:e,userId:s,listId:r,statusId:o,bookmarkFolderId:i,tag:n});e.commit("addFetcher",{fetcherName:t,fetcher:a})},stopFetchingTimeline(e,t){const n=e.state.fetchers[t];n&&e.commit("removeFetcher",{fetcherName:t,fetcher:n})},fetchTimeline(e,{timeline:t,...n}){e.state.backendInteractor.fetchTimeline({store:e,timeline:t,...n})},startFetchingNotifications(e){if(e.state.fetchers.notifications)return;const t=e.state.backendInteractor.startFetchingNotifications({store:e});e.commit("addFetcher",{fetcherName:"notifications",fetcher:t})},stopFetchingNotifications(e){const t=e.state.fetchers.notifications;t&&e.commit("removeFetcher",{fetcherName:"notifications",fetcher:t})},fetchNotifications(e,{...t}){e.state.backendInteractor.fetchNotifications({store:e,...t})},startFetchingFollowRequests(e){if(e.state.fetchers.followRequests)return;const t=e.state.backendInteractor.startFetchingFollowRequests({store:e});e.commit("addFetcher",{fetcherName:"followRequests",fetcher:t})},stopFetchingFollowRequests(e){const t=e.state.fetchers.followRequests;t&&e.commit("removeFetcher",{fetcherName:"followRequests",fetcher:t})},removeFollowRequest(e,t){const n=e.state.followRequests.filter(s=>s!==t);e.commit("setFollowRequests",n)},startFetchingLists(e){if(e.state.fetchers.lists)return;const t=e.state.backendInteractor.startFetchingLists({store:e});e.commit("addFetcher",{fetcherName:"lists",fetcher:t})},stopFetchingLists(e){const t=e.state.fetchers.lists;t&&e.commit("removeFetcher",{fetcherName:"lists",fetcher:t})},startFetchingBookmarkFolders(e){if(e.state.fetchers.bookmarkFolders||!e.rootState.instance.pleromaBookmarkFoldersAvailable)return;const t=e.state.backendInteractor.startFetchingBookmarkFolders({store:e});e.commit("addFetcher",{fetcherName:"bookmarkFolders",fetcher:t})},stopFetchingBookmarkFolders(e){const t=e.state.fetchers.bookmarkFolders;t&&e.commit("removeFetcher",{fetcherName:"bookmarkFolders",fetcher:t})},setWsToken(e,t){e.commit("setWsToken",t)},initializeSocket({commit:e,state:t,rootState:n}){const s=t.wsToken;if(n.instance.shoutAvailable&&typeof s<"u"&&t.socket===null){const r=new ute("/socket",{params:{token:s}});r.connect(),e("setSocket",r),Gl().initializeShout(r)}},disconnectFromSocket({commit:e,state:t}){t.socket&&t.socket.disconnect(),e("setSocket",null)}}},pte=({rootState:e,commit:t},{path:n,value:s})=>{const r={};return Z.set(r,n,s),e.api.backendInteractor.updateProfile({params:r}).then(o=>{t("addNewUsers",[o]),t("setCurrentUser",o)})},LC=({rootState:e,commit:t},{path:n,value:s,oldValue:r})=>{const o={};return Z.set(o,n,s),e.api.backendInteractor.updateNotificationSettings({settings:o}).then(i=>{i.status==="success"?t("confirmProfileOption",{name,value:s}):t("confirmProfileOption",{name,value:r})})},eh={defaultScope:"source.privacy",defaultNSFW:"source.sensitive",stripRichContent:{get:"source.pleroma.no_rich_text",set:"no_rich_text"},locked:"locked",acceptChatMessages:{get:"pleroma.accepts_chat_messages",set:"accepts_chat_messages"},allowFollowingMove:{get:"pleroma.allow_following_move",set:"allow_following_move"},discoverable:{get:"source.pleroma.discoverable",set:"discoverable"},hideFavorites:{get:"pleroma.hide_favorites",set:"hide_favorites"},hideFollowers:{get:"pleroma.hide_followers",set:"hide_followers"},hideFollows:{get:"pleroma.hide_follows",set:"hide_follows"},hideFollowersCount:{get:"pleroma.hide_followers_count",set:"hide_followers_count"},hideFollowsCount:{get:"pleroma.hide_follows_count",set:"hide_follows_count"},webPushHideContents:{get:"pleroma.notification_settings.hide_notification_contents",set:"hide_notification_contents",a
660pi:LC},blockNotificationsFromStrangers:{get:"pleroma.notification_settings.block_from_strangers",set:"block_from_strangers",api:LC}},mte=Object.fromEntries(Object.keys(eh).map(e=>[e,null])),gte={state:{...mte},mutations:{confirmProfileOption(e,{name:t,value:n}){Z.set(e,t,n)},wipeProfileOption(e,{name:t}){Z.set(e,t,null)},wipeAllProfileOptions(e){Object.keys(eh).forEach(t=>{Z.set(e,t,null)})},setCurrentUser(e,t){Object.entries(eh).forEach(n=>{const[s,r]=n,{get:o=r}=r;Z.set(e,s,Z.get(t._original,o))})}},actions:{setProfileOption({rootState:e,state:t,commit:n},{name:s,value:r}){const o=Z.get(t,s),i=eh[s];if(!i)throw new Error("Invalid server-side setting");const{set:a=i,api:c=pte}=i;n("wipeProfileOption",{name:s}),c({rootState:e,commit:n},{path:a,value:r,oldValue:o}).catch(u=>{console.warn("Error setting server-side option:",u),n("confirmProfileOption",{name:s,value:o})})},logout({commit:e}){e("wipeAllProfileOptions")}}},WP={frontends:[],loaded:!1,needsReboot:null,config:null,modifiedPaths:null,descriptions:null,draft:null,dbConfigEnabled:null};({...WP.flagStorage});const vte={state:{...Z.cloneDeep(WP)},mutations:{setInstanceAdminNoDbConfig(e){e.loaded=!1,e.dbConfigEnabled=!1},setAvailableFrontends(e,{frontends:t}){e.frontends=t.map(n=>(n.installedRefs=n.installed_refs,n.name==="pleroma-fe"?n.refs=["master","develop"]:n.refs=[n.ref],n))},updateAdminSettings(e,{config:t,modifiedPaths:n}){e.loaded=!0,e.dbConfigEnabled=!0,e.config=t,e.modifiedPaths=n},updateAdminDescriptions(e,{descriptions:t}){e.descriptions=t},updateAdminDraft(e,{path:t,value:n}){const[s,r,o]=t,i=[s,r,o];Z.set(e.draft,t,n),t.length>i.length&&Z.set(e.draft,i,Z.cloneDeep(Z.get(e.draft,i)))},resetAdminDraft(e){e.draft=Z.cloneDeep(e.config)}},actions:{loadFrontendsStuff({rootState:e,commit:t}){e.api.backendInteractor.fetchAvailableFrontends().then(n=>t("setAvailableFrontends",{frontends:n}))},loadAdminStuff({state:e,rootState:t,dispatch:n,commit:s}){t.api.backendInteractor.fetchInstanceDBConfig().then(r=>{r.error?r.error.status===400&&r.error.json().then(o=>{/configurable_from_database/.test(o.error)&&s("setInstanceAdminNoDbConfig")}):n("setInstanceAdminSettings",{backendDbConfig:r})}),e.descriptions===null&&t.api.backendInteractor.fetchInstanceConfigDescriptions().then(r=>n("setInstanceAdminDescriptions",{backendDescriptions:r}))},setInstanceAdminSettings({state:e,commit:t},{backendDbConfig:n}){const s=e.config||{},r=new Set;n.configs.forEach(i=>{const a=[i.group,i.key];i.db&&i.db.forEach(f=>r.add([...a,f].join(" -> ")));const c=(f,h,v)=>Array.isArray(f)&&f.length>0&&f[0].tuple?h?f.map(y=>y.tuple):f.reduce((y,S)=>({...y,[S.tuple[0]]:c(S.tuple[1],v)}),{}):h?f.tuple:f,u=a.find(f=>f===":rate_limit");Z.set(s,a,c(i.value,!1,u))});const o=s[":pleroma"][":http"][":adapter"];Array.isArray(o)&&(s[":pleroma"][":http"][":adapter"]={":ssl_options":{":versions":[]}}),t("updateAdminSettings",{config:s,modifiedPaths:r}),t("resetAdminDraft")},setInstanceAdminDescriptions({commit:e},{backendDescriptions:t}){const n=({children:r,description:o,label:i,key:a="<ROOT>",group:c,suggestions:u},f,h)=>{const v=c?[c,a]:[a],y={description:o,label:i,suggestions:u};Array.isArray(r)&&r.forEach(S=>{n(S,v,y)}),Z.set(h,v,y)},s={};t.forEach(r=>n(r,"",s)),e("updateAdminDescriptions",{descriptions:s})},pushAdminDraft({rootState:e,state:t,dispatch:n}){const s=a=>typeof a!="object"?a:Array.isArray(a)?a.map(s):Object.entries(a).map(([c,u])=>({tuple:[c,u]})),i=Z.flatten(Object.entries(t.config).map(([a,c])=>Object.keys(c).map(u=>({group:a,key:u})))).filter(({group:a,key:c})=>!Z.isEqual(t.config[a][c],t.draft[a][c])).map(({group:a,key:c})=>{const u=t.config[a][c],f=t.draft[a][c],h=Object.entries(u),v=Object.entries(f);return{group:a,key:c,value:s(Object.fromEntries(Z.differenceWith(v,h,Z.isEqual)))}});e.api.backendInteractor.pushInstanceDBConfig({payload:{configs:i}}).then(()=>e.api.backendInteractor.fetchInstanceDBConfig()).then(a=>n("setInstanceAdminSettings",{backendDbConfig:a}))},pushAdminSetting({rootState:e,dispatch:t},{path:n,value:s}){const[r,o,...i]=Array.isArray(n)?n:n.split(/\./g),a={};Z.set(a,i,s);const c=u=>typeof u!="object"?u:Array.isArray(u)?u.map(c):Object.entries(u).map(([f,h])=>({tuple:[f,h]}));e.api.backendInteractor.pushInstanceDBConfig({payload:{configs:[{group:r,key:o,value:c(a)}]}}).then(()=>e.api.backendInteractor.fetchInstanceDBConfig()).then(u=>t("setInstanceAdminSettings",{backendDbConfig:u}))},resetAdminSetting({rootState:e,state:t,dispatch:n},{path:s}){const[r,o,i]=Array.isArray(s)?s:s.split(/\./g);return t.modifiedPaths.delete(s),e.api.backendInteractor.pushInstanceDBConfig({payload:{configs:[{group:r,key:o,delete:!0,subkeys:[i]}]}}).then(()=>e.api.backendInteractor.fetchInstanceDBConfig()).then(a=>n("setInstanceAdminSettings",{backendDbConfig:a}))}}},Wp=M_,bte={drafts:{}},yte={addOrSaveDraft(e,{draft:t}){e.drafts[t.id]=t},abandonDraft(e,{id:t}){delete e.drafts[t]},loadDrafts(e,t){e.drafts=t}},C2="pleroma-fe-drafts",T2=async()=>await Wp.getItem(C2)||{},_te=async e=>{const t=await T2();t[e.id]=JSON.parse(JSON.stringify(e)),await Wp.setItem(C2,t)},wte=async e=>{const t=await T2();delete t[e],await Wp.setItem(C2,t)},Ste={async addOrSaveDraft(e,{draft:t}){const n=t.id||new Date().getTime().toString(),s={...t,id:n};return e.commit("addOrSaveDraft",{draft:s}),await _te(s),n},async abandonDraft(e,{id:t}){e.commit("abandonDraft",{id:t}),await wte(t)},async loadDrafts(e){const t=await T2();e.commit("loadDrafts",t)}}
660,kte={draftsByTypeAndRefId(e){return(t,n)=>Object.values(e.drafts).filter(s=>s.type===t&&s.refId===n)},draftsArray(e){return Object.values(e.drafts)},draftCount(e){return Object.values(e.drafts).length}},$te={state:bte,mutations:yte,getters:kte,actions:Ste},Cte=e=>({idIndex:{},idempotencyKeyIndex:{},messages:[],newMessageCount:0,lastSeenMessageId:"0",chatId:e,minId:void 0,maxId:void 0}),Tte=e=>{const t=[];for(const n of e.messages)n.error?t.push(n.id):(delete e.idIndex[n.id],delete e.idempotencyKeyIndex[n.idempotency_key]);e.messages=e.messages.filter(n=>t.includes(n.id)),e.newMessageCount=0,e.lastSeenMessageId="0",e.minId=void 0,e.maxId=void 0},Ate=(e,t)=>{if(e){if(e.messages=e.messages.filter(n=>n.id!==t),delete e.idIndex[t],e.maxId===t){const n=Fi.maxBy(e.messages,"id");e.maxId=n.id}if(e.minId===t){const n=Fi.minBy(e.messages,"id");e.minId=n.id}}},Ete=e=>{const t=e.messages.length,n=t-50;if(!(t<=50)){e.messages=Fi.sortBy(e.messages,["id"]),e.minId=e.messages[n].id;for(const s of e.messages)s.id<e.minId&&(delete e.idIndex[s.id],delete e.idempotencyKeyIndex[s.idempotency_key]);e.messages=e.messages.slice(n,t)}},Ite=(e,t,n)=>{if(!e)return;const s=e.idIndex[t];if(s&&(s.error=!0,s.pending=!1,!n)){const r=Fi.orderBy(e.messages,["pending","id"],["asc","desc"])[0];if(r){const o=s.id;s.id=`${r.id}-${new Date().getTime()}`,e.idIndex[s.id]=s,delete e.idIndex[o]}}},Pte=(e,{messages:t,updateMaxId:n=!0})=>{if(e)for(let s=0;s<t.length;s++){const r=t[s];if(r.chat_id!==e.chatId)return;if(r.fakeId){const o=e.idIndex[r.fakeId];if(o){e.idIndex[r.id]&&(delete e.idIndex[r.id],e.messages=e.messages.filter(i=>i.id!==r.id)),Object.assign(o,r,{error:!1}),delete o.fakeId,e.idIndex[o.id]=o,delete e.idIndex[r.fakeId];return}}(!e.minId||!r.pending&&r.id<e.minId)&&(e.minId=r.id),(!e.maxId||r.id>e.maxId)&&n&&(e.maxId=r.id),!e.idIndex[r.id]&&!Lte(e,r)&&(e.lastSeenMessageId<r.id&&e.newMessageCount++,e.idIndex[r.id]=r,e.messages.push(e.idIndex[r.id]),e.idempotencyKeyIndex[r.idempotency_key]=!0)}},Lte=(e,t)=>{if(t.idempotency_key)return e.idempotencyKeyIndex[t.idempotency_key]},Ote=e=>{e&&(e.newMessageCount=0,e.lastSeenMessageId=e.maxId)},Rte=e=>{if(!e)return[];const t=[],n=Fi.orderBy(e.messages,["pending","id"],["asc","asc"]),s=n[0];let r=n[n.length-1],o;if(s){const a=new Date(s.created_at);a.setHours(0,0,0,0),t.push({type:"date",date:a,id:a.getTime().toString()})}let i=!1;for(let a=0;a<n.length;a++){const c=n[a],u=n[a+1],f=new Date(c.created_at);f.setHours(0,0,0,0),r&&r.date<f&&(t.push({type:"date",date:f,id:f.getTime().toString()}),r.isTail=!0,o=void 0,i=!0);const h={type:"message",data:c,date:f,id:c.id,messageChainId:o};(u&&u.account_id)!==c.account_id&&(h.isTail=!0,o=void 0),((r&&r.data&&r.data.account_id)!==c.account_id||i)&&(o=Fi.uniqueId(),h.isHead=!0,h.messageChainId=o),t.push(h),r=h,i=!1}return t},Gr={add:Pte,empty:Cte,getView:Rte,deleteMessage:Ate,cullOlderMessages:Ete,resetNewMessageCount:Ote,clear:Tte,handleMessageError:Ite},GP=()=>({data:[],idStore:{}}),Mte={chatList:GP(),chatListFetcher:null,openedChats:Pr({}),openedChatMessageServices:Pr({}),fetcher:void 0,currentChatId:null,lastReadMessageId:null},fb=(e,t)=>Z.find(e.chatList.data,{id:t}),Nte=e=>Z.orderBy(e.chatList.data,["updated_at"],["desc"]),Fte=e=>Z.sumBy(e.chatList.data,"unread"),Dte={state:{...Mte},getters:{currentChat:e=>e.openedChats[e.currentChatId],currentChatMessageService:e=>e.openedChatMessageServices[e.currentChatId],findOpenedChatByRecipientId:e=>t=>Z.find(e.openedChats,n=>n.account.id===t),sortedChatList:Nte,unreadChatCount:Fte},actions:{startFetchingChats({dispatch:e,commit:t}){const n=()=>e("fetchChats",{latest:!0});n(),t("setChatListFetcher",{fetcher:()=>Ga(n,5e3)})},stopFetchingChats({commit:e}){e("setChatListFetcher",{fetcher:void 0})},fetchChats({dispatch:e,rootState:t}){return t.api.backendInteractor.chats().then(({chats:n})=>(e("addNewChats",{chats:n}),n))},addNewChats(e,{chats:t}){const{commit:n,dispatch:s,rootGetters:r}=e,o=i=>{HP(e,i)};n("addNewUsers",t.map(i=>i.account).filter(i=>i)),n("addNewChats",{dispatch:s,chats:t,rootGetters:r,newChatMessageSideEffects:o})},updateChat({commit:e},{chat:t}){e("updateChat",{chat:t})},startFetchingCurrentChat({dispatch:e},{fetcher:t}){e("setCurrentChatFetcher",{fetcher:t})},setCurrentChatFetcher({commit:e},{fetcher:t}){e("setCurrentChatFetcher",{fetcher:t})},addOpenedChat({commit:e,dispatch:t},{chat:n}){e("addOpenedChat",{dispatch:t,chat:k_(n)}),t("addNewUsers",[n.account])},addChatMessages({commit:e},t){e("addChatMessages",{commit:e,...t})},resetChatNewMessageCount({commit:e},t){e("resetChatNewMessageCount",t)},clearCurrentChat({commit:e}){e("setCurrentChatId",{chatId:void 0}),e("setCurrentChatFetcher",{fetcher:void 0})},readChat({rootState:e,commit:t,dispatch:n},{id:s,lastReadId:r}){const o=e.chats.lastReadMessageId!==r;n("resetChatNewMessageCount"),t("readChat",{id:s,lastReadId:r}),o&&e.api.backendInteractor.readChat({id:s,lastReadId:r})},deleteChatMessage({rootState:e,commit:t},n){e.api.backendInteractor.deleteChatMessage(n),t("deleteChatMessage",{commit:t,...n})},resetChats({commit:e,dispatch:t}){t("clearCurrentChat"),e("resetChats",{commit:e})},clearOpenedChats({commit:e}){e("clearOpenedChats",{commit:e})},handleMessageError({commit:e},t){e("handleMessageError",{commit:e,...t})},cullOlderMessages({commit:e},t){e("cullOlderMessages",t)}},mutations:{setChatListFetcher(e,{fetcher:t}){const n=e.chatListFetcher;n&&n.stop(),e.chatListFetcher=t&&t()},setCurrentChatFetcher(e,{fetcher:t}){const n=e.fetcher;n&&n.stop(),e.fetcher=t&&t()},addOpenedChat(e,{chat:t}){e.currentChatId=t.id,e.openedChats[t.id]=t,e.openedChatMessageServices[t.id]||(e.openedChatMessageServices[t.id]=Gr.empty(t.id))},setCurrentChatId(e,{chatId:t}){e.currentChatId=t},addNewChats(e,{chats:t,newChatMessageSideEffects:n}
660){t.forEach(s=>{const r=fb(e,s.id);if(r){const o=(r.lastMessage&&r.lastMessage.id)!==(s.lastMessage&&s.lastMessage.id);r.lastMessage=s.lastMessage,r.unread=s.unread,r.updated_at=s.updated_at,o&&r.unread&&n(s)}else e.chatList.data.push(s),e.chatList.idStore[s.id]=s})},updateChat(e,{chat:t}){const n=fb(e,t.id);n&&(n.lastMessage=t.lastMessage,n.unread=t.unread,n.updated_at=t.updated_at),n||e.chatList.data.unshift(t),e.chatList.idStore[t.id]=t},deleteChat(e,{id:t}){e.chats.data=e.chats.data.filter(n=>n.last_status.id!==t),e.chats.idStore=Z.omitBy(e.chats.idStore,n=>n.last_status.id===t)},resetChats(e,{commit:t}){e.chatList=GP(),e.currentChatId=null,t("setChatListFetcher",{fetcher:void 0});for(const n in e.openedChats)Gr.clear(e.openedChatMessageServices[n]),delete e.openedChats[n],delete e.openedChatMessageServices[n]},setChatsLoading(e,{value:t}){e.chats.loading=t},addChatMessages(e,{chatId:t,messages:n,updateMaxId:s}){const r=e.openedChatMessageServices[t];r&&Gr.add(r,{messages:n.map(O5),updateMaxId:s})},deleteChatMessage(e,{chatId:t,messageId:n}){const s=e.openedChatMessageServices[t];s&&Gr.deleteMessage(s,n)},resetChatNewMessageCount(e){const t=e.openedChatMessageServices[e.currentChatId];Gr.resetNewMessageCount(t)},clearOpenedChats(e){const t=e.currentChatId;for(const n in e.openedChats)t!==n&&(Gr.clear(e.openedChatMessageServices[n]),delete e.openedChats[n],delete e.openedChatMessageServices[n])},readChat(e,{id:t,lastReadId:n}){e.lastReadMessageId=n;const s=fb(e,t);s&&(s.unread=0)},handleMessageError(e,{chatId:t,fakeId:n,isRetry:s}){const r=e.openedChatMessageServices[t];Gr.handleMessageError(r,n,s)},cullOlderMessages(e,t){Gr.cullOlderMessages(e.openedChatMessageServices[t])}}},Ute={instance:iY,statuses:hY,notifications:hee,users:tte,api:hte,config:Qx,profileConfig:gte,adminSettings:vte,drafts:$te,chats:Dte};/*!
661  * shared v11.1.11
662  * (c) 2025 kazuya kawaguchi
663  * Released under the MIT License.
664  */function jte(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Mh=typeof window<"u",xi=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Bte=(e,t,n)=>zte({l:e,k:t,s:n}),zte=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Un=e=>typeof e=="number"&&isFinite(e),qte=e=>A2(e)==="[object Date]",Kl=e=>A2(e)==="[object RegExp]",Gp=e=>Ft(e)&&Object.keys(e).length===0,Wn=Object.assign,Hte=Object.create,an=(e=null)=>Hte(e);let OC;const ka=()=>OC||(OC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:an());function RC(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function MC(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Vte(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(s,r,o)=>`${r}="${MC(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(s,r,o)=>`${r}='${MC(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(s=>{e=e.replace(s,"$1javascript&#58;")}),e}const Wte=Object.prototype.hasOwnProperty;function kr(e,t){return Wte.call(e,t)}const Pn=Array.isArray,yn=e=>typeof e=="function",Ye=e=>typeof e=="string",Vt=e=>typeof e=="boolean",Kt=e=>e!==null&&typeof e=="object",Gte=e=>Kt(e)&&yn(e.then)&&yn(e.catch),KP=Object.prototype.toString,A2=e=>KP.call(e),Ft=e=>A2(e)==="[object Object]",Kte=e=>e==null?"":Pn(e)||Ft(e)&&e.toString===KP?JSON.stringify(e,null,2):String(e);function E2(e,t=""){return e.reduce((n,s,r)=>r===0?n+s:n+t+s,"")}const Rf=e=>!Kt(e)||Pn(e);function th(e,t){if(Rf(e)||Rf(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:r}=n.pop();Object.keys(s).forEach(o=>{o!=="__proto__"&&(Kt(s[o])&&!Kt(r[o])&&(r[o]=Array.isArray(s[o])?[]:an()),Rf(r[o])||Rf(s[o])?r[o]=s[o]:n.push({src:s[o],des:r[o]}))})}}/*!
665  * message-compiler v11.1.11
666  * (c) 2025 kazuya kawaguchi
667  * Released under the MIT License.
668  */function xte(e,t,n){return{line:e,column:t,offset:n}}function wy(e,t,n){return{start:e,end:t}}const nn={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTE
668RMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Yte=17;function Kp(e,t,n={}){const{domain:s,messages:r,args:o}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=s,a}function Xte(e){throw e}const Eo=" ",Jte="\r",ks=`
669`,Zte="\u2028",Qte="\u2029";function ene(e){const t=e;let n=0,s=1,r=1,o=0;const i=N=>t[N]===Jte&&t[N+1]===ks,a=N=>t[N]===ks,c=N=>t[N]===Qte,u=N=>t[N]===Zte,f=N=>i(N)||a(N)||c(N)||u(N),h=()=>n,v=()=>s,y=()=>r,S=()=>o,C=N=>i(N)||c(N)||u(N)?ks:t[N],I=()=>C(n),$=()=>C(n+o);function k(){return o=0,f(n)&&(s++,r=0),i(n)&&n++,n++,r++,t[n]}function P(){return i(n+o)&&o++,o++,t[n+o]}function A(){n=0,s=1,r=1,o=0}function R(N=0){o=N}function B(){const N=n+o;for(;N!==n;)k();o=0}return{index:h,line:v,column:y,peekOffset:S,charAt:C,currentChar:I,currentPeek:$,next:k,peek:P,reset:A,resetPeek:R,skipToPeek:B}}const gi=void 0,tne=".",NC="'",nne="tokenizer";function sne(e,t={}){const n=t.location!==!1,s=ene(e),r=()=>s.index(),o=()=>xte(s.line(),s.column(),s.index()),i=o(),a=r(),c={currentType:13,offset:a,startLoc:i,endLoc:i,lastType:13,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:f}=t;function h(j,q,te,...fe){const je=u();if(q.column+=te,q.offset+=te,f){const ke=n?wy(je.startLoc,q):null,re=Kp(j,ke,{domain:nne,args:fe});f(re)}}function v(j,q,te){j.endLoc=o(),j.currentType=q;const fe={type:q};return n&&(fe.loc=wy(j.startLoc,j.endLoc)),te!=null&&(fe.value=te),fe}const y=j=>v(j,13);function S(j,q){return j.currentChar()===q?(j.next(),q):(h(nn.EXPECTED_TOKEN,o(),0,q),"")}function C(j){let q="";for(;j.currentPeek()===Eo||j.currentPeek()===ks;)q+=j.currentPeek(),j.peek();return q}function I(j){const q=C(j);return j.skipToPeek(),q}function $(j){if(j===gi)return!1;const q=j.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q===95}function k(j){if(j===gi)return!1;const q=j.charCodeAt(0);return q>=48&&q<=57}function P(j,q){const{currentType:te}=q;if(te!==2)return!1;C(j);const fe=$(j.currentPeek());return j.resetPeek(),fe}function A(j,q){const{currentType:te}=q;if(te!==2)return!1;C(j);const fe=j.currentPeek()==="-"?j.peek():j.currentPeek(),je=k(fe);return j.resetPeek(),je}function R(j,q){const{currentType:te}=q;if(te!==2)return!1;C(j);const fe=j.currentPeek()===NC;return j.resetPeek(),fe}function B(j,q){const{currentType:te}=q;if(te!==7)return!1;C(j);const fe=j.currentPeek()===".";return j.resetPeek(),fe}function N(j,q){const{currentType:te}=q;if(te!==8)return!1;C(j);const fe=$(j.currentPeek());return j.resetPeek(),fe}function Y(j,q){const{currentType:te}=q;if(!(te===7||te===11))return!1;C(j);const fe=j.currentPeek()===":";return j.resetPeek(),fe}function H(j,q){const{currentType:te}=q;if(te!==9)return!1;const fe=()=>{const ke=j.currentPeek();return ke==="{"?$(j.peek()):ke==="@"||ke==="|"||ke===":"||ke==="."||ke===Eo||!ke?!1:ke===ks?(j.peek(),fe()):oe(j,!1)},je=fe();return j.resetPeek(),je}function D(j){C(j);const q=j.currentPeek()==="|";return j.resetPeek(),q}function oe(j,q=!0){const te=(je=!1,ke="")=>{const re=j.currentPeek();return re==="{"||re==="@"||!re?je:re==="|"?!(ke===Eo||ke===ks):re===Eo?(j.peek(),te(!0,Eo)):re===ks?(j.peek(),te(!0,ks)):!0},fe=te();return q&&j.resetPeek(),fe}function le(j,q){const te=j.currentChar();return te===gi?gi:q(te)?(j.next(),te):null}function Pe(j){const q=j.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===95||q===36}function qe(j){return le(j,Pe)}function Ke(j){const q=j.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===95||q===36||q===45}function Ge(j){return le(j,Ke)}function ze(j){const q=j.charCodeAt(0);return q>=48&&q<=57}function ot(j){return le(j,ze)}function Ct(j){const q=j.charCodeAt(0);return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function dt(j){return le(j,Ct)}function bt(j){let q="",te="";for(;q=ot(j);)te+=q;return te}function It(j){let q="";for(;;){const te=j.currentChar();if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;
669if(te===Eo||te===ks)if(oe(j))q+=te,j.next();else{if(D(j))break;q+=te,j.next()}else q+=te,j.next()}return q}function nt(j){I(j);let q="",te="";for(;q=Ge(j);)te+=q;return j.currentChar()===gi&&h(nn.UNTERMINATED_CLOSING_BRACE,o(),0),te}function _t(j){I(j);let q="";return j.currentChar()==="-"?(j.next(),q+=`-${bt(j)}`):q+=bt(j),j.currentChar()===gi&&h(nn.UNTERMINATED_CLOSING_BRACE,o(),0),q}function ft(j){return j!==NC&&j!==ks}function Ht(j){I(j),S(j,"'");let q="",te="";for(;q=le(j,ft);)q==="\\"?te+=_e(j):te+=q;const fe=j.currentChar();return fe===ks||fe===gi?(h(nn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),fe===ks&&(j.next(),S(j,"'")),te):(S(j,"'"),te)}function _e(j){const q=j.currentChar();switch(q){case"\\":case"'":return j.next(),`\\${q}`;case"u":return Me(j,q,4);case"U":return Me(j,q,6);default:return h(nn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,q),""}}function Me(j,q,te){S(j,q);let fe="";for(let je=0;je<te;je++){const ke=dt(j);if(!ke){h(nn.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${q}${fe}${j.currentChar()}`);break}fe+=ke}return`\\${q}${fe}`}function Fe(j){return j!=="{"&&j!=="}"&&j!==Eo&&j!==ks}function Ue(j){I(j);let q="",te="";for(;q=le(j,Fe);)te+=q;return te}function pt(j){let q="",te="";for(;q=qe(j);)te+=q;return te}function W(j){const q=te=>{const fe=j.currentChar();return fe==="{"||fe==="@"||fe==="|"||fe==="("||fe===")"||!fe||fe===Eo?te:(te+=fe,j.next(),q(te))};return q("")}function G(j){I(j);const q=S(j,"|");return I(j),q}function ee(j,q){let te=null;switch(j.currentChar()){case"{":return q.braceNest>=1&&h(nn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),j.next(),te=v(q,2,"{"),I(j),q.braceNest++,te;case"}":return q.braceNest>0&&q.currentType===2&&h(nn.EMPTY_PLACEHOLDER,o(),0),j.next(),te=v(q,3,"}"),q.braceNest--,q.braceNest>0&&I(j),q.inLinked&&q.braceNest===0&&(q.inLinked=!1),te;case"@":return q.braceNest>0&&h(nn.UNTERMINATED_CLOSING_BRACE,o(),0),te=pe(j,q)||y(q),q.braceNest=0,te;default:{let je=!0,ke=!0,re=!0;if(D(j))return q.braceNest>0&&h(nn.UNTERMINATED_CLOSING_BRACE,o(),0),te=v(q,1,G(j)),q.braceNest=0,q.inLinked=!1,te;if(q.braceNest>0&&(q.currentType===4||q.currentType===5||q.currentType===6))return h(nn.UNTERMINATED_CLOSING_BRACE,o(),0),q.braceNest=0,we(j,q);if(je=P(j,q))return te=v(q,4,nt(j)),I(j),te;if(ke=A(j,q))return te=v(q,5,_t(j)),I(j),te;if(re=R(j,q))return te=v(q,6,Ht(j)),I(j),te;if(!je&&!ke&&!re)return te=v(q,12,Ue(j)),h(nn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,te.value),I(j),te;break}}return te}function pe(j,q){const{currentType:te}=q;let fe=null;const je=j.currentChar();switch((te===7||te===8||te===11||te===9)&&(je===ks||je===Eo)&&h(nn.INVALID_LINKED_FORMAT,o(),0),je){case"@":return j.next(),fe=v(q,7,"@"),q.inLinked=!0,fe;case".":return I(j),j.next(),v(q,8,".");case":":return I(j),j.next(),v(q,9,":");default:return D(j)?(fe=v(q,1,G(j)),q.braceNest=0,q.inLinked=!1,fe):B(j,q)||Y(j,q)?(I(j),pe(j,q)):N(j,q)?(I(j),v(q,11,pt(j))):H(j,q)?(I(j),je==="{"?ee(j,q)||fe:v(q,10,W(j))):(te===7&&h(nn.INVALID_LINKED_FORMAT,o(),0),q.braceNest=0,q.inLinked=!1,we(j,q))}}function we(j,q){let te={type:13};if(q.braceNest>0)return ee(j,q)||y(q);if(q.inLinked)return pe(j,q)||y(q);switch(j.currentChar()){case"{":return ee(j,q)||y(q);case"}":return h(nn.UNBALANCED_CLOSING_BRACE,o(),0),j.next(),v(q,3,"}");case"@":return pe(j,q)||y(q);default:{if(D(j))return te=v(q,1,G(j)),q.braceNest=0,q.inLinked=!1,te;if(oe(j))return v(q,0,It(j));break}}return te}function be(){const{currentType:j,offset:q,startLoc:te,endLoc:fe}=c;return c.lastType=j,c.lastOffset=q,c.lastStartLoc=te,c.lastEndLoc=fe,c.offset=r(),c.startLoc=o(),s.currentChar()===gi?v(c,13):we(s,c)}return{nextToken:be,currentOffset:r,currentPosition:o,context:u}}const rne="parser",one=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ine(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function ane(e={}){const t=e.location!==!1,{onError:n}=e;function s($,k,P,A,...R){const B=$.currentPosition();if(B.offset+=A,B.column+=A,n){const N=t?wy(P,B):null,Y=Kp(k,N,{domain:rne,args:R});n(Y)}}function r($,k,P){const A={type:$};return t&&(A.start=k,A.end=k,A.loc={start:P,end:P}),A}function o($,k,P,A){t&&($.end=k,$.loc&&($.loc.end=P))}function i($,k){const P=$.context(),A=r(3,P.offset,P.startLoc);return A.value=k,o(A,$.currentOffset(),$.currentPosition()),A}function a($,k){const P=$.context(),{lastOffset:A,lastStartLoc:R}=P,B=r(5,A,R);return B.index=parseInt(k,10),$.nextToken(),o(B,$.currentOffset(),$.currentPosition()),B}function c($,k){const P=$.context(),{lastOffset:A,lastStartLoc:R}=P,B=r(4,A,R);return B.key=k,$.nextToken(),o(B,$.currentOffset(),$.currentPosition()),B}function u($,k){const P=$.context(),{lastOffset:A,lastStartLoc:R}=P,B=r(9,A,R);return B.value=k.replace(one,ine),$.nextToken(),o(B,$.currentOffset(),$.currentPosition()),B}function f($){const k=$.nextToken(),P=$.context(),{lastOffset:A,lastStartLoc:R}=P,B=r(8,A,R);return k.type!==11?(s($,nn.UNEXPECTED_EMPTY_LINKED_MODIFIER,P.lastStartLoc,0),B.value="",o(B,A,R),{nextConsumeToken:k,node:B}):(k.value==null&&s($,nn.UNEXPECTED_LEXICAL_ANALYSIS,P.lastStartLoc,0,Vr(k)),B.value=k.value||"",o(B,$.currentOffset(),$.currentPosition()),{node:B})}function h($,k){const P=$.context(),A=r(7,P.offset,P.startLoc);return A.value=k,o(A,$.currentOffset(),$.currentPosition()),A}function v($){const k=$.context(),P=r(6,k.offset,k.startLoc);let A=$.nextToken();if(A.type===8){const R=f($);P.modifier=R.node,A=R.nextConsumeToken||$.nextToken()}switch(A.type!==9&&s($,nn.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Vr(A)),A=$.nextToken(),A.type===2&&(A=$.nextToken()),A.type){case 10:A.value==null&&s($,nn.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Vr(A)),P.key=h($,A.value||"");break;case 4:A.value==null&&s($,nn.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Vr(A)),P.key=c($,A.value||"");break;case 5:A.value==null&&s($,nn.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Vr(A)),P.key=a($,A.value||"");break;case 6:A.value==null&&s($,nn.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Vr(A)),P.key=u($,A.value||"");break;default:{s($,nn.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const R=$.context(),B=r(7,R.offset,R.startLoc);return B.value="",o(B,R.offset,R.startLoc),P.key=B,o(P,R.offset,R.startLoc),{nextConsumeToken:A,node:P}}}return o(P,$.currentOffset(),$.currentPosition()),{node:P}}function y($){const k=$.context(),P=k.currentType===1?$.currentOffset():k.offset,A=k.currentType===1?k.endLoc:k.startLoc,R=r(2,P,A);R.items=[];let B=null;do{const H=B||$.nextToken();switch(B=null,H.type){case 0:H.value==null&&s($,nn.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Vr(H)),R.items.push(i($,H.value||""));break;case 5:H.value==null&&s($,nn.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Vr(H)),R.items.push(a($,H.value||""));break;case 4:H.value==null&&s($,nn.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Vr(H)),R.items.push(c($,H.value||""));break;case 6:H.value==null&&s($,nn.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Vr(H)),R.items.push(u($,H.value||""));break;case 7:{const D=v($);R.items.push(D.node),B=D.nextConsumeToken||null;break}}}while(k.currentType!==13&&k.currentType!==1);const N=k.currentType===1?k.lastOffset:$.currentOffset(),Y=k.currentType===1?k.lastEndLoc:$.currentPosition();return o(R,N,Y),R}function S($,k,P,A){const R=$.context();let B=A.items.length===0;const N=r(1,k,P);N.cases=[],N.cases.push(A);do{const Y=y($);B||(B=Y.items.length===0),N.cases.push(Y)}while(R.currentType!==13);return B&&s($,nn.MUST_HAVE_MESSAGES_IN_PLURAL,P,0),o(N,$.currentOffset(),$.currentPosition()),N}function C($){const k=$.context(),{offset:P,startLoc:A}=k,R=y($);return k.currentType===13?R:S($,P,A,R)}function I($){const k=sne($,Wn({},e)),P=k.context(),A=r(0,P.offset,P.startLoc);return t&&A.loc&&(A.loc.source=$),A.body=C(k),e.onCacheKey&&(A.cacheKey=e.onCacheKey($)),P.currentType!==13&&s(k,nn.UNEXPECTED_LEXICAL_ANALYSIS,P.lastStartLoc,0,$[P.offset]||""),o(A,k.currentOffset(),k.currentPosition()),A}return{parse:I}}function Vr(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function lne(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function FC(e,t){for(let n=0;n<e.length;n++)I2(e[n],t)}function I2(e,t){switch(e.type){case 1:FC(e.cases,t),t.helper("plural");break;case 2:FC(e.items,t);break;case 6:{I2(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function cne(e,t={}){const n=lne(e);n.helper("normalize"),e.body&&I2(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function une(e){const t=e.body;
669return t.type===2?DC(t):t.cases.forEach(n=>DC(n)),e}function DC(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=E2(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function Tl(e){switch(e.t=e.type,e.type){case 0:{const t=e;Tl(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)Tl(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)Tl(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Tl(t.key),t.k=t.key,delete t.key,t.modifier&&(Tl(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function dne(e,t){const{filename:n,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(i.source=e.loc.source);const a=()=>i;function c(C,I){i.code+=C}function u(C,I=!0){const $=I?s:"";c(r?$+"  ".repeat(C):$)}function f(C=!0){const I=++i.indentLevel;C&&u(I)}function h(C=!0){const I=--i.indentLevel;C&&u(I)}function v(){u(i.indentLevel)}return{context:a,push:c,indent:f,deindent:h,newline:v,helper:C=>`_${C}`,needIndent:()=>i.needIndent}}function fne(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),xl(e,t.key),t.modifier?(e.push(", "),xl(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function hne(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const r=t.items.length;for(let o=0;o<r&&(xl(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}function pne(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const r=t.cases.length;for(let o=0;o<r&&(xl(e,t.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}}function mne(e,t){t.body?xl(e,t.body):e.push("null")}function xl(e,t){const{helper:n}=e;switch(t.type){case 0:mne(e,t);break;case 1:pne(e,t);break;case 2:hne(e,t);break;case 6:fne(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const gne=(e,t={})=>{const n=Ye(t.mode)?t.mode:"normal",s=Ye(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
670`,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=dne(e,{filename:s,breakLineCode:r,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),i.length>0&&(a.push(`const { ${E2(i.map(f=>`${f}: _${f}`),", ")} } = ctx`),a.newline()),a.push("return "),xl(a,e),a.deindent(o),a.push("}"),delete e.helpers;const{code:c,map:u}=a.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function vne(e,t={}){const n=Wn({},t),s=!!n.jit,r=!!n.minify,o=n.optimize==null?!0:n.optimize,a=ane(n).parse(e);return s?(o&&une(a),r&&Tl(a),{ast:a,code:""}):(cne(a,n),gne(a,n))}/*!
671  * core-base v11.1.11
672  * (c) 2025 kazuya kawaguchi
673  * Released under the MIT License.
674  */function bne(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ka().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ka().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function so(e){return Kt(e)&&P2(e)===0&&(kr(e,"b")||kr(e,"body"))}const xP=["b","body"];function yne(e){return Yi(e,xP)}const YP=["c","cases"];function _ne(e){return Yi(e,YP,[])}const XP=["s","static"];function wne(e){return Yi(e,XP)}const JP=["i","items"];function Sne(e){return Yi(e,JP,[])}const ZP=["t","type"];function P2(e){return Yi(e,ZP)}const QP=["v","value"];function Mf(e,t){const n=Yi(e,QP);if(n!=null)return n;throw Yu(t)}const eL=["m","modifier"];function kne(e){return Yi(e,eL)}const tL=["k","key"];function $ne(e){const t=Yi(e,tL);if(t)return t;throw Yu(6)}
674function Yi(e,t,n){for(let s=0;s<t.length;s++){const r=t[s];if(kr(e,r)&&e[r]!=null)return e[r]}return n}const nL=[...xP,...YP,...XP,...JP,...tL,...eL,...QP,...ZP];function Yu(e){return new Error(`unhandled node type: ${e}`)}function hb(e){return n=>Cne(n,e)}function Cne(e,t){const n=yne(t);if(n==null)throw Yu(0);if(P2(n)===1){const o=_ne(n);return e.plural(o.reduce((i,a)=>[...i,UC(e,a)],[]))}else return UC(e,n)}function UC(e,t){const n=wne(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=Sne(t).reduce((r,o)=>[...r,Sy(e,o)],[]);return e.normalize(s)}}function Sy(e,t){const n=P2(t);switch(n){case 3:return Mf(t,n);case 9:return Mf(t,n);case 4:{const s=t;if(kr(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(kr(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw Yu(n)}case 5:{const s=t;if(kr(s,"i")&&Un(s.i))return e.interpolate(e.list(s.i));if(kr(s,"index")&&Un(s.index))return e.interpolate(e.list(s.index));throw Yu(n)}case 6:{const s=t,r=kne(s),o=$ne(s);return e.linked(Sy(e,o),r?Sy(e,r):void 0,e.type)}case 7:return Mf(t,n);case 8:return Mf(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Tne=e=>e;let Nf=an();function Ane(e,t={}){let n=!1;const s=t.onError||Xte;return t.onError=r=>{n=!0,s(r)},{...vne(e,t),detectError:n}}function Ene(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ye(e)){Vt(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||Tne)(e),r=Nf[s];if(r)return r;const{ast:o,detectError:i}=Ane(e,{...t,location:!1,jit:!0}),a=hb(o);return i?a:Nf[s]=a}else{const n=e.cacheKey;if(n){const s=Nf[n];return s||(Nf[n]=hb(e))}else return hb(e)}}let Xu=null;function Ine(e){Xu=e}function Pne(e,t,n){Xu&&Xu.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Lne=One("function:translate");function One(e){return t=>Xu&&Xu.emit(e,t)}const Uo={INVALID_ARGUMENT:Yte,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Rne=24;function jo(e){return Kp(e,null,void 0)}function L2(e,t){return t.locale!=null?jC(t.locale):jC(e.locale)}let pb;function jC(e){if(Ye(e))return e;if(yn(e)){if(e.resolvedOnce&&pb!=null)return pb;if(e.constructor.name==="Function"){const t=e();if(Gte(t))throw jo(Uo.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return pb=t}else throw jo(Uo.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw jo(Uo.NOT_SUPPORT_LOCALE_TYPE)}function Mne(e,t,n){return[...new Set([n,...Pn(t)?t:Kt(t)?Object.keys(t):Ye(t)?[t]:[n]])]}function sL(e,t,n){const s=Ye(n)?n:Ju,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let i=[n];for(;Pn(i);)i=BC(o,i,t);const a=Pn(t)||!Ft(t)?t:t.default?t.default:null;i=Ye(a)?[a]:a,Pn(i)&&BC(o,i,!1),r.__localeChainCache.set(s,o)}return o}function BC(e,t,n){let s=!0;for(let r=0;r<t.length&&Vt(s);r++){const o=t[r];Ye(o)&&(s=Nne(e,t[r],n))}return s}function Nne(e,t,n){let s;const r=t.split("-");do{const o=r.join("-");s=Fne(e,o,n),r.splice(-1,1)}while(r.length&&s===!0);return s}function Fne(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(Pn(n)||Ft(n))&&n[r]&&(s=n[r])}return s}const Xi=[];Xi[0]={w:[0],i:[3,0],"[":[4],o:[7]};Xi[1]={w:[1],".":[2],"[":[4],o:[7]};Xi[2]={w:[2],i:[3,0],0:[3,0]};Xi[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Xi[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Xi[5]={"'":[4,0],o:8,l:[5,0]};Xi[6]={'"':[4,0],o:8,l:[6,0]};const Dne=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Une(e){return Dne.test(e)}function jne(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Bne(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function zne(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Une(t)?jne(t):"*"+t}function qne(e){const t=[];let n=-1,s=0,r=0,o,i,a,c,u,f,h;const v=[];v[0]=()=>{i===void 0?i=a:i+=a},v[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},v[2]=()=>{v[0](),r++},v[3]=()=>
674{if(r>0)r--,s=4,v[0]();else{if(r=0,i===void 0||(i=zne(i),i===!1))return!1;v[1]()}};function y(){const S=e[n+1];if(s===5&&S==="'"||s===6&&S==='"')return n++,a="\\"+S,v[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&y())){if(c=Bne(o),h=Xi[s],u=h[c]||h.l||8,u===8||(s=u[0],u[1]!==void 0&&(f=v[u[1]],f&&(a=o,f()===!1))))return;if(s===7)return t}}const zC=new Map;function Hne(e,t){return Kt(e)?e[t]:null}function Vne(e,t){if(!Kt(e))return null;let n=zC.get(t);if(n||(n=qne(t),n&&zC.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o<s;){const i=n[o];if(nL.includes(i)&&so(r))return null;const a=r[i];if(a===void 0||yn(r))return null;r=a,o++}return r}const Wne="11.1.11",xp=-1,Ju="en-US",qC="",HC=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Gne(){return{upper:(e,t)=>t==="text"&&Ye(e)?e.toUpperCase():t==="vnode"&&Kt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ye(e)?e.toLowerCase():t==="vnode"&&Kt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ye(e)?HC(e):t==="vnode"&&Kt(e)&&"__v_isVNode"in e?HC(e.children):e}}let rL;function Kne(e){rL=e}let oL;function xne(e){oL=e}let iL;function Yne(e){iL=e}let aL=null;const Xne=e=>{aL=e},Jne=()=>aL;let lL=null;const VC=e=>{lL=e},Zne=()=>lL;let WC=0;function Qne(e={}){const t=yn(e.onWarn)?e.onWarn:jte,n=Ye(e.version)?e.version:Wne,s=Ye(e.locale)||yn(e.locale)?e.locale:Ju,r=yn(s)?Ju:s,o=Pn(e.fallbackLocale)||Ft(e.fallbackLocale)||Ye(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,i=Ft(e.messages)?e.messages:mb(r),a=Ft(e.datetimeFormats)?e.datetimeFormats:mb(r),c=Ft(e.numberFormats)?e.numberFormats:mb(r),u=Wn(an(),e.modifiers,Gne()),f=e.pluralRules||an(),h=yn(e.missing)?e.missing:null,v=Vt(e.missingWarn)||Kl(e.missingWarn)?e.missingWarn:!0,y=Vt(e.fallbackWarn)||Kl(e.fallbackWarn)?e.fallbackWarn:!0,S=!!e.fallbackFormat,C=!!e.unresolving,I=yn(e.postTranslation)?e.postTranslation:null,$=Ft(e.processor)?e.processor:null,k=Vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,P=!!e.escapeParameter,A=yn(e.messageCompiler)?e.messageCompiler:rL,R=yn(e.messageResolver)?e.messageResolver:oL||Hne,B=yn(e.localeFallbacker)?e.localeFallbacker:iL||Mne,N=Kt(e.fallbackContext)?e.fallbackContext:void 0,Y=e,H=Kt(Y.__datetimeFormatters)?Y.__datetimeFormatters:new Map,D=Kt(Y.__numberFormatters)?Y.__numberFormatters:new Map,oe=Kt(Y.__meta)?Y.__meta:{};WC++;const le={version:n,cid:WC,locale:s,fallbackLocale:o,messages:i,modifiers:u,pluralRules:f,missing:h,missingWarn:v,fallbackWarn:y,fallbackFormat:S,unresolving:C,postTranslation:I,processor:$,warnHtmlMessage:k,escapeParameter:P,messageCompiler:A,messageResolver:R,localeFallbacker:B,fallbackContext:N,onWarn:t,__meta:oe};return le.datetimeFormats=a,le.numberFormats=c,le.__datetimeFormatters=H,le.__numberFormatters=D,__INTLIFY_PROD_DEVTOOLS__&&Pne(le,n,oe),le}const mb=e=>({[e]:an()});function O2(e,t,n,s,r){const{missing:o,onWarn:i}=e;if(o!==null){const a=o(e,n,t,r);return Ye(a)?a:t}else return t}function Jc(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ese(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function tse(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(ese(e,t[s]))return!0;return!1}function GC(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[c,u,f,h]=ky(...t),v=Vt(f.missingWarn)?f.missingWarn:e.missingWarn;Vt(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const y=!!f.part,S=L2(e,f),C=i(e,r,S);if(!Ye(c)||c==="")return new Intl.DateTimeFormat(S,h).format(u);let I={},$,k=null;const P="datetime format";for(let B=0;B<C.length&&($=C[B],I=n[$]||{},k=I[c],!Ft(k));B++)O2(e,c,$,v,P);if(!Ft(k)||!Ye($))return s?xp:c;let A=`${$}__${c}`;Gp(h)||(A=`${A}__${JSON.stringify(h)}`);let R=a.get(A);return R||(R=new Intl.DateTimeFormat($,Wn({},k,h)),a.set(A,R)),y?R.formatToParts(u):R.format(u)}const cL=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ky(...e){const[t,n,s,r]=e,o=an();let i=an(),a;if(Ye(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw jo(Uo.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();a=new Date(u);try{a.toISOString()}catch{throw jo(Uo.INVALID_ISO_DATE_ARGUMENT)}}else if(qte(t)){if(isNaN(t.getTime()))throw jo(Uo.INVALID_DATE_ARGUMENT);a=t}else if(Un(t))a=t;else throw jo(Uo.INVALID_ARGUMENT);
674return Ye(n)?o.key=n:Ft(n)&&Object.keys(n).forEach(c=>{cL.includes(c)?i[c]=n[c]:o[c]=n[c]}),Ye(s)?o.locale=s:Ft(s)&&(i=s),Ft(r)&&(i=r),[o.key||"",a,o,i]}function KC(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__datetimeFormatters.has(o)&&s.__datetimeFormatters.delete(o)}}function xC(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:a}=e,[c,u,f,h]=$y(...t),v=Vt(f.missingWarn)?f.missingWarn:e.missingWarn;Vt(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const y=!!f.part,S=L2(e,f),C=i(e,r,S);if(!Ye(c)||c==="")return new Intl.NumberFormat(S,h).format(u);let I={},$,k=null;const P="number format";for(let B=0;B<C.length&&($=C[B],I=n[$]||{},k=I[c],!Ft(k));B++)O2(e,c,$,v,P);if(!Ft(k)||!Ye($))return s?xp:c;let A=`${$}__${c}`;Gp(h)||(A=`${A}__${JSON.stringify(h)}`);let R=a.get(A);return R||(R=new Intl.NumberFormat($,Wn({},k,h)),a.set(A,R)),y?R.formatToParts(u):R.format(u)}const uL=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function $y(...e){const[t,n,s,r]=e,o=an();let i=an();if(!Un(t))throw jo(Uo.INVALID_ARGUMENT);const a=t;return Ye(n)?o.key=n:Ft(n)&&Object.keys(n).forEach(c=>{uL.includes(c)?i[c]=n[c]:o[c]=n[c]}),Ye(s)?o.locale=s:Ft(s)&&(i=s),Ft(r)&&(i=r),[o.key||"",a,o,i]}function YC(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__numberFormatters.has(o)&&s.__numberFormatters.delete(o)}}const nse=e=>e,sse=e=>"",rse="text",ose=e=>e.length===0?"":E2(e),ise=Kte;function XC(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ase(e){const t=Un(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Un(e.named.count)||Un(e.named.n))?Un(e.named.count)?e.named.count:Un(e.named.n)?e.named.n:t:t}function lse(e,t){t.count||(t.count=e),t.n||(t.n=e)}function cse(e={}){const t=e.locale,n=ase(e),s=Kt(e.pluralRules)&&Ye(t)&&yn(e.pluralRules[t])?e.pluralRules[t]:XC,r=Kt(e.pluralRules)&&Ye(t)&&yn(e.pluralRules[t])?XC:void 0,o=$=>$[s(n,$.length,r)],i=e.list||[],a=$=>i[$],c=e.named||an();Un(e.pluralIndex)&&lse(n,c);const u=$=>c[$];function f($,k){const P=yn(e.messages)?e.messages($,!!k):Kt(e.messages)?e.messages[$]:!1;return P||(e.parent?e.parent.message($):sse)}const h=$=>e.modifiers?e.modifiers[$]:nse,v=Ft(e.processor)&&yn(e.processor.normalize)?e.processor.normalize:ose,y=Ft(e.processor)&&yn(e.processor.interpolate)?e.processor.interpolate:ise,S=Ft(e.processor)&&Ye(e.processor.type)?e.processor.type:rse,I={list:a,named:u,plural:o,linked:($,...k)=>{const[P,A]=k;let R="text",B="";k.length===1?Kt(P)?(B=P.modifier||B,R=P.type||R):Ye(P)&&(B=P||B):k.length===2&&(Ye(P)&&(B=P||B),Ye(A)&&(R=A||R));const N=f($,!0)(I),Y=R==="vnode"&&Pn(N)&&B?N[0]:N;return B?h(B)(Y,R):Y},message:f,type:S,interpolate:y,normalize:v,values:Wn(an(),i,c)};return I}const JC=()=>"",pr=e=>yn(e);function ZC(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:i,messages:a}=e,[c,u]=Cy(...t),f=Vt(u.missingWarn)?u.missingWarn:e.missingWarn,h=Vt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,v=Vt(u.escapeParameter)?u.escapeParameter:e.escapeParameter,y=!!u.resolvedMessage,S=Ye(u.default)||Vt(u.default)?Vt(u.default)?o?c:()=>c:u.default:n?o?c:()=>c:null,C=n||S!=null&&(Ye(S)||yn(S)),I=L2(e,u);v&&use(u);let[$,k,P]=y?[c,I,a[I]||an()]:dL(e,c,I,i,h,f),A=$,R=c;if(!y&&!(Ye(A)||so(A)||pr(A))&&C&&(A=S,R=A),!y&&(!(Ye(A)||so(A)||pr(A))||!Ye(k)))return r?xp:c;let B=!1;const N=()=>{B=!0},Y=pr(A)?A:fL(e,c,k,A,R,N);if(B)return A;const H=hse(e,k,P,u),D=cse(H),oe=dse(e,Y,D);let le=s?s(oe,c):oe;if(v&&Ye(le)&&(le=Vte(le)),__INTLIFY_PROD_DEVTOOLS__){const Pe={timestamp:Date.now(),key:Ye(c)?c:pr(A)?A.key:"",locale:k||(pr(A)?A.locale:""),format:Ye(A)?A:pr(A)?A.source:"",message:le};Pe.meta=Wn({},e.__meta,Jne()||{}),Lne(Pe)}return le}function use(e){Pn(e.list)?e.list=e.list.map(t=>
vendor: 5,500 bytes, lines 674-678
674Ye(t)?RC(t):t):Kt(e.named)&&Object.keys(e.named).forEach(t=>{Ye(e.named[t])&&(e.named[t]=RC(e.named[t]))})}function dL(e,t,n,s,r,o){const{messages:i,onWarn:a,messageResolver:c,localeFallbacker:u}=e,f=u(e,s,n);let h=an(),v,y=null;const S="translate";for(let C=0;C<f.length&&(v=f[C],h=i[v]||an(),(y=c(h,t))===null&&(y=h[t]),!(Ye(y)||so(y)||pr(y)));C++)if(!tse(v,f)){const I=O2(e,t,v,o,S);I!==t&&(y=I)}return[y,v,h]}function fL(e,t,n,s,r,o){const{messageCompiler:i,warnHtmlMessage:a}=e;if(pr(s)){const u=s;return u.locale=u.locale||n,u.key=u.key||t,u}if(i==null){const u=()=>s;return u.locale=n,u.key=t,u}const c=i(s,fse(e,n,r,s,a,o));return c.locale=n,c.key=t,c.source=s,c}function dse(e,t,n){return t(n)}function Cy(...e){const[t,n,s]=e,r=an();if(!Ye(t)&&!Un(t)&&!pr(t)&&!so(t))throw jo(Uo.INVALID_ARGUMENT);const o=Un(t)?String(t):(pr(t),t);return Un(n)?r.plural=n:Ye(n)?r.default=n:Ft(n)&&!Gp(n)?r.named=n:Pn(n)&&(r.list=n),Un(s)?r.plural=s:Ye(s)?r.default=s:Ft(s)&&Wn(r,s),[o,r]}function fse(e,t,n,s,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:i=>{throw o&&o(i),i},onCacheKey:i=>Bte(t,n,i)}}function hse(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:i,fallbackLocale:a,fallbackWarn:c,missingWarn:u,fallbackContext:f}=e,v={locale:t,modifiers:r,pluralRules:o,messages:(y,S)=>{let C=i(n,y);if(C==null&&(f||S)){const[,,I]=dL(f||e,y,t,a,c,u);C=i(I,y)}if(Ye(C)||so(C)){let I=!1;const k=fL(e,y,t,C,y,()=>{I=!0});return I?JC:k}else return pr(C)?C:JC}};return e.processor&&(v.processor=e.processor),s.list&&(v.list=s.list),s.named&&(v.named=s.named),Un(s.plural)&&(v.pluralIndex=s.plural),v}bne();/*!
675  * vue-i18n v11.1.11
676  * (c) 2025 kazuya kawaguchi
677  * Released under the MIT License.
678  */const pse="11.1.11";function mse(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ka().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ka().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ka().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ka().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ms={UNEXPECTED_RETURN_TYPE:Rne,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Xs(e,...t){return Kp(e,null,void 0)}const Ty=xi("__translateVNode"),Ay=xi("__datetimeParts"),Ey=xi("__numberParts"),hL=xi("__setPluralRules"),pL=xi("__injectWithOption"),Iy=xi("__dispose");function Zu(e){if(!Kt(e)||so(e))return e;for(const t in e)if(kr(e,t))if(!t.includes("."))Kt(e[t])&&Zu(e[t]);else{const n=t.split("."),s=n.length-1;let r=e,o=!1;for(let i=0;i<s;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in r||(r[n[i]]=an()),!Kt(r[n[i]])){o=!0;break}r=r[n[i]]}if(o||(so(r)?nL.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!so(r)){const i=r[n[s]];Kt(i)&&Zu(i)}}return e}function R2(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:o}=t,i=Ft(n)?n:Pn(s)?an():{[e]:an()};if(Pn(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(i[c]=i[c]||an(),th(u,i[c])):th(u,i)}else Ye(a)&&th(JSON.parse(a),i)}),r==null&&o)for(const a in i)kr(i,a)&&Zu(i[a]);return i}function mL(e){return e.type}function gL(e,t,n){let s=Kt(t.messages)?t.messages:an();"__i18nGlobal"in n&&(s=R2(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(Kt(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Kt(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function QC(e){return T(id,null,e,0)}const e6="__INTLIFY_META__",t6=()=>[],gse=()=>!1;let n6=0;function s6(e){return(t,n,s,r)=>e(n,s,ro()||void 0,r)}const vse=()=>{const e=ro();let t=null;return e&&(t=mL(e)[e6])?{[e6]:t}:null};function M2(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,o=Mh?Kn:uA;let i=Vt(e.inheritLocale)?e.inheritLocale:!0;const a=o(t&&i?t.locale.value:Ye(e.locale)?e.locale:Ju),c=o(t&&i?t.fallbackLocale.value:Ye(e.fallbackLocale)||Pn(e.fallbackLocale)||Ft(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=o(R2(a.value,e)),f=o(Ft(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),h=o(Ft(e.numberFormats)?e.numberFormats:{[a.value]:{}});let v=t?t.missingWarn:Vt(e.missingWarn)||Kl(e.missingWarn)?e.missingWarn:!0,y=t?t.fallbackWarn:Vt(e.fallbackWarn)||Kl(e.fallbackWarn)?e.fallbackWarn:!0,S=t?t.fallbackRoot:Vt(e.fallbackRoot)?e.fallbackRoot:!0,C=!!e.fallbackFormat,I=yn(e.missing)?e.missing:null,$=yn(e.missing)?s6(e.missing):null,k=yn(e.postTranslation)?e.postTranslation:null,P=t?t.warnHtmlMessage:Vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,A=!!e.escapeParameter;const R=t?t.modifiers:Ft(e.modifiers)?e.modifiers:{};let B=e.pluralRules||t&&t.pluralRules,N;N=(()=>{s&&VC(null);const re={version:pse,locale:a.value,fallbackLocale:c.value,messages:u.value,modifiers:R,pluralRules:B,missing:$===null?void 0:$,missingWarn:v,fallbackWarn:y,fallbackFormat:C,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:P,escapeParameter:A,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};re.datetimeFormats=f.value,re.numberFormats=h.value,re.__datetimeFormatters=Ft(N)?N.__datetimeFormatters:void 0,re.__numberFormatters=Ft(N)?N.__numberFormatters:void 0;const me=Qne(re);
678return s&&VC(me),me})(),Jc(N,a.value,c.value);function H(){return[a.value,c.value,u.value,f.value,h.value]}const D=vt({get:()=>a.value,set:re=>{N.locale=re,a.value=re}}),oe=vt({get:()=>c.value,set:re=>{N.fallbackLocale=re,c.value=re,Jc(N,a.value,re)}}),le=vt(()=>u.value),Pe=vt(()=>f.value),qe=vt(()=>h.value);function Ke(){return yn(k)?k:null}function Ge(re){k=re,N.postTranslation=re}function ze(){return I}function ot(re){re!==null&&($=s6(re)),I=re,N.missing=$}const Ct=(re,me,xe,rt,ut,Qt)=>{H();let Wt;try{__INTLIFY_PROD_DEVTOOLS__,s||(N.fallbackContext=t?Zne():void 0),Wt=re(N)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(N.fallbackContext=void 0)}if(xe!=="translate exists"&&Un(Wt)&&Wt===xp||xe==="translate exists"&&!Wt){const[En,On]=me();return t&&S?rt(t):ut(En)}else{if(Qt(Wt))return Wt;throw Xs(Ms.UNEXPECTED_RETURN_TYPE)}};function dt(...re){return Ct(me=>Reflect.apply(ZC,null,[me,...re]),()=>Cy(...re),"translate",me=>Reflect.apply(me.t,me,[...re]),me=>me,me=>Ye(me))}function bt(...re){const[me,xe,rt]=re;if(rt&&!Kt(rt))throw Xs(Ms.INVALID_ARGUMENT);return dt(me,xe,Wn({resolvedMessage:!0},rt||{}))}function It(...re){return Ct(me=>Reflect.apply(GC,null,[me,...re]),()=>ky(...re),"datetime format",me=>Reflect.apply(me.d,me,[...re]),()=>qC,me=>Ye(me)||Pn(me))}function nt(...re){return Ct(me=>Reflect.apply(xC,null,[me,...re]),()=>$y(...re),"number format",me=>Reflect.apply(me.n,me,[...re]),()=>qC,me=>Ye(me)||Pn(me))}function _t(re){return re.map(me=>Ye(me)||Un(me)||Vt(me)?QC(String(me)):me)}const Ht={normalize:_t,interpolate:re=>re,type:"vnode"};function _e(...re){return Ct(me=>{let xe;const rt=me;try{rt.processor=Ht,xe=Reflect.apply(ZC,null,[rt,...re])}finally{rt.processor=null}return xe},()=>Cy(...re),"translate",me=>me[Ty](...re),me=>[QC(me)],me=>Pn(me))}function Me(...re){return Ct(me=>Reflect.apply(xC,null,[me,...re]),()=>$y(...re),"number format",me=>me[Ey](...re),t6,me=>Ye(me)||Pn(me))}function Fe(...re){return Ct(me=>Reflect.apply(GC,null,[me,...re]),()=>ky(...re),"datetime format",me=>me[Ay](...re),t6,me=>Ye(me)||Pn(me))}function Ue(re){B=re,N.pluralRules=B}function pt(re,me){return Ct(()=>{if(!re)return!1;const xe=Ye(me)?me:a.value,rt=ee(xe),ut=N.messageResolver(rt,re);return so(ut)||pr(ut)||Ye(ut)},()=>[re],"translate exists",xe=>Reflect.apply(xe.te,xe,[re,me]),gse,xe=>Vt(xe))}function W(re){let me=null;const xe=sL(N,c.value,a.value);for(let rt=0;rt<xe.length;rt++){const ut=u.value[xe[rt]]||{},Qt=N.messageResolver(ut,re);if(Qt!=null){me=Qt;break}}return me}function G(re){const me=W(re);return me??(t?t.tm(re)||{}:{})}function ee(re){return u.value[re]||{}}function pe(re,me){if(r){const xe={[re]:me};for(const rt in xe)kr(xe,rt)&&Zu(xe[rt]);me=xe[re]}u.value[re]=me,N.messages=u.value}function we(re,me){u.value[re]=u.value[re]||{};const xe={[re]:me};if(r)for(const rt in xe)kr(xe,rt)&&Zu(xe[rt]);me=xe[re],th(me,u.value[re]),N.messages=u.value}function be(re){return f.value[re]||{}}function j(re,me){f.value[re]=me,N.datetimeFormats=f.value,KC(N,re,me)}function q(re,me){f.value[re]=Wn(f.value[re]||{},me),N.datetimeFormats=f.value,KC(N,re,me)}function te(re){return h.value[re]||{}}function fe(re,me){h.value[re]=me,N.numberFormats=h.value,YC(N,re,me)}function je(re,me){h.value[re]=Wn(h.value[re]||{},me),N.numberFormats=h.value,YC(N,re,me)}n6++,t&&Mh&&(os(t.locale,re=>{i&&(a.value=re,N.locale=re,Jc(N,a.value,c.value))}),os(t.fallbackLocale,re=>{i&&(c.value=re,N.fallbackLocale=re,Jc(N,a.value,c.value))}));const ke={id:n6,locale:D,fallbackLocale:oe,get inheritLocale(){return i},set inheritLocale(re){i=re,re&&t&&(a.value=t.locale.value,c.value=t.fallbackLocale.value,Jc(N,a.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:le,get modifiers(){return R},get pluralRules(){return B||{}},get isGlobal(){return s},get missingWarn(){return v},set missingWarn(re){v=re,N.missingWarn=v},get fallbackWarn(){return y},set fallbackWarn(re){y=re,N.fallbackWarn=y},get fallbackRoot(){return S},set fallbackRoot(re){S=re},get fallbackFormat(){return C},set fallbackFormat(re){C=re,N.fallbackFormat=C},get warnHtmlMessage(){return P},set warnHtmlMessage(re){P=re,N.warnHtmlMessage=re},get escapeParameter(){return A},set escapeParameter(re){A=re,N.escapeParameter=re},t:dt,getLocaleMessage:ee,setLocaleMessage:pe,mergeLocaleMessage:we,getPostTranslationHandler:Ke,setPostTranslationHandler:Ge,getMissingHandler:ze,setMissingHandler:ot,[hL]:Ue};return ke.datetimeFormats=Pe,ke.numberFormats=qe,ke.rt=bt,ke.te=pt,ke.tm=G,ke.d=It,ke.n=nt,ke.getDateTimeFormat=be,ke.setDateTimeFormat=j,ke.mergeDateTimeFormat=q,ke.getNumberFormat=te,ke.setNumberFormat=fe,ke.mergeNumberFormat=je,ke[pL]=n,ke[Ty]=_e,ke[Ay]=Fe,ke[Ey]=Me,ke}function bse(e){const t=Ye(e.locale)?e.locale:Ju,n=Ye(e.fallbackLocale)||Pn(e.fallbackLocale)||Ft(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=yn(e.missing)?e.missing:void 0,r=Vt(e.silentTranslationWarn)||Kl(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=Vt(e.silentFallbackWarn)||Kl(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=Vt(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,c=Ft(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,f=yn(e.postTranslation)?e.postTranslation:void 0,h=Ye(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,v=!!e.escapeParameterHtml,y=Vt(e.sync)?e.sync:!0;let S=e.messages;if(Ft(e.sharedMessages)){const R=e.sharedMessages;S=Object.keys(R).reduce((N,Y)=>{const H=N[Y]||(N[Y]={});return Wn(H,R[Y]),N},S||{})}const{__i18n:C,__root:I,__injectWithOption:$}=e,k=e.datetimeFormats,P=e.numberFormats,A=e.flatJson;return{locale:t,fallbackLocale:n,messages:S,flatJson:A,datetimeFormats:k,numberFormats:P,missing:s,missingWarn:r,fallbackWarn:o,fallbackRoot:i,fallbackFormat:a,modifiers:c,pluralRules:u,postTranslation:f,warnHtmlMessage:h,escapeParameter:v,messageResolver:e.messageResolver,inheritLocale:y,__i18n:C,__root:I,__injectWithOption:$}}function Py(e={}){const t=M2(bse(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return Vt(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=Vt(r)?!r:r},get silentFallbackWarn(){return Vt(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=Vt(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},te(r,o){return t.te(r,o)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,o){t.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){t.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,o){t.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){t.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,o){t.setNumberFormat(r,o)},mergeNumberFormat(r,o){t.mergeNumberFormat(r,o)}};return s.__extender=n,s}function yse(e,t,n){return{beforeCreate(){const s=ro();if(!s)throw Xs(Ms.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=r6(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Py(o);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=r6(e,r);else{this.$i18n=Py({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&gL(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,i)=>this.$i18n.te(o,i),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=ro();if(!s)throw Xs(Ms.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(s),delete this.$i18n}}}function r6(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[hL](t.pluralizationRules||e.pluralizationRules);const n=R2(e.locale,{messages:t.messages,__i18n:t.__i18n});
678return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const N2={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function _se({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===Se?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},an())}function vL(){return Se}const wse=Wi({name:"i18n-t",props:Wn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Un(e)||!isNaN(e)}},N2),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||F2({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(h=>h[0]!=="_"),i=an();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=Ye(e.plural)?+e.plural:e.plural);const a=_se(t,o),c=r[Ty](e.keypath,a,i),u=Wn(an(),s),f=Ye(e.tag)||Kt(e.tag)?e.tag:vL();return Zo(f,u,c)}}}),o6=wse;function Sse(e){return Pn(e)&&!Ye(e[0])}function bL(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const i={part:!0};let a=an();e.locale&&(i.locale=e.locale),Ye(e.format)?i.key=e.format:Kt(e.format)&&(Ye(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((v,y)=>n.includes(y)?Wn(an(),v,{[y]:e.format[y]}):v,an()));const c=s(e.value,i,a);let u=[i.key];Pn(c)?u=c.map((v,y)=>{const S=r[v.type],C=S?S({[v.type]:v.value,index:y,parts:c}):[v.value];return Sse(C)&&(C[0].key=`${v.type}-${y}`),C}):Ye(c)&&(u=[c]);const f=Wn(an(),o),h=Ye(e.tag)||Kt(e.tag)?e.tag:vL();return Zo(h,f,u)}}const kse=Wi({name:"i18n-n",props:Wn({value:{type:Number,required:!0},format:{type:[String,Object]}},N2),setup(e,t){const n=e.i18n||F2({useScope:e.scope,__useComponent:!0});return bL(e,t,uL,(...s)=>n[Ey](...s))}}),i6=kse;function $se(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Cse(e){const t=i=>{const{instance:a,value:c}=i;if(!a||!a.$)throw Xs(Ms.UNEXPECTED_ERROR);const u=$se(e,a.$),f=a6(c);return[Reflect.apply(u.t,u,[...l6(f)]),u]};return{created:(i,a)=>{const[c,u]=t(a);Mh&&e.global===u&&(i.__i18nWatcher=os(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=u,i.textContent=c},unmounted:i=>{Mh&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const c=i.__composer,u=a6(a);i.textContent=Reflect.apply(c.t,c,[...l6(u)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function a6(e){if(Ye(e))return{path:e};if(Ft(e)){if(!("path"in e))throw Xs(Ms.REQUIRED_VALUE,"path");return e}else throw Xs(Ms.INVALID_VALUE)}function l6(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,i={},a=s||{};return Ye(n)&&(i.locale=n),Un(r)&&(i.plural=r),Un(o)&&(i.plural=o),[t,a,i]}function Tse(e,t,...n){const s=Ft(n[0])?n[0]:{};(Vt(s.globalInstall)?s.globalInstall:!0)&&([o6.name,"I18nT"].forEach(o=>e.component(o,o6)),[i6.name,"I18nN"].forEach(o=>e.component(o,i6)),[u6.name,"I18nD"].forEach(o=>e.component(o,u6))),e.directive("t",Cse(t))}const Ase=xi("global-vue-i18n");function Ese(e={}){const t=__VUE_I18N_LEGACY_API__&&Vt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=Vt(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,o]=Ise(e,t),i=xi("");function a(h){return s.get(h)||null}function c(h,v){s.set(h,v)}function u(h){s.delete(h)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(h,...v){if(h.__VUE_I18N_SYMBOL__=i,h.provide(h.__VUE_I18N_SYMBOL__,f),Ft(v[0])){const C=v[0];f.__composerExtend=C.__composerExtend,f.__vueI18nExtend=C.__vueI18nExtend}let y=null;!t&&n&&(y=Dse(h,f.global)),__VUE_I18N_FULL_INSTALL__&&Tse(h,f,...v),__VUE_I18N_LEGACY_API__&&t&&h.mixin(yse(o,o.__composer,f));const S=h.unmount;h.unmount=()=>{y&&y(),f.dispose(),S()}},get global(){return o},dispose(){r.stop()},__instances:s,__getInstance:a,__setInstance:c,__deleteInstance:u};return f}function F2(e={}){const t=ro();if(t==null)throw Xs(Ms.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Xs(Ms.NOT_INSTALLED);const n=Pse(t),s=Ose(n),r=mL(t),o=Lse(e,r);if(o==="global")return gL(s,e,r),s;if(o==="parent"){let c=Rse(n,t,e.__useComponent);return c==null&&(c=s),c}const i=n;let a=i.__getInstance(t);if(a==null){const c=Wn({},e);"__i18n"in r&&(c.__i18n=r.__i18n),s&&(c.__root=s),a=M2(c),i.__composerExtend&&(a[Iy]=i.__composerExtend(a)),Nse(i,t,a),i.__setInstance(t,a)}return a}function Ise(e,t){const n=np(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Py(e)):n.run(()=>M2(e));if(s==null)throw Xs(Ms.UNEXPECTED_ERROR);return[n,s]}function Pse(e){const t=Ys(e.isCE?Ase:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Xs(e.isCE?Ms.NOT_INSTALLED_WITH_PROVIDE:Ms.UNEXPECTED_ERROR);return t}function Lse(e,t){return Gp(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Ose(e){return e.mode==="composition"?e.global:e.global.__composer}function Rse(e,t,n=!1){let s=null;const r=t.root;let o=Mse(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(o);a!=null&&(s=a.__composer,n&&s&&!s[pL]&&(s=null))}if(s!=null||r===o)break;o=o.parent}return s}function Mse(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Nse(e,t,n){ap(()=>{},t),a_(()=>{const s=n;e.__deleteInstance(t);const r=s[Iy];r&&(r(),delete s[Iy])},t)}const Fse=["locale","fallbackLocale","availableLocales"],c6=["t","rt","d","n","tm","te"];function Dse(e,t){const n=Object.create(null);return Fse.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);
678if(!o)throw Xs(Ms.UNEXPECTED_ERROR);const i=Sn(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,i)}),e.config.globalProperties.$i18n=n,c6.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw Xs(Ms.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,c6.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const Use=Wi({name:"i18n-d",props:Wn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},N2),setup(e,t){const n=e.i18n||F2({useScope:e.scope,__useComponent:!0});return bL(e,t,cL,(...s)=>n[Ay](...s))}}),u6=Use;mse();Kne(Ene);xne(Vne);Yne(sL);if(__INTLIFY_PROD_DEVTOOLS__){const e=ka();e.__INTLIFY__=!0,Ine(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var pu={exports:{}};pu.exports;var d6;function jse(){return d6||(d6=1,function(e,t){var n=200,s="__lodash_hash_undefined__",r=800,o=16,i=9007199254740991,a="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",f="[object Boolean]",h="[object Date]",v="[object Error]",y="[object Function]",S="[object GeneratorFunction]",C="[object Map]",I="[object Number]",$="[object Null]",k="[object Object]",P="[object Proxy]",A="[object RegExp]",R="[object Set]",B="[object String]",N="[object Undefined]",Y="[object WeakMap]",H="[object ArrayBuffer]",D="[object DataView]",oe="[object Float32Array]",le="[object Float64Array]",Pe="[object Int8Array]",qe="[object Int16Array]",Ke="[object Int32Array]",Ge="[object Uint8Array]",ze="[object Uint8ClampedArray]",ot="[object Uint16Array]",Ct="[object Uint32Array]",dt=/[\\^$.*+?()[\]{}|]/g,bt=/^\[object .+?Constructor\]$/,It=/^(?:0|[1-9]\d*)$/,nt={};nt[oe]=nt[le]=nt[Pe]=nt[qe]=nt[Ke]=nt[Ge]=nt[ze]=nt[ot]=nt[Ct]=!0,nt[a]=nt[c]=nt[H]=nt[f]=nt[D]=nt[h]=nt[v]=nt[y]=nt[C]=nt[I]=nt[k]=nt[A]=nt[R]=nt[B]=nt[Y]=!1;var _t=typeof ps=="object"&&ps&&ps.Object===Object&&ps,ft=typeof self=="object"&&self&&self.Object===Object&&self,Ht=_t||ft||Function("return this")(),_e=t&&!t.nodeType&&t,Me=_e&&!0&&e&&!e.nodeType&&e,Fe=Me&&Me.exports===_e,Ue=Fe&&_t.process,pt=function(){try{var V=Me&&Me.require&&Me.require("util").types;return V||Ue&&Ue.binding&&Ue.binding("util")}catch{}}(),W=pt&&pt.isTypedArray;function G(V,ie,ye){switch(ye.length){case 0:return V.call(ie);case 1:return V.call(ie,ye[0]);case 2:return V.call(ie,ye[0],ye[1]);case 3:return V.call(ie,ye[0],ye[1],ye[2])}return V.apply(ie,ye)}function ee(V,ie){for(var ye=-1,tt=Array(V);++ye<V;)tt[ye]=ie(ye);return tt}function pe(V){return function(ie){return V(ie)}}function we(V,ie){return V==null?void 0:V[ie]}function be(V,ie){return function(ye){return V(ie(ye))}}var j=Array.prototype,q=Function.prototype,te=Object.prototype,fe=Ht["__core-js_shared__"],je=q.toString,ke=te.hasOwnProperty,re=function(){var V=/[^.]+$/.exec(fe&&fe.keys&&fe.keys.IE_PROTO||"");return V?"Symbol(src)_1."+V:""}(),me=te.toString,xe=je.call(Object),rt=RegExp("^"+je.call(ke).replace(dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Fe?Ht.Buffer:void 0,Qt=Ht.Symbol,Wt=Ht.Uint8Array;ut&&ut.allocUnsafe;var En=be(Object.getPrototypeOf,Object),On=Object.create,Cs=te.propertyIsEnumerable,tr=j.splice,ln=Qt?Qt.toStringTag:void 0,Rn=function(){try{var V=Oe(Object,"defineProperty");return V({},"",{}),V}catch{}}(),nr=ut?ut.isBuffer:void 0,Fr=Math.max,cc=Date.now,Fs=Oe(Ht,"Map"),Dr=Oe(Object,"create"),Ya=function(){function V(){}return function(ie){if(!po(ie))return{};if(On)return On(ie);V.prototype=ie;var ye=new V;return V.prototype=void 0,ye}}();function sr(V){var ie=-1,ye=V==null?0:V.length;for(this.clear();++ie<ye;){var tt=V[ie];this.set(tt[0],tt[1])}}function uc(){this.__data__=Dr?Dr(null):{},this.size=0}function dc(V){var ie=this.has(V)&&delete this.__data__[V];return this.size-=ie?1:0,ie}function fc(V){var ie=this.__data__;if(Dr){var ye=ie[V];return ye===s?void 0:ye}return ke.call(ie,V)?ie[V]:void 0}function Xa(V){var ie=this.__data__;return Dr?ie[V]!==void 0:ke.call(ie,V)}function hc(V,ie){var ye=this.__data__;return this.size+=this.has(V)?0:1,ye[V]=Dr&&ie===void 0?s:ie,this}sr.prototype.clear=uc,sr.prototype.delete=dc,sr.prototype.get=fc,sr.prototype.has=Xa,sr.prototype.set=hc;function Ds(V){var ie=-1,ye=V==null?0:V.length;for(this.clear();++ie<ye;){var tt=V[ie];this.set(tt[0],tt[1])}}function pc(){this.__data__=[],this.size=0}function ta(V){var ie=this.__data__,ye=co(ie,V);if(ye<0)return!1;var tt=ie.length-1;return ye==tt?ie.pop():tr.call(ie,ye,1),--this.size,!0}function mc(V){var ie=this.__data__,ye=co(ie,V);return ye<0?void 0:ie[ye][1]}function na(V){return co(this.__data__,V)>-1}function Ja(V,ie){var ye=this.__data__,tt=co(ye,V);return tt<0?(++this.size,ye.push([V,ie])):ye[tt][1]=ie,this}Ds.prototype.clear=pc,Ds.prototype.delete=ta,Ds.prototype.get=mc,Ds.prototype.has=na,Ds.prototype.set=Ja;function Ur(V){var ie=-1,ye=V==null?0:V.length;for(this.clear();++ie<ye;){var tt=V[ie];this.set(tt[0],tt[1])}}function gc(){this.size=0,this.__data__={hash:new sr,map:new(Fs||Ds),string:new sr}}function vc(V){var ie=Ie(this,V).delete(V);return this.size-=ie?1:0,ie}function bc(V){return Ie(this,V).get(V)}function yc(V){return Ie(this,V).has(V)}function _c(V,ie){var ye=Ie(this,V),tt=ye.size;return ye.set(V,ie),this.size+=ye.size==tt?0:1,this}
678Ur.prototype.clear=gc,Ur.prototype.delete=vc,Ur.prototype.get=bc,Ur.prototype.has=yc,Ur.prototype.set=_c;function jr(V){var ie=this.__data__=new Ds(V);this.size=ie.size}function Za(){this.__data__=new Ds,this.size=0}function wc(V){var ie=this.__data__,ye=ie.delete(V);return this.size=ie.size,ye}function Sc(V){return this.__data__.get(V)}function kc(V){return this.__data__.has(V)}function $c(V,ie){var ye=this.__data__;if(ye instanceof Ds){var tt=ye.__data__;if(!Fs||tt.length<n-1)return tt.push([V,ie]),this.size=++ye.size,this;ye=this.__data__=new Ur(tt)}return ye.set(V,ie),this.size=ye.size,this}jr.prototype.clear=Za,jr.prototype.delete=wc,jr.prototype.get=Sc,jr.prototype.has=kc,jr.prototype.set=$c;function Cc(V,ie){var ye=ri(V),tt=!ye&&oa(V),Dt=!ye&&!tt&&Ed(V),Yt=!ye&&!tt&&!Dt&&Pd(V),gn=ye||tt||Dt||Yt,yt=gn?ee(V.length,String):[],on=yt.length;for(var jn in V)gn&&(jn=="length"||Dt&&(jn=="offset"||jn=="parent")||Yt&&(jn=="buffer"||jn=="byteLength"||jn=="byteOffset")||Ze(jn,on))||yt.push(jn);return yt}function sa(V,ie,ye){(ye!==void 0&&!ho(V[ie],ye)||ye===void 0&&!(ie in V))&&Ts(V,ie,ye)}function ti(V,ie,ye){var tt=V[ie];(!(ke.call(V,ie)&&ho(tt,ye))||ye===void 0&&!(ie in V))&&Ts(V,ie,ye)}function co(V,ie){for(var ye=V.length;ye--;)if(ho(V[ye][0],ie))return ye;return-1}function Ts(V,ie,ye){ie=="__proto__"&&Rn?Rn(V,ie,{configurable:!0,enumerable:!0,value:ye,writable:!0}):V[ie]=ye}var Qa=Ce();function Us(V){return V==null?V===void 0?N:$:ln&&ln in Object(V)?Re(V):Zn(V)}function el(V){return mo(V)&&Us(V)==a}function uo(V){if(!po(V)||zt(V))return!1;var ie=Pc(V)?rt:bt;return ie.test(Ec(V))}function ni(V){return mo(V)&&Id(V.length)&&!!nt[Us(V)]}function tl(V){if(!po(V))return xt(V);var ie=cn(V),ye=[];for(var tt in V)tt=="constructor"&&(ie||!ke.call(V,tt))||ye.push(tt);return ye}function nl(V,ie,ye,tt,Dt){V!==ie&&Qa(ie,function(Yt,gn){if(Dt||(Dt=new jr),po(Yt))ra(V,ie,gn,ye,nl,tt,Dt);else{var yt=tt?tt(fo(V,gn),Yt,gn+"",V,ie,Dt):void 0;yt===void 0&&(yt=Yt),sa(V,gn,yt)}},Ld)}function ra(V,ie,ye,tt,Dt,Yt,gn){var yt=fo(V,ye),on=fo(ie,ye),jn=gn.get(on);if(jn){sa(V,ye,jn);return}var is=Yt?Yt(yt,on,ye+"",V,ie,gn):void 0,go=is===void 0;if(go){var as=ri(on),rl=!as&&Ed(on),Lc=!as&&!rl&&Pd(on);is=on,as||rl||Lc?ri(yt)?is=yt:Ad(yt)?is=se(yt):rl?(go=!1,is=F(on)):Lc?(go=!1,is=z(on)):is=[]:cm(on)||oa(on)?(is=yt,oa(yt)?is=um(yt):(!po(yt)||Pc(yt))&&(is=De(on))):go=!1}go&&(gn.set(on,is),Dt(is,on,tt,Yt,gn),gn.delete(on)),sa(V,ye,is)}function Tc(V,ie){return sl(Br(V,ie,en),V+"")}var Ac=Rn?function(V,ie){return Rn(V,"toString",{configurable:!0,enumerable:!1,value:un(ie),writable:!0})}:en;function F(V,ie){return V.slice()}function J(V){var ie=new V.constructor(V.byteLength);return new Wt(ie).set(new Wt(V)),ie}function z(V,ie){var ye=J(V.buffer);return new V.constructor(ye,V.byteOffset,V.length)}function se(V,ie){var ye=-1,tt=V.length;for(ie||(ie=Array(tt));++ye<tt;)ie[ye]=V[ye];return ie}function ce(V,ie,ye,tt){var Dt=!ye;ye||(ye={});for(var Yt=-1,gn=ie.length;++Yt<gn;){var yt=ie[Yt],on=void 0;on===void 0&&(on=V[yt]),Dt?Ts(ye,yt,on):ti(ye,yt,on)}return ye}function ne(V){return Tc(function(ie,ye){var tt=-1,Dt=ye.length,Yt=Dt>1?ye[Dt-1]:void 0,gn=Dt>2?ye[2]:void 0;for(Yt=V.length>3&&typeof Yt=="function"?(Dt--,Yt):void 0,gn&&Tt(ye[0],ye[1],gn)&&(Yt=Dt<3?void 0:Yt,Dt=1),ie=Object(ie);++tt<Dt;){var yt=ye[tt];yt&&V(ie,yt,tt,Yt)}return ie})}function Ce(V){return function(ie,ye,tt){for(var Dt=-1,Yt=Object(ie),gn=tt(ie),yt=gn.length;yt--;){var on=gn[++Dt];if(ye(Yt[on],on,Yt)===!1)break}return ie}}function Ie(V,ie){var ye=V.__data__;return Bt(ie)?ye[typeof ie=="string"?"string":"hash"]:ye.map}function Oe(V,ie){var ye=we(V,ie);return uo(ye)?ye:void 0}function Re(V){var ie=ke.call(V,ln),ye=V[ln];try{V[ln]=void 0;var tt=!0}catch{}var Dt=me.call(V);return tt&&(ie?V[ln]=ye:delete V[ln]),Dt}function De(V){return typeof V.constructor=="function"&&!cn(V)?Ya(En(V)):{}}function Ze(V,ie){var ye=typeof V;return ie=ie??i,!!ie&&(ye=="number"||ye!="symbol"&&It.test(V))&&V>-1&&V%1==0&&V<ie}function Tt(V,ie,ye){if(!po(ye))return!1;var tt=typeof ie;return(tt=="number"?Ic(ye)&&Ze(ie,ye.length):tt=="string"&&ie in ye)?ho(ye[ie],V):!1}function Bt(V){var ie=typeof V;return ie=="string"||ie=="number"||ie=="symbol"||ie=="boolean"?V!=="__proto__":V===null}function zt(V){return!!re&&re in V}function cn(V){var ie=V&&V.constructor,ye=typeof ie=="function"&&ie.prototype||te;return V===ye}function xt(V){var ie=[];if(V!=null)for(var ye in Object(V))ie.push(ye);return ie}function Zn(V){return me.call(V)}function Br(V,ie,ye){return ie=Fr(ie===void 0?V.length-1:ie,0),function(){for(var tt=arguments,Dt=-1,Yt=Fr(tt.length-ie,0),gn=Array(Yt);++Dt<Yt;)gn[Dt]=tt[ie+Dt];Dt=-1;for(var yt=Array(ie+1);++Dt<ie;)yt[Dt]=tt[Dt];return yt[ie]=ye(gn),G(V,this,yt)}}function fo(V,ie){if(!(ie==="constructor"&&typeof V[ie]=="function")&&ie!="__proto__")return V[ie]}var sl=si(Ac);function si(V){var ie=0,ye=0;return function(){var tt=cc(),Dt=o-(tt-ye);if(ye=tt,Dt>0){if(++ie>=r)return arguments[0]}else ie=0;return V.apply(void 0,arguments)}}function Ec(V){if(V!=null){try{return je.call(V)}catch{}try{return V+""}catch{}}return""}function ho(V,ie){return V===ie||V!==V&&ie!==ie}var oa=el(function(){return arguments}())?el:function(V){return mo(V)&&ke.call(V,"callee")&&!Cs.call(V,"callee")},ri=Array.isArray;function Ic(V){return V!=null&&Id(V.length)&&!Pc(V)}function Ad(V){return mo(V)&&Ic(V)}var Ed=nr||fm;function Pc(V){if(!po(V))return!1;var ie=Us(V);return ie==y||ie==S||ie==u||ie==P}function Id(V){return typeof V=="number"&&V>-1&&V%1==0&&V<=i}function po(V){var ie=typeof V;return V!=null&&(ie=="object"||ie=="function")}function mo(V){return V!=null&&typeof V=="object"}function cm(V){if(!mo(V)||Us(V)!=k)return!1;var ie=En(V);if(ie===null)return!0;var ye=ke.call(ie,"constructor")&&ie.constructor;return typeof ye=="function"&&ye instanceof ye&&je.call(ye)==xe}var Pd=W?pe(W):ni;function um(V){return ce(V,Ld(V))}function Ld(V){return Ic(V)?Cc(V):tl(V)}var dm=ne(function(V,ie,ye){nl(V,ie,ye)});function un(V){return function(){return V}}function en(V){return V}function fm(){return!1}e.exports=dm}(pu,pu.exports)),pu.exports}var Bse=jse();const zse=bs(Bse);let gb=!1;const yL=(e,t)=>t.length===0?e:t.reduce((n,s)=>(Z.set(n,s,Z.get(e,s)),n),{}),qse=["markNotificationsAsSeen","clearCurrentUser","setCurrentUser","setHighlight","setOption","setClientData","setToken","clearToken"],_L=Wp;function Hse({key:e="vuex-lz",paths:t=[],getState:n=(a,c)=>c.getItem(a),setState:s=(a,c,u)=>gb?u.setItem(a,c):(console.info("waiting for old state to be loaded..."),Promise.resolve()),reducer:r=yL,storage:o=_L,subscriber:i=a=>c=>a.subscribe(c)}={}){return n(e,o).then(a=>c=>{try{if(a!==null&&typeof a=="object"){const u=a.users||{};u.usersObject={};const f=u.users||[];Z.each(f,h=>{u.usersObject[h.id]=h}),a.users=u,c.replaceState(zse({},c.state,a))}gb=!0}catch(u){console.error("Couldn't load state"),console.error(u),gb=!0}i(c)((u,f)=>{try{qse.includes(u.type)&&s(e,r(Z.cloneDeep(f),t),o).then(h=>{typeof h<"u"&&(u.type==="setOption"||u.type==="setCurrentUser")&&Xe().settingsSaved({success:h})},h=>{(u.type==="setOption"||u.type==="setCurrentUser")&&Xe().settingsSaved({error:h})})}catch(h){console.error("Couldn't persist state:"),console.error(h)}})})}const Vse=({vuexKey:e="vuex-lz",keyFunction:t=r=>`pinia-local-${r}`,storage:n=_L,reducer:s=yL}={})=>({store:r,options:o})=>{if(!o.persist)return{$persistLoaded:Promise.resolve()};let i,a;const c=new Promise((A,R)=>{i=A,a=R}),{afterLoad:u,paths:f=[],saveImmediatelyActions:h,onSaveSuccess:v=()=>{},onSaveError:y=()=>{}}=o.persist||{},S={loaded:!1},C=t(r.$id),I=async()=>{const A=r.$id,R=await n.getItem(C);if(R)return R;const B=await n.getItem(e);if(B&&B[A]){console.info(`Migrating ${A} store data from vuex to pinia`);const N=B[A];return await n.setItem(C,N),N}return{}},$=A=>S.loaded?n.setItem(C,A):(console.info("waiting for old state to be loaded..."),Promise.reject()),k=async()=>{const A=await I();if(typeof u=="function")try{return await u(A)}catch(R){return console.error("Error running afterLoad:",R),A}else return A},P=async A=>{const R=Z.cloneDeep(A),B=s(R,f);try{const N=await $(B);v(N)}catch(N){console.error("Cannot persist state:",N),y(N)}};return k().then(A=>{A&&r.$patch(A),S.loaded=!0,i(),h?r.$onAction(({name:R,store:B,after:N})=>{h.includes(R)&&N(()=>P(B.$state))}):r.$subscribe(async(R,B)=>{await P(B)})},A=>{console.error("Cannot load storage:",A),a(A)}),{$persistLoaded:c}},Wse=e=>{e.subscribe((t,n)=>{const s=n.instance.vapidPublicKey,r=n.config.webPushNotifications,o=Xe().notificationPermission==="granted",i=n.users.currentUser,a=t.type==="setCurrentUser",c=t.type==="setInstanceOption"&&t.payload.name==="vapidPublicKey",u=t.type==="setNotificationPermission"&&t.payload==="granted",f=t.type==="setOption"&&t.payload.name==="webPushNotifications",h=t.type==="setOption"&&t.payload.name==="notificationVisibility";if(a||c||u||f||h){if(i&&s&&o&&r)return e.dispatch("registerPushNotifications");
678if(f&&!r)return e.dispatch("unregisterPushNotifications")}})},Ff="password",f6="token",vb="totp",h6="recovery",Yo=vs("authFlow",{state:()=>({settings:{},strategy:Ff,initStrategy:Ff}),getters:{requiredPassword:e=>e.strategy===Ff,requiredToken:e=>e.strategy===f6,requiredTOTP:e=>e.strategy===vb,requiredRecovery:e=>e.strategy===h6},actions:{setInitialStrategy(e){e&&(this.initStrategy=e,this.strategy=e)},requirePassword(){this.strategy=Ff},requireToken(){this.strategy=f6},requireMFA({settings:e}){this.settings=e,this.strategy=vb},requireRecovery(){this.strategy=h6},requireTOTP(){this.strategy=vb},abortMFA(){this.resetState()},resetState(){this.strategy=this.initStrategy,this.settings={}},async login({access_token:e}){Ar().setToken(e),await window.vuex.dispatch("loginUser",e,{root:!0}),this.resetState()}}}),Gse=Object.freeze(Object.defineProperty({__proto__:null,useAuthFlowStore:Yo},Symbol.toStringTag,{value:"Module"})),Ru=vs("editStatus",{state:()=>({params:null,modalActivated:!1}),actions:{openEditStatusModal(e){this.params=e,this.modalActivated=!0},closeEditStatusModal(){this.modalActivated=!1}}}),Kse=Object.freeze(Object.defineProperty({__proto__:null,useEditStatusStore:Ru},Symbol.toStringTag,{value:"Module"})),wL=e=>e.match(/flash/)?"flash":e.match(/text\/html/)?"html":e.match(/image/)?"image":e.match(/video/)?"video":e.match(/audio/)?"audio":"unknown",xse=e=>e.match(/\.(a?png|jpe?g|gif|webp|avif)$/)?"image":e.match(/\.(ogv|mp4|webm|mov)$/)?"video":e.match(/\.(it|s3m|mod|umx|mp3|aac|m4a|flac|alac|ogg|oga|opus|wav|ape|midi?)$/)?"audio":"unknown",Yse=(e,t)=>e.some(n=>wL(t.mimetype)===n),Fa={fileType:wL,fileTypeExt:xse,fileMatchesSomeType:Yse},Xse=new Set(["image","video","audio","flash"]),hs=vs("mediaViewer",{state:()=>({media:[],currentIndex:0,activated:!1}),actions:{setMedia(e){const t=e.filter(n=>{const s=Fa.fileType(n.mimetype);return Xse.has(s)});this.media=t},setCurrentMedia(e){const t=this.media.indexOf(e);this.activated=!0,this.currentIndex=t},closeMediaViewer(){this.activated=!1}}}),Jse=Object.freeze(Object.defineProperty({__proto__:null,useMediaViewerStore:hs},Symbol.toStringTag,{value:"Module"})),Zse=vs("oauthTokens",{state:()=>({tokens:[]}),actions:{fetchTokens(){window.vuex.state.api.backendInteractor.fetchOAuthTokens().then(e=>{this.swapTokens(e)})},revokeToken(e){window.vuex.state.api.backendInteractor.revokeOAuthToken({id:e}).then(t=>{t.status===201&&this.swapTokens(this.tokens.filter(n=>n.id!==e))})},swapTokens(e){this.tokens=e}}}),Qse=Object.freeze(Object.defineProperty({__proto__:null,useOAuthTokensStore:Zse},Symbol.toStringTag,{value:"Module"})),_a=vs("polls",{state:()=>({trackedPolls:{},pollsObject:{}}),actions:{mergeOrAddPoll(e){const t=this.pollsObject[e.id];e.expired=Date.now()>Date.parse(e.expires_at),t?this.pollsObject[e.id]=Z.merge(t,e):this.pollsObject[e.id]=e},updateTrackedPoll(e){window.vuex.state.api.backendInteractor.fetchPoll({pollId:e}).then(t=>{setTimeout(()=>{this.trackedPolls[e]&&this.updateTrackedPoll(e)},30*1e3),this.mergeOrAddPoll(t)})},trackPoll(e){this.trackedPolls[e]||setTimeout(()=>this.updateTrackedPoll(e),30*1e3);const t=this.trackedPolls[e];t?this.trackedPolls[e]=t+1:this.trackedPolls[e]=1},untrackPoll(e){const t=this.trackedPolls[e];t?this.trackedPolls[e]=t-1:this.trackedPolls[e]=0},votePoll({pollId:e,choices:t}){return window.vuex.state.api.backendInteractor.vote({pollId:e,choices:t}).then(n=>(this.mergeOrAddPoll(n),n))}}}),ere=Object.freeze(Object.defineProperty({__proto__:null,usePollsStore:_a},Symbol.toStringTag,{value:"Module"})),Ai=vs("postStatus",{state:()=>({params:null,modalActivated:!1}),actions:{openPostStatusModal(e){this.params=e,this.modalActivated=!0},closePostStatusModal(){this.modalActivated=!1},resetPostStatusModal(){this.params=null}}}),tre=Object.freeze(Object.defineProperty({__proto__:null,usePostStatusStore:Ai},Symbol.toStringTag,{value:"Module"})),Mu=vs("statusHistory",{state:()=>({params:{},modalActivated:!1}),actions:{openStatusHistoryModal(e){this.params=e,this.modalActivated=!0},closeStatusHistoryModal(){this.modalActivated=!1}}}),nre=Object.freeze(Object.defineProperty({__proto__:null,useStatusHistoryStore:Mu},Symbol.toStringTag,{value:"Module"}));/*!
679  * vue-router v4.5.1
680  * (c) 2025 Eduardo San Martin Morote
681  * @license MIT
682  */const Al=typeof document<"u";function SL(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}
vendor: 9,866 bytes, line 682
682function sre(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&SL(e.default)}const Jt=Object.assign;function bb(e,t){const n={};for(const s in t){const r=t[s];n[s]=Or(r)?r.map(e):e(r)}return n}const Nu=()=>{},Or=Array.isArray,kL=/#/g,rre=/&/g,ore=/\//g,ire=/=/g,are=/\?/g,$L=/\+/g,lre=/%5B/g,cre=/%5D/g,CL=/%5E/g,ure=/%60/g,TL=/%7B/g,dre=/%7C/g,AL=/%7D/g,fre=/%20/g;function D2(e){return encodeURI(""+e).replace(dre,"|").replace(lre,"[").replace(cre,"]")}function hre(e){return D2(e).replace(TL,"{").replace(AL,"}").replace(CL,"^")}function Ly(e){return D2(e).replace($L,"%2B").replace(fre,"+").replace(kL,"%23").replace(rre,"%26").replace(ure,"`").replace(TL,"{").replace(AL,"}").replace(CL,"^")}function pre(e){return Ly(e).replace(ire,"%3D")}function mre(e){return D2(e).replace(kL,"%23").replace(are,"%3F")}function gre(e){return e==null?"":mre(e).replace(ore,"%2F")}function Qu(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const vre=/\/$/,bre=e=>e.replace(vre,"");function yb(e,t,n="/"){let s,r={},o="",i="";const a=t.indexOf("#");let c=t.indexOf("?");return a<c&&a>=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,a>-1?a:t.length),r=e(o)),a>-1&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=Sre(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Qu(i)}}function yre(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function p6(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _re(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Yl(t.matched[s],n.matched[r])&&EL(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Yl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function EL(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!wre(e[n],t[n]))return!1;return!0}function wre(e,t){return Or(e)?m6(e,t):Or(t)?m6(t,e):e===t}function m6(e,t){return Or(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Sre(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,a;for(i=0;i<s.length;i++)if(a=s[i],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const vi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ed;(function(e){e.pop="pop",e.push="push"})(ed||(ed={}));var Fu;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Fu||(Fu={}));function kre(e){if(!e)if(Al){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),bre(e)}const $re=/^[^#]+#/;function Cre(e,t){return e.replace($re,"#")+t}function Tre(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Yp=()=>({left:window.scrollX,top:window.scrollY});function Are(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Tre(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function g6(e,t){return(history.state?history.state.position-t:-1)+e}const Oy=new Map;function Ere(e,t){Oy.set(e,t)}function Ire(e){const t=Oy.get(e);return Oy.delete(e),t}let Pre=()=>location.protocol+"//"+location.host;function IL(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let a=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(a);return c[0]!=="/"&&(c="/"+c),p6(c,"")}return p6(n,e)+s+r}function Lre(e,t,n,s){let r=[],o=[],i=null;const a=({state:v})=>{const y=IL(e,location),S=n.value,C=t.value;let I=0;if(v){if(n.value=y,t.value=v,i&&i===S){i=null;return}I=C?v.position-C.position:0}else s(y);r.forEach($=>{$(n.value,S,{delta:I,type:ed.pop,direction:I?I>0?Fu.forward:Fu.back:Fu.unknown})})};function c(){i=n.value}function u(v){r.push(v);const y=()=>{const S=r.indexOf(v);S>-1&&r.splice(S,1)};return o.push(y),y}function f(){const{history:v}=window;v.state&&v.replaceState(Jt({},v.state,{scroll:Yp()}),"")}function h(){for(const v of o)v();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:c,listen:u,destroy:h}}function v6(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Yp():null}}function Ore(e){const{history:t,location:n}=window,s={value:IL(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,f){const h=e.indexOf("#"),v=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Pre()+e+c;try{t[f?"replaceState":"pushState"](u,"",v),r.value=u}catch(y){console.error(y),n[f?"replace":"assign"](v)}}function i(c,u){const f=Jt({},t.state,v6(r.value.back,c,r.value.forward,!0),u,{position:r.value.position});o(c,f,!0),s.value=c}function a(c,u){const f=Jt({},r.value,t.state,{forward:c,scroll:Yp()});o(f.current,f,!0);const h=Jt({},v6(s.value,c,null),{position:f.position+1},u);o(c,h,!1),s.value=c}return{location:s,state:r,push:a,replace:i}}function Rre(e){e=kre(e);const t=Ore(e),n=Lre(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Jt({location:"",base:e,go:s,createHref:Cre.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Mre(e){return typeof e=="string"||e&&typeof e=="object"}function PL(e){return typeof e=="string"||typeof e=="symbol"}const LL=Symbol("");var b6;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(b6||(b6={}));function Xl(e,t){return Jt(new Error,{type:e,[LL]:!0},t)}function Io(e,t){return e instanceof Error&&LL in e&&(t==null||!!(e.type&t))}const y6="[^/]+?",Nre={sensitive:!1,strict:!1,start:!0,end:!0},Fre=/[.+*?^${}()[\]/\\]/g;function Dre(e,t){const n=Jt({},Nre,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let h=0;h<u.length;h++){const v=u[h];let y=40+(n.sensitive?.25:0);if(v.type===0)h||(r+="/"),r+=v.value.replace(Fre,"\\$&"),y+=40;else if(v.type===1){const{value:S,repeatable:C,optional:I,regexp:$}=v;o.push({name:S,repeatable:C,optional:I});const k=$||y6;if(k!==y6){y+=10;try{new RegExp(`(${k})`)}catch(A){throw new Error(`Invalid custom RegExp for param "${S}" (${k}): `+A.message)}}let P=C?`((?:${k})(?:/(?:${k}))*)`:`(${k})`;h||(P=I&&u.length<2?`(?:/${P})`:"/"+P),I&&(P+="?"),r+=P,y+=20,I&&(y+=-8),C&&(y+=-20),k===".*"&&(y+=-50)}f.push(y)}s.push(f)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function a(u){const f=u.match(i),h={};if(!f)return null;for(let v=1;v<f.length;v++){const y=f[v]||"",S=o[v-1];h[S.name]=y&&S.repeatable?y.split("/"):y}return h}function c(u){let f="",h=!1;for(const v of e){(!h||!f.endsWith("/"))&&(f+="/"),h=!1;for(const y of v)if(y.type===0)f+=y.value;else if(y.type===1){const{value:S,repeatable:C,optional:I}=y,$=S in u?u[S]:"";if(Or($)&&!C)throw new Error(`Provided param "${S}" is an array but it is not repeatable (* or + modifiers)`);const k=Or($)?$.join("/"):$;if(!k)if(I)v.length<2&&(f.endsWith("/")?f=f.slice(0,-1):h=!0);else throw new Error(`Missing required param "${S}"`);f+=k}}return f||"/"}return{re:i,score:s,keys:o,parse:a,stringify:c}}function Ure(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function OL(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Ure(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(_6(s))return 1;if(_6(r))return-1}return r.length-s.length}function _6(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const jre={type:0,value:""},Bre=/[a-zA-Z0-9_]/;function zre(e){if(!e)return[[]];if(e==="/")return[[jre]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${n})/"${u}": ${y}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let a=0,c,u="",f="";function h(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=c}for(;a<e.length;){if(c=e[a++],c==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:c==="/"?(u&&h(),i()):c===":"?(h(),n=1):v();break;case 4:v(),n=s;break;case 1:c==="("?n=2:Bre.test(c)?v():(h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case 2:c===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+c:n=3:f+=c;break;case 3:h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),h(),i(),r}function qre(e,t,n){const s=Dre(zre(e.path),n),r=Jt(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Hre(e,t){const n=[],s=new Map;t=$6({strict:!1,end:!0,sensitive:!1},t);function r(h){return s.get(h)}function o(h,v,y){const S=!y,C=S6(h);C.aliasOf=y&&y.record;const I=$6(t,h),$=[C];
vendor: 11,184 bytes, line 682
682if("alias"in h){const A=typeof h.alias=="string"?[h.alias]:h.alias;for(const R of A)$.push(S6(Jt({},C,{components:y?y.record.components:C.components,path:R,aliasOf:y?y.record:C})))}let k,P;for(const A of $){const{path:R}=A;if(v&&R[0]!=="/"){const B=v.record.path,N=B[B.length-1]==="/"?"":"/";A.path=v.record.path+(R&&N+R)}if(k=qre(A,v,I),y?y.alias.push(k):(P=P||k,P!==k&&P.alias.push(k),S&&h.name&&!k6(k)&&i(h.name)),RL(k)&&c(k),C.children){const B=C.children;for(let N=0;N<B.length;N++)o(B[N],k,y&&y.children[N])}y=y||k}return P?()=>{i(P)}:Nu}function i(h){if(PL(h)){const v=s.get(h);v&&(s.delete(h),n.splice(n.indexOf(v),1),v.children.forEach(i),v.alias.forEach(i))}else{const v=n.indexOf(h);v>-1&&(n.splice(v,1),h.record.name&&s.delete(h.record.name),h.children.forEach(i),h.alias.forEach(i))}}function a(){return n}function c(h){const v=Gre(h,n);n.splice(v,0,h),h.record.name&&!k6(h)&&s.set(h.record.name,h)}function u(h,v){let y,S={},C,I;if("name"in h&&h.name){if(y=s.get(h.name),!y)throw Xl(1,{location:h});I=y.record.name,S=Jt(w6(v.params,y.keys.filter(P=>!P.optional).concat(y.parent?y.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),h.params&&w6(h.params,y.keys.map(P=>P.name))),C=y.stringify(S)}else if(h.path!=null)C=h.path,y=n.find(P=>P.re.test(C)),y&&(S=y.parse(C),I=y.record.name);else{if(y=v.name?s.get(v.name):n.find(P=>P.re.test(v.path)),!y)throw Xl(1,{location:h,currentLocation:v});I=y.record.name,S=Jt({},v.params,h.params),C=y.stringify(S)}const $=[];let k=y;for(;k;)$.unshift(k.record),k=k.parent;return{name:I,path:C,params:S,matched:$,meta:Wre($)}}e.forEach(h=>o(h));function f(){n.length=0,s.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:f,getRoutes:a,getRecordMatcher:r}}function w6(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function S6(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Vre(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Vre(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function k6(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Wre(e){return e.reduce((t,n)=>Jt(t,n.meta),{})}function $6(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Gre(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;OL(e,t[o])<0?s=o:n=o+1}const r=Kre(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Kre(e){let t=e;for(;t=t.parent;)if(RL(t)&&OL(e,t)===0)return t}function RL({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function xre(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){const o=s[r].replace($L," "),i=o.indexOf("="),a=Qu(i<0?o:o.slice(0,i)),c=i<0?null:Qu(o.slice(i+1));if(a in t){let u=t[a];Or(u)||(u=t[a]=[u]),u.push(c)}else t[a]=c}return t}function C6(e){let t="";for(let n in e){const s=e[n];if(n=pre(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Or(s)?s.map(o=>o&&Ly(o)):[s&&Ly(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Yre(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Or(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Xre=Symbol(""),T6=Symbol(""),U2=Symbol(""),ML=Symbol(""),Ry=Symbol("");function Zc(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Si(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((a,c)=>{const u=v=>{v===!1?c(Xl(4,{from:n,to:t})):v instanceof Error?c(v):Mre(v)?c(Xl(2,{from:t,to:v})):(i&&s.enterCallbacks[r]===i&&typeof v=="function"&&i.push(v),a())},f=o(()=>e.call(s&&s.instances[r],t,n,u));let h=Promise.resolve(f);e.length<3&&(h=h.then(u)),h.catch(v=>c(v))})}function _b(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const a in i.components){let c=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(SL(c)){const f=(c.__vccOpts||c)[t];f&&o.push(Si(f,n,s,i,a,r))}else{let u=c();o.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const h=sre(f)?f.default:f;i.mods[a]=f,i.components[a]=h;const y=(h.__vccOpts||h)[t];return y&&Si(y,n,s,i,a,r)()}))}}return o}function A6(e){const t=Ys(U2),n=Ys(ML),s=vt(()=>{const c=Lt(e.to);return t.resolve(c)}),r=vt(()=>{const{matched:c}=s.value,{length:u}=c,f=c[u-1],h=n.matched;if(!f||!h.length)return-1;const v=h.findIndex(Yl.bind(null,f));if(v>-1)return v;const y=E6(c[u-2]);return u>1&&E6(f)===y&&h[h.length-1].path!==y?h.findIndex(Yl.bind(null,c[u-2])):v}),o=vt(()=>r.value>-1&&toe(n.params,s.value.params)),i=vt(()=>r.value>-1&&r.value===n.matched.length-1&&EL(n.params,s.value.params));function a(c={}){if(eoe(c)){const u=t[Lt(e.replace)?"replace":"push"](Lt(e.to)).catch(Nu);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:vt(()=>s.value.href),isActive:o,isExactActive:i,navigate:a}}function Jre(e){return e.length===1?e[0]:e}const Zre=Wi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:A6,setup(e,{slots:t}){const n=Pr(A6(e)),{options:s}=Ys(U2),r=vt(()=>({[I6(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[I6(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Jre(t.default(n));return e.custom?o:Zo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Qre=Zre;function eoe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function toe(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Or(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function E6(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const I6=(e,t,n)=>e??t??n,noe=Wi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ys(Ry),r=vt(()=>e.route||s.value),o=Ys(T6,0),i=vt(()=>{let u=Lt(o);const{matched:f}=r.value;let h;for(;(h=f[u])&&!h.components;)u++;return u}),a=vt(()=>r.value.matched[i.value]);Ml(T6,vt(()=>i.value+1)),Ml(Xre,a),Ml(Ry,r);const c=Kn();return os(()=>[c.value,a.value,e.name],([u,f,h],[v,y,S])=>{f&&(f.instances[h]=u,y&&y!==f&&u&&u===v&&(f.leaveGuards.size||(f.leaveGuards=y.leaveGuards),f.updateGuards.size||(f.updateGuards=y.updateGuards))),u&&f&&(!y||!Yl(f,y)||!v)&&(f.enterCallbacks[h]||[]).forEach(C=>C(u))},{flush:"post"}),()=>{const u=r.value,f=e.name,h=a.value,v=h&&h.components[f];if(!v)return P6(n.default,{Component:v,route:u});const y=h.props[f],S=y?y===!0?u.params:typeof y=="function"?y(u):y:null,I=Zo(v,Jt({},S,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(h.instances[f]=null)},ref:c}));return P6(n.default,{Component:I,route:u})||I}}});function P6(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const soe=noe;function roe(e){const t=Hre(e.routes,e),n=e.parseQuery||xre,s=e.stringifyQuery||C6,r=e.history,o=Zc(),i=Zc(),a=Zc(),c=uA(vi);let u=vi;Al&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=bb.bind(null,_e=>""+_e),h=bb.bind(null,gre),v=bb.bind(null,Qu);function y(_e,Me){let Fe,Ue;return PL(_e)?(Fe=t.getRecordMatcher(_e),Ue=Me):Ue=_e,t.addRoute(Ue,Fe)}function S(_e){const Me=t.getRecordMatcher(_e);Me&&t.removeRoute(Me)}function C(){return t.getRoutes().map(_e=>_e.record)}function I(_e){return!!t.getRecordMatcher(_e)}function $(_e,Me){if(Me=Jt({},Me||c.value),typeof _e=="string"){const ee=yb(n,_e,Me.path),pe=t.resolve({path:ee.path},Me),we=r.createHref(ee.fullPath);return Jt(ee,pe,{params:v(pe.params),hash:Qu(ee.hash),redirectedFrom:void 0,href:we})}let Fe;if(_e.path!=null)Fe=Jt({},_e,{path:yb(n,_e.path,Me.path).path});else{const ee=Jt({},_e.params);for(const pe in ee)ee[pe]==null&&delete ee[pe];Fe=Jt({},_e,{params:h(ee)}),Me.params=h(Me.params)}const Ue=t.resolve(Fe,Me),pt=_e.hash||"";Ue.params=f(v(Ue.params));const W=yre(s,Jt({},_e,{hash:hre(pt),path:Ue.path})),G=r.createHref(W);return Jt({fullPath:W,hash:pt,query:s===C6?Yre(_e.query):_e.query||{}},Ue,{redirectedFrom:void 0,href:G})}function k(_e){return typeof _e=="string"?yb(n,_e,c.value.path):Jt({},_e)}function P(_e,Me){if(u!==_e)return Xl(8,{from:Me,to:_e})}function A(_e){return N(_e)}function R(_e){return A(Jt(k(_e),{replace:!0}))}function B(_e){const Me=_e.matched[_e.matched.length-1];if(Me&&Me.redirect){const{redirect:Fe}=Me;let Ue=typeof Fe=="function"?Fe(_e):Fe;return typeof Ue=="string"&&(Ue=Ue.includes("?")||Ue.includes("#")?Ue=k(Ue):{path:Ue},Ue.params={}),Jt({query:_e.query,hash:_e.hash,params:Ue.path!=null?{}:_e.params},Ue)}}function N(_e,Me){const Fe=u=$(_e),Ue=c.value,pt=_e.state,W=_e.force,G=_e.replace===!0,ee=B(Fe);if(ee)return N(Jt(k(ee),{state:typeof ee=="object"?Jt({},pt,ee.state):pt,force:W,replace:G}),Me||Fe);const pe=Fe;pe.redirectedFrom=Me;let we;return!W&&_re(s,Ue,Fe)&&(we=Xl(16,{to:pe,from:Ue}),bt(Ue,Ue,!0,!1)),(we?Promise.resolve(we):D(pe,Ue)).catch(be=>Io(be)?Io(be,2)?be:dt(be):ot(be,pe,Ue)).then(be=>{if(be){if(Io(be,2))return N(Jt({replace:G},k(be.to),{state:typeof be.to=="object"?Jt({},pt,be.to.state):pt,force:W}),Me||pe)}else be=le(pe,Ue,!0,G,pt);return oe(pe,Ue,be),be})}function Y(_e,Me){const Fe=P(_e,Me);return Fe?Promise.reject(Fe):Promise.resolve()}function H(_e){const Me=_t.values().next().value;return Me&&typeof Me.runWithContext=="function"?Me.runWithContext(_e):_e()}function D(_e,Me){let Fe;const[Ue,pt,W]=ooe(_e,Me);Fe=_b(Ue.reverse(),"beforeRouteLeave",_e,Me);for(const ee of Ue)ee.leaveGuards.forEach(pe=>{Fe.push(Si(pe,_e,Me))});const G=Y.bind(null,_e,Me);return Fe.push(G),Ht(Fe).then(()=>{Fe=[];for(const ee of o.list())Fe.push(Si(ee,_e,Me));return Fe.push(G),Ht(Fe)}).then(()=>{Fe=_b(pt,"beforeRouteUpdate",_e,Me);for(const ee of pt)ee.updateGuards.forEach(pe=>{Fe.push(Si(pe,_e,Me))});return Fe.push(G),Ht(Fe)}).then(()=>{Fe=[];for(const ee of W)if(ee.beforeEnter)if(Or(ee.beforeEnter))for(const pe of ee.beforeEnter)Fe.push(Si(pe,_e,Me));else Fe.push(Si(ee.beforeEnter,_e,Me));return Fe.push(G),Ht(Fe)}).then(()=>(_e.matched.forEach(ee=>ee.enterCallbacks={}),Fe=_b(W,"beforeRouteEnter",_e,Me,H),Fe.push(G),Ht(Fe))).then(()=>{Fe=[];for(const ee of i.list())Fe.push(Si(ee,_e,Me));return Fe.push(G),Ht(Fe)}).catch(ee=>Io(ee,8)?ee:Promise.reject(ee))}
vendor: 1,962 bytes, line 682
682function oe(_e,Me,Fe){a.list().forEach(Ue=>H(()=>Ue(_e,Me,Fe)))}function le(_e,Me,Fe,Ue,pt){const W=P(_e,Me);if(W)return W;const G=Me===vi,ee=Al?history.state:{};Fe&&(Ue||G?r.replace(_e.fullPath,Jt({scroll:G&&ee&&ee.scroll},pt)):r.push(_e.fullPath,pt)),c.value=_e,bt(_e,Me,Fe,G),dt()}let Pe;function qe(){Pe||(Pe=r.listen((_e,Me,Fe)=>{if(!ft.listening)return;const Ue=$(_e),pt=B(Ue);if(pt){N(Jt(pt,{replace:!0,force:!0}),Ue).catch(Nu);return}u=Ue;const W=c.value;Al&&Ere(g6(W.fullPath,Fe.delta),Yp()),D(Ue,W).catch(G=>Io(G,12)?G:Io(G,2)?(N(Jt(k(G.to),{force:!0}),Ue).then(ee=>{Io(ee,20)&&!Fe.delta&&Fe.type===ed.pop&&r.go(-1,!1)}).catch(Nu),Promise.reject()):(Fe.delta&&r.go(-Fe.delta,!1),ot(G,Ue,W))).then(G=>{G=G||le(Ue,W,!1),G&&(Fe.delta&&!Io(G,8)?r.go(-Fe.delta,!1):Fe.type===ed.pop&&Io(G,20)&&r.go(-1,!1)),oe(Ue,W,G)}).catch(Nu)}))}let Ke=Zc(),Ge=Zc(),ze;function ot(_e,Me,Fe){dt(_e);const Ue=Ge.list();return Ue.length?Ue.forEach(pt=>pt(_e,Me,Fe)):console.error(_e),Promise.reject(_e)}function Ct(){return ze&&c.value!==vi?Promise.resolve():new Promise((_e,Me)=>{Ke.add([_e,Me])})}function dt(_e){return ze||(ze=!_e,qe(),Ke.list().forEach(([Me,Fe])=>_e?Fe(_e):Me()),Ke.reset()),_e}function bt(_e,Me,Fe,Ue){const{scrollBehavior:pt}=e;if(!Al||!pt)return Promise.resolve();const W=!Fe&&Ire(g6(_e.fullPath,0))||(Ue||!Fe)&&history.state&&history.state.scroll||null;return Ri().then(()=>pt(_e,Me,W)).then(G=>G&&Are(G)).catch(G=>ot(G,_e,Me))}const It=_e=>r.go(_e);let nt;const _t=new Set,ft={currentRoute:c,listening:!0,addRoute:y,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:I,getRoutes:C,resolve:$,options:e,push:A,replace:R,go:It,back:()=>It(-1),forward:()=>It(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:Ge.add,isReady:Ct,install(_e){const Me=this;_e.component("RouterLink",Qre),_e.component("RouterView",soe),_e.config.globalProperties.$router=Me,Object.defineProperty(_e.config.globalProperties,"$route",{enumerable:!0,get:()=>Lt(c)}
682),Al&&!nt&&c.value===vi&&(nt=!0,A(r.location).catch(pt=>{}));const Fe={};for(const pt in vi)Object.defineProperty(Fe,pt,{get:()=>c.value[pt],enumerable:!0});_e.provide(U2,Me),_e.provide(ML,n_(Fe)),_e.provide(Ry,c);const Ue=_e.unmount;_t.add(_e),_e.unmount=function(){_t.delete(_e),_t.size<1&&(u=vi,Pe&&Pe(),Pe=null,c.value=vi,nt=!1,ze=!1),Ue()}}};function Ht(_e){return _e.reduce((Me,Fe)=>Me.then(()=>H(Fe)),Promise.resolve())}return ft}function ooe(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(u=>Yl(u,a))?s.push(a):n.push(a));const c=e.matched[i];c&&(t.matched.find(u=>Yl(u,c))||r.push(c))}return[n,s,r]}var nh={exports:{}},ioe=nh.exports,L6;function aoe(){return L6||(L6=1,function(e,t){(function(n,s){e.exports=s()})(ioe,function(){var n="__v-click-outside",s=typeof window<"u",r=typeof navigator<"u",o=s&&("ontouchstart"in window||r&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"],i=function(f){var h=f.event,v=f.handler;(0,f.middleware)(h)&&v(h)},a=function(f,h){var v=function(k){var P=typeof k=="function";if(!P&&typeof k!="object")throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:P?k:k.handler,middleware:k.middleware||function(A){return A},events:k.events||o,isActive:k.isActive!==!1,detectIframe:k.detectIframe!==!1,capture:!!k.capture}}(h.value),y=v.handler,S=v.middleware,C=v.detectIframe,I=v.capture;if(v.isActive){if(f[n]=v.events.map(function(k){return{event:k,srcTarget:document.documentElement,handler:function(P){return function(A){var R=A.el,B=A.event,N=A.handler,Y=A.middleware,H=B.path||B.composedPath&&B.composedPath();(H?H.indexOf(R)<0:!R.contains(B.target))&&i({event:B,handler:N,middleware:Y})}({el:f,event:P,handler:y,middleware:S})},capture:I}}),C){var $={event:"blur",srcTarget:window,handler:function(k){return function(P){var A=P.el,R=P.event,B=P.handler,N=P.middleware;setTimeout(function(){var Y=document.activeElement;Y&&Y.tagName==="IFRAME"&&!A.contains(Y)&&i({event:R,handler:B,middleware:N})},0)}({el:f,event:k,handler:y,middleware:S})},capture:I};f[n]=[].concat(f[n],[$])}f[n].forEach(function(k){var P=k.event,A=k.srcTarget,R=k.handler;return setTimeout(function(){f[n]&&A.addEventListener(P,R,I)},0)})}},c=function(f){(f[n]||[]).forEach(function(h){return h.srcTarget.removeEventListener(h.event,h.handler,h.capture)}),delete f[n]},u=s?{beforeMount:a,updated:function(f,h){var v=h.value,y=h.oldValue;JSON.stringify(v)!==JSON.stringify(y)&&(c(f),a(f,{value:v}))},unmounted:c}:{};return{install:function(f){f.directive("click-outside",u)},directive:u}})}(nh)),nh.exports}var loe=aoe();const coe=bs(loe);function uoe(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let sh;function My(){My.init||(My.init=!0,sh=uoe()!==-1)}var Xp={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){My(),Ri(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",sh&&this.$el.appendChild(e),e.data="about:blank",sh||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!sh&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const doe=kU();wU("data-v-b329ee4c");const foe={class:"resize-observer",tabindex:"-1"};SU();const hoe=doe((e,t,n,s,r,o)=>(p(),x("div",foe)));Xp.render=hoe;Xp.__scopeId="data-v-b329ee4c";Xp.__file="src/components/ResizeObserver.vue";function rh(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rh=function(t){return typeof t}:rh=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rh(e)}function poe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function moe(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function goe(e,t,n){return t&&moe(e.prototype,t),e}function O6(e){return voe(e)||boe(e)||yoe(e)||_oe()}function voe(e){if(Array.isArray(e))return Ny(e)}function boe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function yoe(e,t){if(e){if(typeof e=="string")return Ny(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ny(e,t)}}function Ny(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function _oe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
683In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function woe(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Soe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,r,o,i=function(c){for(var u=arguments.length,f=new Array(u>1?u-1:0),h=1;h<u;h++)f[h-1]=arguments[h];if(o=f,!(s&&c===r)){var v=n.leading;typeof v=="function"&&(v=v(c,r)),(!s||c!==r)&&v&&e.apply(void 0,[c].concat(O6(o))),r=c,clearTimeout(s),s=setTimeout(function(){e.apply(void 0,[c].concat(O6(o))),s=0},t)}};return i._clear=function(){clearTimeout(s),s=null},i}function NL(e,t){if(e===t)return!0;
vendor: 4,820 bytes, line 683
683if(rh(e)==="object"){for(var n in e)if(!NL(e[n],t[n]))return!1;return!0}return!1}var koe=function(){function e(t,n,s){poe(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,s)}return goe(e,[{key:"createObserver",value:function(n,s){var r=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=woe(n),this.callback=function(a,c){r.options.callback(a,c),a&&r.options.once&&(r.frozen=!0,r.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},i=o.leading;this.callback=Soe(this.callback,this.options.throttle,{leading:function(c){return i==="both"||i==="visible"&&c||i==="hidden"&&!c}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(a){var c=a[0];if(a.length>1){var u=a.find(function(h){return h.isIntersecting});u&&(c=u)}if(r.callback){var f=c.isIntersecting&&c.intersectionRatio>=r.threshold;if(f===r.oldResult)return;r.oldResult=f,r.callback(f,c)}},this.options.intersection),Ri(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function FL(e,t,n){var s=t.value;if(s)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new koe(e,s,n);e._vue_visibilityState=r}}function $oe(e,t,n){var s=t.value,r=t.oldValue;if(!NL(s,r)){var o=e._vue_visibilityState;if(!s){DL(e);return}o?o.createObserver(s,n):FL(e,{value:s},n)}}function DL(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Coe={beforeMount:FL,updated:$oe,unmounted:DL};function Toe(e){return{all:e=e||new Map,on:function(t,n){var s=e.get(t);s&&s.push(n)||e.set(t,[n])},off:function(t,n){var s=e.get(t);s&&s.splice(s.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(s){s(n)}),(e.get("*")||[]).slice().map(function(s){s(t,n)})}}}var UL={itemsLimit:1e3},Aoe=/(auto|scroll)/;function jL(e,t){return e.parentNode===null?t:jL(e.parentNode,t.concat([e]))}var wb=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},Eoe=function(t){return wb(t,"overflow")+wb(t,"overflow-y")+wb(t,"overflow-x")},Ioe=function(t){return Aoe.test(Eoe(t))};function R6(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=jL(e.parentNode,[]),n=0;n<t.length;n+=1)if(Ioe(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Fy(e){"@babel/helpers - typeof";return Fy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fy(e)}var BL={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function zL(){return this.items.length&&Fy(this.items[0])!=="object"}var Dy=!1;if(typeof window<"u"){Dy=!1;try{var Poe=Object.defineProperty({},"passive",{get:function(){Dy=!0}});window.addEventListener("test",null,Poe)}catch{}}let Loe=0;var td={name:"RecycleScroller",components:{ResizeObserver:Xp},directives:{ObserveVisibility:Coe},props:{...BL,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,s=this.minItemSize;let r=1e4,o=0,i;for(let a=0,c=t.length;a<c;a++)i=t[a][n]||s,i<r&&(r=i),o+=i,e[a]={accumulator:o,size:i};return this.$_computedMinItemSize=r,e}return[]},simpleArray:zL,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let s=0,r=t.length;s<r;
vendor: 13,396 bytes, line 683
683s++)n[t[s][e]]=s;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,s,r){const o=rp({id:Loe++,index:t,used:!0,key:s,type:r}),i=n_({item:n,position:0,nr:o});return e.push(i),i},unuseView(e,t=!1){const n=this.$_unusedViews,s=e.nr.type;let r=n.get(s);r||(r=[],n.set(s,r)),r.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,s=this.gridItems||1,r=this.itemSecondarySize||n,o=this.$_computedMinItemSize,i=this.typeField,a=this.simpleArray?null:this.keyField,c=this.items,u=c.length,f=this.sizes,h=this.$_views,v=this.$_unusedViews,y=this.pool,S=this.itemIndexByKey;let C,I,$,k,P;if(!u)C=I=k=P=$=0;else if(this.$_prerender)C=k=0,I=P=Math.min(this.prerender,c.length),$=null;else{const D=this.getScroll();if(t){let Pe=D.start-this.$_lastUpdateScrollPosition;if(Pe<0&&(Pe=-Pe),n===null&&Pe<o||Pe<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=D.start;const oe=this.buffer;D.start-=oe,D.end+=oe;let le=0;if(this.$refs.before&&(le=this.$refs.before.scrollHeight,D.start-=le),this.$refs.after){const Pe=this.$refs.after.scrollHeight;D.end+=Pe}if(n===null){let Pe,qe=0,Ke=u-1,Ge=~~(u/2),ze;do ze=Ge,Pe=f[Ge].accumulator,Pe<D.start?qe=Ge:Ge<u-1&&f[Ge+1].accumulator>D.start&&(Ke=Ge),Ge=~~((qe+Ke)/2);while(Ge!==ze);for(Ge<0&&(Ge=0),C=Ge,$=f[u-1].accumulator,I=Ge;I<u&&f[I].accumulator<D.end;I++);for(I===-1?I=c.length-1:(I++,I>u&&(I=u)),k=C;k<u&&le+f[k].accumulator<D.start;k++);for(P=k;P<u&&le+f[P].accumulator<D.end;P++);}else{C=~~(D.start/n*s);const Pe=C%s;C-=Pe,I=Math.ceil(D.end/n*s),k=Math.max(0,Math.floor((D.start-le)/n*s)),P=Math.floor((D.end-le)/n*s),C<0&&(C=0),I>u&&(I=u),k<0&&(k=0),P>u&&(P=u),$=Math.ceil(u/s)*n}}I-C>UL.itemsLimit&&this.itemsLimitError(),this.totalSize=$;let A;const R=C<=this.$_endIndex&&I>=this.$_startIndex;if(R)for(let D=0,oe=y.length;D<oe;D++)A=y[D],A.nr.used&&(e&&(A.nr.index=S[A.item[a]]),(A.nr.index==null||A.nr.index<C||A.nr.index>=I)&&this.unuseView(A));const B=R?null:new Map;let N,Y,H;for(let D=C;D<I;D++){N=c[D];const oe=a?N[a]:N;if(oe==null)throw new Error(`Key is ${oe} on item (keyField is '${a}')`);if(A=h.get(oe),!n&&!f[D].size){A&&this.unuseView(A);continue}Y=N[i];let le=v.get(Y),Pe=!1;if(!A)R?le&&le.length?A=le.pop():A=this.addView(y,D,N,oe,Y):(H=B.get(Y)||0,(!le||H>=le.length)&&(A=this.addView(y,D,N,oe,Y),this.unuseView(A,!0),le=v.get(Y)),A=le[H],B.set(Y,H+1)),h.delete(A.nr.key),A.nr.used=!0,A.nr.index=D,A.nr.key=oe,A.nr.type=Y,h.set(oe,A),Pe=!0;else if(!A.nr.used&&(A.nr.used=!0,Pe=!0,le)){const qe=le.indexOf(A);qe!==-1&&le.splice(qe,1)}A.item=N,Pe&&(D===c.length-1&&this.$emit("scroll-end"),D===0&&this.$emit("scroll-start")),n===null?(A.position=f[D-1].accumulator,A.offset=0):(A.position=Math.floor(D/s)*n,A.offset=D%s*r)}return this.$_startIndex=C,this.$_endIndex=I,this.emitUpdate&&this.$emit("update",C,I,k,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:R}},getListenerTarget(){let e=R6(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let s;if(this.pageMode){const r=e.getBoundingClientRect(),o=n?r.height:r.width;let i=-(n?r.top:r.left),a=n?window.innerHeight:window.innerWidth;i<0&&(a+=i,i=0),i+a>o&&(a=o-i),s={start:i,end:i+a}}else n?s={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:s={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return s},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Dy?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,s,r;if(this.pageMode){const o=R6(this.$el),i=o.tagName==="HTML"?0:o[t.scroll],a=o.getBoundingClientRect(),u=this.$el.getBoundingClientRect()[t.start]-a[t.start];n=o,s=t.scroll,r=e+i+u}else n=this.$el,s=t.scroll,r=e;n[s]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const Ooe={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Roe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Moe(e,t,n,s,r,o){const i=O("ResizeObserver"),a=sc("observe-visibility");return at((p(),b("div",{class:he(["vue-recycle-scroller",{ready:r.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...c)=>o.handleScroll&&o.handleScroll(...c))},[e.$slots.before?(p(),b("div",Ooe,[Ot(e.$slots,"before")],512)):E("v-if",!0),(p(),x(Oa(n.listTag),{ref:"wrapper",style:hn({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:he(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:X(()=>[(p(!0),b(Se,null,We(r.pool,c=>(p(),x(Oa(n.itemTag),An({key:c.nr.id,style:r.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${c.position}px) translate${e.direction==="vertical"?"X":"Y"}(${c.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&r.hoverKey===c.nr.key}]]},jU(n.skipHover?{}:{mouseenter:()=>{r.hoverKey=c.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:X(()=>[Ot(e.$slots,"default",{item:c.item,index:c.nr.index,active:c.nr.used})]),_:2},1040,["style","class"]))),128)),Ot(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(p(),b("div",Roe,[Ot(e.$slots,"after")],512)):E("v-if",!0),T(i,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[a,o.handleVisibilityChange]])}td.render=Moe;td.__file="src/components/RecycleScroller.vue";var Nh={name:"DynamicScroller",components:{RecycleScroller:td},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(const t of e)if(t.target&&t.target.$_vs_onResize){let n,s;if(t.borderBoxSize){const r=t.borderBoxSize[0];n=r.inlineSize,s=r.blockSize}else n=t.contentRect.width,s=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,n,s)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...BL,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:zL,itemsWithSize(){const e=[],{items:t,keyField:n,simpleArray:s}=this,r=this.vscrollData.sizes,o=t.length;for(let i=0;i<o;i++){const a=t[i],c=s?i:a[n];let u=r[c];typeof u>"u"&&!this.$_undefinedMap[c]&&(u=0),e.push({item:a,id:c,size:u})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){const n=this.$el.scrollTop;let s=0,r=0;const o=Math.min(e.length,t.length);for(let a=0;a<o&&!(s>=n);a++)s+=t[a].size||this.minItemSize,r+=e[a].size||this.minItemSize;const i=r-s;i!==0&&(this.$el.scrollTop+=i)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=Toe()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$_events.emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit("vscroll:update",{force:!0})},scrollToItem(e){const t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){const n=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;const t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function Noe(e,t,n,s,r,o){const i=O("RecycleScroller");return p(),x(i,An({ref:"scroller",items:o.itemsWithSize,"min-item-size":n.minItemSize,direction:e.direction,"key-field":"id","list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:o.onScrollerResize,onVisible:o.onScrollerVisible}),{default:X(({item:a,index:c,active:u})=>[Ot(e.$slots,"default",lh(up({item:a.item,index:c,active:u,itemWithSize:a})))]),before:X(()=>[Ot(e.$slots,"before")]),after:X(()=>[Ot(e.$slots,"after")]),empty:X(()=>[Ot(e.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}Nh.render=Noe;Nh.__file="src/components/DynamicScroller.vue";var Uy={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const n=this.vscrollData.sizes[t],s=this.vscrollData.sizes[e];n!=null&&n!==s&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id
683)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const t=this.$el.offsetWidth,n=this.$el.offsetHeight;this.applyWidthHeight(t,n)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){const n=~~(this.vscrollParent.direction==="vertical"?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit("resize",this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return Zo(this.tag,this.$slots.default())}};Uy.__file="src/components/DynamicScrollerItem.vue";function Foe(e,t){e.component("".concat(t,"recycle-scroller"),td),e.component("".concat(t,"RecycleScroller"),td),e.component("".concat(t,"dynamic-scroller"),Nh),e.component("".concat(t,"DynamicScroller"),Nh),e.component("".concat(t,"dynamic-scroller-item"),Uy),e.component("".concat(t,"DynamicScrollerItem"),Uy)}var Doe={version:"2.0.0-beta.8",install:function(t,n){var s=Object.assign({},{installComponents:!0,componentsPrefix:""},n);for(var r in s)typeof s[r]<"u"&&(UL[r]=s[r]);s.installComponents&&Foe(t,s.componentsPrefix)}};function jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function Uoe(e){if(Array.isArray(e))return jy(e)}function us(e,t,n){return(t=Woe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function joe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Boe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
684In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M6(Object(n),!0).forEach(function(s){us(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M6(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function zoe(e,t){if(e==null)return{};var n,s,r=qoe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)n=o[s],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qoe(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;n[s]=e[s]}return n}function Hoe(e){return Uoe(e)||joe(e)||Goe(e)||Boe()}function Voe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Woe(e){var t=Voe(e,"string");return typeof t=="symbol"?t:t+""}function Fh(e){"@babel/helpers - typeof";return Fh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fh(e)}function Goe(e,t){if(e){if(typeof e=="string")return jy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jy(e,t):void 0}}function Sb(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?us({},e,t):{}}function Koe(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vert
684ical":e.flip==="vertical"||e.flip==="both"},us(us(us(us(us(us(us(us(us(us(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-rotate-by",e.rotateBy),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),us(us(us(us(t,"fa-flash",e.flash),"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse),"fa-width-auto",e.widthAuto));return Object.keys(n).map(function(s){return n[s]?s:null}).filter(function(s){return s})}var xoe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qL={exports:{}};(function(e){(function(t){var n=function($,k,P){if(!u(k)||h(k)||v(k)||y(k)||c(k))return k;var A,R=0,B=0;if(f(k))for(A=[],B=k.length;R<B;R++)A.push(n($,k[R],P));else{A={};for(var N in k)Object.prototype.hasOwnProperty.call(k,N)&&(A[$(N,P)]=n($,k[N],P))}return A},s=function($,k){k=k||{};var P=k.separator||"_",A=k.split||/(?=[A-Z])/;return $.split(A).join(P)},r=function($){return S($)?$:($=$.replace(/[\-_\s]+(.)?/g,function(k,P){return P?P.toUpperCase():""}),$.substr(0,1).toLowerCase()+$.substr(1))},o=function($){var k=r($);return k.substr(0,1).toUpperCase()+k.substr(1)},i=function($,k){return s($,k).toLowerCase()},a=Object.prototype.toString,c=function($){return typeof $=="function"},u=function($){return $===Object($)},f=function($){return a.call($)=="[object Array]"},h=function($){return a.call($)=="[object Date]"},v=function($){return a.call($)=="[object RegExp]"},y=function($){return a.call($)=="[object Boolean]"},S=function($){return $=$-0,$===$},C=function($,k){var P=k&&"process"in k?k.process:k;return typeof P!="function"?$:function(A,R){return P(A,$,R)}},I={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function($,k){return n(C(r,k),$)},decamelizeKeys:function($,k){return n(C(i,k),$,k)},pascalizeKeys:function($,k){return n(C(o,k),$)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=I:t.humps=I})(xoe)})(qL);var Yoe=qL.exports,Xoe=["class","style"];function Joe(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var s=n.indexOf(":"),r=Yoe.camelize(n.slice(0,s)),o=n.slice(s+1).trim();return t[r]=o,t},{})}function Zoe(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function HL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var s=(e.children||[]).map(function(c){return HL(c)}),r=Object.keys(e.attributes||{}).reduce(function(c,u){var f=e.attributes[u];switch(u){case"class":c.class=Zoe(f);break;case"style":c.style=Joe(f);break;default:c.attrs[u]=f}return c},{attrs:{},class:{},style:{}});n.class;var o=n.style,i=o===void 0?{}:o,a=zoe(n,Xoe);return Zo(e.tag,Do(Do(Do({},t),{},{class:r.class,style:Do(Do({},r.style),i)},r.attrs),a),s)}var VL=!1;try{VL=!0}catch{}function Qoe(){if(!VL&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function N6(e){if(e&&Fh(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(py.icon)return py.icon(e);if(e===null)return null;if(Fh(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var j2=Wi({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1}},setup:function(t,n){var s=n.attrs,r=vt(function(){return N6(t.icon)}),o=vt(function(){return Sb("classes",Koe(t))}),i=vt(function(){return Sb("transform",typeof t.transform=="string"?py.transform(t.transform):t.transform)}),a=vt(function(){return Sb("mask",N6(t.mask))}),c=vt(function(){var f=Do(Do(Do(Do({},o.value),i.value),a.value),{},{symbol:t.symbol,maskId:t.maskId});
684return f.title=t.title,f.titleId=t.titleId,gJ(r.value,f)});os(c,function(f){if(!f)return Qoe("Could not find one or more icon(s)",r.value,a.value)},{immediate:!0});var u=vt(function(){return c.value?HL(c.value.abstract[0],{},s):null});return function(){return u.value}}}),eie=Wi({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var s=n.slots,r=HI.familyPrefix,o=vt(function(){return["".concat(r,"-layers")].concat(Hoe(t.fixedWidth?["".concat(r,"-fw")]:[]))});return function(){return Zo("div",{class:o.value},s.default?s.default():[])}}});et.add(Xn);const tie={data:()=>({user:{},error:!1}),computed:{isPasswordAuth(){return this.requiredPassword},isTokenAuth(){return this.requiredToken},...pp(Ar),...mn({registrationOpen:e=>e.instance.registrationOpen,instance:e=>e.instance,loggingIn:e=>e.users.loggingIn}),...sn(Yo,["requiredPassword","requiredToken","requiredMFA"])},methods:{...mp(Yo,["requireMFA","login"]),submit(){this.isTokenAuth?this.submitToken():this.submitPassword()},submitToken(){const e={instance:this.instance.server,commit:this.$store.commit};this.oauthStore.ensureAppToken().then(()=>{const t={clientId:this.oauthStore.clientId,clientSecret:this.oauthStore.clientSecret};Oh.login({...t,...e})})},submitPassword(){this.error=!1,this.oauthStore.ensureAppToken().then(()=>{const e={clientId:this.oauthStore.clientId,clientSecret:this.oauthStore.clientSecret};Oh.getTokenWithCredentials({...e,instance:this.instance.server,username:this.user.username,password:this.user.password}).then(t=>{if(t.error){t.error==="mfa_required"?this.requireMFA({settings:t}):t.identifier==="password_reset_required"?this.$router.push({name:"password-reset",params:{passwordResetRequested:!0}}):(this.error=t.error,this.focusOnPasswordInput());return}this.login(t).then(()=>{this.$router.push({name:"friends"})})})})},clearError(){this.error=!1},focusOnPasswordInput(){const e=this.$refs.passwordInput;e.focus(),e.setSelectionRange(0,e.value.length)}}},nie={class:"login-panel panel panel-default"},sie={class:"panel-heading"},rie={class:"title"},oie={class:"panel-body"},iie={class:"form-group"},aie={for:"username"},lie=["disabled","placeholder"],cie={class:"form-group"},uie={for:"password"},die=["disabled"],fie={class:"form-group"},hie={key:1,class:"form-group"},pie={class:"form-group"},mie={class:"login-bottom"},gie=["disabled"],vie={key:0,class:"login-error alert error"},bie={class:"error-message"};function yie(e,t,n,s,r,o){const i=O("router-link"),a=O("FAIcon");return p(),b("div",nie,[g("div",sie,[g("h1",rie,w(e.$t("login.login")),1)]),g("div",oie,[g("form",{class:"login-form",onSubmit:t[2]||(t[2]=Te((...c)=>e.submit&&e.submit(...c),["prevent"]))},[e.isPasswordAuth?(p(),b(Se,{key:0},[g("div",iie,[g("label",aie,w(e.$t("login.username")),1),at(g("input",{id:"username","onUpdate:modelValue":t[0]||(t[0]=c=>e.user.username=c),disabled:e.loggingIn,class:"input form-control",placeholder:e.$t("login.placeholder")},null,8,lie),[[Nt,e.user.username]])]),g("div",cie,[g("label",uie,w(e.$t("login.password")),1),at(g("input",{id:"password",ref:"passwordInput","onUpdate:modelValue":t[1]||(t[1]=c=>e.user.password=c),disabled:e.loggingIn,class:"input form-control",type:"password"},null,8,die),[[Nt,e.user.password]])]),g("div",fie,[T(i,{to:{name:"password-reset"}},{default:X(()=>[de(w(e.$t("password_reset.forgot_password")),1)]),_:1})])],64)):E("",!0),e.isTokenAuth?(p(),b("div",hie,[g("p",null,w(e.$t("login.description")),1)])):E("",!0),g("div",pie,[g("div",mie,[g("div",null,[e.registrationOpen?(p(),x(i,{key:0,to:{name:"registration"},class:"register"},{default:X(()=>[de(w(e.$t("login.register")),1)]),_:1})):E("",!0)]),g("button",{disabled:e.loggingIn,type:"submit",class:"btn button-default"},w(e.$t("login.login")),9,gie)])])],32),e.error?(p(),b("div",vie,[g("span",bie,w(e.error),1),g("button",{class:"button-unstyled",onClick:t[3]||(t[3]=(...c)=>e.clearError&&e.clearError(...c))},[T(a,{class:"fa-scale-110 fa-old-padding",icon:"times"})])])):E("",!0)])])}const _ie=ge(tie,[["render",yie]]),wie=({clientId:e,clientSecret:t,instance:n,mfaToken:s,code:r})=>{const o=`${n}/oauth/mfa/challenge`,i=new window.FormData;return i.append("client_id",e),i.append("client_secret",t),i.append("mfa_token",s),i.append("code",r),i.append("challenge_type","totp"),window.fetch(o,{method:"POST",body:i}).then(a=>a.json())},Sie=({clientId:e,clientSecret:t,instance:n,mfaToken:s,code:r})=>{const o=`${n}/oauth/mfa/challenge`,i=new window.FormData;return i.append("client_id",e),i.append("client_secret",t),i.append("mfa_token",s),i.append("code",r),i.append("challenge_type","recovery"),window.fetch(o,{method:"POST",body:i}).then(a=>a.json())},WL={verifyOTPCode:wie,verifyRecoveryCode:Sie};et.add(Xn);const kie={data:()=>({code:null,error:!1}),computed:{...sn(Yo,{authSettings:e=>e.settings}),...pp(Ar),...mn({instance:"instance"})},methods:{...mp(Yo,["requireTOTP","abortMFA","login"]),clearError(){this.error=!1},focusOnCodeInput(){const e=this.$refs.codeInput;e.focus(),e.setSelectionRange(0,e.value.length)},submit(){const{clientId:e,clientSecret:t}=this.oauthStore,n={clientId:e,clientSecret:t,instance:this.instance.server,mfaToken:this.authSettings.mfa_token,code:this.code};WL.verifyRecoveryCode(n).then(s=>
684{if(s.error){this.error=s.error,this.code=null,this.focusOnCodeInput();return}this.login(s).then(()=>{this.$router.push({name:"friends"})})})}}},$ie={class:"login-panel panel panel-default"},Cie={class:"panel-heading"},Tie={class:"title"},Aie={class:"panel-body"},Eie={class:"form-group"},Iie={for:"code"},Pie={class:"form-group"},Lie={class:"login-bottom"},Oie={type:"submit",class:"btn button-default"},Rie={key:0,class:"form-group"},Mie={class:"alert error"};function Nie(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",$ie,[g("div",Cie,[g("h1",Tie,w(e.$t("login.heading.recovery")),1)]),g("div",Aie,[g("form",{class:"login-form",onSubmit:t[3]||(t[3]=Te((...a)=>e.submit&&e.submit(...a),["prevent"]))},[g("div",Eie,[g("label",Iie,w(e.$t("login.recovery_code")),1),at(g("input",{id:"code",ref:"codeInput","onUpdate:modelValue":t[0]||(t[0]=a=>e.code=a),class:"input form-control"},null,512),[[Nt,e.code]])]),g("div",Pie,[g("div",Lie,[g("div",null,[g("button",{class:"button-unstyled -link",type:"button",onClick:t[1]||(t[1]=Te((...a)=>e.requireTOTP&&e.requireTOTP(...a),["prevent"]))},w(e.$t("login.enter_two_factor_code")),1),t[5]||(t[5]=g("br",null,null,-1)),g("button",{class:"button-unstyled -link",type:"button",onClick:t[2]||(t[2]=Te((...a)=>e.abortMFA&&e.abortMFA(...a),["prevent"]))},w(e.$t("general.cancel")),1)]),g("button",Oie,w(e.$t("general.verify")),1)])])],32)]),e.error?(p(),b("div",Rie,[g("div",Mie,[de(w(e.error)+" ",1),g("button",{class:"button-unstyled",onClick:t[4]||(t[4]=(...a)=>e.clearError&&e.clearError(...a))},[T(i,{class:"fa-scale-110 fa-old-padding",icon:"times"})])])])):E("",!0)])}const Fie=ge(kie,[["render",Nie]]);et.add(Xn);const Die={data:()=>({code:null,error:!1}),computed:{...sn(Yo,{authSettings:e=>e.settings}),...pp(Ar),...mn({instance:"instance"})},methods:{...mp(Yo,["requireRecovery","abortMFA","login"]),clearError(){this.error=!1},focusOnCodeInput(){const e=this.$refs.codeInput;e.focus(),e.setSelectionRange(0,e.value.length)},submit(){const{clientId:e,clientSecret:t}=this.oauthStore,n={clientId:e,clientSecret:t,instance:this.instance.server,mfaToken:this.authSettings.mfa_token,code:this.code};WL.verifyOTPCode(n).then(s=>{if(s.error){this.error=s.error,this.code=null,this.focusOnCodeInput();return}this.login(s).then(()=>{this.$router.push({name:"friends"})})})}}},Uie={class:"login-panel panel panel-default"},jie={class:"panel-heading"},Bie={class:"title"},zie={class:"panel-body"},qie={class:"form-group"},Hie={for:"code"},Vie={class:"form-group"},Wie={class:"login-bottom"},Gie={type:"submit",class:"btn button-default"},Kie={key:0,class:"form-group"},xie={class:"alert error"};function Yie(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",Uie,[g("div",jie,[g("h1",Bie,w(e.$t("login.heading.totp")),1)]),g("div",zie,[g("form",{class:"login-form",onSubmit:t[3]||(t[3]=Te((...a)=>e.submit&&e.submit(...a),["prevent"]))},[g("div",qie,[g("label",Hie,w(e.$t("login.authentication_code")),1),at(g("input",{id:"code",ref:"codeInput","onUpdate:modelValue":t[0]||(t[0]=a=>e.code=a),class:"input form-control"},null,512),[[Nt,e.code]])]),g("div",Vie,[g("div",Wie,[g("div",null,[g("button",{class:"button-unstyled -link",type:"button",onClick:t[1]||(t[1]=Te((...a)=>e.requireRecovery&&e.requireRecovery(...a),["prevent"]))},w(e.$t("login.enter_recovery_code")),1),t[5]||(t[5]=g("br",null,null,-1)),g("button",{class:"button-unstyled -link",type:"button",onClick:t[2]||(t[2]=Te((...a)=>e.abortMFA&&e.abortMFA(...a),["prevent"]))},w(e.$t("general.cancel")),1)]),g("button",Gie,w(e.$t("general.verify")),1)])])],32)]),e.error?(p(),b("div",Kie,[g("div",xie,[de(w(e.error)+" ",1),g("button",{class:"button-unstyled",onClick:t[4]||(t[4]=(...a)=>e.clearError&&e.clearError(...a))},[T(i,{size:"lg",class:"fa-scale-110 fa-old-padding",icon:"times"})])])])):E("",!0)])}const Xie=ge(Die,[["render",Yie]]),GL={name:"AuthForm",render(){return Zo(O(this.authForm))},computed:{authForm(){return this.requiredTOTP?"MFATOTPForm":this.requiredRecovery?"MFARecoveryForm":"LoginForm"},...sn(Yo,["requiredTOTP","requiredRecovery"])},components:{MFARecoveryForm:Fie,MFATOTPForm:Xie,LoginForm:_ie}},Jie=({store:e,status:t,spoilerText:n,visibility:s,sensitive:r,poll:o,media:i=[],inReplyToStatusId:a=void 0,quoteId:c=void 0,contentType:u="text/plain",preview:f=!1,idempotencyKey:h=""})=>{const v=Z.map(i,"id");return Ln.postStatus({credentials:e.state.users.currentUser.credentials,status:t,spoilerText:n,visibility:s,sensitive:r,mediaIds:v,inReplyToStatusId:a,quoteId:c,contentType:u,poll:o,preview:f,idempotencyKey:h}).then(y=>(!y.error&&!f&&e.dispatch("addNewStatuses",{statuses:[y],timeline:"friends",showImmediately:!0,noIdUpdate:!0}),y)).catch(y=>({error:y.message}))},Zie=({store:e,statusId:t,status:n,spoilerText:s,sensitive:r,poll:o,media:i=[],contentType:a="text/plain"})=>{const c=Z.map(i,"id");return Ln.editStatus({id:t,credentials:e.state.users.currentUser.credentials,status:n,spoilerText:s,sensitive:r,poll:o,mediaIds:c,contentType:a}).then(u=>(u.error||e.dispatch("addNewStatuses",{statuses:[u],timeline:"friends",showImmediately:!0,noIdUpdate:!0}),u)).catch(u=>(console.error("Error editing status",u),{error:u.message}))}
684,Qie=({store:e,formData:t})=>{const n=e.state.users.currentUser.credentials;return Ln.uploadMedia({credentials:n,formData:t})},eae=({store:e,id:t,description:n})=>{const s=e.state.users.currentUser.credentials;return Ln.setMediaDescription({credentials:s,id:t,description:n})},Du={postStatus:Jie,editStatus:Zie,uploadMedia:Qie,setMediaDescription:eae},Jp=()=>`${Math.random()}`.replace(".","-"),tae=e=>{const t=["B","KiB","MiB","GiB","TiB"];let n=e;if(n<1)return n+" "+t[0];const s=Math.min(Math.floor(Math.log(n)/Math.log(1024)),t.length-1);n=(n/Math.pow(1024,s)).toFixed(2)*1;const r=t[s];return{num:n,unit:r}},By={fileSizeFormat:tae};et.add(iP,Zs);const nae={data(){return{uploadCount:0,uploadReady:!0}},computed:{uploading(){return this.uploadCount>0}},methods:{onClick(){this.uploadReady&&this.$refs.input.click()},async resizeImage(e){return!e.type.startsWith("image/")||e.type==="image/gif"||!this.$store.getters.mergedConfig.imageCompression||e.type==="image/png"&&await this.isAnimatedPng(e)?e:new Promise(t=>{const n=new Image;n.onload=()=>{let s=n.width,r=n.height;const o=2048;(s>o||r>o)&&(s>r?(r=Math.round(r*o/s),s=o):(s=Math.round(s*o/r),r=o));const i=document.createElement("canvas");i.width=s,i.height=r,i.getContext("2d").drawImage(n,0,0,s,r);const u=document.createElement("canvas").toDataURL("image/webp").startsWith("data:image/webp"),f=!this.$store.getters.mergedConfig.alwaysUseJpeg&&u?"image/webp":"image/jpeg",h=f==="image/webp"?".webp":".jpg",v=e.name.replace(/\.[^/.]+$/,"")+h;i.toBlob(y=>{t(new File([y],v,{type:f,lastModified:Date.now()}))},f,.85)},n.src=URL.createObjectURL(e)})},async isAnimatedPng(e){const t=await e.arrayBuffer(),n=new Uint8Array(t);for(let s=0;s<n.length-8;s++)if(n[s]===97&&n[s+1]===99&&n[s+2]===84&&n[s+3]===76)return!0;return!1},async uploadFile(e){const t=this,n=this.$store;if(e.size>n.state.instance.uploadlimit){const o=By.fileSizeFormat(e.size),i=By.fileSizeFormat(n.state.instance.uploadlimit);t.$emit("upload-failed","file_too_big",{filesize:o.num,filesizeunit:o.unit,allowedsize:i.num,allowedsizeunit:i.unit});return}const s=await this.resizeImage(e),r=new FormData;r.append("file",s),t.$emit("uploading"),t.uploadCount++,Du.uploadMedia({store:n,formData:r}).then(o=>{t.$emit("uploaded",o),t.decreaseUploadCount()},o=>{console.error("Error uploading file",o),t.$emit("upload-failed","default"),t.decreaseUploadCount()})},decreaseUploadCount(){this.uploadCount--,this.uploadCount===0&&this.$emit("all-uploaded")},clearFile(){this.uploadReady=!1,this.$nextTick(()=>{this.uploadReady=!0})},multiUpload(e){for(const t of e)this.uploadFile(t)},change({target:e}){this.multiUpload(e.files)}},props:{dropFiles:Object,disabled:Boolean,normalButton:Boolean,acceptTypes:{type:String,default:"*/*"}},watch:{dropFiles:function(e){this.uploading||this.multiUpload(e)}}},sae=["title"],rae=["disabled","accept"];function oae(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("button",{class:he(["media-upload",[e.normalButton?"button-default btn":"button-unstyled",{disabled:e.disabled}]]),title:e.$t("tool_tip.media_upload"),onClick:t[1]||(t[1]=(...a)=>e.onClick&&e.onClick(...a))},[e.uploading?(p(),x(i,{key:0,class:"progress-icon",icon:"circle-notch",spin:""})):E("",!0),e.uploading?E("",!0):(p(),x(i,{key:1,class:"new-icon",icon:"upload"})),e.normalButton?(p(),b(Se,{key:2},[de(w(" ")+" "+w(e.uploading?e.$t("general.loading"):e.$t("tool_tip.media_upload")),1)],64)):E("",!0),e.uploadReady?(p(),b("input",{key:3,ref:"input",class:"hidden-input-file",disabled:e.disabled,type:"file",multiple:"true",accept:e.acceptTypes,onChange:t[0]||(t[0]=(...a)=>e.change&&e.change(...a))},null,40,rae)):E("",!0)],10,sae)}const iae=ge(nae,[["render",oae]]);et.add(Pp,md,xI,tP);const aae={props:{showAll:{required:!0,type:Boolean},userDefault:{required:!0,type:String},originalScope:{required:!1,type:String},initialScope:{required:!1,type:String},onScopeChange:{required:!0,type:Function},unstyled:{required:!1,type:Boolean,default:!0}},data(){return{currentScope:this.initialScope}},computed:{showNothing(){return!this.showPublic&&!this.showUnlisted&&!this.showPrivate&&!this.showDirect},showPublic(){return this.originalScope!=="direct"&&this.shouldShow("public")},showUnlisted(){return this.originalScope!=="direct"&&this.shouldShow("unlisted")},showPrivate(){return this.originalScope!=="direct"&&this.shouldShow("private")},showDirect(){return this.shouldShow("direct")},css(){const e=this.unstyled?"button-unstyled":"button-default";return{public:[e,{toggled:this.currentScope==="public"}],unlisted:[e,{toggled:this.currentScope==="unlisted"}],private:[e,{toggled:this.currentScope==="private"}],direct:[e,{toggled:this.currentScope==="direct"}]}}},methods:{shouldShow(e){return this.showAll||this.currentScope===e||this.originalScope===e||this.userDefault===e||e==="direct"},changeVis(e){this.currentScope=e,this.onScopeChange&&this.onScopeChange(e)}}},lae={key:0,class:"ScopeSelector btn-group"},cae=["title"],uae=["title"],dae=["title"],fae=["title"];function hae(e,t,n,s,r,o){const i=O("FAIcon");return e.showNothing?E("",!0):(p(),b("div",lae,[e.showDirect?(p(),b("button",{key:0,class:he(["scope",e.css.direct]),title:e.$t("post_status.scope.direct"),type:"button",onClick:t[0]||(t[0]=a=>e.changeVis("direct"))}
684,[T(i,{icon:"envelope",class:"fa-scale-110 fa-old-padding"})],10,cae)):E("",!0),t[4]||(t[4]=de(" "+w(" ")+" ",-1)),e.showPrivate?(p(),b("button",{key:1,class:he(["scope",e.css.private]),title:e.$t("post_status.scope.private"),type:"button",onClick:t[1]||(t[1]=a=>e.changeVis("private"))},[T(i,{icon:"lock",class:"fa-scale-110 fa-old-padding"})],10,uae)):E("",!0),t[5]||(t[5]=de(" "+w(" ")+" ",-1)),e.showUnlisted?(p(),b("button",{key:2,class:he(["scope",e.css.unlisted]),title:e.$t("post_status.scope.unlisted"),type:"button",onClick:t[2]||(t[2]=a=>e.changeVis("unlisted"))},[T(i,{icon:"lock-open",class:"fa-scale-110 fa-old-padding"})],10,dae)):E("",!0),t[6]||(t[6]=de(" "+w(" ")+" ",-1)),e.showPublic?(p(),b("button",{key:3,class:he(["scope",e.css.public]),title:e.$t("post_status.scope.public"),type:"button",onClick:t[3]||(t[3]=a=>e.changeVis("public"))},[T(i,{icon:"globe",class:"fa-scale-110 fa-old-padding"})],10,fae)):E("",!0)]))}const pae=ge(aae,[["render",hae]]),mae=(e,t,n)=>e.slice(0,t.start)+n+e.slice(t.end),gae=(e,t)=>{const n=xL(e),s=KL(n);return Z.find(s,({start:r,end:o})=>r<=t&&o>t)},KL=e=>Z.reduce(e,(t,n)=>{const s={word:n,start:0,end:n.length};if(t.length>0){const r=t.pop();s.start+=r.end,s.end+=r.end,t.push(r)}return t.push(s),t},[]),xL=e=>{const t=[];let n="";for(let s=0;s<e.length;s++){const r=e[s];if(!n){n=r;continue}if(!!r.trim()!=!!n.trim()){t.push(n),n=r;continue}n+=r}return n&&t.push(n),t},kb={wordAtPosition:gae,addPositionToWords:KL,splitByWhitespaceBoundary:xL,replaceWord:mae},vae={props:["radio","modelValue","indeterminate","disabled"],emits:["update:modelValue"],data:e=>({indeterminateTransitionFix:e.indeterminate}),watch:{indeterminate(e){e&&(this.indeterminateTransitionFix=!0)}},methods:{onTransitionEnd(){this.indeterminate||(this.indeterminateTransitionFix=!1)}}},bae=["disabled","checked","indeterminate"];function yae(e,t,n,s,r,o){return p(),b("label",{class:he(["checkbox",[{"-disabled":n.disabled,indeterminate:n.indeterminate,"indeterminate-fix":e.indeterminateTransitionFix},n.radio?"-radio":"-checkbox"]])},[e.$slots.before?(p(),b("span",{key:0,class:he(["label -before",{faint:n.disabled}])},[Ot(e.$slots,"before")],2)):E("",!0),g("input",{type:"checkbox",class:"visible-for-screenreader-only",disabled:n.disabled,checked:n.modelValue,indeterminate:n.indeterminate,onChange:t[0]||(t[0]=i=>e.$emit("update:modelValue",i.target.checked))},null,40,bae),g("i",{class:he(["input checkbox-indicator",[{disabled:n.disabled},n.radio?"-radio":"-checkbox"]]),"aria-hidden":!0,onTransitionendCapture:t[1]||(t[1]=(...i)=>o.onTransitionEnd&&o.onTransitionEnd(...i))},null,34),e.$slots.default?(p(),b("span",{key:1,class:he(["label -after",{faint:n.disabled}])},[Ot(e.$slots,"default")],2)):E("",!0)],2)}const io=ge(vae,[["render",yae]]),_ae={name:"Popover",props:{trigger:String,placement:String,boundTo:Object,boundToSelector:String,margin:Object,offset:Object,popoverClass:String,removePadding:Boolean,disabled:Boolean,overlayCenters:Boolean,overlayCentersSelector:String,stayOnClick:Boolean,normalButton:Boolean,hideTrigger:{type:Boolean,default:!1},triggerAttrs:{type:Object,default:{}}},inject:{popoversZLayer:{default:""}},data(){return{anchorEl:null,teleport:!1,lockReEntry:!1,hidden:!0,styles:{},oldSize:{width:0,height:0},scrollable:null,graceTimeout:null,parentPopover:null,disableClickOutside:!1,childrenShown:new Set}},computed:{allTriggerAttrs(){const e={...this.triggerAttrs};return this.hideTrigger&&(e["aria-hidden"]=!0,e.tabindex=1),e}},methods:{setAnchorEl(e){this.anchorEl=e,this.updateStyles()},containerBoundingClientRect(){return(this.boundToSelector?this.$el.closest(this.boundToSelector):this.$el.offsetParent).getBoundingClientRect()},updateStyles(){if(this.hidden){this.styles={};return}const e=this.anchorEl||this.$refs.trigger&&this.$refs.trigger.children[0]||this.$el,t=e.offsetHeight||e.clientHeight,n=e.offsetWidth||e.clientWidth,s=e.getBoundingClientRect(),r=getComputedStyle(e),o=parseFloat(r.paddingTop),i=parseFloat(r.paddingBottom),a=parseFloat(r.paddingRight),c=parseFloat(r.paddingLeft),u={x:s.left+n*.5,y:s.top+t*.5},f=this.$refs.content,h=this.overlayCenters?this.$refs.content.querySelector(this.overlayCentersSelector):null,v=this.boundTo&&(this.boundTo.x==="container"||this.boundTo.y==="container")&&this.containerBoundingClientRect(),y=this.margin||{},S=this.boundTo&&this.boundTo.x==="container"?{min:v.left+(y.left||0),max:v.right-(y.right||0)}:{min:0+(y.left||10),max:window.innerWidth-(y.right||10)},C=this.boundTo&&this.boundTo.y==="container"?{min:v.top+(y.top||0),max:v.bottom-(y.bottom||0)}:{min:0+(y.top||50),max:window.innerHeight-(y.bottom||5)};let I=0,$=0;if(h){const Y=f.getBoundingClientRect(),H=h.getBoundingClientRect(),D=H.left-Y.left,oe=H.top-Y.top;I=-D-h.offsetWidth*.5,$=-oe-h.offsetHeight*.5}else I=f.offsetWidth*-.5,$=f.offsetHeight*-.5;const k=u.x+I,P=k+f.offsetWidth,A=u.y+$,R=A+f.offsetHeight;k<S.min&&(I+=S.min-k),P>S.max&&(I-=P-S.max),A<C.min&&($+=C.min-A),R>C.max&&($-=R-C.max);let B=0,N=0;if(h)B=u.x+I,N=u.y+$;else if(this.placement!=="right"&&this.placement!=="left"){let Y=this.placement!=="bottom";const H=u.y-t*.5+(this.removePadding?o:0),D=u.y+t*.5-(this.removePadding?i:0);D+f.offsetHeight>C.max&&(Y=!0),H-f.offsetHeight<C.min&&(Y=!1);const oe=this.offset&&this.offset.y||0;N=Y?H-oe-f.offsetHeight:D+oe;
684const le=this.offset&&this.offset.x||0;B=u.x+I+le}else{let Y=this.placement!=="right";const H=u.x-n*.5+(this.removePadding?c:0),D=u.x+n*.5-(this.removePadding?a:0);D+f.offsetWidth>S.max&&(Y=!0),H-f.offsetWidth<S.min&&(Y=!1);const oe=this.offset&&this.offset.x||0;B=Y?H-oe-f.offsetWidth:D+oe;const le=this.offset&&this.offset.y||0;N=u.y+$+le}this.styles={left:`${Math.round(B)}px`,top:`${Math.round(N)}px`},this.popoversZLayer&&(this.styles["--ZI_popover_override"]=`var(--ZI_${this.popoversZLayer}_popovers)`),v&&(this.styles.maxWidth=`${Math.round(v.width)}px`)},showPopover(){if(this.disabled)return;this.disableClickOutside=!0,setTimeout(()=>{this.disableClickOutside=!1},0);const e=this.hidden;this.hidden=!1,this.parentPopover&&this.parentPopover.onChildPopoverState(this,!0),(this.trigger==="click"||this.stayOnClick)&&document.addEventListener("click",this.onClickOutside),this.scrollable.addEventListener("scroll",this.onScroll),this.scrollable.addEventListener("resize",this.onResize),this.$nextTick(()=>{e&&this.$emit("show"),this.updateStyles()})},hidePopover(){var e,t;this.disabled||(this.hidden||this.$emit("close"),this.hidden=!0,this.parentPopover&&this.parentPopover.onChildPopoverState(this,!1),this.trigger==="click"&&document.removeEventListener("click",this.onClickOutside),(e=this.scrollable)==null||e.removeEventListener("scroll",this.onScroll),(t=this.scrollable)==null||t.removeEventListener("resize",this.onResize))},resizePopover(){setTimeout(()=>{this.updateStyles()},1)},onMouseenter(){this.trigger==="hover"&&(this.lockReEntry=!1,clearTimeout(this.graceTimeout),this.graceTimeout=null,this.showPopover())},onMouseleave(){this.trigger==="hover"&&this.childrenShown.size===0&&(this.graceTimeout=setTimeout(()=>this.hidePopover(),1))},onMouseenterContent(){this.trigger==="hover"&&!this.lockReEntry&&(this.lockReEntry=!0,clearTimeout(this.graceTimeout),this.graceTimeout=null,this.showPopover())},onMouseleaveContent(){this.trigger==="hover"&&this.childrenShown.size===0&&(this.graceTimeout=setTimeout(()=>this.hidePopover(),1))},onClick(){this.trigger==="click"&&(this.hidden?this.showPopover():this.hidePopover())},onClickOutside(e){this.disableClickOutside||this.hidden||this.$refs.content&&this.$refs.content.contains(e.target)||this.$el.contains(e.target)||this.childrenShown.size>0||(this.hidePopover(),this.parentPopover&&this.parentPopover.onClickOutside(e))},onScroll(){this.updateStyles()},onResize(){const e=this.$refs.content;e&&(this.oldSize.width!==e.offsetWidth||this.oldSize.height!==e.offsetHeight)&&(this.updateStyles(),this.oldSize={width:e.offsetWidth,height:e.offsetHeight})},onChildPopoverState(e,t){t?this.childrenShown.add(e):this.childrenShown.delete(e)}},updated(){this.onResize()},mounted(){this.teleport=!0;let e=this.$refs.trigger.closest(".column.-scrollable")||this.$refs.trigger.closest(".mobile-notifications");e||(e=window),this.scrollable=e;let t=this.$parent;for(;t&&t.$.type.name!=="Popover";)t=t.$parent;this.parentPopover=t},beforeUnmount(){this.hidePopover()}};function wae(e,t,n,s,r,o){return p(),b("span",{class:"popover-wrapper",onMouseenter:t[4]||(t[4]=(...i)=>e.onMouseenter&&e.onMouseenter(...i)),onMouseleave:t[5]||(t[5]=(...i)=>e.onMouseleave&&e.onMouseleave(...i))},[g("button",An({ref:"trigger",class:["popover-trigger-button",e.normalButton?"button-default btn":"button-unstyled"],type:"button"},e.allTriggerAttrs,{onClick:t[0]||(t[0]=(...i)=>e.onClick&&e.onClick(...i))}),[Ot(e.$slots,"trigger")],16),(p(),x(Yn,{disabled:!e.teleport,to:"#popovers"},[T(ZA,{name:"fade"},{default:X(()=>[e.hidden?E("",!0):(p(),b("div",{key:0,ref:"content",style:hn(e.styles),class:he(["popover",e.popoverClass||"popover-default"]),onMouseenter:t[1]||(t[1]=(...i)=>e.onMouseenterContent&&e.onMouseenterContent(...i)),onMouseleave:t[2]||(t[2]=(...i)=>e.onMouseleaveContent&&e.onMouseleaveContent(...i)),onClick:t[3]||(t[3]=(...i)=>e.onClickContent&&e.onClickContent(...i))},[Ot(e.$slots,"content",{class:"popover-inner",close:e.hidePopover,resize:e.resizePopover})],38))]),_:3})],8,["disabled"]))],32)}const Jn=ge(_ae,[["render",wae]]),B2=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),Sae={props:["src","referrerpolicy","mimetype","imageLoadError","imageLoadHandler","alt","height","width","dataSrc","loading"],data(){return{realSrc:this.src,stopGifs:this.$store.getters.mergedConfig.stopGifs}},computed:{animated(){return this.realSrc?this.stopGifs&&(this.mimetype==="image/gif"||this.realSrc.endsWith(".gif")):!1},style(){const e=t=>/\d$/.test(t)?t+"px":t;return{height:this.height?e(this.height):null,width:this.width?e(this.width):null}}},methods:{loadLazy(){this.dataSrc&&(this.realSrc=this.dataSrc)},onLoad(){if(!this.realSrc)return;const e=this.$refs.src;if(!e)return;this.imageLoadHandler&&this.imageLoadHandler(e);const t=this.$refs.canvas;if(!t)return;
684const n=e.naturalWidth,s=e.naturalHeight;t.width=n,t.height=s,t.getContext("2d").drawImage(e,0,0,n,s)},onError(){this.imageLoadError&&this.imageLoadError()}},watch:{src(){this.realSrc=this.src},dataSrc(){this.$el.removeAttribute("data-loaded")}}},kae={key:0,ref:"canvas"},$ae=["alt","title","data-src","src","referrerpolicy","loading"];function Cae(e,t,n,s,r,o){return p(),b("div",{class:he(["still-image",{animated:e.animated}]),style:hn(e.style)},[e.animated?(p(),b("canvas",kae,null,512)):E("",!0),(p(),b("img",{ref:"src",key:e.realSrc,alt:e.alt,title:e.alt,"data-src":e.dataSrc,src:e.realSrc,referrerpolicy:e.referrerpolicy,loading:e.loading,onLoad:t[0]||(t[0]=(...i)=>e.onLoad&&e.onLoad(...i)),onError:t[1]||(t[1]=(...i)=>e.onError&&e.onError(...i))},null,40,$ae)),Ot(e.$slots,"default")],6)}const Ji=ge(Sae,[["render",Cae]]);et.add(XJ,BZ,Ap,AZ,Z_,AJ,yZ,nZ,QJ,PJ,eP,LJ);const Tae={"smileys-and-emotion":"smile","people-and-body":"user","animals-and-nature":"paw","food-and-drink":"ice-cream","travel-and-places":"bus",activities:"basketball-ball",objects:"lightbulb",symbols:"code",flags:"flag"},Aae=(e,t,n)=>{const s=[e.displayText,n(e)];return e.annotations&&t.forEach(r=>{var a,c;const o=((a=e.annotations[r])==null?void 0:a.keywords)||[],i=(c=e.annotations[r])==null?void 0:c.name;s.push(...o.concat([i]).filter(u=>u))}),s},Eae=(e,t="",n,s)=>{if(t==="")return e;const r=t.toLowerCase(),o=[];for(const i of e){const a=Aae(i,n,s).map(u=>u.toLowerCase().indexOf(r)).filter(u=>u>-1),c=a.length?Math.min(...a):-1;c>-1&&(Array.isArray(o[c])||(o[c]=[]),o[c].push(i))}return o.flat()},Iae=e=>{const t=e.style.transform,n=/translateY\((\d+)px\)/.exec(t);return n?n[1]:0},Pae=e=>e.replace(/^row-\d+-/,""),Lae={props:{enableStickerPicker:{required:!1,type:Boolean,default:!0},hideCustomEmoji:{required:!1,type:Boolean,default:!1}},inject:{popoversZLayer:{default:""}},data(){return{keyword:"",activeGroup:"custom",showingStickers:!1,groupsScrolledClass:"scrolled-top",keepOpen:!1,customEmojiTimeout:null,hideCustomEmojiInPicker:!1,contentLoaded:!1,groupRefs:{},emojiRefs:{},filteredEmojiGroups:[],emojiSize:0,width:0}},components:{StickerPicker:gr(()=>Ve(()=>import("./sticker_picker.B0j2YsOB.js"),__vite__mapDeps([0,1]))),Checkbox:io,StillImage:Ji,Popover:Jn},methods:{groupScroll(e){e.currentTarget.scrollLeft+=e.deltaY+e.deltaX},updateEmojiSize(){const e=window.getComputedStyle(this.$refs.popover.$el),t=e.getPropertyValue("font-size")||"1rem",n=e.getPropertyValue("--emojiSize")||"2.2rem",s=t.replace(/[0-9,.]+/,"").trim(),r=Number(t.replace(/[^0-9,.]+/,"")),o=n.replace(/[0-9,.]+/,"").trim(),i=Number(n.replace(/[^0-9,.]+/,""));let a;s.endsWith("em")?a=r:a=r/14;let c;o.endsWith("em")?c=i*a*14:c=i;const u=c+2*.2*a*14;this.emojiSize=u},showPicker(){this.$refs.popover.showPopover(),this.$nextTick(()=>{this.onShowing()})},hidePicker(){this.$refs.popover.hidePopover()},setAnchorEl(e){this.$refs.popover.setAnchorEl(e)},setGroupRef(e){return t=>{this.groupRefs[e]=t}},onPopoverShown(){this.$emit("show")},onPopoverClosed(){this.$emit("close")},onStickerUploaded(e){this.$emit("sticker-uploaded",e)},onStickerUploadFailed(e){this.$emit("sticker-upload-failed",e)},onEmoji(e){const t=e.imageUrl?`:${e.displayText}:`:e.replacement;this.keepOpen||this.$refs.popover.hidePopover(),this.$emit("emoji",{insertion:t,insertionUrl:e.imageUrl,keepOpen:this.keepOpen})},onScroll(e,t,n,s){const r=this.$refs["emoji-groups"].$el;this.scrolledGroup(r,n,s)},scrolledGroup(e,t,n){const s=e.scrollTop+5;this.$nextTick(()=>{this.emojiItems.slice(t,n+1).forEach(r=>
684{const o=Pae(r.id),i=this.groupRefs["group-"+r.id];if(!i)return;const a=i.$el.parentElement;a&&a&&Iae(a)<=s&&(this.activeGroup=o)}),this.scrollHeader()})},scrollHeader(){const e=this.groupRefs["group-header-"+this.activeGroup],t=e.offsetLeft,n=t+e.offsetWidth,s=this.$refs.header,r=s.scrollLeft,o=r+s.clientWidth,i=c=>{s.scrollLeft=c},a=7;t-a<r?i(t-a):n+a>o&&i(n+a-s.clientWidth)},highlight(e){this.setShowStickers(!1);const t=this.emojiItems.findIndex(n=>n.id===e);this.$refs["emoji-groups"].scrollToItem(t)},updateScrolledClass(e){e.scrollTop<=5?this.groupsScrolledClass="scrolled-top":e.scrollTop>=e.scrollTopMax-5?this.groupsScrolledClass="scrolled-bottom":this.groupsScrolledClass="scrolled-middle"},toggleStickers(){this.showingStickers=!this.showingStickers},setShowStickers(e){this.showingStickers=e},filterByKeyword(e,t){return Eae(e,t,this.languages,this.maybeLocalizedEmojiName)},onShowing(){const e=this.contentLoaded;this.updateEmojiSize(),this.recalculateItemPerRow(),this.$nextTick(()=>{this.$refs.search.focus()}),this.contentLoaded=!0,this.filteredEmojiGroups=this.getFilteredEmojiGroups(),e||this.$nextTick(()=>{this.defaultGroup&&this.highlight(this.defaultGroup)})},getFilteredEmojiGroups(){return this.allEmojiGroups.map(e=>({...e,emojis:this.filterByKeyword(e.emojis,Z.trim(this.keyword))})).filter(e=>e.emojis.length>0)},recalculateItemPerRow(){this.$nextTick(()=>{this.$refs["emoji-groups"]&&(this.width=this.$refs["emoji-groups"].$el.clientWidth)})}},watch:{keyword(){this.onScroll(),this.debouncedHandleKeywordChange()},allCustomGroups(){this.filteredEmojiGroups=this.getFilteredEmojiGroups()}},computed:{minItemSize(){return this.emojiSize},fontSize(){return this.$nextTick(()=>{this.updateEmojiSize()}),this.$store.getters.mergedConfig.fontSize},emojiHeight(){return this.emojiSize},itemPerRow(){return this.width?Math.floor(this.width/this.emojiSize):6},activeGroupView(){return this.showingStickers?"":this.activeGroup},stickersAvailable(){return this.$store.state.instance.stickers?this.$store.state.instance.stickers.length>0:0},allCustomGroups(){if(this.hideCustomEmoji||this.hideCustomEmojiInPicker)return{};const e=this.$store.getters.groupedCustomEmojis;return e.unpacked&&(e.unpacked.text=this.$t("emoji.unpacked")),e},defaultGroup(){return Object.keys(this.allCustomGroups)[0]},unicodeEmojiGroups(){return this.$store.getters.standardEmojiGroupList.map(e=>({id:`standard-${e.id}`,text:this.$t(`emoji.unicode_groups.${e.id}`),icon:Tae[e.id],emojis:e.emojis}))},allEmojiGroups(){return Object.entries(this.allCustomGroups).map(([,e])=>e).concat(this.unicodeEmojiGroups)},stickerPickerEnabled(){return(this.$store.state.instance.stickers||[]).length!==0},debouncedHandleKeywordChange(){return Z.debounce(()=>{this.filteredEmojiGroups=this.getFilteredEmojiGroups()},500)},emojiItems(){return this.filteredEmojiGroups.map(e=>Z.chunk(e.emojis,this.itemPerRow).map((t,n)=>({...e,id:n===0?e.id:`row-${n}-${e.id}`,emojis:t,isFirstRow:n===0}))).reduce((e,t)=>e.concat(t),[])},languages(){return N_(this.$store.getters.mergedConfig.interfaceLanguage)},maybeLocalizedEmojiName(){return e=>{var t;if(!e.annotations)return e.displayText;if(e.displayTextI18n)return this.$t(e.displayTextI18n.key,e.displayTextI18n.args);for(const n of this.languages)if((t=e.annotations[n])!=null&&t.name)return e.annotations[n].name;return e.displayText}},isInModal(){return this.popoversZLayer==="modals"}}},Oae={class:"heading"},Rae={class:"emoji-search"},Mae=["placeholder"],Nae=["title","onClick"],Fae={key:0,class:"emoji-picker-header-image"},Dae={key:0,class:"additional-tabs"},Uae=["title"],jae={key:0,class:"content"},Bae={key:0,class:"emoji-group-title"},zae=["title","onClick"],qae={key:0,class:"emoji-picker-emoji -unicode"},Hae={class:"keep-open"},Vae={key:0,class:"hide-custom-emoji"},Wae={key:0,class:"stickers-content"};function Gae(e,t,n,s,r,o){const i=O("still-image"),a=O("FAIcon"),c=O("DynamicScrollerItem"),u=O("DynamicScroller"),f=O("Checkbox"),h=O("sticker-picker"),v=O("Popover"),y=sc("body-scroll-lock");return p(),x(v,{ref:"popover",trigger:"click","popover-class":"emoji-picker popover-default","hide-trigger":!0,onShow:e.onPopoverShown,onClose:e.onPopoverClosed},{content:X(()=>[g("div",Oae,[g("div",Rae,[at(g("input",{ref:"search","onUpdate:modelValue":t[0]||(t[0]=S=>e.keyword=S),type:"text",class:"input form-control",placeholder:e.$t("emoji.search_emoji"),onInput:t[1]||(t[1]=S=>S.target.composing=!1)},null,40,Mae),[[Nt,e.keyword]])]),at((p(),b("span",{ref:"header",class:"emoji-tabs",onWheel:t[2]||(t[2]=Te((...S)=>e.groupScroll&&e.groupScroll(...S),["prevent"]))},[(p(!0),b(Se,null,We(e.filteredEmojiGroups,S=>(p(),b("span",{ref_for:!0,ref:e.setGroupRef("group-header-"+S.id),key:S.id,class:he(["button-unstyled emoji-tabs-item",{toggled:e.activeGroupView===S.id}]),title:S.text,role:"button",onClick:Te(C=>e.highlight(S.id),["prevent"])},[S.image?(p(),b("span",Fae,[T(i,{alt:S.text,src:S.image},null,8,["alt","src"])])):(p(),x(a,{key:1,icon:S.icon,"fixed-width":""},null,8,["icon"]))],10,Nae))),128))],32)),[[y,e.isInModal]]),e.stickerPickerEnabled?(p(),b("span",Dae,[g("span",{class:he(["button-unstyled stickers-tab-icon additional-tabs-item",{toggled:e.showingStickers}]),title:e.$t("emoji.stickers"),onClick:t[3]||(t[3]=Te((...S)=>e.toggleStickers&&e.toggleStickers(...S),["prevent"]))},[T(a,{icon:"sticky-note","fixed-width":""})],10,Uae)])):E("",!0)]),e.contentLoaded?(p(),b("div",jae,[g("div",{class:he(["emoji-content",{hidden:e.showingStickers}])},[at((p(),x(u,{ref:"emoji-groups",class:he(["emoji-groups",e.groupsScrolledClass]),"min-item-size":e.minItemSize,buffer:e.minItemSize,items:e.emojiItems,"emit-update":!0,onUpdate:e.onScroll,onVisible:e.recalculateItemPerRow,onResize:e.recalculateItemPerRow},{default:X(({item:S,index:C,active:I})=>[T(c,{ref:e.setGroupRef("group-"+S.id),item:S,active:I,"data-index":C,"size-dependencies":[S.emojis.length]},{default:X(()=>[g("div",{class:he(["emoji-group",{"first-row":S.isFirstRow}]),style:hn({"--__amount":e.itemPerRow})},[S.isFirstRow?(p(),b("h6",Bae,w(S.text),1)):E("",!0),(p(!0),b(Se,null,We(S.emojis,$=>(p(),b("span",{key:S.id+$.displayText,title:e.maybeLocalizedEmojiName($),class:"emoji-item",role:"button",onClick:Te(k=>e.onEmoji($),["stop","prevent"])},[$.imageUrl?(p(),x(i,{key:1,class:"emoji-picker-emoji -custom",loading:"lazy",alt:e.maybeLocalizedEmojiName($),src:$.imageUrl,"data-emoji-name":S.id+$.displayText},null,8,["alt","src","data-emoji-name"])):(p(),b("span",qae,w($.replacement),1))],8,zae))),128))],6)]),_:2},1032,["item","active","data-index","size-dependencies"])]),_:1},8,["class","min-item-size","buffer","items","onUpdate","onVisible","onResize"])),[[y,e.isInModal]]),g("div",Hae,[T(f,{modelValue:e.keepOpen,"onUpdate:modelValue":t[4]||(t[4]=S=>e.keepOpen=S)},{default:X(()=>[de(w(e.$t("emoji.keep_open")),1)]),_:1},8,["modelValue"])]),e.hideCustomEmoji?E("",!0):(p(),b("div",Vae,[T(f,{modelValue:e.hideCustomEmojiInPicker,"onUpdate:modelValue":t[5]||(t[5]=S=>e.hideCustomEmojiInPicker=S),onChange:e.onShowing},{default:X(()=>
684[de(w(e.$t("emoji.hide_custom_emoji")),1)]),_:1},8,["modelValue","onChange"])]))],2),e.showingStickers?(p(),b("div",Wae,[T(h,{onUploaded:e.onStickerUploaded,onUploadFailed:e.onStickerUploadFailed},null,8,["onUploaded","onUploadFailed"])])):E("",!0)])):E("",!0)]),_:1},8,["onShow","onClose"])}const z2=ge(Lae,[["render",Gae]]),Kae={props:{ariaLive:{type:String,default:"assertive"}},data(){return{currentText:""}},methods:{announce(e){this.currentText=e,setTimeout(()=>{this.currentText=""},1e3)}}},xae=["aria-live"];function Yae(e,t,n,s,r,o){return p(),b("div",{class:"visible-for-screenreader-only","aria-live":e.ariaLive},w(e.currentText),9,xae)}const Xae=ge(Kae,[["render",Yae]]);et.add(eP);const Jae={props:{user:Object}},Zae=Jae;function Qae(e,t,n,s,r,o){const i=O("FAIcon");return e.user&&e.user.screen_name_ui_contains_non_ascii?(p(),x(i,{key:0,icon:"code",title:e.$t("unicode_domain_indicator.tooltip")},null,8,["title"])):E("",!0)}const Zp=ge(Zae,[["render",Qae]]),q2=(e,t,{top:n=0,left:s=0}={},r=!0)=>{const o={top:n+e.offsetTop,left:s+e.offsetLeft};if(!r&&e!==window){const{topPadding:i,leftPadding:a}=F6(e);o.top+=r?0:i,o.left+=r?0:a}if(e.offsetParent&&window.getComputedStyle(e.offsetParent).position!=="sticky"&&(t===window||t.contains(e.offsetParent)||t===e.offsetParent))return q2(e.offsetParent,t,o,!1);if(t!==window){const{topPadding:i,leftPadding:a}=F6(t);o.top+=i,o.left+=a}return o},F6=e=>{const t=window.getComputedStyle(e)["padding-top"],n=Number(t.substring(0,t.length-2)),s=window.getComputedStyle(e)["padding-left"],r=Number(s.substring(0,s.length-2));return{topPadding:n,leftPadding:r}};/*!
685 * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
686 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
687 * Copyright 2024 Fonticons, Inc.
688 */const ele={prefix:"far",iconName:"face-smile-beam",icon:[512,512,[128522,"smile-beam"],"f5b8","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm177.6 62.1C192.8 334.5 218.8 352 256 352s63.2-17.5 78.4-33.9c9-9.7 24.2-10.4 33.9-1.4s10.4 24.2 1.4 33.9c-22 23.8-60 49.4-113.6 49.4s-91.7-25.5-113.6-49.4c-9-9.7-8.4-24.9 1.4-33.9s24.9-8.4 33.9 1.4zm40-89.3s0 0 0 0c0 0 0 0 0 0l-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2c0 0 0 0 0 0c0 0 0 0 0 0s0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8c0 0 0 0 0 0s0 0 0 0zm160 0c0 0 0 0 0 0l-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2c0 0 0 0 0 0c0 0 0 0 0 0s0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8c0 0 0 0 0 0s0 0 0 0s0 0 0 0z"]},tle=ele,nle={prefix:"far",iconName:"bookmark",icon:[384,512,[128278,61591],"f02e","M0 48C0 21.5 21.5 0 48 0l0 48 0 393.4 130.1-92.9c8.3-6 19.6-6 27.9 0L336 441.4 336 48 48 48 48 0 336 0c26.5 0 48 21.5 48 48l0 440c0 9-5 17.2-13 21.3s-17.6 3.4-24.9-1.8L192 397.5 37.9 507.5c-7.3 5.2-16.9 5.9-24.9 1.8S0 497 0 488L0 48z"]},sle={prefix:"far",iconName:"star",icon:[576,512,[11088,61446],"f005","M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z"]},lEe={prefix:"far",iconName:"window-minimize",icon:[512,512,[128469],"f2d1","M24 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 432z"]};et.add(tle);const rle={emits:["update:modelValue","shown"],props:{suggest:{required:!0,type:Function},modelValue:{required:!0,type:String},enableEmojiPicker:{required:!1,type:Boolean,default:!1},hideEmojiButton:{required:!1,type:Boolean,default:!1},enableStickerPicker:{required:!1,type:Boolean,default:!1},placement:{required:!1,type:String,default:"auto"},newlineOnCtrlEnter:{required:!1,type:Boolean,default:!1}},data(){return{randomSeed:Jp(),input:void 0,caretEl:void 0,highlighted:-1,caret:0,focused:!1,blurTimeout:null,temporarilyHideSuggestions:!1,disableClickOutside:!1,suggestions:[],overlayStyle:{},pickerShown:!1}},components:{Popover:Jn,EmojiPicker:z2,UnicodeDomainIndicator:Zp,ScreenReaderNotice:Xae},computed:{padEmoji(){return this.$store.getters.mergedConfig.padEmoji},defaultCandidateIndex(){return this.$store.getters.mergedConfig.autocompleteSelect?0:-1},preText(){return this.modelValue.slice(0,this.caret)},postText(){return this.modelValue.slice(this.caret)},showSuggestions(){return this.focused&&this.suggestions&&this.suggestions.length>0&&!this.pickerShown&&!this.temporarilyHideSuggestions},textAtCaret(){var e;return(e=this.wordAtCaret)==null?void 0:e.word},wordAtCaret(){if(this.modelValue&&this.caret)return kb.wordAtPosition(this.modelValue,this.caret-1)||{}},languages(){return N_(this.$store.getters.mergedConfig.interfaceLanguage)},maybeLocalizedEmojiNamesAndKeywords(){return e=>{const t=[e.displayText],n=[];
688return e.displayTextI18n&&t.push(this.$t(e.displayTextI18n.key,e.displayTextI18n.args)),e.annotations&&this.languages.forEach(s=>{var r,o;t.push((r=e.annotations[s])==null?void 0:r.name),n.push(...((o=e.annotations[s])==null?void 0:o.keywords)||[])}),{names:t.filter(s=>s),keywords:n.filter(s=>s)}}},maybeLocalizedEmojiName(){return e=>{var t;if(!e.annotations)return e.displayText;if(e.displayTextI18n)return this.$t(e.displayTextI18n.key,e.displayTextI18n.args);for(const n of this.languages)if((t=e.annotations[n])!=null&&t.name)return e.annotations[n].name;return e.displayText}},suggestionListId(){return`suggestions-${this.randomSeed}`},suggestionItemId(){return e=>`suggestion-item-${e}-${this.randomSeed}`}},mounted(){const{root:e,hiddenOverlayCaret:t,suggestorPopover:n}=this.$refs,s=e.querySelector(".emoji-input > input")||e.querySelector(".emoji-input > textarea");if(!s)return;this.input=s,this.caretEl=t,n.setAnchorEl?(n.setAnchorEl(this.caretEl),this.$refs.picker.setAnchorEl(this.caretEl)):console.warn("setAnchorEl not found, are we in a unit test?");const r=getComputedStyle(this.input);this.overlayStyle.padding=r.padding,this.overlayStyle.border=r.border,this.overlayStyle.margin=r.margin,this.overlayStyle.lineHeight=r.lineHeight,this.overlayStyle.fontFamily=r.fontFamily,this.overlayStyle.fontSize=r.fontSize,this.overlayStyle.wordWrap=r.wordWrap,this.overlayStyle.whiteSpace=r.whiteSpace,s.addEventListener("blur",this.onBlur),s.addEventListener("focus",this.onFocus),s.addEventListener("paste",this.onPaste),s.addEventListener("keyup",this.onKeyUp),s.addEventListener("keydown",this.onKeyDown),s.addEventListener("click",this.onClickInput),s.addEventListener("transitionend",this.onTransition),s.addEventListener("input",this.onInput),s.addEventListener("scroll",this.onInputScroll)},unmounted(){const{input:e}=this;e&&(e.removeEventListener("blur",this.onBlur),e.removeEventListener("focus",this.onFocus),e.removeEventListener("paste",this.onPaste),e.removeEventListener("keyup",this.onKeyUp),e.removeEventListener("keydown",this.onKeyDown),e.removeEventListener("click",this.onClickInput),e.removeEventListener("transitionend",this.onTransition),e.removeEventListener("input",this.onInput),e.removeEventListener("scroll",this.onInputScroll))},watch:{showSuggestions:function(e){this.$emit("shown",e),e?this.$refs.suggestorPopover.showPopover():this.$refs.suggestorPopover.hidePopover()},textAtCaret:async function(e){if(e===void 0)return;const t=e.charAt(0);if(e===t){this.suggestions=[];return}const n=await this.suggest(e,this.maybeLocalizedEmojiNamesAndKeywords);if(this.textAtCaret!==e||n.length<=0){this.suggestions=[];return}this.suggestions=Z.take(n,5).map(({imageUrl:s,...r})=>({...r,img:s||""})),this.highlighted=this.defaultCandidateIndex,this.$refs.screenReaderNotice.announce(this.$t("tool_tip.autocomplete_available",{number:this.suggestions.length},this.suggestions.length))}},methods:{onInputScroll(e){this.$refs.hiddenOverlay.scrollTo({top:this.input.scrollTop,left:this.input.scrollLeft}),this.setCaret(e)},triggerShowPicker(){this.$nextTick(()=>{this.$refs.picker.showPicker(),this.scrollIntoView()}),this.disableClickOutside=!0,setTimeout(()=>{this.disableClickOutside=!1},0)},togglePicker(){this.input.focus(),this.pickerShown?this.$refs.picker.hidePicker():(this.scrollIntoView(),this.$refs.picker.showPicker(),this.$refs.picker.startEmojiLoad())},replace(e){const t=kb.replaceWord(this.modelValue,this.wordAtCaret,e);this.$emit("update:modelValue",t),this.caret=0},insert({insertion:e,keepOpen:t,surroundingSpace:n=!0}){const s=this.modelValue.substring(0,this.caret)||"",r=this.modelValue.substring(this.caret)||"",o=/\s/,i=n&&!o.exec(s.slice(-1))&&s.length&&this.padEmoji>0?" ":"",a=n&&!o.exec(r[0])&&this.padEmoji?" ":"",c=[s,i,e,a,r].join("");this.$emit("update:modelValue",c);const u=this.caret+(e+a+i).length;t||this.input.focus(),this.$nextTick(function(){this.input.setSelectionRange(u,u),this.caret=u})},replaceText(e,t){const n=this.suggestions.length||0;if(this.textAtCaret.length!==1&&(n>0||t)){const r=(t||this.suggestions[this.highlighted]).replacement,o=kb.replaceWord(this.modelValue,this.wordAtCaret,r);this.$emit("update:modelValue",o),this.highlighted=0;const i=this.wordAtCaret.start+r.length;this.$nextTick(function(){this.input.focus(),this.input.setSelectionRange(i,i),this.caret=i}),e.preventDefault()}},cycleBackward(e){const t=this.suggestions.length||0;this.highlighted-=1,this.highlighted===-1?this.input.focus():this.highlighted<-1&&(this.highlighted=t-1),t>0&&e.preventDefault()},cycleForward(e){const t=this.suggestions.length||0;this.highlighted+=1,this.highlighted>=t&&(this.highlighted=-1,this.input.focus()),t>0&&e.preventDefault()},scrollIntoView(){const e=this.$refs.picker.$el,t=this.$el.closest(".sidebar-scroller")||this.$el.closest(".post-form-modal-view")||window,n=t===window?t.scrollY:t.scrollTop,s=t===window?t.innerHe
688ight:t.offsetHeight,r=n+s,o=e.offsetHeight+q2(e,t).top,i=Math.max(0,o-r),a=n+i;t===window?t.scroll(0,a):t.scrollTop=a,this.$nextTick(()=>{const{offsetHeight:c}=this.input,{picker:u}=this.$refs;u.$el.getBoundingClientRect().bottom>window.innerHeight&&(u.$el.style.top="auto",u.$el.style.bottom=c+"px")})},onPickerShown(){this.pickerShown=!0},onPickerClosed(){this.pickerShown=!1},onBlur(e){this.blurTimeout=setTimeout(()=>{this.focused=!1,this.setCaret(e)},200)},onClick(e,t){this.replaceText(e,t)},onFocus(e){this.blurTimeout&&(clearTimeout(this.blurTimeout),this.blurTimeout=null),this.focused=!0,this.setCaret(e),this.temporarilyHideSuggestions=!1},onKeyUp(e){const{key:t}=e;this.setCaret(e),t==="Escape"?this.temporarilyHideSuggestions=!0:this.temporarilyHideSuggestions=!1},onPaste(e){this.setCaret(e)},onKeyDown(e){const{ctrlKey:t,shiftKey:n,key:s}=e;this.newlineOnCtrlEnter&&t&&s==="Enter"&&(this.insert({insertion:`
689`,surroundingSpace:!1}),e.stopPropagation(),e.preventDefault(),this.$nextTick(()=>{this.input.blur(),this.input.focus()})),this.temporarilyHideSuggestions||(s==="Tab"&&(n?this.cycleBackward(e):this.cycleForward(e)),s==="ArrowUp"?this.cycleBackward(e):s==="ArrowDown"&&this.cycleForward(e),s==="Enter"&&(t||this.replaceText(e))),s==="Escape"&&(this.temporarilyHideSuggestions||this.input.focus())},onInput(e){this.setCaret(e),this.$emit("update:modelValue",e.target.value)},onStickerUploaded(e){this.$emit("sticker-uploaded",e)},onStickerUploadFailed(e){this.$emit("sticker-upload-Failed",e)},setCaret({target:{selectionStart:e}}){this.caret=e,this.$nextTick(()=>{this.$refs.suggestorPopover.updateStyles()})},autoCompleteItemLabel(e){return e.user?e.displayText+" "+e.detailText:this.maybeLocalizedEmojiName(e)}}},ole={ref:"hiddenOverlayCaret",class:"caret"},ile=["title"],ale=["id"],lle=["id","aria-label","aria-selected","onClick"],cle={class:"image"},ule=["src"],dle={key:1},fle={class:"label"},hle={key:0,class:"displayText"},ple={key:1,class:"displayText"},mle={class:"detailText"};function gle(e,t,n,s,r,o){const i=O("screen-reader-notice"),a=O("FAIcon"),c=O("EmojiPicker"),u=O("UnicodeDomainIndicator"),f=O("Popover");
689return p(),b("div",{ref:"root",class:he(["input emoji-input",{"with-picker":!e.hideEmojiButton}])},[Ot(e.$slots,"default",{id:"textbox-"+e.randomSeed,ariaOwns:e.suggestionListId,ariaAutocomplete:"both",ariaExpanded:e.showSuggestions,ariaActivedescendant:!e.showSuggestions||e.highlighted===-1?"":e.suggestionItemId(e.highlighted)}),g("div",{ref:"hiddenOverlay",class:"hidden-overlay",style:hn(e.overlayStyle),"aria-hidden":!0},[g("span",null,w(e.preText),1),g("span",ole,"x",512),g("span",null,w(e.postText),1)],4),T(i,{ref:"screenReaderNotice","aria-live":"assertive"},null,512),e.enableEmojiPicker?(p(),b(Se,{key:0},[e.hideEmojiButton?E("",!0):(p(),b("button",{key:0,class:"button-unstyled emoji-picker-icon",type:"button",title:e.$t("emoji.add_emoji"),onClick:t[0]||(t[0]=Te((...h)=>e.togglePicker&&e.togglePicker(...h),["prevent"]))},[T(a,{icon:["far","smile-beam"]})],8,ile)),e.enableEmojiPicker?(p(),x(c,{key:1,ref:"picker","enable-sticker-picker":e.enableStickerPicker,class:"emoji-picker-panel",onEmoji:e.insert,onStickerUploaded:e.onStickerUploaded,onStickerUploadFailed:e.onStickerUploadFailed,onShow:e.onPickerShown,onClose:e.onPickerClosed},null,8,["enable-sticker-picker","onEmoji","onStickerUploaded","onStickerUploadFailed","onShow","onClose"])):E("",!0)],64)):E("",!0),T(f,{ref:"suggestorPopover",class:"autocomplete-panel",placement:"bottom","hide-trigger":!0},{content:X(()=>[g("div",{id:e.suggestionListId,ref:"panel-body",class:"autocomplete-panel-body",role:"listbox"},[(p(!0),b(Se,null,We(e.suggestions,(h,v)=>(p(),b("div",{id:e.suggestionItemId(v),key:v,class:he(["menu-item autocomplete-item",{"-active":v===e.highlighted}]),role:"option","aria-label":e.autoCompleteItemLabel(h),"aria-selected":v===e.highlighted,onClick:Te(y=>e.onClick(y,h),["stop","prevent"])},[g("span",cle,[h.img?(p(),b("img",{key:0,src:h.img},null,8,ule)):(p(),b("span",dle,w(h.replacement),1))]),g("div",fle,[h.user?(p(),b("span",hle,[de(w(h.displayText),1),T(u,{user:h.user,at:!1},null,8,["user"])])):E("",!0),h.user?E("",!0):(p(),b("span",ple,w(e.maybeLocalizedEmojiName(h)),1)),g("span",mle,w(h.detailText),1)])],10,lle))),128))],8,ale)]),_:1},512)],2)}const YL=ge(rle,[["render",gle]]),Dh=1e3,Jl=60*Dh,Zl=60*Jl,Xo=24*Zl,D6=7*Xo,U6=30*Xo,j6=365.25*Xo,XL=e=>(typeof e=="string"&&(e=Date.parse(e)),Math.abs(Date.now()-e)),JL=(e,t=1)=>{const n=Date.now()>e?Math.floor:Math.ceil,s=XL(e),r={num:n(s/j6),key:"time.unit.years"};return s<t*Dh?(r.num=0,r.key="time.now"):s<Jl?(r.num=n(s/Dh),r.key="time.unit.seconds"):s<Zl?(r.num=n(s/Jl),r.key="time.unit.minutes"):s<Xo?(r.num=n(s/Zl),r.key="time.unit.hours"):s<D6?(r.num=n(s/Xo),r.ke
689y="time.unit.days"):s<U6?(r.num=n(s/D6),r.key="time.unit.weeks"):s<j6&&(r.num=n(s/U6),r.key="time.unit.months"),r},vle=(e,t=1)=>{const n=JL(e,t);return n.key+="_short",n},ZL=(e,t)=>{switch(e){case"minutes":return .001*t*Jl;case"hours":return .001*t*Zl;case"days":return .001*t*Xo}},ble=(e,t)=>{switch(e){case"minutes":return 1e3*t/Jl;case"hours":return 1e3*t/Zl;case"days":return 1e3*t/Xo}},yle=(e,t)=>e.getFullYear()===t.getFullYear(),_le=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth(),wle=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),QL=e=>{if(typeof e!="string")return 0;const t=e.replace(/[0-9,.]+/,""),n=e.replace(/[^0-9,.]+/,"");switch(t){case"d":return n*Xo;case"h":return n*Zl;case"m":return n*Jl;case"s":return n*Dh;default:return 0}},Sle={pollType:"single",options:["",""],expiryAmount:10,expiryUnit:"minutes"},Ei=(e,t)=>e[t]!==void 0?e[t]:Sle[t],kle=e=>{const t=ZL(Ei(e,"expiryUnit"),Ei(e,"expiryAmount")),n=Z.uniq(Ei(e,"options").filter(s=>s!==""));return n.length<2?{errorKey:"polls.not_enough_options"}:{options:n,multiple:Ei(e,"pollType")==="multiple",expiresIn:t}};et.add(za);const $le={emits:["update:modelValue"],props:["modelValue","disabled","unstyled","kind","attrs"]},Cle=["disabled","value"];function Tle(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("label",{class:he(["Select input",{disabled:e.disabled,unstyled:e.unstyled}])},[g("select",An({disabled:e.disabled,value:e.modelValue},e.$attrs,{onChange:t[0]||(t[0]=a=>e.$emit("update:modelValue",a.target.value))}),[Ot(e.$slots,"default")],16,Cle),t[1]||(t[1]=de(" "+w(" ")+" ",-1)),!e.$attrs.size&&!e.$attrs.multiple?(p(),x(i,{key:0,class:"select-down-icon",icon:"chevron-down"})):E("",!0)],2)}const Zi=ge($le,[["render",Tle]]);et.add(Xn,i2);const Ale={components:{Select:Zi},name:"PollForm",props:{visible:{},params:{type:Object,required:!0}},computed:{pollType:{get(){return Ei(this.params,"pollType")},set(e){this.params.pollType=e}},options(){return!!this.params.options||(this.params.options=Ei(this.params,"options")),this.params.options},expiryAmount:{get(){return Ei(this.params,"expiryAmount")},set(e){this.params.expiryAmount=e}},expiryUnit:{get(){return Ei(this.params,"expiryUnit")},set(e){this.params.expiryUnit=e}},pollLimits(){return this.$store.state.instance.pollLimits},maxOptions(){return this.pollLimits.max_options},maxLength(){return this.pollLimits.max_option_chars},expiryUnits(){const e=["minutes","hours","days"],t=this.convertExpiryFromUnit;return e.filter(n=>this.pollLimits.max_expiration>=t(n,1))},minExpirationInCurrentUnit(){return Math.ceil(this.convertExpiryToUnit(this.expiryUnit,this.pollLimits.min_expiration))},maxExpirationInCurrentUnit(){return Math.floor(this.convertExpiryToUnit(this.expiryUnit,this.pollLimits.max_expiration))}},methods:{clear(){this.pollType="single",this.options=["",""],this.expiryAmount=10,this.expiryUnit="minutes"},nextOption(e){const t=this.$el.querySelector(`#poll-${e+1}`);t?t.focus():this.addOption()&&this.$nextTick(function(){this.nextOption(e)})},addOption(){return this.options.length<this.maxOptions?(this.options.push(""),!0):!1},deleteOption(e){this.options.length>2&&this.options.splice(e,1)},convertExpiryToUnit(e,t){return ble(e,t)},convertExpiryFromUnit(e,t){return ZL(e,t)},expiryAmountChange(){this.expiryAmount=Math.max(this.minExpirationInCurrentUnit,this.expiryAmount),this.expiryAmount=Math.min(this.maxExpirationInCurrentUnit,this.expiryAmount)}}},Ele={key:0,class:"poll-form"},Ile={class:"input-container"},Ple=["id","onUpdate:modelValue","placeholder","maxlength","onKeydown"],Lle=["onClick"],Ole={class:"poll-type-expiry"},Rle=["title"],Mle={value:"single"},Nle={value:"multiple"},Fle=["title"],Dle=["min","max"],Ule=["value"];function jle(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Select");return e.visible?(p(),b("div",Ele,[(p(!0),b(Se,null,We(e.options,(c,u)=>(p(),b("div",{key:u,class:"poll-option"},[g("div",Ile,[at(g("input",{id:`poll-${u}`,"onUpdate:modelValue":f=>e.options[u]=f,size:"1",class:"input poll-option-input",type:"text",placeholder:e.$t("polls.option"),maxlength:e.maxLength,onChange:t[0]||(t[0]=(...f)=>e.updatePollToParent&&e.updatePollToParent(...f)),onKeydown:zo(Te(f=>e.nextOption(u),["stop","prevent"]),["enter"])},null,40,Ple),[[Nt,e.options[u]]])]),e.options.length>2?(p(),b("button",{key:0,class:"delete-option button-unstyled -hover-highlight",onClick:f=>e.deleteOption(u)},[T(i,{icon:"times"}
689)],8,Lle)):E("",!0)]))),128)),e.options.length<e.maxOptions?(p(),b("button",{key:0,class:"add-option faint button-unstyled -hover-highlight",onClick:t[1]||(t[1]=(...c)=>e.addOption&&e.addOption(...c))},[T(i,{icon:"plus",size:"sm"}),de(" "+w(e.$t("polls.add_option")),1)])):E("",!0),g("div",Ole,[g("div",{class:"poll-type",title:e.$t("polls.type")},[T(a,{modelValue:e.pollType,"onUpdate:modelValue":t[2]||(t[2]=c=>e.pollType=c),class:"poll-type-select",unstyled:"true",onChange:e.updatePollToParent},{default:X(()=>[g("option",Mle,w(e.$t("polls.single_choice")),1),g("option",Nle,w(e.$t("polls.multiple_choices")),1)]),_:1},8,["modelValue","onChange"])],8,Rle),g("div",{class:"poll-expiry",title:e.$t("polls.expiry")},[at(g("input",{"onUpdate:modelValue":t[3]||(t[3]=c=>e.expiryAmount=c),type:"number",class:"input expiry-amount hide-number-spinner",min:e.minExpirationInCurrentUnit,max:e.maxExpirationInCurrentUnit,onChange:t[4]||(t[4]=(...c)=>e.expiryAmountChange&&e.expiryAmountChange(...c))},null,40,Dle),[[Nt,e.expiryAmount]]),t[6]||(t[6]=de(" "+w(" ")+" ",-1)),T(a,{modelValue:e.expiryUnit,"onUpdate:modelValue":t[5]||(t[5]=c=>e.expiryUnit=c),unstyled:"true",class:"expiry-unit",onChange:e.expiryAmountChange},{default:X(()=>[(p(!0),b(Se,null,We(e.expiryUnits,c=>(p(),b("option",{key:c,value:c},w(e.$t(`time.unit.${c}_short`,[""],e.expiryAmount)),9,Ule))),128))]),_:1},8,["modelValue","onChange"])],8,Fle)])])):E("",!0)}const Ble=ge(Ale,[["render",jle]]),zle=()=>{let e=null;return{getRuffle:async()=>new Promise((n,s)=>{if(e){n(e);return}window.RufflePlayer={},window.RufflePlayer.config={polyfills:!1,publicPath:"/static/ruffle"};const r=document.createElement("script");r.src="/static/ruffle/ruffle.js",r.type="text/javascript",r.onerror=o=>{s(o)},r.onabort=o=>{s(o)},r.oncancel=o=>{s(o)},r.onload=()=>{e=window.RufflePlayer,n(e)},document.body.appendChild(r)})}},qle=zle();et.add(oP,FZ);const Hle={props:["src"],data(){return{player:!1,loaded:!1,ruffleInstance:null}},methods:{openPlayer(){this.player||(this.player="hidden",qle.getRuffle().then(e=>{const t=e.newest().createPlayer();t.config={letterbox:"on"},this.$refs.container.appendChild(t),t.style.width="100%",t.style.height="100%",t.load(this.src).then(()=>{this.player=!0}).catch(s=>{console.error("Error loading ruffle",s),this.player="error"}),this.ruffleInstance=t,this.$emit("playerOpened")}))},closePlayer(){this.ruffleInstance&&this.ruffleInstance.remove(),this.player=!1,this.$emit("playerClosed")}}},Vle={class:"Flash"},Wle={key:0,class:"label"},Gle={key:1,class:"label"},Kle={key:2,class:"label"};function xle(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",Vle,[e.player===!0||e.player==="hidden"?(p(),b("div",{key:0,ref:"container",class:he(["player",{hidden:e.player==="hidden"}])},null,2)):E("",!0),e.player!==!0?(p(),b("button",{key:1,class:"button-unstyled placeholder",onClick:t[0]||(t[0]=(...a)=>e.openPlayer&&e.openPlayer(...a))},[e.player==="hidden"?(p(),b("span",Wle,w(e.$t("general.loading")),1)):E("",!0),e.player==="error"?(p(),b("span",Gle,w(e.$t("general.flash_fail")),1)):(p(),b("span",Kle,[g("p",null,w(e.$t("general.flash_content")),1),g("p",null,[T(i,{icon:"exclamation-triangle"}),de(" "+w(e.$t("general.flash_security")),1)])]))])):E("",!0)])}const eO=ge(Hle,[["render",xle]]),Yle={props:["attachment","controls"],data(){return{blocksSuspend:!1,hasAudio:!0}},computed:{loopVideo(){return this.$store.getters.mergedConfig.loopVideoSilentOnly?!this.hasAudio:this.$store.getters.mergedConfig.loopVideo}},methods:{onPlaying(e){if(this.setHasAudio(e),this.loopVideo){this.$emit("play",{looping:!0});return}this.$emit("play")},onPaused(){this.$emit("pause")},setHasAudio(e){const t=e.srcElement||e.target;this.hasAudio&&(typeof t.webkitAudioDecodedByteCount<"u"&&t.webkitAudioDecodedByteCount>0||typeof t.mozHasAudio<"u"&&t.mozHasAudio||typeof t.audioTracks<"u"&&t.audioTracks.length>0||(this.hasAudio=!1))}}},Xle=["src","loop","controls","alt","title"];function Jle(e,t,n,s,r,o){return p(),b("video",{class:"video",preload:"metadata",src:e.attachment.url+"#t=0.00000000000001",loop:e.loopVideo,controls:e.controls,alt:e.attachment.description,title:e.attachment.description,playsinline:"",onPlaying:t[0]||(t[0]=(...i)=>e.onPlaying&&e.onPlaying(...i)),onPause:t[1]||(t[1]=(...i)=>e.onPaused&&e.onPaused(...i))},null,40,Xle)}const tO=ge(Yle,[["render",Jle]]),Zle="/static/img/nsfw.DepQPhG0.png";et.add(s2,c2,e2,zZ,YJ,Xn,oP,fP,yJ,TJ,DZ);const Qle={props:["attachment","compact","description","hideDescription","nsfw","size","setMedia","remove","shiftUp","shiftDn","edit"],data(){return{localDescription:this.description||this.attachment.description,nsfwImage:this.$store.state.instance.nsfwCensorImage||Zle,hideNsfwLocal:this.$store.getters.mergedConfig.hideNsfw,preloadImage:this.$store.getters.mergedConfig.preloadImage,loading:!1,img:Fa.fileType(this.attachment.mimetype)==="image"&&document.createElement("img"),modalOpen:!1,showHidden:!1,flashLoaded:!1,showDescription:!1}},components:{Flash:eO,StillImage:Ji,VideoAttachment:tO},computed:{classNames(){return[{"-loading":this.loading,"-nsfw-placeholder":this.hidden,"-editable":this.edit!==void 0,"-compact":this.compact}
689,"-type-"+this.type,this.size&&"-size-"+this.size,`-${this.useContainFit?"contain":"cover"}-fit`]},usePlaceholder(){return this.size==="hide"},useContainFit(){return this.$store.getters.mergedConfig.useContainFit},placeholderName(){return this.attachment.description===""||!this.attachment.description?this.type.toUpperCase():this.attachment.description},placeholderIconClass(){return this.type==="image"?"image":this.type==="video"?"video":this.type==="audio"?"music":"file"},referrerpolicy(){return this.$store.state.instance.mediaProxyAvailable?"":"no-referrer"},type(){return Fa.fileType(this.attachment.mimetype)},hidden(){return this.nsfw&&this.hideNsfwLocal&&!this.showHidden},isEmpty(){return this.type==="html"&&!this.attachment.oembed},useModal(){let e=[];switch(this.size){case"hide":case"small":e=["image","video","audio","flash"];break;default:e=this.mergedConfig.playVideosInModal?["image","video","flash"]:["image"];break}return e.includes(this.type)},videoTag(){return this.useModal?"button":"span"},...bn(["mergedConfig"])},watch:{"attachment.description"(e){this.localDescription=e},localDescription(e){this.onEdit(e)}},methods:{linkClicked({target:e}){e.tagName==="A"&&window.open(e.href,"_blank")},openModal(){this.useModal?(this.$emit("setMedia"),hs().setCurrentMedia(this.attachment)):this.type==="unknown"&&window.open(this.attachment.url)},openModalForce(){this.$emit("setMedia"),hs().setCurrentMedia(this.attachment)},onEdit(e){this.edit&&this.edit(this.attachment,e)},onRemove(){this.remove&&this.remove(this.attachment)},onShiftUp(){this.shiftUp&&this.shiftUp(this.attachment)},onShiftDn(){this.shiftDn&&this.shiftDn(this.attachment)},stopFlash(){this.$refs.flash.closePlayer()},setFlashLoaded(e){this.flashLoaded=e},toggleDescription(){this.showDescription=!this.showDescription},toggleHidden(e){if(this.mergedConfig.useOneClickNsfw&&!this.showHidden&&(this.type!=="video"||this.mergedConfig.playVideosInModal)){this.openModal(e);return}this.img&&!this.preloadImage?this.img.onload?this.img.onload():(this.loading=!0,this.img.src=this.attachment.url,this.img.onload=()=>{this.loading=!1,this.showHidden=!this.showHidden}):this.showHidden=!this.showHidden},onImageLoad(e){const t=e.naturalWidth,n=e.naturalHeight;this.$emit("naturalSizeLoad",{id:this.attachment.id,width:t,height:n})}}},ece=["href","alt","title"],tce={key:1,class:"attachment-buttons"},nce=["placeholder"],sce={key:1},rce={class:"attachment-wrapper"},oce=["href","alt","title"],ice=["src"],ace={key:1,class:"attachment-buttons"},lce=["title"],cce=["title"],uce=["title"],dce=["title"],fce=["title"],hce=["title"],pce=["title"],mce=["href"],gce=["href"],vce={key:0},bce=["href"],yce=["src","alt","title"],_ce={key:0,class:"image"},wce=["src"],Sce={class:"text"},kce=["href"],$ce=["innerHTML"],Cce=["href"],Tce=["placeholder"],Ace={key:1};function Ece(e,t,n,s,r,o){const i=O("FAIcon"),a=O("StillImage"),c=O("VideoAttachment"),u=O("Flash");return e.usePlaceholder?(p(),b("button",{key:0,class:he(["Attachment -placeholder button-default",e.classNames]),onClick:t[4]||(t[4]=(...f)=>e.openModal&&e.openModal(...f))},[e.type!=="html"?(p(),b("a",{key:0,class:"placeholder",target:"_blank",href:e.attachment.url,alt:e.attachment.description,title:e.attachment.description,onClick:t[0]||(t[0]=Te(()=>{},["prevent"]))},[T(i,{icon:e.placeholderIconClass},null,8,["icon"]),g("b",null,w(e.nsfw?"NSFW / ":""),1),de(w(e.edit?"":e.placeholderName),1)],8,ece)):E("",!0),e.edit||e.remove?(p(),b("div",tce,[e.remove?(p(),b("button",{key:0,class:"button-default attachment-button -transparent",onClick:t[1]||(t[1]=Te((...f)=>e.onRemove&&e.onRemove(...f),["prevent"]))},[T(i,{icon:"trash-alt"})])):E("",!0)])):E("",!0),e.size!=="hide"&&!e.hideDescription&&(e.edit||e.localDescription||e.showDescription)?(p(),b("div",{key:2,class:he(["description-container",{"-static":!e.edit}])},[e.edit?at((p(),b("input",{key:0,"onUpdate:modelValue":t[2]||(t[2]=f=>e.localDescription=f),type:"text",class:"input description-field",placeholder:e.$t("post_status.media_description"),onKeydown:t[3]||(t[3]=zo(Te(()=>{},["prevent"]),["enter"]))},null,40,nce)),[[Nt,e.localDescription]]):(p(),b("p",sce,w(e.localDescription),1))],2)):E("",!0)],2)):(p(),b("div",{key:1,class:he(["Attachment",e.classNames])},[at(g("div",rce,[e.hidden?(p(),b("a",{key:0,class:"image-container",href:e.attachment.url,alt:e.attachment.description,title:e.attachment.description,onClick:t[5]||(t[5]=Te((...f)=>e.toggleHidden&&e.toggleHidden(...f),["prevent","stop"]))},[(p(),b("img",{key:e.nsfwImage,class:"nsfw",src:e.nsfwImage},null,8,ice)),e.type==="video"?(p(),x(i,{key:0,class:"play-icon",icon:"play-circle"})):E("",!0)],8,oce)):E("",!0),e.hidden?E("",!0):(p(),b("div",ace,[e.type==="flash"&&e.flashLoaded?(p(),b("button",{key:0,class:"button-default attachment-button -transparent",title:e.$t("status.attachment_stop_flash"),onClick:t[6]||(t[6]=Te
689((...f)=>e.stopFlash&&e.stopFlash(...f),["prevent"]))},[T(i,{icon:"stop"})],8,lce)):E("",!0),e.attachment.description&&e.size!=="small"&&!e.edit&&e.type!=="unknown"?(p(),b("button",{key:1,class:"button-default attachment-button -transparent",title:e.$t("status.show_attachment_description"),onClick:t[7]||(t[7]=Te((...f)=>e.toggleDescription&&e.toggleDescription(...f),["prevent"]))},[T(i,{icon:"align-right"})],8,cce)):E("",!0),!e.useModal&&e.type!=="unknown"?(p(),b("button",{key:2,class:"button-default attachment-button -transparent",title:e.$t("status.show_attachment_in_modal"),onClick:t[8]||(t[8]=Te((...f)=>e.openModalForce&&e.openModalForce(...f),["prevent"]))},[T(i,{icon:"search-plus"})],8,uce)):E("",!0),e.nsfw&&e.hideNsfwLocal?(p(),b("button",{key:3,class:"button-default attachment-button -transparent",title:e.$t("status.hide_attachment"),onClick:t[9]||(t[9]=Te((...f)=>e.toggleHidden&&e.toggleHidden(...f),["prevent"]))},[T(i,{icon:"times"})],8,dce)):E("",!0),e.shiftUp?(p(),b("button",{key:4,class:"button-default attachment-button -transparent",title:e.$t("status.move_up"),onClick:t[10]||(t[10]=Te((...f)=>e.onShiftUp&&e.onShiftUp(...f),["prevent"]))},[T(i,{icon:"chevron-left"})],8,fce)):E("",!0),e.shiftDn?(p(),b("button",{key:5,class:"button-default attachment-button -transparent",title:e.$t("status.move_down"),onClick:t[11]||(t[11]=Te((...f)=>e.onShiftDn&&e.onShiftDn(...f),["prevent"]))},[T(i,{icon:"chevron-right"})],8,hce)):E("",!0),e.remove?(p(),b("button",{key:6,class:"button-default attachment-button -transparent",title:e.$t("status.remove_attachment"),onClick:t[12]||(t[12]=Te((...f)=>e.onRemove&&e.onRemove(...f),["prevent"]))},[T(i,{icon:"trash-alt"})],8,pce)):E("",!0)])),e.type==="image"&&(!e.hidden||e.preloadImage)?(p(),b("a",{key:2,class:he(["image-container",{"-hidden":e.hidden&&e.preloadImage}]),href:e.attachment.url,target:"_blank",onClick:t[13]||(t[13]=Te((...f)=>e.openModal&&e.openModal(...f),["stop","prevent"]))},[T(a,{class:"image",referrerpolicy:e.referrerpolicy,mimetype:e.attachment.mimetype,src:e.attachment.large_thumb_url||e.attachment.url,"image-load-handler":e.onImageLoad,alt:e.attachment.description},null,8,["referrerpolicy","mimetype","src","image-load-handler","alt"])],10,mce)):E("",!0),e.type==="unknown"&&!e.hidden?(p(),b("a",{key:3,class:"placeholder-container",href:e.attachment.url,target:"_blank"},[T(i,{size:e.compact?"2x":"5x",icon:e.placeholderIconClass,title:e.localDescription},null,8,["size","icon","title"]),e.compact?E("",!0):(p(),b("p",vce,w(e.localDescription),1))],8,gce)):E("",!0),e.type==="video"&&!e.hidden?(p(),x(Oa(e.videoTag),{key:4,class:"video-container",href:e.attachment.url,onClick:Te(e.openModal,["stop","prevent"])},{default:X(()=>[T(c,{class:"video",attachment:e.attachment,controls:!e.useModal,onPlay:t[14]||(t[14]=f=>e.$emit("play")),onPause:t[15]||(t[15]=f=>e.$emit("pause"))},null,8,["attachment","controls"]),e.useModal?(p(),x(i,{key:0,class:"play-icon",icon:"play-circle"})):E("",!0)]),_:1},8,["href","onClick"])):E("",!0),e.type==="audio"&&!e.hidden?(p(),b("span",{key:5,class:"audio-container",href:e.attachment.url,onClick:t[18]||(t[18]=Te((...f)=>e.openModal&&e.openModal(...f),["stop","prevent"]))},[e.type==="audio"?(p(),b("audio",{key:0,src:e.attachment.url,alt:e.attachment.description,title:e.attachment.description,controls:"",onPlay:t[16]||(t[16]=f=>e.$emit("play")),onPause:t[17]||(t[17]=f=>e.$emit("pause"))},null,40,yce)):E("",!0)],8,bce)):E("",!0),e.type==="html"&&e.attachment.oembed?(p(),b("div",{key:6,class:"oembed-container",onClick:t[19]||(t[19]=Te((...f)=>e.linkClicked&&e.linkClicked(...f),["prevent"]))},[e.attachment.thumb_url?(p(),b("div",_ce,[g("img",{src:e.attachment.thumb_url},null,8,wce)])):E("",!0),g("div",Sce,[g("h1",null,[g("a",{href:e.attachment.url},w(e.attachment.oembed.title),9,kce)]),g("div",{innerHTML:e.attachment.oembed.oembedHTML},null,8,$ce)])])):E("",!0),e.type==="flash"&&!e.hidden?(p(),b("span",{key:7,class:"flash-container",href:e.attachment.url,onClick:t[22]||(t[22]=Te((...f)=>e.openModal&&e.openModal(...f),["stop","prevent"]))},[T(u,{ref:"flash",class:"flash",src:e.attachment.large_thumb_url||e.attachment.url,onPlayerOpened:t[20]||(t[20]=f=>e.setFlashLoaded(!0)),onPlayerClosed:t[21]||(t[21]=f=>e.setFlashLoaded(!1))},null,8,["src"])],8,Cce)):E("",!0)],512),[[Cr,!e.isEmpty]]),e.size!=="hide"&&!e.hideDescription&&(e.edit||e.localDescription&&e.showDescription)?(p(),b("div",{key:0,class:he(["description-container",{"-static":!e.edit}])},[e.edit?at((p(),b("input",{key:0,"onUpdate:modelValue":t[23]||(t[23]=f=>e.localDescription=f),type:"text",class:"input description-field",placeholder:e.$t("post_status.media_description"),onKeydown:t[24]||(t[24]=zo(Te(()=>{},["prevent"]),["enter"]))},null,40,Tce)),[[Nt,e.localDescription]]):(p(),b("p",Ace,w(e.localDescription),1))],2)):E("",!0)],2))}const Qp=ge(Qle,[["render",Ece]]),Ice={props:["attachments","compact","limitRows","descriptions","limit","nsfw","setMedia","size","editable","removeAttachment","shiftUpAttachment","shiftDnAttachment","editAttachment","grid"],data(){return{sizes:{},hidingLong:!0}},components:{Attachment:Qp},computed:{rows(){if(!this.attachments)return[];const e=this.limit>0?this.attachments.slice(0,this.limit):this.attachments;return this.size==="hide"?e.map(n=>({minimal:!0,items:[n]})):this.grid?[{grid:!0,items:e}]:e.reduce((n,s,r)=>
689{if(s.mimetype.includes("audio"))return[...n,{audio:!0,items:[s]},{items:[]}];if(!(s.mimetype.includes("image")||s.mimetype.includes("video")||s.mimetype.includes("flash")))return[...n,{minimal:!0,items:[s]},{items:[]}];const o=3,i=this.attachments.length-r+1,a=n[n.length-1].items;return a.push(s),a.length>=o&&i>o?[...n,{items:[]}]:n},[{items:[]}]).filter(n=>n.items.length>0)},attachmentsDimensionalScore(){return this.rows.reduce((e,t)=>{let n=0;return t.minimal?n+=1/8:t.audio?n+=1/4:n+=1/(t.items.length+.6),e+n},0)},tooManyAttachments(){return this.editable||this.size==="small"?!1:this.size==="hide"?this.attachments.length>8:this.attachmentsDimensionalScore>1}},methods:{onNaturalSizeLoad({id:e,width:t,height:n}){Z.set(this.sizes,e,{width:t,height:n})},rowStyle(e){if(e.audio)return{"padding-bottom":"25%"};if(!e.minimal&&!e.grid)return{"padding-bottom":`${100/(e.items.length+.6)}%`}},itemStyle(e,t){const n=Z.sumBy(t,s=>this.getAspectRatio(s.id));return{flex:`${this.getAspectRatio(e)/n} 1 0%`}},getAspectRatio(e){const t=this.sizes[e];return t?t.width/t.height:1},toggleHidingLong(e){this.hidingLong=e},openGallery(){hs().setMedia(this.attachments),hs().setCurrentMedia(this.attachments[0])},onMedia(){hs().setMedia(this.attachments)}}},Pce={class:"gallery-rows"},Lce={key:0,class:"many-attachments"},Oce={class:"many-attachments-text"},Rce={class:"many-attachments-buttons"},Mce={key:0,class:"many-attachments-button"},Nce={key:1,class:"many-attachments-button"},Fce={key:2,class:"many-attachments-button"};function Dce(e,t,n,s,r,o){const i=O("Attachment");return p(),b("div",{ref:"galleryContainer",class:he(["Gallery",{"-long":e.tooManyAttachments&&e.hidingLong}])},[g("div",Pce,[(p(!0),b(Se,null,We(e.rows,(a,c)=>(p(),b("div",{key:c,class:he(["gallery-row",{"-audio":a.audio,"-minimal":a.minimal,"-grid":e.grid}]),style:hn(e.rowStyle(a))},[g("div",{class:he(["gallery-row-inner",{"-grid":e.grid}])},[(p(!0),b(Se,null,We(a.items,(u,f)=>(p(),x(i,{key:u.id,class:"gallery-item",compact:e.compact,nsfw:e.nsfw,attachment:u,size:e.size,editable:e.editable,remove:e.removeAttachment,"shift-up":!(f===0&&c===0)&&e.shiftUpAttachment,"shift-dn":!(f===a.items.length-1&&c===e.rows.length-1)&&e.shiftDnAttachment,edit:e.editAttachment,description:e.descriptions&&e.descriptions[u.id],"hide-description":e.size==="small"||e.tooManyAttachments&&e.hidingLong,style:hn(e.itemStyle(u.id,a.items)),onSetMedia:e.onMedia,onNaturalSizeLoad:e.onNaturalSizeLoad},null,8,["compact","nsfw","attachment","size","editable","remove","shift-up","shift-dn","edit","description","hide-description","style","onSetMedia","onNaturalSizeLoad"]))),128))],2)],6))),128))]),e.tooManyAttachments?(p(),b("div",Lce,[g("div",Oce,w(e.$t("status.many_attachments",{number:e.attachments.length})),1),g("div",Rce,[e.hidingLong?E("",!0):(p(),b("span",Mce,[g("button",{class:"button-unstyled -link",onClick:t[0]||(t[0]=a=>e.toggleHidingLong(!0))},w(e.$t("status.collapse_attachments")),1)])),e.hidingLong?(p(),b("span",Nce,[g("button",{class:"button-unstyled -link",onClick:t[1]||(t[1]=a=>e.toggleHidingLong(!1))},w(e.$t("status.show_all_attachments")),1)])):E("",!0),e.hidingLong?(p(),b("span",Fce,[g("button",{class:"button-unstyled -link",onClick:t[2]||(t[2]=(...a)=>e.openGallery&&e.openGallery(...a))},w(e.$t("status.open_gallery")),1)])):E("",!0)])])):E("",!0)],2)}const em=ge(Ice,[["render",Dce]]),Uce={name:"Timeago",props:["time","autoUpdate","longFormat","nowThreshold","templateKey"],data(){return{relativeTimeMs:0,relativeTime:{key:"time.now",num:0},interval:null}},computed:{shouldUseAbsoluteTimeFormat(){return this.$store.getters.mergedConfig.useAbsoluteTimeFormat?QL(this.$store.getters.mergedConfig.absoluteTimeFormatMinAge)<=this.relativeTimeMs:!1},time12hFormat(){return this.$store.getters.mergedConfig.absoluteTimeFormat12h==="12h"},browserLocale(){return Tr.internalToBrowserLocale(this.$i18n.locale)},timeAsDate(){return typeof this.time=="string"?new Date(Date.parse(this.time)):this.time},localeDateString(){return this.timeAsDate.toLocaleString(this.browserLocale)},relativeTimeString(){const e=this.$i18n.t(this.relativeTime.key,[this.relativeTime.num],this.relativeTime.num);return typeof this.templateKey=="string"&&this.relativeTime.key!=="time.now"?this.$i18n.t(this.templateKey,[e]):e},absoluteTimeString(){if(this.longFormat)return this.localeDateString;const e=new Date;return(wle(this.timeAsDate,e)?new Intl.DateTimeFormat(this.browserLocale,{minute:"numeric",hour:"numeric",hour12:this.time12hFormat}):_le(this.timeAsDate,e)?new Intl.DateTimeFormat(this.browserLocale,{month:"short",day:"numeric",hour12:this.time12hFormat}):yle(this.timeAsDate,e)?new Intl.DateTimeFormat(this.browserLocale,{month:"short",day:"numeric",hour12:this.time12hFormat}):new Intl.DateTimeFormat(this.browserLocale,{year:"numeric",month:"short",hour12:this.time12hFormat})).format(this.timeAsDate)},relativeOrAbsoluteTimeString(){return this.shouldUseAbsoluteTimeFormat?this.absoluteTimeString:this.relativeTimeString}},watch:{time(e,t){t!==e&&(clearTimeout(this.interval),this.refreshRelativeTimeObject())}},created(){this.refreshRelativeTimeObject()},unmounted(){clearTimeout(this.interval)},methods:{refreshRelativeTimeObject(){const e=typeof this.nowThreshold=="number"?this.nowThreshold:1;this.relativeTimeMs=XL(this.time),this.relativeTime=this.longFormat?JL(this.time,e):vle(this.time,e),this.autoUpdate&&(this.interval=setTimeout(this.refreshRelativeTimeObject,1e3*this.autoUpdate))}}},jce=["datetime","title"];function Bce(e,t,n,s,r,o){return p(),b("time",{datetime:n.time,title:o.localeDateString},w(o.relativeOrAbsoluteTimeString),9,jce)}const _d=ge(Uce,[["render",Bce]]),qo=e=>{const t=/(?:<\/(\w+)>|<(\w+)\s?.*?\/?>)/gis.exec(e);return t&&(t[1]||t[2])},kl=(e,t)=>{const n=e.substring(1,e.length-1).replace(new RegExp("^"+qo(e)),"").replace(/\/?$/,"").trim(),s=Array.from(n.matchAll(/([a-z]+[a-z0-9-]*)(?:=("[^"]+?"|'[^']+?'))?/gi)).map(([,o,i])=>[o,i]).map(([o,i])=>i?[o,i.substring(1,i.length-1)]:[o,!0]),r=([o,i])=>{const a=o.toLowerCase();return a==="style"?!1:a==="class"?i==="greentext"||i==="cyantext":!0};return Object.fromEntries(s.filter(t||r))},zce=(e,t,n)=>{const s=[];let r="";for(let o=0;o<e.length;o++){const i=e[o];if(i===":"){const a=e.slice(o+1);let c=!1;for(const u of t)if(a.slice(0,u.shortcode.length+1)===u.shortcode+":"){c=u;break}c?(s.push(r),r="",s.push(n(c)),o+=c.shortcode.length+1):r+=i}else r+=i}return r&&s.push(r),s},qce=(e="")=>{const t=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),n=[],s=[["",n]];let r="",o=null;const i=()=>s[s.length-1][1],a=()=>{r!==""&&(i().push(r),r="")},c=h=>{i().push([h])},u=h=>{const v=i(),y=[Z.unescape(h),[]];s.push(y),v.push(y)},f=h=>{const v=s[s.length-1];qo(s[s.length-1][0])===qo(h)?(v.push(h),s.pop()):i().push(h)};for(let h=0;h<e.length;h++){const v=e[h];if(v==="<"&&o===null)a(),o=v;else if(v!==">"&&o!==null)o+=v;else if(v===">"&&o!==null){o+=v;const y=o;o=null;const S=qo(y);y[1]==="/"?f(y):t.has(S)||y[y.length-2]==="/"?c(y):u(y)}else r+=v}return o&&(r+=o),a(),n},Hce=(e="")=>{const t=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),n=new Set(["address","article","aside","blockquote","details","dialog","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","ol","p","pre","section","table","ul"]),s=new Set(["br"]),r=new Set([...n.values(),...s.values()]),o=new Set(r);for(const C of t)o.delete(C);const i=new Set([...o.values(),...t.values()]),a=[],c=[];let u="",f=null;const h=()=>{u.trim().length>0?a.push({level:[...c],text:u}):a.push(u),u=""},v=C=>{h(),a.push(C)},y=C=>{h(),a.push(C),c.unshift(qo(C))},S=C=>{c[0]===qo(C)?(h(),a.push(C),c.shift()):u+=C};for(let C=0;C<e.length;C++){const I=e[C];if(I==="<"&&f===null)f=I;else if(I!==">"&&f!==null)f+=I;else if(I===">"&&f!==null){f+=I;const $=f;f=null;
689const k=qo($);i.has(k)?s.has(k)?v($):o.has(k)?$[1]==="/"?S($):$[$.length-2]==="/"?v($):y($):u+=$:u+=$}else I===`
690`?v(I):u+=I}return f&&(u+=f),h(),a},Vce={components:{StillImage:Ji,Popover:Jn,SelectComponent:Zi},props:{shortcode:{type:String,required:!0},isLocal:{type:Boolean,required:!0}},data(){return{knownLocalPacks:{},packName:""}},computed:{isUserAdmin(){return this.$store.state.users.currentUser.rights.admin}},methods:{displayError(e){Xe().pushGlobalNotice({messageKey:"admin_dash.emoji.error",messageArgs:[e],level:"error"})},copyToLocalPack(){this.$store.state.api.backendInteractor.addNewEmojiFile({packName:this.packName,file:this.$attrs.src,shortcode:this.shortcode,filename:""}).then(e=>e.json()).then(e=>{if(e.error!==void 0){this.displayError(e.error);return}Xe().pushGlobalNotice({messageKey:"admin_dash.emoji.copied_successfully",messageArgs:[this.shortcode,this.packName],level:"success"}),this.$refs.emojiPopover.hidePopover(),this.packName=""})},loadPacksPaginated(e){const n={};return e({instance:this.$store.state.instance.server,page:1,pageSize:0}).then(s=>s.json()).then(s=>{if(s.error!==void 0)return Promise.reject(s.error);let r=Promise.resolve({});for(let o=0;o<Math.ceil(s.count/25);o++)r=r.then(()=>e({instance:this.$store.state.instance.server,page:o,pageSize:25})).then(i=>i.json()).then(i=>{if(i.error!==void 0)return Promise.reject(i.error);Z.assign(n,i.packs)});return r}).then(()=>n).catch(s=>{this.displayError(s)})},fetchEmojiPacksIfAdmin(){this.isUserAdmin&&this.loadPacksPaginated(this.$store.state.api.backendInteractor.listEmojiPacks).then(e=>{const t=Object.keys(e).sort().reduce((n,s)=>(s.length===0||(n[s]=e[s]),n),{});this.knownLocalPacks=t})}}},Wce={class:"emoji-popover"},Gce={class:"emoji-popover-centered"},Kce={key:0},xce=["disabled"],Yce={value:"",disabled:"",hidden:""},Xce=["label"];function Jce(e,t,n,s,r,o){const i=O("StillImage"),a=O("SelectComponent"),c=O("Popover");return p(),x(c,{ref:"emojiPopover",trigger:"click",placement:"top","bound-to":{x:"container"},offset:{y:10},onShow:o.fetchEmojiPacksIfAdmin},{trigger:X(()=>[T(i,lh(up(e.$attrs)),null,16)]),content:X(()=>[g("div",Wce,[g("h3",null,w(e.$attrs.title),1),g("div",Gce,[T(i,An({class:"emoji"},e.$attrs),null,16)]),o.isUserAdmin&&!n.isLocal?(p(),b("div",Kce,[g("button",{class:"button button-default btn emoji-popover-button",type:"button",disabled:r.packName=="",onClick:t[0]||(t[0]=(...u)=>o.copyToLocalPack&&o.copyToLocalPack(...u))},w(e.$t("admin_dash.emoji.copy_to_pack")),9,xce),T(a,{modelValue:r.packName,"onUpdate:modelValue":t[1]||(t[1]=u=>r.packName=u)},{default:X(()=>[g("option",Yce,w(e.$t("admin_dash.emoji.emoji_pack")),1),(p(!0),b(Se,null,We(r.knownLocalPacks,(u,f)=>(p(),b("option",{key:f,label:f},w(f),9,Xce))),128))]),_:1},8,["modelValue"])])):E("",!0)])]),_:1},8,["onShow"])}const Zce=ge(Vce,[["render",Jce]]),ao=(e,t,n)=>{const s=!t||Qce(t)||Z.includes(n,t);return{name:s?"external-user-profile":"user-profile",params:s?{id:e}:{name:t}}},Qce=e=>e&&e.includes("@"),Uh=e=>{if(e===void 0)return;const{color:t,type:n}=e;if(typeof t!="string")return;const s=yp(t);if(s==null)return;const r=`rgb(${Math.floor(s.r)}, ${Math.floor(s.g)}, ${Math.floor(s.b)})`,o=`rgba(${Math.floor(s.r)}, ${Math.floor(s.g)}, ${Math.floor(s.b)}, .1)`,i=`rgba(${Math.floor(s.r)}, ${Math.floor(s.g)}, ${Math.floor(s.b)}, .2)`,a={"--____highlight-solidColor":r,"--____highlight-tintColor":o,"--____highlight-tintColor2":i};if(n==="striped")return{backgroundImage:["repeating-linear-gradient(135deg,",`${o} ,`,`${o} 20px,`,`${i} 20px,`,`${i} 40px`].join(" "),backgroundPosition:"0 0",...a};if(n==="solid")return{backgroundColor:i,...a};if(n==="side")return{backgroundImage:["linear-gradient(to right,",`${r} ,`,`${r} 2px,`,"transparent 6px"].join(" "),backgroundPosition:"0 0",...a}},jh=e=>{var t;return"USER____"+((t=e.screen_name)==null?void 0:t.replace(/\./g,"_").replace(/@/g,"_AT_"))};et.add(EZ,IJ);const eue={props:{user:{required:!0,type:Object},compact:{required:!1,type:Boolean,default:!1},showActorTypeIndicator:{required:!1,type:Boolean,default:!1},url:{required:!1,type:String,default:null}},data(){return{showPlaceholder:!1,defaultAvatar:`${this.$store.state.instance.server+this.$store.state.instance.defaultAvatar}`,betterShadow:Xe().browserSupport.cssFilter}},components:{StillImage:Ji},methods:{imgSrc(e){return!e||this.showPlaceholder?this.defaultAvatar:e},imageLoadError(){this.showPlaceholder=!0}}};function tue(e,t,n,s,r,o){var c,u;const i=O("StillImage"),a=O("FAIcon");return p(),b("span",{class:he(["Avatar",{"-compact":e.compact}])},[e.user?(p(),x(i,{key:0,class:he(["avatar",{"-compact":e.compact,"-better-shadow":e.betterShadow}]),alt:e.user.screen_name_ui,title:e.user.screen_name_ui,src:e.url?e.url:e.imgSrc(e.user.profile_image_url_original),"image-load-error":e.imageLoadError},null,8,["alt","title","src","image-load-error","class"])):(p(),b("div",{key:1,class:he(["avatar -placeholder",{"-compact":e.compact}])},null,2)),e.showActorTypeIndicator&&((c=e.user)==null?void 0:c.actor_type)==="Service"?(p(),x(a,{key:2,icon:"robot",class:"actor-type-indicator"})):E("",!0),e.showActorTypeIndicator&&((u=e.user)==null?void 0:u.actor_type)==="Group"?(p(),x(a,{key:3,icon:"people-group",class:"actor-type-indicator"})):E("",!0)],2)}const er=ge(eue,[["render",tue]]),nue=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"}));et.add(vJ);const sue={name:"MentionLink",components:{UserAvatar:er,UnicodeDomainIndicator:Zp,UserPopover:gr(()=>Ve(()=>Promise.resolve().then(()=>tw),void 0))},props:{url:{required:!0,type:String},content:{required:!0,type:String},userId:{required:!1,type:String},userScreenName:{required:!1,type:String}},data(){return{hasSelection:!1}},methods:{onClick(){if(this.shouldShowTooltip)return;const e=ao(this.userId||this.user.id,this.userScreenName||this.user.screen_name);this.$router.push(e)},handleSelection(){this.$refs.full&&(this.hasSelection=document.getSelection().containsNode(this.$refs.full,!0))}},mounted(){document.addEventListener("selectionchange",this.handleSelection)},unmounted(){document.removeEventListener("selectionchange",this.handleSelection)},computed:{user(){return this.url&&this.$store&&this.$store.getters.findUserByUrl(this.url)},isYou(){return this.user&&this.user.id===this.currentUser.id},userName(){return this.user&&this.userNameFullUi.split("@")[0]},serverName(){return this.user&&(this.userNameFullUi.split("@")[1]||this.$store.getters.instanceDomain)},userNameFull(){return this.user&&this.user.screen_name},userNameFullUi(){return this.user&&this.user.screen_name_ui},highlight(){return this.user&&this.mergedConfig.highlight[this.user.screen_name]},highlightType(){return this.highlight&&"-"+this.highlight.type},highlightClass(){if(this.highlight)return jh(this.user)},style(){if(this.highlight){const{backgroundColor:e,backgroundPosition:t,backgroundImage:n,...s}=Uh(this.highlight);return s}},classnames(){return[{"-you":this.isYou&&this.shouldBoldenYou,"-highlighted":this.highlight,"-has-selection":this.hasSelection},this.highlightType]},isRemote(){return this.userName!==this.userNameFull},shouldShowFullUserName(){const e=this.mergedConfig.mentionLinkDisplay;return e==="short"?!1:e==="full"?!0:this.isRemote},shouldShowTooltip(){return this.mergedConfig.mentionLinkShowTooltip},shouldShowAvatar(){return this.mergedConfig.mentionLinkShowAvatar},shouldShowYous(){return this.mergedConfig.mentionLinkShowYous},shouldBoldenYou(){return this.mergedConfig.mentionLinkBoldenYou},shouldFadeDomain(){return this.mergedConfig.mentionLinkFadeDomain},...bn(["mergedConfig"]),...mn({currentUser:e=>e.users.currentUser})}},rue={class:"MentionLink"},oue=["href","innerHTML"],iue=["href"],aue={class:"shortName"},lue=["innerHTML"],cue=["innerHTML"],uue={ref:"full",class:"full"},due=["innerHTML"],fue=["innerHTML"];function hue(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("UnicodeDomainIndicator"),c=O("UserPopover");return p(),b("span",rue,[e.user?(p(),x(c,{key:1,"user-id":e.user.id,disabled:!e.shouldShowTooltip},{default:X(()=>[e.user?(p(),b("span",{key:0,class:he(["new",e.classnames]),style:hn(e.style)}
690,[g("a",{class:he(["short",{"-with-tooltip":e.shouldShowTooltip}]),href:e.url,onClick:t[0]||(t[0]=Te((...u)=>e.onClick&&e.onClick(...u),["prevent"]))},[e.shouldShowAvatar?(p(),x(i,{key:0,class:"mention-avatar",user:e.user},null,8,["user"])):E("",!0),g("span",aue,[t[1]||(t[1]=de("@",-1)),g("span",{class:"userName",innerHTML:e.userName},null,8,lue),e.shouldShowFullUserName?(p(),b("span",{key:0,class:he(["serverName",{"-faded":e.shouldFadeDomain}]),innerHTML:"@"+e.serverName},null,10,cue)):E("",!0),e.shouldShowFullUserName?(p(),x(a,{key:1,user:e.user},null,8,["user"])):E("",!0)]),e.isYou&&e.shouldShowYous?(p(),b("span",{key:1,class:he({"-you":e.shouldBoldenYou})},w(" "+e.$t("status.you")),3)):E("",!0)],10,iue),g("span",uue,[t[2]||(t[2]=de(" @",-1)),g("span",{innerHTML:e.userName},null,8,due),g("span",{innerHTML:"@"+e.serverName},null,8,fue)],512)],6)):E("",!0)]),_:1},8,["user-id","disabled"])):(p(),b("a",{key:0,href:e.url,class:"original",target:"_blank",innerHTML:e.content},null,8,oue))])}const nO=ge(sue,[["render",hue]]),B6=5,pue={name:"MentionsLine",props:{mentions:{required:!0,type:Array}},data:()=>({expanded:!1}),components:{MentionLink:nO},computed:{mentionsComputed(){return this.mentions.slice(0,B6)},extraMentions(){return this.mentions.slice(B6)},manyMentions(){return this.extraMentions.length>0},...bn(["mergedConfig"])},methods:{toggleShowMore(){this.expanded=!this.expanded}}},mue={class:"MentionsLine"},gue={key:0,class:"extraMentions"},vue={key:0,class:"fullExtraMentions"};function bue(e,t,n,s,r,o){const i=O("MentionLink");return p(),b("span",mue,[(p(!0),b(Se,null,We(e.mentionsComputed,a=>(p(),x(i,{key:a.index,class:"mention-link",content:a.content,url:a.url},null,8,["content","url"]))),128)),e.manyMentions?(p(),b("span",gue,[e.expanded?(p(),b("span",vue,[t[2]||(t[2]=de(w(" "),-1)),(p(!0),b(Se,null,We(e.extraMentions,a=>(p(),x(i,{key:a.index,class:"mention-link",content:a.content,url:a.url},null,8,["content","url"]))),128))])):E("",!0),e.expanded?E("",!0):(p(),b("button",{key:1,class:"button-unstyled -link showMoreLess",onClick:t[0]||(t[0]=(...a)=>e.toggleShowMore&&e.toggleShowMore(...a))},w(e.$t("status.plus_more",{number:e.extraMentions.length})),1)),e.expanded?(p(),b("button",{key:2,class:"button-unstyled -link showMoreLess",onClick:t[1]||(t[1]=(...a)=>e.toggleShowMore&&e.toggleShowMore(...a))},w(e.$t("general.show_less")),1)):E("",!0)])):E("",!0)])}const zy=ge(pue,[["render",bue]]),yue=5;({...bn(["mergedConfig"])});const _ue=e=>{const t=decodeURI(e),s=/tag[s]*\/([\p{L}\p{N}_]*[\p{Alphabetic}_·\u{200c}][\p{L}\p{N}_·\p{M}\u{200c}]*)$/ug.exec(t);return s?s[1]:!1},wue={name:"HashtagLink",props:{url:{required:!0,type:String},content:{required:!0,type:String},tag:{required:!1,type:String,default:""}},methods:{onClick(){const e=this.tag||_ue(this.url);if(e){const t=this.generateTagLink(e);this.$router.push(t)}else window.open(this.url,"_blank")},generateTagLink(e){return`/tag/${e}`}}},Sue={class:"HashtagLink"},kue=["href","innerHTML"];function $ue(e,t,n,s,r,o){return p(),b("span",Sue,[g("a",{href:e.url,class:"original",target:"_blank",onClick:t[0]||(t[0]=Te((...i)=>e.onClick&&e.onClick(...i),["prevent"])),innerHTML:e.content},null,8,kue)])}const z6=ge(wue,[["render",$ue]]);function Cue(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Mi(e)}const Tue=["blockquote","br","hr","ul","ol","li","p","table","tbody","td","th","thead","tr","h1","h2","h3","h4","h5"],Mr={name:"RichContent",components:{MentionsLine:zy,HashtagLink:z6},props:{html:{required:!0,type:String},attentions:{required:!1,default:()=>[]},emoji:{required:!0,type:Array},handleLinks:{required:!1,type:Boolean,default:!1},greentext:{required:!1,type:Boolean,default:!1},faint:{required:!1,type:Boolean,default:!1},collapse:{required:!1,type:Boolean,default:!1},isLocal:{required:!1,type:Boolean,default:!0}},render(){const{newHtml:e}=Aue(this.html,this.greentext);let t=null,n="";const s=[],r=[],o=[],i=[];let a=0,c=0;const u=P=>T(O("StillImage"),An(kl(P),{class:"img"}),null),f=(P,A,R)=>{const{index:B,...N}=q6(P,A,c++);i.push(N),R||s.push(N);const{url:Y,tag:H,content:D}=N;return T(z6,{url:Y,tag:H,content:D},null)},h=(P,A)=>{const R=q6(P,A,a++);return R.notifying=this.attentions.some(B=>B.statusnet_profile_url===R.url),r.push(R),t===null&&(t=[]),t.push(R),t.length>yue&&o.push(R),t.length===1?T(zy,{mentions:t},null):""},v=(P,A,R,B)=>
690{if(typeof P=="string"){const N=P.trim()==="";return P.includes(`
691`)&&(t=null),N?(n=P,A!==R.length-1&&t!==null?P.trim():P):(t=null,P.includes(":")&&(P=["",zce(P,this.emoji,({shortcode:Y,url:H})=>T(Zce,{class:"emoji img",src:H,title:`:${Y}:`,alt:`:${Y}:`,shortcode:Y,isLocal:this.isLocal},null))]),P)}if(Array.isArray(P)){const[N,Y,H]=P;let D=qo(N);D.toLowerCase()==="script"&&(D="js-exploit"),D.toLowerCase()==="style"&&(D="css-exploit");const oe=kl(N,()=>!0),le=kl(N),qe=t!==null&&!(Y&&typeof Y[0]=="string"&&Y[0].match(/^\s/))?n:"";if(Tue.includes(D))t=null;else{if(D==="img")return["",[qe,u(N)],""];if(D==="a"&&this.handleLinks){if(oe.class&&oe.class.includes("mention"))return h(le,Y);t=null}else if(D==="span"&&this.handleLinks&&oe.class&&oe.class.includes("h-card"))return["",Y.map(v),""]}return Y!==void 0?["",[qe,[N,Y.map(v),H]],""]:["",[qe,P],""]}};let y=!1;const S=(P,A,R,B)=>{if(typeof P=="string")return P.trim()===""?P:(y||(y=!0),Z.unescape(P));if(Array.isArray(P)){const[N,Y]=P,H=N===""?"":qo(N);switch(H){case"a":{if(!this.handleLinks)break;const D=kl(N,()=>!0),oe=kl(N,()=>!0);if(D.class&&D.class.includes("hashtag")||D.rel==="tag")return f(oe,Y,y);{oe.target="_blank";const le=[...Y].reverse().map(S).reverse();return T("a",oe,[le])}}case"":return[...Y].reverse().map(S).reverse()}if(Y!==void 0){const D=Array.isArray(Y)?[...Y].reverse().map(S).reverse():Y;return T(H,kl(N),Cue(D)?D:{default:()=>[D]})}else return T(H,null,null)}return P},I=[...qce(e).map(v)].reverse().map(S).reverse(),$=T("span",{class:["RichContent",this.faint?"-faint":""]},[this.collapse?I.map(P=>Array.isArray(P)?P.map(A=>A.type==="br"?" ":A):P.replace(/\n/g," ")):I]),k={lastTags:s,writtenMentions:r,writtenTags:i,invisibleMentions:o};return this.$emit("parseReady",k),$}},q6=(e,t,n)=>{const s=o=>typeof o=="string"?o:o[1].map(s).join(""),r=t.map(s).join("");return{index:n,url:e.href,tag:e["data-tag"],content:Z.flattenDeep(t).join(""),textContent:r}},Aue=(e,t)=>{const n=new Set(["p","div"]);return{newHtml:Hce(e).reverse().map((o,i,a)=>{if(!o.text)return o;const c=o.text;if(t&&o.level.every(u=>n.has(u))&&(c.includes("&gt;")||c.includes("&lt;"))){const u=c.replace(/<[^>]+?>/gi,"").replace(/@\w+/gi,"").trim();if(u.startsWith("&gt;"))return`<span class='greentext'>${c}</span>`;if(u.startsWith("&lt;"))return`<span class='cyantext'>${c}</span>`}return c}).reverse().join("")}},Eue={name:"Poll",props:["basePoll","emoji"],components:{Timeago:_d,RichContent:Mr,Checkbox:io},data(){return{loading:!1,choices:[],randomSeed:Jp()}},created(){_a().pollsObject[this.pollId]||_a().mergeOrAddPoll(this.basePoll),_a().trackPoll(this.pollId)},unmounted(){_a().untrackPoll(this.pollId)},computed:{pollId(){return this.basePoll.id},poll(){return _a().pollsObject[this.pollId]||{}},options(){return this.poll&&this.poll.options||[]},expiresAt(){return this.poll&&this.poll.expires_at||null},expired(){return this.poll&&this.poll.expired||!1},expirationLabel(){return this.$store.getters.mergedConfig.useAbsoluteTimeFormat?this.expired?"polls.expired_at":"polls.expires_at":this.expired?"polls.expired":"polls.expires_in"},loggedIn(){return this.$store.state.users.currentUser},showResults(){return this.poll.voted||this.expired||!this.loggedIn},totalVotesCount(){return this.poll.votes_count},containerClass(){return{loading:this.loading}},choiceIndices(){return this.choices.map((e,t)=>e&&t).filter(e=>typeof e=="number")},isDisabled(){const e=this.choiceIndices.length===0;return this.loading||e}},methods:{percentageForOption(e){return this.totalVotesCount===0?0:Math.round(e/this.totalVotesCount*100)},resultTitle(e){return`${e.votes_count}/${this.totalVotesCount} ${this.$t("polls.votes")}`},activateOption(e,t){let n;this.poll.multiple?n=this.choices||this.options.map(()=>!1):n=this.options.map(()=>!1),n[e]=t,this.choices=n},optionId(e){return`poll${this.poll.id}-${e}`},vote(){this.choiceIndices.length!==0&&(this.loading=!0,_a().votePoll({id:this.statusId,pollId:this.poll.id,choices:this.choiceIndices}).then(()=>{this.loading=!1}))}}},Iue=["role"],Pue=["title"],Lue={class:"option-result-label"},Oue={class:"result-percentage"},Rue=["role","aria-labelledby","aria-checked"],Mue={class:"footer faint"},Nue=["title"],Fue={class:"total"},Due={key:2},Uue={key:1},jue=["disabled"];function Bue(e,t,n,s,r,o){var f;const i=O("RichContent"),a=O("Checkbox"),c=O("Timeago"),u=O("i18n-t");return p(),b("div",{class:he(["poll",e.containerClass])},[g("div",{role:e.showResults?"section":e.poll.multiple?"group":"radiogroup"}
691,[(p(!0),b(Se,null,We(e.options,(h,v)=>(p(),b("div",{key:v,class:"poll-option"},[e.showResults?(p(),b("div",{key:0,title:e.resultTitle(h),class:"option-result"},[g("div",Lue,[g("span",Oue,w(e.percentageForOption(h.votes_count))+"% ",1),T(i,{html:h.title_html,"handle-links":!1,emoji:e.emoji},null,8,["html","emoji"])]),g("div",{class:"result-fill",style:hn({width:`${e.percentageForOption(h.votes_count)}%`})},null,4)],8,Pue)):(p(),b("div",{key:1,tabindex:"0",role:e.poll.multiple?"checkbox":"radio","aria-labelledby":`option-vote-${e.randomSeed}-${v}`,"aria-checked":e.choices[v]},[T(a,{radio:!e.poll.multiple,disabled:e.loading,"model-value":e.choices[v],"onUpdate:modelValue":y=>e.activateOption(v,y)},{default:X(()=>[T(i,{id:`option-vote-${e.randomSeed}-${v}`,html:h.title_html,"handle-links":!1,emoji:e.emoji},null,8,["id","html","emoji"])]),_:2},1032,["radio","disabled","model-value","onUpdate:modelValue"])],8,Rue))]))),128))],8,Iue),g("div",Mue,[g("p",null,[(f=e.poll.pleroma)!=null&&f.non_anonymous?(p(),b("span",{key:0,title:e.$t("polls.non_anonymous_title")},w(e.$t("polls.non_anonymous"))+"  ·  ",9,Nue)):E("",!0),g("span",Fue,[typeof e.poll.voters_count=="number"?(p(),b(Se,{key:0},[de(w(e.$t("polls.people_voted_count",{count:e.poll.voters_count},e.poll.voters_count)),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("polls.votes_count",{count:e.poll.votes_count},e.poll.votes_count)),1)],64)),e.expiresAt!==null?(p(),b("span",Due,"  ·  ")):E("",!0)]),e.expiresAt!==null?(p(),b("span",Uue,[T(u,{scope:"global",keypath:e.expirationLabel},{default:X(()=>[T(c,{time:e.expiresAt,"auto-update":60,"now-threshold":0},null,8,["time"])]),_:1},8,["keypath"])])):E("",!0)]),e.showResults?E("",!0):(p(),b("button",{key:0,class:"btn button-default poll-vote-button",type:"button",disabled:e.isDisabled,onClick:t[0]||(t[0]=(...h)=>e.vote&&e.vote(...h))},w(e.$t("polls.vote")),9,jue))])],2)}const zue=ge(Eue,[["render",Bue]]);et.add(s2,c2,e2,r2,Ip);const que={name:"StatusBody",props:["compact","collapse","status","focused","noHeading","fullContent","singleLine","showingTall","expandingSubject","showingLongSubject","toggleShowingTall","toggleExpandingSubject","toggleShowingLongSubject"],data(){return{postLength:this.status.text.length,parseReadyDone:!1}},emits:["parseReady"],computed:{localCollapseSubjectDefault(){return this.mergedConfig.collapseMessageWithSubject},tallStatus(){return this.singleLine||this.compact?!1:this.status.raw_html.split(/<p|<br/).length+this.postLength/80>20},longSubject(){return this.status.summary.length>240},mightHideBecauseSubject(){return!!this.status.summary&&this.localCollapseSubjectDefault},mightHideBecauseTall(){return this.tallStatus&&!(this.status.summary&&this.localCollapseSubjectDefault)},hideSubjectStatus(){return this.mightHideBecauseSubject&&!this.expandingSubject},hideTallStatus(){return this.mightHideBecauseTall&&!this.showingTall},shouldShowToggle(){return this.mightHideBecauseSubject||this.mightHideBecauseTall},toggleButtonClasses(){return{"cw-status-hider":!this.showingMore&&this.mightHideBecauseSubject,"tall-status-hider":!this.showingMore&&this.mightHideBecauseTall,"status-unhider":this.showingMore}},toggleText(){return this.showingMore?this.mightHideBecauseSubject?this.$t("status.hide_content"):this.$t("general.show_less"):this.mightHideBecauseSubject?this.$t("status.show_content"):this.$t("general.show_more")},showingMore(){return this.mightHideBecauseTall&&this.showingTall||this.mightHideBecauseSubject&&this.expandingSubject},attachmentTypes(){return this.status.attachments.map(e=>Fa.fileType(e.mimetype))},collapsedStatus(){return this.status.raw_html.replace(/(\n|<br\s?\/?>)/g," ")},...bn(["mergedConfig"])},components:{RichContent:Mr},mounted(){this.status.attentions&&this.status.attentions.forEach(e=>{const{id:t}=e;this.$store.dispatch("fetchUserIfMissing",t)})},methods:{onParseReady(e){if(this.parseReadyDone)return;this.parseReadyDone=!0,this.$emit("parseReady",e);const{writtenMentions:t,invisibleMentions:n}=e;t.filter(s=>!s.notifying).forEach(s=>{const{content:r,url:o}=s,i=r.replace(/<[^>]+?>/gi,"");if(!i.startsWith("@"))return;const a=i.slice(1),c=o.replace(/^https?:\/\//,"").replace(/\/.+?$/,"");this.$store.dispatch("fetchUserIfMissing",`${a}@${c}`)}),this.postLength=n.reduce((s,r)=>s-r.textContent.length-1,this.postLength)},toggleShowMore(){this.mightHideBecauseTall?this.toggleShowingTall():this.mightHideBecauseSubject&&this.toggleExpandingSubject()},generateTagLink(e){return`/tag/${e}`}}},Hue={class:"body"},Vue=["aria-expanded"];function Wue(e,t,n,s,r,o){const i=O("RichContent");return p(),b("div",{class:he(["StatusBody",{"-compact":e.compact}])},[g("div",Hue,[e.status.summary_raw_html?(p(),b("div",{key:0,class:he(["summary-wrapper",{"-tall":e.longSubject&&!e.showingLongSubject}])},[T(i,{class:"media-body summary",faint:e.compact,html:e.status.summary_raw_html,emoji:e.status.emojis,"is-local":e.status.isLocal},null,8,["faint","html","emoji","is-local"]),at(g("button",{class:"button-unstyled -link tall-subject-hider",onClick:t[0]||(t[0]=Te((...a)=>e.toggleShowingLongSubject&&e.toggleShowingLongSubject(...a),["prevent"]))},w(e.$t("status.hide_full_subject")),513),[[Cr,e.longSubject&&e.showingLongSubject]]),at(g("button",{class:"button-unstyled -link tall-subject-hider",onClick:t[1]||(t[1]=Te((...a)=>e.toggleShowingLongSubject&&e.toggleShowingLongSubject(...a),["prevent"]))},w(e.$t("status.show_full_subject")),513),[[Cr,e.longSubject&&!e.showingLongSubject]])],2)):E("",!0),g("div",{class:he(["text-wrapper",{"-tall-status":e.hideTallStatus,"-expanded":e.showingMore}])},[!e.hideSubjectStatus&&!(e.singleLine&&e.status.summary_raw_html)?(p(),x(i,{key:0,class:he([{"-single-line":e.singleLine},"text media-body"]),html:e.status.raw_html,collapse:e.collapse,emoji:e.status.emojis,"handle-links":!0,faint:e.compact,greentext:e.mergedConfig.greentext,attentions:e.status.attentions,"is-local":e.status.is_local,onParseReady:e.onParseReady},null,8,["class","html","collapse","emoji","faint","greentext","attentions","is-local","onParseReady"])):E("",!0),at(g("div",{class:he(e.toggleButtonClasse
691s)},[g("button",{class:he(["btn button-default toggle-button",{"-focused":e.focused}]),"aria-expanded":e.showingMore,onClick:t[2]||(t[2]=Te((...a)=>e.toggleShowMore&&e.toggleShowMore(...a),["prevent"]))},w(e.toggleText),11,Vue)],2),[[Cr,e.shouldShowToggle]])],2)]),e.hideSubjectStatus?E("",!0):Ot(e.$slots,"default",{key:0})],2)}const Gue=ge(que,[["render",Wue]]),Kue={name:"LinkPreview",props:["card","size","nsfw"],data(){return{imageLoaded:!1}},computed:{useImage(){return this.card.image&&!this.censored&&this.size!=="hide"},censored(){return this.nsfw&&this.hideNsfwConfig},useDescription(){return this.card.description&&/\S/.test(this.card.description)},hideNsfwConfig(){return this.mergedConfig.hideNsfw},...bn(["mergedConfig"])},created(){if(this.useImage){const e=new Image;e.onload=()=>{this.imageLoaded=!0},e.src=this.card.image}}},xue=["href"],Yue={key:0,class:"card-image"},Xue=["src"],Jue={class:"card-content"},Zue={class:"card-host faint"},Que={key:0,class:"nsfw-alert alert warning"},ede={class:"card-title"},tde={key:0,class:"card-description"};function nde(e,t,n,s,r,o){return p(),b("div",null,[g("a",{class:"link-preview-card",href:e.card.url,target:"_blank",rel:"noopener"},[e.useImage&&e.imageLoaded?(p(),b("div",Yue,[g("img",{src:e.card.image},null,8,Xue)])):E("",!0),g("div",Jue,[g("span",Zue,[e.censored?(p(),b("span",Que,w(e.$t("status.nsfw")),1)):E("",!0),de(" "+w(e.card.provider_name),1)]),g("h4",ede,w(e.card.title),1),e.useDescription?(p(),b("p",tde,w(e.card.description),1)):E("",!0)])],8,xue)])}const sO=ge(Kue,[["render",nde]]);et.add(Zs,s2,c2,e2,r2,Ip);const rO=e=>e.charAt(0).toUpperCase()+e.slice(1),sde=e=>e.reduce((t,n)=>{const s=rO(n),r=`controlledToggle${s}`,o=`controlled${s}`,i=`uncontrolled${s}`;return t[n]=function(){return(this.$data[r]!==void 0||this.$props[r]!==void 0)&&this[r]?this[o]:this[i]},t},{}),$b=(e,t)=>{const n=rO(t),s=`controlledToggle${n}`,r=`uncontrolled${n}`;e[s]?e[s]():e[r]=!e[r]},rde={name:"StatusContent",props:["status","compact","collapse","focused","noHeading","fullContent","singleLine","controlledShowingTall","controlledExpandingSubject","controlledToggleShowingTall","controlledToggleExpandingSubject","controlledShowingLongSubject","controlledToggleShowingLongSubject"],emits:["parseReady","mediaplay","mediapause"],data(){return{uncontrolledShowingTall:this.fullContent||this.inConversation&&this.focused,uncontrolledShowingLongSubject:!1,uncontrolledExpandingSubject:!this.$store.getters.mergedConfig.collapseMessageWithSubject}},computed:{...sde(["showingTall","expandingSubject","showingLongSubject"]),statusCard(){return this.status.card?this.status.card.url===this.status.quote_url?null:this.status.card:null},hideAttachments(){return this.mergedConfig.hideAttachments&&!this.inConversation||this.mergedConfig.hideAttachmentsInConv&&this.inConversation},nsfwClickthrough(){return!(!this.status.nsfw||this.status.summary&&this.localCollapseSubjectDefault)},localCollapseSubjectDefault(){return this.mergedConfig.collapseMessageWithSubject},attachmentSize(){return this.compact?"small":this.mergedConfig.hideAttachments&&!this.inConversation||this.mergedConfig.hideAttachmentsInConv&&this.inConversation||this.status.attachments.length>this.maxThumbnails?"hide":"normal"},maxThumbnails(){return this.mergedConfig.maxThumbnails},...bn(["mergedConfig"]),...mn({currentUser:e=>e.users.currentUser})},components:{Attachment:Qp,Poll:zue,Gallery:em,LinkPreview:sO,StatusBody:Gue},methods:{toggleShowingTall(){$b(this,"showingTall")},toggleExpandingSubject(){$b(this,"expandingSubject")},toggleShowingLongSubject(){$b(this,"showingLongSubject")},setMedia(){const e=this.attachmentSize==="hide"?this.status.attachments:this.galleryAttachments;return()=>hs().setMedia(e)}}},ode={key:0},ide={key:1,class:"poll-icon"},ade={key:3,class:"link-preview media-body"};function lde(e,t,n,s,r,o){const i=O("Poll"),a=O("FAIcon"),c=O("gallery"),u=O("link-preview"),f=O("StatusBody");return p(),b("div",{class:he(["StatusContent",{"-compact":e.compact}])},[Ot(e.$slots,"header"),T(f,{status:e.status,compact:e.compact,"single-line":e.singleLine,"showing-tall":e.showingTall,"expanding-subject":e.expandingSubject,"showing-long-subject":e.showingLongSubject,"toggle-showing-tall":e.toggleShowingTall,"toggle-expanding-subject":e.toggleExpandingSubject,"toggle-showing-long-subject":e.toggleShowingLongSubject,collapse:e.collapse,onParseReady:t[2]||(t[2]=h=>e.$emit("parseReady",h))},{default:X(()=>[e.status.poll&&e.status.poll.options&&!e.compact?(p(),b("div",ode,[T(i,{"base-poll":e.status.poll,emoji:e.status.emojis},null,8,["base-poll","emoji"])])):e.status.poll&&e.status.poll.options&&e.compact?(p(),b("div",ide,[T(a,{icon:"poll-h",size:"2x"})])):E("",!0),e.status.attachments.length!==0?(p(),x(c,{key:2,class:"attachments media-body",compact:e.compact,nsfw:e.nsfwClickthrough,attachments:e.status.attachments,limit:e.compact?1:0,size:e.attachmentSize,onPlay:t[0]||(t[0]=h=>e.$emit("mediaplay",e.attachment.id)),onPause:t[1]||(t[1]=h=>e.$emit("mediapause",e.attachment.id))},null,8,["compact","nsfw","attachments","limit","size"])):E("",!0),e.statusCard&&!e.noHeading&&!e.compact?(p(),b("div",ade,[T(u,{card:e.status.card,size:e.attachmentSize,nsfw:e.nsfwClickthrough},null,8,["card","size","nsfw"])])):E("",!0)]),_:1},8,["status","compact","single-line","showing-tall","expanding-subject","showing-long-subject","toggle-showing-tall","toggle-expanding-subject","toggle-showing-long-subject","collapse"]),Ot(e.$slots,"footer")],2)}const Ka=ge(rde,[["render",lde]]),oO=e=>Object.keys(e).reduce((t,n)=>(t[Z.kebabCase(n)]=e[n],t),{}),Bh=e=>{const t=cde(e.emoji),n=e.store&&ude(e.store);return(s,r)=>{const o=s[0];return o===":"&&e.emoji?t(s,r):o==="@"&&n?n(s):[]}},cde=e=>(t,n)=>{const s=t.toLowerCase().substr(1);return e.map(r=>({...r,...n(r)})).filter(r=>r.names.concat(r.keywords).filter(o=>o.toLowerCase().match(s)).length).map(r=>{let o=0;
691return o+=Math.max(...r.names.map(i=>i.toLowerCase()===s?200:0),0),o+=r.imageUrl?100:0,o+=Math.max(...r.names.map(i=>i.toLowerCase().startsWith(s)?10:0),0),o-=r.displayText.length,r.score=o,r}).sort((r,o)=>{const i=r.displayText>o.displayText?.5:-.5;return o.score-r.score+i})},ude=({dispatch:e,state:t})=>{let n=[],s="",r=null,o=null;const i=c=>e("searchUsers",{query:c}),a=c=>(o&&o(),new Promise((u,f)=>{r=setTimeout(()=>{i(c).then(u).catch(f)},300),o=()=>{clearTimeout(r),u([])}}));return async c=>{const u=c.toLowerCase().substr(1);return s===u||(n=[],s=u,u.includes("@")||await a(u),n=t.users.users.filter(h=>h.screen_name&&h.name&&(h.screen_name.toLowerCase().startsWith(u)||h.name.toLowerCase().startsWith(u))).slice(0,20).sort((h,v)=>{let y=0,S=0;y+=h.screen_name.toLowerCase().startsWith(u)?2:0,S+=v.screen_name.toLowerCase().startsWith(u)?2:0,y+=h.name.toLowerCase().startsWith(u)?1:0,S+=v.name.toLowerCase().startsWith(u)?1:0;const C=(S-y)*10,I=h.name>v.name?1:-1,$=h.screen_name>v.screen_name?1:-1;return C+I+$}).map(h=>({user:h,displayText:h.screen_name_ui,detailText:h.name,imageUrl:h.profile_image_url_original,replacement:"@"+h.screen_name+" "}))||[]),n}},dde={props:{darkOverlay:{default:!0,type:Boolean},onCancel:{default:()=>{},type:Function}},computed:{mobileCenter(){return this.$store.getters.mergedConfig.modalMobileCenter}}},fde={class:"panel-heading dialog-modal-heading"},hde={class:"title"},pde={class:"panel-body dialog-modal-content"},mde={class:"dialog-modal-footer user-interactions panel-footer"};function gde(e,t,n,s,r,o){return p(),b("span",{class:he(["dialog-container",{"dark-overlay":e.darkOverlay,"-center-mobile":e.mobileCenter}]),onClick:t[1]||(t[1]=Te(i=>e.onCancel(),["self","stop"]))},[g("div",{class:"dialog-modal panel panel-default",onClick:t[0]||(t[0]=Te(()=>{},["stop"]))},[g("div",fde,[g("h1",hde,[Ot(e.$slots,"header")])]),g("div",pde,[Ot(e.$slots,"default")]),g("div",mde,[Ot(e.$slots,"footer")])])],2)}const wd=ge(dde,[["render",gde]]),vde={data(){return{showing:!1}},components:{DialogModal:wd},emits:["save","discard"],computed:{action(){return this.$store.getters.mergedConfig.autoSaveDraft?"save":this.$store.getters.mergedConfig.unsavedPostAction},shouldConfirm(){return this.action==="confirm"}},methods:{requestClose(){this.shouldConfirm?this.showing=!0:this.action==="save"?this.save():this.discard()},save(){this.$emit("save"),this.showing=!1},discard(){this.$emit("discard"),this.showing=!1},cancel(){this.showing=!1}}};function bde(e,t,n,s,r,o){const i=O("dialog-modal"),a=sc("body-scroll-lock");return p(),x(Yn,{to:"#modal"},[e.showing?at((p(),x(i,{key:0,class:"confirm-modal","on-cancel":e.cancel},{header:X(()=>[g("span",null,w(e.$t("post_status.close_confirm_title")),1)]),footer:X(()=>[g("button",{class:"btn button-default",onClick:t[0]||(t[0]=Te((...c)=>e.save&&e.save(...c),["prevent"]))},w(e.$t("post_status.close_confirm_save_button")),1),g("button",{class:"btn button-default",onClick:t[1]||(t[1]=Te((...c)=>e.discard&&e.discard(...c),["prevent"]))},w(e.$t("post_status.close_confirm_discard_button")),1),g("button",{class:"btn button-default",onClick:t[2]||(t[2]=Te((...c)=>e.cancel&&e.cancel(...c),["prevent"]))},w(e.$t("post_status.close_confirm_continue_composing_button")),1)]),default:X(()=>[de(" "+w(e.$t("post_status.close_confirm"))+" ",1)]),_:1},8,["on-cancel"])),[[a,!0]]):E("",!0)])}const yde=ge(vde,[["render",bde]]);et.add(Ap,Ip,iP,BJ,Xn,Zs,za,qa,bd);const _de=({user:e,attentions:t=[]},n)=>{let s=[...t];s.unshift(e),s=Z.uniqBy(s,"id"),s=Z.reject(s,{id:n.id});const r=Z.map(s,o=>`@${o.screen_name}`);return r.length>0?r.join(" ")+" ":""},Df=e=>Number(e.substring(0,e.length-2)),wde=({replyTo:e,profileMention:t,statusId:n})=>e?["reply",e]:t?["mention",t]:n?["edit",n]:["new",""],Sde={props:["statusId","statusText","statusIsSensitive","statusPoll","statusFiles","statusMediaDescriptions","statusScope","statusContentType","replyTo","repliedUser","attentions","copyMessageScope","subject","disableSubject","disableScopeSelector","disableVisibilitySelector","disableNotice","disableLockWarning","disablePolls","disableSensitivityCheckbox","disableSubmit","disablePreview","disableDraft","hideDraft","closeable","placeholder","maxHeight","postHandler","preserveFocus","autoFocus","fileLimit","submitOnEnter","emojiPickerPlacement","optimisticPosting","profileMention","draftId"],emits:["posted","draft
691-done","resize","mediaplay","mediapause","can-close","update"],components:{MediaUpload:iae,EmojiInput:YL,PollForm:Ble,ScopeSelector:pae,Checkbox:io,Select:Zi,Attachment:Qp,StatusContent:Ka,Gallery:em,DraftCloser:yde,Popover:Jn},mounted(){if(this.updateIdempotencyKey(),this.resize(this.$refs.textarea),this.replyTo){const e=this.$refs.textarea.value.length;this.$refs.textarea.setSelectionRange(e,e)}(this.replyTo||this.autoFocus)&&this.$refs.textarea.focus()},data(){var i;let t=this.$route.query.message||"";const{scopeCopy:n}=this.$store.getters.mergedConfig,[s,r]=wde({replyTo:this.replyTo,profileMention:this.profileMention&&((i=this.repliedUser)==null?void 0:i.id),statusId:this.statusId});let o=!this.disableDraft&&(this.draftId||s!=="new")?this.getDraft(s,r):null;if(!o){if(s==="reply"||s==="mention"){const f=this.$store.state.users.currentUser;t=_de({user:this.repliedUser,attentions:this.attentions},f)}const a=this.copyMessageScope&&n||this.copyMessageScope==="direct"?this.copyMessageScope:this.$store.state.users.currentUser.default_scope,{postContentType:c,sensitiveByDefault:u}=this.$store.getters.mergedConfig;if(o={type:s,refId:r,spoilerText:this.subject||"",status:t,nsfw:!!u,files:[],poll:{},hasPoll:!1,mediaDescriptions:{},visibility:a,contentType:c,quoting:!1},s==="edit"){const f=this.statusContentType||c;o={type:s,refId:r,spoilerText:this.subject||"",status:this.statusText||"",nsfw:this.statusIsSensitive||!!u,files:this.statusFiles||[],poll:this.statusPoll||{},hasPoll:!1,mediaDescriptions:this.statusMediaDescriptions||{},visibility:this.statusScope||a,contentType:f}}}return{randomSeed:Jp(),dropFiles:[],uploadingFiles:!1,error:null,posting:!1,highlighted:0,newStatus:o,caret:0,showDropIcon:"hide",dropStopTimeout:null,preview:null,previewLoading:!1,emojiInputShown:!1,idempotencyKey:"",saveInhibited:!0,saveable:!1}},computed:{users(){return this.$store.state.users.users},userDefaultScope(){return this.$store.state.users.currentUser.default_scope},showAllScopes(){return!this.mergedConfig.minimalScopesMode},hideExtraActions(){return this.disableDraft||this.hideDraft},emojiUserSuggestor(){return Bh({emoji:[...this.$store.getters.standardEmojiList,...this.$store.state.instance.customEmoji],store:this.$store})},emojiSuggestor(){return Bh({emoji:[...this.$store.getters.standardEmojiList,...this.$store.state.instance.customEmoji]})},emoji(){return this.$store.getters.standardEmojiList||[]},customEmoji(){return this.$store.state.instance.customEmoji||[]},statusLength(){return this.newStatus.status.length},spoilerTextLength(){return this.newStatus.spoilerText.length},statusLengthLimit(){return this.$store.state.instance.textlimit},hasStatusLengthLimit(){return this.statusLengthLimit>0},charactersLeft(){return this.statusLengthLimit-(this.statusLength+this.spoilerTextLength)},isOverLengthLimit(){return this.hasStatusLengthLimit&&this.charactersLeft<0},minimalScopesMode(){return this.$store.state.instance.minimalScopesMode},alwaysShowSubject(){return this.mergedConfig.alwaysShowSubjectInput},postFormats(){return this.$store.state.instance.postFormats||[]},safeDMEnabled(){return this.$store.state.instance.safeDM},pollsAvailable(){return this.$store.state.instance.pollsAvailable&&this.$store.state.instance.pollLimits.max_options>=2&&this.disablePolls!==!0},hideScopeNotice(){return this.disableNotice||this.$store.getters.mergedConfig.hideScopeNotice},pollContentError(){return this.pollFormVisible&&this.newStatus.poll&&this.newStatus.poll.error},showPreview(){return!this.disablePreview&&(!!this.preview||this.previewLoading)},emptyStatus(){return this.newStatus.status.trim()===""&&this.newStatus.files.length===0},uploadFileLimitReached(){return this.newStatus.files.length>=this.fileLimit},isEdit(){return typeof this.statusId<"u"&&this.statusId.trim()!==""},quotable(){if(!this.$store.state.instance.quotingAvailable||!this.replyTo)return!1;const e=this.$store.state.statuses.allStatusesObject[this.replyTo];return e?e.visibility==="public"||e.visibility==="unlisted"||e.visibility==="local"?!0:e.visibility==="private"?e.user.id===this.$store.state.users.currentUser.id:!1:!1},debouncedMaybeAutoSaveDraft(){return Z.debounce(this.maybeAutoSaveDraft,3e3)},pollFormVisible(){return this.newStatus.hasPoll},shouldAutoSaveDraft(){return this.$store.getters.mergedConfig.autoSaveDraft},autoSaveState(){return this.saveable?this.$t("post_status.auto_save_saving"):this.newStatus.id?this.$t("post_status.auto_save_saved"):this.$t("post_status.auto_save_nothing_new")},safeToSaveDraft(){var e;return(this.newStatus.status||this.newStatus.spoilerText||((e=this.newStatus.files)==null?void 0:e.length)||this.newStatus.hasPoll)&&this.saveable},hasEmptyDraft(){var e;return this.newStatus.id&&!(this.newStatus.status||this.newStatus.spoilerText||(e=this.newStatus.files)!=null&&e.length||this.newStatus.hasPoll)},...bn(["mergedConfig"]),...sn(Xe,{mobileLayout:e=>e.mobileLayout})},watch:{newStatus:{deep:!0,handler(){this.statusChanged()}},saveable(e){e?this.addBeforeUnloadListener():this.removeBeforeUnloadListener()}},beforeUnmount(){this.maybeAutoSaveDraft(),this.removeBeforeUnloadListener()},methods:{...mp(hs,["increment"]),statusChanged(){this.autoPreview(),this.updateIdempotencyKey(),this.debouncedMaybeAutoSaveDraft(),this.saveable=!0,this.saveInhibited=!1},clearStatus(){const e=this.newStatus;this.saveInhibited=!0,this.newStatus={status:"",spoilerText:"",files:[],visibility:e.visibility,contentType:e.contentType,poll:{},hasPoll:!1,mediaDescriptions:{},quoting:!1},this.$refs.mediaUpload&&this.$refs.mediaUpload.clearFile(),this.clearPollForm(
691),this.preserveFocus&&this.$nextTick(()=>{this.$refs.textarea.focus()});const t=this.$el.querySelector("textarea");t.style.height="auto",t.style.height=void 0,this.error=null,this.preview&&this.previewStatus(),this.saveable=!1},async postStatus(e,t){if(this.posting&&!this.optimisticPosting||this.disableSubmit||this.emojiInputShown||(this.submitOnEnter&&(e.stopPropagation(),e.preventDefault()),this.optimisticPosting&&(this.emptyStatus||this.isOverLengthLimit)))return;if(this.emptyStatus){this.error=this.$t("post_status.empty_status_error");return}const n=this.newStatus.hasPoll?kle(this.newStatus.poll):{};if(this.pollContentError){this.error=this.pollContentError;return}this.posting=!0;try{await this.setAllMediaDescriptions()}catch{this.error=this.$t("post_status.media_description_error"),this.posting=!1;return}const s=t.quoting?"quoteId":"inReplyToStatusId",r={status:t.status,spoilerText:t.spoilerText||null,visibility:t.visibility,sensitive:t.nsfw,media:t.files,store:this.$store,[s]:this.replyTo,contentType:t.contentType,poll:n,idempotencyKey:this.idempotencyKey};(this.postHandler?this.postHandler:Du.postStatus)(r).then(i=>{i.error?this.error=i.error:(this.abandonDraft(),this.clearStatus(),this.$emit("posted",i)),this.posting=!1})},previewStatus(){if(this.emptyStatus&&this.newStatus.spoilerText.trim()===""){this.preview={error:this.$t("post_status.preview_empty")},this.previewLoading=!1;return}const e=this.newStatus;this.previewLoading=!0;const t=e.quoting?"quoteId":"inReplyToStatusId";Du.postStatus({status:e.status,spoilerText:e.spoilerText||null,visibility:e.visibility,sensitive:e.nsfw,media:[],store:this.$store,[t]:this.replyTo,contentType:e.contentType,poll:{},preview:!0}).then(n=>{this.previewLoading&&(n.error?this.preview={error:n.error}:this.preview=n)}).catch(n=>{this.preview={error:n}}).finally(()=>{this.previewLoading=!1})},debouncePreviewStatus:Z.debounce(function(){this.previewStatus()},500),autoPreview(){this.preview&&(this.previewLoading=!0,this.debouncePreviewStatus())},closePreview(){this.preview=null,this.previewLoading=!1},togglePreview(){this.showPreview?this.closePreview():this.previewStatus()},addMediaFile(e){this.newStatus.files.push(e),this.$emit("resize",{delayed:!0})},removeMediaFile(e){const t=this.newStatus.files.indexOf(e);this.newStatus.files.splice(t,1),this.$emit("resize")},editAttachment(e,t){this.newStatus.mediaDescriptions[e.id]=t},shiftUpMediaFile(e){const{files:t}=this.newStatus,n=this.newStatus.files.indexOf(e);t.splice(n,1),t.splice(n-1,0,e)},shiftDnMediaFile(e){const{files:t}=this.newStatus,n=this.newStatus.files.indexOf(e);t.splice(n,1),t.splice(n+1,0,e)},uploadFailed(e,t){t=t||{},this.error=this.$t("upload.error.base")+" "+this.$t("upload.error."+e,t)},startedUploadingFiles(){this.uploadingFiles=!0},finishedUploadingFiles(){this.$emit("resize"),this.uploadingFiles=!1},type(e){return Fa.fileType(e.mimetype)},paste(e){this.autoPreview(),this.resize(e),e.clipboardData.files.length>0&&(e.preventDefault(),this.dropFiles=[e.clipboardData.files[0]])},fileDrop(e){e.dataTransfer&&e.dataTransfer.types.includes("Files")&&(e.preventDefault(),this.dropFiles=e.dataTransfer.files,clearTimeout(this.dropStopTimeout),this.showDropIcon="hide")},fileDragStop(){clearTimeout(this.dropStopTimeout),this.showDropIcon="fade",this.dropStopTimeout=setTimeout(()=>this.showDropIcon="hide",500)},fileDrag(e){e.dataTransfer.dropEffect=this.uploadFileLimitReached?"none":"copy",e.dataTransfer&&e.dataTransfer.types.includes("Files")&&(clearTimeout(this.dropStopTimeout),this.showDropIcon="show")},onEmojiInputInput(){this.$nextTick(()=>{this.resize(this.$refs.textarea)})},resize(e){const t=e.target||e;if(!(t instanceof window.Element))return;if(t.value===""){t.style.height=null,this.$emit("resize");return}const n=this.$refs.form,s=this.$refs.bottom,r=window.getComputedStyle(s)["padding-bottom"],o=Df(r),i=this.$el.closest(".column.-scrollable")||this.$el.closest(".post-form-modal-view")||window,a=window.getComputedStyle(t)["padding-top"],c=window.getComputedStyle(t)["padding-bottom"],u=Df(a),f=Df(c),h=u+f,v=Df(t.style.height),y=i===window?i.scrollY:i.scrollTop,S=i===window?i.innerHeight:i.offsetHeight,C=y+S;t.style.height="auto";const I=Math.floor(t.scrollHeight-h);let $=this.maxHeight?Math.min(I,this.maxHeight):I;Math.abs($-v)<=1&&($=v),t.style.height=`${$}px`,this.$emit("resize",$);const k=s.offsetHeight+q2(s,i).top+o,P=C<k,A=S<n.offsetHeight,R=k-C,N=P&&!(A&&this.$refs.textarea.selectionStart!==this.$refs.textarea.value.length)?R:0,Y=Math.round(y+N);i===window?i.scroll(0,Y):i.scrollTop=Y},clearError(){this.error=null},changeVis(e){this.newStatus.visibility=e}
691,togglePollForm(){this.newStatus.hasPoll=!this.newStatus.hasPoll},setPoll(e){this.newStatus.poll=e},clearPollForm(){this.$refs.pollForm&&this.$refs.pollForm.clear()},dismissScopeNotice(){this.$store.dispatch("setOption",{name:"hideScopeNotice",value:!0})},setMediaDescription(e){const t=this.newStatus.mediaDescriptions[e];if(!(!t||t.trim()===""))return Du.setMediaDescription({store:this.$store,id:e,description:t})},setAllMediaDescriptions(){const e=this.newStatus.files.map(t=>t.id);return Promise.all(e.map(t=>this.setMediaDescription(t)))},handleEmojiInputShow(e){this.emojiInputShown=e},updateIdempotencyKey(){this.idempotencyKey=Date.now().toString()},openProfileTab(){Xe().openSettingsModalTab("profile")},propsToNative(e){return oO(e)},saveDraft(){if(!this.disableDraft&&!this.saveInhibited){if(this.safeToSaveDraft)return this.$store.dispatch("addOrSaveDraft",{draft:this.newStatus}).then(e=>{this.newStatus.id!==e&&(this.newStatus.id=e),this.saveable=!1,this.shouldAutoSaveDraft||(this.clearStatus(),this.$emit("draft-done"))});if(this.hasEmptyDraft)return this.abandonDraft().then(()=>{this.saveable=!1,this.shouldAutoSaveDraft||(this.clearStatus(),this.$emit("draft-done"))})}return Promise.resolve()},maybeAutoSaveDraft(){this.shouldAutoSaveDraft&&this.saveDraft(!1)},abandonDraft(){return this.$store.dispatch("abandonDraft",{id:this.newStatus.id})},getDraft(e,t){const n=this.$store.state.drafts.drafts[this.draftId];if(this.draftId&&n)return n;{const s=this.$store.getters.draftsByTypeAndRefId(e,t);if(s.length)return s[0]}},requestClose(){this.saveable?this.$refs.draftCloser.requestClose():this.$emit("can-close")},saveAndCloseDraft(){this.saveDraft().then(()=>{this.$emit("can-close")})},discardAndCloseDraft(){this.abandonDraft().then(()=>{this.$emit("can-close")})},addBeforeUnloadListener(){this._beforeUnloadListener||(this._beforeUnloadListener=()=>{this.saveDraft()}),window.addEventListener("beforeunload",this._beforeUnloadListener)},removeBeforeUnloadListener(){this._beforeUnloadListener&&window.removeEventListener("beforeunload",this._beforeUnloadListener)}}},kde={ref:"form",class:"post-status-form"},$de={class:"form-group"},Cde={key:1,class:"visibility-notice notice-dismissible"},Tde=["title"],Ade={key:2,class:"visibility-notice notice-dismissible"},Ede=["title"],Ide={key:3,class:"visibility-notice notice-dismissible"},Pde=["title"],Lde={key:4,class:"visibility-notice"},Ode={key:0},Rde={key:1},Mde={key:5,class:"visibility-notice edit-warning"},Nde={key:6,class:"preview-heading faint"},Fde={class:"preview-spinner"},Dde={key:0,role:"radiogroup",class:"btn-group reply-or-quote-selector"},Ude=["id","aria-labelledby","aria-checked"],jde=["id","aria-labelledby","aria-checked"],Bde={key:7,class:"preview-container"},zde={key:0,class:"preview-status"},qde={key:1,class:"preview-status preview-error"},Hde={class:"input inputs-wrapper"},Vde=["placeholder","disabled"],Wde=["placeholder","disabled"],Gde={key:8,class:"visibility-tray"},Kde={key:1,class:"text-format"},xde=["value"],Yde={key:2,class:"text-format"},Xde={class:"only-format"},Jde={key:1,class:"auto-save-status"},Zde={ref:"bottom",class:"form-bottom"},Qde={class:"form-bottom-left"},efe=["title"],tfe={class:"btn-group post-button-group"},nfe=["disabled"],sfe={class:"dropdown-menu",role:"menu"},rfe=["disabled","onClick"],ofe={key:2,class:"alert error"},ife={key:4,class:"upload_settings"};function afe(e,t,n,s,r,o){const i=O("i18n-t"),a=O("FAIcon"),c=O("StatusContent"),u=O("EmojiInput"),f=O("scope-selector"),h=O("Select"),v=O("poll-form"),y=O("media-upload"),S=O("Popover"),C=O("gallery"),I=O("Checkbox"),$=O("DraftCloser");return p(),b("div",kde,[g("form",{autocomplete:"off",onSubmit:t[27]||(t[27]=Te(()=>{},["prevent"])),onDragover:t[28]||(t[28]=Te((...k)=>e.fileDrag&&e.fileDrag(...k),["prevent"]))},[g("div",$de,[!e.$store.state.users.currentUser.locked&&e.newStatus.visibility=="private"&&!e.disableLockWarning?(p(),x(i,{key:0,keypath:"post_status.account_not_locked_warning",tag:"p",class:"visibility-notice",scope:"global"},{default:X(()=>[g("button",{class:"button-unstyled -link",onClick:t[0]||(t[0]=(...k)=>e.openProfileTab&&e.openProfileTab(...k))},w(e.$t("post_status.account_not_locked_warning_link")),1)]),_:1})):E("",!0),!e.hideScopeNotice&&e.newStatus.visibility==="public"?(p(),b("p",Cde,[g("span",null,w(e.$t("post_status.scope_notice.public")),1),g("a",{class:"fa-scale-110 fa-old-pa
691dding dismiss",title:e.$t("post_status.scope_notice_dismiss"),role:"button",tabindex:"0",onClick:t[1]||(t[1]=Te(k=>e.dismissScopeNotice(),["prevent"]))},[T(a,{icon:"times"})],8,Tde)])):!e.hideScopeNotice&&e.newStatus.visibility==="unlisted"?(p(),b("p",Ade,[g("span",null,w(e.$t("post_status.scope_notice.unlisted")),1),g("a",{class:"fa-scale-110 fa-old-padding dismiss",title:e.$t("post_status.scope_notice_dismiss"),role:"button",tabindex:"0",onClick:t[2]||(t[2]=Te(k=>e.dismissScopeNotice(),["prevent"]))},[T(a,{icon:"times"})],8,Ede)])):!e.hideScopeNotice&&e.newStatus.visibility==="private"&&e.$store.state.users.currentUser.locked?(p(),b("p",Ide,[g("span",null,w(e.$t("post_status.scope_notice.private")),1),g("a",{class:"fa-scale-110 fa-old-padding dismiss",title:e.$t("post_status.scope_notice_dismiss"),role:"button",tabindex:"0",onClick:t[3]||(t[3]=Te(k=>e.dismissScopeNotice(),["prevent"]))},[T(a,{icon:"times"})],8,Pde)])):e.newStatus.visibility==="direct"?(p(),b("p",Lde,[e.safeDMEnabled?(p(),b("span",Ode,w(e.$t("post_status.direct_warning_to_first_only")),1)):(p(),b("span",Rde,w(e.$t("post_status.direct_warning_to_all")),1))])):E("",!0),e.isEdit?(p(),b("div",Mde,[g("p",null,w(e.$t("post_status.edit_remote_warning")),1),g("p",null,w(e.$t("post_status.edit_unsupported_warning")),1)])):E("",!0),e.disablePreview?E("",!0):(p(),b("div",Nde,[g("a",{class:"preview-toggle faint",onClick:t[4]||(t[4]=Te((...k)=>e.togglePreview&&e.togglePreview(...k),["stop","prevent"]))},[de(w(e.$t("post_status.preview"))+" ",1),T(a,{icon:e.showPreview?"chevron-left":"chevron-right"},null,8,["icon"])]),at(g("div",Fde,[T(a,{class:"fa-old-padding",spin:"",icon:"circle-notch"})],512),[[Cr,e.previewLoading]]),e.quotable?(p(),b("div",Dde,[g("button",{id:`reply-or-quote-option-${e.randomSeed}-reply`,class:he(["btn button-default reply-or-quote-option",{toggled:!e.newStatus.quoting}]),tabindex:"0",role:"radio","aria-labelledby":`reply-or-quote-option-${e.randomSeed}-reply`,"aria-checked":!e.newStatus.quoting,onClick:t[5]||(t[5]=k=>e.newStatus.quoting=!1)},w(e.$t("post_status.reply_option")),11,Ude),g("button",{id:`reply-or-quote-option-${e.randomSeed}-quote`,class:he(["btn button-default reply-or-quote-option",{toggled:e.newStatus.quoting}]),tabindex:"0",role:"radio","aria-labelledby":`reply-or-quote-option-${e.randomSeed}-quote`,"aria-checked":e.newStatus.quoting,onClick:t[6]||(t[6]=k=>e.newStatus.quoting=!0)},w(e.$t("post_status.quote_option")),11,jde)])):E("",!0)])),e.showPreview?(p(),b("div",Bde,[e.preview?e.preview.error?(p(),b("div",qde,w(e.preview.error),1)):(p(),x(c,{key:2,status:e.preview,class:"preview-status"},null,8,["status"])):(p(),b("div",zde,w(e.$t("general.loading")),1))])):E("",!0),g("div",Hde,[!e.disableSubject&&(e.newStatus.spoilerText||e.alwaysShowSubject)?(p(),x(u,{key:0,modelValue:e.newStatus.spoilerText,"onUpdate:modelValue":t[8]||(t[8]=k=>e.newStatus.spoilerText=k),"enable-emoji-picker":"",suggest:e.emojiSuggestor,class:"input form-control subject-input unstyled"},{default:X(k=>[at(g("input",An({"onUpdate:modelValue":t[7]||(t[7]=P=>e.newStatus.spoilerText=P),type:"text",placeholder:e.$t("post_status.content_warning"),disabled:e.posting&&!e.optimisticPosting},e.propsToNative(k),{size:"1",class:"input form-post-subject unstyled"}),null,16,Vde),[[Nt,e.newStatus.spoilerText]])]),_:1},8,["modelValue","suggest"])):E("",!0),T(u,{ref:"emoji-input",modelValue:e.newStatus.status,"onUpdate:modelValue":t[16]||(t[16]=k=>e.newStatus.status=k),suggest:e.emojiUserSuggestor,placement:e.emojiPickerPlacement,class:"input form-control main-input unstyled","enable-sticker-picker":"","enable-emoji-picker":"","newline-on-ctrl-enter":e.submitOnEnter,onInput:e.onEmojiInputInput,onStickerUploaded:e.addMediaFile,onStickerUploadFailed:e.uploadFailed,onShown:e.handleEmojiInputShow},{default:X(k=>[at(g("textarea",An({ref:"textarea","onUpdate:modelValue":t[9]||(t[9]=P=>e.newStatus.status=P),placeholder:e.placeholder||e.$t("post_status.default"),rows:"1",cols:"1",disabled:e.posting&&!e.optimisticPosting,class:["input form-post-body",{"scrollable-form":!!e.maxHeight}]},e.propsToNative(k),{onKeydown:[t[10]||(t[10]=zo(Te(P=>e.submitOnEnter&&e.postStatus(P,e.newStatus),["exact"]),["enter"])),t[11]||(t[11]=zo(Te(P=>e.postStatus(P,e.newStatus),["meta"]),["enter"])),t[12]||(t[12]=zo(Te(P=>!e.submitOnEnter&&e.postStatus(P,e.newStatus),["ctrl"]),["enter"]))],onInput:t[13]||(t[13]=(...P)=>e.resize&&e.resize(...P)),onCompositionupdate:t[14]||(t[14]=(...P)=>e.resize&&e.resize(...P)),onPaste:t[15]||(t[15]=(...P)=>e.paste&&e.paste(...P))}),null,16,Wde),[[Nt,e.newStatus.status]]),e.hasStatusLengthLimit?(p(),b("p",{key:0,class:he(["character-counter faint",{error:e.isOverLengthLimit}])},w(e.charactersLeft),3)):E("",!0)]),_:1},8,["modelValue","suggest","placement","newline-on-ctrl-enter","onInput","onStickerUploaded","onStickerUploadFailed","onShown"])]),e.disableScopeSelector?E("",!0):(p(),b("div",Gde,[e.disableVisibilitySelector?E("",!0):(p(),x(f,{key:0,"show-all":e.showAllScopes,"user-default":e.userDefaultScope,"original-scope":e.copyMessageScope,"initial-scope":e.newStatus.visibility,"on-scope-change":e.changeVis},null,8,["show-all","user-default","original-scope","initial-scope","on-scope-change"])),e.postFormats.length>1?(p(),b("div",Kde,[T(h,{modelValue:e.newStatus.contentType,"onUpdate:modelValue":t[17]||(t[17]=k=>e.newStatus.contentType=k),class:"input form-control unstyled",attrs:{"aria-label":e.$t("post_status.content_type_selection")},unstyled:"true"},{default:X(()=>[(p(!0),b(Se,null,We(e.postFormats,k=>(p(),b("option",{key:k,value:k},w(e.$t(`post_status.content_type["${k}"]`)),9,xde))),128))]),_:1},8,["modelValue","attrs"])])):E("",!0),e.postFormats.length===1&&e.postFormats[0]!=="text/plain"?(p(),b("div",Yde,[g("span",Xde,w(e.$t(`post_status.content_type["${e.postFormats[0]}"]`)),1)])):E("",!0)]))]),e.pollsAvailable?(p(),x(v,{key:0,ref:"pollForm",visible:e.pollFormVisible,params:e.newStatus.poll},null,8,["visible","params"])):E("",!0),!e.disableDraft&&e.shouldAutoSaveDraft?(p(),b("span",Jde,w(e.autoSaveState),1)):E("",!0),g("div",Zde,[g("div",Qde,[T(y,{ref:"mediaUpload",class:"media-upload-icon","drop-files":e.dropFiles,disabled:e.uploadFileLimitReached,onUploading:e.startedUploadingFiles,onUploaded:e.addMediaFile,onUploadFailed:e.uploadFailed,onAllUploaded:e.finishedUploadingFiles},null,8,["drop-files","disabled","onUploading","onUploaded","onUploadFailed","onAllUploaded"]),e.pollsAvailable?(p(),b("button",{key:0,class:he(["poll-icon button-unstyled",{selected:e.pollFormVisible}]),title:e.$t("polls.add_poll"),onClick:t[18]||(t[18]=(...k)=>e.togglePollForm&&e.togglePollForm(...k))},[T(a,{icon:"poll-h"})],10,efe)):E("",!0)]),g("div",tfe,[g("button",{class:"btn button-default post-button",disabled:e.isOverLengthLimit||e.posting||e.uploadingFiles||e.disableSubmit,onClick:t[19]||(t[19]=Te(k=>e.postStatus(k,e.newStatus),["stop","prevent"]))},[e.posting?(p(),b(Se,{key:0},[de(w(e.$t("post_status.posting")),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("post_status.post")),1)],64))],8,nfe),e.hideExtraActions?E("",!0):(p(),x(S,{key:0,class:"more-post-actions","normal-button":!0,trigger:"click",placement:"bottom",offset:{y:5},"trigger-attrs":{"aria-label":e.$t("post_status.more_post_actions")}},{trigger:X(()=>
691[T(a,{class:"fa-scale-110 fa-old-padding",icon:"chevron-down"})]),content:X(({close:k})=>[g("div",sfe,[g("div",{class:he(["menu-item dropdown-item",{disabled:!e.safeToSaveDraft}])},[!e.hideDraft||!e.disableDraft?(p(),b("button",{key:0,class:"main-button",role:"menu",disabled:!e.safeToSaveDraft,onClick:[t[20]||(t[20]=Te((...P)=>e.saveDraft&&e.saveDraft(...P),["prevent"])),k]},[e.closeable?(p(),b(Se,{key:0},[de(w(e.$t("post_status.save_to_drafts_and_close_button")),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("post_status.save_to_drafts_button")),1)],64))],8,rfe)):E("",!0)],2)])]),_:1},8,["trigger-attrs"]))])],512),at(g("div",{style:hn({animation:e.showDropIcon==="show"?"fade-in 0.25s":"fade-out 0.5s"}),class:"drop-indicator",onDragleave:t[21]||(t[21]=(...k)=>e.fileDragStop&&e.fileDragStop(...k)),onDrop:t[22]||(t[22]=Te((...k)=>e.fileDrop&&e.fileDrop(...k),["stop"]))},[T(a,{icon:e.uploadFileLimitReached?"ban":"upload"},null,8,["icon"])],36),[[Cr,e.showDropIcon!=="hide"]]),e.error?(p(),b("div",ofe,[de(" Error: "+w(e.error)+" ",1),g("button",{class:"button-unstyled",onClick:t[23]||(t[23]=(...k)=>e.clearError&&e.clearError(...k))},[T(a,{class:"fa-scale-110 fa-old-padding",icon:"times"})])])):E("",!0),e.newStatus.files&&e.newStatus.files.length>0?(p(),x(C,{key:3,class:"attachments",grid:!0,nsfw:!1,attachments:e.newStatus.files,descriptions:e.newStatus.mediaDescriptions,"set-media":()=>e.setMedia(),editable:!0,"edit-attachment":e.editAttachment,"remove-attachment":e.removeMediaFile,"shift-up-attachment":e.newStatus.files.length>1&&e.shiftUpMediaFile,"shift-dn-attachment":e.newStatus.files.length>1&&e.shiftDnMediaFile,onPlay:t[24]||(t[24]=k=>e.$emit("mediaplay",e.attachment.id)),onPause:t[25]||(t[25]=k=>e.$emit("mediapause",e.attachment.id))},null,8,["attachments","descriptions","set-media","edit-attachment","remove-attachment","shift-up-attachment","shift-dn-attachment"])):E("",!0),e.newStatus.files.length>0&&!e.disableSensitivityCheckbox?(p(),b("div",ife,[T(I,{modelValue:e.newStatus.nsfw,"onUpdate:modelValue":t[26]||(t[26]=k=>e.newStatus.nsfw=k)},{default:X(()=>[de(w(e.$t("post_status.attachments_sensitive")),1)]),_:1},8,["modelValue"])])):E("",!0)],32),T($,{ref:"draftCloser",onSave:e.saveAndCloseDraft,onDiscard:e.discardAndCloseDraft},null,8,["onSave","onDiscard"])],512)}const lc=ge(Sde,[["render",afe]]);var Cb,H6;function iO(){if(H6)return Cb;H6=1;var e=Wa(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return Cb=t,Cb}var Tb,V6;function tm(){if(V6)return Tb;V6=1;var e=iO();function t(n,s,r){s=="__proto__"&&e?e(n,s,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[s]=r}return Tb=t,Tb}var Ab,W6;function aO(){if(W6)return Ab;W6=1;var e=tm(),t=yd();function n(s,r,o){(o!==void 0&&!t(s[r],o)||o===void 0&&!(r in s))&&e(s,r,o)}return Ab=n,Ab}var mu={exports:{}};mu.exports;var G6;function lfe(){return G6||(G6=1,function(e,t){var n=oo(),s=t&&!t.nodeType&&t,r=s&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===s,i=o?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;function c(u,f){if(f)return u.slice();var h=u.length,v=a?a(h):new u.constructor(h);return u.copy(v),v}e.exports=c}(mu,mu.exports)),mu.exports}var Eb,K6;function cfe(){if(K6)return Eb;K6=1;var e=LP();function t(n){var s=new n.constructor(n.byteLength);return new e(s).set(new e(n)),s}return Eb=t,Eb}var Ib,x6;function ufe(){if(x6)return Ib;x6=1;var e=cfe();function t(n,s){var r=s?e(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}return Ib=t,Ib}var Pb,Y6;function dfe(){if(Y6)return Pb;Y6=1;function e(t,n){var s=-1,r=t.length;for(n||(n=Array(r));++s<r;)n[s]=t[s];return n}return Pb=e,Pb}var Lb,X6;function ffe(){if(X6)return Lb;X6=1;var e=Ki(),t=Object.create,n=function(){function s(){}return function(r){if(!e(r))return{};if(t)return t(r);s.prototype=r;var o=new s;return s.prototype=void 0,o}}();return Lb=n,Lb}var Ob,J6;function lO(){if(J6)return Ob;J6=1;var e=AP(),t=e(Object.getPrototypeOf,Object);return Ob=t,Ob}var Rb,Z6;function hfe(){if(Z6)return Rb;Z6=1;var e=ffe(),t=lO(),n=Up();function s(r){return typeof r.constructor=="function"&&!n(r)?e(t(r)):{}}
691return Rb=s,Rb}var Mb,Q6;function pfe(){if(Q6)return Mb;Q6=1;var e=Va(),t=Ha();function n(s){return t(s)&&e(s)}return Mb=n,Mb}var Nb,eT;function mfe(){if(eT)return Nb;eT=1;var e=ac(),t=lO(),n=Ha(),s="[object Object]",r=Function.prototype,o=Object.prototype,i=r.toString,a=o.hasOwnProperty,c=i.call(Object);function u(f){if(!n(f)||e(f)!=s)return!1;var h=t(f);if(h===null)return!0;var v=a.call(h,"constructor")&&h.constructor;return typeof v=="function"&&v instanceof v&&i.call(v)==c}return Nb=u,Nb}var Fb,tT;function cO(){if(tT)return Fb;tT=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Fb=e,Fb}var Db,nT;function gfe(){if(nT)return Db;nT=1;var e=tm(),t=yd(),n=Object.prototype,s=n.hasOwnProperty;function r(o,i,a){var c=o[i];(!(s.call(o,i)&&t(c,a))||a===void 0&&!(i in o))&&e(o,i,a)}return Db=r,Db}var Ub,sT;function vfe(){if(sT)return Ub;sT=1;var e=gfe(),t=tm();function n(s,r,o,i){var a=!o;o||(o={});for(var c=-1,u=r.length;++c<u;){var f=r[c],h=i?i(o[f],s[f],f,o,s):void 0;h===void 0&&(h=s[f]),a?t(o,f,h):e(o,f,h)}return o}return Ub=n,Ub}var jb,rT;function bfe(){if(rT)return jb;rT=1;function e(t){var n=[];if(t!=null)for(var s in Object(t))n.push(s);return n}return jb=e,jb}var Bb,oT;function yfe(){if(oT)return Bb;oT=1;var e=Ki(),t=Up(),n=bfe(),s=Object.prototype,r=s.hasOwnProperty;function o(i){if(!e(i))return n(i);var a=t(i),c=[];for(var u in i)u=="constructor"&&(a||!r.call(i,u))||c.push(u);return c}return Bb=o,Bb}var zb,iT;function uO(){if(iT)return zb;iT=1;var e=TP(),t=yfe(),n=Va();function s(r){return n(r)?e(r,!0):t(r)}return zb=s,zb}var qb,aT;function _fe(){if(aT)return qb;aT=1;var e=vfe(),t=uO();function n(s){return e(s,t(s))}return qb=n,qb}var Hb,lT;function wfe(){if(lT)return Hb;lT=1;var e=aO(),t=lfe(),n=ufe(),s=dfe(),r=hfe(),o=Np(),i=Qs(),a=pfe(),c=Fp(),u=jp(),f=Ki(),h=mfe(),v=Dp(),y=cO(),S=_fe();function C(I,$,k,P,A,R,B){var N=y(I,k),Y=y($,k),H=B.get(Y);if(H){e(I,k,H);return}var D=R?R(N,Y,k+"",I,$,B):void 0,oe=D===void 0;if(oe){var le=i(Y),Pe=!le&&c(Y),qe=!le&&!Pe&&v(Y);D=Y,le||Pe||qe?i(N)?D=N:a(N)?D=s(N):Pe?(oe=!1,D=t(Y,!0)):qe?(oe=!1,D=n(Y,!0)):D=[]:h(Y)||o(Y)?(D=N,o(N)?D=S(N):(!f(N)||u(N))&&(D=r(Y))):oe=!1}oe&&(B.set(Y,D),A(D,Y,P,R,B),B.delete(Y)),e(I,k,D)}return Hb=C,Hb}var Vb,cT;function Sfe(){if(cT)return Vb;cT=1;var e=v2(),t=aO(),n=$P(),s=wfe(),r=Ki(),o=uO(),i=cO();function a(c,u,f,h,v){c!==u&&n(u,function(y,S){if(v||(v=new e),r(y))s(c,u,S,f,a,h,v);else{var C=h?h(i(c,S),y,S+"",c,u,v):void 0;C===void 0&&(C=y),t(c,S,C)}},o)}return Vb=a,Vb}var Wb,uT;function kfe(){if(uT)return Wb;uT=1;function e(t,n,s){switch(s.length){case 0:return t.call(n);case 1:return t.call(n,s[0]);case 2:return t.call(n,s[0],s[1]);case 3:return t.call(n,s[0],s[1],s[2])}return t.apply(n,s)}return Wb=e,Wb}var Gb,dT;function $fe(){if(dT)return Gb;dT=1;var e=kfe(),t=Math.max;function n(s,r,o){return r=t(r===void 0?s.length-1:r,0),function(){for(var i=arguments,a=-1,c=t(i.length-r,0),u=Array(c);++a<c;)u[a]=i[r+a];a=-1;for(var f=Array(r+1);++a<r;)f[a]=i[a];return f[r]=o(u),e(s,this,f)}}return Gb=n,Gb}var Kb,fT;function Cfe(){if(fT)return Kb;fT=1;function e(t){return function(){return t}}return Kb=e,Kb}var xb,hT;function Tfe(){if(hT)return xb;hT=1;var e=Cfe(),t=iO(),n=w2(),s=t?function(r,o){return t(r,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return xb=s,xb}var Yb,pT;function Afe(){if(pT)return Yb;pT=1;var e=800,t=16,n=Date.now;function s(r){var o=0,i=0;return function(){var a=n(),c=t-(a-i);if(i=a,c>0){if(++o>=e)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}return Yb=s,Yb}var Xb,mT;function Efe(){if(mT)return Xb;mT=1;var e=Tfe(),t=Afe(),n=t(e);return Xb=n,Xb}var Jb,gT;function Ife(){if(gT)return Jb;gT=1;var e=w2(),t=$fe(),n=Efe();function s(r,o){return n(t(r,o,e),r+"")}return Jb=s,Jb}var Zb,vT;function Pfe(){if(vT)return Zb;vT=1;var e=yd(),t=Va(),n=d2(),s=Ki();function r(o,i,a){if(!s(a))return!1;var c=typeof i;return(c=="number"?t(a)&&n(i,a.length):c=="string"&&i in a)?e(a[i],o):!1}return Zb=r,Zb}var Qb,bT;function Lfe(){if(bT)return Qb;bT=1;var e=Ife(),t=Pfe();function n(s){return e(function(r,o){var i=-1,a=o.length,c=a>1?o[a-1]:void 0,u=a>2?o[2]:void 0;for(c=s.length>3&&typeof c=="function"?(a--,c):void 0,u&&t(o[0],o[1],u)&&(c=a<3?void 0:c,a=1),r=Object(r);++i<a;){var f=o[i];f&&s(r,f,i,c)}return r})}return Qb=n,Qb}var e0,yT;function Ofe(){if(yT)return e0;yT=1;var e=Sfe(),t=Lfe(),n=t(function(s,r,o){e(s,r,o)});return e0=n,e0}var Rfe=Ofe();const Mfe=bs(Rfe);var t0,_T;function Nfe(){if(_T)return t0;_T=1;var e=b2();function t(n,s){return e(n,s)}return t0=t,t0}var Ffe=Nfe();const Dfe=bs(Ffe);var n0,wT;function Ufe(){if(wT)return n0;wT=1;function e(t){return function(n){return t==null?void 0:t[n]}}return n0=e,n0}var s0,ST;function jfe(){if(ST)return s0;ST=1;var e=Ufe(),t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},n=e(t);return s0=n,s0}var r0,kT;function Bfe(){if(kT)return r0;kT=1;var e=FP(),t=jfe(),n=/&(?:amp|lt|gt|quot|#39);/g,s=RegExp(n.source);function r(o){return o=e(o),o&&s.test(o)?o.replace(n,t):o}return r0=r,r0}var zfe=Bfe();const o0=bs(zfe);et.add(hZ);const qfe={components:{Checkbox:io},props:{name:{required:!0,type:String},label:{required:!0,type:String},unstyled:{required:!1,type:Boolean},modelValue:{required:!1,type:String,default:void 0},fallback:{required:!1,type:String,default:void 0},disabled:{required:!1,type:Boolean,default:!1},showOptionalCheckbox:{required:!1,type:Boolean,default:!0},hideOptionalCheckbox:{required:!1,type:Boolean,default:!1},compact:{required:!1,type:Boolean}},emits:["update:modelValue"],computed:{present(){return typeof this.modelValue<"u"},validColor(){return yp(this.modelValue||this.fallback)},transparentColor(){return this.modelValue==="transparent"},computedColor(){return this.modelValue&&(this.modelValue.startsWith("--")||this.modelValue.startsWith("$"))}},methods:{updateValue:Z.throttle(function(e){this.$emit("update:modelValue",e)},100)}},Hfe=["for"],Vfe=["id","value","disabled"],Wfe={key:1,class:"transparentIndicator"},Gfe={key:3,class:"invalidIndicator"},Kfe={class:"nativeColor"},xfe=["id","value","disabled"];function Yfe(e,t,n,s,r,o){const i=O("Checkbox"),a=O("FAIcon");return p(),b("div",{class:he(["color-input style-control",{disabled:!o.present||n.disabled,"-compact":n.compact}])},[g("label",{for:n.name,class:he(["label",{faint:!o.present||n.disabled}])},w(n.label),11,Hfe),typeof n.fallback<"u"&&n.showOptionalCheckbox&&!n.hideOptionalCheckbox?(p(),x(i,{key:0,"model-value":o.present,disabled:n.disabled,class:"opt","onUpdate:modelValue":t[0]||(t[0]=c=>
691o.updateValue(typeof n.modelValue>"u"?n.fallback:void 0))},null,8,["model-value","disabled"])):E("",!0),g("div",{class:he(["input color-input-field",{disabled:!o.present||n.disabled,unstyled:n.unstyled}])},[g("input",{id:n.name+"-t",class:he(["textColor unstyled",{disabled:!o.present||n.disabled}]),type:"text",value:n.modelValue??n.fallback,disabled:!o.present||n.disabled,onInput:t[1]||(t[1]=c=>o.updateValue(c.target.value))},null,42,Vfe),o.validColor?(p(),b("div",{key:0,class:"validIndicator",style:hn({backgroundColor:n.modelValue||n.fallback})},null,4)):o.transparentColor?(p(),b("div",Wfe)):o.computedColor?(p(),b("div",{key:2,class:"computedIndicator",style:hn({backgroundColor:n.fallback})},null,4)):(p(),b("div",Gfe)),g("label",Kfe,[T(a,{icon:"eye-dropper"}),g("input",{id:n.name,class:he(["unstyled",{disabled:!o.present||n.disabled}]),type:"color",value:n.modelValue||n.fallback,disabled:!o.present||n.disabled,onInput:t[2]||(t[2]=c=>o.updateValue(c.target.value))},null,42,xfe)])],2)],2)}const Xfe=ge(qfe,[["render",Yfe]]),Jfe={props:["user"],computed:{subscribeUrl(){const e=new URL(this.user.statusnet_profile_url);return`${e.protocol}//${e.host}/main/ostatus`}}},Zfe={class:"remote-follow"},Qfe=["action"],ehe=["value"],the={click:"submit",class:"button-default remote-button"};function nhe(e,t,n,s,r,o){return p(),b("div",Zfe,[g("form",{method:"POST",action:e.subscribeUrl},[g("input",{type:"hidden",name:"nickname",value:e.user.screen_name},null,8,ehe),t[0]||(t[0]=g("input",{type:"hidden",name:"profile",value:""},null,-1)),g("button",the,w(e.$t("user_card.remote_follow")),1)],8,Qfe)])}const dO=ge(Jfe,[["render",nhe]]),she={props:{disabled:{type:Boolean},click:{type:Function,default:()=>Promise.resolve()}},data(){return{progress:!1}},methods:{onClick(){this.progress=!0,this.click().then(()=>{this.progress=!1})}}},rhe=["disabled"];function ohe(e,t,n,s,r,o){return p(),b("button",{disabled:r.progress||n.disabled,onClick:t[0]||(t[0]=(...i)=>o.onClick&&o.onClick(...i))},[r.progress&&e.$slots.progress?Ot(e.$slots,"progress",{key:0}):Ot(e.$slots,"default",{key:1})],8,rhe)}const fO=ge(she,[["render",ohe]]),ihe={components:{DialogModal:wd},props:{title:{type:String},cancelText:{type:String},confirmText:{type:String}},emits:["cancelled","accepted"],computed:{},methods:{onCancel(){this.$emit("cancelled")},onAccept(){this.$emit("accepted")}}},ahe=["textContent"],lhe=["textContent"],che=["textContent"];function uhe(e,t,n,s,r,o){const i=O("DialogModal"),a=sc("body-scroll-lock");return at((p(),x(i,{class:"confirm-modal",onCancel:e.onCancel},{header:X(()=>[g("span",{textContent:w(e.title)},null,8,ahe)]),footer:X(()=>[Ot(e.$slots,"footerLeft"),g("button",{class:"btn button-default",onClick:t[0]||(t[0]=Te((...c)=>e.onAccept&&e.onAccept(...c),["prevent"])),textContent:w(e.confirmText)},null,8,lhe),g("button",{class:"btn button-default",onClick:t[1]||(t[1]=Te((...c)=>e.onCancel&&e.onCancel(...c),["prevent"])),textContent:w(e.cancelText)},null,8,che)]),default:X(()=>[Ot(e.$slots,"default")]),_:3},8,["onCancel"])),[[a,!0]])}const Nr=ge(ihe,[["render",uhe]]),hO=(e,t,n)=>new Promise((s,r)=>{setTimeout(()=>{n.state.api.backendInteractor.fetchUserRelationship({id:t}).then(o=>(n.commit("updateUserRelationship",[o]),o)).then(o=>s([o.following,o.requested,o.locked,e])).catch(o=>r(o))},500)}).then(([s,r,o,i])=>{!s&&!(o&&r)&&i<=3&&hO(++i,t,n)}),dhe=(e,t)=>new Promise(n=>{t.state.api.backendInteractor.followUser({id:e}).then(s=>{if(t.commit("updateUserRelationship",[s]),s.following||s.locked&&s.requested){n();return}return hO(1,s,t).then(()=>{n()})})}),fhe=(e,t)=>new Promise(n=>{t.state.api.backendInteractor.unfollowUser({id:e}).then(s=>{t.commit("updateUserRelationship",[s]),n({updated:s})})}),hhe={props:["relationship","user","labelFollowing","buttonClass"],components:{ConfirmModal:Nr},data(){return{inProgress:!1,showingConfirmUnfollow:!1}},computed:{shouldConfirmUnfollow(){return this.$store.getters.mergedConfig.modalOnUnfollow},isPressed(){return this.inProgress||this.relationship.following},title(){return this.inProgress||this.relationship.following?this.$t("user_card.follow_unfollow"):this.relationship.requested?this.$t("user_card.follow_cancel"):this.$t("user_card.follow")},label(){return this.inProgress?this.$t("user_card.follow_progress"):this.relationship.following?this.labelFollowing||this.$t("user_card.following"):this.relationship.requested?this.$t("user_card.follow_sent"):this.$t("user_card.follow")},disabled(){return this.inProgress||this.user.deactivated}},methods:{showConfirmUnfollow(){this.showingConfirmUnfollow=!0},hideConfirmUnfollow(){this.showingConfirmUnfollow=!1},onClick(){this.relationship.following||this.relationship.requested?this.unfollow():this.follow()},follow(){this.inProgress=!0,dhe(this.relationship.id,this.$store).then(()=>{this.inProgress=!1})},unfollow(){this.shouldConfirmUnfollow?this.showConfirmUnfollow():this.doUnfollow()},doUnfollow(){const e=this.$store;this.inProgress=!0,fhe(this.relationship.id,e).then(()=>{this.inProgress=!1,e.commit("removeStatus",{timeline:"friends",userId:this.relationship.id})}),this.hideConfirmUnfollow()}}},phe=["disabled","title"],mhe=["textContent"];function ghe(e,t,n,s,r,o){const i=O("i18n-t"),a=O("confirm-modal");return p(),b("button",{class:he(["btn button-default follow-button",{toggled:e.isPressed}]),disabled:e.disabled,title:e.title,onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c))},[de(w(e.label)+" ",1),(p(),x(Yn,{to:"#modal"},[e.showingConfirmUnfollow?(p(),x(a,{key:0,title:e.$t("user_card.unfollow_confirm_title"),"confirm-text":e.$t("user_card.unfollow_confirm_accept_button"),"cancel-text":e.$t("user_card.unfollow_confirm_cancel_button"),onAccepted:e.doUnfollow,onCancelled:e.hideConfirmUnfollow},{default:X(()=>[T(i,{scope:"global",keypath:"user_card.unfollow_confirm",tag:"span"},{user:X(()=>[g("span",{textContent:w(e.user.screen_name_ui)},null,8,mhe)]),_:1})]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))],10,phe)}const pO=ge(hhe,[["render",ghe]]);et.add(za);const vhe="mrf_tag:media-force-nsfw",bhe="mrf_tag:media-strip",yhe="mrf_tag:force-unlisted",_he="mrf_tag:disable-remote-subscription",whe="mrf_tag:disable-any-subscription",She="mrf_tag:sandbox",khe="mrf_tag:quarantine",$he={props:["user"],data(){return{tags:{FORCE_NSFW:vhe,STRIP_MEDIA:bhe,FORCE_UNLISTED:yhe,DISABLE_REMOTE_SUBSCRIPTION:_he,DISABLE_ANY_SUBSCRIPTION:whe,SANDBOX:She,QUARANTINE:khe},showDeleteUserDialog:!1,toggled:!1}},components:{DialogModal:wd,Popover:Jn},computed:{tagsSet(){return new Set(this.user.tags)},canGrantRole(){return this.user.is_local&&!this.user.deactivated&&this.$store.state.users.currentUser.role==="admin"},canChangeActivationState(){return this.privileged("users_manage_activation_state")},canDeleteAccount(){return this.privileged("users_delete")},canUseTagPolicy(){return this.$store.state.instance.tagPolicyAvailable&&this.privileged("users_manage_tags")}},methods:{hasTag(e){return this.tagsSet.has(e)},privileged(e){return this.$store.state.users.currentUser.privileges.includes(e)},toggleTag(e){const t=this.$store;this.tagsSet.has(e)?t.state.api.backendInteractor.untagUser({user:this.user,tag:e}).then(n=>
691{n.ok&&t.commit("untagUser",{user:this.user,tag:e})}):t.state.api.backendInteractor.tagUser({user:this.user,tag:e}).then(n=>{n.ok&&t.commit("tagUser",{user:this.user,tag:e})})},toggleRight(e){const t=this.$store;this.user.rights[e]?t.state.api.backendInteractor.deleteRight({user:this.user,right:e}).then(n=>{n.ok&&t.commit("updateRight",{user:this.user,right:e,value:!1})}):t.state.api.backendInteractor.addRight({user:this.user,right:e}).then(n=>{n.ok&&t.commit("updateRight",{user:this.user,right:e,value:!0})})},toggleActivationStatus(){this.$store.dispatch("toggleActivationStatus",{user:this.user})},deleteUserDialog(e){this.showDeleteUserDialog=e},deleteUser(){const e=this.$store,t=this.user,{id:n,name:s}=t;e.state.api.backendInteractor.deleteUser({user:t}).then(()=>{this.$store.dispatch("markStatusesAsDeleted",i=>t.id===i.user.id);const r=this.$route.name==="external-user-profile"||this.$route.name==="user-profile",o=this.$route.params.name===s||this.$route.params.id===n;r&&o&&window.history.back()})},setToggled(e){this.toggled=e}}},Che={class:"dropdown-menu"},The={class:"menu-item dropdown-item -icon-space"},Ahe={class:"menu-item dropdown-item -icon-space"},Ehe={key:0,role:"separator",class:"dropdown-divider"},Ihe={key:1,class:"menu-item dropdown-item -icon-space"},Phe={key:2,class:"menu-item dropdown-item -icon-space"},Lhe={class:"menu-item dropdown-item -icon"},Ohe={class:"menu-item dropdown-item -icon"},Rhe={class:"menu-item dropdown-item -icon"},Mhe={class:"menu-item dropdown-item -icon"},Nhe={key:0,class:"menu-item dropdown-item -icon"},Fhe={key:1,class:"menu-item dropdown-item -icon"},Dhe={key:2,class:"menu-item dropdown-item -icon"};function Uhe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Popover"),c=O("DialogModal");return p(),b("div",null,[T(a,{trigger:"click",class:"moderation-tools-popover",placement:"bottom",offset:{y:5},onShow:t[11]||(t[11]=u=>e.setToggled(!0)),onClose:t[12]||(t[12]=u=>e.setToggled(!1))},{content:X(()=>[g("div",Che,[e.canGrantRole?(p(),b(Se,{key:0},[g("div",The,[g("button",{class:"main-button",onClick:t[0]||(t[0]=u=>e.toggleRight("admin"))},w(e.$t(e.user.rights.admin?"user_card.admin_menu.revoke_admin":"user_card.admin_menu.grant_admin")),1)]),g("div",Ahe,[g("button",{class:"main-button",onClick:t[1]||(t[1]=u=>e.toggleRight("moderator"))},w(e.$t(e.user.rights.moderator?"user_card.admin_menu.revoke_moderator":"user_card.admin_menu.grant_moderator")),1)]),e.canChangeActivationState||e.canDeleteAccount?(p(),b("div",Ehe)):E("",!0)],64)):E("",!0),e.canChangeActivationState?(p(),b("div",Ihe,[g("button",{class:"main-button",onClick:t[2]||(t[2]=u=>e.toggleActivationStatus())},w(e.$t(e.user.deactivated?"user_card.admin_menu.activate_account":"user_card.admin_menu.deactivate_account")),1)])):E("",!0),e.canDeleteAccount?(p(),b("div",Phe,[g("button",{class:"main-button",onClick:t[3]||(t[3]=u=>e.deleteUserDialog(!0))},w(e.$t("user_card.admin_menu.delete_account")),1)])):E("",!0),e.canUseTagPolicy?(p(),b(Se,{key:3},[t[15]||(t[15]=g("div",{role:"separator",class:"dropdown-divider"},null,-1)),g("div",Lhe,[g("button",{class:"main-button",onClick:t[4]||(t[4]=u=>e.toggleTag(e.tags.FORCE_NSFW))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.FORCE_NSFW)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.force_nsfw")),1)])]),g("div",Ohe,[g("button",{class:"main-button",onClick:t[5]||(t[5]=u=>e.toggleTag(e.tags.STRIP_MEDIA))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.STRIP_MEDIA)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.strip_media")),1)])]),g("div",Rhe,[g("button",{class:"main-button",onClick:t[6]||(t[6]=u=>e.toggleTag(e.tags.FORCE_UNLISTED))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.FORCE_UNLISTED)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.force_unlisted")),1)])]),g("div",Mhe,[g("button",{class:"main-button",onClick:t[7]||(t[7]=u=>e.toggleTag(e.tags.SANDBOX))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.SANDBOX)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.sandbox")),1)])]),e.user.is_local?(p(),b("div",Nhe,[g("button",{class:"main-button",onClick:t[8]||(t[8]=u=>e.toggleTag(e.tags.DISABLE_REMOTE_SUBSCRIPTION))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.DISABLE_REMOTE_SUBSCRIPTION)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.disable_remote_subscription")),1)])])):E("",!0),e.user.is_local?(p(),b("div",Fhe,[g("button",{class:"main-button",onClick:t[9]||(t[9]=u=>e.toggleTag(e.tags.DISABLE_ANY_SUBSCRIPTION))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.DISABLE_ANY_SUBSCRIPTION)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.disable_any_subscription")),1)])])):E("",!0),e.user.is_local?(p(),b("div",Dhe,[g("button",{class:"main-button",onClick:t[10
691]||(t[10]=u=>e.toggleTag(e.tags.QUARANTINE))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.QUARANTINE)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.quarantine")),1)])])):E("",!0)],64)):E("",!0)])]),trigger:X(()=>[g("button",{class:he(["btn button-default btn-block moderation-tools-button",{toggled:e.toggled}])},[de(w(e.$t("user_card.admin_menu.moderation"))+" ",1),T(i,{icon:"chevron-down"})],2)]),_:1}),(p(),x(Yn,{to:"#modal"},[e.showDeleteUserDialog?(p(),x(c,{key:0,"on-cancel":e.deleteUserDialog.bind(this,!1)},{header:X(()=>[de(w(e.$t("user_card.admin_menu.delete_user")),1)]),footer:X(()=>[g("button",{class:"btn button-default",onClick:t[13]||(t[13]=u=>e.deleteUserDialog(!1))},w(e.$t("general.cancel")),1),g("button",{class:"btn button-default danger",onClick:t[14]||(t[14]=u=>e.deleteUser())},w(e.$t("user_card.admin_menu.delete_user")),1)]),default:X(()=>[g("p",null,w(e.$t("user_card.admin_menu.delete_user_confirmation")),1)]),_:1},8,["on-cancel"])):E("",!0)]))])}const jhe=ge($he,[["render",Uhe]]);et.add(bd);const Bhe={props:["user"],data(){return{}},components:{DialogModal:wd,Popover:Jn},created(){this.$store.dispatch("fetchUserInLists",this.user.id)},computed:{...sn(Fn,{allLists:e=>e.allLists}),inListsSet(){return new Set(this.user.inLists.map(e=>e.id))},lists(){return this.user.inLists?this.allLists.map(e=>({...e,inList:this.inListsSet.has(e.id)})):[]},triggerAttrs(){return{class:"menu-item dropdown-item -has-submenu"}}},methods:{toggleList(e){this.inListsSet.has(e)?Fn().removeListAccount({accountId:this.user.id,listId:e}).then(t=>{t.ok&&this.$store.dispatch("fetchUserInLists",this.user.id)}):Fn().addListAccount({accountId:this.user.id,listId:e}).then(t=>{t.ok&&this.$store.dispatch("fetchUserInLists",this.user.id)})},toggleRight(e){const t=this.$store;this.user.rights[e]?t.state.api.backendInteractor.deleteRight({user:this.user,right:e}).then(n=>{n.ok&&t.commit("updateRight",{user:this.user,right:e,value:!1})}):t.state.api.backendInteractor.addRight({user:this.user,right:e}).then(n=>{n.ok&&t.commit("updateRight",{user:this.user,right:e,value:!0})})},toggleActivationStatus(){this.$store.dispatch("toggleActivationStatus",{user:this.user})},deleteUserDialog(e){this.showDeleteUserDialog=e},deleteUser(){const e=this.$store,t=this.user,{id:n,name:s}=t;e.state.api.backendInteractor.deleteUser({user:t}).then(()=>{this.$store.dispatch("markStatusesAsDeleted",i=>t.id===i.user.id);const r=this.$route.name==="external-user-profile"||this.$route.name==="user-profile",o=this.$route.params.name===s||this.$route.params.id===n;r&&o&&window.history.back()})},setToggled(e){this.toggled=e}}},zhe={class:"UserListMenu"},qhe={class:"dropdown-menu"},Hhe=["onClick"],Vhe={class:"main-button"};function Whe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Popover");return p(),b("div",zhe,[T(a,{trigger:"hover",placement:"right","trigger-attrs":e.triggerAttrs,"remove-padding":""},{content:X(()=>[g("div",qhe,[(p(!0),b(Se,null,We(e.lists,c=>(p(),b("div",{key:c.id,class:"menu-item dropdown-item -icon"},[g("button",{class:"main-button",onClick:u=>e.toggleList(c.id)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":c.inList}])},null,2),de(" "+w(c.title),1)],8,Hhe)]))),128))])]),trigger:X(()=>[g("span",Vhe,[de(w(e.$t("lists.manage_lists"))+" ",1),T(i,{class:"chevron-icon",size:"lg",icon:"chevron-right"})])]),_:1},8,["trigger-attrs"])])}const Ghe=ge(Bhe,[["render",Whe]]),Khe={data(){const e=this.isMute?this.$store.getters.mergedConfig.onMuteDefaultAction:this.$store.getters.mergedConfig.onBlockDefaultAction,t=e==="ask",n={};if(t||e==="forever")n.expiration=14,n.expirationUnit="d",e==="forever"&&(n.forever=!0);else{const s=e.replace(/[0-9,.]+/,""),r=e.replace(/[^0-9,.]+/,"");n.expiration=r,n.expirationUnit=s}return{showing:!1,forever:!1,dontAskAgain:!1,...n}},components:{ConfirmModal:Nr,Select:Zi,Checkbox:io},props:{isMute:Boolean,user:Object},computed:{shouldConfirm(){return this.isMute?this.$store.getters.mergedConfig.onMuteDefaultAction==="ask":this.$store.getters.mergedConfig.onBlockDefaultAction==="ask"},expiryString(){return this.expiration.toString()+this.expirationUnit},expirySeconds(){return Math.floor(QL(this.expiryString)/1e3)},requestBody(){const e={id:this.user.id};
691return this.forever||(e.expiresIn=this.expirySeconds),e}},watch:{expiration(e){e<=0&&(this.expiration=1)}},methods:{optionallyPrompt(){this.shouldConfirm?this.showing=!0:this.accept()},accept(){this.isMute?(this.$store.dispatch("muteUser",this.requestBody),this.dontAskAgain&&this.$store.dispatch("setOption",{name:"onMuteDefaultAction",value:this.expiryString})):(this.$store.dispatch("blockUser",this.requestBody),this.dontAskAgain&&this.$store.dispatch("setOption",{name:"onBlockDefaultAction",value:this.expiryString})),this.showing=!1},cancel(){this.showing=!1}}},xhe=["disabled"],Yhe={key:"s",value:"s"},Xhe={key:"m",value:"m"},Jhe={key:"h",value:"h"},Zhe={key:"d",value:"d"},Qhe={class:"footer-left-checkbox"};function epe(e,t,n,s,r,o){const i=O("Select"),a=O("Checkbox"),c=O("confirm-modal");return e.showing?(p(),x(c,{key:0,class:"UserTimedFilterModal",title:e.$t(e.isMute?e.$t("user_card.mute"):e.$t("user_card.block")),"confirm-text":e.$t(e.isMute?"user_card.mute_confirm_accept_button":"user_card.block_confirm_accept_button"),"cancel-text":e.$t(e.isMute?"user_card.mute_confirm_cancel_button":"user_card.block_confirm_cancel_button"),onAccepted:e.accept,onCancelled:e.cancel},{footerLeft:X(()=>[g("div",Qhe,[T(a,{id:"dontAskAgain",modelValue:e.dontAskAgain,"onUpdate:modelValue":t[3]||(t[3]=u=>e.dontAskAgain=u),name:"dontAskAgain",class:"input-dont-ask-again"},{default:X(()=>[de(w(e.$t(e.isMute?"user_card.dont_ask_again_mute":"user_card.dont_ask_again_block")),1)]),_:1},8,["modelValue"])])]),default:X(()=>[g("p",null,w(e.$t(e.isMute?"user_card.expire_mute_message":"user_card.expire_block_message",[e.user.screen_name])),1),g("p",null,[de(w(e.$t("user_card.expire_in"))+" ",1),at(g("input",{id:"userFilterExpires","onUpdate:modelValue":t[0]||(t[0]=u=>e.expiration=u),class:he(["input input-expire-in",{disabled:e.forever}]),disabled:e.forever,min:"1",type:"number"},null,10,xhe),[[Nt,e.expiration]]),T(i,{id:"userFilterExpiresUnit",modelValue:e.expirationUnit,"onUpdate:modelValue":t[1]||(t[1]=u=>e.expirationUnit=u),class:"input unit-input unstyled",disabled:e.forever},{default:X(()=>[g("option",Yhe,w(e.$t("time.unit.seconds_suffix")),1),g("option",Xhe,w(e.$t("time.unit.minutes_suffix")),1),g("option",Jhe,w(e.$t("time.unit.hours_suffix")),1),g("option",Zhe,w(e.$t("time.unit.days_suffix")),1)]),_:1},8,["modelValue","disabled"]),de(" "+w(e.$t("user_card.mute_or"))+" ",1),T(a,{id:"forever",modelValue:e.forever,"onUpdate:modelValue":t[2]||(t[2]=u=>e.forever=u),name:"forever",class:"input-forever"},{default:X(()=>[de(w(e.$t("user_card.mute_block_never")),1)]),_:1},8,["modelValue"])])]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)}const H2=ge(Khe,[["render",epe]]);et.add(fZ);const tpe={props:["user","relationship"],data(){return{showingConfirmBlock:!1,showingConfirmRemoveFollower:!1}},components:{ProgressButton:fO,Popover:Jn,UserListMenu:Ghe,ConfirmModal:Nr,UserTimedFilterModal:H2},methods:{showConfirmRemoveUserFromFollowers(){this.showingConfirmRemoveFollower=!0},hideConfirmRemoveUserFromFollowers(){this.showingConfirmRemoveFollower=!1},hideConfirmBlock(){this.showingConfirmBlock=!1},showRepeats(){this.$store.dispatch("showReblogs",this.user.id)},hideRepeats(){this.$store.dispatch("hideReblogs",this.user.id)},blockUser(){this.$refs.timedBlockDialog?this.$refs.timedBlockDialog.optionallyPrompt():this.shouldConfirmBlock?this.showingConfirmBlock=!0:this.doBlockUser()},doBlockUser(){this.$store.dispatch("blockUser",{id:this.user.id}),this.hideConfirmBlock()},unblockUser(){this.$store.dispatch("unblockUser",this.user.id)},removeUserFromFollowers(){this.shouldConfirmRemoveUserFromFollowers?this.showConfirmRemoveUserFromFollowers():this.doRemoveUserFromFollowers()},doRemoveUserFromFollowers(){this.$store.dispatch("removeUserFromFollowers",this.user.id),this.hideConfirmRemoveUserFromFollowers()},reportUser(){qi().openUserReportingModal({userId:this.user.id})},openChat(){this.$router.push({name:"chat",params:{username:this.$store.state.users.currentUser.screen_name,recipient_id:this.user.id}})}},computed:{shouldConfirmBlock(){return this.$store.getters.mergedConfig.modalOnBlock},shouldConfirmRemoveUserFromFollowers(){return this.$store.getters.mergedConfig.modalOnRemoveUserFromFollowers},...mn({blockExpirationSupported:e=>e.instance.blockExpiration,pleromaChatMessagesAvailable:e=>e.instance.pleromaChatMessagesAvailable})}},npe={class:"AccountActions"},spe={class:"dropdown-menu"},rpe={key:0,class:"menu-item dropdown-item"},ope={key:1,class:"menu-item dropdown-item"},ipe={key:1,class:"menu-item dropdown-item"},ape={class:"menu-item dropdown-item"},lpe={class:"menu-item dropdown-item"},cpe={key:2,class:"menu-item dropdown-item"},upe={class:"button-unstyled ellipsis-button"},dpe=["textContent"],fpe=["textContent"];function hpe(e,t,n,s,r,o){const i=O("UserListMenu"),a=O("FAIcon"),c=O("Popover"),u=O("i18n-t"),f=O("confirm-modal"),h=O("UserTimedFilterModal");return p(),b("div",npe,[T(c,{trigger:"click",placement:"bottom","remove-padding":""},{content:X(()=>[g("div",spe,[e.relationship.following?(p(),b(Se,{key:0},[e.relationship.showing_reblogs?(p(),b("div",rpe,[g("button",{class:"main-button",onClick:t[0]||(t[0]=(...v)=>e.hideRepeats&&e.hideRepeats(...v))},w(e.$t("user_card.hide_repeats")),1)])):E("",!0),e.relationship.showing_reblogs?E("",!0):(p(),b("div",ope,[g("button",{class:"main-button",onClick:t[1]||(t[1]=(...v)=>e.showRepeats&&e.showRepeats(...v))}
691,w(e.$t("user_card.show_repeats")),1)])),t[7]||(t[7]=g("div",{role:"separator",class:"dropdown-divider"},null,-1))],64)):E("",!0),T(i,{user:e.user},null,8,["user"]),e.relationship.followed_by?(p(),b("div",ipe,[g("button",{class:"main-button",onClick:t[2]||(t[2]=(...v)=>e.removeUserFromFollowers&&e.removeUserFromFollowers(...v))},w(e.$t("user_card.remove_follower")),1)])):E("",!0),g("div",ape,[e.relationship.blocking?(p(),b("button",{key:0,class:"main-button",onClick:t[3]||(t[3]=(...v)=>e.unblockUser&&e.unblockUser(...v))},w(e.$t("user_card.unblock")),1)):(p(),b("button",{key:1,class:"main-button",onClick:t[4]||(t[4]=(...v)=>e.blockUser&&e.blockUser(...v))},w(e.$t("user_card.block")),1))]),g("div",lpe,[g("button",{class:"main-button",onClick:t[5]||(t[5]=(...v)=>e.reportUser&&e.reportUser(...v))},w(e.$t("user_card.report")),1)]),e.pleromaChatMessagesAvailable?(p(),b("div",cpe,[g("button",{class:"main-button",onClick:t[6]||(t[6]=(...v)=>e.openChat&&e.openChat(...v))},w(e.$t("user_card.message")),1)])):E("",!0)])]),trigger:X(()=>[g("button",upe,[T(a,{class:"icon",icon:"ellipsis-v"})])]),_:1}),(p(),x(Yn,{to:"#modal"},[e.showingConfirmBlock&&!e.blockExpirationSupported?(p(),x(f,{key:0,ref:"blockDialog",title:e.$t("user_card.block_confirm_title"),"confirm-text":e.$t("user_card.block_confirm_accept_button"),"cancel-text":e.$t("user_card.block_confirm_cancel_button"),onAccepted:e.doBlockUser,onCancelled:e.hideConfirmBlock},{default:X(()=>[T(u,{keypath:"user_card.block_confirm",tag:"span",scope:"global"},{user:X(()=>[g("span",{textContent:w(e.user.screen_name_ui)},null,8,dpe)]),_:1})]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)])),(p(),x(Yn,{to:"#modal"},[e.showingConfirmRemoveFollower?(p(),x(f,{key:0,title:e.$t("user_card.remove_follower_confirm_title"),"confirm-text":e.$t("user_card.remove_follower_confirm_accept_button"),"cancel-text":e.$t("user_card.remove_follower_confirm_cancel_button"),onAccepted:e.doRemoveUserFromFollowers,onCancelled:e.hideConfirmRemoveUserFromFollowers},{default:X(()=>[T(u,{keypath:"user_card.remove_follower_confirm",tag:"span",scope:"global"},{user:X(()=>[g("span",{textContent:w(e.user.screen_name_ui)},null,8,fpe)]),_:1})]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0),e.blockExpirationSupported?(p(),x(h,{key:1,ref:"timedBlockDialog","is-mute":!1,user:e.user},null,8,["user"])):E("",!0)]))])}const ppe=ge(tpe,[["render",hpe]]);et.add(Zs);const mpe={},gpe={class:"panel-loading"},vpe={class:"loading-text"};function bpe(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",gpe,[g("span",vpe,[T(i,{icon:"circle-notch",spin:"",size:"3x"}),de(" "+w(e.$t("general.loading")),1)])])}const mO=ge(mpe,[["render",bpe]]),ype={props:{user:Object,relationship:Object,editable:Boolean},components:{PanelLoading:mO},data(){return{localNote:this.relationship.note,editing:!1,frozen:!1}},watch:{relationship(){this.localNote=this.relationship.note}},methods:{startEditing(){this.localNote=this.relationship.note,this.editing=!0},finalizeEditing(){this.frozen=!0,this.$store.dispatch("editUserNote",{id:this.user.id,comment:this.localNote}).then(()=>{this.frozen=!1,this.editing=!1}).catch(()=>{this.frozen=!1,this.editing=!1})}}},_pe=["placeholder"],wpe={key:0,class:"overlay"};function Spe(e,t,n,s,r,o){const i=O("PanelLoading");return p(),b("div",{class:he(["user-note",{"-frozen":e.frozen}])},[g("h4",null,w(e.$t("user_card.personal_note")),1),at(g("textarea",{"onUpdate:modelValue":t[0]||(t[0]=a=>e.localNote=a),class:he(["input note-text",{unstyled:!e.editing}]),rows:"1",placeholder:e.$t("user_card.note_blank_click"),onFocus:t[1]||(t[1]=(...a)=>e.startEditing&&e.startEditing(...a)),onBlur:t[2]||(t[2]=(...a)=>e.finalizeEditing&&e.finalizeEditing(...a))},null,42,_pe),[[Nt,e.localNote]]),e.frozen?(p(),b("span",wpe,[T(i)])):E("",!0)],2)}const kpe=ge(ype,[["render",Spe]]),$pe={props:{user:Object,at:{type:Boolean,default:!0}},components:{UnicodeDomainIndicator:Zp},methods:{userProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)}}},Cpe=$pe,Tpe={class:"user-profile-link"};function Ape(e,t,n,s,r,o){const i=O("UnicodeDomainIndicator"),a=O("router-link");return p(),b("div",Tpe,[T(a,{title:e.user.screen_name_ui,to:e.userProfileLink(e.user)},{default:X(()=>[Ot(e.$slots,"default",{},()=>[de(w(e.at?"@":"")+w(e.user.screen_name_ui),1),T(i,{user:e.user},null,8,["user"])])]),_:3},8,["title","to"])])}const Sd=ge(Cpe,[["render",Ape]]),nm=typeof window<"u"&&typeof window.document<"u",Er=nm?window:{},V2=nm?"ontouchstart"in Er.document.documentElement:!1,W2=nm?"PointerEvent"in Er:!1,Qi="cropper",kd=`${Qi}-canvas`,Epe=`${Qi}-crosshair`,Ipe=`${Qi}-grid`,Ppe=`${Qi}-handle`,sm=`${Qi}-image`,Ii=`${Qi}-selection`,Lpe=`${Qi}-shade`,Ope=`${Qi}-viewer`,zh="select",gO="move",Ql="scale",qy="rotate",qh="transform",ki="none",$T="n-resize",CT="e-resize",TT="s-resize",AT="w-resize",Qc="ne-resize",eu="nw-resize",tu="se-resize",nu="sw-resize",Rpe="action",Mpe=V2?"touchend touchcancel":"mouseup",Npe=V2?"touchmove":"mousemove",Fpe=V2?"touchstart":"mousedown",ET=W2?"pointerdown":Fpe,IT=W2?"pointermove":Npe,PT=W2?"pointerup pointercancel":Mpe,LT="error",OT="keydown",Il="load",RT="wheel",ec="action",Da="actionend",Dpe="actionmove",Ua="actionstart",Pi="change",Hy="transform";function Upe(e){return typeof e=="string"}const vO=Number.isNaN||Er.isNaN;function jt(e){return typeof e=="number"&&!vO(e)}function Os(e){return jt(e)&&e>0&&e<1/0}function jpe(e){return typeof e>"u"}function bO(e){return typeof e=="object"&&e!==null}const{hasOwnProperty:Bpe}=Object.prototype;function Hh(e){if(!bO(e))return!1;try{const{constructor:t}=e,{prototype:n}=t;return t&&n&&Bpe.call(n,"isPrototypeOf")}catch{return!1}}function G2(e){return typeof e=="function"}function yO(e){return typeof e=="object"&&e!==null&&e.nodeType===1}const zpe=/([a-z\d])([A-Z])/g;function MT(e){return String(e).replace(zpe,"$1-$2").toLowerCase()}const qpe=/-[A-z\d]/g;function NT(e){return e.replace(qpe,t=>t.slice(1).toUpperCase())}const _O=/\s\s*/;function Dn(e,t,n,s){t.trim().split(_O).forEach(r=>{e.removeEventListener(r,n,s)})}function Vn(e,t,n,s){t.trim().split(_O).forEach(r=>{e.addEventListener(r,n,s)})}function FT(e,t,n,s){Vn(e,t,n,Object.assign(Object.assign({},s),{once:!0}))}const Hpe={bubbles:!0,cancelable:!0,composed:!0};function Vpe(e,t,n,s){return e.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign(Object.assign({},Hpe),{detail:n}),s)))}const DT=Promise.resolve();function Wpe(e,t){return t?DT.then(e?t.bind(e):t):DT}function UT(e){const{documentElement:t}=e.ownerDocument,n=e.getBoundingClientRect();return{left:n.left+(Er.pageXOffset-t.clientLeft),top:n.top+(Er.pageYOffset-t.clientTop)}}const Gpe=/deg|g?rad|turn$/i;function i0(e){const t=parseFloat(e)||0;if(t!==0){const[n="rad"]=String(e).match(Gpe)||[];switch(n.toLowerCase()){case"deg":return t/360*(Math.PI*2);case"grad":return t/400*(Math.PI*2);case"turn":return t*(Math.PI*2)}}return t}const jT="contain",Kpe="cover";function oh(e,t=jT){const{aspectRatio:n}=e;let{width:s,height:r}=e;const o=Os(s),i=Os(r);if(o&&i){const a=r*n;t===jT&&a>s||t===Kpe&&a<s?r=s/n:s=r*n}else o?r=s/n:i&&(s=r*n);return{width:s,height:r}}function wO(e,...t){if(t.length===0)return e;const[n,s,r,o,i,a]=e,[c,u,f,h,v,y]=t[0];return e=[n*c+r*u,s*c+o*u,n*f+r*h,s*f+o*h,n*v+r*y+i,s*v+o*y+a],wO(e,...t.slice(1))}var xpe=":host([hidden]){display:none!important}";
691const Ype=/left|top|width|height/i,BT="open",Uf=new WeakMap,jf=new WeakMap,zT=new Map,qT=Er.document&&Array.isArray(Er.document.adoptedStyleSheets)&&"replaceSync"in Er.CSSStyleSheet.prototype;class ei extends HTMLElement{get $sharedStyle(){return`${this.themeColor?`:host{--theme-color: ${this.themeColor};}`:""}${xpe}`}constructor(){var t,n;super(),this.shadowRootMode=BT,this.slottable=!0;const s=(n=(t=Object.getPrototypeOf(this))===null||t===void 0?void 0:t.constructor)===null||n===void 0?void 0:n.$name;s&&zT.set(s,this.tagName.toLowerCase())}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(t,n,s){if(Object.is(s,n))return;const r=NT(t),o=this[r];let i=s;switch(typeof o){case"boolean":i=s!==null&&s!=="false";break;case"number":i=Number(s);break}switch(this[r]=i,t){case"theme-color":{const a=jf.get(this),c=this.$sharedStyle;a&&c&&(qT?a.replaceSync(c):a.textContent=c);break}}}$propertyChangedCallback(t,n,s){if(!Object.is(s,n))switch(t=MT(t),typeof s){case"boolean":s===!0?this.hasAttribute(t)||this.setAttribute(t,""):this.removeAttribute(t);break;case"number":vO(s)?s="":s=String(s);default:s?this.getAttribute(t)!==s&&this.setAttribute(t,s):this.removeAttribute(t)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach(n=>{const s=NT(n);let r=this[s];jpe(r)||this.$propertyChangedCallback(s,void 0,r),Object.defineProperty(this,s,{enumerable:!0,configurable:!0,get(){return r},set(o){const i=r;r=o,this.$propertyChangedCallback(s,i,o)}})});const t=this.attachShadow({mode:this.shadowRootMode||BT});if(this.shadowRoot||Uf.set(this,t),jf.set(this,this.$addStyles(this.$sharedStyle)),this.$style&&this.$addStyles(this.$style),this.$template){const n=document.createElement("template");n.innerHTML=this.$template,t.appendChild(n.content)}if(this.slottable){const n=document.createElement("slot");t.appendChild(n)}}disconnectedCallback(){jf.has(this)&&jf.delete(this),Uf.has(this)&&Uf.delete(this)}$getTagNameOf(t){var n;return(n=zT.get(t))!==null&&n!==void 0?n:t}$setStyles(t){return Object.keys(t).forEach(n=>{let s=t[n];jt(s)&&(s!==0&&Ype.test(n)?s=`${s}px`:s=String(s)),this.style[n]=s}),this}
691$getShadowRoot(){return this.shadowRoot||Uf.get(this)}$addStyles(t){let n;const s=this.$getShadowRoot();return qT?(n=new CSSStyleSheet,n.replaceSync(t),s.adoptedStyleSheets=s.adoptedStyleSheets.concat(n)):(n=document.createElement("style"),n.textContent=t,s.appendChild(n)),n}$emit(t,n,s){return Vpe(this,t,n,s)}$nextTick(t){return Wpe(this,t)}static $define(t,n){bO(t)&&(n=t,t=""),t||(t=this.$name||this.name),t=MT(t),nm&&Er.customElements&&!Er.customElements.get(t)&&customElements.define(t,this,n)}}ei.$version="2.0.0";var Xpe=':host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}';class K2 extends ei{constructor(){super(...arguments),this.$onPointerDown=null,this.$onPointerMove=null,this.$onPointerUp=null,this.$onWheel=null,this.$wheeling=!1,this.$pointers=new Map,this.$style=Xpe,this.$action=ki,this.background=!1,this.disabled=!1,this.scaleStep=.1,this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback(),this.disabled||this.$bind()}disconnectedCallback(){this.disabled||this.$unbind(),super.disconnectedCallback()}$propertyChangedCallback(t,n,s){if(!Object.is(s,n))switch(super.$propertyChangedCallback(t,n,s),t){case"disabled":s?this.$unbind():this.$bind();break}}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),Vn(this,ET,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),Vn(this.ownerDocument,IT,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),Vn(this.ownerDocument,PT,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),Vn(this,RT,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(Dn(this,ET,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(Dn(this.ownerDocument,IT,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(Dn(this.ownerDocument,PT,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(Dn(this,RT,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(t){const{buttons:n,button:s,type:r}=t;if(this.disabled||(r==="pointerdown"&&t.pointerType==="mouse"||r==="mousedown")&&(jt(n)&&n!==1||jt(s)&&s!==0||t.ctrlKey))return;const{$pointers:o}=this;let i="";if(t.changedTouches)Array.from(t.changedTouches).forEach(({identifier:a,pageX:c,pageY:u})=>{o.set(a,{startX:c,startY:u,endX:c,endY:u})});else{const{pointerId:a=0,pageX:c,pageY:u}=t;o.set(a,{startX:c,startY:u,endX:c,endY:u})}o.size>1?i=qh:yO(t.target)&&(i=t.target.action||t.target.getAttribute(Rpe)||""),this.$emit(Ua,{action:i,relatedEvent:t})!==!1&&(t.preventDefault(),this.$action=i,this.style.willChange="transform")}$handlePointerMove(t){const{$action:n,$pointers:s}=this;if(this.disabled||n===ki||s.size===0||this.$emit(Dpe,{action:n,relatedEvent:t})===!1)return;if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach(({identifier:o,pageX:i,pageY:a})=>{const c=s.get(o);c&&Object.assign(c,{endX:i,endY:a})});else{const{pointerId:o=0,pageX:i,pageY:a}=t,c=s.get(o);c&&Object.assign(c,{endX:i,endY:a})}const r={action:n,relatedEvent:t};if(n===qh){const o=new Map(s);let i=0,a=0,c=0,u=0,f=t.pageX,h=t.pageY;s.forEach((S,C)=>{o.delete(C),o.forEach(I=>{let $=I.startX-S.startX,k=I.startY-S.startY,P=I.endX-S.endX,A=I.endY-S.endY,R=0,B=0,N=0,Y=0;if($===0?k<0?N=Math.PI*2:k>0&&(N=Math.PI):$>0?N=Math.PI/2+Math.atan(k/$):$<0&&(N=Math.PI*1.5+Math.atan(k/$)),P===0?A<0?Y=Math.PI*2:A>0&&(Y=Math.PI):P>0?Y=Math.PI/2+Math.atan(A/P):P<0&&(Y=Math.PI*1.5+Math.atan(A/P)),Y>0||N>0){const H=Y-N,D=Math.abs(H);D>i&&(i=D,c=H,f=(S.startX+I.startX)/2,h=(S.startY+I.startY)/2)}if($=Math.abs($),k=Math.abs(k),P=Math.abs(P),A=Math.abs(A),$>0&&k>0?R=Math.sqrt($*$+k*k):$>0?R=$:k>0&&(R=k),P>0&&A>0?B=Math.sqrt(P*P+A*A):P>0?B=P:A>0&&(B=A),R>0&&B>0){const H=(B-R)/R,D=Math.abs(H);D>
691a&&(a=D,u=H,f=(S.startX+I.startX)/2,h=(S.startY+I.startY)/2)}})});const v=i>0,y=a>0;v&&y?(r.rotate=c,r.scale=u,r.centerX=f,r.centerY=h):v?(r.action=qy,r.rotate=c,r.centerX=f,r.centerY=h):y?(r.action=Ql,r.scale=u,r.centerX=f,r.centerY=h):r.action=ki}else{const[o]=Array.from(s.values());Object.assign(r,o)}s.forEach(o=>{o.startX=o.endX,o.startY=o.endY}),r.action!==ki&&this.$emit(ec,r,{cancelable:!1})}$handlePointerUp(t){const{$action:n,$pointers:s}=this;if(!(this.disabled||n===ki)&&this.$emit(Da,{action:n,relatedEvent:t})!==!1){if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach(({identifier:r})=>{s.delete(r)});else{const{pointerId:r=0}=t;s.delete(r)}s.size===0&&(this.style.willChange="",this.$action=ki)}}$handleWheel(t){if(this.disabled||(t.preventDefault(),this.$wheeling))return;this.$wheeling=!0,setTimeout(()=>{this.$wheeling=!1},50);const s=(t.deltaY>0?-1:1)*this.scaleStep;this.$emit(ec,{action:Ql,scale:s,relatedEvent:t},{cancelable:!1})}$setAction(t){return Upe(t)&&(this.$action=t),this}$toCanvas(t){return new Promise((n,s)=>{if(!this.isConnected){s(new Error("The current element is not connected to the DOM."));return}const r=document.createElement("canvas");let o=this.offsetWidth,i=this.offsetHeight,a=1;Hh(t)&&(Os(t.width)||Os(t.height))&&({width:o,height:i}=oh({aspectRatio:o/i,width:t.width,height:t.height}),a=o/this.offsetWidth),r.width=o,r.height=i;const c=this.querySelector(this.$getTagNameOf(sm));if(!c){n(r);return}c.$ready().then(u=>{const f=r.getContext("2d");if(f){const[h,v,y,S,C,I]=c.$getTransform();let $=C,k=I,P=u.naturalWidth,A=u.naturalHeight;a!==1&&($*=a,k*=a,P*=a,A*=a);const R=P/2,B=A/2;f.fillStyle="transparent",f.fillRect(0,0,o,i),Hh(t)&&G2(t.beforeDraw)&&t.beforeDraw.call(this,f,r),f.save(),f.translate(R,B),f.transform(h,v,y,S,$,k),f.translate(-R,-B),f.drawImage(u,0,0,P,A),f.restore()}n(r)}).catch(s)})}}K2.$name=kd;K2.$version="2.0.0";var Jpe=":host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}";const HT=new WeakMap,VT=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class x2 extends ei{constructor(){super(...arguments),this.$matrix=[1,0,0,1,0,0],this.$onLoad=null,this.$onCanvasAction=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$actionStartTarget=null,this.$style=Jpe,this.$image=new Image,this.initialCenterSize="contain",this.rotatable=!1,this.scalable=!1,this.skewable=!1,this.slottable=!1,this.translatable=!1}set $canvas(t){HT.set(this,t)}get $canvas(){return HT.get(this)}static get observedAttributes(){return super.observedAttributes.concat(VT,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,n,s){Object.is(s,n)||(super.attributeChangedCallback(t,n,s),VT.includes(t)&&this.$image.setAttribute(t,s))}$propertyChangedCallback(t,n,s){if(!Object.is(s,n))switch(super.$propertyChangedCallback(t,n,s),t){case"initialCenterSize":this.$nextTick(()=>{this.$center(s)});break}}connectedCallback(){super.connectedCallback();const{$image:t}=this,n=this.closest(this.$getTagNameOf(kd));n&&(this.$canvas=n,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=s=>{var r,o;this.$actionStartTarget=(o=(r=s.detail)===null||r===void 0?void 0:r.relatedEvent)===null||o===void 0?void 0:o.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),Vn(n,Ua,this.$onCanvasActionStart),Vn(n,Da,this.$onCanvasActionEnd),Vn(n,ec,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),Vn(t,Il,this.$onLoad),this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:n}=this;n&&(this.$onCanvasActionStart&&(Dn(n,Ua,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(Dn(n,Da,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(Dn(n,ec,this.$onCanvasAction),this.$onCanvasAction=null)),t&&this.$onLoad&&(Dn(t,Il,this.$onLoad),this.$onLoad=null),this.$getShadowRoot().removeChild(t),super.disconnectedCallback()}$handleLoad(){const{$image:t}=this;
691this.$setStyles({width:t.naturalWidth,height:t.naturalHeight}),this.$canvas&&this.$center(this.initialCenterSize)}$handleAction(t){if(this.hidden||!(this.rotatable||this.scalable||this.translatable))return;const{$canvas:n}=this,{detail:s}=t;if(s){const{relatedEvent:r}=s;let{action:o}=s;switch(o===qh&&(!this.rotatable||!this.scalable)&&(this.rotatable?o=qy:this.scalable?o=Ql:o=ki),o){case gO:if(this.translatable){let i=null;r&&(i=r.target.closest(this.$getTagNameOf(Ii))),i||(i=n.querySelector(this.$getTagNameOf(Ii))),i&&i.multiple&&!i.active&&(i=n.querySelector(`${this.$getTagNameOf(Ii)}[active]`)),(!i||i.hidden||!i.movable||i.dynamic||!(this.$actionStartTarget&&i.contains(this.$actionStartTarget)))&&this.$move(s.endX-s.startX,s.endY-s.startY)}break;case qy:if(this.rotatable)if(r){const{x:i,y:a}=this.getBoundingClientRect();this.$rotate(s.rotate,r.clientX-i,r.clientY-a)}else this.$rotate(s.rotate);break;case Ql:if(this.scalable)if(r){const i=r.target.closest(this.$getTagNameOf(Ii));if(!i||!i.zoomable||i.zoomable&&i.dynamic){const{x:a,y:c}=this.getBoundingClientRect();this.$zoom(s.scale,r.clientX-a,r.clientY-c)}}else this.$zoom(s.scale);break;case qh:if(this.rotatable&&this.scalable){const{rotate:i}=s;let{scale:a}=s;a<0?a=1/(1-a):a+=1;const c=Math.cos(i),u=Math.sin(i),[f,h,v,y]=[c*a,u*a,-u*a,c*a];if(r){const S=this.getBoundingClientRect(),C=r.clientX-S.x,I=r.clientY-S.y,[$,k,P,A]=this.$matrix,R=S.width/2,B=S.height/2,N=C-R,Y=I-B,H=(N*A-P*Y)/($*A-P*k),D=(Y*$-k*N)/($*A-P*k);this.$transform(f,h,v,y,H*(1-f)+D*v,D*(1-y)+H*h)}else this.$transform(f,h,v,y,0,0)}break}}}$ready(t){const{$image:n}=this,s=new Promise((r,o)=>{const i=new Error("Failed to load the image source");if(n.complete)n.naturalWidth>0&&n.naturalHeight>0?r(n):o(i);else{const a=()=>{Dn(n,LT,c),r(n)},c=()=>{Dn(n,Il,a),o(i)};FT(n,Il,a),FT(n,LT,c)}});return G2(t)&&s.then(r=>(t(r),r)),s}$center(t){const{parentElement:n}=this;if(!n)return this;const s=n.getBoundingClientRect(),r=s.width,o=s.height,{x:i,y:a,width:c,height:u}=this.getBoundingClientRect(),f=i+c/2,h=a+u/2,v=s.x+r/2,y=s.y+o/2;if(this.$move(v-f,y-h),t&&(c!==r||u!==o)){const S=r/c,C=o/u;switch(t){case"cover":this.$scale(Math.max(S,C));break;case"contain":this.$scale(Math.min(S,C));break}}return this}$move(t,n=t){if(this.translatable&&jt(t)&&jt(n)){const[s,r,o,i]=this.$matrix,a=(t*i-o*n)/(s*i-o*r),c=(n*s-r*t)/(s*i-o*r);this.$translate(a,c)}return this}$moveTo(t,n=t){if(this.translatable&&jt(t)&&jt(n)){const[s,r,o,i]=this.$matrix,a=(t*i-o*n)/(s*i-o*r),c=(n*s-r*t)/(s*i-o*r);this.$setTransform(s,r,o,i,a,c)}return this}$rotate(t,n,s){if(this.rotatable){const r=i0(t),o=Math.cos(r),i=Math.sin(r),[a,c,u,f]=[o,i,-i,o];if(jt(n)&&jt(s)){const[h,v,y,S]=this.$matrix,{width:C,height:I}=this.getBoundingClientRect(),$=C/2,k=I/2,P=n-$,A=s-k,R=(P*S-y*A)/(h*S-y*v),B=(A*h-v*P)/(h*S-y*v);this.$transform(a,c,u,f,R*(1-a)-B*u,B*(1-f)-R*c)}else this.$transform(a,c,u,f,0,0)}return this}$zoom(t,n,s){if(!this.scalable||t===0)return this;if(t<0?t=1/(1-t):t+=1,jt(n)&&jt(s)){const[r,o,i,a]=this.$matrix,{width:c,height:u}=this.getBoundingClientRect(),f=c/2,h=u/2,v=n-f,y=s-h,S=(v*a-i*y)/(r*a-i*o),C=(y*r-o*v)/(r*a-i*o);this.$transform(t,0,0,t,S*(1-t),C*(1-t))}else this.$scale(t);return this}$scale(t,n=t){return this.scalable&&this.$transform(t,0,0,n,0,0),this}$skew(t,n=0){if(this.skewable){const s=i0(t),r=i0(n);this.$transform(1,Math.tan(r),Math.tan(s),1,0,0)}return this}$translate(t,n=t){return this.translatable&&jt(t)&&jt(n)&&this.$transform(1,0,0,1,t,n),this}$transform(t,n,s,r,o,i){return jt(t)&&jt(n)&&jt(s)&&jt(r)&&jt(o)&&jt(i)?this.$setTransform(wO(this.$matrix,[t,n,s,r,o,i])):this}$setTransform(t,n,s,r,o,i){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(t)&&([t,n,s,r,o,i]=t),jt(t)&&jt(n)&&jt(s)&&jt(r)&&jt(o)&&jt(i))){const a=[...this.$matrix],c=[t,n,s,r,o,i];if(this.$emit(Hy,{matrix:c,oldMatrix:a})===!1)return this;this.$matrix=c,this.style.transform=`matrix(${c.join(", ")})`}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}x2.$name=sm;x2.$version="2.0.0";var Zpe=":host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}";const WT=new WeakMap;class Y2 extends ei{constructor(){super(...arguments),this.$onCanvasChange=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$style=Zpe,this.x=0,this.y=0,this.width=0,this.height=0,this.slottable=!1,this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(t){WT.set(this,t)}get $canvas(){return WT.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(kd));if(t){this.$canvas=t,this.style.position="absolute";const n=t.querySelector(this.$getTagNameOf(Ii));n&&(this.$onCanvasActionStart=s=>{n.hidden&&s.detail.action===zh&&(this.hidden=!1)},this.$onCanvasActionEnd=s=>{n.hidden&&s.detail.action===zh&&(this.hidden=!0)},this.$onCanvasChange=s=>{const{x:r,y:o,width:i,height:a}=s.detail;this.$change(r,o,i,a),(n.hidden||r===0&&o===0&&i===0&&a===0)&&(this.hidden=!0)},Vn(t,Ua,this.$onCanvasActionStart),Vn(t,Da,this.$onCanvasActionEnd),Vn(t,Pi,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(Dn(t,Ua,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(Dn(t,Da,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(Dn(t,Pi,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(t,n,s=this.width,r=this.height){return!jt(t)||!jt(n)||!jt(s)||!jt(r)||t===this.x&&n===this.y&&s===this.width&&r===this.height?this:(this.hidden&&(this.hidden=!1),this.x=t,this.y=n,this.width=s,this.height=r,this.$render())}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:Er.innerWidth})}}Y2.$name=Lpe;Y2.$version="2.0.0";var Qpe=':host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;
691cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}';class X2 extends ei{constructor(){super(...arguments),this.$onCanvasCropEnd=null,this.$onCanvasCropStart=null,this.$style=Qpe,this.action=ki,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}X2.$name=Ppe;X2.$version="2.0.0";var eme=':host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}';const GT=new WeakMap;class J2 extends ei{constructor(){super(...arguments),this.$onCanvasAction=null,this.$onCanvasActionStart=null,this.$onCanvasActionEnd=null,this.$onDocumentKeyDown=null,this.$action="",this.$actionStartTarget=null,this.$changing=!1,this.$style=eme,this.$initialSelection={x:0,y:0,width:0,height:0},this.x=0,this.y=0,this.width=0,this.height=0,this.aspectRatio=NaN,this.initialAspectRatio=NaN,this.initialCoverage=NaN,this.active=!1,this.linked=!1,this.dynamic=!1,this.movable=!1,this.resizable=!1,this.zoomable=!1,this.multiple=!1,this.keyboard=!1,this.outlined=!1,this.precise=!1}set $canvas(t){GT.set(this,t)}get $canvas(){return GT.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(t,n,s){if(!Object.is(s,n))switch(super.$propertyChangedCallback(t,n,s),t){case"x":case"y":case"width":case"height":this.$changing||this.$nextTick(()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,!0)});break;case"aspectRatio":case"initialAspectRatio":this.$nextTick(()=>{this.$initSelection()});break;case"initialCoverage":this.$nextTick(()=>{Os(s)&&s<=1&&this.$initSelection(!0,!0)});break;case"keyboard":this.$nextTick(()=>{this.$canvas&&(s?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),Vn(this.ownerDocument,OT,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(Dn(this.ownerDocument,OT,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))});break;case"multiple":this.$nextTick(()=>{if(this.$canvas){const r=this.$getSelections();s?(r.forEach(o=>{o.active=!1}),this.active=!0,this.$emit(Pi,{x:this.x,y:this.y,width:this.width,height:this.height})):(this.active=!1,r.slice(1).forEach(o=>{this.$removeSelection(o)}))}});break;case"precise":this.$nextTick(()=>{this.$change(this.x,this.y)});break;case"linked":s&&(this.dynamic=!0);break}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(kd));t?(this.$canvas=t,this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`}),this.hidden||this.$render(),this.$initSelection(!0),this.$onCanvasActionStart=this.$handleActionStart.bind(this),this.$onCanvasActionEnd=this.$handleActionEnd.bind(this),this.$onCanvasAction=this.$handleAction.bind(this),Vn(t,Ua,this.$onCanvasActionStart),Vn(t,Da,this.$onCanvasActionEnd),Vn(t,ec,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(Dn(t,Ua,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(Dn(t,Da,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(Dn(t,ec,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let t=[];return this.parentElement&&(t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(Ii)))),t}$initSelection(t=!1,n=!1){const{initialCoverage:s,parentElement:r}=this;if(Os(s)&&r){const o=this.aspectRatio||this.initialAspectRatio;let i=(n?0:this.width)||r.offsetWidth*s,a=(n?0:this.height)||r.offsetHeight*s;Os(o)&&({width:i,height:a}=oh({aspectRatio:o,width:i,height:a})),this.$change(this.x,this.y,i,a),t&&this.$center(),this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const t=this.cloneNode(!0);return this.hasAttribute("id")&&t.removeAttribute("id"),t.initialCoverage=NaN,this.active=!1,this.parentElement&&this.parentElement.insertBefore(t,this.nextSibling),t}$removeSelection(t=this){if(this.parentElement){const n=this.$getSelections();if(n.length>1){const s=n.indexOf(t),r=n[s+1]||n[s-1];r&&(t.active=!1,this.parentElement.removeChild(t),r.active=!0,r.$emit(Pi,{x:r.x,y:r.y,width:r.width,height:r.height}))}else this.$clear()}}$handleActionStart(t){var n,s;const r=(s=(n=t.detail)===null||n===void 0?void 0:n.relatedEvent)===null||s===void 0?void 0:s.target;this.$action="",this.$actionStartTarget=r,!this.hidden&&this.multiple&&!this.active&&r===this&&this.parentElement&&(this.$getSelections().forEac
691h(o=>{o.active=!1}),this.active=!0,this.$emit(Pi,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(t){const{currentTarget:n,detail:s}=t;if(!n||!s)return;const{relatedEvent:r}=s;let{action:o}=s;if(!o&&this.multiple&&(o=this.$action||(r==null?void 0:r.target.action),this.$action=o),!o||this.hidden&&o!==zh||this.multiple&&!this.active&&o!==Ql)return;const i=s.endX-s.startX,a=s.endY-s.startY,{width:c,height:u}=this;let{aspectRatio:f}=this;switch(!Os(f)&&r.shiftKey&&(f=Os(c)&&Os(u)?c/u:1),o){case zh:if(i!==0&&a!==0){const{$canvas:h}=this,v=UT(n);(this.multiple&&!this.hidden?this.$createSelection():this).$change(s.startX-v.left,s.startY-v.top,Math.abs(i),Math.abs(a),f),i<0?a<0?o=eu:a>0&&(o=nu):i>0&&(a<0?o=Qc:a>0&&(o=tu)),h&&(h.$action=o)}break;case gO:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(i,a);break;case Ql:if(r&&this.zoomable&&(this.dynamic||this.contains(r.target))){const h=UT(n);this.$zoom(s.scale,r.pageX-h.left,r.pageY-h.top)}break;default:this.$resize(o,i,a,f)}}$handleActionEnd(){this.$action="",this.$actionStartTarget=null}$handleKeyDown(t){if(this.hidden||!this.keyboard||this.multiple&&!this.active||t.defaultPrevented)return;const{activeElement:n}=document;if(!(n&&(["INPUT","TEXTAREA"].includes(n.tagName)||["true","plaintext-only"].includes(n.contentEditable))))switch(t.key){case"Backspace":t.metaKey&&(t.preventDefault(),this.$removeSelection());break;case"Delete":t.preventDefault(),this.$removeSelection();break;case"ArrowLeft":t.preventDefault(),this.$move(-1,0);break;case"ArrowRight":t.preventDefault(),this.$move(1,0);break;case"ArrowUp":t.preventDefault(),this.$move(0,-1);break;case"ArrowDown":t.preventDefault(),this.$move(0,1);break;case"+":t.preventDefault(),this.$zoom(.1);break;case"-":t.preventDefault(),this.$zoom(-.1);break}}$center(){const{parentElement:t}=this;if(!t)return this;const n=(t.offsetWidth-this.width)/2,s=(t.offsetHeight-this.height)/2;return this.$change(n,s)}$move(t,n=t){return this.$moveTo(this.x+t,this.y+n)}$moveTo(t,n=t){return this.movable?this.$change(t,n):this}$resize(t,n=0,s=0,r=this.aspectRatio){if(!this.resizable)return this;const o=Os(r),{$canvas:i}=this;let{x:a,y:c,width:u,height:f}=this;switch(t){case $T:c+=s,f-=s,f<0&&(t=TT,f=-f,c-=f),o&&(n=s*r,a+=n/2,u-=n,u<0&&(u=-u,a-=u));break;case CT:u+=n,u<0&&(t=AT,u=-u,a-=u),o&&(s=n/r,c-=s/2,f+=s,f<0&&(f=-f,c-=f));break;case TT:f+=s,f<0&&(t=$T,f=-f,c-=f),o&&(n=s*r,a-=n/2,u+=n,u<0&&(u=-u,a-=u));break;case AT:a+=n,u-=n,u<0&&(t=CT,u=-u,a-=u),o&&(s=n/r,c+=s/2,f-=s,f<0&&(f=-f,c-=f));break;case Qc:o&&(s=-n/r),c+=s,f-=s,u+=n,u<0&&f<0?(t=nu,u=-u,f=-f,a-=u,c-=f):u<0?(t=eu,u=-u,a-=u):f<0&&(t=tu,f=-f,c-=f);break;case eu:o&&(s=n/r),a+=n,c+=s,u-=n,f-=s,u<0&&f<0?(t=tu,u=-u,f=-f,a-=u,c-=f):u<0?(t=Qc,u=-u,a-=u):f<0&&(t=nu,f=-f,c-=f);break;case tu:o&&(s=n/r),u+=n,f+=s,u<0&&f<0?(t=eu,u=-u,f=-f,a-=u,c-=f):u<0?(t=nu,u=-u,a-=u):f<0&&(t=Qc,f=-f,c-=f);break;case nu:o&&(s=-n/r),a+=n,u-=n,f+=s,u<0&&f<0?(t=Qc,u=-u,f=-f,a-=u,c-=f):u<0?(t=tu,u=-u,a-=u):f<0&&(t=eu,f=-f,c-=f);break}return i&&i.$setAction(t),this.$change(a,c,u,f)}$zoom(t,n,s){if(!this.zoomable||t===0)return this;t<0?t=1/(1-t):t+=1;const{width:r,height:o}=this,i=r*t,a=o*t;let c=this.x,u=this.y;return jt(n)&&jt(s)?(c-=(i-r)*((n-this.x)/r),u-=(a-o)*((s-this.y)/o)):(c-=(i-r)/2,u-=(a-o)/2),this.$change(c,u,i,a)}$change(t,n,s=this.width,r=this.height,o=this.aspectRatio,i=!1){return this.$changing||!jt(t)||!jt(n)||!jt(s)||!jt(r)||s<0||r<0?this:(Os(o)&&({width:s,height:r}=oh({aspectRatio:o,width:s,height:r},"cover")),this.precise||(t=Math.round(t),n=Math.round(n),s=Math.round(s),r=Math.round(r)),t===this.x&&n===this.y&&s===this.width&&r===this.height&&Object.is(o,this.aspectRatio)&&!i?this:(this.hidden&&(this.hidden=!1),this.$emit(Pi,{x:t,y:n,width:s,height:r})===!1?this:(this.$changing=!0,this.x=t,this.y=n,this.width=s,this.height=r,this.$changing=!1,this.$render())))}$reset(){const{x:t,y:n,width:s,height:r}=this.$initialSelection;return this.$change(t,n,s,r)}$clear(){return this.$change(0,0,0,0,NaN,!0),this.hidden=!0,this}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(t){return new Promise((n,s)=>{if(!this.isConnected){s(new Error("The current element is not connected to the DOM."));return}const r=document.createElement("canvas");let{width:o,height:i}=this,a=1;if(Hh(t)&&(Os(t.width)||Os(t.height))&&({width:o,height:i}=oh({aspectRatio:o/i,width:t.width,height:t.height}),a=o/this.width),r.width=o,r.height=i,!this.$canvas){n(r);return}const c=this.$canvas.querySelector(this.$getTagNameOf(sm));if(!c){n(r);return}c.$ready().then(u=>{const f=r.getContext("2d");if(f){const[h,v,y,S,C,I]=c.$getTransform(),$=-this.x,k=-this.y,P=($*S-y*k)/(h*S-y*v),A=(k*h-v*$)/(h*S-y*v);
691let R=h*P+y*A+C,B=v*P+S*A+I,N=u.naturalWidth,Y=u.naturalHeight;a!==1&&(R*=a,B*=a,N*=a,Y*=a);const H=N/2,D=Y/2;f.fillStyle="transparent",f.fillRect(0,0,o,i),Hh(t)&&G2(t.beforeDraw)&&t.beforeDraw.call(this,f,r),f.save(),f.translate(H,D),f.transform(h,v,y,S,R,B),f.translate(-H,-D),f.drawImage(u,0,0,N,Y),f.restore()}n(r)}).catch(s)})}}J2.$name=Ii;J2.$version="2.0.0";var tme=":host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}";class Z2 extends ei{constructor(){super(...arguments),this.$style=tme,this.bordered=!1,this.columns=3,this.covered=!1,this.rows=3,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(t,n,s){Object.is(s,n)||(super.$propertyChangedCallback(t,n,s),(t==="rows"||t==="columns")&&this.$nextTick(()=>{this.$render()}))}connectedCallback(){super.connectedCallback(),this.$render()}$render(){const t=this.$getShadowRoot(),n=document.createDocumentFragment();for(let s=0;s<this.rows;s+=1){const r=document.createElement("span");r.setAttribute("role","row");for(let o=0;o<this.columns;o+=1){const i=document.createElement("span");i.setAttribute("role","gridcell"),r.appendChild(i)}n.appendChild(r)}t&&(t.innerHTML="",t.appendChild(n))}}Z2.$name=Ipe;Z2.$version="2.0.0";var nme=':host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}';class Q2 extends ei{constructor(){super(...arguments),this.$style=nme,this.centered=!1,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}Q2.$name=Epe;Q2.$version="2.0.0";var sme=":host{display:block;height:100%;overflow:hidden;position:relative;width:100%}";const KT=new WeakMap,xT=new WeakMap,YT=new WeakMap,XT=new WeakMap,rme="both",ome="horizontal",JT="vertical",ime="none";class ew extends ei{constructor(){super(...arguments),this.$onSelectionChange=null,this.$onSourceImageLoad=null,this.$onSourceImageTransform=null,this.$scale=1,this.$style=sme,this.resize=JT,this.selection="",this.slottable=!1}set $image(t){xT.set(this,t)}get $image(){return xT.get(this)}set $sourceImage(t){XT.set(this,t)}get $sourceImage(){return XT.get(this)}set $canvas(t){KT.set(this,t)}get $canvas(){return KT.get(this)}set $selection(t){YT.set(this,t)}get $selection(){return YT.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let t=null;if(this.selection?t=this.ownerDocument.querySelector(this.selection):t=this.closest(this.$getTagNameOf(Ii)),yO(t)){this.$selection=t,this.$onSelectionChange=this.$handleSelectionChange.bind(this),Vn(t,Pi,this.$onSelectionChange);const n=t.closest(this.$getTagNameOf(kd));if(n){this.$canvas=n;const s=n.querySelector(this.$getTagNameOf(sm));s&&(this.$sourceImage=s,this.$image=s.cloneNode(!0),this.$getShadowRoot().appendChild(this.$image),this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this),this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this),Vn(s.$image,Il,this.$onSourceImageLoad),Vn(s,Hy,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:n}=this;t&&this.$onSelectionChange&&(Dn(t,Pi,this.$onSelectionChange),this.$onSelectionChange=null),n&&this.$onSourceImageLoad&&(Dn(n.$image,Il,this.$onSourceImageLoad),this.$onSourceImageLoad=null),n&&this.$onSourceImageTransform&&(Dn(n,Hy,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:n}=this,s=t.getAttribute("src"),r=n.getAttribute("src");r&&r!==s&&(t.setAttribute("src",r),t.$ready(()=>{setTimeout(()=>{this.$render()},50)}))}$handleSourceImageTransform(t){this.$render(void 0,t.detail.matrix)}$render(t,n){const{$canvas:s,$selection:r}=this;!t&&!r.hidden&&(t=r),(!t||t.x===0&&t.y===0&&t.width===0&&t.height===0)&&(t={x:0,y:0,width:s.offsetWidth,height:s.offsetHeight});const{x:o,y:i,width:a,height:c}=t,u={},{clientWidth:f,clientHeight:h}=this;let v=f,y=h,S=NaN;switch(this.resize){case rme:S=1,v=a,y=c,u.width=a,u.height=c;break;case ome:S=c>0?h/c:0,v=a*S,u.width=v;break;case JT:S=a>0?f/a:0,y=c*S,u.height=y;break;case ime:default:f>0?S=a>0?f/a:0:h>0&&(S=c>0?h/c:0)}this.$scale=S,this.$setStyles(u),this.$sourceImage&&this.$transformImageByOffset(n??this.$sourceImage.$getTransform(),-o,-i)}$transformImageByOffset(t,n,s){const{$image:r,$scale:o,$sourceImage:i}=this;if(i&&r&&o>=0){const[a,c,u,f,h,v]=t,y=(n*f-u*s)/(a*f-u*c),S=(s*a-c*n)/(a*f-u*c),C=a*y+u*S+h,I=c*y+f*S+v;r.$ready($=>
691{this.$setStyles.call(r,{width:$.naturalWidth*o,height:$.naturalHeight*o})}),r.$setTransform(a,c,u,f,C*o,I*o)}}}ew.$name=Ope;ew.$version="2.0.0";/*! Cropper.js v2.0.0 | (c) 2015-present Chen Fengyuan | MIT */K2.$define();Q2.$define();Z2.$define();X2.$define();x2.$define();J2.$define();Y2.$define();ew.$define();et.add(Zs);const ame={props:{mimes:{type:String,default:"image/png, image/gif, image/jpeg, image/bmp, image/x-icon"},aspectRatio:{type:Number}},data(){return{dataUrl:void 0,filename:void 0}},emits:["submit","close"],methods:{destroy(){this.$refs.input.value="",this.dataUrl=void 0,this.$emit("close")},submit(e=!0){let t;e?t=this.$refs.cropperSelection.$toCanvas():t=Promise.resolve(),t.then(n=>{this.$emit("submit",{canvas:n,file:this.file})})},pickImage(){this.$refs.input.click()},readFile(){const e=this.$refs.input;if(e.files!=null&&e.files[0]!=null){this.file=e.files[0];const t=new window.FileReader;t.onload=n=>{this.dataUrl=n.target.result,this.$emit("open")},t.readAsDataURL(this.file),this.$emit("changed",this.file,t)}},inSelection(e,t){return e.x>=t.x&&e.y>=t.y&&e.x+e.width<=t.x+t.width&&e.y+e.height<=t.y+t.height},onCropperSelectionChange(e){const n=this.$refs.cropperCanvas.getBoundingClientRect(),s=e.detail,r={x:0,y:0,width:n.width,height:n.height};this.inSelection(s,r)||e.preventDefault()}},mounted(){this.$refs.input.addEventListener("change",this.readFile)},beforeUnmount:function(){this.$refs.input.removeEventListener("change",this.readFile)}},lme={class:"image-cropper"},cme={class:"image"},ume={ref:"cropperCanvas",background:"",class:"image-cropper-canvas",height:"100%"},dme=["src"],fme=["aspect-ratio"],hme=["accept"];function pme(e,t,n,s,r,o){return p(),b("div",lme,[g("div",cme,[g("cropper-canvas",ume,[e.dataUrl?(p(),b("cropper-image",{key:0,ref:"cropperImage",src:e.dataUrl,alt:"Picture",class:"image-cropper-image",translatable:"",scalable:""},null,8,dme)):E("",!0),t[2]||(t[2]=g("cropper-shade",{hidden:""},null,-1)),t[3]||(t[3]=g("cropper-handle",{action:"select",plain:""},null,-1)),g("cropper-selection",{ref:"cropperSelection","initial-coverage":"0.9","aspect-ratio":e.aspectRatio,movable:"",resizable:"",onChange:t[0]||(t[0]=(...i)=>e.onCropperSelectionChange&&e.onCropperSelectionChange(...i))},[...t[1]||(t[1]=[g("cropper-grid",{role:"grid",covered:""},null,-1),g("cropper-crosshair",{centered:""},null,-1),g("cropper-handle",{action:"move","theme-color":"rgba(255, 255, 255, 0.35)"},null,-1),vj('<cropper-handle action="n-resize"></cropper-handle><cropper-handle action="e-resize"></cropper-handle><cropper-handle action="s-resize"></cropper-handle><cropper-handle action="w-resize"></cropper-handle><cropper-handle action="ne-resize"></cropper-handle><cropper-handle action="nw-resize"></cropper-handle><cropper-handle action="se-resize"></cropper-handle><cropper-handle action="sw-resize"></cropper-handle>',8)])],40,fme)],512)]),g("input",{ref:"input",type:"file",class:"input image-cropper-img-input",accept:e.mimes},null,8,hme)])}const mme=ge(ame,[["render",pme]]);et.add(rZ,MZ,ic,fP,nP,MJ,Xn,dP,aZ,uP);const gme={props:{editable:{required:!1,default:!1,type:Boolean},userId:{required:!0,type:String},hideBio:{required:!1,default:!1,type:Boolean},avatarAction:{required:!1,type:String,default:"default"},hasNoteEditor:{required:!1,type:Boolean,default:!1},showClose:{required:!1,type:Boolean,default:!1},showExpand:{required:!1,type:Boolean,default:!1}},components:{DialogModal:wd,UserAvatar:er,Checkbox:io,RemoteFollow:dO,ModerationTools:jhe,AccountActions:ppe,ProgressButton:fO,FollowButton:pO,Select:Zi,RichContent:Mr,UserLink:Sd,UserNote:k
691pe,UserTimedFilterModal:H2,ColorInput:Xfe,EmojiInput:YL,ImageCropper:mme},data(){var t;const e=this.$store.getters.findUser(this.userId);return{followRequestInProgress:!1,muteExpiryAmount:0,muteExpiryUnit:"minutes",editImage:!1,newName:e.name_unescaped,editingName:!1,newBio:o0(e.description),editingBio:!1,newAvatar:null,newAvatarFile:null,newBanner:null,newBannerFile:null,newActorType:e.actor_type,newBirthday:e.birthday,newShowBirthday:e.show_birthday,newShowRole:e.show_role,newFields:(t=e.fields)==null?void 0:t.map(n=>({name:n.name,value:n.value})),editingFields:!1}},created(){this.$store.dispatch("fetchUserRelationship",this.user.id)},computed:{somethingToSave(){var e;return this.newName!==this.user.name_unescaped||this.newBio!==o0(this.user.description)||this.newAvatar!==null||this.newBanner!==null||this.newActorType!==this.user.actor_type||this.newBirthday!==this.user.birthday||this.newShowBirthday!==this.user.show_birthday||this.newShowRole!==this.user.show_role||!Dfe(this.newFields,(e=this.user.fields)==null?void 0:e.map(t=>({name:t.name,value:t.value})))},groupActorAvailable(){return this.$store.state.instance.groupActorAvailable},availableActorTypes(){return this.groupActorAvailable?["Person","Service","Group"]:["Person","Service"]},user(){return this.$store.getters.findUser(this.userId)},role(){return this.user.role},relationship(){return this.$store.getters.relationship(this.userId)},isOtherUser(){return this.user.id!==this.$store.state.users.currentUser.id},subscribeUrl(){const e=new URL(this.user.statusnet_profile_url);return`${e.protocol}//${e.host}/main/ostatus`},loggedIn(){return this.$store.state.users.currentUser},dailyAvg(){const e=Math.ceil((new Date-new Date(this.user.created_at))/864e5);return Math.round(this.user.statuses_count/e)},emoji(){return this.$store.state.instance.customEmoji.map(e=>({shortcode:e.displayText,static_url:e.imageUrl,url:e.imageUrl}))},userHighlightType:{get(){const e=this.$store.getters.mergedConfig.highlight[this.user.screen_name];return e&&e.type||"disabled"},set(e){const t=this.$store.getters.mergedConfig.highlight[this.user.screen_name];e!=="disabled"?this.$store.dispatch("setHighlight",{user:this.user.screen_name,color:t&&t.color||"#FFFFFF",type:e}):this.$store.dispatch("setHighlight",{user:this.user.screen_name,color:void 0})},...bn(["mergedConfig"])},userHighlightColor:{get(){const e=this.$store.getters.mergedConfig.highlight[this.user.screen_name];return e&&e.color},set(e){this.$store.dispatch("setHighlight",{user:this.user.screen_name,color:e})}},visibleRole(){if(!this.newShowRole)return;const e=this.user.rights;if(!e)return;const t=e.admin||e.moderator,n=e.admin?"admin":"moderator";return t&&n},hideFollowsCount(){return this.isOtherUser&&this.user.hide_follows_count},hideFollowersCount(){return this.isOtherUser&&this.user.hide_followers_count},showModerationMenu(){const e=this.loggedIn.privileges;return this.loggedIn.role==="admin"||e.includes("users_manage_activation_state")||e.includes("users_delete")||e.includes("users_manage_tags")},hasNote(){return this.relationship.note},supportsNote(){return"note"in this.relationship},muteExpiryAvailable(){return this.user.mute_expires_at!==void 0},muteExpiry(){return this.user.mute_expires_at==null?this.$t("user_card.mute_expires_forever"):this.$t("user_card.mute_expires_at",[new Date(this.user.mute_expires_at).toLocaleString()])},blockExpiryAvailable(){return this.user.block_expires_at!==void 0},blockExpiry(){return this.user.block_expires_at==null?this.$t("user_card.block_expires_forever"):this.$t("user_card.block_expires_at",[new Date(this.user.mute_expires_at).toLocaleString()])},formattedBirthday(){const e=Tr.internalToBrowserLocale(this.$i18n.locale);return this.user.birthday&&new Date(Date.parse(this.user.birthday)).toLocaleDateString(e,{timeZone:"UTC",day:"numeric",month:"long",year:"numeric"})},avatarImgSrc(){const e=this.user.profile_image_url_original||this.defaultAvatar;if(!this.editable)return e;const t=this.newAvatar===null?this.defaultAvatar:this.newAvatar;return this.newAvatar===null?e:t},bannerImgSrc(){const e=this.user.cover_photo||this.defaultBanner;if(!this.editable)return e;const t=this.newBanner===null?this.defaultBanner:this.newBanner;return this.newBanner===null?e:t},defaultAvatar(){return this.$store.state.instance.server+this.$store.state.instance.defaultAvatar},defaultBanner(){return this.$store.state.instance.server+this.$store.state.instance.defaultBanner},isDefaultAvatar(){const e=this.$store.state.instance.defaultAvatar;return!this.$store.state.users.currentUser.profile_image_url||this.$store.state.users.currentUser.profile_image_url.includes(e)},isDefaultBanner(){const e=this.$store.state.instance.defaultBanner;return!this.$store.state.users.currentUser.cover_photo||this.$store.state.users.currentUser.cover_photo.includes(e)},fieldsLimits(){return this.$store.state.instance.fieldsLimits},maxFields(){return this.fieldsLimits?this.fieldsLimits.maxFields:0},emojiUserSuggestor(){return Bh({emoji:[...this.$store.getters.standardEmojiList,...this.$store.state.instance.customEmoji],store:this.$store})},emojiSuggestor(){return Bh({emoji:[...this.$store.getters.standardEmojiList,...this.$store.state.instance.customEmoji]})},...bn(["mergedConfig"])},methods:{muteUser(){this.$refs.timedMuteDialog.optionallyPrompt()},unmuteUser(){this.$store.dispatch("unmuteUser",this.user.id)},subscribeUser(){return this.$store.dispatch("subscribeUser",this.user.id)},unsubscribeUser(){return this.$store.dispatch("unsubscribeUser",this.user.id)},linkClicked({target:e}){e.tagName==="SPAN"&&(e=e.parentNode),e.tagName==="A"&&window.open(e.href,"_blank")},userProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)},openProfileTab(){Xe().openSettingsModalTab("profile")},zoomAvatar(){const e={url:this.user.profile_image_url_original,mimetype:"image"};hs().setMedia([e]),hs().setCurrentMedia(e)},mentionUser(){Ai().openPostStatusModal({profileMention:!0,repliedUser:this.user})},onAvatarClickHandler(e){this.onAvatarClick&&(e.preventDefault(),this.onAvatarClick())},changeAvatar(){this.editImage="avatar"},changeBanner(){this.editImage="banner"},submitImage({canvas:e,file:t}){if(e)return e.toBlob(s=>this.submitImage({canvas:null,file:s}));const n=new window.FileReader;n.onload=s=>{const r=s.target.result;this.editImage==="avatar"?(this.newAvatar=r,this.newAvatarFile=t):(this.newBanner=r,this.newBannerFile=t),this.editImage=!1},n.readAsDataURL(t)},resetImage(){this.editImage==="avatar"?(this.newAvatar=null,this.newAvatarFile=null):(this.newBanner=null,this.newBannerFile=null),this.editImage=!1},addField(){this.newFields.length<this.maxFields&&this.newFields.push({name:"",value:""})},deleteField(e){this.newFields.splice(e,1)},propsToNative(e){return oO(e)},cancelImageText(){},resetState(){const e=this.$store.state.users.currentUser;
691this.newName=e.name_unescaped,this.newBio=o0(e.description),this.newAvatar=null,this.newAvatarFile=null,this.newBanner=null,this.newBannerFile=null,this.newActorType=e.actor_type,this.newBirthday=e.birthday,this.newShowBirthday=e.show_birthday,this.newShowRole=e.show_role,this.newFields=e.fields.map(t=>({name:t.name,value:t.value}))},updateProfile(){const e={note:this.newBio,display_name:this.newName,fields_attributes:this.newFields.filter(t=>t!=null),show_role:!!this.newShowRole,birthday:this.newBirthday||"",show_birthday:!!this.newShowBirthday};this.actorType&&(e.actor_type=this.actorType),this.newAvatarFile!==null&&(e.avatar=this.newAvatarFile),this.newBannerFile!==null&&(e.header=this.newBannerFile),this.$store.state.api.backendInteractor.updateProfile({params:e}).then(t=>{this.newFields.splice(this.newFields.length),Mfe(this.newFields,t.fields),this.$store.commit("addNewUsers",[t]),this.$store.commit("setCurrentUser",t),this.resetState()}).catch(t=>{this.displayUploadError(t)})},displayUploadError(e){Xe().pushGlobalNotice({messageKey:"upload.error.message",messageArgs:[e.message],level:"error"})}}},vme={class:"user-card"},bme={class:"user-card-inner"},yme={class:"user-info"},_me={class:"user-identity"},wme={class:"header-overlay"},Sme={class:"banner-image"},kme=["src"],$me={class:"user-info-avatar -link -overlay"},Cme={class:"user-info-avatar -link -overlay"},Tme={class:"user-summary"},Ame={class:"top-line"},Eme={class:"other-actions"},Ime=["disabled"],Pme=["href"],Lme={class:"name-wrapper"},Ome=["title"],Rme={class:"bottom-line"},Mme={key:0,class:"lock-icon"},Nme={key:1,class:"alert neutral user-role"},Fme={key:0,class:"alert neutral user-role"},Dme={key:1,class:"alert neutral user-role"},Ume={key:2,class:"alert neutral user-role"},jme={key:3,class:"alert user-role"},Bme={key:4,class:"alert neutral user-role"},zme={key:5,class:"alert neutral user-role"},qme={key:0,class:"user-interactions"},Hme={class:"btn-group"},Vme=["disabled"],Wme=["disabled"],Gme=["disabled"],Kme={key:1,class:"user-interactions"},xme={key:0,class:"personal-marks"},Yme={key:1,class:"highlighter"},Xme={value:"disabled"},Jme={value:"solid"},Zme={value:"striped"},Qme={value:"side"},ege={key:1},tge=["rows"],nge={key:4},sge={key:0,class:"user-profile-fields"},rge=["title"],oge=["title"],ige={key:0,class:"user-profile-fields"},age={class:"user-profile-field-name -edit"},lge=["onUpdate:modelValue","placeholder"],cge={class:"user-profile-field-value -edit"},uge=["onUpdate:modelValue","placeholder"],dge=["onClick"],fge={class:"label"},hge={key:7,class:"user-extras"},pge={key:0,class:"user-stats"},mge={key:0,class:"user-count"},gge={class:"user-count"},vge={class:"user-count"},bge={class:"user-count"},yge={key:0,class:"birthday"},_ge={key:1,class:"birthday"},wge={key:0,class:"user-card-setting"},Sge={class:"user-card-setting"},kge=["value"],$ge={key:0},Cge={class:"bottom-buttons"},Tge=["disabled"],Age=["disabled"],Ege=["title"];function Ige(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("FAIcon"),c=O("router-link"),u=O("AccountActions"),f=O("RichContent"),h=O("EmojiInput"),v=O("UserLink"),y=O("FollowButton"),S=O("ProgressButton"),C=O("FALayers"),I=O("ModerationTools"),$=O("RemoteFollow"),k=O("UserNote"),P=O("Select"),A=O("ColorInput"),R=O("Checkbox"),B=O("UserTimedFilterModal"),N=O("image-cropper"),Y=O("DialogModal");return p(),b("div",vme,[g("div",bme,[g("div",yme,[g("div",_me,[g("div",wme,[g("div",Sme,[g("img",{src:e.bannerImgSrc,class:he({"hide-bio":e.hideBio})},null,10,kme)]),g("div",{class:he(["banner-overlay",{"hide-bio":e.hideBio}])},null,2)]),e.avatarAction==="zoom"?(p(),b("a",{key:0,class:"user-info-avatar -link",onClick:t[0]||(t[0]=(...H)=>e.zoomAvatar&&e.zoomAvatar(...H))},[T(i,{user:e.user},null,8,["user"]),g("div",$me,[T(a,{class:"fa-scale-110 fa-old-padding",icon:"search-plus"})])])):e.editable?(p(),b("button",{key:1,class:he(["user-info-avatar button-unstyled -link",{"-editable":e.editable}]),onClick:t[1]||(t[1]=(...H)=>e.changeAvatar&&e.changeAvatar(...H))},[T(i,{user:e.user,url:e.avatarImgSrc},null,8,["user","url"]),g("div",Cme,[T(a,{class:"fa-scale-110 fa-old-pa
691dding",icon:"pencil"})])],2)):typeof e.avatarAction=="function"?(p(),x(i,{key:2,class:"user-info-avatar",user:e.user,onClick:e.avatarAction},null,8,["user","onClick"])):(p(),x(c,{key:3,class:"user-info-avatar",to:e.userProfileLink(e.user)},{default:X(()=>[T(i,{user:e.user},null,8,["user"])]),_:1},8,["to"])),g("div",Tme,[g("div",Ame,[g("div",Eme,[e.editable?(p(),b("button",{key:0,disabled:e.newName&&e.newName.length===0,class:"btn button-unstyled edit-banner-button",onClick:t[2]||(t[2]=(...H)=>e.changeBanner&&e.changeBanner(...H))},[de(w(e.$t("settings.change_banner"))+" ",1),T(a,{"fixed-width":"",class:"icon",icon:"pencil",title:e.$t("settings.change_banner")},null,8,["title"])],8,Ime)):!e.editable&&!e.isOtherUser&&e.user.is_local?(p(),b("button",{key:1,class:"button-unstyled edit-profile-button",onClick:t[3]||(t[3]=Te((...H)=>e.openProfileTab&&e.openProfileTab(...H),["stop"]))},[T(a,{"fixed-width":"",class:"icon",icon:"edit",title:e.$t("user_card.edit_profile")},null,8,["title"])])):E("",!0),e.isOtherUser&&!e.user.is_local?(p(),b("a",{key:2,href:e.user.statusnet_profile_url,target:"_blank",class:"button-unstyled external-link-button"},[T(a,{class:"icon",icon:"external-link-alt"})],8,Pme)):E("",!0),e.isOtherUser&&e.loggedIn?(p(),x(u,{key:3,user:e.user,relationship:e.relationship},null,8,["user","relationship"])):E("",!0),e.showExpand?(p(),x(c,{key:4,to:e.userProfileLink(e.user),class:"button-unstyled external-link-button",onClick:t[4]||(t[4]=H=>e.$emit("close"))},{default:X(()=>[T(a,{class:"icon",icon:"expand-alt"})]),_:1},8,["to"])):E("",!0),e.showClose?(p(),b("button",{key:5,class:"button-unstyled external-link-button",onClick:t[5]||(t[5]=H=>e.$emit("close"))},[T(a,{class:"icon",icon:"times"})])):E("",!0)]),g("div",Lme,[!e.editable||!e.editingName?(p(),x(c,{key:0,to:e.userProfileLink(e.user),class:"user-name"},{default:X(()=>[T(f,{title:e.editable?e.newName:e.user.name_unescaped,html:e.editable?e.newName:e.user.name_unescaped,emoji:e.editable?e.emoji:e.user.emoji},null,8,["title","html","emoji"])]),_:1},8,["to"])):e.editingName?(p(),x(h,{key:1,modelValue:e.newName,"onUpdate:modelValue":t[7]||(t[7]=H=>e.newName=H),"enable-emoji-picker":"",suggest:e.emojiSuggestor},{default:X(H=>[at(g("input",An({id:"username","onUpdate:modelValue":t[6]||(t[6]=D=>e.newName=D),class:"input name-changer"},e.propsToNative(H)),null,16),[[$u,e.newName]])]),_:1},8,["modelValue","suggest"])):E("",!0),e.editable?(p(),b("button",{key:2,class:"button-unstyled edit-button",title:e.$t("settings.toggle_edit"),onClick:t[8]||(t[8]=H=>e.editingName=!e.editingName)},[T(a,{class:"icon",icon:"pencil"})],8,Ome)):E("",!0)])]),g("div",Rme,[T(v,{class:"user-screen-name",user:e.user},null,8,["user"]),e.user.locked?(p(),b("span",Mme,[T(a,{icon:"lock",size:"sm"})])):E("",!0),e.relationship.followed_by&&e.loggedIn&&e.isOtherUser?(p(),b("span",Nme,w(e.$t("user_card.follows_you")),1)):E("",!0),e.hideBio?E("",!0):(p(),b(Se,{key:2},[e.user.deactivated?(p(),b("span",Fme,w(e.$t("user_card.deactivated")),1)):E("",!0),e.visibleRole?(p(),b("span",Dme,w(e.$t(`general.role.${e.visibleRole}`)),1)):E("",!0),e.user.actor_type==="Service"?(p(),b("span",Ume,w(e.$t("user_card.bot")),1)):E("",!0),e.user.actor_type==="Group"?(p(),b("span",jme,w(e.$t("user_card.group")),1)):E("",!0),e.relationship.muting&&e.muteExpiryAvailable?(p(),b("span",Bme,w(e.muteExpiry),1)):E("",!0),e.relationship.blocking&&e.blockExpiryAvailable?(p(),b("span",zme,w(e.blockExpiry),1)):E("",!0)],64))])])]),e.loggedIn&&e.isOtherUser?(p(),b("div",qme,[g("div",Hme,[T(y,{relationship:e.relationship,user:e.user},null,8,["relationship","user"]),e.relationship.following?(p(),b(Se,{key:0},[e.relationship.notifying?(p(),x(S,{key:1,class:"btn button-default toggled",click:e.unsubscribeUser,title:e.$t("user_card.unsubscribe")},{default:X(()=>[T(C,null,{default:X(()=>[T(a,{icon:"rss",transform:"left-5 shrink-6 up-3 rotate-20",flip:"horizontal"}),T(a,{icon:"rss",transform:"right-5 shrink-6 up-3 rotate-20"}),T(a,{icon:"bell"})]),_:1})]),_:1},8,["click","title"])):(p(),x(S,{key:0,class:"btn button-default",click:e.subscribeUser,title:e.$t("user_card.subscribe")},{default:X(()=>[T(a,{icon:"bell"})]),_:1},8,["click","title"]))],64)):E("",!0)]),e.relationship.muting?(p(),b("button",{key:0,class:"btn button-default btn-mute toggled",disabled:e.user.deactivated,onClick:t[9]||(t[9]=(...H)=>e.unmuteUser&&e.unmuteUser(...H))},w(e.$t("user_card.muted")),9,Vme)):(p(),b("button",{key:1,class:"btn button-default btn-mute",disabled:e.user.deactivated,onClick:t[10
691]||(t[10]=(...H)=>e.muteUser&&e.muteUser(...H))},w(e.$t("user_card.mute")),9,Wme)),g("button",{class:"btn button-default btn-mention",disabled:e.user.deactivated,onClick:t[11]||(t[11]=(...H)=>e.mentionUser&&e.mentionUser(...H))},w(e.$t("user_card.mention")),9,Gme),e.showModerationMenu?(p(),x(I,{key:2,class:"moderation-menu",user:e.user},null,8,["user"])):E("",!0)])):E("",!0),!e.loggedIn&&e.user.is_local?(p(),b("div",Kme,[T($,{user:e.user},null,8,["user"])])):E("",!0)])]),!e.editable&&e.loggedIn&&e.isOtherUser&&(e.hasNote||!e.hideBio)&&!e.mergedConfig.userCardHidePersonalMarks?(p(),b("div",xme,[e.hasNote||e.hasNoteEditor&&e.supportsNote?(p(),x(k,{key:0,user:e.user,relationship:e.relationship,editable:e.hasNoteEditor},null,8,["user","relationship","editable"])):E("",!0),e.hideBio?E("",!0):(p(),b("div",Yme,[g("h4",null,w(e.$t("user_card.highlight_header")),1),T(P,{id:"userHighlightSel"+e.user.id,modelValue:e.userHighlightType,"onUpdate:modelValue":t[12]||(t[12]=H=>e.userHighlightType=H),class:he(["userHighlightSel unstyled",{"-none":e.userHighlightType==="disabled"}])},{default:X(()=>[g("option",Xme,w(e.$t("user_card.highlight_new.disabled")),1),g("option",Jme,w(e.$t("user_card.highlight_new.solid")),1),g("option",Zme,w(e.$t("user_card.highlight_new.striped")),1),g("option",Qme,w(e.$t("user_card.highlight_new.side")),1)]),_:1},8,["id","modelValue","class"]),e.userHighlightType!=="disabled"?(p(),x(A,{key:0,modelValue:e.userHighlightColor,"onUpdate:modelValue":t[13]||(t[13]=H=>e.userHighlightColor=H),class:"highlighter-color","show-optional-checkbox":!1,name:"'userHighlightColorTx'+user.id",unstyled:!0},null,8,["modelValue"])):E("",!0)]))])):E("",!0),e.editable?(p(),b("h3",ege,[g("span",null,w(e.$t("settings.bio")),1),t[30]||(t[30]=de(" "+w(" ")+" ",-1)),g("button",{class:"button-default",onClick:t[14]||(t[14]=H=>e.editingBio=!e.editingBio)},[de(w(e.$t("settings.toggle_edit"))+" ",1),T(a,{class:"fa-scale-110 fa-old-padding",icon:"pencil"})])])):E("",!0),!e.editable||!e.editingBio?(p(),b(Se,{key:2},[e.hideBio?E("",!0):(p(),x(f,{key:0,class:he(["user-card-bio",{"-justify-left":e.mergedConfig.userCardLeftJustify}]),html:e.editable?e.newBio.replace(/\n/g,"<br>"):e.user.description_html,emoji:e.editable?e.emoji:e.user.emoji,"handle-links":!0},null,8,["class","html","emoji"]))],64)):e.editingBio?(p(),x(h,{key:3,modelValue:e.newBio,"onUpdate:modelValue":t[16]||(t[16]=H=>e.newBio=H),"enable-emoji-picker":"",class:he(["user-card-bio",{"-justify-left":e.mergedConfig.userCardLeftJustify}]),suggest:e.emojiUserSuggestor},{default:X(H=>[at(g("textarea",An({"onUpdate:modelValue":t[15]||(t[15]=D=>e.newBio=D),class:"input bio resize-height"},e.propsToNative(H),{rows:e.newBio.split(/\n/g).length}),null,16,tge),[[Nt,e.newBio]])]),_:1},8,["modelValue","class","suggest"])):E("",!0),e.editable?(p(),b("h3",nge,[g("span",null,w(e.$t("settings.profile_fields.label")),1),t[31]||(t[31]=de(" "+w(" ")+" ",-1)),g("button",{class:"button-default",onClick:t[17]||(t[17]=H=>e.editingFields=!e.editingFields)},[de(w(e.$t("settings.toggle_edit"))+" ",1),T(a,{class:"fa-scale-110 fa-old-padding",icon:"pencil"})])])):E("",!0),!e.editable||!e.editingFields?(p(),b(Se,{key:5},[!e.hideBio&&e.user.fields_html&&e.user.fields_html.length>0?(p(),b("div",sge,[(p(!0),b(Se,null,We(e.editable?e.newFields:e.user.fields_html,(H,D)=>(p(),b("dl",{key:D,class:"user-profile-field"},[g("dt",{title:H.name,class:"user-profile-field-name"},[T(f,{html:H.name,emoji:e.editable?e.emoji:e.user.emoji},null,8,["html","emoji"])],8,rge),g("dd",{title:H.value,class:"user-profile-field-value"},[T(f,{html:H.value,emoji:e.editable?e.emoji:e.user.emoji},null,8,["html","emoji"])],8,oge)]))),128))])):E("",!0)],64)):e.editingFields?(p(),b(Se,{key:6}
691,[e.maxFields>0?(p(),b("div",ige,[(p(!0),b(Se,null,We(e.newFields,(H,D)=>(p(),b("dl",{key:D,class:"user-profile-field"},[g("dt",age,[T(h,{modelValue:e.newFields[D].name,"onUpdate:modelValue":oe=>e.newFields[D].name=oe,"enable-emoji-picker":"",suggest:e.emojiSuggestor},{default:X(oe=>[at(g("input",An({"onUpdate:modelValue":le=>e.newFields[D].name=le,placeholder:e.$t("settings.profile_fields.name")},{ref_for:!0},e.propsToNative(oe),{class:"input"}),null,16,lge),[[$u,e.newFields[D].name]])]),_:2},1032,["modelValue","onUpdate:modelValue","suggest"])]),g("dd",cge,[T(h,{modelValue:e.newFields[D].value,"onUpdate:modelValue":oe=>e.newFields[D].value=oe,"enable-emoji-picker":"",suggest:e.emojiSuggestor},{default:X(oe=>[at(g("input",An({"onUpdate:modelValue":le=>e.newFields[D].value=le,placeholder:e.$t("settings.profile_fields.value")},{ref_for:!0},e.propsToNative(oe),{class:"input input"}),null,16,uge),[[$u,e.newFields[D].value]])]),_:2},1032,["modelValue","onUpdate:modelValue","suggest"]),g("button",{class:"delete-field button-default -hover-highlight",onClick:oe=>e.deleteField(D)},[e.newFields.length>1?(p(),x(a,{key:0,icon:"times"})):E("",!0)],8,dge)])]))),128)),e.newFields.length<e.maxFields?(p(),b("button",{key:0,class:"user-profile-field-add add-field button-default -hover-highlight",onClick:t[18]||(t[18]=(...H)=>e.addField&&e.addField(...H))},[T(a,{icon:"plus",class:"icon"}),g("span",fge,w(e.$t("settings.profile_fields.add_field")),1)])):E("",!0)])):E("",!0)],64)):E("",!0),e.hideBio?E("",!0):(p(),b("div",hge,[!e.editable&&!e.mergedConfig.hideUserStats?(p(),b("span",pge,[!e.mergedConfig.hideUserStats&&!e.hideBio?(p(),b("dl",mge,[g("dd",null,w(e.user.statuses_count),1),t[32]||(t[32]=de(" "+w(" ")+" ",-1)),g("dt",null,w(e.$t("user_card.statuses")),1)])):E("",!0),g("dl",gge,[g("dd",null,w(e.dailyAvg),1),t[33]||(t[33]=de(" "+w(" ")+" ",-1)),g("dt",null,w(e.$t("user_card.statuses_per_day")),1)]),g("dl",vge,[g("dd",null,w(e.hideFollowsCount?e.$t("user_card.hidden"):e.user.friends_count),1),t[34]||(t[34]=de(" "+w(" ")+" ",-1)),g("dt",null,w(e.$t("user_card.followees")),1)]),g("dl",bge,[g("dd",null,w(e.hideFollowersCount?e.$t("user_card.hidden"):e.user.followers_count),1),t[35]||(t[35]=de(" "+w(" ")+" ",-1)),g("dt",null,w(e.$t("user_card.followers")),1)])])):E("",!0),e.hideBio?E("",!0):(p(),b(Se,{key:1},[e.user.birthday&&!e.editable?(p(),b("div",yge,[T(a,{class:"fa-old-padding",icon:"birthday-cake"}),de(" "+w(e.$t("user_card.birthday",{birthday:e.formattedBirthday})),1)])):e.editable?(p(),b("div",_ge,[g("div",null,[T(R,{modelValue:e.newShowBirthday,"onUpdate:modelValue":t[19]||(t[19]=H=>e.newShowBirthday=H)},{default:X(()=>[de(w(e.$t("settings.birthday.show_birthday")),1)]),_:1},8,["modelValue"])]),T(a,{class:"fa-old-padding",icon:"birthday-cake"}),de(" "+w(e.$t("settings.birthday.label"))+" ",1),at(g("input",{id:"birthday","onUpdate:modelValue":t[20]||(t[20]=H=>e.newBirthday=H),type:"date",class:"input birthday-input"},null,512),[[Nt,e.newBirthday]])])):E("",!0)],64))])),e.editable?(p(),b(Se,{key:8},[g("h3",null,w(e.$t("settings.profile_other")),1),e.role==="admin"||e.role==="moderator"?(p(),b("p",wge,[T(R,{modelValue:e.newShowRole,"onUpdate:modelValue":t[21]||(t[21]=H=>e.newShowRole=H)},{default:X(()=>[e.role==="admin"?(p(),b(Se,{key:0},[de(w(e.$t("settings.show_admin_badge")),1)],64)):E("",!0),e.role==="moderator"?(p(),b(Se,{key:1},[de(w(e.$t("settings.show_moderator_badge")),1)],64)):E("",!0)]),_:1},8,["modelValue"])])):E("",!0),g("p",Sge,[g("label",null,[de(w(e.$t("settings.actor_type"))+" ",1),T(P,{modelValue:e.newActorType,"onUpdate:modelValue":t[22]||(t[22]=H=>e.newActorType=H)},{default:X(()=>[(p(!0),b(Se,null,We(e.availableActorTypes,H=>(p(),b("option",{key:H,value:H},w(e.$t("settings.actor_type_"+(H==="Person"?"person_proper":H))),9,kge))),128))]),_:1},8,["modelValue"]),e.groupActorAvailable?(p(),b("div",$ge,[g("small",null,w(e.$t("settings.actor_type_description")),1)])):E("",!0)])]),g("div",Cge,[e.editable?(p(),b("button",{key:0,disabled:!e.somethingToSave,class:"btn button-default reset-profile-button",onClick:t[23]||(t[23]=(...H)=>e.resetState&&e.resetState(...H))},[de(w(e.$t("settings.reset"))+" ",1),T(a,{"fixed-width":"",class:"icon",icon:"clock-rotate-left",title:e.$t("user_card.edit_profile")},null,8,["title"])],8,Tge)):E("",!0),e.editable?(p(),b("button",{key:1,disabled:!e.somethingToSave,class:"btn button-default save-profile-button",onClick:t[24]||(t[24]=(...H)=>e.updateProfile&&e.updateProfile(...H))},[de(w(e.$t("settings.save"))+" ",1),T(a,{"fixed-width":"",class:"icon",icon:"save",title:e.$t("user_card.edit_profile")},null,8,["title"])],8,Age)):E("",!0)])],64)):E("",!0),(p(),x(Yn,{to:"#modal"}
691,[T(B,{ref:"timedMuteDialog",user:e.user,"is-mute":!0},null,8,["user"])])),(p(),x(Yn,{to:"#modal"},[e.editImage?(p(),x(Y,{key:0,class:"edit-image"},{header:X(()=>[de(w(e.editImage==="avatar"?e.$t("settings.change_avatar"):e.$t("settings.change_banner")),1)]),footer:X(()=>[g("button",{class:"button-default btn",type:"button",onClick:t[26]||(t[26]=H=>e.editImage=!1)},w(e.$t("image_cropper.cancel")),1),g("button",{title:e.editImage==="avatar"?e.$t("settings.reset_avatar"):e.$t("settings.reset_banner"),class:"button-default btn reset-button",onClick:t[27]||(t[27]=(...H)=>e.resetImage&&e.resetImage(...H))},w(e.editImage==="avatar"?e.$t("settings.reset_avatar"):e.$t("settings.reset_banner")),9,Ege),g("button",{class:"button-default btn",type:"button",onClick:t[28]||(t[28]=H=>e.$refs.cropper.submit(!1))},w(e.$t("image_cropper.save_without_cropping")),1),g("button",{class:"button-default btn",type:"button",onClick:t[29]||(t[29]=H=>e.$refs.cropper.submit(!0))},w(e.$t("image_cropper.save")),1)]),default:X(()=>[g("p",null,w(e.editImage==="avatar"?e.$t("settings.avatar_size_instruction"):e.$t("settings.banner_size_instruction")),1),g("div",{class:he(["image-container",{"-banner":e.editImage==="banner"}])},[T(N,{ref:"cropper",class:"cropper","aspect-ratio":e.editImage==="avatar"?1:3,onSubmit:e.submitImage},null,8,["aspect-ratio","onSubmit"])],2),g("button",{id:"pick-image",class:"button-default btn",type:"button",onClick:t[25]||(t[25]=()=>e.$refs.cropper.pickImage())},w(e.$t("settings.select_picture")),1)]),_:1})):E("",!0)]))])}const $d=ge(gme,[["render",Ige]]),Pge={computed:{signedIn(){return this.user},...mn({user:e=>e.users.currentUser})},components:{AuthForm:GL,PostStatusForm:lc,UserCard:$d}},Lge={class:"user-panel"},Oge={key:"user-panel-signed",class:"panel panel-default signed-in"};function Rge(e,t,n,s,r,o){const i=O("UserCard"),a=O("PostStatusForm"),c=O("auth-form");return p(),b("aside",Lge,[e.signedIn?(p(),b("div",Oge,[T(i,{"user-id":e.user.id,"hide-bio":!0},null,8,["user-id"]),T(a)])):(p(),x(c,{key:"user-panel"}))])}const Mge=ge(Pge,[["render",Rge]]),SO=new Set(["dms","interactions","notifications","chat","chats"]),Nge=new Set(["user-profile","legacy-user-profile"]),Dl={home:{route:"friends",icon:"home",label:"nav.home_timeline",criteria:["!private"]},public:{route:"public-timeline",anon:!0,icon:"users",label:"nav.public_tl",criteria:["!private"]},bubble:{route:"bubble",anon:!0,icon:"city",label:"nav.bubble",criteria:["!private","federating","supportsBubbleTimeline"]},twkn:{route:"public-external-timeline",anon:!0,icon:"globe",label:"nav.twkn",criteria:["!private","federating"]},bookmarks:{route:"bookmarks",icon:"bookmark",label:"nav.bookmarks"},favorites:{routeObject:{name:"user-profile",query:{tab:"favorites"}},icon:"star",label:"user_card.favorites"},dms:{route:"dms",icon:"envelope",label:"nav.dms"}},Vh={bookmarks:{route:"bookmarks",icon:"bookmark",label:"nav.bookmarks",criteria:["!supportsBookmarkFolders"]},interactions:{route:"interactions",icon:"bell",label:"nav.interactions"},chats:{route:"chats",icon:"comments",label:"nav.chats",badgeStyle:"notification",badgeGetter:"unreadChatCount",criteria:["chats"]},friendRequests:{route:"friend-requests",icon:"user-plus",label:"nav.friend_requests",badgeStyle:"notification",criteria:["lockedUser"],badgeGetter:"followRequestCount"},about:{route:"about",anon:!0,icon:"info-circle",label:"nav.about"},announcements:{route:"announcements",icon:"bullhorn",label:"nav.announcements",store:"announcements",badgeStyle:"notification",badgeGetter:"unreadAnnouncementCount",criteria:["announcements"]},drafts:{route:"drafts",icon:"file-pen",label:"nav.drafts",badgeStyle:"neutral",badgeGetter:"draftCount"}};function kO(e,t){if(!e.route&&!e.routeObject)return null;let n;return e.routeObject?n=e.routeObject:n={name:e.anon||t?e.route:e.anonRoute},SO.has(n.name)?n.params={username:t.screen_name}:Nge.has(n.name)&&(n.params={name:t.screen_name}),n}const Fge={props:["to"]};function Dge(e,t,n,s,r,o){const i=O("router-link");return n.to?(p(),x(i,{key:0,to:n.to,custom:""},{default:X(a=>[Ot(e.$slots,"default",lh(up(a)))]),_:3},8,["to"])):Ot(e.$slots,"default",lh(An({key:1},{})))}const Uge=ge(Fge,[["render",Dge]]);et.add(l2);const jge={props:["item","showPin"],components:{OptionalRouterLink:Uge},methods:{isPinned(e){return this.pinnedItems.has(e)},togglePin(e){this.isPinned(e)?_n().removeCollectionPreference({path:"collections.pinnedNavItems",value:e}):_n().addCollectionPreference({path:"collections.pinnedNavItems",value:e}),_n().pushServerSideStorage()}},computed:{routeTo(){return kO(this.item,this.currentUser)},getters(){return this.$store.getters},...pp(ms),...mn({currentUser:e=>e.users.currentUser}),...sn(_n,{pinnedItems:e=>new Set(e.prefsStorage.collections.pinnedNavItems)})}},Bge=["src","alt","title"],zge={key:1,class:"menu-icon iconEmoji"},qge={key:2,class:"icon iconLetter fa-scale-110 menu-icon"},Hge={class:"label"},Vge={key:1,class:"badge badge-notification"},Wge=["title","aria-pressed"];function Gge(e,t,n,s,r,o){const i=O("FAIcon"),a=O("OptionalRouterLink");return p(),x(a,{to:e.routeTo},{default:X(({isActive:c,href:u,navigate:f}={})=>[g("li",An({class:["NavigationEntry menu-item",{"-active":c}]},e.$attrs),[(p(),x(Oa(e.routeTo?"a":"button"),{class:"main-link",href:u,onClick:f},{default:X(()=>[g("span",null,[e.item.icon?(p(),x(i,{key:0,"fixed-width":"",class:"fa-scale-110 menu-icon",icon:e.item.icon},null,8,["icon"])):E("",!0)]),e.item.iconEmojiUrl?(p(),b("img",{key:0,class:"menu-icon iconEmoji iconEmoji-image",src:e.item.iconEmojiUrl,alt:e.item.iconEmoji,title:e.item.iconEmoji},null,8,Bge)):e.item.iconEmoji?(p(),b("span",zge,[g("span",null,w(e.item.iconEmoji),1)])):e.item.iconLetter?(p(),b("span",qge,w(e.item.iconLetter),1)):E("",!0),g("span",Hge,w(e.item.labelRaw||e.$t(e.item.label)),1
691)]),_:2},1032,["href","onClick"])),Ot(e.$slots,"default"),e.item.badgeGetter&&e.getters[e.item.badgeGetter]?(p(),b("div",{key:0,class:he(["badge",[`-${e.item.badgeStyle}`]])},w(e.getters[e.item.badgeGetter]),3)):e.item.badgeGetter&&e.item.store&&this[`${e.item.store}Store`][e.item.badgeGetter]?(p(),b("div",Vge,w(this[`${e.item.store}Store`][e.item.badgeGetter]),1)):E("",!0),e.showPin&&e.currentUser?(p(),b("button",{key:2,type:"button",class:"button-unstyled extra-button",title:e.$t(e.isPinned?"general.unpin":"general.pin"),"aria-pressed":!!e.isPinned,onClick:t[0]||(t[0]=Te(h=>e.togglePin(e.item.name),["stop","prevent"]))},[e.showPin&&e.currentUser?(p(),x(i,{key:0,"fixed-width":"",class:he(["fa-scale-110",{veryfaint:!e.isPinned(e.item.name)}]),transform:e.isPinned(e.item.name)?"":"rotate-45",icon:"thumbtack"},null,8,["class","transform"])):E("",!0)],8,Wge)):E("",!0)],16)]),_:3},8,["to"])}const rm=ge(jge,[["render",Gge]]),nd=(e=[],{hasChats:t,hasAnnouncements:n,isFederating:s,isPrivate:r,currentUser:o,supportsBookmarkFolders:i,supportsBubbleTimeline:a})=>e.filter(({criteria:c,anon:u,anonRoute:f})=>{const h=new Set(c||[]);return!(!s&&h.has("federating")||!o&&r&&h.has("!private")||!o&&!(u||f)||(!o||!o.locked)&&h.has("lockedUser")||!t&&h.has("chats")||!n&&h.has("announcements")||!a&&h.has("supportsBubbleTimeline")||!i&&h.has("supportsBookmarkFolders")||i&&h.has("!supportsBookmarkFolders"))}),$O=e=>e.allLists.map(t=>({name:"list-"+t.id,routeObject:{name:"lists-timeline",params:{id:t.id}},labelRaw:t.title,iconLetter:t.title[0]})),CO=e=>e.allFolders?e.allFolders.map(t=>({name:"bookmark-folder-"+t.id,routeObject:{name:"bookmark-folder",params:{id:t.id}},labelRaw:t.name,iconEmoji:t.emoji,iconEmojiUrl:t.emoji_url,iconLetter:t.name[0]})):[],Kge={props:["showPin"],components:{NavigationEntry:rm},computed:{...sn(no,{folders:CO})}};function xge(e,t,n,s,r,o){const i=O("NavigationEntry");return p(),b("ul",null,[T(i,{item:{name:"bookmarks",routeObject:{name:"bookmarks"},label:"nav.all_bookmarks",icon:"bookmark"},"show-pin":e.showPin},null,8,["show-pin"]),(p(!0),b(Se,null,We(e.folders,a=>(p(),x(i,{key:a.id,"show-pin":e.showPin,item:a},null,8,["show-pin","item"]))),128))])}const TO=ge(Kge,[["render",xge]]),Yge={props:["showPin"],components:{NavigationEntry:rm},computed:{...sn(Fn,{lists:$O}),...mn({currentUser:e=>e.users.currentUser,privateMode:e=>e.instance.private,federating:e=>e.instance.federating})}};function Xge(e,t,n,s,r,o){const i=O("NavigationEntry");return p(),b("ul",null,[(p(!0),b(Se,null,We(e.lists,a=>(p(),x(i,{key:a.name,"show-pin":e.showPin,item:a},null,8,["show-pin","item"]))),128))])}const AO=ge(Yge,[["render",Xge]]);et.add(YI,md,JI,J_,Pp,hd,ic,Lp,lP,Ep);const Jge={props:["limit"],methods:{getRouteTo(e){return kO(e,this.currentUser)}},components:{StillImage:Ji},computed:{getters(){return this.$store.getters},...sn(Fn,{lists:$O}),...sn(ms,{supportsAnnouncements:e=>e.supportsAnnouncements}),...sn(no,{bookmarks:CO}),...sn(_n,{pinnedItems:e=>new Set(e.prefsStorage.collections.pinnedNavItems)}),...mn({currentUser:e=>e.users.currentUser,followRequestCount:e=>e.api.followRequests.length,privateMode:e=>e.instance.private,federating:e=>e.instance.federating,pleromaChatMessagesAvailable:e=>e.instance.pleromaChatMessagesAvailable,bubbleTimeline:e=>e.instance.localBubbleInstances.length>0}),pinnedList(){return this.currentUser?nd([...Object.entries({...Dl}).filter(([e])=>this.pinnedItems.has(e)).map(([e,t])=>({...t,name:e})),...this.lists.filter(e=>this.pinnedItems.has(e.name)),...this.bookmarks.filter(e=>this.pinnedItems.has(e.name)),...Object.entries({...Vh}).filter(([e])=>this.pinnedItems.has(e)).map(([e,t])=>({...t,name:e}))],{hasChats:this.pleromaChatMessagesAvailable,hasAnnouncements:this.supportsAnnouncements,supportsBubbleTimeline:this.bubbleTimeline,supportsBookmarkFolders:this.bookmarks,isFederating:this.federating,isPrivate:this.privateMode,currentUser:this.currentUser}).slice(0,this.limit):nd([{...Dl.public,name:"public"},{...Dl.twkn,name:"twkn"},{...Vh.about,name:"about"}],{hasChats:this.pleromaChatMessagesAvailable,hasAnnouncements:this.supportsAnnouncements,isFederating:this.federating,isPrivate:this.privateMode,currentUser:this.currentUser,supportsBubbleTimeline:this.bubbleTimeline,supportsBookmarkFolders:this.bookmarks})}}},Zge={class:"NavigationPins"}
691,Qge={key:1,class:"iconLetter fa-scale-110 fa-old-padding"};function e1e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("StillImage"),c=O("router-link");return p(),b("span",Zge,[(p(!0),b(Se,null,We(e.pinnedList,u=>(p(),x(c,{key:u.name,class:"button-unstyled pinned-item","active-class":"toggled",to:e.getRouteTo(u),title:u.labelRaw||e.$t(u.label)},{default:X(()=>[u.icon?(p(),x(i,{key:0,"fixed-width":"",icon:u.icon},null,8,["icon"])):E("",!0),u.iconLetter&&!u.iconEmoji?(p(),b("span",Qge,w(u.iconLetter),1)):E("",!0),u.iconEmoji?(p(),x(a,{key:2,class:"bookmark-emoji",src:u.iconEmojiUrl},null,8,["src"])):E("",!0),u.badgeGetter&&e.getters[u.badgeGetter]?(p(),b("div",{key:3,class:he(["badge -dot",[`-${u.badgeStyle}`]])},null,2)):E("",!0)]),_:2},1032,["to","title"]))),128))])}const EO=ge(Jge,[["render",e1e]]);et.add(YI,md,JI,J_,Pp,za,X_,hd,ic,Lp,lP,Ep,pd,cP);const t1e={props:["forceExpand","forceEditMode"],created(){},components:{BookmarkFoldersMenuContent:TO,ListsMenuContent:AO,NavigationEntry:rm,NavigationPins:EO,Checkbox:io},data(){return{editMode:!1,showTimelines:!1,showLists:!1,showBookmarkFolders:!1,timelinesList:Object.entries(Dl).map(([e,t])=>({...t,name:e})),rootList:Object.entries(Vh).map(([e,t])=>({...t,name:e}))}},methods:{toggleTimelines(){this.showTimelines=!this.showTimelines},toggleLists(){this.showLists=!this.showLists},toggleBookmarkFolders(){this.showBookmarkFolders=!this.showBookmarkFolders},toggleEditMode(){this.editMode=!this.editMode},toggleCollapse(){_n().setPreference({path:"simple.collapseNav",value:!this.collapsed}),_n().pushServerSideStorage()},isPinned(e){return this.pinnedItems.has(e)},togglePin(e){this.isPinned(e)?_n().removeCollectionPreference({path:"collections.pinnedNavItems",value:e}):_n().addCollectionPreference({path:"collections.pinnedNavItems",value:e}),_n().pushServerSideStorage()}},computed:{...sn(ms,{unreadAnnouncementCount:"unreadAnnouncementCount",supportsAnnouncements:e=>e.supportsAnnouncements}),...sn(_n,{collapsed:e=>e.prefsStorage.simple.collapseNav,pinnedItems:e=>new Set(e.prefsStorage.collections.pinnedNavItems)}),...mn({currentUser:e=>e.users.currentUser,followRequestCount:e=>e.api.followRequests.length,privateMode:e=>e.instance.private,federating:e=>e.instance.federating,pleromaChatMessagesAvailable:e=>e.instance.pleromaChatMessagesAvailable,bookmarkFolders:e=>e.instance.pleromaBookmarkFoldersAvailable,bubbleTimeline:e=>e.instance.localBubbleInstances.length>0}),timelinesItems(){return nd(Object.entries({...Dl}).filter(([e])=>e!=="bookmarks").map(([e,t])=>({...t,name:e})),{hasChats:this.pleromaChatMessagesAvailable,hasAnnouncements:this.supportsAnnouncements,isFederating:this.federating,isPrivate:this.privateMode,currentUser:this.currentUser,supportsBubbleTimeline:this.bubbleTimeline,supportsBookmarkFolders:this.bookmarkFolders})},rootItems(){return nd(Object.entries({...Vh}).map(([e,t])=>({...t,name:e})),{hasChats:this.pleromaChatMessagesAvailable,hasAnnouncements:this.supportsAnnouncements,isFederating:this.federating,isPrivate:this.privateMode,currentUser:this.currentUser,supportsBubbleTimeline:this.bubbleTimeline,supportsBookmarkFolders:this.bookmarkFolders})},...bn(["unreadChatCount"])}},n1e={class:"NavPanel"},s1e={class:"panel panel-default"},r1e={key:0,class:"panel-heading nav-panel-heading"},o1e={key:1,class:"panel-body"},i1e={class:"timelines"};function a1e(e,t,n,s,r,o){const i=O("NavigationPins"),a=O("FAIcon"),c=O("NavigationEntry"),u=O("router-link"),f=O("ListsMenuContent"),h=O("BookmarkFoldersMenuContent");return p(),b("div",n1e,[g("div",s1e,[e.forceExpand?E("",!0):(p(),b("div",r1e,[T(i,{limit:6}),t[3]||(t[3]=g("div",{class:"spacer"},null,-1)),g("button",{class:"button-unstyled",onClick:t[0]||(t[0]=(...v)=>e.toggleCollapse&&e.toggleCollapse(...v))},[T(a,{class:"navigation-chevron","fixed-width":"",icon:e.collapsed?"chevron-down":"chevron-up"},null,8,["icon"])])])),!e.collapsed||e.forceExpand?(p(),b("ul",o1e,[e.currentUser||!e.privateMode?(p(),x(c,{key:0,"show-pin":!1,item:{icon:"stream",label:"nav.timelines"},"aria-expanded":e.showTimelines?"true":"false",onClick:e.toggleTimelines},{default:X(()=>[T(a,{class:"timelines-chevron","fixed-width":"",icon:e.showTimelines?"chevron-up":"chevron-down"},null,8,["icon"])]),_:1},8,["aria-expanded","onClick"])):E("",!0),at(g("div",{class:he(["timelines-background menu-item-collapsible",{"-expanded":e.showTimelines}])},[g("div",i1e,[(p(!0),b(Se,null,We(e.timelinesItems,v=>(p(),x(c,{key:v.name,"show-pin":e.editMode||e.forceEditMode,item:v},null,8,["show-pin","item"]))),128))])],2),[[Cr,e.showTimelines]]),e.currentUser?(p(),x(c,{key:1,"show-pin":!1,item:{icon:"list",label:"nav.lists"},"aria-expanded":e.showLists?"true":"false",onClick:e.toggleLists},{default:X(()=>[T(u,{title:e.$t("lists.manage_lists"),class:"button-unstyled extra-button",to:{name:"lists"},onClick:t[1]||(t[1]=Te(()=>{},["stop"]))},{default:X(()=>[T(a,{"fixed-width":"",icon:"wrench"})]),_:1},8,["title"]),T(a,{class:"timelines-chevron","fixed-width":"",icon:e.showLists?"chevron-up":"chevron-down"},null,8,["icon"])]),_:1},8,["aria-expanded","onClick"])):E("",!0),at(g("div",{class:he(["timelines-background menu-item-collapsible",{"-expanded":e.showLists}])},[T(f,{"show-pin":e.editMode||e.forceEditMode,class:"timelines"},null,8,["show-pin"])],2),[[Cr,e.showLists]]),e.currentUser&&e.bookmarkFolders?(p(),x(c,{key:2,"show-pin":!1,item:{icon:"bookmark",label:"nav.bookmarks"},"aria-expanded":e.showBookmarkFolders?"true":"false",onClick:e.toggleBookmarkFolders},{default:X(()=>[T(u,{title:e.$t("bookmarks.manage_bookmark_folders"),class:"button-unstyled extra-button",to:{name:"bookmark-folders"},onClick:t[2]||(t[2]=Te(()=>{},["stop"]))},{default:X(()=>[T(a,{"fixed-width":"",icon:"wrench"})]),_:1},8,["title"]),T(a,{class:"timelines-chevron","fixed-width":"",icon:e.showBookmarkFolders?"chevron-up":"chevron-down"},null,8,["icon"])]),_:1},8,["aria-expanded","onClick"])):E("",!0),at(g("div",{class:he(["timelines-background menu-item-collapsible",{"-expanded":e.showBookmarkFolders}])},[T(h,{"show-pin":e.editMode||e.forceEditMode,class:"timelines"},null,8,["show-pin"])],2),[[Cr,e.showBookmarkFolders]]),(p(!0),b(Se,null,We(e.rootItems,v=>(p(),x(c,{key:v.name,"show-pin":e.editMode||e.forceEditMode,item:v},null,8,["show-pin","item"]))),128)),!e.forceEditMode&&e.currentUser?(p(),x(c,{key:3,"show-pin":!1,item:{labelRaw:e.editMode?e.$t("nav.edit_finish"):e.$t("nav.edit_pinned"),icon:e.editMode?"check":"wrench"},onClick:e.toggleEditMode},null,8,["item","onClick"])):E("",!0)])):E("",!0)])])}const IO=ge(t1e,[["render",a1e]]),l1e={computed:{instanceSpecificPanelContent(){return this.$store.state.instance.instanceSpecificPanelContent}}}
691,c1e={class:"instance-specific-panel"},u1e={class:"panel panel-default"},d1e={class:"panel-body"},f1e=["innerHTML"];function h1e(e,t,n,s,r,o){return p(),b("div",c1e,[g("div",u1e,[g("div",d1e,[g("div",{innerHTML:e.instanceSpecificPanelContent},null,8,f1e)])])])}const PO=ge(l1e,[["render",h1e]]),p1e={computed:{shout:function(){return this.$store.state.instance.shoutAvailable},pleromaChatMessages:function(){return this.$store.state.instance.pleromaChatMessagesAvailable},gopher:function(){return this.$store.state.instance.gopherAvailable},whoToFollow:function(){return this.$store.state.instance.suggestionsEnabled},mediaProxy:function(){return this.$store.state.instance.mediaProxyAvailable},minimalScopesMode:function(){return this.$store.state.instance.minimalScopesMode},textlimit:function(){return this.$store.state.instance.textlimit},uploadlimit:function(){return By.fileSizeFormat(this.$store.state.instance.uploadlimit)}}},m1e={class:"features-panel"},g1e={class:"panel panel-default base01-background"},v1e={class:"panel-heading timeline-heading base02-background base04 -sticky"},b1e={class:"title"},y1e={class:"panel-body"},_1e={key:0},w1e={key:1},S1e={key:2},k1e={key:3},$1e={key:4};function C1e(e,t,n,s,r,o){return p(),b("div",m1e,[g("div",g1e,[g("div",v1e,[g("h1",b1e,w(e.$t("features_panel.title")),1)]),g("div",y1e,[g("ul",null,[e.shout?(p(),b("li",_1e,w(e.$t("features_panel.shout")),1)):E("",!0),e.pleromaChatMessages?(p(),b("li",w1e,w(e.$t("features_panel.pleroma_chat_messages")),1)):E("",!0),e.gopher?(p(),b("li",S1e,w(e.$t("features_panel.gopher")),1)):E("",!0),e.whoToFollow?(p(),b("li",k1e,w(e.$t("features_panel.who_to_follow")),1)):E("",!0),e.mediaProxy?(p(),b("li",$1e,w(e.$t("features_panel.media_proxy")),1)):E("",!0),g("li",null,w(e.$t("features_panel.scope_options")),1),g("li",null,w(e.$t("features_panel.text_limit"))+" = "+w(e.textlimit),1),g("li",null,w(e.$t("features_panel.upload_limit"))+" = "+w(e.uploadlimit.num)+" "+w(e.$t("upload.file_size_units."+e.uploadlimit.unit)),1
691)])])])])}const LO=ge(p1e,[["render",C1e]]);function T1e(e,t){const n=Z.shuffle(t);e.usersToFollow.forEach((s,r)=>{const o=n[r],i=o.avatar||this.$store.state.instance.defaultAvatar,a=o.acct;s.img=i,s.name=a,e.$store.state.api.backendInteractor.fetchUser({id:a}).then(c=>{c.error||(e.$store.commit("addNewUsers",[c]),s.id=c.id)})})}function ZT(e){const t=e.$store.state.users.currentUser.credentials;t&&(e.usersToFollow.forEach(n=>{n.name="Loading..."}),Ln.suggestions({credentials:t}).then(n=>{T1e(e,n)}))}const A1e={data:()=>({usersToFollow:[]}),computed:{user:function(){return this.$store.state.users.currentUser.screen_name},suggestionsEnabled(){return this.$store.state.instance.suggestionsEnabled}},methods:{userProfileLink(e,t){return ao(e,t,this.$store.state.instance.restrictedNicknames)}},watch:{user:function(){this.suggestionsEnabled&&ZT(this)}},mounted:function(){this.usersToFollow=new Array(3).fill().map(()=>({img:this.$store.state.instance.defaultAvatar,name:"",id:0})),this.suggestionsEnabled&&ZT(this)}},E1e={class:"who-to-follow-panel"},I1e={class:"panel panel-default base01-background"},P1e={class:"panel-heading timeline-heading base02-background base04"},L1e={class:"title"},O1e={class:"who-to-follow"},R1e=["src"],M1e={class:"who-to-follow-more"};function N1e(e,t,n,s,r,o){const i=O("router-link");return p(),b("div",E1e,[g("div",I1e,[g("div",P1e,[g("h1",L1e,w(e.$t("who_to_follow.who_to_follow")),1)]),g("div",O1e,[(p(!0),b(Se,null,We(e.usersToFollow,a=>(p(),b("p",{key:a.id,class:"who-to-follow-items"},[g("img",{src:a.img},null,8,R1e),T(i,{to:e.userProfileLink(a.id,a.name)},{default:X(()=>[de(w(a.name),1)]),_:2},1032,["to"]),t[0]||(t[0]=g("br",null,null,-1))]))),128)),g("p",M1e,[T(i,{to:{name:"who-to-follow"}},{default:X(()=>[de(w(e.$t("who_to_follow.more")),1)]),_:1})])])])])}const F1e=ge(A1e,[["render",N1e]]);et.add(pd,Xn);const D1e={props:["floating"],data(){return{currentMessage:"",channel:null,collapsed:!0}},computed:{messages(){return Gl().messages}},methods:{submit(e){Gl().channel.push("new_msg",{text:e},1e4),this.currentMessage=""},togglePanel(){this.collapsed=!this.collapsed},userProfileLink(e){return ao(e.id,e.username,this.$store.state.instance.restrictedNicknames)}},watch:{messages(){const e=this.$el.querySelector(".chat-window");e&&e.scrollTop+e.offsetHeight+20>e.scrollHeight&&this.$nextTick(()=>{e&&(e.scrollTop=e.scrollHeight-e.offsetHeight)})}}},U1e={key:0,class:"shout-panel"},j1e={class:"panel panel-default"},B1e={class:"title"},z1e={class:"panel-body shout-window"},q1e={class:"shout-avatar"},H1e=["src"],V1e={class:"shout-content"},W1e={class:"shout-text"},G1e={class:"panel-body shout-input"},K1e={key:1,class:"shout-panel"},x1e={class:"panel panel-default"},Y1e={class:"title"};function X1e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("router-link");return!e.collapsed||!e.floating?(p(),b("div",U1e,[g("div",j1e,[g("div",{class:he(["panel-heading",{"shout-heading":e.floating}]),onClick:t[0]||(t[0]=Te((...c)=>e.togglePanel&&e.togglePanel(...c),["stop","prevent"]))},[g("h1",B1e,[de(w(e.$t("shoutbox.title"))+" ",1),e.floating?(p(),x(i,{key:0,icon:"times",class:"close-icon"})):E("",!0)])],2),g("div",z1e,[(p(!0),b(Se,null,We(e.messages,c=>(p(),b("div",{key:c.id,class:"shout-message"},[g("span",q1e,[g("img",{src:c.author.avatar},null,8,H1e)]),g("div",V1e,[T(a,{class:"shout-name",to:e.userProfileLink(c.author)},{default:X(()=>[de(w(c.author.username),1)]),_:2},1032,["to"]),t[4]||(t[4]=g("br",null,null,-1)),g("span",W1e,w(c.text),1)])]))),128))]),g("div",G1e,[at(g("textarea",{"onUpdate:modelValue":t[1]||(t[1]=c=>e.currentMessage=c),class:"shout-input-textarea input",rows:"1",onKeyup:t[2]||(t[2]=zo(c=>e.submit(e.currentMessage),["enter"]))},null,544),[[Nt,e.currentMessage]])])])])):(p(),b("div",K1e,[g("div",x1e,[g("div",{class:"panel-heading -stub timeline-heading shout-heading",onClick:t[3]||(t[3]=Te((...c)=>e.togglePanel&&e.togglePanel(...c),["stop","prevent"]))},[g("div",Y1e,[T(i,{class:"icon",icon:"bullhorn"}),de(" "+w(e.$t("shoutbox.title")),1)])])])]))}const OO=ge(D1e,[["render",X1e]]);class $i{constructor(t){this.id=-1,this.nativePointer=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,self.Touch&&t instanceof Touch?this.id=t.identifier:gu(t)&&(this.id=t.pointerId)}getCoalesced(){if("getCoalescedEvents"in this.nativePointer){const t=this.nativePointer.getCoalescedEvents().map(n=>new $i(n));if(t.length>0)return t}return[this]}}const gu=e=>"pointerId"in e,a0=e=>"changedTouches"in e,QT=()=>{};class J1e{constructor(t,{start:n=()=>!0,move:s=QT,end:r=QT,rawUpdates:o=!1,avoidPointerEvents:i=!1}={}){this._element=t,this.startPointers=[],this.currentPointers=[],this._excludeFromButtonsCheck=new Set,this._pointerStart=a=>{if(gu(a)&&a.buttons===0)this._excludeFromButtonsCheck.add(a.pointerId);else if(!(a.buttons&1))return;const c=new $i(a);this.currentPointers.some(u=>u.id===c.id)||this._triggerPointerStart(c,a)&&(gu(a)?((a.target&&"setPointerCapture"in a.target?a.target:this._element).setPointerCapture(a.pointerId),this._element.addEventListener(this._rawUpdates?"pointerrawupdate":"pointermove",this._move),this._element.addEventListener("pointerup",this._pointerEnd),this._element.addEventListener("pointercancel",this._pointerEnd)):(window.addEventListener("mousemove",this._move),window.addEventListener("mouseup",this._pointerEnd)))},this._touchStart=a=>{for(const c of Array.from(a.changedTouches))this._triggerPointerStart(new $i(c),a)},this._move=a=>{if(!a0(a)&&(!gu(a)||!this._excludeFromButtonsCheck.has(a.pointerId))&&a.buttons===0){this._pointerEnd(a);return}const c=this.currentPointers.slice(),u=a0(a)?Array.from(a.changedTouches).map(h=>
691new $i(h)):[new $i(a)],f=[];for(const h of u){const v=this.currentPointers.findIndex(y=>y.id===h.id);v!==-1&&(f.push(h),this.currentPointers[v]=h)}f.length!==0&&this._moveCallback(c,f,a)},this._triggerPointerEnd=(a,c)=>{if(!a0(c)&&c.buttons&1)return!1;const u=this.currentPointers.findIndex(h=>h.id===a.id);if(u===-1)return!1;this.currentPointers.splice(u,1),this.startPointers.splice(u,1),this._excludeFromButtonsCheck.delete(a.id);const f=!(c.type==="mouseup"||c.type==="touchend"||c.type==="pointerup");return this._endCallback(a,c,f),!0},this._pointerEnd=a=>{if(this._triggerPointerEnd(new $i(a),a))if(gu(a)){if(this.currentPointers.length)return;this._element.removeEventListener(this._rawUpdates?"pointerrawupdate":"pointermove",this._move),this._element.removeEventListener("pointerup",this._pointerEnd),this._element.removeEventListener("pointercancel",this._pointerEnd)}else window.removeEventListener("mousemove",this._move),window.removeEventListener("mouseup",this._pointerEnd)},this._touchEnd=a=>{for(const c of Array.from(a.changedTouches))this._triggerPointerEnd(new $i(c),a)},this._startCallback=n,this._moveCallback=s,this._endCallback=r,this._rawUpdates=o&&"onpointerrawupdate"in window,self.PointerEvent&&!i?this._element.addEventListener("pointerdown",this._pointerStart):(this._element.addEventListener("mousedown",this._pointerStart),this._element.addEventListener("touchstart",this._touchStart),this._element.addEventListener("touchmove",this._move),this._element.addEventListener("touchend",this._touchEnd),this._element.addEventListener("touchcancel",this._touchEnd))}stop(){this._element.removeEventListener("pointerdown",this._pointerStart),this._element.removeEventListener("mousedown",this._pointerStart),this._element.removeEventListener("touchstart",this._touchStart),this._element.removeEventListener("touchmove",this._move),this._element.removeEventListener("touchend",this._touchEnd),this._element.removeEventListener("touchcancel",this._touchEnd),this._element.removeEventListener(this._rawUpdates?"pointerrawupdate":"pointermove",this._move),this._element.removeEventListener("pointerup",this._pointerEnd),this._element.removeEventListener("pointercancel",this._pointerEnd),window.removeEventListener("mousemove",this._move),window.removeEventListener("mouseup",this._pointerEnd)}_triggerPointerStart(t,n){return this._startCallback(t,n)?(this.currentPointers.push(t),this.startPointers.push(t),!0):!1}}const Bf="min-scale",e8="allow-pan-min-scale",t8="reset-to-min-scale-limit",n8="reach-min-scale-strategy",l0="stop-propagate-handled",Z1e="none";function s8(e,t){return t?Math.sqrt((t.clientX-e.clientX)**2+(t.clientY-e.clientY)**2):0}function r8(e,t){return t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e}function o8(e,t){return typeof e=="number"?e:e.trimRight().endsWith("%")?t*parseFloat(e)/100:parseFloat(e)}let i8;function RO(){return i8||(i8=document.createElementNS("http://www.w3.org/2000/svg","svg"))}function c0(){return RO().createSVGMatrix()}function a8(){return RO().createSVGPoint()}const u0=.01,d0=-1,f0=-1,Q1e=0,l8=(e,t)=>Math.round(e*100)-Math.round(t*100);let eve=class extends HTMLElement{static get observedAttributes(){return[Bf]}constructor(){super(),this._transform=c0(),new MutationObserver(()=>this._stageElChange()).observe(this,{childList:!0});const t=new J1e(this,{start:(n,s)=>{if(t.currentPointers.length===2||!this._positioningEl)return!1;const r=t.currentPointers.length+1===1;return!(r&&!this._allowPan())&&(this._maybeStopPropagate(s),r||this._maybeEmitCancel([n,...t.currentPointers])),s.preventDefault(),!0},move:(n,s,r)=>{this._onPointerMove(n,t.currentPointers,r)},end:(n,s)=>{this._onPointerEnd(n,t.currentPointers,s)}});this.addEventListener("wheel",n=>this._onWheel(n)),this.addEventListener("click",n=>this._onClick(n,t))}attributeChangedCallback(t,n,s){t===Bf&&this.scale<this.minScale&&this.setTransform({scale:this.minScale})}get minScale(){const t=this.getAttribute(Bf);if(!t)return u0;const n=parseFloat(t);return Number.isFinite(n)?Math.max(u0,n):u0}set minScale(t){this.setAttribute(Bf,String(t))}get reachMinScaleStrategy(){return this.getAttribute(n8)||Z1e}set reachMinScaleStrategy(t){this.setAttribute(n8,t)}get allowPanMinScale(){const t=this.getAttribute(e8);if(!t)return d0;const n=parseFloat(t);return Number.isFinite(n)?Math.max(d0,n):d0}set allowPanMinScale(t){this.setAttribute(e8,String(t))}get resetToMinScaleLimit(){const t=this.getAttribute(t8);
691if(!t)return f0;const n=parseFloat(t);return Number.isFinite(n)?Math.max(f0,n):f0}set resetToMinScaleLimit(t){this.setAttribute(t8,String(t))}get stopPropagateHandled(){return this.hasAttribute(l0)}set stopPropagateHandled(t){t?this.setAttribute(l0,""):this.removeAttribute(l0)}connectedCallback(){this._stageElChange()}get x(){return this._transform.e}get y(){return this._transform.f}get scale(){return this._transform.a}scaleTo(t,n={}){let{originX:s=0,originY:r=0}=n;const{relativeTo:o="content",allowChangeEvent:i=!1}=n,a=o==="content"?this._positioningEl:this;if(!a||!this._positioningEl){this.setTransform({scale:t,allowChangeEvent:i});return}const c=a.getBoundingClientRect();if(s=o8(s,c.width),r=o8(r,c.height),o==="content")s+=this.x,r+=this.y;else{const u=this._positioningEl.getBoundingClientRect();s-=u.left,r-=u.top}this._applyChange({allowChangeEvent:i,originX:s,originY:r,scaleDiff:t/this.scale})}setTransform(t={}){const{scale:n=this.scale,allowChangeEvent:s=!1}=t;let{x:r=this.x,y:o=this.y}=t;if(!this._positioningEl){this._updateTransform(n,r,o,s);return}const i=this.getBoundingClientRect(),a=this._positioningEl.getBoundingClientRect();if(!i.width||!i.height){this._updateTransform(n,r,o,s);return}let c=a8();c.x=a.left-i.left,c.y=a.top-i.top;let u=a8();u.x=a.width+c.x,u.y=a.height+c.y;const f=c0().translate(r,o).scale(n).multiply(this._transform.inverse());c=c.matrixTransform(f),u=u.matrixTransform(f),c.x>i.width?r+=i.width-c.x:u.x<0&&(r+=-u.x),c.y>i.height?o+=i.height-c.y:u.y<0&&(o+=-u.y),this._updateTransform(n,r,o,s)}_updateTransform(t,n,s,r){if(t<this.minScale&&(t=this.minScale),!(t===this.scale&&n===this.x&&s===this.y)&&(this._transform.e=n,this._transform.f=s,this._transform.d=this._transform.a=t,this.style.setProperty("--x",this.x+"px"),this.style.setProperty("--y",this.y+"px"),this.style.setProperty("--scale",this.scale+""),r)){const o=new Event("change",{bubbles:!0});this.dispatchEvent(o)}}_stageElChange(){this._positioningEl=void 0,this.children.length!==0&&(this._positioningEl=this.children[0],this.children.length>1&&console.warn("<pinch-zoom> must not have more than one child."),this.setTransform({allowChangeEvent:!0}))}_onWheel(t){if(!this._positioningEl)return;t.preventDefault();const n=this._positioningEl.getBoundingClientRect();let{deltaY:s}=t;const{ctrlKey:r,deltaMode:o}=t;o===1&&(s*=15);const a=1-s/(r?100:300),c=a<1;this._applyChange({scaleDiff:a,originX:t.clientX-n.left,originY:t.clientY-n.top,allowChangeEvent:!0}),c&&this._maybeResetScale()}_onPointerMove(t,n,s){if(!this._positioningEl||t.length<2&&!this._allowPan())return;const o=this._positioningEl.getBoundingClientRect(),i=r8(t[0],t[1]),a=r8(n[0],n[1]),c=i.clientX-o.left,u=i.clientY-o.top,f=s8(t[0],t[1]),h=s8(n[0],n[1]),v=f?h/f:1;this._applyChange({originX:c,originY:u,scaleDiff:v,panX:a.clientX-i.clientX,panY:a.clientY-i.clientY,allowChangeEvent:!0}),this._maybeStopPropagate(s)}_maybeResetScale(){l8(this.scale,this.resetToMinScaleLimit)<=0&&this._resetToMinScale()}_onPointerEnd(t,n,s){if(!this._positioningEl)return;const r=1+n.length,o=r>=2,i=r==1;o&&this._maybeResetScale(),!(i&&!this._allowPan())&&this._maybeStopPropagate(s)}_resetToMinScale(){this.reachMinScaleStrategy==="reset"?this.setTransform({scale:this.minScale,x:0,y:0}):this.setTransform({scale:this.minScale})}_applyChange(t={}){const{panX:n=0,panY:s=0,originX:r=0,originY:o=0,scaleDiff:i=1,allowChangeEvent:a=!1}=t,c=c0().translate(n,s).translate(r,o).translate(this.x,this.y).scale(i).translate(-r,-o).scale(this.scale);this.setTransform({allowChangeEvent:a,scale:c.a,x:c.e,y:c.f})}_maybeStopPropagate(t){this.stopPropagateHandled&&t.stopPropagation()}_allowPan(){return this.allowPanMinScale>0&&l8(this.scale,this.allowPanMinScale)>0}_maybeEmitCancel(t){const n=s=>new PointerEvent("pointercancel",{pointerId:s.id,clientX:s.clientX,clientY:s.clientY});this.stopPropagateHandled&&t.forEach(s=>{this.parentElement&&typeof this.parentElement.dispatchEvent=="function"&&this.parentElement.dispatchEvent(n(s))})}_onClick(t,n){if(t.button!==Q1e)return;!(n.currentPointers.length===0&&!this._allowPan())&&this._maybeStopPropagate(t)}};customElements.define("pinch-zoom",eve);const tve={methods:{setTransform({scale:e,x:t,y:n}){this.$el.setTransform({scale:e,x:t,y:n})}},created(){}};function nve(e,t,n,s,r,o){return p(),b("pinch-zoom",An({class:"pinch-zoom-parent"},e.$attrs),[Ot(e.$slots,"default")],16)}const sve=ge(tve,[["render",nve]]),rve=[-1,0],ove=[1,0],ive=[0,-1],ave=[0,1],lve=0,Vy=(e,t)=>[t[0]-e[0],t[1]-e[1]],cve=e=>[e.screenX,e.screenY],MO=e=>cve(e.touches[0]),h0=e=>[e.clientX,e.clientY],$a=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),NO=e=>[e[1],-e[0]],Wh=(e,t)=>e[0]*t[0]+e[1]*t[1],Gh=(e,t)=>{const n=Wh(e,t)/Wh(t,t);return[n*t[0],n*t[1]]},uve=(e,t,n=30,s=1)=>({direction:e,onSwipe:t,threshold:n,perpendicularTolerance:s,_startPos:[0,0],_swiping:!1}),dve=(e,t)=>
691{t._startPos=MO(e),t._swiping=!0},fve=(e,t)=>{if(!t._swiping)return;const n=Vy(t._startPos,MO(e));if($a(n)<t.threshold||Wh(n,t.direction)<0)return;const s=Gh(n,t.direction),r=NO(t.direction),o=Gh(n,r);$a(s)*t.perpendicularTolerance<$a(o)||(t.onSwipe(),t._swiping=!1)};class hve{constructor({direction:t,swipePreviewCallback:n,swipeEndCallback:s,swipeCancelCallback:r,swipelessClickCallback:o,threshold:i=30,perpendicularTolerance:a=1,disableClickThreshold:c=1}){const u=()=>{};this.direction=t,this.swipePreviewCallback=n||u,this.swipeEndCallback=s||u,this.swipeCancelCallback=r||u,this.swipelessClickCallback=o||u,this.threshold=typeof i=="function"?i:()=>i,this.disableClickThreshold=typeof c=="function"?c:()=>c,this.perpendicularTolerance=a,this._reset()}_reset(){this._startPos=[0,0],this._pointerId=-1,this._swiping=!1,this._swiped=!1,this._preventNextClick=!1}start(t){t.button===lve&&(this._startPos=h0(t),this._pointerId=t.pointerId,this._swiping=!0,this._swiped=!1)}move(t){if(this._swiping&&this._pointerId===t.pointerId){this._swiped=!0;const n=h0(t),s=Vy(this._startPos,n);this.swipePreviewCallback(s)}}cancel(t){!this._swiping||this._pointerId!==t.pointerId||this.swipeCancelCallback()}end(t){if(!this._swiping||this._pointerId!==t.pointerId)return;this._swiping=!1;const n=h0(t),s=Vy(this._startPos,n),r=(()=>{if($a(s)<this.threshold())return 0;const o=Wh(s,this.direction)>0,i=Gh(s,this.direction),a=NO(this.direction),c=Gh(s,a);return $a(i)*this.perpendicularTolerance<$a(c)?0:o?1:-1})();this._swiped&&this.swipeEndCallback(r),this._reset(),$a(s)>=this.disableClickThreshold()&&t.pointerType==="mouse"&&(this._preventNextClick=!0)}click(){this._preventNextClick||this.swipelessClickCallback(),this._reset()}}const eo={DIRECTION_LEFT:rve,DIRECTION_RIGHT:ove,DIRECTION_UP:ive,DIRECTION_DOWN:ave,swipeGesture:uve,beginSwipe:dve,updateSwipe:fve,SwipeAndClickGesture:hve},pve={props:{direction:{type:Array},threshold:{type:Function,default:()=>30},disableClickThreshold:{type:Function,default:()=>1},perpendicularTolerance:{type:Number,default:1}},methods:{handlePointerDown(e){this.$gesture.start(e)},handlePointerMove(e){this.$gesture.move(e)},handlePointerUp(e){this.$gesture.end(e)},handlePointerCancel(e){this.$gesture.cancel(e)},handleNativeClick(e){this.$gesture.click(e)},preview(e){this.$emit("preview-requested",e)},end(e){this.$emit("swipe-finished",e)},click(){this.$emit("swipeless-clicked")},cancel(){this.$emit("swipe-canceled")}},created(){this.$gesture=new eo.SwipeAndClickGesture({direction:this.direction,threshold:this.threshold,disableClickThreshold:this.disableClickThreshold,perpendicularTolerance:this.perpendicularTolerance,swipePreviewCallback:this.preview,swipeEndCallback:this.end,swipeCancelCallback:this.cancel,swipelessClickCallback:this.click})}};function mve(e,t,n,s,r,o){return p(),b("div",An(e.$attrs,{onPointerdown:t[0]||(t[0]=(...i)=>e.handlePointerDown&&e.handlePointerDown(...i)),onPointermove:t[1]||(t[1]=(...i)=>e.handlePointerMove&&e.handlePointerMove(...i)),onPointerup:t[2]||(t[2]=(...i)=>e.handlePointerUp&&e.handlePointerUp(...i)),onPointercancel:t[3]||(t[3]=(...i)=>e.handlePointerCancel&&e.handlePointerCancel(...i)),onClick:t[4]||(t[4]=(...i)=>e.handleNativeClick&&e.handleNativeClick(...i))}),[Ot(e.$slots,"default")],16)}const gve=ge(pve,[["render",mve]]);et.add(qa,bd,Zs,Xn);const vve={components:{StillImage:Ji,VideoAttachment:tO,PinchZoom:sve,SwipeClick:gve,Modal:ud,Flash:eO},data(){return{loading:!1,swipeDirection:eo.DIRECTION_LEFT,swipeThreshold:()=>window.innerWidth*.25,pinchZoomMinScale:1,pinchZoomScaleResetLimit:1.2}},computed:{showing(){return hs().activated},media(){return hs().media},description(){return this.currentMedia.description},currentIndex(){return hs().currentIndex},currentMedia(){return this.media[this.currentIndex]},canNavigate(){return this.media.length>1},type(){return this.currentMedia?this.getType(this.currentMedia):null},swipeDisableClickThreshold(){return()=>this.canNavigate?1:30}},methods:{getType(e){return Fa.fileType(e.mimetype)},hide(){setTimeout(()=>{hs().closeMediaViewer()},100)},hideIfNotSwiped(e){const t=this.$refs.swipeClick;t?t.$gesture.click(e):this.hide()},goPrev(){if(this.canNavigate){const e=this.currentIndex===0?this.media.length-1:this.currentIndex-1,t=this.media[e];this.getType(t)==="image"&&(this.loading=!0),hs().setCurrentMedia(t)}},goNext(){if(this.canNavigate){const e=this.currentIndex===this.media.length-1?0:this.currentIndex+1,t=this.media[e];this.getType(t)==="image"&&(this.loading=!0),hs().setCurrentMedia(t)}},onImageLoaded(){this.loading=!1},handleSwipePreview(e){this.$refs.pinchZoom.setTransform({scale:1,x:e[0],y:0})},handleSwipeEnd(e){this.$refs.pinchZoom.setTransform({scale:1,x:0,y:0}),e>0?this.goNext():e<0&&this.goPrev()},handleKeyupEvent(e){this.showing&&e.keyCode===27&&this.hide()},handleKeydownEvent(e){this.showing&&(e.keyCode===39?this.goNext():e.keyCode===37&&this.goPrev())}},mounted(){window.addEventListener("popstate",this.hide),document.addEventListener("keyup",this.handleKeyupEvent),document.addEventListener("keydown",this.handleKeydownEvent)},unmounted(){window.removeEventListener("popstate",this.hide),document.removeEventListener("keyup",this.handleKeyupEvent),document.removeEventListener("keydown",this.handleKeydownEvent)}},bve=["src","alt","title"],yve=["src","alt","title"],_ve=["title"],wve=["title"],Sve=["title"],kve={key:6,class:"description"},$ve={class:"counter"},Cve={key:7,class:"loading-spinner"};function Tve(e,t,n,s,r,o){const i=O("PinchZoom"),a=O("SwipeClick"),c=O("VideoAttachment"),u=O("Flash"),f=O("FAIcon"),h=O("Modal");return e.showing?(p(),x(h,{key:0,class:"media-modal-view",onBackdropClicked:e.hideIfNotSwiped},{default:X(()=>[e.type==="image"?(p(),x(a,{key:0,ref:"swipeClick",class:"modal-image-container",direction:e.swipeDirection,threshold:e.swipeThreshold,"disable-click-threshold":e.swipeDisableClickThreshold,onPreviewRequested:e.handleSwipePreview,onSwipeFinished:e.handleSwipeEnd,onSwipelessClicked:e.hide},{default:X(()=>[T(i,{ref:"pinchZoom",class:"modal-image-container-inner",selector:".modal-image","reach-min-scale-strategy":"reset","stop-propagate-handled":"stop-propgate-handled","allow-pan-min-scale":e.pinchZoomMinScale,"min-scale":e.pinchZoomMinScale,"reset-to-min-scale-limit":e.pinchZoomScaleResetLimit},{default:X(()=>[g("img",{class:he([{loading:e.loading},"modal-image"]),src:e.currentMedia.url,alt:e.currentMedia.description,title:e.currentMedia.description,onLoad:t[0]||(t[0]=(...v)=>e.onImageLoaded&&e.onImageLoaded(...v))},null,42,bve)]),_:1},8,["allow-pan-min-scale","min-scale","reset-to-min-scale-limit"])]),_:1},8,["direction","threshold","disable-click-threshold","onPreviewRequested","onSwipeFinished","onSwipelessClicked"])):E("",!0),e.type==="video"?(p(),x(c,{key:1,class:"modal-image",attachment:e.currentMedia,controls:!0},null,8,["attachment"])):E("",!0),e.type==="audio"?(p(),b("audio",{key:2,class:"modal-image",src:e.currentMedia.url,alt:e.currentMedia.description,title:e.currentMedia.description,controls:""},null,8,yve)):E("",!0),e.type==="flash"?(p(),x(u,{key:3,class:"modal-image",src:e.currentMedia.url,alt:e.currentMedia.description,title:e.currentMedia.description},null,8,["src","alt","title"])):E("",!0),e.canNavigate?(p(),b("button",{key:4,title:e.$t("media_modal.previous"),class:"modal-view-button modal-view-button-arrow modal-view-button-arrow--prev",onClick:t[1]||(t[1]=Te((...v)=>e.goPrev&&e.goPrev(...v),["stop","prevent"]))},[T(f,{class:"button-icon arrow-icon",icon:"chevron-left"})],8,_ve)):E("",!0),e.canNavigate?(p(),b("button",{key:5,title:e.$t("media_modal.next"),class:"modal-view-button modal-view-button-arrow modal-view-button-arrow--next",onClick:t[2]||(t[2]=Te((...v)=>e.goNext&&e.goNext(...v),["stop","prevent"]))},[T(f,{class:"button-icon arrow-icon",icon:"chevron-right"})],8,wve)):E("",!0),g("button",{class:"modal-view-button modal-view-button-hide",title:e.$t("media_modal.hide"),onClick:t[3]||(t[3]=Te((...v)=>e.hide&&e.hide(...v),["stop","prevent"]))},[T(f,{class:"button-icon",icon:"times"})],8,Sve),e.description?(p(),b("span",kve,w(e.description),1)):E("",!0),g("span",$ve,w(e.$t("media_modal.counter",{current:e.currentIndex+1,total:e.media.length},e.currentIndex+1)),1),e.loading?(p(),b("span",Cve,[T(f,{spin:"",icon:"circle-notch",size:"5x"})])):E("",!0)]),_:1},8,["onBackdropClicked"])):E("",!0)}const Ave=ge(vve,[["render",Tve]]);et.add(XI,VI,rP,hd,ic,Op,pd,Ba,aP,n2,Lp,EJ,Ep,cP);const Eve={props:["logout"],data:()=>({closed:!0,closeGesture:void 0}),created(){this.closeGesture=eo.swipeGesture(eo.DIRECTION_LEFT,this.toggleDrawer),this.currentUser&&this.currentUser.locked&&this.$store.dispatch("startFetchingFollowRequests")},components:{UserCard:$d},computed:{currentUser(){return this.$store.state.users.currentUser}
691,shout(){return Gl().joined},unseenNotifications(){return w_(this.$store)},unseenNotificationsCount(){return this.unseenNotifications.length},suggestionsEnabled(){return this.$store.state.instance.suggestionsEnabled},logo(){return this.$store.state.instance.logo},hideSitename(){return this.$store.state.instance.hideSitename},sitename(){return this.$store.state.instance.name},followRequestCount(){return this.$store.state.api.followRequests.length},privateMode(){return this.$store.state.instance.private},federating(){return this.$store.state.instance.federating},timelinesRoute(){let e;return Xe().lastTimeline&&(e=Xe().lastTimeline),e=this.currentUser?"friends":"public-timeline",SO.has(e)?{name:e,params:{username:this.currentUser.screen_name}}:{name:e}},...sn(ms,{supportsAnnouncements:e=>e.supportsAnnouncements,unreadAnnouncementCount:"unreadAnnouncementCount"}),...mn({pleromaChatMessagesAvailable:e=>e.instance.pleromaChatMessagesAvailable}),...bn(["unreadChatCount","draftCount"])},methods:{toggleDrawer(){this.closed=!this.closed},doLogout(){this.logout(),this.toggleDrawer()},touchStart(e){eo.beginSwipe(e,this.closeGesture)},touchMove(e){eo.updateSwipe(e,this.closeGesture)},openSettingsModal(){Xe().openSettingsModal("user")},openAdminModal(){Xe().openSettingsModal("admin")}}},Ive={key:1,class:"side-drawer-logo-wrapper"},Pve=["src"],Lve={key:0},Ove={key:0,class:"badge -notification"},Rve={key:0},Mve={key:0,class:"badge -notification"},Nve={key:0,class:"badge -notification"},Fve={key:0,class:"badge -neutral"};function Dve(e,t,n,s,r,o){const i=O("UserCard"),a=O("FAIcon"),c=O("router-link");return p(),b("div",{class:he(["side-drawer-container mobile-drawer",{"side-drawer-container-closed":e.closed,"side-drawer-container-open":!e.closed}])},[g("div",{class:he(["side-drawer-darken",{"side-drawer-darken-closed":e.closed}])},null,2),g("div",{class:he(["side-drawer",{"side-drawer-closed":e.closed}]),onTouchstart:t[21]||(t[21]=(...u)=>e.touchStart&&e.touchStart(...u)),onTouchmove:t[22]||(t[22]=(...u)=>e.touchMove&&e.touchMove(...u))},[g("div",{class:"side-drawer-heading",onClick:t[0]||(t[0]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[e.currentUser?(p(),x(i,{key:0,"user-id":e.currentUser.id,"hide-bio":!0},null,8,["user-id"])):(p(),b("div",Ive,[g("img",{src:e.logo},null,8,Pve),e.hideSitename?E("",!0):(p(),b("span",Lve,w(e.sitename),1))]))]),g("ul",null,[e.currentUser?E("",!0):(p(),b("li",{key:0,onClick:t[1]||(t[1]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"login"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"sign-in-alt"}),de(" "+w(e.$t("login.login")),1)]),_:1})])),e.currentUser||!e.privateMode?(p(),b("li",{key:1,onClick:t[2]||(t[2]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:e.timelinesRoute,class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"home"}),de(" "+w(e.$t("nav.timelines")),1)]),_:1},8,["to"])])):E("",!0),e.currentUser?(p(),b("li",{key:2,onClick:t[3]||(t[3]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"lists"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"list"}),de(" "+w(e.$t("nav.lists")),1)]),_:1})])):E("",!0),e.currentUser?(p(),b("li",{key:3,onClick:t[4]||(t[4]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"bookmarks"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"bookmark"}),de(" "+w(e.$t("nav.bookmarks")),1)]),_:1})])):E("",!0),e.currentUser&&e.pleromaChatMessagesAvailable?(p(),b("li",{key:4,onClick:t[5]||(t[5]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"chats",params:{username:e.currentUser.screen_name}},style:{position:"relative"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"comments"}),de(" "+w(e.$t("nav.chats"))+" ",1),e.unreadChatCount?(p(),b("span",Ove,w(e.unreadChatCount),1)):E("",!0)]),_:1},8,["to"])])):E("",!0)]),e.currentUser?(p(),b("ul",Rve,[g("li",{onClick:t[6]||(t[6]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"interactions",params:{username:e.currentUser.screen_name}},class:"menu-item"},{default:X(()=>
691[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"bell"}),de(" "+w(e.$t("nav.interactions")),1)]),_:1},8,["to"])]),e.currentUser.locked?(p(),b("li",{key:0,onClick:t[7]||(t[7]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:"/friend-requests",class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"user-plus"}),de(" "+w(e.$t("nav.friend_requests"))+" ",1),e.followRequestCount>0?(p(),b("span",Mve,w(e.followRequestCount),1)):E("",!0)]),_:1})])):E("",!0),e.shout?(p(),b("li",{key:1,onClick:t[8]||(t[8]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"shout-panel"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"bullhorn"}),de(" "+w(e.$t("shoutbox.title")),1)]),_:1})])):E("",!0)])):E("",!0),g("ul",null,[e.currentUser||!e.privateMode?(p(),b("li",{key:0,onClick:t[9]||(t[9]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"search"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"search"}),de(" "+w(e.$t("nav.search")),1)]),_:1})])):E("",!0),e.currentUser&&e.suggestionsEnabled?(p(),b("li",{key:1,onClick:t[10]||(t[10]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"who-to-follow"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"user-plus"}),de(" "+w(e.$t("nav.who_to_follow")),1)]),_:1})])):E("",!0),g("li",{onClick:t[12]||(t[12]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[g("button",{class:"menu-item",onClick:t[11]||(t[11]=(...u)=>e.openSettingsModal&&e.openSettingsModal(...u))},[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"cog"}),de(" "+w(e.$t("settings.settings")),1)])]),g("li",{onClick:t[13]||(t[13]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"about"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"info-circle"}),de(" "+w(e.$t("nav.about")),1)]),_:1})]),e.currentUser&&e.currentUser.role==="admin"?(p(),b("li",{key:2,onClick:t[15]||(t[15]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[g("button",{class:"menu-item",onClick:t[14]||(t[14]=Te((...u)=>e.openAdminModal&&e.openAdminModal(...u),["stop"]))},[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"tachometer-alt"}),de(" "+w(e.$t("nav.administration")),1)])])):E("",!0),e.currentUser&&e.supportsAnnouncements?(p(),b("li",{key:3,onClick:t[16]||(t[16]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"announcements"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"bullhorn"}),de(" "+w(e.$t("nav.announcements"))+" ",1),e.unreadAnnouncementCount?(p(),b("span",Nve,w(e.unreadAnnouncementCount),1)):E("",!0)]),_:1})])):E("",!0),e.currentUser?(p(),b("li",{key:4,onClick:t[17]||(t[17]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"drafts"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"file-pen"}),de(" "+w(e.$t("nav.drafts"))+" ",1),e.draftCount?(p(),b("span",Fve,w(e.draftCount),1)):E("",!0)]),_:1})])):E("",!0),e.currentUser?(p(),b("li",{key:5,onClick:t[18]||(t[18]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"edit-navigation"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"compass"}),de(" "+w(e.$t("nav.edit_nav_mobile")),1)]),_:1})])):E("",!0),e.currentUser?(p(),b("li",{key:6,onClick:t[20]||(t[20]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[g("button",{class:"menu-item",onClick:t[19]||(t[19]=(...u)=>e.doLogout&&e.doLogout(...u))},[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"sign-out-alt"}),de(" "+w(e.$t("login.logout")),1)])])):E("",!0)])],34),g("div",{class:he(["side-drawer-click-outside",{"side-drawer-click-outside-closed":e.closed}]),onClick:t[23]||(t[23]=Te((...u)=>e.toggleDrawer&&e.toggleDrawer(...u),["stop","prevent"]))},null,2)],2)}const FO=ge(Eve,[["render",Dve]]);et.add(tZ);const Uve=new Set(["chats","chat","lists-edit"]),jve={data(){return{hidden:!1,scrollingDown:!1,inputActive:!1,oldScrollPos:0,amountScrolled:0}},created(){this.autohideFloatingPostButton&&this.activateFloatingPostButtonAutohide(),window.addEventListener("resize",this.handleOSK)},unmounted(){this.autohideFloatingPostButton&&this.deactivateFloatingPostButtonAutohide(),window.removeEventListener("resize",this.handleOSK)},computed:{isLoggedIn(){return!!this.$store.state.users.currentUser},isHidden(){return Uve.has(this.$route.name)?!0:this.autohideFloatingPostButton&&(this.hidden||this.inputActive)}
691,isPersistent(){return!!this.$store.getters.mergedConfig.alwaysShowNewPostButton},autohideFloatingPostButton(){return!!this.$store.getters.mergedConfig.autohideFloatingPostButton}},watch:{autohideFloatingPostButton:function(e){e?this.activateFloatingPostButtonAutohide():this.deactivateFloatingPostButtonAutohide()}},methods:{activateFloatingPostButtonAutohide(){window.addEventListener("scroll",this.handleScrollStart),window.addEventListener("scroll",this.handleScrollEnd)},deactivateFloatingPostButtonAutohide(){window.removeEventListener("scroll",this.handleScrollStart),window.removeEventListener("scroll",this.handleScrollEnd)},openPostForm(){Ai().openPostStatusModal()},handleOSK(){const e=window.innerWidth<350,t=e&&window.innerHeight<345,s=!e&&window.innerWidth<450&&window.innerHeight<560;t||s?this.inputActive=!0:this.inputActive=!1},handleScrollStart:Z.debounce(function(){window.scrollY>this.oldScrollPos?this.hidden=!0:this.hidden=!1,this.oldScrollPos=window.scrollY},100,{leading:!0,trailing:!1}),handleScrollEnd:Z.debounce(function(){this.hidden=!1,this.oldScrollPos=window.scrollY},100,{leading:!1,trailing:!0})}},Bve=["title"];function zve(e,t,n,s,r,o){const i=O("FAIcon");return e.isLoggedIn?(p(),b("button",{key:0,class:he(["MobilePostButton button-default new-status-button",{hidden:e.isHidden,"always-show":e.isPersistent}]),title:e.$t("post_status.new_status"),onClick:t[0]||(t[0]=(...a)=>e.openPostForm&&e.openPostForm(...a))},[T(i,{icon:"pen"})],10,Bve)):E("",!0)}const qve=ge(jve,[["render",zve]]),Hve={props:["users"],computed:{slicedUsers(){return this.users?this.users.slice(0,15):[]}},components:{UserAvatar:er},methods:{userProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)}}},Vve={class:"avatars"};function Wve(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("router-link");return p(),b("div",Vve,[(p(!0),b(Se,null,We(e.slicedUsers,c=>(p(),x(a,{key:c.id,to:e.userProfileLink(c),class:"avatars-item"},{default:X(()=>[T(i,{user:c,class:"avatar-small"},null,8,["user"])]),_:2},1032,["to"]))),128))])}const DO=ge(Hve,[["render",Wve]]);et.add(Zs);const Gve={name:"StatusPopover",props:["statusId"],data(){return{error:!1}},computed:{status(){return Z.find(this.$store.state.statuses.allStatuses,{id:this.statusId})}},components:{Status:gr(()=>Ve(()=>Promise.resolve().then(()=>aye),void 0)),Popover:gr(()=>Ve(()=>Promise.resolve().then(()=>B2),void 0))},methods:{enter(){if(!this.status){if(!this.statusId){this.error=!0;return}this.$store.dispatch("fetchStatus",this.statusId).then(()=>this.error=!1).catch(()=>this.error=!0)}}},watch:{status(e,t){e!==t&&this.$nextTick(()=>this.$refs.popover.updateStyles())}}},Kve={key:1,class:"status-preview-no-content faint"},xve={key:2,class:"status-preview-no-content"};function Yve(e,t,n,s,r,o){const i=O("Status"),a=O("FAIcon"),c=O("Popover");return p(),x(c,{ref:"popover",trigger:"hover","stay-on-click":!0,"popover-class":"popover-default status-popover","bound-to":{x:"container"},onShow:e.enter},{trigger:X(()=>[Ot(e.$slots,"default")]),content:X(()=>[e.status?(p(),x(i,{key:0,"is-preview":!0,statusoid:e.status,compact:!0},null,8,["statusoid"])):e.error?(p(),b("div",Kve,w(e.$t("status.status_unavailable")),1)):(p(),b("div",xve,[T(a,{icon:"circle-notch",spin:"",size:"2x"})]))]),_:3},8,["onShow"])}const Xve=ge(Gve,[["render",Yve]]),Jve={name:"UserPopover",props:["userId","overlayCenters","disabled","overlayCentersSelector"],components:{UserCard:$d,Popover:gr(()=>Ve(()=>Promise.resolve().then(()=>B2),void 0))},computed:{userPopoverAvatarAction(){return this.$store.getters.mergedConfig.userPopoverAvatarAction},userPopoverOverlay(){return this.$store.getters.mergedConfig.userPopoverOverlay}}};function Zve(e,t,n,s,r,o){const i=O("UserCard"),a=O("Popover");return p(),x(a,{trigger:"click","popover-class":"popover-default user-popover","overlay-centers-selector":e.overlayCentersSelector||".user-info .Avatar","overlay-centers":e.overlayCenters&&e.userPopoverOverlay,disabled:e.disabled},{trigger:X(()=>[Ot(e.$slots,"default")]),content:X(({close:c})=>[T(i,{class:"user-popover","show-close":!0,"show-expand":!0,"user-id":e.userId,"hide-bio":!0,"avatar-action":e.userPopoverAvatarAction=="close"?c:e.userPopoverAvatarAction,onClose:c},null,8,["user-id","avatar-action","onClose"])]),_:3},8,["overlay-centers-selector","overlay-centers","disabled"])}const om=ge(Jve,[["render",Zve]]),tw=Object.freeze(Object.defineProperty({__proto__:null,default:om},Symbol.toStringTag,{value:"Module"}));et.add(Zs);const Qve={name:"UserListPopover",props:["users"],components:{RichContent:Mr,UnicodeDomainIndicator:Zp,Popover:gr(()=>Ve(()=>Promise.resolve().then(()=>B2),void 0)),UserAvatar:gr(()=>Ve(()=>Promise.resolve().then(()=>nue),void 0))},computed:{usersCapped(){return this.users.slice(0,16)}}},ebe={class:"user-list-popover"},tbe={class:"user-list-names"},nbe={class:"user-list-screen-name"};function sbe(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("RichContent"),c=O("UnicodeDomainIndicator"),u=O("FAIcon"),f=O("Popover");return p(),x(f,{trigger:"hover",placement:"top",offset:{y:5}},{trigger:X(()=>[Ot(e.$slots,"default")]),content:X(()=>[g("div",ebe,[e.users.length?(p(!0),b(Se,{key:0},We(e.usersCapped,h=>(p(),b("div",{key:h.id,class:"user-list-row"},[T(i,{user:h,class:"avatar-small",compact:!0},null,8,["user"]),g("div",tbe,[T(a,{class:"username",title:"@"+h.screen_name_ui,html:h.name_html,emoji:h.emoji},null,8,["title","html","emoji"]),g("span",nbe,w(h.screen_name_ui),1),T(c,{user:h},null,8,["user"])])]))),128)):(p(),x(u,{key:1,icon:"circle-notch",spin:"",size:"3x"}))])]),_:3})}const UO=ge(Qve,[["render",sbe]]);et.add(i2,gd,Rp);const p0=12,rbe={name:"EmojiReactions",components:{UserAvatar:er,UserListPopover:UO,StillImage:Ji},props:["status"],data:()=>({showAll:!1}),computed:{tooManyReactions(){return this.status.emoji_reactions.length>p0},emojiReactions(){return this.showAll?this.status.emoji_reactions:this.status.emoji_reactions.slice(0,p0)},showMoreString(){return`+${this.status.emoji_reactions.length-p0}`},accountsForEmoji(){return this.status.emoji_reactions.reduce((e,t)=>
691(e[t.name]=t.accounts||[],e),{})},loggedIn(){return!!this.$store.state.users.currentUser},remoteInteractionLink(){return this.$store.getters.remoteInteractionLink({statusId:this.status.id})}},methods:{toggleShowAll(){this.showAll=!this.showAll},reactedWith(e){return this.status.emoji_reactions.find(t=>t.name===e).me},async fetchEmojiReactionsByIfMissing(){if(this.status.emoji_reactions.find(t=>!t.accounts))return await this.$store.dispatch("fetchEmojiReactionsBy",this.status.id)},reactWith(e){this.$store.dispatch("reactWithEmoji",{id:this.status.id,emoji:e})},unreact(e){this.$store.dispatch("unreactWithEmoji",{id:this.status.id,emoji:e})},async emojiOnClick(e){this.loggedIn&&(await this.fetchEmojiReactionsByIfMissing(),this.reactedWith(e)?this.unreact(e):this.reactWith(e))},counterTriggerAttrs(e){return{class:["emoji-reaction-count-button",{"-picked-reaction":this.reactedWith(e.name),toggled:this.reactedWith(e.name)}],"aria-label":this.$t("status.reaction_count_label",{num:e.count},e.count)}}}},obe={class:"EmojiReactions"},ibe={class:"reaction-emoji"},abe={key:1,class:"reaction-emoji reaction-emoji-content"},lbe={class:"emoji-reaction-counts"};function cbe(e,t,n,s,r,o){const i=O("StillImage"),a=O("FAIcon"),c=O("FALayers"),u=O("UserListPopover");return p(),b("div",obe,[(p(!0),b(Se,null,We(e.emojiReactions,f=>(p(),b("span",{key:f.url||f.name,class:"emoji-reaction-container btn-group"},[(p(),x(Oa(e.loggedIn?"button":"a"),An({ref_for:!0},e.loggedIn?{}:{href:e.remoteInteractionLink},{role:"button",class:["emoji-reaction btn button-default",{"-picked-reaction":e.reactedWith(f.name),toggled:e.reactedWith(f.name)}],title:f.url?f.name:void 0,"aria-pressed":e.reactedWith(f.name),onClick:h=>e.emojiOnClick(f.name,h)}),{default:X(()=>[g("span",ibe,[f.url?(p(),x(i,{key:0,src:f.url,class:"reaction-emoji-content"},null,8,["src"])):(p(),b("span",abe,w(f.name),1))]),T(c,null,{default:X(()=>[e.reactedWith(f.name)?(p(),x(a,{key:0,class:"active-marker",transform:"shrink-6 up-9",icon:"check"})):E("",!0),e.reactedWith(f.name)?(p(),x(a,{key:2,class:"focus-marker",transform:"shrink-6 up-9",icon:"minus"})):(p(),x(a,{key:1,class:"focus-marker",transform:"shrink-6 up-9",icon:"plus"}))]),_:2},1024)]),_:2},1040,["class","title","aria-pressed","onClick"])),T(u,{users:e.accountsForEmoji[f.name],class:"emoji-reaction-popover","normal-button":!0,"trigger-attrs":e.counterTriggerAttrs(f),onShow:t[0]||(t[0]=h=>e.fetchEmojiReactionsByIfMissing())},{default:X(()=>[g("span",lbe,w(f.count),1)]),_:2},1032,["users","trigger-attrs"])]))),128)),e.tooManyReactions?(p(),b("a",{key:0,class:"emoji-reaction-expand faint",href:"javascript:void(0)",onClick:t[1]||(t[1]=(...f)=>e.toggleShowAll&&e.toggleShowAll(...f))},w(e.showAll?e.$t("general.show_less"):e.showMoreString),1)):E("",!0)])}const ube=ge(rbe,[["render",cbe]]);et.add(bd,UJ);const dbe={props:["status","close"],data(){return{}},components:{Popover:Jn,StillImage:Ji},computed:{...sn(no,{folders:e=>e.allFolders}),folderId(){return this.status.bookmark_folder_id}},methods:{toggleFolder(e){const t=e===this.folderId?null:e;this.$store.dispatch("bookmark",{id:this.status.id,bookmark_folder_id:t}).then(()=>this.$emit("onSuccess")).catch(n=>this.$emit("onError",n.error.error))}}},fbe={class:"dropdown-menu bookmark-folder-menu"},hbe=["onClick"],pbe={key:1,class:"iconLetter fa-scale-110 fa-old-padding"};function mbe(e,t,n,s,r,o){const i=O("StillImage");return p(),b("div",fbe,[(p(!0),b(Se,null,We(e.folders,a=>(p(),b("div",{key:a.id,class:"menu-item dropdown-item -icon-double"},[g("button",{class:"main-button",onClick:[c=>e.toggleFolder(a.id),t[0]||(t[0]=Te((...c)=>e.close&&e.close(...c),["stop"]))]},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.status.bookmark_folder_id==a.id}])},null,2),a.emoji_url?(p(),x(i,{key:0,src:a.emoji_url,class:"emoji"},null,8,["src"])):(p(),b("span",pbe,w(a.name[0]),1)),de(" "+w(" "+a.name),1)],8,hbe)]))),128))])}const gbe=ge(dbe,[["render",mbe]]);et.add(i2,gd,Rp,Xn,t2,bd,X_,GI,a2,Q_,sle,Ap,J_,nle,Y_,l2,FJ,nP,LZ);const vbe={props:["button","status","extra","status","funcArg","getClass","getComponent","doAction","outerClose"],emits:["interacted"],components:{StatusBookmarkFolderMenu:gbe,EmojiPicker:z2,Popover:Jn},data:()=>({animationState:!1}),computed:{buttonClass(){return[this.button.name+"-button",{"-with-extra":this.button.name==="bookmark","-extra":this.extra,"-quick":!this.extra}]},userIsMuted(){return this.$store.getters.relationship(this.status.user.id).muting},threadIsMuted(){return this.status.thread_muted},hideCustomEmoji(){return!this.$store.state.instance.pleromaCustomEmojiReactionsAvailable},buttonInnerClass(){var e,t;return[this.button.name+"-button",{"main-button":this.extra,"button-unstyled":!this.extra,"-active":(t=(e=this.button).active)==null?void 0:t.call(e,this.funcArg),disabled:this.button.interactive?!this.button.interactive(this.funcArg):!1}]},remoteInteractionLink(){return this.$store.getters.remoteInteractionLink({statusId:this.status.id})}},methods:{addReaction(e){const t=e.insertion,n=this.status.emoji_reactions.find(s=>s.name===t);n&&n.me?this.$store.dispatch("unreactWithEmoji",{id:this.status.id,emoji:t}):this.$store.dispatch("reactWithEmoji",{id:this.status.id,emoji:t})},doActionWrap(e,t=()=>{}){this.button.interactive&&!this.button.interactive(this.funcArg)||(this.$emit("interacted"),e.name==="emoji"?this.$refs.picker.showPicker():(this.animationState=!0,this.getComponent(e)==="button"&&this.doAction(e),setTimeout(()=>{this.animationState=!1},500),t()))}}},bbe={key:0,class:"action-label"},ybe={key:0,class:"action-counter"},_be={key:1,class:"separator"};function wbe(e,t,n,s,r,o){var h,v,y,S,C,I;const i=O("FAIcon"),a=O("FALayers"),c=O("StatusBookmarkFolderMenu"),u=O("Popover"),f=O("EmojiPicker");return p(),b("div",{class:he(["action-button",e.buttonClass])},[(p(),x(Oa(e.getComponent(e.button)),{class:he(["action-button-inner",e.buttonInnerClass]),role:"menuitem",type:"button",title:e.$t(e.button.label(e.funcArg)),target:"_blank",tabindex:0,disabled:e.button.interactive?!e.button.interactive(e.funcArg):!1,href:e.getComponent(e.button)=="a"?((v
691=(h=e.button).link)==null?void 0:v.call(h,e.funcArg))||e.remoteInteractionLink:void 0,onClick:t[0]||(t[0]=$=>e.doActionWrap(e.button,e.outerClose))},{default:X(()=>{var $,k;return[T(a,null,{default:X(()=>{var P,A,R,B,N,Y,H,D,oe,le,Pe;return[T(i,{class:"fa-scale-110",icon:e.button.icon(e.funcArg),spin:!e.extra&&e.getComponent(e.button)=="button"&&((A=(P=e.button).animated)==null?void 0:A.call(P))&&e.animationState,style:{"--fa-animation-duration":"750ms"},"fixed-width":""},null,8,["icon","spin"]),!e.buttonClass.disabled&&(!e.button.interactive||(R=e.button)!=null&&R.interactive(e.funcArg))&&((N=(B=e.button).toggleable)!=null&&N.call(B,e.funcArg))&&e.button.active?(p(),b(Se,{key:0},[e.button.active(e.funcArg)?(p(),x(i,{key:0,class:"active-marker",transform:"shrink-6 up-9 right-15",icon:((H=(Y=e.button).activeIndicator)==null?void 0:H.call(Y,e.funcArg))||"check"},null,8,["icon"])):E("",!0),e.button.active(e.funcArg)?(p(),x(i,{key:2,class:"focus-marker",transform:"shrink-6 up-9 right-15",icon:((Pe=(le=e.button).closeIndicator)==null?void 0:Pe.call(le,e.funcArg))||"minus"},null,8,["icon"])):(p(),x(i,{key:1,class:"focus-marker",transform:"shrink-6 up-9 right-15",icon:((oe=(D=e.button).openIndicator)==null?void 0:oe.call(D,e.funcArg))||"plus"},null,8,["icon"]))],64)):E("",!0)]}),_:1}),e.extra?(p(),b("span",bbe,w(e.$t(e.button.label(e.funcArg))),1)):E("",!0),(k=($=e.button).dropdown)!=null&&k.call($)?(p(),x(i,{key:1,class:"chevron-icon",size:"lg",icon:e.extra?"chevron-right":"chevron-up","fixed-width":""},null,8,["icon"])):E("",!0)]}),_:1},8,["class","title","disabled","href"])),((S=(y=e.button).counter)==null?void 0:S.call(y,e.funcArg))>0?(p(),b("span",ybe,w((I=(C=e.button).counter)==null?void 0:I.call(C,e.funcArg)),1)):E("",!0),!e.extra&&e.button.name==="bookmark"?(p(),b("span",_be)):E("",!0),e.button.name==="bookmark"?(p(),x(u,{key:2,trigger:e.extra?"hover":"click",placement:e.extra?"right":"top",offset:e.extra?{x:10}:{y:10},"trigger-attrs":{class:"extra-button"}},{trigger:X(()=>[T(i,{class:"chevron-icon",size:"lg",icon:e.extra?"chevron-right":"chevron-up","fixed-width":""},null,8,["icon"])]),content:X(({close:$})=>[e.button.name==="bookmark"?(p(),x(c,{key:0,status:e.status,close:()=>{$(),e.outerClose()}},null,8,["status","close"])):E("",!0)]),_:1},8,["trigger","placement","offset"])):E("",!0),e.button.name==="emoji"?(p(),x(f,{key:3,ref:"picker","enable-sticker-picker":!1,"hide-custom-emoji":e.hideCustomEmoji,class:"emoji-picker-panel",onEmoji:e.addReaction},null,8,["hide-custom-emoji","onEmoji"])):E("",!0)],2)}const Sbe=ge(vbe,[["render",wbe]]),kbe={props:["type","user","status"],emits:["hide","show","muted"],data:()=>({showing:!1}),components:{ConfirmModal:Nr,Select:Zi},computed:{domain(){return this.user.fqn.split("@")[1]},keypath(){if(this.type==="domain")return"status.mute_domain_confirm";if(this.type==="conversation")return"status.mute_conversation_confirm"},conversationIsMuted(){return this.status.conversation_muted},domainIsMuted(){return new Set(this.$store.state.users.currentUser.domainMutes).has(this.domain)},shouldConfirm(){switch(this.type){case"domain":return this.mergedConfig.modalOnMuteDomain;default:return this.mergedConfig.modalOnMuteConversation}},...bn(["mergedConfig"])},methods:{optionallyPrompt(){this.shouldConfirm?this.show():this.doMute()},show(){this.showing=!0,this.$emit("show")},hide(){this.showing=!1,this.$emit("hide")},doMute(){switch(this.type){case"domain":{this.domainIsMuted?this.$store.dispatch("unmuteDomain",{id:this.domain}):this.$store.dispatch("muteDomain",{id:this.domain});break}case"conversation":{this.conversationIsMuted?this.$store.dispatch("unmuteConversation",{id:this.status.id}):this.$store.dispatch("muteConversation",{id:this.status.id});break}}this.$emit("muted"),this.hide()}}},$be=["textContent"],Cbe=["textContent"];function Tbe(e,t,n,s,r,o){const i=O("i18n-t"),a=O("confirm-modal");return e.showing?(p(),x(a,{key:0,title:e.$t("user_card.mute_confirm_title"),"confirm-text":e.$t("user_card.mute_confirm_accept_button"),"cancel-text":e.$t("user_card.mute_confirm_cancel_button"),onAccepted:e.doMute,onCancelled:e.hide},{default:X(()=>[T(i,{keypath:e.keypath,tag:"div"},{domain:X(()=>[g("span",{textContent:w(e.domain)},null,8,$be)]),user:X(()=>[g("span",{textContent:w(e.user.screen_name_ui)},null,8,Cbe)]),_:1},8,["keypath"])]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)}const Abe=ge(kbe,[["render",Tbe]]);et.add(Z_,md,sP);const Ebe={components:{ActionButton:Sbe,Popover:Jn,MuteConfirm:Abe,UserTimedFilterModal:H2},props:["button","status"],emits:["interacted"],mounted(){this.button.name==="mute"&&this.$store.dispatch("fetchDomainMutes")},computed:{buttonClass(){return[this.button.name+"-button",{"-with-extra":this.button.name==="bookmark","-extra":this.extra,"-quick":!this.extra}]},user(){return this.status.user},userIsMuted(){return this.$store.getters.relationship(this.user.id).muting},conversationIsMuted(){return this.status.thread_muted},domain(){return this.user.fqn.split("@")[1]},domainIsMuted(){return new Set(this.$store.state.users.currentUser.domainMutes).has(this.domain)}},methods:{unmuteUser(){return this.$store.dispatch("unmuteUser",this.user.id)},unmuteConversation(){return this.$store.dispatch("unmuteConversation",{id:this.status.id})},unmuteDomain(){return this.$store.dispatch("unmuteDomain",this.user.id)},toggleUserMute(){this.userIsMuted?this.unmuteUser():this.$refs.confirmUser.optionallyPrompt()},toggleConversationMute(){this.conversationIsMuted?this.unmuteConversation():this.$refs.confirmConversation.optionallyPrompt()},toggleDomainMute(){this.domainIsMuted?this.unmuteDomain():this.$refs.confirmDomain.optionallyPrompt()}}},Ibe=["id"],Pbe={class:"menu-item dropdown-item extra-action -icon"},Lbe={class:"menu-item dropdown-item extra-action -icon"},Obe={class:"menu-item dropdown-item extra-action -icon"};function Rbe(e,t,n,s,r,o){var h,v;const i=O("ActionButton"),a=O("FAIcon"),c=O("Popover"),u=O("MuteConfirm"),f=O("UserTimedFilterModal");return p(),b("div",null,[(v=(h=e.button).dropdown)!=null&&v.call(h)?(p(),x(c,{key:0,trigger:e.$attrs.extra?"hover":"click",offset:{y:5},placement:e.$attrs.extra?"right":"top"},{trigger:X(()=>[T(i,An({button:e.button,status:e.status},e.$attrs),null,16,["button","status"])]),content:X(()=>[e.button.name==="mute"?(p(),b("div",{key:0,id:`popup-menu-${e.randomSeed}`,class:"dropdown-menu",role:"menu"},[g("div",Pbe,[g("button",{class:"main-button",onClick:t[0]||(t[0]=(...y)=>e.toggleUserMute&&e.toggleUserMute(...y))},[T(a,{icon:"user","fixed-width":""}),e.userIsMuted?(p(),b(Se,{key:0},[de(w(e.$t("status.unmute_user")),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("status.mute_user")),1)],64))])]),g("div",Lbe,[g("button",{class:"main-button",onClick:t[1]||(t[1]=(...y)=>e.toggleConversationMute&&e.toggleConversationMute(...y))},[T(a,{icon:"folder-tree","fixed-width":""}),e.conversationIsMuted?(p(),b(Se,{key:0},[de(w(e.$t("status.unmute_conversation")),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("status.mute_conversation")),1)],64))])]),g("div",Obe,[g("button",{class:"main-button",onClick:t[2]||(t[2]=(...y)=>e.toggleDomainMute&&e.toggleDomainMute(...y))},[T(a,{icon:"globe","fixed-width":""}),e.domainIsMuted?(p(),b(Se,{key:0}
691,[de(w(e.$t("status.unmute_domain")),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("status.mute_domain")),1)],64))])])],8,Ibe)):E("",!0)]),_:1},8,["trigger","placement"])):(p(),x(i,An({key:1,button:e.button,status:e.status},e.$attrs,{onInteracted:t[3]||(t[3]=y=>e.$emit("interacted"))}),null,16,["button","status"])),(p(),x(Yn,{to:"#modal"},[T(u,{ref:"confirmConversation",type:"conversation",status:e.status,user:e.user},null,8,["status","user"]),T(u,{ref:"confirmDomain",type:"domain",status:e.status,user:e.user},null,8,["status","user"]),T(f,{ref:"confirmUser","is-mute":!0,user:e.user},null,8,["user"])]))])}const Mbe=ge(Ebe,[["render",Rbe]]),c8=new Set(["private","direct"]),Nbe=new Set(["public","unlisted"]),Fbe=[{name:"reply",label:"tool_tip.reply",icon:"reply",active:({replying:e})=>e,counter:({status:e})=>e.replies_count,anon:!0,anonLink:!0,toggleable:!0,closeIndicator:"times",activeIndicator:"none",action({emit:e}){return e("toggleReplying"),Promise.resolve()}},{name:"retweet",label:({status:e})=>e.repeated?"tool_tip.unrepeat":"tool_tip.repeat",icon({status:e,currentUser:t}){return t.id!==e.user.id&&c8.has(e.visibility)?"lock":"retweet"},animated:!0,active:({status:e})=>e.repeated,counter:({status:e})=>e.repeat_num,anonLink:!0,interactive:({status:e,currentUser:t})=>!!t&&(t.id===e.user.id||!c8.has(e.visibility)),toggleable:!0,confirm:({status:e,getters:t})=>!e.repeated&&t.mergedConfig.modalOnRepeat,confirmStrings:{title:"status.repeat_confirm_title",body:"status.repeat_confirm",confirm:"status.repeat_confirm_accept_button",cancel:"status.repeat_confirm_cancel_button"},action({status:e,dispatch:t}){return e.repeated?t("unretweet",{id:e.id}):t("retweet",{id:e.id})}},{name:"favorite",label:({status:e})=>e.favorited?"tool_tip.unfavorite":"tool_tip.favorite",icon:({status:e})=>e.favorited?["fas","star"]:["far","star"],animated:!0,active:({status:e})=>e.favorited,counter:({status:e})=>e.fave_num,anonLink:!0,toggleable:!0,action({status:e,dispatch:t}){return e.favorited?t("unfavorite",{id:e.id}):t("favorite",{id:e.id})}},{name:"emoji",label:"tool_tip.add_reaction",icon:["far","smile-beam"],anonLink:!0},{name:"mute",icon:"eye-slash",label:"status.mute_ellipsis",if:({loggedIn:e})=>e,toggleable:!0,dropdown:!0},{name:"pin",icon:"thumbtack",label:({status:e})=>e.pinned?"status.unpin":"status.pin",if({status:e,loggedIn:t,currentUser:n}){return t&&e.user.id===n.id&&Nbe.has(e.visibility)},action({status:e,dispatch:t}){return e.pinned?t("unpinStatus",e.id):t("pinStatus",e.id)}},{name:"bookmark",icon:({status:e})=>e.bookmarked?["fas","bookmark"]:["far","bookmark"],toggleable:!0,active:({status:e})=>e.bookmarked,label:({status:e})=>e.bookmarked?"status.unbookmark":"status.bookmark",if:({loggedIn:e})=>e,action({status:e,dispatch:t}){return e.bookmarked?t("unbookmark",{id:e.id}):t("bookmark",{id:e.id})}},{name:"editHistory",icon:"history",label:"status.status_history",if({status:e,state:t}){return t.instance.editingAvailable&&e.edited_at!==null},action({status:e}){const t={...e};return["attachments","created_at","emojis","text","raw_html","nsfw","poll","summary","summary_raw_html"].forEach(s=>delete t[s]),Mu().openStatusHistoryModal(t),Promise.resolve()}},{name:"edit",icon:"pen",label:"status.edit",if({status:e,loggedIn:t,currentUser:n,state:s}){return t&&s.instance.editingAvailable&&e.user.id===n.id},action({dispatch:e,status:t}){return e("fetchStatusSource",{id:t.id}).then(n=>Ru().openEditStatusModal({statusId:t.id,subject:n.spoiler_text,statusText:n.text,statusIsSensitive:t.nsfw,statusPoll:t.poll,statusFiles:[...t.attachments],visibility:t.visibility,statusContentType:n.content_type}))}},{name:"delete",icon:"times",label:"status.delete",if({status:e,loggedIn:t,currentUser:n}){return t&&(e.user.id===n.id||n.privileges.includes("messages_delete"))},confirm:({getters:e})=>e.mergedConfig.modalOnDelete,confirmStrings:{title:"status.delete_confirm_title",body:"status.delete_confirm",confirm:"status.delete_confirm_accept_button",cancel:"status.delete_confirm_cancel_button"},action({dispatch:e,status:t}){return e("deleteStatus",{id:t.id})}},{name:"share",icon:"share-alt",label:"status.copy_link",action({state:e,status:t,router:n}){return navigator.clipboard.writeText([e.instance.server,n.resolve({name:"conversation",params:{id:t.id}}).href].join("")),Promise.resolve()}},{name:"external",icon:"external-link-alt",label:"status.external_source",link:({status:e})=>e.external_url},{name:"report",icon:"flag",label:"user_card.report",if:({loggedIn:e})=>e,action({status:e}){return qi().openUserReportingModal({userId:e.user.id,statusIds:[e.
691id]})}}].map(e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t,typeof n=="function"||t==="name"?n:()=>n])));et.add(vd);const Dbe={props:["status","replying"],emits:["toggleReplying","interacted"],data(){return{showPin:!1,showingConfirmDialog:!1,currentConfirmTitle:"",currentConfirmOkText:"",currentConfirmCancelText:"",currentConfirmAction:()=>{},randomSeed:Jp()}},components:{Popover:Jn,ConfirmModal:Nr,ActionButtonContainer:Mbe},computed:{...sn(_n,{pinnedItems:e=>new Set(e.prefsStorage.collections.pinnedStatusActions)}),buttons(){return Fbe.filter(e=>e.if?e.if(this.funcArg):!0)},quickButtons(){return this.buttons.filter(e=>this.pinnedItems.has(e.name))},extraButtons(){return this.buttons.filter(e=>!this.pinnedItems.has(e.name))},currentUser(){return this.$store.state.users.currentUser},funcArg(){return{status:this.status,replying:this.replying,emit:this.$emit,dispatch:this.$store.dispatch,state:this.$store.state,getters:this.$store.getters,router:this.$router,currentUser:this.currentUser,loggedIn:!!this.currentUser}},triggerAttrs(){return{title:this.$t("status.more_actions"),"aria-controls":`popup-menu-${this.randomSeed}`,"aria-haspopup":"menu"}}},methods:{doAction(e){var t;(t=e.confirm)!=null&&t.call(e,this.funcArg)?(this.currentConfirmTitle=this.$t(e.confirmStrings(this.funcArg).title),this.currentConfirmOkText=this.$t(e.confirmStrings(this.funcArg).confirm),this.currentConfirmCancelText=this.$t(e.confirmStrings(this.funcArg).cancel),this.currentConfirmBody=this.$t(e.confirmStrings(this.funcArg).body),this.currentConfirmAction=()=>{this.showingConfirmDialog=!1,this.doActionReal(e)},this.showingConfirmDialog=!0):this.doActionReal(e)},doActionReal(e){e.action(this.funcArg).then(()=>this.$emit("onSuccess")).catch(t=>this.$emit("onError",t.error.error))},onExtraClose(){this.showPin=!1},isPinned(e){return this.pinnedItems.has(e.name)},unpin(e){_n().removeCollectionPreference({path:"collections.pinnedStatusActions",value:e.name}),_n().pushServerSideStorage()},pin(e){_n().addCollectionPreference({path:"collections.pinnedStatusActions",value:e.name}),_n().pushServerSideStorage()},getComponent(e){return!this.$store.state.users.currentUser&&e.anonLink||e.action==null&&e.link!=null?"a":"button"},getClass(e){var t,n;return{[e.name+"-button"]:!0,disabled:e.interactive?!e.interactive(this.funcArg):!1,"-pin-edit":this.showPin,"-dropdown":(t=e.dropdown)==null?void 0:t.call(e),"-active":(n=e.active)==null?void 0:n.call(e,this.funcArg)}}}},Ube={class:"StatusActionButtons"},jbe={class:"quick-action-buttons"},Bbe=["title","onClick"],zbe=["id"],qbe={key:0,class:"menu-item dropdown-item extra-action -icon"},Hbe=["onClick"],Vbe=["disabled"],Wbe=["title","onClick"];function Gbe(e,t,n,s,r,o){const i=O("ActionButtonContainer"),a=O("FAIcon"),c=O("Popover"),u=O("confirm-modal");return p(),b("div",Ube,[g("span",jbe,[(p(!0),b(Se,null,We(e.quickButtons,f=>{var h;return p(),b("span",{key:f.name,class:he(["quick-action",{"-pin":e.showPin,"-toggle":(h=f.dropdown)==null?void 0:h.call(f)}])},[T(i,{class:he({"-pin":e.showPin}),button:f,status:e.status,extra:!1,"func-arg":e.funcArg,"get-class":e.getClass,"get-component":e.getComponent,close:()=>{},"do-action":e.doAction,onInteracted:t[0]||(t[0]=v=>e.$emit("interacted"))},null,8,["class","button","status","func-arg","get-class","get-component","do-action"]),e.showPin&&e.currentUser?(p(),b("button",{key:0,type:"button",class:"button-unstyled pin-action-button",title:e.$t("general.unpin"),"aria-pressed":!0,onClick:Te(v=>e.unpin(f),["stop","prevent"])},[e.showPin&&e.currentUser?(p(),x(a,{key:0,"fixed-width":"",class:"fa-scale-110",icon:"thumbtack"})):E("",!0)],8,Bbe)):E("",!0)],2)}),128)),T(c,{trigger:"click","trigger-attrs":e.triggerAttrs,tabindex:0,placement:"top",offset:{y:5},"remove-padding":"",onClose:e.onExtraClose},{trigger:X(()=>[T(a,{class:"fa-scale-110",icon:"ellipsis-h"})]),content:X(({close:f,resize:h})=>[g("div",{id:`popup-menu-${e.randomSeed}`,class:"dropdown-menu extra-action-buttons",role:"menu"},[e.currentUser?(p(),b("div",qbe,[g("button",{class:"main-button",role:"menuitem",tabindex:0,onClick:Te(()=>{h(),e.showPin=!e.showPin},["stop"])},[T(a,{class:"fa-scale-110","fixed-width":"",icon:"wrench"}
691),g("span",null,w(e.$t("nav.edit_pinned")),1)],8,Hbe)])):E("",!0),(p(!0),b(Se,null,We(e.extraButtons,v=>(p(),b("div",{key:v.name,class:he(["menu-item dropdown-item extra-action -icon",{disabled:e.getClass(v).disabled}]),disabled:e.getClass(v).disabled},[T(i,{button:v,status:e.status,extra:!0,"func-arg":e.funcArg,"get-class":e.getClass,"get-component":e.getComponent,"outer-close":f,"do-action":e.doAction,onInteracted:t[1]||(t[1]=y=>e.$emit("interacted"))},null,8,["button","status","func-arg","get-class","get-component","outer-close","do-action"]),e.showPin&&e.currentUser?(p(),b("button",{key:0,type:"button",class:"button-unstyled pin-action-button extra-button",title:e.$t("general.pin"),"aria-pressed":!1,onClick:Te(y=>e.pin(v),["stop","prevent"])},[e.showPin&&e.currentUser?(p(),x(a,{key:0,"fixed-width":"",class:"fa-scale-110",transform:"rotate-45",icon:"thumbtack"})):E("",!0)],8,Wbe)):E("",!0)],10,Vbe))),128))],8,zbe)]),_:1},8,["trigger-attrs","onClose"])]),(p(),x(Yn,{to:"#modal"},[e.showingConfirmDialog?(p(),x(u,{key:0,title:e.currentConfirmTitle,"confirm-text":e.currentConfirmOkText,"cancel-text":e.currentConfirmCancelText,onAccepted:e.currentConfirmAction,onCancelled:t[2]||(t[2]=f=>e.showingConfirmDialog=!1)},{default:X(()=>[de(w(e.currentConfirmBody),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted"])):E("",!0)]))])}const Kbe=ge(Dbe,[["render",Gbe]]);et.add(Pp,md,DJ,xI,tP,Xn,a2,GI,WJ,Q_,Ap,vd,Y_,eZ,l2,X_,za,ZI,_Z);const nw=e=>e.charAt(0).toUpperCase()+e.slice(1),xbe=e=>e.reduce((t,n)=>{const s=nw(n),r=`controlledToggle${s}`,o=`controlled${s}`,i=`uncontrolled${s}`;return t[n]=function(){return(this.$data[r]!==void 0||this.$props[r]!==void 0)&&this[r]?this[o]:this[i]},t},{}),Ybe=(e,t)=>{const n=nw(t),s=`controlledToggle${n}`,r=`uncontrolled${n}`;e[s]?e[s]():e[r]=!e[r]},u8=(e,t,n)=>{const s=nw(t),r=`controlledSet${s}`,o=`uncontrolled${s}`;e[r]?e[r](n):e[o]=n},Xbe={name:"Status",components:{PostStatusForm:lc,UserAvatar:er,AvatarList:DO,Timeago:_d,StatusPopover:Xve,UserListPopover:UO,EmojiReactions:ube,StatusContent:Ka,RichContent:Mr,MentionLink:nO,MentionsLine:zy,UserPopover:om,UserLink:Sd,StatusActionButtons:Kbe},props:["statusoid","expandable","inConversation","focused","highlight","compact","replies","isPreview","noHeading","inlineExpanded","showPinned","inProfile","profileUserId","inQuote","simpleTree","controlledThreadDisplayStatus","controlledToggleThreadDisplay","showOtherRepliesAsButton","controlledShowingTall","controlledToggleShowingTall","controlledExpandingSubject","controlledToggleExpandingSubject","controlledShowingLongSubject","controlledToggleShowingLongSubject","controlledReplying","controlledToggleReplying","controlledMediaPlaying","controlledSetMediaPlaying","dive"],emits:["interacted"],data(){return{uncontrolledReplying:!1,unmuted:!1,userExpanded:!1,uncontrolledMediaPlaying:[],suspendable:!0,error:null,headTailLinks:null,displayQuote:!this.inQuote}},computed:{...xbe(["replying","mediaPlaying"]),showReasonMutedThread(){return(this.status.thread_muted||this.status.reblog&&this.status.reblog.thread_muted)&&!this.inConversation},repeaterClass(){const e=this.statusoid.user;return jh(e)},userClass(){const e=this.retweet?this.statusoid.retweeted_status.user:this.statusoid.user;return jh(e)},deleted(){return this.statusoid.deleted},repeaterStyle(){const e=this.statusoid.user,t=this.mergedConfig.highlight;return Uh(t[e.screen_name])},userStyle(){if(this.noHeading)return;const e=this.retweet?this.statusoid.retweeted_status.user:this.statusoid.user,t=this.mergedConfig.highlight;return Uh(t[e.screen_name])},userProfileLink(){return this.generateUserProfileLink(this.status.user.id,this.status.user.screen_name)},replyProfileLink(){if(this.isReply){const e=this.$store.getters.findUser(this.status.in_reply_to_user_id);return e?e.statusnet_profile_url:"NOT_FOUND"}},retweet(){return!!this.statusoid.retweeted_status},retweeterUser(){return this.statusoid.user},retweeter(){return this.statusoid.user.name||this.statusoid.user.screen_name_ui},retweeterHtml(){return this.statusoid.user.name},retweeterProfileLink(){return this.generateUserProfileLink(this.statusoid.user.id,this.statusoid.user.screen_name)},status(){return this.retweet?this.statusoid.retweeted_status:this.statusoid},statusFromGlobalRepository(){return this.$store.state.statuses.allStatusesObject[this.status.id]},loggedIn(){return!!this.currentUser},muteFilterHits(){return g5(Object.values(_n().prefsStorage.simple.muteFilters),this.status)},botStatus(){return this.status.user.actor_type==="Service"},showActorTypeIndicator(){return!this.hideBotIndication},sensitiveStatus(){return this.status.nsfw},mentionsLine(){if(!this.headTailLinks)return[];const e=new Set(this.headTailLinks.writtenMentions.map(t=>t.url));return this.status.attentions.filter(t=>t.id!==this.status.in_reply_to_user_id&&t.statusnet_profile_url!==this.status.user.statusnet_profile_url&&!e.has(t.statusnet_profile_url)).map(t=>({url:t.statusnet_profile_url,content:t.screen_name,userId:t.id}))},hasMentionsLine(){return this.mentionsLine.length>0},muteReasons(){return[this.userIsMuted?"user":null,this.status.thread_muted?"thread":null,this.muteFilterHits.length>0?"filtered":null,this.muteBotStatuses&&this.botStatus?"bot":null,this.muteSensitiveStatuses&&this.sensitiveStatus?"nsfw":null].filter(e=>e)},muteLocalized(){if(this.muteReasons.length===0)return null;const e=()=>{switch(this.muteReasons[0]){case"user":return this.$t("status.muted_user");case"thread":return this.$t("status.thread_muted");case"filtered":return this.$t("status.muted_filters",{name:this.muteFilterHits[0].name,filterMore:this.muteFilterHits.length-1},this.muteFilterHits.length);case"bot":return this.$t("status.bot_muted");case"nsfw":return this.$t("status.sensitive_muted")}};return this.muteReasons.length>1?this.$t("status.multi_reason_mute",{main:e(),numReasonsMore:this.muteReasons.length-1},this.muteReasons.length-1):e()},muted(){return this.statusoid.user.id===this.currentUser.id?!1:!this.unmuted&&!this.shouldNotMute&&this.muteReasons.length>0},userIsMuted(){if(this.statusoid.user.id===this.currentUser.id)return!1;const{status:e}=this,{reblog:t}=e,n=this.$store.getters.relationship(e.user.id),s=t&&this.$store.getters.relationship(t.user.id);return e.muted&&!e.thread_muted||t&&t.muted&&!t.thread_muted||n.muting||s&&s.muting},shouldNotMute(){if(this.isFocused)return!0;const{status:e}=this,{reblog:t}=e;return(this.inProfile&&(!t&&e.user.id===this.profileUserId||t&&t.user.id===this.profileUserId)||this.inConversation&&e.thread_muted)&&!this.muteFilterHits.length>0},hideMutedUsers(){return this.mergedConfig.hideMutedPosts},hideMutedThreads(){return this.mergedConfig.hideMutedThreads},hideFilteredStatuses(){return this.mergedConfig.hideFilteredStatuses},hideWordFilteredPosts(){return this.mergedConfig.hideWordFilteredPosts},hideStatus(){return!this.shouldNotMute&&(this.muted&&this.hideFilteredStatuses||this.userIsMuted&&this.hideMutedUsers||this.status.thread_muted&&this.hideMutedThreads||this.muteFilterHits.length>0&&this.hideWordFilteredPosts||this.muteFilterHits.some(e=>e.hide))},isFocused(){return this.focused?!0:this.inConversation?this.status.id===this.highlight:!1},isReply(){return!!(this.status.in_reply_to_status_id&&this.status.in_reply_to_user_id)},replyToName(){if(this.status.in_reply_to_screen_name)return this.status.in_reply_to_screen_name;{const e=this.$store.getters.findUser(this.status.in_reply_to_user_id);return e&&e.screen_name_ui}}
691,replySubject(){if(!this.status.summary)return"";const e=Z.unescape(this.status.summary),t=this.mergedConfig.subjectLineBehavior,n=e.match(/^re[: ]/i);if(t!=="noop"&&n||t==="masto")return e;if(t==="email")return"re: ".concat(e);if(t==="noop")return""},combinedFavsAndRepeatsUsers(){const e=[].concat(this.statusFromGlobalRepository.favoritedBy,this.statusFromGlobalRepository.rebloggedBy);return Z.uniqBy(e,"id")},tags(){return this.status.tags.filter(e=>e.hasOwnProperty("name")).map(e=>e.name).join(" ")},hidePostStats(){return this.mergedConfig.hidePostStats},shouldDisplayFavsAndRepeats(){return!this.hidePostStats&&this.isFocused&&(this.combinedFavsAndRepeatsUsers.length>0||this.statusFromGlobalRepository.quotes_count)},muteBotStatuses(){return this.mergedConfig.muteBotStatuses},muteSensitiveStatuses(){return this.mergedConfig.muteSensitiveStatuses},hideBotIndication(){return this.mergedConfig.hideBotIndication},currentUser(){return this.$store.state.users.currentUser},mergedConfig(){return this.$store.getters.mergedConfig},isSuspendable(){return!this.replying&&this.mediaPlaying.length===0},inThreadForest(){return!!this.controlledThreadDisplayStatus},threadShowing(){return this.controlledThreadDisplayStatus==="showing"},visibilityLocalized(){return this.$i18n.t("general.scope_in_timeline."+this.status.visibility)},isEdited(){return this.status.edited_at!==null},editingAvailable(){return this.$store.state.instance.editingAvailable},hasVisibleQuote(){return this.status.quote_url&&this.status.quote_visible},hasInvisibleQuote(){return this.status.quote_url&&!this.status.quote_visible},quotedStatus(){return this.status.quote_id?this.$store.state.statuses.allStatusesObject[this.status.quote_id]:void 0},shouldDisplayQuote(){return this.quotedStatus&&this.displayQuote},scrobblePresent(){var i;if(this.mergedConfig.hideScrobbles||!((i=this.status.user)!=null&&i.latestScrobble))return!1;const e=this.mergedConfig.hideScrobblesAfter.match(/\d+/gs)[0],t=this.mergedConfig.hideScrobblesAfter.match(/\D+/gs)[0];let n=60*1e3;switch(t){case"m":break;case"h":n*=60;break;case"d":n*=60,n*=24;break}const s=Number(e)*n,r=Date.parse(this.status.user.latestScrobble.created_at);return Date.now()-r>s?!1:this.status.user.latestScrobble.artist},scrobble(){var e;return(e=this.status.user)==null?void 0:e.latestScrobble}},methods:{visibilityIcon(e){switch(e){case"private":return"lock";case"unlisted":return"lock-open";case"direct":return"envelope";case"local":return"igloo";default:return"globe"}},showError(e){this.error=e},clearError(){this.$emit("interacted"),this.error=void 0},toggleReplying(){this.$emit("interacted"),this.replying?this.$refs.postStatusForm.requestClose():this.doToggleReplying()},doToggleReplying(){Ybe(this,"replying")},gotoOriginal(e){this.inConversation&&this.$emit("goto",e)},toggleExpanded(){this.$emit("toggleExpanded")},toggleMute(){this.unmuted=!this.unmuted},toggleUserExpanded(){this.userExpanded=!this.userExpanded},generateUserProfileLink(e,t){return ao(e,t,this.$store.state.instance.restrictedNicknames)},addMediaPlaying(e){u8(this,"mediaPlaying",this.mediaPlaying.concat(e))},removeMediaPlaying(e){u8(this,"mediaPlaying",this.mediaPlaying.filter(t=>t!==e))},setHeadTailLinks(e){this.headTailLinks=e},toggleThreadDisplay(){this.controlledToggleThreadDisplay()},scrollIfHighlighted(e){if(this.$el.getBoundingClientRect==null)return;const t=e;if(this.status.id===t){const n=this.$el.getBoundingClientRect();n.top<100||n.height>=window.innerHeight-50?window.scrollBy(0,n.top-100):n.bottom>window.innerHeight-50&&window.scrollBy(0,n.bottom-window.innerHeight+50)}},toggleDisplayQuote(){this.shouldDisplayQuote?this.displayQuote=!1:this.quotedStatus?this.displayQuote=!0:this.$store.dispatch("fetchStatus",this.status.quote_id).then(()=>{this.displayQuote=!0})}},watch:{highlight:function(e){this.scrollIfHighlighted(e)},"status.repeat_num":function(e){this.isFocused&&this.statusFromGlobalRepository.rebloggedBy&&this.statusFromGlobalRepository.rebloggedBy.length!==e&&this.$store.dispatch("fetchRepeats",this.status.id)},"status.fave_num":function(e){this.isFocused&&this.statusFromGlobalRepository.favoritedBy&&this.statusFromGlobalRepository.favoritedBy.length!==e&&this.$store.dispatch("fetchFavs",this.status.id)},isSuspendable:function(e){this.suspendable=e}}},Jbe={key:0,class:"alert error"},Zbe={key:1,class:"status-container muted"},Qbe={class:"status-username"},e0e={class:"mute-reason"},t0e={key:0,class:"pin"},n0e={class:"faint"},s0e={class:"right-side faint"},r0e=["title"],o0e=["data-tags"],i0e={key:0,class:"left-side"},a0e=["href"],l0e={class:"right-side"},c0e={key:0,class:"status-heading"},u0e={class:"heading-name-row"},d0e={key:0,class:"heading-left"},f0e=["title"],h0e=["title"],p0e=["src"],m0e={class:"heading-right"},g0e=["title"],v0e=["title"],b0e=["title","aria-expanded"],y0e=["title"],_0e={key:0,class:"status-rich-presence"},w0e=["href"],S0e={class:"status-rich-presence-time"},k0e={key:1},$0e={class:"status-rich-presence-time"},C0e={key:1,class:"heading-reply-row"},T0e={key:0,class:"glued-label reply-glued-label"},A0e=["aria-label"],E0e={class:"reply-to-text"},I0e={key:1,class:"reply-to-no-popover"},P0e={class:"reply-to-text"},L0e={key:1,class:"glued-label"},O0e=["aria-label"],R0e={class:"mentions-text"},M0e={key:2,class:"heading-edited-row"},N0e={key:1,class:"quoted-status"},F0e=["aria-expanded"],D0e={key:2,class:"quoted-status -unavailable-prompt"},U0e=["href"],j0e={key:3,class:"replies"},B0e=["title"],z0e={key:1,class:"faint"},q0e=["onClick"],H0e={key:0,class:"favs-repeated-users"},V0e={class:"stats"},W0e={class:"stat-count"},G0e={class:"stat-title"},K0e={class:"stat-number"},x0e={class:"stat-count"},Y0e={class:"stat-title"},X0e={class:"stat-number"},J0e={class:"stat-count"},Z0e={class:"stat-title"},Q0e={class:"stat-number"},eye={class:"avatar-row"},tye={key:3,class:"gravestone"},nye={class:"left-side"},sye={class:"right-side"},rye={class:"deleted-text"},oye={key:4,class:"status-container reply-form"};function iye(e,t,n,s,r,o){var Y,H;const i=O("FAIcon"),a=O("user-link"),c=O("UserAvatar"),u=O("RichContent"),f=O("router-link"),h=O("UserPopover"),v=O("Timeago"),y=O("i18n-t"),S=O("StatusPopover"),C=O("MentionLink"),I=O("MentionsLine"),$=O("StatusContent"),k=O("Status",!0),P=O("UserListPopover"),A=O("AvatarList"),R=O("EmojiReactions"),B=O("StatusActionButtons"),N=O("PostStatusForm");return e.hideStatus?E("",!0):(p(),b("div",{key:0,ref:"root",class:he(["Status",[{"-focused":e.isFocused},{"-conversation":e.inlineExpanded}]])},[e.error?(p(),b("div",Jbe,[de(w(e.error)+" ",1),g("span",{class:"fa-scale-110 fa-old-pa
691dding",onClick:t[0]||(t[0]=(...D)=>e.clearError&&e.clearError(...D))},[T(i,{icon:"times"})])])):E("",!0),e.muted&&!e.isPreview?(p(),b("div",Zbe,[g("small",Qbe,[e.muted&&e.retweet?(p(),x(i,{key:0,class:"fa-scale-110 fa-old-padding repeat-icon",icon:"retweet"})):E("",!0),T(a,{user:e.status.user,at:!1},null,8,["user"])]),g("small",e0e,w(e.muteLocalized),1),g("button",{class:"unmute button-unstyled",onClick:t[1]||(t[1]=Te((...D)=>e.toggleMute&&e.toggleMute(...D),["prevent"]))},[T(i,{icon:"eye-slash",class:"fa-scale-110 fa-old-padding"})])])):(p(),b(Se,{key:2},[e.showPinned?(p(),b("div",t0e,[T(i,{icon:"thumbtack",class:"faint"}),g("span",n0e,w(e.$t("status.pinned")),1)])):E("",!0),e.retweet&&!e.noHeading&&!e.inConversation?(p(),b("div",{key:1,class:he([[e.repeaterClass,{highlighted:e.repeaterStyle}],"status-container repeat-info"]),style:hn([e.repeaterStyle])},[e.retweet?(p(),x(c,{key:0,class:"left-side repeater-avatar","show-actor-type-indicator":e.showActorTypeIndicator,user:e.statusoid.user},null,8,["show-actor-type-indicator","user"])):E("",!0),g("div",s0e,[g("bdi",{class:"status-username repeater-name",title:e.retweeter},[e.retweeterHtml?(p(),x(f,{key:0,to:e.retweeterProfileLink},{default:X(()=>[T(u,{html:e.retweeterHtml,emoji:e.retweeterUser.emoji,"is-local":e.retweeterUser.is_local},null,8,["html","emoji","is-local"])]),_:1},8,["to"])):(p(),x(f,{key:1,to:e.retweeterProfileLink},{default:X(()=>[de(w(e.retweeter),1)]),_:1},8,["to"]))],8,r0e),t[14]||(t[14]=de(" "+w(" ")+" ",-1)),T(i,{icon:"retweet",class:"repeat-icon",title:e.$t("tool_tip.repeat")},null,8,["title"]),de(" "+w(e.$t("timeline.repeated")),1)])],6)):E("",!0),e.deleted?(p(),b("div",tye,[g("div",nye,[T(c,{class:"post-avatar",compact:e.compact,"show-actor-type-indicator":e.showActorTypeIndicator},null,8,["compact","show-actor-type-indicator"])]),g("div",sye,[g("div",rye,w(e.$t("status.status_deleted")),1)])])):(p(),b("div",{key:2,class:he([[e.userClass,{highlighted:e.userStyle,"-repeat":e.retweet&&!e.inConversation}],"status-container"]),style:hn([e.userStyle]),"data-tags":e.tags},[e.noHeading?E("",!0):(p(),b("div",i0e,[(Y=e.status.user)!=null&&Y.name?(p(),b("a",{key:0,href:e.$router.resolve(e.userProfileLink).href,onClick:t[2]||(t[2]=Te(()=>{},["prevent"]))},[T(h,{"user-id":e.status.user.id,"overlay-centers":!0},{default:X(()=>{var D;return[T(c,{class:"post-avatar","show-actor-type-indicator":e.showActorTypeIndicator,compact:e.compact,user:(D=e.status)==null?void 0:D.user},null,8,["show-actor-type-indicator","compact","user"])]}),_:1},8,["user-id"])],8,a0e)):(p(),x(c,{key:1,user:(H=e.status)==null?void 0:H.user,class:"post-avatar",compact:e.compact,title:e.$t("status.unknown_user_info")},null,8,["user","compact","title"]))])),g("div",l0e,[e.noHeading?E("",!0):(p(),b("div",c0e,[g("div",u0e,[e.status.user?(p(),b("div",d0e,[e.status.user.name_html?(p(),b("h4",{key:0,class:"status-username",title:e.status.user.name},[T(u,{html:e.status.user.name,emoji:e.status.user.emoji,"is-local":e.status.user.is_local},null,8,["html","emoji","is-local"])],8,f0e)):(p(),b("h4",{key:1,class:"status-username",title:e.status.user.name},w(e.status.user.name),9,h0e)),T(a,{class:"account-name",title:e.status.user.screen_name_ui,user:e.status.user,at:!1},null,8,["title","user"]),e.status.user&&e.status.user.favicon?(p(),b("img",{key:2,class:"status-favicon",src:e.status.user.favicon},null,8,p0e)):E("",!0)])):E("",!0),g("span",m0e,[T(f,{class:"timeago faint",to:{name:"conversation",params:{id:e.status.id}}},{default:X(()=>[T(v,{time:e.status.created_at,"auto-update":60},null,8,["time"])]),_:1},8,["to"]),e.status.visibility?(p(),b("span",{key:0,class:"visibility-icon",title:e.visibilityLocalized},[T(i,{"fixed-width":"",class:"fa-scale-110",icon:e.visibilityIcon(e.status.visibility)},null,8,["icon"])],8,g0e)):E("",!0),e.expandable&&!e.isPreview?(p(),b("button",{key:1,class:"button-unstyled",title:e.$t("status.expand"),onClick:t[3]||(t[3]=Te((...D)=>e.toggleExpanded&&e.toggleExpanded(...D),["prevent"]))},[T(i,{"fixed-width":"",class:"fa-scale-110",icon:"plus-square"})],8,v0e)):E("",!0),e.unmuted?(p(),b("button",{key:2,class:"button-unstyled",onClick:t[4]||(t[4]=Te((...D)=>e.toggleMute&&e.toggleMute(...D),["prevent"]))},[T(i,{"fixed-width":"",icon:"eye-slash",class:"fa-scale-110"})])):E("",!0),e.inThreadForest&&e.replies&&e.replies.length&&!e.simpleTree?(p(),b("button",{key:3,class:"button-unstyled",title:e.threadShowing?e.$t("status.thread_hide"):e.$t("status.thread_show"),"aria-expanded":e.threadShowing?"true":"false",onClick:t[5]||(t[5]=Te((...D)=>e.toggleThreadDisplay&&e.toggleThreadDisplay(...D),["prevent"]))},[T(i,{"fixed-width":"",class:"fa-scale-110",icon:e.threadShowing?"chevron-up":"chevron-down"},null,8,["icon"])],8,b0e)):E("",!0),e.dive&&!e.simpleTree?(p(),b("button",{key:4,class:"button-unstyled",title:e.$t("status.show_only_conversation_under_this"),onClick:t[6]||(t[6]=Te
691((...D)=>e.dive&&e.dive(...D),["prevent"]))},[T(i,{"fixed-width":"",class:"fa-scale-110",icon:"angle-double-right"})],8,y0e)):E("",!0)])]),e.scrobblePresent?(p(),b("div",_0e,[e.scrobble.externalLink?(p(),b("a",{key:0,href:e.scrobble.externalLink,target:"_blank"},[de(w(e.scrobble.artist)+" — "+w(e.scrobble.title)+" ",1),T(i,{class:"fa-scale-110 fa-old-padding",icon:"play"}),g("span",S0e,[T(v,{"template-key":"time.in_past",time:e.scrobble.created_at,"auto-update":60},null,8,["time"])])],8,w0e)):E("",!0),e.scrobble.externalLink?E("",!0):(p(),b("span",k0e,[T(i,{class:"fa-scale-110 fa-old-padding",icon:"music"}),de(" "+w(e.scrobble.artist)+" — "+w(e.scrobble.title)+" ",1),T(i,{class:"fa-scale-110 fa-old-padding",icon:"play"}),g("span",$0e,[T(v,{"template-key":"time.in_past",time:e.scrobble.created_at,"auto-update":60},null,8,["time"])])]))])):E("",!0),e.isReply||e.hasMentionsLine?(p(),b("div",C0e,[e.isReply?(p(),b("span",T0e,[T(y,{keypath:"status.reply_to_with_arg",scope:"global"},{replyToWithIcon:X(()=>[e.isPreview?(p(),b("span",I0e,[g("span",P0e,w(e.$t("status.reply_to")),1)])):(p(),x(S,{key:0,"status-id":e.status.parent_visible&&e.status.in_reply_to_status_id,class:he(["reply-to-popover",{"-strikethrough":!e.status.parent_visible}]),style:{"min-width":"0"}},{default:X(()=>[g("button",{class:"button-unstyled reply-to","aria-label":e.$t("tool_tip.reply"),onClick:t[7]||(t[7]=Te(D=>e.gotoOriginal(e.status.in_reply_to_status_id),["prevent"]))},[T(y,{keypath:"status.reply_to_with_icon",scope:"global"},{icon:X(()=>[T(i,{class:"fa-scale-110 fa-old-padding",icon:"reply",flip:"horizontal"})]),replyTo:X(()=>[g("span",E0e,w(e.$t("status.reply_to")),1)]),_:1})],8,A0e)]),_:1},8,["status-id","class"]))]),user:X(()=>[T(C,{content:e.replyToName,url:e.replyProfileLink,"user-id":e.status.in_reply_to_user_id,"user-screen-name":e.status.in_reply_to_screen_name},null,8,["content","url","user-id","user-screen-name"])]),_:1})])):E("",!0),e.hasMentionsLine?(p(),b("span",L0e,[g("span",{class:"mentions","aria-label":e.$t("tool_tip.mentions"),onClick:t[8]||(t[8]=Te(D=>e.gotoOriginal(e.status.in_reply_to_status_id),["prevent"]))},[g("span",R0e,w(e.$t("status.mentions")),1)],8,O0e),e.hasMentionsLine?(p(),x(I,{key:0,mentions:e.mentionsLine.slice(0,1),class:"mentions-line-first"},null,8,["mentions"])):E("",!0)])):E("",!0),t[15]||(t[15]=de(" "+w(" ")+" ",-1)),e.hasMentionsLine?(p(),x(I,{key:2,mentions:e.mentionsLine.slice(1),class:"mentions-line"},null,8,["mentions"])):E("",!0)])):E("",!0),e.isEdited&&e.editingAvailable&&!e.isPreview?(p(),b("div",M0e,[T(y,{scope:"global",keypath:"status.edited_at",tag:"span"},{time:X(()=>[T(v,{"template-key":"time.in_past",time:e.status.edited_at,"auto-update":60,"long-format":!0},null,8,["time"])]),_:1})])):E("",!0)])),T($,{ref:"content",status:e.status,"no-heading":e.noHeading,highlight:e.highlight,focused:e.isFocused,"controlled-showing-tall":e.controlledShowingTall,"controlled-expanding-subject":e.controlledExpandingSubject,"controlled-showing-long-subject":e.controlledShowingLongSubject,"controlled-toggle-showing-tall":e.controlledToggleShowingTall,"controlled-toggle-expanding-subject":e.controlledToggleExpandingSubject,"controlled-toggle-showing-long-subject":e.controlledToggleShowingLongSubject,onMediaplay:t[9]||(t[9]=D=>e.addMediaPlaying(D)),onMediapause:t[10]||(t[10]=D=>e.removeMediaPlaying(D)),onParseReady:e.setHeadTailLinks},null,8,["status","no-heading","highlight","focused","controlled-showing-tall","controlled-expanding-subject","controlled-showing-long-subject","controlled-toggle-showing-tall","controlled-toggle-expanding-subject","controlled-toggle-showing-long-subject","onParseReady"]),e.hasVisibleQuote?(p(),b("article",N0e,[g("button",{class:"button-unstyled -link display-quoted-status-button","aria-expanded":e.shouldDisplayQuote,onClick:t[11]||(t[11]=(...D)=>e.toggleDisplayQuote&&e.toggleDisplayQuote(...D))},[de(w(e.shouldDisplayQuote?e.$t("status.hide_quote"):e.$t("status.display_quote"))+" ",1),T(i,{class:"display-quoted-status-button-icon",icon:e.shouldDisplayQuote?"chevron-up":"chevron-down"},null,8,["icon"])],8,F0e),e.shouldDisplayQuote?(p(),x(k,{key:0,statusoid:e.quotedStatus,"in-quote":!0},null,8,["statusoid"])):E("",!0)])):e.hasInvisibleQuote?(p(),b("p",D0e,[T(y,{scope:"global",keypath:"status.invisible_quote"},{link:X(()=>[g("bdi",null,[g("a",{href:e.status.quote_url,target:"_blank"},w(e.status.quote_url),9,U0e)])]),_:1})])):E("",!0),e.inConversation&&!e.isPreview&&e.replies&&e.replies.length?(p(),b("div",j0e,[e.showOtherRepliesAsButton&&e.replies.length>1?(p(),b("button",{key:0,class:"button-unstyled -link",title:e.$t("status.ancestor_follow",{numReplies:e.replies.length-1},e.replies.length-1),onClick:t[12]||(t[12]=Te((...D)=>e.dive&&e.dive(...D),["prevent"]))},w(e.$t("status.replies_list_with_others",{numReplies:e.replies.length-1},e.replies.length-1)),9,B0e)):(p(),b("span",z0e,w(e.$t("status.replies_list")),1)),(p(!0),b(Se,null,We(e.replies,D=>(p(),x(S,{key:D.id,"status-id":D.id},{default:X(()=>[g("button",{class:"button-unstyled -link reply-link",onClick:Te(oe=>
691e.gotoOriginal(D.id),["prevent"])},w(D.name),9,q0e)]),_:2},1032,["status-id"]))),128))])):E("",!0),T(ZA,{name:"fade"},{default:X(()=>[e.shouldDisplayFavsAndRepeats?(p(),b("div",H0e,[g("div",V0e,[e.statusFromGlobalRepository.rebloggedBy&&e.statusFromGlobalRepository.rebloggedBy.length>0?(p(),x(P,{key:0,users:e.statusFromGlobalRepository.rebloggedBy},{default:X(()=>[g("div",W0e,[g("a",G0e,w(e.$t("status.repeats")),1),g("div",K0e,w(e.statusFromGlobalRepository.rebloggedBy.length),1)])]),_:1},8,["users"])):E("",!0),e.statusFromGlobalRepository.favoritedBy&&e.statusFromGlobalRepository.favoritedBy.length>0?(p(),x(P,{key:1,users:e.statusFromGlobalRepository.favoritedBy},{default:X(()=>[g("div",x0e,[g("a",Y0e,w(e.$t("status.favorites")),1),g("div",X0e,w(e.statusFromGlobalRepository.favoritedBy.length),1)])]),_:1},8,["users"])):E("",!0),e.statusFromGlobalRepository.quotes_count>0?(p(),x(f,{key:2,to:{name:"quotes",params:{id:e.status.id}}},{default:X(()=>[g("div",J0e,[g("a",Z0e,w(e.$t("status.quotes")),1),g("div",Q0e,w(e.statusFromGlobalRepository.quotes_count),1)])]),_:1},8,["to"])):E("",!0),g("div",eye,[T(A,{users:e.combinedFavsAndRepeatsUsers},null,8,["users"])])])])):E("",!0)]),_:1}),(e.mergedConfig.emojiReactionsOnTimeline||e.isFocused)&&!e.noHeading&&!e.isPreview?(p(),x(R,{key:4,status:e.status},null,8,["status"])):E("",!0),!e.noHeading&&!e.isPreview?(p(),x(B,{key:5,status:e.status,replying:e.replying,onToggleReplying:e.toggleReplying,onInteracted:t[13]||(t[13]=D=>e.$emit("interacted"))},null,8,["status","replying","onToggleReplying"])):E("",!0)])],14,o0e)),e.replying?(p(),b("div",oye,[T(N,{ref:"postStatusForm",class:"reply-body",closeable:!0,"reply-to":e.status.id,attentions:e.status.attentions,"replied-user":e.status.user,"copy-message-scope":e.status.visibility,subject:e.replySubject,onPosted:e.doToggleReplying,onDraftDone:e.doToggleReplying,onCanClose:e.doToggleReplying},null,8,["reply-to","attentions","replied-user","copy-message-scope","subject","onPosted","onDraftDone","onCanClose"])])):E("",!0)],64))],2))}const ea=ge(Xbe,[["render",iye]]),aye=Object.freeze(Object.defineProperty({__proto__:null,default:ea},Symbol.toStringTag,{value:"Module"})),lye={props:["reportId"],components:{Select:Zi,StatusContent:Ka,Timeago:_d,RichContent:Mr},computed:{report(){return qi().reports[this.reportId]||{}},state:{get:function(){return this.report.state},set:function(e){this.setReportState(e)}}},methods:{generateUserProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)},setReportState(e){return qi().setReportState({id:this.report.id,state:e})}}},cye={class:"Report"},uye={class:"reported-user"},dye={class:"reporter"},fye={class:"report-state"},hye=["value"],pye={key:0},mye={class:"reported-status-heading"},gye={class:"reported-status-name"},vye={key:1};function bye(e,t,n,s,r,o){const i=O("router-link"),a=O("Select"),c=O("RichContent"),u=O("Timeago"),f=O("status-content");return p(),b("div",cye,[g("div",uye,[g("span",null,w(e.$t("report.reported_user")),1),T(i,{to:e.generateUserProfileLink(e.report.acct)},{default:X(()=>[de(" @"+w(e.report.acct.screen_name),1)]),_:1},8,["to"])]),g("div",dye,[g("span",null,w(e.$t("report.reporter")),1),T(i,{to:e.generateUserProfileLink(e.report.actor)},{default:X(()=>[de(" @"+w(e.report.actor.screen_name),1)]),_:1},8,["to"])]),g("div",fye,[g("span",null,w(e.$t("report.state")),1),T(a,{id:e.report-e.state,modelValue:e.state,"onUpdate:modelValue":t[0]||(t[0]=h=>e.state=h),class:"input form-control"},{default:X(()=>[(p(),b(Se,null,We(["open","closed","resolved"],h=>g("option",{key:h,value:h},w(e.$t("report.state_"+h)),9,hye)),64))]),_:1},8,["id","modelValue"])]),T(c,{class:"report-content",html:e.report.content,emoji:[]},null,8,["html"]),e.report.statuses.length?(p(),b("div",pye,[g("small",null,w(e.$t("report.reported_statuses")),1),(p(!0),b(Se,null,We(e.report.statuses,h=>(p(),x(i,{key:h.id,to:{name:"conversation",params:{id:h.id}},class:"reported-status"},{default:X(()=>[g("div",mye,[g("span",gye,w(h.user.name),1),T(u,{time:h.created_at,"auto-update":240,class:"faint"},null,8,["time"])]),T(f,{status:h},null,8,["status"])]),_:2},1032,["to"]))),128))])):E("",!0),e.report.notes.length?(p(),b("div",vye,[g("small",null,w(e.$t("report.notes")),1),(p(!0),b(Se,null,We(e.report.notes,h=>(p(),b("div",{key:h.id,class:"note"},[g("span",null,w(h.content),1),T(u,{time:h.created_at,"auto-update":240,class:"faint"}
691,null,8,["time"])]))),128))])):E("",!0)])}const yye=ge(lye,[["render",bye]]);et.add(Rp,Xn,Q_,a2,Op,Z_,Y_,kZ,dP,wJ);const _ye={data(){return{selecting:!1,statusExpanded:!1,unmuted:!1,showingApproveConfirmDialog:!1,showingDenyConfirmDialog:!1}},props:["notification"],emits:["interacted"],components:{StatusContent:Ka,UserAvatar:er,UserCard:$d,Timeago:_d,Status:ea,Report:yye,RichContent:Mr,UserPopover:om,UserLink:Sd,ConfirmModal:Nr},mounted(){document.addEventListener("selectionchange",this.onContentSelect)},unmounted(){document.removeEventListener("selectionchange",this.onContentSelect)},methods:{toggleStatusExpanded(){this.expandable&&(this.statusExpanded=!this.statusExpanded)},onContentSelect(){const{isCollapsed:e,anchorNode:t,offsetNode:n}=document.getSelection();if(e){this.selecting=!1;return}this.$refs.root.contains(t)||this.$refs.root.contains(n)?this.selecting=!0:this.selecting=!1},onContentClick(e){!this.selecting&&!e.target.closest("a")&&!e.target.closest("button")&&this.toggleStatusExpanded()},generateUserProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)},getUser(e){return this.$store.state.users.usersObject[e.from_profile.id]},interacted(){this.$emit("interacted")},toggleMute(){this.unmuted=!this.unmuted},showApproveConfirmDialog(){this.showingApproveConfirmDialog=!0},hideApproveConfirmDialog(){this.showingApproveConfirmDialog=!1},showDenyConfirmDialog(){this.showingDenyConfirmDialog=!0},hideDenyConfirmDialog(){this.showingDenyConfirmDialog=!1},approveUser(){this.shouldConfirmApprove?this.showApproveConfirmDialog():this.doApprove()},doApprove(){this.$emit("interacted"),this.$store.state.api.backendInteractor.approveUser({id:this.user.id}),this.$store.dispatch("removeFollowRequest",this.user),this.$store.dispatch("markSingleNotificationAsSeen",{id:this.notification.id}),this.$store.dispatch("updateNotification",{id:this.notification.id,updater:e=>{e.type="follow"}}),this.hideApproveConfirmDialog()},denyUser(){this.shouldConfirmDeny?this.showDenyConfirmDialog():this.doDeny()},doDeny(){this.$emit("interacted"),this.$store.state.api.backendInteractor.denyUser({id:this.user.id}).then(()=>{this.$store.dispatch("dismissNotificationLocal",{id:this.notification.id}),this.$store.dispatch("removeFollowRequest",this.user)}),this.hideDenyConfirmDialog()}},computed:{userClass(){return jh(this.notification.from_profile)},userStyle(){const e=this.$store.getters.mergedConfig.highlight,t=this.notification.from_profile;return Uh(e[t.screen_name])},expandable(){return new Set(["like","pleroma:emoji_reaction","repeat","poll"]).has(this.notification.type)},user(){return this.$store.getters.findUser(this.notification.from_profile.id)},userProfileLink(){return this.generateUserProfileLink(this.user)},targetUser(){return this.$store.getters.findUser(this.notification.target.id)},targetUserProfileLink(){return this.generateUserProfileLink(this.targetUser)},needMute(){return this.$store.getters.relationship(this.user.id).muting},isStatusNotification(){return ld(this.notification.type)},mergedConfig(){return this.$store.getters.mergedConfig},shouldConfirmApprove(){return this.mergedConfig.modalOnApproveFollow},shouldConfirmDeny(){return this.mergedConfig.modalOnDenyFollow},...mn({currentUser:e=>e.users.currentUser})}},wye={key:0,ref:"root"},Sye=["id","aria-expanded","aria-controls"],kye=["href"],$ye={class:"notification-right"},Cye={class:"notification-details"},Tye={class:"name-and-action"},Aye={key:0},Eye=["title"],Iye={key:2},Pye={key:3},Lye={key:4},Oye={key:5},Rye={key:6},Mye={key:7},Nye=["src","alt","title"],Fye={key:1,class:"emoji-reaction-emoji"},Dye={key:8},Uye={key:9},jye={key:0,class:"timeago"},Bye=["title","aria-expanded"],zye={key:1,class:"timeago"},qye={class:"faint"},Hye=["title","aria-expanded"],Vye={key:0,class:"follow-text"},Wye={key:0,style:{"white-space":"nowrap"}},Gye=["title"],Kye=["title"],xye={key:1,class:"move-text"};function Yye(e,t,n,s,r,o){const i=O("Status"),a=O("user-link"),c=O("FAIcon"),u=O("UserAvatar"),f=O("UserPopover"),h=O("RichContent"),v=O("i18n-t"),y=O("Timeago"),S=O("router-link"),C=O("Report"),I=O("StatusContent"),$=O("confirm-modal");return e.notification.type==="mention"||e.notification.type==="status"?(p(),b("article",wye,[T(i,{class:"Notification",compact:!0,statusoid:e.notification.status,onInteracted:e.interacted},null,8,["statusoid","onInteracted"])],512)):(p(),b("article",{key:1,ref:"root",class:he(["NotificationParent",{"-expandable":e.expandable}])},[e.needMute&&!e.unmuted?(p(),b("div",{key:0,id:"notif-"+e.notification.id,"aria-expanded":e.statusExpanded,"aria-controls":"notif-"+e.notification.id,class:"Notification container -muted"},[g("small",null,[T(a,{user:e.notification.from_profile,at:!1},null,8,["user"])]),g("button",{class:"button-unstyled unmute",onClick:t[0]||(t[0]=Te((...k)=>e.toggleMute&&e.toggleMute(...k),["prevent"]))}
691,[T(c,{class:"fa-scale-110 fa-old-padding",icon:"eye-slash"})])],8,Sye)):(p(),b("div",{key:1,class:he(["Notification non-mention",[e.userClass,{highlighted:e.userStyle},"-type--"+e.notification.type]]),style:hn([e.userStyle])},[g("a",{class:"avatar-container",href:e.$router.resolve(e.userProfileLink).href,onClick:t[1]||(t[1]=Te(()=>{},["prevent"]))},[T(f,{"user-id":e.notification.from_profile.id,"overlay-centers":!0},{default:X(()=>[T(u,{class:"post-avatar",compact:!0,user:e.notification.from_profile},null,8,["user"])]),_:1},8,["user-id"])],8,kye),g("div",$ye,[g("span",Cye,[g("div",Tye,[e.notification.from_profile.name_html?(p(),b("bdi",Aye,[T(h,{class:"username",title:"@"+e.notification.from_profile.screen_name_ui,html:e.notification.from_profile.name_html,emoji:e.notification.from_profile.emoji,"is-local":e.notification.from_profile.is_local},null,8,["title","html","emoji","is-local"])])):(p(),b("span",{key:1,class:"username",title:"@"+e.notification.from_profile.screen_name_ui},w(e.notification.from_profile.name),9,Eye)),t[12]||(t[12]=de(" "+w(" ")+" ",-1)),e.notification.type==="like"?(p(),b("span",Iye,[T(c,{class:"type-icon",icon:"star"}),t[6]||(t[6]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.favorited_you")),1)])):E("",!0),e.notification.type==="repeat"?(p(),b("span",Pye,[T(c,{class:"type-icon",icon:"retweet",title:e.$t("tool_tip.repeat")},null,8,["title"]),t[7]||(t[7]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.repeated_you")),1)])):E("",!0),e.notification.type==="follow"?(p(),b("span",Lye,[T(c,{class:"type-icon",icon:"user-plus"}),t[8]||(t[8]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.followed_you")),1)])):E("",!0),e.notification.type==="follow_request"?(p(),b("span",Oye,[T(c,{class:"type-icon",icon:"user"}),t[9]||(t[9]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.follow_request")),1)])):E("",!0),e.notification.type==="move"?(p(),b("span",Rye,[T(c,{class:"type-icon",icon:"suitcase-rolling"}),t[10]||(t[10]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.migrated_to")),1)])):E("",!0),e.notification.type==="pleroma:emoji_reaction"?(p(),b("span",Mye,[g("small",null,[T(v,{scope:"global",keypath:"notifications.reacted_with"},{default:X(()=>[e.notification.emoji_url?(p(),b("img",{key:0,class:"emoji-reaction-emoji emoji-reaction-emoji-image",src:e.notification.emoji_url,alt:e.notification.emoji,title:e.notification.emoji},null,8,Nye)):(p(),b("span",Fye,w(e.notification.emoji),1))]),_:1})])])):E("",!0),e.notification.type==="pleroma:report"?(p(),b("span",Dye,[g("small",null,w(e.$t("notifications.submitted_report")),1)])):E("",!0),e.notification.type==="poll"?(p(),b("span",Uye,[T(c,{class:"type-icon",icon:"poll-h"}),t[11]||(t[11]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.poll_ended")),1)])):E("",!0)]),e.isStatusNotification?(p(),b("div",jye,[e.notification.status?(p(),x(S,{key:0,to:{name:"conversation",params:{id:e.notification.status.id}},class:"timeago-link faint"},{default:X(()=>[T(y,{time:e.notification.created_at,"auto-update":240},null,8,["time"])]),_:1},8,["to"])):E("",!0),g("button",{class:"button-unstyled expand-icon",title:e.$t("tool_tip.toggle_expand"),"aria-expanded":e.statusExpanded,onClick:t[2]||(t[2]=Te((...k)=>e.toggleStatusExpanded&&e.toggleStatusExpanded(...k),["prevent"]))},[T(c,{class:"fa-scale-110","fixed-width":"",icon:e.statusExpanded?"compress-alt":"expand-alt"},null,8,["icon"])],8,Bye)])):(p(),b("div",zye,[g("span",qye,[T(y,{time:e.notification.created_at,"auto-update":240},null,8,["time"])])])),e.needMute?(p(),b("button",{key:2,class:"button-unstyled",title:e.$t("tool_tip.toggle_mute"),"aria-expanded":!e.unmuted,onClick:t[3]||(t[3]=Te((...k)=>e.toggleMute&&e.toggleMute(...k),["prevent"]))},[T(c,{class:"fa-scale-110 fa-old-padding",icon:"eye-slash"})],8,Hye)):E("",!0)]),e.notification.type==="follow"||e.notification.type==="follow_request"?(p(),b("div",Vye,[T(a,{class:"follow-name",user:e.notification.from_profile},null,8,["user"]),e.notification.type==="follow_request"?(p(),b("div",Wye,[g("button",{class:"button-unstyled",title:e.$t("tool_tip.accept_follow_request"),onClick:t[4]||(t[4]=k=>e.approveUser())}
691,[T(c,{icon:"check",class:"fa-scale-110 fa-old-padding follow-request-accept"})],8,Gye),g("button",{class:"button-unstyled",title:e.$t("tool_tip.reject_follow_request"),onClick:t[5]||(t[5]=k=>e.denyUser())},[T(c,{icon:"times",class:"fa-scale-110 fa-old-padding follow-request-reject"})],8,Kye)])):E("",!0)])):e.notification.type==="move"?(p(),b("div",xye,[T(a,{user:e.notification.target},null,8,["user"])])):e.notification.type==="pleroma:report"?(p(),x(C,{key:2,"report-id":e.notification.report.id},null,8,["report-id"])):(p(),x(I,{key:3,class:"status-content",compact:!e.statusExpanded,status:e.notification.status,collapse:!e.statusExpanded,onClick:e.onContentClick},null,8,["compact","status","collapse","onClick"]))])],6)),(p(),x(Yn,{to:"#modal"},[e.showingApproveConfirmDialog?(p(),x($,{key:0,title:e.$t("user_card.approve_confirm_title"),"confirm-text":e.$t("user_card.approve_confirm_accept_button"),"cancel-text":e.$t("user_card.approve_confirm_cancel_button"),onAccepted:e.doApprove,onCancelled:e.hideApproveConfirmDialog},{default:X(()=>[de(w(e.$t("user_card.approve_confirm",{user:e.user.screen_name_ui})),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0),e.showingDenyConfirmDialog?(p(),x($,{key:1,title:e.$t("user_card.deny_confirm_title"),"confirm-text":e.$t("user_card.deny_confirm_accept_button"),"cancel-text":e.$t("user_card.deny_confirm_cancel_button"),onAccepted:e.doDeny,onCancelled:e.hideDenyConfirmDialog},{default:X(()=>[de(w(e.$t("user_card.deny_confirm",{user:e.user.screen_name_ui})),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))],2))}const Xye=ge(_ye,[["render",Yye]]);et.add(Op,hd,pd);const Jye={computed:{shouldShowChats(){return this.mergedConfig.showExtraNotifications&&this.mergedConfig.showChatsInExtraNotifications&&this.unreadChatCount},shouldShowAnnouncements(){return this.mergedConfig.showExtraNotifications&&this.mergedConfig.showAnnouncementsInExtraNotifications&&this.unreadAnnouncementCount},shouldShowFollowRequests(){return this.mergedConfig.showExtraNotifications&&this.mergedConfig.showFollowRequestsInExtraNotifications&&this.followRequestCount},hasAnythingToShow(){return this.shouldShowChats||this.shouldShowAnnouncements||this.shouldShowFollowRequests},shouldShowCustomizationTip(){return this.mergedConfig.showExtraNotificationsTip&&this.hasAnythingToShow},currentUser(){return this.$store.state.users.currentUser},...bn(["unreadChatCount","followRequestCount","mergedConfig"]),...sn(ms,{unreadAnnouncementCount:"unreadAnnouncementCount"})},methods:{openNotificationSettings(){return Xe().openSettingsModalTab("notifications")},dismissConfigurationTip(){return this.$store.dispatch("setOption",{name:"showExtraNotificationsTip",value:!1})}}},Zye={class:"ExtraNotifications"},Qye={key:0,class:"notification unseen"},e_e={key:1,class:"notification unseen"},t_e={key:2,class:"notification unseen"};function n_e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("router-link"),c=O("i18n-t");return p(),b("div",Zye,[e.shouldShowChats?(p(),b("div",Qye,[t[2]||(t[2]=g("div",{class:"notification-overlay"},null,-1)),T(a,{class:"button-unstyled -link extra-notification",to:{name:"chats",params:{username:e.currentUser.screen_name}}},{default:X(()=>[T(i,{"fixed-width":"",class:"fa-scale-110 icon",icon:"comments"}),de(" "+w(e.$t("notifications.unread_chats",{num:e.unreadChatCount},e.unreadChatCount)),1)]),_:1},8,["to"])])):E("",!0),e.shouldShowAnnouncements?(p(),b("div",e_e,[t[3]||(t[3]=g("div",{class:"notification-overlay"},null,-1)),T(a,{class:"button-unstyled -link extra-notification",to:{name:"announcements"}},{default:X(()=>[T(i,{"fixed-width":"",class:"fa-scale-110 icon",icon:"bullhorn"}),de(" "+w(e.$t("notifications.unread_announcements",{num:e.unreadAnnouncementCount},e.unreadAnnouncementCount)),1)]),_:1})])):E("",!0),e.shouldShowFollowRequests?(p(),b("div",t_e,[t[4]||(t[4]=g("div",{class:"notification-overlay"},null,-1)),T(a,{class:"button-unstyled -link extra-notification",to:{name:"friend-requests"}},{default:X(()=>[T(i,{"fixed-width":"",class:"fa-scale-110 icon",icon:"user-plus"}),de(" "+w(e.$t("notifications.unread_follow_requests",{num:e.followRequestCount},e.followRequestCount)),1)]),_:1})])):E("",!0),e.shouldShowCustomizationTip?(p(),x(c,{key:3,tag:"span",class:"notification tip extra-notification",keypath:"notifications.configuration_tip",scope:"global"},{theSettings:X(()=>[g("button",{class:"button-unstyled -link",onClick:t[0]||(t[0]=(...u)=>e.openNotificationSettings&&e.openNotificationSettings(...u))},w(e.$t("notifications.configuration_tip_settings")),1)]),dismiss:X(()=>[g("button",{class:"button-unstyled -link",onClick:t[1]||(t[1]=(...u)=>e.dismissConfigurationTip&&e.dismissConfigurationTip(...u))},w(e.$t("notifications.configuration_tip_dismiss")),1)]),_:1})):E("",!0)])}const s_e=ge(Jye,[["render",n_e]]);et.add(QI);const r_e={components:{Popover:Jn},computed:{filters(){return this.$store.getters.mergedConfig.notificationVisibility}},methods:{toggleNotificationFilter(e){this.$store.dispatch("setOption",{name:"notificationVisibility",value:{...this.filters,[e]:!this.filters[e]}})}}},o_e={class:"dropdown-menu"},i_e={class:"menu-item dropdown-item -icon"},a_e={class:"menu-item dropdown-item -icon"},l_e={class:"menu-item dropdown-item -icon"},c_e={class:"menu-item dropdown-item -icon"},u_e={class:"menu-item dropdown-item -icon"},d_e={class:"menu-item dropdown-item -icon"},f_e={class:"menu-item dropdown-item -icon"},h_e={class:"menu-item dropdown-item -icon"},p_e={class:"filter-trigger-button button-unstyled"};function m_e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Popover");return p(),x(a,{trigger:"click",class:"NotificationFilters",placement:"bottom","bound-to":{x:"container"}},{content:X(()=>[g("div",o_e,[g("div",i_e,[g("button",{class:"main-button",onClick:t[0]||(t[0]=c=>o.toggleNotificationFilter("likes"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.like
691s}])},null,2),de(w(e.$t("settings.notification_visibility_likes")),1)])]),g("div",a_e,[g("button",{class:"main-button",onClick:t[1]||(t[1]=c=>o.toggleNotificationFilter("repeats"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.repeats}])},null,2),de(w(e.$t("settings.notification_visibility_repeats")),1)])]),g("div",l_e,[g("button",{class:"main-button",onClick:t[2]||(t[2]=c=>o.toggleNotificationFilter("follows"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.follows}])},null,2),de(w(e.$t("settings.notification_visibility_follows")),1)])]),g("div",c_e,[g("button",{class:"main-button",onClick:t[3]||(t[3]=c=>o.toggleNotificationFilter("mentions"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.mentions}])},null,2),de(w(e.$t("settings.notification_visibility_mentions")),1)])]),g("div",u_e,[g("button",{class:"main-button",onClick:t[4]||(t[4]=c=>o.toggleNotificationFilter("statuses"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.statuses}])},null,2),de(w(e.$t("settings.notification_visibility_statuses")),1)])]),g("div",d_e,[g("button",{class:"main-button",onClick:t[5]||(t[5]=c=>o.toggleNotificationFilter("emojiReactions"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.emojiReactions}])},null,2),de(w(e.$t("settings.notification_visibility_emoji_reactions")),1)])]),g("div",f_e,[g("button",{class:"main-button",onClick:t[6]||(t[6]=c=>o.toggleNotificationFilter("moves"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.moves}])},null,2),de(w(e.$t("settings.notification_visibility_moves")),1)])]),g("div",h_e,[g("button",{class:"main-button",onClick:t[7]||(t[7]=c=>o.toggleNotificationFilter("polls"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.polls}])},null,2),de(w(e.$t("settings.notification_visibility_polls")),1)])])])]),trigger:X(()=>[g("button",p_e,[T(i,{icon:"filter"})])]),_:1})}const g_e=ge(r_e,[["render",m_e]]);et.add(Zs,o2,gd);const d8=30,v_e={components:{Notification:Xye,NotificationFilters:g_e,ExtraNotifications:s_e},props:{minimalMode:Boolean,filterMode:Array,noExtra:{type:Boolean,default:!1},disableTeleport:Boolean},data(){return{showScrollTop:!1,bottomedOut:!1,seenToDisplayCount:d8}},provide(){return{popoversZLayer:vt(()=>this.popoversZLayer)}},computed:{mainClass(){return this.minimalMode?"":"panel panel-default"},notifications(){return __(this.$store)},error(){return this.$store.state.notifications.error},unseenNotifications(){return w_(this.$store)},filteredNotifications(){return this.unseenAtTop?[...xf(this.$store).filter(e=>this.shouldShowUnseen(e)),...xf(this.$store).filter(e=>!this.shouldShowUnseen(e))]:xf(this.$store,this.filterMode)},unseenCountBadgeText(){return`${this.unseenCount?this.unseenCount:""}${this.extraNotificationsCount?"*":""}`},unseenCount(){return this.unseenNotifications.length},ignoreInactionableSeen(){return this.$store.getters.mergedConfig.ignoreInactionableSeen},extraNotificationsCount(){return S5(this.$store)},unseenCountTitle(){return this.unseenNotifications.length+this.unreadChatCount+this.unreadAnnouncementCount},loading(){return this.$store.state.notifications.loading},noHeading(){const{layoutType:e}=Xe();return this.minimalMode||e==="mobile"},teleportTarget(){const{layoutType:e}=Xe();return{wide:"#notifs-column",mobile:"#mobile-notifications"}[e]||"#notifs-sidebar"},popoversZLayer(){const{layoutType:e}=Xe();return e==="mobile"?"navbar":null},notificationsToDisplay(){return this.filteredNotifications.slice(0,this.unseenCount+this.seenToDisplayCount)},noSticky(){return this.$store.getters.mergedConfig.disableStickyHeaders},unseenAtTop(){return this.$store.getters.mergedConfig.unseenAtTop},showExtraNotifications(){return!this.noExtra},...sn(ms,["unreadAnnouncementCount"]),...bn(["unreadChatCount"])},mounted(){this.scrollerRef=this.$refs.root.closest(".column.-scrollable"),this.scrollerRef||(this.scrollerRef=this.$refs.root.closest(".mobile-notifications")),this.scrollerRef||(this.scrollerRef=this.$refs.root.closest(".column.main")),this.scrollerRef.addEventListener("scroll",this.updateScrollPosition)},unmounted(){this.scrollerRef&&this.scrollerRef.removeEventListener("scroll",this.updateScrollPosition)},watch:{unseenCountTitle(e){e>0?(wh.drawFaviconBadge(),Xe().setPageTitle(`(${e})`)):(wh.clearFaviconBadge(),Xe().setPageTitle(""))},teleportTarget(){this.$nextTick(()=>{this.scrollerRef.removeEventListener("scroll",this.updateScrollPosition),this.scrollerRef=this.$refs.root.closest(".column.-scrollable"),this.scrollerRef||(this.scrollerRef=this.$refs.root.closest(".mobile-notifications")),this.scrollerRef.addEventListener("scroll",this.updateScrollPosition),this.updateScrollPosition()})}},methods:{scrollToTop(){this.scrollerRef.scrollTo({top:this.$refs.root.offsetTop})},updateScrollPosition(){this.showScrollTop=this.$refs.root.offsetTop<this.scrollerRef.scrollTop},shouldShowUnseen(e){if(e.seen)return!1;const t=_5.has(e.type);return this.ignoreInactionableSeen?t:!0},notificationClicked(e){const{id:t}=e;this.$store.dispatch("notificationClicked",{id:t})},notificationInteracted(e){const{id:t}=e;this.$store.dispatch("markSingleNotificationAsSeen",{id:t})},markAsSeen(){this.$store.dispatch("markNotificationsAsSeen"),this.seenToDisplayCount=d8},fetchOlderNotifications(){if(this.loading)return;const e=this.filteredNotifications.length-this.unseenCount;if(this.seenToDisplayCount<e){this.seenToDisplayCount=Math.min(this.seenToDisplayCount+20,e);return}else this.seenToDisplayCount>e&&(this.seenToDisplayCount=e);const t=this.$store,n=t.state.users.currentUser.credentials;t.commit("setNotificationsLoading",{value:!0}),by.fetchAndUpdate({store:t,credentials:n,older:!0}).then(s=>{t.commit("setNotificationsLoading",{value:!1}),s.length===0&&(this.bottomedOut=!0),this.seenToDisplayCount+=s.length})}}},b_e={key:0,class:"notifications-heading panel-heading -sticky"},y_e={class:"title"},__e={key:0,class:"badge -notification unseen-count"},w_e={key:0,class:"rightside-button"},S_e=["title"],k_e={class:"panel-body",role:"feed"},$_e={key:0,role:"listitem",class:"notification"},C_e=["onClick"],T_e={class:"panel-footer"},A_e={key:0,class:"new-status-notification text-center faint"},E_e={class:"new-status-notification text-center"},I_e={key:2,class:"new-status-notification text-center"};function P_e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("FALayers"),c=O("NotificationFilters"),u=O("extra-notifications"),f=O("notification");return p(),x(Yn,{disabled:e.minimalMode||e.disableTeleport,to:e.teleportTarget}
691,[(p(),x(Oa(e.noHeading?"div":"aside"),{ref:"root",class:he([{minimal:e.minimalMode},"Notifications"])},{default:X(()=>[g("div",{class:he(e.mainClass)},[e.noHeading?E("",!0):(p(),b("div",b_e,[g("h1",y_e,[de(w(e.$t("notifications.notifications"))+" ",1),e.unseenCountBadgeText?(p(),b("span",__e,w(e.unseenCountBadgeText),1)):E("",!0)]),e.showScrollTop?(p(),b("div",w_e,[g("button",{class:"button-unstyled scroll-to-top-button",type:"button",title:e.$t("general.scroll_to_top"),onClick:t[0]||(t[0]=(...h)=>e.scrollToTop&&e.scrollToTop(...h))},[T(a,{class:"fa-scale-110 fa-old-padding-layer"},{default:X(()=>[T(i,{icon:"arrow-up"}),T(i,{icon:"minus",transform:"up-7"})]),_:1})],8,S_e)])):E("",!0),e.unseenCount?(p(),b("button",{key:1,class:"button-default read-button",type:"button",onClick:t[1]||(t[1]=Te((...h)=>e.markAsSeen&&e.markAsSeen(...h),["prevent"]))},w(e.$t("notifications.read")),1)):E("",!0),T(c,{class:"rightside-button"})])),g("div",k_e,[e.showExtraNotifications?(p(),b("div",$_e,[T(u)])):E("",!0),(p(!0),b(Se,null,We(e.notificationsToDisplay,h=>(p(),b("div",{key:h.id,role:"listitem",class:he(["notification",{unseen:!e.minimalMode&&e.shouldShowUnseen(h)}]),onClick:v=>e.notificationClicked(h)},[t[3]||(t[3]=g("div",{class:"notification-overlay"},null,-1)),T(f,{notification:h,onInteracted:v=>e.notificationInteracted(h)},null,8,["notification","onInteracted"])],10,C_e))),128))]),g("div",T_e,[e.bottomedOut?(p(),b("div",A_e,w(e.$t("notifications.no_more_notifications")),1)):e.loading?(p(),b("div",I_e,[T(i,{icon:"circle-notch",spin:"",size:"lg"})])):(p(),b("button",{key:1,class:"button-unstyled -link text-center",onClick:t[2]||(t[2]=Te(h=>e.fetchOlderNotifications(),["prevent"]))},[g("div",E_e,w(e.minimalMode?e.$t("interactions.load_older"):e.$t("notifications.load_older")),1)]))])],2)]),_:1},8,["class"]))],8,["disabled","to"])}const im=ge(v_e,[["render",P_e]]),L_e=Object.freeze(Object.defineProperty({__proto__:null,default:im},Symbol.toStringTag,{value:"Module"}));et.add(Xn,ic,KI,o2,gd,cZ);const O_e={components:{SideDrawer:FO,Notifications:im,NavigationPins:EO,ConfirmModal:Nr},data:()=>({notificationsCloseGesture:void 0,notificationsOpen:!1,notificationsAtTop:!0,showingConfirmLogout:!1}),created(){this.notificationsCloseGesture=eo.swipeGesture(eo.DIRECTION_RIGHT,()=>this.closeMobileNotifications(!0),50)},computed:{currentUser(){return this.$store.state.users.currentUser},unseenNotifications(){return w_(this.$store)},unseenNotificationsCount(){return this.unseenNotifications.length+S5(this.$store)},unseenCount(){return this.unseenNotifications.length},unseenCountBadgeText(){return`${this.unseenCount?this.unseenCount:""}`},hideSitename(){return this.$store.state.instance.hideSitename},sitename(){return this.$store.state.instance.name},isChat(){return this.$route.name==="chat"},...sn(ms,["unreadAnnouncementCount"]),...sn(_n,{pinnedItems:e=>new Set(e.prefsStorage.collections.pinnedNavItems).has("chats")}),shouldConfirmLogout(){return this.$store.getters.mergedConfig.modalOnLogout},closingDrawerMarksAsSeen(){return this.$store.getters.mergedConfig.closingDrawerMarksAsSeen},...bn(["unreadChatCount"])},methods:{toggleMobileSidebar(){this.$refs.sideDrawer.toggleDrawer()},openMobileNotifications(){this.notificationsOpen=!0},closeMobileNotifications(e){this.notificationsOpen&&(this.notificationsOpen=!1,e&&this.closingDrawerMarksAsSeen&&this.markNotificationsAsSeen())},notificationsTouchStart(e){eo.beginSwipe(e,this.notificationsCloseGesture)},notificationsTouchMove(e){eo.updateSwipe(e,this.notificationsCloseGesture)},scrollToTop(){window.scrollTo(0,0)},scrollMobileNotificationsToTop(){this.$refs.mobileNotifications.scrollTo(0,0)},showConfirmLogout(){this.showingConfirmLogout=!0},hideConfirmLogout(){this.showingConfirmLogout=!1},logout(){this.shouldConfirmLogout?this.showConfirmLogout():this.doLogout()},doLogout(){this.$router.replace("/main/public"),this.$store.dispatch("logout"),this.hideConfirmLogout()},markNotificationsAsSeen(){this.$store.dispatch("markNotificationsAsSeen")},onScroll({target:{scrollTop:e,clientHeight:t,scrollHeight:n}}){this.notificationsAtTop=e>0,e+t>=n&&this.$refs.notifications.fetchOlderNotifications()}},watch:{$route(){this.closeMobileNotifications()}}},R_e={class:"MobileNav"},M_e={class:"item"},N_e=["title","aria-expanaded"],F_e={key:0,class:"badge -dot -notification"},D_e={class:"item right"},U_e=["title"],j_e={key:0,class:"badge -dot -notification"},B_e={class:"panel-heading mobile-notifications-header"},z_e={class:"title"},q_e={key:0,class:"badge -notification unseen-count"},H_e=["title"],V_e=["title"],W_e=["title"];function G_e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("NavigationPins"),c=O("FALayers"),u=O("SideDrawer"),f=O("confirm-modal");return p(),b("div",R_e,[g("nav",{id:"nav",class:"mobile-nav",onClick:t[2]||(t[2]=h=>e.scrollToTop())},[g("div",M_e,[g("button",{class:"button-unstyled mobile-nav-button",title:e.$t("nav.mobile_sidebar"),"aria-expanaded":e.$refs.sideDrawer&&!e.$refs.sideDrawer.closed,onClick:t[0]||(t[0]=Te(h=>e.toggleMobileSidebar(),["stop","prevent"]))}
691,[T(i,{class:"fa-scale-110 fa-old-padding",icon:"bars"}),e.unreadChatCount&&!e.chatsPinned||e.unreadAnnouncementCount?(p(),b("div",F_e)):E("",!0)],8,N_e),T(a,{class:"pins"})]),t[9]||(t[9]=de()),g("div",D_e,[e.currentUser?(p(),b("button",{key:0,class:"button-unstyled mobile-nav-button",title:e.unseenNotificationsCount?e.$t("nav.mobile_notifications_unread_active"):e.$t("nav.mobile_notifications"),onClick:t[1]||(t[1]=Te(h=>e.openMobileNotifications(),["stop","prevent"]))},[T(i,{class:"fa-scale-110 fa-old-padding",icon:"bell"}),e.unseenNotificationsCount?(p(),b("div",j_e)):E("",!0)],8,U_e)):E("",!0)])]),e.currentUser?(p(),b("aside",{key:0,class:he(["mobile-notifications-drawer mobile-drawer",{"-closed":!e.notificationsOpen}]),onTouchstart:t[7]||(t[7]=Te((...h)=>e.notificationsTouchStart&&e.notificationsTouchStart(...h),["stop"])),onTouchmove:t[8]||(t[8]=Te((...h)=>e.notificationsTouchMove&&e.notificationsTouchMove(...h),["stop"]))},[g("div",B_e,[g("h1",z_e,[de(w(e.$t("notifications.notifications"))+" ",1),e.unseenCountBadgeText?(p(),b("span",q_e,w(e.unseenCountBadgeText),1)):E("",!0)]),t[10]||(t[10]=g("span",{class:"spacer"},null,-1)),e.notificationsAtTop?(p(),b("button",{key:0,class:"button-unstyled mobile-nav-button",title:e.$t("general.scroll_to_top"),onClick:t[3]||(t[3]=Te((...h)=>e.scrollMobileNotificationsToTop&&e.scrollMobileNotificationsToTop(...h),["stop","prevent"]))},[T(c,{class:"fa-scale-110 fa-old-padding-layer"},{default:X(()=>[T(i,{icon:"arrow-up"}),T(i,{icon:"minus",transform:"up-7"})]),_:1})],8,H_e)):E("",!0),e.closingDrawerMarksAsSeen?E("",!0):(p(),b("button",{key:1,class:"button-unstyled mobile-nav-button",title:e.$t("nav.mobile_notifications_mark_as_seen"),onClick:t[4]||(t[4]=Te(h=>e.markNotificationsAsSeen(),["stop","prevent"]))},[T(i,{class:"fa-scale-110 fa-old-padding",icon:"check-double"})],8,V_e)),g("button",{class:"button-unstyled mobile-nav-button",title:e.$t("nav.mobile_notifications_close"),onClick:t[5]||(t[5]=Te(h=>e.closeMobileNotifications(!0),["stop","prevent"]))},[T(i,{class:"fa-scale-110 fa-old-padding",icon:"times"})],8,W_e)]),g("div",{id:"mobile-notifications",ref:"mobileNotifications",class:"mobile-notifications",onScroll:t[6]||(t[6]=(...h)=>e.onScroll&&e.onScroll(...h))},null,544)],34)):E("",!0),T(u,{ref:"sideDrawer",logout:e.logout},null,8,["logout"]),(p(),x(Yn,{to:"#modal"},[e.showingConfirmLogout?(p(),x(f,{key:0,title:e.$t("login.logout_confirm_title"),"confirm-text":e.$t("login.logout_confirm_accept_button"),"cancel-text":e.$t("login.logout_confirm_cancel_button"),onAccepted:e.doLogout,onCancelled:e.hideConfirmLogout},{default:X(()=>[de(w(e.$t("login.logout_confirm")),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))])}const K_e=ge(O_e,[["render",G_e]]);et.add(Xn,Ba);const x_e={data:()=>({searchTerm:void 0,hidden:!0,error:!1}),watch:{$route:function(e){e.name==="search"&&(this.searchTerm=e.query.query)}},methods:{find(e){this.$router.push({name:"search",query:{query:e}}),this.$refs.searchInput.focus()},toggleHidden(){this.hidden=!this.hidden,this.$emit("toggled",this.hidden),this.$nextTick(()=>{this.hidden||this.$refs.searchInput.focus()})}}},Y_e=["title","aria-expanded"],X_e=["placeholder"],J_e=["title"],Z_e=["title","aria-expanded"];function Q_e(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",{class:he(["SearchBar",{"-expanded":!e.hidden}])},[e.hidden?(p(),b("button",{key:0,class:"button-unstyled nav-icon",title:e.$t("nav.search"),type:"button","aria-expanded":!e.hidden,onClick:t[0]||(t[0]=Te((...a)=>e.toggleHidden&&e.toggleHidden(...a),["prevent","stop"]))},[T(i,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"search"})],8,Y_e)):(p(),b(Se,{key:1},[at(g("input",{id:"search-bar-input",ref:"searchInput","onUpdate:modelValue":t[1]||(t[1]=a=>e.searchTerm=a),class:"input search-bar-input",placeholder:e.$t("nav.search"),type:"text",onKeyup:t[2]||(t[2]=zo(a=>e.find(e.searchTerm),["enter"]))},null,40,X_e),[[Nt,e.searchTerm]]),g("button",{class:"button-default search-button",type:"submit",title:e.$t("nav.search"),onClick:t[3]||(t[3]=a=>e.find(e.searchTerm))},[T(i,{"fixed-width":"",icon:"search"})],8,J_e),g("button",{class:"button-unstyled cancel-search",type:"button",title:e.$t("nav.search_close"),"aria-expanded":!e.hidden,onClick:t[4]||(t[4]=Te((...a)=>e.toggleHidden&&e.toggleHidden(...a),["prevent","stop"]))},[T(i,{"fixed-width":"",icon:"times",class:"cancel-icon fa-scale-110 fa-old-pa
691dding"})],8,Z_e),t[5]||(t[5]=g("span",{class:"spacer"},null,-1)),t[6]||(t[6]=g("span",{class:"spacer"},null,-1))],64))],2)}const e2e=ge(x_e,[["render",Q_e]]);et.add(XI,VI,rP,hd,ic,Op,pd,Ba,aP,n2,Lp);const t2e={components:{SearchBar:e2e,ConfirmModal:Nr},data:()=>({searchBarHidden:!0,supportsMask:window.CSS&&window.CSS.supports&&(window.CSS.supports("mask-size","contain")||window.CSS.supports("-webkit-mask-size","contain")||window.CSS.supports("-moz-mask-size","contain")||window.CSS.supports("-ms-mask-size","contain")||window.CSS.supports("-o-mask-size","contain")),showingConfirmLogout:!1}),computed:{enableMask(){return this.supportsMask&&this.$store.state.instance.logoMask},logoStyle(){return{visibility:this.enableMask?"hidden":"visible"}},logoMaskStyle(){return this.enableMask?{"mask-image":`url(${this.$store.state.instance.logo})`}:{"background-color":this.enableMask?"":"transparent"}},logoBgStyle(){return Object.assign({margin:`${this.$store.state.instance.logoMargin} 0`,opacity:this.searchBarHidden?1:0},this.enableMask?{}:{"background-color":this.enableMask?"":"transparent"})},logo(){return this.$store.state.instance.logo},sitename(){return this.$store.state.instance.name},hideSitename(){return this.$store.state.instance.hideSitename},logoLeft(){return this.$store.state.instance.logoLeft},currentUser(){return this.$store.state.users.currentUser},privateMode(){return this.$store.state.instance.private},shouldConfirmLogout(){return this.$store.getters.mergedConfig.modalOnLogout}},methods:{scrollToTop(){window.scrollTo(0,0)},showConfirmLogout(){this.showingConfirmLogout=!0},hideConfirmLogout(){this.showingConfirmLogout=!1},logout(){this.shouldConfirmLogout?this.showConfirmLogout():this.doLogout()},doLogout(){this.$router.replace("/main/public"),this.$store.dispatch("logout"),this.hideConfirmLogout()},onSearchBarToggled(e){this.searchBarHidden=e},openSettingsModal(){Xe().openSettingsModal("user")},openAdminModal(){Xe().openSettingsModal("admin")}}},n2e={class:"inner-nav"},s2e={class:"item sitename"},r2e=["src"],o2e={class:"item right actions"},i2e=["title"],a2e=["title"],l2e=["title"];function c2e(e,t,n,s,r,o){const i=O("router-link"),a=O("search-bar"),c=O("FAIcon"),u=O("confirm-modal");return p(),b("nav",{id:"nav",class:he(["DesktopNav",{"-logoLeft":e.logoLeft}]),onClick:t[4]||(t[4]=f=>e.scrollToTop())},[g("div",n2e,[g("div",s2e,[e.hideSitename?E("",!0):(p(),x(i,{key:0,class:"site-name",to:{name:"root"},"active-class":"home"},{default:X(()=>[de(w(e.sitename),1)]),_:1}))]),T(i,{class:"logo",to:{name:"root"},style:hn(e.logoBgStyle),title:e.sitename},{default:X(()=>[g("div",{class:"mask",style:hn(e.logoMaskStyle)},null,4),g("img",{src:e.logo,style:hn(e.logoStyle)},null,12,r2e)]),_:1},8,["style","title"]),g("div",o2e,[e.currentUser||!e.privateMode?(p(),x(a,{key:0,onToggled:e.onSearchBarToggled,onClick:t[0]||(t[0]=Te(()=>{},["stop"]))},null,8,["onToggled"])):E("",!0),g("button",{class:"button-unstyled nav-icon",title:e.$t("nav.preferences"),onClick:t[1]||(t[1]=Te((...f)=>e.openSettingsModal&&e.openSettingsModal(...f),["stop"]))},[T(c,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"cog"})],8,i2e),e.currentUser&&e.currentUser.role==="admin"?(p(),b("button",{key:1,class:"button-unstyled nav-icon",target:"_blank",title:e.$t("nav.administration"),onClick:t[2]||(t[2]=Te((...f)=>e.openAdminModal&&e.openAdminModal(...f),["stop"]))},[T(c,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"tachometer-alt"})],8,a2e)):E("",!0),t[5]||(t[5]=g("span",{class:"spacer"},null,-1)),e.currentUser?(p(),b("button",{key:2,class:"button-unstyled nav-icon",title:e.$t("login.logout"),onClick:t[3]||(t[3]=Te((...f)=>e.logout&&e.logout(...f),["stop","prevent"]))},[T(c,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"sign-out-alt"})],8,l2e)):E("",!0)])]),(p(),x(Yn,{to:"#modal"},[e.showingConfirmLogout?(p(),x(u,{key:0,title:e.$t("login.logout_confirm_title"),"confirm-text":e.$t("login.logout_confirm_accept_button"),"cancel-text":e.$t("login.logout_confirm_cancel_button"),onAccepted:e.doLogout,onCancelled:e.hideConfirmLogout},{default:X(()=>[de(w(e.$t("login.logout_confirm")),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))],2)}const u2e=ge(t2e,[["render",c2e]]),d2e={props:{items:{type:Array,default:()=>[]},getKey:{type:Function,default:e=>e.id},getClass:{type:Function,default:()=>""},nonInteractive:{type:Boolean,default:!1}}},f2e={class:"list",role:"list"},h2e={key:0,class:"list-empty-content faint"};function p2e(e,t,n,s,r,o){return p(),b("div",f2e,[(p(!0),b(Se,null,We(n.items,i=>(p(),b("div",{key:n.getKey(i),class:he(["list-item",[n.getClass(i),n.nonInteractive?"-non-interactive":""]]),role:"listitem"},[Ot(e.$slots,"item",{item:i})],2))),128)),n.items.length===0&&e.$slots.empty?(p(),b("div",h2e,[Ot(e.$slots,"empty")])):E("",!0)])}const Cd=ge(d2e,[["render",p2e]]),m2e={components:{Status:ea,List:Cd,Checkbox:io,Modal:ud,UserLink:Sd},data(){return{comment:"",forward:!1,statusIdsToReport:[],processing:!1,error:!1}},computed:{reportModal(){return qi().reportModal},isLoggedIn(){return!!this.$store.state.users.currentUser},isOpen(){return this.isLoggedIn&&this.reportModal.activated},userId(){return this.reportModal.userId},user(){return this.$store.getters.findUser(this.userId)},remoteInstance(){return!this.user.is_local&&this.user.screen_name.substr(this.user.screen_name.indexOf("@")+1)},statuses(){return this.reportModal.statuses},preTickedIds(){return this.reportModal.preTickedIds}},watch:{userId:"resetState",preTickedIds(e){this.statusIdsToReport=e}},methods:{resetState(){this.comment="",this.forward=!1,this.statusIdsToReport=this.preTickedIds,this.processing=!1,this.error=!1},closeModal(){qi().closeUserReportingModal()},reportUser(){this.processing=!0,this.error=!1;const e={userId:this.userId,comment:this.comment,forward:this.forward,statusIds:this.statusIdsToReport};
691this.$store.state.api.backendInteractor.reportUser({...e}).then(()=>{this.processing=!1,this.resetState(),this.closeModal()}).catch(()=>{this.processing=!1,this.error=!0})},clearError(){this.error=!1},isChecked(e){return this.statusIdsToReport.indexOf(e)!==-1},toggleStatus(e,t){e!==this.isChecked(t)&&(e?this.statusIdsToReport.push(t):this.statusIdsToReport.splice(this.statusIdsToReport.indexOf(t),1))},resize(e){const t=e.target||e;t instanceof window.Element&&(t.style.height="auto",t.style.height=`${t.scrollHeight}px`,t.value===""&&(t.style.height=null))}}},g2e={class:"user-reporting-panel panel"},v2e={class:"panel-heading"},b2e={class:"panel-body"},y2e={class:"user-reporting-panel-left"},_2e=["placeholder"],w2e={key:0},S2e=["disabled"],k2e={key:0,class:"alert error"},$2e={class:"user-reporting-panel-right"},C2e={class:"status-fadein user-reporting-panel-sitem"};function T2e(e,t,n,s,r,o){const i=O("UserLink"),a=O("i18n-t"),c=O("Checkbox"),u=O("Status"),f=O("List"),h=O("Modal");return e.isOpen?(p(),x(h,{key:0,onBackdropClicked:e.closeModal},{default:X(()=>[g("div",g2e,[g("div",v2e,[T(a,{tag:"h1",keypath:"user_reporting.title",class:"title"},{default:X(()=>[T(i,{class:"user-link",user:e.user},null,8,["user"])]),_:1})]),g("div",b2e,[g("div",y2e,[g("div",null,[g("p",null,w(e.$t("user_reporting.add_comment_description")),1),at(g("textarea",{"onUpdate:modelValue":t[0]||(t[0]=v=>e.comment=v),class:"input form-control",placeholder:e.$t("user_reporting.additional_comments"),rows:"1",onInput:t[1]||(t[1]=(...v)=>e.resize&&e.resize(...v))},null,40,_2e),[[Nt,e.comment]])]),e.user.is_local?E("",!0):(p(),b("div",w2e,[g("p",null,w(e.$t("user_reporting.forward_description")),1),T(c,{modelValue:e.forward,"onUpdate:modelValue":t[2]||(t[2]=v=>e.forward=v)},{default:X(()=>[de(w(e.$t("user_reporting.forward_to",[e.remoteInstance])),1)]),_:1},8,["modelValue"])])),g("div",null,[g("button",{class:"btn button-default",disabled:e.processing,onClick:t[3]||(t[3]=(...v)=>e.reportUser&&e.reportUser(...v))},w(e.$t("user_reporting.submit")),9,S2e),e.error?(p(),b("div",k2e,w(e.$t("user_reporting.generic_error")),1)):E("",!0)])]),g("div",$2e,[T(f,{items:e.statuses},{item:X(({item:v})=>[g("div",C2e,[T(u,{"in-conversation":!1,focused:!1,statusoid:v},null,8,["statusoid"]),T(c,{"model-value":e.isChecked(v.id),"onUpdate:modelValue":y=>e.toggleStatus(y,v.id)},null,8,["model-value","onUpdate:modelValue"])])]),_:1},8,["items"])])])])]),_:1},8,["onBackdropClicked"])):E("",!0)}const A2e=ge(m2e,[["render",T2e]]),E2e={components:{PostStatusForm:lc},props:{params:{type:Object,required:!0}},methods:{requestClose(){this.$refs.postStatusForm.requestClose()},doEditStatus({status:e,spoilerText:t,sensitive:n,media:s,contentType:r,poll:o}){const i={store:this.$store,statusId:this.params.statusId,status:e,spoilerText:t,sensitive:n,poll:o,media:s,contentType:r};return Du.editStatus(i).then(a=>a).catch(a=>(console.error("Error editing status",a),{error:a.message}))}}};function I2e(e,t,n,s,r,o){const i=O("PostStatusForm");return p(),x(i,An({ref:"postStatusForm"},e.params,{"post-handler":e.doEditStatus,"disable-polls":!0,"disable-visibility-selector":!0}),null,16,["post-handler"])}const jO=ge(E2e,[["render",I2e]]);var P2e=jP();const Hi=bs(P2e),L2e={components:{EditStatusForm:jO,Modal:ud},data(){return{resettingForm:!1}},computed:{isLoggedIn(){return!!this.$store.state.users.currentUser},modalActivated(){return Ru().modalActivated},isFormVisible(){return this.isLoggedIn&&!this.resettingForm&&this.modalActivated},params(){return Ru().params||{}}},watch:{params(e,t){Hi(e,"statusId")!==Hi(t,"statusId")&&(this.resettingForm=!0,this.$nextTick(()=>{this.resettingForm=!1}))},isFormVisible(e){e&&this.$nextTick(()=>this.$el&&this.$el.querySelector("textarea").focus())}},methods:{closeModal(){this.$refs.editStatusForm.requestClose()},doCloseModal(){Ru().closeEditStatusModal()}}},O2e={class:"edit-form-modal-panel panel"},R2e={class:"panel-heading"},M2e={class:"title"};function N2e(e,t,n,s,r,o){const i=O("EditStatusForm"),a=O("Modal");return e.isFormVisible?(p(),x(a,{key:0,class:"edit-form-modal-view",onBackdropClicked:e.closeModal},{default:X(()=>[g("div",O2e,[g("div",R2e,[g("h1",M2e,w(e.$t("post_status.edit_status")),1)]),T(i,{ref:"editStatusForm",class:"panel-body",params:e.params,onPosted:e.doCloseModal,onDraftDone:e.doCloseModal,onCanClose:e.doCloseModal},null,8,["params","onPosted","onDraftDone","onCanClose"])])]),_:1},8,["onBackdropClicked"])):E("",!0)}const F2e=ge(L2e,[["render",N2e]]),D2e={components:{PostStatusForm:lc,Modal:ud},data(){return{resettingForm:!1}},computed:{isLoggedIn(){return!!this.$store.state.users.currentUser},modalActivated(){return Ai().modalActivated},isFormVisible(){return this.isLoggedIn&&!this.resettingForm&&this.modalActivated},params(){return Ai().params||{}}},watch:{params(e,t){Hi(e,"repliedUser.id")!==Hi(t,"repliedUser.id")&&(this.resettingForm=!0,this.$nextTick(()=>{this.resettingForm=!1}))},isFormVisible(e){e&&this.$nextTick(()=>this.$el&&this.$el.querySelector("textarea").focus())}},methods:{closeModal(){Ai().closePostStatusModal()},resetAndClose(){Ai().resetPostStatusModal(),Ai().closePostStatusModal()}}},U2e={class:"post-form-modal-panel panel"},j2e={class:"panel-heading"},B2e={class:"title"};function z2e(e,t,n,s,r,o){const i=O("PostStatusForm"),a=O("Modal");return e.isLoggedIn&&!e.resettingForm?(p(),x(a,{key:0,"is-open":e.modalActivated,class:"post-form-modal-view",onBackdropClicked:e.closeModal},{default:X(()=>[g("div",U2e,[g("div",j2e,[g("h1",B2e,w(e.$t("post_status.new_status")),1)]),T(i,An({class:"panel-body"},e.params,{closeable:!0,onPosted:e.resetAndClose,onDraftDone:e.resetAndClose}),null,16,["onPosted","onDraftDone"])])]),_:1},8,["is-open","onBackdropClicked"])):E("",!0)}const q2e=ge(D2e,[["render",z2e]]),H2e={components:{Modal:ud,Status:ea},data(){return{statuses:[]}},computed:{modalActivated(){return Mu().modalActivated},params(){return Mu().params},statusId(){return this.params.id},historyCount(){return this.statuses.length},history(){return this.statuses}},watch:{params(e,t){const n=Z.get(e,"id")!==Z.get(t,"id");n&&this.resetHistory(),(n||Z.get(e,"edited_at")!==Z.get(t,"edited_at"))&&this.fetchStatusHistory()}},methods:{resetHistory(){this.statuses=[]},fetchStatusHistory(){this.$store.dispatch("fetchStatusHistory",this.params).then(e=>{this.statuses=e})},closeModal(){Mu().closeStatusHistoryModal()}}},V2e={class:"status-history-modal-panel panel"},W2e={class:"panel-heading"},G2e={class:"title"},K2e={class:"panel-body"},x2e={key:0,class:"history-body"};function Y2e(e,t,n,s,r,o){const i=O("status"),a=O("Modal");return e.modalActivated?(p(),x(a,{key:0,class:"status-history-modal-view",onBackdropClicked:e.closeModal},{default:X(()=>[g("div",V2e,[g("div",W2e,[g("h1",G2e,w(e.$t("status.status_history"))+" ("+w(e.historyCount)+") ",1)]),g("div",K2e,[e.historyCount>0?(p(),b("div",x2e,[(p(!0),b(Se,null,We(e.history,c=>
691(p(),x(i,{key:c.id,statusoid:c,"is-preview":!0,class:"conversation-status status-fadein panel-body"},null,8,["statusoid"]))),128))])):E("",!0)])])]),_:1},8,["onBackdropClicked"])):E("",!0)}const X2e=ge(H2e,[["render",Y2e]]);et.add(Xn);const J2e={computed:{notices(){return Xe().globalNotices}},methods:{closeNotice(e){Xe().removeGlobalNotice(e)}}},Z2e={class:"global-notice-list"},Q2e={class:"notice-message"},ewe=["onClick"];function twe(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",Z2e,[(p(!0),b(Se,null,We(e.notices,(a,c)=>(p(),b("div",{key:c,class:he(["alert global-notice",{[a.level]:!0}])},[g("div",Q2e,w(e.$t(a.messageKey,a.messageArgs)),1),g("button",{class:"button-unstyled close-notice",onClick:u=>e.closeNotice(a)},[T(i,{class:"fa-scale-110 fa-old-padding",icon:"times"})],8,ewe)],2))),128))])}const nwe=ge(J2e,[["render",twe]]),swe={name:"app",components:{UserPanel:Mge,NavPanel:IO,Notifications:gr(()=>Ve(()=>Promise.resolve().then(()=>L_e),void 0)),InstanceSpecificPanel:PO,FeaturesPanel:LO,WhoToFollowPanel:F1e,ShoutPanel:OO,MediaModal:Ave,SideDrawer:FO,MobilePostStatusButton:qve,MobileNav:K_e,DesktopNav:u2e,SettingsModal:gr(()=>Ve(()=>import("./settings_modal.B74APXc5.js").then(e=>e.s),__vite__mapDeps([2,3]))),UpdateNotification:gr(()=>Ve(()=>import("./update_notification.DdDhzBg0.js"),__vite__mapDeps([4,5]))),UserReportingModal:A2e,PostStatusModal:q2e,EditStatusModal:F2e,StatusHistoryModal:X2e,GlobalNoticeList:nwe},data:()=>({mobileActivePanel:"timeline"}),watch:{themeApplied(){this.removeSplash()},currentTheme(){this.setThemeBodyClass()},layoutType(){document.getElementById("modal").classList=["-"+this.layoutType]}},created(){const e=this.$store.getters.mergedConfig.interfaceLanguage;this.$store.dispatch("setOption",{name:"interfaceLanguage",value:e}),document.getElementById("modal").classList=["-"+this.layoutType],this.updateScrollState=Z.throttle(this.scrollHandler,200),this.updateMobileState=Z.throttle(this.resizeHandler,200)},mounted(){window.addEventListener("resize",this.updateMobileState),this.scrollParent.addEventListener("scroll",this.updateScrollState),Xe().themeApplied&&(this.setThemeBodyClass(),this.removeSplash()),gp()},unmounted(){window.removeEventListener("resize",this.updateMobileState),this.scrollParent.removeEventListener("scroll",this.updateScrollState)},computed:{themeApplied(){return Xe().themeApplied},currentTheme(){if(Xe().styleDataUsed){const e=Xe().styleDataUsed.find(t=>t.component==="@meta");if(e!==void 0)return e.directives.name.replaceAll(" ","-").toLowerCase()}return"stock"},layoutModalClass(){return"-"+this.layoutType},classes(){return[{"-reverse":this.reverseLayout,"-no-sticky-headers":this.noSticky,"-has-new-post-button":this.newPostButtonShown},"-"+this.layoutType]},navClasses(){const{navbarColumnStretch:e}=this.$store.getters.mergedConfig;return["-"+this.layoutType,...e?["-column-stretch"]:[]]},currentUser(){return this.$store.state.users.currentUser},userBackground(){return this.currentUser.background_image},instanceBackground(){return this.mergedConfig.hideInstanceWallpaper?null:this.$store.state.instance.background},background(){return this.userBackground||this.instanceBackground},bgStyle(){if(this.background)return{"--body-background-image":`url(${this.background})`}}
691,shout(){return Gl().joined},suggestionsEnabled(){return this.$store.state.instance.suggestionsEnabled},showInstanceSpecificPanel(){return this.$store.state.instance.showInstanceSpecificPanel&&!this.$store.getters.mergedConfig.hideISP&&this.$store.state.instance.instanceSpecificPanelContent},isChats(){return this.$route.name==="chat"||this.$route.name==="chats"},isListEdit(){return this.$route.name==="lists-edit"},newPostButtonShown(){return this.isChats||this.isListEdit?!1:this.$store.getters.mergedConfig.alwaysShowNewPostButton||this.layoutType==="mobile"},showFeaturesPanel(){return this.$store.state.instance.showFeaturesPanel},editingAvailable(){return this.$store.state.instance.editingAvailable},shoutboxPosition(){return this.$store.getters.mergedConfig.alwaysShowNewPostButton||!1},hideShoutbox(){return this.$store.getters.mergedConfig.hideShoutbox},layoutType(){return Xe().layoutType},privateMode(){return this.$store.state.instance.private},reverseLayout(){const{thirdColumnMode:e,sidebarRight:t}=this.$store.getters.mergedConfig;return this.layoutType!=="wide"||e==="notifications"?t:!t},noSticky(){return this.$store.getters.mergedConfig.disableStickyHeaders},showScrollbars(){return this.$store.getters.mergedConfig.showScrollbars},scrollParent(){return window},...bn(["mergedConfig"])},methods:{resizeHandler(){Xe().setLayoutWidth(Ph()),Xe().setLayoutHeight(Lh())},scrollHandler(){(this.scrollParent===window?window.scrollY:this.scrollParent.scrollTop)!=0?this.$refs.appContentRef.classList.add(["-scrolled"]):this.$refs.appContentRef.classList.remove(["-scrolled"])},setThemeBodyClass(){const e=this.currentTheme,n=Array.from(document.body.classList).filter(s=>s.startsWith("theme-"));if(e!==null&&e!==""){const s=`theme-${e.toLowerCase()}`;n.length?document.body.classList.replace(n[0],s):document.body.classList.add(s)}else document.body.classList.remove(...n)},removeSplash(){document.querySelector("#status").textContent=this.$t("splash.fun_"+Math.ceil(Math.random()*4));const e=document.querySelector("#splash");e.addEventListener("transitionend",()=>{e.remove()}),setTimeout(()=>{e.remove()},600),e.classList.add("hidden"),document.querySelector("#app").classList.remove("hidden")}}},rwe={key:0,class:"login-hint panel panel-default"};function owe(e,t,n,s,r,o){const i=O("MobileNav"),a=O("DesktopNav"),c=O("Notifications"),u=O("user-panel"),f=O("nav-panel"),h=O("instance-specific-panel"),v=O("features-panel"),y=O("who-to-follow-panel"),S=O("router-link"),C=O("router-view"),I=O("MediaModal"),$=O("shout-panel"),k=O("MobilePostStatusButton"),P=O("UserReportingModal"),A=O("PostStatusModal"),R=O("EditStatusModal"),B=O("StatusHistoryModal"),N=O("SettingsModal"),Y=O("UpdateNotification"),H=O("GlobalNoticeList");return at((p(),b("div",{id:"app-loaded",style:hn(e.bgStyle)},[t[2]||(t[2]=g("div",{id:"app_bg_wrapper",class:"app-bg-wrapper"},null,-1)),e.layoutType==="mobile"?(p(),x(i,{key:0})):(p(),x(a,{key:1,class:he(e.navClasses)},null,8,["class"])),e.currentUser?(p(),x(c,{key:2})):E("",!0),g("div",{id:"content",ref:"appContentRef",class:he(["app-layout container",e.classes])},[t[1]||(t[1]=g("div",{class:"underlay"},null,-1)),g("div",{id:"sidebar",class:he(["column -scrollable",{"-show-scrollbar":e.showScrollbars}])},[T(u),e.layoutType!=="mobile"?(p(),b(Se,{key:0},[T(f),e.showInstanceSpecificPanel?(p(),x(h,{key:0})):E("",!0),!e.currentUser&&e.showFeaturesPanel?(p(),x(v,{key:1})):E("",!0),e.currentUser&&e.suggestionsEnabled?(p(),x(y,{key:2})):E("",!0),t[0]||(t[0]=g("div",{id:"notifs-sidebar"},null,-1))],64)):E("",!0)],2),g("main",{id:"main-scroller",class:he(["column main",{"-full-height":e.isChats||e.isListEdit}])},[e.currentUser?E("",!0):(p(),b("div",rwe,[T(S,{to:{name:"login"},class:"panel-body"},{default:X(()=>[de(w(e.$t("login.hint")),1)]),_:1})])),T(C)],2),g("div",{id:"notifs-column",class:he(["column -scrollable",{"-show-scrollbar":e.showScrollbars}])},null,2)],2),T(I),e.currentUser&&e.shout&&!e.hideShoutbox?(p(),x($,{key:3,floating:!0,class:he(["floating-shout mobile-hidden",{"-left":e.shoutboxPosition}])},null,8,["class"])):E("",!0),T(k),T(P),T(A),e.editingAvailable?(p(),x(R,{key:4})):E("",!0),e.editingAvailable?(p(),x(B,{key:5})):E("",!0),T(N,{class:he(e.layoutModalClass)},null,8,["class"]),T(Y),T(H)],4)),[[Cr,e.themeApplied]])}const iwe=ge(swe,[["render",owe]]);et.add(WI,ZI);const awe={components:{Status:ea},name:"ThreadTree",props:{depth:Number,status:Object,inProfile:Boolean,conversation:Array,collapsable:Boolean,isExpanded:Boolean,pinnedStatusIdsObject:Object,profileUserId:String,isFocusedFunction:Function,highlight:String,getReplies:Function,setHighlight:Function,toggleExpanded:Function,simple:Boolean,toggleThreadDisplay:Function,threadDisplayStatus:Object,showThreadRecursively:Function,totalReplyCount:Object,totalReplyDepth:Object,statusContentProperties:Object,setStatusContentProperty:Function,toggleStatusContentProperty:Function,dive:Function},computed:{suspendable(){const e=this.$refs.statusComponent?this.$refs.statusComponent.suspendable:!0;return this.$refs.childComponent?e&&this.$refs.childComponent.every(t=>t.suspendable):e}
691,reverseLookupTable(){return this.conversation.reduce((e,t,n)=>(e[t.id]=n,e),{})},currentReplies(){return this.getReplies(this.status.id).map(({id:e})=>this.statusById(e))},threadShowing(){return this.threadDisplayStatus[this.status.id]==="showing"},currentProp(){return this.statusContentProperties[this.status.id]}},methods:{statusById(e){return this.conversation[this.reverseLookupTable[e]]},collapseThread(){},showThread(){},showAllSubthreads(){},toggleCurrentProp(e){this.toggleStatusContentProperty(this.status.id,e)},setCurrentProp(e){this.setStatusContentProperty(this.status.id,e)}}},lwe={class:"thread-tree"},cwe={key:0,class:"thread-tree-replies"},uwe={key:1,class:"thread-tree-replies thread-tree-replies-hidden"};function dwe(e,t,n,s,r,o){const i=O("status"),a=O("thread-tree"),c=O("FAIcon"),u=O("i18n-t");return p(),b("article",lwe,[(p(),x(i,{key:e.status.id,ref:"statusComponent","inline-expanded":e.collapsable&&e.isExpanded,statusoid:e.status,expandable:!e.isExpanded,"show-pinned":e.pinnedStatusIdsObject&&e.pinnedStatusIdsObject[e.status.id],focused:e.isFocusedFunction(e.status.id),"in-conversation":e.isExpanded,highlight:e.highlight,replies:e.getReplies(e.status.id),"in-profile":e.inProfile,"profile-user-id":e.profileUserId,class:"conversation-status conversation-status-treeview status-fadein panel-body","simple-tree":e.simple,"controlled-thread-display-status":e.threadDisplayStatus[e.status.id],"controlled-toggle-thread-display":()=>e.toggleThreadDisplay(e.status.id),"controlled-showing-tall":e.currentProp.showingTall,"controlled-expanding-subject":e.currentProp.expandingSubject,"controlled-showing-long-subject":e.currentProp.showingLongSubject,"controlled-replying":e.currentProp.replying,"controlled-media-playing":e.currentProp.mediaPlaying,"controlled-toggle-showing-tall":()=>e.toggleCurrentProp("showingTall"),"controlled-toggle-expanding-subject":()=>e.toggleCurrentProp("expandingSubject"),"controlled-toggle-showing-long-subject":()=>e.toggleCurrentProp("showingLongSubject"),"controlled-toggle-replying":()=>e.toggleCurrentProp("replying"),"controlled-set-media-playing":f=>e.setCurrentProp("mediaPlaying",f),dive:e.dive?()=>e.dive(e.status.id):void 0,onGoto:e.setHighlight,onToggleExpanded:e.toggleExpanded},null,8,["inline-expanded","statusoid","expandable","show-pinned","focused","in-conversation","highlight","replies","in-profile","profile-user-id","simple-tree","controlled-thread-display-status","controlled-toggle-thread-display","controlled-showing-tall","controlled-expanding-subject","controlled-showing-long-subject","controlled-replying","controlled-media-playing","controlled-toggle-showing-tall","controlled-toggle-expanding-subject","controlled-toggle-showing-long-subject","controlled-toggle-replying","controlled-set-media-playing","dive","onGoto","onToggleExpanded"])),e.currentReplies.length&&e.threadShowing?(p(),b("div",cwe,[(p(!0),b(Se,null,We(e.currentReplies,f=>(p(),x(a,{key:f.id,ref_for:!0,ref:"childComponent",depth:e.depth+1,status:f,"in-profile":e.inProfile,conversation:e.conversation,collapsable:e.collapsable,"is-expanded":e.isExpanded,"pinned-status-ids-object":e.pinnedStatusIdsObject,"profile-user-id":e.profileUserId,"is-focused-function":e.isFocusedFunction,"get-replies":e.getReplies,highlight:e.highlight,"set-highlight":e.setHighlight,"toggle-expanded":e.toggleExpanded,simple:e.simple,"toggle-thread-display":e.toggleThreadDisplay,"thread-display-status":e.threadDisplayStatus,"show-thread-recursively":e.showThreadRecursively,"total-reply-count":e.totalReplyCount,"total-reply-depth":e.totalReplyDepth,"status-content-properties":e.statusContentProperties,"set-status-content-property":e.setStatusContentProperty,"toggle-status-content-property":e.toggleStatusContentProperty,dive:e.dive},null,8,["depth","status","in-profile","conversation","collapsable","is-expanded","pinned-status-ids-object","profile-user-id","is-focused-function","get-replies","highlight","set-highlight","toggle-expanded","simple","toggle-thread-display","thread-display-status","show-thread-recursively","total-reply-count","total-reply-depth","status-content-properties","set-status-content-property","toggle-status-content-property","dive"]))),128))])):E("",!0),e.currentReplies.length&&!e.threadShowing?(p(),b("div",uwe,[e.simple?(p(),x(u,{key:0,scope:"global",tag:"button",keypath:"status.thread_follow_with_icon",class:"button-unstyled -link thread-tree-show-replies-button",onClick:t[0]||(t[0]=Te(f=>e.dive(e.status.id),["prevent"]))},{icon:X(()=>[T(c,{icon:"angle-double-right"})]),text:X(()=>[g("span",null,w(e.$t("status.thread_follow",{numStatus:e.totalReplyCount[e.status.id]},e.totalReplyCount[e.status.id])),1)]),_:1})):(p(),x(u,{key:1,scope:"global",tag:"button",keypath:"status.thread_show_full_with_icon",class:"button-unstyled -link thread-tree-show-replies-button",onClick:t[1]||(t[1]=Te(f=>e.showThreadRecursively(e.status.id),["prevent"]))},{icon:X(()=>[T(c,{icon:"angle-double-down"})]),text:X(()=>[g("span",null,w(e.$t("status.thread_show_full",{numStatus:e.totalReplyCount[e.status.id],depth:e.totalReplyDepth[e.status.id]},e.totalReplyCount[e.status.id])),1)]),_:1}))])):E("",!0)])}const fwe=ge(awe,[["render",dwe]]);et.add(QI,wZ,t2);const hwe={props:{conversation:Boolean,nested:Boolean},components:{Popover:Jn},methods:{setReplyVisibility(e){this.$store.dispatch("setOption",{name:"replyVisibility",value:e}),this.$store.dispatch("queueFlushAll")},openTab(e){Xe().openSettingsModalTab(e)}},computed:{...bn(["mergedConfig"]),...sn(Xe,{mobileLayout:e=>e.layoutType==="mobile"}),triggerAttrs(){return this.mobileLayout?{}:{title:this.$t("timeline.quick_filter_settings")}},mainClass(){return this.mobileLayout?"main-button":"dropdown-item"},loggedIn(){return!!this.$store.state.users.currentUser},replyVisibilitySelf:{get(){return this.mergedConfig.replyVisibility==="self"},set(){this.setReplyVisibility("self")}},replyVisibilityFollowing:{get(){return this.mergedConfig.replyVisibility==="following"},set(){this.setReplyVisibility("following")}},replyVisibilityAll:{get(){return this.mergedConfig.replyVisibility==="all"},set(){this.setReplyVisibility("all")}},hideMedia:{get(){return this.mergedConfig.hideAttachments||this.mergedConfig.hideAttachmentsInConv},set(){const e=!this.hideMedia;this.$store.dispatch("setOption",{name:"hideAttachments",value:e}),this.$store.dispatch("setOption",{name:"hideAttachmentsInConv",value:e})}},hideMutedPosts:{get(){return this.mergedConfig.hideFilteredStatuses},set(){const e=!this.hideMutedPosts;this.$store.dispatch("setOption",{name:"hideFilteredStatuses",value:e})}},muteBotStatuses:{get(){return this.mergedConfig.muteBotStatuses},set(){const e=!this.muteBotStatuses;this.$store.dispatch("setOption",{name:"muteBotStatuses",value:e})}},muteSensitiveStatuses:{get(){return this.mergedConfig.muteSensitiveStatuses},set(){const e=!this.muteSensitiveStatuses;this.$store.dispatch("setOption",{name:"muteSensitiveStatuses",value:e})}}}},pwe={class:"dropdown-menu",role:"menu"},mwe={key:0,role:"group"},gwe={class:"menu-item dropdown-item -icon"},vwe=["aria-checked"],bwe={key:0,class:"menu-item dropdown-item -icon"},ywe=["aria-checked"],_we={key:1,class:"menu-item dropdown-item -icon"},wwe=["aria-checked"],Swe={key:2,role:"separator",class:"dropdown-divider"},kwe={class:"menu-item dropdown-item -icon"},$we=["aria-checked"],Cwe={class:"menu-item dropdown-item -icon"},Twe=["aria-checked"],Awe={class:"menu-item dropdown-item -icon"},Ewe=["aria-checked"],Iwe={class:"menu-item dropdown-item -icon"},Pwe=["aria-checked"],Lwe={class:"menu-item dropdown-item -icon"};function Owe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Popover");return p(),x(a,{trigger:e.nested?"hover":"click",class:"QuickFilterSettings","boun
691d-to":{x:"container"},position:e.nested?"right":"top","trigger-attrs":e.triggerAttrs},{content:X(()=>[g("div",pwe,[e.loggedIn?(p(),b("div",mwe,[g("div",gwe,[e.conversation?E("",!0):(p(),b("button",{key:0,class:"main-button","aria-checked":e.replyVisibilityAll,role:"menuitemradio",onClick:t[0]||(t[0]=c=>e.replyVisibilityAll=!0)},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.replyVisibilityAll}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.reply_visibility_all")),1)],8,vwe))]),e.conversation?E("",!0):(p(),b("div",bwe,[g("button",{class:"main-button","aria-checked":e.replyVisibilityFollowing,role:"menuitemradio",onClick:t[1]||(t[1]=c=>e.replyVisibilityFollowing=!0)},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.replyVisibilityFollowing}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.reply_visibility_following_short")),1)],8,ywe)])),e.conversation?E("",!0):(p(),b("div",_we,[g("button",{class:"main-button","aria-checked":e.replyVisibilitySelf,role:"menuitemradio",onClick:t[2]||(t[2]=c=>e.replyVisibilitySelf=!0)},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.replyVisibilitySelf}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.reply_visibility_self_short")),1)],8,wwe)])),e.conversation?E("",!0):(p(),b("div",Swe))])):E("",!0),g("div",kwe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.muteBotStatuses,onClick:t[3]||(t[3]=c=>e.muteBotStatuses=!e.muteBotStatuses)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.muteBotStatuses}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.mute_bot_posts")),1)],8,$we)]),g("div",Cwe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.muteSensitiveStatuses,onClick:t[4]||(t[4]=c=>e.muteSensitiveStatuses=!e.muteSensitiveStatuses)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.muteSensitiveStatuses}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.mute_sensitive_posts")),1)],8,Twe)]),g("div",Awe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.hideMedia,onClick:t[5]||(t[5]=c=>e.hideMedia=!e.hideMedia)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hideMedia}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.hide_media_previews")),1)],8,Ewe)]),g("div",Iwe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.hideMutedPosts,onClick:t[6]||(t[6]=c=>e.hideMutedPosts=!e.hideMutedPosts)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hideMutedPosts}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.hide_all_muted_posts")),1)],8,Pwe)]),g("div",Lwe,[g("button",{class:"main-button",role:"menuitem",onClick:t[7]||(t[7]=c=>e.openTab("filtering"))},[T(i,{"fixed-width":"",icon:"font"}),de(w(e.$t("settings.word_filter_and_more")),1)])])])]),trigger:X(()=>[g("div",{class:he(e.mobileLayout?"main-button":"")},[T(i,{icon:"filter","fixed-width":e.nested},null,8,["fixed-width"]),e.nested?(p(),b(Se,{key:0},[de(w(e.$t("timeline.filter_settings")),1)],64)):E("",!0),e.nested?(p(),x(i,{key:1,class:"chevron-icon",size:"lg",icon:"chevron-right","fixed-width":""})):E("",!0)],2)]),_:1},8,["trigger","position","trigger-attrs"])}const sw=ge(hwe,[["render",Owe]]);et.add(Ep,sP,KI,t2);const Rwe={props:{conversation:Boolean},components:{Popover:Jn,QuickFilterSettings:sw},methods:{setConversationDisplay(e){this.$store.dispatch("setOption",{name:"conversationDisplay",value:e})},openTab(e){Xe().openSettingsModalTab(e)}},computed:{...bn(["mergedConfig"]),...sn(Xe,{mobileLayout:e=>e.layoutType==="mobile"}),loggedIn(){return!!this.$store.state.users.currentUser},conversationDisplay:{get(){return this.mergedConfig.conversationDisplay},set(e){this.setConversationDisplay(e)}},autoUpdate:{get(){return this.mergedConfig.streaming},set(){const e=!this.autoUpdate;this.$store.dispatch("setOption",{name:"streaming",value:e})}},collapseWithSubjects:{get(){return this.mergedConfig.collapseMessageWithSubject},set(){const e=!this.collapseWithSubjects;this.$store.dispatch("setOption",{name:"collapseMessageWithSubject",value:e})}},showUserAvatars:{get(){return this.mergedConfig.mentionLinkShowAvatar},set(){const e=!this.showUserAvatars;this.$store.dispatch("setOption",{name:"mentionLinkShowAvatar",value:e})}},muteBotStatuses:{get(){return this.mergedConfig.muteBotStatuses},set(){const e=!this.muteBotStatuses;this.$store.dispatch("setOption",{name:"muteBotStatuses",value:e})}},muteSensitiveStatuses:{get(){return this.mergedConfig.muteSensitiveStatuses},set(){const e=!this.muteSensitiveStatuses;this.$store.dispatch("setOption",{name:"muteSensitiveStatuses",value:e})}}}},Mwe={class:"dropdown-menu",role:"menu"},Nwe={key:0,class:"menu-item dropdown-item -icon"},Fwe={key:1,role:"separator",class:"dropdown-divider"},Dwe={role:"group"},Uwe={class:"menu-item dropdown-item -icon-double"},jwe=["aria-checked"],Bwe={class:"menu-item dropdown-item -icon-double"},zwe=["aria-checked"],qwe={class:"menu-item dropdown-item -icon"},Hwe=["aria-checked"],Vwe={key:2,class:"menu-item dropdown-item -icon"},Wwe=["aria-checked"],Gwe={key:3,class:"menu-item dropdown-item -icon"},Kwe=["aria-checked"],xwe={class:"menu-item dropdown-item -icon"};function Ywe(e,t,n,s,r,o){const i=O("QuickFilterSettings"),a=O("FAIcon"),c=O("Popover");
691return p(),x(c,{trigger:"click",class:"QuickViewSettings","bound-to":{x:"container"}},{content:X(()=>[g("div",Mwe,[e.mobileLayout?(p(),b("div",Nwe,[T(i,{nested:!0})])):E("",!0),e.mobileLayout?(p(),b("div",Fwe)):E("",!0),g("div",Dwe,[g("div",Uwe,[g("button",{class:"main-button","aria-checked":e.conversationDisplay==="tree",role:"menuitemradio",onClick:t[0]||(t[0]=u=>e.conversationDisplay="tree")},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.conversationDisplay==="tree"}]),"aria-hidden":!0},null,2),T(a,{icon:"folder-tree","aria-hidden":!0,"fixed-width":""}),de(" "+w(e.$t("settings.conversation_display_tree_quick")),1)],8,jwe)]),g("div",Bwe,[g("button",{class:"main-button","aria-checked":e.conversationDisplay==="linear",role:"menuitemradio",onClick:t[1]||(t[1]=u=>e.conversationDisplay="linear")},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.conversationDisplay==="linear"}]),"aria-hidden":!0},null,2),T(a,{icon:"list","aria-hidden":!0,"fixed-width":""}),de(" "+w(e.$t("settings.conversation_display_linear_quick")),1)],8,zwe)])]),t[6]||(t[6]=g("div",{role:"separator",class:"dropdown-divider"},null,-1)),g("div",qwe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.showUserAvatars,onClick:t[2]||(t[2]=u=>e.showUserAvatars=!e.showUserAvatars)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.showUserAvatars}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.mention_link_show_avatar_quick")),1)],8,Hwe)]),e.conversation?E("",!0):(p(),b("div",Vwe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.autoUpdate,onClick:t[3]||(t[3]=u=>e.autoUpdate=!e.autoUpdate)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.autoUpdate}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.auto_update")),1)],8,Wwe)])),e.conversation?E("",!0):(p(),b("div",Gwe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.collapseWithSubjects,onClick:t[4]||(t[4]=u=>e.collapseWithSubjects=!e.collapseWithSubjects)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.collapseWithSubjects}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.collapse_subject")),1)],8,Kwe)])),g("div",xwe,[g("button",{class:"main-button",role:"menuitem",onClick:t[5]||(t[5]=u=>e.openTab("general"))},[T(a,{icon:"wrench","fixed-width":""}),de(w(e.$t("settings.more_settings")),1)])])])]),trigger:X(()=>[T(a,{icon:"bars"})]),_:1})}const BO=ge(Rwe,[["render",Ywe]]);et.add(WI,PZ,qa);const Xwe=(e,t)=>{const n=e.type==="retweet"?e.retweeted_status.id:e.id,s=t.type==="retweet"?t.retweeted_status.id:t.id,r=Number(n),o=Number(s),i=!Number.isNaN(r),a=!Number.isNaN(o);return i&&a?r<o?-1:1:i&&!a?-1:!i&&a?1:n<s?-1:1},Jwe=(e,t)=>(t.type==="retweet"?e=Z.filter(e,n=>n.type==="retweet"||n.id!==t.retweeted_status.id):e=Z.filter(e,n=>n.type!=="retweet"),e.filter(n=>n).sort(Xwe)),Zwe={data(){return{highlight:null,expanded:!1,threadDisplayStatusObject:{},statusContentPropertiesObject:{},inlineDivePosition:null,loadStatusError:null}},props:["statusId","collapsable","isPage","pinnedStatusIdsObject","inProfile","profileUserId","virtualHidden"],created(){this.isPage&&this.fetchConversation()},computed:{maxDepthToShowByDefault(){const e=this.$store.getters.mergedConfig.maxDepthInThread-2;return e>=1?e:1},streamingEnabled(){return this.mergedConfig.useStreamingApi&&this.mastoUserSocketStatus===Ks.JOINED},displayStyle(){return this.$store.getters.mergedConfig.conversationDisplay},isTreeView(){return!this.isLinearView},treeViewIsSimple(){return!this.$store.getters.mergedConfig.conversationTreeAdvanced},isLinearView(){return this.displayStyle==="linear"},shouldFadeAncestors(){return this.$store.getters.mergedConfig.conversationTreeFadeAncestors},otherRepliesButtonPosition(){return this.$store.getters.mergedConfig.conversationOtherRepliesButton},showOtherRepliesButtonBelowStatus(){return this.otherRepliesButtonPosition==="below"},showOtherRepliesButtonInsideStatus(){return this.otherRepliesButtonPosition==="inside"},suspendable(){return this.isTreeView?Object.entries(this.statusContentProperties).every(([,e])=>!e.replying&&e.mediaPlaying.length===0):this.$refs.statusComponent&&this.$refs.statusComponent[0]?this.$refs.statusComponent.every(e=>e.suspendable):!0},hideStatus(){return this.virtualHidden&&this.suspendable},status(){return this.$store.state.statuses.allStatusesObject[this.statusId]},originalStatusId(){return this.status.retweeted_status?this.status.retweeted_status.id:this.statusId},conversationId(){return this.getConversationId(this.statusId)},conversation(){if(!this.status)return[];if(!this.isExpanded)return[this.status];const e=Z.clone(this.$store.state.statuses.conversationsObject[this.conversationId]),t=Z.findIndex(e,{id:this.originalStatusId});return t!==-1&&(e[t]=this.status),Jwe(e,this.status)},statusMap(){return this.conversation.reduce((e,t)=>
691(e[t.id]=t,e),{})},threadTree(){const e=this.conversation.reduce((r,o,i)=>(r[o.id]=i,r),{}),t=this.conversation.reduce((r,o)=>{const i=o.id;return r.forest[i]=this.getReplies(i).map(a=>a.id),r},{forest:{}}),n=(r,o,i=0,a={})=>o.map(c=>a[c]?[]:(a[c]=!0,[{status:this.conversation[e[c]],id:c,depth:i},n(r,r[c],i+1,a)].reduce((u,f)=>u.concat(f),[]))).reduce((c,u)=>c.concat(u),[]);return n(t.forest,this.topLevel.map(r=>r.id))},replyIds(){return this.conversation.map(e=>e.id).reduce((e,t)=>(e[t]=(this.replies[t]||[]).map(n=>n.id),e),{})},totalReplyCount(){const e={},t=n=>(e[n]||(e[n]=1+this.replyIds[n].map(s=>t(s)).reduce((s,r)=>s+r,0)),e[n]);return this.conversation.map(n=>n.id).map(t),Object.keys(e).reduce((n,s)=>(n[s]=e[s]-1,n),{})},totalReplyDepth(){const e={},t=n=>(e[n]||(e[n]=1+this.replyIds[n].map(s=>t(s)).reduce((s,r)=>s>r?s:r,0)),e[n]);return this.conversation.map(n=>n.id).map(t),Object.keys(e).reduce((n,s)=>(n[s]=e[s]-1,n),{})},depths(){return this.threadTree.reduce((e,t)=>(e[t.id]=t.depth,e),{})},topLevel(){return this.conversation.reduce((t,n)=>t.filter(s=>this.getReplies(n.id).map(r=>r.id).indexOf(s.id)===-1),this.conversation)},otherTopLevelCount(){return this.topLevel.length-1},showingTopLevel(){return this.canDive&&this.diveRoot?[this.statusMap[this.diveRoot]]:this.topLevel},diveRoot(){const e=this.inlineDivePosition||this.statusId;return!this.parentOf(e)?null:e},diveDepth(){return this.canDive&&this.diveRoot?this.depths[this.diveRoot]:0},diveMode(){return this.canDive&&!!this.diveRoot},shouldShowAllConversationButton(){return this.isTreeView&&this.isExpanded&&this.diveMode&&this.topLevel.length>1},shouldShowAncestors(){return this.isTreeView&&this.isExpanded&&this.ancestorsOf(this.diveRoot).length},replies(){let e=1;return Z.reduce(this.conversation,(t,{id:n,in_reply_to_status_id:s})=>(s&&(t[s]=t[s]||[],t[s].push({name:`#${e}`,id:n})),e++,t),{})},isExpanded(){return!!(this.expanded||this.isPage)},hiddenStyle(){const e=this.status&&this.status.virtualHeight||"120px";return this.virtualHidden?{height:e}:{}},threadDisplayStatus(){return this.conversation.reduce((e,t)=>{const n=t.id,s=this.depths[n],r=this.threadDisplayStatusObject[n]?this.threadDisplayStatusObject[n]:s-this.diveDepth<=this.maxDepthToShowByDefault?"showing":"hidden";return e[n]=r,e},{})},statusContentProperties(){return this.conversation.reduce((e,t)=>{const n=t.id,s=(()=>{const r={showingTall:!1,expandingSubject:!1,showingLongSubject:!1,isReplying:!1,mediaPlaying:[]};return this.statusContentPropertiesObject[n]?{...r,...this.statusContentPropertiesObject[n]}:r})();return e[n]=s,e},{})},canDive(){return this.isTreeView&&this.isExpanded},maybeHighlight(){return this.isExpanded?this.highlight:null},...bn(["mergedConfig"]),...mn({mastoUserSocketStatus:e=>e.api.mastoUserSocketStatus}),...sn(Xe,{mobileLayout:e=>e.layoutType==="mobile"})},components:{Status:ea,ThreadTree:fwe,QuickFilterSettings:sw,QuickViewSettings:BO},watch:{statusId(e,t){const n=this.getConversationId(e),s=this.getConversationId(t);n&&s&&n===s?this.setHighlight(this.originalStatusId):this.fetchConversation()},expanded(e){e?this.fetchConversation():this.resetDisplayState()},virtualHidden(){this.$store.dispatch("setVirtualHeight",{statusId:this.statusId,height:`${this.$el.clientHeight}px`})}},methods:{fetchConversation(){this.status?this.$store.state.api.backendInteractor.fetchConversation({id:this.statusId}).then(({ancestors:e,descendants:t})=>{this.$store.dispatch("addNewStatuses",{statuses:e}),this.$store.dispatch("addNewStatuses",{statuses:t}),this.setHighlight(this.originalStatusId)}):(this.loadStatusError=null,this.$store.state.api.backendInteractor.fetchStatus({id:this.statusId}).then(e=>{this.$store.dispatch("addNewStatuses",{statuses:[e]}),this.fetchConversation()}).catch(e=>{this.loadStatusError=e}))},isFocused(e){return this.isExpanded&&e===this.highlight},getReplies(e){return this.replies[e]||[]},getHighlight(){return this.isExpanded?this.highlight:null},setHighlight(e){e&&(this.highlight=e,this.streamingEnabled||this.$store.dispatch("fetchStatus",e),this.$store.dispatch("fetchFavsAndRepeats",e),this.$store.dispatch("fetchEmojiReactionsBy",e))},toggleExpanded(){this.expanded=!this.expanded},getConversationId(e){const t=this.$store.state.statuses.allStatusesObject[e];return Z.get(t,"retweeted_status.statusnet_conversation_id",Z.get(t,"statusnet_conversation_id"))},setThreadDisplay(e,t){this.threadDisplayStatusObject={...this.threadDisplayStatusObject,[e]:t}},toggleThreadDisplay(e){const n=this.threadDisplayStatus[e]==="showing"?"hidden":"showing";this.setThreadDisplay(e,n)},setThreadDisplayRecursively(e,t){this.setThreadDisplay(e,t),this.getReplies(e).map(n=>n.id).map(n=>this.setThreadDisplayRecursively(n,t))},showThreadRecursively(e){this.setThreadDisplayRecursively(e,"showing")},setStatusContentProperty(e,t,n){this.statusContentPropertiesObject={...this.statusContentPropertiesObject,[e]:{...this.statusContentPropertiesObject[e],[t]:n}}},toggleStatusContentProperty(e,t){this.setStatusContentProperty(e,t,!this.statusContentProperties[e][t])},leastVisibleAncestor(e){let t=e,n=this.parentOf(t);for(;t;){if(this.threadDisplayStatus[n]==="showing")return t;n=this.parentOf(n),t=this.parentOf(t)}return this.topLevel[0]?this.topLevel[0].id:void 0},diveIntoStatus(e){this.tryScrollTo(e)},diveToTopLevel(){this.tryScrollTo(this.topLevelAncestorOrSelfId(this.diveRoot)||this.topLevel[0].id)},undive(){this.inlineDivePosition=null,this.setHighlight(this.statusId)},tryScrollTo(e){e&&(this.isPage?this.$router.push({name:"conversation",params:{id:e}}
691):this.inlineDivePosition=e,this.$nextTick(()=>{this.setHighlight(e)}))},goToCurrent(){this.tryScrollTo(this.diveRoot||this.topLevel[0].id)},statusById(e){return this.statusMap[e]},parentOf(e){const t=this.statusById(e);if(!t)return;const{in_reply_to_status_id:n}=t;if(this.statusMap[n])return n},parentOrSelf(e){return this.parentOf(e)||e},ancestorsOf(e){const t=[];let n=this.parentOf(e);for(;n;)t.unshift(this.statusMap[n]),n=this.parentOf(n);return t},topLevelAncestorOrSelfId(e){let t=e,n=this.parentOf(e);for(;n;)t=this.parentOf(t),n=this.parentOf(n);return t},resetDisplayState(){this.undive(),this.threadDisplayStatusObject={}}}},Qwe={key:0,class:"panel-heading conversation-heading -sticky"},eSe={class:"title"},tSe={key:0},nSe={key:1},sSe={key:0,class:"thread-body"},rSe={key:0,class:"conversation-dive-to-top-level-box"},oSe={key:1,class:"thread-ancestors"},iSe={key:0,class:"thread-ancestor-dive-box"},aSe={class:"thread-ancestor-dive-box-inner"},lSe={key:1,class:"thread-body"};function cSe(e,t,n,s,r,o){const i=O("QuickFilterSettings"),a=O("QuickViewSettings"),c=O("FAIcon"),u=O("i18n-t"),f=O("status"),h=O("thread-tree");return e.hideStatus?(p(),b("div",{key:1,class:"Conversation -hidden",style:hn(e.hiddenStyle)},null,4)):(p(),b("div",{key:0,style:hn(e.hiddenStyle),class:he(["Conversation",{"-expanded":e.isExpanded,panel:e.isExpanded}])},[e.isExpanded?(p(),b("div",Qwe,[g("h1",eSe,w(e.$t("timeline.conversation")),1),e.collapsable?(p(),b("button",{key:0,class:"button-unstyled -link",onClick:t[0]||(t[0]=Te((...v)=>e.toggleExpanded&&e.toggleExpanded(...v),["prevent"]))},w(e.$t("timeline.collapse")),1)):E("",!0),!e.collapsable&&e.mobileLayout?(p(),x(i,{key:1,conversation:!0,class:"rightside-button"})):E("",!0),e.collapsable?E("",!0):(p(),x(a,{key:2,conversation:!0,class:"rightside-button"}))])):E("",!0),e.isPage&&!e.status?(p(),b("div",{key:1,class:he(["conversation-body",{"panel-body":e.isExpanded}])},[e.loadStatusError?(p(),b("p",nSe,w(e.$t("status.load_error",{error:e.loadStatusError})),1)):(p(),b("p",tSe,[T(c,{spin:"",icon:"circle-notch"}),de(" "+w(e.$t("status.loading")),1)]))],2)):(p(),b("div",{key:2,class:he(["conversation-body",{"panel-body":e.isExpanded}])},[e.isTreeView?(p(),b("div",sSe,[e.shouldShowAllConversationButton?(p(),b("div",rSe,[T(u,{keypath:"status.show_all_conversation_with_icon",tag:"button",class:"button-unstyled -link",scope:"global",onClick:Te(e.diveToTopLevel,["prevent"])},{icon:X(()=>[T(c,{icon:"angle-double-left"})]),text:X(()=>[g("span",null,w(e.$t("status.show_all_conversation",{numStatus:e.otherTopLevelCount},e.otherTopLevelCount)),1)]),_:1},8,["onClick"])])):E("",!0),e.shouldShowAncestors?(p(),b("div",oSe,[(p(!0),b(Se,null,We(e.ancestorsOf(e.diveRoot),v=>(p(),b("article",{key:v.id,class:he(["thread-ancestor",{"thread-ancestor-has-other-replies":e.getReplies(v.id).length>1,"-faded":e.shouldFadeAncestors}])},[T(f,{ref_for:!0,ref:"statusComponent","inline-expanded":e.collapsable&&e.isExpanded,statusoid:v,expandable:!e.isExpanded,"show-pinned":e.pinnedStatusIdsObject&&e.pinnedStatusIdsObject[v.id],focused:e.isFocused(v.id),"in-conversation":e.isExpanded,highlight:e.getHighlight(),replies:e.getReplies(v.id),"in-profile":e.inProfile,"profile-user-id":e.profileUserId,class:"conversation-status status-fadein panel-body","simple-tree":e.treeViewIsSimple,"toggle-thread-display":e.toggleThreadDisplay,"thread-display-status":e.threadDisplayStatus,"show-thread-recursively":e.showThreadRecursively,"total-reply-count":e.totalReplyCount,"total-reply-depth":e.totalReplyDepth,"show-other-replies-as-button":e.showOtherRepliesButtonInsideStatus,dive:()=>e.diveIntoStatus(v.id),"controlled-showing-tall":e.statusContentProperties[v.id].showingTall,"controlled-expanding-subject":e.statusContentProperties[v.id].expandingSubject,"controlled-showing-long-subject":e.statusContentProperties[v.id].showingLongSubject,"controlled-replying":e.statusContentProperties[v.id].replying,"controlled-media-playing":e.statusContentProperties[v.id].mediaPlaying,"controlled-toggle-showing-tall":()=>e.toggleStatusContentProperty(v.id,"showingTall"),"controlled-toggle-expanding-subject":()=>e.toggleStatusContentProperty(v.id,"expandingSubject"),"controlled-toggle-showing-long-subject":()=>e.toggleStatusContentProperty(v.id,"showingLongSubject"),"controlled-toggle-replying":()=>e.toggleStatusContentProperty(v.id,"replying"),"controlled-set-media-playing":y=>e.toggleStatusContentProperty(v.id,"mediaPlaying",y),onGoto:e.setHighlight,onToggleExpanded:e.toggleExpanded},null,8,["inline-expanded","statusoid","expandable","show-pinned","focused","in-conversation","highlight","replies","in-profile","profile-user-id","simple-tree","toggle-thread-display","thread-display-status","show-thread-recursively","total-reply-count","total-reply-depth","show-other-replies-as-button","dive","controlled-showing-tall","controlled-expanding-subject","controlled-showing-long-subject","controlled-replying","controlled-media-playing","controlled-toggle-showing-tall","controlled-toggle-expanding-subject","controlled-toggle-showing-long-subject","controlled-toggle-replying","controlled-set-media-playing","onGoto","onToggleExpanded"]),e.showOtherRepliesButtonBelowStatus&&e.getReplies(v.id).length>1?(p(),b("div",iSe,[g("div",aSe,[T(u,{tag:"button",scope:"global",keypath:"status.ancestor_follow_with_icon",class:"button-unstyled -link thread-tree-show-replies-button",onClick:Te(y=>e.diveIntoStatus(v.id),["prevent"])},{icon:X(()=>[T(c,{icon:"angle-double-right"})]),text:X(()=>[g("span",null,w(e.$t("status.ancestor_follow",{numReplies:e.getReplies(v.id,e.getReplies(v.id).length-1).length-1})),1)]),_:2},1032,["onClick"])])])):E("",!0)],2))),128))])):E("",!0),(p(!0),b(Se,null,We(e.showingTopLevel,v=>(p(),x(h,{key:v.id,ref_for:!0,ref:"statusComponent",depth:0,status:v,"in-profile":e.inProfile,conversation:e.conversation,collapsable:e.collapsable,"is-expanded":e.isExpanded,"pinned-status-ids-object":e.pinnedStatusIdsObject,"profile-user-id":e.profileUserId,"is-focused-function":e.isFocused,"get-replies":e.getReplies,highlight:e.maybeHighlight,"set-highlight":e.setHighlight,"toggle-expanded":e.toggleExpanded,simple:e.treeViewIsSimple,"toggle-thread-display":e.toggleThreadDisplay,"thread-display-status":e.threadDisplayStatus,"show-thread-recursively":e.showThreadRecursively,"total-reply-count":e.totalReplyCount,"total-reply-depth":e.totalReplyDepth,"status-content-properties":e.statusContentProperties,"set-status-content-property":e.setStatusContentProperty,"toggle-status-content-property":e.toggleStatusContentProperty,dive:e.canDive?e.diveIntoStatus:void 0},null,8,["status","in-profile","conversation","collapsable","is-expanded","pinned-status-ids-object","profile-user-id","is-focused-function","get-replies","highlight","set-highlight","toggle-expanded","simple","toggle-thread-display","thread-display-status","show-thread-recursively","total-reply-count","total-reply-depth","status-content-properties","set-status-content-property","toggle-status-content-property","dive"]))),128))])):E("",!0),e.isLinearView?(p(),b("div",lSe,[g("article",null,[(p(!0),b(Se,null,We(e.conversation,v=>(p(),x(f,{key:v.id,ref_for:!0,ref:"statusComponent","inline-expanded":e.collapsable&&e.isExpanded,statusoid:v,expandable:!e.isExpanded,"show-pinned":e.pinnedStatusIdsObject&&e.pinnedStatusIdsObject[v.id],focused:e.isFocused(v.id),"in-conversation":e.isExpanded,highlight:e.getHighlight(),replies:e.getReplies(v.id),"in-profile":e.inProfile,"profile-user-id":e.profileUserId,class:"conversation-status status-fadein panel-body","toggle-thread-display":e.toggleThreadDisplay,"thread-display-status":e.threadDisplayStatus,"show-thread-recursively":e.showThreadRecursively,"total-reply-count":e.totalReplyCount,"total-reply-depth":e.totalReplyDepth,"status-content-properties":e.statusContentProperties,"set-status-content-property":e.setStatusContentProperty,"toggle-status-content-property":e.toggleStatusContentProperty,onGoto:e.setHighlight,onToggleExpanded:e.toggleExpanded},null,8,["inline-expanded","statusoid","expandable","show-pinned","focused","in-conversation","highlight","replies","in-profile","profile-user-id","toggle-thread-display","thread-display-status","show-thread-recursively","total-reply-count","total-reply-depth","status-content-properties","set-status-content-property","toggle-status-content-property","onGoto","onToggleExpanded"]))),128))])])):E("",!0)],2))],6))}const am=ge(Zwe,[["render",cSe]]);et.add(za);const f8=e=>({friends:"nav.home_timeline",bookmarks:e?"nav.all_bookmarks":"nav.bookmarks",dms:"nav.dms","public-timeline":"nav.public_tl","public-external-timeline":"nav.twkn",quotes:"nav.quotes",bubble:"nav.bubble"}),uSe={components:{Popover:Jn,NavigationEntry:rm,ListsMenuContent:AO,BookmarkFoldersMenuContent:TO},data(){return{isOpen:!1}}
691,created(){f8(this.bookmarkFolders)[this.$route.name]&&Xe().setLastTimeline(this.$route.name)},computed:{useListsMenu(){return this.$route.name==="lists-timeline"},useBookmarkFoldersMenu(){const e=this.$route.name;return this.bookmarkFolders&&(e==="bookmark-folder"||e==="bookmarks")},...mn({currentUser:e=>e.users.currentUser,privateMode:e=>e.instance.private,federating:e=>e.instance.federating,bookmarkFolders:e=>e.instance.pleromaBookmarkFoldersAvailable,bubbleTimeline:e=>e.instance.localBubbleInstances.length>0}),timelinesList(){return nd(Object.entries(Dl).map(([e,t])=>({...t,name:e})),{hasChats:this.pleromaChatMessagesAvailable,isFederating:this.federating,isPrivate:this.privateMode,currentUser:this.currentUser,supportsBookmarkFolders:this.bookmarkFolders,supportsBubbleTimeline:this.bubbleTimeline})}},methods:{openMenu(){setTimeout(()=>{this.isOpen=!0},25)},blockOpen(e){this.isOpen||e.stopPropagation()},timelineName(){const e=this.$route.name;if(e==="tag-timeline")return"#"+this.$route.params.tag;if(e==="lists-timeline")return Fn().findListTitle(this.$route.params.id);if(e==="bookmark-folder")return no().findBookmarkFolderName(this.$route.params.id);const t=f8(this.bookmarkFolders)[this.$route.name];return t?this.$t(t):e}}},dSe={key:2},fSe={class:"button-unstyled timeline-menu-title"},hSe={class:"title timeline-title"};function pSe(e,t,n,s,r,o){const i=O("ListsMenuContent"),a=O("BookmarkFoldersMenuContent"),c=O("NavigationEntry"),u=O("FAIcon"),f=O("Popover");return p(),x(f,{trigger:"click",class:he(["TimelineMenu",{open:e.isOpen}]),"bound-to":{x:"container"},"bound-to-selector":".Timeline","popover-class":"timeline-menu-popover popover-default",onShow:e.openMenu,onClose:t[1]||(t[1]=()=>e.isOpen=!1)},{content:X(()=>[e.useListsMenu?(p(),x(i,{key:0,"show-pin":!1,class:"timelines"})):e.useBookmarkFoldersMenu?(p(),x(a,{key:1,class:"timelines"})):(p(),b("ul",dSe,[(p(!0),b(Se,null,We(e.timelinesList,h=>(p(),x(c,{key:h.name,"show-pin":!1,item:h},null,8,["item"]))),128))]))]),trigger:X(()=>[g("span",fSe,[g("h1",hSe,w(e.timelineName()),1),g("span",null,[T(u,{size:"sm",icon:"chevron-down"})]),g("span",{class:"click-blocker",onClick:t[0]||(t[0]=(...h)=>e.blockOpen&&e.blockOpen(...h))})])]),_:1},8,["class","onShow"])}const mSe=ge(uSe,[["render",pSe]]),gSe={props:{fast:{type:Boolean,required:!1,default:!1}},methods:{scrollToTop(){const e=this.fast?"instant":"smooth";window.scrollTo({top:0,behavior:e})}}},vSe={class:"rightside-button scroll-to-top"},bSe=["title"];function ySe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("FALayers");return p(),b("div",vSe,[g("button",{class:"button-unstyled scroll-to-top-button",type:"button",title:e.$t("general.scroll_to_top"),onClick:t[0]||(t[0]=(...c)=>e.scrollToTop&&e.scrollToTop(...c))},[T(a,{class:"fa-scale-110 fa-old-padding-layer"},{default:X(()=>[T(i,{icon:"arrow-up"}),T(i,{icon:"minus",transform:"up-7"})]),_:1})],8,bSe)])}const _Se=ge(gSe,[["render",ySe]]);et.add(Zs,n2,gd,o2,RZ,Rp);const wSe={props:["timeline","timelineName","title","userId","listId","statusId","bookmarkFolderId","tag","embedded","count","pinnedStatusIds","inProfile","footerSlipgate"],data(){return{showScrollTop:!1,paused:!1,unfocused:!1,bottomedOut:!1,virtualScrollIndex:0,blockingClicks:!1}},components:{Status:ea,ScrollTopButton:_Se,Conversation:am,TimelineMenu:mSe,QuickFilterSettings:sw,QuickViewSettings:BO},computed:{filteredVisibleStatuses(){return this.timeline.visibleStatuses.filter(e=>this.timelineName!=="user"||e.id>=this.timeline.minId&&e.id<=this.timeline.maxId)},filteredPinnedStatusIds(){return(this.pinnedStatusIds||[]).filter(e=>this.timeline.statusesObject[e])},newStatusCount(){return this.timeline.newStatusCount},showLoadButton(){return this.timeline.newStatusCount>0||this.timeline.flushMarker!==0},loadButtonString(){return this.timeline.flushMarker!==0?this.$t("timeline.reload"):`${this.$t("timeline.show_new")} (${this.newStatusCount})`},mobileLoadButtonString(){return this.timeline.flushMarker!==0?"+":this.newStatusCount>99?"∞":this.newStatusCount},classes(){let e=this.embedded?["-embedded"]:["panel","panel-default"];return this.blockingClicks&&(e=e.concat(["-blocked","_misclick-prevention"])),{root:e,header:["timeline-heading"].concat(this.embedded?["panel-body"]:["panel-heading","-sticky"]),body:["timeline-body"].concat(this.embedded?["panel-body"]:["panel-body"]),footer:["timeline-footer"].concat(this.embedded?["panel-body"]:["panel-footer"])}},pinnedStatusIdsObject(){return Z.keyBy(this.pinnedStatusIds)},statusesToDisplay(){const e=this.timeline.visibleStatuses.length,t=Math.ceil(Math.max(3,window.innerHeight/80)),n=this.virtualScrollIndex-this.filteredPinnedStatusIds.length,s=Math.max(0,n-t),r=Math.min(e,n+t);return this.timeline.visibleStatuses.slice(s,r).map(o=>o.id)},virtualScrollingEnabled(){return this.$store.getters.mergedConfig.virtualScrolling},...sn(Xe,{mobileLayout:e=>e.layoutType==="mobile"})},created(){const e=this.$store,t=e.state.users.currentUser.credentials,n=this.timeline.visibleStatuses.length===0;if(window.addEventListener("scroll",this.handleScroll),e.state.api.fetchers[this.timelineName])return!1;Eh.fetchAndUpdate({store:e,credentials:t,timeline:this.timelineName,showImmediately:n,userId:this.userId,listId:this.listId,statusId:this.statusId,bookmarkFolderId:this.bookmarkFolderId,tag:this.tag})},mounted(){typeof document.hidden<"u"&&(document.addEventListener("visibilitychange",this.handleVisibilityChange,!1),this.unfocused=document.hidden),window.addEventListener("keydown",this.handleShortKey),setTimeout(this.determineVisibleStatuses,250)},unmounted(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("keydown",this.handleShortKey),typeof document.hidden<"u"&&document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1),this.$store.commit("setLoading",{timeline:this.timelineName,value:!1})},methods:{stopBlockingClicks:Z.debounce(function(){this.blockingClicks=!1},1e3),blockClicksTemporarily(){this.blockingClicks||(this.blockingClicks=!0),this.stopBlockingClicks()},handleShortKey(e){["textarea","input"].includes(e.target.tagName.toLowerCase())||e.key==="."&&this.showNewStatuses()},showNewStatuses(){this.timeline.flushMarker!==0?(this.$store.commit("clearTimeline",{timeline:this.timelineName,excludeUserId:!0}),this.$store.commit("queueFlush",{timeline:this.timelineName,id:0}),this.timelineName==="user"&&this.$store.dispatch("fetchPinnedStatuses",this.userId),this.fetchOlderStatuses()):(this.blockClicksTemporarily(),this.$store.commit("showNewStatuses",{timeline:this.timelineName}),this.paused=!1),window.scrollTo({top:0})},fetchOlderStatuses:Z.throttle(function(){const e=this.$store,t=e.state.users.currentUser.credentials;e.commit("setLoading",{timeline:this.timelineName,value:!0}),Eh.fetchAndUpdate({store:e,credentials:t,timeline:this.timelineName,older:!0,showImmediately:!0,userId:this.userId,listId:this.listId,statusId:this.statusId,bookmarkFolderId:this.bookmarkFolderId,tag:this.tag}).then(({statuses:n})=>{n&&n.length===0&&(this.bottomedOut=!0)}).finally(()=>e.commit("setLoading",{timeline:this.timelineName,value:!1}))},1e3,void 0),determineVisibleStatuses(){if(!this.$refs.timeline||!this.virtualScrollingEnabled)return;const e=this.$refs.timeline.children,t=Math.max(0,Math.min(this.virtualScrollIndex,e.length-1));if(e.length===0)return;const n=Math.max(document.body.offsetHeight,window.pageYOffset),s=window.pageYOffset+window.innerHeight*.5;let r=Math.floor(e.length*(s/n)),o=e[r].getBoundingClientRect().y;const i=e[t].getBoundingClientRect().y;for(Math.abs(o)>i&&(r=t,o=i);o<-20&&r<e.length-1;)o+=e[r].offsetHeight,r++;for(;o>window.innerHeight+100&&r>0;)r--,o-=e[r].offsetHeight;this.virtualScrollIndex=r},scrollLoad(){const e=document.body.getBoundingClientRect(),t=Math.max(e.height,-e.y);this.timeline.loading===!1&&this.$el.offsetHeight>0&&window.innerHeight+window.pageYOffset>=t-750&&this.fetchOlderStatuses()},handleScroll:Z.throttle(function(e){this.determineVisibleStatuses(),this.scrollLoad(e)},200),handleVisibilityChange(){this.unfocused=document.hidden}},watch:{newStatusCount(e){if(this.$store.getters.mergedConfig.streaming&&e>0){const t=document.documentElement;(window.pageYOffset||t.scrollTop)-(t.clientTop||0)<15&&!this.paused&&!(this.unfocused&&this.$store.getters.mergedConfig.pauseOnUnfocused)?this.showNewStatuses():this.paused=!0}}}},SSe={key:0,class:"rightside-button"},kSe=["title"],$Se={class:"badge -counter"},CSe=["title"],TSe={ref:"timeline",class:"timeline",role:"feed"},ASe={key:0,class:"new-status-notification text-center faint"},ESe={key:1,class:"new-status-notification text-center faint"},ISe={class:"new-status-notification text-center"},PSe={key:3,class:"new-status-notification text-center"},LSe={key:0};function OSe(e,t,n,s,r,o){const i=O("TimelineMenu"),a=O("ScrollTopButton"),c=O("FAIcon"),u=O("QuickFilterSettings"),f=O("QuickViewSettings"),h=O("conversation");return p(),b("div",{class:he(["Timeline",e.classes.root])},[e.embedded?E("",!0):(p(),b("div",{key:0,class:he(e.classes.header)},[e.embedded?E("",!0):(p(),x(i,{key:0,"timeline-name":e.timelineName},null,8,["timeline-name"])),T(a),e.mobileLayout?(p(),b(Se,{key:1},[e.showLoadButton?(p(),b("div",SSe,[g("button",{class:"button-unstyled loadmore-button",title:e.loadButtonString,onClick:t[0]||(t[0]=Te((...v)=>e.showNewStatuses&&e.showNewStatuses(...v),["prevent"]))},[T(c,{"fixed-width":"",icon:"circle-plus"}),g("div",$Se,w(e.mobileLoadButtonString),1)],8,kSe)])):(p(),b("div",{key:1,class:"loadmore-text faint veryfaint rightside-icon",title:e.$t("timeline.up_to_date"),"aria-disabled":!0,onClick:t[1]||(t[1]=Te(()=>{},["prevent"]))},[T(c,{"fixed-width":"",icon:"check"})],8,CSe))],64)):(p(),b(Se,{key:2},[e.showLoadButton?(p(),b("button",{key:0,class:"button-default loadmore-button",onClick:t[2]||(t[2]=Te((...v)=>e.showNewStatuses&&e.showNewStatuses(...v),["prevent"]))},w(e.loadButtonString),1)):(p(),b("div",{key:1,class:"loadmore-text faint",onClick:t[3]||(t[3]=Te(()=>{},["prevent"]))},w(e.$t("timeline.up_to_date")),1))],64)),e.mobileLayout?E("",!0):(p(),x(u,{key:3,class:"rightside-button"})),T(f,{class:"rightside-button"})],2)),g("div",{class:he(e.classes.body)},[g("div",TSe,[(p(!0),b(Se,null,We(e.filteredPinnedStatusIds,v=>(p(),x(h,{key:v+"-pinned",role:"listitem",class:"status-fadein","status-id":v,collapsable:!0,"pinned-status-ids-object":e.pinnedStatusIdsObject,"in-profile":e.inProfile,"profile-user-id":e.userId},null,8,["status-id","pinned-status-ids-object","in-profile","profile-user-id"]))),128)),(p(!0),b(Se,null,We(e.filteredVisibleStatuses,v=>(p(),x(h,{key:v.id,role:"listitem",class:"status-fadein","status-id":v.id,collapsable:!0,"in-profile":e.inProfile,"profile-user-id":e.userId,"virtual-hidden":e.virtualScrollingEnabled&&!e.statusesToDisplay.includes(v.id)},null,8,["status-id","in-profile","profile-user-id","virtual-hidden"]))),128))],512)],2),g("div",{class:he(e.classes.footer)},[(p(),x(Yn,{to:e.footerSlipgate,disabled:!e.embedded||!e.footerSlipgate},[e.count===0?(p(),b("div",ASe,w(e.$t("timeline.no_statuses")),1)):e.bottomedOut?(p(),b("div",ESe,w(e.$t("timeline.no_more_statuses")),1)):e.timeline.loading?(p(),b("div",PSe,[T(c,{icon:"circle-notch",spin:"",size:"lg"})])):(p(),b("button",{key:2,class:"button-unstyled -link",onClick:t[4]||(t[4]=Te(v=>e.fetchOlderStatuses(),["prevent"]))},[g("div",ISe,w(e.$t("timeline.load_older")),1)]))],8,["to","disabled"])),e.embedded&&e.footerSlipgate?(p(),b("span",LSe)):E("",!0)],2)],2)}const lo=ge(wSe,[["render",OSe]]),RSe={components:{Timeline:lo}
691,computed:{timeline(){return this.$store.state.statuses.timelines.public}},created(){this.$store.dispatch("startFetchingTimeline",{timeline:"public"})},unmounted(){this.$store.dispatch("stopFetchingTimeline","public")}};function MSe(e,t,n,s,r,o){const i=O("Timeline");return p(),x(i,{title:e.$t("nav.public_tl"),timeline:e.timeline,"timeline-name":"public"},null,8,["title","timeline"])}const NSe=ge(RSe,[["render",MSe]]),FSe={components:{Timeline:lo},computed:{timeline(){return this.$store.state.statuses.timelines.bubble}},created(){this.$store.dispatch("startFetchingTimeline",{timeline:"bubble"})},unmounted(){this.$store.dispatch("stopFetchingTimeline","bubble")}};function DSe(e,t,n,s,r,o){const i=O("Timeline");return p(),x(i,{title:e.$t("nav.bubble"),timeline:e.timeline,"timeline-name":"bubble"},null,8,["title","timeline"])}const USe=ge(FSe,[["render",DSe]]),jSe={components:{Timeline:lo},computed:{timeline(){return this.$store.state.statuses.timelines.publicAndExternal}},created(){this.$store.dispatch("startFetchingTimeline",{timeline:"publicAndExternal"})},unmounted(){this.$store.dispatch("stopFetchingTimeline","publicAndExternal")}};function BSe(e,t,n,s,r,o){const i=O("Timeline");return p(),x(i,{title:e.$t("nav.twkn"),timeline:e.timeline,"timeline-name":"publicAndExternal"},null,8,["title","timeline"])}const zSe=ge(jSe,[["render",BSe]]),qSe={components:{Timeline:lo},computed:{timeline(){return this.$store.state.statuses.timelines.friends}}};function HSe(e,t,n,s,r,o){const i=O("Timeline");return p(),x(i,{title:e.$t("nav.timeline"),timeline:e.timeline,"timeline-name":"friends"},null,8,["title","timeline"])}const VSe=ge(qSe,[["render",HSe]]),WSe={created(){this.$store.commit("clearTimeline",{timeline:"tag"}),this.$store.dispatch("startFetchingTimeline",{timeline:"tag",tag:this.tag})},components:{Timeline:lo},computed:{tag(){return this.$route.params.tag},timeline(){return this.$store.state.statuses.timelines.tag}},watch:{tag(){this.$store.commit("clearTimeline",{timeline:"tag"}),this.$store.dispatch("startFetchingTimeline",{timeline:"tag",tag:this.tag})}},unmounted(){this.$store.dispatch("stopFetchingTimeline","tag")}};function GSe(e,t,n,s,r,o){const i=O("Timeline");return p(),x(i,{title:e.tag,timeline:e.timeline,"timeline-name":"tag",tag:e.tag},null,8,["title","timeline","tag"])}const KSe=ge(WSe,[["render",GSe]]),xSe={created(){this.$store.commit("clearTimeline",{timeline:"bookmarks"}),this.$store.dispatch("startFetchingTimeline",{timeline:"bookmarks",bookmarkFolderId:this.folderId||null})},components:{Timeline:lo},computed:{folderId(){return this.$route.params.id},timeline(){return this.$store.state.statuses.timelines.bookmarks}},watch:{folderId(){this.$store.commit("clearTimeline",{timeline:"bookmarks"}),this.$store.dispatch("stopFetchingTimeline","bookmarks"),this.$store.dispatch("startFetchingTimeline",{timeline:"bookmarks",bookmarkFolderId:this.folderId||null})}},unmounted(){this.$store.commit("clearTimeline",{timeline:"bookmarks"}),this.$store.dispatch("stopFetchingTimeline","bookmarks")}};function YSe(e,t,n,s,r,o){const i=O("Timeline");return p(),x(i,{title:e.$t("nav.bookmarks"),timeline:e.timeline,"timeline-name":"bookmarks","bookmark-folder-id":e.folderId},null,8,["title","timeline","bookmark-folder-id"])}const h8=ge(xSe,[["render",YSe]]),XSe={components:{Conversation:am},computed:{statusId(){return this.$route.params.id}}};function JSe(e,t,n,s,r,o){const i=O("conversation");return p(),x(i,{collapsable:!1,"is-page":"true","status-id":e.statusId},null,8,["status-id"])}const ZSe=ge(XSe,[["render",JSe]]),p8=e=>e.findIndex(t=>t.props),lm={name:"TabSwitcher",props:{renderOnlyFocused:{required:!1,type:Boolean,default:!1},onSwitch:{required:!1,type:Function,default:void 0},activeTab:{required:!1,type:String,default:void 0},scrollableTabs:{required:!1,type:Boolean,default:!1},bodyScrollLock:{required:!1,type:Boolean,default:!1}},data(){return{active:p8(this.slots())}},computed:{activeIndex(){return this.activeTab?this.slots().findIndex(e=>e&&e.props&&this.activeTab===e.props.key):this.active},isActive(){return e=>{const t=n=>n.props&&n.props["data-tab-name"]===e;return this.$slots.default().findIndex(t)===this.activeIndex}}},beforeUpdate(){this.slots()[this.active].props||(this.active=p8(this.slots())
691)},methods:{clickTab(e){return t=>{t.preventDefault(),this.setTab(e)}},slots(){return this.$slots.default()[0].type===Se?this.$slots.default()[0].children:this.$slots.default()},setTab(e){typeof this.onSwitch=="function"&&this.onSwitch.call(null,this.slots()[e].key),this.active=e,this.scrollableTabs&&(this.$refs.contents.scrollTop=0)}},render(){const e=this.slots().map((n,s)=>{const r=n.props;if(!r)return;const o=["tab"],i=["tab-wrapper"];return this.activeIndex===s&&(o.push("active"),i.push("active")),r.image?T("div",{class:i.join(" ")},[T("button",{disabled:r.disabled,onClick:this.clickTab(s),class:o.join(" "),type:"button",role:"tab"},[T("img",{src:r.image,title:r["image-tooltip"]},null),r.label?"":r.label])]):T("div",{class:i.join(" ")},[T("button",{disabled:r.disabled,onClick:this.clickTab(s),class:o.join(" "),type:"button",role:"tab"},[r.icon?T(j2,{class:"tab-icon",size:"2x","fixed-width":!0,icon:r.icon},null):"",T("span",{class:"text"},[r.label])])])}),t=this.slots().map((n,s)=>{const r=n.props;if(!r)return;const o=this.activeIndex===s,i=[o?"active":"hidden"];(r.fullHeight||r["full-height"])&&i.push("-full-height"),(r.fullWidth||r["full-width"])&&i.push("-full-width");let a=n.props["delay-render"];a&&o&&(n.props["delay-render"]=!1,a=!1);const c=!a&&(!this.renderOnlyFocused||o)?n:"";return T("div",{class:i},[c])});return T("div",{class:"tab-switcher top-tabs",ref:"root"},[T("div",{class:"tabs",role:"tablist",ref:"nav"},[e]),at(T("div",{role:"tabpanel",class:"contents"+(this.scrollableTabs?" scrollable-tabs":""),ref:"content"},[t]),[[sc("body-scroll-lock"),this.bodyScrollLock]])])}},m8={mentions:["mention"],statuses:["status"],"likes+repeats":["repeat","like"],follows:["follow"],reactions:["pleroma:emoji_reaction"],reports:["pleroma:report"],moves:["move"]},QSe={data(){return{allowFollowingMove:this.$store.state.users.currentUser.allow_following_move,filterMode:m8.mentions,canSeeReports:this.$store.state.users.currentUser.privileges.includes("reports_manage_reports")}},methods:{onModeSwitch(e){this.filterMode=m8[e]}},components:{Notifications:im,TabSwitcher:lm}},e3e={class:"panel panel-default"},t3e={class:"panel-heading"},n3e={class:"title"},s3e=["label"],r3e=["label"],o3e=["label"],i3e=["label"],a3e=["label"],l3e=["label"],c3e=["label"];function u3e(e,t,n,s,r,o){const i=O("tab-switcher"),a=O("Notifications");
691return p(),b("div",e3e,[g("div",t3e,[g("h1",n3e,w(e.$t("nav.interactions")),1)]),T(i,{ref:"tabSwitcher","on-switch":e.onModeSwitch},{default:X(()=>[g("span",{key:"statuses",label:e.$t("nav.mentions")},null,8,s3e),g("span",{key:"statuses",label:e.$t("interactions.statuses")},null,8,r3e),g("span",{key:"likes+repeats",label:e.$t("interactions.favs_repeats")},null,8,o3e),g("span",{key:"follows",label:e.$t("interactions.follows")},null,8,i3e),g("span",{key:"reactions",label:e.$t("interactions.emoji_reactions")},null,8,a3e),e.canSeeReports?(p(),b("span",{key:"reports",label:e.$t("interactions.reports")},null,8,l3e)):E("",!0),e.allowFollowingMove?E("",!0):(p(),b("span",{key:"moves",label:e.$t("interactions.moves")},null,8,c3e))]),_:1},8,["on-switch"]),T(a,{ref:"notifications","no-heading":!0,"no-extra":!0,"minimal-mode":!0,"filter-mode":e.filterMode},null,8,["filter-mode"])])}const d3e=ge(QSe,[["render",u3e]]),f3e={computed:{timeline(){return this.$store.state.statuses.timelines.dms}},components:{Timeline:lo}};function h3e(e,t,n,s,r,o){const i=O("Timeline");return p(),x(i,{title:e.$t("nav.dms"),timeline:e.timeline,"timeline-name":"dms"},null,8,["title","timeline"])}const p3e=ge(f3e,[["render",h3e]]),m3e={name:"ChatTitle",components:{UserAvatar:er,RichContent:Mr,UserPopover:gr(()=>Ve(()=>Promise.resolve().then(()=>tw),void 0))},props:["user","withAvatar"],computed:{title(){return this.user?this.user.screen_name_ui:""},htmlTitle(){return this.user?this.user.name_html:""}}},g3e=["title"];function v3e(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("UserPopover"),c=O("RichContent");return p(),b("div",{class:"chat-title",title:e.title},[e.withAvatar&&e.user?(p(),x(a,{key:0,class:"avatar-container","user-id":e.user.id},{default:X(()=>[T(i,{class:"titlebar-avatar",user:e.user},null,8,["user"])]),_:1},8,["user-id"])):E("",!0),e.user?(p(),x(c,{key:1,class:"username",title:"@"+(e.user&&e.user.screen_name_ui),html:e.htmlTitle,emoji:e.user.emoji||[],"is-local":e.user.is_local},null,8,["title","html","emoji","is-local"])):E("",!0)],8,g3e)}const zO=ge(m3e,[["render",v3e]]),b3e={name:"ChatListItem",props:["chat"],components:{UserAvatar:er,AvatarList:DO,Timeago:_d,ChatTitle:zO,StatusBody:Ka},computed:{...mn({currentUser:e=>e.users.currentUser}),attachmentInfo(){if(this.chat.lastMessage.attachments.length===0)return;const e=this.chat.lastMessage.attachments.map(t=>Fa.fileType(t.mimetype));return e.includes("video")?this.$t("file_type.video"):e.includes("audio")?this.$t("file_type.audio"):e.includes("image")?this.$t("file_type.image"):this.$t("file_type.file")},messageForStatusContent(){const e=this.chat.lastMessage,t=e?e.emojis:[],n=e&&e.account_id===this.currentUser.id,s=e?this.attachmentInfo||e.content:"",r=n?`<i>${this.$t("chats.you")}</i> ${s}`:s;return{summary:"",emojis:t,raw_html:r,text:r,attachments:[]}}},methods:{openChat(){this.chat.id&&this.$router.push({name:"chat",params:{username:this.currentUser.screen_name,recipient_id:this.chat.account.id}})}}},y3e={class:"chat-list-item-left"},_3e={class:"chat-list-item-center"},w3e={class:"heading"},S3e={key:0,class:"name-and-account-name"},k3e={class:"time-wrapper"},$3e={class:"chat-preview"},C3e={key:0,class:"badge -notification unread-chat-count"};function T3e(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("ChatTitle"),c=O("Timeago"),u=O("StatusBody");return p(),b("div",{class:"chat-list-item",onClickCapture:t[0]||(t[0]=Te((...f)=>e.openChat&&e.openChat(...f),["prevent"]))},[g("div",y3e,[T(i,{user:e.chat.account,height:"48px",width:"48px"},null,8,["user"])]),g("div",_3e,[g("div",w3e,[e.chat.account?(p(),b("span",S3e,[T(a,{user:e.chat.account},null,8,["user"])])):E("",!0),t[1]||(t[1]=g("span",{class:"heading-right"},null,-1)),g("div",k3e,[T(c,{time:e.chat.updated_at,"auto-update":60},null,8,["time"])])]),g("div",$3e,[T(u,{class:"chat-preview-body",status:e.messageForStatusContent,"single-line":!0},null,8,["status"]),e.chat.unread>0?(p(),b("div",C3e,w(e.chat.unread),1)):E("",!0)])])],32)}const A3e=ge(b3e,[["render",T3e]]),E3e={props:["user"],components:{UserPopover:om,UserAvatar:er,RichContent:Mr,UserLink:Sd},methods:{userProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)}}},I3e={class:"basic-user-card"},P3e={class:"basic-user-card-collapsed-content"},L3e=["title"];function O3e(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("UserPopover"),c=O("router-link"),u=O("RichContent"),f=O("user-link");return p(),b("div",I3e,[T(c,{to:e.userProfileLink(e.user),onClick:t[1]||(t[1]=Te(()=>{},["prevent"]))},{default:X(()=>[T(a,{"user-id":e.user.id,"overlay-centers":!0,"overlay-centers-selector":".avatar"},{default:X(()=>[T(i,{class:"user-avatar avatar",user:e.user,onClick:t[0]||(t[0]=Te(()=>{},["prevent"]))},null,8,["user"])]),_:1},8,["user-id"])]),_:1},8,["to"]),g("div",P3e,[g("div",{title:e.user.name,class:"basic-user-card-user-name"},[T(u,{class:"basic-user-card-user-name-value",html:e.user.name,emoji:e.user.emoji},null,8,["html","emoji"])],8,L3e),g("div",null,[T(f,{class:"basic-user-card-screen-name",user:e.user},null,8,["user"])]),Ot(e.$slots,"default")])])}const Td=ge(E3e,[["render",O3e]]);et.add(Ba,qa);const R3e={components:{BasicUserCard:Td,UserAvatar:er},data(){return{suggestions:[],userIds:[],loading:!1,query:""}},async created(){const{chats:e}=await this.backendInteractor.chats();e.forEach(t=>this.suggestions.push(t.account))},computed:{users(){return this.userIds.map(e=>this.findUser(e))},availableUsers(){return this.query.length!==0?this.users:this.suggestions},...mn({currentUser:e=>e.users.currentUser,backendInteractor:e=>e.api.backendInteractor}
691),...bn(["findUser"])},methods:{goBack(){this.$emit("cancel")},goToChat(e){this.$router.push({name:"chat",params:{recipient_id:e.id}})},onInput(){this.search(this.query)},addUser(e){this.selectedUserIds.push(e.id),this.query=""},removeUser(e){this.selectedUserIds=this.selectedUserIds.filter(t=>t!==e)},search(e){if(!e){this.loading=!1;return}this.loading=!0,this.userIds=[],this.$store.dispatch("search",{q:e,resolve:!0,type:"accounts"}).then(t=>{this.loading=!1,this.userIds=t.accounts.map(n=>n.id)})}}},M3e={class:"panel-default panel chat-new"},N3e={ref:"header",class:"panel-heading"},F3e={class:"panel-body"},D3e={class:"input-wrap"},U3e={class:"input-search"},j3e={class:"member-list"},B3e=["onClickCapture"];function z3e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("BasicUserCard");return p(),b("div",M3e,[g("div",N3e,[g("button",{class:"button-unstyled go-back-button",onClick:t[0]||(t[0]=(...c)=>e.goBack&&e.goBack(...c))},[T(i,{size:"lg",icon:"chevron-left"})])],512),g("div",F3e,[g("div",D3e,[g("div",U3e,[T(i,{class:"search-icon fa-scale-110 fa-old-padding",icon:"search"})]),at(g("input",{ref:"search","onUpdate:modelValue":t[1]||(t[1]=c=>e.query=c),class:"input",placeholder:"Search people",onInput:t[2]||(t[2]=(...c)=>e.onInput&&e.onInput(...c))},null,544),[[Nt,e.query]])]),g("div",j3e,[(p(!0),b(Se,null,We(e.availableUsers,c=>(p(),b("div",{key:c.id,class:"list-item",onClickCapture:Te(u=>e.goToChat(c),["prevent"])},[T(a,{user:c},null,8,["user"])],40,B3e))),128))])])])}const q3e=ge(R3e,[["render",z3e]]),H3e={components:{ChatListItem:A3e,List:Cd,ChatNew:q3e},computed:{...mn({currentUser:e=>e.users.currentUser}),...bn(["sortedChatList"])},data(){return{isNew:!1}},created(){this.$store.dispatch("fetchChats",{latest:!0})},methods:{cancelNewChat(){this.isNew=!1,this.$store.dispatch("fetchChats",{latest:!0})},newChat(){this.isNew=!0}}},V3e={key:0},W3e={key:1,class:"chat-list panel panel-default"},G3e={class:"panel-heading -sticky"},K3e={class:"title"},x3e={class:"panel-body"},Y3e={key:0,class:"timeline"},X3e={key:1,class:"empty-chat-list-alert"};function J3e(e,t,n,s,r,o){const i=O("ChatNew"),a=O("ChatListItem"),c=O("List");return e.isNew?(p(),b("div",V3e,[T(i,{onCancel:e.cancelNewChat},null,8,["onCancel"])])):(p(),b("div",W3e,[g("div",G3e,[g("h1",K3e,w(e.$t("chats.chats")),1),g("button",{class:"button-default",onClick:t[0]||(t[0]=(...u)=>e.newChat&&e.newChat(...u))},w(e.$t("chats.new")),1)]),g("div",x3e,[e.sortedChatList.length>0?(p(),b("div",Y3e,[T(c,{items:e.sortedChatList},{item:X(({item:u})=>[(p(),x(a,{key:u.id,compact:!1,chat:u},null,8,["chat"]))]),_:1},8,["items"])])):(p(),b("div",X3e,[g("span",null,w(e.$t("chats.empty_chat_list_placeholder")),1)]))])]))}const Z3e=ge(H3e,[["render",J3e]]),Q3e={name:"Timeago",props:["date"],computed:{displayDate(){const e=new Date;return e.setHours(0,0,0,0),this.date.getTime()===e.getTime()?this.$t("display_date.today"):this.date.toLocaleDateString(Tr.internalToBrowserLocale(this.$i18n.locale),{day:"numeric",month:"long"})}}};function eke(e,t,n,s,r,o){return p(),b("time",null,w(o.displayDate),1)}const tke=ge(Q3e,[["render",eke]]);et.add(Xn,vd);const nke={name:"ChatMessage",props:["author","edited","noHeading","chatViewItem","hoveredMessageChain"],emits:["hover"],components:{Popover:Jn,Attachment:Qp,StatusContent:Ka,UserAvatar:er,Gallery:em,LinkPreview:sO,ChatMessageDate:tke,UserPopover:gr(()=>Ve(()=>Promise.resolve().then(()=>tw),void 0))},computed:{createdAt(){return this.chatViewItem.data.created_at.toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit",hour12:!1})},isCurrentUser(){return this.message.account_id===this.currentUser.id},message(){return this.chatViewItem.data},isMessage(){return this.chatViewItem.type==="message"},messageForStatusContent(){return{summary:"",emojis:this.message.emojis,raw_html:this.message.content||"",text:this.message.content||"",attachments:this.message.attachments}},hasAttachment(){return this.message.attachments.length>0},...sn(Xe,{betterShadow:e=>e.browserSupport.cssFilter}),...mn({currentUser:e=>e.users.currentUser,restrictedNicknames:e=>e.instance.restrictedNicknames}),popoverMarginStyle(){return this.isCurrentUser?{}:{left:50}},...bn(["mergedConfig","findUser"])},data(){return{hovered:!1,menuOpened:!1}},methods:{onHover(e){this.$emit("hover",{isHovered:e,messageChainId:this.chatViewItem.messageChainId})},async deleteMessage(){window.confirm(this.$t("chats.delete_confirm"))&&await this.$store.dispatch("deleteChatMessage",{messageId:this.chatViewItem.data.id,chatId:this.chatViewItem.data.chat_id}),this.hovered=!1,this.menuOpened=!1}}},ske={key:0,class:"avatar-wrapper"},rke={class:"chat-message-inner"},oke={class:"dropdown-menu"},ike={class:"menu-item dropdown-item -icon"},ake=["title"],lke={class:"created-at"},cke={key:1,class:"chat-message-date-separator"};function uke(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("UserPopover"),c=O("FAIcon"),u=O("Popover"),f=O("StatusContent"),h=O("ChatMessageDate");return e.isMessage?(p(),b("div",{key:0,class:he(["chat-message-wrapper",{"hovered-message-chain":e.hoveredMessageChain}]),onMouseover:t[5]||(t[5]=v=>e.onHover(!0)),onMouseleave:t[6]||(t[6]=v=>e.onHover(!1))},[g("div",{class:he(["chat-message",[{outgoing:e.isCurrentUser,incoming:!e.isCurrentUser}]])},[e.isCurrentUser?E("",!0):(p(),b("div",ske,[e.chatViewItem.isHead?(p(),x(a,{key:0,"user-id":e.author.id},{default:X(()=>[T(i,{compact:!0,user:e.author},null,8,["user"])]),_:1},8,["user-id"])):E("",!0)])),g("div",rke,[g("div",{class:"status-body",style:hn({"min-width":e.message.attachment?"80%":""})},[g("div",{class:he(["media status",{"without-attachment":!e.hasAttachment,pending:e.chatViewItem.data.pending,error:e.chatViewItem.data.error}]),style:{position:"relative"},onMouseenter:t[3]||(t[3]=v=>e.hovered=!0),onMouseleave:t[4]||(t[4]=v=>e.hovered=!1)},[g("div",{class:he(["chat-message-menu",{visible:e.hovered||e.menuOpened}])}
691,[T(u,{trigger:"click",placement:"top","bound-to-selector":".chat-view-inner","bound-to":{x:"container"},margin:e.popoverMarginStyle,onShow:t[1]||(t[1]=v=>e.menuOpened=!0),onClose:t[2]||(t[2]=v=>e.menuOpened=!1)},{content:X(()=>[g("div",oke,[g("div",ike,[g("button",{class:"main-button",onClick:t[0]||(t[0]=(...v)=>e.deleteMessage&&e.deleteMessage(...v))},[T(c,{icon:"times"}),de(" "+w(e.$t("chats.delete")),1)])])])]),trigger:X(()=>[g("button",{class:"button-default menu-icon",title:e.$t("chats.more")},[T(c,{icon:"ellipsis-h"})],8,ake)]),_:1},8,["margin"])],2),T(f,{class:"message-content",status:e.messageForStatusContent,"full-content":!0},{footer:X(()=>[g("span",lke,w(e.createdAt),1)]),_:1},8,["status"])],34)],4)])],2)],34)):(p(),b("div",cke,[T(h,{date:e.chatViewItem.date},null,8,["date"])]))}const dke=ge(nke,[["render",uke]]),su=()=>({scrollTop:window.scrollY,scrollHeight:document.documentElement.scrollHeight,offsetHeight:window.innerHeight}),fke=(e,t)=>e.scrollTop+(t.scrollHeight-e.scrollHeight),hke=(e=0)=>{const t=window.scrollY+e;return document.documentElement.scrollHeight-window.innerHeight<=t},pke=()=>document.documentElement.scrollHeight>window.innerHeight;et.add(za,qa);const g8=10,v8=10,mke=100,gke=1500,zf=10,vke={components:{ChatMessage:dke,ChatTitle:zO,PostStatusForm:lc},data(){return{jumpToBottomButtonVisible:!1,hoveredMessageChainId:void 0,lastScrollPosition:{},scrollableContainerHeight:"100%",errorLoadingChat:!1,messageRetriers:{}}},created(){this.startFetching(),window.addEventListener("resize",this.handleResize)},mounted(){window.addEventListener("scroll",this.handleScroll),typeof document.hidden<"u"&&document.addEventListener("visibilitychange",this.handleVisibilityChange,!1),this.$nextTick(()=>{this.handleResize()})},unmounted(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize),typeof document.hidden<"u"&&document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1),this.$store.dispatch("clearCurrentChat")},computed:{recipient(){return this.currentChat&&this.currentChat.account},recipientId(){return this.$route.params.recipient_id},formPlaceholder(){return this.recipient?this.$t("chats.message_user",{nickname:this.recipient.screen_name_ui}):""},chatViewItems(){return Gr.getView(this.currentChatMessageService)},newMessageCount(){return this.currentChatMessageService&&this.currentChatMessageService.newMessageCount},streamingEnabled(){return this.mergedConfig.useStreamingApi&&this.mastoUserSocketStatus===Ks.JOINED},...bn(["currentChat","currentChatMessageService","findOpenedChatByRecipientId","mergedConfig"]),...sn(Xe,{mobileLayout:e=>e.layoutType==="mobile"}),...mn({backendInteractor:e=>e.api.backendInteractor,mastoUserSocketStatus:e=>e.api.mastoUserSocketStatus,currentUser:e=>e.users.currentUser})},watch:{chatViewItems(){const e=this.bottomedOut(g8);this.$nextTick(()=>{e&&this.scrollDown()})},$route:function(){this.startFetching()},mastoUserSocketStatus(e){e===Ks.JOINED&&this.fetchChat({isFirstFetch:!0})}},methods:{onMessageHover({isHovered:e,messageChainId:t}){this.hoveredMessageChainId=e?t:void 0},onFilesDropped(){this.$nextTick(()=>{this.handleResize()})},handleVisibilityChange(){this.$nextTick(()=>{!document.hidden&&this.bottomedOut(g8)&&this.scrollDown({forceRead:!0})})},handleResize(e={}){const{delayed:t=!1}=e;if(t){setTimeout(()=>{this.handleResize({...e,delayed:!1})},mke);return}this.$nextTick(()=>{const{offsetHeight:n=void 0}=su(),s=n-this.lastScrollPosition.offsetHeight;s!==0&&!this.bottomedOut()&&this.$nextTick(()=>{window.scrollBy({top:-Math.trunc(s)})}),this.lastScrollPosition=su()})},scrollDown(e={}){const{behavior:t="auto",forceRead:n=!1}=e;this.$nextTick(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:t})}),n&&this.readChat()},readChat(){if(!(this.currentChatMessageService&&this.currentChatMessageService.maxId)||document.hidden)return;const e=this.currentChatMessageService.maxId;this.$store.dispatch("readChat",{id:this.currentChat.id,lastReadId:e})},bottomedOut(e){return hke(e)},reachedTop(){return window.scrollY<=0},cullOlderCheck(){window.setTimeout(()=>{this.bottomedOut(v8)&&this.$store.dispatch("cullOlderMessages",this.currentChatMessageService.chatId)},5e3)},handleScroll:Fi.throttle(function(){this.lastScrollPosition=su(),this.currentChat&&(this.reachedTop()?this.fetchChat({maxId:this.currentChatMessageService.minId}):this.bottomedOut(v8)?(this.jumpToBottomButtonVisible=!1,this.cullOlderCheck(),this.newMessageCount>0&&window.setTimeout(()=>{this.$el&&this.readChat()},gke)):this.jumpToBottomButtonVisible=!0)},200),handleScrollUp(e){const t=su();window.scrollTo({top:fke(e,t)})},fetchChat({isFirstFetch:e=!1,fetchLatest:t=!1,maxId:n}){const s=this.currentChatMessageService;if(!s||t&&this.streamingEnabled)return;const r=s.chatId,o=!!n,i=t&&s.maxId;return this.backendInteractor.chatMessages({id:r,maxId:n,sinceId:i}).then(a=>{e&&Gr.clear(s);const c=su();this.$store.dispatch("addChatMessages",{chatId:r,messages:a}).then(()=>{this.$nextTick(()=>{o&&this.handleScrollUp(c),!pke()&&a.length>0&&this.fetchChat({maxId:this.currentChatMessageService.minId})})})})},async startFetching(){let e=this.findOpenedChatByRecipientId(this.recipientId);if(!e)try{e=await this.backendInteractor.getOrCreateChat({accountId:this.recipientId})}catch(t){console.error("Error creating or getting a chat",t),this.errorLoadingChat=!0}e&&(this.$nextTick(()=>{this.scrollDown({forceRead:!0})}),this.$store.dispatch("addOpenedChat",{chat:e}),this.doStartFetching())},doStartFetching(){this.$store.dispatch("startFetchingCurrentChat",{fetcher:()=>Ga(()=>this.fetchChat({fetchLatest:!0}),5e3)}),this.fetchChat({isFirstFetch:!0})},handleAttachmentPosting(){this.$nextTick(()=>{this.handleResize(),this.scrollDown({forceRead:!0})})},sendMessage({status:e,media:t,idempotencyKey:n}){const s={id:this.currentChat.id,content:e,idempotencyKey:n};t[0]&&(s.mediaId=t[0].id);const r=nte({attachments:t,chatId:this.currentChat.id,content:e,userId:this.currentUser.id,idempotencyKey:n});return this.$store.dispatch("addChatMessages",{chatId:this.currentChat.id,messages:[r]}).then(()=>{this.handleAttachmentPosting()}),this.doSendMessage({params:s,fakeMessage:r,retriesLeft:zf})},doSendMessage({params:e,fakeMessage:t,retriesLeft:n=zf}){if(!(n<=0))return this.backendInteractor.sendChatMessage(e).then(s=>(this.$store.dispatch("addChatMessages",{chatId:this.currentChat.id,updateMaxId:!1,messages:[{...s,fakeId:t.id}]}),s)).catch(s=>(console.error("Error sending message",s),this.$store.dispatch("handleMessageError",{chatId:this.currentChat.id,fakeId:t.id,isRetry:n!==zf}),(s.statusCode>=500&&s.statusCode<600||s.message==="Failed to fetch")&&(this.messageRetriers[t.id]=setTimeout(()=>{this.doSendMessage({params:e,fakeMessage:t,retriesLeft:n-1})},1e3*2**(zf-n))),{})),Promise.resolve(t)},goBack(){this.$router.push({name:"chats",params:{username:this.currentUser.screen_name}})}}},bke={class:"chat-view"},yke={class:"chat-view-inner"},_ke={ref:"inner",class:"panel-default panel chat-view-body"},wke={ref:"header",class:"panel-heading -sticky chat-view-heading"},Ske={class:"title text-center"},kke={key:1,class:"chat-loading-error"},$ke={class:"alert error"},Cke={ref:"footer",class:"panel-body footer"},Tke={key:0,class:"badge -notification unread-chat-count unread-message-count"};function Ake(e,t,n,s,r,o){const i=O("FAIcon"),a=O("ChatTitle"),c=O("ChatMessage"),u=O("PostStatusForm");return p(),b("div",bke,[g("div",yke,[g("div",_ke,[g("div",wke,[g("button",{class:"button-unstyled go-back-button",onClick:t[0]||(t[0]=(...f)=>e.goBack&&e.goBack(...f))},[T(i,{size:"lg",icon:"chevron-left"})]),g("div",Ske,[T(a,{user:e.recipient,"with-avatar":!0},null,8,["user"])])],512),g("div",{class:"chat-message-list message-list",style:hn({height:e.scrollableContainerHeight})},[e.errorLoadingChat?(p(),b("div",kke,[g("div",$ke,w(e.$t("chats.error_loading_chat")),1)])):(p(!0),b(Se,{key:0},We(e.chatViewItems,f=>(p(),x(c,{key:f.id,author:e.recipient,"chat-view-item":f,"hovered-message-chain":f.messageChainId===e.hoveredMessageChainId,onHover:e.onMessageHover},null,8,["author","chat-view-item","hovered-message-chain","onHover"]))),128))],4),g("div",Cke,[g("div",{class:he(["jump-to-bottom-button",{visible:e.jumpToBottomButtonVisible}]),onClick:t[1]||(t[1]=f=>e.scrollDown({behavior:"smooth"}))},[g("span",null,[T(i,{icon:"chevron-down"}),e.newMessageCount?(p(),b("div",Tke,w(e.newMessageCount),1)):E("",!0)])],2),T(u,{"disable-subject":!0,"disable-scope-selector":!0,"disable-notice":!0,"disable-lock-warning":!0,"disable-polls":!0,"disable-sensitivity-checkbox":!0,"disable-submit":e.errorLoadingChat||!e.currentChat,"disable-preview":!0,"disable-draft":!0,"optimistic-posting":!0,"post-handler":e.sendMessage,"submit-on-enter":!e.mobileLayout,"preserve-focus":!e.mobileLayout,"auto-focus":!e.mobileLayout,placeholder:e.formPlaceholder,"file-limit":1,"max-height":"160","emoji-picker-placement":"top",onResize:e.handleResize},null,8,["disable-submit","post-handler","submit-on-enter","preserve-focus","auto-focus","placeholder","onResize"])],512)],512)])])}
691const Eke=ge(vke,[["render",Ake]]),Ike={props:["user","relationship"],data(){return{inProgress:!1,showingConfirmRemoveFollower:!1}},components:{ConfirmModal:Nr},computed:{label(){return this.inProgress?this.$t("user_card.follow_progress"):this.$t("user_card.remove_follower")},shouldConfirmRemoveUserFromFollowers(){return this.$store.getters.mergedConfig.modalOnRemoveUserFromFollowers}},methods:{showConfirmRemoveUserFromFollowers(){this.showingConfirmRemoveFollower=!0},hideConfirmRemoveUserFromFollowers(){this.showingConfirmRemoveFollower=!1},onClick(){this.shouldConfirmRemoveUserFromFollowers?this.showConfirmRemoveUserFromFollowers():this.doRemoveUserFromFollowers()},doRemoveUserFromFollowers(){this.inProgress=!0,this.$store.dispatch("removeUserFromFollowers",this.relationship.id).then(()=>{this.inProgress=!1}),this.hideConfirmRemoveUserFromFollowers()}}},Pke=["disabled","title"],Lke=["textContent"];function Oke(e,t,n,s,r,o){const i=O("i18n-t"),a=O("confirm-modal");return p(),b("button",{class:he(["btn button-default follow-button",{toggled:e.inProgress}]),disabled:e.inProgress,title:e.$t("user_card.remove_follower"),onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c))},[de(w(e.label)+" ",1),(p(),x(Yn,{to:"#modal"},[e.showingConfirmRemoveFollower?(p(),x(a,{key:0,title:e.$t("user_card.remove_follower_confirm_title"),"confirm-text":e.$t("user_card.remove_follower_confirm_accept_button"),"cancel-text":e.$t("user_card.remove_follower_confirm_cancel_button"),onAccepted:e.doRemoveUserFromFollowers,onCancelled:e.hideConfirmRemoveUserFromFollowers},{default:X(()=>[T(i,{scope:"global",keypath:"user_card.remove_follower_confirm",tag:"span"},{user:X(()=>[g("span",{textContent:w(e.user.screen_name_ui)},null,8,Lke)]),_:1})]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))],10,Pke)}const Rke=ge(Ike,[["render",Oke]]),Mke={props:["user","noFollowsYou"],components:{BasicUserCard:Td,RemoteFollow:dO,FollowButton:pO,RemoveFollowerButton:Rke},computed:{isMe(){return this.$store.state.users.currentUser.id===this.user.id},loggedIn(){return this.$store.state.users.currentUser},relationship(){return this.$store.getters.relationship(this.user.id)}}},Nke={class:"follow-card-content-container"},Fke={key:0,class:"faint"},Dke={key:0,class:"follow-card-follow-button"};function Uke(e,t,n,s,r,o){const i=O("RemoteFollow"),a=O("FollowButton"),c=O("RemoveFollowerButton"),u=O("basic-user-card");return p(),x(u,{user:e.user},{default:X(()=>[g("div",Nke,[e.isMe||!e.noFollowsYou&&e.relationship.followed_by?(p(),b("span",Fke,w(e.isMe?e.$t("user_card.its_you"):e.$t("user_card.follows_you")),1)):E("",!0),e.loggedIn?e.isMe?E("",!0):(p(),b(Se,{key:2},[T(a,{relationship:e.relationship,"label-following":e.$t("user_card.follow_unfollow"),class:"follow-card-follow-button",user:e.user},null,8,["relationship","label-following","user"]),e.noFollowsYou&&e.relationship.followed_by?(p(),x(c,{key:0,user:e.user,relationship:e.relationship,class:"follow-card-button"},null,8,["user","relationship"])):E("",!0)],64)):(p(),b(Se,{key:1},[e.relationship.following?E("",!0):(p(),b("div",Dke,[T(i,{user:e.user},null,8,["user"])]))],64))])]),_:1},8,["user"])}const rw=ge(Mke,[["render",Uke]]);var m0,b8;function jke(){if(b8)return m0;b8=1;var e=EP(),t=OP(),n=Np(),s=Qs(),r=Va(),o=Fp(),i=Up(),a=Dp(),c="[object Map]",u="[object Set]",f=Object.prototype,h=f.hasOwnProperty;function v(y){if(y==null)return!0;if(r(y)&&(s(y)||typeof y=="string"||typeof y.splice=="function"||o(y)||a(y)||n(y)))return!y.length;var S=t(y);if(S==c||S==u)return!y.size;if(i(y))return!e(y).length;for(var C in y)if(h.call(y,C))return!1;return!0}return m0=v,m0}var Bke=jke();const zke=bs(Bke);var qke=jp();const Hke=bs(qke),Vke=e=>Hke(e)?e.options:e,Wke=e=>Vke(e).props;function Gke(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Mi(e)}et.add(Zs);const qO=({fetch:e,select:t,unmounted:n,childPropName:s="entries",additionalPropNames:r=[]})=>o=>({props:Object.keys(Wke(o)).filter(c=>c!==s).concat(r),data(){return{loading:!1,bottomedOut:!1,error:!1,entries:[]}},created(){window.addEventListener("scroll",this.scrollLoad),this.entries.length===0&&this.fetchEntries()},unmounted(){window.removeEventListener("scroll",this.scrollLoad),n&&n(this.$props,this.$store)},methods:{updateEntries(){this.entries=t(this.$props,this.$store)||[]},fetchEntries(){this.loading||(this.loading=!0,this.error=!1,e(this.$props,this.$store).then(c=>{this.loading=!1,this.bottomedOut=zke(c)}).catch(()=>{this.loading=!1,this.error=!0}).finally(()=>{this.updateEntries()}))},scrollLoad(c){const u=document.body.getBoundingClientRect(),f=Math.max(u.he
691ight,-u.y);this.loading===!1&&this.bottomedOut===!1&&this.$el.offsetHeight>0&&window.innerHeight+window.pageYOffset>=f-750&&this.fetchEntries()}},render(){const c={...this.$props,[s]:this.entries},u=this.$slots;return T("div",{class:"with-load-more"},[T(o,c,Gke(u)?u:{default:()=>[u]}),T("div",{class:"with-load-more-footer"},[this.error&&T("button",{onClick:this.fetchEntries,class:"button-unstyled -link -fullwidth alert error"},[this.$t("general.generic_error")]),!this.error&&this.loading&&T(j2,{spin:!0,icon:"circle-notch"},null),!this.error&&!this.loading&&!this.bottomedOut&&T("a",{onClick:this.fetchEntries,role:"button",tabindex:"0"},[this.$t("general.more")])])])}});et.add(Zs);const Kke=qO({fetch:(e,t)=>t.dispatch("fetchFollowers",e.userId),select:(e,t)=>Hi(t.getters.findUser(e.userId),"followerIds",[]).map(n=>t.getters.findUser(n)),childPropName:"items",additionalPropNames:["userId"]})(Cd),xke=qO({fetch:(e,t)=>t.dispatch("fetchFriends",e.userId),select:(e,t)=>Hi(t.getters.findUser(e.userId),"friendIds",[]).map(n=>t.getters.findUser(n)),childPropName:"items",additionalPropNames:["userId"]})(Cd),g0="statuses",Yke={data(){return{error:!1,userId:null,tab:g0,footerRef:null}},created(){const e=this.$route.params;this.load({name:e.name,id:e.id}),this.tab=Hi(this.$route,"query.tab",g0)},unmounted(){this.stopFetching()},computed:{timeline(){return this.$store.state.statuses.timelines.user},favorites(){return this.$store.state.statuses.timelines.favorites},media(){return this.$store.state.statuses.timelines.media},isUs(){return this.userId&&this.$store.state.users.currentUser.id&&this.userId===this.$store.state.users.currentUser.id},user(){return this.$store.getters.findUser(this.userId)},isExternal(){return this.$route.name==="external-user-profile"},followsTabVisible(){return this.isUs||!this.user.hide_follows},followersTabVisible(){return this.isUs||!this.user.hide_followers},favoritesTabVisible(){return this.isUs||this.$store.state.instance.pleromaPublicFavouritesAvailable&&!this.user.hide_favorites}},methods:{setFooterRef(e){this.footerRef=e},load(e){const t=(i,a)=>{a!==this.$store.state.statuses.timelines[i].userId&&this.$store.commit("clearTimeline",{timeline:i}),this.$store.dispatch("startFetchingTimeline",{timeline:i,userId:a})},n=i=>{this.userId=i,t("user",i),t("media",i),this.isUs?t("favorites"):this.user.hide_favorites||t("favorites",i),this.$store.dispatch("fetchPinnedStatuses",i)};this.userId=null,this.error=!1;const s=e.id,r=e.name,o=s?this.$store.getters.findUser(s):this.$store.getters.findUserByName(r);o?n(o.id):(s?this.$store.dispatch("fetchUser",s):this.$store.dispatch("fetchUserByName",r)).then(({id:i})=>n(i)).catch(i=>{const a=Hi(i,"error.error");a==="No user with such user_id"?this.error=this.$t("user_profile.profile_does_not_exist"):a?this.error=a:this.error=this.$t("user_profile.profile_loading_error")})},stopFetching(){this.$store.dispatch("stopFetchingTimeline","user"),this.$store.dispatch("stopFetchingTimeline","favorites"),this.$store.dispatch("stopFetchingTimeline","media")},switchUser(e){this.stopFetching(),this.load(e)},onTabSwitch(e){this.tab=e,this.$router.replace({query:{tab:e}})},linkClicked({target:e}){e.tagName==="SPAN"&&(e=e.parentNode),e.tagName==="A"&&window.open(e.href,"_blank")}},watch:{"$route.params.id":function(e){e&&this.switchUser({id:e})},"$route.params.name":function(e){e&&this.switchUser({name:e})},"$route.query":function(e){this.tab=e.tab||g0}},components:{UserCard:$d,Timeline:lo,FollowerList:Kke,FriendList:xke,FollowCard:rw,TabSwitcher:lm,Conversation:am,RichContent:Mr}},Xke={key:0,class:"user-profile panel panel-default"},Jke={class:"panel-body card-wrapper"},Zke=["label","disabled"],Qke=["label","disabled"],e$e={key:1,class:"panel user-profile-placeholder"},t$e={class:"panel-heading"},n$e={class:"title"},s$e={class:"panel-body"},r$e={key:0,class:"alert error"},o$e={class:"error-message"};function i$e(e,t,n,s,r,o){const i=O("UserCard"),a=O("Timeline"),c=O("FollowCard"),u=O("FriendList"),f=O("FollowerList"),h=O("tab-switcher"),v=O("FAIcon");return p(),b("div",null,[e.user?(p(),b("div",Xke,[g("div",Jke,[T(i,{"user-id":e.userId,switcher:!0,selected:e.timeline.viewing,"avatar-action":"zoom","has-note-editor":!0},null,8,["user-id","selected"])]),T(h,{"active-tab":e.tab,"render-only-focused":!0,"on-switch":e.onTabSwitch},{default:X(()=>[T(a,{key:"statuses",label:e.$t("user_card.statuses"),count:e.user.statuses_count,embedded:!0,title:e.$t("user_profile.timeline_title"),timeline:e.timeline,"timeline-name":"user","user-id":e.userId,"pinned-status-ids":e.user.pinnedStatusIds,"in-profile":!0,"footer-slipgate":e.footerRef},null,8,["label","count","title","timeline","user-id","pinned-status-ids","footer-slipgate"]),e.followsTabVisible?(p(),b("div",{key:"followees",class:"panel-body",label:e.$t("user_card.followees"),disabled:!e.user.friends_count},[T(u,{"user-id":e.userId,"non-interactive":!0},{item:X(({item:y}
691)=>[T(c,{user:y},null,8,["user"])]),_:1},8,["user-id"])],8,Zke)):E("",!0),e.followersTabVisible?(p(),b("div",{key:"followers",class:"panel-body",label:e.$t("user_card.followers"),disabled:!e.user.followers_count},[T(f,{"user-id":e.userId,"non-interactive":!0},{item:X(({item:y})=>[T(c,{user:y,"no-follows-you":e.isUs},null,8,["user","no-follows-you"])]),_:1},8,["user-id"])],8,Qke)):E("",!0),T(a,{key:"media",label:e.$t("user_card.media"),disabled:!e.media.visibleStatuses.length,embedded:!0,title:e.$t("user_card.media"),"timeline-name":"media",timeline:e.media,"user-id":e.userId,"in-profile":!0,"footer-slipgate":e.footerRef},null,8,["label","disabled","title","timeline","user-id","footer-slipgate"]),e.favoritesTabVisible?(p(),x(a,{key:"favorites",label:e.$t("user_card.favorites"),disabled:!e.favorites.visibleStatuses.length,embedded:!0,title:e.$t("user_card.favorites"),"timeline-name":"favorites",timeline:e.favorites,"user-id":e.isUs?void 0:e.userId,"in-profile":!0,"footer-slipgate":e.footerRef},null,8,["label","disabled","title","timeline","user-id","footer-slipgate"])):E("",!0)]),_:1},8,["active-tab","on-switch"]),g("div",{ref:e.setFooterRef,class:"panel-footer"},null,512)])):(p(),b("div",e$e,[g("div",t$e,[g("h1",n$e,w(e.$t("settings.profile_tab")),1)]),g("div",s$e,[e.error?(p(),b("div",r$e,[g("span",o$e,w(e.error),1)])):(p(),x(v,{key:1,spin:"",icon:"circle-notch"}))])]))])}const v0=ge(Yke,[["render",i$e]]);var b0,y8;function a$e(){if(y8)return b0;y8=1;var e=p2(),t=Va();function n(s,r){var o=-1,i=t(s)?Array(s.length):[];return e(s,function(a,c,u){i[++o]=r(a,c,u)}),i}return b0=n,b0}var y0,_8;function l$e(){if(_8)return y0;_8=1;var e=NP(),t=S2(),n=a$e(),s=Qs();function r(o,i){var a=s(o)?e:n;return a(o,t(i,3))}return y0=r,y0}var c$e=l$e();const HO=bs(c$e);et.add(Zs,Ba);const u$e={components:{FollowCard:rw,Conversation:am,Status:ea,TabSwitcher:lm},props:["query"],data(){return{loaded:!1,loading:!1,searchTerm:this.query||"",userIds:[],statuses:[],hashtags:[],currenResultTab:"statuses",statusesOffset:0,lastStatusFetchCount:0,lastQuery:""}},computed:{users(){return this.userIds.map(e=>this.$store.getters.findUser(e))},visibleStatuses(){const e=this.$store.state.statuses.allStatusesObject;return this.statuses.filter(t=>e[t.id]&&!e[t.id].deleted)}},mounted(){this.search(this.query)},watch:{query(e){this.searchTerm=e,this.search(e)}},methods:{newQuery(e){this.$router.push({name:"search",query:{query:e}}),this.$refs.searchInput.focus()},search(e,t=null){if(!e){this.loading=!1;return}this.loading=!0,this.$refs.searchInput.blur(),this.lastQuery!==e&&(this.userIds=[],this.hashtags=[],this.statuses=[],this.statusesOffset=0,this.lastStatusFetchCount=0),this.$store.dispatch("search",{q:e,resolve:!0,offset:this.statusesOffset,type:t}).then(n=>{this.loading=!1;const s=this.statuses.length;this.userIds=this.userIds.concat(HO(n.accounts,"id")),this.statuses=Z.uniqBy(this.statuses.concat(n.statuses),"id"),this.hashtags=this.hashtags.concat(n.hashtags),this.currenResultTab=this.getActiveTab(),this.loaded=!0,this.statusesOffset=this.statuses.length,this.lastStatusFetchCount=this.statuses.length-s,this.lastQuery=e})},resultCount(e){const t=this[e].length;return t===0?"":` (${t})`},onResultTabSwitch(e){this.currenResultTab=e},getActiveTab(){return this.visibleStatuses.length>0?"statuses":this.users.length>0?"people":this.hashtags.length>0?"hashtags":"statuses"},lastHistoryRecord(e){return e.history&&e.history[0]}}},d$e={class:"Search panel panel-default"},f$e={class:"panel-heading"},h$e={class:"title"},p$e={class:"panel-body search-input-container"},m$e=["placeholder"],g$e={key:0,class:"panel-body text-center loading-icon"},v$e={key:1},b$e={class:"search-nav-heading"},y$e=["label"],_$e=["label"],w$e=["label"],S$e={class:"panel-body"},k$e={key:0},$$e={class:"new-status-notification text-center"},C$e={key:1,class:"text-center loading-icon"},T$e={key:2,class:"search-result-heading"},A$e={key:1},E$e={key:0,class:"search-result-heading"},I$e={key:2},P$e={key:0,class:"search-result-heading"},L$e={class:"name"},O$e={key:0},R$e={key:0},M$e={key:1},N$e={key:0,class:"count"};function F$e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("tab-switcher"),c=O("Status"),u=O("FollowCard"),f=O("router-link");return p(),b("div",d$e,[g("div",f$e,[g("h1",h$e,w(e.$t("nav.search")),1)]),g("div",p$e,[at(g("input",{ref:"searchInput","onUpdate:modelValue":t[0]||(t[0]=h=>e.searchTerm=h),class:"input search-input",placeholder:e.$t("nav.search"),onKeyup:t[1]||(t[1]=zo(h=>e.newQuery(e.searchTerm),["enter"]))},null,40,m$e),[[Nt,e.searchTerm]]),g("button",{class:"btn button-default search-button",type:"submit",onClick:t[2]||(t[2]=h=>e.newQuery(e.searchTerm))},[T(i,{icon:"search"})])]),e.loading&&e.statusesOffset==0?(p(),b("div",g$e,[T(i,{icon:"circle-notch",spin:"",size:"lg"})])):e.loaded?(p(),b("div",v$e,[g("div",b$e,[T(a,{ref:"tabSwitcher","on-switch":e.onResultTabSwitch,"active-tab":e.currenResultTab},{default:X(()=>[g("span",{key:"statuses",label:e.$t("user_card.statuses")+e.resultCount("visibleStatuses")},null,8,y$e),g("span",{key:"people",label:e.$t("search.people")+e.resultCount("users")},null,8,_$e),g("span",{key:"hashtags",label:e.$t("search.hashtags")+e.resultCount("hashtags")},null,8,w$e)]),_:1},8,["on-switch","active-tab"])])])):E("",!0),g("div",S$e,[e.currenResultTab==="statuses"?(p(),b("div",k$e,[(p(!0),b(Se,null,We(e.visibleStatuses,h=>(p(),x(c,{key:h.id,collapsable:!1,expandable:!1,compact:!1,class:"search-result",statusoid:h,"no-heading":!1},null,8,["statusoid"]))),128)),!e.loading&&e.loaded&&e.lastStatusFetchCount>0?(p(),b("button",{key:0,class:"more-statuses-button button-unstyled -link",onClick:t[3]||(t[3]=Te(h=>e.search(e.searchTerm,"statuses"),["prevent"]))},[g("div",$$e,w(e.$t("search.load_more")),1)])):e.loading&&e.statusesOffset>0?(p(),b("div",C$e,[T(i,{icon:"circle-notch",spin:"",size:"lg"})])):E("",!0),(e.visibleStatuses.length===0||e.lastStatusFetchCount===0)&&!e.loading&&e.loaded?(p(),b("div",T$e,[g("h4",null,w(e.visibleStatuses.length===0?e.$t("search.no_results"):e.$t("search.no_more_results")),1)])):E("",!0)])):e.currenResultTab==="people"?(p(),b("div",A$e,[e.users.length===0&&!e.loading&&e.loaded?(p(),b("div",E$e,[g("h4",null,w(e.$t("search.no_results")),1)])):E("",!0),(p(!0),b(Se,null,We(e.users,h=>
691(p(),x(u,{key:h.id,user:h,class:"list-item search-result"},null,8,["user"]))),128))])):e.currenResultTab==="hashtags"?(p(),b("div",I$e,[e.hashtags.length===0&&!e.loading&&e.loaded?(p(),b("div",P$e,[g("h4",null,w(e.$t("search.no_results")),1)])):E("",!0),(p(!0),b(Se,null,We(e.hashtags,h=>(p(),b("div",{key:h.url,class:"status trend search-result"},[T(f,{class:"list-item hashtag",to:{name:"tag-timeline",params:{tag:h.name}}},{default:X(()=>[g("span",L$e," #"+w(h.name),1),e.lastHistoryRecord(h)?(p(),b("div",O$e,[e.lastHistoryRecord(h).accounts==1?(p(),b("span",R$e,w(e.$t("search.person_talking",{count:e.lastHistoryRecord(h).accounts})),1)):(p(),b("span",M$e,w(e.$t("search.people_talking",{count:e.lastHistoryRecord(h).accounts})),1))])):E("",!0)]),_:2},1032,["to"]),e.lastHistoryRecord(h)?(p(),b("div",N$e,w(e.lastHistoryRecord(h).uses),1)):E("",!0)]))),128))])):E("",!0)]),t[4]||(t[4]=g("div",{class:"search-result-footer text-center panel-footer faint"},null,-1))])}const D$e=ge(u$e,[["render",F$e]]);function w8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function Ci(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w8(Object(n),!0).forEach(function(s){U$e(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w8(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function U$e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S8(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((n,s)=>(t.includes(s)||(n[s]=Lt(e[s])),n),{})}function Kh(e){return typeof e=="function"}function j$e(e){return Bo(e)||Wo(e)}function VO(e,t,n){let s=e;const r=t.split(".");for(let o=0;o<r.length;o++){if(!s[r[o]])return n;s=s[r[o]]}return s}function _0(e,t,n){return vt(()=>e.some(s=>VO(t,s,{[n]:!1})[n]))}function k8(e,t,n){return vt(()=>e.reduce((s,r)=>{const o=VO(t,r,{[n]:!1})[n]||[];return s.concat(o)},[]))}function WO(e,t,n,s){return e.call(s,Lt(t),Lt(n),s)}function GO(e){return e.$valid!==void 0?!e.$valid:!e}function B$e(e,t,n,s,r,o,i){let{$lazy:a,$rewardEarly:c}=r,u=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],f=arguments.length>8?arguments[8]:void 0,h=arguments.length>9?arguments[9]:void 0,v=arguments.length>10?arguments[10]:void 0;const y=Kn(!!s.value),S=Kn(0);n.value=!1;const C=os([t,s].concat(u,v),()=>{if(a&&!s.value||c&&!h.value&&!n.value)return;let I;try{I=WO(e,t,f,i)}catch($){I=Promise.reject($)}S.value++,n.value=!!S.value,y.value=!1,Promise.resolve(I).then($=>{S.value--,n.value=!!S.value,o.value=$,y.value=GO($)}).catch($=>{S.value--,n.value=!!S.value,o.value=$,y.value=!0})},{immediate:!0,deep:typeof t=="object"});return{$invalid:y,$unwatch:C}}function z$e(e,t,n,s,r,o,i,a){let{$lazy:c,$rewardEarly:u}=s;const f=()=>({}),h=vt(()=>{if(c&&!n.value||u&&!a.value)return!1;let v=!0;try{const y=WO(e,t,i,o);r.value=y,v=GO(y)}catch(y){r.value=y}return v});
vendor: 7,178 bytes, line 691
691return{$unwatch:f,$invalid:h}}function q$e(e,t,n,s,r,o,i,a,c,u,f){const h=Kn(!1),v=e.$params||{},y=Kn(null);let S,C;e.$async?{$invalid:S,$unwatch:C}=B$e(e.$validator,t,h,n,s,y,r,e.$watchTargets,c,u,f):{$invalid:S,$unwatch:C}=z$e(e.$validator,t,n,s,y,r,c,u);const I=e.$message;return{$message:Kh(I)?vt(()=>I(S8({$pending:h,$invalid:S,$params:S8(v),$model:t,$response:y,$validator:o,$propertyPath:a,$property:i}))):I||"",$params:v,$pending:h,$invalid:S,$response:y,$unwatch:C}}function H$e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=Lt(e),n=Object.keys(t),s={},r={},o={};let i=null;return n.forEach(a=>{const c=t[a];switch(!0){case Kh(c.$validator):s[a]=c;break;case Kh(c):s[a]={$validator:c};break;case a==="$validationGroups":i=c;break;case a.startsWith("$"):o[a]=c;break;default:r[a]=c}}),{rules:s,nestedValidators:r,config:o,validationGroups:i}}const V$e="__root";function W$e(e,t,n,s,r,o,i,a,c){const u=Object.keys(e),f=s.get(r,e),h=Kn(!1),v=Kn(!1),y=Kn(0);if(f){if(!f.$partial)return f;f.$unwatch(),h.value=f.$dirty.value}const S={$dirty:h,$path:r,$touch:()=>{h.value||(h.value=!0)},$reset:()=>{h.value&&(h.value=!1)},$commit:()=>{}};return u.length?(u.forEach(C=>{S[C]=q$e(e[C],t,S.$dirty,o,i,C,n,r,c,v,y)}),S.$externalResults=vt(()=>a.value?[].concat(a.value).map((C,I)=>({$propertyPath:r,$property:n,$validator:"$externalResults",$uid:`${r}-externalResult-${I}`,$message:C,$params:{},$response:null,$pending:!1})):[]),S.$invalid=vt(()=>{const C=u.some(I=>Lt(S[I].$invalid));return v.value=C,!!S.$externalResults.value.length||C}),S.$pending=vt(()=>u.some(C=>Lt(S[C].$pending))),S.$error=vt(()=>S.$dirty.value?S.$pending.value||S.$invalid.value:!1),S.$silentErrors=vt(()=>u.filter(C=>Lt(S[C].$invalid)).map(C=>{const I=S[C];return Pr({$propertyPath:r,$property:n,$validator:C,$uid:`${r}-${C}`,$message:I.$message,$params:I.$params,$response:I.$response,$pending:I.$pending})}).concat(S.$externalResults.value)),S.$errors=vt(()=>S.$dirty.value?S.$silentErrors.value:[]),S.$unwatch=()=>u.forEach(C=>{S[C].$unwatch()}),S.$commit=()=>{v.value=!0,y.value=Date.now()},s.set(r,e,S),S):(f&&s.set(r,e,S),S)}function G$e(e,t,n,s,r,o,i){const a=Object.keys(e);return a.length?a.reduce((c,u)=>(c[u]=Wy({validations:e[u],state:t,key:u,parentKey:n,resultsCache:s,globalConfig:r,instance:o,externalResults:i}),c),{}):{}}function K$e(e,t,n){const s=vt(()=>[t,n].filter(S=>S).reduce((S,C)=>S.concat(Object.values(Lt(C))),[])),r=vt({get(){return e.$dirty.value||(s.value.length?s.value.every(S=>S.$dirty):!1)},set(S){e.$dirty.value=S}}),o=vt(()=>{const S=Lt(e.$silentErrors)||[],C=s.value.filter(I=>(Lt(I).$silentErrors||[]).length).reduce((I,$)=>I.concat(...$.$silentErrors),[]);return S.concat(C)}),i=vt(()=>{const S=Lt(e.$errors)||[],C=s.value.filter(I=>(Lt(I).$errors||[]).length).reduce((I,$)=>I.concat(...$.$errors),[]);return S.concat(C)}),a=vt(()=>s.value.some(S=>S.$invalid)||Lt(e.$invalid)||!1),c=vt(()=>s.value.some(S=>Lt(S.$pending))||Lt(e.$pending)||!1),u=vt(()=>s.value.some(S=>S.$dirty)||s.value.some(S=>S.$anyDirty)||r.value),f=vt(()=>r.value?c.value||a.value:!1),h=()=>{e.$touch(),s.value.forEach(S=>{S.$touch()})},v=()=>{e.$commit(),s.value.forEach(S=>{S.$commit()})},y=()=>{e.$reset(),s.value.forEach(S=>{S.$reset()})};return s.value.length&&s.value.every(S=>S.$dirty)&&h(),{$dirty:r,$errors:i,$invalid:a,$anyDirty:u,$error:f,$pending:c,$touch:h,$reset:y,$silentErrors:o,$commit:v}}function Wy(e){let{validations:t,state:n,key:s,parentKey:r,childResults:o,resultsCache:i,globalConfig:a={},instance:c,externalResults:u}=e;const f=r?`${r}.${s}`:s,{rules:h,nestedValidators:v,config:y,validationGroups:S}=H$e(t),C=Ci(Ci({},a),y),I=s?vt(()=>{const dt=Lt(n);return dt?Lt(dt[s]):void 0}):n,$=Ci({},Lt(u)||{}),k=vt(()=>{const dt=Lt(u);return s?dt?Lt(dt[s]):void 0:dt}),P=W$e(h,I,s,i,f,C,c,k,n),A=G$e(v,I,f,i,C,c,k),R={};S&&Object.entries(S).forEach(dt=>{let[bt,It]=dt;R[bt]={$invalid:_0(It,A,"$invalid"),$error:_0(It,A,"$error"),$pending:_0(It,A,"$pending"),$errors:k8(It,A,"$errors"),$silentErrors:k8(It,A,"$silentErrors")}});const{$dirty:B,$errors:N,$invalid:Y,$anyDirty:H,$error:D,$pending:oe,$touch:le,$reset:Pe,$silentErrors:qe,$commit:Ke}=K$e(P,A,o),Ge=s?vt({get:()=>Lt(I),set:dt=>{B.value=!0;const bt=Lt(n),It=Lt(u);It&&(It[s]=$[s]),Sn(bt[s])?bt[s].value=dt:bt[s]=dt}}):null;s&&C.$autoDirty&&os(I,()=>{B.value||le();const dt=Lt(u);dt&&(dt[s]=$[s])},{flush:"sync"});async function ze(){return le(),C.$rewardEarly&&(Ke(),await Ri()),await Ri(),new Promise(dt=>{if(!oe.value)return dt(!Y.value);const bt=os(oe,()=>{dt(!Y.value),bt()})})}function ot(dt){return(o.value||{})[dt]}function Ct(){Sn(u)?u.value=$:Object.keys($).length===0?Object.keys(u).forEach(dt=>{delete u[dt]}):Object.assign(u,$)}return Pr(Ci(Ci(Ci({},P),{},{$model:Ge,$dirty:B,$error:D,$errors:N,$invalid:Y,$anyDirty:H,$pending:oe,$touch:le,$reset:Pe,$path:f||V$e,$silentErrors:qe,$validate:ze,$commit:Ke},o&&{$getResultsForChild:ot,$clearExternalResults:Ct,$validationGroups:R}),A))}class x$e{constructor(){this.storage=new Map}set(t,n,s){this.storage.set(t,{rules:n,result:s})}checkRulesValidity(t,n,s){const r=Object.keys(s),o=Object.keys(n);return o.length!==r.length||!o.every(a=>r.includes(a))?!1:o.every(a=>n[a].$params?Object.keys(n[a].$params).every(c=>Lt(s[a].$params[c])===Lt(n[a].$params[c])):!0)}get(t,n){const s=this.storage.get(t);if(!s)return;const{rules:r,result:o}=s,i=this.checkRulesValidity(t,n,r),a=o.$unwatch?o.$unwatch:()=>({});return i?o:{$dirty:o.$dirty,$partial:!0,$unwatch:a}}}const ih={COLLECT_ALL:!0,COLLECT_NONE:!1},$8=Symbol("vuelidate#injectChildResults"),C8=Symbol("vuelidate#removeChildResults");function Y$e(e){let{$scope:t,instance:n}=e;const s={},r=Kn([]),o=vt(()=>r.value.reduce((f,h)=>(f[h]=Lt(s[h]),f),{}));function i(f,h){let{$registerAs:v,$scope:y,$stopPropagation:S}=h;S||t===ih.COLLECT_NONE||y===ih.COLLECT_NONE||t!==ih.COLLECT_ALL&&t!==y||(s[v]=f,r.value.push(v))}n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],i);function a(f){r.value=r.value.filter(h=>h!==f),delete s[f]}n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],a);const c=Ys($8,[]);Ml($8,n.__vuelidateInjectInstances);const u=Ys(C8,[]);return Ml(C8,n.__vuelidateRemoveInstances),{childResults:o,sendValidationResultsToParent:c,removeValidationResultsFromParent:u}}function KO(e){return new Proxy(e,{get(t,n){return typeof t[n]=="object"?KO(t[n]):vt(()=>t[n])}})}let T8=0;function X$e(e,t){var n;let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(s=e,e=void 0,t=void 0);let{$registerAs:r,$scope:o=ih.COLLECT_ALL,$stopPropagation:i,$externalResults:a,currentVueInstance:c}=s;const u=c||((n=ro())===null||n===void 0?void 0:n.proxy),f=u?u.$options:{};r||(T8+=1,r=`_vuelidate_${T8}`);const h=Kn({}),v=new x$e,{childResults:y,sendValidationResultsToParent:S,removeValidationResultsFromParent:C}=u?Y$e({$scope:o,instance:u}):{childResults:Kn({})};if(!e&&f.validations){const I=f.validations;t=Kn({}),AA(()=>{t.value=u,os(()=>Kh(I)?I.call(t.value,new KO(t.value)):I,$=>{h.value=Wy({validations:$,state:t,childResults:y,resultsCache:v,globalConfig:s,instance:u,externalResults:a||u.vuelidateExter
691nalResults})},{immediate:!0})}),s=f.validationsConfig||s}else{const I=Sn(e)||j$e(e)?e:Pr(e||{});os(I,$=>{h.value=Wy({validations:$,state:t,childResults:y,resultsCache:v,globalConfig:s,instance:u??{},externalResults:a})},{immediate:!0})}return u&&(S.forEach(I=>I(h,{$registerAs:r,$scope:o,$stopPropagation:i})),lp(()=>C.forEach(I=>I(r)))),vt(()=>Ci(Ci({},Lt(h.value)),y.value))}const ow=e=>{if(e=Lt(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let t in e)return!0;return!1}return!!String(e).length};function xa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s=>(s=Lt(s),!ow(s)||t.every(r=>(r.lastIndex=0,r.test(s))))}xa(/^[a-zA-Z]*$/);xa(/^[a-zA-Z0-9]*$/);xa(/^\d*(\.\d+)?$/);const J$e=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;xa(J$e);function Z$e(e){return typeof e=="string"&&(e=e.trim()),ow(e)}var qf={$validator:Z$e,$message:"Value is required",$params:{type:"required"}};const A8=(e,t)=>e?ow(typeof t=="string"?t.trim():t):!0;function Q$e(e){return function(t,n){if(typeof e!="function")return A8(Lt(e),t);const s=e.call(this,t,n);return A8(s,t)}}function w0(e){return{$validator:Q$e(e),$message:"The value is required",$params:{type:"requiredIf",prop:e}}}function e4e(e){return t=>Lt(t)===Lt(e)}function t4e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"other";return{$validator:e4e(e),$message:n=>`The value must be equal to the ${t} value`,$params:{equalTo:e,otherName:t,type:"sameAs"}}}const n4e=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;xa(n4e);xa(/(^[0-9]*$)|(^-[0-9]+$)/);xa(/^[-]?\d*(\.\d+)?$/);et.add(zJ);const s4e={components:{Popover:Jn},props:["isProfile"]},r4e={key:0,class:"ProfileSettingIndicator"},o4e={class:"profilesetting-tooltip"};function i4e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Popover");return n.isProfile?(p(),b("span",r4e,[T(a,{trigger:"hover"},{trigger:X(()=>[t[0]||(t[0]=de("   ",-1)),T(i,{icon:"server","aria-label":e.$t("settings.setting_server_side")},null,8,["aria-label"])]),content:X(()=>[g("div",o4e,w(e.$t("settings.setting_server_side")),1)]),_:1})])):E("",!0)}const a4e=ge(s4e,[["render",i4e]]),l4e={components:{Select:Zi,ProfileSettingIndicator:a4e},props:{modelValue:{type:[Array,String],required:!0},profile:{type:Boolean,default:!1}},emits:["update:modelValue"],computed:{languages(){return Tr.languages},uniqueId(){return qP()},controlledLanguage:{get:function(){return Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]},set:function(e){this.$emit("update:modelValue",e)}}},methods:{getLanguageName(e){return Tr.getLanguageName(e)},addLanguage(){this.controlledLanguage=[...this.controlledLanguage,""]},setLanguageAt(e,t){const n=[...this.controlledLanguage];n[e]=t,this.controlledLanguage=n},removeLanguageAt(e){const t=[...this.controlledLanguage];t.splice(e,1),this.controlledLanguage=t}}},c4e={class:"interface-language-switcher setting-list"},u4e=["for"],d4e={class:"setting-control btn-group"},f4e=["value"],h4e=["onClick"],p4e={class:"add-button"};function m4e(e,t,n,s,r,o){const i=O("Select");return p(),b("ul",c4e,[(p(!0),b(Se,null,We(e.controlledLanguage.keys(),a=>(p(),b("li",{key:a,class:"setting-item"},[g("label",{class:"setting-label",for:e.uniqueId+a},w(a===0?e.$t("settings.primary_language"):e.$t("settings.fallback_language",{index:a},a)),9,u4e),g("span",d4e,[T(i,{id:e.uniqueId+a,name:e.uniqueId+a,class:"language-select","model-value":e.controlledLanguage[a],"onUpdate:modelValue":c=>e.setLanguageAt(a,c)},{default:X(()=>[(p(!0),b(Se,null,We(e.languages,c=>(p(),b("option",{key:c.code,value:c.code},w(c.name),9,f4e))),128))]),_:2},1032,["id","name","model-value","onUpdate:modelValue"]),e.controlledLanguage.length>1&&a!==0?(p(),b("button",{key:0,class:"button-default btn",onClick:()=>e.removeLanguageAt(a)},w(e.$t("settings.remove_language")),9,h4e)):E("",!0)])]))),128)),g("li",p4e,[g("button",{class:"button-default btn",onClick:t[0]||(t[0]=(...a)=>e.addLanguage&&e.addLanguage(...a))},w(e.$t("settings.add_language")),1)])])}const g4e=ge(l4e,[["render",m4e]]),v4e={computed:{content(){return this.$store.state.instance.tos},embedded(){return this.$store.state.instance.embeddedToS}}},b4e={class:"terms-of-service-panel"},y4e={class:"panel panel-default"},_4e={key:0,class:"panel-heading -sticky"},w4e={class:"title"},S4e={class:"panel-body"},k4e=["innerHTML"];function $4e(e,t,n,s,r,o){return p(),b("div",b4e,[g("div",y4e,[e.embedded?E("",!0):(p(),b("div",_4e,[g("div",w4e,w(e.$t("about.terms")),1)])),g("div",S4e,[g("div",{class:"tos-content",innerHTML:e.content},null,8,k4e)])])])}const xO=ge(v4e,[["render",$4e]]),C4e={setup(){return{v$:X$e()}},data:()=>({user:{email:"",fullname:"",username:"",password:"",confirm:"",birthday:"",reason:"",language:[""]},captcha:{}}),components:{InterfaceLanguageSwitcher:g4e,TermsOfServicePanel:xO},validations(){return{user:{email:{required:w0(()=>this.accountActivationRequired)},username:{required:qf},fullname:{required:qf},password:{required:qf},confirm:{required:qf,sameAs:t4e(this.user.password)},birthday:{required:w0(()=>this.birthdayRequired),maxValue:e=>!this.birthdayRequired||new Date(e).getTime()<=this.birthdayMin.getTime()},reason:{required:w0(()=>this.accountApprovalRequired)},language:{}}}},created(){(!this.registrationOpen&&!this.token||this.signedIn)&&this.$router.push({name:"root"}),this.setCaptcha()},computed:{token(){return this.$route.params.token},bioPlaceholder(){return this.replaceNewlines(this.$t("registration.bio_placeholder"))},reasonPlaceholder(){return this.replaceNewlines(this.$t("registration.reason_placeholder"))},birthdayMin(){const e=this.birthdayMinAge,t=new Date;t.setUTCMilliseconds(0),t.setUTCSeconds(0),t.setUTCMinutes(0),t.setUTCHours(0);const n=new Date;return n.setTime(t.getTime()-e*Xo),n},birthdayMinAttr(){return this.birthdayMin.toJSON().replace(/T.+$/,"")},birthdayMinFormatted(){const e=Tr.internalToBrowserLocale(this.$i18n.locale);return this.user.birthday&&new Date(Date.parse(this.birthdayMin)).toLocaleDateString(e,{timeZone:"UTC",day:"numeric",month:"long",year:"numeric"})},...mn({registrationOpen:e=>e.instance.registrationOpen,signedIn:e=>!!e.users.currentUser,isPending:e=>e.users.signUpPending,serverValidationErrors:e=>e.users.signUpErrors,signUpNotice:e=>e.users.signUpNotice,hasSignUpNotice:e=>!!e.users.signUpNotice.message,termsOfService:e=>e.instance.tos,embeddedToS:e=>e.instance.embeddedToS,accountActivationRequired:e=>e.instance.accountActivationRequired,accountApprovalRequired:e=>e.instance.accountApprovalRequired,birthdayRequired:e=>e.instance.birthdayRequired,birthdayMinAge:e=>e.instance.birthdayMinAge})},methods:{...MB(["signUp","getCaptcha"]),async submit(){if(this.user.nickname=this.user.username,this.user.token=this.token,this.user.captcha_solution=this.captcha.solution,this.user.captcha_token=this.captcha.token,this.user.captcha_answer_data=this.captcha.answer_data,this.user.language&&(this.user.language=Tr.internalToBackendLocaleMulti(this.user.language.filter(e=>
691e))),this.v$.$touch(),!this.v$.$invalid)try{await this.signUp(this.user)==="ok"&&this.$router.push({name:"friends"})}catch(e){console.warn("Registration failed: ",e),this.setCaptcha()}},setCaptcha(){this.getCaptcha().then(e=>{this.captcha=e})},replaceNewlines(e){return e.replace(/\s*\n\s*/g,` 
692`)}}},T4e={class:"column-inner"},A4e={class:"settings panel panel-default"},E4e={class:"panel-heading"},I4e={class:"title"},P4e={key:0,class:"panel-body"},L4e={class:"container"},O4e={class:"text-fields"},R4e={class:"form--label",for:"sign-up-username"},M4e=["disabled","placeholder"],N4e={key:0,class:"form-error"},F4e={key:0},D4e={class:"form--label",for:"sign-up-fullname"},U4e=["disabled","placeholder"],j4e={key:1,class:"form-error"},B4e={key:0},z4e={class:"form--label",for:"email"},q4e=["disabled","aria-required"],H4e={key:2,class:"form-error"},V4e={key:0},W4e={class:"form-group"},G4e={class:"form--label",for:"bio"},K4e=["disabled","placeholder"],x4e={class:"form--label",for:"sign-up-password"},Y4e=["disabled"],X4e={key:3,class:"form-error"},J4e={key:0},Z4e={class:"form--label",for:"sign-up-password-confirmation"},Q4e=["disabled"],eCe={key:4,class:"form-error"},tCe={key:0},nCe={key:1},sCe={class:"form--label",for:"sign-up-birthday"},rCe=["disabled","max","aria-required"],oCe={key:5,class:"form-error"},iCe={key:0},aCe={key:1},lCe={key:6,class:"form-group"},cCe={class:"form--label",for:"reason"},uCe=["disabled","placeholder"],dCe={key:7,id:"captcha-group",class:"form-group"},fCe={class:"form--label",for:"captcha-label"},hCe=["src"],pCe=["disabled"],mCe={key:8,class:"form-group"},gCe={for:"token"},vCe={class:"form-group"},bCe=["disabled"],yCe=["innerHTML"],_Ce={key:0,class:"form-group"},wCe={class:"alert error"},SCe={key:1},kCe={class:"registration-notice"};function $Ce(e,t,n,s,r,o){const i=O("TermsOfServicePanel"),a=O("interface-language-switcher");return p(),b("div",T4e,[!e.hasSignUpNotice&&!e.embeddedToS?(p(),x(i,{key:0})):E("",!0),g("div",A4e,[g("div",E4e,[g("h1",I4e,w(e.$t("registration.registration")),1)]),e.hasSignUpNotice?(p(),b("div",SCe,[g("p",kCe,w(e.signUpNotice.message),1)])):(p(),b("div",P4e,[g("form",{class:"registration-form",onSubmit:t[12]||(t[12]=Te(c=>e.submit(e.user),["prevent"]))},[g("div",L4e,[g("div",O4e,[g("div",{class:he(["form-group",{"form-group--error":e.v$.user.username.$error}])},[g("label",R4e,w(e.$t("login.username")),1),at(g("input",{id:"sign-up-username","onUpdate:modelValue":t[0]||(t[0]=c=>e.v$.user.username.$model=c),disabled:e.isPending,class:"input form-control","aria-required":!0,placeholder:e.$t("registration.username_placeholder")},null,8,M4e),[[Nt,e.v$.user.username.$model,void 0,{trim:!0}]])],2),e.v$.user.username.$dirty?(p(),b("div",N4e,[g("ul",null,[e.v$.user.username.required?E("",!0):(p(),b("li",F4e,[g("span",null,w(e.$t("registration.validations.username_required")),1)]))])])):E("",!0),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.fullname.$error}])},[g("label",D4e,w(e.$t("registration.fullname")),1),at(g("input",{id:"sign-up-fullname","onUpdate:modelValue":t[1]||(t[1]=c=>e.v$.user.fullname.$model=c),disabled:e.isPending,class:"input form-control","aria-required":!0,placeholder:e.$t("registration.fullname_placeholder")},null,8,U4e),[[Nt,e.v$.user.fullname.$model,void 0,{trim:!0}]])],2),e.v$.user.fullname.$dirty?(p(),b("div",j4e,[g("ul",null,[e.v$.user.fullname.required?E("",!0):(p(),b("li",B4e,[g("span",null,w(e.$t("registration.validations.fullname_required")),1)]))])])):E("",!0),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.email.$error}])},[g("label",z4e,w(e.accountActivationRequired?e.$t("registration.email"):e.$t("registration.email_optional")),1),at(g("input",{id:"email","onUpdate:modelValue":t[2]||(t[2]=c=>e.v$.user.email.$model=c),disabled:e.isPending,class:"input form-control",type:"email","aria-required":e.accountActivationRequired},null,8,q4e),[[Nt,e.v$.user.email.$model]])],2),e.v$.user.email.$dirty?(p(),b("div",H4e,[g("ul",null,[e.v$.user.email.required?E("",!0):(p(),b("li",V4e,[g("span",null,w(e.$t("registration.validations.email_required")),1)]))])])):E("",!0),g("div",W4e,[g("label",G4e,w(e.$t("registration.bio_optional")),1),at(g("textarea",{id:"bio","onUpdate:modelValue":t[3]||(t[3]=c=>e.user.bio=c),disabled:e.isPending,class:"input form-control",placeholder:e.bioPlaceholder},null,8,K4e),[[Nt,e.user.bio]])]),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.password.$error}])},[g("label",x4e,w(e.$t("login.password")),1),at(g("input",{id:"sign-up-password","onUpdate:modelValue":t[4]||(t[4]=c=>e.user.password=c),disabled:e.isPending,class:"input form-control",type:"password","aria-required":!0},null,8,Y4e),[[Nt,e.user.password]])],2),e.v$.user.password.$dirty?(p(),b("div",X4e,[g("ul",null,[e.v$.user.password.required?E("",!0):(p(),b("li",J4e,[g("span",null,w(e.$t("registration.validations.password_required")),1)]))])])):E("",!0),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.confirm.$error}])},[g("label",Z4e,w(e.$t("registration.password_confirm")),1),at(g("input",{id:"sign-up-password-confirmation","onUpdate:modelValue":t[5]||(t[5]=c=>e.user.confirm=c),disabled:e.isPending,class:"input form-control",type:"password","aria-required":!0},null,8,Q4e),[[Nt,e.user.confirm]])],2),e.v$.user.confirm.$dirty?(p(),b("div",eCe,[g("ul",null,[e.v$.user.confirm.required.$invalid?(p(),b("li",tCe,[g("span",null,w(e.$t("registration.validations.password_confirmation_required")),1)])):E("",!0),e.v$.user.confirm.sameAs.$invalid?(p(),b("li",nCe,[g("span",null,w(e.$t("registration.validations.password_confirmation_match")),1)])):E("",!0)])])):E("",!0),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.birthday.$error}])},[g("label",sCe,w(e.birthdayRequired?e.$t("registration.birthday"):e.$t("registration.birthday_optional")),1),at(g("input",{id:"sign-up-birthday","onUpdate:modelValue":t[6]||(t[6]=c=>e.user.birthday=c),disabled:e.isPending,class:"input form-control",type:"date",max:e.birthdayRequired?e.birthdayMinAttr:void 0,"aria-required":e.birthdayRequired},null,8,rCe),[[Nt,e.user.birthday]])],2),e.v$.user.birthday.$dirty?(p(),b("div",oCe,[g("ul",null,[e.v$.user.birthday.required.$invalid?(p(),b("li",iCe,[g("span",null,w(e.$t("registration.validations.birthday_required")),1)])):E("",!0),e.v$.user.birthday.maxValue.$invali
692d?(p(),b("li",aCe,[g("span",null,w(e.$t("registration.validations.birthday_min_age",{date:e.birthdayMinFormatted})),1)])):E("",!0)])])):E("",!0),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.language.$error}])},[T(a,{for:"email-language","prompt-text":e.$t("registration.email_language"),language:e.v$.user.language.$model,"set-language":c=>e.v$.user.language.$model=c,onClick:t[7]||(t[7]=Te(()=>{},["stop","prevent"]))},null,8,["prompt-text","language","set-language"])],2),e.accountApprovalRequired?(p(),b("div",lCe,[g("label",cCe,w(e.$t("registration.reason")),1),at(g("textarea",{id:"reason","onUpdate:modelValue":t[8]||(t[8]=c=>e.user.reason=c),disabled:e.isPending,class:"input form-control",placeholder:e.reasonPlaceholder},null,8,uCe),[[Nt,e.user.reason]])])):E("",!0),e.captcha.type!="none"?(p(),b("div",dCe,[g("label",fCe,w(e.$t("registration.captcha")),1),["kocaptcha","native"].includes(e.captcha.type)?(p(),b(Se,{key:0},[g("img",{src:e.captcha.url,onClick:t[9]||(t[9]=(...c)=>e.setCaptcha&&e.setCaptcha(...c))},null,8,hCe),g("sub",null,w(e.$t("registration.new_captcha")),1),at(g("input",{id:"captcha-answer","onUpdate:modelValue":t[10]||(t[10]=c=>e.captcha.solution=c),disabled:e.isPending,class:"input form-control",type:"text",autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false"},null,8,pCe),[[Nt,e.captcha.solution]])],64)):E("",!0)])):E("",!0),e.token?(p(),b("div",mCe,[g("label",gCe,w(e.$t("registration.token")),1),at(g("input",{id:"token","onUpdate:modelValue":t[11]||(t[11]=c=>e.token=c),disabled:"true",class:"input form-control",type:"text"},null,512),[[Nt,e.token]])])):E("",!0),g("div",vCe,[g("button",{disabled:e.isPending,type:"submit",class:"btn button-default"},w(e.$t("registration.register")),9,bCe)])]),e.embeddedToS?(p(),b("div",{key:0,class:"terms-of-service",innerHTML:e.termsOfService},null,8,yCe)):E("",!0)]),e.serverValidationErrors.length?(p(),b("div",_Ce,[g("div",wCe,[(p(!0),b(Se,null,We(e.serverValidationErrors,c=>(p(),b("span",{key:c},w(c),1))),128))])])):E("",!0)],32)]))])])}const E8=ge(C4e,[["render",$Ce]]),CCe="/auth/password",TCe=({instance:e,email:t})=>{const n={email:t},s=Z.reduce(n,(o,i,a)=>{const c=`${a}=${encodeURIComponent(i)}`;return`${o}&${c}`},""),r=`${e}${CCe}?${s}`;return window.fetch(r,{method:"POST"})};et.add(Xn);const ACe={data:()=>({user:{email:""},isPending:!1,success:!1,throttled:!1,error:null}),computed:{...mn({signedIn:e=>!!e.users.currentUser,instance:e=>e.instance}),mailerEnabled(){return this.instance.mailerEnabled}},created(){this.signedIn&&this.$router.push({name:"root"})},props:{passwordResetRequested:{default:!1,type:Boolean}},methods:{dismissError(){this.error=null},submit(){this.isPending=!0;const e=this.user.email,t=this.instance.server;TCe({instance:t,email:e}).then(({status:n})=>{this.isPending=!1,this.user.email="",n===204?(this.success=!0,this.error=null):n===429&&(this.throttled=!0,this.error=this.$t("password_reset.too_many_requests"))}).catch(()=>{this.isPending=!1,this.user.email="",this.error=this.$t("general.generic_error")})}}},ECe={class:"settings panel panel-default"},ICe={class:"panel-heading"},PCe={class:"title"},LCe={class:"panel-body"},OCe={class:"container"},RCe={key:0},MCe={key:0},NCe={key:1},FCe={key:1},DCe={key:0},UCe={class:"form-group text-center"},jCe={key:2},BCe={key:0,class:"alert password-reset-required error"},zCe={class:"form-group"},qCe=["disabled","placeholder"],HCe={class:"form-group"},VCe=["disabled"],WCe={key:3,class:"alert error notice-dismissible"};function GCe(e,t,n,s,r,o){const i=O("router-link"),a=O("FAIcon");return p(),b("div",ECe,[g("div",ICe,[g("h1",PCe,w(e.$t("password_reset.password_reset")),1)]),g("div",LCe,[g("form",{class:"password-reset-form",onSubmit:t[2]||(t[2]=Te((...c)=>e.submit&&e.submit(...c),["prevent"]))},[g("div",OCe,[e.mailerEnabled?e.success||e.throttled?(p(),b("div",FCe,[e.success?(p(),b("p",DCe,w(e.$t("password_reset.check_email")),1)):E("",!0),g("div",UCe,[T(i,{to:{name:"root"}},{default:X(()=>[de(w(e.$t("password_reset.return_home")),1)]),_:1})])])):(p(),b("div",jCe,[e.passwordResetRequested?(p(),b("p",BCe,w(e.$t("password_reset.password_reset_required")),1)):E("",!0),g("p",null,w(e.$t("password_reset.instruction")),1),g("div",zCe,[at(g("input",{ref:"email","onUpdate:modelValue":t[0]||(t[0]=c=>e.user.email=c),disabled:e.isPending,placeholder:e.$t("password_reset.placeholder"),class:"input form-control",type:"input"},null,8,qCe),[[Nt,e.user.email]])]),g("div",HCe,[g("button",{disabled:e.isPending,type:"submit",class:"btn button-default btn-block"},w(e.$t("settings.save")),9,VCe)])])):(p(),b("div",RCe,[e.passwordResetRequested?(p(),b("p",MCe,w(e.$t("password_reset.password_reset_required_but_mailer_is_disabled")),1)):(p(),b("p",NCe,w(e.$t("password_reset.password_reset_disabled")),1))])),e.error?(p(),b("p",WCe,[g("span",null,w(e.error),1),g("a",{class:"fa-scale-110 fa-old-pa
692dding dismiss",onClick:t[1]||(t[1]=Te(c=>e.dismissError(),["prevent"]))},[T(a,{icon:"times"})])])):E("",!0)])],32)])])}const KCe=ge(ACe,[["render",GCe]]),xCe={props:["user"],components:{BasicUserCard:Td,ConfirmModal:Nr},data(){return{showingApproveConfirmDialog:!1,showingDenyConfirmDialog:!1}},methods:{findFollowRequestNotificationId(){const e=__(this.$store).find(t=>t.from_profile.id===this.user.id&&t.type==="follow_request");return e&&e.id},showApproveConfirmDialog(){this.showingApproveConfirmDialog=!0},hideApproveConfirmDialog(){this.showingApproveConfirmDialog=!1},showDenyConfirmDialog(){this.showingDenyConfirmDialog=!0},hideDenyConfirmDialog(){this.showingDenyConfirmDialog=!1},approveUser(){this.shouldConfirmApprove?this.showApproveConfirmDialog():this.doApprove()},doApprove(){this.$store.state.api.backendInteractor.approveUser({id:this.user.id}),this.$store.dispatch("removeFollowRequest",this.user);const e=this.findFollowRequestNotificationId();this.$store.dispatch("markSingleNotificationAsSeen",{id:e}),this.$store.dispatch("updateNotification",{id:e,updater:t=>{t.type="follow"}}),this.hideApproveConfirmDialog()},denyUser(){this.shouldConfirmDeny?this.showDenyConfirmDialog():this.doDeny()},doDeny(){const e=this.findFollowRequestNotificationId();this.$store.state.api.backendInteractor.denyUser({id:this.user.id}).then(()=>{this.$store.dispatch("dismissNotificationLocal",{id:e}),this.$store.dispatch("removeFollowRequest",this.user)}),this.hideDenyConfirmDialog()}},computed:{mergedConfig(){return this.$store.getters.mergedConfig},shouldConfirmApprove(){return this.mergedConfig.modalOnApproveFollow},shouldConfirmDeny(){return this.mergedConfig.modalOnDenyFollow}}},YCe={class:"follow-request-card-content-container"};function XCe(e,t,n,s,r,o){const i=O("confirm-modal"),a=O("basic-user-card");return p(),x(a,{user:e.user},{default:X(()=>[g("div",YCe,[g("button",{class:"btn button-default",onClick:t[0]||(t[0]=(...c)=>e.approveUser&&e.approveUser(...c))},w(e.$t("user_card.approve")),1),g("button",{class:"btn button-default",onClick:t[1]||(t[1]=(...c)=>e.denyUser&&e.denyUser(...c))},w(e.$t("user_card.deny")),1)]),(p(),x(Yn,{to:"#modal"},[e.showingApproveConfirmDialog?(p(),x(i,{key:0,title:e.$t("user_card.approve_confirm_title"),"confirm-text":e.$t("user_card.approve_confirm_accept_button"),"cancel-text":e.$t("user_card.approve_confirm_cancel_button"),onAccepted:e.doApprove,onCancelled:e.hideApproveConfirmDialog},{default:X(()=>[de(w(e.$t("user_card.approve_confirm",{user:e.user.screen_name_ui})),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0),e.showingDenyConfirmDialog?(p(),x(i,{key:1,title:e.$t("user_card.deny_confirm_title"),"confirm-text":e.$t("user_card.deny_confirm_accept_button"),"cancel-text":e.$t("user_card.deny_confirm_cancel_button"),onAccepted:e.doDeny,onCancelled:e.hideDenyConfirmDialog},{default:X(()=>[de(w(e.$t("user_card.deny_confirm",{user:e.user.screen_name_ui})),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))]),_:1},8,["user"])}const JCe=ge(xCe,[["render",XCe]]),ZCe={components:{FollowRequestCard:JCe},computed:{requests(){return this.$store.state.api.followRequests}}},QCe={class:"settings panel panel-default"},e6e={class:"panel-heading"},t6e={class:"title"},n6e={class:"panel-body"};function s6e(e,t,n,s,r,o){const i=O("FollowRequestCard");return p(),b("div",QCe,[g("div",e6e,[g("h1",t6e,w(e.$t("nav.friend_requests")),1)]),g("div",n6e,[(p(!0),b(Se,null,We(e.requests,a=>(p(),x(i,{key:a.id,user:a,class:"list-item"},null,8,["user"]))),128))])])}const r6e=ge(ZCe,[["render",s6e]]),o6e={props:["code"],mounted(){if(this.code){const e=Ar(),{clientId:t,clientSecret:n}=e;Oh.getToken({clientId:t,clientSecret:n,instance:this.$store.state.instance.server,code:this.code}).then(s=>{e.setToken(s.access_token),this.$store.dispatch("loginUser",s.access_token),this.$router.push({name:"friends"})})}}};function i6e(e,t,n,s,r,o){return p(),b("h1",null,"...")}const a6e=ge(o6e,[["render",i6e]]),l6e={components:{FollowCard:rw},data(){return{users:[]}},mounted(){this.getWhoToFollow()},methods:{showWhoToFollow(e){e.forEach(t=>{this.$store.state.api.backendInteractor.fetchUser({id:t.acct}).then(n=>
692{n.error||(this.$store.commit("addNewUsers",[n]),this.users.push(n))})})},getWhoToFollow(){const e=this.$store.state.users.currentUser.credentials;e&&Ln.suggestions({credentials:e}).then(t=>{this.showWhoToFollow(t)})}}},c6e={class:"panel panel-default"},u6e={class:"panel-heading"},d6e={class:"title"},f6e={class:"panel-body"};function h6e(e,t,n,s,r,o){const i=O("FollowCard");return p(),b("div",c6e,[g("div",u6e,[g("h1",d6e,w(e.$t("who_to_follow.who_to_follow")),1)]),g("div",f6e,[(p(!0),b(Se,null,We(e.users,a=>(p(),x(i,{key:a.id,user:a,class:"list-item"},null,8,["user"]))),128))])])}const p6e=ge(l6e,[["render",h6e]]);var S0,I8;function m6e(){if(I8)return S0;I8=1;function e(t,n,s,r){for(var o=-1,i=t==null?0:t.length;++o<i;){var a=t[o];n(r,a,s(a),t)}return r}return S0=e,S0}var k0,P8;function g6e(){if(P8)return k0;P8=1;var e=p2();function t(n,s,r,o){return e(n,function(i,a,c){s(o,i,r(i),c)}),o}return k0=t,k0}var $0,L8;function v6e(){if(L8)return $0;L8=1;var e=m6e(),t=g6e(),n=S2(),s=Qs();function r(o,i){return function(a,c){var u=s(a)?e:t,f=i?i():{};return u(a,o,n(c,2),f)}}return $0=r,$0}var C0,O8;function b6e(){if(O8)return C0;O8=1;var e=tm(),t=v6e(),n=Object.prototype,s=n.hasOwnProperty,r=t(function(o,i,a){s.call(o,a)?o[a].push(i):e(o,a,[i])});return C0=r,C0}var y6e=b6e();const _6e=bs(y6e),w6e={created(){this.$store.state.instance.staffAccounts.forEach(t=>this.$store.dispatch("fetchUserIfMissing",t))},components:{BasicUserCard:Td},computed:{groupedStaffAccounts(){const e=HO(this.staffAccounts,this.findUserByName).filter(n=>n),t=_6e(e,"role");return[{role:"admin",users:t.admin},{role:"moderator",users:t.moderator}].filter(n=>n.users)}
692,...bn(["findUserByName"]),...mn({staffAccounts:e=>e.instance.staffAccounts})}},S6e={class:"staff-panel"},k6e={class:"panel panel-default base01-background"},$6e={class:"panel-heading timeline-heading base02-background -sticky"},C6e={class:"title"},T6e={class:"panel-body"};function A6e(e,t,n,s,r,o){const i=O("basic-user-card");return p(),b("div",S6e,[g("div",k6e,[g("div",$6e,[g("div",C6e,w(e.$t("about.staff")),1)]),g("div",T6e,[(p(!0),b(Se,null,We(e.groupedStaffAccounts,a=>(p(),b("div",{key:a.role,class:"staff-group"},[g("h4",null,w(e.$t("general.role."+a.role)),1),(p(!0),b(Se,null,We(a.users,c=>(p(),x(i,{key:c.screen_name,user:c},null,8,["user"]))),128))]))),128))])])])}const E6e=ge(w6e,[["render",A6e]]),$l=(e,t,n)=>e.map(s=>t[n]&&t[n][s]&&t[n][s].reason?{instance:s,reason:t[n][s].reason}:{instance:s,reason:""}),I6e={computed:{...mn({federationPolicy:e=>Z.get(e,"instance.federationPolicy"),mrfPolicies:e=>Z.get(e,"instance.federationPolicy.mrf_policies",[]),quarantineInstances:e=>$l(Z.get(e,"instance.federationPolicy.quarantined_instances",[]),Z.get(e,"instance.federationPolicy.quarantined_instances_info",[]),"quarantined_instances"),acceptInstances:e=>$l(Z.get(e,"instance.federationPolicy.mrf_simple.accept",[]),Z.get(e,"instance.federationPolicy.mrf_simple_info",[]),"accept"),rejectInstances:e=>$l(Z.get(e,"instance.federationPolicy.mrf_simple.reject",[]),Z.get(e,"instance.federationPolicy.mrf_simple_info",[]),"reject"),ftlRemovalInstances:e=>$l(Z.get(e,"instance.federationPolicy.mrf_simple.federated_timeline_removal",[]),Z.get(e,"instance.federationPolicy.mrf_simple_info",[]),"federated_timeline_removal"),mediaNsfwInstances:e=>$l(Z.get(e,"instance.federationPolicy.mrf_simple.media_nsfw",[]),Z.get(e,"instance.federationPolicy.mrf_simple_info",[]),"media_nsfw"),mediaRemovalInstances:e=>$l(Z.get(e,"instance.federationPolicy.mrf_simple.media_removal",[]),Z.get(e,"instance.federationPolicy.mrf_simple_info",[]),"media_removal"),keywordsFtlRemoval:e=>Z.get(e,"instance.federationPolicy.mrf_keyword.federated_timeline_removal",[]),keywordsReject:e=>Z.get(e,"instance.federationPolicy.mrf_keyword.reject",[]),keywordsReplace:e=>Z.get(e,"instance.federationPolicy.mrf_keyword.replace",[])}),hasInstanceSpecificPolicies(){return this.quarantineInstances.length||this.acceptInstances.length||this.rejectInstances.length||this.ftlRemovalInstances.length||this.mediaNsfwInstances.length||this.mediaRemovalInstances.length},hasKeywordPolicies(){return this.keywordsFtlRemoval.length||this.keywordsReject.length||this.keywordsReplace.length}}},P6e={key:0,class:"mrf-transparency-panel"},L6e={class:"panel panel-default base01-background"},O6e={class:"panel-heading timeline-heading base02-background -sticky"},R6e={class:"title"},M6e={class:"panel-body"},N6e={class:"mrf-section"},F6e=["textContent"],D6e={key:0},U6e={key:1},j6e={key:0},B6e={key:1},z6e={key:2},q6e={key:0},H6e={key:1},V6e={key:3},W6e={key:0},G6e={key:1},K6e={key:4},x6e={key:0},Y6e={key:1},X6e={key:5},J6e={key:0},Z6e={key:1},Q6e={key:6},eTe={key:0},tTe={key:1},nTe={key:7},sTe={key:8},rTe=["textContent"],oTe={key:9},iTe=["textContent"],aTe={key:10};function lTe(e,t,n,s,r,o){return e.federationPolicy?(p(),b("div",P6e,[g("div",L6e,[g("div",O6e,[g("div",R6e,w(e.$t("about.mrf.federation")),1)]),g("div",M6e,[g("div",N6e,[g("h2",null,w(e.$t("about.mrf.mrf_policies")),1),g("p",null,w(e.$t("about.mrf.mrf_policies_desc")),1),g("ul",null,[(p(!0),b(Se,null,We(e.mrfPolicies,i=>(p(),b("li",{key:i,textContent:w(i)},null,8,F6e))),128))]),e.hasInstanceSpecificPolicies?(p(),b("h2",D6e,w(e.$t("about.mrf.simple.simple_policies")),1)):E("",!0),e.acceptInstances.length?(p(),b("div",U6e,[g("h4",null,w(e.$t("about.mrf.simple.accept")),1),g("p",null,w(e.$t("about.mrf.simple.accept_desc")),1),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.acceptInstances,i=>(p(),b("tr",{key:i.instance+"_accept"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",j6e,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",B6e,w(i.reason),1))]))),128))])])])):E("",!0),e.rejectInstances.length?(p(),b("div",z6e,[g("h4",null,w(e.$t("about.mrf.simple.reject")),1),g("p",null,w(e.$t("about.mrf.simple.reject_desc")),1
692),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.rejectInstances,i=>(p(),b("tr",{key:i.instance+"_reject"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",q6e,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",H6e,w(i.reason),1))]))),128))])])])):E("",!0),e.quarantineInstances.length?(p(),b("div",V6e,[g("h4",null,w(e.$t("about.mrf.simple.quarantine")),1),g("p",null,w(e.$t("about.mrf.simple.quarantine_desc")),1),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.quarantineInstances,i=>(p(),b("tr",{key:i.instance+"_quarantine"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",W6e,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",G6e,w(i.reason),1))]))),128))])])])):E("",!0),e.ftlRemovalInstances.length?(p(),b("div",K6e,[g("h4",null,w(e.$t("about.mrf.simple.ftl_removal")),1),g("p",null,w(e.$t("about.mrf.simple.ftl_removal_desc")),1),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.ftlRemovalInstances,i=>(p(),b("tr",{key:i.instance+"_ftl_removal"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",x6e,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",Y6e,w(i.reason),1))]))),128))])])])):E("",!0),e.mediaNsfwInstances.length?(p(),b("div",X6e,[g("h4",null,w(e.$t("about.mrf.simple.media_nsfw")),1),g("p",null,w(e.$t("about.mrf.simple.media_nsfw_desc")),1),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.mediaNsfwInstances,i=>(p(),b("tr",{key:i.instance+"_media_nsfw"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",J6e,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",Z6e,w(i.reason),1))]))),128))])])])):E("",!0),e.mediaRemovalInstances.length?(p(),b("div",Q6e,[g("h4",null,w(e.$t("about.mrf.simple.media_removal")),1),g("p",null,w(e.$t("about.mrf.simple.media_removal_desc")),1),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.mediaRemovalInstances,i=>(p(),b("tr",{key:i.instance+"_media_removal"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",eTe,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",tTe,w(i.reason),1))]))),128))])])])):E("",!0),e.hasKeywordPolicies?(p(),b("h2",nTe,w(e.$t("about.mrf.keyword.keyword_policies")),1)):E("",!0),e.keywordsFtlRemoval.length?(p(),b("div",sTe,[g("h4",null,w(e.$t("about.mrf.keyword.ftl_removal")),1),g("ul",null,[(p(!0),b(Se,null,We(e.keywordsFtlRemoval,i=>(p(),b("li",{key:i,textContent:w(i)},null,8,rTe))),128))])])):E("",!0),e.keywordsReject.length?(p(),b("div",oTe,[g("h4",null,w(e.$t("about.mrf.keyword.reject")),1),g("ul",null,[(p(!0),b(Se,null,We(e.keywordsReject,i=>(p(),b("li",{key:i,textContent:w(i)},null,8,iTe))),128))])])):E("",!0),e.keywordsReplace.length?(p(),b("div",aTe,[g("h4",null,w(e.$t("about.mrf.keyword.replace")),1),g("ul",null,[(p(!0),b(Se,null,We(e.keywordsReplace,i=>(p(),b("li",{key:i},w(i.pattern)+" "+w(e.$t("about.mrf.keyword.is_replaced_by"))+" "+w(i.replacement),1))),128))])])):E("",!0)])])])])):E("",!0)}const cTe=ge(I6e,[["render",lTe]]),uTe={components:{InstanceSpecificPanel:PO,FeaturesPanel:LO,TermsOfServicePanel:xO,StaffPanel:E6e,MRFTransparencyPanel:cTe},computed:{showFeaturesPanel(){return this.$store.state.instance.showFeaturesPanel},showInstanceSpecificPanel(){return this.$store.state.instance.showInstanceSpecificPanel&&!this.$store.getters.mergedConfig.hideISP&&this.$store.state.instance.instanceSpecificPanelContent}}},dTe={class:"column-inner"};function fTe(e,t,n,s,r,o){const i=O("instance-specific-panel"),a=O("staff-panel"),c=O("terms-of-service-panel"),u=O("MRFTransparencyPanel"),f=O("features-panel");return p(),b("div",dTe,[e.showInstanceSpecificPanel?(p(),x(i,{key:0})):E("",!0),T(a),T(c),T(u),e.showFeaturesPanel?(p(),x(f,{key:1})):E("",!0)])}const hTe=ge(uTe,[["render",fTe]]),pTe={data:()=>({error:!1}),mounted(){this.redirect()},methods:{redirect(){const e=this.$route.params.username+"@"+this.$route.params.hostname;this.$store.state.api.backendInteractor.fetchUser({id:e}).then(t=>{if(t.error)this.error=!0;else{this.$store.commit("addNewUsers",[t]);const n=t.id;this.$router.replace({name:"external-user-profile",params:{id:n}})}}).catch(()=>{this.error=!0})}}},mTe={class:"panel panel-default"},gTe={class:"panel-heading"},vTe={class:"title"},bTe={class:"panel-body"},yTe={key:0};function _Te(e,t,n,s,r,o){return p(),b("div",mTe,[g("div",gTe,[g("h1",vTe,w(e.$t("remote_user_resolver.remote_user_resolver")),1)]),g("div",bTe,[g("p",null,w(e.$t("remote_user_resolver.searching_for"))+" @"+w(e.$route.params.username)+"@"+w(e.$route.params.hostname),1),e.error?(p(),b("p",yTe,w(e.$t("remote_user_resolver.error")),1)):E("",!0)])])}const R8=ge(pTe,[["render",_Te]]);et.add(vd);const wTe={props:["list"]},STe={class:"list-card"};function kTe(e,t,n,s,r,o){const i=O("router-link"),a=O("FAIcon");return p(),b("div",STe,[T(i,{to:{name:"lists-timeline",params:{id:e.list.id}},class:"list-name"},{default:X(()=>
692[de(w(e.list.title),1)]),_:1},8,["to"]),T(i,{to:{name:"lists-edit",params:{id:e.list.id}},class:"button-list-edit"},{default:X(()=>[T(a,{class:"fa-scale-110 fa-old-padding",icon:"ellipsis-h"})]),_:1},8,["to"])])}const $Te=ge(wTe,[["render",kTe]]),CTe={data(){return{isNew:!1}},components:{ListsCard:$Te},computed:{lists(){return Fn().allLists}},methods:{cancelNewList(){this.isNew=!1},newList(){this.isNew=!0}}},TTe={class:"Lists panel panel-default"},ATe={class:"panel-heading"},ETe={class:"title"},ITe={class:"title"},PTe={class:"panel-body"};function LTe(e,t,n,s,r,o){const i=O("router-link"),a=O("ListsCard");return p(),b("div",TTe,[g("div",ATe,[g("div",ETe,[g("h1",ITe,w(e.$t("lists.lists")),1)]),T(i,{to:{name:"lists-new"},class:"button-default btn new-list-button"},{default:X(()=>[de(w(e.$t("lists.new")),1)]),_:1})]),g("div",PTe,[(p(!0),b(Se,null,We(e.lists.slice().reverse(),c=>(p(),x(a,{key:c,list:c,class:"list-item"},null,8,["list"]))),128))])])}const OTe=ge(CTe,[["render",LTe]]),RTe={data(){return{listId:null}},components:{Timeline:lo},computed:{timeline(){return this.$store.state.statuses.timelines.list}},watch:{$route:function(e){e.name==="lists-timeline"&&e.params.id!==this.listId&&(this.listId=e.params.id,this.$store.dispatch("stopFetchingTimeline","list"),this.$store.commit("clearTimeline",{timeline:"list"}),Fn().fetchList({listId:this.listId}),this.$store.dispatch("startFetchingTimeline",{timeline:"list",listId:this.listId}))}},created(){this.listId=this.$route.params.id,Fn().fetchList({listId:this.listId}),this.$store.dispatch("startFetchingTimeline",{timeline:"list",listId:this.listId})},unmounted(){this.$store.dispatch("stopFetchingTimeline","list"),this.$store.commit("clearTimeline",{timeline:"list"})}};function MTe(e,t,n,s,r,o){const i=O("Timeline");return p(),x(i,{title:"list.name",timeline:e.timeline,"list-id":e.listId,"timeline-name":"list"},null,8,["timeline","list-id"])}const NTe=ge(RTe,[["render",MTe]]);et.add(Ba,qa);const FTe={components:{Checkbox:io},emits:["loading","loadingDone","results"],data(){return{loading:!1,query:"",followingOnly:!0}},methods:{onInput:Z.debounce(function(){this.search(this.query)},2e3),search(e){if(!e){this.loading=!1;return}this.loading=!0,this.$emit("loading"),this.userIds=[],this.$store.dispatch("search",{q:e,resolve:!0,type:"accounts",following:this.followingOnly}).then(t=>{this.$emit("results",t.accounts.map(n=>n.id))}).finally(()=>{this.loading=!1,this.$emit("loadingDone")})}}},DTe={class:"ListsUserSearch"},UTe={class:"input-wrap"},jTe={class:"input-search"},BTe=["placeholder"],zTe={class:"input-wrap"};function qTe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Checkbox");return p(),b("div",DTe,[g("div",UTe,[g("div",jTe,[T(i,{class:"search-icon fa-scale-110 fa-old-padding",icon:"search"})]),at(g("input",{ref:"search","onUpdate:modelValue":t[0]||(t[0]=c=>e.query=c),class:"input",placeholder:e.$t("lists.search"),onInput:t[1]||(t[1]=(...c)=>e.onInput&&e.onInput(...c))},null,40,BTe),[[Nt,e.query]])]),g("div",zTe,[T(a,{modelValue:e.followingOnly,"onUpdate:modelValue":t[2]||(t[2]=c=>e.followingOnly=c),onChange:e.onInput},{default:X(()=>[de(w(e.$t("lists.following_only")),1)]),_:1},8,["modelValue","onChange"])])])}const HTe=ge(FTe,[["render",qTe]]);et.add(Ba,qa);const VTe={components:{BasicUserCard:Td,UserAvatar:er,ListsUserSearch:HTe,TabSwitcher:lm,PanelLoading:mO},data(){return{title:"",titleDraft:"",membersUserIds:[],removedUserIds:new Set([]),searchUserIds:[],addedUserIds:new Set([]),searchLoading:!1,reallyDelete:!1}},created(){this.id&&(Fn().fetchList({listId:this.id}).then(()=>
692{this.title=this.findListTitle(this.id),this.titleDraft=this.title}),Fn().fetchListAccounts({listId:this.id}).then(()=>{this.membersUserIds=this.findListAccounts(this.id),this.membersUserIds.forEach(e=>{this.$store.dispatch("fetchUserIfMissing",e)})}))},computed:{id(){return this.$route.params.id},membersUsers(){return[...this.membersUserIds,...this.addedUserIds].map(e=>this.findUser(e)).filter(e=>e)},searchUsers(){return this.searchUserIds.map(e=>this.findUser(e)).filter(e=>e)},...mn({currentUser:e=>e.users.currentUser}),...sn(Fn,["findListTitle","findListAccounts"]),...bn(["findUser"])},methods:{onInput(){this.search(this.query)},toggleRemoveMember(e){this.removedUserIds.has(e.id)?(this.id&&this.addUser(e),this.removedUserIds.delete(e.id)):(this.id&&this.removeUser(e.id),this.removedUserIds.add(e.id))},toggleAddFromSearch(e){this.addedUserIds.has(e.id)?(this.id&&this.removeUser(e.id),this.addedUserIds.delete(e.id)):(this.id&&this.addUser(e),this.addedUserIds.add(e.id))},isRemoved(e){return this.removedUserIds.has(e.id)},isAdded(e){return this.addedUserIds.has(e.id)},addUser(e){Fn().addListAccount({accountId:e.id,listId:this.id})},removeUser(e){Fn().removeListAccount({accountId:e,listId:this.id})},onSearchLoading(){this.searchLoading=!0},onSearchLoadingDone(){this.searchLoading=!1},onSearchResults(e){this.searchLoading=!1,this.searchUserIds=e},updateListTitle(){Fn().setList({listId:this.id,title:this.titleDraft}
692),this.title=this.findListTitle(this.id)},createList(){Fn().createList({title:this.titleDraft}).then(e=>Fn().setListAccounts({listId:e.id,accountIds:[...this.addedUserIds]}).then(()=>e.id)).then(e=>{this.$router.push({name:"lists-timeline",params:{id:e}})}).catch(e=>{Xe().pushGlobalNotice({messageKey:"lists.error",messageArgs:[e.message],level:"error"})})},deleteList(){Fn().deleteList({listId:this.id}),this.$router.push({name:"lists"})}}},WTe={class:"panel-default panel ListEdit"},GTe={ref:"header",class:"panel-heading list-edit-heading"},KTe={class:"title"},xTe={class:"panel-body"},YTe={class:"input-wrap"},XTe={for:"list-edit-title"},JTe=["label"],ZTe={class:"users-list"},QTe=["onClick"],e8e=["label"],t8e={key:0,class:"loading"},n8e={key:1,class:"users-list"},s8e={key:0},r8e=["onClick"],o8e=["onClick"],i8e={class:"panel-footer"};function a8e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("i18n-t"),c=O("BasicUserCard"),u=O("ListsUserSearch"),f=O("PanelLoading"),h=O("tab-switcher");return p(),b("div",WTe,[g("div",GTe,[g("button",{class:"button-unstyled go-back-button",onClick:t[0]||(t[0]=(...v)=>e.$router.back&&e.$router.back(...v))},[T(i,{size:"lg",icon:"chevron-left"})]),g("div",KTe,[e.id?(p(),x(a,{key:0,keypath:"lists.editing_list",scope:"global"},{listTitle:X(()=>[de(w(e.title),1)]),_:1})):(p(),x(a,{key:1,keypath:"lists.creating_list",scope:"global"}))])],512),g("div",xTe,[g("div",YTe,[g("label",XTe,w(e.$t("lists.title")),1),t[7]||(t[7]=de(" "+w(" ")+" ",-1)),at(g("input",{id:"list-edit-title",ref:"title","onUpdate:modelValue":t[1]||(t[1]=v=>e.titleDraft=v),class:"input"},null,512),[[Nt,e.titleDraft]]),e.id?(p(),b("button",{key:0,class:"btn button-default follow-button",onClick:t[2]||(t[2]=(...v)=>e.updateListTitle&&e.updateListTitle(...v))},w(e.$t("lists.update_title")),1)):E("",!0)]),T(h,{class:"list-member-management","scrollable-tabs":!0},{default:X(()=>[e.id||e.addedUserIds.size>0?(p(),b("div",{key:0,label:e.$t("lists.manage_members"),class:"members-list"},[g("div",ZTe,[(p(!0),b(Se,null,We(e.membersUsers,v=>(p(),b("div",{key:v.id,class:"member"},[T(c,{user:v},{default:X(()=>[g("button",{class:"btn button-default follow-button",onClick:y=>e.toggleRemoveMember(v)},w(e.isRemoved(v)?e.$t("general.undo"):e.$t("lists.remove_from_list")),9,QTe)]),_:2},1032,["user"])]))),128))])],8,JTe)):E("",!0),g("div",{class:"search-list",label:e.$t("lists.add_members")},[T(u,{onResults:e.onSearchResults,onLoading:e.onSearchLoading,onLoadingDone:e.onSearchLoadingDone},null,8,["onResults","onLoading","onLoadingDone"]),e.searchLoading?(p(),b("div",t8e,[T(f)])):(p(),b("div",n8e,[(p(!0),b(Se,null,We(e.searchUsers,v=>(p(),b("div",{key:v.id,class:"member"},[T(c,{user:v},{default:X(()=>[e.membersUserIds.includes(v.id)?(p(),b("span",s8e,w(e.$t("lists.is_in_list")),1)):E("",!0),e.membersUserIds.includes(v.id)?(p(),b("button",{key:2,class:"btn button-default follow-button",onClick:y=>e.toggleRemoveMember(v)},w(e.isRemoved(v)?e.$t("general.undo"):e.$t("lists.remove_from_list")),9,o8e)):(p(),b("button",{key:1,class:"btn button-default follow-button",onClick:y=>e.toggleAddFromSearch(v)},w(e.isAdded(v)?e.$t("general.undo"):e.$t("lists.add_to_list")),9,r8e))]),_:2},1032,["user"])]))),128))]))],8,e8e)]),_:1})]),g("div",i8e,[t[8]||(t[8]=g("span",{class:"spacer"},null,-1)),e.id?e.reallyDelete?(p(),b(Se,{key:2},[de(w(e.$t("lists.really_delete"))+" ",1),g("button",{class:"btn button-default footer-button",onClick:t[5]||(t[5]=(...v)=>e.deleteList&&e.deleteList(...v))},w(e.$t("general.yes")),1),g("button",{class:"btn button-default footer-button",onClick:t[6]||(t[6]=v=>e.reallyDelete=!1)},w(e.$t("general.no")),1)],64)):(p(),b("button",{key:1,class:"btn button-default footer-button",onClick:t[4]||(t[4]=v=>e.reallyDelete=!0)},w(e.$t("lists.delete")),1)):(p(),b("button",{key:0,class:"btn button-default footer-button",onClick:t[3]||(t[3]=(...v)=>e.createList&&e.createList(...v))},w(e.$t("lists.create")),1))])])}const M8=ge(VTe,[["render",a8e]]),l8e={components:{Checkbox:io},props:{announcement:Object,disabled:Boolean}},c8e={class:"announcement-editor"},u8e=["placeholder","disabled"],d8e={class:"announcement-metadata"},f8e={for:"announcement-start-time"},h8e=["type","disabled"],p8e={class:"announcement-metadata"},m8e={for:"announcement-end-time"},g8e=["type","disabled"],v8e={class:"announcement-metadata"};function b8e(e,t,n,s,r,o){const i=O("Checkbox");return p(),b("div",c8e,[at(g("textarea",{ref:"textarea","onUpdate:modelValue":t[0]||(t[0]=a=>e.announcement.content=a),class:"input post-textarea",rows:"1",cols:"1",placeholder:e.$t("announcements.post_placeholder"),disabled:e.disabled},null,8,u8e),[[Nt,e.announcement.content]]),g("span",d8e,[g("label",f8e,w(e.$t("announcements.start_time_prompt")),1),at(g("input",{id:"announcement-start-time","onUpdate:modelValue":t[1]||(t[1]=a=>e.announcement.startsAt=a),class:"input",type:e.announcement.allDay?"date":"datetime-local",disabled:e.disabled},null,8,h8e),[[$u,e.announcement.startsAt]])]),g("span",p8e,[g("label",m8e,w(e.$t("announcements.end_time_prompt")),1),at(g("input",{id:"announcement-end-time","onUpdate:modelValue":t[2]||(t[2]=a=>e.announcement.endsAt=a),class:"input",type:e.announcement.allDay?"date":"datetime-local",disabled:e.disabled},null,8,g8e),[[$u,e.announcement.endsAt]])]),g("span",v8e,[T(i,{id:"announcement-all-day",modelValue:e.announcement.allDay,"onUpdate:modelValue":t[3]||(t[3]=a=>e.announcement.allDay=a),disabled:e.disabled},{default:X(()=>[de(w(e.$t("announcements.all_day_prompt")),1)]),_:1},8,["modelValue","disabled"])])])}const YO=ge(l8e,[["render",b8e]]),y8e={components:{AnnouncementEditor:YO,RichContent:Mr},data(){return{editing:!1,editedAnnouncement:{content:"",startsAt:void 0,endsAt:void 0,allDay:void 0},editError:""}},props:{announcement:Object},computed:{...mn({currentUser:e=>e.users.currentUser}),canEditAnnouncement(){return this.currentUser&&this.currentUser.privileges.includes("announcements_manage_announcements")},content(){return this.announcement.content},isRead(){return this.announcement.read},publishedAt(){const e=this.announcement.published_at;if(e)return this.formatTimeOrDate(e,Tr.internalToBrowserLocale(this.$i18n.locale))},startsAt(){const e=this.announcement.starts_at;if(e)return this.formatTimeOrDate(e,Tr.internalToBrowserLocale(this.$i18n.locale))},endsAt(){const e=this.announcement.ends_at;if(e)return this.formatTimeOrDate(e,Tr.internalToBrowserLocale(this.$i18n.locale))},inactive(){return this.announcement.inactive}},methods:{markAsRead(){if(!this.isRead)return ms().markAnnouncementAsRead(this.announcement.id)},deleteAnnouncement(){return ms().deleteAnnouncement(this.announcement.id)},formatTimeOrDate(e,t){const n=new Date(e);return this.announcement.all_day?n.toLocaleDateString(t):n.toLocaleStr
692ing(t)},enterEditMode(){this.editedAnnouncement.content=this.announcement.pleroma.raw_content,this.editedAnnouncement.startsAt=this.announcement.starts_at,this.editedAnnouncement.endsAt=this.announcement.ends_at,this.editedAnnouncement.allDay=this.announcement.all_day,this.editing=!0},submitEdit(){ms().editAnnouncement({id:this.announcement.id,...this.editedAnnouncement}).then(()=>{this.editing=!1}).catch(e=>{this.editError=e.error})},cancelEdit(){this.editing=!1},clearError(){this.editError=void 0}}},_8e={class:"announcement"},w8e={class:"heading"},S8e={class:"body"},k8e={class:"footer"},$8e={key:0,class:"times"},C8e={key:0},T8e={key:1},A8e={key:2},E8e={key:1,class:"actions"},I8e=["disabled","title"],P8e={key:2,class:"actions"},L8e={key:0,class:"alert error"};function O8e(e,t,n,s,r,o){const i=O("rich-content"),a=O("announcement-editor"),c=O("FAIcon");return p(),b("div",_8e,[g("div",w8e,[g("h4",null,w(e.$t("announcements.title")),1)]),g("div",S8e,[e.editing?(p(),x(a,{key:1,announcement:e.editedAnnouncement},null,8,["announcement"])):(p(),x(i,{key:0,html:e.content,emoji:e.announcement.emojis,"handle-links":!0},null,8,["html","emoji"]))]),g("div",k8e,[e.editing?E("",!0):(p(),b("div",$8e,[e.publishedAt?(p(),b("span",C8e,w(e.$t("announcements.published_time_display",{time:e.publishedAt})),1)):E("",!0),e.startsAt?(p(),b("span",T8e,w(e.$t("announcements.start_time_display",{time:e.startsAt})),1)):E("",!0),e.endsAt?(p(),b("span",A8e,w(e.$t("announcements.end_time_display",{time:e.endsAt})),1)):E("",!0)])),e.editing?(p(),b("div",P8e,[g("button",{class:"btn button-default",onClick:t[3]||(t[3]=(...u)=>e.submitEdit&&e.submitEdit(...u))},w(e.$t("announcements.submit_edit_action")),1),g("button",{class:"btn button-default",onClick:t[4]||(t[4]=(...u)=>e.cancelEdit&&e.cancelEdit(...u))},w(e.$t("announcements.cancel_edit_action")),1),e.editing&&e.editError?(p(),b("div",L8e,[de(w(e.$t("announcements.edit_error",{error:e.error}))+" ",1),g("button",{class:"button-unstyled",onClick:t[5]||(t[5]=(...u)=>e.clearError&&e.clearError(...u))},[T(c,{class:"fa-scale-110 fa-old-padding",icon:"times",title:e.$t("announcements.close_error")},null,8,["title"])])])):E("",!0)])):(p(),b("div",E8e,[e.currentUser?(p(),b("button",{key:0,class:he(["btn button-default",{toggled:e.isRead}]),disabled:e.inactive,title:e.inactive?e.$t("announcements.inactive_message"):"",onClick:t[0]||(t[0]=(...u)=>e.markAsRead&&e.markAsRead(...u))},w(e.$t("announcements.mark_as_read_action")),11,I8e)):E("",!0),e.canEditAnnouncement?(p(),b("button",{key:1,class:"btn button-default",onClick:t[1]||(t[1]=(...u)=>e.enterEditMode&&e.enterEditMode(...u))},w(e.$t("announcements.edit_action")),1)):E("",!0),e.canEditAnnouncement?(p(),b("button",{key:2,class:"btn button-default",onClick:t[2]||(t[2]=(...u)=>e.deleteAnnouncement&&e.deleteAnnouncement(...u))},w(e.$t("announcements.delete_action")),1)):E("",!0)]))])])}const R8e=ge(y8e,[["render",O8e]]),M8e={components:{Announcement:R8e,AnnouncementEditor:YO},data(){return{newAnnouncement:{content:"",startsAt:void 0,endsAt:void 0,allDay:!1},posting:!1,error:void 0}},mounted(){ms().fetchAnnouncements()},computed:{...mn({currentUser:e=>e.users.currentUser}),announcements(){return ms().announcements},canPostAnnouncement(){return this.currentUser&&this.currentUser.privileges.includes("announcements_manage_announcements")}},methods:{postAnnouncement(){this.posting=!0,ms().postAnnouncement(this.newAnnouncement).then(()=>{this.newAnnouncement.content="",this.startsAt=void 0,this.endsAt=void 0}).catch(e=>{this.error=e.error}).finally(()=>{this.posting=!1})},clearError(){this.error=void 0}}},N8e={class:"panel panel-default announcements-page"},F8e={class:"panel-heading"},D8e={class:"title"},U8e={class:"panel-body"},j8e={key:0},B8e={class:"post-form"},z8e={class:"heading"},q8e={class:"body"},H8e={class:"footer"},V8e=["disabled"],W8e={key:0,class:"alert error"};function G8e(e,t,n,s,r,o){const i=O("announcement-editor"),a=O("FAIcon"),c=O("announcement");return p(),b("div",N8e,[g("div",F8e,[g("h1",D8e,w(e.$t("announcements.page_header")),1)]),g("div",U8e,[e.canPostAnnouncement?(p(),b("section",j8e,[g("div",B8e,[g("div",z8e,[g("h4",null,w(e.$t("announcements.post_form_header")),1)]),g("div",q8e,[T(i,{announcement:e.newAnnouncement,disabled:e.posting},null,8,["announcement","disabled"])]),g("div",H8e,[g("button",{class:"btn button-default post-button",disabled:e.posting,onClick:t[0]||(t[0]=Te((...u)=>e.postAnnouncement&&e.postAnnouncement(...u),["prevent"]))},w(e.$t("announcements.post_action")),9,V8e),e.error?(p(),b("div",W8e,[de(w(e.$t("announcements.post_error",{error:e.error}))+" ",1),g("button",{class:"button-unstyled",onClick:t[1]||(t[1]=(...u)=>e.clearError&&e.clearError(...u))}
692,[T(a,{class:"fa-scale-110 fa-old-padding",icon:"times",title:e.$t("announcements.close_error")},null,8,["title"])])])):E("",!0)])])])):E("",!0),(p(!0),b(Se,null,We(e.announcements,u=>(p(),b("section",{key:u.id},[T(c,{announcement:u},null,8,["announcement"])]))),128))])])}const K8e=ge(M8e,[["render",G8e]]),x8e={created(){this.$store.commit("clearTimeline",{timeline:"quotes"}),this.$store.dispatch("startFetchingTimeline",{timeline:"quotes",statusId:this.statusId})},components:{Timeline:lo},computed:{statusId(){return this.$route.params.id},timeline(){return this.$store.state.statuses.timelines.quotes}},watch:{statusId(){this.$store.commit("clearTimeline",{timeline:"quotes"}),this.$store.dispatch("startFetchingTimeline",{timeline:"quotes",statusId:this.statusId})}},unmounted(){this.$store.dispatch("stopFetchingTimeline","quotes")}};function Y8e(e,t,n,s,r,o){const i=O("Timeline");return p(),x(i,{title:e.$t("nav.quotes"),timeline:e.timeline,"timeline-name":"quotes","status-id":e.statusId},null,8,["title","timeline","status-id"])}const X8e=ge(x8e,[["render",Y8e]]);et.add(Ip);const J8e={components:{PostStatusForm:lc,EditStatusForm:jO,ConfirmModal:Nr,StatusContent:Ka,Gallery:em},props:{draft:{type:Object,required:!0}},data(){return{referenceDraft:Z.cloneDeep(this.draft),editing:!1,showingConfirmDialog:!1}},computed:{relAttrs(){return this.draft.type==="edit"?{statusId:this.draft.refId}:this.draft.type==="reply"?{replyTo:this.draft.refId}:{}},safeToSave(){var e;return this.draft.status||((e=this.draft.files)==null?void 0:e.length)||this.draft.hasPoll},postStatusFormProps(){return{draftId:this.draft.id,...this.relAttrs}},refStatus(){return this.draft.refId?this.$store.state.statuses.allStatusesObject[this.draft.refId]:void 0},localCollapseSubjectDefault(){return this.$store.getters.mergedConfig.collapseMessageWithSubject},nsfwClickthrough(){return!(!this.draft.nsfw||this.draft.summary&&this.localCollapseSubjectDefault)}},watch:{editing(e){e||(this.safeToSave?this.$store.dispatch("addOrSaveDraft",{draft:this.draft}):this.$store.dispatch("addOrSaveDraft",{draft:this.referenceDraft}))}},methods:{toggleEditing(){this.editing=!this.editing},abandon(){this.showingConfirmDialog=!0},doAbandon(){this.$store.dispatch("abandonDraft",{id:this.draft.id}).then(()=>{this.hideConfirmDialog()})},hideConfirmDialog(){this.showingConfirmDialog=!1}}},Z8e={class:"Draft"},Q8e={key:0,class:"status-content"},eAe={class:"status-preview"},tAe={class:"status_content"},nAe={key:0},sAe={key:1},rAe={key:2,class:"faint"},oAe=["title"],iAe={class:"poll-indicator"},aAe={key:1},lAe={class:"actions"},cAe=["aria-expanded"];function uAe(e,t,n,s,r,o){var S;const i=O("router-link"),a=O("i18n-t"),c=O("StatusContent"),u=O("gallery"),f=O("FAIcon"),h=O("PostStatusForm"),v=O("EditStatusForm"),y=O("confirm-modal");return p(),b("article",Z8e,[e.editing?E("",!0):(p(),b("div",Q8e,[g("div",null,[e.draft.type==="reply"||e.draft.type==="edit"?(p(),x(a,{key:0,tag:"span",keypath:e.draft.type==="reply"?"drafts.replying":"drafts.editing"},{statusLink:X(()=>[T(i,{class:"faint-link",to:{name:"conversation",params:{id:e.draft.refId}}},{default:X(()=>[de(w(e.refStatus?e.refStatus.external_url:e.$t("drafts.unavailable")),1)]),_:1},8,["to"])]),_:1},8,["keypath"])):E("",!0),e.draft.refId&&e.refStatus?(p(),x(c,{key:1,class:"status-content",status:e.refStatus,compact:!0},null,8,["status"])):E("",!0)]),g("div",eAe,[g("span",tAe,[e.draft.spoilerText?(p(),b("p",nAe,[g("i",null,w(e.draft.spoilerText)+": ",1)])):E("",!0),e.draft.status?(p(),b("p",sAe,w(e.draft.status),1)):(p(),b("p",rAe,w(e.$t("drafts.empty")),1))]),((S=e.draft.files)==null?void 0:S.length)!==0?(p(),x(u,{key:0,class:"attachments media-body",compact:!0,nsfw:e.nsfwClickthrough,attachments:e.draft.files,limit:1,size:"small",onPlay:t[0]||(t[0]=C=>e.$emit("mediaplay",e.attachment.id)),onPause:t[1]||(t[1]=C=>e.$emit("mediapause",e.attachment.id))},null,8,["nsfw","attachments"])):E("",!0),e.draft.poll.options?(p(),b("div",{key:1,class:"poll-indicator-container",title:e.$t("drafts.poll_tooltip")},[g("div",iAe,[T(f,{icon:"poll-h",size:"3x"})])],8,oAe)):E("",!0)])])),e.editing?(p(),b("div",aAe,[e.draft.type!=="edit"?(p(),x(h,An({key:0,"hide-draft":!0},e.postStatusFormProps),null,16)):(p(),x(v,{key:1,"hide-draft":!0,params:e.postStatusFormProps},null,8,["params"]))])):E("",!0),(p(),x(Yn,{to:"#modal"},[e.showingConfirmDialog?(p(),x(y,{key:0,title:e.$t("drafts.abandon_confirm_title"),"confirm-text":e.$t("drafts.abandon_confirm_accept_button"),"cancel-text":e.$t("drafts.abandon_confirm_cancel_button"),onAccepted:e.doAbandon,onCancelled:e.hideConfirmDialog},{default:X(()=>[de(w(e.$t("drafts.abandon_confirm")),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)])),g("div",lAe,[g("button",{class:"btn button-default","aria-expanded":e.editing,onClick:t[2]||(t[2]=Te((...C)=>e.toggleEditing&&e.toggleEditing(...C),["prevent","stop"]))},w(e.editing?e.$t("drafts.save"):e.$t("drafts.continue")),9,cAe),g("button",{class:"btn button-default",onClick:t[3]||(t[3]=Te((...C)=>e.abandon&&e.abandon(...C),["prevent","stop"]))},w(e.$t("drafts.abandon")),1)])])}const dAe=ge(J8e,[["render",uAe]]),fAe={components:{Draft:dAe,List:Cd},computed:{drafts(){return this.$store.getters.draftsArray}}},hAe={class:"Drafts"},pAe={class:"panel panel-default"},mAe={class:"panel-heading -sticky"},gAe={class:"title"},vAe={class:"panel-body"},bAe={key:0,class:"empty-drafs-list-alert"};function yAe(e,t,n,s,r,o){const i=O("Draft"),a=O("List");return p(),b("div",hAe,[g("div",pAe,[g("div",mAe,[g("div",gAe,w(e.$t("drafts.drafts")),1)]),g("div",vAe,[e.drafts.length===0?(p(),b("div",bAe,w(e.$t("drafts.no_drafts")),1)):(p(),x(a,{key:1,items:e.drafts,"non-interactive":!0},{item:X(({item:c})=>[T(i,{class:"draft",draft:c},null,8,["draft"])]),_:1},8,["items"]))])])])}const _Ae=ge(fAe,[["render",yAe]]);et.add(vd);const wAe={props:["folder","allBookmarks"],computed:{firstLetter(){return this.folder?this.folder.name[0]:null}}},SAe={key:0,class:"bookmark-folder-card"},kAe={class:"icon"},$Ae={key:1,class:"bookmark-folder-card"},CAe=["src","alt","title"],TAe={key:1,class:"iconEmoji"},AAe={key:2,class:"icon iconLetter fa-scale-110"};function EAe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("router-link");return e.allBookmarks?(p(),b("div",SAe,[T(a,{to:{name:"bookmarks"},class:"bookmark-folder-name"},{default:X(()=>[g("span",kAe,[T(i,{"fixed-width":"",class:"fa-scale-110 menu-icon",icon:"bookmark"})]),de(w(e.$t("nav.all_bookmarks")),1)]),_:1})])):(p(),b("div",$Ae,[T(a,{to:{name:"bookmark-folder",params:{id:e.folder.id}},class:"bookmark-folder-name"},{default:X(()=>[e.folder.emoji_url?(p(),b("img",{key:0,class:"iconEmoji iconEmoji-image",src:e.folder.emoji_url,alt:e.folder.emoji,title:e.folder.emoji},null,8,CAe)):e.folder.emoji?(p(),b("span",TAe,[g("span",null,w(e.folder.emoji),1)])):e.firstLetter?(p(),b("span",AAe,w(e.firstLetter),1)):E("",!0),de(w(e.folder.name),1)]),_:1},8,["to"]),T(a,{to:{name:"bookmark-folder-edit",params:{id:e.folder.id}},class:"button-folder-edit"},{default:X(()=>
692[T(i,{class:"fa-scale-110 fa-old-padding",icon:"ellipsis-h"})]),_:1},8,["to"])]))}const IAe=ge(wAe,[["render",EAe]]),PAe={data(){return{isNew:!1}},components:{BookmarkFolderCard:IAe},computed:{bookmarkFolders(){return no().allFolders}},methods:{cancelNewFolder(){this.isNew=!1},newFolder(){this.isNew=!0}}},LAe={class:"Bookmark-folders panel panel-default"},OAe={class:"panel-heading"},RAe={class:"title"},MAe={class:"panel-body"};function NAe(e,t,n,s,r,o){const i=O("router-link"),a=O("BookmarkFolderCard");return p(),b("div",LAe,[g("div",OAe,[g("h1",RAe,w(e.$t("nav.bookmark_folders")),1),T(i,{to:{name:"bookmark-folder-new"},class:"button-default btn new-folder-button"},{default:X(()=>[de(w(e.$t("bookmark_folders.new")),1)]),_:1})]),g("div",MAe,[T(a,{"all-bookmarks":!0,class:"list-item"}),(p(!0),b(Se,null,We(e.bookmarkFolders.slice().reverse(),c=>(p(),x(a,{key:c,folder:c,class:"list-item"},null,8,["folder"]))),128))])])}const FAe=ge(PAe,[["render",NAe]]),DAe={data(){return{name:"",nameDraft:"",emoji:"",emojiUrl:null,emojiDraft:"",emojiUrlDraft:null,emojiPickerExpanded:!1,reallyDelete:!1}},components:{EmojiPicker:z2},created(){if(!this.id)return;const e=this.$store.state.users.currentUser.credentials;Ln.fetchBookmarkFolders({credentials:e}).then(t=>{const n=t.find(s=>s.id===this.id);n&&(this.nameDraft=this.name=n.name,this.emojiDraft=this.emoji=n.emoji,this.emojiUrlDraft=this.emojiUrl=n.emoji_url)})},computed:{id(){return this.$route.params.id}},methods:{selectEmoji(e){this.emojiDraft=e.insertion,this.emojiUrlDraft=e.insertionUrl},showEmojiPicker(){this.emojiPickerExpanded||this.$refs.picker.showPicker()},onShowPicker(){this.emojiPickerExpanded=!0},onClosePicker(){this.emojiPickerExpanded=!1},updateFolder(){no().updateBookmarkFolder({folderId:this.id,name:this.nameDraft,emoji:this.emojiDraft}).then(()=>{this.$router.push({name:"bookmark-folders"})})},createFolder(){no().createBookmarkFolder({name:this.nameDraft,emoji:this.emojiDraft}).then(()=>{this.$router.push({name:"bookmark-folders"})}).catch(e=>{Xe().pushGlobalNotice({messageKey:"bookmark_folders.error",messageArgs:[e.message],level:"error"})})},deleteFolder(){no().deleteBookmarkFolder({folderId:this.id}),this.$router.push({name:"bookmark-folders"})}}},UAe={class:"panel-default panel BookmarkFolderEdit"},jAe={ref:"header",class:"panel-heading folder-edit-heading"},BAe={class:"title"},zAe={class:"panel-body"},qAe={class:"input-wrap"},HAe={for:"folder-edit-title"},VAe=["title"],WAe=["src","alt","title"],GAe={key:1,class:"iconEmoji"},KAe={class:"input-wrap"},xAe={for:"folder-edit-title"},YAe={class:"panel-footer"},XAe={key:3};function JAe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("i18n-t"),c=O("EmojiPicker");return p(),b("div",UAe,[g("div",jAe,[g("button",{class:"button-unstyled go-back-button",onClick:t[0]||(t[0]=(...u)=>e.$router.back&&e.$router.back(...u))},[T(i,{size:"lg",icon:"chevron-left"})]),g("h1",BAe,[e.id?(p(),x(a,{key:0,keypath:"bookmark_folders.editing_folder",scope:"global"},{folderName:X(()=>[de(w(e.name),1)]),_:1})):(p(),x(a,{key:1,keypath:"bookmark_folders.creating_folder",scope:"global"}))])],512),g("div",zAe,[g("div",qAe,[g("label",HAe,w(e.$t("bookmark_folders.emoji")),1),g("button",{class:"input input-emoji",title:e.$t("bookmark_folder.emoji_pick"),onClick:t[1]||(t[1]=(...u)=>e.showEmojiPicker&&e.showEmojiPicker(...u))},[e.emojiUrlDraft?(p(),b("img",{key:0,class:"iconEmoji iconEmoji-image",src:e.emojiUrlDraft,alt:e.emojiDraft,title:e.emojiDraft},null,8,WAe)):e.emojiDraft?(p(),b("span",GAe,[g("span",null,w(e.emojiDraft),1)])):E("",!0)],8,VAe),T(c,{ref:"picker",class:"emoji-picker-panel",onEmoji:e.selectEmoji,onShow:e.onShowPicker,onClose:e.onClosePicker},null,8,["onEmoji","onShow","onClose"])]),g("div",KAe,[g("label",xAe,w(e.$t("bookmark_folders.name")),1),at(g("input",{id:"folder-edit-title",ref:"name","onUpdate:modelValue":t[2]||(t[2]=u=>e.nameDraft=u),class:"input"},null,512),[[Nt,e.nameDraft]])])]),g("div",YAe,[t[8]||(t[8]=g("span",{class:"spacer"},null,-1)),e.id?e.reallyDelete?(p(),b(Se,{key:2},[de(w(e.$t("bookmark_folders.really_delete"))+" ",1),g("button",{class:"btn button-default footer-button",onClick:t[5]||(t[5]=(...u)=>e.deleteFolder&&e.deleteFolder(...u))},w(e.$t("general.yes")),1),g("button",{class:"btn button-default footer-button",onClick:t[6]||(t[6]=u=>e.reallyDelete=!1)},w(e.$t("general.no")),1)],64)):(p(),b("button",{key:1,class:"btn button-default footer-button",onClick:t[4]||(t[4]=u=>e.reallyDelete=!0)},w(e.$t("bookmark_folders.delete")),1)):(p(),b("button",{key:0,class:"btn button-default footer-button",onClick:t[3]||(t[3]=(...u)=>e.createFolder&&e.createFolder(...u))},w(e.$t("bookmark_folders.create")),1)),e.id&&!e.reallyDelete?(p(),b("div",XAe,[g("button",{class:"btn button-default follow-button",onClick:t[7]||(t[7]=(...u)=>e.updateFolder&&e.updateFolder(...u))},w(e.$t("bookmark_folders.update_folder")),1)])):E("",!0)])])}const N8=ge(DAe,[["render",JAe]]),ZAe=e=>{const t=(s,r,o)=>{e.state.users.currentUser?o():o(e.state.instance.redirectRootNoLogin||"/main/all")};let n=[{name:"root",path:"/",redirect:()=>(e.state.users.currentUser?e.state.instance.redirectRootLogin:e.state.instance.redirectRootNoLogin)||"/main/all"},{name:"public-external-timeline",path:"/main/all",component:zSe},{name:"public-timeline",path:"/main/public",component:NSe},{name:"friends",path:"/main/friends",component:VSe,beforeEnter:t},{name:"tag-timeline",path:"/tag/:tag",component:KSe},{name:"bookmarks",path:"/bookmarks",component:h8},{name:"bubble",path:"/bubble",component:USe},{name:"conversation",path:"/notice/:id",component:ZSe,meta:{dontScroll:!0}},{name:"quotes",path:"/notice/:id/quotes",component:X8e},{name:"remote-user-profile-acct",path:"/remote-users/:_(@)?:username([^/@]+)@:hostname([^/@]+)",component:R8,beforeEnter:t},{name:"remote-user-profile",path:"/remote-users/:hostname/:username",component:R8,beforeEnter:t},{name:"external-user-profile",path:"/users/$:id",component:v0},{name:"interactions",path:"/users/:username/interactions",component:d3e,beforeEnter:t},{name:"dms",path:"/users/:username/dms",component:p3e,beforeEnter:t},{name:"registration",path:"/registration",component:E8},{name:"password-reset",path:"/password-reset",component:KCe,props:!0},{name:"registration-token",path:"/registration/:token",component:E8},{name:"friend-requests",path:"/friend-requests",component:r6e,beforeEnter:t},{name:"notifications",path:"/:username/notifications",component:im,props:()=>({disableTeleport:!0}),beforeEnter:t},{name:"login",path:"/login",component:GL},{name:"shout-panel",path:"/shout-panel",component:OO,props:()=>({floating:!1})},{name:"oauth-callback",path:"/oauth-callback",component:a6e,props:s=>({code:s.query.code})},{name:"search",path:"/search",component:D$e,props:s=>({query:s.query.query})},{name:"who-to-follow",path:"/who-to-follow",component:p6e,beforeEnter:t},{name:"about",path:"/about",component:hTe},{name:"announcements",path:"/announcements",component:K8e},{name:"drafts",path:"/drafts",component:_Ae},{name:"user-profile",path:"/users/:name",component:v0},{name:"legacy-user-profile",path:"/:name",component:v0},{name:"lists",path:"/lists",component:OTe},{name:"lists-timeline",path:"/lists/:id",component:NTe},{name:"lists-edit",path:"/lists/:id/edit",component:M8},{name:"lists-new",path:"/lists/new",component:M8},{name:"edit-navigation",path:"/nav-edit",component:IO,props:()=>({forceExpand:!0,forceEditMode:!0}),beforeEnter:t},{name:"bookmark-folders",path:"/bookmark_folders",component:FAe},{name:"bookmark-folder-new",path:"/bookmarks/new-folder",component:N8},{name:"bookmark-folder",path:"/bookmarks/:id",component:h8},{name:"bookmark-folder-edit",path:"/bookmarks/:id/edit",component:N8}];return e.state.instance.pleromaChatMessagesAvailable&&(n=n.concat([{name:"chat",path:"/users/:username/chats/:recipient_id",component:Eke,meta:{dontScroll:!1},beforeEnter:t},{name:"chats",path:"/users/:username/chats",component:Z3e,meta:{dontScroll:!1},beforeEnter:t}])),n};function QAe(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var iw=!1;
692if(typeof window<"u"){var F8={get passive(){iw=!0}};window.addEventListener("testPassive",null,F8),window.removeEventListener("testPassive",null,F8)}var XO=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),Li=[],xh=!1,JO=-1,Uu=void 0,ju=void 0,ZO=function(t){return Li.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(t))})},Yh=function(t){var n=t||window.event;return ZO(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},e5e=function(t){if(ju===void 0){var n=!!t&&t.reserveScrollBarGap===!0,s=window.innerWidth-document.documentElement.clientWidth;n&&s>0&&(ju=document.body.style.paddingRight,document.body.style.paddingRight=s+"px")}Uu===void 0&&(Uu=document.body.style.overflow,document.body.style.overflow="hidden")},t5e=function(){ju!==void 0&&(document.body.style.paddingRight=ju,ju=void 0),Uu!==void 0&&(document.body.style.overflow=Uu,Uu=void 0)},n5e=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},s5e=function(t,n){var s=t.targetTouches[0].clientY-JO;return ZO(t.target)?!1:n&&n.scrollTop===0&&s>0||n5e(n)&&s<0?Yh(t):(t.stopPropagation(),!0)},r5e=function(t,n){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!Li.some(function(r){return r.targetElement===t})){var s={targetElement:t,options:n||{}};Li=[].concat(QAe(Li),[s]),XO?(t.ontouchstart=function(r){r.targetTouches.length===1&&(JO=r.targetTouches[0].clientY)},t.ontouchmove=function(r){r.targetTouches.length===1&&s5e(r,t)},xh||(document.addEventListener("touchmove",Yh,iw?{passive:!1}:void 0),xh=!0)):e5e(n)}},o5e=function(t){if(!t){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}Li=Li.filter(function(n){return n.targetElement!==t}),XO?(t.ontouchstart=null,t.ontouchmove=null,xh&&Li.length===0&&(document.removeEventListener("touchmove",Yh,iw?{passive:!1}:void 0),xh=!1)):Li.length||t5e()};let Ca,Ta;const Xh=new Set([]),D8=e=>{const t=window.innerWidth-document.documentElement.clientWidth;r5e(e,{reserveScrollBarGap:!0}),Xh.add(e),setTimeout(()=>{if(Xh.size<=1){if(Ca===void 0){const n=document.getElementById("nav");Ca=window.getComputedStyle(n).getPropertyValue("padding-right"),n.style.paddingRight=Ca?`calc(${Ca} + ${t}px)`:`${t}px`}if(Ta===void 0){const n=document.getElementById("app_bg_wrapper");Ta=window.getComputedStyle(n).getPropertyValue("right"),n.style.right=Ta?`calc(${Ta} + ${t}px)`:`${t}px`}document.body.classList.add("scroll-locked")}})},U8=e=>{Xh.delete(e),setTimeout(()=>{Xh.size===0&&(Ca!==void 0&&(document.getElementById("nav").style.paddingRight=Ca,Ca=void 0),Ta!==void 0&&(document.getElementById("app_bg_wrapper").style.right=Ta,Ta=void 0),document.body.classList.remove("scroll-locked"))}),o5e(e)},i5e={mounted:(e,t)=>{t.value&&D8(e)},updated:(e,t)=>{t.oldValue!==t.value&&(t.value?D8(e):U8(e))},unmounted:e=>{U8(e)}},a5e=e=>{e.directive("body-scroll-lock",i5e)};HI.autoAddCss=!1;let T0=null;const l5e=()=>document.getElementById("initial-results")?(T0||(T0=JSON.parse(document.getElementById("initial-results").textContent)),T0):null,c5e=e=>{const t=atob(e),n=Uint8Array.from([...t].map(r=>r.charCodeAt(0)));return new TextDecoder().decode(n)},Jh=async e=>{const t=l5e();if(!t||!t[e])return window.fetch(e);const n=c5e(t[e]),s=JSON.parse(n);return{ok:!0,json:()=>s,text:()=>s}},u5e=async({store:e})=>{var t,n;try{const s=await Jh("/api/v1/instance");if(s.ok){const r=await s.json(),o=r.max_toot_chars,i=r.pleroma.vapid_public_key;e.dispatch("setInstanceOption",{name:"pleromaExtensionsAvailable",value:r.pleroma}),e.dispatch("setInstanceOption",{name:"textlimit",value:o}),e.dispatch("setInstanceOption",{name:"accountApprovalRequired",value:r.approval_required}),e.dispatch("setInstanceOption",{name:"birthdayRequired",value:!!((t=r.pleroma)!=null&&t.metadata.birthday_required)}),e.dispatch("setInstanceOption",{name:"birthdayMinAge",value:((n=r.pleroma)==null?void 0:n.metadata.birthday_min_age)||0}),i&&e.dispatch("setInstanceOption",{name:"vapidPublicKey",value:i})}else throw s}catch(s){console.error("Could not load instance config, potentially fatal"),console.error(s)}},d5e=async()=>{try{const e=await window.fetch("/api/pleroma/frontend_configurations");
692if(e.ok)return(await e.json()).pleroma_fe;throw e}catch(e){console.error("Could not load backend-provided frontend config, potentially fatal"),console.error(e)}},f5e=async()=>{try{const e=await window.fetch("/static/config.json");if(e.ok)return e.json();throw e}catch(e){return console.warn("Failed to load static/config.json, continuing without it."),console.warn(e),{}}},h5e=async({apiConfig:e,staticConfig:t,store:n})=>{const s=window.___pleromafe_dev_overrides||{},r=window.___pleromafe_mode.NODE_ENV;let o={};s.staticConfigPreference&&r==="development"?(console.warn("OVERRIDING API CONFIG WITH STATIC CONFIG"),o=Object.assign({},e,t)):o=Object.assign({},t,e);const i=a=>{typeof o[a]<"u"&&n.dispatch("setInstanceOption",{name:a,value:o[a]})};Object.keys(rE).forEach(i),Object.keys(_p).forEach(i),Yo().setInitialStrategy(o.loginMethod)},p5e=async({store:e})=>{try{const t=await window.fetch("/static/terms-of-service.html");if(t.ok){const n=await t.text();e.dispatch("setInstanceOption",{name:"tos",value:n})}else throw t}catch(t){console.warn(`Can't load TOS
693`,t)}},m5e=async({store:e})=>{try{const t=await Jh("/instance/panel.html");if(t.ok){const n=await t.text();e.dispatch("setInstanceOption",{name:"instanceSpecificPanelContent",value:n})}else throw t}catch(t){console.warn(`Can't load instance panel
694`,t)}},g5e=async({store:e})=>{try{const t=await window.fetch("/static/stickers.json");if(t.ok){const n=await t.json(),s=(await Promise.all(Object.entries(n).map(async([r,o])=>{const i=await window.fetch(o+"pack.json");let a={};return i.ok&&(a=await i.json()),{pack:r,path:o,meta:a}}))).sort((r,o)=>r.meta.title.localeCompare(o.meta.title));e.dispatch("setInstanceOption",{name:"stickers",value:s})}else throw t}catch(t){console.warn(`Can't load stickers
695`,t)}},v5e=async({store:e})=>{const t=Ar();t.userToken&&e.commit("setBackendInteractor",Ih(t.getToken))},b5e=({store:e,accounts:t})=>{const n=t.map(s=>s.split("/").pop());e.dispatch("setInstanceOption",{name:"staffAccounts",value:n})},y5e=async({store:e})=>{try{let t=await Jh("/nodeinfo/2.1.json");if(t.ok||(t=await Jh("/nodeinfo/2.0.json")),t.ok){const n=await t.json(),s=n.metadata,r=s.features;e.dispatch("setInstanceOption",{name:"name",value:s.nodeName}),e.dispatch("setInstanceOption",{name:"registrationOpen",value:n.openRegistrations}),e.dispatch("setInstanceOption",{name:"mediaProxyAvailable",value:r.includes("media_proxy")}),e.dispatch("setInstanceOption",{name:"safeDM",value:r.includes("safe_dm_mentions")}),e.dispatch("setInstanceOption",{name:"shoutAvailable",value:r.includes("chat")}),e.dispatch("setInstanceOption",{name:"pleromaChatMessagesAvailable",value:r.includes("pleroma_chat_messages")}),e.dispatch("setInstanceOption",{name:"pleromaCustomEmojiReactionsAvailable",value:r.includes("pleroma_custom_emoji_reactions")||r.includes("custom_emoji_reactions")}),e.dispatch("setInstanceOption",{name:"pleromaBookmarkFoldersAvailable",value:r.includes("pleroma:bookmark_folders")}),e.dispatch("setInstanceOption",{name:"gopherAvailable",value:r.includes("gopher")}),e.dispatch("setInstanceOption",{name:"pollsAvailable",value:r.includes("polls")}),e.dispatch("setInstanceOption",{name:"editingAvailable",value:r.includes("editing")}),e.dispatch("setInstanceOption",{name:"pollLimits",value:s.pollLimits}),e.dispatch("setInstanceOption",{name:"mailerEnabled",value:s.mailerEnabled}),e.dispatch("setInstanceOption",{name:"quotingAvailable",value:r.includes("quote_posting")}),e.dispatch("setInstanceOption",{name:"groupActorAvailable",value:r.includes("pleroma:group_actors")}),e.dispatch("setInstanceOption",{name:"blockExpiration",value:r.includes("pleroma:block_expiration")}),e.dispatch("setInstanceOption",{name:"localBubbleInstances",value:s.localBubbleInstances??[]});const o=s.uploadLimits;e.dispatch("setInstanceOption",{name:"uploadlimit",value:parseInt(o.general)}),e.dispatch("setInstanceOption",{name:"avatarlimit",value:parseInt(o.avatar)}),e.dispatch("setInstanceOption",{name:"backgroundlimit",value:parseInt(o.background)}),e.dispatch("setInstanceOption",{name:"bannerlimit",value:parseInt(o.banner)}
695),e.dispatch("setInstanceOption",{name:"fieldsLimits",value:s.fieldsLimits}),e.dispatch("setInstanceOption",{name:"restrictedNicknames",value:s.restrictedNicknames}),e.dispatch("setInstanceOption",{name:"postFormats",value:s.postFormats});const i=s.suggestions;e.dispatch("setInstanceOption",{name:"suggestionsEnabled",value:i.enabled}),e.dispatch("setInstanceOption",{name:"suggestionsWeb",value:i.web});const a=n.software;e.dispatch("setInstanceOption",{name:"backendVersion",value:a.version}),e.dispatch("setInstanceOption",{name:"backendRepository",value:a.repository});const c=s.private;e.dispatch("setInstanceOption",{name:"private",value:c});const u=window.___pleromafe_commit_hash;e.dispatch("setInstanceOption",{name:"frontendVersion",value:u});const f=s.federation;e.dispatch("setInstanceOption",{name:"tagPolicyAvailable",value:typeof f.mrf_policies>"u"?!1:s.federation.mrf_policies.includes("TagPolicy")}),e.dispatch("setInstanceOption",{name:"federationPolicy",value:f}),e.dispatch("setInstanceOption",{name:"federating",value:typeof f.enabled>"u"?!0:f.enabled});const h=s.accountActivationRequired;e.dispatch("setInstanceOption",{name:"accountActivationRequired",value:h});const v=s.staffAccounts;b5e({store:e,accounts:v})}else throw t}catch(t){console.warn("Could not load nodeinfo"),console.warn(t)}},_5e=async({store:e})=>{const t=await Promise.all([d5e(),f5e()]),n=t[0],s=t[1];v5e({store:e}),await h5e({store:e,apiConfig:n,staticConfig:s})},w5e=async({store:e})=>{const t=Ar();return t.getUserToken?e.dispatch("loginUser",t.getUserToken):Promise.resolve()},S5e=async({pinia:e,store:t,storageError:n,i18n:s})=>{const r=iB(iwe);r.use(e);const o=async()=>{const u=Object.assign({"../stores/announcements.js":bz,"../stores/auth_flow.js":Gse,"../stores/bookmark_folders.js":Cee,"../stores/editStatus.js":Kse,"../stores/i18n.js":gz,"../stores/interface.js":Xx,"../stores/lists.js":wee,"../stores/media_viewer.js":Jse,"../stores/oauth.js":Bee,"../stores/oauth_tokens.js":Qse,"../stores/polls.js":ere,"../stores/post_status.js":tre,"../stores/reports.js":dee,"../stores/serverSideStorage.js":HZ,"../stores/shout.js":dte,"../stores/statusHistory.js":nre});await Promise.all(Object.entries(u).map(async([f,h])=>{const v=S=>S.startsWith("use"),y=Object.keys(h).find(v);if(y&&typeof h[y]=="function"){const S=h[y]().$persistLoaded;if(!(S instanceof Promise))throw new Error(`${f} store's $persistLoaded is not a Promise. The persist plugin is not applied.`);await S}else throw new Error(`Store module ${f} does not export a 'use...' function`)}))};try{await o()}catch(u){console.error("Cannot load stores:",u),n=u}n&&Xe().pushGlobalNotice({messageKey:"errors.storage_unavailable",level:"error"}),Xe().setLayoutWidth(Ph()),Xe().setLayoutHeight(Lh()),wh.initFaviconService(),cz(t),window.addEventListener("focus",()=>dz());const i=window.___pleromafe_dev_overrides||{},a=typeof i.target<"u"?i.target:window.location.origin;t.dispatch("setInstanceOption",{name:"server",value:a}),await _5e({store:t});try{await Xe().applyTheme().catch(u=>{console.error("Error setting theme",u)})}catch(u){return window.splashError(u),Promise.reject(u)}J0(t.state.config,s.global),await Promise.all([w5e({store:t}),m5e({store:t}),y5e({store:t}),u5e({store:t})]).catch(u=>Promise.reject(u)),t.dispatch("fetchMutes"),t.dispatch("loadDrafts"),ms().startFetchingAnnouncements(),p5e({store:t}),g5e({store:t});const c=roe({history:Rre(),routes:ZAe(t),scrollBehavior:(u,f,h)=>u.matched.some(v=>v.meta.dontScroll)?!1:h||{left:0,top:0}});return vp().setI18n(s),r.use(c),r.use(t),r.use(s),window.resetThemes=()=>{Xe().resetThemeV3(),Xe().resetThemeV3Palette(),Xe().resetThemeV2()},r.use(coe),r.use(a5e),r.use(Doe),r.component("FAIcon",j2),r.component("FALayers",eie),r.config.unwrapInjectedRef=!0,r.mount("#app"),r};var k5e={NODE_ENV:"production",HAS_MODULE_SERVICE_WORKER:!1};Array.prototype.toSorted||(Array.prototype.toSorted=function(e){return[...this].sort(e)});const $5e=(window.navigator.language||"en").split("-")[0],wa=Ese({locale:"en",fallbackLocale:"en",messages:wp.default});wp.setLanguage(wa.global,$5e);const C5e={paths:["serverSideStorage.cache","config","users.lastLoginName","oauth"]};(async()=>{const e=Math.floor(Math.random()*2)>0?"_fox":"",t=(n,s)=>{const r=document.querySelector("#throbber");r.addEventListener("animationend",()=>{document.querySelector("#mascot").src=`/static/pleromatan_orz${e}.png`}),r.classList.add("dead"),document.querySelector("#status").textContent=n.global.t("splash.error"),console.error("PleromaFE failed to initialize: ",s),document.querySelector("#statusError").textContent=s,document.querySelector("#statusStack").textContent=s.stack,document.querySelector("#statusError").style="display: block",document.querySelector("#statusStack").style="display: block"};window.splashError=n=>t(wa,n),window.splashUpdate=n=>{document.querySelector("#status")&&(document.querySelector("#status").textContent=wa.global.t(n))};try{let n;const s=[Wse],r=FB();r.use(Vse());try{const i=await Hse(C5e);s.push(i)}catch(i){console.error("Storage error",i),n=i}document.querySelector("#splash").classList.remove("initial-hidden"),document.querySelector("#mascot").src=`/static/pleromatan_apology${e}_small.webp`,document.querySelector("#status").removeAttribute("class"),document.querySelector("#status").textContent=wa.global.t("splash.loading"),document.querySelector("#splash-credit").textContent=wa.global.t("update.art_by",{linkToArtist:"pipivovott"});const o=RB({modules:Ute,plugins:s,options:{devtools:!1},strict:!1});return window.vuex=o,await S5e({pinia:r,store:o,storageError:n,i18n:wa})}catch(n){t(wa,n)}})();window.___pleromafe_mode=k5e;window.___pleromafe_commit_hash="d7b1aaa61";window.___pleromafe_dev_overrides=void 0;export{H2 as $,he as A,O as B,Nr as C,de as D,Yn as E,_n as F,hn as G,lm as H,Du as I,Se as J,We as K,Zs as L,ud as M,mn as N,Zse as O,Jn as P,kP as Q,nQ as R,S2 as S,ZA as T,Qs as U,sc as V,at as W,Nt as X,Ot as Y,Td as Z,ge as _,g as a,Tx as a$,fO as a0,Cd as a1,Wke as a2,j2 as a3,zke as a4,Mi as a5,qO as a6,HO as a7,Hi as a8,Zi as a9,Q_ as aA,a2 as aB,GI as aC,By as aD,aI as aE,Yx as aF,tx as aG,Gu as aH,yk as aI,X0 as aJ,QK as aK,Ri as aL,Jp as aM,Cr as aN,tE as aO,$h as aP,Y0 as aQ,kh as aR,bk as aS,nx as aT,Pa as aU,X_ as aV,nEe as aW,aEe as aX,Nx as aY,Mx as aZ,L5e as a_,x5e as aa,qP as ab,Wi as ac,Tr as ad,a4e as ae,$d as af,i2 as ag,lh as ah,up as ai,FZ as aj,X5e as ak,wZ as al,g4e as am,pae as an,E5e as ao,A5e as ap,I5e as aq,md as ar,O5e as as,U5e as at,iEe as au,J5e as av,V5e as aw,rEe as ax,vt as ay,Xfe as az,mp as b,Z5e as b$,jx as b0,Ui as b1,Ux as b2,Dx as b3,Ra as b4,Rx as b5,Fx as b6,Eu as b7,$k as b8,P5e as b9,FG as bA,MG as bB,OG as bC,PG as bD,EG as bE,TG as bF,$G as bG,SG as bH,_G as bI,bG as bJ,gG as bK,pG as bL,lu as bM,s2 as bN,sZ as bO,B5e as bP,G5e as bQ,Rp as bR,t2 as bS,Z_ as bT,q5e as bU,H5e as bV,ic as bW,QI as bX,Y_ as bY,oEe as bZ,xI as b_,Ix as ba,yp as bb,T5e as bc,Ys as bd,Kn as be,os as bf,ro as bg,Pr as bh,Ml as bi,gK as bj,pK as bk,fK as bl,uK as bm,lK as bn,iK as bo,rK as bp,nK as bq,eK as br,ZG as bs,XG as bt,xG as bu,GG as bv,VG as bw,qG as bx,BG as by,UG as bz,b as c,W5e as c0,N5e as c1,eP as c2,An as c3,Qp as c4,iae as c5,xse as c6,Ji as c7,zJ as c8,F5e as c9,tEe as ca,M5e as cb,Q5e as cc,Pp as cd,K5e as ce,R5e as cf,sEe as cg,j5e as ch,Y5e as ci,iP as cj,gZ as ck,D5e as cl,gr as d,io as e,et as f,bs as g,Zo as h,Xn as i,lEe as j,z5e as k,Z as l,sn as m,eEe as n,p as o,za as p,mO as q,Ve as r,n_ as s,w as t,Xe as u,x as v,X as w,T as x,E as y,Te as z};
696//# sourceMappingURL=main.qxCxIqDs.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.