//{"name":"notifications","version":"1.3.1326","created":"2025-05-19T08:41:48.979Z"}
import*as e from"./svelteInternal.js";import{nls as t,nlsWoHtml as i,format as s}from"./i18n.js";import{eventer as n,napiTracker as o,serviceRequest as r,moduleManager as a,windowApi as c}from"./napi.js";import{Widget as l,IconButton as d,Illustration as u}from"./svelteComponents.js";import{productModel as p,napiUtils as m,ipmService as g,features as f,settingsService as h}from"./napiExtensions.js";import{stringUtils as _,pixelTracker as b,debounce as v}from"./libs.js";import{cookies as y}from"./plugins.js";const w=globalThis.process?.env?.NODE_ENV,I=w&&!w.toLowerCase().startsWith("prod"),k=()=>{};let x=!1;if(I){function ye(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(void 0!==t)return t;!function(e){if(I){const t=new Error(`rune_outside_svelte\nThe \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/rune_outside_svelte")}(e)},set:e=>{t=e}})}}ye("$state"),ye("$effect"),ye("$derived"),ye("$inspect"),ye("$props"),ye("$bindable")}function C(e,t,i){if(null==e)return t(void 0),i&&i(void 0),k;const s=function(e){var t=x;try{return x=!0,e()}finally{x=t}}((()=>e.subscribe(t,i)));return s.unsubscribe?()=>s.unsubscribe():s}const A=[];function T(e,t=k){let i=null;const s=new Set;function n(t){if(o=t,((n=e)!=n?o==o:n!==o||null!==n&&"object"==typeof n||"function"==typeof n)&&(e=t,i)){const t=!A.length;for(const i of s)i[1](),A.push(i,e);if(t){for(let e=0;e<A.length;e+=2)A[e][0](A[e+1]);A.length=0}}var n,o}function o(t){n(t(e))}return{set:n,update:o,subscribe:function(r,a=k){const c=[r,a];return s.add(c),1===s.size&&(i=t(n,o)||k),r(e),()=>{s.delete(c),0===s.size&&i&&(i(),i=null)}}}}function N(e,t,i){const s=!Array.isArray(e),n=s?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return r=(e,i)=>{let r=!1;const a=[];let c=0,l=k;const d=()=>{if(c)return;l();const n=t(s?a[0]:a,e,i);o?e(n):l="function"==typeof n?n:k},u=n.map(((e,t)=>C(e,(e=>{a[t]=e,c&=~(1<<t),r&&d()}),(()=>{c|=1<<t}))));return r=!0,d(),function(){!function(e){for(var t=0;t<e.length;t++)e[t]()}(u),l(),r=!1}},{subscribe:T(i,r).subscribe};var r}const P={antiexploit_off:"icon-m-tools-core-shields",antiransomwareshield_off:"icon-m-ransomware",arpot_off:"icon-m-tools-core-shields",autoupdate_off:"icon-m-action-reload",behavshield_off:"icon-m-tools-core-shields",browserprotection_shield_off:"icon-m-earth",datascan_off:"icon-m-tools-core-shields",defs_out_of_date:"icon-m-action-reload",firewall_off:"icon-m-tools-firewall",fw_public_profile:"icon-m-tools-firewall",fsshield_off:"icon-m-scan-folder",mailshield_off:"icon-m-mail",net_lock_on:"icon-m-wifi",passive_mode:"icon-m-tools-privacy",passive_mode_locked:"icon-m-tools-privacy",passive_mode_manual:"icon-m-tools-privacy",reboot_required:"icon-l-platform-windows",securedns_off:"icon-m-tools-real-site",self_defense_off:"icon-m-block",shields_off:"icon-m-tools-core-shields",silent_mode_on:"icon-l-bedtime",some_shields_off:"icon-m-tools-core-shields",subscription_paid_expired:"icon-m-subscription",subscription_trial_expired:"icon-m-subscription",subscription_business_expired:"icon-m-subscription",subscription_free_expired:"icon-m-subscription",service_off:"icon-s-controls-settings",version_outdated:"icon-m-action-reload",webcamshield_off:"icon-l-webcam",webshield_off:"icon-m-earth",wrong_time:"icon-m-time",remote_access_shield_off:"icon-m-remote-desktop-control"},S={1:"badge-critical",2:"badge-attention",3:"badge-ok"},B={1:"notification-1",2:"notification-2",3:"notification-3",4:"notification-4",5:"notification-5",6:"notification-6",7:"notification-7",8:"notification-8"},E={1:"critical",2:"attention",3:"ok"};class L{get id(){throw new Error("Not implemented")}get ignored(){throw new Error("Not implemented")}get ignorable(){throw new Error("Not implemented")}get severity(){throw new Error("Not implemented")}get priority(){throw new Error("Not implemented")}get icon(){throw new Error("Not implemented")}get isBuyBcProblem(){throw new Error("Not implemented")}get buyBcActionLabel(){throw new Error("Not implemented")}get title(){throw new Error("Not implemented")}get secondaryAction(){return!1}trackView(){return!1}}class $ extends L{#e;#t;#i;#s;#n;#o;#r;#a;#c;constructor(e,t,i,s){super(),this.#t=e.id,this.#i=e.ignored,this.#n=e.ignorable,this.#o=e.priority,this.#r=e.severity,this.#e=t,this.#s=i,this.#a=s,this.#c="payment_failure"===this.#t&&p.isPaymentFailureExpiring()}get id(){return this.#t}get ignored(){return this.#i}get ignorable(){return!this.#i&&this.#n}get severity(){return this.#r}get priority(){return this.#o}get icon(){return P[this.#t]||"icon-m-info"}get isBuyBcProblem(){return p.isAfbEdition()&&p.isBuyBcProblem(this.#t)}get buyBcActionLabel(){return p.isReseller()?t("dashboard.problems.subscription_business_reseller.action"):t("dashboard.problems.subscription_business.action")}get title(){if(this.#t?.startsWith("expiring")){const e=p.isTrial()?"dashboard.problems.expiring.trial":"dashboard.problems.expiring";return t(e,p.getExpiration(),this.#l())}return"payment_failure"===this.#t?t(this.#c?"dashboard.problems.payment_failure.expiring":"dashboard.problems.payment_failure",p.getExpiration(),E[this.#r]):t(`dashboard.problems.${this.#t}`,E[this.#r])}get iconBadge(){return S[this.#r]||!1}get desc(){if(this.#t.startsWith("expiring")){const e="pro_av"===p.getProduct(),i=p.isTrial(),s=t(m.getProductStringId());return t(e&&i?"dashboard.problems.expiring.trial.pro.desc":e&&!i?"dashboard.problems.expiring.pro.desc":!e&&i?"dashboard.problems.expiring.trial.desc":"dashboard.problems.expiring.desc",s)}return"payment_failure"===this.#t?this.#c?t("dashboard.problems.payment_failure.expiring.desc"):i("dashboard.problems.payment_failure.desc",p.getExpiration(),E[this.#r]):t("dashboard.problems."+this.#t+".desc")}get actionLabel(){return this.#i?t("notifications.unignore"):this.#t.startsWith("expiring")?p.isTrial()?t("dashboard.problems.expiring.trial.action"):t("dashboard.problems.expiring.action"):this.#c?t("dashboard.problems.payment_failure.expiring.action"):t("dashboard.problems."+this.#t+".action")}get visualClass(){return"transparent-with-hover"}get buttonType(){return this.#i?"secondary":"primary"}get hasAction(){return"passive_mode_locked"!==this.#t&&!this.isBuyBcProblem}doAction(){this.#i?this.#a({id:this.#t,severity:this.#r}):this.#e({id:this.#t,severity:this.#r})}ignore(){this.#s({id:this.#t,severity:this.#r})}#l(){switch(p.getStatus()){case"green":return"ok";case"yellow":return"attention";case"red":case"service_unreachable":return"critical";default:return"white"}}}class j extends L{#d;#u;#p;#m;#t;#g;#f;#h;#_;#b;constructor(e,t,i){super(),this.#d=e.ButtonCaption,this.#p=e.Desc,this.#t=e.ItemUID,this.#h=e.Timestamp,this.#_=e.Type,this.#b=e.Title,this.#u=e.DarkWebMonitor,this.#m=t,this.#f=i,this.#g=e}get id(){return this.#t}get ignored(){return!1}get ignorable(){return!this.#u}get severity(){return null}get priority(){return 0}get timestamp(){return this.#h}get icon(){return this.#_<=6?B[this.#_]:"icon-m-info"}get isBuyBcProblem(){return!1}get buyBcActionLabel(){return null}get title(){return this.#b}get iconBadge(){return null}get desc(){return _.stripHtml(this.#p)}get actionLabel(){return this.#d}get visualClass(){return"transparent-with-hover"}get buttonType(){return"primary"}get hasAction(){return Boolean(this.#d)}doAction(){return n.emit("nui.overlay.close"),this.#m(this.#g)}ignore(){return this.#f(this.#g)}}class q extends L{#v;#y;#d;#w;#I;#k;#p;#x;#C;#A;#n;#T;#o;#b;#N;#P;#S;#B;constructor(e){super(),this.#v=e.actionTracking||[],this.#y=e.badge,this.#d=e.buttonCaption,this.#w=e.closeTracking||[],this.#I=e.cookieCounters,this.#k=e.customColor,this.#p=e.desc,this.#x=e.fetchTimestamp,this.#C=e.fncName,this.#A=e.icon,this.#n=e.ignorable,this.#T=e.params,this.#o=e.priority,this.#b=e.title,this.#N=e.trackingLabel,this.#P=e.secondaryAction,this.#S=e.uniqueId,this.#B=e.viewTracking||[]}get id(){return this.#S}get sev,yahoo.com#@##sda-LREC4
~verizon.yahoo.com,yahoo.com###sda-LREC:not(.uba-container)
~verizon.yahoo.com,yahoo.com###sda-LREC2:not(.uba-container)
yahoo.com#@#.darla-container
~verizon.yahoo.com,yahoo.com#@#.darla-lrec-ad
~verizon.yahoo.com,yahoo.com##.darla-lrec-ad:not(.uba-container)
~verizon.yahoo.com,yahoo.com##.viewer-sda-container > *:not(.uba-container)
~verizon.yahoo.com,yahoo.com#@#.viewer-sda-container
~verizon.yahoo.com,yahoo.com##.caas-body .caas-da
~verizon.yahoo.com,yahoo.com#@#\[data-content="Advertisement"]
~verizon.yahoo.com,yahoo.com#@##sda-Horizon
~verizon.yahoo.com,yahoo.com###sda-Horizon:not(#sda-Horizon:has(.uba-container))
~verizon.yahoo.com,yahoo.com#@##sda-MAST
~verizon.yahoo.com,yahoo.com###sda-MAST:not(#sda-MAST.uba-container)
~verizon.yahoo.com,yahoo.com#@##sda-LREC-iframe
~verizon.yahoo.com,yahoo.com###sda-LREC-iframe:not(.uba-container #sda-LREC-iframe)
~verizon.yahoo.com,yahoo.com#@##sda-LREC2-iframe
~verizon.yahoo.com,yahoo.com#@##sda-LREC3-iframe
~verizon.yahoo.com,yahoo.com###sda-LREC3-iframe:not(.uba-container #sda-LREC3-iframe)
~verizon.yahoo.com,yahoo.com###sda-LREC4-iframe:not(.uba-container #sda-LREC4-iframe)
~verizon.yahoo.com,yahoo.com#@##sda-LDRB-iframe
~verizon.yahoo.com,yahoo.com###sda-LDRB-iframe:not(.uba-container #sda-LDRB-iframe)
~verizon.yahoo.com,yahoo.com#@#.caas-da
~verizon.yahoo.com,yahoo.com##.caas-da:not(.caas-da:has(.uba-container))
sports.yahoo.com#@##mrt-node-Primary-0-Ad
sports.yahoo.com###mrt-node-Primary-0-Ad:not(#mrt-node-Primary-0-Ad:has(.uba-container))
sports.yahoo.com#@##mrt-node-Secondary-0-Ad
sports.yahoo.com###mrt-node-Secondary-0-Ad:not(#mrt-node-Secondary-0-Ad:has(.uba-container))
sports.yahoo.com#@##mrt-node-Lead-1-Ad
sports.yahoo.com###mrt-node-Lead-1-Ad:not(#mrt-node-Lead-1-Ad:has(.uba-container))
sports.yahoo.com###mrt-node-Lead-2-Ad:not(#mrt-node-Lead-2-Ad:has(.uba-container))
sports.yahoo.com###mrt-node-Col2-2-Ad:not(#mrt-node-Col2-2-Ad:has(.uba-container))
sports.yahoo.com###mrt-node-Col2-9-Ad:not(#mrt-node-Col2-9-Ad:has(.uba-container))
sports.yahoo.com#@#.post-article-ad
sports.yahoo.com##.post-article-ad:not(.post-article-ad.uba-container)
yahoo.com#@#div\[data-content="廣告"]
yahoo.com#@#\[data-wf-beacons]
yahoo.com#@#div\[id^="COMMENTSLDRB"]
yahoo.com#@#.trc-spotlight-first-recommendation
yahoo.com#@#.trc-first-recommendation
yahoo.com#@#div\[id^="taboola-stream-"]
yahoo.com#@#.trc-content-sponsored
yahoo.com#@#.trc_related_container
yahoo.com#@#.trc_spotlight_item
yahoo.com#@#.trc_excludable
yahoo.com#@#.trc_rbox_border_elm
yahoo.com#@#.trc_rbox_div
yahoo.com#@#.trc_rbox
yahoo.com#@#.trc_related_container div\[data-item-syndicated="true"]
! end of Yahoo direct demand
! Hidden for compliance
mail.yahoo.com###sb_rel_tgtLREC4.darla
! end of Hidden for compliance
! temporary filters
||pbs.yahoo.com/openrtb2/auction$domain=yahoo.com|aol.com|mail.yahoo.com|mail.aol.com
||hbopenbid.pubmatic.com/translator?source=prebid-client$domain=yahoo.com|aol.com|mail.yahoo.com|mail.aol.com
||fastlane.rubiconproject.com/a/api/fastlane.json$domain=yahoo.com|aol.com|mail.yahoo.com|mail.aol.com
||htlb.casalemedia.com/openrtb/pbjs$domain=yahoo.com|aol.com|mail.yahoo.com|mail.aol.com
||rtb.openx.net/openrtbb/prebidjs$domain=yahoo.com|aol.com|mail.yahoo.com|mail.aol.com
||tlx.3lift.com/header/auction$domain=yahoo.com|aol.com|mail.yahoo.com|mail.aol.com
||prebid.media.net/rtb/prebid?cid=8CUBQTSIL$domain=yahoo.com|aol.com|mail.yahoo.com|mail.aol.com
||ads.yieldmo.com/exchange/prebid$domain=yahoo.com|aol.com|mail.yahoo.com|mail.aol.com
||bidder.criteo.com/cdb$domain=yahoo.com|aol.com|mail.yahoo.com|mail.aol.com
! end of temporary filters
! Yahoo search/in-feed ads
||yimg.com/pv/static/img/abppx-*.gif?ch=2&rn=$image
@@||yimg.com/pv/static/img/abppx-*.gif?ch=1&rn=$image
!
@@||bing.com/th?*^pid=Ads^$image,domain=search.yahoo.com
@@||doubleclick.net/clk^$popup,domain=search.yahoo.com
@@||gla.search.yahoo.com^$~third-party,xmlhttprequest
!
@@||doubleclick.net/clk;$popup,domain=~verizon.yahoo.com|~rogers.yahoo.com|~frontier.yahoo.com|yahoo.com
@@||track.adform.net^$popup,domain=~verizon.yahoo.com|~rogers.yahoo.com|~frontier.yahoo.com|yahoo.com
@@||mediaplex.com/ad/ck/$popup,domain=~verizon.yahoo.com|~rogers.yahoo.com|~frontier.yahoo.com|yahoo.com
@@||bs.serving-sys.com/serving/adServer.bs?$popup,domain=~verizon.yahoo.com|~rogers.yahoo.com|~frontier.yahoo.com|yahoo.com
@@||a.twiago.com/adclick.php$popup,domain=~verizon.yahoo.com|~rogers.yahoo.com|~frontier.yahoo.com|yahoo.com
@@||ads.performates.com/click.php?$popup,domain=~verizon.yahoo.com|~rogers.yahoo.com|~frontier.yahoo.com|yahoo.com
!
@@||partnerads.ysm.yahoo.com/syndication.js
@@||partnerads.ysm.yahoo.com/ypa/$subdocument,document
@@||searchmobileonline.com/?q=$elemhide
@@||everyauto.com^*/listings.php?$elemhide
@@||get-me-jobs.com^*^q=$elemhide
@@||poba.com.tw/search/$elemhide
@@||poba.hk/search/$elemhide
@@||poke.com.tw/search/$elemhide
@@||poke168.com/search/$elemhide
@@||prizegrab.com/search/$elemhide
@@||purelocal.com/Search.aspx?$elemhide
@@||sitemaji.com/ypa/poke.js$domain=poke.com.tw
@@||sitemaji.com/ypa/poke_$script,domain=poke168.com
@@||sopeen.com/search/$elemhide
@@||thenizzle.com/?s=$elemhide
@@||sweepstakesalerts.com/search^$elemhide
@@||searchresults.car.com^*/results.html?$elemhide
@@||obamacare-guide.org/get-quotes/$elemhide
@@||socialwisdomtoday.com/results.php?$elemhide
@@||duckhk.com/hotsearch.php?$elemhide
@@||discounthubb.com/browse?$elemhide
@@||shopstores.net/sch?$elemhide
@@||highstreetdeals.net/sch?$elemhide
@@||rocketfacts.com/?s=$elemhide
@@||lihkg.com/search?$elemhide
@@||automaatic.com/?s=$elemhide
@@||sparkfacts.com/?s=$elemhide
@@||jobcase.com/jobs/search?$elemhide
@@||talkaboutwellbeing.com/?s=$elemhide
@@||experttopics.com/search?$elemhide
@@||themoneydaily.com/?$elemhide
@@||hc.o2o.tw/search?$elemhide
@@||aboutzenlife.com/?s=$elemhide
@@||eveningclassifieds.com/jobs/?$elemhide
@@||everyjobforme.com^$elemhide
@@||jobhat.com^$elemhide
@@||kikinote.net/s/$elemhide
@@||getcouponhere.com/search?$elemhide
@@||getcouponhere.co.uk/search?$elemhide
@@||moobe.com.tw/search.php$elemhide
@@||moobe.tw/search.php$elemhide
@@||searchello.com/search?$elemhide
@@||myfortune.cc/search/$elemhide
@@||xuite.net/search_index.php$elemhide
@@||yes-news.com/search.php$elemhide
@@||littlepet.cc/search/$elemhide
@@||dongtw.com/?s=$elemhide
@@||search.yam.com/Search/$elemhide
@@||ettoday.net^*/doSearch.php$elemhide
@@||gamefan.cc/search/$elemhide
@@||healthtip.cc/search/$elemhide
@@||lifehow.cc/search/$elemhide
@@||japhub.com/?search=$elemhide
@@||ramihaha.tw/?s=$elemhide
@@||pixpo.net^*^searchword=$elemhide
@@||facty.com/?s=$elemhide
@@||3pmhk.online/?s=$elemhide
@@||fafaup.com/search/$elemhide
@@||toolslover.club/?s=$elemhide
@@||read01.com/search/?q=$elemhide
@@||feedtrip.club/?s=$elemhide
@@||ikachalife.com/?s=$elemhide
@@||happies.club/?s=$elemhide
@@||circle01.life/?s=$elemhide
@@||wongyau.com/?s=$elemhide
@@||how01.com/search/?q=$elemhide
@@||moonpoet.com/?s=$elemhide
@@||easylife.tw/search/$elemhide
@@||kiwsy.cc/?s=$elemhide
@@||vdo01.club/?s=$elemhide
@@||iso2.cc/?s=$elemhide
@@||lifeonea.co/?s=$elemhide
@@||kknews.cc/search/?q=$elemhide
@@||hkgolden.com/Default_test.aspx$elemhide
@@||tagmum.com/search?$elemhide
@@||joeitravel.tw/search?$elemhide
@@||hotnews.host/?s=$elemhide
@@||fupo.tw/?s=$elemhide
@@||go2tutor.com/search.php$elemhide
@@||nowsfeed.club/?s=$elemhide
@@||tagpopular.com/search?$elemhide
@@||tagsis.com/search?$elemhide
@@||babyonea.co/?s=$elemhide
@@||3boys2girls.com/search.php$elemhide
@@||lifelove01.com/?s=$elemhide
@@||buzzjoker.com/search/$elemhide
@@||shikoto.com/search.html?$elemhide
@@||isheart.co/?s=$elemhide
@@||jojo01.me/?s=$elemhide
@@||meirihaowen.co/?s=$elemhide
@@||nickhow.tw/blog/search/$elemhide
@@||healinggraphics.net/?s=$elemhide
@@||sofree.cc^$elemhide
@@||eilly.co/?s=$elemhide
@@||joyce8.com/?s=$elemhide
@@||clickme.net/s/$elemhide
@@||sofun.tw^$elemhide
@@||interview.tw^$elemhide
@@||pentaxfans.net/search.php$elemhide
@@||ieatcandy.tw/?s=$elemhide
@@||ineeddeco.club/?s=$elemhide
@@||sina.com.hk/p/search/$elemhide
@@||mikatogo.com/?s=$elemhide
@@||88gag.com/ysearch/$elemhide
@@||sak