!function(n){var i={};function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=20)}([function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function i(e){try{r(c.next(e))}catch(e){t(e)}}function o(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((c=c.apply(e,a||[])).next())})},a=this&&this.__generator||function(n,i){var o,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(t){return function(e){return function(t){if(o)throw new TypeError("Generator is already executing.");for(;c&&t[c=0]&&(s=0),s;)try{if(o=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,r=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1].iz-branding{color:white;font-size:25px;position:absolute;top:40%;left:28%;z-index:999999!important;width:50%!important}.iz-arrow img{transform:rotate(180deg)}@media screen and (max-width:600px){#izooto_desktop_overlay{display:none;.iz-arrow{width:100%;position:fixed;top:auto;bottom:35%;left:65%;border-radius:0px}.moz-transfer{width:100%;position:fixed;top:auto;bottom:30%;left:65% !important;border-radius:0px}.moz-transfer img{transform:rotate(180deg) !important}.iz-arrow img{transform:rotate(0deg)}.iz-branding{color:white;font-size:larger;position:fixed;top:40%;left:17%;width:100%}}
"+M.notification.overlayMessage+"
",M.notification.httpsBranding="
Notifications Powered by "+M.brandingPartner+"
",t="desktop",M.global.deviceType==c.KeyMapper.DEVICE_TYPE_DESKTOP?(u.Notification.isWebPushEnabled=!!M.notification.desktopAllowed,M.newsHub.status=null!==(i=null==g?void 0:g.desktopAllowed)&&void 0!==i?i:M.newsHub.status):(t="mobile",u.Notification.isWebPushEnabled=!!M.notification.mobileAllowed,M.newsHub.status=null!==(o=null==g?void 0:g.mobileAllowed)&&void 0!==o?o:M.newsHub.status),M.email.status=null!==(o=null===(o=null==P?void 0:P[t])||void 0===o?void 0:o.status)&&void 0!==o?o:0,M.email.type=null!==(o=null===(o=null==P?void 0:P[t])||void 0===o?void 0:o.type)&&void 0!==o?o:1,M.email.repeatPromptDelay=null!==(o=null===(o=null==P?void 0:P[t])||void 0===o?void 0:o.repeatPromptDelay)&&void 0!==o?o:60,M.exitIntent.titleColor=4==M.exitIntent.templateType?"#fff":M.exitIntent.titleColor,M.onsiteMultiRSSFeedConfigHandler(1),M.onsiteMultiRSSFeedConfigHandler(2),M.multiMessengerConfigHandler(),s.NotificationHelper.canSupportIOSPush()&&s.NotificationHelper.IOSManifestHandler(),t=M.notification,[4,s.NotificationHelper.isSupported()];case 1:return t.isSupported=e.sent(),[2]}})})},M.SDKVersion="8.13.8",M.izootoStatus=null!=d?d:1,M.autoSegmentStatus=null!=O?O:0,M.hashFileName=T||"",M.defaultBrandingPartner="iZooto",M.debug=null!==(T=izConfig.debug)&&void 0!==T?T:0,M.branding=null!==(T=izConfig.branding)&&void 0!==T?T:1,M.promptSequencing=null!==(T=izConfig.promptSequencing)&&void 0!==T?T:1,M.hideOSNOnAds=null!=n?n:1,M.global={isSetCidLoaded:!1,isIncoginito:!1,isSessionHandled:!1,locationProtocol:document.location.protocol,msgReceiverExist:0,cookieDomain:null!==(T=izConfig.cDomain)&&void 0!==T?T:"",cookieExpiryDays:1500,cookieSameSite:"SameSite=Lax;",browserName:"",browserType:0,deviceType:0,browserVer:"",browserMajorVersion:0,os:0,platform:"",isFrame:window.top!=window.self},M.debugger={status:0,err:0,successCode:"color: #228B22",errCode:"color: #FF0000",infoCode:"background: #ffffcc, color: #222",gcmValidator:"https://api.izooto.com/validate-gcm/",host:document.location.protocol+"//"+document.location.hostname},M.store={subscriberId:!1,lastClick:!1,lastView:!1,syncedEventList:[],isNotificationDisabledManually:!1,isSoftSubscribeTriggered:!1,isTriggerPromptWithDelay:!1,isNotificationCalledManually:!1,isMDSyncingRequired:!1,isSubscriptionLost:!1,subscriptionBasedEventNameList:["event","trigger","userProfile","personalizationProperty","add_property"]},M.notification={tokenExpire:null!==(T=izConfig.tokenExpire)&&void 0!==T?T:86400,repeatPromptDelay:null!==(T=izConfig.repeatPromptDelay)&&void 0!==T?T:0,optInCloseDelay:null!==(T=izConfig.optInCloseDelay)&&void 0!==T?T:60,sourceOrigin:"",domainRoot:"",isSdkHttps:0,serviceWorkerName:"",htmlName:izConfig.htmlName||"/izooto.html",manifestName:"",manifest:"",subscriptionType:0,fcmToken:"",autoPrompt:!0,httpsBranding:"",swSubscribe:null!==(T=izConfig.swSubscribe)&&void 0!==T?T:1,overlay:null!==(T=izConfig.overlay)&&void 0!==T?T:0,overlayMessage:izConfig.overlayMessage||"Click on 'allow' to subscribe to notifications",httpsOverlay:"",clickOnAllowMsg:izConfig.clickOnAllowMsg||"Click On allow to subscribe to notifications",subscribedMsg:izConfig.subscribedMsg||"Subscribed",alreadySubscribedMsg:izConfig.alreadySubscribedMsg||"You've already subscribed to notifications.",blockedMsg:izConfig.blockedMsg||"Blocked",alreadyDeniedMsg:izConfig.alreadyDeniedMsg||"You've blocked notifications from this site.",httpsNoRoot:null!==(T=izConfig.httpsNoRoot)&&void 0!==T?T:0,windowType:0,mobileAllowed:null!==(T=izConfig.mobileAllowed)&&void 0!==T?T:1,desktopAllowed:null!==(T=izConfig.desktopAllowed)&&void 0!==T?T:1,allowedKeys:["bookingurl","landingurl"],webPushId:izConfig.webPushId||"",webServiceUrl:izConfig.webServiceUrl||"",processPriority:null!==(T=izConfig.processPriority)&&void 0!==T?T:0,masterDomain:izConfig.masterDomain||"",masterDomainPath:izConfig.masterDomainPath||"",cdnHost:"cdn.izooto.com",siteUrl:izConfig.siteUrl||"",promptDelay:null!==(T=izConfig.promptDelay)&&void 0!==T?T:0,promptType:null!==(T=izConfig.promptFlow)&&void 0!==T?T:0,defaultOptinDesign:"",hidePopup:null===(T=izConfig.hidePopup)||void 0===T||T,fullPopUp:null!==(T=izConfig.fullPopUp)&&void 0!==T?T:0,promptDesign:p||{message:"",subMessage:"",icon:"",btn1Txt:"",btn2Txt:"",position:"",bgColor:"",titleForeColor:"",messageForeColor:"",btn1bgColor:"",btn1ForeColor:"",btn2bgColor:"",btn2ForeColor:"",poweredbysrc:""},optInDesign:izConfig.optInDesign||"",dialogDesign:"",gdprDialogDesign:"",optInSrc:"https://cdn.izooto.com/optin/",optInDesignType:null!==(T=izConfig.optInDesignType)&&void 0!==T?T:"1",optinModule:{optinType:1,data:""},gdprModule:{gdprType:1,data:""},sourceOriginAlt:izConfig.sourceOriginAlt||"",fcmEnable:null!==(T=izConfig.fcmEnable)&&void 0!==T?T:0,isAddFcm:0,allowedDomain:izConfig.allowedDomain||"",serviceWorkerPath:"",serviceWorkerScope:izConfig.swScope||"",serviceWorkerNameMob:izConfig.serviceWorkerNameMob||"",vapidKey:izConfig.vapidPublicKey||"",subscriptionObj:{},pluginStatus:0,isShopify:null!==(T=izConfig.isShopify)&&void 0!==T?T:0,sysEvents:null!==(T=izConfig.sysEvents)&&void 0!==T?T:1,sysEventsFlag:void 0!==izConfig.sysEvents?1:0,propsTracking:null!==(T=izConfig.propsTracking)&&void 0!==T?T:1,evtTracking:null!==(T=izConfig.evtTracking)&&void 0!==T?T:1,userEvents:null!==(T=izConfig.userEvents)&&void 0!==T?T:0,isTagsEnabled:null!==(T=izConfig.tagsEnabled)&&void 0!==T?T:0,utmKeys:["utm_content","utm_medium","utm_source","utm_campaign","utm_term"],shortutmKeys:["uco","ume","uso","uca","ute"],serviceWorkerVersion:void 0,promptOnScroll:null!==(T=izConfig.promptOnScroll)&&void 0!==T?T:0,isTriggeredOnScoll:0,eventAsTrigger:null!==(T=izConfig.eventAsTrigger)&&void 0!==T?T:0,eventsToSync:(null===(T=null===izConfig||void 0===izConfig?void 0:izConfig.webPush)||void 0===T?void 0:T.syncEvent)||[],syncNotificationView:null!==(T=izConfig.syncNotificationView)&&void 0!==T?T:"",syncNotificationClick:null!==(T=izConfig.syncNotificationClick)&&void 0!==T?T:"",syncVisitType:null!==(T=izConfig.syncVisitType)&&void 0!==T?T:0,isSupported:!0,gdprNotAllowed:["userProfile","personalizationProperty","trigger","event"],isGdprAllowed:1,gdprPrompt:{status:null!==(T=null==f?void 0:f.status)&&void 0!==T?T:0,type:(null==f?void 0:f.type)||1,title:null==f?void 0:f.title,btn1Txt:null==f?void 0:f.btn1Txt,btn2Txt:null==f?void 0:f.btn2Txt},syncLimit:{evtPerDay:null!==(T=izConfig.evtPerDay)&&void 0!==T?T:1e4,propsPerDay:null!==(T=izConfig.propsPerDay)&&void 0!==T?T:1e4,evtPerMonth:null!==(T=izConfig.evtPerMonth)&&void 0!==T?T:1e4,propsPerMonth:null!==(T=izConfig.propsPerMonth)&&void 0!==T?T:1e4},welcomeNotification:{status:null!==(T=null==b?void 0:b.status)&&void 0!==T?T:0,title:(null==b?void 0:b.title)||"",body:(null==b?void 0:b.body)||"",icon:(null==b?void 0:b.icon)||"",url:(null==b?void 0:b.url)||"",showAfter:null!==(T=null==b?void 0:b.showAfter)&&void 0!==T?T:0,timeout:null!==(T=null==b?void 0:b.clickTimeout)&&void 0!==T?T:0}},M.ga={id:"",syncCid:null!==(T=null===izConfig||void 0===izConfig?void 0:izConfig.syncGACid)&&void 0!==T?T:0,swEvents:null!==(T=null===izConfig||void 0===izConfig?void 0:izConfig.gaSwEvents)&&void 0!==T?T:0,syncWebPush:0,syncNewsHub:0,newsHubEvents:[],syncMessenger:0,subscriptionCallback:[],promptDisplayCallback:[],oldId:""},M.messenger={syncPrompt:null!==(T=null===(T=izConfig.messengerConf)||void 0===T?void 0:T.syncPrompt)&&void 0!==T?T:1,status:null!==(T=izConfig.messengerPromptStatus)&&void 0!==T?T:0,pageId:izConfig.messengerPageId||"",repeatDelay:null!==(T=izConfig.messengerRepeatDelay)&&void 0!==T?T:0,prompt:izConfig.messengerPrompt||{},size:"large",color:"blue",buttonTextType:0,autoPrompt:!0},M.tabAbandonment={status:null!==(T=null==E?void 0:E.status)&&void 0!==T?T:0,timeout:null!==(T=null==E?void 0:E.timeout)&&void 0!==T?T:6e3,pushTimeout:null!==(T=null==E?void 0:E.pushTimeout)&&void 0!==T?T:3600,data:(null==E?void 0:E.data)||{},counter:0},M.welcomePlaybook={status:null!==(T=null==C?void 0:C.status)&&void 0!==T?T:0,data:(null==C?void 0:C.data)||{}},M.newsHub={title:(null==g?void 0:g.title)||"",designType:null!==(T=null==g?void 0:g.designType)&&void 0!==T?T:1,mainColor:(null==g?void 0:g.mainColor)||"",iconType:null!==(T=null==g?void 0:g.iconType)&&void 0!==T?T:1,placement:(null==g?void 0:g.placement)||[1,1],allVisitors:null!==(T=null==g?void 0:g.allVisitors)&&void 0!==T?T:1,gaId:(null==g?void 0:g.gaId)||"",autoWidget:null===(T=null==g?void 0:g.autoWidget)||void 0===T||T,callOut:null!==(T=null==g?void 0:g.callOut)&&void 0!==T?T:1,callOutTimeout:null!=g&&g.callOutTimeout&&2<=g.callOutTimeout&&g.callOutTimeout<=10?g.callOutTimeout:10,allowFeed:null!==(T=null==g?void 0:g.allowFeed)&&void 0!==T?T:0,nudgeStatus:null!==(T=null==g?void 0:g.nudgeStatus)&&void 0!==T?T:1,ads:null!==(T=null==g?void 0:g.ads)&&void 0!==T?T:0,adUnit:(null==g?void 0:g.adUnit)||"",callOutAds:null!==(T=null==g?void 0:g.callOutAds)&&void 0!==T?T:0,callOutAdUnit:(null==g?void 0:g.callOutAdUnit)||"",triggered:!1,status:null!==(T=null==g?void 0:g.status)&&void 0!==T?T:0,templateType:null!==(T=null==g?void 0:g.templateType)&&void 0!==T?T:2,isRSS:null!==(T=null==g?void 0:g.isRSS)&&void 0!==T?T:0,rid:(null==g?void 0:g.rid)||"",cid:null!==(T=null==g?void 0:g.cid)&&void 0!==T?T:0,rfiId:null!==(T=null==g?void 0:g.rfiId)&&void 0!==T?T:"",htmlVersion:{1:"3.1",2:"1.1"}},M.videoDropoff={status:null!==(T=null==w?void 0:w.status)&&void 0!==T?T:0,allowedUrls:(null==w?void 0:w.allowedUrls)||[]},M.CRPSPlaybook={status:null!==(T=null==S?void 0:S.status)&&void 0!==T?T:0,data:(null==S?void 0:S.data)||{},isPaidSubscriber:!1},M.exitIntent={status:null!==(T=null==y?void 0:y.status)&&void 0!==T?T:0,mobileAllowed:null!==(T=null==y?void 0:y.mobileAllowed)&&void 0!==T?T:1,desktopAllowed:null!==(T=null==y?void 0:y.desktopAllowed)&&void 0!==T?T:1,title:(null==y?void 0:y.title)||" ",titleColor:(null==y?void 0:y.titleColor)||"#000000",bgColor:(null==y?void 0:y.bgColor)||"#1194FF",onExit:null!==(T=null==y?void 0:y.onExit)&&void 0!==T?T:0,onScrollPercent:null!==(T=null==y?void 0:y.onScrollPercent)&&void 0!==T?T:0,onScroll:null!==(T=null==y?void 0:y.onScroll)&&void 0!==T?T:null!==(i=null==y?void 0:y.onScrollPercent)&&void 0!==i?i:0,onDelay:null!==(i=null==y?void 0:y.onDelay)&&void 0!==i?i:0,onBack:null!==(i=null==y?void 0:y.onBack)&&void 0!==i?i:1,repeatDelay:null!==(i=null==y?void 0:y.repeatDelay)&&void 0!==i?i:0,closeDelay:null!==(i=null==y?void 0:y.closeDelay)&&void 0!==i?i:60,cid:(null==y?void 0:y.cid)||0,rid:(null==y?void 0:y.rid)||"0",featureAdUnit:(null==y?void 0:y.featureAdUnit)||"",ads:null!==(i=null==y?void 0:y.ads)&&void 0!==i?i:0,adUnit:(null==y?void 0:y.adUnit)||"",logoURL:(null==y?void 0:y.logoURL)||"",feedHash:"",osnType:1,autoPopup:!0,adfc:null!==(i=null==y?void 0:y.adfc)&&void 0!==i?i:1,templateType:null!==(i=null==y?void 0:y.templateType)&&void 0!==i?i:1,htmlVersion:{1:"3.0",2:"1.0",3:"1.0",4:"1.0"}},M.stickyBar={status:null!==(i=null==m?void 0:m.status)&&void 0!==i?i:0,title:(null==m?void 0:m.title)||"You might also like",titleColor:(null==m?void 0:m.titleColor)||"#FFFFFF",mobileAllowed:null!==(i=null==m?void 0:m.mobileAllowed)&&void 0!==i?i:1,desktopAllowed:null!==(i=null==m?void 0:m.desktopAllowed)&&void 0!==i?i:1,bgColor:(null==m?void 0:m.bgColor)||"#1194FF",repeatDelay:null!==(i=null==m?void 0:m.repeatDelay)&&void 0!==i?i:0,closeDelay:null!==(i=null==m?void 0:m.closeDelay)&&void 0!==i?i:60,cid:(null==m?void 0:m.cid)||0,rid:(null==m?void 0:m.rid)||"0",ads:null!==(i=null==m?void 0:m.ads)&&void 0!==i?i:0,adUnit:(null==m?void 0:m.adUnit)||"",autoPopup:!0,feedHash:"",osnType:2},M.articleShare={status:null!==(i=null==h?void 0:h.status)&&void 0!==i?i:0,repeatDelay:null!==(i=null==h?void 0:h.repeatDelay)&&void 0!==i?i:0,closeDelay:null!==(i=null==h?void 0:h.closeDelay)&&void 0!==i?i:60,cid:(null==h?void 0:h.cid)||0,rid:(null==h?void 0:h.rid)||"0",ads:null!==(i=null==h?void 0:h.ads)&&void 0!==i?i:0,adUnit:(null==h?void 0:h.adUnit)||"",type:3},M.convertBlockedUsers={status:null!==(i=null==_?void 0:_.status)&&void 0!==i?i:0,triggerType:null!==(i=null==_?void 0:_.triggerType)&&void 0!==i?i:0,promptDelay:null!==(i=null==_?void 0:_.promptDelay)&&void 0!==i?i:5,title:(null==_?void 0:_.title)||"",message:(null==_?void 0:_.message)||"",btnText:(null==_?void 0:_.btnText)||""},M.recommendArticle={status:null!==(i=null==v?void 0:v.status)&&void 0!==i?i:0},M.email={status:0,type:1,repeatPromptDelay:60,dataClientId:(null==P?void 0:P.dataClientId)||""},M.adBR={status:null!==(i=null==D?void 0:D.status)&&void 0!==i?i:0,adUnit:(null==D?void 0:D.adUnit)||"",logoSrc:(null==D?void 0:D.logoSrc)||"",rid:(null==D?void 0:D.rid)||"",cid:(null==D?void 0:D.cid)||0,templateId:1,htmlVersion:{1:"1.0"}},M);function M(){}},function(e,t,n){"use strict";var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;na[0]&&t[1] "):"".concat(c.Config.brandingPartner," => ")).concat(e),1===c.Config.debug&&(void 0!==t?console.warn(e,t):console.warn(e))},g.throwError=function(e){throw new Error(e)},g.getParamFromUrl=function(e,t){return new URL(e).searchParams.get(t)},g.izParseQuery=function(e){for(var t={},n=("?"===e[0]?e.substr(1):e).split("&"),i=0;in.getTime()&&(t=!0,g.displayLog("Wait until ".concat(e," expire!"))),t},g.syncClick=function(e,t){e={pid:c.Config.client,bkey:c.Config.UUID,rid:e.id,cid:e.cid,op:"click"};t&&(e.cs=1),r.HttpRequest.postForm(g.getEndpoint("notificationClick"),e,!0).then(function(){"News hub click sync successfully with ".concat(c.Config.brandingPartner)}).catch(function(e){})},g);function g(){}t.Helper=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeyMapper=void 0,t.KeyMapper={OPTIN_SHOWN:"optInShown",OPTIN_CLOSED:"optInClosed",OPTIN_ALLOWED:"optInAllowed",PROMPTED:"prompted",PROMPT_CLOSED:"promptclose",PROMPT_DENIED:"denied",PROMPT_ALLOWED:"allowed",SUBSCRIBED:"subscribed",ALREADY_GRANTED:"already_granted",OLD_SUBSCRIPTION:"old_subscription",SUBSCRIBER_REGISTRED:"subscriber_registred",ALREADY_DENIED:"already_denied",ALREADY_UNSUBSCRIBED:"already_unsubscribed",UNSUBSCRIBED:"unsubscribed",POPUP_OPEN:"popupOpened",POPUP_CLOSED:"popClosed",BROWSER_UNSUPPORTED:"browserUnsupported",NOTIFICATION_DISABLED:"notificationDisabled",REPEAT_DELAY:"repeatDelay",MESSENGER_PROMPTED:"messengerPrompted",MESSENGER_READY_SHOW:"messengerReadyToLoad",MESSENGER_READY:"messengerReady",MESSENGER_SUBSCRIBED:"messengerSubscribed",ONETAP:"izootoEmail",EMAIL_READY:"emailReady",EMAIL_INPROGRESS:"emailDisplay",EMAIL_CLOSED:"emailClosed",EMAIL_DISABLED:"emailDisabled",NEWSHUB_READY:"readyToShowNewsHub",NEWSHUB_FAILED:"newsHubFailed",NEWSHUB_OPEN:"newsHubOpen",NEWSHUB_CLOSED:"newsHubClosed",NEWSHUB_ANIMATIONEND:"newsHubAnimationEnd",EXITINTENT_SHOWN:"exitIntentShown",EXITINTENT_CLOSED:"exitIntentClosed",STICKYBAR_READY_SHOW:"stickyBarReadyToShow",STICKYBAR_SHOWN:"stickyBarShown",STICKYBAR_CLOSED:"stickyBarClosed",STICKYBAR_VISIBLE:"stickyBarVisible",STICKYBAR_HIDDEN:"stickyBarHidden",ARTICLESHARE_READY_SHOW:"articleShareReadyToShow",ARTICLESHARE_SHOWN:"articleShareShown",ARTICLESHARE_CLOSED:"articleShareClosed",ONSITE_ADS_ALLOWED:"onsAdsAllowed",ONSITE_ADS_REFRESH_COUNT:"onsAdsRefreshCount",ADBLOCK_READY_SHOW:"adblockReadyToShow",ADBLOCK_CLOSED:"adblockClosed",ONETAP_REPEAT_PROMPT_DELAY:"oneTapPromptDelay",EMAIL_NOT_SYNCED:"emailNotSynced",UUID:"izootoUID",PUSH_TOKEN:"izootoPushToken",STATS:"izootoStats",SYNC:"izootoSync",CONFIG:"izootoConfig",USER_PROPERTY:"izootoUserProp",MASTER_DOMAIN:"izootoMDConfig",SESSION:"izootoSession",RECOMMEND_ARTICLE:"izootoRecommendArticle",MESSENGER:"izootoMessenger",ACTIVE_PROMPT:"izootoActivePrompt",WP_COOKIE:"izootoWpConfig",PROMPT_COUNT:"promptCount",OPTIN_SHOWN_COUNT:"optInShownCount",DM_SYNC_COUNT:"dmSyncCount",EVENT_DAILY:"eventDaily",EVENT_MONTHLY:"eventMonthly",PROPERTY_DAILY:"propDaily",PROPERTY_MONTHLY:"propMonthly",PUSH_TOKEN_NOT_SYNCED:"pushTokenNotSynced",PERMISSION_STATUS:"permissionStatus",REPEAT_PROMPT_DELAY:"notificationPromptDelay",GDPR_CONSENT:"gdprStatus",TAB_ABANDONMENT:"tabAbandonment",IZCID:"IZCID",ALT_DOMAIN_STATUS:"altDomainStatus",IDB_VERSION:"idbVersion",CALLOUT_SHOWN:"calloutShown",TAB_ABANDONMENT_PUSH:"tabAbandonmentPush",LAST_EVENT_SYNC:"lastEventSync",LAST_PROPERTY_SYNC:"lastPropSync",FIRST_SESSION:"firstSession",CRPS_PLAYBOOK:"crpsPlaybook",NH_MARK_ALL_AS_READ:"newsHubMarkAllAsRead",SUBSCRIBED_ON:"subscribedOn",SESSION_EXPIRY:"expiry",SESSION_COUNT:"count",MSNGR_REPEAT_PROMPT_DELAY:"promptDelay",MSNGR_IS_SUBSCRIBED:"isSubscribed",EXITINTENT_DELAY:"exitIntentDelay",STICKYBAR_DELAY:"stickyBarDelay",SHAREARTICLE_DELAY:"shareArticleDelay",NEWSHUB_LASTEST_NOTIFICATION:"nhLatest",NEWSHUB_LATEST_OPEN_NOTIFICATION:"nhLastOpened",LAST_SYNC_OF_RECOMMEND_ARTICLE:"recommendArticle",RECOMMEND_ARTICLE_SYNCED_PATH:"syncedPath",MESSAGE:"izootoMsg",BROWSER_CHROME:"Chrome",BROWSER_SAFARI:"Safari",BROWSER_FIREFOX:"Firefox",BROWSER_OPERA:"Opera",BROWSER_IE:"Microsoft Internet Explorer",BROWSER_OTHER:"Other",BROWSER_UCB:"Ucb",BROWSER_EDGE:"Edge",DEVICE_TYPE_DESKTOP:1,DEVICE_TYPE_TABLET:2,DEVICE_TYPE_MOBILE:3,OS_WINDOWS:"windows",OS_LINUX:"linux",OS_MAC:"mac",OS_ANDROID:"android",OS_IOS:"ios",OS_WP:"wp",OS_OTHER:"other_os",MASTER_TO_CHILD:"izMasterToChild",CHILD_TO_MASTER:"izChildToMaster",MASTER_AS_FRAME:"izMasterAsFrame",DAILY:"daily",MONTHLY:"monthly",REQUEST_QUEUE:"requestQueue",POST_FORM:"postForm",POST_JSON:"postJson",INVALID_PAYLOAD:"Invalid Payload",SOMETHING_WRONG:"Something wrong",IZCIDDOM:"izsetcgid",USER_PROP:"userProp",SCROLL_DOWN:"downScroll",SCROLL_UP:"upScroll",SUBSCRIPTION_SYNCED:"synced",NUDGEUSER_DELAY:"nudgeuserDelay"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=void 0;var C=n(1),E=n(0),i=n(11),a=n(34),T=n(2),_=n(16),n=(O.updateLastSync=function(e){O.setConfigLocal(e,Date.now(),T.KeyMapper.SYNC)},O.setStorage=function(e,t){var n;a.LocalStorage.isLocalStorageSupport()?(e==T.KeyMapper.PUSH_TOKEN&&(n=decodeURIComponent(t),C.Helper.isJSONString(n)&&(n=JSON.parse(n)),i.CookieStorage.setWpCookie("push_token",n)),localStorage.setItem(e,t)):i.CookieStorage.setCookie(e,t)},O.getStorage=function(e){var t="";return null!=(t=a.LocalStorage.getLocalStorage(e))?e===T.KeyMapper.PUSH_TOKEN?decodeURIComponent(t):t:i.CookieStorage.getCookie(e)},O.removeStorage=function(e){i.CookieStorage.removeCookie(e),a.LocalStorage.removeLocalStorage(e)},O.removeConfigLocal=function(e,t){void 0===t&&(t=T.KeyMapper.CONFIG);var n={},i=a.LocalStorage.getLocalStorage(t);null!=(n=""!=i&&null!=i?C.Helper.parseToJSON(i):n).hasOwnProperty(e)&&delete n[e],a.LocalStorage.isLocalStorageSupport()&&a.LocalStorage.setLocalStorage(t,JSON.stringify(n))},O.setConfigLocal=function(e,t,n){void 0===n&&(n=T.KeyMapper.CONFIG);var i=Math.round((new Date).getTime()/1e3),o={},r=a.LocalStorage.getLocalStorage(n);(o=""!=r&&null!=r?(o=C.Helper.parseToJSON(r))||{}:o)[e]=null!=t&&""!==t?t:i,a.LocalStorage.isLocalStorageSupport()&&a.LocalStorage.setLocalStorage(n,JSON.stringify(o))},O.getConfigLocal=function(e,t){void 0===t&&(t=T.KeyMapper.CONFIG);var n=a.LocalStorage.getLocalStorage(t),i={},t="";return t=null!=(i=""!=n?(i=C.Helper.parseToJSON(n))||{}:i)&&null!=i[e]?i[e]:t},O.legacyStorageMigration=function(){try{if(O.getStorage(T.KeyMapper.UUID)||(E.Config.store.isMDSyncingRequired=!0),1==O.getConfigLocal("isLegacyStorageMigrated"))return;var e=O.getStorage("iztoken");e&&(O.setStorage(T.KeyMapper.PUSH_TOKEN,e),O.updateLastSync(T.KeyMapper.PUSH_TOKEN));var t=O.getConfigLocal("id","izConf");t&&O.setStorage(T.KeyMapper.UUID,t);var n,i=O.getStorage("izooto");i&&(E.Config.store.isMDSyncingRequired=!0,i=decodeURIComponent(i),C.Helper.isJSONString(i)&&(i=C.Helper.parseToJSON(i),n={token:JSON.stringify(i["iz_".concat(E.Config.client)].bkey),subscribed_on:i["iz_".concat(E.Config.client)].subscribed_on,uuid:O.getStorage(T.KeyMapper.UUID)},_.MasterDomain.setMasterStorage(n)));var o=O.getStorage("izstatus");o&&(o=decodeURIComponent(o),C.Helper.isJSONString(o)&&(o=C.Helper.parseToJSON(o),O.setConfigLocal(T.KeyMapper.PERMISSION_STATUS,o.v)));var r=O.getConfigLocal("pmtcount","izConf");r&&O.setConfigLocal(T.KeyMapper.PROMPT_COUNT,r,T.KeyMapper.STATS);var a=O.getConfigLocal("dscount","izConf");a&&O.setConfigLocal(T.KeyMapper.OPTIN_SHOWN_COUNT,a,T.KeyMapper.STATS);var s=O.getConfigLocal("IZCID","izConf");s&&(O.setConfigLocal(T.KeyMapper.IZCID,s),O.updateLastSync(T.KeyMapper.IZCID));var c=O.getStorage("izDl");c&&(c=decodeURIComponent(c),C.Helper.isJSONString(c)&&(c=C.Helper.parseToJSON(c),O.setConfigLocal(T.KeyMapper.REPEAT_PROMPT_DELAY,c.t)));var l=O.getConfigLocal("msngrSubscribed","izConf");l&&O.setConfigLocal(T.KeyMapper.MSNGR_IS_SUBSCRIBED,l);var u,d=O.getConfigLocal("msngrDl","izSync");d&&(d*=1e3,u=(d=new Date(d)).setTime(d.getTime()+60*E.Config.messenger.repeatDelay*1e3),O.setConfigLocal(T.KeyMapper.MSNGR_REPEAT_PROMPT_DELAY,u.getTime()));var p=O.getStorage("izup");p&&O.setStorage(T.KeyMapper.USER_PROPERTY,decodeURIComponent(p));var f=O.getStorage("izmd");f&&O.setConfigLocal(T.KeyMapper.ALT_DOMAIN_STATUS,decodeURIComponent(f));var g=O.getStorage("izgdpr");g&&O.setConfigLocal(T.KeyMapper.GDPR_CONSENT,g);var y,m,h,S,b,v,w=O.getConfigLocal("iz_apihc","izConf");w&&C.Helper.isJSONString(w)&&(w=C.Helper.parseToJSON(w),y={},m=new Date,!w.hasOwnProperty("evt_pd")||(h=w.evt_pd)&&(h=h.split("#"),y[T.KeyMapper.EVENT_DAILY]=h[1],m.setDate(h[0])),w.hasOwnProperty("evt_pm")&&((S=w.evt_pm)&&(S=S.split("#"),y[T.KeyMapper.EVENT_MONTHLY]=S[1],m.setMonth(S[0]-1)),O.setConfigLocal(T.KeyMapper.LAST_EVENT_SYNC,m.getTime(),T.KeyMapper.SYNC)),!w.hasOwnProperty("prop_pd")||(b=w.prop_pd)&&(b=b.split("#"),y[T.KeyMapper.PROPERTY_DAILY]=b[1],m.setDate(b[0])),w.hasOwnProperty("prop_pm")&&((v=w.prop_pm)&&(v=v.split("#"),y[T.KeyMapper.PROPERTY_MONTHLY]=v[1],m.setMonth(v[0]-1)),O.setConfigLocal(T.KeyMapper.LAST_PROPERTY_SYNC,m.getTime(),T.KeyMapper.SYNC)),O.setConfigLocal(T.KeyMapper.DM_SYNC_COUNT,y,T.KeyMapper.STATS)),O.setConfigLocal("isLegacyStorageMigrated",1)}catch(e){O.setConfigLocal("isLegacyStorageMigrated",1)}},O.isSessionStorageSupport=function(){return"sessionStorage"in window&&null!==window.sessionStorage},O.setSessionStorage=function(e,t){sessionStorage.setItem(e,t)},O.getSessionStorage=function(e){return sessionStorage.getItem(e)},O.removeSessionStorage=function(e){sessionStorage.removeItem(e)},O);function O(){}t.Storage=n},function(e,t,n){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,i=arguments.length;na[0]&&t[1]a[0]&&t[1]e.getTime()&&(t=!0,f.Helper.displayLog("Wait until repeat prompt delay expire!"))),t},D.triggerPromptHandler=function(e){void 0===e&&(e=!1),y.Config.store.isNotificationCalledManually||(e&&(y.Config.store.isTriggerPromptWithDelay=!0),y.Config.store.isNotificationCalledManually=!0,D.promptHandler())},D.getCurrentSubscription=function(){return new Promise(function(t,e){try{var n=!1;D.getSWReadyRegistration().then(function(e){null!==(e=null==e?void 0:e.pushManager)&&void 0!==e&&e.getSubscription().then(function(e){e&&(n=JSON.stringify(e)),f.Helper.displayLog("Recovered Subscription : ",n),t(n)})}).catch(function(e){t(n)})}catch(e){}})},D.getSWRegistration=function(){return u(this,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return[4,navigator.serviceWorker.getRegistration(y.Config.notification.serviceWorkerPath)];case 1:return[2,e.sent()]}})})},D.getSWReadyRegistration=function(){return u(this,void 0,void 0,function(){var t=this;return d(this,function(e){return[2,new Promise(function(a,s){return u(t,void 0,void 0,function(){var t,n,i,o,r;return d(this,function(e){switch(e.label){case 0:return t=setTimeout(function(){s("Cannot get ServiceWorkerRegistration")},2e3),y.Config.notification.httpsNoRoot?[4,D.getSWRegistration()]:[3,2];case 1:return(n=e.sent())&&n instanceof ServiceWorkerRegistration?"activated"===(null==(i=n.installing||n.waiting||n.active)?void 0:i.state)?a(n):(o=function(){"activated"===(null==i?void 0:i.state)&&(window.clearTimeout(t),i.removeEventListener("statechange",o),a(n))},null!=i&&i.addEventListener("statechange",o)):s("Cannot get ServiceWorkerRegistration"),[3,4];case 2:return r=a,[4,navigator.serviceWorker.ready];case 3:r.apply(void 0,[e.sent()]),e.label=4;case 4:return[2]}})})})]})})},D.getResponseCode=function(e){var t={};t[b.KeyMapper.PROMPT_ALLOWED]={response:"subscribed",statuscode:1},t[b.KeyMapper.SUBSCRIBED]={response:"subscribed",statuscode:1},t[b.KeyMapper.ALREADY_GRANTED]={response:"already subscribed",statuscode:2},t[b.KeyMapper.PROMPT_DENIED]={response:"blocked",statuscode:3},t[b.KeyMapper.ALREADY_DENIED]={response:"already blocked",statuscode:4},t[b.KeyMapper.BROWSER_UNSUPPORTED]={response:"browser not supported",statuscode:5},t[b.KeyMapper.PROMPT_CLOSED]={response:"prompt closed",statuscode:6},t[b.KeyMapper.UNSUBSCRIBED]={response:"soft unsubscribed",statuscode:7},t[b.KeyMapper.ALREADY_UNSUBSCRIBED]={response:"already soft unsubscribed",statuscode:8},t[b.KeyMapper.OPTIN_ALLOWED]={response:"soft subscribed",statuscode:9},t[b.KeyMapper.SUBSCRIBER_REGISTRED]={response:"subscriber reregistered",statuscode:10};var n={};return n[b.KeyMapper.OPTIN_SHOWN]={response:"soft prompt displayed",statuscode:1},n[b.KeyMapper.OPTIN_CLOSED]={response:"soft prompt closed",statuscode:2},n[b.KeyMapper.PROMPTED]={response:"native prompt displayed",statuscode:3},n[b.KeyMapper.POPUP_OPEN]={response:"prompt window opened",statuscode:4},n[b.KeyMapper.POPUP_CLOSED]={response:"prompt window closed",statuscode:5},void 0!==t[e]?t[e]:void 0!==n[e]?n[e]:void 0},D.sendEvent=function(n,i){var o=this;if(f.Helper.displayLog("Event caught : ",n),P.ChannelEventHandler.event("webPush",n),O.NewsHub.sendEvent(n),D.CBUEvent(n),1!=y.Config.notification.windowType&&6!=y.Config.notification.windowType){var r=[b.KeyMapper.PROMPT_ALLOWED,b.KeyMapper.SUBSCRIBED,b.KeyMapper.ALREADY_GRANTED,b.KeyMapper.PROMPT_DENIED,b.KeyMapper.ALREADY_DENIED,b.KeyMapper.BROWSER_UNSUPPORTED,b.KeyMapper.PROMPT_CLOSED,b.KeyMapper.UNSUBSCRIBED,b.KeyMapper.ALREADY_UNSUBSCRIBED,b.KeyMapper.OPTIN_ALLOWED],a=[b.KeyMapper.OPTIN_SHOWN,b.KeyMapper.OPTIN_CLOSED,b.KeyMapper.PROMPTED,b.KeyMapper.POPUP_OPEN,b.KeyMapper.POPUP_CLOSED],s=p([b.KeyMapper.PROMPT_ALLOWED,b.KeyMapper.ALREADY_GRANTED,b.KeyMapper.PROMPT_DENIED],y.Config.notification.eventsToSync,!0);n!=b.KeyMapper.PROMPT_ALLOWED&&n!=b.KeyMapper.ALREADY_GRANTED||(D.syncPIDset(),S.GDPR.init(),D.syncHookInDb("syncNotificationView"),D.syncHookInDb("syncNotificationClick")),n==b.KeyMapper.PROMPT_ALLOWED&&""!=y.Config.notification.sourceOriginAlt&&D.removeSubsriptionFromAlternateDomain(),n!=b.KeyMapper.PROMPTED&&n!=b.KeyMapper.OPTIN_SHOWN||(D.updatePromptCount(n),D.setActivePrompt(5),g.Storage.removeStorage(b.KeyMapper.PUSH_TOKEN),0!=y.Config.notification.repeatPromptDelay&&D.setRepeatPromptDelay(y.Config.notification.repeatPromptDelay)),n==b.KeyMapper.OPTIN_CLOSED&&0!=y.Config.notification.optInCloseDelay&&D.setRepeatPromptDelay(y.Config.notification.optInCloseDelay),n!=b.KeyMapper.PROMPT_DENIED&&n!=b.KeyMapper.ALREADY_DENIED||(D.syncSendChurn(),D.subscribeOnBlocked()),n==b.KeyMapper.PROMPT_CLOSED&&g.Storage.removeStorage(b.KeyMapper.ACTIVE_PROMPT),h.IndexedDB.getValueFromiDbOptions("pushToken").then(function(e){var t;-1!=s.indexOf(n)&&(o.isSyncPermissionStatus&&D.updatePermissionStatus(n),null!=i?("object"==typeof i&&(i=JSON.stringify(i)),"object"==typeof e&&(e=JSON.stringify(e)),t=g.Storage.getStorage(b.KeyMapper.PUSH_TOKEN),e&&D.saveSubscritionToStorage(e),i!=(e||t)&&D.updateSubscriptionTokenForSync(i),n==b.KeyMapper.PROMPT_ALLOWED||n==b.KeyMapper.ALREADY_GRANTED?D.syncEvent(n,i):D.syncEvent(n)):D.syncEvent(n)),-1!=r.indexOf(n)&&(t=D.getResponseCode(n),n==b.KeyMapper.ALREADY_GRANTED&&(y.Config.store.isSoftSubscribeTriggered&&(t=D.getResponseCode(b.KeyMapper.SUBSCRIBED)),y.Config.store.isSubscriptionLost&&(t=D.getResponseCode(b.KeyMapper.SUBSCRIBER_REGISTRED))),D.subscriptionEventsCallback(n,t)),-1!=a.indexOf(n)&&D.promptDisplayCallback(n,D.getResponseCode(n))})}else try{var t="parent",c=[b.KeyMapper.SUBSCRIBED,b.KeyMapper.ALREADY_GRANTED,b.KeyMapper.PROMPT_DENIED,b.KeyMapper.PROMPT_ALLOWED,b.KeyMapper.PROMPT_CLOSED,b.KeyMapper.ALREADY_DENIED];y.Config.global.isFrame||(t="opener",D.popupNoticeHandler(n)),D.getswVersion().then(function(e){f.Helper.postMessage(t,n,i,e)}).catch(function(e){f.Helper.postMessage(t,n,i),f.Helper.displayLog("Error while getting sw version")}).then(function(){return u(o,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return n!=b.KeyMapper.PROMPT_ALLOWED?[3,2]:[4,D.showWelcomeNotification(!1)];case 1:e.sent()&&f.Helper.postMessage(t,"syncWelcomeSent",1),e.label=2;case 2:return-1 "+e):D.sendMsgToSW(o,JSON.stringify(i)).then(function(e){t(e)}).catch(function(e){n(e)})}).catch(function(e){n("rejecting sw version undefined")})})})]})})},D.subscriptionHandler=function(){var e=this;return new Promise(function(i,o){return u(e,void 0,void 0,function(){var n,t;return d(this,function(e){switch(e.label){case 0:if(n=function(e){D.subscribe(e).then(function(e){i(e)}).catch(function(e){o(e)})},!(t=D.getPushTokenFromLStorage()))return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,h.IndexedDB.addUpdate("pushToken",t)];case 2:return e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:return D.registerServiceWorker().then(function(e){y.Config.notification.swSubscribe,y.Config.notification.serviceWorkerVersion,D.getSWReadyRegistration().then(function(t){y.Config.notification.swSubscribe?D.subscribeFromSW(t).then(function(e){i(e)}).catch(function(){n(t)}):D.subscriptionOnAllow?n(t):null!=t&&t.pushManager.getSubscription().then(function(e){e||(y.Config.store.isSubscriptionLost=!0),n(t)})}).catch(function(e){o({error:b.KeyMapper.BROWSER_UNSUPPORTED})})}).catch(function(e){o({error:b.KeyMapper.BROWSER_UNSUPPORTED})}),[2]}})})})},D.subscribe=function(o){return u(this,void 0,void 0,function(){return d(this,function(e){return y.Config.notification.subscriptionObj={userVisibleOnly:!0,applicationServerKey:f.Helper.urlB64ToUint8Array(y.Config.notification.vapidKey)},[2,new Promise(function(n,i){f.Helper.displayLog("Subscription initiated..."),null!=o&&o.pushManager.subscribe(y.Config.notification.subscriptionObj).then(function(e){f.Helper.displayLog("Subscrption : ",JSON.stringify(e)),n(e)}).catch(function(t){f.Helper.displayLog("Unable to subscribe due to error : ",t),null!=t.message&&(-1e.getTime()},D.updatePermissionStatus=function(e){e===b.KeyMapper.PROMPT_ALLOWED||e===b.KeyMapper.ALREADY_GRANTED||1===e?g.Storage.setConfigLocal(b.KeyMapper.PERMISSION_STATUS,1):e===b.KeyMapper.PROMPT_DENIED||e===b.KeyMapper.ALREADY_DENIED||2==e?g.Storage.setConfigLocal(b.KeyMapper.PERMISSION_STATUS,2):g.Storage.setConfigLocal(b.KeyMapper.PERMISSION_STATUS,0),g.Storage.updateLastSync(b.KeyMapper.PERMISSION_STATUS)},D.sendPermissionStatusFromFrame=function(){var e=0;"Notification"in window&&"granted"==window.Notification.permission&&(e=1),f.Helper.postMessage("parent","izPermsStatus",e)},D.updateSubscriptionProcessor=function(e,t){var n=y.Config.UUID,i=g.Storage.getConfigLocal(b.KeyMapper.PERMISSION_STATUS);t=g.Storage.getStorage(b.KeyMapper.PUSH_TOKEN);t=D.getSubscriptionKey(t);"subscribe"==e?y.Config.store.isSoftSubscribeTriggered||(""!=t&&""!=n&&D.sendSubscriptionUpdate(n,0,function(){f.Helper.displayLog("Re-Subscribing")}),y.Config.store.isSoftSubscribeTriggered=!0,3==i&&g.Storage.removeConfigLocal(b.KeyMapper.PERMISSION_STATUS),D.triggerPromptHandler()):"unsubscribe"==e&&""!=t&&""!=n&&D.sendSubscriptionUpdate(n,2,function(){g.Storage.setConfigLocal(b.KeyMapper.PERMISSION_STATUS,3),D.sendEvent(b.KeyMapper.UNSUBSCRIBED)})},D.sendSubscriptionUpdate=function(t,n,i){var o=0==n?f.Helper.getEndpoint("SoftSubscribe"):2==n?f.Helper.getEndpoint("SoftUnsubscribe"):f.Helper.getEndpoint("supUrl");f.Helper.getFlagBasedParameter().then(function(e){e.bKey=t,e.action=n,e.izcid=g.Storage.getConfigLocal(b.KeyMapper.IZCID),e.ht="https:"==y.Config.global.locationProtocol?1:0,m.HttpRequest.postForm(o,e).then(function(){i()}).catch(function(e){})})},D.scrollHandler=function(e){var t=window.screen.availHeight,n=window.scrollY;1!=y.Config.notification.isTriggeredOnScoll&&(t<=n||document.documentElement.scrollTop>=t)&&(y.Config.notification.isTriggeredOnScoll=1,e())},D.brandingOverlayHandler=function(){1==y.Config.notification.overlay?D.openHttpsOverlay():1==y.Config.branding&&D.openHttpsBranding()},D.openHttpsBranding=function(){var e;if(!(0"+e+""}catch(e){}},D.setManifest=function(){try{if(1!=y.Config.global.browserType||0!=y.Config.notification.subscriptionType)return;var e=document.getElementsByTagName("head")[0],t=document.createElement("link");t.rel="manifest",t.href=y.Config.notification.manifest,e.appendChild(t)}catch(e){}},D.tokenValidator=function(n,e){null==e&&(e=y.Config.UUID);e="".concat(f.Helper.getEndpoint("subscriptionValidator"),"?s=1&bkey=").concat(e,"&pid=").concat(y.Config.client);m.HttpRequest.get(e).then(function(e){var t=1;e=f.Helper.parseToJSON(e),null!=n&&(e.hasOwnProperty("status")&&0==e.status&&(t=0),n(t))}).catch(function(){})},D.checkAlternates=function(){"object"==typeof window._izAlternate?(null!=window._izAlternate.initAlt&&"function"==typeof window._izAlternate.initAlt&&window._izAlternate.initAlt(),Object.keys(window._izAlternate).map(function(n,e){Object.keys(window._izooto).map(function(e,t){e===n&&(window._izooto[e]=window._izAlternate[n])})})):f.Helper.displayLog("No alternate implementations found")},D.subcriptionToObject=function(e){return e="string"==typeof e&&f.Helper.isJSONString(e)?f.Helper.parseToJSON(e):e},D.isCurrentTokenExpired=function(e,t){var n=g.Storage.getConfigLocal(t,b.KeyMapper.SYNC),t=new Date;return!(t.getTime()lock icon in the website address bar.","Enable the Notifications toggle","Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_CHROME,"_").concat(b.KeyMapper.OS_MAC)]={type:2,instructions:["Click on the lock icon in the website address bar.","Under notifications, enable the toggle and change it to Allow","All Set! Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_CHROME,"_").concat(b.KeyMapper.OS_ANDROID)]={type:8,instructions:["Tap on the lock icon in the website address bar","Tap on Permissions, and then Reset permissions","All Set! Reload the page and click on Allow when prompted! 🎉"]},e["".concat(b.KeyMapper.BROWSER_SAFARI,"_").concat(b.KeyMapper.OS_MAC)]={type:3,instructions:["Click on Safari -> Preferences","Under Websites -> Notifications, select “Allow” from the dropdown","All Set! Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_FIREFOX,"_").concat(b.KeyMapper.OS_WINDOWS)]={type:4,instructions:["Click on the Notifications icon in the website address bar","Clear the blocked status and reload the page","Click on “Allow” when prompted to subscribe","All Set! Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_FIREFOX,"_").concat(b.KeyMapper.OS_MAC)]={type:7,instructions:["Click on the Notifications icon in the website address bar","Clear the blocked status and reload the page","Click on “Allow” when prompted to subscribe","All Set! You’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_FIREFOX,"_").concat(b.KeyMapper.OS_ANDROID)]={type:9,instructions:["Tap on the lock icon in the website address bar","Under notifications, change status to “Allowed”","All Set! Reload the page and click on Allow when prompted! 🎉"]},e["".concat(b.KeyMapper.BROWSER_OPERA,"_").concat(b.KeyMapper.OS_WINDOWS)]={type:5,instructions:["Click on the lock icon in the website address bar","Enable the Notifications toggle","All Set! Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_OPERA,"_").concat(b.KeyMapper.OS_MAC)]={type:6,instructions:["Click on the lock icon in the website address bar","Enable the Notifications toggle","All Set! Reload the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_OPERA,"_").concat(b.KeyMapper.OS_ANDROID)]={type:10,instructions:["Tap on the green tick icon in the website address bar","Under permissions, set notifications as “Allowed”.","All Set! Reload the page and click on Allow when prompted! 🎉"]},e["".concat(b.KeyMapper.BROWSER_EDGE,"_").concat(b.KeyMapper.OS_WINDOWS)]={type:11,instructions:["Click on the lock icon in the website address bar","Under ‘Permissions for the site’, click on Allow notifications","All Set! Refresh the page and you’re good to go! 🎉"]},e["".concat(b.KeyMapper.BROWSER_EDGE,"_").concat(b.KeyMapper.OS_MAC)]={type:12,instructions:["Click on the bell icon in the website address bar","Click on Allow notifications","All Set! Refresh the page and you’re good to go! 🎉"]},!!e.hasOwnProperty(t)&&e[t]},D.setCbuDialogRepeatPromptDelay=function(){var e=(e=new Date).setTime(e.getTime()+6048e5);g.Storage.setConfigLocal(b.KeyMapper.NUDGEUSER_DELAY,e)},D.isCbuRepeatDelayed=function(){var e=!1,t=new Date,n=g.Storage.getConfigLocal(b.KeyMapper.NUDGEUSER_DELAY);return""!=n&&n>t.getTime()&&(e=!0,f.Helper.displayLog("Wait until convert block user prompt repeat delay expire!")),e},D.subscribeOnBlocked=function(){var t;D.isOnBlockedRegister||(D.isOnBlockedRegister=!0,t=setInterval(function(){var e;"granted"==(null===(e=window.Notification)||void 0===e?void 0:e.permission)&&(clearInterval(t),f.Helper.displayLog("User granted prompt mannually!"),D.nativeHandler())},200))},D.canSupportIOSPush=function(){return o.Notification.isWebPushEnabled&&y.Config.global.browserName==b.KeyMapper.BROWSER_SAFARI&&"16.4"<=y.Config.global.browserVer&&f.Helper.isIos()},D.IOSManifestHandler=function(){return u(this,void 0,void 0,function(){var t,n,i,o,r,a;return d(this,function(e){try{t=document.querySelector("link[rel='manifest']"),n=D.getManifestData(),i=JSON.stringify(n),o=new Blob([i],{type:"application/json"}),r=URL.createObjectURL(o),t?f.Helper.displayLog("Manifest file already exist!",t.href):((a=document.createElement("link")).rel="manifest",a.id="iz-manifest",a.href=r,document.head.appendChild(a),f.Helper.displayLog("Manifest file added by SDK"))}catch(e){f.Helper.displayLog("IOSManifestHandler error",e)}return[2]})})},D.getManifestData=function(){try{var e={name:D.siteName,display:"standalone",start_url:window.location.origin},t=document.querySelector('link[rel="shortcut icon"]')||document.querySelector('link[rel="icon"]');return t&&(e.icons=[{src:null==t?void 0:t.href,sizes:"any"}]),e}catch(e){return{}}},Object.defineProperty(D,"siteName",{get:function(){var e=window.location.hostname.split(".");return"www"===e[0]&&e.splice(0,1),null!=e&&e.pop(),e.map(function(e){return D.capitalizString(e)}).join(" ")},enumerable:!1,configurable:!0}),D.capitalizString=function(e){void 0===e&&(e="");try{if(e)return e[0].toUpperCase()+e.slice(1)}catch(e){}},D.alternateDomainJson="",D.alternateDomainIndex=0,D.permissionDomain="",D.isSyncPermissionStatus=!0,D.subscriptionOnAllow=!0,D.subscriptionSyncedFromSW=!1,D.minSWVersion="4.22",D.isUnBlockPopupInitialize=!1,D.isOnBlockedRegister=!1,D.permissionStatus="",D.subscriptionSource=0,D.syncableEvents=[,b.KeyMapper.PROMPTED,b.KeyMapper.OPTIN_SHOWN,b.KeyMapper.OPTIN_ALLOWED,b.KeyMapper.OPTIN_CLOSED,b.KeyMapper.ALREADY_DENIED],D);function D(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelEventHandler=void 0;var r,a=n(2),i=n(0),o=n(9),s=n(17),c=n(15),l=n(23),u=n(19),d=n(24),p=n(22);(n=r=r||{}).NOT_STARTED="NOT_STARTED",n.COMPLETED="COMPLETED",n.INPROGRESS="INPROGRESS",n.READY_TO_SHOW="READY_TO_SHOW",n.DISABLED="DISABLED";t.ChannelEventHandler=(f.event=function(e,t){var n=[a.KeyMapper.PROMPTED,a.KeyMapper.POPUP_OPEN,a.KeyMapper.OPTIN_SHOWN,a.KeyMapper.OPTIN_ALLOWED],i=[a.KeyMapper.ALREADY_GRANTED,a.KeyMapper.ALREADY_DENIED,a.KeyMapper.PROMPT_DENIED,a.KeyMapper.BROWSER_UNSUPPORTED,a.KeyMapper.PROMPT_ALLOWED,a.KeyMapper.OPTIN_CLOSED,a.KeyMapper.NOTIFICATION_DISABLED,a.KeyMapper.PROMPT_CLOSED,a.KeyMapper.REPEAT_DELAY],o=[a.KeyMapper.NEWSHUB_CLOSED,a.KeyMapper.NEWSHUB_FAILED];"webPush"==e&&(-1 Subscription not found: ",e[0]);if("event"===e[0]&&void 0!==e[1]&&"string"==typeof e[1]&&""!==e[1])i.NotificationHelper.userEventProcessor(e[1],e[2]),i.NotificationHelper.syncAsTrigger(e[1],e[2]);else if("triggerPromptWithDelay"==e[0])i.NotificationHelper.triggerPromptHandler(!0);else if("triggerPrompt"==e[0])i.NotificationHelper.triggerPromptHandler();else{if("customizeOptInPrompt"===e[0]&&"object"==typeof e[1])return void i.NotificationHelper.customizeOptInPrompt(e[1]);if("syncFCMToken"===e[0])"string"==typeof e[1]&&""!=e[1]&&(o.Config.notification.subscriptionType=1,o.Config.notification.fcmToken=e[1],i.NotificationHelper.sendEvent(l.KeyMapper.PROMPT_ALLOWED,e[1]));else if("updateSubscription"===e[0])"subscribe"!=e[1]&&"unsubscribe"!=e[1]||i.NotificationHelper.updateSubscriptionProcessor(e[1]);else{if("getSubscriberId"===e[0])return o.Config.store.subscriberId||c.Storage.getStorage(l.KeyMapper.UUID);if("getSubscriptionObject"===e[0])return c.Storage.getStorage(l.KeyMapper.PUSH_TOKEN);"userProfile"===e[0]&&(void 0!==e[1]||""!==e[1])||"personalizationProperty"===e[0]?i.NotificationHelper.userProfileProcessor(e[1]):"trigger"!==e[0]||void 0===e[1]&&""===e[1]?"gaId"===e[0]&&"string"==typeof e[1]&&"object"==typeof e[2]?s.GoogleAnalytics.init(e):"registerPromptDisplayCallback"===e[0]&&"function"==typeof e[1]?this.promptDisplayCallback=e[1]:"registerSubscriptionCallback"===e[0]&&"function"==typeof e[1]?this.subscriptionCallback=e[1]:"register_callback"===e[0]&&"function"==typeof e[1]?this.userCallback=e[1]:"syncOneTapResponse"===e[0]&&void 0!==e[1]&&""!==e[1]&&void 0!==e[1].credential&&""!==e[1].credential?f.Email.processOneTapEncodedResponse(e[1]):"getNotificationFeed"===e[0]&&"function"==typeof e[1]?p.NotificationFeed.init(e[1]):"syncUserDetailsEmail"===e[0]&&"object"==typeof e[1]?f.Email.processOneTapPlainTextResponse(e[1],e[2]):("newsLetterOptIn"===e[0]&&e[1],null!=e[2]?f.Email.subscribeNewsLetter(e[1],e[2]):"registerOneTapCallback"===e[0]&&"function"==typeof e[1]&&(g.registerOneTapCallback=e[1])):i.NotificationHelper.triggerProcessor(e[1],e[2],e[3])}}o.Config.notification.isTagsEnabled&&("add_tag"===e[0]||"remove_tag"===e[0]?console.warn("".concat(o.Config.brandingPartner," :: Tags are no longer supported. See https://help.izooto.com/article/segementation/ ")):"add_property"===e[0]&&void 0!==e[1]&&""!==e[1]&&i.NotificationHelper.addPropertyProcessorFallback(e[1]))}else r.Helper.displayLog("Sync action aborted! due to notification module disable");if("triggerMessengerPrompt"===e[0])return o.Config.messenger.autoPrompt=!0,void u.Messenger.init(!0);"triggerNewsHub"===e[0]&&(o.Config.newsHub.designType=2,d.NewsHub.isNewsContainerLoaded?d.NewsHub.openWidget():o.Config.newsHub.triggered=!0)}catch(e){r.Helper.displayLog("Queue error :",e)}},g.readSavedPreferences=function(){window._izq,window._izq.forEach(function(e){var t;"subscriberProfile"==e[0]&&null!=e[1]&&"object"==typeof e[1]&&e[1].hasOwnProperty("isPaid")&&(o.Config.CRPSPlaybook.isPaidSubscriber=e[1].isPaid,r.Helper.displayLog("Paid subscriber is set to : ",e[1].isPaid)),"init"==e[0]&&null!=e[1]&&"object"==typeof e[1]?((e[1].hasOwnProperty("auto_prompt")||e[1].hasOwnProperty("notificationAutoPrompt")||e[1].hasOwnProperty("autoPrompt"))&&(o.Config.notification.autoPrompt=null!=e[1].auto_prompt?e[1].auto_prompt:null!=e[1].autoPrompt?e[1].autoPrompt:e[1].notificationAutoPrompt,r.Helper.displayLog("Notification auto prompt set to : ",e[1].auto_prompt),0==o.Config.notification.autoPrompt&&(o.Config.notification.promptType=2)),e[1].hasOwnProperty("messengerAutoPrompt")&&(o.Config.messenger.autoPrompt=e[1].messengerAutoPrompt,r.Helper.displayLog("Messenger auto prompt set to : ",e[1].messengerAutoPrompt)),e[1].hasOwnProperty("showNewsHubWidget")&&(o.Config.newsHub.autoWidget=e[1].showNewsHubWidget,r.Helper.displayLog("Newshub auto widget set to : ",e[1].showNewsHubWidget)),e[1].hasOwnProperty("onsi")&&(null!==(t=e[1].onsi.exitIntent)&&void 0!==t&&t.hasOwnProperty("enable")&&(o.Config.exitIntent.autoPopup=e[1].onsi.exitIntent.enable,r.Helper.displayLog("Onsite exitIntent auto popup set to : ",o.Config.exitIntent.autoPopup)),null!==(t=e[1].onsi.stickyBar)&&void 0!==t&&t.hasOwnProperty("enable")&&(o.Config.stickyBar.autoPopup=e[1].onsi.stickyBar.enable,r.Helper.displayLog("Onsite stickyBar auto popup set to : ",o.Config.stickyBar.autoPopup)))):"epSyncState"==e[0]&&1==e[1]&&(r.Helper.displayLog("Custom subscription found! waiting for for FCM Token sync command!"),o.Config.store.isNotificationDisabledManually=!0,g.sync())})},g.isValidQueueForGdpr=function(e){return-1a[0]&&t[1]i.width&&(t=document.querySelector("".concat(o," .iz-news-hub-customer-icon-container")),(n=h.bluredBackgroudImage.cloneNode(!0)).querySelector("image").setAttribute("href",i.src),t.appendChild(n))}catch(e){f.Helper.displayLog("Newshub error onLoad",e)}}):"title"==t?i.innerHTML=f.Helper.removeHtmlTagsFromString(n[t]):"createdAt"==t&&null!=n[t]?i.innerText=n[t]:"createdAt"==t&&null==n[t]&&(i.style.visibility="hidden")}catch(e){f.Helper.displayLog("Error in append news payload- ".concat(t,":"),n)}}(t);null!==(e=document.querySelector("#posts-content-cotainer"))&&void 0!==e&&e.insertAdjacentHTML("beforeend",r.outerHTML),h.nhFeed.isNoNotification&&(h.nhFeed.isNoNotification=!1),h.rtlFlag&&(h.rtlFlag=!1,h.detectRTL()),null!==(e=document.querySelector(o))&&void 0!==e&&e.addEventListener("click",function(e){var t;h.closeShareTab(),i.nhFeed.setPayloadData(n.id,{clickedAt:Date.now()}),l.GoogleAnalytics.processNewsHub("Article Clicked"),f.Helper.syncClick(h.getPayloadToSync(n),"newshub"),null!==(t=window.open(n.url,"_blank"))&&void 0!==t&&t.focus()},!1),1==p.Config.global.deviceType&&((a=document.querySelector("".concat(o," ").concat(v.sharesheetTrigger))).classList.add("share-before-desktop"),null!==(s=document.querySelector(o))&&void 0!==s&&s.addEventListener("mouseleave",function(e){a.style.visibility="hidden",h.closeShareTab()},!1),null!==(s=document.querySelector(o))&&void 0!==s&&s.addEventListener("mouseenter",function(e){a.style.visibility="visible"},!1));var s=document.querySelector("".concat(o," ").concat(v.sharesheetTrigger));null!=s&&s.addEventListener("click",function(e){var t=document.querySelector("".concat(o," ").concat(v.shareSheetTab));t&&("flex"==t.style.display?h.closeShareTab():(h.closeShareTab(),t.style.display="flex",h.addShareSheetAnimationClass(t),h.setSocialShareLink(o,n),l.GoogleAnalytics.processNewsHub("Clicked Share"))),e.stopPropagation()},!0)},h.addShareSheetAnimationClass=function(e){try{var t=0;e.querySelectorAll("svg").forEach(function(e){h.isCrios?e.style.opacity="1":(setTimeout(function(){e.style.opacity="1",e.classList.add("iz-share-icons-animation")},t),t+=50)})}catch(e){f.Helper.displayLog("Newshub animation error",e)}},h.setSocialShareLink=function(n,e){try{var t,i=h.getSharingLink(e.url);for(t in i)!function(t){var e=document.querySelector("".concat(n," ").concat(v.socialSharePrefix).concat(t));"link"==t?e.onclick=function(e){e.stopPropagation(),h.copyNewsLinkToClipboard(i[t]),l.GoogleAnalytics.processNewsHub("Shared on","copy link")}:(e.onclick=function(e){e.stopPropagation(),l.GoogleAnalytics.processNewsHub("Shared on",t)},e.href=i[t])}(t)}catch(e){f.Helper.displayLog("set social share error:",e)}},h.closeShareTab=function(){try{var e=document.querySelectorAll(v.shareSheetTab);null!=e&&e.forEach(function(e){e.style.display="none",e.querySelectorAll("svg").forEach(function(e){e.style.opacity="0",e.classList.remove("iz-share-icons-animation")})})}catch(e){f.Helper.displayLog("close action list error:",e)}},h.getSharingLink=function(e){return e=f.Helper.replaceQueryParam(e,"utm_campaign","Share"),{link:decodeURIComponent(f.Helper.replaceQueryParam(e,"utm_content","link_copy")),whatsapp:"https://api.whatsapp.com/send?text=".concat(encodeURIComponent(f.Helper.replaceQueryParam(e,"utm_content","whatsapp"))),facebook:"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(f.Helper.replaceQueryParam(e,"utm_content","facebook"))),twitter:"https://twitter.com/intent/tweet?url=".concat(encodeURIComponent(f.Helper.replaceQueryParam(e,"utm_content","twitter")),"&text="),mail:"mailto:info@example.com?&subject=&cc=&bcc=&body=".concat(encodeURIComponent(f.Helper.replaceQueryParam(e,"utm_content","mail"))),linkedin:"https://www.linkedin.com/shareArticle?mini=true&url=".concat(encodeURIComponent(f.Helper.replaceQueryParam(e,"utm_content","linkedin")))}},h.render=function(){return i(this,void 0,void 0,function(){return o(this,function(e){return[2,new Promise(function(t,e){var n=p.Config.newsHub.templateType,i=p.Config.newsHub.htmlVersion[n];f.Helper.displayLog("Rendering News Hub");i="https://cdn.izooto.com/newshub/widgets/".concat(n,"/v").concat(i,".html");a.HttpRequest.get(i).then(function(e){try{if(!e)return void c.ChannelEventHandler.event("newsHub",s.KeyMapper.NEWSHUB_FAILED);f.Helper.addHTML("div",e,"iz-newshub-container").style.cssText="position:absolute;z-index:2147483647;",h.setMinimumNotificationToShow(),h.isNewsContainerLoaded=!0,h.animatedLoaderHtmlElement=document.querySelector(v.animatedLoader),f.Helper.removeHTML(h.animatedLoaderHtmlElement),h.bluredBackgroudImage=document.querySelector("."+S+"blur-image-container"),f.Helper.removeHTML(h.bluredBackgroudImage),h.noticationHtmlElement=document.querySelector("."+S+"notification"),f.Helper.removeHTML(h.noticationHtmlElement),h.footerTextElement=document.querySelector("#"+S+"end-text"),f.Helper.removeHTML(h.footerTextElement),h.webPushHandler(),h.applyConfigStyle();try{document.querySelector("."+S+"branding-text").href="https://www.izooto.com/campaign/getting-started-with-news-hub-izooto?utm_source=referral&utm_medium=news_hub&utm_campaign="+p.Config.notification.siteUrl}catch(e){f.Helper.displayLog("newshub branding hide error")}h.attachEventListner(),t(1)}catch(e){c.ChannelEventHandler.event("newsHub",s.KeyMapper.NEWSHUB_FAILED),f.Helper.displayLog("Error while rendering newshub : ",e)}})})]})})},h.attachEventListner=function(){var e,t;try{var n=document.querySelector("#"+S+"posts-main-container");n.addEventListener("scroll",function(){n.scrollHeight-50i.naturalWidth||i.naturalWidth==i.naturalHeight)&&((t=h.bluredBackgroudImage.cloneNode(!0)).querySelector("image").setAttribute("href",i.src),n.appendChild(t),i.style.objectFit="contain")}catch(e){f.Helper.displayLog("Newshub discoverability image error onLoad",e)}}},h.crossIcon=function(){var e=1==p.Config.newsHub.iconType?v.bellIcon:v.mainIcon;return{show:function(){f.Helper.hideElement(e),f.Helper.showElement(v.crossIcon),f.Helper.addClass(v.triggerFloating,"iz-news-hub-cross-visible")},hide:function(){f.Helper.showElement(e),f.Helper.hideElement(v.crossIcon),f.Helper.removeClass(v.triggerFloating,"iz-news-hub-cross-visible")}}},h.hideCallout=function(e){try{var t=document.querySelector(v.notificationCallout);document.querySelector(v.triggerFloating).removeEventListener("click",h.hideCallout);var n="iz-news-hub-slideInLeft",i="iz-news-hub-slideOutLeft";p.Config.newsHub.placement[1]&&(n="iz-news-hub-slideInRight",i="iz-news-hub-slideOutRight"),t.classList.replace(n,i),h.crossIcon().hide(),t.addEventListener("animationend",function(){t.style.display="none",c.ChannelEventHandler.event("newsHub",s.KeyMapper.NEWSHUB_ANIMATIONEND),h.rippleAnimation.show()},{once:!0}),setTimeout(function(){h.widgetClicked||h.startWiggleAnimation()},3e3),h.isCallOutClose=!0,null!=e&&e.stopPropagation()}catch(e){f.Helper.displayLog("Callout hide error",e)}},h.hideStickyCallout=function(e){try{var t=document.querySelector(".".concat(S,"stickybar-callout")),n=document.querySelector("#".concat(S,"sticky-sidebar")),i=p.Config.newsHub.placement[1]?"iz-news-hub-stickybar-slideIn-right":"iz-news-hub-stickybar-slideIn-left",o=p.Config.newsHub.placement[1]?"iz-news-hub-stickybar-slideOut-right":"iz-news-hub-stickybar-slideOut-left",r="iz-news-hub-stickybarCallout-slideIn-left",a="iz-news-hub-stickybarCallout-slideOut-left";p.Config.newsHub.placement[1]&&(r="iz-news-hub-stickybarCallout-slideIn-right",a="iz-news-hub-stickybarCallout-slideOut-right"),t.classList.replace(r,a),t.addEventListener("animationend",function(){t.style.display="none",c.ChannelEventHandler.event("newsHub",s.KeyMapper.NEWSHUB_ANIMATIONEND),n.classList.replace(o,i)}),h.isCallOutClose=!0,null!=e&&e.stopPropagation()}catch(e){f.Helper.displayLog("Callout hide error",e)}},h.stickyAnimationHandler=function(){h.isCallOutClose=!1;var e=document.querySelector("#".concat(S,"sticky-sidebar")),t=p.Config.newsHub.placement[1]?"iz-news-hub-stickybar-slideIn-right":"iz-news-hub-stickybar-slideIn-left",n=p.Config.newsHub.placement[1]?"iz-news-hub-stickybar-slideOut-right":"iz-news-hub-stickybar-slideOut-left";e.classList.add(t),e.addEventListener("animationend",function(){setTimeout(function(){e.classList.replace(t,n),h.widgetClicked?e.classList.remove(n):(h.showCallout(),h.calloutCloseHandler())},3e3)},{once:!0})},h.applyConfigStyleOnStickyCallOut=function(){2==p.Config.newsHub.designType&&(document.querySelector(".iz-news-hub-stickybar-callout-close").style.backgroundColor=p.Config.newsHub.mainColor)},h.bellAnimationHandler=function(){try{var e,t,n;h.isCallOutClose=!1,1==p.Config.newsHub.iconType?(e=document.querySelector(v.iconContainer),t=document.querySelector("#iz-news-hub-bell-group"),n=document.querySelector("#iz-news-hub-bell-clapper"),e.addEventListener("animationend",function(){setTimeout(function(){t.classList.add("iz-news-hub-bell-group"),n.classList.add("iz-news-hub-bell-clapper"),t.addEventListener("animationend",function(){t.classList.remove("iz-news-hub-bell-group"),n.classList.remove("iz-news-hub-bell-clapper")})},1500)},{once:!0}),t.addEventListener("animationend",function(){setTimeout(function(){h.widgetClicked||(h.showCallout(),h.calloutCloseHandler())},1500)},{once:!0})):document.querySelector("#izooto-news-hub-swing-animation").addEventListener("animationend",function(){setTimeout(function(){h.widgetClicked||(h.showCallout(),h.calloutCloseHandler())},1500)},{once:!0})}catch(e){f.Helper.displayLog("bell animate handler error",e)}},h.calloutCloseHandler=function(){setTimeout(function(){var e=setInterval(function(){h.CalloutHover||(clearInterval(e),1==p.Config.newsHub.designType?h.hideCallout():h.hideStickyCallout())},1e3)},1e3*p.Config.newsHub.callOutTimeout)},h.loadLatestNotificationForCallout=function(){return i(this,void 0,void 0,function(){return o(this,function(e){return[2,new Promise(function(o,r){var e="https://nh.izooto.com/nh/".concat(p.Config.hashFileName,"/latest.json");h.isValidRSS&&(e="https://rec.izooto.com/rec/v2/".concat(p.Config.newsHub.rfiId,"/latest.json")),a.HttpRequest.get(e).then(function(e){var t;try{var n,i=f.Helper.parseToJSON(e);h.isValidRSS?(i=i[0],i={p:{id:p.Config.newsHub.cid,r:p.Config.newsHub.rid,ln:null==i?void 0:i.l,t:null==i?void 0:i.t,m:null==i?void 0:i.m,i:null==i?void 0:i.mi,bi:i.mi,idx:0}}):(n=null===(t=i.p)||void 0===t?void 0:t.r,y.Storage.setConfigLocal(s.KeyMapper.NEWSHUB_LASTEST_NOTIFICATION,n)),i.hasOwnProperty("p")&&i.p.t?o(i):(c.ChannelEventHandler.event("newsHub",s.KeyMapper.NEWSHUB_ANIMATIONEND),r(!1))}catch(e){c.ChannelEventHandler.event("newsHub",s.KeyMapper.NEWSHUB_ANIMATIONEND),r(!1)}}).catch(function(e){r(!1),f.Helper.displayLog("Load latest notification error",e)})})]})})},h.sendEvent=function(e){if(p.Config.newsHub.status)switch(e){case s.KeyMapper.PROMPT_ALLOWED:case s.KeyMapper.ALREADY_GRANTED:case s.KeyMapper.PROMPT_DENIED:case s.KeyMapper.ALREADY_DENIED:h.webPushHandler();break;case s.KeyMapper.OPTIN_SHOWN:h.isNotificationOptinShowing=!0,h.webPushHandler();break;case s.KeyMapper.OPTIN_CLOSED:h.isNotificationOptinShowing=!1,h.webPushHandler()}},h.webPushHandler=function(){var e=d.NotificationHelper.getGIFUrl();if(m.Notification.isWebPushEnabled&&p.Config.notification.isSupported&&p.Config.newsHub.nudgeStatus&&h.isNewsContainerLoaded&&e)switch(null===(e=null===window||void 0===window?void 0:window.Notification)||void 0===e?void 0:e.permission){case"default":h.isNotificationOptinShowing?h.hideNudgeBar():h.webPushPermissionDefaultHandler();break;case s.KeyMapper.PROMPT_DENIED:h.webPushPermissionDeniedHandler();break;case"granted":h.hideNudgeBar()}},h.webPushPermissionDefaultHandler=function(){f.Helper.showElement(".".concat(S,"noti-default-wrapper"),!1),f.Helper.hideElement(".".concat(S,"noti-blocked-wrapper"));var e=document.querySelector(".".concat(S,"noti-default-wrapper button"));null!=e&&e.addEventListener("click",function(){d.NotificationHelper.subscriptionSource=1,d.NotificationHelper.nativeHandler()})},h.webPushPermissionDeniedHandler=function(){var e,t;try{var n=d.NotificationHelper.getGIFUrl();0!=n&&(f.Helper.hideElement(".".concat(S,"noti-default-wrapper")),f.Helper.showElement(".".concat(S,"noti-blocked-wrapper"),!1),document.querySelector(".iz-news-hub-noti-blocked-wrapper img").src=n,null!==(e=document.querySelector(".".concat(S,"noti-blocked-wrapper .know-more-txt")))&&void 0!==e&&e.addEventListener("mouseenter",function(){d.NotificationHelper.subscriptionSource=2})),d.NotificationHelper.subscribeOnBlocked(),null!==(t=f.Helper.getDomElement("#".concat(S,"notifications-body-container")))&&void 0!==t&&t.classList.add("iz-news-hub-unsubscribe")}catch(e){}},h.hideNudgeBar=function(){f.Helper.hideElement(".".concat(S,"noti-blocked-wrapper")),f.Helper.hideElement(".".concat(S,"noti-default-wrapper"))},h.setMinimumNotificationToShow=function(){var e;1==p.Config.newsHub.templateType&&(e=parseInt(window.getComputedStyle(f.Helper.getDomElement(v.notificationWrapperId)).height),h.minimumNotificationToShow=Math.ceil(e/106+1)||12)},h.minimumNotificationToShow=6,h.isNewsLoading=!1,h.isNewsContainerLoaded=!1,h.isNewsHubOpened=!1,h.lastMarkAllAsRead=!1,h.isDataLoaded=!1,h.rtlFlag=!0,h.isCallOutClose=!0,h.CalloutHover=!1,h.isCalloutShown=!1,h.isCallOutStart=!1,h.widgetClicked=!1,h.syncNewsHubImp=!1,h.adLoaded=!1,h.calloutHtml="",h.isFeedSourceRSS=!1,h.isNotificationOptinShowing=!1,h.RSSArticleIndex=1,h.isGAEventSent={shown:!1,open:!1,close:!1},h.rippleAnimation={show:function(){var e;return null===(e=f.Helper.getDomElement(v.iconContainer))||void 0===e?void 0:e.classList.add(v.rippleBell)},hide:function(){var e;return null===(e=f.Helper.getDomElement(v.iconContainer))||void 0===e?void 0:e.classList.remove(v.rippleBell)}},h);function h(){}var S="iz-news-hub-",b="."+S+"notification-",v={newsHubCotainerId:"#".concat(S,"notification-container"),noNotification:"#".concat(S,"no-notifications-container"),notificationWrapperId:"#".concat(S,"posts-main-container"),triggerSticky:"#".concat(S,"sticky-sidebar"),triggerFloating:"#".concat(S,"discovr-outer-wrapper"),mainIcon:".".concat(S,"main-icon"),iconContainer:"#".concat(S,"icon-container"),floatingIcon:"#".concat(S,"floating-icon"),closeButton:".".concat(S,"close-news-hub-btn"),animatedLoader:"".concat(b,"loader"),sharesheetTrigger:".".concat(S,"share-before"),shareSheetTab:".".concat(S,"share-icons"),socialSharePrefix:".".concat(S,"social-share-"),notificationCallout:"#".concat(S,"icon-discoverability"),crossIcon:"#".concat(S,"cross-icon"),bellIcon:".".concat(S,"bell"),rippleBell:"".concat(S,"ripple-bell"),alertContainer:".".concat(S,"alerts-container")}},function(e,t,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;na[0]&&t[1]a[0]&&t[1]",i.error);var e=null===(e=i.error)||void 0===e?void 0:e.name;e&&"VersionError"===e?(u.currentIdbVersion=4,t(u.init())):n("DB not load")},i.onsuccess=function(){r.Storage.setConfigLocal(l.KeyMapper.IDB_VERSION,u.currentIdbVersion);var e=i.result;(u.idbDatabase=e).onversionchange=function(){try{c.Helper.displayLog("idb version change detected! => closing current idb instance!"),e.close(),u.idbDatabase=null}catch(e){}},c.Helper.displayLog("Success : IndexedDB Instance"),u.detectSWVersionChange(e),t(e)},i.onblocked=function(e){n("DB blocked"),c.Helper.displayLog("idb blocked somewhere its still opened ...",e)},i.onupgradeneeded=function(e){try{r.Storage.setConfigLocal(l.KeyMapper.IDB_VERSION,e.newVersion);var t=i.result,n=e.oldVersion;e.oldVersion,e.newVersion,n<2&&(t.createObjectStore("swEvents",{keyPath:"eventName"}),t.createObjectStore("options",{keyPath:"key"})),n<3&&t.createObjectStore("notificationLog",{keyPath:"key"}),n<4&&(t.createObjectStore(l.KeyMapper.REQUEST_QUEUE,{keyPath:"key"}),t.createObjectStore("log",{keyPath:"key"}))}catch(e){c.Helper.displayLog("idb upgrade error",e)}}):n("DB not supported")})]})})},u.addUpdateToTable=function(i,o){return new Promise(function(t,n){u.init().then(function(e){e=e.transaction([i],"readwrite").objectStore(i).put(o);e.onsuccess=function(){t(i+" added to db.")},e.onerror=function(){n("Unable to add data in db!")}}).catch(function(e){c.Helper.displayLog(l.KeyMapper.SOMETHING_WRONG,e)})})},u.addUpdate=function(i,o){return a(this,void 0,void 0,function(){return s(this,function(e){try{return[2,new Promise(function(t,n){u.init().then(function(e){e=e.transaction(["options"],"readwrite").objectStore("options").put({key:i,val:o});e.onsuccess=function(e){t(i+" added to db.")},e.onerror=function(e){n("Unable to add data in db!")}}).catch(function(e){n(e),c.Helper.displayLog(l.KeyMapper.SOMETHING_WRONG,e)})})]}catch(e){c.Helper.displayLog(e)}return[2]})})},u.getIndexDBData=function(o,r){return a(this,void 0,void 0,function(){return s(this,function(e){try{return[2,new Promise(function(n,i){u.init().then(function(e){var e=e.transaction([o]).objectStore(o),t="all"==r?e.getAll():e.get(r);t.onerror=function(){i("Unable to retrieve data from db!")},t.onsuccess=function(){var e="";t.result?e=t.result:c.Helper.displayLog("Not found in db-> ".concat(o," -> ").concat(r)),n(e)}}).catch(function(e){c.Helper.displayLog(l.KeyMapper.SOMETHING_WRONG,e)})})]}catch(e){c.Helper.displayLog(e)}return[2]})})},u.setIndexedDb=function(t){window._izooto.sysEvents=o.Config.notification.sysEvents,"gaId"==t&&1!=o.Config.ga.swEvents||"sysEvents"==t&&1!=o.Config.notification.sysEventsFlag?c.Helper.displayLog("Not saved : ",t):u.getIndexDBData("options",t).then(function(e){(e&&!e.hasOwnProperty("val")||e.val!=window._izooto[t])&&u.addUpdate(t,window._izooto[t]).then(function(e){c.Helper.displayLog(e)}).catch(function(e){c.Helper.displayLog(e)})}).catch(function(e){c.Helper.displayLog(e)})},u.removeKeyFromTable=function(i,o){return a(this,void 0,void 0,function(){var t;return s(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,new Promise(function(t,n){u.init().then(function(e){e=e.transaction([i],"readwrite").objectStore(i).delete(o);e.onsuccess=function(e){t(o+" added to db.")},e.onerror=function(e){n("Unable to add data in db!")}}).catch(function(e){c.Helper.displayLog(l.KeyMapper.SOMETHING_WRONG,e)})})];case 1:return[2,e.sent()];case 2:return t=e.sent(),c.Helper.displayLog(t),[3,3];case 3:return[2]}})})},u.detectSWVersionChange=function(e,t,n){var i;void 0===t&&(t="options"),void 0===n&&(n="swVer"),o.Config.notification.serviceWorkerVersion<4.21&&(t=e.transaction([t]).objectStore(t),(i="all"==n?t.getAll():t.get(n)).onsuccess=function(){i.result&&i.result.hasOwnProperty("val")&&(o.Config.notification.serviceWorkerVersion=i.result.val)})},u.getValueFromiDbOptions=function(n){return a(this,void 0,void 0,function(){return s(this,function(e){return[2,new Promise(function(t,e){u.getIndexDBData("options",n).then(function(e){if(!e.hasOwnProperty("val"))throw n+" not found in idb options";t(e.val)}).catch(function(e){c.Helper.displayLog(e),t("")})})]})})},u.currentIdbVersion=3,u.idbDatabase=null,u);function u(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Debugger=void 0;var s=n(0),c=n(1),o=n(4);t.Debugger=(l.init=function(e){l.msg=l.getMsgSet(),s.Config.debugger.err=0,console.clear(),l.log(l.dash.repeat(20)+"".concat(s.Config.brandingPartner," Debug Mode")+l.dash.repeat(20)),s.Config.debugger.status=1,l.log("Verifying ".concat(s.Config.brandingPartner," integration on your website"),s.Config.debugger.infoCode);function t(){1==s.Config.debugger.err?l.log(l.msg.integration_f,s.Config.debugger.errCode):l.log(l.msg.integration,s.Config.debugger.successCode),e&&e(l.debuggerObj)}var n=s.Config.global.platform;l.debuggerObj.plugin=n,l.debugger.rcvObj={};var i=document.location.href,i=c.Helper.getParamFromUrl(i,"izObj");(i=c.Helper.parseToJSON(i))&&null!=i.domainRoot&&(s.Config.notification.domainRoot=i.domainRoot,s.Config.notification.httpsNoRoot=""!=s.Config.notification.domainRoot?1:0,s.Config.setupPath()),i&&null!=i.cdnHost&&""!=i.cdnHost&&(s.Config.notification.cdnHost=i.cdnHost),""!=n&&l.log(l.msg.plugin.replace("{plg}",n),s.Config.debugger.successCode);n=l.getScript();null!=n?(l.debuggerObj.scriptSrc=n,l.log(l.msg.code_t+l.msg.code_f+"("+n+")",s.Config.debugger.successCode),1==s.Config.notification.isSdkHttps?l.validateSw(function(){t()}):t()):(s.Config.debugger.err=1,l.log(l.msg.code_t+l.msg.code_nf,s.Config.debugger.errCode),t())},l.log=function(e,t){t=t||"",console.info("%c"+e,t)},l.getMsgSet=function(){var e=s.Config.brandingPartner,t="support@".concat(e.toLowerCase(),".com");return{code_t:"".concat(e," JS code: "),code_f:"found",code_nf:"missing. Learn more here: http://bit.ly/2WHcP4a",sw_t:"Service Worker JS: ",sw_f:"found at {sw}",sw_nf:"missing from {sw} , Learn more here: http://bit.ly/2K0yGSs",sw_ct:"Service Worker JS: Invalid Content-Type found ",html_f:"".concat(e," Html: found"),html_nf:"".concat(e," Html: not found "),html_ct:"".concat(e," Html: Invalid Content-Type found "),mfst_t:"Manifest file: ",mfst_f:"found at {m}",mfst_nf:"missing form {m} , Learn more here: http://bit.ly/2K0yGSs",multi_mfst:"multiple manifest files found. Learn more here: http://bit.ly/2WCd2FC",gcm_t:"gcm_sender_id: ",gcm_nf:"missing in the manifest file. Learn more here: http://bit.ly/2WCd2FC",fallback:"FCM project: issue with your FCM project.",integration:"".concat(e," integration is working fine on your website."),integration_f:"".concat(e," integration is incomplete. Contact ").concat(t," to get assistance."),plugin:"You have integrated ".concat(e," using the {plg} plugin."),ev:"sent to ".concat(e)}},l.requestFile=function(e,n,i){var o=new XMLHttpRequest,t=Math.random();e+=e.includes("?")?"&":"?",e+=t,o.onreadystatechange=function(){var e,t;4==this.readyState&&(e=o.responseText,t="",o.getResponseHeader("Content-Type")?t=o.getResponseHeader("Content-Type"):o.getResponseHeader("content-type")&&(t=o.getResponseHeader("content-type")),200==this.status?n(this.status,e,t):i(this.status,e))},o.open("GET",e,!0),o.send()},l.getFileInfo=function(e,i){var o={};l.requestFile(e,function(e,t,n){o.status=!0,o.contentType=n,o.body=t,i(o)},function(e,t){o.status=!1,i(o)})},l.contentTypeValidator=function(e,t){var n=!0;return t=t.toLowerCase(),1==e?t.indexOf("application")<0&&t.indexOf("javascript")<0&&(n=!1):2==e&&t.indexOf("html")<0&&(n=!1),n},l.validateIzootoHtml=function(t){l.debuggerObj.plugin&&t();var n=this.getMsgSet();s.Config.debugger.host;l.getFileInfo(s.Config.notification.sourceOrigin,function(e){1==(l.debuggerObj.izootoHtml=e).status?(l.log(n.html_f,s.Config.debugger.successCode),l.contentTypeValidator(2,e.contentType)||(l.log(n.html_ct+e.contentType,s.Config.debugger.errCode),s.Config.debugger.err=1)):(l.log(n.html_nf,s.Config.debugger.errCode),s.Config.debugger.err=1),t()})},l.validateSw=function(t){var n=this.getMsgSet(),i=s.Config.debugger.host;l.getFileInfo(s.Config.notification.serviceWorkerPath,function(e){if(1==(l.debuggerObj.sw=e).status){if(l.log(n.sw_t+n.sw_f.replace("{sw}",i+s.Config.notification.serviceWorkerPath),s.Config.debugger.successCode),!l.contentTypeValidator(1,e.contentType))return l.log(n.sw_ct+e.contentType,s.Config.debugger.errCode),s.Config.debugger.err=1,void t();l.validateIzootoHtml(t)}else l.log(n.sw_t+n.sw_nf.replace("{sw}",i+s.Config.notification.serviceWorkerPath),s.Config.debugger.errCode),s.Config.debugger.err=1,t()})},l.validateGCM=function(e,i){o.HttpRequest.postForm(s.Config.debugger.gcmValidator,{pid:s.Config.client,gcm:e}).then(function(e){var t="fail",n=(e=c.Helper.parseToJSON(e)).response||"Something went wrong";"success"==e.status?(t=e.status,l.log("GCM Sender ID Validation "+t,s.Config.debugger.successCode),i(!0)):(l.log("GCM Sender ID Validation "+t+" , "+n,s.Config.debugger.errCode),i(!1))}).catch(function(e){})},l.validateManifest=function(i){for(var o=l.getMsgSet(),r=s.Config.debugger.host,e=document.getElementsByTagName("link"),t=0;tThis window will close automatically.
");c.Helper.addHTML("div",e,"iz-integration-overlay")},l.verifyIzootoIntegration=function(){l.showMsgOverlay(),l.init(function(e){c.Helper.postMessage("opener","integrationObj",e)})},l.dash="-",l.debuggerObj={sw:{},izootoHtml:{}},l.debugger={rcvObj:{}},l);function l(){}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function i(e){try{r(c.next(e))}catch(e){t(e)}}function o(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((c=c.apply(e,a||[])).next())})},o=this&&this.__generator||function(n,i){var o,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(t){return function(e){return function(t){if(o)throw new TypeError("Generator is already executing.");for(;c&&t[c=0]&&(s=0),s;)try{if(o=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,r=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]a[0]&&t[1]=e||4==d.Config.exitIntent.templateType&&6<=n.length){t=void 0,t=g.getSortedFeed(n),n=(t=g.getFeaturedFeed(t))[0];return t.shift(),t.sort(function(e,t){return.5-Math.random()}),t.unshift(n),t.splice(0,e)}},g.getSortedFeed=function(e){if(""==e[0].m)for(var t=1;t=window.innerHeight&&(e=!0,g.stickyBarInitializeDialog()),!1)},200);document.addEventListener("scroll",function(){t()},!1)},g.stickyBarInitializeDialog=function(){try{var e=void 0;d.Config.stickyBar.ads&&(e=p.Helper.addExternalJS(o.AdManager.GPTScriptSrc,"izootoGPT")),Promise.all([e,g.showStickyBarDialog()]).then(function(){d.Config.stickyBar.ads&&g.stickyBarAdsHandler()}).catch(function(e){p.Helper.displayLog(" Stickybar initializeDialog error",e)})}catch(e){}},g.setExitIntentFeed=function(e){if((e.length==f.ExitIntent.widgetData.maxAllowedPost||4==d.Config.exitIntent.templateType&&6<=e.length)&&"object"==typeof e)return 1==d.Config.exitIntent.templateType||3==d.Config.exitIntent.templateType?(f.ExitIntent.widgetData.largePostData=e[0],e.shift(),f.ExitIntent.widgetData.smallPostData=e):f.ExitIntent.widgetData.template2PostData=e,!0},g.geStickyBarDialogToDisplay=function(e){return r(this,void 0,void 0,function(){return l(this,function(e){return[2,new Promise(function(e,t){try{g.setStickyBarArticle(),g.stickyBarApplyConfigStyle(),e(g.getTypedDomElement(".iz_osn",d.Config.stickyBar.osnType))}catch(e){t()}})]})})},g.setStickyBarArticle=function(){var e=g.getTypedDomElement(".".concat(g.osnPrefix,"carousel"),d.Config.stickyBar.osnType),t=g.getTypedDomElement(".".concat(g.osnPrefix,"notification"),d.Config.stickyBar.osnType);g.stickyBar.singlePostHTML=t,g.defaultImage=t.querySelector("img").src,null!=t&&t.remove();for(var n=0;ndiv");300 *"),n={},i=new IntersectionObserver(function(e,t){e=e.reduce(function(e,t){return t.intersectionRatio>e.intersectionRatio?t:e});0a[0]&&t[1]a[0]&&t[1]',document.body.appendChild(i),null!==(t=document.getElementById("izMsngrIframeWrapper"))&&void 0!==t&&t.appendChild(o)}catch(e){u.Helper.displayLog("Error in appending child in messenger-div")}}g.frameElement=o,(g.frameContentWindow=o.contentWindow).fbAsyncInit=function(){g.addHtmlContainer(l.Config.messenger.pageId),g.frameContentWindow.FB.init({appId:g.appId,autoLogAppEvents:!0,xfbml:!0,version:"v18.0"}),g.frameContentWindow.FB.Event.subscribe("send_to_messenger",function(e){"rendered"==e.event&&0==e.is_after_optin&&setTimeout(function(){return s(n,void 0,void 0,function(){var t;return c(this,function(e){return g.frameContentWindow.document.querySelector("#izootoFbMessengerMainContainer")&&(g.isElementFound?(t=window.getComputedStyle(g.frameContentWindow.document.querySelector(".fb-send-to-messenger")),256<(t=parseInt(t.width))&&(t+=33,o.style="max-width: ".concat(t,"px;width: ").concat(t,"px;")),g.syncMessengerEvent()):g.promptSequencing(p.KeyMapper.MESSENGER_READY_SHOW)),[2]})})},400),"opt_in"==e.event&&(g.setMultiMessengerStorage(p.KeyMapper.MSNGR_IS_SUBSCRIBED,1),g.sendEvent(p.KeyMapper.MESSENGER_SUBSCRIBED),f.GoogleAnalytics.processMessanger("Send to Messenger"),g.promptSequencing(p.KeyMapper.MESSENGER_SUBSCRIBED),setTimeout(function(){g.htmlContainerClose(!0)},1e3))})};setTimeout(function(){var e=document.createElement("script");e.src="https://connect.facebook.net/en_US/sdk.js",o.contentDocument.body.appendChild(e)},200)}}else u.Helper.displayLog("Messenger is disabled for this device!")},g.syncMessengerEvent=function(){g.sendEvent(p.KeyMapper.MESSENGER_PROMPTED),1==i.Storage.getConfigLocal("messengerRepeated",p.KeyMapper.STATS)?f.GoogleAnalytics.processMessanger("Repeat Impression"):f.GoogleAnalytics.processMessanger("Impression"),i.Storage.setConfigLocal("messengerRepeated",1,p.KeyMapper.STATS),g.promptSequencing(p.KeyMapper.MESSENGER_PROMPTED),g.setRepeatPromptDelay(l.Config.messenger.repeatDelay)},g.showMessenger=function(){document.querySelector("#izMsngrOptinOuterWrapper").style.display="block",g.syncMessengerEvent()},g.htmlContainerClose=function(e){void 0===e&&(e=!1);var t=document.getElementById(g.anyWhereSelector)?g.frameElement:document.querySelector("#izMsngrOptinOuterWrapper");t&&(t.style.display="none"),0==e&&f.GoogleAnalytics.processMessanger("Dismissed"),g.promptSequencing(p.KeyMapper.PROMPT_CLOSED)},g.getHtmlContainer=function(e){return(e=void 0===e||e)?'
'):'
'},g.addHtmlContainer=function(e){var t=g.htmlContainer,n=document.createElement("div");n.setAttribute("id","izootoFbMessengerMainContainer");var i=function(){window.outerWidth<=600?n.setAttribute("class","izmobilemsngr"):n.setAttribute("class","")};i(),window.addEventListener("resize",i),n.innerHTML=t,(g.frameContentWindow.document.body||g.frameContentWindow.document.head).appendChild(n);var i=l.Config.UUID,t=l.Config.client+"=/="+i+"=/="+l.Config.global.os+"=/="+l.Config.global.browserVer+"=/="+l.Config.global.deviceType+"=/="+l.Config.global.browserType,i=document.createElement("div");i.setAttribute("class","fb-send-to-messenger"),i.setAttribute("messenger_app_id",g.appId),i.setAttribute("page_id",e),i.setAttribute("color",g.isElementFound?l.Config.messenger.color:"blue"),i.setAttribute("size",g.isElementFound?l.Config.messenger.size:"large"),i.setAttribute("data-ref",t),l.Config.messenger.buttonTextType&&g.isElementFound&&i.setAttribute("cta_text",this.ctaText[l.Config.messenger.buttonTextType]),null!==(t=g.frameContentWindow.document.querySelector("#izFbContainer"))&&void 0!==t&&t.appendChild(i),u.Helper.izootoBrandingHandler(g.frameContentWindow)},g.isDelayed=function(){return 1==g.getMultiMessengerStorage(p.KeyMapper.MSNGR_IS_SUBSCRIBED)||g.getMultiMessengerStorage(p.KeyMapper.MSNGR_REPEAT_PROMPT_DELAY)>Date.now()},g.isAlreadySubscribed=function(){return 1==g.getMultiMessengerStorage(p.KeyMapper.MSNGR_IS_SUBSCRIBED)},g.syncEvent=function(e){var t="",t=e==p.KeyMapper.MESSENGER_SUBSCRIBED?u.Helper.getEndpoint("syncMessenger"):u.Helper.getEndpoint(e),e=g.getParameterToSync(e);o.HttpRequest.postForm(t,e,!0).then(function(){}).catch(function(e){})},g.setRepeatPromptDelay=function(e){var t;0!==e&&(t=(t=new Date).setTime(t.getTime()+60*e*1e3),"Messenger: Setting repeat prompt delay for ".concat(e," minutes"),g.setMultiMessengerStorage(p.KeyMapper.MSNGR_REPEAT_PROMPT_DELAY,t))},g.setMultiMessengerStorage=function(e,t){var n=i.Storage.getConfigLocal(l.Config.messenger.pageId,p.KeyMapper.MESSENGER);(n=n?u.Helper.parseToJSON(n):{})[e]=t;n=JSON.stringify(n);i.Storage.setConfigLocal(l.Config.messenger.pageId,n,p.KeyMapper.MESSENGER)},g.getMultiMessengerStorage=function(e){var t=i.Storage.getConfigLocal(l.Config.messenger.pageId,p.KeyMapper.MESSENGER);return t&&null!=(t=u.Helper.parseToJSON(t))[e]?t[e]:""},g.promptSequencing=function(e){-1<[p.KeyMapper.MESSENGER_PROMPTED,p.KeyMapper.MESSENGER_SUBSCRIBED,p.KeyMapper.PROMPT_CLOSED,p.KeyMapper.MESSENGER_READY_SHOW,p.KeyMapper.MESSENGER_READY].indexOf(e)&&!g.isElementFound&&r.ChannelEventHandler.event("messenger",e)},g.sendEvent=function(e){var t=[p.KeyMapper.MESSENGER_SUBSCRIBED];l.Config.messenger.syncPrompt&&t.push(p.KeyMapper.MESSENGER_PROMPTED),-1!=t.indexOf(e)&&g.syncEvent(e)},g.getParameterToSync=function(e){var t={pid:l.Config.client,btype:l.Config.global.browserType,dtype:l.Config.global.deviceType,os:l.Config.global.os,page_id:l.Config.messenger.pageId,bKey:l.Config.UUID};switch(e){case p.KeyMapper.MESSENGER_SUBSCRIBED:t.ms=1;break;case p.KeyMapper.MESSENGER_PROMPTED:t.msp=1;break;default:t[e]=1}return t},g.anyWhereSelector="izooto-messenger-subscription-button",g.isElementFound=!1,g.frameElement=void 0,g.triggered=!1,g.appId="1061905150807841",g.ctaText=[,"GET_THIS_IN_MESSENGER","RECEIVE_THIS_IN_MESSENGER","SEND_THIS_TO_ME","GET_CUSTOMER_ASSISTANCE","GET_CUSTOMER_SERVICE","GET_SUPPORT","LET_US_CHAT","SEND_ME_MESSAGES","ALERT_ME_IN_MESSENGER","SEND_ME_UPDATES","MESSAGE_ME","LET_ME_KNOW","KEEP_ME_UPDATED","TELL_ME_MORE","SUBSCRIBE_IN_MESSENGER","SUBSCRIBE_TO_UPDATES","GET_MESSAGES","SUBSCRIBE","GET_STARTED_IN_MESSENGER","LEARN_MORE_IN_MESSENGER","GET_STARTED"],g.heightMap={standard:"44px",large:"58px",xlarge:"71px"},g);function g(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;var i=n(0),o=n(1),r=n(3),a=n(2);t.Session=(s.init=function(){i.Config.global.isSessionHandled||(s.sessionHandler(),i.Config.global.isSessionHandled=!0)},s.sessionHandler=function(){var e;s.isSessionExpired()&&(t=r.Storage.getConfigLocal(a.KeyMapper.SESSION_COUNT,a.KeyMapper.SESSION),e=r.Storage.getConfigLocal(a.KeyMapper.FIRST_SESSION,a.KeyMapper.SYNC),t&&e&&o.Helper.getDateDiffrenceFromPresent(e)<=s.visitWithinDays?r.Storage.setConfigLocal(a.KeyMapper.SESSION_COUNT,t+1,a.KeyMapper.SESSION):(r.Storage.setConfigLocal(a.KeyMapper.SESSION_COUNT,1,a.KeyMapper.SESSION),r.Storage.updateLastSync(a.KeyMapper.FIRST_SESSION)));var t=(t=new Date).setTime(t.getTime()+60*s.sessionExpiryMinute*1e3);new Date(t),r.Storage.setConfigLocal(a.KeyMapper.SESSION_EXPIRY,t,a.KeyMapper.SESSION)},s.isSessionExpired=function(){var e=r.Storage.getConfigLocal(a.KeyMapper.SESSION_EXPIRY,a.KeyMapper.SESSION),t=new Date;return!(""!=e&&e>t.getTime())&&(s.isNew=!0)},s.getSessionCount=function(){return r.Storage.getConfigLocal(a.KeyMapper.SESSION_COUNT,a.KeyMapper.SESSION)||0},s.isNew=!1,s.sessionExpiryMinute=30,s.visitWithinDays=7,s);function s(){}},function(e,t,n){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,n=1,i=arguments.length;nt.getTime()&&(e=!0,c.Helper.displayLog("Wait until onetap repeat delay expire!")),e},p.syncSubscription=function(i){return new Promise(function(e,t){var n=c.Helper.getEndpoint("syncEmailSubscription");l.Storage.setConfigLocal(u.KeyMapper.EMAIL_NOT_SYNCED,1),r.HttpRequest.postForm(n,i,!0).then(function(){l.Storage.removeConfigLocal(u.KeyMapper.EMAIL_NOT_SYNCED),"Email payload synced successfully with ".concat(o.Config.brandingPartner),e(!0)}).catch(function(){return t(!1)})})},p.eventCallbackHandler=function(e){c.Helper.displayLog("one tap callback responce",e),"display"==e.g&&e.h?(p.setRepeatPromptDelay(o.Config.email.repeatPromptDelay),i.ChannelEventHandler.event("email",u.KeyMapper.EMAIL_INPROGRESS),c.Helper.displayLog("OneTap Prompt is Displayed on ".concat(1==c.Helper.getDeviceType()?"Desktop":"Mobile"))):i.ChannelEventHandler.event("email",u.KeyMapper.EMAIL_CLOSED),"skipped"!=e.g&&"dismissed"!=e.g||c.Helper.displayLog("OneTap Prompt is Dismissed or skipped")},p.setRepeatPromptDelay=function(e){var t;0!==e&&(t=(t=new Date).setTime(t.getTime()+60*e*1e3),"Setting email onetap repeat prompt delay for ".concat(e," minutes"),l.Storage.setConfigLocal(u.KeyMapper.ONETAP_REPEAT_PROMPT_DELAY,t))},p.isPromptShown=!1,p.emailValidatorRegex=new RegExp(/^\S+@\S+\.\S+$/),p.responseObj={SYNCED:{success:!0,response:"Synced"},ALREADY_SYNCED:{success:!0,response:"Already Synced"},INVALID_EMAIL:{success:!1,response:"Invalid Email",errorCode:1},SYNC_FAILED:{success:!1,response:"Sync failed",errorCode:2}},p.syncUserEmail=!1,p);function p(){}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function i(e){try{r(c.next(e))}catch(e){t(e)}}function o(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((c=c.apply(e,a||[])).next())})},c=this&&this.__generator||function(n,i){var o,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(t){return function(e){return function(t){if(o)throw new TypeError("Generator is already executing.");for(;c&&t[c=0]&&(s=0),s;)try{if(o=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,r=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]a[0]&&t[1]=r)return{value:!1}}}}}(e);if("object"==typeof t)return t.value}return!0},a.prototype.isDateTimeSegmentValidated=function(e,t,n){var i,e=e[t],o="lci"==t?T.Config.store.lastClick:T.Config.store.lastView;if("px"==t)try{var r=P.Storage.getConfigLocal(n,O.KeyMapper.USER_PROPERTY);if(!r)return!1;for(var o=new Date(r).getTime(),a=[],s=null===(i=e[n])||void 0===i?void 0:i.values,c=0,l=s;cg.getTime())return!1;break;case"after":if(oo&&o=n&&(i.notificationShowKeyList.push(e.key),i.notificationShowList.push(e))}),this.notificationShowList.sort(function(e,t){return t.payload.ct-e.payload.ct})},a.prototype.storeSegmentIntoIdb=function(e){for(var t=0,n=e;ta[0]&&t[1]=window.innerHeight&&t(),n=e<=0?0:e},!1))},f.backButtonIntentHandler=function(){var e=a.Storage.getSessionStorage("izootoOSNDisplayed");""==location.hash&&!e&&f.isSupportedBackIntent()&&(f.isFirstPage()?(f.onBackButtonTriggerHandler(!0),f.onUrlChangeHandler(),window.addEventListener("beforeunload",f.setHistoryStateIntoStorage),f.setHistoryStateIntoStorage()):f.isNavigatedBackToFirstPage()&&f.attachPopstateListener())},f.initializeDialog=function(e){try{if(p.OnSite.isElementinViewport)return f.widgetData.isHidden=!0,f.widgetData.triggerType=e,!1;if(f.widgetData.isDialogInitialize)return!1;f.widgetData.isDialogInitialize=!0;var t=void 0;s.Config.exitIntent.ads?t=c.Helper.addExternalJS(u.AdManager.GPTScriptSrc,"izootoGPT"):s.Config.exitIntent.adfc&&u.AdManager.isThirdPartyAds()&&4!=s.Config.exitIntent.templateType&&(t=Promise.resolve()),Promise.all([t,f.showDialog(e)]).then(function(e){var t;null!==(t=e[0])&&void 0!==t&&t.hasOwnProperty("isAd")?f.singleAdHandler(e[0]):f.adsHandler()}).catch(function(e){c.Helper.displayLog("Exit intent initializeDialog error",e)})}catch(e){}},f.showDialog=function(i){return o(this,void 0,void 0,function(){return r(this,function(e){try{return[2,new Promise(function(t,n){f.widgetData.triggerOnEventType=i,p.OnSite.getParsedFeed(s.Config.exitIntent.osnType).then(function(e){p.OnSite.setExitIntentFeed(e)&&p.OnSite.getHTML(f.widgetData.htmlSrc).then(function(e){c.Helper.addHTML("div",e,f.widgetData.dialogBoxID),f.getDialogToDisplay(e).then(function(e){d.ChannelEventHandler.event("exitIntent",l.KeyMapper.EXITINTENT_SHOWN),e.style.display="block",p.OnSite.syncOnsiteView(s.Config.exitIntent.osnType),c.Helper.setRepeatPromptDelay(s.Config.exitIntent.repeatDelay,l.KeyMapper.EXITINTENT_DELAY),t(!0)})})}).catch(function(e){n(!1),c.Helper.displayLog("showDialog error",e)})})]}catch(e){}return[2]})})},f.getDialogToDisplay=function(e){return o(this,void 0,void 0,function(){return r(this,function(e){return[2,new Promise(function(e,t){try{var n=s.Config.exitIntent.templateType,i={1:f.setPostsArticle,2:f.setTemplate2Post,3:f.setPostsArticle,4:f.templateFullPage.setData}[n];i?(i(),f.applyConfigStyle(),e(p.OnSite.getTypedDomElement(".iz_osn",s.Config.exitIntent.osnType))):(c.Helper.displayLog(" Exitintent Template type is not set on config "),t(!1))}catch(e){t(!1)}})]})})},f.setPostsArticle=function(){try{f.setLargePostArticle();var e=p.OnSite.getTypedDomElement(".".concat(p.OnSite.osnPrefix,"right"),s.Config.exitIntent.osnType),t=p.OnSite.getTypedDomElement(".".concat(p.OnSite.osnPrefix,"smContainer"),s.Config.exitIntent.osnType);f.widgetData.singlePostHTML=t;var n=document.querySelector(".".concat(p.OnSite.osnPrefix,"smContainer_1>div")),i=window.getComputedStyle(n).getPropertyValue("background-image");p.OnSite.defaultImage=i.match(/\((.*?)\)/)[1].replace(/('|")/g,""),null!=t&&t.remove(),1!=s.Config.global.deviceType&&(!0===u.AdManager.isThirdPartyAds()?f.widgetData.smallPostAllowed=3:f.widgetData.smallPostAllowed=s.Config.exitIntent.ads?3:2),3==s.Config.exitIntent.templateType&&(f.widgetData.smallPostAllowed=s.Config.global.deviceType==l.KeyMapper.DEVICE_TYPE_DESKTOP?3:2),s.Config.global.deviceType!==l.KeyMapper.DEVICE_TYPE_DESKTOP&&f.widgetData.smallPostData.unshift(f.widgetData.largePostData);for(var o=0;oa[0]&&t[1]a[0]&&t[1]
')}).join("")},p.checkVisibility=function(e){return(null===(e=c.Helper.getDomElement("#".concat(e)))||void 0===e?void 0:e.offsetParent)||null},p.initPopup=function(t){var e,n,i=this;void 0===t&&(t=!1),(d.Storage.getConfigLocal(u.KeyMapper.ONSITE_ADS_ALLOWED)||t)&&(e=s.Config.adBR.templateId,n=s.Config.adBR.htmlVersion[e],l.HttpRequest.get("https://cdn.izooto.com/osn/adbr/".concat(e,"/v").concat(n,".html")).then(function(e){c.Helper.addHTML("div",e),i.attachEventListners(),i.setSiteLogo(),i.setScreen(t),3<=d.Storage.getConfigLocal(u.KeyMapper.ONSITE_ADS_REFRESH_COUNT)&&(i.showCloseButton(),d.Storage.removeConfigLocal(u.KeyMapper.ONSITE_ADS_REFRESH_COUNT)),a.ChannelEventHandler.event("adblock",u.KeyMapper.ADBLOCK_READY_SHOW)}).catch(function(e){}))},p.setSiteLogo=function(){var t=this;s.Config.adBR.logoSrc?document.querySelectorAll("."+f.brandImage).forEach(function(e){e.src=s.Config.adBR.logoSrc,e.onerror=function(){return t.brandLogoNotAvailable()}}):this.brandLogoNotAvailable()},p.setScreen=function(e){d.Storage.getConfigLocal(u.KeyMapper.ONSITE_ADS_ALLOWED)&&0==e?this.showThankyouSection():(this.syncImpression(),d.Storage.setConfigLocal(u.KeyMapper.ONSITE_ADS_ALLOWED,1),d.Storage.setConfigLocal(u.KeyMapper.ONSITE_ADS_REFRESH_COUNT,(d.Storage.getConfigLocal(u.KeyMapper.ONSITE_ADS_REFRESH_COUNT)||0)+1))},p.attachEventListners=function(){var e=this,t=c.Helper.getDomElement("."+f.allowADS),n=c.Helper.getDomElement("."+f.refreshButton),i=c.Helper.getDomElement("."+f.closeButton);t.addEventListener("click",function(){c.Helper.hideElement("."+f.section1),c.Helper.hideElement("."+f.section3),c.Helper.showElement("."+f.content)}),n.addEventListener("click",function(){window.location.reload()}),i.addEventListener("click",function(){e.hidePopup()});var o=document.querySelectorAll("."+f.tabButton);o.forEach(function(e,n){e.addEventListener("click",function(){document.querySelectorAll("."+f.tabContent+" ol").forEach(function(e,t){o[t].classList.add(f.activeTab),n==t?(e.style.display="block",o[t].classList.add(f.activeTab)):(e.style.display="none",o[t].classList.remove(f.activeTab))})})})},p.showThankyouSection=function(){d.Storage.removeConfigLocal(u.KeyMapper.ONSITE_ADS_ALLOWED),this.syncClick(),this.showCloseButton(),c.Helper.hideElement("."+f.section1),c.Helper.hideElement("."+f.content),c.Helper.showElement("."+f.section3,!1),s.Config.adBR.adUnit&&i.AdManager.loadAdBlockerAd().catch(function(){})},p.syncImpression=function(){this.sendToServer(c.Helper.getEndpoint("syncOnsiteView"))},p.syncClick=function(){this.sendToServer(c.Helper.getEndpoint("syncOnsiteClick"))},p.sendToServer=function(e){var t={pid:s.Config.client,bkey:s.Config.UUID,cid:s.Config.adBR.cid,rid:s.Config.adBR.rid,ot:4};s.Config.adBR.rid&&s.Config.adBR.cid&&l.HttpRequest.postForm(e,t,!0).then(function(){"Onsite Adblocker ".concat(e," synced successfully with ").concat(s.Config.brandingPartner)}).catch(console.log)},p.showCloseButton=function(){c.Helper.getDomElement("."+f.closeButton).style.visibility="visible"},p.hidePopup=function(){c.Helper.hideElement("#"+f.mainContainer),a.ChannelEventHandler.event("adblock",u.KeyMapper.ADBLOCK_CLOSED)},p.brandLogoNotAvailable=function(){var e=window.location.hostname.split(".");"www"===e[0]&&e.splice(0,1);var t=e.join(".").toUpperCase();document.querySelectorAll("."+f.brandURL).forEach(function(e){e.style.display="-webkit-box",e.innerHTML=t}),document.querySelectorAll("."+f.brandImage).forEach(function(e){e.style.display="none"})},p.showPopup=function(){c.Helper.showElement("#"+f.mainContainer)},p.bannerIds=["AdHeader","AdContainer","AD_Top","homead","ad-lead"],p);function p(){}var t="iz_osn_adblocker_",f={mainContainer:"iz_osn_adblocker",adChecker:"".concat(t,"detect_container"),brandImage:"".concat(t,"logo img"),brandURL:"".concat(t,"logo_text"),allowADS:"".concat(t,"allowads_button"),refreshButton:"".concat(t,"refresh_button"),section1:"".concat(t,"content_section_1"),content:"".concat(t,"content_section_2"),section3:"".concat(t,"content_section_3"),activeTab:"".concat(t,"active_tab"),tabButton:"".concat(t,"tab_button"),tabContent:"".concat(t,"tab_content"),closeButton:"".concat(t,"close a")}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,a,s,c){return new(s=s||Promise)(function(n,t){function i(e){try{r(c.next(e))}catch(e){t(e)}}function o(e){try{r(c.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((c=c.apply(e,a||[])).next())})},o=this&&this.__generator||function(n,i){var o,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},c={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function e(t){return function(e){return function(t){if(o)throw new TypeError("Generator is already executing.");for(;c&&t[c=0]&&(s=0),s;)try{if(o=1,r&&(a=2&t[0]?r.return:t[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,t[1])).done)return a;switch(r=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,r=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]",e.message="Pick up where you left off",e.icon="https://cdnimg.izooto.com/icons/4/JD-12-128.png",e.banner="<~[@featured_image]~>",e.link="<~[@last_visited_url]~>",e.tag="tabAbandonment",e.reqInt=!0,e.id="",e.rid="",e.viewFlag=1,e.clickFlag=1,e.sysEvents=0,e.domainNum=0;var t=window.location.href;t.indexOf("utm_campaign=")<0&&(e.link+=t.includes("?")?"&":"?",e.link+="utm_source=izooto&utm_medium=push_notifications&utm_campaign=recover_abandoned_tab&utm_term=notification1");var n,i=r.Config.tabAbandonment.data;for(n in e)i.hasOwnProperty(n)||(i[n]=e[n]);return i=l.getFilterData(i)},l.urlUtmHandler=function(e,t){var n,i,o=t.split("&"),r={};for(n in o){var a=o[n].split("=");r[a[0]]=a[1]}for(i in e=new URL(e),r)e.searchParams.set(i,r[i]);return e.href},l.getFilterData=function(e){var t,n,i,o={},r=window.location.href;for(t in o.article_title=""!=a.Helper.getMetaValue("og:title")?a.Helper.getMetaValue("og:title"):a.Helper.getMetaValue("title"),o.featured_image=a.Helper.getMetaValue("og:image"),o.last_visited_url=r,e)"string"==typeof e[t]&&0<=e[t].indexOf("<~[@")&&(n=e[t].indexOf("<~[@"),i=e[t].indexOf("]~>"),"last_visited_url"==(n=e[t].substring(n+4,i))&&0",o[n]),e[t]=l.urlUtmHandler(r,i)):e[t]=e[t].replace("<~[@"+n+"]~>",o[n]));return e},l);function l(){}t.TabAbandonments=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdNetwork=void 0;var u=n(3),d=n(0),p=n(1);t.AdNetwork=(f.getAdNetworkParam=function(e){void 0===e&&(e=!1),f.forceSyncAdNetwork=0;var t="",n=u.Storage.getStorage("_ga"),i=u.Storage.getStorage("taboola global:user-id"),o=u.Storage.getStorage("OB-USER-TOKEN"),r=u.Storage.getStorage("mgMuidn"),a=u.Storage.getConfigLocal("gac"),s=u.Storage.getConfigLocal("tbc"),c=u.Storage.getConfigLocal("obc"),l=u.Storage.getConfigLocal("mgc");return i&&(f.adNetworkObj.tbc=i),o&&(f.adNetworkObj.obc=o),r&&(f.adNetworkObj.mgc=r),n&&1==d.Config.ga.syncCid&&(f.adNetworkObj.gac=n),(f.adNetworkObj.gac&&a!=n||i&&s!=i||o&&c!=o||r&&l!=r)&&(f.forceSyncAdNetwork=1),e?f.adNetworkObj:(0