AddressManagement~cus-index~documentary-index~ib-ImproveImmediately~ib-PersonalManagement~ib-index~t~9df13848.25ff4eba.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AddressManagement~cus-index~documentary-index~ib-ImproveImmediately~ib-PersonalManagement~ib-index~t~9df13848"],{"18d2":function(e,t,n){"use strict";var i=n("18e9");e.exports=function(e){e=e||{};var t=e.reporter,n=e.batchProcessor,o=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function r(e,t){function n(){t(e)}if(i.isIE(8))o(e).object={proxy:n},e.attachEvent("onresize",n);else{var r=l(e);if(!r)throw new Error("Element is not detectable by this strategy.");r.contentDocument.defaultView.addEventListener("resize",n)}}function a(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function s(e,r,s){s||(s=r,r=e,e=null),e=e||{};e.debug;function l(r,s){var l=a(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,d=window.getComputedStyle(r),u=r.offsetWidth,f=r.offsetHeight;function h(){function n(){if("static"===d.position){r.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,i,o){function r(e){return e.replace(/[^-\d\.]/g,"")}var a=i[o];"auto"!==a&&"0"!==r(a)&&(t.warn("An element that is positioned static has style."+o+"="+a+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",n),n.style.setProperty(o,"0",e.important?"important":""))};n(t,r,d,"top"),n(t,r,d,"right"),n(t,r,d,"bottom"),n(t,r,d,"left")}}function a(){function e(t,n){if(!t.contentDocument){var i=o(t);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}c||n();var t=this;e(t,(function(e){s(r)}))}""!==d.position&&(n(d),c=!0);var u=document.createElement("object");u.style.cssText=l,u.tabIndex=-1,u.type="text/html",u.setAttribute("aria-hidden","true"),u.onload=a,i.isIE()||(u.data="about:blank"),o(r)&&(r.appendChild(u),o(r).object=u,i.isIE()&&(u.data="about:blank"))}o(r).startSize={width:u,height:f},n?n.add(h):h()}i.isIE(8)?s(r):l(r,s)}function l(e){return o(e).object}function c(e){if(o(e)){var t=l(e);t&&(i.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),o(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(e).checkForObjectDocumentTimeoutId),delete o(e).object)}}return{makeDetectable:s,addListener:r,uninstall:c}}},"18e9":function(e,t,n){"use strict";var i=e.exports={};i.isIE=function(e){function t(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/")}if(!t())return!1;if(!e)return!0;var n=function(){var e,t=3,n=document.createElement("div"),i=n.getElementsByTagName("i");do{n.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(i[0]);return t>4?t:e}();return e===n},i.isLegacyOpera=function(){return!!window.opera}},"2cef":function(e,t,n){"use strict";e.exports=function(){var e=1;function t(){return e++}return{generate:t}}},"49ad":function(e,t,n){"use strict";e.exports=function(e){var t={};function n(n){var i=e.get(n);return void 0===i?[]:t[i]||[]}function i(n,i){var o=e.get(n);t[o]||(t[o]=[]),t[o].push(i)}function o(e,t){for(var i=n(e),o=0,r=i.length;o<r;++o)if(i[o]===t){i.splice(o,1);break}}function r(e){var t=n(e);t&&(t.length=0)}return{get:n,add:i,removeListener:o,removeAllListeners:r}}},5058:function(e,t,n){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;function i(e){var t=n(e);return t&&void 0!==t.id?t.id:null}function o(e){var i=n(e);if(!i)throw new Error("setId required the element to have a resize detection state.");var o=t.generate();return i.id=o,o}return{get:i,set:o}}},"50bf":function(e,t,n){"use strict";var i=e.exports={};function o(e,t,n){var i=e[t];return void 0!==i&&null!==i||void 0===n?i:n}i.getOption=o},"5be5":function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;function n(e){var n=t(e);return n&&!!n.isDetectable}function i(e){t(e).isDetectable=!0}function o(e){return!!t(e).busy}function r(e,n){t(e).busy=!!n}return{isDetectable:n,markAsDetectable:i,isBusy:o,markBusy:r}}},abb4:function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var i=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},b770:function(e,t,n){"use strict";var i=e.exports={};i.forEach=function(e,t){for(var n=0;n<e.length;n++){var i=t(e[n]);if(i)return i}}},c274:function(e,t,n){"use strict";var i=n("50bf");function o(){var e={},t=0,n=0,i=0;function o(o,r){r||(r=o,o=0),o>n?n=o:o<i&&(i=o),e[o]||(e[o]=[]),e[o].push(r),t++}function r(){for(var t=i;t<=n;t++)for(var o=e[t],r=0;r<o.length;r++){var a=o[r];a()}}function a(){return t}return{add:o,process:r,size:a}}e.exports=function(e){e=e||{};var t=e.reporter,n=i.getOption(e,"async",!0),r=i.getOption(e,"auto",!0);r&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=o(),l=!1;function c(e,t){!l&&r&&n&&0===s.size()&&f(),s.add(e,t)}function d(){l=!0;while(s.size()){var e=s;s=o(),e.process()}l=!1}function u(e){l||(void 0===e&&(e=n),a&&(h(a),a=null),e?f():d())}function f(){a=p(d)}function h(e){var t=clearTimeout;return t(e)}function p(e){var t=function(e){return setTimeout(e,0)};return t(e)}return{add:c,force:u}}},c946:function(e,t,n){"use strict";var i=n("b770").forEach;e.exports=function(e){e=e||{};var t=e.reporter,n=e.batchProcessor,o=e.stateHandler.getState,r=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var a=u(),s="erd_scroll_detection_scrollbar_style",l="erd_scroll_detection_container";function c(e){f(e,s,l)}function d(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function u(){var e=500,t=500,n=document.createElement("div");n.style.cssText=d(["position: absolute","width: "+2*e+"px","height: "+2*t+"px","visibility: hidden","margin: 0","padding: 0"]);var i=document.createElement("div");i.style.cssText=d(["position: absolute","width: "+e+"px","height: "+t+"px","overflow: scroll","visibility: none","top: "+3*-e+"px","left: "+3*-t+"px","visibility: hidden","margin: 0","padding: 0"]),i.appendChild(n),document.body.insertBefore(i,document.body.firstChild);var o=e-i.clientWidth,r=t-i.clientHeight;return document.body.removeChild(i),{width:o,height:r}}function f(e,t,n){function i(n,i){i=i||function(t){e.head.appendChild(t)};var o=e.createElement("style");return o.innerHTML=n,o.id=t,i(o),o}if(!e.getElementById(t)){var o=n+"_animation",r=n+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+n+" > div::-webkit-scrollbar { "+d(["display: none"])+" }\n\n",a+="."+r+" { "+d(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+o,"animation-name: "+o])+" }\n",a+="@-webkit-keyframes "+o+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",a+="@keyframes "+o+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",i(a)}}function h(e){e.className+=" "+l+"_animation_active"}function p(e,n,i){if(e.addEventListener)e.addEventListener(n,i);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,i)}}function m(e,n,i){if(e.removeEventListener)e.removeEventListener(n,i);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,i)}}function v(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function g(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}function b(e,t){var n=o(e).listeners;if(!n.push)throw new Error("Cannot add listener to an element that is not detectable.");o(e).listeners.push(t)}function y(e,s,c){function u(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(r.get(s),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var i=0;i<n.length;i++)t.log(n[i])}}function f(e){function t(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}return!t(e)||null===window.getComputedStyle(e)}function m(e){var t=o(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function b(){var e=window.getComputedStyle(s),t={};return t.position=e.position,t.width=s.offsetWidth,t.height=s.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function y(){var e=b();o(s).startSize={width:e.width,height:e.height},u("Element start size",o(s).startSize)}function w(){o(s).listeners=[]}function x(){if(u("storeStyle invoked."),o(s)){var e=b();o(s).style=e}else u("Aborting because element has been uninstalled")}function E(e,t,n){o(e).lastWidth=t,o(e).lastHeight=n}function S(e){return v(e).childNodes[0]}function k(){return 2*a.width+1}function A(){return 2*a.height+1}function z(e){return e+10+k()}function D(e){return e+10+A()}function T(e){return 2*e+k()}function I(e){return 2*e+A()}function H(e,t,n){var i=v(e),o=g(e),r=z(t),a=D(n),s=T(t),l=I(n);i.scrollLeft=r,i.scrollTop=a,o.scrollLeft=s,o.scrollTop=l}function L(){var e=o(s).container;if(!e){e=document.createElement("div"),e.className=l,e.style.cssText=d(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),o(s).container=e,h(e),s.appendChild(e);var t=function(){o(s).onRendered&&o(s).onRendered()};p(e,"animationstart",t),o(s).onAnimationStart=t}return e}function C(){function n(){var n=o(s).style;if("static"===n.position){s.style.setProperty("position","relative",e.important?"important":"");var i=function(e,t,n,i){function o(e){return e.replace(/[^-\d\.]/g,"")}var r=n[i];"auto"!==r&&"0"!==o(r)&&(e.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",t),t.style[i]=0)};i(t,s,n,"top"),i(t,s,n,"right"),i(t,s,n,"bottom"),i(t,s,n,"left")}}function i(e,t,n,i){return e=e?e+"px":"0",t=t?t+"px":"0",n=n?n+"px":"0",i=i?i+"px":"0",["left: "+e,"top: "+t,"right: "+i,"bottom: "+n]}if(u("Injecting elements"),o(s)){n();var r=o(s).container;r||(r=L());var c=a.width,f=a.height,h=d(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),m=d(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(i(-(1+c),-(1+f),-f,-c))),v=d(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),g=d(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=d(["position: absolute","left: 0","top: 0"]),y=d(["position: absolute","width: 200%","height: 200%"]),w=document.createElement("div"),x=document.createElement("div"),E=document.createElement("div"),S=document.createElement("div"),k=document.createElement("div"),A=document.createElement("div");w.dir="ltr",w.style.cssText=h,w.className=l,x.className=l,x.style.cssText=m,E.style.cssText=v,S.style.cssText=b,k.style.cssText=g,A.style.cssText=y,E.appendChild(S),k.appendChild(A),x.appendChild(E),x.appendChild(k),w.appendChild(x),r.appendChild(w),p(E,"scroll",z),p(k,"scroll",D),o(s).onExpandScroll=z,o(s).onShrinkScroll=D}else u("Aborting because element has been uninstalled");function z(){var e=o(s);e&&e.onExpand?e.onExpand():u("Aborting expand scroll handler: element has been uninstalled")}function D(){var e=o(s);e&&e.onShrink?e.onShrink():u("Aborting shrink scroll handler: element has been uninstalled")}}function N(){function a(t,n,i){var o=S(t),r=z(n),a=D(i);o.style.setProperty("width",r+"px",e.important?"important":""),o.style.setProperty("height",a+"px",e.important?"important":"")}function l(i){var l=s.offsetWidth,d=s.offsetHeight,f=l!==o(s).lastWidth||d!==o(s).lastHeight;u("Storing current size",l,d),E(s,l,d),n.add(0,(function(){if(f)if(o(s))if(c()){if(e.debug){var n=s.offsetWidth,i=s.offsetHeight;n===l&&i===d||t.warn(r.get(s),"Scroll: Size changed before updating detector elements.")}a(s,l,d)}else u("Aborting because element container has not been initialized");else u("Aborting because element has been uninstalled")})),n.add(1,(function(){o(s)?c()?H(s,l,d):u("Aborting because element container has not been initialized"):u("Aborting because element has been uninstalled")})),f&&i&&n.add(2,(function(){o(s)?c()?i():u("Aborting because element container has not been initialized"):u("Aborting because element has been uninstalled")}))}function c(){return!!o(s).container}function d(){function e(){return void 0===o(s).lastNotifiedWidth}u("notifyListenersIfNeeded invoked");var t=o(s);return e()&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?u("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?u("Not notifying: Size already notified"):(u("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void i(o(s).listeners,(function(e){e(s)})))}function f(){if(u("startanimation triggered."),m(s))u("Ignoring since element is still unrendered...");else{u("Element rendered.");var e=v(s),t=g(s);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(u("Scrollbars out of sync. Updating detector elements..."),l(d))}}function h(){u("Scroll detected."),m(s)?u("Scroll event fired while unrendered. Ignoring..."):l(d)}if(u("registerListenersAndPositionElements invoked."),o(s)){o(s).onRendered=f,o(s).onExpand=h,o(s).onShrink=h;var p=o(s).style;a(s,p.width,p.height)}else u("Aborting because element has been uninstalled")}function O(){if(u("finalizeDomMutation invoked."),o(s)){var e=o(s).style;E(s,e.width,e.height),H(s,e.width,e.height)}else u("Aborting because element has been uninstalled")}function j(){c(s)}function M(){u("Installing..."),w(),y(),n.add(0,x),n.add(1,C),n.add(2,N),n.add(3,O),n.add(4,j)}c||(c=s,s=e,e=null),e=e||{},u("Making detectable..."),f(s)?(u("Element is detached"),L(),u("Waiting until element is attached..."),o(s).onRendered=function(){u("Element is now attached"),M()}):M()}function w(e){var t=o(e);t&&(t.onExpandScroll&&m(v(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&m(g(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&m(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))}return c(window.document),{makeDetectable:y,addListener:b,uninstall:w,initDocument:c}}},d6eb:function(e,t,n){"use strict";var i="_erd";function o(e){return e[i]={},r(e)}function r(e){return e[i]}function a(e){delete e[i]}e.exports={initState:o,getState:r,cleanState:a}},eec4:function(e,t,n){"use strict";var i=n("b770").forEach,o=n("5be5"),r=n("49ad"),a=n("2cef"),s=n("5058"),l=n("abb4"),c=n("18e9"),d=n("c274"),u=n("d6eb"),f=n("18d2"),h=n("c946");function p(e){return Array.isArray(e)||void 0!==e.length}function m(e){if(Array.isArray(e))return e;var t=[];return i(e,(function(e){t.push(e)})),t}function v(e){return e&&1===e.nodeType}function g(e,t,n){var i=e[t];return void 0!==i&&null!==i||void 0===n?i:n}e.exports=function(e){var t;if(e=e||{},e.idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=a(),b=s({idGenerator:n,stateHandler:u});t=b}var y=e.reporter;if(!y){var w=!1===y;y=l(w)}var x=g(e,"batchProcessor",d({reporter:y})),E={};E.callOnAdd=!!g(e,"callOnAdd",!0),E.debug=!!g(e,"debug",!1);var S,k=r(t),A=o({stateHandler:u}),z=g(e,"strategy","object"),D=g(e,"important",!1),T={reporter:y,batchProcessor:x,stateHandler:u,idHandler:t,important:D};if("scroll"===z&&(c.isLegacyOpera()?(y.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),z="object"):c.isIE(9)&&(y.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),z="object")),"scroll"===z)S=h(T);else{if("object"!==z)throw new Error("Invalid strategy name: "+z);S=f(T)}var I={};function H(e,n,o){function r(e){var t=k.get(e);i(t,(function(t){t(e)}))}function a(e,t,n){k.add(t,n),e&&n(t)}if(o||(o=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(v(n))n=[n];else{if(!p(n))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=m(n)}var s=0,l=g(e,"callOnAdd",E.callOnAdd),c=g(e,"onReady",(function(){})),d=g(e,"debug",E.debug);i(n,(function(e){u.getState(e)||(u.initState(e),t.set(e));var f=t.get(e);if(d&&y.log("Attaching listener to element",f,e),!A.isDetectable(e))return d&&y.log(f,"Not detectable."),A.isBusy(e)?(d&&y.log(f,"System busy making it detectable"),a(l,e,o),I[f]=I[f]||[],void I[f].push((function(){s++,s===n.length&&c()}))):(d&&y.log(f,"Making detectable..."),A.markBusy(e,!0),S.makeDetectable({debug:d,important:D},e,(function(e){if(d&&y.log(f,"onElementDetectable"),u.getState(e)){A.markAsDetectable(e),A.markBusy(e,!1),S.addListener(e,r),a(l,e,o);var t=u.getState(e);if(t&&t.startSize){var h=e.offsetWidth,p=e.offsetHeight;t.startSize.width===h&&t.startSize.height===p||r(e)}I[f]&&i(I[f],(function(e){e()}))}else d&&y.log(f,"Element uninstalled before being detectable.");delete I[f],s++,s===n.length&&c()})));d&&y.log(f,"Already detecable, adding listener."),a(l,e,o),s++})),s===n.length&&c()}function L(e){if(!e)return y.error("At least one element is required.");if(v(e))e=[e];else{if(!p(e))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=m(e)}i(e,(function(e){k.removeAllListeners(e),S.uninstall(e),u.cleanState(e)}))}function C(e){S.initDocument&&S.initDocument(e)}return{listenTo:H,removeListener:k.removeListener,removeAllListeners:k.removeAllListeners,uninstall:L,initDocument:C}}}}]);