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

29 lines
480 KiB
JavaScript
Raw Normal View History

var Grav=webpackJsonpGrav([0],[function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=r(i),o=n(2),s=r(o),l=n(313),u=r(l),c=n(314),f=r(c),d=n(334),p=r(d),h=n(339),m=r(h),v=n(425),g=r(v),y=n(552),_=r(y);n(556),n(566);var b=n(567),w=n(302),x=r(w),k=n(329),S=r(k);n(568),n(569),n(570),n(571);var A=n(573),E=r(A);u.default.start(),t.setInterval(function(){y.Instance.update(),A.Instance.scroller.update()},150),(0,a.default)(t).on("sidebar_state._grav",function(){Object.keys(p.default.Chart.Instances).forEach(function(t){setTimeout(function(){return p.default.Chart.Instances[t].chart.update()},10)})}),e.default={GPM:{GPM:s.default,Instance:o.Instance},KeepAlive:u.default,Dashboard:p.default,Pages:m.default,Forms:g.default,Scrollbar:{Scrollbar:_.default,Instance:y.Instance},Updates:{Updates:f.default,Notifications:c.Notifications,Feed:c.Feed,Instance:c.Instance},Sidebar:{Sidebar:E.default,Instance:A.Instance},MediaFilter:{MediaFilter:b.Filter,Instance:b.Instance},Utils:{request:S.default,toastr:x.default}}}).call(e,function(){return this}())},,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 a(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 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}}(),s=n(301),l=n(306),u=n(312),c=function(e){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"getUpdates";r(this,n);var e=i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e.payload={},e.raw={},e.action=t,e}return a(n,e),o(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]?arguments[0]:"getUpdates";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]?arguments[0]:function(){return!0},r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=new FormData;i.append("admin-nonce",l.config.admin_nonce),r&&i.append("flush",!0),this.emit("fetching",this),t(l.config.base_url_relative+"/update.json/task"+l.config.param_sep+"getUpdates",{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}(u.EventEmitter);e.default=c;e.Instance=new c}).call(e,n(3))},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){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return y.iterable&&(e[Symbol.iterator]=function(){return e}),e}function a(t){this.map={},t instanceof a?t.forEach(function(t,e){this.append(e,t)},this):Array.is
}else d(0,n),d(1<<-e,0),y=h()+o.call(f,u);return u>0?(s=y.length,y=g+(s<=u?"0."+o.call(f,u-s)+y:y.slice(0,s-u)+"."+y.slice(s-u))):y=g+y,y}})},function(t,e,n){var r=n(37);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){"use strict";var r=n(41),i=n(38);t.exports=function(t){var e=String(i(this)),n="",a=r(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(11),i=n(10),a=n(93),o=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==o.call(1,void 0)})||!i(function(){o.call({})})),"Number",{toPrecision:function(t){var e=a(this,"Number#toPrecision: incorrect invocation!");return void 0===t?o.call(e):o.call(e,t)}})},function(t,e,n){var r=n(11);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(11),i=n(7).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(11);r(r.S,"Number",{isInteger:n(99)})},function(t,e,n){var r=n(16),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){var r=n(11);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(11),i=n(99),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&a(t)<=9007199254740991}})},function(t,e,n){var r=n(11);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(11);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(11),i=n(89);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(11),i=n(85);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(11),i=n(107),a=Math.sqrt,o=Math.acosh;r(r.S+r.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+a(t-1)*a(t+1))}})},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(11),a=Math.asinh;i(i.S+i.F*!(a&&1/a(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(11),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(11),i=n(111);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(11);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(11),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(11),i=n(115);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(11),i=n(111),a=Math.pow,o=a(2,-52),s=a(2,-23),l=a(2,127)*(2-s),u=a(2,-126),c=function(t){return t+1/o-1/o};r(r.S,"Math",{fround:function(t){var e,n,r=Math.abs(t),a=i(t);return r<u?a*c(r/u/s)*u*s:(e=(1+s/o)*r,n=e-(e-r),n>l||n!=n?a*(1/0):a*n)}})},function(t,e,n){var r=n(11),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,a=0,o=0,s=arguments.length,l=0;o<s;)n=i(arguments[o++]),l<n?(r=l/n,a=a*r*r+1,l=n):n>0?(r=n/l,a+=r*r):a+=n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(t,e,n){var r=n(11),i=Math.imul;r(r.S+r.F*n(10)(function(){return i(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(t,e){var n=65535,r=+t,i=+e,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})},function(t,e,n){var r=n(11);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(11);r(r.S,"Math",{log1p:n(107)})},function(t,e,n){var r=n(11);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(11);r(r.S,"Math",{sign:n(111)})},function(t,e,n){var r=n(11),i=n(115),a=Math.exp;r(r.S+r.F*n(10)(fu
t._i=p++,t._l=void 0,void 0!=r&&l(r,n,t[a],t)});return r(u.prototype,{delete:function(t){if(!o(t))return!1;var e=i(t);return e===!0?h(this).delete(t):e&&c(e,this._i)&&delete e[this._i]},has:function(t){if(!o(t))return!1;var e=i(t);return e===!0?h(this).has(t):e&&c(e,this._i)}}),u},def:function(t,e,n){var r=i(a(e),!0);return r===!0?h(t).set(e,n):r[t._i]=n,t},ufstore:h}},function(t,e,n){"use strict";var r=n(219);n(216)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(11),i=n(222),a=n(223),o=n(15),s=n(42),l=n(40),u=n(16),c=n(7).ArrayBuffer,f=n(210),d=a.ArrayBuffer,p=a.DataView,h=i.ABV&&c.isView,m=d.prototype.slice,v=i.VIEW,g="ArrayBuffer";r(r.G+r.W+r.F*(c!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,g,{isView:function(t){return h&&h(t)||u(t)&&v in t}}),r(r.P+r.U+r.F*n(10)(function(){return!new d(2).slice(1,void 0).byteLength}),g,{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(o(this),t);for(var n=o(this).byteLength,r=s(t,n),i=s(void 0===e?n:e,n),a=new(f(this,d))(l(i-r)),u=new p(this),c=new p(a),h=0;r<i;)c.setUint8(h++,u.getUint8(r++));return a}}),n(195)(g)},function(t,e,n){for(var r,i=n(7),a=n(13),o=n(22),s=o("typed_array"),l=o("view"),u=!(!i.ArrayBuffer||!i.DataView),c=u,f=0,d=9,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<d;)(r=i[p[f++]])?(a(r.prototype,s,!0),a(r.prototype,l,!0)):c=!1;t.exports={ABV:u,CONSTR:c,TYPED:s,VIEW:l}},function(t,e,n){"use strict";var r=n(7),i=n(9),a=n(31),o=n(222),s=n(13),l=n(213),u=n(10),c=n(208),f=n(41),d=n(40),p=n(53).f,h=n(14).f,m=n(191),v=n(27),g="ArrayBuffer",y="DataView",_="prototype",b="Wrong length!",w="Wrong index!",x=r[g],k=r[y],S=r.Math,A=r.RangeError,E=r.Infinity,I=x,M=S.abs,O=S.pow,C=S.floor,j=S.log,P=S.LN2,T="buffer",z="byteLength",D="byteOffset",L=i?"_b":T,N=i?"_l":z,F=i?"_o":D,q=function(t,e,n){var r,i,a,o=Array(n),s=8*n-e-1,l=(1<<s)-1,u=l>>1,c=23===e?O(2,-24)-O(2,-77):0,f=0,d=t<0||0===t&&1/t<0?1:0;for(t=M(t),t!=t||t===E?(i=t!=t?1:0,r=l):(r=C(j(t)/P),t*(a=O(2,-r))<1&&(r--,a*=2),t+=r+u>=1?c/a:c*O(2,1-u),t*a>=2&&(r++,a/=2),r+u>=l?(i=0,r=l):r+u>=1?(i=(t*a-1)*O(2,e),r+=u):(i=t*O(2,u-1)*O(2,e),r=0));e>=8;o[f++]=255&i,i/=256,e-=8);for(r=r<<e|i,s+=e;s>0;o[f++]=255&r,r/=256,s-=8);return o[--f]|=128*d,o},U=function(t,e,n){var r,i=8*n-e-1,a=(1<<i)-1,o=a>>1,s=i-7,l=n-1,u=t[l--],c=127&u;for(u>>=7;s>0;c=256*c+t[l],l--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=e;s>0;r=256*r+t[l],l--,s-=8);if(0===c)c=1-o;else{if(c===a)return r?NaN:u?-E:E;r+=O(2,e),c-=o}return(u?-1:1)*r*O(2,c-e)},R=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},B=function(t){return[255&t]},V=function(t){return[255&t,t>>8&255]},H=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},G=function(t){return q(t,52,8)},K=function(t){return q(t,23,4)},W=function(t,e,n){h(t[_],e,{get:function(){return this[n]}})},$=function(t,e,n,r){var i=+n,a=f(i);if(i!=a||a<0||a+e>t[N])throw A(w);var o=t[L]._b,s=a+t[F],l=o.slice(s,s+e);return r?l:l.reverse()},Y=function(t,e,n,r,i,a){var o=+n,s=f(o);if(o!=s||s<0||s+e>t[N])throw A(w);for(var l=t[L]._b,u=s+t[F],c=r(+i),d=0;d<e;d++)l[u+d]=c[a?d:e-d-1]},J=function(t,e){c(t,x,g);var n=+e,r=d(n);if(n!=r)throw A(b);return r};if(o.ABV){if(!u(function(){new x})||!u(function(){new x(.5)})){x=function(t){return new I(J(this,t))};for(var X,Q=x[_]=I[_],Z=p(I),tt=0;Z.length>tt;)(X=Z[tt++])in x||s(x,X,I[X]);a||(Q.constructor=x)}var et=new k(new x(2)),nt=k[_].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||l(k[_],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else x=function(t){var e=J(this,t);this._b=m.call(Array(e),0),this[N]=e},k=function(t,e,n){c(this,k,y),c(t,x,y);var r=t[N],i=f(e);if(i<0||i>r)throw A("Wrong offset!");if(n=void 0===n?r-i:d(n),i+n>r)throw A(b);this[L]=t,this[F]=i,this[N]=n},i&&(W(x,z,"_l"),W(k,T,"_b"),W(k,z,"_l"),W(k,D,"_o")),l(k[_],{getInt8:function(t){return $(this,1,t)[0]<
}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function a(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function o(){m&&p&&(m=!1,p.length?h=p.concat(h):v=-1,h.length&&s())}function s(){if(!m){var t=i(o);m=!0;for(var e=h.length;e;){for(p=h,h=[];++v<e;)p&&p[v].run();v=-1,e=h.length}p=null,m=!1,a(t)}}function l(t,e){this.fun=t,this.array=e}function u(){}var c,f,d=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var p,h=[],m=!1,v=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new l(t,e)),1!==h.length||m||i(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=u,d.addListener=u,d.once=u,d.off=u,d.removeListener=u,d.removeAllListeners=u,d.emit=u,d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e,n){n(299),t.exports=n(12).RegExp.escape},function(t,e,n){var r=n(11),i=n(300)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return i(t)}})},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return t}function a(t){return t.text().then(function(t){var e=t;try{e=JSON.parse(t)}catch(e){var n=document.createElement("div");n.innerHTML=t;var r=new Error;throw r.stack=(0,v.default)(n.innerText),r}return e})}function o(t){if(g)return!0;var e=t.status||(t.error?"error":""),n=t.message||(t.error?t.error.message:null),r=t.toastr||null,i=void 0;switch(e){case"unauthenticated":throw document.location.href=h.config.base_url_relative,y("Logged out");case"unauthorized":e="error",n=n||"Unauthorized.";break;case"error":e="error",n=n||"Unknown error.";break;case"success":e="success",n=n||"";break;default:e="error",n=n||"Invalid AJAX response."}return r&&(i=Object.assign({},f.default.options),Object.keys(r).forEach(function(t){f.default.options[t]=r[t]})),n&&(p.default||!p.default&&"error"!==e)&&f.default["success"===e?"success":"error"](n),r&&(f.default.options=i),t}function s(t){if(g)return!0;var e=t.stack?"<pre><code>"+t.stack+"</code></pre>":"";f.default.error("Fetch Failed: <br /> "+t.message+" "+e),console.error(t.message+" at "+t.stack)}Object.defineProperty(e,"__esModule",{value:!0}),e.parseStatus=i,e.parseJSON=a,e.userFeedback=o,e.userFeedbackError=s;var l=n(1),u=r(l),c=n(302),f=r(c),d=n(305),p=r(d),h=n(306),m=n(307),v=r(m),g=!1,y=function t(e){var t=new Error(e.statusText||e||"");return t.response=e,t};(0,u.default)(t).on("beforeunload._ajax",function(){g=!0})}).call(e,function(){return this}())},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(303),a=r(i);a.default.options.positionClass="toast-top-right",a.default.options.preventDuplicates=!0,e.default=a.default},,,function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=r(i),o=n(305),s=r(o),l=(0,a.default)("#offline-status");(0,a.default)(window).on("offline",function(){l.slideDown()}),(0,a.default)(window).on("online",function(){l.slideUp()}),(0,a.default)(document).ready(function(){s.default||l.slideDown()}),e.default="undefined"==typeof t.navigator.onLine||t.navigator.onL
this.chart.on("created",function(){return n.element.find(".hidden").removeClass("hidden")})}}return l(t,[{key:"updateData",value:function(t){Object.assign(this.data,t),this.chart.update(this.data)}}]),t}();e.default=y;var _=e.UpdatesChart=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(this,e);var a=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n,r));return a.chart.on("draw",function(t){return a.draw(t)}),h.Instance.on("fetched",function(t){if(t.payload){var e=t.payload.grav,n=100*(t.payload.resources.total+(e.isUpdatable?1:0))/(t.payload.installed+(e.isUpdatable?1:0)),r=100-n;a.updateData({series:[r,n]}),t.payload.resources.total&&m.Instance.maintenance("show")}}),a}return a(e,t),l(e,[{key:"draw",value:function(t){if(!t.index){var e=p.translations.PLUGIN_ADMIN[100===t.value?"FULLY_UPDATED":"UPDATES_AVAILABLE"];this.element.find(".numeric span").text(Math.round(t.value)+"%"),this.element.find(".js__updates-available-description").html(e),this.element.find(".hidden").removeClass("hidden")}}},{key:"updateData",value:function(t){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"updateData",this).call(this,t),this.data.series[0]<100&&this.element.closest("#updates").find("[data-update-packages]").fadeIn()}}]),e}(y),b={};(0,c.default)("[data-chart-name]").each(function(){var t=(0,c.default)(this),e=t.data("chart-name")||"",n=t.data("chart-options")||{},r=t.data("chart-data")||{};"updates"===e?b[e]=new _(t,n,r):b[e]=new y(t,n,r)});e.Instances=b},,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 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}}(),o=n(1),s=r(o),l=n(306),u=n(329),c=r(u),f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t&&(t="cleartype:"+t+"/"),l.config.base_url_relative+"/cache.json/task"+l.config.param_sep+"clearCache/"+t+"admin-nonce"+l.config.param_sep+l.config.admin_nonce},d=function(){function t(){var e=this;i(this,t),this.element=(0,s.default)("[data-clear-cache]"),(0,s.default)("body").on("click","[data-clear-cache]",function(t){return e.clear(t,t.target)})}return a(t,[{key:"clear",value:function(t,e){var n=this,r="";t&&t.preventDefault&&t.preventDefault(),"string"==typeof t&&(r=t),e=e?(0,s.default)(e):(0,s.default)('[data-clear-cache-type="'+r+'"]'),r=r||(0,s.default)(e).data("clear-cache-type")||"";var i=e.data("clearCache")||f(r);this.disable(),(0,c.default)(i,function(){return n.enable()})}},{key:"enable",value:function(){this.element.removeAttr("disabled").find("> .fa").removeClass("fa-refresh fa-spin").addClass("fa-trash")}},{key:"disable",value:function(){this.element.attr("disabled","disabled").find("> .fa").removeClass("fa-trash").addClass("fa-refresh fa-spin")}}]),t}();e.default=d;var p=new d;e.Instance=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(1),a=r(i),o=n(306),s=n(329),l=r(s),u=n(335);(0,a.default)('[data-ajax*="task:backup"]').on("click",function(){var t=(0,a.default)(this),e=t.data("ajax");t.attr("disabled","disabled").find("> .fa").removeClass("fa-database").addClass("fa-spin fa-refresh"),(0,l.default)(e,function(){u.Instances&&u.Instances.backups&&(u.Instances.backups.updateData({series:[0,100]}),u.Instances.backups.element.find(".numeric").html("0 <em>"+o.translations.PLUGIN_ADMIN.DAYS.toLowerCase()+"</em>")),t.removeAttr("disabled").find("> .fa").removeClass("fa-spin fa-refresh").addClass("fa-database")})})},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),a=r(i),o=n(340),s=r(o),l=n(341),u=r(l),c=n(348),f=r(
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=e.Toolbar=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}}(),o=n(1),s=r(o),l=n(360),u=r(l),c=n(361),f=r(c),d=n(362),p=n(363),h=r(p);n(398),n(399),n(404),n(405),n(400),n(406),n(408),n(409),n(401),n(411),n(412),n(403),n(413),n(414),n(415),n(420),n(421),n(422),n(423),t.jsyaml=h.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"}}},y=function(){function t(e){var n=this;i(this,t);var r=(0,s.default)("body");this.editors=(0,s.default)(),this.options=Object.assign({},g,e),this.buttons=u.default,this.buttonStrategies=l.strategies,(0,d.watch)(u.default,function(){n.editors.each(function(t,e){return(0,s.default)(e).data("toolbar").renderButtons()})}),(0,s.default)("[data-grav-editor]").each(function(t,e){return n.addEditor(e)}),(0,s.default)(function(){r.trigger("grav-editor-ready")}),r.on("mutation._grav",this._onAddedNodes.bind(this)),r.on("mouseup._grav",function(){return!m||(r.unbind("mousemove._grav"),void(m=!1))}),r.on("mousedown._grav",".grav-editor-resizer",function(t){t&&t.preventDefault(),m=!0;var e=(0,s.default)(t.currentTarget),n=e.siblings(".grav-editor-content"),i=n.find(".CodeMirror"),a=n.find("textarea").data("codemirror");r.on("mousemove._grav",function(t){i.css("height",Math.max(100,t.pageY-n.offset().top)),a.refresh()})})}return a(t,[{key:"addButton",value:function(t,e){if(e&&(e.before||e.after)){var n=this.buttons.navigation.findIndex(function(t){var n=Object.keys(t).shift();return t[n].identifier===(e.before||e.after)});~n?this.buttons.navigation.splice(e.before?n:n+1,0,t):e="end"}"start"===e&&this.buttons.navigation.splice(0,0,t),e&&"end"!==e||this.buttons.navigation.push(t)}},{key:"addEditor",value:function(t){t=(0,s.default)(t);var e=Object.assign({},this.options.codemirror,t.data("grav-editor").codemirror),n=e.theme||"paper";if(this.editors=this.editors.add(t),n&&!~v.indexOf(n)){v.push(n);var r="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.12.0/theme/"+n+".min.css";(0,s.default)("head").append((0,s.default)('<link rel="stylesheet" type="text/css" />').attr("href",r))}"yaml"===e.mode&&Object.assign(e.extraKeys,{Tab:function(t){t.replaceSelection(" ","end")}});var i=f.default.fromTextArea(t.get(0),e);t.data("codemirror",i),t.data("toolbar",new _(t)),e.toolbar===!1&&t.data("toolbar").ui.navigation.addClass("grav-editor-hide-toolbar"),i.on("change",function(){return i.save()})}},{key:"_onAddedNodes",value:function(t,e){var n=this,r=(0,s.default)(e).find("[data-grav-editor]");r.length&&r.each(function(t,e){e=(0,s.default)(e),~n.editors.index(e)||n.addEditor(e)})}}]),t}();e.default=y;var _=e.Toolbar=function(){function t(e){i(this,t),this.editor=(0,s.default)(e),this.codemirror=this.editor.data("codemirror"),this.buttons=u.default.navigation,this.ui={navigation:(0,s.default)(t.templates().navigation)},this.editor.parent(".grav-editor-content").before(this.ui.navigation).after(this.ui.states),this.renderButtons()}return a(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 '}}}]),a(t,[{key:"renderButtons",value:function(){var t=this,e={actions:"navigation",modes:"states"};["actions","modes"].forEach(function(n){t.ui.navigation.find(".grav-editor-"+n).empty().append("<ul />"),u.default[e[n]].forEach(function(e){return t.renderButton(e,n)})})
t.registerHelper("hintWords","css",k),t.defineMIME("text/css",{documentTypes:i,mediaTypes:o,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:v,counterDescriptors:y,colorKeywords:b,valueKeywords:x,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=n,n(t,e))}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:b,valueKeywords:x,fontProperties:v,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=n,n(t,e)):["operator","operator"]},":":function(t){return!!t.match(/\s*\{/,!1)&&[null,null]},$:function(t){return t.match(/^[\w-]+/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(t){return!!t.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:l,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:b,valueKeywords:x,fontProperties:v,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=n,n(t,e)):["operator","operator"]},"@":function(t){return t.eat("{")?[null,"interpolation"]:!t.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,!1)&&(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:i,mediaTypes:o,mediaFeatures:l,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:v,counterDescriptors:y,colorKeywords:b,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=n,n(t,e))}},name:"css",helperType:"gss"})})},function(t,e,n){!function(t){t(n(361),n(400),n(403))}(function(t){"use strict";var e=/^((?:(?: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;t.defineMode("gfm",function(n,r){function i(t){return t.code=!1,null}var a=0,o={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 o=1+t.pos-i;return n.code?o===a&&(n.code=!1):(a=o,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]
alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var e=0;e<t.modeInfo.length;e++){var n=t.modeInfo[e];n.mimes&&(n.mime=n.mimes[0])}t.findModeByMIME=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.mime==e)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==e)return r}return/\+xml$/.test(e)?t.findModeByMIME("application/xml"):/\+json$/.test(e)?t.findModeByMIME("application/json"):void 0},t.findModeByExtension=function(e){for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==e)return r}},t.findModeByFileName=function(e){for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.file&&r.file.test(e))return r}var i=e.lastIndexOf("."),a=i>-1&&e.substring(i+1,e.length);if(a)return t.findModeByExtension(a)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.name.toLowerCase()==e)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==e)return r}}})},function(t,e,n){!function(t){t(n(361))}(function(t){"use strict";t.overlayMode=function(e,n,r){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:t.copyState(e,r.base),overlay:t.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(t,i){return(t!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<t.start)&&(i.streamSeen=t,i.basePos=i.overlayPos=t.start),t.start==i.basePos&&(i.baseCur=e.token(t,i.base),i.basePos=t.pos),t.start==i.overlayPos&&(t.pos=t.start,i.overlayCur=n.token(t,i.overlay),i.overlayPos=t.pos),t.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:e.indent&&function(t,n){return e.indent(t.base,n)},electricChars:e.electricChars,innerMode:function(t){return{state:t.base,mode:e}},blankLine:function(t){var i,a;return e.blankLine&&(i=e.blankLine(t.base)),n.blankLine&&(a=n.blankLine(t.overlay)),null==a?i:r&&null!=i?i+" "+a:a}}}})},function(t,e,n){!function(t){t(n(361),n(401),n(405),n(398))}(function(t){"use strict";function e(t,e,n){var r=t.current(),i=r.search(e);return i>-1?t.backUp(r.length-i):r.match(/<\/?$/)&&(t.backUp(r.length),t.match(e,!1)||t.match(r)),n}function n(t){var e=l[t];return e?e:l[t]=new RegExp("\\s+"+t+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function r(t,e){var r=t.match(n(e));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function i(t,e){return new RegExp((e?"^":"")+"</s*"+t+"s*>","i")}function a(t,e){for(var n in t)for(var r=e[n]||(e[n]=[]),i=t[n],a=i.length-1;a>=0;a--)r.unshift(i[a])}function o(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(!i[0]||i[1].test(r(e,i[0])))return i[2]}}var s={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/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"]]},l={};t.defineMode("htmlmixed",function(n,r){function l(r,a){var s,f=u.token(r,a.htmlState),d=/\btag\b/.test(f);if(d&&!/[<>\s\/]/.test(r.current())&&(s=a.htmlState.tagName&&a.htmlState.tagName.toLowerCase())&&c.hasOwnProperty(s))a.inTag=s+" ";else if(a.inTag&&d&&/>$/.test(r.current())){var p=/^([\S]+) (.*)/.exec(a.inTag);a.inTag=null;var h=">"==r.current()&&o(c[p[1]],p[2]),m=t.getMode
}else if(n.pending&&e.pos<n.pending.end){e.pos=n.pending.end;var o=n.pending.style}else var o=i.token(e,n.curState);n.pending&&(n.pending=null);var s,l=e.current(),u=l.search(/<\?/);return u!=-1&&("string"==o&&(s=l.match(/[\'\"]$/))&&!/\?>/.test(l)?n.pending=s[0]:n.pending={end:e.pos,style:o},e.backUp(l.length-u)),o}var i=t.getMode(e,"text/html"),a=t.getMode(e,l);return{startState:function(){var e=t.startState(i),r=n.startOpen?t.startState(a):null;return{html:e,php:r,curMode:n.startOpen?a:i,curState:n.startOpen?r:e,pending:null}},copyState:function(e){var n,r=e.html,o=t.copyState(i,r),s=e.php,l=s&&t.copyState(a,s);return n=e.curMode==i?o:l,{html:o,php:l,curMode:e.curMode,curState:n,pending:e.pending}},token:r,indent:function(t,e){return t.curMode!=a&&/^\s*<\//.test(e)||t.curMode==a&&/^\?>/.test(e)?i.indent(t.html,e):t.curMode.indent(t.curState,e)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(t){return{state:t.curState,mode:t.curMode}}}},"htmlmixed","clike"),t.defineMIME("application/x-httpd-php","php"),t.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),t.defineMIME("text/x-php",l)})},function(t,e,n){!function(t){t(n(361))}(function(t){"use strict";function e(t,e,n,r,i,a){this.indented=t,this.column=e,this.type=n,this.info=r,this.align=i,this.prev=a}function n(t,n,r,i){var a=t.indented;return t.context&&"statement"==t.context.type&&"statement"!=r&&(a=t.context.indented),t.context=new e(a,n,r,i,null,t.context)}function r(t){var e=t.context.type;return")"!=e&&"]"!=e&&"}"!=e||(t.indented=t.context.indented),t.context=t.context.prev}function i(t,e,n){return"variable"==e.prevToken||"type"==e.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(t.string.slice(0,n))||(!(!e.typeAtEndOfLine||t.column()!=t.indentation())||void 0))}function a(t){for(;;){if(!t||"top"==t.type)return!0;if("}"==t.type&&"namespace"!=t.prev.info)return!1;t=t.prev}}function o(t){for(var e={},n=t.split(" "),r=0;r<n.length;++r)e[n[r]]=!0;return e}function s(t,e){return"function"==typeof t?t(e):t.propertyIsEnumerable(e)}function l(t,e){if(!e.startOfLine)return!1;for(var n,r=null;n=t.peek();){if("\\"==n&&t.match(/^.$/)){r=l;break}if("/"==n&&t.match(/^\/[\/\*]/,!1))break;t.next()}return e.tokenize=r,"meta"}function u(t,e){return"type"==e.prevToken&&"type"}function c(t){return t.eatWhile(/[\w\.']/),"number"}function f(t,e){if(t.backUp(1),t.match(/(R|u8R|uR|UR|LR)/)){var n=t.match(/"([^\s\\()]{0,16})\(/);return!!n&&(e.cpp11RawStringDelim=n[1],e.tokenize=h,h(t,e))}return t.match(/(u8|u|U|L)/)?!!t.match(/["']/,!1)&&"string":(t.next(),!1)}function d(t){var e=/(\w+)::~?(\w+)$/.exec(t);return e&&e[1]==e[2]}function p(t,e){for(var n;null!=(n=t.next());)if('"'==n&&!t.eat('"')){e.tokenize=null;break}return"string"}function h(t,e){var n=e.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),r=t.match(new RegExp(".*?\\)"+n+'"'));return r?e.tokenize=null:t.skipToEnd(),"string"}function m(e,n){function r(t){if(t)for(var e in t)t.hasOwnProperty(e)&&i.push(e)}"string"==typeof e&&(e=[e]);var i=[];r(n.keywords),r(n.types),r(n.builtin),r(n.atoms),i.length&&(n.helperType=e[0],t.registerHelper("hintWords",e[0],i));for(var a=0;a<e.length;++a)t.defineMIME(e[a],n)}function v(t,e){for(var n=!1;!t.eol();){if(!n&&t.match('"""')){e.tokenize=null;break}n="\\"==t.next()&&!n}return"string"}function g(t){return function(e,n){for(var r,i=!1,a=!1;!e.eol();){if(!t&&!i&&e.match('"')){a=!0;break}if(t&&e.match('"""')){a=!0;break}r=e.next(),!i&&"$"==r&&e.match("{")&&e.skipTo("}"),i=!i&&"\\"==r&&!t}return!a&&t||(n.tokenize=null),"string"}}function y(t){return function(e,n){for(var r,i=!1,a=!1;!e.eol();){if(!i&&e.match('"')&&("single"==t||e.match('""'))){a=!0;break}if(!i&&e.match("``")){w=y(t),a=!0;break}r=e.next(),i="single"==t&&!i&&"\\"==r}return a&&(n.tokenize=null),"string"}}t.defineMode("clike",function(o,l){function u(t,e){var n=t.next();if(S[n]){var r=S[n](t,e);if(r!==!1)return r}if('"'==n||"'"==n)return e.tokenize=c(n),e.tokenize(t,e);if(O.test(n))return p=n,null;if(C.test(n)){if(t.backUp(1),t.match(j))return"number";t.next()}if("/"==n){if(t.eat("*"
setTimeout(function(){n(t)},600))}function i(n,i,a){function o(){t.off(a,"mouseout",o),s&&(r(s),s=null)}var s=e(n,i),l=setInterval(function(){if(s)for(var t=a;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){o();break}}if(!s)return clearInterval(l)},400);t.on(a,"mouseout",o)}function a(t,e,n){this.marked=[],this.options=e,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(e){g(t,e)},this.waitingFor=0}function o(t,e){return e instanceof Function?{getAnnotations:e}:(e&&e!==!0||(e={}),e)}function s(t){var e=t.state.lint;e.hasGutter&&t.clearGutter(y);for(var n=0;n<e.marked.length;++n)e.marked[n].clear();e.marked.length=0}function l(e,n,r,a){var o=document.createElement("div"),s=o;return o.className="CodeMirror-lint-marker-"+n,r&&(s=o.appendChild(document.createElement("div")),s.className="CodeMirror-lint-marker-multiple"),0!=a&&t.on(s,"mouseover",function(t){i(t,e,s)}),o}function u(t,e){return"error"==t?t:e}function c(t){for(var e=[],n=0;n<t.length;++n){var r=t[n],i=r.from.line;(e[i]||(e[i]=[])).push(r)}return e}function f(t){var e=t.severity;e||(e="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+e,n.appendChild(document.createTextNode(t.message)),n}function d(e,n,r){function i(){o=-1,e.off("change",i)}var a=e.state.lint,o=++a.waitingFor;e.on("change",i),n(e.getValue(),function(n,r){e.off("change",i),a.waitingFor==o&&(r&&n instanceof t&&(n=r),h(e,n))},r,e)}function p(e){var n=e.state.lint,r=n.options,i=r.options||r,a=r.getAnnotations||e.getHelper(t.Pos(0,0),"lint");if(a)if(r.async||a.async)d(e,a,i);else{var o=a(e.getValue(),i,e);if(!o)return;o.then?o.then(function(t){h(e,t)}):h(e,o)}}function h(t,e){s(t);for(var n=t.state.lint,r=n.options,i=c(e),a=0;a<i.length;++a){var o=i[a];if(o){for(var d=null,p=n.hasGutter&&document.createDocumentFragment(),h=0;h<o.length;++h){var m=o[h],v=m.severity;v||(v="error"),d=u(d,v),r.formatAnnotation&&(m=r.formatAnnotation(m)),n.hasGutter&&p.appendChild(f(m)),m.to&&n.marked.push(t.markText(m.from,m.to,{className:"CodeMirror-lint-mark-"+v,__annotation:m}))}n.hasGutter&&t.setGutterMarker(a,y,l(p,d,o.length>1,n.options.tooltips))}}r.onUpdateLinting&&r.onUpdateLinting(e,i,t)}function m(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(function(){p(t)},e.options.delay||500))}function v(t,e){for(var n=e.target||e.srcElement,r=document.createDocumentFragment(),a=0;a<t.length;a++){var o=t[a];r.appendChild(f(o))}i(e,r,n)}function g(t,e){var n=e.target||e.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var r=n.getBoundingClientRect(),i=(r.left+r.right)/2,a=(r.top+r.bottom)/2,o=t.findMarksAt(t.coordsChar({left:i,top:a},"client")),s=[],l=0;l<o.length;++l){var u=o[l].__annotation;u&&s.push(u)}s.length&&v(s,e)}}var y="CodeMirror-lint-markers";t.defineOption("lint",!1,function(e,n,r){if(r&&r!=t.Init&&(s(e),e.state.lint.options.lintOnChange!==!1&&e.off("change",m),t.off(e.getWrapperElement(),"mouseover",e.state.lint.onMouseOver),clearTimeout(e.state.lint.timeout),delete e.state.lint),n){for(var i=e.getOption("gutters"),l=!1,u=0;u<i.length;++u)i[u]==y&&(l=!0);var c=e.state.lint=new a(e,o(e,n),l);c.options.lintOnChange!==!1&&e.on("change",m),0!=c.options.tooltips&&"gutter"!=c.options.tooltips&&t.on(e.getWrapperElement(),"mouseover",c.onMouseOver),p(e)}}),t.defineExtension("performLint",function(){this.state.lint&&p(this)})})},function(t,e,n){var r=n(416);"string"==typeof r&&(r=[[t.id,r,""]]);var i,a={};a.transform=i;n(418)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(417)(void 0),e.push([t.id,'.CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid #000;border-radius:4px 4px 4px 4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark-error,.CodeMirror-lint-mar
this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function ae(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function se(t){var e=Me(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Oe,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return e(n,t,r)!==!1},n)},e.__iteratorUncached=function(e,n){if(e===xn){var r=t.__iterator(e,n);return new w(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===wn?bn:wn,n)},e}function le(t,e,n){var r=Me(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var a=t.get(r,gn);return a===gn?i:e.call(n,a,r,t)},r.__iterateUncached=function(r,i){var a=this;return t.__iterate(function(t,i,o){return r(e.call(n,t,i,o),i,a)!==!1},i)},r.__iteratorUncached=function(r,i){var a=t.__iterator(xn,i);return new w(function(){var i=a.next();if(i.done)return i;var o=i.value,s=o[0];return x(r,s,e.call(n,o[1],s,t),i)})},r}function ue(t,e){var n=Me(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=Oe,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function ce(t,e,n,r){var i=Me(t);return r&&(i.has=function(r){var i=t.get(r,gn);return i!==gn&&!!e.call(n,i,r,t)},i.get=function(r,i){var a=t.get(r,gn);return a!==gn&&e.call(n,a,r,t)?a:i}),i.__iterateUncached=function(i,a){var o=this,s=0;return t.__iterate(function(t,a,l){if(e.call(n,t,a,l))return s++,i(t,r?a:s-1,o)},a),s},i.__iteratorUncached=function(i,a){var o=t.__iterator(xn,a),s=0;return new w(function(){for(;;){var a=o.next();if(a.done)return a;var l=a.value,u=l[0],c=l[1];if(e.call(n,c,u,t))return x(i,r?u:s++,c,a)}})},i}function fe(t,e,n){var r=ft().asMutable();return t.__iterate(function(i,a){r.update(e.call(n,i,a,t),0,function(t){return t+1})}),r.asImmutable()}function de(t,e,n){var r=o(t),i=(u(t)?Qt():ft()).asMutable();t.__iterate(function(a,o){i.update(e.call(n,a,o,t),function(t){return t=t||[],t.push(r?[o,a]:a),t})});var a=Ie(t);return i.map(function(e){return Se(t,a(e))})}function pe(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=i:n|=0),g(e,n,i))return t;var a=y(e,i),o=_(n,i);if(a!==a||o!==o)return pe(t.toSeq().cacheResult(),e,n,r);var s,l=o-a;l===l&&(s=l<0?0:l);var u=Me(t);return u.size=0===s?s:t.size&&s||void 0,!r&&N(t)&&s>=0&&(u.get=function(e,n){return e=m(this,e),e>=0&&e<s?t.get(e+a,n):n}),u.__iterateUncached=function(e,n){var i=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var o=0,l=!0,u=0;return t.__iterate(function(t,n){if(!l||!(l=o++<a))return u++,e(t,r?n:u-1,i)!==!1&&u!==s}),u},u.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var i=0!==s&&t.__iterator(e,n),o=0,l=0;return new w(function(){for(;o++<a;)i.next();if(++l>s)return k();var t=i.next();return r||e===wn?t:e===bn?x(e,l-1,void 0,t):x(e,l-1,t.value[1],t)})},u}function he(t,e,n){var r=Me(t);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return t.__iterate(function(t,i,s){return e.call(n,t,i,s)&&++o&&r(t,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=t.__iterator(xn,i),s=!0;return new w(function(){if(!s)return k();var t=o.next();if(t.done)return t;var i=t.value,l=i[0],u=i[1];return e.call(n,u,l,a)?r===xn?t:x(r,l,u,t):(s=!1,k())})},r}function me(t,e,n,r){var i=Me(t);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i
tr[pn]=tr.remove,tr.mergeDeep=tr.merge,tr.mergeDeepWith=tr.mergeWith,tr.withMutations=Bn.withMutations,tr.asMutable=Bn.asMutable,tr.asImmutable=Bn.asImmutable,tr.__empty=Re,tr.__make=Ue;var er;t(Be,Ne),Be.of=function(){return this(arguments)},Be.fromKeys=function(t){return this(n(t).keySeq())},Be.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Be.isOrderedSet=Ve;var nr=Be.prototype;nr[dn]=!0,nr.__empty=Ge,nr.__make=He;var rr;t(Ke,nt),Ke.of=function(){return this(arguments)},Ke.prototype.toString=function(){return this.__toString("Stack [","]")},Ke.prototype.get=function(t,e){var n=this._head;for(t=m(this,t);n&&t--;)n=n.next;return n?n.value:e},Ke.prototype.peek=function(){return this._head&&this._head.value},Ke.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):$e(t,e)},Ke.prototype.pushAll=function(t){if(t=r(t),0===t.size)return this;ct(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):$e(e,n)},Ke.prototype.pop=function(){return this.slice(1)},Ke.prototype.unshift=function(){return this.push.apply(this,arguments)},Ke.prototype.unshiftAll=function(t){return this.pushAll(t)},Ke.prototype.shift=function(){return this.pop.apply(this,arguments)},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ye()},Ke.prototype.slice=function(t,e){if(g(t,e,this.size))return this;var n=y(t,this.size),r=_(e,this.size);if(r!==this.size)return nt.prototype.slice.call(this,t,e);for(var i=this.size-n,a=this._head;n--;)a=a.next;return this.__ownerID?(this.size=i,this._head=a,this.__hash=void 0,this.__altered=!0,this):$e(i,a)},Ke.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?$e(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ke.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&t(r.value,n++,this)!==!1;)r=r.next;return n},Ke.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new w(function(){if(r){var e=r.value;return r=r.next,x(t,n++,e)}return k()})},Ke.isStack=We;var ir="@@__IMMUTABLE_STACK__@@",ar=Ke.prototype;ar[ir]=!0,ar.withMutations=Bn.withMutations,ar.asMutable=Bn.asMutable,ar.asImmutable=Bn.asImmutable,ar.wasAltered=Bn.wasAltered;var or;e.Iterator=w,Je(e,{toArray:function(){ct(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new ie(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new re(this,!0)},toMap:function(){return ft(this.toKeyedSeq())},toObject:function(){ct(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Qt(this.toKeyedSeq())},toOrderedSet:function(){return Be(o(this)?this.valueSeq():this)},toSet:function(){return Ne(o(this)?this.valueSeq():this)},toSetSeq:function(){return new ae(this)},toSeq:function(){return s(this)?this.toIndexedSeq():o(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ke(o(this)?this.valueSeq():this)},toList:function(){return qt(o(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var t=ln.call(arguments,0);return Se(this,ve(this,t))},includes:function(t){return this.some(function(e){return Y(e,t)})},entries:function(){return this.__iterator(xn)},every:function(t,e){ct(this.size);var n=!0;
var e=(0,s.default)(t.currentTarget),n=(0,s.default)(e.closest('[data-type="collection"]')).find('> ul > [data-collection-item] > .item-actions [data-action="expand"]');n.click()}},{key:"expandItem",value:function(t){var e=(0,s.default)(t.currentTarget),n=e.closest("[data-collection-item]");e.attr("data-action","collapse").removeClass("fa-chevron-circle-right").addClass("fa-chevron-circle-down"),n.removeClass("collection-collapsed")}},{key:"sortItems",value:function(t){var e=(0,s.default)(t.currentTarget),n=e.data("action-sort"),r=e.data("action-sort-dir")||"asc",i=(0,s.default)(e.closest('[data-type="collection"]')),a=i.closest('[data-type="collection"]').find("> ul > [data-collection-item]");a.sort(function(t,e){var i=(0,s.default)(t).find('[name$="['+n+']"]'),a=(0,s.default)(e).find('[name$="['+n+']"]'),o=void 0;return o="asc"===r?i.val()<a.val()?-1:i.val()>a.val()?1:0:i.val()>a.val()?-1:i.val()<a.val()?1:0}).each(function(t,e){(0,s.default)(e).parent().append(e)}),this.reindex(i)}},{key:"observeKey",value:function(t){var e=(0,s.default)(t.target),n=e.val(),r=e.closest("[data-collection-key]");r.data("collection-key-backup",r.data("collection-key")).data("collection-key",n),this.reindex(null,r)}},{key:"reindex",value:function(t,e){e=e||(0,s.default)(t).closest('[data-type="collection"]').find("> ul > [data-collection-item]"),e.each(function(t,e){e=(0,s.default)(e);var n=e.find("[data-key-observe]"),r=n.val(),i=n.length,a=e.data("collection-key-backup");e.attr("data-collection-key",i?r:t),["name","data-grav-field-name","for","id","data-grav-file-settings"].forEach(function(t){e.find("["+t+"], [_"+t+"]").each(function(){var e=(0,s.default)(this),n=[],o=[new RegExp("\\[(\\d+|\\*|"+a+")\\]","g"),new RegExp("\\.(\\d+|\\*|"+a+")\\.","g")];if(i&&!r)return e.attr("_"+t,e.attr(t)),void e.attr(t,null);e.attr("_"+t)&&(e.attr(t,e.attr("_"+t)),e.attr("_"+t,null)),e.parents("[data-collection-key]").map(function(t,e){return n.push((0,s.default)(e).attr("data-collection-key"))}),n.reverse();var l=a,u=e.attr(t).replace(o[0],function(){return l=n.shift()||l,"["+l+"]"});u=u.replace(o[1],function(){return l=n.shift()||l,"."+l+"."}),e.attr(t,u)})})})}},{key:"_onAddedNodes",value:function(t,e){var n=this,r=(0,s.default)(e).find('[data-type="collection"]');r.length&&r.each(function(t,e){e=(0,s.default)(e),~n.lists.index(e)||n.addList(e)})}},{key:"_updateActionsStateBasedOnMinMax",value:function(t){var e=t.closest('[data-type="collection"]').find("> ul > [data-collection-item]"),n=t.data("min"),r=t.data("max");t.find('> .collection-actions [data-action="add"]').attr("disabled",!1),t.find('> ul > li > .item-actions [data-action="delete"]').attr("disabled",!1),"undefined"!=typeof n&&e.length<=n&&t.find('> ul > li > .item-actions [data-action="delete"]').attr("disabled",!0),"undefined"!=typeof r&&e.length>=r&&t.find('> .collection-actions [data-action="add"]').attr("disabled",!0)}}]),t}();e.default=c;e.Instance=new c},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 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}}(),o=n(1),s=r(o),l=n(306);n(439);var u=function(){function t(e){var n=this;i(this,t),this.items=(0,s.default)(),this.options=Object.assign({},this.defaults,e),(0,s.default)("[data-grav-datetime]").each(function(t,e){return n.addItem(e)}),(0,s.default)("body").on("mutation._grav",this._onAddedNodes.bind(this))}return a(t,[{key:"defaults",get:function(){return{showTodayButton:!0,showClear:!0,locale:l.config.language||"en",icons:{time:"fa fa-clock-o",date:"fa fa-calendar-o",up:"fa fa-chevron-up",down:"fa fa-chevron-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-bullseye",clear:"fa fa-trash-o",close:"fa fa-remove"}}}}]),a(t,[{k
* gemini-scrollbar
* @version 1.5.1
* @link http://noeldelgado.github.io/gemini-scrollbar/
* @license MIT
*/
!function(){function e(){var t,e=document.createElement("div");return e.style.position="absolute",e.style.top="-9999px",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e),t}function n(t,e){return t.classList?e.forEach(function(e){t.classList.add(e)}):void(t.className+=" "+e.join(" "))}function r(t,e){return t.classList?e.forEach(function(e){t.classList.remove(e)}):void(t.className=t.className.replace(new RegExp("(^|\\b)"+e.join("|")+"(\\b|$)","gi")," "))}function i(){var t=navigator.userAgent.toLowerCase();return t.indexOf("msie")!==-1||t.indexOf("trident")!==-1||t.indexOf(" edge/")!==-1}function a(t){this.element=null,this.autoshow=!1,this.createElements=!0,this.forceGemini=!1,this.onResize=null,this.minThumbSize=20,Object.keys(t||{}).forEach(function(e){this[e]=t[e]},this),o=e(),s=0===o&&this.forceGemini===!1,this._cache={events:{}},this._created=!1,this._cursorDown=!1,this._prevPageX=0,this._prevPageY=0,this._document=null,this._viewElement=this.element,this._scrollbarVerticalElement=null,this._thumbVerticalElement=null,this._scrollbarHorizontalElement=null,this._scrollbarHorizontalElement=null}var o,s,l;l={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",resizeTrigger:"gm-resize-trigger"},a.prototype.create=function(){if(s){if(n(this.element,[l.prevented]),this.onResize){if(this.createElements===!0){for(this._viewElement=document.createElement("div");this.element.childNodes.length>0;)this._viewElement.appendChild(this.element.childNodes[0]);this.element.appendChild(this._viewElement)}else this._viewElement=this.element.querySelector("."+l.view);n(this.element,[l.element]),n(this._viewElement,[l.view]),this._createResizeTrigger()}return this}if(this._created===!0)return console.warn("calling on a already-created object"),this;if(this.autoshow&&n(this.element,[l.autoshow]),this._document=document,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("."+l.view),this._scrollbarVerticalElement=this.element.querySelector("."+l.verticalScrollbar.split(" ").join(".")),this._thumbVerticalElement=this._scrollbarVerticalElement.querySelector("."+l.thumb),this._scrollbarHorizontalElement=this.element.querySelector("."+l.horizontalScrollbar.split(" ").join(".")),this._thumbHorizontalElement=this._scrollbarHorizontalElement.querySelector("."+l.thumb);return n(this.element,[l.element]),n(this._viewElement,[l.view]),n(this._scrollbarVerticalElement,l.verticalScrollbar.split(/\s/)),n(this._scrollbarHorizontalElement,l.horizontalScrollbar.split(/\s/)),n(this._thumbVerticalElement,[l.thumb]),n(this._thumbHorizontalElement,[l.thumb]),this._scrollbarVerticalElement.style.display="",this._scrollbarHorizontalElement.style.display="",this._createResizeTrigger(),this._created=!0,this._bindEvents().update()},a.prototype._createResizeTrigger=function(){var t=document.createElement("object");n(t,[l.resizeTrigger]),t.type="text/html";var e=this._resizeHandler.bind(this);t.onload=function(){var n=t.contentDocument.defaultView;n.addEventListener("resize",e)},i()||(t.data="about:blank"),this.element.appendChild(
})}},{key:"handleRemovingPackage",value:function(t,e){var n=(0,s.default)(e.target).attr("data-packages-slugs");e.preventDefault(),e.stopPropagation(),this.removePackage(t,n)}},{key:"handleReinstallPackage",value:function(t,e){var n=(0,s.default)(e.target),r=n.attr("data-package-slug"),i=n.attr("data-package-name"),a=n.attr("data-package-current-version");e.preventDefault(),e.stopPropagation(),this.reinstallPackage(t,r,i,a)}},{key:"handleRemovingDependency",value:function(t,e){var n=(0,s.default)(e.target).attr("data-dependency-slug"),r=(0,s.default)(e.target);e.preventDefault(),e.stopPropagation(),this.removeDependency(t,n,r)}}],[{key:"getBackToList",value:function(e){t.location.href=l.config.base_url_relative+"/"+e+"s"}},{key:"addDependencyToList",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(["admin","form","login","email","grav"].indexOf(e)===-1){var r=(0,s.default)(".package-dependencies-container"),i=e+' <a href="#" class="button" data-dependency-slug="'+e+'" data-'+t+'-action="remove-dependency-package">Remove</a>';n&&(i+=" (was needed by "+n+")"),r.append("<li>"+i+"</li>")}}},{key:"getTaskUrl",value:function(t,e){var n=""+l.config.base_url_relative;return n+="/"+t+"s.json",n+="/task"+l.config.param_sep+e}},{key:"getRemovePackageUrl",value:function(t){return""+e.getTaskUrl(t,"removePackage")}},{key:"getReinstallPackageUrl",value:function(t){return""+e.getTaskUrl(t,"reinstallPackage")}},{key:"getGetPackagesDependenciesUrl",value:function(t){return""+e.getTaskUrl(t,"getPackagesDependencies")}},{key:"getInstallDependenciesOfPackagesUrl",value:function(t){return""+e.getTaskUrl(t,"installDependenciesOfPackages")}},{key:"getInstallPackageUrl",value:function(t){return""+e.getTaskUrl(t,"installPackage")}},{key:"addNeededDependencyToList",value:function(t,e){(0,s.default)(".install-dependencies-package-container .type-"+t).removeClass("hidden");var n=(0,s.default)(".install-dependencies-package-container .type-"+t+" ul");if("install"!==t){var r="",i="",a="",o=f.Instance.payload.payload.resources;o.plugins[e]?(i=o.plugins[e].available,r=o.plugins[e].version,a=o.plugins[e].name):o.themes[e]&&(i=o.themes[e].available,r=o.themes[e].version,a=o.themes[e].name),n.append("<li>"+(a?a:e)+", "+l.translations.PLUGIN_ADMIN.FROM+" v<strong>"+r+"</strong> "+l.translations.PLUGIN_ADMIN.TO+" v<strong>"+i+"</strong></li>")}else n.append("<li>"+(name?name:e)+"</li>")}},{key:"getSlugsFromEvent",value:function(t){var e="";return e=(0,s.default)(t.target).is("[data-packages-slugs]")?(0,s.default)(t.target).attr("data-packages-slugs"):(0,s.default)(t.target).parent("[data-packages-slugs]").attr("data-packages-slugs"),"undefined"==typeof e?null:(e=e.split(","),"string"==typeof e?[e]:e)}}]),e}();e.default=new h}).call(e,function(){return this}())},function(t,e,n){(function(e,r){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version 4.1.1
*/
!function(e,n){t.exports=n()}(this,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function i(t){return"function"==typeof t}function a(t){Y=t}function o(t){J=t}function s(){return function(){return e.nextTick(d)}}function l(){return"undefined"!=typeof $?function(){$(d)}:f()}function u(){var t=0,e=new Z(d),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function c(){var t=new MessageChannel;return t.port1.onmessage=d,function(){return t.port2.postMessage(0)}}function f(){var t=setTimeout;return function(){return t(d,1)}}function d(){for(var t=0;t<W;t+=2){var e=nt[t],n=nt[t+1];e(n),nt[t]=void 0,nt[t+1]=void 0}W=0}function p(){try{var t=n(559);return $=t.runOnLoop||t.runOnContext,l()}catch(t){return f()}}function h(t,e){var n=arguments,r=this,i=new this.constructor(v);void 0===i[it]&&D(i);var a=r._state;return a?!function(){var t=n[a-1];J(function(){return P(a,i,t,r._result)})}():M(r,i,t,e),i}function m(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(v);return S(n,t),n}function v(){}function g(){return new TypeError("You cannot resolve a promise with itself")}function y(){return new TypeError("A promises callback cannot return that same promise.")}function _(t){try{return t.then}catch(t){return lt.error=t,lt}}function b(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function w(t,e,n){J(function(t){var r=!1,i=b(n,e,function(n){r||(r=!0,e!==n?S(t,n):E(t,n))},function(e){r||(r=!0,I(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&i&&(r=!0,I(t,i))},t)}function x(t,e){e._state===ot?E(t,e._result):e._state===st?I(t,e._result):M(e,void 0,function(e){return S(t,e)},function(e){return I(t,e)})}function k(t,e,n){e.constructor===t.constructor&&n===h&&e.constructor.resolve===m?x(t,e):n===lt?(I(t,lt.error),lt.error=null):void 0===n?E(t,e):i(n)?w(t,e,n):E(t,e)}function S(e,n){e===n?I(e,g()):t(n)?k(e,n,_(n)):E(e,n)}function A(t){t._onerror&&t._onerror(t._result),O(t)}function E(t,e){t._state===at&&(t._result=e,t._state=ot,0!==t._subscribers.length&&J(O,t))}function I(t,e){t._state===at&&(t._state=st,t._result=e,J(A,t))}function M(t,e,n,r){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+ot]=n,i[a+st]=r,0===a&&t._state&&J(O,t)}function O(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,i=void 0,a=t._result,o=0;o<e.length;o+=3)r=e[o],i=e[o+n],r?P(n,r,i,a):i(a);t._subscribers.length=0}}function C(){this.error=null}function j(t,e){try{return t(e)}catch(t){return ut.error=t,ut}}function P(t,e,n,r){var a=i(n),o=void 0,s=void 0,l=void 0,u=void 0;if(a){if(o=j(n,r),o===ut?(u=!0,s=o.error,o.error=null):l=!0,e===o)return void I(e,y())}else o=r,l=!0;e._state!==at||(a&&l?S(e,o):u?I(e,s):t===ot?E(e,o):t===st&&I(e,o))}function T(t,e){try{e(function(e){S(t,e)},function(e){I(t,e)})}catch(e){I(t,e)}}function z(){return ct++}function D(t){t[it]=ct++,t._state=void 0,t._result=void 0,t._subscribers=[]}function L(t,e){this._instanceConstructor=t,this.promise=new t(v),this.promise[it]||D(this.promise),K(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?E(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&E(this.promise,this._result))):I(this.promise,N())}function N(){return new Error("Array Methods must be provided an Array")}function F(t){return new L(this,t).promise}function q(t){var e=this;return new e(K(t)?function(n,r){for(var i=t.length,a=0;a<i;a++)e.resolve(t[a]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function U(t){var e=this,n=new e(v);return I(n,t),n}function R(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function B(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function V(t){this[it]=z(),this._result=this._state=void 0,this._subscribers=[],v!==t&&("function"!=typeof t&&R(),this instanceof V?
toStringTag:s("",r&&r.toStringTag||i("toStringTag")),unscopables:s("",r&&r.unscopables||i("unscopables"))}),c(a.prototype,{constructor:s(i),toString:s("",function(){return this.__name__})}),c(i.prototype,{toString:s(function(){return"Symbol ("+l(this).__description__+")"}),valueOf:s(function(){return l(this)})}),f(i.prototype,i.toPrimitive,s("",function(){var t=l(this);return"symbol"==typeof t?t:t.toString()})),f(i.prototype,i.toStringTag,s("c","Symbol")),f(a.prototype,i.toStringTag,s("c",i.prototype[i.toStringTag])),f(a.prototype,i.toPrimitive,s("c",i.prototype[i.toPrimitive]))},function(t,e,n){"use strict";var r=n(613);t.exports=function(t){if(!r(t))throw new TypeError(t+" is not a symbol");return t}},function(t,e){"use strict";t.exports=function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&("Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))}},function(t,e,n){"use strict";var r=n(615);t.exports=function(t){if(!r(t))throw new TypeError(t+" is not iterable");return t}},function(t,e,n){"use strict";var r=n(616),i=n(617),a=n(609).iterator,o=Array.isArray;t.exports=function(t){return null!=t&&(!!o(t)||(!!i(t)||(!!r(t)||"function"==typeof t[a])))}},function(t,e){"use strict";var n=Object.prototype.toString,r=n.call(function(){return arguments}());t.exports=function(t){return n.call(t)===r}},function(t,e){"use strict";var n=Object.prototype.toString,r=n.call("");t.exports=function(t){return"string"==typeof t||t&&"object"==typeof t&&(t instanceof String||n.call(t)===r)||!1}},function(t,e,n){"use strict";var r=n(616),i=n(595),a=n(617),o=n(619),s=Array.isArray,l=Function.prototype.call,u=Array.prototype.some;t.exports=function(t,e){var n,c,f,d,p,h,m,v,g=arguments[2];if(s(t)||r(t)?n="array":a(t)?n="string":t=o(t),i(e),f=function(){d=!0},"array"===n)return void u.call(t,function(t){if(l.call(e,g,t,f),d)return!0});if("string"!==n)for(c=t.next();!c.done;){if(l.call(e,g,c.value,f),d)return;c=t.next()}else for(h=t.length,p=0;p<h&&(m=t[p],p+1<h&&(v=m.charCodeAt(0),v>=55296&&v<=56319&&(m+=t[++p])),l.call(e,g,m,f),!d);++p);}},function(t,e,n){"use strict";var r=n(616),i=n(617),a=n(620),o=n(649),s=n(614),l=n(609).iterator;t.exports=function(t){return"function"==typeof s(t)[l]?t[l]():r(t)?new a(t):i(t)?new o(t):new a(t)}},function(t,e,n){"use strict";var r,i=n(590),a=n(605),o=n(596),s=n(621),l=Object.defineProperty;r=t.exports=function(t,e){return this instanceof r?(s.call(this,t),e=e?a.call(e,"key+value")?"key+value":a.call(e,"key")?"key":"value":"value",void l(this,"__kind__",o("",e))):new r(t,e)},i&&i(r,s),r.prototype=Object.create(s.prototype,{constructor:o(r),_resolve:o(function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t}),toString:o(function(){return"[object Array Iterator]"})})},function(t,e,n){"use strict";var r,i=n(577),a=n(597),o=n(595),s=n(578),l=n(596),u=n(622),c=n(609),f=Object.defineProperty,d=Object.defineProperties;t.exports=r=function(t,e){return this instanceof r?(d(this,{__list__:l("w",s(t)),__context__:l("w",e),__nextIndex__:l("w",0)}),void(e&&(o(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear)))):new r(t,e)},d(r.prototype,a({constructor:l(r),_next:l(function(){var t;if(this.__list__)return this.__redo__&&(t=this.__redo__.shift(),void 0!==t)?t:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()}),next:l(function(){return this._createResult(this._next())}),_createResult:l(function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}}),_resolve:l(function(t){return this.__list__[t]}),_unBind:l(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:l(function(){return"[object Iterator]"})},u({_onAdd:l(function(t){if(!(t>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__)return void f(this,"__redo__",l("c",[t]));this.__redo__.forEach(function(e,n){e>=t&&(th
2016-02-05 12:37:48 -08:00
//# sourceMappingURL=admin.min.js.map