if (self.CavalryLogger) { CavalryLogger.start_js(["LkIQ6"]); } __d("VideoCopyrightSegmentSource",[],(function(a,b,c,d,e,f){e.exports={UNKNOWN:"UNKNOWN",REFERENCE_CONFLICT:"REFERENCE_CONFLICT",POPULAR_MATCHES:"POPULAR_MATCHES",PUBLISHER_DEFINED:"PUBLISHER_DEFINED",AM_MUTING:"AM_MUTING",RIDGE_MATCHES:"RIDGE_MATCHES",PAUSE_LIVE_MONITORING:"PAUSE_LIVE_MONITORING",LABEL_MUTED:"LABEL_MUTED",PUBLISHER_MUTED:"PUBLISHER_MUTED",MUSIC_RESTRICTION_MUTED_STILL_VIDEO:"MUSIC_RESTRICTION_MUTED_STILL_VIDEO",MUSIC_RESTRICTION_MUTED_MULTI_TRACK:"MUSIC_RESTRICTION_MUTED_MULTI_TRACK",AUDIO_LIBRARY_USAGE:"AUDIO_LIBRARY_USAGE",INTERNAL_OPS_REVIEW:"INTERNAL_OPS_REVIEW"}}),null); __d("SUIAudiencePlatformTheme",["cssVar","Icon.atlas","React","SUIAtlasIcon.react","SUITheme","SUITypeStyle"],(function(a,b,c,d,e,f,g){"use strict";var h={black:"#000000",white:"#FFFFFF",fbBlue:"#3b5998",bgBlue:"#e9ebee",accentBlue:"#4080ff",red:"#fa3e3e",green:"#42b72a",blue90:"#4267b2",blue80:"#4267b2",blue70:"#577fbc",blue60:"#7596c8",blue50:"#9cb4d8",blue40:"#9cb4d8",blue30:"#c4d2e7",blue20:"#c4d2e7",blue10:"#ecf0f7",blue5:"#f6f7f9",blue2:"#f6f7f9",blueblack90:"#0d0d0d",blueblack80:"#191919",blueblack70:"#262626",blueblack60:"#162643",blueblack50:"#162643",blueblack40:"#20375f",blueblack30:"#20375f",blueblack20:"#29487d",blueblack10:"#29487d",blueblack5:"#365899",blueblack2:"#365899",bluegray90:"#1d2129",bluegray80:"#1d2129",bluegray70:"#1d2129",bluegray60:"#4b4f56",bluegray50:"#4b4f56",bluegray40:"#90949c",bluegray30:"#90949c",bluegray20:"#bec2c9",bluegray10:"#dddfe2",bluegray5:"#e9ebee",bluegray2:"#f6f7f9",gray90:"#191919",gray80:"#333333",gray70:"#4c4c4c",gray60:"#666666",gray50:"#7f7f7f",gray40:"#999999",gray30:"#b2b2b2",gray20:"#cccccc",gray10:"#e5e5e5",gray5:"#f2f2f2",gray2:"#fafafa",textLink:"#365899",textLinkLight:"#4267b2",textDark:"#1d2129",textMedium:"#4b4f56",textLight:"#90949c",textInverseLight:"#FFFFFF",textInverseMedium:"#cccccc",textInverseDark:"#7f7f7f",textPlaceholder:"#90949c",textPlaceholderFocused:"#bec2c9",greenButtonBorder:"#60A62E",greenButtonNormal:"#68B92E",greenButtonPressed:"#45A800",redLight:"#ffbaba",yellow:"#ffcc00",yellowLight:"#fef7e4"};a={heading:new(b("SUITypeStyle"))({fontSize:"24px",color:"#1d2129",fontFamily:"Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif",fontWeight:"bold"}),type16:new(b("SUITypeStyle"))({fontSize:"16px",color:"#1d2129",fontFamily:"Helvetica, Arial, sans-serif"}),type12:new(b("SUITypeStyle"))({fontSize:"12px",color:"#1d2129",fontFamily:"Helvetica, Arial, sans-serif"}),type11:new(b("SUITypeStyle"))({fontSize:"11px",color:"#1d2129",fontFamily:"Helvetica, Arial, sans-serif"}),code12:new(b("SUITypeStyle"))({fontSize:"12px",color:"#1d2129",fontFamily:"Menlo, Consolas, Monaco, monospace"})};c=function(a){return b("React").createElement(b("SUIAtlasIcon.react"),babelHelpers["extends"]({},a,{colorDefault:h.gray50,colorDisabled:h.gray10,colorHover:h.gray70,name:"delete"}))};d={SUIButton:{height:{normal:32,"short":32,tall:48},padding:{normal:{button:"16px",icon:"6px",onlyIcon:"19px"},"short":{button:"16px",icon:"6px",onlyIcon:"19px"},tall:{button:"16px",icon:"6px",onlyIcon:"19px"}},typeStyle:a.type12,use:{confirm:{active:{background:h.blueblack20,borderColor:h.blueblack30,color:h.white},disabled:{background:h.white,borderColor:h.gray10,color:h.textLight},hover:{background:h.blueblack10,borderColor:h.blueblack30,color:h.white},normal:{background:h.blueblack30,borderColor:h.blueblack30,color:h.white}},"default":{active:{background:h.gray5,borderColor:h.gray20,color:h.textMedium},disabled:{background:h.white,borderColor:h.gray10,color:h.textLight},hover:{background:h.white,borderColor:h.gray30,color:h.textMedium},normal:{background:h.white,borderColor:h.gray20,color:h.textMedium}},special:{active:{background:h.greenButtonPressed,borderColor:h.greenButtonBorder,color:h.white},disabled:{background:h.white,borderColor:h.gray10,color:h.textLight},hover:{background:h.greenButtonNormal,borderColor:h.greenButtonBorder,color:h.white},normal:{background:h.greenButtonNormal,borderColor:h.greenButtonBorder,color:h.white}},flat:{active:{background:"transparent",borderColor:"transparent",color:h.textMedium},disabled:{background:"transparent",borderColor:"transparent",color:h.textLight},hover:{background:"transparent",borderColor:"transparent",color:h.textMedium},normal:{background:"transparent",borderColor:"transparent",color:h.textMedium}},flatWhite:{active:{background:"transparent",borderColor:"transparent",color:h.white},disabled:{background:"transparent",borderColor:"transparent",color:h.textLight},hover:{background:"transparent",borderColor:"transparent",color:h.white},normal:{background:"transparent",borderColor:"transparent",color:h.white}}}},SUIButtonIcon:{colorConfirm:h.white,colorDefault:h.textDark,colorDisabled:h.white,colorSpecial:h.white,defaultSize:18,iconComponent:b("SUIAtlasIcon.react")},SUIThreeStateCheckboxInput:{activeCheckboxBackgroundColor:h.white,activeCheckboxBorderColor:h.accentBlue,checkboxBackgroundColor:h.white,checkboxBorderColor:h.gray20,checkedIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.textDark,name:"check",size:14}),disabledLabelColor:h.textLight,labelColor:h.textDark,partiallyCheckedIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.textDark,name:"dash",size:14}),typeStyle:a.type12},SUICardDEPRECATED:{colors:{background:h.white,border:h.gray5,footerBackground:h.gray2,innerBorder:h.gray20},typeStyles:{content:a.type12,footer:a.type12,header:a.type16}},SUICloseButton:{dark:{large:c,small:c},light:{large:c,small:c},iconSize:{large:14,small:14}},SUICustomPopover_DEPRECATED:{backgroundColor:h.white,borderColor:h.gray10,borderHighlightColor:h.green,color:h.gray70},SUITooltip:{backgroundColor:h.black,color:h.white,typeStyle:babelHelpers["extends"]({},a.type12,{WebkitFontSmoothing:"auto"})},SUIDateInput:{inputIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.gray30,name:"calendarMonth",size:24}),layerBackgroundColor:h.white,layerBorderColor:h.gray10},SUICalendarPager:{dayColor:h.gray70,dayDisabledColor:h.gray20,dayNameColor:h.gray20,gridBorderColor:h.gray10,pagerBackgroundColor:h.gray5,pagerBorderColor:h.gray5,rangeBackgroundColor:h.gray10,selectedBackgroundColor:h.blue50,typeStyle:a.type12},SUIDateTimeRangePicker:{backgroundColor:h.white,borderColor:h.gray10,typeStyle:a.type12},SUIError:{error:{borderColor:h.red,icon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.red,name:"warning",size:24})},warning:{borderColor:h.yellow,icon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.yellow,name:"warning",size:24})}},SUIHelpMessage:{icon:b("React").createElement(b("SUIAtlasIcon.react"),{name:"information",style:{color:h.textLight}})},SUIHighlightedText:{backgroundColor:h.blue50},SUIInlineTypeahead:{dividerBorderColor:h.gray10,searchIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.gray50,name:"search"})},SUILoadingBar:{backgroundColor:h.bgBlue,movingColor:h.blue50},SUILink:{hoverColor:h.blueblack30,normalColor:h.fbBlue},SUIModalCardDEPRECATED:{boxShadow:"0px 1px 0px 0px rgba(0, 0, 0, 0.10)",colors:{background:h.gray2,border:h.gray5,footerBackground:h.white,headerBackground:h.white,innerBorder:h.gray20},fullWidthFooterDivider:!0,padding:{contentLightPadding:{paddingBottom:"8px",paddingLeft:"24px",paddingRight:"24px",paddingTop:"8px"},contentNormalPadding:{paddingBottom:"24px",paddingLeft:"24px",paddingRight:"24px",paddingTop:"24px"},footer:{paddingBottom:"0",paddingLeft:"24px",paddingRight:"8px",paddingTop:"0"},header:{paddingBottom:"0",paddingLeft:"24px",paddingRight:"8px",paddingTop:"0"}},typeStyles:{content:a.type12,footer:a.type16,header:a.type16}},SUINameCell:{description:{color:h.gray70,typeStyle:a.type11},height:48},SUINestedTable:{borderColor:h.gray20,evenBackgroundColor:h.white,loadingColor:h.gray30,loadingBackgroundColor:h.gray2,oddBackgroundColor:h.gray2,rowIconClosedName:"chevronRight",rowIconComponent:b("Icon.atlas"),rowIconOpenName:"chevronDown",textColor:h.gray70,textStyle:a.type12},SUIRadioList:{activeBackgroundColor:"#dddfe2",activeBorderColor:"#bec2c9",activeDotColor:"#4b4f56",backgroundColor:"#f6f7f9",borderColor:"#dddfe2",disabledBackgroundColor:"#f6f7f9",disabledBorderColor:"#dddfe2",disabledDotColor:"#dddfe2",disabledTypeColor:h.textMedium,dotColor:"#4b4f56",enabledTypeColor:h.textDark,typeStyle:a.type12},SUISearchableSelector:{disabledSubtitleTypeStyle:a.type12,disabledTitleTypeStyle:a.type12,dropdownBackgroundColor:h.white,dropdownBorderColor:h.gray10,headerBackgroundColor:h.white,headerTypeStyle:a.type12,subtitleColor:h.gray30,subtitleTypeStyle:a.type12,titleTypeStyle:a.type12},SUISearchInput:{cancelIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.gray10,colorHover:h.gray20,name:"delete"}),searchIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.gray10,colorFocused:h.gray20,name:"search",size:24})},SUISectionHeading:{borderColor:"#C4C6CA",color:"#535A67",typeStyle:a.heading},SUISelector:{backgroundColor:h.white,borderColor:h.gray10,boxShadow:"none"},SUISelectorButton:{use:{"default":{chevron:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.gray70,colorDisabled:h.gray30,name:"chevronDown",size:12})}},padding:"12px"},SUISelectorOption:{activeBackgroundColor:h.blue30,activeColor:h.gray70,color:h.gray70,descriptionColor:h.gray40,descriptionSelectedColor:h.gray10,disabledBackgroundColor:h.gray10,disabledColor:h.white,highlightedBackgroundColor:h.blue30,highlightedColor:h.gray70,padding:{bottom:"8px",left:"12px",right:"24px",top:"8px"},paddingWhenNoValue:{bottom:"8px",left:"12px",right:"24px",top:"8px"},selectedBackgroundColor:h.blue90,selectedColor:h.white,selectedTypeStyle:a.type12,typeStyle:a.type12},SUISelectorSeparator:{color:h.gray10,margin:{bottom:"12px",left:"12px",right:"12px",top:"12px"}},SUISpinner:{activeColor:h.gray50,backgroundColor:h.gray20,darkActiveColor:h.gray50,darkBackgroundColor:h.gray20,sizes:{large:{border:2,diameter:20},small:{border:1.5,diameter:12}}},SUITableDEPRECATED:{cellPadding:8,colors:{cell:h.textDark,cellBorder:h.gray20,cellErrorBackground:h.redLight,cellHoverBackground:"initial",cellModifiedBackground:h.gray10,cellSelectedBackground:h.blue20,cellSelectedHoverBackground:"initial",cellWarningBackground:h.yellowLight,error:h.red,heading:h.textDark,headingBackground:h.white,headingRule:"#dcdee4",highlight:h.accentBlue,loading:h.gray30,loadingBackground:h.gray2,noItemsMessage:h.textDark,rowBackground:h.white,rowStripe:h.blue2,text:h.textDark,warning:h.yellow},textStyles:{cell:a.type12,heading:a.type12,table:a.type12}},SUITextArea:{disabled:{background:h.gray2,borderColor:h.gray10},enabled:{background:h.white,borderColor:h.gray20},focusedBorderColor:"#4080ff",placeholderColor:h.textPlaceholder,placeholderColorFocused:h.textPlaceholderFocused,typeStyle:a.type12},SUITextInput:{characterCountTypeStyle:new(b("SUITypeStyle"))({color:h.textPlaceholder,fontFamily:"Helvetica, Arial, sans-serif",fontSize:"11px",fontWeight:"normal"}),disabled:{background:h.gray2,borderColor:h.gray10},enabled:{background:h.white,borderColor:h.gray20},errorIconMargin:"3px",focusedBorderColor:"#4080ff",height:32,maxLengthHighlightColor:"rgba(250, 62, 62, 0.3)",placeholderColor:h.textPlaceholder,placeholderColorFocused:h.textPlaceholderFocused,typeStyle:a.type12},SUIToggle:{height:26,off:{hover:{backgroundColor:h.gray30,color:h.gray70},normal:{backgroundColor:h.gray20,color:h.gray50}},on:{hover:{backgroundColor:h.gray70,color:h.gray2},normal:{backgroundColor:h.gray50,color:h.gray2}},switchColor:h.white,typeStyle:a.type12},SUIToken:{backgroundColor:h.bluegray5,color:h.blueblack50,typeStyle:a.type12},SUITokenizer:{disabled:{backgroundColor:h.gray2,borderColor:h.gray20},enabled:{backgroundColor:h.white,borderColor:h.gray20},typeaheadInput:{typeStyle:a.type12}},SUITokenizerItem:{disabled:{color:h.gray30,subtitleColor:h.gray20},highlighted:{backgroundColor:h.bluegray5,color:h.gray80,subtitleColor:h.gray50},normal:{color:h.gray70,subtitleColor:h.gray50},remove:{disabledIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.gray30,name:"delete",size:14}),highlightedIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.gray80,name:"delete",size:14}),normalIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.gray70,name:"delete",size:14}),selectedIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.white,name:"delete",size:14})},selected:{backgroundColor:h.blue50,color:h.white,disabledIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.gray30,name:"check",size:14}),highlightedIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.gray80,name:"check",size:14}),isIconShownForSingleSelection:!1,normalIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.gray70,name:"check",size:14}),selectedIcon:b("React").createElement(b("SUIAtlasIcon.react"),{colorDefault:h.white,name:"check",size:14}),subtitleColor:h.bluegray5}},SUITokenizerItemList:{backgroundColor:h.white,borderColor:h.gray10,categoryHeader:{borderColor:h.gray5,typeStyle:a.type16},typeStyle:a.type12},SUITypeahead:{input:{backgroundColor:h.white,borderColor:h.gray20,errorBorderColor:h.red,focusedBorderColor:"#4080ff",typeStyle:a.type12,height:32},disabled:{backgroundColor:h.gray2,borderColor:h.gray10},dropdown:{backgroundColor:h.white,borderColor:h.gray5,boxShadow:"0px 2px 1px -1px rgba(0, 0, 0, 0.10)",itemPadding:{bottom:"8px",left:"12px",right:"12px",top:"8px"}},highlight:{backgroundColor:h.bluegray5}},SUIHorizontalLayout:{margin:8}};f=new(b("SUITheme"))({id:"audienceplatform",components:d});e.exports=f}),null); __d("Heap",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a,b){return a0&&(this._items[0]=b,this._sinkDown(0));return a};b.push=function(a){this._items[this._size++]=a,this._bubbleUp(this._size-1)};b.size=function(){return this._size};b.peek=function(){if(this._size===0)return;return this._items[0]};b._heapify=function(){for(var a=Math.floor((this._size+1)/2);a>=0;a--)this._sinkDown(a)};b._bubbleUp=function(a){var b=this._items[a];while(a>0){var c=Math.floor((a+1)/2)-1,d=this._items[c];if(this._comparator(d,b))return;this._items[c]=b;this._items[a]=d;a=c}};b._sinkDown=function(a){__p&&__p();var b=this._items[a];while(!0){var c=2*(a+1)-1,d=2*(a+1),e=-1;if(c=b&&f<=c)return null;b-e>f-c?(b=e,a.$3.pop()):(b=f,a.$5.pop());c=a.$1[b];delete a.$1[b];a.$1[d]=c;a.$7(c,d);return c};this.$1={};this.$2=0;this.$3=new(b("Heap"))([],this.$4);this.$5=new(b("Heap"))([],this.$6)}var c=a.prototype;c.$7=function(a,b){a={position:a,value:b};this.$3.push(a);this.$5.push(a)};c.$8=function(){this.$9(this.$3);this.$9(this.$5);var a=Math.min(this.$3.size(),this.$5.size()),b=Math.max(this.$3.size(),this.$5.size());b>10*a&&this.$10()};c.$10=function(){var a=this.$3.size()b.value};return a}();e.exports=a}),null); __d("LayoutHelper",["invariant","BinaryIndexedTree","clamp"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,c,d){__p&&__p();this.$1=b("BinaryIndexedTree").uniform(a,c);this.$2=[];for(var e=0;e=this.$3)return 0;if(b!==this.$2[a]){var c=b-this.$2[a];this.$1.set(a,b);this.$2[a]=b;this.$5+=c;b=this.$1.greatestLowerBound(this.$4);a=0)while(a>0&&c0&&c>=0)a=0&&(d=this.$2[c])}a=this.$5-this.$7;e=b("clamp")(e,0,a);this.$4=e};c.$11=function(a){var b=a,c=this.$2[b];while(c=0)b--,b>=0&&(c+=this.$2[b]);b=this.$1.sumTo(a)-this.$7;b<0&&(b=0);return b};c.scrollTo=function(a){var b=a;if(a<=0)b=0;else if(a>=this.$5-this.$7){a=this.$3-1;b=this.$11(a)}this.$4=b};c.canHandleScrollBy=function(a){if(a===0||this.$50&&this.$4===this.$5-this.$7)return!1;else if(a<0&&this.$4===0)return!1;return!0};c.$12=function(a){__p&&__p();var b=this.$8;a=a.getChangesSince(b);b=a.pointer;a=a.changes;var c=0;while(c= 70")&&b("BrowserSupportCore").hasCSS3DTransforms())return function(a,b,c){a[g]="translate3d("+b+"px,"+c+"px,0)",a[h]="hidden"};else return function(a,b,c){a[g]="translate("+b+"px,"+c+"px)"};else return function(a,b,c){a.left=b+"px",a.top=c+"px"}}();e.exports=a}),null); __d("Scrollbar.react",["cssVar","cx","DOMEventListener","DOMMouseMoveTracker","Keys","React","ReactDOM","ReactWheelHandler","emptyFunction","translateDOMPositionXY"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=b("React").PropTypes;var i={position:0,scrollable:!1},j=parseInt("4px",10),k=j*2,l=30,m=40,n=1,o={DRAG:"drag",KEYBOARD:"keyboard",MOUSEWHEEL:"mousewheel",TRACK_CLICK:"track_click"},p={defaultPosition:0,isOpaque:!1,onScroll:b("emptyFunction"),orientation:"vertical",zIndex:99},q=null;c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this,c)||this;d.$2=!1;d.$5=null;d.$19=function(a){return d.props.orientation==="horizontal"?d.$25(a):!1};d.$20=function(a){return d.props.orientation!=="horizontal"?d.$25(a):!1};d.$15=function(){if(!d.$1){d.$1=!0;var a=b("ReactDOM").findDOMNode(babelHelpers.assertThisInitialized(d));a&&d.$8&&b("DOMEventListener").add(a,"wheel",d.$8.onWheel,{passive:!1})}};d.$16=function(){d.$1=!1;var a=b("ReactDOM").findDOMNode(babelHelpers.assertThisInitialized(d));a&&d.$8&&b("DOMEventListener").remove(a,"wheel",d.$8.onWheel,{passive:!1})};d.$18=function(a,b){d.$24(b)};d.$17=function(a,b){d.$24(a)};d.$14=function(a){__p&&__p();if(a.target!==b("ReactDOM").findDOMNode(d.refs.face)){var c=a.nativeEvent;c=d.state.isHorizontal===!0?c.offsetX||c.layerX:c.offsetY||c.layerY;d.state.isHorizontal&&d.props.isRTL&&(c=d.props.size-c);if(!d.state.scrollable)return;var e=d.props;c/=d.state.scale;c=d.$9(c-d.state.faceSize*.5/d.state.scale,e.size,e.contentSize,e.orientation,d.state.isDragging?o.DRAG:o.TRACK_CLICK)}else c={};c.focused=!0;d.$10(c);d.$3&&d.$3.captureMouseMoves(a);b("ReactDOM").findDOMNode(babelHelpers.assertThisInitialized(d)).focus({preventScroll:!0})};d.$21=function(a,b){if(!d.state.scrollable)return;var c=d.props;a=d.state.isHorizontal?a:b;d.state.isHorizontal&&d.props.isRTL&&(a*=-1);a/=d.state.scale;d.$10(d.$9(d.state.position+a,c.size,c.contentSize,c.orientation,o.DRAG))};d.$22=function(){d.$4=null,d.$3&&d.$3.releaseMouseMoves(),d.setState({isDragging:!1})};d.$13=function(a){__p&&__p();var c=a.keyCode;if(c===b("Keys").TAB)return;var e=m,f=0;if(d.state.isHorizontal)switch(c){case b("Keys").HOME:f=-1;e=d.props.contentSize;break;case b("Keys").LEFT:f=d.props.isRTL?1:-1;break;case b("Keys").RIGHT:f=d.props.isRTL?-1:1;break;default:return}if(!d.state.isHorizontal)switch(c){case b("Keys").SPACE:a.shiftKey?f=-1:f=1;break;case b("Keys").HOME:f=-1;e=d.props.contentSize;break;case b("Keys").UP:f=-1;break;case b("Keys").DOWN:f=1;break;case b("Keys").PAGE_UP:f=-1;e=d.props.size;break;case b("Keys").PAGE_DOWN:f=1;e=d.props.size;break;default:return}a.preventDefault();c=d.props;d.$10(d.$9(d.state.position+e*f,c.size,c.contentSize,c.orientation,o.KEYBOARD))};d.$11=function(){d.setState({focused:!0})};d.$12=function(){d.setState({focused:!1})};d.$23=function(){d.props.onScroll(d.state.position,d.state.scrollSource)};d.state=d.getInitialState();return d}var d=c.prototype;d.getInitialState=function(){var a=this.props;return this.$9(a.position||a.defaultPosition||0,a.size,a.contentSize,a.orientation,null)};d.UNSAFE_componentWillReceiveProps=function(a){var b=a.position;b===void 0?this.$10(this.$9(this.state.position,a.size,a.contentSize,a.orientation,null)):this.$5!==b&&(this.$5=b,this.$10(this.$9(b,a.size,a.contentSize,a.orientation,null),a))};d.getDefaultProps=function(){return p};d.render=function(){__p&&__p();if(!this.state.scrollable)return null;var a=this.props.size,c=this.state.isHorizontal,d=!c,e=this.state.focused||this.state.isDragging,f=this.state.faceSize,g=this.props.isOpaque,h=this.props.verticalTop||0,i=this.props.className,l=this.state.position*this.state.scale+j;g="_1t0r"+(d?" _1t0s":"")+(c?" _1t0t":"")+" _4jdr"+(g?" _1t0u":"")+(e?" _1t0v":"");i&&(g+=" "+i);i="_1t0w"+(c?" _1t0y":"")+(d?" _1t0z":"")+(e?" _1t0-":"")+" _1t0_";d={};c?(d.width=a,e={width:f-k},l=this.props.isRTL?-l:l,b("translateDOMPositionXY")(e,l,0)):(d.top=h,d.height=a,e={height:f-k},b("translateDOMPositionXY")(e,0,l));d.zIndex=this.props.zIndex;this.props.trackColor==="gray"&&(d.backgroundColor="#f6f7f9");return b("React").createElement("div",{"data-testid":this.props["data-testid"],onFocus:this.$11,onBlur:this.$12,onKeyDown:this.$13,onMouseDown:this.$14,onMouseOver:this.$15,onMouseLeave:this.$16,className:g,style:d,tabIndex:0},b("React").createElement("div",{ref:"face",className:i,style:e}))};d.UNSAFE_componentWillMount=function(){var a=this.props.orientation==="horizontal";a=a?this.$17:this.$18;this.$8=new(b("ReactWheelHandler"))(a,this.$19,this.$20)};d.componentDidMount=function(){this.$2=!0,this.$3=new(b("DOMMouseMoveTracker"))(this.$21,this.$22,document.documentElement),this.props.position!==void 0&&this.state.position!==this.props.position&&this.$23()};d.componentWillUnmount=function(){this.$4=null,this.$3&&this.$3.releaseMouseMoves(),q===this&&(q=null),delete this.$3,this.$16(),this.$2=!1};d.scrollBy=function(a){this.$24(a)};d.$25=function(a){this.props.orientation==="horizontal"&&this.props.isRTL&&(a*=-1);a=this.$9(this.state.position+a,this.props.size,this.props.contentSize,this.props.orientation);return a.position!==this.state.position};d.$9=function(a,b,c,d,e){__p&&__p();if(b<1||c<=b)return i;var f=a+"_"+b+"_"+c+"_"+d;if(this.$7===f&&this.$6){e&&(this.$6.scrollSource=e);return this.$6}d=d==="horizontal";var g=b/c,h=b*g;hc&&(a=c);b=this.$3?this.$3.isDragging():!1;h={faceSize:h,isDragging:b,isHorizontal:d,position:a,scale:g,scrollable:!0,scrollSource:e||((c=this.state)==null?void 0:c.scrollSource)};this.$7=f;this.$6=h;return h};d.$24=function(a){var b=this.props;b.orientation==="horizontal"&&b.isRTL&&(a*=-1);this.$10(this.$9(this.state.position+a,b.size,b.contentSize,b.orientation,o.MOUSEWHEEL))};d.$26=function(){if(this.$2)try{this.$12(),b("ReactDOM").findDOMNode(this).blur()}catch(a){}};d.$10=function(a,b){b=b||this.props;var c=b.position,d=this.state.position!==a.position;b=d||b.onScroll.length>n&&a.scrollSource?this.$23:void 0;if(c===void 0||c===a.position)this.setState(a,b);else{a.position!==void 0&&a.position!==this.state.position&&this.props.onScroll(a.position,a.scrollSource);return}d&&q!==this&&(q&&q.$26(),q=this)};return c}(b("React").PureComponent);c.KEYBOARD_SCROLL_AMOUNT=m;c.SIZE=parseInt("15px",10);c.ScrollSource=o;c.propTypes={contentSize:a.number.isRequired,className:a.string,"data-testid":a.string,defaultPosition:a.number,isOpaque:a.bool,isRTL:a.bool,orientation:a.oneOf(["vertical","horizontal"]),onScroll:a.func,position:a.number,size:a.number.isRequired,trackColor:a.oneOf(["gray"]),zIndex:a.number,verticalTop:a.number};c.defaultProps=p;e.exports=c}),null); __d("SimpleList.react",["cx","DOMEventListener","IntegerBufferSet","LayoutHelper","React","ReactDOM","Scrollbar.react","joinClasses","normalizeWheel","requestPersistentAnimationFrame","translateDOMPositionXY"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").PropTypes;c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this,c)||this;d.$3=null;d.$2=null;d.$4=null;d.$5=null;d.$6=!1;d.$10=function(){d.setState({isScrolling:!0})};d.$11=function(){d.$4=!1,d.setState({isScrolling:!1})};d.$12=function(){if(!d.$6){d.$6=!0;var a=b("ReactDOM").findDOMNode(babelHelpers.assertThisInitialized(d));a&&b("DOMEventListener").add(a,"wheel",d.$13,{passive:!1})}};d.$9=function(){d.$6=!1;var a=b("ReactDOM").findDOMNode(babelHelpers.assertThisInitialized(d));a&&b("DOMEventListener").remove(a,"wheel",d.$13,{passive:!1})};d.$13=function(a){a.deliberateSync=!0;var c=b("normalizeWheel")(a);c=Math.round(c.pixelY);d.$14(c,a);d.props.containWheelEvent&&a.preventDefault()};d.$16=function(a){d.$1=a.touches?a.touches[0].clientY:a.clientY,d.setState({isDragging:!0})};d.$17=function(a){d.setState({isDragging:!1})};d.$18=function(a){if(!d.state.isDragging)return;var b=a.touches?a.touches[0].clientY:a.clientY;b=b-d.$1;d.$14(-b,a)};d.$7=function(a){var b;a[0]!==void 0?(b=a[0].index,a=b+a.length-1):(b=0,a=0);return{firstIndex:b,lastIndex:a}};d.$8=function(a,b){b||(b=d.state.itemPositioning);b=d.$7(b);a=d.$7(a);d.props.onRangeChange&&(a.firstIndex!==b.firstIndex||a.lastIndex!==b.lastIndex)&&d.props.onRangeChange(a.firstIndex,a.lastIndex)};d.$19=function(a){d.$3.scrollTo(Math.round(a)),d.$15()};d.$15=function(){var a=d.$3.getLayout();d.$8(a.items);d.setState({contentHeight:a.contentHeight,itemPositioning:a.items,scrollbarPosition:a.position})};d.$20=function(a,b,c){var e=d.$2.getValuePosition(a),f=c-b+1;f=f+2;e===null&&d.$2.getSize()>=f&&(e=d.$2.replaceFurthestValuePosition(b,c,a));e===null&&(e=d.$2.getNewPositionForValue(a));return e};d.$2=new(b("IntegerBufferSet"))();var e=c.height;d.$3=new(b("LayoutHelper"))(c.rowCount,c.rowHeight,e);c=d.$3.getLayout();d.state={contentHeight:c.contentHeight,itemPositioning:c.items,isScrolling:!1,isDragging:!1,scrollbarPosition:0,viewportHeight:c.viewportHeight};return d}var d=c.prototype;d.UNSAFE_componentWillReceiveProps=function(a){if(this.props.height!==a.height||this.props.rowCount!==a.rowCount||this.props.rowHeight!==a.rowHeight||this.props.rowHeightTracker!=null||this.props.rowHeightTracker!==a.rowHeightTracker||this.props.goToRowIndex!==a.goToRowIndex){var b=a.height;a.rowCount===0&&(b=0);this.$3.updateLayout(a.rowCount,a.rowHeight,b,null,a.rowHeightTracker,a.goToRowIndex);b=this.$3.getLayout();this.setState({contentHeight:b.contentHeight,itemPositioning:b.items,scrollbarPosition:b.position,viewportHeight:b.viewportHeight})}};d.componentDidUpdate=function(a){if(this.props.goToRowIndex!==a.goToRowIndex){a=this.state.itemPositioning;a=this.$7(a);this.props.onRangeChange&&this.props.onRangeChange(a.firstIndex,a.lastIndex)}};d.componentDidMount=function(){this.$8(this.state.itemPositioning,[])};d.componentWillUnmount=function(){this.$9()};d.$14=function(a,c){this.$3.canHandleScrollBy(a)&&(this.$4||(this.$4=!0,b("requestPersistentAnimationFrame")(this.$10)),this.$3.scrollBy(a),c.preventDefault(),c.stopPropagation(),this.$15()),this.$4&&(window.clearTimeout(this.$5),this.$5=window.setTimeout(this.$11,100))};d.$21=function(){__p&&__p();var a=this.state.itemPositioning,c=[],d=this.$7(a);for(var e=0;e0&&this.$SUITokenizerItemList8(),this.$SUITokenizerItemList2=this.$SUITokenizerItemList1};d.componentDidUpdate=function(a){a.entries.length===0&&this.props.entries.length>0&&this.$SUITokenizerItemList8();a.entries!==this.props.entries?this.$SUITokenizerItemList9(!0):this.$SUITokenizerItemList9(!1);this.$SUITokenizerItemList2=this.$SUITokenizerItemList1;if(this.props.isArrowNavigation&&!this.$SUITokenizerItemList10()&&this.$SUITokenizerItemList5){a=b("ReactDOM").findDOMNode(this.$SUITokenizerItemList5);this.$SUITokenizerItemList6&&a instanceof HTMLElement&&b("SUITokenizerItemListScroller").scroll(this.$SUITokenizerItemList6,a)}};d.componentWillUnmount=function(){this.$SUITokenizerItemList6&&b("SUITokenizerItemListScroller").unmount(this.$SUITokenizerItemList6)};d.$SUITokenizerItemList8=function(){this.$SUITokenizerItemList3=!0;if(this.props.scrollToSelectionOnFirstRender===!0&&!this.$SUITokenizerItemList10()&&this.$SUITokenizerItemList4){var a=b("ReactDOM").findDOMNode(this.$SUITokenizerItemList4);this.$SUITokenizerItemList6&&a instanceof HTMLElement&&b("SUITokenizerItemListScroller").scroll(this.$SUITokenizerItemList6,a)}};d.$SUITokenizerItemList9=function(a){this.setState({hasUpdatedEntries:a})};d.$SUITokenizerItemList7=function(){return this.props.initiallyExpandedCategories?new Map(this.props.initiallyExpandedCategories.map(function(a){return[a,!0]})):new Map()};d.$SUITokenizerItemList10=function(){return!this.props.hasCategories&&!this.props.shouldWrapSubtitle&&this.props.shouldVirtualize};d.$SUITokenizerItemList11=function(a){var c=this,d=a===this.props.highlightedEntry,e=this.props.selectedEntry?[this.props.selectedEntry]:this.props.selectedEntries||[],f=e&&e.some(function(b){return a.getUniqueID()===b.getUniqueID()}),g=e.length>0&&e[0].getUniqueID()===a.getUniqueID();e=this.props.isDisabledEntry?this.props.isDisabledEntry(a):!1;var h=!this.$SUITokenizerItemList10()||this.$SUITokenizerItemList1?void 0:this.$SUITokenizerItemList12,i=this.props.getTooltipInfo(a),j=d||g?function(a){g&&(c.$SUITokenizerItemList4=a),d&&(c.$SUITokenizerItemList5=a)}:null;return b("React").createElement(b("SUITokenizerItem.react"),{entry:a,getLabelStyleForEntry:this.props.getLabelStyleForEntry,getLeftContentForEntry:this.props.getLeftContentForEntry,getRightContentForEntry:this.props.getRightContentForEntry,getSubtitleContentForEntry:this.props.getSubtitleContentForEntry,inCategorizedList:this.props.hasCategories,isDisabled:e,isHighlighted:d,isMultiSelectEnabled:this.props.isMultiSelectEnabled,isSelected:f,key:a.getUniqueID(),onHeightMeasured:h,onHighlight:this.props.onHighlight,onRemove:this.props.onRemoveSearchResult,onSelect:this.props.onSelect,queryString:this.props.queryString,ref:j,shouldWrapSubtitle:this.props.shouldWrapSubtitle,tooltip:i})};d.$SUITokenizerItemList14=function(){var a=this;return this.props.entries.map(function(b){return a.$SUITokenizerItemList11(b)})};d.$SUITokenizerItemList15=function(){var a=this,c=this.props.isArrowNavigation?this.props.entries.findIndex(function(b){return b===a.props.highlightedEntry}):-1,d=this.props.selectedEntry?[this.props.selectedEntry]:this.props.selectedEntries||[],e=this.props.scrollToSelectionOnFirstRender===!0&&d.length>0&&(!this.$SUITokenizerItemList3||!this.$SUITokenizerItemList2)?this.props.entries.findIndex(function(a){return d[0].getUniqueID()===a.getUniqueID()}):-1;c=Math.max(c,e);c===-1&&this.state.hasUpdatedEntries&&this.props.entries.length&&(c=0);e=this.$SUITokenizerItemList1?Math.min(this.state.simpleItemHeight*this.props.entries.length,this.$SUITokenizerItemList16()):1;return b("React").createElement(b("SimpleList.react"),{containWheelEvent:this.props.shouldContainWheelEvent,goToRowIndex:c>-1?c:null,height:e,hideScrollShadow:!0,item:this.$SUITokenizerItemList13,rowCount:this.props.entries.length,rowHeight:this.state.simpleItemHeight,scrollbarOnHoverOnly:!0})};d.$SUITokenizerItemList17=function(){__p&&__p();var a=this,c=b("SUITheme").get(this).SUITokenizerItemList,d=b("groupArray")(this.props.entries,function(a){return a.getType()}),e=Object.keys(d),f=e.length;if(this.props.hideSingleCategory&&f===1)return this.$SUITokenizerItemList14();var g=[];f=this.props.queryString!=null&&this.props.queryString!=="";var h=this.props.areCategoriesCollapsible===!0&&!f;this.props.categoriesCompare&&e.sort(this.props.categoriesCompare);e.forEach(function(e,f){var i=d[e];a.props.categoryItemCompare&&(i=i.sort(a.props.categoryItemCompare));i=d[e].map(function(b){return a.$SUITokenizerItemList11(b)});var k=e;a.props.categoryHeader&&(k=b("React").cloneElement(a.props.categoryHeader,{},e));g.push(b("React").createElement(j,{category:e,categoryHeader:k,isCollapsible:h,isExpanded:a.state.isExpandedByCategory.get(e),key:f,onClick:a.$SUITokenizerItemList18,role:"menuitem",uniform:c}));(h!==!0||a.state.isExpandedByCategory.get(e))&&g.push(b("React").createElement("div",{className:"_5xr6",key:e+"list",role:"menuitem"},i))});return g};d.$SUITokenizerItemList20=function(a){a.preventDefault()};d.$SUITokenizerItemList16=function(){var a;return(a=this.props.listMaxHeight)!=null?a:i};d.render=function(){__p&&__p();var a=this,c=!this.props.entries.length,d=b("SUITheme").get(this);d=d.SUITokenizerItemList;d=babelHelpers["extends"]({},d.typeStyle,{backgroundColor:d.backgroundColor,borderColor:d.borderColor,borderRadius:d.borderRadius,borderWidth:d.borderWidth,boxShadow:d.boxShadow,paddingLeft:d.paddingHoriz,paddingRight:d.paddingHoriz,paddingTop:d.paddingVert,paddingBottom:d.paddingVert,width:d.width},this.props.style);var e=b("joinClasses")("_3ts6",this.props.className);if(c){c=this.props.emptySearchResultsContent;Boolean(this.props.emptySearchResultsText)&&c==null&&(c=b("React").createElement("span",{className:"_2byh"},this.props.emptySearchResultsText));return c==null?null:b("React").createElement("div",{className:e,style:d},this.props.customHeader,c,this.props.customFooter)}var f;c=this.$SUITokenizerItemList10();c?f=this.$SUITokenizerItemList15():(d.maxHeight=this.$SUITokenizerItemList16(),this.props.hasCategories?f=this.$SUITokenizerItemList17():f=this.$SUITokenizerItemList14());c=this.props.shouldContainWheelEvent&&!c?b("ScrollableBoundaryContain.react"):"div";return b("React").createElement(c,{className:e,"data-testid":"SUITokenizerItemList/entries",onMouseDown:this.$SUITokenizerItemList20,onScroll:this.props.onEndOfListReached&&this.$SUITokenizerItemList19,ref:function(b){return a.$SUITokenizerItemList6=b},style:d,unselectable:"on"},this.props.customHeader,f,this.props.customFooter)};return c}(b("SUIComponent"));c.propTypes={entries:a.array.isRequired,getTooltipInfo:a.func.isRequired,hasCategories:a.bool.isRequired,hideSingleCategory:a.bool.isRequired,isArrowNavigation:a.bool.isRequired,areCategoriesCollapsible:a.bool,initiallyExpandedCategories:a.arrayOf(a.string),onHighlight:a.func.isRequired,onSelect:a.func.isRequired,categoriesCompare:a.func,categoryHeader:a.element,customHeader:a.element,customFooter:a.element,emptySearchResultsText:a.string,getLabelStyleForEntry:a.func,getLeftContentForEntry:a.func,getRightContentForEntry:a.func,getSubtitleContentForEntry:a.func,highlightedEntry:a.instanceOf(b("SearchableEntry")),isDisabledEntry:a.func,isMultiSelectEnabled:a.bool,onEndOfListReached:a.func,onRemoveSearchResult:a.func,queryString:a.string,selectedEntries:a.arrayOf(a.instanceOf(b("SearchableEntry"))),selectedEntry:a.instanceOf(b("SearchableEntry")),shouldContainWheelEvent:a.bool.isRequired,shouldVirtualize:a.bool.isRequired,shouldWrapSubtitle:a.bool,theme:a.instanceOf(b("SUITheme")),scrollToSelectionOnFirstRender:a.bool};c.defaultProps={emptySearchResultsText:"",getTooltipInfo:b("emptyFunction").thatReturnsNull,hasCategories:!1,hideSingleCategory:!1,isArrowNavigation:!1,selectedEntries:[],shouldContainWheelEvent:!1,shouldVirtualize:!0,shouldWrapSubtitle:!1};e.exports=c}),null); __d("SUITypeaheadNavigation",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(a){this.$1=a}var b=a.prototype;b.moveDown=function(a,b,c){var d=this;b=b?a.indexOf(b):-1;var e=a.slice(b+1).find(function(a){return!d.$1(a)});e||(e=a.slice(0,b+1).find(function(a){return!d.$1(a)}));c(e||null)};b.moveUp=function(a,b,c){this.moveDown(a.slice().reverse(),b,c)};return a}();e.exports=a}),null); __d("isNullOrZero",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a==null||a===0}e.exports=a}),null); __d("SUIInlineTypeahead.react",["cx","AbstractTypeahead.react","React","SearchableEntry","SearchSourceQueryStatus","SUIComponent","SUISpinner.react","SUITheme","SUITokenizerItemList.react","SUITypeaheadNavigation","createObjectFrom","isNullOrZero","joinClasses","prop-types"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=1e3;c={allowShowingSpinner:!1,areCategoriesCollapsible:!1,hasCategories:!1,hideSingleCategory:!1,shouldVirtualize:!0,shouldWrapSubtitle:!1,maxEntries:a};var h={queryString:"",isSearching:!1};d=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this,c)||this;d.$SUIInlineTypeahead1=!1;d.$SUIInlineTypeahead4=function(){d.$SUIInlineTypeahead1&&d.setState({isSearching:!0})};d.$SUIInlineTypeahead5=function(a){a=a.target.value;d.setState({queryString:a});d.props.onQueryChange&&d.props.onQueryChange(a)};d.$SUIInlineTypeahead6=function(a,b){b.stopPropagation(),d.props.onRemoveSearchResult&&d.props.onRemoveSearchResult(a)};d.$SUIInlineTypeahead7=function(a){if(d.$SUIInlineTypeahead3(a))return;d.props.onChange(a);d.$SUIInlineTypeahead1&&d.setState({queryString:""})};d.$SUIInlineTypeahead8=function(a,c){c===b("SearchSourceQueryStatus").COMPLETE&&d.setState({isSearching:!1}),d.props.onEntriesFound&&d.props.onEntriesFound(a)};d.$SUIInlineTypeahead9=function(a){d.setState({isSearching:!1}),d.props.onNoEntriesFound&&d.props.onNoEntriesFound()};d.$SUIInlineTypeahead3=function(a){var b=d.props,c=b.disabledEntryIDs;b=b.getDisableStateForEntry;c=c?c.has(a.getUniqueID()):!1;b&&(c=c||b(a));return c};d.state=h;d.$SUIInlineTypeahead2=new(b("SUITypeaheadNavigation"))(d.$SUIInlineTypeahead3);return d}var d=c.prototype;d.componentDidMount=function(){this.$SUIInlineTypeahead1=!0};d.componentWillUnmount=function(){this.$SUIInlineTypeahead1=!1};d.focusInput=function(){this.refs.typeahead&&this.refs.typeahead.focusInput()};d.render=function(){var a=b("SUITheme").get(this).SUIInlineTypeahead,c=a.searchIcon;return b("React").createElement("div",{className:b("joinClasses")(this.props.className,"_1vdu"),"data-testid":this.props["data-testid"],style:this.props.style},b("React").createElement(b("AbstractTypeahead.react"),{additionalElements:this.props.additionalElements,autoHighlight:!0,"data-testid":"SUIInlineTypeahead/typeahead",excludedEntries:this.props.excludedEntryIDs?b("createObjectFrom")(Array.from(this.props.excludedEntryIDs)):void 0,hideViewWithEntries:!1,inputClassName:"_1vdv"+(this.state.isSearching?" _35mr":""),inputRightChild:this.state.isSearching&&this.props.allowShowingSpinner?b("React").createElement(b("SUISpinner.react"),{className:"_35ms"}):null,inputStyle:a.inputTextColor!=null?{color:a.inputTextColor}:void 0,navigation:this.$SUIInlineTypeahead2,onBlur:this.props.onBlur,onChange:this.$SUIInlineTypeahead5,onEntriesFound:this.$SUIInlineTypeahead8,onFocus:this.props.onFocus,onNoEntriesFound:this.$SUIInlineTypeahead9,onSearch:this.$SUIInlineTypeahead4,onSelectAttempt:this.$SUIInlineTypeahead7,placeholder:this.props.placeholder,presenter:{ViewRenderer:b("SUITokenizerItemList.react"),alwaysVisibleOnFocus:!!this.props.emptySearchResultsContent,extraRendererProps:{areCategoriesCollapsible:this.props.areCategoriesCollapsible,initiallyExpandedCategories:this.props.initiallyExpandedCategories,categoriesCompare:this.props.categoriesCompare,categoryItemCompare:this.props.categoryItemCompare,categoryHeader:this.props.categoryHeader,getLabelStyleForEntry:this.props.getLabelStyleForEntry,getLeftContentForEntry:this.props.getLeftContentForEntry,getRightContentForEntry:this.props.getRightContentForEntry,getSubtitleContentForEntry:this.props.getSubtitleContentForEntry,getTooltipInfo:this.props.getTooltipForEntry,hasCategories:this.props.hasCategories,hideSingleCategory:this.props.hideSingleCategory,isDisabledEntry:this.$SUIInlineTypeahead3,emptySearchResultsContent:this.props.emptySearchResultsContent,onEndOfListReached:this.props.onEndOfListReached,onRemoveSearchResult:this.props.onRemoveSearchResult?this.$SUIInlineTypeahead6:null,scrollToSelectionOnFirstRender:this.props.scrollToSelectionOnFirstRender,selectedEntries:this.props.selectedEntries,shouldContainWheelEvent:!0,shouldVirtualize:this.props.shouldVirtualize,shouldWrapSubtitle:this.props.shouldWrapSubtitle,style:{borderTop:"1px solid "+a.dividerBorderColor},theme:b("SUITheme").get(this),listMaxHeight:b("isNullOrZero")(this.props.maxListHeight)?null:this.props.maxListHeight},maxEntries:this.props.maxEntries,useLayer:!1},queryString:this.state.queryString,ref:"typeahead",scrollToSelectionOnFirstRender:this.props.scrollToSelectionOnFirstRender,searchSource:this.props.searchSource,searchSourceOptions:this.props.searchSourceOptions,selectOnBlur:!1,selectedEntries:this.props.selectedEntries||void 0,selectedEntry:this.props.selectedEntry||void 0,showEntriesOnFocus:!0}),b("React").cloneElement(c,{className:b("joinClasses")("_1vdw",i(c))}))};return c}(b("SUIComponent"));d.propTypes={additionalElements:b("prop-types").node,categoriesCompare:b("prop-types").func,hasCategories:b("prop-types").bool.isRequired,hideSingleCategory:b("prop-types").bool.isRequired,allowShowingSpinner:b("prop-types").bool,areCategoriesCollapsible:b("prop-types").bool,initiallyExpandedCategories:b("prop-types").arrayOf(b("prop-types").string),onChange:b("prop-types").func.isRequired,searchSource:b("prop-types").object.isRequired,disabledEntryIDs:b("prop-types").instanceOf(Set),emptySearchResultsContent:b("prop-types").node,excludedEntryIDs:b("prop-types").object,getDisableStateForEntry:b("prop-types").func,getLabelStyleForEntry:b("prop-types").func,getLeftContentForEntry:b("prop-types").func,getRightContentForEntry:b("prop-types").func,getTooltipForEntry:b("prop-types").func,header:b("prop-types").node,inputRightChild:b("prop-types").node,onBlur:b("prop-types").func,onEndOfListReached:b("prop-types").func,onFocus:b("prop-types").func,onRemoveSearchResult:b("prop-types").func,placeholder:b("prop-types").string,scrollToSelectionOnFirstRender:b("prop-types").bool,searchSourceOptions:b("prop-types").object,selectedEntry:b("prop-types").instanceOf(b("SearchableEntry")),shouldVirtualize:b("prop-types").bool.isRequired,shouldWrapSubtitle:b("prop-types").bool,style:b("prop-types").object,theme:b("prop-types").instanceOf(b("SUITheme")),maxEntries:b("prop-types").number};d.defaultProps=c;function i(a){a=a.props;return a!=null&&typeof a==="object"&&typeof a.className==="string"?a.className:null}e.exports=d}),null); __d("SUISearchableSelector.react",["cx","fbt","AbstractSearchSource","ContextualLayer.react","ContextualLayerAutoFlip","ContextualLayerUpdateOnScroll","Event","Keys","LayerHideOnBlur","LayerHideOnEscape","React","ReactDOM","ResponsiveBlock.react","SearchableEntry","SUIComponent","SUIErrorComponentUtil","SUIInlineTypeahead.react","SUIPropTypes","SUISelectorButton.react","SUITheme","SUITokenizerItemStates.react","joinClasses"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=b("SUITokenizerItemStates.react").SUITokenizerItemStates;a=b("React").PropTypes;c=babelHelpers["extends"]({},b("SUIErrorComponentUtil").defaultProps,{hasCategories:!1,allowShowingSpinner:!1,buttonUse:"default",dropdownHorizontalAlignment:"left",dropdownWidth:"sameAsSelector",height:"normal",itemHeight:"fixed",shouldShowSubtitleInSelector:!0,shouldWrapSubtitle:!1,suppressed:!1,width:"auto",canSelectMultiple:!1});var j={isOpen:!1,buttonWidth:null};d=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g0&&(f=b("React").createElement(k,{label:g.length>1?h._({"*":"{number} options selected","_1":"1 option selected"},[h._plural(g.length,"number")]):g[0].getTitle(),style:l}));n={};this.props.button!=null&&(n=this.props.button.props);m=babelHelpers["extends"]({"data-testid":"SUISearchableSelector/button","aria-pressed":null,borderedSides:this.props.buttonBorderedSides,disabled:this.props.isDisabled,errorMessage:this.props.errorMessage,errorTooltipPosition:this.props.errorTooltipPosition,height:this.props.height,icon:this.props.buttonIcon,id:this.props.id,isDepressed:this.state.isOpen,isMenuShown:this.state.isOpen,label:f,labelIsHidden:this.props.buttonLabelIsHidden,labelledBy:this.props.labelledBy,margin:this.props.margin,maxWidth:this.props.maxWidth,name:this.props.name,roundedCorners:this.props.buttonRoundedCorners,suppressed:this.props.suppressed,theme:this.props.theme,tooltip:this.props.tooltip,uniformOverrideButton:this.props.buttonUniformOverride,use:this.props.buttonUse,warningMessage:this.props.warningMessage,width:"100%"},n,{onClick:this.$SUISearchableSelector6,onKeyDown:this.$SUISearchableSelector7,ref:this.$SUISearchableSelector11});j=this.props.button!=null?b("React").cloneElement(this.props.button,m):b("React").createElement(b("SUISelectorButton.react"),babelHelpers["extends"]({},m,{className_DEPRECATED:b("joinClasses")(this.state.isOpen?"_3o2y":"",this.props.buttonClassName)}));o=this.props.emptySearchResultsContent!=null?b("React").createElement("div",{className:"_2u3i"},this.props.emptySearchResultsContent):void 0;return b("React").createElement("div",{className:b("joinClasses")(this.props.className,this.props.margin,"_wxl"),"data-testid":this.props["data-testid"],style:babelHelpers["extends"]({width:this.props.width},this.props.style)},j,this.state.isOpen?b("React").createElement(b("ContextualLayer.react"),{alignment:this.props.dropdownHorizontalAlignment,behaviors:babelHelpers["extends"]({ContextualLayerAutoFlip:b("ContextualLayerAutoFlip"),ContextualLayerUpdateOnScroll:b("ContextualLayerUpdateOnScroll"),LayerHideOnBlur:b("LayerHideOnBlur"),LayerHideOnEscape:b("LayerHideOnEscape")},this.props.layerBehaviors),contextRef:this.$SUISearchableSelector12,offsetX:this.props.layerOffsetX,offsetY:this.props.layerOffsetY,onToggle:this.$SUISearchableSelector5,position:"below",ref:this.$SUISearchableSelector13,shown:!0},b("React").createElement(b("ResponsiveBlock.react"),{className:b("joinClasses")("_4280"+(this.props.dropdownWidth!=="sameAsSelector"?" _4281":""),this.props.dropdownClassName),"data-testid":this.props.dropdownDataTestID,onResize:this.$SUISearchableSelector9,style:{backgroundColor:c.dropdownBackgroundColor,borderColor:c.dropdownBorderColor,borderRadius:c.dropdownBorderRadius,boxShadow:c.dropdownBoxShadow,minWidth:e,width:d,overflow:"hidden"}},this.props.header!=null?b("React").createElement("div",{className:"_4283",onClick:this.$SUISearchableSelector10,role:"presentation",style:babelHelpers["extends"]({},c.headerTypeStyle,{backgroundColor:c.headerBackgroundColor,borderColor:c.dropdownBorderColor,lineHeight:"32px"})},this.props.header):null,b("React").createElement(b("SUIInlineTypeahead.react"),{additionalElements:this.props.typeaheadAdditionalElements,allowShowingSpinner:this.props.allowShowingSpinner,areCategoriesCollapsible:this.props.areCategoriesCollapsible,categoriesCompare:this.props.categoriesCompare,categoryHeader:this.props.categoryHeader,categoryItemCompare:this.props.categoryItemCompare,"data-testid":"SUISearchableSelector/typeahead",disabledEntryIDs:this.props.disabledEntryIDs,emptySearchResultsContent:o,excludedEntryIDs:this.props.excludedEntryIDs,getDisableStateForEntry:this.props.getDisableStateForEntry,getLabelStyleForEntry:this.props.getLabelStyleForEntry,getLeftContentForEntry:this.props.getLeftContentForEntry,getRightContentForEntry:this.props.getRightContentForEntry,getSubtitleContentForEntry:this.props.getSubtitleContentForEntry,getTooltipForEntry:this.props.getTooltipForEntry,hasCategories:this.props.hasCategories,header:this.props.header,initiallyExpandedCategories:this.props.initiallyExpandedCategories,maxListHeight:this.props.maxListHeight,onChange:this.$SUISearchableSelector8,onEndOfListReached:this.props.onEndOfListReached,onQueryChange:this.props.onQueryChange,onRemoveSearchResult:this.props.onRemoveSearchResult,placeholder:this.props.searchPlaceholder,ref:function(b){return a.$SUISearchableSelector3=b},scrollToSelectionOnFirstRender:this.props.scrollToSelectionOnFirstRender,searchSource:this.props.searchSource,searchSourceOptions:this.props.searchSourceOptions,selectedEntries:this.props.values,selectedEntry:this.props.value,shouldVirtualize:this.props.itemHeight==="fixed"&&this.props.dropdownWidth!=="auto",shouldWrapSubtitle:this.props.shouldWrapSubtitle}),this.props.footer!=null?b("React").createElement("div",{className:"_79nc",style:babelHelpers["extends"]({},(g=c.footerTypeStyle)!=null?g:{},{backgroundColor:c.footerBackgroundColor,borderColor:c.dropdownBorderColor,lineHeight:"32px"})},this.props.footer):null)):null)};return c}(b("SUIComponent"));d.propTypes=babelHelpers["extends"]({},b("SUIErrorComponentUtil").propTypes,{categoryHeader:a.element,customLabel:a.node,hasCategories:a.bool.isRequired,allowShowingSpinner:a.bool,areCategoriesCollapsible:a.bool,initiallyExpandedCategories:a.arrayOf(a.string),height:a.string.isRequired,onChange:a.func.isRequired,searchSource:a.instanceOf(b("AbstractSearchSource")).isRequired,scrollToSelectionOnFirstRender:a.bool,shouldShowSubtitleInSelector:a.bool.isRequired,"data-testid":a.string,button:a.element,buttonBorderedSides:a.arrayOf(a.oneOf(["top","right","bottom","left"])),buttonClassName:a.string,buttonLabelIsHidden:a.bool,buttonRoundedCorners:a.arrayOf(a.oneOf(["topLeft","topRight","bottomRight","bottomLeft"])),buttonUniformOverride:a.object,buttonUse:b("SUISelectorButton.react").propTypes.use,isDisabled:a.bool,disabledEntryIDs:a.instanceOf(Set),dropdownClassName:a.string,dropdownDataTestID:a.string,dropdownWidth:b("SUIPropTypes").dropdownWidth,itemHeight:a.oneOf(["auto","fixed"]),layerBehaviors:a.object,emptySearchResultsContent:a.node,excludedEntryIDs:a.instanceOf(Set),footer:a.node,getDisableStateForEntry:a.func,getLabelStyleForEntry:a.func,getLeftContentForEntry:a.func,getRightContentForEntry:a.func,getSubtitleContentForEntry:a.func,getTooltipForEntry:a.func,header:a.node,shouldCloseOnHeaderClick:a.bool,margin:a.string,onClosed:a.func,onEndOfListReached:a.func,onOpened:a.func,placeholder:a.node,uniformOverride:a.object,searchPlaceholder:a.oneOfType([a.array,a.string,a.object]),searchSourceOptions:a.object,suppressed:a.bool.isRequired,typeaheadAdditionalElements:a.node,value:a.instanceOf(b("SearchableEntry")),width:b("SUIPropTypes").width,theme:a.instanceOf(b("SUITheme"))});d.defaultProps=c;var k=function(a){var c=a.label,d=a.leftContent,e=a.rightContent;a=a.style;return b("React").createElement("div",{className:"_4gt8",style:a},d,b("React").createElement("div",{className:"_4gt9","data-hover":"tooltip","data-tooltip-display":"overflow"},c),e)};e.exports=d}),null); __d("PhoneCodeSelector.react",["fbt","ContextualLayerHideOnScroll","PhoneCodes","React","SearchableEntry","StaticSearchSource","SUIBusinessTheme","SUIComponent","SUISearchableSelector.react","SUIThemeContainer.react"],(function(a,b,c,d,e,f,g){__p&&__p();a={initialCountryCode:"US",scrollToSelectedCountryCode:!0,phoneCodes:b("PhoneCodes")};function h(a){return a.getSubtitle()}function i(a){return a.getTitle()+" "+a.getSubtitle()}c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b,c){var d;d=a.call(this,b,c)||this;d.$PhoneCodeSelector2=function(a){a=d.$PhoneCodeSelector3(a,d.state.searchEntries);d.setState({selected:a.validEntry,warningMessage:a.warningMessage});a=a.validEntry?a.validEntry.getUniqueID():Object.keys(d.props.phoneCodes)[0];d.props.onUpdate(d.props.phoneCodes[a].phone_code,a)};d.state=d.$PhoneCodeSelector1(b);return d}var d=c.prototype;d.UNSAFE_componentWillReceiveProps=function(a){a.phoneCodes!=this.props.phoneCodes&&this.setState(this.$PhoneCodeSelector1(a))};d.render=function(){var a=this.props.theme||b("SUIBusinessTheme");return b("React").createElement(b("SUIThemeContainer.react"),{theme:a},b("React").createElement(b("SUISearchableSelector.react"),{"data-testid":this.props["data-testid"],dropdownWidth:"auto",emptySearchResultsContent:g._("No matching country"),height:this.props.height,isDisabled:this.props.isDisabled===null?!1:this.props.isDisabled,layerBehaviors:{ContextualLayerHideOnScroll:b("ContextualLayerHideOnScroll")},onChange:this.$PhoneCodeSelector2,layerOffsetY:this.props.typeaheadOffsetY,placeholder:g._("Country"),scrollToSelectionOnFirstRender:this.props.scrollToSelectedCountryCode,searchPlaceholder:g._("Search country name or code"),searchSource:this.state.searchSource,shouldShowSubtitleInSelector:!1,suppressLabelOverflowTooltip:!0,value:this.state.selected,warningMessage:this.state.warningMessage}))};d.$PhoneCodeSelector1=function(a){var c=null,d=null,e=Object.keys(a.phoneCodes).map(function(e){var f=a.phoneCodes[e],g=new(b("SearchableEntry"))({subtitle:f.country_name,title:a.showCountryCode?e+" +"+f.phone_code:"+"+f.phone_code,uniqueID:e});a.initialPhoneCode&&f.phone_code===a.initialPhoneCode&&(c=g);a.initialCountryCode&&e===a.initialCountryCode&&(d=g);return g}),f=c?c:d,g=a.includePhoneCodeInTypeahead?i:h;f=this.$PhoneCodeSelector3(f,e);return{searchEntries:e,searchSource:new(b("StaticSearchSource"))(e,g),selected:f.validEntry,warningMessage:f.warningMessage}};d.$PhoneCodeSelector3=function(a,b){var c=a,d=null;a&&b.indexOf(a)<0&&(d=g._("Invalid selected value"),c=b[0]);a={validEntry:c,warningMessage:d};return a};return c}(b("SUIComponent"));c.defaultProps=a;e.exports=c}),null); __d("AbstractRelaySearchSource",["AbstractAsyncSearchSource","debounceCore","RelayModern"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("RelayModern").fetchQuery;function h(a){return function(b,c,d,e){c=c.gen(b.value,b);b=c.query;c=c.variables;return g(a,b,c).then(d,e)}}a=function(a){babelHelpers.inheritsLoose(c,a);function c(c,d,e){return a.call(this,d,b("debounceCore")(h(c),225),e)||this}return c}(b("AbstractAsyncSearchSource"));e.exports=a}),null); __d("XMediaManagerController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/creatorstudio/",{collection_id:{type:"String"},tab:{type:"String"},reference:{type:"Enum",enumType:1},selected_single_page_id:{type:"FBID"},post_status:{type:"Enum",enumType:1},post_type:{type:"Enum",enumType:1},content_table:{type:"Enum",enumType:1},sub_tab:{type:"Enum",enumType:1},edit_video_id:{type:"Int"},edit_video_composer_tab:{type:"Enum",enumType:1},multipost_page_id:{type:"FBID"}})}),null);