Files
Grav-Admin-Plugin/themes/grav/js/admin.min.js

13 lines
346 KiB
JavaScript
Raw Normal View History

var Grav=webpackJsonpGrav([0],[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=r(i),a=n(295),s=r(a),u=n(296),c=r(u),l=n(301),f=r(l),d=n(306),p=r(d),h=n(382),m=r(h);n(473),n(474),n(475),n(476),n(477);var v=n(478),g=r(v);s["default"].start(),e["default"]={GPM:{GPM:o["default"],Instance:i.Instance},KeepAlive:s["default"],Dashboard:f["default"],Pages:p["default"],Forms:m["default"],Updates:{Updates:c["default"],Instance:u.Instance},MobileSidebar:{MobileSidebar:g["default"],Instance:v.Instance}}},function(t,e,n){(function(t){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(288),u=n(293),c=n(294),l=function(e){function n(){var t=arguments.length<=0||void 0===arguments[0]?"getUpdates":arguments[0];r(this,n);var e=i(this,Object.getPrototypeOf(n).call(this));return e.payload={},e.raw={},e.action=t,e}return o(n,e),a(n,[{key:"setPayload",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return this.payload=t,this.emit("payload",t),this}},{key:"setAction",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"getUpdates":arguments[0];return this.action=t,this.emit("action",t),this}},{key:"fetch",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){var e=this,n=arguments.length<=0||void 0===arguments[0]?function(){return!0}:arguments[0],r=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],i=new FormData;i.append("task","GPM"),i.append("action",this.action),r&&i.append("flush",!0),this.emit("fetching",this),t(u.config.base_url_relative,{credentials:"same-origin",method:"post",body:i}).then(function(t){return e.raw=t,t}).then(s.parseStatus).then(s.parseJSON).then(function(t){return e.response(t)}).then(function(t){return n(t,e.raw)}).then(function(t){return e.emit("fetched",e.payload,e.raw,e)})["catch"](s.userFeedbackError)})},{key:"response",value:function(t){return this.payload=t,t}}]),n}(c.EventEmitter);e["default"]=l;e.Instance=new l}).call(e,n(2))},function(t,e,n){(function(e,n){(function(){!function(t){"use strict";function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function i(t){this.map={},t instanceof i?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function o(t){return t.bodyUsed?e.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function a(t){return new e(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function s(t){var e=new FileReader;return e.readAsArrayBuffer(t),a(e)}function u(t){var e=new FileReader;return e.readAsText(t),a(e)}function c(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(m.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(m.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(t){if(!m.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Erro
}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:0>t?-1:1}},function(t,e,n){var r=n(14);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(14),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(14);r(r.S,"Math",{expm1:n(116)})},function(t,e){t.exports=Math.expm1||function(t){return 0==(t=+t)?t:t>-1e-6&&1e-6>t?t+t*t/2:Math.exp(t)-1}},function(t,e,n){var r=n(14),i=n(112),o=Math.pow,a=o(2,-52),s=o(2,-23),u=o(2,127)*(2-s),c=o(2,-126),l=function(t){return t+1/a-1/a};r(r.S,"Math",{fround:function(t){var e,n,r=Math.abs(t),o=i(t);return c>r?o*l(r/c/s)*c*s:(e=(1+s/a)*r,n=e-(e-r),n>u||n!=n?o*(1/0):o*n)}})},function(t,e,n){var r=n(14),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,a=0,s=arguments.length,u=0;s>a;)n=i(arguments[a++]),n>u?(r=u/n,o=o*r*r+1,u=n):n>0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(14),i=Math.imul;r(r.S+r.F*n(13)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=65535,r=+t,i=+e,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},function(t,e,n){var r=n(14);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(14);r(r.S,"Math",{log1p:n(108)})},function(t,e,n){var r=n(14);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(14);r(r.S,"Math",{sign:n(112)})},function(t,e,n){var r=n(14),i=n(116),o=Math.exp;r(r.S+r.F*n(13)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(14),i=n(116),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(14);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(14),i=n(41),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(65536>e?o(e):o(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(14),i=n(34),o=n(39);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),r>s&&a.push(String(arguments[s]));return a.join("")}})},function(t,e,n){"use strict";n(86)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(131)(!0);n(132)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(40),i=n(37);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return 0>u||u>=c?t?"":void 0:(o=s.charCodeAt(u),55296>o||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,n){"use strict";var r=n(54),i=n(14),o=n(23),a=n(15),s=n(11),u=n(133),c=n(134),l=n(29),f=n(62),d=n(30)("iterator"),p=!([].keys&&"next"in[].keys()),h="@@iterator",m="keys",v="values",g=function(){return this};t.exports=function(t,e,n,_,y,b,x){c(n,e,_);var w,k,S,A=function(t){if(!p&&t in E)return E[t];switch(t){case m:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},M=e+" Iterator",I=y==v,O=!1,E=t.prototype,j=E[d]||E[h]||y&&E[y],z=j||A(y),P=y?I?A("entries"):z:void 0,T="Array"==e?E.entries||j:j;if(T&&(S=f(T.call(new t)),S!==Object.prototype&&(l(S,M,!0),r||s(S,d)||a(S,d,g))),I&&j&&j.name!==v&&(O=!0,z=function(){return j.call(this)}),r&&!x||!p&&!O&&E[d]||a(E,d,z),u[e]=z,u[M]=g,y)if(w={values:I?z:A(v),keys:b?z:A(m),entries:P},x)for(k in w)k in E||o(E,k,w[k]);else i(i.P+i.F*(p||O),e,w);return w}},function(t,e){t.exports={}},function(t,e,n)
o||(X.constructor=w)}var et=new k(new w(2)),nt=k[y].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||u(k[y],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else w=function(t){var e=Y(this,t);this._b=m.call(Array(e),0),this[q]=e},k=function(t,e,n){l(this,k,_),l(t,w,_);var r=t[q],i=f(e);if(0>i||i>r)throw A("Wrong offset!");if(n=void 0===n?r-i:d(n),i+n>r)throw A(b);this[D]=t,this[N]=i,this[q]=n},i&&($(w,C,"_l"),$(k,T,"_b"),$(k,C,"_l"),$(k,L,"_o")),u(k[y],{getInt8:function(t){return H(this,1,t)[0]<<24>>24},getUint8:function(t){return H(this,1,t)[0]},getInt16:function(t){var e=H(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=H(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return R(H(this,4,t,arguments[1]))},getUint32:function(t){return R(H(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return U(H(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return U(H(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){J(this,1,t,B,e)},setUint8:function(t,e){J(this,1,t,B,e)},setInt16:function(t,e){J(this,2,t,V,e,arguments[2])},setUint16:function(t,e){J(this,2,t,V,e,arguments[2])},setInt32:function(t,e){J(this,4,t,K,e,arguments[2])},setUint32:function(t,e){J(this,4,t,K,e,arguments[2])},setFloat32:function(t,e){J(this,4,t,G,e,arguments[2])},setFloat64:function(t,e){J(this,8,t,W,e,arguments[2])}});v(w,g),v(k,_),s(k[y],a.VIEW,!0),e[g]=w,e[_]=k},function(t,e,n){var r=n(14);r(r.G+r.W+r.F*!n(218).ABV,{DataView:n(219).DataView})},function(t,e,n){n(222)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){"use strict";if(n(12)){var r=n(54),i=n(9),o=n(13),a=n(14),s=n(218),u=n(219),c=n(25),l=n(93),f=n(22),d=n(15),p=n(209),h=(n(100),n(40)),m=n(39),v=n(41),g=n(21),_=n(11),y=n(74),b=n(78),x=n(18),w=n(61),k=n(164),S=n(48),A=n(62),M=n(52).f,I=(n(223),n(165)),O=n(24),E=n(30),j=n(173),z=n(38),P=n(206),T=n(193),C=n(133),L=n(166),D=n(192),q=n(188),N=n(185),F=n(16),U=n(53),R=F.f,B=U.f,V=i.RangeError,K=i.TypeError,W=i.Uint8Array,G="ArrayBuffer",$="Shared"+G,H="BYTES_PER_ELEMENT",J="prototype",Y=Array[J],Q=u.ArrayBuffer,X=u.DataView,Z=j(0),tt=j(2),et=j(3),nt=j(4),rt=j(5),it=j(6),ot=z(!0),at=z(!1),st=T.values,ut=T.keys,ct=T.entries,lt=Y.lastIndexOf,ft=Y.reduce,dt=Y.reduceRight,pt=Y.join,ht=Y.sort,mt=Y.slice,vt=Y.toString,gt=Y.toLocaleString,_t=E("iterator"),yt=E("toStringTag"),bt=O("typed_constructor"),xt=O("def_constructor"),wt=s.CONSTR,kt=s.TYPED,St=s.VIEW,At="Wrong length!",Mt=j(1,function(t,e){return Pt(P(t,t[xt]),e)}),It=o(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),Ot=!!W&&!!W[J].set&&o(function(){new W(1).set({})}),Et=function(t,e){if(void 0===t)throw K(At);var n=+t,r=m(t);if(e&&!y(n,r))throw V(At);return r},jt=function(t,e){var n=h(t);if(0>n||n%e)throw V("Wrong offset!");return n},zt=function(t){if(x(t)&&kt in t)return t;throw K(t+" is not a typed array!")},Pt=function(t,e){if(!(x(t)&&bt in t))throw K("It is not a typed array constructor!");return new t(e)},Tt=function(t,e){return Ct(P(t,t[xt]),e)},Ct=function(t,e){for(var n=0,r=e.length,i=Pt(t,r);r>n;)i[n]=e[n++];return i},Lt=function(t,e,n){R(t,e,{get:function(){return this._d[n]}})},Dt=function(t){var e,n,r,i,o,a,s=w(t),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,d=I(s);if(void 0!=d&&!k(d)){for(a=d.call(s),r=[],e=0;!(o=a.next()).done;e++)r.push(o.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),e=0,n=m(s.length),i=Pt(this,n);n>e;e++)i[e]=f?l(s[e],e):s[e];return i},qt=function(){for(var t=0,e=arguments.length,n=Pt(this,e);e>t;)n[t]=arguments[t++];return n},Nt=!!W&&o(function(){gt.call(new W(1))}),Ft=function(){return gt.apply(Nt?mt.call(zt(this)):zt(this),arguments)},Ut={copyWithin:function(t,e){return N.call(zt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(zt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return q.apply(zt(this),arguments)},filter:function(t){return Tt(this,tt(zt(this),t,arguments.length>1?arguments[1]:void 0))},fin
this.setPayload(e),this.task="task"+u.config.param_sep}return o(t,[{key:"setPayload",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return this.payload=t,this}},{key:"fetch",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?!1:arguments[0];return f.Instance.fetch(function(e){return t.setPayload(e)},e),this}},{key:"maintenance",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"hide":arguments[0],e=(0,s["default"])("#updates [data-maintenance-update]");return e["show"===t?"fadeIn":"fadeOut"](),"hide"===t&&(0,s["default"])(".badges.with-updates").removeClass("with-updates").find(".badge.updates").remove(),this}},{key:"grav",value:function(){var t=this.payload.grav;if(t.isUpdatable){var e=this.task,n='\n <i class="fa fa-bullhorn"></i>\n Grav <b>v'+t.available+"</b> "+u.translations.PLUGIN_ADMIN.IS_NOW_AVAILABLE+'! <span class="less">('+u.translations.PLUGIN_ADMIN.CURRENT+"v"+t.version+")</span>\n ";n+=t.isSymlink?'<span class="hint--left" style="float: right;" data-hint="'+u.translations.PLUGIN_ADMIN.GRAV_SYMBOLICALLY_LINKED+'"><i class="fa fa-fw fa-link"></i></span>':'<button data-maintenance-update="'+u.config.base_url_relative+"/update.json/"+e+"updategrav/admin-nonce"+u.config.param_sep+u.config.admin_nonce+'" class="button button-small secondary" id="grav-update-button">'+u.translations.PLUGIN_ADMIN.UPDATE_GRAV_NOW+"</button>",(0,s["default"])("[data-gpm-grav]").addClass("grav").html("<p>"+n+"</p>")}return(0,s["default"])("#grav-update-button").on("click",function(){(0,s["default"])(this).html(u.translations.PLUGIN_ADMIN.UPDATING_PLEASE_WAIT+" "+(0,l["default"])(t.assets["grav-update"].size)+"..")}),this}},{key:"resources",value:function(){if(!this.payload.resources.total)return this.maintenance("hide");var t=["plugins","themes"],e=["plugin","theme"],n=this.task,r=this.payload.resources,i=r.plugins,o=r.themes;return this.payload.resources.total?void[i,o].forEach(function(r,i){if(r&&!Array.isArray(r)){var o=Object.keys(r).length,a=t[i];(0,s["default"])('#admin-menu a[href$="/'+t[i]+'"]').find(".badges").addClass("with-updates").find(".badge.updates").text(o);var c=a.charAt(0).toUpperCase()+a.substr(1).toLowerCase(),l=(0,s["default"])(".grav-update."+a);l.html('\n <p>\n <i class="fa fa-bullhorn"></i>\n '+o+" "+u.translations.PLUGIN_ADMIN.OF_YOUR+" "+a+" "+u.translations.PLUGIN_ADMIN.HAVE_AN_UPDATE_AVAILABLE+'\n <a href="'+u.config.base_url_relative+"/"+a+"/"+n+"update/admin-nonce"+u.config.param_sep+u.config.admin_nonce+'" class="button button-small secondary">'+u.translations.PLUGIN_ADMIN.UPDATE+" All "+c+"</a>\n </p>\n "),Object.keys(r).forEach(function(t){var o=(0,s["default"])("[data-gpm-"+e[i]+'="'+t+'"] .gpm-name'),c=o.find("a");"plugins"!==a||o.find(".badge.update").length?"themes"===a&&o.append('<div class="gpm-ribbon"><a href="'+c.attr("href")+'">'+u.translations.PLUGIN_ADMIN.UPDATE.toUpperCase()+"</a></div>"):o.append('<a class="plugin-update-button" href="'+c.attr("href")+'"><span class="badge update">'+u.translations.PLUGIN_ADMIN.UPDATE_AVAILABLE+"!</span></a>");var l=(0,s["default"])(".grav-update."+e[i]);l.length&&l.html('\n <p>\n <i class="fa fa-bullhorn"></i>\n <strong>v'+r[t].available+"</strong> "+u.translations.PLUGIN_ADMIN.OF_THIS+" "+e[i]+" "+u.translations.PLUGIN_ADMIN.IS_NOW_AVAILABLE+'!\n <a href="'+u.config.base_url_relative+"/"+a+"/"+t+"/"+n+"update/admin-nonce"+u.config.param_sep+u.config.admin_nonce+'" class="button button-small secondary">'+u.translations.PLUGIN_ADMIN.UPDATE+" "+(e[i].charAt(0).toUpperCase()+e[i].substr(1).toLowerCase())+"</a>\n </p>\n ")})}}):this}}]),t}();e["default"]=d;var p=new d;e.Instance=p,f.Instance.on("fetched",function(t,e){p.setPayload(t.payload||{}),p.grav().resources()}),"1"===u.config.enable_auto_updates_check&&f.Instance.fetch()},function(t,e){"use strict
this.renderButtons()}return o(t,null,[{key:"templates",value:function(){return{navigation:'\n <div class="grav-editor-toolbar">\n <div class="grav-editor-actions"></div>\n <div class="grav-editor-modes"></div>\n </div>\n '}}}]),o(t,[{key:"renderButtons",value:function(){var t=this;this.ui.navigation.find(".grav-editor-actions").empty().append("<ul />"),c["default"].navigation.forEach(function(e){Object.keys(e).forEach(function(n){var r=e[n];if(r.modes||(r.modes=[]),!~t.codemirror.options.ignore.indexOf(n)&&(!r.modes.length||r.modes.indexOf(t.codemirror.options.mode)>-1)){var i=(0,s["default"])('<li class="grav-editor-button-'+n+'"><a class="hint--top" data-hint="'+r.title+'" title="'+r.title+'">'+r.label+"</a></li>");t.ui.navigation.find(".grav-editor-actions ul").append(i),r.action&&r.action.call(r.action,{codemirror:t.codemirror,button:i,textarea:t.editor,ui:t.ui})}})}),this.ui.navigation.find(".grav-editor-modes").empty().append("<ul />"),c["default"].states.forEach(function(e){Object.keys(e).forEach(function(n){var r=e[n];if(r.modes||(r.modes=[]),!~t.codemirror.options.ignore.indexOf(n)&&(!r.modes.length||r.modes.indexOf(t.codemirror.options.mode)>-1)){var i=(0,s["default"])('<li class="grav-editor-button-'+n+'"><a class="hint--top" data-hint="'+r.title+'" title="'+r.title+'">'+r.label+"</a></li>");t.ui.navigation.find(".grav-editor-modes ul").append(i),r.action&&r.action.call(r.action,{codemirror:t.codemirror,button:i,textarea:t.editor,ui:t.ui})}})})}}]),t}();e.Instance=new g}).call(e,function(){return this}())},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.strategies=void 0;var i=n(291),o=r(i),a=n(293),s=n(300),u=r(s),c=function(t){var e=t.name,n=t.replace,r=t.codemirror,i=t.button,o=t.mode,a=void 0===o?"replaceSelections":o,s=t.runner;i.on("click.editor."+e,function(){l[a]({token:"$1",template:n,codemirror:r,runner:s})})},l=e.strategies={replaceSelections:function(t){var e=t.template,n=t.token,r=t.codemirror,i=t.runner,o=[],a=[],s=r.getSelections(),u=r.listSelections(),c={};s.forEach(function(t,r){var s=e.replace(n,t),l=s.indexOf("$cur"),f=u[r].anchor,d=f.line,p=f.ch;s=s.replace("$cur",""),s=i?i(t,s,u):s,o.push(s),c[d]||(c[d]=0),p+=c[d]+(-1===l?s.length:l);var h={ch:p,line:d};a.push({anchor:h,head:h}),c[d]+=s.length-t.length}),r.replaceSelections(o),r.setSelections(a),r.focus()},replaceLine:function(t){var e=t.template,n=t.token,r=t.codemirror,i=t.runner,o=r.listSelections(),a=void 0;o.forEach(function(t){var o={min:Math.min(t.anchor.line,t.head.line),max:Math.max(t.anchor.line,t.head.line)};r.eachLine(o.min,o.max+1,function(t){var o=e.replace(n,t.text),s=r.getLineNumber(t);o=i?i(t,o):o,r.replaceRange(o,{line:s,ch:0},{line:s,ch:o.length}),a={line:s,ch:o.length}})}),r.setSelection(a,a,"end"),r.focus()},replaceRange:function(){}};e["default"]={navigation:[{bold:{identifier:"bold",title:"Bold",label:'<i class="fa fa-fw fa-bold"></i>',modes:["gfm","markdown"],action:function(t){var e=t.codemirror,n=t.button;t.textarea;c({name:"bold",replace:"**$1$cur**",codemirror:e,button:n})}}},{italic:{identifier:"italic",title:"Italic",label:'<i class="fa fa-fw fa-italic"></i>',modes:["gfm","markdown"],action:function(t){var e=t.codemirror,n=t.button;t.textarea;c({name:"italic",replace:"_$1$cur_",codemirror:e,button:n})}}},{strike:{identifier:"strike",title:"Strikethrough",label:'<i class="fa fa-fw fa-strikethrough"></i>',modes:["gfm","markdown"],action:function(t){var e=t.codemirror,n=t.button;t.textarea;c({name:"strike",replace:"~~$1$cur~~",codemirror:e,button:n})}}},{link:{identifier:"link",title:"Link",label:'<i class="fa fa-fw fa-link"></i>',modes:["gfm","markdown"],action:function(t){var e=t.codemirror,n=t.button;t.textarea;c({name:"link",replace:"[$1](http://$cur)",codemirror:e,button:n})}}},{image:{identifier:"image",title:"Image",label:'<i class="fa fa-fw fa-picture-o"></i>',modes:["gfm","markdown"],action:function(t){var e=t.codemirror,n=t.butt
t.defineMode("gfm",function(n,r){function i(t){return t.code=!1,null}var o=0,a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(t){return{code:t.code,codeBlock:t.codeBlock,ateSpace:t.ateSpace}},token:function(t,n){if(n.combineTokens=null,n.codeBlock)return t.match(/^```+/)?(n.codeBlock=!1,null):(t.skipToEnd(),null);if(t.sol()&&(n.code=!1),t.sol()&&t.match(/^```+/))return t.skipToEnd(),n.codeBlock=!0,null;if("`"===t.peek()){t.next();var i=t.pos;t.eatWhile("`");var a=1+t.pos-i;return n.code?a===o&&(n.code=!1):(o=a,n.code=!0),null}if(n.code)return t.next(),null;if(t.eatSpace())return n.ateSpace=!0,null;if((t.sol()||n.ateSpace)&&(n.ateSpace=!1,r.gitHubSpice!==!1)){if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return t.match(e)&&"]("!=t.string.slice(t.start-2,t.start)&&(0==t.start||/\W/.test(t.string.charAt(t.start-1)))?(n.combineTokens=!0,"link"):(t.next(),null)},blankLine:i},s={underscoresBreakWords:!1,taskLists:!0,fencedCodeBlocks:"```",strikethrough:!0};for(var u in r)s[u]=r[u];return s.name="markdown",t.overlayMode(t.getMode(n,s),a)},"markdown"),t.defineMIME("text/x-gfm","gfm")})},function(t,e,n){!function(t){t(n(324),n(361),n(362))}(function(t){"use strict";t.defineMode("markdown",function(e,n){function r(n){if(t.findModeByName){var r=t.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=t.getMode(e,n);return"null"==i.name?null:i}function i(t,e,n){return e.f=e.inline=n,n(t,e)}function o(t,e,n){return e.f=e.block=n,n(t,e)}function a(t){return!t||!/\S/.test(t.string)}function s(t){return t.linkTitle=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,k&&t.f==c&&(t.f=h,t.block=u),t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine=null,null}function u(t,e){var o=t.sol(),s=e.list!==!1,u=e.indentedCode;e.indentedCode=!1,s&&(e.indentationDiff>=0?(e.indentationDiff<4&&(e.indentation-=e.indentationDiff),e.list=null):e.indentation>0?(e.list=null,e.listDepth=Math.floor(e.indentation/4)):(e.list=!1,e.listDepth=0));var c=null;if(e.indentationDiff>=4)return t.skipToEnd(),u||a(e.prevLine)?(e.indentation-=4,e.indentedCode=!0,S.code):null;if(t.eatSpace())return null;if((c=t.match(j))&&c[1].length<=6)return e.header=c[1].length,n.highlightFormatting&&(e.formatting="header"),e.f=e.inline,d(e);if(!(a(e.prevLine)||e.quote||s||u)&&(c=t.match(z)))return e.header="="==c[0].charAt(0)?1:2,n.highlightFormatting&&(e.formatting="header"),e.f=e.inline,d(e);if(t.eat(">"))return e.quote=o?1:e.quote+1,n.highlightFormatting&&(e.formatting="quote"),t.eatSpace(),d(e);if("["===t.peek())return i(t,e,_);if(t.match(M,!0))return e.hr=!0,S.hr;if((a(e.prevLine)||s)&&(t.match(I,!1)||t.match(O,!1))){var f=null;return t.match(I,!0)?f="ul":(t.match(O,!0),f="ol"),e.indentation=t.column()+t.current().length,e.list=!0,e.listDepth++,n.taskLists&&t.match(E,!1)&&(e.taskList=!0),e.f=e.inline,n.highlightFormatting&&(e.formatting=["list","list-"+f]),d(e)}return n.fencedCodeBlocks&&(c=t.match(T,!0))?(e.fencedChars=c[1],e.localMode=r(c[2]),e.localMode&&(e.localState=e.localMode.startState()),e.f=e.block=l,n.highlightFormatting&&(e.formatting="code-block"),e.code=-1,d(e)):i(t,e,e.inline)}function c(e,n){var r=w.token(e,n.htmlState);if(!k){var i=t.innerMode(w,n.htmlState);("xml"==i.mode.name&&null===i.state.tagStart&&!i.state.context&&i.state.tokenize.isInText||n.md_inside&&e.current().indexOf(">")>-1)&&(n.f=h,n.block=u,n.htmlState=null)}return r}function l(t,e){return e.fencedChars&&t.match(e.fencedChars,!1)?(e.localMode=e.localState=null,e.f=e.block=f,null):e.localMode?e.localMode.token(t,e.localState):(t.skipToEnd(),S.code)}function f(t,e){t.match(e.fencedChars),e.block=u,e.f=h,e.fencedChars=null,n.highlightFormatting&&(e.formatting="code-block"),e.code=1;var r=d(e);return e.code=0,r}function d(t){var e=[];if(t.formatting){e.push(S.formatting),"string"==typeof t.formatting&&(t.formatting=[t.formatting]);for(var r=0;r<t.formatting.length
{token:e.token,inTag:e.inTag,localMode:e.localMode,localState:n,htmlState:t.copyState(c,e.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(e,n){return!e.localMode||/^\s*<\//.test(n)?c.indent(e.htmlState,n):e.localMode.indent?e.localMode.indent(e.localState,n):t.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||c}}}},"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")})},function(t,e,n){!function(t){t(n(324))}(function(t){"use strict";function e(t,e,n){return/^(?:operator|sof|keyword c|case|new|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}t.defineMode("javascript",function(n,r){function i(t){for(var e,n=!1,r=!1;null!=(e=t.next());){if(!n){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}n=!n&&"\\"==e}}function o(t,e,n){return bt=t,xt=n,e}function a(t,n){var r=t.next();if('"'==r||"'"==r)return n.tokenize=s(r),n.tokenize(t,n);if("."==r&&t.match(/^\d+(?:[eE][+\-]?\d+)?/))return o("number","number");if("."==r&&t.match(".."))return o("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return o(r);if("="==r&&t.eat(">"))return o("=>","operator");if("0"==r&&t.eat(/x/i))return t.eatWhile(/[\da-f]/i),o("number","number");if("0"==r&&t.eat(/o/i))return t.eatWhile(/[0-7]/i),o("number","number");if("0"==r&&t.eat(/b/i))return t.eatWhile(/[01]/i),o("number","number");if(/\d/.test(r))return t.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),o("number","number");if("/"==r)return t.eat("*")?(n.tokenize=u,u(t,n)):t.eat("/")?(t.skipToEnd(),o("comment","comment")):e(t,n,1)?(i(t),t.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),o("regexp","string-2")):(t.eatWhile(Et),o("operator","operator",t.current()));if("`"==r)return n.tokenize=c,c(t,n);if("#"==r)return t.skipToEnd(),o("error","error");if(Et.test(r))return t.eatWhile(Et),o("operator","operator",t.current());if(It.test(r)){t.eatWhile(It);var a=t.current(),l=Ot.propertyIsEnumerable(a)&&Ot[a];return l&&"."!=n.lastType?o(l.type,l.style,a):o("variable","variable",a)}}function s(t){return function(e,n){var r,i=!1;if(St&&"@"==e.peek()&&e.match(jt))return n.tokenize=a,o("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=t||i);)i=!i&&"\\"==r;return i||(n.tokenize=a),o("string","string")}}function u(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=a;break}r="*"==n}return o("comment","comment")}function c(t,e){for(var n,r=!1;null!=(n=t.next());){if(!r&&("`"==n||"$"==n&&t.eat("{"))){e.tokenize=a;break}r=!r&&"\\"==n}return o("quasi","string-2",t.current())}function l(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(0>n)){for(var r=0,i=!1,o=n-1;o>=0;--o){var a=t.string.charAt(o),s=zt.indexOf(a);if(s>=0&&3>s){if(!r){++o;break}if(0==--r)break}else if(s>=3&&6>s)++r;else if(It.test(a))i=!0;else{if(/["'\/]/.test(a))return;if(i&&!r){++o;break}}}i&&!r&&(e.fatArrowAt=o)}}function f(t,e,n,r,i,o){this.indented=t,this.column=e,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function d(t,e){for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0;for(var r=t.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==e)return!0}function p(t,e,n,r,i){var o=t.cc;for(Tt.state=t,Tt.stream=i,Tt.marked=null,Tt.cc=o,Tt.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;){var a=o.length?o.pop():At?k:w;if(a(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Tt.marked?Tt.marked:"variable"==n&&d(t,r)?"variable-2":e}}}function h(){for(var t=arguments.length-1;t>=0;t--)Tt.cc.push(arguments[t])}function m(){return h.apply(null,arguments),!0}function v(t){function e(e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}var n=Tt.state;if(Tt.marked="def",n.context){if(e(n.localVars))return;n.localVars={name:t,next:n.localVars}}else{if(e(n.globalVars))return;r.globalVars&&(n.globalVars={name:t,next:n.globalVars})}}function g(){Tt.state.context={prev:Tt.state.context,vars:Tt.state.localVars},Tt.state.localVars=Ct}function _(){Tt.state.localVars=Tt.state.context.vars,Tt.state.context=Tt.state.context.prev}function y(t,e){var n=function(){var n=Tt.stat
e.startOfLine=!1,e.prevToken=h?"def":u||p,u},indent:function(e,r){if(e.tokenize!=l&&null!=e.tokenize)return t.Pass;var i=e.context,o=r&&r.charAt(0);if(n(i.type)&&"}"==o&&(i=i.prev),S.indent){var a=S.indent(e,i,r);if("number"==typeof a)return a}var s=o==i.type,u=i.prev&&"switchstatement"==i.prev.type;if(c.allmanIndentation&&/[{(]/.test(o)){for(;"top"!=i.type&&"}"!=i.type;)i=i.prev;return i.indented}return n(i.type)?i.indented+("{"==o?0:v):!i.align||g&&")"==i.type?")"!=i.type||s?i.indented+(s?0:m)+(s||!u||/^(?:case|default)\b/.test(r)?0:m):i.indented+v:i.column+(s?0:1)},electricInput:I?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});var b="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile",x="int long char short double float unsigned signed void size_t ptrdiff_t";v(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:s(b),types:s(x+" bool _Complex _Bool float_t double_t intptr_t intmax_t int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t"),blockKeywords:s("case do else for if switch while struct"),defKeywords:s("struct"),typeFirstDefinitions:!0,atoms:s("null true false"),hooks:{"#":c,"*":l},modeProps:{fold:["brace","include"]}}),v(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:s(b+" asm dynamic_cast namespace reinterpret_cast try explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),types:s(x+" bool wchar_t"),blockKeywords:s("catch class do else finally for if struct switch try while"),defKeywords:s("class namespace struct enum union"),typeFirstDefinitions:!0,atoms:s("true false null"),hooks:{"#":c,"*":l,u:d,U:d,L:d,R:d,0:f,1:f,2:f,3:f,4:f,5:f,6:f,7:f,8:f,9:f,token:function(t,e,n){return"variable"!=n||"("!=t.peek()||";"!=e.prevToken&&null!=e.prevToken&&"}"!=e.prevToken||!p(t.current())?void 0:"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),v("text/x-java",{name:"clike",keywords:s("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while"),types:s("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:s("catch class do else finally for if switch try while"),defKeywords:s("class interface package enum"),typeFirstDefinitions:!0,atoms:s("true false null"),endStatement:/^[;:]$/,hooks:{"@":function(t){return t.eatWhile(/[\w\$_]/),"meta"}},modeProps:{fold:["brace","import"]}}),v("text/x-csharp",{name:"clike",keywords:s("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:s("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:s("catch class do else finally for foreach if struct switch try while"),defKeywords:s("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:s("true false null"),hooks:{"@":function(t,e){return t.eat('"')?(e.token
message:e})};try{jsonlint.parse(e)}catch(r){}return n})})},function(t,e,n){!function(t){t(n(324))}(function(t){"use strict";t.registerHelper("lint","yaml",function(e){var n=[];try{jsyaml.load(e)}catch(r){var i=r.mark;n.push({from:t.Pos(i.line,i.column),to:t.Pos(i.line,i.column),message:r.message})}return n})})},function(t,e,n){!function(t){t(n(324))}(function(t){"use strict";var e=/^(\s*)(>[> ]*|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;t.commands.newlineAndIndentContinueMarkdownList=function(i){if(i.getOption("disableInput"))return t.Pass;for(var o=i.listSelections(),a=[],s=0;s<o.length;s++){var u=o[s].head,c=i.getStateAfter(u.line),l=c.list!==!1,f=0!==c.quote,d=i.getLine(u.line),p=e.exec(d);if(!o[s].empty()||!l&&!f||!p)return void i.execCommand("newlineAndIndent");if(n.test(d))i.replaceRange("",{line:u.line,ch:0},{line:u.line,ch:u.ch+1}),a[s]="\n";else{var h=p[1],m=p[5],v=r.test(p[2])||p[2].indexOf(">")>=0?p[2]:parseInt(p[3],10)+1+p[4];a[s]="\n"+h+v+m}}i.replaceSelections(a)}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(291),o=r(i);(0,o["default"])('[name="task"][value="saveas"], [name="task"][value="switchlanguage"]').on("mousedown touchstart",function(t){var e=["lang","redirect"],n=(0,o["default"])(t.currentTarget),r=(0,o["default"])("#"+n.attr("form"));return r.length?(e.forEach(function(t){var e=n.attr(t);if(e){var i=r.find('[name="'+t+'"]');i.length||(i=(0,o["default"])('<input type="hidden" name="'+t+'" value="" />'),r.append(i)),i.val(e)}}),!0):void 0})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(383),o=r(i),a=n(386),s=r(a),u=n(387),c=r(u);e["default"]={Form:{Form:s["default"],Instance:a.Instance},Fields:c["default"],FormState:{FormState:o["default"],Instance:i.Instance}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.DOMBehaviors=e.Instance=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(291),s=r(a),u=n(384),c=r(u);n(385);var l={},f={attach:function(){this.preventUnload(),this.preventClickAway()},preventUnload:function(){s["default"]._data(window,"events")&&(s["default"]._data(window,"events").beforeunload||[]).filter(function(t){return"_grav"===t.namespace})||(0,s["default"])(window).on("beforeunload._grav",function(){return p.equals()===!1?"You have made changes on this page that you have not yet confirmed. If you navigate away from this page you will lose your unsaved changes.":void 0})},preventClickAway:function(){var t='a[href]:not([href^="#"])';s["default"]._data((0,s["default"])(t).get(0),"events")&&(s["default"]._data((0,s["default"])(t).get(0),"events").click||[]).filter(function(t){return"_grav"===t.namespace})||(0,s["default"])(t).on("click._grav",function(t){var e=p.equals();if(null===e||e)return!0;t.preventDefault();var n=(0,s["default"])(this).attr("href"),r=(0,s["default"])('[data-remodal-id="changes"]'),i=s["default"].remodal.lookup[r.data("remodal")],o=(0,s["default"])("a.button",r),a=function u(t){t.preventDefault();var e=(0,s["default"])(this).data("leave-action");o.off("click",u),i.close(),"continue"===e&&((0,s["default"])(window).off("beforeunload"),window.location.href=n)};o.on("click",a),i.open()})}},d=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?{ignore:[],form_id:"blueprints"}:arguments[0];i(this,t),this.options=e,this.refresh(),this.form&&this.fields.length&&(l=this.collect(),f.attach())}return o(t,[{key:"refresh",value:function(){return this.form=(0,s["default"])("form#"+this.options.form_id).filter(":noparents(.remodal)"),this.fields=(0,s["default"])("form#"+this.options.form_id+' *, [form="
for(var n=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(t(r[i],i++,this)===!1)return i;for(var o;!(o=n.next()).done;){var a=o.value;if(r[i]=a,t(a,i++,this)===!1)break}return i},D.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,i=0;return new x(function(){if(i>=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return w(t,i,r[i++])})};var In;t(Q,z),Q.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Q.prototype.get=function(t,e){return this.has(t)?this._value:e},Q.prototype.includes=function(t){return J(this._value,t)},Q.prototype.slice=function(t,e){var n=this.size;return g(t,e,n)?this:new Q(this._value,y(e,n)-_(t,n))},Q.prototype.reverse=function(){return this},Q.prototype.indexOf=function(t){return J(this._value,t)?0:-1},Q.prototype.lastIndexOf=function(t){return J(this._value,t)?this.size:-1},Q.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(t(this._value,n,this)===!1)return n+1;return n},Q.prototype.__iterator=function(t,e){var n=this,r=0;return new x(function(){return r<n.size?w(t,r++,n._value):k()})},Q.prototype.equals=function(t){return t instanceof Q?J(this._value,t._value):Y(t)};var On;t(Z,z),Z.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Z.prototype.get=function(t,e){return this.has(t)?this._start+m(this,t)*this._step:e},Z.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},Z.prototype.slice=function(t,e){return g(t,e,this.size)?this:(t=_(t,this.size),e=y(e,this.size),t>=e?new Z(0,0):new Z(this.get(t,this._end),this.get(e,this._end),this._step))},Z.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},Z.prototype.lastIndexOf=function(t){return this.indexOf(t)},Z.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;n>=o;o++){if(t(i,o,this)===!1)return o+1;i+=e?-r:r}return o},Z.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;return new x(function(){var a=i;return i+=e?-r:r,o>n?k():w(t,o++,a)})},Z.prototype.equals=function(t){return t instanceof Z?this._start===t._start&&this._end===t._end&&this._step===t._step:Y(this,t)};var En;t(tt,e),t(et,tt),t(nt,tt),t(rt,tt),tt.Keyed=et,tt.Indexed=nt,tt.Set=rt;var jn,zn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t=0|t,e=0|e;var n=65535&t,r=65535&e;return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},Pn=Object.isExtensible,Tn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Cn="function"==typeof WeakMap;Cn&&(jn=new WeakMap);var Ln=0,Dn="__immutablehash__";"function"==typeof Symbol&&(Dn=Symbol(Dn));var qn=16,Nn=255,Fn=0,Un={};t(ft,et),ft.prototype.toString=function(){return this.__toString("Map {","}")},ft.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ft.prototype.set=function(t,e){return kt(this,t,e)},ft.prototype.setIn=function(t,e){return this.updateIn(t,gn,function(){return e})},ft.prototype.remove=function(t){return kt(this,t,gn)},ft.prototype.deleteIn=function(t){return this.updateIn(t,function(){return gn})},ft.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},ft.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=Ct(this,ze(t),e,n);return r===gn?void 0:r},ft.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):wt()},ft.prototype.merge=function(){return jt(this,void 0,arguments)},ft.prototype.mergeWith=function(t){var e=un.call(arguments,1);return jt(this,t,e)},ft.prototype.mergeIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,wt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ft.pro
i&&(n=n.closest(".selectize-control").siblings("select[name]")),!n.prop("disabled"))return!0;var o=n.closest(".form-field").find('[data-grav-field="toggleable"] input[type="checkbox"]');o.trigger("click")})}},{key:"addedNodes",value:function(t){var e=this;t.forEach(function(t){"childList"===t.type&&t.addedNodes&&(0,s["default"])("body").trigger("mutation._grav",t.target,t,e)})}}]),t}();e["default"]=d;e.Instance=new d("form#blueprints")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(388),o=r(i),a=n(389),s=r(a),u=n(390),c=r(u),l=n(391),f=r(l),d=n(322),p=r(d);e["default"]={SelectizeField:{SelectizeField:o["default"],Instance:i.Instance},ArrayField:{ArrayField:s["default"],Instance:a.Instance},CollectionsField:{CollectionsField:c["default"],Instance:u.Instance},DateTimeField:{DateTimeField:f["default"],Instance:l.Instance},EditorField:{EditorField:p["default"],Instance:d.Instance}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(291),s=r(a);n(312);var u=function(){function t(){var e=this,n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,t),this.options=Object.assign({},n),this.elements=[],(0,s["default"])("[data-grav-selectize]").each(function(t,n){return e.add(n)}),(0,s["default"])("body").on("mutation._grav",this._onAddedNodes.bind(this))}return o(t,[{key:"add",value:function(t){t=(0,s["default"])(t);var e=t.prop("tagName").toLowerCase(),n="input"===e||"select"===e,r=(n?t.closest("[data-grav-selectize]"):t).data("grav-selectize")||{},i=n?t:t.find("input, select");i.length&&!i.get(0).selectize&&(i.selectize(r),this.elements.push(i.data("selectize")))}},{key:"_onAddedNodes",value:function(t,e){var n=this,r=(0,s["default"])(e).find("select.fancy, input.fancy");r.length&&r.each(function(t,e){return n.add(e)})}}]),t}();e["default"]=u;e.Instance=new u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(291),s=r(a),u=(0,s["default"])("body"),c=function(){function t(e){i(this,t),this.container=(0,s["default"])(e),void 0===this.getName()&&(this.container=this.container.closest("[data-grav-array-name]"))}return o(t,[{key:"getName",value:function(){return this.container.data("grav-array-name")||""}},{key:"getKeyPlaceholder",value:function(){return this.container.data("grav-array-keyname")||"Key"}},{key:"getValuePlaceholder",value:function(){return this.container.data("grav-array-valuename")||"Value"}},{key:"isValueOnly",value:function(){return this.container.find('[data-grav-array-mode="value_only"]:first').length||!1}},{key:"shouldBeDisabled",value:function(){var t=this.container.closest(".form-field").find('[data-grav-field="toggleable"] input[type="checkbox"]');return t.length&&t.is(":not(:checked)")}},{key:"getNewRow",value:function(){var t="";return t+=this.isValueOnly()?'\n <div class="form-row array-field-value_only" data-grav-array-type="row">\n <input '+(this.shouldBeDisabled()?'disabled="disabled"':"")+' data-grav-array-type="value" type="text" value="" placeholder="'+this.getValuePlaceholder()+'" />\n ':'\n <div class="form-row" data-grav-array-type="row">\n <input '+(this.s
_resolve:o(function(t){return"value"===this.__kind__?this.__values__[t]:"key"===this.__kind__?this.__list__[t]:[this.__list__[t],this.__values__[t]]}),_unBind:o(function(){this.__values__=null,l.call(this)}),toString:o(function(){return"[object Map Iterator]"})}),Object.defineProperty(r.prototype,s,o("c","Map Iterator"))},function(t,e,n){"use strict";t.exports=n(530)("key","value","key+value")},function(t,e){"use strict";var n=Array.prototype.forEach,r=Object.create;t.exports=function(t){var e=r(null);return n.call(arguments,function(t){e[t]=!0}),e}},function(t,e){"use strict";t.exports=function(){return"undefined"==typeof Map?!1:"[object Map]"===Object.prototype.toString.call(new Map)}()}]);
2016-02-05 12:37:48 -08:00
//# sourceMappingURL=admin.min.js.map