/*!CK:3755956853!*//*1402512533,*/
if (self.CavalryLogger) { CavalryLogger.start_js(["YQVa9"]); }
__d("SpotlightViewerLoggingEvents",[],function(a,b,c,d,e,f){e.exports={LOADED:"loaded",LOADING:"loading",ERROR:"error",ABORT:"abort",OPEN_BEGIN:"open_begin",OPEN_COMPLETE:"open_complete",CLOSE_BEGIN:"close_begin",CLOSE_COMPLETE:"close_complete",PAGE_BEGIN:"page_begin",PAGE_COMPLETE:"page_complete",PHOTO_CHANGE_BEGIN:"photo_change_begin",PHOTO_CHANGE_COMPLETE:"photo_change_complete",DATA_FETCH_BEGIN:"data_fetch_begin",DATA_FETCH_COMPLETE:"data_fetch_complete",PHOTO_FETCH:"photo_fetch"};},null);
__d("AbstractDialog.react",["DialogX","LayerHideOnBlur","ReactPropTypes","copyProperties","merge"],function(a,b,c,d,e,f,g,h,i,j,k){var l={createSpec:function(m){return {displayName:m.displayName,propTypes:{behaviors:i.object,className:i.string,modal:i.bool,autohide:i.number,width:i.number,titleID:i.string,causalElement:i.object,causalElementRef:i.string,shown:i.bool,layerHideOnBlur:i.bool,fixedTopPosition:i.number},createLayer:function(n){var o=this.props.className,p=j({width:this.props.width,xui:true,autohide:this.props.autohide,classNames:o?o.split(' '):null,titleID:this.props.titleID,causalElement:this._getCausalElement(),fixedTopPosition:this.props.fixedTopPosition},m||{}),q=k(m.addedBehaviors,this.props.behaviors);if(this.props.layerHideOnBlur!==false)q.LayerHideOnBlur=h;p.addedBehaviors=this.enumerateBehaviors(q);var r=new g(p,n);r.conditionShow(this.props.shown);return r;},receiveProps:function(n){this.updateBehaviors(n.behaviors);if(this.layer){this.layer.setCausalElement(this._getCausalElement());this.layer.conditionShow(n.shown);this.layer.setWidth(n.width);n.shown&&this.layer.updatePosition();}},_getCausalElement:function(){var n;if(this.props.causalElementRef){n=this.getNodeForOwnerRef(this.props.causalElementRef);}else n=this.props.causalElement;return n;}};}};e.exports=l;},null);
__d("InlineBlock.react",["React","cx","joinClasses"],function(a,b,c,d,e,f,g,h,i){var j=g.PropTypes,k={baseline:null,bottom:"_6d",middle:"_6b",top:"_6e"},l=g.createClass({displayName:'InlineBlock',propTypes:{alignv:j.oneOf(['baseline','bottom','middle','top']),height:j.number,fullWidth:j.bool},getDefaultProps:function(){return {alignv:'baseline',fullWidth:false};},render:function(){var m=k[this.props.alignv],n="_6a";if(this.props.fullWidth)n=i(n,"_5u5j");var o=g.DOM.div({className:i(n,m)},this.props.children);if(this.props.height!=null){var p=g.DOM.div({className:i("_6a",m),style:{height:this.props.height+'px'}});o=g.DOM.div({className:n,height:null},p,o);}return this.transferPropsTo(o);}});e.exports=l;},null);
__d("curry",["bind"],function(a,b,c,d,e,f,g){var h=g(null,g,null);e.exports=h;},null);
__d("ParameterizedPopover",["Arbiter","ArbiterMixin","CSS","DataStore","Event","Focus","Keys","KeyStatus","LayerHideOnEscape","Toggler","copyProperties","curry","mixin"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){p.subscribe(['show','hide'],function(x,y){var z=j.get(y.getActive(),'Popover');if(z)if(x==='show'){z.showLayer();}else z.hideLayer();});var t=s(h);for(var u in t)if(t.hasOwnProperty(u))w[u]=t[u];var v=t===null?null:t.prototype;w.prototype=Object.create(v);w.prototype.constructor=w;w.__superConstructor__=t;function w(x,y,z,aa){"use strict";this._root=x;this._triggerElem=y;this._behaviors=z;this._config=aa||{};this._disabled=!!this._config.disabled;this._listeners=[];if(!this._disabled&&(y.nodeName!=='A'||y.rel!=='toggle'))this._setupClickListener();this._setupKeyListener();y.setAttribute('role','button');j.set(x,'Popover',this);if(p.getActive()===x)this.showLayer();}w.prototype.ensureInit=function(){"use strict";if(!this._layer)this._init();};w.prototype.showLayer=function(){"use strict";this.ensureInit();this._layer.show();p.show(this._root);i.addClass(this._root,'selected');this.inform('show');this._triggerElem.setAttribute('aria-expanded','true');};w.prototype.getContentRoot=function(){"use strict";return this._root;};w.prototype.getLayer=function(){"use strict";return this._layer;};w.prototype.hideLayer=function(){"use strict";this._layer.hide();this._triggerElem.setAttribute('aria-expanded','false');};w.prototype.isShown=function(){"use strict";return this._layer&&this._layer.isShown();};w.prototype.setLayerContent=function(x){"use strict";this.ensureInit();this._layer.setContent(x);};w.prototype._init=function(){"use strict";var x=this._config.layer;x.enableBehaviors([o]);p.createInstance(x.getRoot()).setSticky(false);x.subscribe('hide',this._onLayerHide.bind(this));this._behaviors&&x.enableBehaviors(this._behaviors);this._layer=x;this.inform('init',null,g.BEHAVIOR_PERSISTENT);};w.prototype._onLayerHide=function(){"use strict";p.hide(this._root);i.removeClass(this._root,'selected');this.inform('hide');if(n.getKeyDownCode()===m.ESC)l.set(this._triggerElem);};w.prototype.enable=function(){"use strict";if(!this._disabled)return;this._setupClickListener();this._setupKeyListener();this._disabled=false;};w.prototype.disable=function(){"use strict";if(this._disabled)return;if(this.isShown())this.hideLayer();while(this._listeners.length)this._listeners.pop().remove();if(this._triggerElem.getAttribute('rel')==='toggle')this._triggerElem.removeAttribute('rel');this._disabled=true;};w.prototype._setupClickListener=function(){"use strict";this._listeners.push(k.listen(this._triggerElem,'click',r(p.bootstrap,this._triggerElem)));};w.prototype._setupKeyListener=function(){"use strict";this._listeners.push(k.listen(this._triggerElem,'keydown',this._handleKeyEvent.bind(this)));};w.prototype._handleKeyEvent=function(event){"use strict";if(event.getModifiers().any)return;var x=k.getKeyCode(event);switch(x){case m.SPACE:case m.DOWN:case m.UP:if(x===m.SPACE||!this.isShown())p.bootstrap(this._triggerElem);break;default:return;}event.prevent();};w.prototype.destroy=function(){"use strict";j.remove(this._root,'Popover');};q(w.prototype,{_layer:null});e.exports=w;},null);
__d("Popover",["ContextualLayer","ContextualLayerHideOnScroll","DOM","ParameterizedPopover"],function(a,b,c,d,e,f,g,h,i,j){for(var k in j)if(j.hasOwnProperty(k))m[k]=j[k];var l=j===null?null:j.prototype;m.prototype=Object.create(l);m.prototype.constructor=m;m.__superConstructor__=j;function m(){"use strict";if(j!==null)j.apply(this,arguments);}m.prototype._init=function(){"use strict";var n=new g({context:this._triggerElem,position:'below',arrowDimensions:{offset:12,length:16}},i.create('div'));n.enableBehaviors([h]);this._config.layer=n;if(this._config.alignh)n.setAlignment(this._config.alignh);if(this._config.layer_content)n.setContent(this._config.layer_content);if(this._config.position)n.setPosition(this._config.position);l._init.call(this);};e.exports=m;},null);
__d("PopoverMenu",["Arbiter","ArbiterMixin","ARIA","BehaviorsMixin","Event","Focus","Keys","KeyStatus","copyProperties","mixin"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=p(h,j);for(var r in q)if(q.hasOwnProperty(r))t[r]=q[r];var s=q===null?null:q.prototype;t.prototype=Object.create(s);t.prototype.constructor=t;t.__superConstructor__=q;function t(u,v,w,x){"use strict";this._popover=u;this._triggerElem=v;this._initialMenu=w;u.subscribe('init',this._onLayerInit.bind(this));u.subscribe('show',this._onPopoverShow.bind(this));u.subscribe('hide',this._onPopoverHide.bind(this));k.listen(this._triggerElem,'keydown',this._handleKeyEventOnTrigger.bind(this));x&&this.enableBehaviors(x);}t.prototype.getContentRoot=function(){"use strict";return this._popover.getContentRoot();};t.prototype.setMenu=function(u){"use strict";this._menu=u;var v=u.getRoot();this._popover.setLayerContent(v);u.subscribe('done',this._onMenuDone.bind(this));if(this._popoverShown)this._menu.onShow();i.owns(this._triggerElem,v);this.inform('setMenu',null,g.BEHAVIOR_PERSISTENT);};t.prototype.getPopover=function(){"use strict";return this._popover;};t.prototype.getTriggerElem=function(){"use strict";return this._triggerElem;};t.prototype.getMenu=function(){"use strict";return this._menu;};t.prototype._onLayerInit=function(){"use strict";this.setMenu(this._initialMenu);this._popover.getLayer().subscribe('key',this._handleKeyEvent.bind(this));};t.prototype._onPopoverShow=function(){"use strict";if(this._menu)this._menu.onShow();this._popoverShown=true;};t.prototype._onPopoverHide=function(){"use strict";if(this._menu)this._menu.onHide();this._popoverShown=false;};t.prototype._handleKeyEvent=function(u,v){"use strict";var w=k.getKeyCode(v);if(w===m.TAB){this._popover.hideLayer();l.set(this._triggerElem);return;}if(v.getModifiers().any)return;switch(w){case m.RETURN:return;default:if(this._menu.handleKeydown(w,v)===false){this._menu.blur();this._menu.handleKeydown(w,v);}break;}v.prevent();};t.prototype._handleKeyEventOnTrigger=function(u){"use strict";var v=k.getKeyCode(u),w=String.fromCharCode(v).toLowerCase();if(/^\w$/.test(w)){this._popover.showLayer();this._menu.blur();if(this._menu.handleKeydown(v,u)===false){this._popover.hideLayer();l.set(this._triggerElem);}}};t.prototype._onMenuDone=function(u){"use strict";setTimeout(this._popover.hideLayer.bind(this._popover),0);if(n.isKeyDown())l.set(this._triggerElem);};t.prototype.enable=function(){"use strict";this._popover.enable();};t.prototype.disable=function(){"use strict";this._popover.disable();};o(t.prototype,{_popoverShown:false});e.exports=t;},null);
__d("PopoverMenu.react",["CSS","InlineBlock.react","Popover","PopoverMenu","React","ReactPropTypes","SubscriptionsHandler","cx","joinClasses","areEqual"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=k.createClass({displayName:'ReactPopoverMenu',statics:{getFirstChild:function(r){var s=r.children;return Array.isArray(s)?s[0]:s;},getButtonSize:function(r){var s=q.getFirstChild(r);return s&&s.type.getButtonSize(s.props);}},propTypes:{alignh:l.oneOf(['left','center','right']),alignv:l.oneOf(['baseline','bottom','middle','top']),layerBehaviors:l.array,menu:l.object,disabled:l.bool,open:l.bool},getDefaultProps:function(){return {alignv:'middle'};},_menuSubscriptions:null,componentDidMount:function(){var r=this.refs.root.getDOMNode(),s=r.firstChild;g.addClass(s,"_p");this._popover=new i(r,s,this.props.layerBehaviors,{alignh:this.props.alignh,disabled:this.props.disabled});this._popoverMenu=new j(this._popover,s,this._createMenu(this.props.menu),this.props.behaviors);},componentDidUpdate:function(r){if(!p(r.menu,this.props.menu)){if(this._menuSubscriptions){this._menuSubscriptions.release();this._menuSubscriptions=null;}this._popoverMenu.setMenu(this._createMenu(this.props.menu));}if(this.props.alignh!==r.alignh)this._popoverMenu.getPopover().getLayer().setAlignment(this.props.alignh);if(this.props.disabled!==r.disabled)if(this.props.disabled){this._popoverMenu.disable();}else this._popoverMenu.enable();},render:function(){var r=q.getFirstChild(this.props);r.props.className=o(r.props.className||'',"_p");return this.transferPropsTo(h({className:"uiPopover",ref:"root",disabled:null},this.props.children));},componentWillUnmount:function(){if(this._menuSubscriptions){this._menuSubscriptions.release();this._menuSubscriptions=null;}},_createMenu:function(r){var s=new r.ctor(r.menuitems,r.config);this._menuSubscriptions=new m();if(r.onItemClick)this._menuSubscriptions.addSubscriptions(s.subscribe('itemclick',r.onItemClick));if(r.onItemFocus)this._menuSubscriptions.addSubscriptions(s.subscribe('focus',r.onItemFocus));if(r.onItemBlur)this._menuSubscriptions.addSubscriptions(s.subscribe('blur',r.onItemBlur));if(r.onChange)this._menuSubscriptions.addSubscriptions(s.subscribe('change',r.onChange));if(this.props.onShow)this._menuSubscriptions.addSubscriptions(this._popover.subscribe('show',this.props.onShow));if(this.props.onHide)this._menuSubscriptions.addSubscriptions(this._popover.subscribe('hide',this.props.onHide));return s;},getMenu:function(){return this._popoverMenu.getMenu();},showPopover:function(r){this._popover.showLayer();if(r){var s=this._popoverMenu.getMenu();s.blur();s.focusAnItem(r);}},hidePopover:function(){this._popover.hideLayer();},getFocusedItem:function(){var r=this._popoverMenu.getMenu();return r.getFocusedItem();}});e.exports=q;},null);
__d("SimpleDrag",["Event","ArbiterMixin","UserAgent","Vector","copyProperties","emptyFunction"],function(a,b,c,d,e,f,g,h,i,j,k,l){function m(n){this.minDragDistance=0;g.listen(n,'mousedown',this._start.bind(this));}k(m.prototype,h,{setMinDragDistance:function(n){this.minDragDistance=n;},_start:function(event){var n=false,o=true,p=null;if(this.inform('mousedown',event))o=false;if(this.minDragDistance){p=j.getEventPosition(event);}else{n=true;var q=this.inform('start',event);if(q===true){o=false;}else if(q===false){n=false;return;}}var r=i.ie()<9?document.documentElement:window,s=g.listen(r,{selectstart:o?g.prevent:l,mousemove:function(event){if(!n){var t=j.getEventPosition(event);if(p.distanceTo(t)<this.minDragDistance)return;n=true;if(this.inform('start',event)===false){n=false;return;}}this.inform('update',event);}.bind(this),mouseup:function(event){for(var t in s)s[t].remove();if(n){this.inform('end',event);}else this.inform('click',event);}.bind(this)});o&&event.prevent();}});e.exports=m;},null);
__d("ScrollableArea",["Animation","ArbiterMixin","BrowserSupport","CSS","DataStore","DOM","Event","Parent","Run","SimpleDrag","Style","UserAgent","Vector","throttle","mixin"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){var v=12,w=u(h);for(var x in w)if(w.hasOwnProperty(x))z[x]=w[x];var y=w===null?null:w.prototype;z.prototype=Object.create(y);z.prototype.constructor=z;z.__superConstructor__=w;function z(aa,ba){"use strict";if(!aa)return;ba=ba||{};this._elem=aa;this._wrap=l.find(aa,'div.uiScrollableAreaWrap');this._body=l.find(this._wrap,'div.uiScrollableAreaBody');this._content=l.find(this._body,'div.uiScrollableAreaContent');this._track=l.find(aa,'div.uiScrollableAreaTrack');this._gripper=l.find(this._track,'div.uiScrollableAreaGripper');this._options=ba;this._throttledComputeHeights=t.withBlocking(this._computeHeights,250,this);this.throttledAdjustGripper=t.withBlocking(this.adjustGripper,250,this);this._throttledShowGripperAndShadows=t.withBlocking(this._showGripperAndShadows,250,this);this._throttledRespondMouseMove=t(this._respondMouseMove,250,this);setTimeout(this.adjustGripper.bind(this),0);this._listeners=[m.listen(this._wrap,'scroll',this._handleScroll.bind(this)),m.listen(aa,'mousemove',this._handleMouseMove.bind(this)),m.listen(this._track,'click',this._handleClickOnTrack.bind(this))];if(i.hasPointerEvents())this._listeners.push(m.listen(aa,'mousedown',this._handleClickOnTrack.bind(this)));if(ba.fade!==false){this._listeners.push(m.listen(aa,'mouseenter',this._handleMouseEnter.bind(this)),m.listen(aa,'mouseleave',this._handleMouseLeave.bind(this)),m.listen(aa,'focusin',this.showScrollbar.bind(this,false)),m.listen(aa,'focusout',this.hideScrollbar.bind(this)));}else if(i.hasPointerEvents())this._listeners.push(m.listen(aa,'mouseleave',j.removeClass.bind(null,aa,'uiScrollableAreaTrackOver')));if(r.webkit()||r.chrome()){this._listeners.push(m.listen(aa,'mousedown',function(){var ca=m.listen(window,'mouseup',function(){if(aa.scrollLeft)aa.scrollLeft=0;ca.remove();});}));}else if(r.firefox())this._wrap.addEventListener('DOMMouseScroll',function(event){event.axis===event.HORIZONTAL_AXIS&&event.preventDefault();},false);this.initDrag();k.set(this._elem,'ScrollableArea',this);if(!ba.persistent)o.onLeave(this.destroy.bind(this));if(ba.shadow!==false)j.addClass(this._elem,'uiScrollableAreaWithShadow');}z.prototype.getElement=function(){"use strict";return this._elem;};z.prototype.initDrag=function(){"use strict";var aa=i.hasPointerEvents(),ba=new p(aa?this._elem:this._gripper);ba.subscribe('start',function(ca,event){if(!((event.which&&event.which===1)||(event.button&&event.button===1)))return;var da=s.getEventPosition(event,'viewport');if(aa){var ea=this._gripper.getBoundingClientRect();if(da.x<ea.left||da.x>ea.right||da.y<ea.top||da.y>ea.bottom)return false;}this.inform('grip_start');var fa=da.y,ga=this._gripper.offsetTop;j.addClass(this._elem,'uiScrollableAreaDragging');var ha=ba.subscribe('update',function(ja,event){var ka=s.getEventPosition(event,'viewport').y-fa;this._throttledComputeHeights();var la=this._contentHeight-this._containerHeight,ma=ga+ka,na=this._trackHeight-this._gripperHeight;ma=Math.max(Math.min(ma,na),0);var oa=ma/na*la;this._wrap.scrollTop=oa;}.bind(this)),ia=ba.subscribe('end',function(){ba.unsubscribe(ha);ba.unsubscribe(ia);j.removeClass(this._elem,'uiScrollableAreaDragging');this.inform('grip_end');}.bind(this));}.bind(this));};z.prototype.adjustGripper=function(){"use strict";if(this._needsGripper()){q.set(this._gripper,'height',this._gripperHeight+'px');this._slideGripper();}this._throttledShowGripperAndShadows();return this;};z.prototype._computeHeights=function(){"use strict";this._containerHeight=this._elem.clientHeight;this._contentHeight=this._content.offsetHeight;this._trackHeight=this._track.offsetHeight;this._gripperHeight=Math.max(this._containerHeight/this._contentHeight*this._trackHeight,v);};z.prototype._needsGripper=function(){"use strict";this._throttledComputeHeights();return this._gripperHeight<this._trackHeight;};z.prototype._slideGripper=function(){"use strict";var aa=this._wrap.scrollTop/(this._contentHeight-this._containerHeight)*(this._trackHeight-this._gripperHeight);q.set(this._gripper,'top',aa+'px');};z.prototype._showGripperAndShadows=function(){"use strict";j.conditionShow(this._gripper,this._needsGripper());j.conditionClass(this._elem,'contentBefore',this._wrap.scrollTop>0);j.conditionClass(this._elem,'contentAfter',!this.isScrolledToBottom());};z.prototype.destroy=function(){"use strict";this._listeners.forEach(function(aa){aa.remove();});this._listeners.length=0;};z.prototype._handleClickOnTrack=function(event){"use strict";var aa=s.getEventPosition(event,'viewport'),ba=this._gripper.getBoundingClientRect();if(aa.x<ba.right&&aa.x>ba.left){if(aa.y<ba.top){this.setScrollTop(this.getScrollTop()-this._elem.clientHeight);}else if(aa.y>ba.bottom)this.setScrollTop(this.getScrollTop()+this._elem.clientHeight);event.prevent();}};z.prototype._handleMouseMove=function(event){"use strict";var aa=this._options.fade!==false;if(i.hasPointerEvents()||aa){this._mousePos=s.getEventPosition(event);this._throttledRespondMouseMove();}};z.prototype._respondMouseMove=function(){"use strict";if(!this._mouseOver)return;var aa=this._options.fade!==false,ba=this._mousePos,ca=s.getElementPosition(this._track).x,da=s.getElementDimensions(this._track).x,ea=Math.abs(ca+da/2-ba.x);j.conditionClass(this._elem,'uiScrollableAreaTrackOver',i.hasPointerEvents()&&ea<=10);if(aa)if(ea<25){this.showScrollbar(false);}else if(!this._options.no_fade_on_hover)this.hideScrollbar();};z.prototype._handleScroll=function(event){"use strict";if(this._needsGripper())this._slideGripper();this.throttledAdjustGripper();if(this._options.fade!==false)this.showScrollbar();this.inform('scroll');};z.prototype._handleMouseLeave=function(){"use strict";this._mouseOver=false;this.hideScrollbar();};z.prototype._handleMouseEnter=function(){"use strict";this._mouseOver=true;this.showScrollbar();};z.prototype.hideScrollbar=function(aa){"use strict";if(!this._scrollbarVisible)return this;this._scrollbarVisible=false;if(this._hideTimeout){clearTimeout(this._hideTimeout);this._hideTimeout=null;}if(aa){q.set(this._track,'opacity',0);j.addClass.bind(null,this._track,'invisible_elem');}else this._hideTimeout=setTimeout(function(){if(this._hideAnimation){this._hideAnimation.stop();this._hideAnimation=null;}this._hideAnimation=(new g(this._track)).from('opacity',1).to('opacity',0).duration(250).ondone(j.addClass.bind(null,this._track,'invisible_elem')).go();}.bind(this),750);return this;};z.prototype.resize=function(){"use strict";if(this._body.style.width)this._body.style.width='';var aa=this._wrap.offsetWidth-this._wrap.clientWidth;if(aa>0)q.set(this._body,'margin-right',(-aa)+'px');return this;};z.prototype.showScrollbar=function(aa){"use strict";this.throttledAdjustGripper();if(this._scrollbarVisible)return this;this._scrollbarVisible=true;if(this._hideTimeout){clearTimeout(this._hideTimeout);this._hideTimeout=null;}if(this._hideAnimation){this._hideAnimation.stop();this._hideAnimation=null;}q.set(this._track,'opacity',1);j.removeClass(this._track,'invisible_elem');if((aa!==false)&&!this._options.no_fade_on_hover)this.hideScrollbar();return this;};z.prototype.isScrolledToBottom=function(){"use strict";return this._wrap.scrollTop>=this._contentHeight-this._containerHeight;};z.prototype.isScrolledToTop=function(){"use strict";return this._wrap.scrollTop===0;};z.prototype.scrollToBottom=function(aa,ba){"use strict";this.setScrollTop(this._wrap.scrollHeight,aa,ba);};z.prototype.scrollToTop=function(aa){"use strict";this.setScrollTop(0,aa);};z.prototype.scrollIntoView=function(aa,ba){"use strict";var ca=this._wrap.clientHeight,da=aa.offsetHeight,ea=this._wrap.scrollTop,fa=ea+ca,ga=aa.offsetTop,ha=ga+da;if(ga<ea||ca<da){this.setScrollTop(ga,ba);}else if(ha>fa)this.setScrollTop(ea+(ha-fa),ba);};z.prototype.scrollElemToTop=function(aa,ba,ca){"use strict";this.setScrollTop(aa.offsetTop,ba,{callback:ca});};z.prototype.poke=function(){"use strict";var aa=this._wrap.scrollTop;this._wrap.scrollTop+=1;this._wrap.scrollTop-=1;this._wrap.scrollTop=aa;return this.showScrollbar(false);};z.prototype.getScrollTop=function(){"use strict";return this._wrap.scrollTop;};z.prototype.getScrollHeight=function(){"use strict";return this._wrap.scrollHeight;};z.prototype.setScrollTop=function(aa,ba,ca){"use strict";ca=ca||{};if(ba!==false){if(this._scrollTopAnimation)this._scrollTopAnimation.stop();var da=ca.duration||250,ea=ca.ease||g.ease.end;this._scrollTopAnimation=(new g(this._wrap)).to('scrollTop',aa).ease(ea).duration(da).ondone(ca.callback).go();}else{this._wrap.scrollTop=aa;ca.callback&&ca.callback();}};z.renderDOM=function(){"use strict";var aa=l.create('div',{className:'uiScrollableAreaContent'}),ba=l.create('div',{className:'uiScrollableAreaBody'},aa),ca=l.create('div',{className:'uiScrollableAreaWrap scrollable'},ba),da=l.create('div',{className:'uiScrollableArea native'},ca);return {root:da,wrap:ca,body:ba,content:aa};};z.fromNative=function(aa,ba){"use strict";if(!j.hasClass(aa,'uiScrollableArea')||!j.hasClass(aa,'native'))return;ba=ba||{};j.removeClass(aa,'native');var ca=l.create('div',{className:'uiScrollableAreaTrack'},l.create('div',{className:'uiScrollableAreaGripper'}));if(ba.fade!==false){j.addClass(aa,'fade');j.addClass(ca,'invisible_elem');}else j.addClass(aa,'nofade');l.appendContent(aa,ca);var da=new z(aa,ba);da.resize();return da;};z.getInstance=function(aa){"use strict";var ba=n.byClass(aa,'uiScrollableArea');return ba?k.get(ba,'ScrollableArea'):null;};z.poke=function(aa){"use strict";var ba=z.getInstance(aa);ba&&ba.poke();};e.exports=z;},null);
__d("Menu",["BehaviorsMixin","CSS","DataStore","DOM","Event","Keys","KeyStatus","Parent","PopoverMenuInterface","ScrollableArea","Style","copyProperties","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){for(var t in o)if(o.hasOwnProperty(t))v[t]=o[t];var u=o===null?null:o.prototype;v.prototype=Object.create(u);v.prototype.constructor=v;v.__superConstructor__=o;function v(w,x){"use strict";o.call(this);this._items=[];for(var y=0;y<w.length;y++)this._items[y]=new w[y].ctor(w[y]);this._config=x||{};this._theme=x.theme||{};}v.prototype.addItem=function(w){"use strict";this._addItem(w);};v.prototype.addItemBefore=function(w,x){"use strict";this._addItem(w,x,false);};v.prototype.addItemAfter=function(w,x){"use strict";this._addItem(w,x,true);};v.prototype._addItem=function(w,x,y){"use strict";var z=this._items.indexOf(w);if(z>=0){var aa=y?-1:1;if(this._items[z+aa]==x)return;this._items.splice(z,1);}if(x){z=this._items.indexOf(x);if(z<0)throw new Error('reference item must already be in the menu');if(y)z++;this._items.splice(z,0,w);}else this._items.push(w);if(this._root)this._insertItem(w,x,y);};v.prototype.removeItem=function(w){"use strict";var x=this._items.indexOf(w);if(x<0)return;this._items.splice(x,1);this._root&&j.remove(w.getRoot());};v.prototype.forEachItem=function(w){"use strict";this._items.forEach(w);};v.prototype.getFocusedItem=function(){"use strict";return this._focused;};v.prototype.getItemAt=function(w){"use strict";return this._items[w]||null;};v.prototype.getRoot=function(){"use strict";if(!this._root)this._render();return this._root;};v.prototype.onShow=function(){"use strict";if(this._config.maxheight)if(!this._scrollableArea){this._scrollableArea=p.fromNative(this._scrollableElems.root,{fade:true});}else this._scrollableArea.resize();if(m.isKeyDown())this.focusAnItem();this.inform('show');};v.prototype.onHide=function(){"use strict";this.blur();};v.prototype.focusAnItem=function(w){"use strict";return this._attemptFocus(w||0,1);};v.prototype.blur=function(){"use strict";if(this._focused){var w=this._focused;this._focused.blur();this._focused=null;this.inform('blur',{item:w});}};v.prototype.handleKeydown=function(w,x){"use strict";var y=this._items.indexOf(this._focused);switch(w){case l.UP:case l.DOWN:var z=w===l.UP,aa=z?-1:1,ba=z?this._items.length-1:0,ca=z?0:this._items.length-1;if(y===-1){return this._attemptFocus(ba,aa);}else if(y!==ca)return this._attemptFocus(y+aa,aa);break;case l.SPACE:if(this._items.indexOf(this._focused)!==-1){this._handleItemClick(this._focused,x);return true;}return false;default:var da=String.fromCharCode(w).toLowerCase(),ea;for(var fa=y+1;fa<this._items.length;fa++){ea=this._items[fa].getAccessKey();if(ea&&ea.charAt(0).toLowerCase()===da)if(this._focusItem(this._items[fa]))return true;}return false;}};v.prototype._render=function(){"use strict";this._ul=j.create('ul',{className:"_54nf"});this._ul.setAttribute('role','menu');this._items.forEach(function(y){this._insertItem(y,null);}.bind(this));k.listen(this._ul,'click',this._handleClick.bind(this));k.listen(this._ul,'mouseover',this._handleMouseOver.bind(this));k.listen(this._ul,'mouseout',this._handleMouseOut.bind(this));var w=this._ul;if(this._config.maxheight){this._scrollableElems=p.renderDOM();j.setContent(this._scrollableElems.content,this._ul);w=this._scrollableElems.root;q.set(this._scrollableElems.wrap,'max-height',this._config.maxheight+'px');}var x="_54nq"+(this._config.className?' '+this._config.className:'')+(this._theme.className?' '+this._theme.className:'');this._root=j.create('div',{className:x},j.create('div',{className:"_54ng"},w));this._config.id&&this._root.setAttribute('id',this._config.id);if(this._config.behaviors)this.enableBehaviors(this._config.behaviors);this.inform('rendered',this._root);};v.prototype._needsDefaultBehavior=function(w){"use strict";if(w.isDefaultRequested&&w.isDefaultRequested()){var x=n.byTag(w.getTarget(),'a'),y=x&&x.getAttribute('href');return y&&y[0]!=='#';}return false;};v.prototype._handleClick=function(w){"use strict";if(!this._needsDefaultBehavior(w)){var x=this._getItemInstance(w.getTarget());if(x)return this._handleItemClick(x,w);}};v.prototype._handleItemClick=function(w,x){"use strict";this.inform('itemclick',{item:w,event:x});if(w.hasAction())this.done();return w.handleClick();};v.prototype._handleMouseOver=function(w){"use strict";var x=this._getItemInstance(w.getTarget());x&&this._focusItem(x,true);};v.prototype._handleMouseOut=function(w){"use strict";var x=this._getItemInstance(w.getTarget());if(x&&this._focused===x)this.blur();};v.prototype._insertItem=function(w,x,y){"use strict";var z=w.getRoot();h.addClass(z,'__MenuItem');i.set(z,'MenuItem',w);if(x){var aa=y?j.insertAfter:j.insertBefore;aa(x.getRoot(),z);}else j.appendContent(this._ul,z);};v.prototype._attemptFocus=function(w,x){"use strict";var y=this.getItemAt(w);if(y)if(this._focusItem(y)){return true;}else return this._attemptFocus(w+x,x);return false;};v.prototype._focusItem=function(w,x){"use strict";if(w.focus(x)!==false){if(this._focused!==w){this.blur();this._focused=w;this.inform('focus',{item:w,from_mouse_over:x});}return true;}return false;};v.prototype._getItemInstance=function(w){"use strict";var x=n.byClass(w,'__MenuItem');return x?i.get(x,'MenuItem'):null;};v.prototype.destroy=function(){"use strict";this._items.forEach(function(w){var x=w.getRoot();i.remove(x,'MenuItem');w.destroy();});this.destroyBehaviors();};r(v.prototype,g,{_focused:null,_root:null});e.exports=v;},null);
__d("MenuItemInterface",["copyProperties","emptyFunction"],function(a,b,c,d,e,f,g,h){function i(){"use strict";}i.prototype.getRoot=function(){"use strict";if(!this._root)this._root=this.render();return this._root;};g(i.prototype,{_root:null,render:h,getAccessKey:h,hasAction:h.thatReturnsFalse,focus:h.thatReturnsFalse,blur:h.thatReturnsFalse,onShow:h.thatReturnsFalse,handleClick:h.thatReturnsFalse,destruct:h});e.exports=i;},null);
__d("MenuItemBase",["DOM","HTML","MenuItemInterface","cx"],function(a,b,c,d,e,f,g,h,i,j){for(var k in i)if(i.hasOwnProperty(k))m[k]=i[k];var l=i===null?null:i.prototype;m.prototype=Object.create(l);m.prototype.constructor=m;m.__superConstructor__=i;function m(n){"use strict";i.call(this);this._data=n;}m.prototype.render=function(){"use strict";var n="_54ni";if(this._data.className)n+=' '+this._data.className;var o={className:n,role:'presentation'};for(var p in this._data)if(p.indexOf('data-')===0)o[p]=this._data[p];return g.create('li',o,this._renderItemContent());};m.prototype._renderItemContent=function(){"use strict";return h(this._data.markup).getNodes();};e.exports=m;},null);
__d("MenuItem",["CSS","DOM","MenuItemBase","React","cloneWithProps","copyProperties","cx","emptyFunction","startsWith"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=['href','rel','ajaxify','target'];function q(v,w){var x={};p.forEach(function(y){if(w[y])x[y]=w[y];});h.setAttributes(v,x);}function r(v){p.forEach(function(w){v.removeAttribute(w);});}for(var s in i)if(i.hasOwnProperty(s))u[s]=i[s];var t=i===null?null:i.prototype;u.prototype=Object.create(t);u.prototype.constructor=u;u.__superConstructor__=i;function u(v){"use strict";i.call(this,v);this._disabled=!!this._data.disabled;this._onclickHandler=this._data.onclick;}u.prototype.getValue=function(){"use strict";return this._data.value;};u.prototype.getLabel=function(){"use strict";return this._data.label;};u.prototype.getAccessKey=function(){"use strict";return this._data.label&&this._data.label.charAt(0);};u.prototype.focus=function(v){"use strict";if(this.isDisabled()||!this._root.offsetParent)return false;g.addClass(this._root,"_54ne");g.addClass(this._root,'selected');this._anchor.setAttribute('tabindex','0');v||this._anchor.focus();};u.prototype.blur=function(){"use strict";g.removeClass(this._root,"_54ne");g.removeClass(this._root,'selected');this._anchor.setAttribute('tabindex','-1');};u.prototype.handleClick=function(){"use strict";if(this.isDisabled())return false;if(typeof this._onclickHandler==='function')return this._onclickHandler();return true;};u.prototype.setOnClickHandler=function(v){"use strict";this._onclickHandler=v;};u.prototype._renderItemContent=function(){"use strict";this._anchor=h.create('a',{className:(("_54nc")+(this._data.icon?' '+"_54nu":''))});if(this._data.reactChildren){var v=null;if(this._data.icon)v=k(this._data.icon,{className:'mrs'});j.renderComponent(j.DOM.span(null,v,j.DOM.span({className:"_54nh"},this._data.reactChildren)),this._anchor);this._data.label=this._anchor.innerText||this._anchor.textContent;}else{var w=h.create('span',null,h.create('span',{className:"_54nh"},this._data.markup||this._data.label));if(this._data.icon)h.prependContent(w,this._data.icon);h.setContent(this._anchor,w);}if(!this.isDisabled())q(this._anchor,this._data);for(var x in this._data)if(typeof x==='string'&&(o(x,'data-')||o(x,'aria-')))this._anchor.setAttribute(x,this._data[x]);this._anchor.setAttribute('role','menuitem');var y=this._data.title;y&&this._anchor.setAttribute('title',y);return this._anchor;};u.prototype.isDisabled=function(){"use strict";return this._disabled;};u.prototype.enable=function(){"use strict";q(this._anchor,this._data);this._anchor.tabIndex=0;g.removeClass(this._root,"_5arm");this._disabled=false;};u.prototype.disable=function(){"use strict";r(this._anchor);this._anchor.tabIndex=-1;g.addClass(this._root,"_5arm");this._disabled=true;};u.prototype.render=function(){"use strict";var v=t.render.call(this);if(this._data.disabled)g.addClass(v,"_5arm");return v;};u.prototype.destroy=function(){"use strict";if(this._anchor)j.unmountComponentAtNode(this._anchor);};l(u.prototype,{hasAction:n.thatReturnsTrue});e.exports=u;},null);
__d("MenuSelectableItem",["CSS","MenuItem","copyProperties","cx"],function(a,b,c,d,e,f,g,h,i,j){for(var k in h)if(h.hasOwnProperty(k))m[k]=h[k];var l=h===null?null:h.prototype;m.prototype=Object.create(l);m.prototype.constructor=m;m.__superConstructor__=h;function m(n){"use strict";h.call(this,n);this._selected=!!this._data.selected;}m.prototype.getLabel=function(){"use strict";return this._data.label;};m.prototype.getIcon=function(){"use strict";return this._data.icon;};m.prototype.isSelected=function(){"use strict";return this._selected;};m.prototype.select=function(){"use strict";if(this.isDisabled())return false;g.addClass(this._root,"_54nd");this._anchor.setAttribute('aria-selected','true');this._selected=true;};m.prototype.deselect=function(){"use strict";g.removeClass(this._root,"_54nd");this._anchor.setAttribute('aria-selected','false');this._selected=false;};m.prototype.render=function(){"use strict";var n=l.render.call(this);if(this._data.selected){g.addClass(n,"_54nd");this._anchor.setAttribute('aria-selected','true');}return n;};i(m.prototype,{_selected:false});e.exports=m;},null);
__d("MenuTheme",["cx"],function(a,b,c,d,e,f,g){e.exports={className:"_569t"};},null);
__d("SelectableMenuUtils",[],function(a,b,c,d,e,f){var g={doesItemSupportSelect:function(i){return h(i);},isSelected:function(i){return h(i)&&i.isSelected();}};function h(i){return i.select&&i.deselect&&i.isSelected;}e.exports=g;},null);
__d("SelectableMenu",["Menu","arrayContains","createArrayFrom","SelectableMenuUtils"],function(a,b,c,d,e,f,g,h,i,j){for(var k in g)if(g.hasOwnProperty(k))m[k]=g[k];var l=g===null?null:g.prototype;m.prototype=Object.create(l);m.prototype.constructor=m;m.__superConstructor__=g;function m(){"use strict";if(g!==null)g.apply(this,arguments);}m.prototype.focusAnItem=function(){"use strict";for(var n=0;n<this._items.length;n++)if(j.isSelected(this._items[n]))if(this._focusItem(this._items[n])!==false)return true;return l.focusAnItem.call(this);};m.prototype.setValue=function(n){"use strict";if(!this._root)this._render();var o=i(n);this._items.forEach(function(p){if(j.doesItemSupportSelect(p))if(h(o,p.getValue())){p.select();}else if(j.isSelected(p))p.deselect();});this.inform('change',this._getSelection());};m.prototype._handleItemClick=function(n,o){"use strict";if(!j.doesItemSupportSelect(n))return l._handleItemClick.call(this,n,o);var p=this.inform('itemclick',{item:n,event:o});if(p)return;if(this._config.multiple){var q=j.isSelected(n)?n.deselect():n.select();if(q!==false)this.inform('change',this._getSelection());}else{if(!j.isSelected(n))if(n.select()!==false){this._items.forEach(function(r){if(j.isSelected(r)&&r!==n)r.deselect();});this.inform('change',this._getSelection());}this.done();}return n.handleClick();};m.prototype._getSelection=function(){"use strict";var n=[];this._items.forEach(function(o){if(j.isSelected(o))n.push({label:o.getLabel(),value:o.getValue(),item:o});});if(!this._config.multiple)n=n[0];return n;};e.exports=m;},null);
__d("ReactMenu",["Menu","MenuItem","MenuSelectableItem","MenuTheme","SelectableMenu","cx","flattenArray","joinClasses","merge"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=Array.prototype.slice,q=function(){};q.prototype.mountComponentIntoNode=function(){};function r(t){t.type=q;}function s(t,u){if(!Array.isArray(u))u=p.call(arguments,1);var v={ctor:g,menuitems:m(u||[]).filter(function(w){return !!w;}),config:{theme:j,maxheight:t?t.maxheight:null,className:t?t.className:null}};return o(v,t);}s.SelectableMenu=function(t,u){if(!Array.isArray(u))u=p.call(arguments,1);var v={ctor:k,menuitems:m(u||[]).filter(function(w){return !!w;}),config:{className:n("_57di",t?t.className:null),theme:j,multiple:t&&t.multiple,maxheight:t?t.maxheight:null}};return o(v,t);};s.Item=function(t,u){if(!Array.isArray(u))u=p.call(arguments,1);var v={ctor:h,reactChildren:u};r(v);return o(v,t);};s.SelectableItem=function(t,u){if(!Array.isArray(u))u=p.call(arguments,1);var v={ctor:i,reactChildren:u};r(v);return o(v,t);};s.putOnReactComponentCostume=r;e.exports=s;},null);
__d("ReactLayer",["React","ReactBrowserEventEmitter","emptyFunction","getObjectValues","invariant","merge"],function(a,b,c,d,e,f,g,h,i,j,k,l){"use strict";var m={componentDidMount:function(){this._layerContainer=document.createElement('div');this._renderContentIntoContainer();this.layer=this.createLayer(this._layerContainer);k(this.layer);this.layerSubscriptions=[];this.layerSubscribe('show',function(){this.props.onToggle&&this.props.onToggle(true);}.bind(this));this.layerSubscribe('hide',function(){this.props.onToggle&&this.props.onToggle(false);}.bind(this));this.layerSubscribe('blur',function(){this.props.onBlur&&this.props.onBlur();}.bind(this));},componentDidUpdate:function(){this._renderContentIntoContainer();this.receiveProps(this.props);},componentWillUnmount:function(){g.unmountComponentAtNode(this._layerContainer);this.layer.destroy();this.layer=null;this._layerContainer=null;while(this.layerSubscriptions.length)this.layerSubscriptions.pop().unsubscribe();},_renderContentIntoContainer:function(){g.renderComponent(g.DOM.div(null,this.props.children),this._layerContainer);},render:function(){return null;},enumerateBehaviors:function(o){o=this.getEffectiveBehaviors(o);return j(o).filter(i.thatReturnsArgument);},updateBehaviors:function(o){var p=this.getEffectiveBehaviors(this.props.behaviors),q=this.getEffectiveBehaviors(o),r;for(r in p)if(!q[r])this.layer.disableBehavior(p[r]);for(r in q){var s=p[r],t=q[r];if(s&&t){k(s===t);continue;}s&&this.layer.disableBehavior(s);t&&this.layer.enableBehavior(t);}},getEffectiveBehaviors:function(o){if(!this.getDefaultEnabledBehaviors)return o||{};return l(this.getDefaultEnabledBehaviors(),o);},layerSubscribe:function(o,p){this.layerSubscriptions.push(this.layer.subscribe(o,function(q,r){h.isEnabled()&&p(q,r);}));},getNodeForOwnerRef:function(o){var p=this.getSiblingByRef(o);return p&&p.getDOMNode();}},n={createClass:function(o){return g.createClass({mixins:[m,o]});}};e.exports=n;},null);
__d("Spotlight",["Arbiter","ArbiterMixin","DOM","JSXDOM","Layer","LayerAutoFocus","LayerTabIsolation","ModalLayer","Vector","classWithMixins","copyProperties","csx","cx","joinClasses","mixin"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){var v=p(k,u(h));for(var w in v)if(v.hasOwnProperty(w))y[w]=v[w];var x=v===null?null:v.prototype;y.prototype=Object.create(x);y.prototype.constructor=y;y.__superConstructor__=v;function y(aa,ba){"use strict";v.call(this,aa,ba);this.stageMinSize=new o(0,0);this.stagePadding=new o(0,0);}y.prototype._buildWrapper=function(aa,ba){"use strict";var ca=t("_n8 _3qx",aa.rootClassName);return (j.div({className:ca},j.div({className:"_n9"},ba)));};y.prototype._getDefaultBehaviors=function(){"use strict";return x._getDefaultBehaviors.call(this).concat([z,l,m,n]);};y.prototype.getContentRoot=function(){"use strict";if(!this._content)this._content=i.find(this.getRoot(),"div._n3");return this._content;};y.prototype.configure=function(aa){"use strict";if(aa.stageMinSize)this.stageMinSize=aa.stageMinSize;if(aa.stagePadding)this.stagePadding=aa.stagePadding;};y.prototype.onContentLoaded=function(){"use strict";this.inform('content-load');};y.prototype.updatePermalink=function(aa){"use strict";this.inform('permalinkchange',aa);};q(y.prototype,{stageMinSize:null,stagePadding:null});function z(aa){"use strict";this._layer=aa;}z.prototype.enable=function(){"use strict";this._subscription=this._layer.subscribe(['show','hide'],function(aa,ba){if(aa==='show'){g.inform('layer_shown',{type:'Spotlight'});}else g.inform('layer_hidden',{type:'Spotlight'});});};z.prototype.disable=function(){"use strict";this._subscription.unsubscribe();this._subscription=null;};q(z.prototype,{_subscription:null});e.exports=y;},null);
__d("Spotlight.react",["LayerHideOnBlur","LayerHideOnEscape","ReactLayer","Spotlight"],function(a,b,c,d,e,f,g,h,i,j){var k=i.createClass({getDefaultEnabledBehaviors:function(){return {hideOnBlur:g,hideOnEscape:h};},createLayer:function(l){var m=this.enumerateBehaviors(this.props.behaviors),n={addedBehaviors:m,rootClassName:this.props.rootClassName},o=new j(n,l);o.conditionShow(this.props.shown);if(this.props.onBeforeHide)o.subscribe('beforehide',this.props.onBeforeHide);if(this.props.onHide)o.subscribe('hide',this.props.onHide);return o;},receiveProps:function(l){this.layer.conditionShow(l.shown);}});e.exports=k;},null);
__d("XUIDialog.react",["AbstractDialog.react","LayerFadeOnShow","ReactLayer"],function(a,b,c,d,e,f,g,h,i){var j=i.createClass(g.createSpec({displayName:'XUIDialog',addedBehaviors:{LayerFadeOnShow:h}}));e.exports=j;},null);
__d("XUIMenuTheme",["cx"],function(a,b,c,d,e,f,g){e.exports={className:"_558b"};},null);
__d("ReactXUIMenu",["ReactMenu","XUIMenuTheme","XUIMenuWithSquareCorner"],function(a,b,c,d,e,f,g,h,i){function j(k,l){if(!Array.isArray(l))l=Array.prototype.slice.call(arguments,1);var m=g.apply(null,arguments);m.config.theme=h;if(!k||k.withsquarecorner!==false)m.config.behaviors=[i];return m;}j.SelectableMenu=function(k,l){if(!Array.isArray(l))l=Array.prototype.slice.call(arguments,1);var m=g.SelectableMenu(k,l);m.config.theme=h;if(!k||k.withsquarecorner!==false)m.config.behaviors=[i];return m;};j.Item=g.Item;j.SelectableItem=g.SelectableItem;e.exports=j;},null);
__d("BanzaiLogger",["Banzai"],function(a,b,c,d,e,f,g){var h='logger';function i(k){return {log:function(l,m){g.post(h+':'+l,m,k);}};}var j=i();j.create=i;e.exports=j;},null);
__d("FlexibleBlock.react",["LeftRight.react","React","cx","invariant","keyMirror","merge"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=k({left:true,right:true});function n(p){j(p.flex&&p.flex in o.FLEX);j(p.children&&p.children.length===2);}var o=h.createClass({displayName:'FlexibleBlock',render:function(){n(this.props);var p,q=this.props.children[0],r=this.props.children[1],s=this.props.flex==m.left,t=h.DOM.div({className:"_42ef"});if(s){t.props.children=[q];p=g.DIRECTION.right;}else{t.props.children=[r];p=g.DIRECTION.left;}return g(l(this.props,{direction:p}),s?t:this.props.children[0],s?this.props.children[1]:t);}});o.FLEX=m;e.exports=o;},null);
__d("endsWith",[],function(a,b,c,d,e,f){function g(h,i){return h.indexOf(i,h.length-i.length)>-1;}e.exports=g;},null);
__d("extendArray",[],function(a,b,c,d,e,f){function g(h,i){Array.prototype.push.apply(h,i);return h;}e.exports=g;},null);
__d("Dispatcher",["copyProperties","invariant"],function(a,b,c,d,e,f,g,h){var i=1;function j(){this._callbacks={};this._isPending={};this._isHandled={};this._isDispatching=false;this._pendingPayload=null;}g(j.prototype,{register:function(k){var l=i++;this._callbacks[l]=k;return l;},waitFor:function(k){h(this._isDispatching);for(var l=0;l<k.length;l++){var m=k[l];if(this._isPending[m]){h(this._isHandled[m]);continue;}h(this._callbacks[m]);this._invokeCallback(m);}},dispatch:function(k){h(!this._isDispatching);this._startDispatching(k);try{for(var l in this._callbacks){if(this._isPending[l])continue;this._invokeCallback(l);}}finally{this._stopDispatching();}},_invokeCallback:function(k){this._isPending[k]=true;this._callbacks[k](this._pendingPayload);this._isHandled[k]=true;},_startDispatching:function(k){for(var l in this._callbacks){this._isPending[l]=false;this._isHandled[l]=false;}this._pendingPayload=k;this._isDispatching=true;},_stopDispatching:function(){this._pendingPayload=null;this._isDispatching=false;}});e.exports=j;},null);
__d("PhotoStoreCore",[],function(a,b,c,d,e,f){var g={actions:{UPDATE:'update'},_photoCache:{},_postCreateCallbacks:{},getPhotoCache:function(h){if(!this._photoCache[h])throw new Error('Photo cache requested for unknown set ID');return this._photoCache[h];},hasBeenCreated:function(h){return !!this._photoCache[h];},clearSetCache:function(h){delete this._photoCache[h];delete this._postCreateCallbacks[h];},getByIndex:function(h,i,j){return this.getPhotoCache(h).getItemAtIndex(i,j);},getByIndexImmediate:function(h,i){if(this._photoCache[h])return this._photoCache[h].getItemAtIndexImmediate(i);return undefined;},getItemsInAvailableRange:function(h){var i=this.getAvailableRange(h),j=[];for(var k=i.offset;k<i.length;k++)j.push(this.getByIndexImmediate(h,k));return j;},getItemsAfterIndex:function(h,i,j,k){var l=this.getCursorByIndexImmediate(h,i);this.fetchForward(h,l,j,k);},getAllByIDImmediate:function(h){var i=Object.keys(this._photoCache);return i.map(function(j){return this.getByIndexImmediate(j,this.getIndexForID(j,h));}.bind(this)).filter(function(j){return !!j;});},getIndexForID:function(h,i){if(this._photoCache[h])return this._photoCache[h].getIndexForID(i);return undefined;},getEndIndex:function(h){var i=this.getAvailableRange(h);return i.offset+i.length-1;},getCursorByIndexImmediate:function(h,i){var j=this.getByIndexImmediate(h,i);if(j)return this._photoCache[h].getCursorForID(j.id);return undefined;},hasNextPage:function(h){var i=this.getCursorByIndexImmediate(h,this.getEndIndex(h));return this.getPhotoCache(h).hasNextPage(i);},getAvailableRange:function(h){return this.getPhotoCache(h).getAvailableRange();},hasLooped:function(h){return this.getPhotoCache(h).hasLooped();},fetchForward:function(h,i,j,k){return this.getPhotoCache(h).getItemsAfterCursor(i,j,k);},fetchBackward:function(h,i,j,k){return this.getPhotoCache(h).getItemsBeforeCursor(i,j,k);},executePostCreate:function(h,i){if(this._photoCache[h]){i&&i();}else this._postCreateCallbacks[h]=i;},runPostCreateCallback:function(h){var i=this._postCreateCallbacks[h];if(i){i();delete this._postCreateCallbacks[h];}},setPreFetchCallback:function(h,i){this.getPhotoCache(h).setPreFetchCallback(i);},updateData:function(h){var i=h.set_id;if(!this._photoCache[i]){this._photoCache[i]=new h.cache_class(h);this.runPostCreateCallback(i);}else if(h.query_metadata.action==g.actions.UPDATE){this._photoCache[i].updateData(h);}else this._photoCache[i].addData(h);},updateFeedbackData:function(h){var i=Object.keys(h);i.forEach(function(j){return g.getAllByIDImmediate(j).forEach(function(k){k.feedback=h[j].feedback;});});}};e.exports=g;},null);
__d("TypeaheadFacepile",["DOM"],function(a,b,c,d,e,f,g){function h(){}h.render=function(i){var j=[g.create('span',{className:'splitpic leftpic'},[g.create('img',{alt:'',src:i[0]})]),g.create('span',{className:'splitpic'+(i[2]?' toppic':'')},[g.create('img',{alt:'',src:i[1]})])];if(i[2])j.push(g.create('span',{className:'splitpic bottompic'},[g.create('img',{alt:'',src:i[2]})]));return g.create('span',{className:'splitpics clearfix'},j);};e.exports=h;},null);
__d("BasicTypeaheadRenderer",["BadgeHelper","DOM"],function(a,b,c,d,e,f,g,h){function i(j,k){var l=[];if(j.icon)l.push(h.create('img',{alt:'',src:j.icon}));if(j.text){var m=[j.text];if(j.is_verified)m.push(g.renderBadge('xsmall','verified'));l.push(h.create('span',{className:'text'},m));}if(j.subtext)l.push(h.create('span',{className:'subtext'},[j.subtext]));var n=h.create('li',{className:j.type||''},l);if(j.text)n.setAttribute('aria-label',j.text);return n;}i.className='basic';e.exports=i;},null);
__d("TypeaheadView",["ArbiterMixin","BasicTypeaheadRenderer","CSS","DOM","Event","Parent","$","copyProperties","emptyFunction","mixin"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=p(g);for(var r in q)if(q.hasOwnProperty(r))t[r]=q[r];var s=q===null?null:q.prototype;t.prototype=Object.create(s);t.prototype.constructor=t;t.__superConstructor__=q;function t(u,v){"use strict";this.element=this.content=m(u);n(this,v);}t.prototype.init=function(){"use strict";this.init=o;this.initializeEvents();this.reset();};t.prototype.initializeEvents=function(){"use strict";k.listen(this.element,{mouseup:this.mouseup.bind(this),mouseover:this.mouseover.bind(this)});};t.prototype.setTypeahead=function(u){"use strict";this.typeahead=u;};t.prototype.setAccessibilityControlElement=function(u){"use strict";this.accessibilityElement=u;};t.prototype.getElement=function(){"use strict";return this.element;};t.prototype.mouseup=function(event){"use strict";if(event.button!=2){this.select(true);event.prevent();}};t.prototype.mouseover=function(event){"use strict";if(this.ignoreMouseover){this.ignoreMouseover=false;return;}if(this.visible)this.highlight(this.getIndex(event));};t.prototype.reset=function(u){"use strict";if(!u)this.disableAutoSelect=false;this.index=-1;this.items=[];this.results=[];this.value='';this.content.innerHTML='';this.inform('reset');return this;};t.prototype.getIndex=function(event){"use strict";return this.items.indexOf(l.byTag(event.getTarget(),'li'));};t.prototype.getSelection=function(){"use strict";var u=this.results[this.index]||null;return this.visible?u:null;};t.prototype.isEmpty=function(){"use strict";return !this.results.length;};t.prototype.isVisible=function(){"use strict";return !!this.visible;};t.prototype.show=function(){"use strict";i.show(this.element);if(this.results&&this.results.length)if(this.autoSelect&&this.accessibilityElement&&this.selected)this.accessibilityElement.setAttribute('aria-activedescendant',j.getID(this.selected));this.accessibilityElement&&this.accessibilityElement.setAttribute('aria-expanded','true');this.visible=true;return this;};t.prototype.hide=function(){"use strict";i.hide(this.element);if(this.accessibilityElement){this.accessibilityElement.setAttribute('aria-expanded','false');this.accessibilityElement.removeAttribute('aria-activedescendant');}this.visible=false;return this;};t.prototype.render=function(u,v){"use strict";this.value=u;if(!v.length){this.accessibilityElement&&this.accessibilityElement.removeAttribute('aria-activedescendant');this.reset(true);return;}var w={results:v,value:u};this.inform('beforeRender',w);v=w.results;var x=this.getDefaultIndex(v);if(this.index>0&&this.index!==this.getDefaultIndex(this.results)&&this.index<this.results.length){var y=this.results[this.index];for(var z=0,aa=v.length;z<aa;++z)if(y.uid==v[z].uid){x=z;break;}}this.results=v;j.setContent(this.content,this.buildResults(v));this.items=this.getItems();this.highlight(x,false);this.inform('render',v);};t.prototype.getItems=function(){"use strict";return j.scry(this.content,'li');};t.prototype.buildResults=function(u){"use strict";var v,w=null;if(typeof this.renderer=='function'){v=this.renderer;w=this.renderer.className||'';}else{v=a.TypeaheadRenderers[this.renderer];w=this.renderer;}v=v.bind(this);var x=u.map(function(z,aa){var ba=z.node||v(z,aa);ba.setAttribute('role','option');return ba;}),y=j.create('ul',{className:w,id:'typeahead_list_'+(this.typeahead?j.getID(this.typeahead):j.getID(this.element))},x);y.setAttribute('role','listbox');return y;};t.prototype.getDefaultIndex=function(){"use strict";var u=(this.autoSelect&&!this.disableAutoSelect);return this.index<0&&!u?-1:0;};t.prototype.next=function(){"use strict";this.highlight(this.index+1);this.inform('next',this.selected);};t.prototype.prev=function(){"use strict";this.highlight(this.index-1);this.inform('prev',this.selected);};t.prototype.getItemText=function(u){"use strict";var v='';if(u){v=u.getAttribute('aria-label');if(!v){v=j.getText(u);u.setAttribute('aria-label',v);}}return v;};t.prototype.setIsViewingSelectedItems=function(u){"use strict";this.viewingSelected=u;return this;};t.prototype.getIsViewingSelectedItems=function(){"use strict";return !!this.viewingSelected;};t.prototype.highlight=function(u,v){"use strict";if(this.selected){i.removeClass(this.selected,'selected');this.selected.setAttribute('aria-selected','false');}if(u>this.items.length-1){u=-1;}else if(u<-1)u=this.items.length-1;if(u>=0&&u<this.items.length){this.selected=this.items[u];i.addClass(this.selected,'selected');this.selected.setAttribute('aria-selected','true');if(this.accessibilityElement)setTimeout((function(){this.accessibilityElement.setAttribute('aria-activedescendant',j.getID(this.selected));}).bind(this),0);}else this.accessibilityElement&&this.accessibilityElement.removeAttribute('aria-activedescendant');this.index=u;this.disableAutoSelect=(u==-1);if(v!==false)this.inform('highlight',{index:u,selected:this.results[u],element:this.selected});};t.prototype.select=function(u){"use strict";if(this.headerIndex&&u)return;var v=this.index,w=this.results[v],x=this.element.getAttribute('id');if(w){this.inform('select',{index:v,clicked:!!u,selected:w,id:x,query:this.value});this.inform('afterSelect');}};n(t.prototype,{events:['highlight','render','reset','select','beforeRender','next','prev'],renderer:h,autoSelect:false,ignoreMouseover:false});e.exports=t;},null);
__d("BucketedTypeaheadView",["DOM","TypeaheadView","tx"],function(a,b,c,d,e,f,g,h,i){for(var j in h)if(h.hasOwnProperty(j))l[j]=h[j];var k=h===null?null:h.prototype;l.prototype=Object.create(k);l.prototype.constructor=l;l.__superConstructor__=h;function l(){"use strict";if(h!==null)h.apply(this,arguments);}l.prototype.render=function(m,n,o){"use strict";n=this.buildBuckets(m,n);return k.render.call(this,m,n,o);};l.prototype.highlight=function(m,n){"use strict";this.headerIndex=false;if(m==-1&&this.index!==0)m=this.index;while(m>=0&&m<this.items.length&&!this.isHighlightable(this.results[m])){m=m+1;this.headerIndex=true;}k.highlight.call(this,m,n);};l.prototype.buildBuckets=function(m,n){"use strict";if(!this.typeObjects||!n||!n.length)return n;var o=[],p={};for(var q=0;q<n.length;++q){var r=n[q],s=r.render_type||r.type;if(!p.hasOwnProperty(s)){p[s]=o.length;o.push([this.buildBucketHeader(s)]);}r.classNames=r.classNames||s;r.groupIndex=p[s];r.indexInGroup=o[r.groupIndex].length-1;r.globalIndex=q;o[r.groupIndex].push(r);}for(s in this.typeObjects)if(!p.hasOwnProperty(s)&&this.typeObjects[s].show_always){p[s]=o.length;o.push([this.buildBucketHeader(s)]);r=this.buildNoResultsEntry();r.classNames=r.type;r.groupIndex=p[s];r.indexInGroup=o[r.groupIndex].length-1;o[r.groupIndex].push(r);}var t=[];if(this.typeObjectsOrder){for(var u=0;u<this.typeObjectsOrder.length;++u){var v=this.typeObjectsOrder[u];if(p.hasOwnProperty(v))t=t.concat(o[p[v]]);}}else for(var w=0;w<o.length;++w)t=t.concat(o[w]);return t;};l.prototype.buildNoResultsEntry=function(){"use strict";return {uid:'disabled_result',type:'disabled_result',text:"No Results"};};l.prototype.buildBucketHeader=function(m){"use strict";var n=this.typeObjects[m];if(n===undefined)throw new Error(m+" is undefined in "+JSON.stringify(this.typeObjects));if(n.markup){n.text=n.markup;delete n.markup;}return this.typeObjects[m];};l.prototype.buildResults=function(m){"use strict";var n=k.buildResults.call(this,m);if(this.typeObjects){return g.create('div',{className:'bucketed'},[n]);}else return n;};l.prototype.isHighlightable=function(m){"use strict";return m.type!='header'&&m.type!='disabled_result';};l.prototype.select=function(m){"use strict";var n=this.results[this.index];if(n&&this.isHighlightable(n))k.select.call(this,m);};l.prototype.normalizeIndex=function(m){"use strict";var n=this.results.length;if(n===0){return -1;}else if(m<-1){return (m%n)+n+1;}else if(m>=n){return (m%n)-1;}else return m;};l.prototype.getDefaultIndex=function(m){"use strict";var n=(this.autoSelect&&!this.disableAutoSelect);if(this.index<0&&!n)return -1;if(m.length===0)return -1;var o=0;while(!this.isHighlightable(m)&&o<m.length)o++;return o;};l.prototype.prev=function(){"use strict";var m=this.results[this.normalizeIndex(this.index-1)];while(m&&!this.isHighlightable(m)){this.index=this.normalizeIndex(this.index-1);m=this.results[this.normalizeIndex(this.index-1)];}return k.prev.call(this);};l.prototype.next=function(){"use strict";var m=this.results[this.normalizeIndex(this.index+1)];while(m&&!this.isHighlightable(m)){this.index=this.normalizeIndex(this.index+1);m=this.results[this.normalizeIndex(this.index+1)];}return k.next.call(this);};e.exports=l;},null);
__d("ContextualTypeaheadView",["BucketedTypeaheadView","CSS","ContextualLayer","ContextualLayerAutoFlip","ContextualLayerHideOnScroll","DOM","DOMDimensions","Style"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){for(var o in g)if(g.hasOwnProperty(o))q[o]=g[o];var p=g===null?null:g.prototype;q.prototype=Object.create(p);q.prototype.constructor=q;q.__superConstructor__=g;function q(){"use strict";if(g!==null)g.apply(this,arguments);}q.prototype.init=function(){"use strict";this.initializeLayer();p.init.call(this);};q.prototype.initializeLayer=function(){"use strict";this.context=this.getContext();this.wrapper=l.create('div');l.appendContent(this.wrapper,this.element);h.addClass(this.element,'uiContextualTypeaheadView');this.layer=new i({context:this.context,position:'below',alignment:this.alignment,causalElement:this.causalElement,permanent:true,shouldSetARIAProperties:false},this.wrapper);this.layer.enableBehavior(k);if(n.isFixed(this.context)||this.autoflip)this.layer.enableBehavior(j);this.subscribe('render',this.renderLayer.bind(this));};q.prototype.show=function(){"use strict";if(this.minWidth){n.set(this.wrapper,'min-width',this.minWidth+'px');}else if(this.width){n.set(this.wrapper,'width',this.width+'px');}else n.set(this.wrapper,'width',m.getElementDimensions(this.context).width+'px');var r=p.show.call(this);this.layer.show();this.inform('show');return r;};q.prototype.hide=function(){"use strict";this.layer.hide();this.inform('hide');return p.hide.call(this);};q.prototype.renderLayer=function(){"use strict";if(!this.isVisible())return;if(this.layer.isShown()){this.layer.updatePosition();}else this.layer.show();};q.prototype.clearText=function(){"use strict";this.layer.getCausalElement().value='';};q.prototype.getContext=function(){"use strict";return this.element.parentNode;};e.exports=q;},null);
__d("TypeaheadCore",["Arbiter","ArbiterMixin","CSS","DOM","Event","Focus","Input","InputSelection","Keys","StickyPlaceholderInput","UserAgent","bind","copyProperties","emptyFunction","mixin"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){var v=u(h);for(var w in v)if(v.hasOwnProperty(w))y[w]=v[w];var x=v===null?null:v.prototype;y.prototype=Object.create(x);y.prototype.constructor=y;y.__superConstructor__=v;function y(z){"use strict";s(this,z);}y.prototype.init=function(z,aa,ba){"use strict";this.init=t;this.data=z;this.view=aa;this.root=ba;this.initInput();this.inputWrap=j.find(ba,'div.wrap');this.hiddenInput=j.find(ba,'input.hiddenInput');this.value='';this.nextQuery=null;this.selectedText=null;if(this.setValueOnSelect&&i.hasClass(this.inputWrap,'selected'))this.selectedText=this.getValue();this.initView();this.initData();this.initEvents();this.initToggle();this._exclusions=[];};y.prototype.initInput=function(){"use strict";this.element=j.find(this.root,'.textInput');var z=j.scry(this.element,'input')[0];if(z)this.element=z;};y.prototype.initView=function(){"use strict";this.view.subscribe('highlight',l.set.bind(null,this.element));this.view.subscribe('select',function(z,aa){this.select(aa.selected);}.bind(this));this.view.subscribe('afterSelect',function(){this.afterSelect();}.bind(this));};y.prototype.initData=function(){"use strict";this.data.subscribe('notify',function(z,aa){if(this.root.id==aa.rootid&&!this.element.disabled&&aa.value==this.getValue())this.view.render(aa.value,aa.results,aa.isAsync);}.bind(this));this.data.subscribe('respond',function(z,aa){if(aa.forceDisplay||aa.value==this.getValue()&&!this.element.disabled)this.view.render(aa.value,aa.results,aa.isAsync);}.bind(this));this.data.subscribe('activity',function(z,aa){this.fetching=aa.activity;if(!this.fetching)this.nextQuery&&this.performQuery();if(this.loading!=this.fetching){this.loading=this.fetching;this.inform('loading',{loading:this.loading});}}.bind(this));};y.prototype.initEvents=function(){"use strict";k.listen(this.view.getElement(),{mouseup:this.viewMouseup.bind(this),mousedown:this.viewMousedown.bind(this)});var z={blur:r(this,'blur'),focus:r(this,'focus'),click:r(this,'click'),keyup:r(this,'keyup'),keydown:r(this,'keydown'),keypress:r(this,'keypress')};if(q.firefox())z.input=z.keyup;k.listen(this.element,z);};y.prototype.initToggle=function(){"use strict";this.subscribe('blur',this.view.hide.bind(this.view));this.subscribe('focus',this.view.show.bind(this.view));};y.prototype.viewMousedown=function(){"use strict";this.selecting=true;};y.prototype.viewMouseup=function(){"use strict";this.selecting=false;};y.prototype.blur=function(){"use strict";if(this.selecting){this.selecting=false;return;}this.inform('blur');};y.prototype.click=function(){"use strict";var z=n.get(this.element);if(z.start==z.end)this.element.select();this.inform('click');};y.prototype.focus=function(){"use strict";this.checkValue();this.inform('focus');};y.prototype.keyup=function(){"use strict";if(this.resetOnKeyup&&!this.getValue())this.view.reset();this.checkValue();if(this.getValue().length===0)this.inform('change',null);};y.prototype.keydown=function(event){"use strict";if(!this.view.isVisible()||this.view.isEmpty()){setTimeout(this.checkValue.bind(this),0);return;}switch(k.getKeyCode(event)){case o.TAB:this.handleTab(event);return;case o.UP:this.view.prev();break;case o.DOWN:this.view.next();break;case o.ESC:this.view.reset();break;default:setTimeout(this.checkValue.bind(this),0);return;}event.kill();};y.prototype.keypress=function(event){"use strict";if(this.view.getSelection()&&k.getKeyCode(event)==o.RETURN){this.view.select();event.kill();}};y.prototype.handleTab=function(event){"use strict";if(this.preventFocusChangeOnTab)if(this.view.getSelection()){event.kill();}else event.prevent();this.view.select();};y.prototype.select=function(z){"use strict";if(z&&this.setValueOnSelect){var aa=z.orig_text||z.text;this.setValue(aa);this.setHiddenValue(z.uid);this.selectedText=aa;i.addClass(this.inputWrap,'selected');}};y.prototype.afterSelect=function(){"use strict";this.keepFocused?l.set(this.element):this.element.blur();this.resetOnSelect?this.reset():this.view.reset();};y.prototype.unselect=function(){"use strict";if(this.setValueOnSelect){this.selectedText=null;i.removeClass(this.inputWrap,'selected');}this.setHiddenValue();this.inform('unselect',this);};y.prototype.setEnabled=function(z){"use strict";var aa=z===false;this.element.disabled=aa;i.conditionClass(this.root,'uiTypeaheadDisabled',aa);};y.prototype.reset=function(){"use strict";this.unselect();this.setValue();!this.keepFocused&&m.reset(this.element);this.view.reset();this.inform('reset');};y.prototype.getElement=function(){"use strict";return this.element;};y.prototype.setExclusions=function(z){"use strict";this._exclusions=z.map(String);};y.prototype.getExclusions=function(){"use strict";return this._exclusions;};y.prototype.setValue=function(z){"use strict";this.value=this.nextQuery=z||'';m.setValue(this.element,this.value);p.update(this.element);this.inform('change',z);};y.prototype.setHiddenValue=function(z){"use strict";this.hiddenInput.value=(z||z===0)?z:'';g.inform('Form/change',{node:this.hiddenInput});};y.prototype.getValue=function(){"use strict";return m.getValue(this.element);};y.prototype.getHiddenValue=function(){"use strict";return this.hiddenInput.value||'';};y.prototype.checkValue=function(){"use strict";var z=this.getValue();if(z==this.value)return;if(this.selectedText&&this.selectedText!=z)this.unselect();var aa=Date.now(),ba=aa-this.time;this.time=aa;this.value=this.nextQuery=z;this.performQuery(ba);};y.prototype.performQuery=function(z){"use strict";if(this.selectedText)return;z=z||0;if(this.fetching&&z<this.queryTimeout){this.data.query(this.nextQuery,true,this._exclusions,z);}else{this.data.query(this.nextQuery,false,this._exclusions,z);this.nextQuery=null;}};s(y.prototype,{events:['blur','focus','click','unselect','loading'],keepFocused:true,resetOnSelect:false,resetOnKeyup:true,setValueOnSelect:false,queryTimeout:250,preventFocusChangeOnTab:false});e.exports=y;},null);
__d("PagesBanzaiLogger",["Banzai","Event","Run"],function(a,b,c,d,e,f,g,h,i){var j='pages_client_logging',k='pages_client_logging',l={VITAL_WAIT:g.VITAL_WAIT,registerLogEvent:function(m,n,o){var p=h.listen(m,'click',function(event){l.logData(n,o);});i.onLeave(function(){p.remove();});},logData:function(m,n){if(g.isEnabled(k)){var o={};if(n)o.delay=n;g.post(j,m,o);}}};e.exports=l;},null);
__d("PhotoLogger",["Event","BanzaiScuba","SpotlightViewerLoggingEvents","SubscriptionsHandler"],function(a,b,c,d,e,f,g,h,i,j){function k(l){"use strict";this.$PhotoLogger0=l;this.$PhotoLogger1={};}k.prototype.log=function(l){"use strict";if(!this.$PhotoLogger1[l]){this.$PhotoLogger2(l);this.$PhotoLogger1[l]=true;}};k.prototype.$PhotoLogger2=function(l){"use strict";this.$PhotoLogger3(i.LOADING,{uri:l});var m=new j(),n=new Image();m.addSubscriptions(g.listen(n,'load',function(){this.$PhotoLogger3(i.LOADED,{uri:l});m.release();}.bind(this)),g.listen(n,'error',function(){this.$PhotoLogger3(i.ERROR,{uri:l});m.release();}.bind(this)),g.listen(n,'abort',function(){this.$PhotoLogger3(i.ABORT,{uri:l});m.release();}.bind(this)));n.src=l;};k.prototype.logEvent=function(l){"use strict";this.$PhotoLogger3(l);};k.prototype.$PhotoLogger3=function(l,m){"use strict";var n=new h('photos_client_loading',null,{addBrowserFields:true});n.addNormal('event',l);n.addNormal('viewer',this.$PhotoLogger0);for(var o in m)n.addNormal(o,m[o]);n.post();};e.exports=k;},null);
__d("PhotoStore",["Arbiter","PhotoStoreCore"],function(a,b,c,d,e,f,g,h){g.subscribe('update-photos',function(i,j){h.updateData(j);});e.exports=h;},null);
__d("PhotoUtils",["Event","URI"],function(a,b,c,d,e,f,g,h){var i={getImagesFromData:function(j){var k=[];for(var l in j)if(l.indexOf('image')===0)k.push(j[l]);return k;},getFBIDFromData:function(j){return j&&j.id;},getOriginalImageFromData:function(j){return j.original||j.download_image;},getDownloadURLFromData:function(j){var k=this.getOriginalImageFromData(j);if(!k)return null;var l=new h(k.uri);l.addQueryData({dl:1});return l;},getPermalinkFromData:function(j){return j.permalink;},canViewerMakeCoverPhoto:function(j){return !!j.can_viewer_make_cover_photo;},getCoverPhotoURLFromData:function(j){return new h('/profile.php').addQueryData({preview_cover:i.getFBIDFromData(j)});},preload:function(j,k,l){var m=j.getDimensions();for(var n=0;n<k.length;++n){var o=m.getBestFitImageFromPhoto(k[n],m.getMaxStageDimensions()),p=new Image();l&&g.listen(p,'load',l.bind(null,k[n]));j.getLogger().log(o.uri);p.src=o.uri;}}};e.exports=i;},null);
__d("PhotoViewState",["ArbiterMixin","PhotoStore","PhotoUtils","SpotlightViewerLoggingEvents","copyProperties","mixin"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=l(g);for(var n in m)if(m.hasOwnProperty(n))p[n]=m[n];var o=m===null?null:m.prototype;p.prototype=Object.create(o);p.prototype.constructor=p;p.__superConstructor__=m;function p(q,r,s,t,u){"use strict";this._viewer=q;this._setID=r;this._updateCallback=t;this._position=s||0;this._preloaded={};this._reverse=u;}p.prototype._fetchCallback=function(q){"use strict";if(!this._viewer.isOpen())return;this._preload(q);this._log(j.DATA_FETCH_COMPLETE);};p.prototype._preload=function(q){"use strict";i.preload(this._viewer,q,function(r){this._preloaded[i.getFBIDFromData(r)]=true;}.bind(this));};p.prototype._preloadPhotosInRange=function(q,r){"use strict";var s=[];for(var t=q;t<=r;++t){var u=h.getByIndexImmediate(this._setID,t);if(u&&!this._isPreloaded(u))s.push(u);}this._preload(s);};p.prototype._isPreloaded=function(q){"use strict";return this._preloaded[i.getFBIDFromData(q)];};p.prototype.getPosition=function(){"use strict";return this._position;};p.prototype.isValidMovement=function(q){"use strict";if(!h.hasBeenCreated(this._setID))return false;if(h.hasLooped(this._setID))return true;var r=this._position+q,s=h.getAvailableRange(this._setID),t=s.offset+s.length-1;return r>=s.offset-1&&r<=t+1;};p.prototype.getRelativeMovement=function(q){"use strict";return h.getIndexForID(this._setID,q)-this._position;};p.prototype.moveCursor=function(q){"use strict";if(!this.isValidMovement(q))return false;this._position+=q;return true;};p.prototype._page=function(q){"use strict";if(!this.moveCursor(q))return;this._log(j.PAGE_BEGIN);var r=h.getByIndexImmediate(this._setID,this._position);if(!r){this.inform('photo_fetch');this._log(j.PHOTO_FETCH);}else if(!this._isPreloaded(r))this._preload([r]);h.getByIndex(this._setID,this._position,this._updateCallback);this._loadMoreIfNecessary(q>0,p.BUFFER_SIZE);this._log(j.PAGE_COMPLETE);};p.prototype.loadMoreForwardIfNecessary=function(q){"use strict";var r=h.getAvailableRange(this._setID),s=r.offset+r.length-1,t=this._position+q;if(t>s&&!h.hasLooped(this._setID)){var u=h.getCursorByIndexImmediate(this._setID,s);h.fetchForward(this._setID,u,q,this._fetchCallback.bind(this));}else this._preloadPhotosInRange(this._position+1,t);};p.prototype.loadMoreBackwardIfNecessary=function(q){"use strict";var r=h.getAvailableRange(this._setID),s=this._position-q;if(s<r.offset&&!h.hasLooped(this._setID)){var t=h.getCursorByIndexImmediate(this._setID,r.offset);h.fetchBackward(this._setID,t,q,this._fetchCallback.bind(this));}else this._preloadPhotosInRange(s,this._position-1);};p.prototype._loadMoreIfNecessary=function(q,r){"use strict";if(q){this.loadMoreForwardIfNecessary(r);}else this.loadMoreBackwardIfNecessary(r);};p.prototype.displayFirst=function(){"use strict";if(!this._viewer.isOpen())return;h.setPreFetchCallback(this._setID,function(){this._log(j.DATA_FETCH_BEGIN);}.bind(this));var q=function(r){if(!this._isPreloaded(r))this._preload([r]);this._updateCallback(r);}.bind(this);h.getByIndex(this._setID,this._position,q);if(this._reverse){this.loadMoreBackwardIfNecessary(p.BUFFER_SIZE);}else this.loadMoreForwardIfNecessary(p.BUFFER_SIZE);};p.prototype.backward=function(){"use strict";this._page(this._reverse?1:-1);};p.prototype.forward=function(){"use strict";this._page(this._reverse?-1:1);};p.prototype._log=function(q){"use strict";this._viewer.log(q);};k(p,{BUFFER_SIZE:4});e.exports=p;},null);
__d("SpotlightViewer",["React","ReactLayeredComponentMixin","Spotlight.react","cx"],function(a,b,c,d,e,f,g,h,i,j){var k=g.createClass({displayName:'SpotlightViewer',mixins:[h],renderLayers:function(){if(!this.props.open)return null;var l="_n3";if(this.props.className)l+=' '+this.props.className;return {photoLayer:i({onBeforeHide:this.props.onBeforeHide,onHide:this.props.onHide,rootClassName:this.props.rootClassName,shown:this.props.open},g.DOM.div({className:l,onClick:this.props.onClick},this.props.children))};},render:function(){return (g.DOM.div(null));}});e.exports=k;},null);
__d("SpotlightViewerBehaviorsMixin",["BehaviorsMixin","copyProperties"],function(a,b,c,d,e,f,g,h){var i={componentWillMount:function(){this.behaviors&&this.enableBehaviors(this.behaviors);},componentWillUnmount:function(){this.destroyBehaviors();}};h(i,g);e.exports=i;},null);
__d("SpotlightViewerImage",["React","cx"],function(a,b,c,d,e,f,g,h){var i=g.createClass({displayName:'SpotlightViewerImage',render:function(){return (g.DOM.img({className:"_4-od",src:this.props.src,style:{width:this.props.dimensions.x,height:this.props.dimensions.y}}));}});e.exports=i;},null);
__d("SpotlightViewerCoreMixin",["PhotoLogger","PhotoStore","PhotoUtils","PhotoViewState","SpotlightViewerImage","SpotlightViewerLoggingEvents"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m={_displayFirstPhoto:function(){h.executePostCreate(this.props.setid,this.viewState.displayFirst.bind(this.viewState));},_getInitialPosition:function(){var n;if(!this.props.clearcache)n=h.getIndexForID(this.props.setid,this.props.photoid);if(n===undefined){h.clearSetCache(this.props.setid);n=0;}return n;},componentWillMount:function(){this._logger=new g(this.getViewerID());this.log(l.OPEN_BEGIN);var n=this._getInitialPosition();this.viewState=new j(this,this.props.setid,n,this._updatePhoto,this.props.reverse);this.inform('open');this._displayFirstPhoto();},componentDidMount:function(){this._enableSubscriptions&&this._enableSubscriptions();this.log(l.OPEN_COMPLETE);},isOpen:function(){return this.state.open;},close:function(){if(!this.isOpen())return;this.log(l.CLOSE_BEGIN);this.setState({open:false},function(){this.inform('close');this.log(l.CLOSE_COMPLETE);});},componentWillUnmount:function(){this.viewState=null;},_onClickViewport:function(n){n?this.viewState.forward():this.viewState.backward();},_getMedia:function(n,o){return (k({ref:"image",src:n.uri,dimensions:o.imageDimensions}));},_getCurrentFBID:function(){return i.getFBIDFromData(this.state.photoData);},_updatePhoto:function(n){this.log(l.PHOTO_CHANGE_BEGIN);this.setState({photoData:n},function(){this.inform('photo_change',this.state.photoData);this.log(l.PHOTO_CHANGE_COMPLETE);});},getLogger:function(){return this._logger;},log:function(n){this._logger&&this._logger.logEvent(n);}};e.exports=m;},null);
__d("SpotlightViewerStageResizer",["Event","SubscriptionsHandler","Vector"],function(a,b,c,d,e,f,g,h,i){var j=520;function k(l,m){"use strict";this._subscriptionsHandler=new h();this._subscriptionsHandler.addSubscriptions(g.listen(window,'resize',this._resetStageDimensions.bind(this)));this._dimensions=l;this._minHeight=m.minHeight||j;this._minWidth=m.minWidth||j;this._resetStageDimensions();}k.prototype.destroy=function(){"use strict";this._dimensions=null;this._subscriptionsHandler.release();};k.prototype._resetStageDimensions=function(){"use strict";this._currentStageDimensions=new i(this._minWidth,this._minHeight);};k.prototype.getImageAndStageDimensions=function(l){"use strict";var m=this._dimensions.getBestFitDimensionsFromPhoto(l,this._dimensions.getMaxStageDimensions()),n=this._dimensions.getStageDimensions(m);this._currentStageDimensions=new i(Math.max(n.x,this._minWidth,this._currentStageDimensions.x),Math.max(n.y,this._minHeight,this._currentStageDimensions.y));var o=this._dimensions.getImageDimensionsForStage(m,this._currentStageDimensions);return {stageDimensions:this._currentStageDimensions,imageDimensions:o};};k.prototype.getCurrentStageDimensions=function(){"use strict";return this._currentStageDimensions;};e.exports=k;},null);
__d("PhotoViewerDimensions",["Event","PhotoUtils","Vector","copyProperties"],function(a,b,c,d,e,f,g,h,i,j){var k={verticalPadding:'number',horizontalPadding:'number',normalResDim:'object'};function l(m){"use strict";for(var n in m){if(!k[n])throw new Error("Unsupported extraData value '"+n+"' should not be used");if(typeof m[n]===k[n])this['_'+n]=m[n];}this._listener=g.listen(window,'resize',this._resetMaxStageDimensions.bind(this));}l.prototype.destroy=function(){"use strict";this._listener.remove();};l.prototype.getStageDimensions=function(m){"use strict";var n=this.getMaxStageDimensions(),o=new i(Math.min(m.x,n.x),Math.min(m.y,n.y)),p=o.x/o.y,q=m.x/m.y;if(p<q){o.y=Math.round(o.x/q);}else o.x=Math.round(o.y*q);return o;};l.prototype.getImageDimensionsForStage=function(m,n){"use strict";var o=m.x,p=m.y,q=n.x,r=n.y;if(o>=q||p>=r){var s=o/p,t=q/r;if(t<s){o=q;p=Math.round(q/s);}else if(t>s){o=Math.round(r*s);p=r;}else{o=q;p=r;}}return new i(o,p);};l.prototype.getMaxStageDimensions=function(){"use strict";if(!this._maxStageDimensions)this._maxStageDimensions=new i(i.getViewportDimensions().x-this._horizontalPadding,i.getViewportDimensions().y-this._verticalPadding);return this._maxStageDimensions;};l.prototype._resetMaxStageDimensions=function(){"use strict";this._maxStageDimensions=null;};l.prototype.getBestFitImageFromPhoto=function(m,n){"use strict";var o=null,p=h.getImagesFromData(m);p=p.sort(function(r,s){return s.width-r.width;});if(window.devicePixelRatio&&window.devicePixelRatio>1)n=new i(n.x*window.devicePixelRatio,n.y*window.devicePixelRatio);for(var q=0;q<p.length;q++)if(!o||p[q].width>=n.x||p[q].height>=n.y)o=p[q];return o;};l.prototype.getOriginalDimensionsFromPhoto=function(m){"use strict";var n=h.getOriginalImageFromData(m);return new i(n.width,n.height);};l.prototype.getBestFitDimensionsFromPhoto=function(m,n){"use strict";var o=this.getBestFitImageFromPhoto(m,n);return new i(o.width,o.height);};l.prototype.getVerticalPadding=function(){"use strict";return this._verticalPadding;};l.prototype.getHorizontalPadding=function(){"use strict";return this._horizontalPadding;};j(l.prototype,{_verticalPadding:40,_horizontalPadding:60,_normalResDim:{x:960,y:960}});e.exports=l;},null);
__d("SpotlightViewerDimensionMixin",["SpotlightViewerStageResizer","PhotoViewerDimensions"],function(a,b,c,d,e,f,g,h){var i={getInitialState:function(){this._dimensions=new h({verticalPadding:this.props.verticalPadding,horizontalPadding:this.props.horizontalPadding});this._resizer=new g(this._dimensions,{minHeight:this.props.minHeight,minWidth:this.props.minWidth});return {maxStageDimensions:this._dimensions.getMaxStageDimensions()};},componentWillUnmount:function(){this._resizer&&this._resizer.destroy();this._resizer=null;this._dimensions&&this._dimensions.destroy();this._dimensions=null;},getMedia:function(){if(this.state.photoData){var j=this._resizer.getImageAndStageDimensions(this.state.photoData),k=this._dimensions.getBestFitImageFromPhoto(this.state.photoData,this.state.maxStageDimensions);return this._getMedia(k,j);}else return null;},getDimensions:function(){return this._dimensions;},getStageDimensions:function(){if(this.state.photoData){return this._resizer.getImageAndStageDimensions(this.state.photoData).stageDimensions;}else return this._dimensions.getMaxStageDimensions();},getImageDimensions:function(){if(!this.state.photoData)return null;return this._resizer.getImageAndStageDimensions(this.state.photoData).imageDimensions;},onResize:function(){this.setState({maxStageDimensions:this._dimensions.getMaxStageDimensions()});}};e.exports=i;},null);
__d("SpotlightViewerAutoResize",["Event","SubscriptionsHandler","invariant"],function(a,b,c,d,e,f,g,h,i){function j(k){"use strict";this.$SpotlightViewerAutoResize0=k;i(typeof this.$SpotlightViewerAutoResize0.onResize==='function');}j.prototype.enable=function(){"use strict";this.$SpotlightViewerAutoResize1=new h();this.$SpotlightViewerAutoResize1.addSubscriptions(g.listen(window,'resize',this.$SpotlightViewerAutoResize0.onResize.bind(this.$SpotlightViewerAutoResize0)));};j.prototype.disable=function(){"use strict";this.$SpotlightViewerAutoResize1.release();delete this.$SpotlightViewerAutoResize1;};e.exports=j;},null);
__d("TypeaheadBestName",["TokenizeUtil","copyProperties"],function(a,b,c,d,e,f,g,h){function i(j){"use strict";this._typeahead=j;}i.prototype.enable=function(){"use strict";var j=this._typeahead.getView();this._subscription=j.subscribe('beforeRender',function(k,l){var m=l.value;for(var n=0;n<l.results.length;++n){var o=l.results[n];if(o.alternate_names==null)continue;if(g.isQueryMatch(m,o.default_name)){o.text=o.default_name;return;}for(var p=0;p<o.alternate_names.length;p++)if(g.isQueryMatch(m,o.alternate_names[p])){o.text=o.alternate_names[p];return;}o.text=o.default_name;}});};i.prototype.disable=function(){"use strict";this._typeahead.getView().unsubscribe(this._subscription);this._subscription=null;};h(i.prototype,{_subscription:null});e.exports=i;},null);
__d("legacy:BestNameTypeaheadBehavior",["TypeaheadBestName"],function(a,b,c,d,e,f,g){if(!a.TypeaheadBehaviors)a.TypeaheadBehaviors={};a.TypeaheadBehaviors.buildBestAvailableNames=function(h){h.enableBehavior(g);};},3);
__d("MenuSeparator",["DOM","MenuItemInterface","cx"],function(a,b,c,d,e,f,g,h,i){for(var j in h)if(h.hasOwnProperty(j))l[j]=h[j];var k=h===null?null:h.prototype;l.prototype=Object.create(k);l.prototype.constructor=l;l.__superConstructor__=h;function l(m){"use strict";h.call(this,m);this._data=m;}l.prototype.render=function(){"use strict";var m="_54ak";if(this._data.className)m+=' '+this._data.className;var n=this._data.label||'';return g.create('li',{className:m,role:'separator'},n);};e.exports=l;},null);
__d("XUIBadge",["CSS","DOM","cx","invariant"],function(a,b,c,d,e,f,g,h,i,j){function k(m){return parseInt(m,10)===m;}function l(m){"use strict";this.target=m.target;this.count=m.count;this.maxcount=m.maxcount;}l.prototype.getCount=function(){"use strict";return this.count;};l.prototype.setCount=function(m){"use strict";j(k(m));j(m>=0);this.count=m;g.conditionClass(this.target,'hidden_elem',this.count===0);if(m>this.maxcount){h.setContent(this.target,this.maxcount+'+');g.addClass(this.target,"_5ugi");}else{h.setContent(this.target,m);g.removeClass(this.target,"_5ugi");}};l.prototype.setLegacyContent=function(m){"use strict";if(typeof m==='string'){g.conditionClass(this.target,'hidden_elem',m==0);h.setContent(this.target,m);g.removeClass(this.target,"_5ugi");}else this.setCount(m);};l.prototype.increment=function(){"use strict";this.setCount(this.getCount()+1);};e.exports=l;},null);
__d("CompactTypeaheadRenderer",["BadgeHelper","DOM","TypeaheadFacepile"],function(a,b,c,d,e,f,g,h,i){function j(k,l){var m=[];if(k.xhp)return h.create('li',{className:'raw'},k.xhp);var n=k.photos||k.photo;if(n){if(n instanceof Array){n=i.render(n);}else n=h.create('img',{alt:'',src:n});m.push(n);}if(k.text){var o=[k.text];if(k.is_verified)o.push(g.renderBadge('xsmall','verified'));m.push(h.create('span',{className:'text'},o));}var p=k.subtext,q=k.category;if(p||q){var r=[];p&&r.push(p);p&&q&&r.push(" \u00b7 ");q&&r.push(q);m.push(h.create('span',{className:'subtext'},r));}var s=h.create('li',{className:k.type||''},m);return s;}j.className='compact';e.exports=j;},null);
Die cut paper and acrylic
請登入以留下評註!