text: define("ghost/adapters/application",["ghost/adapters/embedded-relation-adapter","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend();b["default"]=d}),define("ghost/adapters/base",["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/base","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({find:function(a,b,c){return this.ajax(this.buildIncludeURL(a,b,c),"GET")},findQuery:function(a,b,c){return this._super(a,b,this.buildQuery(a,b,c))},findAll:function(a,b,c){var d={};return c&&(d.since=c),this.findQuery(a,b,d)},createRecord:function(a,b,c){return this.saveRecord(a,b,c,{method:"POST"})},updateRecord:function(a,b,c){var d={method:"PUT",id:Ember.get(c,"id")};return this.saveRecord(a,b,c,d)},saveRecord:function(a,b,c,d){d=d||{};var e=this.buildIncludeURL(a,b,d.id),f=this.preparePayload(a,b,c);return this.ajax(e,d.method,f)},preparePayload:function(a,b,c){var d=a.serializerFor(b.typeKey),e={};return d.serializeIntoHash(e,b,c),{data:e}},buildIncludeURL:function(a,b,c){var d=this.buildURL(b.typeKey,c),e=this.getEmbeddedRelations(a,b);return e.length&&(d+="?include="+e.join(",")),d},buildQuery:function(a,b,c){var d=this.getEmbeddedRelations(a,b),e=c||{},f={};return d.length&&("string"==typeof c||"number"==typeof c?(e={},e.id=c,e.include=d.join(",")):("object"==typeof c||Ember.isNone(c))&&(e=e||{},d=d.concat(e.include?e.include.split(","):[]),d.forEach(function(a){f[a]=!0}),e.include=Object.keys(f).join(","))),e},getEmbeddedRelations:function(a,b){var c=a.modelFor(b),d=[];return c.eachRelationship(function(a,b){"hasMany"===b.kind&&Object.prototype.hasOwnProperty.call(b.options,"embedded")&&"always"===b.options.embedded&&d.push(a)}),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/application","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({find:function(a,b,c){return this.findQuery(a,b,{id:c,status:"all"})}});b["default"]=d}),define("ghost/app",["ember/resolver","ember/load-initializers","ghost/utils/link-view","ghost/utils/text-field","ghost/config","exports"],function(a,b,c,d,e,f){"use strict";var g=a["default"],h=b["default"],i=e["default"];Ember.MODEL_FACTORY_INJECTIONS=!0;var j=Ember.Application.extend({modulePrefix:"ghost",Resolver:g["default"]});i(j),h(j,"ghost"),f["default"]=j}),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.find("div.description").show(),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"),a.trigger("imagecleared"),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.find("img.js-upload-target").show(),a.append(d),a.find(".js-cancel").on("click",function(){a.find("img.js-upload-target").attr({src:""}),a.find("div.description").show(),a.trigger("imagecleared"),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()},reset:function(){a.find(".js-url").remove(),a.find(".js-fileupload").removeClass("right"),this.removeExtras(),this.initWithDropzone()}})},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),this.uploaderUi=a,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,unfocusLink:function(){this.$("a").blur()}.on("click")});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,g,h,i=a["default"],j=b["default"],k=c["default"],l=d["default"];l.init(),f=function(a,b){var c,d=a.component;for(c=b.from.line;c<b.from.line+b.text.length;c+=1)d.checkLine.call(d,c,b.origin);d.checkMarkers.call(d),a.component.set("value",a.getValue()),d.sendAction("typingPause")},g=function(a){var b=a.getScrollInfo(),c=a.component;b.codemirror=a,c.throttle=Ember.run.throttle(c,function(){this.set("scrollInfo",b)},10)},h=Ember.TextArea.extend(i,{focus:!0,focusCursorAtEnd:!1,setFocus:function(){this.get("focus")&&this.$().val(this.$().val()).focus()}.on("didInsertElement"),didInsertElement:function(){Ember.run.scheduleOnce("afterRender",this,this.afterRenderEvent)},afterRenderEvent:function(){var a,b=this;j.createIfMobile(),a=this.initCodemirror(),this.set("codemirror",a),this.sendAction("setCodeMirror",this),this.get("focus")&&this.get("focusCursorAtEnd")&&a.execCommand("goDocEnd"),a.eachLine(function(){b.initMarkers.apply(b,arguments)})},initCodemirror:function(){var a,b=this;return 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",f),a.on("scroll",g),a.on("scroll",Ember.run.bind(Ember.$(".CodeMirror-scroll"),k,{target:Ember.$(".js-entry-markdown"),offset:10})),a.on("focus",function(){b.sendAction("onFocusIn")}),a},disableCodeMirror:function(){var a=this.get("codemirror");a.setOption("readOnly","nocursor"),a.off("change",f)},enableCodeMirror:function(){var a=this.get("codemirror");a.setOption("readOnly",!1),a.off("change",f),a.on("change",f)},removeThrottle:function(){Ember.run.cancel(this.throttle)}.on("willDestroyElement"),removeCodemirrorHandlers:function(){var a=this.get("codemirror");a.off("change",f),a.off("scroll")}.on("willDestroyElement"),clearMarkerManagerMarkers:function(){this.clearMarkers()}.on("willDestroyElement")}),e["default"]=h}),define("ghost/components/gh-dropdown-button",["ghost/mixins/dropdown-mixin","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Component.extend(c,{tagName:"button",attributeBindings:"role",role:"button",dropdownName:null,click:function(a){this._super(a),this.get("dropdown").toggleDropdown(this.get("dropdownName"),this)}});b["default"]=d}),define("ghost/components/gh-dropdown",["ghost/mixins/dropdown-mixin","exports"],function(a,b){"use strict";var c=a["default"],d=Ember.Component.extend(c,{classNames:"ghost-dropdown",name:null,closeOnClick:!1,closing:!1,isOpen:!1,fadeIn:Ember.computed("isOpen","closing",function(){return this.get("isOpen")&&!this.get("closing")}),classNameBindings:["fadeIn:fade-in-scale:fade-out","isOpen:open:closed"],open:function(){this.set("isOpen",!0),this.set("closing",!1),this.set("button.isOpen",!0)},close:function(){var a=this;this.set("closing",!0),this.get("button")&&this.set("button.isOpen",!1),this.$().on("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(b){"fade-out"===b.originalEvent.animationName&&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("dropdown");a.on("close",this,this.close),a.on("toggle",this,this.toggle)},willDestroyElement:function(){this._super();var a=this.get("dropdown");a.off("close",this,this.close),a.off("toggle",this,this.toggle)}});b["default"]=d}),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(){function a(){var a=$(".js-drop-zone");c.call(a,{editor:!0,fileStorage:this.get("config.fileStorage")}),a.on("uploadstart",Ember.run.bind(this,"sendAction","uploadStarted")),a.on("uploadfailure",Ember.run.bind(this,"sendAction","uploadFinished")),a.on("uploadsuccess",Ember.run.bind(this,"sendAction","uploadFinished")),a.on("uploadsuccess",Ember.run.bind(this,"sendAction","uploadSuccess"))}Ember.run.scheduleOnce("afterRender",this,a)}.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, .js-modal-background").addClass("fade-in open"),this.$(".js-modal").addClass("open")},close:function(){var a=this;this.$(".js-modal, .js-modal-background").removeClass("fade-in").addClass("fade-out"),this.$(".js-modal-background").on("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(b){"fade-out"===b.originalEvent.animationName&&a.$(".js-modal, .js-modal-background").removeClass("open")}),this.sendAction()},confirmaccept:"confirmAccept",confirmreject:"confirmReject",actions:{closeModal:function(){this.close()},confirm:function(a){this.sendAction("confirm"+a),this.close()},noBubble:Ember.K},klass:Ember.computed("type","style",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.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-navitem-url-input",["exports"],function(a){"use strict";function b(a,b){return"/"!==b[0]&&"/"!==a.slice(-1)?b="/"+b:"/"===b[0]&&"/"===a.slice(-1)&&(b=b.slice(1)),a+b}var c=Ember.TextField.extend({classNameBindings:["fakePlaceholder"],isBaseUrl:Ember.computed("baseUrl","value",function(){return this.get("baseUrl")===this.get("value")}),fakePlaceholder:Ember.computed("isBaseUrl","hasFocus",function(){return this.get("isBaseUrl")&&this.get("last")&&!this.get("hasFocus")}),isRelative:Ember.computed("value",function(){return!validator.isURL(this.get("value"))&&0!==this.get("value").indexOf("mailto:")}),didInsertElement:function(){var a=this.get("url"),c=this.get("baseUrl");this.set("value",a),this.get("isRelative")&&(a=b(c,a),this.set("value",a))},focusIn:function(a){this.set("hasFocus",!0),this.get("isBaseUrl")&&Ember.run.next(function(a){var b=a.value.length;a.setSelectionRange(b,b)},a.target)},keyDown:function(a){!this.get("isBaseUrl")||8!==a.keyCode&&46!==a.keyCode||(this.set("value",""),a.preventDefault())},keyPress:function(a){return 13===a.keyCode&&(a.preventDefault(),this.notifyUrlChanged()),!0},focusOut:function(){this.set("hasFocus",!1),this.notifyUrlChanged()},notifyUrlChanged:function(){this.set("value",this.get("value").trim());var a=this.get("value"),c=this.get("baseUrl");this.get("isRelative")&&this.set("value",b(c,a)),this.sendAction("change",a)}});a["default"]=c}),define("ghost/components/gh-navitem",["exports"],function(a){"use strict";var b=Ember.Component.extend({classNames:"navigation-item",attributeBindings:["order:data-order"],order:Ember.computed.readOnly("navItem.order"),keyPress:function(a){13===a.keyCode&&(a.preventDefault(),this.get("controller").send("addItem"))},actions:{addItem:function(){this.sendAction("addItem")},deleteItem:function(a){this.sendAction("deleteItem",a)},updateUrl:function(a){this.sendAction("updateUrl",a,this.get("navItem"))}}});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/components/gh-dropdown-button","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({click:Ember.K,mouseEnter:function(a){this._super(a),this.get("dropdown").toggleDropdown(this.get("popoverName"),this)},mouseLeave:function(a){this._super(a),this.get("dropdown").toggleDropdown(this.get("popoverName"),this)}});b["default"]=d}),define("ghost/components/gh-popover",["ghost/components/gh-dropdown","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({classNames:"ghost-popover"});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.[]","tabsManager.tabPanes.[]",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,attributeBindings:["autofocus"],autofocus:Ember.computed(function(){return this.get("focus")?device.ios()?!1:"autofocus":!1}),didInsertElement:function(){this.get("focus")&&!device.ios()&&this.$().val(this.$().val()).focus()},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","ghost/utils/caja-sanitizers","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"],h=e.extend({layoutName:"components/gh-modal-dialog",didInsertElement:function(){this._super(),f.call(this.$(".js-drop-zone"),{fileStorage:this.get("config.fileStorage")})},keyDown:function(){this.setErrorState(!1)},setErrorState:function(a){a?this.$(".js-upload-url").addClass("error"):this.$(".js-upload-url").removeClass("error")},confirm:{reject:{func:function(){return!0},buttonClass:"btn btn-default",text:"Cancel"},accept:{buttonClass:"btn btn-blue right",text:"Save",func:function(){var a,b="model."+this.get("imageType");if(this.$(".js-upload-url").val()){if(a=this.$(".js-upload-url").val(),!Ember.isEmpty(a)&&!g.url(a))return this.setErrorState(!0),{message:"Image URI is not valid"}}else a=this.$(".js-upload-target").attr("src");return this.set(b,a),!0}}},actions:{closeModal:function(){this.sendAction()},confirm:function(a){var b,c=this.get("confirm."+a+".func");"function"==typeof c&&(b=c.apply(this)),b.message||(this.sendAction(),this.sendAction("confirm"+a))}}});d["default"]=h}),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"],imageSource:Ember.computed("image",function(){return this.get("image")||""}),setup:function(){var a=this.$(),b=this;this.set("uploaderReference",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.on("imagecleared",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/components/gh-url-preview",["exports"],function(a){"use strict";var b=Ember.Component.extend({classNames:"ghost-url-preview",prefix:null,slug:null,url:Ember.computed("slug",function(){var a=this.get("config").blogUrl,b=a.substr(a.indexOf("://")+3),c=this.get("prefix")?this.get("prefix")+"/":"",d=this.get("slug")?this.get("slug")+"/":"",e=b+"/"+c+d;return e})});a["default"]=b}),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,showSettingsMenu:!1,userImage:Ember.computed("session.user.image",function(){return this.get("session.user.image")||this.get("ghostPaths.url").asset("/shared/img/user-image.png")}),userImageBackground:Ember.computed("userImage",function(){return"background-image: url("+this.get("userImage")+")"}),userImageAlt:Ember.computed("session.user.name",function(){var a=this.get("session.user.name");return a?a+"'s profile picture":"Profile picture"}),actions:{topNotificationChange:function(a){this.set("topNotificationCount",a)}}});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.Controller.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.Controller.extend(c,{actions:{save:function(a){var b=this;return this._super(a).then(function(a){a.get("id")&&b.replaceRoute("editor.edit",a)})}}});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/feature",["exports"],function(a){"use strict";var b=Ember.Controller.extend(Ember.PromiseProxyMixin,{init:function(){var a;a=this.store.find("setting",{type:"blog,theme"}).then(function(a){return a.get("firstObject")}),this.set("promise",a)},setting:Ember.computed.alias("content"),labs:Ember.computed("isSettled","setting.labs",function(){var a={};if(this.get("isFulfilled"))try{a=JSON.parse(this.get("setting.labs")||{})}catch(b){a={}}return a}),codeInjectionUI:Ember.computed("config.codeInjectionUI","labs.codeInjectionUI",function(){return this.get("config.codeInjectionUI")||this.get("labs.codeInjectionUI")})});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 with the reset, please try again."})})})["catch"](function(b){a.toggleProperty("submitting"),a.notifications.showErrors(b)})}}});c["default"]=f}),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."),a.store.unloadAll("post"),a.store.unloadAll("tag")})["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("dropdown").closeDropdowns(),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-tag",["exports"],function(a){"use strict";var b=Ember.Controller.extend({postInflection:Ember.computed("model.post_count",function(){return this.get("model.post_count")>1?"posts":"post"}),actions:{confirmAccept:function(){var a=this.get("model"),b=a.get("name"),c=this;this.send("closeSettingsMenu"),a.destroyRecord().then(function(){c.notifications.showSuccess("Deleted "+b)})["catch"](function(a){c.notifications.showAPIError(a)})},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({userPostCount:Ember.computed("model.id",function(){var a,b={author:this.get("model.slug"),status:"all"};return a=this.store.find("post",b).then(function(a){return a.meta.pagination.total}),Ember.Object.extend(Ember.PromiseProxyMixin,{count:Ember.computed.alias("content"),inflection:Ember.computed("count",function(){return this.get("count")>1?"posts":"post"})}).create({promise:a})}),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/signin",["ghost/mixins/validation-engine","exports"],function(a,b){"use strict";var c=a["default"];b["default"]=Ember.Controller.extend(SimpleAuth.AuthenticationControllerMixin,c,{needs:"application",authenticator:"simple-auth-authenticator:oauth2-password-grant",validationType:"signin",identification:Ember.computed("session.user.email",function(){return this.get("session.user.email")}),actions:{authenticate:function(){var a=this.get("controllers.application"),b=this;a.set("skipAuthSuccessHandler",!0),this._super(this.getProperties("identification","password")).then(function(){b.send("closeModal"),b.notifications.showSuccess("Login successful."),b.set("password","")})["catch"](function(){})["finally"](function(){a.set("skipAuthSuccessHandler",void 0)})},validateAndAuthenticate:function(){var a=this;$("#login").find("input").trigger("change"),this.validate({format:!1}).then(function(){a.notifications.closePassive(),a.send("authenticate")})["catch"](function(b){a.notifications.showErrors(b)})},confirmAccept:function(){this.send("validateAndAuthenticate")}}})}),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("dropdown").closeDropdowns(),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/mixins/settings-menu-controller","ghost/models/slug-generator","ghost/utils/bound-one-way","ghost/utils/isNumber","exports"],function(a,b,c,d,e,f){"use strict";var g=a.parseDateString,h=a.formatDate,i=b["default"],j=c["default"],k=d["default"],l=e["default"],m=Ember.Controller.extend(i,{debounceId:null,lastPromise:null,selectedAuthor:null,uploaderReference:null,initializeSelectedAuthor:function(){var a=this;return this.get("model.author").then(function(b){return a.set("selectedAuthor",b),b})}.observes("model"),changeAuthor:function(){var a=this.get("model.author"),b=this.get("selectedAuthor"),c=this.get("model"),d=this;b.get("id")!==a.get("id")&&(c.set("author",b),this.get("model.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").sortBy("name")}).then(function(a){return a.filter(function(a){return a.get("active")})}),Ember.ArrayProxy.extend(Ember.PromiseProxyMixin).create(a)}),publishedAtValue:Ember.computed("model.published_at",function(){var a=this.get("model.published_at");return h(arguments.length>1?moment():a?a:moment())}),slugValue:k("model.slug"),slugGenerator:Ember.computed(function(){return j.create({ghostPaths:this.get("ghostPaths"),slugType:"post"})}),generateAndSetSlug:function(a){var b,c=this,d=this.get("model.titleScratch"),e=this.get("lastPromise");"(Untitled)"===d&&this.get("model.slug")||(b=Ember.RSVP.resolve(e).then(function(){return c.get("slugGenerator").generateSlug(d).then(function(b){c.set(a,b)})["catch"](function(){})}),this.set("lastPromise",b))},metaTitleScratch:k("model.meta_title"),metaDescriptionScratch:k("model.meta_description"),seoTitle:Ember.computed("model.titleScratch","metaTitleScratch",function(){var a=this.get("metaTitleScratch")||"";return a=a.length>0?a:this.get("model.titleScratch"),a.length>70&&(a=a.substring(0,70).trim(),a=Ember.Handlebars.Utils.escapeExpression(a),a=Ember.String.htmlSafe(a+"&hellip;")),a}),seoDescription:Ember.computed("model.scratch","metaDescriptionScratch",function(){var a,b,c=this.get("metaDescriptionScratch")||"",d="";return c.length>0?b=c:(a=$(".rendered-markdown"),void 0!==a&&a.length>0&&(d=a.clone(),d.find(".js-drop-zone").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=Ember.String.htmlSafe(b+"&hellip;")),b}),seoURL:Ember.computed("model.slug",function(){var a=this.get("config").blogUrl,b=this.get("model.slug")?this.get("model.slug"):"",c=a+"/"+b;return b&&(c+="/"),c.length>70&&(c=c.substring(0,70).trim(),c=Ember.String.htmlSafe(c+"&hellip;")),c}),addTitleObserver:function(){(this.get("model.isNew")||"(Untitled)"===this.get("model.title"))&&this.addObserver("model.titleScratch",this,"titleObserver")}.observes("model"),titleObserver:function(){var a,b=this.get("model.title");(this.get("model.isNew")&&!b||"(Untitled)"===b)&&(a=Ember.run.debounce(this,"generateAndSetSlug","model.slug",700)),this.set("debounceId",a)},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("model.page"),this.get("model.isNew")||this.get("model").save()["catch"](function(b){a.showErrors(b),a.get("model").rollback()})},toggleFeatured:function(){var a=this;this.toggleProperty("model.featured"),this.get("model.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("model.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(l(f)&&f>0&&b===e.join("-")&&d!==a)return void c.set("slugValue",b);if(c.set("model.slug",d),c.hasObserverFor("model.titleScratch")&&c.removeObserver("model.titleScratch",c,"titleObserver"),!c.get("model.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=g(a),d=this.get("model.published_at"),e=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("model.published_at",c),this.get("model.isNew")||this.get("model").save()["catch"](function(a){e.showErrors(a),e.get("model").rollback()})))):void(this.get("model.isDraft")&&this.set("model.published_at",null))},setMetaTitle:function(a){var b=this,c=this.get("model.meta_title")||"";c!==a&&(this.set("model.meta_title",a),this.get("model.isNew")||this.get("model").save()["catch"](function(a){b.showErrors(a)}))},setMetaDescription:function(a){var b=this,c=this.get("model.meta_description")||"";c!==a&&(this.set("model.meta_description",a),this.get("model.isNew")||this.get("model").save()["catch"](function(a){b.showErrors(a)}))},setCoverImage:function(a){var b=this;this.set("model.image",a),this.get("model.isNew")||this.get("model").save()["catch"](function(a){b.showErrors(a),b.get("model").rollback()})},clearCoverImage:function(){var a=this;this.set("model.image",""),this.get("model.isNew")||this.get("model").save()["catch"](function(b){a.showErrors(b),a.get("model").rollback()})},resetUploader:function(){var a=this.get("uploaderReference");a&&a[0]&&a[0].uploaderUi.reset()},resetPubDate:function(){this.set("publishedAtValue","")}}});f["default"]=m}),define("ghost/controllers/post-tags-input",["exports"],function(a){"use strict";var b=Ember.Controller.extend({tagEnteredOrder:Ember.A(),tags:Ember.computed("parentController.model.tags",function(){var a=Ember.ArrayProxy.create({content:this.get("parentController.model.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",{limit:"all"})},addNewTag:function(){var a,b,c,d=this.get("newTagText");return Ember.isEmpty(d)||this.hasTag(d)?void this.send("reset"):(d=d.trim(),a=d.toLowerCase(),b=this.store.all("tag").filter(function(b){return b.get("isNew")?!1: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){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=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").filterBy("isNew",!1),e={};return 0===d.get("length")?[]:(a=a.toLowerCase(),b=d.filter(function(b){var d,f,g=b.get("name");return d=-1!==g.toLowerCase().indexOf(a),f=c.hasTag(g),d&&!f&&("undefined"==typeof e[g]?e[g]=1:e[g]+=1),1===e[g]}))},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=Ember.Object.create();return c=f.replace(g,"<mark>$1</mark>"),c=Ember.String.htmlSafe(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,{postListFocused:Ember.computed.equal("keyboardFocus","postList"),postContentFocused:Ember.computed.equal("keyboardFocus","postContent"),sortProperties:["status","published_at","updated_at"],orderBy:function(a,b){var d,e,f,g,h=a.get("updated_at"),i=b.get("updated_at");return a.get("isNew")||!h?-1:b.get("isNew")||!i?1:(d=Ember.compare(parseInt(a.get("id")),parseInt(b.get("id"))),e=Ember.compare(a.get("status"),b.get("status")),f=Ember.compare(h.valueOf(),i.valueOf()),g=c(a,b),0===e?0===g?0===f?-1*d:-1*f:-1*g:e)},init:function(){this._super({modelType:"post"})}});b["default"]=e}),define("ghost/controllers/posts/post",["exports"],function(a){"use strict";var b=Ember.Controller.extend({isPublished:Ember.computed.equal("model.status","published"),classNameBindings:["model.featured"],authorName:Ember.computed("model.author.name","model.author.email",function(){return this.get("model.author.name")||this.get("model.author.email")}),authorAvatar:Ember.computed("model.author.image",function(){return this.get("model.author.image")||this.get("ghostPaths.url").asset("/shared/img/user-image.png")}),authorAvatarBackground:Ember.computed("authorAvatar",function(){return"background-image: url("+this.get("authorAvatar")+")"}),actions:{toggleFeatured:function(){var a={disableNProgress:!0},b=this;this.toggleProperty("model.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,{newPassword:"",ne2Password:"",token:"",submitting:!1,validationType:"reset",email:Ember.computed("token",function(){return atob(this.get("token")).split("|")[1]}),clearData:function(){this.setProperties({newPassword:"",ne2Password:"",token:""})},actions:{submit:function(){var a=this.getProperties("newPassword","ne2Password","token"),b=this;this.toggleProperty("submitting"),this.validate({format:!1}).then(function(){d({url:b.get("ghostPaths.url").api("authentication","passwordreset"),type:"PUT",data:{passwordreset:[a]}}).then(function(c){b.toggleProperty("submitting"),b.notifications.showSuccess(c.passwordreset[0].message,!0),b.get("session").authenticate("simple-auth-authenticator:oauth2-password-grant",{identification:b.get("email"),password:a.newPassword})})["catch"](function(a){b.notifications.showAPIError(a),b.toggleProperty("submitting")})})["catch"](function(a){b.toggleProperty("submitting"),b.notifications.showErrors(a)})}}});c["default"]=f}),define("ghost/controllers/settings",["exports"],function(a){"use strict";var b=Ember.Controller.extend({needs:["feature"],showGeneral:Ember.computed("session.user.name",function(){return this.get("session.user.isAuthor")||this.get("session.user.isEditor")?!1:!0}),showUsers:Ember.computed("session.user.name",function(){return this.get("session.user.isAuthor")?!1:!0}),showTags:Ember.computed("session.user.name",function(){return this.get("session.user.isAuthor")?!1:!0}),showNavigation:Ember.computed("session.user.name",function(){return this.get("session.user.isAuthor")||this.get("session.user.isEditor")?!1:!0}),showCodeInjection:Ember.computed("session.user.name","controllers.feature.codeInjectionUI",function(){return this.get("session.user.isAuthor")||this.get("session.user.isEditor")||!this.get("controllers.feature.codeInjectionUI")?!1:!0}),showLabs:Ember.computed("session.user.name",function(){return this.get("session.user.isAuthor")||this.get("session.user.isEditor")?!1:!0}),showAbout:Ember.computed("session.user.name",function(){return this.get("session.user.isAuthor")?!1:!0})});a["default"]=b}),define("ghost/controllers/settings/app",["exports"],function(a){"use strict";var b,c;b={active:"active",working:"working",inactive:"inactive"},c=Ember.Controller.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/code-injection",["exports"],function(a){"use strict";var b=Ember.Controller.extend({actions:{save:function(){var a=this;return this.get("model").save().then(function(b){return a.notifications.closePassive(),a.notifications.showSuccess("Settings successfully saved."),b})["catch"](function(b){a.notifications.closePassive(),a.notifications.showErrors(b)})}}});a["default"]=b}),define("ghost/controllers/settings/general",["exports"],function(a){"use strict";var b=Ember.Controller.extend({selectedTheme:null,logoImageSource:Ember.computed("model.logo",function(){return this.get("model.logo")||""}),coverImageSource:Ember.computed("model.cover",function(){return this.get("model.cover")||""}),isDatedPermalinks:Ember.computed("model.permalinks",function(a,b){arguments.length>1&&this.set("model.permalinks",b?"/:year/:month/:day/:slug/":"/:slug/");var c=this.get("model.permalinks");return"/:slug/"!==c}),themes:Ember.computed(function(){return this.get("model.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(){var a=this.get("model.postsPerPage");(1>a||a>1e3||isNaN(a))&&this.set("model.postsPerPage",5)}}});a["default"]=b}),define("ghost/controllers/settings/labs",["exports"],function(a){"use strict";var b=Ember.Controller.extend(Ember.Evented,{needs:["feature"],uploadButtonText:"Import",importErrors:"",labsJSON:Ember.computed("model.labs",function(){return JSON.parse(this.get("model.labs")||{})}),saveLabs:function(a,b){var c=this,d=this.get("labsJSON");d[a]=b,this.set("model.labs",JSON.stringify(d)),this.get("model").save()["catch"](function(a){c.showErrors(a),c.get("model").rollback()})},codeUIFlag:Ember.computed.alias("config.codeInjectionUI"),useCodeInjectionUI:Ember.computed("controllers.feature.codeInjectionUI",function(a,b){return arguments.length>1&&this.saveLabs("codeInjectionUI",b),this.get("controllers.feature.codeInjectionUI")||!1}),actions:{onUpload:function(a){var b=this,c=new FormData;this.set("uploadButtonText","Importing"),this.set("importErrors",""),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.store.unloadAll("post"),b.store.unloadAll("tag"),b.store.unloadAll("user"),b.store.unloadAll("role"),b.store.unloadAll("setting"),b.store.unloadAll("notification"),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/settings/navigation",["exports"],function(a){"use strict";var b,c;c=Ember.Object.extend({label:"",url:"",last:!1,isComplete:Ember.computed("label","url",function(){return!(Ember.isBlank(this.get("label").trim())||Ember.isBlank(this.get("url")))})}),b=Ember.Controller.extend({blogUrl:Ember.computed("config.blogUrl",function(){var a=this.get("config.blogUrl");return"/"!==a.slice(-1)?a+"/":a}),navigationItems:Ember.computed("model.navigation",function(){var a,b;try{a=JSON.parse(this.get("model.navigation")||[{}])}catch(d){a=[{}]}return a=a.map(function(a){return c.create(a)}),b=a.get("lastObject"),(!b||b.get("isComplete"))&&a.addObject(c.create({last:!0})),a}),updateLastNavItem:Ember.observer("navigationItems.[]",function(){var a=this.get("navigationItems");a.forEach(function(a,b,c){b===c.length-1?a.set("last",!0):a.set("last",!1)})}),actions:{addItem:function(){var a=this.get("navigationItems"),b=a.get("lastObject");b&&b.get("isComplete")&&a.addObject(c.create({last:!0}))},deleteItem:function(a){if(a){var b=this.get("navigationItems");b.removeObject(a)}},moveItem:function(a,b){var c=this.get("navigationItems"),d=c.objectAt(a);c.removeAt(a),c.insertAt(b,d)},updateUrl:function(a,b){return b?Ember.isBlank(a)?void b.set("url",this.get("blogUrl")):void b.set("url",a):void 0},save:function(){var a,b,c=this,d=this.get("config").blogUrl,e=new RegExp("^"+d+"(.*)","i"),f=this.get("navigationItems"),g="One of your navigation items has an empty label. <br /> Please enter a new label or delete the item before saving.";return f.find(function(a){return!a.get("isComplete")&&!a.get("last")})?void c.notifications.showErrors([g.htmlSafe()]):(a=f.map(function(a){var c,d;if(a&&a.get("isComplete"))return c=a.get("label").trim(),d=a.get("url").trim(),b=d.match(e),b?(d=b[1],"/"!==d[d.length-1]&&-1===d.indexOf("#")&&-1===d.indexOf(".")&&(d+="/")):validator.isURL(d)||""===d||"/"===d[0]||0===d.indexOf("mailto:")||(d="/"+d),{label:c,url:d}}).compact(),this.set("model.navigation",JSON.stringify(a)),this.get("model").notifyPropertyChange("navigation"),this.notifications.closePassive(),void this.get("model").save().then(function(){c.notifications.showSuccess("Navigation items saved.")})["catch"](function(a){c.notifications.showErrors(a)}))}}}),a["default"]=b}),define("ghost/controllers/settings/tags",["ghost/mixins/pagination-controller","ghost/mixins/settings-menu-controller","ghost/utils/bound-one-way","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"],h=Ember.ArrayController.extend(e,f,{tags:Ember.computed.alias("model"),activeTag:null,activeTagNameScratch:g("activeTag.name"),activeTagSlugScratch:g("activeTag.slug"),activeTagDescriptionScratch:g("activeTag.description"),activeTagMetaTitleScratch:g("activeTag.meta_title"),activeTagMetaDescriptionScratch:g("activeTag.meta_description"),init:function(a){a=a||{},a.modelType="tag",this._super(a)},showErrors:function(a){a=Ember.isArray(a)?a:[a],this.notifications.showErrors(a)},saveActiveTagProperty:function(a,b){var c=this.get("activeTag"),d=c.get(a),e=this;b=b.trim(),b!==d&&(c.set(a,b),this.notifications.closePassive(),c.save()["catch"](function(a){e.showErrors(a)}))},seoTitle:Ember.computed("scratch","activeTagNameScratch","activeTagMetaTitleScratch",function(){var a=this.get("activeTagMetaTitleScratch")||"";return a=a.length>0?a:this.get("activeTagNameScratch"),a&&a.length>70&&(a=a.substring(0,70).trim(),a=Ember.Handlebars.Utils.escapeExpression(a),a=Ember.String.htmlSafe(a+"&hellip;")),a}),seoURL:Ember.computed("activeTagSlugScratch",function(){var a=this.get("config").blogUrl,b=this.get("activeTagSlugScratch")?this.get("activeTagSlugScratch"):"",c=a+"/tag/"+b;return b&&(c+="/"),c.length>70&&(c=c.substring(0,70).trim(),c=Ember.String.htmlSafe(c+"&hellip;")),c}),seoDescription:Ember.computed("scratch","activeTagDescriptionScratch","activeTagMetaDescriptionScratch",function(){var a=this.get("activeTagMetaDescriptionScratch")||"";return a=a.length>0?a:this.get("activeTagDescriptionScratch"),a&&a.length>156&&(a=a.substring(0,156).trim(),a=Ember.Handlebars.Utils.escapeExpression(a),a=Ember.String.htmlSafe(a+"&hellip;")),a}),actions:{newTag:function(){this.set("activeTag",this.store.createRecord("tag",{post_count:0})),this.send("openSettingsMenu")},editTag:function(a){this.set("activeTag",a),this.send("openSettingsMenu")},saveActiveTagName:function(a){this.saveActiveTagProperty("name",a)},saveActiveTagSlug:function(a){this.saveActiveTagProperty("slug",a)},saveActiveTagDescription:function(a){this.saveActiveTagProperty("description",a)},saveActiveTagMetaTitle:function(a){this.saveActiveTagProperty("meta_title",a)},saveActiveTagMetaDescription:function(a){this.saveActiveTagProperty("meta_description",a)},setCoverImage:function(a){this.saveActiveTagProperty("image",a)},clearCoverImage:function(){this.saveActiveTagProperty("image","")}}});d["default"]=h}),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","ghost/utils/isNumber","ghost/utils/bound-one-way","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"],h=Ember.Controller.extend({user:Ember.computed.alias("model"),email:Ember.computed.readOnly("model.email"),slugValue:g("model.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 e.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(){b.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("model.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("-"),g=Number(e.pop());return f(g)&&g>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)}}});d["default"]=h}),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.Controller.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")})})["catch"](function(b){a.toggleProperty("submitting"),a.notifications.showAPIError(b)})})["catch"](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.get("model"),b=a.getProperties("identification","password");this._super(b)["catch"](function(){})},validateAndAuthenticate:function(){var a=this;$("#login").find("input").trigger("change"),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.Controller.extend(e,{submitting:!1,validationType:"signup",actions:{signup:function(){var a=this,b=this.get("model"),c=b.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:c.name,email:c.email,password:c.password,token:c.token}]}}).then(function(){a.get("session").authenticate("simple-auth-authenticator:oauth2-password-grant",{identification:a.get("model.email"),password:a.get("model.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.HTMLBars.makeBoundHelper(function(){return Ember.String.htmlSafe(this.get("config.blogUrl"))});a["default"]=b}),define("ghost/helpers/gh-count-characters",["exports"],function(a){"use strict";var b=Ember.HTMLBars.makeBoundHelper(function(a){var b,c,d=document.createElement("span");if(a&&a.length)return c=a[0]||"",b=c.length,d.className="word-count",d.style.color=b>180?"#E25440":"#9E9D95",d.innerHTML=200-b,Ember.String.htmlSafe(d.outerHTML)});a["default"]=b}),define("ghost/helpers/gh-count-down-characters",["exports"],function(a){"use strict";var b=Ember.HTMLBars.makeBoundHelper(function(a){var b,c,d,e=document.createElement("span");if(a&&!(a.length<2))return b=a[0]||"",c=a[1],d=b.length,e.className="word-count",e.style.color=d>c?"#E25440":"#9FBB58",e.innerHTML=d,Ember.String.htmlSafe(e.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.HTMLBars.makeBoundHelper(function(a){if(a&&a.length){var b,d;return b=a[0]||"",/^\s*$/.test(b)?"0 words":(d=c(b),d+(1===d?" 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.HTMLBars.makeBoundHelper(function(a){if(a&&a.length){var b=a[0]||"";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),Ember.String.htmlSafe(b)}});b["default"]=d}),define("ghost/helpers/gh-format-markdown",["ghost/utils/caja-sanitizers","exports"],function(a,b){"use strict";var c,d,e=a["default"];c=new Showdown.converter({extensions:["ghostimagepreview","ghostgfm","footnotes","highlight"]}),d=Ember.HTMLBars.makeBoundHelper(function(a){if(a&&a.length){var b="",d=a[0]||"";return b=c.makeHtml(d),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,e.url,e.id),Ember.String.htmlSafe(b)}}),b["default"]=d}),define("ghost/helpers/gh-format-timeago",["exports"],function(a){"use strict";var b=Ember.HTMLBars.makeBoundHelper(function(a){if(a&&a.length){var b=a[0];return moment(b).fromNow()}});a["default"]=b}),define("ghost/helpers/gh-path",["ghost/utils/ghost-paths","exports"],function(a,b){"use strict";function c(a,b){var c,e=arguments.length,f=d();switch(1===e?a="blog":2!==e||/^(blog|admin|api)$/.test(a)||(b=a,a="blog"),a.toString()){case"blog":c=f.blogRoot;break;case"admin":c=f.adminRoot;break;case"api":c=f.apiRoot;break;default:c=f.blogRoot}return c="/"!==c[c.length-1]?c+"/":c,b&&b.length>0&&("/"===b[0]&&(b=b.substr(1)),c+=b),Ember.String.htmlSafe(c)}var d=a["default"];b["default"]=c}),define("ghost/initializers/authentication",["ghost/utils/ghost-paths","exports"],function(a,b){"use strict";var c,d,e=a["default"];c=e(),d={name:"authentication",before:"simple-auth",after:"registerTrailingLocationHistory",initialize:function(a){window.ENV=window.ENV||{},window.ENV["simple-auth"]={authenticationRoute:"signin",routeAfterAuthentication:"posts",authorizer:"simple-auth-authorizer:oauth2-bearer",localStorageKey:"ghost"+(0===c.subdir.indexOf("/")?"-"+c.subdir.substr(1):"")+":session"},window.ENV["simple-auth-oauth2"]={serverTokenEndpoint:c.apiRoot+"/authentication/token",serverTokenRevocationEndpoint:c.apiRoot+"/authentication/revoke",refreshAccessTokens:!0},SimpleAuth.Session.reopen({user:Ember.computed(function(){return a.lookup("store:main").find("user","me")})}),SimpleAuth.Authenticators.OAuth2.reopen({makeRequest:function(a,b){return b.client_id="ghost-admin",this._super(a,b)}})}},b["default"]=d}),define("ghost/initializers/dropdown",["ghost/utils/dropdown-service","exports"],function(a,b){"use strict";var c=a["default"],d={name:"dropdown",initialize:function(a,b){b.register("dropdown:service",c),b.inject("component:gh-dropdown","dropdown","dropdown:service"),b.inject("component:gh-dropdown-button","dropdown","dropdown:service"),b.inject("controller:modals.delete-post","dropdown","dropdown:service"),b.inject("controller:modals.transfer-owner","dropdown","dropdown:service"),b.inject("route:application","dropdown","dropdown:service"),b.inject("component:gh-popover","dropdown","dropdown:service"),b.inject("component:gh-popover-button","dropdown","dropdown:service"),b.inject("route:application","dropdown","dropdown:service")}};b["default"]=d}),define("ghost/initializers/ghost-config",["ghost/utils/config-parser","exports"],function(a,b){"use strict";var c=a["default"],d={name:"config",initialize:function(a,b){var d=c();b.register("ghost:config",d,{instantiate:!1}),b.inject("route","config","ghost:config"),b.inject("controller","config","ghost:config"),b.inject("component","config","ghost:config")}};b["default"]=d}),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/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,c;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/dropdown-mixin",["exports"],function(a){"use strict";var b=Ember.Mixin.create(Ember.Evented,{classNameBindings:["isOpen:open:closed"],isOpen:!1,click:function(a){return this._super(a),a.stopPropagation()}});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,f,g=a["default"],h=b["default"],i=c["default"];e=["model.scratch","model.titleScratch","model.isDirty","model.tags.[]"],h.eachAttribute(function(a){e.push("model."+a)}),f=Ember.Mixin.create(g,{needs:["post-tags-input","post-settings-menu"],autoSaveId:null,timedSaveId:null,codemirror:null,codemirrorComponent:null,init:function(){var a=this;this._super(),window.onbeforeunload=function(){return a.get("isDirty")?a.unloadDirtyMessage():null}},willPublish:i("model.isPublished"),isPreview:!1,previousTagNames:null,tagNames:Ember.computed("model.tags.@each.name",function(){return this.get("model.tags").mapBy("name")}),postOrPage:Ember.computed("model.page",function(){return this.get("model.page")?"Page":"Post"}),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")),a.get("titleScratch")===a.get("title")&&a.get("scratch")===a.get("markdown")&&this.set("isDirty",!1)},isDirty:Ember.computed.apply(Ember,e.concat(function(a,b){if(arguments.length>1)return b;var c,d=this.get("model"),e=d.get("markdown"),f=d.get("title"),g=d.get("titleScratch"),h=this.getMarkdown().withoutMarkers;return this.tagNamesEqual()?g!==f?!0:e!==h?!0:d.get("isError")?!0:d.get("isNew")?(c=Ember.keys(d.changedAttributes()),c.length?!0:!1):d.get("isDirty"):!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],e=this.get("ghostPaths.url").join(this.get("config.blogUrl"),this.get("model.url"));"published"===b&&(d+='&nbsp;<a href="'+e+'">View '+this.get("postOrPage")+"</a>"),this.notifications.showSuccess(d.htmlSafe(),{delayed:c})},showErrorNotification:function(a,b,c,d){var e=this.messageMap.errors.post[a][b],f=c&&c[0]&&c[0].message||"Unknown Error";e+="<br />"+f,this.notifications.showError(e.htmlSafe(),{delayed:d})},shouldFocusTitle:Ember.computed.alias("model.isNew"),shouldFocusEditor:Ember.computed.not("model.isNew"),actions:{save:function(a){var b,c=this.get("willPublish")?"published":"draft",d=this.get("model.status"),e=this.get("model.isNew"),f=this.get("autoSaveId"),g=this.get("timedSaveId"),h=this,i=this.get("controllers.post-settings-menu");return a=a||{},f&&(Ember.run.cancel(f),this.set("autoSaveId",null)),g&&(Ember.run.cancel(g),this.set("timedSaveId",null)),h.notifications.closePassive(),this.get("controllers.post-tags-input").send("addNewTag"),this.set("model.markdown",this.getMarkdown().withoutMarkers),this.set("model.status",c),this.get("model.titleScratch").trim()||this.set("model.titleScratch","(Untitled)"),this.set("model.title",this.get("model.titleScratch")),this.set("model.meta_title",i.get("metaTitleScratch")),this.set("model.meta_description",i.get("metaDescriptionScratch")),this.get("model.slug")||(Ember.run.cancel(i.get("debounceId")),i.generateAndSetSlug("model.slug")),b=Ember.RSVP.resolve(i.get("lastPromise")).then(function(){return h.get("model").save(a).then(function(b){return a.silent||h.showSaveNotification(d,b.get("status"),e?!0:!1),b})})["catch"](function(b){return a.silent||h.showErrorNotification(d,h.get("model.status"),b),h.set("model.status",d),h.get("model")}),i.set("lastPromise",b),b},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)},togglePreview:function(a){this.set("isPreview",a)},autoSave:function(){if(this.get("model.isDraft")){var a,b;b=Ember.run.throttle(this,"send","save",{silent:!0,disableNProgress:!0},6e4,!1),this.set("timedSaveId",b),a=Ember.run.debounce(this,"send","save",{silent:!0,disableNProgress:!0},3e3),this.set("autoSaveId",a)}},autoSaveNew:function(){this.get("model.isNew")&&this.send("save",{silent:!0,disableNProgress:!0})}}}),d["default"]=f}),define("ghost/mixins/editor-base-route",["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,{classNames:["editor"],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){Ember.$(".CodeMirror.CodeMirror-focused").length>0&&this.get("controller.codemirror").shortcut(a.type)},willTransition:function(a){var b,c,d=this.get("controller"),e=d.get("model.scratch"),f=d.get("isDirty"),g=d.get("model"),h=g.getProperties("isDeleted","isSaving","isDirty","isNew");return b="editor.new"===this.get("routeName")&&"editor.edit"===a.targetName&&a.intent.contexts&&a.intent.contexts[0]&&a.intent.contexts[0].id===g.get("id"),c=h.isDeleted&&(h.isSaving||!h.isDirty),this.send("closeSettingsMenu"),b||c||!f?(b&&f&&e!==g.get("markdown")&&g.set("markdown",e),h.isNew&&g.deleteRecord(),window.onbeforeunload=null,void this.detachModelHooks(d,g)):(a.abort(),void this.send("openModal","leave-editor",[d,a]))}},renderTemplate:function(a,b){this._super(a,b),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"))},setupController:function(a,b){this._super(a,b);var c=b.get("tags");a.set("model.scratch",b.get("markdown")),a.set("model.titleScratch",b.get("title")),c?a.set("previousTagNames",c.mapBy("name")):a.set("previousTagNames",[]),this.attachModelHooks(a,b)}});e["default"]=j}),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/loading-indicator",["exports"],function(a){"use strict";var b,c;b={showSpinner:!1},NProgress.configure(b),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,isLoading:null,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.store.metadataFor(c),e=d.pagination&&d.pagination.next,f=this.get("paginationSettings");e&&(this.set("isLoading",!0),this.set("paginationSettings.page",e),b.find(c,f).then(function(){a.set("isLoading",!1)},function(b){a.reportLoadError(b)}))},resetPagination:function(){this.set("paginationSettings.page",1),this.store.metaForType("tag",{pagination:void 0})}}});b["default"]=d}),define("ghost/mixins/pagination-route",["exports"],function(a){"use strict";var b,c;b={page:1,limit:15},c=Ember.Mixin.create({setupPagination:function(a){a=a||{};for(var c in b)b.hasOwnProperty(c)&&(a.hasOwnProperty(c)||(a[c]=b[c]));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.$(),b=this.get("controller");a.on("scroll",Ember.run.bind(this,this.checkScroll)),this.element.scrollHeight<=this.element.clientHeight&&b.send("loadNextPage")}.on("didInsertElement"),detachCheckScroll:function(){var a=this.$();a.off("scroll")}.on("willDestroyElement")});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/settings-menu-controller",["exports"],function(a){"use strict";var b=Ember.Mixin.create({needs:"application",isViewingSubview:Ember.computed("controllers.application.showSettingsMenu",function(a,b){return this.get("controllers.application.showSettingsMenu")&&arguments.length>1?b:!1}),actions:{showSubview:function(){this.set("isViewingSubview",!0)},closeSubview:function(){this.set("isViewingSubview",!1)}}});a["default"]=b}),define("ghost/mixins/shortcuts-route",["exports"],function(a){"use strict";key.filter=function(){return!0},key.setScope("default");var b=Ember.Mixin.create({registerShortcuts:function(){var a=this,b=this.get("shortcuts");Ember.keys(b).forEach(function(c){var d,e=b[c].scope||"default",f=b[c];"string"!==Ember.typeOf(f)&&(d=f.options,f=f.action),key(c,e,function(b){b.preventDefault(),a.send(f,d)})})},removeShortcuts:function(){var a=this.get("shortcuts");Ember.keys(a).forEach(function(a){key.unbind(a)})},activate:function(){this._super(),this.registerShortcuts()},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","ghost/validators/tag-settings","exports"],function(a,b,c,d,e,f,g,h,i,j,k,l){"use strict";function m(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){var b;return b="string"==typeof a?a:a.message,Ember.Handlebars.Utils.escapeExpression(b)}).join("<br />").htmlSafe():c+=a instanceof Error?a.message||".":"object"==typeof a?": "+n(a,!0):"string"==typeof a?": "+a:".",c=[{message:c}]}var n=a.getRequestErrorMessage,o=b["default"],p=c["default"],q=d["default"],r=e["default"],s=f["default"],t=g["default"],u=h["default"],v=i["default"],w=j["default"],x=k["default"];o.init();var y=Ember.Mixin.create({validators:{post:p,setup:q,signup:r,signin:s,forgotten:t,setting:u,reset:v,user:w,tag:x},validate:function(a){a=a||{};var b,c,d=this;return a.model?d=a.model:this instanceof DS.Model?d=this:this.get("model")&&(d=this.get("model")),b=this.get("validationType")||d.get("validationType"),c=this.get("validators."+b)||d.get("validators."+b),a.validationType=b,new Ember.RSVP.Promise(function(e,f){var g;return g=b&&c?c.check(d):['The validator specified, "'+b+'", did not exist!'],Ember.isEmpty(g)?e():(a.format!==!1&&(g=m(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?m(b,a):n(b)),Ember.RSVP.reject(b)})}});l["default"]=y}),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"),updated_by:DS.attr(),published_at:DS.attr("moment-date"),published_by:DS.belongsTo("user",{async:!0}),created_at:DS.attr("moment-date"),created_by:DS.attr(),tags:DS.hasMany("tag",{embedded:"always"}),url:DS.attr("string"),scratch:null,titleScratch:null,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"),created_by:DS.attr(),updated_by:DS.attr(),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(),ghost_head:DS.attr("string"),ghost_foot:DS.attr("string"),labs:DS.attr("string"),navigation:DS.attr("string")});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",["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:"tag",uuid:DS.attr("string"),name:DS.attr("string"),slug:DS.attr("string"),description:DS.attr("string"),parent:DS.attr(),meta_title:DS.attr("string"),meta_description:DS.attr("string"),image:DS.attr("string"),hidden:DS.attr("boolean"),created_at:DS.attr("moment-date"),updated_at:DS.attr("moment-date"),created_by:DS.attr(),updated_by:DS.attr(),post_count:DS.attr("number")});c["default"]=f}),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:[{user_id:this.get("id"),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:function(){return["active","warn-1","warn-2","warn-3","warn-4","locked"].indexOf(this.get("status"))>-1}.property("status"),invited:function(){return["invited","invited-pending"].indexOf(this.get("status"))>-1}.property("status"),pending:Ember.computed.equal("status","invited-pending").property("status")});d["default"]=h}),define("ghost/router",["ghost/utils/ghost-paths","ghost/utils/document-title","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=Ember.Router.extend({location:"trailing-history",rootURL:d().adminRoot,clearNotifications:Ember.on("didTransition",function(){this.notifications.closePassive(),this.notifications.displayDelayed()})});e(),f.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("tags"),this.route("labs"),this.route("code-injection"),this.route("navigation")}),this.route("debug"),this.route("content"),this.route("error404",{path:"/*path"})}),c["default"]=f}),define("ghost/routes/application",["ghost/mixins/shortcuts-route","ghost/utils/ctrl-or-cmd","exports"],function(a,b,c){"use strict";var d,e=a["default"],f=b["default"],g={};g.esc={action:"closePopups",scope:"all"},g.enter={action:"confirmModal",scope:"modal"},g[f+"+s"]={action:"save",scope:"all"},d=Ember.Route.extend(SimpleAuth.ApplicationRouteMixin,e,{shortcuts:g,afterModel:function(a,b){this.get("session").isAuthenticated&&b.send("loadServerNotifications")},title:function(a){return a.join(" - ")+" - "+this.get("config.blogTitle")},actions:{toggleGlobalMobileNav:function(){this.toggleProperty("controller.showGlobalMobileNav")},openSettingsMenu:function(){this.set("controller.showSettingsMenu",!0)},closeSettingsMenu:function(){this.set("controller.showSettingsMenu",!1)},toggleSettingsMenu:function(){this.toggleProperty("controller.showSettingsMenu")},closePopups:function(){this.get("dropdown").closeDropdowns(),this.get("notifications").closeAll(),this.send("closeSettingsMenu"),this.send("closeModal")},signedIn:function(){this.send("loadServerNotifications",!0)},sessionAuthenticationFailed:function(a){a.errors?(a.errors.forEach(function(a){a.message=a.message.htmlSafe()}),this.notifications.showErrors(a.errors)):this.notifications.showError("There was a problem on the server.")},sessionAuthenticationSucceeded:function(){var a=this.controllerFor("application"),b=this;a&&a.get("skipAuthSuccessHandler")||this.store.find("user","me").then(function(a){b.send("signedIn",a);var c=b.get("session").get("attemptedTransition");c?(c.retry(),b.get("session").set("attemptedTransition",null)):b.transitionTo(SimpleAuth.Configuration.routeAfterAuthentication)})},sessionInvalidationFailed:function(a){this.notifications.showError(a.message)},openModal:function(a,b,c){return this.get("dropdown").closeDropdowns(),key.setScope("modal"),a="modals/"+a,this.set("modalName",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"})},confirmModal:function(){var a=this.get("modalName");this.send("closeModal"),this.controllerFor(a,!0)&&this.controllerFor(a).send("confirmAccept")},closeModal:function(){this.disconnectOutlet({outlet:"modal",parentView:"application"}),key.setScope("default")},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")})},save:Ember.K}}),c["default"]=d}),define("ghost/routes/authenticated",["exports"],function(a){"use strict";var b=Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin);a["default"]=b}),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",["exports"],function(a){"use strict";var b=Ember.Route.extend({beforeModel:function(){this.transitionTo("settings.labs")}});a["default"]=b}),define("ghost/routes/editor/edit",["ghost/routes/authenticated","ghost/mixins/editor-base-route","ghost/utils/isNumber","ghost/utils/isFinite","exports"],function(a,b,c,d,e){"use strict";var f=a["default"],g=b["default"],h=c["default"],i=d["default"],j=f.extend(g,{titleToken:"Editor",model:function(a){var b,c,d,e=this;return c=Number(a.post_id),!h(c)||!i(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"},e.store.find("post",d).then(function(a){var b=a.get("firstObject");return b?b:e.replaceWith("posts.index")}))},afterModel:function(a){var b=this;return b.store.find("user","me").then(function(c){return c.get("isAuthor")&&!a.isAuthoredByUser(c)?b.replaceWith("posts.index"):void 0})},actions:{authorizationFailed:function(){this.send("openModal","signin")}}});e["default"]=j}),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/routes/authenticated","ghost/mixins/editor-base-route","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=d.extend(e,{titleToken:"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){var c=this.controllerFor("post-settings-menu");c.removeObserver("titleScratch",c,"titleObserver"),c.send("resetUploader"),c.send("resetPubDate"),this._super(a,b)}});c["default"]=f}),define("ghost/routes/error404",["exports"],function(a){"use strict";var b=Ember.Route.extend({controllerName:"error",templateName:"error",titleToken:"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,{titleToken:"Forgotten Password",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/routes/authenticated","ghost/mixins/style-body","ghost/mixins/shortcuts-route","ghost/mixins/loading-indicator","ghost/mixins/pagination-route","exports"],function(a,b,c,d,e,f){"use strict";var g,h,i=a["default"],j=b["default"],k=c["default"],l=d["default"],m=e["default"];g={status:"all",staticPages:"all",page:1},h=i.extend(k,j,l,m,{titleToken:"Content",classNames:["manage"],model:function(){var a=this;return this.store.find("user","me").then(function(b){return b.get("isAuthor")&&(g.author=b.get("slug")),a.store.filter("post",g,function(a){return b.get("isAuthor")?a.isAuthoredByUser(b):!0})})},setupController:function(a,b){this._super(a,b),this.setupPagination(g)},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))},scrollContent:function(a){var b=Ember.$(".js-content-preview"),c=b.scrollTop();b.scrollTop(c+50*a)},shortcuts:{"up, k":"moveUp","down, j":"moveDown",left:"focusList",right:"focusContent",c:"newPost"},actions:{focusList:function(){this.controller.set("keyboardFocus","postList")},focusContent:function(){this.controller.set("keyboardFocus","postContent")},newPost:function(){this.transitionTo("editor.new")},moveUp:function(){this.controller.get("postContentFocused")?this.scrollContent(-1):this.stepThroughPosts(-1)},moveDown:function(){this.controller.get("postContentFocused")?this.scrollContent(1):this.stepThroughPosts(1)}}}),f["default"]=h}),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/routes/authenticated","ghost/mixins/loading-indicator","ghost/mixins/shortcuts-route","ghost/utils/isNumber","ghost/utils/isFinite","exports"],function(a,b,c,d,e,f){"use strict";var g=a["default"],h=b["default"],i=c["default"],j=d["default"],k=e["default"],l=g.extend(h,i,{model:function(a){var b,c,d,e=this;return c=Number(a.post_id),!j(c)||!k(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"},e.store.find("post",d).then(function(a){var b=a.get("firstObject");return b?b:e.replaceWith("posts.index")}))},afterModel:function(a){var b=this;return b.store.find("user","me").then(function(c){return c.get("isAuthor")&&!a.isAuthoredByUser(c)?b.replaceWith("posts.index"):void 0})},setupController:function(a,b){this._super(a,b),this.controllerFor("posts").set("currentPost",b)},shortcuts:{"enter, o":"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"))}}});f["default"]=l}),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},deactivate:function(){this._super(),this.controller.clearData()}});c["default"]=f}),define("ghost/routes/settings",["ghost/routes/authenticated","ghost/mixins/style-body","ghost/mixins/loading-indicator","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"],h=e.extend(f,g,{titleToken:"Settings",classNames:["settings"]});d["default"]=h}),define("ghost/routes/settings/about",["ghost/routes/authenticated","ghost/mixins/loading-indicator","ghost/mixins/style-body","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"],h=e.extend(g,f,{titleToken:"About",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})}});d["default"]=h}),define("ghost/routes/settings/apps",["ghost/routes/authenticated","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=e.extend(g,f,{titleToken:"Apps",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")}});d["default"]=h}),define("ghost/routes/settings/code-injection",["ghost/routes/authenticated","ghost/mixins/loading-indicator","ghost/mixins/current-user-settings","ghost/mixins/style-body","exports"],function(a,b,c,d,e){"use strict";var f=a["default"],g=b["default"],h=c["default"],i=d["default"],j=f.extend(i,g,h,{classNames:["settings-view-code"],beforeModel:function(){var a=this.controllerFor("feature"),b=this;return a||(this.generateController("feature"),a=this.controllerFor("feature")),this.currentUser().then(this.transitionAuthor()).then(this.transitionEditor()).then(function(){return a.then(function(){return a.get("codeInjectionUI")?void 0:b.transitionTo("settings.general")})})},model:function(){return this.store.find("setting",{type:"blog,theme"}).then(function(a){return a.get("firstObject")})},actions:{save:function(){this.get("controller").send("save")}}});e["default"]=j}),define("ghost/routes/settings/general",["ghost/routes/authenticated","ghost/mixins/loading-indicator","ghost/mixins/current-user-settings","ghost/mixins/style-body","exports"],function(a,b,c,d,e){"use strict";var f=a["default"],g=b["default"],h=c["default"],i=d["default"],j=f.extend(i,g,h,{titleToken:"General",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")})},actions:{save:function(){this.get("controller").send("save")}}});e["default"]=j}),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,{titleToken:"Settings",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/labs",["ghost/routes/authenticated","ghost/mixins/style-body","ghost/mixins/current-user-settings","ghost/mixins/loading-indicator","exports"],function(a,b,c,d,e){"use strict";var f=a["default"],g=b["default"],h=c["default"],i=d["default"],j=f.extend(g,i,h,{titleToken:"Labs",classNames:["settings"],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")})}});e["default"]=j}),define("ghost/routes/settings/navigation",["ghost/routes/authenticated","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=e.extend(g,f,{titleToken:"Navigation",classNames:["settings-view-navigation"],beforeModel:function(){return this.currentUser().then(this.transitionAuthor())},model:function(){return this.store.find("setting",{type:"blog,theme"}).then(function(a){return a.get("firstObject")})},actions:{save:function(){$(".page-actions .btn-blue").focus(),this.get("controller").send("save")}}});d["default"]=h}),define("ghost/routes/settings/tags",["ghost/routes/authenticated","ghost/mixins/current-user-settings","ghost/mixins/pagination-route","exports"],function(a,b,c,d){"use strict";var e,f,g=a["default"],h=b["default"],i=c["default"];f={page:1,include:"post_count",limit:15},e=g.extend(h,i,{actions:{willTransition:function(){this.send("closeSettingsMenu")}},titleToken:"Tags",beforeModel:function(){return this.currentUser().then(this.transitionAuthor())},model:function(){return this.store.unloadAll("tag"),this.store.filter("tag",f,function(a){return!a.get("isNew")})},setupController:function(a,b){this._super(a,b),this.setupPagination(f)},renderTemplate:function(a,b){this._super(a,b),this.render("settings/tags/settings-menu",{into:"application",outlet:"settings-menu",view:"settings/tags/settings-menu"})},deactivate:function(){this.controller.send("resetPagination")}}),d["default"]=e}),define("ghost/routes/settings/users",["ghost/routes/authenticated","ghost/mixins/current-user-settings","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=d.extend(e,{beforeModel:function(){return this.currentUser().then(this.transitionAuthor())}});c["default"]=f}),define("ghost/routes/settings/users/index",["ghost/routes/authenticated","ghost/mixins/pagination-route","ghost/mixins/style-body","exports"],function(a,b,c,d){"use strict";var e,f,g=a["default"],h=b["default"],i=c["default"];e={page:1,limit:20,status:"active"},f=g.extend(i,h,{titleToken:"Users",classNames:["settings-view-users"],setupController:function(a,b){this._super(a,b),this.setupPagination(e)},model:function(){var a=this;return a.store.find("user",{limit:"all",status:"invited"}).then(function(){return a.store.find("user","me").then(function(b){return b.get("isEditor")&&(e.role="Author"),a.store.filter("user",e,function(a){return b.get("isEditor")?a.get("isAuthor")||a===b:!0})})})},actions:{reload:function(){this.refresh()}}}),d["default"]=f}),define("ghost/routes/settings/users/user",["ghost/routes/authenticated","ghost/mixins/style-body","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=d.extend(e,{titleToken:"User",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()},actions:{save:function(){this.get("controller").send("save")}}});c["default"]=f}),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,{titleToken:"Setup",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,{titleToken:"Sign In",classNames:["ghost-login"],beforeModel:function(){this.get("session").isAuthenticated&&this.transitionTo(SimpleAuth.Configuration.routeAfterAuthentication)},model:function(){return Ember.Object.create({identification:"",password:""})},deactivate:function(){this._super();var a=this.controllerFor("signin");a.set("model.identification",""),a.set("model.password","")}});c["default"]=f}),define("ghost/routes/signout",["ghost/routes/authenticated","ghost/mixins/style-body","ghost/mixins/loading-indicator","exports"],function(a,b,c,d){"use strict";var e=a["default"],f=b["default"],g=c["default"],h=e.extend(f,g,{titleToken:"Sign Out",classNames:["ghost-signout"],afterModel:function(a,b){this.notifications.clear(),Ember.canInvoke(b,"send")?(b.send("invalidateSession"),b.abort()):this.send("invalidateSession")}});d["default"]=h}),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=Ember.Object.create(),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.set("email",c),e.set("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)},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,delete f.html,delete f.author_id,delete f.url,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/tag",["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=!0;var e=Ember.String.pluralize(b.typeKey),f=this.serialize(c,d);delete f.uuid,delete f.post_count,a[e]=[f]}});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)}});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";function b(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}var c=function(){return ic.ajax.request.apply(null,arguments)};a.getRequestErrorMessage=b,a.ajax=c,a["default"]=c}),define("ghost/utils/bind",["exports"],function(a){"use strict";function b(){function a(){return d.apply(e,b)}var b=c.call(arguments),d=b.shift(),e=b.pop();return a}var c=Array.prototype.slice;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/config-parser",["exports"],function(a){"use strict";var b=function(a){return!isNaN(a)},c=function(a){return""===a?null:"true"===a?!0:"false"===a?!1:b(a)?+a:a},d=function(){var a,b,d,e,f=$('meta[name^="env-"]'),g={};for(e=0;e<f.length;e+=1)d=$(f[e]).prop("name"),b=$(f[e]).prop("content"),a=d.substring(4),g[a]=c(b);return g};a["default"]=d}),define("ghost/utils/ctrl-or-cmd",["exports"],function(a){"use strict";var b=-1!==navigator.userAgent.indexOf("Mac")?"command":"ctrl";a["default"]=b}),define("ghost/utils/date-formatting",["exports"],function(a){"use strict";var b,c,d,e,f;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/document-title",["exports"],function(a){"use strict";var b=function(){Ember.Route.reopen({titleToken:null,title:null,_actions:{collectTitleTokens:function(a){var b,c=this.titleToken;return"function"==typeof this.titleToken&&(c=this.titleToken(this.currentModel)),Ember.isArray(c)?a.unshift.apply(this,c):c&&a.unshift(c),this.title?(b="function"==typeof this.title?this.title(a):this.title,void this.router.setTitle(b)):!0}}}),Ember.Router.reopen({updateTitle:function(){this.send("collectTitleTokens",[])}.on("didTransition"),setTitle:function(a){Ember.testing?this._title=a:window.document.title=a}})};a["default"]=b}),define("ghost/utils/dropdown-service",["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.closeDropdowns()},closeDropdowns:function(){this.trigger("close")},toggleDropdown:function(a,b){this.trigger("toggle",{target:a,button:b})}});b["default"]=d}),define("ghost/utils/editor-shortcuts",["ghost/utils/ctrl-or-cmd","exports"],function(a,b){"use strict";var c=a["default"],d={};d[c+"+alt+p"]="publish",d["alt+shift+z"]="toggleZenMode",d["ctrl+alt+u"]={action:"codeMirrorShortcut",options:{type:"strike"}},d[c+"+b"]={action:"codeMirrorShortcut",options:{type:"bold"}},d[c+"+i"]={action:"codeMirrorShortcut",options:{type:"italic"}},d["ctrl+u"]={action:"codeMirrorShortcut",options:{type:"uppercase"}},d["ctrl+shift+u"]={action:"codeMirrorShortcut",options:{type:"lowercase"}},d["ctrl+alt+shift+u"]={action:"codeMirrorShortcut",options:{type:"titlecase"}},d[c+"+shift+c"]={action:"codeMirrorShortcut",options:{type:"copyHTML"}},d[c+"+h"]={action:"codeMirrorShortcut",options:{type:"cycleHeaderLevel"}},d["ctrl+q"]={action:"codeMirrorShortcut",options:{type:"blockquote"}},d["ctrl+l"]={action:"codeMirrorShortcut",options:{type:"list"}},d["ctrl+shift+1"]={action:"codeMirrorShortcut",options:{type:"currentDate"}},d[c+"+k"]={action:"codeMirrorShortcut",options:{type:"link"}},d[c+"+shift+i"]={action:"codeMirrorShortcut",options:{type:"image"}},d[c+"+shift+k"]={action:"codeMirrorShortcut",options:{type:"code"}},b["default"]=d}),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,url:{admin:function(){return c(e,arguments)},api:function(){return c(f,arguments)},join:function(){if(arguments.length>1)return c(arguments[0],Array.prototype.slice.call(arguments,1));if(1===arguments.length){var a=arguments[0];return"/"===a.slice(-1)?a:a+"/"}return"/"},asset:a}}}var c=function(a,b){var c,d,e,f;return c=/^\//,d=/\/$/,f=a.replace(d,""),e=Array.prototype.slice.call(b,0),e.forEach(function(a){f=[f,a.replace(c,"").replace(d,"")].join("/")}),f+="/"};a["default"]=b}),define("ghost/utils/isFinite",["exports"],function(a){"use strict";function b(a){return window.isFinite(a)&&!window.isNaN(parseFloat(a))}a["default"]=b}),define("ghost/utils/isNumber",["exports"],function(a){"use strict";function b(a){return"number"==typeof a||a&&"object"==typeof a&&"[object Number]"===c.call(a)||!1}var c=Object.prototype.toString;a["default"]=b}),define("ghost/utils/link-view",[],function(){"use strict";Ember.LinkView.reopen({active:Ember.computed("loadedParams","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){"function"==typeof a.toJSON?("persistent"===a.get("status")&&a.set("message",a.get("message").htmlSafe()),a.get("status")||a.set("status","passive")):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-1===a.indexOf(b)})}a["default"]={init:b}}),define("ghost/utils/word-count",["exports"],function(a){"use strict";function b(a){return a=a.replace(/<(.|\n)*?>/g," "),a=a.replace(/[^\w\s]/g,""),a=a.replace(/(^\s*)|(\s*$)/gi,""),a=a.replace(/\n /gi," "),a=a.replace(/\n+/gi," "),a=a.replace(/[ ]{2,}/gi," "),a.split(" ").length}a["default"]=b}),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.get("newPassword"),c=a.get("ne2Password"),d=[];return validator.equals(b,c)||d.push({message:"The two new passwords don't match."}),validator.isLength(b,8)||d.push({message:"The password is not long enough."}),d}});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/tag-settings",["exports"],function(a){"use strict";var b=Ember.Object.create({check:function(a){var b=[],c=a.getProperties("name","meta_title","meta_description");return validator.empty(c.name)&&b.push({message:"You must specify a name for the tag."}),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/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"}),Ember.isEmpty(g)||validator.isURL(g,{require_protocol:!1})&&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",didInsertElement:function(){function a(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")}var b=this;$("body").on("click tap",".js-nav-item",function(){Ember.run(function(){c.matches&&b.set("controller.showGlobalMobileNav",!1)})}),$(".js-nav-cover").on("click tap",function(){Ember.run(function(){var a=b.get("controller.showGlobalMobileNav");a&&b.set("controller.showGlobalMobileNav",!1)})}),this.set("swapUserMenuDropdownTriangleClasses",Ember.run.bind(this,a)),c.addListener(this.get("swapUserMenuDropdownTriangleClasses")),a(c),this.set("closeGlobalMobileNavOnDesktop",Ember.run.bind(this,function(a){a.matches||this.set("controller.showGlobalMobileNav",!1)})),c.addListener(this.get("closeGlobalMobileNavOnDesktop"))},showGlobalMobileNavObserver:function(){this.get("controller.showGlobalMobileNav")?$("body").addClass("global-nav-expanded"):$("body").removeClass("global-nav-expanded")}.observes("controller.showGlobalMobileNav"),willDestroyElement:function(){c.removeListener(this.get("closeGlobalMobileNavOnDesktop")),c.removeListener(this.get("swapUserMenuDropdownTriangleClasses"))},toggleSettingsMenuBodyClass:function(){$("body").toggleClass("settings-menu-expanded",this.get("controller.showSettingsMenu"))}.observes("controller.showSettingsMenu")});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.model.isPublished","controller.willPublish",function(){return this.get("controller.model.isPublished")!==this.get("controller.willPublish")}),publishText:Ember.computed("controller.model.isPublished","controller.pageOrPost",function(){return this.get("controller.model.isPublished")?"Update "+this.get("controller.postOrPage"):"Publish Now"}),draftText:Ember.computed("controller.model.isPublished",function(){return this.get("controller.model.isPublished")?"Unpublish":"Save Draft"}),deleteText:Ember.computed("controller.postOrPage",function(){return"Delete "+this.get("controller.postOrPage")}),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/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",["exports"],function(a){"use strict";var b=Ember.View.extend({classNameBindings:["active","isFeatured:featured","isPage:page"],active:null,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")},scrollIntoView:function(){if(this.get("active")){var a,b,c,d=this.$(),e=d.offset().top,f=d.height(),g=Ember.$(".js-content-scrollbox"),h=g.height(),i=g.scrollTop();b=h>e,a=e>f,c=a&&b,c||g.clearQueue().animate({scrollTop:i+e-40-h/2})}},removeScrollBehaviour:function(){this.removeObserver("active",this,this.scrollIntoView)}.on("willDestroyElement"),addScrollBehaviour:function(){this.addObserver("active",this,this.scrollIntoView)}.on("didInsertElement")});a["default"]=b}),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",classNameBindings:["hasFocus:focused"],hasFocus:!1,keys:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,UP:38,DOWN:40,NUMPAD_ENTER:108},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)},keyPress:function(a){var b=this.get("parentView.controller"),c=0===",".localeCompare(String.fromCharCode(a.keyCode||a.charCode));c&&(a.preventDefault(),b.send(b.get("selectedSuggestion")?"addSelectedSuggestion":"addNewTag"))},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: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")}}}),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"))}}),actions:{deleteTag:function(a){Ember.$(".js-tag-input").focus(),this.get("controller").send("deleteTag",a)}}});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, .js-content-preview").addClass("show-menu").removeClass("show-content")},showContent:function(){$(".js-content-list, .js-content-preview").addClass("show-content").removeClass("show-menu")},showAll:function(){$(".js-content-list, .js-content-preview").removeClass("show-menu show-content")}});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/code-injection",["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/labs",["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/navigation",["ghost/views/settings/content-base","exports"],function(a,b){"use strict";var c=a["default"],d=c.extend({didInsertElement:function(){var a=Ember.$(".js-settings-navigation"),b=".navigation-item:not(.navigation-item:last-child)",c=this;a.sortable({handle:".navigation-item-drag-handle",items:b,start:function(a,b){Ember.run(function(){b.item.data("start-index",b.item.index())})},update:function(a,b){Ember.run(function(){c.get("controller").send("moveItem",b.item.data("start-index"),b.item.index()),b.item.remove()})}})},willDestroyElement:function(){Ember.$(".js-settings-navigation").sortable("destroy")}});b["default"]=d}),define("ghost/views/settings/tags",["ghost/views/settings/content-base","ghost/mixins/pagination-view-infinite-scroll","exports"],function(a,b,c){"use strict";var d=a["default"],e=b["default"],f=d.extend(e);c["default"]=f}),define("ghost/views/settings/tags/settings-menu",["exports"],function(a){"use strict";var b=Ember.View.extend({saveText:Ember.computed("controller.model.isNew",function(){return this.get("controller.model.isNew")?"Add Tag":"Save Tag"}),updateUploader:Ember.observer("controller.activeTag.image","controller.uploaderReference",function(){var a=this.get("controller.uploaderReference"),b=this.get("controller.activeTag.image");a&&a[0]&&(b?a[0].uploaderUi.initWithImage():a[0].uploaderUi.reset())})});a["default"]=b}),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:["js-users-list-view"]});b["default"]=d}),define("ghost/templates/-contributors",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/ErisDS"),a.setAttribute(d,"title","ErisDS");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","ErisDS"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/PaulAdamDavis"),a.setAttribute(d,"title","PaulAdamDavis");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","PaulAdamDavis"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/JohnONolan"),a.setAttribute(d,"title","JohnONolan");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","JohnONolan"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/halfdan"),a.setAttribute(d,"title","halfdan");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","halfdan"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/jaswilli"),a.setAttribute(d,"title","jaswilli");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","jaswilli"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/felixrieseberg"),a.setAttribute(d,"title","felixrieseberg");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","felixrieseberg"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/novaugust"),a.setAttribute(d,"title","novaugust");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","novaugust"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/sebgie"),a.setAttribute(d,"title","sebgie");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","sebgie"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/hswolff"),a.setAttribute(d,"title","hswolff");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","hswolff"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/rwjblue"),a.setAttribute(d,"title","rwjblue");var e=a.createTextNode("\n		");
  a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","rwjblue"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/javorszky"),a.setAttribute(d,"title","javorszky");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","javorszky"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/cobbspur"),a.setAttribute(d,"title","cobbspur");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","cobbspur"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/jillesme"),a.setAttribute(d,"title","jillesme");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","jillesme"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/morficus"),a.setAttribute(d,"title","morficus");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","morficus"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/SiR-DanieL"),a.setAttribute(d,"title","SiR-DanieL");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","SiR-DanieL"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/mattiascibien"),a.setAttribute(d,"title","mattiascibien");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","mattiascibien"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/wjake"),a.setAttribute(d,"title","wjake");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","wjake"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/shindakun"),a.setAttribute(d,"title","shindakun");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","shindakun"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/IanMitchell"),a.setAttribute(d,"title","IanMitchell");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","IanMitchell"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n	");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","https://github.com/iBotPeaches"),a.setAttribute(d,"title","iBotPeaches");var e=a.createTextNode("\n		");a.appendChild(d,e);var e=a.createElement("img");a.setAttribute(e,"alt","iBotPeaches"),a.appendChild(d,e);var e=a.createTextNode("\n	");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");return a.appendChild(c,d),a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.subexpr,g=e.concat,h=e.attribute;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[0,1,1]),k=d.childAt(i,[2,1,1]),l=d.childAt(i,[4,1,1]),m=d.childAt(i,[6,1,1]),n=d.childAt(i,[8,1,1]),o=d.childAt(i,[10,1,1]),p=d.childAt(i,[12,1,1]),q=d.childAt(i,[14,1,1]),r=d.childAt(i,[16,1,1]),s=d.childAt(i,[18,1,1]),t=d.childAt(i,[20,1,1]),u=d.childAt(i,[22,1,1]),v=d.childAt(i,[24,1,1]),w=d.childAt(i,[26,1,1]),x=d.childAt(i,[28,1,1]),y=d.childAt(i,[30,1,1]),z=d.childAt(i,[32,1,1]),A=d.childAt(i,[34,1,1]),B=d.childAt(i,[36,1,1]),C=d.childAt(i,[38,1,1]),D=d.createAttrMorph(j,"src"),E=d.createAttrMorph(k,"src"),F=d.createAttrMorph(l,"src"),G=d.createAttrMorph(m,"src"),H=d.createAttrMorph(n,"src"),I=d.createAttrMorph(o,"src"),J=d.createAttrMorph(p,"src"),K=d.createAttrMorph(q,"src"),L=d.createAttrMorph(r,"src"),M=d.createAttrMorph(s,"src"),N=d.createAttrMorph(t,"src"),O=d.createAttrMorph(u,"src"),P=d.createAttrMorph(v,"src"),Q=d.createAttrMorph(w,"src"),R=d.createAttrMorph(x,"src"),S=d.createAttrMorph(y,"src"),T=d.createAttrMorph(z,"src"),U=d.createAttrMorph(A,"src"),V=d.createAttrMorph(B,"src"),W=d.createAttrMorph(C,"src");return h(b,D,j,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/ErisDS"])),h(b,E,k,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/PaulAdamDavis"])),h(b,F,l,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/JohnONolan"])),h(b,G,m,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/halfdan"])),h(b,H,n,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/jaswilli"])),h(b,I,o,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/felixrieseberg"])),h(b,J,p,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/novaugust"])),h(b,K,q,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/sebgie"])),h(b,L,r,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/hswolff"])),h(b,M,s,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/rwjblue"])),h(b,N,t,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/javorszky"])),h(b,O,u,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/cobbspur"])),h(b,P,v,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/jillesme"])),h(b,Q,w,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/morficus"])),h(b,R,x,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/SiR-DanieL"])),h(b,S,y,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/mattiascibien"])),h(b,T,z,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/wjake"])),h(b,U,A,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/shindakun"])),h(b,V,B,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/IanMitchell"])),h(b,W,C,"src",g(b,[f(b,a,"gh-path",["admin","/img/contributors"],{}),"/iBotPeaches"])),i}}}())}),define("ghost/templates/-import-errors",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createElement("tr"),d=a.createElement("td");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(d.childAt(g,[1,0]),-1,-1);return f(b,h,a,"error.message"),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("table");a.setAttribute(c,"class","table");var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e);var j=e.createMorphAt(e.childAt(i,[0]),0,-1);return h(c,j,b,"each",[g(c,b,"importErrors")],{keyword:"error"},a,null),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"if",[g(c,b,"importErrors")],{},a,null),i}}}())}),define("ghost/templates/-navbar",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","nav-label");var d=a.createElement("i");a.setAttribute(d,"class","icon-content"),a.appendChild(c,d);var d=a.createTextNode(" Content");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","nav-label");var d=a.createElement("i");a.setAttribute(d,"class","icon-add"),a.appendChild(c,d);var d=a.createTextNode(" New Post");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),c=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","nav-label");var d=a.createElement("i");a.setAttribute(d,"class","icon-settings2"),a.appendChild(c,d);var d=a.createTextNode(" Settings");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.block;e.detectNamespace(d);var h;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(h=this.build(e),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=e.cloneNode(this.cachedFragment,!0))):h=this.build(e),this.cachedFragment&&e.repairClonedNode(h,[0,1]);var i=e.createMorphAt(h,0,1,d);return g(c,i,b,"link-to",["settings"],{classNames:"nav-item nav-settings js-nav-item"},a,null),h}}}(),d=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","image");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("img");a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n            ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","name");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createTextNode(" ");a.appendChild(c,d);var d=a.createElement("i");a.setAttribute(d,"class","icon-chevron-down"),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("small"),e=a.createTextNode("Profile & Settings");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element,h=e.content;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[1]),k=d.childAt(j,[1]),l=d.createMorphAt(d.childAt(i,[3]),0,1);return g(b,j,a,"bind-attr",[],{style:f(b,a,"userImageBackground")}),g(b,k,a,"bind-attr",[],{src:"userImage",title:"userImageAlt"}),h(b,l,a,"session.user.name"),i}}}(),e=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("i");a.setAttribute(c,"class","icon-user"),a.appendChild(b,c);var c=a.createTextNode(" Your Profile");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("i");a.setAttribute(c,"class","icon-power"),a.appendChild(b,c);var c=a.createTextNode(" Sign Out");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("ul");a.setAttribute(c,"class","dropdown-menu dropdown-triangle-top-right js-user-menu-dropdown-menu"),a.setAttribute(c,"role","menu");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"role","presentation"),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"class","divider"),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"role","presentation"),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.get,i=g.block;f.detectNamespace(e);var j;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(j=this.build(f),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=f.cloneNode(this.cachedFragment,!0))):j=this.build(f);var k=f.childAt(j,[1]),l=f.createMorphAt(f.childAt(k,[1]),-1,-1),m=f.createMorphAt(f.childAt(k,[5]),-1,-1);return i(d,l,c,"link-to",["settings.users.user",h(d,c,"session.user.slug")],{classNames:"dropdown-item user-menu-profile js-nav-item",role:"menuitem",tabindex:"-1"},a,null),i(d,m,c,"link-to",["signout"],{classNames:"dropdown-item user-menu-signout",role:"menuitem",tabindex:"-1"},b,null),j}}}(),f=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","help-button");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("i");a.setAttribute(d,"class","icon-question");var e=a.createElement("span");a.setAttribute(e,"class","hidden");var f=a.createTextNode("Help");a.appendChild(e,f),a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),g=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("ul");a.setAttribute(c,"class","dropdown-menu dropdown-triangle-top"),a.setAttribute(c,"role","menu");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"role","presentation");var e=a.createElement("a");a.setAttribute(e,"class","dropdown-item help-menu-support"),a.setAttribute(e,"role","menuitem"),a.setAttribute(e,"tabindex","-1"),a.setAttribute(e,"href","http://support.ghost.org/"),a.setAttribute(e,"target","_blank");var f=a.createElement("i");a.setAttribute(f,"class","icon-support"),a.appendChild(e,f);var f=a.createTextNode(" Support Center");a.appendChild(e,f),a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"role","presentation");var e=a.createElement("a");a.setAttribute(e,"class","dropdown-item help-menu-tweet"),a.setAttribute(e,"role","menuitem"),a.setAttribute(e,"tabindex","-1"),a.setAttribute(e,"href","https://twitter.com/intent/tweet?text=%40TryGhost+Hi%21+Can+you+help+me+with+&related=TryGhost"),a.setAttribute(e,"target","_blank"),a.setAttribute(e,"onclick","window.open(this.href, 'twitter-share', 'width=550,height=235');return false;");var f=a.createElement("i");a.setAttribute(f,"class","icon-twitter"),a.appendChild(e,f);var f=a.createTextNode(" Tweet @TryGhost!");a.appendChild(e,f),a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"class","divider"),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"role","presentation");var e=a.createElement("a");a.setAttribute(e,"class","dropdown-item help-menu-how-to"),a.setAttribute(e,"role","menuitem"),a.setAttribute(e,"tabindex","-1"),a.setAttribute(e,"href","http://support.ghost.org/how-to-use-ghost/"),a.setAttribute(e,"target","_blank");var f=a.createElement("i");a.setAttribute(f,"class","icon-book"),a.appendChild(e,f);var f=a.createTextNode(" How to Use Ghost");a.appendChild(e,f),a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"role","presentation");var e=a.createElement("a");a.setAttribute(e,"class","dropdown-item help-menu-markdown"),a.setAttribute(e,"role","menuitem"),a.setAttribute(e,"tabindex","-1"),a.setAttribute(e,"href","");var f=a.createElement("i");a.setAttribute(f,"class","icon-markdown"),a.appendChild(e,f);var f=a.createTextNode(" Markdown Help");a.appendChild(e,f),a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"class","divider"),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"role","presentation");var e=a.createElement("a");a.setAttribute(e,"class","dropdown-item help-menu-wishlist"),a.setAttribute(e,"role","menuitem"),a.setAttribute(e,"tabindex","-1"),a.setAttribute(e,"href","http://ideas.ghost.org/"),a.setAttribute(e,"target","_blank");var f=a.createElement("i");a.setAttribute(f,"class","icon-list"),a.appendChild(e,f);var f=a.createTextNode(" Wishlist");a.appendChild(e,f),a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.childAt(g,[1,9,0]);return f(b,h,a,"action",["openModal","markdown"],{}),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("nav");a.setAttribute(c,"class","global-nav"),a.setAttribute(c,"role","navigation");var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"class","nav-item ghost-logo"),a.setAttribute(d,"title","Visit blog");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","nav-label");var f=a.createElement("i");a.setAttribute(f,"class","icon-ghost"),a.appendChild(e,f);var f=a.createTextNode(" ");a.appendChild(e,f);var f=a.createElement("span"),g=a.createTextNode("Visit blog");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode(" ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n");a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","nav-item user-menu");var e=a.createTextNode("\n");a.appendChild(d,e);var e=a.createTextNode("");a.appendChild(d,e);var e=a.createTextNode("    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","nav-item help-menu");var e=a.createTextNode("\n");a.appendChild(d,e);var e=a.createTextNode("");a.appendChild(d,e);var e=a.createTextNode("    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","nav-cover js-nav-cover"),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(h,i,j){var k=i.dom,l=i.hooks,m=l.subexpr,n=l.concat,o=l.attribute,p=l.block,q=l.get;k.detectNamespace(j);var r;i.useFragmentCache&&k.canClone?(null===this.cachedFragment&&(r=this.build(k),this.hasRendered?this.cachedFragment=r:this.hasRendered=!0),this.cachedFragment&&(r=k.cloneNode(this.cachedFragment,!0))):r=this.build(k);var s=k.childAt(r,[0]),t=k.childAt(s,[1]),u=k.childAt(s,[6]);this.cachedFragment&&k.repairClonedNode(u,[1]);var v=k.childAt(s,[8]);this.cachedFragment&&k.repairClonedNode(v,[1]);var w=k.createAttrMorph(t,"href"),x=k.createMorphAt(s,2,3),y=k.createMorphAt(s,3,4),z=k.createMorphAt(s,4,5),A=k.createMorphAt(u,0,1),B=k.createMorphAt(u,1,2),C=k.createMorphAt(v,0,1),D=k.createMorphAt(v,1,2);return o(i,w,t,"href",n(i,[m(i,h,"gh-path",["blog"],{})])),p(i,x,h,"link-to",["posts"],{classNames:"nav-item nav-content js-nav-item"},a,null),p(i,y,h,"link-to",["editor.new"],{classNames:"nav-item nav-new js-nav-item"},b,null),p(i,z,h,"unless",[q(i,h,"session.user.isAuthor")],{},c,null),p(i,A,h,"gh-dropdown-button",[],{dropdownName:"user-menu",tagName:"div",classNames:"nav-label clearfix"},d,null),p(i,B,h,"gh-dropdown",[],{tagName:"div",classNames:"dropdown",name:"user-menu",closeOnClick:"true"},e,null),p(i,C,h,"gh-dropdown-button",[],{dropdownName:"help-menu",tagName:"div",classNames:"nav-label clearfix"},f,null),p(i,D,h,"gh-dropdown",[],{tagName:"div",classNames:"dropdown",name:"help-menu",closeOnClick:"true"},g,null),r}}}())}),define("ghost/templates/-publish-bar",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("footer");a.setAttribute(c,"id","publish-bar");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","publish-bar-inner");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","publish-bar-actions");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("button");a.setAttribute(f,"type","button"),a.setAttribute(f,"class","post-settings"),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.inline,g=e.element;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[0,1]),j=d.childAt(i,[2]),k=d.childAt(j,[1]),l=d.createMorphAt(i,0,1),m=d.createMorphAt(j,2,3);return f(b,l,a,"render",["post-tags-input"],{}),g(b,k,a,"action",["toggleSettingsMenu"],{}),f(b,m,a,"view",["editor-save-button"],{id:"entry-actions",classNameBindings:"model.isNew:unsaved"}),h}}}())}),define("ghost/templates/-user-actions-menu",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("li"),d=a.createElement("button"),e=a.createTextNode("Make Owner");a.appendChild(d,e),a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[0,0]);return g(b,i,a,"action",["openModal","transfer-owner",f(b,a,"this")],{}),h}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("li"),d=a.createElement("button");a.setAttribute(d,"class","delete");var e=a.createTextNode("Delete User");a.appendChild(d,e),a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[0,0]);return g(b,i,a,"action",["openModal","delete-user",f(b,a,"this")],{}),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.get,i=g.block;f.detectNamespace(e);var j;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(j=this.build(f),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=f.cloneNode(this.cachedFragment,!0))):j=this.build(f),this.cachedFragment&&f.repairClonedNode(j,[0,1,2]);var k=f.createMorphAt(j,0,1,e),l=f.createMorphAt(j,1,2,e);return i(d,k,c,"if",[h(d,c,"view.canMakeOwner")],{},a,null),i(d,l,c,"if",[h(d,c,"view.deleteUserActionIsVisible")],{},b,null),j}}}())}),define("ghost/templates/application",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.inline;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"partial",["navbar"],{}),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("a");a.setAttribute(c,"class","sr-only sr-only-focusable"),a.setAttribute(c,"href","#gh-main");var d=a.createTextNode("Skip to main content");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createTextNode("\n");
  a.appendChild(b,c);var c=a.createElement("main");a.setAttribute(c,"id","gh-main"),a.setAttribute(c,"class","viewport"),a.setAttribute(c,"role","main");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block,i=f.element,j=f.inline,k=f.content;e.detectNamespace(d);var l;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(l=this.build(e),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=e.cloneNode(this.cachedFragment,!0))):l=this.build(e);var m=e.childAt(l,[3]),n=e.createMorphAt(l,1,2,d),o=e.createMorphAt(m,0,1),p=e.createMorphAt(m,1,2),q=e.createMorphAt(l,4,5,d),r=e.createMorphAt(l,5,6,d),s=e.createMorphAt(l,6,7,d);return h(c,n,b,"unless",[g(c,b,"hideNav")],{},a,null),i(c,m,b,"bind-attr",[],{"data-notification-count":g(c,b,"topNotificationCount")}),j(c,o,b,"gh-notifications",[],{location:"top",notify:"topNotificationChange"}),k(c,p,b,"outlet"),j(c,q,b,"gh-notifications",[],{location:"bottom"}),j(c,r,b,"outlet",["modal"],{}),j(c,s,b,"outlet",["settings-menu"],{}),l}}}())}),define("ghost/templates/components/gh-activating-list-item",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d),this.cachedFragment&&d.repairClonedNode(g,[0,1,2]);var h=d.createMorphAt(g,0,1,c),i=d.createMorphAt(g,1,2,c);return f(b,h,a,"title"),f(b,i,a,"yield"),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"link-to",[g(c,b,"route")],{alternateActive:g(c,b,"active")},a,null),i}}}())}),define("ghost/templates/components/gh-file-upload",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createElement("input");a.setAttribute(c,"data-url","upload"),a.setAttribute(c,"class","btn btn-green"),a.setAttribute(c,"type","file"),a.setAttribute(c,"name","importfile"),a.appendChild(b,c);var c=a.createTextNode("\n    ");a.appendChild(b,c);var c=a.createElement("button");a.setAttribute(c,"type","submit"),a.setAttribute(c,"class","btn btn-blue"),a.setAttribute(c,"id","startupload");var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element,h=e.content;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[1]),k=d.childAt(i,[3]),l=d.createMorphAt(k,0,1);return g(b,j,a,"bind-attr",[],{accept:f(b,a,"options.acceptEncoding")}),g(b,k,a,"bind-attr",[],{disabled:f(b,a,"uploadButtonDisabled")}),g(b,k,a,"action",["upload"],{}),h(b,l,a,"uploadButtonText"),i}}}())}),define("ghost/templates/components/gh-markdown",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d),this.cachedFragment&&d.repairClonedNode(h,[0]);var i=d.createMorphAt(h,0,1,c);return g(b,i,a,"gh-format-markdown",[f(b,a,"markdown")],{}),h}}}())}),define("ghost/templates/components/gh-modal-dialog",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createElement("header");a.setAttribute(b,"class","modal-header");var c=a.createElement("h1");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(d.childAt(g,[0]),-1,-1);return f(b,h,a,"title"),g}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createElement("a");a.setAttribute(b,"class","close"),a.setAttribute(b,"href",""),a.setAttribute(b,"title","Close");var c=a.createElement("span");a.setAttribute(c,"class","hidden");var d=a.createTextNode("Close");return a.appendChild(c,d),a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=g;return f(b,h,a,"action",["closeModal"],{}),g}}}(),c=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("footer");a.setAttribute(c,"class","modal-footer");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("button");a.setAttribute(d,"type","button");var e=a.createTextNode("\n                    ");a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createComment("\n                Required to strip the white-space between buttons\n                ");a.appendChild(c,d);var d=a.createElement("button");a.setAttribute(d,"type","button");var e=a.createTextNode("\n                    ");a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element,g=e.content;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[1]),j=d.childAt(i,[1]),k=d.childAt(i,[3]),l=d.createMorphAt(j,0,1),m=d.createMorphAt(k,0,1);return f(b,j,a,"bind-attr",[],{"class":"rejectButtonClass :js-button-reject"}),f(b,j,a,"action",["confirm","reject"],{}),g(b,l,a,"confirm.reject.text"),f(b,k,a,"bind-attr",[],{"class":"acceptButtonClass :js-button-accept"}),f(b,k,a,"action",["confirm","accept"],{}),g(b,m,a,"confirm.accept.text"),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("div");a.setAttribute(c,"class","modal-container js-modal-container");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("article"),e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("section");a.setAttribute(e,"class","modal-content");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("section");a.setAttribute(f,"class","modal-body");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("div");return a.setAttribute(c,"class","modal-background js-modal-background"),a.appendChild(b,c),b},render:function(d,e,f){var g=e.dom,h=e.hooks,i=h.element,j=h.get,k=h.block,l=h.content;g.detectNamespace(f);var m;e.useFragmentCache&&g.canClone?(null===this.cachedFragment&&(m=this.build(g),this.hasRendered?this.cachedFragment=m:this.hasRendered=!0),this.cachedFragment&&(m=g.cloneNode(this.cachedFragment,!0))):m=this.build(g);var n=g.childAt(m,[0]),o=g.childAt(n,[1]),p=g.childAt(o,[1]),q=g.createMorphAt(p,0,1),r=g.createMorphAt(p,1,2),s=g.createMorphAt(g.childAt(p,[3]),0,1),t=g.createMorphAt(p,4,5);return i(e,n,d,"action",["closeModal"],{}),i(e,o,d,"bind-attr",[],{"class":"klass :js-modal"}),i(e,p,d,"action",["noBubble"],{bubbles:!1,preventDefault:!1}),k(e,q,d,"if",[j(e,d,"title")],{},a,null),k(e,r,d,"if",[j(e,d,"showClose")],{},b,null),l(e,s,d,"yield"),k(e,t,d,"if",[j(e,d,"confirm")],{},c,null),m}}}())}),define("ghost/templates/components/gh-navitem",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","navigation-item-drag-handle icon-grab");var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","hidden");var e=a.createTextNode("Reorder");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("button");a.setAttribute(c,"type","button"),a.setAttribute(c,"class","add-navigation-link icon-add");var d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","hidden");var e=a.createTextNode("Add");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.childAt(g,[1]);return f(b,h,a,"action",["addItem"],{}),g}}}(),c=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("button");a.setAttribute(c,"type","button"),a.setAttribute(c,"class","navigation-delete icon-trash");var d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","hidden");var e=a.createTextNode("Delete");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[1]);return g(b,i,a,"action",["deleteItem",f(b,a,"navItem")],{}),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","navigation-inputs");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","navigation-item-label");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","navigation-item-url");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","navigation-item-action");var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(d,e,f){var g=e.dom,h=e.hooks,i=h.get,j=h.block,k=h.inline;g.detectNamespace(f);var l;e.useFragmentCache&&g.canClone?(null===this.cachedFragment&&(l=this.build(g),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=g.cloneNode(this.cachedFragment,!0))):l=this.build(g),this.cachedFragment&&g.repairClonedNode(l,[0]);var m=g.childAt(l,[1]),n=g.createMorphAt(l,0,1,f),o=g.createMorphAt(g.childAt(m,[1]),0,1),p=g.createMorphAt(g.childAt(m,[3]),0,1),q=g.createMorphAt(g.childAt(l,[3]),0,-1);return j(e,n,d,"unless",[i(e,d,"navItem.last")],{},a,null),k(e,o,d,"gh-trim-focus-input",[],{focus:i(e,d,"navItem.last"),placeholder:"Label",value:i(e,d,"navItem.label")}),k(e,p,d,"gh-navitem-url-input",[],{baseUrl:i(e,d,"baseUrl"),url:i(e,d,"navItem.url"),last:i(e,d,"navItem.last"),change:"updateUrl"}),j(e,q,d,"if",[i(e,d,"navItem.last")],{},b,c),l}}}())}),define("ghost/templates/components/gh-notification",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createElement("section"),c=a.createTextNode("\n    ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","notification-message");var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n    ");a.appendChild(b,c);var c=a.createElement("button");a.setAttribute(c,"class","close");var d=a.createElement("span");a.setAttribute(d,"class","hidden");var e=a.createTextNode("Close");a.appendChild(d,e),a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element,g=e.content;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=h,j=d.childAt(i,[3]),k=d.createMorphAt(d.childAt(i,[1]),0,1);return f(b,i,a,"bind-attr",[],{"class":":js-notification typeClass"}),g(b,k,a,"message.message"),f(b,j,a,"action",["closeNotification"],{}),h}}}())}),define("ghost/templates/components/gh-notifications",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(h,0,1,c);return g(b,i,a,"gh-notification",[],{message:f(b,a,"message")}),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"each",[g(c,b,"messages")],{keyword:"message"},a,null),i}}}())}),define("ghost/templates/components/gh-role-selector",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("option");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element,h=e.content;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[0]),k=d.createMorphAt(j,-1,-1);return g(b,j,a,"bind-attr",[],{value:f(b,a,"role.id")}),h(b,k,a,"role.name"),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("select"),d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.element,i=f.block;e.detectNamespace(d);var j;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(j=this.build(e),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=e.cloneNode(this.cachedFragment,!0))):j=this.build(e);var k=e.childAt(j,[0]),l=e.createMorphAt(k,0,-1);return h(c,k,b,"bind-attr",[],{id:g(c,b,"selectId"),name:g(c,b,"selectName")}),i(c,l,b,"each",[g(c,b,"roles")],{keyword:"role"},a,null),j}}}())}),define("ghost/templates/components/gh-uploader",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("span");a.setAttribute(c,"class","media");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","hidden");var e=a.createTextNode("Image Upload");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("img");a.setAttribute(c,"class","js-upload-target"),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","description");var d=a.createElement("strong");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("input");a.setAttribute(c,"data-url","upload"),a.setAttribute(c,"class","js-fileupload main fileupload"),a.setAttribute(c,"type","file"),a.setAttribute(c,"name","uploadimage"),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element,h=e.content;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[2]),k=d.createMorphAt(d.childAt(i,[4]),-1,0);return g(b,j,a,"bind-attr",[],{src:f(b,a,"imageSource")}),h(b,k,a,"description"),i}}}())}),define("ghost/templates/components/gh-url-preview",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d),this.cachedFragment&&d.repairClonedNode(g,[0]);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"url"),g}}}())}),define("ghost/templates/editor-save-button",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createElement("i");a.setAttribute(c,"class","options"),a.appendChild(b,c);var c=a.createTextNode("\n    ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","sr-only");var d=a.createTextNode("Toggle Settings Menu");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createElement("ul");a.setAttribute(c,"class","dropdown-menu dropdown-triangle-bottom-right");var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("li"),e=a.createTextNode("\n            ");a.appendChild(d,e);var e=a.createElement("a");a.setAttribute(e,"href","#"),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("li"),e=a.createTextNode("\n            ");a.appendChild(d,e);var e=a.createElement("a");a.setAttribute(e,"href","#"),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"class","divider delete"),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("li");a.setAttribute(d,"class","delete");var e=a.createTextNode("\n            ");a.appendChild(d,e);var e=a.createElement("a");a.setAttribute(e,"href","#"),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element,g=e.content,h=e.get;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[1]),k=d.childAt(j,[1]),l=d.childAt(k,[1]),m=d.childAt(j,[3]),n=d.childAt(m,[1]),o=d.childAt(j,[7,1]),p=d.createMorphAt(l,-1,-1),q=d.createMorphAt(n,-1,-1),r=d.createMorphAt(o,-1,-1);return f(b,k,a,"bind-attr",[],{"class":":post-save-publish willPublish:active"}),f(b,l,a,"action",["setSaveType","publish"],{}),g(b,p,a,"view.publishText"),f(b,m,a,"bind-attr",[],{"class":":post-save-draft willPublish::active"}),f(b,n,a,"action",["setSaveType","draft"],{}),g(b,q,a,"view.draftText"),f(b,o,a,"action",["openModal","delete-post",h(b,a,"this")],{}),g(b,r,a,"view.deleteText"),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("button");a.setAttribute(c,"type","button"),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.element,i=g.content,j=g.block;f.detectNamespace(e);var k;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(k=this.build(f),this.hasRendered?this.cachedFragment=k:this.hasRendered=!0),this.cachedFragment&&(k=f.cloneNode(this.cachedFragment,!0))):k=this.build(f),this.cachedFragment&&f.repairClonedNode(k,[2,3]);var l=f.childAt(k,[0]),m=f.createMorphAt(l,-1,-1),n=f.createMorphAt(k,1,2,e),o=f.createMorphAt(k,2,3,e);return h(d,l,c,"action",["save"],{}),h(d,l,c,"bind-attr",[],{"class":":btn :btn-sm view.isDangerous:btn-red:btn-blue :js-publish-button"}),i(d,m,c,"view.saveText"),j(d,n,c,"gh-dropdown-button",[],{dropdownName:"post-save-menu",classNameBindings:":btn :btn-sm view.isDangerous:btn-red:btn-blue btnopen:active :dropdown-toggle :up"},a,null),j(d,o,c,"gh-dropdown",[],{name:"post-save-menu",closeOnClick:"true",tagName:"div",classNames:"dropdown editor-options"},b,null),k}}}())}),define("ghost/templates/editor/edit",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","page-header");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("button");a.setAttribute(d,"class","menu-button js-menu-button");var e=a.createElement("span");a.setAttribute(e,"class","sr-only");var f=a.createTextNode("Menu");a.appendChild(e,f),a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title");var e=a.createTextNode("Editor");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","page-content");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("header"),e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("section");a.setAttribute(e,"class","box entry-title");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createElement("section"),e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("header");a.setAttribute(e,"class","floatingheader");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("small"),g=a.createTextNode("Markdown");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("a");a.setAttribute(f,"class","markdown-help"),a.setAttribute(f,"href","");var g=a.createElement("span");a.setAttribute(g,"class","hidden");var h=a.createTextNode("What is Markdown?");a.appendChild(g,h),a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("section");a.setAttribute(e,"id","entry-markdown-content"),a.setAttribute(e,"class","entry-markdown-content");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createElement("section"),e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("header");a.setAttribute(e,"class","floatingheader");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("small"),g=a.createTextNode("Preview ");a.appendChild(f,g);var g=a.createElement("span");a.setAttribute(g,"class","entry-word-count js-entry-word-count"),a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("section");a.setAttribute(e,"class","entry-preview-content js-entry-preview-content");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createTextNode("\n\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element,g=e.get,h=e.inline;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[0,1]),k=d.childAt(i,[2]),l=d.childAt(k,[3]),m=d.childAt(l,[1]),n=d.childAt(m,[3]),o=d.childAt(k,[5]),p=d.childAt(o,[1]),q=d.createMorphAt(d.childAt(k,[1,1]),0,1),r=d.createMorphAt(d.childAt(l,[3]),0,1),s=d.createMorphAt(d.childAt(p,[1,1]),-1,-1),t=d.createMorphAt(d.childAt(o,[3]),0,1),u=d.createMorphAt(k,6,7);return f(b,j,a,"action",["toggleGlobalMobileNav"],{}),h(b,q,a,"gh-trim-focus-input",[],{type:"text",id:"entry-title",placeholder:"Your Post Title",value:g(b,a,"model.titleScratch"),tabindex:"1",focus:g(b,a,"shouldFocusTitle")}),f(b,l,a,"bind-attr",[],{"class":":entry-markdown :js-entry-markdown isPreview::active"}),f(b,m,a,"action",["togglePreview",!1],{}),f(b,n,a,"action",["openModal","markdown"],{}),h(b,r,a,"gh-codemirror",[],{value:g(b,a,"model.scratch"),scrollInfo:g(b,a,"view.markdownScrollInfo"),setCodeMirror:"setCodeMirror",openModal:"openModal",typingPause:"autoSave",focus:g(b,a,"shouldFocusEditor"),focusCursorAtEnd:g(b,a,"model.isDirty"),onFocusIn:"autoSaveNew"}),f(b,o,a,"bind-attr",[],{"class":":entry-preview :js-entry-preview isPreview:active"}),f(b,p,a,"action",["togglePreview",!0],{}),h(b,s,a,"gh-count-words",[g(b,a,"model.scratch")],{}),h(b,t,a,"gh-markdown",[],{classNames:"rendered-markdown js-rendered-markdown",markdown:g(b,a,"model.scratch"),scrollPosition:g(b,a,"view.scrollPosition"),uploadStarted:"disableCodeMirror",uploadFinished:"enableCodeMirror",uploadSuccess:"handleImgUpload"}),h(b,u,a,"partial",["publish-bar"],{}),i
  }}}())}),define("ghost/templates/error",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createElement("em");return a.setAttribute(b,"class","error-stack-function"),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,-1,-1);return f(b,h,a,"item.function"),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createElement("li"),d=a.createTextNode("\n                    at\n                    ");a.appendChild(c,d);var d=a.createTextNode("\n                    ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","error-stack-file");var e=a.createTextNode("(");a.appendChild(d,e);var e=a.createTextNode(")");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block,i=f.content;e.detectNamespace(d);var j;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(j=this.build(e),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=e.cloneNode(this.cachedFragment,!0))):j=this.build(e);var k=e.childAt(j,[1]),l=e.createMorphAt(k,0,1),m=e.createMorphAt(e.childAt(k,[2]),0,1);return h(c,l,b,"if",[g(c,b,"item.function")],{},a,null),i(c,m,b,"item.at"),j}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","error-stack");var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("h3"),e=a.createTextNode("Stack Trace");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("p"),e=a.createElement("strong");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("ul");a.setAttribute(d,"class","error-stack-list");var e=a.createTextNode("\n");a.appendChild(d,e);var e=a.createTextNode("        ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.content,h=f.get,i=f.block;e.detectNamespace(d);var j;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(j=this.build(e),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=e.cloneNode(this.cachedFragment,!0))):j=this.build(e);var k=e.childAt(j,[1]),l=e.createMorphAt(e.childAt(k,[3,0]),-1,-1),m=e.createMorphAt(e.childAt(k,[5]),0,1);return g(c,l,b,"message"),i(c,m,b,"each",[h(c,b,"stack")],{keyword:"item"},a,null),j}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("section");a.setAttribute(c,"class","error-content error-404 js-error-container");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("section");a.setAttribute(d,"class","error-details");var e=a.createTextNode("\n         ");a.appendChild(d,e);var e=a.createElement("figure");a.setAttribute(e,"class","error-image");var f=a.createTextNode("\n             ");a.appendChild(e,f);var f=a.createElement("img");a.setAttribute(f,"class","error-ghost"),a.appendChild(e,f);var f=a.createTextNode("\n         ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n         ");a.appendChild(d,e);var e=a.createElement("section");a.setAttribute(e,"class","error-message");var f=a.createTextNode("\n             ");a.appendChild(e,f);var f=a.createElement("h1");a.setAttribute(f,"class","error-code"),a.appendChild(e,f);var f=a.createTextNode("\n             ");a.appendChild(e,f);var f=a.createElement("h2");a.setAttribute(f,"class","error-description"),a.appendChild(e,f);var f=a.createTextNode("\n             ");a.appendChild(e,f);var f=a.createElement("a");a.setAttribute(f,"class","error-link");var g=a.createTextNode("Go to the front page →");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n         ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.subexpr,h=f.concat,i=f.attribute,j=f.content,k=f.get,l=f.block;e.detectNamespace(d);var m;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(m=this.build(e),this.hasRendered?this.cachedFragment=m:this.hasRendered=!0),this.cachedFragment&&(m=e.cloneNode(this.cachedFragment,!0))):m=this.build(e),this.cachedFragment&&e.repairClonedNode(m,[2]);var n=e.childAt(m,[0,1]),o=e.childAt(n,[1,1]),p=e.childAt(n,[3]),q=e.childAt(p,[5]),r=e.createAttrMorph(o,"src"),s=e.createAttrMorph(o,"srcset"),t=e.createMorphAt(e.childAt(p,[1]),-1,-1),u=e.createMorphAt(e.childAt(p,[3]),-1,-1),v=e.createAttrMorph(q,"href"),w=e.createMorphAt(m,1,2,d);return i(c,r,o,"src",h(c,[g(c,b,"gh-path",["admin","/img/404-ghost@2x.png"],{})])),i(c,s,o,"srcset",h(c,[g(c,b,"gh-path",["admin","/img/404-ghost.png"],{})," 1x, ",g(c,b,"gh-path",["admin","/img/404-ghost@2x.png"],{})," 2x"])),j(c,t,b,"code"),j(c,u,b,"message"),i(c,v,q,"href",h(c,[g(c,b,"gh-path",["blog"],{})])),l(c,w,b,"if",[k(c,b,"stack")],{},a,null),m}}}())}),define("ghost/templates/forgotten",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("section");a.setAttribute(c,"class","forgotten-box js-forgotten-box fade-in");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("form");a.setAttribute(d,"id","forgotten"),a.setAttribute(d,"class","forgotten-form"),a.setAttribute(d,"method","post"),a.setAttribute(d,"novalidate","novalidate");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","email-wrap");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"class","btn btn-blue"),a.setAttribute(e,"type","submit");var f=a.createTextNode("Send new password");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline,h=e.element;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[0,1]),k=d.childAt(j,[3]),l=d.createMorphAt(d.childAt(j,[1]),0,1);return g(b,l,a,"gh-trim-focus-input",[],{value:f(b,a,"email"),"class":"email",type:"email",placeholder:"Email Address",name:"email",autofocus:"autofocus",autocapitalize:"off",autocorrect:"off"}),h(b,k,a,"action",["submit"],{}),h(b,k,a,"bind-attr",[],{disabled:f(b,a,"submitting")}),i}}}())}),define("ghost/templates/modals/copy-html",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("\n    ");a.appendChild(b,c);var c=a.createTextNode("\n\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(h,0,1,c);return g(b,i,a,"textarea",[],{value:f(b,a,"generatedHTML"),rows:"6"}),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"gh-modal-dialog",[],{action:"closeModal",showClose:!0,type:"action",title:"Generated HTML",confirm:g(c,b,"confirm"),"class":"copy-html"},a,null),i}}}())}),define("ghost/templates/modals/delete-all",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("\n    ");a.appendChild(b,c);var c=a.createElement("p"),d=a.createTextNode("This is permanent! No backups, no restores, no magic undo button. ");a.appendChild(c,d);var d=a.createElement("br");a.appendChild(c,d);var d=a.createTextNode(" We warned you, ok?");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"gh-modal-dialog",[],{action:"closeModal",type:"action",style:"wide",title:"Would you really like to delete all content from your blog?",confirm:g(c,b,"confirm")},a,null),i}}}())}),define("ghost/templates/modals/delete-post",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("\n    ");a.appendChild(b,c);var c=a.createElement("p"),d=a.createTextNode("You're about to delete \"");a.appendChild(c,d);var d=a.createElement("strong");a.appendChild(c,d);var d=a.createTextNode('".');a.appendChild(c,d);var d=a.createElement("br");a.appendChild(c,d);var d=a.createTextNode("This is permanent! No backups, no restores, no magic undo button. ");a.appendChild(c,d);var d=a.createElement("br");a.appendChild(c,d);var d=a.createTextNode(" We warned you, ok?");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(d.childAt(g,[1,1]),-1,-1);return f(b,h,a,"model.title"),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"gh-modal-dialog",[],{action:"closeModal",showClose:!0,type:"action",style:"wide",title:"Are you sure you want to delete this post?",confirm:g(c,b,"confirm")},a,null),i}}}())}),define("ghost/templates/modals/delete-tag",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("strong"),d=a.createTextNode("WARNING:");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","red");var d=a.createTextNode("This tag is attached to ");a.appendChild(c,d);var d=a.createTextNode(" ");a.appendChild(c,d);var d=a.createTextNode(".");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode(" You're about to delete \"");a.appendChild(b,c);var c=a.createElement("strong");a.appendChild(b,c);var c=a.createTextNode('". This is permanent! No backups, no restores, no magic undo button. We warned you, ok?\n');return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.childAt(g,[3]),i=d.createMorphAt(h,0,1),j=d.createMorphAt(h,1,2),k=d.createMorphAt(d.childAt(g,[5]),-1,-1);return f(b,i,a,"model.post_count"),f(b,j,a,"postInflection"),f(b,k,a,"model.name"),g}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("strong"),d=a.createTextNode("WARNING:");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode(" You're about to delete \"");a.appendChild(b,c);var c=a.createElement("strong");a.appendChild(b,c);var c=a.createTextNode('". This is permanent! No backups, no restores, no magic undo button. We warned you, ok?\n');return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(d.childAt(g,[3]),-1,-1);return f(b,h,a,"model.name"),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.get,i=g.block;f.detectNamespace(e);var j;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(j=this.build(f),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=f.cloneNode(this.cachedFragment,!0))):j=this.build(f),this.cachedFragment&&f.repairClonedNode(j,[1]);var k=f.createMorphAt(j,0,1,e);return i(d,k,c,"if",[h(d,c,"model.post_count")],{},a,b),j}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"gh-modal-dialog",[],{action:"closeModal",showClose:!0,type:"action",style:"wide",title:"Are you sure you want to delete this tag?",confirm:g(c,b,"confirm")},a,null),i}}}())}),define("ghost/templates/modals/delete-user",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("strong"),d=a.createTextNode("WARNING:");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","red");var d=a.createTextNode("This user is the author of ");a.appendChild(c,d);var d=a.createTextNode(" ");a.appendChild(c,d);var d=a.createTextNode(".");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode(" All posts and user data will be deleted. There is no way to recover this.\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.childAt(g,[3]),i=d.createMorphAt(h,0,1),j=d.createMorphAt(h,1,2);return f(b,i,a,"userPostCount.count"),f(b,j,a,"userPostCount.inflection"),g}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("strong"),d=a.createTextNode("WARNING:");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode(" All user data will be deleted. There is no way to recover this.\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.get,i=g.block;f.detectNamespace(e);var j;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(j=this.build(f),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=f.cloneNode(this.cachedFragment,!0))):j=this.build(f),this.cachedFragment&&f.repairClonedNode(j,[0,1]);var k=f.createMorphAt(j,0,1,e);return i(d,k,c,"if",[h(d,c,"userPostCount.count")],{},a,b),j}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"unless",[g(c,b,"userPostCount.isPending")],{},a,null),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"gh-modal-dialog",[],{action:"closeModal",showClose:!0,type:"action",style:"wide",title:"Are you sure you want to delete this user?",confirm:g(c,b,"confirm")},a,null),i}}}())}),define("ghost/templates/modals/invite-new-user",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("\n        ");a.appendChild(b,c);var c=a.createElement("fieldset"),d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","form-group");var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createElement("label");a.setAttribute(e,"for","new-user-email");var f=a.createTextNode("Email Address");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createTextNode("\n            ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n            ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","form-group for-select");var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createElement("label");a.setAttribute(e,"for","new-user-role");var f=a.createTextNode("Role");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createTextNode("\n            ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n        ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[1]),j=d.createMorphAt(d.childAt(i,[1]),2,3),k=d.createMorphAt(d.childAt(i,[3]),2,3);return g(b,j,a,"input",[],{action:"confirmAccept","class":"email",id:"new-user-email",type:"email",placeholder:"Email Address",name:"email",autofocus:"autofocus",autocapitalize:"off",autocorrect:"off",value:f(b,a,"email")}),g(b,k,a,"gh-role-selector",[],{initialValue:f(b,a,"authorRole"),onChange:"setRole",selectId:"new-user-role"}),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"gh-modal-dialog",[],{action:"closeModal",showClose:!0,type:"action",title:"Invite a New User",confirm:g(c,b,"confirm"),"class":"invite-new-user"},a,null),i}}}())}),define("ghost/templates/modals/leave-editor",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("\n    ");a.appendChild(b,c);var c=a.createElement("p"),d=a.createTextNode("Hey there! It looks like you're in the middle of writing something and you haven't saved all of your\n    content.");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n    ");a.appendChild(b,c);var c=a.createElement("p"),d=a.createTextNode("Save before you go!");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"gh-modal-dialog",[],{action:"closeModal",showClose:!0,type:"action",style:"wide",title:"Are you sure you want to leave this page?",confirm:g(c,b,"confirm")},a,null),i}}}())}),define("ghost/templates/modals/markdown",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","markdown-help-container");var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("table");a.setAttribute(d,"class","modal-markdown-help-table");var e=a.createTextNode("\n            ");a.appendChild(d,e);var e=a.createElement("thead"),f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("th"),h=a.createTextNode("Result");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("th"),h=a.createTextNode("Markdown");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("th"),h=a.createTextNode("Shortcut");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n            ");a.appendChild(d,e);var e=a.createElement("tbody"),f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createElement("strong"),i=a.createTextNode("Bold");a.appendChild(h,i),a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("**text**");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Ctrl/⌘ + B ");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createElement("em"),i=a.createTextNode("Emphasize");a.appendChild(h,i),a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("*text*");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Ctrl/⌘ + I");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createElement("del"),i=a.createTextNode("Strike-through");a.appendChild(h,i),a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("~~text~~");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Ctrl + Alt + U");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createElement("a");a.setAttribute(h,"href","#");var i=a.createTextNode("Link");a.appendChild(h,i),a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("[title](http://)");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Ctrl/⌘ + K");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createElement("code"),i=a.createTextNode("Inline Code");a.appendChild(h,i),a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("`code`");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Ctrl/⌘ + Shift + K");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Image");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("![alt](http://)");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Ctrl/⌘ + Shift + I");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("List");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("* item");
  a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Ctrl + L");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Blockquote");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("> quote");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Ctrl + Q");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createElement("mark"),i=a.createTextNode("Highlight");a.appendChild(h,i),a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("==Highlight==");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td");a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("H1");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("# Heading");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td");a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("H2");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("## Heading");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Ctrl/⌘ + H");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("tr"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("H3");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("### Heading");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("td"),h=a.createTextNode("Ctrl/⌘ + H (x2)");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        For further Markdown syntax reference: ");a.appendChild(c,d);var d=a.createElement("a");a.setAttribute(d,"href","http://support.ghost.org/markdown-guide/"),a.setAttribute(d,"target","_blank");var e=a.createTextNode("Markdown Documentation");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.block;e.detectNamespace(d);var h;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(h=this.build(e),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=e.cloneNode(this.cachedFragment,!0))):h=this.build(e),this.cachedFragment&&e.repairClonedNode(h,[0,1]);var i=e.createMorphAt(h,0,1,d);return g(c,i,b,"gh-modal-dialog",[],{action:"closeModal",showClose:!0,style:"wide",title:"Markdown Help"},a,null),h}}}())}),define("ghost/templates/modals/signin",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("\n        ");a.appendChild(b,c);var c=a.createElement("form");a.setAttribute(c,"id","login"),a.setAttribute(c,"class","login-form"),a.setAttribute(c,"method","post"),a.setAttribute(c,"novalidate","novalidate");var d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","password-wrap");var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createTextNode("\n            ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("button");a.setAttribute(d,"class","btn btn-blue"),a.setAttribute(d,"type","submit");var e=a.createTextNode("Log in");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n       ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element,g=e.get,h=e.inline;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[1]),k=d.childAt(j,[3]),l=d.createMorphAt(d.childAt(j,[1]),0,1);return f(b,j,a,"action",["validateAndAuthenticate"],{on:"submit"}),h(b,l,a,"input",[],{"class":"password",type:"password",placeholder:"Password",name:"password",value:g(b,a,"password")}),f(b,k,a,"action",["validateAndAuthenticate"],{}),f(b,k,a,"bind-attr",[],{disabled:g(b,a,"submitting")}),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"gh-modal-dialog",[],{action:"closeModal",showClose:!0,type:"action",style:"wide",animation:"fade",title:"Please re-authenticate",confirm:g(c,b,"confirm")},a,null),i}}}())}),define("ghost/templates/modals/transfer-owner",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("\n    ");a.appendChild(b,c);var c=a.createElement("p"),d=a.createTextNode("Are you sure you want to transfer the ownership of this blog? You will not be able to undo this action.");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"gh-modal-dialog",[],{action:"closeModal",showClose:!0,type:"action",style:"wide",title:"Transfer Ownership",confirm:g(c,b,"confirm")},a,null),i}}}())}),define("ghost/templates/modals/upload",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("  ");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","js-drop-zone");var d=a.createTextNode("\n      ");a.appendChild(c,d);var d=a.createElement("img");a.setAttribute(d,"class","js-upload-target"),a.setAttribute(d,"alt","logo"),a.appendChild(c,d);var d=a.createTextNode("\n      ");a.appendChild(c,d);var d=a.createElement("input");a.setAttribute(d,"data-url","upload"),a.setAttribute(d,"class","js-fileupload main"),a.setAttribute(d,"type","file"),a.setAttribute(d,"name","uploadimage"),a.appendChild(c,d);var d=a.createTextNode("\n  ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[1]),j=d.childAt(i,[1]),k=d.childAt(i,[3]);return g(b,j,a,"bind-attr",[],{src:f(b,a,"src")}),g(b,k,a,"bind-attr",[],{accept:f(b,a,"acceptEncoding")}),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"gh-upload-modal",[],{action:"closeModal",close:!0,type:"action",style:"wide",model:g(c,b,"model"),imageType:g(c,b,"imageType")},a,null),i}}}())}),define("ghost/templates/post-settings-menu",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","form-group for-select");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("label");a.setAttribute(d,"for","author-list");var e=a.createTextNode("Author");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","input-icon icon-user");var e=a.createTextNode("\n                    ");a.appendChild(d,e);var e=a.createElement("span");a.setAttribute(e,"class","gh-select"),a.setAttribute(e,"tabindex","0");var f=a.createTextNode("\n                    ");a.appendChild(e,f);var f=a.createTextNode("\n                    ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(d.childAt(h,[1,3,1]),0,1);return g(b,i,a,"view",["select"],{name:"post-setting-author",id:"author-list",content:f(b,a,"authors"),optionValuePath:"content.id",optionLabelPath:"content.name",selection:f(b,a,"selectedAuthor")}),h}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                    ");a.appendChild(b,c);var c=a.createElement("button");a.setAttribute(c,"type","button");var d=a.createTextNode("\n                        ");a.appendChild(c,d);var d=a.createElement("b"),e=a.createTextNode("Meta Data");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                        ");a.appendChild(c,d);var d=a.createElement("span"),e=a.createTextNode("Extra content for SEO and social media.");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),c=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","settings-menu-header subview");var d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("button");a.setAttribute(d,"class","back icon-chevron-left settings-menu-header-action");var e=a.createElement("span");a.setAttribute(e,"class","hidden");var f=a.createTextNode("Back");a.appendChild(e,f),a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("h4"),e=a.createTextNode("Meta Data");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n        ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","settings-menu-content");var d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("form"),e=a.createTextNode("\n            ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","form-group");var f=a.createTextNode("\n                ");a.appendChild(e,f);var f=a.createElement("label");a.setAttribute(f,"for","meta-title");var g=a.createTextNode("Meta Title");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n                ");a.appendChild(e,f);var f=a.createTextNode("\n                ");a.appendChild(e,f);var f=a.createElement("p"),g=a.createTextNode("Recommended: ");a.appendChild(f,g);var g=a.createElement("b"),h=a.createTextNode("70");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode(" characters. You’ve used ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n            ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","form-group");var f=a.createTextNode("\n                ");a.appendChild(e,f);var f=a.createElement("label");a.setAttribute(f,"for","meta-description");var g=a.createTextNode("Meta Description");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n                ");a.appendChild(e,f);var f=a.createTextNode("\n                ");a.appendChild(e,f);var f=a.createElement("p"),g=a.createTextNode("Recommended: ");a.appendChild(f,g);var g=a.createElement("b"),h=a.createTextNode("156");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode(" characters. You’ve used ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n            ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","form-group");var f=a.createTextNode("\n                ");a.appendChild(e,f);var f=a.createElement("label"),g=a.createTextNode("Search Engine Result Preview");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n                ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","seo-preview");var g=a.createTextNode("\n                    ");a.appendChild(f,g);var g=a.createElement("div");a.setAttribute(g,"class","seo-preview-title"),a.appendChild(f,g);var g=a.createTextNode("\n                    ");a.appendChild(f,g);var g=a.createElement("div");a.setAttribute(g,"class","seo-preview-link"),a.appendChild(f,g);var g=a.createTextNode("\n                    ");a.appendChild(f,g);var g=a.createElement("div");a.setAttribute(g,"class","seo-preview-description"),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n            ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element,g=e.get,h=e.inline,i=e.content;d.detectNamespace(c);var j;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(j=this.build(d),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=d.cloneNode(this.cachedFragment,!0))):j=this.build(d);var k=d.childAt(j,[1,1]),l=d.childAt(j,[3,1]),m=d.childAt(l,[1]),n=d.childAt(l,[3]),o=d.childAt(l,[5,3]),p=d.createMorphAt(m,2,3),q=d.createMorphAt(d.childAt(m,[4]),2,-1),r=d.createMorphAt(n,2,3),s=d.createMorphAt(d.childAt(n,[4]),2,-1),t=d.createMorphAt(d.childAt(o,[1]),-1,-1),u=d.createMorphAt(d.childAt(o,[3]),-1,-1),v=d.createMorphAt(d.childAt(o,[5]),-1,-1);return f(b,k,a,"action",["closeSubview"],{}),h(b,p,a,"gh-input",[],{"class":"post-setting-meta-title",id:"meta-title",value:g(b,a,"metaTitleScratch"),name:"post-setting-meta-title","focus-out":"setMetaTitle",stopEnterKeyDownPropagation:"true"}),h(b,q,a,"gh-count-down-characters",[g(b,a,"metaTitleScratch"),70],{}),h(b,r,a,"gh-textarea",[],{"class":"post-setting-meta-description",id:"meta-description",value:g(b,a,"metaDescriptionScratch"),name:"post-setting-meta-description","focus-out":"setMetaDescription",stopEnterKeyDownPropagation:"true"}),h(b,s,a,"gh-count-down-characters",[g(b,a,"metaDescriptionScratch"),156],{}),i(b,t,a,"seoTitle"),i(b,u,a,"seoURL"),i(b,v,a,"seoDescription"),j}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("div");a.setAttribute(c,"id","entry-controls");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("div"),e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","settings-menu-header");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("h4"),g=a.createTextNode("Post Settings");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("button");a.setAttribute(f,"class","close icon-x settings-menu-header-action");var g=a.createElement("span");a.setAttribute(g,"class","hidden");var h=a.createTextNode("Close");a.appendChild(g,h),a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","settings-menu-content");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("form"),g=a.createTextNode("\n            ");a.appendChild(f,g);var g=a.createElement("div");a.setAttribute(g,"class","form-group");var h=a.createTextNode("\n                ");a.appendChild(g,h);var h=a.createElement("label");a.setAttribute(h,"for","url");var i=a.createTextNode("Post URL");a.appendChild(h,i),a.appendChild(g,h);var h=a.createTextNode("\n                ");a.appendChild(g,h);var h=a.createElement("span");a.setAttribute(h,"class","input-icon icon-link");var i=a.createTextNode("\n                    ");a.appendChild(h,i);var i=a.createTextNode("\n                ");a.appendChild(h,i),a.appendChild(g,h);var h=a.createTextNode("\n                ");a.appendChild(g,h);var h=a.createTextNode("\n            ");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n\n            ");a.appendChild(f,g);var g=a.createElement("div");a.setAttribute(g,"class","form-group");var h=a.createTextNode("\n                ");a.appendChild(g,h);var h=a.createElement("label");a.setAttribute(h,"for","post-setting-date");var i=a.createTextNode("Publish Date");a.appendChild(h,i),a.appendChild(g,h);var h=a.createTextNode("\n                ");a.appendChild(g,h);var h=a.createElement("span");a.setAttribute(h,"class","input-icon icon-calendar");var i=a.createTextNode("\n                    ");a.appendChild(h,i);var i=a.createTextNode("\n                ");a.appendChild(h,i),a.appendChild(g,h);var h=a.createTextNode("\n            ");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n\n");a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g);var g=a.createElement("ul");a.setAttribute(g,"class","nav-list nav-list-block");var h=a.createTextNode("\n");a.appendChild(g,h);var h=a.createTextNode("            ");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n\n            ");a.appendChild(f,g);var g=a.createElement("div");a.setAttribute(g,"class","form-group for-checkbox");var h=a.createTextNode("\n                ");a.appendChild(g,h);var h=a.createElement("label");a.setAttribute(h,"class","checkbox"),a.setAttribute(h,"for","static-page");var i=a.createTextNode("\n                    ");a.appendChild(h,i);var i=a.createTextNode("\n                    ");a.appendChild(h,i);var i=a.createElement("span");a.setAttribute(i,"class","input-toggle-component"),a.appendChild(h,i);var i=a.createTextNode("\n                    ");a.appendChild(h,i);var i=a.createElement("p"),j=a.createTextNode("Turn this post into a static page");a.appendChild(i,j),a.appendChild(h,i);var i=a.createTextNode("\n                ");a.appendChild(h,i),a.appendChild(g,h);var h=a.createTextNode("\n\n                ");a.appendChild(g,h);var h=a.createElement("label");a.setAttribute(h,"class","checkbox"),a.setAttribute(h,"for","featured");var i=a.createTextNode("\n                    ");a.appendChild(h,i);var i=a.createTextNode("\n                    ");a.appendChild(h,i);var i=a.createElement("span");a.setAttribute(i,"class","input-toggle-component"),a.appendChild(h,i);var i=a.createTextNode("\n                    ");a.appendChild(h,i);var i=a.createElement("p"),j=a.createTextNode("Feature this post");a.appendChild(i,j),a.appendChild(h,i);var i=a.createTextNode("\n                ");a.appendChild(h,i),a.appendChild(g,h);var h=a.createTextNode("\n            ");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createElement("div"),e=a.createTextNode("\n");a.appendChild(d,e);var e=a.createTextNode("    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(d,e,f){var g=e.dom,h=e.hooks,i=h.element,j=h.get,k=h.inline,l=h.block;g.detectNamespace(f);var m;e.useFragmentCache&&g.canClone?(null===this.cachedFragment&&(m=this.build(g),this.hasRendered?this.cachedFragment=m:this.hasRendered=!0),this.cachedFragment&&(m=g.cloneNode(this.cachedFragment,!0))):m=this.build(g);var n=g.childAt(m,[0]),o=g.childAt(n,[1]),p=g.childAt(o,[1,3]),q=g.childAt(o,[3]),r=g.childAt(q,[2]),s=g.childAt(r,[1]),t=g.childAt(r,[8]),u=g.childAt(t,[1]),v=g.childAt(t,[3]),w=g.childAt(n,[3]),x=g.createMorphAt(q,0,1),y=g.createMorphAt(g.childAt(s,[3]),0,1),z=g.createMorphAt(s,4,5),A=g.createMorphAt(g.childAt(r,[3,3]),0,1),B=g.createMorphAt(r,4,5),C=g.createMorphAt(g.childAt(r,[6]),0,1),D=g.createMorphAt(u,0,1),E=g.createMorphAt(v,0,1),F=g.createMorphAt(w,0,1);return i(e,o,d,"bind-attr",[],{"class":"isViewingSubview:settings-menu-pane-out-left:settings-menu-pane-in :settings-menu :settings-menu-pane"}),i(e,p,d,"action",["closeSettingsMenu"],{}),k(e,x,d,"gh-uploader",[],{uploaded:"setCoverImage",canceled:"clearCoverImage",description:"Add post image",image:j(e,d,"model.image"),uploaderReference:j(e,d,"uploaderReference"),tagName:"section"}),k(e,y,d,"gh-input",[],{"class":"post-setting-slug",id:"url",value:j(e,d,"slugValue"),name:"post-setting-slug","focus-out":"updateSlug",selectOnClick:"true",stopEnterKeyDownPropagation:"true"}),k(e,z,d,"gh-url-preview",[],{slug:j(e,d,"slugValue"),tagName:"p",classNames:"description"}),k(e,A,d,"gh-input",[],{"class":"post-setting-date",id:"post-setting-date",value:j(e,d,"publishedAtValue"),name:"post-setting-date","focus-out":"setPublishedAt",stopEnterKeyDownPropagation:"true"}),l(e,B,d,"unless",[j(e,d,"session.user.isAuthor")],{},a,null),l(e,C,d,"gh-tab",[],{tagName:"li",classNames:"nav-list-item"},b,null),i(e,u,d,"action",["togglePage"],{bubbles:"false"}),k(e,D,d,"input",[],{type:"checkbox",name:"static-page",id:"static-page","class":"post-setting-static-page",checked:j(e,d,"model.page")}),i(e,v,d,"action",["toggleFeatured"],{bubbles:"false"}),k(e,E,d,"input",[],{type:"checkbox",name:"featured",id:"featured","class":"post-setting-featured",checked:j(e,d,"model.featured")}),i(e,w,d,"bind-attr",[],{"class":"isViewingSubview:settings-menu-pane-in:settings-menu-pane-out-right :settings-menu :settings-menu-pane"}),l(e,F,d,"gh-tab-pane",[],{},c,null),m}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("div");a.setAttribute(c,"class","content-cover"),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.element,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[2]);var j=e.childAt(i,[0]),k=e.createMorphAt(i,1,2,d);return g(c,j,b,"action",["closeSettingsMenu"],{}),h(c,k,b,"gh-tabs-manager",[],{selected:"showSubview",id:"entry-controls","class":"settings-menu-container"},a,null),i}}}())}),define("ghost/templates/post-tags-input",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("           ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","tag"),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element,h=e.content;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[1]),k=d.createMorphAt(j,-1,-1);return g(b,j,a,"action",["deleteTag",f(b,a,"tag")],{target:f(b,a,"view")}),h(b,k,a,"tag.name"),i}}}(),b=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createElement("a");a.setAttribute(c,"href","javascript:void(0);"),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(d.childAt(g,[1]),-1,-1);return f(b,h,a,"view.suggestion.highlightedName"),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"view",[g(c,b,"view.suggestionView")],{suggestion:g(c,b,"suggestion")},a,null),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("div");a.setAttribute(c,"class","publish-bar-tags-icon");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("label");a.setAttribute(d,"class","tag-label icon-tag"),a.setAttribute(d,"for","tags"),a.setAttribute(d,"title","Tags");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("span");a.setAttribute(e,"class","hidden");var f=a.createTextNode("Tags");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","publish-bar-tags");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","tags-wrapper tags");var e=a.createTextNode("\n");a.appendChild(d,e);var e=a.createTextNode("    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","publish-bar-tags-input");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("input");a.setAttribute(d,"type","hidden"),a.setAttribute(d,"class","tags-holder"),a.setAttribute(d,"id","tags-holder"),a.appendChild(c,d);
  var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("ul");a.setAttribute(d,"class","suggestions dropdown-menu dropdown-triangle-bottom");var e=a.createTextNode("\n");a.appendChild(d,e);var e=a.createTextNode("    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.get,i=g.block,j=g.inline,k=g.element;f.detectNamespace(e);var l;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(l=this.build(f),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=f.cloneNode(this.cachedFragment,!0))):l=this.build(f);var m=f.childAt(l,[4]),n=f.childAt(m,[4]),o=f.createMorphAt(f.childAt(l,[2,1]),0,1),p=f.createMorphAt(m,2,3),q=f.createMorphAt(n,0,1);return i(d,o,c,"each",[h(d,c,"controller.tags")],{keyword:"tag"},a,null),j(d,p,c,"view",[h(d,c,"view.tagInputView")],{"class":"tag-input js-tag-input",id:"tags",value:h(d,c,"newTagText")}),k(d,n,c,"bind-attr",[],{style:h(d,c,"view.overlayStyles")}),i(d,q,c,"each",[h(d,c,"suggestions")],{keyword:"suggestion"},b,null),l}}}())}),define("ghost/templates/posts",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createElement("span");a.setAttribute(b,"class","hidden");var c=a.createTextNode("New Post");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){var a=function(){var a=function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                                    ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","page");var d=a.createTextNode("Page");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                                    ");a.appendChild(b,c);var c=a.createElement("time");a.setAttribute(c,"class","date published");var d=a.createTextNode("\n                                        Published ");a.appendChild(c,d);var d=a.createTextNode("\n                                    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.subexpr,h=e.concat,i=e.attribute,j=e.inline;d.detectNamespace(c);var k;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(k=this.build(d),this.hasRendered?this.cachedFragment=k:this.hasRendered=!0),this.cachedFragment&&(k=d.cloneNode(this.cachedFragment,!0))):k=this.build(d);var l=d.childAt(k,[1]),m=d.createMorphAt(l,0,1),n=d.createAttrMorph(l,"datetime");return i(b,n,l,"datetime",h(b,[g(b,a,"unbound",[f(b,a,"post.model.published_at")],{})])),j(b,m,a,"gh-format-timeago",[f(b,a,"post.model.published_at")],{}),k}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.get,i=g.block;f.detectNamespace(e);var j;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(j=this.build(f),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=f.cloneNode(this.cachedFragment,!0))):j=this.build(f),this.cachedFragment&&f.repairClonedNode(j,[0,1]);var k=f.createMorphAt(j,0,1,e);return i(d,k,c,"if",[h(d,c,"post.model.page")],{},a,b),j}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                                ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","draft");var d=a.createTextNode("Draft");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                    ");a.appendChild(b,c);var c=a.createElement("h3");a.setAttribute(c,"class","entry-title"),a.appendChild(b,c);var c=a.createTextNode("\n                    ");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","entry-meta");var d=a.createTextNode("\n                        ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","avatar");var e=a.createTextNode("\n                            ");a.appendChild(d,e);var e=a.createElement("img");a.appendChild(d,e);var e=a.createTextNode("\n                        ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                        ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","author"),a.appendChild(c,d);var d=a.createTextNode("\n                        ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","status");var e=a.createTextNode("\n");a.appendChild(d,e);var e=a.createTextNode("                        ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.content,i=g.get,j=g.element,k=g.block;f.detectNamespace(e);var l;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(l=this.build(f),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=f.cloneNode(this.cachedFragment,!0))):l=this.build(f);var m=f.childAt(l,[3]),n=f.childAt(m,[1]),o=f.childAt(n,[1]),p=f.createMorphAt(f.childAt(l,[1]),-1,-1),q=f.createMorphAt(f.childAt(m,[3]),-1,-1),r=f.createMorphAt(f.childAt(m,[5]),0,1);return h(d,p,c,"post.model.title"),j(d,n,c,"bind-attr",[],{style:i(d,c,"post.authorAvatarBackground")}),j(d,o,c,"bind-attr",[],{src:"post.authorAvatar",title:"post.authorName"}),h(d,q,c,"post.authorName"),k(d,r,c,"if",[i(d,c,"post.isPublished")],{},a,b),l}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"link-to",["posts.post",g(c,b,"post")],{"class":"permalink",alternateActive:g(c,b,"view.active"),title:"Edit this post"},a,null),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("ol");a.setAttribute(c,"class","posts-list");var d=a.createTextNode("\n");a.appendChild(c,d);var d=a.createTextNode("        ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e);var j=e.createMorphAt(e.childAt(i,[1]),0,1);return h(c,j,b,"each",[g(c,b,"controller")],{itemController:"posts/post",itemView:"post-item-view",itemTagName:"li",keyword:"post"},a,null),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","page-header");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("button");a.setAttribute(d,"class","menu-button js-menu-button");var e=a.createElement("span");a.setAttribute(e,"class","sr-only");var f=a.createTextNode("Menu");a.appendChild(e,f),a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title");var e=a.createTextNode("Content");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","page-content");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("section"),e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("header");a.setAttribute(e,"class","floatingheader");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("section");a.setAttribute(f,"class","content-filter");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("small"),h=a.createTextNode("All Posts");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n");a.appendChild(d,e);var e=a.createTextNode("    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("section"),e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.element,i=g.block,j=g.content;f.detectNamespace(e);var k;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(k=this.build(f),this.hasRendered?this.cachedFragment=k:this.hasRendered=!0),this.cachedFragment&&(k=f.cloneNode(this.cachedFragment,!0))):k=this.build(f);var l=f.childAt(k,[0,1]),m=f.childAt(k,[2]),n=f.childAt(m,[1]),o=f.childAt(m,[3]),p=f.createMorphAt(f.childAt(n,[1]),2,3),q=f.createMorphAt(n,2,3),r=f.createMorphAt(o,0,1);return h(d,l,c,"action",["toggleGlobalMobileNav"],{}),h(d,n,c,"bind-attr",[],{"class":":content-list :js-content-list postListFocused:keyboard-focused"}),i(d,p,c,"link-to",["editor.new"],{"class":"btn btn-green",title:"New Post"},a,null),i(d,q,c,"view",["paginated-scroll-box"],{tagName:"section",classNames:"content-list-content js-content-scrollbox"},b,null),h(d,o,c,"bind-attr",[],{"class":":content-preview :js-content-preview postContentFocused:keyboard-focused"}),j(d,r,c,"outlet"),k}}}())}),define("ghost/templates/posts/index",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createElement("button");a.setAttribute(b,"type","button"),a.setAttribute(b,"class","btn btn-green btn-lg"),a.setAttribute(b,"title","New Post");var c=a.createTextNode("Write a new Post");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("div");a.setAttribute(c,"class","no-posts");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h3"),e=a.createTextNode("You Haven't Written Any Posts Yet!");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.block;e.detectNamespace(d);var h;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(h=this.build(e),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=e.cloneNode(this.cachedFragment,!0))):h=this.build(e);var i=e.createMorphAt(e.childAt(h,[0]),2,3);return g(c,i,b,"link-to",["editor.new"],{},a,null),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"if",[g(c,b,"noPosts")],{},a,null),i}}}())}),define("ghost/templates/posts/post",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Back");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Published");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),c=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Written");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),d=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d),this.cachedFragment&&d.repairClonedNode(g,[0,1]);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"model.author.name"),g}}}(),e=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d),this.cachedFragment&&d.repairClonedNode(g,[0,1]);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"model.author.email"),g}}}(),f=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode(" Edit");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),g=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","wrapper");var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("h1");a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content,g=e.get,h=e.inline;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[1]),k=d.createMorphAt(d.childAt(j,[1]),-1,-1),l=d.createMorphAt(j,2,3);return f(b,k,a,"model.title"),h(b,l,a,"gh-format-html",[g(b,a,"model.html")],{}),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","post-preview-header clearfix");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title");var e=a.createTextNode("Preview");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("button");a.setAttribute(d,"type","button"),a.setAttribute(d,"title","Feature this post");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("span");a.setAttribute(e,"class","hidden");var f=a.createTextNode("Star");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("small");a.setAttribute(d,"class","post-published-by");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("span");a.setAttribute(e,"class","status"),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("span");a.setAttribute(e,"class","normal");var f=a.createTextNode("by");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("span");a.setAttribute(e,"class","author"),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("section");a.setAttribute(d,"class","post-controls");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(h,i,j){var k=i.dom,l=i.hooks,m=l.block,n=l.element,o=l.get;k.detectNamespace(j);var p;i.useFragmentCache&&k.canClone?(null===this.cachedFragment&&(p=this.build(k),this.hasRendered?this.cachedFragment=p:this.hasRendered=!0),this.cachedFragment&&(p=k.cloneNode(this.cachedFragment,!0))):p=this.build(k),this.cachedFragment&&k.repairClonedNode(p,[2]);var q=k.childAt(p,[0]),r=k.childAt(q,[4]),s=k.childAt(q,[6]),t=k.createMorphAt(q,0,1),u=k.createMorphAt(k.childAt(s,[1]),-1,-1),v=k.createMorphAt(k.childAt(s,[5]),-1,-1),w=k.createMorphAt(k.childAt(q,[8]),0,1),x=k.createMorphAt(p,1,2,j);return m(i,t,h,"link-to",["posts"],{tagName:"button","class":"btn btn-default btn-back"},a,null),n(i,r,h,"bind-attr",[],{"class":"model.featured:featured:unfeatured"}),n(i,r,h,"action",["toggleFeatured"],{}),m(i,u,h,"if",[o(i,h,"isPublished")],{},b,c),m(i,v,h,"if",[o(i,h,"model.author.name")],{},d,e),m(i,w,h,"link-to",["editor.edit",o(i,h,"this")],{"class":"btn btn-default post-edit"},f,null),m(i,x,h,"view",["content-preview-content-view"],{tagName:"section"},g,null),p}}}())}),define("ghost/templates/reset",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("section");a.setAttribute(c,"class","reset-box js-reset-box fade-in");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("form");a.setAttribute(d,"id","reset"),a.setAttribute(d,"class","reset-form"),a.setAttribute(d,"method","post"),a.setAttribute(d,"novalidate","novalidate");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","password-wrap");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","password-wrap");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"class","btn btn-blue"),a.setAttribute(e,"type","submit");var f=a.createTextNode("Reset Password");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element,g=e.get,h=e.inline;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[0,1]),k=d.childAt(j,[5]),l=d.createMorphAt(d.childAt(j,[1]),0,1),m=d.createMorphAt(d.childAt(j,[3]),0,1);return f(b,j,a,"action",["submit"],{on:"submit"}),h(b,l,a,"input",[],{value:g(b,a,"newPassword"),"class":"password",type:"password",placeholder:"Password",name:"newpassword",autofocus:"autofocus"}),h(b,m,a,"input",[],{value:g(b,a,"ne2Password"),"class":"password",type:"password",placeholder:"Confirm Password",name:"ne2password"}),f(b,k,a,"bind-attr",[],{disabled:"submitting"}),i}}}())}),define("ghost/templates/settings",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.inline;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"gh-activating-list-item",[],{route:"settings.general",title:"General",classNames:"settings-nav-general icon-settings"}),g}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.inline;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"gh-activating-list-item",[],{route:"settings.users",title:"Users",classNames:"settings-nav-users icon-users"}),g}}}(),c=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.inline;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"gh-activating-list-item",[],{route:"settings.tags",title:"Tags",classNames:"settings-nav-tags icon-tag"}),g}}}(),d=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.inline;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"gh-activating-list-item",[],{route:"settings.navigation",title:"Navigation",classNames:"settings-nav-navigation icon-compass"}),g}}}(),e=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.inline;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"gh-activating-list-item",[],{route:"settings.code-injection",title:"Code Injection",classNames:"settings-nav-code icon-code"}),g}}}(),f=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.inline;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"gh-activating-list-item",[],{route:"settings.labs",title:"Labs",classNames:"settings-nav-labs icon-atom"}),g}}}(),g=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.inline;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"gh-activating-list-item",[],{route:"settings.about",title:"About",classNames:"settings-nav-about icon-pacman"}),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","page-header");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("button");a.setAttribute(d,"class","menu-button js-menu-button");var e=a.createElement("span");a.setAttribute(e,"class","sr-only");var f=a.createTextNode("Menu");a.appendChild(e,f),a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title");var e=a.createTextNode("Settings");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","page-content");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("nav");a.setAttribute(d,"class","settings-nav js-settings-menu");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("ul"),f=a.createTextNode("\n\n");a.appendChild(e,f);var f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(h,i,j){var k=i.dom,l=i.hooks,m=l.element,n=l.get,o=l.block,p=l.content;k.detectNamespace(j);var q;i.useFragmentCache&&k.canClone?(null===this.cachedFragment&&(q=this.build(k),this.hasRendered?this.cachedFragment=q:this.hasRendered=!0),this.cachedFragment&&(q=k.cloneNode(this.cachedFragment,!0))):q=this.build(k);var r=k.childAt(q,[0,1]),s=k.childAt(q,[2]),t=k.childAt(s,[1,1]),u=k.createMorphAt(t,0,1),v=k.createMorphAt(t,1,2),w=k.createMorphAt(t,2,3),x=k.createMorphAt(t,3,4),y=k.createMorphAt(t,4,5),z=k.createMorphAt(t,5,6),A=k.createMorphAt(t,6,7),B=k.createMorphAt(s,2,3);return m(i,r,h,"action",["toggleGlobalMobileNav"],{}),o(i,u,h,"if",[n(i,h,"showGeneral")],{},a,null),o(i,v,h,"if",[n(i,h,"showUsers")],{},b,null),o(i,w,h,"if",[n(i,h,"showTags")],{},c,null),o(i,x,h,"if",[n(i,h,"showNavigation")],{},d,null),o(i,y,h,"if",[n(i,h,"showCodeInjection")],{},e,null),o(i,z,h,"if",[n(i,h,"showLabs")],{},f,null),o(i,A,h,"if",[n(i,h,"showAbout")],{},g,null),p(i,B,h,"outlet"),q}}}())}),define("ghost/templates/settings/about",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Back");return b},render:function(a,b,c){var d=b.dom;
  d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d),this.cachedFragment&&d.repairClonedNode(g,[0,1]);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"model.mail"),g}}}(),c=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Native");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","settings-view-header");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title");var e=a.createTextNode("About");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","content settings-about");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("section");a.setAttribute(d,"class","about-ghost-intro");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("h1"),f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("span");a.setAttribute(f,"class","ghost_logo");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("span");a.setAttribute(g,"class","hidden");var h=a.createTextNode("Ghost");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("span");a.setAttribute(f,"class","version blue");var g=a.createTextNode("v");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("p"),f=a.createTextNode("A free, open, simple publishing platform");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","about-environment-help clearfix");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","about-environment");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("dl"),h=a.createTextNode("\n                    ");a.appendChild(g,h);var h=a.createElement("dt"),i=a.createTextNode("Version:");a.appendChild(h,i),a.appendChild(g,h);var h=a.createTextNode("\n                    ");a.appendChild(g,h);var h=a.createElement("dd");a.setAttribute(h,"class","about-environment-detail"),a.appendChild(g,h);var h=a.createTextNode("\n                    ");a.appendChild(g,h);var h=a.createElement("dt"),i=a.createTextNode("Environment:");a.appendChild(h,i),a.appendChild(g,h);var h=a.createTextNode("\n                    ");a.appendChild(g,h);var h=a.createElement("dd");a.setAttribute(h,"class","about-environment-detail"),a.appendChild(g,h);var h=a.createTextNode("\n                    ");a.appendChild(g,h);var h=a.createElement("dt"),i=a.createTextNode("Database:");a.appendChild(h,i),a.appendChild(g,h);var h=a.createTextNode("\n                    ");a.appendChild(g,h);var h=a.createElement("dd");a.setAttribute(h,"class","about-environment-detail about-environment-database"),a.appendChild(g,h);var h=a.createTextNode("\n                    ");a.appendChild(g,h);var h=a.createElement("dt"),i=a.createTextNode("Mail:");a.appendChild(h,i),a.appendChild(g,h);var h=a.createTextNode("\n                    ");a.appendChild(g,h);var h=a.createElement("dd");a.setAttribute(h,"class","about-environment-detail"),a.appendChild(g,h);var h=a.createTextNode("\n                ");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","about-help");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("a");a.setAttribute(g,"href","http://support.ghost.org"),a.setAttribute(g,"class","btn");var h=a.createTextNode("User Documentation");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("a");a.setAttribute(g,"href","https://ghost.org/forum/"),a.setAttribute(g,"class","btn");var h=a.createTextNode("Get Help With Ghost");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createElement("section");a.setAttribute(d,"class","about-credits");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("h1"),f=a.createTextNode("The People Who Made it Possible");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("ul");a.setAttribute(e,"class","top-contributors clearfix");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("p");a.setAttribute(e,"class","about-contributors-info");var f=a.createTextNode("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.");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("a");a.setAttribute(e,"href","https://ghost.org/about/contribute/"),a.setAttribute(e,"class","about-get-involved btn-blue btn-lg btn");var f=a.createTextNode("Find out how you can get involved");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("p");a.setAttribute(e,"class","about-copyright");var f=a.createTextNode("\n            Copyright 2013 - 2015 Ghost Foundation, released under the ");a.appendChild(e,f);var f=a.createElement("a");a.setAttribute(f,"href","https://github.com/TryGhost/Ghost/blob/master/LICENSE");var g=a.createTextNode("MIT license");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode(".\n            ");a.appendChild(e,f);var f=a.createElement("br");a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("a");a.setAttribute(f,"href","https://ghost.org/");var g=a.createTextNode("Ghost");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode(" is a trademark of the ");a.appendChild(e,f);var f=a.createElement("a");a.setAttribute(f,"href","https://ghost.org/about/");var g=a.createTextNode("Ghost Foundation");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode(".\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(d,e,f){var g=e.dom,h=e.hooks,i=h.block,j=h.content,k=h.get,l=h.inline;g.detectNamespace(f);var m;e.useFragmentCache&&g.canClone?(null===this.cachedFragment&&(m=this.build(g),this.hasRendered?this.cachedFragment=m:this.hasRendered=!0),this.cachedFragment&&(m=g.cloneNode(this.cachedFragment,!0))):m=this.build(g);var n=g.childAt(m,[2]),o=g.childAt(n,[1]),p=g.childAt(o,[5,1,1]),q=g.createMorphAt(g.childAt(m,[0]),0,1),r=g.createMorphAt(g.childAt(o,[1,3]),0,-1),s=g.createMorphAt(g.childAt(p,[3]),-1,-1),t=g.createMorphAt(g.childAt(p,[7]),-1,-1),u=g.createMorphAt(g.childAt(p,[11]),-1,-1),v=g.createMorphAt(g.childAt(p,[15]),-1,-1),w=g.createMorphAt(g.childAt(n,[3,3]),0,1);return i(e,q,d,"link-to",["settings"],{"class":"btn btn-default btn-back"},a,null),j(e,r,d,"model.version"),j(e,s,d,"model.version"),j(e,t,d,"model.environment"),j(e,u,d,"model.database"),i(e,v,d,"if",[k(e,d,"model.mail")],{},b,c),l(e,w,d,"partial",["contributors"],{}),m}}}())}),define("ghost/templates/settings/apps",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Back");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode(" - ");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d),this.cachedFragment&&d.repairClonedNode(g,[0,2]);var h=d.createMorphAt(g,0,1,c),i=d.createMorphAt(g,1,2,c);return f(b,h,a,"appController.model.package.name"),f(b,i,a,"appController.model.package.version"),g}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode(" - package.json missing :(");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d),this.cachedFragment&&d.repairClonedNode(g,[0]);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"appController.model.name"),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("tr"),d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("td"),e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createTextNode("\n            ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("td"),e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"type","button");var f=a.createTextNode("\n                    ");a.appendChild(e,f);var f=a.createTextNode("\n                ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n            ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.get,i=g.block,j=g.element,k=g.content;f.detectNamespace(e);var l;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(l=this.build(f),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=f.cloneNode(this.cachedFragment,!0))):l=this.build(f);var m=f.childAt(l,[1]),n=f.childAt(m,[3,1]),o=f.createMorphAt(f.childAt(m,[1]),0,1),p=f.createMorphAt(n,0,1);return i(d,o,c,"if",[h(d,c,"appController.model.package")],{},a,b),j(d,n,c,"action",[h(d,c,"toggleApp"),h(d,c,"appController")],{}),j(d,n,c,"bind-attr",[],{"class":":btn :js-button-active activeClass:btn-red inactiveClass:btn-green activeClass:js-button-deactivate"}),k(d,p,c,"appController.buttonText"),l}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","settings-view-header");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","title");var e=a.createTextNode("Apps");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","content settings-apps");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("table");a.setAttribute(d,"class","js-apps");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("thead"),f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("th"),g=a.createTextNode("App name");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("th"),g=a.createTextNode("Status");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("tbody"),f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.block,i=g.get;f.detectNamespace(e);var j;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(j=this.build(f),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=f.cloneNode(this.cachedFragment,!0))):j=this.build(f);var k=f.createMorphAt(f.childAt(j,[0]),0,1),l=f.createMorphAt(f.childAt(j,[2,1,3]),0,1);return h(d,k,c,"link-to",["settings"],{"class":"btn btn-default btn-back"},a,null),h(d,l,c,"each",[i(d,c,"model")],{itemController:"settings/app",keyword:"appController"},b,null),j}}}())}),define("ghost/templates/settings/code-injection",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Back");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","settings-view-header");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title");var e=a.createTextNode("Code Injection");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("section");a.setAttribute(d,"class","page-actions");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"type","button"),a.setAttribute(e,"class","btn btn-blue");var f=a.createTextNode("Save");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","content settings-code");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("form");a.setAttribute(d,"id","settings-code"),a.setAttribute(d,"novalidate","novalidate");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("fieldset"),f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("\n                    Ghost allows you to inject code into the top and bottom of your template files without editing them. This allows for quick modifications to insert useful things like tracking codes and meta data.\n                ");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","ghost-head");var h=a.createTextNode("Blog Header");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Code here will be injected to the {{ghost_head}} helper at the top of your page");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","ghost-foot");var h=a.createTextNode("Blog Footer");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Code here will be injected to the {{ghost_foot}} helper at the bottom of your page");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.block,h=f.element,i=f.get,j=f.inline;e.detectNamespace(d);var k;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(k=this.build(e),this.hasRendered?this.cachedFragment=k:this.hasRendered=!0),this.cachedFragment&&(k=e.cloneNode(this.cachedFragment,!0))):k=this.build(e);var l=e.childAt(k,[0]),m=e.childAt(l,[4,1]),n=e.childAt(k,[2,1,1]),o=e.createMorphAt(l,0,1),p=e.createMorphAt(e.childAt(n,[3]),4,5),q=e.createMorphAt(e.childAt(n,[5]),4,5);return g(c,o,b,"link-to",["settings"],{"class":"btn btn-default btn-back"},a,null),h(c,m,b,"action",["save"],{}),j(c,p,b,"textarea",[],{id:"ghost-head",name:"codeInjection[ghost_head]",type:"text",value:i(c,b,"model.ghost_head")}),j(c,q,b,"textarea",[],{id:"ghost-foot",name:"codeInjection[ghost_foot]",type:"text",value:i(c,b,"model.ghost_foot")}),k}}}())}),define("ghost/templates/settings/general",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Back");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createElement("img");a.setAttribute(c,"class","blog-logo"),a.setAttribute(c,"alt","logo"),a.setAttribute(c,"role","button"),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[1]);return g(b,i,a,"bind-attr",[],{src:f(b,a,"model.logo")}),g(b,i,a,"action",["openModal","upload",f(b,a,"this"),"logo"],{}),h}}}(),c=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createElement("button");a.setAttribute(c,"type","button"),a.setAttribute(c,"class","btn btn-green js-modal-logo");var d=a.createTextNode("Upload Image");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[1]);return g(b,i,a,"action",["openModal","upload",f(b,a,"this"),"logo"],{}),h}}}(),d=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createElement("img");a.setAttribute(c,"class","blog-cover"),a.setAttribute(c,"alt","cover photo"),a.setAttribute(c,"role","button"),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[1]);return g(b,i,a,"bind-attr",[],{src:f(b,a,"model.cover")}),g(b,i,a,"action",["openModal","upload",f(b,a,"this"),"cover"],{}),h}}}(),e=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createElement("button");a.setAttribute(c,"type","button"),a.setAttribute(c,"class","btn btn-green js-modal-cover");var d=a.createTextNode("Upload Image");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[1]);return g(b,i,a,"action",["openModal","upload",f(b,a,"this"),"cover"],{}),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","settings-view-header");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title");var e=a.createTextNode("General");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("section");a.setAttribute(d,"class","page-actions");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"type","button"),a.setAttribute(e,"class","btn btn-blue");var f=a.createTextNode("Save");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","content settings-general");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("form");a.setAttribute(d,"id","settings-general"),a.setAttribute(d,"novalidate","novalidate");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("fieldset"),f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","blog-title");var h=a.createTextNode("Blog Title");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("The name of your blog");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group description-container");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","blog-description");var h=a.createTextNode("Blog Description");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("\n                    Describe what your blog is about\n                    ");a.appendChild(g,h);var h=a.createTextNode("\n                ");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","form-group");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("label"),g=a.createTextNode("Blog Logo");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("            ");a.appendChild(e,f);var f=a.createElement("p"),g=a.createTextNode("Display a sexy logo for your publication");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","form-group");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("label"),g=a.createTextNode("Blog Cover");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("            ");a.appendChild(e,f);var f=a.createElement("p"),g=a.createTextNode("Display a cover image on your site");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("fieldset"),f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","email-address");var h=a.createTextNode("Email Address");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Address to use for admin notifications");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","postsPerPage");var h=a.createTextNode("Posts per page");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("How many posts should be displayed on each page");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group for-checkbox");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","permalinks");var h=a.createTextNode("Dated Permalinks");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"class","checkbox"),a.setAttribute(g,"for","permalinks");var h=a.createTextNode("\n                    ");a.appendChild(g,h);var h=a.createTextNode("\n                    ");a.appendChild(g,h);var h=a.createElement("span");a.setAttribute(h,"class","input-toggle-component"),a.appendChild(g,h);var h=a.createTextNode("\n                    ");a.appendChild(g,h);var h=a.createElement("p"),i=a.createTextNode("Include the date in your post URLs");a.appendChild(h,i),a.appendChild(g,h);var h=a.createTextNode("\n                ");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group for-select");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","activeTheme");var h=a.createTextNode("Theme");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("span");a.setAttribute(g,"class","gh-select"),a.setAttribute(g,"tabindex","0");var h=a.createTextNode("\n                   ");a.appendChild(g,h);var h=a.createTextNode("\n               ");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Select a theme for your blog");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");
  a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(f,g,h){var i=g.dom,j=g.hooks,k=j.block,l=j.element,m=j.get,n=j.inline;i.detectNamespace(h);var o;g.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(o=this.build(i),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=i.cloneNode(this.cachedFragment,!0))):o=this.build(i);var p=i.childAt(o,[0]),q=i.childAt(p,[4,1]),r=i.childAt(o,[2,1]),s=i.childAt(r,[1]),t=i.childAt(s,[3]),u=i.childAt(r,[7]),v=i.childAt(u,[7,3]),w=i.createMorphAt(p,0,1),x=i.createMorphAt(i.childAt(s,[1]),2,3),y=i.createMorphAt(t,2,3),z=i.createMorphAt(i.childAt(t,[4]),0,1),A=i.createMorphAt(i.childAt(r,[3]),2,3),B=i.createMorphAt(i.childAt(r,[5]),2,3),C=i.createMorphAt(i.childAt(u,[1]),2,3),D=i.createMorphAt(i.childAt(u,[3]),2,3),E=i.createMorphAt(i.childAt(u,[5,3]),0,1),F=i.createMorphAt(v,0,1);return k(g,w,f,"link-to",["settings"],{"class":"btn btn-default btn-back"},a,null),l(g,q,f,"action",["save"],{}),n(g,x,f,"input",[],{id:"blog-title",name:"general[title]",type:"text",value:m(g,f,"model.title")}),n(g,y,f,"textarea",[],{id:"blog-description",name:"general[description]",value:m(g,f,"model.description")}),n(g,z,f,"gh-count-characters",[m(g,f,"model.description")],{}),k(g,A,f,"if",[m(g,f,"model.logo")],{},b,c),k(g,B,f,"if",[m(g,f,"model.cover")],{},d,e),n(g,C,f,"input",[],{id:"email-address",name:"general[email-address]",type:"email",value:m(g,f,"model.email"),autocapitalize:"off",autocorrect:"off"}),n(g,D,f,"input",[],{id:"postsPerPage",name:"general[postsPerPage]","focus-out":"checkPostsPerPage",value:m(g,f,"model.postsPerPage"),min:"1",max:"1000",type:"number",pattern:"[0-9]*"}),n(g,E,f,"input",[],{id:"permalinks",name:"general[permalinks]",type:"checkbox",checked:m(g,f,"isDatedPermalinks")}),l(g,v,f,"bind-attr",[],{"data-select-text":m(g,f,"selectedTheme.label")}),n(g,F,f,"view",["select"],{id:"activeTheme",name:"general[activeTheme]",content:m(g,f,"themes"),optionValuePath:"content.name",optionLabelPath:"content.label",value:m(g,f,"model.activeTheme"),selection:m(g,f,"selectedTheme")}),o}}}())}),define("ghost/templates/settings/labs",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Back");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("fieldset"),d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","form-group");var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createElement("label"),f=a.createTextNode("Import");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createElement("p"),f=a.createTextNode("Import from another Ghost installation. If you import a user, this will replace the current user & log you out.");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n            ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.inline,g=e.get;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[1,1]),j=d.createMorphAt(i,2,3),k=d.createMorphAt(i,3,4);return f(b,j,a,"partial",["import-errors"],{}),f(b,k,a,"gh-file-upload",[],{id:"importfile",uploadButtonText:g(b,a,"uploadButtonText")}),h}}}(),c=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","form-group for-checkbox");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("label");a.setAttribute(d,"for","labs-codeInjectionUI");var e=a.createTextNode("Code Injection");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("label");a.setAttribute(d,"class","check box"),a.setAttribute(d,"for","labs-codeInjectionUI");var e=a.createTextNode("\n                    ");a.appendChild(d,e);var e=a.createTextNode("\n                    ");a.appendChild(d,e);var e=a.createElement("span");a.setAttribute(e,"class","input-toggle-component"),a.appendChild(d,e);var e=a.createTextNode("\n                    ");a.appendChild(d,e);var e=a.createElement("p"),f=a.createTextNode("Enable the code injection interface");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("p"),e=a.createTextNode("A settings screen which enables you to add code into your theme (work in progress)");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(d.childAt(h,[1,3]),0,1);return g(b,i,a,"input",[],{id:"labs-codeInjectionUI",name:"labs[codeInjectionUI]",type:"checkbox",checked:f(b,a,"useCodeInjectionUI")}),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","settings-view-header");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title");var e=a.createTextNode("Labs");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n\n");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","content settings-debug");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("form");a.setAttribute(d,"id","settings-export");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("fieldset"),f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label"),h=a.createTextNode("Export");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("button");a.setAttribute(g,"type","button"),a.setAttribute(g,"class","btn btn-blue");var h=a.createTextNode("Export");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Export the blog settings and data.");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d);var d=a.createTextNode("    ");a.appendChild(c,d);var d=a.createElement("form");a.setAttribute(d,"id","settings-resetdb");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("fieldset"),f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label"),h=a.createTextNode("Delete all Content");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("button");a.setAttribute(g,"type","button"),a.setAttribute(g,"class","btn btn-red js-delete");var h=a.createTextNode("Delete");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Delete all posts and tags from the database.");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("form");a.setAttribute(d,"id","settings-testmail");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("fieldset"),f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label"),h=a.createTextNode("Send a test email");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("button");a.setAttribute(g,"type","button"),a.setAttribute(g,"id","sendtestmail"),a.setAttribute(g,"class","btn btn-blue");var h=a.createTextNode("Send");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Sends a test email to your address.");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createElement("hr");a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createElement("form"),e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("fieldset"),f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(d,e,f){var g=e.dom,h=e.hooks,i=h.block,j=h.element,k=h.get;g.detectNamespace(f);var l;e.useFragmentCache&&g.canClone?(null===this.cachedFragment&&(l=this.build(g),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=g.cloneNode(this.cachedFragment,!0))):l=this.build(g);var m=g.childAt(l,[2]),n=g.childAt(m,[1,1,1,3]),o=g.childAt(m,[4,1,1,3]),p=g.childAt(m,[6,1,1,3]),q=g.createMorphAt(g.childAt(l,[0]),0,1),r=g.createMorphAt(m,2,3),s=g.createMorphAt(g.childAt(m,[10,1]),0,1);return i(e,q,d,"link-to",["settings"],{"class":"btn btn-default btn-back"},a,null),j(e,n,d,"action",["exportData"],{}),i(e,r,d,"gh-form",[],{id:"settings-import",enctype:"multipart/form-data"},b,null),j(e,o,d,"action",["openModal","deleteAll"],{}),j(e,p,d,"action",["sendTestEmail"],{}),i(e,s,d,"unless",[k(e,d,"codeUIFlag")],{},c,null),l}}}())}),define("ghost/templates/settings/navigation",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Back");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(h,0,1,c);return g(b,i,a,"gh-navitem",[],{navItem:f(b,a,"navItem"),baseUrl:f(b,a,"blogUrl"),addItem:"addItem",deleteItem:"deleteItem",updateUrl:"updateUrl"}),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","settings-view-header");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title");var e=a.createTextNode("Navigation");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("section");a.setAttribute(d,"class","page-actions");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"type","button"),a.setAttribute(e,"class","btn btn-blue");var f=a.createTextNode("Save");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","content settings-navigation");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("form");a.setAttribute(d,"id","settings-navigation"),a.setAttribute(d,"class","js-settings-navigation"),a.setAttribute(d,"novalidate","novalidate");var e=a.createTextNode("\n");a.appendChild(d,e);var e=a.createTextNode("    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.block,i=g.element,j=g.get;f.detectNamespace(e);var k;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(k=this.build(f),this.hasRendered?this.cachedFragment=k:this.hasRendered=!0),this.cachedFragment&&(k=f.cloneNode(this.cachedFragment,!0))):k=this.build(f);var l=f.childAt(k,[0]),m=f.childAt(l,[4,1]),n=f.createMorphAt(l,0,1),o=f.createMorphAt(f.childAt(k,[2,1]),0,1);return h(d,n,c,"link-to",["settings"],{"class":"btn btn-default btn-back"},a,null),i(d,m,c,"action",["save"],{}),h(d,o,c,"each",[j(d,c,"navigationItems")],{keyword:"navItem"},b,null),k}}}())}),define("ghost/templates/settings/tags",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Back");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","settings-tag");var d=a.createTextNode("\n            ");a.appendChild(c,d);var d=a.createElement("button");a.setAttribute(d,"class","tag-edit-button");var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createElement("span");a.setAttribute(e,"class","tag-title"),a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createElement("span");a.setAttribute(e,"class","label label-default");var f=a.createTextNode("/");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createElement("p");a.setAttribute(e,"class","tag-description"),a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createElement("span");a.setAttribute(e,"class","tags-count"),a.appendChild(d,e);var e=a.createTextNode("\n            ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element,h=e.content;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[1,1]),k=d.createMorphAt(d.childAt(j,[1]),-1,-1),l=d.createMorphAt(d.childAt(j,[3]),0,-1),m=d.createMorphAt(d.childAt(j,[5]),-1,-1),n=d.createMorphAt(d.childAt(j,[7]),-1,-1);return g(b,j,a,"action",["editTag",f(b,a,"tag")],{}),h(b,k,a,"tag.name"),h(b,l,a,"tag.slug"),h(b,m,a,"tag.description"),h(b,n,a,"tag.post_count"),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","settings-view-header");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title");var e=a.createTextNode("Tags");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("section");a.setAttribute(d,"class","page-actions");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"type","button"),a.setAttribute(e,"class","btn btn-green");var f=a.createTextNode("New Tag");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","content settings-tags");var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.block,i=g.element,j=g.get;f.detectNamespace(e);var k;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(k=this.build(f),this.hasRendered?this.cachedFragment=k:this.hasRendered=!0),this.cachedFragment&&(k=f.cloneNode(this.cachedFragment,!0))):k=this.build(f);var l=f.childAt(k,[0]),m=f.childAt(l,[4,1]),n=f.createMorphAt(l,0,1),o=f.createMorphAt(f.childAt(k,[2]),0,-1);return h(d,n,c,"link-to",["settings"],{"class":"btn btn-default btn-back"},a,null),i(d,m,c,"action",["newTag"],{}),h(d,o,c,"each",[j(d,c,"tags")],{keyword:"tag"},b,null),k}}}())}),define("ghost/templates/settings/tags/settings-menu",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                        ");a.appendChild(b,c);var c=a.createElement("button");a.setAttribute(c,"type","button");var d=a.createTextNode("\n                            ");a.appendChild(c,d);var d=a.createElement("b"),e=a.createTextNode("Meta Data");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                            ");a.appendChild(c,d);var d=a.createElement("span"),e=a.createTextNode("Extra content for SEO and social media.");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                        ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                    ");a.appendChild(b,c);var c=a.createElement("button");a.setAttribute(c,"type","button"),a.setAttribute(c,"class","btn btn-link btn-sm tag-delete-button icon-trash");var d=a.createTextNode("Delete Tag");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.childAt(h,[1]);return g(b,i,a,"action",["openModal","delete-tag",f(b,a,"activeTag")],{}),h}}}(),c=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","settings-menu-header subview");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("button");a.setAttribute(d,"class","back icon-chevron-left settings-menu-header-action");var e=a.createElement("span");a.setAttribute(e,"class","hidden");var f=a.createTextNode("Back");a.appendChild(e,f),a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("h4"),e=a.createTextNode("Meta Data");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n            ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","settings-menu-content");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("form"),e=a.createTextNode("\n                ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","form-group");var f=a.createTextNode("\n                    ");a.appendChild(e,f);var f=a.createElement("label");a.setAttribute(f,"for","meta-title");var g=a.createTextNode("Meta Title");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n                    ");a.appendChild(e,f);var f=a.createTextNode("\n                    ");a.appendChild(e,f);var f=a.createElement("p"),g=a.createTextNode("Recommended: ");a.appendChild(f,g);var g=a.createElement("b"),h=a.createTextNode("70");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode(" characters. You’ve used ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n                ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n                ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","form-group");var f=a.createTextNode("\n                    ");a.appendChild(e,f);var f=a.createElement("label");a.setAttribute(f,"for","meta-description");var g=a.createTextNode("Meta Description");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n                    ");a.appendChild(e,f);var f=a.createTextNode("\n                    ");a.appendChild(e,f);var f=a.createElement("p"),g=a.createTextNode("Recommended: ");a.appendChild(f,g);var g=a.createElement("b"),h=a.createTextNode("156");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode(" characters. You’ve used ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n                ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n                ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","form-group");var f=a.createTextNode("\n                    ");a.appendChild(e,f);var f=a.createElement("label"),g=a.createTextNode("Search Engine Result Preview");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n                    ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","seo-preview");var g=a.createTextNode("\n                        ");a.appendChild(f,g);var g=a.createElement("div");a.setAttribute(g,"class","seo-preview-title"),a.appendChild(f,g);var g=a.createTextNode("\n                        ");a.appendChild(f,g);var g=a.createElement("div");a.setAttribute(g,"class","seo-preview-link"),a.appendChild(f,g);var g=a.createTextNode("\n                        ");a.appendChild(f,g);var g=a.createElement("div");a.setAttribute(g,"class","seo-preview-description"),a.appendChild(f,g);var g=a.createTextNode("\n                    ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n                ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n                ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element,g=e.get,h=e.inline,i=e.content;d.detectNamespace(c);var j;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(j=this.build(d),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=d.cloneNode(this.cachedFragment,!0))):j=this.build(d);var k=d.childAt(j,[1,1]),l=d.childAt(j,[3,1]),m=d.childAt(l,[1]),n=d.childAt(l,[3]),o=d.childAt(l,[5,3]),p=d.createMorphAt(m,2,3),q=d.createMorphAt(d.childAt(m,[4]),2,-1),r=d.createMorphAt(n,2,3),s=d.createMorphAt(d.childAt(n,[4]),2,-1),t=d.createMorphAt(d.childAt(o,[1]),-1,-1),u=d.createMorphAt(d.childAt(o,[3]),-1,-1),v=d.createMorphAt(d.childAt(o,[5]),-1,-1);return f(b,k,a,"action",["closeSubview"],{}),h(b,p,a,"gh-input",[],{type:"text",value:g(b,a,"activeTagMetaTitleScratch"),"focus-out":"saveActiveTagMetaTitle"}),h(b,q,a,"gh-count-down-characters",[g(b,a,"activeTagMetaTitleScratch"),70],{}),h(b,r,a,"gh-textarea",[],{value:g(b,a,"activeTagMetaDescriptionScratch"),"focus-out":"saveActiveTagMetaDescription"}),h(b,s,a,"gh-count-down-characters",[g(b,a,"activeTagMetaDescriptionScratch"),156],{}),i(b,t,a,"seoTitle"),i(b,u,a,"seoURL"),i(b,v,a,"seoDescription"),j}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createElement("div"),d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","settings-menu-header");var e=a.createTextNode("\n            ");a.appendChild(d,e);var e=a.createElement("h4"),f=a.createTextNode("Tag Settings");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n            ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"class","close icon-x settings-menu-header-action");var f=a.createTextNode("\n                ");a.appendChild(e,f);var f=a.createElement("span");a.setAttribute(f,"class","hidden");var g=a.createTextNode("Close");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","settings-menu-content");var e=a.createTextNode("\n            ");a.appendChild(d,e);var e=a.createTextNode("\n            ");a.appendChild(d,e);var e=a.createElement("form"),f=a.createTextNode("\n                ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                    ");a.appendChild(f,g);var g=a.createElement("label"),h=a.createTextNode("Name");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                    ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n                ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                    ");a.appendChild(f,g);var g=a.createElement("label"),h=a.createTextNode("URL");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                    ");a.appendChild(f,g);var g=a.createTextNode("\n                    ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n                ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                    ");a.appendChild(f,g);var g=a.createElement("label"),h=a.createTextNode("Description");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                    ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n                ");a.appendChild(e,f);var f=a.createElement("ul");a.setAttribute(f,"class","nav-list nav-list-block");var g=a.createTextNode("\n");a.appendChild(f,g);var g=a.createTextNode("                ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n");a.appendChild(e,f);var f=a.createTextNode("            ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n    ");a.appendChild(b,c);var c=a.createElement("div"),d=a.createTextNode("\n");a.appendChild(c,d);var d=a.createTextNode("    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(d,e,f){var g=e.dom,h=e.hooks,i=h.element,j=h.get,k=h.inline,l=h.block;g.detectNamespace(f);var m;e.useFragmentCache&&g.canClone?(null===this.cachedFragment&&(m=this.build(g),this.hasRendered?this.cachedFragment=m:this.hasRendered=!0),this.cachedFragment&&(m=g.cloneNode(this.cachedFragment,!0))):m=this.build(g);var n=g.childAt(m,[1]),o=g.childAt(n,[1,3]),p=g.childAt(n,[3]),q=g.childAt(p,[2]),r=g.childAt(q,[3]),s=g.childAt(m,[3]),t=g.createMorphAt(p,0,1),u=g.createMorphAt(g.childAt(q,[1]),2,3),v=g.createMorphAt(r,2,3),w=g.createMorphAt(r,3,4),x=g.createMorphAt(g.childAt(q,[5]),2,3),y=g.createMorphAt(g.childAt(q,[7]),0,1),z=g.createMorphAt(q,8,9),A=g.createMorphAt(s,0,1);return i(e,n,d,"bind-attr",[],{"class":"isViewingSubview:settings-menu-pane-out-left:settings-menu-pane-in :settings-menu :settings-menu-pane"}),i(e,o,d,"action",["closeSettingsMenu"],{}),k(e,t,d,"gh-uploader",[],{uploaded:"setCoverImage",canceled:"clearCoverImage",description:"Add tag image",image:j(e,d,"activeTag.image"),uploaderReference:j(e,d,"uploaderReference"),tagName:"section"}),k(e,u,d,"gh-input",[],{type:"text",value:j(e,d,"activeTagNameScratch"),"focus-out":"saveActiveTagName"}),k(e,v,d,"gh-input",[],{type:"text",value:j(e,d,"activeTagSlugScratch"),"focus-out":"saveActiveTagSlug"}),k(e,w,d,"gh-url-preview",[],{prefix:"tag",slug:j(e,d,"activeTagSlugScratch"),tagName:"p",classNames:"description"}),k(e,x,d,"gh-textarea",[],{value:j(e,d,"activeTagDescriptionScratch"),"focus-out":"saveActiveTagDescription"}),l(e,y,d,"gh-tab",[],{tagName:"li",classNames:"nav-list-item"},a,null),l(e,z,d,"unless",[j(e,d,"activeTag.isNew")],{},b,null),i(e,s,d,"bind-attr",[],{"class":"isViewingSubview:settings-menu-pane-in:settings-menu-pane-out-right :settings-menu :settings-menu-pane"}),l(e,A,d,"gh-tab-pane",[],{},c,null),m
  }}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("div");a.setAttribute(c,"class","content-cover"),a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.element,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[2]);var j=e.childAt(i,[0]),k=e.createMorphAt(i,1,2,d);return g(c,j,b,"action",["closeSettingsMenu"],{}),h(c,k,b,"gh-tabs-manager",[],{selected:"showSubview","class":"settings-menu-container"},a,null),i}}}())}),define("ghost/templates/settings/users",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d),this.cachedFragment&&d.repairClonedNode(g,[0]);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"outlet"),g}}}())}),define("ghost/templates/settings/users/index",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Back");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.block;e.detectNamespace(d);var h;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(h=this.build(e),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=e.cloneNode(this.cachedFragment,!0))):h=this.build(e);var i=e.createMorphAt(h,0,1,d);return g(c,i,b,"link-to",["content"],{"class":"btn btn-default btn-back"},a,null),h}}}(),b=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Back");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.block;e.detectNamespace(d);var h;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(h=this.build(e),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=e.cloneNode(this.cachedFragment,!0))):h=this.build(e);var i=e.createMorphAt(h,0,1,d);return g(c,i,b,"link-to",["settings"],{"class":"btn btn-default btn-back"},a,null),h}}}(),c=function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                                ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","red");var d=a.createTextNode("Invitation not sent - please try again");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                                ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","description");var d=a.createTextNode("Invitation sent: ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(d.childAt(g,[1]),0,-1);return f(b,h,a,"user.model.created_at"),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","user-list-item");var d=a.createTextNode("\n                    ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","user-list-item-icon icon-mail");var e=a.createTextNode("ic");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n                    ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","user-list-item-body");var e=a.createTextNode("\n                        ");a.appendChild(d,e);var e=a.createElement("span");a.setAttribute(e,"class","name"),a.appendChild(d,e);var e=a.createElement("br");a.appendChild(d,e);var e=a.createTextNode("\n");a.appendChild(d,e);var e=a.createTextNode("                    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                    ");a.appendChild(c,d);var d=a.createElement("aside");a.setAttribute(d,"class","user-list-item-aside");var e=a.createTextNode("\n                        ");a.appendChild(d,e);var e=a.createElement("a");a.setAttribute(e,"class","user-list-action"),a.setAttribute(e,"href","#");var f=a.createTextNode("Revoke");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n                        ");a.appendChild(d,e);var e=a.createElement("a");a.setAttribute(e,"class","user-list-action"),a.setAttribute(e,"href","#");var f=a.createTextNode("Resend");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n                    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.content,i=g.get,j=g.block,k=g.element;f.detectNamespace(e);var l;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(l=this.build(f),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=f.cloneNode(this.cachedFragment,!0))):l=this.build(f);var m=f.childAt(l,[1]),n=f.childAt(m,[3]),o=f.childAt(m,[5]),p=f.childAt(o,[1]),q=f.childAt(o,[3]),r=f.createMorphAt(f.childAt(n,[1]),-1,-1),s=f.createMorphAt(n,3,4);return h(d,r,c,"user.email"),j(d,s,c,"if",[i(d,c,"user.model.pending")],{},a,b),k(d,p,c,"action",["revoke"],{}),k(d,q,c,"action",["resend"],{}),l}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("\n        ");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","user-list invited-users");var d=a.createTextNode("\n\n            ");a.appendChild(c,d);var d=a.createElement("h4");a.setAttribute(d,"class","user-list-title");var e=a.createTextNode("Invited users");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n");a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e);var j=e.createMorphAt(e.childAt(i,[1]),2,3);return h(c,j,b,"each",[g(c,b,"invitedUsers")],{itemController:"settings/users/user",keyword:"user"},a,null),i}}}(),d=function(){var a=function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                            ");a.appendChild(b,c);var c=a.createElement("span");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.subexpr,h=e.concat,i=e.attribute,j=e.content;d.detectNamespace(c);var k;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(k=this.build(d),this.hasRendered?this.cachedFragment=k:this.hasRendered=!0),this.cachedFragment&&(k=d.cloneNode(this.cachedFragment,!0))):k=this.build(d);var l=d.childAt(k,[1]),m=d.createMorphAt(l,-1,-1),n=d.createAttrMorph(l,"class");return i(b,n,l,"class",h(b,["role-label ",g(b,a,"unbound",[f(b,a,"role.lowerCaseName")],{})])),j(b,m,a,"role.name"),k}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"each",[g(c,b,"user.model.roles")],{keyword:"role"},a,null),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","user-list-item-figure");var d=a.createTextNode("\n                    ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","hidden");var e=a.createTextNode("Photo of ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n                ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","user-list-item-body");var d=a.createTextNode("\n                    ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","name");var e=a.createTextNode("\n                        ");a.appendChild(d,e);var e=a.createTextNode("\n                    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                    ");a.appendChild(c,d);var d=a.createElement("br");a.appendChild(c,d);var d=a.createTextNode("\n                    ");a.appendChild(c,d);var d=a.createElement("span");a.setAttribute(d,"class","description");var e=a.createTextNode("Last seen: ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n                ");a.appendChild(b,c);var c=a.createElement("aside");a.setAttribute(c,"class","user-list-item-aside");var d=a.createTextNode("\n");a.appendChild(c,d);var d=a.createTextNode("                ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.element,i=f.inline,j=f.content,k=f.block;e.detectNamespace(d);var l;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(l=this.build(e),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=e.cloneNode(this.cachedFragment,!0))):l=this.build(e);var m=e.childAt(l,[1]),n=e.childAt(l,[3]),o=e.createMorphAt(e.childAt(m,[1]),0,-1),p=e.createMorphAt(e.childAt(n,[1]),0,1),q=e.createMorphAt(e.childAt(n,[5]),0,-1),r=e.createMorphAt(e.childAt(l,[5]),0,1);return h(c,m,b,"bind-attr",[],{style:g(c,b,"user.image")}),i(c,o,b,"unbound",[g(c,b,"user.model.name")],{}),j(c,p,b,"user.model.name"),i(c,q,b,"unbound",[g(c,b,"user.last_login")],{}),k(c,r,b,"unless",[g(c,b,"user.model.isAuthor")],{},a,null),l}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e),this.cachedFragment&&e.repairClonedNode(i,[0,1]);var j=e.createMorphAt(i,0,1,d);return h(c,j,b,"link-to",["settings.users.user",g(c,b,"user")],{"class":"user-list-item"},a,null),i}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("    ");a.appendChild(b,c);var c=a.createElement("header");a.setAttribute(c,"class","settings-view-header user-list-header");var d=a.createTextNode("\n");a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title");var e=a.createTextNode("Users");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n        ");a.appendChild(c,d);var d=a.createElement("section");a.setAttribute(d,"class","page-actions");var e=a.createTextNode("\n            ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"class","btn btn-green");var f=a.createTextNode("New User");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n    ");a.appendChild(b,c);var c=a.createElement("section");a.setAttribute(c,"class","content settings-users");var d=a.createTextNode("\n\n");a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("section");a.setAttribute(d,"class","user-list active-users");var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("h4");a.setAttribute(e,"class","user-list-title");var f=a.createTextNode("Active users");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n");a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");return a.appendChild(b,c),b},render:function(e,f,g){var h=f.dom,i=f.hooks,j=i.get,k=i.block,l=i.element;h.detectNamespace(g);var m;f.useFragmentCache&&h.canClone?(null===this.cachedFragment&&(m=this.build(h),this.hasRendered?this.cachedFragment=m:this.hasRendered=!0),this.cachedFragment&&(m=h.cloneNode(this.cachedFragment,!0))):m=this.build(h);var n=h.childAt(m,[1]),o=h.childAt(n,[4,1]),p=h.childAt(m,[3]),q=h.createMorphAt(n,0,1),r=h.createMorphAt(p,0,1),s=h.createMorphAt(h.childAt(p,[2]),2,3);return k(f,q,e,"if",[j(f,e,"session.user.isEditor")],{},a,b),l(f,o,e,"action",["openModal","invite-new-user"],{}),k(f,r,e,"if",[j(f,e,"invitedUsers")],{},c,null),k(f,s,e,"each",[j(f,e,"activeUsers")],{itemController:"settings/users/user",keyword:"user"},d,null),m}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("");a.appendChild(b,c);var c=a.createTextNode("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.block;e.detectNamespace(d);var h;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(h=this.build(e),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=e.cloneNode(this.cachedFragment,!0))):h=this.build(e),this.cachedFragment&&e.repairClonedNode(h,[0,1]);var i=e.createMorphAt(h,0,1,d);return g(c,i,b,"view",["settings/users/users-list-view"],{"class":"users-list-wrapper js-users-list-view"},a,null),h}}}())}),define("ghost/templates/settings/users/user",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("i");a.setAttribute(c,"class","icon-chevron-left"),a.appendChild(b,c);var c=a.createTextNode("Users");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("        ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.block;e.detectNamespace(d);var h;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(h=this.build(e),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=e.cloneNode(this.cachedFragment,!0))):h=this.build(e);var i=e.createMorphAt(h,0,1,d);return g(c,i,b,"link-to",["settings.users"],{"class":"btn btn-default btn-back",tagName:"button"},a,null),h}}}(),b=function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                    ");a.appendChild(b,c);var c=a.createElement("i");a.setAttribute(c,"class","icon-settings"),a.appendChild(b,c);var c=a.createTextNode("\n                    ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","hidden");var d=a.createTextNode("User Settings");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}(),b=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("                    ");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.inline;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,1,c);return f(b,h,a,"partial",["user-actions-menu"],{}),g}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("span");a.setAttribute(c,"class","dropdown");var d=a.createTextNode("\n");a.appendChild(c,d);var d=a.createTextNode("");a.appendChild(c,d);var d=a.createTextNode("            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.block;f.detectNamespace(e);var i;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(i=this.build(f),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=f.cloneNode(this.cachedFragment,!0))):i=this.build(f);var j=f.childAt(i,[1]);this.cachedFragment&&f.repairClonedNode(j,[1]);var k=f.createMorphAt(j,0,1),l=f.createMorphAt(j,1,2);return h(d,k,c,"gh-dropdown-button",[],{dropdownName:"user-actions-menu",classNames:"btn btn-default only-has-icon user-actions-cog",title:"User Actions"},a,null),h(d,l,c,"gh-dropdown",[],{name:"user-actions-menu",tagName:"ul",classNames:"user-actions-menu dropdown-menu dropdown-triangle-top-right"},b,null),i}}}(),c=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","form-group");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("label");a.setAttribute(d,"for","user-role");var e=a.createTextNode("Role");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("p"),e=a.createTextNode("What permissions should this user have?");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(d.childAt(h,[1]),2,3);return g(b,i,a,"gh-role-selector",[],{initialValue:f(b,a,"user.role"),onChange:"changeRole",selectId:"user-role"}),h}}}(),d=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode("            ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","form-group");var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createElement("label");a.setAttribute(d,"for","user-password-old");var e=a.createTextNode("Old Password");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n                ");a.appendChild(c,d);var d=a.createTextNode("\n            ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(d.childAt(h,[1]),2,3);return g(b,i,a,"input",[],{value:f(b,a,"user.password"),type:"password",id:"user-password-old"}),h}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("header");a.setAttribute(c,"class","settings-subview-header clearfix");var d=a.createTextNode("\n");a.appendChild(c,d);var d=a.createTextNode("    ");a.appendChild(c,d);var d=a.createElement("h2");a.setAttribute(d,"class","page-title"),a.appendChild(c,d);var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("section");a.setAttribute(d,"class","page-actions");var e=a.createTextNode("\n");a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"class","btn btn-blue");var f=a.createTextNode("Save");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","content settings-user");var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createElement("figure");a.setAttribute(d,"class","user-cover");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"class","btn btn-default user-cover-edit js-modal-cover");var f=a.createTextNode("Change Cover");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n    ");a.appendChild(c,d);var d=a.createElement("form");a.setAttribute(d,"class","user-profile"),a.setAttribute(d,"novalidate","novalidate"),a.setAttribute(d,"autocomplete","off");var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("input");a.setAttribute(e,"style","display:none;"),a.setAttribute(e,"type","text"),a.setAttribute(e,"name","fakeusernameremembered"),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("input");a.setAttribute(e,"style","display:none;"),a.setAttribute(e,"type","password"),a.setAttribute(e,"name","fakepasswordremembered"),a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("fieldset");a.setAttribute(e,"class","user-details-top");var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("figure");a.setAttribute(f,"class","user-image");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("div");a.setAttribute(g,"id","user-image"),a.setAttribute(g,"class","img"),a.setAttribute(g,"href","#");var h=a.createElement("span");a.setAttribute(h,"class","hidden");var i=a.createTextNode('"s Picture');a.appendChild(h,i),a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("button");a.setAttribute(g,"type","button"),a.setAttribute(g,"class","edit-user-image js-modal-image");var h=a.createTextNode("Edit Picture");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group first-form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","user-name");var h=a.createTextNode("Full Name");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Use your real name so people can recognise you");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("fieldset");a.setAttribute(e,"class","user-details-bottom");var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","user-slug");var h=a.createTextNode("Slug");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("/author/");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","user-email");var h=a.createTextNode("Email");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Used for notifications");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","user-location");var h=a.createTextNode("Location");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Where in the world do you live?");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","user-website");var h=a.createTextNode("Website");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Have a website or blog other than this one? Link it!");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group bio-container");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","user-bio");var h=a.createTextNode("Bio");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("\n                    Write about you, in 200 characters or less.\n                    ");a.appendChild(g,h);var h=a.createTextNode("\n                ");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("hr");a.appendChild(e,f);var f=a.createTextNode("\n\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n        ");a.appendChild(d,e);var e=a.createElement("fieldset"),f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","user-password-new");var h=a.createTextNode("New Password");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");
  a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","user-new-password-verification");var h=a.createTextNode("Verify Password");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("button");a.setAttribute(g,"type","button"),a.setAttribute(g,"class","btn btn-red button-change-password");var h=a.createTextNode("Change Password");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(e,f,g){var h=f.dom,i=f.hooks,j=i.get,k=i.block,l=i.content,m=i.element,n=i.inline;h.detectNamespace(g);var o;f.useFragmentCache&&h.canClone?(null===this.cachedFragment&&(o=this.build(h),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=h.cloneNode(this.cachedFragment,!0))):o=this.build(h);var p=h.childAt(o,[0]),q=h.childAt(p,[4]),r=h.childAt(q,[2]),s=h.childAt(o,[2]),t=h.childAt(s,[1]),u=h.childAt(t,[1]),v=h.childAt(s,[3]),w=h.childAt(v,[5]),x=h.childAt(w,[1]),y=h.childAt(x,[1]),z=h.childAt(x,[3]),A=h.childAt(v,[7]),B=h.childAt(A,[1]),C=h.childAt(B,[4]),D=h.childAt(A,[10]),E=h.childAt(v,[9]),F=h.childAt(E,[6,1]),G=h.createMorphAt(p,0,1),H=h.createMorphAt(h.childAt(p,[2]),-1,-1),I=h.createMorphAt(q,0,1),J=h.createMorphAt(h.childAt(y,[0]),-1,0),K=h.createMorphAt(h.childAt(w,[3]),2,3),L=h.createMorphAt(B,2,3),M=h.createMorphAt(C,-1,0),N=h.createMorphAt(C,0,-1),O=h.createMorphAt(h.childAt(A,[3]),2,3),P=h.createMorphAt(A,4,5),Q=h.createMorphAt(h.childAt(A,[6]),2,3),R=h.createMorphAt(h.childAt(A,[8]),2,3),S=h.createMorphAt(D,2,3),T=h.createMorphAt(h.childAt(D,[4]),0,1),U=h.createMorphAt(E,0,1),V=h.createMorphAt(h.childAt(E,[2]),2,3),W=h.createMorphAt(h.childAt(E,[4]),2,3);return k(f,G,e,"unless",[j(f,e,"session.user.isAuthor")],{},a,null),l(f,H,e,"user.name"),k(f,I,e,"if",[j(f,e,"view.userActionsAreVisible")],{},b,null),m(f,r,e,"action",["save"],{}),m(f,t,e,"bind-attr",[],{style:j(f,e,"cover")}),m(f,u,e,"action",["openModal","upload",j(f,e,"user"),"cover"],{}),m(f,y,e,"bind-attr",[],{style:j(f,e,"image")}),l(f,J,e,"user.name"),m(f,z,e,"action",["openModal","upload",j(f,e,"user"),"image"],{}),n(f,K,e,"input",[],{value:j(f,e,"user.name"),id:"user-name","class":"user-name",placeholder:"Full Name",autocorrect:"off"}),n(f,L,e,"gh-input",[],{"class":"user-name",id:"user-slug",value:j(f,e,"slugValue"),name:"user","focus-out":"updateSlug",placeholder:"Slug",selectOnClick:"true",autocorrect:"off"}),l(f,M,e,"gh-blog-url"),l(f,N,e,"slugValue"),n(f,O,e,"input",[],{type:"email",value:j(f,e,"user.email"),id:"user-email",placeholder:"Email Address",autocapitalize:"off",autocorrect:"off",autocomplete:"off"}),k(f,P,e,"if",[j(f,e,"view.rolesDropdownIsVisible")],{},c,null),n(f,Q,e,"input",[],{type:"text",value:j(f,e,"user.location"),id:"user-location"}),n(f,R,e,"input",[],{type:"url",value:j(f,e,"user.website"),id:"user-website",autocapitalize:"off",autocorrect:"off",autocomplete:"off"}),n(f,S,e,"textarea",[],{id:"user-bio",value:j(f,e,"user.bio")}),n(f,T,e,"gh-count-characters",[j(f,e,"user.bio")],{}),k(f,U,e,"unless",[j(f,e,"view.isNotOwnProfile")],{},d,null),n(f,V,e,"input",[],{value:j(f,e,"user.newPassword"),type:"password",id:"user-password-new"}),n(f,W,e,"input",[],{value:j(f,e,"user.ne2Password"),type:"password",id:"user-new-password-verification"}),m(f,F,e,"action",["password"],{}),o}}}())}),define("ghost/templates/setup",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("section");a.setAttribute(c,"class","setup-box js-setup-box fade-in");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","vertical");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("form");a.setAttribute(e,"id","setup"),a.setAttribute(e,"class","setup-form"),a.setAttribute(e,"method","post"),a.setAttribute(e,"novalidate","novalidate");var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("input");a.setAttribute(f,"style","display:none;"),a.setAttribute(f,"type","text"),a.setAttribute(f,"name","fakeusernameremembered"),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("input");a.setAttribute(f,"style","display:none;"),a.setAttribute(f,"type","password"),a.setAttribute(f,"name","fakepasswordremembered"),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("header"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("h1"),h=a.createTextNode("Welcome to your new Ghost blog");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("h2"),h=a.createTextNode("Let's get a few things set up so you can get started.");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","blog-title");var h=a.createTextNode("Blog Title");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("What would you like to call your blog?");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","name");var h=a.createTextNode("Full Name");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("The name that you will sign your posts with");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","email");var h=a.createTextNode("Email Address");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Used for important notifications");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","password");var h=a.createTextNode("Password");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Must be at least 8 characters");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("footer"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("button");a.setAttribute(g,"type","submit"),a.setAttribute(g,"class","btn btn-green btn-lg");var h=a.createTextNode("Ok, Let's Do This");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline,h=e.element;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[0,1,1]),k=d.childAt(j,[15,1]),l=d.createMorphAt(d.childAt(j,[7]),2,3),m=d.createMorphAt(d.childAt(j,[9]),2,3),n=d.createMorphAt(d.childAt(j,[11]),2,3),o=d.createMorphAt(d.childAt(j,[13]),2,3);return g(b,l,a,"input",[],{type:"text",name:"blog-title",autofocus:"autofocus",autocorrect:"off",value:f(b,a,"blogTitle")}),g(b,m,a,"input",[],{type:"text",name:"name",autofocus:"autofocus",autocorrect:"off",value:f(b,a,"name")}),g(b,n,a,"input",[],{type:"email",name:"email",autofocus:"autofocus",autocorrect:"off",value:f(b,a,"email")}),g(b,o,a,"input",[],{type:"password",name:"password",autofocus:"autofocus",autocorrect:"off",value:f(b,a,"password")}),h(b,k,a,"action",["setup"],{}),h(b,k,a,"bind-attr",[],{disabled:f(b,a,"submitting")}),i}}}())}),define("ghost/templates/signin",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createTextNode("Forgotten password?");return b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("section");a.setAttribute(c,"class","login-box js-login-box fade-in");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("form");a.setAttribute(d,"id","login"),a.setAttribute(d,"class","login-form"),a.setAttribute(d,"method","post"),a.setAttribute(d,"novalidate","novalidate");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","email-wrap");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("span");a.setAttribute(f,"class","input-icon icon-mail");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","password-wrap");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("span");a.setAttribute(f,"class","input-icon icon-lock");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("button");a.setAttribute(e,"class","btn btn-blue"),a.setAttribute(e,"type","submit");var f=a.createTextNode("Log in");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("section");a.setAttribute(e,"class","meta");var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.element,h=f.get,i=f.inline,j=f.block;e.detectNamespace(d);var k;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(k=this.build(e),this.hasRendered?this.cachedFragment=k:this.hasRendered=!0),this.cachedFragment&&(k=e.cloneNode(this.cachedFragment,!0))):k=this.build(e);var l=e.childAt(k,[0,1]),m=e.childAt(l,[5]),n=e.createMorphAt(e.childAt(l,[1,1]),0,1),o=e.createMorphAt(e.childAt(l,[3,1]),0,1),p=e.createMorphAt(e.childAt(l,[7]),0,1);return g(c,l,b,"action",["validateAndAuthenticate"],{on:"submit"}),i(c,n,b,"gh-trim-focus-input",[],{"class":"email",type:"email",placeholder:"Email Address",name:"identification",autocapitalize:"off",autocorrect:"off",value:h(c,b,"model.identification")}),i(c,o,b,"input",[],{"class":"password",type:"password",placeholder:"Password",name:"password",value:h(c,b,"model.password")}),g(c,m,b,"action",["validateAndAuthenticate"],{}),g(c,m,b,"bind-attr",[],{disabled:h(c,b,"submitting")}),j(c,p,b,"link-to",["forgotten"],{"class":"forgotten-password"},a,null),k}}}())}),define("ghost/templates/signup",["exports"],function(a){a["default"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("section");a.setAttribute(c,"class","setup-box js-signup-box fade-in");var d=a.createTextNode("\n    ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","vertical");var e=a.createTextNode("\n        ");a.appendChild(d,e);var e=a.createElement("form");a.setAttribute(e,"id","signup"),a.setAttribute(e,"class","setup-form"),a.setAttribute(e,"method","post"),a.setAttribute(e,"novalidate","novalidate");var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("input");a.setAttribute(f,"style","display:none;"),a.setAttribute(f,"type","text"),a.setAttribute(f,"name","fakeusernameremembered"),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("input");a.setAttribute(f,"style","display:none;"),a.setAttribute(f,"type","password"),a.setAttribute(f,"name","fakepasswordremembered"),a.appendChild(e,f);var f=a.createTextNode("\n\n            ");a.appendChild(e,f);var f=a.createElement("header"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("h1"),h=a.createTextNode("Welcome to Ghost");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("h2"),h=a.createTextNode("Create your account to start publishing");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","email");var h=a.createTextNode("Email Address");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Used for important notifications");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","name");var h=a.createTextNode("Full Name");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("The name that you will sign your posts with");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("div");a.setAttribute(f,"class","form-group");var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("label");a.setAttribute(g,"for","password");var h=a.createTextNode("Password");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("p"),h=a.createTextNode("Must be at least 8 characters");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n            ");a.appendChild(e,f);var f=a.createElement("footer"),g=a.createTextNode("\n                ");a.appendChild(f,g);var g=a.createElement("button");a.setAttribute(g,"type","submit"),a.setAttribute(g,"class","btn btn-green btn-lg");var h=a.createTextNode("Create Account");a.appendChild(g,h),a.appendChild(f,g);var g=a.createTextNode("\n            ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n        ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n    ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline,h=e.element;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[0,1,1]),k=d.childAt(j,[13,1]),l=d.createMorphAt(d.childAt(j,[7]),2,3),m=d.createMorphAt(d.childAt(j,[9]),2,3),n=d.createMorphAt(d.childAt(j,[11]),2,3);return g(b,l,a,"input",[],{type:"email",name:"email",autocorrect:"off",value:f(b,a,"model.email")}),g(b,m,a,"gh-trim-focus-input",[],{type:"text",name:"name",autofocus:"autofocus",autocorrect:"off",value:f(b,a,"model.name")}),g(b,n,a,"input",[],{type:"password",name:"password",autofocus:"autofocus",autocorrect:"off",value:f(b,a,"model.password")}),h(b,k,a,"action",["signup"],{}),h(b,k,a,"bind-attr",[],{disabled:f(b,a,"submitting")}),i}}}())}),window.disableBoot||(window.App=require("ghost/app")["default"].create());