PageSourceSearch

https://client.sharefull.com/_nuxt/Dty4m5M3.js

js sharefull.com collected 2026-10-01 14:01:35 UTC 8,647 bytes, 2 lines download raw bytes

1("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"v2.158.0"};try{e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(i=(new e.Error).stack)&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="58a7ff27-fbb3-4cfd-9a07-80019e630641",e._sentryDebugIdIdentifier="sentry-dbid-58a7ff27-fbb3-4cfd-9a07-80019e630641")}catch(e){}var e,i;import{hG as n,hy as t,hH as s,hI as o,hC as r,hJ as a,hK as u,hL as c,hB as h,hM as f}from"./BZ12Ddsx.js";const l=function(e){const i=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(i),t=new Uint8Array(n.length);for(let s=0;s<n.length;++s)t[s]=n.charCodeAt(s);return t};class p{constructor(e,i,t,s,o,r,a,u,c,h,f){this.sn=e,this.on=i,this.un=t,this.an=o,this.hn=r,this.cn=a,this.B=u,this.fn=c,this.ln=h,this.C=f,this.sn=e,this.on=i,this.un=t,this.dn=s+"/safari/"+i,this.an=o||"/service-worker.js",this.cn=a,this.B=u,this.fn=c||!1,this.ln=h||!1,this.C=f,this.pn=n.bn(),this.yn=n.mn()}gn(){return this.ln}vn(e,i,n,s,o){e.unsubscribe().then((e=>{e?this.wn(i,n,s,o):(t.error("Failed to unsubscribe device from push."),"function"==typeof o&&o(!1))})).catch((e=>{t.error("Push unsubscription error: "+e),"function"==typeof o&&o(!1)}))}kn(e,i,n){var o;const r=(e=>{if("string"==typeof e)return e;if(0!==e.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return e.endpoint;let i=e.endpoint;const n=e;return n.Pn&&-1===e.endpoint.indexOf(n.Pn)&&(i=e.endpoint+"/"+n.Pn),i})(e);let a=null,u=null;const c=e;if(null!=c.getKey)try{const e=Array.from(new Uint8Array(c.getKey("p256dh"))),i=Array.from(new Uint8Array(c.getKey("auth")));a=btoa(String.fromCharCode.apply(null,e)),u=btoa(String.fromCharCode.apply(null,i))}catch(f){t.error(s(f))}const h=(e=>{let i;return e.options&&(i=e.options.applicationServerKey)&&i.byteLength&&i.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(i)))).replace(/\+/g,"-").replace(/\//g,"_"):null})(c);null===(o=this.sn)||void 0===o||o.Dn(r,i,a,u,h),r&&"function"==typeof n&&n(r,a,u)}Sn(){var e;null===(e=this.sn)||void 0===e||e.An(!0)}jn(e,i){var n;null===(n=this.sn)||void 0===n||n.An(!1),t.info(e),"function"==typeof i&&i(!1)}xn(e,i,n,s){var r;if("default"===i.permission)try{window.safari.pushNotification.requestPermission(this.dn,e,{api_key:this.on,device_id:(null===(r=this.un)||void 0===r?void 0:r.ve().id)||""},(i=>{"granted"===i.permission&&this.sn&&this.sn.setPushNotificationSubscriptionType(o.NotificationSubscriptionTypes.OPTED_IN),this.xn(e,i,n,s)}))}catch(a){this.jn("Could not request permission for push: "+a,s)}else"denied"===i.permission?this.jn("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",s):"granted"===i.permission&&(t.info("Device successfully subscribed to push."),this.kn(i.deviceToken,new Date,n))}requestPermission(e,i,n){const s=s=>{switch(s){case"granted":return void("function"==typeof e&&e());case"default":return void("function"==typeof i&&i());case"denied":return void("function"==typeof n&&n());default:t.error("Received unexpected permission result "+s)}};let o=!1;if("default"!==window.Notification.permission)s(Notification.permission);else{const e=window.Notification.requestPermission((e=>{o&&s(e)}));e?e.then((e=>{s(e)})):o=!0}}wn(e,i,s,o){const r={userVisibleOnly:!0};null!=i&&(r.applicationServerKey=i),e.pushManager.subscribe(r).then((e=>{t.info("Device successfully subscribed to push."),this.kn(e,new Date,s)})).catch((e=>{n.isPushBlocked()?(t.info("Permission for push notifications was denied."),"function"==typeof o&&o(!1)):(t.error("Push subscription failed: "+e),"function"==typeof o&&o(!0))}))}Nn(){if(this.fn)return navigator.serviceWorker.getRegistration(this.an);const e=this.hn?{scope:this.hn}:void 0;return navigator.serviceWorker.register(this.an,e).then((()=>navigator.serviceWorker.ready.then((e=>(e&&"function"==typeof e.update&&e.update().catch((e=>{t.info("ServiceWorker update failed: "+e)})),e)))))}Un(e){this.fn||(e.unregister(),t.info("Service worker successfully unregistered."))}subscribe(e,i){if(!n.isPushSupported())return t.info(p.Wn),void("function"==typeof i&&i(!1));if(this.pn){if(!this.fn&&null!=window.location){let e=this.an;-1===e.indexOf(window.location.host)&&(e=window.location.host+e),-1===e.indexOf(window.location.protocol)&&(e=window.location.protocol+"//"+e)}if(n.isPushBlocked())return void this.jn("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",i);if(this.B&&!this.B._n()&&0===this.B.Et())return t.info("Waiting for VAPID key from server config before subscribing to push."),void this.B.Tn((()=>{this.subscribe(e,i)}));const s=()=>{t.info("Permission for push notifications was denied."),"function"==typeof i&&i(!1)},h=()=>{let e="Permission for push notifications was ignored.";n.isPushBlocked()&&(e+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),t.info(e),"function"==typeof i&&i(!0)},f=n.isPushPermissionGranted(),p=()=>{!f&&this.sn&&this.sn.setPushNotificationSubscriptionType(o.NotificationSubscriptionTypes.OPTED_IN),this.Nn().then((n=>{if(null==n)return t.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to fal
1se or ensure that your service worker is registered before calling registerPush."),void("function"==typeof i&&i(!0));n.pushManager.getSubscription().then((s=>{var o;let h=null;if(null!=(null===(o=this.B)||void 0===o?void 0:o._n())&&(h=l(this.B._n())),s){let o,l=null,p=null;if(this.C&&(o=this.C.ft(r.gt.Vn)),o&&!a(o)){let e;try{e=c.zn(o).qn}catch(f){e=null}null==e||isNaN(e.getTime())||0===e.getTime()||(l=e,p=new Date(l),p.setMonth(l.getMonth()+6))}null!=h&&s.options&&s.options.applicationServerKey&&s.options.applicationServerKey.byteLength&&s.options.applicationServerKey.byteLength>0&&!u(h,new Uint8Array(s.options.applicationServerKey))?(s.options.applicationServerKey.byteLength>12?t.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):t.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),this.vn(s,n,h,e,i)):s.expirationTime&&new Date(s.expirationTime).valueOf()<=(new Date).valueOf()?(t.info("Push subscription is expired, creating new subscription."),this.vn(s,n,h,e,i)):o&&a(o)?this.vn(s,n,h,e,i):null==p?(t.info("No push subscription creation date found, creating new subscription."),this.vn(s,n,h,e,i)):p.valueOf()<=(new Date).valueOf()?(t.info("Push subscription older than 6 months, creating new subscription."),this.vn(s,n,h,e,i)):(t.info("Device already subscribed to push, sending existing subscription to backend."),this.kn(s,l,e))}else this.wn(n,h,e,i)})).catch((e=>{t.error("Error checking current push subscriptions: "+e)}))})).catch((e=>{t.error("ServiceWorker registration failed: "+e)}))};this.requestPermission(p,h,s)}else if(this.yn){if(null==this.cn||""===this.cn)return t.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void("function"==typeof i&&i(!0));const n=window.safari.pushNotification.permission(this.cn);this.xn(this.cn,n,e,i)}}unsubscribe(e,i){if(!n.isPushSupported())return t.info(p.Wn),void("function"==typeof i&&i());this.pn?navigator.serviceWorker.getRegistration(this.an).then((n=>{n?n.pushManager.getSubscription().then((s=>{s?(this.Sn(),s.unsubscribe().then((s=>{s?(t.info("Device successfully unsubscribed from push."),"function"==typeof e&&e()):(t.error("Failed to unsubscribe device from push."),"function"==typeof i&&i()),this.Un(n)})).catch((e=>{t.error("Push unsubscription error: "+e),"function"==typeof i&&i()}))):(t.info("Device already unsubscribed from push."),"function"==typeof e&&e())})).catch((e=>{t.error("Error unsubscribing from push: "+e),"function"==typeof i&&i()})):(t.info("Device already unsubscribed from push."),"function"==typeof e&&e())})):this.yn&&(this.Sn(),t.info("Device unsubscribed from push."),"function"==typeof e&&e())}}p.Wn="Push notifications are not supported in this browser.";const d={l:!1,aa:null,ea:()=>(d.p(),d.aa||(d.aa=new p(h.gr(),h.ba(),h.ue(),h.Z(),h.ee(f.Ma),h.ee(f._a),h.ee(f.ka),h.v(),h.ee(f.qa),h.ee(f.Aa),h.j())),d.aa),p:()=>{d.l||(h.h(d),d.l=!0)},destroy:()=>{d.aa=null,d.l=!1}};export{d as default};
2//# sourceMappingURL=Dty4m5M3.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.