text: define("ghost/adapters/application",["ghost/utils/ghost-paths","exports"],function(a,b){"use strict";var c=a["default"],d=DS.RESTAdapter.extend({host:window.location.origin,namespace:c().apiRoot.slice(1),findQuery:function(a,b,c){var d;return c.id&&(d=c.id,delete c.id),this.ajax(this.buildURL(b.typeKey,d),"GET",{data:c})},buildURL:function(a,b){var c=this._super(a,b);return"/"!==c.slice(-1)&&(c+="/"),c},deleteRecord:function(){var a=this._super.apply(this,arguments);return a.then(function(){return null})}});b["default"]=d}),define("ghost/adapters/embedded-relation-adapter",["ghost/adapters/application","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({find:function(a,b,c){return this.findQuery(a,b,this.buildQuery(a,b,c))},findQuery:function(a,b,c){return this._super(a,b,this.buildQuery(a,b,c))},findAll:function(a,b,c){return this.findQuery(a,b,this.buildQuery(a,b,c))},buildQuery:function(a,b,c){var d,e=[],f={},g={};return d=a.modelFor(b),d.eachRelationship(function(a,b){"hasMany"===b.kind&&Object.prototype.hasOwnProperty.call(b.options,"embedded")&&"always"===b.options.embedded&&e.push(a)}),e.length&&("string"==typeof c||"number"==typeof c?(f.id=c,f.include=e.join(",")):("object"==typeof c||Ember.isNone(c))&&(f=c||f,e=e.concat(f.include?f.include.split(","):[]),e.forEach(function(a){g[a]=!0}),f.include=Object.keys(g).join(","))),f}});b["default"]=d}),define("ghost/adapters/post",["ghost/adapters/embedded-relation-adapter","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({createRecord:function(a,b,c){var d={},e=a.serializerFor(b.typeKey),f=this.buildURL(b.typeKey);return f+="?include=tags",e.serializeIntoHash(d,b,c),this.ajax(f,"POST",{data:d})},updateRecord:function(a,b,c){var d={},e=a.serializerFor(b.typeKey),f=Ember.get(c,"id"),g=this.buildURL(b.typeKey,f);return g+="?include=tags",e.serializeIntoHash(d,b,c),this.ajax(g,"PUT",{data:d})}});b["default"]=d}),define("ghost/adapters/setting",["ghost/adapters/application","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({updateRecord:function(a,b,c){var d={},e=a.serializerFor(b.typeKey);return delete c.id,e.serializeIntoHash(d,b,c),this.ajax(this.buildURL(b.typeKey),"PUT",{data:d})}});b["default"]=d}),define("ghost/adapters/user",["ghost/adapters/embedded-relation-adapter","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({createRecord:function(a,b,c){var d={},e=a.serializerFor(b.typeKey),f=this.buildURL(b.typeKey);return f+="?include=roles",e.serializeIntoHash(d,b,c),this.ajax(f,"POST",{data:d})},updateRecord:function(a,b,c){var d={},e=a.serializerFor(b.typeKey),f=Ember.get(c,"id"),g=this.buildURL(b.typeKey,f);return g+="?include=roles",e.serializeIntoHash(d,b,c),this.ajax(g,"PUT",{data:d})},find:function(a,b,c){var d=this.buildQuery(a,b,c);return d.status="all",this.findQuery(a,b,d)}});b["default"]=d}),define("ghost/app",["ember/resolver","ember/load-initializers","ghost/utils/link-view","ghost/utils/text-field","ghost/config","ghost/helpers/ghost-paths","exports"],function(a,b,c,d,e,f,g){"use strict";var h=a["default"],i=b["default"],j=e["default"],k=f["default"];Ember.MODEL_FACTORY_INJECTIONS=!0;var l=Ember.Application.extend({modulePrefix:"ghost",Resolver:h["default"]});j(l),i(l,"ghost"),Ember.Handlebars.registerHelper("gh-path",k),g["default"]=l}),define("ghost/assets/lib/touch-editor",["exports"],function(a){"use strict";var b=function(){var a,b=function(){};return a=function(a){this.textarea=a,this.win={document:this.textarea},this.ready=!0,this.wrapping=document.createElement("div");var b=this.textarea.parentNode;this.wrapping.appendChild(this.textarea),b.appendChild(this.wrapping),this.textarea.style.opacity=1},a.prototype={setOption:function(a,b){"onChange"===a&&$(this.textarea).change(b)},eachLine:function(){return[]},getValue:function(){return this.textarea.value},setValue:function(a){this.textarea.value=a},focus:b,getCursor:function(){return{line:0,ch:0}},setCursor:b,currentLine:function(){return 0},cursorPosition:function(){return{character:0}},addMarkdown:b,nthLine:b,refresh:b,selectLines:b,on:b,off:b},a};a["default"]=b}),define("ghost/assets/lib/uploader",["ghost/utils/ghost-paths","exports"],function(a,b){"use strict";var c,d,e=a["default"],f=e();c=function(a,b){var c='<div class="js-url"><input class="url js-upload-url" type="url" placeholder="http://"/></div>',d='<a class="image-cancel js-cancel" title="Delete"><span class="hidden">Delete</span></a>',e=$("<div />",{"class":"js-upload-progress progress progress-success active",role:"progressbar","aria-valuemin":"0","aria-valuemax":"100"}).append($("<div />",{"class":"js-upload-progress-bar bar",style:"width:0%"}));$.extend(this,{complete:function(c){function d(b,c){a.find("img.js-upload-target").attr({width:b,height:c}).css({display:"block"}),a.find(".fileupload-loading").remove(),a.css({height:"auto"}),a.delay(250).animate({opacity:100},1e3,function(){$(".js-button-accept").prop("disabled",!1),i.init()})}function g(b){a.animate({opacity:0},250,function(){a.removeClass("image-uploader").addClass("pre-image-uploader"),a.css({minHeight:0}),i.removeExtras(),a.animate({height:b.height()},250,function(){d(b.width(),b.height())})})}function h(){var d=a.find("img.js-upload-target").attr({src:"",width:"auto",height:"auto"});e.animate({opacity:0},250,function(){a.find("span.media").after('<img class="fileupload-loading"  src="'+f.subdir+'/ghost/img/loadingcat.gif" />'),b.editor||e.find(".fileupload-loading").css({top:"56px"})}),a.trigger("uploadsuccess",[c]),d.one("load",function(){g(d)}).attr("src",c)}var i=this;h()},bindFileUpload:function(){var c=this;a.find(".js-fileupload").fileupload().fileupload("option",{url:f.apiRoot+"/uploads/",add:function(c,d){$(".js-button-accept").prop("disabled",!0),a.find(".js-fileupload").removeClass("right"),a.find(".js-url").remove(),e.find(".js-upload-progress-bar").removeClass("fail"),a.trigger("uploadstart",[a.attr("id")]),a.find("span.media, div.description, a.image-url, a.image-webcam").animate({opacity:0},250,function(){a.find("div.description").hide().css({opacity:100}),b.progressbar&&(a.find("div.js-fail").after(e),e.animate({opacity:100},250)),d.submit()})},dropZone:b.fileStorage?a:null,progressall:function(c,d){var f=parseInt(d.loaded/d.total*100,10);b.editor||e.find("div.js-progress").css({position:"absolute",top:"40px"}),b.progressbar&&(a.trigger("uploadprogress",[f,d]),e.find(".js-upload-progress-bar").css("width",f+"%"))},fail:function(b,d){$(".js-button-accept").prop("disabled",!1),a.trigger("uploadfailure",[d.result]),a.find(".js-upload-progress-bar").addClass("fail"),a.find("div.js-fail").text(413===d.jqXHR.status?"The image you uploaded was larger than the maximum file size your server allows.":415===d.jqXHR.status?"The image type you uploaded is not supported. Please use .PNG, .JPG, .GIF, .SVG.":"Something went wrong :("),a.find("div.js-fail, button.js-fail").fadeIn(1500),a.find("button.js-fail").on("click",function(){a.css({minHeight:0}),a.find("div.description").show(),c.removeExtras(),c.init()})},done:function(a,b){c.complete(b.result)}})},buildExtras:function(){a.find("span.media")[0]||a.prepend('<span class="media"><span class="hidden">Image Upload</span></span>'),a.find("div.description")[0]||a.append('<div class="description">Add image</div>'),a.find("div.js-fail")[0]||a.append('<div class="js-fail failed" style="display: none">Something went wrong :(</div>'),a.find("button.js-fail")[0]||a.append('<button class="js-fail btn btn-green" style="display: none">Try Again</button>'),a.find("a.image-url")[0]||a.append('<a class="image-url" title="Add image from URL"><span class="hidden">URL</span></a>')},removeExtras:function(){a.find("span.media, div.js-upload-progress, a.image-url, a.image-upload, a.image-webcam, div.js-fail, button.js-fail, a.js-cancel").remove()},initWithDropzone:function(){var c=this;return a.find("img.js-upload-target").css({display:"none"}),a.removeClass("pre-image-uploader image-uploader-url").addClass("image-uploader"),this.removeExtras(),this.buildExtras(),this.bindFileUpload(),b.fileStorage?void a.find("a.image-url").on("click",function(){c.initUrl()}):void c.initUrl()},initUrl:function(){var e,f=this;this.removeExtras(),a.addClass("image-uploader-url").removeClass("pre-image-uploader"),a.find(".js-fileupload").addClass("right"),b.fileStorage&&a.append(d),a.find(".js-cancel").on("click",function(){a.find(".js-url").remove(),a.find(".js-fileupload").removeClass("right"),f.removeExtras(),f.initWithDropzone()}),a.find("div.description").before(c),b.editor&&a.find("div.js-url").append('<button class="btn btn-blue js-button-accept">Save</button>'),a.find(".js-button-accept").on("click",function(){e=a.find(".js-upload-url").val(),a.find("div.description").hide(),a.find(".js-fileupload").removeClass("right"),a.find(".js-url").remove(),""===e?(a.trigger("uploadsuccess","http://"),f.initWithDropzone()):f.complete(e)}),b.fileStorage!==!1&&a.append('<a class="image-upload" title="Add image"><span class="hidden">Upload</span></a>'),a.find("a.image-upload").on("click",function(){a.find(".js-url").remove(),a.find(".js-fileupload").removeClass("right"),f.initWithDropzone()})},initWithImage:function(){var b=this;a.removeClass("image-uploader image-uploader-url").addClass("pre-image-uploader"),a.find("div.description").hide(),a.append(d),a.find(".js-cancel").on("click",function(){a.find("img.js-upload-target").attr({src:""}),a.find("div.description").show(),a.delay(2500).animate({opacity:100},1e3,function(){b.init()}),a.trigger("uploadsuccess","http://"),b.initWithDropzone()})},init:function(){var b=a.find("img.js-upload-target");b[0]||a.prepend('<img class="js-upload-target" style="display: none"  src="" />'),$(".js-button-accept").prop("disabled",!1),""===b.attr("src")||void 0===b.attr("src")?this.initWithDropzone():this.initWithImage()}})},d=function(a){var b=$.extend({progressbar:!0,editor:!1,fileStorage:!0},a);return this.each(function(){var a,d=$(this);a=new c(d,b),a.init()})},b["default"]=d}),define("ghost/components/gh-activating-list-item",["exports"],function(a){"use strict";var b=Ember.Component.extend({tagName:"li",classNameBindings:["active"],active:!1});a["default"]=b}),define("ghost/components/gh-codemirror",["ghost/mixins/marker-manager","ghost/utils/codemirror-mobile","ghost/utils/set-scroll-classname","ghost/utils/codemirror-shortcuts","exports"],function(a,b,c,d,e){"use strict";var f=a["default"],g=b["default"],h=c["default"],i=d["default"];i.init();var j=function(a,b){var c,d=a.component,e=_.bind(d.checkLine,d),f=_.bind(d.checkMarkers,d);for(c=b.from.line;c<b.from.line+b.text.length;c+=1)e(c,b.origin);f(),a.component.set("value",a.getValue())},k=function(a){var b=a.getScrollInfo(),c=a.component;b.codemirror=a,c.throttle=Ember.run.throttle(c,function(){this.set("scrollInfo",b)},10)},l=Ember.TextArea.extend(f,{didInsertElement:function(){Ember.run.scheduleOnce("afterRender",this,this.afterRenderEvent)},afterRenderEvent:function(){var a=_.bind(this.initMarkers,this);g.createIfMobile(),this.initCodemirror(),this.codemirror.eachLine(a),this.sendAction("setCodeMirror",this)},initCodemirror:function(){var a=CodeMirror.fromTextArea(this.get("element"),{mode:"gfm",tabMode:"indent",tabindex:"2",cursorScrollMargin:10,lineWrapping:!0,dragDrop:!1,extraKeys:{Home:"goLineLeft",End:"goLineRight","Ctrl-U":!1,"Cmd-U":!1,"Shift-Ctrl-U":!1,"Shift-Cmd-U":!1,"Ctrl-S":!1,"Cmd-S":!1,"Ctrl-D":!1,"Cmd-D":!1}});a.component=this,a.on("change",j),a.on("scroll",k),a.on("scroll",Ember.run.bind(Ember.$(".CodeMirror-scroll"),h,{target:Ember.$(".js-entry-markdown"),offset:10})),this.set("codemirror",a)},disableCodeMirror:function(){var a=this.get("codemirror");a.setOption("readOnly","nocursor"),a.off("change",j)},enableCodeMirror:function(){var a=this.get("codemirror");a.setOption("readOnly",!1),a.off("change",j),a.on("change",j)},removeThrottle:function(){Ember.run.cancel(this.throttle)}.on("willDestroyElement"),removeCodemirrorHandlers:function(){var a=this.get("codemirror");a.off("change",j),a.off("scroll")}.on("willDestroyElement"),clearMarkerManagerMarkers:function(){this.clearMarkers()}.on("willDestroyElement")});e["default"]=l}),define("ghost/components/gh-file-upload",["exports"],function(a){"use strict";var b=Ember.Component.extend({_file:null,uploadButtonText:"Text",uploadButtonDisabled:!0,change:function(a){this.set("uploadButtonDisabled",!1),this.sendAction("onAdd"),this._file=a.target.files[0]},onUpload:"onUpload",actions:{upload:function(){!this.uploadButtonDisabled&&this._file&&this.sendAction("onUpload",this._file),this.set("uploadButtonDisabled",!0)}}});a["default"]=b}),define("ghost/components/gh-form",["exports"],function(a){"use strict";var b=Ember.View.extend({tagName:"form",attributeBindings:["enctype"],reset:function(){this.$().get(0).reset()},didInsertElement:function(){this.get("controller").on("reset",this,this.reset)},willClearRender:function(){this.get("controller").off("reset",this,this.reset)}});a["default"]=b}),define("ghost/components/gh-input",["ghost/mixins/text-input","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.TextField.extend(c);b["default"]=d}),define("ghost/components/gh-markdown",["ghost/assets/lib/uploader","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Component.extend({didInsertElement:function(){this.set("scrollWrapper",this.$().closest(".entry-preview-content"))},adjustScrollPosition:function(){var a=this.get("scrollWrapper"),b=this.get("scrollPosition");a.scrollTop(b)}.observes("scrollPosition"),reInitDropzones:function(){Ember.run.scheduleOnce("afterRender",this,function(){var a=$(".js-drop-zone");c.call(a,{editor:!0,fileStorage:this.get("config.fileStorage")}),a.on("uploadstart",_.bind(this.sendAction,this,"uploadStarted")),a.on("uploadfailure",_.bind(this.sendAction,this,"uploadFinished")),a.on("uploadsuccess",_.bind(this.sendAction,this,"uploadFinished")),a.on("uploadsuccess",_.bind(this.sendAction,this,"uploadSuccess"))})}.observes("markdown")});b["default"]=d}),define("ghost/components/gh-modal-dialog",["exports"],function(a){"use strict";var b=Ember.Component.extend({didInsertElement:function(){this.$(".js-modal-container").fadeIn(50),this.$(".js-modal-background").show().fadeIn(10,function(){$(this).addClass("in")}),this.$(".js-modal").addClass("in")},willDestroyElement:function(){return this.$(".js-modal").removeClass("in"),this.$(".js-modal-background").removeClass("in"),this._super()},confirmaccept:"confirmAccept",confirmreject:"confirmReject",actions:{closeModal:function(){this.sendAction()},confirm:function(a){this.sendAction("confirm"+a),this.sendAction()}},klass:Ember.computed("type","style","animation",function(){var a=[];return a.push(this.get("type")?"modal-"+this.get("type"):"modal"),this.get("style")&&this.get("style").split(",").forEach(function(b){a.push("modal-style-"+b)}),a.push(this.get("animation")),a.join(" ")}),acceptButtonClass:Ember.computed("confirm.accept.buttonClass",function(){return this.get("confirm.accept.buttonClass")?this.get("confirm.accept.buttonClass"):"btn btn-green"}),rejectButtonClass:Ember.computed("confirm.reject.buttonClass",function(){return this.get("confirm.reject.buttonClass")?this.get("confirm.reject.buttonClass"):"btn btn-red"})});a["default"]=b}),define("ghost/components/gh-notification",["exports"],function(a){"use strict";var b=Ember.Component.extend({classNames:["js-bb-notification"],typeClass:Ember.computed(function(){var a,b,c="",d=this.get("message");return"function"==typeof d.toJSON?(a=d.get("type"),b=d.get("dismissible")):(a=d.type,b=d.dismissible),c+="notification-"+a,"success"===a&&b!==!1&&(c+=" notification-passive"),c}),didInsertElement:function(){var a=this;a.$().on("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(b){"fade-out"===b.originalEvent.animationName&&a.notifications.removeObject(a.get("message"))})},actions:{closeNotification:function(){var a=this;a.notifications.closeNotification(a.get("message"))}}});a["default"]=b}),define("ghost/components/gh-notifications",["exports"],function(a){"use strict";var b=Ember.Component.extend({tagName:"aside",classNames:"notifications",classNameBindings:["location"],messages:Ember.computed.filter("notifications",function(a){if(!this.get("location"))return!0;var b="function"==typeof a.toJSON?a.get("location"):a.location;return this.get("location")===b}),messageCountObserver:function(){this.sendAction("notify",this.get("messages").length)}.observes("messages.[]")});a["default"]=b}),define("ghost/components/gh-popover-button",["ghost/mixins/popover-mixin","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Component.extend(c,{tagName:"button",popoverName:null,click:function(a){this._super(a),this.get("popover").togglePopover(this.get("popoverName"),this)}});b["default"]=d}),define("ghost/components/gh-popover",["ghost/mixins/popover-mixin","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Component.extend(c,{classNames:"ghost-popover fade-in",name:null,closeOnClick:!1,closing:!1,open:function(){this.set("closing",!1),this.set("isOpen",!0),this.set("button.isOpen",!0)},close:function(){var a=this;this.set("closing",!0),this.get("button")&&this.set("button.isOpen",!1),this.$().fadeOut(200,function(){a.get("closing")&&(a.set("isOpen",!1),a.set("closing",!1))})},toggle:function(a){var b=this.get("closing"),c=this.get("isOpen"),d=this.get("name"),e=this.get("button"),f=a.target;d!==f||c&&!b?c&&this.close():(e||(e=a.button,this.set("button",e)),this.open())},click:function(a){return this._super(a),this.get("closeOnClick")?this.close():void 0},didInsertElement:function(){this._super();var a=this.get("popover");a.on("close",this,this.close),a.on("toggle",this,this.toggle)},willDestroyElement:function(){this._super();var a=this.get("popover");a.off("close",this,this.close),a.off("toggle",this,this.toggle)}});b["default"]=d}),define("ghost/components/gh-role-selector",["ghost/components/gh-select","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({roles:Ember.computed.alias("options"),options:Ember.computed(function(){var a=this.store.find("role",{permissions:"assign"});return Ember.ArrayProxy.extend(Ember.PromiseProxyMixin).create({promise:a})})});b["default"]=d}),define("ghost/components/gh-select",["exports"],function(a){"use strict";var b=Ember.Component.extend({tagName:"span",classNames:["gh-select"],attributeBindings:["tabindex"],tabindex:"0",options:null,initialValue:null,resolvedOptions:null,resolvedInitialValue:null,init:function(){var a=this;this._super.apply(this,arguments),Ember.RSVP.hash({resolvedOptions:this.get("options"),resolvedInitialValue:this.get("initialValue")}).then(function(b){a.setProperties(b),Ember.run.schedule("afterRender",function(){a.setInitialValue()})})},setInitialValue:function(){var a=this.get("resolvedInitialValue"),b=this.get("resolvedOptions"),c=b.indexOf(a);c>-1&&this.$("option:eq("+c+")").prop("selected",!0)},change:function(){this._changeSelection()},_changeSelection:function(){var a=this._selectedValue();Ember.set(this,"value",a),this.sendAction("onChange",a)},_selectedValue:function(){var a=this.$("select")[0].selectedIndex;return this.get("options").objectAt(a)}});a["default"]=b}),define("ghost/components/gh-tab-pane",["exports"],function(a){"use strict";var b=Ember.Component.extend({classNameBindings:["active"],tabsManager:Ember.computed(function(){return this.nearestWithProperty("isTabsManager")}),tab:Ember.computed("tabsManager.tabs.@each",function(){var a=this.get("tabsManager.tabPanes").indexOf(this),b=this.get("tabsManager.tabs");return b&&b.objectAt(a)}),active:Ember.computed.alias("tab.active"),registerWithTabs:function(){this.get("tabsManager").registerTabPane(this)}.on("didInsertElement"),unregisterWithTabs:function(){this.get("tabsManager").unregisterTabPane(this)}.on("willDestroyElement")});a["default"]=b}),define("ghost/components/gh-tab",["exports"],function(a){"use strict";var b=Ember.Component.extend({tabsManager:Ember.computed(function(){return this.nearestWithProperty("isTabsManager")}),active:Ember.computed("tabsManager.activeTab",function(){return this.get("tabsManager.activeTab")===this}),index:Ember.computed("tabsManager.tabs.@each",function(){return this.get("tabsManager.tabs").indexOf(this)}),click:function(){this.get("tabsManager").select(this)},registerWithTabs:function(){this.get("tabsManager").registerTab(this)}.on("didInsertElement"),unregisterWithTabs:function(){this.get("tabsManager").unregisterTab(this)}.on("willDestroyElement")});a["default"]=b}),define("ghost/components/gh-tabs-manager",["exports"],function(a){"use strict";var b=Ember.Component.extend({activeTab:null,tabs:[],tabPanes:[],select:function(a){this.set("activeTab",a),this.sendAction("selected")},isTabsManager:!0,registerTab:function(a){this.get("tabs").addObject(a)},unregisterTab:function(a){this.get("tabs").removeObject(a)},registerTabPane:function(a){this.get("tabPanes").addObject(a)},unregisterTabPane:function(a){this.get("tabPanes").removeObject(a)}});a["default"]=b}),define("ghost/components/gh-textarea",["ghost/mixins/text-input","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.TextArea.extend(c);b["default"]=d}),define("ghost/components/gh-trim-focus-input",["exports"],function(a){"use strict";var b=Ember.TextField.extend({focus:!0,setFocus:function(){this.focus&&this.$().val(this.$().val()).focus()}.on("didInsertElement"),focusOut:function(){var a=this.$().val();this.$().val(a.trim())}});a["default"]=b}),define("ghost/components/gh-upload-modal",["ghost/components/gh-modal-dialog","ghost/assets/lib/uploader","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=d.extend({layoutName:"components/gh-modal-dialog",didInsertElement:function(){this._super(),e.call(this.$(".js-drop-zone"),{fileStorage:this.get("config.fileStorage")})},confirm:{reject:{func:function(){return!0},buttonClass:"btn btn-default",text:"Cancel"},accept:{buttonClass:"btn btn-blue right",text:"Save",func:function(){var a="model."+this.get("imageType");return this.$(".js-upload-url").val()?this.set(a,this.$(".js-upload-url").val()):this.set(a,this.$(".js-upload-target").attr("src")),!0}}},actions:{closeModal:function(){this.sendAction()},confirm:function(a){var b=this.get("confirm."+a+".func");"function"==typeof b&&b.apply(this),this.sendAction(),this.sendAction("confirm"+a)}}});c["default"]=f}),define("ghost/components/gh-uploader",["ghost/assets/lib/uploader","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Component.extend({classNames:["image-uploader","js-post-image-upload"],setup:function(){var a=this.$(),b=this;c.call(a,{editor:!0,fileStorage:this.get("config.fileStorage")}),a.on("uploadsuccess",function(a,c){c&&""!==c&&"http://"!==c&&b.sendAction("uploaded",c)}),a.find(".js-cancel").on("click",function(){b.sendAction("canceled")})}.on("didInsertElement"),removeListeners:function(){var a=this.$();a.off(),a.find(".js-cancel").off()}.on("willDestroyElement")});b["default"]=d}),define("ghost/config",["exports"],function(a){"use strict";function b(a){!a instanceof Ember.Application}a["default"]=b}),define("ghost/controllers/application",["exports"],function(a){"use strict";var b=Ember.Controller.extend({hideNav:Ember.computed.match("currentPath",/(error|signin|signup|setup|forgotten|reset)/),topNotificationCount:0,showGlobalMobileNav:!1,showRightOutlet:!1,actions:{topNotificationChange:function(a){this.set("topNotificationCount",a)}}});a["default"]=b}),define("ghost/controllers/debug",["exports"],function(a){"use strict";var b=Ember.Controller.extend(Ember.Evented,{uploadButtonText:"Import",importErrors:"",actions:{onUpload:function(a){var b=this,c=new FormData;this.set("uploadButtonText","Importing"),this.notifications.closePassive(),c.append("importfile",a),ic.ajax.request(this.get("ghostPaths.url").api("db"),{type:"POST",data:c,dataType:"json",cache:!1,contentType:!1,processData:!1}).then(function(){b.notifications.showSuccess("Import successful.")}).catch(function(a){a&&a.jqXHR&&a.jqXHR.responseJSON&&a.jqXHR.responseJSON.errors&&b.set("importErrors",a.jqXHR.responseJSON.errors),b.notifications.showError("Import Failed")}).finally(function(){b.set("uploadButtonText","Import"),b.trigger("reset")})},exportData:function(){var a=$("#iframeDownload"),b=this.get("ghostPaths.url").api("db")+"?access_token="+this.get("session.access_token");0===a.length&&(a=$("<iframe>",{id:"iframeDownload"}).hide().appendTo("body")),a.attr("src",b)},sendTestEmail:function(){var a=this;ic.ajax.request(this.get("ghostPaths.url").api("mail","test"),{type:"POST"}).then(function(){a.notifications.showSuccess("Check your email for the test message.")}).catch(function(b){"undefined"!=typeof b.jqXHR?a.notifications.showAPIError(b):a.notifications.showErrors(b)})}}});a["default"]=b}),define("ghost/controllers/editor/edit",["ghost/mixins/editor-base-controller","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.ObjectController.extend(c);b["default"]=d}),define("ghost/controllers/editor/new",["ghost/mixins/editor-base-controller","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.ObjectController.extend(c,{actions:{save:function(){var a=this;this._super().then(function(b){b.get("id")&&a.transitionToRoute("editor.edit",b)})}}});b["default"]=d}),define("ghost/controllers/error",["exports"],function(a){"use strict";var b=Ember.Controller.extend({code:Ember.computed("content.status",function(){return this.get("content.status")>200?this.get("content.status"):500}),message:Ember.computed("content.statusText",function(){return 404===this.get("code")?"No Ghost Found":"error"!==this.get("content.statusText")?this.get("content.statusText"):"Internal Server Error"}),stack:!1});a["default"]=b}),define("ghost/controllers/forgotten",["ghost/utils/ajax","ghost/mixins/validation-engine","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Controller.extend(e,{email:"",submitting:!1,validationType:"forgotten",actions:{submit:function(){var a=this,b=a.getProperties("email");this.toggleProperty("submitting"),this.validate({format:!1}).then(function(){d({url:a.get("ghostPaths.url").api("authentication","passwordreset"),type:"POST",data:{passwordreset:[{email:b.email}]}}).then(function(){a.toggleProperty("submitting"),a.notifications.showSuccess("Please check your email for instructions.",{delayed:!0}),a.set("email",""),a.transitionToRoute("signin")}).catch(function(b){a.toggleProperty("submitting"),a.notifications.showAPIError(b,{defaultErrorText:"There was a problem logging in, please try again."})})}).catch(function(b){a.toggleProperty("submitting"),a.notifications.showErrors(b)})}}});c["default"]=f}),define("ghost/controllers/modals/auth-failed-unsaved",["exports"],function(a){"use strict";var b=Ember.Controller.extend({editorController:Ember.computed.alias("model"),actions:{confirmAccept:function(){var a=this.get("editorController");a&&a.get("model").rollback(),window.onbeforeunload=null,window.location=this.get("ghostPaths").adminRoot+"/signin/"},confirmReject:function(){}},confirm:{accept:{text:"Leave",buttonClass:"btn btn-red"},reject:{text:"Stay",buttonClass:"btn btn-default btn-minor"}}});a["default"]=b}),define("ghost/controllers/modals/copy-html",["exports"],function(a){"use strict";var b=Ember.Controller.extend({generatedHTML:Ember.computed.alias("model.generatedHTML")});a["default"]=b}),define("ghost/controllers/modals/delete-all",["exports"],function(a){"use strict";var b=Ember.Controller.extend({actions:{confirmAccept:function(){var a=this;ic.ajax.request(this.get("ghostPaths.url").api("db"),{type:"DELETE"}).then(function(){a.notifications.showSuccess("All content deleted from database.")}).catch(function(b){a.notifications.showErrors(b)})},confirmReject:function(){return!1}},confirm:{accept:{text:"Delete",buttonClass:"btn btn-red"},reject:{text:"Cancel",buttonClass:"btn btn-default btn-minor"}}});a["default"]=b}),define("ghost/controllers/modals/delete-post",["exports"],function(a){"use strict";var b=Ember.Controller.extend({actions:{confirmAccept:function(){var a=this,b=this.get("model");b.updateTags(),b.destroyRecord().then(function(){a.get("popover").closePopovers(),a.transitionToRoute("posts.index"),a.notifications.showSuccess("Your post has been deleted.",{delayed:!0})},function(){a.notifications.showError("Your post could not be deleted. Please try again.")})},confirmReject:function(){return!1}},confirm:{accept:{text:"Delete",buttonClass:"btn btn-red"},reject:{text:"Cancel",buttonClass:"btn btn-default btn-minor"}}});a["default"]=b}),define("ghost/controllers/modals/delete-user",["exports"],function(a){"use strict";var b=Ember.Controller.extend({actions:{confirmAccept:function(){var a=this,b=this.get("model");b.destroyRecord().then(function(){a.store.unloadAll("post"),a.transitionToRoute("settings.users"),a.notifications.showSuccess("The user has been deleted.",{delayed:!0})},function(){a.notifications.showError("The user could not be deleted. Please try again.")})},confirmReject:function(){return!1}},confirm:{accept:{text:"Delete User",buttonClass:"btn btn-red"},reject:{text:"Cancel",buttonClass:"btn btn-default btn-minor"}}});a["default"]=b}),define("ghost/controllers/modals/invite-new-user",["exports"],function(a){"use strict";var b=Ember.Controller.extend({authorRole:Ember.computed(function(){var a=this;return this.store.find("role").then(function(b){var c=b.findBy("name","Author");return a.set("role",c),a.set("authorRole",c),c})}),confirm:{accept:{text:"send invitation now"},reject:{buttonClass:"hidden"}},actions:{setRole:function(a){this.set("role",a)},confirmAccept:function(){var a,b=this.get("email"),c=this.get("role"),d=this;d.set("email",""),d.set("role",d.get("authorRole")),d.send("closeModal"),this.store.find("user").then(function(e){var f=e.findBy("email",b);f?d.notifications.showWarn("invited"===f.get("status")||"invited-pending"===f.get("status")?"A user with that email address was already invited.":"A user with that email address already exists."):(a=d.store.createRecord("user",{email:b,status:"invited",role:c}),a.save().then(function(){var c="Invitation sent! ("+b+")";"invited-pending"===a.get("status")?d.notifications.showWarn("Invitation email was not sent.  Please try resending."):d.notifications.showSuccess(c)}).catch(function(b){a.deleteRecord(),d.notifications.showErrors(b)}))})},confirmReject:function(){return!1}}});a["default"]=b}),define("ghost/controllers/modals/leave-editor",["exports"],function(a){"use strict";var b=Ember.Controller.extend({args:Ember.computed.alias("model"),actions:{confirmAccept:function(){var a,b,c,d=this.get("args");return Ember.isArray(d)&&(a=d[0],c=d[1],b=a.get("model")),c&&a?(b.updateTags(),b.get("isNew")?b.deleteRecord():b.rollback(),a.set("isDirty",!1),window.onbeforeunload=null,void c.retry()):(this.notifications.showError("Sorry, there was an error in the application. Please let the Ghost team know what happened."),!0)},confirmReject:function(){}},confirm:{accept:{text:"Leave",buttonClass:"btn btn-red"},reject:{text:"Stay",buttonClass:"btn btn-default btn-minor"}}});a["default"]=b}),define("ghost/controllers/modals/transfer-owner",["exports"],function(a){"use strict";var b=Ember.Controller.extend({actions:{confirmAccept:function(){var a=this.get("model"),b=this.get("ghostPaths.url").api("users","owner"),c=this;c.get("popover").closePopovers(),ic.ajax.request(b,{type:"PUT",data:{owner:[{id:a.get("id")}]}}).then(function(b){b&&Ember.isArray(b.users)&&b.users.forEach(function(a){var b=c.store.getById("user",a.id),d=c.store.getById("role",a.roles[0].id);b.set("role",d)}),c.notifications.showSuccess("Ownership successfully transferred to "+a.get("name"))}).catch(function(a){c.notifications.showAPIError(a)})},confirmReject:function(){return!1}},confirm:{accept:{text:"Yep - I'm sure",buttonClass:"btn btn-red"},reject:{text:"Cancel",buttonClass:"btn btn-default btn-minor"}}});
  a["default"]=b}),define("ghost/controllers/modals/upload",["exports"],function(a){"use strict";var b=Ember.Controller.extend({acceptEncoding:"image/*",actions:{confirmAccept:function(){var a=this;this.get("model").save().then(function(b){return a.notifications.showSuccess("Saved"),b}).catch(function(b){a.notifications.showErrors(b)})},confirmReject:function(){return!1}}});a["default"]=b}),define("ghost/controllers/post-settings-menu",["ghost/utils/date-formatting","ghost/models/slug-generator","ghost/utils/bound-one-way","exports"],function(a,b,c,d){"use strict";var e=a.parseDateString,f=a.formatDate,g=b["default"],h=c["default"],i=Ember.ObjectController.extend({needs:"application",isViewingSubview:Ember.computed("controllers.application.showRightOutlet",function(a,b){return this.get("controllers.application.showRightOutlet")&&arguments.length>1?b:!1}),selectedAuthor:null,initializeSelectedAuthor:function(){var a=this;return this.get("author").then(function(b){return a.set("selectedAuthor",b),b})}.observes("model"),changeAuthor:function(){var a=this.get("author"),b=this.get("selectedAuthor"),c=this.get("model"),d=this;b.get("id")!==a.get("id")&&(c.set("author",b),this.get("isNew")||c.save().catch(function(b){d.showErrors(b),d.set("selectedAuthor",a),c.rollback()}))}.observes("selectedAuthor"),authors:Ember.computed(function(){var a={};return a.promise=this.store.find("user",{limit:"all"}).then(function(a){return a.rejectBy("id","me")}).then(function(a){return a.filter(function(a){return a.get("active")})}),Ember.ArrayProxy.extend(Ember.PromiseProxyMixin).create(a)}),publishedAtPlaceholder:Ember.computed("publishedAtValue",function(){var a=this.get("published_at");return f(a?a:moment())}),publishedAtValue:h("published_at",f),slugValue:h("slug"),slugGenerator:Ember.computed(function(){return g.create({ghostPaths:this.get("ghostPaths"),slugType:"post"})}),generateSlugPlaceholder:function(){var a=this,b=this.get("titleScratch");this.get("slugGenerator").generateSlug(b).then(function(b){a.set("slugPlaceholder",b)})},metaTitleScratch:h("meta_title"),metaDescriptionScratch:h("meta_description"),seoTitle:Ember.computed("titleScratch","metaTitleScratch",function(){var a=this.get("metaTitleScratch")||"";return a.length>0?a:this.get("titleScratch")}),seoDescription:Ember.computed("scratch","metaDescriptionScratch",function(){var a,b,c=this.get("metaDescriptionScratch")||"",d="";return c.length>0?b=c:(a=$(".rendered-markdown"),!_.isUndefined(a)&&a.length>0&&(d=a.clone(),d.find(".image-uploader").remove(),d=d[0].innerHTML),b=$("<div />",{html:d}).text(),b=b.replace(/\n+/g," ").trim()),b.length>156&&(b=b.substring(0,156).trim(),b=Ember.Handlebars.Utils.escapeExpression(b),b=new Ember.Handlebars.SafeString(b+"&hellip;")),b}),seoSlug:Ember.computed("slug","slugPlaceholder",function(){return this.get(this.get("slug")?"slug":"slugPlaceholder")}),addTitleObserver:function(){this.get("isNew")&&this.addObserver("titleScratch",this,"titleObserver")}.observes("model"),titleObserver:function(){this.get("isNew")&&!this.get("title")&&Ember.run.debounce(this,"generateSlugPlaceholder",700)},slugPlaceholder:Ember.computed(function(a,b){var c=this.get("slug");return c?c:arguments.length>1?b:this.get("titleScratch")}),showErrors:function(a){a=Ember.isArray(a)?a:[a],this.notifications.showErrors(a)},showSuccess:function(a){this.notifications.showSuccess(a)},actions:{togglePage:function(){var a=this;this.toggleProperty("page"),this.get("isNew")||this.get("model").save().catch(function(b){a.showErrors(b),a.get("model").rollback()})},toggleFeatured:function(){var a=this;this.toggleProperty("featured"),this.get("isNew")||this.get("model").save(this.get("saveOptions")).catch(function(b){a.showErrors(b),a.get("model").rollback()})},updateSlug:function(a){var b=this.get("slug"),c=this;return a=a||b,a=a&&a.trim(),a&&b!==a?void this.get("slugGenerator").generateSlug(a).then(function(d){if(d!==b){var e=d.split("-"),f=Number(e.pop());if(_.isNumber(f)&&f>0&&b===e.join("-")&&d!==a)return void c.set("slugValue",b);if(c.set("slug",d),c.hasObserverFor("titleScratch")&&c.removeObserver("titleScratch",c,"titleObserver"),!c.get("isNew"))return c.get("model").save()}}).catch(function(a){c.showErrors(a),c.get("model").rollback()}):void this.set("slugValue",b)},setPublishedAt:function(a){var b="",c=e(a),d=this.get("published_at"),f=this;return a?(c.isValid()||(b="Published Date must be a valid date with format: DD MMM YY @ HH:mm (e.g. 6 Dec 14 @ 15:00)"),c.diff(new Date,"h")>0&&(b="Published Date cannot currently be in the future."),b?void this.showErrors(b):void(d&&d.isSame(c)||(this.set("published_at",c),this.get("isNew")||this.get("model").save().catch(function(a){f.showErrors(a),f.get("model").rollback()})))):void(this.get("isDraft")&&this.set("published_at",null))},setMetaTitle:function(a){var b=this,c=this.get("meta_title")||"";c!==a&&(this.set("meta_title",a),this.get("isNew")||this.get("model").save().catch(function(a){b.showErrors(a)}))},setMetaDescription:function(a){var b=this,c=this.get("meta_description")||"";c!==a&&(this.set("meta_description",a),this.get("isNew")||this.get("model").save().catch(function(a){b.showErrors(a)}))},setCoverImage:function(a){var b=this;this.set("image",a),this.get("isNew")||this.get("model").save().catch(function(a){b.showErrors(a),b.get("model").rollback()})},clearCoverImage:function(){var a=this;this.set("image",""),this.get("isNew")||this.get("model").save().catch(function(b){a.showErrors(b),a.get("model").rollback()})},showSubview:function(){this.set("isViewingSubview",!0)},closeSubview:function(){this.set("isViewingSubview",!1)}}});d["default"]=i}),define("ghost/controllers/post-tags-input",["exports"],function(a){"use strict";var b=Ember.Controller.extend({tagEnteredOrder:Ember.A(),tags:Ember.computed("parentController.tags",function(){var a=Ember.ArrayProxy.create({content:this.get("parentController.tags")}),b=a.get("arrangedContent").slice();return a.get("arrangedContent").clear(),this.get("tagEnteredOrder").forEach(function(c){var d=b.find(function(a){return a.get("name")===c});d&&(a.get("arrangedContent").addObject(d),b.removeObject(d))}),a.get("arrangedContent").unshiftObjects(b),a}),suggestions:null,newTagText:null,actions:{loadAllTags:function(){this.store.find("tag")},addNewTag:function(){var a,b,c,d=this.get("newTagText");return Ember.isEmpty(d)||this.hasTag(d)?void this.send("reset"):(a=d.toLowerCase(),b=this.store.all("tag").filter(function(b){return b.get("name").toLowerCase()===a}),b.get("length")?this.send("addTag",b.get("firstObject")):(c=this.store.createRecord("tag"),c.set("name",d),this.send("addTag",c)),void this.send("reset"))},addTag:function(a){Ember.isEmpty(a)||(this.get("tags").addObject(a),this.get("tagEnteredOrder").addObject(a.get("name"))),this.send("reset")},deleteTag:function(a){this.get("tags").removeObject(a),this.get("tagEnteredOrder").removeObject(a.get("name"))},deleteLastTag:function(){this.send("deleteTag",this.get("tags.lastObject"))},selectSuggestion:function(a){Ember.isEmpty(a)||(this.get("suggestions").setEach("selected",!1),a.set("selected",!0))},selectNextSuggestion:function(){var a,b,c=this.get("suggestions"),d=this.get("selectedSuggestion");Ember.isEmpty(c)||(a=c.indexOf(d),a+1<c.get("length")?(b=c[a+1],this.send("selectSuggestion",b)):c.setEach("selected",!1))},selectPreviousSuggestion:function(){var a,b,c,d=this.get("suggestions"),e=this.get("selectedSuggestion");Ember.isEmpty(d)||(a=d.indexOf(e),-1===a?(b=d.get("length")-1,this.send("selectSuggestion",d[b])):a-1>=0?(c=d[a-1],this.send("selectSuggestion",c)):d.setEach("selected",!1))},addSelectedSuggestion:function(){var a=this.get("selectedSuggestion");Ember.isEmpty(a)||this.send("addTag",a.get("tag"))},reset:function(){this.set("suggestions",null),this.set("newTagText",null)}},selectedSuggestion:Ember.computed("suggestions.@each.selected",function(){var a=this.get("suggestions");return a&&a.get("length")?a.filterBy("selected").get("firstObject"):null}),updateSuggestionsList:function(){var a,b=this.get("newTagText"),c=5,d=new Ember.A;return!b||Ember.isEmpty(b.trim())?void this.set("suggestions",null):(b=b.trim(),a=this.findMatchingTags(b),a=a.slice(0,c),a.forEach(function(a){var c=this.makeSuggestionObject(a,b);d.pushObject(c)},this),void this.set("suggestions",d))}.observes("newTagText"),findMatchingTags:function(a){var b,c=this,d=this.store.all("tag");return 0===d.get("length")?[]:(a=a.toLowerCase(),b=d.filter(function(b){var d,e;return d=-1!==b.get("name").toLowerCase().indexOf(a),e=c.hasTag(b.get("name")),d&&!e}))},hasTag:function(a){return this.get("tags").mapBy("name").contains(a)},makeSuggestionObject:function(a,b){var c,d=Ember.Handlebars.Utils.escapeExpression(b),e=d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),f=Ember.Handlebars.Utils.escapeExpression(a.get("name")),g=new RegExp("("+e+")","gi"),h=new Ember.Object;return c=f.replace(g,"<mark>$1</mark>"),c=new Ember.Handlebars.SafeString(c),h.set("tag",a),h.set("highlightedName",c),h}});a["default"]=b}),define("ghost/controllers/posts",["ghost/mixins/pagination-controller","exports"],function(a,b){"use strict";function c(a,b){var c=a.get("published_at"),d=b.get("published_at");return c||d?!c&&d?-1:!d&&c?1:Ember.compare(c.valueOf(),d.valueOf()):0}var d=a["default"],e=Ember.ArrayController.extend(d,{sortProperties:["status","published_at","updated_at"],orderBy:function(a,b){var d,e,f,g=a.get("updated_at"),h=b.get("updated_at");return a.get("isNew")||!g?-1:b.get("isNew")||!h?1:(d=Ember.compare(a.get("status"),b.get("status")),e=Ember.compare(g.valueOf(),h.valueOf()),f=c(a,b),0===d?0===f?-1*e:-1*f:d)},init:function(){this._super({modelType:"post"})}});b["default"]=e}),define("ghost/controllers/posts/post",["exports"],function(a){"use strict";var b=Ember.ObjectController.extend({isPublished:Ember.computed.equal("status","published"),classNameBindings:["featured"],actions:{toggleFeatured:function(){var a={disableNProgress:!0},b=this;this.toggleProperty("featured"),this.get("model").save(a).catch(function(a){b.notifications.showErrors(a)})},showPostContent:function(){this.transitionToRoute("posts.post",this.get("model"))}}});a["default"]=b}),define("ghost/controllers/reset",["ghost/utils/ajax","ghost/mixins/validation-engine","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Controller.extend(e,{passwords:{newPassword:"",ne2Password:""},token:"",submitButtonDisabled:!1,validationType:"reset",actions:{submit:function(){var a=this,b=a.getProperties("passwords","token");this.toggleProperty("submitting"),this.validate({format:!1}).then(function(){d({url:a.get("ghostPaths.url").api("authentication","passwordreset"),type:"PUT",data:{passwordreset:[{newPassword:b.passwords.newPassword,ne2Password:b.passwords.ne2Password,token:b.token}]}}).then(function(b){a.toggleProperty("submitting"),a.notifications.showSuccess(b.passwordreset[0].message,!0),a.transitionToRoute("signin")}).catch(function(b){a.notifications.showAPIError(b),a.toggleProperty("submitting")})}).catch(function(b){a.toggleProperty("submitting"),a.notifications.showErrors(b)})}}});c["default"]=f}),define("ghost/controllers/settings",["exports"],function(a){"use strict";var b=Ember.Controller.extend({showApps:Ember.computed.bool("config.apps")});a["default"]=b}),define("ghost/controllers/settings/app",["exports"],function(a){"use strict";var b={active:"active",working:"working",inactive:"inactive"},c=Ember.ObjectController.extend({appState:b.active,buttonText:"",setAppState:function(){this.set("appState",this.get("active")?b.active:b.inactive)}.on("init"),buttonTextSetter:function(){switch(this.get("appState")){case b.active:this.set("buttonText","Deactivate");break;case b.inactive:this.set("buttonText","Activate");break;case b.working:this.set("buttonText","Working")}}.observes("appState").on("init"),activeClass:Ember.computed("appState",function(){return this.appState===b.active?!0:!1}),inactiveClass:Ember.computed("appState",function(){return this.appState===b.inactive?!0:!1}),actions:{toggleApp:function(a){var c=this;this.set("appState",b.working),a.set("active",!a.get("active")),a.save().then(function(){c.setAppState()}).then(function(){alert("@TODO: Success")}).catch(function(){alert("@TODO: Failure")})}}});a["default"]=c}),define("ghost/controllers/settings/general",["exports"],function(a){"use strict";var b=Ember.ObjectController.extend({isDatedPermalinks:Ember.computed("permalinks",function(a,b){arguments.length>1&&this.set("permalinks",b?"/:year/:month/:day/:slug/":"/:slug/");var c=this.get("permalinks");return"/:slug/"!==c}),themes:Ember.computed(function(){return this.get("availableThemes").reduce(function(a,b){var c={};return c.name=b.name,c.label=b.package?b.package.name+" - "+b.package.version:b.name,c.package=b.package,c.active=!!b.active,a.push(c),a},[])}).readOnly(),actions:{save:function(){var a=this;return this.get("model").save().then(function(b){return a.notifications.showSuccess("Settings successfully saved."),b}).catch(function(b){a.notifications.showErrors(b)})},checkPostsPerPage:function(){(this.get("postsPerPage")<1||this.get("postsPerPage")>1e3||isNaN(this.get("postsPerPage")))&&this.set("postsPerPage",5)}}});a["default"]=b}),define("ghost/controllers/settings/users/index",["ghost/mixins/pagination-controller","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.ArrayController.extend(c,{init:function(){this._super({modelType:"user"})},users:Ember.computed.alias("model"),activeUsers:Ember.computed.filter("users",function(a){return/^active|warn-[1-4]|locked$/.test(a.get("status"))}),invitedUsers:Ember.computed.filter("users",function(a){var b=a.get("status");return"invited"===b||"invited-pending"===b})});b["default"]=d}),define("ghost/controllers/settings/users/user",["ghost/models/slug-generator","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.ObjectController.extend({user:Ember.computed.alias("model"),email:Ember.computed.readOnly("user.email"),slugValue:Ember.computed.oneWay("user.slug"),lastPromise:null,coverDefault:Ember.computed("ghostPaths",function(){return this.get("ghostPaths.url").asset("/shared/img/user-cover.png")}),userDefault:Ember.computed("ghostPaths",function(){return this.get("ghostPaths.url").asset("/shared/img/user-image.png")}),cover:Ember.computed("user.cover","coverDefault",function(){var a=this.get("user.cover");return Ember.isBlank(a)&&(a=this.get("coverDefault")),"background-image: url("+a+")"}),coverTitle:Ember.computed("user.name",function(){return this.get("user.name")+"'s Cover Image"}),image:Ember.computed("imageUrl",function(){return"background-image: url("+this.get("imageUrl")+")"}),imageUrl:Ember.computed("user.image",function(){return this.get("user.image")||this.get("userDefault")}),last_login:Ember.computed("user.last_login",function(){var a=this.get("user.last_login");return a?a.fromNow():"(Never)"}),created_at:Ember.computed("user.created_at",function(){var a=this.get("user.created_at");return a?a.fromNow():""}),slugGenerator:Ember.computed(function(){return c.create({ghostPaths:this.get("ghostPaths"),slugType:"user"})}),actions:{changeRole:function(a){this.set("model.role",a)},revoke:function(){var a=this,b=this.get("model"),c=this.get("email");b.reload().then(function(){a.get("invited")?b.destroyRecord().then(function(){var b="Invitation revoked. ("+c+")";a.notifications.showSuccess(b,!1)}).catch(function(b){a.notifications.showAPIError(b)}):(a.get("target").send("reload"),a.notifications.showError("This user has already accepted the invitation.",{delayed:500}))})},resend:function(){var a=this;this.get("model").resendInvite().then(function(b){var c="Invitation resent! ("+a.get("email")+")";"invited-pending"===b.users[0].status?a.notifications.showWarn("Invitation email was not sent.  Please try resending."):(a.get("model").set("status",b.users[0].status),a.notifications.showSuccess(c))}).catch(function(b){a.notifications.showAPIError(b)})},save:function(){var a,b,c=this.get("user"),d=this.get("slugValue"),e=this.get("lastPromise"),f=this;c.get("slug")!==d&&(b=!0,c.set("slug",d)),a=Ember.RSVP.resolve(e).then(function(){return c.save({format:!1})}).then(function(a){var c,d;return f.notifications.showSuccess("Settings successfully saved."),b&&(c=window.history.state.path,d=c.split("/"),d[d.length-2]=a.get("slug"),d=d.join("/"),window.history.replaceState({path:d},"",d)),a}).catch(function(a){f.notifications.showErrors(a)}),this.set("lastPromise",a)},password:function(){var a=this.get("user"),b=this;a.get("isPasswordValid")?a.saveNewPassword().then(function(c){return a.setProperties({password:"",newPassword:"",ne2Password:""}),b.notifications.showSuccess("Password updated."),c}).catch(function(a){b.notifications.showAPIError(a)}):b.notifications.showErrors(a.get("passwordValidationErrors"))},updateSlug:function(a){var b,c=this,d=this.get("lastPromise");b=Ember.RSVP.resolve(d).then(function(){var b=c.get("slug");return a=a||b,a=a.trim(),a&&b!==a?c.get("slugGenerator").generateSlug(a).then(function(d){if(d!==b){var e=d.split("-"),f=Number(e.pop());return _.isNumber(f)&&f>0&&b===e.join("-")&&d!==a?void c.set("slugValue",b):void c.set("slugValue",d)}}):void c.set("slugValue",b)}),this.set("lastPromise",b)}}});b["default"]=d}),define("ghost/controllers/setup",["ghost/utils/ajax","ghost/mixins/validation-engine","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.ObjectController.extend(e,{blogTitle:null,name:null,email:null,password:null,submitting:!1,validationType:"setup",actions:{setup:function(){var a=this,b=a.getProperties("blogTitle","name","email","password");a.notifications.closePassive(),this.toggleProperty("submitting"),this.validate({format:!1}).then(function(){d({url:a.get("ghostPaths.url").api("authentication","setup"),type:"POST",data:{setup:[{name:b.name,email:b.email,password:b.password,blogTitle:b.blogTitle}]}}).then(function(){a.get("session").authenticate("simple-auth-authenticator:oauth2-password-grant",{identification:a.get("email"),password:a.get("password")})},function(b){a.toggleProperty("submitting"),a.notifications.showAPIError(b)})},function(b){a.toggleProperty("submitting"),a.notifications.showErrors(b)})}}});c["default"]=f}),define("ghost/controllers/signin",["ghost/mixins/validation-engine","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Controller.extend(SimpleAuth.AuthenticationControllerMixin,c,{authenticator:"simple-auth-authenticator:oauth2-password-grant",validationType:"signin",actions:{authenticate:function(){var a=this.getProperties("identification","password");return this._super(a)},validateAndAuthenticate:function(){var a=this;this.validate({format:!1}).then(function(){a.notifications.closePassive(),a.send("authenticate")}).catch(function(b){a.notifications.showErrors(b)})}}});b["default"]=d}),define("ghost/controllers/signup",["ghost/utils/ajax","ghost/mixins/validation-engine","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.ObjectController.extend(e,{submitting:!1,validationType:"signup",actions:{signup:function(){var a=this,b=a.getProperties("name","email","password","token");a.notifications.closePassive(),this.toggleProperty("submitting"),this.validate({format:!1}).then(function(){d({url:a.get("ghostPaths.url").api("authentication","invitation"),type:"POST",dataType:"json",data:{invitation:[{name:b.name,email:b.email,password:b.password,token:b.token}]}}).then(function(){a.get("session").authenticate("simple-auth-authenticator:oauth2-password-grant",{identification:a.get("email"),password:a.get("password")})},function(b){a.toggleProperty("submitting"),a.notifications.showAPIError(b)})},function(b){a.toggleProperty("submitting"),a.notifications.showErrors(b)})}}});c["default"]=f}),define("ghost/docs/js/nav",[],function(){"use strict";!function(){function a(a){a.matches||(c.classList.remove("global-nav-expanded"),d.classList.remove("global-nav-expanded"))}var b=document.querySelector(".menu-button"),c=document.querySelector(".viewport"),d=document.querySelector(".global-nav"),e=document.querySelector(".viewport .page-content"),f=window.matchMedia("(max-width: 1025px)");f.addListener(a),a(f),b.addEventListener("click",function(a){a.preventDefault(),b.getAttribute("data-nav-open")?h():g()}),e.addEventListener("click",function(a){a.preventDefault(),console.log("click viewport"),c.classList.contains("global-nav-expanded")&&(console.log("close nav from viewport"),h())});var g=function(){b.setAttribute("data-nav-open","true"),c.classList.add("global-nav-expanded"),d.classList.add("global-nav-expanded")},h=function(){b.removeAttribute("data-nav-open"),c.classList.remove("global-nav-expanded"),d.classList.remove("global-nav-expanded")}}()}),define("ghost/helpers/gh-blog-url",["exports"],function(a){"use strict";var b=Ember.Handlebars.makeBoundHelper(function(){return new Ember.Handlebars.SafeString(this.get("config.blogUrl"))});a["default"]=b}),define("ghost/helpers/gh-count-characters",["exports"],function(a){"use strict";var b=Ember.Handlebars.makeBoundHelper(function(a){var b=document.createElement("span"),c=a?a.length:0;return b.className="word-count",b.style.color=c>180?"#E25440":"#9E9D95",b.innerHTML=200-c,new Ember.Handlebars.SafeString(b.outerHTML)});a["default"]=b}),define("ghost/helpers/gh-count-down-characters",["exports"],function(a){"use strict";var b=Ember.Handlebars.makeBoundHelper(function(a,b){var c=document.createElement("span"),d=a?a.length:0;return c.className="word-count",c.style.color=d>b?"#E25440":"#9FBB58",c.innerHTML=d,new Ember.Handlebars.SafeString(c.outerHTML)});a["default"]=b}),define("ghost/helpers/gh-count-words",["ghost/utils/word-count","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Handlebars.makeBoundHelper(function(a){if(/^\s*$/.test(a))return"0 words";var b=c(a||"");return b+(1===b?" word":" words")});b["default"]=d}),define("ghost/helpers/gh-format-html",["ghost/utils/caja-sanitizers","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Handlebars.makeBoundHelper(function(a){var b=a||"";return b=b.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,'<pre class="js-embed-placeholder">Embedded JavaScript</pre>'),b=b.replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi,'<pre class="iframe-embed-placeholder">Embedded iFrame</pre>'),b=html_sanitize(b,c.url,c.id),new Handlebars.SafeString(b)});b["default"]=d}),define("ghost/helpers/gh-format-markdown",["ghost/utils/caja-sanitizers","exports"],function(a,b){"use strict";var c=a["default"],d=new Showdown.converter({extensions:["ghostimagepreview","ghostgfm"]}),e=Ember.Handlebars.makeBoundHelper(function(a){var b="";return b=d.makeHtml(a||""),b=b.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,'<pre class="js-embed-placeholder">Embedded JavaScript</pre>'),b=b.replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi,'<pre class="iframe-embed-placeholder">Embedded iFrame</pre>'),b=html_sanitize(b,c.url,c.id),new Handlebars.SafeString(b)});b["default"]=e}),define("ghost/helpers/gh-format-timeago",["exports"],function(a){"use strict";var b=Ember.Handlebars.makeBoundHelper(function(a){return moment(a).fromNow()});a["default"]=b}),define("ghost/helpers/ghost-paths",["ghost/utils/ghost-paths","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=function(a,b){var d;switch(a.toString()){case"blog":d=c().blogRoot;break;case"admin":d=c().adminRoot;break;case"api":d=c().apiRoot;break;default:d=c().blogRoot}return b&&b.length>0&&(d+=b),new Ember.Handlebars.SafeString(d)}}),define("ghost/initializers/authentication",["ghost/utils/ghost-paths","exports"],function(a,b){"use strict";var c=a["default"],d=c(),e={name:"authentication",before:"simple-auth",after:"registerTrailingLocationHistory",initialize:function(a){window.ENV=window.ENV||{},window.ENV["simple-auth"]={authenticationRoute:"signin",routeAfterAuthentication:"content",authorizer:"simple-auth-authorizer:oauth2-bearer"},SimpleAuth.Session.reopen({user:Ember.computed(function(){return a.lookup("store:main").find("user","me")})}),SimpleAuth.Authenticators.OAuth2.reopen({serverTokenEndpoint:d.apiRoot+"/authentication/token",serverTokenRevocationEndpoint:d.apiRoot+"/authentication/revoke",refreshAccessTokens:!0,makeRequest:function(a,b){return b.client_id="ghost-admin",this._super(a,b)}}),SimpleAuth.Stores.LocalStorage.reopen({key:"ghost"+(0===d.subdir.indexOf("/")?"-"+d.subdir.substr(1):"")+":session"})}};b["default"]=e}),define("ghost/initializers/ghost-config",["exports"],function(a){"use strict";var b={name:"config",initialize:function(a,b){var c=$("body").data("apps"),d=$("body").data("filestorage"),e=$("body").data("blogurl");b.register("ghost:config",{apps:c,fileStorage:d,blogUrl:e},{instantiate:!1}),b.inject("route","config","ghost:config"),b.inject("controller","config","ghost:config"),b.inject("component","config","ghost:config")}};a["default"]=b}),define("ghost/initializers/ghost-paths",["ghost/utils/ghost-paths","exports"],function(a,b){"use strict";var c=a["default"],d={name:"ghost-paths",after:"store",initialize:function(a,b){b.register("ghost:paths",c(),{instantiate:!1}),b.inject("route","ghostPaths","ghost:paths"),b.inject("model","ghostPaths","ghost:paths"),b.inject("controller","ghostPaths","ghost:paths")}};b["default"]=d}),define("ghost/initializers/notifications",["ghost/utils/notifications","exports"],function(a,b){"use strict";var c=a["default"],d={name:"injectNotifications",before:"authentication",initialize:function(a,b){b.register("notifications:main",c),b.inject("controller","notifications","notifications:main"),b.inject("component","notifications","notifications:main"),b.inject("router","notifications","notifications:main"),b.inject("route","notifications","notifications:main")}};b["default"]=d}),define("ghost/initializers/popover",["ghost/mixins/body-event-listener","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Object.extend(Ember.Evented,c,{bodyClick:function(){this.closePopovers()},closePopovers:function(){this.trigger("close")},togglePopover:function(a,b){this.trigger("toggle",{target:a,button:b})}}),e={name:"popover",initialize:function(a,b){b.register("popover:service",d),b.inject("component:gh-popover","popover","popover:service"),b.inject("component:gh-popover-button","popover","popover:service"),b.inject("controller:modals.delete-post","popover","popover:service"),b.inject("controller:modals.transfer-owner","popover","popover:service"),b.inject("route:application","popover","popover:service")}};b["default"]=e}),define("ghost/initializers/store-injector",["exports"],function(a){"use strict";var b={name:"store-injector",after:"store",initialize:function(a,b){b.inject("component:gh-role-selector","store","store:main")}};a["default"]=b}),define("ghost/initializers/trailing-history",["exports"],function(a){"use strict";var b=Ember.HistoryLocation.extend({formatURL:function(){return this._super.apply(this,arguments).replace(/\/?$/,"/")}}),c={name:"registerTrailingLocationHistory",initialize:function(a,c){c.register("location:trailing-history",b)}};a["default"]=c}),define("ghost/mixins/body-event-listener",["exports"],function(a){"use strict";var b=Ember.Mixin.create({bodyElementSelector:"html",bodyClick:Ember.K,init:function(){return this._super(),Ember.run.next(this,this._setupDocumentHandlers)},willDestroy:function(){return this._super(),this._removeDocumentHandlers()},_setupDocumentHandlers:function(){if(!this._clickHandler){var a=this;return this._clickHandler=function(){return a.bodyClick()},$(this.get("bodyElementSelector")).on("click",this._clickHandler)}},_removeDocumentHandlers:function(){$(this.get("bodyElementSelector")).off("click",this._clickHandler),this._clickHandler=null},click:function(a){return a.stopPropagation()}});a["default"]=b}),define("ghost/mixins/current-user-settings",["exports"],function(a){"use strict";var b=Ember.Mixin.create({currentUser:function(){return this.store.find("user","me")},transitionAuthor:function(){var a=this;return function(b){return b.get("isAuthor")?a.transitionTo("settings.users.user",b):b}},transitionEditor:function(){var a=this;return function(b){return b.get("isEditor")?a.transitionTo("settings.users"):b}}});a["default"]=b}),define("ghost/mixins/editor-base-controller",["ghost/mixins/marker-manager","ghost/models/post","ghost/utils/bound-one-way","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"],h=["scratch","titleScratch","model.isDirty"];Ember.get(f,"attributes").forEach(function(a){h.push("model."+a)}),h.push("tags.[]");var i=Ember.Mixin.create(e,{needs:["post-tags-input"],init:function(){var a=this;this._super(),window.onbeforeunload=function(){return a.get("isDirty")?a.unloadDirtyMessage():null}},willPublish:g("isPublished"),previousTagNames:null,tagNames:Ember.computed("tags.[]",function(){return this.get("tags").mapBy("name")}),tagNamesEqual:function(){var a,b,c=this.get("tagNames"),d=this.get("previousTagNames");return c.length!==d.length?!1:(a=c.join(""),b=d.join(""),a===b)},modelSaved:function(){var a=this.get("model");a.updateTags(),this.set("previousTagNames",this.get("tagNames")),this.get("titleScratch")===a.get("title")&&this.get("scratch")===a.get("markdown")&&this.set("isDirty",!1)},isDirty:Ember.computed.apply(Ember,h.concat(function(a,b){if(arguments.length>1)return b;var c,d=this.get("model"),e=this.get("markdown"),f=this.get("title"),g=this.get("titleScratch"),h=this.getMarkdown().withoutMarkers;return this.tagNamesEqual()?g!==f?!0:e!==h?!0:d.get("isNew")?(c=Ember.keys(d.changedAttributes()),c.length?!0:!1):d.get("isDirty")?!0:!1:!0})),unloadDirtyMessage:function(){return"==============================\n\nHey there! It looks like you're in the middle of writing something and you haven't saved all of your content.\n\nSave before you go!\n\n=============================="},messageMap:{errors:{post:{published:{published:"Update failed.",draft:"Saving failed."},draft:{published:"Publish failed.",draft:"Saving failed."}}},success:{post:{published:{published:"Updated.",draft:"Saved."},draft:{published:"Published!",draft:"Saved."}}}},showSaveNotification:function(a,b,c){var d=this.messageMap.success.post[a][b];this.notifications.showSuccess(d,{delayed:c})},showErrorNotification:function(a,b,c,d){var e=this.messageMap.errors.post[a][b];e+="<br />"+c[0].message,this.notifications.showError(e,{delayed:d})},shouldFocusTitle:Ember.computed("model",function(){return!!this.get("model.isNew")}),actions:{save:function(){var a=this.get("willPublish")?"published":"draft",b=this.get("status"),c=this.get("isNew"),d=this;return d.notifications.closePassive(),this.get("controllers.post-tags-input").send("addNewTag"),this.set("markdown",this.getMarkdown().withoutMarkers),this.set("title",this.get("titleScratch")),this.set("status",a),this.get("model").save().then(function(a){return d.showSaveNotification(b,a.get("status"),c?!0:!1),a}).catch(function(a){return d.showErrorNotification(b,d.get("status"),a),d.set("status",b),Ember.RSVP.reject(a)})},setSaveType:function(a){"publish"===a?this.set("willPublish",!0):"draft"===a?this.set("willPublish",!1):console.warn("Received invalid save type; ignoring.")},setCodeMirror:function(a){var b=a.get("codemirror");this.set("codemirrorComponent",a),this.set("codemirror",b)},disableCodeMirror:function(){this.get("codemirrorComponent").disableCodeMirror()},enableCodeMirror:function(){this.get("codemirrorComponent").enableCodeMirror()},handleImgUpload:function(a,b){var c=this.get("codemirror"),d=this.findLine(Ember.$(a.currentTarget).attr("id")),e=c.getLineNumber(d),f=d.text.match(/\([^\n]*\)?/),g="(http://)";f?c.setSelection({line:e,ch:f.index+1},{line:e,ch:f.index+f[0].length-1}):(f=d.text.match(/\]/),f&&(c.replaceRange(g,{line:e,ch:f.index+1},{line:e,ch:f.index+1}),c.setSelection({line:e,ch:f.index+2},{line:e,ch:f.index+g.length}))),c.replaceSelection(b)},isPreview:!1,togglePreview:function(a){this.set("isPreview",a)
  }}});d["default"]=i}),define("ghost/mixins/editor-base-view",["ghost/utils/set-scroll-classname","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Mixin.create({scheduleAfterRender:function(){Ember.run.scheduleOnce("afterRender",this,this.afterRenderEvent)}.on("didInsertElement"),afterRenderEvent:function(){var a=this.$(".js-entry-preview-content");this.set("$previewViewPort",a),this.set("$previewContent",this.$(".js-rendered-markdown")),a.scroll(Ember.run.bind(a,c,{target:this.$(".js-entry-preview"),offset:10}))},removeScrollHandlers:function(){this.get("$previewViewPort").off("scroll")}.on("willDestroyElement"),markdownScrollInfo:null,scrollPosition:Ember.computed("markdownScrollInfo",function(){if(!this.get("markdownScrollInfo"))return 0;var a,b,c,d=this.get("markdownScrollInfo");return a=d.height-d.clientHeight,b=this.get("$previewContent").height()-this.get("$previewViewPort").height(),c=b/a,d.top*c})});b["default"]=d}),define("ghost/mixins/editor-route-base",["ghost/mixins/shortcuts-route","ghost/mixins/style-body","ghost/mixins/loading-indicator","ghost/utils/editor-shortcuts","exports"],function(a,b,c,d,e){"use strict";var f=a["default"],g=b["default"],h=c["default"],i=d["default"],j=Ember.Mixin.create(g,f,h,{actions:{save:function(){this.get("controller").send("save")},publish:function(){var a=this.get("controller");a.send("setSaveType","publish"),a.send("save")},toggleZenMode:function(){Ember.$("body").toggleClass("zen")},codeMirrorShortcut:function(a){this.get("controller.codemirror").shortcut(a.type)}},renderTemplate:function(a,b){this._super(),this.render("post-settings-menu",{into:"application",outlet:"settings-menu",model:b})},shortcuts:i,attachModelHooks:function(a,b){b.on("didCreate",a,a.get("modelSaved")),b.on("didUpdate",a,a.get("modelSaved"))},detachModelHooks:function(a,b){b.off("didCreate",a,a.get("modelSaved")),b.off("didUpdate",a,a.get("modelSaved"))}});e["default"]=j}),define("ghost/mixins/loading-indicator",["exports"],function(a){"use strict";var b={showSpinner:!1};NProgress.configure(b);var c=Ember.Mixin.create({actions:{loading:function(){return NProgress.start(),this.router.one("didTransition",function(){NProgress.done()}),!0},error:function(){return NProgress.done(),!0}}});a["default"]=c}),define("ghost/mixins/marker-manager",["exports"],function(a){"use strict";var b=Ember.Mixin.create({imageMarkdownRegex:/^(?:\{<(.*?)>\})?!(?:\[([^\n\]]*)\])(?:\(([^\n\]]*)\))?$/gim,markerRegex:/\{<([\w\W]*?)>\}/,uploadId:1,markers:{},initMarkers:function(a){var b=this.get("imageMarkdownRegex"),c=this.get("markerRegex"),d=this.get("codemirror"),e=a.text.match(b),f=a.text.match(c);e&&!f&&this.addMarker(a,d.getLineNumber(a))},getMarkdown:function(a){var b,c,d=this.get("codemirror"),e=this.get("markers"),f=this.get("markerRegexForId"),g=a||d.getValue(),h=g;for(c in e)e.hasOwnProperty(c)&&(b=e[c],h=h.replace(f(c),""));return{withMarkers:g,withoutMarkers:h}},checkLine:function(a,b){var c,d=this.get("codemirror"),e=d.getLineHandle(a),f=this.get("imageMarkdownRegex"),g=this.get("markerRegex"),h=e.text.match(f);h&&(c=e.text.match(g),!c||"paste"!==b&&"undo"!==b||this.stripMarkerFromLine(e),c||this.addMarker(e,a))},addMarker:function(a,b){var c,d=this.get("markers"),e=this.get("codemirror"),f="image_upload",g=this.get("uploadId"),h="{<"+g+">}",i=h+a.text;e.replaceRange(i,{line:b,ch:0},{line:b,ch:i.length}),c=e.markText({line:b,ch:0},{line:b,ch:h.length},{collapsed:!0}),d[f+"_"+g]=c,this.set("uploadId",g+=1)},checkMarkers:function(){var a,b,c,d=this.get("codemirror"),e=this.get("markers"),f=this.get("imageMarkdownRegex");for(a in e)e.hasOwnProperty(a)&&(b=e[a],b.find()?(c=d.getLineHandle(b.find().from.line),c.text.match(f)||this.removeMarker(a,b,c)):this.removeMarker(a,b))},clearMarkers:function(){var a,b,c=this.get("markers");for(a in c)c.hasOwnProperty(a)&&(b=c[a],delete c[a],b.clear())},removeMarker:function(a,b,c){var d=this.get("markers");delete d[a],b.clear(),c?this.stripMarkerFromLine(c):this.findAndStripMarker(a)},stripMarkerFromLine:function(a){var b=this.get("codemirror"),c=b.getLineNumber(a),d=/\{<([\w\W]*?)>\}/,e=a.text.match(d);e&&b.replaceRange("",{line:c,ch:e.index},{line:c,ch:e.index+e[0].length})},markerRegexForId:function(a){return a=a.replace("image_upload_",""),new RegExp("\\{<"+a+">\\}","gmi")},findAndStripMarker:function(a){var b=this,c=this.get("codemirror");c.eachLine(function(d){var e,f=b.markerRegexForId(a).exec(d.text);f&&(e=c.getLineNumber(d),c.replaceRange("",{line:e,ch:f.index},{line:e,ch:f.index+f[0].length}))})},findLine:function(a){var b=this.get("codemirror"),c=this.get("markers");return c.hasOwnProperty(a)&&c[a].find()?b.getLineHandle(c[a].find().from.line):!1}});a["default"]=b}),define("ghost/mixins/nprogress-save",["exports"],function(a){"use strict";var b=Ember.Mixin.create({save:function(a){return a&&a.disableNProgress?this._super(a):(NProgress.start(),this._super(a).then(function(a){return NProgress.done(),a}).catch(function(a){return NProgress.done(),Ember.RSVP.reject(a)}))}});a["default"]=b}),define("ghost/mixins/pagination-controller",["ghost/utils/ajax","exports"],function(a,b){"use strict";var c=a.getRequestErrorMessage,d=Ember.Mixin.create({paginationSettings:null,nextPage:null,isLoading:null,init:function(a){this._super();var b=this.store.metadataFor(a.modelType);this.set("nextPage",b.pagination.next)},reportLoadError:function(a){var b="A problem was encountered while loading more records";b+=a?": "+c(a,!0):".",this.notifications.showError(b)},actions:{loadNextPage:function(){var a=this,b=this.get("store"),c=this.get("model").get("type"),d=this.get("nextPage"),e=this.get("paginationSettings");d&&(this.set("isLoading",!0),this.set("paginationSettings.page",d),b.find(c,e).then(function(){var d=b.metadataFor(c);a.set("nextPage",d.pagination.next),a.set("isLoading",!1)},function(b){a.reportLoadError(b)}))}}});b["default"]=d}),define("ghost/mixins/pagination-route",["exports"],function(a){"use strict";var b={page:1,limit:15},c=Ember.Mixin.create({setupPagination:function(a){a=a||{},a=_.defaults(a,b),this.set("paginationSettings",a),this.controller.set("paginationSettings",a)}});a["default"]=c}),define("ghost/mixins/pagination-view-infinite-scroll",["exports"],function(a){"use strict";var b=Ember.Mixin.create({checkScroll:function(a){var b=a.target,c=100,d=this.get("controller"),e=d.get("isLoading");e||b.scrollTop+b.clientHeight+c<=b.scrollHeight||d.send("loadNextPage")},attachCheckScroll:function(){var a=this.$();a.on("scroll",Ember.run.bind(this,this.checkScroll))}.on("didInsertElement"),detachCheckScroll:function(){var a=this.$();a.off("scroll")}.on("willDestroyElement")});a["default"]=b}),define("ghost/mixins/popover-mixin",["exports"],function(a){"use strict";var b=Ember.Mixin.create(Ember.Evented,{classNameBindings:["isOpen:open"],isOpen:!1,click:function(a){return this._super(a),a.stopPropagation()}});a["default"]=b}),define("ghost/mixins/selective-save",["exports"],function(a){"use strict";var b=Ember.Mixin.create({saveOnly:function(){if(0===arguments.length)return Ember.RSVP.resolve();if(1===arguments.length&&Ember.isArray(arguments[0]))return this.saveOnly.apply(this,Array.prototype.slice.call(arguments[0]));var a,b=Array.prototype.slice.call(arguments),c={},d={},e=this;a=this.changedAttributes(),this.beginPropertyChanges(),this.eachRelationship(function(a,b){return"hasMany"===b.kind?void(c[a]=e.get(a).slice()):"belongsTo"===b.kind?void(d[a]=e.get(a)):void 0});try{e.rollback(),b.forEach(function(b){return c.hasOwnProperty(b)?(e.get(b).clear(),void c[b].forEach(function(a){e.get(b).pushObject(a)})):d.hasOwnProperty(b)?e.updateBelongsTo(b,d[b]):a.hasOwnProperty(b)?e.set(b,a[b][1]):void 0})}catch(f){return Ember.keys(a).forEach(function(b){e.set(b,a[b][1])}),Ember.keys(c).forEach(function(a){e.updateHasMany(a,c[a])}),Ember.keys(d).forEach(function(a){e.updateBelongsTo(a,d[a])}),e.endPropertyChanges(),Ember.RSVP.reject(new Error(f.message||"Error during saveOnly. Changes NOT saved."))}return this.save().finally(function(){Ember.keys(a).forEach(function(c){b.hasOwnProperty(c)||e.set(c,a[c][1])}),Ember.keys(c).forEach(function(a){b.hasOwnProperty(a)||e.updateHasMany(a,c[a])}),Ember.keys(d).forEach(function(a){b.hasOwnProperty(a)||e.updateBelongsTo(a,d[a])}),e.endPropertyChanges()})}});a["default"]=b}),define("ghost/mixins/shortcuts-route",["exports"],function(a){"use strict";key.filter=function(){return!0};var b=Ember.Mixin.create({registerShortcuts:function(){var a=this,b=this.get("shortcuts");Ember.keys(b).forEach(function(c){key(c,function(d){var e,f=b[c];"string"!==Ember.typeOf(f)&&(e=f.options,f=f.action),d.preventDefault(),a.send(f,e)})})},removeShortcuts:function(){var a=this.get("shortcuts");Ember.keys(a).forEach(function(a){key.unbind(a)})},activate:function(){return this._super(),this.shortcuts?void this.registerShortcuts():void console.error("Shortcuts not found on route")},deactivate:function(){this._super(),this.removeShortcuts()}});a["default"]=b}),define("ghost/mixins/style-body",["exports"],function(a){"use strict";var b=Ember.Mixin.create({activate:function(){this._super();var a=this.get("classNames");a&&Ember.run.schedule("afterRender",null,function(){a.forEach(function(a){Ember.$("body").addClass(a)})})},deactivate:function(){this._super();var a=this.get("classNames");Ember.run.schedule("afterRender",null,function(){a.forEach(function(a){Ember.$("body").removeClass(a)})})}});a["default"]=b}),define("ghost/mixins/text-input",["exports"],function(a){"use strict";var b=Ember.Mixin.create({selectOnClick:!1,stopEnterKeyDownPropagation:!1,click:function(a){this.get("selectOnClick")&&a.currentTarget.select()},keyDown:function(a){return this.get("stopEnterKeyDownPropagation")&&13===a.keyCode?(a.stopPropagation(),!0):void 0}});a["default"]=b}),define("ghost/mixins/validation-engine",["ghost/utils/ajax","ghost/utils/validator-extensions","ghost/validators/post","ghost/validators/setup","ghost/validators/signup","ghost/validators/signin","ghost/validators/forgotten","ghost/validators/setting","ghost/validators/reset","ghost/validators/user","exports"],function(a,b,c,d,e,f,g,h,i,j,k){"use strict";function l(a,b){var c="There was an error";return b=b||{},b.wasSave&&b.validationType&&(c+=" saving this "+b.validationType),Ember.isArray(a)?c=a.map(function(a){return"string"==typeof a?a:a.message}).join("<br />"):c+=a instanceof Error?a.message||".":"object"==typeof a?": "+m(a,!0):"string"==typeof a?": "+a:".",c=[{message:c}]}var m=a.getRequestErrorMessage,n=b["default"],o=c["default"],p=d["default"],q=e["default"],r=f["default"],s=g["default"],t=h["default"],u=i["default"],v=j["default"];n.init();var w=Ember.Mixin.create({validators:{post:o,setup:p,signup:q,signin:r,forgotten:s,setting:t,reset:u,user:v},validate:function(a){var b=a.model||this,c=this.get("validationType"),d=this.get("validators."+c);return a=a||{},a.validationType=c,new Ember.RSVP.Promise(function(e,f){var g;return g=c&&d?d.check(b):['The validator specified, "'+c+'", did not exist!'],Ember.isEmpty(g)?e():(a.format!==!1&&(g=l(g,a)),f(g))})},save:function(a){var b=this,c=this.__nextSuper;return a=a||{},a.wasSave=!0,this.get("isDeleted")?this._super():this.validate(a).then(function(){return c.call(b,a)}).catch(function(b){return Ember.isArray(b)||(b=a.format!==!1?l(b,a):m(b)),Ember.RSVP.reject(b)})}});k["default"]=w}),define("ghost/models/notification",["exports"],function(a){"use strict";var b=DS.Model.extend({dismissible:DS.attr("boolean"),location:DS.attr("string"),status:DS.attr("string"),type:DS.attr("string"),message:DS.attr("string")});a["default"]=b}),define("ghost/models/post",["ghost/mixins/validation-engine","ghost/mixins/nprogress-save","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=DS.Model.extend(e,d,{validationType:"post",uuid:DS.attr("string"),title:DS.attr("string",{defaultValue:""}),slug:DS.attr("string"),markdown:DS.attr("string",{defaultValue:""}),html:DS.attr("string"),image:DS.attr("string"),featured:DS.attr("boolean",{defaultValue:!1}),page:DS.attr("boolean",{defaultValue:!1}),status:DS.attr("string",{defaultValue:"draft"}),language:DS.attr("string",{defaultValue:"en_US"}),meta_title:DS.attr("string"),meta_description:DS.attr("string"),author:DS.belongsTo("user",{async:!0}),author_id:DS.attr("number"),updated_at:DS.attr("moment-date"),published_at:DS.attr("moment-date"),published_by:DS.belongsTo("user",{async:!0}),tags:DS.hasMany("tag",{embedded:"always"}),isPublished:Ember.computed.equal("status","published"),isDraft:Ember.computed.equal("status","draft"),updateTags:function(){var a=this.get("tags"),b=a.filterBy("id",null);a.removeObjects(b),b.invoke("deleteRecord")},isAuthoredByUser:function(a){return parseInt(a.get("id"),10)===parseInt(this.get("author_id"),10)}});c["default"]=f}),define("ghost/models/role",["exports"],function(a){"use strict";var b=DS.Model.extend({uuid:DS.attr("string"),name:DS.attr("string"),description:DS.attr("string"),created_at:DS.attr("moment-date"),updated_at:DS.attr("moment-date"),lowerCaseName:Ember.computed("name",function(){return this.get("name").toLocaleLowerCase()})});a["default"]=b}),define("ghost/models/setting",["ghost/mixins/validation-engine","ghost/mixins/nprogress-save","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=DS.Model.extend(e,d,{validationType:"setting",title:DS.attr("string"),description:DS.attr("string"),email:DS.attr("string"),logo:DS.attr("string"),cover:DS.attr("string"),defaultLang:DS.attr("string"),postsPerPage:DS.attr("number"),forceI18n:DS.attr("boolean"),permalinks:DS.attr("string"),activeTheme:DS.attr("string"),availableThemes:DS.attr()});c["default"]=f}),define("ghost/models/slug-generator",["exports"],function(a){"use strict";var b=Ember.Object.extend({ghostPaths:null,slugType:null,value:null,toString:function(){return this.get("value")},generateSlug:function(a){var b,c=this;return a?(b=this.get("ghostPaths.url").api("slugs",this.get("slugType"),encodeURIComponent(a)),ic.ajax.request(b,{type:"GET"}).then(function(a){var b=a.slugs[0].slug;return c.set("value",b),b})):Ember.RSVP.resolve("")}});a["default"]=b}),define("ghost/models/tag",["exports"],function(a){"use strict";var b=DS.Model.extend({uuid:DS.attr("string"),name:DS.attr("string"),slug:DS.attr("string"),description:DS.attr("string"),parent_id:DS.attr("number"),meta_title:DS.attr("string"),meta_description:DS.attr("string")});a["default"]=b}),define("ghost/models/user",["ghost/mixins/validation-engine","ghost/mixins/nprogress-save","ghost/mixins/selective-save","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"],h=DS.Model.extend(f,g,e,{validationType:"user",uuid:DS.attr("string"),name:DS.attr("string"),slug:DS.attr("string"),email:DS.attr("string"),image:DS.attr("string"),cover:DS.attr("string"),bio:DS.attr("string"),website:DS.attr("string"),location:DS.attr("string"),accessibility:DS.attr("string"),status:DS.attr("string"),language:DS.attr("string",{defaultValue:"en_US"}),meta_title:DS.attr("string"),meta_description:DS.attr("string"),last_login:DS.attr("moment-date"),created_at:DS.attr("moment-date"),created_by:DS.attr("number"),updated_at:DS.attr("moment-date"),updated_by:DS.attr("number"),roles:DS.hasMany("role",{embedded:"always"}),role:Ember.computed("roles",function(a,b){return arguments.length>1?(this.get("roles").clear(),this.get("roles").pushObject(b),b):this.get("roles.firstObject")}),isAuthor:Ember.computed.equal("role.name","Author"),isEditor:Ember.computed.equal("role.name","Editor"),isAdmin:Ember.computed.equal("role.name","Administrator"),isOwner:Ember.computed.equal("role.name","Owner"),saveNewPassword:function(){var a=this.get("ghostPaths.url").api("users","password");return ic.ajax.request(a,{type:"PUT",data:{password:[{oldPassword:this.get("password"),newPassword:this.get("newPassword"),ne2Password:this.get("ne2Password")}]}})},resendInvite:function(){var a=this.toJSON(),b={email:a.email,roles:a.roles};return ic.ajax.request(this.get("ghostPaths.url").api("users"),{type:"POST",data:JSON.stringify({users:[b]}),contentType:"application/json"})},passwordValidationErrors:Ember.computed("password","newPassword","ne2Password",function(){var a=[];return validator.equals(this.get("newPassword"),this.get("ne2Password"))||a.push({message:"Your new passwords do not match"}),validator.isLength(this.get("newPassword"),8)||a.push({message:"Your password is not long enough. It must be at least 8 characters long."}),a}),isPasswordValid:Ember.computed.empty("passwordValidationErrors.[]"),active:Ember.computed("status",function(){return _.contains(["active","warn-1","warn-2","warn-3","warn-4","locked"],this.get("status"))}),invited:Ember.computed("status",function(){return _.contains(["invited","invited-pending"],this.get("status"))}),pending:Ember.computed.equal("status","invited-pending")});d["default"]=h}),define("ghost/router",["ghost/utils/ghost-paths","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Router.extend();d.reopen({location:"trailing-history",rootURL:c().adminRoot,clearNotifications:function(){this.notifications.closePassive(),this.notifications.displayDelayed()}.on("didTransition")}),d.map(function(){this.route("setup"),this.route("signin"),this.route("signout"),this.route("signup",{path:"/signup/:token"}),this.route("forgotten"),this.route("reset",{path:"/reset/:token"}),this.resource("posts",{path:"/"},function(){this.route("post",{path:":post_id"})}),this.resource("editor",function(){this.route("new",{path:""}),this.route("edit",{path:":post_id"})}),this.resource("settings",function(){this.route("general"),this.resource("settings.users",{path:"/users"},function(){this.route("user",{path:"/:slug"})}),this.route("about")}),this.route("debug"),this.route("content"),this.route("error404",{path:"/*path"})}),b["default"]=d}),define("ghost/routes/application",["ghost/mixins/shortcuts-route","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Route.extend(SimpleAuth.ApplicationRouteMixin,c,{afterModel:function(a,b){this.get("session").isAuthenticated&&b.send("loadServerNotifications")},shortcuts:{esc:"closePopups"},actions:{authorizationFailed:function(){var a=this.get("controller").get("currentRouteName");return"editor"===a.split(".")[0]?void this.send("openModal","auth-failed-unsaved",this.controllerFor(a)):void this._super()},toggleGlobalMobileNav:function(){this.toggleProperty("controller.showGlobalMobileNav")},toggleRightOutlet:function(){this.toggleProperty("controller.showRightOutlet")},closeRightOutlet:function(){this.set("controller.showRightOutlet",!1)},closePopups:function(){this.get("popover").closePopovers(),this.get("notifications").closeAll(),this.send("closeRightOutlet"),this.send("closeModal")},signedIn:function(){this.send("loadServerNotifications",!0)},sessionAuthenticationFailed:function(a){a.errors?this.notifications.showErrors(a.errors):this.notifications.showError("There was a problem on the server.")},sessionAuthenticationSucceeded:function(){var a=this;this.store.find("user","me").then(function(b){a.send("signedIn",b);var c=a.get("session").get("attemptedTransition");c?(c.retry(),a.get("session").set("attemptedTransition",null)):a.transitionTo(SimpleAuth.Configuration.routeAfterAuthentication)})},sessionInvalidationFailed:function(a){this.notifications.showError(a.message)},openModal:function(a,b,c){return this.get("popover").closePopovers(),a="modals/"+a,this.controllerFor(a,!0)&&(this.controllerFor(a).set("model",b),c&&(this.controllerFor(a).set("imageType",c),this.controllerFor(a).set("src",b.get(c)))),this.render(a,{into:"application",outlet:"modal"})},closeModal:function(){this.disconnectOutlet({outlet:"modal",parentView:"application"})},loadServerNotifications:function(a){var b=this;this.session.isAuthenticated&&this.store.findAll("notification").then(function(c){c.forEach(function(c){b.notifications.handleNotification(c,a)})})},handleErrors:function(a){var b=this;this.notifications.clear(),a.forEach(function(a){b.notifications.showError(a.message||a),a.hasOwnProperty("el")&&a.el.addClass("input-error")})}}});b["default"]=d}),define("ghost/routes/content",["exports"],function(a){"use strict";var b=Ember.Route.extend({beforeModel:function(){this.transitionTo("posts")}});a["default"]=b}),define("ghost/routes/debug",["ghost/mixins/style-body","ghost/mixins/loading-indicator","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,d,e,{classNames:["settings"],beforeModel:function(){var a=this;this.store.find("user","me").then(function(b){(b.get("isAuthor")||b.get("isEditor"))&&a.transitionTo("posts")})},model:function(){return this.store.find("setting",{type:"blog,theme"}).then(function(a){return a.get("firstObject")})}});c["default"]=f}),define("ghost/routes/editor/edit",["ghost/mixins/editor-route-base","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,c,{classNames:["editor"],model:function(a){var b,c,d,e=this;return c=Number(a.post_id),!_.isNumber(c)||!_.isFinite(c)||c%1!==0||0>=c?this.transitionTo("error404","editor/"+a.post_id):(b=this.store.getById("post",c))?b:(d={id:c,status:"all",staticPages:"all"},this.store.find("user","me").then(function(a){return a.get("isAuthor")&&(d.author=a.get("slug")),e.store.find("post",d).then(function(b){var c=b.get("firstObject");return a.get("isAuthor")&&c.isAuthoredByUser(a)&&(c=null),c?c:e.transitionTo("posts.index")})}))},serialize:function(a){return{post_id:a.get("id")}},setupController:function(a,b){this._super(a,b),a.set("scratch",b.get("markdown")),a.set("titleScratch",b.get("title")),a.set("previousTagNames",b.get("tags").mapBy("name")),this.attachModelHooks(a,b)},actions:{willTransition:function(a){var b=this.get("controller"),c=b.get("isDirty"),d=b.get("model"),e=d.get("isSaving"),f=d.get("isDeleted"),g=d.get("isDirty");return this.send("closeRightOutlet"),f&&e||f&&!e&&!g||!c?(window.onbeforeunload=null,void this.detachModelHooks(b,d)):(a.abort(),void this.send("openModal","leave-editor",[b,a]))}}});b["default"]=d}),define("ghost/routes/editor/index",["exports"],function(a){"use strict";var b=Ember.Route.extend({beforeModel:function(){this.transitionTo("editor.new")}});a["default"]=b}),define("ghost/routes/editor/new",["ghost/mixins/editor-route-base","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,c,{classNames:["editor"],model:function(){var a=this;return this.get("session.user").then(function(b){return a.store.createRecord("post",{author:b})})},setupController:function(a,b){this._super(a,b),a.set("scratch",""),a.set("titleScratch",""),a.set("previousTagNames",Ember.A()),this.attachModelHooks(a,b)},actions:{willTransition:function(a){var b=this.get("controller"),c=b.get("isDirty"),d=b.get("model"),e=d.get("isNew"),f=d.get("isSaving"),g=d.get("isDeleted"),h=d.get("isDirty");return this.send("closeRightOutlet"),g&&f||g&&!f&&!h||!c?(e&&d.deleteRecord(),window.onbeforeunload=null,void this.detachModelHooks(b,d)):(a.abort(),void this.send("openModal","leave-editor",[b,a]))}}});b["default"]=d}),define("ghost/routes/error404",["exports"],function(a){"use strict";var b=Ember.Route.extend({controllerName:"error",templateName:"error",model:function(){return{status:404}}});a["default"]=b}),define("ghost/routes/forgotten",["ghost/mixins/style-body","ghost/mixins/loading-indicator","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend(d,e,{classNames:["ghost-forgotten"]});c["default"]=f}),define("ghost/routes/mobile-index-route",["ghost/utils/mobile","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Route.extend({desktopTransition:Ember.K,activate:function(){this._super(),c.addListener(this.desktopTransitionMQ)},deactivate:function(){this._super(),c.removeListener(this.desktopTransitionMQ)},setDesktopTransitionMQ:function(){var a=this;this.set("desktopTransitionMQ",function(){c.matches||a.desktopTransition()})}.on("init")});b["default"]=d}),define("ghost/routes/posts",["ghost/mixins/style-body","ghost/mixins/shortcuts-route","ghost/mixins/loading-indicator","ghost/mixins/pagination-route","exports"],function(a,b,c,d,e){"use strict";var f=a["default"],g=b["default"],h=c["default"],i=d["default"],j={status:"all",staticPages:"all",page:1},k=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,g,f,h,i,{classNames:["manage"],model:function(){var a=this;return this.store.find("user","me").then(function(b){return b.get("isAuthor")&&(j.author=b.get("slug")),a.store.filter("post",j,function(a){return b.get("isAuthor")?a.isAuthoredByUser(b):!0})})},setupController:function(a,b){this._super(a,b),this.setupPagination(j)},stepThroughPosts:function(a){var b,c=this.get("controller.currentPost"),d=this.get("controller.arrangedContent"),e=d.get("length");b=d.indexOf(c)+a,b>=e||0>b||this.transitionTo("posts.post",d.objectAt(b))},shortcuts:{up:"moveUp",down:"moveDown"},actions:{moveUp:function(){this.stepThroughPosts(-1)},moveDown:function(){this.stepThroughPosts(1)}}});e["default"]=k}),define("ghost/routes/posts/index",["ghost/routes/mobile-index-route","ghost/mixins/loading-indicator","ghost/utils/mobile","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"],h=e.extend(SimpleAuth.AuthenticatedRouteMixin,f,{noPosts:!1,beforeModel:function(){return g.matches?void 0:this.goToPost()},setupController:function(a){a.set("noPosts",this.get("noPosts"))},goToPost:function(){var a,b=this,c=this.store.all("post");return this.store.find("user","me").then(function(d){return(a=c.find(function(a){return d.get("isAuthor")?a.isAuthoredByUser(d):!0}))?b.transitionTo("posts.post",a):void b.set("noPosts",!0)})},desktopTransition:function(){this.goToPost()}});d["default"]=h}),define("ghost/routes/posts/post",["ghost/mixins/loading-indicator","ghost/mixins/shortcuts-route","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,d,e,{model:function(a){var b,c,d,e=this;return c=Number(a.post_id),!_.isNumber(c)||!_.isFinite(c)||c%1!==0||0>=c?this.transitionTo("error404",a.post_id):(b=this.store.getById("post",c))?b:(d={id:c,status:"all",staticPages:"all"},this.store.find("user","me").then(function(a){return a.get("isAuthor")&&(d.author=a.get("slug")),e.store.find("post",d).then(function(b){var c=b.get("firstObject");return a.get("isAuthor")&&!c.isAuthoredByUser(a)&&(c=null),c?c:e.transitionTo("posts.index")})}))},setupController:function(a,b){this._super(a,b),this.controllerFor("posts").set("currentPost",b)},shortcuts:{enter:"openEditor","command+backspace, ctrl+backspace":"deletePost"},actions:{openEditor:function(){this.transitionTo("editor.edit",this.get("controller.model"))},deletePost:function(){this.send("openModal","delete-post",this.get("controller.model"))}}});c["default"]=f}),define("ghost/routes/reset",["ghost/mixins/style-body","ghost/mixins/loading-indicator","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend(d,e,{classNames:["ghost-reset"],beforeModel:function(){this.get("session").isAuthenticated&&(this.notifications.showWarn("You can't reset your password while you're signed in.",{delayed:!0}),this.transitionTo(SimpleAuth.Configuration.routeAfterAuthentication))},setupController:function(a,b){a.token=b.token}});c["default"]=f}),define("ghost/routes/settings",["ghost/mixins/style-body","ghost/mixins/loading-indicator","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,d,e,{classNames:["settings"]});c["default"]=f}),define("ghost/routes/settings/about",["ghost/mixins/loading-indicator","ghost/mixins/style-body","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,e,d,{classNames:["settings-view-about"],cachedConfig:!1,model:function(){var a=this.get("cachedConfig"),b=this;return a?a:ic.ajax.request(this.get("ghostPaths.url").api("configuration")).then(function(c){var d=c.configuration;return a={},d.forEach(function(b){a[b.key]=b.value}),b.set("cachedConfig",a),a})}});c["default"]=f}),define("ghost/routes/settings/apps",["ghost/mixins/current-user-settings","ghost/mixins/style-body","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,e,d,{classNames:["settings-view-apps"],beforeModel:function(){return this.get("config.apps")?this.currentUser().then(this.transitionAuthor()).then(this.transitionEditor()):this.transitionTo("settings.general")},model:function(){return this.store.find("app")}});c["default"]=f}),define("ghost/routes/settings/general",["ghost/mixins/loading-indicator","ghost/mixins/current-user-settings","ghost/mixins/style-body","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"],h=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,g,e,f,{classNames:["settings-view-general"],beforeModel:function(){return this.currentUser().then(this.transitionAuthor()).then(this.transitionEditor())},model:function(){return this.store.find("setting",{type:"blog,theme"}).then(function(a){return a.get("firstObject")})}});d["default"]=h}),define("ghost/routes/settings/index",["ghost/routes/mobile-index-route","ghost/mixins/current-user-settings","ghost/utils/mobile","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"],h=e.extend(SimpleAuth.AuthenticatedRouteMixin,f,{beforeModel:function(){var a=this;return this.currentUser().then(this.transitionAuthor()).then(this.transitionEditor()).then(function(){g.matches||a.transitionTo("settings.general")})},desktopTransition:function(){this.transitionTo("settings.general")}});d["default"]=h}),define("ghost/routes/settings/users",["ghost/mixins/current-user-settings","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,c,{beforeModel:function(){return this.currentUser().then(this.transitionAuthor())}});b["default"]=d}),define("ghost/routes/settings/users/index",["ghost/mixins/pagination-route","ghost/mixins/style-body","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f={page:1,limit:20,status:"all"},g=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,e,d,{classNames:["settings-view-users"],setupController:function(a,b){this._super(a,b),this.setupPagination(f)},model:function(){var a=this;return this.store.find("user","me").then(function(b){return b.get("isEditor")&&(f.role="Author"),a.store.filter("user",f,function(a){return b.get("isEditor")?a.get("isAuthor"):!0})})},actions:{reload:function(){this.refresh()}}});c["default"]=g}),define("ghost/routes/settings/users/user",["ghost/mixins/style-body","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Route.extend(c,{classNames:["settings-view-user"],model:function(a){var b=this;return this.store.find("user").then(function(c){var d=c.findBy("slug",a.slug);return d?d:b.transitionTo("error404","settings/users/"+a.slug)})},afterModel:function(a){var b=this;this.store.find("user","me").then(function(c){var d=a.get("id")===c.get("id"),e=c.get("isAuthor"),f=c.get("isEditor");e&&!d?b.transitionTo("settings.users.user",c):!f||d||a.get("isAuthor")||b.transitionTo("settings.users")})},deactivate:function(){var a=this.modelFor("settings.users.user");a&&a.get("isDirty")&&a.rollback(),this._super()}});b["default"]=d}),define("ghost/routes/setup",["ghost/mixins/style-body","ghost/mixins/loading-indicator","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend(d,e,{classNames:["ghost-setup"],beforeModel:function(){var a=this;return this.get("session").isAuthenticated?void this.transitionTo(SimpleAuth.Configuration.routeAfterAuthentication):ic.ajax.request(this.get("ghostPaths.url").api("authentication/setup"),{type:"GET"}).then(function(b){var c=b.setup[0].status;
  return c?a.transitionTo("signin"):void 0})}});c["default"]=f}),define("ghost/routes/signin",["ghost/mixins/style-body","ghost/mixins/loading-indicator","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend(d,e,{classNames:["ghost-login"],beforeModel:function(){this.get("session").isAuthenticated&&this.transitionTo(SimpleAuth.Configuration.routeAfterAuthentication)},deactivate:function(){this._super(),this.controllerFor("signin").setProperties({identification:"",password:""})}});c["default"]=f}),define("ghost/routes/signout",["ghost/mixins/style-body","ghost/mixins/loading-indicator","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin,d,e,{classNames:["ghost-signout"],afterModel:function(a,b){this.notifications.clear(),Ember.canInvoke(b,"send")?(b.send("invalidateSession"),b.abort()):this.send("invalidateSession")}});c["default"]=f}),define("ghost/routes/signup",["ghost/mixins/style-body","ghost/mixins/loading-indicator","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Route.extend(d,e,{classNames:["ghost-signup"],beforeModel:function(){this.get("session").isAuthenticated&&(this.notifications.showWarn("You need to sign out to register as a new user.",{delayed:!0}),this.transitionTo(SimpleAuth.Configuration.routeAfterAuthentication))},model:function(a){var b,c,d=this,e={},f=/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/;return new Ember.RSVP.Promise(function(g){return f.test(a.token)?(b=atob(a.token),c=b.split("|")[1],e.email=c,e.token=a.token,ic.ajax.request({url:d.get("ghostPaths.url").api("authentication","invitation"),type:"GET",dataType:"json",data:{email:c}}).then(function(a){return a&&a.invitation&&a.invitation[0].valid===!1?(d.notifications.showError("The invitation does not exist or is no longer valid.",{delayed:!0}),g(d.transitionTo("signin"))):void g(e)}).catch(function(){g(e)})):(d.notifications.showError("Invalid token.",{delayed:!0}),g(d.transitionTo("signin")))})},deactivate:function(){this._super(),this.controllerFor("signup").setProperties({email:"",password:"",token:""})}});c["default"]=f}),define("ghost/serializers/application",["exports"],function(a){"use strict";var b=DS.RESTSerializer.extend({serializeIntoHash:function(a,b,c,d){d=d||{},d.includeId=!0;var e=Ember.String.pluralize(b.typeKey),f=this.serialize(c,d);delete f.uuid,a[e]=[f]}});a["default"]=b}),define("ghost/serializers/post",["ghost/serializers/application","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend(DS.EmbeddedRecordsMixin,{attrs:{tags:{embedded:"always"}},normalize:function(a,b){return b.author_id=b.author,this._super(a,b)},extractSingle:function(a,b,c){var d=this.keyForAttribute(b.typeKey),e=Ember.String.pluralize(b.typeKey);return c[d]=c[e][0],delete c[e],this._super.apply(this,arguments)},keyForAttribute:function(a){return a},keyForRelationship:function(a){return"tags"===a?"tag":a},serializeIntoHash:function(a,b,c,d){d=d||{};var e=Ember.String.pluralize(b.typeKey),f=this.serialize(c,d);delete f.uuid,delete f.html,a[e]=[f]}});b["default"]=d}),define("ghost/serializers/setting",["ghost/serializers/application","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({serializeIntoHash:function(a,b,c,d){d=d||{},d.includeId=!1;var e=Ember.String.pluralize(b.typeKey),f=this.serialize(c,d),g=[];delete f.id,Object.keys(f).forEach(function(a){g.push({key:a,value:f[a]})}),a[e]=g},extractArray:function(a,b,c){var d={id:"0"};return c.settings.forEach(function(a){d[a.key]=a.value}),[d]},extractSingle:function(a,b,c){return this.extractArray(a,b,c).pop()}});b["default"]=d}),define("ghost/serializers/user",["ghost/serializers/application","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend(DS.EmbeddedRecordsMixin,{attrs:{roles:{embedded:"always"}},extractSingle:function(a,b,c){var d=this.keyForAttribute(b.typeKey),e=Ember.String.pluralize(b.typeKey);return c[d]=c[e][0],delete c[e],this._super.apply(this,arguments)},keyForAttribute:function(a){return a},keyForRelationship:function(a){return"roles"===a?"role":a}});b["default"]=d}),define("ghost/transforms/moment-date",["exports"],function(a){"use strict";var b=DS.Transform.extend({deserialize:function(a){return a?moment(a):a},serialize:function(a){return a?moment(a).toDate():a}});a["default"]=b}),define("ghost/utils/ajax",["exports"],function(a){"use strict";var b=window.ajax=function(){return ic.ajax.request.apply(null,arguments)},c=function(a,b){var c,d;if(!a)return null;if(c=a.statusText,200!==a.status)try{c=a.responseJSON.errors&&Ember.isArray(a.responseJSON.errors)?a.responseJSON.errors.map(function(a){return a.message}):a.responseJSON.error||"Unknown Error"}catch(e){d=a.status?a.status+" - "+a.statusText:"Server was not available",c="The server returned an error ("+d+")."}return b&&Ember.isArray(c)&&(c=c.join("<br />")),b||"string"!=typeof c||(c=[c]),c};a.getRequestErrorMessage=c,a.ajax=b,a["default"]=b}),define("ghost/utils/bound-one-way",["exports"],function(a){"use strict";var b=function(a,b){return"function"!=typeof b&&(b=function(a){return a}),Ember.computed(a,function(c,d){return arguments.length>1?d:b(this.get(a))})};a["default"]=b}),define("ghost/utils/caja-sanitizers",["exports"],function(a){"use strict";var b,c,b=function(a){return a=a.toString().replace(/['"]+/g,""),/^https?:\/\//.test(a)||/^\//.test(a)?a:void 0},c=function(a){return a};a["default"]={url:b,id:c}}),define("ghost/utils/codemirror-mobile",["ghost/assets/lib/touch-editor","exports"],function(a,b){"use strict";var c,d,e,f=a["default"];c=function(){var a,b=function(){};for(a in CodeMirror)CodeMirror.hasOwnProperty(a)&&(CodeMirror[a]=b);CodeMirror.fromTextArea=function(a,b){return new d(a,b)},CodeMirror.keyMap={basic:{}}},e=function(){(device.mobile()||device.tablet()&&device.ios())&&($("body").addClass("touch-editor"),Ember.touchEditor=!0,Ember.run.scheduleOnce("afterRender",null,function(){FastClick.attach(document.body)}),d=f(),c())},b["default"]={createIfMobile:e}}),define("ghost/utils/codemirror-shortcuts",["ghost/utils/titleize","exports"],function(a,b){"use strict";function c(){delete CodeMirror.keyMap.emacsy["Ctrl-H"],CodeMirror.prototype.simpleShortcutSyntax={bold:"**$1**",italic:"*$1*",strike:"~~$1~~",code:"`$1`",link:"[$1](http://)",image:"![$1](http://)",blockquote:"> $1"},CodeMirror.prototype.shortcut=function(a){var b,c,e,f,g,h,i,j,k,l,m=this.getSelection(),n=this.getCursor(),o=this.getLine(n.line),p={line:n.line,ch:0},q={line:n.line,ch:o.length};switch(a){case"cycleHeaderLevel":i=o.match(/^#+/),j=i?i[0].length:1,j>2&&(j=1),k=new Array(j+2).join("#"),l=k+" "+o.replace(/^#* /,""),this.replaceRange(l,p,q),this.setCursor(n.line,n.ch+l.length);break;case"link":return b=this.simpleShortcutSyntax.link.replace("$1",m),this.replaceSelection(b,"end"),void(m?(e=o.indexOf(m,n.ch-m.length),f=e+b.length-1,this.setSelection({line:n.line,ch:f-7},{line:n.line,ch:f})):this.setCursor(n.line,n.ch+1));case"image":return b=this.simpleShortcutSyntax.image.replace("$1",m),""!==o&&(b="\n\n"+b),this.replaceSelection(b,"end"),n=this.getCursor(),void this.setSelection({line:n.line,ch:n.ch-8},{line:n.line,ch:n.ch-1});case"list":return b=m.replace(/^(\s*)(\w\W*)/gm,"$1* $2"),void this.replaceSelection(b,"end");case"currentDate":return b=moment(new Date).format("D MMMM YYYY"),void this.replaceSelection(b,"end");case"uppercase":b=m.toLocaleUpperCase();break;case"lowercase":b=m.toLocaleLowerCase();break;case"titlecase":b=d(m);break;case"copyHTML":g=new Showdown.converter,h=g.makeHtml(m?m:this.getValue()),this.component.sendAction("openModal","copy-html",{generatedHTML:h});break;default:this.simpleShortcutSyntax[a]&&(b=this.simpleShortcutSyntax[a].replace("$1",m))}b&&(this.replaceSelection(b,"end"),m||(c=b.length,this.setCursor({line:n.line,ch:n.ch+c/2})))}}var d=a["default"];b["default"]={init:c}}),define("ghost/utils/date-formatting",["exports"],function(a){"use strict";var b=["DD MMM YY @ HH:mm","DD MMM YY HH:mm","DD MMM YYYY @ HH:mm","DD MMM YYYY HH:mm","DD/MM/YY @ HH:mm","DD/MM/YY HH:mm","DD/MM/YYYY @ HH:mm","DD/MM/YYYY HH:mm","DD-MM-YY @ HH:mm","DD-MM-YY HH:mm","DD-MM-YYYY @ HH:mm","DD-MM-YYYY HH:mm","YYYY-MM-DD @ HH:mm","YYYY-MM-DD HH:mm","DD MMM @ HH:mm","DD MMM HH:mm"],c="DD MMM YY @ HH:mm",d=function(a){return a&&!a.slice(-5).match(/\d+:\d\d/)&&(a+=" 12:00"),a},e=function(a){return a?moment(d(a),b,!0):void 0},f=function(a){return d(a?moment(a).format(c):"")};a.parseDateString=e,a.formatDate=f}),define("ghost/utils/editor-shortcuts",["exports"],function(a){"use strict";var b={},c=-1!==navigator.userAgent.indexOf("Mac")?"command":"ctrl";b[c+"+s"]="save",b[c+"+alt+p"]="publish",b["alt+shift+z"]="toggleZenMode",b["ctrl+alt+u"]={action:"codeMirrorShortcut",options:{type:"strike"}},b[c+"+b"]={action:"codeMirrorShortcut",options:{type:"bold"}},b[c+"+i"]={action:"codeMirrorShortcut",options:{type:"italic"}},b["ctrl+u"]={action:"codeMirrorShortcut",options:{type:"uppercase"}},b["ctrl+shift+u"]={action:"codeMirrorShortcut",options:{type:"lowercase"}},b["ctrl+alt+shift+u"]={action:"codeMirrorShortcut",options:{type:"titlecase"}},b[c+"+shift+c"]={action:"codeMirrorShortcut",options:{type:"copyHTML"}},b[c+"+h"]={action:"codeMirrorShortcut",options:{type:"cycleHeaderLevel"}},b["ctrl+q"]={action:"codeMirrorShortcut",options:{type:"blockquote"}},b["ctrl+l"]={action:"codeMirrorShortcut",options:{type:"list"}},b["ctrl+shift+1"]={action:"codeMirrorShortcut",options:{type:"currentDate"}},b[c+"+k"]={action:"codeMirrorShortcut",options:{type:"link"}},b[c+"+shift+i"]={action:"codeMirrorShortcut",options:{type:"image"}},b[c+"+shift+k"]={action:"codeMirrorShortcut",options:{type:"code"}},a["default"]=b}),define("ghost/utils/ghost-paths",["exports"],function(a){"use strict";function b(){function a(a){return d+a}var b=window.location.pathname,d=b.substr(0,b.search("/ghost/")),e=d+"/ghost",f=d+"/ghost/api/v0.1";return{subdir:d,blogRoot:d+"/",adminRoot:e,apiRoot:f,contributorsDir:a("/ghost/img/contributors"),errorImageSrc:a("/ghost/img/404-ghost@2x.png"),errorImageSrcSet:a("/ghost/img/404-ghost.png")+" 1x, "+a("/ghost/img/404-ghost@2x.png")+" 2x",url:{admin:function(){return c(e,arguments)},api:function(){return c(f,arguments)},asset:a}}}var c=function(a,b){var c=Array.prototype.slice.call(b,0).join("/"),d=[a,c].join("/");return"/"!==d.slice(-1)&&(d+="/"),d};a["default"]=b}),define("ghost/utils/link-view",[],function(){"use strict";Ember.LinkView.reopen({active:Ember.computed("resolvedParams","routeArgs",function(){var a=this._super();return Ember.set(this,"alternateActive",a),a}),activeClass:Ember.computed("tagName",function(){return"button"===this.get("tagName")?"":"active"})})}),define("ghost/utils/mobile",["exports"],function(a){"use strict";var b=matchMedia("(max-width: 900px)");a["default"]=b}),define("ghost/utils/notifications",["ghost/models/notification","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.ArrayProxy.extend({delayedNotifications:[],content:Ember.A(),timeout:3e3,pushObject:function(a){"function"==typeof a.toJSON?""===a.get("location")&&a.set("location","bottom"):a.location||(a.location="bottom"),this._super(a)},handleNotification:function(a,b){a.status||(a.status="passive"),b?this.delayedNotifications.push(a):this.pushObject(a)},showError:function(a,b){b=b||{},b.doNotClosePassive||this.closePassive(),this.handleNotification({type:"error",message:a},b.delayed)},showErrors:function(a,b){b=b||{},b.doNotClosePassive||this.closePassive();for(var c=0;c<a.length;c+=1)this.showError(a[c].message||a[c],{doNotClosePassive:!0})},showAPIError:function(a,b){b=b||{},b.doNotClosePassive||this.closePassive(),b.defaultErrorText=b.defaultErrorText||"There was a problem on the server, please try again.",a&&a.jqXHR&&a.jqXHR.responseJSON&&a.jqXHR.responseJSON.error?this.showError(a.jqXHR.responseJSON.error,b):a&&a.jqXHR&&a.jqXHR.responseJSON&&a.jqXHR.responseJSON.errors?this.showErrors(a.jqXHR.responseJSON.errors,b):a&&a.jqXHR&&a.jqXHR.responseJSON&&a.jqXHR.responseJSON.message?this.showError(a.jqXHR.responseJSON.message,b):this.showError(b.defaultErrorText,{doNotClosePassive:!0})},showInfo:function(a,b){b=b||{},b.doNotClosePassive||this.closePassive(),this.handleNotification({type:"info",message:a},b.delayed)},showSuccess:function(a,b){b=b||{},b.doNotClosePassive||this.closePassive(),this.handleNotification({type:"success",message:a},b.delayed)},showWarn:function(a,b){b=b||{},b.doNotClosePassive||this.closePassive(),this.handleNotification({type:"warn",message:a},b.delayed)},displayDelayed:function(){var a=this;a.delayedNotifications.forEach(function(b){a.pushObject(b)}),a.delayedNotifications=[]},closeNotification:function(a){var b=this;a instanceof c?(a.deleteRecord(),a.save().finally(function(){b.removeObject(a)})):this.removeObject(a)},closePassive:function(){this.set("content",this.rejectBy("status","passive"))},closePersistent:function(){this.set("content",this.rejectBy("status","persistent"))},closeAll:function(){this.clear()}});b["default"]=d}),define("ghost/utils/set-scroll-classname",["exports"],function(a){"use strict";var b=function(a){var b=a.target||this,c=a.offset,d=a.className||"scrolling";this.scrollTop()>c?b.addClass(d):b.removeClass(d)};a["default"]=b}),define("ghost/utils/text-field",[],function(){"use strict";Ember.TextField.reopen({attributeBindings:["autofocus"]})}),define("ghost/utils/titleize",["exports"],function(a){"use strict";function b(a){var b=a.split(" ").map(function(a,b){return(0===b||-1===c.indexOf(a))&&(a=Ember.String.capitalize(a)),a});return b.join(" ")}var c=["of","a","the","and","an","or","nor","but","is","if","then","else","when","at","from","by","on","off","for","in","out","over","to","into","with"];a["default"]=b}),define("ghost/utils/validator-extensions",["exports"],function(a){"use strict";function b(){validator.extend("empty",function(a){return Ember.isBlank(a)}),validator.extend("notContains",function(a,b){return!_.contains(a,b)})}a["default"]={init:b}}),define("ghost/utils/word-count",["exports"],function(a){"use strict";a["default"]=function(a){return a=a.replace(/(^\s*)|(\s*$)/gi,""),a=a.replace(/[ ]{2,}/gi," "),a=a.replace(/\n /gi,"\n"),a=a.replace(/\n+/gi,"\n"),a.split(/ |\n/).length}}),define("ghost/validators/forgotten",["exports"],function(a){"use strict";var b=Ember.Object.create({check:function(a){var b=a.getProperties("email"),c=[];return validator.isEmail(b.email)||c.push({message:"Invalid email address"}),c}});a["default"]=b}),define("ghost/validators/new-user",["exports"],function(a){"use strict";var b=Ember.Object.extend({check:function(a){var b=a.getProperties("name","email","password"),c=[];return validator.isLength(b.name,1)||c.push({message:"Please enter a name."}),validator.isEmail(b.email)||c.push({message:"Invalid Email."}),validator.isLength(b.password,8)||c.push({message:"Password must be at least 8 characters long."}),c}});a["default"]=b}),define("ghost/validators/post",["exports"],function(a){"use strict";var b=Ember.Object.create({check:function(a){var b=[],c=a.getProperties("title","meta_title","meta_description");return validator.empty(c.title)&&b.push({message:"You must specify a title for the post."}),validator.isLength(c.meta_title,0,150)||b.push({message:"Meta Title cannot be longer than 150 characters."}),validator.isLength(c.meta_description,0,200)||b.push({message:"Meta Description cannot be longer than 200 characters."}),b}});a["default"]=b}),define("ghost/validators/reset",["exports"],function(a){"use strict";var b=Ember.Object.create({check:function(a){var b=a.getProperties("passwords"),c=b.passwords.newPassword,d=b.passwords.ne2Password,e=[];return validator.equals(c,d)||e.push({message:"The two new passwords don't match."}),validator.isLength(c,8)||e.push({message:"The password is not long enough."}),e}});a["default"]=b}),define("ghost/validators/setting",["exports"],function(a){"use strict";var b=Ember.Object.create({check:function(a){var b=[],c=a.get("title"),d=a.get("description"),e=a.get("email"),f=a.get("postsPerPage");return validator.isLength(c,0,150)||b.push({message:"Title is too long"}),validator.isLength(d,0,200)||b.push({message:"Description is too long"}),validator.isEmail(e)&&validator.isLength(e,0,254)||b.push({message:"Supply a valid email address"}),f>1e3&&b.push({message:"The maximum number of posts per page is 1000"}),1>f&&b.push({message:"The minimum number of posts per page is 1"}),validator.isInt(f)||b.push({message:"Posts per page must be a number"}),b}});a["default"]=b}),define("ghost/validators/setup",["ghost/validators/new-user","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({check:function(a){var b=a.getProperties("blogTitle"),c=this._super(a);return validator.isLength(b.blogTitle,1)||c.push({message:"Please enter a blog title."}),c}}).create();b["default"]=d}),define("ghost/validators/signin",["exports"],function(a){"use strict";var b=Ember.Object.create({check:function(a){var b=a.getProperties("identification","password"),c=[];return validator.isEmail(b.identification)||c.push("Invalid Email"),validator.isLength(b.password||"",1)||c.push("Please enter a password"),c}});a["default"]=b}),define("ghost/validators/signup",["ghost/validators/new-user","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=c.create()}),define("ghost/validators/user",["exports"],function(a){"use strict";var b=Ember.Object.create({check:function(a){var b=this.validators[a.get("status")];return"function"!=typeof b?[]:b(a)},validators:{invited:function(a){var b=[],c=a.get("email"),d=a.get("roles");return validator.isEmail(c)||b.push({message:"Please supply a valid email address"}),d.length<1&&b.push({message:"Please select a role"}),b},active:function(a){var b=[],c=a.get("name"),d=a.get("bio"),e=a.get("email"),f=a.get("location"),g=a.get("website");return validator.isLength(c,0,150)||b.push({message:"Name is too long"}),validator.isLength(d,0,200)||b.push({message:"Bio is too long"}),validator.isEmail(e)||b.push({message:"Please supply a valid email address"}),validator.isLength(f,0,150)||b.push({message:"Location is too long"}),_.isEmpty(g)||validator.isURL(g,{protocols:["http","https"],require_protocol:!0})&&validator.isLength(g,0,2e3)||b.push({message:"Website is not a valid url"}),b}}});a["default"]=b}),define("ghost/views/application",["ghost/utils/mobile","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.View.extend({elementId:"container",blogRoot:Ember.computed.alias("controller.ghostPaths.blogRoot"),setupGlobalMobileNav:function(){var a=this;$("body").on("click tap",".js-nav-item",function(){c.matches&&a.set("controller.showGlobalMobileNav",!1)}),$(".js-nav-cover").on("click tap",function(){var b=a.get("controller.showGlobalMobileNav");b&&a.set("controller.showGlobalMobileNav",!1)}),c.addListener(this.swapUserMenuPopoverTriangleClasses),this.swapUserMenuPopoverTriangleClasses(c)}.on("didInsertElement"),swapUserMenuPopoverTriangleClasses:function(a){a.matches?$(".js-user-menu-dropdown-menu").removeClass("dropdown-triangle-top-right ").addClass("dropdown-triangle-bottom"):$(".js-user-menu-dropdown-menu").removeClass("dropdown-triangle-bottom").addClass("dropdown-triangle-top-right")},showGlobalMobileNavObserver:function(){this.get("controller.showGlobalMobileNav")?$("body").addClass("global-nav-expanded"):$("body").removeClass("global-nav-expanded")}.observes("controller.showGlobalMobileNav"),setupCloseNavOnDesktop:function(){this.set("closeGlobalMobileNavOnDesktop",_.bind(function(a){a.matches||this.set("controller.showGlobalMobileNav",!1)},this)),c.addListener(this.closeGlobalMobileNavOnDesktop)}.on("didInsertElement"),removeCloseNavOnDesktop:function(){c.removeListener(this.closeGlobalMobileNavOnDesktop)}.on("willDestroyElement"),toggleRightOutletBodyClass:function(){$("body").toggleClass("right-outlet-expanded",this.get("controller.showRightOutlet"))}.observes("controller.showRightOutlet")});b["default"]=d}),define("ghost/views/content-preview-content-view",["ghost/utils/set-scroll-classname","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.View.extend({classNames:["content-preview-content"],didInsertElement:function(){var a=this.$();a.on("scroll",Ember.run.bind(a,c,{target:a.closest(".content-preview"),offset:10}))},contentObserver:function(){this.$().closest(".content-preview").scrollTop(0)}.observes("controller.content"),willDestroyElement:function(){var a=this.$();a.off("scroll")}});b["default"]=d}),define("ghost/views/editor-save-button",["exports"],function(a){"use strict";var b=Ember.View.extend({templateName:"editor-save-button",tagName:"section",classNames:["splitbtn","js-publish-splitbutton"],isDangerous:Ember.computed("controller.isPublished","controller.willPublish",function(){return this.get("controller.isPublished")!==this.get("controller.willPublish")}),publishText:Ember.computed("controller.isPublished",function(){return this.get("controller.isPublished")?"Update Post":"Publish Now"}),draftText:Ember.computed("controller.isPublished",function(){return this.get("controller.isPublished")?"Unpublish":"Save Draft"}),saveText:Ember.computed("controller.willPublish",function(){return this.get(this.get("controller.willPublish")?"publishText":"draftText")})});a["default"]=b}),define("ghost/views/editor/edit",["ghost/mixins/editor-base-view","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.View.extend(c,{tagName:"section",classNames:["entry-container"]});b["default"]=d}),define("ghost/views/editor/new",["ghost/mixins/editor-base-view","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.View.extend(c,{tagName:"section",templateName:"editor/edit",classNames:["entry-container"]});b["default"]=d}),define("ghost/views/item-view",["exports"],function(a){"use strict";var b=Ember.View.extend({classNameBindings:["active"],active:Ember.computed("childViews.firstObject.active",function(){return this.get("childViews.firstObject.active")})});a["default"]=b}),define("ghost/views/mobile/content-view",["ghost/utils/mobile","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.View.extend({showContent:function(){c.matches&&this.get("parentView").showContent()}.on("didInsertElement")});b["default"]=d}),define("ghost/views/mobile/index-view",["ghost/utils/mobile","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.View.extend({showMenu:function(){c.matches&&this.get("parentView").showMenu()}.on("didInsertElement")});b["default"]=d}),define("ghost/views/mobile/parent-view",["ghost/utils/mobile","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.View.extend({showContent:Ember.K,showMenu:Ember.K,showAll:Ember.K,setChangeLayout:function(){var a=this;this.set("changeLayout",function(){c.matches?a.showContent():a.showAll()})}.on("init"),attachChangeLayout:function(){c.addListener(this.changeLayout)}.on("didInsertElement"),detachChangeLayout:function(){c.removeListener(this.changeLayout)}.on("willDestroyElement")});b["default"]=d}),define("ghost/views/paginated-scroll-box",["ghost/utils/set-scroll-classname","ghost/mixins/pagination-view-infinite-scroll","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.View.extend(e,{attachScrollClassHandler:function(){var a=this.$();a.on("scroll",Ember.run.bind(a,d,{target:a.closest(".content-list"),offset:10}))}.on("didInsertElement"),detachScrollClassHandler:function(){this.$().off("scroll")}.on("willDestroyElement")});c["default"]=f}),define("ghost/views/post-item-view",["ghost/views/item-view","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({classNameBindings:["isFeatured:featured","isPage:page"],isFeatured:Ember.computed.alias("controller.model.featured"),isPage:Ember.computed.alias("controller.model.page"),doubleClick:function(){this.get("controller").send("openEditor")},click:function(){this.get("controller").send("showPostContent")}});b["default"]=d}),define("ghost/views/post-settings-menu",["ghost/utils/date-formatting","exports"],function(a,b){"use strict";var c=a.formatDate,d=Ember.View.extend({templateName:"post-settings-menu",publishedAtBinding:Ember.Binding.oneWay("controller.publishedAt"),datePlaceholder:Ember.computed("controller.publishedAt",function(){return c(moment())})});b["default"]=d}),define("ghost/views/post-tags-input",["exports"],function(a){"use strict";var b=Ember.View.extend({tagName:"section",elementId:"entry-tags",classNames:"publish-bar-inner",templateName:"post-tags-input",hasFocus:!1,keys:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,UP:38,DOWN:40,NUMPAD_ENTER:108,COMMA:188},didInsertElement:function(){this.get("controller").send("loadAllTags")},willDestroyElement:function(){this.get("controller").send("reset")},overlayStyles:Ember.computed("hasFocus","controller.suggestions.length",function(){var a,b=[];return this.get("hasFocus")&&this.get("controller.suggestions.length")?(a=this.$().find("#tags").position().left,b.push("display: block"),b.push("left: "+a+"px")):(b.push("display: none"),b.push("left",0)),b.join(";")}),tagInputView:Ember.TextField.extend({focusIn:function(){this.get("parentView").set("hasFocus",!0)},focusOut:function(){this.get("parentView").set("hasFocus",!1)},keyDown:function(a){var b,c=this.get("parentView.controller"),d=this.get("parentView.keys");switch(a.keyCode){case d.UP:a.preventDefault(),c.send("selectPreviousSuggestion");break;case d.DOWN:a.preventDefault(),c.send("selectNextSuggestion");break;case d.TAB:case d.ENTER:case d.NUMPAD_ENTER:case d.COMMA:if(a.keyCode===d.COMMA&&a.shiftKey)break;c.get("selectedSuggestion")?(a.preventDefault(),c.send("addSelectedSuggestion")):(b=!Ember.isEmpty(this.get("value")),(b||a.keyCode!==d.TAB)&&(a.preventDefault(),c.send("addNewTag")));break;case d.BACKSPACE:Ember.isEmpty(this.get("value"))&&(a.preventDefault(),c.send("deleteLastTag"));break;case d.ESCAPE:a.preventDefault(),c.send("reset")}}}),tagView:Ember.View.extend({tagName:"span",classNames:"tag",tag:null,click:function(){this.get("parentView.controller").send("deleteTag",this.get("tag"))}}),suggestionView:Ember.View.extend({tagName:"li",classNameBindings:"suggestion.selected",suggestion:null,mouseDown:function(a){a.preventDefault()},mouseUp:function(a){a.preventDefault(),this.get("parentView.controller").send("addTag",this.get("suggestion.tag"))}})});a["default"]=b}),define("ghost/views/posts",["ghost/views/mobile/parent-view","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({classNames:["content-view-container"],tagName:"section",showMenu:function(){$(".js-content-list").animate({right:"0",left:"0","margin-right":"0"},300),$(".js-content-preview").animate({right:"-100%",left:"100%","margin-left":"15px"},300)},showContent:function(){$(".js-content-list").animate({right:"100%",left:"-100%","margin-right":"15px"},300),$(".js-content-preview").animate({right:"0",left:"0","margin-left":"0"},300)},showAll:function(){$(".js-content-list").removeAttr("style"),$(".js-content-preview").removeAttr("style")}});b["default"]=d}),define("ghost/views/posts/index",["ghost/views/mobile/index-view","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({classNames:["no-posts-box"]});b["default"]=d}),define("ghost/views/posts/post",["ghost/views/mobile/content-view","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend();b["default"]=d}),define("ghost/views/settings",["ghost/views/mobile/parent-view","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({showMenu:function(){$(".js-settings-header-inner").css("display","none"),$(".js-settings-menu").css({right:"0",left:"0","margin-right":"0"}),$(".js-settings-content").css({right:"-100%",left:"100%","margin-left":"15"})},showContent:function(){$(".js-settings-menu").css({right:"100%",left:"-110%","margin-right":"15px"}),$(".js-settings-content").css({right:"0",left:"0","margin-left":"0"}),$(".js-settings-header-inner").css("display","block")},showAll:function(){$(".js-settings-menu, .js-settings-content").removeAttr("style")}});b["default"]=d}),define("ghost/views/settings/about",["ghost/views/settings/content-base","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend();b["default"]=d}),define("ghost/views/settings/apps",["ghost/views/settings/content-base","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend();b["default"]=d}),define("ghost/views/settings/content-base",["ghost/views/mobile/content-view","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({tagName:"section",classNames:["settings-content","js-settings-content","fade-in"]});b["default"]=d}),define("ghost/views/settings/general",["ghost/views/settings/content-base","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend();b["default"]=d}),define("ghost/views/settings/index",["ghost/views/mobile/index-view","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend();b["default"]=d}),define("ghost/views/settings/users",["ghost/views/settings/content-base","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend();b["default"]=d}),define("ghost/views/settings/users/user",["exports"],function(a){"use strict";var b=Ember.View.extend({currentUser:Ember.computed.alias("controller.session.user"),isNotOwnProfile:Ember.computed("controller.user.id","currentUser.id",function(){return this.get("controller.user.id")!==this.get("currentUser.id")}),isNotOwnersProfile:Ember.computed.not("controller.user.isOwner"),canAssignRoles:Ember.computed.or("currentUser.isAdmin","currentUser.isOwner"),canMakeOwner:Ember.computed.and("currentUser.isOwner","isNotOwnProfile","controller.user.isAdmin"),rolesDropdownIsVisible:Ember.computed.and("isNotOwnProfile","canAssignRoles","isNotOwnersProfile"),deleteUserActionIsVisible:Ember.computed("currentUser","canAssignRoles","controller.user",function(){return this.get("canAssignRoles")&&this.get("isNotOwnProfile")&&!this.get("controller.user.isOwner")||this.get("currentUser.isEditor")&&(!this.get("isNotOwnProfile")||this.get("controller.user.isAuthor"))?!0:void 0}),userActionsAreVisible:Ember.computed.or("deleteUserActionIsVisible","canMakeOwner")});a["default"]=b}),define("ghost/views/settings/users/users-list-view",["ghost/mixins/pagination-view-infinite-scroll","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.View.extend(c,{classNames:["settings-users"]});b["default"]=d}),define("ghost/templates/-contributors",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f="",g=this.escapeExpression;return e.buffer.push('<li>\n	<a href="https://github.com/ErisDS" title="ErisDS">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/ErisDS" alt="ErisDS">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/JohnONolan" title="JohnONolan">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/JohnONolan" alt="JohnONolan">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/PaulAdamDavis" title="PaulAdamDavis">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/PaulAdamDavis" alt="PaulAdamDavis">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/jaswilli" title="jaswilli">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/jaswilli" alt="jaswilli">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/halfdan" title="halfdan">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/halfdan" alt="halfdan">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/sebgie" title="sebgie">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/sebgie" alt="sebgie">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/novaugust" title="novaugust">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/novaugust" alt="novaugust">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/felixrieseberg" title="felixrieseberg">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/felixrieseberg" alt="felixrieseberg">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/rwjblue" title="rwjblue">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/rwjblue" alt="rwjblue">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/morficus" title="morficus">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/morficus" alt="morficus">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/hswolff" title="hswolff">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/hswolff" alt="hswolff">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/javorszky" title="javorszky">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/javorszky" alt="javorszky">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/IanMitchell" title="IanMitchell">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/IanMitchell" alt="IanMitchell">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/jgable" title="jgable">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/jgable" alt="jgable">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/SiR-DanieL" title="SiR-DanieL">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/SiR-DanieL" alt="SiR-DanieL">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/darvelo" title="darvelo">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/darvelo" alt="darvelo">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/kevinansfield" title="kevinansfield">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/kevinansfield" alt="kevinansfield">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/joshk" title="joshk">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/joshk" alt="joshk">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/marcoow" title="marcoow">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/marcoow" alt="marcoow">\n	</a>\n</li>\n<li>\n	<a href="https://github.com/jillesme" title="jillesme">\n		<img src="'),e.buffer.push(g(c.unbound.call(b,"ghostPaths.contributorsDir",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}))),e.buffer.push('/jillesme" alt="jillesme">\n	</a>\n</li>'),f
  })}),define("ghost/templates/-import-errors",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e="";return b.buffer.push('\r\n<table class="table">\r\n'),d=c.each.call(a,"importErrors",{hash:{},hashTypes:{},hashContexts:{},inverse:i.noop,fn:i.program(2,g,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n</table>\r\n"),e}function g(a,b){var d,e="";return b.buffer.push("\r\n    <tr><td>"),d=c._triageMustache.call(a,"message",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</td></tr>\r\n"),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var h,i=this;h=c["if"].call(b,"importErrors",{hash:{},hashTypes:{},hashContexts:{},inverse:i.noop,fn:i.program(1,f,e),contexts:[b],types:["ID"],data:e}),e.buffer.push(h||0===h?h:"")})}),define("ghost/templates/-navbar",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push('\r\n        <div class="nav-label"><i class="icon-content"></i> Content</div>\r\n    ')}function g(a,b){b.buffer.push('\r\n        <div class="nav-label"><i class="icon-add"></i> New Post</div>\r\n    ')}function h(a,b){var d,e,f,g="";return b.buffer.push("\r\n    "),e=c["link-to"]||a&&a["link-to"],f={hash:{classNames:"nav-item nav-settings js-nav-item"},hashTypes:{classNames:"STRING"},hashContexts:{classNames:a},inverse:t.noop,fn:t.program(6,i,b),contexts:[a],types:["STRING"],data:b},d=e?e.call(a,"settings",f):u.call(a,"link-to","settings",f),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n    "),g}function i(a,b){b.buffer.push('\r\n        <div class="nav-label"><i class="icon-settings2"></i> Settings</div>\r\n    ')}function j(a,b){var d,e="";return b.buffer.push("\r\n            "),d=c["if"].call(a,"session.user.image",{hash:{},hashTypes:{},hashContexts:{},inverse:t.program(11,l,b),fn:t.program(9,k,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('\r\n            <div class="name">\r\n                '),d=c._triageMustache.call(a,"session.user.name",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push(' <i class="icon-chevron-down"></i>\r\n                <small>Profile &amp; Settings</small>\r\n            </div>\r\n        '),e}function k(a,b){var d,e="";return b.buffer.push('\r\n            <div class="image"><img '),b.buffer.push(v(c["bind-attr"].call(a,{hash:{src:"session.user.image"},hashTypes:{src:"STRING"},hashContexts:{src:a},contexts:[],types:[],data:b}))),b.buffer.push(' alt="'),d=c._triageMustache.call(a,"session.user.name",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("'s profile picture\" /></div>\r\n            "),e}function l(a,b){b.buffer.push('\r\n            <div class="image"><img src="/shared/img/user-image.png" alt="Profile picture" /></div>\r\n            ')}function m(a,b){var d,e,f,g="";return b.buffer.push('\r\n            <ul class="dropdown-menu dropdown-triangle-top-right js-user-menu-dropdown-menu" role="menu">\r\n                <li role="presentation">'),e=c["link-to"]||a&&a["link-to"],f={hash:{classNames:"dropdown-item user-menu-profile js-nav-item",role:"menuitem",tabindex:"-1"},hashTypes:{classNames:"STRING",role:"STRING",tabindex:"STRING"},hashContexts:{classNames:a,role:a,tabindex:a},inverse:t.noop,fn:t.program(14,n,b),contexts:[a,a],types:["STRING","ID"],data:b},d=e?e.call(a,"settings.users.user","session.user.slug",f):u.call(a,"link-to","settings.users.user","session.user.slug",f),(d||0===d)&&b.buffer.push(d),b.buffer.push('</li>\r\n                <li role="presentation"><a class="dropdown-item user-menu-support" role="menuitem" tabindex="-1" href="http://support.ghost.org/"><i class="icon-support"></i> Help / Support</a></li>\r\n                <li class="divider"></li>\r\n                <li role="presentation">'),e=c["link-to"]||a&&a["link-to"],f={hash:{classNames:"dropdown-item user-menu-signout",role:"menuitem",tabindex:"-1"},hashTypes:{classNames:"STRING",role:"STRING",tabindex:"STRING"},hashContexts:{classNames:a,role:a,tabindex:a},inverse:t.noop,fn:t.program(16,o,b),contexts:[a],types:["STRING"],data:b},d=e?e.call(a,"signout",f):u.call(a,"link-to","signout",f),(d||0===d)&&b.buffer.push(d),b.buffer.push("</li>\r\n            </ul>\r\n        "),g}function n(a,b){b.buffer.push('<i class="icon-user"></i> Your Profile')}function o(a,b){b.buffer.push('<i class="icon-power"></i> Sign Out')}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var p,q,r,s="",t=this,u=c.helperMissing,v=this.escapeExpression;return e.buffer.push('<nav class="global-nav" role="navigation">\r\n\r\n    <a class="nav-item ghost-logo" href="'),e.buffer.push(v((q=c["gh-path"]||b&&b["gh-path"],r={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e},q?q.call(b,"blog",r):u.call(b,"gh-path","blog",r)))),e.buffer.push('" title="'),e.buffer.push(v((q=c["gh-path"]||b&&b["gh-path"],r={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e},q?q.call(b,"blog",r):u.call(b,"gh-path","blog",r)))),e.buffer.push('">\r\n        <div class="nav-label"><i class="icon-ghost"></i> <span>Visit blog</span> </div>\r\n    </a>\r\n\r\n    '),q=c["link-to"]||b&&b["link-to"],r={hash:{classNames:"nav-item nav-content js-nav-item"},hashTypes:{classNames:"STRING"},hashContexts:{classNames:b},inverse:t.noop,fn:t.program(1,f,e),contexts:[b],types:["STRING"],data:e},p=q?q.call(b,"posts",r):u.call(b,"link-to","posts",r),(p||0===p)&&e.buffer.push(p),e.buffer.push("\r\n\r\n    "),q=c["link-to"]||b&&b["link-to"],r={hash:{classNames:"nav-item nav-new js-nav-item"},hashTypes:{classNames:"STRING"},hashContexts:{classNames:b},inverse:t.noop,fn:t.program(3,g,e),contexts:[b],types:["STRING"],data:e},p=q?q.call(b,"editor.new",r):u.call(b,"link-to","editor.new",r),(p||0===p)&&e.buffer.push(p),e.buffer.push("\r\n\r\n    "),p=c.unless.call(b,"session.user.isAuthor",{hash:{},hashTypes:{},hashContexts:{},inverse:t.noop,fn:t.program(5,h,e),contexts:[b],types:["ID"],data:e}),(p||0===p)&&e.buffer.push(p),e.buffer.push('\r\n\r\n    \r\n\r\n    <div class="nav-item user-menu" data-href="#">\r\n        '),q=c["gh-popover-button"]||b&&b["gh-popover-button"],r={hash:{popoverName:"user-menu",tagName:"div",classNames:"nav-label clearfix"},hashTypes:{popoverName:"STRING",tagName:"STRING",classNames:"STRING"},hashContexts:{popoverName:b,tagName:b,classNames:b},inverse:t.noop,fn:t.program(8,j,e),contexts:[],types:[],data:e},p=q?q.call(b,r):u.call(b,"gh-popover-button",r),(p||0===p)&&e.buffer.push(p),e.buffer.push("\r\n        "),q=c["gh-popover"]||b&&b["gh-popover"],r={hash:{tagName:"div",classNames:"dropdown",name:"user-menu",closeOnClick:"true"},hashTypes:{tagName:"STRING",classNames:"STRING",name:"STRING",closeOnClick:"STRING"},hashContexts:{tagName:b,classNames:b,name:b,closeOnClick:b},inverse:t.noop,fn:t.program(13,m,e),contexts:[],types:[],data:e},p=q?q.call(b,r):u.call(b,"gh-popover",r),(p||0===p)&&e.buffer.push(p),e.buffer.push('\r\n    </div>\r\n\r\n</nav>\r\n\r\n<div class="nav-cover js-nav-cover"></div>\r\n'),s})}),define("ghost/templates/-publish-bar",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h="",i=c.helperMissing,j=this.escapeExpression;return e.buffer.push('<footer id="publish-bar">\r\n    <div class="publish-bar-inner">\r\n        '),e.buffer.push(j((f=c.render||b&&b.render,g={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e},f?f.call(b,"post-tags-input",g):i.call(b,"render","post-tags-input",g)))),e.buffer.push('\r\n\r\n        <div class="publish-bar-actions">\r\n            <button type="button" class=\'post-settings\' '),e.buffer.push(j(c.action.call(b,"toggleRightOutlet",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push("></button>\r\n            "),e.buffer.push(j(c.view.call(b,"editor-save-button",{hash:{id:"entry-actions",classNameBindings:"isNew:unsaved"},hashTypes:{id:"STRING",classNameBindings:"STRING"},hashContexts:{id:b,classNameBindings:b},contexts:[b],types:["STRING"],data:e}))),e.buffer.push("\r\n        </div>\r\n    </div>\r\n</footer>\r\n"),h})}),define("ghost/templates/-user-actions-menu",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d="";return b.buffer.push("\r\n<li><button "),b.buffer.push(j(c.action.call(a,"openModal","transfer-owner","",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a,a],types:["STRING","STRING","ID"],data:b}))),b.buffer.push(">Make Owner</button></li>\r\n"),d}function g(a,b){var d="";return b.buffer.push("\r\n<li><button "),b.buffer.push(j(c.action.call(a,"openModal","delete-user","",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a,a],types:["STRING","STRING","ID"],data:b}))),b.buffer.push(' class="delete">Delete User</button></li>\r\n'),d}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var h,i="",j=this.escapeExpression,k=this;return h=c["if"].call(b,"view.canMakeOwner",{hash:{},hashTypes:{},hashContexts:{},inverse:k.noop,fn:k.program(1,f,e),contexts:[b],types:["ID"],data:e}),(h||0===h)&&e.buffer.push(h),e.buffer.push("\r\n"),h=c["if"].call(b,"view.deleteUserActionIsVisible",{hash:{},hashTypes:{},hashContexts:{},inverse:k.noop,fn:k.program(3,g,e),contexts:[b],types:["ID"],data:e}),(h||0===h)&&e.buffer.push(h),i})}),define("ghost/templates/application",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f="";return b.buffer.push("\r\n    "),b.buffer.push(l((d=c.partial||a&&a.partial,e={hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["STRING"],data:b},d?d.call(a,"navbar",e):k.call(a,"partial","navbar",e)))),b.buffer.push("\r\n"),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=c.helperMissing,l=this.escapeExpression,m=this;return e.buffer.push('<a class="sr-only sr-only-focusable" href="#gh-main">Skip to main content</a>\r\n\r\n'),g=c.unless.call(b,"hideNav",{hash:{},hashTypes:{},hashContexts:{},inverse:m.noop,fn:m.program(1,f,e),contexts:[b],types:["ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push('\r\n\r\n<main id="gh-main" class="viewport" role="main" '),e.buffer.push(l(c["bind-attr"].call(b,{hash:{"data-notification-count":"topNotificationCount"},hashTypes:{"data-notification-count":"ID"},hashContexts:{"data-notification-count":b},contexts:[],types:[],data:e}))),e.buffer.push(">\r\n    "),e.buffer.push(l((h=c["gh-notifications"]||b&&b["gh-notifications"],i={hash:{location:"top",notify:"topNotificationChange"},hashTypes:{location:"STRING",notify:"STRING"},hashContexts:{location:b,notify:b},contexts:[],types:[],data:e},h?h.call(b,i):k.call(b,"gh-notifications",i)))),e.buffer.push("\r\n    "),e.buffer.push(l((h=c["gh-notifications"]||b&&b["gh-notifications"],i={hash:{location:"bottom"},hashTypes:{location:"STRING"},hashContexts:{location:b},contexts:[],types:[],data:e},h?h.call(b,i):k.call(b,"gh-notifications",i)))),e.buffer.push("\r\n    "),g=c._triageMustache.call(b,"outlet",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n</main>\r\n\r\n"),e.buffer.push(l((h=c.outlet||b&&b.outlet,i={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e},h?h.call(b,"modal",i):k.call(b,"outlet","modal",i)))),e.buffer.push("\r\n\r\n"),e.buffer.push(l((h=c.outlet||b&&b.outlet,i={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e},h?h.call(b,"settings-menu",i):k.call(b,"outlet","settings-menu",i)))),e.buffer.push("\r\n"),j})}),define("ghost/templates/components/gh-activating-list-item",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e="";return d=c._triageMustache.call(a,"title",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),d=c._triageMustache.call(a,"yield",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this,l=c.helperMissing;return h=c["link-to"]||b&&b["link-to"],i={hash:{alternateActive:"active"},hashTypes:{alternateActive:"ID"},hashContexts:{alternateActive:b},inverse:k.noop,fn:k.program(1,f,e),contexts:[b],types:["ID"],data:e},g=h?h.call(b,"route",i):l.call(b,"link-to","route",i),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n"),j})}),define("ghost/templates/components/gh-file-upload",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g="",h=this.escapeExpression;return e.buffer.push('    <input data-url="upload" class="btn btn-green" type="file" name="importfile" '),e.buffer.push(h(c["bind-attr"].call(b,{hash:{accept:"options.acceptEncoding"},hashTypes:{accept:"ID"},hashContexts:{accept:b},contexts:[],types:[],data:e}))),e.buffer.push('>\r\n    <button type="submit" class="btn btn-blue" id="startupload" '),e.buffer.push(h(c["bind-attr"].call(b,{hash:{disabled:"uploadButtonDisabled"},hashTypes:{disabled:"ID"},hashContexts:{disabled:b},contexts:[],types:[],data:e}))),e.buffer.push(" "),e.buffer.push(h(c.action.call(b,"upload",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push(">\r\n        "),f=c._triageMustache.call(b,"uploadButtonText",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(f||0===f)&&e.buffer.push(f),e.buffer.push("\r\n    </button>\r\n"),g})}),define("ghost/templates/components/gh-markdown",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h="",i=c.helperMissing,j=this.escapeExpression;return e.buffer.push(j((f=c["gh-format-markdown"]||b&&b["gh-format-markdown"],g={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e},f?f.call(b,"markdown",g):i.call(b,"gh-format-markdown","markdown",g)))),e.buffer.push("\r\n"),h})}),define("ghost/templates/components/gh-modal-dialog",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e="";return b.buffer.push('<header class="modal-header"><h1>'),d=c._triageMustache.call(a,"title",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</h1></header>"),e}function g(a,b){var d="";return b.buffer.push('<a class="close" href="" title="Close" '),b.buffer.push(k(c.action.call(a,"closeModal",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["STRING"],data:b}))),b.buffer.push('><span class="hidden">Close</span></a>'),d}function h(a,b){var d,e="";return b.buffer.push('\r\n            <footer class="modal-footer">\r\n                <button type="button" '),b.buffer.push(k(c["bind-attr"].call(a,{hash:{"class":"acceptButtonClass :js-button-accept"},hashTypes:{"class":"STRING"},hashContexts:{"class":a},contexts:[],types:[],data:b}))),b.buffer.push(" "),b.buffer.push(k(c.action.call(a,"confirm","accept",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a],types:["STRING","STRING"],data:b}))),b.buffer.push(">\r\n                    "),d=c._triageMustache.call(a,"confirm.accept.text",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('\r\n                </button>\r\n                <button type="button" '),b.buffer.push(k(c["bind-attr"].call(a,{hash:{"class":"rejectButtonClass :js-button-reject"},hashTypes:{"class":"STRING"},hashContexts:{"class":a},contexts:[],types:[],data:b}))),b.buffer.push(" "),b.buffer.push(k(c.action.call(a,"confirm","reject",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a],types:["STRING","STRING"],data:b}))),b.buffer.push(">\r\n                    "),d=c._triageMustache.call(a,"confirm.reject.text",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n                </button>\r\n            </footer>\r\n            "),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var i,j="",k=this.escapeExpression,l=this;return e.buffer.push('<div id="modal-container" class="js-modal-container" '),e.buffer.push(k(c.action.call(b,"closeModal",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push(">\r\n    <article "),e.buffer.push(k(c["bind-attr"].call(b,{hash:{"class":"klass :js-modal"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},contexts:[],types:[],data:e}))),e.buffer.push('>\r\n        <section class="modal-content" '),e.buffer.push(k(c.action.call(b,{hash:{bubbles:!1,preventDefault:!1},hashTypes:{bubbles:"BOOLEAN",preventDefault:"BOOLEAN"},hashContexts:{bubbles:b,preventDefault:b},contexts:[],types:[],data:e}))),e.buffer.push(">\r\n            "),i=c["if"].call(b,"title",{hash:{},hashTypes:{},hashContexts:{},inverse:l.noop,fn:l.program(1,f,e),contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push("\r\n            "),i=c["if"].call(b,"showClose",{hash:{},hashTypes:{},hashContexts:{},inverse:l.noop,fn:l.program(3,g,e),contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('\r\n            <section class="modal-body">\r\n                '),i=c._triageMustache.call(b,"yield",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push("\r\n            </section>\r\n            "),i=c["if"].call(b,"confirm",{hash:{},hashTypes:{},hashContexts:{},inverse:l.noop,fn:l.program(5,h,e),contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('\r\n        </section>\r\n    </article>\r\n</div>\r\n<div class="modal-background fade js-modal-background"></div>\r\n'),j})}),define("ghost/templates/components/gh-notification",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f="",g=this.escapeExpression;return e.buffer.push("<section "),e.buffer.push(g(c["bind-attr"].call(b,{hash:{"class":":js-notification typeClass"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},contexts:[],types:[],data:e}))),e.buffer.push('>\r\n    <span class="notification-message">\r\n        '),e.buffer.push(g(c._triageMustache.call(b,"message.message",{hash:{unescaped:"true"},hashTypes:{unescaped:"STRING"},hashContexts:{unescaped:b},contexts:[b],types:["ID"],data:e}))),e.buffer.push('\r\n    </span>\r\n    <button class="close" '),e.buffer.push(g(c.action.call(b,"closeNotification",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push('><span class="hidden">Close</span></button>\r\n</section>'),f})}),define("ghost/templates/components/gh-notifications",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f="";return b.buffer.push("\r\n    "),b.buffer.push(j((d=c["gh-notification"]||a&&a["gh-notification"],e={hash:{message:""},hashTypes:{message:"ID"},hashContexts:{message:a},contexts:[],types:[],data:b},d?d.call(a,e):i.call(a,"gh-notification",e)))),b.buffer.push("\r\n"),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h="",i=c.helperMissing,j=this.escapeExpression,k=this;return g=c.each.call(b,"messages",{hash:{},hashTypes:{},hashContexts:{},inverse:k.noop,fn:k.program(1,f,e),contexts:[b],types:["ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n"),h})}),define("ghost/templates/components/gh-role-selector",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e="";return b.buffer.push("\r\n<option "),b.buffer.push(i(c["bind-attr"].call(a,{hash:{value:"id"},hashTypes:{value:"ID"},hashContexts:{value:a},contexts:[],types:[],data:b}))),b.buffer.push(">"),d=c._triageMustache.call(a,"name",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</option>\r\n"),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h="",i=this.escapeExpression,j=this;return e.buffer.push("<select "),e.buffer.push(i(c["bind-attr"].call(b,{hash:{id:"selectId",name:"selectName"},hashTypes:{id:"ID",name:"ID"},hashContexts:{id:b,name:b},contexts:[],types:[],data:e}))),e.buffer.push(">\r\n"),g=c.each.call(b,"roles",{hash:{},hashTypes:{},hashContexts:{},inverse:j.noop,fn:j.program(1,f,e),contexts:[b],types:["ID"],data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n</select>\r\n"),h})}),define("ghost/templates/components/gh-uploader",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f="",g=this.escapeExpression;return e.buffer.push('<span class="media">\r\n    <span class="hidden">Image Upload</span>\r\n</span>\r\n<img class="js-upload-target" '),e.buffer.push(g(c["bind-attr"].call(b,{hash:{src:"image"},hashTypes:{src:"ID"},hashContexts:{src:b},contexts:[],types:[],data:e}))),e.buffer.push('>\r\n<div class="description">Add post image <strong></strong></div>\r\n<input data-url="upload" class="js-fileupload main fileupload" type="file" name="uploadimage">'),f})}),define("ghost/templates/debug",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f="";return b.buffer.push('\r\n                <fieldset>\r\n                    <div class="form-group">\r\n                        <label>Import</label>\r\n                        '),b.buffer.push(l((d=c.partial||a&&a.partial,e={hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["STRING"],data:b},d?d.call(a,"import-errors",e):k.call(a,"partial","import-errors",e)))),b.buffer.push("\r\n                        "),b.buffer.push(l((d=c["gh-file-upload"]||a&&a["gh-file-upload"],e={hash:{id:"importfile",uploadButtonText:"uploadButtonText"},hashTypes:{id:"STRING",uploadButtonText:"ID"},hashContexts:{id:a,uploadButtonText:a},contexts:[],types:[],data:b},d?d.call(a,e):k.call(a,"gh-file-upload",e)))),b.buffer.push("\r\n                        <p>Import from another Ghost installation. If you import a user, this will replace the current user & log you out.</p>\r\n                    </div>\r\n                </fieldset>\r\n            "),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=c.helperMissing,l=this.escapeExpression,m=this;return e.buffer.push('<div class="wrapper settings-debug">\r\n    <aside class="settings-sidebar" role="complementary">\r\n        <header>\r\n            <h1 class="title">Ugly Debug Tools</h1>\r\n        </header>\r\n    </aside>\r\n\r\n    <section class="settings-content active">\r\n        <section class="content">\r\n            <form id="settings-export">\r\n                <fieldset>\r\n                    <div class="form-group">\r\n                        <label>Export</label>\r\n                        <a class="btn btn-blue" '),e.buffer.push(l(c.action.call(b,"exportData",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push(">Export</a>\r\n                        <p>Export the blog settings and data.</p>\r\n                    </div>\r\n                </fieldset>\r\n            </form>\r\n            "),h=c["gh-form"]||b&&b["gh-form"],i={hash:{id:"settings-import",enctype:"multipart/form-data"},hashTypes:{id:"STRING",enctype:"STRING"},hashContexts:{id:b,enctype:b},inverse:m.noop,fn:m.program(1,f,e),contexts:[],types:[],data:e},g=h?h.call(b,i):k.call(b,"gh-form",i),(g||0===g)&&e.buffer.push(g),e.buffer.push('\r\n            <form id="settings-resetdb">\r\n                <fieldset>\r\n                    <div class="form-group">\r\n                        <label>Delete all Content</label>\r\n                        <a href="javascript:void(0);" class="btn btn-red js-delete" '),e.buffer.push(l(c.action.call(b,"openModal","deleteAll",{hash:{},hashTypes:{},hashContexts:{},contexts:[b,b],types:["STRING","STRING"],data:e}))),e.buffer.push('>Delete</a>\r\n                        <p>Delete all posts and tags from the database.</p>\r\n                    </div>\r\n                </fieldset>\r\n            </form>\r\n            <form id="settings-testmail">\r\n                <fieldset>\r\n                    <div class="form-group">\r\n                        <label>Send a test email</label>\r\n                        <button type="submit" id="sendtestmail" class="btn btn-blue" '),e.buffer.push(l(c.action.call(b,"sendTestEmail",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push(">Send</button>\r\n                        <p>Sends a test email to your address.</p>\r\n                    </div>\r\n                </fieldset>\r\n            </form>\r\n        </section>\r\n    </section>\r\n</div>\r\n"),j})}),define("ghost/templates/editor-save-button",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push('\r\n    <i class="options"></i>\r\n    <span class="sr-only">Toggle Settings Menu</span>\r\n')}function g(a,b){var d,e="";return b.buffer.push('\r\n    <ul class="dropdown-menu dropdown-triangle-bottom-right">\r\n        <li class="post-save-publish" '),b.buffer.push(l(c["bind-attr"].call(a,{hash:{"class":"willPublish:active"},hashTypes:{"class":"STRING"},hashContexts:{"class":a},contexts:[],types:[],data:b}))),b.buffer.push(">\r\n            <a "),b.buffer.push(l(c.action.call(a,"setSaveType","publish",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a],types:["STRING","STRING"],data:b}))),b.buffer.push(' href="#">'),d=c._triageMustache.call(a,"view.publishText",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('</a>\r\n        </li>\r\n        <li class="post-save-draft" '),b.buffer.push(l(c["bind-attr"].call(a,{hash:{"class":"willPublish::active"},hashTypes:{"class":"STRING"},hashContexts:{"class":a},contexts:[],types:[],data:b}))),b.buffer.push(">\r\n            <a "),b.buffer.push(l(c.action.call(a,"setSaveType","draft",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a],types:["STRING","STRING"],data:b}))),b.buffer.push(' href="#">'),d=c._triageMustache.call(a,"view.draftText",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('</a>\r\n        </li>\r\n        <li class="divider delete"></li>\r\n        <li class="delete">\r\n            <a '),b.buffer.push(l(c.action.call(a,"openModal","delete-post","",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a,a],types:["STRING","STRING","ID"],data:b}))),b.buffer.push(' href="#">Delete Post</a>\r\n        </li>\r\n    </ul>\r\n'),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var h,i,j,k="",l=this.escapeExpression,m=this,n=c.helperMissing;return e.buffer.push('<button type="button" '),e.buffer.push(l(c.action.call(b,"save",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push(" "),e.buffer.push(l(c["bind-attr"].call(b,{hash:{"class":":btn :btn-sm view.isDangerous:btn-red:btn-blue :js-publish-button"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},contexts:[],types:[],data:e}))),e.buffer.push(">"),h=c._triageMustache.call(b,"view.saveText",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(h||0===h)&&e.buffer.push(h),e.buffer.push("</button>\r\n"),i=c["gh-popover-button"]||b&&b["gh-popover-button"],j={hash:{popoverName:"post-save-menu",classNameBindings:":btn :btn-sm view.isDangerous:btn-red:btn-blue btnopen:active :dropdown-toggle :up"},hashTypes:{popoverName:"STRING",classNameBindings:"STRING"},hashContexts:{popoverName:b,classNameBindings:b},inverse:m.noop,fn:m.program(1,f,e),contexts:[],types:[],data:e},h=i?i.call(b,j):n.call(b,"gh-popover-button",j),(h||0===h)&&e.buffer.push(h),e.buffer.push("\r\n"),i=c["gh-popover"]||b&&b["gh-popover"],j={hash:{name:"post-save-menu",closeOnClick:"true",tagName:"div",classNames:"dropdown editor-options"},hashTypes:{name:"STRING",closeOnClick:"STRING",tagName:"STRING",classNames:"STRING"},hashContexts:{name:b,closeOnClick:b,tagName:b,classNames:b},inverse:m.noop,fn:m.program(3,g,e),contexts:[],types:[],data:e},h=i?i.call(b,j):n.call(b,"gh-popover",j),(h||0===h)&&e.buffer.push(h),k})}),define("ghost/templates/editor/edit",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h="",i=this.escapeExpression,j=c.helperMissing;return e.buffer.push('<header class="page-header">\r\n    <button class="menu-button js-menu-button" '),e.buffer.push(i(c.action.call(b,"toggleGlobalMobileNav",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push('><span class="sr-only">Menu</span></button>\r\n    <h2 class="page-title">Editor</h2>\r\n</header>\r\n\r\n<div class="page-content">\r\n    <header>\r\n        <section class="box entry-title">\r\n            '),e.buffer.push(i((f=c["gh-trim-focus-input"]||b&&b["gh-trim-focus-input"],g={hash:{type:"text",id:"entry-title",placeholder:"Your Post Title",value:"titleScratch",tabindex:"1",focus:"shouldFocusTitle"},hashTypes:{type:"STRING",id:"STRING",placeholder:"STRING",value:"ID",tabindex:"STRING",focus:"ID"},hashContexts:{type:b,id:b,placeholder:b,value:b,tabindex:b,focus:b},contexts:[],types:[],data:e},f?f.call(b,g):j.call(b,"gh-trim-focus-input",g)))),e.buffer.push("\r\n        </section>\r\n    </header>\r\n\r\n    <section "),e.buffer.push(i(c["bind-attr"].call(b,{hash:{"class":":entry-markdown :js-entry-markdown isPreview::active"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},contexts:[],types:[],data:e}))),e.buffer.push(">\r\n        <header "),e.buffer.push(i(c.action.call(b,"togglePreview",!1,{hash:{},hashTypes:{},hashContexts:{},contexts:[b,b],types:["STRING","BOOLEAN"],data:e}))),e.buffer.push(' class="floatingheader">\r\n            <small>Markdown</small>\r\n            <a class="markdown-help" href="" '),e.buffer.push(i(c.action.call(b,"openModal","markdown",{hash:{},hashTypes:{},hashContexts:{},contexts:[b,b],types:["STRING","STRING"],data:e}))),e.buffer.push('><span class="hidden">What is Markdown?</span></a>\r\n        </header>\r\n        <section id="entry-markdown-content" class="entry-markdown-content">\r\n            '),e.buffer.push(i((f=c["gh-codemirror"]||b&&b["gh-codemirror"],g={hash:{value:"scratch",scrollInfo:"view.markdownScrollInfo",setCodeMirror:"setCodeMirror",openModal:"openModal"},hashTypes:{value:"ID",scrollInfo:"ID",setCodeMirror:"STRING",openModal:"STRING"},hashContexts:{value:b,scrollInfo:b,setCodeMirror:b,openModal:b},contexts:[],types:[],data:e},f?f.call(b,g):j.call(b,"gh-codemirror",g)))),e.buffer.push("\r\n        </section>\r\n    </section>\r\n\r\n    <section "),e.buffer.push(i(c["bind-attr"].call(b,{hash:{"class":":entry-preview :js-entry-preview isPreview:active"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},contexts:[],types:[],data:e}))),e.buffer.push(">\r\n        <header "),e.buffer.push(i(c.action.call(b,"togglePreview",!0,{hash:{},hashTypes:{},hashContexts:{},contexts:[b,b],types:["STRING","BOOLEAN"],data:e}))),e.buffer.push(' class="floatingheader">\r\n            <small>Preview <span class="entry-word-count js-entry-word-count">'),e.buffer.push(i((f=c["gh-count-words"]||b&&b["gh-count-words"],g={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e},f?f.call(b,"scratch",g):j.call(b,"gh-count-words","scratch",g)))),e.buffer.push('</span></small>\r\n        </header>\r\n        <section class="entry-preview-content js-entry-preview-content">\r\n            '),e.buffer.push(i((f=c["gh-markdown"]||b&&b["gh-markdown"],g={hash:{classNames:"rendered-markdown js-rendered-markdown",markdown:"scratch",scrollPosition:"view.scrollPosition",uploadStarted:"disableCodeMirror",uploadFinished:"enableCodeMirror",uploadSuccess:"handleImgUpload"},hashTypes:{classNames:"STRING",markdown:"ID",scrollPosition:"ID",uploadStarted:"STRING",uploadFinished:"STRING",uploadSuccess:"STRING"},hashContexts:{classNames:b,markdown:b,scrollPosition:b,uploadStarted:b,uploadFinished:b,uploadSuccess:b},contexts:[],types:[],data:e},f?f.call(b,g):j.call(b,"gh-markdown",g)))),e.buffer.push("\r\n        </section>\r\n    </section>\r\n\r\n    "),e.buffer.push(i((f=c.partial||b&&b.partial,g={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e},f?f.call(b,"publish-bar",g):j.call(b,"partial","publish-bar",g)))),e.buffer.push("\r\n\r\n</div>\r\n"),h
  })}),define("ghost/templates/error",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e="";return b.buffer.push('\r\n    <section class="error-stack">\r\n        <h3>Stack Trace</h3>\r\n        <p><strong>'),d=c._triageMustache.call(a,"message",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('</strong></p>\r\n        <ul class="error-stack-list">\r\n            '),d=c.each.call(a,"stack",{hash:{},hashTypes:{},hashContexts:{},inverse:m.noop,fn:m.program(2,g,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n        </ul>\r\n    </section>\r\n"),e}function g(a,b){var d,e="";return b.buffer.push("\r\n                <li>\r\n                    at\r\n                    "),d=c["if"].call(a,"function",{hash:{},hashTypes:{},hashContexts:{},inverse:m.noop,fn:m.program(3,h,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('\r\n                    <span class="error-stack-file">('),d=c._triageMustache.call(a,"at",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push(")</span>\r\n                </li>\r\n            "),e}function h(a,b){var d,e="";return b.buffer.push('<em class="error-stack-function">'),d=c._triageMustache.call(a,"function",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</em>"),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var i,j,k,l="",m=this,n=this.escapeExpression,o=c.helperMissing;return e.buffer.push('<section class="error-content error-404 js-error-container">\r\n    <section class="error-details">\r\n         <figure class="error-image">\r\n             <img class="error-ghost" '),e.buffer.push(n(c["bind-attr"].call(b,{hash:{src:"ghostPaths.errorImageSrc",srcset:"ghostPaths.errorImageSrcSet"},hashTypes:{src:"ID",srcset:"ID"},hashContexts:{src:b,srcset:b},contexts:[],types:[],data:e}))),e.buffer.push(' />\r\n         </figure>\r\n         <section class="error-message">\r\n             <h1 class="error-code">'),i=c._triageMustache.call(b,"code",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('</h1>\r\n             <h2 class="error-description">'),i=c._triageMustache.call(b,"message",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('</h2>\r\n             <a class="error-link" href="'),e.buffer.push(n((j=c["gh-path"]||b&&b["gh-path"],k={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e},j?j.call(b,"blog",k):o.call(b,"gh-path","blog",k)))),e.buffer.push('">Go to the front page →</a>\r\n         </section>\r\n    </section>\r\n</section>\r\n\r\n'),i=c["if"].call(b,"stack",{hash:{},hashTypes:{},hashContexts:{},inverse:m.noop,fn:m.program(1,f,e),contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push("\r\n"),l})}),define("ghost/templates/forgotten",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h="",i=c.helperMissing,j=this.escapeExpression;return e.buffer.push('<section class="forgotten-box js-forgotten-box fade-in">\r\n    <form id="forgotten" class="forgotten-form" method="post" novalidate="novalidate">\r\n        <div class="email-wrap">\r\n            '),e.buffer.push(j((f=c["gh-trim-focus-input"]||b&&b["gh-trim-focus-input"],g={hash:{value:"email","class":"email",type:"email",placeholder:"Email Address",name:"email",autofocus:"autofocus",autocapitalize:"off",autocorrect:"off"},hashTypes:{value:"ID","class":"STRING",type:"STRING",placeholder:"STRING",name:"STRING",autofocus:"STRING",autocapitalize:"STRING",autocorrect:"STRING"},hashContexts:{value:b,"class":b,type:b,placeholder:b,name:b,autofocus:b,autocapitalize:b,autocorrect:b},contexts:[],types:[],data:e},f?f.call(b,g):i.call(b,"gh-trim-focus-input",g)))),e.buffer.push('\r\n        </div>\r\n        <button class="btn btn-blue" type="submit" '),e.buffer.push(j(c.action.call(b,"submit",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push(" "),e.buffer.push(j(c["bind-attr"].call(b,{hash:{disabled:"submitting"},hashTypes:{disabled:"ID"},hashContexts:{disabled:b},contexts:[],types:[],data:e}))),e.buffer.push(">Send new password</button>\r\n    </form>\r\n</section>\r\n"),h})}),define("ghost/templates/modals/auth-failed-unsaved",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("\r\n\r\n    <p>Hey there! Something has gone wrong and you have been logged out.  It looks like you have unsaved content that will be lost if you leave this page.</p>\r\n\r\n    <p>Copy your content somewhere safe before you go!</p>\r\n\r\n")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this,l=c.helperMissing;return h=c["gh-modal-dialog"]||b&&b["gh-modal-dialog"],i={hash:{action:"closeModal",showClose:!0,type:"action",style:"wide,centered",animation:"fade",title:"Post NOT saved.",confirm:"confirm"},hashTypes:{action:"STRING",showClose:"BOOLEAN",type:"STRING",style:"STRING",animation:"STRING",title:"STRING",confirm:"ID"},hashContexts:{action:b,showClose:b,type:b,style:b,animation:b,title:b,confirm:b},inverse:k.noop,fn:k.program(1,f,e),contexts:[],types:[],data:e},g=h?h.call(b,i):l.call(b,"gh-modal-dialog",i),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n"),j})}),define("ghost/templates/modals/copy-html",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f="";return b.buffer.push("\r\n\r\n    "),b.buffer.push(l((d=c.textarea||a&&a.textarea,e={hash:{value:"generatedHTML",rows:"6"},hashTypes:{value:"ID",rows:"STRING"},hashContexts:{value:a,rows:a},contexts:[],types:[],data:b},d?d.call(a,e):k.call(a,"textarea",e)))),b.buffer.push("\r\n\r\n"),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=c.helperMissing,l=this.escapeExpression,m=this;return h=c["gh-modal-dialog"]||b&&b["gh-modal-dialog"],i={hash:{action:"closeModal",showClose:!0,type:"action",animation:"fade",title:"Generated HTML",confirm:"confirm","class":"copy-html"},hashTypes:{action:"STRING",showClose:"BOOLEAN",type:"STRING",animation:"STRING",title:"STRING",confirm:"ID","class":"STRING"},hashContexts:{action:b,showClose:b,type:b,animation:b,title:b,confirm:b,"class":b},inverse:m.noop,fn:m.program(1,f,e),contexts:[],types:[],data:e},g=h?h.call(b,i):k.call(b,"gh-modal-dialog",i),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n"),j})}),define("ghost/templates/modals/delete-all",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("\r\n\r\n    <p>This is permanent! No backups, no restores, no magic undo button. <br /> We warned you, ok?</p>\r\n\r\n")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this,l=c.helperMissing;return h=c["gh-modal-dialog"]||b&&b["gh-modal-dialog"],i={hash:{action:"closeModal",type:"action",style:"wide,centered",animation:"fade",title:"Would you really like to delete all content from your blog?",confirm:"confirm"},hashTypes:{action:"STRING",type:"STRING",style:"STRING",animation:"STRING",title:"STRING",confirm:"ID"},hashContexts:{action:b,type:b,style:b,animation:b,title:b,confirm:b},inverse:k.noop,fn:k.program(1,f,e),contexts:[],types:[],data:e},g=h?h.call(b,i):l.call(b,"gh-modal-dialog",i),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n"),j})}),define("ghost/templates/modals/delete-post",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("\r\n\r\n    <p>This is permanent! No backups, no restores, no magic undo button. <br /> We warned you, ok?</p>\r\n\r\n")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this,l=c.helperMissing;return h=c["gh-modal-dialog"]||b&&b["gh-modal-dialog"],i={hash:{action:"closeModal",showClose:!0,type:"action",style:"wide,centered",animation:"fade",title:"Are you sure you want to delete this post?",confirm:"confirm"},hashTypes:{action:"STRING",showClose:"BOOLEAN",type:"STRING",style:"STRING",animation:"STRING",title:"STRING",confirm:"ID"},hashContexts:{action:b,showClose:b,type:b,style:b,animation:b,title:b,confirm:b},inverse:k.noop,fn:k.program(1,f,e),contexts:[],types:[],data:e},g=h?h.call(b,i):l.call(b,"gh-modal-dialog",i),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n"),j})}),define("ghost/templates/modals/delete-user",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("\r\n\r\n    <p>All posts and associated data will also be deleted. There is no way to recover this data.\r\n    </p>\r\n\r\n")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j=this,k=c.helperMissing;h=c["gh-modal-dialog"]||b&&b["gh-modal-dialog"],i={hash:{action:"closeModal",showClose:!0,type:"action",style:"wide,centered",animation:"fade",title:"Are you sure you want to delete this user?",confirm:"confirm"},hashTypes:{action:"STRING",showClose:"BOOLEAN",type:"STRING",style:"STRING",animation:"STRING",title:"STRING",confirm:"ID"},hashContexts:{action:b,showClose:b,type:b,style:b,animation:b,title:b,confirm:b},inverse:j.noop,fn:j.program(1,f,e),contexts:[],types:[],data:e},g=h?h.call(b,i):k.call(b,"gh-modal-dialog",i),e.buffer.push(g||0===g?g:"")})}),define("ghost/templates/modals/invite-new-user",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f="";return b.buffer.push('\r\n\r\n        <fieldset>\r\n            <div class="form-group">\r\n                <label for="new-user-email">Email Address</label>\r\n                '),b.buffer.push(l((d=c.input||a&&a.input,e={hash:{action:"confirmAccept","class":"email",id:"new-user-email",type:"email",placeholder:"Email Address",name:"email",autofocus:"autofocus",autocapitalize:"off",autocorrect:"off",value:"email"},hashTypes:{action:"STRING","class":"STRING",id:"STRING",type:"STRING",placeholder:"STRING",name:"STRING",autofocus:"STRING",autocapitalize:"STRING",autocorrect:"STRING",value:"ID"},hashContexts:{action:a,"class":a,id:a,type:a,placeholder:a,name:a,autofocus:a,autocapitalize:a,autocorrect:a,value:a},contexts:[],types:[],data:b},d?d.call(a,e):k.call(a,"input",e)))),b.buffer.push('\r\n            </div>\r\n\r\n            <div class="form-group for-select">\r\n                <label for="new-user-role">Role</label>\r\n                '),b.buffer.push(l((d=c["gh-role-selector"]||a&&a["gh-role-selector"],e={hash:{initialValue:"authorRole",onChange:"setRole",selectId:"new-user-role"},hashTypes:{initialValue:"ID",onChange:"STRING",selectId:"STRING"},hashContexts:{initialValue:a,onChange:a,selectId:a},contexts:[],types:[],data:b},d?d.call(a,e):k.call(a,"gh-role-selector",e)))),b.buffer.push("\r\n            </div>\r\n\r\n        </fieldset>\r\n\r\n"),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=c.helperMissing,l=this.escapeExpression,m=this;return h=c["gh-modal-dialog"]||b&&b["gh-modal-dialog"],i={hash:{action:"closeModal",showClose:!0,type:"action",animation:"fade",title:"Invite a New User",confirm:"confirm","class":"invite-new-user"},hashTypes:{action:"STRING",showClose:"BOOLEAN",type:"STRING",animation:"STRING",title:"STRING",confirm:"ID","class":"STRING"},hashContexts:{action:b,showClose:b,type:b,animation:b,title:b,confirm:b,"class":b},inverse:m.noop,fn:m.program(1,f,e),contexts:[],types:[],data:e},g=h?h.call(b,i):k.call(b,"gh-modal-dialog",i),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n"),j})}),define("ghost/templates/modals/leave-editor",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("\r\n\r\n    <p>Hey there! It looks like you're in the middle of writing something and you haven't saved all of your\r\n    content.</p>\r\n    \r\n    <p>Save before you go!</p>\r\n\r\n")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this,l=c.helperMissing;return h=c["gh-modal-dialog"]||b&&b["gh-modal-dialog"],i={hash:{action:"closeModal",showClose:!0,type:"action",style:"wide,centered",animation:"fade",title:"Are you sure you want to leave this page?",confirm:"confirm"},hashTypes:{action:"STRING",showClose:"BOOLEAN",type:"STRING",style:"STRING",animation:"STRING",title:"STRING",confirm:"ID"},hashContexts:{action:b,showClose:b,type:b,style:b,animation:b,title:b,confirm:b},inverse:k.noop,fn:k.program(1,f,e),contexts:[],types:[],data:e},g=h?h.call(b,i):l.call(b,"gh-modal-dialog",i),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n"),j})}),define("ghost/templates/modals/markdown",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push('\r\n    <section class="markdown-help-container">\r\n        <table class="modal-markdown-help-table">\r\n            <thead>\r\n            <tr>\r\n                <th>Result</th>\r\n                <th>Markdown</th>\r\n                <th>Shortcut</th>\r\n            </tr>\r\n            </thead>\r\n            <tbody>\r\n            <tr>\r\n                <td><strong>Bold</strong></td>\r\n                <td>**text**</td>\r\n                <td>Ctrl/⌘ + B </td>\r\n            </tr>\r\n            <tr>\r\n                <td><em>Emphasize</em></td>\r\n                <td>*text*</td>\r\n                <td>Ctrl/⌘ + I</td>\r\n            </tr>\r\n            <tr>\r\n                <td><del>Strike-through</del></td>\r\n                <td>~~text~~</td>\r\n                <td>Ctrl + Alt + U</td>\r\n            </tr>\r\n            <tr>\r\n                <td><a href="#">Link</a></td>\r\n                <td>[title](http://)</td>\r\n                <td>Ctrl/⌘ + K</td>\r\n            </tr>\r\n            <tr>\r\n                <td><code>Inline Code</code></td>\r\n                <td>`code`</td>\r\n                <td>Ctrl/⌘ + Shift + K</td>\r\n            </tr>\r\n            <tr>\r\n                <td>Image</td>\r\n                <td>![alt](http://)</td>\r\n                <td>Ctrl/⌘ + Shift + I</td>\r\n            </tr>\r\n            <tr>\r\n                <td>List</td>\r\n                <td>* item</td>\r\n                <td>Ctrl + L</td>\r\n            </tr>\r\n            <tr>\r\n                <td>Blockquote</td>\r\n                <td>> quote</td>\r\n                <td>Ctrl + Q</td>\r\n            </tr>\r\n            <tr>\r\n                <td>H1</td>\r\n                <td># Heading</td>\r\n                <td></td>\r\n            </tr>\r\n            <tr>\r\n                <td>H2</td>\r\n                <td>## Heading</td>\r\n                <td>Ctrl/⌘ + H</td>\r\n            </tr>\r\n            <tr>\r\n                <td>H3</td>\r\n                <td>### Heading</td>\r\n                <td>Ctrl/⌘ + H (x2)</td>\r\n            </tr>\r\n            </tbody>\r\n        </table>\r\n        For further Markdown syntax reference: <a href="http://daringfireball.net/projects/markdown/syntax" target="_blank">Markdown Documentation</a>\r\n    </section>\r\n')}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this,l=c.helperMissing;return h=c["gh-modal-dialog"]||b&&b["gh-modal-dialog"],i={hash:{action:"closeModal",showClose:!0,style:"wide",animation:"fade",title:"Markdown Help"},hashTypes:{action:"STRING",showClose:"BOOLEAN",style:"STRING",animation:"STRING",title:"STRING"},hashContexts:{action:b,showClose:b,style:b,animation:b,title:b},inverse:k.noop,fn:k.program(1,f,e),contexts:[],types:[],data:e},g=h?h.call(b,i):l.call(b,"gh-modal-dialog",i),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n"),j})}),define("ghost/templates/modals/transfer-owner",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("\r\n\r\n    <p>Are you sure you want to transfer the ownership of this blog? You will not be able to undo this action.</p>\r\n\r\n")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this,l=c.helperMissing;return h=c["gh-modal-dialog"]||b&&b["gh-modal-dialog"],i={hash:{action:"closeModal",showClose:!0,type:"action",style:"wide,centered",animation:"fade",title:"Transfer Ownership",confirm:"confirm"},hashTypes:{action:"STRING",showClose:"BOOLEAN",type:"STRING",style:"STRING",animation:"STRING",title:"STRING",confirm:"ID"},hashContexts:{action:b,showClose:b,type:b,style:b,animation:b,title:b,confirm:b},inverse:k.noop,fn:k.program(1,f,e),contexts:[],types:[],data:e},g=h?h.call(b,i):l.call(b,"gh-modal-dialog",i),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n"),j})}),define("ghost/templates/modals/upload",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d="";return b.buffer.push('\r\n  <section class="js-drop-zone">\r\n      <img class="js-upload-target" '),b.buffer.push(k(c["bind-attr"].call(a,{hash:{src:"src"},hashTypes:{src:"ID"},hashContexts:{src:a},contexts:[],types:[],data:b}))),b.buffer.push(' alt="logo">\r\n      <input data-url="upload" class="js-fileupload main" type="file" name="uploadimage" '),b.buffer.push(k(c["bind-attr"].call(a,{hash:{accept:"acceptEncoding"},hashTypes:{accept:"ID"},hashContexts:{accept:a},contexts:[],types:[],data:b}))),b.buffer.push(" >\r\n  </section>\r\n\r\n"),d}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this.escapeExpression,l=this,m=c.helperMissing;return h=c["gh-upload-modal"]||b&&b["gh-upload-modal"],i={hash:{action:"closeModal",close:!0,type:"action",style:"wide",model:"model",imageType:"imageType",animation:"fade"},hashTypes:{action:"STRING",close:"BOOLEAN",type:"STRING",style:"STRING",model:"ID",imageType:"ID",animation:"STRING"},hashContexts:{action:b,close:b,type:b,style:b,model:b,imageType:b,animation:b},inverse:l.noop,fn:l.program(1,f,e),contexts:[],types:[],data:e},g=h?h.call(b,i):m.call(b,"gh-upload-modal",i),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n"),j})}),define("ghost/templates/post-settings-menu",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f,i="";return b.buffer.push('\r\n<div id="entry-controls" class="right-outlet">\r\n    <div '),b.buffer.push(n(c["bind-attr"].call(a,{hash:{"class":"isViewingSubview:outlet-pane-out-left:outlet-pane-in :post-settings-menu :outlet-pane"},hashTypes:{"class":"STRING"},hashContexts:{"class":a},contexts:[],types:[],data:b}))),b.buffer.push('>\r\n        <div class="post-settings-header">\r\n            <h4>Post Settings</h4>\r\n            <button class="close icon-x post-settings-header-action" '),b.buffer.push(n(c.action.call(a,"closeRightOutlet",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["STRING"],data:b}))),b.buffer.push('><span class="hidden">Close</span></button>\r\n        </div>\r\n        <div class="post-settings-content">\r\n            '),b.buffer.push(n((e=c["gh-uploader"]||a&&a["gh-uploader"],f={hash:{uploaded:"setCoverImage",canceled:"clearCoverImage",image:"image",tagName:"section"},hashTypes:{uploaded:"STRING",canceled:"STRING",image:"ID",tagName:"STRING"},hashContexts:{uploaded:a,canceled:a,image:a,tagName:a},contexts:[],types:[],data:b},e?e.call(a,f):o.call(a,"gh-uploader",f)))),b.buffer.push('\r\n            <form>\r\n            <div class="form-group">\r\n                <label for="blog-title">Post URL</label>\r\n                <span class="input-icon icon-link">\r\n                    '),b.buffer.push(n((e=c["gh-input"]||a&&a["gh-input"],f={hash:{"class":"post-setting-slug",id:"url",value:"slugValue",name:"post-setting-slug","focus-out":"updateSlug",placeholder:"slugPlaceholder",selectOnClick:"true",stopEnterKeyDownPropagation:"true"},hashTypes:{"class":"STRING",id:"STRING",value:"ID",name:"STRING","focus-out":"STRING",placeholder:"ID",selectOnClick:"STRING",stopEnterKeyDownPropagation:"STRING"},hashContexts:{"class":a,id:a,value:a,name:a,"focus-out":a,placeholder:a,selectOnClick:a,stopEnterKeyDownPropagation:a},contexts:[],types:[],data:b},e?e.call(a,f):o.call(a,"gh-input",f)))),b.buffer.push('\r\n                </span>\r\n            </div>\r\n\r\n            <div class="form-group">\r\n                <label for="blog-title">Publish Date</label>\r\n                <span class="input-icon icon-calendar">\r\n                    '),b.buffer.push(n((e=c["gh-input"]||a&&a["gh-input"],f={hash:{"class":"post-setting-date",value:"publishedAtValue",name:"post-setting-date","focus-out":"setPublishedAt",placeholder:"publishedAtPlaceholder",stopEnterKeyDownPropagation:"true"},hashTypes:{"class":"STRING",value:"ID",name:"STRING","focus-out":"STRING",placeholder:"ID",stopEnterKeyDownPropagation:"STRING"},hashContexts:{"class":a,value:a,name:a,"focus-out":a,placeholder:a,stopEnterKeyDownPropagation:a},contexts:[],types:[],data:b},e?e.call(a,f):o.call(a,"gh-input",f)))),b.buffer.push('\r\n                </span>\r\n            </div>\r\n\r\n            <div class="form-group for-select">\r\n                <label for="activeTheme">Author</label>\r\n                <span class="input-icon icon-user">\r\n                    <span class="gh-select" tabindex="0">\r\n                    '),b.buffer.push(n(c.view.call(a,"Ember.Select",{hash:{name:"post-setting-author",content:"authors",optionValuePath:"content.id",optionLabelPath:"content.name",selection:"selectedAuthor"},hashTypes:{name:"STRING",content:"ID",optionValuePath:"STRING",optionLabelPath:"STRING",selection:"ID"},hashContexts:{name:a,content:a,optionValuePath:a,optionLabelPath:a,selection:a},contexts:[a],types:["ID"],data:b}))),b.buffer.push('\r\n                    </span>\r\n                </span>\r\n            </div>\r\n\r\n            <ul class="nav-list nav-list-block">\r\n                '),e=c["gh-tab"]||a&&a["gh-tab"],f={hash:{tagName:"li",classNames:"nav-list-item"},hashTypes:{tagName:"STRING",classNames:"STRING"},hashContexts:{tagName:a,classNames:a},inverse:p.noop,fn:p.program(2,g,b),contexts:[],types:[],data:b},d=e?e.call(a,f):o.call(a,"gh-tab",f),(d||0===d)&&b.buffer.push(d),b.buffer.push('\r\n            </ul>\r\n\r\n            <div class="form-group for-checkbox">\r\n                <label class="checkbox" for="static-page" '),b.buffer.push(n(c.action.call(a,"togglePage",{hash:{bubbles:"false"},hashTypes:{bubbles:"STRING"},hashContexts:{bubbles:a},contexts:[a],types:["STRING"],data:b}))),b.buffer.push(">\r\n                    "),b.buffer.push(n((e=c.input||a&&a.input,f={hash:{type:"checkbox",name:"static-page",id:"static-page","class":"post-setting-static-page",checked:"page"},hashTypes:{type:"STRING",name:"STRING",id:"STRING","class":"STRING",checked:"ID"},hashContexts:{type:a,name:a,id:a,"class":a,checked:a},contexts:[],types:[],data:b},e?e.call(a,f):o.call(a,"input",f)))),b.buffer.push('\r\n                    <span class="input-toggle-component"></span>\r\n                    <p>Turn this post into a static page</p>\r\n                </label>\r\n\r\n                <label class="checkbox" for="static-page" '),b.buffer.push(n(c.action.call(a,"toggleFeatured",{hash:{bubbles:"false"},hashTypes:{bubbles:"STRING"},hashContexts:{bubbles:a},contexts:[a],types:["STRING"],data:b}))),b.buffer.push(">\r\n                    "),b.buffer.push(n((e=c.input||a&&a.input,f={hash:{type:"checkbox",name:"featured",id:"featured","class":"post-setting-featured",checked:"featured"},hashTypes:{type:"STRING",name:"STRING",id:"STRING","class":"STRING",checked:"ID"},hashContexts:{type:a,name:a,id:a,"class":a,checked:a},contexts:[],types:[],data:b},e?e.call(a,f):o.call(a,"input",f)))),b.buffer.push('\r\n                    <span class="input-toggle-component"></span>\r\n                    <p>Feature this post</p>\r\n                </label>\r\n            </div>\r\n            \r\n            </form>\r\n        </div><!-- .post-settings-content -->\r\n    </div><!-- .post-settings-menu -->\r\n    <div '),b.buffer.push(n(c["bind-attr"].call(a,{hash:{"class":"isViewingSubview:outlet-pane-in:outlet-pane-out-right :post-settings-menu :outlet-pane"},hashTypes:{"class":"STRING"},hashContexts:{"class":a},contexts:[],types:[],data:b}))),b.buffer.push(">\r\n    "),f={hash:{},hashTypes:{},hashContexts:{},inverse:p.noop,fn:p.program(4,h,b),contexts:[],types:[],data:b},(e=c["gh-tab-pane"])?d=e.call(a,f):(e=a&&a["gh-tab-pane"],d=typeof e===q?e.call(a,f):e),c["gh-tab-pane"]||(d=r.call(a,"gh-tab-pane",{hash:{},hashTypes:{},hashContexts:{},inverse:p.noop,fn:p.program(4,h,b),contexts:[],types:[],data:b})),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n    </div>\r\n</div>\r\n"),i}function g(a,b){b.buffer.push('\r\n                    <a href="#">\r\n                        <b>Meta Data</b>\r\n                        <span>Extra content for SEO and social media.</span>\r\n                    </a>\r\n                ')}function h(a,b){var d,e,f,g="";return b.buffer.push('\r\n        <div class="post-settings-header subview">\r\n            <button '),b.buffer.push(n(c.action.call(a,"closeSubview",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["STRING"],data:b}))),b.buffer.push(' class="back icon-chevron-left post-settings-header-action"><span class="hidden">Back</span></button>\r\n            <h4>Meta Data</h4>\r\n        </div>\r\n\r\n\r\n        <div class="post-settings-content">\r\n            <form>\r\n            <div class="form-group">\r\n                <label for="blog-title">Meta Title</label>\r\n                '),b.buffer.push(n((e=c["gh-input"]||a&&a["gh-input"],f={hash:{"class":"post-setting-meta-title",value:"metaTitleScratch",name:"post-setting-meta-title","focus-out":"setMetaTitle",stopEnterKeyDownPropagation:"true"},hashTypes:{"class":"STRING",value:"ID",name:"STRING","focus-out":"STRING",stopEnterKeyDownPropagation:"STRING"},hashContexts:{"class":a,value:a,name:a,"focus-out":a,stopEnterKeyDownPropagation:a},contexts:[],types:[],data:b},e?e.call(a,f):o.call(a,"gh-input",f)))),b.buffer.push("\r\n                <p>Recommended: <b>70</b> characters. You’ve used "),b.buffer.push(n((e=c["gh-count-down-characters"]||a&&a["gh-count-down-characters"],f={hash:{},hashTypes:{},hashContexts:{},contexts:[a,a],types:["ID","INTEGER"],data:b},e?e.call(a,"metaTitleScratch",70,f):o.call(a,"gh-count-down-characters","metaTitleScratch",70,f)))),b.buffer.push('</p>\r\n            </div>\r\n\r\n            <div class="form-group">\r\n                <label for="blog-title">Meta Description</label>\r\n                '),b.buffer.push(n((e=c["gh-textarea"]||a&&a["gh-textarea"],f={hash:{"class":"post-setting-meta-description",value:"metaDescriptionScratch",name:"post-setting-meta-description","focus-out":"setMetaDescription",stopEnterKeyDownPropagation:"true"},hashTypes:{"class":"STRING",value:"ID",name:"STRING","focus-out":"STRING",stopEnterKeyDownPropagation:"STRING"},hashContexts:{"class":a,value:a,name:a,"focus-out":a,stopEnterKeyDownPropagation:a},contexts:[],types:[],data:b},e?e.call(a,f):o.call(a,"gh-textarea",f)))),b.buffer.push("\r\n                <p>Recommended: <b>156</b> characters. You’ve used "),b.buffer.push(n((e=c["gh-count-down-characters"]||a&&a["gh-count-down-characters"],f={hash:{},hashTypes:{},hashContexts:{},contexts:[a,a],types:["ID","INTEGER"],data:b},e?e.call(a,"metaDescriptionScratch",156,f):o.call(a,"gh-count-down-characters","metaDescriptionScratch",156,f)))),b.buffer.push('</p>\r\n            </div>\r\n\r\n            <div class="form-group">\r\n                <label>Search Engine Result Preview</label>\r\n                <div class="seo-preview">\r\n                    <div class="seo-preview-title">'),d=c._triageMustache.call(a,"seoTitle",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('</div>\r\n                    <div class="seo-preview-link">'),d=c._triageMustache.call(a,"gh-blog-url",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("/"),d=c._triageMustache.call(a,"seoSlug",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),d=c["if"].call(a,"seoSlug",{hash:{},hashTypes:{},hashContexts:{},inverse:p.noop,fn:p.program(5,i,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('</div>\r\n                    <div class="seo-preview-description">'),d=c._triageMustache.call(a,"seoDescription",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</div>\r\n                </div>\r\n            </div>\r\n            </form>\r\n        </div>\r\n    "),g}function i(a,b){b.buffer.push("/")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var j,k,l,m="",n=this.escapeExpression,o=c.helperMissing,p=this,q="function",r=c.blockHelperMissing;return e.buffer.push('<div class="editor-cover" '),e.buffer.push(n(c.action.call(b,"closeRightOutlet",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push("></div>\r\n"),k=c["gh-tabs-manager"]||b&&b["gh-tabs-manager"],l={hash:{selected:"showSubview",id:"entry-controls","class":"right-outlet"},hashTypes:{selected:"STRING",id:"STRING","class":"STRING"},hashContexts:{selected:b,id:b,"class":b},inverse:p.noop,fn:p.program(1,f,e),contexts:[],types:[],data:e},j=k?k.call(b,l):o.call(b,"gh-tabs-manager",l),(j||0===j)&&e.buffer.push(j),e.buffer.push("\r\n"),m})}),define("ghost/templates/post-tags-input",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e="";return b.buffer.push("\r\n            "),d=c.view.call(a,"view.tagView",{hash:{tag:""},hashTypes:{tag:"ID"},hashContexts:{tag:a},inverse:l.noop,fn:l.program(2,g,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n        "),e}function g(a,b){var d,e="";return b.buffer.push("\r\n                "),d=c._triageMustache.call(a,"view.tag.name",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n            "),e}function h(a,b){var d,e="";return b.buffer.push("\r\n            "),d=c.view.call(a,"view.suggestionView",{hash:{suggestion:""},hashTypes:{suggestion:"ID"},hashContexts:{suggestion:a},inverse:l.noop,fn:l.program(5,i,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n        "),e}function i(a,b){var d,e="";return b.buffer.push('\r\n                <a href="javascript:void(0);">'),d=c._triageMustache.call(a,"view.suggestion.highlightedName",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</a>\r\n            "),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var j,k="",l=this,m=this.escapeExpression;return e.buffer.push('<div class="publish-bar-tags-icon">\r\n    <label class="tag-label icon-tag" for="tags" title="Tags">\r\n        <span class="hidden">Tags</span>\r\n    </label>\r\n</div>\r\n<div class="publish-bar-tags">\r\n    <div class="tags-wrapper tags">\r\n        '),j=c.each.call(b,"controller.tags",{hash:{},hashTypes:{},hashContexts:{},inverse:l.noop,fn:l.program(1,f,e),contexts:[b],types:["ID"],data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push('\r\n    </div>\r\n</div>\r\n<div class="publish-bar-tags-input">\r\n    <input type="hidden" class="tags-holder" id="tags-holder">\r\n    '),e.buffer.push(m(c.view.call(b,"view.tagInputView",{hash:{"class":"tag-input",id:"tags",value:"newTagText"},hashTypes:{"class":"STRING",id:"STRING",value:"ID"},hashContexts:{"class":b,id:b,value:b},contexts:[b],types:["ID"],data:e}))),e.buffer.push('\r\n    <ul class="suggestions dropdown-menu dropdown-triangle-bottom" '),e.buffer.push(m(c["bind-attr"].call(b,{hash:{style:"view.overlayStyles"},hashTypes:{style:"ID"},hashContexts:{style:b},contexts:[],types:[],data:e}))),e.buffer.push(">\r\n        "),j=c.each.call(b,"suggestions",{hash:{},hashTypes:{},hashContexts:{},inverse:l.noop,fn:l.program(4,h,e),contexts:[b],types:["ID"],data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push("\r\n    </ul>\r\n</div>"),k
  })}),define("ghost/templates/posts",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push('<span class="hidden">New Post</span>')}function g(a,b){var d,e="";return b.buffer.push('\r\n        <ol class="posts-list">\r\n            '),d=c.each.call(a,{hash:{itemController:"posts/post",itemView:"post-item-view",itemTagName:"li"},hashTypes:{itemController:"STRING",itemView:"STRING",itemTagName:"STRING"},hashContexts:{itemController:a,itemView:a,itemTagName:a},inverse:t.noop,fn:t.program(4,h,b),contexts:[],types:[],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n        </ol>\r\n        "),e}function h(a,b){var d,e,f,g="";return b.buffer.push("\r\n            "),e=c["link-to"]||a&&a["link-to"],f={hash:{"class":"permalink",title:"Edit this post"},hashTypes:{"class":"STRING",title:"STRING"},hashContexts:{"class":a,title:a},inverse:t.noop,fn:t.program(5,i,b),contexts:[a,a],types:["STRING","ID"],data:b},d=e?e.call(a,"posts.post","",f):s.call(a,"link-to","posts.post","",f),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n            "),g}function i(a,b){var d,e="";return b.buffer.push('\r\n            <h3 class="entry-title">'),d=c._triageMustache.call(a,"title",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('</h3>\r\n            <section class="entry-meta">\r\n                <span class="status">\r\n                    '),d=c["if"].call(a,"isPublished",{hash:{},hashTypes:{},hashContexts:{},inverse:t.program(11,m,b),fn:t.program(6,j,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n                </span>\r\n            </section>\r\n            "),e}function j(a,b){var d,e="";return b.buffer.push("\r\n                    "),d=c["if"].call(a,"page",{hash:{},hashTypes:{},hashContexts:{},inverse:t.program(9,l,b),fn:t.program(7,k,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n                    "),e}function k(a,b){b.buffer.push('\r\n                    <span class="page">Page</span>\r\n                    ')}function l(a,b){var d,e,f="";return b.buffer.push('\r\n                    <time datetime="'),b.buffer.push(r(c.unbound.call(a,"published_at",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}))),b.buffer.push('" class="date published">\r\n                        Published '),b.buffer.push(r((d=c["gh-format-timeago"]||a&&a["gh-format-timeago"],e={hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b},d?d.call(a,"published_at",e):s.call(a,"gh-format-timeago","published_at",e)))),b.buffer.push("\r\n                    </time>\r\n                    "),f}function m(a,b){b.buffer.push('\r\n                    <span class="draft">Draft</span>\r\n                    ')}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var n,o,p,q="",r=this.escapeExpression,s=c.helperMissing,t=this;return e.buffer.push('<header class="page-header">\r\n    <button class="menu-button js-menu-button" '),e.buffer.push(r(c.action.call(b,"toggleGlobalMobileNav",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push('><span class="sr-only">Menu</span></button>\r\n    <h2 class="page-title">Content</h2>\r\n</header>\r\n\r\n<div class="page-content">\r\n    <section class="content-list js-content-list">\r\n        <header class="floatingheader">\r\n            <section class="content-filter">\r\n                <small>All Posts</small>\r\n            </section>\r\n            '),o=c["link-to"]||b&&b["link-to"],p={hash:{"class":"btn btn-green",title:"New Post"},hashTypes:{"class":"STRING",title:"STRING"},hashContexts:{"class":b,title:b},inverse:t.noop,fn:t.program(1,f,e),contexts:[b],types:["STRING"],data:e},n=o?o.call(b,"editor.new",p):s.call(b,"link-to","editor.new",p),(n||0===n)&&e.buffer.push(n),e.buffer.push("\r\n        </header>\r\n        "),n=c.view.call(b,"paginated-scroll-box",{hash:{tagName:"section",classNames:"content-list-content"},hashTypes:{tagName:"STRING",classNames:"STRING"},hashContexts:{tagName:b,classNames:b},inverse:t.noop,fn:t.program(3,g,e),contexts:[b],types:["STRING"],data:e}),(n||0===n)&&e.buffer.push(n),e.buffer.push('\r\n    </section>\r\n    <section class="content-preview js-content-preview">\r\n        '),n=c._triageMustache.call(b,"outlet",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(n||0===n)&&e.buffer.push(n),e.buffer.push("\r\n    </section>\r\n</div>\r\n"),q})}),define("ghost/templates/posts/index",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f,h="";return b.buffer.push('\r\n<div class="no-posts">\r\n    <h3>You Haven\'t Written Any Posts Yet!</h3>\r\n    '),e=c["link-to"]||a&&a["link-to"],f={hash:{},hashTypes:{},hashContexts:{},inverse:j.noop,fn:j.program(2,g,b),contexts:[a],types:["STRING"],data:b},d=e?e.call(a,"editor.new",f):k.call(a,"link-to","editor.new",f),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n</div>\r\n"),h}function g(a,b){b.buffer.push('<button type="button" class="btn btn-green btn-lg" title="New Post">Write a new Post</button>')}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var h,i="",j=this,k=c.helperMissing;return h=c["if"].call(b,"noPosts",{hash:{},hashTypes:{},hashContexts:{},inverse:j.noop,fn:j.program(1,f,e),contexts:[b],types:["ID"],data:e}),(h||0===h)&&e.buffer.push(h),e.buffer.push("\r\n"),i})}),define("ghost/templates/posts/post",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("Back")}function g(a,b){b.buffer.push("Published")}function h(a,b){b.buffer.push("Written")}function i(a,b){var d;d=c._triageMustache.call(a,"author.name",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),b.buffer.push(d||0===d?d:"")}function j(a,b){var d;d=c._triageMustache.call(a,"author.email",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),b.buffer.push(d||0===d?d:"")}function k(a,b){b.buffer.push(" Edit")}function l(a,b){var d,e,f,g="";return b.buffer.push('\r\n    <div class="wrapper">\r\n        <h1>'),d=c._triageMustache.call(a,"title",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</h1>\r\n        "),b.buffer.push(r((e=c["gh-format-html"]||a&&a["gh-format-html"],f={hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b},e?e.call(a,"html",f):q.call(a,"gh-format-html","html",f)))),b.buffer.push("\r\n    </div>\r\n"),g}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var m,n,o,p="",q=c.helperMissing,r=this.escapeExpression,s=this;return e.buffer.push('<header class="post-preview-header clearfix">\r\n    '),n=c["link-to"]||b&&b["link-to"],o={hash:{tagName:"button","class":"btn btn-default btn-back"},hashTypes:{tagName:"STRING","class":"STRING"},hashContexts:{tagName:b,"class":b},inverse:s.noop,fn:s.program(1,f,e),contexts:[b],types:["STRING"],data:e},m=n?n.call(b,"posts",o):q.call(b,"link-to","posts",o),(m||0===m)&&e.buffer.push(m),e.buffer.push('\r\n    <h2 class="page-title">Preview</h2>\r\n    <button type="button" '),e.buffer.push(r(c["bind-attr"].call(b,{hash:{"class":"featured:featured:unfeatured"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},contexts:[],types:[],data:e}))),e.buffer.push(' title="Feature this post" '),e.buffer.push(r(c.action.call(b,"toggleFeatured",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push('>\r\n        <span class="hidden">Star</span>\r\n    </button>\r\n    <small class="post-published-by">\r\n        <span class="status">'),m=c["if"].call(b,"isPublished",{hash:{},hashTypes:{},hashContexts:{},inverse:s.program(5,h,e),fn:s.program(3,g,e),contexts:[b],types:["ID"],data:e}),(m||0===m)&&e.buffer.push(m),e.buffer.push('</span>\r\n        <span class="normal">by</span>\r\n        <span class="author">'),m=c["if"].call(b,"author.name",{hash:{},hashTypes:{},hashContexts:{},inverse:s.program(9,j,e),fn:s.program(7,i,e),contexts:[b],types:["ID"],data:e}),(m||0===m)&&e.buffer.push(m),e.buffer.push('</span>\r\n    </small>\r\n    <section class="post-controls">\r\n        '),n=c["link-to"]||b&&b["link-to"],o={hash:{"class":"btn btn-default post-edit"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},inverse:s.noop,fn:s.program(11,k,e),contexts:[b,b],types:["STRING","ID"],data:e},m=n?n.call(b,"editor.edit","",o):q.call(b,"link-to","editor.edit","",o),(m||0===m)&&e.buffer.push(m),e.buffer.push("\r\n    </section>\r\n</header>\r\n\r\n"),m=c.view.call(b,"content-preview-content-view",{hash:{tagName:"section"},hashTypes:{tagName:"STRING"},hashContexts:{tagName:b},inverse:s.noop,fn:s.program(13,l,e),contexts:[b],types:["STRING"],data:e}),(m||0===m)&&e.buffer.push(m),e.buffer.push("\r\n"),p})}),define("ghost/templates/reset",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h="",i=this.escapeExpression,j=c.helperMissing;return e.buffer.push('<section class="reset-box js-reset-box fade-in">\r\n    <form id="reset" class="reset-form" method="post" novalidate="novalidate" '),e.buffer.push(i(c.action.call(b,"submit",{hash:{on:"submit"},hashTypes:{on:"STRING"},hashContexts:{on:b},contexts:[b],types:["STRING"],data:e}))),e.buffer.push('>\r\n        <div class="password-wrap">\r\n            '),e.buffer.push(i((f=c.input||b&&b.input,g={hash:{value:"passwords.newPassword","class":"password",type:"password",placeholder:"Password",name:"newpassword",autofocus:"autofocus"},hashTypes:{value:"ID","class":"STRING",type:"STRING",placeholder:"STRING",name:"STRING",autofocus:"STRING"},hashContexts:{value:b,"class":b,type:b,placeholder:b,name:b,autofocus:b},contexts:[],types:[],data:e},f?f.call(b,g):j.call(b,"input",g)))),e.buffer.push('\r\n        </div>\r\n        <div class="password-wrap">\r\n            '),e.buffer.push(i((f=c.input||b&&b.input,g={hash:{value:"passwords.ne2Password","class":"password",type:"password",placeholder:"Confirm Password",name:"ne2password"},hashTypes:{value:"ID","class":"STRING",type:"STRING",placeholder:"STRING",name:"STRING"},hashContexts:{value:b,"class":b,type:b,placeholder:b,name:b},contexts:[],types:[],data:e},f?f.call(b,g):j.call(b,"input",g)))),e.buffer.push('\r\n        </div>\r\n        <button class="btn btn-blue" type="submit" '),e.buffer.push(i(c["bind-attr"].call(b,{hash:{disabled:"submitButtonDisabled"},hashTypes:{disabled:"STRING"},hashContexts:{disabled:b},contexts:[],types:[],data:e}))),e.buffer.push(">Reset Password</button>\r\n    </form>\r\n</section>\r\n"),h})}),define("ghost/templates/settings",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f,h="";return b.buffer.push("\r\n                "),d=c.unless.call(a,"session.user.isEditor",{hash:{},hashTypes:{},hashContexts:{},inverse:n.noop,fn:n.program(2,g,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n\r\n                "),b.buffer.push(m((e=c["gh-activating-list-item"]||a&&a["gh-activating-list-item"],f={hash:{route:"settings.users",title:"Users",classNames:"settings-menu-users icon-users"},hashTypes:{route:"STRING",title:"STRING",classNames:"STRING"},hashContexts:{route:a,title:a,classNames:a},contexts:[],types:[],data:b},e?e.call(a,f):l.call(a,"gh-activating-list-item",f)))),b.buffer.push("\r\n\r\n            "),h}function g(a,b){var d,e,f="";return b.buffer.push("\r\n                    "),b.buffer.push(m((d=c["gh-activating-list-item"]||a&&a["gh-activating-list-item"],e={hash:{route:"settings.general",title:"General",classNames:"settings-menu-general icon-settings"},hashTypes:{route:"STRING",title:"STRING",classNames:"STRING"},hashContexts:{route:a,title:a,classNames:a},contexts:[],types:[],data:b},d?d.call(a,e):l.call(a,"gh-activating-list-item",e)))),b.buffer.push("\r\n                "),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var h,i,j,k="",l=c.helperMissing,m=this.escapeExpression,n=this;return e.buffer.push('<header class="page-header">\r\n    <button class="menu-button js-menu-button" '),e.buffer.push(m(c.action.call(b,"toggleGlobalMobileNav",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push('><span class="sr-only">Menu</span></button>\r\n    <h2 class="page-title">Settings</h2>\r\n</header>\r\n\r\n<div class="page-content">\r\n    <nav class="settings-menu js-settings-menu">\r\n        <ul>\r\n            '),h=c.unless.call(b,"session.user.isAuthor",{hash:{},hashTypes:{},hashContexts:{},inverse:n.noop,fn:n.program(1,f,e),contexts:[b],types:["ID"],data:e}),(h||0===h)&&e.buffer.push(h),e.buffer.push("\r\n\r\n            "),e.buffer.push(m((i=c["gh-activating-list-item"]||b&&b["gh-activating-list-item"],j={hash:{route:"settings.about",title:"About",classNames:"settings-menu-about icon-pacman"},hashTypes:{route:"STRING",title:"STRING",classNames:"STRING"},hashContexts:{route:b,title:b,classNames:b},contexts:[],types:[],data:e},i?i.call(b,j):l.call(b,"gh-activating-list-item",j)))),e.buffer.push("\r\n        </ul>\r\n    </nav>\r\n\r\n    "),h=c._triageMustache.call(b,"outlet",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(h||0===h)&&e.buffer.push(h),e.buffer.push("\r\n</div>\r\n"),k})}),define("ghost/templates/settings/about",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("Back")}function g(a,b){var d;d=c._triageMustache.call(a,"mail",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),b.buffer.push(d||0===d?d:"")}function h(a,b){b.buffer.push("Native")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var i,j,k,l="",m=this,n=c.helperMissing,o=this.escapeExpression;return e.buffer.push('<header class="settings-view-header">\r\n    <h2 class="page-title">About</h2>\r\n    <div class="js-settings-header-inner settings-header-inner">\r\n        '),j=c["link-to"]||b&&b["link-to"],k={hash:{"class":"btn btn-default btn-back"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},inverse:m.noop,fn:m.program(1,f,e),contexts:[b],types:["STRING"],data:e},i=j?j.call(b,"settings",k):n.call(b,"link-to","settings",k),(i||0===i)&&e.buffer.push(i),e.buffer.push('\r\n    </div>\r\n</header>\r\n\r\n<section class="content settings-about">\r\n    <section class="about-ghost-intro">\r\n        <h1>\r\n            <span class="ghost_logo">\r\n                <span class="hidden">Ghost</span>\r\n            </span>\r\n            <span class="version blue">v'),i=c._triageMustache.call(b,"version",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('</span>\r\n        </h1>\r\n        <p>A free, open, simple publishing platform</p>\r\n\r\n        <div class="about-environment-help clearfix">\r\n            <div class="about-environment">\r\n                <dl>\r\n                    <dt>Version:</dt>\r\n                    <dd class="about-environment-detail">'),i=c._triageMustache.call(b,"version",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('</dd>\r\n                    <dt>Environment:</dt>\r\n                    <dd class="about-environment-detail">'),i=c._triageMustache.call(b,"environment",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('</dd>\r\n                    <dt>Database:</dt>\r\n                    <dd class="about-environment-detail">'),i=c._triageMustache.call(b,"database",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('</dd>\r\n                    <dt>Mail:</dt>\r\n                    <dd class="about-environment-detail">'),i=c["if"].call(b,"mail",{hash:{},hashTypes:{},hashContexts:{},inverse:m.program(5,h,e),fn:m.program(3,g,e),contexts:[b],types:["ID"],data:e}),(i||0===i)&&e.buffer.push(i),e.buffer.push('</dd>\r\n                </dl>\r\n            </div>\r\n            <div class="about-help">\r\n                <a href="http://support.ghost.org" class="btn">User Documentation</a>\r\n                <a href="https://ghost.org/forum/" class="btn">Get Help With Ghost</a>\r\n            </div>\r\n        </div>\r\n    </section>\r\n\r\n    <section class="about-credits">\r\n        <h1>The People Who Made it Possible</h1>\r\n\r\n        <ul class="top-contributors clearfix">\r\n            '),e.buffer.push(o((j=c.partial||b&&b.partial,k={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e},j?j.call(b,"contributors",k):n.call(b,"partial","contributors",k)))),e.buffer.push('\r\n        </ul>\r\n\r\n        <p class="about-contributors-info">Ghost is built by an incredible group of contributors from all over the world. Here are just a few of the people who helped create the version you’re using right now.</p>\r\n\r\n        <a href="https://ghost.org/about/contribute/" class="about-get-involved btn-blue btn-lg btn">Find out how you can get involved</a>\r\n\r\n        <p class="about-copyright">\r\n            Copyright 2013 - 2014 Ghost Foundation, released under the <a href="https://github.com/TryGhost/Ghost/blob/master/LICENSE">MIT license</a>.\r\n            <br>\r\n            <a href="https://ghost.org/">Ghost</a> is a trademark of the <a href="https://ghost.org/about/">Ghost Foundation</a>.\r\n        </p>\r\n    </section>\r\n</section>\r\n'),l})}),define("ghost/templates/settings/apps",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("Back")}function g(a,b){var d,e="";return b.buffer.push("\r\n        <tr>\r\n            <td>\r\n                "),d=c["if"].call(a,"package",{hash:{},hashTypes:{},hashContexts:{},inverse:n.program(6,i,b),fn:n.program(4,h,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('\r\n            </td>\r\n            <td>\r\n                <button type="button" '),b.buffer.push(o(c.action.call(a,"toggleApp","",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a],types:["ID","ID"],data:b}))),b.buffer.push(" "),b.buffer.push(o(c["bind-attr"].call(a,{hash:{"class":":btn :js-button-active activeClass:btn-red inactiveClass:btn-green activeClass:js-button-deactivate"},hashTypes:{"class":"STRING"},hashContexts:{"class":a},contexts:[],types:[],data:b}))),b.buffer.push(">\r\n                    "),d=c._triageMustache.call(a,"buttonText",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n                </button>\r\n            </td>\r\n        </tr>\r\n        "),e}function h(a,b){var d,e="";return d=c._triageMustache.call(a,"package.name",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push(" - "),d=c._triageMustache.call(a,"package.version",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),e}function i(a,b){var d,e="";return d=c._triageMustache.call(a,"name",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push(" - package.json missing :("),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var j,k,l,m="",n=this,o=this.escapeExpression,p=c.helperMissing;return e.buffer.push('<header class="settings-view-header">\r\n    '),k=c["link-to"]||b&&b["link-to"],l={hash:{"class":"btn btn-default"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},inverse:n.noop,fn:n.program(1,f,e),contexts:[b],types:["STRING"],data:e},j=k?k.call(b,"settings",l):p.call(b,"link-to","settings",l),(j||0===j)&&e.buffer.push(j),e.buffer.push('\r\n    <h2 class="title">Apps</h2>\r\n</header>\r\n\r\n<section class="content settings-apps">\r\n    <table class="js-apps">\r\n        <thead>\r\n            <th>App name</th>\r\n            <th>Status</th>\r\n        </thead>\r\n        <tbody>\r\n        '),j=c.each.call(b,{hash:{itemController:"settings/app"},hashTypes:{itemController:"STRING"},hashContexts:{itemController:b},inverse:n.noop,fn:n.program(3,g,e),contexts:[],types:[],data:e}),(j||0===j)&&e.buffer.push(j),e.buffer.push("\r\n        </tbody>\r\n    </table>\r\n</section>\r\n"),m})}),define("ghost/templates/settings/general",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("Back")}function g(a,b){var d="";return b.buffer.push('\r\n                <button type="button" class="js-modal-logo" '),b.buffer.push(o(c.action.call(a,"openModal","upload","","logo",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a,a,a],types:["STRING","STRING","ID","STRING"],data:b}))),b.buffer.push('><img id="blog-logo" '),b.buffer.push(o(c["bind-attr"].call(a,{hash:{src:"logo"},hashTypes:{src:"ID"},hashContexts:{src:a},contexts:[],types:[],data:b}))),b.buffer.push(' alt="logo"></button>\r\n            '),d}function h(a,b){var d="";return b.buffer.push('\r\n                <button type="button" class="btn btn-green js-modal-logo" '),b.buffer.push(o(c.action.call(a,"openModal","upload","","logo",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a,a,a],types:["STRING","STRING","ID","STRING"],data:b}))),b.buffer.push(">Upload Image</button>\r\n            "),d}function i(a,b){var d="";return b.buffer.push('\r\n                <button type="button" class="js-modal-cover" '),b.buffer.push(o(c.action.call(a,"openModal","upload","","cover",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a,a,a],types:["STRING","STRING","ID","STRING"],data:b}))),b.buffer.push('><img id="blog-cover" '),b.buffer.push(o(c["bind-attr"].call(a,{hash:{src:"cover"},hashTypes:{src:"ID"},hashContexts:{src:a},contexts:[],types:[],data:b}))),b.buffer.push(' alt="cover photo"></button>\r\n            '),d}function j(a,b){var d="";return b.buffer.push('\r\n                <button type="button" class="btn btn-green js-modal-cover" '),b.buffer.push(o(c.action.call(a,"openModal","upload","","cover",{hash:{},hashTypes:{},hashContexts:{},contexts:[a,a,a,a],types:["STRING","STRING","ID","STRING"],data:b}))),b.buffer.push(">Upload Image</button>\r\n            "),d}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var k,l,m,n="",o=this.escapeExpression,p=this,q=c.helperMissing;return e.buffer.push('<header class="settings-view-header">\r\n    '),l=c["link-to"]||b&&b["link-to"],m={hash:{"class":"btn btn-default btn-back"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},inverse:p.noop,fn:p.program(1,f,e),contexts:[b],types:["STRING"],data:e},k=l?l.call(b,"settings",m):q.call(b,"link-to","settings",m),(k||0===k)&&e.buffer.push(k),e.buffer.push('\r\n    <h2 class="page-title">General</h2>\r\n    <section class="page-actions">\r\n        <button type="button" class="btn btn-blue" '),e.buffer.push(o(c.action.call(b,"save",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push('>Save</button>\r\n    </section>\r\n</header>\r\n\r\n<section class="content settings-general">\r\n    <form id="settings-general" novalidate="novalidate">\r\n        <fieldset>\r\n\r\n            <div class="form-group">\r\n                <label for="blog-title">Blog Title</label>\r\n                '),e.buffer.push(o((l=c.input||b&&b.input,m={hash:{id:"blog-title",name:"general[title]",type:"text",value:"title"},hashTypes:{id:"STRING",name:"STRING",type:"STRING",value:"ID"},hashContexts:{id:b,name:b,type:b,value:b},contexts:[],types:[],data:e},l?l.call(b,m):q.call(b,"input",m)))),e.buffer.push('\r\n                <p>The name of your blog</p>\r\n            </div>\r\n\r\n            <div class="form-group description-container">\r\n                <label for="blog-description">Blog Description</label>\r\n                '),e.buffer.push(o((l=c.textarea||b&&b.textarea,m={hash:{id:"blog-description",name:"general[description]",value:"description"},hashTypes:{id:"STRING",name:"STRING",value:"ID"},hashContexts:{id:b,name:b,value:b},contexts:[],types:[],data:e},l?l.call(b,m):q.call(b,"textarea",m)))),e.buffer.push("\r\n                <p>\r\n                    Describe what your blog is about\r\n                    "),e.buffer.push(o((l=c["gh-count-characters"]||b&&b["gh-count-characters"],m={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e},l?l.call(b,"description",m):q.call(b,"gh-count-characters","description",m)))),e.buffer.push('\r\n                </p>\r\n\r\n            </div>\r\n        </fieldset>\r\n\r\n        <div class="form-group">\r\n            <label for="blog-logo">Blog Logo</label>\r\n            '),k=c["if"].call(b,"logo",{hash:{},hashTypes:{},hashContexts:{},inverse:p.program(5,h,e),fn:p.program(3,g,e),contexts:[b],types:["ID"],data:e}),(k||0===k)&&e.buffer.push(k),e.buffer.push('\r\n            <p>Display a sexy logo for your publication</p>\r\n        </div>\r\n\r\n        <div class="form-group">\r\n            <label for="blog-cover">Blog Cover</label>\r\n            '),k=c["if"].call(b,"cover",{hash:{},hashTypes:{},hashContexts:{},inverse:p.program(9,j,e),fn:p.program(7,i,e),contexts:[b],types:["ID"],data:e}),(k||0===k)&&e.buffer.push(k),e.buffer.push('\r\n            <p>Display a cover image on your site</p>\r\n        </div>\r\n\r\n        <fieldset>\r\n            <div class="form-group">\r\n                <label for="email-address">Email Address</label>\r\n                '),e.buffer.push(o((l=c.input||b&&b.input,m={hash:{id:"email-address",name:"general[email-address]",type:"email",value:"email",autocapitalize:"off",autocorrect:"off"},hashTypes:{id:"STRING",name:"STRING",type:"STRING",value:"ID",autocapitalize:"STRING",autocorrect:"STRING"},hashContexts:{id:b,name:b,type:b,value:b,autocapitalize:b,autocorrect:b},contexts:[],types:[],data:e},l?l.call(b,m):q.call(b,"input",m)))),e.buffer.push('\r\n                <p>Address to use for admin notifications</p>\r\n            </div>\r\n\r\n            <div class="form-group">\r\n                <label for="postsPerPage">Posts per page</label>\r\n                '),e.buffer.push(o((l=c.input||b&&b.input,m={hash:{id:"postsPerPage",name:"general[postsPerPage]","focus-out":"checkPostsPerPage",value:"postsPerPage",min:"1",max:"1000",type:"number"},hashTypes:{id:"STRING",name:"STRING","focus-out":"STRING",value:"ID",min:"STRING",max:"STRING",type:"STRING"},hashContexts:{id:b,name:b,"focus-out":b,value:b,min:b,max:b,type:b},contexts:[],types:[],data:e},l?l.call(b,m):q.call(b,"input",m)))),e.buffer.push('\r\n                <p>How many posts should be displayed on each page</p>\r\n            </div>\r\n\r\n            <div class="form-group for-checkbox">\r\n                <label for="permalinks">Dated Permalinks</label>\r\n                <label class="checkbox" for="permalinks">\r\n                    '),e.buffer.push(o((l=c.input||b&&b.input,m={hash:{id:"permalinks",name:"general[permalinks]",type:"checkbox",checked:"isDatedPermalinks"},hashTypes:{id:"STRING",name:"STRING",type:"STRING",checked:"ID"},hashContexts:{id:b,name:b,type:b,checked:b},contexts:[],types:[],data:e},l?l.call(b,m):q.call(b,"input",m)))),e.buffer.push('\r\n                    <span class="input-toggle-component"></span>\r\n                    <p>Include the date in your post URLs</p>\r\n                </label>\r\n            </div>\r\n\r\n            <div class="form-group for-select">\r\n                <label for="activeTheme">Theme</label>\r\n                <span class="gh-select" '),e.buffer.push(o(c["bind-attr"].call(b,{hash:{"data-select-text":"selectedTheme.label"},hashTypes:{"data-select-text":"ID"},hashContexts:{"data-select-text":b},contexts:[],types:[],data:e}))),e.buffer.push(' tabindex="0">\r\n                   '),e.buffer.push(o(c.view.call(b,"Ember.Select",{hash:{id:"activeTheme",name:"general[activeTheme]",content:"themes",optionValuePath:"content.name",optionLabelPath:"content.label",value:"activeTheme",selection:"selectedTheme"},hashTypes:{id:"STRING",name:"STRING",content:"ID",optionValuePath:"STRING",optionLabelPath:"STRING",value:"ID",selection:"ID"},hashContexts:{id:b,name:b,content:b,optionValuePath:b,optionLabelPath:b,value:b,selection:b},contexts:[b],types:["ID"],data:e}))),e.buffer.push("\r\n               </span>\r\n                <p>Select a theme for your blog</p>\r\n            </div>\r\n        </fieldset>\r\n    </form>\r\n</section>"),n})}),define("ghost/templates/settings/users",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g="";return e.buffer.push("\r\n"),f=c._triageMustache.call(b,"outlet",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(f||0===f)&&e.buffer.push(f),e.buffer.push("\r\n"),g})}),define("ghost/templates/settings/users/index",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("Back")}function g(a,b){var d,e="";return b.buffer.push("\r\n    "),d=c["if"].call(a,"invitedUsers",{hash:{},hashTypes:{},hashContexts:{},inverse:t.noop,fn:t.program(4,h,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('\r\n\r\n    <section class="object-list active-users">\r\n\r\n        <h4 class="object-list-title">Active users</h4>\r\n\r\n        '),d=c.each.call(a,"activeUsers",{hash:{itemController:"settings/users/user"},hashTypes:{itemController:"STRING"},hashContexts:{itemController:a},inverse:t.noop,fn:t.program(10,l,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n\r\n    </section>\r\n"),e}function h(a,b){var d,e="";return b.buffer.push('\r\n\r\n        <section class="object-list invited-users">\r\n\r\n            <h4 class="object-list-title">Invited users</h4>\r\n\r\n            '),d=c.each.call(a,"invitedUsers",{hash:{itemController:"settings/users/user"},hashTypes:{itemController:"STRING"},hashContexts:{itemController:a},inverse:t.noop,fn:t.program(5,i,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n\r\n        </section>\r\n\r\n    "),e}function i(a,b){var d,e="";return b.buffer.push('\r\n                <div class="object-list-item">\r\n                    <span class="object-list-item-icon icon-mail">ic</span>\r\n\r\n                    <div class="object-list-item-body">\r\n                        <span class="name">'),d=c._triageMustache.call(a,"email",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</span><br>\r\n                            "),d=c["if"].call(a,"pending",{hash:{},hashTypes:{},hashContexts:{},inverse:t.program(8,k,b),fn:t.program(6,j,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('\r\n                    </div>\r\n                    <aside class="object-list-item-aside">\r\n                        <a class="object-list-action" href="#" '),b.buffer.push(u(c.action.call(a,"revoke",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["STRING"],data:b}))),b.buffer.push('>Revoke</a>\r\n                        <a class="object-list-action" href="#" '),b.buffer.push(u(c.action.call(a,"resend",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["STRING"],data:b}))),b.buffer.push(">Resend</a>\r\n                    </aside>\r\n                </div>\r\n            "),e}function j(a,b){b.buffer.push('\r\n                                <span class="red">Invitation not sent - please try again</span>\r\n                            ')
  }function k(a,b){var d,e="";return b.buffer.push('\r\n                                <span class="description">Invitation sent: '),d=c._triageMustache.call(a,"created_at",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</span>\r\n                            "),e}function l(a,b){var d,e,f,g="";return b.buffer.push("\r\n            "),e=c["link-to"]||a&&a["link-to"],f={hash:{"class":"object-list-item"},hashTypes:{"class":"STRING"},hashContexts:{"class":a},inverse:t.noop,fn:t.program(11,m,b),contexts:[a,a],types:["STRING","ID"],data:b},d=e?e.call(a,"settings.users.user","",f):v.call(a,"link-to","settings.users.user","",f),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n        "),g}function m(a,b){var d,e="";return b.buffer.push('\r\n                <span class="object-list-item-figure" '),b.buffer.push(u(c["bind-attr"].call(a,{hash:{style:"image"},hashTypes:{style:"ID"},hashContexts:{style:a},contexts:[],types:[],data:b}))),b.buffer.push('>\r\n                    <span class="hidden">Photo of '),b.buffer.push(u(c.unbound.call(a,"name",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}))),b.buffer.push('</span>\r\n                </span>\r\n\r\n                <div class="object-list-item-body">\r\n                    <span class="name">\r\n                        '),d=c._triageMustache.call(a,"name",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push('\r\n                    </span>\r\n                    <br>\r\n                    <span class="description">Last seen: '),b.buffer.push(u(c.unbound.call(a,"last_login",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}))),b.buffer.push('</span>\r\n                </div>\r\n                <aside class="object-list-item-aside">\r\n                    '),d=c.unless.call(a,"isAuthor",{hash:{},hashTypes:{},hashContexts:{},inverse:t.noop,fn:t.program(12,n,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n                </aside>\r\n            "),e}function n(a,b){var d,e="";return b.buffer.push("\r\n                        "),d=c.each.call(a,"roles",{hash:{},hashTypes:{},hashContexts:{},inverse:t.noop,fn:t.program(13,o,b),contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n                    "),e}function o(a,b){var d,e="";return b.buffer.push('\r\n                            <span class="role-label '),b.buffer.push(u(c.unbound.call(a,"lowerCaseName",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}))),b.buffer.push('">'),d=c._triageMustache.call(a,"name",{hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["ID"],data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("</span>\r\n                        "),e}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var p,q,r,s="",t=this,u=this.escapeExpression,v=c.helperMissing;return e.buffer.push("<script>\r\n$(document).ready(function() {\r\n    $('body').addClass('settings-view');\r\n});\r\n</script>\r\n\r\n<header class=\"settings-view-header\">\r\n    "),q=c["link-to"]||b&&b["link-to"],r={hash:{"class":"btn btn-default btn-back"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},inverse:t.noop,fn:t.program(1,f,e),contexts:[b],types:["STRING"],data:e},p=q?q.call(b,"settings",r):v.call(b,"link-to","settings",r),(p||0===p)&&e.buffer.push(p),e.buffer.push('\r\n    <h2 class="page-title">Users</h2>\r\n    <section class="page-actions">\r\n        <button class="btn btn-green" '),e.buffer.push(u(c.action.call(b,"openModal","invite-new-user",{hash:{},hashTypes:{},hashContexts:{},contexts:[b,b],types:["STRING","STRING"],data:e}))),e.buffer.push(" >New&nbsp;User</button>\r\n    </section>\r\n</header>\r\n\r\n"),p=c.view.call(b,"settings/users/users-list-view",{hash:{tagName:"section","class":"content settings-users"},hashTypes:{tagName:"STRING","class":"STRING"},hashContexts:{tagName:b,"class":b},inverse:t.noop,fn:t.program(3,g,e),contexts:[b],types:["STRING"],data:e}),(p||0===p)&&e.buffer.push(p),e.buffer.push("\r\n"),s})}),define("ghost/templates/settings/users/user",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f,h="";return b.buffer.push("\r\n        "),e=c["link-to"]||a&&a["link-to"],f={hash:{"class":"btn btn-default btn-back",tagName:"button"},hashTypes:{"class":"STRING",tagName:"STRING"},hashContexts:{"class":a,tagName:a},inverse:p.noop,fn:p.program(2,g,b),contexts:[a],types:["STRING"],data:b},d=e?e.call(a,"settings.users",f):q.call(a,"link-to","settings.users",f),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n    "),h}function g(a,b){b.buffer.push('<i class="icon-chevron-left"></i>Users')}function h(a,b){var d,e,f,g="";return b.buffer.push('\r\n            <span class="dropdown">\r\n                '),e=c["gh-popover-button"]||a&&a["gh-popover-button"],f={hash:{popoverName:"user-actions-menu",classNames:"btn btn-default only-has-icon user-actions-cog",title:"User Actions"},hashTypes:{popoverName:"STRING",classNames:"STRING",title:"STRING"},hashContexts:{popoverName:a,classNames:a,title:a},inverse:p.noop,fn:p.program(5,i,b),contexts:[],types:[],data:b},d=e?e.call(a,f):q.call(a,"gh-popover-button",f),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n                "),e=c["gh-popover"]||a&&a["gh-popover"],f={hash:{name:"user-actions-menu",tagName:"ul",classNames:"user-actions-menu dropdown-menu dropdown-triangle-top-right"},hashTypes:{name:"STRING",tagName:"STRING",classNames:"STRING"},hashContexts:{name:a,tagName:a,classNames:a},inverse:p.noop,fn:p.program(7,j,b),contexts:[],types:[],data:b},d=e?e.call(a,f):q.call(a,"gh-popover",f),(d||0===d)&&b.buffer.push(d),b.buffer.push("\r\n            </span>\r\n        "),g}function i(a,b){b.buffer.push('\r\n                    <i class="icon-settings"></i>\r\n                    <span class="hidden">User Settings</span>\r\n                ')}function j(a,b){var d,e,f="";return b.buffer.push("\r\n                    "),b.buffer.push(r((d=c.partial||a&&a.partial,e={hash:{},hashTypes:{},hashContexts:{},contexts:[a],types:["STRING"],data:b},d?d.call(a,"user-actions-menu",e):q.call(a,"partial","user-actions-menu",e)))),b.buffer.push("\r\n                "),f}function k(a,b){var d,e,f="";return b.buffer.push('\r\n        <div class="form-group">\r\n            <label for="user-role">Role</label>\r\n            '),b.buffer.push(r((d=c["gh-role-selector"]||a&&a["gh-role-selector"],e={hash:{initialValue:"role",onChange:"changeRole",selectId:"user-role"},hashTypes:{initialValue:"ID",onChange:"STRING",selectId:"STRING"},hashContexts:{initialValue:a,onChange:a,selectId:a},contexts:[],types:[],data:b},d?d.call(a,e):q.call(a,"gh-role-selector",e)))),b.buffer.push("\r\n            <p>What permissions should this user have?</p>\r\n        </div>\r\n        "),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var l,m,n,o="",p=this,q=c.helperMissing,r=this.escapeExpression;return e.buffer.push('<header class="settings-subview-header">\r\n    '),l=c.unless.call(b,"session.user.isAuthor",{hash:{},hashTypes:{},hashContexts:{},inverse:p.noop,fn:p.program(1,f,e),contexts:[b],types:["ID"],data:e}),(l||0===l)&&e.buffer.push(l),e.buffer.push('\r\n    <h2 class="page-title">'),l=c._triageMustache.call(b,"user.name",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(l||0===l)&&e.buffer.push(l),e.buffer.push('</h2>\r\n    <section class="page-actions">\r\n        '),l=c["if"].call(b,"view.userActionsAreVisible",{hash:{},hashTypes:{},hashContexts:{},inverse:p.noop,fn:p.program(4,h,e),contexts:[b],types:["ID"],data:e}),(l||0===l)&&e.buffer.push(l),e.buffer.push('\r\n\r\n        <button class="btn btn-blue" '),e.buffer.push(r(c.action.call(b,"save",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push('>Save</button>\r\n    </section>\r\n</header>\r\n\r\n<figure class="user-cover" '),e.buffer.push(r(c["bind-attr"].call(b,{hash:{style:"cover"},hashTypes:{style:"ID"},hashContexts:{style:b},contexts:[],types:[],data:e}))),e.buffer.push('>\r\n    <button class="btn btn-default user-cover-edit js-modal-cover" '),e.buffer.push(r(c.action.call(b,"openModal","upload","user","cover",{hash:{},hashTypes:{},hashContexts:{},contexts:[b,b,b,b],types:["STRING","STRING","ID","STRING"],data:e}))),e.buffer.push('>Change Cover</button>\r\n</figure>\r\n\r\n<form class="user-profile" novalidate="novalidate" autocomplete="off">\r\n\r\n    \r\n    <input style="display:none;" type="text" name="fakeusernameremembered"/>\r\n    <input style="display:none;" type="password" name="fakepasswordremembered"/>\r\n\r\n    <fieldset class="user-details-top">\r\n\r\n        <figure class="user-image">\r\n            <div id="user-image" class="img" '),e.buffer.push(r(c["bind-attr"].call(b,{hash:{style:"image"},hashTypes:{style:"ID"},hashContexts:{style:b},contexts:[],types:[],data:e}))),e.buffer.push(' href="#"><span class="hidden">'),l=c._triageMustache.call(b,"name",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(l||0===l)&&e.buffer.push(l),e.buffer.push('"s Picture</span></div>\r\n            <button type="button" '),e.buffer.push(r(c.action.call(b,"openModal","upload","user","image",{hash:{},hashTypes:{},hashContexts:{},contexts:[b,b,b,b],types:["STRING","STRING","ID","STRING"],data:e}))),e.buffer.push(' class="edit-user-image js-modal-image">Edit Picture</button>\r\n        </figure>\r\n\r\n        <div class="form-group">\r\n            <label for="user-name">Full Name</label>\r\n            '),e.buffer.push(r((m=c.input||b&&b.input,n={hash:{value:"user.name",id:"user-name","class":"user-name",placeholder:"Full Name",autocorrect:"off"},hashTypes:{value:"ID",id:"STRING","class":"STRING",placeholder:"STRING",autocorrect:"STRING"},hashContexts:{value:b,id:b,"class":b,placeholder:b,autocorrect:b},contexts:[],types:[],data:e},m?m.call(b,n):q.call(b,"input",n)))),e.buffer.push('\r\n            <p>Use your real name so people can recognise you</p>\r\n        </div>\r\n\r\n    </fieldset>\r\n\r\n    <fieldset class="user-details-bottom">\r\n\r\n        <div class="form-group">\r\n            <label for="user-slug">Slug</label>\r\n            '),e.buffer.push(r((m=c["gh-input"]||b&&b["gh-input"],n={hash:{"class":"user-name",id:"user-slug",value:"slugValue",name:"user","focus-out":"updateSlug",placeholder:"Slug",selectOnClick:"true",autocorrect:"off"},hashTypes:{"class":"STRING",id:"STRING",value:"ID",name:"STRING","focus-out":"STRING",placeholder:"STRING",selectOnClick:"STRING",autocorrect:"STRING"},hashContexts:{"class":b,id:b,value:b,name:b,"focus-out":b,placeholder:b,selectOnClick:b,autocorrect:b},contexts:[],types:[],data:e},m?m.call(b,n):q.call(b,"gh-input",n)))),e.buffer.push("\r\n            <p>"),l=c._triageMustache.call(b,"gh-blog-url",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(l||0===l)&&e.buffer.push(l),e.buffer.push("/author/"),l=c._triageMustache.call(b,"slugValue",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e}),(l||0===l)&&e.buffer.push(l),e.buffer.push('</p>\r\n        </div>\r\n\r\n        <div class="form-group">\r\n            <label for="user-email">Email</label>\r\n            '),e.buffer.push(r((m=c.input||b&&b.input,n={hash:{type:"email",value:"user.email",id:"user-email",placeholder:"Email Address",autocapitalize:"off",autocorrect:"off",autocomplete:"off"},hashTypes:{type:"STRING",value:"ID",id:"STRING",placeholder:"STRING",autocapitalize:"STRING",autocorrect:"STRING",autocomplete:"STRING"},hashContexts:{type:b,value:b,id:b,placeholder:b,autocapitalize:b,autocorrect:b,autocomplete:b},contexts:[],types:[],data:e},m?m.call(b,n):q.call(b,"input",n)))),e.buffer.push("\r\n            <p>Used for notifications</p>\r\n        </div>\r\n        "),l=c["if"].call(b,"view.rolesDropdownIsVisible",{hash:{},hashTypes:{},hashContexts:{},inverse:p.noop,fn:p.program(9,k,e),contexts:[b],types:["ID"],data:e}),(l||0===l)&&e.buffer.push(l),e.buffer.push('\r\n        <div class="form-group">\r\n            <label for="user-location">Location</label>\r\n            '),e.buffer.push(r((m=c.input||b&&b.input,n={hash:{type:"text",value:"user.location",id:"user-location"},hashTypes:{type:"STRING",value:"ID",id:"STRING"},hashContexts:{type:b,value:b,id:b},contexts:[],types:[],data:e},m?m.call(b,n):q.call(b,"input",n)))),e.buffer.push('\r\n            <p>Where in the world do you live?</p>\r\n        </div>\r\n\r\n        <div class="form-group">\r\n            <label for="user-website">Website</label>\r\n            '),e.buffer.push(r((m=c.input||b&&b.input,n={hash:{type:"url",value:"user.website",id:"user-website",autocapitalize:"off",autocorrect:"off",autocomplete:"off"},hashTypes:{type:"STRING",value:"ID",id:"STRING",autocapitalize:"STRING",autocorrect:"STRING",autocomplete:"STRING"},hashContexts:{type:b,value:b,id:b,autocapitalize:b,autocorrect:b,autocomplete:b},contexts:[],types:[],data:e},m?m.call(b,n):q.call(b,"input",n)))),e.buffer.push('\r\n            <p>Have a website or blog other than this one? Link it!</p>\r\n        </div>\r\n\r\n        <div class="form-group bio-container">\r\n            <label for="user-bio">Bio</label>\r\n            '),e.buffer.push(r((m=c.textarea||b&&b.textarea,n={hash:{id:"user-bio",value:"user.bio"},hashTypes:{id:"STRING",value:"ID"},hashContexts:{id:b,value:b},contexts:[],types:[],data:e},m?m.call(b,n):q.call(b,"textarea",n)))),e.buffer.push("\r\n            <p>\r\n                Write about you, in 200 characters or less.\r\n                "),e.buffer.push(r((m=c["gh-count-characters"]||b&&b["gh-count-characters"],n={hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["ID"],data:e},m?m.call(b,"user.bio",n):q.call(b,"gh-count-characters","user.bio",n)))),e.buffer.push('\r\n            </p>\r\n        </div>\r\n\r\n        <hr />\r\n\r\n    </fieldset>\r\n\r\n    <fieldset>\r\n\r\n        <div class="form-group">\r\n            <label for="user-password-old">Old Password</label>\r\n            '),e.buffer.push(r((m=c.input||b&&b.input,n={hash:{value:"user.password",type:"password",id:"user-password-old"},hashTypes:{value:"ID",type:"STRING",id:"STRING"},hashContexts:{value:b,type:b,id:b},contexts:[],types:[],data:e},m?m.call(b,n):q.call(b,"input",n)))),e.buffer.push('\r\n        </div>\r\n\r\n        <div class="form-group">\r\n            <label for="user-password-new">New Password</label>\r\n            '),e.buffer.push(r((m=c.input||b&&b.input,n={hash:{value:"user.newPassword",type:"password",id:"user-password-new"},hashTypes:{value:"ID",type:"STRING",id:"STRING"},hashContexts:{value:b,type:b,id:b},contexts:[],types:[],data:e},m?m.call(b,n):q.call(b,"input",n)))),e.buffer.push('\r\n        </div>\r\n\r\n        <div class="form-group">\r\n            <label for="user-new-password-verification">Verify Password</label>\r\n            '),e.buffer.push(r((m=c.input||b&&b.input,n={hash:{value:"user.ne2Password",type:"password",id:"user-new-password-verification"},hashTypes:{value:"ID",type:"STRING",id:"STRING"},hashContexts:{value:b,type:b,id:b},contexts:[],types:[],data:e},m?m.call(b,n):q.call(b,"input",n)))),e.buffer.push('\r\n        </div>\r\n        <div class="form-group">\r\n            <button type="button" class="btn btn-red button-change-password" '),e.buffer.push(r(c.action.call(b,"password",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push(">Change Password</button>\r\n        </div>\r\n\r\n    </fieldset>\r\n\r\n</form>\r\n"),o})}),define("ghost/templates/setup",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h="",i=c.helperMissing,j=this.escapeExpression;return e.buffer.push('<section class="setup-box js-setup-box fade-in">\r\n    <div class="vertical">\r\n        <form id="setup" class="setup-form" method="post" novalidate="novalidate">\r\n\r\n            \r\n            <input style="display:none;" type="text" name="fakeusernameremembered"/>\r\n            <input style="display:none;" type="password" name="fakepasswordremembered"/>\r\n\r\n            <header>\r\n                <h1>Welcome to your new Ghost blog</h1>\r\n                <h2>Let\'s get a few things set up so you can get started.</h2>\r\n            </header>\r\n            <div class="form-group">\r\n                <label for="blog-title">Blog Title</label>\r\n                '),e.buffer.push(j((f=c.input||b&&b.input,g={hash:{type:"text",name:"blog-title",autofocus:"autofocus",autocorrect:"off",value:"blogTitle"},hashTypes:{type:"STRING",name:"STRING",autofocus:"STRING",autocorrect:"STRING",value:"ID"},hashContexts:{type:b,name:b,autofocus:b,autocorrect:b,value:b},contexts:[],types:[],data:e},f?f.call(b,g):i.call(b,"input",g)))),e.buffer.push('\r\n                <p>What would you like to call your blog?</p>\r\n            </div>\r\n            <div class="form-group">\r\n                <label for="name">Full Name</label>\r\n                '),e.buffer.push(j((f=c.input||b&&b.input,g={hash:{type:"text",name:"name",autofocus:"autofocus",autocorrect:"off",value:"name"},hashTypes:{type:"STRING",name:"STRING",autofocus:"STRING",autocorrect:"STRING",value:"ID"},hashContexts:{type:b,name:b,autofocus:b,autocorrect:b,value:b},contexts:[],types:[],data:e},f?f.call(b,g):i.call(b,"input",g)))),e.buffer.push('\r\n                <p>The name that you will sign your posts with</p>\r\n            </div>\r\n            <div class="form-group">\r\n                <label for="email">Email Address</label>\r\n                '),e.buffer.push(j((f=c.input||b&&b.input,g={hash:{type:"email",name:"email",autofocus:"autofocus",autocorrect:"off",value:"email"},hashTypes:{type:"STRING",name:"STRING",autofocus:"STRING",autocorrect:"STRING",value:"ID"},hashContexts:{type:b,name:b,autofocus:b,autocorrect:b,value:b},contexts:[],types:[],data:e},f?f.call(b,g):i.call(b,"input",g)))),e.buffer.push('\r\n                <p>Used for important notifications</p>\r\n            </div>\r\n            <div class="form-group">\r\n                <label for="password">Password</label>\r\n                '),e.buffer.push(j((f=c.input||b&&b.input,g={hash:{type:"password",name:"password",autofocus:"autofocus",autocorrect:"off",value:"password"},hashTypes:{type:"STRING",name:"STRING",autofocus:"STRING",autocorrect:"STRING",value:"ID"},hashContexts:{type:b,name:b,autofocus:b,autocorrect:b,value:b},contexts:[],types:[],data:e},f?f.call(b,g):i.call(b,"input",g)))),e.buffer.push('\r\n                <p>Must be at least 8 characters</p>\r\n            </div>\r\n            <footer>\r\n                <button type="submit" class="btn btn-green btn-lg" '),e.buffer.push(j(c.action.call(b,"setup",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push(" "),e.buffer.push(j(c["bind-attr"].call(b,{hash:{disabled:"submitting"},hashTypes:{disabled:"ID"},hashContexts:{disabled:b},contexts:[],types:[],data:e}))),e.buffer.push(">Ok, Let's Do This</button>\r\n            </footer>\r\n        </form>\r\n    </div>\r\n</section>"),h})}),define("ghost/templates/signin",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push("Forgotten password?")}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this.escapeExpression,l=c.helperMissing,m=this;return e.buffer.push('<section class="login-box js-login-box fade-in">\r\n    <form id="login" class="login-form" method="post" novalidate="novalidate" '),e.buffer.push(k(c.action.call(b,"validateAndAuthenticate",{hash:{on:"submit"},hashTypes:{on:"STRING"},hashContexts:{on:b},contexts:[b],types:["STRING"],data:e}))),e.buffer.push('>\r\n        <div class="email-wrap">\r\n            <span class="input-icon icon-mail">\r\n                '),e.buffer.push(k((h=c["gh-trim-focus-input"]||b&&b["gh-trim-focus-input"],i={hash:{"class":"email",type:"email",placeholder:"Email Address",name:"identification",autofocus:"autofocus",autocapitalize:"off",autocorrect:"off",value:"identification"},hashTypes:{"class":"STRING",type:"STRING",placeholder:"STRING",name:"STRING",autofocus:"STRING",autocapitalize:"STRING",autocorrect:"STRING",value:"ID"},hashContexts:{"class":b,type:b,placeholder:b,name:b,autofocus:b,autocapitalize:b,autocorrect:b,value:b},contexts:[],types:[],data:e},h?h.call(b,i):l.call(b,"gh-trim-focus-input",i)))),e.buffer.push('\r\n            </span>\r\n        </div>\r\n        <div class="password-wrap">\r\n            <span class="input-icon icon-lock">\r\n                '),e.buffer.push(k((h=c.input||b&&b.input,i={hash:{"class":"password",type:"password",placeholder:"Password",name:"password",value:"password"},hashTypes:{"class":"STRING",type:"STRING",placeholder:"STRING",name:"STRING",value:"ID"},hashContexts:{"class":b,type:b,placeholder:b,name:b,value:b},contexts:[],types:[],data:e},h?h.call(b,i):l.call(b,"input",i)))),e.buffer.push('\r\n            </span>\r\n        </div>\r\n        <button class="btn btn-blue" type="submit" '),e.buffer.push(k(c.action.call(b,"validateAndAuthenticate",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push(" "),e.buffer.push(k(c["bind-attr"].call(b,{hash:{disabled:"submitting"},hashTypes:{disabled:"ID"},hashContexts:{disabled:b},contexts:[],types:[],data:e}))),e.buffer.push('>Log in</button>\r\n        <section class="meta">\r\n            '),h=c["link-to"]||b&&b["link-to"],i={hash:{"class":"forgotten-password"},hashTypes:{"class":"STRING"},hashContexts:{"class":b},inverse:m.noop,fn:m.program(1,f,e),contexts:[b],types:["STRING"],data:e},g=h?h.call(b,"forgotten",i):l.call(b,"link-to","forgotten",i),(g||0===g)&&e.buffer.push(g),e.buffer.push("\r\n        </section>\r\n    </form>\r\n</section>\r\n"),j})}),define("ghost/templates/signup",["exports"],function(a){a["default"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h="",i=c.helperMissing,j=this.escapeExpression;return e.buffer.push('<section class="setup-box js-signup-box fade-in">\r\n    <div class="vertical">\r\n        <form id="signup" class="setup-form" method="post" novalidate="novalidate">\r\n\r\n            \r\n            <input style="display:none;" type="text" name="fakeusernameremembered"/>\r\n            <input style="display:none;" type="password" name="fakepasswordremembered"/>\r\n\r\n            <header>\r\n                <h1>Welcome to Ghost</h1>\r\n                <h2>Create your account to start publishing</h2>\r\n            </header>\r\n            <div class="form-group">\r\n                <label for="email">Email Address</label>\r\n                '),e.buffer.push(j((f=c.input||b&&b.input,g={hash:{type:"email",name:"email",autocorrect:"off",value:"email"},hashTypes:{type:"STRING",name:"STRING",autocorrect:"STRING",value:"ID"},hashContexts:{type:b,name:b,autocorrect:b,value:b},contexts:[],types:[],data:e},f?f.call(b,g):i.call(b,"input",g)))),e.buffer.push('\r\n                <p>Used for important notifications</p>\r\n            </div>\r\n            <div class="form-group">\r\n                <label for="name">Full Name</label>\r\n                '),e.buffer.push(j((f=c["gh-trim-focus-input"]||b&&b["gh-trim-focus-input"],g={hash:{type:"text",name:"name",autofocus:"autofocus",autocorrect:"off",value:"name"},hashTypes:{type:"STRING",name:"STRING",autofocus:"STRING",autocorrect:"STRING",value:"ID"},hashContexts:{type:b,name:b,autofocus:b,autocorrect:b,value:b},contexts:[],types:[],data:e},f?f.call(b,g):i.call(b,"gh-trim-focus-input",g)))),e.buffer.push('\r\n                <p>The name that you will sign your posts with</p>\r\n            </div>\r\n            <div class="form-group">\r\n                <label for="password">Password</label>\r\n                '),e.buffer.push(j((f=c.input||b&&b.input,g={hash:{type:"password",name:"password",autofocus:"autofocus",autocorrect:"off",value:"password"},hashTypes:{type:"STRING",name:"STRING",autofocus:"STRING",autocorrect:"STRING",value:"ID"},hashContexts:{type:b,name:b,autofocus:b,autocorrect:b,value:b},contexts:[],types:[],data:e},f?f.call(b,g):i.call(b,"input",g)))),e.buffer.push('\r\n                <p>Must be at least 8 characters</p>\r\n            </div>\r\n            <footer>\r\n                <button type="submit" class="btn btn-green btn-lg" '),e.buffer.push(j(c.action.call(b,"signup",{hash:{},hashTypes:{},hashContexts:{},contexts:[b],types:["STRING"],data:e}))),e.buffer.push(" "),e.buffer.push(j(c["bind-attr"].call(b,{hash:{disabled:"submitting"},hashTypes:{disabled:"ID"},hashContexts:{disabled:b},contexts:[],types:[],data:e}))),e.buffer.push(">Create Account</button>\r\n            </footer>\r\n        </form>\r\n    </div>\r\n</section>\r\n"),h})}),window.App=require("ghost/app")["default"].create();