var InvestingChannel=function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=5)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(7);t.Utility=n.default;var r=i(9);t.Constant=r.default;var s=i(10);t.CallbackType=s.default;var o=i(11);t.DocumentType=o.default;var a=i(12);t.FrequencyCapUnit=a.default;var l=i(13);t.FrequencyType=l.default;var u=i(14);t.InsertionType=u.default;var c=i(15);t.LoadType=c.default;var d=i(16);t.PageType=d.default;var p=i(17);t.PlacementState=p.default;var h=i(18);t.PlacementType=h.default;var m=i(19);t.ReferrerType=m.default;var f=i(20);t.TagType=f.default;var g=i(21);t.DFPTemplateParams=g.default;var y=i(22);t.DFPPlacementParams=y.default;var S=i(23);t.DeviceType=S.default;var v=i(24);t.RefreshType=v.default;var T=i(25);t.TemplateConfig=T.default;var b=i(26);t.PlacementConfig=b.default;var I=i(2);t.GDPRStatus=I.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6);t.Callback=n.default;var r=i(27);t.CustomVariable=r.default;var s=i(28);t.Frequency=s.default;var o=i(29);t.Selector=o.default;var a=i(30);t.Tag=a.default;var l=i(31);t.Targeting=l.default;var u=i(3);t.Placement=u.default;var c=i(36);t.Template=c.default;var d=i(37);t.Site=d.default},function(e,t,i){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.APPLICABLE="APPLICABLE",e.NOT_APPLICABLE="NOT_APPLICABLE",e.INPROGRESS="INPROGRESS"}(n=t.GDPRStatus||(t.GDPRStatus={})),t.default=n},function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i=1||"fluid"==n))return!1}return!0},e.prototype.createDAT=function(e){var t=e.getTargetName(),i=e.getSiteDFPKeyName()+"/"+t;this.mSelector.getIdentifier();for(var n=[],r=function(e){if(e.indexOf("x")>=1){var t=e.split("x");if(t.length>2)return"continue";var i=!1;if(t.forEach(function(e){Number(e)||(i=!0)}),i)return"continue";n.push(t.map(function(e){return parseInt(e,10)}))}else"fluid"==e&&n.push(e)},s=0,o=e.getAdSize().replace(/\s/g,"").toLowerCase().split(",");s-1)switch(o.replace("%%SYSTEM:","").replace("%%","")){case"TARGET":e=e.replace(o,t.getTargetName());break;case"TARGET_KVAL":e=e.replace(o,t.getTargetKval());break;case"PAGE_ID":e=e.replace(o,""+this.mTemplate.getPageId());break;case"VIEW_COUNT":e=this.mTemplate.getGDPRStatus()==a.GDPRStatus.NOT_APPLICABLE?e.replace(o,n.getFromCookie(a.Constant.VIEWCOUNTER_COOKIE_NAME_PREFIX+n.getTopWindowDomain())):e.replace(o,"-1");break;case"REFERRER_TYPE":e=e.replace(o,this.mTemplate.getReferrerType());break;case"PAGE_TYPE":e=e.replace(o,this.mTemplate.getPageType());break;case"DOCUMENT_TYPE":e=e.replace(o,this.mTemplate.getDocumentType());break;case"EXELATE_ID":e=e.replace(o,this.mTemplate.getExelateId());break;case"PAGE_URL":e=e.replace(o,a.Utility.window.top.location.href);break;case"AUTO_KVAL":e=e.replace(o,JSON.stringify(this.mTemplate.getAutoKval()));break;case"PIXEL_SEGMENT":e=e.replace(o,JSON.stringify(this.mTemplate.getPixelSegment()));break;case"USER_ID":e=e.replace(o,this.mTemplate.getUserId())}else if(o.indexOf("CUSTOM")>-1){var l=o.replace("%%CUSTOM:","").replace("%%",""),u="";r[l]&&void 0!=r[l].getValue()?u=r[l].getValue():a.Utility.ICJQuery(document).trigger("IC_JSErrorEvent",["Placement with id "+this.mId+": Either the custom variable with the name "+l+" does not exist or can't find the value of variable in a given source."]),e=e.replace(o,u)}}return e},e.prototype.getTagToDrop=function(){Math.floor(Math.random()*this.mTagsTotalWeight);for(var e=0;e.ic_1x1_css_class{width: 1px;height: 1px;}")),t="3",e="
"):(t="4",e="
")}catch(e){a.Utility.getInstance().ic_ga_event("placement.prepareCustomDiv",a.Utility.getInstance().prepareGALabel(this.mTemplate.getAPIKey(),this.mTemplate.getPageId(),t+") "+e.message+" PlacementId: "+this.mId))}return e},e.prototype.dropCustomDiv=function(e){var t=this.mTemplate.getElementForThePlacement(this.mId);if(t)switch(t=a.Utility.ICJQuery(t),this.mSelector.getInsertionType()){case a.InsertionType.AFTER:t.after(e);break;case a.InsertionType.BEFORE:t.before(e);break;case a.InsertionType.FIRST_CHILD:t.prepend(e);break;case a.InsertionType.LAST_CHILD:t.append(e);break;case a.InsertionType.REPEAT:t.prepend(e)}},e.prototype.setTargetToDFPParams=function(e){if(this.mType!=a.PlacementType.PIXEL&&e.getType()==a.TagType.DISPLAY)if(this.mDFPParams.setTarget(e.getTargetName()),null==e.getTargetKval()){var t=this.mTemplate.getTargetData(e.getTargetName());null!=t&&this.mDFPParams.setTargetKval(t.kval)}else this.mDFPParams.setTargetKval(e.getTargetKval())},e.prototype.setAdRefreshParameters=function(){void 0==this.mDFPParams.getAdRefreshCount()||isNaN(this.mDFPParams.getAdRefreshCount())?this.mDFPParams.setAdRefreshCount(0):this.mDFPParams.setAdRefreshCount(this.mDFPParams.getAdRefreshCount()+1),this.mDFPParams.setAdRefreshType(this.mDATRefreshType)},e.prototype.updateAdPositionParametersToDFPParams=function(e){if(this.mType!=a.PlacementType.PIXEL&&e.getType()==a.TagType.DISPLAY){var t=this.prepareAdPositionsParams();null!=t.browserSize&&this.mDFPParams.setBrowserSize(t.browserSize),null!=t.absolutePosition&&this.mDFPParams.setAbsolutePosition(t.absolutePosition),null!=t.relativePosition&&this.mDFPParams.setRelativePosition(t.relativePosition)}},e.prototype.updateViewabilityAttributesToDFPParams=function(e){if(this.mType!=a.PlacementType.PIXEL&&e.getType()==a.TagType.DISPLAY)if(this.mTemplate.getDocumentType()==a.DocumentType.PAGE){var t=this.calculateViewabilityAttributes();this.mDFPParams.setFoldPosition(""+t.foldPosition),this.mDFPParams.setVisiblePercentage(""+t.visiblePercentage)}else this.mDFPParams.setFoldPosition("-1"),this.mDFPParams.setVisiblePercentage("-1")},e.prototype.updateAdxParametersToDFPParams=function(){var e=Math.random(),t=e<.1?e<.09?"e"+Math.floor(200*e):"b":"o";this.mDFPParams.setAdxRandomNumber(t),this.mDFPParams.setAdxHour((new Date).getUTCHours().toString())},e.prototype.updateAdomikParametersToDFPParams=function(e){if(this.mType!=a.PlacementType.PIXEL&&e.getType()==a.TagType.DISPLAY&&this.mTemplate.isAdomikEnable()){this.mDFPParams.setAdomikRandomNumber(a.Utility.getInstance().adomikRandomAdGroup()),this.mDFPParams.setAdomikHour((new Date).getUTCHours().toString());var t=Math.random(),i=t<.1?t<.09?"e"+Math.floor(200*t):"b":"o";this.mDFPParams.setAdxRandomNumber(i),this.mDFPParams.setAdxHour((new Date).getUTCHours().toString())}},e.prototype.getLogParams=function(e,t){var i={publisherType:this.mPublisherType,pageId:""+this.mTemplate.getPageId(),rnd:""+this.mRandomNumber,apiKey:this.mTemplate.getAPIKey(),placementId:""+this.mId,placementType:this.mType,tagId:""+e.getId(),tagType:e.getType(),logType:t,documentType:this.mTemplate.getDocumentType(),device:this.mTemplate.getDeviceType(),sitename:"",adsize:"",dfpKval:"",atStatus:this.mTemplate.getAutoTargetStatus(),refererUrl:encodeURIComponent(this.mTemplate.getReferer()),pageUrl:encodeURIComponent(this.mTemplate.getUrl()),renderType:""};if(this.mType==a.PlacementType.HTML&&(i.renderType=this.mSelector.getInsertionType(),e.getType()==a.TagType.DISPLAY)){this.updateViewabilityAttributesToDFPParams(e),this.updateAdPositionParametersToDFPParams(e),i.sitename=e.getSiteDFPKeyName()+"/"+e.getTargetName(),i.adsize=e.getAdSize();var r={},s=this.getTickerValues(e),o=this.mTemplate.getParametersForDFP();r=s.length>0?n({},this.mDFPParams,this.mPublisherKval,this.mDFPSSPParams,o,{t:s}):n({},this.mDFPParams,this.mPublisherKval,this.mDFPSSPParams,o);var l="";for(var u in r)"tl"!=u&&"rnd"!=u&&"pageId"!=u&&"dt"!=u&&"d"!=u&&"referer"!=u&&(l+=u+":"+r[u]+";");i.dfpKval=l.length>0?encodeURIComponent(l.replace(/;\s*$/,"")):l}return i},e.prototype.prepareDFPParams=function(e){if((this.mDFPSSPParams={},!e.isOOPUnit())&&(this.updateViewabilityAttributesToDFPParams(e),this.updateAdPositionParametersToDFPParams(e),null!=u.SSP.getInstance())){var t=u.SSP.getInstance().getBids(this.mICDivId);if(t){if(t.a9)for(var i in t.a9)this.mDFPSSPParams[i]=""+t.a9[i];if(t.appnexus)for(var i in t.appnexus)this.mDFPSSPParams[i]=""+t.appnexus[i];if(t.sortable)for(var i in t.sortable)this.mDFPSSPParams[i]=""+t.sortable[i];if(t.rubicon)for(var i in t.rubicon)this.mDFPSSPParams[i]=""+t.rubicon[i];if(t.index)for(var i in t.index)this.mDFPSSPParams[i]=""+t.index[i];if(t.pubmatic)for(var i in t.pubmatic)this.mDFPSSPParams[i]=""+t.pubmatic[i];if(t.criteo)for(var i in t.criteo)this.mDFPSSPParams[i]=""+t.criteo[i];if(t.openx)for(var i in t.openx)this.mDFPSSPParams[i]=""+t.openx[i];if(t.markit)for(var i in t.markit)this.mDFPSSPParams[i]=""+t.markit[i];var n=this.mTemplate.getSSPConfig();if(n.ias&&n.ias.IsEnabled){var r={};if(r=t.ias?t.ias:this.mTemplate.getIASData())for(var i in r)"0"==r[i]?this.mDFPSSPParams[i]=""+r[i]:this.mDFPSSPParams[i]=r[i];"abs"in this.mDFPSSPParams||(this.mDFPSSPParams.abs="-1"),"fr"in this.mDFPSSPParams||(this.mDFPSSPParams.fr="-1")}}}},e.prototype.validateSSP=function(e,t){var i=this;if(this.mTemplate.getGDPRStatus()==a.GDPRStatus.NOT_APPLICABLE){var n=(new Date).valueOf()-this.mTemplate.getLastDFPCallTime();n0&&!this.mTemplate.eligibleForBottomZoning(this)){e.disableBottomZoning();var t=e.getDAT(),i=t.getTargeting();t.destroy(),t=this.createDAT(e),e.setDAT(t),t.setTargeting(i),this.mDFPParams.setTarget(e.getTargetName())}this.prepareDFPParams(e);var r=e.getDAT(),s=this.getTickerValues(e),l=this.mTemplate.getParametersForDFP();if(s.length>0?r.setTargeting(n({},this.mDFPParams,this.mPublisherKval,this.mDFPSSPParams,l,{t:s})):r.setTargeting(n({},this.mDFPParams,this.mPublisherKval,this.mDFPSSPParams,l)),this.mTemplate.getDocumentType()==a.DocumentType.IFRAME){r.setTargetingByKey("rft",[""])}if("ADVANCE"==this.mPublisherType&&"FAILED"==this.mTemplate.getTargetStatus(e.getTargetName()))return!1;this.mTemplate.isSingleRequestEnabled()?this.mLoadType==a.LoadType.ON_VIEW?this.mTemplate.readyToRender(this.mICDivId,this.mLoadType,e):this.mTemplate.readyToRender(this.mICDivId,this.mLoadType):r.render(),this.mTemplate.setLastDFPCallTime((new Date).valueOf()),a.Utility.getInstance().pushToReportLog(this.getLogParams(e,o.SERVED)),e.isOOPUnit()||this.executeTargetRules(e)},e.prototype.refreshDisplayTag=function(e){this.prepareDFPParams(e);var t=e.getDAT();t.clearTargeting();var i=this.getTickerValues(e),s=this.mTemplate.getParametersForDFP();i.length>0?t.setTargeting(n({},this.mDFPParams,this.mPublisherKval,this.mDFPSSPParams,s,{t:i})):t.setTargeting(n({},this.mDFPParams,this.mPublisherKval,this.mDFPSSPParams,s)),this.mTemplate.isSingleRequestEnabled()?this.mTemplate.readyToRefresh(this.mICDivId):t.refresh(),this.mTemplate.setLastDFPCallTime((new Date).valueOf()),a.Utility.getInstance().pushToReportLog(this.getLogParams(e,o.SERVED)),this.mDATAdRefreshTimerStartTime=0,this.mDATAdRefreshTimerStopTime=0,this.mDATNotInViewTime=0,this.mDATInViewTime=0,this.mDATSlotRendered=!1,this.mDATAdRefreshState=r.STOP,this.mIsDATAdIndirectAdvertiser=!1,this.mDATAdRefreshTimerInstance},e.prototype.dropTag=function(e,t){t&&a.Utility.ICJQuery(document).trigger("Callback_Preload_"+this.mRandomNumber);var i=this.replaceMacros(e.getScript(),e);if(this.mType==a.PlacementType.PIXEL)a.Utility.ICJQuery("head").prepend(i),a.Utility.getInstance().pushToReportLog(this.getLogParams(e,o.SERVED));else{if(void 0==this.mSelector)return;switch(e.getType()){case a.TagType.CUSTOM:a.Utility.ICJQuery("#"+this.mICDivId).append(i),a.Utility.getInstance().pushToReportLog(this.getLogParams(e,o.SERVED));break;case a.TagType.DISPLAY:t?this.validateSSP(e,!1):this.validateSSP(e,!0);break;case a.TagType.NATIVE:case a.TagType.VIDEO:}}t&&(a.Utility.ICJQuery(document).trigger("Callback_Postload_"+this.mRandomNumber),a.Utility.ICJQuery(document).trigger("Callback_OnViewport_"+this.mRandomNumber,[this.mICDivId])),this.mState=a.PlacementState.LOADED},e.prototype.saveToStorage=function(e,t){var i=a.Utility.getInstance();i.isLocalStorageSupported(navigator.platform)?i.saveToLocalStorage(e,t):i.saveToCookie(e,t)},e.prototype.getFromStorage=function(e){var t=a.Utility.getInstance();return t.isLocalStorageSupported(navigator.platform)?t.getFromLocalStorage(e):t.getFromCookie(e)},e.prototype.deleteFromStorage=function(e){var t=a.Utility.getInstance();t.isLocalStorageSupported(navigator.platform)?t.deleteFromLocalStorage(e):t.deleteFromCookie(e)},e.prototype.displayTag=function(e){var t=this;if(this.mState=a.PlacementState.INITIALIZED,this.mLastRenderedTagType=this.mTagToRender.getType(),this.mType==a.PlacementType.HTML){if(e&&!a.Utility.ICJQuery("#"+this.mICDivId).length){var i=this.prepareCustomDiv();this.dropCustomDiv(i)}this.mTagToRender.getType()==a.TagType.DISPLAY&&this.mTemplate.isSingleRequestEnabled()&&(e?this.mLoadType!=a.LoadType.ON_VIEW&&this.mTemplate.addTagToRenderArray(this.mICDivId,this.mTagToRender,this.mLoadType):this.mTemplate.addTagToRefreshArray(this.mICDivId,this.mTagToRender))}switch(this.setTargetToDFPParams(this.mTagToRender),this.updateAdxParametersToDFPParams(),this.updateAdomikParametersToDFPParams(this.mTagToRender),this.setAdRefreshParameters(),e&&a.Utility.getInstance().pushToReportLog(this.getLogParams(this.mTagToRender,o.PROBABLE)),this.mLoadType){case a.LoadType.ON_LOAD:"complete"==document.readyState?this.dropTag(this.mTagToRender,e):a.Utility.ICJQuery(window).on("load",function(){t.dropTag(t.mTagToRender,e)});break;case a.LoadType.ON_VIEW:var n=a.Utility.getInstance();n.isInViewport("#"+this.mICDivId)?this.dropTag(this.mTagToRender,e):a.Utility.ICJQuery(document).on("scroll."+this.mRandomNumber,function(i){n.isInViewport("#"+t.mICDivId)&&(a.Utility.ICJQuery(document).off("scroll."+t.mRandomNumber),t.dropTag(t.mTagToRender,e))});break;case a.LoadType.ON_REALTIME:case a.LoadType.CUSTOM:this.dropTag(this.mTagToRender,e)}},e.prototype.getAbsolutePosition=function(e){var t=e.getBoundingClientRect();return null==t||void 0==t||0==t.top&&0==t.left&&0==t.right&&0==t.bottom?null:void 0!==pageXOffset?Math.round(t.left+pageXOffset)+"x"+Math.round(t.top+pageYOffset):Math.round(t.left+document.documentElement.scrollLeft)+"x"+Math.round(t.top+document.documentElement.scrollTop)},e.prototype.getRelativePosition=function(e){var t=e.getBoundingClientRect();return null==t||void 0==t||0==t.top&&0==t.left&&0==t.right&&0==t.bottom?null:Math.round(t.left)+"x"+Math.round(t.top)},e.prototype.getBrowserSize=function(){return a.Utility.getInstance().clientWindowWidth()+"x"+a.Utility.getInstance().clientWindowHeight()},e.prototype.prepareAdPositionsParams=function(){var e=null,t=null,i=null;if(this.mTemplate.getDocumentType()==a.DocumentType.PAGE){e=this.getBrowserSize();var n=document.getElementById(this.mICDivId),r=this.getAbsolutePosition(n),s=this.getRelativePosition(n);r&&(t=r),s&&(i=s)}return{browserSize:e,absolutePosition:t,relativePosition:i}},e.prototype.getVisibleAreaPercentage=function(e,t,i){var n=e.getBoundingClientRect(),r=a.Utility.getInstance().clientWindowHeight(),s=a.Utility.getInstance().clientWindowWidth(),o=n.top+Number(i),l=n.left+Number(t),u=n.top<0?0:n.top,c=n.left<0?0:n.left;u=u>r?r:u,c=c>s?s:c;var d=o<0?0:o,p=l<0?0:l;return((d=d>r?r:d)-u)*((p=p>s?s:p)-c)/(Number(i)*Number(t))*100},e.prototype.calculateViewabilityAttributes=function(){var e="300x250",t=this.getNonNullPrimaryAdSize(),i=document.getElementById(this.mICDivId);t.indexOf("x")>=0&&!isNaN(+t.split("x")[0])&&!isNaN(+t.split("x")[1])&&(e=t);var n=e.split("x")[0],r=e.split("x")[1];i.setAttribute("style","display: block; min-width: "+n+"px; min-height: "+r+"px;");var s=this.getVisibleAreaPercentage(i,+n,+r);i.setAttribute("style","");var o=0;return s>=a.Constant.FOLDPOSITION_TOLERANCE&&(o=1),{foldPosition:o,visiblePercentage:10*Math.ceil(s/10)}},e.prototype.initialiseObject=function(e){var t="0";try{this.mICDivId="investingchannel_div_"+this.mRandomNumber,t="1",this.mStorageKey="IC_Placement_"+this.mId,t="2",this.mState=a.PlacementState.UNKNOWN,t="3",this.mDFPParams=new a.DFPPlacementParams,t="4",this.mDFPParams.setRandomNumber(this.mRandomNumber),t="5",this.mDFPParams.setTile(e),t="6",this.mDFPParams.setPosition(this.mTemplate.calculatePosition(this.getNonNullPrimaryAdSize(),this.mRandomNumber)),t="7";for(var i=0;i1&&n.getType()==a.TagType.DISPLAY&&n.enableBottomZoning(),t="9."+i,n.getType()==a.TagType.DISPLAY&&(n.setDAT(this.createDAT(n)),t="10."+i,n.getSizeMapping()&&n.getDAT().defineSizeMapping(n.getSizeMapping())),t="11."+i,n.getPublisherKVal()){var r=n.getPublisherKVal().split("&");t="12."+i;for(var s=0;s0?this.mDATAdRefreshTimerStartTime-this.mDATAdRefreshTimerStopTime:0;this.mDATNotInViewTime+=t;var i=this.mTemplate.getAutoRefreshConfig().RefreshTime,n=this.mTemplate.getAutoRefreshConfig().OutOfViewTime;this.mIsDATAdIndirectAdvertiser&&(i=this.mTemplate.getAutoRefreshConfig().RefreshTimeIndirect,n=this.mTemplate.getAutoRefreshConfig().OutOfViewTimeIndirect),t>n?(this.mDATRefreshType=a.RefreshType.ACTIVEWINDOW,this.displayTag(!1)):this.mDATAdRefreshTimerInstance=setTimeout(function(){e.mDATRefreshType=a.RefreshType.TIME,e.displayTag(!1)},i-this.mDATInViewTime),this.mDATAdRefreshState=r.START}},e.prototype.stopRefreshTimer=function(){this.mDATAdRefreshState==r.START&&(this.mDATAdRefreshTimerStopTime=(new Date).valueOf(),this.mDATInViewTime=this.mDATInViewTime+(this.mDATAdRefreshTimerStopTime-this.mDATAdRefreshTimerStartTime),clearInterval(this.mDATAdRefreshTimerInstance),this.mDATAdRefreshState=r.STOP)},e.prototype.evaluateAdRefresh=function(e){if(this.mIsAutoRefreshEnabled&&2==this.mDATRenderedAdSize.length){var t=this.mDATRenderedAdSize[0]+"x"+this.mDATRenderedAdSize[1];if(!(this.mDFPParams.getAdRefreshCount()>=this.mTemplate.getAutoRefreshConfig().MaxRefreshCount||0!=this.mTemplate.getAutoRefreshConfig().EnabledAdSizes.length&&-1===this.mTemplate.getAutoRefreshConfig().EnabledAdSizes.indexOf(t))){var i=this.mTemplate.getAutoRefreshConfig().ViewabilityThresholdPercentage;if(this.mIsDATAdIndirectAdvertiser&&(i=this.mTemplate.getAutoRefreshConfig().ViewabilityThresholdPercentageIndirect),"300x1050"==t){if(!this.mIsDATAdIndirectAdvertiser)return void(this.mIsAutoRefreshEnabled=!1);i*=.6}e>=i?this.startRefreshTimer():this.stopRefreshTimer()}}},e.prototype.windowEventHandler=function(e){if(this.mIsAutoRefreshEnabled){var t=document.getElementById(this.mICDivId);if(t)if(e==s.BLUR)this.mActiveBrowserWindow=!1,this.mDATSlotRendered&&this.evaluateAdRefresh(0);else if(e==s.FOCUS&&(this.mActiveBrowserWindow=!0),this.mDATSlotRendered){var i=this.getVisibleAreaPercentage(t,this.mDATRenderedAdSize[0],this.mDATRenderedAdSize[1]);this.evaluateAdRefresh(i)}}},e.prototype.registerWindowEvent=function(){var e=this;this.mTemplate.getDocumentType()==a.DocumentType.PAGE&&(a.Utility.window.attachEvent?(a.Utility.window.attachEvent("onscroll",function(){e.windowEventHandler(s.SCROLL)},!1),a.Utility.window.attachEvent("onresize",function(){e.windowEventHandler(s.RESIZE)},!1),a.Utility.window.attachEvent("onfocus",function(){e.windowEventHandler(s.FOCUS)},!1),a.Utility.window.attachEvent("onblur",function(){e.windowEventHandler(s.BLUR)},!1)):(a.Utility.window.addEventListener("scroll",function(){e.windowEventHandler(s.SCROLL)},!1),a.Utility.window.addEventListener("resize",function(){e.windowEventHandler(s.RESIZE)},!1),a.Utility.window.addEventListener("focus",function(){e.windowEventHandler(s.FOCUS)},!1),a.Utility.window.addEventListener("blur",function(){e.windowEventHandler(s.BLUR)},!1)))},e.prototype.addToSSPAdSizes=function(e){this.mDATSSPAdSizes.indexOf(e)>=0||(this.mDATSSPAdSizes=this.mDATSSPAdSizes.concat(e.split(",")))},e.prototype.executeTargetRules=function(e){if(e.isForcedTargetEnabled()||null==this.mTemplate.getGlobalTarget())if(null!=e.getTargetRule())this.mTemplate.executeTargetRules(e.getTargetName(),e.getTargetRule());else{var t=this.mTemplate.getTargetData(e.getTargetName());null!=t&&this.mTemplate.executeTargetRules(e.getTargetName(),t.rules)}else this.mTemplate.dropGlobalTargetRules()},e.prototype.eventDATSlotRenderEnded=function(e){this.mDATSlotRendered=!e.isEmpty,this.mDATRenderedAdSize=e.size,this.mTemplate.getDocumentType()!=a.DocumentType.PAGE?this.mIsAutoRefreshEnabled=!1:(this.mIsDATAdIndirectAdvertiser=this.mTemplate.getAutoRefreshConfig().AdvertisersIndirect.indexOf(e.advertiserId)>=0,this.mTemplate.getAutoRefreshConfig().DisabledCampaigns.indexOf(e.campaignId)>=0&&(this.mIsAutoRefreshEnabled=!1))},e.prototype.eventDATImpressionViewable=function(e,t){var i=document.getElementById(this.mICDivId);if(i&&(a.Utility.getInstance().pushToReportLog(this.getLogParams(e,o.VIEWED)),this.mDATSlotRendered&&this.mActiveBrowserWindow&&void 0!==this.mDATRenderedAdSize&&this.mDATRenderedAdSize.length>1)){var n=i.querySelectorAll("iframe[id^=google_ads_iframe_]");if(!n||n.length<1)return;var r=n[0];if(r){var s=this.getVisibleAreaPercentage(r,this.mDATRenderedAdSize[0],this.mDATRenderedAdSize[1]);this.evaluateAdRefresh(Math.round(s))}}},e.prototype.eventDATSlotVisibilityChanged=function(e){this.mDATSlotRendered&&this.mActiveBrowserWindow&&this.evaluateAdRefresh(e.inViewPercentage)},e.prototype.getId=function(){return this.mId},e.prototype.getState=function(){return this.mState},e.prototype.getSelector=function(){return this.mSelector},e.prototype.isParent=function(){return this.mIsParent},e.prototype.makeChild=function(){this.mIsParent=!1},e.prototype.getPriority=function(){return this.mPriority},e.prototype.getLoadType=function(){return this.mLoadType},e.prototype.getDivId=function(){return this.mICDivId},e.prototype.getPublisherType=function(){return this.mPublisherType},e.prototype.isEligibleForRendering=function(e){if(this.mState!=a.PlacementState.UNKNOWN&&this.mState!=a.PlacementState.SELECTOR_NOT_LOADED&&this.mState!=a.PlacementState.SELECTOR_LOADED)return!1;if(e&&this.mLoadType==a.LoadType.CUSTOM)return!1;if(void 0!=this.mTargeting&&!this.mTargeting.isIsPlacementEligibleForRendering())return!1;if(this.mFrequency){var t=this.getFromStorage(this.mStorageKey);if(t){t=JSON.parse(t);var i=new Date(t.dateTime);switch(this.mFrequency.getUnit()){case a.FrequencyCapUnit.MILLISECONDS:i.setMilliseconds(i.getMilliseconds()+this.mFrequency.getDuration());break;case a.FrequencyCapUnit.SECONDS:i.setSeconds(i.getSeconds()+this.mFrequency.getDuration());break;case a.FrequencyCapUnit.MINUTES:i.setMinutes(i.getMinutes()+this.mFrequency.getDuration());break;case a.FrequencyCapUnit.HOURS:i.setHours(i.getHours()+this.mFrequency.getDuration());break;case a.FrequencyCapUnit.DAYS:i.setDate(i.getDate()+this.mFrequency.getDuration());break;case a.FrequencyCapUnit.WEEKS:i.setDate(i.getDate()+7*this.mFrequency.getDuration());break;case a.FrequencyCapUnit.MONTHS:i.setMonth(i.getMonth()+this.mFrequency.getDuration());break;case a.FrequencyCapUnit.YEARS:i.setFullYear(i.getFullYear()+this.mFrequency.getDuration())}if(i>new Date){if(Number(t.count)>=this.mFrequency.getCap())return this.mState=a.PlacementState.CAPPING_EXPIRED,!1}else this.deleteFromStorage(this.mStorageKey)}}if(this.mType!=a.PlacementType.HTML)return!0;if("ADVANCE"==this.mPublisherType&&"FAILED"==this.mTemplate.getTargetStatus(this.mTags[0].getTargetName()))return!1;if(!this.mIsParent)return!0;var n=a.Utility.getInstance();if(void 0!=this.mSelector&&n.isSelectorLoaded(this.mSelector.getIdentifier(),this.mTemplate.getPageId(),this.mId,this.mRandomNumber)){if(this.mState=a.PlacementState.SELECTOR_LOADED,!a.Utility.ICJQuery("#"+this.mICDivId).length){var r=this.prepareCustomDiv();this.dropCustomDiv(r)}return!0}return this.mState=a.PlacementState.SELECTOR_NOT_LOADED,this.mLoadType==a.LoadType.CUSTOM&&this.mTemplate.pushPlacementErrorLog(this.mId,this.mType,this.mRandomNumber,this.getPublisherType(),"SELECTOR NOT LOADED"),!1},e.prototype.isEligibleForRefreshing=function(){return(this.mState==a.PlacementState.LOADED||this.mState==a.PlacementState.VIEWED)&&this.mType==a.PlacementType.HTML},e.prototype.render=function(){if(this.mFrequency){var e=this.getFromStorage(this.mStorageKey),t={};if(e){e=JSON.parse(decodeURIComponent(e));var i=new Date(e.dateTime),n=Number(e.count);++n,t.count=n,t.dateTime=i}else t.count=1,t.dateTime=new Date;this.saveToStorage(this.mStorageKey,JSON.stringify(t))}this.displayTag(!0)},e.prototype.getLastRenderedTagType=function(){return this.mLastRenderedTagType},e.prototype.refresh=function(){this.mDATRefreshType=a.RefreshType.MANUAL,this.displayTag(!1)},e.prototype.clear=function(){a.Utility.ICJQuery("#"+this.mICDivId).length&&a.Utility.ICJQuery("#"+this.mICDivId).remove()},e.prototype.destroy=function(){for(var e=0,t=this.mTags;e0;)InvestingChannelQueue.shift()();n.queueProcessed();!function(e,t){e.push=function(i){Array.prototype.push.call(e,i),t(e)}}(InvestingChannelQueue,function(e){for(;InvestingChannelQueue.length>0;)InvestingChannelQueue.shift()()})}!function(e){var t=function(){function e(){this.mTemplates=[],this.mTemplateConfig={}}return e.newPage=function(t,i){return void 0==n&&(r=t,n=new e),n.loadPage(i)},e.prototype.loadPage=function(e){var t=n.getTemplateForUrl(window.location.href);if(null==t){n.mTemplate&&(this.mTemplateConfig=n.mTemplate.getConfig());var i=void 0;e&&(i=e),n.mTemplate=new s.Template(r,i),n.mTemplates.push(n.mTemplate),this.mTemplateConfig&&n.mTemplate.setConfig(this.mTemplateConfig)}else n.mTemplate=t,n.mTemplate.calculateReferer(),n.mTemplate.calculateReferrerType();return n},e.prototype.getTemplateForUrl=function(e){for(var t=0;t0&&(InvestingChannelQueue.shift()(),n.isAPIReady()?a():n.registerAPIReadyCallback(a))}):console.warn("IC: Not able to process the queue....")},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=function(){function e(e,t){this.mCallbackid=e.callbackid,this.mScript=e.script,this.mType=e.type,this.registerEvent(t)}return e.prototype.registerEvent=function(e){var t=this;switch(this.mType){case n.CallbackType.PRELOAD:n.Utility.ICJQuery(document).on("Callback_Preload_"+e,function(){return t.loadScript()});break;case n.CallbackType.POSTLOAD:n.Utility.ICJQuery(document).on("Callback_Postload_"+e,function(){return t.loadScript()});break;case n.CallbackType.ON_VIEWPORT:n.Utility.ICJQuery(document).on("Callback_OnViewport_"+e,function(e,i){var r=n.Utility.getInstance();r.isInViewport("#"+i)?t.loadScript():n.Utility.ICJQuery(document).on("resize scroll",function(){r.isInViewport("#"+i)&&(n.Utility.ICJQuery(document).off("resize scroll"),t.loadScript())})});break;case n.CallbackType.ON_DOMLOAD:"complete"===document.readyState?this.loadScript():window.onload=function(){t.loadScript()};break;case n.CallbackType.ON_DOMREADY:n.Utility.ICJQuery(document).ready(function(){return t.loadScript()});break;case n.CallbackType.ON_DOMUNLOAD:n.Utility.ICJQuery(window).on("unload",function(){return t.loadScript()})}},e.prototype.loadScript=function(){n.Utility.getInstance().executeJS(this.mScript)},e.prototype.getType=function(){return this.mType},e.prototype.getScript=function(){return this.mScript},e}();t.default=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(8),r=i(0),s=i(2);t.gaNewElem={},t.gaElems={};var o=function(){function e(){var e=this;this.mErrors=[],this.mReports=[],this.mGDPRStatus=s.GDPRStatus.NOT_APPLICABLE,r.Utility.ICJQuery(window).on("unload",function(){return e.postLogsToServer()}),setInterval(function(){e.postLogsToServer()},1e3)}return e.getInstance=function(){return this.mUtil||(this.mUtil=new e),this.mUtil},e.prototype.setGDPRStatus=function(e){this.mGDPRStatus=e},e.prototype.executeJS=function(t){e.ICJQuery.globalEval(t)},e.prototype.isSelectorLoaded=function(t,i,n,r){return!!e.ICJQuery("#investingchannel_div_"+r).length||this.getEmptyElementsForSelector(t,i,n).length>0},e.prototype.getEmptyElementsForSelector=function(e,t,i){for(var n=[],s=document.querySelectorAll(e),o=0;o-1){if(a[u].getAttribute("ic_pageId")!=t){l=!0;break}if(a[u].getAttribute("ic_placementid")==""+i){l=!0;break}}l||n.push(s[o])}return n},e.prototype.executeOnLoad=function(e){try{var t=document.readyState;if("interactive"==t||"complete"==t)return void this.executeJS(e);window.addEventListener("DOMContentLoaded",this.executeJS(e),!1)}catch(t){this.executeJS(e)}},e.prototype.clientWindowHeight=function(){var e=0;return"number"==typeof window.innerHeight?e=window.innerHeight:document.documentElement&&document.documentElement.clientHeight?e=document.documentElement.clientHeight:document.body&&document.body.clientHeight&&(e=document.body.clientHeight),e},e.prototype.clientWindowWidth=function(){var e=0;return"number"==typeof window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(e=document.body.clientWidth),e},e.prototype.isInViewport=function(t){var i=e.ICJQuery(t);if(!i.length)return!1;var n=i[0];if(null===n)return null;var r=n.getBoundingClientRect();return r.bottom>=0&&r.right>=0&&r.top<=this.clientWindowHeight()&&r.left<=this.clientWindowWidth()},e.prototype.getFromLocalStorage=function(e){return localStorage.getItem(e)},e.prototype.getFromSessionStorage=function(e){return sessionStorage.getItem(e)},e.prototype.getFromCookie=function(e){var t=("; "+document.cookie).split("; "+e+"=");return 2==t.length?t.pop().split(";").shift():""},e.prototype.isCookieExists=function(e){return 2==("; "+document.cookie).split("; "+e+"=").length},e.prototype.deleteFromLocalStorage=function(e){localStorage.removeItem(e)},e.prototype.deleteFromSessionStorage=function(e){sessionStorage.removeItem(e)},e.prototype.deleteFromCookie=function(e){document.cookie=e+"=;expires=Fri, 02-Jan-1970 00:00:00 GMT;path=/"},e.prototype.saveToLocalStorage=function(e,t){localStorage.setItem(e,t)},e.prototype.saveToSessionStorage=function(e,t){sessionStorage.setItem(e,t)},e.prototype.saveToCookie=function(e,t,i){document.cookie=void 0==i?e+"="+t+";path=/":e+"="+t+"; max-age="+i+";path=/"},e.prototype.getFromQueryString=function(e,t){var i=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&]*)|&|$)").exec(i);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},e.prototype.pushToErrorLog=function(e){this.mErrors.push(e)},e.prototype.pushToReportLog=function(e){this.mReports.push(e)},e.prototype.isLocalStorageSupported=function(e){if(void 0==window.localStorage)return!1;return!/(iPhone|iPad|iPod)/i.test(e)},e.prototype.adomikRandomAdGroup=function(){var e=Math.random();switch(!1){case!(e<.09):return"ad_ex"+Math.floor(100*e);case!(e<.1):return"ad_bc";default:return"ad_opt"}},e.prototype.removeDuplicateFromArray=function(e){if(!e)return e;for(var t=[],i=[],n=0;n=0||(t.push(e[n].toLowerCase()),i.push(e[n]));return i},e.prototype.getTopWindowDomain=function(){try{return r.Utility.window.top.location.hostname}catch(e){}try{return document.referrer.match(/:\/\/(.[^/]+)/)[1]}catch(e){}return""},e.prototype.prepareGALabel=function(e,t,i){return(e||"")+" $# "+(t||"")+" $# "+i},e.prototype.initializeGA=function(){var e=new Date;!function(t,i,n,r,s,o,a){t.GoogleAnalyticsObject=s,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*e,o=i.createElement(n),a=i.getElementsByTagName(n)[0],o.async=1,o.src="//www.google-analytics.com/analytics.js",a.parentNode.insertBefore(o,a)}(window,document,"script",0,"ga",t.gaNewElem,t.gaElems)},e.prototype.ic_ga_event=function(e,t){ga("create","UA-44058249-9","auto","UAT5"),ga("UAT5.send",{hitType:"event",eventCategory:"UAT 5 v1.1",eventAction:e,eventLabel:t})},e.prototype.postLogsToServer=function(){var t=this;if(this.mReports.length>0){var i=this.mReports;this.mReports=[],e.ICJQuery.post({url:r.Constant.UAT_LOG_REPORT_URL,async:!0,data:JSON.stringify(i),contentType:"application/json",xhrFields:{withCredentials:!0},beforeSend:function(e){e.setRequestHeader("GDPRStatus",t.mGDPRStatus)}})}if(this.mErrors.length>0){var n=this.mErrors;this.mErrors=[],e.ICJQuery.post({url:r.Constant.UAT_LOG_ERROR_URL,async:!0,data:JSON.stringify(n),contentType:"application/json",xhrFields:{withCredentials:!0},beforeSend:function(e){e.setRequestHeader("GDPRStatus",t.mGDPRStatus)}})}},e.ICJQuery=n.noConflict(),e.window=window,e}();t.default=o},function(e,t,i){var n; /*! * jQuery JavaScript Library v3.3.1 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2018-01-20T17:24Z */ /*! * jQuery JavaScript Library v3.3.1 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright JS Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2018-01-20T17:24Z */ !function(t,i){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(t)}("undefined"!=typeof window?window:this,function(i,r){"use strict";var s=[],o=i.document,a=Object.getPrototypeOf,l=s.slice,u=s.concat,c=s.push,d=s.indexOf,p={},h=p.toString,m=p.hasOwnProperty,f=m.toString,g=f.call(Object),y={},S=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},T={type:!0,src:!0,noModule:!0};function b(e,t,i){var n,r=(t=t||o).createElement("script");if(r.text=e,i)for(n in T)i[n]&&(r[n]=i[n]);t.head.appendChild(r).parentNode.removeChild(r)}function I(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[h.call(e)]||"object":typeof e}var P=function(e,t){return new P.fn.init(e,t)},A=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function E(e){var t=!!e&&"length"in e&&e.length,i=I(e);return!S(e)&&!v(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}P.fn=P.prototype={jquery:"3.3.1",constructor:P,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=P.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return P.each(this,e)},map:function(e){return this.pushStack(P.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i+~]|"+U+")"+U+"*"),W=new RegExp("="+U+"*([^\\]'\"]*?)"+U+"*\\]","g"),H=new RegExp(z),q=new RegExp("^"+F+"$"),K={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+U+"*(even|odd|(([+-]|)(\\d*)n|)"+U+"*(?:([+-]|)"+U+"*(\\d+)|))"+U+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+U+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+U+"*((?:-\\d)?\\d*)"+U+"*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,Y=new RegExp("\\\\([\\da-f]{1,6}"+U+"?|("+U+")|.)","ig"),ee=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){p()},re=Se(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{O.apply(R=L.call(b.childNodes),b.childNodes),R[b.childNodes.length].nodeType}catch(e){O={apply:R.length?function(e,t){w.apply(e,L.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function se(e,t,n,r){var s,a,u,c,d,m,y,S=t&&t.ownerDocument,I=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==I&&9!==I&&11!==I)return n;if(!r&&((t?t.ownerDocument||t:b)!==h&&p(t),t=t||h,f)){if(11!==I&&(d=X.exec(e)))if(s=d[1]){if(9===I){if(!(u=t.getElementById(s)))return n;if(u.id===s)return n.push(u),n}else if(S&&(u=S.getElementById(s))&&v(t,u)&&u.id===s)return n.push(u),n}else{if(d[2])return O.apply(n,t.getElementsByTagName(e)),n;if((s=d[3])&&i.getElementsByClassName&&t.getElementsByClassName)return O.apply(n,t.getElementsByClassName(s)),n}if(i.qsa&&!D[e+" "]&&(!g||!g.test(e))){if(1!==I)S=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ie):t.setAttribute("id",c=T),a=(m=o(e)).length;a--;)m[a]="#"+c+" "+ye(m[a]);y=m.join(","),S=$.test(e)&&fe(t.parentNode)||t}if(y)try{return O.apply(n,S.querySelectorAll(y)),n}catch(e){}finally{c===T&&t.removeAttribute("id")}}}return l(e.replace(V,"$1"),t,n,r)}function oe(){var e=[];return function t(i,r){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=r}}function ae(e){return e[T]=!0,e}function le(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var i=e.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=t}function ce(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ae(function(t){return t=+t,ae(function(i,n){for(var r,s=e([],i.length,t),o=s.length;o--;)i[r=s[o]]&&(i[r]=!(n[r]=i[r]))})})}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=se.support={},s=se.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=se.setDocument=function(e){var t,r,o=e?e.ownerDocument||e:b;return o!==h&&9===o.nodeType&&o.documentElement?(m=(h=o).documentElement,f=!s(h),b!==h&&(r=h.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ne,!1):r.attachEvent&&r.attachEvent("onunload",ne)),i.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),i.getElementsByTagName=le(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),i.getElementsByClassName=Q.test(h.getElementsByClassName),i.getById=le(function(e){return m.appendChild(e).id=T,!h.getElementsByName||!h.getElementsByName(T).length}),i.getById?(n.filter.ID=function(e){var t=e.replace(Y,ee);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var i=t.getElementById(e);return i?[i]:[]}}):(n.filter.ID=function(e){var t=e.replace(Y,ee);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var i,n,r,s=t.getElementById(e);if(s){if((i=s.getAttributeNode("id"))&&i.value===e)return[s];for(r=t.getElementsByName(e),n=0;s=r[n++];)if((i=s.getAttributeNode("id"))&&i.value===e)return[s]}return[]}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,s=t.getElementsByTagName(e);if("*"===e){for(;i=s[r++];)1===i.nodeType&&n.push(i);return n}return s},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},y=[],g=[],(i.qsa=Q.test(h.querySelectorAll))&&(le(function(e){m.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+U+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+U+"*(?:value|"+k+")"),e.querySelectorAll("[id~="+T+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+U+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(i.matchesSelector=Q.test(S=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&le(function(e){i.disconnectedMatch=S.call(e,"*"),S.call(e,"[s!='']:x"),y.push("!=",z)}),g=g.length&&new RegExp(g.join("|")),y=y.length&&new RegExp(y.join("|")),t=Q.test(m.compareDocumentPosition),v=t||Q.test(m.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return d=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e===h||e.ownerDocument===b&&v(b,e)?-1:t===h||t.ownerDocument===b&&v(b,t)?1:c?N(c,e)-N(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var i,n=0,r=e.parentNode,s=t.parentNode,o=[e],a=[t];if(!r||!s)return e===h?-1:t===h?1:r?-1:s?1:c?N(c,e)-N(c,t):0;if(r===s)return ce(e,t);for(i=e;i=i.parentNode;)o.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;o[n]===a[n];)n++;return n?ce(o[n],a[n]):o[n]===b?-1:a[n]===b?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&p(e),t=t.replace(W,"='$1']"),i.matchesSelector&&f&&!D[t+" "]&&(!y||!y.test(t))&&(!g||!g.test(t)))try{var n=S.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==h&&p(e),v(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==h&&p(e);var r=n.attrHandle[t.toLowerCase()],s=r&&x.call(n.attrHandle,t.toLowerCase())?r(e,t,!f):void 0;return void 0!==s?s:i.attributes||!f?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},se.escape=function(e){return(e+"").replace(te,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,s=0;if(d=!i.detectDuplicates,c=!i.sortStable&&e.slice(0),e.sort(C),d){for(;t=e[s++];)t===e[s]&&(r=n.push(s));for(;r--;)e.splice(n[r],1)}return c=null,e},r=se.getText=function(e){var t,i="",n=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},(n=se.selectors={cacheLength:50,createPseudo:ae,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&H.test(i)&&(t=o(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Y,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=A[e+" "];return t||(t=new RegExp("(^|"+U+")"+e+"("+U+"|$)"))&&A(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(n){var r=se.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&r.indexOf(i)>-1:"$="===t?i&&r.slice(-i.length)===i:"~="===t?(" "+r.replace(B," ")+" ").indexOf(i)>-1:"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,r){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var u,c,d,p,h,m,f=s!==o?"nextSibling":"previousSibling",g=t.parentNode,y=a&&t.nodeName.toLowerCase(),S=!l&&!a,v=!1;if(g){if(s){for(;f;){for(p=t;p=p[f];)if(a?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;m=f="only"===e&&!m&&"nextSibling"}return!0}if(m=[o?g.firstChild:g.lastChild],o&&S){for(v=(h=(u=(c=(d=(p=g)[T]||(p[T]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===I&&u[1])&&u[2],p=h&&g.childNodes[h];p=++h&&p&&p[f]||(v=h=0)||m.pop();)if(1===p.nodeType&&++v&&p===t){c[e]=[I,h,v];break}}else if(S&&(v=h=(u=(c=(d=(p=t)[T]||(p[T]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===I&&u[1]),!1===v)for(;(p=++h&&p&&p[f]||(v=h=0)||m.pop())&&((a?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++v||(S&&((c=(d=p[T]||(p[T]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[I,v]),p!==t)););return(v-=r)===n||v%n==0&&v/n>=0}}},PSEUDO:function(e,t){var i,r=n.pseudos[e]||n.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return r[T]?r(t):r.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,i){for(var n,s=r(e,t),o=s.length;o--;)e[n=N(e,s[o])]=!(i[n]=s[o])}):function(e){return r(e,0,i)}):r}},pseudos:{not:ae(function(e){var t=[],i=[],n=a(e.replace(V,"$1"));return n[T]?ae(function(e,t,i,r){for(var s,o=n(e,null,r,[]),a=e.length;a--;)(s=o[a])&&(e[a]=!(t[a]=s))}):function(e,r,s){return t[0]=e,n(t,null,s,i),t[0]=null,!i.pop()}}),has:ae(function(e){return function(t){return se(e,t).length>0}}),contains:ae(function(e){return e=e.replace(Y,ee),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:ae(function(e){return q.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(Y,ee).toLowerCase(),function(t){var i;do{if(i=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me(function(){return[0]}),last:me(function(e,t){return[t-1]}),eq:me(function(e,t,i){return[i<0?i+t:i]}),even:me(function(e,t){for(var i=0;i=0;)e.push(n);return e}),gt:me(function(e,t,i){for(var n=i<0?i+t:i;++n1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function Te(e,t,i,n,r){for(var s,o=[],a=0,l=e.length,u=null!=t;a-1&&(s[u]=!(o[u]=d))}}else y=Te(y===o?y.splice(m,y.length):y),r?r(null,o,y,l):O.apply(o,y)})}function Ie(e){for(var t,i,r,s=e.length,o=n.relative[e[0].type],a=o||n.relative[" "],l=o?1:0,c=Se(function(e){return e===t},a,!0),d=Se(function(e){return N(t,e)>-1},a,!0),p=[function(e,i,n){var r=!o&&(n||i!==u)||((t=i).nodeType?c(e,i,n):d(e,i,n));return t=null,r}];l1&&ve(p),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(V,"$1"),i,l0,r=e.length>0,s=function(s,o,a,l,c){var d,m,g,y=0,S="0",v=s&&[],T=[],b=u,P=s||r&&n.find.TAG("*",c),A=I+=null==b?1:Math.random()||.1,E=P.length;for(c&&(u=o===h||o||c);S!==E&&null!=(d=P[S]);S++){if(r&&d){for(m=0,o||d.ownerDocument===h||(p(d),a=!f);g=e[m++];)if(g(d,o||h,a)){l.push(d);break}c&&(I=A)}i&&((d=!g&&d)&&y--,s&&v.push(d))}if(y+=S,i&&S!==y){for(m=0;g=t[m++];)g(v,T,o,a);if(s){if(y>0)for(;S--;)v[S]||T[S]||(T[S]=_.call(l));T=Te(T)}O.apply(l,T),c&&!s&&T.length>0&&y+t.length>1&&se.uniqueSort(l)}return c&&(I=A,u=b),v};return i?ae(s):s}(s,r))).selector=e}return a},l=se.select=function(e,t,i,r){var s,l,u,c,d,p="function"==typeof e&&e,h=!r&&o(e=p.selector||e);if(i=i||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&f&&n.relative[l[1].type]){if(!(t=(n.find.ID(u.matches[0].replace(Y,ee),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(s=K.needsContext.test(e)?0:l.length;s--&&(u=l[s],!n.relative[c=u.type]);)if((d=n.find[c])&&(r=d(u.matches[0].replace(Y,ee),$.test(l[0].type)&&fe(t.parentNode)||t))){if(l.splice(s,1),!(e=r.length&&ye(l)))return O.apply(i,r),i;break}}return(p||a(e,h))(r,t,!f,i,!t||$.test(e)&&fe(t.parentNode)||t),i},i.sortStable=T.split("").sort(C).join("")===T,i.detectDuplicates=!!d,p(),i.sortDetached=le(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),le(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),i.attributes&&le(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ue(k,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),se}(i);P.find=D,P.expr=D.selectors,P.expr[":"]=P.expr.pseudos,P.uniqueSort=P.unique=D.uniqueSort,P.text=D.getText,P.isXMLDoc=D.isXML,P.contains=D.contains,P.escapeSelector=D.escape;var C=function(e,t,i){for(var n=[],r=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&P(e).is(i))break;n.push(e)}return n},x=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},R=P.expr.match.needsContext;function _(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,t,i){return S(t)?P.grep(e,function(e,n){return!!t.call(e,n,e)!==i}):t.nodeType?P.grep(e,function(e){return e===t!==i}):"string"!=typeof t?P.grep(e,function(e){return d.call(t,e)>-1!==i}):P.filter(t,e,i)}P.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?P.find.matchesSelector(n,e)?[n]:[]:P.find.matches(e,P.grep(t,function(e){return 1===e.nodeType}))},P.fn.extend({find:function(e){var t,i,n=this.length,r=this;if("string"!=typeof e)return this.pushStack(P(e).filter(function(){for(t=0;t1?P.uniqueSort(i):i},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,"string"==typeof e&&R.test(e)?P(e):e||[],!1).length}});var L,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(P.fn.init=function(e,t,i){var n,r;if(!e)return this;if(i=i||L,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof P?t[0]:t,P.merge(this,P.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),w.test(n[1])&&P.isPlainObject(t))for(n in t)S(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=o.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):S(e)?void 0!==i.ready?i.ready(e):e(P):P.makeArray(e,this)}).prototype=P.fn,L=P(o);var k=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function F(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}P.fn.extend({has:function(e){var t=P(e,this),i=t.length;return this.filter(function(){for(var e=0;e-1:1===i.nodeType&&P.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(s.length>1?P.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?d.call(P(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(P.uniqueSort(P.merge(this.get(),P(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),P.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,i){return C(e,"parentNode",i)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,i){return C(e,"nextSibling",i)},prevUntil:function(e,t,i){return C(e,"previousSibling",i)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return _(e,"iframe")?e.contentDocument:(_(e,"template")&&(e=e.content||e),P.merge([],e.childNodes))}},function(e,t){P.fn[e]=function(i,n){var r=P.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=P.filter(n,r)),this.length>1&&(U[e]||P.uniqueSort(r),k.test(e)&&r.reverse()),this.pushStack(r)}});var M=/[^\x20\t\r\n\f]+/g;function z(e){return e}function B(e){throw e}function V(e,t,i,n){var r;try{e&&S(r=e.promise)?r.call(e).done(t).fail(i):e&&S(r=e.then)?r.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}P.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return P.each(e.match(M)||[],function(e,i){t[i]=!0}),t}(e):P.extend({},e);var t,i,n,r,s=[],o=[],a=-1,l=function(){for(r=r||e.once,n=t=!0;o.length;a=-1)for(i=o.shift();++a-1;)s.splice(i,1),i<=a&&a--}),this},has:function(e){return e?P.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=o=[],s=i="",this},disabled:function(){return!s},lock:function(){return r=o=[],i||t||(s=i=""),this},locked:function(){return!!r},fireWith:function(e,i){return r||(i=[e,(i=i||[]).slice?i.slice():i],o.push(i),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},P.extend({Deferred:function(e){var t=[["notify","progress",P.Callbacks("memory"),P.Callbacks("memory"),2],["resolve","done",P.Callbacks("once memory"),P.Callbacks("once memory"),0,"resolved"],["reject","fail",P.Callbacks("once memory"),P.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return P.Deferred(function(i){P.each(t,function(t,n){var r=S(e[n[4]])&&e[n[4]];s[n[1]](function(){var e=r&&r.apply(this,arguments);e&&S(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(e,n,r){var s=0;function o(e,t,n,r){return function(){var a=this,l=arguments,u=function(){var i,u;if(!(e=s&&(n!==B&&(a=void 0,l=[i]),t.rejectWith(a,l))}};e?c():(P.Deferred.getStackHook&&(c.stackTrace=P.Deferred.getStackHook()),i.setTimeout(c))}}return P.Deferred(function(i){t[0][3].add(o(0,i,S(r)?r:z,i.notifyWith)),t[1][3].add(o(0,i,S(e)?e:z)),t[2][3].add(o(0,i,S(n)?n:B))}).promise()},promise:function(e){return null!=e?P.extend(e,r):r}},s={};return P.each(t,function(e,i){var o=i[2],a=i[5];r[i[1]]=o.add,a&&o.add(function(){n=a},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"With"](this===s?void 0:this,arguments),this},s[i[0]+"With"]=o.fireWith}),r.promise(s),e&&e.call(s,s),s},when:function(e){var t=arguments.length,i=t,n=Array(i),r=l.call(arguments),s=P.Deferred(),o=function(e){return function(i){n[e]=this,r[e]=arguments.length>1?l.call(arguments):i,--t||s.resolveWith(n,r)}};if(t<=1&&(V(e,s.done(o(i)).resolve,s.reject,!t),"pending"===s.state()||S(r[i]&&r[i].then)))return s.then();for(;i--;)V(r[i],o(i),s.reject);return s.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;P.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&j.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},P.readyException=function(e){i.setTimeout(function(){throw e})};var G=P.Deferred();function W(){o.removeEventListener("DOMContentLoaded",W),i.removeEventListener("load",W),P.ready()}P.fn.ready=function(e){return G.then(e).catch(function(e){P.readyException(e)}),this},P.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--P.readyWait:P.isReady)||(P.isReady=!0,!0!==e&&--P.readyWait>0||G.resolveWith(o,[P]))}}),P.ready.then=G.then,"complete"===o.readyState||"loading"!==o.readyState&&!o.documentElement.doScroll?i.setTimeout(P.ready):(o.addEventListener("DOMContentLoaded",W),i.addEventListener("load",W));var H=function(e,t,i,n,r,s,o){var a=0,l=e.length,u=null==i;if("object"===I(i))for(a in r=!0,i)H(e,t,a,i[a],!0,s,o);else if(void 0!==n&&(r=!0,S(n)||(o=!0),u&&(o?(t.call(e,n),t=null):(u=t,t=function(e,t,i){return u.call(P(e),i)})),t))for(;a1,null,!0)},removeData:function(e){return this.each(function(){Y.remove(this,e)})}}),P.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=$.get(e,t),i&&(!n||Array.isArray(i)?n=$.access(e,t,P.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=P.queue(e,t),n=i.length,r=i.shift(),s=P._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete s.stop,r.call(e,function(){P.dequeue(e,t)},s)),!n&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return $.get(e,i)||$.access(e,i,{empty:P.Callbacks("once memory").add(function(){$.remove(e,[t+"queue",i])})})}}),P.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]+)/i,me=/^$|^module$|\/(?:java|ecma)script/i,fe={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ge(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&_(e,t)?P.merge([e],i):i}function ye(e,t){for(var i=0,n=e.length;i-1)r&&r.push(s);else if(u=P.contains(s.ownerDocument,s),o=ge(d.appendChild(s),"script"),u&&ye(o),i)for(c=0;s=o[c++];)me.test(s.type||"")&&i.push(s);return d}!function(){var e=o.createDocumentFragment().appendChild(o.createElement("div")),t=o.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),y.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",y.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Te=o.documentElement,be=/^key/,Ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Pe=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Ee(){return!1}function De(){try{return o.activeElement}catch(e){}}function Ce(e,t,i,n,r,s){var o,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Ce(e,a,i,n,t[a],s);return e}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=Ee;else if(!r)return e;return 1===s&&(o=r,(r=function(e){return P().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=P.guid++)),e.each(function(){P.event.add(this,t,r,n,i)})}P.event={global:{},add:function(e,t,i,n,r){var s,o,a,l,u,c,d,p,h,m,f,g=$.get(e);if(g)for(i.handler&&(i=(s=i).handler,r=s.selector),r&&P.find.matchesSelector(Te,r),i.guid||(i.guid=P.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(t){return void 0!==P&&P.event.triggered!==t.type?P.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(M)||[""]).length;u--;)h=f=(a=Pe.exec(t[u])||[])[1],m=(a[2]||"").split(".").sort(),h&&(d=P.event.special[h]||{},h=(r?d.delegateType:d.bindType)||h,d=P.event.special[h]||{},c=P.extend({type:h,origType:f,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&P.expr.match.needsContext.test(r),namespace:m.join(".")},s),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,n,m,o)||e.addEventListener&&e.addEventListener(h,o)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=i.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),P.event.global[h]=!0)},remove:function(e,t,i,n,r){var s,o,a,l,u,c,d,p,h,m,f,g=$.hasData(e)&&$.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(M)||[""]).length;u--;)if(h=f=(a=Pe.exec(t[u])||[])[1],m=(a[2]||"").split(".").sort(),h){for(d=P.event.special[h]||{},p=l[h=(n?d.delegateType:d.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=p.length;s--;)c=p[s],!r&&f!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(p.splice(s,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(e,c));o&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,m,g.handle)||P.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)P.event.remove(e,h+t[u],i,n,!0);P.isEmptyObject(l)&&$.remove(e,"handle events")}},dispatch:function(e){var t,i,n,r,s,o,a=P.event.fix(e),l=new Array(arguments.length),u=($.get(this,"events")||{})[a.type]||[],c=P.event.special[a.type]||{};for(l[0]=a,t=1;t=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(s=[],o={},i=0;i-1:P.find(r,this,null,[u]).length),o[r]&&s.push(n);s.length&&a.push({elem:u,handlers:s})}return u=this,l\x20\t\r\n\f]*)[^>]*)\/>/gi,Re=/\s*$/g;function Oe(e,t){return _(e,"table")&&_(11!==t.nodeType?t:t.firstChild,"tr")&&P(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ke(e,t){var i,n,r,s,o,a,l,u;if(1===t.nodeType){if($.hasData(e)&&(s=$.access(e),o=$.set(t,s),u=s.events))for(r in delete o.handle,o.events={},u)for(i=0,n=u[r].length;i1&&"string"==typeof m&&!y.checkClone&&_e.test(m))return e.each(function(r){var s=e.eq(r);f&&(t[0]=m.call(this,r,s.html())),Fe(s,t,i,n)});if(p&&(s=(r=ve(t,e[0].ownerDocument,!1,e,n)).firstChild,1===r.childNodes.length&&(r=s),s||n)){for(a=(o=P.map(ge(r,"script"),Le)).length;d")},clone:function(e,t,i){var n,r,s,o,a=e.cloneNode(!0),l=P.contains(e.ownerDocument,e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||P.isXMLDoc(e)))for(o=ge(a),n=0,r=(s=ge(e)).length;n0&&ye(o,!l&&ge(e,"script")),a},cleanData:function(e){for(var t,i,n,r=P.event.special,s=0;void 0!==(i=e[s]);s++)if(Q(i)){if(t=i[$.expando]){if(t.events)for(n in t.events)r[n]?P.event.remove(i,n):P.removeEvent(i,n,t.handle);i[$.expando]=void 0}i[Y.expando]&&(i[Y.expando]=void 0)}}}),P.fn.extend({detach:function(e){return Me(this,e,!0)},remove:function(e){return Me(this,e)},text:function(e){return H(this,function(e){return void 0===e?P.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Fe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)})},prepend:function(){return Fe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Fe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(P.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return P.clone(this,e,t)})},html:function(e){return H(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Re.test(e)&&!fe[(he.exec(e)||["",""])[1].toLowerCase()]){e=P.htmlPrefilter(e);try{for(;i=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-a-.5))),l}function Ye(e,t,i){var n=Be(e),r=je(e,t,n),s="border-box"===P.css(e,"boxSizing",!1,n),o=s;if(ze.test(r)){if(!i)return r;r="auto"}return o=o&&(y.boxSizingReliable()||r===e.style[t]),("auto"===r||!parseFloat(r)&&"inline"===P.css(e,"display",!1,n))&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),(r=parseFloat(r)||0)+$e(e,t,i||(s?"border":"content"),o,n,r)+"px"}function et(e,t,i,n,r){return new et.prototype.init(e,t,i,n,r)}P.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=je(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,o,a=Z(t),l=He.test(t),u=e.style;if(l||(t=Qe(a)),o=P.cssHooks[t]||P.cssHooks[a],void 0===i)return o&&"get"in o&&void 0!==(r=o.get(e,!1,n))?r:u[t];"string"===(s=typeof i)&&(r=re.exec(i))&&r[1]&&(i=le(e,t,r),s="number"),null!=i&&i==i&&("number"===s&&(i+=r&&r[3]||(P.cssNumber[a]?"":"px")),y.clearCloneStyle||""!==i||0!==t.indexOf("background")||(u[t]="inherit"),o&&"set"in o&&void 0===(i=o.set(e,i,n))||(l?u.setProperty(t,i):u[t]=i))}},css:function(e,t,i,n){var r,s,o,a=Z(t);return He.test(t)||(t=Qe(a)),(o=P.cssHooks[t]||P.cssHooks[a])&&"get"in o&&(r=o.get(e,!0,i)),void 0===r&&(r=je(e,t,n)),"normal"===r&&t in Ke&&(r=Ke[t]),""===i||i?(s=parseFloat(r),!0===i||isFinite(s)?s||0:r):r}}),P.each(["height","width"],function(e,t){P.cssHooks[t]={get:function(e,i,n){if(i)return!We.test(P.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ye(e,t,n):ae(e,qe,function(){return Ye(e,t,n)})},set:function(e,i,n){var r,s=Be(e),o="border-box"===P.css(e,"boxSizing",!1,s),a=n&&$e(e,t,n,o,s);return o&&y.scrollboxSize()===s.position&&(a-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-$e(e,t,"border",!1,s)-.5)),a&&(r=re.exec(i))&&"px"!==(r[3]||"px")&&(e.style[t]=i,i=P.css(e,t)),Xe(0,i,a)}}}),P.cssHooks.marginLeft=Ge(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(je(e,"marginLeft"))||e.getBoundingClientRect().left-ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),P.each({margin:"",padding:"",border:"Width"},function(e,t){P.cssHooks[e+t]={expand:function(i){for(var n=0,r={},s="string"==typeof i?i.split(" "):[i];n<4;n++)r[e+se[n]+t]=s[n]||s[n-2]||s[0];return r}},"margin"!==e&&(P.cssHooks[e+t].set=Xe)}),P.fn.extend({css:function(e,t){return H(this,function(e,t,i){var n,r,s={},o=0;if(Array.isArray(t)){for(n=Be(e),r=t.length;o1)}}),P.Tween=et,et.prototype={constructor:et,init:function(e,t,i,n,r,s){this.elem=e,this.prop=i,this.easing=r||P.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=s||(P.cssNumber[i]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,i=et.propHooks[this.prop];return this.options.duration?this.pos=t=P.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=P.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){P.fx.step[e.prop]?P.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[P.cssProps[e.prop]]&&!P.cssHooks[e.prop]?e.elem[e.prop]=e.now:P.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},P.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},P.fx=et.prototype.init,P.fx.step={};var tt,it,nt=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function st(){it&&(!1===o.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(st):i.setTimeout(st,P.fx.interval),P.fx.tick())}function ot(){return i.setTimeout(function(){tt=void 0}),tt=Date.now()}function at(e,t){var i,n=0,r={height:e};for(t=t?1:0;n<4;n+=2-t)r["margin"+(i=se[n])]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}function lt(e,t,i){for(var n,r=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),s=0,o=r.length;s1)},removeAttr:function(e){return this.each(function(){P.removeAttr(this,e)})}}),P.extend({attr:function(e,t,i){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?P.prop(e,t,i):(1===s&&P.isXMLDoc(e)||(r=P.attrHooks[t.toLowerCase()]||(P.expr.match.bool.test(t)?ct:void 0)),void 0!==i?null===i?void P.removeAttr(e,t):r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:(e.setAttribute(t,i+""),i):r&&"get"in r&&null!==(n=r.get(e,t))?n:null==(n=P.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&_(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,r=t&&t.match(M);if(r&&1===e.nodeType)for(;i=r[n++];)e.removeAttribute(i)}}),ct={set:function(e,t,i){return!1===t?P.removeAttr(e,i):e.setAttribute(i,i),i}},P.each(P.expr.match.bool.source.match(/\w+/g),function(e,t){var i=dt[t]||P.find.attr;dt[t]=function(e,t,n){var r,s,o=t.toLowerCase();return n||(s=dt[o],dt[o]=r,r=null!=i(e,t,n)?o:null,dt[o]=s),r}});var pt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function mt(e){return(e.match(M)||[]).join(" ")}function ft(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(M)||[]}P.fn.extend({prop:function(e,t){return H(this,P.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[P.propFix[e]||e]})}}),P.extend({prop:function(e,t,i){var n,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&P.isXMLDoc(e)||(t=P.propFix[t]||t,r=P.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=P.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(P.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),P.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){P.propFix[this.toLowerCase()]=this}),P.fn.extend({addClass:function(e){var t,i,n,r,s,o,a,l=0;if(S(e))return this.each(function(t){P(this).addClass(e.call(this,t,ft(this)))});if((t=gt(e)).length)for(;i=this[l++];)if(r=ft(i),n=1===i.nodeType&&" "+mt(r)+" "){for(o=0;s=t[o++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");r!==(a=mt(n))&&i.setAttribute("class",a)}return this},removeClass:function(e){var t,i,n,r,s,o,a,l=0;if(S(e))return this.each(function(t){P(this).removeClass(e.call(this,t,ft(this)))});if(!arguments.length)return this.attr("class","");if((t=gt(e)).length)for(;i=this[l++];)if(r=ft(i),n=1===i.nodeType&&" "+mt(r)+" "){for(o=0;s=t[o++];)for(;n.indexOf(" "+s+" ")>-1;)n=n.replace(" "+s+" "," ");r!==(a=mt(n))&&i.setAttribute("class",a)}return this},toggleClass:function(e,t){var i=typeof e,n="string"===i||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):S(e)?this.each(function(i){P(this).toggleClass(e.call(this,i,ft(this),t),t)}):this.each(function(){var t,r,s,o;if(n)for(r=0,s=P(this),o=gt(e);t=o[r++];)s.hasClass(t)?s.removeClass(t):s.addClass(t);else void 0!==e&&"boolean"!==i||((t=ft(this))&&$.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":$.get(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+mt(ft(i))+" ").indexOf(t)>-1)return!0;return!1}});var yt=/\r/g;P.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=S(e),this.each(function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,P(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=P.map(r,function(e){return null==e?"":e+""})),(t=P.valHooks[this.type]||P.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=P.valHooks[r.type]||P.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(yt,""):null==i?"":i:void 0}}),P.extend({valHooks:{option:{get:function(e){var t=P.find.attr(e,"value");return null!=t?t:mt(P.text(e))}},select:{get:function(e){var t,i,n,r=e.options,s=e.selectedIndex,o="select-one"===e.type,a=o?null:[],l=o?s+1:r.length;for(n=s<0?l:o?s:0;n-1)&&(i=!0);return i||(e.selectedIndex=-1),s}}}}),P.each(["radio","checkbox"],function(){P.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=P.inArray(P(e).val(),t)>-1}},y.checkOn||(P.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in i;var St=/^(?:focusinfocus|focusoutblur)$/,vt=function(e){e.stopPropagation()};P.extend(P.event,{trigger:function(e,t,n,r){var s,a,l,u,c,d,p,h,f=[n||o],g=m.call(e,"type")?e.type:e,y=m.call(e,"namespace")?e.namespace.split("."):[];if(a=h=l=n=n||o,3!==n.nodeType&&8!==n.nodeType&&!St.test(g+P.event.triggered)&&(g.indexOf(".")>-1&&(g=(y=g.split(".")).shift(),y.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[P.expando]?e:new P.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:P.makeArray(t,[e]),p=P.event.special[g]||{},r||!p.trigger||!1!==p.trigger.apply(n,t))){if(!r&&!p.noBubble&&!v(n)){for(u=p.delegateType||g,St.test(u+g)||(a=a.parentNode);a;a=a.parentNode)f.push(a),l=a;l===(n.ownerDocument||o)&&f.push(l.defaultView||l.parentWindow||i)}for(s=0;(a=f[s++])&&!e.isPropagationStopped();)h=a,e.type=s>1?u:p.bindType||g,(d=($.get(a,"events")||{})[e.type]&&$.get(a,"handle"))&&d.apply(a,t),(d=c&&a[c])&&d.apply&&Q(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(f.pop(),t)||!Q(n)||c&&S(n[g])&&!v(n)&&((l=n[c])&&(n[c]=null),P.event.triggered=g,e.isPropagationStopped()&&h.addEventListener(g,vt),n[g](),e.isPropagationStopped()&&h.removeEventListener(g,vt),P.event.triggered=void 0,l&&(n[c]=l)),e.result}},simulate:function(e,t,i){var n=P.extend(new P.Event,i,{type:e,isSimulated:!0});P.event.trigger(n,null,t)}}),P.fn.extend({trigger:function(e,t){return this.each(function(){P.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return P.event.trigger(e,t,i,!0)}}),y.focusin||P.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){P.event.simulate(t,e.target,P.event.fix(e))};P.event.special[t]={setup:function(){var n=this.ownerDocument||this,r=$.access(n,t);r||n.addEventListener(e,i,!0),$.access(n,t,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=$.access(n,t)-1;r?$.access(n,t,r):(n.removeEventListener(e,i,!0),$.remove(n,t))}}});var Tt=i.location,bt=Date.now(),It=/\?/;P.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||P.error("Invalid XML: "+e),t};var Pt=/\[\]$/,At=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,i,n){var r;if(Array.isArray(t))P.each(t,function(t,r){i||Pt.test(e)?n(e,r):Ct(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,i,n)});else if(i||"object"!==I(t))n(e,t);else for(r in t)Ct(e+"["+r+"]",t[r],i,n)}P.param=function(e,t){var i,n=[],r=function(e,t){var i=S(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(e)||e.jquery&&!P.isPlainObject(e))P.each(e,function(){r(this.name,this.value)});else for(i in e)Ct(i,e[i],t,r);return n.join("&")},P.fn.extend({serialize:function(){return P.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=P.prop(this,"elements");return e?P.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!P(this).is(":disabled")&&Dt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var i=P(this).val();return null==i?null:Array.isArray(i)?P.map(i,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:i.replace(At,"\r\n")}}).get()}});var xt=/%20/g,Rt=/#.*$/,_t=/([?&])_=[^&]*/,wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Lt=/^\/\//,Nt={},kt={},Ut="*/".concat("*"),Ft=o.createElement("a");function Mt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,s=t.toLowerCase().match(M)||[];if(S(i))for(;n=s[r++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function zt(e,t,i,n){var r={},s=e===kt;function o(a){var l;return r[a]=!0,P.each(e[a]||[],function(e,a){var u=a(t,i,n);return"string"!=typeof u||s||r[u]?s?!(l=u):void 0:(t.dataTypes.unshift(u),o(u),!1)}),l}return o(t.dataTypes[0])||!r["*"]&&o("*")}function Bt(e,t){var i,n,r=P.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&P.extend(!0,e,n),e}Ft.href=Tt.href,P.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":P.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,P.ajaxSettings),t):Bt(P.ajaxSettings,e)},ajaxPrefilter:Mt(Nt),ajaxTransport:Mt(kt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,s,a,l,u,c,d,p,h,m=P.ajaxSetup({},t),f=m.context||m,g=m.context&&(f.nodeType||f.jquery)?P(f):P.event,y=P.Deferred(),S=P.Callbacks("once memory"),v=m.statusCode||{},T={},b={},I="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=wt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=b[e.toLowerCase()]=b[e.toLowerCase()]||e,T[e]=t),this},overrideMimeType:function(e){return null==c&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)A.always(e[A.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||I;return n&&n.abort(t),E(0,t),this}};if(y.promise(A),m.url=((e||m.url||Tt.href)+"").replace(Lt,Tt.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(M)||[""],null==m.crossDomain){u=o.createElement("a");try{u.href=m.url,u.href=u.href,m.crossDomain=Ft.protocol+"//"+Ft.host!=u.protocol+"//"+u.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=P.param(m.data,m.traditional)),zt(Nt,m,t,A),c)return A;for(p in(d=P.event&&m.global)&&0==P.active++&&P.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Ot.test(m.type),r=m.url.replace(Rt,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(xt,"+")):(h=m.url.slice(r.length),m.data&&(m.processData||"string"==typeof m.data)&&(r+=(It.test(r)?"&":"?")+m.data,delete m.data),!1===m.cache&&(r=r.replace(_t,"$1"),h=(It.test(r)?"&":"?")+"_="+bt+++h),m.url=r+h),m.ifModified&&(P.lastModified[r]&&A.setRequestHeader("If-Modified-Since",P.lastModified[r]),P.etag[r]&&A.setRequestHeader("If-None-Match",P.etag[r])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&A.setRequestHeader("Content-Type",m.contentType),A.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Ut+"; q=0.01":""):m.accepts["*"]),m.headers)A.setRequestHeader(p,m.headers[p]);if(m.beforeSend&&(!1===m.beforeSend.call(f,A,m)||c))return A.abort();if(I="abort",S.add(m.complete),A.done(m.success),A.fail(m.error),n=zt(kt,m,t,A)){if(A.readyState=1,d&&g.trigger("ajaxSend",[A,m]),c)return A;m.async&&m.timeout>0&&(l=i.setTimeout(function(){A.abort("timeout")},m.timeout));try{c=!1,n.send(T,E)}catch(e){if(c)throw e;E(-1,e)}}else E(-1,"No Transport");function E(e,t,o,a){var u,p,h,T,b,I=t;c||(c=!0,l&&i.clearTimeout(l),n=void 0,s=a||"",A.readyState=e>0?4:0,u=e>=200&&e<300||304===e,o&&(T=function(e,t,i){for(var n,r,s,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||e.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),i[s]}(m,A,o)),T=function(e,t,i,n){var r,s,o,a,l,u={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(s=c.shift();s;)if(e.responseFields[s]&&(i[e.responseFields[s]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=c.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=u[l+" "+s]||u["* "+s]))for(r in u)if((a=r.split(" "))[1]===s&&(o=u[l+" "+a[0]]||u["* "+a[0]])){!0===o?o=u[r]:!0!==u[r]&&(s=a[0],c.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(m,T,A,u),u?(m.ifModified&&((b=A.getResponseHeader("Last-Modified"))&&(P.lastModified[r]=b),(b=A.getResponseHeader("etag"))&&(P.etag[r]=b)),204===e||"HEAD"===m.type?I="nocontent":304===e?I="notmodified":(I=T.state,p=T.data,u=!(h=T.error))):(h=I,!e&&I||(I="error",e<0&&(e=0))),A.status=e,A.statusText=(t||I)+"",u?y.resolveWith(f,[p,I,A]):y.rejectWith(f,[A,I,h]),A.statusCode(v),v=void 0,d&&g.trigger(u?"ajaxSuccess":"ajaxError",[A,m,u?p:h]),S.fireWith(f,[A,I]),d&&(g.trigger("ajaxComplete",[A,m]),--P.active||P.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,i){return P.get(e,t,i,"json")},getScript:function(e,t){return P.get(e,void 0,t,"script")}}),P.each(["get","post"],function(e,t){P[t]=function(e,i,n,r){return S(i)&&(r=r||n,n=i,i=void 0),P.ajax(P.extend({url:e,type:t,dataType:r,data:i,success:n},P.isPlainObject(e)&&e))}}),P._evalUrl=function(e){return P.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},P.fn.extend({wrapAll:function(e){var t;return this[0]&&(S(e)&&(e=e.call(this[0])),t=P(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return S(e)?this.each(function(t){P(this).wrapInner(e.call(this,t))}):this.each(function(){var t=P(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=S(e);return this.each(function(i){P(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){P(this).replaceWith(this.childNodes)}),this}}),P.expr.pseudos.hidden=function(e){return!P.expr.pseudos.visible(e)},P.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},P.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},jt=P.ajaxSettings.xhr();y.cors=!!jt&&"withCredentials"in jt,y.ajax=jt=!!jt,P.ajaxTransport(function(e){var t,n;if(y.cors||jt&&!e.crossDomain)return{send:function(r,s){var o,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];for(o in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(o,r[o]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Vt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout(function(){t&&n()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),P.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),P.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return P.globalEval(e),e}}}),P.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),P.ajaxTransport("script",function(e){var t,i;if(e.crossDomain)return{send:function(n,r){t=P("