You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
44 KiB

var Qe=Object.defineProperty;var Xe=(a,e,o)=>e in a?Qe(a,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[e]=o;var h=(a,e,o)=>Xe(a,typeof e!="symbol"?e+"":e,o);import{C as ke,V as Ce,A as we,e as U,_ as _e,g as E,x as y,h as C,j as d,k as $,i as I,t as F,l as S,f as ge,M as X,m as je,o as Le,a6 as Ze,y as Me,a7 as Ve,u as et,a8 as tt,w as q,F as pe,z as Re,p as Q,q as it}from"./index-BLqts8WY.js";import{E as st}from"./EntityIcon-CF1RwQI5.js";import{G as ot}from"./GiftedDialog-CFmou4Be.js";import{m as at,i as rt,u as nt,v as lt}from"./vue-leaflet.es-D17g3l39.js";import{I as dt}from"./InfiniteScroll-B5tl9k_n.js";import{O as ct}from"./OnboardingDialog-CiAZLb6o.js";import{Q as ut}from"./QuickNav-DgCyvgDx.js";import{T as bt}from"./TopMessage-BE0GBIgW.js";import{U as ht}from"./UserNameDialog-B8a82q1n.js";import{e as mt,ag as ft,ao as pt,f as wt,ax as gt,ay as vt,az as yt,ap as Ge,aA as xt,am as He,m as qe,g as kt}from"./index-MyY_xqVN.js";import{_ as Ct}from"./blank-square-D9dGgMJw.js";import"./index-CsfPLOYu.js";var Z={exports:{}},_t=Z.exports,ze;function At(){return ze||(ze=1,function(a,e){(function(o,r){var c="1.0.40",g="",u="?",D="function",A="undefined",N="object",O="string",R="major",t="model",n="name",i="type",s="vendor",l="version",w="architecture",L="console",f="mobile",p="tablet",T="smarttv",M="wearable",le="embedded",de=500,ee="Amazon",z="Apple",Ae="ASUS",Ne="BlackBerry",te="Browser",ie="Chrome",Ye="Edge",se="Firefox",Y="Google",Ie="Huawei",ce="LG",ue="Microsoft",De="Motorola",W="Opera",K="Samsung",Se="Sharp",oe="Sony",be="Xiaomi",he="Zebra",Oe="Facebook",Te="Chromium OS",Ee="Mac OS",Fe=" Browser",We=function(v,x){var m={};for(var _ in v)x[_]&&x[_].length%2===0?m[_]=x[_].concat(v[_]):m[_]=v[_];return m},ae=function(v){for(var x={},m=0;m<v.length;m++)x[v[m].toUpperCase()]=v[m];return x},Pe=function(v,x){return typeof v===O?G(x).indexOf(G(v))!==-1:!1},G=function(v){return v.toLowerCase()},Ke=function(v){return typeof v===O?v.replace(/[^\d\.]/g,g).split(".")[0]:r},me=function(v,x){if(typeof v===O)return v=v.replace(/^\s\s*/,g),typeof x===A?v:v.substring(0,de)},J=function(v,x){for(var m=0,_,V,B,k,b,j;m<x.length&&!b;){var fe=x[m],Be=x[m+1];for(_=V=0;_<fe.length&&!b&&fe[_];)if(b=fe[_++].exec(v),b)for(B=0;B<Be.length;B++)j=b[++V],k=Be[B],typeof k===N&&k.length>0?k.length===2?typeof k[1]==D?this[k[0]]=k[1].call(this,j):this[k[0]]=k[1]:k.length===3?typeof k[1]===D&&!(k[1].exec&&k[1].test)?this[k[0]]=j?k[1].call(this,j,k[2]):r:this[k[0]]=j?j.replace(k[1],k[2]):r:k.length===4&&(this[k[0]]=j?k[3].call(this,j.replace(k[1],k[2])):r):this[k]=j||r;m+=2}},re=function(v,x){for(var m in x)if(typeof x[m]===N&&x[m].length>0){for(var _=0;_<x[m].length;_++)if(Pe(x[m][_],v))return m===u?r:m}else if(Pe(x[m],v))return m===u?r:m;return x.hasOwnProperty("*")?x["*"]:v},Je={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},$e={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ue={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[n,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[n,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[n,l],[/opios[\/ ]+([\w\.]+)/i],[l,[n,W+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[l,[n,W+" GX"]],[/\bopr\/([\w\.]+)/i],[l,[n,W]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[l,[n,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[l,[n,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[n,l],[/quark(?:pc)?\/([-\w\.]+)/i],[l,[n,"Quark"]],[/\bddg\/([\w\.]+)/i],[l,[n,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[n,"UC"+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[l,[n,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[n,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[n,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[n,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[l,[n,"Smart Lenovo "+te]],[/(avast|avg)\/([\w\.]+)/i],[[n,/(.+)/,"$1 Secure "+te],l],[/\bfocus\/([\w\.]+)/i],[l,[n,se+" Focus"]],[/\bopt\/([\w\.]+)/i],[l,[n,W+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[n,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[n,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[n,W+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[n,"MIUI"+Fe]],[/fxios\/([\w\.-]+)/i],[l,[n,se]],[/\bqihoobrowser\/?([\w\.]*)/i],[l,[n,"360"]],[/\b(qq)\/([\w\.]+)/i],[[n,/(.+)/,"$1Browser"],l],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[n,/(.+)/,"$1"+Fe],l],[/samsungbrowser\/([\w\.]+)/i],[l,[n,K+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[l,[n,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[n,"Sogou Mobile"],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[n,l],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[n],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[l,n],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[n,Oe],l],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[n,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[n,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[n,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[n,ie+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[n,ie+" WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[n,"Android "+te]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[n,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[n,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,n],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[n,[l,re,Je]],[/(webkit|khtml)\/([\w\.]+)/i],[n,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[n,"Netscape"],l],[/(wolvic|librewolf)\/([\w\.]+)/i],[n,l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[n,se+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[n,[l,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[n,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,G]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,g,G]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[t,[s,K],[i,p]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[t,[s,K],[i,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[t,[s,z],[i,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[t,[s,z],[i,p]],[/(macintosh);/i],[t,[s,z]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[t,[s,Se],[i,f]],[/(?:honor)([-\w ]+)[;\)]/i],[t,[s,"Honor"],[i,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[t,[s,Ie],[i,p]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[t,[s,Ie],[i,f]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[t,/_/g," "],[s,be],[i,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[t,/_/g," "],[s,be],[i,p]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[t,[s,"OPPO"],[i,f]],[/\b(opd2\d{3}a?) bui/i],[t,[s,"OPPO"],[i,p]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[t,[s,"Vivo"],[i,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[t,[s,"Realme"],[i,f]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[t,[s,De],[i,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[t,[s,De],[i,p]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[t,[s,ce],[i,p]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[t,[s,ce],[i,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[t,[s,"Lenovo"],[i,p]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[t,/_/g," "],[s,"Nokia"],[i,f]],[/(pixel c)\b/i],[t,[s,Y],[i,p]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[t,[s,Y],[i,f]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[t,[s,oe],[i,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[t,"Xperia Tablet"],[s,oe],[i,p]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[t,[s,"OnePlus"],[i,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[t,[s,ee],[i,p]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[t,/(.+)/g,"Fire Phone $1"],[s,ee],[i,f]],[/(playbook);[-\w\),; ]+(rim)/i],[t,s,[i,p]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[t,[s,Ne],[i,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[t,[s,Ae],[i,p]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[t,[s,Ae],[i,f]],[/(nexus 9)/i],[t,[s,"HTC"],[i,p]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[s,[t,/_/g," "],[i,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[t,[s,"TCL"],[i,p]],[/(itel) ((\w+))/i],[[s,G],t,[i,re,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[t,[s,"Acer"],[i,p]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[t,[s,"Meizu"],[i,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[t,[s,"Ulefone"],[i,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[t,[s,"Energizer"],[i,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[t,[s,"Cat"],[i,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[t,[s,"Smartfren"],[i,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[t,[s,"Nothing"],[i,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[s,t,[i,f]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[s,t,[i,p]],[/(surface duo)/i],[t,[s,ue],[i,p]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[t,[s,"Fairphone"],[i,f]],[/(u304aa)/i],[t,[s,"AT&T"],[i,f]],[/\bsie-(\w*)/i],[t,[s,"Siemens"],[i,f]],[/\b(rct\w+) b/i],[t,[s,"RCA"],[i,p]],[/\b(venue[\d ]{2,7}) b/i],[t,[s,"Dell"],[i,p]],[/\b(q(?:mv|ta)\w+) b/i],[t,[s,"Verizon"],[i,p]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[t,[s,"Barnes & Noble"],[i,p]],[/\b(tm\d{3}\w+) b/i],[t,[s,"NuVision"],[i,p]],[/\b(k88) b/i],[t,[s,"ZTE"],[i,p]],[/\b(nx\d{3}j) b/i],[t,[s,"ZTE"],[i,f]],[/\b(gen\d{3}) b.+49h/i],[t,[s,"Swiss"],[i,f]],[/\b(zur\d{3}) b/i],[t,[s,"Swiss"],[i,p]],[/\b((zeki)?tb.*\b) b/i],[t,[s,"Zeki"],[i,p]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[s,"Dragon Touch"],t,[i,p]],[/\b(ns-?\w{0,9}) b/i],[t,[s,"Insignia"],[i,p]],[/\b((nxa|next)-?\w{0,9}) b/i],[t,[s,"NextBook"],[i,p]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[s,"Voice"],t,[i,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[s,"LvTel"],t,[i,f]],[/\b(ph-1) /i],[t,[s,"Essential"],[i,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[t,[s,"Envizen"],[i,p]],[/\b(trio[-\w\. ]+) b/i],[t,[s,"MachSpeed"],[i,p]],[/\btu_(1491) b/i],[t,[s,"Rotor"],[i,p]],[/(shield[\w ]+) b/i],[t,[s,"Nvidia"],[i,p]],[/(sprint) (\w+)/i],[s,t,[i,f]],[/(kin\.[onetw]{3})/i],[[t,/\./g," "],[s,ue],[i,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[t,[s,he],[i,p]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[t,[s,he],[i,f]],[/smart-tv.+(samsung)/i],[s,[i,T]],[/hbbtv.+maple;(\d+)/i],[[t,/^/,"SmartTV"],[s,K],[i,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[s,ce],[i,T]],[/(apple) ?tv/i],[s,[t,z+" TV"],[i,T]],[/crkey/i],[[t,ie+"cast"],[s,Y],[i,T]],[/droid.+aft(\w+)( bui|\))/i],[t,[s,ee],[i,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[t,[s,Se],[i,T]],[/(bravia[\w ]+)( bui|\))/i],[t,[s,oe],[i,T]],[/(mitv-\w{5}) bui/i],[t,[s,be],[i,T]],[/Hbbtv.*(technisat) (.*);/i],[s,t,[i,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[s,me],[t,me],[i,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[i,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[s,t,[i,L]],[/droid.+; (shield) bui/i],[t,[s,"Nvidia"],[i,L]],[/(playstation [345portablevi]+)/i],[t,[s,oe],[i,L]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[t,[s,ue],[i,L]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[t,[s,K],[i,M]],[/((pebble))app/i],[s,t,[i,M]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[t,[s,z],[i,M]],[/droid.+; (glass) \d/i],[t,[s,Y],[i,M]],[/droid.+; (wt63?0{2,3})\)/i],[t,[s,he],[i,M]],[/droid.+; (glass) \d/i],[t,[s,Y],[i,M]],[/(pico) (4|neo3(?: link|pro)?)/i],[s,t,[i,M]],[/; (quest( \d| pro)?)/i],[t,[s,Oe],[i,M]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[s,[i,le]],[/(aeobc)\b/i],[t,[s,ee],[i,le]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[t,[i,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[t,[i,p]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[i,p]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[i,f]],[/(android[-\w\. ]{0,9});.+buil/i],[t,[s,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[n,Ye+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[n,l],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[n,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[n,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,n]],os:[[/microsoft (windows) (vista|xp)/i],[n,l],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[n,[l,re,$e]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,re,$e],[n,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[n,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[n,Ee],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,n],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[n,l],[/\(bb(10);/i],[l,[n,Ne]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[n,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[n,se+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[n,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[n,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[n,ie+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[n,Te],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[n,l],[/(sunos) ?([\w\.\d]*)/i],[[n,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[n,l]]},P=function(v,x){if(typeof v===N&&(x=v,v=r),!(this instanceof P))return new P(v,x).getResult();var m=typeof o!==A&&o.navigator?o.navigator:r,_=v||(m&&m.userAgent?m.userAgent:g),V=m&&m.userAgentData?m.userAgentData:r,B=x?We(Ue,x):Ue,k=m&&m.userAgent==_;return this.getBrowser=function(){var b={};return b[n]=r,b[l]=r,J.call(b,_,B.browser),b[R]=Ke(b[l]),k&&m&&m.brave&&typeof m.brave.isBrave==D&&(b[n]="Brave"),b},this.getCPU=function(){var b={};return b[w]=r,J.call(b,_,B.cpu),b},this.getDevice=function(){var b={};return b[s]=r,b[t]=r,b[i]=r,J.call(b,_,B.device),k&&!b[i]&&V&&V.mobile&&(b[i]=f),k&&b[t]=="Macintosh"&&m&&typeof m.standalone!==A&&m.maxTouchPoints&&m.maxTouchPoints>2&&(b[t]="iPad",b[i]=p),b},this.getEngine=function(){var b={};return b[n]=r,b[l]=r,J.call(b,_,B.engine),b},this.getOS=function(){var b={};return b[n]=r,b[l]=r,J.call(b,_,B.os),k&&!b[n]&&V&&V.platform&&V.platform!="Unknown"&&(b[n]=V.platform.replace(/chrome os/i,Te).replace(/macos/i,Ee)),b},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return _},this.setUA=function(b){return _=typeof b===O&&b.length>de?me(b,de):b,this},this.setUA(_),this};P.VERSION=c,P.BROWSER=ae([n,l,R]),P.CPU=ae([w]),P.DEVICE=ae([t,s,i,L,f,T,p,M,le]),P.ENGINE=P.OS=ae([n,l]),a.exports&&(e=a.exports=P),e.UAParser=P;var H=typeof o!==A&&(o.jQuery||o.Zepto);if(H&&!H.ua){var ne=new P;H.ua=ne.getResult(),H.ua.get=function(){return ne.getUA()},H.ua.set=function(v){ne.setUA(v);var x=ne.getResult();for(var m in x)H.ua[m]=x[m]}}})(typeof window=="object"?window:_t)}(Z,Z.exports)),Z.exports}var Nt=At(),It=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,St=(a,e,o,r)=>{for(var c=r>1?void 0:r?Dt(e,o):e,g=a.length-1,u;g>=0;g--)(u=a[g])&&(c=(r?u(e,o,c):u(c))||c);return r&&c&&It(e,o,c),c};let ve=class extends Ce{constructor(){super(...arguments);h(this,"$notify");h(this,"CATEGORY_CONTACTS",1);h(this,"CATEGORY_IDEAS",0);h(this,"IDEAS",["What food did someone fix for you?","What did a family member do for you?","What compliment did someone give you?","Who is someone you can always rely on, and how did they demonstrate that?","What did you see someone give to someone else?","What is a way that someone helped you even though you have never met?","How did a musician or author or artist inspire you?","What inspiration did you get from someone who handled tragedy well?","What is something worth respect that an organization gave you?","Who last gave you a good laugh?","What do you recall someone giving you while you were young?","Who forgave you or overlooked a mistake?","What is a way an ancestor contributed to your life?","What kind of help did someone at work give you?","How did a teacher or mentor or great example help you?"]);h(this,"callbackOnFullGiftInfo");h(this,"currentCategory",this.CATEGORY_IDEAS);h(this,"currentContact");h(this,"currentIdeaIndex",0);h(this,"numContacts",0);h(this,"shownContactDbIndices",[]);h(this,"visible",!1);h(this,"AppString",we)}async open(e){this.visible=!0,this.callbackOnFullGiftInfo=e,await U.open(),this.numContacts=await U.contacts.count(),this.shownContactDbIndices=new Array(this.numContacts)}cancel(){this.currentCategory=this.CATEGORY_IDEAS,this.currentContact=void 0,this.currentIdeaIndex=0,this.numContacts=0,this.shownContactDbIndices=[],this.visible=!1}proceed(){var e;this.visible=!1,this.currentCategory===this.CATEGORY_IDEAS?this.$router.push({name:"contact-gift",query:{prompt:this.IDEAS[this.currentIdeaIndex]}}):(e=this.callbackOnFullGiftInfo)==null||e.call(this,this.currentContact)}async nextIdea(){this.currentCategory===this.CATEGORY_IDEAS?(this.currentIdeaIndex++,this.currentIdeaIndex===this.IDEAS.length&&this.findNextUnshownContact()):this.findNextUnshownContact()}async prevIdea(){this.currentCategory===this.CATEGORY_IDEAS?(this.currentIdeaIndex--,this.currentIdeaIndex<0&&this.findNextUnshownContact()):this.findNextUnshownContact()}nextIdeaPastContacts(){this.currentContact=void 0,this.shownContactDbIndices=new Array(this.numContacts),this.currentCategory=this.CATEGORY_IDEAS,this.currentIdeaIndex=this.currentIdeaIndex>=this.IDEAS.length?0:this.IDEAS.length-1}async findNextUnshownContact(){this.currentCategory===this.CATEGORY_IDEAS&&(this.shownContactDbIndices=new Array(this.numContacts)),this.currentCategory=this.CATEGORY_CONTACTS;let e=Math.floor(Math.random()*this.numContacts),o=0;for(;this.shownContactDbIndices[e]!=null&&o++<this.numContacts;)e=(e+1)%this.numContacts;o>=this.numContacts?this.nextIdeaPastContacts():(await U.open(),this.currentContact=await U.contacts.offset(e).first(),this.shownContactDbIndices[e]=!0)}};ve=St([ke],ve);const Ot={key:0,class:"dialog-overlay"},Tt={class:"dialog"},Et={class:"text-xl font-bold text-center mb-4 relative"},Ft={class:"flex justify-between"},Pt={class:"m-2"},$t={key:0},Ut={class:"text-center text-lg font-bold"},Bt={key:1},jt={class:"text-center"},Lt={key:0,class:"text-orange-500 text-lg font-bold"},Mt={key:1},Vt={class:"text-lg font-bold"},Rt={class:"flex justify-between"};function Gt(a,e,o,r,c,g){const u=E("fa");return a.visible?(y(),C("div",Ot,[d("div",Tt,[d("h1",Et,[e[5]||(e[5]=$(" Here's one: ")),d("div",{class:"text-lg text-center p-2 leading-none absolute right-0 -top-1",onClick:e[0]||(e[0]=(...D)=>a.cancel&&a.cancel(...D))},[I(u,{icon:"xmark",class:"w-[1em]"})])]),d("span",Ft,[d("span",{class:"rounded-l border border-slate-400 bg-slate-200 px-4 py-2 flex",onClick:e[1]||(e[1]=D=>a.prevIdea())},[I(u,{icon:"chevron-left",class:"m-auto"})]),d("div",Pt,[a.currentCategory===a.CATEGORY_IDEAS?(y(),C("span",$t,[d("p",Ut,F(a.IDEAS[a.currentIdeaIndex]),1)])):S("",!0),a.currentCategory===a.CATEGORY_CONTACTS?(y(),C("div",Bt,[d("p",jt,[a.currentContact==null?(y(),C("span",Lt," That's all your contacts. ")):(y(),C("span",Mt,[d("span",Vt,[$(" Did "+F(a.currentContact.name||a.AppString.NO_CONTACT_NAME)+" ",1),e[6]||(e[6]=d("br",null,null,-1)),e[7]||(e[7]=$(" or someone near them do anything – maybe a while ago? "))]),d("span",Rt,[e[9]||(e[9]=d("span",null,null,-1)),d("button",{class:"text-center bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md mt-4",onClick:e[2]||(e[2]=D=>a.nextIdeaPastContacts())},[e[8]||(e[8]=$(" Skip Contacts ")),I(u,{icon:"forward"})])])]))])])):S("",!0)]),d("span",{class:"rounded-r border border-slate-400 bg-slate-200 px-4 py-2 flex",onClick:e[3]||(e[3]=D=>a.nextIdea())},[I(u,{icon:"chevron-right",class:"m-auto"})])]),d("button",{class:"block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md mt-4",onClick:e[4]||(e[4]=(...D)=>a.proceed&&a.proceed(...D))}," That's it! ")])])):S("",!0)}const Ht=_e(ve,[["render",Gt]]);var qt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,Yt=(a,e,o,r)=>{for(var c=r>1?void 0:r?zt(e,o):e,g=a.length-1,u;g>=0;g--)(u=a[g])&&(c=(r?u(e,o,c):u(c))||c);return r&&c&&qt(e,o,c),c};let ye=class extends Ce{constructor(){super(...arguments);h(this,"onCloseIfChanged",()=>{});h(this,"hasSearchBox",!1);h(this,"hasVisibleDid",!1);h(this,"isNearby",!1);h(this,"settingChanged",!1);h(this,"visible",!1)}async open(o){this.onCloseIfChanged=o;const r=await ge();this.hasVisibleDid=!!r.filterFeedByVisible,this.isNearby=!!r.filterFeedByNearby,r.searchBoxes&&r.searchBoxes.length>0&&(this.hasSearchBox=!0),this.settingChanged=!1,this.visible=!0}async toggleHasVisibleDid(){this.settingChanged=!0,this.hasVisibleDid=!this.hasVisibleDid,await U.settings.update(X,{filterFeedByVisible:this.hasVisibleDid})}async toggleNearby(){this.settingChanged=!0,this.isNearby=!this.isNearby,await U.settings.update(X,{filterFeedByNearby:this.isNearby})}async clearAll(){(this.hasVisibleDid||this.isNearby)&&(this.settingChanged=!0),await U.settings.update(X,{filterFeedByNearby:!1,filterFeedByVisible:!1}),this.hasVisibleDid=!1,this.isNearby=!1}async setAll(){(!this.hasVisibleDid||!this.isNearby)&&(this.settingChanged=!0),await U.settings.update(X,{filterFeedByNearby:!0,filterFeedByVisible:!0}),this.hasVisibleDid=!0,this.isNearby=!0}close(){this.settingChanged&&this.onCloseIfChanged(),this.visible=!1}done(){this.close()}};ye=Yt([ke({components:{LRectangle:at,LMap:rt,LMarker:nt,LTileLayer:lt}})],ye);const Wt={key:0,id:"dialogFeedFilters",class:"dialog-overlay"},Kt={class:"dialog"},Jt={class:"grid grid-cols-1 gap-2"},Qt={class:"relative ml-2"},Xt={key:0,class:"relative ml-2"},Zt={key:1,class:"relative ml-2"},ei={class:"grid grid-cols-1 sm:grid-cols-3 gap-2 mt-4"};function ti(a,e,o,r,c,g){return a.visible?(y(),C("div",Wt,[d("div",Kt,[e[15]||(e[15]=d("h1",{class:"text-xl font-bold text-center mb-4"},"Feed Filters",-1)),e[16]||(e[16]=d("p",{class:"mb-4 font-bold"},"Show only activities that…",-1)),d("div",Jt,[d("div",{class:"flex items-center justify-between cursor-pointer",onClick:e[1]||(e[1]=u=>a.toggleHasVisibleDid())},[e[9]||(e[9]=d("div",null,"Include someone visible to me",-1)),d("div",Qt,[je(d("input",{type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=u=>a.hasVisibleDid=u),name:"toggleFilterFromMyContacts",class:"sr-only"},null,512),[[Le,a.hasVisibleDid]]),e[7]||(e[7]=d("div",{class:"block bg-slate-500 w-14 h-8 rounded-full"},null,-1)),e[8]||(e[8]=d("div",{class:"dot absolute left-1 top-1 bg-slate-400 w-6 h-6 rounded-full transition"},null,-1))])]),e[14]||(e[14]=d("em",null,"or",-1)),d("div",{class:"flex items-center justify-between cursor-pointer",onClick:e[3]||(e[3]=u=>a.hasSearchBox?a.toggleNearby():a.$router.push({name:"search-area"}))},[e[13]||(e[13]=d("div",null,"Are nearby",-1)),a.hasSearchBox?(y(),C("div",Xt,[je(d("input",{type:"checkbox","onUpdate:modelValue":e[2]||(e[2]=u=>a.isNearby=u),name:"toggleFilterNearby",class:"sr-only"},null,512),[[Le,a.isNearby]]),e[10]||(e[10]=d("div",{class:"block bg-slate-500 w-14 h-8 rounded-full"},null,-1)),e[11]||(e[11]=d("div",{class:"dot absolute left-1 top-1 bg-slate-400 w-6 h-6 rounded-full transition"},null,-1))])):(y(),C("div",Zt,e[12]||(e[12]=[d("button",{class:"ml-2 px-4 py-2 rounded-md bg-blue-200 text-blue-500"}," Select Location ",-1)])))])]),d("div",ei,[d("button",{class:"block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md",onClick:e[4]||(e[4]=u=>a.setAll())}," Set All "),d("button",{class:"block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md",onClick:e[5]||(e[5]=u=>a.clearAll())}," Clear All "),d("button",{class:"block w-full text-center text-md uppercase bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1.5 py-2 rounded-md",onClick:e[6]||(e[6]=u=>a.done())}," Done ")])])])):S("",!0)}const ii=_e(ye,[["render",ti]]);var si=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,ai=(a,e,o,r)=>{for(var c=r>1?void 0:r?oi(e,o):e,g=a.length-1,u;g>=0;g--)(u=a[g])&&(c=(r?u(e,o,c):u(c))||c);return r&&c&&si(e,o,c),c};let xe=class extends Ce{constructor(){super(...arguments);h(this,"$notify");h(this,"AppString",we);h(this,"PASSKEYS_ENABLED",Ze);h(this,"activeDid","");h(this,"allContacts",[]);h(this,"allMyDids",[]);h(this,"apiServer","");h(this,"feedData",[]);h(this,"feedPreviousOldestId");h(this,"feedLastViewedClaimId");h(this,"givenName","");h(this,"isAnyFeedFilterOn");h(this,"isCreatingIdentifier",!1);h(this,"isFeedFilteredByVisible",!1);h(this,"isFeedFilteredByNearby",!1);h(this,"isFeedLoading",!0);h(this,"isRegistered",!1);h(this,"lastAckedOfferToUserJwtId");h(this,"lastAckedOfferToUserProjectsJwtId");h(this,"newOffersToUserHitLimit",!1);h(this,"newOffersToUserProjectsHitLimit",!1);h(this,"numNewOffersToUser",0);h(this,"numNewOffersToUserProjects",0);h(this,"searchBoxes",[]);h(this,"showShortcutBvc",!1);h(this,"userAgentInfo",new Nt.UAParser)}async mounted(){try{try{if(this.allMyDids=await mt(),this.allMyDids.length===0){this.isCreatingIdentifier=!0;const r=await ft();this.isCreatingIdentifier=!1,this.allMyDids=[r]}}catch(r){Me("Error retrieving all account DIDs on home page:"+r,!0)}const o=await ge();if(this.apiServer=o.apiServer||"",this.activeDid=o.activeDid||"",this.allContacts=await U.contacts.toArray(),this.feedLastViewedClaimId=o.lastViewedClaimId,this.givenName=o.firstName||"",this.isFeedFilteredByVisible=!!o.filterFeedByVisible,this.isFeedFilteredByNearby=!!o.filterFeedByNearby,this.isRegistered=!!o.isRegistered,this.lastAckedOfferToUserJwtId=o.lastAckedOfferToUserJwtId,this.lastAckedOfferToUserProjectsJwtId=o.lastAckedOfferToUserProjectsJwtId,this.searchBoxes=o.searchBoxes||[],this.showShortcutBvc=!!o.showShortcutBvc,this.isAnyFeedFilterOn=Ve(o),o.finishedOnboarding||this.$refs.onboardingDialog.open(pt.Home),!this.isRegistered&&this.activeDid)try{(await wt(this.apiServer,this.axios,this.activeDid)).status===200&&(await et(this.activeDid,{isRegistered:!0}),this.isRegistered=!0)}catch{}if(this.updateAllFeed(),this.activeDid){const r=await gt(this.axios,this.apiServer,this.activeDid,this.lastAckedOfferToUserJwtId);console.log("offersToUserData",r),this.numNewOffersToUser=r.data.length,this.newOffersToUserHitLimit=r.hitLimit}if(this.activeDid){const r=await vt(this.axios,this.apiServer,this.activeDid,this.lastAckedOfferToUserProjectsJwtId);this.numNewOffersToUserProjects=r.data.length,this.newOffersToUserProjectsHitLimit=r.hitLimit}}catch(o){Me("Error retrieving settings or feed: "+o,!0),this.$notify({group:"alert",type:"danger",title:"Error",text:o.userMessage||"There was an error retrieving your settings or the latest activity."},-1)}}async generatePasskeyIdentifier(){this.isCreatingIdentifier=!0;const o=await yt(we.APP_NAME+(this.givenName?" - "+this.givenName:""));this.activeDid=o.did,this.allMyDids=this.allMyDids.concat(this.activeDid),this.isCreatingIdentifier=!1}resultsAreFiltered(){return this.isFeedFilteredByVisible||this.isFeedFilteredByNearby}notificationsSupported(){return"Notification"in window}async reloadFeedOnChange(){const o=await ge();this.isFeedFilteredByVisible=!!o.filterFeedByVisible,this.isFeedFilteredByNearby=!!o.filterFeedByNearby,this.isAnyFeedFilterOn=Ve(o),this.feedData=[],this.feedPreviousOldestId=void 0,await this.updateAllFeed()}async loadMoreGives(o){o&&!this.isFeedLoading&&await this.updateAllFeed()}latLongInAnySearchBox(o,r){for(const c of this.searchBoxes)if(c.bbox.westLong<=r&&r<=c.bbox.eastLong&&c.bbox.minLat<=o&&o<=c.bbox.maxLat)return!0}async updateAllFeed(){this.isFeedLoading=!0;let o=!0;await this.retrieveGives(this.apiServer,this.feedPreviousOldestId).then(async r=>{var c,g,u,D;if(r.data.length>0){o=!1;for(const A of r.data){const N=A.fullClaim.claim||A.fullClaim,O=((c=N.agent)==null?void 0:c.identifier)||((g=N.agent)==null?void 0:g.did),R=((u=N.recipient)==null?void 0:u.identifier)||((D=N.recipient)==null?void 0:D.did),t=await Ge(A.fulfillsPlanHandleId,this.axios,this.apiServer,this.activeDid);let n=!1;if(this.isFeedFilteredByVisible&&xt(A)&&(n=!0),!n&&this.isFeedFilteredByNearby&&A.fulfillsPlanHandleId&&t!=null&&t.locLat&&t!=null&&t.locLon&&this.latLongInAnySearchBox(t.locLat,t.locLon)&&(n=!0),this.isAnyFeedFilterOn&&!n)continue;const i=Array.isArray(N.provider)?N.provider[0]:N.provider,s=await Ge(i==null?void 0:i.identifier,this.axios,this.apiServer,this.activeDid),l={...A,giver:He(O,this.activeDid,qe(O,this.allContacts),this.allMyDids),image:N.image,providerPlanHandleId:i==null?void 0:i.identifier,providerPlanName:s==null?void 0:s.name,recipientProjectName:t==null?void 0:t.name,receiver:He(R,this.activeDid,qe(R,this.allContacts),this.allMyDids)};this.feedData.push(l)}this.feedPreviousOldestId=r.data[r.data.length-1].jwtId,(this.feedLastViewedClaimId==null||this.feedLastViewedClaimId<r.data[0].jwtId)&&(await U.open(),await U.settings.update(X,{lastViewedClaimId:r.data[0].jwtId}))}}).catch(r=>{console.error("Error with feed load:",r),this.$notify({group:"alert",type:"danger",title:"Feed Error",text:r.userMessage||"There was an error retrieving feed data."},-1)}),this.feedData.length===0&&!o&&await this.updateAllFeed(),this.isFeedLoading=!1}async retrieveGives(o,r){const c=r==null?"":"&beforeId="+r,g=!!r,u=await kt(this.activeDid,g?void 0:this.$notify),D=await fetch(o+"/api/v2/report/gives?giftNotTrade=true"+c,{method:"GET",headers:u});if(!D.ok)throw await D.text();const A=await D.json();if(A.data)return A;throw JSON.stringify(A)}giveDescription(o){var D;const r=o.fullClaim.claim||o.fullClaim;let c=(D=r.object)!=null&&D.amountOfThisGood?this.displayAmount(r.object.unitCode,r.object.amountOfThisGood):"";r.description&&(c&&(c=" (and "+c+")"),c=r.description+c),c||(c="something not described");const g=o.giver,u=o.receiver;if(g.known&&u.known)return`${g.displayName} gave to ${u.displayName}: ${c}`;if(g.known)return o.recipientProjectName?`${g.displayName} gave: ${c} (to the project "${o.recipientProjectName}")`:`${g.displayName} gave: ${c} (to ${u.displayName})`;if(u.known)return o.providerPlanName?`${u.displayName} received: ${c} (from the project "${o.providerPlanName}")`:`${u.displayName} received: ${c} (from ${g.displayName})`;{let A="";return o.providerPlanName||o.recipientProjectName?(o.providerPlanName?A=`from the project "${o.providerPlanName}"`:A=`from ${g.displayName}`,o.recipientProjectName?A+=` to the project "${o.recipientProjectName}"`:A+=` to ${u.displayName}`):g.displayName===u.displayName?A=`between two who are ${g.displayName}`:A=`from ${g.displayName} to ${u.displayName}`,c+" ("+A+")"}}goToActivityToUserPage(){this.$router.push({name:"new-activity"})}onClickLoadClaim(o){const r={path:"/claim/"+encodeURIComponent(o)};this.$router.push(r)}displayAmount(o,r){return""+r+" "+this.currencyShortWordForCode(o,r===1)}currencyShortWordForCode(o,r){return o==="HUR"?r?"hour":"hours":o}openDialog(o,r){this.$refs.customDialog.open(o,{did:this.activeDid,name:"you"},void 0,"Given by "+((o==null?void 0:o.name)||"someone not named"),r)}openGiftedPrompts(){this.$refs.giftedPrompts.open((o,r)=>this.openDialog(o,r))}openFeedFilters(){this.$refs.feedFilters.open(this.reloadFeedOnChange)}toastUser(o){this.$notify({group:"alert",type:"toast",title:"FYI",text:o},2e3)}computeKnownPersonIconStyleClassNames(o){return o?"text-slate-500":"text-slate-100"}showNameThenIdDialog(){this.givenName?this.promptForShareMethod():this.$refs.userNameDialog.open(()=>{this.promptForShareMethod()})}promptForShareMethod(){this.$notify({group:"modal",type:"confirm",title:"Are you nearby with cameras?",text:"If so, we'll use those with QR codes to share.",onCancel:async()=>{},onNo:async()=>{this.$router.push({name:"share-my-contact-info"})},onYes:async()=>{this.$router.push({name:"contact-qr"})},noText:"we will share another way",yesText:"we are nearby with cameras"},-1)}};xe=ai([ke({computed:{App(){return tt}},components:{EntityIcon:st,FeedFilters:ii,GiftedDialog:ot,GiftedPrompts:Ht,InfiniteScroll:dt,OnboardingDialog:ct,QuickNav:ut,TopMessage:bt,UserNameDialog:ht}})],xe);const ri={id:"Content",class:"p-2 pb-24 max-w-3xl mx-auto"},ni={id:"ViewHeading",class:"text-4xl text-center font-light mb-8"},li={class:"mb-8 mt-8"},di={key:0,class:"mb-4"},ci={class:"mb-8"},ui={key:0},bi={class:"text-slate-500 text-center italic mt-4 mb-4"},hi={key:1},mi={class:"mb-4"},fi={key:0,id:"noticeSomeoneMustRegisterYou",class:"bg-amber-200 rounded-md overflow-hidden text-center px-4 py-3 mb-4"},pi={class:"block text-center"},wi={key:0,class:"flex justify-end w-full"},gi={key:1,id:"sectionRecordSomethingGiven"},vi={class:"flex"},yi={class:"grid grid-cols-4 sm:grid-cols-5 md:grid-cols-6 gap-x-3 gap-y-5 text-center mt-4"},xi={key:0,class:"text-sm"},ki=["onClick"],Ci={class:"text-xs text-blue-500 font-medium text-ellipsis whitespace-nowrap overflow-hidden cursor-pointer"},_i={class:"relative"},Ai={class:"bg-slate-100 rounded-md px-4 py-3 mt-4 mb-4"},Ni={class:"flex items-center mb-4"},Ii={class:"text-xl font-bold"},Di={class:"text-xs text-white"},Si={class:"flex justify-center"},Oi={key:0,class:"bg-gradient-to-b from-green-400 to-green-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] m-1 px-4 py-4 rounded-md text-white"},Ti={class:"block text-center text-6xl","data-testId":"newDirectOffersActivityNumber"},Ei={class:"text-center"},Fi={key:1,class:"bg-gradient-to-b from-green-400 to-green-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] m-1 px-4 py-4 rounded-md text-white"},Pi={class:"block text-center text-6xl","data-testId":"newOffersToUserProjectsActivityNumber"},$i={class:"text-center"},Ui={id:"listLatestActivity",class:"border-t border-slate-300"},Bi={key:0,class:"border-b border-slate-300 text-orange-400 pb-2 mb-2 font-bold text-sm"},ji={class:"grid grid-cols-12"},Li={class:"pt-1 col-span-1 justify-self-start"},Mi={class:"col-span-10 justify-self-stretch"},Vi={class:"pl-2"},Ri=["onClick"],Gi={class:"col-span-1 justify-self-end"},Hi={key:1,class:"flex justify-center"},qi=["href"],zi=["src"],Yi={key:0},Wi={class:"text-slate-500 text-center italic mt-4 mb-4"},Ki={key:1};function Ji(a,e,o,r,c,g){const u=E("QuickNav"),D=E("TopMessage"),A=E("OnboardingDialog"),N=E("fa"),O=E("router-link"),R=E("UserNameDialog"),t=E("EntityIcon"),n=E("GiftedDialog"),i=E("GiftedPrompts"),s=E("FeedFilters"),l=E("InfiniteScroll");return y(),C(pe,null,[I(u,{selected:"Home"}),I(D),d("section",ri,[d("h1",ni,F(a.AppString.APP_NAME),1),I(A,{ref:"onboardingDialog"},null,512),d("div",li,[S("",!0)]),a.showShortcutBvc?(y(),C("div",di,[I(O,{to:{name:"quick-action-bvc"},class:"block text-center text-md font-bold bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white mt-2 px-2 py-3 rounded-md"},{default:q(()=>e[19]||(e[19]=[$(" Bountiful Voluntaryist Community Actions ")])),_:1})])):S("",!0),d("div",ci,[a.isCreatingIdentifier?(y(),C("div",ui,[d("p",bi,[I(N,{icon:"spinner",class:"fa-spin-pulse"}),e[20]||(e[20]=$(" Loading… "))])])):(y(),C("div",hi,[d("div",mi,[a.isRegistered?(y(),C("div",gi,[d("div",vi,[e[23]||(e[23]=d("h2",{class:"text-xl font-bold"},"What have you seen someone do?",-1)),d("button",{onClick:e[1]||(e[1]=w=>a.openGiftedPrompts()),class:"ml-2 block text-xs text-center bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1 rounded-md"},[I(N,{icon:"lightbulb",class:"fa-fw"})])]),d("ul",yi,[d("li",{onClick:e[2]||(e[2]=w=>a.openDialog())},e[24]||(e[24]=[d("img",{src:Ct,class:"mx-auto border border-blue-500 rounded-md mb-1 cursor-pointer"},null,-1),d("h3",{class:"text-xs text-blue-500 italic font-medium text-ellipsis whitespace-nowrap overflow-hidden cursor-pointer"}," Unnamed/Unknown ",-1)])),a.allContacts.length===0?(y(),C("li",xi," (Add friends to see more people worthy of recognition.) ")):S("",!0),(y(!0),C(pe,null,Re(a.allContacts.slice(0,6),w=>(y(),C("li",{key:w.did,onClick:L=>a.openDialog(w)},[I(t,{contact:w,iconSize:64,class:"mx-auto border border-blue-500 rounded-md mb-1 cursor-pointer"},null,8,["contact"]),d("h3",Ci,F(w.name||w.did),1)],8,ki))),128)),d("li",null,[a.allContacts.length>=6?(y(),Q(O,{key:0,to:{name:"contact-gift"},class:"flex align-bottom text-xs text-blue-500 mt-12 cursor-pointer"},{default:q(()=>e[25]||(e[25]=[$(" ... or someone else... ")])),_:1})):S("",!0)])])])):(y(),C("div",fi,[e[22]||(e[22]=$(" To share, someone must register you. ")),d("div",pi,[d("button",{onClick:e[0]||(e[0]=w=>a.showNameThenIdDialog()),class:"text-md font-bold bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white mt-2 px-2 py-3 rounded-md"}," Show them "+F(a.PASSKEYS_ENABLED?"default":"your")+" identifier info ",1)]),I(R,{ref:"userNameDialog"},null,512),a.PASSKEYS_ENABLED?(y(),C("div",wi,[I(O,{to:{name:"start"},class:"block text-right text-md font-bold bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white mt-2 px-2 py-3 rounded-md"},{default:q(()=>e[21]||(e[21]=[$(" See all your options first ")])),_:1})])):S("",!0)]))])]))]),I(n,{ref:"customDialog"},null,512),I(i,{ref:"giftedPrompts"},null,512),I(s,{ref:"feedFilters"},null,512),d("div",_i,[a.isRegistered?(y(),C("button",{key:0,class:"absolute right-6 bottom-0 transform translate-y-1/2 text-center text-4xl leading-none bg-green-600 text-white w-14 py-2.5 rounded-full",onClick:e[3]||(e[3]=w=>a.openDialog())},[I(N,{icon:"plus",class:"fa-fw"})])):S("",!0)]),d("div",Ai,[d("div",Ni,[d("h2",Ii,[e[26]||(e[26]=$(" Latest Activity ")),d("button",{onClick:e[4]||(e[4]=w=>a.openFeedFilters())},[d("span",Di,[a.resultsAreFiltered()?(y(),Q(N,{key:0,icon:"filter",class:"bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] px-1 py-1.5 rounded-md"})):(y(),Q(N,{key:1,icon:"filter",class:"bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] px-1 py-1.5 rounded-md"}))])])])]),d("div",{onClick:e[5]||(e[5]=w=>a.goToActivityToUserPage()),class:"border-t p-2 border-slate-300"},[d("div",Si,[a.numNewOffersToUser?(y(),C("div",Oi,[d("span",Ti,F(a.numNewOffersToUser)+F(a.newOffersToUserHitLimit?"+":""),1),d("p",Ei," new offer"+F(a.numNewOffersToUser===1?"":"s")+" to you ",1)])):S("",!0),a.numNewOffersToUserProjects?(y(),C("div",Fi,[d("span",Pi,F(a.numNewOffersToUserProjects)+F(a.newOffersToUserProjectsHitLimit?"+":""),1),d("p",$i," new offer"+F(a.numNewOffersToUserProjects===1?"":"s")+" to your projects ",1)])):S("",!0)]),e[27]||(e[27]=d("div",{class:"flex justify-end mt-2"},[d("button",{class:"text-blue-500"},"View All New Activity For You")],-1))]),I(l,{onReachedBottom:a.loadMoreGives},{default:q(()=>[d("ul",Ui,[(y(!0),C(pe,null,Re(a.feedData,w=>(y(),C("li",{class:"border-b border-slate-300 py-2",key:w.jwtId},[w.jwtId==a.feedLastViewedClaimId?(y(),C("div",Bi," You've already seen all the following ")):S("",!0),d("div",ji,[d("span",Li,[d("span",null,[I(N,{icon:"circle-user",class:it(a.computeKnownPersonIconStyleClassNames(w.giver.known||w.receiver.known)),onClick:e[6]||(e[6]=L=>a.toastUser("This involves your contacts."))},null,8,["class"]),I(N,{icon:"gift",class:"pl-3 text-slate-500",onClick:e[7]||(e[7]=L=>a.toastUser("This is a gift."))})])]),d("span",Mi,[d("span",Vi,F(a.giveDescription(w)),1),d("a",{onClick:L=>a.onClickLoadClaim(w.jwtId)},[I(N,{icon:"file-lines",class:"pl-2 text-slate-500 cursor-pointer"})],8,Ri)]),d("span",Gi,[w.fulfillsPlanHandleId?(y(),Q(O,{key:0,to:"/project/"+encodeURIComponent(w.fulfillsPlanHandleId)},{default:q(()=>[I(N,{icon:"hammer",class:"text-blue-500"})]),_:2},1032,["to"])):S("",!0),w.providerPlanHandleId?(y(),Q(O,{key:1,to:"/project/"+encodeURIComponent(w.providerPlanHandleId)},{default:q(()=>[I(N,{icon:"hammer",class:"text-blue-500"})]),_:2},1032,["to"])):S("",!0)])]),w.image?(y(),C("div",Hi,[d("a",{href:w.image,target:"_blank"},[d("img",{src:w.image,class:"h-48 mt-2 rounded-xl"},null,8,zi)],8,qi)])):S("",!0)]))),128))])]),_:1},8,["onReachedBottom"]),a.isFeedLoading?(y(),C("div",Yi,[d("p",Wi,[I(N,{icon:"spinner",class:"fa-spin-pulse"}),e[28]||(e[28]=$(" Loading… "))])])):S("",!0),!a.isFeedLoading&&a.feedData.length===0?(y(),C("div",Ki,e[29]||(e[29]=[d("p",{class:"text-slate-500 text-center italic mt-4 mb-4"}," No claims match your filters. ",-1)]))):S("",!0)])])],64)}const bs=_e(xe,[["render",Ji]]);export{bs as default};