(window["arcWidgetJsonp"]=window["arcWidgetJsonp"]||[]).push([["lazy-iwc"],{"0475":function(e,n,t){"use strict";t.r(n),t.d(n,"SJ",(function(){return o}));var o=o||{};o.ns=function(e){var n=e.split("."),t=o;"SJ"===n[0]&&(n=n.slice(1));for(var r=0;r2*n||s>n&&i[c]&&r-i[c]>t?(delete e[c],o.localStorage.removeItem(u+c)):s>n?i[c]||(i[c]=r,o.iwc.EventBus.fire("windowisaliverequest",c)):i[c]&&delete i[c]}for(var c in i)i.hasOwnProperty(c)&&!e.hasOwnProperty(c)&&delete i[c]}function I(e){return!!r[e]}function y(){var e=h(),n=[];for(var t in e)e.hasOwnProperty(t)&&!r[t]&&n.push(t);var o=[];for(var t in r)r.hasOwnProperty(t)&&!e[t]&&o.push(t);r=e,(n.length||o.length)&&b(n,o)}function b(e,n){s.fire("windowschanged",e,n)}function S(e){e===a&&(window.focus(),k())}o.windowOn("unload",f),o.localStorage.onChanged(g),o.iwc.EventBus.on("windowfocusrequest",S),o.iwc.EventBus.on("windowisaliverequest",w),o.iwc.EventBus.on("windowisaliveresponce",v),p(),window.setInterval(p,l);var _=0;function k(){if(!_){var e=500,n=3,t=document.title,o=!1;_=2*n;var r=function(){document.title=o?t:"******",o=!o,_--,_&&window.setTimeout(r,e)};window.setTimeout(r,e)}}o.copy(e,{isWindowOpen:I,getOpenWindowIds:function(){var e=[];for(var n in r)r.hasOwnProperty(n)&&e.push(n);return e},setFocus:function(e){e?S(a):o.iwc.EventBus.fire("windowfocusrequest",e)},getThisWindowId:function(){return a},isReady:function(){return c},onReady:function(e,n){c?e.call(n):s.once("windowsmanagerready",e,n)},onWindowsChanged:function(e,n){s.on("windowschanged",e,n)},onceWindowsChanged:function(e,n){s.once("windowschanged",e,n)},unsubscribe:function(e,n){s.un("windowschanged",e,n)}})}(o.ns("iwc.WindowMonitor")),function(e){var n=o.iwc.getLocalStoragePrefix()+"_LOCK_",t=500,r=[],i=!1;o.localStorage.onChanged(w);var a=new o.utils.Observable;function c(e){a.on("storagechanged",e)}function s(e){a.un("storagechanged",e)}function u(){a.fire("storagechanged")}function l(e){a.once("locksinitialized",e)}function d(){i=!0,a.fire("locksinitialized")}function f(e,n){var r=!1,a=!1,u=!1,d=null,f={lockId:e,release:function(){a=!0,u&&(s(lock),u=!1),r&&(r=!1,I(e))},isCaptured:function(){return r},isReleased:function(){return a}},w=function(){u||(c(g),d=window.setInterval(g,t),u=!0)},v=function(){u&&(s(g),window.clearInterval(d),u=!1)},g=function(){r||a||(y(e)?w():(v(),o.iwc.Lock.interlockedCall(e,(function(){y(e)?(w(),y(e)||(v(),m(f),r=!0,n())):(m(f),r=!0,n())}))))};return i?g():l(g),f}function w(e){if(e.key){var t=!e.newValue&&!!e.oldValue;t&&e.key.substr(0,n.length)===n&&u()}else u()}function v(e){o.iwc.WindowMonitor.onReady((function(){o.localStorage.forEach((function(e,t){if(t&&e.substr(0,n.length)===n){var r=e.substr(n.length);g(r,t)&&o.iwc.Lock.interlockedCall(r,(function(){var n=o.localStorage.getItem(e);n&&g(r,n)&&(o.localStorage.removeItem(e),u())}))}})),e&&e()}))}function g(e,n){var t=JSON.parse(n);if(!t||!t.timestamp||!t.ownerWindowId)return!0;var r=t.ownerWindowId===o.iwc.WindowMonitor.getThisWindowId(),i=!o.iwc.WindowMonitor.isWindowOpen(t.ownerWindowId);return i||r&&-1===b(e)}function h(){let e=[].concat(r);for(var n=0;n