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

20 lines
399 KiB
JavaScript
Raw Normal View History

var Grav=webpackJsonpGrav([0],[function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=r(i),a=n(2),s=r(a),u=n(301),c=r(u),l=n(302),f=r(l),d=n(308),h=r(d),p=n(313),m=r(p),v=n(396),g=r(v),_=n(495),y=r(_);n(497),n(499),n(500),n(501),n(502),n(503);var b=n(505),k=r(b);c["default"].start(),e.setInterval(function(){_.Instance.update(),b.Instance.scroller.update()},150),(0,o["default"])(e).on("sidebar_state._grav",function(){(0,o["default"])(".admin-menu-wrapper").data("scrollbar").update(),(0,o["default"])("#admin-main .content-wrapper").data("scrollbar").update(),Object.keys(h["default"].Chart.Instances).forEach(function(e){h["default"].Chart.Instances[e].chart.update()})}),t["default"]={GPM:{GPM:s["default"],Instance:a.Instance},KeepAlive:c["default"],Dashboard:h["default"],Pages:m["default"],Forms:g["default"],Scrollbar:{Scrollbar:y["default"],Instance:_.Instance},Updates:{Updates:f["default"],Instance:l.Instance},Sidebar:{Sidebar:k["default"],Instance:b.Instance}}}).call(t,function(){return this}())},,function(e,t,n){(function(e){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Instance=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(295),u=n(299),c=n(300),l=function(t){function n(){var e=arguments.length<=0||void 0===arguments[0]?"getUpdates":arguments[0];r(this,n);var t=i(this,Object.getPrototypeOf(n).call(this));return t.payload={},t.raw={},t.action=e,t}return o(n,t),a(n,[{key:"setPayload",value:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return this.payload=e,this.emit("payload",e),this}},{key:"setAction",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"getUpdates":arguments[0];return this.action=e,this.emit("action",e),this}},{key:"fetch",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var t=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),e(u.config.base_url_relative,{credentials:"same-origin",method:"post",body:i}).then(function(e){return t.raw=e,e}).then(s.parseStatus).then(s.parseJSON).then(function(e){return t.response(e)}).then(function(e){return n(e,t.raw)}).then(function(e){return t.emit("fetched",t.payload,t.raw,t)})["catch"](s.userFeedbackError)})},{key:"response",value:function(e){return this.payload=e,e}}]),n}(c.EventEmitter);t["default"]=l;t.Instance=new l}).call(t,n(3))},function(e,t,n){(function(t,n){(function(){!function(e){"use strict";function n(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function r(e){return"string"!=typeof e&&(e=String(e)),e}function i(e){this.map={},e instanceof i?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function o(e){return e.bodyUsed?t.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function a(e){return new t(function(t,n){e.onload=function(){t(e.r
}},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?0>e?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var i=n(12),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(e,t,n){var r=n(12),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(12),i=n(110);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:0>e?-1:1}},function(e,t,n){var r=n(12);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(12),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(12),i=n(114);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&1e-6>e?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var r=n(12),i=n(110),o=Math.pow,a=o(2,-52),s=o(2,-23),u=o(2,127)*(2-s),c=o(2,-126),l=function(e){return e+1/a-1/a};r(r.S,"Math",{fround:function(e){var t,n,r=Math.abs(e),o=i(e);return c>r?o*l(r/c/s)*c*s:(t=(1+s/a)*r,n=t-(t-r),n>u||n!=n?o*(1/0):o*n)}})},function(e,t,n){var r=n(12),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){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(e,t,n){var r=n(12),i=Math.imul;r(r.S+r.F*n(11)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},function(e,t,n){var r=n(12);r(r.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},function(e,t,n){var r=n(12);r(r.S,"Math",{log1p:n(106)})},function(e,t,n){var r=n(12);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(12);r(r.S,"Math",{sign:n(110)})},function(e,t,n){var r=n(12),i=n(114),o=Math.exp;r(r.S+r.F*n(11)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(12),i=n(114),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){var r=n(12);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(12),i=n(39),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(65536>t?o(t):o(((t-=65536)>>10)+55296,t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(12),i=n(32),o=n(37);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),r>s&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){"use strict";n(84)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var r=n(129)(!0);n(130)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(38),i=n(35);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return 0>u||u>=c?e?"":void 0:(o=s.charCodeAt(u),55296>o||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(e,t,n){"use strict";var r=n(52),i=n(12),o=n(21),a=n(13),s=n(9),u=n(131),c=n(132),l=n(27),f=n(60),d=n(28)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",m="keys",v="values",g=function(){return this};e.exports=function(e,t,n,_,y,b,k){c(n,t,_);var x,w,S,A=function(e){if(!h&&e in O)return O[e];switch(e){case m:return function(){return new n(this,e)};case v:return function(){return new n(thi
r=0));t>=8;a[f++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*d,a},R=function(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=n-1,c=e[u--],l=127&c;for(c>>=7;s>0;l=256*l+e[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=t;s>0;r=256*r+e[u],u--,s-=8);if(0===l)l=1-a;else{if(l===o)return r?NaN:c?-E:E;r+=O(2,t),l-=a}return(c?-1:1)*r*O(2,l-t)},U=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},B=function(e){return[255&e]},V=function(e){return[255&e,e>>8&255]},H=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},W=function(e){return F(e,52,8)},K=function(e){return F(e,23,4)},G=function(e,t,n){p(e[y],t,{get:function(){return this[n]}})},$=function(e,t,n,r){var i=+n,o=f(i);if(i!=o||0>o||o+t>e[q])throw A(k);var a=e[L]._b,s=o+e[N],u=a.slice(s,s+t);return r?u:u.reverse()},J=function(e,t,n,r,i,o){var a=+n,s=f(a);if(a!=s||0>s||s+t>e[q])throw A(k);for(var u=e[L]._b,c=s+e[N],l=r(+i),d=0;t>d;d++)u[c+d]=l[o?d:t-d-1]},Y=function(e,t){l(e,x,g);var n=+t,r=d(n);if(n!=r)throw A(b);return r};if(a.ABV){if(!c(function(){new x})||!c(function(){new x(.5)})){x=function(e){return new M(Y(this,e))};for(var X,Q=x[y]=M[y],Z=h(M),ee=0;Z.length>ee;)(X=Z[ee++])in x||s(x,X,M[X]);o||(Q.constructor=x)}var te=new w(new x(2)),ne=w[y].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||u(w[y],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else x=function(e){var t=Y(this,e);this._b=m.call(Array(t),0),this[q]=t},w=function(e,t,n){l(this,w,_),l(e,x,_);var r=e[q],i=f(t);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[L]=e,this[N]=i,this[q]=n},i&&(G(x,T,"_l"),G(w,z,"_b"),G(w,T,"_l"),G(w,D,"_o")),u(w[y],{getInt8:function(e){return $(this,1,e)[0]<<24>>24},getUint8:function(e){return $(this,1,e)[0]},getInt16:function(e){var t=$(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return U($(this,4,e,arguments[1]))},getUint32:function(e){return U($(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return R($(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return R($(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){J(this,1,e,B,t)},setUint8:function(e,t){J(this,1,e,B,t)},setInt16:function(e,t){J(this,2,e,V,t,arguments[2])},setUint16:function(e,t){J(this,2,e,V,t,arguments[2])},setInt32:function(e,t){J(this,4,e,H,t,arguments[2])},setUint32:function(e,t){J(this,4,e,H,t,arguments[2])},setFloat32:function(e,t){J(this,4,e,K,t,arguments[2])},setFloat64:function(e,t){J(this,8,e,W,t,arguments[2])}});v(x,g),v(w,_),s(w[y],a.VIEW,!0),t[g]=x,t[_]=w},function(e,t,n){var r=n(12);r(r.G+r.W+r.F*!n(219).ABV,{DataView:n(220).DataView})},function(e,t,n){n(223)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){"use strict";if(n(10)){var r=n(52),i=n(7),o=n(11),a=n(12),s=n(219),u=n(220),c=n(23),l=n(91),f=n(20),d=n(13),h=n(210),p=(n(98),n(38)),m=n(37),v=n(39),g=n(19),_=n(9),y=n(72),b=n(76),k=n(16),x=n(59),w=n(164),S=n(46),A=n(60),E=n(50).f,M=(n(224),n(166)),I=n(22),O=n(28),C=n(174),P=n(36),j=n(207),z=n(194),T=n(131),D=n(167),L=n(193),q=n(189),N=n(186),F=n(14),R=n(51),U=F.f,B=R.f,V=i.RangeError,H=i.TypeError,W=i.Uint8Array,K="ArrayBuffer",G="Shared"+K,$="BYTES_PER_ELEMENT",J="prototype",Y=Array[J],X=u.ArrayBuffer,Q=u.DataView,Z=C(0),ee=C(2),te=C(3),ne=C(4),re=C(5),ie=C(6),oe=P(!0),ae=P(!1),se=z.values,ue=z.keys,ce=z.entries,le=Y.lastIndexOf,fe=Y.reduce,de=Y.reduceRight,he=Y.join,pe=Y.sort,me=Y.slice,ve=Y.toString,ge=Y.toLocaleString,_e=O("iterator"),ye=O("toStringTag"),be=I("typed_constructor"),ke=I("def_constructor"),xe=s.CONSTR,we=s.TYPED,Se=s.VIEW,Ae="Wrong length!",Ee=C(1,function(e,t){return je(j(e,e[ke]),t)}),Me=o(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),Ie=!!W&&!!W[J].set&&o(function(){new W(1).set({})}),Oe=function(e,t){if(void 0===e)throw H(Ae);var n=+e,r=m(e);if(t&&!y(n,r))throw V(Ae);return r},Ce=function(e,t){var n=p(e);if(0>n||n%t)throw V("Wrong offset!")
2016-04-29 11:03:28 -07:00
var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){(function(e){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(299),a=n(295),s=function(){function t(){r(this,t),this.active=!1}return i(t,[{key:"start",value:function(){var e=this,t=o.config.admin_timeout/1.5*1e3;this.timer=setInterval(function(){return e.fetch()},t),this.active=!0}},{key:"stop",value:function(){clearInterval(this.timer),this.active=!1}},{key:"fetch",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var t=new FormData;t.append("admin-nonce",o.config.admin_nonce),e(o.config.base_url_relative+"/task"+o.config.param_sep+"keepAlive",{credentials:"same-origin",method:"post",body:t})["catch"](a.userFeedbackError)})}]),t}();t["default"]=new s}).call(t,n(3))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.Instance=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),s=r(a),u=n(299),c=n(303),l=r(c),f=n(2);n(304),n(305),n(307);var d=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];i(this,e),this.setPayload(t),this.task="task"+u.config.param_sep}return o(e,[{key:"setPayload",value:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return this.payload=e,this}},{key:"fetch",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?!1:arguments[0];return f.Instance.fetch(function(t){return e.setPayload(t)},t),this}},{key:"maintenance",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"hide":arguments[0],t=(0,s["default"])("#updates [data-update-packages]");return t["show"===e?"fadeIn":"fadeOut"](),"hide"===e&&(0,s["default"])(".badges.with-updates").removeClass("with-updates").find(".badge.updates").remove(),this}},{key:"grav",value:function(){var e=this.payload.grav;if(e.isUpdatable){var t=this.task,n="";n+=e.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/"+t+"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>",n+='\n <i class="fa fa-bullhorn"></i>\n Grav <b>v'+e.available+"</b> "+u.translations.PLUGIN_ADMIN.IS_NOW_AVAILABLE+'! <span class="less">('+u.translations.PLUGIN_ADMIN.CURRENT+" v"+e.version+")</span>\n ",(0,s["default"])("[data-gpm-grav
this.handleError({file:t,data:n,mode:"removeFile",msg:"<p>"+h.translations.PLUGIN_ADMIN.FILE_ERROR_UPLOAD+" <strong>"+t.name+"</strong></p>\n <pre>"+n.message+"</pre>"})}},{key:"onDropzoneComplete",value:function(t){if(!t.accepted){var n={status:"error",message:h.translations.PLUGIN_ADMIN.FILE_UNSUPPORTED+": "+t.name.match(/\..+/).join("")};return this.handleError({file:t,data:n,mode:"removeFile",msg:"<p>"+h.translations.PLUGIN_ADMIN.FILE_ERROR_ADD+" <strong>"+t.name+"</strong></p>\n <pre>"+n.message+"</pre>"})}(0,u["default"])(".dz-preview").prop("draggable","true"),this.options.reloadPage&&e.location.reload()}},{key:"onDropzoneRemovedFile",value:function(e){if(e.accepted&&!e.rejected){var t=this.form.data("media-url")+"/task"+h.config.param_sep+"delmedia";(0,d["default"])(t,{method:"post",body:{filename:e.name}})}}},{key:"onDropzoneError",value:function(e,t,n){var r=n?t.error.message:t;return(0,u["default"])(e.previewElement).find("[data-dz-errormessage]").html(r),this.handleError({file:e,data:{status:"error"},msg:"<pre>"+r+"</pre>"})}},{key:"handleError",value:function(e){var t=e.file,n=e.data,r=e.mode,i=e.msg;if("error"===n.status||"unauthorized"===n.status){switch(r){case"addBack":t instanceof File?this.dropzone.addFile.call(this.dropzone,t):(this.dropzone.files.push(t),this.dropzone.options.addedfile.call(this.dropzone,t),this.dropzone.options.thumbnail.call(this.dropzone,t,t.extras.url));break;case"removeFile":t.rejected=!0,this.dropzone.removeFile.call(this.dropzone,t)}var o=(0,u["default"])('[data-remodal-id="generic"]');o.find(".error-content").html(i),u["default"].remodal.lookup[o.data("remodal")].open()}}},{key:"attachDragDrop",value:function(){var e=this;this.container.delegate("[data-dz-insert]","click",function(e){var t=(0,u["default"])(e.currentTarget).parent(".dz-preview").find(".dz-filename"),n=p.Instance.editors.filter(function(e,t){return"data[content]"===(0,u["default"])(t).attr("name")});if(n.length){n=n.data("codemirror"),n.focus();var r=encodeURI(t.text()),i=o(r);n.doc.replaceSelection(i)}}),this.container.delegate(".dz-preview","dragstart",function(t){var n=(0,u["default"])(t.currentTarget),r=encodeURI(n.find(".dz-filename").text()),i=o(r);e.dropzone.disable(),n.addClass("hide-backface"),t.originalEvent.dataTransfer.effectAllowed="copy",t.originalEvent.dataTransfer.setData("text",i)}),this.container.delegate(".dz-preview","dragend",function(t){var n=(0,u["default"])(t.currentTarget);e.dropzone.enable(),n.removeClass("hide-backface")})}}]),t}();t["default"]=v;t.Instance=new v}).call(t,function(){return this}())},,,function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.Instance=t.Toolbar=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),s=r(a),u=n(332),c=r(u),l=n(333),f=r(l),d=n(334),h=n(335),p=r(h);n(370),n(371),n(376),n(377),n(372),n(378),n(380),n(381),n(373),n(383),n(384),n(375),n(385),n(386),n(387),n(391),n(392),n(393),n(394),e.jsyaml=p["default"];var m=!1,v=["paper"],g={codemirror:{mode:"htmlmixed",theme:"paper",lineWrapping:!0,dragDrop:!0,autoCloseTags:!0,matchTags:!0,autoCloseBrackets:!0,matchBrackets:!0,indentUnit:4,indentWithTabs:!1,tabSize:4,hintOptions:{completionSingle:!1},extraKeys:{Enter:"newlineAndIndentContinueMarkdownList"}}},_=function(){function e(t){var n=this;i(this,e);var r=(0,s["default"])("body");this.editors=(0,s["default"])(),this.options=Object.assign({},g,t),this.buttons=c["default"],this.buttonStrategies=u.strategies,(0,d.watch)(c["default"],function(){n.editors.each(function(e,t){return(0,s["default"])(t).data("toolbar").renderButtons()})}),(0,s["default"])("[data-grav-editor]").each(function(e,t){return n.addEditor(t)}),(0,s["default"])(function(){r.t
e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:i,mediaTypes:a,mediaFeatures:u,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:v,counterDescriptors:_,colorKeywords:b,valueKeywords:x,tokenHooks:{"/":function(e,t){return e.eat("*")?(t.tokenize=n,n(e,t)):!1}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:a,mediaFeatures:u,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:b,valueKeywords:x,fontProperties:v,allowNested:!0,tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},":":function(e){return e.match(/\s*\{/)?[null,"{"]:!1},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return e.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:a,mediaFeatures:u,mediaValueKeywords:l,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:b,valueKeywords:x,fontProperties:v,allowNested:!0,tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,!1)?!1:(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:i,mediaTypes:a,mediaFeatures:u,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:v,counterDescriptors:_,colorKeywords:b,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return e.eat("*")?(t.tokenize=n,n(e,t)):!1}},name:"css",helperType:"gss"})})},function(e,t,n){!function(e){e(n(333),n(372),n(375))}(function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",function(n,r){function i(e){return e.code=!1,null}var o=0,a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var i=e.pos;e.eatWhile("`");var a=1+e.pos-i;return n.code?a===o&&(n.code=!1):(o=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,r.gitHubSpice!==!1)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"
}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);return o?e.findModeByExtension(o):void 0},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}})},function(e,t,n){!function(e){e(n(333))}(function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n){return t.indent(e.base,n)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){t.blankLine&&t.blankLine(e.base),n.blankLine&&n.blankLine(e.overlay)}}}})},function(e,t,n){!function(e){e(n(333),n(373),n(377),n(370))}(function(e){"use strict";function t(e,t,n){var r=e.current(),i=r.search(t);return i>-1?e.backUp(r.length-i):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}function n(e){var t=u[e];return t?t:u[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function r(e,t){var r=e.match(n(t));return r?r[2]:""}function i(e,t){return new RegExp((t?"^":"")+"</s*"+e+"s*>","i")}function o(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),i=e[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}function a(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(!i[0]||i[1].test(r(t,i[0])))return i[2]}}var s={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},u={};e.defineMode("htmlmixed",function(n,r){function u(r,o){var s,f=c.token(r,o.htmlState),d=/\btag\b/.test(f);if(d&&!/[<>\s\/]/.test(r.current())&&(s=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(s))o.inTag=s+" ";else if(o.inTag&&d&&/>$/.test(r.current())){var h=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var p=">"==r.current()&&a(l[h[1]],h[2]),m=e.getMode(n,p),v=i(h[1],!0),g=i(h[1],!1);o.token=function(e,n){return e.match(v,!1)?(n.token=u,n.localState=n.localMode=null,null):t(e,g,n.localMode.token(e,n.localState))},o.localMode=m,o.localState=e.startState(m,c.indent(o.htmlState,""))}else o.inTag&&(o.inTag+=r.current(),r.eol()&&(o.inTag+=" "));return f}var c=e.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:r.multilineTagIndentFactor,multilineTagIndentPastTag:r.multilineTagIndentPastTag}),l={},f=r&&r.tags,d=r&&r.scriptTypes;if(o(s,l),f&&o(f,l),d)for(var h=d.length-1;h>=0;h--)l.script.unshift(["type",d[h].matches,d[h].mode]);return{startState:function(){var e=c.startState();return{token:u,inTag:null,localMode:null,localState:null,htmlState:e}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(c,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n){return!t.localMode||/^\s*<\//.test(n)?c.indent(t.htmlState,n):t.localMode.indent?t.localMode.indent(t.localState,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode
!1)}function h(e){var t=/(\w+)::(\w+)$/.exec(e);return t&&t[1]==t[2]}function p(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function m(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),r=e.match(new RegExp(".*?\\)"+n+'"'));return r?t.tokenize=null:e.skipToEnd(),"string"}function v(t,n){function r(e){if(e)for(var t in e)e.hasOwnProperty(t)&&i.push(t)}"string"==typeof t&&(t=[t]);var i=[];r(n.keywords),r(n.types),r(n.builtin),r(n.atoms),i.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],i));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}function g(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function _(e){return function(t,n){for(var r,i=!1,o=!1;!t.eol();){if(!e&&!i&&t.match('"')){o=!0;break}if(e&&t.match('"""')){o=!0;break}r=t.next(),!i&&"$"==r&&t.match("{")&&t.skipTo("}"),i=!i&&"\\"==r&&!e}return!o&&e||(n.tokenize=null),"string"}}function y(e){return function(t,n){for(var r,i=!1,o=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!i&&t.match("``")){x=y(e),o=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}return o&&(n.tokenize=null),"string"}}e.defineMode("clike",function(s,c){function l(e,t){var n=e.next();if(S[n]){var r=S[n](e,t);if(r!==!1)return r}if('"'==n||"'"==n)return t.tokenize=f(n),t.tokenize(e,t);if(O.test(n))return h=n,null;if(C.test(n)){if(e.backUp(1),e.match(P))return"number";e.next()}if("/"==n){if(e.eat("*"))return t.tokenize=d,d(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(j.test(n)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(j););return"operator"}if(e.eatWhile(/[\w\$_\xa1-\uffff]/),I)for(;e.match(I);)e.eatWhile(/[\w\$_\xa1-\uffff]/);var i=e.current();return u(_,i)?(u(k,i)&&(h="newstatement"),u(x,i)&&(p=!0),"keyword"):u(y,i)?"variable-3":u(b,i)?(u(k,i)&&(h="newstatement"),"builtin"):u(w,i)?"atom":"variable"}function f(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!A)&&(n.tokenize=null),"string"}}function d(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}var h,p,m=s.indentUnit,v=c.statementIndentUnit||m,g=c.dontAlignCalls,_=c.keywords||{},y=c.types||{},b=c.builtin||{},k=c.blockKeywords||{},x=c.defKeywords||{},w=c.atoms||{},S=c.hooks||{},A=c.multiLineStrings,E=c.indentStatements!==!1,M=c.indentSwitch!==!1,I=c.namespaceSeparator,O=c.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,C=c.numberStart||/[\d\.]/,P=c.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,j=c.isOperatorChar||/[+\-*&%=<>!?|\/]/,z=c.endStatement||/^[;:,]$/;return{startState:function(e){return{tokenize:null,context:new t((e||0)-m,0,"top",!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var s=t.context;if(e.sol()&&(null==s.align&&(s.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;h=p=null;var u=(t.tokenize||l)(e,t);if("comment"==u||"meta"==u)return u;if(null==s.align&&(s.align=!0),z.test(h))for(;n(t.context.type);)i(t);else if("{"==h)r(t,e.column(),"}");else if("["==h)r(t,e.column(),"]");else if("("==h)r(t,e.column(),")");else if("}"==h){for(;n(s.type);)s=i(t);for("}"==s.type&&(s=i(t));n(s.type);)s=i(t)}else if(h==s.type)i(t);else if(E&&(("}"==s.type||"top"==s.type)&&";"!=h||n(s.type)&&"newstatement"==h)){var f="statement";"newstatement"==h&&M&&"switch"==e.current()?f="switchstatement":"keyword"==u&&"namespace"==e.current()&&(f="namespace"),r(t,e.column(),f)}if("variable"==u&&("def"==t.prevToken||c.typeFirstDefinitions&&o(e,t)&&a(t.context)&&e.match(/^\s*\(/,!1))&&(u="def"),S.token){var d=S.token(e,t,u);void 0!==d&&(u=d)}return"def"==u&&c.styleDefs===!1&&(u="variable"),t.startOfLine=!1,t.prevToken=p?"def":u||h,u},indent:function(t,r){if(t.tokenize!=l&&null!=t.tokenize)return e.Pass;var i=t.context,o=r&&r.charAt(0);if(n(i.type)&&"}"==o&&(i=i.prev),S.indent){var a=S.indent(t,i,r);if("number"==typeof a)return a}var s=o==i.type,u=i.prev&&"switchstatement"==i.prev.type;if(c.allmanIndentation&&/[{(
},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=h[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(c(r.parts[o],t))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(c(r.parts[o],t));h[r.id]={id:r.id,refs:1,parts:a}}}}function i(e){for(var t=[],n={},r=0;r<e.length;r++){var i=e[r],o=i[0],a=i[1],s=i[2],u=i[3],c={css:a,media:s,sourceMap:u};n[o]?n[o].parts.push(c):t.push(n[o]={id:o,parts:[c]})}return t}function o(e,t){var n=v(),r=y[y.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",o(e,t),t}function c(e,t){var n,r,i;if(t.singleton){var o=_++;n=g||(g=s(t)),r=l.bind(null,n,o,!1),i=l.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=d.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=f.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var h={},p=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=p(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,_=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a<n.length;a++){var s=n[a],u=h[s.id];u.refs--,o.push(u)}if(e){var c=i(e);r(c,t)}for(var a=0;a<o.length;a++){var u=o[a];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete h[u.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){!function(e){e(n(333))}(function(e){"use strict";e.registerHelper("lint","css",function(t){var n=[];if(!window.CSSLint)return n;for(var r=CSSLint.verify(t),i=r.messages,o=null,a=0;a<i.length;a++){o=i[a];var s=o.line-1,u=o.line-1,c=o.col-1,l=o.col;n.push({from:e.Pos(s,c),to:e.Pos(u,l),message:o.message,severity:o.type})}return n})})},function(e,t,n){!function(e){e(n(333))}(function(e){"use strict";function t(e,t){if(!window.JSHINT)return[];JSHINT(e,t,t.globals);var n=JSHINT.data().errors,r=[];return n&&o(n,r),r}function n(e){return r(e,s,"warning",!0),r(e,u,"error"),i(e)?n
get:function(){return this.get(t)},set:function(e){Q(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function qt(e){return null===e||void 0===e?Ut():Nt(e)&&!c(e)?e:Ut().withMutations(function(t){var n=i(e);le(n.size),n.forEach(function(e){return t.add(e)})})}function Nt(e){return!(!e||!e[Zn])}function Ft(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Rt(e,t){var n=Object.create(er);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ut(){return tr||(tr=Rt(xe()))}function Bt(e){return null===e||void 0===e?Wt():Vt(e)?e:Wt().withMutations(function(t){var n=i(e);le(n.size),n.forEach(function(e){return t.add(e)})})}function Vt(e){return Nt(e)&&c(e)}function Ht(e,t){var n=Object.create(nr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Wt(){return rr||(rr=Ht(tt()))}function Kt(e){return null===e||void 0===e?Jt():Gt(e)?e:Jt().unshiftAll(e)}function Gt(e){return!(!e||!e[ir])}function $t(e,t,n,r){var i=Object.create(or);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Jt(){return ar||(ar=$t(0))}function Yt(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Xt(e,t){return t}function Qt(e,t){return[t,e]}function Zt(e){return function(){return!e.apply(this,arguments)}}function en(e){return function(){return-e.apply(this,arguments)}}function tn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function nn(){return h(arguments)}function rn(e,t){return t>e?1:e>t?-1:0}function on(e){if(e.size===1/0)return 0;var t=c(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+sn(oe(e),oe(t))|0}:function(e,t){r=r+sn(oe(e),oe(t))|0}:t?function(e){r=31*r+oe(e)|0}:function(e){r=r+oe(e)|0});return an(i,r)}function an(e,t){return t=Pn(t,3432918353),t=Pn(t<<15|t>>>-15,461845907),t=Pn(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Pn(t^t>>>16,2246822507),t=Pn(t^t>>>13,3266489909),t=ie(t^t>>>16)}function sn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var un=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=s,t.isAssociative=u,t.isOrdered=c,t.Keyed=n,t.Indexed=r,t.Set=i;var cn="@@__IMMUTABLE_ITERABLE__@@",ln="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",dn="@@__IMMUTABLE_ORDERED__@@",hn="delete",pn=5,mn=1<<pn,vn=mn-1,gn={},_n={value:!1},yn={value:!1},bn=0,kn=1,xn=2,wn="function"==typeof Symbol&&Symbol.iterator,Sn="@@iterator",An=wn||Sn;k.prototype.toString=function(){return"[Iterator]"},k.KEYS=bn,k.VALUES=kn,k.ENTRIES=xn,k.prototype.inspect=k.prototype.toSource=function(){return this.toString()},k.prototype[An]=function(){return this},e(O,t),O.of=function(){return O(arguments)},O.prototype.toSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq {","}")},O.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},O.prototype.__iterate=function(e,t){return V(this,e,t,!0)},O.prototype.__iterator=function(e,t){return H(this,e,t,!0)},e(C,O),C.prototype.toKeyedSeq=function(){return this},e(P,O),P.of=function(){return P(arguments)},P.prototype.toIndexedSeq=function(){return this},P.prototype.toString=function(){return this.__toString("Seq [","]")},P.prototype.__iterate=function(e,t){return V(this,e,t,!1)},P.prototype.__iterator=function(e,t){return H(this,e,t,!1)},e(j,O),j.of=function(){return j(arguments)},j.prototype.toSetSeq=function(){return this},O.isSeq=q,O.Keyed=C,O.Set=j,O.Indexed=P;var En="@@__IMMUTABLE_SEQ__@@";O.prototype[En]=!0,e(z,P),z.prototype.get=function(e,t){return this.has(e)?this._array[m(this,e)]:t},z.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;r>=i;i++)if(e(n[t?r-i:i],i,this)===!1)return i+1;return i},z.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new k(function(){return i>r?w():x(e,i,n[t?r-i++:i++])})},e(T,C),T.prototype.get=function(e,t){return void 0===t||this.has(e)?this
mapEntries:function(e,t){var n=this,r=0;return St(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return St(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var ur=n.prototype;ur[ln]=!0,ur[An]=sr.entries,ur.__toJS=sr.toObject,ur.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Yt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return St(this,lt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return St(this,ct(this,!1))},slice:function(e,t){return St(this,ht(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=_(e,0>e?this.count():this.size);var r=this.slice(0,e);return St(this,1===n?r:r.concat(h(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return St(this,gt(this,e,!1))},get:function(e,t){return e=m(this,e),0>e||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=m(this,e),e>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return St(this,yt(this,e))},interleave:function(){var e=[this].concat(h(arguments)),t=wt(this.toSeq(),P.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),St(this,n)},keySeq:function(){return Z(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return St(this,mt(this,e,t,!1))},zip:function(){var e=[this].concat(h(arguments));return St(this,wt(this,nn,e))},zipWith:function(e){var t=h(arguments);return t[0]=this,St(this,wt(this,e,t))}}),r.prototype[fn]=!0,r.prototype[dn]=!0,Yt(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=sr.includes,i.prototype.contains=i.prototype.includes,Yt(C,n.prototype),Yt(P,r.prototype),Yt(j,i.prototype),Yt(te,n.prototype),Yt(ne,r.prototype),Yt(re,i.prototype);var cr={Iterable:t,Seq:O,Collection:ee,Map:fe,OrderedMap:Qe,List:Fe,Stack:Kt,Set:qt,OrderedSet:Bt,Record:jt,Range:Z,Repeat:X,is:J,fromJS:W};return cr})},function(e,t,n){"use strict";var r=n(398),i=n(400),o=n(401),a=n(402),s=a.concat,u=a.escape,c=i.op,l=i.isMap,f=i.isIndexed,d=function(e,t,n){var i=[],o=n||"";if(r.is(e,t)||e==t==null)return i;var a=f(e)&&f(t),p=null,m=null;return e.forEach&&e.forEach(function(e,n){if(t.has(n))if(l(e)&&l(t.get(n)))i=i.concat(d(e,t.get(n),s(o,u(n))));else if(f(t.get(n))&&f(e))i=i.concat(h(e,t.get(n),s(o,u(n))));else{var r=t.get?t.get(n):t,v=e!==r;v&&i.push(c("replace",s(o,u(n)),r))}else a?(m=null!=p&&p+1===n?m:n,i.push(c("remove",s(o,u(m)))),p=n):i.push(c("remove",s(o,u(n))))}),t.forEach(function(t,n){e.has&&!e.has(n)&&i.push(c("add",s(o,u(n)),t))}),i},h=function(e,t,n){var i=[],a=n||"";if(r.is(e,t)||e==t==null)return i;if(t.count()>100)return d(e,t,n);var u=o.diff(e,t),f=0;return u.forEach(function(e){if("="===e.op)f++;else if("!="===e.op){if(l(e.val)&&l(e.newVal)){var t=d(e.val,e.newVal,s(a,f));i=i.concat(t)}else i.push(c("replace",s(a,f),e.newVal));f++}else"+"===e.op?(i.push(c("add",s(a,f),e.val)),f++):"-"===e.op&&i.push(c("remove",s(a,f)))}),i},p=function(e,t,n){var r=n||"";return e===t?[]:[c("replace",s(r,""),t)]},m=function(e,t,n){return e==t||null!=e&&null!=t?f(e)&&f(t)?r.fromJS(h(e,t)):l(e)&&l(t)?r.fromJS(d(e,t)):r.fromJS(p(e,t,n)):r.fromJS([c("replace","/",t)])};e.exports=m},function(e,t,n){"use strict";var r=n(398),i=function(e){return r.Iterable.isKeyed(e)},o=function(e){return r.Iterable.isIndexed(e)},a=function(e,t,n){return"remove"===e?{op:e,path:t}:{op:e,path:t,value:n}};e.exports={isMap:i,isIndexed:o,op:a}},function(e,t,n){"use strict";function r(e,t){for(var n=e.size||0,r=t.size||0,a=o(n+1,r+1,0),s=0;n>s;s++)for(var u=0;r>u;u++
var t=i(o(e));return 0===t.s&&(t.h=360),t},t.rgb2hsb=function(e){var t={h:0,s:0,b:0},n=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),i=r-n;return t.b=r,t.s=0!==r?255*i/r:0,0!==t.s?e.r===r?t.h=(e.g-e.b)/i:e.g===r?t.h=2+(e.b-e.r)/i:t.h=4+(e.r-e.g)/i:t.h=-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t}),o=t.hex2rgb=function(e){return e=parseInt(e.indexOf("#")>-1?e.substring(1):e,16),{r:e>>16,g:(65280&e)>>8,b:255&e}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.Instance=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),s=r(a),u=n(496),c=r(u),l={autoshow:!1,createElements:!0,forceGemini:!1},f=function(){function e(t,n){i(this,e),this.element=(0,s["default"])(t),this.created=!1,this.element.length&&(this.options=Object.assign({},l,n,{element:this.element[0]}),this.element.css("overflow","auto"),this.instance=new c["default"](this.options),this.create(),this.element.data("scrollbar",this.instance))}return o(e,[{key:"create",value:function(){this.instance.create(),this.created=!0}},{key:"update",value:function(){return this.created?void this.instance.update():!1}},{key:"destroy",value:function(){return this.created?void this.instance.destroy():!1}}]),e}();t["default"]=f;t.Instance=new f("#admin-main .content-wrapper")},function(e,t,n){/**
* gemini-scrollbar
* @version 1.3.2
* @link http://noeldelgado.github.io/gemini-scrollbar/
* @license MIT
*/
!function(){function t(){var e,t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="100px",t.style.height="100px",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t),e=t.offsetWidth-t.clientWidth,document.body.removeChild(t),e}function n(e,t){return e.classList?t.forEach(function(t){e.classList.add(t)}):void(e.className+=" "+t.join(" "))}function r(e,t){return e.classList?t.forEach(function(t){e.classList.remove(t)}):void(e.className=e.className.replace(new RegExp("(^|\\b)"+t.join("|")+"(\\b|$)","gi")," "))}function i(e){this.element=null,this.autoshow=!1,this.createElements=!0,this.forceGemini=!1,Object.keys(e||{}).forEach(function(t){this[t]=e[t]},this),o=t(),a=0===o&&this.forceGemini===!1,this._cache={events:{}},this._created=!1,this._cursorDown=!1,this._prevPageX=0,this._prevPageY=0,this._document=null,this._window=null,this._viewElement=this.element,this._scrollbarVerticalElement=null,this._thumbVerticalElement=null,this._scrollbarHorizontalElement=null,this._scrollbarHorizontalElement=null}var o,a,s;s={element:"gm-scrollbar-container",verticalScrollbar:"gm-scrollbar -vertical",horizontalScrollbar:"gm-scrollbar -horizontal",thumb:"thumb",view:"gm-scroll-view",autoshow:"gm-autoshow",disable:"gm-scrollbar-disable-selection",prevented:"gm-prevented"},i.prototype.create=function(){if(a)return n(this.element,[s.prevented]),this;if(this._created===!0)return console.warn("calling on a already-created object"),this;if(this.autoshow&&n(this.element,[s.autoshow]),this._document=document,this._window=window,this.createElements===!0){for(this._viewElement=document.createElement("div"),this._scrollbarVerticalElement=document.createElement("div"),this._thumbVerticalElement=document.createElement("div"),this._scrollbarHorizontalElement=document.createElement("div"),this._thumbHorizontalElement=document.createElement("div");this.element.childNodes.length>0;)this._viewElement.appendChild(this.element.childNodes[0]);this._scrollbarVerticalElement.appendChild(this._thumbVerticalElement),this._scrollbarHorizontalElement.appendChild(this._thumbHorizontalElement),this.element.appendChild(this._scrollbarVerticalElement),this.element.appendChild(this._scrollbarHorizontalElement),this.element.appendChild(this._viewElement)}else this._viewElement=this.element.querySelector("."+s.view),this._scrollbarVerticalElement=this.element.querySelector("."+s.verticalScrollbar.split(" ").join(".")),this._thumbVerticalElement=this._scrollbarVerticalElement.querySelector("."+s.thumb),this._scrollbarHorizontalElement=this.element.querySelector("."+s.horizontalScrollbar.split(" ").join(".")),this._thumbHorizontalElement=this._scrollbarHorizontalElement.querySelector("."+s.thumb);return n(this.element,[s.element]),n(this._viewElement,[s.view]),n(this._scrollbarVerticalElement,s.verticalScrollbar.split(/\s/)),n(this._scrollbarHorizontalElement,s.horizontalScrollbar.split(/\s/)),n(this._thumbVerticalElement,[s.thumb]),n(this._thumbHorizontalElement,[s.thumb]),this._scrollbarVerticalElement.style.display="",this._scrollbarHorizontalElement.style.display="",this._created=!0,this._bindEvents().update()},i.prototype.update=function(){if(a)return this;if(this._created===!1)return console.warn("calling on a not-yet-created object"),this;var e,t;return this._viewElement.style.width="",this._viewElement.style.height="",this._viewElement.style.width=(this.element.offsetWidth+o).toString()+"px",this._viewElement.style.height=(this.element.offsetHeight+o).toString()+"px",e=100*this._viewElement.clientHeight/this._viewElement.scrollHeight,t=100*this._viewElement.clientWidth/this._viewElement.scrollWidth,this._thumbVerticalElement.style.height=100>e?e+"%":"",this._thumbHorizontalElement.style.width=100>t?t+"%":"",this._scrollHandler(),this},i.prototype.destroy=function(){if(a)return this;if(this._created===!1)return console.warn("calling on a not-yet-created object"),this;if(this._unbinEvents(),r(this.element,[s.element,s.autoshow]),this.createElements===!0){for(this.element.removeCh
return e}},function(e,t,n){"use strict";var r,i=n(524),o=n(530),a=n(531),s=n(532);r=e.exports=function(e,t){var n,r,a,u,c;return arguments.length<2||"string"!=typeof e?(u=t,t=e,e=null):u=arguments[2],null==e?(n=a=!0,r=!1):(n=s.call(e,"c"),r=s.call(e,"e"),a=s.call(e,"w")),c={value:t,configurable:n,enumerable:r,writable:a},u?i(o(u),c):c},r.gs=function(e,t,n){var r,u,c,l;return"string"!=typeof e?(c=n,n=t,t=e,e=null):c=arguments[3],null==t?t=void 0:a(t)?null==n?n=void 0:a(n)||(c=n,n=void 0):(c=t,t=n=void 0),null==e?(r=!0,u=!1):(r=s.call(e,"c"),u=s.call(e,"e")),l={get:t,set:n,configurable:r,enumerable:u},c?i(o(c),l):l}},function(e,t,n){"use strict";e.exports=n(525)()?Object.assign:n(526)},function(e,t){"use strict";e.exports=function(){var e,t=Object.assign;return"function"!=typeof t?!1:(e={foo:"raz"},t(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){"use strict";var r=n(527),i=n(510),o=Math.max;e.exports=function(e,t){var n,a,s,u=o(arguments.length,2);for(e=Object(i(e)),s=function(r){try{e[r]=t[r]}catch(i){n||(n=i)}},a=1;u>a;++a)t=arguments[a],r(t).forEach(s);if(void 0!==n)throw n;return e}},function(e,t,n){"use strict";e.exports=n(528)()?Object.keys:n(529)},function(e,t){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t){"use strict";var n=Object.keys;e.exports=function(e){return n(null==e?e:Object(e))}},function(e,t){"use strict";var n=Array.prototype.forEach,r=Object.create,i=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=r(null);return n.call(arguments,function(e){null!=e&&i(Object(e),t)}),t}},function(e,t){"use strict";e.exports=function(e){return"function"==typeof e}},function(e,t,n){"use strict";e.exports=n(533)()?String.prototype.contains:n(534)},function(e,t){"use strict";var n="razdwatrzy";e.exports=function(){return"function"!=typeof n.contains?!1:n.contains("dwa")===!0&&n.contains("foo")===!1}},function(e,t){"use strict";var n=String.prototype.indexOf;e.exports=function(e){return n.call(this,e,arguments[1])>-1}},function(e,t,n){"use strict";var r,i,o,a,s,u,c,l=n(523),f=n(522),d=Function.prototype.apply,h=Function.prototype.call,p=Object.create,m=Object.defineProperty,v=Object.defineProperties,g=Object.prototype.hasOwnProperty,_={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var n;return f(t),g.call(this,"__ee__")?n=this.__ee__:(n=_.value=p(null),m(this,"__ee__",_),_.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},i=function(e,t){var n,i;return f(t),i=this,r.call(this,e,n=function(){o.call(i,e,n),d.call(t,this,arguments)}),n.__eeOnceListener__=t,this},o=function(e,t){var n,r,i,o;if(f(t),!g.call(this,"__ee__"))return this;if(n=this.__ee__,!n[e])return this;if(r=n[e],"object"==typeof r)for(o=0;i=r[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},a=function(e){var t,n,r,i,o;if(g.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"==typeof i){for(n=arguments.length,o=new Array(n-1),t=1;n>t;++t)o[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)d.call(r,this,o)}else switch(arguments.length){case 1:h.call(i,this);break;case 2:h.call(i,this,arguments[1]);break;case 3:h.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),t=1;n>t;++t)o[t-1]=arguments[t];d.call(i,this,o)}},s={on:r,once:i,off:o,emit:a},u={on:l(r),once:l(i),off:l(o),emit:l(a)},c=v({},u),e.exports=t=function(e){return null==e?p(c):v(Object(e),u)},t.methods=s},function(e,t,n){"use strict";e.exports=n(537)()?Symbol:n(538)},function(e,t){"use strict";e.exports=function(){var e;if("function"!=typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(t){return!1}return"symbol"==typeof Symbol.iterator?!0:"object"!=typeof Symbol.isConcatSpreadable?!1:"object"!=typeof Symbol.iterator?!1:"object"!=typeof Symbol.toPrimitive?!1:"object"!=typeof Symbol.toStringTag?!1:"object"==typeof Symbol.unscopables}},function(e,t,n){"use strict";var r,i,o,a=n(523),s=n(539),u=Object.cre
2016-02-05 12:37:48 -08:00
//# sourceMappingURL=admin.min.js.map