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

29 lines
498 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(341),c=r(l),u=n(342),f=r(u),d=n(362),p=r(d),h=n(367),m=r(h),v=n(455),g=r(v),y=n(582),_=r(y);n(587),n(598);var b=n(599),w=n(330),k=r(w),x=n(357),S=r(x);n(600),n(601),n(602),n(603),n(604);var A=n(606),E=r(A);c.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:c.default,Dashboard:p.default,Pages:m.default,Forms:g.default,Scrollbar:{Scrollbar:_.default,Instance:y.Instance},Updates:{Updates:f.default,Notifications:u.Notifications,Feed:u.Feed,Instance:u.Instance},Sidebar:{Sidebar:E.default,Instance:A.Instance},MediaFilter:{MediaFilter:b.Filter,Instance:b.Instance},Utils:{request:S.default,toastr:k.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(329),l=n(334),c=n(340),u=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}(c.EventEmitter);e.default=u;e.Instance=new u}).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):A
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(92),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(98)})},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(98),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(88);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(11),i=n(84);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(11),i=n(106),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(110);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(114);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);r(r.S,"Math",{fround:n(116)})},function(t,e,n){var r=n(110),i=Math.pow,a=i(2,-52),o=i(2,-23),s=i(2,127)*(2-o),l=i(2,-126),c=function(t){return t+1/a-1/a};t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),u=r(t);return i<l?u*c(i/l/o)*l*o:(e=(1+o/a)*i,n=e-(e-i),n>s||n!=n?u*(1/0):u*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.LOG10E}})},function(t,e,n){var r=n(11);r(r.S,"Math",{log1p:n(106)})},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(110)})},function(t,e,n){var r=n(11),i=n(114),a=Math.exp;r(r.S+r.F*n(10)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.ab
return t._l||(t._l=new v)},v=function(){this.a=[]},g=function(t,e){return d(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,a){var c=t(function(t,r){s(t,c,e,"_i"),t._t=e,t._i=h++,t._l=void 0,void 0!=r&&l(r,n,t[a],t)});return r(c.prototype,{delete:function(t){if(!o(t))return!1;var n=i(t);return n===!0?m(f(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!o(t))return!1;var n=i(t);return n===!0?m(f(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var r=i(a(e),!0);return r===!0?m(t).set(e,n):r[t._i]=n,t},ufstore:m}},function(t,e,n){"use strict";var r=n(224),i=n(220),a="WeakSet";n(221)(a,function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,a),t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(11),i=n(227),a=n(228),o=n(15),s=n(42),l=n(40),c=n(16),u=n(7).ArrayBuffer,f=n(211),d=a.ArrayBuffer,p=a.DataView,h=i.ABV&&u.isView,m=d.prototype.slice,v=i.VIEW,g="ArrayBuffer";r(r.G+r.W+r.F*(u!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,g,{isView:function(t){return h&&h(t)||c(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)),c=new p(this),u=new p(a),h=0;r<i;)u.setUint8(h++,c.getUint8(r++));return a}}),n(196)(g)},function(t,e,n){for(var r,i=n(7),a=n(13),o=n(22),s=o("typed_array"),l=o("view"),c=!(!i.ArrayBuffer||!i.DataView),u=c,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)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(t,e,n){"use strict";function r(t,e,n){var r,i,a,o=Array(n),s=8*n-e-1,l=(1<<s)-1,c=l>>1,u=23===e?R(2,-24)-R(2,-77):0,f=0,d=t<0||0===t&&1/t<0?1:0;for(t=U(t),t!=t||t===q?(i=t!=t?1:0,r=l):(r=B(V(t)/H),t*(a=R(2,-r))<1&&(r--,a*=2),t+=r+c>=1?u/a:u*R(2,1-c),t*a>=2&&(r++,a/=2),r+c>=l?(i=0,r=l):r+c>=1?(i=(t*a-1)*R(2,e),r+=c):(i=t*R(2,c-1)*R(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}function i(t,e,n){var r,i=8*n-e-1,a=(1<<i)-1,o=a>>1,s=i-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[l],l--,s-=8);if(0===u)u=1-o;else{if(u===a)return r?NaN:c?-q:q;r+=R(2,e),u-=o}return(c?-1:1)*r*R(2,u-e)}function a(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function o(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function l(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function c(t){return r(t,52,8)}function u(t){return r(t,23,4)}function f(t,e,n){E(t[P],e,{get:function(){return this[n]}})}function d(t,e,n,r){var i=+n,a=S(i);if(a+e>t[J])throw N(T);var o=t[$]._b,s=a+t[Y],l=o.slice(s,s+e);return r?l:l.reverse()}function p(t,e,n,r,i,a){var o=+n,s=S(o);if(s+e>t[J])throw N(T);for(var l=t[$]._b,c=s+t[Y],u=r(+i),f=0;f<e;f++)l[c+f]=u[a?f:e-f-1]}var h=n(7),m=n(9),v=n(31),g=n(227),y=n(13),_=n(217),b=n(10),w=n(209),k=n(41),x=n(40),S=n(229),A=n(52).f,E=n(14).f,I=n(192),M=n(27),O="ArrayBuffer",C="DataView",P="prototype",j="Wrong length!",T="Wrong index!",z=h[O],D=h[C],L=h.Math,N=h.RangeError,q=h.Infinity,F=z,U=L.abs,R=L.pow,B=L.floor,V=L.log,H=L.LN2,G="buffer",W="byteLength",K="byteOffset",$=m?"_b":G,J=m?"_l":W,Y=m?"_o":K;if(g.ABV){if(!b(function(){z(1)})||!b(function(){new z(-1)})||b(function(){return new z,new z(1.5),new z(NaN),z.name!=O})){z=function(t){return w(this,z),new F(S(t))};for(var X,Q=z[P]=F[P],Z=A(F),tt=0;Z.length>tt;)(X=Z[tt++])in z||y(z,X,F[X]);v||(Q.constructor=z)}var et=new D(new z(2)),nt=D[P].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1
}}function v(){return{value:g,done:!0}}var g,y=Object.prototype,_=y.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},w=b.iterator||"@@iterator",k=b.asyncIterator||"@@asyncIterator",x=b.toStringTag||"@@toStringTag",S="object"==typeof t,A=e.regeneratorRuntime;if(A)return void(S&&(t.exports=A));A=e.regeneratorRuntime=S?t.exports:{},A.wrap=r;var E="suspendedStart",I="suspendedYield",M="executing",O="completed",C={},P={};P[w]=function(){return this};var j=Object.getPrototypeOf,T=j&&j(j(m([])));T&&T!==y&&_.call(T,w)&&(P=T);var z=s.prototype=a.prototype=Object.create(P);o.prototype=z.constructor=s,s.constructor=o,s[x]=o.displayName="GeneratorFunction",A.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},A.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,x in t||(t[x]="GeneratorFunction")),t.prototype=Object.create(z),t},A.awrap=function(t){return{__await:t}},l(c.prototype),c.prototype[k]=function(){return this},A.AsyncIterator=c,A.async=function(t,e,n,i){var a=new c(r(t,e,n,i));return A.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},l(z),z[x]="Generator",z[w]=function(){return this},z.toString=function(){return"[object Generator]"},A.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},A.values=m,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&_.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=g)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return a.type="throw",a.arg=t,n.next=e,r&&(n.method="next",n.arg=g),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var o=_.call(i,"catchLoc"),s=_.call(i,"finallyLoc");if(o&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(o){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&_.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),C},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),C}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;p(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:m(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=g),C}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(4))},function(t,e,n){n(327),t.exports=n(12).RegExp.escape},function(t,e,n){var r=n(11),i=n(328)(/[\\^$*+?.()|[\]{}]/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(
e.default={Chart:{Chart:a.default,UpdatesChart:i.UpdatesChart,Instances:i.Instances},Cache:o.Instance}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Instances=e.UpdatesChart=e.defaults=void 0;var s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var a=Object.getPrototypeOf(e);return null===a?void 0:t(a,n,r)}if("value"in i)return i.value;var o=i.get;if(void 0!==o)return o.call(r)},l=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}}(),c=n(1),u=r(c),f=n(364),d=r(f),p=n(334),h=n(2),m=n(342),v=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,g=e.defaults={data:{series:[100,0]},options:{Pie:{donut:!0,donutWidth:10,startAngle:0,total:100,showLabel:!1,height:150,chartPadding:5},Bar:{height:164,chartPadding:v?10:5,axisX:{showGrid:!1,labelOffset:{x:0,y:0}},axisY:{offset:15,showLabel:!0,showGrid:!0,labelOffset:{x:5,y:5},scaleMinSpace:v?10:20}}}},y=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(o(this,t),this.element=(0,u.default)(e)||[],this.element[0]){var a=(this.element.data("chart-type")||"pie").toLowerCase();this.type=a.charAt(0).toUpperCase()+a.substr(1).toLowerCase(),r=Object.assign({},g.options[this.type],r),i=Object.assign({},g.data,i),Object.assign(this,{options:r,data:i}),this.chart=d.default[this.type](this.element.find(".ct-chart").empty()[0],this.data,this.options),this.chart.on("created",function(){n.element.find(".hidden").removeClass("hidden"),n.element.find(".ct-label").each(function(t,e){e=(0,u.default)(e);var n=e.html().replace("&lt;","<").replace("&gt;",">");e.html(n)})})}}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,u.default)("[data-chart-name]").each(function(){var t=(0,u.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.__e
this.dropzone.on("sending",this.onDropzoneSending.bind(this)),this.dropzone.on("error",this.onDropzoneError.bind(this)),this.container.on("mouseenter","[data-dz-view]",function(e){var n=JSON.parse(t.container.find('[name][type="hidden"]').val()||"{}"),r=(0,l.default)(e.currentTarget),i=r.parent(".dz-preview").find(".dz-filename"),a=encodeURI(i.text()),o=Object.keys(n).filter(function(t){return n[t].name===a}).shift();r.attr("href",p.config.base_url_simple+"/"+o)}))}return o(e,[{key:"initDropzone",value:function(){var t=this,e=this.options.klass.container.find("[data-file]"),n=this;e.length&&e.each(function(e,r){r=(0,l.default)(r);var i=r.data("file"),a={name:i.name,size:i.size,type:i.type,status:u.default.ADDED,accepted:!0,url:t.options.url,removeUrl:i.remove};n.files.push(a),n.options.addedfile.call(n,a),a.type.match(/^image\//)&&(n.options.thumbnail.call(n,a,i.path),n.createThumbnailFromUrl(a,i.path)),r.remove()})}},{key:"onDropzoneSending",value:function(t,e,n){n.append("name",this.options.dotNotation),n.append("admin-nonce",p.config.admin_nonce),n.append("task","filesupload")}},{key:"onDropzoneSuccess",value:function(e,n,r){if(n="string"==typeof n?JSON.parse(n):n,this.options.reloadPage&&t.location.reload(),n.session){e.sessionParams=n.session,e.removeUrl=this.options.url;var i=this.container.find('[name][type="hidden"]'),a=i.val();i.val(a+" ")}return this.handleError({file:e,data:n,mode:"removeFile",msg:"<p>"+p.translations.PLUGIN_ADMIN.FILE_ERROR_UPLOAD+" <strong>"+e.name+"</strong></p>\n <pre>"+n.message+"</pre>"})}},{key:"onDropzoneComplete",value:function(e){if(!e.accepted&&!e.rejected){var n={status:"error",message:p.translations.PLUGIN_ADMIN.FILE_UNSUPPORTED+": "+e.name.match(/\..+/).join("")};return this.handleError({file:e,data:n,mode:"removeFile",msg:"<p>"+p.translations.PLUGIN_ADMIN.FILE_ERROR_ADD+" <strong>"+e.name+"</strong></p>\n <pre>"+n.message+"</pre>"})}this.options.reloadPage&&t.location.reload()}},{key:"b64_to_utf8",value:function(t){return t=t.replace(/\s/g,""),decodeURIComponent(escape(window.atob(t)))}},{key:"onDropzoneRemovedFile",value:function(t){var e=this;if(t.accepted&&!t.rejected){var n=t.removeUrl||this.urls.delete,r=(n||"").match(/path:(.*)\//),i={filename:t.name};t.sessionParams&&(i.task="filessessionremove",i.session=t.sessionParams),(0,d.default)(n,{method:"post",body:i},function(){if(r){r=e.b64_to_utf8(r[1]);var t=e.container.find('[name][type="hidden"]'),n=JSON.parse(t.val()||"{}");delete n[r],t.val(JSON.stringify(n))}})}}},{key:"onDropzoneError",value:function(t,e,n){var r=n?e.error.message:e;return(0,l.default)(t.previewElement).find("[data-dz-errormessage]").html(r),this.handleError({file:t,data:{status:"error"},msg:"<pre>"+r+"</pre>"})}},{key:"handleError",value:function(t){var e=t.file,n=t.data,r=t.mode,i=t.msg;if("error"===n.status||"unauthorized"===n.status){switch(r){case"addBack":e instanceof File?this.dropzone.addFile.call(this.dropzone,e):(this.dropzone.files.push(e),this.dropzone.options.addedfile.call(this.dropzone,e),this.dropzone.options.thumbnail.call(this.dropzone,e,e.extras.url));break;case"removeFile":default:~this.dropzone.files.indexOf(e)&&(e.rejected=!0,this.dropzone.removeFile.call(this.dropzone,e,{silent:!0}))}var a=(0,l.default)('[data-remodal-id="generic"]');a.find(".error-content").html(i),l.default.remodal.lookup[a.data("remodal")].open()}}}]),e}();e.default=v;var g=[],y=(0,l.default)(),_=function(t,e){var n=(0,l.default)(e).find(".dropzone.files-upload");n.length&&n.each(function(t,e){e=(0,l.default)(e),~y.index(e)||b(e)})},b=function(t){t=(0,l.default)(t);var e=t.find('input[type="file"]'),n=t.data("grav-file-settings")||{};n.accept&&~n.accept.indexOf("*")&&(n.accept=[""]);var r={url:t.data("file-url-add")||(t.closest("form").attr("action")||p.config.current_url)+".json",paramName:n.paramName||"file",dotNotation:n.name||"file",acceptedFiles:n.accept?n.accept.join(","):e.attr("accept")||t.data("media-types"),maxFilesize:"undefined"!=typeof n.filesize?n.filesize:256,maxFiles:n.limit||null};y=y.add(t),t=t[0],g.push(new v({conta
t.registerHelper("hintWords","css",x),t.defineMIME("text/css",{documentTypes:i,mediaTypes:o,mediaFeatures:l,mediaValueKeywords:u,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:v,counterDescriptors:y,colorKeywords:b,valueKeywords:k,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:u,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:b,valueKeywords:k,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:u,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:b,valueKeywords:k,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:k,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(391),n(430),n(433))}(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\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\
},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],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(391))}(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(391),n(431),n(435),n(428))}(function(t){"use strict";functi
t.registerHelper("hintWords","php",[a,o,s].join(" ").split(" ")),t.registerHelper("wordChars","php",/[\w$]/);var l={name:"clike",helperType:"php",keywords:e(a),blockKeywords:e("catch do else elseif for foreach if switch try while finally"),defKeywords:e("class function interface namespace trait"),atoms:e(o),builtin:e(s),multiLineStrings:!0,hooks:{$:function(t){return t.eatWhile(/[\w\$_]/),"variable-2"},"<":function(t,e){var n;if(n=t.match(/<<\s*/)){var i=t.eat(/['"]/);t.eatWhile(/[\w\.]/);var a=t.current().slice(n[0].length+(i?2:1));if(i&&t.eat(i),a)return(e.tokStack||(e.tokStack=[])).push(a,0),e.tokenize=r(a,"'"!=i),"string"}return!1},"#":function(t){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"},"/":function(t){if(t.eat("/")){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"}return!1},'"':function(t,e){return(e.tokStack||(e.tokStack=[])).push('"',0),e.tokenize=r('"'),"string"},"{":function(t,e){return e.tokStack&&e.tokStack.length&&e.tokStack[e.tokStack.length-1]++,!1},"}":function(t,e){return e.tokStack&&e.tokStack.length>0&&!--e.tokStack[e.tokStack.length-1]&&(e.tokenize=r(e.tokStack[e.tokStack.length-2])),!1}}};t.defineMode("php",function(e,n){function r(e,n){var r=n.curMode==a;if(e.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),r)return r&&null==n.php.tokenize&&e.match("?>")?(n.curMode=i,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):a.token(e,n.curState);if(e.match(/^<\?\w*/))return n.curMode=a,n.php||(n.php=t.startState(a,i.indent(n.html,""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!e.eol()&&e.next()!=n.pending;);var o="string"}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(),c=l.search(/<\?/);return c!=-1&&("string"==o&&(s=l.match(/[\'\"]$/))&&!/\?>/.test(l)?n.pending=s[0]:n.pending={end:e.pos,style:o},e.backUp(l.length-c)),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(391))}(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 c(t,e){return"type"==e.prevToken&&"type"}function u(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})\(/);
t.removeLineClass(t.state.activeLines[e],"background",o),t.removeLineClass(t.state.activeLines[e],"gutter",s)}function n(t,e){if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function r(t,r){for(var i=[],l=0;l<r.length;l++){var c=r[l],u=t.getOption("styleActiveLine");if("object"==typeof u&&u.nonEmpty?c.anchor.line==c.head.line:c.empty()){var f=t.getLineHandleVisualStart(c.head.line);i[i.length-1]!=f&&i.push(f)}}n(t.state.activeLines,i)||t.operation(function(){e(t);for(var n=0;n<i.length;n++)t.addLineClass(i[n],"wrap",a),t.addLineClass(i[n],"background",o),t.addLineClass(i[n],"gutter",s);t.state.activeLines=i})}function i(t,e){r(t,e.ranges)}var a="CodeMirror-activeline",o="CodeMirror-activeline-background",s="CodeMirror-activeline-gutter";t.defineOption("styleActiveLine",!1,function(n,a,o){var s=o!=t.Init&&o;a!=s&&(s&&(n.off("beforeSelectionChange",i),e(n),delete n.state.activeLines),a&&(n.state.activeLines=[],r(n,n.listSelections()),n.on("beforeSelectionChange",i)))})})},function(t,e,n){!function(t){t(n(391))}(function(t){"use strict";function e(e,n){function r(e){return i.parentNode?(i.style.top=Math.max(0,e.clientY-i.offsetHeight-5)+"px",void(i.style.left=e.clientX+5+"px")):t.off(document,"mousemove",r)}var i=document.createElement("div");return i.className="CodeMirror-lint-tooltip",i.appendChild(n.cloneNode(!0)),document.body.appendChild(i),t.on(document,"mousemove",r),r(e),null!=i.style.opacity&&(i.style.opacity=1),i}function n(t){t.parentNode&&t.parentNode.removeChild(t)}function r(t){t.parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,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 c(t,e){return"error"==t?t:e}function u(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,"undefined"!=typeof t.messageHTML?n.innerHTML=t.messageHTML: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=u(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=c(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.createDocumentFrag
r-=hn;return n}}function Jt(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new d,i=t._origin,a=t._capacity,o=i+e,s=void 0===n?a:n<0?a+n:i+n;if(o===i&&s===a)return t;if(o>=s)return t.clear();for(var l=t._level,c=t._root,u=0;o+u<0;)c=new Rt(c&&c.array.length?[void 0,c]:[],r),l+=hn,u+=1<<l;u&&(o+=u,i+=u,s+=u,a+=u);for(var f=Xt(a),p=Xt(s);p>=1<<l+hn;)c=new Rt(c&&c.array.length?[c]:[],r),l+=hn;var h=t._tail,m=p<f?$t(t,s-1):p>f?new Rt([],r):h;if(h&&p>f&&o<a&&h.array.length){c=Kt(c,r);for(var v=c,g=l;g>hn;g-=hn){var y=f>>>g&vn;v=v.array[y]=Kt(v.array[y],r)}v.array[f>>>hn&vn]=h}if(s<a&&(m=m&&m.removeAfter(r,0,s)),o>=p)o-=p,s-=p,l=hn,c=null,m=m&&m.removeBefore(r,0,o);else if(o>i||p<f){for(u=0;c;){var _=o>>>l&vn;if(_!==p>>>l&vn)break;_&&(u+=(1<<l)*_),l-=hn,c=c.array[_]}c&&o>i&&(c=c.removeBefore(r,l,o-u)),c&&p<f&&(c=c.removeAfter(r,l,p-u)),u&&(o-=u,s-=u)}return t.__ownerID?(t.size=s-o,t._origin=o,t._capacity=s,t._level=l,t._root=c,t._tail=m,t.__hash=void 0,t.__altered=!0,t):Vt(o,s,l,c,m)}function Yt(t,e,n){for(var i=[],o=0,s=0;s<n.length;s++){var l=n[s],c=r(l);c.size>o&&(o=c.size),a(l)||(c=c.map(function(t){return G(t)})),i.push(c)}return o>t.size&&(t=t.setSize(o)),Tt(t,e,i)}function Xt(t){return t<mn?0:t-1>>>hn<<hn}function Qt(t){return null===t||void 0===t?ee():Zt(t)?t:ee().withMutations(function(e){var r=n(t);ut(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function Zt(t){return dt(t)&&c(t)}function te(t,e,n,r){var i=Object.create(Qt.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i}function ee(){return Xn||(Xn=te(kt(),Ht()))}function ne(t,e,n){var r,i,a=t._map,o=t._list,s=a.get(e),l=void 0!==s;if(n===gn){if(!l)return t;o.size>=mn&&o.size>=2*a.size?(i=o.filter(function(t,e){return void 0!==t&&s!==e}),r=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=a.remove(e),i=s===o.size-1?o.pop():o.set(s,void 0))}else if(l){if(n===o.get(s)[1])return t;r=a,i=o.set(s,[e,n])}else r=a.set(e,o.size),i=o.set(o.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):te(r,i)}function re(t,e){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===kn){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(kn,i);return new w(function(){var i=a.next();if(i.done)return i;var o=i.value,s=o[0];return k(r,s,e.call(n,o[1],s,t),i)})},r}function ce(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 ue(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){
Qn.updateIn=Bn.updateIn,Qn.withMutations=Bn.withMutations,Qn.asMutable=Bn.asMutable,Qn.asImmutable=Bn.asImmutable,t(Ne,rt),Ne.of=function(){return this(arguments)},Ne.fromKeys=function(t){return this(n(t).keySeq())},Ne.prototype.toString=function(){return this.__toString("Set {","}")},Ne.prototype.has=function(t){return this._map.has(t)},Ne.prototype.add=function(t){return Fe(this,this._map.set(t,!0))},Ne.prototype.remove=function(t){return Fe(this,this._map.remove(t))},Ne.prototype.clear=function(){return Fe(this,this._map.clear())},Ne.prototype.union=function(){var t=ln.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Ne.prototype.intersect=function(){var t=ln.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.every(function(t){return t.includes(e)})||n.remove(e)})})},Ne.prototype.subtract=function(){var t=ln.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(n){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&n.remove(e)})})},Ne.prototype.merge=function(){return this.union.apply(this,arguments)},Ne.prototype.mergeWith=function(t){var e=ln.call(arguments,1);return this.union.apply(this,e)},Ne.prototype.sort=function(t){return Be(be(this,t))},Ne.prototype.sortBy=function(t,e){return Be(be(this,e,t))},Ne.prototype.wasAltered=function(){return this._map.wasAltered()},Ne.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},Ne.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Ne.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Ne.isSet=qe;var Zn="@@__IMMUTABLE_SET__@@",tr=Ne.prototype;tr[Zn]=!0,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(We,nt),We.of=function(){return this(arguments)},We.prototype.toString=function(){return this.__toString("Stack [","]")},We.prototype.get=function(t,e){var n=this._head;for(t=m(this,t);n&&t--;)n=n.next;return n?n.value:e},We.prototype.peek=function(){return this._head&&this._head.value},We.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)},We.prototype.pushAll=function(t){if(t=r(t),0===t.size)return this;ut(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)},We.prototype.pop=function(){return this.slice(1)},We.prototype.unshift=function(){return this.push.apply(this,arguments)},We.prototype.unshiftAll=function(t){return this.pushAll(t)},We.prototype.shift=function(){return this.pop.apply(this,arguments)},We.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):Je()},We.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=v
handle:".collection-sort",animation:150,onUpdate:function(){return e.reindex(n)}}))}),this._updateActionsStateBasedOnMinMax(t)}},{key:"addItem",value:function(t){var e=(0,s.default)(t.currentTarget),n=e.data("action-add")||"bottom",r=(0,s.default)(e.closest('[data-type="collection"]')),i=(0,s.default)(r.find('> [data-collection-template="new"]').data("collection-template-html"));this._updateActionsStateBasedOnMinMax(r);var a=r.closest('[data-type="collection"]').find("> ul > [data-collection-item]"),o=r.data("max");if(!("undefined"!=typeof o&&a.length>=o)){r.find("> [data-collection-holder]")["top"===n?"prepend":"append"](i),this.reindex(r),a=r.closest('[data-type="collection"]').find("> ul > [data-collection-item]");var l=r.closest('[data-type="collection"]').find('[data-action-add="top"]'),c=r.closest('[data-type="collection"]').find('[data-action="sort"]');a.length&&(l.length&&l.parent().removeClass("hidden"),c.length&&a.length>1&&c.removeClass("hidden")),(0,s.default)('[data-grav-field="toggleable"] input[type="checkbox"]').trigger("change")}}},{key:"removeItem",value:function(t){var e=(0,s.default)(t.currentTarget),n=e.closest("[data-collection-item]"),r=(0,s.default)(e.closest('[data-type="collection"]')),i=r.closest('[data-type="collection"]').find("> ul > [data-collection-item]"),a=r.data("min");if(!("undefined"!=typeof a&&i.length<=a)){n.remove(),this.reindex(r),i=r.closest('[data-type="collection"]').find("> ul > [data-collection-item]");var o=r.closest('[data-type="collection"]').find('[data-action-add="top"]'),l=r.closest('[data-type="collection"]').find('[data-action="sort"]');i.length||o.length&&o.parent().addClass("hidden"),l.length&&i.length<=1&&l.addClass("hidden"),this._updateActionsStateBasedOnMinMax(r)}}},{key:"collapseItems",value:function(t){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="collapse"]');n.click()}},{key:"collapseItem",value:function(t){var e=(0,s.default)(t.currentTarget),n=e.closest("[data-collection-item]");e.attr("data-action","expand").removeClass("fa-chevron-circle-down").addClass("fa-chevron-circle-right"),n.addClass("collection-collapsed")}},{key:"expandItems",value:function(t){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);
* gemini-scrollbar
* @version 1.5.2
* @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",t.setAttribute("tabindex","-1");var e=this._resizeHandler.bind(this);t.onload=function(){var n=t.contentDocument.defaultView;n.addEventListener("resize",e)},i()||(t.data="about:b
body:{package:n}},function(n){"success"===n.status?((0,s.default)(".remove-package-confirm").addClass("hidden"),n.dependencies&&n.dependencies.length>0?(r.addDependenciesToList(n.dependencies),(0,s.default)(".remove-package-dependencies").removeClass("hidden")):(0,s.default)(".remove-package-done").removeClass("hidden"),(0,s.default)(document).on("closing",'[data-remodal-id="remove-package"]',function(){e.getBackToList(t)})):((0,s.default)(".remove-package-confirm").addClass("hidden"),(0,s.default)(".remove-package-error").removeClass("hidden"))})}},{key:"reinstallPackage",value:function(t,n,r,i){(0,s.default)(".button-bar button").addClass("hidden"),(0,s.default)(".button-bar .spinning-wheel").removeClass("hidden");var a=e.getReinstallPackageUrl(t);(0,u.default)(a,{method:"post",body:{slug:n,type:t,package_name:r,current_version:i}},function(t){"success"===t.status?((0,s.default)(".reinstall-package-confirm").addClass("hidden"),(0,s.default)(".reinstall-package-done").removeClass("hidden")):((0,s.default)(".reinstall-package-confirm").addClass("hidden"),(0,s.default)(".reinstall-package-error").removeClass("hidden")),window.location.reload()})}},{key:"removeDependency",value:function(t,n,r){var i=this,a=e.getRemovePackageUrl(t);(0,u.default)(a,{method:"post",body:{package:n}},function(t){"success"===t.status&&(r.removeClass("button"),r.replaceWith((0,s.default)("<span>Removed successfully</span>")),t.dependencies&&t.dependencies.length>0&&i.addDependenciesToList(t.dependencies,n))})}},{key:"getPackagesDependencies",value:function(t,n,r){var i=e.getGetPackagesDependenciesUrl(t);(0,u.default)(i,{method:"post",body:{packages:n}},function(t){if(r(),"success"===t.status)if(t.dependencies){var n=!1;for(var i in t.dependencies)if(t.dependencies.hasOwnProperty(i)){if("grav"===i)continue;n=!0;var a=i,o=t.dependencies[i];e.addNeededDependencyToList(o,a)}n?(0,s.default)("[data-packages-modal] .install-dependencies-package-container").removeClass("hidden"):(0,s.default)("[data-packages-modal] .install-package-container").removeClass("hidden")}else(0,s.default)("[data-packages-modal] .install-package-container").removeClass("hidden");else(0,s.default)("[data-packages-modal] .install-package-error").removeClass("hidden")})}},{key:"installDependenciesOfPackages",value:function(t,n,r,i){var a=e.getInstallDependenciesOfPackagesUrl(t);(0,u.default)(a,{method:"post",body:{packages:n}},r)}},{key:"installPackages",value:function(t,n,r){var i=e.getInstallPackageUrl(t);d.Promise.all(n.map(function(e){return(0,u.default)(i,{method:"post",body:{package:e,type:t}})})).then(r)}},{key:"handleGettingPackageDependencies",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"update",i=e.getSlugsFromEvent(n);return i?((0,s.default)(".packages-names-list").html(""),(0,s.default)(".install-dependencies-package-container li").remove(),i.forEach(function(t){if("update"===r){var e="",n="",i="",a=f.Instance.payload.payload.resources;a.plugins[t]?(n=a.plugins[t].available,e=a.plugins[t].version,i=a.plugins[t].name):a.themes[t]&&(n=a.themes[t].available,e=a.themes[t].version,i=a.themes[t].name),(0,s.default)(".packages-names-list").append("<li>"+(i?i:t)+", "+l.translations.PLUGIN_ADMIN.FROM+" v<strong>"+e+"</strong> "+l.translations.PLUGIN_ADMIN.TO+" v<strong>"+n+"</strong></li>")}else(0,s.default)(".packages-names-list").append("<li>"+(name?name:t)+"</li>")}),n.preventDefault(),n.stopPropagation(),(0,s.default)("[data-packages-modal] .loading").removeClass("hidden"),(0,s.default)("[data-packages-modal] .install-dependencies-package-container").addClass("hidden"),(0,s.default)("[data-packages-modal] .install-package-container").addClass("hidden"),(0,s.default)("[data-packages-modal] .installing-dependencies").addClass("hidden"),(0,s.default)("[data-packages-modal] .installing-package").addClass("hidden"),(0,s.default)("[data-packages-modal] .installation-complete").addClass("hidden"),(0,s.default)("[data-packages-modal] .install-package-error").addClass("hidden"),void this.getPackagesDependencies(t,i,function(){var e=i.join();(0,s
* @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){J=t}function o(t){Y=t}function s(){return function(){return e.nextTick(d)}}function l(){return"undefined"!=typeof $?function(){$(d)}:f()}function c(){var t=0,e=new Z(d),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){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<K;t+=2){var e=nt[t],n=nt[t+1];e(n),nt[t]=void 0,nt[t+1]=void 0}K=0}function p(){try{var t=n(591);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];Y(function(){return j(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){Y(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 k(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 x(t,e,n){e.constructor===t.constructor&&n===h&&e.constructor.resolve===m?k(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)?x(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&&Y(O,t))}function I(t,e){t._state===at&&(t._state=st,t._result=e,Y(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&&Y(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?j(n,r,i,a):i(a);t._subscribers.length=0}}function C(){this.error=null}function P(t,e){try{return t(e)}catch(t){return ct.error=t,ct}}function j(t,e,n,r){var a=i(n),o=void 0,s=void 0,l=void 0,c=void 0;if(a){if(o=P(n,r),o===ct?(c=!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):c?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 ut++}function D(t){t[it]=ut++,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),W(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 q(t){return new L(this,t).promise}function F(t){var e=this;return new e(W(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?
},i=function(t,e){var n,i;return f(e),i=this,r.call(this,t,n=function(){a.call(i,t,n),d.call(e,this,arguments)}),n.__eeOnceListener__=e,this},a=function(t,e){var n,r,i,a;if(f(e),!g.call(this,"__ee__"))return this;if(n=this.__ee__,!n[t])return this;if(r=n[t],"object"==typeof r)for(a=0;i=r[a];++a)i!==e&&i.__eeOnceListener__!==e||(2===r.length?n[t]=r[a?0:1]:r.splice(a,1));else r!==e&&r.__eeOnceListener__!==e||delete n[t];return this},o=function(t){var e,n,r,i,a;if(g.call(this,"__ee__")&&(i=this.__ee__[t]))if("object"==typeof i){for(n=arguments.length,a=new Array(n-1),e=1;e<n;++e)a[e-1]=arguments[e];for(i=i.slice(),e=0;r=i[e];++e)d.call(r,this,a)}else switch(arguments.length){case 1:p.call(i,this);break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,a=new Array(n-1),e=1;e<n;++e)a[e-1]=arguments[e];d.call(i,this,a)}},s={on:r,once:i,off:a,emit:o},l={on:u(r),once:u(i),off:u(a),emit:u(o)},c=v({},l),t.exports=e=function(t){return null==t?h(c):v(Object(t),l)},e.methods=s},function(t,e,n){"use strict";t.exports=n(643)()?Symbol:n(644)},function(t,e){"use strict";var n={object:!0,symbol:!0};t.exports=function(){var t;if("function"!=typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(t){return!1}return!!n[typeof Symbol.iterator]&&(!!n[typeof Symbol.toPrimitive]&&!!n[typeof Symbol.toStringTag])}},function(t,e,n){"use strict";var r,i,a,o,s=n(629),l=n(645),c=Object.create,u=Object.defineProperties,f=Object.defineProperty,d=Object.prototype,p=c(null);if("function"==typeof Symbol){r=Symbol;try{String(r()),o=!0}catch(t){}}var h=function(){var t=c(null);return function(e){for(var n,r,i=0;t[e+(i||"")];)++i;return e+=i||"",t[e]=!0,n="@@"+e,f(d,n,s.gs(null,function(t){r||(r=!0,f(this,n,s(t)),r=!1)})),n}}();a=function(t){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return i(t)},t.exports=i=function t(e){var n;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return o?r(e):(n=c(a.prototype),e=void 0===e?"":String(e),u(n,{__description__:s("",e),__name__:s("",h(e))}))},u(i,{for:s(function(t){return p[t]?p[t]:p[t]=i(String(t))}),keyFor:s(function(t){var e;l(t);for(e in p)if(p[e]===t)return e}),hasInstance:s("",r&&r.hasInstance||i("hasInstance")),isConcatSpreadable:s("",r&&r.isConcatSpreadable||i("isConcatSpreadable")),iterator:s("",r&&r.iterator||i("iterator")),match:s("",r&&r.match||i("match")),replace:s("",r&&r.replace||i("replace")),search:s("",r&&r.search||i("search")),species:s("",r&&r.species||i("species")),split:s("",r&&r.split||i("split")),toPrimitive:s("",r&&r.toPrimitive||i("toPrimitive")),toStringTag:s("",r&&r.toStringTag||i("toStringTag")),unscopables:s("",r&&r.unscopables||i("unscopables"))}),u(a.prototype,{constructor:s(i),toString:s("",function(){return this.__name__})}),u(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(646);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(648);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(649),i=n(650),a=n(651).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){retu
2016-02-05 12:37:48 -08:00
//# sourceMappingURL=admin.min.js.map