/*1358192108,178142533*/

if (self.CavalryLogger) { CavalryLogger.start_js(["ihY9l"]); }

__d("ComposerXHiddenInputClear",[],function(a,b,c,d,e,f){function g(h){h.element.value='';}e.exports=g;});
__d("ComposerXSessionInputClear",[],function(a,b,c,d,e,f){function g(h){h.element.value=(new Date()).valueOf().toString().substr(0,10);}e.exports=g;});
__d("ComposerXPrivacyWidgetTags",["Arbiter","Env","copyProperties","getObjectValues"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('Env'),i=b('copyProperties'),j=b('getObjectValues');function k(l){this._privacyWidget=l.getComponent('mainprivacywidget').element;this._mentionsInput=l.getComponent('maininput').instance;this._placeTypeahead=l.getComponent('placetagger').instance;this._friendsTokenizer=l.getComponent('withtagger')?l.getComponent('withtagger').instance:null;this._init();}i(k.prototype,{_subscriptions:null,_placeType:null,_init:function(){this._subscriptions=[this._mentionsInput.subscribe('update',this._informChangedTags.bind(this)),this._placeTypeahead.subscribe('select',this._onPlaceSelect.bind(this)),g.subscribe('Events/autoSuggestionSelected',this._onPlaceSelect.bind(this)),this._placeTypeahead.subscribe('unselect',this._onPlaceUnselect.bind(this))];if(this._friendsTokenizer)this._subscriptions.push(this._friendsTokenizer.subscribe(['addToken','removeToken'],this._informChangedTags.bind(this)));},_getTaggedNamesForAudience:function(){var l={},m=this._mentionsInput.getMentions();for(var n in m)if(m[n].type=='user')l[n]=m[n].text;if(this._friendsTokenizer)this._friendsTokenizer.getTokens().map(function(o){l[o.getValue()]=o.getText();});delete l[h.user];return j(l);},_onPlaceSelect:function(l,m){this._placeType=m.selected.place_type;this._informChangedTags();},_onPlaceUnselect:function(l,m){this._placeType=null;this._informChangedTags();},_informChangedTags:function(){var l=[];if(this._friendsTokenizer)l=this._friendsTokenizer.getTokens();var m=null;if(this._placeType==='Event')m=this._placeTypeahead.getCore().getHiddenValue();g.inform('Composer/changedtags',{withTags:l,mention:this._mentionsInput.getMentions(),eventTag:m});},destroy:function(){while(this._subscriptions.length)this._subscriptions.pop().unsubscribe();}});e.exports=k;});
__d("ComposerXStatusAttachment",["Arbiter","Class","ComposerXAttachment","ComposerXAttachmentUtils","ComposerXController","ComposerXDragDrop","ComposerXPrivacyWidgetTags","DOM","Parent","URI","URLScraper","copyProperties","cx"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('Class'),i=b('ComposerXAttachment'),j=b('ComposerXAttachmentUtils'),k=b('ComposerXController'),l=b('ComposerXDragDrop'),m=b('ComposerXPrivacyWidgetTags'),n=b('DOM'),o=b('Parent'),p=b('URI'),q=b('URLScraper'),r=b('copyProperties'),s=b('cx');function t(u,v,w){this.parent.construct(this);this._root=u;this._tagger=v;this._config=w;}h.extend(t,i);r(t.prototype,{_privacyWidgetTags:null,_scraper:null,_dragdrop:null,attachmentClassName:"_4j",getRoot:function(){return this._root;},initWithComponents:function(){var u=this.getComponent('maininput');j.initMentions(u,this._config.mentionsPlaceholder);this._tagger.init(this);this._privacyWidgetTags=new m(this);var v=n.find(u.element,'textarea.input');if(!this._scraper){this._scraper=new q(v);this._scraper.subscribe('match',function(w,x){var y=new p('/ajax/composerx/attachment/link/scraper/');y.addQueryData({scrape_url:encodeURIComponent(x.url)});k.getAttachment(this._root,y.toString());}.bind(this));}this._scraper.enable();this._scraper.check();if(this._config.plus_version){this._dragdrop=new l(this._root,this._composerID,this._config.targetID);this._dragdrop.enableURLDropping();}g.inform('ComposerXStatusAttachment/ready');},cleanup:function(){this._tagger.cleanup();this._privacyWidgetTags.destroy();this._privacyWidgetTags=null;this._scraper.disable();if(this._dragdrop){this._dragdrop.deactivate();this._dragdrop=null;}},reset:function(){this._tagger.reset();},canSwitchAway:function(){return !o.byClass(this._root,'async_saving');}});e.exports=t;});
__d("PlacesCitySharerX",["Event","Arbiter","ArbiterMixin","AsyncRequest","CSS","DOM","Parent","cx","csx","copyProperties"],function(a,b,c,d,e,f){var g=b('Event'),h=b('Arbiter'),i=b('ArbiterMixin'),j=b('AsyncRequest'),k=b('CSS'),l=b('DOM'),m=b('Parent'),n=b('cx'),o=b('csx'),p=b('copyProperties');function q(s,t,u,v,w,x,y,z,aa,ba){this._root=s;this.setShareSetting(ba);this.init(t,u,v,w,x);if(z)this.setDefaultCity(y,z,aa);if(this._shareDefaultCity)this.useDefaultCity();}var r={};p(q.prototype,i,{init:function(s,t,u,v,w){this._cityLink=s;this._closeButton=t;this._input=u;this._disableShareInput=v;this._options=w;this._cityName=l.find(this._cityLink,"._y8");this._data={};this._resetTempInfo();g.listen(this._closeButton,'click',function(){this._resetTempInfo();this._defaultCityData={};this.clearCity();this._disableShareInput.value='true';}.bind(this));r[this._root]=this;this.inform('init',null,h.BEHAVIOR_PERSISTENT);},addPlace:function(s){this._placeSelected=true;k.addClass(this._cityLink,"_1dsf");k.hide(this._closeButton);this._resetTempInfo();},changeCity:function(s,t,u){this.setCity(s,t,u);this.toggleLocationSharing(s,t,u,false);},clearCity:function(){this._data={};this._input.value='';l.empty(this._cityName);k.removeClass(this._root,"_y7");k.hide(this._closeButton);this.inform('change',null,h.BEHAVIOR_PERSISTENT);},clearPlace:function(){this._placeSelected=false;k.removeClass(this._cityLink,"_1dsf");k.conditionShow(this._closeButton,this.getValue());this.setDefaultCity(this._data.city_name,this._data.city_page_id,this._data.city_id);},getIcon:function(){return this._root;},getValue:function(){return this._input.value;},restoreCityInfo:function(){if(this._placeSelected||this._shareDefaultCity){this.changeCity(this._tempCityName,this._tempCityPid,this._tempCityId);this._resetTempInfo();}},saveCityInfo:function(){if(this._defaultCityData){this._tempCityName=this._defaultCityData.city_name;this._tempCityPid=this._defaultCityData.city_page_id;this._tempCityId=this._defaultCityData.city_id;}},setCity:function(s,t,u){if(t){this.setCityData(s,t,u);this._input.value=t;this.inform('change',this._data,h.BEHAVIOR_PERSISTENT);}},setCityData:function(s,t,u){if(t){this._data={city_name:s,city_page_id:t,city_id:u};var v=s.lastIndexOf(',');if(v!=-1)s=s.substring(0,v);l.setContent(this._cityName,s);k.addClass(this._root,"_y7");k.conditionShow(this._closeButton,!this._placeSelected);}},setDefaultCity:function(s,t,u){this._defaultCityData={city_id:u,city_page_id:t,city_name:s};},setSessionID:function(s){this._options.session_id=s;},setShareSetting:function(s){this._shareDefaultCity=s;},toggleLocationSharing:function(s,t,u,v){if(t)new j().setURI('/ajax/places/toggle_location_sharing').setData({city_id:u,city_page_id:t,city_name:s,is_default:v,session_id:this._options.session_id}).send();},useDefaultCity:function(){if(this._defaultCityData){this.setCity(this._defaultCityData.city_name,this._defaultCityData.city_page_id,this._defaultCityData.city_id);this.toggleLocationSharing(this._defaultCityData.city_name,this._defaultCityData.city_page_id,this._defaultCityData.city_id,true);}},_resetTempInfo:function(){this._tempCityName=null;this._tempCityPid=null;this._tempCityId=null;}});q.getInstance=function(s){var t=m.byClass(s,'ComposerCitySharer');return t&&r[t];};e.exports=q;});
__d("ComposerXImplicitLocation",["copyProperties"],function(a,b,c,d,e,f){var g=b('copyProperties');function h(i,j,k,l){this._citySharer=i;this._placeTagger=j;this._hiddenInput=k;this._subscriptions=[];this._subscribeChangeCity();this._subscribeSelect();this._subscribeUnselect();}g(h.prototype,{cleanup:function(){while(this._subscriptions.length)this._subscriptions.pop().unsubscribe();},disable:function(){if(!this._placeTagger.getCore().getValue()){this._disableImplicit=true;this._citySharer.saveCityInfo();this._citySharer.clearCity();}this._placeTagger.getData().setBootstrapEndpoint('/ajax/places/typeahead/recent_tag.php');},enable:function(){if(!this._placeTagger.getCore().getValue()){this._citySharer.restoreCityInfo();this._disableImplicit=false;}this._placeTagger.getData().resetBootstrapEndpoint();},selectPlace:function(i){if(i.place_type=='city'){this._citySharer.changeCity(i.text,i.uid,i.city_id);this._placeTagger.getCore().setCity(i.city_id,i.text,true);}if(i.city_id){if(!this._disableImplicit){this._citySharer.changeCity(i.city_name,i.city_page_id,i.city_id);}else this._citySharer.setCityData(i.city_name,i.city_page_id,i.city_id);}else this._citySharer.clearCity();this._citySharer.addPlace(i);},unselectPlace:function(){this._hiddenInput.value=this._citySharer.getValue();this._citySharer.clearPlace();if(this._disableImplicit)this.disable();},_subscribeChangeCity:function(){this._subscriptions.push(this._citySharer.subscribe('change',function(i,j){if(!this._placeTagger.getCore().getHiddenValue())this._hiddenInput.value=this._citySharer.getValue();if(j&&j.city_id)this._placeTagger.getCore().setCity(j.city_id,j.city_name,true);}.bind(this)));},_subscribeSelect:function(){this._subscriptions.push(this._placeTagger.subscribe('select',function(i,j){this.selectPlace(j.selected);}.bind(this)));},_subscribeUnselect:function(){this._subscriptions.push(this._placeTagger.subscribe('unselect',this.unselectPlace.bind(this)));}});e.exports=h;});
__d("ComposerXPlusPhotoNUX",["Event","function-extensions","AsyncRequest","ComposerXDragDrop","CSS","DOM","SubscriptionsHandler","csx","cx"],function(a,b,c,d,e,f){var g=b('Event');b('function-extensions');var h=b('AsyncRequest'),i=b('ComposerXDragDrop'),j=b('CSS'),k=b('DOM'),l=b('SubscriptionsHandler'),m=b('csx'),n=b('cx'),o={},p=new l();function q(s,t,u){var v=i.filterImages(u.dataTransfer.items);if(v.length)r.acknowledgeDialog(s,t);}var r={CAMERA_NUX:'camera_nux_seen',ADD_MORE_NUX:'add_more_nux_seen',onInit:function(s,t,u){if(o[u])return;p.engage();var v=s.getRoot();j.addClass(v,"_4bka");if(u==r.ADD_MORE_NUX){var w=k.find(v,"._3o-a");p.addSubscriptions(g.listen(w,'click',r.acknowledgeDialog.curry(u,s)));}if(u==r.CAMERA_NUX)p.addSubscriptions(g.listen(document,'dragenter',q.curry(u,s)));p.addSubscriptions(s.subscribe('cancel',r.sendMarkSeenRequest.curry(u)),s.subscribe('hide',p.release.bind(p)));s.setContext(t).show();},acknowledgeDialog:function(s,t){r.sendMarkSeenRequest(s);t.hide();},sendMarkSeenRequest:function(s){if(!o[s]){new h('/ajax/photos/composer/mark_plus_nux_seen.php').setData({type:s}).send();o[s]=true;}},onCleanup:function(s){s.hide();}};e.exports=r;});
__d("ComposerXCameraIconBehavior",["Event","function-extensions","Arbiter","ComposerXController","ComposerXPlusPhotoNUX","CSS","cx"],function(a,b,c,d,e,f){var g=b('Event');b('function-extensions');var h=b('Arbiter'),i=b('ComposerXController'),j=b('ComposerXPlusPhotoNUX'),k=b('CSS'),l=b('cx'),m='/ajax/composerx/attachment/media/upload/',n={initCameraIcon:function(o){this._cameraIcon=o.getComponent('cameraicon');if(!this._config.showCameraIcon){k.hide(this._cameraIcon.element);return;}k.show(this._cameraIcon.element);var p=this._config.composerID,q=this._cameraIcon.instance;this._listeners.push(g.listen(this._cameraIcon.element,'click',function(){i.fetchAttachmentData(p,m);}.bind(this)));this._subscriptions.push(q.subscribe('change',function(){i.getAttachment(p,m);k.addClass(this._cameraIcon.element,"_19_a");h.inform('ComposerXFilesStore/filesAdded/'+p+'/mediaupload',{fileInput:q},h.BEHAVIOR_PERSISTENT);}.bind(this)));if(this._config.plusNUXDialog){j.onInit(this._config.plusNUXDialog,this._cameraIcon.element,j.CAMERA_NUX);this._onCleanup.push(function(){j.onCleanup(this._config.plusNUXDialog);}.bind(this));}}};e.exports=n;});
__d("ComposerXStandardTagger",["Event","function-extensions","Arbiter","ArbiterMixin","AsyncRequest","ComposerXImplicitLocation","CSS","DOM","Focus","Input","Keys","StickyPlaceholderInput","copyProperties","cx","isEmpty"],function(a,b,c,d,e,f){var g=b('Event');b('function-extensions');var h=b('Arbiter'),i=b('ArbiterMixin'),j=b('AsyncRequest'),k=b('ComposerXImplicitLocation'),l=b('CSS'),m=b('DOM'),n=b('Focus'),o=b('Input'),p=b('Keys'),q=b('StickyPlaceholderInput'),r=b('copyProperties'),s=b('cx'),t=b('isEmpty');function u(v){this._listeners=[];this._subscriptions=[];this._onCleanup=[];this._config=v||{};this._taggers={};this._taggerIcons={};this._onTaggerShowCallbacks={};this._withTokens={};this._socialTextSelectors={};}r(u.prototype,i,{_placeType:null,_requestID:0,_updatingWithTokens:false,_socialTextRequest:null,init:function(v){this._mentionsInput=v.getComponent('maininput');this._withTagger=v.getComponent('withtagger');this._withTaggerIcon=v.getComponent('withtaggericon');this._placeTagger=v.getComponent('placetagger');this._hiddenExplicitPlace=v.getComponent('explicitplaceinput');this._citySharerIcon=v.getComponent('citysharericon');this._hiddenPlaceInput=v.getComponent('hiddenplaceinput');this._placeNameInput=v.getComponent('placenameinput');this._sessionID=v.getComponent('hiddensessionid');this._input=m.scry(this._mentionsInput.element,'textarea.input')[0];this.initAndRegisterWithTagger();this.initAndRegisterPlaceTagger();this.registerAutoEventSuggestion();this._listeners.push(g.listen(this._mentionsInput.element,'mousedown',this._hideTaggers.bind(this)));},registerAutoEventSuggestion:function(){this._subscriptions.push(h.subscribe('Events/autoSuggestionConfirmed',function(v,w){this._toggleTagger('place');h.inform("Events/autoSuggestionSelected",w);n.set(this._input);}.bind(this)));},initAndRegisterPlaceTagger:function(){this.registerTagger('place',this._placeTagger,this._citySharerIcon);this.initTaggerInput('place',this._placeTagger.instance.getCore().getElement());this._initCitySharer();this._initPlaceTagger();},initAndRegisterWithTagger:function(){this.registerTagger('with',this._withTagger,this._withTaggerIcon);this.initTaggerInput('with',this._withTagger.instance.getInput());this._initWithTagger();},setAdditionalWithTokens:function(v){this._updatingWithTokens=true;this._withTagger.instance.removeAllTokens();for(var w in this._withTokens)this._withTagger.instance.addToken(this._withTokens[w]);for(w in v){var x=this._withTagger.instance.createToken(v[w]);this._withTagger.instance.addToken(x);}this._updateWithTaggerUI();this._updatingWithTokens=false;},cleanup:function(){this._hideTaggers();this._listeners.forEach(function(v){v.remove();});this._listeners=[];this._subscriptions.forEach(function(v){v.unsubscribe();});this._subscriptions=[];this._onCleanup.forEach(function(v){v();});this._onCleanup=[];if(this._citySharerIcon)this._implicitLocation.cleanup();},reset:function(){if(this._socialTextRequest)this._socialTextRequest.abort();},registerTagger:function(v,w,x){this._taggers[v]=w;this._taggerIcons[v]=x;this._listeners.push(g.listen(this._taggerIcons[v].element,'click',this._toggleTagger.bind(this,v)));},initTaggerInput:function(v,w){var x=this._config.placeholders||{};if(x[v])q.setPlaceholderText(w,x[v]);this._onTaggerShowCallbacks[v]=n.set.curry(w);this._listeners.push(g.listen(w,'keydown',function(y){if(g.getKeyCode(y)==p.RETURN&&!o.getValue(y.getTarget())){this._hideTagger(v);n.set.curry(this._input).defer();}}.bind(this)));},setTaggerCallback:function(v,w){this._onTaggerShowCallbacks[v]=w;},_initCitySharer:function(){this._implicitLocation=new k(this._citySharerIcon.instance,this._placeTagger.instance,this._hiddenPlaceInput.element);if(this._config.disableImplicitCity){this._implicitLocation.disable();}else this._implicitLocation.enable();},_initWithTagger:function(){this._subscriptions.push(this._withTagger.instance.subscribe(['addToken','removeToken'],function(v,w){if(!this._updatingWithTokens){if(v==='addToken'){this._withTokens[w.info.uid]=w;}else if(v==='removeToken')delete this._withTokens[w.info.uid];this._updateWithTaggerUI();}}.bind(this)));this.addSocialTextSelector('with','span.withToken');if(this._config.placeholders&&this._config.placeholders['with'])this._withTagger.instance.setPlaceholder(this._config.placeholders['with']);},_initPlaceTagger:function(){this._subscriptions.push(this._placeTagger.instance.subscribe('select',function(v,w){this._hiddenPlaceInput.element.value=w.selected.uid;this._placeNameInput.element.value=w.selected.text;this._hiddenExplicitPlace.element.value=true;this._placeType=w.selected.place_type;this._updateTaggedText();this._hideTagger('place');n.set(this._input);}.bind(this)));this._subscriptions.push(this._placeTagger.instance.subscribe('unselect',function(v,w){this._hiddenExplicitPlace.element.value=false;this._placeNameInput.element.value='';this._placeType=null;this._updateTaggedText();}.bind(this)));this.addSocialTextSelector('place','a.placeToken');},addSocialTextSelector:function(v,w){this._socialTextSelectors[v]=w;},addSubscription:function(v){this._subscriptions.push(v);},_showTagger:function(v){l.show(this._taggers[v].element);l.addClass(this._taggerIcons[v].element,"_4m");if(v==='with')new j().setURI('/ajax/fof/user_education.php').setData({increment:1}).send();if(this._onTaggerShowCallbacks[v])this._onTaggerShowCallbacks[v]();},_hideTagger:function(v){l.hide(this._taggers[v].element);l.removeClass(this._taggerIcons[v].element,"_4m");},_hideTaggers:function(){for(var v in this._taggers)this._hideTagger(v);this.inform('hidetaggers');},switchToTagger:function(v){this._hideTaggers();this._showTagger(v);},_toggleTagger:function(v){if(l.shown(this._taggers[v].element)){this._hideTaggers();}else this.switchToTagger(v);},_getTaggedTextData:function(){var v=this._placeTagger.instance.getCore(),w=v.getHiddenValue(),x=w&&v.getValue(),y=(this._withTagger&&this._withTagger.instance.getTokens())||[];if(!y.length&&!x)return {};return {people:y.map(function(z){return z.info.uid;}),place:x,placeID:w,isNonSpecificPlace:this._isNonSpecificPlace()};},_updateTaggedText:function(){var v=this._getTaggedTextData();if(this.getExtraTaggedTextData)v=r(v,this.getExtraTaggedTextData());++this._requestID;if(t(v)){this._mentionsInput.instance.setAuxContent(null);return;}v.requestID=this._requestID;v.sessionID=this._sessionID.element.value,this._socialTextRequest=new j();this._socialTextRequest.setURI('/ajax/metacomposer/social_text.php').setData(v).setHandler(this._handleSocialText.bind(this)).send();},_updateWithTaggerUI:function(){q.update.curry(this._withTagger.instance.getInput()).defer();l.conditionClass(this._withTaggerIcon.element,"_1dsa",this._withTagger.instance.getFirstToken());this._updateTaggedText();},_handleSocialText:function(v){if(v.payload.requestID===this._requestID){var w=this._mentionsInput.instance;w.setAuxContent(v.payload.rendered);for(var x in this._socialTextSelectors){var y=this._socialTextSelectors[x],z=m.scry(w.getAuxContentRoot(),y);for(var aa=0;aa<z.length;aa++){this._listeners.push(g.listen(z[aa],'click',this.switchToTagger.bind(this,x)));this._listeners.push(g.listen(z[aa],'mousedown',g.kill));}}}},_isNonSpecificPlace:function(){return this._placeType=='city'||this._placeType=='state_province'||this._placeType=='country';}});e.exports=u;});
__d("ComposerXPlusTagger",["Class","ComposerXCameraIconBehavior","ComposerXStandardTagger","copyProperties"],function(a,b,c,d,e,f){var g=b('Class'),h=b('ComposerXCameraIconBehavior'),i=b('ComposerXStandardTagger'),j=b('copyProperties');function k(l){this.parent.construct(this,l);}g.extend(k,i);j(k.prototype,h);j(k.prototype,{init:function(l){this.parent.init(l);this.initCameraIcon(l);}});e.exports=k;});
__d("ComposerXCitySharerReset",["AsyncRequest"],function(a,b,c,d,e,f){var g=b('AsyncRequest');function h(j){j.instance.clearPlace();new g().setURI('/ajax/places/city_sharer_reset.php').setHandler(function(k){i(j,k.getPayload());}).send();}function i(j,k){j.instance.setShareSetting(k.sharedefault);j.instance.setSessionID((new Date()).valueOf().toString().substr(0,10));if(k.citypageid)j.instance.setDefaultCity(k.citystring,k.citypageid,k.cityid);if(k.sharedefault)j.instance.useDefaultCity();}e.exports=h;});
__d("ComposerXPeopleTaggerReset",["CSS"],function(a,b,c,d,e,f){var g=b('CSS');function h(i){i.instance.reset();g.hide(i.element);}e.exports=h;});
__d("ComposerXPlaceTaggerReset",["CSS"],function(a,b,c,d,e,f){var g=b('CSS');function h(i){i.instance.getCore().reset();g.hide(i.element);}e.exports=h;});
__d("PlacesTypeaheadRendererUtil",["function-extensions"],function(a,b,c,d,e,f){b('function-extensions');var g=/[.,+*?$|#{}()\^\-\[\]\\\/!@%"~=<>_:;]/g;function h(k,l){return k.end>l.end||k.start<l.start;}function i(k,l){if(!k)return [];var m=[];k=k.replace(g,' ');var n=k.split(' ');for(var o=0;o<n.length;o++){if(!n[o])continue;var p=n[o];if(o<n.length-1)p=p+'[ ,]';var q=new RegExp(' '+p,'i'),r=q.exec((' '+l+' '));if(r){var s={start:r.index,end:r.index+n[o].length};if(m.every(h.curry(s)))m.push(s);}else return [];}m.sort(function(t,u){return t.start-u.start;});return m;}var j={match_positions:i};e.exports=j;});
__d("PlacesTypeaheadRenderer",["DOM","PlacesTypeaheadRendererUtil"],function(a,b,c,d,e,f){var g=b('DOM'),h=b('PlacesTypeaheadRendererUtil');function i(j,k){var l=[],m=j.photo;if(m)l.push(g.create('img',{alt:'',src:m}));if(j.text){var n=g.create('span',{className:'text'},""),o=j.text;if(j.address)o=o+" \u00b7 "+j.address;var p=[];if(j.value)p=h.match_positions(j.value,o);if(p.length>0){var q=0;for(var r=0;r<p.length;r++){var s=p[r].start,t=p[r].end;g.appendContent(n,o.substr(q,(s-q)));g.appendContent(n,g.create('span',{className:'bold'},o.substr(s,t-s)));q=t;}g.appendContent(n,o.substr(q));}else{g.appendContent(n,g.create('span',{className:'bold'},j.text));if(j.address)g.appendContent(n," \u00b7 "+j.address);}l.push(g.create('span',{},n));}var u=j.subtext,v=j.category;if(u||v){var w=[];u&&w.push(u);v&&w.push(v);l.push(g.create('span',{className:'subtext'},w.join(' \u00b7 ')));}return g.create('li',{className:j.type||''},l);}i.className='places';e.exports=i;});